beautypg.com

Rockwell Automation 1772-LP3 PLC - 2/30 Programmable Controller Programming and Operations Manual User Manual

Page 132

background image

Data Manipulation Instructions

Chapter 6

6Ć10

Table 6.A

Data Manipulation Instructions

NOTE: Data Manipulation instructions operate upon BCD values and/or 16 bit data in the Data Table. The word address, XXX, is displayed above the

instruction; the BCD value or data operated upon, YYY, is displayed beneath it. The BCD value is stored in the lower 12 bits of the word address and

can be any value from 000 to 999, except as noted.
Word address displayed will be either 3, 4, or 5 digits depending upon the Data Table size. When entering the word address, use a leading zero, if

necessary.

Keytop Symbol

Instruction Name

1770ĆT3 Display

Description

-[ G ]-

GET

ăXXX

-[ G ]-

ăYYY

The GET instruction is used with other Data Manipulation

or Arithmetic instructions.
When the rung is TRUE, all 16 bits of the GET instruction

are duplicated and the operation of the instruction following

it is performed. See Note.

-(PUT)-

PUT

ąXXX

-(PUT)-

ąYYY

The PUT instruction should be preceded by the GET

instruction.
When the rung is TRUE, all 16 bits of the GET instruction

address are transferred to the PUT instruction address.

See Note.

-[ < ]-

LESS THAN

ăXXX

-[ < ]-

ăYYY

The LESS THAN instruction should be preceded by a GET

instruction.
3Ćdigit BCD values at the GET and LESS THAN word

addresses are compared. If the logic is TRUE, the rung is

ENABLED. See Note.

-[ = ]-

EQUAL TO

ăXXX

-[ = ]-

ăYYY

The EQUAL TO instruction should be preceded by a GET

instruction.
3Ćdigit BCD values at the GET and EQUAL TO word

addresses are compared. If equal, the rung is ENABLED.

See Note.

-[ B ]-

GET BYTE

ăXXX D

-[ B ]-

ăYYY

D - Designates the upper or lower byte of the word.

1 = upper byte, 0 = lower byte.
YYY - Octal value from 000

8

to 377

8

stored in the upper or

lower byte of the word address.
The GET BYTE instruction should be followed by a LIMIT

TEST instruction.
A duplicate of the designated byte is made and compared

with the upper and lower limits of the LIMIT TEST

instruction. See Note.

-[ L ]-

LIMIT TEST

ăXXX AAA

-[ L ]ĊĊĊ

BBB

AAA - Upper limit of LIMIT TEST, an octal value from 000

8

to 377

8

.

BBB - Lower limit of LIMIT TEST, an octal value from 000

8

to 377

8

.

The LIMIT TEST instruction should be preceded by a GET

BYTE instruction. Compares the value at the GET BYTE

instruction with the values at the LIMIT TEST instruction. If

found to be between the limits, the rung is ENABLED. See

Note.