Spindle speed (REV)
Values can be assigned directly or by means of parameters to the REV-word, and decimal numbers are also permitted (REAL64 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:
- 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 output to the spindle.
- 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 not output to the spindle.
The REV-word on its own does not generate a movement in the NC-program. A spindle mode M03, M04, M19 must be known for this. Accordingly, programming of M03, M04 and M19 only results in a movement if the REV-word is set.
An error message is output in the case of a negative REV-value. |
Programming example
Programming with spindle S1:
N10 S1[REV300] (Speed 300 U/min. is stored)
N20 S1[M04] (Spindle rotation ccw with 300 U/min.)
N30 S1[M03 REV]1000 (Spindle rotation cw with 1000 U/min.)
N40 S1[REV500] (M03 active, spindle rotation cw with 500 U/min.)
N50 S1[M05 REV100] (Spindle stop, speed 100 U/min. is stored)
N60 S1[M04] (Spindle rotation ccw with 100 U/min.)
N70 S1[M05] (Spindel stop)
N80 M30 (Program end)
Extract from channel parameters list [1]:
The synchronization mode must be defined spindle-specifically for the S-word. An error message is generated in the case of synchronization 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
: