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.

Syntax

FUNCTION F_BA_RemMsTon : UDINT
VAR_INPUT
  tonTimer    : TON;
END_VAR
VAR
  nRemTime    : UDINT;
END_VAR

F_BA_RemMsTon 1: Inputs

Name

Type

Description

tonTimer

TON

Input of the considered switch-on delay of type TON.

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