Radices used in aps, 6œ24 – Rockwell Automation 9323-PA1E USER MANUAL APS 6.0 User Manual

Page 115

Advertising
background image

Preface

Advanced Programming Software User Manual

6–24

Radices Used in APS

Almost all calculations are performed on signed integer values. Most operands used
to perform these calculations are sized at 16 bits. A signed 16 bit integer spans the
range of –32,768 to 32,767. These 16 bit values can be displayed or entered in
several radices. The radices that can be displayed using the APS programming
software are:

Integer

Binary

ASCII

Hexadecimal

Floating Point

When entering values into an APS instruction or data table element, you can specify
the radix of your entry using the “&” special operator. The radices that can be used
to enter data into an APS instruction or data table element are:

Integer (&N)

Binary (&B)

ASCII (&A)

Hexadecimal (&H)

BCD (&D)

Octal (&O)

The data type you select when programming an APS instruction determines the
display radix. For example, if a 16-bit value contains the value 48 decimal:

an N: type element is displayed as 48

a B: type element is displayed as 0000000000110000

a Hexadecimal radix is displayed as 0030

an ASCII radix is displayed as 0

You may enter or display a value in several radices, however, the processor will
always operate on the data in the format described for the particular instruction.
Using the above example, an ADD instruction would always add 48 decimal,
regardless of the radix used to enter or display this value. Likewise, the Mask
parameter of a MVM instruction would use the value 0030.

Advertising