Starting Logic Operations; Outputting The Result Of A Logic Operation - Mitsubishi Electric FX2N Beginners Manual

Hide thumbs Also See for FX2N:
Table of Contents

Advertisement

The Basic Instruction Set
3.4.1

Starting logic operations

Instruction
LD
LDI
A circuit in a program always begins with an LD- or LDI instruction. These instructions can be
performed on inputs, relays, timers and counters.
For examples of using these instructions see the description of the OUT instruction in the next
section.
3.4.2

Outputting the result of a logic operation

Instruction
OUT
The OUT instruction can be used to terminate a circuit. You can also program circuits that use
multiple OUT instructions as their result. This is not necessarily the end of the program, how-
ever. The device set with the result of the operation using OUT can then be used as an input
signal state in subsequent steps of the program.
Example (LD and OUT instructions)
Ladder Diagram
X000
0
These two instructions result in the following signal sequence:
The condition of the LD instruction (poll for signal state "1") is true so the result of the
operation is also true ("1") and the output is set.
3 – 6
Function
Load instruction, starts a logic operation
and polls the specified device for signal
state "1"
Load instruction, starts a logic operation
and polls the specified device for signal
state "0"
Function
Output instruction, assigns the result of
an operation to a device
Y000
ON
(1)
X0
OFF
(0)
ON
(1)
Y0
(0)
OFF
An Introduction to Programming
Symbol
GX Works2 FX
Symbol
GX Works2 FX
Instruction List
0
LD
X000
1
OUT
Y000
t
MITSUBISHI ELECTRIC
F5
F6
F7

Advertisement

Table of Contents
loading

Table of Contents