Changes for page 12 PLC Protocol OLD

Last modified by Mora Zhou on 2024/12/05 14:53

From version 108.1
edited by Ben
on 2022/08/30 11:41
Change comment: There is no comment for this version
To version 92.1
edited by Ben
on 2022/08/29 14:39
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -594,7 +594,7 @@
594 594  |N|ffff|N0 ~~ FFFF
595 595  |F|ffff|F0 ~~ FFFF
596 596  
597 -= Create communication with (% id="cke_bm_43878S" style="display:none" %)** **(%%)**Siemens PLC** =
597 += Create communication with (% id="cke_bm_43878S" style="display:none" %)** **(%%)**Siemens** =
598 598  
599 599  == **S7-200 Smart Ethernet Protocol** ==
600 600  
... ... @@ -1143,9 +1143,9 @@
1143 1143  
1144 1144  [[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"]]
1145 1145  
1146 -= Create communication with **Mitsubishi PLC** =
1146 += Create communication with **Mitsubishi** =
1147 1147  
1148 -== **FX1S, 1N, 2N Series Protocol** ==
1148 +== **FX1S, 1N, 2N Series** ==
1149 1149  
1150 1150  Supported Series: Mitsubishi FX1S, FX1N, FX2N series
1151 1151  
... ... @@ -1198,7 +1198,7 @@
1198 1198  
1199 1199  **✎Note:** COM3 only available in PI8000/PI9000 series.
1200 1200  
1201 -== **FX5U Ethernet Protocol** ==
1201 +== **FX5U Ethernet** ==
1202 1202  
1203 1203  Mitsubishi FX5U series PLC
1204 1204  
... ... @@ -1277,7 +1277,7 @@
1277 1277  (% style="text-align:center" %)
1278 1278  [[image:12.PLC Protocol_html_2297240b57346b2a.png||data-xwiki-image-style-alignment="center" height="170" width="401" class="img-thumbnail"]]
1279 1279  
1280 -== **FX5U Serial Port Protocol** ==
1280 +== **FX5U Serial Port** ==
1281 1281  
1282 1282  Mitsubishi FX5U series PLC
1283 1283  
... ... @@ -1369,7 +1369,7 @@
1369 1369  
1370 1370  **✎Note:** COM3 only available in PI8000/PI9000 series.
1371 1371  
1372 -== **L02 MELSEC (Ethernet) Protocol** ==
1372 +== **L02 MELSEC (Ethernet)** ==
1373 1373  
1374 1374  Mitsubishi Q series CPU built-in Ethernet port.
1375 1375  
... ... @@ -1454,7 +1454,7 @@
1454 1454  (% style="text-align:center" %)
1455 1455  [[image:12.PLC Protocol_html_2297240b57346b2a.png||data-xwiki-image-style-alignment="center" height="170" width="401" class="img-thumbnail"]]
1456 1456  
1457 -== **QJ71E71 MELSEC Protocol** ==
1457 +== **QJ71E71 MELSEC** ==
1458 1458  
1459 1459  Mitsubishi QJ71E71 Ethernet communication module;
1460 1460  
... ... @@ -1534,155 +1534,6 @@
1534 1534  (% style="text-align:center" %)
1535 1535  [[image:12.PLC Protocol_html_2297240b57346b2a.png||data-xwiki-image-style-alignment="center" height="170" width="401" class="img-thumbnail"]]
1536 1536  
1537 -= Create communication with **Delta PLC** =
1538 -
1539 -== **DVP serial protocol** ==
1540 -
1541 -(% class="wikigeneratedid" %)
1542 -Supported Series: Delta DVP EH/ES/SS/EX/EH2/SV/SA/SC/SX Controller
1543 -
1544 -**1)HMI Settings**
1545 -
1546 -|**Item**|**Settings**|**Note**
1547 -|Protocol|DELTA DVP Series|
1548 -|Connection|RS485|
1549 -|Baud rate|9600|
1550 -|Data bit|7|
1551 -|Parity|Even|
1552 -|Stop bit|1|
1553 -|PLC station No.|1~~255|Need to be the same as PLC settings
1554 -
1555 -**2)Address List**
1556 -
1557 -|**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
1558 -|Bit|X|X|X d|0~~303237|
1559 -|Bit|Y|Y|Y d|0~~303237|
1560 -|Bit|M|M|M d|0~~99999|
1561 -|Bit|T|T|T d|0~~99999|
1562 -|Bit|C|C|T d|0~~99999|
1563 -|Bit|S|S|T d|0~~99999|
1564 -|Word|D|D|D d|0~~99999|
1565 -|Word|T|T|T d|0~~99999|
1566 -|Word|C|C|C d|0~~99999|
1567 -
1568 -(% class="wikigeneratedid" %)
1569 -**3)Configure the communication protocol**
1570 -
1571 -(% class="wikigeneratedid" %)
1572 -[[image:image-20220829152327-6.png]]
1573 -
1574 -(% class="wikigeneratedid" %)
1575 -[[image:image-20220829152016-3.png]]
1576 -
1577 -(% class="wikigeneratedid" %)
1578 -**4)Cable Wiring**
1579 -
1580 -(% class="wikigeneratedid" id="H" %)
1581 -[[image:image-20220829152610-7.png]]
1582 -
1583 -(% class="wikigeneratedid" id="H" %)
1584 -[[image:image-20220829152102-5.png]]
1585 -
1586 -
1587 -== **DVP Ethernet Protocol** ==
1588 -
1589 -(% class="wikigeneratedid" %)
1590 -Supported Series: Delta DVP ES2/EX2/SS2/SA2/SX2/SE Controller
1591 -
1592 -**1)HMI Settings**
1593 -
1594 -|**Items**|**Settings**|**Note**
1595 -|Protocol|DELTA DVP Modbus TCP|
1596 -|Connection|Ethernet|
1597 -|Port No.|201|Must be the same as the PLC setting
1598 -|PLC station No.|0|Must be the same as the PLC setting
1599 -
1600 -**2)Address List**
1601 -
1602 -|**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
1603 -|Bit|X|X|X o|0~~377|
1604 -|Bit|Y|Y|Y o|0~~377|
1605 -|Bit|M0|M0|M0 d|0~~1535|
1606 -|Bit|M1|M1|M1 d|1536~~4095|
1607 -|Bit|T|T|T d|0~~255|
1608 -|Bit|C|C|C d|0~~255|
1609 -|Bit|S|S|S d|0~~1023|
1610 -|Word|D0|D0|D0 d|0~~4095|
1611 -|Word|D1|D1|D1 d|4096~~11999|(((
1612 -
1613 -)))
1614 -|Word|T|T|T d|0~~255|
1615 -|Word|C|C|C d|0~~199|(((
1616 -
1617 -)))
1618 -
1619 -(% class="wikigeneratedid" %)
1620 -**3)Configure the communication protocol**
1621 -
1622 -[[image:image-20220829155452-1.png]]
1623 -
1624 -[[image:image-20220829162116-2.png]]
1625 -
1626 -**4)Cable Wiring**
1627 -
1628 -[[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.PLC Protocol_html_2297240b57346b2a.png" height="170" width="401"]]
1629 -
1630 -== **AS serial protocol** ==
1631 -
1632 -**1)HMI Settings**
1633 -
1634 -|**Item**|**Settings**|**Note**
1635 -|Protocol|DELTA AS300 MODBUS RTU|
1636 -|Connection|RS485|
1637 -|Baud rate|9600|
1638 -|Data bit|8|
1639 -|Parity|NONE|
1640 -|Stop bit|1|
1641 -|PLC station No.|1|
1642 -
1643 -**2)Address List**
1644 -
1645 -
1646 -|**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
1647 -|Bit|X|X|X d|0~~63|
1648 -|Bit|Y|Y|Y d|0~~63|
1649 -|Bit|D|D|D d|0~~29999|
1650 -|Bit|M|M|M d|0~~8191|
1651 -|Bit|SM|SM|SM d|0~~4095|
1652 -|Bit|S|S|S h|0~~2047|
1653 -|Bit|T|T|T d|0~~511|
1654 -|Bit|C|C|C d|0~~511|
1655 -|Bit|HC|HC|HC d|0~~255|
1656 -|Word|X|X|X h|0~~63|
1657 -|Word|Y|Y|Y d|0~~63|
1658 -|Word|SR|SR|SR d|0~~2047|
1659 -|Word|D|D|D d|0~~29999|
1660 -|Word|T|T|T d|0~~511|
1661 -|Word|C|C|C h|0~~511|
1662 -|Word|E|E|E d|0~~9|
1663 -
1664 -**3)Configure the communication protocol**
1665 -
1666 -[[image:image-20220830094600-1.png]]
1667 -
1668 -[[image:image-20220830094657-2.png]]
1669 -
1670 -**4)Cable Wiring**
1671 -
1672 -[[image:image-20220830095131-1.png]]
1673 -
1674 -== **AS Ethernet Protocol** ==
1675 -
1676 -**1)HMI Settings**
1677 -
1678 -**2)Address List**
1679 -
1680 -**3)Configure the communication protocol**
1681 -
1682 -**4)Cable Wiring**
1683 -
1684 -[[image:image-20220830094929-1.png]]
1685 -
1686 1686  = **MODBUS** =
1687 1687  
1688 1688  == **MODBUS RTU Master** ==
... ... @@ -2368,6 +2368,559 @@
2368 2368  
2369 2369  **✎Note:** COM3 only available in PI8000/PI9000 series.
2370 2370  
2222 += **Siemens** =
2223 +
2224 +== **S7-200 Smart Ethernet** ==
2225 +
2226 +Supported Series: Siemens S7-200 SMART Series Ethernet Module.
2227 +
2228 +Website: [[http:~~/~~/www.siemens.com/entry/cc/en/>>url:http://www.siemens.com/entry/cc/en/]]
2229 +
2230 +**HMI Setting**
2231 +
2232 +(% class="table-bordered" %)
2233 +|**Items**|**Settings**|**Note**
2234 +|Protocol|Simens S7-200 Smart Ethernet|
2235 +|Connection|Ethernet|
2236 +|Port No.|102|
2237 +|PLC station No.|2|
2238 +
2239 +**Address List**
2240 +
2241 +(% class="table-bordered" %)
2242 +|**Type**|**Device register**|**HMI register**|**Format**|**Range**|**Note**
2243 +|(% rowspan="9" %)Bit|I|I|I ddddd.o|0.0~~99999.7|
2244 +|Q|Q|Q ddddd.o|0.0~~99999.7|
2245 +|V|VWbit|VWbit ddddd.o|0.0~~99999.7|
2246 +|V|V|V ddddd.o|0.0~~99999.7|
2247 +|M|M|M ddddd.o|0.0~~99999.7|
2248 +|SM|SM|ddddd.o|0.0~~99999.7|
2249 +|S|S|ddddd.o|0.0~~99999.7|Read only
2250 +|T|T|ddddd|0~~99999|Timer state, read only
2251 +|C|C|ddddd|0~~99999|Counter state, read only
2252 +|(% rowspan="12" %)Word|I|IW|IW ddddd|0~~99999|
2253 +|Q|QW|QW ddddd|0~~99999|
2254 +|AI|AIW|AIW ddddd|0~~99999|
2255 +|AQ|VB|VB ddddd|0~~99999|
2256 +|V|VW|VW ddddd|0~~99998|(((
2257 +VW0=VB (0~~1)
2258 +
2259 +VW2=VB (2~~3)
2260 +
2261 +Address value is a multiple of 2
2262 +)))
2263 +|V|VD|VD ddddd|0~~99998|(((
2264 +VD0=VB (0~~3)
2265 +
2266 +VD2=VB (4~~7)
2267 +
2268 +Address value is a multiple of 4
2269 +)))
2270 +|M|MB|MB ddddd|0~~99999|
2271 +|M|MW|MW ddddd|0~~99999|(((
2272 +MW0=MB(0~~1)
2273 +
2274 +MW2=MB(2~~3)
2275 +
2276 +Address value is a multiple of 2
2277 +)))
2278 +|M|MD|MD ddddd|0~~99999|(((
2279 +MD0=MB(0~~3)
2280 +
2281 +MD4=MB(4~~7)
2282 +
2283 +Address value is a multiple of 4
2284 +)))
2285 +|T|TW|TW ddddd|0~~99999|Value of timer
2286 +|C|CW|CW ddddd|0~~99999|Value of counter
2287 +|W|SW|SW ddddd|0~~99999|
2288 +
2289 +**Communication Settings**
2290 +
2291 +Enable HMI Ethernet in [Project Settings];
2292 +
2293 +(% style="text-align:center" %)
2294 +[[image:12.PLC Protocol_html_43b671f18153910d.png||data-xwiki-image-style-alignment="center" height="107" width="405" class="img-thumbnail"]]
2295 +
2296 +Set PLC IP in [Device IP] settings;
2297 +
2298 +(% style="text-align:center" %)
2299 +[[image:12.PLC Protocol_html_70b0c4c2ee21b10d.png||data-xwiki-image-style-alignment="center" height="189" width="554" class="img-thumbnail"]]
2300 +
2301 +* PLC IP Address: PLC IP
2302 +* PLC pot No.: 102(fixed)
2303 +* Network:TCP_Client_2N(fixed)
2304 +
2305 +(% style="text-align:center" %)
2306 +[[image:12.PLC Protocol_html_5891afd92901b7ad.png||data-xwiki-image-style-alignment="center" height="276" width="347" class="img-thumbnail"]]
2307 +
2308 +* Wait timeout: depend on actual network situation (more than 1500 ms)
2309 +
2310 +**Cable Wiring**
2311 +
2312 +(% style="text-align:center" %)
2313 +[[image:12.PLC Protocol_html_2297240b57346b2a.png||data-xwiki-image-style-alignment="center" height="170" width="401" class="img-thumbnail"]]
2314 +
2315 +== **S7-300 Ethernet** ==
2316 +
2317 +Supported Series: Siemens S7-300 series PLC
2318 +
2319 +**HMI Setting**
2320 +
2321 +(% class="table-bordered" %)
2322 +|**Items**|**Settings**|**Note**
2323 +|Protocol|Simens S7-300 Ethernet|
2324 +|Connection|Ethernet|
2325 +|Port No.|102|
2326 +|PLC station No.|2|Need to be same as the PLC setting
2327 +
2328 +**Address List**
2329 +
2330 +(% class="table-bordered" %)
2331 +|**Type**|**Device register**|**HMI register**|**Format**|**Range**|**Note**
2332 +|(% rowspan="4" %)Bit|I|I|I ddddd.o|0.0~~99999.7|
2333 +|Q|Q|Q ddddd.o|0.0~~99999.7|
2334 +|M|M|M ddddd.o|0.0~~99999.7|
2335 +|DB0.DB~~DB99.DB|DBxDBD|DBxDB nndddd.o|0.0~~99999999.7|(((
2336 +nn: block number;
2337 +
2338 +dddd: address;
2339 +)))
2340 +|(% rowspan="8" %)Word|I|IW|IW ddddd|0~~99999|
2341 +|Q|QW|QW ddddd|0~~99999|
2342 +|(% rowspan="3" %)M|MB|MB ddddd|0~~99999|
2343 +|MW|MW ddddd|0~~99999|(((
2344 +MW0=MB(0~~1)
2345 +
2346 +MW2=MB(2~~3)
2347 +
2348 +Address value is a multiple of 2
2349 +)))
2350 +|MD|MD ddddd|0~~99999|(((
2351 +MD0=MB(0~~3)
2352 +
2353 +MD4=MB(4~~7)
2354 +
2355 +Address value is a multiple of 4
2356 +)))
2357 +|(% rowspan="3" %)DB0.DB~~DB99.DB|DBxDBB|DBxDBB nndddd|0~~99999999|(% rowspan="3" %)(((
2358 +nn: block number;
2359 +
2360 +dddd: address
2361 +)))
2362 +|DBxDBW|DBxDBW nndddd|0~~99999999
2363 +|DBxDBD|DBxDBD nndddd|0~~99999999
2364 +
2365 +**Communication Settings**
2366 +
2367 +Enable HMI Ethernet in [Project Settings];
2368 +
2369 +(% style="text-align:center" %)
2370 +[[image:12.PLC Protocol_html_43b671f18153910d.png||data-xwiki-image-style-alignment="center" height="107" width="405" class="img-thumbnail"]]
2371 +
2372 +Set PLC IP in [Device IP] settings;
2373 +
2374 +(% style="text-align:center" %)
2375 +[[image:12.PLC Protocol_html_910b1a0aa9e2201c.png||data-xwiki-image-style-alignment="center" height="188" width="554" class="img-thumbnail"]]
2376 +
2377 +* PLC IP Address: PLC IP
2378 +* PLC pot No.: 102(fixed)
2379 +* Network:TCP_Client_2N(fixed)
2380 +
2381 +(% style="text-align:center" %)
2382 +[[image:12.PLC Protocol_html_5891afd92901b7ad.png||data-xwiki-image-style-alignment="center" height="276" width="347" class="img-thumbnail"]]
2383 +
2384 +* Wait timeout: depend on actual network situation (more than 1500 ms)
2385 +
2386 +**Cable Wiring**
2387 +
2388 +(% style="text-align:center" %)
2389 +[[image:12.PLC Protocol_html_2297240b57346b2a.png||data-xwiki-image-style-alignment="center" height="170" width="401" class="img-thumbnail"]]
2390 +
2391 +== **S7-1200 Ethernet** ==
2392 +
2393 +Supported Series: Siemens S7-1200
2394 +
2395 +**HMI Setting**
2396 +
2397 +(% class="table-bordered" %)
2398 +|**Items**|**Settings**|**Note**
2399 +|Protocol|Siemens S7-1200|
2400 +|Connection|Ethernet|
2401 +|Port No.|102|
2402 +|PLC station No.|2|
2403 +
2404 +**Address List**
2405 +
2406 +(% class="table-bordered" %)
2407 +|**Type**|**Device register**|**HMI register**|**Format**|**Range**|**Note**
2408 +|(% rowspan="4" %)Bit|I|I|M d.o|(((
2409 +d:0~-~-9999
2410 +
2411 +o:0-7
2412 +)))|
2413 +|Q|Q|Q d.o|(((
2414 +d:0~-~-9999
2415 +
2416 +o:0-7
2417 +)))|
2418 +|M|M|M d.o|(((
2419 +d:0~-~-9999
2420 +
2421 +o:0-7
2422 +)))|
2423 +|DB0.DB-DB99.DB|DBxDB|DBxDBnndddd.o|(((
2424 +nn:0-9999,
2425 +
2426 +dddd:0-9999,
2427 +
2428 +o:0-7
2429 +)))|(((
2430 +nn:DB No.
2431 +
2432 +dddd:address value
2433 +
2434 +o: digit address
2435 +)))
2436 +|(% rowspan="8" %)Word|M|MB|MB d|d:0-99999|
2437 +|M|MW|MW d|d:0-99999|(((
2438 +MW0=MB(0~~1)
2439 +
2440 +MW2=MB(2~~3)
2441 +
2442 +Address value is a multiple of 2
2443 +)))
2444 +|M|MD|MD d|d:0-99999|(((
2445 +MD0=MB(0~~3)
2446 +
2447 +MD4=MB(4~~7)
2448 +
2449 +Address value is a multiple of 4
2450 +)))
2451 +|I|IW|IW d|d:0-99999|
2452 +|Q|QW|QW d|d:0-99999|
2453 +|DB0.DB-DB99.DB|DBxDBB|DBxDBBnndddd|(((
2454 +nn:0-9999
2455 +
2456 +dddd:0-9999
2457 +)))|(((
2458 +nn:DB No.
2459 +
2460 +dddd:address value
2461 +)))
2462 +|DB0.DB-DB99.DB|DBxDBW|DBxDBWnndddd|(((
2463 +nn:0-9999
2464 +
2465 +dddd:0-9999
2466 +)))|(((
2467 +nn:DB No.
2468 +
2469 +dddd:address value
2470 +
2471 +Address value is a multiple of 2
2472 +)))
2473 +|DB0.DB-DB99.DB|DBxDBD|DBxDBDnndddd|(((
2474 +nn:0-9999
2475 +
2476 +dddd:0-9999
2477 +)))|(((
2478 +nn:DB No.
2479 +
2480 +dddd:address value
2481 +
2482 +Address value is a multiple of 4
2483 +)))
2484 +
2485 +**Communication Settings**
2486 +
2487 +Enable HMI Ethernet in [Project Settings];
2488 +
2489 +(% style="text-align:center" %)
2490 +[[image:12.PLC Protocol_html_43b671f18153910d.png||data-xwiki-image-style-alignment="center" height="107" width="405" class="img-thumbnail"]]
2491 +
2492 +Set PLC IP in [Device IP] settings;
2493 +
2494 +(% style="text-align:center" %)
2495 +[[image:12.PLC Protocol_html_f7b3eb9abda33833.png||data-xwiki-image-style-alignment="center" height="190" width="554" class="img-thumbnail"]]
2496 +
2497 +**✎Note:**
2498 +
2499 +* The S7-1200 supports simultaneous connection of three devices, so the driver supports simultaneous access to PLC by three touch screens.
2500 +* 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.
2501 +
2502 +**PLC Settings**
2503 +
2504 +Add BD
2505 +
2506 +* Please uncheck [Symbolic access only] option;
2507 +
2508 +(% style="text-align:center" %)
2509 +[[image:12.PLC Protocol_html_643144c591994418.png||data-xwiki-image-style-alignment="center" height="546" width="550" class="img-thumbnail"]]
2510 +
2511 +Address settings, using BD2 as example.
2512 +
2513 +* DB×DBB2xxxx, DB×DBW2xxxx, DB×DBD2xxxx for accessing data of DB2 in B1.
2514 +* 2 represent DB block number
2515 +* xxxx represent address
2516 +
2517 +**Such as:**
2518 +
2519 +* DBxDBB20000 = DB2.DBB0
2520 +* DBxDBW20004 = DB2.DBW4
2521 +
2522 +(% style="text-align:center" %)
2523 +[[image:12.PLC Protocol_html_87ceaea84d552e62.png||data-xwiki-image-style-alignment="center" height="245" width="537" class="img-thumbnail"]]
2524 +
2525 +**How to connect with S7-1200 Firmware V4.0**
2526 +
2527 +PLC configuration
2528 +
2529 +* Double click [device configuration] in Siemens via software
2530 +* Double click [protection] to enter protection configuration screen
2531 +
2532 +(% style="text-align:center" %)
2533 +[[image:12.PLC Protocol_html_9779940d38da8e07.png||data-xwiki-image-style-alignment="center" height="426" width="341" class="img-thumbnail"]]
2534 +
2535 +* Check [Permit access with PUT / GET communication from remote partner (PLC, HMI, OPC, ...)]
2536 +
2537 +(% style="text-align:center" %)
2538 +[[image:12.PLC Protocol_html_d2c667b02f9720b1.png||data-xwiki-image-style-alignment="center" height="296" width="554" class="img-thumbnail"]]
2539 +
2540 +DB settings
2541 +
2542 +* Right click [DB], select [properties]
2543 +* Uncheck [optimized block access]
2544 +
2545 +**Cable Wiring**
2546 +
2547 +(% style="text-align:center" %)
2548 +[[image:12.PLC Protocol_html_2297240b57346b2a.png||data-xwiki-image-style-alignment="center" height="170" width="401" class="img-thumbnail"]]
2549 +
2550 +== **LOGO Ethernet** ==
2551 +
2552 +Supported Series: Siemens Logo 0BA0 series
2553 +
2554 +**HMI Settings**
2555 +
2556 +(% class="table-bordered" %)
2557 +|**Items**|**Settings**|**Note**
2558 +|Protocol|Siemens LOGO|
2559 +|Connection|Ethernet|
2560 +|Port No.|102|
2561 +|PLC station No.|2|
2562 +
2563 +**Address List**
2564 +
2565 +(% class="table-bordered" %)
2566 +|**Number**|**Address Type**|**Data Type**|**Range**|**DB Address**|**PLC Address**
2567 +|1|RTC|Word|1-7|DB1.DBX984.0|0x001ec0
2568 +|2|VB|Byte|0-1469|DB1.DBX0.0|0x000000
2569 +|3|VD|Double Word|0-1466|DB1.DBX0.0|0x000000
2570 +|4|VW|Word|0-1468|DB1.DBX0.0|0x000000
2571 +|5|NAQ|Word|1-32|DB1.DBX1406.0|0x002bf0
2572 +|6|NAI|Word|1-64|DB1.DBX1262.0|0x002770
2573 +|7|AM|Word|1-64|DB1.DBX1118.0|0x0022f0
2574 +|8|AQ|Word|1-16|DB1.DBX1072.0|0x002180
2575 +|9|AI|Word|1-16|DB1.DBX1032.0|0x002040
2576 +|10|I|Bit|1-64|DB1.DBX1024.0|0x002000
2577 +|11|Q|Bit|1-64|DB1.DBX1064.0|0x002140
2578 +|12|M|Bit|1-112|DB1.DBX1104.0|0x002280
2579 +|13|NI|Bit|1-128|DB1.DBX1246.0|0x0026f0
2580 +|14|NQ|Bit|1-128|DB1.DBX1390.0|0x002b70
2581 +|15|V|Bit|0-14697|DB1.DBX0.0|0x000000
2582 +
2583 +**PLC Settings in LOGO Software:**
2584 +
2585 +Click [Tools]~-~-[Ethernet Connections],shown as below.
2586 +
2587 +(% style="text-align:center" %)
2588 +[[image:12.PLC Protocol_html_8b9d2322edf89519.png||data-xwiki-image-style-alignment="center" height="641" width="423" class="img-thumbnail"]]
2589 +
2590 +Set Ethernet connection parameter. IP, Subnet Mask, shown as below.
2591 +
2592 +(% style="text-align:center" %)
2593 +[[image:12.PLC Protocol_html_6c4dd041b26cd8a1.png||data-xwiki-image-style-alignment="center" height="481" width="363" class="img-thumbnail"]]
2594 +
2595 +**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.
2596 +
2597 +(% style="text-align:center" %)
2598 +[[image:12.PLC Protocol_html_7af2611d3790a77d.png||data-xwiki-image-style-alignment="center" height="359" width="426" class="img-thumbnail"]]
2599 +
2600 +**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.
2601 +
2602 +(% style="text-align:center" %)
2603 +[[image:12.PLC Protocol_html_3243e4cd600595cc.png||data-xwiki-image-style-alignment="center" height="368" width="554" class="img-thumbnail"]]
2604 +
2605 +
2606 +(% style="text-align:center" %)
2607 +[[image:12.PLC Protocol_html_cb1d92e2cc91a8db.png||data-xwiki-image-style-alignment="center" height="320" width="553" class="img-thumbnail"]]
2608 +
2609 +
2610 +**HMI Communication Settings**
2611 +
2612 +Set PLC IP in [Device IP] settings;
2613 +
2614 +(% style="text-align:center" %)
2615 +[[image:SiemensLOGODeviceIP.png]]
2616 +
2617 +Enable HMI Ethernet in [Project Settings];
2618 +
2619 +(% style="text-align:center" %)
2620 +[[image:12.PLC Protocol_html_95917a3d92068467.png||data-xwiki-image-style-alignment="center" height="311" width="553" class="img-thumbnail"]]
2621 +
2622 +TSAP setting
2623 +
2624 +* 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.
2625 +* HSW10118 = local TSAP of HMI, this is remote TSAP of PLC.
2626 +* HSW10119 = Remote TSAP of HMI, this is local TSAP of PLC.
2627 +
2628 +**✎Note:**
2629 +
2630 +* The data of TSAP is hexadecimal format. For example: the remote TSAP configured in the PLC is set to 20.00, then HSW10118 should be set to 0x2000, that is, HSW10118 = 8192.
2631 +
2632 +(% style="text-align:center" %)
2633 +[[image:12.PLC Protocol_html_5c6374b21f46e01e.png||data-xwiki-image-style-alignment="center" height="139" width="498" class="img-thumbnail"]]
2634 +
2635 +
2636 +* AI word address and Ibit address are read-only and cannot be written on HMI.
2637 +* VW address should be even number.such as VW0, VW2, VW4...
2638 +* VD address it takes two VW addresses.such as VD0,VD4,VD8...
2639 +* Written value of RTC cannot exceed 255.
2640 +
2641 +**Cable Wiring**
2642 +
2643 +(% style="text-align:center" %)
2644 +[[image:12.PLC Protocol_html_2297240b57346b2a.png||data-xwiki-image-style-alignment="center" height="170" width="401" class="img-thumbnail"]]
2645 +
2646 +== **S7-XXX Ethernet** ==
2647 +
2648 +Supported Series: Siemens S7-400, S7-1200 and S7-1500
2649 +
2650 +**HMI Setting**
2651 +
2652 +(% class="table-bordered" style="width:823px" %)
2653 +|=**Items**|=(% style="width: 437px;" %)**Settings**|=(% style="width: 201px;" %)**Note**
2654 +|Protocol|(% style="width:437px" %)Siemens S7-XXX|(% style="width:201px" %)
2655 +|Connection|(% style="width:437px" %)Ethernet|(% style="width:201px" %)
2656 +|Port No.|(% style="width:437px" %)102|(% style="width:201px" %)
2657 +|Device No.|(% style="width:437px" %)Slot (Default 1 for S7-1500/ 2 for S7-1200/ 3 for S7-400)|(% style="width:201px" %)
2658 +|HMI No.|(% style="width:437px" %)Rack (Default as 0)|(% style="width:201px" %)
2659 +
2660 +Slot from TIA Portal is equal to Device No. of PIStudio
2661 +
2662 +Rack from TIA Portal is equal to HMI No. of PIStudio
2663 +
2664 +(% style="text-align:center" %)
2665 +[[image:S7-XXXCommunication Settings.png]]
2666 +
2667 +(% style="text-align:center" %)
2668 +[[image:S7-XXXCommunication SettingsPIStudio.png||alt="S7-XXXCommunication SettingsPI.png"]]
2669 +
2670 +**Address List**
2671 +
2672 +(% class="table-bordered" %)
2673 +|**Type**|**Device register**|**HMI register**|**Format**|**Range**|**Note**
2674 +|(% rowspan="4" %)Bit|I|I|M d.o|(((
2675 +d:0~-~-9999
2676 +
2677 +o:0-7
2678 +)))|
2679 +|Q|Q|Q d.o|(((
2680 +d:0~-~-9999
2681 +
2682 +o:0-7
2683 +)))|
2684 +|M|M|M d.o|(((
2685 +d:0~-~-9999
2686 +
2687 +o:0-7
2688 +)))|
2689 +|DB0.DB-DB99.DB|DBxDB|DBxDBnndddd.o|(((
2690 +nn:0-9999,
2691 +
2692 +dddd:0-9999,
2693 +
2694 +o:0-7
2695 +)))|(((
2696 +nn:DB No.
2697 +
2698 +dddd:address value
2699 +
2700 +o: digit address
2701 +)))
2702 +|(% rowspan="8" %)Word|M|MB|MB d|d:0-99999|
2703 +|M|MW|MW d|d:0-99999|(((
2704 +MW0=MB(0~~1)
2705 +
2706 +MW2=MB(2~~3)
2707 +
2708 +Address value is a multiple of 2
2709 +)))
2710 +|M|MD|MD d|d:0-99999|(((
2711 +MD0=MB(0~~3)
2712 +
2713 +MD4=MB(4~~7)
2714 +
2715 +Address value is a multiple of 4
2716 +)))
2717 +|I|IW|IW d|d:0-99999|
2718 +|Q|QW|QW d|d:0-99999|
2719 +|DB0.DB-DB99.DB|DBxDBB|DBxDBBnndddd|(((
2720 +nn:0-9999
2721 +
2722 +dddd:0-9999
2723 +)))|(((
2724 +nn:DB No.
2725 +
2726 +dddd:address value
2727 +)))
2728 +|DB0.DB-DB99.DB|DBxDBW|DBxDBWnndddd|(((
2729 +nn:0-9999
2730 +
2731 +dddd:0-9999
2732 +)))|(((
2733 +nn:DB No.
2734 +
2735 +dddd:address value
2736 +
2737 +Address value is a multiple of 2
2738 +)))
2739 +|DB0.DB-DB99.DB|DBxDBD|DBxDBDnndddd|(((
2740 +nn:0-9999
2741 +
2742 +dddd:0-9999
2743 +)))|(((
2744 +nn:DB No.
2745 +
2746 +dddd:address value
2747 +
2748 +Address value is a multiple of 4
2749 +)))
2750 +
2751 +**Communication Settings**
2752 +
2753 +Enable HMI Ethernet in [Project Settings];
2754 +
2755 +(% style="text-align:center" %)
2756 +[[image:12.PLC Protocol_html_43b671f18153910d.png||data-xwiki-image-style-alignment="center" height="107" width="405" class="img-rounded img-thumbnail"]]
2757 +
2758 +Set PLC IP in [Device IP] settings;
2759 +
2760 +(% style="text-align:center" %)
2761 +[[image:12.PLC Protocol_html_f7b3eb9abda33833.png||data-xwiki-image-style-alignment="center" height="190" width="554" class="img-thumbnail"]]
2762 +
2763 +**✎Note:**
2764 +
2765 +* The S7-1200 supports simultaneous connection of three devices, so the driver supports simultaneous access to PLC by three touch screens.
2766 +* 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.
2767 +
2768 +**Cable Wiring**
2769 +
2770 +{{id name="OLE_LINK8"/}}
2771 +
2772 +(% style="text-align:center" %)
2773 +[[image:12.PLC Protocol_html_2297240b57346b2a.png||data-xwiki-image-style-alignment="center" height="170" width="401" class="img-thumbnail"]]
2774 +
2371 2371  = **User Defined Protocol** =
2372 2372  
2373 2373  If the device does not support MODBUS standard, and the protocol is not list in PIStudio, then user can define the protocol by following instruction to realize simply communication functions like sending and receiving commands.
... ... @@ -2993,168 +2993,3 @@
2993 2993  **Cable Wiring**
2994 2994  
2995 2995  [[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"]]
2996 -
2997 -
2998 -= ** OpenCAN** =
2999 -
3000 -OpenCan is based on CAN2.0 standard; OpenCAN protocols that could be configured autonomously to accept and send frames.
3001 -
3002 -This protocol is only available in PI8000 series HMI.
3003 -
3004 -**HMI Settings**
3005 -
3006 -|**Items**|**Settings**|**Note**
3007 -|Protocol|OPENCAN|
3008 -|Connection|CAN port|
3009 -|Baud rate|250000|
3010 -
3011 -**CAN frame setting in HMI**
3012 -
3013 -Click [OpenCAN setting] button in communication setting window;
3014 -
3015 -(% style="text-align:center" %)
3016 -[[image:12.PLC Protocol_html_e866b9e56e19785d.png||data-xwiki-image-style-alignment="center" height="503" width="600" class="img-thumbnail"]]
3017 -
3018 -Click [Add] to create a new frame;
3019 -
3020 -(% style="text-align:center" %)
3021 -[[image:12.PLC Protocol_html_3a6f4e2141763c8f.png||data-xwiki-image-style-alignment="center" height="315" width="600" class="img-thumbnail"]]
3022 -
3023 -|**No**|**Items**|**Description**
3024 -|1|Add|add a frame related to register address
3025 -|2|Insert|Select the position where you want to insert a frame, and click [Insert frame] to add a new frame in front of the current frame position
3026 -|3|Frame manager|This list shows some of the main parameters for each frame that the user adds
3027 -|4|Modify|Modify the frames in frame management
3028 -|5|Copy|Copy one frame to another
3029 -|6|Delete|Remove the selected frames from the list by modifying the frames in frame management. If no frames are selected in the list, the first frame is deleted.
3030 -|7|Empty|All frames in the list are cleared
3031 -|8|Browse|Displays configuration files in XML format in IE
3032 -|9|OK|Complete the configuration of the frame and exit
3033 -
3034 -Set CANBUS frame in setting windows
3035 -
3036 -(% style="text-align:center" %)
3037 -[[image:12.PLC Protocol_html_7c83130820321ef.png||data-xwiki-image-style-alignment="center" height="507" width="600" class="img-thumbnail"]]
3038 -
3039 -|**No**|**Items**|**Description**
3040 -|1|ID|Set the ID of a can frame in hexadecimal format;
3041 -|2|ID assign|split the ID by PF, PS, and SA;
3042 -|3|Frame type|Select Standard frame or Extended Frame;
3043 -|4|Frame format|Select between data frame and remote Frame;
3044 -|5|Data|Set the data part of CAN frame, with two Numbers representing a hexadecimal number and Spaces spaced; Maximum support of 8 bytes is defined according to CAN message;
3045 -|6|Use address|(((
3046 -Set the register address related to the CAN frame, which corresponds to the register address set on the main state one by one. The data obtained from the address is assigned continuously;
3047 -
3048 -**Edit:** Set a bit or word address by its format;
3049 -
3050 -**Option: **Set address options related to frame, enter “register address option” interface, specifically browse the following “register address option” interface;
3051 -)))
3052 -|(% rowspan="8" %)7|(% rowspan="8" %)Data interactive configuration|There are two interactive modes of the touch screen. One is that the touch screen actively sends frames, and the device receives and processes and feeds back. The other, on the contrary, passively receives frames from the device for processing and feedback;
3053 -|Send after receiving: if this item is selected, the interaction of the touch screen will act as a passive party, and the touch screen will receive the CAN frame first and send feedback. Unchecked items interact in the opposite way;
3054 -|Feedback mode: feedback mode includes no response, confirm response and data response;
3055 -|No response: the device or touch screen will not receive feedback;
3056 -|Confirm response: the device or the touch screen will receive feedback with confirmation, which could be used to compare the data parts. If this function is used, the 20 addresses before and after this address should not be used. All addresses of cata10-cata30 could not be used with the reply confirmation function of cata20;
3057 -|Data response: the device or touch screen will receive feedback with data, and the data to be separated from the feedback frame should be set to store in the register address;
3058 -|response ID: if the address wants to receive data on a frame with a different ID, set this, check "different from sender", and enter a different ID in the following input box. Without this setting, the screen will receive and process a frame with the same ID as the sender;
3059 -|Response timeout: sets whether the response frame timeout;
3060 -|(% rowspan="3" %)8|(% rowspan="3" %)Control address|If ticked, enable sending when the value of the corresponding control bit number (address) is non-0.
3061 -|Control bit: CtrlBit register range 0~~255, if the control bit is ON, can instruction will run normally. Otherwise, it doesn't run;
3062 -|Manually send: a manually send tick indicates only one send;
3063 -|9|Flag configuration|Communication control for each frame. Display OFF when communication is normal, and ON when communication is abnormal;
3064 -|10|Note|Fill the text to explain the meaning of the frame;
3065 -|11|Data assign|Preview the display in this table based on the address and the corresponding number of digits;
3066 -|12|Current operation display|Display the description of current operation;
3067 -|13|Add|Add a new frame;
3068 -|14|Save frame|Save the configured frame format;
3069 -|15|Cancel|Cancel the frame configuration;
3070 -
3071 -Set CAN address (Read or write operation);
3072 -
3073 -(% style="text-align:center" %)
3074 -[[image:12.PLC Protocol_html_7e9f9b25eb6ae8ce.png||data-xwiki-image-style-alignment="center" height="446" width="600" class="img-thumbnail"]]
3075 -
3076 -|**No.**|**Item**|**Description**
3077 -|1|Current address|Displays the register type and register address set by the user in the data access interface
3078 -|(% rowspan="3" %)2|(% rowspan="3" %)Trigger|Two operations, "read" and "write," are based on on-screen registers
3079 -|If "read" is selected, the register address is reading device data in a manner of sending frames set by the user in a loop.
3080 -|If "write" is selected, the screen data of the register address will be written into the device. The writing mode is that the user makes a write operation on the screen, which will trigger the sending of a frame set by the user.
3081 -|(% rowspan="5" %)3|(% rowspan="3" %)Data operation|The read and write operations in the trigger conditions are set accordingly.
3082 -|If the trigger condition is a read operation, this section needs to set the position and length of the data to be obtained at the current address in the frame.
3083 -|If the trigger condition is a writing operation, there are two situations:(((
3084 -* If the "add writing data to the frame" option is not selected, the frame set by the user will be sent directly when the user writes on the screen.
3085 -* Select the "add the written data to the frame" option, and when the user writes on the screen, the program will insert the data in the frame set by the user and send the written data to the frame set by the user according to the data insertion position and length set by the user.
3086 -)))
3087 -|(% rowspan="2" %)Position and length input format|If the register type is a bit address, the decimal point is required to represent the bits in the byte. For example, 1.1 represents the first bit of the first byte of 8 bytes in the data frame, and the length is in bits, and so on.
3088 -|If the register type is word address, the integer only needs to represent the byte, such as 1, which represents the first byte of 8-byte data in the data frame, and the unit of length is byte, and so on.
3089 -|4|Add|Add current configuration
3090 -|5|Close|Close the configuration window to exit
3091 -
3092 -**Multiple Packages Settings**
3093 -
3094 -(% style="text-align:center" %)
3095 -[[image:12.PLC Protocol_html_107e0f6b1a90afff.png||data-xwiki-image-style-alignment="center" height="341" width="600" class="img-thumbnail"]]
3096 -
3097 -Check [Multiple packages supported] to open [Multiple package data] window, as below show.
3098 -
3099 -Select Multiple package type
3100 -
3101 -* Not Multiple packages
3102 -* J1939 Multiple packages
3103 -* Customized Multiple packages
3104 -
3105 -Click [Edit Receive data] for [Receive] settings
3106 -
3107 -* Start code+ Total length (J1939)
3108 -
3109 -(% style="text-align:center" %)
3110 -[[image:12.PLC Protocol_html_3c360c6b5aca51bf.png||data-xwiki-image-style-alignment="center" height="340" width="426" class="img-thumbnail"]]
3111 -
3112 -As set above set, J1939 command is received by the HMI, only when its length is 25 bytes, and the start code is 0x57, 0x1B;
3113 -
3114 -* Start code + Data max length (J1939)
3115 -
3116 -(% style="text-align:center" %)
3117 -[[image:12.PLC Protocol_html_74496b2a68cfcdde.png||data-xwiki-image-style-alignment="center" height="340" width="426" class="img-thumbnail"]]
3118 -
3119 -As set above set, J1939 command is received by the HMI, only when its length less than 50 bytes, and the start code is 0x57, 0x1B;
3120 -
3121 -* Data max length (J1939)
3122 -
3123 -(% style="text-align:center" %)
3124 -[[image:12.PLC Protocol_html_98cea3e7cbd8f05d.png||data-xwiki-image-style-alignment="center" height="340" width="426" class="img-thumbnail"]]
3125 -
3126 -As set above set, J1939 command is received by the HMI, only when its length less than 50 bytes.
3127 -
3128 -* Customized multiple package
3129 -
3130 -(% style="text-align:center" %)
3131 -[[image:12.PLC Protocol_html_4635bbe4d7999db0.png||data-xwiki-image-style-alignment="center" height="395" width="367" class="img-thumbnail"]]
3132 -
3133 -As set above, It is received by the HMI, when the first frame starts with 0X57 0X1B, and the sum of the data lengths of multiple frames is equal to 79 bytes.
3134 -
3135 -Click [Edit Send data] for [Send] setting
3136 -
3137 -* J1939
3138 -
3139 -(% style="text-align:center" %)
3140 -[[image:12.PLC Protocol_html_a4769e44331ca732.png||data-xwiki-image-style-alignment="center" height="280" width="463" class="img-thumbnail"]]
3141 -
3142 -[Data] is all data to be sent.
3143 -
3144 -Since the frame of the J1939 frame contains the number of the data packet, so the data sent is: the first byte (number) + 7 bytes of data. If it is less than 7 bytes, it is sent in the actual number of bytes.
3145 -
3146 -* Customized multiple package
3147 -
3148 -(% style="text-align:center" %)
3149 -[[image:12.PLC Protocol_html_78546f765d6f3deb.png||data-xwiki-image-style-alignment="center" height="280" width="463"]]
3150 -
3151 -[Data] is all data to be sent.
3152 -
3153 -As set above, fist frame length is 2 bytes, and others are sent with 6 bytes for every frame, if the last frame is less than 6 bytes, send according to the actual length.
3154 -
3155 -**Cable Wiring**
3156 -
3157 -(% style="text-align:center" %)
3158 -[[image:12.PLC Protocol_html_fccede84efcbdc22.png||data-xwiki-image-style-alignment="center" height="111" width="391" class="img-thumbnail"]]
3159 -
3160 -**✎Note:** The address interval between each frame need to be more than a word address;
image-20220829151746-1.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Ben
Size
... ... @@ -1,1 +1,0 @@
1 -53.1 KB
Content
image-20220829151848-2.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Ben
Size
... ... @@ -1,1 +1,0 @@
1 -15.0 KB
Content
image-20220829152016-3.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Ben
Size
... ... @@ -1,1 +1,0 @@
1 -51.2 KB
Content
image-20220829152042-4.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Ben
Size
... ... @@ -1,1 +1,0 @@
1 -17.0 KB
Content
image-20220829152102-5.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Ben
Size
... ... @@ -1,1 +1,0 @@
1 -16.3 KB
Content
image-20220829152327-6.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Ben
Size
... ... @@ -1,1 +1,0 @@
1 -42.5 KB
Content
image-20220829152610-7.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Ben
Size
... ... @@ -1,1 +1,0 @@
1 -55.5 KB
Content
image-20220829155452-1.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Ben
Size
... ... @@ -1,1 +1,0 @@
1 -38.1 KB
Content
image-20220829162116-2.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Ben
Size
... ... @@ -1,1 +1,0 @@
1 -50.4 KB
Content
image-20220830094600-1.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Ben
Size
... ... @@ -1,1 +1,0 @@
1 -40.4 KB
Content
image-20220830094657-2.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Ben
Size
... ... @@ -1,1 +1,0 @@
1 -53.4 KB
Content
image-20220830094929-1.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Ben
Size
... ... @@ -1,1 +1,0 @@
1 -90.4 KB
Content
image-20220830095131-1.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Ben
Size
... ... @@ -1,1 +1,0 @@
1 -25.7 KB
Content