GE GFK-0804B manual Word

Models: GFK-0804B

1 160
Download 160 pages 24.24 Kb
Page 80
Image 80

4

Word AND

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

Example:

R1

AND

0

0

0

0

0

0

0

0

1

0

1

0

1

0

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

46143

(170)

R2

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

0 0

0 0 1

0 1 0

(10)

Programming Software Instructions

1.Select Logic (F7)

2.Select AND (F1) from the Logic function keys.

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

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

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

Example and HHP Instructions

Ladder Diagram

A

[ R1 N R2! R3]

D

46144

Hand-held Programmer

START

LOGIC F1R1 R2 R3

OUTF2

GFK-0804B

Chapter 4 The Micro PLC Instruction Set

4-39

Page 80
Image 80
GE GFK-0804B manual Word