Programmable Logic Controller (PLC) Simulation Based on Aspect-Oriented Programming

Through the PLC simulation method of aspect-oriented programming, the problems of PLC complexity and difficulty in design iteration in industrial systems are solved, and high-confidence system transformation and stability improvement are achieved. Through virtual debugging and simulating industrial systems, the problems of hardware and code are solved. Configurable timing behavior and multi-class thread contention effects.

CN114258514BInactive Publication Date: 2024-10-25SIEMENS AG +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980099610.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-08-23
Publication Date
2024-10-25
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In industrial applications, the complexity and evolving design of PLCs may disrupt the operation of existing systems, and prototypes and test designs may have low confidence, making iterative design difficult in industrial systems, especially in the timing behavior and configuration of hardware and code. Signal timing and availability are affected under multi-class thread contention.

Method used

Adopting a PLC simulation method based on aspect-oriented programming, by determining aspects of hardware configuration, execution semantics and communication architecture, a general model is created and applied to simulated industrial systems, allowing to increase software modularity and achieve virtualization without modifying existing code Debugging and high-confidence system retrofits.

Benefits of technology

Through aspect-oriented PLC simulation, it can speed up new system debugging and existing system transformation without affecting the existing system, improve the stability and efficiency of industrial systems, reduce the risk of design iterations, and enhance advanced understanding of PLC control codes. Separation of target and execution semantics, communication protocols, and device hardware configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114258514B_ABST
    Figure CN114258514B_ABST
Patent Text Reader

Abstract

An embodiment of a programmable logic controller (PLC) simulation technique based on aspect-oriented programming is provided. An aspect including one of a hardware configuration aspect, an execution semantic aspect, and a communication architecture aspect may be determined for a general model of an industrial system, the general model including a PLC model and a system model. The determined aspects may be applied to the general model. The general model and the applied aspects may be used to simulate the industrial system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present technology relates to programmable logic controllers (PLCs). More specifically, the technology relates to PLC simulation based on aspect-oriented programming. Background Art

[0002] Although Industry 4.0, digitalization, and the Internet of Things (IIOT) promise increased use of common software and networks in industrial applications, there may be significant risks. In industrial applications, safety, reliability, security, and efficiency may be more important than many information technology and home automation applications. Programmable logic controllers (PLCs) used to control industrial applications can provide relatively simple control code running on robust, reinforced hardware, networks, using controllable real-time behavior and wide availability of interoperable components such as sensors and actuators. Therefore, PLCs are an established platform for factory and industrial system control. PLC hardware includes a wide range of basic standardized connection options for sensors and actuators for industrial systems, including cycle time monitoring suitable for industrial automation, enabled by a programming and configuration system that provides a cyclic and priority execution model. Therefore, PLCs provide a stable runtime environment for industrial control systems with basic functions that are not compromised due to programming errors.

[0003] The main workload of the PLC can be completed within the scan cycle, during which control tasks defined by so-called functions (PCs) or function blocks (LBs) are processed. The FB operates on an internal area of ​​memory in the PLC called a processing image, where inputs and outputs can be updated manually or automatically at specified time points such as the beginning and end of a scan cycle. The requirements for PLC programming have evolved over time. In particular, the number of control tasks per PLC and the number of applications with different requirements have increased, increasing the risk of undesirable interactions. PLCs can be used in a variety of industrial applications, such as processing plants, production machines, assembly lines, and ships. PLCs can implement complex control schemes, such as high-frequency motion control for synchronous drives. PLCs can be part of a real-time network on the factory floor, connecting basic sensors and actuators, distributed intelligent peripherals, and other industrial control systems such as protection switches, motion control systems, supervisory control and data acquisition (SCADA) systems, and edge devices. The basic functions and structure of PLCs are defined in the International Electrotechnical Commission (IEC) 61131-1:2003. Summary of the invention

[0004] Embodiments of the present invention are directed to aspect-based programming for programmable logic controller (PLC) simulation. A non-limiting exemplary computer-implemented method includes: determining an aspect including one of a hardware configuration aspect, an execution semantic aspect, and a communication architecture aspect applied to a general model of an industrial system, the general model including a PLC model and a system model. The method also includes: applying the determined aspect to the general model. The method also includes: simulating the industrial system using the general model and the applied aspect.

