EasyManuals Logo
Home>Allen-Bradley>Controller>MicroLogix 1100

Allen-Bradley MicroLogix 1100 Instruction Set Reference Manual

Allen-Bradley MicroLogix 1100
616 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 #189 background imageLoading...
Page #189 background image
Publication 1763-RM001C-EN-P - October 2009
Math Instructions 189
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.
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
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive

Table of Contents

Other manuals for Allen-Bradley MicroLogix 1100

Questions and Answers:

Question and Answer IconNeed help?

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

Allen-Bradley MicroLogix 1100 Specifications

General IconGeneral
BrandAllen-Bradley
ModelMicroLogix 1100
CategoryController
LanguageEnglish

Related product manuals