Flexible NC programming
1.4 Indirect programming
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
1-15
Note
R parameters can also be considered 1-dimensional arrays with abbreviated notation
(R10 is equivalent to R[10]).
Example: Indirect G code programming
Settable zero offset G code group 8
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 code calculation
N1110 G[8] = INT_VAR G1 X0 Y0 ; G55
Plane selection G code group 6
N2010 R10 = $P_GG[6] ; Read G code for current plane
...
N2090 G[6] = R10 ; G17