4.7 The Basic Instruction Set
The instructions of the PLCs of the MELSEC System Q can be divided into two basic catego
-
ries, basic instructions and applied instructions, which are sometimes referred to as “applica
-
tion instructions”.
The functions performed by the basic instructions are comparable to the functions achieved by
the physical wiring of a hard-wired controller.
Basic instruction set quick reference
MELSEC System Q Beginners Manual 4 – 13
An Introduction to Programming The Basic Instruction Set
Instruction Function Description Reference
LD
Load Initial logic operation, polls for signal state “1” (normally open)
Chapter 4.7.1
LDI
Load invers Initial logic operation, polls for signal state “0” (normally closed)
OUT
Output instruction Assigns the result of a logic operation to a device Chapter 4.7.2
AND
Logical AND Logical AND operation, polls for signal state “1”
Chapter 4.7.4
ANI
AND NOT Logical AND NOT operation, polls for signal state “0”
OR
Logical OR Logical OR operation, polls for signal state “1”
Chapter 4.7.5
ORI
OR NOT Logical OR NOT operation, polls for signal state “0"
ANB
AND Block
Connects a parallel branch circuit block to the preceding parallel block, in
series.
Chapter 4.7.6
ORB
OR Block Connects a serial block of circuits to the preceding serial block, in parallel.
LDP
Pulse signal
instructions
Load Pulse, load on detection of rising edge of device signal pulse
Chapter 4.7.7
LDF
Load Falling Pulse, load on falling device signal pulse
ANDP
AND Pulse, logical AND on rising device signal pulse
ANDF
AND Falling Pulse, logical AND on falling device signal pulse
ORP
OR Pulse, logical OR on rising device signal pulse
ORF
OR Falling Pulse, logical OR on falling device signal pulse
SET
Set device
Assigns a signal state that is retained even if after input condition is no
longer true
Chapter 4.7.8
RST
Reset device
PLS
Pulse instructions
Pulse, sets a device for one operation cycle on the rising pulse of the input
condition (input turns ON)
Chapter 4.7.9
PLF
Pulse Falling, sets a device for one operation cycle on the falling pulse of
the input condition (input turns OFF)
INV
Invert Inverts the result of an operation
Chapter
4.7.10
FF
Inversion of bit Inversion of bit output device
Chapter
4.7.11
MEP
Result into pulse
conversion
Pulse generation at the rising edge of the operation result.
Chapter
4.7.12
MEF
Pulse generation at the falling edge of the operation result.