Changes for page 12 PLC Protocol OLD

Last modified by Mora Zhou on 2024/12/05 14:53

From version 41.1
edited by Stone Wu
on 2022/08/22 11:29
Change comment: Attachment moved from xwiki:PIStudio.2\.Installation Software.WebHome.
To version 26.1
edited by Stone Wu
on 2022/08/17 15:39
Change comment: There is no comment for this version

Summary

Details

Page properties
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)** ==
... ... @@ -2479,6 +2479,9 @@
2479 2479  * **RS485**
2480 2480  
2481 2481  (% 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" %)
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** ==
... ... @@ -2813,36 +2813,156 @@
2813 2813  
2814 2814  **✎Note:** COM3 only available in PI8000/PI9000 series.
2815 2815  
2490 +== HMI and Wecon LX5V serial communication ==
2816 2816  
2817 -= **Schneider MODBUS RTU** =
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.
2818 2818  
2819 -**HMI Setting**
2494 +**Software configuration of PLC**
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|
2496 +**1)PLC programming software**
2829 2829  
2830 -**PLC Setting**
2498 +[[image:image-20220810164710-1.png]]
2831 2831  
2832 -|=(% scope="row" %)**Communication mode**|Modbus RTU protocol
2500 +**2)New PLC project**
2833 2833  
2834 -**Device Address**
2502 +Click New Project and select the PLC model.
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
2504 +[[image:image-20220810172412-1.png]]
2842 2842  
2843 -**Wiring Diagram**
2844 2844  
2845 -**RS-485 2W **(RJ45 Connector): The following is the view from the soldering point of a connector.
2507 +**3)Set Serial port parameters**
2846 2846  
2847 -(% style="text-align:center" %)
2848 -[[image:image-20220817154212-1.jpeg||height="315" width="554" class="img-thumbnail"]]
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 += **Schneider MODBUS RTU** =
image-20220817154212-1.jpeg
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Stone
Size
... ... @@ -1,1 +1,0 @@
1 -51.8 KB
Content
image-20220819093729-1.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Stone
Size
... ... @@ -1,1 +1,0 @@
1 -10.3 KB
Content
image-20220819093729-10.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Stone
Size
... ... @@ -1,1 +1,0 @@
1 -79.4 KB
Content
image-20220819101447-3.jpeg
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Stone
Size
... ... @@ -1,1 +1,0 @@
1 -56.6 KB
Content