Self-learning routine for compatibility check

By receiving the evaluation of the data processing device in the planning tool and training the check routine, the machine learning algorithm is used to solve the problem of control program name compatibility check, enabling early identification of errors, reducing transmission errors, improving transmission efficiency, and providing easy Understand corrective instructions.

CN114174936BActive Publication Date: 2024-10-15SIEMENS AG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980098698.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-07-24
Publication Date
2024-10-15
Estimated Expiration
2039-07-24

AI Technical Summary

Technical Problem

In facility planning, when control programs are transferred from planning tools to data processing units, error reports are frequent due to incompatible names, making transfers time-consuming and labor-intensive, and existing inspection routines struggle to achieve integrity and stability over time. Rules change and become ineffective.

Method used

The planning tool automatically adjusts the inspection criteria by receiving evaluations from the data processing device and retraining the inspection routine so that it gradually learns compatibility, using machine learning algorithms such as neural networks and stochastic gradient descent classifiers, reducing the need for programmer adjustments. and pre-trained inspection routines in learning mode.

Benefits of technology

Name incompatibilities are efficiently identified and corrected, transmission errors are reduced and transmission efficiency is improved, checking routines are gradually improved over time, easy-to-understand error reports are provided, and the need for rule qualification and programmer intervention is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114174936B_ABST
    Figure CN114174936B_ABST
Patent Text Reader

Abstract

A control program (2) for an industrial control device (3) is created with the aid of a planning tool (1). The control program (2) comprises program data (P) to which a name (N) is assigned by the planning tool (1) based on a corresponding presetting (V) by an operator (4) of the planning tool (1), based on which the program data (P) is personalized with respect to other program data of the control program (2). After the control program has been created, the control program (2) is transferred from the planning tool (1) to a data processing device (5). Beforehand, the planning tool (1) checks the compatibility of the names (N) of the program data (P) of the control program (2) with the data processing device (5) with the aid of a checking routine (9). If the planning tool (1) detects an incompatibility with the aid of the checking routine (9), a corresponding error report (F) is output to the operator (4). In other cases, no report is output to the operator (4) or a report (OK) is output to the operator without detecting an erroneous content. The planning tool (1) receives an evaluation (B) of a control program (2) from a data processing device (5) and retrains a check routine (9) based on the corresponding control program (2) and the received evaluation (B), so that the check routine (9) gradually learns which names (N) of the program data (P) are compatible with the data processing device (5).
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method for operating a planning tool.

[0002] - wherein a control program for an industrial control device is created with the aid of a planning tool,

[0003] - wherein the control program comprises program data,

[0004] wherein the planning tool assigns a name to the program data based on a corresponding specification by an operator of the planning tool, based on which name the program data are personalized with respect to other program data of the control program,

[0005] wherein, after the control program has been created, the control program is transferred from the planning tool to the data processing device,

[0006] wherein the planning tool checks the names of the program data of the control program for compatibility with the data processing device by means of a checking routine before the control program is transferred to the data processing device,

[0007] In this case, whenever the planning tool detects an incompatibility with the aid of the checking routine, the planning tool outputs a corresponding error message to the operator, and whenever no incompatibility is detected with the aid of the checking routine, no message is output to the operator or a message is output to the operator indicating that no error content was detected. Background Art

[0008] In facility planning, various planning tools are often used. A planning tool in the sense of the present invention is a computing device, such as a personal computer (PC), which processes programs created in the form of software, so that control programs for industrial control devices are created by means of the computing device.

[0009] In order to be able to create corresponding control programs efficiently and with high quality, data are first created with the aid of a first planning tool and then transferred to a second planning tool. Further processing is carried out with the aid of the second planning tool using the control programs, for example creating further control programs. The first planning tool is a planning tool within the meaning of the present invention, the second planning tool is a data processing device within the meaning of the present invention. A typical example of a first planning tool is the so-called facility planning tool COMOS, a typical example of a second planning tool is SIMATIC PCS 7.

