Changes for page 12 PLC Protocol OLD
Last modified by Mora Zhou on 2024/12/05 14:53
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 3 added, 0 removed)
Details
- Page properties
-
- 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)** == ... ... @@ -2303,9 +2303,6 @@ 2303 2303 * **RS485** 2304 2304 2305 2305 (% style="text-align:center" %) 2306 -[[image:12.PLC Protocol_html_5e9a81a14106da9e.png||data-xwiki-image-style-alignment="center" height="223" width="392" class="img-thumbnail"]] 2307 - 2308 -(% style="text-align:center" %) 2309 2309 [[image:12.PLC Protocol_html_1897d92be6948d58.png||data-xwiki-image-style-alignment="center" height="223" width="393" class="img-thumbnail"]] 2310 2310 2311 2311 * **RS422** ... ... @@ -2320,6 +2320,159 @@ 2320 2320 2321 2321 [[https:~~/~~/drive.google.com/drive/folders/13rgso7oUlatZQN_SNEcJCcN4toEdDPoP?usp=sharing>>url:https://drive.google.com/drive/folders/13rgso7oUlatZQN_SNEcJCcN4toEdDPoP?usp=sharing]] 2322 2322 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 + 2323 2323 = **Printer** = 2324 2324 2325 2325 == **TSPL label printer** == ... ... @@ -2487,174 +2487,20 @@ 2487 2487 2488 2488 **✎Note:** COM3 only available in PI8000/PI9000 series. 2489 2489 2490 -== HMI and Wecon LX5V serial communication == 2491 2491 2492 -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. 2493 - 2494 -**Software configuration of PLC** 2495 - 2496 -**1)PLC programming software** 2497 - 2498 -[[image:image-20220810164710-1.png]] 2499 - 2500 -**2)New PLC project** 2501 - 2502 -Click New Project and select the PLC model. 2503 - 2504 -[[image:image-20220810172412-1.png]] 2505 - 2506 - 2507 -**3)Set Serial port parameters** 2508 - 2509 -Follow the steps below to configure Serial port parameters 2510 - 2511 -Baud rate:115200 2512 - 2513 -Data bit:8 2514 - 2515 -Stop bit:1 2516 - 2517 -Parity:No verification 2518 - 2519 -[[image:image-20220810165759-3.png]] 2520 - 2521 - 2522 -**4)Registers list** 2523 - 2524 -[[image:image-20220811102219-3.png]] 2525 - 2526 - 2527 -**HMI software configuration** 2528 - 2529 -**1)HMI programming software** 2530 - 2531 - [[image:image-20220810171237-4.png]] 2532 - 2533 -**2)New HMI project** 2534 - 2535 -Click New Project and select the HMI model. 2536 - 2537 -[[image:image-20220810172010-5.png]] 2538 - 2539 -**3)Set communication port parameters** 2540 - 2541 -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. 2542 - 2543 -Baud rate:115200 2544 - 2545 -Data bit:8 2546 - 2547 -Stop bit:1 2548 - 2549 -Parity:No verification 2550 - 2551 - 2552 -[[image:image-20220811104012-1.png]] 2553 - 2554 - 2555 -**hardware connection** 2556 - 2557 -**1)Hardware wiring diagram** 2558 - 2559 -This example introduces WeconHMI with LX5V PLC to establish communication through serial port. The connection diagram is as follows: 2560 - 2561 -[[image:image-20220811103005-4.png]] 2562 - 2563 - 2564 -[[image:image-20220811103227-7.png]] 2565 - 2566 -The above are all the steps for establishing serial port communication between Wecon HMI with LX5V PLC. 2567 - 2568 -== HMI and Wecon LX5V-N Ethernet communication == 2569 - 2570 -(% 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. 2571 - 2572 - 2573 -**Software configuration of PLC** 2574 - 2575 -**1)PLC programming software** 2576 - 2577 -[[image:image-20220810164710-1.png]] 2578 - 2579 -**2)New PLC project** 2580 - 2581 -Click New Project and select the PLC model. 2582 - 2583 -[[image:image-20220811115454-1.png]] 2584 - 2585 - 2586 -**3)Set Ethernet port parameters** 2587 - 2588 -Follow the steps below to configure Ethernet parameters 2589 - 2590 -PLC IP address:192.168.39.200 2591 - 2592 -default gateway:192.168.39.1 2593 - 2594 -subnet mask:255.255.255.0 2595 - 2596 -[[image:image-20220811140530-2.png]] 2597 - 2598 - 2599 -**4)Registers list** 2600 - 2601 -[[image:image-20220811102219-3.png]] 2602 - 2603 - 2604 -**HMI software configuration** 2605 - 2606 -**1)HMI programming software** 2607 - 2608 - [[image:image-20220810171237-4.png]] 2609 - 2610 -**2)New HMI project** 2611 - 2612 -Click New Project and select the HMI model. 2613 - 2614 -[[image:image-20220810172010-5.png]] 2615 - 2616 -**3)Set communication port parameters** 2617 - 2618 -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. 2619 - 2620 -HMI IP address:192.168.39.201 2621 - 2622 -default gateway:192.168.39.1 2623 - 2624 -subnet mask:255.255.255.0 2625 - 2626 -[[image:image-20220811170753-2.png]] 2627 - 2628 -Next, click Communication Settings to configure the IP of the HMI communication object. 2629 - 2630 -[[image:image-20220811163047-1.png]] 2631 - 2632 -**hardware connection** 2633 - 2634 -**1)Hardware wiring diagram** 2635 - 2636 -This example introduces WeconHMI with LX5V-N PLC to establish communication through ethernet. The connection diagram is as follows: 2637 - 2638 -[[image:image-20220811170248-1.png]] 2639 - 2640 -The above are all the steps for establishing ethernet communication between Wecon HMI with LX5V PLC. 2641 - 2642 2642 = **Schneider MODBUS RTU** = 2643 2643 2644 2644 **HMI Setting** 2645 2645 2646 -|= (% scope="row" %)**Parameters**|=**Recommended**|=**Options**|=**Notes**2647 -| =**PLCtype**|(% colspan="2" %)Schneider MODBUS RTU|2648 -| =**PLCI/F**|RS485|RS232/RS485|2649 -| =**Baud rate**|19200|9600~~115200|2650 -| =**Data bits**|8|7,8|2651 -| =**Parity**|Even|Even,Odd, None|2652 -| =**Stop bits**|1|1,2|2653 -| =**PLC sta.no.**|1|0-255|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| 2654 2654 2655 -|=(% scope="row" style="width: 266px;" %)**Online simulator**|(% style="width:319px" %)YES|(% style="width:336px" %)**Broadcast command**|(% style="width:155px" %)YES 2656 -|=(% style="width: 266px;" %)**Extend address mode**|(% style="width:319px" %)YES|(% style="width:336px" %) |(% style="width:155px" %) 2657 - 2658 2658 **PLC Setting** 2659 2659 2660 2660 |=(% scope="row" %)**Communication mode**|Modbus RTU protocol ... ... @@ -2661,20 +2661,12 @@ 2661 2661 2662 2662 **Device Address** 2663 2663 2664 -|=(% scope="row" %)**Bit/Word**|=**Device type**|=**Format**|=**Range**|=**Memo** 2665 -|=B|%IX|DDDDDo|0 ~~ 655357|Input bit (read only) 2666 -|=B|%QX|DDDDDo|0 ~~ 655357|Write multiple coils 2667 -|=B|%MX|DDDDDDo|0 ~~ 9999997|Output register bit (octal) 2668 -|=B|%M|DDDDD|0 ~~ 65535|Output bit 2669 -|=B|%MW_Bit|DDDDDdd|0 ~~ 6553515|Output register bit (decimal) 2670 -|=B|1x|DDDDD|0 ~~ 65535|Input bit (read only) 2671 -|=B|0x_multi_coils|DDDDD|0 ~~ 65535|Write multiple coils 2672 -|=B|3x_Bit|DDDDDdd|0 ~~ 6553515|Input register bit (read only) 2673 -|=W|%MW|DDDDDD|0 ~~ 999999|Output register 2674 -|=DW|%MD|DDDDDD|0 ~~ 999999|Output register 2675 -|=W|3x|DDDDD|0 ~~ 65535|Input Register (read only) 2676 -|=DW|5x|DDDDD|0 ~~ 65535|4x double word swap 2677 -|=DW|6x|DDDDD|0 ~~ 65535|4x single word write 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 2678 2678 2679 2679 **Wiring Diagram** 2680 2680
- 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
- image-20220819101447-3.jpeg
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Stone - Size
-
... ... @@ -1,0 +1,1 @@ 1 +56.6 KB - Content