REGEXT: Registration of expanded FFB errors
(Original Document)
Function description
The REGEXT procedure transfers any error information to a diagnosis display and registers the error in the diagnosis buffer.(COND=1). For COND=0 the error is de-registered.
REGEXT makes it possible to transfer an error code, an error description and a description.
REGEXT uses a predefined error type and the diagnostics display shows that the reported error has more information associated with it.
EN and ENO can be configured as additional parameters.
Representation in FBD
Representation:
Representation in LD
Representation:
Representation in IL
Representation:
LD ErrorCode
REGEXT ErrorCondition, ErrorText,  ErrorLength,
       AddressToErrorInfo, ErrorIdentifier,
       RegistrationStatus
Representation in ST
Representation:
REGEXT (ErrorCondition, ErrorText,  ErrorLength,
         AddressToErrorInfo, ErrorIdentifier,
         RegistrationStatus);
Parameter description
Description of the input parameters:
Parameter
Data type
Meaning
COND
Error condition
0: Error de-registration
1: Error registration
ECODE
Error Code
NOTE: ECODE must be set to 2. All other values are reserved and give incorrect detected errors in the Diagnostic Viewer.
CMNT
Comment on the error description
DESC
STRING
Error description
LEN
Length of error information (ADR)
(max. 48 bytes)
EINF
Error information
Any data to be transferred to the diagnostics display.
The format of the data to be transferred must be the same as the data format for the diagnosis display. If the format of the data is not the same the transferred data is displayed in the diagnostics display as hex values.
Description of the input/output parameters:
Parameter
Data type
Meaning
ERID
Error recognition used by the function DEREG to de-register active errors (COND=0).
Note: The connection to other active errors is lost if the same error recognition variable is used for different errors.
Description of the output parameters:
Parameter
Data type
Meaning
STAT
INT
RegistrationStatus
  • If registration is successful: STAT = 0 and ERID is valid
  • If the registration fails: ERID is invalid and
    • STAT = 1: diagnosis buffer is not configured
    • STAT = 2: Diagnostics buffer full.
The system word %SW76 is reserved to receive the result of the diagnostic DFB registration (not mandatory but recommended).