A method and system for automatically backing up lower computer programs based on power monitoring system
By using Windows engineer workstations and network channels in the hydropower station computer monitoring system, the configuration files of different brands of PLCs are generated, and the operating status of the lower computer is monitored in real time databases, the fully automatic backup of the user logic control program of the lower computer in the hydropower station computer monitoring system is achieved, solving the problem of complex and uncommon backup in the existing technology, and improving the reliability and management efficiency of the backup.
Patent Information
- Application Number
- CN202411848915.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-16
- Publication Date
- 2025-04-08
AI Technical Summary
In the prior art, the user program backup of the PLC of the computer monitoring system for hydropower stations is complex and not universal. Operations and maintenance personnel need to backup manually, which is complicated and requires high professional skills, and increases economic and work burden.
By using the existing Windows engineer workstations and network channels of the hydropower station computer monitoring system, the configuration files of PLCs of different brands are generated, combined with real-time databases to monitor the operating status of the computer, and fully automatic backup is achieved. It is suitable for PLCs of various brands, without the need for additional supporting software and hardware, and reduce operating costs.
It realizes fully automatic backup of the logic control program of the computer under the computer monitoring system of the hydropower station, reduces the professional skills requirements of operation and maintenance personnel, avoids the reliability risks brought about by manual intervention, and improves the reliability and management efficiency of backups.
Smart Images

