Spindle speed (S)
Syntax: | |
<spindle_name> .. | modal |
<spindle_name>.. | Designation of the main spindle as per P-CHAN-00053 with spindle speed in [rpm] |
In the configuration, the main spindle can be assigned a string in the channel parameter list (P-CHAN-00053). In order to avoid ambiguities, there must be an equals sign in front of the speed entry after all spindle names consisting of more than one character.
Values can be assigned to the S word directly or by means of parameters. Decimal numbers are also permitted (REAL format).
A distinction is made between the following types of use of the S word in conjunction with spindle M functions:
- S word in conjunction with M03, M04, M19:
If the S word or the string used for it is programmed in conjunction with M03/M04 or M19, the value following the S word is interpreted as the spindle speed and is output to the spindle. - S word in conjunction with M05:
The value following the S word is adopted as the spindle speed in the working data in conjunction with M05, but it is not output to the spindle.
The S word alone does not generate a motion in the NC program. This requires that a spindle mode M03, M04, M19 is known. Accordingly, programming M03, M04 and M19 only causes motion when the S word is set (> 0, analogous to G01, G02 and G03 in which traversing only occurs when the feedrate and the axes to be traversed are specified).
![]() | In the case of a negative S value, an error message is output. A negative S value is only permitted in conjunction with G63 (tapping) since it triggers reversal of the direction of rotation on withdrawal out of the thread bore. |
Programming Example
Programming with spindle S
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.
Programming Example
Spindle speed (S word)