Wiki source code of Siemens

Last modified by Joe on 2026/04/01 15:32

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 )))
Joe 6.1 238 |(% colspan="1" rowspan="9" %)Word|M|MB|MB d|d:0-99999|
Wecon 1.1 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 )))
Joe 6.1 286 |DB0.DB-DB99.DB|DBxDBS|DBxDBSnndddd|(((
287 nn:0-9999
Wecon 1.1 288
Joe 6.1 289 dddd:0-9999
290 )))|(((
291 nn:DB No.
292
293 dddd:address value
294
295 Address value is a multiple of 2
296
297 (The data type is for String)
298 )))
299
Wecon 1.1 300 **Communication Settings**
301
302 Enable HMI Ethernet in [Project Settings];
303
304 {{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"]]
305
306 Set PLC IP in [Device IP] settings;
307
308 {{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"]]
309
310 **✎Note:**
311
312 * The S7-1200 supports simultaneous connection of three devices, so the driver supports simultaneous access to PLC by three touch screens.
313 * 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.
314 * 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.
315 * HMI operation character length needs to be set to 2 times the length of the Siemens character for proper display.
316
317 **PLC Settings**
318
319 Add BD
320
321 * Please uncheck [Symbolic access only] option;
322
323 {{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"]]
324
325 Address settings, using BD2 as example.
326
327 * DB×DBB2xxxx, DB×DBW2xxxx, DB×DBD2xxxx for accessing data of DB2 in B1.
328 * 2 represent DB block number
329 * xxxx represent address
330
331 **Such as:**
332
333 * DBxDBB20000 = DB2.DBB0
Joe 6.1 334 * DBxDBW20002 = DB2.DBW2
Wecon 1.1 335
336 {{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"]]
337
338 **How to connect with S7-1200 Firmware V4.0**
339
340 PLC configuration
341
342 * Double click [device configuration] in Siemens via software
343 * Double click [protection] to enter protection configuration screen
344
345 {{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"]]
346
347 * Check [Permit access with PUT / GET communication from remote partner (PLC, HMI, OPC, ...)]
348
Joe 2.1 349 {{id name="I12.PLCProtocol_html_d2c667b02f9720b1.png"/}}
Wecon 1.1 350
Joe 2.1 351 (% style="text-align:center" %)
352 [[image:企业微信截图_17573996048878.png]]
353
Wecon 1.1 354 DB settings
355
356 * Right click [DB], select [properties]
357 * Uncheck [optimized block access]
358
359 **Cable Wiring**
360
361 {{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"]]
362
363 == {{id name="HS7-XXXEthernet"/}}**S7-XXX Ethernet** ==
364
365 Supported Series: Siemens S7-400, S7-1200 and S7-1500
366
367 **HMI Setting**
368
369 |=**Items**|=**Settings**|=**Note**
370 |Protocol|Siemens S7-XXX|
371 |Connection|Ethernet|
372 |Port No.|102|
373 |Device No.|Slot (Default 1 for S7-1500/ 2 for S7-1200/ 3 for S7-400)|
374 |HMI No.|Rack (Default as 0)|
375
376 Slot from TIA Portal is equal to Device No. of PIStudio
377
378 Rack from TIA Portal is equal to HMI No. of PIStudio
379
380 {{id name="IS7-XXXCommunicationSettings.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_d78bc267e5fc6394.png||alt="S7-XXXCommunication Settings.png" height="503" width="798"]]
381
Joe 2.1 382 Check [Permit access with PUT / GET communication from remote partner (PLC, HMI, OPC, ...)]
383
384 (% style="text-align:center" %)
385 [[image:企业微信截图_17573996048878.png]]
386
387
388
389
Wecon 1.1 390 {{id name="IS7-XXXCommunicationSettingsPIStudio.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_561c9c5b1c99916b.png||alt="S7-XXXCommunication SettingsPI.png" height="706" width="908"]]
391
392 **Address List**
393
394 |**Type**|**Device register**|**HMI register**|**Format**|**Range**|**Note**
395 |(% rowspan="4" %)Bit|I|I|M d.o|(((
396 d:0~-~-9999
397
398 o:0-7
399 )))|
400 |Q|Q|Q d.o|(((
401 d:0~-~-9999
402
403 o:0-7
404 )))|
405 |M|M|M d.o|(((
406 d:0~-~-9999
407
408 o:0-7
409 )))|
410 |DB0.DB-DB99.DB|DBxDB|DBxDBnndddd.o|(((
411 nn:0-9999,
412
413 dddd:0-9999,
414
415 o:0-7
416 )))|(((
417 nn:DB No.
418
419 dddd:address value
420
421 o: digit address
422 )))
423 |(% rowspan="8" %)Word|M|MB|MB d|d:0-99999|
424 |M|MW|MW d|d:0-99999|(((
425 MW0=MB(0~~1)
426
427 MW2=MB(2~~3)
428
429 Address value is a multiple of 2
430 )))
431 |M|MD|MD d|d:0-99999|(((
432 MD0=MB(0~~3)
433
434 MD4=MB(4~~7)
435
436 Address value is a multiple of 4
437 )))
438 |I|IW|IW d|d:0-99999|
439 |Q|QW|QW d|d:0-99999|
440 |DB0.DB-DB99.DB|DBxDBB|DBxDBBnndddd|(((
441 nn:0-9999
442
443 dddd:0-9999
444 )))|(((
445 nn:DB No.
446
447 dddd:address value
448 )))
449 |DB0.DB-DB99.DB|DBxDBW|DBxDBWnndddd|(((
450 nn:0-9999
451
452 dddd:0-9999
453 )))|(((
454 nn:DB No.
455
456 dddd:address value
457
458 Address value is a multiple of 2
459 )))
460 |DB0.DB-DB99.DB|DBxDBD|DBxDBDnndddd|(((
461 nn:0-9999
462
463 dddd:0-9999
464 )))|(((
465 nn:DB No.
466
467 dddd:address value
468
469 Address value is a multiple of 4
470 )))
471
472 **Communication Settings**
473
474 Enable HMI Ethernet in [Project Settings];
475
476 {{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"]]
477
478 Set PLC IP in [Device IP] settings;
479
480 {{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"]]
481
482 **✎Note:**
483
484 * The S7-1200 supports simultaneous connection of three devices, so the driver supports simultaneous access to PLC by three touch screens.
485 * 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.
486
487 **Cable Wiring**
488
489 {{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"]]
490
491 == {{id name="cke_bm_25456S"/}}{{id name="HLOGOEthernet"/}}** LOGO Ethernet** ==
492
493 Supported Series: Siemens Logo 0BA0, 0BA1 series
494
495 **HMI Settings**
496
497 |**Items**|**Settings**|**Note**
498 |Protocol|Siemens LOGO|
499 |Connection|Ethernet|
500 |Port No.|102|
501 |PLC station No.|2|
502
503 **Address List**
504
505 |**Number**|**Address Type**|**Data Type**|**Range**|**DB Address**|**PLC Address**
506 |1|RTC|Word|1-7|DB1.DBX984.0|0x001ec0
507 |2|VB|Byte|0-1469|DB1.DBX0.0|0x000000
508 |3|VD|Double Word|0-1466|DB1.DBX0.0|0x000000
509 |4|VW|Word|0-1468|DB1.DBX0.0|0x000000
510 |5|NAQ|Word|1-32|DB1.DBX1406.0|0x002bf0
511 |6|NAI|Word|1-64|DB1.DBX1262.0|0x002770
512 |7|AM|Word|1-64|DB1.DBX1118.0|0x0022f0
513 |8|AQ|Word|1-16|DB1.DBX1072.0|0x002180
514 |9|AI|Word|1-16|DB1.DBX1032.0|0x002040
515 |10|I|Bit|1-64|DB1.DBX1024.0|0x002000
516 |11|Q|Bit|1-64|DB1.DBX1064.0|0x002140
517 |12|M|Bit|1-112|DB1.DBX1104.0|0x002280
518 |13|NI|Bit|1-128|DB1.DBX1246.0|0x0026f0
519 |14|NQ|Bit|1-128|DB1.DBX1390.0|0x002b70
520 |15|V|Bit|0-14697|DB1.DBX0.0|0x000000
521
522 **PLC Settings in LOGO Software:**
523
524 Click [Tools]~-~-[Ethernet Connections],shown as below.
525
526 {{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"]]
527
528 Set Ethernet connection parameter. IP, Subnet Mask, shown as below.
529
530 {{id name="Iimage-20221228142937-4.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_316247e0130c4c55.png||alt="image-20221228142937-4.png" height="484" width="366"]]
531
532 **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.
533
534 {{id name="Iimage-20221228143047-5.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_facc6ee1af05162f.png||alt="image-20221228143047-5.png" height="626" width="1088"]]
535
536 **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.
537
538 {{id name="Iimage-20221228143246-6.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_d43d2b7b2599ee64.png||alt="image-20221228143246-6.png" height="698" width="688"]]
539
540 **HMI Communication Settings**
541
542 Set PLC IP in [Device IP] settings;
543
544 {{id name="Iimage-20221228143614-7.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_58cea5198cb7c78a.png||alt="image-20221228143614-7.png" height="706" width="909"]]
545
546 Enable HMI Ethernet in [Project Settings];
547
548 {{id name="Iimage-20221228144229-9.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_7904cd9b484f6634.png||alt="image-20221228144229-9.png" height="451" width="793"]]
549
550 TSAP setting
551
552 * 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.
553 * HSW10118/HSW1200 = local TSAP of HMI, this is remote TSAP of PLC.
554 * HSW10119/HSW1201 = Remote TSAP of HMI, this is local TSAP of PLC.
555 * PI, PI+, i series (1.0 system): use HSW10118, HSW10119.
556 ie, ig series: use HSW1200, HSW1201.
557 HMI V2.0: use HSW1200, HSW1201.
558
559 **✎Note:**
560
561 * 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.
562 * HSW10119/HSW1201 is set up as shown.
563 * {{id name="Iimage-20221228144800-11.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_c518682b5f97ac1b.png||alt="image-20221228144800-11.png" height="144" width="538"]]
564 * {{id name="Iimage-20221228144708-10.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_885bd6754ccb5593.png||alt="image-20221228144708-10.png" height="127" width="537"]]
565
566 * AI word address and Ibit address are read-only and cannot be written on HMI.
567 * 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.
568 * VD address should be multiple of 4, because it occupies two VW addresses, such as VD0, VD4, VD8...
569 * Written value of RTC cannot exceed 255.
570
Joe 5.1 571 (% class="box infomessage" %)
572 (((
573 Note: HSW10118 and HSW10119 are supported in HMI V1.0 system. HSW1200 and HSW1201 are supported in HMI V2.0 system.
574 )))
575
Wecon 1.1 576 **Cable Wiring**
577
578 {{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"]]
579
580 == {{id name="HS7-30028WithPCAdapter29"/}}**S7-300(With PC Adapter)** ==
581
582 **HMI Setting:**
583
584 |=**Parameters**|=**Recommended**|=**Options**|=**Notes**
585 |=**PLC type**|(% colspan="2" %)SIEMENS S7-300 (with PC Adapter)|
586 |=**PLC I/F**|RS232| |
587 |=**Baud rate**|19200|9600,19200|
588 |=**Data bits**|8| |
589 |=**Parity**|Odd| |
590 |=**Stop bits**|1| |
591 |=**PLC sta. no.**|2| |Must be same as the PLC setting.
592
593 **Device Address**
594
595 |=**Bit/Word**|=**Device type**|=**Format**|=**Range**|=**Memo**
596 |=Bit|I|DDDDo|0 ~~ 40957|Input (I)
597 |=Bit|Q|DDDDo|0 ~~ 40957|Output (O)
598 |=Bit|M|DDDDo|0 ~~ 40957|Bit Memory
599 |=Word|DB1 to DB99|DDDDDo|0 ~~ 655327|
600 |=Word|IW|DDDD|0 ~~ 4095|Input (I)
601 |=Word|QW|DDDD|0 ~~ 4095|Output (O)
602 |=Word|MW|DDDD|0 ~~ 4095|Bit Memory
603 |=Double word|MD|DDDD|0 ~~ 4094|
604 |=Double word|DBDn|FFFFFDDDD|0 ~~ 655359999|Data Register Double Word (must be even)
605 |=Byte|MB|DDDD|0 ~~ 4095|Bit Memory Byte
606
607 **Cable Wiring**
608
609 {{id name="Iimage-20221010102051-1.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_77dc63b5c3645636.png||alt="image-20221010102051-1.png" height="239" width="395"]]
610
611 == **S7-200 Smart Serial ** ==
612
613 Supported Series: Siemens S7-200 SMART Series.
614
615 Website: [[http:~~/~~/www.siemens.com/entry/cc/en/>>url:http://www.siemens.com/entry/cc/en/]]
616
617 **HMI Setting**
618
619 |=**Parameters**|=**Recommended**|=**Notes**
620 |=**PLC type**|(% colspan="1" %)SIEMENS S7-200 CPU22x/Smart PPI new|
621 |=**PLC I/F**|RS485|
622 |=**Baud rate**|9600|
623 |=**Data bits**|8|
624 |=**Parity**|EVEN|
625 |=**Stop bits**|1|
626 |=**PLC sta. no.**|2|Must be same as the PLC setting.
627
628 **Address List**
629
630 (% style="width:1081px" %)
631 |=(% style="width: 114px;" %)**Type**|=(% style="width: 287px;" %)**Device registers**|=**HMI registers**|=**Format**|=**Range**|=(% style="width: 112px;" %)**Note**
632 |(% colspan="1" rowspan="9" style="width:114px" %)Bit|(% style="width:287px" %)I|I|I d|0~~99999|(% style="width:112px" %)
633 |(% style="width:287px" %)Q|Q|Q d|0~~99999|(% style="width:112px" %)
634 |(% style="width:287px" %)VWBit|VWBit|VWBit d|0~~99999|(% style="width:112px" %)
635 |(% style="width:287px" %)V|V|V d|0~~99999|(% style="width:112px" %)
636 |(% style="width:287px" %)M|M|M d|0~~99999|(% style="width:112px" %)
637 |(% style="width:287px" %)SM|SM|SM d|0~~99999|(% style="width:112px" %)
638 |(% style="width:287px" %)S|S|S d|0~~99999|(% style="width:112px" %)
639 |(% style="width:287px" %)T|T|T d|0~~99999|(% style="width:112px" %)
640 |(% style="width:287px" %)C|C|C d|0~~99999|(% style="width:112px" %)
641 |(% colspan="1" rowspan="10" style="width:114px" %)Word|(% style="width:287px" %)IW|IW|IW d|0~~99998|(% style="width:112px" %)
642 |(% style="width:287px" %)QW|QW|QW d|0~~99998|(% style="width:112px" %)
643 |(% style="width:287px" %)AIW|AIW|AIW d|0~~99998|(% style="width:112px" %)
644 |(% style="width:287px" %)AQW|AQW|AQW d|0~~99998|(% style="width:112px" %)
645 |(% style="width:287px" %)VW|VW|VW d|0~~99998|(% style="width:112px" %)
646 |(% style="width:287px" %)MW|MW|MW d|0~~30|(% style="width:112px" %)
647 |(% style="width:287px" %)SW|SW|SW d|0~~99998|(% style="width:112px" %)
648 |(% style="width:287px" %)SMW|SMW|SMW d|0~~99998|(% style="width:112px" %)
649 |(% style="width:287px" %)TW|TW|TW d|0~~99999|(% style="width:112px" %)
650 |(% style="width:287px" %)CW|CW|CW d|0~~99999|(% style="width:112px" %)
651
652 **Configure the communication protocol**
653
654 (% style="text-align:center" %)
655 [[image:2.3.png]]
656
657 (% style="text-align:center" %)
658 [[image:2.3.2.png]]
659
Joe 4.1 660 **PLC Settings**
Wecon 1.1 661
Joe 4.1 662 **Select "Set PG/PC Interface" in Communication of the View list and Set PG/PC Interface.**
Wecon 1.1 663
Joe 4.1 664 **Select PC/PPI cable PPI.1 and set communication parameters.**
665
Wecon 1.1 666 (% style="text-align:center" %)
Joe 4.1 667 [[image:11.png]]
Wecon 1.1 668
669
670 (% style="text-align:center" %)
Joe 4.1 671 [[image:12.png]]
Wecon 1.1 672
673 **Cable Wiring**
674
675 (% style="text-align:center" %)
676 [[image:Cable Wiring.png||height="200" width="721"]]
677
678 Pin Definition Diagram
679
680 (% style="text-align:center" %)
681 [[image:Pin Definition Diagram.png||height="200" width="411"]]
682
683 == **S7-200(Ethernet with 243)** ==
684
685 Supported Series: Siemens S7-200(Ethernet with 243)
686
687 **HMI Setting**
688
689 (% style="width:1420px" %)
690 |=(% style="width: 431px;" %)**Items**|=(% style="width: 543px;" %)**Settings**|=(% style="width: 444px;" %)**Note**
691 |=(% style="width: 431px;" %)Protocol|(% style="width:543px" %)Siemens S7-200(Ethernet with 243)|(% style="width:444px" %)(((
692
693 )))
694 |=(% style="width: 431px;" %)Connection|(% style="width:543px" %)Ethernet|(% style="width:444px" %)
695 |=(% style="width: 431px;" %)Port No.|(% style="width:543px" %)102|(% style="width:444px" %)
696 |=(% style="width: 431px;" %)PLC station No.|(% style="width:543px" %)2|(% style="width:444px" %)
697
698 (% class="box infomessage" %)
699 (((
700 **✎**Note: IF the [SIEMENS S7-200(Ethernet With 243)] can not link.Please choose [SIEMENS S7-200 Smart (Ethernet)] to test again.
701 )))
702
703 **Address List**
704
705 (% style="width:1429px" %)
706 |=(% style="width: 252px;" %)**Bit/Word**|=(% style="width: 257px;" %)**Device type**|=(% style="width: 226px;" %)Address NO.|=(% style="width: 349px;" %)Range|=(% style="width: 342px;" %)Note
707 |=(% colspan="1" rowspan="10" style="width: 252px;" %)Bit
708 |(% style="width:257px" %)I|(% style="width:226px" %)DDDD.o|(% style="width:349px" %)D:0~99999  o:0~7|(% style="width:342px" %)
709 |(% style="width:257px" %)Q|(% style="width:226px" %)DDDD.o|(% style="width:349px" %)D:0~99999  o:0~7|(% style="width:342px" %)
710 |(% style="width:257px" %)M|(% style="width:226px" %)DDDD.o|(% style="width:349px" %)D:0~99999  o:0~7|(% style="width:342px" %)
711 |(% style="width:257px" %)V|(% style="width:226px" %)DDDD.o|(% style="width:349px" %)D:0~99999  o:0~7|(% style="width:342px" %)
712 |(% style="width:257px" %)VWBit|(% style="width:226px" %)DDDD.o|(% style="width:349px" %)D:0~99999  o:0~7|(% style="width:342px" %)
713 |(% style="width:257px" %)SM|(% style="width:226px" %)DDDD.o|(% style="width:349px" %)D:0~65535  o:0~7|(% style="width:342px" %)
714 |(% style="width:257px" %)S|(% style="width:226px" %)DDDD.o|(% style="width:349px" %)D:0~99999  o:0~7|(% style="width:342px" %)
715 |(% style="width:257px" %)T|(% style="width:226px" %)DDDD|(% style="width:349px" %)0~99999 |(% style="width:342px" %)
716 |(% style="width:257px" %)C|(% style="width:226px" %)DDDD|(% style="width:349px" %)0~99999 |(% style="width:342px" %)
717 |(% style="width:257px" %)Lamp|(% style="width:226px" %)0|(% style="width:349px" %)0|(% style="width:342px" %)
718 |=(% colspan="1" rowspan="9" style="width: 252px;" %)Word
719 |(% style="width:257px" %)IW|(% style="width:226px" %)DDDD|(% style="width:349px" %)0~99999|(% style="width:342px" %)
720 |(% style="width:257px" %)QW|(% style="width:226px" %)DDDD|(% style="width:349px" %)0~99999|(% style="width:342px" %)
721 |(% style="width:257px" %)AIW|(% style="width:226px" %)DDDD|(% style="width:349px" %)0~99999|(% style="width:342px" %)
722 |(% style="width:257px" %)AQW|(% style="width:226px" %)DDDD|(% style="width:349px" %)0~99999|(% style="width:342px" %)
723 |(% style="width:257px" %)VW|(% style="width:226px" %)DDDD|(% style="width:349px" %)0~99998|(% style="width:342px" %)
724 |(% style="width:257px" %)MW|(% style="width:226px" %)DDDD|(% style="width:349px" %)0 ~~ 30|(% style="width:342px" %)
725 |(% style="width:257px" %)TW|(% style="width:226px" %)DDDD|(% style="width:349px" %)0~99999|(% style="width:342px" %)
726 |(% style="width:257px" %)CW|(% style="width:226px" %)DDDD|(% style="width:349px" %)0~99999|(% style="width:342px" %)
727 |(% style="width:257px" %)SW|(% style="width:226px" %)DDDD|(% style="width:349px" %)0~99999|(% style="width:342px" %)
728 |=(% colspan="1" rowspan="2" style="width: 252px;" %)Double word
729 |(% style="width:257px" %)MD|(% style="width:226px" %)DDDD|(% style="width:349px" %)0-28|(% style="width:342px" %)
730 |(% style="width:257px" %)VD|(% style="width:226px" %)DDDD|(% style="width:349px" %)0 ~~ 99998|(% style="width:342px" %)
731
732 **Viewing/Configuring Ethernet Parameters**
733
734 1.[Tools]~-~-[Ethernet Wizard]
735
736 (% style="text-align:center" %)
737 [[image:图片1.png]]
738
739 2.Choose the position of module 243 ~-~-[Next]
740
741 (% class="box infomessage" %)
742 (((
743 **✎**Note: Module position refers to the position of module 243 on the plc, please adjust according to the actual situation
744 )))
745
746
747 (% style="text-align:center" %)
748 [[image:图片2.png]]
749
750 3.Choose the module type,Next
751
752 (% style="text-align:center" %)
753 [[image:图片3.png]]
754
755 4.Set IP address as 192.168.1.218 ,and Subnet mask as 255.255.255.0,Next
756
757 (% style="text-align:center" %)
758 [[image:图片4.png]]
759
760 5.[QB]1~-~-[Number of connections to configure for this module]3~-~-[Next]
761
762 (% style="text-align:center" %)
763 [[image:图片5.png]]
764
765 6.Click [This is a Server Connection] and Click [Accept all connection requests],[OK]
766
767 (% style="text-align:center" %)
768 [[image:图片6.png]]
769
770 7.Click [Yes,generate CRC protection for  this configuration in the data book],set the Keep Alive Interval as 30 sec,[Next]
771
772 (% style="text-align:center" %)
773 [[image:图片7.png]]
774
775 8.Choose the Suggest Address,Next
776
777 (% style="text-align:center" %)
778 [[image:图片8.png]]
779
780 9.[ETH Configuration for 0]~-~-[Finish]
781
782 (% style="text-align:center" %)
783 [[image:图片9.png]]
784
785 **Test CP 243-1**
786
787 1.[Communications]→[PC/PPI cable]→[TCPIP.1]→[OK]
788
789 (% style="text-align:center" %)
790 [[image:图片10.png]]
791
792
793 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]
794
795 (% style="text-align:center" %)
796 [[image:图片11.png]]
797
798 **Cable Wiring**
799
800 [[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"]]
801
802
803 == **Siemens S7-1200/1500 Ethernet Free Tag** ==
804
805 **HMI Setting**
806
807 |**Items**|**Settings**|**Note**
808 |Protocol|Siemens S7-1200/1500 Ethernet FreeTag |
809 |Connection|Ethernet|
810 |Port No.|102|
811 |PLC station No.|1|
812
813 **Support Variable Type**
814
815 |=Data Type|=PIStudio Data Format
816 |=BOOL|Bit
817 |=BYTE|16-bit Unsigned/Binary/BCD/Hex
818 |=WORD|16-bit Unsigned/Binary/BCD/Hex
819 |=DWORD|32-bit Unsigned/Binary/BCD/Hex
820 |=SINT|16-bit Signed/Binary/BCD/Hex
821 |=USINT|16-bit Unsigned/Binary/BCD/Hex
822 |=INT|16-bit Signed/Binary/BCD/Hex
823 |=UINT|16-bit Unsigned/Binary/BCD/Hex
824 |=DINT|32-bit Signed/Binary/BCD/Hex
825 |=UDINT|32-bit Unsigned/Binary/BCD/Hex
826 |=STRING|Max:256
827 |=Real|32-bit Float
828 |=Struct|Bool/Byte/SINT/USINT/WORD/INT/UINT/DWord/DINT/Real/UDINT/String
829 |=Array|Bool/Byte/SINT/USINT/WORD/INT/UINT/DWord/DINT/Real/DINT/String
830
831 **Communication Settings**
832
833 Communication → choose "Siemens S7-1200/1500 Ethernet FreeTag" → OK
834
835 (% style="text-align:center" %)
836 [[image:QiUfoquheO.png]]
837
838 Setting→ PLC IP Address → OK
839
840 (% style="text-align:center" %)
841 [[image:p0oBclWpCu.png]]
842
843 **PLC Setting**
844
845 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]
846
847 (% style="text-align:center" %)
848 [[image:图片1.png]]
849
850 Open [Properties] again→[General]→[Protection&Security]→[Connection mechanisms]→Check [Permit access with PUTIGET communication remote partner ]→[OK]
851
852 (% style="text-align:center" %)
853 [[image:图片2.png]]
854
855 Create a new DB block:
856
857 [Add new block]→[Date block]→[Manual]→[OK]
858
859 (% style="text-align:center" %)
860 [[image:图片3.png]]
861
862 Right-click[DB1]→[Properties]→[General]→[Attributes]→Uncheck[Optimized block access]→[OK]
863
864 (% style="text-align:center" %)
865 [[image:图片4.png]]
866
867 **How to import the tags:**
868
869 Click DB block → create FreeTags → Project→ Save as the file in a path
870
871 (% style="text-align:center" %)
872 [[image:Po8BaJ5zII.png]]
873
874 (% style="text-align:center" %)
875 [[image:ln95kcUbPs.png]]
876
877 Communication→ Labels manage→ Import Tags From File→ choose PLC program→ Open
878
879 (% style="text-align:center" %)
880 [[image:xGYTeswe0E.png]]