Programming
10.1 Fundamental Principles of NC Programming
Cylindrical grinding
Programming and Operating Manual, 07/2009, 6FC5398-4CP10-2BA0
229
Address
Meaning
Value assignments Information
Programming
M17
-
Reserved; do not use
M3
CW rotation of spindle (for master spindle)
M4
CCW rotation of spindle (for master
spindle)
M5
Spindle stop (for master spindle)
Mn=3
CW rotation of spindle (for spindle n)
n = 1 or = 2
M2=3 ; CW rotation stop for
spindle 2
Mn=4
CCW rotation of spindle (for spindle n)
n = 1 or = 2
M2=4 ; CCW rotation stop for
spindle 2
Mn=5
Spindle stop (for spindle n)
n = 1 or = 2
M2=5 ; Spindle stop for
spindle 2
M6
Tool change
Only if activated with M6 via the
machine control panel;
otherwise, change directly using
the T command
M40
Automatic gear stage switching
(for master spindle)
Mn=40
Automatic gear stage switching
(for spindle n)
n = 1 or = 2
M1=40 ; automatic gear
stage
; for spindle 1
M41 to M45 Gear stage 1 to
gear stage 5 (for master spindle)
Mn=41 to
Mn=45
Gear stage 1 to
gear stage 5 (for spindle n)
n = 1 or = 2
M2=41; 1st gear stage for
spindle 2
M70, M19
-
Reserved; do not use
M...
Remaining M functions
Functionality is not defined by
the control system and can
therefore be used freely by the
machine manufacturer
N
Block number -
subblock
0 ... 9999 9999
0 ... 9, only integer,
no sign
Can be used to identify blocks
with a number;
is written in the beginning of a
block
N20
:
Block number of a
main block
0 ... 9999 9999
0 ... 9, only integer,
no sign
Special block identification,
used instead of N... ; such a
block should contain all
instructions for a complete
subsequent machining step.
:20
P
Number of
subroutine passes
1 ... 9999
0 ... 9, only integer,
no sign
Is used if the subroutine is run
several times and is contained
in the same block as the call
L781 P... ;separate block
N10 L871 P3 ; three cycles
R0
to
R299
Arithmetic
parameters
± 0.0000001 ...
9999 9999
(8 decimal places)
or with specification
of an exponent:
± (10-300 ...
10+300 )
R1=7.9431 R2=4
with specification of an
exponent:
R1=-1.9876EX9; R1=-1 987
600 000