Comparative Command Overview

Command Classic Interpreter

Command GST Interpreter

Modal or Nonmodal

Description

ANG

 

Nonmodal.

Contour line programming (angle).

Command Classic Interpreter

Command GST Interpreter

Modal or Nonmodal

Description

CalcInvRot

 

Nonmodal.

Calculates the inverse rotation of a vector.

CalcRot

 

Nonmodal.

Calculates the rotation of a vector.

Command Classic Interpreter

Command GST Interpreter

Modal or Nonmodal

Description

CDOF

collisionElimination
Supplying a zero vector.

Modal.

Bottleneck detection off.

CDON

collisionElimination
Supplying a nonzero vector.

Modal.

Bottleneck detection on.

 

collisionEliminationFlush

 

This function can be called during active collision elimination to ignore any conflicts between the path preceding the call and the path succeeding the call.

Command Classic Interpreter

Command GST Interpreter

Modal or Nonmodal

Description

CFC

feedModeSet(feedMode:= FeedModeType)

Modal.

Constant velocity at the contour.

CFIN

feedModeSet(feedMode:= FeedModeType)

Modal.

Constant velocity in the interior circle.

CFTCP

feedModeSet(feedMode:= FeedModeType)

Modal.

Constant velocity of the tool center point.

Command Classic Interpreter

Command GST Interpreter

Modal or Nonmodal

Description

CIP

G303

 

An circular arc (CIP circle) can be programmed, that can be freely located in space.

 

moveCircle3D

Nonmodal.

Circular interpolation. Move circular by rotating around the center cx,cy,cz and the normal vector nx,ny,nz by the given angle.

CPCOF

centerpointCorrectionSet

Modal.

Center point correction off.

CPCON

centerpointCorrectionSet

Modal.

Center point correction on.

Command Classic Interpreter

Command GST Interpreter

Modal or Nonmodal

Description

DelDTG

G31

Nonmodal.

Delete distance to go.

Command Classic Interpreter

Command GST Interpreter

Modal or Nonmodal

Description

DYNOVR

dynOverrideSet

Modal.

Dynamic override.

Command Classic Interpreter

Command GST Interpreter

Modal or Nonmodal

Description

FCONST

feedInterpolationSet(feedInterpolation:= fiConstant)

Modal.

Constant feed programming.

FLIN

feedInterpolationSet(feedInterpolation:= fiLinear)

Modal.

Linear feed programming.

Command Classic Interpreter

Command GST Interpreter

Modal or Nonmodal

Description

G00

G00

Modal.

Rapid traverse.

G01

G01

Modal.

Straight line interpolation.

G02

G02

Modal.

Clockwise circular interpolation.

G03

G03

Modal.

Counterclockwise circular interpolation.

G04

G04

Nonmodal.

Dwell time.

G09

G09

Nonmodal.

Accurate stop.

Command Classic Interpreter

Command GST Interpreter

Modal or Nonmodal

Description

G17

G17

Modal.

Plane selection XY.

G18

G18

Modal.

Plane selection ZX.

G19

G19

Modal.

Plane selection YZ.

Command Classic Interpreter

Command GST Interpreter

Modal or Nonmodal

Description

G40

G40

Modal.

No miller/ cutter radius compensation.

G41

G41

Modal.

Miller/ cutter radius compensation left.

G42

G42

Modal.

Miller/ cutter radius compensation right.

Command Classic Interpreter

Command GST Interpreter

Modal or Nonmodal

Description

G53

G53

Modal.

Zero shift suppression.

G54

G54

Modal.

1st adjustable zero offset shift.

G55

G55

Modal.

2nd adjustable zero offset shift.

G56

G56

Modal.

3rd adjustable zero offset shift.

G57

G57

Modal.

4th adjustable zero offset shift.

G58

G58

Modal.

1st programmable zero offset shift.

G59

G59

Modal.

2nd programmable zero offset shift.

Command Classic Interpreter

Command GST Interpreter

