Wiki source code of Siemens

Version 31.1 by Devin Chen on 2023/09/12 17:45

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**|**HMI register**|**Format**|**Range**|**Note**
20 |(% rowspan="9" %)Bit|I|I|I ddddd.o|0.0~~99999.7|
21 |Q|Q|Q ddddd.o|0.0~~99999.7|
22 |V|VWbit|VWbit ddddd.o|0.0~~99999.7|
23 |V|V|V ddddd.o|0.0~~99999.7|
24 |M|M|M ddddd.o|0.0~~99999.7|
25 |SM|SM|ddddd.o|0.0~~99999.7|
26 |S|S|ddddd.o|0.0~~99999.7|Read only
27 |T|T|ddddd|0~~99999|Timer state, read only
28 |C|C|ddddd|0~~99999|Counter state, read only
29 |(% rowspan="12" %)Word|I|IW|IW ddddd|0~~99999|
30 |Q|QW|QW ddddd|0~~99999|
31 |AI|AIW|AIW ddddd|0~~99999|
32 |AQ|VB|VB ddddd|0~~99999|
33 |V|VW|VW ddddd|0~~99998|(((
34 VW0=VB (0~~1)
35
36 VW2=VB (2~~3)
37
38 Address value is a multiple of 2
39 )))
40 |V|VD|VD ddddd|0~~99998|(((
41 VD0=VB (0~~3)
42
43 VD2=VB (4~~7)
44
45 Address value is a multiple of 4
46 )))
47 |M|MB|MB ddddd|0~~99999|
48 |M|MW|MW ddddd|0~~99999|(((
49 MW0=MB(0~~1)
50
51 MW2=MB(2~~3)
52
53 Address value is a multiple of 2
54 )))
55 |M|MD|MD ddddd|0~~99999|(((
56 MD0=MB(0~~3)
57
58 MD4=MB(4~~7)
59
60 Address value is a multiple of 4
61 )))
62 |T|TW|TW ddddd|0~~99999|Value of timer
63 |C|CW|CW ddddd|0~~99999|Value of counter
64 |W|SW|SW ddddd|0~~99999|
65
66 **Communication Settings**
67
68 Set PLC IP in [Device IP] settings;
69
70 {{id name="I12.PLCProtocol_html_70b0c4c2ee21b10d.png"/}}[[image:2.1.png||alt="12.PLC Protocol_html_70b0c4c2ee21b10d.png"]]
71
72 * PLC IP Address: PLC IP
73 * PLC pot No.: 102(fixed)
74 * Network:TCP_Client_2N(fixed)
75
76 {{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"]]
77
78 * Wait timeout: depend on actual network situation (more than 1500 ms)
79
80 **PLC Setting:**
81
82 ①Open STEP 7-MicroWIN SMART, create a new PLC project or open the project that has been created.
83 Create new project:Double click[CPU SR20]→[System Block]→[Module] CPU SR20(AC/DC/Relay)→[OK].
84
85 (% style="text-align:center" %)
86 [[image:1.2.png]]
87
88 ②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]
89
90 (% style="text-align:center" %)
91 [[image:1.3.png]]
92
93 **Cable Wiring**
94
95 {{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"]]
96
97 == {{id name="HS7-300Ethernet"/}}**S7-300 Ethernet** ==
98
99 Supported Series: Siemens S7-300 series PLC
100
101 **HMI Setting**
102
103 |**Items**|**Settings**|**Note**
104 |Protocol|Simens S7-300 Ethernet|
105 |Connection|Ethernet|
106 |Port No.|102|
107 |PLC station No.|2|Need to be same as the PLC setting
108
109 **Address List**
110
111 |**Type**|**Device register**|**HMI register**|**Format**|**Range**|**Note**
112 |(% rowspan="4" %)Bit|I|I|I ddddd.o|0.0~~99999.7|
113 |Q|Q|Q ddddd.o|0.0~~99999.7|
114 |M|M|M ddddd.o|0.0~~99999.7|
115 |DB0.DB~~DB9999.DB|DBxDBD|DBxDB nnnndddd.o|0.0~~99999999.7|(((
116 nnnn: block number;
117
118 dddd: address;
119 )))
120 |(% rowspan="8" %)Word|I|IW|IW ddddd|0~~99999|
121 |Q|QW|QW ddddd|0~~99999|
122 |(% rowspan="3" %)M|MB|MB ddddd|0~~99999|
123 |MW|MW ddddd|0~~99999|(((
124 MW0=MB(0~~1)
125
126 MW2=MB(2~~3)
127
128 Address value is a multiple of 2
129 )))
130 |MD|MD ddddd|0~~99999|(((
131 MD0=MB(0~~3)
132
133 MD4=MB(4~~7)
134
135 Address value is a multiple of 4
136 )))
137 |(% rowspan="3" %)DB0.DB~~DB9999.DB|DBxDBB|DBxDBB nnnndddd|0~~99999999|(% rowspan="3" %)(((
138 nnnn: block number;
139
140 dddd: address
141 )))
142 |DBxDBW|DBxDBW nnnndddd|0~~99999999
143 |DBxDBD|DBxDBD nnnndddd|0~~99999999
144
145 **Communication Settings**
146
147 Enable HMI Ethernet in [Project Settings];
148
149 {{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"]]
150
151 Set PLC IP in [Device IP] settings;
152
153 {{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"]]
154
155 * PLC IP Address: PLC IP
156 * PLC pot No.: 102(fixed)
157 * Network:TCP_Client_2N(fixed)
158
159 {{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"]]
160
161 * Wait timeout: depend on actual network situation (more than 1500 ms)
162
163 **Cable Wiring**
164
165 {{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"]]
166
167 == {{id name="HS7-1200A0Ethernet"/}}**S7-1200 Ethernet** ==
168
169 Supported Series: Siemens S7-1200
170
171 **HMI Setting**
172
173 |**Items**|**Settings**|**Note**
174 |Protocol|Siemens S7-1200|
175 |Connection|Ethernet|
176 |Port No.|102|
177 |PLC station No.|2|
178
179 **Address List**
180
181 |**Type**|**Device register**|**HMI register**|**Format**|**Range**|**Note**
182 |(% rowspan="4" %)Bit|I|I|M d.o|(((
183 d:0~-~-9999
184
185 o:0-7
186 )))|
187 |Q|Q|Q d.o|(((
188 d:0~-~-9999
189
190 o:0-7
191 )))|
192 |M|M|M d.o|(((
193 d:0~-~-9999
194
195 o:0-7
196 )))|
197 |DB0.DB-DB99.DB|DBxDB|DBxDBnndddd.o|(((
198 nn:0-9999,
199
200 dddd:0-9999,
201
202 o:0-7
203 )))|(((
204 nn:DB No.
205
206 dddd:address value
207
208 o: digit address
209 )))
210 |(% rowspan="8" %)Word|M|MB|MB d|d:0-99999|
211 |M|MW|MW d|d:0-99999|(((
212 MW0=MB(0~~1)
213
214 MW2=MB(2~~3)
215
216 Address value is a multiple of 2
217 )))
218 |M|MD|MD d|d:0-99999|(((
219 MD0=MB(0~~3)
220
221 MD4=MB(4~~7)
222
223 Address value is a multiple of 4
224 )))
225 |I|IW|IW d|d:0-99999|
226 |Q|QW|QW d|d:0-99999|
227 |DB0.DB-DB99.DB|DBxDBB|DBxDBBnndddd|(((
228 nn:0-9999
229
230 dddd:0-9999
231 )))|(((
232 nn:DB No.
233
234 dddd:address value
235 )))
236 |DB0.DB-DB99.DB|DBxDBW|DBxDBWnndddd|(((
237 nn:0-9999
238
239 dddd:0-9999
240 )))|(((
241 nn:DB No.
242
243 dddd:address value
244
245 Address value is a multiple of 2
246 )))
247 |DB0.DB-DB99.DB|DBxDBD|DBxDBDnndddd|(((
248 nn:0-9999
249
250 dddd:0-9999
251 )))|(((
252 nn:DB No.
253
254 dddd:address value
255
256 Address value is a multiple of 4
257 )))
258
259 **Communication Settings**
260
261 Enable HMI Ethernet in [Project Settings];
262
263 {{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"]]
264
265 Set PLC IP in [Device IP] settings;
266
267 {{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"]]
268
269 **✎Note:**
270
271 * The S7-1200 supports simultaneous connection of three devices, so the driver supports simultaneous access to PLC by three touch screens.
272 * 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.
273 * 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.
274 * HMI operation character length needs to be set to 2 times the length of the Siemens character for proper display.
275
276 **PLC Settings**
277
278 Add BD
279
280 * Please uncheck [Symbolic access only] option;
281
282 {{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"]]
283
284 Address settings, using BD2 as example.
285
286 * DB×DBB2xxxx, DB×DBW2xxxx, DB×DBD2xxxx for accessing data of DB2 in B1.
287 * 2 represent DB block number
288 * xxxx represent address
289
290 **Such as:**
291
292 * DBxDBB20000 = DB2.DBB0
293 * DBxDBW20004 = DB2.DBW4
294
295 {{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"]]
296
297 **How to connect with S7-1200 Firmware V4.0**
298
299 PLC configuration
300
301 * Double click [device configuration] in Siemens via software
302 * Double click [protection] to enter protection configuration screen
303
304 {{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"]]
305
306 * Check [Permit access with PUT / GET communication from remote partner (PLC, HMI, OPC, ...)]
307
308 {{id name="I12.PLCProtocol_html_d2c667b02f9720b1.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_78026942a88f0fdb.png||alt="12.PLC Protocol_html_d2c667b02f9720b1.png" height="296" width="554"]]
309
310 DB settings
311
312 * Right click [DB], select [properties]
313 * Uncheck [optimized block access]
314
315 **Cable Wiring**
316
317 {{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"]]
318
319 == {{id name="HS7-XXXEthernet"/}}**S7-XXX Ethernet** ==
320
321 Supported Series: Siemens S7-400, S7-1200 and S7-1500
322
323 **HMI Setting**
324
325 |=**Items**|=**Settings**|=**Note**
326 |Protocol|Siemens S7-XXX|
327 |Connection|Ethernet|
328 |Port No.|102|
329 |Device No.|Slot (Default 1 for S7-1500/ 2 for S7-1200/ 3 for S7-400)|
330 |HMI No.|Rack (Default as 0)|
331
332 Slot from TIA Portal is equal to Device No. of PIStudio
333
334 Rack from TIA Portal is equal to HMI No. of PIStudio
335
336 {{id name="IS7-XXXCommunicationSettings.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_d78bc267e5fc6394.png||alt="S7-XXXCommunication Settings.png" height="503" width="798"]]
337
338 {{id name="IS7-XXXCommunicationSettingsPIStudio.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_561c9c5b1c99916b.png||alt="S7-XXXCommunication SettingsPI.png" height="706" width="908"]]
339
340 **Address List**
341
342 |**Type**|**Device register**|**HMI register**|**Format**|**Range**|**Note**
343 |(% rowspan="4" %)Bit|I|I|M d.o|(((
344 d:0~-~-9999
345
346 o:0-7
347 )))|
348 |Q|Q|Q d.o|(((
349 d:0~-~-9999
350
351 o:0-7
352 )))|
353 |M|M|M d.o|(((
354 d:0~-~-9999
355
356 o:0-7
357 )))|
358 |DB0.DB-DB99.DB|DBxDB|DBxDBnndddd.o|(((
359 nn:0-9999,
360
361 dddd:0-9999,
362
363 o:0-7
364 )))|(((
365 nn:DB No.
366
367 dddd:address value
368
369 o: digit address
370 )))
371 |(% rowspan="8" %)Word|M|MB|MB d|d:0-99999|
372 |M|MW|MW d|d:0-99999|(((
373 MW0=MB(0~~1)
374
375 MW2=MB(2~~3)
376
377 Address value is a multiple of 2
378 )))
379 |M|MD|MD d|d:0-99999|(((
380 MD0=MB(0~~3)
381
382 MD4=MB(4~~7)
383
384 Address value is a multiple of 4
385 )))
386 |I|IW|IW d|d:0-99999|
387 |Q|QW|QW d|d:0-99999|
388 |DB0.DB-DB99.DB|DBxDBB|DBxDBBnndddd|(((
389 nn:0-9999
390
391 dddd:0-9999
392 )))|(((
393 nn:DB No.
394
395 dddd:address value
396 )))
397 |DB0.DB-DB99.DB|DBxDBW|DBxDBWnndddd|(((
398 nn:0-9999
399
400 dddd:0-9999
401 )))|(((
402 nn:DB No.
403
404 dddd:address value
405
406 Address value is a multiple of 2
407 )))
408 |DB0.DB-DB99.DB|DBxDBD|DBxDBDnndddd|(((
409 nn:0-9999
410
411 dddd:0-9999
412 )))|(((
413 nn:DB No.
414
415 dddd:address value
416
417 Address value is a multiple of 4
418 )))
419
420 **Communication Settings**
421
422 Enable HMI Ethernet in [Project Settings];
423
424 {{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"]]
425
426 Set PLC IP in [Device IP] settings;
427
428 {{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"]]
429
430 **✎Note:**
431
432 * The S7-1200 supports simultaneous connection of three devices, so the driver supports simultaneous access to PLC by three touch screens.
433 * 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.
434
435 **Cable Wiring**
436
437 {{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"]]
438
439 == {{id name="cke_bm_25456S"/}}{{id name="HLOGOEthernet"/}}** LOGO Ethernet** ==
440
441 Supported Series: Siemens Logo 0BA0, 0BA1 series
442
443 **HMI Settings**
444
445 |**Items**|**Settings**|**Note**
446 |Protocol|Siemens LOGO|
447 |Connection|Ethernet|
448 |Port No.|102|
449 |PLC station No.|2|
450
451 **Address List**
452
453 |**Number**|**Address Type**|**Data Type**|**Range**|**DB Address**|**PLC Address**
454 |1|RTC|Word|1-7|DB1.DBX984.0|0x001ec0
455 |2|VB|Byte|0-1469|DB1.DBX0.0|0x000000
456 |3|VD|Double Word|0-1466|DB1.DBX0.0|0x000000
457 |4|VW|Word|0-1468|DB1.DBX0.0|0x000000
458 |5|NAQ|Word|1-32|DB1.DBX1406.0|0x002bf0
459 |6|NAI|Word|1-64|DB1.DBX1262.0|0x002770
460 |7|AM|Word|1-64|DB1.DBX1118.0|0x0022f0
461 |8|AQ|Word|1-16|DB1.DBX1072.0|0x002180
462 |9|AI|Word|1-16|DB1.DBX1032.0|0x002040
463 |10|I|Bit|1-64|DB1.DBX1024.0|0x002000
464 |11|Q|Bit|1-64|DB1.DBX1064.0|0x002140
465 |12|M|Bit|1-112|DB1.DBX1104.0|0x002280
466 |13|NI|Bit|1-128|DB1.DBX1246.0|0x0026f0
467 |14|NQ|Bit|1-128|DB1.DBX1390.0|0x002b70
468 |15|V|Bit|0-14697|DB1.DBX0.0|0x000000
469
470 **PLC Settings in LOGO Software:**
471
472 Click [Tools]~-~-[Ethernet Connections],shown as below.
473
474 {{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"]]
475
476 Set Ethernet connection parameter. IP, Subnet Mask, shown as below.
477
478 {{id name="Iimage-20221228142937-4.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_316247e0130c4c55.png||alt="image-20221228142937-4.png" height="484" width="366"]]
479
480 **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.
481
482 {{id name="Iimage-20221228143047-5.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_facc6ee1af05162f.png||alt="image-20221228143047-5.png" height="626" width="1088"]]
483
484 **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.
485
486 {{id name="Iimage-20221228143246-6.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_d43d2b7b2599ee64.png||alt="image-20221228143246-6.png" height="698" width="688"]]
487
488 **HMI Communication Settings**
489
490 Set PLC IP in [Device IP] settings;
491
492 {{id name="Iimage-20221228143614-7.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_58cea5198cb7c78a.png||alt="image-20221228143614-7.png" height="706" width="909"]]
493
494 Enable HMI Ethernet in [Project Settings];
495
496 {{id name="Iimage-20221228144229-9.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_7904cd9b484f6634.png||alt="image-20221228144229-9.png" height="451" width="793"]]
497
498 TSAP setting
499
500 * 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.
501 * HSW10118/HSW1200 = local TSAP of HMI, this is remote TSAP of PLC.
502 * HSW10119/HSW1201 = Remote TSAP of HMI, this is local TSAP of PLC.
503 * PI, PI+, i series (1.0 system): use HSW10118, HSW10119.
504 ie, ig series: use HSW1200, HSW1201.
505 HMI V2.0: use HSW1200, HSW1201.
506
507 **✎Note:**
508
509 * 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.
510 * HSW10119/HSW1201 is set up as shown.
511 * {{id name="Iimage-20221228144800-11.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_c518682b5f97ac1b.png||alt="image-20221228144800-11.png" height="144" width="538"]]
512 * {{id name="Iimage-20221228144708-10.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_885bd6754ccb5593.png||alt="image-20221228144708-10.png" height="127" width="537"]]
513
514 * AI word address and Ibit address are read-only and cannot be written on HMI.
515 * 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.
516 * VD address should be multiple of 4, because it occupies two VW addresses, such as VD0, VD4, VD8...
517 * Written value of RTC cannot exceed 255.
518
519 **Cable Wiring**
520
521 {{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"]]
522
523 == {{id name="HS7-30028WithPCAdapter29"/}}**S7-300(With PC Adapter)** ==
524
525 **HMI Setting:**
526
527 |=**Parameters**|=**Recommended**|=**Options**|=**Notes**
528 |=**PLC type**|(% colspan="2" %)SIEMENS S7-300 (with PC Adapter)|
529 |=**PLC I/F**|RS232| |
530 |=**Baud rate**|19200|9600,19200|
531 |=**Data bits**|8| |
532 |=**Parity**|Odd| |
533 |=**Stop bits**|1| |
534 |=**PLC sta. no.**|2| |Must be same as the PLC setting.
535
536 **Device Address**
537
538 |=**Bit/Word**|=**Device type**|=**Format**|=**Range**|=**Memo**
539 |=Bit|I|DDDDo|0 ~~ 40957|Input (I)
540 |=Bit|Q|DDDDo|0 ~~ 40957|Output (O)
541 |=Bit|M|DDDDo|0 ~~ 40957|Bit Memory
542 |=Word|DB1 to DB99|DDDDDo|0 ~~ 655327|
543 |=Word|IW|DDDD|0 ~~ 4095|Input (I)
544 |=Word|QW|DDDD|0 ~~ 4095|Output (O)
545 |=Word|MW|DDDD|0 ~~ 4095|Bit Memory
546 |=Double word|MD|DDDD|0 ~~ 4094|
547 |=Double word|DBDn|FFFFFDDDD|0 ~~ 655359999|Data Register Double Word (must be even)
548 |=Byte|MB|DDDD|0 ~~ 4095|Bit Memory Byte
549
550 **Cable Wiring**
551
552 {{id name="Iimage-20221010102051-1.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_77dc63b5c3645636.png||alt="image-20221010102051-1.png" height="239" width="395"]]
553
554 == **S7-200 Serial ** ==
555
556 Supported Series: Siemens S7-200 SMART Series.
557
558 Website: [[http:~~/~~/www.siemens.com/entry/cc/en/>>url:http://www.siemens.com/entry/cc/en/]]
559
560 **HMI Setting**
561
562 |=**Parameters**|=**Recommended**|=**Notes**
563 |=**PLC type**|(% colspan="1" %)SIEMENS S7-200 CPU22x/Smart PPI new|
564 |=**PLC I/F**|RS485|
565 |=**Baud rate**|9600|
566 |=**Data bits**|8|
567 |=**Parity**|EVEN|
568 |=**Stop bits**|1|
569 |=**PLC sta. no.**|2|Must be same as the PLC setting.
570
571 **Address List**
572
573 (% style="width:1081px" %)
574 |=(% style="width: 114px;" %)**Type**|=(% style="width: 287px;" %)**Device registers**|=**HMI registers**|=**Format**|=**Range**|=(% style="width: 112px;" %)**Note**
575 |(% colspan="1" rowspan="9" style="width:114px" %)Bit|(% style="width:287px" %)I|I|I d|0~~99999|(% style="width:112px" %)
576 |(% style="width:287px" %)Q|Q|Q d|0~~99999|(% style="width:112px" %)
577 |(% style="width:287px" %)VWBit|VWBit|VWBit d|0~~99999|(% style="width:112px" %)
578 |(% style="width:287px" %)V|V|V d|0~~99999|(% style="width:112px" %)
579 |(% style="width:287px" %)M|M|M d|0~~99999|(% style="width:112px" %)
580 |(% style="width:287px" %)SM|SM|SM d|0~~99999|(% style="width:112px" %)
581 |(% style="width:287px" %)S|S|S d|0~~99999|(% style="width:112px" %)
582 |(% style="width:287px" %)T|T|T d|0~~99999|(% style="width:112px" %)
583 |(% style="width:287px" %)C|C|C d|0~~99999|(% style="width:112px" %)
584 |(% colspan="1" rowspan="10" style="width:114px" %)Word|(% style="width:287px" %)IW|IW|IW d|0~~99998|(% style="width:112px" %)
585 |(% style="width:287px" %)QW|QW|QW d|0~~99998|(% style="width:112px" %)
586 |(% style="width:287px" %)AIW|AIW|AIW d|0~~99998|(% style="width:112px" %)
587 |(% style="width:287px" %)AQW|AQW|AQW d|0~~99998|(% style="width:112px" %)
588 |(% style="width:287px" %)VW|VW|VW d|0~~99998|(% style="width:112px" %)
589 |(% style="width:287px" %)MW|MW|MW d|0~~30|(% style="width:112px" %)
590 |(% style="width:287px" %)SW|SW|SW d|0~~99998|(% style="width:112px" %)
591 |(% style="width:287px" %)SMW|SMW|SMW d|0~~99998|(% style="width:112px" %)
592 |(% style="width:287px" %)TW|TW|TW d|0~~99999|(% style="width:112px" %)
593 |(% style="width:287px" %)CW|CW|CW d|0~~99999|(% style="width:112px" %)
594
595 **Configure the communication protocol**
596
597 (% style="text-align:center" %)
598 [[image:2.3.png]]
599
600 (% style="text-align:center" %)
601 [[image:2.3.2.png]]
602
603 **PLC Settings(STEP 7-MicroWIN SMART)**
604
605 Open STEP 7-MicroWIN SMART, create a new PLC project or open the project that has been created.
606 Create new project:Double click[CPU SR20]→[System Block]→[Module] CPU SR20(AC/DC/Relay)→[OK].
607
608 (% style="text-align:center" %)
609 [[image:1.2.png]]
610
611 PLC Default Parameters: Double click[CPU SR20]→[System Block]→[RS485 Port]→[Address]2,[Baud Rate]9.6Kbps→[OK]
612
613 (% style="text-align:center" %)
614 [[image:1.3.png]]
615
616 **Cable Wiring**
617
618 (% style="text-align:center" %)
619 [[image:Cable Wiring.png||height="200" width="721"]]
620
621 Pin Definition Diagram
622
623 (% style="text-align:center" %)
624 [[image:Pin Definition Diagram.png||height="200" width="411"]]