Arithmetic Operation Instructions - Mitsubishi MELSEC QS Series Programming Manual

Hide thumbs Also See for MELSEC QS Series:
Table of Contents

Advertisement

2.4.2

Arithmetic operation instructions

Category
+
+P
+
BIN
16-bit
+P
addition and
subtraction
operations
–P
–P
D+
D+P
D+
BIN
32-bit
D+P
addition and
D–
subtraction
operations
D–P
D–
D–P
*
BIN
16-bit
*P
multiplication
/
and division
operations
D/P
D *
BIN
32-bit
D * P
multiplication
D/
and division
operations
D/P
Table 2.10 Arithmetic Operation Instructions
Symbol
+
S D
• (D) + (S)
+P
S D
+
S1 S2 D
• (S1) + (S2)
+P
S1 S2 D
S D
• (D)
P
S D
S1 S2 D
• (S1)
P
S1 S2 D
D+
S D
• (D+1, D) + (S+1, S)
D+P
S D
D+
S1 S2 D
• (S1+1, S1) + (S2+1, S2)
D+P
S1 S2 D
D
S
D
• (D+1, D)
D
P
S D
D
S1 S2 D
• (S1+1, S1)
D
P
S1 S2 D
S1 S2 D
*
• (S1)
P
S1 S2 D
*
/
S1 S2 D
• (S1) / (S2)
Quotient(D), Remainder (D+1)
/P
S1 S2 D
D
S1 S2 D
*
• (S1+1, S1)
(D+3, D+2, D+1, D)
D
P
S1 S2 D
*
• (S1+1, S1) / (S2+1, S2)
D/
S1 S2 D
Quotient (D+1, D), Remainder (D+3,
D/P
S1 S2 D
D+2)
Processing Details
(D)
(D)
(S)
(D)
(S2)
(D)
(D+1, D)
(D+1, D)
(S+1, S)
(D+1, D)
(S2+1, S2)
(D+1, D)
(S2)
(D+1,D)
(S2+1, S2)
2.4 Basic Instructions
2.4.2 Arithmetic operation instructions
Execution
Condition
3
6-6
4
6-8
3
6-6
4
6-8
3
6-10
4
6-12
3
6-10
4
6-12
4
6-14
4
4
6-16
4
2-11
2

Advertisement

Table of Contents
loading

Table of Contents