Allen-Bradley SLC 500 Series Reference Manual page 557

Hide thumbs Also See for SLC 500 Series:
Table of Contents

Advertisement

Table B.4 Status File Functions (Continued)
Address
Classification
S:13
Status and
and
Dynamic Config
S:14
Description
Math Register
Use this double register to produce 32-bit signed divide and
multiply operations, precision divide or double divide
operations, and 5-digit BCD conversions.
These two words are used in conjunction with the MUL, DIV,
DDV, FRD, and TOD math instructions. The math register
value is assessed upon execution of the instruction and
remains valid until the next MUL, DIV, DDV, FRD, or TOD
instruction is executed in the user program.
An explanation of how the math register operates is
included with the instruction definitions.
If you store 32-bit signed data values, you must manage this
data type without the aid of an assigned 32-bit data type.
For example, combine B10:0 and B10:1 to create a 32-bit
signed data value. We recommend that you keep all 32-bit
signed data in a unique data file and that you start all 32-bit
values on an even or odd word boundary for ease of
application and viewing. Also, we recommend that you
design, document, and view the contents of 32-bit signed
data in either the hexadecimal or binary radix.
When an STI, I/O Slot, or Fault Routine interrupts normal
execution of your program, the original value of the math
register is restored when execution resumes. Note that
S:13 and S:14 are not used when the source or destination
is defined as floating point data.
When a DII interrupts normal execution of your program, the
original value of the math register is restored when
execution resumes.
SLC Status File
Fixed
5/02
5/03
5/01
Publication 1747-RM001G-EN-P - November 2008
B-37
5/04
5/05

Advertisement

Table of Contents
loading

Table of Contents