Select Spindle


Statements to be written in Mastercam, “Toolpath Parameters” > “Comment” operation:

SELECT SPINDLE=MAIN
SELECT SPINDLE=SUB

After adding these expressions in Mastercam, the expression will be added to the created NCI file.

Type of UDE:

It is a standard type UDE. In standard usage, there is no need to make an extra definition in MANUSpost developer to activate this UDE. However, if desired, UDE can be defined in the CAM settings section of MANUSpost developer (can also be defined as “Custom UDE”). In this case, the user can make extra customizations in this UDE, create and use “Event”, “Script”, “Command” connected to the UDE. In this case, the standard UDE will be deactivated and the custom UDE will be activated.

What Is It Used For?:

It is used in machines with subspindle and single turret. It is used to determine which spindle is active and cutting in this type of machines. In case UDE is not added, MAIN spindle is active by default.

How to Deactivate?:

Once the UDE is activated, it will affect all subsequent operations. If a change is desired, the same UDE should be activated by selecting the other alternative. In other words, if “Main” is selected, “Sub”, if “Sub” is selected, “Main” is selected, the UDE is deactivated.

What Affects/Changes in MANUSpost Developer:

When this UDE is activated, the values of the variables “VAR.State.OpMainSpindle” and “VAR.State.OpSubSpindle” are updated automatically.

When “Main” is selected, the “VAR.State.OpMainSpindle” variable will take the value “True” and the “VAR.State.OpSubSpindle” variable will get the value “False”.

When “Sub” is selected, the “VAR.State.OpMainSpindle” variable will take the value “False” and the “VAR.State.OpSubSpindle” variable will get the value “True”.