Changes for page 1 Communication

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

From version 192.1
edited by Hunter
on 2022/12/01 16:28
Change comment: There is no comment for this version
To version 230.1
edited by Theodore Xu
on 2023/04/23 15:41
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Hunter
1 +XWiki.AiXia
Content
... ... @@ -176,16 +176,116 @@
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 **Rockwell PLC** =
179 += Create communication with Allen-Bradley(**Rockwell**)** PLC** =
180 180  
181 -== (% id="cke_bm_5621S" style="display:none" %)** **(%%)**MicroLogix Protocol** ==
181 +== **DF1 Advanced Protocol** ==
182 182  
183 +MicroLogix 1000/1100/1200/1400/1500; SLC 5/03 5/04 5/05; PLC-5
184 +
185 +**1) V-Box Settings**
186 +
187 +|=Item|=Recommended |=Note
188 +|=Protocol|Allen Bradley DF1 Advanced|
189 +|=Connection|RS232|
190 +|=Baud rate|19200|
191 +|=Stop bits|1|
192 +|=Data bits|8|
193 +|=Parity|None|
194 +|=PLC Station No.|1|
195 +|=HMI Station No.|0|
196 +
197 +**2) Address List**
198 +
199 +|=**Type**|=**Device registers**|=**Format**|=**Range**|=Note
200 +|(% colspan="1" rowspan="7" %)Bit|I1|I1ddd.dd|0.0~~255.15|Only able to communicate with file number I1
201 +|O0|O0ddd.dd|0.0~~255.15|Only able to communicate with file number O0
202 +|S2|S2ddd.dd|0.0~~255.15|Only able to communicate with file number S2
203 +|B3|B3ddd.dd|0.0~~255.15|Only able to communicate with file number B3
204 +|BN|BNddddd.dd|0.0~~99255.15|(((
205 +Bit data file B0~~B99
206 +
207 +First two digits is for file number
208 +
209 +For example, BN13001.00 represents file number B13, address 001, the 0th bit.
210 +)))
211 +|N7|N7ddd.dd|0.0~~255.15|Only able to communicate with file number N7
212 +|NN|NNddddd.dd|0.0~~99255.15|(((
213 +Integer data file bit format N0~~N99
214 +
215 +First two digits is for file number
216 +
217 +For example, NN13001.00 represents file number N13, address 001, the 0th bit.
218 +)))
219 +|(% rowspan="11" %)Word|S2|S2ddd|0~~255|Only able to communicate with file number S2
220 +|T4S|T4Sddd|0~~255|Only able to communicate with file number T4 (Timer Preset Value)
221 +|T4P|T4Pddd|0~~255|Only able to communicate with file number T4 (Timer Accumulator Value)
222 +|TNS|TNSddddd|0~~99255|(((
223 +Timer Preset Value
224 +
225 +First two digits is for file number
226 +
227 +For example, TNS99255 represents file number T99, address 255.
228 +)))
229 +|TNP|TNPddddd|0~~99255|(((
230 +Timer Accumulator Value
231 +
232 +First two digits is for file number
233 +
234 +For example, TNP99255 represents file number T99, address 255.
235 +)))
236 +|C5S|C5Sddd|0~~255|Only able to communicate with file number C5 (Counter Preset Value)
237 +|C5P|C5Pddd|0~~255|Only able to communicate with file number C5 (Counter Accumulator Value)
238 +|CNS|CNSddddd|0~~99255|(((
239 +Counter Preset Value
240 +
241 +First two digits is for file number
242 +
243 +For example, CNS99255 represents file number C99, address 255.
244 +)))
245 +|CNP|CNPddddd|0~~99255|(((
246 +Counter Accumulator Value
247 +
248 +First two digits is for file number
249 +
250 +For example, CNP99255 represents file number C99, address 255.
251 +)))
252 +|N7|N7ddd|0~~255|Only able to communicate with file number N7
253 +|NN|NNddd|0~~99255|(((
254 +Integer data file
255 +
256 +First two digits is for file number
257 +
258 +For example, NN99255 represents file number N99, address 255.
259 +)))
260 +|(% colspan="1" rowspan="3" %)Double Word|F8|F8ddd|0~~255|(((
261 +Only able to communicate with file number N7
262 +)))
263 +|FN|FNddddd|0~~99255|(((
264 +Floating point data file
265 +
266 +First two digits is for file number
267 +
268 +For example, FN99255 represents file number F99, address 255.
269 +)))
270 +|LN|LNddddd|0~~99255|Long
271 +
272 +**3) Cable Wiring**
273 +
274 +(% style="text-align:center" %)
275 +[[image:ABRS232.gif]]
276 +
277 +(% class="wikigeneratedid" id="HMicroLogixA0Protocol" %)
278 +(% id="cke_bm_5621S" style="display:none" %)** **
279 +
280 +== **MicroLogix Protocol** ==
281 +
282 +(% class="wikigeneratedid" %)
183 183  MicroLogix 1000/1100/1200/1400/1500; SLC 5/03 5/04 5/05 PLC-5
184 184  
185 185  **1)V-BOX setting**
186 186  
187 187  |**Item**|**Settings**|**Note**
188 -|Protocol|Allen-Bradlley DF1 Advanced|
288 +|Protocol|Allen-Bradley DF1 Advanced|
189 189  |Connection|RS232|
190 190  |Baud rate|19200|
191 191  |Data bit|8|
... ... @@ -420,11 +420,145 @@
420 420  The above are all the steps for establishing Ethernet communication between Wecon V-box with CompactLogix L1769 PLC.
421 421  
422 422  
423 -= **Allen-Bradley Ethernet DF1** =
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.
424 424  
525 +(% class="wikigeneratedid" id="HSoftwareconfigurationofPLC" %)
526 +(((
527 +**Software configuration of PLC**
528 +)))
529 +
530 +(% class="wikigeneratedid" id="HPLCprogrammingsoftware" %)
531 +(((
532 +**1)PLC programming software:Connected Components Workbench™**
533 +
534 +(% style="text-align:center" %)
535 +[[image:software.png]]
536 +
537 +**2)New PLC project**
538 +
539 +Click New Project and select the PLC model.
540 +
541 +(% style="text-align:center" %)
542 +[[image:project create.png]]
543 +
544 +**3)Set Ethernet parameters**
545 +
546 +Follow the steps below to configure Ethernet parameters
547 +
548 +PLC IP address:192.168.39.56
549 +
550 +default gateway:192.168.39.1
551 +
552 +subnet mask:255.255.255.0
553 +
554 +(% style="text-align:center" %)
555 +[[image:Ethernet.png]]
556 +
557 +**4)connect PLC**
558 +
559 +**When downloading the setting, need to change the status of the PLC to PRG**
560 +
561 +(% style="text-align:center" %)
562 +[[image:conne ab plc.png]]
563 +
564 +**V-box software configuration**
565 +
566 +**1)V-box programming software**
567 +
568 +(% style="text-align:center" %)
569 +[[image:v-net client vers.png]]
570 +
571 +**2)Set communication port parameters**
572 +
573 +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.
574 +
575 +(% style="text-align:center" %)
576 +[[image:V-NET_Client_t2Rg2wpSoY.png]]
577 +
578 +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.
579 +
580 +(% style="text-align:center" %)
581 +[[image:V-NET_Client_communication.png]]
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.
584 +
585 +(% style="text-align:center" %)
586 +[[image:export1.png]]
587 +
588 +(% style="text-align:center" %)
589 +[[image:CCW.Shell_E5Cwj4tUL3.png]]
590 +
591 +(% style="text-align:center" %)
592 +[[image:V-NET_Client_iKKKhcgxm1.png]]
593 +
594 +**3)Engineering production**
595 +
596 +According to your own needs, use the V-NET client software to edit the required data monitoring points.
597 +
598 +(% style="text-align:center" %)
599 +[[image:V-NET_Client_KOR0AHEA4M.png]]
600 +
601 +
602 +)))
603 +
604 +== **Ethernet DF1 Protocol** ==
605 +
425 425  [[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]]
426 426  
608 += Create communication with **Crouzet PLC** =
427 427  
610 +== **CROUZET M3 (FBD)** ==
611 +
612 +Support Series: Crouzet Millenium 3 CD12/CB12
613 +
614 +**1)V-BOX setting**
615 +
616 +|=Item|=Recommended |=Note
617 +|=Protocol|CROUZET M3 (FBD)|
618 +|=Connection|RS232|
619 +|=Baud rate|115200|
620 +|=Stop bits|1|
621 +|=Data bits|7|
622 +|=Parity|EVEN|
623 +
624 +**2)Address List**
625 +
626 +|=**Type**|=**Device registers**|=**Format**|=**Range**|=Note
627 +|(% rowspan="4" %)Bit|I|I DD|1~~99|Input
628 +|SLIBit|SLIBit DD.dd|1.0~~24.15|Serial Link Input
629 +|SLOBit|SLOBit DD.dd|25.0~~48.15|Serial Link Output(Read only)
630 +|State|State D|1~~1|PLC state(Read only)
631 +|(% rowspan="5" %)Word|AI|AI DD|1~~99|Analog Input
632 +|SLIn|SLIn DD|1~~24|Serial Link Input
633 +|SLOut|SLOut DD|25~~48|Serial Link Output(Read only)
634 +|Time|Time D|1~~6|(((
635 +Time1: Second
636 +
637 +Time2: Minute
638 +
639 +Time3: Hour
640 +
641 +Time4: Day
642 +
643 +Time5: Month
644 +
645 +Time6: Year
646 +)))
647 +|Order|Order D|1~~1|(((
648 +Running command(Write only)
649 +
650 +~=2: Run mode; =1: Stop mode;
651 +)))
652 +
653 +**3)Cable Wiring**
654 +
655 +(% style="text-align:center" %)
656 +[[image:CrouzetRS232 VBox.png]]
657 +
658 +{{info}}
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 +{{/info}}
661 +
428 428  = Create communication with **Siemens PLC** =
429 429  
430 430  == **S7-200 Smart Ethernet Protocol** ==
... ... @@ -608,6 +608,97 @@
608 608  
609 609  [[image:image-20220824162342-2.png]]
610 610  
845 +== **LOGO Ethernet Protocol** ==
846 +
847 +Supported Series: Siemens Logo 0BA0, 0BA1 series
848 +
849 +**V-BOX Settings**
850 +
851 +
852 +|**Items**|**Settings**|**Note**
853 +|Protocol|Siemens LOGO|
854 +|Connection|Ethernet|
855 +|Port No.|102|
856 +|PLC station No.|2|
857 +
858 +**Address List**
859 +
860 +
861 +|**Number**|**Address Type**|**Data Type**|**Range**|**DB Address**|**PLC Address**
862 +|1|RTC|Word|1-7|DB1.DBX984.0|0x001ec0
863 +|2|VB|Byte|0-1469|DB1.DBX0.0|0x000000
864 +|3|VD|Double Word|0-1466|DB1.DBX0.0|0x000000
865 +|4|VW|Word|0-1468|DB1.DBX0.0|0x000000
866 +|5|NAQ|Word|1-32|DB1.DBX1406.0|0x002bf0
867 +|6|NAI|Word|1-64|DB1.DBX1262.0|0x002770
868 +|7|AM|Word|1-64|DB1.DBX1118.0|0x0022f0
869 +|8|AQ|Word|1-16|DB1.DBX1072.0|0x002180
870 +|9|AI|Word|1-16|DB1.DBX1032.0|0x002040
871 +|10|I|Bit|1-64|DB1.DBX1024.0|0x002000
872 +|11|Q|Bit|1-64|DB1.DBX1064.0|0x002140
873 +|12|M|Bit|1-112|DB1.DBX1104.0|0x002280
874 +|13|NI|Bit|1-128|DB1.DBX1246.0|0x0026f0
875 +|14|NQ|Bit|1-128|DB1.DBX1390.0|0x002b70
876 +|15|V|Bit|0-14697|DB1.DBX0.0|0x000000
877 +
878 +**PLC Settings in LOGO Software:**
879 +
880 +Click [Tools]~-~-[Ethernet Connections],shown as below.
881 +
882 +(% style="text-align:center" %)
883 +[[image:PIStudio.12\.PLC protocols.WebHome@12.PLC Protocol_html_8b9d2322edf89519.png]]
884 +
885 +Set Ethernet connection parameter. IP, Subnet Mask, shown as below.
886 +
887 +(% style="text-align:center" %)
888 +[[image:PIStudio.12\.PLC protocols.WebHome@image-20221228142937-4.png]]
889 +
890 +**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.
891 +
892 +(% style="text-align:center" %)
893 +[[image:PIStudio.12\.PLC protocols.WebHome@image-20221228143047-5.png]]
894 +
895 + **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.
896 +
897 +(% style="text-align:center" %)
898 +[[image:PIStudio.12\.PLC protocols.WebHome@image-20221228143246-6.png]]
899 +
900 +**V-BOX Communication Settings**
901 +
902 +Set PLC IP in [IP Address] settings;
903 +
904 +(% style="text-align:center" %)
905 +[[image:LldwDGntf4.png]]
906 +
907 +Enable V-BOX Ethernet in [Network];
908 +
909 +(% style="text-align:center" %)
910 +[[image:WgvjfWbQif.png]]
911 +
912 +TSAP setting
913 +
914 +* The initialization script needs to set the source TSAP address and the target TSAP address, otherwise the communication will not be successful.
915 +
916 +{{code language="LUA"}}
917 +function init.main()
918 +addr_setword("@W_0#HSW1200",8192) -- Set the source TSAP address
919 +addr_setword("@W_0#HSW1201",4096) -- Set the destination TSAP address
920 +end
921 +{{/code}}
922 +
923 +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.
924 +
925 +**✎Note:**
926 +
927 +* **Communication port configuration: **
928 +** Continuous length needs to be set to 0.
929 +** Integration interval needs to be set to 1. (no change may result in data errors)
930 +** Set Port and Device Station NO.
931 +** Other set as defaulted.
932 +* **Notes on the use of registers:**
933 +** Register VD: Use only registers that are multiples of 4, such as 0, 4, 8, etc.
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 +
611 611  = Create communication with **Mitsubishi PLC** =
612 612  
613 613  == **FX1S,1N,2N Serial Protocol** ==
... ... @@ -1175,7 +1175,7 @@
1175 1175  
1176 1176  == **DVP Ethernet Protocol** ==
1177 1177  
1178 -Supoort Series: DELTA DVP20/32/40/60ES200RE/200TE, DELTA DVPEN01-SL
1503 +Supoort Series: DELTA DVP20/32/40/60ES200RE/200TE or any DVP models with built-in Ethernet port, DELTA DVPEN01-SL module
1179 1179  
1180 1180  **1)V-BOX Settings**
1181 1181  
... ... @@ -1188,19 +1188,19 @@
1188 1188  
1189 1189  **2)Address List **
1190 1190  
1191 -|=**Type**|=(% style="width: 215px;" %)**Device registers**|=(% style="width: 237px;" %)**VBox registers**|=(% style="width: 214px;" %)**Format**|=**Range**|=**Note**
1192 -|Bit|(% style="width:215px" %)X|(% style="width:237px" %)X|(% style="width:214px" %)X OOO|0~~377|
1193 -|Bit|(% style="width:215px" %)Y|(% style="width:237px" %)Y|(% style="width:214px" %)Y OOO|0~~377|
1194 -|Bit|(% style="width:215px" %)M0|(% style="width:237px" %)M0|(% style="width:214px" %)M0DDDD|0~~1535|
1195 -|Bit|(% style="width:215px" %)M1|(% style="width:237px" %)M1|(% style="width:214px" %)M1DDDD|1536~~4096|
1196 -|Bit|(% style="width:215px" %)T|(% style="width:237px" %)T|(% style="width:214px" %)TDDD|0~~255|
1197 -|Bit|(% style="width:215px" %)C|(% style="width:237px" %)C|(% style="width:214px" %)CDDD|0~~255|
1198 -|Bit|(% style="width:215px" %)S|(% style="width:237px" %)S|(% style="width:214px" %)SDDDD|0~~1023|
1199 -|Word|(% style="width:215px" %)D0|(% style="width:237px" %)D0|(% style="width:214px" %)D0DDDD|0~~4095|
1200 -|Word|(% style="width:215px" %)D1|(% style="width:237px" %)D1|(% style="width:214px" %)D1DDDD|4096~~11999|
1201 -|Word|(% style="width:215px" %)T|(% style="width:237px" %)T|(% style="width:214px" %)TDDD|0~~255|
1202 -|Word|(% style="width:215px" %)C|(% style="width:237px" %)C|(% style="width:214px" %)CDDD|0~~199|
1203 -|Double Word|(% style="width:215px" %)HC|(% style="width:237px" %)HC|(% style="width:214px" %)HCDDD|200~~255|
1516 +|=**Type**|=(% style="width: 191px;" %)**Device registers**|=(% style="width: 217px;" %)**VBox registers**|=(% style="width: 168px;" %)**Format**|=(% style="width: 225px;" %)**Range**|=**Note**
1517 +|Bit|(% style="width:191px" %)X|(% style="width:217px" %)X|(% style="width:168px" %)X OOO|(% style="width:225px" %)0~~377|
1518 +|Bit|(% style="width:191px" %)Y|(% style="width:217px" %)Y|(% style="width:168px" %)Y OOO|(% style="width:225px" %)0~~377|
1519 +|Bit|(% style="width:191px" %)M0|(% style="width:217px" %)M0|(% style="width:168px" %)M0DDDD|(% style="width:225px" %)0~~1535|
1520 +|Bit|(% style="width:191px" %)M1|(% style="width:217px" %)M1|(% style="width:168px" %)M1DDDD|(% style="width:225px" %)1536~~4096|
1521 +|Bit|(% style="width:191px" %)T|(% style="width:217px" %)T|(% style="width:168px" %)TDDD|(% style="width:225px" %)0~~255|
1522 +|Bit|(% style="width:191px" %)C|(% style="width:217px" %)C|(% style="width:168px" %)CDDD|(% style="width:225px" %)0~~255|
1523 +|Bit|(% style="width:191px" %)S|(% style="width:217px" %)S|(% style="width:168px" %)SDDDD|(% style="width:225px" %)0~~1023|
1524 +|Word|(% style="width:191px" %)D0|(% style="width:217px" %)D0|(% style="width:168px" %)D0DDDD|(% style="width:225px" %)0~~4095|
1525 +|Word|(% style="width:191px" %)D1|(% style="width:217px" %)D1|(% style="width:168px" %)D1DDDD|(% style="width:225px" %)4096~~11999|
1526 +|Word|(% style="width:191px" %)T|(% style="width:217px" %)T|(% style="width:168px" %)TDDD|(% style="width:225px" %)0~~255|
1527 +|Word|(% style="width:191px" %)C|(% style="width:217px" %)C|(% style="width:168px" %)CDDD|(% style="width:225px" %)0~~199|
1528 +|Double Word|(% style="width:191px" %)HC|(% style="width:217px" %)HC|(% style="width:168px" %)HCDDD|(% style="width:225px" %)200~~255|
1204 1204  
1205 1205  **3) PLC Setting:**
1206 1206  
... ... @@ -1240,8 +1240,40 @@
1240 1240  
1241 1241  == **DVP serial protocol** ==
1242 1242  
1243 -[[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/Delta%20DVP%20Ethernet.zip]]
1568 +Supoort Series: DELTA DVP EH/ES/SS/EX/EH2/SV/SA/SC/SX
1244 1244  
1570 +**1)V-BOX Settings**
1571 +
1572 +|=**Items**|=**Settings**|=**Note**
1573 +|Protocol|DELTA DVP PROTOCOL|
1574 +|Connection|RS232|
1575 +|Baud Rate|9600|
1576 +|Stop Bit|1|
1577 +|Data Bit|7|
1578 +|Parity|EVEN|
1579 +|Device No.|1|
1580 +
1581 +(% class="wikigeneratedid" %)
1582 +**2)Address List**
1583 +
1584 +|=**Type**|=(% style="width: 191px;" %)**Device registers**|=(% style="width: 217px;" %)**VBox registers**|=(% style="width: 168px;" %)**Format**|=(% style="width: 225px;" %)**Range**|=**Note**
1585 +|Bit|(% style="width:191px" %)X|(% style="width:217px" %)X|(% style="width:168px" %)X OOOOOO|(% style="width:225px" %)0~~303237|
1586 +|Bit|(% style="width:191px" %)Y|(% style="width:217px" %)Y|(% style="width:168px" %)Y OOOOOO|(% style="width:225px" %)0~~303237|
1587 +|Bit|(% style="width:191px" %)M|(% style="width:217px" %)M|(% style="width:168px" %)MDDDDD|(% style="width:225px" %)0~~99999|
1588 +|Bit|(% style="width:191px" %)T|(% style="width:217px" %)T|(% style="width:168px" %)TDDDDD|(% style="width:225px" %)0~~99999|
1589 +|Bit|(% style="width:191px" %)C|(% style="width:217px" %)C|(% style="width:168px" %)CDDDDD|(% style="width:225px" %)0~~99999|
1590 +|Bit|(% style="width:191px" %)S|(% style="width:217px" %)S|(% style="width:168px" %)SDDDDD|(% style="width:225px" %)0~~99999|
1591 +|Word|(% style="width:191px" %)D|(% style="width:217px" %)D|(% style="width:168px" %)D DDDDD|(% style="width:225px" %)0~~99999|
1592 +|Word|(% style="width:191px" %)T|(% style="width:217px" %)T|(% style="width:168px" %)TDDDDD|(% style="width:225px" %)0~~99999|
1593 +|Word|(% style="width:191px" %)C|(% style="width:217px" %)C|(% style="width:168px" %)CDDD|(% style="width:225px" %)0~~199|
1594 +|Double Word|(% style="width:191px" %)C|(% style="width:217px" %)C|(% style="width:168px" %)CDDDDD|(% style="width:225px" %)200~~99999|
1595 +
1596 +(% class="wikigeneratedid" %)
1597 +**3)Wiring Diagram**
1598 +
1599 +(% style="text-align:center" %)
1600 +[[image:Delta DVP PROTOCOLSerial232.png]]
1601 +
1245 1245  == **AS Ethernet Protocol** ==
1246 1246  
1247 1247  **1)V-BOX Settings**
... ... @@ -1721,6 +1721,86 @@
1721 1721  (% style="text-align:center" %)
1722 1722  [[image:1624342015914-382.png||height="486" width="800" class="img-thumbnail"]]
1723 1723  
2081 +== **Communicate with Modbus Meter** ==
2082 +
2083 +The following example is using the Linfee meter LNF96EY to demonstrate how to set up the Modbus communication.
2084 +
2085 +~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:
2086 +
2087 +(% style="text-align:center" %)
2088 +[[image:LinfeeTerminalDiagram.png]]
2089 +
2090 +2. Check the specific Modbus parameter in the communication menu from LED display.
2091 +
2092 +So from the following pictures, we can know the Meter Address is 85, Baud rate is 9600, CRC None.
2093 +
2094 +{{info}}
2095 +**✎Note: **Meter address usually corresponding to the Modbus Slave Station No. on the Modbus communication.
2096 +{{/info}}
2097 +
2098 +(% style="text-align:center" %)
2099 +[[image:MeterModbusAllView.png]]
2100 +
2101 +(% class="wikigeneratedid" %)
2102 +3. Set up the communication in the Configuration tab.
2103 +
2104 +(% class="wikigeneratedid" %)
2105 +Select the protocol as **ModBus RTU Slave (All Function)**. And set the communication parameters like below.
2106 +
2107 +(% style="text-align:center" %)
2108 +[[image:VNETCommunicationtabmeter.png]]
2109 +
2110 +(% class="wikigeneratedid" %)
2111 +4. Create new real-time monitoring tag accroding to Modbus manual
2112 +
2113 +(% class="wikigeneratedid" %)
2114 +Enter the address we want to read from the meter. The following table is intercept part of the manual for Linfee Modbus manual.
2115 +
2116 +(% class="wikigeneratedid" %)
2117 +**0x03/0x04 command data register address**:
2118 +
2119 +(% style="width:1142.22px" %)
2120 +|(% 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
2121 +|(%%)(% style="display:none" %) (%%) HEX|(% style="width:107px" %)DEC|(%%)(% style="display:none" %) (%%) |(% style="width:100px" %) |(%%)(% style="display:none" %) (%%) |(% style="width:318px" %)
2122 +|(% style="width:107px" %)0x00|(% style="width:100px" %)0|Reserved| | |(% style="width:318px" %)
2123 +|(% style="width:107px" %)0x02|(% style="width:100px" %)2|Reserved| | |(% style="width:318px" %)
2124 +|(% style="width:107px" %)0x04|(% style="width:100px" %)4|Reserved| | |(% style="width:318px" %)
2125 +|(% style="width:107px" %)0x06|(% style="width:100px" %)6|Ua|float|2|(% style="width:318px" %)Phase Voltage data, Unit V
2126 +|(% style="width:107px" %)0x08|(% style="width:100px" %)8|Ub|float|2|(% style="width:318px" %)Phase Voltage data, Unit V
2127 +|(% style="width:107px" %)0x0A|(% style="width:100px" %)10|Uc|float|2|(% style="width:318px" %)Phase Voltage data, Unit V
2128 +|(% style="width:107px" %)0x0C|(% style="width:100px" %)12|Uab|float|2|(% style="width:318px" %)Line Voltage data, Unit V
2129 +|(% style="width:107px" %)0x0E|(% style="width:100px" %)14|Ubc|float|2|(% style="width:318px" %)Line Voltage data, Unit V
2130 +|(% style="width:107px" %)0x10|(% style="width:100px" %)16|Uca|float|2|(% style="width:318px" %)Line Voltage data, Unit V
2131 +|(% style="width:107px" %)0x12|(% style="width:100px" %)18|Ia|float|2|(% style="width:318px" %)Phase Current data, Unit A
2132 +|(% style="width:107px" %)0x14|(% style="width:100px" %)20|Ib|float|2|(% style="width:318px" %)Phase Current data, Unit A
2133 +|(% style="width:107px" %)0x16|(% style="width:100px" %)22|Ic|float|2|(% style="width:318px" %)Phase Current data, Unit A
2134 +
2135 +{{info}}
2136 +**✎Note: **We usually use the Data Type 4 for read the Modbus registers(Function Code 03)
2137 +{{/info}}
2138 +
2139 +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:
2140 +
2141 +(% style="text-align:center" %)
2142 +[[image:VNETModbusTagSettings.png]]
2143 +
2144 +(% style="text-align:center" %)
2145 +[[image:VNETModbusTagByteSettings.png]]
2146 +
2147 +{{info}}
2148 +**✎Note: **If the read value is incorrect, please check whether need to change the Byte order.
2149 +{{/info}}
2150 +
2151 +Set the Modbus Slave Station No.
2152 +
2153 +(% style="text-align:center" %)
2154 +[[image:ModbusStationSettings.png]]
2155 +
2156 +If the communication is setup successfully, the tag will show green light.
2157 +
2158 +(% style="text-align:center" %)
2159 +[[image:Monitoringtaggreenlight.png]]
2160 +
1724 1724  == **MODBUS RTU Master** ==
1725 1725  
1726 1726  Select the protocol "Modbus RTU Master",
... ... @@ -1733,8 +1733,8 @@
1733 1733  **address list**
1734 1734  
1735 1735  (% class="table-bordered" %)
1736 -|**type**|**register**|**Function code and description**
1737 -|(% rowspan="11" %)|(% rowspan="3" %)3|04 (Read Input Registers: Read the current binary value in one or more input registers)
2173 +|=(% scope="row" %)**Type**|=**Data Type**|=**Function code and description**
2174 +|(% rowspan="11" %)Word|(% rowspan="3" %)3|04 (Read Input Registers: Read the current binary value in one or more input registers)
1738 1738  |06 (write single register: write a binary value to a holding register)
1739 1739  |10 (write values to multiple addresses )
1740 1740  |(% rowspan="3" %)4|03 (read holding register: read current binary value in one or more holding registers)
... ... @@ -1773,7 +1773,7 @@
1773 1773  
1774 1774  **2)Address List**
1775 1775  
1776 -|**Type**|**Register**|**Function code & Description**
2213 +|=**Type**|=**Data Type**|=**Function code & Description**
1777 1777  |(% rowspan="11" %)Word|(% rowspan="3" %)3|04 (read input register: read current binary value in one or more input registers)
1778 1778  |06 (write single register: write a binary value to a holding register)
1779 1779  |10 (write values to multiple addresses )
0Il1q9GZgk.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Bob
Size
... ... @@ -1,0 +1,1 @@
1 +24.6 KB
Content
1679563870401-671.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Hunter
Size
... ... @@ -1,0 +1,1 @@
1 +39.3 KB
Content
1682233464031-639.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AiXia
Size
... ... @@ -1,0 +1,1 @@
1 +15.9 KB
Content
AB.gif
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Hunter
Size
... ... @@ -1,0 +1,1 @@
1 +7.3 KB
Content
ABRS232.gif
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Hunter
Size
... ... @@ -1,0 +1,1 @@
1 +7.3 KB
Content
CCW.Shell_E5Cwj4tUL3.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AiXia
Size
... ... @@ -1,0 +1,1 @@
1 +27.1 KB
Content
CrouzetRS232 VBox.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Hunter
Size
... ... @@ -1,0 +1,1 @@
1 +14.9 KB
Content
Delta DVP PROTOCOLSerial232.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Hunter
Size
... ... @@ -1,0 +1,1 @@
1 +10.7 KB
Content
Ethernet.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AiXia
Size
... ... @@ -1,0 +1,1 @@
1 +45.5 KB
Content
LinfeeTerminalDiagram.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Hunter
Size
... ... @@ -1,0 +1,1 @@
1 +8.6 KB
Content
LldwDGntf4.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Bob
Size
... ... @@ -1,0 +1,1 @@
1 +24.3 KB
Content
MeterModbusAddr.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Hunter
Size
... ... @@ -1,0 +1,1 @@
1 +562.5 KB
Content
MeterModbusAllView.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Hunter
Size
... ... @@ -1,0 +1,1 @@
1 +1.6 MB
Content
MeterModbusBaud.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Hunter
Size
... ... @@ -1,0 +1,1 @@
1 +444.0 KB
Content
MeterModbusPara.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Hunter
Size
... ... @@ -1,0 +1,1 @@
1 +532.0 KB
Content
ModbusStationSettings.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Hunter
Size
... ... @@ -1,0 +1,1 @@
1 +35.8 KB
Content
Monitoringtaggreenlight.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Hunter
Size
... ... @@ -1,0 +1,1 @@
1 +7.5 KB
Content
V-NET_Client setting.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AiXia
Size
... ... @@ -1,0 +1,1 @@
1 +41.9 KB
Content
V-NET_Client_ADD.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AiXia
Size
... ... @@ -1,0 +1,1 @@
1 +51.4 KB
Content
V-NET_Client_KOR0AHEA4M.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AiXia
Size
... ... @@ -1,0 +1,1 @@
1 +14.2 KB
Content
V-NET_Client_TIiAymnjkx.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AiXia
Size
... ... @@ -1,0 +1,1 @@
1 +12.8 KB
Content
V-NET_Client_communication.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AiXia
Size
... ... @@ -1,0 +1,1 @@
1 +25.5 KB
Content
V-NET_Client_iKKKhcgxm1.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AiXia
Size
... ... @@ -1,0 +1,1 @@
1 +35.9 KB
Content
V-NET_Client_t2Rg2wpSoY.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AiXia
Size
... ... @@ -1,0 +1,1 @@
1 +53.7 KB
Content
VNETCommunicationtabmeter.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Hunter
Size
... ... @@ -1,0 +1,1 @@
1 +31.0 KB
Content
VNETModbusTagByteSettings.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Hunter
Size
... ... @@ -1,0 +1,1 @@
1 +31.2 KB
Content
VNETModbusTagSettings.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Hunter
Size
... ... @@ -1,0 +1,1 @@
1 +35.7 KB
Content
WgvjfWbQif.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Bob
Size
... ... @@ -1,0 +1,1 @@
1 +36.3 KB
Content
conne ab plc.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AiXia
Size
... ... @@ -1,0 +1,1 @@
1 +43.1 KB
Content
export.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AiXia
Size
... ... @@ -1,0 +1,1 @@
1 +115.2 KB
Content
export1.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AiXia
Size
... ... @@ -1,0 +1,1 @@
1 +115.2 KB
Content
project create.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AiXia
Size
... ... @@ -1,0 +1,1 @@
1 +65.5 KB
Content
software.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AiXia
Size
... ... @@ -1,0 +1,1 @@
1 +25.8 KB
Content
v-net client vers.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AiXia
Size
... ... @@ -1,0 +1,1 @@
1 +13.1 KB
Content