[0005] Other embodiments of the present invention implement the features of the above methods in computer systems and computer program products.

[0006] Additional technical features and benefits are achieved through the technology of the present invention. The embodiments and aspects of the present invention are described in detail herein and are considered to be part of the subject matter claimed for protection. For a better understanding, reference is made to the detailed description and the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] Figure 1 is a block diagram of an exemplary computer system for use in conjunction with aspect-oriented programming-based programmable logic controller (PLC) simulation;

[0008] Figure 2 is a block diagram of an exemplary system for PLC simulation based on aspect-oriented programming;

[0009] Figure 3 is a process flow diagram of an exemplary method of PLC simulation based on aspect-oriented programming; and

[0010] Figure 4 is a block diagram of an exemplary industrial system including a PLC used in conjunction with aspect-oriented programming-based PLC simulation. DETAILED DESCRIPTION

[0011] An embodiment of a programmable logic controller (PLC) simulation based on aspect-oriented programming is provided, and exemplary embodiments are discussed in detail below. Although relatively simple control systems can be designed, prototyped and tested in the art and the design is iterated, however, because the testing of low-confidence designs in the art may disrupt the operation of existing industrial systems, in industrial systems including PLCs (e.g., factories and production lines), prototype and test design iterations may be problematic. Therefore, virtual prototypes can be used to achieve the growth of the complexity and evolutionary design of PLCs, wherein virtual simulation and verification can be used instead of prototypes and tests. The simulation of industrial systems including PLCs can be used to speed up the commissioning of new industrial systems and / or the transformation of existing industrial systems with relatively high confidence.

[0012] Due to the influence of the timing behavior dependency in the hardware and code configuration, the multiple categories of threads competing for computing resources, and the network configuration on the timing and availability of signals, the simulation of PLC may be relatively complex. Many features of PLC may be independent of the specific use cases and high-level functions of the deployed PLC. Aspect-oriented programming can be applied to a general PLC simulation model to isolate and allow features such as hardware configuration, execution semantics, and communication architecture to be transformed in the simulation. Applying aspects to the simulation model allows the high-level goals of the PLC control code to be separated from the execution semantics, communication protocols and architecture, and device hardware configuration. An implementation method of PLC simulation based on aspect-oriented programming can provide a modular simulation architecture using lightweight simulation software and realize virtual debugging of simulated industrial systems.

[0013] Implementations of aspect-oriented programming in conjunction with PLC simulation implementations can increase software modularity by adding additional behavior (e.g., PLC models) to existing code without modifying the existing code. In some implementations, the code modified using aspect-oriented programming can be specified via pointcut specifications, e.g., "when function Y is called, execute X," where function Y is part of the existing code and any instructions included in X are outside of the existing code. This allows the PLC model to be used to simulate behaviors that are not core to the specific use cases and high-level functionality of the deployed PLC without disrupting the computer code of the PLC model.

[0014] Now turn Figure 1 , mainly showing a computer system 100 according to an embodiment. As described herein, the computer system 100 can be an electronic computer framework including and / or using any number and combination of computing devices and networks using various communication technologies. The computer system 100 can be easily expanded, extended and modular, with the ability to change into different services or reconfigure some features that are unrelated to other functions. For example, the computer system 100 can be a server, a desktop computer, a laptop computer, a tablet computer or a smart phone. In some embodiments, the computer system 100 can be a cloud computing node. The computer system 100 can be described in the general context of computer system executable instructions such as program modules executed by the computer system. Generally, program modules can include routines, programs, objects, components, logic, data structures, etc. that perform specific tasks or implement specific abstract data types. The computer system 100 can be implemented in a distributed cloud computing environment, where tasks are performed by remote processing devices linked through a communication network. In a distributed cloud computing environment, program modules can be located in local and remote computer system storage media including memory storage devices.

[0015] like Figure 1As shown in , the computer system 100 has one or more central processing units (CPUs) 101a, 101b, 101c, etc. (collectively or generally referred to as processors 101). Processor 101 can be a single-core processor, a multi-core processor, a computing cluster, or any number of other configurations. Processor 101, also referred to as a processing circuit, is coupled to system memory 103 and various other components via system bus 102. System memory 103 may include read-only memory (ROM) 104 and random access memory (RAM) 105. ROM 104 is coupled to system bus 102 and may include a basic input / output system (BIOS) that controls specific substrate functions of computer system 100. RAM is a read-write memory coupled to system bus 102 for use by processor 101. System memory 103 provides temporary storage space for operating instructions during operation. System memory 103 may include random access memory (RAM), read-only memory, flash memory, or any other suitable memory system.

