Description
(Original Document)
Function description
The D_DYN function block is used for dynamic Diagnostics.
For certain processes it is necessary to combine D_LOCK (Extended locking diagnostics), D_ACT (Extended action diagnostics) and D_REA (Extended reaction diagnostics) in one unit, which monitors the current state of the diagnostics. This is only possible using a special function block, which internally manages the current diagnostics status.
To prevent this function block from becoming too complex, only one ED enable signal and one ERR error output have been defined.
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:
Representation in LD
Representation:
Representation in IL
Representation:
CAL D_DYN_Instance (ED:=EnableDiagnosis,
    DTIMEL:=ToleranceTimeLock,
    DTIMEA:=ToleranceTimeAction,
    DTIMER:=ToleranceTimeReaction,
    TRIGR:=TriggerSignal, UNLOCK:=Locking,
    REACT:=ReactionInput, SWITCH:=M_I_Switch,
    STOP:=StopSignal, ERR=>ErrorFlag,
    ACT=>ActionEnabled)
Representation in ST
Representation:
D_DYN_Instance (ED:=EnableDiagnosis,
    DTIMEL:=ToleranceTimeLock,
    DTIMEA:=ToleranceTimeAction,
    DTIMER:=ToleranceTimeReaction,
    TRIGR:=TriggerSignal, UNLOCK:=Locking,
    REACT:=ReactionInput, SWITCH:=M_I_Switch,
    STOP:=StopSignal, ERR=>ErrorFlag,
    ACT=>ActionEnabled) ;
Description of parameters
Description of the input parameters:
Parameter
Data type
Meaning
ED
Enable diagnostics
DTIMEL
Tolerance time D_LOCK (locking diagnostics)
DTIMEA
TIME
Tolerance time D_ACT (action diagnostics)
DTIMER
TIME
Tolerance time D_REA (reaction diagnostics)
TRIGR
BOOL
Trigger
UNLOCK
BOOL
Lock
REACT
BOOL
Reaction signal
SWITCH
BOOL
M/I switch; 0: M behavior, 1: I behavior, 0/1: MI behavior
STOP
BOOL
Stop signal
Description of the output parameters:
Parameter
Data type
Meaning
ERR
BOOL
Error message; 0: No error; 1: Error
ACT
BOOL
Action enabling
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.