EasyManua.ls Logo

Omron NJ501-1500

Omron NJ501-1500
990 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2 Instruction Descriptions
2-546
NJ-series Instructions Reference Manual (W502)
ADD_TOD_TIME
The ADD_TOD_TIME instruction adds a time to a time of day.
The ADD_TOD_TIME instruction adds a time, In2, to a time of day In1. The result of addition in Out is
also a time of day.
The following example is for when In1 is TOD#23:59:59.999999999 and In2 is
T#1d0h0m0.000000001s.
Instruction Name FB/FUN Graphic expression ST expression
ADD_TOD_TIME Add Time to Time
of Day
FUN Out:=ADD_TOD_TIME(In1,
In2);
Variables
Name Meaning I/O Description Valid range Unit Default
In1 Add time of
day
Input
Add time of day
Depends on data type.
Hour, min-
utes, seconds
TOD#0:0
:0
In2 Add time Add time ns T#0s
Out Resulting
time of day
Output Resulting time of day Depends on data type. Hour, min-
utes, seconds
---
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
Function
(@)ADD_TOD_TIME
EN ENO
In1 Out
In2
abc:=ADD_TOD_TIME(TOD#23:59:59.999999999,
T#1d0h0m0.000000001s);
LD
ST
abc
TOD#23:59:59.999999999
T#1d0h0m0.000000001s
ADD_TOD_TIME
EN ENO
In1
In2
+
TOD#23:59:59.999999999
T#1d0h0m0.000000001s
TOD#0:0:0.000000000
In1
In2
Out=abc

Table of Contents

Related product manuals