Changing the main spindle (#MAIN SPINDLE)
Syntax: |
#MAIN SPINDLE [ [ <spindle_name> | <spindle_number> ] ] |
<spindle_name> | Default spindle name according to [1]-3. |
<spindle_number> | log. axis number of the spindle according to [1]-3. |
The #MAIN SPINDLE command can be used to change the definition of the main spindle in the NC program. The new main spindle is selected by specifying the default name (P-CHAN-00053) or the related logical axis number.
The initial state (as after start-up) can be restored without programming a spindle name, i.e. the spindle preset in the channel parameter list P-CHAN-00051 becomes the main spindle again.
Channel parameter list [1]:
Configuration example of a 1-channel system with 3 spindles. Spindle with axis number 6 is the main spindle:
Configuration after start-up:
S1 is the main spindle with the name "S”.
"S2” and "S3” are other spindles.
Programming Example
Changing the main spindle
![]() | As long as a spindle is a main spindle, it can either be programmed with the defined main spindle name P-CHAN-00053 or with its default name [1]-3. It can only be addressed exclusively by its default name again after another main spindle is selected with #MAIN spindle[ ]. |
The following applies in the example above:
Permissible names | Spindle 1 | Spindle 2 | Spindle 3 |
...after start-up | S or S1 | S2 | S3 |
...after #MAIN SPINDLE [S2] | S1 | S or S2 | S3 |
...after #MAIN SPINDLE [S3] | S1 | S2 | S or S3 |
...after #MAIN SPINDLE | S or S1 | S2 | S3 |
As already mentioned, the main spindle can be programmed in the conventional DIN syntax. In this case, all commands in the table in Section Spindle programming can be used. The main spindle may also be programmed in spindle-specific syntax. However, in this case only the restricted command set then is available (see also the table in Section Spindle programming..