F_BA_RemSecsTp

F_BA_RemSecsTp 1:

The function F_BA_RemSecsTp of return type UDINT displays the elapsed time of a TP function (pulse function) in seconds.

The function block counts down whole seconds when the pulse function is activated. If the function block under consideration at input tpTimer is parameterized with 10 s, for example, the function F_BA_RemSecsTof 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 pulse function under consideration is not active, the following behavior applies:

Syntax

FUNCTION F_BA_RemSecsTp : UDINT
VAR_INPUT
  tpTimer    : TP;
END_VAR

F_BA_RemSecsTp 2: Inputs

Name

Type

Description

tpTimer

TP

Input of the considered pulse function of type TP.

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.35

Tc3_XBA from v5.3.0.0