Mitsubishi Electric melsec q00ujcpu User Manual page 75

Programmable controller
Hide thumbs Also See for melsec q00ujcpu:
Table of Contents

Advertisement

(2) Numeric representation in BIN
(a) Bit configuration of BIN used in the CPU module
Each register (such as the data register, link register) in the CPU module consists of 16 bits.
(b) Numeric data available in the CPU module
Each register in the CPU module can store numeric values in the range of -32768 to 32767.
Figure 2.37
Bit name
Decimal value
A numeric value of 2
Note that an unsigned binary number (0 to 65535) cannot be used in the most significant bit position since the
most significant bit is a sign bit.
• The most significant bit is "0"...Positive
• The most significant bit is "1"...Negative
2 - 36
shows the numeric representations for registers.
Most significant bit (sign bit)
b15
b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
15
2
2
14
2
13
2
12
-32768
16384
8192
4096 2048 1024 512 256 128
A value will be negative value when the most significant bit is "1".
Figure 2.37 Numeric representations for registers in the CPU module
n
is assigned for each bit of registers.
2
11
2
10
2
9
2
8
2
7
2
6
2
5
64
32
2
4
2
3
2
2
2
1
2
0
16
8
4
2
1

Advertisement

Table of Contents
loading

Table of Contents