2 Instruction Descriptions
2-564
NJ-series Instructions Reference Manual (W502)
CONCAT_DATE_TOD
The CONCAT_DATE_TOD instruction combines a date and a time of day.
Instruction Name FB/FUN Graphic expression ST expression
CONCAT_DATE
_TOD
Concatenate Date
and Time of Day
FUN Out:=CONCAT_DATE_TOD
(In1, In2);
Variables
Name Meaning I/O Description Valid range Unit Default
In1 Date
Input
Date
Depends on data type.
Year, month,
day
D#1970-
1-1
In2 Time of day Time of day Hour, min-
utes, seconds
TOD#0:0
:0
Out Combined
date and
time
Output Combined date and time Depends on data type. Year, month,
day, hour,
minutes, sec-
onds
---
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In1 OK
In2 OK
Out OK
(@)CONCAT_DATE_TOD
EN ENO
In1 Out
In2