684 HEIDENHAIN Technical Manual MANUALplus 620
Module 9418 Set status for spindle
The module sets a new status for a spindle.
Constraints:
This module is only supported by the symbolic memory interface (API 3.0).
If the iTNC-compatible memory interface (API 1.0) is used, the module
returns an error.
Path-dependent lubrication (Mode #5) is usually not used for spindles,
except in the special case that a spindle can also be a rotary axis.
Constraints for modes 10 to 14:
The motor of the spindle must be switched off during module call. The
current and speed controllers must be inactive.
The activation status must not be switched except in a strobe with
synchronization of the advance calculation (SYNC_CALC, interpreter stop).
Call:
PS B/W/D/K <>Spindle index>
PS B/W/D/K <>Mode>
1: Renewed evaluation of the spindle's reference mark
2: Determine the actual speed value for speed control from
the motor encoder
3: Determine the actual speed value for speed control from
the position encoder
4 : Reset accumulated traverse path
5 : Reset accumulated traverse path for path-dependent
lubrication
10: Restore activation status from startup
11: Closed-loop axis activation status
14: Deactivated axis activation status
CM 9418
PL B/W/D <>Error code>
0: Module successfully executed
1: Faulty module call (invalid spindle number)
2: Faulty module call (invalid mode)
3: Activation status is being switched
4: Activation status is already selected
Error recognition:
Marker Value Meaning
NN_GenApiModule
Error
0 Module executed successfully
1 Error code in NN_GenApiModuleErrorCode
NN_GenApiModule
ErrorCode
2 Invalid task data transferred (see error
number in returned value)
99 Module is not supported (control operates
with iTNC-compatible API).