beautypg.com

32 bit integer format – Rockwell Automation 5370 CVIM Communications Manual User Manual

Page 144

background image

Appendix A
Results/Configuration Data Overview

A–3

We have provided the following chart to assist you:

Figure A.1
Fractional Notation

1/65536
1/32768
1/16384

1/8192
1/4096
1/2048
1/1024

1/512
1/256
1/128

1/64
1/32
1/16

1/8
1/4
1/2

Bit # 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

For example: 0000000000000011.0100000000000000 = 3.25

Note: For a sample PLC program which converts 16 point 16 values to
floating point values, refer to Chapter 4.

The CVIM stores some of the data as a 32 bit integer. The first byte contains
bits 16 through 31 of the integer and the next byte contains bits

0

through 15

of the integer.

WORD N

WORD N + 1

Bit: 31 30 . . . 17 16

5 14 . . . 1 0

For Example: 0000000000000010 0000000000000000

= 2

17

= 131,072

32 Bit Integer Format