[0010] The interface between the planning tool (or between the planning tool and the data processing device) is subject to boundary conditions regarding the data to be transmitted. Thus, for example, there can be different restrictions on the length of the name and / or the characters permitted in the name. For example, the planning tool can allow names with a length of up to 15 characters, where uppercase and lowercase letters as well as numbers and spaces are permitted as individual characters. Likewise, the data processing device can allow names with a length of up to 10 characters, where only uppercase letters and numbers are permitted as individual characters, for example.

[0011] If the names assigned by the planning tool during the creation of the control program are incompatible with the names permitted by the data processing device, the transfer of the control program to the data processing device can result in errors there. A corresponding error report is sent to the planning tool. The names must then be reassigned on the part of the planning tool so that they correspond to the restrictions of the data processing device. The correspondingly modified control program must then be transferred to the data processing device again. This is very time-consuming and, moreover, laborious.

[0012] In order to ensure an orderly transfer right from the outset, a check routine can be implemented in the planning tool, by means of which the names of the program data of the control program are checked for compatibility with the data processing device before the control program is transferred to the data processing device.

[0013] In pure theory, it is possible to create a complete code for such a checking routine. However, in practice, it has proven to be very difficult and requires considerable effort to achieve the completeness of such a code. The reason for this can be, for example, that the limitations of the data processing device are usually only incompletely documented and / or disclosed. The reason for this can also be that the code is very complex and can only be fully implemented at unreasonably high effort. The code can also change over time.

[0014] In practice, such guidelines are therefore always incomplete, so that errors repeatedly occur when the control program is transferred from the planning tool to the data processing device, which errors the operator then has to eliminate with great effort. Summary of the invention

[0015] The object of the present invention is to create an operating method for a planning tool in which the names of program data of a control program can be checked within the planning tool with reasonable effort for compatibility with a data processing device to a good to very good degree.

[0016] This object is achieved by an operating method having the features of the invention. Advantageous embodiments of the operating method are the subject matter of the invention.

[0017] According to the invention, an operating method of the type mentioned at the outset is thus provided:

[0018] - the planning tool receives an evaluation of the control program from the data processing device, and

[0019] The planning tool retrains the check routine based on the corresponding control program and the received evaluation, so that the check routine gradually learns which names of the program data are compatible with the data processing device.

[0020] Thus, the planning tool can gradually learn with the help of the checking routine which names of the program data are allowed and which are not. Without changing such a rule, the checking routine becomes better and better over time. If the rule changes, a temporary deterioration occurs. However, due to the fact that the checking routine gradually learns which names of the program data are compatible with the data processing device, improvements are automatically made here again over time - especially without the programmer actively recompiling the checking routine.

[0021] The inspection routine is also based on machine learning methods. However, it is possible to do without the explicit application of inspection algorithms that have to be constantly adjusted by programmers.

[0022] Such machine learning is generally known to those skilled in the art. In machine learning, a large amount of exemplary data, so-called training data, and associated evaluations are predetermined for the corresponding routine. As a result, the routine automatically determines criteria according to which the routine later evaluates the predetermined data. Merely by way of example, neural networks, multinomial naive Bayes classifiers, and stochastic gradient descending classifiers can be mentioned. In particular, the two last-mentioned classifiers are particularly suitable for incremental learning and thus for continuously improving the inspection routines during normal operation of the planning tool.

[0023] Preferably, the planning tool has already checked the names of the program data of the control program during the pre-determining of the names by the operator. Thus, corrective measures can be taken immediately when the names are pre-determined by the operator.

[0024] In some cases, the evaluation of the control program transmitted by the data processing device to the planning tool is purely binary (control program runs normally or control program does not run normally). However, there is usually a more detailed classification, such as an indication of whether the individual names are compatible. Alternatively or additionally, in the case of a control program not running normally, a classification according to the error type can also be made. In the last-mentioned case, each time an error report is output to the operator, the planning tool can request a text explaining the error report from the operator and assign this text to the error report. If the predetermined name is subsequently identified as incompatible for the same reason, the user can be immediately informed of the nature of the incompatibility through this process.

[0025] The check routine can be "completely ignorant" when it is first executed. Alternatively, however, the planning tool can also execute the steps of the operating method mentioned so far during normal operation. In this case, the planning tool can predetermine a large number of control programs and corresponding evaluations of the corresponding control programs in a learning mode.

