Parker Hannifin acr-motion max api users guide Manual Do Utilizador
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