Wiki source code of LX6V EtherCAT Coupler

Last modified by Wecon on 2025/09/03 21:02

Show last authors
1 = Preface =
2
3 == Product Overview ==
4
5 LX6V-EM□-ECAT communication modules support EtherCAT communication, equipped with auto scanning function, and adapt to Wecon and third-party EtherCAT master station device.
6
7 Main features:
8
9 * Compact structure and convenient installation;
10 * Response at microseconds of high-speed bus;
11 * The maximum number of expansion modules is 32, and the total power of modules≤48W;
12
13 == Version History ==
14
15 |=**Revision date**|=**Version**|=**Revisions**
16 |2024-05|V1.0|The first edition
17
18 == How to get this manual ==
19
20 This manual is not shipped with the product. If you need to obtain the PDF file, you can obtain it in the following ways:
21
22 * Wecon official website (https:~/~/www.we-con.com.cn/en/?lang=en),  "Support”- “Download” to get the manual.
23 * Scan the QR code on the machine to obtain the manual.
24
25 == Warranty Statement ==
26
27 Normally, if the product fails or is damaged, our company provides maintenance service within the warranty period (see the order form for product warranty period details). After the warranty period, repair fees will be charged.
28
29 During the warranty period, if the product is damaged due to the following conditions, repair fees will be charged.
30
31 * Product damage caused by not operate the product according to the regulations in the manual.
32 * Product damage caused by fire, flood, and abnormal voltage.
33 * Product damage caused byabnormal functions.
34 * Product damage caused by exceeding the specified scope of use of the product.
35 * Secondary damage caused by force majeure (natural disaster, earthquake, lightning).
36
37 == RESPONSIBILITY STATEMENT ==
38
39 The contents of the manual have been carefully checked, but there is no guarantee that it is completely correct. We will regularly check the content of the manual and make corrections in subsequent versions. Valuable opinions are welcome. The contents described in the manual are subject to change without notice.
40
41 The relevant service fees shall be calculated according to the unified standards of the manufacturers. If there is a contract, the principle of contract priority shall be used. Please refer to Warranty Card for detailed warranty instructions.
42
43 == Safety Considerations ==
44
45 Before the installation, operation, maintenance and overhaul of LX6V-EM□-ECAT, please read this manual and other related manuals carefully to ensure correct use. Please use it after mastering the operation method, safety information and all precautions.
46
47 In this manual, safety precautions are divided into two categories: "Attention" and “Danger".
48
49 == Safety Precautions ==
50
51 Before the installation, operation, maintenance and overhaul of the product, please be sure to read the user manual and other relevant manuals carefully to ensure to use it correctly.
52
53 If the operation is not carried out according to the instructions in the manual, it may lead to improper installation, use and storage of the device, which may cause personal injury or even death, and cause property damage.
54
55 ~1. Installation precautions
56
57 Attention
58
59 ● Please use it within the scope described in the manual "Environment Specifications".
60
61 ● Do not use in:
62
63 Places with dust, oil fume, conductive dust, corrosive gas and flammable gas;
64
65 Places exposed to high temperature, condensation, wind and rain;
66
67 Places with vibration and shock.
68
69 Electric shock, fire, misoperation will also cause product damage.
70
71 ● When machining the screw hole and wiring, do not let iron filings or wire heads fall into the ventilation window of the coupler, which may cause fire, failure, and misoperation.
72
73 2. Precautions for start-up and maintenance
74
75 Danger
76
77 ● Do not touch the terminal when power-on, otherwise it may cause electric shock and misoperation.
78
79 ● Please remove and clean the terminal after the power is off. Otherwise, it may cause electric shock when power-on.
80
81 ● Please read the manual carefully and confirm the safety before performing program changes, forced output, RUN, STOP and other operations during machine running.
82
83 ● Mistakes in operation will damage the machine and cause accidents.
84
85 Attention
86
87 ● Please do not try to decompose and transform the module, otherwise it will cause failure, misoperation, and fire.
88
89 ※ For maintenance matters, please contact Wecon Technology Co., Ltd.
90
91 ● Please make the loading and unloading of connecting cables such as extension cables after the power supply is turned off, otherwise it will cause faults and wrong action.
92
93 == Maintenance and overhaul ==
94
95 Periodic inspection
96
97 ● Whether the temperature inside the machine has increased abnormally due to other heating elements or direct sunlight;
98
99 ● Whether dust or conductive dust has invaded the machine;
100
101 ● Whether there are any loose wiring or terminals or other abnormalities.
102
103 = Product information =
104
105 == Naming ==
106
107 |=LX6V|=EMB|=ECAT
108 |Series|(((
109 Module type
110
111 EMB: Support up to **16** expansion modules
112
113 EMC: Support up to **32** expansion modules
114
115 **Note: Module total power≤48W**
116 )))|(((
117 Communication type
118
119 ECAT: EtherCAT
120 )))
121
122 == Module support list ==
123
124 |=**Coupler**|=**Module type**|=**Coupler Version Version**
125 |(% colspan="1" rowspan="5" %)(((
126 LX6V-EMB-ECAT
127
128 LX6V-EMC-ECAT
129 )))|LX6V-0808EXY|V1.045
130 |LX6V-16EX|V1.045
131 |LX6V-16EY|V1.045
132 |LX6V-4AD|V1.045
133 |LX6V-4DA|V1.045
134
135 (% class="box infomessage" %)
136 (((
137 ✎Note: When LX6V-EM□-ECAT module is connected to LX6V/6S host, it is not supported to get the version number.
138 )))
139
140 = Installation size =
141
142 == Appearance and size ==
143
144 |=**Series number**|=**Interface name**|=(% colspan="4" %)**Function definition**
145 |(% colspan="1" rowspan="10" %)1|(% colspan="1" rowspan="10" %)Signal indicator|(% colspan="1" rowspan="2" %)PWR|(% colspan="1" rowspan="2" %)Power indicator|Off|No power supply
146 |On|Power on
147 |(% colspan="1" rowspan="4" %)RUN|(% colspan="1" rowspan="4" %)Running indicator|Off|ECT module is in INIT status
148 |(((
149 Blink
150
151 (White)*
152 )))|ECT module is in Pre Op status
153 |(((
154 Single flash
155
156 (White)*
157 )))|ECT module is in Safe-Op status
158 |(((
159 Normally on
160
161 (White)
162 )))|ECT module is in Operational status
163 |(% colspan="1" rowspan="4" %)ERR|(% colspan="1" rowspan="4" %)Communication fault indicator|Off|EtherCAT communication is in normal status.
164 |Blink (Red)*|EtherCAT communication receives status transition instructions that cannot be executed.
165 |Single flash (Red)*|Network disconnection, ECT module synchronization error
166 |On (Red)|Watchdog error occurred in EtherCAT communication
167 |2|(((
168 USB Communication Interface
169
170 (Type-C)
171 )))|(% colspan="4" %)Used for single board software upgrade
172 |(% colspan="1" rowspan="2" %)3|(% colspan="1" rowspan="2" %)EtherCAT interface|(% colspan="4" %)IN: EtherCAT input port
173 |(% colspan="4" %)OUT: EtherCAT output port
174 |4|24V power input interface|(% colspan="4" %)Module power input terminal
175 |5|Expansion module interface|(% colspan="4" %)Connect LX6V series expansion module
176 |6|Mounting hole|(% colspan="4" %)2 places, φ4.5
177 |7|DIN rail fastener|(% colspan="4" %)
178
179 *Blink: On for 200ms, off for 200ms
180
181 *Single flash: On for 200ms, off for 1s
182
183 (% class="box infomessage" %)
184 (((
185 ✎Note: USB interface can supply power to the coupler, but it can't supply power to the expansion module connected to the coupler. If USB is used to supply power to the coupler first, and then 24V power input interface is used to supply power, the coupler can't recognize the expansion module mounted later. If there is an expansion module, 24V power supply must be used first.
186 )))
187
188 == Electrical installation ==
189
190 === Communication wiring ===
191
192 * Cable recommendation
193
194 EtherCAT bus communication uses STP/FTP cable for network data transmission, without short circuit, dislocation and bad contact.
195
196 The length of the cable between the devices cannot exceed 100 meters. Exceeding 100 meters will cause signal attenuation and affect normal communication.
197
198 It is recommended to use the following specifications of data cables:
199
200 |=**Item**|=**Specifications**
201 |Type of cable|Elastic crossover cable, Category 5E (cat 5e) cable and above
202 |Traverse cross section|AWG26
203 |traverse type|Twisted pair
204 |Line pairs|4 pairs
205
206 * Wiring instructions
207
208 Wiring is carried out according to the radium engraving of the shell, where the IN interface is EtherCAT input port, which is used to connect the EtherCAT master station; The OUT interface is an EtherCAT output port, which is used to connect the later EtherCAT slave station.
209
210 [[image:1718108309537-742.png||height="186" width="118"]][[image:图片2.png||height="359" width="506"]]
211
212 === Power terminal wiring ===
213
214 Connect the positive and negative electrodes of the 24V power supply according to the shell marks; The cross-sectional area of the grounding wire is not less than 2mm^^2^^, and the grounding resistance is less than 100Ω.
215
216 (% style="text-align:center" %)
217 [[image:1718108415508-909.png]]
218
219 = **Specification parameters** =
220
221 == Specification parameter ==
222
223 |= |=(% colspan="2" %)**Specification parameter**
224 |**Item**|**LX6V-EMB-ECAT**|**LX6V-EMC-ECAT**
225 |Rated input voltage|(% colspan="2" %)DV 24V±10%, 100mA (without expansion module)
226 |Communication interface|(% colspan="2" %)(((
227 RJ45×2, EtherCAT communication protocol with 100Mbps performance;
228
229 EtherCAT IN: EtherCAT input port;
230
231 EtherCAT OUT: EtherCAT output port.
232 )))
233 |Transmission distance|(% colspan="2" %)Length of communication line between two nodes≤100m
234 |Transmission medium|(% colspan="2" %)Category 5E (cat 5e) cable or above
235 |Single AP process data|(% colspan="2" %)Maximum input and output 1024 bytes
236 |Synchronous|(% colspan="2" %)Minimum 125us
237 |Allowable instantaneous power-off time|(% colspan="2" %)10ms
238 |Impulse current|(% colspan="2" %)≤45A (loaded with maximum module)
239 |Power protection|(% colspan="2" %)Anti-reverse connection protection, overcurrent protection and surge absorption
240 |Maximum number of expansion modules|16|32
241 |Firmware upgrade|(% colspan="2" %)Support
242
243 == Environmental specifications ==
244
245 |=**Item**|=**Specification parameter**
246 |Usage environment|No corrosive, combustible gas, no large amount of conductive dust(dust)
247 |Environment temperature|(((
248 Operating temperature: -20℃ to 55℃
249
250 Storage temperature: -40℃ to 70℃
251 )))
252 |Environment humidity|(((
253 Working humidity: 10% to 90%RH (No condensation)
254
255 Storage humidity: ≤90%RH (No condensation)
256 )))
257 |Altitude|0-2000m
258 |Installation|Installed on DIN46277 (Width: 35mm) rail by fastener
259 |Overall size|91*34*94.8mm
260
261 = **LX6V-EM□-ECAT Module Instructions for Use** =
262
263 This module is compatible with Wecon LX6V, LX6S and LX6C PLC. The following is the usage for the different models.
264
265 == Use on LX6V/LX6S hosts ==
266
267 (1) Add EtherCAT device
268
269 ① Right-click EtherCAT, click [New]->[Import], importing ESI file of the device;
270
271 (% style="text-align:center" %)
272 [[image:图片5.png||alt="1718108591044-152.png"]]
273
274 ② Select the coupler according to the model and position of the current connected module;
275
276 (% style="text-align:center" %)
277 [[image:1718108605886-704.png]]
278
279 ③ Right-click the current coupler to add the expansion module mounted by the current coupler;
280
281 (% class="box infomessage" %)
282 (((
283 ✎Note: When the configuration module is inconsistent with the actual mount module, OP cannot succeed when reporting error.
284 )))
285
286
287 (% style="text-align:center" %)
288 [[image:图片3.png||alt="1718108635708-246.png"]]
289
290 ④ Configure modules sequentially X-point filtering time and I/O map. Click OK to save configuration;
291
292 (% style="text-align:center" %)
293 [[image:1718108650087-537.png]]
294
295 (% style="text-align:center" %)
296 [[image:1718108662133-768.png]]
297
298 Filtering time (Unit: 0.1ms): The default configuration filter time here is 1ms, and the set range: 0-64ms. I/O mapping: The X and Y points of the modules are sequentially mapped to X10-X17 and Y10-17 of the PLC.
299
300 (% class="box infomessage" %)
301 (((
302 ✎Note: Due to the current host LX6V-0808MT, X0-X7, Y0-Y7 has been occupied by the host. So the module channel mapping device starts from X10 and Y10 to allow configuration!
303 )))
304
305 ⑤ Click on the interface in turn PLC Download, check the extension function, click Execute, and download the extension module configuration to PLC.
306
307 (% style="text-align:center" %)
308 [[image:图片6.png||alt="1718108712977-214.png"]]
309
310 == Use on an LX6C host ==
311
312 (1) Install Device Description File
313
314 When using it for the first time, you need to install the slave device description file (the device description file can be downloaded from the official website, name: WECON_LX6V_EM_ECAT_1.0.xml).
315
316 Operation steps:
317
318 [Tools]->[Device repository]->[Installation]
319
320 Select Coupler Device Description File to complete installation.
321
322 (% style="text-align:center" %)
323 [[image:图片1.png]]
324
325 (% style="text-align:center" %)
326 [[image:图片7.png||alt="1718108812504-454.png"]]
327
328 (2) Add EtherCAT master device
329
330 [Equipment]->[Add device]->[Fieldbus]->[Ethecat Master or Ethecat Master SoftMotion]
331
332 (% style="text-align:center" %)
333 [[image:图片8.png||alt="1718108914401-605.png"]]
334
335 (3)Add coupler and external expansion module
336
337 ① Add manually
338
339 (% style="text-align:center" %)
340 [[image:图片9.png||alt="1718108956637-286.png"]]
341
342 (% style="text-align:center" %)
343 [[image:图片10.png||alt="1718108967979-533.png"]]
344
345 (% class="box infomessage" %)
346 (((
347 ✎Note: The actual access module type must be the same as the configuration type, otherwise it cannot be run.
348 )))
349
350 ②Scanning mode
351
352 Right-click to scan
353
354 (% style="text-align:center" %)
355 [[image:1718109096001-165.png]]
356
357
358 (% style="text-align:center" %)
359 [[image:1718109105670-225.png]]
360
361 ③Copy all the modules to project
362
363 (% style="text-align:center" %)
364 [[image:1718109134091-816.png]]
365
366 ④Configure startup parameters and IO mapping
367
368 (% style="text-align:center" %)
369 [[image:图片11.png||alt="1718109171755-561.png"]]
370
371 No errors are reported when compiling, just download the program and run it.
372
373 = LX6V-EM□-ECAT connect with other expansion module =
374
375 == Digital IO module ==
376
377 (1) Add EtherCAT device
378
379 Right-click EtherCAT and click [New]→[Import], import ESI file of device.
380
381 (% style="text-align:center" %)
382 [[image:图片5.png||alt="1718109285327-253.png"]]
383
384 Import completed. As the following figure, select coupler according to the current host module model and position. (Take LX6V-EMB-ECAT as an example)
385
386 (% style="text-align:center" %)
387 [[image:1718109304493-135.png]]
388
389 (2) Configure module
390
391 Right-click the added coupler. Add the new expansion module loaded on the current coupler.
392
393 (% style="text-align:center" %)
394 [[image:图片3.png||alt="1718109323431-487.png"]]
395
396 (% class="box infomessage" %)
397 (((
398 ✎Note: If configuration module is not consistent with the actual loaded module, it will report error and OP failed.
399 )))
400
401 (3) Configure module parameter
402
403 (% style="text-align:center" %)
404 [[image:1718109383387-263.png]]
405
406
407 DA configuration
408
409 ①0808EXY Digital input Filter time 8bit: used to set 0808EXY input point filter time.
410
411 Default 1ms, unit: 0.1 ms
412
413 Configurable range: 0ms-64ms
414
415 ②0808EXY DO module CH0-8bit stopmode after EtherCAT lost link: used to set 0808EXY output point stop mode when EtherCAT disconnected.
416
417 DO stop mode
418
419 0: Keep output after EtherCAT disconnected.
420
421 Non-0: Use stopvalue output after EtherCAT disconnected.
422
423 ③0808EXY DO module 8bit stopvalue after EtherCAT lost link: used to set 0808 EXY output point DO output value after EtherCAT disconnected.
424
425 I/O mapping
426
427 IO module input and output point can be mapped to variable/device.
428
429 For example, the figure below maps the DO channel value to the lower 8 bits of the D0 device, and the DI channel maps to the lower 8 bits of the D1 device.
430
431 (% style="text-align:center" %)
432 [[image:1718109416174-500.png]]
433
434 Click save to download to PLC.
435
436 == 4AD module ==
437
438 (1) Add EtherCAT device
439
440 Right-click EtherCAT and click [New]→[Import], import ESI file of device.
441
442 (% style="text-align:center" %)
443 [[image:图片5.png||alt="1718109527443-750.png"]]
444
445 Import completed. As the following figure, select coupler according to the current host module model and position. (Take LX6V-EMB-ECAT as an example)
446
447 (% style="text-align:center" %)
448 [[image:1718109549951-866.png]]
449
450 (2) Configure module
451
452 Right-click the added coupler. Add the new expansion module loaded on the current coupler.
453
454 (% style="text-align:center" %)
455 [[image:图片3.png||alt="1718109567243-333.png"]]
456
457 (% class="box infomessage" %)
458 (((
459 ✎Note: If configuration module is not consistent with the actual loaded module, it will report error and OP failed.
460 )))
461
462 (3) Configure module parameter
463
464 AD configuration
465
466 ①4AD module Chx transform mode: used to set the current channel CHx (x∈[0,3]) change mode.
467
468 Support mode:
469
470 0: Not enable;
471
472 1: -10V-10V (-10000-10000)
473
474 2: 4mA-20mA (0-20000)
475
476 3: -20mA-20mA (-20000-20000)
477
478 ② reverse: Reserve, not in use yet.
479
480 ③ 4AD module CHx filter time: used to specify the current channel CHx (x∈[0,3]) filter time.
481
482 I/O mapping
483
484 (% style="text-align:center" %)
485 [[image:1718109612642-658.png]]
486
487 IO module input and output point can be mapped to variable/device.
488
489 For example, the figure below maps the DO channel value to the lower 8 bits of the D0 device, and the DI channel maps to the lower 8 bits of the D1 device.
490
491 Click “Save” and download to PLC.
492
493 == 4DA module ==
494
495 (1) Add EtherCAT device
496
497 Right-click EtherCAT and click [New]→[Import], import ESI file of device.
498
499 (% style="text-align:center" %)
500 [[image:图片5.png||alt="1718109649192-271.png"]]
501
502 Import completed. As the following figure, select coupler according to the current host module model and position. (Take LX6V-EMB-ECAT as an example)
503
504 (% style="text-align:center" %)
505 [[image:1718109665338-868.png]]
506
507 (2) Configure module
508
509 Right-click the added coupler. Add the new expansion module loaded on the current coupler.
510
511 (% style="text-align:center" %)
512 [[image:图片3.png||alt="1718109690676-453.png"]]
513
514 (% class="box infomessage" %)
515 (((
516 ✎Note: If configuration module is not consistent with the actual loaded module, it will report error and OP failed.
517 )))
518
519 (3) Configure module parameter
520
521 (% style="text-align:center" %)
522 [[image:1718109737797-318.png]]
523
524
525 DA configuration
526
527 4DA module Chx transform mode: used to set the current channel CHx (x∈[0,3]) change mode.
528
529 Support mode:
530
531 0: Not enable;
532
533 1: -10V-10V (-10000-10000)
534
535 2: 4mA-20mA (0-20000)
536
537 3: -20mA-20mA (-20000-20000)
538
539 4DA module CHx stopmode: used to specify the current channel CHx (x∈[0,3]) stopmode
540
541 0: output clear
542
543 1: keep output
544
545 2:Output preset value
546
547 4DA module Chx stopvalue: used to specify the current channel CHx(x[0,3]) to set the digital as output preset value mode
548
549 When 4DA module CHx stopmode is set to 2, if PLC STOP or EtherCAT disconnected, module channel will output this parameter specified digital.                                                                                                                 
550
551 I/O mapping
552
553 Module CH0- CH3 map to variable/device the D0-D3 device.
554
555 (% style="text-align:center" %)
556 [[image:1718109800651-519.png]]
557
558 Click “Save” and download to PLC.
559
560 = Object dictionary =
561
562 |=**Model**|=**Index**|=**Sub-index**|=**Name**|=**Type**|=**Range**|=**Read and write support**|=**Default value**|=**Description**
563 |(% colspan="1" rowspan="15" %)LX6V-EMB (D)-ECAT|16#1000|16#00|Device type|UINT32|~-~-|R|~-~-|Coupler device model
564 |16#1001|16#00|Error register|UINT16|~-~-|R|~-~-|Error register, which holds error codes
565 |16#1008|16#00|Device name|STRING (15)|~-~-|R|~-~-|Device name
566 |16#1009|16#00|Hardware version|STRING (13)|~-~-|R|~-~-|Hardware version number
567 |16#100A|16#00|Software version|STRING (13)|~-~-|R|~-~-|Software version number
568 |(% colspan="1" rowspan="5" %)16#1018|16#00|Identity|UINT32|~-~-|R|~-~-|Device Identifier
569 |16#01|Vendor ID|UINT32|~-~-|R|~-~-|Manufacturer ID
570 |16#02|Product Code|UINT32|~-~-|R|~-~-|Product code
571 |16#03|Revision number|UINT32|~-~-|R|~-~-|Version code
572 |16#04|Serial Number|UINT32|~-~-|R|~-~-|SN
573 |16#F100|16#00|local bus status|UINT32|~-~-|R|~-~-|Local bus status
574 |(% colspan="1" rowspan="4" %)16#F120|16#00|local bus information|UINT32|~-~-|R|~-~-|Local module information
575 |16#01|local bus link count|UINT32|~-~-|R|~-~-|Total local module connections
576 |16#02|local bus communication total count|UINT32|~-~-|R|~-~-|Total number of local module communications
577 |16#03|local bus communication error count|UINT32|~-~-|R|~-~-|Number of local module communication errors
578
579 (% class="box infomessage" %)
580 (((
581 ✎Note: When the LX6V-EM□-ECAT module is connected to the LX6V or LX6S host, it does not support string type reading.
582 )))
583
584 = Error code =
585
586 |=**Error code**|=**Description**|=**Action**|=**Solution**|=**Detect time**
587 |7080|Expansion module check error|Keep running|Check whether there is external interference the connection between expansion module and host|During instruction execution
588 |7081|Expansion module communication reporting error|Keep running|Check whether there is external interference the connection between expansion module and host|During instruction execution
589 |7083|Expansion module access error|Keep running|Check the connection between expansion module and host|During instruction execution
590 |7084|Expansion module config quantity does not match the actual quantity|Keep running|Check whether the configuration is correct|During instruction execution
591 |7110|Expansion module configuration error|Stop running|Check whether expansion module configuration is correct|During instruction execution