Omron C200H-MC221 Operation Manual page 231

Motion control unit
Hide thumbs Also See for C200H-MC221:
Table of Contents

Advertisement

Executing MC Programs from the Ladder Program
Sample Ladder Program
Automatic/manual
mode selector
Pause button
Program
start button
n+11 05
Memory Run
Completed Flag
n+16 02
X-axis Servo
Lock ON Flag
R1
n+1 05
Pause Bit
Execution
condition
R2
n+13 09
n+1 02
Cycle
Start
received
completed
Cycle
Start bit
The following ladder program executes an MC program. (Task 1)
n+11 04
Memory
Run Flag
n+19 02
Y-axis Servo
Lock ON Flag
n+11 04
Memory
Run Flag
n+1 05
R3
n+11 02
R4
n+8 14
Pause
Memory
Auto
Servo
Error
Bit
Run
matic
Lock
Flag
Com-
Mode
ON
pleted
Flag
Flag
Note When executing a positioning operation in the MC program, all of the axes being
used must be servo-locked (Servo Lock ON flags ON), so be sure to add a condi-
tion like R4 in the sample program above.
OUT
(Sets
n+1
automatic or
01
manual mode)
Auxiliary
DIFU(13)
R1
Area Bit
Auxiliary
DIFU(13)
R2
Area Bit
Auxiliary
DIFU(13)
R3
Area Bit
OUT
(Auxiliary
R4
Area bit)
n+1
OUT
05
(Pause
execution)
Sets the program
number in word
n+0
OUT
n+1
(Reads the
07
program
number)
OUT
n+1
02
(Cycle Start
bit)
Section 9-10
211

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents