Mitsubishi Electronics 13JW55 Network Card User Manual


 
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:
1073741824
-2147483648
536870912
268435456
134217728
67108864
33554432
16777216
8388608
4194304
2097152
1048576
131072
65536
32768
16384
8192
4096
2048
1024
512
256
128
64
32
16
8
4
2
1
262144
524288
B31 B0B15B16
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)
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.
Available range for numbers
-2147483648 to 0 to 2147483647