Parker Hannifin acr-motion max api users guide manual Bit Group Functions, AXBitOff, AXGetInputs

Page 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

 

 

 

API Users Guide

API Command Descriptions - 11

Image 11
Contents API Parker Hannifin Corporation All Rights Reserved Technical AssistanceContents Acroloop I/O Layout Introduction Getting StartedAPI Command Groups Virtual Overrides MDI Mode CommandsError Message Jogging & HomingAXIsCardPresent API Command DescriptionsDLL Initialization AXInitializeControlAXDownloadParameters2Card AXUpdateParamsParameter Functions Feedback & Status FunctionsAXBitOn Bit FunctionsAXGetDistanceToGoCoordinates AXGetAxisVelocityAXGetOutputs Bit Group FunctionsAXBitOff AXGetInputsAXGetAdcInputs Jog and Homing FunctionsAXGetMasterFlags AXGetMcodeBitsDescription AXHomeAxisRet = AXJogPlus CurrentAxis Ret = AXJogPlusFast CurrentAxisAX GetGCodeLineNumber MDI Mode FunctionsCode Functions AXLoadGCodeFileAXSetFov AXSetRov AXSetSov Virtual OverridesAXStopMDI AXExecuteMDIViewPort Layout Graphics FunctionsAXInitializeGPH AXSetGphViewAXClearSystemErr Error Message SystemAX SetGraphics AXSystemErrThis is not an API function but how we effect Feed hold Cycle FunctionsAXCycleStart FeedHoldThis is not an API function but how we effect a Reset ResetAuto/Step Mode Map Control SignalsAPI Users Guide Map Mcode Bits