9/10/2014 4:02 PM | |
Posts: 6 Rating:
|
Wat I want to do is communicate with the plc using OPC DA .NET Client with C# . Thus far I was able to (using a documented example from the siemens webiste) : - setup a network with te plc and my computer with fixed IP's (192.168.0.2 PLC and 192.168.0.1 for my pc). - can load a program into the plc with simple OB1 a DB1 that contains a boolean "MyBoolean". - can go online with TIA and even change the "MyBoolean" value in the PLC. - I configured an OPC server an was able to make it start (using the import function in the station conigurator). Here all seems ok, except next to the OPC Server in the column "Conn" a "disconnected" icon is shown. - Made as documented the example also a S7 connection. - Checked if everything seems ok in the Communications settings. - Turned of my firewall (just to be sure it was not this). But still no luck, I however can connect (using both c# and OPC scout) with the OPC com server. It seems not possible to read/write any values from/to the PLC. I get always "E_UNKNOWN_ITEM_NAME" in the OPC Scout. I check if the symbols file to be sure the "MyBoolean" is there. Like sugested into the OPC scout help I also added under "OPC.SimanticNet/S7/DB a DB1 where I would need to see the "MyBoolean", but nothing is displayed. I have no clue anymore in what could be wrong with it. I use TIA V13 (we got it and installed it just a few days ago). Can anyone help me futher with this ? The example I bassed myself on can be found here :http://support.automation.siemens.com/WW/view/en/21043779 Thanks.
|
9/10/2014 4:06 PM | |
Joined: 7/7/2010 Last visit: 8/27/2024 Posts: 15113 Rating:
|
It might be something as simple as Windows Control Panel -> Set PG/PC Interface and select theproper configuration. This may already be set correctly, but if you have not set it yet, then that may be the problem. |
science guy |
|
11/24/2014 11:32 PM | |
Posts: 20 Rating:
|
Hi Michael! I´m having the same problem as Petervc. I´m using a S7-1217C CPU and I´m following step by step the instructions given in the Siemens document "Connecting a PC Station to an S7-1200 using OPC(12/2013)" plus your above comments, in order to build my first OPC project. As Petervc explained, only one S7 connection is visible in TIA Portal v.13 while in the referred document appears twice(OPC->PLC and PLC->OPC), and the S7 connection Property "Active connection establishment" located in the submenu "Special connections properties" is greyed out. Why is that??? I´ve been checking all what I could think of but nothing seems to unlock the Special connection properties. Is it perhaps due to the v.13? or am I forgetting something in my program? I´m stuck at this point so any help is welcome. Find attached my "OPC Communication" project. Looking forward to your answers. AttachmentOPC Communication.zip (674 Downloads) |
Follow us on