Method for Operating a Cyclically Operating Automation Controller, Automation Controller and Engineering System

20180341231 ยท 2018-11-29

    Inventors

    Cpc classification

    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] FIG. 1 shows a program flowchart for the method for operating a cyclically operating automation controller in accordance with the invention;

    [0015] FIG. 2 shows the steps of a cyclically operating automation controller according to the prior art in accordance with the invention;

    [0016] FIG. 3 shows the steps for the automation controller using the inventively introduced time window for data backup; and

    [0017] FIG. 4 shows an automation controller adapted with respect to data backup within a time window, with a connected engineering system.

    DETAILED DESCRIPTION OF THE EXEMPLARY EMBODIMENTS

    [0018] FIG. 1 shows a program flowchart for the method for operating a cyclically operating automation controller 10. Performed within a cycle time ZZ in the automation controller 10 are a first step: reading of input data ED from input peripherals In, a second step: storing of the input data ED in a process image memory for inputs PAE, a third step: launching of a user program AP, where a plurality of program instructions generate output data AD based on the input data ED stored in the process image memory for inputs PAE, a fourth step: storing of the output data AD in a process image memory for outputs PAA after execution of the last program instructions, a fifth step: writing of the output data AD from the process image memory for outputs PAA to output peripherals Out. After the fifth step, the cycle is repeated starting with the first step.

    [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 FIG. 4) separate from the automation controller 10 to be performed within the time window ZF over a plurality of cycles in fractions R1, R2, R3, . . . , Rn of the total data content of the remanence memory RS in each case, so that the cycle time ZZ of the automation controller 10 does not exceed a maximum predefined cycle time.

    [0021] FIG. 2 shows the basic cyclical behavior of a cyclically operating automation controller 10 in accordance with the prior art. Program execution 20 of the user program AP occurs between a read operation 22 for the input data ED of the input peripherals In and a write operation 21 of the output data AD to the output peripherals Out.

    [0022] FIG. 3 shows the inventive insertion of a backup operation 23 at a certain point and at a certain time. Following program execution 20 of the user program AP, remanent data can be consistently saved by the backup operation 23, because the data remains unchanged in this time interval.

    [0023] FIG. 4 shows an automation controller 10 with an associated engineering system 30. The automation controller 10 is configured to execute program instructions in its user program AP within the cycle time ZZ. For the internal organization the automation controller 10 has an operating system BS. The automation controller 10 incorporates a means 12 for reading the input data ED from the input peripherals In, means 13 for storing the input data ED in a process image memory for inputs PAE, a means 14 for executing a user program AP, where a plurality of program instructions generate output data AD, based on the input data ED stored in the process image memory for inputs PAE. In order to re-write the output data AD to output peripherals Out, the automation controller 10 also has means 15 for saving the output data AD to a process image memory for outputs PAA and, lastly, means 16 for writing the output data AD from the process image memory for outputs PAA to the output peripherals Out.

    [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.