Figure CN119782043A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of power monitoring and computer technology, and specifically relates to a method and system for automatically backing up a lower computer program based on a power monitoring system. Background Art
[0002] At present, the operation of hydropower stations is developing from the traditional "unmanned and few-person" mode to the intelligent mode, so higher requirements are put forward for the operation and maintenance of hydropower stations. However, due to the large number of brands of programmable logic controllers (PLC) of the lower computer LCU of the current hydropower station computer monitoring system, there are foreign brands such as Siemens, Schneider, GE (General Electric), and many domestic PLC brands. The program backup of each brand of PLC controller is different, which makes the backup of user logic control program extremely complicated. The operation and maintenance personnel can only manually back up each lower computer in each power station, such as generator set, switch station, public or gate, etc., which is not only cumbersome to operate, but also requires high professional skills of the operation and maintenance personnel, and it is not easy to manage and retrieve the backup program. In addition, for the situation of a large number of hydropower stations under jurisdiction, it not only increases the economic burden and the workload of the operation and maintenance personnel, but also easily leads to a series of problems such as repeated backup and program coverage.
[0003] The existing patent application (application number: 201710835885.0) proposes a method for backing up and restoring the computer monitoring system data of a hydropower station. The patent application not only backs up the upper computer development program and host operating system of the hydropower station computer monitoring system, but also backs up the operation database (historical database) generated by the hydropower plant, the lower computer PLC program and configuration information, network equipment, security equipment, communication equipment and other special equipment based on Ethernet or CONCLE port configuration, and uniformly manages the backup data of all equipment. However, the backup of PLC in the above-mentioned prior art is to directly read the device management interface, use protocol conversion, convert the serial port RS232 to the network protocol, and then perform centralized backup. For most PLC brands, the device management interface (usually a serial port) can only modify the configuration parameters of the PLC itself, but cannot back up the user program. Therefore, for the backup of PLC, the above-mentioned prior art is not universal; in addition, the network cloud storage method adopted by the data storage server in the above-mentioned prior art does not meet the increasingly stringent secondary security requirements of the power monitoring system, and needs to be equipped with corresponding software and hardware equipment, which increases the operating cost. Summary of the invention
[0004] In order to solve the current problem of user program backup in the lower computer of the computer monitoring system of a hydropower station, the present application proposes an automatic backup method and system for the lower computer program based on the power monitoring system. The present application utilizes the existing Windows engineer workstation and network channel of the computer monitoring system. Through simple configuration, the user logic control program of the lower computer of the hydropower station computer monitoring system can be fully automatically backed up. The professional skills requirements for the operation and maintenance personnel are low, and there is no additional increase in operating costs. The backup process is fully automatic, no human intervention is required, and human risks are reduced.
[0005] This application is implemented through the following technical solutions:
[0006] A method for automatically backing up a lower computer program based on an electric power monitoring system, the method comprising:
[0007] Use the Windows workstation of the host computer of the hydropower station computer monitoring system as the backup workstation or use the Windows workstation in the computer monitoring system of the centralized control center as the backup workstation;
[0008] Generate different configuration files for programmable logic controllers of different brands through the backup workstation;
[0009] The backup workstation obtains the operating status of each slave computer of the hydropower station computer monitoring system in real time and stores it in a real-time database;
[0010] The operating status of each slave computer in the real-time database is automatically detected at a fixed time or according to a preset time period, and the corresponding configuration file is executed to automatically back up the program in the programmable logic controller of the slave computer that meets the backup conditions.
[0011] In some embodiments, the Windows workstation of the host computer of the hydropower station computer monitoring system is used as a backup workstation, specifically including:
[0012] Using the Windows workstation of the host computer of the hydropower station computer monitoring system as a backup workstation;
[0013] The existing optical fiber channel is used to realize the network connection between the backup workstation and each lower computer of the hydropower station computer monitoring system.
[0014] In some implementations, the Windows workstation in the computer monitoring system of the centralized control center is used as a backup workstation, specifically including:
[0015] Using the Windows workstation in the computing monitoring system of the centralized control center as a backup workstation;
[0016] The specific process of gateway routing configuration between the backup workstation in the computer monitoring system of the centralized control center and the lower computers of the computer monitoring system of each hydropower station under its jurisdiction is as follows:
[0017] A communication gateway with the computer monitoring system of each hydropower station under its jurisdiction is configured in the backup workstation, and a gateway for communicating with the backup workstation is configured in each lower computer of the computer monitoring system of each hydropower station under its jurisdiction.
[0018] In some implementations, generating different configuration files for programmable logic controllers of different brands by the backup workstation specifically includes:
[0019] After the programming software in the programmable logic controller is installed, the two-dimensional position coordinates of the executable shortcut are generated on the Windows desktop, and the two-dimensional position coordinates are recorded through a configuration file;
[0020] When the position of the executable shortcut of the programming software in the programmable logic controller changes, the keywords of the executable shortcut of the programming software of the programmable logic controller on the Windows desktop or the icons of the executable shortcut are automatically scanned and compared, and when the corresponding executable shortcut is matched, the corresponding two-dimensional position coordinates in the configuration file are automatically updated;
[0021] When the text description of the executable shortcut of the programming software in the programmable logic controller changes, the icons of the executable shortcut of the programming software of the programmable logic controller on the Windows desktop are automatically scanned, screened and compared, and after matching the corresponding executable shortcut, the corresponding two-dimensional coordinate position in the configuration file is automatically updated;
[0022] The entire backup process is manually implemented by the operation and maintenance personnel, and the mouse and keyboard operation process of the operation and maintenance personnel in the manual backup process is automatically recorded in the configuration file, completing the recording of the backup operation process of the programming software in programmable logic controllers of different brands;
[0023] At the same time, the operation steps for controlling the mouse and the time intervals between different steps are also saved in the configuration file.
[0024] In some implementations, the operation and maintenance personnel manually implement the entire backup process, specifically including:
[0025] Determine whether the operation status of each slave computer of the hydropower station computer monitoring system is a shutdown state or a debugging state. If yes, continue with the subsequent steps to perform backup, otherwise, do not perform backup;
[0026] Open the programming software in the programmable logic controller on the Windows desktop, maximize the window of the control programming software, and display it on the full screen;
[0027] The control programming software automatically loads the lower computer project files that need to be backed up;
[0028] The control programming software automatically uploads the user program currently running in the programmable logic controller to the backup workstation;
[0029] Save the uploaded user program;
[0030] According to the backup requirements of different brands of programmable logic controllers, the complete backup process is implemented in the configuration file according to the above steps to form configuration files of different brands of programmable logic controllers;
[0031] In addition, an appropriate time interval needs to be set between each mouse and keyboard operation step so that the programming software can complete the opening, uploading, or saving work within the time interval.
[0032] In some embodiments, the real-time acquisition of the operating status of each slave computer of the hydropower station computing monitoring system by the backup workstation and the storage in the real-time database specifically includes:
[0033] The backup workstation uses polling to obtain the real-time operating status of each slave computer;
[0034] Deploy a MODBUS server in the host or communication machine of the hydropower station computer monitoring system to collect the real-time operating status of each slave computer;
[0035] A MODBUS client is deployed on the backup workstation to receive the communication data of the MODBUS server in real time, so as to obtain the real-time operation status of each slave computer;
[0036] After the backup workstation obtains the real-time operating status of each slave computer, it is saved in the real-time database of the backup workstation. When executing the automatic backup process, the real-time operating status of the slave computer is obtained from the real-time database and then judged, and then subsequent automatic backup is performed.
[0037] In some embodiments, the real-time acquisition of the operating status of each slave computer of the hydropower station computing monitoring system by the backup workstation and the storage in the real-time database specifically includes:
[0038] Deploy a MODBUS server in the host or communication machine of the computer monitoring system of the centralized control center to collect the real-time operating status of each slave computer of the computer monitoring system of the hydropower station under its jurisdiction;
[0039] A MODBUS client is deployed on the backup workstation to receive the communication data of the MODBUS server in real time, so as to obtain the real-time operation status of each slave computer;
[0040] After the backup workstation obtains the real-time operating status of each slave computer, it is saved in the real-time database of the backup workstation. When executing the automatic backup process, the real-time operating status of the slave computer is obtained from the real-time database and then judged, and then subsequent automatic backup is performed.
[0041] In some implementations, the automatic detection of the operating status of each slave computer in the real-time database and the execution of the corresponding configuration file to automatically back up the program in the programmable logic controller of the slave computer that meets the backup conditions specifically include:
[0042] Automatically detect the operating status of each slave computer in the real-time database. If the unit slave computer is in a shutdown state or a debugging state, or the non-unit slave computer is in a debugging state, start executing the corresponding configuration file to realize the automatic backup operation; otherwise, continue to detect the operating status of other slave computers;
[0043] After the automatic backup is completed, the corresponding lower computer automatic backup file in the backup folder will be automatically updated to the latest user program in the programmable logic controller.
[0044] In some implementations, the automatic detection of the operating status of each slave computer in the real-time database and the execution of the corresponding configuration file to automatically back up the program in the programmable logic controller of the slave computer that meets the backup conditions also include:
[0045] After completing the polling and automatic backup of all lower machines, the disk space will be checked. When the available disk space is less than the threshold, an alarm will be issued to remind the operation and maintenance personnel to clean up the disk space in time.
[0046] On the other hand, the present application also proposes a lower computer program automatic backup system based on a power monitoring system, the lower computer program automatic backup system comprising:
[0047] A configuration unit, wherein the configuration unit generates different configuration files for programmable logic controllers of different brands through a backup workstation; wherein the Windows workstation of the host computer of the hydropower station computer monitoring system or the Windows workstation in the computer monitoring system of the centralized control center is used as the backup workstation;
[0048] A real-time monitoring unit, which obtains the operating status of each slave computer of the hydropower station computer monitoring system in real time through the backup workstation and stores it in a real-time database;
[0049] And, a backup execution unit, which automatically detects the operating status of each slave computer in the real-time database at a fixed time or according to a preset time period, and executes the corresponding configuration file to automatically back up the program in the programmable logic controller of the slave computer that meets the backup conditions.
[0050] The present application proposes an automatic backup method and system for the lower computer program based on the power monitoring system. By utilizing the existing Windows engineer workstation and network communication of the computing monitoring system, by generating configuration files for PLCs of different brands, combined with the real-time monitoring of the operating status of each lower computer of the hydropower station, the user logic control program of the lower computer of the computing monitoring system of the hydropower station can be fully automatically backed up. The method and system can be applied to PLCs of various brands, and neither requires additional matching corresponding software and hardware equipment nor increases the operating cost. The method is easy to implement, and the backup process is fully automatic. The requirements for the professional skills of the operation and maintenance personnel are relatively low, and no manual intervention is required, thereby avoiding human errors and improving reliability.
[0051] The present application proposes an automatic backup method and system for the lower computer program based on the power monitoring system, which has good universality, is independent of the software and hardware equipment of the power generation enterprise, can significantly improve the operation, maintenance and management level of the power generation enterprise, and has extremely high engineering practical value. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] The drawings described herein are used to provide a further understanding of the embodiments of the present application, constitute a part of the present application, and do not constitute a limitation on the embodiments of the present application. In the drawings:
[0053] Figure 1 A flow chart of the method proposed in the embodiment of the present application;
[0054] Figure 2 This is an example of the structure of a computer monitoring system for a hydropower station;
[0055] Figure 3 This is the automatic backup execution process in the embodiment of the present application;
[0056] Figure 4 This is a block diagram of the system principles proposed in the embodiments of the present application. DETAILED DESCRIPTION
[0057] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with examples and drawings. The illustrative implementation scheme of the present application and its description are only used to explain the present application and are not intended to limit the present application.
[0058] Example:
[0059] At present, the backup of the lower computer program of the computer monitoring system of the hydropower station mainly includes manual backup and automatic backup. However, the manual backup method is complicated to operate, requires high professional skills of the operation and maintenance personnel, is not convenient for management and retrieval, and is prone to human errors. The automatic backup method is not very applicable and requires corresponding software and hardware equipment, which increases the operating cost. In view of this, this embodiment proposes an automatic backup method for the lower computer program based on the power monitoring system. The automatic backup method proposed in this embodiment uses the existing Windows engineer workstation and network channel of the hydropower station computer monitoring system. Through simple configuration, the full automatic backup of the user logic control program of the lower computer of the hydropower station monitoring system can be realized. The professional skills of the operation and maintenance personnel are relatively low, and no additional supporting software and hardware are required. While reducing the operating cost, it is also easy to deploy and manage.
[0060] like Figure 1 As shown, the method for automatically backing up the lower computer program proposed in this embodiment specifically includes the following steps:
[0061] Step 100, using the Windows workstation of the host computer of the hydropower station computer monitoring system as a backup workstation or using the Windows workstation in the computer monitoring system of the centralized control center as a backup workstation.
[0062] This embodiment takes a hydropower station as an example, which deploys a computer monitoring system to realize the monitoring and control of the hydropower station units, auxiliary machines, gates, line switches, etc. The monitoring system and local control units such as the unit LCU, public LCU, gate LCU, and switch station LCU perform data collection and network communication through optical fiber.
[0063] The schematic diagram of the computer monitoring system of a hydropower station is as follows: Figure 2 The monitoring system of a hydropower station is structurally divided into a host computer and a slave computer. The host computer refers to the server and workstation deployed in the central control room and computer room, such as: host, operator station, engineer station (Windows workstation), communication workstation, motion workstation, etc. The slave computer refers to the LCU local control unit deployed in the generator layer or switch station, etc. The LCU local control unit includes a programmable logic controller (PLC) and its sensors, transmitters and other electronic equipment.
[0064] This embodiment uses the Windows workstation of the host computer of the hydropower station computer monitoring system as the backup workstation. While meeting the secondary safety protection requirements, the PLC user logic control program of each LCU of the hydropower station is backed up and managed uniformly.
[0065] Based on this, the backup workstation and each lower-level LCU use the existing fiber optic channel to achieve network connection. The backup workstation generates different configuration files for PLCs of different brands to automatically back up the user logic control program. There is no need to add additional software and hardware equipment, which reduces operating costs. In addition, the backup workstation's Windows operating system is used to achieve fully automatic execution of the backup.
[0066] Furthermore, if a power generation enterprise has multiple hydropower stations under its jurisdiction and has set up a regional (watershed) centralized control center, the Windows workstation in the centralized control center computer monitoring system can be used as a backup workstation to implement the backup of the PLC user logic control program of the LCU of each hydropower station under its jurisdiction. At this time, it is necessary to configure the gateway routing between the Windows backup workstation and the lower computer of each hydropower station monitoring system in the centralized control center computer monitoring system. The specific implementation process is as follows: configure a communication gateway with each power station in the Windows engineer workstation of the centralized control center monitoring system, and configure a gateway for communication with the centralized control center in the PLC of the LCU of each power station, so that the backup workstation of the centralized control center can be connected to the PLC of the LCU of each power station.
[0067] Step 200: Generate different configuration files for programmable logic controllers of different brands through a backup workstation.
[0068] Specifically, in step 200, different configuration files are generated for PLCs of different brands, and the location coordinates of executable shortcuts in the PLC programming software, keywords of executable shortcuts, icons of executable shortcuts, and PLC backup operation processes can be saved in the configuration files. The specific process is as follows:
[0069] (1) After the PLC programming software is installed, the two-dimensional position coordinates of the executable shortcut are generated on the Windows desktop and recorded in the configuration file. The shortcut can automatically open the PLC programming software by controlling the mouse click or the monitor shortcut key.
[0070] (2) After the location of the PLC programming software shortcut changes, the system can also automatically scan the keywords of the PLC executable shortcuts or the icons of the executable shortcuts on the Windows desktop for screening and comparison. After matching the PLC programming software, the coordinates of the corresponding PLC programming software in the configuration file are automatically updated.
[0071] (3) If the text description of the PLC programming software shortcut changes, all executable shortcut icons on the Windows desktop are scanned and filtered. After matching the PLC programming software, the coordinates of the corresponding PLC software in the configuration file are automatically updated.
[0072] (4) The PLC backup operation process in the configuration file refers to the information recorded and saved during the entire operation process of the mouse and keyboard, such as mouse keystroke operations (left button, middle button, right button), operation delay, mouse click coordinates, keyboard operations (letters, symbols, direction arrows, shortcut keys, etc.). This operation process is initially a manual backup process for PLCs of different brands that is manually implemented.
[0073] (5) The configuration file can also save the operation steps for controlling the mouse and the time intervals between different steps.
[0074] At present, the programming software of all brands of PLCs must be installed on the Windows operating system. The programming software can be used to write, configure, debug, upload and download user logic control programs. The manual backup process is as follows: After the PLC programming software is opened, the user logic control program is backed up during the specific implementation process according to the different brands of PLC programming software. The backup process is manually implemented by the operation and maintenance personnel. The entire manual backup process will be fully recorded, and the mouse and keyboard operation process in the manual backup by the operation and maintenance personnel will be automatically recorded in the configuration file. The configuration files of each brand of PLC are different. This embodiment takes the Unity Pro programming software of Schneider PLC as an example to explain the above backup process in detail, as follows:
[0075] (1) Determine whether the operating status of each LCU of the hydropower station is shutdown or debugging, and only back up the LCU in shutdown or debugging status. The LCU in power generation or operation status will be automatically skipped and not backed up.
[0076] (2) After the PLC programming software is opened, control the mouse to click the maximize icon of the PLC programming software window to maximize the programming software window and display it on the full screen.
[0077] (3) Open the LCU project file to be backed up. Control the mouse to click the "File" menu of the PLC programming software, click "Open" in the drop-down menu, and select the project file to be automatically backed up in the pop-up window. The PLC programming software will automatically load the corresponding LCU project file, which contains the parameters, thresholds, and control logic of the user logic control program.
[0078] (4) Upload the LCU user program that needs to be backed up. Control the mouse to click the "Debug" menu of the PLC programming software, and click "Upload" in the drop-down menu. The PLC programming software will automatically upload the user program currently running in the LCU programmable controller to the Windows backup workstation.
[0079] (5) Save the uploaded LCU user program. Control the mouse to click the "File" menu of the PLC programming software, click "Save" in the drop-down menu, and select the automatic backup folder in the pop-up window. After confirmation, the PLC programming software will automatically save the user program to the corresponding folder.
[0080] (6) According to the backup requirements of different brands of PLC, implement the complete backup process step by step in the configuration file to form the configuration files corresponding to different brands of PLC. It should be noted that a suitable time interval should be set between each mouse and keyboard operation step so that the PLC programming software can complete the opening, uploading, saving and other tasks within the time interval.
[0081] Step 300, the operating status of each slave computer of the hydropower station computer monitoring system is obtained in real time through the backup workstation and stored in the real-time database.
[0082] In the computer monitoring system of a hydropower station, the power generation status of each generator set, the operating status of auxiliary machines, gates or switch stations are all very important equipment statuses. They are status quantities that must be configured in the computer monitoring system and can be provided to different applications through the monitoring system function library interface.
[0083] In a hydropower station, the generating units in power generation state or the auxiliary units, gates, switch stations and other non-unit LCUs in operation state are in the process of power production. Automatic backup operation cannot be performed without the permission of the power station or dispatching. Only the generating unit LCU in shutdown state or debugging state, or the public LCU, switch station LCU and gate LCU and other non-LCUs in debugging state have the conditions for automatic backup. This is because when the hydropower station is in normal power production, executing user program backup will produce unpredictable hidden dangers, such as: parameter abnormalities, control abnormalities, etc., which affect the normal production process of the hydropower station, and in serious cases will cause huge economic losses. Therefore, only when the hydropower unit is in shutdown state or maintenance and debugging, or the public LCU, switch station LCU and gate LCU are under maintenance and debugging, will the power production process not be affected.
[0084] The backup workstation (which is a Windows workstation in the upper computer of the hydropower station computer monitoring system) uses the MODBUS protocol to achieve the regular acquisition of the real-time status of each LCU, and can also be achieved through other communication protocols such as IEC104. The specific implementation process of the MODBUS protocol is as follows:
[0085] (1) The backup workstation obtains the real-time status of each LCU through a polling cycle of one minute, for example, one communication process is completed every 5 minutes.
[0086] (2) Deploy the MODBUS server in the host or communication machine of the hydropower station computer monitoring system. The host and communication machine of the current power monitoring system are all UNIX or Linux operating systems according to the secondary security requirements. Therefore, the MODBUS server can be developed using C language or Python language based on UNIX or Linux. Through the internal function library of the computer monitoring system, the real-time status of each LCU can be collected and sent to the backup workstation through the MODBUS protocol.
[0087] (3) A MODBUS client is deployed on the Windows engineer workstation of the hydropower station computer monitoring system, i.e., the backup workstation. The client is developed using Windows-based C language or Python and receives communication data from the server in real time through the MODBUS protocol, thereby obtaining the real-time status of each LCU.
[0088] (4) After the backup workstation obtains the real-time status of each LCU, it saves it to the real-time database of the backup workstation. When the automatic backup process is executed, the LCU status is obtained from the real-time database and then judged, and then the subsequent automatic backup is executed.
[0089] When the Windows workstation in the computer monitoring system of the centralized control center is used as the backup workstation, the status of each power station unit and the operating status of auxiliary machines, gates or switch stations can be directly obtained in the computer monitoring system of the centralized control center without having to obtain them from the computer monitoring system of the power station. The specific implementation process is as follows:
[0090] (1) Deploy the MODBUS server in the host or communication machine of the computer monitoring system of the centralized control center. The host and communication machine of the centralized control center monitoring system are also UNIX or Linux operating systems. The MODBUS server can be developed in C language or Python language based on UNIX or Linux. Through the internal function library of the monitoring system, the real-time status of each LCU of the hydropower station under its jurisdiction can be collected, and the real-time status of the LCU can be sent to the backup workstation through the MODBUS protocol;
[0091] (2) Deploy a MODBUS client on the Windows engineer workstation of the computer monitoring system of the centralized control center, i.e., the backup workstation. The client is developed using Windows-based C language or Python and receives communication data from the server in real time through the MODBUS protocol, thereby obtaining the real-time status of each LCU.
[0092] (3) After the backup workstation obtains the real-time operating status of each lower computer, it saves it to the real-time database of the backup workstation. When executing the automatic backup process, the real-time operating status of the lower computer is obtained from the real-time database and then judged, and then the subsequent automatic backup is executed.
[0093] Step 400, automatically detecting the operating status of each slave computer in the real-time database at a fixed time or according to a preset time period, and executing the corresponding configuration file to automatically back up the program in the programmable logic controller of the slave computer that meets the backup conditions.
[0094] Furthermore, step 400 specifically includes:
[0095] (1) Automatic backup can be performed at a scheduled time or at a preset interval. The automatic backup time can be set according to user needs. For example, it can be scheduled to run once a day, or once every 24 hours.
[0096] (2) Automatically detect the operating status of each lower-level LCU in the real-time database. If the unit LCU is in the shutdown state or debugging state, or the non-unit LCU is in the debugging state, start executing the corresponding configuration file to implement automatic backup operation; otherwise, continue to detect the operating status of other LCUs.
[0097] (3) After the automatic backup is completed, the corresponding LCU automatic backup file in the backup folder will be automatically updated to the latest PLC user program. Figure 3 An automatic backup operation flow chart is shown.
[0098] Optionally, after completing the polling and automatic backup of all LCUs, the disk space will be detected, and when the available disk space is less than a certain threshold, an alarm will be issued to remind the operation and maintenance personnel to clean up the disk space in time.
[0099] The automatic backup method for the lower computer program proposed in this embodiment utilizes the existing Windows workstation and network channel of the hydropower station computer monitoring system to configure PLC user logic control programs of different brands, so as to realize full automatic backup of PLC user logic control programs of different brands of the lower computer of the hydropower station computer monitoring system. The operation and maintenance personnel only need to have basic computer knowledge to complete the implementation, which greatly reduces the requirements for the professional skills of the operation and maintenance personnel. At the same time, no additional software and hardware equipment is required, and the operating cost will not be increased. It is easy to implement and manage, and the reliability risks caused by manual intervention are avoided.
[0100] Based on the same technical concept as above, this embodiment also proposes a lower computer program automatic backup system based on the power monitoring system, such as Figure 4 As shown, the backup system proposed in this embodiment includes:
[0101] A configuration unit generates different configuration files for programmable logic controllers of different brands through a backup workstation; wherein the Windows workstation of the host computer of the hydropower station computer monitoring system or the Windows workstation in the centralized control center computer monitoring system is used as the backup workstation. The specific configuration file generation process is as described in the above step 200, and will not be repeated here.
[0102] The real-time monitoring unit obtains the operating status of each lower computer of the hydropower station computer monitoring system in real time through the backup workstation and stores it in the real-time database. The real-time monitoring process of the operating status is as described in the above step 300, which will not be repeated here.
[0103] And, a backup execution unit, which automatically detects the operating status of each slave computer in the real-time database at a fixed time or according to a preset time period, and executes the corresponding configuration file to automatically back up the program in the slave computer programmable logic controller that meets the backup conditions. The automatic backup process is as described in the above step 400, and will not be repeated here.
[0104] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0105] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0106] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0107] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0108] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only the specific implementation method of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.
Claims
1. A method for automatically backing up a lower computer program based on a power monitoring system, characterized in that: The method for automatically backing up the lower computer program includes: Use the Windows workstation of the host computer of the hydropower station computer monitoring system as the backup workstation or use the Windows workstation in the computer monitoring system of the centralized control center as the backup workstation; Generate different configuration files for programmable logic controllers of different brands through the backup workstation; The backup workstation obtains the operating status of each slave computer of the hydropower station computer monitoring system in real time and stores it in a real-time database; The operating status of each slave computer in the real-time database is automatically detected at a fixed time or according to a preset time period, and the corresponding configuration file is executed to automatically back up the program in the programmable logic controller of the slave computer that meets the backup conditions.
2. The method for automatically backing up a lower computer program based on a power monitoring system according to claim 1, characterized in that: The Windows workstation of the host computer of the hydropower station computer monitoring system is used as a backup workstation, which specifically includes: Using the Windows workstation of the host computer of the hydropower station computer monitoring system as a backup workstation; The existing optical fiber channel is used to realize the network connection between the backup workstation and each lower computer of the hydropower station computer monitoring system.
3. The method for automatically backing up a lower computer program based on a power monitoring system according to claim 1, characterized in that: The Windows workstation in the computer monitoring system of the centralized control center is used as a backup workstation, specifically including: Using the Windows workstation in the computing monitoring system of the centralized control center as a backup workstation; The specific process of gateway routing configuration between the backup workstation in the computer monitoring system of the centralized control center and the lower computers of the computer monitoring system of each hydropower station under its jurisdiction is as follows: A communication gateway with the computer monitoring system of each hydropower station under its jurisdiction is configured in the backup workstation, and a gateway for communicating with the backup workstation is configured in each lower computer of the computer monitoring system of each hydropower station under its jurisdiction.
4. The method for automatically backing up a lower computer program based on a power monitoring system according to claim 1, characterized in that: The generation of different configuration files for programmable logic controllers of different brands by the backup workstation specifically includes: After the programming software in the programmable logic controller is installed, the two-dimensional position coordinates of the executable shortcut are generated on the Windows desktop, and the two-dimensional position coordinates are recorded through a configuration file; When the position of the executable shortcut of the programming software in the programmable logic controller changes, the keywords of the executable shortcut of the programming software of the programmable logic controller on the Windows desktop or the icons of the executable shortcut are automatically scanned and compared, and when the corresponding executable shortcut is matched, the corresponding two-dimensional position coordinates in the configuration file are automatically updated; When the text description of the executable shortcut of the programming software in the programmable logic controller changes, the icons of the executable shortcut of the programming software of the programmable logic controller on the Windows desktop are automatically scanned, screened and compared, and after matching the corresponding executable shortcut, the corresponding two-dimensional coordinate position in the configuration file is automatically updated; The entire backup process is manually implemented by the operation and maintenance personnel, and the mouse and keyboard operation process of the operation and maintenance personnel in the manual backup process is automatically recorded in the configuration file, completing the recording of the backup operation process of the programming software in programmable logic controllers of different brands; At the same time, the operation steps for controlling the mouse and the time intervals between different steps are also saved in the configuration file.
5. The method for automatically backing up a lower computer program based on a power monitoring system according to claim 4 is characterized in that: The operation and maintenance personnel manually implement the entire backup process, which specifically includes: Determine whether the operation status of each slave computer of the hydropower station computer monitoring system is a shutdown state or a debugging state. If yes, continue with the subsequent steps to perform backup, otherwise, do not perform backup; Open the programming software in the programmable logic controller on the Windows desktop, maximize the window of the control programming software, and display it on the full screen; The control programming software automatically loads the lower computer project files that need to be backed up; The control programming software automatically uploads the user program currently running in the programmable logic controller to the backup workstation; Save the uploaded user program; According to the backup requirements of different brands of programmable logic controllers, the complete backup process is implemented in the configuration file according to the above steps to form configuration files of different brands of programmable logic controllers; In addition, an appropriate time interval needs to be set between each mouse and keyboard operation step so that the programming software can complete the opening, uploading, or saving work within the time interval.
6. A method for automatically backing up a lower computer program based on a power monitoring system according to any one of claims 1 to 5, characterized in that: The method of obtaining the operation status of each slave computer of the hydropower station computing monitoring system in real time through the backup workstation and storing it in the real-time database specifically includes: The backup workstation uses polling to obtain the real-time operating status of each slave computer; Deploy a MODBUS server in the host or communication machine of the hydropower station computer monitoring system to collect the real-time operating status of each slave computer; A MODBUS client is deployed on the backup workstation to receive the communication data of the MODBUS server in real time, so as to obtain the real-time operation status of each slave computer; After the backup workstation obtains the real-time operating status of each slave computer, it is saved in the real-time database of the backup workstation. When executing the automatic backup process, the real-time operating status of the slave computer is obtained from the real-time database and then judged, and then subsequent automatic backup is performed.
7. A method for automatically backing up a lower computer program based on a power monitoring system according to any one of claims 1 to 5, characterized in that: The method of obtaining the operation status of each slave computer of the hydropower station computing monitoring system in real time through the backup workstation and storing it in the real-time database specifically includes: Deploy a MODBUS server in the host or communication machine of the computer monitoring system of the centralized control center to collect the real-time operating status of each slave computer of the computer monitoring system of the hydropower station under its jurisdiction; A MODBUS client is deployed on the backup workstation to receive the communication data of the MODBUS server in real time, so as to obtain the real-time operation status of each slave computer; After the backup workstation obtains the real-time operating status of each slave computer, it is saved in the real-time database of the backup workstation. When executing the automatic backup process, the real-time operating status of the slave computer is obtained from the real-time database and then judged, and then subsequent automatic backup is performed.
8. A method for automatically backing up a lower computer program based on a power monitoring system according to any one of claims 1 to 5, characterized in that: The automatic detection of the operating status of each slave computer in the real-time database and the execution of the corresponding configuration file to automatically back up the program in the programmable logic controller of the slave computer that meets the backup conditions specifically include: Automatically detect the operating status of each slave computer in the real-time database. If the unit slave computer is in a shutdown state or a debugging state, or the non-unit slave computer is in a debugging state, start executing the corresponding configuration file to realize the automatic backup operation; otherwise, continue to detect the operating status of other slave computers; After the automatic backup is completed, the corresponding lower computer automatic backup file in the backup folder will be automatically updated to the latest user program in the programmable logic controller.
9. The method for automatically backing up a lower computer program based on a power monitoring system according to claim 8, characterized in that: The automatic detection of the operating status of each slave computer in the real-time database and the execution of the corresponding configuration file to automatically back up the program in the programmable logic controller of the slave computer that meets the backup conditions also include: After completing the polling and automatic backup of all lower machines, the disk space will be detected. When the available disk space is less than the threshold, an alarm will be issued to remind the operation and maintenance personnel to clean up the disk space in time.
10. A lower computer program automatic backup system based on a power monitoring system, characterized in that: The automatic backup system for the lower computer program includes: A configuration unit, wherein the configuration unit generates different configuration files for programmable logic controllers of different brands through a backup workstation; wherein the Windows workstation of the host computer of the hydropower station computer monitoring system or the Windows workstation in the computer monitoring system of the centralized control center is used as the backup workstation; A real-time monitoring unit, which obtains the operating status of each slave computer of the hydropower station computer monitoring system in real time through the backup workstation and stores it in a real-time database; And, a backup execution unit, which automatically detects the operating status of each slave computer in the real-time database at a fixed time or according to a preset time period, and executes the corresponding configuration file to automatically back up the program in the programmable logic controller of the slave computer that meets the backup conditions.
Citation Information
Patent Citations
Data backup and recovery system method for computer monitoring systems in hydropower stations
CN107590029B