Method and system for maintaining power failure data of auxiliary steam supply system of nuclear power station and medium
By solidifying the internal operating parameters of the auxiliary steam supply system of the nuclear power plant into the EEPROM memory and loading them into RAM when powered on, the problem of the heater not being able to operate normally after a long period of shutdown is solved, and the normal operation of the heater and the economics of the nuclear power plant are realized. Improved efficiency.
Patent Information
- Application Number
- CN202410890725.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-11-08
AI Technical Summary
When the auxiliary steam supply system of the nuclear power plant is powered on again after a long period of shutdown, it cannot operate normally, resulting in heater failure and affecting the power generation and production efficiency of the power plant.
The internal operating parameters of the heater are solidified into the EEPROM memory and loaded into the RAM memory when the system is powered on to ensure proper operation of the heater. Specific steps include determining internal operating parameters, writing to the user program of the EEPROM memory, and initializing the loading into RAM when the system is powered on.
It ensures that the heater can operate normally when powered on again after a long period of time, improves the economic benefits of the nuclear power plant and solves the problem of failure caused by the loss of parameters.
Smart Images

Figure CN118916212A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data protection, and in particular to a method, system and medium for maintaining power-off data of an auxiliary steam supply system of a nuclear power plant. Background Art
[0002] The auxiliary steam supply system (SVA system) of a nuclear power plant generates steam as the shaft seal of the steam turbine, which plays a vital role in the safe operation of the steam turbine. If it fails, it will cause the loss of the support function of the steam turbine, affecting the power generation and production efficiency of the power plant. The heater of the SVA system is controlled by a PLC controller. The PLC controller uses various forms of memory to store PLC programs and data to prevent data loss. The PLC controller controls the heater startup by calling the operating parameters of the heater in the RAM memory.
[0003] However, when the heaters of several units in a nuclear power plant were powered on again after being shut down for a long time, it was found that the heaters could not operate normally. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a method, system and medium for maintaining power-off data of an auxiliary steam supply system of a nuclear power plant.
[0005] The technical solution adopted by the present invention to solve the technical problem is: a method for maintaining power-off data of an auxiliary steam supply system of a nuclear power plant, comprising the following steps:
[0006] Determine the internal operating parameters of the heater;
[0007] Solidify the internal operating parameters into EEPROM memory;
[0008] When the system is powered on, the internal operating parameters in the EEPROM memory are loaded into the RAM memory so that the heater can operate normally.
[0009] Furthermore, in the power-off data retention method for the auxiliary steam supply system of a nuclear power plant described in the present invention, the step of solidifying the internal operating parameters into the EEPROM memory includes:
[0010] The internal operating parameters are written into a user program stored in the EEPROM memory.
[0011] Furthermore, in the power-off data retention method for the auxiliary steam supply system of a nuclear power plant of the present invention, each time the system is powered on, the internal operating parameters in the EEPROM memory are loaded into the RAM memory to control the normal operation of the heater, including:
[0012] Each time the system is powered on, the user program of the EEPROM memory is loaded into the RAM memory, and at the same time, the internal operating parameter assignment is performed by initialization in the first scanning cycle so that the heater can operate normally.
[0013] Furthermore, in the power-off data retention method for the auxiliary steam supply system of a nuclear power plant according to the present invention, the step of writing the internal operating parameters into the user program stored in the EEPROM memory includes:
[0014] The internal operating parameters are written into a user program based on a memory status flag bit of a calling initialization subroutine; wherein the memory status flag bit based on a calling initialization subroutine is 1 in the first scanning cycle.
[0015] Furthermore, in the power-off data retention method for the auxiliary steam supply system of a nuclear power plant described in the present invention, before the step of solidifying the internal operating parameters into the EEPROM memory, it also includes:
[0016] determining a current storage location of the internal operating parameters;
[0017] Determining whether the current storage location is a RAM memory;
[0018] If yes, the step of fixing the internal operating parameters to the EEPROM memory is performed.
[0019] Furthermore, in the power-off data retention method for the auxiliary steam supply system of a nuclear power plant described in the present invention, the internal operating parameters include the outlet temperature setting parameters of the heater, the outlet temperature upper limit setting value, the outlet temperature lower limit setting value, the surface temperature 1 alarm setting value, the surface temperature 2 alarm setting value and the PID parameters.
[0020] In addition, the present invention also provides a power-off data retention system for an auxiliary steam supply system of a nuclear power plant, comprising:
[0021] a determination unit, for determining internal operating parameters of the heater;
[0022] A curing unit, used for curing the internal operating parameters into an EEPROM memory;
[0023] The loading unit is used to load the internal operating parameters in the EEPROM memory into the RAM memory when the system is powered on, so that the heater can operate normally.
[0024] In addition, the present invention also provides a computer-readable storage medium storing a computer program, wherein the computer program is suitable for loading by a processor to execute the steps of the power-off data retention method for the auxiliary steam supply system of a nuclear power plant as described above.
[0025] In addition, the present invention also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the steps of the above-mentioned method for maintaining power-off data of the auxiliary steam supply system of a nuclear power plant by calling the computer program stored in the memory.
[0026] In addition, the present invention also provides a computer program, including computer instructions, which are stored in a computer-readable storage medium and are suitable for being loaded by a processor and executed by the power-off data retention method for the auxiliary steam supply system of a nuclear power plant as described above.
[0027] The method, system and medium for maintaining power-off data of the auxiliary steam supply system of a nuclear power plant implementing the present invention have the following beneficial effects: the present invention solidifies the operating parameters of the SVA system heater into an EEPROM memory with a power-off data preservation function, so that the heater can still operate normally when it is powered on again after a long period of shutdown, thereby further improving the economic benefits of the nuclear power plant. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:
[0029] Figure 1 It is a flow chart of a method for maintaining power-off data of an auxiliary steam supply system of a nuclear power plant according to an embodiment of the present invention;
[0030] Figure 2 is a flow chart of a method for maintaining power-off data of an auxiliary steam supply system of a nuclear power plant according to some embodiments of the present invention;
[0031] Figure 3 It is a structural schematic diagram of a power-off data retention system of an auxiliary steam supply system of a nuclear power plant according to an embodiment of the present invention;
[0032] Figure 4 It is a schematic diagram of the procedure for parameter solidification of some embodiments of the present invention. DETAILED DESCRIPTION
[0033] In order to have a clearer understanding of the technical features, purposes and effects of the present invention, specific embodiments of the present invention are now described in detail with reference to the accompanying drawings.
[0034] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.
[0035] In order to facilitate the understanding of the present invention, the present invention will be described more fully below, and the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.
[0036] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0037] In a preferred embodiment, reference Figure 1 The power-off data retention method of the auxiliary steam supply system of a nuclear power plant of this embodiment comprises the following steps:
[0038] S1. Determine the internal operating parameters of the heater. Specifically, the internal operating parameters include the outlet temperature setting parameter, the outlet temperature upper limit setting value, the outlet temperature lower limit setting value, the surface temperature 1 alarm setting value, the surface temperature 2 alarm setting value and the PID parameters of the heater.
[0039] S2. Solidify the internal operating parameters into the EEPROM memory.
[0040] S3. When the system is powered on, the internal operating parameters in the EEPROM memory are loaded into the RAM memory so that the heater can operate normally.
[0041] This embodiment solidifies the operating parameters of the SVA system heater into an EEPROM memory with a power-off data preservation function, so that the heater can still operate normally when it is powered on again after a long period of shutdown, further improving the economic benefits of the nuclear power plant.
[0042] In some embodiments, the step of fixing the internal operating parameters into the EEPROM memory includes:
[0043] Write the internal operating parameters to the user program stored in the EEPROM memory.
[0044] It can be understood that the internal operating parameters are written into the user program based on the memory status flag bit of the calling initialization subroutine, wherein the memory status flag bit based on the calling initialization subroutine is 1 in the first scanning cycle.
[0045] Based on the above embodiment, each time the system is powered on, the internal operating parameters in the EEPROM memory are loaded into the RAM memory to control the normal operation of the heater, including:
[0046] Each time the system is powered on, the user program in the EEPROM memory is loaded into the RAM memory, and the internal operating parameters are assigned by initialization in the first scanning cycle to enable the heater to operate normally.
[0047] That is to say, after the internal operating parameters are written into the user program based on the memory status flag that calls the initialization subroutine, each time the system is powered on, the user program in the EEPROM memory is loaded into the RAM memory, and the internal operating parameters are assigned through initialization in the first scanning cycle, so that the heater can operate normally.
[0048] In some embodiments, reference Figure 2 , before the step of solidifying the internal operating parameters into the EEPROM memory, it also includes:
[0049] S41. Determine the current storage location of the internal operating parameters.
[0050] S42: Determine whether the current storage location is a RAM memory.
[0051] If yes, the step of solidifying the internal operating parameters into the EEPROM memory is executed.
[0052] That is to say, when it is determined that the current storage location of the internal operating parameters is located in the RAM memory, step S2 is executed, that is, the internal operating parameters are solidified into the EEPROM memory. Specifically, the internal operating parameters are written into the user program based on the memory status flag bit of the calling initialization subroutine. Among them, the memory status flag bit based on the calling initialization subroutine is 1 in the first scanning cycle.
[0053] This embodiment solidifies the operating parameters of the SVA system heater into an EEPROM memory with a power-off data preservation function, so that the heater can still operate normally when it is powered on again after a long period of shutdown, further improving the economic benefits of the nuclear power plant.
[0054] The following uses the S7-200 PLC controller as an example to illustrate the working principle of the present application in detail.
[0055] In the related technology, the memory that S7-200 can use mainly includes the following types:
[0056] ①ROM: Its performance characteristics are equivalent to the BIOS of a computer motherboard. It stores important codes such as the PLC's hardware input and output drivers, data bus, and communication bus interface information. The data in this area cannot be accessed or modified. The manufacturer writes the relevant firmware into the ROM when it leaves the factory.
[0057] ②RAM: RAM memory is equivalent to the computer's memory bar, used to store PLC operations, processing results and other data, that is, to store various data that need to be calculated when the program is running. The speed of data reading and writing is very fast, but the disadvantage is that the data cannot be saved after the PLC is powered off. The data in RAM can be maintained by a farad capacitor or an external battery (optional). Its storage time is subject to the power of the farad capacitor or the external battery. The farad capacitor alone can achieve a storage time of about 50-100 hours, and the external expansion battery can achieve a storage time of about 200 days when fully charged. When the CPU is working, the data in the storage areas such as V, M, T, C, and Q are all stored in the RAM memory. The parameter addresses of the field heater (SVA201RS) are all stored in the V storage area of the RAM memory.
[0058] ③EEPROM: It is equivalent to the hard disk of a computer, used to store user-written programs, and the programs will not be lost even if the power is off. After the user downloads the program to the PLC, the user-written program is written to the EEPROM memory. Each time the MCU is powered on, it will load the user program from the EEPROM to the RAM for operation. The number of write operations to the EEPROM is limited (at least 100,000 times, and the typical value is 1 million times), so please note that the save operation should only be performed when necessary. Otherwise, the EEPROM may fail, causing CPU failure. Generally speaking, storage operations are performed only when specific events occur, and specific events must not occur frequently. For example, if the S7-200 scan cycle is 50ms, and one data is stored each time the scan, then the EEPROM can only work for a minimum of 5000 seconds, less than an hour and a half. On the other hand, if one data is stored every hour, the EEPROM can work for at least 11 years. If the number of writes to the EEPROM exceeds the limit, the CPU needs to be replaced as a whole.
[0059] There is a lot of data interaction between the PLC's RAM and EEPROM. The specific interactions are as follows:
[0060] ① Downloading user programs: When downloading a program, the program is first stored in RAM. S7-200 will automatically copy the program block, data block and system block to EEPROM for permanent storage.
[0061] ②Upload user program: When uploading the program to the PC, S7-200 uploads the system block from the RAM and the program block and data block from the EEPROM.
[0062] ③ Save M storage area data after power failure: If the first 14 bytes of the M storage area (MB0 to MB13) are defined as power failure retention, these bytes will be permanently saved in the EEPROM when the S7-200 CPU loses power. That is, the S7-200 moves these M storage areas to the EEPROM.
[0063] ④ Data recovery after power-on: After power-on, S7-200 recovers program blocks and system blocks from EEPROM. At the same time, the CPU checks the RAM memory to confirm whether the supercapacitor has successfully saved the data in the RAM memory. If successfully saved, the retention area of the RAM memory will remain unchanged. The retention area and non-retention area in the V memory are restored from the corresponding areas in the EEPROM. If the contents of the RAM memory are not retained (for example, a long power outage), the CPU will clear the RAM memory (including the retention area and non-retention area) and set the retention data loss flag (SM0.2) to "1" in the first scan cycle after power-on. Then, the data in the EEPROM is restored to the RAM.
[0064] Before the improvement, after several units of a nuclear power plant were shut down for a long time, the SVA201RS could not operate normally when they were powered on again. After inspection, it was found that the reason why the SVA201RS could not operate was that the internal operating parameters were stored in the RAM memory. Due to the power failure of the PLC, its storage time was limited by the power of the farad capacitor or the external battery. The farad capacitor alone can achieve a storage time of about 50-100 hours (normal power failure exceeds 100 hours), and the external expansion battery can achieve a storage time of about 200 days when fully charged. After testing, it was found that the external expansion battery had poor contact, which led to the loss of parameters, and then caused the SVA201RS to fail to operate.
[0065] For this purpose, the technical solution of this application is proposed, such as Figure 4 As shown, the internal operating parameters are solidified into the EEPROM, and the parameters are written into the user program. Since the user program is stored in the EEPROM memory of the PLC, the EEPROM memory has a power-off preservation function, so that the internal operating parameters can still be maintained after a long power outage, so that the heater can operate normally.
[0066] Specifically, the S7-200 PLC has some special status memory flags, see Table 1, where SM0.1 is 1 in the first scan and remains 0 in subsequent scan cycles. One of the uses of SM0.1 is to call the initialization subroutine. Figure 3 As shown, it is a logical diagram of adding a parameter curing program in the user program, which is used to write the internal operating parameters into the parameter address of the heater in the first scanning cycle after the PLC is powered on, and these internal operating parameters can be automatically called during subsequent program execution.
[0067] Table 1S7-200 PLC status memory flag bits
[0068]
[0069] In some embodiments, based on the online editing function of S7-200 PLC, SVA201RS does not need to be shut down when the parameter is added to the first line of the user program to solidify the program.
[0070] This embodiment solidifies the operating parameters of the SVA system heater into an EEPROM memory with a power-off data preservation function, so that the heater can still operate normally when it is powered on again after a long period of shutdown, further improving the economic benefits of the nuclear power plant.
[0071] In another preferred embodiment, reference Figure 3 The power-off data retention system of the auxiliary steam supply system of a nuclear power plant of this embodiment includes:
[0072] The determination unit is used to determine the internal operating parameters of the heater.
[0073] The curing unit is used to cure the internal operating parameters into the EEPROM memory.
[0074] The loading unit is used to load the internal operating parameters in the EEPROM memory into the RAM memory when the system is powered on, so that the heater can operate normally.
[0075] In another preferred embodiment, the computer-readable storage medium of this embodiment stores a computer program, and the computer program is suitable for loading by a processor to execute the steps of the power-off data retention method for the auxiliary steam supply system of a nuclear power plant as in the above-mentioned embodiment.
[0076] In another preferred embodiment, the computer device of this embodiment includes a memory and a processor, the memory stores a computer program, and the processor executes the steps of the power-off data retention method of the auxiliary steam supply system of a nuclear power plant as in the above embodiment by calling the computer program stored in the memory.
[0077] In another preferred embodiment, the computer program of this embodiment includes computer instructions, which are stored in a computer-readable storage medium, and the computer instructions are suitable for being loaded by a processor and executed by the power-off data retention method of the auxiliary steam supply system of a nuclear power plant as in the above-mentioned embodiment.
[0078] In this embodiment, the problem that the heater cannot be started normally after being shut down for a long time is completely solved by fixing the internal operating parameters into the EEPROM memory, writing the parameters into the user program, and changing the storage location of the internal operating parameters of the heater.
[0079] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0080] It can be understood that the above embodiments only express the preferred implementation modes of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the patent scope of the present invention. It should be pointed out that, for ordinary technicians in this field, the above technical features can be freely combined without departing from the concept of the present invention, and several deformations and improvements can be made, which all belong to the protection scope of the present invention. Therefore, all equivalent changes and modifications made to the scope of the claims of the present invention should belong to the coverage of the claims of the present invention.
Claims
1. A method for maintaining power-off data of an auxiliary steam supply system of a nuclear power plant, characterized in that: The following steps are involved: Determine the internal operating parameters of the heater; Solidify the internal operating parameters into EEPROM memory; When the system is powered on, the internal operating parameters in the EEPROM memory are loaded into the RAM memory so that the heater can operate normally.
2. The power-off data retention method for the auxiliary steam supply system of a nuclear power plant according to claim 1, characterized in that: The step of solidifying the internal operating parameters into the EEPROM memory includes: The internal operating parameters are written into a user program stored in the EEPROM memory.
3. The power-off data retention method for the auxiliary steam supply system of a nuclear power plant according to claim 2, characterized in that: The step of loading the internal operating parameters in the EEPROM memory into the RAM memory to control the normal operation of the heater each time the system is powered on includes: Each time the system is powered on, the user program of the EEPROM memory is loaded into the RAM memory, and at the same time, the internal operating parameter assignment is performed by initialization in the first scanning cycle so that the heater can operate normally.
4. The power-off data retention method for the auxiliary steam supply system of a nuclear power plant according to claim 2, characterized in that: The step of writing the internal operating parameters into the user program stored in the EEPROM memory includes: The internal operating parameters are written into a user program based on a memory status flag bit of a calling initialization subroutine; wherein the memory status flag bit based on a calling initialization subroutine is 1 in the first scanning cycle.
5. The power-off data retention method for the auxiliary steam supply system of a nuclear power plant according to claim 1, characterized in that: Before the step of solidifying the internal operating parameters into the EEPROM memory, the method further includes: determining a current storage location of the internal operating parameters; Determining whether the current storage location is a RAM memory; If yes, the step of fixing the internal operating parameters to the EEPROM memory is performed.
6. The power-off data retention method for the auxiliary steam supply system of a nuclear power plant according to claim 1, characterized in that: The internal operating parameters include the outlet temperature setting parameter of the heater, the outlet temperature upper limit setting value, the outlet temperature lower limit setting value, the surface temperature 1 alarm setting value, the surface temperature 2 alarm setting value and the PID parameters.
7. A power-off data retention system for an auxiliary steam supply system of a nuclear power plant, characterized in that: include: a determination unit, for determining internal operating parameters of the heater; A curing unit, used for curing the internal operating parameters into an EEPROM memory; The loading unit is used to load the internal operating parameters in the EEPROM memory into the RAM memory when the system is powered on, so that the heater can operate normally.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute the steps of the power-off data retention method for an auxiliary steam supply system of a nuclear power plant as described in any one of claims 1 to 6.
9. A computer device, characterized in that: It comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the steps of the power-off data retention method for the auxiliary steam supply system of a nuclear power plant as described in any one of claims 1 to 6 by calling the computer program stored in the memory.
10. A computer program, characterized in that The method comprises computer instructions, which are stored in a computer-readable storage medium and are suitable for being loaded by a processor and executed by the power-off data retention method for the auxiliary steam supply system of a nuclear power plant as described in any one of claims 1 to 6.
