Parker Hannifin acr-motion max api Manual de usuario Pagina 8

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 22
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 7
8 - API Command Descriptions API Users Guide
API Command Descriptions
(DLL Initialization)
AX_InitializeControl
Description Sends Handle (. hwnd) of the Applications Main Form to the DLL to spawn its threads.
Returns (Integer) 1 on Success, 0 on Failure
Arguments (Long) handle of the Applications Main Form
VB Example:
Private Sub frmForm_Initialize ()
Call AX_InitializeControl (frmMain.hwnd)
End sub
Declaration: Public Declare Function AX_InitializeControl Lib "MotionCore.DLL" (ByVal ProcHwnd As Long) As
Integer
AX_IsCardPresent
Description Checks if Servo Controller Card is present
Returns 1 if Motion card exists, 0 if not.
Arguments None
Declaration
Public Declare Function AX_IsCardPresent Lib "MotionCore.DLL" () As Integer
VB Example:
Private Sub frmMain_Initialize ()
RetVal = Call AX_IsCardPresent ()
If RetVal = 0 then
Offline = True ‘MotionCard not found
Else
Offline = False ‘ MotionCard Found
End if
End Sub
Vista de pagina 7
1 2 3 4 5 6 7 8 9 10 11 12 13 ... 21 22

Comentarios a estos manuales

Sin comentarios