
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 Remove Program failed ;
Use MAC_GetLastError to retrieve the error string.
Sample:
int retVal = MAC_RemoveProgram( hCom, _T("*") );
6.17 MAC_DownloadResources
This function enables the user to define new resources for Multi-axes supervisor.
Syntax:
int MAC_DownloadResources( COMMUNICATION_HANDLE hCommunication,
LPCTSTR cszLocalPath,
BOOL bRestart );
Input Parameters:
COMMUNICATION_HANDLE hCommunication - Multi-axes supervisor
communication handle.
LPCTSTR cszLocalPath Path to resources file on desktop computer.
BOOL bRestart Restart controller with new resources.
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 Resources failed;
Use MAC_GetLastError to retrieve the error string.
Sample:
int retVal = MAC_DownloadResources( hCom, szPath, FALSE );
Maestro Software Manual The Maestro API
MAN-MASSW (Ver. Q)
6-13
Kommentare zu diesen Handbüchern