Changes for page 1 Communication

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

From version 231.1
edited by Theodore Xu
on 2023/04/23 15:42
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,7 +520,7 @@
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 Protocol(new)** =
523 +== **Micro850_FreeTag Ethernet(new)** ==
524 524  
525 525  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.
526 526  
... ... @@ -582,7 +582,7 @@
582 582  (% style="text-align:center" %)
583 583  [[image:V-NET_Client_communication.png]]
584 584  
585 -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" %)
586 586  
587 587  (% style="text-align:center" %)
588 588  [[image:export1.png]]
... ... @@ -590,8 +590,10 @@
590 590  (% style="text-align:center" %)
591 591  [[image:CCW.Shell_E5Cwj4tUL3.png]]
592 592  
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 +
593 593  (% style="text-align:center" %)
594 -[[image:V-NET_Client_iKKKhcgxm1.png]]
596 +[[image:V-NET_Client_TNBuqy7T5r.png]]
595 595  
596 596  **3)Engineering production**
597 597  
... ... @@ -603,13 +603,13 @@
603 603  
604 604  )))
605 605  
606 -== **Ethernet DF1 Protocol** ==
608 +== **Ethernet DF1** ==
607 607  
608 608  [[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]]
609 609  
610 -= Create communication with **Crouzet PLC** =
612 += **Crouzet PLC** =
611 611  
612 -== **CROUZET M3 (FBD)** ==
614 +== **CROUZET M3 (FBD) Serial** ==
613 613  
614 614  Support Series: Crouzet Millenium 3 CD12/CB12
615 615  
... ... @@ -661,15 +661,150 @@
661 661  **✎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.
662 662  {{/info}}
663 663  
664 -= Create communication with **Siemens PLC** =
666 += EMERSON =
665 665  
666 -== **S7-200 Smart Ethernet Protocol** ==
668 += **RTU Slave ** =
667 667  
668 -[[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
669 669  
672 +**1)V-BOX setting**
670 670  
671 -== **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
672 672  
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 +
673 673  Supported Series: Siemens S7-300 series PLC
674 674  
675 675  **1)V-BOX setting**
... ... @@ -726,11 +726,11 @@
726 726  )))
727 727  )))
728 728  
729 -== **S7-1200 Ethernet Protocol** ==
866 +== **S7-1200 Ethernet ** ==
730 730  
731 731  [[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]]
732 732  
733 -== **S7-XXX Ethernet Protocol** ==
870 +== **S7-XXX Ethernet l** ==
734 734  
735 735  Supported Series: Siemens S7-400, S7-1200 and S7-1500
736 736  
... ... @@ -844,7 +844,7 @@
844 844  
845 845  [[image:image-20220824162342-2.png]]
846 846  
847 -== **LOGO Ethernet Protocol** ==
984 +== **LOGO Ethernet ** ==
848 848  
849 849  Supported Series: Siemens Logo 0BA0, 0BA1 series
850 850  
... ... @@ -935,9 +935,9 @@
935 935  ** Register VD: Use only registers that are multiples of 4, such as 0, 4, 8, etc.
936 936  ** 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 )
937 937  
938 -= Create communication with **Mitsubishi PLC** =
1075 += **Mitsubishi ** =
939 939  
940 -== **FX1S,1N,2N Serial Protocol** ==
1077 +== **FX1S,1N,2N Serial ** ==
941 941  
942 942  Supported Series: Mitsubishi FX1S, FX1N, FX2N series
943 943  
... ... @@ -984,7 +984,7 @@
984 984  [[image:image-20220825100845-4.png]]
985 985  
986 986  
987 -== **FX3U,3G,3GA Serial Protocol** ==
1124 +== **FX3U,3G,3GA Serial ** ==
988 988  
989 989  Supported Series: Mitsubishi FX3U, FX3G, FX3GA series
990 990  
... ... @@ -1031,7 +1031,7 @@
1031 1031  [[image:image-20220825100845-4.png]]
1032 1032  
1033 1033  
1034 -== **FX3U Ethernet Protocol** ==
1171 +== **FX3U Ethernet ** ==
1035 1035  
1036 1036  Supported Modules: FX3U-ENET-ADP, FX3U-ENET-L
1037 1037  
... ... @@ -1126,7 +1126,7 @@
1126 1126  
1127 1127  [[image:image-20221119101946-2.png||height="395" width="695"]]
1128 1128  
1129 -== **FX5U Serial Protocol** ==
1266 +== **FX5U Serial ** ==
1130 1130  
1131 1131  Mitsubishi FX5U series PLC
1132 1132  
... ... @@ -1208,7 +1208,7 @@
1208 1208  
1209 1209  [[image:image-20220825105533-3.png]]
1210 1210  
1211 -== **FX5U Ethernet Protocol** ==
1348 +== **FX5U Ethernet ** ==
1212 1212  
1213 1213  Mitsubishi FX5U series PLC
1214 1214  
... ... @@ -1284,7 +1284,7 @@
1284 1284  
1285 1285  [[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"]]
1286 1286  
1287 -== **L02 Serial Protocol** ==
1424 +== **L02 Serial ** ==
1288 1288  
1289 1289  Mitsubishi L02 series CPU built-in serial port.
1290 1290  
... ... @@ -1344,7 +1344,7 @@
1344 1344  
1345 1345  [[image:image-20220825160820-4.png]]
1346 1346  
1347 -== **L02 Ethernet Protocol** ==
1484 +== **L02 Ethernet ** ==
1348 1348  
1349 1349  Mitsubishi L series CPU built-in Ethernet port.
1350 1350  
... ... @@ -1417,13 +1417,13 @@
1417 1417  
1418 1418  [[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"]]
1419 1419  
1420 -== **Q12H Serial Protocol** ==
1557 +== **Q12H Serial ** ==
1421 1421  
1422 1422  This Demo shows V-BOX communicate with Q12H PLC by Q02H serial Protocol
1423 1423  
1424 1424  [[**Download link**>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Communication/V-Box%20connect%20PLC%20Q12H.rar]]
1425 1425  
1426 -== **QJ71E71 Ethernet Protocol** ==
1563 +== **QJ71E71 Ethernet ** ==
1427 1427  
1428 1428  Mitsubishi QJ71E71 Ethernet communication module;
1429 1429  
... ... @@ -1498,9 +1498,9 @@
1498 1498  
1499 1499  [[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"]]
1500 1500  
1501 -= Create communication with **Delta PLC** =
1638 += **Delta** =
1502 1502  
1503 -== **DVP Ethernet Protocol** ==
1640 +== **DVP Ethernet** ==
1504 1504  
1505 1505  Supoort Series: DELTA DVP20/32/40/60ES200RE/200TE or any DVP models with built-in Ethernet port, DELTA DVPEN01-SL module
1506 1506  
... ... @@ -1565,7 +1565,7 @@
1565 1565  (% style="text-align:center" %)
1566 1566  [[image:DVPEthernetVNETPortocol.png]]
1567 1567  
1568 -== **DVP serial protocol** ==
1705 +== **DVP serial** ==
1569 1569  
1570 1570  Supoort Series: DELTA DVP EH/ES/SS/EX/EH2/SV/SA/SC/SX
1571 1571  
... ... @@ -1601,7 +1601,7 @@
1601 1601  (% style="text-align:center" %)
1602 1602  [[image:Delta DVP PROTOCOLSerial232.png]]
1603 1603  
1604 -== **AS Ethernet Protocol** ==
1741 +== **AS Ethernet** ==
1605 1605  
1606 1606  **1)V-BOX Settings**
1607 1607  
... ... @@ -1646,19 +1646,18 @@
1646 1646  
1647 1647  [[image:image-20220831155157-3.png]]
1648 1648  
1649 -= Create communication with **Omron PLC** =
1786 += **Omron** =
1650 1650  
1651 -== **CP1 Series Protocol ** ==
1788 +== **CP1 Series** ==
1652 1652  
1653 -[[下载链接>>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]]
1654 1654  
1655 -== **CP2M Series Protocol** ==
1792 +== **CP2M Series** ==
1656 1656  
1657 -[[下载链接>>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]]
1658 1658  
1796 +== **EC55 Series ** ==
1659 1659  
1660 -== **EC55 Series Protocol** ==
1661 -
1662 1662  Supported device: EC55 temperature instrument
1663 1663  
1664 1664  **1)V-BOX Settings**
... ... @@ -1718,9 +1718,9 @@
1718 1718  * 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.
1719 1719  * [[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.
1720 1720  
1721 -= Create communication with Xinje** PLC** =
1857 += Xinje =
1722 1722  
1723 -== **XC serial protocol** ==
1859 +== **XC serial** ==
1724 1724  
1725 1725  **1)V-BOX Settings**
1726 1726  
... ... @@ -1762,7 +1762,7 @@
1762 1762  
1763 1763  [[image:image-20220831163441-4.png]]
1764 1764  
1765 -== **XD serial protocol** ==
1901 +== **XD serial** ==
1766 1766  
1767 1767  **1)V-BOX Settings**
1768 1768  
... ... @@ -1836,7 +1836,7 @@
1836 1836  
1837 1837  [[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"]]
1838 1838  
1839 -= Create communication with **Schneider PLC** =
1975 += **Schneider** =
1840 1840  
1841 1841  == **Schneider MODBUS RTU** ==
1842 1842  
... ... @@ -1870,9 +1870,9 @@
1870 1870  
1871 1871  [[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"]]
1872 1872  
1873 -= Create communication with Inovance** PLC** =
2009 += Inovance =
1874 1874  
1875 -== **H3U serial protocol** ==
2011 +== **H3U serial** ==
1876 1876  
1877 1877  **1)V-BOX Settings**
1878 1878  
... ... @@ -1922,9 +1922,9 @@
1922 1922  
1923 1923  [[image:image-20220831164731-4.png]]
1924 1924  
1925 -= Create communication with Panasonic** PLC** =
2061 += Panasonic =
1926 1926  
1927 -== **FP serial protocol** ==
2063 +== **FP serial** ==
1928 1928  
1929 1929  **1)V-BOX Settings**
1930 1930  
... ... @@ -1972,9 +1972,9 @@
1972 1972  
1973 1973  [[image:image-20220831165008-1.png]]
1974 1974  
1975 -= Create communication with LS** PLC** =
2111 += LS =
1976 1976  
1977 -== **XBC serial protocol** ==
2113 +== **XBC serial** ==
1978 1978  
1979 1979  **1)V-BOX Settings**
1980 1980  
... ... @@ -2026,7 +2026,7 @@
2026 2026  
2027 2027  [[image:image-20220831170215-2.png]]
2028 2028  
2029 -== **XGK FEnet Ethernet protocol** ==
2165 +== **XGK FEnet Ethernet** ==
2030 2030  
2031 2031  Supported Series: LS XGT series XGK CPU with XGL-EFMT Ethernet module
2032 2032  
... ... @@ -2069,8 +2069,76 @@
2069 2069  
2070 2070  [[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"]]
2071 2071  
2072 -= Create communication with **Modbus ** =
2208 += INVT =
2073 2073  
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 +
2074 2074  == **MODBUS RTU Slave (All function)** ==
2075 2075  
2076 2076  Select the protocol "Modbus RTU Slave (All Fuction)",
... ... @@ -2080,7 +2080,7 @@
2080 2080  (% style="text-align:center" %)
2081 2081  [[image:1624342015914-382.png||height="486" width="800" class="img-thumbnail"]]
2082 2082  
2083 -== **Communicate with Modbus Meter** ==
2287 +== **Modbus Meter** ==
2084 2084  
2085 2085  The following example is using the Linfee meter LNF96EY to demonstrate how to set up the Modbus communication.
2086 2086  
... ... @@ -2255,7 +2255,7 @@
2255 2255  
2256 2256  [[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]]
2257 2257  
2258 -= **User define protocol** =
2462 += **User define** =
2259 2259  
2260 2260  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]]
2261 2261  
... ... @@ -2273,66 +2273,63 @@
2273 2273  
2274 2274  Script Demo:
2275 2275  
2276 -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~--
2277 -
2480 +{{code language="lua"}}
2278 2278  function com.main()
2279 - ~-~-dosomething
2280 - 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
2281 2281   end
2282 - function openPlc()
2283 - if obj then
2284 - ~-~- If the serial port opened,then read/write data by timing
2285 2285  
2286 - local wri = string.pack(">HHHH",0X0103,0X0200,0X0003,0X0473)
2287 - local arr = reading(wri)
2288 - ~-~- if arr ~~=nil then
2289 - ~-~- if arr[1] ==33 and arr[2] ==v[2][2] and arr[3] ==v[2][3] then
2290 - ~-~- local A = arr[4]*256
2291 - ~-~- local B = A+arr[5]
2292 - ~-~- addr_setword(v[1],B)
2293 - ~-~- end
2294 - ~-~- end
2295 2295  
2296 - else
2297 - ~-~-judge if there is a serial object, then initialize and open the serial port
2298 - local configs = {
2299 - name = 'COM1', ~-~-Select serial port COM1
2300 - mode = 485, ~-~-Communication mode RS485
2301 - baud_rate = 9600, ~-~-Baud rate 9600
2302 - stop_bit = 1, ~-~-stop bit 1
2303 - data_len = 8, ~-~-data length 8
2304 - check_bit = 'NONE', ~-~-no parity
2305 -
2306 - }
2307 - obj,err = serial.open(configs) ~-~-Open serial port
2308 - if not obj then
2309 - print("serial open :failed", err) ~-~- Open serial port failed
2310 - 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)
2311 2311   end
2312 - end
2313 -
2314 - function reading(wri)
2315 - obj:flush() ~-~- Clear serial port
2316 - obj:write(wri) ~-~- Write serial port
2317 - print(string.byte(wri,1,#wri))
2318 - obj:flush() ~-~- Clear serial port 
2319 - local readed =obj:read(9,1000) ~-~- Read 9 bytes, timeout 1 second
2320 - if readed and readed ~~= "" then 
2321 - ~-~- judge that a non-empty string is read
2322 - print(string.byte(readed,1,#readed))
2323 - a={string.byte(readed, 1, #readed)}
2324 - if nil ~~= a[4] and nil ~~= a[5] and nil ~~= a[6] and nil ~~= a[7] then
2325 - a1=a[4]*256+a[5]
2326 - a2=a[6]*256+a[7]
2327 - addr_setword("@HDW0",a1)
2328 - addr_setword("@HDW1",a2)
2329 - end
2330 - return {string.byte(readed, 1, #readed)}
2331 - elseif readed == nil then
2332 - print("serial read err:", err or "")
2333 - return nil
2334 - end
2532 + return {string.byte(readed, 1, #readed)}
2533 + elseif readed == nil then
2534 + print("serial read err:", err or "")
2335 2335   return nil
2336 - end
2337 -
2338 -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
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