Description
(Original Document)
Function description
The D_REA function block is used for reaction Diagnostics.
Once the expected reaction has occurred in the Action diagnostics, the reaction diagnostics are checked to ascertain whether the process contains the status.
The process reaction, defined as a term or a signal, is checked through the reaction diagnostics to determine whether the status is stable. During technical processes it can occur that the reactions change momentarily (e.g. hitting limit switches). In order for the reaction diagnostics not to activate the error message ERR directly in such a case, a tolerance time DTIME can be defined. An error signal occurs if this time is exceeded. The error signal becomes inactive when the reaction returns to the setpoint status or when the stop condition is met.
The stop condition terminates reaction diagnostics.
Monitoring is carried out cyclically. The activation of the diagnostics and thereby the distribution of the cycle load can be achieved through the enable signal ED.
NOTE: Do not use diagnostic EFBs in DFBs.
EN and ENO can be configured as additional parameters.
Representation in FBD
Representation in LD
Representation in IL
CAL D_REA_Instance (ED:=EnableDiagnosis,
    DTIME:=ToleranceTime, REACT:=ReactionSignal,
    STOP:=StopSignal, ERR=>ErrorFlag)
Representation in ST
D_REA_Instance (ED:=EnableDiagnosis,
    DTIME:=ToleranceTime, REACT:=ReactionSignal,
    STOP:=StopSignal, ERR=>ErrorFlag) ;
Description of parameters
Description of the input parameters:
Parameter
Data type
Meaning
ED
Enable diagnostic
DTIME
Tolerance time
REACT
BOOL
Reaction signal
STOP
BOOL
Stop signal
Description of the output parameters:
Parameter
Data type
Meaning
ERR
BOOL
Error message; 0: no error; 1: Error
Public variables
Description of the public variables:
Parameter
Data type
Meaning
AREA_NR
Automation area to be monitored.
This byte specifies which area will be monitored by the diagnostic EFB.
It is advisable to assign the numbers according to the functional modules.
Values: 0 ... 15. The standard value is 0.
Example:
  • Cutting: No. 1
  • Milling: No. 2
  • Thread cutting: No. 3
In the example AREA_NR must have the value 1, 2 or 3, so that they can recognize the error affected area.
OP_CTRL
BOOL
This bit specifies whether a diagnostic event will request a user acknowledgement.
  • 0: no user acknowledgement required
  • 1: user acknowledgement required
The standard value is 0.