# US 2024/0085861 A1 · Programmable automation controller based optimization

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

- Number: US 2024/0085861 A1
- Document ID: US20240085861A1
- Status: Published application
- Kind: A1
- Application number: 17/932,025
- Filed: 2022-09-14
- Published: 2024-03-14
- Earliest claimed: 2022-09-14
- Assignees: Rockwell Automation Technologies, Inc.
- Applicants: Rockwell Automation Technologies, Inc.
- Inventors: Timothy L. Stanford; Alexander J. Miller; Mayank Maheshwari; Kevin Anthony Ellis
- Web page: https://patentgrep.com/patent/US20240085861A1

## CPC

- G05B 13/021: {in which a variable is automatically adjusted to optimise the performance}
- G05B 19/056: {Programming the PLC}
- G05B 2219/13103: Adaptive selftuning regulator
- G05B 2219/13115: Optimize ladder diagram block by rearrangement of serial and parallel
- 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)

## Abstract

An industrial controller can perform multi-dimensional optimization locally using the controller's native hardware and processing. An optimization algorithm is encoded on the industrial controller in a language understandable and executable by the controller (e.g., IEC61131-3). The optimization algorithm is adapted for the scan-based processing performed by industrial controllers rather than sequential processing, thereby allowing the optimization algorithm to be executed by the industrial controller as part of the controller's control program execution. A control program development system allows a user to add and configure the optimization algorithm as an instruction within the controller's control program. The instruction's configurable parameters allow the user to submit constraints and cost functions for the algorithm. During runtime, the controller executes this optimization instruction in accordance with the optimization parameters submitted by the user during development, using values of specified data tags as inputs and outputs for the algorithm.

## Claims

### Claim 1

An industrial controller, comprising:
a memory; and
a processor, operatively coupled to the memory that executes executable components stored on the memory, wherein the executable components comprise:
a program execution component configured to execute an industrial control program using scan-based processing, wherein the industrial control program processes input signals from industrial input devices of an automation system and controls output signals to industrial output devices of the automation system based on the input signals; and
an optimization component configured to execute a mathematical optimization routine using the scan-based processing, wherein the optimization routine calculates a set of values for respective control variables that minimize an objective function subject to one or more constraints.

### Claim 2 (depends on 1)

The industrial controller of claim 1, wherein the control variables, the objective function, and the one or more constraints are defined as instruction parameters of an optimization instruction included in the industrial control program.

### Claim 3 (depends on 2)

The industrial controller of claim 2, wherein the industrial control program is a ladder logic program, and the optimization instruction is an instruction added to the ladder logic program as a rung output.

### Claim 4 (depends on 3)

The industrial controller of claim 3, wherein at least one of the control variables, the objective function, or the one or more constraints are configurable via interaction with the instruction using a control program development platform.

### Claim 5 (depends on 1)

The industrial controller of claim 1, wherein the optimization component is configured to execute the optimization routine as a series of iterations across multiple scan cycles of the industrial controller.

### Claim 6 (depends on 5)

The industrial controller of claim 5, wherein the optimization component is configured to,
in response to determining that the industrial controller is executing a task defined as having a high priority, defer execution of a current iteration of the series of iterations, and
in response to determining that the industrial controller is not performing the task defined as having the high priority, permit the execution of the current iteration.

### Claim 7 (depends on 1)

The industrial controller of claim 1, wherein the objective function is a quadratic function.

### Claim 8 (depends on 1)

The industrial controller of claim 1, wherein the optimization routine is written in a same programming language as the industrial control program.

### Claim 9 (depends on 1)

The industrial controller of claim 1, wherein the control variables comprise at least one of setpoints for a manufacturing process being monitored and controlled by the industrial controller or amounts of respective materials to be blended by the automation system.

### Claim 10

A method, comprising:
executing, by an industrial controller comprising a processor, an industrial control program using scan-based processing, wherein the executing comprises monitoring input signals from industrial input devices of an automation system and controlling output signals to industrial output devices of the automation system based on the input signals; and
executing, by the industrial controller, an optimization algorithm using the scan-based processing, wherein the executing of the optimization algorithm comprises determining a set of values for respective control variables that minimize an objective function subject to one or more constraints.

### Claim 11 (depends on 10)

The method of claim 10, wherein the control variables, the objective function, and the one or more constraints are defined as instruction parameters of an optimization instruction included in the industrial control program.

### Claim 12 (depends on 11)

The method of claim 11, wherein
the executing of the industrial control program comprises executing a ladder logic program, and
the optimization instruction is an instruction added to the ladder logic program as a rung output.

### Claim 13 (depends on 12)

The method of claim 12, wherein at least one of the control variables, the objective function, or the one or more constraints are configurable via interaction with the instruction using a control program development platform.

### Claim 14 (depends on 10)

The method of claim 10, wherein the executing of the optimization algorithm comprises executing the optimization algorithm as a series of iterations across multiple scan cycles of the industrial controller.

### Claim 15 (depends on 14)

The method of claim 14, wherein the executing of the optimization algorithm comprises
in response to determining that the industrial controller is executing a task defined as having a high priority, deferring execution of a current iteration of the series of iterations, and
in response to determining that the industrial controller is not performing the task defined as having the high priority, permitting the execution of the current iteration.

### Claim 16 (depends on 10)

The method of claim 10, wherein the objective function is a quadratic function.

### Claim 17 (depends on 10)

The method of claim 10, wherein the optimization algorithm is written in a same programming language as the industrial control program.

### Claim 18 (depends on 10)

The method of claim 10, wherein the determining of the set of values comprises determining at least one of setpoints for a manufacturing process being monitored and controlled by the industrial controller or determining amounts of respective materials to be blended by the automation system.

### Claim 19

A non-transitory computer-readable medium having stored thereon instructions that, in response to execution, cause an industrial controller comprising a processor to perform operations, the operations comprising:
executing an industrial control program using scan-based processing supported by the industrial controller, wherein the executing comprises monitoring input signals from industrial input devices of an automation system and controlling output signals to industrial output devices of the automation system based on the input signals; and
executing an optimization routine using the scan-based processing, wherein the executing of the optimization routine comprises determining a set of values for respective control variables that minimize an objective function subject to one or more constraints.

### Claim 20 (depends on 19)

The non-transitory computer-readable medium of claim 19, wherein the control variables, the objective function, and the one or more constraints are defined as instruction parameters of an optimization instruction included in the industrial control program.
