Mitsubishi Electric FX2N Beginners Manual page 37

Hide thumbs Also See for FX2N:
Table of Contents

Advertisement

An Introduction to Programming
Example (LDI and OUT instructions)
Ladder Diagram
X000
0
The condition of the LDI instruction (poll for signal state "0") is no
longer true so the output is reset.
Double assignment of relays or outputs
Never assign the result of an operation to the same device in more than one place in the
program!
The program is executed
sequentially from top to bot-
tom, so in this example the
second assignment of M10
would simply overwrite the
result of the first assign-
ment.
You can solve this problem
with modification shown on
the right. This takes all the
required input conditions
into account and sets the
result correctly.
FX Beginners Manual
Y000
ON
(1)
X0
OFF
(0)
ON
(1)
Y0
OFF
(0)
X001
X004
X001
X004
Instruction List
0
LDI
1
OUT
X003
X005
X003
X005
The Basic Instruction Set
X000
Y000
t
M10
M10
M10
3 – 7

Advertisement

Table of Contents
loading

Table of Contents