F_BA_RemMsTon

The function F_BA_RemMsTon of return type UDINT displays the elapsed time of a TON function (switch-on delay) in milliseconds.
The switch-on delay to be considered must be applied to the input tonTimer.
With a rising edge at input IN of the tonTimer function, the specified time PT is counted down at the return value F_BA_RemMsTon. If a TRUE is still present at input IN after the time has elapsed, the return value of F_BA_RemMsTon is 0.
With a falling edge at input IN of the tonTimer function, the specified time PT is always displayed at the return value F_BA_RemMsTon.
Syntax
FUNCTION F_BA_RemMsTon : UDINT
VAR_INPUT
tonTimer : TON;
END_VAR
Inputs