Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

A method and device for constructing PLC peripheral equipment equivalents based on tcl script

A technology of peripheral devices and equivalent devices, applied in the field of effectors, can solve the problems of complex test environment, poor test coverage, lack of fault injection methods, etc., to simplify the test process, facilitate fault injection, improve test coverage and test The effect of efficiency

Inactive Publication Date: 2017-12-29
BEIJING AEROSPACE AUTOMATIC CONTROL RES INST
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, since the signals and stimuli required for the test process are derived from real peripheral devices, the test environment is complicated, the test efficiency is low, the test coverage is poor, and the fault injection method is lacking.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and device for constructing PLC peripheral equipment equivalents based on tcl script
  • A method and device for constructing PLC peripheral equipment equivalents based on tcl script
  • A method and device for constructing PLC peripheral equipment equivalents based on tcl script

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be described in further detail below with reference to the accompanying drawings and preferred embodiments. However, it should be noted that many of the details listed in the specification are only for readers to have a thorough understanding of one or more aspects of the present invention, and these aspects of the present invention can be implemented even without these specific details.

[0032] In the process of testing the PLC based on the real peripheral environment, the test environment is complex, the test efficiency is low, the test coverage is poor, and the fault injection method is lacking. In order to solve the above problems, the present invention provides a method and device for constructing PLC peripheral equipment equivalents based on TCL scripts, which replaces the real peripheral environment of PLC, facilitates fault injection, simpl...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention discloses a TCL script based method and apparatus for creating a PLC peripheral device equivalent device. The method comprises the steps of: according to a test task of a to-be-tested PLC, selecting a PLC control instruction corresponding to the test task from a preset PLC test script library; creating a test case according to the PLC control instruction and a TCL built-in instruction; delivering the test case to a lower computer system; the lower computer system generating an excitation signal according to the test case, and sending the excitation signal to the to-be-tested PLC; and testing the to-be-tested PLC according to the excitation signal. A PLC control instruction extension library comprises: an initialization extension library command, a registration extension command, a write single / multi-channel digital quantity command, a read single / multi-channel digital quantity command, a sampling counter command and so on. According to the method and apparatus provided by the present invention, complexity of a real environment and cumbersome of test steps are simplified, thereby improving test efficiency; and fault injection is added so as to simulate possible abnormal situations, thereby improving test coverage and reliability.

Description

technical field [0001] The invention relates to the field of PLC (programmable logic controller) software testing, in particular to a method and a device for constructing a PLC peripheral equipment equivalent based on a TCL script. Background technique [0002] In the prior art, there is a lack of mature testing methods and testing tools for PLC testing. In the process of testing PLC based on the real peripheral environment, unit tester or system joint debugging test or system comprehensive test is often used. However, since the signals and stimuli required in the test process are all derived from real peripheral devices, the test environment is complex, the test efficiency is low, the test coverage is poor, and the fault injection method is lacking. [0003] In order to solve various problems existing in testing PLC based on the real peripheral environment, it is urgent to design a PLC peripheral equipment equivalent device, which is used to simulate the real peripheral en...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3652G06F11/3688
Inventor 王丹彭亮钱杰阳徽
Owner BEIJING AEROSPACE AUTOMATIC CONTROL RES INST
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products