摘 要:為了在沒有實際硬件PLC的情況下,減少調試成本及風險,實現程序調試,檢驗程序正確性,使用了STEP 7中的仿真軟件PLCSIM。并且通過在STEP 7中建立OS站,實現了西門子編程軟件STEP 7與西門子組態軟件WinCC的連接,從而可在WinCC界面中直接監控現場設備,增強可視性,縮短監控系統的開發時間。通過測試一個運行時間的簡單程序,實現了在PLCSIM中的調試和在WinCC界面中的監控,并用實際硬件進行了驗證。
關鍵詞:STEP 7; PLCSIM; WinCC; 監控系統
中圖分類號:TP273 文獻標識碼:A
文章編號:1004-373X(2010)14-0081-03
Simulation Debugging of STEP 7 and Simulation of Implementing Connection with WinCC
YU Dan, YU Jian-shun
(School of Electrical and Electronic Engineering, East China Jiaotong University, Nanchang 330013, China)
Abstract: The simulation software PLCSIM in STEP 7 is adopted to reduce debugging cost, achieve program debugging and test program correctness while there is no actual hardware. The connection of Siemens programming software STEP 7 with Siemens configuration software WinCC was achieved by creating OS stations in STEP 7. In this way, the direct monitoring of site equipments can be realized in WinCC interface, the visibility can be improved and the development time of the monitoring system can be reduced. The debugging in PLCSIM and the monitoring in WinCC interface were achieved by testing a simple program of running time. The actual hardware was validated.
Keywords: STEP 7; PLCSIM; WinCC; monitoring system
0 引 言
可編程控制器(PLC)現在的應用范圍很廣,其具有使用方便、適應性強、可靠性高和性能價格比極高等特點。PLC的強大功能是通過軟件編程來實現的,對于龐大系統,所編程序很大,為了避免程序中的一些缺陷與錯誤,程序設計好后需進行運行調試。
STEP 7是西門子SIMATIC工業軟件中的一員,它是用于對SIMATIC可編程邏輯控制器(PLC)進行組態和編程的軟件包[1]。對于沒有實際硬件的編程者來說,在STEP 7中編好程序,不能下載到PLC中,無法進行調試。對于有些控制系統,直接在實際硬件中進行程序調試會有一定風險。為了解決這些問題,一些PLC生產廠家提供了可代替PLC硬件調試的仿真軟件。西門子公司開發的仿真軟件PLCSIM能夠在線進行程序的調試,檢驗程序的正確與否,這樣可以減少硬件調試成本及危險。
同時為了增強對現場的可視性,西門子公司開發的組態軟件WinCC能監控現場。在文獻[1-4]中介紹了PLCSIM軟件的仿真運用,本文通過在STEP 7中建立一個OS站,仿真軟件PLCSIM能夠把WinCC的監控功能連接起來,在PLCSIM中變量的變化,可以在WinCC中顯示,這樣檢驗了程序的正確性和增強了可視性。……