Flexible NC programming
1.2 Indirect programming
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
59
Example 2: Level selection (G function group 6)
Program code Comment
N2010 R10=$P_GG[6] ; Read active G function of G function
group 6
...
N2090 G[6]=R10
References
For information on the G function groups, refer to:
Programming Manual, Fundamentals; Chapter "G function groups"
1.2.3 Indirectly programming position attributes (BP)
Function
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
BP.
Application
The indirect programming of position attributes is used in replacement cycles, as in this
case, the following advantage exists over programming position attributes as keyword
(e.g.
IC, AC, ...):
As a result of the indirect programming as variable, no
CASE instruction is required, which
would otherwise branch for all possible position attributes.
Syntax
<POSITIONING COMMAND>[<axis/spindle>]=
BP(<position>,<position attribute)
<axis/spindle>=BP(<position>,<position attribute)