The invention relates to a method for operating a cyclically operating automation controller, where the method is executed within a cycle time of the automation controller; to an automation controller operable to process program instructions within a cycle time, comprising an operating system, means for reading input data from input peripherals, means for storing the input data in a process image memory for inputs, means for executing a user program, where a plurality of program instructions generate output data based on the input data stored in the process image memory for inputs, means for storing the output data in a process image memory for outputs, means for writing the output data from the process image memory for outputs to output peripherals, and relates to an engineering system for configuring the above-described automation controller.
In the case of automation devices for industrial control processes, it is desirable to perform data backup. Data backup of this kind, particularly with respect to remanent data, has hitherto been performed by a user. For this purpose, the user has had to place the automation device, i.e., the automation controller, in a stop state so that the remanent data to be backed up (e.g., data block or flags, timers, counters, timing elements) is no longer affected by the process. In the stop state, both the program and all the remanent values can be consistently backed up.
In the context of the instant invention, the term remanent data is to be understood as follows: Remanent data is data that is available again when the automation controller is restarted, despite the automation controller having been switched off in the meantime. In automation technology, remanence is the ability of operands to retain their values following loss of voltage.
It is an object of the present invention to provide a method for backing up remanent data without requiring the user to place the automation controller into a stop state.
This and other objects and advantages are achieved in accordance with the invention by a method for operating a cyclically operating automation controller in which input data is read from input peripherals (1st step), the input data is stored in a process image memory for inputs (2nd step), a user program is launched (3rd step), where a plurality of program instructions generate output data based on the input data stored in the process image memory for inputs, the output data is stored in a process image memory for outputs after execution of the last program instruction (4th step), the output data from the process image memory for outputs is written to output peripherals (5th step), where remanent data is backed up within a time window that opens with the end of the third step and recloses with the start of the first step. Data backup can now occur while the automation controller is in a run state, but inventive use is now made of the fact that cyclical processing means that a point in time exists that ensures consistency with respect to the data. This point in time is determined by the copying of a process image to the output peripherals. Data backup must therefore occur before this action is completed.
As preferably only the remanent data needs to be backed up consistently, this time interval is comparatively short in relation to the cycle time and will not therefore appreciably affect a total cycle time.
In an advantageous further embodiment of the method, the remanent data to be backed up is temporarily stored in a remanence memory and data is backed up onto an external medium separate from the automation controller within the time window over a plurality of cycles in fractional amounts of the entire data content of the remanence memory in each case so that the cycle time of the automation controller does not exceed a maximum predefined cycle time. Remanent data backup is thus distributed over a plurality of cycles.
For the automation controller mentioned in the introduction this object is achieved by the operating system being configured and operable to ensure that data backup of remanent data occurs within a time window, where the time window is opened upon completion of the last instruction in the user program and is closed with the commencement of reading of the input data. Due to the characteristics of an automation controller operating in a cycle-oriented manner, there is single volatile area which, however, must in turn be backed up consistently and an area which remains unchanged, e.g., the program code.
Another embodiment of the automation controller provides that means are available which are configured and operable to temporarily store the remanent data to be backed up in a remanence memory and to perform data backup onto an external medium separate from the automation controller in each case in fractions of the entire data content of the remanence memory over a plurality of cycles within the time window in each case, so that the cycle time of the automation controller does not exceed a maximum predefined cycle time.
With regard to the program code and nonvolatile data, the program code data can be backed up over a long period, since the contents do not change. Remanent data, on the other hand, is consistently backed up in a step or written to a separate area that must then be backed up later. In the event of repeated data backup, only remanent data needs to be backed up again, as the other data has not changed. The program code data would only need to be backed up again after the software has been re-downloaded to the automation controller.
With regard to an engineering system, the object is achieved by the user now being provided with means, within the engineering system, of setting up data backup using the following settings: data backup on or off, manual or automatic operation, select length of time window. The data backup times can also be specified, similarly to a clock timer, e.g., the data can be backed up during the night shift when there is less process activity. It is also conceivable for the pieces of data to be predefined, in other words to specify the fractions of the entire data content of the remanence memory.
Other objects and features of the present invention will become apparent from the following detailed description considered in conjunction with the accompanying drawings. It is to be understood, however, that the drawings are designed solely for purposes of illustration and not as a definition of the limits of the invention, for which reference should be made to the appended claims. It should be further understood that the drawings are not necessarily drawn to scale and that, unless otherwise indicated, they are merely intended to conceptually illustrate the structures and procedures described herein.
The drawings show an exemplary embodiment for the method, for the automation controller and for the engineering system, in which:
In order to arrive at the above-described cyclically operating steps, a restart of the automation controller 10 accompanied by an initialization phase is assumed. After a restart, generally all outputs, timers, counters and flags are set to zero. As a CPU can be placed in a stop state using a switch, for example, an inquiry is made each time prior to the first step as to whether the CPU is at a stop. The input data ED is now read via external peripheral equipment and, after execution of the user program AP, the output data AD is output to external output peripheral equipment, or more specifically output peripherals Out.
In accordance with the invention, data backup of remanent data RD is now performed within a time window ZF that opens with the end of the third step and closes again with the start of the first step. This saving of the remanent data RD to a remanence memory RS within the time window ZF is indicated in the dashed box. It makes sense for the remanent data RD to be temporarily stored in the remanence memory RS and for data backup to a medium 11 (see
The operating system BS is now inventively configured such that, for consistent data backup RD of the remanent data, the remanent data RD is backed up within a time window ZF, with the time window ZF being opened upon completion of the last instruction in the user program AP and closed upon commencement of reading of the input data ED.
The automation controller additionally has means 17 configured and operable to temporarily store the remanent data RD to be backed up in a remanence memory RS and to perform data backup onto an external medium 11 separate from the automation controller 10 in fractions R1, R2, R3, . . . , Rn of the total data content of the remanence memory RS over a plurality of cycles within each time window ZF, so that the cycle time of the automation controller 10 does not exceed a maximum predefined cycle time.
Via a connected engineering system 30 with which the automation controller 10 is normally configured and programmed, the user can now select the data backup type via means 31 for setting consistent data backup of the remanent data RD using the following setting options: a data backup 32 “on” or “off” option, a “manual” or “automatic” operation 33 option and an option for setting the selected length of the time window ZF in order to adjust the cycle time ZZ.
Thus, while there have been shown, described and pointed out fundamental novel features of the invention as applied to a preferred embodiment thereof, it will be understood that various omissions and substitutions and changes in the form and details of the devices illustrated, and in their operation, may be made by those skilled in the art without departing from the spirit of the invention. For example, it is expressly intended that all combinations of those elements and/or method steps which perform substantially the same function in substantially the same way to achieve the same results are within the scope of the invention. Moreover, it should be recognized that structures and/or elements shown and/or described in connection with any disclosed form or embodiment of the invention may be incorporated in any other disclosed or described or suggested form or embodiment as a general matter of design choice. It is the intention, therefore, to be limited only as indicated by the scope of the claims appended hereto.
Number | Date | Country | Kind |
---|---|---|---|
EP17172848.8 | May 2017 | EP | regional |