1/27/2006 2:44 PM | |
Joined: 9/27/2005 Last visit: 11/27/2007 Posts: 1398 Rating: (151)
|
Hello You have two ways of exchanging information between ERP/external databases and WinCC. One is to use the User Archives (UA)and the other way is to program it yourself. UA are fantastic if you have not done any database programming in the past. For the User Archive option, you can easily import / export data to and from the UA tables using the supplied C-scripts. For your example you would export the data from your ERP system to a CSV file and then import it into your UA table. See http://support.automation.siemens.com/WW/view/en/11925601for one example (there are others on this site too). Another method would be to write to the table directly using SQL commands. However I would recommend that if youwant to go this route that you do away with UA altogether and program your own interface and use an SQL Server database in the WinCC MS SQL Server. I hope this helps. Regards, Salma |
2/1/2006 5:19 PM | |
Posts: 3149 Rating: (171)
|
Hi Engelbert, in the WinCC Basic documentation, I´ve found this: http://support.automation.siemens.com/WW/view/en/15342782/0/en "........ 9.4 Direct Access to the Archive Database Introduction Various providers provide interfaces which can be used to access data on the database. These interfaces also enable direct access to archive databases from WinCC. In direct access you can for instance read off process values which you can then process further in spreadsheet programs. Access to the archive databases using ADO/OLE DB The process values are partly stored in the archive databases in compressed form. Use the WinCC OLE DB Provider in order to access the compressed process values. In the case of data which is not compressed and data in the message archiving, the ADO/OLE DB interfaces form Microsoft can also be used, for example. You can use programming languages such as Visual Basic or Visual C++. In addition to the ADO/OLE DB interface, access to non-compressed data can also be made using the ODBC interface to access data in the archive databases. Note: When making direct access to the archive database using ADO/OLE DB or ODBC, please note that the table structure in a new WinCC version may be different. Further information on this topic is available in Internet under: • "http://www.microsoft.com/data/oledb/default.htm" and • "http://www.microsoft.com/data/odbc/default.htm". Access to the archive database using OPC OPC (OLE for Process Control) provides interface ports for communication with process automation systems. Using the OPC interface, devices and applications from various manufacturers can be connected to each other in a uniform way. WinCC can be implemented as an OPC client in order to access process data or messages on an OPC server. If WinCC is implemented as an OPC server, it can be used to manage archive data. Further information on this topic is available: • In "WinCC Information System" under "Communication" > "OPC", • In the "WinCC Information System" under "System Overview" > "Openness" • In Internet under "http://www.opcfoundation.org" ............" Good luck, nemo |
2/2/2006 8:55 PM | |
Posts: 70 Rating: (13) |
Hi Engelbert Here are some quick and dirty example mimics showing how to instantiate ADO database objects in WinCC. Using VB Script: http://www.allottware.co.za/raweb.dll/Picture?p=ActiveX&x=ADO_VB Using C Script http://www.allottware.co.za/raweb.dll/Picture?p=ActiveX&x=ActiveX_ADO Reuben |
Follow us on