Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
6 Step Ladder Instructions
6.1 Step Ladder
95
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
(Program Flow)
8
Applied Instructions
(Move and
Compare)
9
Applied Instructions
(Arithmetic and
Logical Operation)
10
Applied Instructions
(Rotation and
Shift Operation)
Output driving method
It is required to include a LD or LDI instruction before the last OUT instruction in a state relay.
Change such a circuit as shown below.
State relay transfer method
Each OUT and SET instruction in state relays automatically resets the transfer source, and has the self-
holding function.
OUT instructions can be used only for transfer to a separate state relay in an SFC program.
3. Program with state relays in branches and recombination
Example of selective branch
Do not use MPS, MRD, MPP, AND () and OR () instructions in a transfer processing program with
branches and recombination.
Even in a load driving circuit, MPS instructions cannot be used immediately after STL instructions.
In the same way as programs for general state relays, program the drive processing first, and then
program the transfer processing.
Continuously program all transfer processing.
Change
Or
Change
Y001
S20
STL
EN ENO
s
Y002
Y003
X005
Move the
position.
Y001
S20
STL
EN ENO
s
Y003
Y002X005
Y001
S20
STL
EN ENO
s
Y002
Y003
X005
M8000
Insert "always
ON" contact.
RUN
monitor
Transfer
condition
Transfer to the next state relay
(SET instruction)
Transfer to a separate state relay
(OUT instruction)
S41
STL
EN ENO
s
SET
EN ENO
d S42
S50
Y000
S20
STL
EN ENO
s
SET
EN ENO
d S21
X000
Drive processing
Transfer processing
SET
EN ENO
d S31
X001
SET
EN ENO
d S41
X002