可编程逻辑控制器程序的测试方法、装置、设备及介质

By parsing the test description file of PLC functions to generate compilable program files, the problems of manually writing ladder diagram language and hardware dependence in the existing technology are solved, realizing automated PLC function testing without hardware devices.

CN115495346BActive Publication Date: 2026-07-17JIANGSU CHUANGYUAN ELECTRON CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
JIANGSU CHUANGYUAN ELECTRON CO LTD
Filing Date
2022-09-15
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

Existing PLC program testing methods require manually writing ladder diagrams, which incurs compiler conversion overhead and hardware device dependencies, and cannot simultaneously call multiple hardware devices for testing.

Method used

By obtaining the test description files of PLC functions, parsing and forming compilable program files, and using function test templates to generate test results, the dependency on compilers is reduced, and software-level testing is achieved.

Benefits of technology

It can automatically test the correctness of PLC functions without the need for hardware equipment and network communication support, reducing compilation overhead and supporting simultaneous testing of multiple PLC functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115495346B_ABST
    Figure CN115495346B_ABST
Patent Text Reader

Abstract

本申请公开了一种可编程逻辑控制器程序的测试方法、装置、设备及介质。该方法包括:获取相对至少一个待测可编程逻辑控制PLC函数预先编写的测试描述文件;按照设定解析规则解析测试描述文件,获得各待测PLC函数的待测函数信息;基于各待测函数信息结合预设的函数测试模板,形成可编译程序文件;基于对可编译程序文件进行编译及运行后的运行结果,确定各待测PLC函数的函数测试结果。通过该方法,测试人员只需要输入测试描述文本,解析测试描述文件,通过预设的函数测试模板自动生成可编译程序文件,无需额外编译器,达到减少编译开销效果;本方法运行在软件层,解决了硬件支持及其相关的网络通信问题,实现了无需硬件设备也能对PLC函数正确性进行测试。
Need to check novelty before this filing date? Find Prior Art