[0026] The planning tool can thus be trained in a learning mode on the basis of a predetermined control program and the associated predetermined evaluations for the test routine. The learning mode can in particular be carried out in advance, i.e. before the first execution of normal operation. The learning mode can also be used at a later point in time. In contrast to normal operation, in the learning mode the control program is not transferred to the data processing device. Usually, the control program is also not created, but is already provided and known elsewhere. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The above-mentioned characteristics, features and advantages of the present invention and the manner and method of achieving them will become clearer and easier to understand in conjunction with the following description of the embodiments explained in more detail in connection with the accompanying drawings. Here, the schematic diagram shows:

[0028] Figure 1 A planning tool and a data processing device are shown. DETAILED DESCRIPTION

[0029] according to Figure 1 A control program 2 for an industrial control device 3, such as a programmable logic controller, is to be created with the aid of a planning tool 1. The planning tool 1 can be, for example, a conventional, appropriately programmed computer, in particular a PC or a workstation.

[0030] In order to create the control program 2, the planning tool 1 receives a specification V from the operator 4. As is known, the specification V determines, on the one hand, which functions should be implemented with the help of the control program 2. In order to determine the functions, the operator 4 defines the blocks and units of the control program 2, with the help of these blocks and units to implement the functions. These blocks and units are the program data P of the control program 2. On the other hand, the specification V determines the names N of the blocks and units. With the help of the names N, the blocks and units, that is, the program data P, are personalized with respect to other program data of the control program 2, so that the blocks defined by the corresponding names N or the units defined by the corresponding names N are specifically manipulated by the planning tool 1 based on the corresponding specifications V of the operator 4. Therefore, according to the specifications V of the operator 4, the planning tool 1 assigns the corresponding names N to the corresponding blocks and units (or program data P).

[0031] After the control program 2 has been created, it is transferred from the planning tool 1 to the data processing device 5. The data processing device 5 can be - like the planning tool 1 - for example a conventional, correspondingly programmed computer, in particular a PC or a workstation. The control program 2 is used by the data processing device 5. For example, modifications of the control program 2 can be made. Alternatively or additionally, taking into account the control program 2, further programs 6 can be created, for example programs for operating systems and monitoring systems of a control room 7, by which the installation 8 controlled by means of the control program 2 is monitored.

[0032] The names N of the program data P are subject to restrictions. This applies both to the planning tool 1 and to the data processing device 5. In other words: In order for the planning tool 1 to be able to correctly process the program data P of the control program 2, which are individualized by their respective names N, the respective names N must satisfy the restrictions of the planning tool 1. Likewise, the respective names N must satisfy the restrictions of the data processing device 5, in order for the data processing device 5 to be able to correctly process the program data P of the control program 2, which are individualized by their respective names N.

[0033] The planning tool 1 can easily be aware of the limitations of the planning tool 1. In particular, the limitations can already be checked by the planning tool 1 during the reservation of the name N by the operator 4.

[0034] In order to comply with the restrictions of the data processing device 5, the planning tool 1 checks the compatibility of the name N of the program data P of the control program 2 with the data processing device 5 by means of the checking routine 9. If the planning tool 1 recognizes incompatibility by means of the checking routine 9, the planning tool 1 outputs a corresponding error report F to the operator 4. The error report F at least indicates which names N are recognized as incompatible. If necessary, the error report F can also indicate which types of errors are, such as "character length is too large" and / or "use of unallowed characters" and / or "name has been assigned elsewhere". Based on the error report F, the operator 4 can change the name N recognized as incompatible accordingly. On the contrary, if the planning tool 1 does not recognize any incompatibility by means of the checking routine 9, the planning tool 1 does not output a report to the operator 4 or the planning tool 1 outputs a report OK to the operator 4, that is, the planning tool 1 does not recognize an error.

[0035] The planning tool 1 performs a compatibility check of the control program 2 before the planning tool 1 transfers the control program 2 to the data processing device 5. As a result, the planning tool 1 only easily transfers the control program 2 to the data processing device 5 if the planning tool 1 has not previously identified any incompatibilities using the checking routine 9.

