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 2.1 by Hunter on 2022/06/15 15:57

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