74
Overview of Version 1 Upgrades
Section 1-12
Application Example
Programming Example
The following example shows the operation of sample G-language program-
ming.
G-language Programming
N000 P000 X
N001 G63 E31=1000 .................Sets operand table from A1000.
N002 G63 A1000=2 ...................Electronic cam function
N003 G63 A1001=2 ...................Input axis: Y axis encoder
N004 G63 A1002=0 ...................Integrated axis: None
N005 G63 A1003=100 ...............Stroke width: 100 (Unit: Operating axis X
unit)
N006 G63 A1004=720 ...............Cam 1 rotation distance: 720 (Unit: Input
axis Y unit)
N007 G63 A1005=180 ...............Cam starting position: 180 (Unit: Input axis Y
unit)
N008 G63 A1006=12 .................Start/end condition: 12 (Start at general-pur-
pose input leading edge, repeat)
N009 G63 A1008=3 ...................Cam table size: 3
N010 G63 A1009=0 ...................Cam table data 1 (Cam angle): 0°
N011 G63 A1010=0.125 ............Cam table data 1 (Stroke ratio): 0.125
N012 G63 A1011=180 ...............Cam table data 2 (Cam angle): 180°
N013 G63 A1012=0.625 ............Cam table data 2 (Stroke ratio): 0.625
N014 G63 A1013=360 ...............Cam table data 3 (Cam angle): 360°
N015 G63 A1014=0.125 ............Cam table data 3 (Stroke ratio): 0.125
N016 G01 X(E31).......................Operating axis: X axis
Cam Curves
360
°
720 mm
0
°
0 mm
270
°
540 mm
90
°
180 mm
0.375
37.5 mm
0.625
62.5 mm
0.125
12.5 mm
180
°
360 mm
Horizontal lines: Cam axis position
Vertical lines: Stroke axis position
Cam table
The black dots represent the points set in the cam table.
The MC Unit executes interpolation with straight lines
from 0˚ to 360˚. In this example, the stroke ratios are the
same for 0˚ and 360˚, so reciprocating cam operation is
performed.
Содержание 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 ...