F_BA_RemSecsTone

F_BA_RemSecsTone 1:

The function F_BA_RemSecsTon of return type UDINT displays the elapsed time of a TON function (switch-on delay) in seconds.
The switch-on delay to be considered must be applied to input tonTimer.

The function block counts down whole seconds when the switch-on delay is activated. If the function block under consideration is parameterized with 10 s at the input tonTimer, for example, the function F_BA_RemSecsTon counts down 10-9-8 etc. second by second.

If the parameterized time is not specified in whole seconds, for example 10.6 s, the function initially has the value "10" for 1.6 s.

As long as the switch-on delay is not active, the following behavior applies:

Syntax

FUNCTION F_BA_RemSecsTon : UDINT
VAR_INPUT
  tonTimer    : TON;
END_VAR

F_BA_RemSecsTone 2: Inputs

Name

Type

Description

tonTimer

TON

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

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.35

Tc3_XBA from v5.3.0.0