[0016] Computer system 100 includes an input / output (I / O) adapter 106 and a communication adapter 107 coupled to system bus 102. I / O adapter 106 may be a small computer system interface (SCSI) adapter for communicating with hard disk 108 and / or any other similar components. I / O adapter 106 and hard disk 108 are collectively referred to herein as mass storage 110.

[0017] Software 111 for execution on computer system 100 may be stored in mass storage 110. Mass storage 110 is an embodiment of a tangible storage medium readable by processor 101, such as described herein below with respect to various figures, in which software 111 is stored as instructions executed by processor 101 to cause computer system 100 to operate. Embodiments of computer program products and the execution of such instructions are discussed in greater detail herein. Communications adapter 107 interconnects system bus 102 with network 112, which may be an external network that enables computer system 100 to communicate with such other systems. In one embodiment, a portion of system memory 103 and mass storage 110 collectively store an operating system (which may be any suitable operating system) to coordinate operations. Figure 1 The functions of the individual components are shown in .

[0018] Additional input / output devices are shown connected to system bus 102 via display adapter 115 and interface adapter 116. In one embodiment, adapters 106, 107, 115, and 116 may be connected to one or more I / O buses that are connected to system bus 102 via an intermediate bus bridge (not shown). Display 119 (e.g., a screen or display monitor) is connected to system bus 102 via display adapter 115, which may include a graphics controller and a video controller to improve the performance of graphics-intensive applications. Keyboard 121, mouse 122, speakers 123, etc. can be interconnected to system bus 102 via interface adapter 116, which may include, for example, a super I / O chip that integrates multiple device adapters into a single integrated circuit. Suitable I / O buses for connecting peripheral devices such as hard disk controllers, network adapters, and graphics adapters typically include common protocols such as Peripheral Component Interconnect (PCI). Thus, as Figure 1 As configured in, computer system 100 includes processing capabilities in the form of processor 101, storage capabilities including system memory 103 and mass storage 110, input devices such as keyboard 121 and mouse 122, and output capabilities including speakers 123 and display 119.

[0019] In some embodiments, the communication adapter 107 can send data using any suitable interface or protocol, such as an Internet Small Computer System Interface, etc. The network 112 can be a cellular network, a radio network, a wide area network (WAN), a local area network (LAN), or the Internet, etc. An external computing device can be connected to the computer system 100 through the network 112. In some embodiments, the external computing device can be an external network server or a cloud computing node.

[0020] It should be understood that Figure 1 The block diagram in the figure is not intended to indicate that the computer system 100 includes Figure 1 Instead, computer system 100 may include all components shown in FIG. Figure 1 Any suitable fewer or additional components not shown in the drawings (e.g., additional memory components, embedded controllers, modules, additional network interfaces, etc.). Further, the embodiments described herein with respect to computer system 100 may be implemented using any suitable logic, wherein as mentioned herein, in various embodiments, the logic may include any suitable hardware (e.g., a processor, an embedded controller, or an application specific integrated circuit, etc.), software (e.g., an application, etc.), firmware, or any suitable combination of hardware, software, and firmware.

[0021] Figure 2is a block diagram of an exemplary system 200 for PLC simulation based on aspect-oriented programming. The system 200 may be implemented in conjunction with any suitable computer system, such as Figure 1 Implementations of the system 200 may include Figure 1 The system 200 includes a general model 201 of an industrial system, including a PLC model 202 and a system model 203. The PLC model 202 includes a high-level model of the PLC control code running in the simulated PLC, and the system model 203 includes a description of the system (e.g., a production line) controlled by the PLC model 202, and the PLC model may include any appropriate elements such as sensors, motors, and actuators. The PLC model 202 adjusts the system model 203 during the simulation, and may receive sensor data 207 including multiple sensor signals from the virtual sensors of the system model 203, and send command data 208 including multiple command signals to the virtual elements (e.g., motors or actuators) of the system model 203 based on the sensor data 207. The general model 201 can be applied to a variety of different configurations of industrial systems. In some embodiments, the simulation performed using the generic model 201 can determine that a new version of the PLC control code running in the PLC model 202 is suitable for deployment to a specific instance of the industrial system in the field. In order to simulate a specific instance of the industrial system using the generic model 201, the hardware configuration aspect 204, the execution semantic aspect 205, and the communication architecture aspect 206 can be determined based on the characteristics of the specific instance of the industrial system and applied to the generic model 201 using aspect-oriented programming technology. Further, the hardware configuration aspect 204, the execution semantic aspect 205, and / or the communication architecture aspect 206 can be modified to simulate the effects of changes in the configuration of the specific instance of the industrial system using the generic model 201. The aspects 204, 205, and 206 can implement modifications to the characteristics of the generic model 201 without changing the high-level logic encoded in the PLC model 202 or the configuration of the system model 203.

