Programming syntax

Syntax:

<axis_name> [ INDP ABORTING | BUFFERED [ OFFSET=..] G90 | G91 G00 | G01 [FEED=..] [POS=..] [DIR=..] | STOP ]

<axis_name>

Name of independent axis

INDP

Identifier for an independent axis

ABORTING /
BUFFERED

ABORTING interrupts the axis motion of a programmed axis that was previously started.
If the keyword is not specified, ABORTING is used by default.

Note: BUFFERED not available.

STOP

Axis stop and abortion of current motion job. Not combinable with other keywords

OFFSET

Parameter specifying which axis offsets are to be included in the calculation, see Offset table

G90 / G91

Absolute/relative dimension

G00 / G01

Rapid traverse/linear interpolation

FEED

Axis-specific feed rate in [mm/min, m/min, inch/min]
If FEED is programmed without specifying the direction and with a G function G00/G01, the axis is triggered in endless motion at the specified feed rate.

POS

Axis position in [mm, inch]

DIR

Direction; permitted parameters:

  • POS, positive direction
  • CUR, current direction
  • NEG, negative direction

Mathematical expressions can also be used to result in one of the values.

If ‘POS’ is used, it is mandatory to specify ‘G90’ or ‘G91’.

If this specification is missing, the error ID 50967 is output.

Offset keyword

Meaning

ALL

All active axis offsets

ZERO

Zero offsets

ADD_ZERO

Additive zero offsets and reference point offsets

PSET

Position presets

CLAMP

Clamping offsets

TOOL

Tool offsets

MEASURE

Measuring offsets

MANUAL

Manual mode offsets

Programming Example

Positioning with abort condition

; Task definition:
; As soon as the X axis moves across Position 100, the Z axis
; moves to Position 900.
; If the Z axis has already moved, this motion
; is aborted
; The motion is executed with all offsets included in the calculation.
N010 #RT CYCLE [ID=2 SCOPE=PROG]
N020   $IF ONCE V.RTA.ACS.ACT_POS.X > 100
N030     Z [INDP ABORTING G01 G90 FEED=500 POS=900 OFFSET=ALL]
N040   $ENDIF
N050 #RT CYCLE END
N060 G90 X100
N070 G90 X200
N080 M30

Programming Example

Endless turning with start condition

; Task definition:
; Turn Z endlessly in positive direction if X > 1mm
; Define real-time cycle
N10 #RT CYCLE [SCOPE = PROG]
N20   $IF ONCE V.RTA.ACS.ACT_POS.X > 1
N30     Z[INDP DIR = POS FEED = 1000]
N40   $ENDIF
N50 #RT CYCLE END
; Start motion
N60 G01 X100
; End--
N70 M30