F_BA_RemSecsTof

F_BA_RemSecsTof 1:

The function F_BA_RemSecsTof of return type UDINT displays the elapsed time of a TOF function block (switch-off delay) in seconds.

The switch-off delay to be considered must be applied to the input tofTimer.

The function block counts down whole seconds when the switch-off delay is activated. If the function block under consideration at input tofTimer 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 switch-off delay is not active, the following behavior applies:

Syntax

FUNCTION F_BA_RemSecsTof : UDINT
VAR_INPUT
  tofTimer    : TOF;
END_VAR

F_BA_RemSecsTof 2: Inputs

Name

Type

Description

tofTimer

TOF

Input of the considered switch-off delay of type TOF.

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.35

Tc3_XBA from v5.3.0.0