EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 147

Mitsubishi Electric MELSEC FX Series
838 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 Applied Instructions
7.2 Move and Compare
145
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied
Instructions
8
Interrupt Function
and Pulse Catch
Function
A
Relationships
between devices
and addresses
Program examples
1. When comparing present value of a counter
If it is necessary to clear the comparison result when the instruction is not executed, add the following
contents under the above program.
1) RST
2) ZRST
*1 Var_CMP is a global label and is defined as M0.
X000
Turns ON in the case of
K100 > C 20 current value.
Turns ON in the case of
K100 = C 20 current value.
Turns ON in the case of
K100 < C 20 current value.
CMP
EN
s1
s2
ENO
d
Var_CMP
*1
K100
CN20
[Structured ladder]
X000
CN20
M0
M1
M2
99
100
101
Latched
in the ON
status.
M0 Y000
M1 Y001
M2 Y002
CMP(X000, K100, CN20, Var_CMP
*1
);
Y000:=X000 AND M0;
Y001:=X000 AND M1;
Y002:=X000 AND M2;
Latched
in the ON
status.
Latched
in the ON
status.
RST
EN ENO
d
M0
RST
EN ENO
d
M1
RST
EN ENO
d
M2
X000
[Structured ladder] [ ST ]
RST(NOT X000, M0);
RST(NOT X000, M1);
RST(NOT X000, M2);
X000
M0
M2
M0 to M2 are reset.
ZRST
EN ENO
d1
d2
[
Structured ladder
] [ ST ]
ZRST(NOT X000, M0, M2);

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals