CN105373445A - A backup and recovery method for PLC/HMI device files - Google Patents
A backup and recovery method for PLC/HMI device files Download PDFInfo
- Publication number
- CN105373445A CN105373445A CN201410318636.0A CN201410318636A CN105373445A CN 105373445 A CN105373445 A CN 105373445A CN 201410318636 A CN201410318636 A CN 201410318636A CN 105373445 A CN105373445 A CN 105373445A
- Authority
- CN
- China
- Prior art keywords
- plc
- hmi
- file
- database
- cloud
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Programmable Controllers (AREA)
Abstract
The embodiment of the invention provides a backup and recovery method for PLC/HMI device files based on a cloud storage end. The cloud storage end comprises a database. The files include application program codes, PLC/HMI device parameters and user setting information. The method comprises the steps of uploading the files to the database of the cloud storage end when a user executes backup operation, and downloading the files into a PLC/HMI device from the database of the cloud storage end when the user executes recovery operation.
Description
Technical field
Embodiments of the invention relate generally to PLC/HMI (programmable logic controller (PLC)/man-machine interface) equipment, more specifically, relate to backup and the restoration methods of PLC/HMI device file.
Background technology
Programmable logic controller (PLC) (ProgrammableLogicController, PLC)/HMI, for utilizing its internally stored program, actuating logic computing, sequential control, regularly, counting and the user oriented instruction such as arithmetical operation, and by numeral or analog pattern input/output various types of machinery of control or production run.
The memory storage will taken in PLC/HMI equipment when in the prior art backup operation being carried out to the program in PLC/HMI equipment and arranging etc., be unfavorable for effective utilization of PLC/HMI equipment, and if this PLC/HMI device damage, then cannot obtain its program source code and parameters.
Current cloud storage refers to by functions such as cluster application, gridding technique or distributed file systems, various dissimilar memory device a large amount of in network is gathered collaborative work by application software, a system of data storage and Operational Visit function is externally provided jointly.
Compared with traditional data storage technology, cloud storage can realize storing Full-virtualization, simplifies application link, saves client's construction cost, meanwhile, provide stronger storage and sharing functionality.Anywhere, any authorized user can be connected with cloud storage by tie-in line, carry out space and data access, cloud stores user, does not refer to some concrete equipment, and refers to an aggregate be made up of various memory devices and server.Therefore user uses cloud storage to be not use some memory devices, but a kind of data access service using whole cloud storage system to bring.
The appearance that cloud stores, make enterprise customer can by most of Data Migration in cloud storage system, do like this and not only saved the cost pressure of enterprise storage system, also obtain the various maintenance services that cloud storage service provider provides, reduce security risk to a certain extent.
Summary of the invention
In order to effectively utilize the storage space of PLC/HMI equipment and back up the application program of PLC/HMI equipment, arrange etc., embodiments of the invention propose a kind of backup and the restoration methods that store the file of the programmable logic controller (PLC) PLC/ Human machine interface equipment of end based on cloud.Wherein said cloud stores end and comprises database, wherein said file comprises application code, PLC/HMI device parameter and information-setting by user, described method comprises: when user performs backup operation, described files passe is stored to described cloud in the described database of end, when described user performs recovery operation, the described database that described file stores end from described cloud is downloaded to described PLC/HMI equipment.
In one embodiment, described database comprises at least one database in document data bank and device databases.
In one embodiment, described document data bank corresponds to each file set up index, and wherein said device databases corresponds to every platform PLC/HMI equipment and sets up index.
In one embodiment, when described database is document data bank, the described database that described files passe stores end to described cloud is comprised: the feature code value calculating the file of described PLC/HMI equipment, according to the described feature code value of described file, whether inspection exists described file in cloud stores, if described cloud does not exist described file in storing, then uploads described file, if described cloud has existed described file in storing, then no longer upload described file.
In one embodiment, described method comprises further: by the described feature code value downloaded stored of file described in each in described programmable logic controller (PLC) PLC/ Human machine interface equipment.
In one embodiment, when described database is device databases, the described database that described files passe stores end to described cloud is comprised: the unique identifier identifying described PLC/HMI equipment, correspond in described files passe to described device databases in the entry of described unique identifier.
In one embodiment, described unique identifier comprises PLC/HMI sequence number.
In one embodiment, application code comprises source code and the code after compiling.
In one embodiment, described PLC/HMI device parameter comprises PLC/HMI sequence number, PLC/HMI hardware or software version number.
In one embodiment, described information-setting by user comprises user name, password, maintaining secrecy is arranged.
In one embodiment, described method is carried out in user interface or is carried out on backstage.
In one embodiment, described database comprises the index corresponding respectively to described application code, described PLC/HMI device parameter and described information-setting by user.
In one embodiment, described backup operation is carried out automatically when modifying to described PLC/HMI equipment.
In one embodiment, described recovery operation is carried out automatically when described PLC/HMI equipment connection stores to cloud.
In one embodiment, described file is downloaded to described PLC/HMI equipment from the described database of described cloud storage end comprise: when described database is document data bank, in the described database of described cloud storage end, inquire about described file according to feature code value.
In one embodiment, described file is downloaded to described PLC/HMI equipment from the described database of described cloud storage end comprise further: according to the described feature code value of the described file be stored in described PLC/HMI equipment or according to the binary code calculating binary features code value in current PLC/HMI equipment, store at described cloud in the described database of end and inquire about other feature code values be associated, and by the file download corresponding with the described feature code value inquired to described PLC/HMI.
In one embodiment, described file is downloaded to described PLC/HMI equipment from the described database of described cloud storage end comprise: when described database is device databases, according to the unique identifier of PLC/HMI equipment, cloud stores in the described database of end and inquires about described file.
In one embodiment, described method comprises further and is encrypted setting to All Files.
These and other aspect of the present invention is apparent with reference to the embodiment hereinafter described, and is described with reference to the embodiment hereinafter described.And, it will be apparent to one skilled in the art that two or more above above-mentioned option, embodiment and/or aspect of the present invention are to think that available any mode can be in conjunction with.
Accompanying drawing explanation
Mode by way of example, instead of by ways to restrain, illustrate embodiments of the invention, in the figure of accompanying drawing:
Fig. 1 shows the backup of PLC/HMI device file according to an embodiment of the invention and the process flow diagram of restoration methods;
Fig. 2 shows the backup operation process flow diagram according to an embodiment of the invention when the database that cloud stores end is document data bank;
Fig. 3 shows the backup operation process flow diagram according to an embodiment of the invention when the database that cloud stores end is device databases.
It should be noted that the project represented by same reference numerals in different figures has identical architectural feature and identical function.If wherein made an explanation to the function of this element and/or structure, then without the need in detailed description to its repetition of explanation.Accompanying drawing is only exemplifying and not drawn on scale.Particularly for clarity, some sizes are exaggerated.
Embodiment
Detailed description below carries out reference to accompanying drawing, and described accompanying drawing forms the part of this instructions, and the mode wherein by putting into practice particular instantiation embodiment of the present invention is wherein illustrated.Should be understood that, other embodiments can be utilized, and structure or change in logic can be made and do not depart from scope defined by the claims.
The description of the present embodiment is not restrictive.Especially, the step of the embodiment described hereinafter can be combined from the step of different embodiment.
Fig. 1 shows the backup of PLC/HMI device file according to an embodiment of the invention and the process flow diagram of restoration methods.
Method 100 is the backup and the restoration methods that store the file of the programmable logic controller (PLC) PLC/ Human machine interface equipment of end based on cloud.This cloud stores end and comprises database, and wherein this cloud stores end can be that the PLC/HMI equipment that PLC/HMI production firm can produce for oneself is set up.
In step S101, when user performs backup operation, the files passe of PLC/HMI equipment is stored to described cloud in the described database of end, in step s 102, when user performs recovery operation, the described database that this file stores end from described cloud is downloaded to described PLC/HMI equipment.Wherein the file of PLC/HMI equipment comprises application code, PLC/HMI device parameter and information-setting by user etc.
Application code in the file of wherein PLC/HMI equipment comprises the code after source code and compiling, such as binary code etc.; Described PLC/HMI device parameter comprises PLC/HMI sequence number, PLC/HMI hardware or software version number; Described information-setting by user comprises user name, password, maintaining secrecy is arranged.In certain embodiments, the file of PLC/HMI equipment can also comprise other information, the such as time.The information such as application item title.
Method 100 in Fig. 1 can carry out also can carrying out on backstage in the user interface of display.
The database of its medium cloud storage end can comprise at least one database in document data bank and device databases.When this database is document data bank be, to each file set up index, when this database is that device databases sets up index to every platform PLC/HMI equipment.Database comprises the index corresponding respectively to described application code, described PLC/HMI device parameter and described information-setting by user
Fig. 2 shows the backup operation process flow diagram according to an embodiment of the invention when the database that cloud stores end is document data bank.
In one embodiment, the database that cloud stores end is document data bank, and step S101 specifically can comprise following steps: the feature code value calculating the file of described PLC/HMI equipment in step s 201, and this feature code value comprises cryptographic hash etc.; Then advance to step S202, according to the described feature code value of described file in step S202, check cloud store in whether there is described file; If cloud has existed this file in storing, then advance to step S203 and do not uploaded this file, if cloud does not exist this file in storing, then advanced to step S204 and upload described file and back up.
In another embodiment, user can by the feature code value downloaded stored of calculated file in PLC/HMI equipment between step S202 and step S203.In yet another embodiment, the feature code value of file need not be kept in PLC/HMI equipment, but recalculates according to the binary code PLC/HMI equipment when needs store end download file from cloud.
When the files passe of PLC/HMI equipment is stored the document data bank of end to cloud by user, by network (the Internet, Ethernet, wireless network etc.) down load application program when setting PLC/HMI, in the document data bank simultaneously these content uploadings stored to cloud; User stores current PLC/HMI parameter now at the corresponding bar of document data bank; And user stores user now at the corresponding bar of document data bank and arranges and other information.
Fig. 3 shows the backup operation process flow diagram according to an embodiment of the invention when the database that cloud stores end is device databases.
In one embodiment, the database that cloud stores end is device databases, step S101 specifically can comprise following steps: step S301 identifies the unique identifier of described PLC/HMI equipment, and step S302 corresponds in described files passe to described device databases in the entry of described unique identifier.Wherein said unique identifier comprises PLC/HMI sequence number.
When the files passe of PLC/HMI equipment is stored the device databases of end to cloud by user, user by network (the Internet, Ethernet, wireless network etc.) down load application program when being set to PLC/HMI, in the device databases simultaneously these content uploadings stored to cloud; User stores current PLC/HMI parameter now at the corresponding bar of device databases; User stores user now at the corresponding bar of device databases and arranges and other information.
In an embodiment of the present invention, cloud stores the database of end can be document data bank, device databases or its combination.
In one embodiment, backup operation is carried out automatically when modifying to described PLC/HMI equipment, namely by network (the Internet, Ethernet, wireless network etc.) down load application program or when PLC/HMI equipment is reset to PLC/HMI device backup.In other embodiments, this backup operation also manually can be arranged by user.
Gather an embodiment, recovery operation is carried out automatically when described PLC/HMI equipment connection stores to cloud.In other embodiments, this recovery operation also manually can be arranged by user.
When carrying out in recovery operation PLC/HMI equipment, when the database that cloud stores end is document data bank, in the described database of described cloud storage end, inquire about described file according to feature code value.In one embodiment, this recovery operation comprises according to being stored in the described feature code value of the described file in described PLC/HMI equipment or calculating binary features code value according to the binary code in current PLC/HMI equipment further, store at described cloud in the described database of end and inquire about other feature code values be associated, and by the file download corresponding with the described feature code value inquired to described PLC/HMI.
When the database that cloud stores end is device databases, recovery operation can inquire about described file in the described database that cloud storage is held according to the unique identifier of PLC/HMI equipment.
In the application, if original PLC/HMI device damage, user need more exchange device time, manually can input the unique identifier of PLC/HMI equipment, as PLC/HMI sequence number, then user can search the corresponding document finally uploaded and downloads in new PLC/HMI in cloud stores.
In certain embodiments, user can arrange the security setting of download file to PLC/HMI equipment.Such as, user can arrange All Files needs user name password, or setting unit file needs user name password.In some applications, user can arrange connect PLC/HMI equipment time download source code do not need password, or user can arrange according to device identification number download binary code time do not need password.
And security setting service can be provided by PLC/HMI production firm on the other hand, PLC/HMI production firm can provide some cryptographic service, such as common forgetting Password gives service for change, or the password of OEM vendor rank is set, the file in the equipment that this OEM vendor buys can be downloaded by this password according to logistics information.When final user changes the equipment of damage, the new PLC/HMI equipment that production firm can provide to comprise application program replaces the PLC/HMI equipment damaged.
Although describe the present invention in conjunction with some embodiments and embodiment, the present invention is not limited thereto, but cover various obvious amendment and equivalent arrangements, and they all fall in the protection domain of claims.Although state the feature of embodiments of the invention in detail in the claims in the mode of particular combination, it is contemplated that arrange these features in the mode of any combination and order.
Claims (18)
1. one kind stores backup and the restoration methods of the file of the programmable logic controller (PLC) PLC/ Human machine interface equipment of end based on cloud, described cloud stores end and comprises database, wherein said file comprises application code, PLC/HMI device parameter and information-setting by user, and described method comprises:
When user performs backup operation, described files passe is stored to described cloud in the described database of end,
When described user performs recovery operation, the described database that described file stores end from described cloud is downloaded to described PLC/HMI equipment.
2. backup according to claim 1 and restoration methods, wherein said database comprises at least one database in document data bank and device databases.
3. backup according to claim 2 and restoration methods, wherein said document data bank corresponds to each file set up index, and wherein said device databases corresponds to every platform PLC/HMI equipment and sets up index.
4. backup according to claim 2 and restoration methods, wherein when described database is document data bank, comprises the described database that described files passe stores end to described cloud:
Calculate the feature code value of the file of described PLC/HMI equipment,
According to the described feature code value of described file, check cloud store in whether there is described file,
If described cloud does not exist described file in storing, then upload described file, if described cloud has existed described file in storing, then do not upload described file.
5. backup according to claim 4 and restoration methods, comprises further:
By the described feature code value downloaded stored of file described in each in described programmable logic controller (PLC) PLC/ Human machine interface equipment.
6. backup according to claim 2 and restoration methods, wherein when described database is device databases, comprises the described database that described files passe stores end to described cloud:
Identify the unique identifier of described PLC/HMI equipment,
Correspond in described files passe to described device databases in the entry of described unique identifier.
7. backup according to claim 6 and restoration methods, wherein said unique identifier comprises PLC/HMI sequence number.
8. backup according to claim 1 and restoration methods, application code comprises the code after source code and compiling.
9. backup according to claim 1 and restoration methods, described PLC/HMI device parameter comprises PLC/HMI sequence number, PLC/HMI hardware or software version number.
10. backup according to claim 1 and restoration methods, described information-setting by user comprises user name, password, maintaining secrecy is arranged.
11. backup according to claim 1 and restoration methods, described method is carried out in user interface or is carried out on backstage.
12. backup according to claim 1 and restoration methods, described database comprises the index corresponding respectively to described application code, described PLC/HMI device parameter and described information-setting by user.
13. backup according to claim 1 and restoration methods, described backup operation is carried out automatically when modifying to described PLC/HMI equipment.
14. backup according to claim 1 and restoration methods, described recovery operation is carried out automatically when described PLC/HMI equipment connection stores to cloud.
15. backup according to claim 2 and restoration methods, download to described PLC/HMI equipment by described file from the described database of described cloud storage end and comprise:
When described database is document data bank, in the described database of described cloud storage end, inquire about described file according to feature code value.
16. backup according to claim 15 and restoration methods, download to described PLC/HMI equipment by described file from the described database of described cloud storage end and comprise further:
According to the described feature code value of the described file be stored in described PLC/HMI equipment or according to the binary code calculating binary features code value in current PLC/HMI equipment, store at described cloud in the described database of end and inquire about other feature code values be associated, and by the file download corresponding with the described feature code value inquired to described PLC/HMI.
17. backup according to claim 2 and restoration methods, download to described PLC/HMI equipment by described file from the described database of described cloud storage end and comprise:
When described database is device databases, according to the unique identifier of PLC/HMI equipment, cloud stores in the described database of end and inquires about described file.
18. backup according to claim 1 and restoration methods, described method comprises further and is encrypted setting to All Files.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410318636.0A CN105373445A (en) | 2014-07-04 | 2014-07-04 | A backup and recovery method for PLC/HMI device files |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410318636.0A CN105373445A (en) | 2014-07-04 | 2014-07-04 | A backup and recovery method for PLC/HMI device files |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105373445A true CN105373445A (en) | 2016-03-02 |
Family
ID=55375666
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410318636.0A Pending CN105373445A (en) | 2014-07-04 | 2014-07-04 | A backup and recovery method for PLC/HMI device files |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105373445A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107451165A (en) * | 2016-05-31 | 2017-12-08 | 合肥美亚光电技术股份有限公司 | Based on the HMI formula lookup methods exchanged with PLC online datas and system |
US20190196434A1 (en) * | 2016-10-31 | 2019-06-27 | Mitsubishi Electric Corporation | System design supporting device, method for supporting system design, and program for supporting system design |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120084261A1 (en) * | 2009-12-28 | 2012-04-05 | Riverbed Technology, Inc. | Cloud-based disaster recovery of backup data and metadata |
CN102495772A (en) * | 2011-09-30 | 2012-06-13 | 奇智软件(北京)有限公司 | Characteristic-based terminal program cloud backup and recovery methods |
CN102736962A (en) * | 2012-06-07 | 2012-10-17 | 深圳市万兴软件有限公司 | Method and device of recovering data |
CN102932407A (en) * | 2012-09-20 | 2013-02-13 | 无锡华御信息技术有限公司 | Cloud computing-based safety backup system and method |
CN102968320A (en) * | 2012-11-16 | 2013-03-13 | 武汉钢铁(集团)公司 | Cloud-backup-based automatic recovery system for industrial control equipment and operating method thereof |
CN103023996A (en) * | 2012-11-30 | 2013-04-03 | 江苏乐买到网络科技有限公司 | Cloud data storage system |
CN103412759A (en) * | 2013-08-19 | 2013-11-27 | 深圳市金立通信设备有限公司 | Production data recovery method and terminal |
CN103592880A (en) * | 2013-11-27 | 2014-02-19 | 中国海洋大学 | Intelligent controller system for large engineering equipment |
-
2014
- 2014-07-04 CN CN201410318636.0A patent/CN105373445A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120084261A1 (en) * | 2009-12-28 | 2012-04-05 | Riverbed Technology, Inc. | Cloud-based disaster recovery of backup data and metadata |
CN102495772A (en) * | 2011-09-30 | 2012-06-13 | 奇智软件(北京)有限公司 | Characteristic-based terminal program cloud backup and recovery methods |
CN102736962A (en) * | 2012-06-07 | 2012-10-17 | 深圳市万兴软件有限公司 | Method and device of recovering data |
CN102932407A (en) * | 2012-09-20 | 2013-02-13 | 无锡华御信息技术有限公司 | Cloud computing-based safety backup system and method |
CN102968320A (en) * | 2012-11-16 | 2013-03-13 | 武汉钢铁(集团)公司 | Cloud-backup-based automatic recovery system for industrial control equipment and operating method thereof |
CN103023996A (en) * | 2012-11-30 | 2013-04-03 | 江苏乐买到网络科技有限公司 | Cloud data storage system |
CN103412759A (en) * | 2013-08-19 | 2013-11-27 | 深圳市金立通信设备有限公司 | Production data recovery method and terminal |
CN103592880A (en) * | 2013-11-27 | 2014-02-19 | 中国海洋大学 | Intelligent controller system for large engineering equipment |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107451165A (en) * | 2016-05-31 | 2017-12-08 | 合肥美亚光电技术股份有限公司 | Based on the HMI formula lookup methods exchanged with PLC online datas and system |
CN107451165B (en) * | 2016-05-31 | 2020-11-24 | 合肥美亚光电技术股份有限公司 | Recipe searching method and system based on HMI and PLC online data exchange |
US20190196434A1 (en) * | 2016-10-31 | 2019-06-27 | Mitsubishi Electric Corporation | System design supporting device, method for supporting system design, and program for supporting system design |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11184151B2 (en) | Devices for providing a set of cryptographically secured and filtered and sorted transaction data sets of a block of a blockchain | |
CN107579865A (en) | Right management method, the apparatus and system of distributed code server | |
CN104679717A (en) | Method and management system of elastic cluster deployment | |
US20180107393A1 (en) | Placement and movement of sub-units of a storage unit in a tiered storage environment | |
CN105302920A (en) | Optimal management method and system for cloud storage data | |
CN111008034B (en) | Patch generation method and device | |
US9239714B2 (en) | Rapid deployment of software applications | |
US20210373521A1 (en) | Method and control system for controlling and/or monitoring devices | |
CN113254534A (en) | Data synchronization method and device and computer storage medium | |
CN104765652A (en) | Data backup and data recovery method and device | |
CN107179925A (en) | Hot update method and device | |
US11188507B2 (en) | Automatically setting an auto-purge value to multiple tables within a database | |
CN107871230A (en) | Create automation engineering system, the method and computer program product of engineering project | |
US11200218B2 (en) | Providing consistent data masking using causal ordering | |
CN105373445A (en) | A backup and recovery method for PLC/HMI device files | |
CN107918860A (en) | Engineering method, system and computer program product | |
CN110532016A (en) | Method for edition management, method for updating edition and edition management system | |
CN106326777A (en) | System mirror image document signature method and system, client and server | |
CN105159797A (en) | Oracle database based backup and recovery method | |
CN112131177A (en) | Data migration method and device, storage medium and electronic equipment | |
CN102215131B (en) | Management method and device of functional License | |
US11294926B1 (en) | Master extract, transform, and load (ETL) application for accommodating multiple data source types having disparate data formats | |
US20150073872A1 (en) | Network-implemented methods and systems for providing dynamic product pricing | |
CN110278267A (en) | A kind of the limitation application method and system of industry internet APP | |
US20150100888A1 (en) | Providing a common interface for accessing and presenting component configuration settings |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160302 |