US 12,332,610 B2
Method for updating a control program of an automation system with data migration of a program state of the control program
Ralf Dreesen, Rietberg (DE)
Assigned to Beckhoff Automation GmbH, Verl (DE)
Filed by Beckhoff Automation GmbH, Verl (DE)
Filed on May 20, 2022, as Appl. No. 17/749,205.
Application 17/749,205 is a continuation of application No. PCT/EP2020/085799, filed on Dec. 11, 2020.
Claims priority of application No. 10 2019 134 373.9 (DE), filed on Dec. 13, 2019.
Prior Publication US 2022/0276616 A1, Sep. 1, 2022
Int. Cl. G05B 13/02 (2006.01)
CPC G05B 13/021 (2013.01) [G05B 13/024 (2013.01)] 16 Claims
OG exemplary drawing
 
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.