Contact us for more information
X
*Company Name
*Name
*Email Address
Country
WhatsApp Number
*Detailed Description of Technical Question

Wiki source code of 11 PLC Protocol

Version 6.1 by Leo Wei on 2022/07/27 09:50

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