A method for dynamic updating of gas turbine configuration resources
Patent Information
- Application Number
- CN202611148408.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-30
- Publication Date
- 2026-10-27
AI Technical Summary
[0004]本发明旨在提供一种燃机组态资源动态更新方法,以解决或改善上述技术问题中现有燃机组态资源更新采用停机条件下的静态更新方式,导致机组运行中断、更新效率低且灵活性不足,难以及时适应复杂工况下的控制策略调整需求的问题
通过将燃机控制系统的组态资源拆分为多个程序组织单元,并对各程序组织单元分别生成第一校验码、建立第一校验码与单元编号的关联关系,使组态资源更新不再局限于整体替换,而是能够以程序组织单元为粒度进行状态识别和更新处理,从而为组态资源的细化管理和定向更新提供基础;
Smart Images

Figure CN122985209A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of gas turbine control technology, and more specifically, to a method for dynamically updating gas turbine configuration resources. Background Technology
[0002] The configuration resources in a gas turbine control system include control logic, parameter settings, and module configurations, which directly affect the safety, stability, and regulation capabilities of the gas turbine unit. Current gas turbine configuration resource updates typically employ a static update method, meaning that modifications, replacements, and adjustments are completed under unit shutdown conditions to ensure a controllable update process.
[0003] However, this method requires interrupting the operation of the unit, which not only affects continuous power generation and the stability of the power grid, but also requires special scheduling of shutdown windows and a lot of commissioning and restart work. The update process is cumbersome and the cycle is long. Furthermore, static updates lack flexibility and are difficult to respond to load fluctuations, fuel changes and sudden operating conditions in a timely manner, and cannot meet the needs of real-time adjustment of gas turbine control strategies. Summary of the Invention
[0004] This invention aims to provide a dynamic update method for gas turbine configuration resources, in order to solve or improve the problems mentioned above, such as the existing static update method for gas turbine configuration resources under shutdown conditions, which leads to unit operation interruption, low update efficiency and insufficient flexibility, and difficulty in timely adapting to the control strategy adjustment needs under complex operating conditions.
[0005] In view of this, the first aspect of the present invention is to provide a method for dynamic updating of gas turbine configuration resources.
[0006] The first aspect of the present invention provides a method for dynamically updating gas turbine configuration resources, comprising the following steps: dividing the configuration resources of the gas turbine control system into multiple program organization units and assigning a unit number to each program organization unit; compiling each program organization unit to generate a first check code and establishing an association between the first check code and the unit number; a configuration tool sending a status request message containing a unit number and a second check code to the gas turbine control system, and searching for the corresponding program organization unit according to the unit number; determining the first check code associated with the unit number through the association, comparing the first check code with the second check code and generating a corresponding response code, and sending the response code to the configuration tool; the configuration tool determining the program organization unit to be updated according to the response code and sending a program organization unit update message to the gas turbine control system to dynamically update the program organization unit to be updated; monitoring during the dynamic update process, and when an update anomaly is detected, terminating the current update and switching back to the configuration resource execution before the dynamic update; and outputting the configuration resource update result after completing the traversal of each program organization unit.
[0007] The beneficial effects of this invention compared to the prior art are as follows: By dividing the configuration resources of the gas turbine control system into multiple program organization units, generating a first check code for each program organization unit, and establishing the association between the first check code and the unit number, the configuration resource update is no longer limited to overall replacement, but can be performed at the program organization unit level for state identification and update processing, thus providing a basis for refined management and targeted updates of configuration resources. The configuration tool sends a status request message containing the unit number and the second check code. The gas turbine control system generates a corresponding response code based on the comparison between the first check code and the second check code. This allows the configuration tool to determine whether there are any changes in each program organization unit before updating, and then determine the program organization unit to be updated based on the response code. Therefore, it can avoid repeated updates to program organization units that have not changed, improve the targeting and processing efficiency of configuration resource updates, and thus shorten the update process and improve the response capability to load fluctuations, fuel changes and sudden operating conditions. By sending program organization unit update messages only to the program organization units to be updated and performing dynamic updates, the processing burden caused by overall configuration replacement can be reduced, making configuration resource adjustments more flexible.
[0008] By monitoring the dynamic update process and terminating the current update and switching back to the configuration resource execution before the dynamic update when an update anomaly is detected, the abnormal update can be prevented from continuing to affect the gas turbine control system and the configuration resource state before the update can be restored. This improves the safety, controllability and operational stability of the configuration resource dynamic update process and reduces the risk of gas turbine unit operation fluctuations caused by update anomalies.
[0009] Additional aspects and advantages of embodiments of the invention will become apparent in the following description or may be learned by practice of embodiments of the invention. Attached Figure Description
[0010] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which: Figure 1 This is a flowchart of the method steps of the present invention; Figure 2 This is a schematic diagram illustrating the specific implementation steps of the present invention. Detailed Implementation
[0011] To better understand the above-mentioned objectives, features, and advantages of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.
[0012] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and therefore the scope of protection of the invention is not limited to the specific embodiments disclosed below.
[0013] Please see Figures 1-2 The following describes a method for dynamically updating gas turbine configuration resources according to some embodiments of the present invention.
[0014] An embodiment of the first aspect of the present invention provides a method for dynamically updating gas turbine configuration resources. In some embodiments of the present invention, such as... Figure 1 As shown, the method includes the following steps: S101, the configuration resources of the gas turbine control system are divided into multiple program organization units, and a unit number is assigned to each program organization unit; each program organization unit is compiled to generate a first check code, and the association between the first check code and the unit number is established.
[0015] Here, by dividing the configuration resources of the gas turbine control system into multiple program organization units, the originally holistic configuration resources are refined into multiple independent processing objects, which facilitates subsequent unit-by-unit identification, comparison and updating; and by assigning a unit number to each program organization unit, each program organization unit can have a unique identifier, so as to achieve accurate location and differentiation of the target program organization unit in subsequent processing. Further, each program organization unit is compiled and a first check code is generated. The first check code can be used to represent the current compilation result status of the corresponding program organization unit. Then, by establishing the association between the first check code and the unit number, a one-to-one correspondence is formed between the unit number and the corresponding compilation result information. This not only provides a basis for quickly obtaining the corresponding first check code based on the unit number, but also provides a comparison basis for judging whether the program organization unit has changed.
[0016] Specifically, the steps for compiling each program unit to generate the first checksum include: Each program unit is compiled to generate a CRC32 checksum as the first checksum.
[0017] Regarding the specific description above, by compiling each program organization unit to generate a CRC32 checksum as the first checksum, it is possible to generate a feature identifier for each program organization unit to characterize its content status while forming the corresponding compilation result for each program organization unit. The CRC32 checksum is calculated based on the compilation result of the corresponding program organization unit, and therefore can reflect the specific status of the current content of the program organization unit. When the content of a program organization unit changes, the generated CRC32 checksum will also change accordingly. This CRC32 checksum can be used to distinguish the compilation results of different program organization units and provide a basis for comparing the first checksum corresponding to the current program organization unit with the corresponding checksum information on the gas turbine control system side or configuration tool side. This provides a basis for determining whether the program organization unit has changed and whether dynamic updates are required.
[0018] Specifically, the steps for establishing the association between the first check code and the unit number include: Obtain the unit number and first check code corresponding to each program organization unit.
[0019] A hash table is established using the unit number and the first checksum of each group to form an association.
[0020] Regarding the specific description above, by obtaining the unit number and first check code corresponding to each program organization unit, it is possible to extract the identification information used to uniquely identify the program organization unit and the check information used to characterize the current content status of the program organization unit, so that each program organization unit has its corresponding check status data. A hash table is established by using the unit numbers and first check codes of each group to form an association. This allows the unit numbers and their corresponding first check codes to be organized according to a predetermined mapping method. This enables the subsequent processing to quickly locate and obtain the corresponding first check code based on the unit number, without having to search through all program organization units one by one. This not only improves the efficiency of first check code lookup but also ensures the accuracy of the correspondence between different program organization units and their corresponding check information.
[0021] S102, the configuration tool sends a status request message containing the unit number and the second check code to the gas turbine control system, and finds the corresponding program organization unit according to the unit number.
[0022] Here, by sending a status request message containing a unit number and a second check code to the gas turbine control system from the configuration tool, the identification information of the program organization unit to be judged and its corresponding status representation information can be synchronously transmitted to the gas turbine control system. The unit number is used to indicate the specific program organization unit currently participating in the status judgment, and the second check code is used to represent the current content status of the corresponding product file of the program organization unit on the configuration tool side. After receiving the status request message, the gas turbine control system searches for the corresponding program organization unit based on the unit number carried in it. It can quickly locate the target object corresponding to the status request message in the existing set of program organization units within the system, thus providing a prerequisite for obtaining the local verification information corresponding to the program organization unit and comparing it with the second verification code. This enables the configuration tool side and the gas turbine control system side to establish a corresponding relationship around the same program organization unit.
[0023] Specifically, the steps of the configuration tool sending a status request message containing a unit number and a second checksum to the gas turbine control system include: Traverse the program's organizational units and obtain the unit number corresponding to the current program organizational unit.
[0024] The program organizes the unit product file to generate a second check code, and then associates the unit number with the second check code.
[0025] Write the associated unit number and second checksum into the status request message and send it.
[0026] Based on the specific description above, by traversing the program organization units and obtaining the unit number corresponding to the current program organization unit, the configuration tool can determine the target object currently participating in the status request processing in multiple program organization units one by one, thereby providing an identification basis for constructing the corresponding status request content around the current program organization unit. By generating a second check code from the product file of the program organization unit, it is possible to form check information representing the current content status of the product file corresponding to the current program organization unit, and by associating the unit number with the second check code, the identification information of the current program organization unit and its content status information can be made to correspond. By writing the associated unit number and second check code into the status request message and sending it, the gas turbine control system can locate the corresponding program organization unit based on the unit number after receiving the status request message, and obtain the content status representation of the current program organization unit on the configuration tool side based on the second check code.
[0027] S103: Determine the first check code associated with the unit number through the association relationship, compare the first check code with the second check code and generate the corresponding reply code, and send the reply code to the configuration tool.
[0028] Here, by determining the first check code associated with the unit number based on the aforementioned association, local check information corresponding to the current program organization unit can be quickly extracted on the gas turbine control system side according to the unit number, thereby accurately representing the existing state of the program organization unit on the gas turbine control system side; further, by comparing the first check code with the second check code, it can be determined whether the content of the program organization unit corresponding to the configuration tool side is consistent with the content of the program organization unit corresponding to the gas turbine control system side. When the two are consistent, it indicates that the current program organization unit has not changed; when the two are inconsistent, it indicates that the current program organization unit has an update requirement; and when no corresponding program organization unit is found, it indicates that the gas turbine control system side does not yet have the corresponding program organization unit. Generating a corresponding response code and sending it to the configuration tool allows the comparison results of the program organization units to be fed back to the configuration tool in the form of a clear status identifier. This enables the configuration tool to further determine whether the current program organization unit needs to be dynamically updated based on the response code. This achieves the pre-identification of the necessity of updating the program organization unit and avoids repeated updates to program organization units that have not changed.
[0029] Specifically, the reply code is generated according to the following rules: If no corresponding program unit is found, a response code containing the "not found" message is generated.
[0030] When the corresponding program organization unit is found and the first check code does not match the second check code, a reply code containing update information is generated.
[0031] When the first check code matches the second check code, a response code containing unchanged information is generated.
[0032] Regarding the specific description above, by generating a response code according to preset rules, the search results of the gas turbine control system for the current program organization unit and the comparison results of the first check code and the second check code can be converted into a status identifier that can be directly recognized by the configuration tool. In particular, when no corresponding program organization unit is found, a response code containing the information of not found is generated, which indicates that there is no program organization unit in the gas turbine control system that corresponds to the current unit number, thereby providing a basis for subsequent processing of the program organization unit as a new or supplementary object. When the corresponding program organization unit is found and the first check code and the second check code are inconsistent, a reply code containing update information is generated. This indicates that there is a difference in the content status of the current program organization unit on the gas turbine control system side and the configuration tool side, thus providing a basis for subsequently identifying the program organization unit as an object that needs to be dynamically updated. When the first check code and the second check code match, a response code containing unchanged information is generated, which indicates that the current program organization unit has the same content status on the gas turbine control system side and the configuration tool side, thereby avoiding repeated updates to the program organization unit that has not changed. This enables the configuration tool to quickly distinguish the existence status and change status of the program organization unit based on different response codes.
[0033] S104, the configuration tool determines the program organization unit to be updated based on the response code and sends a program organization unit update message to the gas turbine control system to dynamically update the program organization unit to be updated.
[0034] Here, by using configuration tools to determine the program organization unit to be updated based on the response code, it is possible to identify the program organization unit that does have an update requirement from all program organization units after completing the judgment of the previous verification results. This makes the subsequent update objects more targeted and avoids performing redundant processing on program organization units that have not changed or do not need to be updated. Furthermore, the configuration tool sends a program organization unit update message to the gas turbine control system, which can transmit the update content corresponding to the program organization unit to be updated to the gas turbine control system. This allows the gas turbine control system to perform dynamic update processing for the program organization unit to be updated. As a result, changes to configuration resources can be implemented at the corresponding program organization unit level without replacing all configuration resources as a whole. This not only improves the efficiency and flexibility of configuration resource updates, but also reduces the impact on the normal operation of the gas turbine control system during the update process, thereby realizing targeted dynamic updates for the program organization unit to be updated.
[0035] Specifically, the steps by which the configuration tool determines the program organization unit to be updated based on the response code include: Parse the response code to obtain the update information and the corresponding unit number, and compare the unit number corresponding to the update information with the unit number of each program organization unit.
[0036] When the unit numbers are consistent, the current program organization unit is identified as the program organization unit to be updated.
[0037] Based on the above specific description, by parsing the response code to obtain the update information and the corresponding unit number, the program organization unit status result returned by the gas turbine control system can be further transformed into an update judgment basis that can be directly identified by the configuration tool. This allows the configuration tool to not only know that the current response code corresponds to the status information that needs to be updated, but also to clearly identify the specific program organization unit corresponding to the status information. By comparing the unit number corresponding to the update information with the unit number of each program organization unit, the current program organization unit that matches the update information can be accurately located among multiple program organization units, thereby avoiding the selection of the update object due to inaccurate identification of the program organization unit. When the unit numbers are consistent, the current program organization unit is identified as the program organization unit to be updated. This allows the configuration tool to select the target object that actually needs to be dynamically updated from all program organization units based on the status result represented by the response code. As a result, the subsequent sending of update messages and dynamic update processing are only performed on the program organization units that have update requirements.
[0038] Specifically, the steps for dynamically updating the program organization units to be updated include: Start the timer and initialize the download status.
[0039] Read the product file of the program organization unit to be updated, construct the program organization unit update message and send it to the gas turbine control system.
[0040] Regarding the specific description above, by starting a timer and initializing the download status, a time tracking basis and a status identification basis for the current update process can be established before the program organization unit to be updated performs a dynamic update. The timer is used to continuously measure the execution time of the program organization unit update process, and the download status is used to characterize the execution status of the current program organization unit in the dynamic update process, thereby providing a basis for subsequent monitoring of whether the update process is completed normally. By reading the product file of the program organization unit to be updated, the actual update content corresponding to the program organization unit to be updated can be obtained. Based on this, a program organization unit update message is constructed and sent to the gas turbine control system. The update data corresponding to the program organization unit to be updated can be transmitted to the gas turbine control system in a predetermined message format, so that the gas turbine control system can perform dynamic update processing on the corresponding program organization unit based on the update message. This ensures that the update content of the program organization unit can be accurately applied to the corresponding update object. At the same time, with the pre-set timer and download status, it is used for subsequent anomaly monitoring, timeout judgment and update protection processing.
[0041] S105 monitors the dynamic update process. When an update anomaly is detected, the current update is terminated and the configuration resources before the dynamic update are switched back to be executed.
[0042] Here, by monitoring during the dynamic update process, the execution status of the program organization unit during the update can be continuously tracked, thereby promptly identifying any abnormal situations that may affect the continuation of the update or the stable operation of the gas turbine control system. When an update abnormality is detected, the current update is terminated, which can prevent the abnormal update content from being written to or applied to the gas turbine control system, and prevent the program organization unit state from becoming disordered, configuration resources from becoming incomplete, or control logic from becoming mismatched due to the continuous abnormal update. Switching back to the configuration resources before the dynamic update can restore the gas turbine control system to its stable operating state before the update. This ensures that the gas turbine control system can still maintain normal control functions based on the original available configuration resources under abnormal update conditions. This improves the safety, controllability, and operational stability of the configuration resource dynamic update process and reduces the adverse effects of update anomalies on the continuous operation of the gas turbine unit.
[0043] Specifically, the steps for monitoring during the dynamic update process include: Increment the overflow counter when the timer overflows and the download status does not indicate a successful update.
[0044] When the timer overflows and the overflow count has not reached the preset threshold, the update message is resent.
[0045] Determine whether the output file of the program organization unit to be updated is in an abnormal state. If so, record the time information, communication status information and resource monitoring status information corresponding to the abnormality.
[0046] Regarding the specific description above, by monitoring during the dynamic update process, the completion status, duration, and abnormal status of the program organization unit to be updated during the update execution can be continuously tracked. In particular, when the timer overflows and the download status does not indicate that the update is successful, an overflow count is added, which can accumulate and record the situation where the program organization unit fails to complete the update within the predetermined time period, thereby providing a basis for judging whether the current update process is continuously abnormal or has a timeout risk. When the timer overflows and the overflow count has not reached the preset threshold, the update message is resent. This allows the program organization unit to be updated to execute the update request again when the update has not yet succeeded and is still within the allowed retry range. This improves the recovery capability in the event of update failure due to instantaneous communication fluctuations or temporary execution anomalies. Furthermore, by determining whether the output file of the program organization unit to be updated is in an abnormal state, and recording the time information, communication status information, and resource monitoring status information corresponding to the abnormality when the determination result is yes, the relevant state when the update anomaly occurs can be preserved and characterized.
[0047] Specifically, when an update anomaly is detected, the steps to terminate the current update and switch back to the configuration resource execution before the dynamic update include: When the overflow count reaches a preset threshold and / or the program organization unit output file to be updated is abnormal, terminate the current update and switch back to the configuration resource execution before the dynamic update.
[0048] Regarding the specific description above, by terminating the current update and switching back to the configuration resource execution before the dynamic update when the overflow count reaches a preset threshold and / or the program organization unit product file to be updated is abnormal, it is possible to promptly block the current update from continuing when there is a continuous incomplete update or the program organization unit product file to be updated is in an abnormal state during the dynamic update process. This avoids the abnormal update content from continuously affecting the gas turbine control system and causing program organization unit update to go out of control, configuration resources to be incomplete, or control logic to be mismatched. Among them, the overflow count reaching the preset threshold indicates that the current update process has not yet reached the update success state within multiple time cycles, thus it can be determined that the current update has exceeded the allowable duration. The abnormality of the program organization unit product file to be updated indicates that the content used to perform the update itself has an abnormal risk. In any of the above situations, terminating the current update can prevent the abnormal state from spreading further. Switching back to the configuration resource execution before the dynamic update can restore the gas turbine control system to the stable operating state before the dynamic update, thereby ensuring that the gas turbine control system can still maintain normal operation based on the original available configuration resources under abnormal update conditions.
[0049] S106, after completing the traversal of each program organization unit, outputs the configuration resource update results.
[0050] Here, by outputting the configuration resource update results after traversing each program organization unit, a unified result feedback can be formed for the dynamic update process of this configuration resource after all program organization units have completed status judgment, update execution and exception handling in sequence. This allows the update status, update completion status and exception handling status of each program organization unit to be presented in a centralized manner.
[0051] In any of the above embodiments, when outputting the configuration resource update result, the first check code corresponding to each program organization unit is updated, and the association relationship is reconstructed based on the updated first check code.
[0052] In this embodiment, by updating the first check code corresponding to each program organization unit when outputting the configuration resource update result, the check information corresponding to each program organization unit can synchronously reflect the current content status after the update after the dynamic update is completed, thereby avoiding the distortion of subsequent status judgment caused by continuing to use the first check code before the update. Reconstructing the association based on the updated first check code enables the unit number of each program organization unit to re-establish an accurate correspondence with the updated first check code. This ensures that when subsequent status requests, check code comparisons, and determination of the program organization unit to be updated are executed again, the check information invoked is consistent with the current actual configuration resource status, thus providing an accurate status basis and association basis for the next round of dynamic updates to configuration resources.
[0053] This invention provides a dynamic update method for gas turbine configuration resources. By dividing the configuration resources of the gas turbine control system into multiple program organization units, and performing state identification, update determination, and targeted updates for each program organization unit based on the association between unit number and check code, the configuration resource updates can be executed in a targeted manner at the program organization unit level. This avoids repeated updates to program organization units that have not changed, thereby improving the efficiency and accuracy of configuration resource updates. Furthermore, by setting up monitoring, anomaly identification, and termination of updates and switching back to the configuration resource execution before dynamic updates during the dynamic update process, the abnormal update can be promptly blocked from continuing to act on the gas turbine control system when an update anomaly occurs, ensuring that the gas turbine control system returns to a stable operating state.
[0054] Another embodiment of the first aspect of the present invention provides specific implementation steps for a method for dynamically updating gas turbine configuration resources. In some embodiments of the present invention, such as... Figure 2 As shown, the specific implementation steps include: S201 divides the gas turbine control system configuration resources into multiple program organization units. The code execution of each program organization unit is independent, and each program organization unit is assigned an independent unit number.
[0055] S202, traverse all program organization units, and generate the CRC32 checksum corresponding to each program organization unit during compilation, forming a set of compilation products of program organization units.
[0056] S203: Generate a hash table using the CRC32 checksum from S202 and the corresponding unit program number. The unit program number serves as the key of the hash table, and the CRC32 checksum serves as the value.
[0057] S204, Initialize an empty list A.
[0058] S205: Traverse the set of compilation artifacts of the program organization unit, obtain the number of the artifact of the current program organization unit, and look up the corresponding CRC32 checksum from the hash table generated in S203 based on the number, assuming it is crc1; S206, the configuration tool constructs a network communication message to request the status of the current program organization unit within the gas turbine controller. The number of the current program organization unit and the checksum CRC1 are written into the network message, and the configuration tool sends the network message to the gas turbine controller.
[0059] S207, the gas turbine controller receives the program organization unit status request message sent by the configuration tool in S205, parses the program organization unit number and program organization unit CRC32 check code in the message, and records the parsed CRC32 check code as crc2.
[0060] S208, the gas turbine controller searches for existing program organization unit products within its program organization unit based on the program organization unit number.
[0061] S209 If the corresponding program organization unit is not found, set the message reply code to UNFOUND and jump to S212.
[0062] S210: If found, read the CRC32 checksum of the queried program organization unit, denoted as crc2. Compare checksum crc1 with checksum crc2. If the checksums are different, set the message reply code to UPADATE and jump to S212.
[0063] S211, if the checksum CRC1 and CRC2 are the same, then set the message reply code to UNCHANGED. Jump to S212.
[0064] S212, the gas turbine controller constructs a response message, writes the program organization unit number and the corresponding message response code into the message, and sends the corresponding response message to the configuration tool.
[0065] S213, the configuration tool parses the gas turbine controller's response message. It retrieves the program organization unit number within the response message and its corresponding response code. Assume the program organization unit number is n and the response code is code1; S214, the configuration tool compares the number of the current program organization unit with the number parsed in the message. If the two are not equal, it jumps to S225.
[0066] S215, if the reply code code1 of the message is equal to UNCHANGED, then jump to S225.
[0067] S216, the configuration tool enables the high-precision timer; the download status is initialized to DOWNLOADING. The timer overflow count is initialized to overflowcnt=0.
[0068] S217, the configuration tool reads the unit program output file, constructs the unit program download message, and sends the download message to the controller.
[0069] S218: If a controller download message is received, the message is parsed to obtain the download result.
[0070] S219, if the download result is SUCCESS, then change the download status from DOWNLOADING to REPLAYSUCCESS; if the download result is FAIL, then change the configuration tool download status to REPLAYFAIL.
[0071] S220, waiting for the timer to overflow.
[0072] S221, a timer overflow signal arrives. The timer overflow signal is captured, and the timer overflow event handling process begins. If overflowcnt >= OVERFLOWMAX, then the process jumps to S224.
[0073] S222, determine the download status of the configuration tool. If the download status is REPLAYSUCCESS, proceed to step 24.
[0074] S223, if the download status is DOWNLOADING or REPLAYFAIL, then set the timer overflow flag overflowcnt = overflowcnt+1. The configuration tool automatically records the timeout period, communication status, and resource monitoring status information. The timer counter value is cleared, and the configuration tool resends the program organization unit update message to the gas turbine controller, jumping to S220.
[0075] S224 clears the timer's overflow value and sets the timer overflow flag overflowcnt to 0. The timer is then turned off.
[0076] S225 After receiving the update message, the controller needs to parse the corresponding program organization unit from the message and go through the program organization unit verification process. If the verification fails, the controller will not update the corresponding configuration resource and will immediately switch back to the original configuration resource for execution.
[0077] In S225, the current program organization unit number and the update result are added to the list initialized in S204. Jump to S205 and continue traversing the next program organization unit.
[0078] S226: Complete the update process for all configured resources, retrieve the contents of the list in S204, and display the configuration resource results to the user.
[0079] Those skilled in the art will recognize that the algorithmic steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this disclosure.
[0080] The above embodiments are only used to illustrate the technical solutions of this disclosure, and are not intended to limit it. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this disclosure, and should all be included within the protection scope of this disclosure.
Claims
1. A method for dynamic updating of gas turbine configuration resources, characterized in that, Includes the following steps: The configuration resources of the gas turbine control system are divided into multiple program organization units, and a unit number is assigned to each program organization unit; each program organization unit is compiled to generate a first check code, and the association between the first check code and the unit number is established; The configuration tool sends a status request message containing a unit number and a second check code to the gas turbine control system, and finds the corresponding program organization unit based on the unit number; The first check code associated with the unit number is determined through the association relationship, the first check code is compared with the second check code and a corresponding reply code is generated, and the reply code is sent to the configuration tool. The configuration tool determines the program organization unit to be updated based on the response code, and sends a program organization unit update message to the gas turbine control system to dynamically update the program organization unit to be updated. During the dynamic update process, monitoring is performed. When an update anomaly is detected, the current update is terminated and the configuration resources before the dynamic update are switched back to be executed. After completing the traversal of each of the program organization units, the configuration resource update results are output.
2. The gas turbine configuration resource dynamic update method according to claim 1, characterized in that, The step of compiling each of the program organization units to generate the first check code includes: Each of the program organization units is compiled to generate a CRC32 checksum as the first checksum.
3. The gas turbine configuration resource dynamic update method according to claim 2, characterized in that, The step of establishing the association between the first verification code and the unit number includes: Obtain the unit number and first check code corresponding to each of the program organization units; A hash table is established using the unit number of each group and the first check code to form the association relationship.
4. The gas turbine configuration resource dynamic update method according to claim 3, characterized in that, The step of the configuration tool sending a status request message containing a unit number and a second checksum to the gas turbine control system includes: Traverse the program organization units to obtain the unit number corresponding to the current program organization unit; The program organizes the unit product file to generate a second check code, and associates the unit number with the second check code. Write the associated unit number and second checksum into the status request message and send it.
5. The method for dynamic updating of gas turbine configuration resources according to claim 1, characterized in that, The response code is generated according to the following rules: If the corresponding program organization unit is not found, a response code containing the not found information is generated; When the corresponding program organization unit is found and the first verification code is inconsistent with the second verification code, a reply code containing update information is generated. When the first check code matches the second check code, a response code containing unchanged information is generated.
6. The method for dynamic updating of gas turbine configuration resources according to claim 5, characterized in that, The step of the configuration tool determining the program organization unit to be updated based on the response code includes: Parse the reply code to obtain update information and the corresponding unit number, and compare the unit number corresponding to the update information with the unit number of each program organization unit; When the unit numbers are consistent, the current program organization unit is determined as the program organization unit to be updated.
7. The method for dynamic updating of gas turbine configuration resources according to claim 1, characterized in that, The steps for dynamically updating the program organization unit to be updated include: Start the timer and initialize the download status; The program organization unit product file to be updated is read, a program organization unit update message is constructed, and sent to the gas turbine control system.
8. The method for dynamic updating of gas turbine configuration resources according to claim 7, characterized in that, The steps for monitoring during the dynamic update process include: Increment the overflow counter when the timer overflows and the download status does not indicate a successful update; When the timer overflows and the overflow count has not reached the preset threshold, the update message is resent. Determine whether the output file of the program organization unit to be updated is in an abnormal state. If so, record the time information, communication status information and resource monitoring status information corresponding to the abnormality.
9. The method for dynamic updating of gas turbine configuration resources according to claim 7, characterized in that, The steps described above, when an update anomaly is detected, to terminate the current update and switch back to the configuration resource execution before the dynamic update, include: When the overflow count reaches a preset threshold and / or the program organization unit output file to be updated is abnormal, terminate the current update and switch back to the configuration resource execution before the dynamic update.
10. The method for dynamic updating of gas turbine configuration resources according to any one of claims 1-9, characterized in that, When outputting the configuration resource update results, the first check code corresponding to each program organization unit is updated, and the association relationship is reconstructed based on the updated first check code.