[0022] The hardware configuration aspects 204 can specify the characteristics of the physical hardware of the simulated PLC, and apply these characteristics to the PLC model 202 to simulate the execution of the PLC control code in the specific industrial system using the generic model 201. For example, the simulated PLC may include a specific memory or processor configuration applied to the PLC model 202 using the hardware configuration aspects 204. When the program components are executed using a specific memory and / or processor configuration, the program components of the PLC control code can have a specific execution time. The execution time of the program components can be applied to the PLC model 202 via the hardware configuration aspects 204. The execution time of the program components can also be modified using the hardware configuration aspects 204. Further, the hardware configuration aspects 204 can specify a new hardware configuration to be simulated before being deployed in a physical PLC in a specific industrial system, so that the performance of the industrial system including the new hardware configuration can be virtually determined using the generic model 201.

[0023] The execution semantics aspect 205 may specify the type of real-time execution implemented in the PLC modeled by the PLC model 202. For example, the PLC may implement different real-time execution principles such as time-driven execution or event-driven execution. Separating the execution semantics from the PLC model 202 using the execution semantics aspect 205 allows examining the impact of different execution semantics on the specific control problem simulated by the generic model 201.

[0024] In a specific example of an industrial system modeled by system 200, sensor data and command data may be received and sent through designated ports on a PLC (e.g., each sensor, motor, and / or actuator in the industrial system may correspond to a corresponding port in the PLC). In some embodiments, communication architecture aspects 206 may specify specific PLC ports in PLC model 202 that receive virtual sensor signals for sensor data 207 and send virtual commands for command data 208. In some embodiments, each virtual sensor signal of sensor data 207 may be received through a corresponding PLC port in PLC model 202, and each virtual command signal of command data 208 may be sent via a corresponding port in PLC model 202 based on the application of communication architecture aspects 206 to PLC model 202 and system model 203.

[0025] The communication architecture aspect 206 may also specify the specific communication protocol used in the simulation of a specific instance of an industrial system performed using the generic model 201. The communication system of the PLC may be separated from the control code and may support multiple types of communication between the PLC and various elements of the industrial system, including but not limited to Industrial Ethernet, Process Field Network (PROLINET), Process Field Bus (Profibus), Ethernet for Control Automation Technology (Ethercat), Backplane Bus, Time Sensitive Network (TSN) and / or Input Output (IO) Links. The communication type may not only differ at the protocol level, but may also have different timing and encoding characteristics, for example, down to level 2 in the International Organization for Standardization (ISO) / Open System Interconnection (OSI) stack. Separating the communication architecture aspect 206 from the generic model 201 in the simulation allows the simulation to test the impact of the use of different communication settings and types on the overall functionality of the generic model 201 without changing the generic model 201.

[0026] It should be understood that Figure 2 The block diagram in the example is not intended to indicate that the system 200 includes Figure 2 Instead, system 200 may include all components shown in Figure 2 Any suitable fewer or additional components not shown in the system 100 (e.g., additional PLC models, system models, aspects, computer systems, processors, memory components, embedded controllers, modules, computer networks, network interfaces, data inputs, etc.) may be included. Further, the embodiments described herein with respect to the system 100 may be implemented using any suitable logic, wherein as mentioned herein, in various embodiments, the logic may include any suitable hardware (e.g., a processor, an embedded controller, or an application specific integrated circuit, etc.), software (e.g., an application, etc.), firmware, or any suitable combination of hardware, software, and firmware.

