# US 2025/0147737 A1 · Plc program generator/copilot using generative ai

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

- Number: US 2025/0147737 A1
- Document ID: US20250147737A1
- Status: Published application
- Kind: A1
- Application number: 18/991,211
- Filed: 2024-12-20
- Published: 2025-05-08
- Earliest claimed: 2023-11-03
- Assignees: Rockwell Automation Technologies, Inc.
- Applicants: Rockwell Automation Technologies, Inc.
- Inventors: Francisco P. Maturana; Meiling He; Ankan Chowdhury; Aderiano da Silva
- Web page: https://patentgrep.com/patent/US20250147737A1

## CPC

- G06F 8/33: Intelligent editors
- G05B 19/0426: {Programming the control sequence}
- G05B 19/056: {Programming the PLC}
- G06F 8/73: Program documentation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- 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 integrated development environment (IDE) for uses a generative artificial intelligence (AI) model to generate industrial control code in accordance with functional requirements provided to the industrial IDE system as natural language prompts. The system's generative AI model leverages both a code repository storing sample control code and a document repository that stores device or software manuals, program instruction manuals, functional specification documents, or other technical documents. These repositories are synchronized by digitizing selected portions of document text from the document repository into control code for storage in the code repository, as well as contextualizing control code from the code repository into text-based documentation for storage in the document repository.

## Claims

### Claim 1

A system, comprising:
a memory that stores executable components; and
a processor, operatively coupled to the memory, that executes the executable components, the executable components comprising:
a user interface component configured to receive a functional specification document comprising natural language text describing functional specifications for an industrial automation system; and
an artificial intelligence (AI) component configured to generate, based on analysis using a generative AI model of the natural language text contained in the functional specification, documented control code capable of performing a control function defined in the functional specification document, the documented control code comprising embedded documentation generated based on the natural language text of the functional specification document.

### Claim 2 (depends on 1)

The system of claim 1, wherein the embedded documentation comprises at least one of natural language descriptions of functions of respective portions of the documented control code, ladder logic rung comments, names of variables used in the documented control code, descriptions of the variables, or instructions for using the documented control code.

### Claim 3 (depends on 1)

The system of claim 1, wherein the AI component is configured to generate the documented control code further based on sample control code stored in a code repository and text-based documents stored in a document repository.

### Claim 4 (depends on 3)

The system of claim 3, wherein the AI component is configured to store the documented control code in the code repository, to store the functional specification documentation in the documentation repository, and to create a link between the documented control code and the functional specification document.

### Claim 5 (depends on 3)

The system of claim 3, wherein the documents stored in the document repository comprises at least one of industrial programming manuals, industrial device manuals, or functional specification documents.

### Claim 6 (depends on 3)

The system of claim 3, wherein the sample control code stored on the code repository comprises at least one of control code submitted by a device or software vendor, customer-specific control code samples, or add-on instructions.

### Claim 7 (depends on 3)

The system of claim 3, wherein the AI component is further configured to
generate, based on analysis using the generative AI model of a control code sample stored in the code repository, a text-based functional specification document describing a function of the control code sample, and
store the text-based functional specification document in the document repository.

### Claim 8 (depends on 1)

The system of claim 1, wherein
the AI component is configured to generate the documented control code in a format specified by an input received via the user interface component, and
the format is at least one of a ladder logic routine, a structured text routine, or an add-on instruction.

### Claim 9 (depends on 1)

The system of claim 1, wherein the AI component is further configured to
set multiple sets of values of hyperparameters for the generative AI model,
generate, using the generative AI model, multiple versions of the documented control code using the respective multiple sets of values of hyperparameters for the generative AI model, and
in response to receipt of a selection of a version of the documented control code, from among the multiple versions of the documented control code, store one of the sets of values of the hyperparameters corresponding to the version of the documented control code in a prompt repository.

### Claim 10 (depends on 9)

The system of claim 9, wherein the AI component is further configured to, in response to the receipt of the selection of the version of the documented control code:
set multiple sets of new values of the hyperparameters based on the one of the sets of values of the hyperparameters corresponding to the version of the documented control code, and
generate, using the generative AI model and based on the version of the documented control code, multiple new versions of the documented control code using the respective multiple new sets of values of hyperparameters for the generative AI model.

### Claim 11

A method, comprising:
receiving, by an industrial integrated development environment (IDE) system comprising a processor, a functional specification document comprising natural language text describing functional specifications for an industrial automation system; and
generating, by the industrial IDE system based on analysis, using a generative artificial intelligence (AI) model of the natural language text contained in the functional specification, documented control code capable of performing a control function defined by the functional specification document, wherein the documented control code comprises embedded documentation generated based on the natural language text of the functional specification document.

### Claim 12 (depends on 11)

The method of claim 11, wherein the embedded documentation comprises at least one of natural language descriptions of functions of respective portions of the documented control code, ladder logic rung comments, names of variables used in the documented control code, descriptions of the variables, or instructions for using the documented control code.

### Claim 13 (depends on 11)

The method of claim 11, wherein the generating comprises generating the documented control code further based on sample control code stored in a code repository and text-based documents stored in a document repository.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
storing, by the industrial IDE system, the documented control code in the code repository;
storing, by the industrial IDE system, the functional specification documentation in the documentation repository; and
creating, by the industrial IDE system, a link between the documented control code and the functional specification document.

### Claim 15 (depends on 13)

The method of claim 13, wherein the documents stored in the document repository comprises at least one of industrial programming manuals, industrial device manuals, or functional specification documents.

### Claim 16 (depends on 13)

The method of claim 13, wherein the sample control code stored on the code repository comprises at least one of control code submitted by a device or software vendor, customer-specific control code samples, or add-on instructions.

### Claim 17 (depends on 13)

The method of claim 13, further comprising:
generating, by the industrial IDE system based on analysis, using the generative AI model, of a control code sample stored in the code repository, a text-based functional specification document describing a function of the control code sample, and
storing, by the industrial IDE system, the text-based functional specification document in the document repository.

### Claim 18 (depends on 11)

The method of claim 11, wherein
the generating comprises generating the documented control code in a format specified by a natural language input, and
the format is at least one of a ladder logic routine, a structured text routine, or an add-on instruction.

### Claim 19

A non-transitory computer-readable medium having stored thereon instructions that, in response to execution, cause an industrial integrated development environment (IDE) system comprising a processor to perform operations, the operations comprising:
receiving a functional specification document comprising natural language text describing functional specifications for an industrial automation system; and
generating, based on generative artificial intelligence (AI) analysis of the natural language text contained in the functional specification, documented control code capable of performing a control function defined by the functional specification document,
wherein the documented control code comprises embedded documentation generated based on the natural language text of the functional specification document.

### Claim 20 (depends on 19)

The non-transitory computer-readable medium of claim 19, wherein the embedded documentation comprises at least one of natural language descriptions of functions of respective portions of the documented control code, ladder logic rung comments, names of variables used in the documented control code, descriptions of the variables, or instructions for using the documented control code.
