Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
6-26
D+(P),D-(P)
6.2.2 BIN 32-bit addition and subtraction operations (D+(P),D-(P))
D+(P),D-(P)
When two data are set (( +1, )+( +1, ) ( +1, ), ( +1, )-( +1, ) ( +1, ))
Function
D+
(1) Adds 32-bit BIN data designated by to 32-bit BIN data designated by , and stores the
result of the addition at the device designated by .
(2) The values for and can be designated at between 2147483648 and 2147483647
(BIN 32 bits).
(3) Judgment of whether the data is positive or negative is made on the basis of the most
significant bit (b31).
0: Positive
1: Negative
(4) The following will happen when an underflow or overflow is generated in an operation result:
The carry flag in this case does not go ON.
: Data for additing/subtracting or head number of the devices where the data for additing/subtracting is stored
(BIN 32 bits)
: Head number of the devices where the data to be added to/subtracted from is stored (BIN 32 bits)
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
Bit Word Bit Word
––
–– ––
Basic
Process
High
performance
Redundant
Universal
D D
S S
D D D D
S S
D D
Command
Command
P
D+, D
D+/
D+P, D P
S D
S D
D
indicates an instruction symbol of .
S
D
S
D
D
S
D
+1
123456 (BIN)
b0b16 b15
+1
567890 (BIN)
b31
691346 (BIN)
DD
S S
+1
DD
b0b16 b15b31 b0b16 b15b31
S
D
Since bit 31 value is "0",
result of operation takes a positive value.
Since bit 31 value is "1",
result of operation takes a negative value.
K2147483647
(7FFFFFFFH)
K 2147483648
(80000000
H)
+K2
(00000002
H)
+K 2
(FFFFFFFEH)
K
(80000001
H)
K214748364
6
(7FFFFFFEH)
2147483647