[0036] The data processing device 5 itself also checks on its part whether the name N of the program data P of the control program 2 meets the restrictions of the data processing device 5. Based on this check, the data processing device determines the evaluation B. The type and structure of the evaluation B can correspond to the error report F. The data processing device outputs the evaluation B to the planning tool 1, which receives the evaluation B on its part. Based on the control program 2, that is, the control program 2 transmitted to the data processing device 5, and the evaluation B, the planning tool 1 retrains the check routine 9. Therefore, the planning tool 1 adjusts the check routine 9. The check routine 9 is constructed according to the type of learning algorithm. The corresponding algorithms are generally known to those skilled in the art. Based on the design scheme as a learning algorithm, the check routine 9 gradually learns which names N of the program data P are compatible with the data processing device 5.

[0037] The planning tool 1 can execute the check routine 9 directly only before the control program 2 is transferred to the data processing device 5. In this case, the control program 2 is first completely created and only then the compatibility of the name N of the program data P is checked. Preferably, however, the planning tool 1 already checks the name N of the program data P of the control program 2 during the pre-determination of the name N by the operator 4. If a name N is pre-determined which is recognized as incompatible, the check routine 9 is therefore continuously executed in the background by the planning tool 1 during the pre-determination of the name N of the program data P and the check routine intervenes immediately.

[0038] The name N can be compatible with the data processing device 5, although it is classified as incompatible by the check routine 9. For example, the operator 4 can know that the restrictions of the data processing device 5 have changed, so that the previously incompatible name N is now compatible. In this case, the check routine 9 generates an error report F, although there is no incompatibility. In order to also take this situation into account, when the check routine 9 recognizes an incompatibility, the transfer of the control program 2 to the data processing device 5 is preferably also allowed. This transfer can be carried out as required, unconditionally or only based on the explicit confirmation of the operator 4. However, based on the evaluation B, the planning tool 1 recognizes that there is no incompatibility identified with the help of the check routine 9. The planning tool 1 can take this fact into account and retrain the check routine 9 accordingly.

[0039] The test routine 9 can be retrained after each individual transfer of a control program 2. However, in many cases it is useful to first store a certain number of transferred control programs 2 and associated evaluations B in the table 10 and then retrain the test routine 9 only when there are enough pairs of control programs 2 and associated evaluations B stored in the table 10. The number of pairs can be determined appropriately and can be, for example, in the range of two or three digits.

[0040] As mentioned above, the error report F can indicate what type of error has occurred. The check routine 9 may not have identified such information in advance. However, the corresponding information can be assigned to the error report F. For example, whenever the error report F is output to the operator 4, the planning tool 1 can request the text T from the operator 4 and - as long as the operator 4 predetermines the corresponding text T - assign the text T to the error report F. The error report F can be explained with the help of the text T. Thus, the error report F can be assigned to a plain text that is easy for the operator 4 to understand, such as the possible text T "character length is too large" and "use of unallowed characters" mentioned above. If the same error occurs again at a later point in time, the error report F can be output together with the text T.

[0041] The operation of the planning tool 1 described so far corresponds to the normal operation of the planning tool 1. The planning tool 1 can be operated only in this normal operation. In this case, the check routine 9 is initially "ignorant" and does not recognize any incompatibilities at first, but the check routine gradually learns and thus becomes "better". Alternatively, a learning mode can be implemented. The learning mode is performed outside the normal operation. In the learning mode, a large number of control programs 2' and evaluations B' of the control programs 2' are predetermined for the planning tool 1. In particular, the control program 2' is therefore not created with the help of the planning tool 1. The evaluation B' is also not predetermined by the data processing device 5 based on the previous transmission of the control program 2' from the planning tool 1 to the data processing device 5. In addition, it can be predetermined via any input device 11. For example, the control program 2' and the associated evaluation B' can be written into the table 10 via the input device 11. According to the control program 2' and the associated evaluation B', the planning tool 1 - separated from the actual creation of the control program 2 - trains the check routine 9 in the learning mode.

[0042] In summary, the present invention therefore relates to the following facts

