232
Controlling the MC Unit from the CPU Unit
Section 5-2
5-2-3
Automatic Mode
The MC program is executed in Automatic Mode. Use the following procedure
to operate in Automatic Mode.
The example provided here is for task 1.
1,2,3...
1.
Set the MC Unit to Automatic Mode by turning ON bit 01 of word n+3.
2.
Set the program number of the program to be executed. (Word n+2)
3.
Turn ON the Program Number Read Bit (bit 07 of word n+3) so that the pro-
gram number set in word n+2 will be read by the MC Unit.
4.
Turn ON the Cycle Start Bit (bit 02 of word n+3) so that the program corre-
sponding to the program number set in word n+2 will be executed.
The corresponding bits for tasks 2 to 4 are shown in the following table.
Ladder Programming Example for Executing an MC Program
The following program is an example of the kind of ladder program used to
execute an MC program. This program is the minimum required to execute the
MC program. Add the program elements needed for your actual application.
Use work bits for inputs R1, R2, R3, and R4.
In the sample program, program number P001 is executed in task 1. Change
the task and program number if necessary.
Task
Automatic
Mode
Program
number set
Program
number read
Cycle start
1
Bit 01 of
word n+3
Word n+2
Bit 07 of
word n+3
Bit 02 of
word n+3
2
Bit 01 of
word n+5
Word n+4
Bit 07 of
word n+5
Bit 02 of
word n+5
3
Bit 01 of
word n+7
Word n+6
Bit 07 of
word n+7
Bit 02 of
word n+7
4
Bit 01 of
word n+9
Word n+8
Bit 07 of
word n+9
Bit 02 of
word n+9
n+3
01
MOV(21)
#0001
n+2
n+3
07
R2
R1
Cycle Start Bit
Cycle Start
Completed
Flag
Program Execution
Completed Flag
OUT
(Specifies
Automatic
Mode.)
(Sets the
program
number.)
OUT
(Reads the
program
number.)
End of MC
program
execution
OUT
(Start of MC
program
execution.)
n+3
02
R4
n+15 09
R3
n+15 02
n+3 02
Automatic Mode Flag
DIFU(13)
R3
n+15 05
Содержание 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 ...