Example: Tapping With G331 / G332; Example: Output The Programmed Drilling Speed In The Current Gear Stage - Siemens SINUMERIK 840D Function Manual

Mc axes and spindles
Hide thumbs Also See for SINUMERIK 840D:
Table of Contents

Advertisement

18.2.8.3

Example: Tapping with G331 / 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
18.2.8.4

Example: 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 gearbox 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).
Axes and spindles
Function Manual, 06/2019, A5E47437747B AA
Comment
; Spindle: Position control mode
; Start position 0 degrees
; Axes: Approach starting position
; Tapping in Z,
; Pitch K-4 negative =>
; Direction of spindle rotation: CCW
rotation,
; Spindle speed 200 rpm
; Retraction motion in Z,
; Pitch K-4 negative (counterclock-
wise),
; autom. direction of rotation reversal
=>
; Clockwise spindle direction of rota-
tion
; Spindle in spindle operation
Comment
; Programmed spindle speed: 500 rpm =>
; Gearbox stage 1 (20 to 1028 rpm)
; Position the spindle
; Tapping
; Spindle speed 800 rpm => gearbox stage 1
S1: Spindles
18.2 Operating modes
765

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents