Siemens SINUMERIK 840D sl Programming Manual page 91

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

Advertisement

Program code
N160 SETMS
Further information
Interpretation of the S value for the master spindle
If function G331 or G332 is active in G group 1 (modally valid motion commands), the
programmed S-value will always be interpreted as the speed in rpm. Otherwise, the
interpretation of the S-value will depend upon G group 15 (feedrate type): If G96, G961 or G962
is active, the S-value is interpreted as a constant cutting rate in m/min; otherwise, it is
interpreted as a speed in rpm.
Changing from G96/G961/G962 to G331/G332 sets the value of the constant cutting rate to
zero; changing from G331/G332 to a function within the G group 1 other than G331/G332 sets
the speed value to zero. The corresponding S-values have to be reprogrammed if required.
Preset M commands M3, M4, M5
In a block with axis commands, functions M3, M4, M5 are activated before the axis movements
commence (basic setting on the control).
Example:
Program code
N10 G1 F500 X70 Y20 S270 M3
N100 G0 Z150 M5
Note
Machine data can be used to set when axis movements should be executed; either once the
spindle has powered up to the setpoint speed, or immediately after the programmed switching
operations have been traversed.
Working with multiple spindles
Five spindles (master spindle plus four additional spindles) can be available in one channel at
the same time.
One of the spindles is defined in machine data as the master spindle. Special functions such as
thread cutting, tapping, revolutional feedrate, and dwell time apply to this spindle. For the
remaining spindles (e.g. a second spindle and an actuated tool) the numbers corresponding to
the speed and the direction of rotation / spindle stop must be specified.
Example:
Program code
N10 S300 M3 S2=780 M2=4
Programmable switchover of master spindle
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
Comment
; Switching back to master spindle S1.
Comment
; The spindle ramps up to 270 rpm and the move-
ments then executed in X and Y.
; Spindle stop before the retraction movement
in Z.
Comment
; Master spindle: 300 rpm, CW rotation
2nd spindle: 780 rpm, CCW rotation
Fundamentals
2.6 Spindle motion
91

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents