Changes for page 12 PLC Protocol OLD

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

From version 38.1
edited by Stone Wu
on 2022/08/22 11:26
Change comment: There is no comment for this version
To version 35.1
edited by Ben
on 2022/08/19 11:22
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Stone
1 +XWiki.Ben
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**
... ... @@ -2494,7 +2494,7 @@
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 2496  
2497 -== **HMI and Wecon LX5V serial communication** ==
2324 +== HMI and Wecon LX5V serial communication ==
2498 2498  
2499 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 2500  
... ... @@ -2572,8 +2572,11 @@
2572 2572  
2573 2573  The above are all the steps for establishing serial port communication between Wecon HMI with LX5V PLC.
2574 2574  
2575 -== **HMI and Wecon LX5V-N Ethernet communication** ==
2402 +(% class="wikigeneratedid" %)
2403 +== ==
2576 2576  
2405 +== HMI and Wecon LX5V-N Ethernet communication ==
2406 +
2577 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 2578  
2579 2579