Omron NJ501-1500 Reference Manual page 594

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

2 Instruction Descriptions
ADD_TOD_TIME
The ADD_TOD_TIME instruction adds a time to a time of day.
Instruction
ADD_TOD_TIME
Add Time to Time
of Day
Variables
Name
Meaning
In1
Add time of
day
In2
Add time
Out
Resulting
time of day
Bit strings
In1
In2
Out
Function
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.
LD
TOD#23:59:59.999999999
T#1d0h0m0.000000001s
In1
In2
+
Out=abc
2-546
Name
FB/FUN
FUN
I/O
Description
Add time of day
Input
Add time
Output
Resulting time of day
ADD_TOD_TIME
EN
In1
In2
TOD#23:59:59.999999999
T#1d0h0m0.000000001s
TOD#0:0:0.000000000
Graphic expression
(@)ADD_TOD_TIME
EN
ENO
In1
In2
Valid range
Depends on data type.
Depends on data type.
Integers
ST
abc:=ADD_TOD_TIME(TOD#23:59:59.999999999,
ENO
abc
NJ-series Instructions Reference Manual (W502)
ST expression
Out:=ADD_TOD_TIME(In1,
In2);
Out
Unit
Default
Hour, min-
TOD#0:0
utes, seconds
:0
ns
T#0s
Hour, min-
---
utes, seconds
Times, durations,
dates, and text strings
OK
OK
OK
T#1d0h0m0.000000001s);

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents