Siemens Sinumerik 840D sl Programming Manual page 236

Fundamentals
Hide thumbs Also See for Sinumerik 840D sl:
Table of Contents

Advertisement

Motion commands
10.11 Tapping
Examples
Example 1: G331 and G332
Program code
N10 SPOS[n]=0
N20 G0 X0 Y0 Z2
N30 G331 Z-50 K-4 S200
N40 G332 Z3 K-4
N50 G1 F1000 X100 Y100 Z100 S300 M3
N60 M30
Example 2: Output the programmed drilling speed in the current gear stage
Program code
N05 M40 S500
...
N55 SPOS=0
N60 G331 Z-10 K5 S800
The appropriate gear stage for the programmed spindle speed S500 with M40 is determined
on the basis of the first gear-stage data block. The programmed drilling speed S800 is output
in the current gear stage and, if necessary, is limited to the maximum speed of the gear stage.
No automatic gear-stage change is possible following an SPOS operation. In order for an
automatic change in gear stage to be performed, the spindle must be in speed-control mode.
Note
If gear stage 2 is selected at a spindle speed of 800 rpm, then the switching thresholds for the
maximum and minimum speed must be configured in the relevant machine data of the second
gear-stage data block (see the examples below).
Example 3: Application of the second gear-stage data block
The switching thresholds of the second gear-stage data block for the maximum and minimum
speed are evaluated for G331/G332 and when programming an S value for the active master
spindle. Automatic M40 gear-stage change must be active. The gear stage as determined in
the manner described above is compared with the active gear stage. If they are found to be
different, a gear-stage change is performed.
Program code
N05 M40 S500
236
Comment
; Gear stage 1 is engaged since the programmed spin-
dle speed of 500 rpm is in the range between 20 and
1,028 rpm.
; Align spindle.
; Machine thread, spindle speed is 800 rpm in gear
stage 1.
Comment
; Gear stage 1 is selected.
Programming Manual, 01/2015, 6FC5398-1BP40-5BA2
Comment
; Prepare tapping.
; Approach starting point.
; Tapping, drilling depth 50, lead K
negative = counter-clockwise spindle
rotation.
; Retraction, automatic reversal of di-
rection.
; Spindle operates in spindle mode
again.
; End of program
Fundamentals

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents