CToD
CToD (FB)
CToD (FB)FUNCTION_BLOCK CToD
Short description
Conversion of the time components minutes/hours into a time of day (TOD)
Representation

Interfaces
Inputs
Outputs
todHHMM
TOD
0 … 23:59:59:999
Time of day in TOD format
Setpoints / Parameters
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:
Input Const
iMM
INT
0
Input Const
iHH
INT
0
Output
todHHMM
TOD
Last updated

