Wiki source code of Wecon LX6C Delta Robot Project
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | = 1 Introduction = | ||
2 | |||
3 | This project uses Wecon Codesys PLC LX6C and bus type servo VD3E for delta robot control. Through simple debugging, the point-to-point interpolation motion of the delta robot is realized. | ||
4 | |||
5 | = 2 Main kit composition = | ||
6 | |||
7 | (% style="text-align:center" %) | ||
8 | [[image:1708658466693-778.png]] | ||
9 | |||
10 | (% style="margin-left:auto; margin-right:auto" %) | ||
11 | |(% style="width:837px" %)((( | ||
12 | (% style="text-align:center" %) | ||
13 | [[image:1708658932564-782.png]] | ||
14 | )))|(% style="width:785px" %)((( | ||
15 | (% style="text-align:center" %) | ||
16 | [[image:1708658950128-652.png]] | ||
17 | ))) | ||
18 | |(% style="text-align:center; width:837px" %)**LX6C**|(% style="text-align:center; width:785px" %)**VD3E Servo** | ||
19 | |||
20 | (% style="margin-left:auto; margin-right:auto" %) | ||
21 | |=NAME|=QUANTITY | ||
22 | |LX6C-0808MT-DD|1 | ||
23 | |VD3E-014SA1G|3 | ||
24 | |WE80M-07530S-A1F|3 | ||
25 | |Upper arm|3 | ||
26 | |Lower arm|6 | ||
27 | |Motor shaft connector|3 | ||
28 | |Top plate|1 | ||
29 | |Tool plate|1 | ||
30 | |Hexagon socket screws|6 (M4 and M5) | ||
31 | |||
32 | = 3 Mechanical parameters = | ||
33 | |||
34 | [[image:1708659158007-639.png||style="float:left"]][[image:1708659191216-488.png||style="float:left"]][[image:1708659202564-503.png]] | ||
35 | |||
36 | Length of the upper arm **d1**: 330mm | ||
37 | |||
38 | Length of the lower arm **d2**: 600mm | ||
39 | |||
40 | Distance between lower arm in one pair **d3**: 20mm | ||
41 | |||
42 | Radius of circle where lower arm contact point is located **r1**: 50mm | ||
43 | |||
44 | Radius of circle where motor shaft is located **r2**: 100mm | ||
45 | |||
46 | Maximum angle in ± for ball joints: 60° | ||
47 | |||
48 | = 4 Program preparation = | ||
49 | |||
50 | == 4.1 Language settings == | ||
51 | |||
52 | Select “Tools”~-~->“Options” | ||
53 | |||
54 | (% style="text-align:center" %) | ||
55 | [[image:1708659282790-309.png]] | ||
56 | |||
57 | |||
58 | Set software language in “International Settings” | ||
59 | |||
60 | (% style="text-align:center" %) | ||
61 | [[image:1708659276549-637.png]] | ||
62 | |||
63 | == 4.2 Device file import == | ||
64 | |||
65 | Select “Tools“~-~->“Device Repository“ | ||
66 | |||
67 | (% style="text-align:center" %) | ||
68 | [[image:1708659330267-186.png]] | ||
69 | |||
70 | Install LX6C xml file. | ||
71 | |||
72 | (% style="text-align:center" %) | ||
73 | [[image:1708659348892-129.png]] | ||
74 | |||
75 | Install VD3E xml file. | ||
76 | |||
77 | (% style="text-align:center" %) | ||
78 | [[image:1708659363849-556.png]] | ||
79 | |||
80 | [[image:1708659372629-274.png||style="float:left"]] | ||
81 | |||
82 | [[image:1708659390655-234.png||style="float:left"]] | ||
83 | |||
84 | |||
85 | |||
86 | |||
87 | |||
88 | |||
89 | |||
90 | |||
91 | |||
92 | |||
93 | |||
94 | |||
95 | = 5 Device connection = | ||
96 | |||
97 | == 5.1 New project == | ||
98 | |||
99 | Create a new standard project | ||
100 | |||
101 | (% style="text-align:center" %) | ||
102 | [[image:1708659481680-311.png]] | ||
103 | |||
104 | Select device and programming language | ||
105 | |||
106 | (% style="text-align:center" %) | ||
107 | [[image:1708659504171-928.png]] | ||
108 | |||
109 | == 5.2 Connect LX6C == | ||
110 | |||
111 | Double click “Device” and select Scan Network | ||
112 | |||
113 | Select LX6C and click OK, make sure your PC and LX6C in the same LAN (LX6C default IP is 192.168.8.8) | ||
114 | |||
115 | (% style="text-align:center" %) | ||
116 | [[image:1708659630178-665.png]] | ||
117 | |||
118 | Login device with account and password | ||
119 | |||
120 | (% style="text-align:center" %) | ||
121 | [[image:1708659646762-832.png]] | ||
122 | |||
123 | |||
124 | = 6 Project configuration = | ||
125 | |||
126 | == 6.1 Add Axis Group == | ||
127 | |||
128 | Right click Application, “Add Object” and select “Axis Group” | ||
129 | |||
130 | |||
131 | (% style="text-align:center" %) | ||
132 | [[image:1708659668179-463.png]] | ||
133 | |||
134 | Click “Select Kinematics” and select “TRAFO.Kin_Tripod_Rotary” | ||
135 | |||
136 | (% style="text-align:center" %) | ||
137 | [[image:1708659683686-935.png]] | ||
138 | |||
139 | Fill in the mechanical parameters (Use the same user units) | ||
140 | |||
141 | (% style="text-align:center" %) | ||
142 | [[image:1708659724005-484.png]] | ||
143 | |||
144 | Right click “Device” and add device | ||
145 | |||
146 | (% style="text-align:center" %) | ||
147 | [[image:1708659738998-621.png]] | ||
148 | |||
149 | Add “EtherCAT Master SoftMotion” | ||
150 | |||
151 | (% style="text-align:center" %) | ||
152 | [[image:1708659810951-477.png]] | ||
153 | |||
154 | Right click “EtherCAT_Master_SoftMotion” and add device, select “Wecon VD3E EtherCAT Servo_v1.10” (Servo xml file should be same with servo firmware, you can check servo firmware in U2-04 through servo panel) | ||
155 | |||
156 | (% style="text-align:center" %) | ||
157 | [[image:1708659837241-566.png]] | ||
158 | |||
159 | |||
160 | (% style="text-align:center" %) | ||
161 | [[image:1708659844978-946.png]] | ||
162 | |||
163 | Add 3 motion axis | ||
164 | |||
165 | (% style="text-align:center" %) | ||
166 | [[image:1708659868961-294.png]] | ||
167 | |||
168 | Set the correct resolution based on the motor encoder | ||
169 | |||
170 | (% style="text-align:center" %) | ||
171 | [[image:1708659882131-694.png]] | ||
172 | |||
173 | Double click “EtherCAT_Master_SoftMotion” and select network name “eth1” in “General” | ||
174 | |||
175 | (% style="text-align:center" %) | ||
176 | [[image:1708659902425-597.png]] | ||
177 | |||
178 | Bind axis to robot. | ||
179 | |||
180 | (% style="text-align:center" %) | ||
181 | [[image:1708659921571-879.png]] | ||
182 | |||
183 | Move “PLC_PRG” from “MainTask” to “EtherCAT_Task” | ||
184 | |||
185 | (% style="text-align:center" %) | ||
186 | [[image:1708660033766-909.png]] | ||
187 | |||
188 | (% style="text-align:center" %) | ||
189 | [[image:1708660038539-524.png]] | ||
190 | |||
191 | == 6.2 Demo program == | ||
192 | |||
193 | Build a simple program for absolute move | ||
194 | |||
195 | (% style="text-align:center" %) | ||
196 | [[image:1708660054738-287.png]] | ||
197 | |||
198 | (% style="text-align:center" %) | ||
199 | [[image:1708660060148-798.png]] |