LinuxCNC Documentation
This page is 9% translated. Untranslated text is shown in English.

1. F: Set Feed Rate

Fx - set the feed rate to x. x is usually in machine units (inches or millimeters) per minute.

The application of the feed rate is as described in the Feed Rate Section, unless inverse time feed rate mode or feed per revolution mode are in effect, in which case the feed rate is as described in the G93 G94 G95 section.

2. S: Set Spindle Speed

Sx [$n] - set the speed of the spindle to x revolutions per minute (RPM) with the optional $ set the spindle speed for a specific spindle. Without the $ the command will default to spindle.0.

The spindle(s) or selected spindle will turn at that speed when a M3 or M4 is in effect. It is OK to program an S word whether the spindle is turning or not. If the speed override switch is enabled and not set at 100%, the speed will be different from what is programmed.

It is OK to program S0, the spindle will not turn if that is done.

It is an error if:

  • the S number is negative.

As described in the section Right-hand Tapping Cycle with Dwell, if a G84 (tapping) drilling cycle is active and the speed and feed potentiometers are enabled, the one with the lowest setting will be used. The rotational speed and feed rate will remain synchronized. In this case, the speed may differ from the one programmed, even if the speed correction potentiometer is set to 100%.

3. T: Select Tool

Tx - prepare to change to tool x.

Pour sélectionner un outil, programmer T-, où la valeur de T correspond au numéro de la poche d’outil dans le carrousel. L’outil ne sera appelé et changé que quand un M6 sera programmé voir la section sur l’appel d’outil. Le mot T peut apparaitre sur la même ligne que le M6 ou sur une ligne précédente. Il est permis, mais normalement inutile, qu’un mot T apparaisse à plus de deux lignes avant, sans changement d’outil. Le carrousel peut bouger, seulement le plus récent mot T ne prendra effet qu’au prochain changement d’outil. Il est permis de programmer T0, aucun outil ne sera sélectionné. C’est utile pour avoir la broche vide.

Note
When LinuxCNC is configured for a nonrandom toolchanger (see the entry for RANDOM_TOOLCHANGER in the EMCIO Section), T0 gets special handling: no tool will be selected. This is useful if you want the spindle to be empty after a tool change.
Note
When LinuxCNC is configured for a random toolchanger (see the entry for RANDOM_TOOLCHANGER in the EMCIO Section), T0 does not get any special treatment: T0 is a valid tool like any other. It is customary to use T0 on a random toolchanger machine to track an empty pocket, so that it behaves like a nonrandom toolchanger machine and unloads the spindle.

It is an error if:

  • a negative T number is used,

  • T number is used that does not appear in the tool table file (with the exception that T0 on nonrandom toolchangers is accepted, as noted above).

On some machines, the carousel will move when a T word is programmed, at the same time machining is occurring. On such machines, programming the T word several lines before a tool change will save time. A common programming practice for such machines is to put the T word for the next tool to be used on the line after a tool change. This maximizes the time available for the carousel to move.

Rapid moves after a T<n> will not show on the AXIS preview until after a feed move. This is for machines that travel long distances to change the tool like a lathe. This can be very confusing at first. To turn this feature off for the current tool program a G1 without any move after the T<n>.