Graphical programming real-time parameter modification and storage method and device and computer equipment
By determining the pin identification information of the control element on the upper computer of the power system and generating dynamic save data files, the problem of low efficiency in system parameter modification in traditional technology is solved, and efficient and accurate parameter modification and storage is achieved.
Patent Information
- Application Number
- CN202411804235.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-10
- Publication Date
- 2025-04-22
AI Technical Summary
In traditional technology, the modification of system parameters mainly depends on offline modification methods, resulting in a low parameter modification rate, increasing the workload and time, and reducing the efficiency of parameter modification.
It provides a real-time parameter modification and saving method for graphical programming. By determining the pin identification information of the control element on the upper computer of the power system, displaying the graphical programming interface and responding to the parameter modification instructions, generating a dynamic save data file, and sending it to the lower computer to update the system parameters.
It realizes efficient and accurate modification and saving of system parameters in the operating state of the power system, reduces the workload and time consumed in parameter modification and preservation, and improves the efficiency of system parameters modification.
Smart Images

Figure CN119861917A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of industrial control technology, and in particular to a graphical programming real-time parameter modification and storage method, device, computer equipment, computer-readable storage medium and computer program product. Background Art
[0002] Graphical programming uses icons, modules, and flowcharts to build program logic in an intuitive way, shielding the underlying implementation details such as memory management and pointer operations, so that developers can implement complex functions by combining different modules.
[0003] Parameters in the system (such as thresholds, control coefficients, etc.) are usually fixed into the system during compilation. Traditional technology mainly uses offline modification to modify related parameters. However, when some or all parameters in the system need to be adjusted frequently, offline modification will increase the workload and consume a lot of time, reduce the modification rate of parameters in the system, and is not conducive to improving the modification efficiency of parameters in the system. Summary of the invention
[0004] Based on this, it is necessary to provide a graphical programming real-time parameter modification and storage method, device, computer equipment, computer-readable storage medium and computer program product that can improve the efficiency of parameter modification in the system in order to address the above technical problems.
[0005] In a first aspect, the present application provides a graphical programming real-time parameter modification and storage method, which is applied to a power system, comprising:
[0006] When the power system is in operation, determining pin identification information of each control element in the power system through a host computer of the power system;
[0007] Displaying a graphical programming interface through the upper computer of the power system, and generating a dynamically saved data file corresponding to the target control element in response to a parameter modification instruction for the target control element among the control elements; the graphical programming interface is used to display the element parameters of the control elements;
[0008] Sending the dynamically saved data file corresponding to the target control element to the lower computer of the power system through the upper computer of the power system;
[0009] The power system is updated by a lower computer of the power system according to an application file of the lower computer and a dynamically saved data file corresponding to the target control element.
[0010] In one embodiment, in response to a parameter modification instruction for a target control element among the control elements, generating a dynamically saved data file corresponding to the target control element includes:
[0011] Parsing the parameter modification instruction of the target control element to determine timestamp information, modified parameters of the target control element, pin identification information of the modified parameters, and first verification information;
[0012] A dynamically saved data file corresponding to the target control element is generated according to the timestamp information, the modified parameter, the pin identification information of the modified parameter and the first verification information.
[0013] In one embodiment, updating the power system according to the application file of the lower computer and the dynamically saved data file corresponding to the target control element includes:
[0014] Determine second verification information according to timestamp information, modified parameters, and pin identification information of the modified parameters in the dynamically saved data file corresponding to the target control element;
[0015] When the second verification information matches the first verification information, the component parameters of the target control component in the power system are updated according to the modified parameters and the pin identification information of the modified parameters in the dynamically saved data file corresponding to the target control component.
[0016] In one embodiment, before the step of updating the element parameters of the target control element in the power system, the method further includes:
[0017] Obtaining, through a lower computer of the power system, timestamp information corresponding to an application file of the lower computer;
[0018] The timestamp verification result is determined by the lower computer of the power system according to the timestamp information in the dynamically saved data file corresponding to the target control element and the timestamp information corresponding to the application file of the lower computer; the timestamp verification result is used to control whether to update the element parameters of the target control element in the power system.
[0019] In one embodiment, updating the element parameter of the target control element in the power system according to the modified parameter and the pin identification information of the modified parameter in the dynamically saved data file corresponding to the target control element includes:
[0020] Determine the storage area of the target pin according to the pin identification information of the modified parameter and the pin data memory linked list information in the dynamically saved data file corresponding to the target control element;
[0021] The component parameters of the target control component in the power system are updated according to the storage area of the target pin and the modified parameters in the dynamically saved data file corresponding to the target control component.
[0022] In one embodiment, before the step of updating the element parameters of the target control element in the power system, the method further includes:
[0023] Determining, by the lower computer of the power system according to the application file of the lower computer, the component parameters and pin identification information of the control component corresponding to the lower computer;
[0024] Determine, by means of a lower computer of the power system, a memory area corresponding to the pin identification information of a control element corresponding to the lower computer;
[0025] The pin data memory linked list information is determined by the lower computer of the power system according to the component parameters and pin identification information of the control component corresponding to the lower computer and the memory area corresponding to the pin identification information of the control component corresponding to the lower computer.
[0026] In one embodiment, after the step of updating the element parameters of the target control element in the power system, the method further includes:
[0027] Obtaining the parameter modification result of the target control element through the lower computer of the power system;
[0028] Sending the parameter modification result to the upper computer of the power system through the lower computer of the power system;
[0029] The parameter modification result is displayed by the host computer of the power system.
[0030] In a second aspect, the present application also provides a graphical programming real-time parameter modification and storage device, which is applied to a power system, comprising:
[0031] An identification determination module, used to determine the pin identification information of each control element in the power system through a host computer of the power system when the power system is in operation;
[0032] An instruction response module, used to display a graphical programming interface through the upper computer of the power system, and generate a dynamically saved data file corresponding to the target control element in response to a parameter modification instruction for the target control element among the control elements; the graphical programming interface is used to display the element parameters of the control elements;
[0033] A file sending module, used for sending the dynamically saved data file corresponding to the target control element to the lower computer of the power system through the upper computer of the power system;
[0034] The data updating module is used to update the power system through the lower computer of the power system according to the application file of the lower computer and the dynamically saved data file corresponding to the target control element.
[0035] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of the above method are implemented.
[0036] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.
[0037] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0038] The above-mentioned graphical programming real-time parameter modification and storage method, device, computer equipment, computer-readable storage medium and computer program product, when the power system is in operation, determine the pin identification information of each control element in the power system through the upper computer of the power system, thereby accurately analyzing the pin identification of each control element in the power system, so as to subsequently modify the parameters of the element based on the pin identification; display the graphical programming interface through the upper computer of the power system, and generate a dynamically saved data file corresponding to the target control element in response to the parameter modification instruction for the target control element in each control element; the graphical programming interface is used to display the element parameters of each control element, so as to generate accurate dynamic saved data based on the graphical programming interface and the parameter modification instruction. File, so as to modify and save component parameters based on the dynamic saved data file; send the dynamic saved data file corresponding to the target control component to the lower computer of the power system through the upper computer of the power system; update the power system through the lower computer of the power system according to the application file of the lower computer and the dynamic saved data file corresponding to the target control component, so as to use the lower computer based on the application file of the lower computer and the dynamic saved data file received by the lower computer to accurately and efficiently modify and save the parameters of the control component, and can use the graphical programming interface to efficiently and accurately modify and save the parameters of the components in the system based on the pin identification, without frequently deleting and regenerating the application file, reducing the workload and time consumed by parameter modification and saving, thereby improving the modification efficiency of parameters in the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 An application environment diagram of a graphical programming real-time parameter modification and storage method in one embodiment;
[0041] Figure 2 A schematic diagram of a flow chart of a graphical programming real-time parameter modification and storage method in one embodiment;
[0042] Figure 3 is a schematic diagram of a bidirectional linked list structure in one embodiment;
[0043] Figure 4 A schematic diagram of a DYM variable linked list structure in one embodiment;
[0044] Figure 5 A schematic diagram of a process of online modification and solidification of a DYM variable in an embodiment;
[0045] Figure 6 A schematic diagram of a DSD file structure in an embodiment;
[0046] Figure 7 A schematic diagram of a process of starting loading of a DSD file in one embodiment;
[0047] Figure 8 It is a structural block diagram of a graphical programming real-time parameter modification and storage device in one embodiment;
[0048] Fig. 9 The figure is a diagram of the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0050] The graphical programming real-time parameter modification and storage method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. When the power system is in operation, the server 104 determines the pin identification information of each control element in the power system through the upper computer of the power system; the server 104 displays the graphical programming interface through the upper computer of the power system, and generates a dynamic saved data file corresponding to the target control element in response to the parameter modification instruction for the target control element in each control element; the graphical programming interface is used to display the element parameters of each control element; the server 104 sends the dynamic saved data file corresponding to the target control element to the lower computer of the power system through the upper computer of the power system; the server 104 updates the power system through the lower computer of the power system according to the application file of the lower computer and the dynamic saved data file corresponding to the target control element. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. The server 104 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.
[0051] In an exemplary embodiment, Figure 2 As shown, a graphical programming real-time parameter modification and storage method is provided, which is applied to the power system. The method is applied to the server as an example for explanation, and includes the following steps S202 to S208. Among them:
[0052] Step S202: when the power system is in operation, the pin identification information of each control element in the power system is determined by a host computer of the power system.
[0053] The host computer may refer to a computer or workstation running graphical programming software. In practical applications, the main functions of the host computer are programming, monitoring, debugging and management.
[0054] Among them, control elements can refer to various equipment and devices used to regulate, protect and optimize the operation of the power system.
[0055] The pin identification information may refer to information used to distinguish / identify different parameters in the power system. In actual applications, the control element may modify / adjust the parameters corresponding to the pin identification information based on the pin identification information.
[0056] As an example, in order to modify the component parameters in the power system in real time, the server can send a pin analysis request message to the host computer of the power system when the power system is in operation. The host computer of the power system can respond to the pin analysis request message and send the pin identification information of each control element in the power system to the server, so that the server can obtain the pin identification information of each control element in the power system.
[0057] Step S204, displaying a graphical programming interface through the upper computer of the power system, and generating a dynamically saved data file corresponding to the target control element in response to the parameter modification instruction for the target control element among the control elements; the graphical programming interface is used to display the element parameters of each control element.
[0058] Among them, the graphical programming interface may refer to an interface for displaying component parameters of each control component. In actual applications, the graphical programming interface may be constructed based on graphical programming. The graphical programming interface allows users to create programs by dragging and connecting graphic elements (such as icons, modules or blocks).
[0059] The target control element may refer to a control element whose parameters need to be modified. In practical applications, the element parameters of the control element may be used as a dynamically modified data, such as a DYM (Dynamically Modified Data) variable.
[0060] Among them, the parameter modification instruction may refer to an instruction triggered through a graphical programming interface and used to modify the parameters of the target control element. In actual applications, the triggering method of the parameter modification instruction may include but is not limited to the user editing the parameters of the target control element in the graphical programming interface.
[0061] The dynamically stored data file may refer to a DSD (Dynamically Stored Data file). In actual applications, the dynamically stored data file may automatically or on-demand write data into the file system according to real-time data or user interaction during program execution.
[0062] As an example, the server can send an interface display instruction to the host computer of the power system. The host computer of the power system responds to the interface display instruction and displays a graphical programming interface to show the graphical programming interface to the user. The user can select any control element among the control elements in the power system as the target control element in the graphical programming interface, and perform editing / modification operations on the target control element, thereby triggering a parameter modification instruction for the target control element. The host computer of the power system can respond to the parameter modification instruction and generate a dynamically saved data file corresponding to the target control element according to the content of the parameter modification instruction.
[0063] Step S206: Sending the dynamically saved data file corresponding to the target control element to the lower computer of the power system through the upper computer of the power system.
[0064] The lower computer may refer to the actuator of the power system. In practical applications, the lower computer may be used to run control programs, process real-time signals, execute commands, and maintain communication with the upper computer to ensure stable operation and flexible control of the system.
[0065] As an example, after the server detects that the upper computer of the power system generates a dynamic saved data file corresponding to the target control element, the server can send a file sending request message to the upper computer of the power system, and the upper computer of the power system responds to the file sending request message and sends the dynamic saved data file corresponding to the target control element to the lower computer of the power system. In actual applications, the lower computer of the power system can also send a file sending response to the upper computer of the power system. If the upper computer of the power system does not detect the file sending response returned by the lower computer of the power system within a preset time period, the upper computer of the power system can resend the dynamic saved data file corresponding to the target control element to the lower computer of the power system until the upper computer of the power system detects the file sending response returned by the lower computer of the power system within a preset time period.
[0066] Step S208, updating the power system through the lower computer of the power system according to the application file of the lower computer and the dynamically saved data file corresponding to the target control element.
[0067] The application file of the lower computer may refer to an executable file generated by the lower computer according to the graphical program downloaded by the upper computer. In actual applications, the application file of the lower computer may be used to modify the component parameters of the control components in the power system.
[0068] As an example, after the server detects that the lower computer of the power system has successfully received the dynamically saved data file corresponding to the target control element sent by the upper computer of the power system, the server can obtain the application file of the lower computer through the lower computer of the power system, and compare the application file of the lower computer with the dynamically saved data file corresponding to the target control element. The server can then determine whether to control the lower computer of the power system to update the element parameters of the control element in the power system based on the comparison result.
[0069] In the above-mentioned graphical programming real-time parameter modification and storage method, when the power system is in operation, the pin identification information of each control element in the power system is determined by the upper computer of the power system, so as to accurately analyze the pin identification of each control element in the power system, so as to modify the parameters of the element based on the pin identification later; the graphical programming interface is displayed by the upper computer of the power system, and in response to the parameter modification instruction for the target control element in each control element, a dynamic saved data file corresponding to the target control element is generated; the graphical programming interface is used to display the element parameters of each control element, so as to generate an accurate dynamic saved data file based on the graphical programming interface and the parameter modification instruction, so as to modify the parameters of the target control element based on the dynamic saved data File modification and saving of component parameters; sending the dynamic saved data file corresponding to the target control component to the lower computer of the power system through the upper computer of the power system; updating the power system through the lower computer of the power system according to the application file of the lower computer and the dynamic saved data file corresponding to the target control component, so as to accurately and efficiently modify and save the parameters of the control component based on the application file of the lower computer and the dynamic saved data file received by the lower computer, and being able to efficiently and accurately modify and save the parameters of the components in the system based on pin identification using a graphical programming interface, without the need to frequently delete and regenerate application files, reducing the workload and time consumed by parameter modification and saving, thereby improving the parameter modification efficiency in the system.
[0070] In an exemplary embodiment, in response to a parameter modification instruction for a target control element in each control element, a dynamically saved data file corresponding to the target control element is generated, including: parsing the parameter modification instruction of the target control element, determining timestamp information, modified parameters of the target control element, pin identification information of the modified parameters, and first verification information; generating a dynamically saved data file corresponding to the target control element according to the timestamp information, the modified parameters, the pin identification information of the modified parameters, and the first verification information.
[0071] The timestamp information may refer to information representing the timestamp corresponding to the parameter modification instruction.
[0072] The modified parameters of the target control element may refer to information of element parameters used for the target control element. In actual applications, the modified parameters of the target control element may be edited / inputted / set by a user through a graphical programming interface.
[0073] The pin identification information of the modified parameter may refer to information for distinguishing / identifying the component parameter of the target control component.
[0074] Among them, the first verification information may refer to information used to control whether to update the element parameters of the target control element in the power system. In actual applications, the first verification information may be pre-set information. The first verification information may include a cyclic redundancy check value in a dynamically saved data file, such as a CRC (Cyclic Redundancy Check) check value.
[0075] As an example, the server can send a DSD file generation instruction to the host computer of the power system. The host computer of the power system responds to the DSD file generation instruction, parses the parameter modification instruction of the target control element, and determines the timestamp information corresponding to the parameter modification instruction, the modified parameters of the target control element, the pin identification information of the modified parameters, and the first verification information. After that, the server can generate a dynamically saved data file corresponding to the target control element through the host computer of the power system based on the timestamp information, the modified parameters, the pin identification information of the modified parameters, and the first verification information.
[0076] In this embodiment, by parsing the parameter modification instruction of the target control element, the timestamp information, the modified parameters of the target control element, the pin identification information of the modified parameters and the first verification information are determined; according to the timestamp information, the modified parameters, the pin identification information of the modified parameters and the first verification information, a dynamic saved data file corresponding to the target control element is generated, and the dynamic saved data file can be accurately generated based on the parameter modification instruction, thereby improving the accuracy of the dynamic saved data file, so that the element parameters of the control elements in the power system can be accurately modified based on the dynamic saved data file.
[0077] In some embodiments, the power system is updated according to the application file of the lower computer and the dynamically saved data file corresponding to the target control element, including: determining second verification information according to the timestamp information, modified parameters and pin identification information of the modified parameters in the dynamically saved data file corresponding to the target control element; when the second verification information matches the first verification information, updating the component parameters of the target control element in the power system according to the modified parameters and pin identification information of the modified parameters in the dynamically saved data file corresponding to the target control element.
[0078] The second check information may refer to a cyclic redundancy check value (such as a CRC check value) generated based on the timestamp information, the modified parameters and the pin identification information of the modified parameters in the dynamically saved data file.
[0079] As an example, the server may send a verification instruction to a lower computer of the power system. The lower computer of the power system responds to the verification instruction, first determines the valid data in the dynamically saved data file corresponding to the target control element (such as timestamp information, modified parameters, and pin identification information of the modified parameters, and then the lower computer of the power system calculates the CRC check value according to the timestamp information, modified parameters, and pin identification information of the modified parameters in the dynamically saved data file corresponding to the target control element to obtain the second verification information. Thereafter, the lower computer of the power system may compare the second verification information with the first verification information, and when the second verification information matches (such as is consistent with) the first verification information, update the element parameters of the target control element in the power system according to the modified parameters and the pin identification information of the modified parameters in the dynamically saved data file corresponding to the target control element.
[0080] In this embodiment, the second verification information is determined based on the timestamp information, modified parameters and pin identification information of the modified parameters in the dynamically saved data file corresponding to the target control element; when the second verification information matches the first verification information, the component parameters of the target control element in the power system are updated based on the modified parameters and pin identification information of the modified parameters in the dynamically saved data file corresponding to the target control element, and accurate verification can be performed based on the verification information, avoiding parameter safety problems caused by modifying the component parameters based on the dynamically saved data file when the verification information does not match, thereby improving the safety and accuracy of the component parameters in the power system and ensuring the safe and stable operation of the power system.
[0081] In some embodiments, before the step of updating the component parameters of the target control element in the power system, the above method also includes: obtaining, through a lower computer of the power system, timestamp information corresponding to an application file of the lower computer; determining, through the lower computer of the power system, a timestamp verification result based on the timestamp information in the dynamically saved data file corresponding to the target control element and the timestamp information corresponding to the application file of the lower computer; the timestamp verification result is used to control whether to update the component parameters of the target control element in the power system.
[0082] The timestamp verification result may refer to information used to control whether to update the element parameters of the target control element in the power system.
[0083] As an example, the server may send an update instruction to the lower computer of the power system. The lower computer of the power system responds to the update instruction and first obtains the timestamp information corresponding to the application file of the lower computer. Then, the lower computer of the power system may compare the timestamp information in the dynamically saved data file corresponding to the target control element with the timestamp information corresponding to the application file of the lower computer, analyze whether the timestamp information in the dynamically saved data file corresponding to the target control element and the timestamp information corresponding to the application file of the lower computer match (such as being consistent), and determine the timestamp verification result. If the timestamp information in the dynamically saved data file corresponding to the target control element and the timestamp information corresponding to the application file of the lower computer match, the lower computer of the power system may update the component parameters of the target control element in the power system. If the timestamp information in the dynamically saved data file corresponding to the target control element and the timestamp information corresponding to the application file of the lower computer do not match, the lower computer of the power system does not modify the component parameters of the target control element in the power system.
[0084] In this embodiment, the timestamp information corresponding to the application file of the lower computer is obtained through the lower computer of the power system; the timestamp verification result is determined by the lower computer of the power system according to the timestamp information in the dynamically saved data file corresponding to the target control element and the timestamp information corresponding to the application file of the lower computer; the timestamp verification result is used to control whether to update the component parameters of the target control element in the power system, and can perform accurate verification based on the timestamp, avoiding parameter safety problems caused by modifying the component parameters based on the dynamically saved data file when the timestamp does not match, thereby improving the safety and accuracy of the component parameters in the power system and ensuring the safe and stable operation of the power system.
[0085] In some embodiments, component parameters of a target control element in an electric power system are updated according to the modified parameters in a dynamically saved data file corresponding to the target control element and the pin identification information of the modified parameters, including: determining a storage area of a target pin according to the pin identification information of the modified parameters in the dynamically saved data file corresponding to the target control element and the pin data memory linked list information; and updating component parameters of a target control element in the electric power system according to the storage area of the target pin and the modified parameters in the dynamically saved data file corresponding to the target control element.
[0086] The pin data memory linked list information may refer to information representing the storage location of the component parameters of the control component in the lower computer.
[0087] The pin identification information of the target pin and the pin identification information of the modified parameter may be the same.
[0088] As an example, the lower computer of the power system can first determine the pin data memory linked list information corresponding to the lower computer according to the application file of the lower position, and then the lower computer of the power system can find the pin with the same pin identification information as the pin identification information of the modified parameter in the pin data memory linked list information according to the pin identification information of the modified parameter in the dynamically saved data file corresponding to the target control element as the target pin, and then the lower computer of the power system can determine the storage area of the target pin according to the pin data memory linked list information, and then the lower computer of the power system can update the component parameters of the target control element in the power system according to the storage area of the target pin and the modified parameters in the dynamically saved data file corresponding to the target control element. For example: the lower computer of the power system can replace the data in the storage area of the target pin with the modified parameters in the dynamically saved data file corresponding to the target control element.
[0089] In this embodiment, the storage area of the target pin is determined based on the pin identification information of the modified parameters in the dynamically saved data file corresponding to the target control element and the pin data memory linked list information; the component parameters of the target control element in the power system are updated based on the storage area of the target pin and the modified parameters in the dynamically saved data file corresponding to the target control element. Based on the pin identification and the pin data memory linked list, the parameters in the corresponding storage area can be accurately modified, thereby realizing efficient and accurate modification and preservation of the component parameters in the system.
[0090] In some embodiments, before the step of updating the component parameters of the target control element in the power system, the above method also includes: determining, by the lower computer of the power system according to the application file of the lower computer, the component parameters and pin identification information of the control element corresponding to the lower computer; determining, by the lower computer of the power system, the memory area corresponding to the pin identification information of the control element corresponding to the lower computer; determining, by the lower computer of the power system, the pin data memory linked list information according to the component parameters and pin identification information of the control element corresponding to the lower computer and the memory area corresponding to the pin identification information of the control element corresponding to the lower computer.
[0091] As an example, after the server detects that the lower computer of the power system has successfully received the dynamically saved data file sent by the upper computer of the power system, the server can send a restart command to the lower computer of the power system. The lower computer of the power system responds to the restart command, determines the component parameters and pin identification information of the control element corresponding to the lower computer according to the application file of the lower computer, and then allocates memory space for the pin identification information of the control element corresponding to the lower computer, thereby determining the memory area corresponding to the pin identification information of the control element corresponding to the lower computer. After that, the lower computer of the power system can determine the pin data memory linked list information according to the component parameters and pin identification information of the control element corresponding to the lower computer and the memory area corresponding to the pin identification information of the control element corresponding to the lower computer.
[0092] In this embodiment, the lower computer of the power system determines the component parameters and pin identification information of the control element corresponding to the lower computer according to the application file of the lower computer; the lower computer of the power system determines the memory area corresponding to the pin identification information of the control element corresponding to the lower computer; the lower computer of the power system determines the pin data memory linked list information according to the component parameters and pin identification information of the control element corresponding to the lower computer and the memory area corresponding to the pin identification information of the control element corresponding to the lower computer, and the pin data memory linked list information can be accurately generated so that the component parameters of the control element in the power system can be accurately modified based on the pin data memory linked list information.
[0093] In some embodiments, after the step of updating the element parameters of the target control element in the power system, the above method also includes: obtaining the parameter modification result of the target control element through the lower computer of the power system; sending the parameter modification result to the upper computer of the power system through the lower computer of the power system; and displaying the parameter modification result through the upper computer of the power system.
[0094] The parameter modification result may refer to information indicating whether the component parameter of the target control component is successfully modified. In practical applications, the parameter modification result may include but is not limited to "modification successful" and "modification failed".
[0095] As an example, after the server detects that the lower computer of the power system modifies the component parameters of the control element in the power system, the server sends a feedback instruction to the lower computer of the power system. The lower computer of the power system responds to the feedback instruction, obtains the parameter modification result of the target control element, and sends the parameter modification result to the upper computer of the power system. After the server detects that the upper computer of the power system successfully receives the parameter modification result sent by the lower computer, the server can send a result display instruction to the upper computer. The upper computer responds to the result display instruction and displays the parameter modification result in the display interface of the upper computer of the power system. In actual applications, the display interface of the upper computer of the power system can also display the latest parameter value and historical parameter value of the component parameter of the target control element and other information.
[0096] In this embodiment, the parameter modification results of the target control element are obtained through the lower computer of the power system; the parameter modification results are sent to the upper computer of the power system through the lower computer of the power system; the parameter modification results are displayed through the upper computer of the power system, and the component parameter modification results can be fed back to the user in time, so that the user can promptly confirm whether the component parameters are accurate.
[0097] In some embodiments, in certain industrial control automation fields, such as the power system field, it is necessary to modify and save parameters in real time during system operation. This process must ensure that the system can still operate stably when modifying and saving parameters. Real-time modification and saving of parameters involve key issues such as system performance, latency control, memory allocation, and data consistency. Therefore, the system must ensure rapid response to parameter modifications while minimizing the impact of parameter preservation on the system to ensure that it does not affect system performance or data errors. The offline modification method in traditional technology is insufficient in flexibility. For example, after the main functions of a graphical application are determined, developers usually need to frequently adjust the parameter configuration of certain modules without changing the structure or number of modules. In this case, offline modification will significantly increase the workload and time cost of debugging, reducing the convenience of the development process. The real-time modification method in traditional technology does not have the function of saving modifications, and the modified content will be lost after the system is restarted. In order to solve the problems existing in the traditional technology when modifying and saving system parameters, a graphical programming real-time parameter modification and saving method is provided. The graphical programming real-time parameter modification and saving method should be used in a system including a host computer and a slave computer (such as a power system). When the host computer creates and compiles a graphical program, it assigns unique ID identifier information to all pins, and downloads and solidifies the information together with the program into the file system of the slave computer to generate an application file. After the slave computer starts and loads the application file, it builds and maintains the memory linked list structure of the pin data and DYM variables: the bidirectional linked list of the pin data is used to store all the pin data, and each node contains the data of a pin, such as Figure 3 As shown, a schematic diagram of a bidirectional linked list structure is provided; the DYM variable linked list is used to store information of all DYM variables, such as Figure 4 As shown, a schematic diagram of a DYM variable linked list structure is provided.
[0098] In practical applications, such as Figure 5 As shown in the figure, a flowchart of online modification and curing of DYM variables is provided. When the upper computer modifies the pin value online and chooses to cure the modified value, it sends an online setting and curing command message. The message contains the following information: the timestamp of the application file, the pin ID identifier of the modified data, the DYM variable data, and the CRC check value. The lower computer parses the message and cures it and saves the data into an independent DSD file, such as Figure 6As shown, a schematic diagram of the DSD file structure is provided. During the restart process of the lower computer, the application file is first loaded, the ID identifiers and initialization data of all pins are read, and memory space is allocated for them. Next, it is detected whether there is a DSD file in the file system. If a DSD file is detected, further verification is performed, including comparing the timestamps of the application file and the DSD file, and calculating the CRC value of the valid data in the DSD file, and checking whether it is consistent with the CRC value pre-stored in the DSD file. If both the timestamp and the CRC check match, it is determined that the DSD file matches the current application file. Figure 7 As shown, a schematic diagram of the process of starting loading of a DSD file is provided. After matching the DSD file, the ID identifier and corresponding data of each DYM variable therein are read. According to the ID identifier, the pin data memory linked list is traversed to locate the memory data area corresponding to each DYM variable, and it is updated to the corresponding DYM variable data, and the host computer is informed. The host computer displays the DYM variable value pin ID identifier information and DYM variable data in a separate window.
[0099] It can be understood that the above-mentioned graphical programming real-time parameter modification and saving method can realize a unique pin ID identifier mechanism, which can automatically assign unique ID identifier information to all pins when the upper computer creates and compiles the graphical program. The ID identifier information is downloaded and solidified into the file system of the lower computer together with the program to generate an application file, thereby ensuring that all pins have unique identification during the communication process between the upper and lower computers, effectively solving the problems of chaotic pin management and data tracking. The above-mentioned graphical programming real-time parameter modification and saving method can realize the storage and management of independent DSD files. After the pin data can be modified online, the lower computer receives the online modification solidification command issued by the graphical interface, and saves the message data (including timestamp, pin ID identifier, DYM variable and CRC check value) to an independent DSD file. This design avoids frequent changes to application files, reduces time overhead and the risk of write errors. The above-mentioned graphical programming real-time parameter modification and saving method can realize an intelligent data verification and update mechanism during restart. During the restart process, the lower computer first loads the application file and allocates memory space for all pins. Then, by detecting and verifying the timestamp and CRC value of the DSD file, ensure that the DSD file is consistent with the current application file. If the match is successful, the system automatically reads the latest DYM variable data from the DSD file and updates it to the corresponding memory area according to the ID identifier. This verification mechanism improves the robustness and reliability of the system and ensures that the data is updated accurately. The above-mentioned graphical programming real-time parameter modification and saving method can also realize the memory linked list and dynamic data update mechanism. The system traverses the memory linked list, locates the memory area of the DYM variable according to the pin ID identifier, and updates it to the latest modified data. The dynamic data update mechanism combines linked list and identifier positioning to ensure the accuracy of memory allocation and data update.
[0100] In this embodiment, by assigning a unique ID identifier to each pin, the lower computer can accurately manage and track the data changes of each pin during the operation of the system, realize the precise modification of the parameters of a specific pin, and can also save the modified data through an independent DSD file, avoiding the cumbersome process of deleting and regenerating the application file every time the parameters are modified, reducing the read and write operations on the file system, and reducing the risk of file write errors and system load caused by rewriting files. When saving and loading modified data, the timestamp and CRC verification mechanism are used to ensure that the DSD file is consistent with the version and data of the current application file. By verifying the validity of the DSD file, data errors or inconsistencies can be effectively prevented, ensuring the accuracy and security of parameter modifications.
[0101] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0102] Based on the same inventive concept, the embodiment of the present application also provides a graphical programming real-time parameter modification and preservation device for implementing the graphical programming real-time parameter modification and preservation method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations of one or more graphical programming real-time parameter modification and preservation device embodiments provided below can refer to the limitations of the graphical programming real-time parameter modification and preservation method above, and will not be repeated here.
[0103] In an exemplary embodiment, Figure 8 As shown, a graphical programming real-time parameter modification and storage device is provided, which is applied to the power system, including: an identification determination module 802, an instruction response module 804, a file sending module 806 and a data update module 808, wherein:
[0104] The identification determination module 802 is used to determine the pin identification information of each control element in the power system through the host computer of the power system when the power system is in operation.
[0105] The instruction response module 804 is used to display a graphical programming interface through the upper computer of the power system, and generate a dynamically saved data file corresponding to the target control element in response to the parameter modification instruction for the target control element among the control elements; the graphical programming interface is used to display the element parameters of each control element.
[0106] The file sending module 806 is used to send the dynamically saved data file corresponding to the target control element to the lower computer of the power system through the upper computer of the power system.
[0107] The data updating module 808 is used to update the power system through the lower computer of the power system according to the application file of the lower computer and the dynamically saved data file corresponding to the target control element.
[0108] In one of the exemplary embodiments, the instruction response module 804 is further specifically used to parse the parameter modification instruction of the target control element, determine the timestamp information, the modified parameters of the target control element, the pin identification information of the modified parameters and the first verification information; and generate a dynamically saved data file corresponding to the target control element based on the timestamp information, the modified parameters, the pin identification information of the modified parameters and the first verification information.
[0109] In one of the exemplary embodiments, the data update module 808 is specifically used to determine second verification information based on the timestamp information, modified parameters and pin identification information of the modified parameters in the dynamically saved data file corresponding to the target control element; when the second verification information matches the first verification information, the element parameters of the target control element in the power system are updated based on the modified parameters and pin identification information of the modified parameters in the dynamically saved data file corresponding to the target control element.
[0110] In one of the exemplary embodiments, the device also includes a timestamp verification module, which is specifically used to obtain the timestamp information corresponding to the application file of the lower computer through the lower computer of the power system; determine the timestamp verification result through the lower computer of the power system according to the timestamp information in the dynamically saved data file corresponding to the target control element and the timestamp information corresponding to the application file of the lower computer; the timestamp verification result is used to control whether to update the element parameters of the target control element in the power system.
[0111] In one of the exemplary embodiments, the data update module 808 is specifically used to determine the storage area of the target pin based on the pin identification information of the modified parameters in the dynamically saved data file corresponding to the target control element and the pin data memory linked list information; and update the element parameters of the target control element in the power system based on the storage area of the target pin and the modified parameters in the dynamically saved data file corresponding to the target control element.
[0112] In one of the exemplary embodiments, the device also includes a memory allocation module, which is specifically used to determine, through the lower computer of the power system, component parameters and pin identification information of the control element corresponding to the lower computer according to the application file of the lower computer; determine, through the lower computer of the power system, the memory area corresponding to the pin identification information of the control element corresponding to the lower computer; and determine, through the lower computer of the power system, the pin data memory linked list information according to the component parameters and pin identification information of the control element corresponding to the lower computer and the memory area corresponding to the pin identification information of the control element corresponding to the lower computer.
[0113] In one of the exemplary embodiments, the device also includes a result feedback module, which is specifically used to obtain the parameter modification result of the target control element through the lower computer of the power system; send the parameter modification result to the upper computer of the power system through the lower computer of the power system; and display the parameter modification result through the upper computer of the power system.
[0114] Each module in the above-mentioned graphical programming real-time parameter modification and storage device can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.
[0115] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Fig. 9 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as pin identification information, component parameters, and dynamically saved data files. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a graphical programming real-time parameter modification and storage method is implemented.
[0116] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0117] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0118] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0119] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0120] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0121] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0122] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0123] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A graphical programming real-time parameter modification and storage method, characterized in that: Applied to a power system, the method comprises: When the power system is in operation, determining pin identification information of each control element in the power system through a host computer of the power system; Displaying a graphical programming interface through the upper computer of the power system, and generating a dynamically saved data file corresponding to the target control element in response to a parameter modification instruction for the target control element among the control elements; the graphical programming interface is used to display the element parameters of the control elements; Sending the dynamically saved data file corresponding to the target control element to the lower computer of the power system through the upper computer of the power system; The power system is updated by a lower computer of the power system according to an application file of the lower computer and a dynamically saved data file corresponding to the target control element.
2. The method according to claim 1, characterized in that The step of generating a dynamically saved data file corresponding to a target control element in response to a parameter modification instruction for the target control element among the control elements comprises: Parsing the parameter modification instruction of the target control element to determine timestamp information, modified parameters of the target control element, pin identification information of the modified parameters, and first verification information; A dynamically saved data file corresponding to the target control element is generated according to the timestamp information, the modified parameter, the pin identification information of the modified parameter and the first verification information.
3. The method according to claim 2, characterized in that The updating of the power system according to the application file of the lower computer and the dynamically saved data file corresponding to the target control element comprises: Determine second verification information according to timestamp information, modified parameters, and pin identification information of the modified parameters in the dynamically saved data file corresponding to the target control element; When the second verification information matches the first verification information, the component parameters of the target control component in the power system are updated according to the modified parameters and the pin identification information of the modified parameters in the dynamically saved data file corresponding to the target control component.
4. The method according to claim 3, characterized in that Before the step of updating the element parameters of the target control element in the power system, the method further includes: Obtaining, through a lower computer of the power system, timestamp information corresponding to an application file of the lower computer; The timestamp verification result is determined by the lower computer of the power system according to the timestamp information in the dynamically saved data file corresponding to the target control element and the timestamp information corresponding to the application file of the lower computer; the timestamp verification result is used to control whether to update the element parameters of the target control element in the power system.
5. The method according to claim 3, characterized in that: The updating of the component parameters of the target control element in the power system according to the modified parameters and the pin identification information of the modified parameters in the dynamically saved data file corresponding to the target control element comprises: Determine the storage area of the target pin according to the pin identification information of the modified parameter and the pin data memory linked list information in the dynamically saved data file corresponding to the target control element; The component parameters of the target control component in the power system are updated according to the storage area of the target pin and the modified parameters in the dynamically saved data file corresponding to the target control component.
6. The method according to claim 5, characterized in that Before the step of updating the element parameters of the target control element in the power system, the method further includes: Determining, by the lower computer of the power system according to the application file of the lower computer, the component parameters and pin identification information of the control component corresponding to the lower computer; Determine, by means of a lower computer of the power system, a memory area corresponding to the pin identification information of a control element corresponding to the lower computer; The pin data memory linked list information is determined by the lower computer of the power system according to the component parameters and pin identification information of the control component corresponding to the lower computer and the memory area corresponding to the pin identification information of the control component corresponding to the lower computer.
7. The method according to claim 3, characterized in that After the step of updating the element parameters of the target control element in the power system, the method further includes: Obtaining the parameter modification result of the target control element through the lower computer of the power system; Sending the parameter modification result to the upper computer of the power system through the lower computer of the power system; The parameter modification result is displayed by the host computer of the power system.
8. A graphical programming real-time parameter modification and storage device, characterized in that: Applied to a power system, the device comprises: An identification determination module, used to determine the pin identification information of each control element in the power system through a host computer of the power system when the power system is in operation; An instruction response module, used to display a graphical programming interface through the upper computer of the power system, and generate a dynamically saved data file corresponding to the target control element in response to a parameter modification instruction for the target control element among the control elements; the graphical programming interface is used to display the element parameters of the control elements; A file sending module, used for sending the dynamically saved data file corresponding to the target control element to the lower computer of the power system through the upper computer of the power system; The data updating module is used to update the power system through the lower computer of the power system according to the application file of the lower computer and the dynamically saved data file corresponding to the target control element.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.