Modal or Nonmodal

Description

G60

G60

Modal.

Accurate stop.

Command Classic Interpreter

Command GST Interpreter

Modal or Nonmodal

Description

G70

G70

Modal.

Dimensions in inch.

G71

G71

Modal.

Dimensions metric.

G74

 

Nonmodal.

Programmed traverse to reference point.

Command Classic Interpreter

Command GST Interpreter

Modal or Nonmodal

Description

G90

G90

Modal.

Reference dimension notation.

G91

G91

Modal.

Incremental dimension notation.

Command Classic Interpreter

Command GST Interpreter

Modal or Nonmodal

Description

G700

G700

Modal.

Dimensions in inches with calculation of the feed.

G710

G710

Modal.

Dimensions metric with calculation of the feed.

Command Classic Interpreter

Command GST Interpreter

Modal or Nonmodal

Description

MOD

 

Nonmodal.

Modulo movement.

Command Classic Interpreter

Command GST Interpreter

Modal or Nonmodal

Description

MSG

msg

Nonmodal.

Message from the NC program.

Command Classic Interpreter

Command GST Interpreter

Modal or Nonmodal

Description

NORM

 

Nonmodal.

Orthogonal approach off the contour and orthogonal departure from the contour.

Command Classic Interpreter

Command GST Interpreter

Modal or Nonmodal

Description

P+

P<1>

Modal.

Feed direction positive.

P-

P<-1>

Modal.

Feed direction negative.

paramAutoAccurateStop

autoAccurateStopSet

Modal.

Automatic accurate stop.

paramAxisDynamics

axisDynamicsSet

Modal.

Parameterization of the axis dynamics.

paramC1ReductionFactor

 

Modal.

C1 reduction factor.

paramC2ReductionFactor

 

Modal.

C2 reduction factor.

paramCircularSmoothing

 

Modal.

Circular smoothing.

paramDevAngle

 

Modal.

C0 reduction - deflection angle.

paramGroupVertex

 

Modal.

Circular smoothing (old).

paramGroupDynamic

 

Modal.

Path dynamics (old).

paramPathDynamics

pathDynamicsSet

Modal.

Path dynamics.

paramRadiusPrec

 

Modal.

Circular accuracy.

paramSplineSmoothing

smoothingSet

Modal.

Vertex smoothing. NC: Smoothing with Bezier Splines.

paramVertexSmoothing

smoothingSet

Modal.

Smoothing of segment transitions.

 

transBSpline

Modal.

Spline interpolation.

paramVeloJump

 

Modal.

C0 reduction - maximum step change in velocity.

paramVeloMin

 

Modal.

Minimum velocity.

paramZeroShift

zeroOffsetShiftSet

Modal.

Parameterization of the configurable zero shift.

PathAxesPos

frameGet,
qAxisGet

Nonmodal.

Reads the actual position.

Command Classic Interpreter

Command GST Interpreter

Modal or Nonmodal

Description

ZeroShiftIncOff

 

Modal.

Zero shift is not applied under G91.

ZeroShiftIncOn

 

Modal.

Zero shift is applied under G91.

Command Classic Interpreter

Command GST Interpreter

Modal or Nonmodal

Description

AROT

transRotA

Modal.

Rotation additive.

ROT

transRotX, transRotY, transRotZ

Modal.

Absolute rotation.

RotExOff

 

Modal.

Extended rotation function off.

RotExOn

 

Modal.

Extended rotation function on.

RotVec

 

Nonmodal.

Calculation routine for rotating a vector.

RToDwordGetBit

 

Modal.

Converts an R-parameter to DWord and checks whether a defined bit is set.

Command Classic Interpreter

Command GST Interpreter

Modal or Nonmodal

Description

Mirror

transMirrorX, transMirrorY, transMirrorZ

Modal.

Mirroring the coordinate system.

 

transScale

Modal.

Scales the coordinate system by the factor in the X-dimension, Y-dimension and Z-dimension.

 

