FB_HVACTimeConSecMs

FB_HVACTimeConSecMs 1:

Application

This function block converts a TIME variable tTime into two UDINT variables,udiSec and udiMs, which indicate the seconds and milliseconds respectively. The conversion is also reversible, so that a TIME variable can be formed from the seconds and milliseconds.

VAR_IN_OUT

udiMs       : UDINT;
udiSec      : UDINT;
tTime       : TIME;

udiSec: variable that displays the milliseconds (0..999).

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

tTime: variable of the type Time.

Application example

Download

Required library

tchvac.zip

TcHVAC.lib