Chapter 6. Service Request Function
GFK-2950C February 2018 319
6.22 SVC_REQ 21: User-Defined Fault Logging
Use SVC_REQ 21 to define a fault that can be displayed in the Controller Fault Table. The fault
contains binary information or an ASCII message. The user-defined fault codes start at 0 hex.
The error code information for the fault must be within the range 0 to 2047 for an Application Msg: to
be displayed. If the error code is in the range 81 to 112 decimal, the CPU sets a fault bit of the same
number in %SA system memory. This allows up to 32 bits to be individually set.
When EN is active, the fault data array referenced by IN is logged as a fault to the Controller Fault
Table. If EN is not enabled, the ok bit is cleared. If the error code is out of range, the ok bit is cleared
and the fault will not be logged as requested.
The parameter block is an input parameter block only with this format:
The input parameter data allows you to select an error code in the range 0 to 2047 and text
information that will be placed in the fault extra data portion of a long controller fault. The controller
fault address, fault group, and fault action are filled in by the function block.