F_BA_RemMsTon

F_BA_RemMsTon 1:

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

F_BA_RemMsTon 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