Indirectly Programming Position Attributes (Gp) - Siemens SINUMERIK 840D sl Programming Manual

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Examples
Example 1: Settable zero offset (G function group 8)
Program code
N1010 DEF INT INT_VAR
N1020 INT_VAR=2
...
N1090 G[8]=INT_VAR G1 X0 Y0
N1100 INT_VAR=INT_VAR+1
N1110 G[8]=INT_VAR G1 X0 Y0
Example 2: Level selection (G function group 6)
Program code
N2010 R10=$P_GG[6]
...
N2090 G[6]=R10
References
For information on the G function groups, see:
Programming Manual, Fundamentals; Section "G function groups"
1.2.3

Indirectly programming position attributes (GP)

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
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
As a result of the indirect programming as variable, no
would otherwise branch for all possible position attributes.
Syntax
<POSITIONING COMMAND>[<axis/spindle>]=
GP(<position>,<position attribute)
<axis/spindle>=BP(<position>,<position attribute)
Job Planning
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
, ...):
AC
Comment
; G54
; G code calculation
; G55
Comment
; read active G function of G function
group 6
instruction is required, which
CASE
Flexible NC programming
1.2 Indirect programming
.
GP
65

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents