CommandExecutionMonitoring (FB)¶
FUNCTION_BLOCK CommandExecutionMonitoring
Command execution monitoring of of BOOL commands.
This function block does monitor a control device (often an actuator - for example a shut-off valve) if it’s operatig as expected. In case the service indication (or operating-state feedback) of the control device is different than the control signal provided to the control device longer than a given margin time an error is issued.
- InOut:
Scope
Name
Type
Initial
Comment
Input
xEnable
BOOL
TRUE
Enable error detection - xEnable := FALSE doesnt reset detected error
xControl
BOOL
Control signal
xSvci
BOOL
Service indication
tMargin
TIME
TIME#5s0ms
Margin time
xReset
BOOL
FALSE
Reset detected error
itfDateTimeProvider
Util.IDateTimeProvider
Globals.g_dtpDateTimeProvider
Source for the current date and time information in milliseconds since 1.1.1970 00:00:00.000
Output
xError
BOOL
Error indication
eErrorID
Error ID