(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

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