Arithmetic Operation Instructions - Mitsubishi MELSEC QCPU Programming Manual

Programmable logic controller
Table of Contents

Advertisement

2 INSTRUCTION TABLES

2.4.2 Arithmetic operation instructions

Category
+
+P
+
BIN 16-bit
addition
+P
and
subtraction
-
operations
-P
-
-P
D+
D+P
D+
BIN 32-bit
addition
D+P
and
subtraction
D-
operations
D-P
D-
D-P
BIN 16-bit
multiplica-
P
tion and
division
/
operations
/P
D
BIN 32-bit
multiplica-
D P
tion and
division
D/
operations
D/P
2 - 14
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Table 2.11 Arithmetic Operation Instructions
Symbol
• (D)+(S)
+
S D
+P
S D
• (S1)+(S2)
+
S1 S2 D
+P
S1 S2 D
• (D) - (S)
S D
P
S D
• (S1) - (S2)
S1 S2 D
P
S1 S2 D
• (D+1, D)+(S+1, S)
D+
S D
D+P
D+P
S D
S D
• (S1+1, S1)+(S2+1, S2)
D+
S1 S2 D
D+P
S1 S2 D
• (D+1, D)-(S+1, S)
D
S
D
D P
S D
• (S1+1, S1)-(S2+1, S2)
D
S1 S2 D
D P
S1 S2 D
• (S1)
S1 S2 D
P
S1 S2 D
• (S1)/(S2)
/
S1 S2 D
(D+1)
/P
S1 S2 D
• (S1+1, S1)
D
S1 S2 D
D+1, D)
D P
S1 S2 D
• (S1+1, S1)/(S2+1, S2)
D/
S1 S2 D
D), Remainder (D+3, D+2)
D/P
S1 S2 D
Processing Details
(D)
(D)
(D)
(D)
(D+1, D)
(D+1, D)
(D+1, D)
(D+1, D)
(S2)
(D+1, D)
Quotient(D), Remainder
(S2+1, S2)
(D+3, D+2,
Quotient (D+1,
MELSEC-Q/QnA
Execution
Condition
3
6-16
4
6-18
3
6-16
4
6-18
1
6-20
2
6-22
1
6-20
2
6-22
3
6-24
4
6-24
4
6-26
4
6-26
2 - 14

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents