Wiki source code of Siemens

Last modified by Joe on 2025/09/09 14:36

Show last authors
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
336 {{id name="I12.PLCProtocol_html_d2c667b02f9720b1.png"/}}
337
338 (% style="text-align:center" %)
339 [[image:企业微信截图_17573996048878.png]]
340
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
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
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
558 **Cable Wiring**
559
560 {{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"]]
561
562 == {{id name="HS7-30028WithPCAdapter29"/}}**S7-300(With PC Adapter)** ==
563
564 **HMI Setting:**
565
566 |=**Parameters**|=**Recommended**|=**Options**|=**Notes**
567 |=**PLC type**|(% colspan="2" %)SIEMENS S7-300 (with PC Adapter)|
568 |=**PLC I/F**|RS232| |
569 |=**Baud rate**|19200|9600,19200|
570 |=**Data bits**|8| |
571 |=**Parity**|Odd| |
572 |=**Stop bits**|1| |
573 |=**PLC sta. no.**|2| |Must be same as the PLC setting.
574
575 **Device Address**
576
577 |=**Bit/Word**|=**Device type**|=**Format**|=**Range**|=**Memo**
578 |=Bit|I|DDDDo|0 ~~ 40957|Input (I)
579 |=Bit|Q|DDDDo|0 ~~ 40957|Output (O)
580 |=Bit|M|DDDDo|0 ~~ 40957|Bit Memory
581 |=Word|DB1 to DB99|DDDDDo|0 ~~ 655327|
582 |=Word|IW|DDDD|0 ~~ 4095|Input (I)
583 |=Word|QW|DDDD|0 ~~ 4095|Output (O)
584 |=Word|MW|DDDD|0 ~~ 4095|Bit Memory
585 |=Double word|MD|DDDD|0 ~~ 4094|
586 |=Double word|DBDn|FFFFFDDDD|0 ~~ 655359999|Data Register Double Word (must be even)
587 |=Byte|MB|DDDD|0 ~~ 4095|Bit Memory Byte
588
589 **Cable Wiring**
590
591 {{id name="Iimage-20221010102051-1.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_77dc63b5c3645636.png||alt="image-20221010102051-1.png" height="239" width="395"]]
592
593 == **S7-200 Smart Serial ** ==
594
595 Supported Series: Siemens S7-200 SMART Series.
596
597 Website: [[http:~~/~~/www.siemens.com/entry/cc/en/>>url:http://www.siemens.com/entry/cc/en/]]
598
599 **HMI Setting**
600
601 |=**Parameters**|=**Recommended**|=**Notes**
602 |=**PLC type**|(% colspan="1" %)SIEMENS S7-200 CPU22x/Smart PPI new|
603 |=**PLC I/F**|RS485|
604 |=**Baud rate**|9600|
605 |=**Data bits**|8|
606 |=**Parity**|EVEN|
607 |=**Stop bits**|1|
608 |=**PLC sta. no.**|2|Must be same as the PLC setting.
609
610 **Address List**
611
612 (% style="width:1081px" %)
613 |=(% style="width: 114px;" %)**Type**|=(% style="width: 287px;" %)**Device registers**|=**HMI registers**|=**Format**|=**Range**|=(% style="width: 112px;" %)**Note**
614 |(% colspan="1" rowspan="9" style="width:114px" %)Bit|(% style="width:287px" %)I|I|I d|0~~99999|(% style="width:112px" %)
615 |(% style="width:287px" %)Q|Q|Q d|0~~99999|(% style="width:112px" %)
616 |(% style="width:287px" %)VWBit|VWBit|VWBit d|0~~99999|(% style="width:112px" %)
617 |(% style="width:287px" %)V|V|V d|0~~99999|(% style="width:112px" %)
618 |(% style="width:287px" %)M|M|M d|0~~99999|(% style="width:112px" %)
619 |(% style="width:287px" %)SM|SM|SM d|0~~99999|(% style="width:112px" %)
620 |(% style="width:287px" %)S|S|S d|0~~99999|(% style="width:112px" %)
621 |(% style="width:287px" %)T|T|T d|0~~99999|(% style="width:112px" %)
622 |(% style="width:287px" %)C|C|C d|0~~99999|(% style="width:112px" %)
623 |(% colspan="1" rowspan="10" style="width:114px" %)Word|(% style="width:287px" %)IW|IW|IW d|0~~99998|(% style="width:112px" %)
624 |(% style="width:287px" %)QW|QW|QW d|0~~99998|(% style="width:112px" %)
625 |(% style="width:287px" %)AIW|AIW|AIW d|0~~99998|(% style="width:112px" %)
626 |(% style="width:287px" %)AQW|AQW|AQW d|0~~99998|(% style="width:112px" %)
627 |(% style="width:287px" %)VW|VW|VW d|0~~99998|(% style="width:112px" %)
628 |(% style="width:287px" %)MW|MW|MW d|0~~30|(% style="width:112px" %)
629 |(% style="width:287px" %)SW|SW|SW d|0~~99998|(% style="width:112px" %)
630 |(% style="width:287px" %)SMW|SMW|SMW d|0~~99998|(% style="width:112px" %)
631 |(% style="width:287px" %)TW|TW|TW d|0~~99999|(% style="width:112px" %)
632 |(% style="width:287px" %)CW|CW|CW d|0~~99999|(% style="width:112px" %)
633
634 **Configure the communication protocol**
635
636 (% style="text-align:center" %)
637 [[image:2.3.png]]
638
639 (% style="text-align:center" %)
640 [[image:2.3.2.png]]
641
642 **PLC Settings(STEP 7-MicroWIN SMART)**
643
644 Open STEP 7-MicroWIN SMART, create a new PLC project or open the project that has been created.
645 Create new project:Double click[CPU SR20]→[System Block]→[Module] CPU SR20(AC/DC/Relay)→[OK].
646
647 (% style="text-align:center" %)
648 [[image:1.2.png]]
649
650 PLC Default Parameters: Double click[CPU SR20]→[System Block]→[RS485 Port]→[Address]2,[Baud Rate]9.6Kbps→[OK]
651
652 (% style="text-align:center" %)
653 [[image:1.3.png]]
654
655 **Cable Wiring**
656
657 (% style="text-align:center" %)
658 [[image:Cable Wiring.png||height="200" width="721"]]
659
660 Pin Definition Diagram
661
662 (% style="text-align:center" %)
663 [[image:Pin Definition Diagram.png||height="200" width="411"]]
664
665 == **S7-200(Ethernet with 243)** ==
666
667 Supported Series: Siemens S7-200(Ethernet with 243)
668
669 **HMI Setting**
670
671 (% style="width:1420px" %)
672 |=(% style="width: 431px;" %)**Items**|=(% style="width: 543px;" %)**Settings**|=(% style="width: 444px;" %)**Note**
673 |=(% style="width: 431px;" %)Protocol|(% style="width:543px" %)Siemens S7-200(Ethernet with 243)|(% style="width:444px" %)(((
674
675 )))
676 |=(% style="width: 431px;" %)Connection|(% style="width:543px" %)Ethernet|(% style="width:444px" %)
677 |=(% style="width: 431px;" %)Port No.|(% style="width:543px" %)102|(% style="width:444px" %)
678 |=(% style="width: 431px;" %)PLC station No.|(% style="width:543px" %)2|(% style="width:444px" %)
679
680 (% class="box infomessage" %)
681 (((
682 **✎**Note: IF the [SIEMENS S7-200(Ethernet With 243)] can not link.Please choose [SIEMENS S7-200 Smart (Ethernet)] to test again.
683 )))
684
685 **Address List**
686
687 (% style="width:1429px" %)
688 |=(% style="width: 252px;" %)**Bit/Word**|=(% style="width: 257px;" %)**Device type**|=(% style="width: 226px;" %)Address NO.|=(% style="width: 349px;" %)Range|=(% style="width: 342px;" %)Note
689 |=(% colspan="1" rowspan="10" style="width: 252px;" %)Bit
690 |(% style="width:257px" %)I|(% style="width:226px" %)DDDD.o|(% style="width:349px" %)D:0~99999  o:0~7|(% style="width:342px" %)
691 |(% style="width:257px" %)Q|(% style="width:226px" %)DDDD.o|(% style="width:349px" %)D:0~99999  o:0~7|(% style="width:342px" %)
692 |(% style="width:257px" %)M|(% style="width:226px" %)DDDD.o|(% style="width:349px" %)D:0~99999  o:0~7|(% style="width:342px" %)
693 |(% style="width:257px" %)V|(% style="width:226px" %)DDDD.o|(% style="width:349px" %)D:0~99999  o:0~7|(% style="width:342px" %)
694 |(% style="width:257px" %)VWBit|(% style="width:226px" %)DDDD.o|(% style="width:349px" %)D:0~99999  o:0~7|(% style="width:342px" %)
695 |(% style="width:257px" %)SM|(% style="width:226px" %)DDDD.o|(% style="width:349px" %)D:0~65535  o:0~7|(% style="width:342px" %)
696 |(% style="width:257px" %)S|(% style="width:226px" %)DDDD.o|(% style="width:349px" %)D:0~99999  o:0~7|(% style="width:342px" %)
697 |(% style="width:257px" %)T|(% style="width:226px" %)DDDD|(% style="width:349px" %)0~99999 |(% style="width:342px" %)
698 |(% style="width:257px" %)C|(% style="width:226px" %)DDDD|(% style="width:349px" %)0~99999 |(% style="width:342px" %)
699 |(% style="width:257px" %)Lamp|(% style="width:226px" %)0|(% style="width:349px" %)0|(% style="width:342px" %)
700 |=(% colspan="1" rowspan="9" style="width: 252px;" %)Word
701 |(% style="width:257px" %)IW|(% style="width:226px" %)DDDD|(% style="width:349px" %)0~99999|(% style="width:342px" %)
702 |(% style="width:257px" %)QW|(% style="width:226px" %)DDDD|(% style="width:349px" %)0~99999|(% style="width:342px" %)
703 |(% style="width:257px" %)AIW|(% style="width:226px" %)DDDD|(% style="width:349px" %)0~99999|(% style="width:342px" %)
704 |(% style="width:257px" %)AQW|(% style="width:226px" %)DDDD|(% style="width:349px" %)0~99999|(% style="width:342px" %)
705 |(% style="width:257px" %)VW|(% style="width:226px" %)DDDD|(% style="width:349px" %)0~99998|(% style="width:342px" %)
706 |(% style="width:257px" %)MW|(% style="width:226px" %)DDDD|(% style="width:349px" %)0 ~~ 30|(% style="width:342px" %)
707 |(% style="width:257px" %)TW|(% style="width:226px" %)DDDD|(% style="width:349px" %)0~99999|(% style="width:342px" %)
708 |(% style="width:257px" %)CW|(% style="width:226px" %)DDDD|(% style="width:349px" %)0~99999|(% style="width:342px" %)
709 |(% style="width:257px" %)SW|(% style="width:226px" %)DDDD|(% style="width:349px" %)0~99999|(% style="width:342px" %)
710 |=(% colspan="1" rowspan="2" style="width: 252px;" %)Double word
711 |(% style="width:257px" %)MD|(% style="width:226px" %)DDDD|(% style="width:349px" %)0-28|(% style="width:342px" %)
712 |(% style="width:257px" %)VD|(% style="width:226px" %)DDDD|(% style="width:349px" %)0 ~~ 99998|(% style="width:342px" %)
713
714 **Viewing/Configuring Ethernet Parameters**
715
716 1.[Tools]~-~-[Ethernet Wizard]
717
718 (% style="text-align:center" %)
719 [[image:图片1.png]]
720
721 2.Choose the position of module 243 ~-~-[Next]
722
723 (% class="box infomessage" %)
724 (((
725 **✎**Note: Module position refers to the position of module 243 on the plc, please adjust according to the actual situation
726 )))
727
728
729 (% style="text-align:center" %)
730 [[image:图片2.png]]
731
732 3.Choose the module type,Next
733
734 (% style="text-align:center" %)
735 [[image:图片3.png]]
736
737 4.Set IP address as 192.168.1.218 ,and Subnet mask as 255.255.255.0,Next
738
739 (% style="text-align:center" %)
740 [[image:图片4.png]]
741
742 5.[QB]1~-~-[Number of connections to configure for this module]3~-~-[Next]
743
744 (% style="text-align:center" %)
745 [[image:图片5.png]]
746
747 6.Click [This is a Server Connection] and Click [Accept all connection requests],[OK]
748
749 (% style="text-align:center" %)
750 [[image:图片6.png]]
751
752 7.Click [Yes,generate CRC protection for  this configuration in the data book],set the Keep Alive Interval as 30 sec,[Next]
753
754 (% style="text-align:center" %)
755 [[image:图片7.png]]
756
757 8.Choose the Suggest Address,Next
758
759 (% style="text-align:center" %)
760 [[image:图片8.png]]
761
762 9.[ETH Configuration for 0]~-~-[Finish]
763
764 (% style="text-align:center" %)
765 [[image:图片9.png]]
766
767 **Test CP 243-1**
768
769 1.[Communications]→[PC/PPI cable]→[TCPIP.1]→[OK]
770
771 (% style="text-align:center" %)
772 [[image:图片10.png]]
773
774
775 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]
776
777 (% style="text-align:center" %)
778 [[image:图片11.png]]
779
780 **Cable Wiring**
781
782 [[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"]]
783
784
785 == **Siemens S7-1200/1500 Ethernet Free Tag** ==
786
787 **HMI Setting**
788
789 |**Items**|**Settings**|**Note**
790 |Protocol|Siemens S7-1200/1500 Ethernet FreeTag |
791 |Connection|Ethernet|
792 |Port No.|102|
793 |PLC station No.|1|
794
795 **Support Variable Type**
796
797 |=Data Type|=PIStudio Data Format
798 |=BOOL|Bit
799 |=BYTE|16-bit Unsigned/Binary/BCD/Hex
800 |=WORD|16-bit Unsigned/Binary/BCD/Hex
801 |=DWORD|32-bit Unsigned/Binary/BCD/Hex
802 |=SINT|16-bit Signed/Binary/BCD/Hex
803 |=USINT|16-bit Unsigned/Binary/BCD/Hex
804 |=INT|16-bit Signed/Binary/BCD/Hex
805 |=UINT|16-bit Unsigned/Binary/BCD/Hex
806 |=DINT|32-bit Signed/Binary/BCD/Hex
807 |=UDINT|32-bit Unsigned/Binary/BCD/Hex
808 |=STRING|Max:256
809 |=Real|32-bit Float
810 |=Struct|Bool/Byte/SINT/USINT/WORD/INT/UINT/DWord/DINT/Real/UDINT/String
811 |=Array|Bool/Byte/SINT/USINT/WORD/INT/UINT/DWord/DINT/Real/DINT/String
812
813 **Communication Settings**
814
815 Communication → choose "Siemens S7-1200/1500 Ethernet FreeTag" → OK
816
817 (% style="text-align:center" %)
818 [[image:QiUfoquheO.png]]
819
820 Setting→ PLC IP Address → OK
821
822 (% style="text-align:center" %)
823 [[image:p0oBclWpCu.png]]
824
825 **PLC Setting**
826
827 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]
828
829 (% style="text-align:center" %)
830 [[image:图片1.png]]
831
832 Open [Properties] again→[General]→[Protection&Security]→[Connection mechanisms]→Check [Permit access with PUTIGET communication remote partner ]→[OK]
833
834 (% style="text-align:center" %)
835 [[image:图片2.png]]
836
837 Create a new DB block:
838
839 [Add new block]→[Date block]→[Manual]→[OK]
840
841 (% style="text-align:center" %)
842 [[image:图片3.png]]
843
844 Right-click[DB1]→[Properties]→[General]→[Attributes]→Uncheck[Optimized block access]→[OK]
845
846 (% style="text-align:center" %)
847 [[image:图片4.png]]
848
849 **How to import the tags:**
850
851 Click DB block → create FreeTags → Project→ Save as the file in a path
852
853 (% style="text-align:center" %)
854 [[image:Po8BaJ5zII.png]]
855
856 (% style="text-align:center" %)
857 [[image:ln95kcUbPs.png]]
858
859 Communication→ Labels manage→ Import Tags From File→ choose PLC program→ Open
860
861 (% style="text-align:center" %)
862 [[image:xGYTeswe0E.png]]