Rockwell Automation 1761-HHP-B30 MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual

Page 169

Advertising
background image

Chapter 10
Using Math Instructions

10–3

In applications where a math overflow or divide by zero occurs, you can
avoid a controller fault by using an reset (RST) instruction with address S5/0
in your program. The rung must be between the overflow point and the END
or TND statement.

Changes to the Math Register, S13 and S14

Status word S13 contains the least significant word of the 32-bit values of
the MUL and DDV instructions. It contains the remainder for DIV and DDV
instructions. It also contains the first four BCD digits for the Convert from
BCD (FRD) and Convert to BCD (TOD) instructions.

Status word S14 contains the most significant word of the 32-bit values of
the MUL and DDV instructions. It contains the unrounded quotient for DIV
and DDV instructions. It also contains the most significant digit (digit 5) for
TOD and FRD instructions.

Advertising