F_BA_RemSecsTof

F_BA_RemSecsTof 1:

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

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

As long as the switch-off delay is not active, i.e. output Q is set to FALSE, the output nRemTime is fixed at "0".

Syntax

FUNCTION F_BA_RemSecsTof : UDINT
VAR_INPUT
  tofTimer    : TOF;
END_VAR
VAR
  nRemTime    : UDINT;
END_VAR

F_BA_RemSecsTof 2: Inputs

Name

Type

Description

tofTimer

TOF

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

Variables

Name

Type

Description

nRemTime

UDINT

Seconds remaining until the switch-off delay is deactivated.

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.35

Tc3_XBA from v5.3.0.0