F_BA_RemMsTon
The function of return type UDINT shows 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.
- As long as the switch-on delay is not activated, i.e. the input IN is set to FALSE, the output nRemTime is fixed at the time value to which the switch-on delay is programmed (value rounded down to full seconds).
- As soon as the switch-on delay has switched through, i.e. output Q is TRUE, the output nRemTime is fixed at "0".
Syntax
FUNCTION F_BA_RemMsTon : UDINT
VAR_INPUT
tonTimer : TON;
END_VAR
VAR
nRemTime : UDINT;
END_VAR
Variables
Name | Type | Description |
---|---|---|
nRemTime | UDINT | Remaining milliseconds until the switch-on delay is switched through. |
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT from v3.1.4024.35 | Tc3_XBA from v5.3.0.0 |