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
todHHMM
TOD
0 … 23:59:59:999
Time in TOD format
Setpoints / Parameters
iMM
INT
0
Specification of the minutes in MM format (0..59)
iHH
INT
0
Specification of the hours in HH format (0..23)
Functional description
General
This function block is used to form the time 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, for example, be used for input in a visualization. The logical input limits of the individual components are monitored and corrected if necessary. 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, for example, be used for input in a visualization.
CODESYS
InOut:
Input Const
iMM
INT
0
Input Const
iHH
INT
0
Output
todHHMM
TOD
Last updated

