CToD

CToD (FB)

FUNCTION_BLOCK CToD

Short description

Conversion of the time components minutes/hours into a time of day (TOD)

Representation

Interfaces

Inputs

Outputs

Name
Data type
Value range
Initial value
Function

todHHMM

TOD

0 … 23:59:59:999

Time of day in TOD format

Setpoints / Parameters

Name
Data type
Value range
Initial value
Function

iMM

INT

0

Setting of minutes in MM format (0..59)

iHH

INT

0

Setting of hours in HH format (0..23)

Function description

General

This function block is used to form the time of day todHHMM from the individual components iMM and iHH. The logical input limits of the individual components are monitored. If an input is made outside the specified limits, the output todHHMM is set to TOD#0:0:0. This block can be used, for example, for input in a visualization. The logical input limits of the individual components are monitored and, if necessary, corrected. The logical input limits of the individual components are monitored. If an input is made outside the specified limits, the output (todHHMM) is set to TOD#0:0:0. This block can be used, for example, for input in a visualization.

CODESYS

InOut:

Scope
Name
Type
Initial

Input Const

iMM

INT

0

Input Const

iHH

INT

0

Output

todHHMM

TOD

Last updated