REGIO: I/O Alarm saving and dating
(Original Document)
Description of the function
The REGIO function saves I/O alarm in the diagnostics buffer.
Additional parameters EN and ENO can be configured.
Representation in FBD
Representation in LD
Representation in IL
LD OperatorString
REGIO ErrorClass, StatusLength, OperatorControl,
DiagnosticBuffer, ErrorIdentifier, RegistrationStatus
Representation in ST
REGIO(OperatorString, ErrorClass, StatusLength,
OperatorControl, ErrorIdentifier,
RegistrationStatus);
Description of parameters
The following table describes the input parameters:
Parameter
Type
Comment
UTXT
User text can be used instead of instance comment.
CLAS
Class of error: 16#0062
SLEN
INT
Length of the status: 0, 2 or 4 bytes:
  • 0 = no status managed
  • 2 = status managed on one word
  • 4 = status managed on a double word
CTRL
  • 1 = Operator acknowledgement is required.
  • 0 = no acknowledgement is required.
EINF
Address of extra information
ESTS
Address of error status
The following table describes the output parameters:
Parameter
Type
Comment
ERID
INT
Error identifier.
STAT
INT
Registration status.
  • if the registration is successful: STAT= 0 and ERID is valid,
  • if the registration fails: ERID is invalid and
    • STAT = 1: diagnostic buffer not configured,
    • STAT = 2: diagnostic buffer is full.
See DIAGBUF.
The following table describes the input/output parameters:
Parameter
Type
Comment
DIAGBUF
Diagnostic buffer that contains the registration result