Mitsubishi Electric MELSEC Q Series Programming Manual page 106

Motion controller
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

3 START-UP PROCEDURES
Instruction
Category
Symbol
LD=
AND=
OR=
LD>
BIN 16-bit data
AND>
comparisons
OR>
LD<
AND<
OR<
LDD=
ANDD=
ORD=
LDD>
BIN 32-bit data
ANDD>
comparisons
ORD>
LDD<
ANDD<
ORD<
Instruction
Category
Symbol
BIN 16-bit addition
+
and subtraction
-
operations
BIN 32-bit addition
D+
and subtraction
D-
operations
BIN 16-bit
*
multiplication and
/
division operations
BIN 32-bit
D*
multiplication and
D/
division operations
INC
BIN data
DINC
increment and
DEC
decrement
DDEC
(b) Comparison instruction
Symbol
=
S1
S2
=
S1
S2
=
S1
S2
>
S1
S2
>
S1
S2
>
S1
S2
<
S1
S2
<
S1
S2
<
S1
S2
D=
S1
S2
D=
S1
S2
D=
S1
S2
D>
S1
S2
D>
S1
S2
D>
S1
S2
D<
S1
S2
D<
S1
S2
D<
S1
S2
(c) Arithmetic operation instruction
Symbol
+
S1
S2
D
-
S1
S2
D
D+
S1
S2
D
D-
S1
S2
D
*
S1
S2
D
/
S1
S2
D
D*
S1
S2
D
D/
S1
S2
D
INC
D
DINC
D
DEC
D
DDEC D
Processing Details
Conductive status when (S1) = (S2)
Non-Conductive status when (S1)  (S2)
Conductive status when (S1) > (S2)
Non-Conductive status when (S1) ≤ (S2)
Conductive status when (S1) < (S2)
Non-Conductive status when (S1) ≥ (S2)
Conductive status when (S1+1, S1) = (S2+1, S2)
Non-Conductive status when (S1+1, S1)  (S2+1, S2)
Conductive status when (S1+1, S1) > (S2+1, S2)
Non-Conductive status when (S1+1, S1) ≤ (S2+1, S2)
Conductive status when (S1+1, S1) < (S2+1, S2)
Non-Conductive status when (S1+1, S1) ≥ (S2+1, S2)
Processing Details
(S1)+(S2) → (D)
(S1)-(S2) → (D)
(S1+1, S1) + (S2+1, S2) → (D+1, D)
(S1+1, S1) - (S2+1, S2) → (D+1, D)
(S1) × (S2) → (D+1,D)
(S1) / (S2) → Quotient (D), Remainder (D+1)
(S1+1, S1) × (S2+1, S2) → (D+3, D+2, D+1, D)
(S1+1, S1) / (S2+1, S2)
→ Quotient (D+1, D), Remainder (D+3, D+2)
(D)+1 → (D)
(D+1, D)+1 → (D+1, D)
(D)-1 → (D)
(D+1, D)-1 → (D+1, D)
3 - 23
Steps
3
3
3
3
3
3
3
3
3
3 to 4
3 to 4
3 to 4
3 to 4
3 to 4
3 to 4
3 to 4
3 to 4
3 to 4
Steps
4
4
4 to 5
4 to 5
4
5
5 to 6
5 to 6
2
2
2
2

Advertisement

Table of Contents
loading

Table of Contents