2 - 16 2 - 16
MELSEC-Q/QnA
2 INSTRUCTION TABLES
Table 2.11 Arithmetic Operation Instructions (Continued)
Category
Instruction
Symbols
Symbol Processing Details
Execution
Condition
Number of
Basic Steps
Subset
See for
Description
B+
B+ DS
B+P
B+P
SD
• (D)+(S) (D)
3 6-28
B+
B+ S1 S2 D
B+P
B+P
S1
S2 D
• (S1)+(S2) (D)
46-30
B-
B DS
−
B-P
DSBP
−
• (D)-(S) (D)
3 6-28
B-
B S1 S2 D
−
BCD 4-
digit
addition
and
subtraction
operations
B-P
S1 S2 DBP
−
• (S1)-(S2)
(D)
46-30
DB+
DB+ SD
DB+P
DB+P SD
• (D+1, D)+(S+1, S)
(D+1, D)
36-32
DB+
DB+ S1 S2 D
DB+P
DB+P
S1
S2 D
• (S1+1, S1)+(S2+1, S2) (D+1, D)
46-34
DB-
DB
SD
−
DB-P
DB SDP
−
• (D+1, D)-(S+1, S) (D+1, D)
36-32
DB-
DB
S1
S2 D
−
BCD 8-
digit
addition
and
subtraction
operations
DB-P
DB S1 S2 DP
−
• (S1+1, S1)-(S2+1, S2)
(D+1, D)
46-34
B
B
S1
S2 D
B P
B
S1
S2 D
P
• (S1) (S2) (D+1, D)
4 6-36
B/
B/
S1
S2 D
BCD 4-
digit multi-
plication
and
division
operations
B/P
B/P S1 S2 D
• (S1)/(S2) Quotient(D), Remainder
(D+1)
4 6-36
DB
DB S1 S2 D
DB P
DB S1 S2 DP
• (S1+1, S1)
(S2+1, S2) (D+3, D+2,
D+1, D)
46-38
DB/
DB/ S1 S2 D
BCD 8-
digit multi-
plication
and
division
operations
DB/P
DB/P
S1
S2 D
• (S1+1, S1)/(S2+1, S2)
Quotient (D+1,
D), Remainder (D+3, D+2)
4 6-38
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com