FB_HVACTimeCon

FB_HVACTimeCon 1:

Application

This function block converts a TIME variable tTime into the three UDINT variables udiSec, udiMin and udiHour, which indicate the seconds, minutes and hours. This conversion is reversible, so that a TIME variable can be formed from seconds, minutes and hours.

VAR_IN_OUT

udiSec      : UDINT;
udiMin      : UDINT;
udiHour     : UDINT;
tTime       : TIME;

udiSec: variable that displays the seconds (0..59).

udiMin: variable that displays the minutes (0..59).

udiHour: variable that displays the hours (0..1191).

tTime: variable of the type Time.

Application example

Download

Required library

tchvac.zip

TcHVAC.lib