Rockwell Automation 1772-LV Mini-PLC - 2/15 Programmable Controller (Series B) Programming and Operations User Manual

Page 178

Advertising
background image

Quick Reference Section

Appendix A

AĆ9

Table A.F

Data Manipulation Instructions

NOTE: Date manipulation instructions operate upon BCD valuessss and/or 16 bit data table. THe word address XXX, is displayed

above the instruciton; the BCD vlue or data operated uon YYY, is displayed beneath it. The data is stored in the lower 12 bits of the

wword address and can be any value from 000 to 999 BCD, excet as noted.

Word address displayed will be either 3 or 4 digits depending upon the data table size. When entering the word address, use a

leading zero if necessary.

Key Symbol

Instruction

Name

1770-T3

Display

Rung Conditions

-[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.

-(PUT)-

Put

XXX

-(PUT)-

YYY

The put instruction should be preceded by the get instruction.

When the rung is true, all 16 bits at the get instruction address are transferred

to the put instruction address.

-[<]-

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 comapred. If

the logic is true, the rung is enabled.

-[=]-

Equal To

XXX

-[=]-

YYY

The equal to instruction should be preceded by a get instruction.

-[B]-

Get Byte

XXXD

-[B]-

YYY

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

1 = uper byte, 0 = lower byte.

YYY - Octal value from 000 to 377 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 comared with the upper and

lower limits of the limit test instruction.

-[L]

Limit Test

XXX AAA

-[L]- -

BBB

AAA - Upper limit of limit test, an octal value from 000 to 377.

BBB - Lower limit of limit test, an octal value from 000 to 377.

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 or equal to the limits, the rung is enabled.

Advertising