CONCAT_TOD - Converts Hour, Minute, Second and Millisecond values to a time of day

Help Contents

Introduction

Converts Hour, Minute, Second and Millisecond values into a time of day value.

Syntax

Informal Syntax:

CONCAT_TOD( Hour, Minute, Second, Millisecond )

Formal Syntax:

CONCAT_TOD( Hour:=expression, Minute:=expression, Second:=expression, Millisecond:=expression )

Parameters

ParameterTypeDescription
HOURANY_INTThe hour value. The valid range of this parameter is 0 to 23.
MINUTEANY_INTThe minute value. The valid range of this parameter is 0 to 59.
SECONDANY_INTThe second value. The valid range of this parameter is 0 to 59.
MILLISECONDANY_INTThe millisecond value. The valid range of this parameter is 0 to 999.

Return Value

The function CONCAT_TOD converts Hour, Minute, Second and Millisecond values to a time of day. The type of the returns value is TIME_OF_DAY.

Examples

ExampleReturn Value
CONCAT_TOD( 11, 30, 0, 0 )TOD#11:30:00.000

Standards Compliance

Table 36.3a - IEC 61131-3 Third Edition.

Further Information

Date and Time Functions

For other date and time functions.

Glossary

For the meaning of terms used in Fernhill SCADA.