2 Instruction Descriptions
2-548
NJ-series Instructions Reference Manual (W502)
ADD_DT_TIME
The ADD_DT_TIME instruction adds a time to a date and time.
Instruction Name FB/FUN Graphic expression ST expression
ADD_DT_TIME Add Time to Date
and Time
FUN Out:=ADD_DT_TIME(In1,
In2);
Variables
Name Meaning I/O Description Valid range Unit Default
In1 Add date
and time
Input
Add date and time
Depends on data type.
Year, month,
day, hour,
minutes, sec-
onds
DT#197
0-1-1-
0:0:0
In2 Add time Add time ns T#0s
Out Addition
result date
and time
Output Addition result 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
(@)ADD_DT_TIME
EN ENO
In1 Out
In2