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

Page 54

Advertising
background image

Fundamental Instruction Set

Chapter 5

5Ć17

NOTE: Do not place compare instructions between the get byte and limit test
instruction. The get byte and limit test instructions only work with octal values.

Function: The rung condition becomes:

True

If the specified byte value is between the two reference values.

False

If the specified byte value is outside the reference values.

Get Byte/Put

Symbol: Figure 5.9

Purpose: Duplicates eight bits of data from the get byte instruction to the
lower byte of the put instruction.

Function: The value in the get byte instruction is displayed in octal form. The
value in the put instruction is displayed in hexadecimal form.

Syntax: Figure 5.9

NOTE: Do not use the upper byte of the put address for storage because it will
be a random value.

Figure 5.9

Get Byte/Put Test Comparison

013

XYZ

1110

B P

XXX

Section E

Arithmetic Instructions

You can do 3-digit arithmetic operations using your controller. The basic
operations used are:

Addition
Subtraction
Multiplication
Division

See Figure 5.10.

Additional functions are available by purchasing EAF PROM instructions
through your local Allen-Bradley Distribution or Sales Representative.

Introduction

Advertising