463
Executing MC Programs from the Ladder Program
Section 8-2
In this example procedure, task 1 is executed. The following table shows the
equivalent CIO Area control bits and CIO Area words for tasks 2 to 4.
Ladder Programming
Example
The following ladder program executes Task 1 in the MC Unit.
Note
When executing a positioning operation in the MC program, all of the axes
being used must be servo-locked (Servo-lock ON Flags must be turned ON),
so be sure to add a condition like R4 in the programming example above.
Task
Automatic
Mode Bit
Program
number
Program
Number Read
Bit
Cycle Start Bit
2
n+5: bit 01
n+4
n+5: bit 07
n+5: bit 02
3
n+7: bit 01
n+6
n+7: bit 07
n+7: bit 02
4
n+9: bit 01
n+8
n+9: bit 07
n+9: bit 02
n+3
02
n+3
05
R4
DIFU(13)
R3
DIFU(13)
R2
DIFU(13)
R1
n+3
01
Automatic/Manual
Mode Switch
Program Execution
Completed Flag
Pause button
Program
start button
Program
Execution Flag
n+15 05
n+22 02
n+25 02
X-axis
Servo-lock
ON Flag
Y-axis
Servo-lock
ON Flag
R1
n+15 04
Program
Execution Flag
Sets the program
number in word
n+2
n+3 05
Pause Bit
n+15 09
R2
n+3 05
n+15 02
R4
n+10 14
n+3 02
n+15 04
Execution
condition
Cycle
Start Bit
Pause
Bit
Program Ex-
ecution Com-
pleted Flag
Automatic
Mode
Flag
Servo
-lock
ON
Error
Flag
OUT
(Cycle Start Bit)
OUT
(Program Number
Read Bit)
OUT
(Pause Bit)
OUT
(Work Bit)
Both axes are used
in this example.
OUT
(Automatic/Manual
Mode Bit)
n+3
07
(Work Bit)
(Work Bit)
(Work Bit)
Cycle Start
Received
R3
Содержание CS1W-MC221 -
Страница 1: ...Motion Control Units Cat No W359 E1 04 CS1W MC221 V1 421 V1 OPERATION MANUAL ...
Страница 2: ...CS1W MC221 V1 421 V1 Motion Control Units Operation Manual Revised February 2008 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 11: ...xii ...
Страница 15: ...xvi ...
Страница 19: ...xx ...
Страница 27: ...xxviii Conformance to EC Directives 6 ...
Страница 133: ...106 Installation Section 2 2 2 2 4 Dimensions CS1W MC421 CS1W MC221 ...
Страница 173: ...146 Connecting Peripheral Devices Section 2 7 ...
Страница 227: ...200 Command Area Section 3 6 ...
Страница 351: ...324 Interface Specifics Section 5 4 ...
Страница 513: ...486 Absolute Encoder Interface Specifications Section 9 7 ...
Страница 575: ...548 Error Log Section 12 6 ...
Страница 589: ...562 Performance Appendix A ...
Страница 655: ...628 Control Bit Flag Timing Charts Appendix E ...
Страница 683: ...656 Origin Search Patterns Appendix F ...
Страница 685: ...658 Encoder Divider Rate and Rotation Speed for OMRON Servo Drivers Appendix G ...