6 - 34 6 - 34
MELSEC-Q/QnA
6 BASIC INSTRUCTIONS
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
S1
S2
D
[Instruction Symbol] [Execution Condition]
indicates the signs DB+ or DB-
DB+
DB -
DB+P
DB - P
Command
Command
P
S1
S2
D
S1
S2
D
[Set Data]
Set Data Meaning Data Type
S1
Data to be added to or subtracted from, or the head number of the device
storing such data
S2
Addition or subtraction data, or head number of device storing addition or
subtraction data
D
Head number of device storing addition or subtraction data
BCD 8-digit
[Functions]
DB
+
(1) Adds the BCD 8-digit data designated by
S1
and the BCD 8-digit data designated by
S2
, and
stores the result of the addition at the device designated by
D
.
+ 1023456765 789123
(Upper 4 digits)(Lower 4 digits)
85 023690
+1+1 +1
Digits upper than those which were
designated will be read as 0.
S1 S1 S2 D DS2
(Upper 4 digits)(Lower 4 digits)
(Upper 4 digits)(Lower 4 digits)
(2) The values for
S1
,
S2
, and
D
can be between 0 to 99999999 (BCD 8 digits).
(3) If the result of the addition operation exceeds 99999999, the upper bits will be ignored.
The carry flag in this case does not go ON.
+ 10 65432199 000000 00 654321
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com