[0027] Figure 3 is a process flow chart of an exemplary method 300 for PLC simulation based on aspect-oriented programming. Figure 3 Method 300 in, such as Figure 1 The computer system 100 in FIG. Figure 2 Method 300 is discussed with reference to system 200 in FIG. 301. In block diagram 301, a generic model 201 is received, the generic model corresponding to a specific instance of an industrial system (including but not limited to a factory, a processing plant, a production line, an assembly line, and a ship), including a PLC model 202 and a system model 203. Generic model 201 can be applied to a variety of possible industrial system configurations, including by Figure 3The system model 203 may include virtual components corresponding to the specific industrial system, including but not limited to sensors, motors, and actuators. The PLC model 202 may include simulated PLC control code. In various embodiments, the PLC control code may include a deployed control code used in a specific industrial system in the art, or a control code tested before being deployed to the field.

[0028] At block 302, the hardware configuration aspects 204 applied to the PLC model 202 are determined. In various embodiments, the hardware configuration aspects 204 may specify the hardware configuration (e.g., processor and / or memory configuration) of a deployed PLC in a specific instance of a simulated industrial system, or a new hardware configuration tested prior to deployment in the field. In some embodiments, the hardware configuration aspects 204 may specify the corresponding execution times of various program components of the control code in the PLC model 202 based on the hardware configuration of the simulated PLC.

[0029] At block 303, the execution semantics aspects 205 applied to the PLC model 202 are determined. The execution semantics aspects 205 may specify the type of real-time execution implemented in the PLC modeled by the PLC model 202. For example, the PLC may implement different real-time execution principles, such as time-driven execution or event-driven execution. Separating the execution semantics from the PLC model 202 using the execution semantics aspects 205 allows for examination of the impact of different execution semantics on the specific control problem simulated by the generic model 201.

[0030] At block 304, the communication architecture aspects 206 applied to the PLC model 202 are determined. In some embodiments, the communication architecture aspects 206 may specify the corresponding ports in the PLC model 202 that receive virtual sensor signals of sensor data 207 and send virtual commands of command data 208 based on the configuration of the specific instance of the simulated industrial system. The communication architecture aspects 206 may also specify the communication protocol used in the specific instance of the industrial system simulated by the generic model 201. The communication system of the PLC may be separated from the control code, and may support multiple types of communication between the PLC and various elements of the industrial system, including but not limited to industrial Ethernet, PROFINET, Profibus, Ethercat, backplane bus, TSN and / or IO link. The communication type may not only be different at the protocol level, but may also have different timing and encoding characteristics, for example, down to level 2 in the ISO / OSI stack. Separating the communication architecture aspects 206 from the generic model 201 in the simulation allows the simulation to investigate the impact of the use of different communication settings and types on the overall functionality of the generic model 201 without changing the generic model 201.

[0031] In block diagram 305, the hardware configuration aspects 204, execution semantics aspects 205, and communication architecture aspects 206 determined in blocks 302, 303, and 304 are applied to the generic model 201. The hardware configuration aspects 204, execution semantics aspects 205, and communication architecture aspects 206 are applied to the PLC model 202. The communication architecture aspects 206 can also be applied to the system model 203. In block diagram 306, the specific configuration of the industrial system is simulated using the generic model 201 with the applied aspects, for example, the hardware configuration aspects 204, execution semantics aspects 205, and communication architecture aspects 206. The simulation of block diagram 306 can be used for any appropriate purpose, including but not limited to testing new PLC control code or system configuration changes before being deployed to a specific instance of an industrial system in the field. Based on the success of the simulation in block diagram 306, in various embodiments, the new control code can be deployed on the PLC in the specific industrial process in the field, or the new hardware configuration, execution semantics, and / or communication architecture features can be applied to the industrial system in the field.

[0032] Figure 3 The process flow diagram in is not intended to indicate that the operations in method 300 be performed in any particular order, or that every case includes all of the operations in method 300. Furthermore, method 300 can include any suitable number of additional operations.

