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
Содержание C200H-MC221 -
Страница 1: ...Cat No W315 E1 03 Motion Control Unit C200H MC221 OPERATION MANUAL ...
Страница 2: ......
Страница 3: ...C200H MC221 Motion Control Unit Operation Manual Details Revised June 2010 ...
Страница 4: ...iv ...
Страница 6: ...vi ...
Страница 10: ......
Страница 12: ......
Страница 16: ...xvi ...
Страница 42: ......
Страница 48: ......
Страница 196: ......
Страница 212: ......
Страница 242: ......
Страница 258: ......
Страница 304: ......