Wiki source code of 1 Communication

Version 253.1 by Theodore Xu on 2023/08/22 15:32

Show last authors
1 {{info}}
2 ✎Note: Communication Connection Description
3
4 * Modbus TCP:Maximum 16 devices
5 * Modbus RTU:Maximum 32 devices
6 * Ethernet protocol:Maximum 16 devices
7 {{/info}}
8
9 = Create communication with WECON PLC =
10
11 == **LX3V Serial Protocol** ==
12
13 Supported series: Wecon LX2V/ LX2E/ LX3V/LX3VP/LX3VE/LX3VM
14
15 **1)V-BOX setting**
16
17 |**Item**|**Settings**|**Note**
18 |Protocol|WECON LX2V/ LX2E/ LX3V/LX3VP/LX3VE/LX3VM|
19 |Connection|RS422/RS485|
20 |Baud rate|9600|
21 |Data bit|7|
22 |Parity|EVEN|
23 |Stop bit|1|
24 |PLC station No.|1|
25
26 **2)Address List**
27
28
29 |**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
30 |(% rowspan="6" %)Bit|X|X|Xo|0~~303237|
31 |Y|Y|Y o|0~~303237|
32 |M|M|M d|0~~99999|
33 |T|T|T d|0~~99999|
34 |C|C|C d|0~~99999|
35 |S|S|S d|0~~99999|
36 |(% rowspan="8" %)Word|X|X|Xo|0~~303237|
37 |Y|Y|Y o|0~~303237|
38 |M|M|M d|0~~99999|
39 |T|T|T d|0~~99999|
40 |C|C|C d|0~~199|
41 |D|D|D d|0~~7999|
42 |S|S|S d|0~~99999|
43 |SD|SD|SD d|8000~~9999|
44
45 **3)Configure the communication protocol**
46
47 [[image:image-20220824152217-1.png||alt="图片-20220824152217-1.png"]]
48
49 **4)Cable Wiring**
50
51 * **RS422**
52
53 [[image:image-20220824120614-5.png]]
54
55 * **RS485**
56
57 [[image:image-20220824120524-3.png]]
58
59 == **LX5V Serial Protocol** ==
60
61 This example introduces the establishment of serial port communication between V-BOX and LX5V. It is introduced through three parts: PLC software configuration, V-BOX software configuration, and hardware wiring.
62
63 **Software configuration of PLC**
64
65 **1)PLC programming software**
66
67 [[image:image-20220824142722-1.png]]
68
69 **2)New PLC project**
70
71 Click New Project and select the PLC model.
72
73 [[image:image-20220822172623-2.png]]
74
75 **3)Set Serial port parameters**
76
77 Follow the steps below to configure Serial port parameters
78
79 Baud rate:115200
80
81 Data bit:8
82
83 Stop bit:1
84
85 Parity:No verification
86
87 [[image:image-20220822172657-3.png]]
88
89 **4)Registers list**
90
91 [[image:image-20220822172730-4.png]]
92
93 **V-BOX software configuration**
94
95 **1)V-BOX programming software**
96
97 [[image:image-20220824104124-1.png]]
98
99 **2)V-NET add device**
100
101 Open V-NET client software → add device. As shown in the figure below, click "+" in the order of steps, and the Add Device window will pop up, enter the access key, password and remark, to add the device.
102
103 [[image:image-20220824104909-2.png]]
104
105 **3)Set communication port parameters**
106
107 Click the communication configuration button on the left to find the communication protocol with LX5V. After selecting the protocol, configure the communication parameters of the COM port.
108
109 Baud rate:115200
110
111 Data bit:8
112
113 Stop bit:1
114
115 Parity:No verification
116
117 [[image:image-20220824142130-1.png]]
118
119 **hardware connection**
120
121 **1)Hardware wiring diagram**
122
123 [[image:image-20220824142546-2.png]]
124
125 [[image:image-20220824142643-3.png]]
126
127 The above are all the steps for establishing serial port communication between V-BOX with LX5V PLC.
128
129 == **LX5V-N Ethernet protocol** ==
130
131 This example introduces the establishment of Ethernet communication between V-BOX and LX5V-N. It is introduced through three parts: PLC software configuration, V-BOX software configuration, and hardware wiring.
132
133 **Software configuration of PLC**
134
135 **1)PLC programming software**
136
137 [[image:image-20220824142722-1.png]]
138
139 **2)New PLC project**
140
141 Click New Project and select the PLC model.
142
143 [[image:image-20220824143613-1.png]]
144
145 **3)Set Ethernet port parameters**
146
147 Follow the steps below to configure Ethernet parameters
148
149 PLC IP address:192.168.39.200
150
151 default gateway:192.168.39.1
152
153 subnet mask:255.255.255.0
154
155 [[image:image-20220824143744-2.png]]
156
157 **4)Registers list**
158
159 [[image:image-20220822172730-4.png]]
160
161 (% id="cke_bm_22473S" style="display:none" %)** **(%%)**V-BOX software configuration**
162
163 **1)V-BOX programming software**
164
165 [[image:image-20220824104124-1.png]]
166
167 **2)V-NET add device**
168
169 Open V-NET client software → add device. As shown in the figure below, click "+" in the order of steps, and the Add Device window will pop up, enter the access key, password and remark, to add the device.
170
171 [[image:image-20220824104909-2.png]]
172
173 **3)Set communication Protocol**
174
175 Click Communication to configure the LX5V plc protocol and IP address.
176
177 [[image:image-20220824144619-1.png]]
178
179 **hardware connection**
180
181 **1)Hardware wiring diagram**
182
183 [[image:image-20220824151127-2.png]]
184
185 The above are all the steps for establishing ethernet communication between V-BOX with LX5V PLC.
186
187 = Create communication with Allen-Bradley(**Rockwell**)** PLC** =
188
189 == **DF1 Advanced Protocol** ==
190
191 MicroLogix 1000/1100/1200/1400/1500; SLC 5/03 5/04 5/05; PLC-5
192
193 **1) V-Box Settings**
194
195 |=Item|=Recommended |=Note
196 |=Protocol|Allen Bradley DF1 Advanced|
197 |=Connection|RS232|
198 |=Baud rate|19200|
199 |=Stop bits|1|
200 |=Data bits|8|
201 |=Parity|None|
202 |=PLC Station No.|1|
203 |=HMI Station No.|0|
204
205 **2) Address List**
206
207 |=**Type**|=**Device registers**|=**Format**|=**Range**|=Note
208 |(% colspan="1" rowspan="7" %)Bit|I1|I1ddd.dd|0.0~~255.15|Only able to communicate with file number I1
209 |O0|O0ddd.dd|0.0~~255.15|Only able to communicate with file number O0
210 |S2|S2ddd.dd|0.0~~255.15|Only able to communicate with file number S2
211 |B3|B3ddd.dd|0.0~~255.15|Only able to communicate with file number B3
212 |BN|BNddddd.dd|0.0~~99255.15|(((
213 Bit data file B0~~B99
214
215 First two digits is for file number
216
217 For example, BN13001.00 represents file number B13, address 001, the 0th bit.
218 )))
219 |N7|N7ddd.dd|0.0~~255.15|Only able to communicate with file number N7
220 |NN|NNddddd.dd|0.0~~99255.15|(((
221 Integer data file bit format N0~~N99
222
223 First two digits is for file number
224
225 For example, NN13001.00 represents file number N13, address 001, the 0th bit.
226 )))
227 |(% rowspan="11" %)Word|S2|S2ddd|0~~255|Only able to communicate with file number S2
228 |T4S|T4Sddd|0~~255|Only able to communicate with file number T4 (Timer Preset Value)
229 |T4P|T4Pddd|0~~255|Only able to communicate with file number T4 (Timer Accumulator Value)
230 |TNS|TNSddddd|0~~99255|(((
231 Timer Preset Value
232
233 First two digits is for file number
234
235 For example, TNS99255 represents file number T99, address 255.
236 )))
237 |TNP|TNPddddd|0~~99255|(((
238 Timer Accumulator Value
239
240 First two digits is for file number
241
242 For example, TNP99255 represents file number T99, address 255.
243 )))
244 |C5S|C5Sddd|0~~255|Only able to communicate with file number C5 (Counter Preset Value)
245 |C5P|C5Pddd|0~~255|Only able to communicate with file number C5 (Counter Accumulator Value)
246 |CNS|CNSddddd|0~~99255|(((
247 Counter Preset Value
248
249 First two digits is for file number
250
251 For example, CNS99255 represents file number C99, address 255.
252 )))
253 |CNP|CNPddddd|0~~99255|(((
254 Counter Accumulator Value
255
256 First two digits is for file number
257
258 For example, CNP99255 represents file number C99, address 255.
259 )))
260 |N7|N7ddd|0~~255|Only able to communicate with file number N7
261 |NN|NNddd|0~~99255|(((
262 Integer data file
263
264 First two digits is for file number
265
266 For example, NN99255 represents file number N99, address 255.
267 )))
268 |(% colspan="1" rowspan="3" %)Double Word|F8|F8ddd|0~~255|(((
269 Only able to communicate with file number N7
270 )))
271 |FN|FNddddd|0~~99255|(((
272 Floating point data file
273
274 First two digits is for file number
275
276 For example, FN99255 represents file number F99, address 255.
277 )))
278 |LN|LNddddd|0~~99255|Long
279
280 **3) Cable Wiring**
281
282 (% style="text-align:center" %)
283 [[image:ABRS232.gif]]
284
285 (% class="wikigeneratedid" id="HMicroLogixA0Protocol" %)
286 (% id="cke_bm_5621S" style="display:none" %)** **
287
288 == **MicroLogix Protocol** ==
289
290 (% class="wikigeneratedid" %)
291 MicroLogix 1000/1100/1200/1400/1500; SLC 5/03 5/04 5/05 PLC-5
292
293 **1)V-BOX setting**
294
295 |**Item**|**Settings**|**Note**
296 |Protocol|Allen-Bradley DF1 Advanced|
297 |Connection|RS232|
298 |Baud rate|19200|
299 |Data bit|8|
300 |Parity|None|
301 |Stop bit|1|
302 |PLC station No.|1|
303
304 **2)Address List**
305
306 |**Type**|**Device registers**|**Format**|**Range**|**Note**
307 |(% rowspan="5" %)Bit|I|I d.d|0.0~~255.15|
308 |O|O d.d|0.0~~255.15|
309 |B|B nnhh.dd|0.0~~ffff.15|nn: block number (hex)
310 |S|S d.d|0.0~~255.15|
311 |N|N nnhh.dd|0.0~~ffff.15|nn: block number (hex)
312 |(% rowspan="9" %)Word|S|S d|0~~255|
313 |TS|TS nnhh|0~~ffff|(% rowspan="8" %)nn: block number (hex)
314 |TP|TP nnhh|0~~ffff
315 |CS|CS nnhh|0~~ffff
316 |CP|CP nnhh|0~~ffff
317 |N|N nnhh|0~~ffff
318 |C|C nnhh|0~~ffff
319 |T|T nnhh|0~~ffff
320 |R|R nnhh|0~~ffff
321
322 **3)Configure the communication protocol**[[image:image-20220824152928-1.png]]
323
324 **4)Configure the communication protocol**
325
326 [[image:image-20220824110724-1.png]]
327
328 == **Micro850_FreeTag Protocol** ==
329
330 (((
331 (((
332 This example introduces the establishment of Ethernet communication between Wecon V-box and CompactLogix L1769. It is introduced through three parts: PLC software configuration, V-box software configuration, and hardware wiring.
333 )))
334 )))
335
336 (((
337 (% class="wikigeneratedid" id="HSoftwareconfigurationofPLC" %)
338 (((
339 **Software configuration of PLC**
340 )))
341
342 (% class="wikigeneratedid" id="HPLCprogrammingsoftware" %)
343 (((
344 **1)PLC programming software**
345 )))
346
347 [[image:image-20220714162600-1.png]]
348
349 (% class="wikigeneratedid" id="HNewPLCproject" %)
350 (((
351 **2)New PLC project**
352 )))
353
354 (((
355 (((
356 Click New Project and select the PLC model.
357 )))
358 )))
359
360 (((
361 [[image:image-20220714162617-2.png]]
362 )))
363
364 (((
365
366
367 [[image:image-20220714162652-4.png]]
368 )))
369
370 (((
371 (% class="wikigeneratedid" id="HSetEthernetparameters" %)
372 (((
373 **3)Set Ethernet parameters**
374 )))
375
376 (((
377 (((
378 (((
379 Follow the steps below to configure Ethernet parameters
380 )))
381 )))
382 )))
383
384 (((
385 (((
386 (((
387 PLC IP address:192.168.40.101
388 )))
389 )))
390 )))
391
392 (((
393 (((
394 (((
395 default gateway:192.168.40.1
396 )))
397 )))
398 )))
399
400 (((
401 (((
402 (((
403 subnet mask:255.255.255.0
404 )))
405 )))
406 )))
407
408 (((
409 [[image:image-20220714162713-5.png]]
410 )))
411
412 (((
413
414 )))
415
416 (((
417 (% class="wikigeneratedid" id="HV-boxsoftwareconfiguration" %)
418 (((
419 **V-box software configuration**
420 )))
421
422 (% class="wikigeneratedid" id="HV-boxprogrammingsoftware" %)
423 (((
424 **1)V-box programming software**
425 )))
426
427 (% class="wikigeneratedid" %)
428 (((
429 [[image:image-20220714162725-6.png]]
430 )))
431
432 (% class="wikigeneratedid" id="HConfiguredevicenetwork" %)
433 (((
434 **2)Configure device network**
435 )))
436
437 (((
438 (((
439 (((
440 Click the Configuration Download button[[image:image-20220714115308-8.png||height="22" width="15"]], It is used to configure the device network, update the device time, obtain the device machine code, check the device network, etc.
441 )))
442
443 (((
444 In the example below, the IP address of V-Box is configured as 192.168.40.66, and the networking method is 4G connection
445 )))
446 )))
447 )))
448
449 (((
450 (((
451 [[image:image-20220714162737-7.png]]
452
453
454 )))
455 )))
456 )))
457 )))
458
459 (% class="wikigeneratedid" id="HV-netadddevice" %)
460 (((
461 **3)V-net add device**
462 )))
463 )))
464
465 (((
466 (((
467 Open VNET client software → add device. As shown in the figure below, click "+" in the order of steps, and the Add Device window will pop up, enter the device machine code/product code, device password, and device alias to add the device.   [[image:image-20220714162752-8.png]]
468 )))
469
470
471 )))
472
473 (((
474 (% class="wikigeneratedid" id="HSetcommunicationportparameters" %)
475 (((
476 **4)Set communication port parameters**
477 )))
478
479 (((
480 In the device list on the left, find the Vbox that communicates with the L1769, click it and select configuration,communication port configuration in the main interface to add a communication protocol.
481 )))
482
483 [[image:image-20220714162805-9.png]]
484 )))
485
486 (((
487 The communication port is selected as Ethernet, the device type is selected as Allen-Bradley, the protocol is Allen-BradleyMicro850_FreeTag EthemetIP, and the IP is the internal IP address of the L1769 PLC. The port number is 44818.
488 )))
489
490 [[image:image-20220824164346-1.png]]
491
492
493 (((
494 After adding the protocol Allen-BradleyMicro850_FreeTag, click[[image:image-20220714143838-2.png]]icon add label.[[image:image-20220714162827-11.png]]
495 )))
496
497 (% class="wikigeneratedid" id="HEngineeringproduction" %)
498 (((
499 **5)Engineering production**
500 )))
501
502 (% class="wikigeneratedid" %)
503 (((
504 (((
505 According to your own needs, use the V-NET client software to edit the required data monitoring points.
506 )))
507
508 [[image:image-20220714162841-12.png]]
509
510
511 (((
512 **hardware connection**
513 )))
514 )))
515
516 (((
517 **1)Hardware wiring diagram**
518 )))
519
520 (((
521 (((
522 This example introduces Wecon V-box with Allen-Bradley L1769 PLC to establish communication through Ethernet. The connection diagram is as follows:
523 )))
524
525 [[image:image-20220714162856-13.png]]
526
527 (((
528 The above are all the steps for establishing Ethernet communication between Wecon V-box with CompactLogix L1769 PLC.
529
530
531 == **Micro850_FreeTag Protocol(new)** ==
532
533 This example introduces the establishment of Ethernet communication between Wecon V-box and 2080-LC50-48QWB,Micro850. It is introduced through three parts: PLC software configuration, V-box software configuration.
534
535 (% class="wikigeneratedid" id="HSoftwareconfigurationofPLC" %)
536 (((
537 **Software configuration of PLC**
538 )))
539
540 (% class="wikigeneratedid" id="HPLCprogrammingsoftware" %)
541 (((
542 **1)PLC programming software:Connected Components Workbench™**
543
544 (% style="text-align:center" %)
545 [[image:software.png]]
546
547 **2)New PLC project**
548
549 Click New Project and select the PLC model.
550
551 (% style="text-align:center" %)
552 [[image:project create.png]]
553
554 **3)Set Ethernet parameters**
555
556 Follow the steps below to configure Ethernet parameters
557
558 PLC IP address:192.168.39.56
559
560 default gateway:192.168.39.1
561
562 subnet mask:255.255.255.0
563
564 (% style="text-align:center" %)
565 [[image:Ethernet.png]]
566
567 **4)connect PLC**
568
569 **When downloading the setting, need to change the status of the PLC to PRG**
570
571 (% style="text-align:center" %)
572 [[image:conne ab plc.png]]
573
574 **V-box software configuration**
575
576 **1)V-box programming software**
577
578 (% style="text-align:center" %)
579 [[image:v-net client vers.png]]
580
581 **2)Set communication port parameters**
582
583 In the device list on the left, find the Vbox that communicates with the L1769, click it and select configuration,communication port configuration in the main interface to add a communication protocol.
584
585 (% style="text-align:center" %)
586 [[image:V-NET_Client_t2Rg2wpSoY.png]]
587
588 The communication port is selected as Ethernet, the device type is selected as Allen-Bradley, the protocol is Allen-BradleyMicro850_FreeTag EthemetIP, and the IP is the internal IP address of the L1769 PLC. The port number is 44818.
589
590 (% style="text-align:center" %)
591 [[image:V-NET_Client_communication.png]]
592
593 Export variables from PLC, select CSV file, comma delimited.(% id="cke_bm_1950S" style="display:none" %)
594
595 (% style="text-align:center" %)
596 [[image:export1.png]]
597
598 (% style="text-align:center" %)
599 [[image:CCW.Shell_E5Cwj4tUL3.png]]
600
601 After adding the protocol Allen-BradleyMicro850_FreeTag, click[[image:https://docs.we-con.com.cn/bin/download/V-BOX/V-Net/Training/1%20Communication/WebHome/image-20220714143838-2.png?rev=1.1||alt="image-20220714143838-2.png"]]icon add label.
602
603 (% style="text-align:center" %)
604 [[image:V-NET_Client_TNBuqy7T5r.png]]
605
606 **3)Engineering production**
607
608 According to your own needs, use the V-NET client software to edit the required data monitoring points.
609
610 (% style="text-align:center" %)
611 [[image:V-NET_Client_KOR0AHEA4M.png]]
612
613
614 )))
615
616 == **Ethernet DF1 Protocol** ==
617
618 [[download link>>https://ftp.we-con.com.cn/Download/WIKI/V-BOX/Demo/%E9%80%9A%E8%AE%AF%E6%A1%88%E4%BE%8B/Allen-Bradley%20Ethernet%20DF1.zip]]
619
620 = Create communication with **Crouzet PLC** =
621
622 == **CROUZET M3 (FBD)** ==
623
624 Support Series: Crouzet Millenium 3 CD12/CB12
625
626 **1)V-BOX setting**
627
628 |=Item|=Recommended |=Note
629 |=Protocol|CROUZET M3 (FBD)|
630 |=Connection|RS232|
631 |=Baud rate|115200|
632 |=Stop bits|1|
633 |=Data bits|7|
634 |=Parity|EVEN|
635
636 **2)Address List**
637
638 |=**Type**|=**Device registers**|=**Format**|=**Range**|=Note
639 |(% rowspan="4" %)Bit|I|I DD|1~~99|Input
640 |SLIBit|SLIBit DD.dd|1.0~~24.15|Serial Link Input
641 |SLOBit|SLOBit DD.dd|25.0~~48.15|Serial Link Output(Read only)
642 |State|State D|1~~1|PLC state(Read only)
643 |(% rowspan="5" %)Word|AI|AI DD|1~~99|Analog Input
644 |SLIn|SLIn DD|1~~24|Serial Link Input
645 |SLOut|SLOut DD|25~~48|Serial Link Output(Read only)
646 |Time|Time D|1~~6|(((
647 Time1: Second
648
649 Time2: Minute
650
651 Time3: Hour
652
653 Time4: Day
654
655 Time5: Month
656
657 Time6: Year
658 )))
659 |Order|Order D|1~~1|(((
660 Running command(Write only)
661
662 ~=2: Run mode; =1: Stop mode;
663 )))
664
665 **3)Cable Wiring**
666
667 (% style="text-align:center" %)
668 [[image:CrouzetRS232 VBox.png]]
669
670 {{info}}
671 **✎Note: **As the wiring diagram indicated, this protocol requires the DB9 serial port pin 4. But pin 4 is undefined for all V-Box, so it need the user to solder a Pull-up resistor to make the pin 4 working. As for how to solder the resistor on the motherboard, please contact with Wecon technical support for the details.
672 {{/info}}
673
674 = Create communication with EMERSON PLC =
675
676 = **RTU Slave Protocol** =
677
678 Supported series: EC10 series
679
680 **1)V-BOX setting**
681
682 |**Items**|**Settings**|**Note**
683 |Protocol|Emerson 984 RTU Slave MODBUS|
684 |Connection|RS485|
685 |Baud rate|19200|
686 |Data bit|8|
687 |Parity|EVEN|
688 |Stop bit|1|
689 |Device station No.|1|Need to be same as the PLC setting
690
691 (% class="wikigeneratedid" %)
692 **2)PLC Setting**
693
694 (% class="wikigeneratedid" %)
695 Remember to use the Control Star to enable the Modbus RTU communication for port 1 in system block before dowload into PLC.
696
697 (% style="text-align:center" %)
698 [[image:ControlStarSystemBlock.png]]
699
700 (% style="text-align:center" %)
701 [[image:ControlStarCommunicate.png]]
702
703 (% style="text-align:center" %)
704 [[image:ControlStarModbus.png]]
705
706 (% class="wikigeneratedid" %)
707 **3)Address List**
708
709 |**Type**|**Device registers**|**Format**|**Range**|**Note**
710 |(% colspan="1" rowspan="12" %)Bit|Y|YOOO|0~~377|
711 |X|XOOO|0~~377|
712 |M0|M0DDDD|0~~2047|
713 |M1|M1DDDDD|2048~~10239|
714 |SM0|SM0DDD|0~~255|
715 |SM1|SM1DDD|256~~511|
716 |S0|S0DDDD|0~~1023|
717 |S1|S1DDDD|1024~~4095|
718 |T0|T0DDD|0~~255|
719 |T1|T1DDD|256~~511|
720 |C0|C0DDD|0~~255|
721 |C1|C1DDD|256~~306|
722 |(% colspan="1" rowspan="7" %)Word|D|DDDDD|0~~7999|
723 |Z|ZDD|0~~15|
724 |TW0|TW0DDD|0~~255|
725 |TW1|TW1DDD|256~~511|
726 |SD0|SD0DDD|0~~255|
727 |SD1|SD1DDD|256~~511|
728 |CW|CWDDD|0~~306|
729 |(% colspan="1" rowspan="2" %)Double Word|CW0|CW0DDD|200~~255|
730 |CW1|CW1DDDDD|256~~99999|
731
732 **4) Cable Wiring**
733
734 (% style="text-align:center" %)
735 [[image:Emerson.png]]
736
737 = Create communication with HollySys PLC =
738
739 == **LK Modbus RTU** ==
740
741 Supported Series: HollySys LK series PLC
742
743 **1)V-BOX setting**
744
745 |**Items**|**Settings**|**Note**
746 |Protocol|HollySys LK Modbus RTU|
747 |Connection|RS485|
748 |Baud rate|38400|
749 |Data bit|8|
750 |Parity|None|
751 |Stop bit|1|
752 |Device station No.|1|
753
754 **2)Address List**
755
756 |=**Type**|=**Device registers**|=**Format**|=**Range**|=**Note**
757 |Bit|QX|QXDDDDD.dd|0~~65535.15|
758 |Bit|IX|IXDDDDD.dd|0~~65535.15|
759 |Bit|MX|MXDDDDD.dd|0~~65535.15|
760 |Word|QW|QWDDDDD|0~~99999|
761 |Word|IW|IWDDDDD|0~~99999|
762 |Word|MW|MWDDDDD|0~~99999|
763 |Word|MD|MDDDDDD|0~~99999|
764
765 **3)Cable Wiring**
766
767 (% style="text-align:center" %)
768 [[image:Hollysys485-2.png]]
769
770 == **LM Modbus RTU** ==
771
772 (% class="wikigeneratedid" %)
773 Supported Series: HollySys LM3109/LM3107 PLC
774
775 (% class="wikigeneratedid" %)
776 **1)V-BOX setting**
777
778 |(% style="width:208px" %)**Items**|(% style="width:310px" %)**Settings**|(% style="width:365px" %)**Optional**|(% style="width:152px" %)**Note**
779 |(% style="width:208px" %)Protocol|(% style="width:310px" %)HollySys LM Modbus RTU|(% style="width:365px" %)HollySys LM Modbus RTU|(% style="width:152px" %)
780 |(% style="width:208px" %)Connection|(% style="width:310px" %)RS232|(% style="width:365px" %)RS485|(% style="width:152px" %)
781 |(% style="width:208px" %)Baud rate|(% style="width:310px" %)38400|(% style="width:365px" %)38400|(% style="width:152px" %)
782 |(% style="width:208px" %)Data bit|(% style="width:310px" %)8|(% style="width:365px" %)8|(% style="width:152px" %)
783 |(% style="width:208px" %)Parity|(% style="width:310px" %)None|(% style="width:365px" %)None|(% style="width:152px" %)
784 |(% style="width:208px" %)Stop bit|(% style="width:310px" %)1|(% style="width:365px" %)1|(% style="width:152px" %)
785 |(% style="width:208px" %)Device station No.|(% style="width:310px" %)1|(% style="width:365px" %)1|(% style="width:152px" %)
786
787 **2)Address List**
788
789 |=**Type**|=**Device registers**|=**Format**|=**Range**|=**Note**
790 |Bit|QX|QXDDDDD.o|0~~99999.7|
791 |Bit|IX|IXDDDDD.o|0~~99999.7|
792 |Bit|MX|MXDDDDD.o|0~~99999.7|
793 |Word|QW|QWDDDDD|0~~99999|
794 |Word|IW|IWDDDDD|0~~99999|
795 |Word|MW|MWDDDDD|0~~99999|
796 |Word|MD|MDDDDDD|0~~99999|
797
798 **Cable Wiring**
799
800 RS232
801
802 (% style="text-align:center" %)
803 [[image:HollySysRS232.png]]
804
805 RS485
806
807 (% style="text-align:center" %)
808 [[image:Hollysys LM Modbus RTU.gif]]
809
810 = Create communication with **Siemens PLC** =
811
812 == **S7-200 Smart Ethernet Protocol** ==
813
814 [[download link>>https://ftp.we-con.com.cn/Download/WIKI/V-BOX/Demo/%E9%80%9A%E8%AE%AF%E6%A1%88%E4%BE%8B/Communication%20with%20S7-200%20Smart.zip]]
815
816
817 == **S7-300 Ethernet Protocol** ==
818
819 Supported Series: Siemens S7-300 series PLC
820
821 **1)V-BOX setting**
822
823 |**Items**|**Settings**|**Note**
824 |Protocol|Simens S7-300 Ethernet|
825 |Connection|Ethernet|
826 |Port No.|102|
827 |PLC station No.|2|Need to be same as the PLC setting
828
829 **2)Address List**
830
831 |**Type**|**Device register**|**HMI register**|**Format**|**Range**|**Note**
832 |(% rowspan="4" %)Bit|I|I|I ddddd.o|0.0~~99999.7|
833 |Q|Q|Q ddddd.o|0.0~~99999.7|
834 |M|M|M ddddd.o|0.0~~99999.7|
835 |DB0.DB~~DB99.DB|DBxDBD|DBxDB nndddd.o|0.0~~99999999.7|(((
836 nn: block number;
837
838 dddd: address;
839 )))
840 |(% rowspan="8" %)Word|I|IW|IW ddddd|0~~99999|
841 |Q|QW|QW ddddd|0~~99999|
842 |(% rowspan="3" %)M|MB|MB ddddd|0~~99999|
843 |MW|MW ddddd|0~~99999|(((
844 MW0=MB(0~~1)
845
846 MW2=MB(2~~3)
847
848 Address value is a multiple of 2
849 )))
850 |MD|MD ddddd|0~~99999|(((
851 MD0=MB(0~~3)
852
853 MD4=MB(4~~7)
854
855 Address value is a multiple of 4
856 )))
857 |(% rowspan="3" %)DB0.DB~~DB99.DB|DBxDBB|DBxDBB nndddd|0~~99999999|(% rowspan="3" %)(((
858 nn: block number;
859
860 dddd: address
861 )))
862 |DBxDBW|DBxDBW nndddd|0~~99999999
863 |DBxDBD|DBxDBD nndddd|0~~99999999
864
865 **3)Configure the communication protocol**
866
867 [[image:image-20220824161345-1.png]]
868
869 **4)Cable Wiring**
870
871 [[image:image-20220824161450-2.png]]
872 )))
873 )))
874
875 == **S7-1200 Ethernet Protocol** ==
876
877 [[download link>>https://ftp.we-con.com.cn/Download/WIKI/V-BOX/Demo/%E9%80%9A%E8%AE%AF%E6%A1%88%E4%BE%8B/Communicate%20with%20S7-1200%20via%20Ehernet.zip]]
878
879 == **S7-XXX Ethernet Protocol** ==
880
881 Supported Series: Siemens S7-400, S7-1200 and S7-1500
882
883 **1)V-BOX setting**
884
885 |=**Items**|=**Settings**|=**Note**
886 |Protocol|Siemens S7-XXX|
887 |Connection|Ethernet|
888 |Port No.|102|
889 |Device No.|Slot (Default 1 for S7-1500/ 2 for S7-1200/ 3 for S7-400)|
890 |HMI No.|Rack (Default as 0)|
891
892 Slot from TIA Portal is equal to Device No. of V-net
893
894 Rack from TIA Portal is equal to HMI No. of V-net
895
896 [[image:image-20220824162459-3.png]]
897
898 [[image:image-20220824163305-2.png]]
899
900 **2)Address List**
901
902 |**Type**|**Device register**|**HMI register**|**Format**|**Range**|**Note**
903 |(% rowspan="4" %)Bit|I|I|M d.o|(((
904 d:0~-~-9999
905
906 o:0-7
907 )))|
908 |Q|Q|Q d.o|(((
909 d:0~-~-9999
910
911 o:0-7
912 )))|
913 |M|M|M d.o|(((
914 d:0~-~-9999
915
916 o:0-7
917 )))|
918 |DB0.DB-DB99.DB|DBxDB|DBxDBnndddd.o|(((
919 nn:0-9999,
920
921 dddd:0-9999,
922
923 o:0-7
924 )))|(((
925 nn:DB No.
926
927 dddd:address value
928
929 o: digit address
930 )))
931 |(% rowspan="8" %)Word|M|MB|MB d|d:0-99999|
932 |M|MW|MW d|d:0-99999|(((
933 MW0=MB(0~~1)
934
935 MW2=MB(2~~3)
936
937 Address value is a multiple of 2
938 )))
939 |M|MD|MD d|d:0-99999|(((
940 MD0=MB(0~~3)
941
942 MD4=MB(4~~7)
943
944 Address value is a multiple of 4
945 )))
946 |I|IW|IW d|d:0-99999|
947 |Q|QW|QW d|d:0-99999|
948 |DB0.DB-DB99.DB|DBxDBB|DBxDBBnndddd|(((
949 nn:0-9999
950
951 dddd:0-9999
952 )))|(((
953 nn:DB No.
954
955 dddd:address value
956 )))
957 |DB0.DB-DB99.DB|DBxDBW|DBxDBWnndddd|(((
958 nn:0-9999
959
960 dddd:0-9999
961 )))|(((
962 nn:DB No.
963
964 dddd:address value
965
966 Address value is a multiple of 2
967 )))
968 |DB0.DB-DB99.DB|DBxDBD|DBxDBDnndddd|(((
969 nn:0-9999
970
971 dddd:0-9999
972 )))|(((
973 nn:DB No.
974
975 dddd:address value
976
977 Address value is a multiple of 4
978 )))
979
980 **3)Configure the communication protocol**
981
982 [[image:image-20220824163448-3.png]]
983
984 **✎Note:**
985
986 * The S7-1200 supports simultaneous connection of three devices, so the driver supports simultaneous access to PLC by three V-BOX.
987 * V-BOX access PLC, use S7 protocol, access PLC TSAP 02.01 (s7-1200 PROFINET interface only supports three connections, the default support), detailed reference to the system manual of S7-1200.
988
989 **4)Cable Wiring**
990
991 [[image:image-20220824162342-2.png]]
992
993 == **LOGO Ethernet Protocol** ==
994
995 Supported Series: Siemens Logo 0BA0, 0BA1 series
996
997 **V-BOX Settings**
998
999
1000 |**Items**|**Settings**|**Note**
1001 |Protocol|Siemens LOGO|
1002 |Connection|Ethernet|
1003 |Port No.|102|
1004 |PLC station No.|2|
1005
1006 **Address List**
1007
1008
1009 |**Number**|**Address Type**|**Data Type**|**Range**|**DB Address**|**PLC Address**
1010 |1|RTC|Word|1-7|DB1.DBX984.0|0x001ec0
1011 |2|VB|Byte|0-1469|DB1.DBX0.0|0x000000
1012 |3|VD|Double Word|0-1466|DB1.DBX0.0|0x000000
1013 |4|VW|Word|0-1468|DB1.DBX0.0|0x000000
1014 |5|NAQ|Word|1-32|DB1.DBX1406.0|0x002bf0
1015 |6|NAI|Word|1-64|DB1.DBX1262.0|0x002770
1016 |7|AM|Word|1-64|DB1.DBX1118.0|0x0022f0
1017 |8|AQ|Word|1-16|DB1.DBX1072.0|0x002180
1018 |9|AI|Word|1-16|DB1.DBX1032.0|0x002040
1019 |10|I|Bit|1-64|DB1.DBX1024.0|0x002000
1020 |11|Q|Bit|1-64|DB1.DBX1064.0|0x002140
1021 |12|M|Bit|1-112|DB1.DBX1104.0|0x002280
1022 |13|NI|Bit|1-128|DB1.DBX1246.0|0x0026f0
1023 |14|NQ|Bit|1-128|DB1.DBX1390.0|0x002b70
1024 |15|V|Bit|0-14697|DB1.DBX0.0|0x000000
1025
1026 **PLC Settings in LOGO Software:**
1027
1028 Click [Tools]~-~-[Ethernet Connections],shown as below.
1029
1030 (% style="text-align:center" %)
1031 [[image:PIStudio.12\.PLC protocols.WebHome@12.PLC Protocol_html_8b9d2322edf89519.png]]
1032
1033 Set Ethernet connection parameter. IP, Subnet Mask, shown as below.
1034
1035 (% style="text-align:center" %)
1036 [[image:PIStudio.12\.PLC protocols.WebHome@image-20221228142937-4.png]]
1037
1038 **TSAP set**:The value set by local TSAP is the remote TSAP set in HMI. PLC's remote TSAP is the opposite,shown as below.
1039
1040 (% style="text-align:center" %)
1041 [[image:PIStudio.12\.PLC protocols.WebHome@image-20221228143047-5.png]]
1042
1043 **Download Project**: Click "Address book" to add the IP address to be downloaded (fi."Detect" to check whether the IP address can be detected. Then click “ok”, and the system will prompt that PLC will be "STOP" mode. Click “YES” to start download.
1044
1045 (% style="text-align:center" %)
1046 [[image:PIStudio.12\.PLC protocols.WebHome@image-20221228143246-6.png]]
1047
1048 **V-BOX Communication Settings**
1049
1050 Set PLC IP in [IP Address] settings;
1051
1052 (% style="text-align:center" %)
1053 [[image:LldwDGntf4.png]]
1054
1055 Enable V-BOX Ethernet in [Network];
1056
1057 (% style="text-align:center" %)
1058 [[image:WgvjfWbQif.png]]
1059
1060 TSAP setting
1061
1062 * The initialization script needs to set the source TSAP address and the target TSAP address, otherwise the communication will not be successful.
1063
1064 {{code language="LUA"}}
1065 function init.main()
1066 addr_setword("@W_0#HSW1200",8192) -- Set the source TSAP address
1067 addr_setword("@W_0#HSW1201",4096) -- Set the destination TSAP address
1068 end
1069 {{/code}}
1070
1071 Note: The name of the test script is init, 8192 and 4096 are the data used for the test, there is no HSW address in the register option, but you can directly set the value of the corresponding address through the code.
1072
1073 **✎Note:**
1074
1075 * **Communication port configuration: **
1076 ** Continuous length needs to be set to 0.
1077 ** Integration interval needs to be set to 1. (no change may result in data errors)
1078 ** Set Port and Device Station NO.
1079 ** Other set as defaulted.
1080 * **Notes on the use of registers:**
1081 ** Register VD: Use only registers that are multiples of 4, such as 0, 4, 8, etc.
1082 ** Register VW: Use only registers thay are multiples of 2, such as 0, 2, 4 etc. (Using an odd-length register may result in data errors, such as 2 3 4 )
1083
1084 = Create communication with **Mitsubishi PLC** =
1085
1086 == **FX1S,1N,2N Serial Protocol** ==
1087
1088 Supported Series: Mitsubishi FX1S, FX1N, FX2N series
1089
1090 **1)V-BOX Settings**
1091
1092 |**Item**|**Settings**|**Note**
1093 |Protocol|Mitsubishi FX1S/FX1N/FX2N|
1094 |Connection|RS422/RS485/RS232|
1095 |Baud rate|9600~~115200|
1096 |Data bit|7/8|
1097 |Parity|EVEN/Odd/None|
1098 |Stop bit|1/2|
1099 |PLC station No.|1~~255|
1100
1101 **2)Address List**
1102
1103 |**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
1104 |(% rowspan="7" %)Bit|X|X|Xo|0~~303237|
1105 |Y|Y|Y o|0~~303237|
1106 |M|M|M d|0~~99999|
1107 |T|T|T d|0~~99999|
1108 |C|C|C d|0~~99999|
1109 |S|S|S d|0~~99999|
1110 |SM|SM|SM d|8000~~9999|
1111 |(% rowspan="8" %)Word|X|X|Xo|0~~303237|
1112 |Y|Y|Y o|0~~303237|
1113 |M|M|M d|0~~99999|
1114 |T|T|T d|0~~99999|
1115 |C|C|C d|0~~199|
1116 |D|D|D d|0~~7999|
1117 |S|S|S d|0~~99999|
1118 |SD|SD|SD d|8000~~9999|
1119
1120 **3)Configure the communication protocol**
1121
1122 [[image:image-20220825102844-3.png]]
1123
1124 **4)Cable Wiring**
1125
1126 * **RS422**
1127
1128 [[image:image-20220825103350-4.png]]
1129
1130 [[image:image-20220825100845-4.png]]
1131
1132
1133 == **FX3U,3G,3GA Serial Protocol** ==
1134
1135 Supported Series: Mitsubishi FX3U, FX3G, FX3GA series
1136
1137 **1)V-BOX Settings**
1138
1139 |**Item**|**Settings**|**Note**
1140 |Protocol|Mitsubishi FX3U/3G/3GA|
1141 |Connection|RS422/RS485/RS232|
1142 |Baud rate|9600~~115200|
1143 |Data bit|7/8|
1144 |Parity|EVEN/Odd/None|
1145 |Stop bit|1/2|
1146 |PLC station No.|1~~255|
1147
1148 **2)Address List**
1149
1150 |**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
1151 |(% rowspan="7" %)Bit|X|X|Xo|0~~303237|
1152 |Y|Y|Y o|0~~303237|
1153 |M|M|M d|0~~99999|
1154 |T|T|T d|0~~99999|
1155 |C|C|C d|0~~99999|
1156 |S|S|S d|0~~99999|
1157 |SM|SM|SM d|8000~~9999|
1158 |(% rowspan="8" %)Word|X|X|Xo|0~~303237|
1159 |Y|Y|Y o|0~~303237|
1160 |M|M|M d|0~~99999|
1161 |T|T|T d|0~~99999|
1162 |C|C|C d|0~~199|
1163 |D|D|D d|0~~7999|
1164 |S|S|S d|0~~99999|
1165 |SD|SD|SD d|8000~~9999|
1166
1167 **3)Configure the communication protocol**
1168
1169 [[image:image-20220825102649-2.png]]
1170
1171 **4)Cable Wiring**
1172
1173 * **RS422**
1174
1175 [[image:image-20220825103421-5.png]]
1176
1177 [[image:image-20220825100845-4.png]]
1178
1179
1180 == **FX3U Ethernet Protocol** ==
1181
1182 Supported Modules: FX3U-ENET-ADP, FX3U-ENET-L
1183
1184 **1)V-BOX Settings**
1185
1186 |Items|Settings|Note
1187 |Protocol|Mitsubishi FX3U|
1188 |Connection|Ethernet|
1189 |Port No.|5009|Must be the same as the PLC setting
1190 |PLC station No.|0|
1191
1192 **2)Address List**
1193
1194 |**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
1195 |(% colspan="1" rowspan="7" %)Bit|X|X|X OOO|0~~377|
1196 |Y|Y|Y OOO|0~~377|
1197 |M|M|M DDDD|0~~7679|
1198 |SM|SM|SM DDDD|8000~~8511|
1199 |S|S|S DDDD|0~~4095|
1200 |TS|TS|TS DDD|0~~511|
1201 |CS|CS|CS DDD|0~~255|
1202 |(% colspan="1" rowspan="9" %)Word|CN|CN|CN DDD|0~~199|
1203 |TN|TN|TN DDD|0~~511|
1204 |D|D|D DDDD|0~~7999|
1205 |SD|SD|SD DDDD|8000~~8511|
1206 |R|R|R DDDDD|0~~32767|
1207
1208 **3)Ethernet Module Settings**
1209
1210 FX3U-ENET-L module configuration
1211 Set up the FX3U-ENET-L Ethernet module settings as follows.
1212 Select the module location, which in this document is Module 0.
1213
1214 [[image:image-20221116105850-1.png]]
1215
1216 Select "Operational setting" to enter the following screen.
1217
1218 The Ethernet module IP is set to 192.168.39.254 in this document, and other options are default.
1219
1220 [[image:image-20221116105947-1.png]]
1221
1222 Select "Open setting" to enter the setting interface, the settings are as follows.
1223
1224 The third item "Protocol" selects TCP, and "Open system" selects MELSOFT connection, which allows the
1225
1226 Mitsubishi programming software GX works2 to communicate with the FX3U via the Ethernet module.
1227
1228 [[image:image-20221116110802-1.png]]
1229
1230 Click on "transter setup" - "PC side I/F setting", see the following figure.
1231
1232 After setting, the first download must use the programming cable, as shown in the figure; after that, can
1233
1234 use the IP set in the "Ethernet board" to communicate directly with the network cable.
1235
1236 [[image:image-20221116110832-2.png||height="423" width="708"]]
1237
1238 Read and write data from the Ethernet module
1239
1240 [[image:image-20221116110907-3.png]]
1241
1242 Set "Transter setup" to COM communication, and read or write operation as shown below
1243
1244 [[image:image-20221116110917-4.png]]
1245
1246 **4)PLC Settings (GX Works 2)**
1247
1248 Create a blank FX5U project
1249
1250 Find Current Connection in the navigation
1251
1252 [[image:image-20221116111427-1.png||height="421" width="705"]]
1253
1254 Select Connection Channel List
1255
1256 Select Ethernet board communication
1257
1258 [[image:image-20221116111451-2.png||height="421" width="705"]]
1259
1260 Select Ethernet Module
1261 Set the IP address of the PLC
1262
1263 [[image:image-20221116111509-3.png||height="666" width="699"]]
1264
1265 Read or write PLC data, in this document is read
1266
1267 [[image:image-20221116111651-4.png||height="416" width="697"]]
1268
1269 [[image:image-20221116111727-5.png||height="416" width="697"]]
1270
1271 **4)Configure the communication protocol**
1272
1273 [[image:image-20221119101946-2.png||height="395" width="695"]]
1274
1275 == **FX5U Serial Protocol** ==
1276
1277 Mitsubishi FX5U series PLC
1278
1279 **1)V-BOX Settings**
1280
1281 |**Item**|**Settings**|**Note**
1282 |Protocol|Mitsubishi FX5U|
1283 |Connection|RS422/RS485|
1284 |Baud rate|9600|
1285 |Data bit|7|
1286 |Parity|Odd|
1287 |Stop bit|1|
1288 |PLC station No.|1~~255|Need to be the same as PLC settings
1289
1290 **2)Address List**
1291
1292 |**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
1293 |(% rowspan="15" %)Bit|X|X|X o|0~~303237|
1294 |Y|Y|Y o|0~~303237|
1295 |M|M|M d|0~~99999|
1296 |B|B|B h|0~~7FFF|
1297 |F|F|F d|0~~32767|
1298 |SB|SB|SB h|0~~7FFF|
1299 |TS|TS|TS d|0~~1023|
1300 |TC|TC|TC d|0~~1023|
1301 |STS|STS|STS d|0~~1023|
1302 |STC|STC|STS d|0~~1023|
1303 |CS|CS|CS d|0~~1023|
1304 |CC|CC|CC d|0~~1023|
1305 |SM|SM|SM d|0~~9999|
1306 |L|L|L d|0~~32767|
1307 |S|S|S d|0~~4095|
1308 |(% rowspan="9" %)Word|W|W|W h|0~~3FF|
1309 |TN|TN|TN d|0~~1023|
1310 |STN|STN|STN d|0~~1023|
1311 |CN|CN|CN d|0~~1023|
1312 |R|R|R d|0~~32767|
1313 |SW|SW|SW h|0~~7FFF|
1314 |Z|Z|Z d|0~~23|
1315 |D|D|D d|0~~7999|
1316 |SD|SD|SD d|0~~11999|
1317
1318 **3)PLC Settings (GX Works 3)**
1319
1320 Create a blank FX5U project
1321
1322 Find the 485 serial port module in the system navigation bar and double click to enter the settings.
1323
1324 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_5c9cb13fac1e6c93.png?width=200&height=462&rev=1.1||alt="12.PLC Protocol_html_5c9cb13fac1e6c93.png" height="462" width="200"]]
1325
1326 Select protocol in the setting item, and set parameters.
1327
1328 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_de942589ca070228.png?width=600&height=324&rev=1.1||alt="12.PLC Protocol_html_de942589ca070228.png" height="324" width="600"]]
1329
1330 Set station number, and [Message Pattern] (Pattern 1 or Pattern 4)
1331
1332 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_387ec7d00b5feb59.png?width=600&height=323&rev=1.1||alt="12.PLC Protocol_html_387ec7d00b5feb59.png" height="323" width="600"]]
1333
1334 Click the [Apply] button to finish the setting.
1335
1336 Click download and select the items as below, then click [execute] to download the configuration to PLC.
1337
1338 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_cdef1c5ec8cc2105.png?width=600&height=434&rev=1.1||alt="12.PLC Protocol_html_cdef1c5ec8cc2105.png" height="434" width="600"]]
1339
1340 As soon as download is completed, connect PLC with serial port, then configure it in the [Specify Connection Destination Connection].
1341
1342 Done.
1343
1344 **4)Configure the communication protocol**
1345
1346 [[image:image-20220825104904-1.png]]
1347
1348 **5)Cable Wiring**
1349
1350
1351 * **RS422**
1352
1353 [[image:image-20220825105105-2.png]]
1354
1355 [[image:image-20220825105533-3.png]]
1356
1357 == **FX5U Ethernet Protocol** ==
1358
1359 Mitsubishi FX5U series PLC
1360
1361 **1)V-BOX Settings**
1362
1363 |**Items**|**Settings**|**Note**
1364 |Protocol|Mitsubishi FX5U|
1365 |Connection|Ethernet|
1366 |Port No.|5002|Must be the same as the PLC setting
1367 |PLC station No.|0|
1368
1369 **2)Address List**
1370
1371 |**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
1372 |(% rowspan="15" %)Bit|X|X|X o|0~~303237|
1373 |Y|Y|Y o|0~~303237|
1374 |M|M|M d|0~~99999|
1375 |B|B|B h|0~~7FFF|
1376 |F|F|F d|0~~32767|
1377 |SB|SB|SB h|0~~7FFF|
1378 |TS|TS|TS d|0~~1023|
1379 |TC|TC|TC d|0~~1023|
1380 |STS|STS|STS d|0~~1023|
1381 |STC|STC|STS d|0~~1023|
1382 |CS|CS|CS d|0~~1023|
1383 |CC|CC|CC d|0~~1023|
1384 |SM|SM|SM d|0~~9999|
1385 |L|L|L d|0~~32767|
1386 |S|S|S d|0~~4095|
1387 |(% rowspan="9" %)Word|W|W|W h|0~~3FF|
1388 |TN|TN|TN d|0~~1023|
1389 |STN|STN|STN d|0~~1023|
1390 |CN|CN|CN d|0~~1023|
1391 |R|R|R d|0~~32767|
1392 |SW|SW|SW h|0~~7FFF|
1393 |Z|Z|Z d|0~~23|
1394 |D|D|D d|0~~7999|
1395 |SD|SD|SD d|0~~11999|
1396
1397 **3)PLC Settings (GX Works 3)**
1398
1399 Find the [Ethernet port] in the navigation area.
1400
1401 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_8e8f85ace087346c.png?width=300&height=593&rev=1.1||alt="12.PLC Protocol_html_8e8f85ace087346c.png" height="593" width="300"]]
1402
1403 Select [Own Node Settings] in the [Setting Item List];
1404
1405 Set [IP Address], [Subnet Mask], [Default Gateway];
1406
1407 Click [Detailed Settings] into [Ethernet Configuration (Built-in Ethernet Port)] windows;
1408
1409 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_5d98495052c8c10e.png?width=600&height=339&rev=1.1||alt="12.PLC Protocol_html_5d98495052c8c10e.png" height="339" width="600"]]
1410
1411 Select [SLMP Connection Module] and add into host station as below picture shows;
1412
1413 Set Port number as 5002 (this is necessary settings);
1414
1415 Click [Close with Reflecting the Setting] to save and close window;
1416
1417 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_14b489fdc6c6589d.png?width=600&height=350&rev=1.1||alt="12.PLC Protocol_html_14b489fdc6c6589d.png" height="350" width="600"]]
1418
1419 Click [Apply] to completed Etherenet settings;
1420
1421 Switch to the [On line data operation] interface as below, check the item and click [Execute] to download.
1422
1423 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_c93025a968a8a9e7.png?width=600&height=434&rev=1.1||alt="12.PLC Protocol_html_c93025a968a8a9e7.png" height="434" width="600"]]
1424
1425 **4)Configure the communication protocol**
1426
1427 [[image:image-20220825112403-1.png||alt="图片-20220825112403-1.png"]]
1428
1429 **5)Cable Wiring**
1430
1431 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_2297240b57346b2a.png?width=401&height=170&rev=1.1||alt="12.可编程逻辑控制器Protocol_html_2297240b57346b2a.png" height="170" width="401"]]
1432
1433 == **L02 Serial Protocol** ==
1434
1435 Mitsubishi L02 series CPU built-in serial port.
1436
1437 **1)V-BOX Settings**
1438
1439 |**Item**|**Settings**|**Note**
1440 |Protocol|Mitsubishi L02|
1441 |Connection|RS422|
1442 |Baud rate|115200|
1443 |Data bit|8|
1444 |Parity|Odd|
1445 |Stop bit|1|
1446 |PLC station No.|1~~255|Need to be the same as PLC settings
1447
1448 **2)Address List**
1449
1450 |**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
1451 |Bit|X|X|X h|0~~FFFF|
1452 |Bit|Y|Y|Y h|0~~FFFF|
1453 |Bit|M|M|M d|0~~9999|
1454 |Bit|L|L|L d|0~~9999|
1455 |Bit|F|F|F d|0~~9999|
1456 |Bit|B|B|B h|0~~FFFF|
1457 |Bit|V|V|V d|0~~2047|
1458 |Bit|TC|TC|TC d|0~~9999|
1459 |Bit|SS|SS|SS d|0~~9999|
1460 |Bit|SC|SC|SC d|0~~9999|
1461 |Bit|CS|CS|CS d|0~~9999|
1462 |Bit|CC|CC|CC d|0~~9999|
1463 |Bit|SB|SB|SB h|0~~FFFF|
1464 |Bit|SM|SM|SM d|0~~2047|
1465 |Bit|STS|STS|STS d|0~~1023|
1466 |Bit|S|S|S d|0~~9999|
1467 |Bit|DX|DX|DX h|0~~FFFF|
1468 |Bit|DY|DY|DY h|0~~FFFF|
1469 |Bit|TS|TS|TS d|0~~9999|
1470 |Bit|Dbit|Dbit|Dbit d.d|0~~99999.0~~15|
1471 |Word|W|W|W h|0~~FFFF|
1472 |Word|TN|TN|TN d|0~~99999|
1473 |Word|SN|SN|SN d|0~~99999|
1474 |Word|CN|CN|CN d|0~~99999|
1475 |Word|R|R|R d|0~~99999|
1476 |Word|SW|SW|SW h|0~~FFFF|
1477 |Word|Z|Z|Z d|0~~99999|
1478 |Word|ZR|ZR|ZR h|0~~FFFF|
1479 |Word|D|D|D d|0~~99999|
1480
1481 **3)Communication Settings**
1482
1483 [[image:image-20220825160648-3.png]]
1484
1485 **4)Cable Wiring**
1486
1487 * **RS422**
1488
1489 [[image:image-20220825161612-8.png]]
1490
1491 [[image:image-20220825160820-4.png]]
1492
1493 == **L02 Ethernet Protocol** ==
1494
1495 Mitsubishi L series CPU built-in Ethernet port.
1496
1497 **1)V-BOX Settings**
1498
1499 |**Items**|**Settings**|**Note**
1500 |Protocol|MIT L02 CPU MELSEC|
1501 |Connection|Ethernet|
1502 |Port No.|1025|Must be the same as the PLC setting
1503 |PLC station No.|0|Must be the same as the PLC setting
1504
1505 **2)Address List**
1506
1507 |**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
1508 |Bit|X|X|X h|0~~FFFF|
1509 |Bit|Y|Y|Y h|0~~FFFF|
1510 |Bit|M|M|M d|0~~9999|
1511 |Bit|L|L|L d|0~~9999|
1512 |Bit|F|F|F d|0~~9999|
1513 |Bit|B|B|B h|0~~FFFF|
1514 |Bit|V|V|V d|0~~2047|
1515 |Bit|TC|TC|TC d|0~~9999|
1516 |Bit|SS|SS|SS d|0~~9999|
1517 |Bit|SC|SC|SC d|0~~9999|
1518 |Bit|CS|CS|CS d|0~~9999|
1519 |Bit|CC|CC|CC d|0~~9999|
1520 |Bit|SB|SB|SB h|0~~FFFF|
1521 |Bit|SM|SM|SM d|0~~2047|
1522 |Bit|STS|STS|STS d|0~~1023|
1523 |Bit|S|S|S d|0~~9999|
1524 |Bit|DX|DX|DX h|0~~FFFF|
1525 |Bit|DY|DY|DY h|0~~FFFF|
1526 |Bit|TS|TS|TS d|0~~9999|
1527 |Bit|Dbit|Dbit|Dbit d.d|0~~99999.0~~15|
1528 |Word|W|W|W h|0~~FFFF|
1529 |Word|TN|TN|TN d|0~~99999|
1530 |Word|SN|SN|SN d|0~~99999|
1531 |Word|CN|CN|CN d|0~~99999|
1532 |Word|R|R|R d|0~~99999|
1533 |Word|SW|SW|SW h|0~~FFFF|
1534 |Word|Z|Z|Z d|0~~99999|
1535 |Word|ZR|ZR|ZR h|0~~FFFF|
1536 |Word|D|D|D d|0~~99999|
1537
1538 **3)PLC Settings (GX Works2 )**
1539
1540 Create a project
1541
1542 Set PLC IP, subnet mask and gateway;
1543
1544 Select [Binary Code] as communication data code;
1545
1546 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_776e17505f3fc6c0.png?width=600&height=524&rev=1.1||alt="12.PLC Protocol_html_776e17505f3fc6c0.png" height="524" width="600"]]
1547
1548 Set PLC port number, for example 1025
1549
1550 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_8d0d1a22d388f70b.png?width=600&height=524&rev=1.1||alt="12.PLC Protocol_html_8d0d1a22d388f70b.png" height="524" width="600"]]
1551
1552 Save settings;
1553
1554 Download project into PLC device;
1555
1556 Restart PLC device;
1557
1558 **4)Configure the communication protocol**
1559
1560 [[image:image-20220825142659-1.png]]
1561
1562 **5)Cable Wiring**
1563
1564 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_2297240b57346b2a.png?width=401&height=170&rev=1.1||alt="12.PLC Protocol_html_2297240b57346b2a.png" height="170" width="401"]]
1565
1566 == **Q12H Serial Protocol** ==
1567
1568 This Demo shows V-BOX communicate with Q12H PLC by Q02H serial Protocol
1569
1570 [[**Download link**>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Communication/V-Box%20connect%20PLC%20Q12H.rar]]
1571
1572 == **QJ71E71 Ethernet Protocol** ==
1573
1574 Mitsubishi QJ71E71 Ethernet communication module;
1575
1576 **1)V-BOX Settings**
1577
1578 |**Items**|**Settings**|**Note**
1579 |Protocol|MIT QJ71E71 MELSEC|
1580 |Connection|Ethernet|
1581 |Port No.|1025|Must be the same as the PLC setting
1582 |PLC station No.|0|Must be the same as the PLC setting
1583
1584 **2)Address List**
1585
1586 |**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
1587 |(% rowspan="18" %)Bit|X|X|X h|0~~1FFF|
1588 |Y|Y|Y h|0~~1FFF|
1589 |M|M|M d|0~~99999|
1590 |L|L|L d|0~~8191|
1591 |F|F|F d|0~~2047|
1592 |B|B|B h|0~~1FFF|
1593 |V|V|V d|0~~2047|
1594 |TS|TS|TS d|0~~2047|
1595 |TC|TC|TC d|0~~2047|
1596 |SS|SS|SS d|0~~2047|
1597 |SC|SC|SC d|0~~2047|
1598 |CS|CS|CS d|0~~1023|
1599 |CC|CC|CC d|0~~1023|
1600 |SB|SB|SB h|0~~7FF|
1601 |S|S|S d|0~~8191|
1602 |DX|DX|DX h|0~~1FFF|
1603 |DY|DY|DY h|0~~1FFF|
1604 |SM|SM|SM d|8000~~9999|
1605 |(% rowspan="10" %)Word|SD|SD|SD d|0~~2047|
1606 |D|D|D d|0~~12287|
1607 |W|W|W h|0~~1FFF|
1608 |TN|TN|TN d|0~~2047|
1609 |SN|SN|SN d|0~~2047|
1610 |CN|CN|CN d|0~~1023|
1611 |R|R|R d|0~~32767|
1612 |SW|SW|SW h|0~~7FF|
1613 |Z|Z|Z d|0~~15|
1614 |ZR|ZR|ZR h|0~~FE7FF|
1615
1616 **3)PLC Settings(GX Works2)**
1617
1618 * Click [Ethernet/CC IE/MELSECNET];
1619 * Please select [Ethernet] as network type;
1620 * Set station I/O number according to situation (For example, 0020 means that the module is connected to PLC CPU in first order);
1621 * Select [Online] as Mode;
1622 * [[image:image-20221119171343-2.png||height="341" width="587"]]
1623 * Click [Operation setting] to set IP;
1624 * Select [Binary Code] as [Communication Data Code];
1625 * [[image:image-20221119171436-3.png||height="354" width="588"]]
1626 * Click [Open setting]
1627 * Set protocol: TCP;
1628 * Set [unpassive] in [Open system];
1629 * Set [receive] in [Fixed buffer];
1630 * Set [procedure Exist] in [Fixed buffer communication];
1631 * Disable [Pairing open];
1632 * Set [No confirm] in [Existence confirmation];
1633 * Host station port number: 5009;
1634 * Save settings;
1635 * [[image:image-20221119171611-4.png||height="354" width="588"]]
1636 * Download project into PLC and restart it
1637
1638 **4)Configure the communication protocol**
1639
1640 [[image:image-20221119171832-5.png||height="354" width="625"]]
1641
1642
1643 **5)Cable Wiring**
1644
1645 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_2297240b57346b2a.png?width=401&height=170&rev=1.1||alt="12.PLC Protocol_html_2297240b57346b2a.png"]]
1646
1647 = Create communication with **Delta PLC** =
1648
1649 == **DVP Ethernet Protocol** ==
1650
1651 Supoort Series: DELTA DVP20/32/40/60ES200RE/200TE or any DVP models with built-in Ethernet port, DELTA DVPEN01-SL module
1652
1653 **1)V-BOX Settings**
1654
1655 |=**Items**|=**Settings**|=**Note**
1656 |Protocol|DELTA DVP MODBUS TCP|
1657 |Connection|Ethernet|
1658 |Port No.|502|
1659 |Device No.|1|
1660 |VBox Device No.|0|
1661
1662 **2)Address List **
1663
1664 |=**Type**|=(% style="width: 191px;" %)**Device registers**|=(% style="width: 217px;" %)**VBox registers**|=(% style="width: 168px;" %)**Format**|=(% style="width: 225px;" %)**Range**|=**Note**
1665 |Bit|(% style="width:191px" %)X|(% style="width:217px" %)X|(% style="width:168px" %)X OOO|(% style="width:225px" %)0~~377|
1666 |Bit|(% style="width:191px" %)Y|(% style="width:217px" %)Y|(% style="width:168px" %)Y OOO|(% style="width:225px" %)0~~377|
1667 |Bit|(% style="width:191px" %)M0|(% style="width:217px" %)M0|(% style="width:168px" %)M0DDDD|(% style="width:225px" %)0~~1535|
1668 |Bit|(% style="width:191px" %)M1|(% style="width:217px" %)M1|(% style="width:168px" %)M1DDDD|(% style="width:225px" %)1536~~4096|
1669 |Bit|(% style="width:191px" %)T|(% style="width:217px" %)T|(% style="width:168px" %)TDDD|(% style="width:225px" %)0~~255|
1670 |Bit|(% style="width:191px" %)C|(% style="width:217px" %)C|(% style="width:168px" %)CDDD|(% style="width:225px" %)0~~255|
1671 |Bit|(% style="width:191px" %)S|(% style="width:217px" %)S|(% style="width:168px" %)SDDDD|(% style="width:225px" %)0~~1023|
1672 |Word|(% style="width:191px" %)D0|(% style="width:217px" %)D0|(% style="width:168px" %)D0DDDD|(% style="width:225px" %)0~~4095|
1673 |Word|(% style="width:191px" %)D1|(% style="width:217px" %)D1|(% style="width:168px" %)D1DDDD|(% style="width:225px" %)4096~~11999|
1674 |Word|(% style="width:191px" %)T|(% style="width:217px" %)T|(% style="width:168px" %)TDDD|(% style="width:225px" %)0~~255|
1675 |Word|(% style="width:191px" %)C|(% style="width:217px" %)C|(% style="width:168px" %)CDDD|(% style="width:225px" %)0~~199|
1676 |Double Word|(% style="width:191px" %)HC|(% style="width:217px" %)HC|(% style="width:168px" %)HCDDD|(% style="width:225px" %)200~~255|
1677
1678 **3) PLC Setting:**
1679
1680 ~1. Create new project in Delta WPL Soft, and click Setting to open the communication settings:
1681
1682 (% style="text-align:center" %)
1683 [[image:DVPEthernetWPLSoft2.png]]
1684
1685 2. Set up the communication type and PLC IP:
1686
1687 (% style="text-align:center" %)
1688 [[image:DVPEthernetSetup.png]]
1689
1690 (% class="wikigeneratedid" %)
1691 3. Click OK and save the settings. Then click Communication on toolbar, then click Transfer Setup to open new window:
1692
1693 (% style="text-align:center" %)
1694 [[image:DVPEthernetTransfer.png]]
1695
1696 (% class="wikigeneratedid" %)
1697 4. Select Communication Mode as PC => PLC to download or select PC <=PLC to upload:
1698
1699 (% style="text-align:center" %)
1700 [[image:DVPEthernetPLCtoPC.png]]
1701
1702 5. Click Auto-Search Ethernet Module to find the PLC on the same LAN network:
1703
1704 (% style="text-align:center" %)
1705 [[image:DVPEthernetAutoSearch.png]]
1706
1707 **4) V-BOX Setting:**
1708
1709 Set the same IP address according to the setting from WPL Soft:
1710
1711 (% style="text-align:center" %)
1712 [[image:DVPEthernetVNETPortocol.png]]
1713
1714 == **DVP serial protocol** ==
1715
1716 Supoort Series: DELTA DVP EH/ES/SS/EX/EH2/SV/SA/SC/SX
1717
1718 **1)V-BOX Settings**
1719
1720 |=**Items**|=**Settings**|=**Note**
1721 |Protocol|DELTA DVP PROTOCOL|
1722 |Connection|RS232|
1723 |Baud Rate|9600|
1724 |Stop Bit|1|
1725 |Data Bit|7|
1726 |Parity|EVEN|
1727 |Device No.|1|
1728
1729 (% class="wikigeneratedid" %)
1730 **2)Address List**
1731
1732 |=**Type**|=(% style="width: 191px;" %)**Device registers**|=(% style="width: 217px;" %)**VBox registers**|=(% style="width: 168px;" %)**Format**|=(% style="width: 225px;" %)**Range**|=**Note**
1733 |Bit|(% style="width:191px" %)X|(% style="width:217px" %)X|(% style="width:168px" %)X OOOOOO|(% style="width:225px" %)0~~303237|
1734 |Bit|(% style="width:191px" %)Y|(% style="width:217px" %)Y|(% style="width:168px" %)Y OOOOOO|(% style="width:225px" %)0~~303237|
1735 |Bit|(% style="width:191px" %)M|(% style="width:217px" %)M|(% style="width:168px" %)MDDDDD|(% style="width:225px" %)0~~99999|
1736 |Bit|(% style="width:191px" %)T|(% style="width:217px" %)T|(% style="width:168px" %)TDDDDD|(% style="width:225px" %)0~~99999|
1737 |Bit|(% style="width:191px" %)C|(% style="width:217px" %)C|(% style="width:168px" %)CDDDDD|(% style="width:225px" %)0~~99999|
1738 |Bit|(% style="width:191px" %)S|(% style="width:217px" %)S|(% style="width:168px" %)SDDDDD|(% style="width:225px" %)0~~99999|
1739 |Word|(% style="width:191px" %)D|(% style="width:217px" %)D|(% style="width:168px" %)D DDDDD|(% style="width:225px" %)0~~99999|
1740 |Word|(% style="width:191px" %)T|(% style="width:217px" %)T|(% style="width:168px" %)TDDDDD|(% style="width:225px" %)0~~99999|
1741 |Word|(% style="width:191px" %)C|(% style="width:217px" %)C|(% style="width:168px" %)CDDD|(% style="width:225px" %)0~~199|
1742 |Double Word|(% style="width:191px" %)C|(% style="width:217px" %)C|(% style="width:168px" %)CDDDDD|(% style="width:225px" %)200~~99999|
1743
1744 (% class="wikigeneratedid" %)
1745 **3)Wiring Diagram**
1746
1747 (% style="text-align:center" %)
1748 [[image:Delta DVP PROTOCOLSerial232.png]]
1749
1750 == **AS Ethernet Protocol** ==
1751
1752 **1)V-BOX Settings**
1753
1754 |=**Items**|=**Settings**|=**Note**
1755 |Protocol|DELTA AS300 MODBUS TCP|
1756 |Connection|Ethernet|
1757 |Port No.|502|
1758 |Device No.|1|
1759 |HMI No.|0|
1760
1761 **2)Address List**
1762
1763 |**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
1764 |Bit|X|X|X d|0~~63|
1765 |Bit|Y|Y|Y d|0~~63|
1766 |Bit|D|D|D d|0~~29999|
1767 |Bit|M|M|M d|0~~8191|
1768 |Bit|SM|SM|SM d|0~~4095|
1769 |Bit|S|S|S h|0~~2047|
1770 |Bit|T|T|T d|0~~511|
1771 |Bit|C|C|C d|0~~511|
1772 |Bit|HC|HC|HC d|0~~255|
1773 |Word|X|X|X h|0~~63|
1774 |Word|Y|Y|Y d|0~~63|
1775 |Word|SR|SR|SR d|0~~2047|
1776 |Word|D|D|D d|0~~29999|
1777 |Word|T|T|T d|0~~511|
1778 |Word|C|C|C h|0~~511|
1779 |Word|E|E|E d|0~~9|
1780
1781 **3)Configure the communication protocol**
1782
1783 [[image:image-20220831160010-4.png]]
1784
1785 **4)Cable Wiring**
1786
1787 Figure
1788
1789 [[image:image-20220831155101-1.png]][[image:image-20220831160055-5.png]]
1790
1791 Pin Definition Diagram
1792
1793 [[image:image-20220831155157-3.png]]
1794
1795 = Create communication with **Omron PLC** =
1796
1797 == **CP1 Series Protocol ** ==
1798
1799 [[下载链接>>https://ftp.we-con.com.cn/Download/WIKI/V-BOX/Demo/%E9%80%9A%E8%AE%AF%E6%A1%88%E4%BE%8B/Communication%20with%20ORMON%20CP1%20Series.zip]]
1800
1801 == **CP2M Series Protocol** ==
1802
1803 [[下载链接>>https://ftp.we-con.com.cn/Download/WIKI/V-BOX/Demo/%E9%80%9A%E8%AE%AF%E6%A1%88%E4%BE%8B/Communication%20with%20ORMON%20CJ2M.zip]]
1804
1805
1806 == **EC55 Series Protocol** ==
1807
1808 Supported device: EC55 temperature instrument
1809
1810 **1)V-BOX Settings**
1811
1812 |**Items**|**Settings**|**Note**
1813 |Protocol|Omron EC55|
1814 |Connection|RS485 (9600, 2, 7, EVEN)|
1815 |Port No.|None|
1816 |PLC station No.|0|
1817
1818 **2)Address List**
1819
1820 |**Type**|**Register**|**Device range**|**HMI range**|**Function**
1821 |(% rowspan="3" %)Double word|C0|0-13 (Hex)|0-19|Set read only parameter for area 0
1822 |C1|0-4D(Hex)|0-77|Set Read/Write parameter for area 0
1823 |C3|0-CD(Hex)|0-205|Set Read/Write parameter for area 1
1824 |(% rowspan="6" %)Word|80|0-13(Hex)|0-19|Set read only parameter in area 0
1825 |81|0-4D(Hex)|0-77|Set Read/Write parameter in area 0
1826 |83|0-CD(Hex)|0-205|Set Read/Write parameter in area 1
1827 |CP|-|0-6|Read controller intrinsic property
1828 |CS|-|0-2|Read controller states
1829 |CA|-|0-17|Action command
1830
1831 **3)Device Settings**
1832
1833 Omron E5CC PLC configuration
1834
1835 After entering the Communication Settings menu, please set the parameters to the default values for the following table. Press the cycle key of the instrument to enter the next setting.
1836
1837 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_3d95e093792ba98a.png?width=550&height=229&rev=1.1||alt="12.PLC Protocol_html_3d95e093792ba98a.png" height="229" width="550"]]
1838
1839 According to PLC configuration and communication port configuration information of the HMI, provide the corresponding steps and configuration screenshots. This configuration needs to communicate properly with the above PLC configuration. The project settings are as follows
1840
1841 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_be583aa69dd6cf4c.png?width=550&height=242&rev=1.1||alt="12.PLC Protocol_html_be583aa69dd6cf4c.png" height="242" width="550"]]
1842
1843 **✎Note:** The communication settings for HMI should be consistent with this setting.
1844
1845 **4)Configure the communication protocol**
1846
1847 [[image:image-20220831161041-1.png]]
1848
1849 **5)Cable Wiring**
1850
1851 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_5e9a81a14106da9e.png?width=392&height=223&rev=1.1||alt="12.PLC Protocol_html_5e9a81a14106da9e.png" height="223" width="392"]]
1852
1853 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_1897d92be6948d58.png?width=393&height=223&rev=1.1||alt="12.PLC Protocol_html_1897d92be6948d58.png" height="223" width="393"]]
1854
1855 **✎Note:**
1856
1857 * COM3 only available in PI8000/PI9000 series.
1858 * CA address could not support continuous writing function;
1859 * Because of CP address intrinsic property: read control intrinsic property, so please place the character input part in use. Set address with CP0 and character length 10, used to display controller type. And place a number input part, set address with CP5 (cache size). Do not place other CP type address without CP0 in screen, otherwise CP type address is invalid
1860 * When set value into read & write address, it is necessary to switch the temperature instrument meter to the corresponding interface according to the menu of the instrument where the address locates, so that the value could be written, otherwise, the value could not be written; When the communication write setting of the instrument is turned off, the writing function is invalid. Writing function could be opened by using the 00 address of the CA register, which write 01 value.
1861 * When continuous writing of a value to a read-write address, please make sure all continuous writing address could be written. Otherwise, if one of these addresses could not be written, then all continuous writing commands will fail.
1862 * Because of the mechanism problem, this protocol could not support CompoWay/F function that is read-write function of variables in protocol document.
1863 * When using double-word address, set the data format to 32 bits, otherwise the read/write function is unable.
1864 * Please set the communication delay time of 10ms in setting, to avoid that the instrument may not be able to communicate in a short time due to too fast data access and too much connection requests.
1865 * [[image:image-20220831161356-1.png]]Because of the particularity of the instrument, it is necessary to write the value of the address in the menu interface corresponding to the address, and to enter the menu where the address locates, so that the value could be written.
1866
1867 = Create communication with Xinje** PLC** =
1868
1869 == **XC serial protocol** ==
1870
1871 **1)V-BOX Settings**
1872
1873 |**Item**|**Settings**|**Note**
1874 |Protocol|XINJE XC MODBUS|
1875 |Connection|RS232|
1876 |Baud rate|19200|
1877 |Data bit|8|
1878 |Parity|EVEN|
1879 |Stop bit|1|
1880 |PLC station No.|1|
1881
1882 **2)Address List**
1883
1884 |**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
1885 |Bit|M|M|M d|0~~8511|
1886 |Bit|X|X|X o|0~~1747|
1887 |Bit|Y|Y|Y o|0~~1747|
1888 |Bit|S|S|S d|0~~1023|
1889 |Bit|T|T|T d|0~~4095|
1890 |Bit|C|C|C d|0~~634|
1891 |Word|D|D|D d|0~~8511|
1892 |Word|TD|TD|TD d|0~~618|
1893 |Word|CD|CD|CD d|0~~634|
1894 |Word|FD|FD|FD d|0~~8511|
1895
1896 **3)Configure the communication protocol**
1897
1898
1899 [[image:image-20220831163041-1.png]]
1900
1901 **4)Cable Wiring**
1902
1903 Figure
1904
1905 [[image:image-20220831163406-2.png]][[image:image-20220831163422-3.png]]
1906
1907 Pin Definition Diagram
1908
1909 [[image:image-20220831163441-4.png]]
1910
1911 == **XD serial protocol** ==
1912
1913 **1)V-BOX Settings**
1914
1915 Supported Series: Xinjie XD/XE Series PLC
1916
1917 |**Item**|**Settings**|**Note**
1918 |Protocol|XINJE XD/XC MODBUS|
1919 |Connection|RS232|
1920 |Baud rate|19200|
1921 |Data bit|8|
1922 |Parity|EVEN|
1923 |Stop bit|1|
1924 |PLC station No.|1|
1925
1926 **2)Address List**
1927
1928 |**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
1929 |Bit|M|M|M d|0~~74999|
1930 |Bit|X1xx|X1xx|X1xx o|0~~1177|
1931 |Bit|X2xx|X2xx|X2xx o|0~~277|
1932 |Bit|X|X|X o|0~~77|
1933 |Bit|Y1xx|Y1xx|Y1xx o|0~~1177|
1934 |Bit|Y2xx|Y2xx|Y2xx o|0~~277|
1935 |Bit|Y|Y|Y o|0~~4095|
1936 |Bit|SM|SM|SM d|0~~4999|(((
1937
1938 )))
1939 |Bit|T|T|T d|0~~4999|
1940 |Bit|C|C|C d|0~~4999|
1941 |Bit|ET|ET|ET d|0~~31|
1942 |Bit|SE|SE|SE d|0~~31|
1943 |Bit|HM|HM|HM d|0~~11999|
1944 |Bit|HSC|HSC|HSC d|0~~39|
1945 |Bit|HS|HS|HS d|0~~999|
1946 |Bit|HT|HT|HT d|0~~1999|
1947 |Bit|HC|HC|HC d|0~~1999|
1948 |Bit|S|S|S d|0~~7999|
1949 |Word|D|D|D d|0~~69999|
1950 |Word|ID|ID|ID d|0~~99|
1951 |Word|ID1xx|ID1xx|ID1xx d|0~~999|
1952 |Word|ID2xx|ID2xx|ID2xx d|0~~299|
1953 |Word|QD|QD|QD d|0~~99|
1954 |Word|QD1xx|QD1xx|QD1xx d|0~~999|
1955 |Word|QD2xx|QD2xx|QD2xx d|0~~299|
1956 |Word|SD|SD|SD d|0~~4999|
1957 |Word|TD|TD|TD d|0~~575|
1958 |Word|CD|CD|CD d|0~~575|
1959 |Word|ETD|ETD|ETD d|0~~31|
1960 |Word|HD|HD|HD d|0~~24999|
1961 |Word|HSD|HSD|HSD d|0~~1023|
1962 |Word|HTD|HTD|HTD d|0~~95|
1963 |Word|HCD|HCD|HCD d|0~~95|
1964 |Word|HSCD|HSCD|HSCD d|0~~31|
1965 |Word|FD|FD|FD d|0~~8191|
1966 |Word|SFD|SFD|SFD d|0~~5999|
1967 |Word|FS|FS|FS d|0~~47|
1968
1969 **3)Configure the communication protocol**
1970
1971 [[image:image-20220831163923-7.png]]
1972
1973
1974
1975 **4)Cable Wiring**
1976
1977 Figure
1978
1979 [[image:image-20220831163406-2.png]][[image:image-20220831163553-6.png]]
1980
1981 Pin Definition Diagram
1982
1983 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/image-20220830160232-3.png?rev=1.1||alt="image-20220830160232-3.png"]]
1984
1985 = Create communication with **Schneider PLC** =
1986
1987 == **Schneider MODBUS RTU** ==
1988
1989 **1)V-BOX Setting**
1990
1991 |=**Parameters**|=**Recommended**|=**Notes**
1992 |**Protocol**|(% colspan="1" %)Schneider MODBUS RTU|
1993 |**Connection**|RS485|
1994 |**Baud rate**|19200|
1995 |**Data bit**|8|
1996 |**Parity**|Even|
1997 |**Stop bit**|1|
1998 |**PLC station No.**|1|
1999
2000 **2)Address List**
2001
2002 |=**Bit/Word**|=**Device type**|=**Format**|=**Range**|=**Memo**
2003 |B|IX|DDDDDo|0 ~~ 655357|Input bit (read only)
2004 |B|QX|DDDDDo|0 ~~ 655357|Write multiple coils
2005 |B|MX|DDDDDDo|0 ~~ 9999997|Output register bit (octal)
2006 |W|MW|DDDDDD|0 ~~ 999999|Output register
2007 |DW|MD|DDDDDD|0 ~~ 999999|Output register
2008
2009 **3)Configure the communication protocol**
2010
2011 [[image:image-20220902104329-1.png]]
2012
2013 **4)Cable Wiring**
2014
2015 **RS-485 2W **(RJ45 Connector): The following is the view from the soldering point of a connector.
2016
2017 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/image-20220817154212-1.jpeg?width=554&height=315&rev=1.1||alt="image-20220817154212-1.jpeg" height="315" width="554"]]
2018
2019 = Create communication with Inovance** PLC** =
2020
2021 == **H3U serial protocol** ==
2022
2023 **1)V-BOX Settings**
2024
2025 |**Item**|**Settings**|**Note**
2026 |Protocol|INOVANCE H3U PLC|
2027 |Connection|RS422|
2028 |Baud rate|9600|
2029 |Data bit|7|
2030 |Parity|EVEN|
2031 |Stop bit|1|
2032 |PLC station No.|0|
2033
2034 **2)Address List**
2035
2036 |**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
2037 |Bit|X|X|X o|0~~303237|
2038 |Bit|Y|Y|Y o|0~~303237|
2039 |Bit|M|M|M d|0~~99999|
2040 |Bit|T|T|T d|0~~99999|
2041 |Bit|C|C|C d|0~~99999|
2042 |Bit|SM|SM|SM d|8000~~999|
2043 |Bit|S|T|S d|0~~99999|
2044 |Bit|Lamp|Lamp|Lamp d|0~~0|
2045 |Word|X|X|X o|0~~303237|
2046 |Word|Y|Y|Y o|0~~303237|
2047 |Word|M|M|M d|0~~99999|
2048 |Word|T|T|T d|0~~99999|
2049 |Word|C|C|C d|0~~199|
2050 |Word|D|D|D d|0~~7999|
2051 |Word|S|S|S d|0~~99999|
2052 |Word|SD|SD|SD d|8000~~9999|
2053 |Word|R|R|R d|0~~32767|
2054
2055 **3)Configure the communication protocol**
2056
2057 [[image:image-20220831164626-1.png]]
2058
2059
2060
2061 **4)Cable Wiring**
2062
2063 Figure
2064
2065 [[image:image-20220831164646-2.png]][[image:image-20220831164700-3.png]]
2066
2067 Pin Definition Diagram
2068
2069 [[image:image-20220831164731-4.png]]
2070
2071 = Create communication with Panasonic** PLC** =
2072
2073 == **FP serial protocol** ==
2074
2075 **1)V-BOX Settings**
2076
2077 |**Item**|**Settings**|**Note**
2078 |Protocol|Panasonic FP MFWTOCOL|
2079 |Connection|RS232|
2080 |Baud rate|9600|
2081 |Data bit|8|
2082 |Parity|ODD|
2083 |Stop bit|1|
2084 |PLC station No.|1|
2085
2086 **2)Address List**
2087
2088 |**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
2089 |Bit|X|X|X d|0~~9999|
2090 |Bit|Y|Y|Y d|0~~9999|
2091 |Bit|R|R|R d|0~~9999|
2092 |Bit|T|T|T d|0~~9999|
2093 |Bit|C|C|C d|0~~9999|
2094 |Bit|L|L|L d|0~~9999|
2095 |Word|WX|WX|WX d|0~~9999|
2096 |Word|WY|WY|WY d|0~~9999|
2097 |Word|WR|WR|WR d|0~~9999|
2098 |Word|WL|WL|WL d|0~~9999|
2099 |Word|LD|LD|LD d|0~~9999|
2100 |Word|DT|DT|DT d|0~~65535|
2101 |Word|FL|FL|FL d|0~~9999|
2102 |Word|EV|EV|EV d|0~~9999|
2103 |Word|SV|SV|SV d|0~~9999|
2104
2105 **3)Configure the communication protocol**
2106
2107 [[image:image-20220831165238-4.png]]
2108
2109
2110
2111 **4)Cable Wiring**
2112
2113 Figure
2114
2115 [[image:image-20220831165031-3.png]][[image:image-20220831165017-2.png]]
2116
2117 Pin Definition Diagram
2118
2119 [[image:image-20220831165008-1.png]]
2120
2121 = Create communication with LS** PLC** =
2122
2123 == **XBC serial protocol** ==
2124
2125 **1)V-BOX Settings**
2126
2127 |**Item**|**Settings**|**Note**
2128 |Protocol|LS XBC CNet|
2129 |Connection|RS232|
2130 |Baud rate|115200|
2131 |Data bit|8|
2132 |Parity|NONE|
2133 |Stop bit|1|
2134 |PLC station No.|1|
2135
2136 **2)Address List**
2137
2138 |**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
2139 |Bit|P|P|P d|0~~2047|
2140 |Bit|M|M|M d|0~~2047|
2141 |Bit|L|L|L d|0~~11263|
2142 |Bit|K|K|K d|0~~16183|
2143 |Bit|F|F|F d|0~~2047|
2144 |Bit|D|D|D d|0~~32767|
2145 |Bit|R|R|R d|0~~32767|
2146 |Bit|U|U|U d|0~~4095|
2147 |Word|P|P|P d|0~~2047|
2148 |Word|M|M|M d|0~~2047|
2149 |Word|L|L|L d|0~~11263|
2150 |Word|K|K|K d|0~~16183|
2151 |Word|F|F|F d|0~~2047|
2152 |Word|C|C|C d|0~~2047|
2153 |Word|T|T|T d|0~~2047|
2154 |Word|D|D|D d|0~~32767|
2155 |Word|N|N|N d|0~~21503|
2156 |Word|R|R|R d|0~~32767|
2157 |Word|U|U|U d|0~~4095|
2158 |Word|Z|Z|Z d|0~~127|
2159 |Word|S|S|S d|0~~127|
2160
2161 **3)Configure the communication protocol**
2162
2163 [[image:image-20220831170147-1.png]]
2164
2165 **4)Cable Wiring**
2166
2167 Figure
2168
2169 [[image:image-20220831170306-4.png]][[image:image-20220831170254-3.png]]
2170
2171 Pin Definition Diagram
2172
2173 [[image:image-20220831170215-2.png]]
2174
2175 == **XGK FEnet Ethernet protocol** ==
2176
2177 Supported Series: LS XGT series XGK CPU with XGL-EFMT Ethernet module
2178
2179 **1)V-BOX Settings**
2180
2181 |**Items**|**Settings**|**Note**
2182 |Protocol|LG XGK FEnet(Ethernet)|
2183 |Connection|Ethernet|
2184 |Port No.|2004|
2185
2186 **2)Address List**
2187
2188 |**Type**|**Register**|**Range**|**Format**|**Note**
2189 |(% rowspan="14" %)Word|P|0~~2047|P d|
2190 |M|0~~2047|M d|
2191 |K|0~~2047|K d|
2192 |F|0~~2047|F d|
2193 |T|0~~2047|T d|
2194 |C|0~~2047|C d|
2195 |Z|0~~127|Z d|
2196 |S|0~~127|S d|
2197 |L|0~~11263|L d|
2198 |N|0~~21503|N d|
2199 |D|0~~32767|D d|
2200 |R|0~~32767|R d|
2201 |ZR|0~~65535|ZR d|
2202 |UxDD|0~~6331|UxDD nndd|nn: 0~~63, dd: 0~~31
2203
2204 **✎Note:**
2205
2206 * In addition to the "UxDD" register, the others correspond to the PLC register one by one. UxDD corresponds to U in the PLC;
2207 * The [UxDD] register, defined in the PLC is Ux.dd, x represents the block, and dd represents 0-31 of each block. There are 64 blocks in the PLC;
2208 * All bit registers are in the form of bits in word, and the range is the same as the word register;
2209
2210 **3)Communication Settings**
2211
2212 [[image:image-20220831171127-1.png]]
2213
2214 **4)Cable Wiring**
2215
2216 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_2297240b57346b2a.png?width=401&height=170&rev=1.1||alt="12.可编程逻辑控制器Protocol_html_2297240b57346b2a.png" height="170" width="401"]]
2217
2218 = Create communication with INVT PLC =
2219
2220 **1)V-BOX setting**
2221
2222 |**Item**|**Settings**|**Note**
2223 |Protocol|INVT_IVC2L|
2224 |Connection|RS232|
2225 |Baud rate|19200|
2226 |Data bit|8|
2227 |Parity|EVEN|
2228 |Stop bit|1|
2229 |PLC station No.|1
2230
2231 **2)Address List**
2232
2233
2234 |**Type**|**Device registers**|**Format**|**Range**|**Note**
2235 |(% colspan="1" rowspan="7" %)Bit|X|XOOO|0~~377|
2236 |Y|YOOO|0~~377|
2237 |M|MDDDD|0~~1999|
2238 |SM|SMDDD|0~~255|
2239 |S|SDDD|0~~991|
2240 |T|TDDD|0~~255|
2241 |C|CDDD|0~~255|
2242 |(% rowspan="5" %)Word|D|DDDDD|0~~7999|
2243 |SD|SDDDD|0~~255|
2244 |Z|ZDD|0~~15|
2245 |T|TDDD|0~~255|
2246 |C|CDDD|0~~199|
2247 |Double word|C|CDDD|200~~255|
2248
2249 **3)Communication Settings**
2250
2251 (% style="text-align:center" %)
2252 [[image:盒子创建英威腾.png]]
2253
2254 **4)PLC software**
2255
2256 (% style="text-align:center" %)
2257 [[image:英威腾软件.png]]
2258
2259 **5)PLC setting **
2260
2261 Open the INVI plc software, create a new project or open a project that has already been created
2262
2263 (% style="text-align:center" %)
2264 [[image:英威腾创建1.png]]
2265
2266 Configure serial port parameters.
2267
2268 (% style="text-align:center" %)
2269 [[image:英威腾创建2.png]]
2270
2271 PC connect PLC
2272
2273 (% style="text-align:center" %)
2274 [[image:英威腾创建3.png]]
2275
2276 Download
2277
2278 (% style="text-align:center" %)
2279 [[image:英威腾下载.png]]
2280
2281 **6)Cable Wiring**
2282
2283 (% style="text-align:center" %)
2284 [[image:wire.png]]
2285
2286 = Create communication with **Modbus ** =
2287
2288 == **MODBUS RTU Slave (All function)** ==
2289
2290 Select the protocol "Modbus RTU Slave (All Fuction)",
2291
2292 Then set baud rate, port, stop bits, data bits, parity.
2293
2294 (% style="text-align:center" %)
2295 [[image:1624342015914-382.png||height="486" width="800" class="img-thumbnail"]]
2296
2297 == **Communicate with Modbus Meter** ==
2298
2299 The following example is using the Linfee meter LNF96EY to demonstrate how to set up the Modbus communication.
2300
2301 ~1. Wiring the RS485 cable first. Because the pin 58 is A, the pin 59 is B for meter. Here we use the COM1 to connect. So the diagram like follows:
2302
2303 (% style="text-align:center" %)
2304 [[image:LinfeeTerminalDiagram.png]]
2305
2306 2. Check the specific Modbus parameter in the communication menu from LED display.
2307
2308 So from the following pictures, we can know the Meter Address is 85, Baud rate is 9600, CRC None.
2309
2310 {{info}}
2311 **✎Note: **Meter address usually corresponding to the Modbus Slave Station No. on the Modbus communication.
2312 {{/info}}
2313
2314 (% style="text-align:center" %)
2315 [[image:MeterModbusAllView.png]]
2316
2317 (% class="wikigeneratedid" %)
2318 3. Set up the communication in the Configuration tab.
2319
2320 (% class="wikigeneratedid" %)
2321 Select the protocol as **ModBus RTU Slave (All Function)**. And set the communication parameters like below.
2322
2323 (% style="text-align:center" %)
2324 [[image:VNETCommunicationtabmeter.png]]
2325
2326 (% class="wikigeneratedid" %)
2327 4. Create new real-time monitoring tag accroding to Modbus manual
2328
2329 (% class="wikigeneratedid" %)
2330 Enter the address we want to read from the meter. The following table is intercept part of the manual for Linfee Modbus manual.
2331
2332 (% class="wikigeneratedid" %)
2333 **0x03/0x04 command data register address**:
2334
2335 (% style="width:1142.22px" %)
2336 |(% style="display:none" %) |=(% colspan="2" rowspan="1" style="width: 165px;" %)Address(% style="display:none" %) |=Description|=Data Format|=(% style="width: 254px;" %)Data Length(Word)|=(% style="width: 282px;" %)Remark
2337 |(%%)(% style="display:none" %) (%%) HEX|(% style="width:107px" %)DEC|(%%)(% style="display:none" %) (%%) |(% style="width:100px" %) |(%%)(% style="display:none" %) (%%) |(% style="width:318px" %)
2338 |(% style="width:107px" %)0x00|(% style="width:100px" %)0|Reserved| | |(% style="width:318px" %)
2339 |(% style="width:107px" %)0x02|(% style="width:100px" %)2|Reserved| | |(% style="width:318px" %)
2340 |(% style="width:107px" %)0x04|(% style="width:100px" %)4|Reserved| | |(% style="width:318px" %)
2341 |(% style="width:107px" %)0x06|(% style="width:100px" %)6|Ua|float|2|(% style="width:318px" %)Phase Voltage data, Unit V
2342 |(% style="width:107px" %)0x08|(% style="width:100px" %)8|Ub|float|2|(% style="width:318px" %)Phase Voltage data, Unit V
2343 |(% style="width:107px" %)0x0A|(% style="width:100px" %)10|Uc|float|2|(% style="width:318px" %)Phase Voltage data, Unit V
2344 |(% style="width:107px" %)0x0C|(% style="width:100px" %)12|Uab|float|2|(% style="width:318px" %)Line Voltage data, Unit V
2345 |(% style="width:107px" %)0x0E|(% style="width:100px" %)14|Ubc|float|2|(% style="width:318px" %)Line Voltage data, Unit V
2346 |(% style="width:107px" %)0x10|(% style="width:100px" %)16|Uca|float|2|(% style="width:318px" %)Line Voltage data, Unit V
2347 |(% style="width:107px" %)0x12|(% style="width:100px" %)18|Ia|float|2|(% style="width:318px" %)Phase Current data, Unit A
2348 |(% style="width:107px" %)0x14|(% style="width:100px" %)20|Ib|float|2|(% style="width:318px" %)Phase Current data, Unit A
2349 |(% style="width:107px" %)0x16|(% style="width:100px" %)22|Ic|float|2|(% style="width:318px" %)Phase Current data, Unit A
2350
2351 {{info}}
2352 **✎Note: **We usually use the Data Type 4 for read the Modbus registers(Function Code 03)
2353 {{/info}}
2354
2355 For example, here we want to read the Phase Voltage Ua (Modbus offset 0006), the Modbus register main No. requires input decimal number, and check whether the actual address has one address offset, so the tag configured like the following screenshot:
2356
2357 (% style="text-align:center" %)
2358 [[image:VNETModbusTagSettings.png]]
2359
2360 (% style="text-align:center" %)
2361 [[image:VNETModbusTagByteSettings.png]]
2362
2363 {{info}}
2364 **✎Note: **If the read value is incorrect, please check whether need to change the Byte order.
2365 {{/info}}
2366
2367 Set the Modbus Slave Station No.
2368
2369 (% style="text-align:center" %)
2370 [[image:ModbusStationSettings.png]]
2371
2372 If the communication is setup successfully, the tag will show green light.
2373
2374 (% style="text-align:center" %)
2375 [[image:Monitoringtaggreenlight.png]]
2376
2377 == **MODBUS RTU Master** ==
2378
2379 Select the protocol "Modbus RTU Master",
2380
2381 Then set baud rate, port, stop bits, data bits, parity
2382
2383 (% style="text-align:center" %)
2384 [[image:1624348709622-711.png||queryString="width=809&height=493" height="488" width="800" class="img-thumbnail"]]
2385
2386 **address list**
2387
2388 (% class="table-bordered" %)
2389 |=(% scope="row" %)**Type**|=**Data Type**|=**Function code and description**
2390 |(% rowspan="11" %)Word|(% rowspan="3" %)3|04 (Read Input Registers: Read the current binary value in one or more input registers)
2391 |06 (write single register: write a binary value to a holding register)
2392 |10 (write values to multiple addresses )
2393 |(% rowspan="3" %)4|03 (read holding register: read current binary value in one or more holding registers)
2394 |06 (write single register: write a binary value to a holding register)
2395 |10 (write values to multiple addresses )
2396 |(% rowspan="3" %)W6|03 (read holding register: read current binary value in one or more holding registers)
2397 |06 (write single register: write a binary value to a holding register)
2398 |10 (write values to multiple addresses )
2399 |(% rowspan="2" %)W16|03 (read holding register: read current binary value in one or more holding registers)
2400 |10 (write values to multiple addresses )
2401 |(% rowspan="11" %)Bit|(% rowspan="3" %)0|01 (Read coil state)
2402 |05 (Force a single coil to force the on/off state of a logic coil)
2403 |0F (Write multiple bits, ie write continuously)
2404 |(% rowspan="3" %)1|02 (Read the input state)
2405 |05 (Force a single coil to force the on/off state of a logic coil)
2406 |0F (Write multiple bits)
2407 |(% rowspan="3" %)W5|01 (Read coil state to obtain the current state of a set of logic coils)
2408 |05 (Force a single coil to force the on/off state of a logic coil)
2409 |0F (Write multiple bits)
2410 |(% rowspan="2" %)W15|01 (Read coil state to obtain the current state of a set of logic coils)
2411 |0F (Write multiple bits)
2412
2413 == **MODBUS TCP Slave (All function)** ==
2414
2415 Supported series: MODBUS TCP controller
2416
2417 V-B0X works as MODBUS TCP MASTER connecting with TCP SLAVE
2418
2419 **1)V-BOX Setting**
2420
2421 |**Items**|**Settings**|**Note**
2422 |Protocol|MODBUS TCP Slave (All function)|
2423 |Connection|Ethernet|
2424 |Port No.|502|
2425 |PLC station No.|1
2426
2427 **2)Address List**
2428
2429 |=**Type**|=**Data Type**|=**Function code & Description**
2430 |(% rowspan="11" %)Word|(% rowspan="3" %)3|04 (read input register: read current binary value in one or more input registers)
2431 |06 (write single register: write a binary value to a holding register)
2432 |10 (write values to multiple addresses )
2433 |(% rowspan="3" %)4|03 (read holding register: read current binary value in one or more holding registers)
2434 |06 (write single register: write a binary value to a holding register)
2435 |10 (write values to multiple addresses )
2436 |(% rowspan="3" %)W6|03 (read holding register: read current binary value in one or more holding registers)
2437 |06 (write single register: write a binary value to a holding register)
2438 |10 (write values to multiple addresses )
2439 |(% rowspan="2" %)W16|03 (read holding register: read current binary value in one or more holding registers)
2440 |10 (write values to multiple addresses )
2441 |(% rowspan="11" %)Bit|(% rowspan="3" %)0|01 (Read coil state)
2442 |05 (Force a single coil to force the on/off state of a logic coil)
2443 |0F (Write multiple bits, ie write continuously)
2444 |(% rowspan="3" %)1|02 (Read the input state)
2445 |05 (Force a single coil to force the on/off state of a logic coil)
2446 |0F (Write multiple bits)
2447 |(% rowspan="3" %)W5|01 (Read coil state to obtain the current state of a set of logic coils)
2448 |05 (Force a single coil to force the on/off state of a logic coil)
2449 |0F (Write multiple bits)
2450 |(% rowspan="2" %)W15|01 (Read coil state to obtain the current state of a set of logic coils)
2451 |0F (Write multiple bits)
2452
2453 **3)Communication Settings**
2454
2455 Configure V-BOX Ethernet IP in Networking Settings
2456
2457 [[image:image-20220902111833-3.png]]
2458
2459
2460 Configure PLC Ethernet IP in Communication;
2461
2462 [[image:image-20220902111121-1.png]]
2463
2464 **4)Cable Wiring**
2465
2466 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_2297240b57346b2a.png?width=401&height=170&rev=1.1||alt="12.PLC Protocol_html_2297240b57346b2a.png" height="170" width="401"]]
2467
2468 == **communicate with VB inverter** ==
2469
2470 [[download link>>url:https://ftp.we-con.com.cn/Download/WIKI/V-BOX/Demo/%E9%80%9A%E8%AE%AF%E6%A1%88%E4%BE%8B/Communicate%20with%20VB%20inverter.zip]]
2471
2472 = **User define protocol** =
2473
2474 More serial port script instruction,please refer manual:[[Lua script function>>doc:V-BOX.V-Net.Manual.04 Lua Script.01 Lua Functions.WebHome]]~-~-->[[3.Serial port operation>>url:http://docs.we-con.com.cn/wiki/vbox/view/HMI/04.Lua%20script%20%20function%20and%20operation/01.Lua%20script%20function/#H3.Serialportoperation]]
2475
2476 == **Read the temperature sensor.** ==
2477
2478 the commond format is as beliow:
2479
2480 Send commond:01 03 02 00 00 03 04 73
2481
2482 Feedback commond:01 03 06 07 F7 0E 7E B7 35
2483
2484 Temperature data:07 F7,desimal = 2039,it means temperature is 20.39℃.
2485
2486 Humidity data:0E 7E,desimal = 3710, it mean humidity is 37.10%RH.
2487
2488 Script Demo:
2489
2490 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~--
2491
2492 function com.main()
2493 ~-~-dosomething
2494 openPlc()
2495 end
2496 function openPlc()
2497 if obj then
2498 ~-~- If the serial port opened,then read/write data by timing
2499
2500 local wri = string.pack(">HHHH",0X0103,0X0200,0X0003,0X0473)
2501 local arr = reading(wri)
2502 ~-~- if arr ~~=nil then
2503 ~-~- if arr[1] ==33 and arr[2] ==v[2][2] and arr[3] ==v[2][3] then
2504 ~-~- local A = arr[4]*256
2505 ~-~- local B = A+arr[5]
2506 ~-~- addr_setword(v[1],B)
2507 ~-~- end
2508 ~-~- end
2509
2510 else
2511 ~-~-judge if there is a serial object, then initialize and open the serial port
2512 local configs = {
2513 name = 'COM1', ~-~-Select serial port COM1
2514 mode = 485, ~-~-Communication mode RS485
2515 baud_rate = 9600, ~-~-Baud rate 9600
2516 stop_bit = 1, ~-~-stop bit 1
2517 data_len = 8, ~-~-data length 8
2518 check_bit = 'NONE', ~-~-no parity
2519
2520 }
2521 obj,err = serial.open(configs) ~-~-Open serial port
2522 if not obj then
2523 print("serial open :failed", err) ~-~- Open serial port failed
2524 end
2525 end
2526 end
2527
2528 function reading(wri)
2529 obj:flush() ~-~- Clear serial port
2530 obj:write(wri) ~-~- Write serial port
2531 print(string.byte(wri,1,#wri))
2532 obj:flush() ~-~- Clear serial port 
2533 local readed =obj:read(9,1000) ~-~- Read 9 bytes, timeout 1 second
2534 if readed and readed ~~= "" then 
2535 ~-~- judge that a non-empty string is read
2536 print(string.byte(readed,1,#readed))
2537 a={string.byte(readed, 1, #readed)}
2538 if nil ~~= a[4] and nil ~~= a[5] and nil ~~= a[6] and nil ~~= a[7] then
2539 a1=a[4]*256+a[5]
2540 a2=a[6]*256+a[7]
2541 addr_setword("@HDW0",a1)
2542 addr_setword("@HDW1",a2)
2543 end
2544 return {string.byte(readed, 1, #readed)}
2545 elseif readed == nil then
2546 print("serial read err:", err or "")
2547 return nil
2548 end
2549 return nil
2550 end
2551
2552 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-