13 - three-digit math instructions, 13ć1, Threećdigit math instructions – Rockwell Automation 1772-L8_LW_LWP_LX_LXP,D17726.5.8 User Manual User Manual

Page 169

Advertising
background image

Chapter

13

13-1

ThreeĆDigit Math Instructions

This chapter explains the three-digit math instructions.

Your processor can perform four operations using three-digit math:

addition
subtraction
multiplication
division

These operations are not signed functions.

Addition

Reports the sum of two values from the two Get instructions immediately
preceding the addition instruction. Programmed in the output position of
the ladder diagram rung. The sum is stored in the add instruction
word address.

032

700

G

030

320

G

031

380

+

When the sum exceeds 999, the overflow bit (bit 14) in the add instruction
word is set. When the processor is operating in the Run/Program, Run, or
Test mode, the overflow condition is displayed on the industrial terminal
screen as a “1” preceding the sum.

If an overflow value (four digits) is used for subsequent comparisons or
other arithmetic operations, inaccurate results could occur.

032

1998

G

030

999

G

031

999

+

Chapter Objectives

ThreeĆDigit Math

Advertising