Programming principles
1.1 Fundamentals of programming
Turning Part 2: Programming (Siemens instructions)
Programming and Operating Manual, 05/2012, 6FC5398-5DP10-0BA0
21
Address Significance Value assignments Information Programming
DC Absolute
coordinate;
approach position
directly(for rotary
axis, spindle)
- It is also possible to specify the
dimensions for the end point of a
rotary axis with DC(...)
irrespective of G90/G91; also
applies to spindle positioning
N10 A=DC(45.3)
;Approach absolute
position of the A axis
directly
N20 SPOS=DC(33.1);
Position spindle
DEF Definition
instruction
Defining a local user variable of
the type
BOOL, CHAR, INT, REAL,
directly at the beginning of the
program
DEF INT VARI1=24,
VARI2 ; 2 variables of the
type INT
; name defined by user
DITS Run-in path
with thread G33
-1 ... < 0,
0,
> 0
Starting with configured axis
acceleration;
starting with sudden
acceleration;
run-in path specified, if
necessary with axis overload
N10 G33 Z50 K5 DITS=4
DITE Run-out path
with thread G33
-1 ... < 0,
0,
> 0
Braking with configured axis
acceleration.
Braking with sudden
acceleration,
specification of run-out path,
with rounding
N10 G33 Z50 K5 DITE=4
FRC Non-modal
feedrate for
chamfer/rounding
0, >0 When FRC=0, feedrate F will act For the unit, see F and
G94, G95;
for chamfer/rounding, see
CHF, CHR, RND
FRCM Modal feedrate for
chamfer/rounding
0, >0 When FRCM=0, feedrate F will
act
For the unit, see F and
G94, G95;
for rounding/modal
rounding, see RND,
RNDM
GOTOB GoBack instruction - A GoTo operation is performed
to a block marked by a label; the
jump destination is in the
direction of the program start.
N10 LABEL1: ...
...
N100 GOTOB LABEL1
GOTOF GoForward
instruction
- A GoTo operation is performed
to a block marked by a label; the
jump destination is in the
direction of the end of the
program.
N10 GOTOF LABEL2
...
N130 LABEL2: ...
IC Coordinate
specified using
incremental
dimensions
- The dimension can be specified
for the end or center point of a
certain axis irrespective of G90.
N10 G90 X10 Z=IC(20) ;Z
-incremental dimension,
X - absolute dimension