OR n ORI n

Chapter 5 Instruction Specifications

Item number

Basic instructions-5, 6

Name

Contact parallel connection (OR, ORI)

 

 

 

 

 

 

 

Ladder format

Condition code

Processing time (s)

Remark

 

n

 

R7F4

R7F3

R7F2

R7F1

R7F0

Average

Maximum

 

 

n

 

DER

ERR

SD

V

 

C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

z

z

z

z

 

z

 

 

 

 

 

Instruction format

 

 

Number of steps

 

 

0.9

 

 

 

OR

n

 

 

Condition

 

Steps

 

 

 

 

 

 

ORI

n

 

 

 

2

 

 

 

 

 

 

 

 

 

 

Bit

 

 

Word

 

 

Double word

Constant

 

 

Usable I/O

 

 

R,

TD, SS,

 

WR,

 

 

DR,

Other

 

X

Y

M

CU, CT

WX WY WM

TC

DX DY

DM

n

I/O number

{

{

{

{

 

 

 

 

 

 

 

 

 

Function

 

 

 

 

 

 

 

 

 

 

 

 

 

n

 

 

 

 

 

 

 

 

 

 

 

 

Obtains OR of the previous operation result and the a-contact operation.

OR n

n

Obtains OR of the previous operation result and the b-contact operation.

ORI n

Notes

Edge detection (DIF, DFN) cannot be used in respect to ORI.

Pay close attention if the external output is to be monitored when counter input (coincidence output), PWM output, or pulse output is set with the PI/O function.

R0 DIF1

WR0 = WR0 + 1

Y100

Y100 will not change when monitored. It will remain the same value previously set using functions such as set/reset.

For example, if Y100 is off, the Y100 status will not change while being monitored and WRO will also remain unchanged.

Program example

X00000

Y00105

LD

X00000

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OR

X00001

X00001

 

ORI

X00002

 

OUT

Y00105

 

 

 

 

 

 

 

 

X00002

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Program description

When X00000 is on, X00001 is on, or X00002 is off, the operation is “1” and Y00105 turns on.

5-16

Page 66
Image 66
Hitachi NJI-350B manual Basic instructions-5, Contact parallel connection OR, ORI, Condition, Ori