270
Interface Specifics
Section 5-4
Programming Example
The following example is for task 1 using the X and Y axes.
Note
When executing positioning command in a MC program, all of the axes being
used must be servo-locked (Servo Lock ON Flags ON), so be sure to add a
condition like R4 in the program example above.
DIFU(13)
R1
n+15 09
n+15 02
R3
n+1 02
Cycle Start Bit
Program Execution
Completed Flag
X-axis
Servo-lock ON
Y-axis
Servo-lock ON
Automatic/Manual Mode condition
Work Bit (The X and Y axes
are used in this example.)
Program start input
OUT (Automatic/Manual Mode Bit)
Work Bit
n+3
01
DIFU(13)
R2
Work Bit
n+15 04
Program Execution
Flag
DIFU(13)
R2
n+15 05
n+22 02
R4
Work Bit
n+25 02
n+3
05
Program Execution
Flag
R1
n+15 04
n+3 05
Pause
Program No. Setting
n+2
n+3
07
n+3
02
OUT (Pause)
OUT (Program Number Read Bit)
OUT (Cycle Start Bit)
Program
initialization
condition
R4
Servo
-lock
ON
n+10 14
Pause
pushbutton
Cycle Start
Received
Pause
Program
execution
ended
Automatic
Mode
Flag
Task Error
Flag
n+3 05
R2
Summary of Contents for CS1W-MC221 -
Page 1: ...Motion Control Units Cat No W359 E1 04 CS1W MC221 V1 421 V1 OPERATION MANUAL ...
Page 2: ...CS1W MC221 V1 421 V1 Motion Control Units Operation Manual Revised February 2008 ...
Page 3: ...iv ...
Page 5: ...vi ...
Page 11: ...xii ...
Page 15: ...xvi ...
Page 19: ...xx ...
Page 27: ...xxviii Conformance to EC Directives 6 ...
Page 133: ...106 Installation Section 2 2 2 2 4 Dimensions CS1W MC421 CS1W MC221 ...
Page 173: ...146 Connecting Peripheral Devices Section 2 7 ...
Page 227: ...200 Command Area Section 3 6 ...
Page 351: ...324 Interface Specifics Section 5 4 ...
Page 513: ...486 Absolute Encoder Interface Specifications Section 9 7 ...
Page 575: ...548 Error Log Section 12 6 ...
Page 589: ...562 Performance Appendix A ...
Page 655: ...628 Control Bit Flag Timing Charts Appendix E ...
Page 683: ...656 Origin Search Patterns Appendix F ...
Page 685: ...658 Encoder Divider Rate and Rotation Speed for OMRON Servo Drivers Appendix G ...