882 HEIDENHAIN Technical Manual MANUALplus 620
Module 9157 Status request for drive hardware
The module provides information about the drive controller status.
Information about drive controller status: The drive is ready if
 the DSP processor board has been enabled. 
 the drive was activated through external switching. 
 the current controller and the speed controller have been activated. 
Call:
PS B/W/D/K <>Selection of status information>
0: Drive controller is ready
Result 0: Drive is not ready and cannot be switched on
Result 1: Drive is ready and can be switched on
1: Drive controller status
Result: Bit-encoded (bit 0 corresponds to logical axis 0, 
etc.)
2: Axis enabled via axis group (bits 0 to 13 = 1) or axis not 
enabled (bits 0 to 13 =0)
3: Signals available at X150/X151
(bits 0 to 7 = X150; bits 8 to 15 = X151)
4: Reserved
CM 9157
PL B/W/D <>Axis status information bit-encoded>
(Bit 0 represents logic axis 0, etc.)
Error recognition: 
Marker Value Meaning
NN_GenApiModule
Error
0 Status information was ascertained
1 Error code in NN_GenApiModuleErrorCode
NN_GenApiModule
ErrorCode
2 Invalid status information was programmed
24 Module was called in a spawn job or submit 
job