[0033] Figure 4 is a block diagram of an exemplary industrial system 400 including a PLC 406 used in conjunction with aspect-oriented programming based PLC simulation. System 400 may be based on Figure 3 Method 300 in the use Figure 2 The system 400 is a specific physical instance of an industrial system modeled by the general model 201 in FIG. The system 400 includes a production line 401 including roller motors 402A-B, proximity sensors 403A-F, vibration motors 404A-B, and vibration sensors 405A-B. The proximity sensors 403A-F and the vibration sensors 405A-B can each provide corresponding sensor signals to a PLC 406, and the PLC 406 can generate corresponding command signals for the roller motors 402A-B and the vibration motors 404A-B based on the control code in the PLC 406 and the sensor data from the proximity sensors 403A-F and the vibration sensors 405A-B. The system 400 can be used to control the roller motors 402A-B and the vibration motors 404A-B. Figure 2 The PLC model 202 in the example simulates the PLC 406 and can be used Figure 2 The system model 203 in the simulation production line 401. As mentioned above Figure 3 As described in the method 300 in FIG. 1 , the characteristics of the industrial system 400 can be captured in terms of hardware configuration 204, execution semantics 205, and / or communication architecture 206 and applied to Figure 2PLC model 202 in. As mentioned above Figure 3 As described in method 300 in FIG. 2 , communication architecture aspects 206 may also be applied to system model 203 .

[0034] It should be understood that Figure 4 The block diagram is not intended to indicate that the system 400 includes Figure 4 Rather, system 400 can include Figure 4 Any suitable fewer or additional components not shown in the system 400 (e.g., sensors, motors, actuators, PLCs, production lines, connections between components, etc.) can be included. Further, the embodiments described herein with respect to the system 400 can be implemented using any suitable logic, wherein as mentioned herein, in various embodiments, the logic can include any suitable hardware (e.g., a processor, an embedded controller, or an application-specific integrated circuit, etc.), software (e.g., an application, etc.), firmware, or any suitable combination of hardware, software, and firmware.

[0035] Various embodiments of the present invention are described herein with reference to the accompanying drawings. Without departing from the scope of the present invention, alternative embodiments of the present invention may be envisioned. Various connections and positional relationships (e.g., above, below, adjacent, etc.) are described below and between the elements in the accompanying drawings. Unless otherwise specified, these connections and / or positional relationships may be direct or indirect, and the present invention is not intended to be limited to this aspect. Accordingly, the coupling of entities may refer to direct or indirect coupling, and the positional relationship between entities may be a direct or indirect positional relationship. Moreover, the various tasks and process steps described herein may be integrated into a more comprehensive program or process with additional steps or functions not described in detail herein.

[0036] One or more of the methods described herein can be implemented using any of the following technologies or a combination of the following technologies known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application-specific integrated circuits (ASICs) having appropriate combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.

[0037] For the sake of brevity, conventional techniques related to the manufacture and use of the present invention may or may not be described in detail herein. In particular, various aspects of computing systems and specific computer programs for implementing the various technical features described herein are well known. Accordingly, for the sake of brevity, many conventional implementation details are only briefly mentioned herein or omitted entirely without providing details of well-known systems and / or processes.

[0038] In some embodiments, various functions or actions can be performed at a given location and / or in conjunction with the operation of one or more devices or systems. In some embodiments, a portion of a given function or action can be performed at a first device or location, and the remainder of the function or action can be performed at one or more additional devices or locations.

[0039] The terms used herein are for the purpose of describing specific embodiments only and are not intended to be limiting. As used herein, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should be further understood that when used in this specification, the terms "comprises" and / or "comprising" specify the presence of stated features, integers, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or combinations thereof.

[0040] The corresponding structures, materials, actions, and equivalents of all means or steps plus function elements in the claims below are intended to include any structure, material, or action for performing a function in conjunction with other claimed elements specifically claimed. The present disclosure has been presented for purposes of illustration and description, but the disclosure is not intended to be exhaustive or limited to the disclosed forms. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and substance of the present disclosure. The embodiments are selected and described to best illustrate the principles and practical applications of the present disclosure, and to enable those of ordinary skill in the art to understand the various embodiments of the present disclosure and the various modifications suitable for the specific use contemplated.

[0041] The diagrams depicted here are illustrative. Without departing from the essence of the present disclosure, there may be multiple variations of the diagrams or steps (or operations) described here. For example, actions can be performed in different orders or actions can be added, deleted or modified. In addition, the term "coupled" describes a direct connection between two elements with a single path and does not imply a direct connection without intermediate elements / connections between the elements. All of these variations are considered part of the present disclosure.

