F_BA_RemMsTp

The function F_BA_RemMsTp of return type UDINT displays the elapsed time of a TP function (pulse function) in milliseconds.
The pulse function to be considered must be applied to input tpTimer.
With a rising edge at input IN of the tpTimer function, the milliseconds of the specified time PT are counted down at the return value F_BA_RemMsTp. If the input is still TRUE after the time has elapsed, the return value F_BA_RemMsTp has the value 0. With a falling edge at the input, the return value F_BA_RemMsTp has the time value PT of the function.
Syntax
FUNCTION F_BA_RemSecsTp : UDINT
VAR_INPUT
tpTimer : TP;
END_VAR
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT from v3.1.4024.35 | Tc3_XBA from v5.3.0.0 |