Data formats, Value data, Panelview (tag) formats – Rockwell Automation 2711-ND3 PanelBuilder v2.60 Software User Manual User Manual

Page 51: Signed and unsigned integers, Floating point values occupy 4 bytes or 32 bits

Advertising
background image

3–9

Planning an Application

Publication 2711-6.0

Value Data

Value data occupies a word (2 bytes or 16 bits) that represents a
numeric value. No matter how large or small the value, a whole
word must be assigned unless it is a bit array.

Address N7:2

= 277

0

0

0

0

0

0

0

1

0

0

0

1

0

1

0

1

1

2

4

8

16

32

64

128

256

512

1024

2048

4096

8192

16384

32768

Floating point values occupy 4 bytes or 32 bits.

PanelView (Tag) Formats

The PanelView terminal recognizes and transfers 7 data formats.

Data Format

Range

Bit

0 or 1

Unsigned Integer

0 to 65535

Signed Integer

-32768 to +32767

IEEE Floating Point

–99,999,997,952 to 999,999,995,904

4BCD

0 to 9999

Bit Array

0 to 65535

Character Array

Protocol Dependent

Bit

A bit data type occupies one bit of memory. Its address is given not
as a word (N7:2), but as a bit (N7:2/10). A bit is a location, and
depends on its position in the word. It can be set or reset.

Signed and Unsigned Integers

Signed and unsigned integer values occupy one word (2 bytes or 16
bits) of memory, no matter how small the value.

Every bit has a value that depends on its position in the word. The
value encoded is the sum of the bits that are sent.

1

1

1

1

1

1

1

0

1

1

1

0

1

0

1

Signed Integer

(-277)

1

2

4

8

16

32

64

128

256

512

1024

2048

4096

8192

16384

32768

0

0

0

0

0

0

0

1

0

0

0

1

0

1

0

1

Unsigned Integer

(277)

1

2

4

8

16

32

64

128

256

512

1024

2048

4096

8192

16384

32768

Sign Bit
1 = Negative
0 = Positive

1

-256 + -16 + -4 = -277 (2’s Complement)

Data entered as 277

256

16

4

1

-1 +

Data Formats

Advertising