Feedrate Control and Spindle Motion
7.4 Positioning spindles (SPOS, M19 and SPOSA, WAITS)
Fundamentals
Programming Manual, 11/2006, 6FC5398-1BP10-2BA0
285
Example, spindle positioning in the axis mode
...
N10 M3 S500
...
N90 SPOS[2]=0 or
;Position control on, spindle 2 positioned to 0, axis mode
;can be used in the next block.
M2=70
;Spindle 2 is switched to axis mode
N100 X50 C180
;Spindle 2 (C axis) is traversed with linear interpolation
;synchronous to X.
N110 Z20 SPOS[2]=90
;Spindle 2 is positioned to 90 degrees.
Example of drilling 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.