A method for operating an automation system which executes, as an automation solution, a control program having a plurality of software modules, where the method comprises replacing at least one software module comprising an old software module at the runtime of the control program with a new software module wherein the new software module is loaded into a memory of the automation system, an old data area associated with the old software module is compared with a new data area associated with the new software module, program code instructions for converting data for or from the old data area into data for or from the new data area is generated, and a program code instruction for invoking the old software module is replaced with program code instructions for invoking the generated program code instructions for data conversion and for invoking the new software module.
|
9. An automation system, comprising:
a memory; and
a processing unit configured to execute a control program which is loadable into the memory, the processor being configured to replace at least one software module comprising the old software module at runtime of the control program by:
comparing an old data area associated with the old software module with a new data area associated with the new software module;
generating program code instructions for one of converting data for the old data area and converting data from the old data area into one of data for the old data area and data from the new data area;
loading the new software module and the new data area; and
replacing a program code instruction for invoking the old software module in the runtime group module with program code instructions for invoking the generated program code instructions for data conversion and for invoking the new software module.
11. A non-transitory computer-readable storage medium encoded with a computer program that causes a new software module to replace at least one software module comprising an old software module at runtime of a control program with a new software module, wherein to replace at least one software module comprising the old software module at the runtime of the control program with a new software module, the computer program comprising:
program code for comparing an old data area associated with the old software module with a new data area associated with the new software module;
program code for generating program code instructions for one of converting data for the old data area and converting data from the old data area into one of data for the old data area and data from the new data area;
program code for loading the new software module and the new data area; and
program code for replacing a program code instruction for invoking the old software module in the runtime group module with program code instructions for invoking the generated program code instructions for data conversion and for invoking the new software module to replace at least one software module comprising the old software module at the runtime of the control program with the new software module.
1. A method for operating an automation system having a memory in which a control program is stored as an automation solution and executed by a processing unit incorporated in the automation system, said control program comprising a plurality of software modules invoked during execution of the control program by a runtime group module incorporated in the control program, wherein to replace at least one software module comprising an old software module with a new software module at runtime of the control program, the method comprising:
comparing an old data area associated with the old software module with a new data area associated with the new software module;
generating program code instructions for one of converting data for the old data area and converting data from the old data area into one of data for the old data area and data from the new data area;
loading the new software module and the new data area; and
replacing a program code instruction for invoking the old software module in the runtime group module with program code instructions for invoking the generated program code instructions for data conversion and for invoking the new software module to replace at least one software module comprising the old software module with the new software module at runtime of the control program.
10. A process in which a computer executes instructions set forth in a computer program executing on a processor which, when used on the computer, causes a new software module to replace at least one software module comprising an old software module at runtime of a control program with a new software module, the computer program comprising:
program code for comparing an old data area associated with the old software module with a new data area associated with the new software module;
program code for generating program code instructions for one of converting data for the old data area and converting data from the old data area into one of data for the old data area and data from the new data area;
program code for loading the new software module and the new data area; and
program code for replacing a program code instruction for invoking the old software module in the runtime group module with program code instructions for invoking the generated program code instructions for data conversion and for invoking the new software module to replace at least one software module comprising the old software module at the runtime of the control program with the new software module to replace at least one software module comprising the old software module at the runtime of the control module with the new software module.
2. The method as claimed in
searching the control program for program code instructions related to the old data area, and
modifying program code instructions located in the search so that they relate to the new data area.
3. The method as claimed in
assigning a reference to the new software module which previously designated the old software module.
4. The method as claimed in
re-removing the program code instructions which were initially replaced in the runtime group module; and
inserting a program code instruction for invoking the new software module under a previous reference of the old software module in the runtime group module in place of the initially replaced program code instructions.
5. The method as claimed in
releasing memory areas occupied by the old software module and by the old data area in the memory.
6. The method as claimed in
copying the located program code instructions related to the old data area and which are not automatically changeable into program code instructions relating to the new data area into a task list.
7. The method as claimed in
8. The method as claimed in
|
1. Field of the Invention
The invention relates to a method for operating an automation system having a memory in which a control program is stored as an automation solution and, more specifically, to a situation such as arises when at the runtime of parts of the control program these parts of the control program have to be replaced with updated parts without the execution of the control program and overall operation of the automation system being noticeably interrupted. Such a replacement of parts of the control program is referred to as delta loading, where such parts of the control program are referred to in the following as software modules.
2. Description of the Related Art
The problems associated with delta loading have been the subject of discussion for a long time. At present, however, only solutions that can be used if no change is made to the interface of the respective software modules are available for automation systems. The reason for this is that such data resides sorted in a sequential manner in a data area assigned to the software module, referred to as the instance (DB). Consequently, if a data area is modified, the address locations of all the succeeding data are shifted. Due to the shifting of the address locations of following data areas, a loaded instance (DB) also cannot be extended without due consideration.
Accordingly, with the conventional solutions that are available, if a change or correction to a software module is made, which can only be accomplished by extending the data in the associated data area (new inputs or outputs or additional data), then at the present time the module can only be loaded into the automation system if the automation system is first transitioned to a stopped state, i.e., if the execution of the control program is interrupted. In an automation system that is in the stopped state there is consequently also an interruption to the control and/or monitoring of the respective technical process for the duration of the stopped state.
It is therefore, an object of the invention to provide a method for operating an automation system in which the aforementioned disadvantages are avoided or at least their impact is reduced.
This and other objects and advantages are achieved in accordance with the invention by a method for operating an automation system having an automation system that comprises one or more memories and one or more processing units, wherein a control program is stored in the memory as an automation solution that is executed by the processing unit. The control program comprises a plurality of software modules which are invoked (called) during the execution of the control program by a runtime group module also incorporated in the control program. The individual steps for replacing at least one software module comprising an old software module at the runtime of the control program with a new software module, i.e., a software module with modified interface, comprises comparing an old data area associated with the old software module with a new data area associated with the new software module, generating program code instructions for converting data for or from the old data area into data for or from the new data area, loading the new software module and the new data area, and replacing a program code instruction for invoking the old software module in the runtime group module with program code instructions for invoking the generated program code instructions for data conversion and for invoking the new software module.
By generating the program code instructions for converting data for the or from the old data area into data for the or from the new data area, it is ensured that the control program can continue to run with its software modules or other control programs not affected by the replacement. It is possible that such software modules or other control programs access the old data area of the old data module that is to be replaced. To ensure this data will also be accessible to the new software module, the data is transferred from the old data area into the new data area. Once the data is available in the new data area, the new software module can immediately take over the functionality of the replaced old software module.
If the new software module generates data that is relevant to other parts of the control program or other control programs, the generated data is stored in the new data area. At least initially, however, the remaining parts of the control program or other control programs access, not the new data area, but the old data area of the software module that is to be replaced. Consequently, to ensure that any data that may have been generated by the new software module is also available to the remaining parts of the control program or to other control programs, the program code instructions for data conversion also include copy instructions for transferring data from the new data area into the old data area. Once the data generated by the new software module is available in the old data area, the control program with its parts not affected by the replacement is also immediately able to process data generated by the new software module. The same applies to any other control programs.
The totality of program code instructions for the described data conversion is referred to in the following as a copy routine for short. To ensure that the copy routine can also become effective, provision is made for its invocation by that runtime group module which invokes the old software module or which previously invoked the old software module. Provision for invoking the new software module is also made in the runtime group module. The program code instruction for invoking the new software module takes the place of the previous call provided for invoking the old software module in the runtime group module. The generated copy routine is invoked from the runtime group module before and after the new software module is invoked, in particular immediately before and immediately after such an invocation; in fact the copy routine therefore comprises a first part and a second part. The runtime group module includes corresponding (call) program code instructions to invoke each copy routine. The data is copied over from the old data area into the new data area before the new software module is invoked by the first part of the copy routine. Similarly, the data is copied over from the new data area into the old data area by invoking the second part of the copy routine after the new software module has been processed.
The approach according to the invention therefore allows one or more software modules in a control program to be replaced without the need to interrupt the control program or other control programs. The control program can therefore be modified at runtime. When reference is made here to other control programs, this means, e.g., a control and monitoring program which is executed as a control program by an automation device provided as a control and monitoring system.
In a preferred embodiment, the control program is searched for program code instructions which relate to the old data area. Here, the search is preferably conducted, not in the control program of the automation system, but in a control program made available in an engineering system, i.e., a programming environment, or in the totality of all control programs of the automation system. The control program for the automation system is produced or changes are made to it in the engineering system, e.g., a software environment that typically runs on a programming device or the like. The search in the control program in the engineering system can be conducted faster than in the other automation devices of the automation system and above all without affecting them or it. A control program of the automation system can be a distributed control program, particularly when the automation system is also a distributed system, i.e., a system comprising a plurality of automation devices. If the automation system includes only one automation device, the terms automation system and automation device designate the same entity. If the automation system includes at least one automation device provided for control and monitoring purposes and at least one automation device provided as an operator control and monitoring device, the control program of the automation system comprises at least one control program for the at least one automation device and at least one control program for the at least one operator control and monitoring device. The scope of the term control program is therefore determined by the particular context.
Program code instructions found during the search of the control program are modified such that they relate to the new data area. Such a modification of the program code instructions of the control program can also be referred to as “mapping”. The conversion allows the subsequent removal of the program code instructions for converting data from the old data area to the new data area. The program code instructions identified in the control program as relating to the old data area modified such that they relate to the new data area. As a result, there is no necessity to keep data available for these program code instructions in the old data area. If all program code instructions of this kind are modified, insofar as the new software module is concerned, the control program henceforth comprises only program code instructions that relate to the new data area. As soon as this is ensured, the old data area and the program code instructions for converting data from the old to the new data area can be removed. Parts of the control program that have become unnecessary can therefore be deleted and only the memory area actually required is occupied.
In accordance with the preferred embodiment, the new software module is assigned a reference that previously designated the old software module. Suitable as a reference in this context is a name such as “function block 10” or “FB 10”. When the new software module is first loaded, it is assigned a temporary name or a temporary reference so that it can be loaded simultaneously with the old software module. If a reference which previously designated the old software module is subsequently assigned to the new software module, it is ensured that the entity which had originally provided the old software module, i.e., for example, a programming device with an engineering system, recognizes the new software module (under the reference of the old software module) again as “its” module. The reference previously designating the old software module can be assigned to the new software module by newly loading the new software module under the reference of the old software module and replacing the old software module in the process. Renaming the new software module after it has been loaded for the first time is also a possibility. The renaming then causes the reference which previously designated the old software module to be used as a reference for the new software module.
It is also preferably provided that the program code instructions initially replaced in the runtime group module are re-removed and a program code instruction for invoking the new software module under the former reference of the old software module is inserted in their place in the runtime group module. After such a change, the data in the runtime group module is essentially once more in a state such as that which existed prior to the change caused by insertion of the new software module. The runtime group module no longer contains any program code instructions for invoking the generated copy routine and the runtime group module now includes only a program code instruction for invoking the new software module, and moreover under the reference under which the old software module was previously invoked at the same point.
In an advantageous embodiment, the memory areas occupied by the old software module and/or by the old data area in the memory of the automation system are re-released. This ensures optimal utilization of the memory space available in the automation system and the old software module, which is no longer invoked anyway, and the old data area correlated therewith no longer tie up resources of the automation system unnecessarily.
In an embodiment of the method, found program code instructions which relate to the old data area and which cannot automatically be changed into program code instructions relating to the new data area are copied into a task list. The task list is available for manual processing by an operator, and moreover preferably for processing in the engineering system. The aim of this manual processing is to supplement the automatically generated copy routine for converting data from the old memory area into the new memory area for each entry contained in the task list, such that after the task list has been processed completely a partly automatically generated and a partly manually supplemented copy routine for converting data from the old data area into the new data area and vice versa are available. The purpose of the task list is therefore to reveal accesses (interconnections) which cannot be converted automatically, e.g., accesses involving incompatible types. An example of such an incompatibility is a program code instruction which wants to read a data item of type “long word” from the data area when, as a result of the modification of the software module, only memory for a data item of type “word” is provided for the data in the data area.
In this case, it is particularly preferably that in the event of any program code instructions which relate to the old data area and which cannot automatically be changed into program code instructions relating to the new data area, the substitution of the call for invoking the new program module in place of the old software module in the runtime group module is deferred or prevented until such time as the task list resulting from such program code instructions has been emptied. It is achieved in this way that it will only be possible to invoke the new software module when its provision and disposal is fully ensured through corresponding copying over from the old data area into the new data area and vice versa, with the result that the functional integrity of the control program as a whole is guaranteed.
In a method for operating an automation system, as described here and in the following, when a plurality of new software modules are substituted for a corresponding plurality of old software modules a new software module from the plurality of the new software modules is preferably substituted in succession for each corresponding old software module and a replacement sequence within the plurality of new software modules is chosen in accordance with a respective call hierarchy for invocation of the respective old or new software module. This takes into account, on the one hand, that it is not possible to replace an arbitrarily large number of software modules simultaneously. On the other hand, the replacement process in accordance with the call hierarchy occurs according to a clear structure which, e.g., also simplifies the manual processing of a task list, because all the entries present in the task list relate to one and the same software module.
The invention also relates to an automation system operating in accordance with the method of the invention, i.e., an automation system having a memory and a processing unit for executing a control program which can be loaded into the memory, wherein to execute the method, as described here and in the following, means are provided for its implementation, i.e., for substituting a new software module for an old software module previously incorporated in the control program, and moreover at the runtime of the control program. The invention also relates to a computer program comprising computer-executable program code instructions for implementing the method and its embodiments when the computer program is executed on a computer, i.e., by the automation system or an automation device incorporated therein or alternatively an engineering system connected at least temporarily to the automation system. The invention also relates to a computer-readable storage medium having such a computer program which is executable by a computer, i.e., a computer program that comprises program code instructions and by which the method in accordance with the invention and/or individual embodiments thereof is and/or are implemented.
The functionality of a software module is determined by program code instructions provided therefor. If a software module is used at least once in a control program, the program code instructions become part of the control program precisely once. A software module is invoked together with its data area, the instance (DB). If a software module is used more than once, a separate data area is created for each such use, while the program code instructions of the software module continue as before to be part of the control program only once.
A situation in which the functionality of a P controller (proportional controller) is implemented by a software module may serve as an example. Such a functionality can be used multiple times in a control program, e.g., with different proportionality factors and/or for different control operations. For example, if in the course of a batch process the fill level of a plurality of reactors is to be monitored by a proportional controller for reaching a set point fill level, the same functionality can be used for each such reactor fill level control function. Here, different parameters are held in readiness in different instance (DBs). The calls to invoke the reactor fill level control function are then executed with the respective instance (DB). If the functionality of such a controller module changes such that this has repercussions for the interface, i.e. the data area (i.e., instance (DB)), or if only the interface is changed, all uses (i.e., occurrences) of the controller module must be changed in the control program. For this purpose, the new functionality (i.e., program code instructions) has to be incorporated into the control program only once, even if the controller module is used multiple times. Initially the old functionality is still included in the control program. The new functionality is invoked with a corresponding new data area, in which case a previous, old data area is likewise retained initially. Because of the replacement at runtime, the control program may (or will) initially still include interconnections relating to the old data area. This is why a copy routine is provided for transferring the data from the old data area or a plurality of old data areas into the respective new data area and vice versa.
New data areas and copy routines are created sequentially, or group by group in the control program for each independent use of the controller module. Thereafter, if the original functionality of the controller module is no longer invoked, the corresponding program code instructions can be removed from the control program. If all interconnections that were related to old data areas have been replaced by corresponding interconnections relating to new data areas, the old data areas and the copy routines are also no longer required. With this concept, it is of no importance whether the control program is a single program or possibly a group of programs which possibly even run on distributed devices, i.e., one or more automation devices and/or one or more control and monitoring systems. The replacement occurs under control of an engineering system, as normally used at least for creating a control program. The engineering system can load the control program or parts thereof onto the corresponding devices. When the invention is implemented, the engineering system or a corresponding functionality loads the program code instructions of the controller module assumed as modified by way of example onto each device affected by the change. New data areas are then provided on each device affected and calls for invocation of the new controller module are scheduled with the new data areas and the copy routine. The functionality of the copy routine is likewise determined by the engineering system, possibly with an operator manually supplementing an automatically generated part of the copy routine on the engineering system. Following completion of the replacement of the controller module, the engineering system also handles the removal of parts that are no longer required from the control program.
Each exemplary embodiment is not to be understood as a restriction of the invention. Rather, numerous variations and modifications are possible within the scope of the present disclosure, in particular such variants and combinations which may be derived by the person skilled in the art with regard to the achievement of the object e.g. by combination or modification of individual features or elements or method steps described in connection with those described in the general or specific part of the description as well as contained in the claims and/or the drawing and which lead by means of combinable features to a new subject matter or to new method steps or method step sequences.
An exemplary embodiment of the invention is explained in more detail below with reference to the drawing, in which objects or elements corresponding to one another are labeled with the same reference signs in all the Figures and, in which:
The software modules 32 are invoked by a runtime group module 34 likewise incorporated in the control program 28, and moreover are called in a predefinable sequence. For simplicity, only one runtime group module 34 is shown. In actual fact each control program 28 can comprise a multiplicity of runtime group modules 34.
The control program 28, together with its software modules 32, is executed by the processor 24, moreover specifically in that the runtime group module 34 or, in a more complex embodiment, a plurality of runtime group modules 34 is or are each executed in a predefined timeframe. The implementation of the runtime group module 34 specifies a hierarchy of the software modules 32 and an order in which these software modules are executed in turn in accordance with the call sequence configured there. This results in a quasi-cyclical execution also for their execution.
Each software module 32 is assigned one or more data areas 36 that each act as an interface for the respective software module 32 (e.g., in order to be able to transmit data for controlling a movement operation to a first instance of a controller module and data for regulating temperature to a further instance of the same controller module). For that purpose, data is stored in the data area 36 by the control program 28 or other software modules 32, the data having to be processed as input data by the respective software module 32. During its execution, the respective software module 32 stores in the data area 36 such data that is to be made available to the control program 28 as a whole or to other software modules 32 as output data of the respective software module 32.
Merely for purposes of visual differentiation,
The new software module 42 is loaded into the memory 26 (
The data acquired in this way from the cyclically executed section of the first part 46.1 of the copy routine 46 is data resulting due to input interconnections, i.e., the data is made available as input data to the old/new software module 38, 42, of other software modules. Here, other software modules coming into consideration are likewise software modules belonging to the control program executed on the local automation device as well as such software modules belonging to a control program executed on a remote automation device (e.g., an operator control and monitoring device). Accordingly, the data acquired by the second part 46.2 of the copy routine 46 is data resulting because of output interconnections, i.e., the data is made available as output data by the new software module 42, of other software modules.
As a result of the generation of the program code instructions for converting data for the or from the old data area into data for the or from the new data area, it is thus ensured that the control program can continue to run with those of its software modules that are not affected by the replacement. It is possible that these software modules access the old data area of the old data module that is to be replaced. To ensure this data is also accessible to the new software module, the data is copied over from the old data area into the new data area.
As soon as the copy routine 46 is available, a program code instruction for invoking the old software module 38 together with the associated instance (DB), the old data area 40, is replaced in the runtime group module 34 with a program code instruction for invoking the generated program code instructions for data conversion, i.e., the copy routine 46, and for invoking the new software module 42 with its instance (DB), the new data area 44. The invocation of the software modules 32 together with the respective instance (DB) (data area 36) by the runtime group module 34 is represented here by arrows originating from the runtime group module 34 and ending at the software module 32 that is to be invoked in each case. A corresponding invocation of the old or new software module 38, 42 or of the copy routine 46 is indicated by dashed arrows because, e.g., the call for invoking the old software module 38 is not permanent and is dispensed with after the new software module 42 has been incorporated into the calls executed by the runtime group module 34.
The call for invoking the new software module 42 is not permanent because there is no provision for its invocation as long as the old software module 38 continues to be invoked by the runtime group module 34. Similarly, the call for invoking the copy routine 46 is also not permanent because the copy routine 46 will not be invoked while the old software module 38 continues to be called. Once the new software module 42 has completely replaced the old software module 38 and any usage of data in the previous old data area 40 has been converted into a usage of the data in the new data area 44, there is no longer any provision for a further use of the copy routine 46 and accordingly for its invocation.
A control program 28 (see also
It is important to note that due to the representation of the configured calls, a multiple representation of the same software module 32 does not imply the multiple presence of the software module 32 in the control program 28. The program code incorporated in the software module 32 is only a part of the control program 28; one and the same software module 32, e.g., the software module 32 identified by hatching, appears multiple times in the diagram shown in
The new software module 42 is created as a temporary software module at time instant t=1. This new software module 42 is provided as a replacement for those software modules 32 (i.e., old software module 38) identified by corresponding hatching in the top part of the diagram. The software module 32 that is to be replaced (i.e, old software module 38) is used multiple times in the control program 28. A simultaneous replacement of all call points for invocation of the software module 32 that is to be replaced and of the associated instance (DBs) is not possible due to the multiplicity of call points in different runtime groups and the multiplicity of the associated data areas in each case. Consequently, the replacement is performed one step at a time. For this, it is considered how and where the software module 32 that is to be replaced (i.e., old software module 38) is invoked together with its instance (DBs) (i.e., the old data areas 40). For that purpose, reference is made in the following to the runtime group modules 34 (represented as solid) in accordance with their vertical sequence in the diagram as first, second, third and fourth runtime group module 34. The runtime group modules 34 represented as solid designate such modules that subsequently undergo a modification, as will be described further below.
Two software modules 32 that are to be replaced (i.e., old software modules 38) are invoked by the first runtime group module 34. Accordingly, two new data areas 44 are created, likewise at time instant t=1. As a result, the modified program code, i.e., the new software module 42, and instance (DBs) with which this can work in each case, i.e., initially two new data areas 44, are available on the side of the automation device 12 which executes the control program 28. The new software module 42 is therefore loaded into the memory 26 of the automation system 10 or of an automation device 12 incorporated therein.
The first runtime group module 34 is replaced or modified at time instant t=2. The change in the runtime group module 34, or a corresponding change in a new runtime group module 34 which replaces the first runtime group module 34, relates at least to a modification of that program code instruction (not shown) which encodes the call for invocation of the software module 32 that is to be replaced in the runtime group module 34. Each such program code instruction is replaced by a program code instruction for invoking the new software module 42 together with its instance (DB), the new data area 44. In addition, prior to and after the invocation, calls for invoking the copy routine 46 (not shown in
The time instants t=1, t=2, etc., used here and in the following to provide a structured illustration of the execution sequences, are time instants or time segments at or during which the described exemplary actions occur. So-called cycle control points are especially suitable for such time instants. In programmable logic controllers, cycle control points are special states during the cyclical processing of the respective control program, e.g., cycle start or cycle end. Here, the exact time instants are not necessarily fixed. Rather, the order of the individual actions is of significance. Here, it must additionally be taken into account that the time instants t=1, t=2, etc. indicated in
A further new data area 44 is created at time instant t=3, moreover specifically for that new software module 42 which is invoked by the third runtime group module 34. Thereafter, at time instant t=4, the third runtime group module 34 can be replaced or modified, as described above. As a result, the new software module 42 will be invoked at that point too, together with the further new data area 44 created in time instant t=3 used thereby.
Yet a further new data area 44 is created at time instant t=5, moreover specifically for that new software module 42 which is invoked by the second runtime group module 34. Thereafter, at time instant t=6, the second runtime group module 34 can be replaced or modified so that the new software module 42 will be invoked there too.
After time instant t=6 and before time instant t=8, all modifications are stored in the memory of the respective automation device, e.g., of the first automation device 12. From now on, all references, i.e., input or output interconnections to other software modules, can be relocated from the respective old data area 40 to the new data area 44 so that subsequently the copy routines can be re-removed. The relocating of external interconnections, i.e., interconnections from or to software modules of a control program of a different automation device, is not shown here, but can be performed in an optimized manner if necessary with the modification of the runtime group module 34. After time instant t=6 other automation devices, e.g. the operator control and monitoring device 16, must also be reloaded, since addresses changed in the following steps become invalid.
At time instant t=7 the new software module 42 is assigned a reference which previously designated the replaced, old software module, or the new software module 42 as shown is newly loaded under the reference of the replaced, old software module and is therefore (initially) identically present in duplicate.
At time instant t=8 the modifications made in time instant t=2 to the first and fourth runtime group module 34 are all but reversed such that these are modified such that the newly loaded, new software module 42 is now again invoked under the original reference. In addition, the previous call for invocation of the copy routine 46 is also re-omitted, because references to the old data area 40 no longer exist. In time instant t=9, the old data areas 36 used by the two instances of the replaced, old software module invoked from the first runtime group module 34 are deleted. The same deletion occurs at time instants t=10 and t=11, as well as t=12 and t=13 for the third and second runtime group module 34, respectively, and the old data areas 36 used in connection with invocations there. The (temporary) new software module 42 created at time instant t=1 is deleted at time instant t=14 because it is no longer referenced.
The execution sequences illustrated in
If the new software module 42 is used multiple times in the control program 28, the software module 42 is invoked with a separate new data area 44 due to each use. Multiple uses of the new software module 42 accordingly also result in a plurality of new data areas 44 and a plurality of copy routines 46 for converting the data from the respective old data area 40 into the respective new data area 44.
The or each copy routine 46 allows the use of the new software module 42 in an otherwise unchanged control program 28. However, in order to completely replace the old software module 38 with the new software module 42, the old software module 38 and the associated old data area 40 are removed from the control program 28. Any accesses from the control program 28 to the old data area 40 are then no longer possible. Accordingly, the control program 28 must be searched for program code instructions relating to the old data area 40, and program code instructions found in the process must be modified so that they relate to the new data area 44.
Preferably, the control program 28 is searched using the copy thereof held in the engineering system, which copy is the basis for the control program 28 in the memory 26 of the automation device 12, and at time instants t=6 and t=7 in accordance with the diagram shown in
Searching and subsequent modification is also referred to as “mapping”. In that regard
When the control program 28 is searched, if program code instructions are found that relate to the old data area 40 and cannot automatically be changed into program code instructions relating to the new data area 44, provision is made for their transfer into a task list 58. This situation is shown in
Once all program code instructions that relate to the old data area 40 have been replaced either automatically or manually in the control program 28 by corresponding program code instructions relating to the new data area 44, the copy routine 46 is dispensable and the new software module 42 with its new data area 44 completely replaces the old software module 38 with its old data area 40, and the old modules 38, 40 can be deleted.
Additional complexity results for the application of the method in accordance with the contemplated embodiments of the invention when a plurality of devices, e.g., at least one operator control and monitoring device 16 (
The invention can therefore be briefly summarized as a method for operating an automation system 10 which executes, as an automation solution, a control program 28 having a plurality of software modules 32, where the method comprises the following steps for replacing at least one software module comprising an old software module 38 at the runtime of the control program 28 with a new software module 42, wherein an old data area 40 associated with the old software module 38 is compared with a new data area 44 associated with the new software module 42, program code instructions are generated for converting data for or from the old data area 40 into data for or from the new data area 44, the new software module 42 and the new data area 44 are loaded into a memory 26 of the automation system 10, and a program code instruction for invoking the old software module 38 is replaced with program code instructions for invoking the generated program code instructions for data conversion and for invoking the new software module 42. The contemplated embodiments of the method in accordance with the invention ensures the consistency of the data not only within the automation device 10 executing the control program 28, but also in relation to remote automation devices, e.g., an operator control and monitoring device 16, at all times.
Program code instructions are generated for converting data for or from the old data area into data for or from the new data area, as indicated in step 820. The new software module and the new data area are loaded, as indicated in step 830. Next, a program code instruction for invoking the old software module in the runtime group module is replaced with program code instructions for invoking the generated program code instructions for data conversion and for invoking the new software module to replace at least one software module comprising the old software module with the new software module at runtime of the control program, as indicated in step 840.
Thus, while there are shown, described and pointed out fundamental novel features of the invention as applied to preferred embodiments thereof, it will be understood that various omissions and substitutions and changes in the form and details of the illustrated apparatus, and in its operation, may be made by those skilled in the art without departing from the spirit of the invention. Moreover, it should be recognized that structures 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.
Patent | Priority | Assignee | Title |
Patent | Priority | Assignee | Title |
4558413, | Nov 21 1983 | Xerox Corporation | Software version management system |
5835911, | Feb 08 1995 | Fujitsu Limited | Software distribution and maintenance system and method |
6996818, | Nov 22 2002 | Qualcomm Incorporated | Update system for facilitating software update and data conversion in an electronic device |
7415707, | Apr 19 2001 | Sony Corporation | Installation software using a setting file to automatically determine if a module is installable and the location of the installation |
7496910, | May 21 2004 | Microsoft Technology Licensing, LLC | System for policy-based management of software updates |
7581217, | Oct 31 2001 | Microsoft Technology Licensing, LLC | Dynamic software update |
7627746, | Aug 10 2005 | INFOBLOX INC ; INFOBLOX, INC | Network appliance management |
7668612, | Sep 18 2003 | Qualcomm Incorporated | System and method for efficient manufacture and update of electronic devices |
7711760, | Nov 30 2006 | Red Hat, Inc.; Red Hat, Inc | File update availability checking in a hierarchal file store |
8332838, | Nov 14 2007 | TEMIC AUTOMOTIVE OF NORTH AMERICA, INC | Systems and methods for updating device software |
20020073410, | |||
20090193485, | |||
20090222806, | |||
20100162352, | |||
WO2004049115, | |||
WO9856149, | |||
WO9946676, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Mar 08 2011 | Siemens Aktiengesellschaft | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Date | Maintenance Schedule |
Aug 20 2016 | 4 years fee payment window open |
Feb 20 2017 | 6 months grace period start (w surcharge) |
Aug 20 2017 | patent expiry (for year 4) |
Aug 20 2019 | 2 years to revive unintentionally abandoned end. (for year 4) |
Aug 20 2020 | 8 years fee payment window open |
Feb 20 2021 | 6 months grace period start (w surcharge) |
Aug 20 2021 | patent expiry (for year 8) |
Aug 20 2023 | 2 years to revive unintentionally abandoned end. (for year 8) |
Aug 20 2024 | 12 years fee payment window open |
Feb 20 2025 | 6 months grace period start (w surcharge) |
Aug 20 2025 | patent expiry (for year 12) |
Aug 20 2027 | 2 years to revive unintentionally abandoned end. (for year 12) |