F_BA_RemMsTp

F_BA_RemMsTp 1:

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

The pulse function to be considered must be applied to input tpTimer.

With a rising edge at input IN of the tpTimer function, the milliseconds of the specified time PT are counted down at the return value F_BA_RemMsTp. If the input is still TRUE after the time has elapsed, the return value F_BA_RemMsTp has the value 0. With a falling edge at the input, the return value F_BA_RemMsTp has the time value PT of the function.

Syntax

FUNCTION F_BA_RemSecsTp : UDINT
VAR_INPUT
  tpTimer    : TP;
END_VAR

F_BA_RemMsTp 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