beautypg.com

1772-6.8.3, 6 - data manipulation instructions, Data manipulation instructions, 0 general – Rockwell Automation 1772-LP3 PLC - 2/30 Programmable Controller Programming and Operations Manual User Manual

Page 123

background image

Chapter

6

6Ć1

Data Manipulation Instructions

The data manipulation instructions are used to transfer or compare data
that is stored in data table words and bytes. There are six data manipulation
instructions:

GET –|G|–

PUT –(PUT)–

LES –|<|–

EQU –|=|–

GET BYTE –|B|–

LIMIT TEST –|L|–

The Get and Put instructions are used together to transfer 16 bits of data
from one word location in the data table to another word location. Data can
be in the form of 3-digit, binary-coded decimal numbers.

The Les and Equ instructions compare data such as 3-digit numeric values
in BCD format using the lower 12 bits of a data table word (Figure 6.1).
This 3-digit value can be a decimal number ranging from 000 to 999.

Figure 6.1

BCD Word Format

17

16

15

14

13

12

11

10

07

06

05

04

03

02

01

00

Most

Significant

Digit

Middle

Digit

Least

Significant

Digit

Upper Byte

Lower Byte

Bits 14Ć17

Not Used

for BCD Value

But are Accessed

by Get Instruction

2

6

9

1

0

0

0

0

0

1

0

0

1

1

0

1

0

0

1

6.0
General