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

Nc programming
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Work preparation
3.1 Flexible NC programming
Syntax
G[<group>]=<number>
Meaning
G[...]:
<group>:
<number>:
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
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 group 6)
Program code
N2010 R10=$P_GG[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.
436
G command with extension (index)
Index parameter: G group
Type:
INT
Variable for the G command number
Type:
INT or REAL
Comment
;G54
; G command calculation
;G55
Comment
; Read active G command of G group 6
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
NC programming

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents