Moving spindle in spindle-specific syntax ((M3/M4/M5)

Syntax:

M03

Spindle rotation clockwise (cw)

modal

M04

Spindle rotation counter-clockwise (ccw)

modal

M05

Stop spindle

modal

The spindle M functions M03 and M04 define the spindle direction of rotation and must be used in conjunction with the spindle speed (REV word). M05 stops spindle rotation. Note that this spindle M function is the default spindle mode after controller start-up and initial program start. These M functions are modal and may only be programmed on their own within the bracketed expression.

Spindle rotation is activated if M03 or M04 are programmed and a valid speed (REV) is set.

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

Programing Example

prg_example

Programming of one spindle "S”:

N10 S[REV1000]     (Speed 1000 rpm is stored,)

                   (no spindle rotation because M05 is default)

N20 S[M03]         (Spindle rotation cw at 1000 rpm)

N30 S[M04]         (Spindle rotation ccw at 1000 rpm)

N40 S[REV500]      (Spindle rotation ccw at 500 rpm)

N50 S[M05 REV300]  (Spindle stop, speed 300 rpm is stored)

N60 S[M04]         (Spindle rotation ccw at 300 rpm)

N70 S[M05]         (Spindle stop)

N80 S[M03 REV1000] (Spindle rotation cw at 1000 rpm)

N90 M30                (Program end)

Programing Example

prg_example

Programming two spindles "S2”and "S2”:

N10 S[M03 REV1000]  S2[M04 REV2000]  (S cw 1000 rpm,S2 ccw 2000 rpm)

N20 S[M05]          S2[REV1500]      (S stop, S2 ccw at 1500 rpm)

N30 S[M04]                           (S ccw 1000 rpm)

N40                 S2[M05]          (S2 stop)

N50 S[M05 REV300]                    (S stop, store speed 300 rpm)

N60 S[M04]          S2[M04]          (S ccw 300 rpm, S2 ccw 1500 rpm)

N70 S[M05]          S2[M05]          (S stop, S2 stop)

N80 M30                              (Program end)

Channel parameter list [1]:

The synchronisation modes must be defined spindle-specific for M3, M4, M5. The M function is not executed for synchronisation 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