Changes for page 1 Communication
Last modified by Hunter on 2024/07/01 10:54
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 5 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Bob1 +XWiki.Hunter - Content
-
... ... @@ -176,16 +176,118 @@ 176 176 177 177 The above are all the steps for establishing ethernet communication between V-BOX with LX5V PLC. 178 178 179 + 180 + 179 179 = Create communication with **Rockwell PLC** = 180 180 181 -== (% id="cke_bm_5621S"style="display:none"%)** **(%%)**MicroLogixProtocol** ==183 +== **DF1 Advanced Protocol** == 182 182 185 +MicroLogix 1000/1100/1200/1400/1500; SLC 5/03 5/04 5/05; PLC-5 186 + 187 +**1) V-Box Settings** 188 + 189 +|=Item|=Recommended |=Note 190 +|=Protocol|Allen Bradley DF1 Advanced| 191 +|=Connection|RS232| 192 +|=Baud rate|19200| 193 +|=Stop bits|1| 194 +|=Data bits|8| 195 +|=Parity|None| 196 +|=PLC Station No.|1| 197 +|=HMI Station No.|0| 198 + 199 +**2) Address List** 200 + 201 +|=**Type**|=**Device registers**|=**Format**|=**Range**|=Note 202 +|(% colspan="1" rowspan="7" %)Bit|I1|I1ddd.dd|0.0~~255.15|Only able to communicate with file number I1 203 +|O0|O0ddd.dd|0.0~~255.15|Only able to communicate with file number O0 204 +|S2|S2ddd.dd|0.0~~255.15|Only able to communicate with file number S2 205 +|B3|B3ddd.dd|0.0~~255.15|Only able to communicate with file number B3 206 +|BN|BNddddd.dd|0.0~~99255.15|((( 207 +Bit data file B0~~B99 208 + 209 +First two digits is for file number 210 + 211 +For example, BN13001.00 represents file number B13, address 001, the 0th bit. 212 +))) 213 +|N7|N7ddd.dd|0.0~~255.15|Only able to communicate with file number N7 214 +|NN|NNddddd.dd|0.0~~99255.15|((( 215 +Integer data file bit format N0~~N99 216 + 217 +First two digits is for file number 218 + 219 +For example, NN13001.00 represents file number N13, address 001, the 0th bit. 220 +))) 221 +|(% rowspan="11" %)Word|S2|S2ddd|0~~255|Only able to communicate with file number S2 222 +|T4S|T4Sddd|0~~255|Only able to communicate with file number T4 (Timer Preset Value) 223 +|T4P|T4Pddd|0~~255|Only able to communicate with file number T4 (Timer Accumulator Value) 224 +|TNS|TNSddddd|0~~99255|((( 225 +Timer Preset Value 226 + 227 +First two digits is for file number 228 + 229 +For example, TNS99255 represents file number T99, address 255. 230 +))) 231 +|TNP|TNPddddd|0~~99255|((( 232 +Timer Accumulator Value 233 + 234 +First two digits is for file number 235 + 236 +For example, TNP99255 represents file number T99, address 255. 237 +))) 238 +|C5S|C5Sddd|0~~255|Only able to communicate with file number C5 (Counter Preset Value) 239 +|C5P|C5Pddd|0~~255|Only able to communicate with file number C5 (Counter Accumulator Value) 240 +|CNS|CNSddddd|0~~99255|((( 241 +Counter Preset Value 242 + 243 +First two digits is for file number 244 + 245 +For example, CNS99255 represents file number C99, address 255. 246 +))) 247 +|CNP|CNPddddd|0~~99255|((( 248 +Counter Accumulator Value 249 + 250 +First two digits is for file number 251 + 252 +For example, CNP99255 represents file number C99, address 255. 253 +))) 254 +|N7|N7ddd|0~~255|Only able to communicate with file number N7 255 +|NN|NNddd|0~~99255|((( 256 +Integer data file 257 + 258 +First two digits is for file number 259 + 260 +For example, NN99255 represents file number N99, address 255. 261 +))) 262 +|(% colspan="1" rowspan="3" %)Double Word|F8|F8ddd|0~~255|((( 263 +Only able to communicate with file number N7 264 +))) 265 +|FN|FNddddd|0~~99255|((( 266 +Floating point data file 267 + 268 +First two digits is for file number 269 + 270 +For example, FN99255 represents file number F99, address 255. 271 +))) 272 +|LN|LNddddd|0~~99255|Long 273 + 274 +**3) Cable Wiring** 275 + 276 +(% style="text-align:center" %) 277 +[[image:ABRS232.gif]] 278 + 279 +(% class="wikigeneratedid" id="HMicroLogixA0Protocol" %) 280 +(% id="cke_bm_5621S" style="display:none" %)** ** 281 + 282 +== **MicroLogix Protocol** == 283 + 284 +(% 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-Bradl ley DF1 Advanced|290 +|Protocol|Allen-Bradley DF1 Advanced| 189 189 |Connection|RS232| 190 190 |Baud rate|19200| 191 191 |Data bit|8| ... ... @@ -608,6 +608,97 @@ 608 608 609 609 [[image:image-20220824162342-2.png]] 610 610 713 +== **LOGO Ethernet Protocol** == 714 + 715 +Supported Series: Siemens Logo 0BA0, 0BA1 series 716 + 717 +**V-BOX Settings** 718 + 719 + 720 +|**Items**|**Settings**|**Note** 721 +|Protocol|Siemens LOGO| 722 +|Connection|Ethernet| 723 +|Port No.|102| 724 +|PLC station No.|2| 725 + 726 +**Address List** 727 + 728 + 729 +|**Number**|**Address Type**|**Data Type**|**Range**|**DB Address**|**PLC Address** 730 +|1|RTC|Word|1-7|DB1.DBX984.0|0x001ec0 731 +|2|VB|Byte|0-1469|DB1.DBX0.0|0x000000 732 +|3|VD|Double Word|0-1466|DB1.DBX0.0|0x000000 733 +|4|VW|Word|0-1468|DB1.DBX0.0|0x000000 734 +|5|NAQ|Word|1-32|DB1.DBX1406.0|0x002bf0 735 +|6|NAI|Word|1-64|DB1.DBX1262.0|0x002770 736 +|7|AM|Word|1-64|DB1.DBX1118.0|0x0022f0 737 +|8|AQ|Word|1-16|DB1.DBX1072.0|0x002180 738 +|9|AI|Word|1-16|DB1.DBX1032.0|0x002040 739 +|10|I|Bit|1-64|DB1.DBX1024.0|0x002000 740 +|11|Q|Bit|1-64|DB1.DBX1064.0|0x002140 741 +|12|M|Bit|1-112|DB1.DBX1104.0|0x002280 742 +|13|NI|Bit|1-128|DB1.DBX1246.0|0x0026f0 743 +|14|NQ|Bit|1-128|DB1.DBX1390.0|0x002b70 744 +|15|V|Bit|0-14697|DB1.DBX0.0|0x000000 745 + 746 +**PLC Settings in LOGO Software:** 747 + 748 +Click [Tools]~-~-[Ethernet Connections],shown as below. 749 + 750 +(% style="text-align:center" %) 751 +[[image:PIStudio.12\.PLC protocols.WebHome@12.PLC Protocol_html_8b9d2322edf89519.png]] 752 + 753 +Set Ethernet connection parameter. IP, Subnet Mask, shown as below. 754 + 755 +(% style="text-align:center" %) 756 +[[image:PIStudio.12\.PLC protocols.WebHome@image-20221228142937-4.png]] 757 + 758 +**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. 759 + 760 +(% style="text-align:center" %) 761 +[[image:PIStudio.12\.PLC protocols.WebHome@image-20221228143047-5.png]] 762 + 763 + **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. 764 + 765 +(% style="text-align:center" %) 766 +[[image:PIStudio.12\.PLC protocols.WebHome@image-20221228143246-6.png]] 767 + 768 +**V-BOX Communication Settings** 769 + 770 +Set PLC IP in [IP Address] settings; 771 + 772 +(% style="text-align:center" %) 773 +[[image:LldwDGntf4.png]] 774 + 775 +Enable V-BOX Ethernet in [Network]; 776 + 777 +(% style="text-align:center" %) 778 +[[image:WgvjfWbQif.png]] 779 + 780 +TSAP setting 781 + 782 +* The initialization script needs to set the source TSAP address and the target TSAP address, otherwise the communication will not be successful. 783 + 784 +{{code language="LUA"}} 785 +function init.main() 786 +addr_setword("@W_0#HSW1200",8192) -- Set the source TSAP address 787 +addr_setword("@W_0#HSW1201",4096) -- Set the destination TSAP address 788 +end 789 +{{/code}} 790 + 791 +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. 792 + 793 +**✎Note:** 794 + 795 +* **Communication port configuration: ** 796 +** Continuous length needs to be set to 0. 797 +** Integration interval needs to be set to 1. (no change may result in data errors) 798 +** Set Port and Device Station NO. 799 +** Other set as defaulted. 800 +* **Notes on the use of registers:** 801 +** Register VD: Use only registers that are multiples of 4, such as 0, 4, 8, etc. 802 +** 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 ) 803 + 611 611 = Create communication with **Mitsubishi PLC** = 612 612 613 613 == **FX1S,1N,2N Serial Protocol** ==
- 0Il1q9GZgk.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Bob - Size
-
... ... @@ -1,0 +1,1 @@ 1 +24.6 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
- LldwDGntf4.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Bob - Size
-
... ... @@ -1,0 +1,1 @@ 1 +24.3 KB - Content
- WgvjfWbQif.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Bob - Size
-
... ... @@ -1,0 +1,1 @@ 1 +36.3 KB - Content