Changes for page 1 Communication

Last modified by Hunter on 2024/07/01 10:54

From version 230.1
edited by Theodore Xu
on 2023/04/23 15:41
Change comment: There is no comment for this version
To version 260.1
edited by Hunter
on 2024/07/01 10:54
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.AiXia
1 +XWiki.Hunter
Content
... ... @@ -1,6 +1,6 @@
1 -= Create communication with WECON PLC =
1 += WECON =
2 2  
3 -== **LX3V Serial Protocol** ==
3 +== **LX3V Serial ** ==
4 4  
5 5  Supported series: Wecon LX2V/ LX2E/ LX3V/LX3VP/LX3VE/LX3VM
6 6  
... ... @@ -48,7 +48,7 @@
48 48  
49 49   [[image:image-20220824120524-3.png]]
50 50  
51 -== **LX5V Serial Protocol** ==
51 +== **LX5V Serial ** ==
52 52  
53 53  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.
54 54  
... ... @@ -118,7 +118,7 @@
118 118  
119 119  The above are all the steps for establishing serial port communication between V-BOX with LX5V PLC.
120 120  
121 -== **LX5V-N Ethernet protocol** ==
121 +== **LX5V-N Ethernet ** ==
122 122  
123 123  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.
124 124  
... ... @@ -176,9 +176,9 @@
176 176  
177 177  The above are all the steps for establishing ethernet communication between V-BOX with LX5V PLC.
178 178  
179 -= Create communication with Allen-Bradley(**Rockwell**)** PLC** =
179 += Allen-Bradley(**Rockwell**) =
180 180  
181 -== **DF1 Advanced Protocol** ==
181 +== **DF1 Advanced  Serial** ==
182 182  
183 183  MicroLogix 1000/1100/1200/1400/1500; SLC 5/03 5/04 5/05; PLC-5
184 184  
... ... @@ -277,7 +277,7 @@
277 277  (% class="wikigeneratedid" id="HMicroLogixA0Protocol" %)
278 278  (% id="cke_bm_5621S" style="display:none" %)** **
279 279  
280 -== **MicroLogix Protocol** ==
280 +== **MicroLogix Serial** ==
281 281  
282 282  (% class="wikigeneratedid" %)
283 283  MicroLogix 1000/1100/1200/1400/1500; SLC 5/03 5/04 5/05 PLC-5
... ... @@ -317,7 +317,7 @@
317 317  
318 318  [[image:image-20220824110724-1.png]]
319 319  
320 -== **Micro850_FreeTag Protocol** ==
320 +== **Micro850_FreeTag Ethernet** ==
321 321  
322 322  (((
323 323  (((
... ... @@ -520,6 +520,8 @@
520 520  The above are all the steps for establishing Ethernet communication between Wecon V-box with CompactLogix L1769 PLC.
521 521  
522 522  
523 +== **Micro850_FreeTag Ethernet(new)** ==
524 +
523 523  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.
524 524  
525 525  (% class="wikigeneratedid" id="HSoftwareconfigurationofPLC" %)
... ... @@ -580,7 +580,7 @@
580 580  (% style="text-align:center" %)
581 581  [[image:V-NET_Client_communication.png]]
582 582  
583 -Export variables from PLC, select CSV file, comma delimited. 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.
585 +Export variables from PLC, select CSV file, comma delimited.(% id="cke_bm_1950S" style="display:none" %)
584 584  
585 585  (% style="text-align:center" %)
586 586  [[image:export1.png]]
... ... @@ -588,8 +588,10 @@
588 588  (% style="text-align:center" %)
589 589  [[image:CCW.Shell_E5Cwj4tUL3.png]]
590 590  
593 +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.
594 +
591 591  (% style="text-align:center" %)
592 -[[image:V-NET_Client_iKKKhcgxm1.png]]
596 +[[image:V-NET_Client_TNBuqy7T5r.png]]
593 593  
594 594  **3)Engineering production**
595 595  
... ... @@ -601,13 +601,13 @@
601 601  
602 602  )))
603 603  
604 -== **Ethernet DF1 Protocol** ==
608 +== **Ethernet DF1** ==
605 605  
606 606  [[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]]
607 607  
608 -= Create communication with **Crouzet PLC** =
612 += **Crouzet PLC** =
609 609  
610 -== **CROUZET M3 (FBD)** ==
614 +== **CROUZET M3 (FBD) Serial** ==
611 611  
612 612  Support Series: Crouzet Millenium 3 CD12/CB12
613 613  
... ... @@ -659,15 +659,150 @@
659 659  **✎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.
660 660  {{/info}}
661 661  
662 -= Create communication with **Siemens PLC** =
666 += EMERSON =
663 663  
664 -== **S7-200 Smart Ethernet Protocol** ==
668 += **RTU Slave ** =
665 665  
666 -[[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]]
670 +Supported series: EC10 series
667 667  
672 +**1)V-BOX setting**
668 668  
669 -== **S7-300 Ethernet Protocol** ==
674 +|**Items**|**Settings**|**Note**
675 +|Protocol|Emerson 984 RTU Slave MODBUS|
676 +|Connection|RS485|
677 +|Baud rate|19200|
678 +|Data bit|8|
679 +|Parity|EVEN|
680 +|Stop bit|1|
681 +|Device station No.|1|Need to be same as the PLC setting
670 670  
683 +(% class="wikigeneratedid" %)
684 +**2)PLC Setting**
685 +
686 +(% class="wikigeneratedid" %)
687 +Remember to use the Control Star to enable the Modbus RTU communication for port 1 in system block before dowload into PLC.
688 +
689 +(% style="text-align:center" %)
690 +[[image:ControlStarSystemBlock.png]]
691 +
692 +(% style="text-align:center" %)
693 +[[image:ControlStarCommunicate.png]]
694 +
695 +(% style="text-align:center" %)
696 +[[image:ControlStarModbus.png]]
697 +
698 +(% class="wikigeneratedid" %)
699 +**3)Address List**
700 +
701 +|**Type**|**Device registers**|**Format**|**Range**|**Note**
702 +|(% colspan="1" rowspan="12" %)Bit|Y|YOOO|0~~377|
703 +|X|XOOO|0~~377|
704 +|M0|M0DDDD|0~~2047|
705 +|M1|M1DDDDD|2048~~10239|
706 +|SM0|SM0DDD|0~~255|
707 +|SM1|SM1DDD|256~~511|
708 +|S0|S0DDDD|0~~1023|
709 +|S1|S1DDDD|1024~~4095|
710 +|T0|T0DDD|0~~255|
711 +|T1|T1DDD|256~~511|
712 +|C0|C0DDD|0~~255|
713 +|C1|C1DDD|256~~306|
714 +|(% colspan="1" rowspan="7" %)Word|D|DDDDD|0~~7999|
715 +|Z|ZDD|0~~15|
716 +|TW0|TW0DDD|0~~255|
717 +|TW1|TW1DDD|256~~511|
718 +|SD0|SD0DDD|0~~255|
719 +|SD1|SD1DDD|256~~511|
720 +|CW|CWDDD|0~~306|
721 +|(% colspan="1" rowspan="2" %)Double Word|CW0|CW0DDD|200~~255|
722 +|CW1|CW1DDDDD|256~~99999|
723 +
724 +**4) Cable Wiring**
725 +
726 +(% style="text-align:center" %)
727 +[[image:Emerson.png]]
728 +
729 += HollySys PLC =
730 +
731 +== **LK Modbus RTU ** ==
732 +
733 +Supported Series: HollySys LK series PLC
734 +
735 +**1)V-BOX setting**
736 +
737 +|**Items**|**Settings**|**Note**
738 +|Protocol|HollySys LK Modbus RTU|
739 +|Connection|RS485|
740 +|Baud rate|38400|
741 +|Data bit|8|
742 +|Parity|None|
743 +|Stop bit|1|
744 +|Device station No.|1|
745 +
746 +**2)Address List**
747 +
748 +|=**Type**|=**Device registers**|=**Format**|=**Range**|=**Note**
749 +|Bit|QX|QXDDDDD.dd|0~~65535.15|
750 +|Bit|IX|IXDDDDD.dd|0~~65535.15|
751 +|Bit|MX|MXDDDDD.dd|0~~65535.15|
752 +|Word|QW|QWDDDDD|0~~99999|
753 +|Word|IW|IWDDDDD|0~~99999|
754 +|Word|MW|MWDDDDD|0~~99999|
755 +|Word|MD|MDDDDDD|0~~99999|
756 +
757 +**3)Cable Wiring**
758 +
759 +(% style="text-align:center" %)
760 +[[image:Hollysys485-2.png]]
761 +
762 +== **LM Modbus RTU** ==
763 +
764 +(% class="wikigeneratedid" %)
765 +Supported Series: HollySys LM3109/LM3107 PLC
766 +
767 +(% class="wikigeneratedid" %)
768 +**1)V-BOX setting**
769 +
770 +|(% style="width:208px" %)**Items**|(% style="width:310px" %)**Settings**|(% style="width:365px" %)**Optional**|(% style="width:152px" %)**Note**
771 +|(% style="width:208px" %)Protocol|(% style="width:310px" %)HollySys LM Modbus RTU|(% style="width:365px" %)HollySys LM Modbus RTU|(% style="width:152px" %)
772 +|(% style="width:208px" %)Connection|(% style="width:310px" %)RS232|(% style="width:365px" %)RS485|(% style="width:152px" %)
773 +|(% style="width:208px" %)Baud rate|(% style="width:310px" %)38400|(% style="width:365px" %)38400|(% style="width:152px" %)
774 +|(% style="width:208px" %)Data bit|(% style="width:310px" %)8|(% style="width:365px" %)8|(% style="width:152px" %)
775 +|(% style="width:208px" %)Parity|(% style="width:310px" %)None|(% style="width:365px" %)None|(% style="width:152px" %)
776 +|(% style="width:208px" %)Stop bit|(% style="width:310px" %)1|(% style="width:365px" %)1|(% style="width:152px" %)
777 +|(% style="width:208px" %)Device station No.|(% style="width:310px" %)1|(% style="width:365px" %)1|(% style="width:152px" %)
778 +
779 +**2)Address List**
780 +
781 +|=**Type**|=**Device registers**|=**Format**|=**Range**|=**Note**
782 +|Bit|QX|QXDDDDD.o|0~~99999.7|
783 +|Bit|IX|IXDDDDD.o|0~~99999.7|
784 +|Bit|MX|MXDDDDD.o|0~~99999.7|
785 +|Word|QW|QWDDDDD|0~~99999|
786 +|Word|IW|IWDDDDD|0~~99999|
787 +|Word|MW|MWDDDDD|0~~99999|
788 +|Word|MD|MDDDDDD|0~~99999|
789 +
790 +**Cable Wiring**
791 +
792 +RS232
793 +
794 +(% style="text-align:center" %)
795 +[[image:HollySysRS232.png]]
796 +
797 +RS485
798 +
799 +(% style="text-align:center" %)
800 +[[image:Hollysys LM Modbus RTU.gif]]
801 +
802 += **Siemens ** =
803 +
804 +== **S7-200 Smart Ethernet ** ==
805 +
806 +[[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]]
807 +
808 +== **S7-300 Ethernet ** ==
809 +
671 671  Supported Series: Siemens S7-300 series PLC
672 672  
673 673  **1)V-BOX setting**
... ... @@ -724,11 +724,11 @@
724 724  )))
725 725  )))
726 726  
727 -== **S7-1200 Ethernet Protocol** ==
866 +== **S7-1200 Ethernet ** ==
728 728  
729 729  [[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]]
730 730  
731 -== **S7-XXX Ethernet Protocol** ==
870 +== **S7-XXX Ethernet l** ==
732 732  
733 733  Supported Series: Siemens S7-400, S7-1200 and S7-1500
734 734  
... ... @@ -842,7 +842,7 @@
842 842  
843 843  [[image:image-20220824162342-2.png]]
844 844  
845 -== **LOGO Ethernet Protocol** ==
984 +== **LOGO Ethernet ** ==
846 846  
847 847  Supported Series: Siemens Logo 0BA0, 0BA1 series
848 848  
... ... @@ -933,9 +933,9 @@
933 933  ** Register VD: Use only registers that are multiples of 4, such as 0, 4, 8, etc.
934 934  ** 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 )
935 935  
936 -= Create communication with **Mitsubishi PLC** =
1075 += **Mitsubishi ** =
937 937  
938 -== **FX1S,1N,2N Serial Protocol** ==
1077 +== **FX1S,1N,2N Serial ** ==
939 939  
940 940  Supported Series: Mitsubishi FX1S, FX1N, FX2N series
941 941  
... ... @@ -982,7 +982,7 @@
982 982  [[image:image-20220825100845-4.png]]
983 983  
984 984  
985 -== **FX3U,3G,3GA Serial Protocol** ==
1124 +== **FX3U,3G,3GA Serial ** ==
986 986  
987 987  Supported Series: Mitsubishi FX3U, FX3G, FX3GA series
988 988  
... ... @@ -1029,7 +1029,7 @@
1029 1029  [[image:image-20220825100845-4.png]]
1030 1030  
1031 1031  
1032 -== **FX3U Ethernet Protocol** ==
1171 +== **FX3U Ethernet ** ==
1033 1033  
1034 1034  Supported Modules: FX3U-ENET-ADP, FX3U-ENET-L
1035 1035  
... ... @@ -1124,7 +1124,7 @@
1124 1124  
1125 1125  [[image:image-20221119101946-2.png||height="395" width="695"]]
1126 1126  
1127 -== **FX5U Serial Protocol** ==
1266 +== **FX5U Serial ** ==
1128 1128  
1129 1129  Mitsubishi FX5U series PLC
1130 1130  
... ... @@ -1206,7 +1206,7 @@
1206 1206  
1207 1207  [[image:image-20220825105533-3.png]]
1208 1208  
1209 -== **FX5U Ethernet Protocol** ==
1348 +== **FX5U Ethernet ** ==
1210 1210  
1211 1211  Mitsubishi FX5U series PLC
1212 1212  
... ... @@ -1282,7 +1282,7 @@
1282 1282  
1283 1283  [[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"]]
1284 1284  
1285 -== **L02 Serial Protocol** ==
1424 +== **L02 Serial ** ==
1286 1286  
1287 1287  Mitsubishi L02 series CPU built-in serial port.
1288 1288  
... ... @@ -1342,7 +1342,7 @@
1342 1342  
1343 1343  [[image:image-20220825160820-4.png]]
1344 1344  
1345 -== **L02 Ethernet Protocol** ==
1484 +== **L02 Ethernet ** ==
1346 1346  
1347 1347  Mitsubishi L series CPU built-in Ethernet port.
1348 1348  
... ... @@ -1415,13 +1415,13 @@
1415 1415  
1416 1416  [[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"]]
1417 1417  
1418 -== **Q12H Serial Protocol** ==
1557 +== **Q12H Serial ** ==
1419 1419  
1420 1420  This Demo shows V-BOX communicate with Q12H PLC by Q02H serial Protocol
1421 1421  
1422 1422  [[**Download link**>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Communication/V-Box%20connect%20PLC%20Q12H.rar]]
1423 1423  
1424 -== **QJ71E71 Ethernet Protocol** ==
1563 +== **QJ71E71 Ethernet ** ==
1425 1425  
1426 1426  Mitsubishi QJ71E71 Ethernet communication module;
1427 1427  
... ... @@ -1496,9 +1496,9 @@
1496 1496  
1497 1497  [[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"]]
1498 1498  
1499 -= Create communication with **Delta PLC** =
1638 += **Delta** =
1500 1500  
1501 -== **DVP Ethernet Protocol** ==
1640 +== **DVP Ethernet** ==
1502 1502  
1503 1503  Supoort Series: DELTA DVP20/32/40/60ES200RE/200TE or any DVP models with built-in Ethernet port, DELTA DVPEN01-SL module
1504 1504  
... ... @@ -1563,7 +1563,7 @@
1563 1563  (% style="text-align:center" %)
1564 1564  [[image:DVPEthernetVNETPortocol.png]]
1565 1565  
1566 -== **DVP serial protocol** ==
1705 +== **DVP serial** ==
1567 1567  
1568 1568  Supoort Series: DELTA DVP EH/ES/SS/EX/EH2/SV/SA/SC/SX
1569 1569  
... ... @@ -1599,7 +1599,7 @@
1599 1599  (% style="text-align:center" %)
1600 1600  [[image:Delta DVP PROTOCOLSerial232.png]]
1601 1601  
1602 -== **AS Ethernet Protocol** ==
1741 +== **AS Ethernet** ==
1603 1603  
1604 1604  **1)V-BOX Settings**
1605 1605  
... ... @@ -1644,19 +1644,18 @@
1644 1644  
1645 1645  [[image:image-20220831155157-3.png]]
1646 1646  
1647 -= Create communication with **Omron PLC** =
1786 += **Omron** =
1648 1648  
1649 -== **CP1 Series Protocol ** ==
1788 +== **CP1 Series** ==
1650 1650  
1651 -[[下载链接>>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]]
1790 +[[Download>>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]]
1652 1652  
1653 -== **CP2M Series Protocol** ==
1792 +== **CP2M Series** ==
1654 1654  
1655 -[[下载链接>>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]]
1794 +[[Download>>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]]
1656 1656  
1796 +== **EC55 Series ** ==
1657 1657  
1658 -== **EC55 Series Protocol** ==
1659 -
1660 1660  Supported device: EC55 temperature instrument
1661 1661  
1662 1662  **1)V-BOX Settings**
... ... @@ -1716,9 +1716,9 @@
1716 1716  * 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.
1717 1717  * [[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.
1718 1718  
1719 -= Create communication with Xinje** PLC** =
1857 += Xinje =
1720 1720  
1721 -== **XC serial protocol** ==
1859 +== **XC serial** ==
1722 1722  
1723 1723  **1)V-BOX Settings**
1724 1724  
... ... @@ -1760,7 +1760,7 @@
1760 1760  
1761 1761  [[image:image-20220831163441-4.png]]
1762 1762  
1763 -== **XD serial protocol** ==
1901 +== **XD serial** ==
1764 1764  
1765 1765  **1)V-BOX Settings**
1766 1766  
... ... @@ -1834,7 +1834,7 @@
1834 1834  
1835 1835  [[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"]]
1836 1836  
1837 -= Create communication with **Schneider PLC** =
1975 += **Schneider** =
1838 1838  
1839 1839  == **Schneider MODBUS RTU** ==
1840 1840  
... ... @@ -1868,9 +1868,9 @@
1868 1868  
1869 1869  [[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"]]
1870 1870  
1871 -= Create communication with Inovance** PLC** =
2009 += Inovance =
1872 1872  
1873 -== **H3U serial protocol** ==
2011 +== **H3U serial** ==
1874 1874  
1875 1875  **1)V-BOX Settings**
1876 1876  
... ... @@ -1920,9 +1920,9 @@
1920 1920  
1921 1921  [[image:image-20220831164731-4.png]]
1922 1922  
1923 -= Create communication with Panasonic** PLC** =
2061 += Panasonic =
1924 1924  
1925 -== **FP serial protocol** ==
2063 +== **FP serial** ==
1926 1926  
1927 1927  **1)V-BOX Settings**
1928 1928  
... ... @@ -1970,9 +1970,9 @@
1970 1970  
1971 1971  [[image:image-20220831165008-1.png]]
1972 1972  
1973 -= Create communication with LS** PLC** =
2111 += LS =
1974 1974  
1975 -== **XBC serial protocol** ==
2113 +== **XBC serial** ==
1976 1976  
1977 1977  **1)V-BOX Settings**
1978 1978  
... ... @@ -2024,7 +2024,7 @@
2024 2024  
2025 2025  [[image:image-20220831170215-2.png]]
2026 2026  
2027 -== **XGK FEnet Ethernet protocol** ==
2165 +== **XGK FEnet Ethernet** ==
2028 2028  
2029 2029  Supported Series: LS XGT series XGK CPU with XGL-EFMT Ethernet module
2030 2030  
... ... @@ -2067,8 +2067,76 @@
2067 2067  
2068 2068  [[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"]]
2069 2069  
2070 -= Create communication with **Modbus ** =
2208 += INVT =
2071 2071  
2210 +**1)V-BOX setting**
2211 +
2212 +|**Item**|**Settings**|**Note**
2213 +|Protocol|INVT_IVC2L|
2214 +|Connection|RS232|
2215 +|Baud rate|19200|
2216 +|Data bit|8|
2217 +|Parity|EVEN|
2218 +|Stop bit|1|
2219 +|PLC station No.|1
2220 +
2221 +**2)Address List**
2222 +
2223 +
2224 +|**Type**|**Device registers**|**Format**|**Range**|**Note**
2225 +|(% colspan="1" rowspan="7" %)Bit|X|XOOO|0~~377|
2226 +|Y|YOOO|0~~377|
2227 +|M|MDDDD|0~~1999|
2228 +|SM|SMDDD|0~~255|
2229 +|S|SDDD|0~~991|
2230 +|T|TDDD|0~~255|
2231 +|C|CDDD|0~~255|
2232 +|(% rowspan="5" %)Word|D|DDDDD|0~~7999|
2233 +|SD|SDDDD|0~~255|
2234 +|Z|ZDD|0~~15|
2235 +|T|TDDD|0~~255|
2236 +|C|CDDD|0~~199|
2237 +|Double word|C|CDDD|200~~255|
2238 +
2239 +**3)Communication Settings**
2240 +
2241 +(% style="text-align:center" %)
2242 +[[image:盒子创建英威腾.png]]
2243 +
2244 +**4)PLC software**
2245 +
2246 +(% style="text-align:center" %)
2247 +[[image:英威腾软件.png]]
2248 +
2249 +**5)PLC setting **
2250 +
2251 +Open the INVI plc software, create a new project or open a project that has already been created
2252 +
2253 +(% style="text-align:center" %)
2254 +[[image:英威腾创建1.png]]
2255 +
2256 +Configure serial port parameters.
2257 +
2258 +(% style="text-align:center" %)
2259 +[[image:英威腾创建2.png]]
2260 +
2261 +PC connect PLC
2262 +
2263 +(% style="text-align:center" %)
2264 +[[image:英威腾创建3.png]]
2265 +
2266 +Download
2267 +
2268 +(% style="text-align:center" %)
2269 +[[image:英威腾下载.png]]
2270 +
2271 +**6)Cable Wiring**
2272 +
2273 +(% style="text-align:center" %)
2274 +[[image:wire.png]]
2275 +
2276 += **Modbus ** =
2277 +
2072 2072  == **MODBUS RTU Slave (All function)** ==
2073 2073  
2074 2074  Select the protocol "Modbus RTU Slave (All Fuction)",
... ... @@ -2078,7 +2078,7 @@
2078 2078  (% style="text-align:center" %)
2079 2079  [[image:1624342015914-382.png||height="486" width="800" class="img-thumbnail"]]
2080 2080  
2081 -== **Communicate with Modbus Meter** ==
2287 +== **Modbus Meter** ==
2082 2082  
2083 2083  The following example is using the Linfee meter LNF96EY to demonstrate how to set up the Modbus communication.
2084 2084  
... ... @@ -2253,7 +2253,7 @@
2253 2253  
2254 2254  [[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]]
2255 2255  
2256 -= **User define protocol** =
2462 += **User define** =
2257 2257  
2258 2258  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]]
2259 2259  
... ... @@ -2271,66 +2271,63 @@
2271 2271  
2272 2272  Script Demo:
2273 2273  
2274 -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~--
2275 -
2480 +{{code language="lua"}}
2276 2276  function com.main()
2277 - ~-~-dosomething
2278 - openPlc()
2482 + --dosomething
2483 + openPlc()
2484 +end
2485 +
2486 +function openPlc()
2487 + if obj then
2488 + -- If the serial port opened,then read/write data by timing
2489 + local wri = string.pack(">HHHH",0X0103,0X0200,0X0003,0X0473)
2490 + local arr = reading(wri)
2491 + -- if arr ~=nil then
2492 + if arr[1] ==33 and arr[2] ==v[2][2] and arr[3] ==v[2][3] then
2493 + local A = arr[4]*256
2494 + local B = A+arr[5]
2495 + -- addr_setword(v[1],B)
2496 + end
2497 +-- end
2498 + else
2499 + --judge if there is a serial object, then initialize and open the serial port
2500 + local configs = {
2501 + name = 'COM1', --Select serial port COM1
2502 + mode = 485, --Communication mode RS485
2503 + baud_rate = 9600, --Baud rate 9600
2504 + stop_bit = 1, --stop bit 1
2505 + data_len = 8, --data length 8
2506 + check_bit = 'NONE', --no parity
2507 + }
2508 + obj,err = serial.open(configs) --Open serial port
2509 + if not obj then
2510 + print("serial open :failed", err) -- Open serial port failed
2511 + end
2512 + end
2279 2279   end
2280 - function openPlc()
2281 - if obj then
2282 - ~-~- If the serial port opened,then read/write data by timing
2283 2283  
2284 - local wri = string.pack(">HHHH",0X0103,0X0200,0X0003,0X0473)
2285 - local arr = reading(wri)
2286 - ~-~- if arr ~~=nil then
2287 - ~-~- if arr[1] ==33 and arr[2] ==v[2][2] and arr[3] ==v[2][3] then
2288 - ~-~- local A = arr[4]*256
2289 - ~-~- local B = A+arr[5]
2290 - ~-~- addr_setword(v[1],B)
2291 - ~-~- end
2292 - ~-~- end
2293 2293  
2294 - else
2295 - ~-~-judge if there is a serial object, then initialize and open the serial port
2296 - local configs = {
2297 - name = 'COM1', ~-~-Select serial port COM1
2298 - mode = 485, ~-~-Communication mode RS485
2299 - baud_rate = 9600, ~-~-Baud rate 9600
2300 - stop_bit = 1, ~-~-stop bit 1
2301 - data_len = 8, ~-~-data length 8
2302 - check_bit = 'NONE', ~-~-no parity
2303 -
2304 - }
2305 - obj,err = serial.open(configs) ~-~-Open serial port
2306 - if not obj then
2307 - print("serial open :failed", err) ~-~- Open serial port failed
2308 - end
2516 +function reading(wri)
2517 + obj:flush() -- Clear serial port
2518 + obj:write(wri)-- Write serial port
2519 + print(string.byte(wri,1,#wri))
2520 + obj:flush() -- Clear serial port
2521 + local readed =obj:read(9,1000) -- Read 9 bytes, timeout 1 second
2522 + if readed and readed ~= "" then
2523 + -- judge that a non-empty string is read
2524 + print(string.byte(readed,1,#readed))
2525 + a={string.byte(readed, 1, #readed)}
2526 + if nil ~= a[4] and nil ~= a[5] and nil ~= a[6] and nil ~= a[7] then
2527 + a1=a[4]*256+a[5]
2528 + a2=a[6]*256+a[7]
2529 + addr_setword("@HDW0",a1)
2530 + addr_setword("@HDW1",a2)
2309 2309   end
2310 - end
2311 -
2312 - function reading(wri)
2313 - obj:flush() ~-~- Clear serial port
2314 - obj:write(wri) ~-~- Write serial port
2315 - print(string.byte(wri,1,#wri))
2316 - obj:flush() ~-~- Clear serial port 
2317 - local readed =obj:read(9,1000) ~-~- Read 9 bytes, timeout 1 second
2318 - if readed and readed ~~= "" then 
2319 - ~-~- judge that a non-empty string is read
2320 - print(string.byte(readed,1,#readed))
2321 - a={string.byte(readed, 1, #readed)}
2322 - if nil ~~= a[4] and nil ~~= a[5] and nil ~~= a[6] and nil ~~= a[7] then
2323 - a1=a[4]*256+a[5]
2324 - a2=a[6]*256+a[7]
2325 - addr_setword("@HDW0",a1)
2326 - addr_setword("@HDW1",a2)
2327 - end
2328 - return {string.byte(readed, 1, #readed)}
2329 - elseif readed == nil then
2330 - print("serial read err:", err or "")
2331 - return nil
2332 - end
2532 + return {string.byte(readed, 1, #readed)}
2533 + elseif readed == nil then
2534 + print("serial read err:", err or "")
2333 2333   return nil
2334 - end
2335 -
2336 -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
2536 + end
2537 + return nil
2538 +end
2539 +{{/code}}
ControlStarCommunicate.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Hunter
Size
... ... @@ -1,0 +1,1 @@
1 +26.0 KB
Content
ControlStarModbus.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Hunter
Size
... ... @@ -1,0 +1,1 @@
1 +24.9 KB
Content
ControlStarSystemBlock.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Hunter
Size
... ... @@ -1,0 +1,1 @@
1 +46.3 KB
Content
Emerson.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Hunter
Size
... ... @@ -1,0 +1,1 @@
1 +13.7 KB
Content
HollySysRS232.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Hunter
Size
... ... @@ -1,0 +1,1 @@
1 +10.4 KB
Content
Hollysys LM Modbus RTU.gif
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Hunter
Size
... ... @@ -1,0 +1,1 @@
1 +7.1 KB
Content
Hollysys485-2.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Hunter
Size
... ... @@ -1,0 +1,1 @@
1 +13.5 KB
Content
Hollysys485box.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Hunter
Size
... ... @@ -1,0 +1,1 @@
1 +13.4 KB
Content
V-NET_Client_TNBuqy7T5r.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AiXia
Size
... ... @@ -1,0 +1,1 @@
1 +26.7 KB
Content
plc 软件.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AiXia
Size
... ... @@ -1,0 +1,1 @@
1 +106.8 KB
Content
wire.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AiXia
Size
... ... @@ -1,0 +1,1 @@
1 +137.2 KB
Content
企业微信截图_16889606174191.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AiXia
Size
... ... @@ -1,0 +1,1 @@
1 +20.7 KB
Content
盒子创建英威腾.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AiXia
Size
... ... @@ -1,0 +1,1 @@
1 +86.5 KB
Content
英威腾下载.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AiXia
Size
... ... @@ -1,0 +1,1 @@
1 +49.0 KB
Content
英威腾创建1.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AiXia
Size
... ... @@ -1,0 +1,1 @@
1 +36.7 KB
Content
英威腾创建2.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AiXia
Size
... ... @@ -1,0 +1,1 @@
1 +115.7 KB
Content
英威腾创建3.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AiXia
Size
... ... @@ -1,0 +1,1 @@
1 +76.6 KB
Content
英威腾软件.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AiXia
Size
... ... @@ -1,0 +1,1 @@
1 +52.6 KB
Content