Changes for page 12 PLC Protocol OLD
Last modified by Mora Zhou on 2024/12/05 14:53
From version 14.1
edited by Ben
on 2022/08/11 10:40
on 2022/08/11 10:40
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 14 added, 0 removed)
- S7-XXXCommunication Settings.png
- S7-XXXCommunication SettingsPI.png
- S7-XXXCommunication SettingsPIStudio.png
- SiemensLOGODeviceIP.png
- image-20220811115454-1.png
- image-20220811140308-1.png
- image-20220811140530-2.png
- image-20220811163047-1.png
- image-20220811163943-2.png
- image-20220811170248-1.png
- image-20220811170753-2.png
- image-20220817154212-1.jpeg
- image-20220819093729-1.png
- image-20220819093729-10.png
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Ben1 +XWiki.Stone - Content
-
... ... @@ -85,6 +85,182 @@ 85 85 86 86 Click [OK] button to save settings and close the dialog; 87 87 88 += Create communication with WECON PLC = 89 + 90 +== HMI settings == 91 + 92 +**Download PIStudio Software** 93 + 94 +Please visit the link below to get the latest version PIstudio for HMI programming: 95 + 96 +* [[Download>>https://ftp.we-con.com.cn/Download/Software/PIStudio20211210.zip]] or [[Download>>https://drive.google.com/open?id=1Im7YS2rtnRI7yFIHmqHDVPBUyWahqSXN]] 97 + 98 +**Create a new HMI project connect with PLC** 99 + 100 +Check the link below for the video to show you how to get started with a new project 101 + 102 +* [[Video>>https://drive.google.com/open?id=0B0j9uum1UPXbMENtRlF2VzdQdHc]] 103 + 104 +For more videos, please visit our Youtube channel: [[http:~~/~~/www.youtube.com/user/Wecon2004/videos>>url:http://www.youtube.com/user/Wecon2004/videos]] 105 + 106 +**General** 107 + 108 +HMI could communicate with PLC and support many PLC protocols. It is easy to operate and set communication parameters. This demo shows how to make a communication with PLC device, use WECON LX3V Series PLC as an example. 109 + 110 +**Protocol settings** 111 + 112 +The communication between two devices requires a protocol. The following contents show the steps of protocol settings. 113 + 114 +Please select the protocol, when creating a new project. 115 + 116 +1. Select the COM port for communication; 117 +1. PLC type: It means PLC brand, like WECON; 118 +1. PLC model: It shows the model of PLC, such as LX3V; 119 + 120 +(% style="text-align:center" %) 121 +[[image:image-20220819093729-1.png]] 122 + 123 +If you want to change the protocol for existing project, please click [Program] → [Communication] to open the [Communication] windows, shown as the following figure. 124 + 125 +(% style="text-align:center" %) 126 +[[image:image-20220819093729-2.png]] 127 + 128 + 129 +The steps to change the protocol for project are as follows. 130 + 131 +1. Click [Setting] to open the [Communication device] window; 132 +1. Select communication port, such as COM1; 133 +1. Select Serial port for communication, such as RS422; 134 +1. Select device type (device brand), such as WECON; 135 +1. Select the protocol for communication, such as WECON LX3V; 136 + 137 +(% style="text-align:center" %) 138 +[[image:image-20220819093729-3.png]] 139 + 140 +**Parameter settings** 141 + 142 +The parameters settings are in [Communication] window, shown as following below. 143 + 144 +1. Click [Setting] to open the [COM port setting] window; 145 +1. Set the parameters such as [connection], [Baud rate] and so on; 146 + 147 +(% style="text-align:center" %) 148 +[[image:image-20220819093729-4.png||height="636" width="818"]] 149 + 150 +(% start="3" %) 151 +1. Click [Setting] to open [Timeout] setting window, you could set the parameters according your requirements, or just use the default value. 152 + 153 +(% style="text-align:center" %) 154 +[[image:image-20220819093729-5.png]] 155 + 156 +**Set PLC address in HMI screen** 157 + 158 +1. Place the objects to HMI screen; 159 +1. Double-click the object to open the setting window; 160 +1. Click “Edit” to open the address setting windows; 161 +1. Connection: select the serial port in HMI; 162 +1. Address type: All the PLC address types will be display in this list, such as M; 163 +1. Address No.: Please input the number of this address, such as 0; 164 + 165 +[[image:image-20220819093729-6.jpeg]] 166 + 167 +**Communication cable** 168 + 169 +In order to ensure the stability of communication, please use the twisted-pair communication cable with good grounding. The following figure shows the pin out definition. 170 + 171 +(% style="text-align:center" %) 172 +[[image:image-20220819093729-7.png]] 173 + 174 +**HMI communication PLC use Modbus ** 175 + 176 +* HMI setting: [[https:~~/~~/docs.we-con.com.cn/bin/view/PIStudio/12.PLC%20protocols/>>https://docs.we-con.com.cn/bin/view/PIStudio/12.PLC%20protocols/]] 177 +* PLC setting: [[https:~~/~~/docs.we-con.com.cn/bin/view/PLC%20Editor/8.1.%09Communication/>>https://docs.we-con.com.cn/bin/view/PLC%20Editor/8.1.%09Communication/]] 178 + 179 +== PLC settings == 180 + 181 +**Download PLC Software** 182 + 183 +Please visit below link to get the latest version PLC Editor for HMI programming 184 + 185 +* LX3V:[[Download link>>doc:PLC Editor.10 Hardware .Software.WebHome]] 186 +* LX5V:[[Download link>>doc:PLC Editor2.Download.03 Software.WebHome]] 187 + 188 +**Start a new PLC project** 189 + 190 +Start a new PLC project by clicking “New” on the left top corner of screen, select the PLC mode from the drop-down list. 191 + 192 +(% style="text-align:center" %) 193 +[[image:image-20220819101447-3.jpeg]] 194 + 195 + 196 + 197 +**Add a new instruction ** 198 + 199 +Double click on the ladder, select the ladder symbol (instruction) from the drop-down list, then enter the address for this symbol. 200 + 201 +(% style="text-align:center" %) 202 +[[image:image-20220819105530-1.png]] 203 + 204 +You could also select the ladder symbol from the menu bar directly. 205 + 206 +[[image:image-20220819093729-11.png]] 207 + 208 +[[image:image-20220819093729-12.png]] 209 + 210 +**Add comment to PLC program** 211 + 212 +(% style="text-align:center" %) 213 +[[image:image-20220819105630-3.png]] 214 + 215 +**Add the statement to PLC program** 216 + 217 +Add the statement by single click on “Statement”, when finished, single click on “Statement” again to go back to Ladder edit. 218 + 219 +(% style="text-align:center" %) 220 +[[image:image-20220819105644-4.png]] 221 + 222 +**Compile ** 223 + 224 +You need to compile the PLC program before downloading or running Off-line simulator. The background color will be changed from purple to white when there is no error. 225 + 226 +[[image:image-20220819093729-15.png]] 227 + 228 +**Download setting ** 229 + 230 +Click on “Transfer Setup” to select download mode. 231 + 232 +[[image:image-20220820150853-1.png]]**Download PLC program to PLC** 233 + 234 +Quick select the parameters and main program of PLC program, then download to PLC, “Yes”-”Yes”-”OK” 235 + 236 +[[image:image-20220819093729-17.png]] 237 + 238 +**Upload PLC program from PLC** 239 + 240 +Read the PLC program from PLC to computer. 241 + 242 +[[image:image-20220819093729-18.png]] 243 + 244 +**Device monitor** 245 + 246 +Monitor the value of certain address in PLC, double click “Current value” to change the value in this address. 247 + 248 +[[image:image-20220819093730-19.png]] 249 + 250 +**Online monitor** 251 + 252 +Monitor the each address in PLC by online monitor. Changing the state or value in PLC is also allowd. 253 + 254 +[[image:image-20220819093730-20.png]] 255 + 256 +**Monitor edit** 257 + 258 +In this mode, you could edit the PLC program during PLC is running. 259 + 260 + 261 +(% style="text-align:center" %) 262 +[[image:image-20220819105928-9.png||height="229" width="669"]] 263 + 88 88 = **Allen-Bradley** = 89 89 90 90 == **FreeTag Ethernet/IP (CompactLogix)** == ... ... @@ -1896,7 +1896,7 @@ 1896 1896 1897 1897 == **LOGO Ethernet** == 1898 1898 1899 -Supported Series: Siemens Logo 2075 +Supported Series: Siemens Logo 0BA0 series 1900 1900 1901 1901 **HMI Settings** 1902 1902 ... ... @@ -1959,9 +1959,8 @@ 1959 1959 Set PLC IP in [Device IP] settings; 1960 1960 1961 1961 (% style="text-align:center" %) 1962 -[[image: 12.PLC Protocol_html_573fc64ad393cd4f.png||data-xwiki-image-style-alignment="center" height="655" width="379" class="img-thumbnail"]]2138 +[[image:SiemensLOGODeviceIP.png]] 1963 1963 1964 - 1965 1965 Enable HMI Ethernet in [Project Settings]; 1966 1966 1967 1967 (% style="text-align:center" %) ... ... @@ -1993,17 +1993,28 @@ 1993 1993 1994 1994 == **S7-XXX Ethernet** == 1995 1995 1996 -Supported Series: Siemens S7-1200 and S7-1500 2171 +Supported Series: Siemens S7-400, S7-1200 and S7-1500 1997 1997 1998 1998 **HMI Setting** 1999 1999 2000 -(% class="table-bordered" %) 2001 -|**Items**|**Settings**|**Note** 2002 -|Protocol|Siemens S7-XXX| 2003 -|Connection|Ethernet| 2004 -|Port No.|102| 2005 -|PLC station No.|1 (for S7-1500)/ 2 (for S7-1200)| 2175 +(% class="table-bordered" style="width:823px" %) 2176 +|=**Items**|=(% style="width: 437px;" %)**Settings**|=(% style="width: 201px;" %)**Note** 2177 +|Protocol|(% style="width:437px" %)Siemens S7-XXX|(% style="width:201px" %) 2178 +|Connection|(% style="width:437px" %)Ethernet|(% style="width:201px" %) 2179 +|Port No.|(% style="width:437px" %)102|(% style="width:201px" %) 2180 +|Device No.|(% style="width:437px" %)Slot (Default 1 for S7-1500/ 2 for S7-1200/ 3 for S7-400)|(% style="width:201px" %) 2181 +|HMI No.|(% style="width:437px" %)Rack (Default as 0)|(% style="width:201px" %) 2006 2006 2183 +Slot from TIA Portal is equal to Device No. of PIStudio 2184 + 2185 +Rack from TIA Portal is equal to HMI No. of PIStudio 2186 + 2187 +(% style="text-align:center" %) 2188 +[[image:S7-XXXCommunication Settings.png]] 2189 + 2190 +(% style="text-align:center" %) 2191 +[[image:S7-XXXCommunication SettingsPIStudio.png||alt="S7-XXXCommunication SettingsPI.png"]] 2192 + 2007 2007 **Address List** 2008 2008 2009 2009 (% class="table-bordered" %) ... ... @@ -2293,9 +2293,6 @@ 2293 2293 * **RS485** 2294 2294 2295 2295 (% style="text-align:center" %) 2296 -[[image:12.PLC Protocol_html_5e9a81a14106da9e.png||data-xwiki-image-style-alignment="center" height="223" width="392" class="img-thumbnail"]] 2297 - 2298 -(% style="text-align:center" %) 2299 2299 [[image:12.PLC Protocol_html_1897d92be6948d58.png||data-xwiki-image-style-alignment="center" height="223" width="393" class="img-thumbnail"]] 2300 2300 2301 2301 * **RS422** ... ... @@ -2310,6 +2310,159 @@ 2310 2310 2311 2311 [[https:~~/~~/drive.google.com/drive/folders/13rgso7oUlatZQN_SNEcJCcN4toEdDPoP?usp=sharing>>url:https://drive.google.com/drive/folders/13rgso7oUlatZQN_SNEcJCcN4toEdDPoP?usp=sharing]] 2312 2312 2496 + 2497 +== **HMI and Wecon LX5V serial communication** == 2498 + 2499 +This example introduces the establishment of serial port communication between Wecon HMI and LX5V. It is introduced through three parts: PLC software configuration, HMI software configuration, and hardware wiring. 2500 + 2501 +**Software configuration of PLC** 2502 + 2503 +**1)PLC programming software** 2504 + 2505 +[[image:image-20220810164710-1.png]] 2506 + 2507 +**2)New PLC project** 2508 + 2509 +Click New Project and select the PLC model. 2510 + 2511 +[[image:image-20220810172412-1.png]] 2512 + 2513 + 2514 +**3)Set Serial port parameters** 2515 + 2516 +Follow the steps below to configure Serial port parameters 2517 + 2518 +Baud rate:115200 2519 + 2520 +Data bit:8 2521 + 2522 +Stop bit:1 2523 + 2524 +Parity:No verification 2525 + 2526 +[[image:image-20220810165759-3.png]] 2527 + 2528 + 2529 +**4)Registers list** 2530 + 2531 +[[image:image-20220811102219-3.png]] 2532 + 2533 + 2534 +**HMI software configuration** 2535 + 2536 +**1)HMI programming software** 2537 + 2538 + [[image:image-20220810171237-4.png]] 2539 + 2540 +**2)New HMI project** 2541 + 2542 +Click New Project and select the HMI model. 2543 + 2544 +[[image:image-20220810172010-5.png]] 2545 + 2546 +**3)Set communication port parameters** 2547 + 2548 +Click the communication configuration button on the left to find the communication protocol with LX5V. After selecting the protocol, configure the communication parameters of the COM port. 2549 + 2550 +Baud rate:115200 2551 + 2552 +Data bit:8 2553 + 2554 +Stop bit:1 2555 + 2556 +Parity:No verification 2557 + 2558 + 2559 +[[image:image-20220811104012-1.png]] 2560 + 2561 + 2562 +**hardware connection** 2563 + 2564 +**1)Hardware wiring diagram** 2565 + 2566 +This example introduces WeconHMI with LX5V PLC to establish communication through serial port. The connection diagram is as follows: 2567 + 2568 +[[image:image-20220811103005-4.png]] 2569 + 2570 + 2571 +[[image:image-20220811103227-7.png]] 2572 + 2573 +The above are all the steps for establishing serial port communication between Wecon HMI with LX5V PLC. 2574 + 2575 +== **HMI and Wecon LX5V-N Ethernet communication** == 2576 + 2577 +(% id="cke_bm_147709S" style="display:none" %) (%%)This example introduces the establishment of Ethernet communication between Wecon HMI and LX5V. It is introduced through three parts: PLC software configuration, HMI software configuration, and hardware wiring. 2578 + 2579 + 2580 +**Software configuration of PLC** 2581 + 2582 +**1)PLC programming software** 2583 + 2584 +[[image:image-20220810164710-1.png]] 2585 + 2586 +**2)New PLC project** 2587 + 2588 +Click New Project and select the PLC model. 2589 + 2590 +[[image:image-20220811115454-1.png]] 2591 + 2592 + 2593 +**3)Set Ethernet port parameters** 2594 + 2595 +Follow the steps below to configure Ethernet parameters 2596 + 2597 +PLC IP address:192.168.39.200 2598 + 2599 +default gateway:192.168.39.1 2600 + 2601 +subnet mask:255.255.255.0 2602 + 2603 +[[image:image-20220811140530-2.png]] 2604 + 2605 + 2606 +**4)Registers list** 2607 + 2608 +[[image:image-20220811102219-3.png]] 2609 + 2610 + 2611 +**HMI software configuration** 2612 + 2613 +**1)HMI programming software** 2614 + 2615 + [[image:image-20220810171237-4.png]] 2616 + 2617 +**2)New HMI project** 2618 + 2619 +Click New Project and select the HMI model. 2620 + 2621 +[[image:image-20220810172010-5.png]] 2622 + 2623 +**3)Set communication port parameters** 2624 + 2625 +Click the project setting button on the left to configure the IP address of the HMI machine to ensure that the HMI and PLC IP remain in a local area network. 2626 + 2627 +HMI IP address:192.168.39.201 2628 + 2629 +default gateway:192.168.39.1 2630 + 2631 +subnet mask:255.255.255.0 2632 + 2633 +[[image:image-20220811170753-2.png]] 2634 + 2635 +Next, click Communication Settings to configure the IP of the HMI communication object. 2636 + 2637 +[[image:image-20220811163047-1.png]] 2638 + 2639 +**hardware connection** 2640 + 2641 +**1)Hardware wiring diagram** 2642 + 2643 +This example introduces WeconHMI with LX5V-N PLC to establish communication through ethernet. The connection diagram is as follows: 2644 + 2645 +[[image:image-20220811170248-1.png]] 2646 + 2647 +The above are all the steps for establishing ethernet communication between Wecon HMI with LX5V PLC. 2648 + 2313 2313 = **Printer** = 2314 2314 2315 2315 == **TSPL label printer** == ... ... @@ -2478,81 +2478,35 @@ 2478 2478 **✎Note:** COM3 only available in PI8000/PI9000 series. 2479 2479 2480 2480 2481 -= =**2 Communicationwith WeconLX5V** ==2817 += **Schneider MODBUS RTU** = 2482 2482 2483 - This example introduces the establishment of serial port communication between WeconHMIand LX5V. It is introducedthroughthree parts: PLC software configuration, HMI software configuration, and hardware wiring.2819 +**HMI Setting** 2484 2484 2821 +|=**Parameters**|=**Recommended**|=**Notes** 2822 +|**Protocol**|(% colspan="1" %)Schneider MODBUS RTU| 2823 +|Connection|RS485| 2824 +|**Baud rate**|19200| 2825 +|**Data bit**|8| 2826 +|**Parity**|Even| 2827 +|**Stop bit**|1| 2828 +|**PLC station No.**|1| 2485 2485 2486 -**S oftwareconfigurationof PLC**2830 +**PLC Setting** 2487 2487 2488 - **1)PLCprogrammingsoftware**2832 +|=(% scope="row" %)**Communication mode**|Modbus RTU protocol 2489 2489 2490 - [[image:image-20220810164710-1.png]]2834 +**Device Address** 2491 2491 2492 -**2)New PLC project** 2836 +|=**Bit/Word**|=**Device type**|=**Format**|=**Range**|=**Memo** 2837 +|B|IX|DDDDDo|0 ~~ 655357|Input bit (read only) 2838 +|B|QX|DDDDDo|0 ~~ 655357|Write multiple coils 2839 +|B|MX|DDDDDDo|0 ~~ 9999997|Output register bit (octal) 2840 +|W|MW|DDDDDD|0 ~~ 999999|Output register 2841 +|DW|MD|DDDDDD|0 ~~ 999999|Output register 2493 2493 2494 - Click New Project andselect the PLCmodel.2843 +**Wiring Diagram** 2495 2495 2496 - [[image:image-20220810172412-1.png]]2845 +**RS-485 2W **(RJ45 Connector): The following is the view from the soldering point of a connector. 2497 2497 2498 - 2499 -**3)Set Serial port parameters** 2500 - 2501 -Follow the steps below to configure Serial port parameters 2502 - 2503 -Baud rate:115200 2504 - 2505 -Data bit:8 2506 - 2507 -Stop bit:1 2508 - 2509 -Parity:No verification 2510 - 2511 -[[image:image-20220810165759-3.png]] 2512 - 2513 - 2514 -**4)Registers list** 2515 - 2516 -[[image:image-20220811102219-3.png]] 2517 - 2518 - 2519 -**HMI software configuration** 2520 - 2521 -**1)HMI programming software** 2522 - 2523 - [[image:image-20220810171237-4.png]] 2524 - 2525 -**2)New HMI project** 2526 - 2527 -Click New Project and select the HMI model. 2528 - 2529 -[[image:image-20220810172010-5.png]] 2530 - 2531 -**3)Set communication port parameters** 2532 - 2533 -Click the communication configuration button on the left to find the communication protocol with LX5V. After selecting the protocol, configure the communication parameters of the COM port. 2534 - 2535 -Baud rate:115200 2536 - 2537 -Data bit:8 2538 - 2539 -Stop bit:1 2540 - 2541 -Parity:No verification 2542 - 2543 - 2544 -[[image:image-20220811104012-1.png]] 2545 - 2546 - 2547 -**hardware connection** 2548 - 2549 -**1)Hardware wiring diagram** 2550 - 2551 -This example introduces WeconHMI with LX5V PLC to establish communication through serial port. The connection diagram is as follows: 2552 - 2553 -[[image:image-20220811103005-4.png]] 2554 - 2555 - 2556 -[[image:image-20220811103227-7.png]] 2557 - 2558 -The above are all the steps for establishing serial port communication between Wecon HMI with LX5V PLC. 2847 +(% style="text-align:center" %) 2848 +[[image:image-20220817154212-1.jpeg||height="315" width="554" class="img-thumbnail"]]
- S7-XXXCommunication Settings.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Hunter - Size
-
... ... @@ -1,0 +1,1 @@ 1 +32.6 KB - Content
- S7-XXXCommunication SettingsPI.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Hunter - Size
-
... ... @@ -1,0 +1,1 @@ 1 +24.6 KB - Content
- S7-XXXCommunication SettingsPIStudio.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Hunter - Size
-
... ... @@ -1,0 +1,1 @@ 1 +24.9 KB - Content
- SiemensLOGODeviceIP.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Hunter - Size
-
... ... @@ -1,0 +1,1 @@ 1 +24.9 KB - Content
- image-20220811115454-1.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Ben - Size
-
... ... @@ -1,0 +1,1 @@ 1 +204.7 KB - Content
- image-20220811140308-1.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Ben - Size
-
... ... @@ -1,0 +1,1 @@ 1 +122.3 KB - Content
- image-20220811140530-2.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Ben - Size
-
... ... @@ -1,0 +1,1 @@ 1 +126.0 KB - Content
- image-20220811163047-1.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Ben - Size
-
... ... @@ -1,0 +1,1 @@ 1 +165.7 KB - Content
- image-20220811163943-2.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Ben - Size
-
... ... @@ -1,0 +1,1 @@ 1 +153.6 KB - Content
- image-20220811170248-1.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Ben - Size
-
... ... @@ -1,0 +1,1 @@ 1 +91.7 KB - Content
- image-20220811170753-2.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Ben - Size
-
... ... @@ -1,0 +1,1 @@ 1 +154.4 KB - Content
- image-20220817154212-1.jpeg
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Stone - Size
-
... ... @@ -1,0 +1,1 @@ 1 +51.8 KB - Content
- image-20220819093729-1.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Stone - Size
-
... ... @@ -1,0 +1,1 @@ 1 +10.3 KB - Content
- image-20220819093729-10.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Stone - Size
-
... ... @@ -1,0 +1,1 @@ 1 +79.4 KB - Content