1. Field of the Invention
This invention relates generally to a system and method for providing a formal verification of programmable logic controller (PLC) logic code and, more particularly, to a system and method for providing a formal verification of PLC logic code for a manufacturing process where the verification results are presented in a format readily understandable by control engineers who may not have formal methods background.
2. Discussion of the Related Art
PLCs are modern industrial controllers that include hardware and software customized for industrial environments, such as manufacturing plants. The software, normally referred as the PLC logic code, which controls the PLC and industrial environments, is critical for controlling the operation of the plant, where both the safety and quality are of significant concern. The PLC logic code is used to control the manufacturing process, such as the operation of various robots and the like, which need to be verified so that the process works properly for the desired specification. The verified code thus becomes more credible and dependable, and the accompanying documents can now support the safety or quality certification process much better.
It is critical to test the PLC logic code before the code is provided for production so that engineers and technicians can ensure that the process will operate adequately and efficiently as intended. One traditional technique for testing the PLC code includes testing the code through a series of operations using emulation and simulation of the plant behavior. Another technique includes testing manufacturing processes by hardware prototyping.
One known technique for simulating a manufacturing process includes emulating the process in the virtual world using algorithms on a computer system. Using such an emulated or simulated system, engineers can conduct scenario studies of system performance and behavior correctness. This practice is sometimes referred to in the art as virtual commissioning or virtual validation. Modern emulation of certain manufacturing processes, such as automobile manufacturing processes, can mimic the physical operation of the process. In one process, various devices can be switched into and out of the virtual environment so as to determine the best device for that particular operation. For example, a particular manufacturing cell may require a robot to move a part from one location in the cell to another location in the cell. Modern virtual emulation processes allow the engineer to remove one virtual robot model from the manufacturing cell and replace it with another virtual robot model to compare the process performance using both machines.
It is understood in the art that using prototype test case based methods or simulation based methods for verifying a manufacturing process typically do not allow for testing of all scenarios to check the compliance of the PLC code. At best, the test based cases are as exhaustive as the domain knowledge or experience of the person controlling the test. Because the testing is not exhaustive or complete, there is a possibility that the PLC code can be successfully passed with the limited testing scenarios, but still includes errors.
It has been proposed in the art to use mathematical models of the operation of a manufacturing process and mathematically modeling all the scenarios of the operation of the process controlled by the PLC code. In one known mathematical model verification process, a verifier tool takes the inputs with the PLC logic code and process specifications that are required for logic verification.
The results of the verification process are provided to an operator who then analyzes the results to determine whether the control logics (PLC code) needs to be changed, the specifications need to be revised or some other action needs to be taken in order to make the process error-free. However, these types of PLC logic verification processes employing mathematical models and algorithms have typically required highly skilled operators to interpret the results. The verification process may be better served by presenting the results in a format that can be easily interpreted by lower skilled workers.
In accordance with the teachings of the present invention, a system and method are disclosed for interpreting formal verification results of PLC logic code used to control a manufacturing process, or other automated process, where the interpretation process does not require highly skilled technicians having significant experience in computer and mathematical algorithms. The verification process includes mathematically modeling the PLC logic code, mathematically formulating the expected behavior of the logic code and providing a verification results summary to check the compliance of the code with respect to the specifications. The verification results summary is analyzed and categorized to determine whether violations or errors are found in the results. The results can be depicted by assertion trees if a direct assertion between the PLC logic and the specifications can be provided. Alternatively, the results can be depicted by a reduced ladder logic if a direct assertion between the PLC logic and the specifications cannot be provided and a simulation is required. Once the result interpretation is completed, an operator is guided by the framework to refine the specification to a level where the specification adequately represents the reality or expected behavior of the process and against which the PLC logic code verification can be performed or the verification results can be documented.
Additional features of the present invention will become apparent from the following description and appended claims, taken in conjunction with the accompanying drawings.
The following discussion of the embodiments of the invention directed to a system and method for providing PLC logic verification of an assembly or manufacturing process is merely exemplary in nature, and is in no way intended to limit the invention or its applications or uses. For example, the present invention has particular application for assembly and manufacturing processes for automotive applications. However, as will be appreciated by those skilled in the art, the system and method for providing PLC logic verification of the invention will have application for many other types of processes.
At box 16, the system 10 analyzes and categorizes the results summary 14 to determine if any errors or violations in the simulation have occurred. As will be appreciated by those skilled in the art, any suitable analyzing and categorizing process can be used to analyze and categorize the results in the results summary 14. Once the results have been analyzed and categorized, the system 10 determines whether there are any errors or violations at decision diamond 18. If there are no errors or violations found in the verification analysis, then the system 10 documents the interpreted results at box 20 using, for example, reduced ladder logic and assertion trees.
As will be discussed in further detail below, the results can be depicted by an assertion tree if a direct assertion between the PLC logic and the specifications can be provided. If a direct assertion cannot be provided between the PLC logic and the specifications, the system 10 performs a simulation where the results are depicted by a reduced ladder logic. As is well understood to those skilled in the art, direct assertion is a process that employs equations for each line of code in the PLC logic, where the variables for the equations in one line of code are known, which can then be used to determine the variables in a next line of code and so on. For a simulation, more than one variable in a particular line of code is unknown so that a simulation of different values for the different variable needs to be calculated to determine the likely value for the unknown variables.
If the system 10 determines that there are violations or errors in the results summary 14, the system 10 will put the results showing the errors in a format or display 22 that is easy to read and understand by an operator 24. The display 22 can provide critical variables and values at box 26 that may identify a particular location in the assembly or manufacturing process, or other identifying feature. As discussed above, if a direct assertion can be provided between the PLC logic and the specifications, then the errors can be displayed by a direct assertion tree 28. If a direct assertion is not possible, the reduced PLC logic needs to be simulated for all of the possible scenarios for the given specifications. The errors, if found, can be understood with the help of a reduced ladder logic 30.
The operator 24 can readily see and understand the errors in the display 22, and will select one of three options for further processing based on the results At block 32, the operator 24 identifies the errors and immediately knows the location of the problem. The operator 24 can then document the errors at the box 20 reduced ladder logic or the assertion tree so that the PLC logic code. Alternatively, the operator 24 may see that the specifications seem to be invalid and/or incomplete at box 34 based on the errors shown in display 22, and may recommend that the specifications be refined at box 36. Also, the operator 24 may notice that the PLC logic seems to have errors, but is not sure what to do and may ask for further help to identify the root cause of the errors at box 38. The system 10 then will determine if specification refinement is possible at decision diamond 40, and if so, the specifications will be refined at the box 36. Otherwise, the errors will merely be documented at the box 20 for future analysis. For example, the number of errors or the size of the errors in the display 22 may be so large that the operator 24 is not able to fully understand their extent.
The illustration 100 can be used to illustrate simulations where direct assertions are not possible at the box 66. Thus, if the ladder structure 102 and the specification 104 do not allow for direct assertion, and require a simulation, then the simulation cannot generate the assertion tree 106, but will conduct simulation based on a reduced ladder logic to test all the possible scenarios. This is shown by the illustration 100 in
The foregoing discussion discloses and describes merely exemplary embodiments of the present invention. One skilled in the art will readily recognize from such discussion and from the accompanying drawings and claims that various changes, modifications and variations can be made therein without departing from the spirit and scope of the invention as defined in the following claims.
This application claims the benefit of the filing date of U.S. Provisional Application Ser. No. 61/020,865 filed Jan. 14, 2008.
Number | Date | Country | |
---|---|---|---|
61020865 | Jan 2008 | US |