Description
(Original Document)
Function description
The UREGDFB procedure registers the error messages from the diagnostic DFB.
It also makes it possible for the UREGDFB diagnosis DFB to assign an error description to the error types. This makes it possible to distinguish between different error sub-types. The parameter RSEL can be used to define which default message is to be replaced by the user text.
EN and ENO can be configured as additional parameters.
Representation in FBD
Representation in LD
Representation in IL
LD ControlledArea
UREGDFB ErrorClass, StatusLenght,  OperatorControl, OperatorString,
        ReplacementSelector, PinNumber, PinValue,
        AddressToStatus, ErrorIdentifier, 
        RegistrationStatus
Representation in ST
UREGDFB (ontrolledArea, ErrorClass, StatusLenght,
          ControlSwitch, UserText, ReplacementSelector,
          PinNumber, PinValue, AddressToStatus,
          ErrorIdentifier, RegistrationStatus);
Parameter description
Description of input parameters:
Parameter
Data type
Description
AREA
Machine area that will be monitored by the diagnostics EFB: 0 to 15
CLAS
INT
Error type: 16#004A
SLEN
INT
Status length: 0, 2 or 4 bytes:
  • 0 = no scheduled status
  • 2 = status is scheduled by a word
  • 4 = status is scheduled by a double word
CTRL
  • 1 = User acknowledgement required
  • 0 = User acknowledgement not required
UTEXT
User-defined error description (only active for RSEL = 1-4)
RSEL
INT
Replaced by UTEXT
Possible values:
  • 0: UTEXT is not used.
  • 1: the instance comment is replaced by UTEXT
  • 2: the instance name is replaced by UTEXT
  • 3: the DFB type name is replaced by UTEXT
  • 4: the pin name is replaced by UTEXT
PIN
INT
Number of monitored input
VALPIN
BOOL
the value expected at the monitored output
Description of output parameters:
Parameter
Data type
Description
ESTS
Diagnosis DFB status (declared in parameter OUT to be passed on to address and not value). Before this procedure is called it must be updated by the diagnosis DFB .
ERID
Error recognition used by the function DEREG to de-register active errors.
Note: The connection to other active errors is lost if the same error recognition variable is used for different errors.
STAT
INT
RegistrationStatus
  • If registration is successful: STAT = 0 and ERID is valid
  • If the registration fails: ERID is invalid and
    • STAT = 1: diagnostics buffer is not configured
    • STAT = 2: diagnostics buffer full.
Description of input/output parameters:
Parameter
Type
Comment
DIAGBUF
Diagnostic buffer that contains the registration result