698 HEIDENHAIN Technical Manual MANUALplus 620
Module 9222 Status request of a PLC positioning movement
The module provides the PLC positioning status.
Status information is collected for a certain axis or for all axes. This includes 
the current status of PLC positioning movements. The respective status 
information of a certain axis, or bit-encoded for all axes, can be interrogated.
Constraints:
 The status of an axis remains until a new status is set when the next PLC 
positioning of this axis occurs. 
 An axis that is not configured as "active", or an axis that was set to the 
"deactivated axis" activation status (e.g. with Module 9226 or 9418), is 
treated as if it were not present.
Call:
PS B/W/DK <>Axis>
Index from CfgAxes/axisList
or bit-encoded output for all axes:
1: Target position reached 
2: PLC positioning was started
3: PLC positioning canceled
4: Limit switch
5: Positioning impossible
6: Positioning temporarily stopped
CM 9222
PL B/W/D <>Status>
0: No PLC positioning was started
1: Target position reached
2: PLC positioning was started
3: Due to cancelation, target position not reached
4: Target position is outside of traverse range
5: Positioning not possible (e.g. due to "free rotation")
6: PLC positioning temporarily stopped (stop in Automatic 
operating modes)
Error recognition: 
Marker Value Meaning
NN_GenApiModule
Error (M4203)
0 Status was transferred
1 Error (error code in 
NN_GenApiModuleErrorCode)
NN_GenApiModule
ErrorCode (W1022)
1 Invalid status information was requested
2 The status of an open-loop axis, auxiliary 
axis or slave axis is being interrogated