Changes for page 12 PLC Protocol OLD
Last modified by Mora Zhou on 2024/12/05 14:53
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 3 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Stone1 +XWiki.Hunter - Content
-
... ... @@ -85,182 +85,6 @@ 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 - 264 264 = **Allen-Bradley** = 265 265 266 266 == **FreeTag Ethernet/IP (CompactLogix)** == ... ... @@ -2072,7 +2072,7 @@ 2072 2072 2073 2073 == **LOGO Ethernet** == 2074 2074 2075 -Supported Series: Siemens Logo 0BA0 series1899 +Supported Series: Siemens Logo 2076 2076 2077 2077 **HMI Settings** 2078 2078 ... ... @@ -2135,8 +2135,9 @@ 2135 2135 Set PLC IP in [Device IP] settings; 2136 2136 2137 2137 (% style="text-align:center" %) 2138 -[[image: SiemensLOGODeviceIP.png]]1962 +[[image:12.PLC Protocol_html_573fc64ad393cd4f.png||data-xwiki-image-style-alignment="center" height="655" width="379" class="img-thumbnail"]] 2139 2139 1964 + 2140 2140 Enable HMI Ethernet in [Project Settings]; 2141 2141 2142 2142 (% style="text-align:center" %) ... ... @@ -2188,7 +2188,7 @@ 2188 2188 [[image:S7-XXXCommunication Settings.png]] 2189 2189 2190 2190 (% style="text-align:center" %) 2191 -[[image:S7-XXXCommunication SettingsPI Studio.png||alt="S7-XXXCommunication SettingsPI.png"]]2016 +[[image:S7-XXXCommunication SettingsPI.png]] 2192 2192 2193 2193 **Address List** 2194 2194 ... ... @@ -2479,6 +2479,9 @@ 2479 2479 * **RS485** 2480 2480 2481 2481 (% style="text-align:center" %) 2307 +[[image:12.PLC Protocol_html_5e9a81a14106da9e.png||data-xwiki-image-style-alignment="center" height="223" width="392" class="img-thumbnail"]] 2308 + 2309 +(% style="text-align:center" %) 2482 2482 [[image:12.PLC Protocol_html_1897d92be6948d58.png||data-xwiki-image-style-alignment="center" height="223" width="393" class="img-thumbnail"]] 2483 2483 2484 2484 * **RS422** ... ... @@ -2493,159 +2493,6 @@ 2493 2493 2494 2494 [[https:~~/~~/drive.google.com/drive/folders/13rgso7oUlatZQN_SNEcJCcN4toEdDPoP?usp=sharing>>url:https://drive.google.com/drive/folders/13rgso7oUlatZQN_SNEcJCcN4toEdDPoP?usp=sharing]] 2495 2495 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 - 2649 2649 = **Printer** = 2650 2650 2651 2651 == **TSPL label printer** == ... ... @@ -2814,35 +2814,155 @@ 2814 2814 **✎Note:** COM3 only available in PI8000/PI9000 series. 2815 2815 2816 2816 2817 -= ** SchneiderMODBUSRTU** =2492 +== **1. HMI and Wecon LX5V serial communication** == 2818 2818 2819 - **HMISetting**2494 +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. 2820 2820 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| 2829 2829 2830 -** PLCSetting**2497 +**Software configuration of PLC** 2831 2831 2832 - |=(%scope="row" %)**Communicationmode**|Modbus RTU protocol2499 +**1)PLC programming software** 2833 2833 2834 - **DeviceAddress**2501 +[[image:image-20220810164710-1.png]] 2835 2835 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 2503 +**2)New PLC project** 2842 2842 2843 - **WiringDiagram**2505 +Click New Project and select the PLC model. 2844 2844 2845 - **RS-485 2W **(RJ45 Connector): The followingis theview fromthe soldering point ofaconnector.2507 +[[image:image-20220810172412-1.png]] 2846 2846 2847 -(% style="text-align:center" %) 2848 -[[image:image-20220817154212-1.jpeg||height="315" width="554" class="img-thumbnail"]] 2509 + 2510 +**3)Set Serial port parameters** 2511 + 2512 +Follow the steps below to configure Serial port parameters 2513 + 2514 +Baud rate:115200 2515 + 2516 +Data bit:8 2517 + 2518 +Stop bit:1 2519 + 2520 +Parity:No verification 2521 + 2522 +[[image:image-20220810165759-3.png]] 2523 + 2524 + 2525 +**4)Registers list** 2526 + 2527 +[[image:image-20220811102219-3.png]] 2528 + 2529 + 2530 +**HMI software configuration** 2531 + 2532 +**1)HMI programming software** 2533 + 2534 + [[image:image-20220810171237-4.png]] 2535 + 2536 +**2)New HMI project** 2537 + 2538 +Click New Project and select the HMI model. 2539 + 2540 +[[image:image-20220810172010-5.png]] 2541 + 2542 +**3)Set communication port parameters** 2543 + 2544 +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. 2545 + 2546 +Baud rate:115200 2547 + 2548 +Data bit:8 2549 + 2550 +Stop bit:1 2551 + 2552 +Parity:No verification 2553 + 2554 + 2555 +[[image:image-20220811104012-1.png]] 2556 + 2557 + 2558 +**hardware connection** 2559 + 2560 +**1)Hardware wiring diagram** 2561 + 2562 +This example introduces WeconHMI with LX5V PLC to establish communication through serial port. The connection diagram is as follows: 2563 + 2564 +[[image:image-20220811103005-4.png]] 2565 + 2566 + 2567 +[[image:image-20220811103227-7.png]] 2568 + 2569 +The above are all the steps for establishing serial port communication between Wecon HMI with LX5V PLC. 2570 + 2571 +== **2. HMI and Wecon LX5V-N Ethernet communication** == 2572 + 2573 +(% 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. 2574 + 2575 + 2576 +**Software configuration of PLC** 2577 + 2578 +**1)PLC programming software** 2579 + 2580 +[[image:image-20220810164710-1.png]] 2581 + 2582 +**2)New PLC project** 2583 + 2584 +Click New Project and select the PLC model. 2585 + 2586 +[[image:image-20220811115454-1.png]] 2587 + 2588 + 2589 +**3)Set Ethernet port parameters** 2590 + 2591 +Follow the steps below to configure Ethernet parameters 2592 + 2593 +PLC IP address:192.168.39.200 2594 + 2595 +default gateway:192.168.39.1 2596 + 2597 +subnet mask:255.255.255.0 2598 + 2599 +[[image:image-20220811140530-2.png]] 2600 + 2601 + 2602 +**4)Registers list** 2603 + 2604 +[[image:image-20220811102219-3.png]] 2605 + 2606 + 2607 +**HMI software configuration** 2608 + 2609 +**1)HMI programming software** 2610 + 2611 + [[image:image-20220810171237-4.png]] 2612 + 2613 +**2)New HMI project** 2614 + 2615 +Click New Project and select the HMI model. 2616 + 2617 +[[image:image-20220810172010-5.png]] 2618 + 2619 +**3)Set communication port parameters** 2620 + 2621 +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. 2622 + 2623 +HMI IP address:192.168.39.201 2624 + 2625 +default gateway:192.168.39.1 2626 + 2627 +subnet mask:255.255.255.0 2628 + 2629 +[[image:image-20220811170753-2.png]] 2630 + 2631 +Next, click Communication Settings to configure the IP of the HMI communication object. 2632 + 2633 +[[image:image-20220811163047-1.png]] 2634 + 2635 +**hardware connection** 2636 + 2637 +**1)Hardware wiring diagram** 2638 + 2639 +This example introduces WeconHMI with LX5V-N PLC to establish communication through ethernet. The connection diagram is as follows: 2640 + 2641 +[[image:image-20220811170248-1.png]] 2642 + 2643 +The above are all the steps for establishing ethernet communication between Wecon HMI with LX5V PLC.
- S7-XXXCommunication SettingsPIStudio.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Hunter - Size
-
... ... @@ -1,1 +1,0 @@ 1 -24.9 KB - Content
- SiemensLOGODeviceIP.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Hunter - Size
-
... ... @@ -1,1 +1,0 @@ 1 -24.9 KB - Content
- image-20220817154212-1.jpeg
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Stone - Size
-
... ... @@ -1,1 +1,0 @@ 1 -51.8 KB - Content