Parker Hannifin acr-motion max api Manuale Utente Pagina 8

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 22
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la 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
Vedere la pagina 7
1 2 3 4 5 6 7 8 9 10 11 12 13 ... 21 22

Commenti su questo manuale

Nessun commento