Parker Hannifin acr-motion max api users guide Parameter Functions, Feedback & Status Functions

Page 9

(Parameter Functions)

AX_UpdateParams

Description Force DLL to Reload All Parameters from Parameters.Cfg File

Returns (Integer) 1 on Success, 0 on Failure

Arguments None

VB Example:

Private Sub UpdateParamsBtn_Click ()

Force DLL to Reload All Parameters from Parameters.Cfg File Call AX_UpdateParams

Sleep (10)

‘Force DLL to Update Params from Parameters.Cfg file to ServoCard Call AX_DownloadParameters2Card

Sleep (10)

Declaration: Public Declare Function AX_UpdateParams Lib _

"MotionCore.DLL" () As Integer

AX_DownloadParameters2Card

Description Force DLL to Update Params from Parameters.Cfg file to ServoCard

Returns (Integer) 1 on Success, 0 on Failure

Arguments None

VB Example:

Private Sub UpdateParamsBtn_Click ()

Force DLL to Reload All Parameters from Parameters.Cfg File Call AX_UpdateParams

Sleep (10)

‘Force DLL to Update Params from Parameters.Cfg file to ServoCard Call AX_DownloadParameters2Card

Sleep (10)

Declaration: Declare Function AX_DownloadParameters2Card Lib _ "MotionCore.DLL" () As Integer

(Feedback & Status Functions)

AX_GetEncoderCounts

Description Extract Encoder information from DLL in array

Returns (Integer) 1 on Success, 0 on Failure

Arguments Global EncoderArray (0 To 8) As Long

VB Example:

Private Sub IOTIMER_Timer ()

Ret = AX_GetEncoderCounts(EncoderArray(0)) 'Get ABS Encoder Pos array

API Users Guide

API Command Descriptions - 9

Image 9
Contents API Parker Hannifin Corporation All Rights Reserved Technical AssistanceContents Acroloop I/O Layout Introduction Getting StartedAPI Command Groups Error Message MDI Mode CommandsJogging & Homing Virtual OverridesDLL Initialization API Command DescriptionsAXInitializeControl AXIsCardPresentParameter Functions AXUpdateParamsFeedback & Status Functions AXDownloadParameters2CardAXGetDistanceToGoCoordinates Bit FunctionsAXGetAxisVelocity AXBitOnAXBitOff Bit Group FunctionsAXGetInputs AXGetOutputsAXGetMasterFlags Jog and Homing FunctionsAXGetMcodeBits AXGetAdcInputsRet = AXJogPlus CurrentAxis AXHomeAxisRet = AXJogPlusFast CurrentAxis DescriptionCode Functions MDI Mode FunctionsAXLoadGCodeFile AX GetGCodeLineNumberAXStopMDI Virtual OverridesAXExecuteMDI AXSetFov AXSetRov AXSetSovAXInitializeGPH Graphics FunctionsAXSetGphView ViewPort LayoutAX SetGraphics Error Message SystemAXSystemErr AXClearSystemErrAXCycleStart Cycle FunctionsFeedHold This is not an API function but how we effect Feed holdReset Auto/Step ModeThis is not an API function but how we effect a Reset Map Control SignalsAPI Users Guide Map Mcode Bits