Updates to arithmetic status bits, Entering the instruction – Rockwell Automation 1761-HHP-B30 MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual

Page 179

Advertising
background image

Chapter 10
Using Math Instructions

10–13

Updates to Arithmetic Status Bits

With this Bit:

The Controller:

S0/0

Carry (C)

is reserved.

S0/1

Overflow (V)

sets if an overflow is detected; otherwise resets. On
overflow, minor error bit S:5/0 is also set and the value
–32,768 or 32,767 is placed in the destination. The
presence of an overflow is checked before and after the
offset value is applied.

S0/2

Zero (Z)

sets when destination value is zero.

S0/3

Sign (S)

sets if the destination value is negative; otherwise resets.

If the result of the Source times the Rate, divided by 10000 is greater than 32,767, the SCL instruction
overflows, causing error 0020 (Minor Error Bit), and places 32,767 in the Destination. This occurs regardless
of the current offset.

Entering the Instruction

You enter the instruction from within the program monitor functional area.

P 0 0 0

S C L

S R C

N 0

1 0 0

P 0 0 0

S C L

R / 1 0 K

2 5 0 0 0

P 0 0 0

S C L

O F S T

1 2 7

P 0 0 0

S C L

D E S T

N 1

3 7 7

7

To enter the function code, press:

ENT

8

FUN

Advertising