[0042] The following definitions and abbreviations are used to interpret the claims and specification. As used herein, the terms "comprises," "comprising," "includes," "including," "has," "having," "contains," or "containing," or any other variation thereof, are intended to cover non-exclusive inclusion. For example, a composition, mixture, process, method, article, or apparatus that includes a list of elements is not necessarily limited to only those elements but can include other elements not expressly listed or inherent to the composition, mixture, process, method, article, or apparatus.

[0043] Additionally, the term "exemplary" as used herein means "serving as an example, instance, or illustration." Any implementation or design described herein as "exemplary" is not necessarily to be considered preferred or superior to other implementations or designs. The terms "at least one" and "one or more" should be understood to include any integer greater than or equal to one, i.e., one, two, three, four, etc. The term "plurality" should be understood to include any integer greater than or equal to two, i.e., two, three, four, five, etc. The term "connected" can include both indirect "connections" and direct "connections."

[0044] The terms "about," "substantially," "approximately," and variations thereof are intended to include the degree of error associated with the measurement of a particular quantity, based on the equipment available at the time of filing this application. For example, "about" can include a range of ±8%, or 5%, or 2% of a given value.

[0045] The present invention may be a system, method, and / or computer program product at any possible level of technical detail integration. The computer program product may include a computer-readable storage medium (or media) having computer-readable program instructions thereon for causing a processor to execute various aspects of the present invention.

[0046] A computer-readable storage medium may be a tangible device that retains and stores instructions for use by an instruction execution device. For example, a computer-readable storage medium may be, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above devices. A non-unique list of more specific embodiments of a computer-readable storage medium includes: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device (such as a punch card or a raised structure in a groove with instructions recorded thereon) and any suitable combination of the above devices. As used herein, a computer-readable storage medium should not be considered as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated by a waveguide or other transmission medium (e.g., a light pulse passing through a fiber optic cable) or an electrical signal sent by a wire.

[0047] The computer readable program instructions described herein can be downloaded from the computer readable storage medium to the corresponding computing / processing device or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network may include copper transmission cables, optical transmission fibers, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer readable program instructions from the network and forwards the computer readable program instructions for storage in the computer readable storage medium in the corresponding computing / processing device.

[0048] The computer-readable program instructions for performing the operation of the present invention can be assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, configuration data for integrated circuits, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and process programming languages, such as "C" programming language or similar programming languages. The computer-readable program instructions can be executed completely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on a remote computer, or executed completely on a remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, by using the Internet of an Internet service provider). In some embodiments, for example, the electronic circuit including a programmable logic circuit, a field programmable gate array (FPGA) or a programmable logic array (PLA) can perform computer-readable program instructions by utilizing the state information of the computer-readable program instructions to personalize the electronic circuit, to perform various aspects of the present invention.

[0049] Various aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each block diagram in the flowchart illustration and / or block diagram and the combination of block diagrams in the flowchart illustration and / or block diagram can be implemented by computer-readable program instructions.

[0050] These computer-readable program instructions may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device establish a manner for implementing the functions / actions specified in the flowchart and / or one or more block diagrams. These computer-readable program instructions may also be stored in a computer-readable storage medium capable of directing a computer, a programmable data processing device, and / or other equipment to function in a specific manner, so that a computer-readable storage medium having instructions stored therein includes an article of manufacture containing such instructions, i.e., implementing various aspects of the functions / actions specified in the flowchart and / or one or more block diagrams.

[0051] Computer-readable program instructions may also be loaded into a computer, other programmable data processing apparatus, or other device to cause a series of operational steps executed on the computer, other programmable apparatus, or other device to generate a computer-implemented process, so that the instructions executed on the computer, other programmable apparatus, or other device implement the functions / actions specified in the flowchart and / or one or more block diagrams.

[0052] The flowchart and block diagram in the figure show the architecture, function, and operation of the possible implementation of the system, method and computer program product according to each embodiment of the present invention. In view of this, each block diagram in the flowchart or block diagram can represent a part of a module, section or instruction, which includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the block diagram may not be completed in the order marked in the figure. For example, in fact, according to the functions involved, the two block diagrams shown in succession can be executed roughly at the same time, or the block diagram can be executed in the opposite order sometimes. It should also be noted that each block diagram in the block diagram and / or the flowchart example and the block diagram combination in the flowchart example can be realized by a dedicated hardware-based system that performs a specific function or action or completes a combination of dedicated hardware and computer instructions.

