15 mac_downloadprogram, 16 mac_removeprogram – ElmoMC Multi-Axis Motion Controller-Maestro User Manual
Page 119

5
Remove Trajectory failed;
Use MAC_GetLastError to retrieve the error string.
Sample:
int retVal = MAC_RemoveTrajectory( hCom, _T("MyTrj") );
6.15 MAC_DownloadProgram
This function enables the user to download program to Multi-axes supervisor
Syntax:
int MAC_DownloadProgram
( COMMUNICATION_HANDLE hCommunication,
LPCTSTR cszLocalPath );
Input Parameters:
COMMUNICATION_HANDLE hCommunication
Multi-axes supervisor communication handle.
LPCTSTR cszName
Trajectory name, if * - remove all.
Return Value:
int - Error value:
0
OK,
> 0 communication error codes:
1 The API library is not initialized;
2 Zero Communication Handle;
3 Bad Communication Handle;
4 Unable to create interface ITNElmoPublic;
5 Download program failed;
Use MAC_GetLastError to retrieve the error string.
Sample:
int retVal = MAC_DownloadProgram( hCom, szPath )
6.16 MAC_RemoveProgram
This function enables the user to remove a program from the Multi-axes supervisor.
Syntax:
int MAC_RemoveProgram
( COMMUNICATION_HANDLE hCommunication,
LPCTSTR cszName );
Input Parameters:
COMMUNICATION_HANDLE hCommunication
Multi-axes supervisor communication handle.
LPCTSTR cszName
Program name, if * - remove all.
Return Value:
Maestro
Software Manual
The Maestro API
MAN-MASSW (Ver. Q)
6-12