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-550
NJ-series Instructions Reference Manual (W502)
SUB_TIME
The SUB_TIME instruction subtracts one time from another.
The SUB_TIME instruction subtracts a time In2 from another time In1. The result of subtraction in Out is
also a time.
The following example is for when In1 and In2 are T#1d.
Instruction Name FB/FUN Graphic expression ST expression
SUB_TIME Subtract Time FUN Out:=SUB_TIME(In1, In2);
Variables
Name Meaning I/O Description Valid range Unit Default
In1 Original
time
Input
Original time
Depends on data type. ns T#0s
In2 Time to
subtract
Time to subtract
Out Resulting
time
Output Resulting time Depends on data type. ns
---
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
(@)SUB_TIME
EN ENO
In1 Out
In2
abc:=SUB_TIME(T#1d, T#1d);
LD
ST
abc
T#1d
T#1d
SUB_TIME
EN ENO
In1
In2
In1
In2
Out=abc
T#1d
T#1d
T#0s

Table of Contents

Related product manuals