6 - 16 6 - 16
MELSEC-Q/QnA
6 BASIC INSTRUCTIONS
High Performance
QnA Q4AR
Basic
QCPU
PLC CPU
Process CPU
6.2 Arithmetic Operation Instructions
6.2.1 BIN 16-bit addition and subtraction operations (+, +P, -, -P)
Usable Devices
Internal Devices
(System, User)
MELSECNET/10(H)
Direct J
\
Set
Data
Bit Word
File
Register
Bit Word
Special
Function
Module
U
\G
Index
Register
Zn
Constant
K, H
Other
S
D
[Instruction Symbol] [Execution Condition]
indicates the signs +/-
Command
Command
P
DS
S D
+, -
+P, -P
[Set Data]
Set Data Meaning Data Type
S
Addition or subtraction data, or first number of device storing addition or
subtraction data
D
Data to be added to or subtracted from, or first number of device storing
such data
BIN 16 bits
[Functions]
+
(1) Adds 16-bit BIN data designated by
D
to 16-bit BIN data designated by
S
and stores the
result of the addition at the device designated by
D
.
+5678 (BIN)
b15- - - - - - - - - b0
6912 (BIN)1234 (BIN)
D S D
b15- - - - - - - - - b0 b15- - - - - - - - - b0
(2) Values for
S
and
D
can 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
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com