211
Sample Ladder Program
The following ladder program executes an MC program. (Task 1)
n+1
02
n+1
05
R4
DIFU(13)
R3
DIFU(13)
R2
DIFU(13)
R1
n+1
01
Automatic/manual
mode selector
Memory Run
Completed Flag
Pause button
Program
start button
Memory
Run Flag
n+11 05
n+16 02
n+19 02
X-axis Servo
Lock ON Flag
Y-axis Servo
Lock ON Flag
R1
n+11 04
Memory
Run Flag
Sets the program
number in word
n+0
n+1 05
Pause Bit
n+13 09
R2
n+1 05
n+11 02
R4
n+8 14
n+1 02
n+11 04
Execution
condition
Cycle
Start bit
Pause
Bit
Memory
Run
Com-
pleted
Flag
Auto
matic
Mode
Flag
Servo
Lock
ON
Error
Flag
OUT
(Cycle Start
bit)
OUT
(Reads the
program
number)
OUT
(Pause
execution)
OUT
(Auxiliary
Area bit)
OUT
(Sets
automatic or
manual mode)
n+1
07
Auxiliary
Area Bit
Auxiliary
Area Bit
Auxiliary
Area Bit
Cycle
Start
received
completed
R3
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.
Executing MC Programs from the Ladder Program
Section 9-10
Summary of Contents for C200H-MC221 -
Page 1: ...Cat No W315 E1 03 Motion Control Unit C200H MC221 OPERATION MANUAL ...
Page 2: ......
Page 3: ...C200H MC221 Motion Control Unit Operation Manual Details Revised June 2010 ...
Page 4: ...iv ...
Page 6: ...vi ...
Page 10: ......
Page 12: ......
Page 16: ...xvi ...
Page 42: ......
Page 48: ......
Page 196: ......
Page 212: ......
Page 242: ......
Page 258: ......
Page 304: ......