Programming
10.1 Fundamental principles of NC programming
Surface grinding
202
Programming and Operating Manual, 11/2012, 6FC5398-5CP10-3BA0
Address
Meaning
Value assignments Information
Programming
M30
-
Reserved; do not use
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
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
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
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