Program variant 1:
Program code
...
N10 M3 S500
...
N90 SPOS[2]=0
N100 X50 C180
N110 Z20 SPOS[2]=90
Program variant 2:
Program code
...
N10 M3 S500
...
N90 M2=70
N100 X50 C180
N110 Z20 SPOS[2]=90
Example 3: Drill cross holes in turned part
Cross holes are to be drilled in this turned part. The running drive spindle (master spindle) is
stopped at zero degrees and then successively turned through 90°, stopped and so on.
Fundamentals
Programming Manual, 09/2011, 6FC5398-1BP40-2BA0
7.4 Positioning spindles (SPOS, SPOSA, M19, M70, WAITS)
Comment
; Position control on, spindle 2 positioned to 0, axis mode can be used in
the next block.
; Spindle 2 (C axis) is traversed with linear
interpolation synchronized with X.
; Spindle 2 is positioned to 90 degrees.
Comment
; Spindle 2 switches to axis mode.
; Spindle 2 (C axis) is traversed with linear
interpolation synchronous to X.
; Spindle 2 is positioned to 90 degrees.
Feed control
129