Spindle speed (REV)

Syntax:

REV=..

Spindle speed in [rpm].

modal

Values can be assigned to the REV word directly or by means of parameters in [rpm] and decimal numbers are also permitted (REAL format).

A distinction must be made between the following types of use in conjunction with the spindle M functions in the case of the REV word:

  1. REV word in conjunction with M03, M04, M19:
    If the REV word is programmed in conjunction with M03/M04 or M19, the value following the REV word is interpreted as the spindle speed and is output to the spindle.
  2. REV word in conjunction with M05:
    Together with M05, the value following the REV word is transferred to the working data of the spindle speed but is not output to the spindle.

The REV word on its own does not generate a motion in the NC program. This requires that a spindle mode M03, M04, M19 is known. Accordingly, programming of M03, M04 and M19 only results in a motion if the REV word is set.

Notice

notice

An error message is output if the REV value is negative.

Programing Example

prg_example

Programming with spindle S1:

N10 S1[REV300]         (Speed 300 rpm is stored)

N20 S1[M04]            (Spindle rotation ccw at 300 rpm)

N30 S1[M03 REV1000]    (Spindle rotation cw at 1000 rpm)

N40 S1[REV500]         (M03 active, therefore spindle rotation cw at 500 rpm)

N50 S1[M05 REV100]     (Spindle stop, speed 100 rpm is stored)

N60 S1[M04]            (Spindle rotation ccw at 100 rpm)

N70 S1[M05]            (Spindle stop)

N80 M30                (Program end)

Channel parameter list [1]:

The synchronisation mode must be defined spindle-specific for the S word. An error message is generated in the case of synchronisation mode "0” (NO_SYNCH) since an S word may not be ignored.

:

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