GetPlcFault: Returns Detected Errors on the Controller I/O
This function returns a generic diagnostic of the Controller I/O in a bit field (FFFF hex means no error detected):
NOTE: The similar information is also available through the System Variable (bit0 and bit1) PLC_R.i_lwSystemFault_1.
To see the general representation in IL or ST language, refer to the chapter Function and Function Block Representation.
The following table describes the output variable:
Output |
Type |
Comment |
---|---|---|
GetPlcFault |
WORD |
Diagnostic of controller's I/O in a bit field (FFFF hex means no error detected). |
The following table details the bits contained in the output bit field:
Bit |
Meaning |
---|---|
0 |
FALSE = detected error on the I/O expansion bus. Use the GetRightBusStatus function to get detailed diagnostic information. |
1 |
FALSE = detected error on the embedded I/O. Use the GetLocalIOStatus function to get detailed diagnostic information. |
2..15 |
Reserved, always 1 |