EasyManuals Logo
Home>Allen-Bradley>Control Unit>MicroLogix 1200

Allen-Bradley MicroLogix 1200 Reference Manual

Allen-Bradley MicroLogix 1200
424 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #153 background imageLoading...
Page #153 background image
Publication 1762-RM001C-EN-P
Math Instructions 10-3
Updates to Math Status
Bits
After a math instruction is executed, the arithmetic status bits in the status
file are updated. The arithmetic status bits are in word 0 in the processor
status file (S2).
Overflow Trap Bit, S:5/0
Minor error bit (S:5/0) is set upon detection of a mathematical overflow or
division by zero. If this bit is set upon execution of an END statement or a
Temporary End (TND) instruction, the recoverable major error code 0020
is declared.
In applications where a math overflow or divide by zero occurs, you can
avoid a controller fault by using an unlatch (OTU) instruction with
address S:5/0 in your program. The rung must be between the overflow
point and the END or TND statement.
The following illustration shows the rung you can use to unlatch the
overflow trap bit.
Table 10.2 Math Status Bits
With this Bit: The Controller:
S:0/0 Carry sets if carry is generated; otherwise resets
S:0/1 Overflow sets when the result of a math instruction does not fit into the
destination, otherwise resets
S:0/2 Zero Bit sets if result is zero, otherwise resets
S:0/3 Sign Bit sets if result is negative (MSB is set), otherwise resets
S:2/14 Math Overflow
Selected
(1)
(1) Control bits.
examines the state of this bit to determine the value of the
result when an overflow occurs
S:5/0
Overflow Trap
(1)
sets if the Overflow Bit is set, otherwise resets
U
S:5
0

Table of Contents

Other manuals for Allen-Bradley MicroLogix 1200

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Allen-Bradley MicroLogix 1200 and is the answer not in the manual?

Allen-Bradley MicroLogix 1200 Specifications

General IconGeneral
BrandAllen-Bradley
ModelMicroLogix 1200
CategoryControl Unit
LanguageEnglish

Related product manuals