Rockwell Automation 1772-LS_LSP,D17726.8.6 PROG/OPER MANUAL-MINI PLC-2/05 User Manual

Page 87

Advertising
background image

Data Manipulation Instructions

Chapter 9

9Ć12

Case 2. Two Get Bytes

XXXD

040

BCC

B

WWW

8

PUT

BBCCC

16

only these three letters

are displayed

XXXD

B

YYY

8

XXX

word address

WWW

YYY

octal values Ć upper or lower byte

D

0

1

Ć lower byte

Ć upper byte

Two Get Byte instructions are programmed in the condition area of the ladder
rung. It tells the processor to make a duplicate of all 8 bits in each addressed
byte. When the rung containing the Get Byte/Put instructions goes true, the
data from the first get byte is transferred into the upper byte of the addressed
Put instruction. Also, the data from the second get byte is transferred into the
lower byte of the addressed Put instruction.

Keystrokes: You enter a Get Byte/Put instruction by performing the
following steps.

1.

Press -[B]-.

2.

Enter <address>.

3.

Enter <byte designation>.

Important: Repeat steps 1, 2 and 3 when using two Get Byte instructions.

4.

Press -(PUT)-.

5.

Enter <address>.

Advertising