Function blocks
Function blocks for TwinSAFE logic components 203
Table 3-178: State information
RUN
The FB ENV module assumes the RUN state if the input SafeFunction is TRUE.
The outputs assume the following values:
Error=0
SafeFunctionOut=1
STOP
The FB ENV module assumes the STOP state if the input FbRun is FALSE.
The outputs assume the following values:
Error=0
SafeFunctionOut=0
SAFE
The FB ENV module assumes the SAFE state if the input SafeFunction is FALSE,
MaxTimeExpired is TRUE or TimeAfterInTargetExpired is TRUE.
The outputs assume the following values:
Error=0
SafeFunctionOut=0
ERROR
If the FB ENV module detects an error, the FB ENV module assumes the ERROR state and
transmits the corresponding Diag message to the GROUP module.
The outputs assume the following values:
Error=1
SafeFunctionOut=0
RESET
The FB ENV module assumes the RESET state if no further error is pending after an error
has occurred and the ErrAck input of the corresponding group is set to TRUE.
The outputs assume the following values:
Error=0
SafeFunctionOut=0
DELAYOUT
The FB ENV module assumes the DELAYOUT state if the input SafeFunction is FALSE,
InValueInTarget is TRUE, TimeAfterInTargetExpired is TRUE and MaxTimeExpired is
FALSE.
The outputs assume the following values:
Error=0
SafeFunctionOut=1
MONITOR
If the input SafeFunction is FALSE, InValueInTarget is FALSE and MaxTimeExpired is
FALSE, the FB ENV module assumes the MONITOR state and monitors whether the
InValue is still within the envelope (InValueExpired=FALSE).
The FB ENV module calculates the maximum permissible difference by first multiplying the
InValueDec with the elapsed time since the transition to the MONITOR state. This
intermediate result is subtracted from InValueLatch (InValue at the time of the state
transition to the MONITOR state); the value must not be smaller than the TargetValue. If
this difference is less than the current InValue, InValueExpired is set to TRUE.
The outputs assume the following values:
Error=0
SafeFunctionOut=1