Mitsubishi Electronics 13JW55 Manual Do Utilizador
5 - 41
5.4.3 32-bit data instructions and their necessity
The minimum unit in the data memory of the Q-series programmable controller is
1 word which consists of 16 bits. Therefore, in general, data is processed in
1-word basis at the transfer, comparison, and arithmetic operation.
The Q-series programmable controller can process data in 2-word (32-bit) basis.
In that case, "D" is added at the head of each instruction to indicate that the
instruction is regarded as 2-word. The following shows the examples.
Data
Instruction
1 word
16 bits
32 bits
2 words
MOV(P) DMOV(P)
BIN(P) DBIN(P)
Transfer
BCD(P) DBCD(P)
Comparison
<, >, <=
>=, =, <>
D<, D>, D<=
D>=, D=, D<>
+ (P)
D + (P)
- (P)
D - (P)
* (P)
D * (P)
Arithmetic
operations
/(P) D/(P)
-32,768
to
32,767
0
to
9,999
Available range for
values
Values in parentheses are for
BIN(P), BCD(P) instructions.
-2,147,483,648
to
2,147,483,647
0
to
99,999,999
Values in parentheses are for
DBIN(P), DBCD(P) instructions.
Available range for
digits
K1 to K4
K1 to K8
The bit weights of the 32-bit configuration are as follows:
1
07374
18
24
-2
14748
3648
53687
091
2
26843
545
6
13421
772
8
6710
8864
3355
4432
1677
7216
838
8608
419
4304
209
7152
104
8576
13
1072
6
5536
3
2768
1
6384
8192
4096
2048
1024
512
256
128
64
32
16
8
4
2
1
26
2144
52
4288
B31
B0
B15
B16
As the case of 16-bit data processing, the programmable controller processes a 32-bit
negative value in two's complement. Therefore, the most significant bit B31 (B15 for 16-bit
data), is a sign bit.
B31
B0
Most significant bit
(Sign bit)
(Sign bit)
When the bit is 0, the number is interpreted as a positive number.
When the bit is 1, the number is interpreted as a negative number.
When the bit is 1, the number is interpreted as a negative number.
Available range for numbers
-2147483648 to 0 to 2147483647
-2147483648 to 0 to 2147483647