Siemens SINUMERIK 840D sl Programming Manual page 262

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

Advertisement

Motion commands
9.12 Tapping without compensating chuck (G331, G332)
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 record. 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 record (see the examples below).
262
Comment
; Prepare tapping.
; Approach starting point.
; Tapping, drilling depth 50, lead K
negative = counterclockwise spindle
rotation.
; Retraction, automatic reversal of
direction.
; Spindle operates in spindle mode
again.
; End of program.
Comment
; Gear stage 1 is engaged since the programmed spindle
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.
Programming Manual, 09/2011, 6FC5398-1BP40-2BA0
Fundamentals

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents