Add_Time; Add_Tod_Time - Omron NY532-5400 Reference Manual

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

Advertisement

2 Instruction Descriptions

ADD_TIME

The ADD_TIME instruction adds two times.
Instruction
ADD_TIME
Add Time
Variables
Name
Meaning
In1
Add time 1
In2
Add time 2
Out
Total time
Bit strings
In1
In2
Out
Function
The ADD_TIME instruction adds two times, In1 and In2. The result of addition in Out is also a time.
The following example is for when In1 is T#1d2h3m4s and In2 is T#5d6h7m8s.
LD
T#1d2h3m4s
T#5d6h7m8s
In1
In2
+
Out=abc
2-594
Name
FB/FUN
FUN
I/O
Description
Add time 1
Input
Add time 2
Output
Total time
ADD_TIME
EN
ENO
abc
In1
In2
T#1d2h3m4s
T#5d6h7m8s
T#6d8h10m12s
Graphic expression
(@)ADD_TIME
EN
ENO
In1
In2
Valid range
Depends on data type.
Depends on data type.
Integers
ST
abc:=ADD_TIME(T#1d2h3m4s, T#5d6h7m8s);
NY-series Instructions Reference Manual (W560)
ST expression
Out:=ADD_TIME(In1, In2);
Out
Unit
Default
ns
T#0s
ns
---
Times, durations, dates,
and text strings
OK
OK
OK

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents