EasyManua.ls Logo

Panasonic FP7 Series - Page 100

Panasonic FP7 Series
1222 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Representation of decimals in the PLC
Decimals are processed as either 16-bit or 32-bit binary data.
Signed data is processed as follows:
1. If the highest-order bit is a sign bit and a positive number, the value is "0", or if it is
negative, the value is "1".
2. For positive numbers, the digits aside from the highest-order digit describe the size of the
data in bits.
<Example> Representation of the decimal "1868"
1,024
2,048
4,096
8,192
16,384
0 0 0 0 0 1 1 1 0 1 0 0 1 1 0 0
1
2
4
8
16
32
64
128
256
512
The other bits indicate the data size.
1,024 + 512 + 256 + 64 + 8 + 4 = 1868
The highest digit bit is '0', representing a positive figure.
3. For negative numbers, 2's complement is used. 2's complement is binary data in which 0
and 1 are inverted in the binary data for the positive number, and then 1 is added to the
binary data.
<Example> Representation of the decimal "-4"
0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0
Decimal
BIN represetation
of a decimal '4'
1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1
Invert 0 and 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0
Add 1
Decimal
BIN represetation
of a decimal '-4'
The highest digit bit becomes '1'.
2.9 Range of data that can be handled in the PLC
2-48 WUME-FP7CPUPGR-12

Table of Contents

Other manuals for Panasonic FP7 Series

Related product manuals