Flexible NC programming
1.4 Indirect programming
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
1-13
1.4 1.4 Indirect programming
Function
Indirect programming permits general-purpose use of programs. The extended address
(index) is substituted by a variable of suitable type.
Indirect G code programming
Indirect programming of G codes using variables facilitates effective cycle programming.
Two parameters
G code groups with integer constants
G code numbers with integer/real type variables
are available for this purpose.
Programming
ADDRESS[INDEX]
or
G[<group_index>] = <integer/real_variable>
Indirect programming of G codes using variables for effective cycle programming
Parameters
All addresses are parameterizable except:
• N - block number
• L - subroutine
Indirect programming is not possible for settable addresses.
Example: X[1] in place of X1 is not permissible.
ADDRESS Address with parameter details as index
[INDEX] Index variable, e.g., spindle no., axis ....
G<group_index G code groups: Integer constants with which the
G code group is selected.
<Integer/real_variable> G code numbers: Variable of the integer or real type
with which the G code number is selected
Valid G code groups
Only modal G code groups can be programmed indirectly.
Non-modal G code groups are rejected with alarm 12470.
Valid G code numbers
Arithmetic functions are not permissible in indirect G code programming.
The G code number must be stored in a variable of type integer or real. Invalid G code
numbers are rejected with alarm 12475.