Parker Hannifin acr-motion max api users guide manual Cycle Functions, AXCycleStart, FeedHold

Page 18

(Cycle Functions)

AX_CycleStart

Description

Cause DLL to Start running the current Loaded G code file from the Specified Line

Returns

(Integer) 1 on Success, 0 on Failure

Arguments:

Global Linenum as Long

VB Example:

Call AX_CycleStart (0) ‘ Start Program from first Line

Declaration:

Public Declare Function AX_CycleStart Lib _

 

"MotionCore.DLL" (ByVal Linenum as Long) As Integer

Note: DLL Motion List is zero based.

The System can run in 2 modes Auto/Step

To Set control System in Auto Mode

Call AX_BitOn (133) 'Set Auto/Step Mode Bit=1

Call AX_BitOn (134) ' RunMode bit on

To Set control System in Step Mode

Call AX_BitOff (133) 'Set Auto/Step Mode Bit=0

Call AX_BitOn (134) ' RunMode bit on

FeedHold

Description Setting these bits in an Option Button will effect a feed hold to the Card

This is not an API function but how we effect Feed hold

Returns Nothing

Arguments: None

VB Example: Private Sub FHoldBtn_Click ()

If FHoldBtn.value = 1 Then

Call AX_BitOn (520) 'set feed hold to card

Call AX_BitOn (131) 'set feed hold Control Signal bit CmdStart.Enabled = False 'Cycle Start Button INCYCLE = False

Else

Call AX_BitOff (518) 'Clear Feed hold to card Call AX_BitOff (519) 'Clear Feed hold to card Call AX_BitOff (520) 'Clear Feed hold to card

Call AX_BitOff (131) 'Clear Feed hold Control Signal bit ' program running bit

If Mid (ControlSignals, 75, 1) = 1 Then CmdStart.Enabled = True 'Cycle Start Button End If

End If

End Sub

18 - API Command Descriptions

API Users Guide

Image 18
Contents API Technical Assistance Parker Hannifin Corporation All Rights ReservedContents Acroloop I/O Layout Getting Started IntroductionAPI Command Groups Jogging & Homing MDI Mode CommandsError Message Virtual OverridesAXInitializeControl API Command DescriptionsDLL Initialization AXIsCardPresentFeedback & Status Functions AXUpdateParamsParameter Functions AXDownloadParameters2CardAXGetAxisVelocity Bit FunctionsAXGetDistanceToGoCoordinates AXBitOnAXGetInputs Bit Group FunctionsAXBitOff AXGetOutputsAXGetMcodeBits Jog and Homing FunctionsAXGetMasterFlags AXGetAdcInputsRet = AXJogPlusFast CurrentAxis AXHomeAxisRet = AXJogPlus CurrentAxis DescriptionAXLoadGCodeFile MDI Mode FunctionsCode Functions AX GetGCodeLineNumber AXExecuteMDI Virtual Overrides AXStopMDI AXSetFov AXSetRov AXSetSovAXSetGphView Graphics FunctionsAXInitializeGPH ViewPort LayoutAXSystemErr Error Message SystemAX SetGraphics AXClearSystemErrFeedHold Cycle FunctionsAXCycleStart 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 Control Signals MapAPI Users Guide Map Mcode Bits