Method and apparatus for commissioning updated applications of industrial automation devices
By introducing a proxy service and a local process data management system into the testing system, the problem of inconsistent data access between the application update version on the testing system and the production system was solved, achieving seamless application conversion and data consistency testing, and simplifying the commissioning process of industrial automation equipment.
Patent Information
- Application Number
- CN202211191313.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-09-29
- Filing Date
- 2022-09-28
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2042-09-28
AI Technical Summary
In the prior art, it is difficult to run updated versions of applications for industrial automation devices in parallel with production versions on test systems, especially due to the complexity and inconsistency of external data access, which makes testing difficult and data exchange cannot be automated.
By introducing a proxy service into the testing system and utilizing the local process data management system, read and write access to the process image data of the industrial controller is achieved. This ensures that the updated application can access data on the testing system in a consistent manner with the production system, and the reliability of the output values is checked by the monitoring device. Only after passing the check is the data released for production operation.
It enables updated applications to access data on the test system in a manner consistent with the production system, simplifies the testing process, ensures data consistency, and supports a seamless transition of applications from simulation to continuous operation.
Smart Images

Figure CN115878142B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a method for debugging updated applications of industrial automation devices according to the present invention, and an apparatus for debugging updated applications of industrial automation devices according to the present invention. Background Technology
[0002] The current control unit has a local process image, which the control unit can read and write. Control functions can use the data or values present in this process image. The data or values in the process image are specifically so-called I / O values, namely sensor data and actuator data.
[0003] External data, i.e., data that is not read / written via digital and analog inputs / outputs or via the typical bus of a control unit (such as Profinet), can only be imported into or output from an external application via an interface or protocol (such as OPC-UA), but is not a direct component of the local process image. In particular, process images of two different control units are not visible to each other and therefore cannot access each other. Therefore, external data must be manually entered into the local process image from the application. Typically, this requires stopping and then restarting the application involved.
[0004] Data can be exchanged between applications on different devices, for example via the OPC UA protocol, or via the S7 protocol in the case of a Siemens PLC (PLC = Programmable Logic Controller). This is done manually by the programmer during the engineering phase; it does not happen automatically or during runtime.
[0005] If an application needs to access data from a remote control unit, it must manually access the corresponding data channel. A locally available OPC UA server cannot do this automatically because it lacks client functionality. If a local OPC UA client exists, the data link or matching algorithm must be enabled manually.
[0006] A common thread in known solutions is that applications must access data from the locally available process image in different ways and methods, on the one hand, and external data on the other. Therefore, the application must always be set up and / or configured for external access. This is particularly important for existing applications (“brownfield” applications, “legacy” applications) and their subsequent updated versions, and is often only feasible in a complex or impossible manner. In the field of automation technology, production operations and simulations are typically separate.
[0007] The described limitations make testing updated versions of existing applications difficult, especially when a new version with so-called "live data" needs to be run in parallel with previous versions of the application on a separate test system. However, such testing is important because it allows for direct comparison of the behavior of existing and new versions, particularly so-called "release candidates" or "beta versions," which are completed versions that require final testing.
[0008] The version under test must typically access sensor data or process images of the production system using interfaces that have changed compared to the production version, so that the new version of the application under test differs from the existing version, at least in terms of the interface for accessing the process image or the specific API. In other words: the version under test is different from the later production version, which is generally unsuitable for testing. Up to this point, simulations of the final "release candidate" have typically been performed in advance, usually unrelated to production operations. Summary of the Invention
[0009] Therefore, one object of the present invention is to simplify application access to process images, especially external process images, so that a unified interface can be used for production runs of the application's test version as well as for running it in parallel.
[0010] A core idea for achieving this objective is to write or read sensor data acquired in the industrial automation system and residing in the process image of the industrial controller through local software, particularly through a so-called agent service (hereinafter referred to as "agent"), within a separate test system. Here, storage units (e.g., I / O values, variables, or registers) not yet belonging to the local process image of the test system are created or allocated there, preferably through a local process data management system, or at least registered in the local process data management system after creation. Thus, "external" data and values from the production system are available in the local process image of the test system without requiring changes to the production version or the version under test of the application. Another core idea of the invention involves transferring data generated by the application under test (primarily so-called actuator values) to the local process image of the production system, thereby enabling the application under test to attempt to gradually take over control of the industrial unit before it is ultimately adopted in the production system.
[0011] This objective is achieved, in particular, by the method according to the invention. Here, a method is proposed for debugging an updated application of an industrial automation device, wherein a first industrial controller having a first application includes at least one local process image having locally used process data, wherein the process data consists of multiple values, particularly values from sensors and / or actuators of the industrial automation device, wherein a local process data management system is provided for managing identifiers and storage addresses of these values, and wherein the first application exchanges information about the identifiers and storage addresses of the values with the local process data management system, and reads and / or writes these values into the at least one local process image by means of this information. Here, a test unit is provided with at least one additional process image and an additional process data management system, having an updated application, particularly a new version of the first application to be tested, wherein the updated application exchanges information about the identifiers and memory addresses of the values with the local process data management system of the test unit, and reads and / or writes these values into the at least one additional process image. To this end, proxy services are set up on the controller and test unit respectively, wherein the proxy services correspondingly perform communication with the local process data management system, and read and / or write these values in the corresponding local process images by means of the information exchanged therein, wherein the updated application executes in parallel with the first application, and wherein the values to be read by the updated application are read by the proxy service from at least one process image of the first controller and can be inserted into at least one other process image. Here, a monitoring device performs a check on at least one output value stored by the updated application in at least one process image of the test unit, wherein the updated application is only released for production operation after a successful check. With this method, the application under test can access the data accessed on the test system in the same way as it accesses locally available data in the process image of the production system later, without changing or reconfiguring the application for this purpose.
[0012] This objective is also achieved by an apparatus according to the invention, which is configured to perform the method. To this end, an apparatus is provided for debugging an updated application of an industrial automation device, wherein a first industrial controller having a first application includes at least one local process image having locally used process data, wherein the process data consists of a plurality of values, particularly values of sensors and / or actuators of the industrial automation device, wherein the first controller includes a local process data management system for managing identifiers and memory addresses of the values, and wherein the first application is configured to exchange information about the identifiers and memory addresses of these values with the local process data management system, and is designed to read and / or write these values in at least one local process image by means of this information. Here, the test unit is equipped with an updated application, specifically a new version of the first application to be tested, as well as at least one additional process image and another process data management system. The updated application is configured to exchange information about value identifiers and memory addresses with the test unit's local process data management system, and to read and / or write these values to the at least one additional process image. Agent services are respectively set on the controller and the test unit, which perform communication with the corresponding local process data management system and read and / or write these values to the corresponding local process image using the information exchanged therein. The updated application executes in parallel with the first application. A monitoring device is provided for checking at least one output value stored in the at least one process image of the test unit by the updated application. It is also proposed that the updated application is only released for production operation after a successful check. The advantages discussed above according to the method can be realized by this device.
[0013] Advantageous improvements to the method are described in detail in the various embodiments; their features and advantages also apply to the device according to the invention. Advantageous designs can also be combined with each other in an obvious manner.
[0014] In a first variant, the reliability of the output values generated by the updated application can be checked, particularly regarding whether they conform to preset standards or limits. In a particularly advantageous variant, at least one value written as an output value by the first application into the process image of the first controller is read from at least one process image of the first controller by an agent service and transmitted to a monitoring device, which then compares the output value of the first application with the corresponding output value of the updated application. For this purpose, the value read from the process image of the first controller is advantageously inserted into at least one other process image, after which the monitoring device accesses the value stored in the other process image for comparison. In one instance, if the difference determined in the comparison is lower than a predefined threshold in percentage or absolute value and optionally after a preset time, the updated application is transmitted to the first production controller as a candidate for use in production operation, where it is used in place of the original version of the application. For this purpose, when production operation is permitted, the monitoring device initiates the installation and startup of the updated application on the first controller, and facilitates the conversion from at least one output value of the first application to the corresponding output value of the newly installed and debugged updated application to operate the industrial automation device. Instead of monitoring differences in percentage or absolute deviations, more complex algorithms or rule sets can be used.
[0015] The updated application's access to values of sensor data, such as those of the first application or the production system, can be automatically configured. This is achieved by the following steps: when the updated application requests a locally unavailable value from the local process data management system of the test unit, in the first step, the process data management system forwards the request to a local agent service; in the second step, the local agent service forwards the request to the agent service of the first controller; in the third step, the agent service reads the value from the local process image of the first controller and forwards it to the agent service of the requesting test unit; in the fourth step, the agent service of the requesting test unit inserts the value into at least one local process image and registers the associated address information in the local process data management system; in the fifth step, the local process data management system responds to the updated application's request using the address information; and in the sixth step, the updated application accesses the value using the address information.
[0016] The programming interface or the interface used by the application to access the process image is advantageously standardized, wherein these interfaces of the application and the agent device are functionally indistinguishable. Therefore, it is advantageous for the agent device to encapsulate this interface in a separate application, thereby enabling different versions of the agent device created for different platforms to use the same interface of the application created for the same platform. For this purpose, local agent applications are instantiated separately via a local agent service, whereby the agent application accesses the corresponding local process image. Similarly, it is advantageous if each application communicates with the corresponding local process data management system of the controller via a unified application interface, and if the agent service communicates with the process data management system of the same controller via a functionally identical or identical application interface.
[0017] The proxy service advantageously utilizes the Internet Protocol to transmit requests and values. In particular, the proxy service advantageously communicates with each other using the OPC UA protocol, thereby enabling automatic configuration of data exchange between the first controller and the test system. Attached Figure Description
[0018] Embodiments of the method according to the invention are explained below with reference to the accompanying drawings. The same applies to the apparatus according to the invention.
[0019] This is shown here:
[0020] Figure 1 This is the initial state for explaining the problem.
[0021] Figure 2 It involves the provision of values from the process data management system in the production unit to the testing unit.
[0022] Figure 3 It is the provision of values by the application used for testing units, and
[0023] Figure 4 It is a test of the updated application in the test unit that runs in parallel with the application in the production unit. Detailed Implementation
[0024] Figure 1The initial state for the following explanation is shown. The first industrial controller ES, also referred to below as the production system or production unit, is shown on the right side of the diagram. The production unit ES includes a process data management system PDM_ES, which coordinates and manages the applications app1 and app2 running on the production unit ES, specifically their data flows and process images. The process data management system PDM_ES does not interfere with the actual data flow. Therefore, applications app1 and app2 directly access process images app1Shm and app2Shm. Here, access to so-called shared memory (“Shm”) is implemented, where applications that generate data write them to shared memory allocated to the corresponding application, representing the process image. Shared memory can be read and written system-wide on the respective platform. Applications that want to use (consume) this data receive information about the shared memory where this data resides through the process data management system. Application app2 reads the value light1 written by app1 in the process image (shared memory) app1Shm; application app2 needs this value to calculate the output variable light2. The process data management system conveys the knowledge of where light1 can be found. The double arrows symbolize the information exchange required between the applications and the process data management system. Conversely, application app2 provides data light2 (“written” is indicated by the prefix “p:” - “provided”); in this simple example, this data light2 is control information for the connected industrial process. For example, depending on how high the value of the “variable” light2 is, the connected light can have a brightness between 0% and 100%.
[0025] app2n (“app2 neu”) resides outside the production unit ES, running on a separate test system TE, and is designed to replace app2 used in the production unit after successful testing. For testing with applications app2 and app2n running in parallel as much as possible, the updated application app2n needs access to data light1 on the first controller ES (specifically application app1). This read access is indicated by the identifier “c:” (“consumed”).
[0026] Figure 2 This demonstrates how a user launches app2n on the test unit TE. The application app2n registers directly in the test unit TE's local process data management system PDM_TE, thereby triggering the production unit ES's process data management system PDM_ES. This will be explained later... Figure 3 To explain in more detail.
[0027] To this end, the process data management system PDM_ES of the production unit ES starts a so-called proxy service prxy_app_es (also known as a proxy unit) on the production unit ES. Here, the proxy service prxy_app_es starts in such a way that it reads the data light1 and light2 generated in the production unit ES and makes them "external" available via the IP communication interface (the arrow between unit TE and ES). For this purpose, the process data management system PDM_TE of the test unit TE transmits information about the "desired data" light1 and light2 to the process data management system PDM_ES of the production unit ES; this communication is conducted via the proxy devices prxy_app_te and prxy_app_es (see...). Figure 3 In addition, servers or "distributors" (not shown) can also be integrated into inter-unit communication. A monitoring device, the DEB (Debugging and Engineering System or simply "Debugger"), is also installed on the test unit (TE) and performs test control and evaluation. The Debugging and Engineering System is often also referred to as an "IDE" (Integrated Development Environment).
[0028] Figure 3 This diagram illustrates how the process data management system PDM_TE of the test unit TE starts the agent service prxy_app_te (the test unit's local agent application) on its side. The agent service prxy_app_te reads data light1 and light2 provided by the agent service prxy_app_es via an IP communication interface and writes them to the local process image prxy_TE_Shm (the agent service's shared memory); alternatively or additionally, data light1 can also be written to or copied to the process image app2nShm of the application app2n. Data light1 and light2 are registered in the process data management system PDM_TE by registering "variable names" and memory addresses, thus enabling access to the application app2n and the debugger or monitoring device DEB. However, data light2 from this memory prxy_TE_Shm is only consumed or read by the monitoring device or debugger DEB; later, this version of data light2 needs to be compared with the version from the application app2n in the memory app2nShm.
[0029] Data light1 and light2, along with their storage locations in the process image prxy_TE_Shm, are thus registered in the process data management system PDM_TE of the test unit TE, thereby forwarding the information of light1, which now exists locally on the test unit TE, to the consuming application app2n.
[0030] Figure 4The diagram illustrates how application app2n now reads data light1 from the process image prxy_TE_Shm of the proxy device prxy_app_te. Specifically, application app2n receives data light1 and prxy_app_te from application app1 via the intermediate access proxy application prxy_app_es from the production unit ES, and is thus able to perform tests using the "raw data," i.e., in particular, can compare the data light2 generated by applications app2 and app2n respectively, represented by triangles. Instead of comparison, the data light2 generated by application app2n can also be checked against fixed boundary values, etc. The updated data light2 generated by application app2n can also be sent back to the production unit ES via the proxy service or proxy applications prxy_app_es and prxy_app_te, where it is written to the process image app2Shm, so that in a further step, application app2n, still located on the test unit, takes over the tasks of the original application app2 (this process is not shown in the diagram for clarity). In the case of multiple generated output values, this can be implemented incrementally, where the user of the debugger DEB can individually set whether, when, and under what circumstances the "original" or updated value generated by the application will be used for the production run.
[0031] During this process, users have complete control over which data generated by the application app2n (such as actuator values) needs to be used in production runs, thanks to the user interface. This is achieved through the data structures of the proxy services prxy_app_es and prxy_app_te. Users can monitor the entire process at any time using the DEB testing or debugging tools; in particular, they can prevent unsuitable values from being used in production for reasons such as security.
[0032] In the final step (not shown), after a successful check, the updated application app2n is transferred to the production unit ES, where application app2 seamlessly switches to the new application app2n. It is now possible to stop the original application app2 and remove it from the production unit ES, as application app2n has fully taken over the tasks.
[0033] Therefore, this enables applications to be gradually transitioned from simulation / testing to continuous operation. While testing the application, users can choose to receive data into the production system, thus seamlessly rolling out the updated application gradually, with the ability to switch back to control values created by the original application at any time.
Claims
1. A method for debugging an updated application (app2n) of an industrial automation device. in, The first industrial controller (ES) with a first application (app2) includes at least one local process image (app1Shm, app2Shm) with process data used locally. The process data consists of multiple values. This includes setting up a local process data management system (PDM_ES) to manage value identifiers and memory addresses. The first application (app2) exchanges information about the identifier and memory address of a value with the local process data management system (PDM_ES) and reads and / or writes the value in at least one of the local process images (app1Shm, app2Shm) using the information. Its features are, The test unit (TE) is equipped with an updated application program (app2n), and at least one additional process image (app2nShm) and an additional process data management system (PDM_TE). The updated application program (app2n) exchanges information about value identifiers and memory addresses with the test unit's (TE) local process data management system (PDM_TE) and reads and / or writes values to at least one additional process image (app2nShm). Agent services are configured on the first controller (ES) and the test unit, respectively, wherein the agent services respectively perform communication with the corresponding local process data management systems (PDM_ES, PDM_TE) and read and / or write values in the corresponding local process images (app1Shm, app2Shm, app2nShm) by means of the information exchanged thereon. The updated application (app2n) executes in parallel with the first application (app2), wherein the values to be read by the updated application (app2n) are read by the proxy service from at least one process image (app1Shm, app2Shm) of the first controller and inserted into at least one additional process image (app2nShm). Specifically, a monitoring device (DEB) is used to perform an inspection of at least one output value in at least one process image (app2nShm) stored in the test unit (TE) by the updated application (app2n), and The updated application (app2n) is only allowed to be used for production operation after a successful check.
2. The method according to claim 1, characterized in that, At least one value written as an output value by the first application (app2) into the process image (app2Shm) of the first controller is read by the agent service from at least one process image (app1Shm, app2Shm) of the first controller (ES) and transmitted to the monitoring device. For verification, the monitoring device performs a comparison between the output value of the first application (app2) and the output value of the updated application (app2n).
3. The method according to claim 2, characterized in that, The value read from the process image (app1Shm, app2Shm) of the first controller (ES) is inserted into at least one other process image (app2nShm, prxy_TE_Shm), and the monitoring device (DEB) accesses the value stored in the other process image for comparison.
4. The method according to claim 2 or 3, characterized in that, If, during the comparison, the difference is determined to be below a predetermined threshold in terms of percentage or absolute value, the updated application (app2n) is set as a candidate for adoption into production operation.
5. The method according to any one of claims 1-3, characterized in that, When permitted for production operation, the monitoring device (DEB) initiates the installation and startup of the updated application (app2n) on the first controller (ES), and converts at least one output value of the first application (app2) to the corresponding output value of the newly installed and debugged updated application (app2n) to enable the operation of the industrial automation device.
6. The method according to any one of claims 1-3, characterized in that, When the updated application (app2n) requests address information of locally unavailable values from the local process data management system (PDM_TE) of the test unit (TE), In the first step, the process data management system (PDM_TE) forwards the request to the local proxy service. In the second step, the local proxy service will query the proxy service that forwards the request to the first controller (ES). In the third step, the proxy service reads values from the local process images (app1Shm, app2Shm) of the first controller (ES) and forwards the values to the proxy service of the requested test unit (TE). In the fourth step, the proxy service of the requested test unit inserts the value into at least one local process image (prxy_TE_Shm) and registers the assigned address information in the local process data management system (PDM_TE). In the fifth step, the local process data management system (PDM_TE) uses the address information to respond to the request from the updated application (app2n), and In the sixth step, the updated application (app2n) accesses the value using the address information.
7. The method according to any one of claims 1-3, characterized in that, A local proxy application is instantiated through at least one proxy service, wherein the proxy application for the proxy service performs access to a local process image.
8. The method according to any one of claims 1-3, characterized in that, Each application (app1, app2, app2n) communicates with the corresponding local process data management system (PDM_ES, PDM_TE) of the controller (ES) or the test unit (TE) via a unified application programming interface (API). The proxy services (prxy_app_te, prxy_app_es) communicate with the process data management system (PDM_ES, PDM_TE) of the same controller (ES) or test unit (TE) via functionally identical or consistent application programming interfaces.
9. The method according to any one of claims 1-3, characterized in that, The proxy service uses Internet Protocol to transmit requests and values.
10. The method according to claim 9, characterized in that, The proxy services communicate with each other using the OPC UA protocol.
11. The method according to claim 1, characterized in that, The process data consists of the values of the sensors and / or actuators of the industrial automation device.
12. The method according to claim 1, characterized in that, The test unit (TE) is equipped with a new version of the first application (app2) to be tested.
13. An apparatus for debugging an updated application (app2n) of an industrial automation device. in, The first industrial controller (ES) with a first application (app2) includes at least one local process image (app1Shm, app2Shm) with process data used locally. The process data consists of multiple values. The first controller (ES) includes a local process data management system (PDM_ES) for managing identifiers and memory addresses of values. The first application (app2) is configured to exchange information about value identifiers and memory addresses with the local process data management system (PDM_ES) and is designed to read and / or write values in at least one of the local process images (app1Shm, app2Shm) using the information. Its features are, The test unit (TE) is equipped with an updated application (app2n), and at least one additional process image (app2nShm) and an additional process data management system (PDM_TE). The updated application (app2n) is configured to exchange information about value identifiers and memory addresses with the test unit's local process data management system (PDM_TE) and to read and / or write values to at least one additional process image (app2nShm). Proxy services are configured on both the controller and the test unit. These proxy services are configured to perform communication with the corresponding local process data management systems (PDM_ES, PDM_TE) and, using the information exchanged therein, read and / or write values to the corresponding local process images (app1Shm, app2Shm, prxy_ES_Shm, prxy_TE_Shm). The updated application (app2n) and the first application (app2) are configured to be implemented in parallel, wherein the values to be read by the updated application (app2n) are at least partially read by the proxy service from at least one process image (app1Shm, app2Shm) of the first controller (ES) and inserted into at least one additional process image (prxy_TE_Shm, app2nShm). The system includes a monitoring device for checking at least one output value stored by the updated application (app2n) in at least one process image (prxy_TE_Shm, app2nShm) of the test unit (TE), and further includes a provision that the updated application (app2n) is only allowed to be used for production operation after a successful check.
14. The apparatus according to claim 13, characterized in that, The process data consists of the values of the sensors and / or actuators of the industrial automation device.
15. The apparatus according to claim 13, characterized in that, The test unit (TE) is equipped with a new version of the first application (app2) to be tested.
Citation Information
Patent Citations
Method for evaluating, an automation system, and a controller
CN101395577A
Data processing method, device and system, Nginx server and medium
CN111143417A
Publishing / subscribing protocol for real-time process control
CN112068495A
