Syntax
G[<group>]=<number>
Meaning
G[...]: G command with extension (index)
<group>: Index parameter: G group
Type: INT
<number>: Variable for the G command number
Type: INT or REAL
Note
Generally, only G commands that do not determine the syntax can be indirectly programmed.
Only G group 1 is possible from the G commands that determine the syntax.
The syntax-determining G commands of G groups 2, 3 and 4 are not possible.
Note
Arithmetic functions are not permitted in the indirect G command programming. If it is
necessary to calculate the G command number, this must be done in a separate part program
line before the indirect G command programming.
Examples
Example 1: Adjustable work offset (G group 8)
Program code Comment
N1010 DEF INT INT_VAR
N1020 INT_VAR=2
...
N1090 G[8]=INT_VAR G1 X0 Y0 ;G54
N1100 INT_VAR=INT_VAR+1 ; G command calculation
N1110 G[8]=INT_VAR G1 X0 Y0 ;G55
Example 2: Level selection (G group 6)
Program code Comment
N2010 R10=$P_GG[6] ; Read active G command of G group 6
...
N2090 G[6]=R10
3.1.2.3 Indirectly programming position attributes (GP)
Position attributes, e.g. the incremental or absolute programming of the axis position, can be
indirectly programmed as variables in conjunction with the key word GP.
Work preparation
3.1 Flexible NC programming
NC programming
436 Programming Manual, 12/2019, 6FC5398-2EP40-0BA0