Wiki source code of Siemens

Version 5.1 by Joe on 2026/02/28 15:42

Hide last authors
Wecon 1.1 1 = {{id name="HSiemens"/}}**Siemens** =
2
3 == {{id name="HS7-200SmartA0Ethernet"/}}**S7-200 Smart Ethernet** ==
4
5 Supported Series: Siemens S7-200 SMART Series Ethernet Module.
6
7 Website: [[http:~~/~~/www.siemens.com/entry/cc/en/>>url:http://www.siemens.com/entry/cc/en/]]
8
9 **HMI Setting**
10
11 |**Items**|**Settings**|**Note**
12 |Protocol|Simens S7-200 Smart Ethernet|
13 |Connection|Ethernet|
14 |Port No.|102|
15 |PLC station No.|2|
16
17 **Address List**
18
19 |**Type**|**Device register**|**Format**|**Range**|**Note**
20 |(% rowspan="9" %)Bit|I|I ddddd.o|0.0~~99999.7|
21 |Q|Q ddddd.o|0.0~~99999.7|
22 |V|VWbit ddddd.o|0.0~~99999.7|HMI register:VWbit
23 |V|V ddddd.o|0.0~~99999.7|HMI register:V
24 |M|M ddddd.o|0.0~~99999.7|
25 |SM|ddddd.o|0.0~~99999.7|
26 |S|ddddd.o|0.0~~99999.7|Read only
27 |T|ddddd|0~~99999|Timer state, read only
28 |C|ddddd|0~~99999|Counter state, read only
29 |(% colspan="1" rowspan="18" %)Word|(% colspan="1" rowspan="2" %)I|IW ddddd|0~~99999|HMI register:IW
30 |IB ddddd|0~~99999|HMI register:IB
31 |(% colspan="1" rowspan="2" %)Q|QW ddddd|0~~99999|HMI register:QW
32 |QB ddddd|0~~99999|HMI register:QB
33 |(% colspan="1" rowspan="2" %)AI|AIW ddddd|0~~99999|HMI register:AIW
34 |AIB ddddd|0~~99999|HMI register:AIB
35 |(% colspan="1" rowspan="2" %)AQ|AQW ddddd|0~~99999|HMI register:AQW
36 |AQB ddddd|0~~99999|HMI register:AQB
37 |(% colspan="1" rowspan="3" %)V|VW ddddd|0~~99998|(((
38 HMI register:VW
39
40 VW0=VB (0~~1)
41
42 VW2=VB (2~~3)
43
44 Address value is a multiple of 2
45 )))
46 |VD ddddd|0~~99996|(((
47 HMI register:VD
48
49 VD0=VB (0~~3)
50
51 VD2=VB (4~~7)
52
53 Address value is a multiple of 4
54 )))
55 |VB ddddd|0~~99998|HMI register:VB
56 |(% colspan="1" rowspan="3" %)M|MW ddddd|0~~30|(((
57 HMI register:MW
58
59 MW0=MB(0~~1)
60
61 MW2=MB(2~~3)
62
63 Address value is a multiple of 2
64 )))
65 |MD ddddd|0~~99999|(((
66 (((
67 HMI register:MD
68
69 MD0=MB(0~~3)
70
71 MD4=MB(4~~7)
72
73 Address value is a multiple of 4
74 )))
75
76 (((
77
78 )))
79 )))
80 |MD dd|0~~31|HMI register:MB
81 |T|TW ddddd|0~~99999|(((
82 HMI register:MW
83
84 Value of timer
85 )))
86 |C|CW ddddd|0~~99999|(((
87 HMI register:CW
88
89 Value of counter
90 )))
91 |(% colspan="1" rowspan="2" %)S|SW ddddd|0~~99999|HMI register:SW
92 |SB ddddd|0~~99999|HMI register:SB
93
94 **Communication Settings**
95
96 Set PLC IP in [Device IP] settings;
97
98 {{id name="I12.PLCProtocol_html_70b0c4c2ee21b10d.png"/}}[[image:2.1.png||alt="12.PLC Protocol_html_70b0c4c2ee21b10d.png"]]
99
100 * PLC IP Address: PLC IP
101 * PLC pot No.: 102(fixed)
102 * Network:TCP_Client_2N(fixed)
103
104 {{id name="I12.PLCProtocol_html_5891afd92901b7ad.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_2043e24eb003e3a5.png||alt="12.PLC Protocol_html_5891afd92901b7ad.png" height="276" width="347"]]
105
106 * Wait timeout: depend on actual network situation (more than 1500 ms)
107
108 **PLC Setting:**
109
110 ①Open STEP 7-MicroWIN SMART, create a new PLC project or open the project that has been created.
111 Create new project:Double click[CPU SR20]→[System Block]→[Module] CPU SR20(AC/DC/Relay)→[OK].
112
113 (% style="text-align:center" %)
114 [[image:1.2.png]]
115
116 ②PLC Default Parameters: Double click[CPU SR20]→[System Block]→[Ethernet Port]→[IP Address]192.168.39.21[Subnet Mask]255.255.255.0[Default Gateway]192.168.39.1→[OK]
117
118 (% style="text-align:center" %)
119 [[image:1.3.png]]
120
121 **Cable Wiring**
122
123 {{id name="I12.PLCProtocol_html_2297240b57346b2a.png-4"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_ac8ece9a26719fda.png||alt="12.PLC Protocol_html_2297240b57346b2a.png" height="170" width="401"]]
124
125 == {{id name="HS7-300Ethernet"/}}**S7-300 Ethernet** ==
126
127 Supported Series: Siemens S7-300 series PLC
128
129 **HMI Setting**
130
131 |**Items**|**Settings**|**Note**
132 |Protocol|Simens S7-300 Ethernet|
133 |Connection|Ethernet|
134 |Port No.|102|
135 |PLC station No.|2|Need to be same as the PLC setting
136
137 **Address List**
138
139 |**Type**|**Device register**|**HMI register**|**Format**|**Range**|**Note**
140 |(% rowspan="4" %)Bit|I|I|I ddddd.o|0.0~~99999.7|
141 |Q|Q|Q ddddd.o|0.0~~99999.7|
142 |M|M|M ddddd.o|0.0~~99999.7|
143 |DB0.DB~~DB9999.DB|DBxDBD|DBxDB nnnndddd.o|0.0~~99999999.7|(((
144 nnnn: block number;
145
146 dddd: address;
147 )))
148 |(% rowspan="8" %)Word|I|IW|IW ddddd|0~~99999|
149 |Q|QW|QW ddddd|0~~99999|
150 |(% rowspan="3" %)M|MB|MB ddddd|0~~99999|
151 |MW|MW ddddd|0~~99999|(((
152 MW0=MB(0~~1)
153
154 MW2=MB(2~~3)
155
156 Address value is a multiple of 2
157 )))
158 |MD|MD ddddd|0~~99999|(((
159 MD0=MB(0~~3)
160
161 MD4=MB(4~~7)
162
163 Address value is a multiple of 4
164 )))
165 |(% rowspan="3" %)DB0.DB~~DB9999.DB|DBxDBB|DBxDBB nnnndddd|0~~99999999|(% rowspan="3" %)(((
166 nnnn: block number;
167
168 dddd: address
169 )))
170 |DBxDBW|DBxDBW nnnndddd|0~~99999999
171 |DBxDBD|DBxDBD nnnndddd|0~~99999999
172
173 **Communication Settings**
174
175 Enable HMI Ethernet in [Project Settings];
176
177 {{id name="I12.PLCProtocol_html_43b671f18153910d.png-7"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_a98ee09dac36eba3.png||alt="12.PLC Protocol_html_43b671f18153910d.png" height="107" width="405"]]
178
179 Set PLC IP in [Device IP] settings;
180
181 {{id name="I12.PLCProtocol_html_910b1a0aa9e2201c.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_c63825de4f904ef1.png||alt="12.PLC Protocol_html_910b1a0aa9e2201c.png" height="188" width="554"]]
182
183 * PLC IP Address: PLC IP
184 * PLC pot No.: 102(fixed)
185 * Network:TCP_Client_2N(fixed)
186
187 {{id name="I12.PLCProtocol_html_5891afd92901b7ad.png-1"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_2043e24eb003e3a5.png||alt="12.PLC Protocol_html_5891afd92901b7ad.png" height="276" width="347"]]
188
189 * Wait timeout: depend on actual network situation (more than 1500 ms)
190
191 **Cable Wiring**
192
193 {{id name="I12.PLCProtocol_html_2297240b57346b2a.png-5"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_ac8ece9a26719fda.png||alt="12.PLC Protocol_html_2297240b57346b2a.png" height="170" width="401"]]
194
195 == {{id name="HS7-1200A0Ethernet"/}}**S7-1200 Ethernet** ==
196
197 Supported Series: Siemens S7-1200
198
199 **HMI Setting**
200
201 |**Items**|**Settings**|**Note**
202 |Protocol|Siemens S7-1200|
203 |Connection|Ethernet|
204 |Port No.|102|
205 |PLC station No.|2|
206
207 **Address List**
208
209 |**Type**|**Device register**|**HMI register**|**Format**|**Range**|**Note**
210 |(% rowspan="4" %)Bit|I|I|M d.o|(((
211 d:0~-~-9999
212
213 o:0-7
214 )))|
215 |Q|Q|Q d.o|(((
216 d:0~-~-9999
217
218 o:0-7
219 )))|
220 |M|M|M d.o|(((
221 d:0~-~-9999
222
223 o:0-7
224 )))|
225 |DB0.DB-DB99.DB|DBxDB|DBxDBnndddd.o|(((
226 nn:0-9999,
227
228 dddd:0-9999,
229
230 o:0-7
231 )))|(((
232 nn:DB No.
233
234 dddd:address value
235
236 o: digit address
237 )))
238 |(% rowspan="8" %)Word|M|MB|MB d|d:0-99999|
239 |M|MW|MW d|d:0-99999|(((
240 MW0=MB(0~~1)
241
242 MW2=MB(2~~3)
243
244 Address value is a multiple of 2
245 )))
246 |M|MD|MD d|d:0-99999|(((
247 MD0=MB(0~~3)
248
249 MD4=MB(4~~7)
250
251 Address value is a multiple of 4
252 )))
253 |I|IW|IW d|d:0-99999|
254 |Q|QW|QW d|d:0-99999|
255 |DB0.DB-DB99.DB|DBxDBB|DBxDBBnndddd|(((
256 nn:0-9999
257
258 dddd:0-9999
259 )))|(((
260 nn:DB No.
261
262 dddd:address value
263 )))
264 |DB0.DB-DB99.DB|DBxDBW|DBxDBWnndddd|(((
265 nn:0-9999
266
267 dddd:0-9999
268 )))|(((
269 nn:DB No.
270
271 dddd:address value
272
273 Address value is a multiple of 2
274 )))
275 |DB0.DB-DB99.DB|DBxDBD|DBxDBDnndddd_D|(((
276 nn:0-9999
277
278 dddd:0-9999
279 )))|(((
280 nn:DB No.
281
282 dddd:address value
283
284 Address value is a multiple of 4
285 )))
286
287 **Communication Settings**
288
289 Enable HMI Ethernet in [Project Settings];
290
291 {{id name="I12.PLCProtocol_html_43b671f18153910d.png-8"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_a98ee09dac36eba3.png||alt="12.PLC Protocol_html_43b671f18153910d.png" height="107" width="405"]]
292
293 Set PLC IP in [Device IP] settings;
294
295 {{id name="I12.PLCProtocol_html_f7b3eb9abda33833.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_ded8f04f5bfd39be.png||alt="12.PLC Protocol_html_f7b3eb9abda33833.png" height="190" width="554"]]
296
297 **✎Note:**
298
299 * The S7-1200 supports simultaneous connection of three devices, so the driver supports simultaneous access to PLC by three touch screens.
300 * 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.
301 * S7-1200 String type, the default first two bytes are used to store the maximum character and valid characters, so the text data will be shifted back one word address. When interacting with the data, what way this address plc is displayed with is unknown. And because of an extra word of data causes us to display the wrong. The solution is if we use String, then the actual data address we want to operate on is actually shifted back two bytes, so as long as the address on the project is shifted back 2 bits to correspond with the actual data address.
302 * HMI operation character length needs to be set to 2 times the length of the Siemens character for proper display.
303
304 **PLC Settings**
305
306 Add BD
307
308 * Please uncheck [Symbolic access only] option;
309
310 {{id name="I12.PLCProtocol_html_643144c591994418.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_872ec32d12b55aa.png||alt="12.PLC Protocol_html_643144c591994418.png" height="546" width="550"]]
311
312 Address settings, using BD2 as example.
313
314 * DB×DBB2xxxx, DB×DBW2xxxx, DB×DBD2xxxx for accessing data of DB2 in B1.
315 * 2 represent DB block number
316 * xxxx represent address
317
318 **Such as:**
319
320 * DBxDBB20000 = DB2.DBB0
321 * DBxDBW20004 = DB2.DBW4
322
323 {{id name="I12.PLCProtocol_html_87ceaea84d552e62.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_8ee8d3ac3637bfc4.png||alt="12.PLC Protocol_html_87ceaea84d552e62.png" height="245" width="537"]]
324
325 **How to connect with S7-1200 Firmware V4.0**
326
327 PLC configuration
328
329 * Double click [device configuration] in Siemens via software
330 * Double click [protection] to enter protection configuration screen
331
332 {{id name="I12.PLCProtocol_html_9779940d38da8e07.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_664a826cd356c830.png||alt="12.PLC Protocol_html_9779940d38da8e07.png" height="426" width="341"]]
333
334 * Check [Permit access with PUT / GET communication from remote partner (PLC, HMI, OPC, ...)]
335
Joe 2.1 336 {{id name="I12.PLCProtocol_html_d2c667b02f9720b1.png"/}}
Wecon 1.1 337
Joe 2.1 338 (% style="text-align:center" %)
339 [[image:企业微信截图_17573996048878.png]]
340
Wecon 1.1 341 DB settings
342
343 * Right click [DB], select [properties]
344 * Uncheck [optimized block access]
345
346 **Cable Wiring**
347
348 {{id name="I12.PLCProtocol_html_2297240b57346b2a.png-6"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_ac8ece9a26719fda.png||alt="12.PLC Protocol_html_2297240b57346b2a.png" height="170" width="401"]]
349
350 == {{id name="HS7-XXXEthernet"/}}**S7-XXX Ethernet** ==
351
352 Supported Series: Siemens S7-400, S7-1200 and S7-1500
353
354 **HMI Setting**
355
356 |=**Items**|=**Settings**|=**Note**
357 |Protocol|Siemens S7-XXX|
358 |Connection|Ethernet|
359 |Port No.|102|
360 |Device No.|Slot (Default 1 for S7-1500/ 2 for S7-1200/ 3 for S7-400)|
361 |HMI No.|Rack (Default as 0)|
362
363 Slot from TIA Portal is equal to Device No. of PIStudio
364
365 Rack from TIA Portal is equal to HMI No. of PIStudio
366
367 {{id name="IS7-XXXCommunicationSettings.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_d78bc267e5fc6394.png||alt="S7-XXXCommunication Settings.png" height="503" width="798"]]
368
Joe 2.1 369 Check [Permit access with PUT / GET communication from remote partner (PLC, HMI, OPC, ...)]
370
371 (% style="text-align:center" %)
372 [[image:企业微信截图_17573996048878.png]]
373
374
375
376
Wecon 1.1 377 {{id name="IS7-XXXCommunicationSettingsPIStudio.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_561c9c5b1c99916b.png||alt="S7-XXXCommunication SettingsPI.png" height="706" width="908"]]
378
379 **Address List**
380
381 |**Type**|**Device register**|**HMI register**|**Format**|**Range**|**Note**
382 |(% rowspan="4" %)Bit|I|I|M d.o|(((
383 d:0~-~-9999
384
385 o:0-7
386 )))|
387 |Q|Q|Q d.o|(((
388 d:0~-~-9999
389
390 o:0-7
391 )))|
392 |M|M|M d.o|(((
393 d:0~-~-9999
394
395 o:0-7
396 )))|
397 |DB0.DB-DB99.DB|DBxDB|DBxDBnndddd.o|(((
398 nn:0-9999,
399
400 dddd:0-9999,
401
402 o:0-7
403 )))|(((
404 nn:DB No.
405
406 dddd:address value
407
408 o: digit address
409 )))
410 |(% rowspan="8" %)Word|M|MB|MB d|d:0-99999|
411 |M|MW|MW d|d:0-99999|(((
412 MW0=MB(0~~1)
413
414 MW2=MB(2~~3)
415
416 Address value is a multiple of 2
417 )))
418 |M|MD|MD d|d:0-99999|(((
419 MD0=MB(0~~3)
420
421 MD4=MB(4~~7)
422
423 Address value is a multiple of 4
424 )))
425 |I|IW|IW d|d:0-99999|
426 |Q|QW|QW d|d:0-99999|
427 |DB0.DB-DB99.DB|DBxDBB|DBxDBBnndddd|(((
428 nn:0-9999
429
430 dddd:0-9999
431 )))|(((
432 nn:DB No.
433
434 dddd:address value
435 )))
436 |DB0.DB-DB99.DB|DBxDBW|DBxDBWnndddd|(((
437 nn:0-9999
438
439 dddd:0-9999
440 )))|(((
441 nn:DB No.
442
443 dddd:address value
444
445 Address value is a multiple of 2
446 )))
447 |DB0.DB-DB99.DB|DBxDBD|DBxDBDnndddd|(((
448 nn:0-9999
449
450 dddd:0-9999
451 )))|(((
452 nn:DB No.
453
454 dddd:address value
455
456 Address value is a multiple of 4
457 )))
458
459 **Communication Settings**
460
461 Enable HMI Ethernet in [Project Settings];
462
463 {{id name="I12.PLCProtocol_html_43b671f18153910d.png-9"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_a98ee09dac36eba3.png||alt="12.PLC Protocol_html_43b671f18153910d.png" height="107" width="405"]]
464
465 Set PLC IP in [Device IP] settings;
466
467 {{id name="I12.PLCProtocol_html_f7b3eb9abda33833.png-1"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_ded8f04f5bfd39be.png||alt="12.PLC Protocol_html_f7b3eb9abda33833.png" height="190" width="554"]]
468
469 **✎Note:**
470
471 * The S7-1200 supports simultaneous connection of three devices, so the driver supports simultaneous access to PLC by three touch screens.
472 * 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.
473
474 **Cable Wiring**
475
476 {{id name="Ihttps:2F2Fdocs.we-con.com.cn2Fbin2Fdownload2FPIStudio2F12.PLC2520protocols2FWebHome2F12.PLC2520Protocol_html_2297240b57346b2a.png3Fwidth3D40126height3D17026rev3D1.1-5"/}}[[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_2297240b57346b2a.png?width=401&height=170&rev=1.1||alt="12.可编程逻辑控制器Protocol_html_2297240b57346b2a.png" height="170" width="401"]]
477
478 == {{id name="cke_bm_25456S"/}}{{id name="HLOGOEthernet"/}}** LOGO Ethernet** ==
479
480 Supported Series: Siemens Logo 0BA0, 0BA1 series
481
482 **HMI Settings**
483
484 |**Items**|**Settings**|**Note**
485 |Protocol|Siemens LOGO|
486 |Connection|Ethernet|
487 |Port No.|102|
488 |PLC station No.|2|
489
490 **Address List**
491
492 |**Number**|**Address Type**|**Data Type**|**Range**|**DB Address**|**PLC Address**
493 |1|RTC|Word|1-7|DB1.DBX984.0|0x001ec0
494 |2|VB|Byte|0-1469|DB1.DBX0.0|0x000000
495 |3|VD|Double Word|0-1466|DB1.DBX0.0|0x000000
496 |4|VW|Word|0-1468|DB1.DBX0.0|0x000000
497 |5|NAQ|Word|1-32|DB1.DBX1406.0|0x002bf0
498 |6|NAI|Word|1-64|DB1.DBX1262.0|0x002770
499 |7|AM|Word|1-64|DB1.DBX1118.0|0x0022f0
500 |8|AQ|Word|1-16|DB1.DBX1072.0|0x002180
501 |9|AI|Word|1-16|DB1.DBX1032.0|0x002040
502 |10|I|Bit|1-64|DB1.DBX1024.0|0x002000
503 |11|Q|Bit|1-64|DB1.DBX1064.0|0x002140
504 |12|M|Bit|1-112|DB1.DBX1104.0|0x002280
505 |13|NI|Bit|1-128|DB1.DBX1246.0|0x0026f0
506 |14|NQ|Bit|1-128|DB1.DBX1390.0|0x002b70
507 |15|V|Bit|0-14697|DB1.DBX0.0|0x000000
508
509 **PLC Settings in LOGO Software:**
510
511 Click [Tools]~-~-[Ethernet Connections],shown as below.
512
513 {{id name="I12.PLCProtocol_html_8b9d2322edf89519.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_d13df637bfedcc52.png||alt="12.PLC Protocol_html_8b9d2322edf89519.png" height="641" width="423"]]
514
515 Set Ethernet connection parameter. IP, Subnet Mask, shown as below.
516
517 {{id name="Iimage-20221228142937-4.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_316247e0130c4c55.png||alt="image-20221228142937-4.png" height="484" width="366"]]
518
519 **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.
520
521 {{id name="Iimage-20221228143047-5.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_facc6ee1af05162f.png||alt="image-20221228143047-5.png" height="626" width="1088"]]
522
523 **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.
524
525 {{id name="Iimage-20221228143246-6.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_d43d2b7b2599ee64.png||alt="image-20221228143246-6.png" height="698" width="688"]]
526
527 **HMI Communication Settings**
528
529 Set PLC IP in [Device IP] settings;
530
531 {{id name="Iimage-20221228143614-7.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_58cea5198cb7c78a.png||alt="image-20221228143614-7.png" height="706" width="909"]]
532
533 Enable HMI Ethernet in [Project Settings];
534
535 {{id name="Iimage-20221228144229-9.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_7904cd9b484f6634.png||alt="image-20221228144229-9.png" height="451" width="793"]]
536
537 TSAP setting
538
539 * 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.
540 * HSW10118/HSW1200 = local TSAP of HMI, this is remote TSAP of PLC.
541 * HSW10119/HSW1201 = Remote TSAP of HMI, this is local TSAP of PLC.
542 * PI, PI+, i series (1.0 system): use HSW10118, HSW10119.
543 ie, ig series: use HSW1200, HSW1201.
544 HMI V2.0: use HSW1200, HSW1201.
545
546 **✎Note:**
547
548 * The data of TSAP is hexadecimal format. For example: the remote TSAP configured in the PLC is set to 20.00, then HSW10118/HSW1200 should be set to 0x2000, that is, HSW10118/HSW1200=8192.
549 * HSW10119/HSW1201 is set up as shown.
550 * {{id name="Iimage-20221228144800-11.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_c518682b5f97ac1b.png||alt="image-20221228144800-11.png" height="144" width="538"]]
551 * {{id name="Iimage-20221228144708-10.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_885bd6754ccb5593.png||alt="image-20221228144708-10.png" height="127" width="537"]]
552
553 * AI word address and Ibit address are read-only and cannot be written on HMI.
554 * VW address should be even number address, such as VW0, VW2, VW4..., because in the address rule of Siemens PLC, the value of odd number address is equal to the value of previous even number address. For example VW1 = VW0.
555 * VD address should be multiple of 4, because it occupies two VW addresses, such as VD0, VD4, VD8...
556 * Written value of RTC cannot exceed 255.
557
Joe 5.1 558 (% class="box infomessage" %)
559 (((
560 Note: HSW10118 and HSW10119 are supported in HMI V1.0 system. HSW1200 and HSW1201 are supported in HMI V2.0 system.
561 )))
562
Wecon 1.1 563 **Cable Wiring**
564
565 {{id name="Ihttps:2F2Fdocs.we-con.com.cn2Fbin2Fdownload2FPIStudio2F12.PLC2520protocols2FWebHome2F12.PLC2520Protocol_html_2297240b57346b2a.png3Fwidth3D40126height3D17026rev3D1.1-6"/}}[[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_2297240b57346b2a.png?width=401&height=170&rev=1.1||alt="12.可编程逻辑控制器Protocol_html_2297240b57346b2a.png" height="170" width="401"]]
566
567 == {{id name="HS7-30028WithPCAdapter29"/}}**S7-300(With PC Adapter)** ==
568
569 **HMI Setting:**
570
571 |=**Parameters**|=**Recommended**|=**Options**|=**Notes**
572 |=**PLC type**|(% colspan="2" %)SIEMENS S7-300 (with PC Adapter)|
573 |=**PLC I/F**|RS232| |
574 |=**Baud rate**|19200|9600,19200|
575 |=**Data bits**|8| |
576 |=**Parity**|Odd| |
577 |=**Stop bits**|1| |
578 |=**PLC sta. no.**|2| |Must be same as the PLC setting.
579
580 **Device Address**
581
582 |=**Bit/Word**|=**Device type**|=**Format**|=**Range**|=**Memo**
583 |=Bit|I|DDDDo|0 ~~ 40957|Input (I)
584 |=Bit|Q|DDDDo|0 ~~ 40957|Output (O)
585 |=Bit|M|DDDDo|0 ~~ 40957|Bit Memory
586 |=Word|DB1 to DB99|DDDDDo|0 ~~ 655327|
587 |=Word|IW|DDDD|0 ~~ 4095|Input (I)
588 |=Word|QW|DDDD|0 ~~ 4095|Output (O)
589 |=Word|MW|DDDD|0 ~~ 4095|Bit Memory
590 |=Double word|MD|DDDD|0 ~~ 4094|
591 |=Double word|DBDn|FFFFFDDDD|0 ~~ 655359999|Data Register Double Word (must be even)
592 |=Byte|MB|DDDD|0 ~~ 4095|Bit Memory Byte
593
594 **Cable Wiring**
595
596 {{id name="Iimage-20221010102051-1.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_77dc63b5c3645636.png||alt="image-20221010102051-1.png" height="239" width="395"]]
597
598 == **S7-200 Smart Serial ** ==
599
600 Supported Series: Siemens S7-200 SMART Series.
601
602 Website: [[http:~~/~~/www.siemens.com/entry/cc/en/>>url:http://www.siemens.com/entry/cc/en/]]
603
604 **HMI Setting**
605
606 |=**Parameters**|=**Recommended**|=**Notes**
607 |=**PLC type**|(% colspan="1" %)SIEMENS S7-200 CPU22x/Smart PPI new|
608 |=**PLC I/F**|RS485|
609 |=**Baud rate**|9600|
610 |=**Data bits**|8|
611 |=**Parity**|EVEN|
612 |=**Stop bits**|1|
613 |=**PLC sta. no.**|2|Must be same as the PLC setting.
614
615 **Address List**
616
617 (% style="width:1081px" %)
618 |=(% style="width: 114px;" %)**Type**|=(% style="width: 287px;" %)**Device registers**|=**HMI registers**|=**Format**|=**Range**|=(% style="width: 112px;" %)**Note**
619 |(% colspan="1" rowspan="9" style="width:114px" %)Bit|(% style="width:287px" %)I|I|I d|0~~99999|(% style="width:112px" %)
620 |(% style="width:287px" %)Q|Q|Q d|0~~99999|(% style="width:112px" %)
621 |(% style="width:287px" %)VWBit|VWBit|VWBit d|0~~99999|(% style="width:112px" %)
622 |(% style="width:287px" %)V|V|V d|0~~99999|(% style="width:112px" %)
623 |(% style="width:287px" %)M|M|M d|0~~99999|(% style="width:112px" %)
624 |(% style="width:287px" %)SM|SM|SM d|0~~99999|(% style="width:112px" %)
625 |(% style="width:287px" %)S|S|S d|0~~99999|(% style="width:112px" %)
626 |(% style="width:287px" %)T|T|T d|0~~99999|(% style="width:112px" %)
627 |(% style="width:287px" %)C|C|C d|0~~99999|(% style="width:112px" %)
628 |(% colspan="1" rowspan="10" style="width:114px" %)Word|(% style="width:287px" %)IW|IW|IW d|0~~99998|(% style="width:112px" %)
629 |(% style="width:287px" %)QW|QW|QW d|0~~99998|(% style="width:112px" %)
630 |(% style="width:287px" %)AIW|AIW|AIW d|0~~99998|(% style="width:112px" %)
631 |(% style="width:287px" %)AQW|AQW|AQW d|0~~99998|(% style="width:112px" %)
632 |(% style="width:287px" %)VW|VW|VW d|0~~99998|(% style="width:112px" %)
633 |(% style="width:287px" %)MW|MW|MW d|0~~30|(% style="width:112px" %)
634 |(% style="width:287px" %)SW|SW|SW d|0~~99998|(% style="width:112px" %)
635 |(% style="width:287px" %)SMW|SMW|SMW d|0~~99998|(% style="width:112px" %)
636 |(% style="width:287px" %)TW|TW|TW d|0~~99999|(% style="width:112px" %)
637 |(% style="width:287px" %)CW|CW|CW d|0~~99999|(% style="width:112px" %)
638
639 **Configure the communication protocol**
640
641 (% style="text-align:center" %)
642 [[image:2.3.png]]
643
644 (% style="text-align:center" %)
645 [[image:2.3.2.png]]
646
Joe 4.1 647 **PLC Settings**
Wecon 1.1 648
Joe 4.1 649 **Select "Set PG/PC Interface" in Communication of the View list and Set PG/PC Interface.**
Wecon 1.1 650
Joe 4.1 651 **Select PC/PPI cable PPI.1 and set communication parameters.**
652
Wecon 1.1 653 (% style="text-align:center" %)
Joe 4.1 654 [[image:11.png]]
Wecon 1.1 655
656
657 (% style="text-align:center" %)
Joe 4.1 658 [[image:12.png]]
Wecon 1.1 659
660 **Cable Wiring**
661
662 (% style="text-align:center" %)
663 [[image:Cable Wiring.png||height="200" width="721"]]
664
665 Pin Definition Diagram
666
667 (% style="text-align:center" %)
668 [[image:Pin Definition Diagram.png||height="200" width="411"]]
669
670 == **S7-200(Ethernet with 243)** ==
671
672 Supported Series: Siemens S7-200(Ethernet with 243)
673
674 **HMI Setting**
675
676 (% style="width:1420px" %)
677 |=(% style="width: 431px;" %)**Items**|=(% style="width: 543px;" %)**Settings**|=(% style="width: 444px;" %)**Note**
678 |=(% style="width: 431px;" %)Protocol|(% style="width:543px" %)Siemens S7-200(Ethernet with 243)|(% style="width:444px" %)(((
679
680 )))
681 |=(% style="width: 431px;" %)Connection|(% style="width:543px" %)Ethernet|(% style="width:444px" %)
682 |=(% style="width: 431px;" %)Port No.|(% style="width:543px" %)102|(% style="width:444px" %)
683 |=(% style="width: 431px;" %)PLC station No.|(% style="width:543px" %)2|(% style="width:444px" %)
684
685 (% class="box infomessage" %)
686 (((
687 **✎**Note: IF the [SIEMENS S7-200(Ethernet With 243)] can not link.Please choose [SIEMENS S7-200 Smart (Ethernet)] to test again.
688 )))
689
690 **Address List**
691
692 (% style="width:1429px" %)
693 |=(% style="width: 252px;" %)**Bit/Word**|=(% style="width: 257px;" %)**Device type**|=(% style="width: 226px;" %)Address NO.|=(% style="width: 349px;" %)Range|=(% style="width: 342px;" %)Note
694 |=(% colspan="1" rowspan="10" style="width: 252px;" %)Bit
695 |(% style="width:257px" %)I|(% style="width:226px" %)DDDD.o|(% style="width:349px" %)D:0~99999  o:0~7|(% style="width:342px" %)
696 |(% style="width:257px" %)Q|(% style="width:226px" %)DDDD.o|(% style="width:349px" %)D:0~99999  o:0~7|(% style="width:342px" %)
697 |(% style="width:257px" %)M|(% style="width:226px" %)DDDD.o|(% style="width:349px" %)D:0~99999  o:0~7|(% style="width:342px" %)
698 |(% style="width:257px" %)V|(% style="width:226px" %)DDDD.o|(% style="width:349px" %)D:0~99999  o:0~7|(% style="width:342px" %)
699 |(% style="width:257px" %)VWBit|(% style="width:226px" %)DDDD.o|(% style="width:349px" %)D:0~99999  o:0~7|(% style="width:342px" %)
700 |(% style="width:257px" %)SM|(% style="width:226px" %)DDDD.o|(% style="width:349px" %)D:0~65535  o:0~7|(% style="width:342px" %)
701 |(% style="width:257px" %)S|(% style="width:226px" %)DDDD.o|(% style="width:349px" %)D:0~99999  o:0~7|(% style="width:342px" %)
702 |(% style="width:257px" %)T|(% style="width:226px" %)DDDD|(% style="width:349px" %)0~99999 |(% style="width:342px" %)
703 |(% style="width:257px" %)C|(% style="width:226px" %)DDDD|(% style="width:349px" %)0~99999 |(% style="width:342px" %)
704 |(% style="width:257px" %)Lamp|(% style="width:226px" %)0|(% style="width:349px" %)0|(% style="width:342px" %)
705 |=(% colspan="1" rowspan="9" style="width: 252px;" %)Word
706 |(% style="width:257px" %)IW|(% style="width:226px" %)DDDD|(% style="width:349px" %)0~99999|(% style="width:342px" %)
707 |(% style="width:257px" %)QW|(% style="width:226px" %)DDDD|(% style="width:349px" %)0~99999|(% style="width:342px" %)
708 |(% style="width:257px" %)AIW|(% style="width:226px" %)DDDD|(% style="width:349px" %)0~99999|(% style="width:342px" %)
709 |(% style="width:257px" %)AQW|(% style="width:226px" %)DDDD|(% style="width:349px" %)0~99999|(% style="width:342px" %)
710 |(% style="width:257px" %)VW|(% style="width:226px" %)DDDD|(% style="width:349px" %)0~99998|(% style="width:342px" %)
711 |(% style="width:257px" %)MW|(% style="width:226px" %)DDDD|(% style="width:349px" %)0 ~~ 30|(% style="width:342px" %)
712 |(% style="width:257px" %)TW|(% style="width:226px" %)DDDD|(% style="width:349px" %)0~99999|(% style="width:342px" %)
713 |(% style="width:257px" %)CW|(% style="width:226px" %)DDDD|(% style="width:349px" %)0~99999|(% style="width:342px" %)
714 |(% style="width:257px" %)SW|(% style="width:226px" %)DDDD|(% style="width:349px" %)0~99999|(% style="width:342px" %)
715 |=(% colspan="1" rowspan="2" style="width: 252px;" %)Double word
716 |(% style="width:257px" %)MD|(% style="width:226px" %)DDDD|(% style="width:349px" %)0-28|(% style="width:342px" %)
717 |(% style="width:257px" %)VD|(% style="width:226px" %)DDDD|(% style="width:349px" %)0 ~~ 99998|(% style="width:342px" %)
718
719 **Viewing/Configuring Ethernet Parameters**
720
721 1.[Tools]~-~-[Ethernet Wizard]
722
723 (% style="text-align:center" %)
724 [[image:图片1.png]]
725
726 2.Choose the position of module 243 ~-~-[Next]
727
728 (% class="box infomessage" %)
729 (((
730 **✎**Note: Module position refers to the position of module 243 on the plc, please adjust according to the actual situation
731 )))
732
733
734 (% style="text-align:center" %)
735 [[image:图片2.png]]
736
737 3.Choose the module type,Next
738
739 (% style="text-align:center" %)
740 [[image:图片3.png]]
741
742 4.Set IP address as 192.168.1.218 ,and Subnet mask as 255.255.255.0,Next
743
744 (% style="text-align:center" %)
745 [[image:图片4.png]]
746
747 5.[QB]1~-~-[Number of connections to configure for this module]3~-~-[Next]
748
749 (% style="text-align:center" %)
750 [[image:图片5.png]]
751
752 6.Click [This is a Server Connection] and Click [Accept all connection requests],[OK]
753
754 (% style="text-align:center" %)
755 [[image:图片6.png]]
756
757 7.Click [Yes,generate CRC protection for  this configuration in the data book],set the Keep Alive Interval as 30 sec,[Next]
758
759 (% style="text-align:center" %)
760 [[image:图片7.png]]
761
762 8.Choose the Suggest Address,Next
763
764 (% style="text-align:center" %)
765 [[image:图片8.png]]
766
767 9.[ETH Configuration for 0]~-~-[Finish]
768
769 (% style="text-align:center" %)
770 [[image:图片9.png]]
771
772 **Test CP 243-1**
773
774 1.[Communications]→[PC/PPI cable]→[TCPIP.1]→[OK]
775
776 (% style="text-align:center" %)
777 [[image:图片10.png]]
778
779
780 2.[Remote]192.168.1.218 then [Double-Click to Refresh]and choose[CPU 226 CN REL 02.01 192.168.1.218],click[OK]
781
782 (% style="text-align:center" %)
783 [[image:图片11.png]]
784
785 **Cable Wiring**
786
787 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/PLC%20Protocol/Siemens/WebHome/xwiki_PIStudio_12.PLC%2Bprotocols_WebHome_ac8ece9a26719fda.png?width=401&height=170&rev=1.1||alt="12.PLC Protocol_html_2297240b57346b2a.png" height="170" width="401"]]
788
789
790 == **Siemens S7-1200/1500 Ethernet Free Tag** ==
791
792 **HMI Setting**
793
794 |**Items**|**Settings**|**Note**
795 |Protocol|Siemens S7-1200/1500 Ethernet FreeTag |
796 |Connection|Ethernet|
797 |Port No.|102|
798 |PLC station No.|1|
799
800 **Support Variable Type**
801
802 |=Data Type|=PIStudio Data Format
803 |=BOOL|Bit
804 |=BYTE|16-bit Unsigned/Binary/BCD/Hex
805 |=WORD|16-bit Unsigned/Binary/BCD/Hex
806 |=DWORD|32-bit Unsigned/Binary/BCD/Hex
807 |=SINT|16-bit Signed/Binary/BCD/Hex
808 |=USINT|16-bit Unsigned/Binary/BCD/Hex
809 |=INT|16-bit Signed/Binary/BCD/Hex
810 |=UINT|16-bit Unsigned/Binary/BCD/Hex
811 |=DINT|32-bit Signed/Binary/BCD/Hex
812 |=UDINT|32-bit Unsigned/Binary/BCD/Hex
813 |=STRING|Max:256
814 |=Real|32-bit Float
815 |=Struct|Bool/Byte/SINT/USINT/WORD/INT/UINT/DWord/DINT/Real/UDINT/String
816 |=Array|Bool/Byte/SINT/USINT/WORD/INT/UINT/DWord/DINT/Real/DINT/String
817
818 **Communication Settings**
819
820 Communication → choose "Siemens S7-1200/1500 Ethernet FreeTag" → OK
821
822 (% style="text-align:center" %)
823 [[image:QiUfoquheO.png]]
824
825 Setting→ PLC IP Address → OK
826
827 (% style="text-align:center" %)
828 [[image:p0oBclWpCu.png]]
829
830 **PLC Setting**
831
832 In the Project tree [PLC project]→Right-click[PLC-1]→[Properties]→[General]→[PROFINE interface]→[Add new subnet]→[IP address]192.168.40.20,[Subnet mask]255.255.255.0→[OK]
833
834 (% style="text-align:center" %)
835 [[image:图片1.png]]
836
837 Open [Properties] again→[General]→[Protection&Security]→[Connection mechanisms]→Check [Permit access with PUTIGET communication remote partner ]→[OK]
838
839 (% style="text-align:center" %)
840 [[image:图片2.png]]
841
842 Create a new DB block:
843
844 [Add new block]→[Date block]→[Manual]→[OK]
845
846 (% style="text-align:center" %)
847 [[image:图片3.png]]
848
849 Right-click[DB1]→[Properties]→[General]→[Attributes]→Uncheck[Optimized block access]→[OK]
850
851 (% style="text-align:center" %)
852 [[image:图片4.png]]
853
854 **How to import the tags:**
855
856 Click DB block → create FreeTags → Project→ Save as the file in a path
857
858 (% style="text-align:center" %)
859 [[image:Po8BaJ5zII.png]]
860
861 (% style="text-align:center" %)
862 [[image:ln95kcUbPs.png]]
863
864 Communication→ Labels manage→ Import Tags From File→ choose PLC program→ Open
865
866 (% style="text-align:center" %)
867 [[image:xGYTeswe0E.png]]