Method for Operating a Cyclically Operating Automation Controller, Automation Controller and Engineering System
20180341231 ยท 2018-11-29
Inventors
Cpc classification
G05B11/06
PHYSICS
International classification
Abstract
A method for operating a cyclically operating automation controller, the method being executed within a cycle time of the automation controller, wherein input data is read from input peripherals (1.sup.st Step), the input data is stored in a process image memory for inputs, a user program is launched (3.sup.rd Step), a plurality of program instructions generating 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, the output data from the process image memory for outputs is written to output peripherals, where data backup of remanent data is performed within a time window which opens upon completion of the 3.sup.rd step and recloses upon commencement of the 1.sup.st step.
Claims
1. A method for operating a cyclically operating automation controller, the method being executed within a cycle time of the automation controller, the method comprising: reading input data from input peripherals; storing the input data in a process image memory for inputs; launching a user program, a plurality of program instructions generating output data based on the input data stored in the process image memory for the inputs; storing the output data in a process image memory for outputs after execution of a last program instruction; writing the output data from the process image memory for outputs to output peripherals; wherein data backup of remanent data is performed within a time window which opens upon completion of said launch of the user program and recloses upon commencement of said reading input data from input peripherals.
2. The method as claimed in claim 1, wherein the remanent data to be backed up is temporarily stored in a remanence memory and each data backup onto an external medium separate from the automation controller is performed in fractions of a total data content of the remanence memory over a plurality of cycles within each time window, so that the cycle time of the automation controller does not exceed a maximum predefined cycle time.
3. 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, a plurality of program instructions generating output data base 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, wherein the operating system is operable to ensure data backup of remanent data is performed within a time window, the time window being opened upon completion of a last instruction in the user program and closing upon commencement of reading of the input data.
4. The automation controller as claimed in claim 3, further comprising: means operable to temporarily store the remanent data to be backed up in a remanence memory and to perform each data backup onto an external medium separate from the automation controller in fractions of a total data content of the remanence memory over a plurality of cycles within each time window, such that the cycle time of the automation controller does not exceed a maximum predefined cycle time.
5. An engineering system for configuring the automation controller as claimed in claim 3, comprising: means for setting data backup via the following setting options: data backup on or off, manual or automatic operation, select length of time window.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The drawings show an exemplary embodiment for the method, for the automation controller and for the engineering system, in which:
[0014]
[0015]
[0016]
[0017]
DETAILED DESCRIPTION OF THE EXEMPLARY EMBODIMENTS
[0018]
[0019] 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.
[0020] 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
[0021]
[0022]
[0023]
[0024] 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.
[0025] 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.
[0026] 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.
[0027] 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.