transScaleAxis

Modal.

Scales the selected path axis (axisNo) by the factor.

 

transDepth

Nonmodal.

Yields the depth of the stack of transformations.

 

transRestore

Modal.

Reduces the stack of transformations to the given depth.

 

transPop

Modal.

Pops a transformation from the stack of transformations.

Command Classic Interpreter

Command GST Interpreter

Modal or Nonmodal

Description

rParam

rSet(index := LINT, value := LREAL)

Nonmodal.

Assigning a Value to an R-Parameter.

rParam

rGet(index := LINT)

Nonmodal.

Reading an R-Parameter Value.

Command Classic Interpreter

Command GST Interpreter

Modal or Nonmodal

Description

SEG

 

Nonmodal.

Contour line programming (segment length).

skip VirtualMovements

 

Modal.

Skip virtual movements.

Command Classic Interpreter

Command GST Interpreter

Modal or Nonmodal

Description

ToolOffsetIncOff

 

Modal.

Cartesian tool displacement and length compensation is not applied under G91.

ToolOffsetIncOn

 

Modal.

Cartesian tool displacement and length compensation is applied under G91.

ToolParam

toolParamSet

Modal.

Set a tool parameter. NC: Writing and reading of tool parameters.

ToolParam

toolParam

Modal.

Yields the given tool parameter. NC: Writing and reading of tool parameters.

ToolParam

toolSet

Modal.

Set all parameters of a tool. NC: Writing and reading of tool parameters.

TPM

 

Nonmodal.

Target position monitoring.

Command Classic Interpreter

Command GST Interpreter

Description

 

trcApproachDepartSet

Configures the approach and depart behavior to use an arc of given radius and angle.

 

trcOffsetSet

Configures the amount of segment extension that is used to close gaps.

 

trcLimitSet

Configures the lookahead that is used for collision avoidance.

 

trcParam

Returns the current configuration as a structure value.

 

trcParamSet

Configures the tool radius compensation.

 

trcParamType

This structure contains all configuration parameters of the tool radius compensation.

Command Classic Interpreter

Command GST Interpreter

Description

 

queryAxes

Set the MCS (machine coordinate system) coordinates of the interpreter to the actual coordinates of the physical axes.

Command Classic Interpreter

Command GST Interpreter

Description

 

disableMask

Yields the current value of the disable mask.

Block Skipping
/

disableMaskSet

Sets the internal disable mask to the given value.

Command Classic Interpreter

Command GST Interpreter

Description

L

Userdefined Functions

Call of a subroutine.

 

#include

Directive inserts the contents of another file. Typically, it is used to “import” commonly used code like e.g. libraries.

 

runFile

Streaming of large G-Code files.

Command Classic Interpreter

Versions

Command GST Interpreter

Description

@40

@40 Kn Rn Rm …

 

Save register on the stack.

@41

@41 Rn Rm

 

Save register on the stack.

@42

@42 Kn … Rm Rn

 

Restore register from stack.

@43

@43 Rm Rn

 

Restore register from stack.

Command Classic Interpreter

Versions

Command GST Interpreter

Description

@100

@100 K±n @100 Rm

Jump statement

Unconditional jump.

Command Classic Interpreter

Versions

Command GST Interpreter

Description

@111

@111 Rn K/Rn Km …

CASE OF

Case block.

Command Classic Interpreter

Versions

Command GST Interpreter

Description

@121

@121 Rn K/Rn Kn

IF-THEN-ELSIF-ELSE;CASE OF; GOTO

Jump if unequal.

@122

@122 Rn K/Rn Kn

IF-THEN-ELSIF-ELSE;CASE OF; GOTO

Jump if equal.

@123

@123 Rn K/Rn Kn

IF-THEN-ELSIF-ELSE;CASE OF; GOTO

Jump if less or equal.

@124

@124 Rn K/Rn Kn

IF-THEN-ELSIF-ELSE;CASE OF; GOTO

Jump if less.

