Loop state determination method, device, system and electronic equipment
By creating target loops in the industrial control process and automatically determining the loop status using virtual devices and logical expressions, the problem of low efficiency in manually determining the loop status is solved, and fast and accurate calculation of automatic control rate and stability rate is achieved.
Patent Information
- Application Number
- CN202211502107.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-28
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2042-11-28
AI Technical Summary
In existing technologies, manually judging the working status of a circuit is labor-intensive and inefficient, and cannot quickly and accurately calculate indicators such as self-control rate and stability rate.
By creating a target loop, the loop state is automatically determined using virtual devices and logical expressions. This allows for the rapid identification of the conditions that the target loop must meet in the industrial control process, verification of the correctness of the condition settings, and generation of status information.
It enables rapid and accurate determination of loop status, improves work efficiency, accurately calculates automatic control rate and stability rate, and reduces the error rate and workload of manual operation.
Smart Images

Figure CN115840427B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of industrial automation, in particular to a loop state determination method, device, system and electronic equipment. BACKGROUND
[0002] With the development of industrial control, the requirement of control level of factory is continuously improved. In the industrial control process, it is usually necessary to judge the loop state in the process, and then calculate the self-control rate and stability rate of the control loop according to the loop state. These key indicators provide important reference for the safe operation, energy saving and efficiency improvement of production devices.
[0003] In the related art, it is necessary to frequently judge whether the loop working state is abnormal by manual operation, and frequently adjust the loop information participating in statistics, which has the technical problems of large workload and low efficiency.
[0004] At present, no effective solution has been proposed for the above problems. SUMMARY
[0005] Embodiments of the present application provide a loop state determination method, device, system and electronic equipment to at least solve the technical problems of large workload and low efficiency in the prior art when the loop working state is judged by manual operation.
[0006] According to an aspect of an embodiment of the present application, a loop state determination method is provided, comprising: creating a target loop, wherein the target loop is a loop in an industrial control process, and the target loop at least includes a virtual device corresponding to an entity device; in response to a first instruction of a target object, determining a condition met by the target loop in the industrial control process; in the case that the condition is verified to be correct, determining state information of the target loop according to the condition.
[0007] Optionally, creating the target loop comprises: in response to a first operation of the target object, determining virtual devices required by the target loop; and connecting the virtual devices to obtain the target loop.
[0008] Optionally, determining the condition met by the target loop in the industrial control process comprises: determining a first condition corresponding to each virtual device in the target loop, wherein the condition at least includes a bit number corresponding to the virtual device, a preset value corresponding to the virtual device, and a symbol connecting the bit number and the preset value; in the case that the number of the first conditions is greater than 1, determining a connector connecting the plurality of first conditions; and determining the condition met by the target loop in the industrial control process according to the first conditions and the connector.
[0009] Optionally, after determining the condition met by the target loop in the industrial control process, the method further comprises: verifying whether the setting of the condition is correct.
[0010] Optionally, the verification of whether the condition setting is correct comprises: obtaining an actual value range corresponding to each virtual device in the target loop; and generating a prompt information when the preset value of each virtual device is within the actual value range corresponding to each virtual device, wherein the prompt information is used to indicate that the condition setting is correct.
[0011] Optionally, after the prompt information is generated, the method further comprises: in response to a second instruction of the target object, configuring a condition met by other loops in the industrial control process, wherein the second instruction is used to copy the condition met by the target loop in the industrial control process to other loops for use, and the other loops are loops different from the target loop in the industrial control process; and in response to a third instruction of the target object, modifying the condition obtained by the other loops through copying.
[0012] Optionally, the determination of the state information of the target loop according to the condition comprises: obtaining a data value corresponding to a virtual device in the target loop; determining the state information of the target loop according to the data value and the condition corresponding to the target loop; obtaining valid data in the data value when the state information indicates that the target loop is in a start-up state; and evaluating the target loop according to the valid data.
[0013] According to another aspect of the embodiments of the present application, a loop state determination apparatus is further provided, comprising: a creating module configured to create a target loop, wherein the target loop is a loop in an industrial control process, and the target loop comprises at least one virtual device corresponding to an entity device; a first determining module configured to determine a condition met by the target loop in the industrial control process in response to a first instruction of a target object; and a second determining module configured to determine state information of the target loop according to the condition when the condition is verified to be correct.
[0014] According to still another aspect of the embodiments of the present application, a loop state determination system is further provided, comprising: a server and a display, wherein the server is configured to create a target loop, wherein the target loop is a loop in an industrial control process, and the target loop comprises at least one virtual device corresponding to an entity device; determine a condition met by the target loop in the industrial control process in response to a first instruction of a target object; and determine state information of the target loop according to the condition when the condition is verified to be correct; and the display is configured to display at least the state information of the target loop.
[0015] According to a further aspect of the embodiments of the present application, an electronic device is also provided, comprising: a memory for storing program instructions; a processor connected with the memory, for executing the program instructions to implement the following functions: creating a target loop, wherein the target loop is a loop in an industrial control process, and the target loop comprises at least one virtual device corresponding to an entity device; determining a condition met by the target loop in the industrial control process in response to a first instruction of a target object; and determining state information of the target loop according to the condition in a case where the condition is verified to be correct.
[0016] According to a further aspect of the embodiments of the present application, a nonvolatile storage medium is also provided, comprising a stored computer program, wherein a device in which the nonvolatile storage medium is located executes the loop state determination method by running the computer program.
[0017] In the embodiments of the present application, by creating a target loop, wherein the target loop is a loop in an industrial control process, and the target loop comprises at least one virtual device corresponding to an entity device; determining a condition met by the target loop in the industrial control process in response to a first instruction of a target object; and determining state information of the target loop according to the condition in a case where the condition is verified to be correct, the purpose of quickly determining the state information of the target loop according to the condition met by the target loop is achieved, thereby realizing the technical effect of improving work efficiency, and further solving the technical problems of large workload and low efficiency in the prior art when the loop working state is determined by manual judgment. BRIEF DESCRIPTION OF DRAWINGS
[0018] The accompanying drawings, which are included to provide a further understanding of the present application, constitute a part of the present application, and the illustrative embodiments of the present application and their description serve to explain the present application, and do not constitute improper limitations on the present application. In the drawings:
[0019] Figure 1 is a hardware structure block diagram of a computer terminal (or electronic device) for implementing the loop state determination method according to the embodiments of the present application;
[0020] Figure 2 is a flowchart of the loop state determination method according to the embodiments of the present application;
[0021] Figure 3a is an interface schematic diagram of expression configuration according to the embodiments of the present application;
[0022] Figure 3b is an interface schematic diagram corresponding to a copied expression according to the embodiments of the present application;
[0023] Figure 4 is a structure diagram of a loop state determination device according to the embodiments of the present application;
[0024] Figure 5a is a structure diagram of a loop state determination system according to an embodiment of the present application;
[0025] Figure 5b is a specific structure diagram of a loop state determination system according to an embodiment of the present application;
[0026] Figure 6 is a flow chart of a loop evaluation according to an embodiment of the present application. DETAILED DESCRIPTION
[0027] In order to make the personnel in the art better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work should belong to the scope of protection of the present application.
[0028] It should be noted that the terms "first", "second", and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or a chronological sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but can include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] First, some nouns or terms appearing in the process of explaining the embodiments of the present application are applicable to the following explanations:
[0030] Advanced controller: Advanced control is an optimization control strategy that takes process computer system (DCS\PLC\FCS) and host computer as implementation platform, takes conventional control as basis, takes entire production device or key unit as control object, and realizes high-performance control of large, complex, multivariable and constrained processes, such as model predictive control and intelligent control. The advanced controller is a set of computer programs running on the host computer.
[0031] Real-time database: (RTDB-Real Time DataBase) is a branch of database system development, which is a combination of database technology and real-time processing technology, which can directly collect and obtain various data in the running process of enterprises, and convert them into public information effective for various businesses. In the embodiments of the present application, the real-time database includes real position numbers and virtual position numbers.
[0032] Real position number: the position number in the industrial production process refers to the data monitoring point in the field.
[0033] Virtual position number: refers to the position number that does not correspond to the field entity data monitoring point.
[0034] PID: provides PID parameter tuning tool, optimizes PID parameter, and helps to improve the performance of control loop. Supports parameter tuning in online / offline multiple scenes, fully utilizes production process data, gives PID loop initial parameters, and at the same time adopts interactive tuning mode to realize real-time interaction, reduce the technical requirements of tuning work, improve software running efficiency and use range.
[0035] Loop: is the basic component of industrial control system. Control loop includes all the physical elements and control functions needed to automatically adjust the process variable (PV) to approach the target value (SV). Control loop includes process sensor, control function and final control element (FCE), all of which are needed for automatic control system.
[0036] Loop state: the working state of the basic component of the industrial control system, the physical element: start-up, shutdown, intermittent, etc.
[0037] Logical expression: a kind of logical formula for string operation, that is, a "rule string" composed of some specific characters defined in advance: greater than (>), less than (<), less than or equal to (< =), greater than or equal to (>=), equal to ( =), not equal to (<>) and combination of these specific characters, which is used to express a filtering logic for string.
[0038] The related technology frequently judges whether the loop working state is abnormal by manual operation, frequently adjusts the loop information participating in statistics, and calculates the automatic control rate and the stability rate after manually removing abnormal working condition data. Since it is difficult to calculate the automatic control rate and the stability rate of the PID control loop, the related technology has the problems that the automatic control rate and the stability rate and other index data cannot be quickly and accurately calculated, which greatly increases the workload of the line operators, and the efficiency is low, and the automatic control rate and the stability rate are not calculated accurately, such as forgetting to operate, misoperation, operation delay, forgetting to remove abnormal working condition data and other factors.
[0039] To solve the above problems, the embodiments of the present application provide corresponding solutions, which are described in detail below.
[0040] The loop state determination method embodiments provided by the embodiments of the present application can be executed in a mobile terminal, a computer terminal or similar computing device. Figure 1 A hardware structure block diagram of a computer terminal (or electronic device) for implementing the loop state determination method is shown. As shown in Figure 1 The computer terminal 10 (or electronic device 10) can include one or more processors (the processor can include but is not limited to a microprocessor MCU or a programmable logic device FPGA processing device), a memory 104 for storing data, and a transmission module 106 for communication functions. In addition, it can also include a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which can be included as one of the ports of the I / O interface), a network interface, a power supply and / or a camera. Those skilled in the art can understand that Figure 1 The structure shown is only schematic, which does not limit the structure of the above-mentioned electronic device. For example, the computer terminal 10 can include more or less components than those shown in Figure 1 or have a different configuration than Figure 1 shown.
[0041] It should be noted that the one or more processors and / or other data processing circuits described above can be referred to herein as "data processing circuits" in general. The data processing circuit can be embodied in whole or in part as software, hardware, firmware or any other combination. In addition, the data processing circuit can be a single independent processing module, or any one of the other elements combined into the computer terminal 10 (or electronic device) in whole or in part. As referred to in the embodiments of the present application, the data processing circuit as a kind of processor control (for example, the selection of the variable resistance terminal path connected with the interface).
[0042] The memory 104 can be used to store software programs of application software and modules, such as program instructions / data storage means corresponding to the loop state determination method in the embodiments of the present application, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, implements the loop state determination method described above. The memory 104 can include a high-speed random access memory, and can also include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some examples, the memory 104 can further include a memory remotely arranged with respect to the processor, which can be connected to the computer terminal 10 through a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0043] The transmission module 106 is used to receive or send data via a network. Specific examples of the above-mentioned network can include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission module 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to be able to communicate with the Internet. In one example, the transmission module 106 can be a radio frequency (Radio Frequency, RF) module, which is used to communicate with the Internet in a wireless manner.
[0044] The display can be, for example, a touch screen type liquid crystal display (LCD), which can enable a user to interact with the user interface of the computer terminal 10 (or electronic device).
[0045] It should be noted that, in some optional embodiments, the above-mentioned Figure 1 The computer device (or electronic device) shown can include hardware elements (including circuitry), software elements (including computer code stored on a computer readable medium), or a combination of both hardware and software elements. It should be noted that, Figure 1 is only one example of a particular implementation and is intended to illustrate the types of components that can be present in the above-mentioned computer device (or electronic device).
[0046] Under the above-mentioned operating environment, the embodiments of the present application provide a loop state determination method embodiment. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a group of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described herein can be executed in an order different from that shown.
[0047] Figure 2is a flowchart of a loop state determination method according to an embodiment of the present application, as shown in the figure, the method comprises the following steps: Figure 2
[0048] In step S202, a target loop is created, wherein the target loop is a loop in the industrial control process, and the target loop comprises at least one virtual device corresponding to an entity device.
[0049] In step S202, in order to facilitate the control of the entity production device, the virtual devices are usually configured in the corresponding control software, so that the connection relationship between the configured virtual devices is the same as the connection relationship between the entity production devices. After the virtual devices are configured, the target loop is determined according to different virtual devices, and the number of the target loop is at least one.
[0050] In step S204, a condition met by the target loop in the industrial control process is determined in response to a first instruction of a target object.
[0051] In step S204, the user sets the condition met by the target loop through the first instruction according to the created target loop. Specifically, since the target loop is composed of virtual devices corresponding to entity devices, the condition met by the entire target loop in the industrial control process can be determined by setting the conditions of the virtual devices in the target loop. It should be noted that the setting of the condition can be embodied by different logical expressions. For example, condition 1 corresponding to virtual device 1 is determined by logical expression 1, condition 2 corresponding to virtual device 2 is determined by logical expression 2, and so on. According to the conditions corresponding to all virtual devices in the target loop, the logical expressions corresponding to different virtual devices are connected by a connection symbol, and then the logical expression met by the target loop in the industrial control process can be determined.
[0052] In step S206, the state information of the target loop is determined according to the condition in the case where the condition is verified to be correct.
[0053] In step S206, after the condition met by the target loop is determined, that is, after the logical expression corresponding to the target loop is determined, the condition (or the logical expression) needs to be verified. After the verification is passed, it indicates that the condition setting in the target loop is successful, and then the state information of the virtual devices in the target loop can be determined according to the condition set in the target loop. The state information can indicate whether the virtual devices in the target loop are abnormal.
[0054] In the steps S202 to S206, after the target loop is created, the condition (i.e., the logical expression) of the virtual device in the target loop is set, and then the condition (or the logical expression) satisfied by the target loop is determined according to the condition corresponding to the virtual device, so that the long-term statistical automatic control rate and stability rate calculation requirements are met, the workload and error rate are reduced. The user inputs different forms of logical expressions for combination according to the characteristics of each loop (i.e., different conditions corresponding to the virtual devices in the loop), and the user only needs to configure the logical expression once. After the configuration is successful, the evaluation results of the PID performance evaluation product on the automatic control rate and the stability rate are improved, the automatic control rate and the stability rate are accurately calculated, the user can accurately locate the use of the production device, and thus the industrial control process is more convenient and efficient.
[0055] In the step S202 of the loop state determination method, the target loop is created, specifically including the following steps: in response to a first operation of a target object, determining the virtual devices required by the target loop; and connecting the virtual devices to obtain the target loop.
[0056] In the embodiments of the present application, the target object (i.e., the user) selects the virtual devices required in the target loop through the first operation, connects the selected virtual devices, and obtains a target loop.
[0057] In the step S204 of the loop state determination method, the condition satisfied by the target loop in the industrial control process is determined, specifically including the following processes: determining the first condition corresponding to each virtual device in the target loop, wherein the condition at least includes the bit number corresponding to the virtual device, the preset value corresponding to the virtual device, and the symbol connecting the bit number and the preset value; in the case where the number of the first conditions is greater than 1, determining the connector between the plurality of first conditions; and determining the condition satisfied by the target loop in the industrial control process according to the first condition and the connector.
[0058] In the step S204 of the loop state determination method, after the condition satisfied by the target loop in the industrial control process is determined, the method further includes the following step: verifying whether the setting of the condition is correct.
[0059] In the loop state determination method, verifying whether the setting of the condition is correct specifically includes the following steps: obtaining the actual value range corresponding to each virtual device in the target loop; and when the preset value of each virtual device is within the actual value range corresponding to each virtual device, generating a prompt information, wherein the prompt information is used to indicate that the condition setting is correct.
[0060] In the loop state determination method, after the prompt information is generated, the method further comprises: in response to a second instruction of the target object, configuring a condition met by the other loop in the industrial control process, wherein the second instruction is used to copy the condition met by the target loop in the industrial control process to the other loop for use, and the other loop is a loop different from the target loop in the industrial control process; and modifying the condition obtained by copying by the other loop according to a third instruction of the target object.
[0061] In the embodiments of the present application, the user can determine the first condition corresponding to each virtual device in the target loop according to the business requirement, i.e., set the logical expression corresponding to each virtual device in the target loop, which is composed of the bit number corresponding to the virtual device, the preset value corresponding to the virtual device, and the symbol used to connect the bit number and the preset value. Each virtual device corresponds to a bit number, for example, the bit number corresponding to the virtual device 1 is PIC1701.
[0062] In Figure 3a In the expression configuration interface shown in the figure, the user can maintain the logical expression data in the system interface according to the business requirement and input the corresponding data information.
[0063] Firstly, the bit number name corresponding to the virtual device is input, for example, the bit number PIC1701 corresponding to the virtual device 1 is input in the operation menu.
[0064] Secondly, the symbol is selected, and in the embodiments of the present application, the symbols supported by the system include greater than ( > ), less than ( < ), less than or equal to ( <= ), greater than or equal to ( >= ), equal to ( = ), and not equal to ( <> ).
[0065] Thirdly, the preset value corresponding to the virtual device is input, which is manually input by the user, for example, the preset value 1 is input.
[0066] Fourthly, the connector or conjunction word between the logical expressions corresponding to different virtual devices is selected, including and ( & ) and or ( || ).
[0067] Fifthly, the logical expression (referred to as expression, i.e., the first condition) corresponding to the virtual device is verified by clicking the "add" button to determine whether the first condition is input correctly, and the verification process can also verify whether the set logical expression is correct in logic, i.e., whether there is a contradiction between the expressions. The expression corresponding to the virtual device that passes the verification is displayed in the expression box in the middle of the interface shown in the figure and below the interface, and the previously set expression corresponding to the virtual device can be edited or deleted through the "edit" and "delete" buttons in the box below the interface. Figure 3a Figure 3a The interface displays the partially set expressions, such as: PIC1701>1&, PIC1701A<10&, PIC1741<=100&, PIC1741A>=10&, PIC1761=0||, PIC1841<=10&, PIC1841A>=1&, PIC1884<>6&, PIC1761<=20, and the complete expression composed of the above partial expressions is displayed in the expression box in the middle of the interface, and the complete expression is as follows:
[0068] PIC1701>1&PIC1701A<10&PIC1741<=100&PIC1741A>=10&PIC1761=0||PIC1841<=10&PIC1841A>=1&PIC1884<>6&PIC1761<=20
[0069] In the sixth step, if the expression corresponding to the virtual device is to be continuously added, the first step is returned to; if the expression is not to be continuously added, the next step is jumped to, and the expression in the loop is verified through the "expression verification" button.
[0070] In the seventh step, after the expression corresponding to each virtual device in the loop is set, the different expressions are connected by the connector, so that the complete expression corresponding to the target loop is obtained, and the complete expression indicates the condition met by the target loop in the industrial control process.
[0071] After the complete expression corresponding to the target loop is obtained, the complete expression is verified through the "expression verification" button, so as to determine whether the setting of the complete expression is correct and whether the configuration is successful.
[0072] In the eighth step, the complete expression is copied. First, it is determined whether the complete expression needs to be copied to other loops. If other loops need it, the complete expression can be copied to other loops for use by clicking the "copy expression" button in the interface. Figure 3a If other loops do not need the complete expression set in the target loop, the next step is jumped to.
[0073] If the user clicks the "copy expression" button, the interface as shown in Figure 3b is popped up. In the interface as shown in Figure 3b , the left side is different grouping structures, including flow, pressure, liquid level, temperature, mass, other grouping, etc. The basic information of the grouping on the right upper side includes name and description. It should be noted that root is the default root node of all groupings. In the interface as shown in Figure 3bIn the diagram shown, each loop corresponds to a loop name. Loops can be queried by name, or copied expressions can be applied to the selected loop based on its name. To simplify the operation, in Figure 3b There are two buttons: "Select All" and "Deselect All". Clicking the "Select All" button will select all circuits in the list, and clicking the "Deselect All" button will deselect the selected circuits in the list. Clicking the "OK" button will execute the corresponding copy operation, and clicking the "Cancel" button will cancel the copy operation.
[0074] Step 9, by clicking Figure 3a Clicking the "OK" or "Apply" button on the interface will apply the complete expression set for the target loop; clicking the "Cancel" button will disable the expression. Alternatively, you can click the "Previous" or "Next" button in the lower left corner of the interface to set the expression for the previous or next loop.
[0075] In step S206 of the above method for determining the state of a loop, determining the state information of the target loop based on conditions includes: acquiring the data value corresponding to the virtual device in the target loop; determining the state information of the target loop based on the data value and the conditions corresponding to the target loop; acquiring valid data from the data value when the state information indicates that the target loop is in operation; and evaluating the target loop based on the valid data.
[0076] In this embodiment of the application, the data value corresponding to the virtual device in the target loop is obtained, that is, the real-time data value of the tag number is read according to the tag number corresponding to the virtual device. The status information of the target loop is determined according to the logical expression corresponding to the target loop. The status information includes start-up and stop-up. When the status information indicates that the target loop is in the start-up state, the automatic control rate and stability rate are calculated by obtaining the valid data in the data value, and the target loop is evaluated.
[0077] In this embodiment, the formulas for the self-control rate and the stability rate are as follows:
[0078]
[0079]
[0080] Through the above steps, the purpose of quickly determining the state information of the target loop according to the condition met by the target loop can be achieved, so that the technical effect of improving work efficiency is realized. Compared with frequently judging whether the loop state is abnormal by manual, manually removing abnormal working condition data, and manually calculating the automatic control rate and the stability rate, the present application quickly and accurately judges whether the logical expression input by the user is correct by using the logical expression, so that the evaluation result of the PID performance evaluation product is improved, the automatic control rate and the stability rate are accurately calculated, the user can accurately locate the equipment usage, and the monitoring capability of the loop is greatly improved.
[0081] Figure 4 is a structural diagram of a loop state determination device according to an embodiment of the present application, as shown in the figure, the device comprises: Figure 4
[0082] The creating module 402 is configured to create a target loop, wherein the target loop is a loop in an industrial control process, and the target loop comprises at least one virtual device corresponding to an entity device;
[0083] The first determining module 404 is configured to determine a condition met by the target loop in the industrial control process in response to a first instruction of a target object.
[0084] The second determining module 406 is configured to determine state information of the target loop according to the condition in a case where the condition is verified to be correct.
[0085] In the creating module in the loop state determination device, the module is configured to create a target loop, and specifically includes the following process: in response to a first operation of a target object, determining a virtual device required by the target loop; and connecting the virtual device to obtain the target loop.
[0086] In the first determining module in the loop state determination device, the condition met by the target loop in the industrial control process is determined, and specifically includes the following process: determining a first condition corresponding to each virtual device in the target loop, wherein the condition at least includes a bit number corresponding to the virtual device, a preset value corresponding to the virtual device, and a symbol connecting the bit number and the preset value; in a case where the number of the first conditions is greater than 1, determining a connection symbol connecting the plurality of first conditions; and determining the condition met by the target loop in the industrial control process according to the first conditions and the connection symbol.
[0087] In the first determining module in the loop state determination device, the module is further configured to verify whether the setting of the condition is correct.
[0088] In the first determining module of the above-mentioned loop state determining device, the verification of whether the setting of the conditions is correct includes the following process: obtaining the actual value range corresponding to each virtual device in the target loop; when the preset value of each virtual device is within the actual value range corresponding to each virtual device, generating a prompt message, wherein the prompt message is used to indicate that the condition setting is correct.
[0089] In the first determining module of the aforementioned loop state determining device, the module is further configured to, in response to a second instruction from the target object, configure the conditions satisfied by other loops in the industrial control process, wherein the second instruction is used to copy the conditions satisfied by the target loop in the industrial control process to other loops for use, and the other loops are loops in the industrial control process that are different from the target loop; and to modify the conditions obtained by copying the other loops according to a third instruction from the target object.
[0090] In the second determining module of the aforementioned loop state determining device, the state information of the target loop is determined based on conditions, specifically including the following processes: acquiring the data value corresponding to the virtual device in the target loop; determining the state information of the target loop based on the data value and the logical relationship corresponding to the target loop; acquiring valid data from the data value when the state information indicates that the target loop is in operation; and evaluating the target loop based on the valid data.
[0091] It should be noted that, Figure 4 The circuit state determination device shown is used to perform Figure 2 The method for determining the loop state shown above is also applicable to the device for determining the loop state, and will not be repeated here.
[0092] Figure 5a This is a structural diagram of a loop state determination system according to an embodiment of this application, such as... Figure 5a As shown, the loop state determination system 500 includes: a server 502 and a display 504, wherein the server is used to create a target loop, wherein the target loop is a loop in an industrial control process, and the target loop includes at least one virtual device corresponding to a physical device; in response to a first instruction from the target object, it determines the conditions that the target loop meets in the industrial control process; if the conditions are verified to be correct, it determines the state information of the target loop based on the conditions; the display is used to at least display the state information of the target loop.
[0093] exist Figure 5bIn the schematic diagram of the system for determining the loop state, the server may include a first server 501, a second server 503, and a third server 505. The first server is a real-time database server used to read real-time data based on tag number information. The second server is used for configuration services, configuring and verifying logical expressions. The third server is an evaluation server that calculates the loop state based on the logical expression and the real-time tag number data. Finally, the results are displayed on a monitor 504, which includes the loop's result data and its state information.
[0094] It should be noted that, Figure 5a The system shown is used to determine the loop state. Figure 2 The method for determining the loop state shown above is also applicable to the system for determining the loop state, and will not be repeated here.
[0095] Figure 6 This is a flowchart of a loop evaluation according to an embodiment of this application, such as... Figure 6 As shown, to facilitate the control of physical production equipment, virtual devices typically need to be configured in the corresponding control software so that the connection relationships between the configured virtual devices are the same as those between the physical production equipment. After configuring the virtual devices, different loops are created based on the different loops formed by the different virtual devices. Different conditions can be set for virtual devices in different loops. These conditions can be set using the corresponding tag number of the virtual device. For example, if the tag number for virtual device 1 is PIC1701, then condition 1 for virtual device 1 is set to PIC1701>10; if the tag number for virtual device 2 is PIC1702, then condition 2 for virtual device 2 is set to PIC1702<100; if the tag number for virtual device 3 is PIC1703, then condition 3 for virtual device 3 is set to PIC1703>=20; if the tag number for virtual device 4 is PIC1704, then condition 4 for virtual device 4 is set to PIC1704<=98; if the tag number for virtual device 5 is PIC1705, then condition 5 for virtual device 5 is set to PIC1705<>10; and the condition for virtual device n is set to n. Different connectors are used to connect the conditions corresponding to different virtual devices. Figure 6In the shown schematic diagram, the conditions between condition 1 and condition 2, between condition 2 and condition 3, between condition 4 and condition 5, and between condition 5 and condition n are connected by the connection symbol “&”, and the conditions between condition 3 and condition 4 are connected by the connection symbol “||”. The conditions corresponding to different virtual devices in the same loop are connected by the connection symbol, and then the condition (i.e., the expression) corresponding to the loop is obtained. The conditions in the expression are all self-defined, and then the self-defined conditions (or expressions) are verified. When the condition verification is successful, the configuration ends, and the expression can take effect in the loop. If the verification fails, the step of setting the conditions needs to be returned to be reset until the configuration ends when the condition verification is successful.
[0096] After the configuration of different loops ends, the loops can be periodically evaluated. First, the loop to be evaluated is selected, the self-defined condition (i.e., the logical expression) corresponding to the loop is determined, the state of the loop is determined according to the condition corresponding to the loop, when the loop state indicates that the loop is in the startup state, the real-time data value read by the bit number corresponding to the virtual device in the loop is obtained, the valid data in the data value is obtained, and then the automatic control rate, the stable rate, and the operation rate are calculated to obtain the evaluation result, and the evaluation ends. When the loop state indicates that the loop is not in the startup state, the evaluation process ends.
[0097] The embodiments of the present application also provide a non-volatile storage medium including a stored computer program, wherein a device in which the non-volatile storage medium is located executes the following loop state determination method by running the computer program: creating a target loop, wherein the target loop is a loop in an industrial control process, and the target loop includes at least one virtual device corresponding to an entity device; in response to a first instruction of a target object, determining a condition met by the target loop in the industrial control process; and in a case where the condition is verified to be correct, determining state information of the target loop according to the condition.
[0098] The serial numbers of the above embodiments of the present application are only for description, and do not represent the advantages and disadvantages of the embodiments.
[0099] In the above embodiments of the present application, the description of each embodiment has its own emphasis, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.
[0100] In several embodiments provided in the present application, it should be understood that the disclosed technology can be implemented by other ways. Among them, the above-mentioned device embodiments are only schematic, for example, the division of the units can be a logical function division, and actual implementation can have another division mode, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed units can be indirect coupling or communication connection through some interfaces, units or modules, which can be electrical or other forms.
[0101] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e. they can be located in one place or distributed to multiple units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
[0102] In addition, the functional units in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.
[0103] The integrated unit, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application essentially or the part of the prior art or the whole or part of the technical solutions can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a plurality of instructions to make a computer device (which can be a personal computer, a server or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present application. The foregoing storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and various program codes that can be stored in the medium.
[0104] The above is only the preferred embodiment of the present application, and it should be pointed out that for ordinary skilled in the art, without departing from the principles of the present application, a number of improvements and refinements can be made, which should be considered as the protection scope of the present application.
Claims
1. A method of determining a state of a loop, characterized by, The method comprises the following steps: creating a target loop, wherein the target loop is a loop in an industrial control process, and the target loop comprises at least one virtual device corresponding to an entity device; in response to a first instruction of a target object, determining a condition met by the target loop in the industrial control process, wherein the condition is set by different logical expressions, and the logical expression of the target loop in the industrial control process is determined by connecting the logical expressions corresponding to all virtual devices in the target loop by a connecting symbol; in the case that the condition is verified to be correct, determining state information of the target loop according to the condition.
2. The method of claim 1, wherein, The method for creating a target loop comprises the following steps: in response to a first operation of the target object, determining a virtual device required by the target loop; connecting the virtual device to obtain the target loop.
3. The method of claim 1, wherein, The method for determining a condition met by the target loop in the industrial control process comprises the following steps: determining a first condition corresponding to each virtual device in the target loop, wherein the first condition comprises at least a bit number corresponding to the virtual device, a preset value corresponding to the virtual device, and a symbol connecting the bit number and the preset value; in the case that the number of the first conditions is greater than 1, determining a connecting symbol between the plurality of first conditions; determining the condition met by the target loop in the industrial control process according to the first conditions and the connecting symbol.
4. The method of claim 3, wherein, After determining the condition met by the target loop in the industrial control process, the method further comprises verifying whether the setting of the condition is correct.
5. The method of claim 4, wherein, The method for verifying whether the setting of the condition is correct comprises the following steps: obtaining an actual value range corresponding to each virtual device in the target loop; when the preset value of each virtual device is within the actual value range corresponding to each virtual device, generating a prompt information, wherein the prompt information is used to indicate that the condition setting is correct.
6. The method of claim 5, wherein, After generating the prompt information, the method further comprises the following steps: in response to a second instruction of the target object, configuring a condition met by another loop in the industrial control process, wherein the second instruction is used to copy the condition met by the target loop in the industrial control process to the other loop for use, and the other loop is a loop different from the target loop in the industrial control process; according to a third instruction of the target object, modifying the condition obtained by copying by the other loop.
7. The method of claim 1, wherein, The method for determining state information of the target loop according to the condition comprises the following steps: obtaining a data value corresponding to a virtual device in the target loop; determining state information of the target loop according to the data value and the condition corresponding to the target loop; in the case that the state information indicates that the target loop is in a state of being started, obtaining effective data in the data value; evaluating the target loop according to the effective data.
8. A loop state determination apparatus characterized by comprising: The method comprises the following steps: a creating module is configured to create a target loop, wherein the target loop is a loop in an industrial control process, and the target loop comprises at least one virtual device corresponding to an entity device; The first determining module is configured to determine a condition met by the target loop in the industrial control process in response to a first instruction of a target object, wherein the condition is set by different logical expressions, and the logical expression met by the target loop in the industrial control process is determined by connecting different logical expressions corresponding to virtual devices in the target loop via a connection symbol. The second determining module is configured to determine state information of the target loop according to the condition when the condition is verified to be correct.
9. A system for determining a state of a loop, characterized in that The server and the display are included, wherein The server is configured to create a target loop, wherein the target loop is a loop in an industrial control process, and the target loop includes at least one virtual device corresponding to an entity device; determine a condition met by the target loop in the industrial control process in response to a first instruction of a target object, wherein the condition is set by different logical expressions, and the logical expression met by the target loop in the industrial control process is determined by connecting different logical expressions corresponding to virtual devices in the target loop via a connection symbol; and determine state information of the target loop according to the condition when the condition is verified to be correct. The display is configured to display at least the state information of the target loop. The memory is configured to store program instructions.
10. An electronic device, comprising: The processor is connected to the memory and is configured to execute the program instructions to implement the following functions: create a target loop, wherein the target loop is a loop in an industrial control process, and the target loop includes at least one virtual device corresponding to an entity device; determine a condition met by the target loop in the industrial control process in response to a first instruction of a target object, wherein the condition is set by different logical expressions, and the logical expression met by the target loop in the industrial control process is determined by connecting different logical expressions corresponding to virtual devices in the target loop via a connection symbol; and determine state information of the target loop according to the condition when the condition is verified to be correct. The non-volatile storage medium includes a stored computer program, wherein a device in which the non-volatile storage medium is located executes the loop state determination method in any one of claims 1 to 7 by running the computer program. 11. A non-volatile storage medium, comprising:
Citation Information
Patent Citations
Instrument loop test method and device, electronic equipment and nonvolatile storage medium
CN115113610A