Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
6-24
+(P),-(P)
When three data are set ( + , - )
Function
+
(1) Adds 16-bit BIN data designated by to 16-bit BIN data designated by and stores the
result of the addition at the device designated by .
(2) Values for , andcan be designated between 32768 and 32767 (BIN, 16 bits).
(3) The judgment of whether data is positive or negative is made by the most significant bit
(b15).
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 to be added to/subtracted from or head number of the devices where the data to be added
to/subtracted from is stored (BIN 16 bits)
:
Data for additing/subtracting or head number of the devices where the data for additing/subtracting is stored
(BIN 16 bits)
:
Head number of the devices where the addition/subtraction operation result will be stored (BIN 16 bits)
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
Bit Word Bit Word
––
––
–– ––
S1
S2
D
S1
S2
D
Command
Command
P
+,
+/
+P, P
S1
S2
D
S1
S2
D
indicates an instruction symbol of .
S1
S2
D
S1
S2
S
D
S1
S2
D
b0
5678 (BIN)
b15 b0
6912 (BIN)
b15b0
1234 (BIN)
b15
S1 S2
D
S1
S2
D D
Since bit 15 value is "0",
result of operation takes a positive value.
Since bit 15 value is "1",
result of operation takes a negative value.
K32767 +K2
K 32768+K
2
K
32767
(7FFF
H)(0002H)(8001H)
(8000
H) (FFFEH)
K32766
(7FFE
H)