[0043] A control program 2 for an industrial control device 3 is created with the aid of a planning tool 1. The control program 2 comprises program data P, to which the planning tool 1 assigns a name N based on a corresponding presetting V by an operator 4 of the planning tool 1, based on which the program data P is personalized with respect to other program data of the control program 2. After the control program 2 has been created, it is transferred from the planning tool 1 to a data processing device 5. Beforehand, the planning tool 1 checks the compatibility of the names N of the program data P of the control program 2 with the data processing device 5 with the aid of a checking routine 9. If the planning tool 1 detects an incompatibility with the aid of the checking routine 9, a corresponding error report F is output to the operator 4. In other cases, no report is output to the operator 4 or a report OK is output to the operator without the detected error content. The planning tool 1 receives an evaluation B of the control program 2 from the data processing device 5 and retrains the checking routine 9 based on the corresponding control program 2 and the received evaluation B, so that the checking routine 9 gradually learns which names N of the program data P are compatible with the data processing device 5.

[0044] The invention has many advantages. In particular, errors or incompatibilities are identified at an early stage. The transfer of incompatible control programs 2 to the data processing device 5 is avoided or at least reduced to a minimum. If the limits of the data processing device 5 are changed, the check routine 9 initially works slightly worse. However, the check routine is also relearned here, so that the check routine 9 adjusts to the changed limits and learns these limits. The error report F can provide the operator 4 with easy-to-understand instructions for correcting the error. The definition of rules that must be implemented in the check routine 9, which is usually difficult, is eliminated.

[0045] Although the present invention has been illustrated and described in more detail by means of preferred embodiments, the present invention is not limited to the disclosed examples and a person skilled in the art can derive other variants therefrom without departing from the scope of protection of the present invention.

[0046] Reference Numbers List

[0047] 1 Planning Tools

[0048] 2,2' Control Program

[0049] 3 Industrial technology control devices

[0050] 4 Operator

[0051] 5 Data processing device

[0052] 6 Other programs

[0053] 7 Control Room

[0054] 8 Facilities

[0055] 9 Checking routines

[0056] 10 Table

[0057] 11 Input Devices

[0058] B, B' evaluation

[0059] F Error Reporting

[0060] N Name

[0061] OK Report

[0062] P Program Data

[0063] T Text

[0064] V Reservation

Claims

1. A method for operating a planning tool (1), -in, Creating a control program (2) for an industrial control device (3) using the planning tool (1), - wherein the control program (2) comprises program data (P), - wherein the program data (P) are assigned a name (N) by the planning tool (1) according to a corresponding specification (V) by an operator (4) of the planning tool (1), based on which the program data (P) are personalized with respect to other program data of the control program (2), wherein, after the creation of the control program, the control program (2) is transferred from the planning tool (1) to a data processing device (5), - wherein, before the control program (2) is transmitted to the data processing device (5), the planning tool (1) checks the compatibility of the names (N) of the program data (P) of the control program (2) with the data processing device (5) by means of a checking routine (9), - wherein, whenever an incompatibility is detected by means of the checking routine (9), the planning tool (1) outputs a corresponding error report (F) to the operator (4), and whenever no incompatibility is detected by means of the checking routine (9), no report is output to the operator (4) or a report (OK) is output to the operator indicating that no errors have been detected, wherein the planning tool (1) receives an evaluation (B) of the control program (2) from the data processing device (5), and - wherein the planning tool (1) retrains the check routine (9) based on the corresponding control program (2) and the received evaluation (B), so that the check routine (9) gradually learns which names (N) of the program data (P) are compatible with the data processing device (5).

2. The operating method according to claim 1, characterized in that: During the pre-determination of the name by the operator (4), the planning tool (1) has checked the name (N) of the program data (P) of the control program (2).

3. The operating method according to claim 1 or 2, characterized in that: Each time the error report (F) is output to the operator (4), the planning tool (1) requests a text (T) explaining the error report (F) from the operator (4) and assigns the text to the error report (F).

4. The operating method according to claim 1 or 2, characterized in that: The planning tool (1) executes the operating method in normal operation, so that in a learning mode a large number of control programs (2') and corresponding evaluations (B') of the corresponding control programs (2') are predefined for the planning tool (1), and so that in the learning mode the planning tool (1) trains the inspection routine (9) based on the predefined control programs (2') and the associated predefined evaluations (B').