[0053] The description of various embodiments of the present invention has been presented for illustrative purposes, however, the description of each embodiment is not intended to be exhaustive or limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein are selected to best illustrate the principles of the embodiments, practical applications, or technical improvements to the technology found in the marketplace or to enable those of ordinary skill in the art to understand the embodiments described in the present invention.

Claims

1. A computer-implemented method for simulating an industrial system, include: determining, by a processor, an aspect comprising one of a hardware configuration aspect, an execution semantic aspect, and a communication architecture aspect applied to a generic model of the industrial system by using aspect-oriented programming techniques, the generic model comprising a programmable logic controller (PLC) model and a system model; applying the determined aspects to the generic model using the aspect-oriented programming technique; and simulating the industrial system using the generic model and the applied aspects, wherein the hardware configuration aspects are capable of specifying characteristics of the physical hardware of the simulated PLC and applying the characteristics to the PLC model to simulate the execution of PLC control code in a specific industrial system using the generic model, and Among them, the aspect-oriented programming technology combined with PLC simulation implementation adds additional behaviors to existing code without modifying the existing code, making it possible to specify the code modified using the aspect-oriented programming technology via pointcut specifications, thereby allowing the PLC model to be used to simulate behaviors that are not core to the specific usage scenarios and high-level functions of the deployed PLC without disrupting the code of the PLC model.

2. The method according to claim 1, in, The aspects include hardware configuration aspects, and wherein determining the aspects including the hardware configuration aspects includes determining a hardware configuration of the PLC applied to the PLC model.

3. The method according to claim 2, in, The hardware configuration aspects include execution times of program components of control code executed on the PLC based on the hardware configuration of the PLC.

4. The method according to claim 1, in, The aspects include execution semantics aspects, and wherein determining the aspects including the execution semantics aspects includes determining a real-time execution principle applied to the PLC model, wherein the real-time execution principle includes one of time-driven execution and event-driven execution.

5. The method according to claim 1, in, The aspects include communication architecture aspects, and wherein determining the aspects including the communication architecture aspects includes determining a corresponding port of a PLC associated with one of a sensor signal and a command signal of the industrial system.

6. The method according to claim 1, in, The aspects include communication architecture aspects, and wherein determining the aspects including the communication architecture aspects includes: determining one or more communication types used between the PLC and system elements of the industrial system, wherein the one or more communication types include one or more of Industrial Ethernet, Process Field Network (PROFINET), Process Fieldbus (Profibus), Ethernet for control automation technology (Ethercat), backplane bus, time-sensitive network (TSN), and input-output (IO) links.

7. The method according to claim 1, further comprising one of the following: deploying control code to a PLC of the industrial system based on the simulation; and A configuration of the industrial system is modified based on the simulation.

8. A system for simulating an industrial system, include: a memory having computer readable instructions; as well as One or more processors configured to execute the computer-readable instructions, the computer-readable instructions controlling the one or more processors to perform operations, the operations comprising: determining an aspect including one of a hardware configuration aspect, an execution semantic aspect, and a communication architecture aspect applied to a generic model of an industrial system by using aspect-oriented programming techniques, the generic model including a programmable logic controller (PLC) model and a system model; applying the determined aspects to the generic model using the aspect-oriented programming technique; and simulating the industrial system using the generic model and the applied aspects, wherein the hardware configuration aspects are capable of specifying characteristics of the physical hardware of the simulated PLC and applying the characteristics to the PLC model to simulate the execution of PLC control code in a specific industrial system using the generic model, and Among them, the aspect-oriented programming technology combined with PLC simulation implementation adds additional behaviors to existing code without modifying the existing code, making it possible to specify the code modified using the aspect-oriented programming technology via pointcut specifications, thereby allowing the PLC model to be used to simulate behaviors that are not core to the specific usage scenarios and high-level functions of the deployed PLC without disrupting the code of the PLC model.

9. The system according to claim 8, in, The aspects include hardware configuration aspects, and wherein determining the aspects including the hardware configuration aspects includes determining a hardware configuration of the PLC applied to the PLC model.

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