Technical Forum

PC-based Automation

How to browse items in OPC server OPC.SimaticNet

Thread Starter: Mehrnoosh   Started: 9/19/2006 12:10 PM   Replies: 7

« Previous thread Next thread »
Page 1 of 1 (8 items)
  9/19/2006, 12:10 PM
Joined 10/11/2005
Last visit: 8/10/2010
Posts: 102
Rating:
Rated: Very Good [1.89 out of 5 / rated 9 time(s)]. (9) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 

Hi

I want to check what the necessary steps are, for configure a S7 program to be accesses through OPC in a user application.

I read and downloaded the entry

Individual Visualization with OPC based on Microsoft® .NET and the Programming Language C#” entry ID: 21043779

 But I had CPU 318-2, so I changed the CPU in hardware configuration and downloaded the program to the PLC. I did all steps mentioned in the manual and every thing seems to work properly ( I mean the C# program can simulate every thing). The problem is when I try to browse the OPC server via another OPC client (for example OPC scout), it doesn’t browse the symbols which has bin defined in “sti” file and in the property of  OPC S7 tab.

If I add a new Item in OPC scout I can see it in another OPC client!!! Even if I don’t save the project in OPC scout.

Please help me to figure out the problem.

I have attached a snapshot of OPC scout and property of OPC S7 tab.


Attachment: scout.JPG  (180 Downloads)

Top
  9/19/2006, 1:16 PM
Joined 4/24/2006
Last visit: 5/22/2013
Posts: 4676
Rating:
Rated: Excellent [4.12 out of 5 / rated 428 time(s)]. (428) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hello,


Have you seen the following faq:
http://support.automation.siemens.com/WW/view/en/17413251

Hope this helps

Best regards,

Wizard
Top
  9/20/2006, 10:34 AM
Joined 8/31/2005
Last visit: 6/8/2010
Posts: 216
Rating:
Rated: Outstanding [3.67 out of 5 / rated 36 time(s)]. (36) 
Users with special expertise supervising conferences
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi!

If you want to browse for variables in the OPC Scout you have to choose a different path in the OPC Navigator window of the OPC Scout.

You have to choose this path: "Connections -> \SYM: -> ..." instead of "Connections -> \S7: -> S7-Verbindung_1 -> ..."

If you have no "\SYM:" in your OPC Navigator windows, then try to reload the system data from the SIMATIC Manager to you PC station.

Greetings, Chris
Top
  9/20/2006, 4:21 PM
Joined 10/11/2005
Last visit: 8/10/2010
Posts: 102
Rating:
Rated: Very Good [1.89 out of 5 / rated 9 time(s)]. (9) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 

Dear friendsblush

Thanks a lot for your attention to this matter. With your kind help my problem has been solved. But now I have another problem.

I tried to make my own PLC program and read its data in OPC scout. I made a simple program, it has only one network in OB1 and one data block. Hard ware configuration is the same as the sample (with the change of CPU). I downloaded it to PLC and monitored and modified its data block without any problem. Then I tried to read data in OPC scout. So I wanted to import my project XDB file to “station configuration editor” but there was nothing in Xdb folder of my project and there is no NCM manager too.

I have this version of software in my computer:

S7 5.3 sp2 hp2

Simatic net  6.3 hp1

I did typical installation.

 

Top
  9/21/2006, 11:07 AM
Joined 8/31/2005
Last visit: 6/8/2010
Posts: 216
Rating:
Rated: Outstanding [3.67 out of 5 / rated 36 time(s)]. (36) 
Users with special expertise supervising conferences
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi!

If your STEP 7 (SIMATIC Manager,...) and the OPC server are on the same PC try the following:
  • Setup your Station Configuration Editor correctly (OPC Server and networking interface on the same slot as in the configuration of the SIMATIC PC station in your STEP 7 project. The station name in the Station Configuration Editor is exactly the same as the name of the SIMATIC PC station in your STEP 7 project.)
  • Switch the PG/PC interface for S7ONLINE to 'PC internal (local)'
  • Open the NetPro Editor and 'Save and Compile' everything (Be sure that there is a S7 connection between you PLC and the OPC server).
  • Select the SIMATIC PC station in the NetPro Editor and click on the download button. This will load the configuration to to Station Configuration Editor. (Any error messages? This is the same like the XDB file import to the Station Configuration Editor. Btw: After this you are able to access your PLC from STEP 7 even with the PG/PC interface set to 'PC internal (local)')
  • Download the PLC configuration data to the PLC from the NetPro Editor
Now you should be able to read data with the OPC-Scout from the PLC.

Greetings, Chris
Top
  9/23/2006, 1:56 PM
Joined 10/11/2005
Last visit: 8/10/2010
Posts: 102
Rating:
Rated: Very Good [1.89 out of 5 / rated 9 time(s)]. (9) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 

Dear Chris

Thanks a lot. Now I can browse The OPC server in OPC scout. But when I want to add items I got this error message:

The item definition does not exist in the server address space.

I have attached my symbol file.

Address of “1” is: DB1.DBX1.0

Address of “m00” is: M0.0

I have DB1 in my s7 project and it has 6 bytes.

Thanks,

Mehrnoosh


Attachment: Untitled2.zip  (82 Downloads)

Top
  9/25/2006, 9:44 AM
Joined 8/31/2005
Last visit: 6/8/2010
Posts: 216
Rating:
Rated: Outstanding [3.67 out of 5 / rated 36 time(s)]. (36) 
Users with special expertise supervising conferences
Rated: Excellent [5 out of 5 / rated 1 time(s)]. (1) 
Hi!

The best would be to rebuild your symbol file:
  1. Open the configruation of your SIMATIC PC station in the HW Config editor
  2. Open properties window of the OPC server
  3. Select the 'S7' tab
  4. Select 'None' at the 'Use Symbols' panel
  5. Save and Compile the configuration.
  6. Open the properties window of the OPC server again.
  7. Now select 'All' (or 'Configured')
  8. Save and Compile again.
  9. Download the configuration to your PC station using the NetPro Editor
Now you should be able to browse the OPC server.

Greetings, Chris
Top
Thank you for this post from:
  9/26/2006, 2:41 PM
Joined 10/11/2005
Last visit: 8/10/2010
Posts: 102
Rating:
Rated: Very Good [1.89 out of 5 / rated 9 time(s)]. (9) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
grinDear Chris
Thanks a lot, Now it works properly.I even add an othere connection ISO-on-TCP to fetch and write a large amount of data. 
Thanks again
Mehrnoosh 
Top
Page 1 of 1 (8 items)
Actions