January 2012 6.6 Reading and Writing Axis Information 683
Module 9226 Set status for axes
The module sets a new status for an NC axis or auxiliary axis (not for spindles).
Constraints:
The module can only be called for NC axes or auxiliary axes. Module 9418
must be used for setting the status of a spindle.
An axis not configured as "active" is treated as if it were not present.
Modes 10 to 14:
The motor of the affected axis 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 <>Axis>
Index from the parameter CfgAxes/axisList
PS B/W/D/K <>Mode>
1: Renewed evaluation of the axis reference mark
10: Restore activation status from startup
11: Closed-loop axis activation status
12: Manually operated axis activation status
13: Displayed axis activation status
14: Deactivated axis activation status
CM 9226
PL B/W/D <>Error code>
0: Module successfully executed
1: Faulty module call (invalid axis number)
2: Faulty module call (invalid mode)
3: Faulty module call (axis is not an NC axis or auxiliary axis)
4: Axis is controlled by the NC
5: Activation status is being switched
6: 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)