# US 2012/0083904 A1 · Method and system for offline code validation

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2012/0083904 A1
- Document ID: US20120083904A1
- Status: Published application
- Kind: A1
- Application number: 12/897,007
- Filed: 2010-10-04
- Published: 2012-04-05
- Earliest claimed: 2010-10-04
- Assignees: General Electric Company
- Inventors: Visweswara Prasad Adavi; Raja Balasubramaniam
- Web page: https://patentgrep.com/patent/US20120083904A1

## CPC

- G05B 19/41885: {characterised by modeling, simulation of the manufacturing system}
- G05B 2219/32344: Modular verification of real time systems
- G05B 2219/32385: What is simulated, manufacturing process and compare results with real process
- Y02P 90/02: Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
- G05B: CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS (systems for controlling or regulating non-electric variables G05D; systems for regulating electric or magnetic variables G05F; control devices or systems insofar as characterised by mechanical features only G05G)
- Y02P: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS

## Abstract

A method of offline code validation and a process control system are provided. The system includes a plurality of sensors each configured to generate a sensor output value representative of a respective sensed parameter in a process plant, at least one process controller configured to receive one or more of the sensor output values and to generate a controller output value using the one or more of the sensor output values and a control algorithm associated with the at least one process controller, a plurality of controlled components configured to receive an associated controller output value, and an offline computing environment including a selectable model controller configurable to represent the at least one process controller, the model controller selectable by a user from code representing the at least one process controller and displayed on a user interface.

## Claims

### Claim 1

A process control system comprising:
a plurality of sensors each configured to generate a sensor output value representative of a respective sensed parameter in a process plant;
at least one process controller configured to receive one or more of the sensor output values and to generate a controller output value using the one or more of the sensor output values and a control algorithm associated with the at least one process controller;
a plurality of controlled components configured to receive an associated controller output value; and
an offline computing environment comprising a selectable model controller configurable to represent the at least one process controller, said model controller selectable by a user from code representing the at least one process controller and displayed on a user interface.

### Claim 2 (depends on 1)

A process control system in accordance with claim 1, further comprising an online computing environment communicatively coupled to said offline computing environment through the user interface, said offline computing environment configured to receive a selected model controller from said online computing environment, said offline computing environment viewable on the user interface simultaneously with the online computing environment.

### Claim 3 (depends on 1)

A process control system in accordance with claim 1, wherein said user interface is configured to permit the user to adjust a parameter of the model controller.

### Claim 4 (depends on 1)

A process control system in accordance with claim 1, further comprising a data storage device configured to store historical data representing input data received by the process controller.

### Claim 5

A method of offline code validation comprising:
selecting an offline model of an online process controller from a plurality of selectable models;
capturing from the online process controller operating in an online environment a snapshot of a current state of the online process controller;
establishing the captured state in the model controller;
modifying a control parameter of the model controller;
executing the model controller using the snapshot and the modified control parameter in an offline environment separate from the online environment; and
comparing an output of the executed model controller to the output of the online process controller.

### Claim 6 (depends on 5)

A method in accordance with claim 5, wherein selecting an offline model of an online process controller comprises copying a code representation of the online process controller from the online environment to the offline environment.

### Claim 7 (depends on 5)

A method in accordance with claim 5, wherein selecting an offline model of an online process controller comprises dragging and dropping a code representation of the online process controller from the online environment displayed on a user display screen to the offline environment displayed on the user display screen.

### Claim 8 (depends on 5)

A method in accordance with claim 5, further comprising:
after a process upset in the online environment, iteratively:
modifying a control parameter of the model controller to duplicate the upset conditions;
executing the model controller using the snapshot and the modified control parameter in an offline environment separate from the online environment;
comparing an output of the executed model controller to the output of the online process controller;
determining at least one of a cause of the upset and a control parameter that facilitates reducing a severity of the upset based on the comparison; and
modifying the determined control parameter in the online process controller to match the determined control parameter in the model controller.

### Claim 9 (depends on 5)

A method in accordance with claim 5, further comprising preventing an output of the model controller from affecting outputs in the online environment.

### Claim 10 (depends on 5)

A method in accordance with claim 5, further comprising automatically varying one or more inputs of the model controller and determining a correlation between the varied one or more inputs and the output of the model controller.

### Claim 11 (depends on 5)

A method in accordance with claim 5, further comprising storing historical data representing input data to the process controller.

### Claim 12 (depends on 5)

A method in accordance with claim 5, further comprising storing historical data representing output data from the process controller.

### Claim 13 (depends on 5)

A method in accordance with claim 5, further comprising:
retrieving stored historical data representing input data received by the process controller;
applying the retrieved data to the input of the model controller;
executing the model controller in the offline computing environment using the retrieved data;
comparing an output of the model controller to the stored historical data representing output data from the process controller; and
adjusting a parameter of the model controller using the comparison to provide a stable operation of the model controller.

### Claim 14 (depends on 13)

A method in accordance with claim 13, wherein retrieving stored historical data comprises retrieving stored historical data that includes data acquired during an upset of a process system operation.

### Claim 15

An offline code validation system comprising:
an online computing environment;
a process controller operable in the online computing environment to receive input values from one or more sensors and to generate output values using executable process controller code and the input values;
an offline computing environment executing concurrently with the online environment; and
an offline model of the process controller operable in the offline computing environment to receive input values from at least one of the one or more sensors and an input value generator and to generate output values using executable offline model code and the input values.

### Claim 16 (depends on 15)

A system in accordance with claim 15, further comprising a user interface configured to receive a selection from a user, the selection indicating representations of one or more process controllers displayed on a display of the user interface.

### Claim 17 (depends on 16)

A system in accordance with claim 16, wherein said user interface is configured to permit a user to copy the received selection from the online computing environment to the offline computing environment.

### Claim 18 (depends on 16)

A system in accordance with claim 16, wherein said user interface is configured to channel the received input values from the online computing environment to the offline computing environment.

### Claim 19 (depends on 16)

A system in accordance with claim 16, wherein said user interface is configured to permit the user to adjust a parameter of the model controller.

### Claim 20 (depends on 15)

A system in accordance with claim 15, further comprising a data storage device configured to store historical data representing input data received by the process controller.
