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-562
NJ-series Instructions Reference Manual (W502)
DIVTIME
The DIVTIME instruction divides a time by a specified number.
* If you omit the input parameter, the default value is not applied. A building error will occur.
The DIVTIME instruction divides a time In1 by a number In2. The result of division in Out is also a time.
The following example is for when In1 is T#1d and In2 is INT#2.
Instruction Name FB/FUN Graphic expression ST expression
DIVTIME Divide Time FUN Out:=DIVTIME(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 Number to
divide by
Number to divide by
--- *
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 OKOKOKOKOKOKOKOKOKOK
Out OK
Function
(@)DIVTIME
EN ENO
In1 Out
In2
abc:=DIVTIME(T#1d, INT#2);
LD
ST
abc
T#1d
INT#2
DIVTIME
EN ENO
In1
In2
In1
In2
Out=abc
T#1d
INT#2
T#12h
/

Table of Contents

Related product manuals