Wiki source code of 11 PLC Protocol

Version 66.1 by Ben on 2022/08/29 14:06

Show last authors
1 (((
2 (% class="wikigeneratedid" id="HPLCprotocols" %)
3 **Introduction**
4 )))
5
6 This chapter contains information on configuring the communication between device and HMI.
7
8 **General Procedure**
9
10 During configuring communication in PIStudio. The following components and conditions is indeed at least.
11
12 * One PI HMI
13 * One connected controller (for example PLC)
14 * One Cable Wiring
15
16 (% style="text-align:center" %)
17 [[image:12.PLC Protocol_html_4d84fc52012aaad6.png||data-xwiki-image-style-alignment="center" height="461" width="521" class="img-thumbnail"]]
18
19 User need to select controller protocol and set communication parameters in HMI project. Please note to set same communication parameter between controller and HMI project. After finishing project, user could download HMI project into HMI and connect HMI with controller by Cable Wiring. Thena simple automation system would be established.
20
21 = **Communication Settings** =
22
23 For example, controller is WECON LX3V series PLC and HMI is PI8070. Please set communication protocol, and set communication parameters in the [Communication].
24
25 **Timeout**
26
27 The follwoing are description for the timeout settings from [Communication].
28
29 (% style="text-align:center" %)
30 [[image:Communication Timout settings.png||data-xwiki-image-style-alignment="center" class="img-thumbnail"]]
31
32 * Wait Timeout(ms): The time HMI waits for a response from the PLC.
33 * Receive Timeout(ms): The longest waiting interval between the HMI receiving two characters.
34 * Retry Count: The number of retries when there is no response in the communication between HMI and PLC.
35 * Retry Timeout(s): The PLC will not be accessed during the Retry Timeout period when there is no response in the communication between HMI and PLC.
36 * Delay Time(ms): The speed at which the HMI communicates with the device.
37 * Continuous Length: Default value 0 means the maximum length specified by each protocol. Addresses dealt by Maximum Span settings, its read length for single time, if the Continouous Length is 1, which means it will read/write the every register one by one. If the length of Maximum Span is greater than or equal to the Continuous Length, the continuous read/write will be performed in groups according to Continuous Length.
38 * Maximum Span:  Set the interval for reading PLC addresses. If there exists two same register type addresses, their interval is less than the set value of Maximum Span, then they will be integrated into a continuous address, otherwise it will be divide into two independent addresses.
39
40 **Operating Procedure**
41
42 After creating the [Quick_Start] project,select the [Project]->[Communication].
43
44 (% style="text-align:center" %)
45 [[image:12.PLC Protocol_html_39c0d342e4b1dd27.png||data-xwiki-image-style-alignment="center" height="128" width="294" class="img-thumbnail"]]
46
47 Click “Setting” to open protocol setting windows.
48
49 (% id="cke_bm_5533S" style="display:none" %) [[image:12.PLC Protocol_html_7b55815442c5544a.png||height="450" width="537"]]
50
51 Select communication protocol, users could select serial port, Ethernet port, CAN port or USB.
52
53 * Serial port:
54
55 (% style="text-align:center" %)
56 [[image:12.PLC Protocol_html_bc7e88067e699a2b.png||data-xwiki-image-style-alignment="center" height="291" width="600" class="img-thumbnail"]]
57
58 * Ethernet port:
59
60 (% style="text-align:center" %)
61 [[image:12.PLC Protocol_html_c3865bcb998b6ded.png||data-xwiki-image-style-alignment="center" height="291" width="600" class="img-thumbnail"]]
62
63 * CAN port (In COM1):
64
65 (% style="text-align:center" %)
66 [[image:12.PLC Protocol_html_61c3c5fa99a24463.png||data-xwiki-image-style-alignment="center" height="291" width="600" class="img-thumbnail"]]
67
68 * USB port:
69
70 (% id="cke_bm_5554S" style="display:none" %) [[image:12.PLC Protocol_html_a3105a98b48fb9b7.png||height="242" width="500"]]
71
72 About parameters for communication, PLC default communication parameters have been written to PIStudio, the user can adjust them according to the actual situation.
73
74 * Serial port:
75
76 (% style="text-align:center" %)
77 [[image:12.PLC Protocol_html_36a660d5c1a17a95.png||data-xwiki-image-style-alignment="center" height="228" width="600" class="img-thumbnail"]]
78
79 * Ethernet port
80
81 Please note, during using Ethernet port, please set HMI IP in [Project Setting], the detailed, please refer to [Project Setting] chapter.
82
83 (% style="text-align:center" %)
84 [[image:12.PLC Protocol_html_eebfc6b1337ea860.png||data-xwiki-image-style-alignment="center" height="207" width="600" class="img-thumbnail"]]
85
86 Click [OK] button to save settings and close the dialog;
87
88 = Create communication with WECON PLC =
89
90
91 Supported series: WECON LX2V/ LX2E/ LX3V/LX3VP/LX3VE/LX3VM
92
93 **HMI Settings**
94
95 (% class="table-bordered" %)
96 |**Item**|**Settings**|**Note**
97 |Protocol|WECON LX2V/ LX2E/ LX3V/LX3VP/LX3VE/LX3VM|
98 |Connection|RS422/RS485|
99 |Baud rate|9600|
100 |Data bit|7|
101 |Parity|EVEN|
102 |Stop bit|1|
103 |PLC station No.|1|
104
105 **Address List**
106
107 (% class="table-bordered" %)
108 |**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
109 |(% rowspan="6" %)Bit|X|X|Xo|0~~303237|
110 |Y|Y|Y o|0~~303237|
111 |M|M|M d|0~~99999|
112 |T|T|T d|0~~99999|
113 |C|C|C d|0~~99999|
114 |S|S|S d|0~~99999|
115 |(% rowspan="8" %)Word|X|X|Xo|0~~303237|
116 |Y|Y|Y o|0~~303237|
117 |M|M|M d|0~~99999|
118 |T|T|T d|0~~99999|
119 |C|C|C d|0~~199|
120 |D|D|D d|0~~7999|
121 |S|S|S d|0~~99999|
122 |SD|SD|SD d|8000~~9999|
123
124 **Cable Wiring**
125
126 * **RS485**
127
128 (% style="text-align:center" %)
129 [[image:12.PLC Protocol_html_1897d92be6948d58.png||data-xwiki-image-style-alignment="center" height="223" width="393" class="img-thumbnail"]]
130
131 * **RS422**
132
133 (% style="text-align:center" %)
134 [[image:12.PLC Protocol_html_5c7fca9a70da2ee8.png||data-xwiki-image-style-alignment="center" height="247" width="389" class="img-thumbnail"]]
135
136 **✎Note:**
137
138 * HMI COM3 is available in PI8000 series and COM3 is in COM2(hardware PIN 7 and PIN 8) .
139 * 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.
140
141 [[https:~~/~~/drive.google.com/drive/folders/13rgso7oUlatZQN_SNEcJCcN4toEdDPoP?usp=sharing>>url:https://drive.google.com/drive/folders/13rgso7oUlatZQN_SNEcJCcN4toEdDPoP?usp=sharing]]
142
143 == HMI settings ==
144
145 **Download PIStudio Software**
146
147 Please visit the link below to get the latest version PIstudio for HMI programming:
148
149 * [[Download link>>doc:PIStudio.Download.3 Software.WebHome]]
150
151 **Create a new HMI project connect with PLC**
152
153 Check the link below for the video to show you how to get started with a new project
154
155 * [[Video>>https://youtu.be/0FpmDZe_8U8]]
156
157 For more videos, please visit our Youtube channel: [[http:~~/~~/www.youtube.com/user/Wecon2004/videos>>url:http://www.youtube.com/user/Wecon2004/videos]]
158
159 **General**
160
161 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.
162
163 **Protocol settings**
164
165 The communication between two devices requires a protocol. The following contents show the steps of protocol settings.
166
167 Please select the protocol, when creating a new project.
168
169 1. Select the COM port for communication;
170 1. PLC type: It means PLC brand, like WECON;
171 1. PLC model: It shows the model of PLC, such as LX3V;
172
173 (% style="text-align:center" %)
174 [[image:image-20220819093729-1.png]]
175
176 If you want to change the protocol for existing project, please click [Program] → [Communication] to open the [Communication] windows, shown as the following figure.
177
178 (% style="text-align:center" %)
179 [[image:image-20220819093729-2.png]]
180
181
182 The steps to change the protocol for project are as follows.
183
184 1. Click [Setting] to open the [Communication device] window;
185 1. Select communication port, such as COM1;
186 1. Select Serial port for communication, such as RS422;
187 1. Select device type (device brand), such as WECON;
188 1. Select the protocol for communication, such as WECON LX3V;
189
190 (% style="text-align:center" %)
191 [[image:image-20220819093729-3.png]]
192
193 **Parameter settings**
194
195 The parameters settings are in [Communication] window, shown as following below.
196
197 1. Click [Setting] to open the [COM port setting] window;
198 1. Set the parameters such as [connection], [Baud rate] and so on;
199
200 (% style="text-align:center" %)
201 [[image:image-20220819093729-4.png||height="636" width="818"]]
202
203 (% start="3" %)
204 1. Click [Setting] to open [Timeout] setting window, you could set the parameters according your requirements, or just use the default value.
205
206 (% style="text-align:center" %)
207 [[image:image-20220819093729-5.png]]
208
209 **Set PLC address in HMI screen**
210
211 1. Place the objects to HMI screen;
212 1. Double-click the object to open the setting window;
213 1. Click “Edit” to open the address setting windows;
214 1. Connection: select the serial port in HMI;
215 1. Address type: All the PLC address types will be display in this list, such as M;
216 1. Address No.: Please input the number of this address, such as 0;
217
218 [[image:image-20220819093729-6.jpeg]]
219
220 **Communication cable**
221
222 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.
223
224 (% style="text-align:center" %)
225 [[image:image-20220819093729-7.png]]
226
227 **HMI communication PLC use Modbus **
228
229 * 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/]]
230 * 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/]]
231
232 == PLC settings ==
233
234 **Download PLC Software**
235
236 Please visit below link to get the latest version PLC Editor for HMI programming
237
238 * LX3V:[[Download link>>doc:PLC Editor.10 Hardware .Software.WebHome]]
239 * LX5V:[[Download link>>doc:PLC Editor2.Download.03 Software.WebHome]]
240
241 **Start a new PLC project**
242
243 Start a new PLC project by clicking “New” on the left top corner of screen, select the PLC mode from the drop-down list.
244
245 (% style="text-align:center" %)
246 [[image:image-20220819101447-3.jpeg]]
247
248
249
250 **Add a new instruction **
251
252 Double click on the ladder, select the ladder symbol (instruction) from the drop-down list, then enter the address for this symbol.
253
254 (% style="text-align:center" %)
255 [[image:image-20220819105530-1.png]]
256
257 You could also select the ladder symbol from the menu bar directly.
258
259 [[image:image-20220819093729-11.png]]
260
261 [[image:image-20220819093729-12.png]]
262
263 **Add comment to PLC program**
264
265 (% style="text-align:center" %)
266 [[image:image-20220819105630-3.png]]
267
268 **Add the statement to PLC program**
269
270 Add the statement by single click on “Statement”, when finished, single click on “Statement” again to go back to Ladder edit.
271
272 (% style="text-align:center" %)
273 [[image:image-20220819105644-4.png]]
274
275 **Compile **
276
277 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.
278
279 [[image:image-20220819093729-15.png]]
280
281 **Download setting **
282
283 Click on “Transfer Setup” to select download mode.
284
285 [[image:image-20220820150853-1.png]]**Download PLC program to PLC**
286
287 Quick select the parameters and main program of PLC program, then download to PLC, “Yes”-”Yes”-”OK”
288
289 [[image:image-20220819093729-17.png]]
290
291 **Upload PLC program from PLC**
292
293 Read the PLC program from PLC to computer.
294
295 [[image:image-20220819093729-18.png]]
296
297 **Device monitor**
298
299 Monitor the value of certain address in PLC, double click “Current value” to change the value in this address.
300
301 [[image:image-20220819093730-19.png]]
302
303 **Online monitor**
304
305 Monitor the each address in PLC by online monitor. Changing the state or value in PLC is also allowd.
306
307 [[image:image-20220819093730-20.png]]
308
309 **Monitor edit**
310
311 In this mode, you could edit the PLC program during PLC is running. 
312
313
314 (% style="text-align:center" %)
315 [[image:image-20220819105928-9.png||height="229" width="669"]]
316
317 = **HMI and Wecon LX5V serial communication** =
318
319 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.
320
321 **Software configuration of PLC**
322
323 **1)PLC programming software**
324
325 [[image:image-20220810164710-1.png]]
326
327 **2)New PLC project**
328
329 Click New Project and select the PLC model.
330
331 [[image:image-20220810172412-1.png]]
332
333
334 **3)Set Serial port parameters**
335
336 Follow the steps below to configure Serial port parameters
337
338 Baud rate:115200
339
340 Data bit:8
341
342 Stop bit:1
343
344 Parity:No verification
345
346 [[image:image-20220810165759-3.png]]
347
348
349 **4)Registers list**
350
351 [[image:image-20220811102219-3.png]]
352
353
354 **HMI software configuration**
355
356 **1)HMI programming software**
357
358 [[image:image-20220810171237-4.png]]
359
360 **2)New HMI project**
361
362 Click New Project and select the HMI model.
363
364 [[image:image-20220810172010-5.png]]
365
366 **3)Set communication port parameters**
367
368 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.
369
370 Baud rate:115200
371
372 Data bit:8
373
374 Stop bit:1
375
376 Parity:No verification
377
378
379 [[image:image-20220811104012-1.png]]
380
381
382 **hardware connection**
383
384 **1)Hardware wiring diagram**
385
386 This example introduces WeconHMI with LX5V PLC to establish communication through serial port. The connection diagram is as follows:
387
388 [[image:image-20220811103005-4.png]]
389
390
391 [[image:image-20220811103227-7.png]]
392
393 The above are all the steps for establishing serial port communication between Wecon HMI with LX5V PLC.
394
395 == **HMI and Wecon LX5V-N Ethernet communication** ==
396
397 (% 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.
398
399
400 **Software configuration of PLC**
401
402 **1)PLC programming software**
403
404 [[image:image-20220810164710-1.png]]
405
406 **2)New PLC project**
407
408 Click New Project and select the PLC model.
409
410 [[image:image-20220811115454-1.png]]
411
412
413 **3)Set Ethernet port parameters**
414
415 Follow the steps below to configure Ethernet parameters
416
417 PLC IP address:192.168.39.200
418
419 default gateway:192.168.39.1
420
421 subnet mask:255.255.255.0
422
423 [[image:image-20220811140530-2.png]]
424
425
426 **4)Registers list**
427
428 [[image:image-20220811102219-3.png]]
429
430
431 **HMI software configuration**
432
433 **1)HMI programming software**
434
435 [[image:image-20220810171237-4.png]]
436
437 **2)New HMI project**
438
439 Click New Project and select the HMI model.
440
441 [[image:image-20220810172010-5.png]]
442
443 **3)Set communication port parameters**
444
445 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.
446
447 HMI IP address:192.168.39.201
448
449 default gateway:192.168.39.1
450
451 subnet mask:255.255.255.0
452
453 [[image:image-20220811170753-2.png]]
454
455 Next, click Communication Settings to configure the IP of the HMI communication object.
456
457 [[image:image-20220811163047-1.png]]
458
459 **hardware connection**
460
461 **1)Hardware wiring diagram**
462
463 This example introduces WeconHMI with LX5V-N PLC to establish communication through ethernet. The connection diagram is as follows:
464
465 [[image:image-20220811170248-1.png]]
466
467 The above are all the steps for establishing ethernet communication between Wecon HMI with LX5V PLC.
468
469 = =
470
471 = **Allen-Bradley** =
472
473 == **FreeTag Ethernet/IP (CompactLogix)** ==
474
475 Allen-Brandly CompactLogix
476
477 **HMI Settings**
478
479 (% class="table-bordered" %)
480 |**Items**|**Settings**|**Note**
481 |Protocol|Allen-Brandley FreeTag Ethernet/IP (CompactLogix)|
482 |Connection|Ethernet|
483 |Port No.|44818|
484
485 **PLC Setting**
486
487 Create new tags
488
489 (% style="text-align:center" %)
490 [[image:12.PLC Protocol_html_a748a27dcf7f1124.png||data-xwiki-image-style-alignment="center" height="411" width="700" class="img-thumbnail"]]
491
492 Export tags to CSV file. ([Tools] » [Export] » [Tags and Logic Comments])
493
494 (% style="text-align:center" %)
495 [[image:12.PLC Protocol_html_151379170bb8ff3e.png||data-xwiki-image-style-alignment="center" height="352" width="700" class="img-thumbnail"]]
496
497 Import labels, please open [Communication] window and click [Import label];
498
499 Select csv file, all tags will be displayed as belows;
500
501 (% style="text-align:center" %)
502 [[image:12.PLC Protocol_html_af192e54dee96f38.png||data-xwiki-image-style-alignment="center" height="586" width="700" class="img-thumbnail"]]
503
504 **✎Note:**
505
506 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.
507
508 (% style="text-align:center" %)
509 [[image:12.PLC Protocol_html_33df1d63ebe53726.png||data-xwiki-image-style-alignment="center" height="206" width="700" class="img-thumbnail"]]
510
511 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.
512
513 **Communication settings in HMI**
514
515 Enable HMI Ethernet in [Project Settings];
516
517 (% style="text-align:center" %)
518 [[image:12.PLC Protocol_html_43b671f18153910d.png||data-xwiki-image-style-alignment="center" height="106" width="400" class="img-thumbnail"]]
519
520 Set PLC IP in [Device IP] settings;
521
522 (% style="text-align:center" %)
523 [[image:12.PLC Protocol_html_27870d373581892e.png||data-xwiki-image-style-alignment="center" height="206" width="600" class="img-thumbnail"]]
524
525 **Cable Wiring**
526
527 (% style="text-align:center" %)
528 [[image:12.PLC Protocol_html_2297240b57346b2a.png||data-xwiki-image-style-alignment="center" height="170" width="400" class="img-thumbnail"]]
529
530 == **MicroLogix** ==
531
532 MicroLogix 1000/1100/1200/1400/1500; SLC 5/03 5/04 5/05 PLC-5
533
534 **HMI Settings**
535
536 (% class="table-bordered" %)
537 |**Item**|**Settings**|**Note**
538 |Protocol|Allen-Bradlley MicroLogix|
539 |Connection|RS232|
540 |Baud rate|19200|
541 |Data bit|8|
542 |Parity|None|
543 |Stop bit|1|
544 |PLC station No.|1|
545
546 **Address List**
547
548 (% class="table-bordered" %)
549 |**Type**|**Device registers**|**Format**|**Range**|**Note**
550 |(% rowspan="5" %)Bit|I|I d.d|0.0~~255.15|
551 |O|O d.d|0.0~~255.15|
552 |B|B nnhh.dd|0.0~~ffff.15|nn: block number (hex)
553 |S|S d.d|0.0~~255.15|
554 |N|N nnhh.dd|0.0~~ffff.15|nn: block number (hex)
555 |(% rowspan="9" %)Word|S|S d|0~~255|
556 |TS|TS nnhh|0~~ffff|(% rowspan="8" %)nn: block number (hex)
557 |TP|TP nnhh|0~~ffff
558 |CS|CS nnhh|0~~ffff
559 |CP|CP nnhh|0~~ffff
560 |N|N nnhh|0~~ffff
561 |C|C nnhh|0~~ffff
562 |T|T nnhh|0~~ffff
563 |R|R nnhh|0~~ffff
564
565 **Cable Wiring**
566
567 (% style="text-align:center" %)
568 [[image:12.PLC Protocol_html_58205bdf82c06d4.png||data-xwiki-image-style-alignment="center" height="307" width="500" class="img-thumbnail"]]
569
570 == **AB PLC address edit** ==
571
572 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.
573
574 * **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).
575 * **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).
576 * **Word address S:** The word address ranges from 0 to 255 (decimal).
577 * **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).
578
579 **✎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.
580
581 |(% style="width:393px" %)**PLC bit address type**|(% style="width:350px" %)**Address format**|(% style="width:333px" %)**Address range**
582 |(% style="width:393px" %)I|(% style="width:350px" %)dd.dd|(% style="width:333px" %)I 0.0 ~~ 255.15
583 |(% style="width:393px" %)O|(% style="width:350px" %)dd.dd|(% style="width:333px" %)O 0.0 ~~ 255.15
584 |(% style="width:393px" %)B|(% style="width:350px" %)fff.dd|(% style="width:333px" %)B 000.0 ~~ fff.15
585 |(% style="width:393px" %)S|(% style="width:350px" %)dd.dd|(% style="width:333px" %)S 0.0 ~~ 255.15
586 |(% style="width:393px" %)N|(% style="width:350px" %)ffff.dd|(% style="width:333px" %)N 000.0 ~~ fff.15
587 |(% style="width:393px" %)**PLC word address type**|(% style="width:350px" %)**Address format**|(% style="width:333px" %)**Address range**
588 |(% style="width:393px" %)S|(% style="width:350px" %)ddd|(% style="width:333px" %)S0 ~~ 255
589 |(% style="width:393px" %)TS|(% style="width:350px" %)ffff|(% style="width:333px" %)TS0 ~~ FFFF
590 |(% style="width:393px" %)TP|(% style="width:350px" %)ffff|(% style="width:333px" %)TP0 ~~ FFFF
591 |(% style="width:393px" %)CS|(% style="width:350px" %)ffff|(% style="width:333px" %)CS0 ~~ FFFF
592 |(% style="width:393px" %)CP|(% style="width:350px" %)ffff|(% style="width:333px" %)CP0 ~~ FFFF
593 |(% style="width:393px" %)N|(% style="width:350px" %)ffff|(% style="width:333px" %)N0 ~~ FFFF
594 |(% style="width:393px" %)F|(% style="width:350px" %)ffff|(% style="width:333px" %)F0 ~~ FFFF
595
596 = **Barcode Scanner** =
597
598 Supported: DELI 14880 barcode scanner
599
600 **HMI Setting**
601
602 (% class="table-bordered" %)
603 |**Items**|**Settings**|**Note**
604 |Protocol|Barcode Scanner|
605 |Connection|USB|
606
607 **Operating Procedures**
608
609 Select [Barcode Scanner];
610
611 (% style="text-align:center" %)
612 [[image:12.PLC Protocol_html_55a3056357320966.png||data-xwiki-image-style-alignment="center" height="266" width="600" class="img-thumbnail"]]
613
614 Set address for receiving;
615
616 Set correct length;
617
618 (% style="text-align:center" %)
619 [[image:12.PLC Protocol_html_30a4c9e9dd4db40b.png||data-xwiki-image-style-alignment="center" height="701" width="500" class="img-thumbnail"]]
620
621 **✎Note:**
622
623 * The protocol uploads the information acquired by the USB scanner to the HMI;
624 * The acquired information is displayed in string mode, so it is necessary to use [characters input/display] object;
625 * Recommended model: DELI 14880 barcode scanner;
626
627 = **Hitachi EHV Series (Ethernet)** =
628
629 Supported series: Hitachi EHV series
630
631 **HMI Settings**
632
633 (% class="table-bordered" %)
634 |**Items**|**Settings**|**Note**
635 |Protocol|Hitachi EHV series|
636 |Connection|Ethernet|
637 |Port No.|3004~~3007|
638
639 **Address List**
640
641 (% class="table-bordered" %)
642 |**Type**|**Register**|**Range**|**Format**|**Note**
643 |(% rowspan="6" %)Bit|T|0 - 2545|T DDDD|
644 |M|0 - 7FFF.f (Hex)|M HHHH.h|
645 |X|0 – FFFF.f (Hex)|X H1H2H3H4.h|(% rowspan="2" %)(((
646 H1H2H3H4 Module main number
647
648 H1: Remote number
649
650 H2: Unit number
651
652 H3: Slot number
653
654 H4: Word number of Module
655
656 H Sub number of Module
657
658 For example:X21.3
659
660 Slot number 2
661
662 Word number of module is 1
663
664 Bit number of module is 3
665
666 Remote number and unit number are 0
667 )))
668 |Y|0 – FFFF.f (Hex)|Y H1H2H3H4.h
669 |R|0 – FF.f (Hex)|R HH.h|
670 |L|0 - 73FF.f (Hex)|L HHHH.h|
671 |(% rowspan="6" %)Word|WM|0 - 7FFF (Hex)|WM HHHH|
672 |WX|0 – FFFF (Hex)|WX H1H2H3H4|(% rowspan="2" %)(((
673 H1H2H3H4 Module main number
674
675 H1: Remote number
676
677 H2: Unit number
678
679 H3: Slot number
680
681 H4: Word number of module
682
683 For example:WX21
684
685 Word number of module is 1
686
687 Slot number is 2
688
689 Remote number and unit number are 0
690 )))
691 |WY|0 – FFFF (Hex)|WY H1H2H3H4
692 |WR|0 – FFFF (Hex)|WR HHHH|
693 |WL|0 - 73FF (Hex)|WL HHHH|
694 |TC|0 - 2559|TC DDDD|
695
696 **Communication settings in HMI**
697
698 Enable HMI Ethernet in [Project Settings];
699
700 (% style="text-align:center" %)
701 [[image:12.PLC Protocol_html_43b671f18153910d.png||data-xwiki-image-style-alignment="center" height="107" width="405" class="img-thumbnail"]]
702
703 Set PLC IP in [Device IP] settings;
704
705 (% style="text-align:center" %)
706 [[image:12.PLC Protocol_html_d825387f5bde6cdd.png||data-xwiki-image-style-alignment="center" height="190" width="554" class="img-thumbnail"]]
707
708 **PLC Configuration**
709
710 Connect with PLC, select[Online mode];
711
712 (% style="text-align:center" %)
713 [[image:12.PLC Protocol_html_8430dda44e5c199c.png||data-xwiki-image-style-alignment="center" height="420" width="600" class="img-thumbnail"]]
714
715 Set IP address, it is the same LAN parameters with HMI;
716
717 (% style="text-align:center" %)
718 [[image:12.PLC Protocol_html_1d8a634f64e25fc3.png||data-xwiki-image-style-alignment="center" height="252" width="347" class="img-thumbnail"]]
719
720 3) Save PLC communication parameter, and restart PLC
721
722 **PLC Monitor Mode**
723
724 Connect with PLC and choose to “online” mode
725
726 (% style="text-align:center" %)
727 [[image:12.PLC Protocol_html_cdac598e770e3b67.png||data-xwiki-image-style-alignment="center" height="193" width="553" class="img-thumbnail"]]
728
729 Open I/O monitor sheet1
730
731 (% style="text-align:center" %)
732 [[image:12.PLC Protocol_html_68eb3518e5f80892.png||data-xwiki-image-style-alignment="center" height="369" width="559" class="img-thumbnail"]]
733
734 During monitoring bit address,1 pts should be selected; during monitoring word address, 16 pts should be selected
735
736 (% style="text-align:center" %)
737 [[image:12.PLC Protocol_html_774652d8daf548d4.png||data-xwiki-image-style-alignment="center" height="118" width="102" class="img-thumbnail"]]
738
739 Enter the register address, click OK to view the value of the register.
740
741 (% style="text-align:center" %)
742 [[image:12.PLC Protocol_html_bba169c300c92051.png||data-xwiki-image-style-alignment="center" height="404" width="600" class="img-thumbnail"]]
743
744 (% style="text-align:center" %)
745 [[image:12.PLC Protocol_html_d3b23bb9e81921a3.png||data-xwiki-image-style-alignment="center" height="404" width="600" class="img-thumbnail"]]
746
747 **✎Note:**
748
749 * Both word registers and bit registers support even continuous read/write functions;
750 * The range of registers is based on the specific PLC type;
751
752 **Cable Wiring**
753
754 (% style="text-align:center" %)
755 [[image:12.PLC Protocol_html_2297240b57346b2a.png||data-xwiki-image-style-alignment="center" height="170" width="401" class="img-thumbnail"]]
756
757 = **IEC60870-5 104 Client** =
758
759 **HMI Setting**
760
761 (% class="table-bordered" %)
762 |**Items**|(% style="width:725px" %)**Settings**|(% style="width:309px" %)**Note**
763 |Protocol|(% style="width:725px" %)IEC60870-5 104 Client|(% style="width:309px" %)
764 |Connection|(% style="width:725px" %)Ethernet|(% style="width:309px" %)
765 |Port No.|(% style="width:725px" %)2404|(% style="width:309px" %)
766
767 **Address List**
768
769 (% class="table-bordered" %)
770 |(% style="width:460px" %)**Type**|(% style="width:461px" %)**Register**|**Range**
771 |(% rowspan="9" style="width:460px" %)Bit|(% style="width:461px" %)SPTB|0~~16777215.7
772 |(% style="width:461px" %)SCNA|0~~16777215.7
773 |(% style="width:461px" %)DPTB|0~~16777215.7
774 |(% style="width:461px" %)DCNA|0~~16777215.7
775 |(% style="width:461px" %)METF|0~~16777215.7
776 |(% style="width:461px" %)SENC|0~~16777215.7
777 |(% style="width:461px" %)SENA|0~~16777215.7
778 |(% style="width:461px" %)MENA|0~~16777215.7
779 |(% style="width:461px" %)METD|0~~16777215.7
780 |(% rowspan="11" style="width:460px" %)Word|(% style="width:461px" %)SPTB|0~~16777215
781 |(% style="width:461px" %)SCNA|0~~16777215
782 |(% style="width:461px" %)DPTB|0~~16777215
783 |(% style="width:461px" %)DCNA|0~~16777215
784 |(% style="width:461px" %)SENA|0~~16777215
785 |(% style="width:461px" %)MENA|0~~16777215
786 |(% style="width:461px" %)METD|0~~16777215
787 |(% style="width:461px" %)INRO|0~~16777215
788 |(% style="width:461px" %)TIMESYN|0~~16777215
789 |(% style="width:461px" %)TIMEZ|0~~16777215
790 |(% style="width:461px" %)NTP|0~~16777215
791 |(% rowspan="2" style="width:460px" %)Double word|(% style="width:461px" %)METF|0~~16777215
792 |(% style="width:461px" %)SENC|0~~16777215
793
794 **Address Configuration**
795
796 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.
797
798 (% style="text-align:center" %)
799 [[image:12.PLC Protocol_html_ba78d143bf457ead.png||data-xwiki-image-style-alignment="center" height="369" width="600" class="img-thumbnail"]]
800
801 (% style="text-align:center" %)
802 [[image:12.PLC Protocol_html_23533fd5bb81f4ab.png||data-xwiki-image-style-alignment="center" height="389" width="600" class="img-thumbnail"]]
803
804 Extended tag name
805
806 Address range for the extended tag.
807
808 **Communication Settings**
809
810 Enable HMI Ethernet in [Project Settings];
811
812 (% style="text-align:center" %)
813 [[image:12.PLC Protocol_html_43b671f18153910d.png||data-xwiki-image-style-alignment="center" height="107" width="405" class="img-thumbnail"]]
814
815 Set PLC IP in [Device IP] settings;
816
817 (% style="text-align:center" %)
818 [[image:12.PLC Protocol_html_f848736ec68b125.png||data-xwiki-image-style-alignment="center" height="191" width="554" class="img-thumbnail"]]
819
820 **Cable Wiring**
821
822 (% style="text-align:center" %)
823 [[image:12.PLC Protocol_html_2297240b57346b2a.png||data-xwiki-image-style-alignment="center" height="170" width="401" class="img-thumbnail"]]
824
825 = **LG XGK FEnet Ethernet** =
826
827 Supported Series: LS XGT series XGK CPU with XGL-EFMT Ethernet module
828
829 **HMI Settings**
830
831 (% class="table-bordered" %)
832 |**Items**|**Settings**|**Note**
833 |Protocol|LG XGK FEnet(Ethernet)|
834 |Connection|Ethernet|
835 |Port No.|2004|
836
837 **Address List**
838
839 (% class="table-bordered" %)
840 |**Type**|**Register**|**Range**|**Format**|**Note**
841 |(% rowspan="14" %)Word|P|0~~2047|P d|
842 |M|0~~2047|M d|
843 |K|0~~2047|K d|
844 |F|0~~2047|F d|
845 |T|0~~2047|T d|
846 |C|0~~2047|C d|
847 |Z|0~~127|Z d|
848 |S|0~~127|S d|
849 |L|0~~11263|L d|
850 |N|0~~21503|N d|
851 |D|0~~32767|D d|
852 |R|0~~32767|R d|
853 |ZR|0~~65535|ZR d|
854 |UxDD|0~~6331|UxDD nndd|nn: 0~~63, dd: 0~~31
855
856 **✎Note:**
857
858 * In addition to the "UxDD" register, the others correspond to the PLC register one by one. UxDD corresponds to U in the PLC;
859 * 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;
860 * All bit registers are in the form of bits in word, and the range is the same as the word register;
861
862 **Communication settings in HMI**
863
864 Enable HMI Ethernet in [Project Settings];
865
866 (% style="text-align:center" %)
867 [[image:12.PLC Protocol_html_43b671f18153910d.png||data-xwiki-image-style-alignment="center" height="107" width="405" class="img-thumbnail"]]
868
869 Set PLC IP in [Device IP] settings;
870
871 (% style="text-align:center" %)
872 [[image:12.PLC Protocol_html_a2a19b5003ad4090.png||data-xwiki-image-style-alignment="center" height="189" width="554" class="img-thumbnail"]]
873
874 **Cable Wiring**
875
876 = **Mitsubishi** =
877
878 == **FX1S, 1N, 2N Series** ==
879
880 Supported Series: Mitsubishi FX1S, FX1N, FX2N series
881
882 **HMI Settings**
883
884 (% class="table-bordered" %)
885 |**Item**|**Settings**|**Note**
886 |Protocol|Mitsubishi FX1S/FX1N/FX2N|
887 |Connection|RS422/RS485/RS232|
888 |Baud rate|9600~~115200|
889 |Data bit|7/8|
890 |Parity|EVEN/Odd/None|
891 |Stop bit|1/2|
892 |PLC station No.|1~~255|
893
894 **Address List**
895
896 (% class="table-bordered" %)
897 |**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
898 |(% rowspan="7" %)Bit|X|X|Xo|0~~303237|
899 |Y|Y|Y o|0~~303237|
900 |M|M|M d|0~~99999|
901 |T|T|T d|0~~99999|
902 |C|C|C d|0~~99999|
903 |S|S|S d|0~~99999|
904 |SM|SM|SM d|8000~~9999|
905 |(% rowspan="8" %)Word|X|X|Xo|0~~303237|
906 |Y|Y|Y o|0~~303237|
907 |M|M|M d|0~~99999|
908 |T|T|T d|0~~99999|
909 |C|C|C d|0~~199|
910 |D|D|D d|0~~7999|
911 |S|S|S d|0~~99999|
912 |SD|SD|SD d|8000~~9999|
913
914 **Cable Wiring**
915
916 * **RS485**
917
918 (% style="text-align:center" %)
919 [[image:12.PLC Protocol_html_d4012bdeb4ce4aae.png||data-xwiki-image-style-alignment="center" height="244" width="394" class="img-thumbnail"]]
920
921 (% style="text-align:center" %)
922 [[image:12.PLC Protocol_html_4bf57ad8d44eacc4.png||data-xwiki-image-style-alignment="center" height="244" width="394" class="img-thumbnail"]]
923
924 * **RS422**
925
926 (% style="text-align:center" %)
927 [[image:12.PLC Protocol_html_f8a6bebc5792960d.png||data-xwiki-image-style-alignment="center" height="253" width="402" class="img-thumbnail"]]
928
929 **✎Note:** COM3 only available in PI8000/PI9000 series.
930
931 == **FX5U Ethernet** ==
932
933 Mitsubishi FX5U series PLC
934
935 **HMI Settings**
936
937 (% class="table-bordered" %)
938 |**Items**|**Settings**|**Note**
939 |Protocol|Mitsubishi FX5U|
940 |Connection|Ethernet|
941 |Port No.|5002|Must be the same as the PLC setting
942 |PLC station No.|0|
943
944 **Address List**
945
946 (% class="table-bordered" %)
947 |**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
948 |(% rowspan="15" %)Bit|X|X|X o|0~~303237|
949 |Y|Y|Y o|0~~303237|
950 |M|M|M d|0~~99999|
951 |B|B|B h|0~~7FFF|
952 |F|F|F d|0~~32767|
953 |SB|SB|SB h|0~~7FFF|
954 |TS|TS|TS d|0~~1023|
955 |TC|TC|TC d|0~~1023|
956 |STS|STS|STS d|0~~1023|
957 |STC|STC|STS d|0~~1023|
958 |CS|CS|CS d|0~~1023|
959 |CC|CC|CC d|0~~1023|
960 |SM|SM|SM d|0~~9999|
961 |L|L|L d|0~~32767|
962 |S|S|S d|0~~4095|
963 |(% rowspan="9" %)Word|W|W|W h|0~~3FF|
964 |TN|TN|TN d|0~~1023|
965 |STN|STN|STN d|0~~1023|
966 |CN|CN|CN d|0~~1023|
967 |R|R|R d|0~~32767|
968 |SW|SW|SW h|0~~7FFF|
969 |Z|Z|Z d|0~~23|
970 |D|D|D d|0~~7999|
971 |SD|SD|SD d|0~~11999|
972
973 **PLC Settings (GX Works 3)**
974
975 Find the [Ethernet port] in the navigation area.
976
977 (% style="text-align:center" %)
978 [[image:12.PLC Protocol_html_8e8f85ace087346c.png||data-xwiki-image-style-alignment="center" height="593" width="300" class="img-thumbnail"]]
979
980 Select [Own Node Settings] in the [Setting Item List];
981
982 Set [IP Address], [Subnet Mask], [Default Gateway];
983
984 Click [Detailed Settings] into [Ethernet Configuration (Built-in Ethernet Port)] windows;
985
986 (% style="text-align:center" %)
987 [[image:12.PLC Protocol_html_5d98495052c8c10e.png||data-xwiki-image-style-alignment="center" height="339" width="600" class="img-thumbnail"]]
988
989 Select [SLMP Connection Module] and add into host station as below picture shows;
990
991 Set Port number as 5002 (this is necessary settings);
992
993 Click [Close with Reflecting the Setting] to save and close window;
994
995 (% style="text-align:center" %)
996 [[image:12.PLC Protocol_html_14b489fdc6c6589d.png||data-xwiki-image-style-alignment="center" height="350" width="600" class="img-thumbnail"]]
997
998 Click [Apply] to completed Etherenet settings;
999
1000 Switch to the [On line data operation] interface as below, check the item and click [Execute] to download.
1001
1002 (% style="text-align:center" %)
1003 [[image:12.PLC Protocol_html_c93025a968a8a9e7.png||data-xwiki-image-style-alignment="center" height="434" width="600" class="img-thumbnail"]]
1004
1005 **Cable Wiring**
1006
1007 (% style="text-align:center" %)
1008 [[image:12.PLC Protocol_html_2297240b57346b2a.png||data-xwiki-image-style-alignment="center" height="170" width="401" class="img-thumbnail"]]
1009
1010 == **FX5U Serial Port** ==
1011
1012 Mitsubishi FX5U series PLC
1013
1014 **HMI Settings**
1015
1016 (% class="table-bordered" %)
1017 |**Item**|**Settings**|**Note**
1018 |Protocol|Mitsubishi FX5U|
1019 |Connection|RS422/RS485|
1020 |Baud rate|9600|
1021 |Data bit|7|
1022 |Parity|Odd|
1023 |Stop bit|1|
1024 |PLC station No.|1~~255|Need to be the same as PLC settings
1025
1026 **Address List**
1027
1028 (% class="table-bordered" %)
1029 |**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
1030 |(% rowspan="15" %)Bit|X|X|X o|0~~303237|
1031 |Y|Y|Y o|0~~303237|
1032 |M|M|M d|0~~99999|
1033 |B|B|B h|0~~7FFF|
1034 |F|F|F d|0~~32767|
1035 |SB|SB|SB h|0~~7FFF|
1036 |TS|TS|TS d|0~~1023|
1037 |TC|TC|TC d|0~~1023|
1038 |STS|STS|STS d|0~~1023|
1039 |STC|STC|STS d|0~~1023|
1040 |CS|CS|CS d|0~~1023|
1041 |CC|CC|CC d|0~~1023|
1042 |SM|SM|SM d|0~~9999|
1043 |L|L|L d|0~~32767|
1044 |S|S|S d|0~~4095|
1045 |(% rowspan="9" %)Word|W|W|W h|0~~3FF|
1046 |TN|TN|TN d|0~~1023|
1047 |STN|STN|STN d|0~~1023|
1048 |CN|CN|CN d|0~~1023|
1049 |R|R|R d|0~~32767|
1050 |SW|SW|SW h|0~~7FFF|
1051 |Z|Z|Z d|0~~23|
1052 |D|D|D d|0~~7999|
1053 |SD|SD|SD d|0~~11999|
1054
1055 **PLC Settings (GX Works 3)**
1056
1057 Create a blank FX5U project
1058
1059 Find the 485 serial port module in the system navigation bar and double click to enter the settings.
1060
1061 (% style="text-align:center" %)
1062 [[image:12.PLC Protocol_html_5c9cb13fac1e6c93.png||data-xwiki-image-style-alignment="center" height="462" width="200" class="img-thumbnail"]]
1063
1064 Select protocol in the setting item, and set parameters.
1065
1066 (% style="text-align:center" %)
1067 [[image:12.PLC Protocol_html_de942589ca070228.png||data-xwiki-image-style-alignment="center" height="324" width="600" class="img-thumbnail"]]
1068
1069 Set station number, and [Message Pattern] (Pattern 1 or Pattern 4)
1070
1071 (% style="text-align:center" %)
1072 [[image:12.PLC Protocol_html_387ec7d00b5feb59.png||data-xwiki-image-style-alignment="center" height="323" width="600" class="img-thumbnail"]]
1073
1074 Click the [Apply] button to finish the setting.
1075
1076 Click download and select the items as below, then click [execute] to download the configuration to PLC.
1077
1078 (% style="text-align:center" %)
1079 [[image:12.PLC Protocol_html_cdef1c5ec8cc2105.png||data-xwiki-image-style-alignment="center" height="434" width="600" class="img-thumbnail"]]
1080
1081 As soon as download is completed, connect PLC with serial port, then configure it in the [Specify Connection Destination Connection].
1082
1083 Done.
1084
1085 **Cable Wiring**
1086
1087 * **RS485**
1088
1089 (% style="text-align:center" %)
1090 [[image:12.PLC Protocol_html_d4012bdeb4ce4aae.png||data-xwiki-image-style-alignment="center" height="244" width="394" class="img-thumbnail"]]
1091
1092 (% style="text-align:center" %)
1093 [[image:12.PLC Protocol_html_4bf57ad8d44eacc4.png||data-xwiki-image-style-alignment="center" height="244" width="394" class="img-thumbnail"]]
1094
1095 * **RS422**
1096
1097 (% style="text-align:center" %)
1098 [[image:12.PLC Protocol_html_f8a6bebc5792960d.png||data-xwiki-image-style-alignment="center" height="253" width="402" class="img-thumbnail"]]
1099
1100 **✎Note:** COM3 only available in PI8000/PI9000 series.
1101
1102 == **L02 MELSEC (Ethernet)** ==
1103
1104 Mitsubishi Q series CPU built-in Ethernet port.
1105
1106 **HMI Settings**
1107
1108 (% class="table-bordered" %)
1109 |**Items**|**Settings**|**Note**
1110 |Protocol|MIT L02 CPU MELSEC|
1111 |Connection|Ethernet|
1112 |Port No.|1025|Must be the same as the PLC setting
1113 |PLC station No.|0|Must be the same as the PLC setting
1114
1115 **Address List**
1116
1117 (% class="table-bordered" %)
1118 |**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
1119 |Bit|X|X|X h|0~~FFFF|
1120 |Bit|Y|Y|Y h|0~~FFFF|
1121 |Bit|M|M|M d|0~~9999|
1122 |Bit|L|L|L d|0~~9999|
1123 |Bit|F|F|F d|0~~9999|
1124 |Bit|B|B|B h|0~~FFFF|
1125 |Bit|V|V|V d|0~~2047|
1126 |Bit|TC|TC|TC d|0~~9999|
1127 |Bit|SS|SS|SS d|0~~9999|
1128 |Bit|SC|SC|SC d|0~~9999|
1129 |Bit|CS|CS|CS d|0~~9999|
1130 |Bit|CC|CC|CC d|0~~9999|
1131 |Bit|SB|SB|SB h|0~~FFFF|
1132 |Bit|SM|SM|SM d|0~~2047|
1133 |Bit|STS|STS|STS d|0~~1023|
1134 |Bit|S|S|S d|0~~9999|
1135 |Bit|DX|DX|DX h|0~~FFFF|
1136 |Bit|DY|DY|DY h|0~~FFFF|
1137 |Bit|TS|TS|TS d|0~~9999|
1138 |Bit|Dbit|Dbit|Dbit d.d|0~~99999.0~~15|
1139 |Word|W|W|W h|0~~FFFF|
1140 |Word|TN|TN|TN d|0~~99999|
1141 |Word|SN|SN|SN d|0~~99999|
1142 |Word|CN|CN|CN d|0~~99999|
1143 |Word|R|R|R d|0~~99999|
1144 |Word|SW|SW|SW h|0~~FFFF|
1145 |Word|Z|Z|Z d|0~~99999|
1146 |Word|ZR|ZR|ZR h|0~~FFFF|
1147 |Word|D|D|D d|0~~99999|
1148
1149 **Communication Settings**
1150
1151 Enable HMI Ethernet in [Project Settings];
1152
1153 (% id="cke_bm_7504S" style="display:none" %) [[image:12.PLC Protocol_html_43b671f18153910d.png||height="107" width="405"]]
1154
1155 Set PLC IP in [Device IP] settings;
1156
1157 (% style="text-align:center" %)
1158 [[image:12.PLC Protocol_html_38189fae42f6caa7.png||data-xwiki-image-style-alignment="center" height="206" width="600" class="img-thumbnail"]]
1159
1160 **PLC Settings (GX Works2 )**
1161
1162 Create a project
1163
1164 Set PLC IP, subnet mask and gateway;
1165
1166 Select [Binary Code] as communication data code;
1167
1168 (% style="text-align:center" %)
1169 [[image:12.PLC Protocol_html_776e17505f3fc6c0.png||data-xwiki-image-style-alignment="center" height="524" width="600" class="img-thumbnail"]]
1170
1171 Set PLC port number, for example 1025
1172
1173 (% style="text-align:center" %)
1174 [[image:12.PLC Protocol_html_8d0d1a22d388f70b.png||data-xwiki-image-style-alignment="center" height="524" width="600" class="img-thumbnail"]]
1175
1176 Save settings;
1177
1178 Download project into PLC device;
1179
1180 Restart PLC device;
1181
1182 **Cable Wiring**
1183
1184 (% style="text-align:center" %)
1185 [[image:12.PLC Protocol_html_2297240b57346b2a.png||data-xwiki-image-style-alignment="center" height="170" width="401" class="img-thumbnail"]]
1186
1187 == **QJ71E71 MELSEC** ==
1188
1189 Mitsubishi QJ71E71 Ethernet communication module;
1190
1191 **HMI Settings**
1192
1193 (% class="table-bordered" %)
1194 |**Items**|**Settings**|**Note**
1195 |Protocol|MIT QJ71E71 MELSEC|
1196 |Connection|Ethernet|
1197 |Port No.|1025|Must be the same as the PLC setting
1198 |PLC station No.|0|Must be the same as the PLC setting
1199
1200 **Address List**
1201
1202 (% class="table-bordered" %)
1203 |**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
1204 |(% rowspan="18" %)Bit|X|X|X h|0~~1FFF|
1205 |Y|Y|Y h|0~~1FFF|
1206 |M|M|M d|0~~99999|
1207 |L|L|L d|0~~8191|
1208 |F|F|F d|0~~2047|
1209 |B|B|B h|0~~1FFF|
1210 |V|V|V d|0~~2047|
1211 |TS|TS|TS d|0~~2047|
1212 |TC|TC|TC d|0~~2047|
1213 |SS|SS|SS d|0~~2047|
1214 |SC|SC|SC d|0~~2047|
1215 |CS|CS|CS d|0~~1023|
1216 |CC|CC|CC d|0~~1023|
1217 |SB|SB|SB h|0~~7FF|
1218 |S|S|S d|0~~8191|
1219 |DX|DX|DX h|0~~1FFF|
1220 |DY|DY|DY h|0~~1FFF|
1221 |SM|SM|SM d|8000~~9999|
1222 |(% rowspan="10" %)Word|SD|SD|SD d|0~~2047|
1223 |D|D|D d|0~~12287|
1224 |W|W|W h|0~~1FFF|
1225 |TN|TN|TN d|0~~2047|
1226 |SN|SN|SN d|0~~2047|
1227 |CN|CN|CN d|0~~1023|
1228 |R|R|R d|0~~32767|
1229 |SW|SW|SW h|0~~7FF|
1230 |Z|Z|Z d|0~~15|
1231 |ZR|ZR|ZR h|0~~FE7FF|
1232
1233 **HMI Communication Settings**
1234
1235 1) Enable HMI Ethernet in [Project Settings];
1236
1237 (% id="cke_bm_7537S" style="display:none" %) [[image:12.PLC Protocol_html_43b671f18153910d.png||height="107" width="405"]]
1238
1239 2) Set PLC IP in [Device IP] settings;
1240
1241 (% style="text-align:center" %)
1242 [[image:12.PLC Protocol_html_2d566cb5ffb2618c.png||data-xwiki-image-style-alignment="center" height="190" width="554" class="img-thumbnail"]]
1243
1244 **PLC Settings(GX Works2)**
1245
1246 * Click [Ethernet/CC IE/MELSECNET];
1247 * Please select [Ethernet] as network type;
1248 * Set station I/O number according to situation (For example, 0000 means that the module is connected to PLC CPU in first order);
1249 * Select [Online] as Mode;(% id="cke_bm_8449S" style="display:none" %) [[image:12.PLC Protocol_html_acd084d845da380e.png||height="300" width="554"]]
1250 * Click [Operation setting] to set IP;
1251 * Select [Binary Code] as [Communication Data Code];(% id="cke_bm_8474S" style="display:none" %) [[image:12.PLC Protocol_html_a972e671d2bb9150.png||height="304" width="553"]]
1252 * Set protocol: TCP;
1253 * Set [unpassive] in [Open system];
1254 * Set [receive] in [Fixed buffer];
1255 * Set [procedure Exist] in [Fixed buffer communication];
1256 * Disable [Pairing open];
1257 * Set [No confirm] in [Existence confirmation];
1258 * Host station port number: 1025;
1259 * (% id="cke_bm_8547S" style="display:none" %)[[image:12.PLC Protocol_html_f2c432006cdd2f9.png||height="220" width="553"]](%%)Save settings;
1260 * Download project into PLC and restart it
1261
1262 **Cable Wiring**
1263
1264 (% style="text-align:center" %)
1265 [[image:12.PLC Protocol_html_2297240b57346b2a.png||data-xwiki-image-style-alignment="center" height="170" width="401" class="img-thumbnail"]]
1266
1267 = **MODBUS** =
1268
1269 == **MODBUS RTU Master** ==
1270
1271 Supported Series: MODBUS RTU CONTROLLER
1272
1273 HMI works as MODBUS SLAVE connecting with MASTER
1274
1275 (% style="text-align:center" %)
1276 [[image:12.PLC Protocol_html_44425b313b0a6b96.png||data-xwiki-image-style-alignment="center" height="571" width="544" class="img-thumbnail"]]
1277
1278
1279 (% style="text-align:center" %)
1280 [[image:12.PLC Protocol_html_b56b9da32c3caaa.png||data-xwiki-image-style-alignment="center" height="462" width="600" class="img-thumbnail"]]
1281
1282
1283 (% style="text-align:center" %)
1284 [[image:12.PLC Protocol_html_67cd25458b9c72a6.png||data-xwiki-image-style-alignment="center" height="462" width="600" class="img-thumbnail"]]
1285
1286 **HMI Settings**
1287
1288 (% class="table-bordered" %)
1289 |**Items**|**Settings**|**Note**
1290 |Protocol|MODBUS RTU Master|
1291 |Connection|RS485/RS232|
1292 |Baud rate|2400~~187500|
1293 |Data bit|8|
1294 |Parity|Even/ Odd/ None|
1295 |Stop bit|1/2|
1296 |Station No.|0~~255|
1297
1298 **Address List**
1299
1300 (% class="table-bordered" %)
1301 |**Type**|**HMI address**|**MODBUS code**|**Range**
1302 |Bit|HDX3000.0~~HDX3499.15|0|0~~7999
1303 |Word|HDW3500~~HDW7999|4|0~~4499
1304
1305 **Cable Wiring**
1306
1307 * **RS485**
1308
1309 (% style="text-align:center" %)
1310 [[image:12.PLC Protocol_html_68dfb6d383f0edd9.png||data-xwiki-image-style-alignment="center" height="244" width="394" class="img-thumbnail"]]
1311
1312 (% style="text-align:center" %)
1313 [[image:12.PLC Protocol_html_cbeb90cb4faaa8bc.png||data-xwiki-image-style-alignment="center" height="244" width="394" class="img-thumbnail"]]
1314
1315 * **RS232**
1316
1317 (% style="text-align:center" %)
1318 [[image:12.PLC Protocol_html_9030ba679545793b.png||data-xwiki-image-style-alignment="center" height="241" width="387" class="img-thumbnail"]]
1319
1320 **✎Note:** COM3 only available in PI8000/PI9000 series.
1321
1322 == **MODBUS RTU Slave (All function)/(All function OneBaseAddress)** ==
1323
1324 Supported Series: MODBUS RTU CONTROLLER
1325
1326 HMI works as MODBUS MASTER connecting with SLAVE.
1327
1328 The addresses in [All function] start from 0, while the addresses in [All function OneBaseAddress] start from 1 (offset 1).
1329
1330 (% style="text-align:center" %)
1331 [[image:12.PLC Protocol_html_7236139c887defad.png||data-xwiki-image-style-alignment="center" height="571" width="544" class="img-thumbnail"]]
1332
1333
1334 (% style="text-align:center" %)
1335 [[image:12.PLC Protocol_html_de80207f2b495c17.png||data-xwiki-image-style-alignment="center" height="462" width="600" class="img-thumbnail"]]
1336
1337
1338 (% style="text-align:center" %)
1339 [[image:12.PLC Protocol_html_4e9e8eff81c7ff8b.png||data-xwiki-image-style-alignment="center" height="462" width="600" class="img-thumbnail"]]
1340
1341 **HMI Settings**
1342
1343 (% class="table-bordered" %)
1344 |**Items**|**Settings**|**Note**
1345 |Protocol|MODBUS RTU Slave (All function)/( All function OneBaseAddress)|
1346 |Connection|RS485/RS232|
1347 |Baud rate|2400~~187500|
1348 |Data bit|8|
1349 |Parity|Even/ Odd/ None|
1350 |Stop bit|1/2|
1351 |PLC station No.|0~~255|
1352
1353 **Address List**
1354
1355 (% class="table-bordered" %)
1356 |**Type**|**Address Type**|**Function code & Description**
1357 |(% rowspan="11" %)Word|(% rowspan="3" %)3|04 (read input register: read current binary value in one or more input registers)
1358 |06 (write single register: write a binary value to a holding register)
1359 |10 (write values to multiple addresses )
1360 |(% rowspan="3" %)4|03 (read holding register: read current binary value in one or more holding registers)
1361 |06 (write single register: write a binary value to a holding register)
1362 |10 (write values to multiple addresses )
1363 |(% rowspan="3" %)W6|03 (read holding register: read current binary value in one or more holding registers)
1364 |06 (write single register: write a binary value to a holding register)
1365 |10 (write values to multiple addresses )
1366 |(% rowspan="2" %)W16|03 (read holding register: read current binary value in one or more holding registers)
1367 |10 (write values to multiple addresses )
1368 |(% rowspan="11" %)Bit|(% rowspan="3" %)0|01 (Read coil state)
1369 |05 (Force a single coil to force the on/off state of a logic coil)
1370 |0F (Write multiple bits, ie write continuously)
1371 |(% rowspan="3" %)1|02 (Read the input state)
1372 |05 (Force a single coil to force the on/off state of a logic coil)
1373 |0F (Write multiple bits)
1374 |(% rowspan="3" %)W5|01 (Read coil state to obtain the current state of a set of logic coils)
1375 |05 (Force a single coil to force the on/off state of a logic coil)
1376 |0F (Write multiple bits)
1377 |(% rowspan="2" %)W15|01 (Read coil state to obtain the current state of a set of logic coils)
1378 |0F (Write multiple bits)
1379
1380 **✎Note:**
1381
1382 * Modbus can also support getting bit from the word, which could access the address such as 100.1 and other formats.
1383 * The function codes sent out are the same as those that read and write words.
1384
1385 **Station number for more than one slaves**
1386
1387 If there are more than one slaves connected to HMI, please set slave station number during editing address, as below shows.
1388
1389 (% style="text-align:center" %)
1390 [[image:12.PLC Protocol_html_31f028c6d80be344.png||data-xwiki-image-style-alignment="center" height="515" width="485" class="img-thumbnail"]]
1391
1392 **Cable Wiring**
1393
1394 * **RS485**
1395
1396 (% style="text-align:center" %)
1397 [[image:12.PLC Protocol_html_68dfb6d383f0edd9.png||data-xwiki-image-style-alignment="center" height="244" width="394" class="img-thumbnail"]]
1398
1399 (% style="text-align:center" %)
1400 [[image:12.PLC Protocol_html_cbeb90cb4faaa8bc.png||data-xwiki-image-style-alignment="center" height="244" width="394" class="img-thumbnail"]]
1401
1402 * **RS232**
1403
1404 (% style="text-align:center" %)
1405 [[image:12.PLC Protocol_html_9030ba679545793b.png||data-xwiki-image-style-alignment="center" height="241" width="387" class="img-thumbnail"]]
1406
1407 **✎Note:** COM3 only available in PI8000/PI9000 series.
1408
1409 == **MODBUS TCP Slave (All function)** ==
1410
1411 Supported series: MODBUS TCP controller
1412
1413 HMI works as MODBUS TCP MASTER connecting with TCP SLAVE
1414
1415 (% style="text-align:center" %)
1416 [[image:12.PLC Protocol_html_8877cb7f39c2b607.png||data-xwiki-image-style-alignment="center" height="571" width="544" class="img-thumbnail"]]
1417
1418 (% style="text-align:center" %)
1419 [[image:12.PLC Protocol_html_e7e1f06f127a9175.png||data-xwiki-image-style-alignment="center" height="426" width="553" class="img-thumbnail"]]
1420
1421
1422 (% style="text-align:center" %)
1423 [[image:12.PLC Protocol_html_60bbfe5de79417a6.png||data-xwiki-image-style-alignment="center" height="163" width="553" class="img-thumbnail"]]
1424
1425 **HMI Setting**
1426
1427 (% class="table-bordered" %)
1428 |**Items**|**Settings**|**Note**
1429 |Protocol|MODBUS TCP Slave (All function)|
1430 |Connection|Ethernet|
1431 |Port No.|502|
1432 |PLC station No.|1|
1433
1434 **Address List**
1435
1436 (% class="table-bordered" %)
1437 |**Type**|**Register**|**Function code & Description**
1438 |(% rowspan="11" %)Word|(% rowspan="3" %)3|04 (read input register: read current binary value in one or more input registers)
1439 |06 (write single register: write a binary value to a holding register)
1440 |10 (write values to multiple addresses )
1441 |(% rowspan="3" %)4|03 (read holding register: read current binary value in one or more holding registers)
1442 |06 (write single register: write a binary value to a holding register)
1443 |10 (write values to multiple addresses )
1444 |(% rowspan="3" %)W6|03 (read holding register: read current binary value in one or more holding registers)
1445 |06 (write single register: write a binary value to a holding register)
1446 |10 (write values to multiple addresses )
1447 |(% rowspan="2" %)W16|03 (read holding register: read current binary value in one or more holding registers)
1448 |10 (write values to multiple addresses )
1449 |(% rowspan="11" %)Bit|(% rowspan="3" %)0|01 (Read coil state)
1450 |05 (Force a single coil to force the on/off state of a logic coil)
1451 |0F (Write multiple bits, ie write continuously)
1452 |(% rowspan="3" %)1|02 (Read the input state)
1453 |05 (Force a single coil to force the on/off state of a logic coil)
1454 |0F (Write multiple bits)
1455 |(% rowspan="3" %)W5|01 (Read coil state to obtain the current state of a set of logic coils)
1456 |05 (Force a single coil to force the on/off state of a logic coil)
1457 |0F (Write multiple bits)
1458 |(% rowspan="2" %)W15|01 (Read coil state to obtain the current state of a set of logic coils)
1459 |0F (Write multiple bits)
1460
1461 **Communication Settings**
1462
1463 Enable HMI Ethernet in [Project Settings];
1464
1465 (% style="text-align:center" %)
1466 [[image:12.PLC Protocol_html_43b671f18153910d.png||data-xwiki-image-style-alignment="center" height="107" width="405" class="img-thumbnail"]]
1467
1468 Set PLC IP in [Device IP] settings;
1469
1470 (% style="text-align:center" %)
1471 [[image:12.PLC Protocol_html_4bd3cc8348adecf8.png||data-xwiki-image-style-alignment="center" height="190" width="554" class="img-thumbnail"]]
1472
1473 **Cable Wiring**
1474
1475 (% style="text-align:center" %)
1476 [[image:12.PLC Protocol_html_2297240b57346b2a.png||data-xwiki-image-style-alignment="center" height="170" width="401" class="img-thumbnail"]]
1477
1478 = **Omron** =
1479
1480 == **EC55** ==
1481
1482 Supported device: EC55 temperature instrument
1483
1484 **HMI Settings**
1485
1486 (% class="table-bordered" %)
1487 |**Items**|**Settings**|**Note**
1488 |Protocol|Omron EC55|
1489 |Connection|RS485 (9600, 2, 7, EVEN)|
1490 |Port No.|None|
1491 |PLC station No.|0|
1492
1493 **Address List**
1494
1495 (% class="table-bordered" %)
1496 |**Type**|**Register**|**Device range**|**HMI range**|**Function**
1497 |(% rowspan="3" %)Double word|C0|0-13 (Hex)|0-19|Set read only parameter for area 0
1498 |C1|0-4D(Hex)|0-77|Set Read/Write parameter for area 0
1499 |C3|0-CD(Hex)|0-205|Set Read/Write parameter for area 1
1500 |(% rowspan="6" %)Word|80|0-13(Hex)|0-19|Set read only parameter in area 0
1501 |81|0-4D(Hex)|0-77|Set Read/Write parameter in area 0
1502 |83|0-CD(Hex)|0-205|Set Read/Write parameter in area 1
1503 |CP|-|0-6|Read controller intrinsic property
1504 |CS|-|0-2|Read controller states
1505 |CA|-|0-17|Action command
1506
1507 **Device Settings**
1508
1509 Omron E5CC PLC configuration
1510
1511 After entering the Communication Settings menu, please set the parameters to the default values for the following table. Press the cycle key of the instrument to enter the next setting.
1512
1513 (% style="text-align:center" %)
1514 [[image:12.PLC Protocol_html_3d95e093792ba98a.png||data-xwiki-image-style-alignment="center" height="229" width="550" class="img-thumbnail"]]
1515
1516 According to PLC configuration and communication port configuration information of the HMI, provide the corresponding steps and configuration screenshots. This configuration needs to communicate properly with the above PLC configuration. The project settings are as follows
1517
1518 (% style="text-align:center" %)
1519 [[image:12.PLC Protocol_html_be583aa69dd6cf4c.png||data-xwiki-image-style-alignment="center" height="242" width="550" class="img-thumbnail"]]
1520
1521 **✎Note:** The communication settings for HMI should be consistent with this setting.
1522
1523 **Cable Wiring**
1524
1525 (% style="text-align:center" %)
1526 [[image:12.PLC Protocol_html_5e9a81a14106da9e.png||data-xwiki-image-style-alignment="center" height="223" width="392" class="img-thumbnail"]]
1527
1528 (% style="text-align:center" %)
1529 [[image:12.PLC Protocol_html_1897d92be6948d58.png||data-xwiki-image-style-alignment="center" height="223" width="393" class="img-thumbnail"]]
1530
1531 **✎Note:**
1532
1533 * COM3 only available in PI8000/PI9000 series.
1534 * CA address could not support continuous writing function;
1535 * Because of CP address intrinsic property: read control intrinsic property, so please place the character input part in use. Set address with CP0 and character length 10, used to display controller type. And place a number input part, set address with CP5 (cache size). Do not place other CP type address without CP0 in screen, otherwise CP type address is invalid
1536 * When set value into read & write address, it is necessary to switch the temperature instrument meter to the corresponding interface according to the menu of the instrument where the address locates, so that the value could be written, otherwise, the value could not be written; When the communication write setting of the instrument is turned off, the writing function is invalid. Writing function could be opened by using the 00 address of the CA register, which write 01 value.
1537 * When continuous writing of a value to a read-write address, please make sure all continuous writing address could be written. Otherwise, if one of these addresses could not be written, then all continuous writing commands will fail.
1538 * Because of the mechanism problem, this protocol could not support CompoWay/F function that is read-write function of variables in protocol document.
1539 * When using double-word address, set the data format to 32 bits, otherwise the read/write function is unable.
1540 * Please set the communication delay time of 10ms in setting, to avoid that the instrument may not be able to communicate in a short time due to too fast data access and too much connection requests.
1541 * (% id="cke_bm_8690S" style="display:none" %)[[image:12.PLC Protocol_html_d428cad280fdefb3.png||height="276" width="347"]](%%)Because of the particularity of the instrument, it is necessary to write the value of the address in the menu interface corresponding to the address, and to enter the menu where the address locates, so that the value could be written.
1542
1543 == EtherNet/IP NX series ==
1544
1545 Supported series: Omron NX/NJ series
1546
1547 **HMI Setting**
1548
1549 (% class="table-bordered" %)
1550 |**Items**|**Settings**|**Note**
1551 |Protocol|Omron NX Ethernet/IP|
1552 |Connection|Ethernet|
1553 |Port No.|44818|
1554 |PLC station No.|1|
1555
1556 **Instruction**
1557
1558 1) In Sysmac Studio, please select [Publish Only] for [Network Publish] when setting address tag.
1559
1560 2) When [Do not publish] is selected for a tag, different import methods may lead to different results. When import tags by [Get Tags from Device], the tag will be eliminated. If [Import tags] is selected, the tags will be imported, but the communication will not succeed.
1561
1562 (% style="text-align:center" %)
1563 [[image:12.PLC Protocol_html_4156caf6f116c570.png||data-xwiki-image-style-alignment="center" height="277" width="600" class="img-thumbnail"]]
1564
1565 **Export labels from Sysmac Studio**
1566
1567 Launch Sysmac Studio, under Global Variables create the address labels, and thenselect [Tools] -> [Export Global Variables];
1568
1569 (% style="text-align:center" %)
1570 [[image:12.PLC Protocol_html_26f91dee66c723e9.png||data-xwiki-image-style-alignment="center" height="276" width="600" class="img-thumbnail"]]
1571
1572 Launch PIStudio, in [Communication] Settings add Omron NX Ethernet/IP protocol;
1573
1574 Click [Label manage];
1575
1576 (% style="text-align:center" %)
1577 [[image:12.PLC Protocol_html_cd38d2d0c5187f6b.png||data-xwiki-image-style-alignment="center" height="276" width="600" class="img-thumbnail"]]
1578
1579 Click [Import labels] and then select the file exported in step 1;
1580
1581 (% style="text-align:center" %)
1582 [[image:12.PLC Protocol_html_52bd5da678bef9b4.png||data-xwiki-image-style-alignment="center" height="403" width="600" class="img-thumbnail"]]
1583
1584 The Import Status field shows the result, click [OK] to finish importing address labels;
1585
1586 (% style="text-align:center" %)
1587 [[image:12.PLC Protocol_html_7f0465a589b98912.png||data-xwiki-image-style-alignment="center" height="291" width="600" class="img-thumbnail"]]
1588
1589 **Communication Settings**
1590
1591 Enable HMI Ethernet in [Project Settings];
1592
1593 (% style="text-align:center" %)
1594 [[image:12.PLC Protocol_html_43b671f18153910d.png||data-xwiki-image-style-alignment="center" height="107" width="405" class="img-thumbnail"]]
1595
1596 Set PLC IP in [Device IP] settings;
1597
1598 (% style="text-align:center" %)
1599 [[image:12.PLC Protocol_html_437cb087b36b5784.png||data-xwiki-image-style-alignment="center" height="330" width="600" class="img-thumbnail"]]
1600
1601
1602 (% style="text-align:center" %)
1603 [[image:12.PLC Protocol_html_60ef71528a99abf5.png||data-xwiki-image-style-alignment="center" height="188" width="554" class="img-thumbnail"]]
1604
1605 **Cable Wiring**
1606
1607 (% style="text-align:center" %)
1608 [[image:12.PLC Protocol_html_2297240b57346b2a.png||data-xwiki-image-style-alignment="center" height="170" width="401" class="img-thumbnail"]]
1609
1610 = **OpenCAN** =
1611
1612 OpenCan is based on CAN2.0 standard; OpenCAN protocols that could be configured autonomously to accept and send frames.
1613
1614 This protocol is only available in PI8000 series HMI.
1615
1616 **HMI Settings**
1617
1618 (% class="table-bordered" %)
1619 |**Items**|**Settings**|**Note**
1620 |Protocol|OPENCAN|
1621 |Connection|CAN port|
1622 |Baud rate|250000|
1623
1624 **CAN frame setting in HMI**
1625
1626 Click [OpenCAN setting] button in communication setting window;
1627
1628 (% style="text-align:center" %)
1629 [[image:12.PLC Protocol_html_e866b9e56e19785d.png||data-xwiki-image-style-alignment="center" height="503" width="600" class="img-thumbnail"]]
1630
1631 Click [Add] to create a new frame;
1632
1633 (% style="text-align:center" %)
1634 [[image:12.PLC Protocol_html_3a6f4e2141763c8f.png||data-xwiki-image-style-alignment="center" height="315" width="600" class="img-thumbnail"]]
1635
1636 (% class="table-bordered" %)
1637 |**No**|**Items**|**Description**
1638 |1|Add|add a frame related to register address
1639 |2|Insert|Select the position where you want to insert a frame, and click [Insert frame] to add a new frame in front of the current frame position
1640 |3|Frame manager|This list shows some of the main parameters for each frame that the user adds
1641 |4|Modify|Modify the frames in frame management
1642 |5|Copy|Copy one frame to another
1643 |6|Delete|Remove the selected frames from the list by modifying the frames in frame management. If no frames are selected in the list, the first frame is deleted.
1644 |7|Empty|All frames in the list are cleared
1645 |8|Browse|Displays configuration files in XML format in IE
1646 |9|OK|Complete the configuration of the frame and exit
1647
1648 Set CANBUS frame in setting windows
1649
1650 (% style="text-align:center" %)
1651 [[image:12.PLC Protocol_html_7c83130820321ef.png||data-xwiki-image-style-alignment="center" height="507" width="600" class="img-thumbnail"]]
1652
1653 (% class="table-bordered" %)
1654 |**No**|(% style="width:185px" %)**Items**|(% style="width:854px" %)**Description**
1655 |1|(% style="width:185px" %)ID|(% style="width:854px" %)Set the ID of a can frame in hexadecimal format;
1656 |2|(% style="width:185px" %)ID assign|(% style="width:854px" %)split the ID by PF, PS, and SA;
1657 |3|(% style="width:185px" %)Frame type|(% style="width:854px" %)Select Standard frame or Extended Frame;
1658 |4|(% style="width:185px" %)Frame format|(% style="width:854px" %)Select between data frame and remote Frame;
1659 |5|(% style="width:185px" %)Data|(% style="width:854px" %)Set the data part of CAN frame, with two Numbers representing a hexadecimal number and Spaces spaced; Maximum support of 8 bytes is defined according to CAN message;
1660 |6|(% style="width:185px" %)Use address|(% style="width:854px" %)(((
1661 Set the register address related to the CAN frame, which corresponds to the register address set on the main state one by one. The data obtained from the address is assigned continuously;
1662
1663 **Edit:** Set a bit or word address by its format;
1664
1665 **Option: **Set address options related to frame, enter “register address option” interface, specifically browse the following “register address option” interface;
1666 )))
1667 |(% rowspan="8" %)7|(% rowspan="8" style="width:185px" %)Data interactive configuration|(% style="width:854px" %)There are two interactive modes of the touch screen. One is that the touch screen actively sends frames, and the device receives and processes and feeds back. The other, on the contrary, passively receives frames from the device for processing and feedback;
1668 |(% style="width:854px" %)Send after receiving: if this item is selected, the interaction of the touch screen will act as a passive party, and the touch screen will receive the CAN frame first and send feedback. Unchecked items interact in the opposite way;
1669 |(% style="width:854px" %)Feedback mode: feedback mode includes no response, confirm response and data response;
1670 |(% style="width:854px" %)No response: the device or touch screen will not receive feedback;
1671 |(% style="width:854px" %)Confirm response: the device or the touch screen will receive feedback with confirmation, which could be used to compare the data parts. If this function is used, the 20 addresses before and after this address should not be used. All addresses of cata10-cata30 could not be used with the reply confirmation function of cata20;
1672 |(% style="width:854px" %)Data response: the device or touch screen will receive feedback with data, and the data to be separated from the feedback frame should be set to store in the register address;
1673 |(% style="width:854px" %)response ID: if the address wants to receive data on a frame with a different ID, set this, check "different from sender", and enter a different ID in the following input box. Without this setting, the screen will receive and process a frame with the same ID as the sender;
1674 |(% style="width:854px" %)Response timeout: sets whether the response frame timeout;
1675 |(% rowspan="3" %)8|(% rowspan="3" style="width:185px" %)Control address|(% style="width:854px" %)If ticked, enable sending when the value of the corresponding control bit number (address) is non-0.
1676 |(% style="width:854px" %)Control bit: CtrlBit register range 0~~255, if the control bit is ON, can instruction will run normally. Otherwise, it doesn't run;
1677 |(% style="width:854px" %)Manually send: a manually send tick indicates only one send;
1678 |9|(% style="width:185px" %)Flag configuration|(% style="width:854px" %)Communication control for each frame. Display OFF when communication is normal, and ON when communication is abnormal;
1679 |10|(% style="width:185px" %)Note|(% style="width:854px" %)Fill the text to explain the meaning of the frame;
1680 |11|(% style="width:185px" %)Data assign|(% style="width:854px" %)Preview the display in this table based on the address and the corresponding number of digits;
1681 |12|(% style="width:185px" %)Current operation display|(% style="width:854px" %)Display the description of current operation;
1682 |13|(% style="width:185px" %)Add|(% style="width:854px" %)Add a new frame;
1683 |14|(% style="width:185px" %)Save frame|(% style="width:854px" %)Save the configured frame format;
1684 |15|(% style="width:185px" %)Cancel|(% style="width:854px" %)Cancel the frame configuration;
1685
1686 Set CAN address (Read or write operation);
1687
1688 (% style="text-align:center" %)
1689 [[image:12.PLC Protocol_html_7e9f9b25eb6ae8ce.png||data-xwiki-image-style-alignment="center" height="446" width="600" class="img-thumbnail"]]
1690
1691 (% class="table-bordered" %)
1692 |**No.**|(% style="width:207px" %)**Item**|(% style="width:829px" %)**Description**
1693 |1|(% style="width:207px" %)Current address|(% style="width:829px" %)Displays the register type and register address set by the user in the data access interface
1694 |(% rowspan="3" %)2|(% rowspan="3" style="width:207px" %)Trigger|(% style="width:829px" %)Two operations, "read" and "write," are based on on-screen registers
1695 |(% style="width:829px" %)If "read" is selected, the register address is reading device data in a manner of sending frames set by the user in a loop.
1696 |(% style="width:829px" %)If "write" is selected, the screen data of the register address will be written into the device. The writing mode is that the user makes a write operation on the screen, which will trigger the sending of a frame set by the user.
1697 |(% rowspan="5" %)3|(% rowspan="3" style="width:207px" %)Data operation|(% style="width:829px" %)The read and write operations in the trigger conditions are set accordingly.
1698 |(% style="width:829px" %)If the trigger condition is a read operation, this section needs to set the position and length of the data to be obtained at the current address in the frame.
1699 |(% style="width:829px" %)If the trigger condition is a writing operation, there are two situations:(((
1700 * If the "add writing data to the frame" option is not selected, the frame set by the user will be sent directly when the user writes on the screen.
1701 * Select the "add the written data to the frame" option, and when the user writes on the screen, the program will insert the data in the frame set by the user and send the written data to the frame set by the user according to the data insertion position and length set by the user.
1702 )))
1703 |(% rowspan="2" style="width:207px" %)Position and length input format|(% style="width:829px" %)If the register type is a bit address, the decimal point is required to represent the bits in the byte. For example, 1.1 represents the first bit of the first byte of 8 bytes in the data frame, and the length is in bits, and so on.
1704 |(% style="width:829px" %)If the register type is word address, the integer only needs to represent the byte, such as 1, which represents the first byte of 8-byte data in the data frame, and the unit of length is byte, and so on.
1705 |4|(% style="width:207px" %)Add|(% style="width:829px" %)Add current configuration
1706 |5|(% style="width:207px" %)Close|(% style="width:829px" %)Close the configuration window to exit
1707
1708 **Multiple Packages Settings**
1709
1710 (% style="text-align:center" %)
1711 [[image:12.PLC Protocol_html_107e0f6b1a90afff.png||data-xwiki-image-style-alignment="center" height="341" width="600" class="img-thumbnail"]]
1712
1713 Check [Multiple packages supported] to open [Multiple package data] window, as below show.
1714
1715 Select Multiple package type
1716
1717 * Not Multiple packages
1718 * J1939 Multiple packages
1719 * Customized Multiple packages
1720
1721 Click [Edit Receive data] for [Receive] settings
1722
1723 * Start code+ Total length (J1939)
1724
1725 (% style="text-align:center" %)
1726 [[image:12.PLC Protocol_html_3c360c6b5aca51bf.png||data-xwiki-image-style-alignment="center" height="340" width="426" class="img-thumbnail"]]
1727
1728 As set above set, J1939 command is received by the HMI, only when its length is 25 bytes, and the start code is 0x57, 0x1B;
1729
1730 * Start code + Data max length (J1939)
1731
1732 (% style="text-align:center" %)
1733 [[image:12.PLC Protocol_html_74496b2a68cfcdde.png||data-xwiki-image-style-alignment="center" height="340" width="426" class="img-thumbnail"]]
1734
1735 As set above set, J1939 command is received by the HMI, only when its length less than 50 bytes, and the start code is 0x57, 0x1B;
1736
1737 * Data max length (J1939)
1738
1739 (% style="text-align:center" %)
1740 [[image:12.PLC Protocol_html_98cea3e7cbd8f05d.png||data-xwiki-image-style-alignment="center" height="340" width="426" class="img-thumbnail"]]
1741
1742 As set above set, J1939 command is received by the HMI, only when its length less than 50 bytes.
1743
1744 * Customized multiple package
1745
1746 (% style="text-align:center" %)
1747 [[image:12.PLC Protocol_html_4635bbe4d7999db0.png||data-xwiki-image-style-alignment="center" height="395" width="367" class="img-thumbnail"]]
1748
1749 As set above, It is received by the HMI, when the first frame starts with 0X57 0X1B, and the sum of the data lengths of multiple frames is equal to 79 bytes.
1750
1751 Click [Edit Send data] for [Send] setting
1752
1753 * J1939
1754
1755 (% style="text-align:center" %)
1756 [[image:12.PLC Protocol_html_a4769e44331ca732.png||data-xwiki-image-style-alignment="center" height="280" width="463" class="img-thumbnail"]]
1757
1758 [Data] is all data to be sent.
1759
1760 Since the frame of the J1939 frame contains the number of the data packet, so the data sent is: the first byte (number) + 7 bytes of data. If it is less than 7 bytes, it is sent in the actual number of bytes.
1761
1762 * Customized multiple package
1763
1764 (% style="text-align:center" %)
1765 [[image:12.PLC Protocol_html_78546f765d6f3deb.png||data-xwiki-image-style-alignment="center" height="280" width="463"]]
1766
1767 [Data] is all data to be sent.
1768
1769 As set above, fist frame length is 2 bytes, and others are sent with 6 bytes for every frame, if the last frame is less than 6 bytes, send according to the actual length.
1770
1771 **Cable Wiring**
1772
1773 (% style="text-align:center" %)
1774 [[image:12.PLC Protocol_html_fccede84efcbdc22.png||data-xwiki-image-style-alignment="center" height="111" width="391" class="img-thumbnail"]]
1775
1776 **✎Note:** The address interval between each frame need to be more than a word address;
1777
1778 = **SHIMADEN** =
1779
1780 == **FP23** ==
1781
1782 Supported series: SHIMADEN FP23 series
1783
1784 **HMI Setting**
1785
1786 (% class="table-bordered" %)
1787 |**Items**|**Settings**|**Note**
1788 |Protocol|SHIMADEN FP23 series|
1789 |Connection|RS485 (9600, 1, 7, EVEN)|
1790 |Port No.|None|
1791 |PLC station No.|0|
1792
1793 **Address List**
1794
1795 (% class="table-bordered" %)
1796 |**Device address**|**HMI register**|**Address range**|**Type**
1797 |0040-0043(HEX)|FP040|100064-200067|Read only
1798 |0100-010B(HEX)|FP100|100256-200267|Read only
1799 |0110-0142(HEX)|FP110|100272-200322|Read only
1800 |0182-0252(HEX)|FP182|100386-200594|Write only
1801 |0280-0281(HEX)|FP280|100640-200641|Read only
1802 |0300-030B(HEX)|FP300|100768-200779|Read and write
1803 |0380-039F(HEX)|FP380|100896-200927|Read and write
1804 |0400-04D7(HEX)|FP400|101024-201239|Read and write
1805 |0500-05B0(HEX)|FP500|101280-201456|Read and write
1806 |0600-0670(HEX)|FP600|101536-201814|Read and write
1807 |0720-0738(HEX)|FP720|101824-201848|Read and write
1808 |0800-083F(HEX)|FP800|102048-202111|Read and write
1809 |0900-0952(HEX)|FP900|102304-202386|Read and write
1810 | |Ctrl|0-2|
1811
1812 **✎Note:**
1813
1814 * The upper 2 bits of the address of the HMI register are taken as the sub address, and the real address is the last four bits (for example, if the address is 100256, then 10 is the sub address as 1, and 0256 is the real address);
1815 * The address range in the table is only divided by the start and end addresses, and some of the addresses in the range have no corresponding address in FP23;
1816 * The Ctrl register is used to store the control group number and BCC check mode.
1817
1818 **Ctrl Register Description**
1819
1820 * The Ctrl register is a special register that does not communicate with the temperature controller. User needs to assign value in the screen according to the settings as in the temperature controller.
1821 * Ctrl0 indicates the setting of the control character, the valid values are 1, 2, 3 respectively, and the corresponding control group is: STX_ETX_CR , STX_ETX_CR LF and @_:_CR .
1822 * Ctrl1 indicates the BCC block check mode. The valid value range is 1-4. The corresponding check mode is: 1.ADD, 2.ADD_two's cmp, 3.XOR, 4.None;
1823 * Ctrl3 reserved
1824
1825 **✎Note:**
1826
1827 After reloading the HMI project or restarting the HMI, HMI will reset the value of ctrl0 and ctrl1 as 1, so user need to set these two values to make it the same as it in the temperature controller, then communication will be normal.
1828
1829 **Cable Wiring**
1830
1831 (% style="text-align:center" %)
1832 [[image:12.PLC Protocol_html_5e9a81a14106da9e.png||data-xwiki-image-style-alignment="center" height="223" width="392" class="img-thumbnail"]]
1833
1834 (% style="text-align:center" %)
1835 [[image:12.PLC Protocol_html_1897d92be6948d58.png||data-xwiki-image-style-alignment="center" height="223" width="393" class="img-thumbnail"]]
1836
1837 **✎Note:** COM3 only available in PI8000/PI9000 series.
1838
1839 == **{{id name="_Toc23422"/}}SR90** ==
1840
1841 Supported series: SHIMADEN SR90 series
1842
1843 **HMI Setting**
1844
1845 (% class="table-bordered" %)
1846 |**Items**|**Settings**|**Note**
1847 |Protocol|SHIMADEN SR90 protocol|
1848 |Connection|RS485 (1200, 1, 7, EVEN)|
1849 |Port No.|None|
1850 |PLC station No.|0|
1851
1852 **Address List**
1853
1854 (% class="table-bordered" %)
1855 |**Device address**|**HMI register**|**Address range**|**Type**
1856 |0040-0043 (HEX)|SR040|100064-100067|Read only
1857 |0100-010A(HEX)|SR0100|100256-100266|Read only
1858 |0182-018C(HEX)|SR0182|100386-100396|Write only
1859 |0300-04FE(HEX)|SR0300|100768-101278|Write/read
1860 |0500-050B(HEX)|SR0500|101280-101291|Write/read
1861 |0590-0611(HEX)|SR0590|101424-101553|Write/read
1862 |0701-0709(HEX)|SR0701|101793-101801|Write/read
1863 | |Ctrl|0-2|~-~-
1864
1865 **✎Note:**
1866
1867 * The upper 2 bits of the address of HMIs are taken as the sub address, and the real address is the last four bits (for example, if the address is 100256, then 10 is the sub address as 1, and 0256 is the real address);
1868 * The address range in the table is only divided by the start and end addresses, and some of the addresses in the range have no corresponding address in SR90;
1869 * The Ctrl register is used to store the control group number and BCC check mode. See how to use it below;
1870
1871 **Ctrl Register Description**
1872
1873 * The Ctrl register is a special register that does not communicate with the temperature controller. User needs to assign value in the screen according to the settings as in the temperature controller.
1874 * Ctrl0 indicates the setting of the control character, the valid values are 1, 2, 3 respectively, and the corresponding control group is: STX_ETX_CR , STX_ETX_CR LF and @_:_CR .
1875 * Ctrl1 indicates the BCC block check mode. The valid value range is 1-4. The corresponding check mode is: 1.ADD, 2.ADD_two's cmp, 3.XOR, 4.None;
1876 * Ctrl3 reserved
1877
1878 **✎Note:**
1879
1880 After reloading the HMI project or restarting the HMI, HMI will reset the value of ctrl0 and ctrl1 as 1, so user need to set these two values to make it the same as it in the temperature controller, then communication will be normal.
1881
1882 **Cable Wiring**
1883
1884 (% style="text-align:center" %)
1885 [[image:12.PLC Protocol_html_5e9a81a14106da9e.png||data-xwiki-image-style-alignment="center" height="223" width="392" class="img-thumbnail"]]
1886
1887 (% style="text-align:center" %)
1888 [[image:12.PLC Protocol_html_1897d92be6948d58.png||data-xwiki-image-style-alignment="center" height="223" width="393" class="img-thumbnail"]]
1889
1890 **✎Note:** COM3 only available in PI8000/PI9000 series.
1891
1892 == **{{id name="_Toc22635"/}}MR13 series(standard protocol)** ==
1893
1894 Supported series: SHIMADEN MR13 series
1895
1896 **HMI Setting**
1897
1898 (% class="table-bordered" %)
1899 |**Items**|**Settings**|**Note**
1900 |Protocol|SHIMADEN standard protocol|
1901 |Connection|RS485 (1200, 1, 7, EVEN)|
1902 |Port No.|None|
1903 |PLC station No.|0|
1904
1905 **Address List**
1906
1907 (% class="table-bordered" %)
1908 |**Device address**|**HMI register**|**Address range**|**Type**
1909 |0100-010B(HEX)|MR100|100256-300267|Read only
1910 |0111-0126(HEX)|MR111|100273-300294|Read only
1911 |0184-0192(HEX)|MR184|100388-300402|Write only
1912 |0280-0282(HEX)|MR280|100640-300642|Read only
1913 |0300-030B(HEX)|MR300|100768-300779|Read/write
1914 |0314-0317(HEX)|MR314|100788-300791|Read/write
1915 |031A(HEX)|MR31A|100794-300794|Read/write
1916 |0320-0321(HEX)|MR320|100800-300801|Read/write
1917 |0400-0504(HEX)|MR400|101024-301284|Read/write
1918 |0506(HEX)|MR506|101286-301286|Read/write
1919 |0510-0514(HEX)|MR510|101296-301300|Read/write
1920 |0516-0524(HEX)|MR516|101302-301316|Read/write
1921 |0526(HEX)|MR526|101318-301318|Read/write
1922 |0580-08C3(HEX)|MR580|101408-302243|Read/write
1923 |~-~-|Ctrl|0-2|~-~-
1924
1925 **✎Note:**
1926
1927 * The upper 2 bits of the address of the HMI register are taken as the sub address, and the real address is the last four bits (for example, if the address is 100256, then 10 is the sub address as 1, and 0256 is the real address);
1928 * The address range in the table is only divided by the start and end addresses, and some of the addresses in the range have no corresponding address in MR13;
1929 * The Ctrl register is used to store the control group number and BCC check mode.
1930
1931 **Ctrl Register Description**
1932
1933 * The Ctrl register is a special register that does not communicate with the temperature controller. User needs to assign value in the screen according to the settings as in the temperature controller.
1934 * Ctrl0 indicates the setting of the control character, the valid values are 1, 2, 3 respectively, and the corresponding control group is: STX_ETX_CR, STX_ETX_CR LF and @_:_CR .
1935 * Ctrl1 indicates the BCC block check mode. The valid value range is 1-4. The corresponding check mode is: 1.ADD, 2.ADD_two's cmp, 3.XOR, 4.None;
1936 * Ctrl3 reserved
1937
1938 **✎Note:**
1939
1940 After reloading project or restarting the HMI, HMI will reset the value of ctrl0 and ctrl1 as 1, so user need to set these two values to make it the same as it in the temperature controller, then communication will be normal.
1941
1942 **Cable Wiring**
1943
1944 (% style="text-align:center" %)
1945 [[image:12.PLC Protocol_html_5e9a81a14106da9e.png||data-xwiki-image-style-alignment="center" height="223" width="392" class="img-thumbnail"]]
1946
1947 (% style="text-align:center" %)
1948 [[image:12.PLC Protocol_html_1897d92be6948d58.png||data-xwiki-image-style-alignment="center" height="223" width="393" class="img-thumbnail"]]
1949
1950 **✎Note:** COM3 only available in PI8000/PI9000 series.
1951
1952 = **Siemens** =
1953
1954 == **S7-200 Smart Ethernet** ==
1955
1956 Supported Series: Siemens S7-200 SMART Series Ethernet Module.
1957
1958 Website: [[http:~~/~~/www.siemens.com/entry/cc/en/>>url:http://www.siemens.com/entry/cc/en/]]
1959
1960 **HMI Setting**
1961
1962 (% class="table-bordered" %)
1963 |**Items**|**Settings**|**Note**
1964 |Protocol|Simens S7-200 Smart Ethernet|
1965 |Connection|Ethernet|
1966 |Port No.|102|
1967 |PLC station No.|2|
1968
1969 **Address List**
1970
1971 (% class="table-bordered" %)
1972 |**Type**|**Device register**|**HMI register**|**Format**|**Range**|**Note**
1973 |(% rowspan="9" %)Bit|I|I|I ddddd.o|0.0~~99999.7|
1974 |Q|Q|Q ddddd.o|0.0~~99999.7|
1975 |V|VWbit|VWbit ddddd.o|0.0~~99999.7|
1976 |V|V|V ddddd.o|0.0~~99999.7|
1977 |M|M|M ddddd.o|0.0~~99999.7|
1978 |SM|SM|ddddd.o|0.0~~99999.7|
1979 |S|S|ddddd.o|0.0~~99999.7|Read only
1980 |T|T|ddddd|0~~99999|Timer state, read only
1981 |C|C|ddddd|0~~99999|Counter state, read only
1982 |(% rowspan="12" %)Word|I|IW|IW ddddd|0~~99999|
1983 |Q|QW|QW ddddd|0~~99999|
1984 |AI|AIW|AIW ddddd|0~~99999|
1985 |AQ|VB|VB ddddd|0~~99999|
1986 |V|VW|VW ddddd|0~~99998|(((
1987 VW0=VB (0~~1)
1988
1989 VW2=VB (2~~3)
1990
1991 Address value is a multiple of 2
1992 )))
1993 |V|VD|VD ddddd|0~~99998|(((
1994 VD0=VB (0~~3)
1995
1996 VD2=VB (4~~7)
1997
1998 Address value is a multiple of 4
1999 )))
2000 |M|MB|MB ddddd|0~~99999|
2001 |M|MW|MW ddddd|0~~99999|(((
2002 MW0=MB(0~~1)
2003
2004 MW2=MB(2~~3)
2005
2006 Address value is a multiple of 2
2007 )))
2008 |M|MD|MD ddddd|0~~99999|(((
2009 MD0=MB(0~~3)
2010
2011 MD4=MB(4~~7)
2012
2013 Address value is a multiple of 4
2014 )))
2015 |T|TW|TW ddddd|0~~99999|Value of timer
2016 |C|CW|CW ddddd|0~~99999|Value of counter
2017 |W|SW|SW ddddd|0~~99999|
2018
2019 **Communication Settings**
2020
2021 Enable HMI Ethernet in [Project Settings];
2022
2023 (% style="text-align:center" %)
2024 [[image:12.PLC Protocol_html_43b671f18153910d.png||data-xwiki-image-style-alignment="center" height="107" width="405" class="img-thumbnail"]]
2025
2026 Set PLC IP in [Device IP] settings;
2027
2028 (% style="text-align:center" %)
2029 [[image:12.PLC Protocol_html_70b0c4c2ee21b10d.png||data-xwiki-image-style-alignment="center" height="189" width="554" class="img-thumbnail"]]
2030
2031 * PLC IP Address: PLC IP
2032 * PLC pot No.: 102(fixed)
2033 * Network:TCP_Client_2N(fixed)
2034
2035 (% style="text-align:center" %)
2036 [[image:12.PLC Protocol_html_5891afd92901b7ad.png||data-xwiki-image-style-alignment="center" height="276" width="347" class="img-thumbnail"]]
2037
2038 * Wait timeout: depend on actual network situation (more than 1500 ms)
2039
2040 **Cable Wiring**
2041
2042 (% style="text-align:center" %)
2043 [[image:12.PLC Protocol_html_2297240b57346b2a.png||data-xwiki-image-style-alignment="center" height="170" width="401" class="img-thumbnail"]]
2044
2045 == **S7-300 Ethernet** ==
2046
2047 Supported Series: Siemens S7-300 series PLC
2048
2049 **HMI Setting**
2050
2051 (% class="table-bordered" %)
2052 |**Items**|**Settings**|**Note**
2053 |Protocol|Simens S7-300 Ethernet|
2054 |Connection|Ethernet|
2055 |Port No.|102|
2056 |PLC station No.|2|Need to be same as the PLC setting
2057
2058 **Address List**
2059
2060 (% class="table-bordered" %)
2061 |**Type**|**Device register**|**HMI register**|**Format**|**Range**|**Note**
2062 |(% rowspan="4" %)Bit|I|I|I ddddd.o|0.0~~99999.7|
2063 |Q|Q|Q ddddd.o|0.0~~99999.7|
2064 |M|M|M ddddd.o|0.0~~99999.7|
2065 |DB0.DB~~DB99.DB|DBxDBD|DBxDB nndddd.o|0.0~~99999999.7|(((
2066 nn: block number;
2067
2068 dddd: address;
2069 )))
2070 |(% rowspan="8" %)Word|I|IW|IW ddddd|0~~99999|
2071 |Q|QW|QW ddddd|0~~99999|
2072 |(% rowspan="3" %)M|MB|MB ddddd|0~~99999|
2073 |MW|MW ddddd|0~~99999|(((
2074 MW0=MB(0~~1)
2075
2076 MW2=MB(2~~3)
2077
2078 Address value is a multiple of 2
2079 )))
2080 |MD|MD ddddd|0~~99999|(((
2081 MD0=MB(0~~3)
2082
2083 MD4=MB(4~~7)
2084
2085 Address value is a multiple of 4
2086 )))
2087 |(% rowspan="3" %)DB0.DB~~DB99.DB|DBxDBB|DBxDBB nndddd|0~~99999999|(% rowspan="3" %)(((
2088 nn: block number;
2089
2090 dddd: address
2091 )))
2092 |DBxDBW|DBxDBW nndddd|0~~99999999
2093 |DBxDBD|DBxDBD nndddd|0~~99999999
2094
2095 **Communication Settings**
2096
2097 Enable HMI Ethernet in [Project Settings];
2098
2099 (% style="text-align:center" %)
2100 [[image:12.PLC Protocol_html_43b671f18153910d.png||data-xwiki-image-style-alignment="center" height="107" width="405" class="img-thumbnail"]]
2101
2102 Set PLC IP in [Device IP] settings;
2103
2104 (% style="text-align:center" %)
2105 [[image:12.PLC Protocol_html_910b1a0aa9e2201c.png||data-xwiki-image-style-alignment="center" height="188" width="554" class="img-thumbnail"]]
2106
2107 * PLC IP Address: PLC IP
2108 * PLC pot No.: 102(fixed)
2109 * Network:TCP_Client_2N(fixed)
2110
2111 (% style="text-align:center" %)
2112 [[image:12.PLC Protocol_html_5891afd92901b7ad.png||data-xwiki-image-style-alignment="center" height="276" width="347" class="img-thumbnail"]]
2113
2114 * Wait timeout: depend on actual network situation (more than 1500 ms)
2115
2116 **Cable Wiring**
2117
2118 (% style="text-align:center" %)
2119 [[image:12.PLC Protocol_html_2297240b57346b2a.png||data-xwiki-image-style-alignment="center" height="170" width="401" class="img-thumbnail"]]
2120
2121 == **S7-1200 Ethernet** ==
2122
2123 Supported Series: Siemens S7-1200
2124
2125 **HMI Setting**
2126
2127 (% class="table-bordered" %)
2128 |**Items**|**Settings**|**Note**
2129 |Protocol|Siemens S7-1200|
2130 |Connection|Ethernet|
2131 |Port No.|102|
2132 |PLC station No.|2|
2133
2134 **Address List**
2135
2136 (% class="table-bordered" %)
2137 |**Type**|**Device register**|**HMI register**|**Format**|**Range**|**Note**
2138 |(% rowspan="4" %)Bit|I|I|M d.o|(((
2139 d:0~-~-9999
2140
2141 o:0-7
2142 )))|
2143 |Q|Q|Q d.o|(((
2144 d:0~-~-9999
2145
2146 o:0-7
2147 )))|
2148 |M|M|M d.o|(((
2149 d:0~-~-9999
2150
2151 o:0-7
2152 )))|
2153 |DB0.DB-DB99.DB|DBxDB|DBxDBnndddd.o|(((
2154 nn:0-9999,
2155
2156 dddd:0-9999,
2157
2158 o:0-7
2159 )))|(((
2160 nn:DB No.
2161
2162 dddd:address value
2163
2164 o: digit address
2165 )))
2166 |(% rowspan="8" %)Word|M|MB|MB d|d:0-99999|
2167 |M|MW|MW d|d:0-99999|(((
2168 MW0=MB(0~~1)
2169
2170 MW2=MB(2~~3)
2171
2172 Address value is a multiple of 2
2173 )))
2174 |M|MD|MD d|d:0-99999|(((
2175 MD0=MB(0~~3)
2176
2177 MD4=MB(4~~7)
2178
2179 Address value is a multiple of 4
2180 )))
2181 |I|IW|IW d|d:0-99999|
2182 |Q|QW|QW d|d:0-99999|
2183 |DB0.DB-DB99.DB|DBxDBB|DBxDBBnndddd|(((
2184 nn:0-9999
2185
2186 dddd:0-9999
2187 )))|(((
2188 nn:DB No.
2189
2190 dddd:address value
2191 )))
2192 |DB0.DB-DB99.DB|DBxDBW|DBxDBWnndddd|(((
2193 nn:0-9999
2194
2195 dddd:0-9999
2196 )))|(((
2197 nn:DB No.
2198
2199 dddd:address value
2200
2201 Address value is a multiple of 2
2202 )))
2203 |DB0.DB-DB99.DB|DBxDBD|DBxDBDnndddd|(((
2204 nn:0-9999
2205
2206 dddd:0-9999
2207 )))|(((
2208 nn:DB No.
2209
2210 dddd:address value
2211
2212 Address value is a multiple of 4
2213 )))
2214
2215 **Communication Settings**
2216
2217 Enable HMI Ethernet in [Project Settings];
2218
2219 (% style="text-align:center" %)
2220 [[image:12.PLC Protocol_html_43b671f18153910d.png||data-xwiki-image-style-alignment="center" height="107" width="405" class="img-thumbnail"]]
2221
2222 Set PLC IP in [Device IP] settings;
2223
2224 (% style="text-align:center" %)
2225 [[image:12.PLC Protocol_html_f7b3eb9abda33833.png||data-xwiki-image-style-alignment="center" height="190" width="554" class="img-thumbnail"]]
2226
2227 **✎Note:**
2228
2229 * The S7-1200 supports simultaneous connection of three devices, so the driver supports simultaneous access to PLC by three touch screens.
2230 * HMI access PLC, use S7 protocol, access PLC TSAP 02.01 (s7-1200 PROFINET interface only supports three connections, the default support), detailed reference to the system manual of S7-1200.
2231
2232 **PLC Settings**
2233
2234 Add BD
2235
2236 * Please uncheck [Symbolic access only] option;
2237
2238 (% style="text-align:center" %)
2239 [[image:12.PLC Protocol_html_643144c591994418.png||data-xwiki-image-style-alignment="center" height="546" width="550" class="img-thumbnail"]]
2240
2241 Address settings, using BD2 as example.
2242
2243 * DB×DBB2xxxx, DB×DBW2xxxx, DB×DBD2xxxx for accessing data of DB2 in B1.
2244 * 2 represent DB block number
2245 * xxxx represent address
2246
2247 **Such as:**
2248
2249 * DBxDBB20000 = DB2.DBB0
2250 * DBxDBW20004 = DB2.DBW4
2251
2252 (% style="text-align:center" %)
2253 [[image:12.PLC Protocol_html_87ceaea84d552e62.png||data-xwiki-image-style-alignment="center" height="245" width="537" class="img-thumbnail"]]
2254
2255 **How to connect with S7-1200 Firmware V4.0**
2256
2257 PLC configuration
2258
2259 * Double click [device configuration] in Siemens via software
2260 * Double click [protection] to enter protection configuration screen
2261
2262 (% style="text-align:center" %)
2263 [[image:12.PLC Protocol_html_9779940d38da8e07.png||data-xwiki-image-style-alignment="center" height="426" width="341" class="img-thumbnail"]]
2264
2265 * Check [Permit access with PUT / GET communication from remote partner (PLC, HMI, OPC, ...)]
2266
2267 (% style="text-align:center" %)
2268 [[image:12.PLC Protocol_html_d2c667b02f9720b1.png||data-xwiki-image-style-alignment="center" height="296" width="554" class="img-thumbnail"]]
2269
2270 DB settings
2271
2272 * Right click [DB], select [properties]
2273 * Uncheck [optimized block access]
2274
2275 **Cable Wiring**
2276
2277 (% style="text-align:center" %)
2278 [[image:12.PLC Protocol_html_2297240b57346b2a.png||data-xwiki-image-style-alignment="center" height="170" width="401" class="img-thumbnail"]]
2279
2280 == **LOGO Ethernet** ==
2281
2282 Supported Series: Siemens Logo 0BA0 series
2283
2284 **HMI Settings**
2285
2286 (% class="table-bordered" %)
2287 |**Items**|**Settings**|**Note**
2288 |Protocol|Siemens LOGO|
2289 |Connection|Ethernet|
2290 |Port No.|102|
2291 |PLC station No.|2|
2292
2293 **Address List**
2294
2295 (% class="table-bordered" %)
2296 |**Number**|**Address Type**|**Data Type**|**Range**|**DB Address**|**PLC Address**
2297 |1|RTC|Word|1-7|DB1.DBX984.0|0x001ec0
2298 |2|VB|Byte|0-1469|DB1.DBX0.0|0x000000
2299 |3|VD|Double Word|0-1466|DB1.DBX0.0|0x000000
2300 |4|VW|Word|0-1468|DB1.DBX0.0|0x000000
2301 |5|NAQ|Word|1-32|DB1.DBX1406.0|0x002bf0
2302 |6|NAI|Word|1-64|DB1.DBX1262.0|0x002770
2303 |7|AM|Word|1-64|DB1.DBX1118.0|0x0022f0
2304 |8|AQ|Word|1-16|DB1.DBX1072.0|0x002180
2305 |9|AI|Word|1-16|DB1.DBX1032.0|0x002040
2306 |10|I|Bit|1-64|DB1.DBX1024.0|0x002000
2307 |11|Q|Bit|1-64|DB1.DBX1064.0|0x002140
2308 |12|M|Bit|1-112|DB1.DBX1104.0|0x002280
2309 |13|NI|Bit|1-128|DB1.DBX1246.0|0x0026f0
2310 |14|NQ|Bit|1-128|DB1.DBX1390.0|0x002b70
2311 |15|V|Bit|0-14697|DB1.DBX0.0|0x000000
2312
2313 **PLC Settings in LOGO Software:**
2314
2315 Click [Tools]~-~-[Ethernet Connections],shown as below.
2316
2317 (% style="text-align:center" %)
2318 [[image:12.PLC Protocol_html_8b9d2322edf89519.png||data-xwiki-image-style-alignment="center" height="641" width="423" class="img-thumbnail"]]
2319
2320 Set Ethernet connection parameter. IP, Subnet Mask, shown as below.
2321
2322 (% style="text-align:center" %)
2323 [[image:12.PLC Protocol_html_6c4dd041b26cd8a1.png||data-xwiki-image-style-alignment="center" height="481" width="363" class="img-thumbnail"]]
2324
2325 **TSAP set**:The value set by local TSAP is the remote TSAP set in HMI. PLC's remote TSAP is the opposite,shown as below.
2326
2327 (% style="text-align:center" %)
2328 [[image:12.PLC Protocol_html_7af2611d3790a77d.png||data-xwiki-image-style-alignment="center" height="359" width="426" class="img-thumbnail"]]
2329
2330 **Download Project**: Click "Address book" to add the IP address to be downloaded (fi."Detect" to check whether the IP address can be detected. Then click “ok”, and the system will prompt that PLC will be "STOP" mode. Click “YES” to start download.
2331
2332 (% style="text-align:center" %)
2333 [[image:12.PLC Protocol_html_3243e4cd600595cc.png||data-xwiki-image-style-alignment="center" height="368" width="554" class="img-thumbnail"]]
2334
2335
2336 (% style="text-align:center" %)
2337 [[image:12.PLC Protocol_html_cb1d92e2cc91a8db.png||data-xwiki-image-style-alignment="center" height="320" width="553" class="img-thumbnail"]]
2338
2339
2340 **HMI Communication Settings**
2341
2342 Set PLC IP in [Device IP] settings;
2343
2344 (% style="text-align:center" %)
2345 [[image:SiemensLOGODeviceIP.png]]
2346
2347 Enable HMI Ethernet in [Project Settings];
2348
2349 (% style="text-align:center" %)
2350 [[image:12.PLC Protocol_html_95917a3d92068467.png||data-xwiki-image-style-alignment="center" height="311" width="553" class="img-thumbnail"]]
2351
2352 TSAP setting
2353
2354 * Regarding the setting of PLC TSAP, HMI provides system special address for setting, it is recommended to run in HMI script initialization, write PLC TSAP to corresponding system special register.
2355 * HSW10118 = local TSAP of HMI, this is remote TSAP of PLC.
2356 * HSW10119 = Remote TSAP of HMI, this is local TSAP of PLC.
2357
2358 **✎Note:**
2359
2360 * The data of TSAP is hexadecimal format. For example: the remote TSAP configured in the PLC is set to 20.00, then HSW10118 should be set to 0x2000, that is, HSW10118 = 8192.
2361
2362 (% style="text-align:center" %)
2363 [[image:12.PLC Protocol_html_5c6374b21f46e01e.png||data-xwiki-image-style-alignment="center" height="139" width="498" class="img-thumbnail"]]
2364
2365
2366 * AI word address and Ibit address are read-only and cannot be written on HMI.
2367 * VW address should be even number.such as VW0, VW2, VW4...
2368 * VD address it takes two VW addresses.such as VD0,VD4,VD8...
2369 * Written value of RTC cannot exceed 255.
2370
2371 **Cable Wiring**
2372
2373 (% style="text-align:center" %)
2374 [[image:12.PLC Protocol_html_2297240b57346b2a.png||data-xwiki-image-style-alignment="center" height="170" width="401" class="img-thumbnail"]]
2375
2376 == **S7-XXX Ethernet** ==
2377
2378 Supported Series: Siemens S7-400, S7-1200 and S7-1500
2379
2380 **HMI Setting**
2381
2382 (% class="table-bordered" style="width:823px" %)
2383 |=**Items**|=(% style="width: 437px;" %)**Settings**|=(% style="width: 201px;" %)**Note**
2384 |Protocol|(% style="width:437px" %)Siemens S7-XXX|(% style="width:201px" %)
2385 |Connection|(% style="width:437px" %)Ethernet|(% style="width:201px" %)
2386 |Port No.|(% style="width:437px" %)102|(% style="width:201px" %)
2387 |Device No.|(% style="width:437px" %)Slot (Default 1 for S7-1500/ 2 for S7-1200/ 3 for S7-400)|(% style="width:201px" %)
2388 |HMI No.|(% style="width:437px" %)Rack (Default as 0)|(% style="width:201px" %)
2389
2390 Slot from TIA Portal is equal to Device No. of PIStudio
2391
2392 Rack from TIA Portal is equal to HMI No. of PIStudio
2393
2394 (% style="text-align:center" %)
2395 [[image:S7-XXXCommunication Settings.png]]
2396
2397 (% style="text-align:center" %)
2398 [[image:S7-XXXCommunication SettingsPIStudio.png||alt="S7-XXXCommunication SettingsPI.png"]]
2399
2400 **Address List**
2401
2402 (% class="table-bordered" %)
2403 |**Type**|**Device register**|**HMI register**|**Format**|**Range**|**Note**
2404 |(% rowspan="4" %)Bit|I|I|M d.o|(((
2405 d:0~-~-9999
2406
2407 o:0-7
2408 )))|
2409 |Q|Q|Q d.o|(((
2410 d:0~-~-9999
2411
2412 o:0-7
2413 )))|
2414 |M|M|M d.o|(((
2415 d:0~-~-9999
2416
2417 o:0-7
2418 )))|
2419 |DB0.DB-DB99.DB|DBxDB|DBxDBnndddd.o|(((
2420 nn:0-9999,
2421
2422 dddd:0-9999,
2423
2424 o:0-7
2425 )))|(((
2426 nn:DB No.
2427
2428 dddd:address value
2429
2430 o: digit address
2431 )))
2432 |(% rowspan="8" %)Word|M|MB|MB d|d:0-99999|
2433 |M|MW|MW d|d:0-99999|(((
2434 MW0=MB(0~~1)
2435
2436 MW2=MB(2~~3)
2437
2438 Address value is a multiple of 2
2439 )))
2440 |M|MD|MD d|d:0-99999|(((
2441 MD0=MB(0~~3)
2442
2443 MD4=MB(4~~7)
2444
2445 Address value is a multiple of 4
2446 )))
2447 |I|IW|IW d|d:0-99999|
2448 |Q|QW|QW d|d:0-99999|
2449 |DB0.DB-DB99.DB|DBxDBB|DBxDBBnndddd|(((
2450 nn:0-9999
2451
2452 dddd:0-9999
2453 )))|(((
2454 nn:DB No.
2455
2456 dddd:address value
2457 )))
2458 |DB0.DB-DB99.DB|DBxDBW|DBxDBWnndddd|(((
2459 nn:0-9999
2460
2461 dddd:0-9999
2462 )))|(((
2463 nn:DB No.
2464
2465 dddd:address value
2466
2467 Address value is a multiple of 2
2468 )))
2469 |DB0.DB-DB99.DB|DBxDBD|DBxDBDnndddd|(((
2470 nn:0-9999
2471
2472 dddd:0-9999
2473 )))|(((
2474 nn:DB No.
2475
2476 dddd:address value
2477
2478 Address value is a multiple of 4
2479 )))
2480
2481 **Communication Settings**
2482
2483 Enable HMI Ethernet in [Project Settings];
2484
2485 (% style="text-align:center" %)
2486 [[image:12.PLC Protocol_html_43b671f18153910d.png||data-xwiki-image-style-alignment="center" height="107" width="405" class="img-rounded img-thumbnail"]]
2487
2488 Set PLC IP in [Device IP] settings;
2489
2490 (% style="text-align:center" %)
2491 [[image:12.PLC Protocol_html_f7b3eb9abda33833.png||data-xwiki-image-style-alignment="center" height="190" width="554" class="img-thumbnail"]]
2492
2493 **✎Note:**
2494
2495 * The S7-1200 supports simultaneous connection of three devices, so the driver supports simultaneous access to PLC by three touch screens.
2496 * HMI access PLC, use S7 protocol, access PLC TSAP 02.01 (s7-1200 PROFINET interface only supports three connections, the default support), detailed reference to the system manual of S7-1200.
2497
2498 **Cable Wiring**
2499
2500 {{id name="OLE_LINK8"/}}
2501
2502 (% style="text-align:center" %)
2503 [[image:12.PLC Protocol_html_2297240b57346b2a.png||data-xwiki-image-style-alignment="center" height="170" width="401" class="img-thumbnail"]]
2504
2505 = **User Defined Protocol** =
2506
2507 If the device does not support MODBUS standard, and the protocol is not list in PIStudio, then user can define the protocol by following instruction to realize simply communication functions like sending and receiving commands.
2508
2509 **HMI Settings**
2510
2511 (% class="table-bordered" %)
2512 |**Items**|**Settings**|**Note**
2513 |Protocol|User defined protocol|
2514 |Connection|RS485/RS232|
2515 |Baud rate|2400~~187500|
2516 |Stop bits|1/ 2|
2517 |Data bits|7/ 8|
2518 |Parity|None/ Even/ ODD|
2519
2520 **Operating Procedures**
2521
2522 Select [User defined protocol];
2523
2524 Click [User defined protocol] button to open setting window as below;
2525
2526 (% style="text-align:center" %)
2527 [[image:12.PLC Protocol_html_5ca13817ac812cf0.png||data-xwiki-image-style-alignment="center" height="367" width="437" class="img-thumbnail"]]
2528
2529 Configure user defined command;
2530
2531 (% style="text-align:center" %)
2532 [[image:12.PLC Protocol_html_11441e69f21e243d.png||data-xwiki-image-style-alignment="center" height="525" width="553" class="img-thumbnail"]]
2533
2534 (% class="table-bordered" %)
2535 |**No**|**Item**|**Description**
2536 |1|Instruction edit|The required command.
2537 |2|Mode|Write to address or read from the address.
2538 |3|Format|Encode format: HEX or ASCII.
2539 |4|Other|(((
2540 **No receiving: **HMI does not respond to the receiving command.
2541
2542 **Send after receiving:** HMI responds to the receiving command.
2543 )))
2544 |5|Manually send|(((
2545 Respond once after trigger the address.
2546
2547 Address: set the trigger address.
2548 )))
2549 |6|Add|Save this setting.
2550 |7|Cancel|Cancel current settings.
2551 |(% rowspan="4" %)8|Add|Add a new command.
2552 |Edit|Edit the selected command.
2553 |Delete|Delete the selected command.
2554 |Clear|Clear all the commands.
2555 |9|Instruction list|Display all current commands.
2556 |10|Address List|Display all the addresses added.
2557 |(% rowspan="5" %)11|Import|Import the command files to the instruction list.
2558 |Export|Export current command settings to local storage.
2559 |Browse|Browse local command files.
2560 |Advanced|Combine two commands.
2561 |Exit|Complete editing and exit setting.
2562
2563 **Operating Procedures**
2564
2565 Click [Add] to create a new command, as below shows;
2566
2567 (% style="text-align:center" %)
2568 [[image:12.PLC Protocol_html_463f2cd3a8c338fc.png||data-xwiki-image-style-alignment="center" height="116" width="88" class="img-thumbnail"]]
2569
2570 Select mode, [Read] or [Write], and then select Format, there are two options [Hex] and [ASCII]. As below shows;
2571
2572 (% style="text-align:center" %)
2573 [[image:12.PLC Protocol_html_a48eba3aa30b612d.png||data-xwiki-image-style-alignment="center" height="80" width="121" class="img-thumbnail"]]
2574
2575 Other settings: [No receiving] means HMI only sends command, and it would not process the reply command which from device. [Send after receiving] means HMI will be receiving the command which from device firstly, and then sending the command to device. From example, when HMI receiving [00 FF 00] firstly and then send command, as below shows
2576
2577 (% style="text-align:center" %)
2578 [[image:12.PLC Protocol_html_b36d990e126365d.png||data-xwiki-image-style-alignment="center" height="77" width="179" class="img-thumbnail"]]
2579
2580 Check [Manually send], and then please set the address for trigging, the setting range is 1~~10, and please put Bit switch in project screen for it, and [OneCtrlBit] register is for [Manually send].
2581
2582 Instruction edit, when the data format is HEX, please use two numbers to represent one 16-bit number. ASCII format using characters to input;
2583
2584 Check settings;
2585
2586 (% style="text-align:center" %)
2587 [[image:12.PLC Protocol_html_5ac7075d9e8dad8d.png||data-xwiki-image-style-alignment="center" height="185" width="554" class="img-thumbnail"]]
2588
2589 (% class="table-bordered" %)
2590 |**No**|**Items**|**Description**
2591 |1|Add checking|Add checking command when receiving the data.
2592 |(% rowspan="2" %)2|Back checking|Add control character in ASCII format.
2593 |Differ with send check|Set return checking.
2594 |(% rowspan="2" %)3|(% rowspan="2" %)Add control character|Start position: select the start position of the data which need to check.
2595 |Length: The data length need to be checked.
2596
2597 Object settings;
2598
2599 (% style="text-align:center" %)
2600 [[image:12.PLC Protocol_html_1e776a838316fb5.png||data-xwiki-image-style-alignment="center" height="185" width="554" class="img-thumbnail"]]
2601
2602 (% class="table-bordered" %)
2603 |**No**|**Items**|**Description**
2604 |(% rowspan="3" %)1|(% rowspan="3" %)Object settings|Object type: bit or word address;
2605 |Address: the triggering address;
2606 |Note: description to object;
2607 |2|Byte order|The numerical display order;
2608
2609 Data length settings;
2610
2611 (% style="text-align:center" %)
2612 [[image:12.PLC Protocol_html_6959664a46b03b69.png||data-xwiki-image-style-alignment="center" height="185" width="554" class="img-thumbnail"]]
2613
2614 (% class="table-bordered" %)
2615 |**No**|**Item**|**Description**
2616 |(% rowspan="2" %)1|(% rowspan="2" %)Return data|Position: the start position of the return data.
2617 |Length: the return data length.
2618 |(% rowspan="2" %)2|(% rowspan="2" %)Write data|Position: the start position of the write data.
2619 |Length: the write data length.
2620
2621 Instruction length settings
2622
2623 (% style="text-align:center" %)
2624 [[image:12.PLC Protocol_html_7e0d8613c5e12f7b.png||data-xwiki-image-style-alignment="center" height="185" width="554" class="img-thumbnail"]]
2625
2626 (% class="table-bordered" %)
2627 |**No**|**Item**|**Description**
2628 |1|Send length|The instruction data will only send designated data length.
2629 |2|Return length|The responds data length.
2630 |3|End code|Instruction will not be terminated until receiving [End code];
2631
2632 **Cable Wiring**
2633
2634 * **RS485**
2635
2636 (% style="text-align:center" %)
2637 [[image:12.PLC Protocol_html_5e9a81a14106da9e.png||data-xwiki-image-style-alignment="center" height="223" width="392" class="img-thumbnail"]]
2638
2639 (% style="text-align:center" %)
2640 [[image:12.PLC Protocol_html_1897d92be6948d58.png||data-xwiki-image-style-alignment="center" height="223" width="393" class="img-thumbnail"]]
2641
2642 * **RS232**
2643
2644 (% style="text-align:center" %)
2645 [[image:12.PLC Protocol_html_5de71638aab8e40d.png||data-xwiki-image-style-alignment="center" height="205" width="385" class="img-thumbnail"]]
2646
2647 **✎Note:** COM3 only available in PI8000/PI9000 series.
2648
2649 = =
2650
2651 = **Printer** =
2652
2653 == **TSPL label printer** ==
2654
2655 **Introduction**
2656
2657 TSPL label printer protocol supports following models.
2658
2659 * SPRT TL21: [[https:~~/~~/www.sprinter.com.cn/show-60-62-1.html>>https://www.sprinter.com.cn/show-60-62-1.html]]
2660 * DL-888D: [[https:~~/~~/www.deliworld.com/product/detail/7624>>https://www.deliworld.com/product/detail/7624]]
2661
2662 **Setting Step**
2663
2664 Select the protocol
2665
2666 * Create a new project, select the TSPL label printer protocol as shown below.
2667
2668 (% style="text-align:center" %)
2669 [[image:12.PLC Protocol_html_a2bec264816230db.png||data-xwiki-image-style-alignment="center" height="331" width="495" class="img-thumbnail"]]
2670
2671 Set parameters
2672
2673 * The connection between the TSPL label printer and the HMI is via the USB-A interface, no need to configure serial port parameters.
2674
2675 Printer register
2676
2677 (% class="table-bordered" %)
2678 |**Register**|**System**|**Range**|**Function**
2679 |TSPL_SP|decimal|0 - 1|Set the paper size
2680 |TSPL_PT|decimal|0 - 1999|Print text
2681 |TSPL_PQ|decimal|0 - 999|Print QR code
2682 |TSPL_PB|decimal|0 - 999|Print barcode
2683 |TSPL_PR|decimal|0 - 1|Print offset
2684 |TSPL_PN|decimal|0 - 0|Trigger printing
2685 |TSPL_PS|decimal|0 - 0|Print status
2686
2687 * Set paper size:
2688 ** TSPL_SP0: width of paper, unit: mm.
2689 ** TSPL_SP1: height of paper, unit: mm.
2690 * Print text:
2691 ** TSPL_PT can print up to 20 texts. TSPL_PT0-TSPL_PT99 is the first text; TSPL_PT100-TSPL_PT199 is the second text; … TSPL_PT1000-TSPL_PT1999 is the 20th text.
2692 ** Detailed parameter settings of each text is shown as below table. For example, first text,TSPL_PT0-TSPL_PT99.
2693
2694 (% class="table-bordered" %)
2695 |**Register**|**Function**|**Description**
2696 |TSPL_PT0|X coordinate|Unit: dot
2697 |TSPL_PT1|Ycoordinate|Unit: dot
2698 |TSPL_PT2|Rotation angle|(((
2699 0: 0 degrees
2700
2701 1: 90 degrees
2702
2703 2: 180 degrees
2704
2705 3: 270 degrees
2706 )))
2707 |TSPL_PT3|Size|Range: 0-3
2708 |TSPL_PT4 - TSPL_PT99|QR code content(text content)|Use character input device to configure
2709
2710 By analogy, we can know the text information configuration of the 2nd to 20th QR codes
2711
2712 Print QR code:
2713
2714 * TSPL_PQ can print up to 10 QR codes. TSPL_PQ0-TSPL_PQ99 is the first QR code; TSPL_PQ100-TSPL_PQ199 is the second QR code; ...., TSPL_PQ900-TSPL_PQ999 is the tenth QR code.
2715 * Specific parameter description of each item: for example, the first QR code, TSPL_PQ0-TSPL_PQ99:
2716
2717 (% class="table-bordered" %)
2718 |**Register**|**Function**|**Description**
2719 |TSPL_PQ0|X coordinate|Unit: dot
2720 |TSPL_PQ1|Ycoordinate|Unit: dot
2721 |TSPL_PQ2|Rotation angle|(((
2722 0: 0 degrees
2723
2724 1: 90 degrees
2725
2726 2: 180 degrees
2727
2728 3: 270 degrees
2729 )))
2730 |TSPL_PQ3|Size|Range: 0-5
2731 |TSPL_PQ4 - TSPL_PQ99|QR code content|Use character input device to configure
2732
2733 * By analogy, we can know the text information configuration of the 2nd to 20th QR codes.
2734
2735 Print bar code:
2736
2737 * TSPL_PB can print up to 10 barcodes. TSPL_PB0-TSPL_PB99 is the first bar code; TSPL_PB100-TSPL_PB199 is the second bar code; ..., TSPL_PB900-TSPL_PB999 is the tenth bar code.
2738 * Specific parameter description of each item: for example, the first barcode, TSPL_PB0-TSPL_PB99:
2739
2740 (% class="table-bordered" %)
2741 |**Register**|**Function**|**Description**
2742 |TSPL_PB0|X coordinate|Unit: dot
2743 |TSPL_PB1|Ycoordinate|Unit: dot
2744 |TSPL_PB2|Rotation angle|(((
2745 0: 0 degrees
2746
2747 1: 90 degrees
2748
2749 2: 180 degrees
2750
2751 3: 270 degrees
2752 )))
2753 |TSPL_PB3|height|Unit: dot
2754 |TSPL_PB4|width|Range:0-2
2755 |TSPL_PB5- TSPL_PB99|Bar code content|Use character input device to configure
2756
2757 By analogy, we can know the text information configuration of the 2nd to 20th bar codes.
2758
2759 Print offset:
2760
2761 * TSPL_PR0: X coordinate offset, unit: mm;
2762 * TSPL_PR1: Y coordinate offset, unit: mm.
2763
2764 Trigger printing:
2765
2766 * TSPL_PN0 = 1: trigger the printer to start printing.
2767
2768 Printing status:
2769
2770 * TSPL_PS0 = 1: The printing is normal.
2771 * TSPL_PS0 = 1: The printing is abnormal.
2772
2773 Print picture
2774
2775 * For the function of printing pictures, please refer to the configuration of [Printer object].
2776
2777 Conversion between dot and mm
2778
2779 * Dot is the meaning of pixels. For the conversion between dot and mm, please refer to the printer manual or consult the customer service of the corresponding printer manufacturer. For example, SPRT TL21: 8 dots / mm, that is, 1mm = 8 dot.
2780
2781 == **EpsonTM series** ==
2782
2783 **HMI Settings**
2784
2785 (% class="table-bordered" %)
2786 |**Item**|**Settings**|**Note**
2787 |Protocol|EPSON-TM-T82II/TM-XXX|
2788 |Connection|RS232|
2789 |Baud rate|9600~~115200|
2790 |Data bit|8|
2791 |Parity|None|
2792 |Stop bit|1|
2793 |PLC station No.|1|
2794
2795 Each printer protocol has default parameter. These parameters could be configured by addresses. Error parameters may cause print failure.
2796
2797 **Printer Settings**
2798
2799 (% class="table-bordered" %)
2800 |(% style="width:504px" %)**Address**|(% style="width:778px" %)**Description**|(% style="width:208px" %)**Value**
2801 |(% style="width:504px" %)HSW10603|(% style="width:778px" %)Print direction (only valid for print function)|(% style="width:208px" %)1
2802 |(% style="width:504px" %)HSW10604|(% style="width:778px" %)Dot Matrix Type|(% style="width:208px" %)1
2803 |(% style="width:504px" %)HSW10605|(% style="width:778px" %)Print width (depending on printer and paper)|(% style="width:208px" %)384
2804 |(% style="width:504px" %)HSW10606|(% style="width:778px" %)Printer instruction type|(% style="width:208px" %)1
2805 |(% style="width:504px" %)HSW10607|(% style="width:778px" %)Paper cut|(% style="width:208px" %)2
2806 |(% style="width:504px" %)HSW10608|(% style="width:778px" %)Alignment (only valid for print function)|(% style="width:208px" %)1
2807
2808 **Cable Wiring**
2809
2810 (% style="text-align:center" %)
2811 [[image:12.PLC Protocol_html_5e9a81a14106da9e.png||data-xwiki-image-style-alignment="center" height="223" width="392" class="img-thumbnail"]]
2812
2813 (% style="text-align:center" %)
2814 [[image:12.PLC Protocol_html_1897d92be6948d58.png||data-xwiki-image-style-alignment="center" height="223" width="393" class="img-thumbnail"]]
2815
2816 **✎Note:** COM3 only available in PI8000/PI9000 series.
2817
2818
2819 = **Schneider MODBUS RTU** =
2820
2821 **HMI Setting**
2822
2823 |=**Parameters**|=**Recommended**|=**Notes**
2824 |**Protocol**|(% colspan="1" %)Schneider MODBUS RTU|
2825 |Connection|RS485|
2826 |**Baud rate**|19200|
2827 |**Data bit**|8|
2828 |**Parity**|Even|
2829 |**Stop bit**|1|
2830 |**PLC station No.**|1|
2831
2832 **PLC Setting**
2833
2834 |=(% scope="row" %)**Communication mode**|Modbus RTU protocol
2835
2836 **Device Address**
2837
2838 |=**Bit/Word**|=**Device type**|=**Format**|=**Range**|=**Memo**
2839 |B|IX|DDDDDo|0 ~~ 655357|Input bit (read only)
2840 |B|QX|DDDDDo|0 ~~ 655357|Write multiple coils
2841 |B|MX|DDDDDDo|0 ~~ 9999997|Output register bit (octal)
2842 |W|MW|DDDDDD|0 ~~ 999999|Output register
2843 |DW|MD|DDDDDD|0 ~~ 999999|Output register
2844
2845 **Wiring Diagram**
2846
2847 **RS-485 2W **(RJ45 Connector): The following is the view from the soldering point of a connector.
2848
2849 (% style="text-align:center" %)
2850 [[image:image-20220817154212-1.jpeg||height="315" width="554" class="img-thumbnail"]]