5 Basic Instruction
5.12 MC, MCR
89
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)
Program examples
1. When the nesting structure is not adopted.
[Structured ladder/FBD]
[ ST ]
MC(X000,0,M100);
Y000:= X001;
Y001:= X002;
MCR(TRUE,0);
MC(X003,0,M150);
Y002:= X004;
Y003:= X005;
MCR(TRUE,0);
When not adopting the nesting structure, use nesting
level "0" again to program.
There is no limitation in the number of nesting level "0".
Only in the nesting structure, increase the nesting level
0 1 ... 6 7 as shown in the example 2 on the next
page.
X000
X001
X002
MC
EN ENO
d
n
MCR
EN ENO
n
0 M100
Y000
Y001
0
X003
X004
X005
MC
EN ENO
d
n
MCR
EN ENO
n
0 M150
Y002
Y003
0