Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

Function
The CONCAT_DATE_TOD instruction combines a date In1 and a time of day In2. The result of combin-
ing in Out is also a date and time.
The following example is for when In1 is D#1970-1-7 and In2 is TOD#23:59:59.999999999.
LD
D#1970-1-7
TOD#23:59:59.999999999
In1
In2
+
Out=abc
Related System-defined Variables
Name
_CurrentTime
Precautions for Correct Use
An error occurs in the following case. ENO will be FALSE, and Out will not change.
• The results of combining exceeds the valid range of Out (e.g., the value of In1 is D#2554-7-21 and
the value of In2 is larger than TOD#23:34:33.709551615).

NY-series Instructions Reference Manual (W560)

CONCAT_DATE_TOD
EN
In1
In2
D#1970-1-7
TOD#23:59:59.999999999
DT#1970-1-7-23:59:59.999999999
Meaning
System Time of Day
DT
ST
abc:=CONCAT_DATE_TOD(D#1970-1-7,
ENO
abc
Data type
The time of day from the system clock. The num-
ber of seconds from 00:00:00 on January 1,1970.
2 Instruction Descriptions
TOD#23:59:59.999999999);
Description
2
2-615

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents