Wiki source code of Wecon LX6C Delta Robot Project
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
1.2 | 1 | = 1 Introduction = |
![]() |
1.1 | 2 | |
![]() |
1.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. |
![]() |
1.1 | 4 | |
![]() |
1.2 | 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 | |||
![]() |
1.8 | 67 | (% style="text-align:center" %) |
![]() |
1.2 | 68 | [[image:1708659330267-186.png]] |
69 | |||
70 | Install LX6C xml file. | ||
71 | |||
![]() |
1.8 | 72 | (% style="text-align:center" %) |
![]() |
1.2 | 73 | [[image:1708659348892-129.png]] |
74 | |||
75 | Install VD3E xml file. | ||
76 | |||
![]() |
1.8 | 77 | (% style="text-align:center" %) |
![]() |
1.2 | 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 | |||
![]() |
1.8 | 101 | (% style="text-align:center" %) |
![]() |
1.2 | 102 | [[image:1708659481680-311.png]] |
103 | |||
104 | Select device and programming language | ||
105 | |||
![]() |
1.8 | 106 | (% style="text-align:center" %) |
![]() |
1.2 | 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 | |||
![]() |
1.8 | 115 | (% style="text-align:center" %) |
![]() |
1.2 | 116 | [[image:1708659630178-665.png]] |
117 | |||
118 | Login device with account and password | ||
119 | |||
![]() |
1.8 | 120 | (% style="text-align:center" %) |
![]() |
1.2 | 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 | |||
![]() |
1.7 | 131 | (% style="text-align:center" %) |
![]() |
1.2 | 132 | [[image:1708659668179-463.png]] |
133 | |||
134 | Click “Select Kinematics” and select “TRAFO.Kin_Tripod_Rotary” | ||
135 | |||
![]() |
1.7 | 136 | (% style="text-align:center" %) |
![]() |
1.2 | 137 | [[image:1708659683686-935.png]] |
138 | |||
139 | Fill in the mechanical parameters (Use the same user units) | ||
140 | |||
![]() |
1.7 | 141 | (% style="text-align:center" %) |
![]() |
1.2 | 142 | [[image:1708659724005-484.png]] |
143 | |||
144 | Right click “Device” and add device | ||
145 | |||
![]() |
1.6 | 146 | (% style="text-align:center" %) |
![]() |
1.2 | 147 | [[image:1708659738998-621.png]] |
148 | |||
149 | Add “EtherCAT Master SoftMotion” | ||
150 | |||
![]() |
1.6 | 151 | (% style="text-align:center" %) |
![]() |
1.2 | 152 | [[image:1708659810951-477.png]] |
153 | |||
![]() |
1.3 | 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) |
![]() |
1.2 | 155 | |
![]() |
1.6 | 156 | (% style="text-align:center" %) |
![]() |
1.3 | 157 | [[image:1708659837241-566.png]] |
![]() |
1.2 | 158 | |
![]() |
1.6 | 159 | |
160 | (% style="text-align:center" %) | ||
![]() |
1.3 | 161 | [[image:1708659844978-946.png]] |
![]() |
1.2 | 162 | |
![]() |
1.3 | 163 | Add 3 motion axis |
![]() |
1.2 | 164 | |
![]() |
1.6 | 165 | (% style="text-align:center" %) |
![]() |
1.3 | 166 | [[image:1708659868961-294.png]] |
![]() |
1.2 | 167 | |
![]() |
1.3 | 168 | Set the correct resolution based on the motor encoder |
![]() |
1.2 | 169 | |
![]() |
1.6 | 170 | (% style="text-align:center" %) |
![]() |
1.3 | 171 | [[image:1708659882131-694.png]] |
![]() |
1.2 | 172 | |
![]() |
1.3 | 173 | Double click “EtherCAT_Master_SoftMotion” and select network name “eth1” in “General” |
![]() |
1.2 | 174 | |
![]() |
1.6 | 175 | (% style="text-align:center" %) |
![]() |
1.3 | 176 | [[image:1708659902425-597.png]] |
177 | |||
178 | Bind axis to robot. | ||
179 | |||
![]() |
1.5 | 180 | (% style="text-align:center" %) |
![]() |
1.3 | 181 | [[image:1708659921571-879.png]] |
182 | |||
183 | Move “PLC_PRG” from “MainTask” to “EtherCAT_Task” | ||
184 | |||
![]() |
1.5 | 185 | (% style="text-align:center" %) |
![]() |
1.3 | 186 | [[image:1708660033766-909.png]] |
187 | |||
![]() |
1.5 | 188 | (% style="text-align:center" %) |
![]() |
1.3 | 189 | [[image:1708660038539-524.png]] |
190 | |||
![]() |
1.4 | 191 | == 6.2 Demo program == |
![]() |
1.3 | 192 | |
![]() |
1.4 | 193 | Build a simple program for absolute move |
![]() |
1.3 | 194 | |
![]() |
1.5 | 195 | (% style="text-align:center" %) |
![]() |
1.4 | 196 | [[image:1708660054738-287.png]] |
![]() |
1.3 | 197 | |
![]() |
1.5 | 198 | (% style="text-align:center" %) |
![]() |
1.4 | 199 | [[image:1708660060148-798.png]] |
![]() |
1.3 | 200 | |
201 |