F_BA_RemSecsTof
The function of return type UDINT shows the elapsed time of a TOF function (switch-off delay) in seconds.
The switch-off delay to be considered must be applied to the input tofTimer.
As long as the switch-off delay is not active, i.e. output Q is set to FALSE, the output nRemTime is fixed at "0".
Syntax
FUNCTION F_BA_RemSecsTof : UDINT
VAR_INPUT
tofTimer : TOF;
END_VAR
VAR
nRemTime : UDINT;
END_VAR
Variables
Name | Type | Description |
---|---|---|
nRemTime | UDINT | Seconds remaining until the switch-off delay is deactivated. |
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT from v3.1.4024.35 | Tc3_XBA from v5.3.0.0 |