16 bit signed integer, 16 bit unsigned integer – Rockwell Automation 2707-NP2 MICROVIEW SOFTWARE PROGRAMMING MANUAL User Manual

Page 126

Advertising
background image

Publication 2707-PM002B-EN-P

D-2 MicroLogix Data Formats

For example, the OFF(0) state of a bit might display “Pump is OFF”,
and the ON(1) state “Pump is ON”. MicroView Programming Software
allocates enough screen characters for the longest of the two text
strings. In this example, 11 characters would be allocated to display
“Pump is OFF”.

16 Bit Signed Integer

This data format displays a 16 bit register as a signed Integer (two’s
complement) value. The 16th bit of the register is the sign bit and is
set (1) for a negative and cleared (0) for a positive number.

16 Bit Unsigned Integer

This data format displays a 16 bit register as an unsigned integer
value.

TIP

The fewer the characters used, the less memory is
required. In the example above, displaying “OFF”
(given the appropriate context) conveys the same
information in 3 characters as “Pump is OFF” does
with 11 characters.

TIP

The 16 bit signed integer values have a range of
-32768 to +32767. This data format may also be
scaled to different engineering units

16 Bit Data Field

Bit 1

Bit 16
(Sign Bit)

Range = -32768 to +32767

TIP

The 16 bit unsigned integer values have a range of 0
to +65,535. This data format may also be scaled to
different engineering units.

16 Bit Data Field

Bit 1

Bit 16

Range = 0 to +65535

Advertising