6 - 20 6 - 20
MELSEC-Q/QnA
6 BASIC INSTRUCTIONS
High Performance
QnA Q4AR
Basic
QCPU
PLC CPU
Process CPU
6.2.2 BIN 32-bit addition and subtraction operations (D+, D+P, D-, D-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 D+/D-
Command
Command
P
D+, D-
D+P, D-P
S D
S
D
[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 32 bits
[Functions]
D
+
(1) Adds 32-bit BIN data designated by
D
to 32-bit BIN data designated by
S
, and stores the
result of the addition at the device designated by
D
.
+
+1
+1
123456 (BIN)567890 (BIN)
691346 (BIN)
D S S
+1
DDD
b31- -b16 b15- -b0 b31- -b16 b15- -b0 b31- -b16 b15- -b0
(2) The values for
S
and
D
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
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com