10/29/2018 2:34 PM | |
Joined: 9/23/2005 Last visit: 11/1/2024 Posts: 4351 Rating: (1451)
|
Hi, As from TIA V15.1 / CPU FW 2.6 it is possible to use a S7-1500 controller as OPC UA Client. The TIA help systems gives the explanations about the instructions and provide program examples (path is Information System – Programming a PLC – Instructions (S7-1200, S7-1500) – Communication (S7-1200, S7-1500), OPC UA (S7-1500)) The sample project is SCL. Attached I place an example in LAD. Main Steps: On server side: CPU Properties:
PLC Tags / Program blocks:
CPU Properties:
On Client side: OPC UA communication / Client interfaces:
There: on left side:
On Read list properties:
on right side:
Program blocks:
Operation:
See the data on Cliente interface x data DB Notes: You could use OPC UA ConnectionGetStatus to check the connection Status, and blocks from Clear section lib group blocks to clear the section. AttachmentProjectOPC.zip (2581 Downloads) |
Last edited by: Denilson Pegaia at: 10/29/2018 4:31:12 PMLast edited by: Denilson Pegaia at: 05/31/2021 21:22:34Denilson Pegaia |
|
This contribution was helpful to11 thankful Users |
11/14/2018 11:09 AM | |
Joined: 9/23/2005 Last visit: 11/1/2024 Posts: 4351 Rating: (1451)
|
Hi, here there is an program example that manages the communication blocks to a continuous reading (rebuild new connection after a communication break down ). AttachmentProjectOPC1.0.3.zap15_1.zip (2114 Downloads) |
Last edited by: Denilson Pegaia at: 11/14/2018 12:00:22 PMDenilson Pegaia |
|
This contribution was helpful to4 thankful Users |
11/30/2018 2:06 PM | |
Joined: 9/19/2016 Last visit: 10/24/2024 Posts: 66 Rating: (6) |
TIA V15 and V15.1 have separate executable. Be sure you launch 15.1 |
Why does it is so hard to make it simple ? |
|
4/12/2019 4:24 AM | |
Joined: 11/12/2018 Last visit: 11/1/2024 Posts: 3 Rating: (0) |
Dear expert, The code works fine for me. I'm trying to add in the extra coding of WriteLists (writing into the OPC server tags) but not working. Will you be able to give some advice on the Writelist coding? Attached is my TIA portal project. PLC_1 is my OPC client. I'm writing the extra codes in Network 7&8 of OB1 and already done the necessary action in the Client interface configuration. Thanks and have a great day!
AttachmentCPU1512SP_v4 (UA read write).zip (1132 Downloads) |
5/13/2019 1:18 PM | |
Joined: 1/4/2019 Last visit: 1/12/2024 Posts: 1 Rating: (0) |
hot to connect PC based OPC Server (not siemens make server) |
8/15/2019 8:32 PM | |
Joined: 9/23/2005 Last visit: 11/1/2024 Posts: 4351 Rating: (1451)
|
Hi, Here there is an exemple reading and writing data. I interconnected done's and req's IO so that it now just a question to set "connect" to true to start the communication. Thanks to Markus Schulz and Jose Manuel Jimenez Curado for the help AttachmentProjectOPC_read_write_20190815_1524.zip (1807 Downloads) |
Denilson Pegaia |
|
This contribution was helpful to3 thankful Users |
Follow us on