摘要
基于西门子组态软件WinCC,建立与在SQL Server中自定义数据库的连接,将实时数据存放在新建的数据库中。通过编写VB脚本进行相关的数据查询。借用MSFlexGrid控件,向控件写入数据组态报表画面,连接Excel模板,把数据导入模板生成Excel报表。该方法在实际工程中得到了很好的应用,可以灵活方便地处理WinCC中数据查询和报表生成的问题。
Based on Siemens WinCC configuration software,connect it with a new database that build in SQL Server,save timely data in the new database.The VBS script to query data,MSFlexGrid control and write data to it,then produce report screen.and connect to the Excel templates,then input the data and create Excel report.This way is good applied topractical engineering,it can flexibly and easily handle the wincc data query and report generation problem.
出处
《工业控制计算机》
2013年第4期22-23,共2页
Industrial Control Computer