《電子技術(shù)應(yīng)用》
您所在的位置:首頁 > 可編程邏輯 > 設(shè)計應(yīng)用 > 一種用于可編程序控制器的自動化測試方法及實現(xiàn)
一種用于可編程序控制器的自動化測試方法及實現(xiàn)
2020年電子技術(shù)應(yīng)用第9期
劉 紅,劉 金,原惠峰,劉雪飛
中國電子信息產(chǎn)業(yè)集團有限公司第六研究所,北京102209
摘要: 針對可編程序控制器測試過程中重復(fù)操作量大、人工手動測試易引入誤操作等問題,設(shè)計實現(xiàn)了一種自動化測試方法。該方法包括測試用例的批量自動編譯、自動執(zhí)行、自動顯示和存儲測試結(jié)果以及自動生成測試報表的過程,涵蓋基本功能測試以及壓力測試兩方面。經(jīng)實際驗證,使用基于該方法實現(xiàn)的軟件進(jìn)行測試,提高了測試的準(zhǔn)確性及其效率。
中圖分類號: TN06;TP319
文獻(xiàn)標(biāo)識碼: A
DOI:10.16157/j.issn.0258-7998.191313
中文引用格式: 劉紅,劉金,原惠峰,等. 一種用于可編程序控制器的自動化測試方法及實現(xiàn)[J].電子技術(shù)應(yīng)用,2020,46(9):94-97.
英文引用格式: Liu Hong,Liu Jin,Yuan Huifeng,et al. An automatic test method for programmable logic controller and its implementation[J]. Application of Electronic Technique,2020,46(9):94-97.
An automatic test method for programmable logic controller and its implementation
Liu Hong,Liu Jin,Yuan Huifeng,Liu Xuefei
The 6th Research Institute of China Electronics Corporation,Beijing 102209,China
Abstract: Aiming at the problems of large repetitive operation and easy incorrect operation in manual test of programmable logic controller, an automatic test method is designed and implemeted. This method includes batch automatic compilation of test cases, automatic execution, automatic display and storage of test results and automatic generation of test reports, covering basic functional testing and stress testing. Experiments show that the software based on this method can improve the accuracy and efficiency of the test.
Key words : automatic test;programmable logic controller(PLC);stress testing

0 引言

    目前可編程序邏輯控制器(Programmable Logic Controller,PLC)控制系統(tǒng)在我國已經(jīng)得到了廣泛的應(yīng)用并且發(fā)揮著重要作用[1]。其廣泛應(yīng)用于石油、化工、高鐵、電力等各行各業(yè)的自動化控制系統(tǒng)中。其中,PLC是整個控制系統(tǒng)的核心,其計算結(jié)果的正確性直接關(guān)乎該可編程序控制系統(tǒng)的運行狀態(tài),因此任何由于對PLC測試不充分、不全面所引發(fā)的問題,都有可能導(dǎo)致對現(xiàn)場設(shè)備的損害,甚至對人身安全的威脅,給國家和人民造成不可估量的損失。

    統(tǒng)計表明,在一些典型的軟件開發(fā)項目中,軟件測試的工作量往往占軟件開發(fā)工作總量的40%以上,并因此而占有30%~50%的開發(fā)總成本,其重要性不言而喻[2]。自動化軟件測試從某種程度上可以減少測試的開銷,同時在有限時間內(nèi)增加測試覆蓋率[3],進(jìn)而減少了開發(fā)總成本。

    目前,對PLC指令執(zhí)行結(jié)果正確性的測試多是采用人工手動的測試方式,即通過測試人員依據(jù)自身的專業(yè)知識,手動依次完成組建測試用例、運行測試用例等測試步驟。針對以上問題,本文提出一種自動化測試方法,并對該方法進(jìn)行了設(shè)計、實現(xiàn)與驗證。





本文詳細(xì)內(nèi)容請下載:http://ihrv.cn/resource/share/2000002990




作者信息:

劉  紅,劉  金,原惠峰,劉雪飛

(中國電子信息產(chǎn)業(yè)集團有限公司第六研究所,北京102209)

此內(nèi)容為AET網(wǎng)站原創(chuàng),未經(jīng)授權(quán)禁止轉(zhuǎn)載。