Parker Hannifin acr-motion max api users guide Home Theater Server User Manual


 
API Users Guide API Command Descriptions - 11
AX_BitOff
Description Turns off any bit except the Inputs
Returns (Integer) 1 on Success, 0 on Failure
Arguments Global BitNum as Integer
VB Example: Call Ax_BitOff (512) ‘Clear Kill Moves to Card
Declaration: Public Declare Function AX_BitOff Lib _
"MotionCore.DLL" (ByVal BitNum as Integer) As Integer
(Bit Group Functions)
AX_GetInputs
Description Extract all 96 Inputs as 0’s or 1’s to a 1 based string (See Control signals Map)
Returns (Integer) 1 on Success, 0 on Failure
Arguments Global Inputs As String: Inputs = Space (97)
VB Example: Ret = AX_GetInputs (Inputs)
If Mid (Inputs, 2, 1) = 1 Then Estop = True
Declaration: Public Declare Function AX_GetInputs Lib _
“MotionCore.DLL" (ByVal Inputs as String) As Integer
AX_GetOutputs
Description Extract all 96 Outputs as 0’s or 1’s to a 1 based string (See Control signals Map)
Returns (Integer) 1 on Success, 0 on Failure
Arguments Global Outputs As String: Outputs = Space (97)
VB Example: Ret = AX_GetOutputs (Outputs)
If Mid (Outputs, 2, 1) = 1 Then Output 2 is on
Declaration: Public Declare Function AX_GetInputs Lib _
“MotionCore.DLL" (ByVal Outputs as String) As Integer
AX_GetControlBits
Description GET INTERNAL CONTROL BITS [128 - 255] extracts all 128 BITS from DLL
Returns (Integer) 1 on Success, 0 on Failure
Arguments Global ControlSignals As String: ControlSignals = Space (129)
VB Example: Ret = AX_GetControlBits (ControlSignals)
Declaration: Public Declare Function AX_GetControlBits Lib _
"MotionCore.DLL" (ByVal ControlSignals As String) As Integer