F_BA_RemMsTof

The function F_BA_RemMsTof of return type UDINT displays the elapsed time of a TOF function (switch-off delay) in milliseconds.
The switch-off delay to be considered must be applied to the input tofTimer.
With a rising edge at input IN of tofTimer, the specified time PT is always displayed at the return value F_BA_RemMsTof.
With a falling edge at input IN of the tofTimer function, the milliseconds of the specified time PT are counted down at the return value F_BA_RemMsTof. If a FALSE is still present at input IN after the time has elapsed, the return value F_BA_RemMsTof has the value 0.
Syntax
FUNCTION F_BA_RemMsTof : UDINT
VAR_INPUT
tofTimer : TOF;
END_VAR
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT from v3.1.4024.35 | Tc3_XBA from v5.3.0.0 |