@125

@125 Rn K/Rn Kn

IF-THEN-ELSIF-ELSE;CASE OF; GOTO

Jump if greater or equal.

@126

@126 Rn K/Rn Kn

IF-THEN-ELSIF-ELSE;CASE OF; GOTO

Jump if greater.

Command Classic Interpreter

Versions

Command GST Interpreter

Description

@131

@131 Rn K/Rn Kn

WHILE

Loop while equal.

@132

@132 Rn K/Rn Kn

WHILE

Loop while unequal.

@133

@133 Rn K/Rn Kn

WHILE

Loop while greater.

@134

@134 Rn K/Rn Kn

WHILE

Loop while greater or equal.

@135

@135 Rn K/Rn Kn

WHILE

Loop while less.

@136

@136 Rn K/Rn Kn

WHILE

Loop while less or equal.

Command Classic Interpreter

Versions

Command GST Interpreter

Description

@141

@141 Rn K/Rn Kn

REPEAT

Repeat until equal.

@142

@142 Rn K/Rn Kn

REPEAT

Repeat until unequal.

@143

@143 Rn K/Rn Kn

REPEAT

Repeat until greater.

@144

@144 Rn K/Rn Kn

REPEAT

Repeat until greater or equal.

@145

@145 Rn K/Rn Kn

REPEAT

Repeat until less.

@146

@146 Rn K/Rn Kn

REPEAT

Repeat until less or equal.

Command Classic Interpreter

Versions

Command GST Interpreter

Description

@151

@151 Rn K/Rn Kn

FOR

FOR_TO loop.

Command Classic Interpreter

Versions

Command GST Interpreter

Description

@161

@161 Rn K/Rn Kn

FOR

FOR_DOWNTO loop.

Command Classic Interpreter

Versions

Command GST Interpreter

Description

@200

@200 Rn

 

Delete a variable.

@202

@202 Rn Rm

 

Swap two variables.

Command Classic Interpreter

Versions

Command GST Interpreter

Description

@302

@302 K/R/Pn K/R/Pn R/Pn

 

Read machine data bit.

@361

@361 Rn Km

 

Read machine-related actual axis value.

@372

@372 Rn

 

Extract the NC-Channel-ID and store it in a variable.

Command Classic Interpreter

Versions

Command GST Interpreter

Description

@402

@402 K/R/Pn K/R/Pn K/R/Pn

circleCenterReferenceSet

Write machine data bit.

 

 

circleCenterReferenceGet

Returns the current center point reference for circles.

Command Classic Interpreter

Versions

Command GST Interpreter

Description

@610

@610 Rn Rn

ABS

Find the absolute value of a variable.

@613

@613 Rn Rn

SQRT

Find the square root of a variable.

@614

@614 Rn Rm Rm

SQRT(a^2 + b^2)

Find the square root of the sum of the squares of two variables !x := sqrt(a^2 + b^2);.

Command Classic Interpreter

Versions

Command GST Interpreter

Description

@620

@620 Rn

!var := var+1;

Increment variable.

@621

@621 Rn

!var := var-1;

Decrement variable.

@622

@622 Rn

 

Find integer part of a variable.

Command Classic Interpreter

Versions

Command GST Interpreter

Description

@630

@630 Rn Rm

SIN

Find the sine of a variable.

@630

@630 Rn Rm

gSin

Find the sine of a variable.

@631

@631 Rn Rm

COS

Find the cosine of a variable.

@631

@631 Rn Rm

gCos

Find the cosine of a variable.

@632

@632 Rn Rm

TAN

Find the tangent of a variable.

@632

@632 Rn Rm

gTan

Find the tangent of a variable.

@633

@633 Rn Rm

 

Find the cotangent of a variable.

@634

@634 Rn Rm

ASIN

Find the arc sine of a variable.

@634

@634 Rn Rm

gASin

Find the arc sine of a variable.

@635

@635 Rn Rm

ACOS

Find the arc cosine of a variable.

