Changes for page 12 PLC Protocol OLD

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

From version 79.1
edited by Ben
on 2022/08/29 14:20
Change comment: There is no comment for this version
To version 33.1
edited by Stone Wu
on 2022/08/17 15:58
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Ben
1 +XWiki.Stone
Content
... ... @@ -85,517 +85,411 @@
85 85  
86 86  Click [OK] button to save settings and close the dialog;
87 87  
88 -= Create communication with WECON PLC =
88 += **Allen-Bradley** =
89 89  
90 -== **LX3V Serial Protocol** ==
90 +== **FreeTag Ethernet/IP (CompactLogix)** ==
91 91  
92 -Supported series: WECON LX2V/ LX2E/ LX3V/LX3VP/LX3VE/LX3VM
92 +Allen-Brandly CompactLogix
93 93  
94 94  **HMI Settings**
95 95  
96 96  (% class="table-bordered" %)
97 -|**Item**|**Settings**|**Note**
98 -|Protocol|WECON LX2V/ LX2E/ LX3V/LX3VP/LX3VE/LX3VM|
99 -|Connection|RS422/RS485|
100 -|Baud rate|9600|
101 -|Data bit|7|
102 -|Parity|EVEN|
103 -|Stop bit|1|
104 -|PLC station No.|1|
97 +|**Items**|**Settings**|**Note**
98 +|Protocol|Allen-Brandley FreeTag Ethernet/IP (CompactLogix)|
99 +|Connection|Ethernet|
100 +|Port No.|44818|
105 105  
106 -**Address List**
102 +**PLC Setting**
107 107  
108 -(% class="table-bordered" %)
109 -|**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
110 -|(% rowspan="6" %)Bit|X|X|Xo|0~~303237|
111 -|Y|Y|Y o|0~~303237|
112 -|M|M|M d|0~~99999|
113 -|T|T|T d|0~~99999|
114 -|C|C|C d|0~~99999|
115 -|S|S|S d|0~~99999|
116 -|(% rowspan="8" %)Word|X|X|Xo|0~~303237|
117 -|Y|Y|Y o|0~~303237|
118 -|M|M|M d|0~~99999|
119 -|T|T|T d|0~~99999|
120 -|C|C|C d|0~~199|
121 -|D|D|D d|0~~7999|
122 -|S|S|S d|0~~99999|
123 -|SD|SD|SD d|8000~~9999|
104 +Create new tags
124 124  
125 -**Cable Wiring**
126 -
127 -* **RS485**
128 -
129 129  (% style="text-align:center" %)
130 -[[image:12.PLC Protocol_html_1897d92be6948d58.png||data-xwiki-image-style-alignment="center" height="223" width="393" class="img-thumbnail"]]
107 +[[image:12.PLC Protocol_html_a748a27dcf7f1124.png||data-xwiki-image-style-alignment="center" height="411" width="700" class="img-thumbnail"]]
131 131  
132 -* **RS422**
109 +Export tags to CSV file. ([Tools] » [Export] » [Tags and Logic Comments])
133 133  
134 134  (% style="text-align:center" %)
135 -[[image:12.PLC Protocol_html_5c7fca9a70da2ee8.png||data-xwiki-image-style-alignment="center" height="247" width="389" class="img-thumbnail"]]
112 +[[image:12.PLC Protocol_html_151379170bb8ff3e.png||data-xwiki-image-style-alignment="center" height="352" width="700" class="img-thumbnail"]]
136 136  
137 -**✎Note:**
114 +Import labels, please open [Communication] window and click [Import label];
138 138  
139 -* HMI COM3 is available in PI8000 series and COM3 is in COM2(hardware PIN 7 and PIN 8) .
140 -* If PLC <= 20 points,such as LX3V-1208/LX3V-0806 PLC,PLC RS485A and RS485B mean PLC COM2 RS485+ and RS485- .PLC COM2 can support modbus. Please refer to PLC COM2 setting manual.
116 +Select csv file, all tags will be displayed as belows;
141 141  
142 -[[https:~~/~~/drive.google.com/drive/folders/13rgso7oUlatZQN_SNEcJCcN4toEdDPoP?usp=sharing>>url:https://drive.google.com/drive/folders/13rgso7oUlatZQN_SNEcJCcN4toEdDPoP?usp=sharing]]
143 -
144 -(% class="wikigeneratedid" id="HHMIsettings" %)
145 -**HMI settings**
146 -
147 -**Download PIStudio Software**
148 -
149 -Please visit the link below to get the latest version PIstudio for HMI programming:
150 -
151 -* [[Download link>>doc:PIStudio.Download.3 Software.WebHome]]
152 -
153 -**Create a new HMI project connect with PLC**
154 -
155 -Check the link below for the video to show you how to get started with a new project
156 -
157 -* [[Video>>https://youtu.be/0FpmDZe_8U8]]
158 -
159 -For more videos, please visit our Youtube channel: [[http:~~/~~/www.youtube.com/user/Wecon2004/videos>>url:http://www.youtube.com/user/Wecon2004/videos]]
160 -
161 -**General**
162 -
163 -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.
164 -
165 -**Protocol settings**
166 -
167 -The communication between two devices requires a protocol. The following contents show the steps of protocol settings.
168 -
169 -Please select the protocol, when creating a new project.
170 -
171 -1. Select the COM port for communication;
172 -1. PLC type: It means PLC brand, like WECON;
173 -1. PLC model: It shows the model of PLC, such as LX3V;
174 -
175 175  (% style="text-align:center" %)
176 -[[image:image-20220819093729-1.png]]
119 +[[image:12.PLC Protocol_html_af192e54dee96f38.png||data-xwiki-image-style-alignment="center" height="586" width="700" class="img-thumbnail"]]
177 177  
178 -If you want to change the protocol for existing project, please click [Program] → [Communication] to open the [Communication] windows, shown as the following figure.
121 +**✎Note:**
179 179  
180 -(% style="text-align:center" %)
181 -[[image:image-20220819093729-2.png]]
123 +Because in different region, the separation symbol is different, we suggest you check this before you want to import your tags. To open csv file as text format.
182 182  
183 -
184 -The steps to change the protocol for project are as follows.
185 -
186 -1. Click [Setting] to open the [Communication device] window;
187 -1. Select communication port, such as COM1;
188 -1. Select Serial port for communication, such as RS422;
189 -1. Select device type (device brand), such as WECON;
190 -1. Select the protocol for communication, such as WECON LX3V;
191 -
192 192  (% style="text-align:center" %)
193 -[[image:image-20220819093729-3.png]]
126 +[[image:12.PLC Protocol_html_33df1d63ebe53726.png||data-xwiki-image-style-alignment="center" height="206" width="700" class="img-thumbnail"]]
194 194  
195 -**Parameter settings**
128 +The directory of changing system settings: [Control Panel] -> [Date, Time, Language,and Regional Options] -> [Change the format of numbers, dates, and times]->[Customize]-> [List separator]. Please select [,] and export CSV file after setting.
196 196  
197 -The parameters settings are in [Communication] window, shown as following below.
130 +**Communication settings in HMI**
198 198  
199 -1. Click [Setting] to open the [COM port setting] window;
200 -1. Set the parameters such as [connection], [Baud rate] and so on;
132 +Enable HMI Ethernet in [Project Settings];
201 201  
202 202  (% style="text-align:center" %)
203 -[[image:image-20220819093729-4.png||height="636" width="818"]]
135 +[[image:12.PLC Protocol_html_43b671f18153910d.png||data-xwiki-image-style-alignment="center" height="106" width="400" class="img-thumbnail"]]
204 204  
205 -(% start="3" %)
206 -1. Click [Setting] to open [Timeout] setting window, you could set the parameters according your requirements, or just use the default value.
137 +Set PLC IP in [Device IP] settings;
207 207  
208 208  (% style="text-align:center" %)
209 -[[image:image-20220819093729-5.png]]
140 +[[image:12.PLC Protocol_html_27870d373581892e.png||data-xwiki-image-style-alignment="center" height="206" width="600" class="img-thumbnail"]]
210 210  
211 -**Set PLC address in HMI screen**
142 +**Cable Wiring**
212 212  
213 -1. Place the objects to HMI screen;
214 -1. Double-click the object to open the setting window;
215 -1. Click “Edit” to open the address setting windows;
216 -1. Connection: select the serial port in HMI;
217 -1. Address type: All the PLC address types will be display in this list, such as M;
218 -1. Address No.: Please input the number of this address, such as 0;
219 -
220 -[[image:image-20220819093729-6.jpeg]]
221 -
222 -**Communication cable**
223 -
224 -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.
225 -
226 226  (% style="text-align:center" %)
227 -[[image:image-20220819093729-7.png]]
145 +[[image:12.PLC Protocol_html_2297240b57346b2a.png||data-xwiki-image-style-alignment="center" height="170" width="400" class="img-thumbnail"]]
228 228  
229 -**HMI communication PLC use Modbus **
147 +== **MicroLogix** ==
230 230  
231 -* 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/]]
232 -* 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/]]
149 +MicroLogix 1000/1100/1200/1400/1500; SLC 5/03 5/04 5/05 PLC-5
233 233  
234 -(% class="wikigeneratedid" id="HPLCsettings" %)
235 -**PLC settings**
151 +**HMI Settings**
236 236  
237 -**Download PLC Software**
153 +(% class="table-bordered" %)
154 +|**Item**|**Settings**|**Note**
155 +|Protocol|Allen-Bradlley MicroLogix|
156 +|Connection|RS232|
157 +|Baud rate|19200|
158 +|Data bit|8|
159 +|Parity|None|
160 +|Stop bit|1|
161 +|PLC station No.|1|
238 238  
239 -Please visit below link to get the latest version PLC Editor for HMI programming
163 +**Address List**
240 240  
241 -* LX3V:[[Download link>>doc:PLC Editor.10 Hardware .Software.WebHome]]
242 -* LX5V:[[Download link>>doc:PLC Editor2.Download.03 Software.WebHome]]
165 +(% class="table-bordered" %)
166 +|**Type**|**Device registers**|**Format**|**Range**|**Note**
167 +|(% rowspan="5" %)Bit|I|I d.d|0.0~~255.15|
168 +|O|O d.d|0.0~~255.15|
169 +|B|B nnhh.dd|0.0~~ffff.15|nn: block number (hex)
170 +|S|S d.d|0.0~~255.15|
171 +|N|N nnhh.dd|0.0~~ffff.15|nn: block number (hex)
172 +|(% rowspan="9" %)Word|S|S d|0~~255|
173 +|TS|TS nnhh|0~~ffff|(% rowspan="8" %)nn: block number (hex)
174 +|TP|TP nnhh|0~~ffff
175 +|CS|CS nnhh|0~~ffff
176 +|CP|CP nnhh|0~~ffff
177 +|N|N nnhh|0~~ffff
178 +|C|C nnhh|0~~ffff
179 +|T|T nnhh|0~~ffff
180 +|R|R nnhh|0~~ffff
243 243  
244 -**Start a new PLC project**
182 +**Cable Wiring**
245 245  
246 -Start a new PLC project by clicking “New” on the left top corner of screen, select the PLC mode from the drop-down list.
247 -
248 248  (% style="text-align:center" %)
249 -[[image:image-20220819101447-3.jpeg]]
185 +[[image:12.PLC Protocol_html_58205bdf82c06d4.png||data-xwiki-image-style-alignment="center" height="307" width="500" class="img-thumbnail"]]
250 250  
187 +== **AB PLC address edit** ==
251 251  
189 +The operational address is determined by the connection of Allen-Bradley PLC to HMI. For extension modules or other special conditions, refer to allen-Bradley PLC instruction manual. The following is an example of allen-bradley MicroLogix1200.
252 252  
253 -**Add a new instruction **
191 +* **Bit address I:** The address ranges from 0.0 to 255.15. The value of the data before the decimal point ranges from 0 to 255 (decimal). The value from 0 to 15 after the decimal point is the sub address (decimal).
192 +* **Bit address B:** The address ranges from 000.0 to fff.15. The first f from left to right represents the block number (hexadecimal); The second and third f from left to right represent the word address (hexadecimal). The value 0 to 15 after the decimal point reprensents the sub address (decimal).
193 +* **Word address S:** The word address ranges from 0 to 255 (decimal).
194 +* **Word address TS:** The address ranges from 000.0 to ffff. The first and second f from left to right represents the block number (hexadecimal); The third and fourth f from left to right represent the word address (hexadecimal).
254 254  
255 -Double click on the ladder, select the ladder symbol (instruction) from the drop-down list, then enter the address for this symbol.
196 +**✎Note: **Register address TP, CS, CP, N, F and TS address edit tare he same. D indicates decimal, and F indicates hexadecimal. Different PLC models may support different registers. See the following table.
256 256  
257 -(% style="text-align:center" %)
258 -[[image:image-20220819105530-1.png]]
198 +|(% style="width:393px" %)**PLC bit address type**|(% style="width:350px" %)**Address format**|(% style="width:333px" %)**Address range**
199 +|(% style="width:393px" %)I|(% style="width:350px" %)dd.dd|(% style="width:333px" %)I 0.0 ~~ 255.15
200 +|(% style="width:393px" %)O|(% style="width:350px" %)dd.dd|(% style="width:333px" %)O 0.0 ~~ 255.15
201 +|(% style="width:393px" %)B|(% style="width:350px" %)fff.dd|(% style="width:333px" %)B 000.0 ~~ fff.15
202 +|(% style="width:393px" %)S|(% style="width:350px" %)dd.dd|(% style="width:333px" %)S 0.0 ~~ 255.15
203 +|(% style="width:393px" %)N|(% style="width:350px" %)ffff.dd|(% style="width:333px" %)N 000.0 ~~ fff.15
204 +|(% style="width:393px" %)**PLC word address type**|(% style="width:350px" %)**Address format**|(% style="width:333px" %)**Address range**
205 +|(% style="width:393px" %)S|(% style="width:350px" %)ddd|(% style="width:333px" %)S0 ~~ 255
206 +|(% style="width:393px" %)TS|(% style="width:350px" %)ffff|(% style="width:333px" %)TS0 ~~ FFFF
207 +|(% style="width:393px" %)TP|(% style="width:350px" %)ffff|(% style="width:333px" %)TP0 ~~ FFFF
208 +|(% style="width:393px" %)CS|(% style="width:350px" %)ffff|(% style="width:333px" %)CS0 ~~ FFFF
209 +|(% style="width:393px" %)CP|(% style="width:350px" %)ffff|(% style="width:333px" %)CP0 ~~ FFFF
210 +|(% style="width:393px" %)N|(% style="width:350px" %)ffff|(% style="width:333px" %)N0 ~~ FFFF
211 +|(% style="width:393px" %)F|(% style="width:350px" %)ffff|(% style="width:333px" %)F0 ~~ FFFF
259 259  
260 -You could also select the ladder symbol from the menu bar directly.
213 += **Barcode Scanner** =
261 261  
262 -[[image:image-20220819093729-11.png]]
215 +Supported: DELI 14880 barcode scanner
263 263  
264 -[[image:image-20220819093729-12.png]]
217 +**HMI Setting**
265 265  
266 -**Add comment to PLC program**
219 +(% class="table-bordered" %)
220 +|**Items**|**Settings**|**Note**
221 +|Protocol|Barcode Scanner|
222 +|Connection|USB|
267 267  
268 -(% style="text-align:center" %)
269 -[[image:image-20220819105630-3.png]]
224 +**Operating Procedures**
270 270  
271 -**Add the statement to PLC program**
226 +Select [Barcode Scanner];
272 272  
273 -Add the statement by single click on “Statement”, when finished, single click on “Statement” again to go back to Ladder edit.
274 -
275 275  (% style="text-align:center" %)
276 -[[image:image-20220819105644-4.png]]
229 +[[image:12.PLC Protocol_html_55a3056357320966.png||data-xwiki-image-style-alignment="center" height="266" width="600" class="img-thumbnail"]]
277 277  
278 -**Compile **
231 +Set address for receiving;
279 279  
280 -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.
233 +Set correct length;
281 281  
282 -[[image:image-20220819093729-15.png]]
283 -
284 -**Download setting **
285 -
286 -Click on “Transfer Setup” to select download mode.
287 -
288 -[[image:image-20220820150853-1.png]]**Download PLC program to PLC**
289 -
290 -Quick select the parameters and main program of PLC program, then download to PLC, “Yes”-”Yes”-”OK”
291 -
292 -[[image:image-20220819093729-17.png]]
293 -
294 -**Upload PLC program from PLC**
295 -
296 -Read the PLC program from PLC to computer.
297 -
298 -[[image:image-20220819093729-18.png]]
299 -
300 -**Device monitor**
301 -
302 -Monitor the value of certain address in PLC, double click “Current value” to change the value in this address.
303 -
304 -[[image:image-20220819093730-19.png]]
305 -
306 -**Online monitor**
307 -
308 -Monitor the each address in PLC by online monitor. Changing the state or value in PLC is also allowd.
309 -
310 -[[image:image-20220819093730-20.png]]
311 -
312 -**Monitor edit**
313 -
314 -In this mode, you could edit the PLC program during PLC is running. 
315 -
316 -
317 317  (% style="text-align:center" %)
318 -[[image:image-20220819105928-9.png||height="229" width="669"]]
236 +[[image:12.PLC Protocol_html_30a4c9e9dd4db40b.png||data-xwiki-image-style-alignment="center" height="701" width="500" class="img-thumbnail"]]
319 319  
320 -== **LX5V Serial Protocol** ==
238 +**✎Note:**
321 321  
322 -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.
240 +* The protocol uploads the information acquired by the USB scanner to the HMI;
241 +* The acquired information is displayed in string mode, so it is necessary to use [characters input/display] object;
242 +* Recommended model: DELI 14880 barcode scanner;
323 323  
324 -**Software configuration of PLC**
244 += **Hitachi EHV Series (Ethernet)** =
325 325  
326 -**1)PLC programming software**
246 +Supported series: Hitachi EHV series
327 327  
328 -[[image:image-20220810164710-1.png]]
248 +**HMI Settings**
329 329  
330 -**2)New PLC project**
250 +(% class="table-bordered" %)
251 +|**Items**|**Settings**|**Note**
252 +|Protocol|Hitachi EHV series|
253 +|Connection|Ethernet|
254 +|Port No.|3004~~3007|
331 331  
332 -Click New Project and select the PLC model.
256 +**Address List**
333 333  
334 -[[image:image-20220810172412-1.png]]
258 +(% class="table-bordered" %)
259 +|**Type**|**Register**|**Range**|**Format**|**Note**
260 +|(% rowspan="6" %)Bit|T|0 - 2545|T DDDD|
261 +|M|0 - 7FFF.f (Hex)|M HHHH.h|
262 +|X|0 – FFFF.f (Hex)|X H1H2H3H4.h|(% rowspan="2" %)(((
263 +H1H2H3H4 Module main number
335 335  
265 +H1: Remote number
336 336  
337 -**3)Set Serial port parameters**
267 +H2: Unit number
338 338  
339 -Follow the steps below to configure Serial port parameters
269 +H3: Slot number
340 340  
341 -Baud rate:115200
271 +H4: Word number of Module
342 342  
343 -Data bit:8
273 +H Sub number of Module
344 344  
345 -Stop bit:1
275 +For example:X21.3
346 346  
347 -Parity:No verification
277 +Slot number 2
348 348  
349 -[[image:image-20220810165759-3.png]]
279 +Word number of module is 1
350 350  
281 +Bit number of module is 3
351 351  
352 -**4)Registers list**
283 +Remote number and unit number are 0
284 +)))
285 +|Y|0 – FFFF.f (Hex)|Y H1H2H3H4.h
286 +|R|0 – FF.f (Hex)|R HH.h|
287 +|L|0 - 73FF.f (Hex)|L HHHH.h|
288 +|(% rowspan="6" %)Word|WM|0 - 7FFF (Hex)|WM HHHH|
289 +|WX|0 – FFFF (Hex)|WX H1H2H3H4|(% rowspan="2" %)(((
290 +H1H2H3H4 Module main number
353 353  
354 -[[image:image-20220811102219-3.png]]
292 +H1: Remote number
355 355  
294 +H2: Unit number
356 356  
357 -**HMI software configuration**
296 +H3: Slot number
358 358  
359 -**1)HMI programming software**
298 +H4: Word number of module
360 360  
361 - [[image:image-20220810171237-4.png]]
300 +For example:WX21
362 362  
363 -**2)New HMI project**
302 +Word number of module is 1
364 364  
365 -Click New Project and select the HMI model.
304 +Slot number is 2
366 366  
367 -[[image:image-20220810172010-5.png]]
306 +Remote number and unit number are 0
307 +)))
308 +|WY|0 – FFFF (Hex)|WY H1H2H3H4
309 +|WR|0 – FFFF (Hex)|WR HHHH|
310 +|WL|0 - 73FF (Hex)|WL HHHH|
311 +|TC|0 - 2559|TC DDDD|
368 368  
369 -**3)Set communication port parameters**
313 +**Communication settings in HMI**
370 370  
371 -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.
315 +Enable HMI Ethernet in [Project Settings];
372 372  
373 -Baud rate:115200
317 +(% style="text-align:center" %)
318 +[[image:12.PLC Protocol_html_43b671f18153910d.png||data-xwiki-image-style-alignment="center" height="107" width="405" class="img-thumbnail"]]
374 374  
375 -Data bit:8
320 +Set PLC IP in [Device IP] settings;
376 376  
377 -Stop bit:1
322 +(% style="text-align:center" %)
323 +[[image:12.PLC Protocol_html_d825387f5bde6cdd.png||data-xwiki-image-style-alignment="center" height="190" width="554" class="img-thumbnail"]]
378 378  
379 -Parity:No verification
325 +**PLC Configuration**
380 380  
327 +Connect with PLC, select[Online mode];
381 381  
382 -[[image:image-20220811104012-1.png]]
329 +(% style="text-align:center" %)
330 +[[image:12.PLC Protocol_html_8430dda44e5c199c.png||data-xwiki-image-style-alignment="center" height="420" width="600" class="img-thumbnail"]]
383 383  
332 +Set IP address, it is the same LAN parameters with HMI;
384 384  
385 -**hardware connection**
334 +(% style="text-align:center" %)
335 +[[image:12.PLC Protocol_html_1d8a634f64e25fc3.png||data-xwiki-image-style-alignment="center" height="252" width="347" class="img-thumbnail"]]
386 386  
387 -**1)Hardware wiring diagram**
337 +3) Save PLC communication parameter, and restart PLC
388 388  
389 -This example introduces WeconHMI with LX5V PLC to establish communication through serial port. The connection diagram is as follows:
339 +**PLC Monitor Mode**
390 390  
391 -[[image:image-20220811103005-4.png]]
341 +Connect with PLC and choose to “online” mode
392 392  
343 +(% style="text-align:center" %)
344 +[[image:12.PLC Protocol_html_cdac598e770e3b67.png||data-xwiki-image-style-alignment="center" height="193" width="553" class="img-thumbnail"]]
393 393  
394 -[[image:image-20220811103227-7.png]]
346 +Open I/O monitor sheet1
395 395  
396 -The above are all the steps for establishing serial port communication between Wecon HMI with LX5V PLC.
348 +(% style="text-align:center" %)
349 +[[image:12.PLC Protocol_html_68eb3518e5f80892.png||data-xwiki-image-style-alignment="center" height="369" width="559" class="img-thumbnail"]]
397 397  
398 -== **LX5V-N Ethernet protocol** ==
351 +During monitoring bit address,1 pts should be selected; during monitoring word address, 16 pts should be selected
399 399  
400 -(% 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.
353 +(% style="text-align:center" %)
354 +[[image:12.PLC Protocol_html_774652d8daf548d4.png||data-xwiki-image-style-alignment="center" height="118" width="102" class="img-thumbnail"]]
401 401  
402 -**Software configuration of PLC**
356 +Enter the register address, click OK to view the value of the register.
403 403  
404 -**1)PLC programming software**
358 +(% style="text-align:center" %)
359 +[[image:12.PLC Protocol_html_bba169c300c92051.png||data-xwiki-image-style-alignment="center" height="404" width="600" class="img-thumbnail"]]
405 405  
406 -[[image:image-20220810164710-1.png]]
361 +(% style="text-align:center" %)
362 +[[image:12.PLC Protocol_html_d3b23bb9e81921a3.png||data-xwiki-image-style-alignment="center" height="404" width="600" class="img-thumbnail"]]
407 407  
408 -**2)New PLC project**
364 +**Note:**
409 409  
410 -Click New Project and select the PLC model.
366 +* Both word registers and bit registers support even continuous read/write functions;
367 +* The range of registers is based on the specific PLC type;
411 411  
412 -[[image:image-20220811115454-1.png]]
369 +**Cable Wiring**
413 413  
371 +(% style="text-align:center" %)
372 +[[image:12.PLC Protocol_html_2297240b57346b2a.png||data-xwiki-image-style-alignment="center" height="170" width="401" class="img-thumbnail"]]
414 414  
415 -**3)Set Ethernet port parameters**
374 += **IEC60870-5 104 Client** =
416 416  
417 -Follow the steps below to configure Ethernet parameters
376 +**HMI Setting**
418 418  
419 -PLC IP address:192.168.39.200
378 +(% class="table-bordered" %)
379 +|**Items**|(% style="width:725px" %)**Settings**|(% style="width:309px" %)**Note**
380 +|Protocol|(% style="width:725px" %)IEC60870-5 104 Client|(% style="width:309px" %)
381 +|Connection|(% style="width:725px" %)Ethernet|(% style="width:309px" %)
382 +|Port No.|(% style="width:725px" %)2404|(% style="width:309px" %)
420 420  
421 -default gateway:192.168.39.1
384 +**Address List**
422 422  
423 -subnet mask:255.255.255.0
386 +(% class="table-bordered" %)
387 +|(% style="width:460px" %)**Type**|(% style="width:461px" %)**Register**|**Range**
388 +|(% rowspan="9" style="width:460px" %)Bit|(% style="width:461px" %)SPTB|0~~16777215.7
389 +|(% style="width:461px" %)SCNA|0~~16777215.7
390 +|(% style="width:461px" %)DPTB|0~~16777215.7
391 +|(% style="width:461px" %)DCNA|0~~16777215.7
392 +|(% style="width:461px" %)METF|0~~16777215.7
393 +|(% style="width:461px" %)SENC|0~~16777215.7
394 +|(% style="width:461px" %)SENA|0~~16777215.7
395 +|(% style="width:461px" %)MENA|0~~16777215.7
396 +|(% style="width:461px" %)METD|0~~16777215.7
397 +|(% rowspan="11" style="width:460px" %)Word|(% style="width:461px" %)SPTB|0~~16777215
398 +|(% style="width:461px" %)SCNA|0~~16777215
399 +|(% style="width:461px" %)DPTB|0~~16777215
400 +|(% style="width:461px" %)DCNA|0~~16777215
401 +|(% style="width:461px" %)SENA|0~~16777215
402 +|(% style="width:461px" %)MENA|0~~16777215
403 +|(% style="width:461px" %)METD|0~~16777215
404 +|(% style="width:461px" %)INRO|0~~16777215
405 +|(% style="width:461px" %)TIMESYN|0~~16777215
406 +|(% style="width:461px" %)TIMEZ|0~~16777215
407 +|(% style="width:461px" %)NTP|0~~16777215
408 +|(% rowspan="2" style="width:460px" %)Double word|(% style="width:461px" %)METF|0~~16777215
409 +|(% style="width:461px" %)SENC|0~~16777215
424 424  
425 -[[image:image-20220811140530-2.png]]
411 +**Address Configuration**
426 426  
413 +The address registers of the IEC60870-5-104 protocol are SPTB, SCNA, DPTB, DCNA, METF, and SENC. The protocol needs to be added with an extension tag "ASDU", which could only be added in the [Address Identification Library], other places are not editable, that is, the read address in the object or script is not editable.
427 427  
428 -**4)Registers list**
415 +(% style="text-align:center" %)
416 +[[image:12.PLC Protocol_html_ba78d143bf457ead.png||data-xwiki-image-style-alignment="center" height="369" width="600" class="img-thumbnail"]]
429 429  
430 -[[image:image-20220811102219-3.png]]
418 +(% style="text-align:center" %)
419 +[[image:12.PLC Protocol_html_23533fd5bb81f4ab.png||data-xwiki-image-style-alignment="center" height="389" width="600" class="img-thumbnail"]]
431 431  
421 +Extended tag name
432 432  
433 -**HMI software configuration**
423 +Address range for the extended tag.
434 434  
435 -**1)HMI programming software**
425 +**Communication Settings**
436 436  
437 - [[image:image-20220810171237-4.png]]
427 +Enable HMI Ethernet in [Project Settings];
438 438  
439 -**2)New HMI project**
429 +(% style="text-align:center" %)
430 +[[image:12.PLC Protocol_html_43b671f18153910d.png||data-xwiki-image-style-alignment="center" height="107" width="405" class="img-thumbnail"]]
440 440  
441 -Click New Project and select the HMI model.
432 +Set PLC IP in [Device IP] settings;
442 442  
443 -[[image:image-20220810172010-5.png]]
434 +(% style="text-align:center" %)
435 +[[image:12.PLC Protocol_html_f848736ec68b125.png||data-xwiki-image-style-alignment="center" height="191" width="554" class="img-thumbnail"]]
444 444  
445 -**3)Set communication port parameters**
446 -
447 -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.
448 -
449 -HMI IP address:192.168.39.201
450 -
451 -default gateway:192.168.39.1
452 -
453 -subnet mask:255.255.255.0
454 -
455 -[[image:image-20220811170753-2.png]]
456 -
457 -Next, click Communication Settings to configure the IP of the HMI communication object.
458 -
459 -[[image:image-20220811163047-1.png]]
460 -
461 -**hardware connection**
462 -
463 -**1)Hardware wiring diagram**
464 -
465 -This example introduces WeconHMI with LX5V-N PLC to establish communication through ethernet. The connection diagram is as follows:
466 -
467 -[[image:image-20220811170248-1.png]]
468 -
469 -The above are all the steps for establishing ethernet communication between Wecon HMI with LX5V PLC.
470 -
471 -= Create communication with **Rockwell PLC** =
472 -
473 -== **MicroLogix Protocol** ==
474 -
475 -MicroLogix 1000/1100/1200/1400/1500; SLC 5/03 5/04 5/05 PLC-5
476 -
477 -**HMI Settings**
478 -
479 -(% class="table-bordered" %)
480 -|**Item**|**Settings**|**Note**
481 -|Protocol|Allen-Bradlley MicroLogix|
482 -|Connection|RS232|
483 -|Baud rate|19200|
484 -|Data bit|8|
485 -|Parity|None|
486 -|Stop bit|1|
487 -|PLC station No.|1|
488 -
489 -**Address List**
490 -
491 -(% class="table-bordered" %)
492 -|**Type**|**Device registers**|**Format**|**Range**|**Note**
493 -|(% rowspan="5" %)Bit|I|I d.d|0.0~~255.15|
494 -|O|O d.d|0.0~~255.15|
495 -|B|B nnhh.dd|0.0~~ffff.15|nn: block number (hex)
496 -|S|S d.d|0.0~~255.15|
497 -|N|N nnhh.dd|0.0~~ffff.15|nn: block number (hex)
498 -|(% rowspan="9" %)Word|S|S d|0~~255|
499 -|TS|TS nnhh|0~~ffff|(% rowspan="8" %)nn: block number (hex)
500 -|TP|TP nnhh|0~~ffff
501 -|CS|CS nnhh|0~~ffff
502 -|CP|CP nnhh|0~~ffff
503 -|N|N nnhh|0~~ffff
504 -|C|C nnhh|0~~ffff
505 -|T|T nnhh|0~~ffff
506 -|R|R nnhh|0~~ffff
507 -
508 508  **Cable Wiring**
509 509  
510 -
511 511  (% style="text-align:center" %)
512 -[[image:12.PLC Protocol_html_58205bdf82c06d4.png||data-xwiki-image-style-alignment="center" height="307" width="500" class="img-thumbnail"]]
440 +[[image:12.PLC Protocol_html_2297240b57346b2a.png||data-xwiki-image-style-alignment="center" height="170" width="401" class="img-thumbnail"]]
513 513  
514 -== **FreeTag Ethernet/IP (CompactLogix)** ==
442 += **LG XGK FEnet Ethernet** =
515 515  
516 -Allen-Brandly CompactLogix
444 +Supported Series: LS XGT series XGK CPU with XGL-EFMT Ethernet module
517 517  
518 518  **HMI Settings**
519 519  
520 520  (% class="table-bordered" %)
521 521  |**Items**|**Settings**|**Note**
522 -|Protocol|Allen-Brandley FreeTag Ethernet/IP (CompactLogix)|
450 +|Protocol|LG XGK FEnet(Ethernet)|
523 523  |Connection|Ethernet|
524 -|Port No.|44818|
452 +|Port No.|2004|
525 525  
526 -**PLC Setting**
454 +**Address List**
527 527  
528 -Create new tags
456 +(% class="table-bordered" %)
457 +|**Type**|**Register**|**Range**|**Format**|**Note**
458 +|(% rowspan="14" %)Word|P|0~~2047|P d|
459 +|M|0~~2047|M d|
460 +|K|0~~2047|K d|
461 +|F|0~~2047|F d|
462 +|T|0~~2047|T d|
463 +|C|0~~2047|C d|
464 +|Z|0~~127|Z d|
465 +|S|0~~127|S d|
466 +|L|0~~11263|L d|
467 +|N|0~~21503|N d|
468 +|D|0~~32767|D d|
469 +|R|0~~32767|R d|
470 +|ZR|0~~65535|ZR d|
471 +|UxDD|0~~6331|UxDD nndd|nn: 0~~63, dd: 0~~31
529 529  
530 -(% style="text-align:center" %)
531 -[[image:12.PLC Protocol_html_a748a27dcf7f1124.png||data-xwiki-image-style-alignment="center" height="411" width="700" class="img-thumbnail"]]
532 -
533 -Export tags to CSV file. ([Tools] » [Export] » [Tags and Logic Comments])
534 -
535 -(% style="text-align:center" %)
536 -[[image:12.PLC Protocol_html_151379170bb8ff3e.png||data-xwiki-image-style-alignment="center" height="352" width="700" class="img-thumbnail"]]
537 -
538 -Import labels, please open [Communication] window and click [Import label];
539 -
540 -Select csv file, all tags will be displayed as belows;
541 -
542 -(% style="text-align:center" %)
543 -[[image:12.PLC Protocol_html_af192e54dee96f38.png||data-xwiki-image-style-alignment="center" height="586" width="700" class="img-thumbnail"]]
544 -
545 545  **✎Note:**
546 546  
547 -Because in different region, the separation symbol is different, we suggest you check this before you want to import your tags. To open csv file as text format.
475 +* In addition to the "UxDD" register, the others correspond to the PLC register one by one. UxDD corresponds to U in the PLC;
476 +* The [UxDD] register, defined in the PLC is Ux.dd, x represents the block, and dd represents 0-31 of each block. There are 64 blocks in the PLC;
477 +* All bit registers are in the form of bits in word, and the range is the same as the word register;
548 548  
549 -(% style="text-align:center" %)
550 -[[image:12.PLC Protocol_html_33df1d63ebe53726.png||data-xwiki-image-style-alignment="center" height="206" width="700" class="img-thumbnail"]]
551 -
552 -The directory of changing system settings: [Control Panel] -> [Date, Time, Language,and Regional Options] -> [Change the format of numbers, dates, and times]->[Customize]-> [List separator]. Please select [,] and export CSV file after setting.
553 -
554 554  **Communication settings in HMI**
555 555  
556 556  Enable HMI Ethernet in [Project Settings];
557 557  
558 558  (% style="text-align:center" %)
559 -[[image:12.PLC Protocol_html_43b671f18153910d.png||data-xwiki-image-style-alignment="center" height="106" width="400" class="img-thumbnail"]]
484 +[[image:12.PLC Protocol_html_43b671f18153910d.png||data-xwiki-image-style-alignment="center" height="107" width="405" class="img-thumbnail"]]
560 560  
561 561  Set PLC IP in [Device IP] settings;
562 562  
563 563  (% style="text-align:center" %)
564 -[[image:12.PLC Protocol_html_27870d373581892e.png||data-xwiki-image-style-alignment="center" height="206" width="600" class="img-thumbnail"]]
489 +[[image:12.PLC Protocol_html_a2a19b5003ad4090.png||data-xwiki-image-style-alignment="center" height="189" width="554" class="img-thumbnail"]]
565 565  
566 566  **Cable Wiring**
567 567  
568 -(% style="text-align:center" %)
569 -[[image:12.PLC Protocol_html_2297240b57346b2a.png||data-xwiki-image-style-alignment="center" height="170" width="400" class="img-thumbnail"]]
570 -
571 -== **AB PLC address edit** ==
572 -
573 -The operational address is determined by the connection of Allen-Bradley PLC to HMI. For extension modules or other special conditions, refer to allen-Bradley PLC instruction manual. The following is an example of allen-bradley MicroLogix1200.
574 -
575 -* **Bit address I:** The address ranges from 0.0 to 255.15. The value of the data before the decimal point ranges from 0 to 255 (decimal). The value from 0 to 15 after the decimal point is the sub address (decimal).
576 -* **Bit address B:** The address ranges from 000.0 to fff.15. The first f from left to right represents the block number (hexadecimal); The second and third f from left to right represent the word address (hexadecimal). The value 0 to 15 after the decimal point reprensents the sub address (decimal).
577 -* **Word address S:** The word address ranges from 0 to 255 (decimal).
578 -* **Word address TS:** The address ranges from 000.0 to ffff. The first and second f from left to right represents the block number (hexadecimal); The third and fourth f from left to right represent the word address (hexadecimal).
579 -
580 -**✎Note: **Register address TP, CS, CP, N, F and TS address edit are same. D indicates decimal, and F indicates hexadecimal. Different PLC models may support different registers. See the following table.
581 -
582 -|(% style="width:393px" %)**PLC bit address type**|(% style="width:350px" %)**Address format**|(% style="width:333px" %)**Address range**
583 -|(% style="width:393px" %)I|(% style="width:350px" %)dd.dd|(% style="width:333px" %)I 0.0 ~~ 255.15
584 -|(% style="width:393px" %)O|(% style="width:350px" %)dd.dd|(% style="width:333px" %)O 0.0 ~~ 255.15
585 -|(% style="width:393px" %)B|(% style="width:350px" %)fff.dd|(% style="width:333px" %)B 000.0 ~~ fff.15
586 -|(% style="width:393px" %)S|(% style="width:350px" %)dd.dd|(% style="width:333px" %)S 0.0 ~~ 255.15
587 -|(% style="width:393px" %)N|(% style="width:350px" %)ffff.dd|(% style="width:333px" %)N 000.0 ~~ fff.15
588 -|**PLC word address type**|**Address format**|**Address range**
589 -|S|ddd|S0 ~~ 255
590 -|TS|ffff|TS0 ~~ FFFF
591 -|TP|ffff|TP0 ~~ FFFF
592 -|CS|ffff|CS0 ~~ FFFF
593 -|CP|ffff|CP0 ~~ FFFF
594 -|N|ffff|N0 ~~ FFFF
595 -|F|ffff|F0 ~~ FFFF
596 -
597 -= =
598 -
599 599  = **Mitsubishi** =
600 600  
601 601  == **FX1S, 1N, 2N Series** ==
... ... @@ -2369,6 +2369,63 @@
2369 2369  
2370 2370  **✎Note:** COM3 only available in PI8000/PI9000 series.
2371 2371  
2266 += **WECON PLC** =
2267 +
2268 +Supported series: WECON LX2V/ LX2E/ LX3V/LX3VP/LX3VE/LX3VM
2269 +
2270 +**HMI Settings**
2271 +
2272 +(% class="table-bordered" %)
2273 +|**Item**|**Settings**|**Note**
2274 +|Protocol|WECON LX2V/ LX2E/ LX3V/LX3VP/LX3VE/LX3VM|
2275 +|Connection|RS422/RS485|
2276 +|Baud rate|9600|
2277 +|Data bit|7|
2278 +|Parity|EVEN|
2279 +|Stop bit|1|
2280 +|PLC station No.|1|
2281 +
2282 +**Address List**
2283 +
2284 +(% class="table-bordered" %)
2285 +|**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
2286 +|(% rowspan="6" %)Bit|X|X|Xo|0~~303237|
2287 +|Y|Y|Y o|0~~303237|
2288 +|M|M|M d|0~~99999|
2289 +|T|T|T d|0~~99999|
2290 +|C|C|C d|0~~99999|
2291 +|S|S|S d|0~~99999|
2292 +|(% rowspan="8" %)Word|X|X|Xo|0~~303237|
2293 +|Y|Y|Y o|0~~303237|
2294 +|M|M|M d|0~~99999|
2295 +|T|T|T d|0~~99999|
2296 +|C|C|C d|0~~199|
2297 +|D|D|D d|0~~7999|
2298 +|S|S|S d|0~~99999|
2299 +|SD|SD|SD d|8000~~9999|
2300 +
2301 +**Cable Wiring**
2302 +
2303 +* **RS485**
2304 +
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 +[[image:12.PLC Protocol_html_1897d92be6948d58.png||data-xwiki-image-style-alignment="center" height="223" width="393" class="img-thumbnail"]]
2310 +
2311 +* **RS422**
2312 +
2313 +(% style="text-align:center" %)
2314 +[[image:12.PLC Protocol_html_5c7fca9a70da2ee8.png||data-xwiki-image-style-alignment="center" height="247" width="389" class="img-thumbnail"]]
2315 +
2316 +**✎Note:**
2317 +
2318 +* HMI COM3 is available in PI8000 series and COM3 is in COM2(hardware PIN 7 and PIN 8) .
2319 +* If PLC <= 20 points,such as LX3V-1208/LX3V-0806 PLC,PLC RS485A and RS485B mean PLC COM2 RS485+ and RS485- .PLC COM2 can support modbus. Please refer to PLC COM2 setting manual.
2320 +
2321 +[[https:~~/~~/drive.google.com/drive/folders/13rgso7oUlatZQN_SNEcJCcN4toEdDPoP?usp=sharing>>url:https://drive.google.com/drive/folders/13rgso7oUlatZQN_SNEcJCcN4toEdDPoP?usp=sharing]]
2322 +
2372 2372  = **Printer** =
2373 2373  
2374 2374  == **TSPL label printer** ==
... ... @@ -2536,315 +2536,187 @@
2536 2536  
2537 2537  **✎Note:** COM3 only available in PI8000/PI9000 series.
2538 2538  
2490 +== HMI and Wecon LX5V serial communication ==
2539 2539  
2540 -= **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.
2541 2541  
2542 -**HMI Setting**
2494 +**Software configuration of PLC**
2543 2543  
2544 -|=**Parameters**|=**Recommended**|=**Notes**
2545 -|**Protocol**|(% colspan="1" %)Schneider MODBUS RTU|
2546 -|Connection|RS485|
2547 -|**Baud rate**|19200|
2548 -|**Data bit**|8|
2549 -|**Parity**|Even|
2550 -|**Stop bit**|1|
2551 -|**PLC station No.**|1|
2496 +**1)PLC programming software**
2552 2552  
2553 -**PLC Setting**
2498 +[[image:image-20220810164710-1.png]]
2554 2554  
2555 -|=(% scope="row" %)**Communication mode**|Modbus RTU protocol
2500 +**2)New PLC project**
2556 2556  
2557 -**Device Address**
2502 +Click New Project and select the PLC model.
2558 2558  
2559 -|=**Bit/Word**|=**Device type**|=**Format**|=**Range**|=**Memo**
2560 -|B|IX|DDDDDo|0 ~~ 655357|Input bit (read only)
2561 -|B|QX|DDDDDo|0 ~~ 655357|Write multiple coils
2562 -|B|MX|DDDDDDo|0 ~~ 9999997|Output register bit (octal)
2563 -|W|MW|DDDDDD|0 ~~ 999999|Output register
2564 -|DW|MD|DDDDDD|0 ~~ 999999|Output register
2504 +[[image:image-20220810172412-1.png]]
2565 2565  
2566 -**Wiring Diagram**
2567 2567  
2568 -**RS-485 2W **(RJ45 Connector): The following is the view from the soldering point of a connector.
2507 +**3)Set Serial port parameters**
2569 2569  
2570 -(% style="text-align:center" %)
2571 -[[image:image-20220817154212-1.jpeg||height="315" width="554" class="img-thumbnail"]]
2509 +Follow the steps below to configure Serial port parameters
2572 2572  
2573 -= **Barcode Scanner** =
2511 +Baud rate:115200
2574 2574  
2575 -Supported: DELI 14880 barcode scanner
2513 +Data bit:8
2576 2576  
2577 -**HMI Setting**
2515 +Stop bit:1
2578 2578  
2579 -|**Items**|**Settings**|**Note**
2580 -|Protocol|Barcode Scanner|
2581 -|Connection|USB|
2517 +Parity:No verification
2582 2582  
2583 -**Operating Procedures**
2519 +[[image:image-20220810165759-3.png]]
2584 2584  
2585 -Select [Barcode Scanner];
2586 2586  
2587 -(% style="text-align:center" %)
2588 -[[image:12.PLC Protocol_html_55a3056357320966.png||data-xwiki-image-style-alignment="center" height="266" width="600" class="img-thumbnail"]]
2522 +**4)Registers list**
2589 2589  
2590 -Set address for receiving;
2524 +[[image:image-20220811102219-3.png]]
2591 2591  
2592 -Set correct length;
2593 2593  
2594 -(% style="text-align:center" %)
2595 -[[image:12.PLC Protocol_html_30a4c9e9dd4db40b.png||data-xwiki-image-style-alignment="center" height="701" width="500" class="img-thumbnail"]]
2527 +**HMI software configuration**
2596 2596  
2597 -**✎Note:**
2529 +**1)HMI programming software**
2598 2598  
2599 -* The protocol uploads the information acquired by the USB scanner to the HMI;
2600 -* The acquired information is displayed in string mode, so it is necessary to use [characters input/display] object;
2601 -* Recommended model: DELI 14880 barcode scanner;
2531 + [[image:image-20220810171237-4.png]]
2602 2602  
2603 -= **Hitachi EHV Series (Ethernet)** =
2533 +**2)New HMI project**
2604 2604  
2605 -Supported series: Hitachi EHV series
2535 +Click New Project and select the HMI model.
2606 2606  
2607 -**HMI Settings**
2537 +[[image:image-20220810172010-5.png]]
2608 2608  
2609 -(% class="table-bordered" %)
2610 -|**Items**|**Settings**|**Note**
2611 -|Protocol|Hitachi EHV series|
2612 -|Connection|Ethernet|
2613 -|Port No.|3004~~3007|
2539 +**3)Set communication port parameters**
2614 2614  
2615 -**Address List**
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.
2616 2616  
2617 -(% class="table-bordered" %)
2618 -|**Type**|**Register**|**Range**|**Format**|**Note**
2619 -|(% rowspan="6" %)Bit|T|0 - 2545|T DDDD|
2620 -|M|0 - 7FFF.f (Hex)|M HHHH.h|
2621 -|X|0 – FFFF.f (Hex)|X H1H2H3H4.h|(% rowspan="2" %)(((
2622 -H1H2H3H4 Module main number
2543 +Baud rate:115200
2623 2623  
2624 -H1: Remote number
2545 +Data bit:8
2625 2625  
2626 -H2: Unit number
2547 +Stop bit:1
2627 2627  
2628 -H3: Slot number
2549 +Parity:No verification
2629 2629  
2630 -H4: Word number of Module
2631 2631  
2632 -H Sub number of Module
2552 +[[image:image-20220811104012-1.png]]
2633 2633  
2634 -For example:X21.3
2635 2635  
2636 -Slot number 2
2555 +**hardware connection**
2637 2637  
2638 -Word number of module is 1
2557 +**1)Hardware wiring diagram**
2639 2639  
2640 -Bit number of module is 3
2559 +This example introduces WeconHMI with LX5V PLC to establish communication through serial port. The connection diagram is as follows:
2641 2641  
2642 -Remote number and unit number are 0
2643 -)))
2644 -|Y|0 – FFFF.f (Hex)|Y H1H2H3H4.h
2645 -|R|0 – FF.f (Hex)|R HH.h|
2646 -|L|0 - 73FF.f (Hex)|L HHHH.h|
2647 -|(% rowspan="6" %)Word|WM|0 - 7FFF (Hex)|WM HHHH|
2648 -|WX|0 – FFFF (Hex)|WX H1H2H3H4|(% rowspan="2" %)(((
2649 -H1H2H3H4 Module main number
2561 +[[image:image-20220811103005-4.png]]
2650 2650  
2651 -H1: Remote number
2652 2652  
2653 -H2: Unit number
2564 +[[image:image-20220811103227-7.png]]
2654 2654  
2655 -H3: Slot number
2566 +The above are all the steps for establishing serial port communication between Wecon HMI with LX5V PLC.
2656 2656  
2657 -H4: Word number of module
2568 +== HMI and Wecon LX5V-N Ethernet communication ==
2658 2658  
2659 -For example:WX21
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.
2660 2660  
2661 -Word number of module is 1
2662 2662  
2663 -Slot number is 2
2573 +**Software configuration of PLC**
2664 2664  
2665 -Remote number and unit number are 0
2666 -)))
2667 -|WY|0 – FFFF (Hex)|WY H1H2H3H4
2668 -|WR|0 – FFFF (Hex)|WR HHHH|
2669 -|WL|0 - 73FF (Hex)|WL HHHH|
2670 -|TC|0 - 2559|TC DDDD|
2575 +**1)PLC programming software**
2671 2671  
2672 -**Communication settings in HMI**
2577 +[[image:image-20220810164710-1.png]]
2673 2673  
2674 -Enable HMI Ethernet in [Project Settings];
2579 +**2)New PLC project**
2675 2675  
2676 -(% style="text-align:center" %)
2677 -[[image:12.PLC Protocol_html_43b671f18153910d.png||data-xwiki-image-style-alignment="center" height="107" width="405" class="img-thumbnail"]]
2581 +Click New Project and select the PLC model.
2678 2678  
2679 -Set PLC IP in [Device IP] settings;
2583 +[[image:image-20220811115454-1.png]]
2680 2680  
2681 -(% style="text-align:center" %)
2682 -[[image:12.PLC Protocol_html_d825387f5bde6cdd.png||data-xwiki-image-style-alignment="center" height="190" width="554" class="img-thumbnail"]]
2683 2683  
2684 -**PLC Configuration**
2586 +**3)Set Ethernet port parameters**
2685 2685  
2686 -Connect with PLC, select[Online mode];
2588 +Follow the steps below to configure Ethernet parameters
2687 2687  
2688 -(% style="text-align:center" %)
2689 -[[image:12.PLC Protocol_html_8430dda44e5c199c.png||data-xwiki-image-style-alignment="center" height="420" width="600" class="img-thumbnail"]]
2590 +PLC IP address:192.168.39.200
2690 2690  
2691 -Set IP address, it is the same LAN parameters with HMI;
2592 +default gateway:192.168.39.1
2692 2692  
2693 -(% style="text-align:center" %)
2694 -[[image:12.PLC Protocol_html_1d8a634f64e25fc3.png||data-xwiki-image-style-alignment="center" height="252" width="347" class="img-thumbnail"]]
2594 +subnet mask:255.255.255.0
2695 2695  
2696 -3) Save PLC communication parameter, and restart PLC
2596 +[[image:image-20220811140530-2.png]]
2697 2697  
2698 -**PLC Monitor Mode**
2699 2699  
2700 -Connect with PLC and choose to “online” mode
2599 +**4)Registers list**
2701 2701  
2702 -(% style="text-align:center" %)
2703 -[[image:12.PLC Protocol_html_cdac598e770e3b67.png||data-xwiki-image-style-alignment="center" height="193" width="553" class="img-thumbnail"]]
2601 +[[image:image-20220811102219-3.png]]
2704 2704  
2705 -Open I/O monitor sheet1
2706 2706  
2707 -(% style="text-align:center" %)
2708 -[[image:12.PLC Protocol_html_68eb3518e5f80892.png||data-xwiki-image-style-alignment="center" height="369" width="559" class="img-thumbnail"]]
2604 +**HMI software configuration**
2709 2709  
2710 -During monitoring bit address,1 pts should be selected; during monitoring word address, 16 pts should be selected
2606 +**1)HMI programming software**
2711 2711  
2712 -(% style="text-align:center" %)
2713 -[[image:12.PLC Protocol_html_774652d8daf548d4.png||data-xwiki-image-style-alignment="center" height="118" width="102" class="img-thumbnail"]]
2608 + [[image:image-20220810171237-4.png]]
2714 2714  
2715 -Enter the register address, click OK to view the value of the register.
2610 +**2)New HMI project**
2716 2716  
2717 -(% style="text-align:center" %)
2718 -[[image:12.PLC Protocol_html_bba169c300c92051.png||data-xwiki-image-style-alignment="center" height="404" width="600" class="img-thumbnail"]]
2612 +Click New Project and select the HMI model.
2719 2719  
2720 -(% style="text-align:center" %)
2721 -[[image:12.PLC Protocol_html_d3b23bb9e81921a3.png||data-xwiki-image-style-alignment="center" height="404" width="600" class="img-thumbnail"]]
2614 +[[image:image-20220810172010-5.png]]
2722 2722  
2723 -**✎Note:**
2616 +**3)Set communication port parameters**
2724 2724  
2725 -* Both word registers and bit registers support even continuous read/write functions;
2726 -* The range of registers is based on the specific PLC type;
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.
2727 2727  
2728 -**Cable Wiring**
2620 +HMI IP address:192.168.39.201
2729 2729  
2730 -(% style="text-align:center" %)
2731 -[[image:12.PLC Protocol_html_2297240b57346b2a.png||data-xwiki-image-style-alignment="center" height="170" width="401" class="img-thumbnail"]]
2622 +default gateway:192.168.39.1
2732 2732  
2733 -= **IEC60870-5 104 Client** =
2624 +subnet mask:255.255.255.0
2734 2734  
2735 -**HMI Setting**
2626 +[[image:image-20220811170753-2.png]]
2736 2736  
2737 -(% class="table-bordered" %)
2738 -|**Items**|(% style="width:725px" %)**Settings**|(% style="width:309px" %)**Note**
2739 -|Protocol|(% style="width:725px" %)IEC60870-5 104 Client|(% style="width:309px" %)
2740 -|Connection|(% style="width:725px" %)Ethernet|(% style="width:309px" %)
2741 -|Port No.|(% style="width:725px" %)2404|(% style="width:309px" %)
2628 +Next, click Communication Settings to configure the IP of the HMI communication object.
2742 2742  
2743 -**Address List**
2630 +[[image:image-20220811163047-1.png]]
2744 2744  
2745 -(% class="table-bordered" %)
2746 -|(% style="width:460px" %)**Type**|(% style="width:461px" %)**Register**|**Range**
2747 -|(% rowspan="9" style="width:460px" %)Bit|(% style="width:461px" %)SPTB|0~~16777215.7
2748 -|(% style="width:461px" %)SCNA|0~~16777215.7
2749 -|(% style="width:461px" %)DPTB|0~~16777215.7
2750 -|(% style="width:461px" %)DCNA|0~~16777215.7
2751 -|(% style="width:461px" %)METF|0~~16777215.7
2752 -|(% style="width:461px" %)SENC|0~~16777215.7
2753 -|(% style="width:461px" %)SENA|0~~16777215.7
2754 -|(% style="width:461px" %)MENA|0~~16777215.7
2755 -|(% style="width:461px" %)METD|0~~16777215.7
2756 -|(% rowspan="11" style="width:460px" %)Word|(% style="width:461px" %)SPTB|0~~16777215
2757 -|(% style="width:461px" %)SCNA|0~~16777215
2758 -|(% style="width:461px" %)DPTB|0~~16777215
2759 -|(% style="width:461px" %)DCNA|0~~16777215
2760 -|(% style="width:461px" %)SENA|0~~16777215
2761 -|(% style="width:461px" %)MENA|0~~16777215
2762 -|(% style="width:461px" %)METD|0~~16777215
2763 -|(% style="width:461px" %)INRO|0~~16777215
2764 -|(% style="width:461px" %)TIMESYN|0~~16777215
2765 -|(% style="width:461px" %)TIMEZ|0~~16777215
2766 -|(% style="width:461px" %)NTP|0~~16777215
2767 -|(% rowspan="2" style="width:460px" %)Double word|(% style="width:461px" %)METF|0~~16777215
2768 -|(% style="width:461px" %)SENC|0~~16777215
2632 +**hardware connection**
2769 2769  
2770 -**Address Configuration**
2634 +**1)Hardware wiring diagram**
2771 2771  
2772 -The address registers of the IEC60870-5-104 protocol are SPTB, SCNA, DPTB, DCNA, METF, and SENC. The protocol needs to be added with an extension tag "ASDU", which could only be added in the [Address Identification Library], other places are not editable, that is, the read address in the object or script is not editable.
2636 +This example introduces WeconHMI with LX5V-N PLC to establish communication through ethernet. The connection diagram is as follows:
2773 2773  
2774 -(% style="text-align:center" %)
2775 -[[image:12.PLC Protocol_html_ba78d143bf457ead.png||data-xwiki-image-style-alignment="center" height="369" width="600" class="img-thumbnail"]]
2638 +[[image:image-20220811170248-1.png]]
2776 2776  
2777 -(% style="text-align:center" %)
2778 -[[image:12.PLC Protocol_html_23533fd5bb81f4ab.png||data-xwiki-image-style-alignment="center" height="389" width="600" class="img-thumbnail"]]
2640 +The above are all the steps for establishing ethernet communication between Wecon HMI with LX5V PLC.
2779 2779  
2780 -Extended tag name
2642 += **Schneider MODBUS RTU** =
2781 2781  
2782 -Address range for the extended tag.
2644 +**HMI Setting**
2783 2783  
2784 -**Communication Settings**
2646 +|=**Parameters**|=**Recommended**|=**Notes**
2647 +|**Protocol**|(% colspan="1" %)Schneider MODBUS RTU|
2648 +|Connection|RS485|
2649 +|**Baud rate**|19200|
2650 +|**Data bit**|8|
2651 +|**Parity**|Even|
2652 +|**Stop bit**|1|
2653 +|**PLC station No.**|1|
2785 2785  
2786 -Enable HMI Ethernet in [Project Settings];
2655 +**PLC Setting**
2787 2787  
2788 -(% style="text-align:center" %)
2789 -[[image:12.PLC Protocol_html_43b671f18153910d.png||data-xwiki-image-style-alignment="center" height="107" width="405" class="img-thumbnail"]]
2657 +|=(% scope="row" %)**Communication mode**|Modbus RTU protocol
2790 2790  
2791 -Set PLC IP in [Device IP] settings;
2659 +**Device Address**
2792 2792  
2793 -(% style="text-align:center" %)
2794 -[[image:12.PLC Protocol_html_f848736ec68b125.png||data-xwiki-image-style-alignment="center" height="191" width="554" class="img-thumbnail"]]
2661 +|=**Bit/Word**|=**Device type**|=**Format**|=**Range**|=**Memo**
2662 +|B|IX|DDDDDo|0 ~~ 655357|Input bit (read only)
2663 +|B|QX|DDDDDo|0 ~~ 655357|Write multiple coils
2664 +|B|MX|DDDDDDo|0 ~~ 9999997|Output register bit (octal)
2665 +|W|MW|DDDDDD|0 ~~ 999999|Output register
2666 +|DW|MD|DDDDDD|0 ~~ 999999|Output register
2795 2795  
2796 -**Cable Wiring**
2668 +**Wiring Diagram**
2797 2797  
2798 -(% style="text-align:center" %)
2799 -[[image:12.PLC Protocol_html_2297240b57346b2a.png||data-xwiki-image-style-alignment="center" height="170" width="401" class="img-thumbnail"]]
2670 +**RS-485 2W **(RJ45 Connector): The following is the view from the soldering point of a connector.
2800 2800  
2801 -= **LG XGK FEnet Ethernet** =
2802 -
2803 -Supported Series: LS XGT series XGK CPU with XGL-EFMT Ethernet module
2804 -
2805 -**HMI Settings**
2806 -
2807 -(% class="table-bordered" %)
2808 -|**Items**|**Settings**|**Note**
2809 -|Protocol|LG XGK FEnet(Ethernet)|
2810 -|Connection|Ethernet|
2811 -|Port No.|2004|
2812 -
2813 -**Address List**
2814 -
2815 -(% class="table-bordered" %)
2816 -|**Type**|**Register**|**Range**|**Format**|**Note**
2817 -|(% rowspan="14" %)Word|P|0~~2047|P d|
2818 -|M|0~~2047|M d|
2819 -|K|0~~2047|K d|
2820 -|F|0~~2047|F d|
2821 -|T|0~~2047|T d|
2822 -|C|0~~2047|C d|
2823 -|Z|0~~127|Z d|
2824 -|S|0~~127|S d|
2825 -|L|0~~11263|L d|
2826 -|N|0~~21503|N d|
2827 -|D|0~~32767|D d|
2828 -|R|0~~32767|R d|
2829 -|ZR|0~~65535|ZR d|
2830 -|UxDD|0~~6331|UxDD nndd|nn: 0~~63, dd: 0~~31
2831 -
2832 -**✎Note:**
2833 -
2834 -* In addition to the "UxDD" register, the others correspond to the PLC register one by one. UxDD corresponds to U in the PLC;
2835 -* The [UxDD] register, defined in the PLC is Ux.dd, x represents the block, and dd represents 0-31 of each block. There are 64 blocks in the PLC;
2836 -* All bit registers are in the form of bits in word, and the range is the same as the word register;
2837 -
2838 -**Communication settings in HMI**
2839 -
2840 -Enable HMI Ethernet in [Project Settings];
2841 -
2842 2842  (% style="text-align:center" %)
2843 -[[image:12.PLC Protocol_html_43b671f18153910d.png||data-xwiki-image-style-alignment="center" height="107" width="405" class="img-thumbnail"]]
2844 -
2845 -Set PLC IP in [Device IP] settings;
2846 -
2847 -(% style="text-align:center" %)
2848 -[[image:12.PLC Protocol_html_a2a19b5003ad4090.png||data-xwiki-image-style-alignment="center" height="189" width="554" class="img-thumbnail"]]
2849 -
2850 -**Cable Wiring**
2673 +[[image:image-20220817154212-1.jpeg||height="315" width="554" class="img-thumbnail"]]
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-20220819093729-12.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Stone
Size
... ... @@ -1,1 +1,0 @@
1 -147.9 KB
Content
image-20220819093729-15.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Stone
Size
... ... @@ -1,1 +1,0 @@
1 -74.6 KB
Content
image-20220819093729-17.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Stone
Size
... ... @@ -1,1 +1,0 @@
1 -115.0 KB
Content
image-20220819093729-18.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Stone
Size
... ... @@ -1,1 +1,0 @@
1 -112.1 KB
Content
image-20220819093729-2.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Stone
Size
... ... @@ -1,1 +1,0 @@
1 -34.1 KB
Content
image-20220819093729-3.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Stone
Size
... ... @@ -1,1 +1,0 @@
1 -44.2 KB
Content
image-20220819093729-4 (1).png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Stone
Size
... ... @@ -1,1 +1,0 @@
1 -82.4 KB
Content
image-20220819093729-4.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Stone
Size
... ... @@ -1,1 +1,0 @@
1 -82.4 KB
Content
image-20220819093729-5.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Stone
Size
... ... @@ -1,1 +1,0 @@
1 -6.6 KB
Content
image-20220819093729-6.jpeg
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Stone
Size
... ... @@ -1,1 +1,0 @@
1 -100.2 KB
Content
image-20220819093729-7.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Stone
Size
... ... @@ -1,1 +1,0 @@
1 -46.9 KB
Content
image-20220819093730-19.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Stone
Size
... ... @@ -1,1 +1,0 @@
1 -122.5 KB
Content
image-20220819093730-20.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Stone
Size
... ... @@ -1,1 +1,0 @@
1 -99.6 KB
Content
image-20220819101447-3.jpeg
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Stone
Size
... ... @@ -1,1 +1,0 @@
1 -56.6 KB
Content
image-20220819105530-1.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Stone
Size
... ... @@ -1,1 +1,0 @@
1 -1.0 MB
Content
image-20220819105630-3.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Stone
Size
... ... @@ -1,1 +1,0 @@
1 -1.1 MB
Content
image-20220819105644-4.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Stone
Size
... ... @@ -1,1 +1,0 @@
1 -942.6 KB
Content
image-20220819105928-9.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Stone
Size
... ... @@ -1,1 +1,0 @@
1 -72.6 KB
Content
image-20220820150853-1.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Stone
Size
... ... @@ -1,1 +1,0 @@
1 -171.7 KB
Content