beautypg.com

Function sample program, 2 instructions, Orwl – Omron SYSMAC CP CP1E-N@@D@-@ User Manual

Page 249

background image

2-213

2 Instructions

CP1E CPU Unit Instructions Reference Manual(W483)

Lo

gic I

n

stru

ctio

ns

2

OR

W/
OR

WL

Function

Sample program

When the execution condition CIO 0.00 is ON, the logical OR is taken of corresponding bits in CIO 21,
CIO 20 and CIO 31, CIO 30 and the results will be output to corresponding bits in D501 and D500.

ORW

ORW(035) takes the logical OR of data speci-
fied in I

1

and I

2

and outputs the result to R.

ORWL

ORWL(611) takes the logical OR of data
specified in I

1

and I

2

as double-word data and

outputs the result to R, R+1.

I

1

, I

2

R

I

1

I

2

R

1

1

1

1

0

1

0

1

1

0

0

0

(I

1,

I

1

+1) + (I

2,

I

2

+1)

(R, R+1)

I

1,

I

1

+1

I

2,

I

2

+1

R, R+1

1

1

1

1

0

1

0

1

1

0

0

0

20.00

20.01

20.02

20.03

20.15

21.00

21.15

1

1

0

0

1

1

0

1

1

1

0

1

1

1

1

0

1

0

1

0

1

ORWL

20

30

D500

0.00

S

1

: 20CH

S

1

+1: 21CH

30.00

30.01

30.02

30.03

30.15

31.00

31.15

S

2

: 30CH

S

2

+1: 31CH

00

01

02

03

15

00

15

D: D500

D+1: D501

D500

D501

Note The vertical arrow indicates logical OR.

This manual is related to the following products: