Divtime - Omron NY532-5400 Reference Manual

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

Advertisement

2 Instruction Descriptions

DIVTIME

The DIVTIME instruction divides a time by a specified number.
Instruction
DIVTIME
Divide Time
Variables
Name
Meaning
In1
Original
time
In2
Number to
divide by
Out
Resulting
time
* If you omit the input parameter, the default value is not applied. A building error will occur.
Bit strings
In1
In2
Out
Function
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.
LD
In1
In2
/
Out=abc
2-612
Name
FB/FUN
FUN
I/O
Description
Original time
Input
Number to divide by
Output
Resulting time
OK OK OK OK OK OK OK OK OK OK
DIVTIME
EN
ENO
In1
T#1d
In2
INT#2
T#1d
INT#2
T#12h
Graphic expression
(@)DIVTIME
EN
ENO
In1
In2
Valid range
Depends on data type.
Depends on data type.
Integers
ST
abc:=DIVTIME(T#1d, INT#2);
abc
NY-series Instructions Reference Manual (W560)
ST expression
Out:=DIVTIME(In1, In2);
Out
Unit
Default
ns
T#0s
---
*
ns
---
Times, durations, dates,
and text strings
OK
OK

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents