Chapter 6. Service Request FunctionGFK-2950C February 2018 3196.22 SVC_REQ 21: User-Defined Fault LoggingUse SVC_REQ 21 to define a fault that can be displayed in the Controller Fault Table. The faultcontains 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: tobe displayed. If the error code is in the range 81 to 112 decimal, the CPU sets a fault bit of the samenumber in %SA system memory. This allows up to 32 bits to be individually set.Error Code Status BitErrors 0—80 No bit setErrors 81—112 Sets %SAErrors 113—2047 No bit setErrors 2048—32,767 ReservedWhen EN is active, the fault data array referenced by IN is logged as a fault to the Controller FaultTable. If EN is not enabled, the ok bit is cleared. If the error code is out of range, the ok bit is clearedand the fault will not be logged as requested.The parameter block is an input parameter block only with this format:Parameter address Error codeMSB LSBAddress+1 Text2 Text1Address+2 Text4 Text3Address+3 Text6 Text5Address+4 Text8 Text7Address+5 Text10 Text9Address+6 Text12 Text11Address+7 Text14 Text13Address+8 Text16 Text15Address+9 Text18 Text17Address+10 Text20 Text19Address+11 Text22 Text21Address+12 Text24 Text23The input parameter data allows you to select an error code in the range 0 to 2047 and textinformation that will be placed in the fault extra data portion of a long controller fault. The controllerfault address, fault group, and fault action are filled in by the function block.