January 2012 7.8 PLC Inputs/Outputs 1361
7.8 PLC Inputs/Outputs
7.8.1 Diagnosis of the external PL
Module 9007 Read the diagnostic information of a PLC input/output unit
The module provides diagnostic information about the PL 510. To save
computing time, refrain from continuously calling this module.
Call:
PS B/W/D/K <Number of the PLB 510 basic module (0 to 3)>
PS B/W/D/K <Number of the information>
0: Reserved
1: Reserved
2: Reserved
3: Total number of PL 510 on this MC
4: Reserved
5: Reserved
CM 9007
PL B/W/D/K <Diagnostic information>
0 to 4: Number of PL 510
Error recognition:
Marker Value Meaning
NN_GenApiModule
Error
0 Diagnostic information was read
1 Error code in NN_GenApiModuleErrorCode
NN_GenApiModule
ErrorCode
1 Invalid code
2 Invalid PL module
24 Module was called in a spawn job or submit
job
51 Diagnostic function cannot be read because
PL 510 system is running in modular mode.