@635

@635 Rn Rm

gACos

Find the arc cosine of a variable.

@636

@636 Rn Rm

gATan

Find the arc tangent of a variable.

 

 

gATan2

Returns the arc tangent of y/x.

Command Classic Interpreter

Versions

Command GST Interpreter

Description

@714

@714

sync()

Decoder stop.

@716

@716

A combination of sync()and queryAxes() replaces the former @716-command.

Decoder stop with rescan of the axis positions.

@717

@717

wait()

Decoder stop with external trigger event.

Command Classic Interpreter

Command GST Interpreter

Description

 

LN(x)

Returns the natural logarithm of x.

 

LOG(x)

Returns the decimal logarithm of x.

 

EXP(x)

Returns e raised to the power of x.

 

ADD(x1, x2, …)

Returns the sum of all parameters.

 

MUL(x1, x2, …)

Returns the product of all parameters.

 

SUB(x, y)

Returns the difference x-y.

 

DIV(x, y)

Returns the quotient x/y.

 

MOD(x, y)

Returns the remainder of the integer division x/y.

 

EXPT(x, y)

Returns x raised to the power of y.

Command Classic Interpreter

Command GST Interpreter

Description

 

GT(x, y)

Returns TRUE if x is larger than y.

 

GE(x, y)

Returns TRUE if x is not smaller than y.

 

EQ(x, y)

Returns TRUE if x and y are equal.

 

LE(x, y)

Returns TRUE if x is not larger than y.

 

LT(x, y)

Returns TRUE if x is smaller than y.

 

NE(x, y)

Returns TRUE if x and y are not equal.

Command Classic Interpreter

Command GST Interpreter

Description

 

<nativeType>_to_<nativeType>(x),

to_<nativeType>(x)

Explicit conversion between the given native types.

Logical Operations

Command Classic Interpreter

Command GST Interpreter

Description

 

AND(x1, x2, …)

Returns the bitwise Logical And of all parameters.

 

OR(x1, y2, …)

Returns the bitwise Logical Or of all parameters.

 

XOR(x1, x2, …)

Returns the bitwise Logical Exclusive Or of all parameters.

 

NOT(x)

Returns the bitwise complement of x.

Min, Max and Limit

Command Classic Interpreter

Command GST Interpreter

Description

 

MAX(x1, x2, …)

Returns the maximum of all parameters.

 

MIN(x1, x2, …)

Returns the minimum of all parameters.

 

LIMIT(min, in, max)

Returns in if it lies in the interval [min,max]. Otherwise, the violated bound (min or max) is returned.

Rotation

Command Classic Interpreter

Command GST Interpreter

Description

 

ROL(x, y)

Returns the bitstring x rotated left by y bits.

 

ROR(x, y)

Returns the bitstring x rotated right by y bits.

Selection (Conditional Expressions)

Command Classic Interpreter

Command GST Interpreter

Description

 

SEL(cond, x1, x2)

Returns x1 if cond is FALSE, and x2 otherwise.

 

MUX(select, x0, x1, …, xN)

Returns x<select>.

Shift

Command Classic Interpreter

Command GST Interpreter

Description

 

SHL(x, y)

Returns the bitstring x shifted left by y bits.

 

SHR(x, y)

Returns the bitstring x shifted right by y bits.

Units

Command Classic Interpreter

Command GST Interpreter

Description

 

unitAngleSet(unitAngle:= UnitAngle)

Set the unit for angles to unitAngle.

 

UnitAngle

Enumeration of unit angles.

 

unitLengthSet(unitLength:= UnitLength)

Set the unit for lengths to unitLength.

 

UnitLength

Enumeration of unit lengths.

 

unitTimeSet(unitTime:= UnitTime)

Set the unit for time to unitTime.

 

UnitTime

Enumeration of unit times.

 

unitVelocitySet(unitLength:= UnitLength, unitTime:= UnitTime)

Set the unit for velocity to unitLength/unitTime.