Move spindle(M3, M4, M5)

Move spindle

M03

Spindle rotation clock wise (cw)

(modal)

M04

Spindle rotation counter clock wise (ccw)

(modal)

M05

Spindle stop

(modal)

The spindle M-functions M03, M04 and M05 define the spindle operating mode and must be used in conjunction with the S-word (Chapter 14.2.2–Spindle speed (S-word)). They have a stopping action and may each be programmed only alone in the NC-block.

Spindle rotation is activated if M03 or M04 has been programmed and a valid speed has been set.

M05 stops spindle rotation. It must be noted that this spindle M-function is the default spindle mode after control boot-up and initial program start.

If no M05 is set at the end of the program, the spindle continues to rotate.

Programming example

N10 S1000 (Speed 1000 U/min. is stored, no spindle rotation)
(because M05 is default)
N20 M03 (Spindle rotation cw with 1000 U/min.)
N30 M04 (Spindle rotation ccw with 1000 U/min.)
N40 S500 (Spindle rotation ccw with 500 U/min.)
N50 M05 S300 (Spindle rotation, speed 300 U/min. is stored)
N60 M04 (Spindle rotation ccw with 300 U/min.)
N70 M05 (Spindle stops)
N80 M03 S1000 (Spindle rotation cw with 1000 U/min.)
N90 M30 (Program end

Extract from channel parameters list [1]:

The synchronization modes must be defined spindle-specifically for M3, M4 and M5. The M-function is not executed in the case of synchronization mode “0” (NO_SYNCH).

: 
spindel[0].bezeichnung S1
spindel[0].log_achs_nr 6
spindel[0].s_synch 0x00000001
spindel[0].m3_synch 0x00000002
spindel[0].m4_synch 0x00000002
spindel[0].m5_synch 0x00000008
spindel[0].m19_synch 0x00000001
: