18 mac_downloadresourcesex, 19 mac_uploadlog – ElmoMC Multi-Axis Motion Controller-Maestro User Manual
Page 121

6.18 MAC_DownloadResourcesEx
This function enables the user to define new resources for Multi-axes supervisor.
Syntax:
int MAC_DownloadResourcesEx( COMMUNICATION_HANDLE hCommunication,
LPCTSTR
cszLocalPath,
LPCTSTR cszLocalMWDPath,
BOOL
bRestart
);
Input Parameters:
COMMUNICATION_HANDLE hCommunication - Multi-axes supervisor
communication handle.
LPCTSTR cszLocalPath
Path to resources file on desktop computer.
LPCTSTR cszLocalMWDPath Path to extended resources file on desktop computer.
( path to file *.mwd where stored extended resources)
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 Extended Resources failed;
6 Download Resources failed;
7 Restart failed;
Use MAC_GetLastError to retrieve the error string.
Sample:
int retVal = MAC_DownloadResourcesEx( hCom, szPath, szExtPath
FALSE );
6.19 MAC_UploadLog
This function enables the user to upload log file from Multi-axes controller
Syntax:
int MAC_UploadLog
( COMMUNICATION_HANDLE hCommunication, LPCTSTR
cszLocalPath );
Input Parameters:
COMMUNICATION_HANDLE hCommunication
Multi-axes supervisor communication handle.
Maestro
Software Manual
The Maestro API
MAN-MASSW (Ver. Q)
6-14