# US 2022/0291652 A1 · Aspect-oriented programming based programmable logic controller (plc) simulation

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

- Number: US 2022/0291652 A1
- Document ID: US20220291652A1
- Status: Published application
- Kind: A1
- Application number: 17/634,294
- Filed: 2019-08-23
- Published: 2022-09-15
- Earliest claimed: 2019-08-23
- Assignees: Siemens Aktiengesellschaft; The Regents of the University of California
- Applicants: Siemens Aktiengesellschaft; The Regents of the University of California
- Inventors: Martin Sehr; Juan L. Aparicio Ojea; Mehrdad Niknami; Edward Lee; Martin Witte; Jörg Neidig
- Web page: https://patentgrep.com/patent/US20220291652A1

## CPC

- G05B 19/056: {Programming the PLC}
- G05B 17/02: electric
- G06F 8/316: {Aspect-oriented programming techniques}
- G05B 2219/13186: Simulation, also of test inputs
- 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)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Examples of techniques for aspect-oriented programming based programmable logic controller (PLC) simulation are provided. An aspect including one of a hardware configuration aspect, an execution semantics aspect, and a communication architecture aspect, may be determined to be applied to a general model of an industrial system, the general model including a PLC model and a system model. The determined aspect may be applied to the general model. The industrial system may be simulated using the general model and the applied aspect.

## Claims

### Claim 1

A computer-implemented method comprising:
determining, by a processor, an aspect comprising one of a hardware configuration aspect, an execution semantics aspect, and a communication architecture aspect to be applied to a general model of an industrial system, the general model comprising a programmable logic controller (PLC) model and a system model;
applying the determined aspect to the general model; and
simulating the industrial system using the general model and the applied aspect.

### Claim 2 (depends on 1)

The method of claim 1, wherein the aspect comprises the hardware configuration aspect, and wherein determining the aspect comprising the hardware configuration aspect comprises determining a hardware configuration of a PLC to be applied to the PLC model.

### Claim 3 (depends on 2)

The method of claim 2, wherein the hardware configuration aspect comprises an execution time of a program component of control code that is executed on the PLC based on the hardware configuration of the PLC.

### Claim 4 (depends on 1)

The method of claim 1, wherein the aspect comprises the execution semantics aspect, and wherein determining the aspect comprising the execution semantics aspect comprises determining a real-time execution principle to be applied to the PLC model, wherein the real time execution principle comprises one of time-driven execution and event-driven execution.

### Claim 5 (depends on 1)

The method of claim 1, wherein the aspect comprises the communication architecture aspect, and wherein determining the aspect comprising the communication architecture aspect comprises determining a respective port of a PLC associated with one of a sensor signal and a command signal of the industrial system.

### Claim 6 (depends on 1)

The method of claim 1, wherein the aspect comprises the communication architecture aspect, and wherein determining the aspect comprising the communication architecture aspect comprises determining one or more communication types used between a PLC and a system element of the industrial system, wherein the one or more communication types comprise one or more of industrial Ethernet, process field net (PROFINET), process field bus (Profibus), Ethernet for control automation technology (Ethercat), backpanel bus, time-sensitive networking (TSN), and input output (IO)-Link.

### Claim 7 (depends on 1)

The method of claim 1, further comprising one of:
deploying control code to a PLC of the industrial system based on the simulation; and
modifying a configuration of the industrial system based on the simulation.

### Claim 8

A system comprising:
a memory having computer readable instructions; and
one or more processors for executing the computer readable instructions, the computer readable instructions controlling the one or more processors to perform operations comprising:
determining an aspect comprising one of a hardware configuration aspect, an execution semantics aspect, and a communication architecture aspect to be applied to a general model of an industrial system, the general model comprising a programmable logic controller (PLC) model and a system model;
applying the determined aspect to the general model; and
simulating the industrial system using the general model and the applied aspect.

### Claim 9 (depends on 8)

The system of claim 8, wherein the aspect comprises the hardware configuration aspect, and wherein determining the aspect comprising the hardware configuration aspect comprises determining a hardware configuration of a PLC to be applied to the PLC model.

### Claim 10 (depends on 9)

The system of claim 9, wherein the hardware configuration aspect comprises an execution time of a program component of control code that is executed on the PLC based on the hardware configuration of the PLC.

### Claim 11 (depends on 8)

The system of claim 8, wherein the aspect comprises the execution semantics aspect, and wherein determining the aspect comprising the execution semantics aspect comprises determining a real-time execution principle to be applied to the PLC model, wherein the real time execution principle comprises one of time-driven execution and event-driven execution.

### Claim 12 (depends on 8)

The system of claim 8, wherein the aspect comprises the communication architecture aspect, and wherein determining the aspect comprising the communication architecture aspect comprises determining a respective port of a PLC associated with one of a sensor signal and a command signal of the industrial system.

### Claim 13 (depends on 8)

The system of claim 8, wherein the aspect comprises the communication architecture aspect, and wherein determining the aspect comprising the communication architecture aspect comprises determining one or more communication types used between a PLC and a system element of the industrial system, wherein the one or more communication types comprise one or more of industrial Ethernet, process field net (PROFINET), process field bus (Profibus), Ethernet for control automation technology (Ethercat), backpanel bus, time-sensitive networking (TSN), and input output (IO)-Link.

### Claim 14 (depends on 8)

The system of claim 8, further comprising one of:
deploying control code to a PLC of the industrial system based on the simulation; and
modifying a configuration of the industrial system based on the simulation.

### Claim 15

A computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor to cause the processor to perform operations comprising:
determining an aspect comprising one of a hardware configuration aspect, an execution semantics aspect, and a communication architecture aspect to be applied to a general model of an industrial system, the general model comprising a programmable logic controller (PLC) model and a system model;
applying the determined aspect to the general model; and
simulating the industrial system using the general model and the applied aspect.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the aspect comprises the hardware configuration aspect, and wherein determining the aspect comprising the hardware configuration aspect comprises determining a hardware configuration of a PLC to be applied to the PLC model.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein the hardware configuration aspect comprises an execution time of a program component of control code that is executed on the PLC based on the hardware configuration of the PLC.

### Claim 18 (depends on 15)

The computer program product of claim 15, wherein the aspect comprises the execution semantics aspect, and wherein determining the aspect comprising the execution semantics aspect comprises determining a real-time execution principle to be applied to the PLC model, wherein the real time execution principle comprises one of time-driven execution and event-driven execution.

### Claim 19 (depends on 15)

The computer program product of claim 15, wherein the aspect comprises the communication architecture aspect, and wherein determining the aspect comprising the communication architecture aspect comprises determining a respective port of a PLC associated with one of a sensor signal and a command signal of the industrial system.

### Claim 20 (depends on 15)

The computer program product of claim 15, wherein the aspect comprises the communication architecture aspect, and wherein determining the aspect comprising the communication architecture aspect comprises determining one or more communication types used between a PLC and a system element of the industrial system, wherein the one or more communication types comprise one or more of industrial Ethernet, process field net (PROFINET), process field bus (Profibus), Ethernet for control automation technology (Ethercat), backpanel bus, time-sensitive networking (TSN), and input output (IO)-Link.
