GE GFK-0804B manual Inclusive or IOR

Models: GFK-0804B

1 160
Download 160 pages 24.24 Kb
Page 81
Image 81

4

Inclusive OR (IOR)

The Inclusive OR function compares each bit in the first specified register against each corresponding bit in the second specified register. If either or both bits are 1, it places a 1 in the corresponding bit of the third register. If both of the corresponding bits is 0, the OR function places a 0 in the corresponding location in the third register.

Example:

R1

OR

R2

46145

0

0

0

0

0

0

0

0

1

0

1

0

1

0

1

0

(170)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

0

0

0

0

0

0

0

0

0

0

1

1

1

1

(15)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

R3

0 0 0 0 0 0 0 0

1 0 1 0 1

1

1 1

(10)

Programming Software Instructions

1.Select Logic (F7)

2.Select IOR (F2) from the Logic function keys.

3.Enter the register location of the first number to be IORed. Press the Enter key.

4.Enter the register location of the second number to be IORed. Press the Enter key.

5.Enter a register for the result to be placed in. Press the Enter key.

Example and HHP Instructions

Ladder Diagram

I

[ R1 O R2! R3]

R

46146

Hand-held Programmer

START

LOGIC F2R1 R2 R3

OUTF1

4-40

Micro PLC Programmer's Guide ± April 1994

GFK-0804B

Page 81
Image 81
GE GFK-0804B manual Inclusive or IOR