Elmomc Multi-Axis Motion Controller-Maestro Manuel d'utilisateur Page 125

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 313
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 124
int MAC_RegInterruptCallback (
COMMUNICATION_HANDLE hCommunication,
MAC_ONUSER_INTERRUPT ptrCB);
Input Parameters:
COMMUNICATION_HANDLE hCommunication
Multi-axes supervisor communication handle.
MAC_ONUSER_INTERRUPT ptrCB – interrupt user's callback.
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 TNElmo server: Dispatch event failed
Use MAC_GetLastError to retrieve the error string.
Sample:
void MyInterrupt(DWORD id, DWORD wPrm, DWORD lPrm, DWORD time)
{
}
int nOk = MAC_RegInterruptCallback(hComm, MyInterrupt);
6.26 MAC_DownloadSimpleIQProgram
This function enables the user to download program to SimpleIQ controller.
Syntax:
int MAC_DownloadSimpleIQProgram (
COMMUNICATION_HANDLE hCommunication,
LPCTSTR cszObjName,
LPCTSTR cszLocalPath);
Input Parameters:
COMMUNICATION_HANDLE hCommunication
Multi-axes supervisor communication handle.
LPCTSTR cszObjName Motion object.
LPCTSTR cszLocalPath Path to SimpleIQ program image file on desktop
computer.
Return Value:
int - Error value:
Maestro Software Manual The Maestro API
MAN-MASSW (Ver. Q)
6-18
Vue de la page 124
1 2 ... 120 121 122 123 124 125 126 127 128 129 130 ... 312 313

Commentaires sur ces manuels

Pas de commentaire