F_BA_RemMsTof

F_BA_RemMsTof 1:

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

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

With a rising edge at input IN of tofTimer, the specified time PT is always displayed at the return value F_BA_RemMsTof.

With a falling edge at input IN of the tofTimer function, the milliseconds of the specified time PT are counted down at the return value F_BA_RemMsTof. If a FALSE is still present at input IN after the time has elapsed, the return value F_BA_RemMsTof has the value 0.

Syntax

FUNCTION F_BA_RemMsTof : UDINT
VAR_INPUT
  tofTimer    : TOF;
END_VAR

F_BA_RemMsTof 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