CPC G05B 13/021 (2013.01) [G05B 13/024 (2013.01)] | 16 Claims |
1. A method for updating a control program of an automation system with data migration of a program state of the control program,
wherein a controller of the automation system comprises a first control program and a second control program,
wherein the first control program is executed cyclically for controlling the automation system, wherein the second control program is an update of the first control program, wherein the first control program comprises a first data element of a first data type describing a program state of the first control program and stored in a first memory area of the controller,
wherein the first data element comprises a plurality of first data sub-elements required for executing the first control program,
wherein the second control program comprises a second data element of a second data type describing a program state of the second control program and stored in a second memory area, and wherein the second data element comprises a plurality of second data sub-elements required for executing the second control program; and
wherein the method comprises:
generating a first migration function for mapping the first data element to the second data element in a first generating step,
interrupting cyclic execution of the first control program in an interrupting step,
determining a value of the first data element in a first determining step, wherein the value of the first data element describes the program state of the first control program at a time of the interruption, and
mapping the value of the first data element to the second data element and writing values of the first data sub-elements to the second data sub-elements initialized by an initial value by executing the first migration function in a migrating step.
|