147
6-1. Configuration of High-level Instructions
■ Data Handled in the FP1 Programmable Controller
• The FP1 Programmable Controller can handle data in 16-bit units (word) or 32-bit units (double word).
01111111111111111111111111111111
00000000000000000000000000000001
00000000000000000000000000000000
11111111111111111111111111111111
10000000000000000000000000000000
K 2147483647
K 1
K 0
K – 1
K – 2147483648
H 7 F F F F F F F
H 0 0 0 0 0 0 0 1
H 0 0 0 0 0 0 0 0
H F F F F F F F F
H 8 0 0 0 0 0 0 0
32-bit binary data
Decimal
constants
4-digit hexadecimal
constants
•
•
•
•
•
•
01010101010101011111000011110000
1,073,741,824
536,870,912
268,435,456
134,217,728
4,194,304
2,097,152
1,048,576
524,288
262,144
131,072
65,536
32,768
16,384
8,192
4,096
2,048
1,024
512
256
128
64
32
16
8
4
2
1
MSB (Most Significant Bit)
0: positive (+) or zero
1: negative (–)
67,108,864
33,554,432
16,777,216
8,388,608
higher 16-bit area lower 16-bit area
<32-bit data>
0111111111111111
0000000000000001
0000000000000000
1111111111111111
1000000000000000
K 32767
K 1
K 0
K – 1
K – 32768
H 7 F F F
H 0 0 0 1
H 0 0 0 0
H F F F F
H 8 0 0 0
16-bit binary data
Decimal
constants
4-digit hexadecimal
constants
•
•
•
•
•
•
0000011101001100
16,384
8,192
4,096
2,048
64
32
16
8
4
2
1
MSB (Most Significant Bit)
0: positive (+) or zero
1: negative (–)
1,024
512
256
128
<16-bit data>
MSB LSB
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
Weight of each bit position
when MSB = 0.
Weight of each bit position
when MSB = 0.