Mitsubishi Electric FX2N Beginners Manual page 46

Hide thumbs Also See for FX2N:
Table of Contents

Advertisement

The Basic Instruction Set
Ladder Diagram
X001
0
X002
2
X1
X2
M0
This example is a program for controlling a pump to fill a container. The pump is controlled
manually with two pushbuttons, ON and OFF. For safety reasons a break contact is used for the
OFF function. When the container is full a level sensor automatically switches the pump off.
Ladder Diagram
X001
0
Pump
ON
X002
2
Pump
OFF
X003
Level
sensor
3 – 16
SET
M0
RST
M0
If the set and reset instructions for the same
device both evaluate to "1" the last operation
performed has priority. In this example that
is the RST instruction, and so M0 remains
off.
SET Y000
Pump
RST Y000
Pump
An Introduction to Programming
Instruction List
0
LD
X001
1
SET
M0
2
LD
X002
3
RST
M0
t
Instruction List
0
LD
X001
1
SET
Y000
2
LDI
X002
3
OR
X003
4
RST
Y000
MITSUBISHI ELECTRIC

Advertisement

Table of Contents
loading

Table of Contents