The present invention relates to redundant PLC systems and, more particularly, to a verification and validation process and system for providing objective assessment of the complete lifecycle of the redundancy software associated with these systems.
Programmable logic controllers (PLCs) are considered as a special type of computer used in automation systems. Generally speaking, PLCs are based on sensors and actuators, which have the ability to control, monitor and interact with a particular process or collection of processes. PLCs are highly configurable and thus can be applied to various industrial sectors such as, for example, automotive, chemical, energy, transportation and the like.
In some situations, a redundant PLC architecture is utilized, as shown in
As also shown in
A problem with this arrangement, however, is that in most practical utilizations, the total state space of an FSM (such as FSM 16) is too big for exhaustive testing (the “state space” being the combination of all possible states). In some cases, test scripts are employed that probe a subset of the state space, the various test scenarios chosen to satisfy various requirements. U.S. Pat. No. 7,024,589 entitled “Reducing the Complexity of Finite State Machine Test Generation Using Combinatorial Designs” and issued to A. Hartman et al. on Apr. 4, 2006 discloses this type of testing arrangement, albeit for a system other than redundancy software. While plausible to provide a certain degree of assurance, without an exhaustive test of every possible state, the system cannot be completely verified. Redundancy manager 14 utilizes an extremely complicated FSM 16 and exhaustive testing of FSM 16 is considered to be impractical, if not impossible.
Indeed for complicated FSM configurations, exhaustive testing (either manual or automatic) is not an option. Even if a sophisticated testing system were to be available, it remains prohibitive to exhaustively test all possible conditions. As a result of the large state space (that is, all possible combinations of different states), exhaustive texting on a complex FSM may require, in theory, thousands of years. Formal verification tools, such as a model checker, are currently used to intelligently select a small set of representative states for testing, but have not been fully utilized in arrangements such as the redundancy software of a PLC system.
Thus, a need remains for an automated system for verifying and validating, prior to implementation, the redundancy software requirement of a PLC system.
The needs remaining in the prior art are addressed by the present invention, which relates to redundant PLC systems and, more particularly, to a verification and validation process and system for providing objective assessment of the complete lifecycle of the redundancy software associated with these systems.
In accordance with the present invention, formal methods are instituted to verify and validate the finite state machine (FSM) of the PLC redundancy software. The method and system is implemented through each phase in the lifecycle of the redundancy software; that is, the requirement phase, design phase, implementation phase and, finally, integration phase (including system integration). At each step along the way, the verification and validation process uses tools such as a checklist-based review and inspection, a requirement traceability analysis, formal verification (model checking) and the like to ensure that the created redundancy software is error-free and will perform as intended when implemented in the redundant PLC system.
In one embodiment, the present invention relates to a computer readable medium including programming instructions for performing verification and validation of redundancy software for a programmable logic control (PLC) system, including programming instructions for: (1) processing PLC redundancy requirements to create a feature specification, including a comparison of the PLC redundancy requirements and the created feature specification to verify and validate that all redundancy requirements are properly represented in the feature specification; (2) processing the feature specification to generate a related architecture specification of software components capable of performing the defined features and a detailed design document of each software component, including a comparison of the feature specification and the architecture specification and detailed design documents to verify and validate that all features are properly represented in the architecture specification and associated detailed design documents; (3) capturing a finite state machine design from the detailed design documents and verifying the finite state machine design; (4) creating source code modules from the detailed design documents, wherein each source code module is tested to perform verification and validation; and (5) integrating the verified and validated source code modules with the redundancy component of the PLC system, including performing verification and validation of the operation of the source code modules in the PLC system.
In another embodiment, the present invention defines a method, implemented in a computer, for validating and verifying a redundancy software development for a programmable logic control (PLC) system, and including the steps of: (1) processing PLC redundancy requirements to create a feature specification, including a comparison of the PLC redundancy requirements and the created feature specification to verify and validate that all redundancy requirements are properly represented in the feature specification; (2) processing the feature specification to generate a related architecture specification of software components capable of performing the defined features and a detailed design document of each software component, including a comparison of the feature specification and the architecture specification and detailed design documents to verify and validate that all features are properly represented in the architecture specification and associated detailed design documents; (3) capturing a finite state machine design from the detailed design documents and verifying the finite state machine design; (4) creating source code modules from the detailed design documents, wherein each source code module is tested to perform verification and validation; and (5) integrating the verified and validated source code modules with the redundancy component of the PLC system, including performing verification and validation of the operation of the source code modules in the PLC system.
Other and further aspects and features of the present invention will become apparent during the course of the following discussion and by reference to the accompanying drawings.
Referring now to the drawings,
The redundancy management software of a Programmable Logic Controller (PLC) utilizes a finite state machine (FSM) to monitor and manage the system redundancy functionality. Previously, test and simulation approaches have been used evaluate the redundancy software. However, as noted above, these approaches yield incomplete results and do not probe into every possible combination of states in the complete state space of the finite state machine (FSM). The focus of this work is on formal verification and validation of the complete state space of the FSM.
Indeed, the present invention provides a verification and validation process (and associated software-based tools) to provide objective assessment of the redundant PLC system throughout the entire lifecycle of the redundancy software (requirements, design, implementation and integration). As described in detail below, formal methods (including, for example, model checking, traceability and the like) are used to verify the FSM of the PLC redundancy software.
As discussed above, the redundancy management software of a PLC utilizes a FSM to monitor and manage the system redundancy functionality. PLC redundancy-related software faults need to be identified at the time of software compilation, and the redundancy features need to be verified and validated to meet the safety requirements associated with the redundancy—an especially important aspect for PLCs involved in safety-critical applications such as railway train control, energy system control, and the like.
An implementation phase 56 is associated with generating the specific source code for the detailed design created in the previous phase, with the verification and validation used to perform testing of each software module (see
Referring now to
Referring to the details of
As shown, an exemplary set of functional characteristics 64 to be verified by tool 50 include the timing, accuracy, safety and functionality of the set of initial requirements as embodied in requirements listing 62. A set of process characteristics 66 to be validated is seen to include consistency, traceability, unambiguity and correctness. In accordance with the present invention, verification and validation tool 50 is used to perform a traceability analysis between requirements listing 62 and feature specification 60, as well as a checklist-based review and inspection to validate the processes embodied in feature specification 60 against the original requirements within listing 62. The verification and validation operations are continued to be performed during requirements phase 52 until all conditions are satisfied and feature specification 60 is fully verified and validated with respect to the initial requirements listing 62.
At this point, the process moves into design phase 54, as shown in
Verification and validation tool 50 is used during design phase 54 to verify that all of the requirements listed in feature specification 60 are included in architecture specification 70 and to validate the detailed design of each component within design documents 72. In particular, tool 50 utilizes a traceability task to cross-check between feature specification 60 and architecture specification 70, verifying the inclusion of each feature in the design. A conventional model checker component 74 is used by tool 50 to verify the specifics of each detailed design document 72.
During implementation phase 56, as shown in
The verification and validation tasks included within integration phase 58 are divided into two categories: a software integration task (i.e., integration testing on the redundant software component) and a system integration task (i.e., integration testing on the overall PLC system including the redundant software component). As with the testing at implementation phase 56, software integration verification utilizes an exemplary integration test framework 92 which includes test planning 94, test case design 96, test case execution 98 and test result reporting 100. For integration testing of the overall PLC system, an actual setup such as shown in
In summary, the present invention proposes a verification and validation process (and associated software tools) for providing objective assessment of the redundant PLC system throughout the entire lifecycle of redundancy software development (from defining initial requires to final implementation in a redundant PLC system). As described in detail above, formal methods such as model checking are used to verify the FSM of the PLC redundancy software and ensure its proper operation as installed in a working system.
The specific software tools as utilized in accordance with the present invention may be launched from a computer-readable medium in a computer-based system to execute the various functions discussed above (in particular, the detailed functionalities as shown in
While the preferred and other embodiments of the present invention have been illustrated and described, it will be clear that the invention is not so limited. Numerous modifications, changes, variations, substitutions and equivalents will occur to those of ordinary skill in the art without departing from the spirit and scope of the present invention as defined by the following claims.
This application claims the benefit of US Provisional Application No. 61/466,650, filed Mar. 23, 2011 and herein incorporated by reference.
Number | Date | Country | |
---|---|---|---|
61466650 | Mar 2011 | US |