Restore gantry combination (#GANTRY ON, #GANTRY ON ALL)

Syntax for Restore a gantry combination:

#GANTRY ON [ { AXNR=.. | AX=<axis_name> } ]

AXNR=..

Logical axis number (P-AXIS-00016) of master axis

AX=<axis_name>

Name of the master axis of a gantry combination

Syntax for Restore a gantry combination:

#GANTRY ON ALL

The command

#GANTRY ON [AX=<master_axis_name>]

restores the gantry combination of the master axis <master_axis_name> based on the original machine data. All previous slave axes in the NC channel are implicitly released.

Similarly, the gantry combination can also be restored by the logical axis number.

#GANTRY ON [ AXNR=..]

The gantry difference is not cleared as long as parameter (P-AXIS-00704)

kenngr.gantry_on_mode = CONFIG

is set.

Programing Example

prg_example

Restore a gantry combination

#GANTRY OFF [AX=X]

; Request free slave axes

#CALL AX [Axis_X1, 5, 4]

#CALL AX [Axis_X2, 6, 5]

; Move axes as independent CNC axes

G0 X=47;X previous master axis of gantry combination 1

G0 Axis_X1=11 ; Axis_X1 previous slave axis 1 of X

G0 Axis_X2=12 ; Axis_X2 previous slave axis 2 of X

;…

#GANTRY ON [AX=X] ; Restore gantry combination 1

G0 X=65 ; Assigned slave axes 1 and 2 also move with

M30

In analogy to #GANTRY OFF ALL the command

#GANTRY ON ALL

all gantry combinations are restored.