EP1452969A2

Method, apparatus and program for testing control program

Abstract

An automatic code generation section (12) reads a control model, and generates and releases a control program which is written in the C language. At the generation of the control program, a correspondence information formation section (16) creates correspondence information indicative of the correspondence relationship between the control model and the control program. A simulation section (20) reads the control model and simulates its operation. A program execution section (22) reads the control program and executes it. A synchronizing section (26) makes synchronization, that is, a relational linkage, between the operation results of the simulation section (20) and the program execution section (22) based on the correspondence information.

EP1452969A2, drawing sheet 1
Sheet 1 of 8

Term

Term ended

Projected expiry passed 26 February 2024, 2.6 years ago.

  1. Priority
  2. Filed
  3. Published
  4. Projected expiry
  5. Today

31 claims: 13 independent, 18 dependent

  1. 1
    A control program testing method for testing a control program which is written in a certain programming language by use of automatic code generation means (12) which produces automatically a control program which is written in the programming language from a control model, with requisite control specifications thereof being written in a requisite control specifications writing language, the method being characterized by the steps of:producing operation results of simulation means (20) which simulates operation of the control model and operation results of program execution means (22) which executes the control program, while making a relational linkage between individual corresponding operation results;and testing presence or absence of abnormality in at least one of the control model and the control program.
  2. 6
    A control program testing method as in any of claims 2 through 5,    wherein the testing of the presence or absence of abnormality is implemented by comparing means (26) which compares successively between the operation results of the simulation means (20) and the operation results of the program execution means (22) in relational linkage.
  3. 10
    A control program testing method as in any of claims 6 through 9 further characterized by :producing, in the event of determination of the presence of abnormality by the comparing means (26), a simulation spot of the control model and the execution spot of the control program at a time point of the determination as a result of the test.
  4. 11
    A control program testing method as in any of claims 1 through 10 further characterized by :making alterable at least one of the variable value held at the suspend point among the values calculated by the simulation of the control model and the variable value held at the suspend point among the values calculated by the execution of the control program when the simulation of the control model and the execution of the control program are suspended during the test.
  5. 12
    A control program testing method as in any of claims 1 through 11 further characterized by :producing at least the operation result of the simulation means (20) which simulates the operation of the control model and the operation result of the program execution means (22) which executes the control program to display means (28) (28) to display visually.
  6. 13
    A control program testing apparatus for testing a control program which is written in a certain programming language by use of automatic code generation means (12) which produces automatically a control program which is written in the programming language from a control model, with requisite control specifications thereof being written in a requisite control specifications writing language, the apparatus being characterized by :synchronizing means (26) which produces operation results of simulation means (20) which simulates operation of the control model and operation results of program execution means (22) which executes the control program, while making a relational linkage between individual corresponding operation results;and testing means for testing presence or absence of abnormality in at least one of the control model and the control program based on output operation results.
  7. 18
    A control program testing apparatus as in any of claims 14 through 17 further characterized by :comparing means (26) which implements the testing of the presence or absence of abnormality by comparing successively between the operation results of the simulation means (20) and the operation results of the program execution means (22) in relational linkage.
  8. 22
    A control program testing apparatus as in any of claims 18 through 21 further characterized by :producing, in the event of determination of the presence of abnormality by the comparing means (26), the simulation spot of the control model and the execution spot of the control program at the time point of the determination as a result of the test.
  9. 23
    A control program testing apparatus as in any of claims 13 through 22 further characterized by :making alterable at least one of the variable value held at the suspend point among the values calculated by the simulation of the control model and the variable value held at the suspend point among the values calculated by the execution of the control program when the simulation of the control model and the execution of the control program are suspended during the test.
  10. 24
    A control program testing apparatus as in any of claims 13 through 23 further characterized by :display means (28) which is adapted to display visually at least the operation result of the simulation means (20) which simulates the operation of the control model and the operation result of the program execution means (22) which executes the control program.
  11. 25
    A control program testing program which is used for testing a control program which is written in a certain programming language by use of automatic code generation means (12) which produces automatically a control program which is written in the programming language from a control model, with requisite control specifications thereof being written in a requisite control specifications writing language, the program being characterized by :as means for execution through a computer for testing presence or absence of abnormality in at least one of the control model and the control program, means for generating, from information provided at automatic generation of the control program, correspondence information which indicates the correspondence relationship between the control model and the control program, and making a relational linkage between a suspend point of operation of simulation means (20) which simulates the control model and a suspend point of operation of program execution means (22) which executes the control program based on the correspondence information;means for instructing the simulation means (20) and the program execution means (22) to proceed to the simulation and the program execution;means for detecting a suspend of the simulation means (20) and a suspend of the program execution means (22) following the simulation and program execution;and means for comparing the simulation result of the control model and the execution result of the control program upon detecting suspends of simulation and program execution, and testing the presence or absence of abnormality based on the comparison result.
  12. 28
    A control program testing program as in any of claims 25 through 27,    wherein the correspondence information includes variable correspondence information which indicates the correspondence relationship between variable values pertaining to processing of the control model and variable values pertaining to processing of the control program, and    wherein the means for testing the presence or absence of abnormality based on the comparison result tests the presence or absence of abnormality by at least comparing the variable values calculated by the simulation of the control model and the variable values calculated by the execution of the control program based on the variable correspondence information.
  13. 29
    A control program testing program which is used for testing a control program which is written in a certain programming language by use of automatic code generation means (12) which produces automatically a control program which is written in the programming language from a control model, with requisite control specifications thereof being written in a requisite control specifications writing language, the program being characterized by :as means for execution through a computer for testing of presence or absence of abnormality in at least one of the control model and the control program, means for generating, from information provided at automatic generation of the control program, correspondence information which indicates the correspondence relationship between the control model and the control program, and making a relational linkage between the suspend point of operation of simulation means (20) which simulates the control model and the suspend point of operation of program execution means (22) which executes the control program based on the correspondence information;means for instructing the simulation means (20) and the program execution means (22) to proceed to the simulation and the program execution;means for detecting a suspend of the simulation means (20) and a suspend of the program execution means (22) following the simulation and program execution;and means for producing the simulation result of the simulation means (20) and the execution result of the program execution means (22) upon detecting suspends of simulation and program execution.