January 2012 6.18 Spindles 1019
Module 9413 Move the spindle
The module rotates the specified spindle in CW/CCW direction (M3/M4) at a 
constant rotational speed or at a constant cutting speed.
Constraints:
 This module is only supported by the new symbolic memory interface. If the 
iTNC-compatible interface is used (API 1.0), the module returns an error.
 With an analog spindle the voltage to be output for a reciprocation 
movement is read from the configuration data, and the shaft speed given is 
ignored. With a digitally controlled spindle the given shaft speed is 
interpreted as the motor shaft speed for the reciprocation movement.
Call:
PS B/W/D/K <>Spindle index>
PS B/W/D/K <>Mode>
Bit 0 and bit 1: Direction of rotation
01 = Rotation CW (M3)
10 = Rotation CCW (M4)
Bits 2 to 4: Type of rotation
001 = Constant surface speed
010 = Constant shaft speed
100 = Constant motor shaft speed for reciprocation 
movement
PS D/K <>Rotational speed or cutting speed>
Constant cutting speed in [m/min]
Constant rotational speed in [rpm]
CM 9413
PL D <>Error code>
0: Module successfully executed
1: Incorrect module call
2: No permission for module call
3: Rotational speed not allowed
4: Mode not allowed
Error recognition: 
Marker Value Meaning
NN_GenApiModule
Error
0 Status ascertained
1 Error code in NN_GenApiModuleErrorCode
NN_GenApiModule
ErrorCode
2 Invalid spindle number
9 Module call not possible at this time
99 Module is not supported (control does not 
operate with symbolic memory interface)