US8286154B2 - Apparatus and method for live loading of version upgrades in a process control environment - Google Patents

Apparatus and method for live loading of version upgrades in a process control environment Download PDF

Info

Publication number
US8286154B2
US8286154B2 US11/386,388 US38638806A US8286154B2 US 8286154 B2 US8286154 B2 US 8286154B2 US 38638806 A US38638806 A US 38638806A US 8286154 B2 US8286154 B2 US 8286154B2
Authority
US
United States
Prior art keywords
old
class
new
version
object instances
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active, expires
Application number
US11/386,388
Other versions
US20070226685A1 (en
Inventor
Ziad M. Kaakani
Vivek B. Varma
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honeywell International Inc
Original Assignee
Honeywell International Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honeywell International Inc filed Critical Honeywell International Inc
Priority to US11/386,388 priority Critical patent/US8286154B2/en
Assigned to HONEYWELL INTERNATIONAL INC. reassignment HONEYWELL INTERNATIONAL INC. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: KAAKANI, ZIAD M., VARMA, VIVEK B.
Priority to EP07759001A priority patent/EP1997004A2/en
Priority to PCT/US2007/064505 priority patent/WO2007109717A2/en
Publication of US20070226685A1 publication Critical patent/US20070226685A1/en
Application granted granted Critical
Publication of US8286154B2 publication Critical patent/US8286154B2/en
Active legal-status Critical Current
Adjusted expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0426Programming the control sequence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running

Definitions

  • This disclosure relates generally to computing systems and more specifically to an apparatus and method for live loading of version upgrades in a process control environment.
  • Processing facilities are often managed using process control systems.
  • Example processing facilities include manufacturing plants, chemical plants, crude oil refineries, and ore processing plants.
  • process control systems typically manage the use of motors, valves, and other industrial equipment in the processing facilities.
  • controllers are often used to control the operation of the industrial equipment in the processing facilities.
  • the controllers could, for example, monitor the operation of the industrial equipment, provide control signals to the industrial equipment, and generate alarms when malfunctions are detected.
  • Conventional controllers often include function block algorithms or other control logic implementing the desired control functionality.
  • Conventional controllers also often include a scheduler, which schedules or drives the execution of the control logic. For example, a scheduler could invoke or schedule execution of a function block algorithm once every twenty milliseconds.
  • the scheduler is often written by a manufacturer or vendor of a controller, while the control logic can be written by the manufacturer or vendor of the controller or by end users of the controller (such as industrial plant engineers).
  • This disclosure provides an apparatus and method for live loading of version upgrades in a process control environment.
  • a method in a first embodiment, includes comparing a first layout of data elements associated with a first version of a class and a second layout of data elements associated with a second version of the class.
  • the first and second versions of the class are associated respectively with first and second versions of assembly code.
  • the method also includes updating method information in an existing object instance associated with the first version of the class if the first and second layouts are identical.
  • the method includes creating a new object instance associated with the second version of the class and transferring one or more values of one or more data elements from the existing object instance to the new object instance when the first and second layouts are not identical.
  • the existing object instance represents one of a plurality of existing object instances.
  • an executable program associated with the first and second versions of assembly code or a garbage collection process identifies the plurality of existing object instances.
  • an apparatus in a second embodiment, includes at least one memory capable of storing an existing object instance associated with a first version of a class.
  • the first version of the class is associated with a first version of assembly code.
  • the apparatus also includes at least one processor capable of comparing a first layout of data elements associated with the first version of the class and a second layout of data elements associated with a second version of the class.
  • the second version of the class is associated with a second version of assembly code.
  • the at least one processor is also capable of updating method information in the existing object instance if the first and second layouts are identical.
  • the at least one processor is capable of creating a new object instance associated with the second version of the class and transferring one or more values of one or more data elements from the existing object instance to the new object instance when the first and second layouts are not identical.
  • a computer program is embodied on a computer readable medium and is operable to be executed by a processor.
  • the computer program includes computer readable program code for comparing a first layout of data elements associated with a first version of a class and a second layout of data elements associated with a second version of the class.
  • the first and second versions of the class are associated respectively with first and second versions of assembly code.
  • the computer program also includes computer readable program code for updating method information in an existing object instance associated with the first version of the class if the first and second layouts are identical.
  • the computer program includes computer readable program code for creating a new object instance associated with the second version of the class and transferring one or more values of one or more data elements from the existing object instance to the new object instance when the first and second layouts are not identical.
  • FIG. 1 illustrates an example process control system according to one embodiment of this disclosure
  • FIG. 2 illustrates an example execution environment according to one embodiment of this disclosure
  • FIG. 3 illustrates an example method for preparing for a live load of a version upgrade in a process control environment according to one embodiment of this disclosure
  • FIGS. 4A and 4B illustrate an example method for live loading of a version upgrade in a process control environment according to one embodiment of this disclosure.
  • FIGS. 5A through 5C illustrate another example method for live loading of a version upgrade in a process control environment according to one embodiment of this disclosure.
  • FIG. 1 illustrates an example process control system 100 according to one embodiment of this disclosure.
  • the embodiment of the process control system 100 shown in FIG. 1 is for illustration only. Other embodiments of the process control system 100 may be used without departing from the scope of this disclosure.
  • the process control system 100 includes one or more process elements 102 a - 102 b .
  • the process elements 102 a - 102 b represent components in a process or production system that may perform any of a wide variety of functions.
  • the process elements 102 a - 102 b could represent motors, catalytic crackers, valves, and other industrial equipment in a production environment.
  • the process elements 102 a - 102 b could represent any other or additional components in any suitable process or production system.
  • Each of the process elements 102 a - 102 b includes any hardware, software, firmware, or combination thereof for performing one or more functions in a process or production system.
  • Two controllers 104 a - 104 b are coupled to the process elements 102 a - 102 b .
  • the controllers 104 a - 104 b control the operation of the process elements 102 a - 102 b .
  • the controllers 104 a - 104 b could be capable of providing control signals to the process elements 102 a - 102 b periodically.
  • Each of the controllers 104 a - 104 b includes any hardware, software, firmware, or combination thereof for controlling one or more of the process elements 102 a - 102 b .
  • the controllers 104 a - 104 b could, for example, include one or more processors 105 and one or more memories 107 storing data and instructions used by the processor(s) 105 .
  • the processors 105 could include processors of the POWERPC processor family running the GREEN HILLS INTEGRITY operating system or processors of the X86 processor family running a MICROSOFT WINDOWS operating system.
  • Two servers 106 a - 106 b are coupled to the controllers 104 a - 104 b .
  • the servers 106 a - 106 b perform various functions to support the operation and control of the controllers 104 a - 104 b and the process elements 102 a - 102 b .
  • the servers 106 a - 106 b could log information collected or generated by the controllers 104 a - 104 b , such as status information related to the operation of the process elements 102 a - 102 b .
  • the servers 106 a - 106 b could also execute applications that control the operation of the controllers 104 a - 104 b , thereby controlling the operation of the process elements 102 a - 102 b .
  • the servers 106 a - 106 b could provide secure access to the controllers 104 a - 104 b .
  • Each of the servers 106 a - 106 b includes any hardware, software, firmware, or combination thereof for providing access to or control of the controllers 104 a - 104 b .
  • the servers 106 a - 106 b could, for example, represent personal computers (such as desktop computers) executing a MICROSOFT WINDOWS operating system.
  • the servers 106 a - 106 b could include processors of the POWERPC processor family running the GREEN HILLS INTEGRITY operating system or processors of the X86 processor family running a MICROSOFT WINDOWS operating system.
  • One or more operator stations 108 a - 108 b are coupled to the servers 106 a - 106 b
  • one or more operator stations 108 c are coupled to the controllers 104 a - 104 b
  • the operator stations 108 a - 108 b represent computing or communication devices providing user access to the servers 106 a - 106 b , which could then provide user access to the controllers 104 a - 104 b and the process elements 102 a - 102 b
  • the operator stations 108 c represent computing or communication devices providing user access to the controllers 104 a - 104 b (without using resources of the servers 106 a - 106 b ).
  • the operator stations 108 a - 108 c could allow users to review the operational history of the process elements 102 a - 102 b using information collected by the controllers 104 a - 104 b and/or the servers 106 a - 106 b .
  • the operator stations 108 a - 108 c could also allow the users to adjust the operation of the process elements 102 a - 102 b , controllers 104 a - 104 b , or servers 106 a - 106 b .
  • Each of the operator stations 108 a - 108 c includes any hardware, software, firmware, or combination thereof for supporting user access and control of the system 100 .
  • the operator stations 108 a - 108 c could, for example, represent personal computers having displays and processors executing a MICROSOFT WINDOWS operating system.
  • At least one of the operator stations 108 b is remote from the servers 106 a - 106 b .
  • the remote station is coupled to the servers 106 a - 106 b through a network 110 .
  • the network 110 facilitates communication between various components in the system 100 .
  • the network 110 may communicate Internet Protocol (IP) packets, frame relay frames, Asynchronous Transfer Mode (ATM) cells, or other suitable information between network addresses.
  • IP Internet Protocol
  • ATM Asynchronous Transfer Mode
  • the network 110 may include one or more local area networks (LANs), metropolitan area networks (MANS), wide area networks (WANs), all or a portion of a global network such as the Internet, or any other communication system or systems at one or more locations.
  • the system 100 includes two additional servers 112 a - 112 b .
  • the servers 112 a - 112 b execute various applications to control the overall operation of the system 100 .
  • the system 100 could be used in a processing or production plant or other facility, and the servers 112 a - 112 b could execute applications used to control the plant or other facility.
  • the servers 112 a - 112 b could execute applications such as enterprise resource planning (ERP), manufacturing execution system (MES), or any other or additional plant or process control applications.
  • ERP enterprise resource planning
  • MES manufacturing execution system
  • Each of the servers 112 a - 112 b includes any hardware, software, firmware, or combination thereof for controlling the overall operation of the system 100 .
  • the system 100 includes various redundant networks 114 a - 114 b and single networks 116 a - 116 c that support communication between components in the system 100 .
  • Each of these networks 114 a - 114 b , 116 a - 116 c represents any suitable network or combination of networks facilitating communication between components in the system 100 .
  • the networks 114 a - 114 b , 116 a - 116 c could, for example, represent Ethernet networks.
  • control logic is implemented by the controllers 104 a - 104 b to control the process elements 102 a - 102 b .
  • the control logic could represent function block algorithms or any other suitable logic.
  • a function block algorithm represents an application having associated sub-applications formed from function blocks, where the application cycles through the function blocks and causes them to execute.
  • the function block algorithm or other control logic may be associated with classes that are used to create object instances.
  • the object instances are typically associated with both data elements and methods or behaviors.
  • the current value(s) of data element(s) in an object instance may be referred to as the “state” of the object instance.
  • the controllers 104 a - 104 b also implement a mechanism to upgrade from an old version of the control logic to a new version of the control logic.
  • the new version of the control logic could make various changes to the classes that define the object instances, compared to the classes that were defined by the old version of the control logic.
  • the new version of the control logic could add, modify, or remove data elements in a class.
  • data element refers to any individual unit of data (such as an integer, floating point value, character, or string) or combination of units (such as an array or data structure).
  • the new version of the control logic could also add, modify, or delete methods in a class.
  • the mechanism for upgrading the control logic in the controllers 104 a - 104 b supports the live loading of the new version of the control logic.
  • the controllers 104 a - 104 b are capable of creating and/or updating object instances so that they are suitable for use with the new version of the control logic. For example, if the field or class layout of a class (its data elements) remains unchanged, the controllers 104 a - 104 b may be capable of updating an object instance to identify new methods defined by the new version of the control logic. If the layout of a class changes, the controllers 104 a - 104 b may be capable of creating new object instances and transferring state data from old object instances to the new object instances.
  • controllers 104 a - 104 b may be capable of initializing new data elements in the new object instances and/or using conversion rules to transform data values from the old object instances prior to storage in the new object instances.
  • the conversion rules represent logic identifying how data is transformed during a transfer, which may be useful in situations like when data is being transferred between two data elements that have somewhat different structures.
  • the controllers 104 a - 104 b support the upgrading of control logic without the need to actually shut down the controllers 104 a - 104 b or an entire industrial process.
  • the controllers 104 a - 104 b may be capable of switching over from the old version of the control logic to the new version of the control logic within a relatively short amount of time (such as tens of milliseconds).
  • the controllers 104 a - 104 b may be capable of effectively transferring state data from old object instances to new object instances. The controllers 104 a - 104 b may do this without requiring users to actually write program code to perform the state data transfers.
  • the controllers 104 a - 104 b may also do this without requiring classes to be compiled with specific attributes enabled (such as is required for techniques like serialization/deserialization), which means that users need not decide whether a live load will be necessary when they are writing programs.
  • the controllers 104 a - 104 b execute, support, or otherwise provide access to an execution environment.
  • the execution environment provides support for various features that managed applications may use during execution.
  • the execution environment could provide support for mathematical functions, input/output functions, and communication functions.
  • the phrase “managed application” refers to an application executed in the execution environment, where the execution of the application is managed by the execution environment.
  • a managed application could include the control logic needed to control one or more process elements 102 a - 102 b.
  • the execution environment used in the controllers 104 a - 104 b to execute the managed applications is deterministic.
  • a deterministic execution environment is an execution environment whose behavior is predictable or that can be precisely specified.
  • the execution environment could be implemented in any suitable manner, such as by using NET programming based on the Common Language Interface (CLI) specification as ratified by ECMA-335 and support both the Kernel and Compact profiles.
  • the deterministic execution environment may support the live loading of a new version of control logic in a deterministic fashion. Additional information about an example deterministic execution environment may be found in the two patent applications incorporated by reference above.
  • FIG. 1 illustrates one example of a process control system 100
  • a control system could include any number of process elements, controllers, servers, and operator stations.
  • FIG. 1 illustrates one operational environment in which the live loading of version upgrades could be used.
  • the live loading mechanism could be used in any other suitable process control or non-process control device or system.
  • FIG. 2 illustrates an example execution environment 200 according to one embodiment of this disclosure.
  • the embodiment of the execution environment 200 shown in FIG. 2 is for illustration only. Other embodiments of the execution environment could be used without departing from the scope of this disclosure. Also, for ease of explanation, the execution environment 200 is described as being implemented in the controllers 104 a - 104 b of FIG. 1 , although the execution environment 200 could be used in any other suitable device or system.
  • the execution environment 200 includes a global assembly cache (GAC) 202 .
  • the global assembly cache 202 represents a memory capable of storing different assembly code programs to be executed in the execution environment 200 .
  • the assembly code programs could represent assembly code versions of function block algorithms or other control logic for controlling one or more of the process elements 102 a - 102 b of FIG. 1 .
  • the assembly code version of a function block algorithm or other control logic may be referred to as “assembly control logic.”
  • the global assembly cache 202 could store multiple assembly code programs and/or different versions of the same assembly code program.
  • the global assembly cache 202 represents any suitable storage and retrieval device or devices.
  • Assembly control logic could include program code and possibly metadata that describes one or more attributes of the assembly control logic and its program code.
  • an application may register in the execution environment 200 and receive a notification whenever assembly control logic is stored in a specified location in the global assembly cache 202 .
  • An assembly loader 204 loads assembly code into the execution environment 200 for execution.
  • the assembly loader 204 may retrieve new assembly code downloaded into the global assembly cache 202 .
  • the assembly loader 204 may then load the identified assembly code into a compiler for compilation and use in the execution environment 200 .
  • the assembly loader 204 includes any hardware, software, firmware, or combination thereof for loading assembly code for compilation.
  • the assembly loader 204 could, for example, represent a software thread executed in the background of the execution environment 200 .
  • An ahead-of-time (AOT) compiler 206 compiles the assembly code loaded by the assembly loader 204 .
  • the AOT compiler 206 represents a load-time compiler that compiles assembly code when the assembly code is loaded.
  • the AOT compiler 206 may convert assembly code from an intermediate language to native executable code capable of being executed in the execution environment 200 .
  • the AOT compiler 206 could insert instructions into the native executable code to ensure proper execution of the code in the execution environment 200 .
  • the AOT compiler 206 includes any hardware, software, firmware, or combination thereof for compiling assembly code.
  • the AOT compiler 206 could, for example, represent a software thread executed in the background of the execution environment 200 .
  • the AOT compiler 206 produces native executable code, such as native executable codes 208 a - 208 b .
  • the native executable codes 208 a - 208 b represent executable code capable of being executed in the execution environment 200 .
  • the native executable codes 208 a - 208 b could provide any suitable functionality in the execution environment 200 .
  • the native executable codes 208 a - 208 b could represent executable versions of assembly control logic used to control one or more process elements 102 a - 102 b of FIG. 1 .
  • the native executable codes 208 a - 208 b could provide any other or additional functionality in the execution environment 200 .
  • One or more application domains 210 represent the domains in which the native executable codes 208 a - 208 b are executed in the execution domain 200 .
  • Each application domain 210 represents any suitable domain for executing one or more native executable codes 208 a - 208 b . While shown as a single application domain 210 in FIG. 2 , multiple application domains 210 could be used.
  • the assembly codes and native executable codes in the execution environment 200 are managed by a code manager 212 .
  • the code manager 212 may control the loading and unloading of assembly code into and out of the execution environment 200 .
  • the code manager 212 could cause the assembly loader 204 to load assembly code into the AOT compiler 206 , which generates native executable code that is loaded into the application domain 210 .
  • the code manager 212 could also unload native executable code from the application domain 210 .
  • the code manager 212 includes any hardware, software, firmware, or combination thereof for managing assembly code and/or compiled code used in the execution environment 200 .
  • the code manager 212 could, for example, represent a software thread executed in the background of the execution environment 200 .
  • the execution environment 200 also includes a memory manager 214 .
  • the memory manager 214 manages the use of memory, such as a heap memory. For example, the memory manager 214 could allocate blocks of memory to managed applications being executed in an application domain 210 .
  • the memory manager 214 could also use garbage collection information 216 to release blocks of memory that are no longer being used by the managed applications.
  • the garbage collection information 216 could, for example, be generated by a garbage collection process provided by the memory manager 214 and executed in the background of the execution environment 200 . Additional information about an example garbage collection process may be found in the two patent applications incorporated by reference above.
  • the memory manager 214 could support a defragmentation process for the memory. The defragmentation process could be used to combine unused blocks of memory into larger blocks.
  • the memory manager 214 includes any hardware, software, firmware, or combination thereof for managing memory.
  • the memory manager 214 could, for example, represent a deterministic memory manager.
  • the memory manager 214 could also represent a software thread executed in the background of the execution environment 200 .
  • an application may register in the execution environment 200 and receive a notification whenever the memory manager 214 completes an operation, such as a garbage collection process.
  • the execution environment 200 further includes an exception table 218 , which stores exception information 220 .
  • the exception information 220 identifies various problems experienced in the execution environment 200 .
  • Example problems could include attempting to load assembly code that does not exist in an explicitly specified location or in the global assembly cache 202 , an error during compilation of loaded assembly code, or attempting to unload assembly code not previously loaded.
  • An application or process being executed in the execution environment 200 could generate an exception identifying a detected problem.
  • the exception is identified by the exception information 220 , which is stored in the exception table 218 for later use (such as during debugging) or for use by the application or process for automatic recovery at runtime.
  • the execution environment 200 includes a live load controller 222 .
  • the live load controller 222 supports the updating of existing object instances and/or the creation of new object instances for a new version of control logic executed in the execution environment 200 .
  • the live load controller 222 could determine if old and new versions of control logic define a class having the same class layout, meaning both versions define the same data elements for the class. If so, the live load controller 222 could determine that only the methods in the class have changed, and the live load controller 222 could update existing object instances to identify the new methods. If not, the live load controller 222 could create new object instances and transfer the state data from the old object instances to the new object instances.
  • the live load controller 222 includes any hardware, software, firmware, or combination thereof for supporting the live loading of control logic.
  • the live load controller 222 could, for example, represent a software thread executed in the background of the execution environment 200 .
  • assembly control logic could represent a dynamic link library (a DLL or “.dll”) or other file, and an application that executes or uses the assembly control logic could represent an executable (“.exe”) or other file.
  • updating the control logic could involve updating the .dll file without altering the .exe file.
  • a scheduler 224 is used to schedule execution of the control logic and other managed applications.
  • the scheduler 224 may also be used to schedule execution of housekeeping tasks in the execution environment 200 .
  • the housekeeping tasks include, among other things, memory management, assembly loading and unloading, assembly compilation, and live loading.
  • the scheduler 224 could support time slicing to allow multiple threads to be executed, where the threads represent the housekeeping tasks and the managed applications.
  • the scheduler 224 includes any hardware, software, firmware, or combination thereof for scheduling the execution of applications and other tasks.
  • a single scheduler 224 could be associated with one or multiple dynamic link libraries (“.dll” files) or other control logic.
  • the various components shown in FIG. 2 operate over a platform/operating system abstraction layer.
  • the platform/operating system abstraction layer logically separates the execution environment 200 from the underlying hardware platform or operating system. In this way, the execution environment 200 may be used with different hardware platforms and operating systems without requiring the execution environment 200 to be specifically designed for a particular hardware platform or operating system.
  • FIG. 2 illustrates one example of an execution environment 200
  • various changes may be made to FIG. 2 .
  • the functional division shown in FIG. 2 is for illustration only.
  • Various components in FIG. 2 could be combined or omitted and additional components could be added according to particular needs.
  • FIG. 3 illustrates an example method 300 for preparing for a live load of a version upgrade in a process control environment according to one embodiment of this disclosure.
  • the method 300 is described with respect to the controller 104 a in the process control system 100 of FIG. 1 operating using the execution environment 200 of FIG. 2 .
  • the method 300 could be used by any other suitable device and in any other suitable system.
  • the controller 104 a executes one version of assembly control logic at step 302 .
  • This may include, for example, the controller 104 a executing one or more native executable codes 208 a - 208 b that correspond to a current version of assembly control logic stored in the global assembly cache 202 .
  • the one or more native executable codes 208 a - 208 b may represent an executable program (an .exe program) that operates using one version of a DLL assembly.
  • a new version of the assembly control logic is placed into a designated live load location at step 304 .
  • the designated live load location may represent a location in a file system (such as a directory) that is designated to receive code to be used during a live load. As a particular example, this could include a user downloading the new version of the assembly control logic into a specified location in the global assembly cache 202 .
  • An event is generated at step 306 .
  • an internal thread monitors the designated live load location and raises an event when assembly code is loaded into the designated live load location.
  • the executable program may register with the execution environment 200 to receive this event.
  • the event identifies the name and version number of the new version of the assembly control logic.
  • the controller 104 a captures information about the new version of the assembly control logic at step 308 .
  • This may include, for example, the executable program receiving the name and version number of the new version of the assembly control logic via the event.
  • This information may be captured in any suitable manner, such as by receiving this information as parameters in a callback to the executable program.
  • the controller 104 a initiates a loading of the new version of the assembly control logic at step 310 .
  • This may include, for example, the executable program using an application programming interface (API) call to invoke loading of the new version of the assembly control logic.
  • API application programming interface
  • the API call could cause the code manager 212 to initiate a load of the new version of the assembly control logic into the execution environment 200 .
  • the API could be synchronous or asynchronous and could take the assembly name and version information as parameters.
  • the controller 104 a determines whether the new version of the assembly control logic has already been loaded at step 312 . This may include, for example, the code manager 212 determining if assembly control logic with the same name and version number has already been loaded into the execution environment 200 . If so, the controller 104 a raises an exception, and the method 300 ends. Any suitable actions can take place at this point, such as removing the new version of the assembly control logic from the live load location.
  • the controller 104 a loads the new version of the assembly control logic at step 316 and compiles the new version of the assembly control logic at step 318 .
  • This may include, for example, the assembly loader 204 loading the new version of the assembly control logic into the compiler 206 , which compiles the new version of the assembly control logic into native executable code. Any suitable actions can take place at this point, such as informing the executable program that loading and compilation are complete.
  • FIG. 3 illustrates one example of a method 300 for preparing for a live load of a version upgrade in a process control environment
  • various changes may be made to FIG. 3 .
  • any other suitable technique could be used to load and compile a new version of assembly control logic.
  • steps in FIG. 3 could occur in parallel or could be performed in a different order.
  • FIGS. 4A and 4B illustrate an example method 400 for live loading of a version upgrade in a process control environment according to one embodiment of this disclosure.
  • the method 400 is described with respect to the controller 104 a in the process control system 100 of FIG. 1 operating using the execution environment 200 of FIG. 2 .
  • the method 400 could be used by any other suitable device and in any other suitable system.
  • the steps in the method 400 may occur after the steps of the method 300 have been completed.
  • the executable program itself decides which object instances should undergo a live load based on its own application logic.
  • the executable program typically holds references to its own object instances, and therefore no search typically needs to be performed to locate references to these object instances.
  • the executable program migrates all object instances associated with the old version of assembly control logic to object instances associated with the new version of the assembly control logic.
  • the controller 104 a initiates a live load at step 402 .
  • This may include, for example, the executable program issuing an appropriate API call to the live load controller 222 .
  • the API could take the assembly control logic's name, an old version number, a new version number, and a list of object instances on which live load has to be performed to migrate to a new version of the assembly control logic.
  • the controller 104 a replaces the compiled code for the old version of the assembly control logic with the compiled code for the new version of the assembly control logic at step 404 .
  • This may include, for example, the live load controller 222 causing the execution environment 200 to begin executing the native executable code for the new version of the assembly control logic in place of the native executable code for the old version of the assembly control logic.
  • the controller 104 a selects the next object instance to be migrated at step 406 .
  • This may include, for example, the live load controller 222 selecting the next object instance from the list of object instances provided as a parameter to the API.
  • the controller 104 a compares a first class layout for the selected object instance (as defined by a class in the old version of the assembly control logic) to a second class layout for the selected object instance (as defined by a class in the new version of the assembly control logic) at step 408 .
  • This may include, for example, the live load controller 222 determining whether the data elements defined by the class in the new version of the assembly control logic are the same as the data elements defined by the class in the old version of the assembly control logic.
  • the controller 104 a updates the method information for the selected object instance at step 412 .
  • the only changes made to the class associated with the selected object instance may relate to the object instance's methods or behaviors. Therefore, only the method information for the selected object instance is updated so that the object instance now identifies the updated methods.
  • a new object instance is created for the selected object instance at step 414 .
  • This may include, for example, the live load controller 222 creating a new object instance using the appropriate class in the new version of the assembly control logic.
  • the data elements in the new object instance are initialized at step 416 . This may include, for example, providing each data element with a user-specified default value or a default value based on the data type of that data element.
  • the current value of each data element in the selected object instance is transferred into the corresponding data element in the new object instance at step 418 . This may include, for example, the live load controller 222 reading data from the selected object instance and writing that data to the new object instance.
  • the controller 104 a determines if additional object instances remain to be processed at step 420 . This may include, for example, the live load controller 222 determining if any additional object instances remain to be processed in the list of object instances provided as a parameter to the API. If so, the controller 104 a returns to step 406 to select another object instance.
  • the controller 104 a returns all new object instances to the executable program, which replaces the old object instances with the new object instances at step 422 .
  • switching from an old object instance to a new object instance can be performed within two execution cycles.
  • the executable program takes the old object instance off-line by marking it as inactive.
  • the executable program places the new object instance on-line by marking it as active.
  • the old object instances may not be referenced by any code in the controller 104 a , and they may be reclaimed during a later garbage collection process or other process.
  • the controller 104 a marks the old version of the assembly control logic as inactive at step 424 .
  • This may include, for example, the executable program making an appropriate API call to mark the old version of the assembly control logic as inactive. From this point, any additional object instances are allocated using the new version of the assembly control logic.
  • the controller 104 a receives a notification from a heap memory manager at step 426 .
  • This may include, for example, the memory manager 214 providing an indication that there are no more existing object instances that were allocated using the old version of the assembly control logic. This may occur after any existing object instances are reclaimed during garbage collection.
  • the executable program may have previously registered to receive this notification.
  • the controller 104 a then unloads the old version of the assembly at step 428 .
  • This may include, for example, the executable program calling the appropriate API to cause the code manager 212 to unload the old version of the assembly control logic.
  • This may also include the code manager 212 removing the native executable code for the old version of the assembly control logic from the application domain 210 .
  • FIGS. 4A and 4B illustrate one example of a method 400 for live loading of a version upgrade in a process control environment
  • various changes may be made to FIGS. 4A and 4B .
  • steps in FIGS. 4A and 4B could occur in parallel and could be performed in a different order.
  • FIGS. 5A through 5C illustrate another example method 500 for live loading of a version upgrade in a process control environment according to one embodiment of this disclosure.
  • the method 500 is described with respect to the controller 104 a in the process control system 100 of FIG. 1 operating using the execution environment 200 of FIG. 2 .
  • the method 500 could be used by any other suitable device and in any other suitable system.
  • the steps in the method 500 may occur after the steps of the method 300 have been completed.
  • the executable program is not aware of which object instances should undergo a live load.
  • the controller 104 a sets a live load ready flag at step 502 .
  • This may include, for example, the executable program setting the live load ready flag to the appropriate value indicating that a live load is desired.
  • the live load ready flag could represent any suitable type of flag or other indicator.
  • the executable program then continues with its normal execution.
  • the controller 104 a initiates a heap manager garbage collection process at step 504 .
  • the garbage collection process is designed to recover unused memory that has been allocated to executing programs. If the live load ready flag was not set, the garbage collection process would occur as usual. However, because the live load ready flag is set, the garbage collection process operates as follows.
  • the controller 104 a scans a memory block that is in use at step 506 and determines if that memory block contains an old object instance at step 508 . This may include, for example, the memory manager 214 scanning a block of memory and using a header of the block to determine if the block contains a valid object instance.
  • the memory manager 214 may determine whether the object instance was created using an old version of assembly control logic or a new version of the assembly control logic. If created using the old version of the assembly control logic, the controller 104 a records the address of that object instance and any address (such as a stack address or an address of another object instance) that references this object instance.
  • the controller 104 a determines whether more memory blocks remain to be scanned at step 512 . If so, the controller 104 a returns to step 506 to scan the next memory block. Otherwise, the garbage collection process is complete, and the controller 104 a sends a notification indicating that the garbage collection process is complete to the executable program at step 514 .
  • the executable program may have previously registered to receive this notification.
  • FIGS. 5A through 5C are similar to the steps shown in FIGS. 4A and 4B .
  • the controller 104 a initiates a live load at step 516 .
  • the controller 104 a replaces the compiled code for the old version of the assembly control logic with the compiled code for the new version of the assembly control logic at step 518 .
  • the controller 104 a selects the next object instance recorded during the garbage collection process at step 520 . This may include, for example, the live load controller 222 selecting the next object instance from the set of object instances identified by the memory manager 214 during the garbage collection process.
  • the controller 104 a compares first and second layouts of the selected object instance (as defined by classes in the old and new versions of the assembly control logic) at step 522 . If the layouts are identical, the controller 104 a updates the method information for the selected object instance at step 524 . Otherwise, a new object instance is created for the selected object instance at step 526 , the data elements in the new object instance are initialized at step 528 , and the current value of each data element in the selected object instance is transferred into the appropriate data element in the new object instance at step 530 .
  • the controller 104 a updates references to the selected object instance at step 532 .
  • This may include, for example, the live load controller 222 using the addresses (the ones that reference the selected object instance) that were recorded in step 510 . These recorded addresses are used to update references from the selected object instance to the new object instance. As a result, no references may remain to the old object instance, and the memory occupied by the old object instance may be reclaimed during a later garbage collection process or other process.
  • the controller 104 a If more recorded object instances remain to be processed, the controller 104 a returns to step 520 . Otherwise, the controller 104 a marks the old version of the assembly control logic as inactive at step 536 , receives a notification from the heap memory manager that there are no more object instances allocated using the old version of the assembly control logic at step 538 , and unloads the old version of the assembly control logic at step 540 .
  • FIGS. 5A through 5C illustrate another example of a method 500 for live loading of a version upgrade in a process control environment
  • various changes may be made to FIGS. 5A through 5C .
  • steps in FIGS. 5A through 5C could occur in parallel and could be performed in a different order.
  • various functions described above are implemented or supported by a computer program that is formed from computer readable program code and that is embodied in a computer readable medium.
  • computer readable program code includes any type of computer code, including source code, object code, and executable code.
  • computer readable medium includes any type of medium capable of being accessed by a computer, such as read only memory (ROM), random access memory (RAM), a hard disk drive, a compact disc (CD), a digital video disc (DVD), or any other type of memory.
  • Couple and its derivatives refer to any direct or indirect communication between two or more elements, whether or not those elements are in physical contact with one another.
  • application refers to one or more computer programs, sets of instructions, procedures, functions, objects, classes, instances, or related data adapted for implementation in a suitable computer language.
  • the term “or” is inclusive, meaning and/or.
  • controller means any device, system, or part thereof that controls at least one operation.
  • a controller may be implemented in hardware, firmware, software, or some combination of at least two of the same.
  • the functionality associated with any particular controller may be centralized or distributed, whether locally or remotely.

Abstract

A method includes comparing a first layout of data elements associated with a first version of a class and a second layout of data elements associated with a second version of the class. The first and second versions of the class are associated respectively with first and second versions of assembly code. The method also includes updating method information in an existing object instance associated with the first version of the class if the first and second layouts are identical. In addition, the method includes creating a new object instance associated with the second version of the class and transferring one or more values of one or more data elements from the existing object instance to the new object instance when the first and second layouts are not identical.

Description

CROSS-REFERENCE TO RELATED APPLICATIONS
This application is related to the following U.S. patent applications:
Ser. No. 11/175,848 entitled “DETERMINISTIC RUNTIME EXECUTION ENVIRONMENT AND METHOD” filed on Jul. 6, 2005; and
Ser. No. 11/175,703 entitled “APPARATUS AND METHOD FOR DETERMINISTIC GARBAGE COLLECTION OF A HEAP MEMORY” filed on Jul. 6, 2005;
both of which are hereby incorporated by reference.
TECHNICAL FIELD
This disclosure relates generally to computing systems and more specifically to an apparatus and method for live loading of version upgrades in a process control environment.
BACKGROUND
Processing facilities are often managed using process control systems. Example processing facilities include manufacturing plants, chemical plants, crude oil refineries, and ore processing plants. Among other operations, process control systems typically manage the use of motors, valves, and other industrial equipment in the processing facilities.
In conventional process control systems, various controllers are often used to control the operation of the industrial equipment in the processing facilities. The controllers could, for example, monitor the operation of the industrial equipment, provide control signals to the industrial equipment, and generate alarms when malfunctions are detected.
Conventional controllers often include function block algorithms or other control logic implementing the desired control functionality. Conventional controllers also often include a scheduler, which schedules or drives the execution of the control logic. For example, a scheduler could invoke or schedule execution of a function block algorithm once every twenty milliseconds. In general, the scheduler is often written by a manufacturer or vendor of a controller, while the control logic can be written by the manufacturer or vendor of the controller or by end users of the controller (such as industrial plant engineers).
For various reasons, it may become necessary or desirable to upgrade or improve the control logic in a conventional controller after installation in a process control system. This becomes challenging when an old version of the control logic is being executed by the conventional controller to control a process in a processing facility. For example, simply shutting down a conventional controller to load a new version of the control logic onto the controller would likely require shutting down an entire industrial process (a complex, time consuming, and expensive operation). Also, a switch-over from an old version of the control logic to a new version of the control logic often needs to occur within a short amount of time (such as tens of milliseconds). In addition, the switch-over often must include a transfer of data from object instances associated with the old version of the control logic to object instances associated with the new version of the control logic.
SUMMARY
This disclosure provides an apparatus and method for live loading of version upgrades in a process control environment.
In a first embodiment, a method includes comparing a first layout of data elements associated with a first version of a class and a second layout of data elements associated with a second version of the class. The first and second versions of the class are associated respectively with first and second versions of assembly code. The method also includes updating method information in an existing object instance associated with the first version of the class if the first and second layouts are identical. In addition, the method includes creating a new object instance associated with the second version of the class and transferring one or more values of one or more data elements from the existing object instance to the new object instance when the first and second layouts are not identical.
In particular embodiments, the existing object instance represents one of a plurality of existing object instances. Also, an executable program associated with the first and second versions of assembly code or a garbage collection process identifies the plurality of existing object instances.
In a second embodiment, an apparatus includes at least one memory capable of storing an existing object instance associated with a first version of a class. The first version of the class is associated with a first version of assembly code. The apparatus also includes at least one processor capable of comparing a first layout of data elements associated with the first version of the class and a second layout of data elements associated with a second version of the class. The second version of the class is associated with a second version of assembly code. The at least one processor is also capable of updating method information in the existing object instance if the first and second layouts are identical. In addition, the at least one processor is capable of creating a new object instance associated with the second version of the class and transferring one or more values of one or more data elements from the existing object instance to the new object instance when the first and second layouts are not identical.
In a third embodiment, a computer program is embodied on a computer readable medium and is operable to be executed by a processor. The computer program includes computer readable program code for comparing a first layout of data elements associated with a first version of a class and a second layout of data elements associated with a second version of the class. The first and second versions of the class are associated respectively with first and second versions of assembly code. The computer program also includes computer readable program code for updating method information in an existing object instance associated with the first version of the class if the first and second layouts are identical. In addition, the computer program includes computer readable program code for creating a new object instance associated with the second version of the class and transferring one or more values of one or more data elements from the existing object instance to the new object instance when the first and second layouts are not identical.
Other technical features may be readily apparent to one skilled in the art from the following figures, descriptions, and claims.
BRIEF DESCRIPTION OF THE DRAWINGS
For a more complete understanding of this disclosure, reference is now made to the following description, taken in conjunction with the accompanying drawings, in which:
FIG. 1 illustrates an example process control system according to one embodiment of this disclosure;
FIG. 2 illustrates an example execution environment according to one embodiment of this disclosure;
FIG. 3 illustrates an example method for preparing for a live load of a version upgrade in a process control environment according to one embodiment of this disclosure;
FIGS. 4A and 4B illustrate an example method for live loading of a version upgrade in a process control environment according to one embodiment of this disclosure; and
FIGS. 5A through 5C illustrate another example method for live loading of a version upgrade in a process control environment according to one embodiment of this disclosure.
DETAILED DESCRIPTION
FIG. 1 illustrates an example process control system 100 according to one embodiment of this disclosure. The embodiment of the process control system 100 shown in FIG. 1 is for illustration only. Other embodiments of the process control system 100 may be used without departing from the scope of this disclosure.
In this example embodiment, the process control system 100 includes one or more process elements 102 a-102 b. The process elements 102 a-102 b represent components in a process or production system that may perform any of a wide variety of functions. For example, the process elements 102 a-102 b could represent motors, catalytic crackers, valves, and other industrial equipment in a production environment. The process elements 102 a-102 b could represent any other or additional components in any suitable process or production system. Each of the process elements 102 a-102 b includes any hardware, software, firmware, or combination thereof for performing one or more functions in a process or production system.
Two controllers 104 a-104 b are coupled to the process elements 102 a-102 b. The controllers 104 a-104 b control the operation of the process elements 102 a-102 b. For example, the controllers 104 a-104 b could be capable of providing control signals to the process elements 102 a-102 b periodically. Each of the controllers 104 a-104 b includes any hardware, software, firmware, or combination thereof for controlling one or more of the process elements 102 a-102 b. The controllers 104 a-104 b could, for example, include one or more processors 105 and one or more memories 107 storing data and instructions used by the processor(s) 105. As particular examples, the processors 105 could include processors of the POWERPC processor family running the GREEN HILLS INTEGRITY operating system or processors of the X86 processor family running a MICROSOFT WINDOWS operating system.
Two servers 106 a-106 b are coupled to the controllers 104 a-104 b. The servers 106 a-106 b perform various functions to support the operation and control of the controllers 104 a-104 b and the process elements 102 a-102 b. For example, the servers 106 a-106 b could log information collected or generated by the controllers 104 a-104 b, such as status information related to the operation of the process elements 102 a-102 b. The servers 106 a-106 b could also execute applications that control the operation of the controllers 104 a-104 b, thereby controlling the operation of the process elements 102 a-102 b. In addition, the servers 106 a-106 b could provide secure access to the controllers 104 a-104 b. Each of the servers 106 a-106 b includes any hardware, software, firmware, or combination thereof for providing access to or control of the controllers 104 a-104 b. The servers 106 a-106 b could, for example, represent personal computers (such as desktop computers) executing a MICROSOFT WINDOWS operating system. As another example, the servers 106 a-106 b could include processors of the POWERPC processor family running the GREEN HILLS INTEGRITY operating system or processors of the X86 processor family running a MICROSOFT WINDOWS operating system.
One or more operator stations 108 a-108 b are coupled to the servers 106 a-106 b, and one or more operator stations 108 c are coupled to the controllers 104 a-104 b. The operator stations 108 a-108 b represent computing or communication devices providing user access to the servers 106 a-106 b, which could then provide user access to the controllers 104 a-104 b and the process elements 102 a-102 b. The operator stations 108 c represent computing or communication devices providing user access to the controllers 104 a-104 b (without using resources of the servers 106 a-106 b). As particular examples, the operator stations 108 a-108 c could allow users to review the operational history of the process elements 102 a-102 b using information collected by the controllers 104 a-104 b and/or the servers 106 a-106 b. The operator stations 108 a-108 c could also allow the users to adjust the operation of the process elements 102 a-102 b, controllers 104 a-104 b, or servers 106 a-106 b. Each of the operator stations 108 a-108 c includes any hardware, software, firmware, or combination thereof for supporting user access and control of the system 100. The operator stations 108 a-108 c could, for example, represent personal computers having displays and processors executing a MICROSOFT WINDOWS operating system.
In this example, at least one of the operator stations 108 b is remote from the servers 106 a-106 b. The remote station is coupled to the servers 106 a-106 b through a network 110. The network 110 facilitates communication between various components in the system 100. For example, the network 110 may communicate Internet Protocol (IP) packets, frame relay frames, Asynchronous Transfer Mode (ATM) cells, or other suitable information between network addresses. The network 110 may include one or more local area networks (LANs), metropolitan area networks (MANS), wide area networks (WANs), all or a portion of a global network such as the Internet, or any other communication system or systems at one or more locations.
In this example, the system 100 includes two additional servers 112 a-112 b. The servers 112 a-112 b execute various applications to control the overall operation of the system 100. For example, the system 100 could be used in a processing or production plant or other facility, and the servers 112 a-112 b could execute applications used to control the plant or other facility. As particular examples, the servers 112 a-112 b could execute applications such as enterprise resource planning (ERP), manufacturing execution system (MES), or any other or additional plant or process control applications. Each of the servers 112 a-112 b includes any hardware, software, firmware, or combination thereof for controlling the overall operation of the system 100.
As shown in FIG. 1, the system 100 includes various redundant networks 114 a-114 b and single networks 116 a-116 c that support communication between components in the system 100. Each of these networks 114 a-114 b, 116 a-116 c represents any suitable network or combination of networks facilitating communication between components in the system 100. The networks 114 a-114 b, 116 a-116 c could, for example, represent Ethernet networks.
In one aspect of operation, control logic is implemented by the controllers 104 a-104 b to control the process elements 102 a-102 b. The control logic could represent function block algorithms or any other suitable logic. A function block algorithm represents an application having associated sub-applications formed from function blocks, where the application cycles through the function blocks and causes them to execute. The function block algorithm or other control logic may be associated with classes that are used to create object instances. The object instances are typically associated with both data elements and methods or behaviors. The current value(s) of data element(s) in an object instance may be referred to as the “state” of the object instance.
The controllers 104 a-104 b also implement a mechanism to upgrade from an old version of the control logic to a new version of the control logic. The new version of the control logic could make various changes to the classes that define the object instances, compared to the classes that were defined by the old version of the control logic. For example, the new version of the control logic could add, modify, or remove data elements in a class. In this document, the phrase “data element” refers to any individual unit of data (such as an integer, floating point value, character, or string) or combination of units (such as an array or data structure). The new version of the control logic could also add, modify, or delete methods in a class.
The mechanism for upgrading the control logic in the controllers 104 a-104 b supports the live loading of the new version of the control logic. This means that the controllers 104 a-104 b are capable of creating and/or updating object instances so that they are suitable for use with the new version of the control logic. For example, if the field or class layout of a class (its data elements) remains unchanged, the controllers 104 a-104 b may be capable of updating an object instance to identify new methods defined by the new version of the control logic. If the layout of a class changes, the controllers 104 a-104 b may be capable of creating new object instances and transferring state data from old object instances to the new object instances. In addition, the controllers 104 a-104 b may be capable of initializing new data elements in the new object instances and/or using conversion rules to transform data values from the old object instances prior to storage in the new object instances. The conversion rules represent logic identifying how data is transformed during a transfer, which may be useful in situations like when data is being transferred between two data elements that have somewhat different structures.
In this way, the controllers 104 a-104 b support the upgrading of control logic without the need to actually shut down the controllers 104 a-104 b or an entire industrial process. Also, the controllers 104 a-104 b may be capable of switching over from the old version of the control logic to the new version of the control logic within a relatively short amount of time (such as tens of milliseconds). In addition, the controllers 104 a-104 b may be capable of effectively transferring state data from old object instances to new object instances. The controllers 104 a-104 b may do this without requiring users to actually write program code to perform the state data transfers. The controllers 104 a-104 b may also do this without requiring classes to be compiled with specific attributes enabled (such as is required for techniques like serialization/deserialization), which means that users need not decide whether a live load will be necessary when they are writing programs.
In some embodiments, the controllers 104 a-104 b execute, support, or otherwise provide access to an execution environment. The execution environment provides support for various features that managed applications may use during execution. As examples, the execution environment could provide support for mathematical functions, input/output functions, and communication functions. The phrase “managed application” refers to an application executed in the execution environment, where the execution of the application is managed by the execution environment. A managed application could include the control logic needed to control one or more process elements 102 a-102 b.
In particular embodiments, the execution environment used in the controllers 104 a-104 b to execute the managed applications is deterministic. A deterministic execution environment is an execution environment whose behavior is predictable or that can be precisely specified. The execution environment could be implemented in any suitable manner, such as by using NET programming based on the Common Language Interface (CLI) specification as ratified by ECMA-335 and support both the Kernel and Compact profiles. In these embodiments, the deterministic execution environment may support the live loading of a new version of control logic in a deterministic fashion. Additional information about an example deterministic execution environment may be found in the two patent applications incorporated by reference above.
Although FIG. 1 illustrates one example of a process control system 100, various changes may be made to FIG. 1. For example, a control system could include any number of process elements, controllers, servers, and operator stations. Also, FIG. 1 illustrates one operational environment in which the live loading of version upgrades could be used. The live loading mechanism could be used in any other suitable process control or non-process control device or system.
FIG. 2 illustrates an example execution environment 200 according to one embodiment of this disclosure. The embodiment of the execution environment 200 shown in FIG. 2 is for illustration only. Other embodiments of the execution environment could be used without departing from the scope of this disclosure. Also, for ease of explanation, the execution environment 200 is described as being implemented in the controllers 104 a-104 b of FIG. 1, although the execution environment 200 could be used in any other suitable device or system.
In this example embodiment, the execution environment 200 includes a global assembly cache (GAC) 202. The global assembly cache 202 represents a memory capable of storing different assembly code programs to be executed in the execution environment 200. The assembly code programs could represent assembly code versions of function block algorithms or other control logic for controlling one or more of the process elements 102 a-102 b of FIG. 1. The assembly code version of a function block algorithm or other control logic may be referred to as “assembly control logic.” The global assembly cache 202 could store multiple assembly code programs and/or different versions of the same assembly code program. The global assembly cache 202 represents any suitable storage and retrieval device or devices. Assembly control logic could include program code and possibly metadata that describes one or more attributes of the assembly control logic and its program code. In some embodiments, an application may register in the execution environment 200 and receive a notification whenever assembly control logic is stored in a specified location in the global assembly cache 202.
An assembly loader 204 loads assembly code into the execution environment 200 for execution. For example, the assembly loader 204 may retrieve new assembly code downloaded into the global assembly cache 202. The assembly loader 204 may then load the identified assembly code into a compiler for compilation and use in the execution environment 200. The assembly loader 204 includes any hardware, software, firmware, or combination thereof for loading assembly code for compilation. The assembly loader 204 could, for example, represent a software thread executed in the background of the execution environment 200.
An ahead-of-time (AOT) compiler 206 compiles the assembly code loaded by the assembly loader 204. The AOT compiler 206 represents a load-time compiler that compiles assembly code when the assembly code is loaded. For example, the AOT compiler 206 may convert assembly code from an intermediate language to native executable code capable of being executed in the execution environment 200. Also, the AOT compiler 206 could insert instructions into the native executable code to ensure proper execution of the code in the execution environment 200. The AOT compiler 206 includes any hardware, software, firmware, or combination thereof for compiling assembly code. The AOT compiler 206 could, for example, represent a software thread executed in the background of the execution environment 200.
The AOT compiler 206 produces native executable code, such as native executable codes 208 a-208 b. The native executable codes 208 a-208 b represent executable code capable of being executed in the execution environment 200. The native executable codes 208 a-208 b could provide any suitable functionality in the execution environment 200. For example, the native executable codes 208 a-208 b could represent executable versions of assembly control logic used to control one or more process elements 102 a-102 b of FIG. 1. The native executable codes 208 a-208 b could provide any other or additional functionality in the execution environment 200.
One or more application domains 210 represent the domains in which the native executable codes 208 a-208 b are executed in the execution domain 200. Each application domain 210 represents any suitable domain for executing one or more native executable codes 208 a-208 b. While shown as a single application domain 210 in FIG. 2, multiple application domains 210 could be used.
The assembly codes and native executable codes in the execution environment 200 are managed by a code manager 212. For example, the code manager 212 may control the loading and unloading of assembly code into and out of the execution environment 200. As a particular example, the code manager 212 could cause the assembly loader 204 to load assembly code into the AOT compiler 206, which generates native executable code that is loaded into the application domain 210. The code manager 212 could also unload native executable code from the application domain 210. The code manager 212 includes any hardware, software, firmware, or combination thereof for managing assembly code and/or compiled code used in the execution environment 200. The code manager 212 could, for example, represent a software thread executed in the background of the execution environment 200.
The execution environment 200 also includes a memory manager 214. The memory manager 214 manages the use of memory, such as a heap memory. For example, the memory manager 214 could allocate blocks of memory to managed applications being executed in an application domain 210. The memory manager 214 could also use garbage collection information 216 to release blocks of memory that are no longer being used by the managed applications. The garbage collection information 216 could, for example, be generated by a garbage collection process provided by the memory manager 214 and executed in the background of the execution environment 200. Additional information about an example garbage collection process may be found in the two patent applications incorporated by reference above. In addition, the memory manager 214 could support a defragmentation process for the memory. The defragmentation process could be used to combine unused blocks of memory into larger blocks. The memory manager 214 includes any hardware, software, firmware, or combination thereof for managing memory. The memory manager 214 could, for example, represent a deterministic memory manager. The memory manager 214 could also represent a software thread executed in the background of the execution environment 200. In some embodiments, an application may register in the execution environment 200 and receive a notification whenever the memory manager 214 completes an operation, such as a garbage collection process.
The execution environment 200 further includes an exception table 218, which stores exception information 220. The exception information 220 identifies various problems experienced in the execution environment 200. Example problems could include attempting to load assembly code that does not exist in an explicitly specified location or in the global assembly cache 202, an error during compilation of loaded assembly code, or attempting to unload assembly code not previously loaded. An application or process being executed in the execution environment 200 could generate an exception identifying a detected problem. The exception is identified by the exception information 220, which is stored in the exception table 218 for later use (such as during debugging) or for use by the application or process for automatic recovery at runtime.
In addition, the execution environment 200 includes a live load controller 222. The live load controller 222 supports the updating of existing object instances and/or the creation of new object instances for a new version of control logic executed in the execution environment 200. For example, the live load controller 222 could determine if old and new versions of control logic define a class having the same class layout, meaning both versions define the same data elements for the class. If so, the live load controller 222 could determine that only the methods in the class have changed, and the live load controller 222 could update existing object instances to identify the new methods. If not, the live load controller 222 could create new object instances and transfer the state data from the old object instances to the new object instances. The live load controller 222 includes any hardware, software, firmware, or combination thereof for supporting the live loading of control logic. The live load controller 222 could, for example, represent a software thread executed in the background of the execution environment 200. In some embodiments, assembly control logic could represent a dynamic link library (a DLL or “.dll”) or other file, and an application that executes or uses the assembly control logic could represent an executable (“.exe”) or other file. In particular embodiments, updating the control logic could involve updating the .dll file without altering the .exe file.
A scheduler 224 is used to schedule execution of the control logic and other managed applications. The scheduler 224 may also be used to schedule execution of housekeeping tasks in the execution environment 200. The housekeeping tasks include, among other things, memory management, assembly loading and unloading, assembly compilation, and live loading. For example, the scheduler 224 could support time slicing to allow multiple threads to be executed, where the threads represent the housekeeping tasks and the managed applications. The scheduler 224 includes any hardware, software, firmware, or combination thereof for scheduling the execution of applications and other tasks. In particular embodiments, a single scheduler 224 could be associated with one or multiple dynamic link libraries (“.dll” files) or other control logic.
In some embodiments, the various components shown in FIG. 2 operate over a platform/operating system abstraction layer. The platform/operating system abstraction layer logically separates the execution environment 200 from the underlying hardware platform or operating system. In this way, the execution environment 200 may be used with different hardware platforms and operating systems without requiring the execution environment 200 to be specifically designed for a particular hardware platform or operating system.
Although FIG. 2 illustrates one example of an execution environment 200, various changes may be made to FIG. 2. For example, the functional division shown in FIG. 2 is for illustration only. Various components in FIG. 2 could be combined or omitted and additional components could be added according to particular needs.
FIG. 3 illustrates an example method 300 for preparing for a live load of a version upgrade in a process control environment according to one embodiment of this disclosure. For ease of explanation, the method 300 is described with respect to the controller 104 a in the process control system 100 of FIG. 1 operating using the execution environment 200 of FIG. 2. The method 300 could be used by any other suitable device and in any other suitable system.
The controller 104 a executes one version of assembly control logic at step 302. This may include, for example, the controller 104 a executing one or more native executable codes 208 a-208 b that correspond to a current version of assembly control logic stored in the global assembly cache 202. The one or more native executable codes 208 a-208 b may represent an executable program (an .exe program) that operates using one version of a DLL assembly.
A new version of the assembly control logic is placed into a designated live load location at step 304. The designated live load location may represent a location in a file system (such as a directory) that is designated to receive code to be used during a live load. As a particular example, this could include a user downloading the new version of the assembly control logic into a specified location in the global assembly cache 202.
An event is generated at step 306. In some embodiments, an internal thread monitors the designated live load location and raises an event when assembly code is loaded into the designated live load location. As noted above, the executable program may register with the execution environment 200 to receive this event. In particular embodiments, the event identifies the name and version number of the new version of the assembly control logic.
The controller 104 a captures information about the new version of the assembly control logic at step 308. This may include, for example, the executable program receiving the name and version number of the new version of the assembly control logic via the event. This information may be captured in any suitable manner, such as by receiving this information as parameters in a callback to the executable program.
The controller 104 a initiates a loading of the new version of the assembly control logic at step 310. This may include, for example, the executable program using an application programming interface (API) call to invoke loading of the new version of the assembly control logic. As a specific example, the API call could cause the code manager 212 to initiate a load of the new version of the assembly control logic into the execution environment 200. The API could be synchronous or asynchronous and could take the assembly name and version information as parameters.
The controller 104 a determines whether the new version of the assembly control logic has already been loaded at step 312. This may include, for example, the code manager 212 determining if assembly control logic with the same name and version number has already been loaded into the execution environment 200. If so, the controller 104 a raises an exception, and the method 300 ends. Any suitable actions can take place at this point, such as removing the new version of the assembly control logic from the live load location.
Otherwise, the controller 104 a loads the new version of the assembly control logic at step 316 and compiles the new version of the assembly control logic at step 318. This may include, for example, the assembly loader 204 loading the new version of the assembly control logic into the compiler 206, which compiles the new version of the assembly control logic into native executable code. Any suitable actions can take place at this point, such as informing the executable program that loading and compilation are complete.
Although FIG. 3 illustrates one example of a method 300 for preparing for a live load of a version upgrade in a process control environment, various changes may be made to FIG. 3. For example, any other suitable technique could be used to load and compile a new version of assembly control logic. Also, while shown as a series of steps, various steps in FIG. 3 could occur in parallel or could be performed in a different order.
FIGS. 4A and 4B illustrate an example method 400 for live loading of a version upgrade in a process control environment according to one embodiment of this disclosure. For ease of explanation, the method 400 is described with respect to the controller 104 a in the process control system 100 of FIG. 1 operating using the execution environment 200 of FIG. 2. The method 400 could be used by any other suitable device and in any other suitable system.
The steps in the method 400 may occur after the steps of the method 300 have been completed. In this example, the executable program itself decides which object instances should undergo a live load based on its own application logic. The executable program typically holds references to its own object instances, and therefore no search typically needs to be performed to locate references to these object instances. Moreover, in particular embodiments, the executable program migrates all object instances associated with the old version of assembly control logic to object instances associated with the new version of the assembly control logic.
The controller 104 a initiates a live load at step 402. This may include, for example, the executable program issuing an appropriate API call to the live load controller 222. As parameters, the API could take the assembly control logic's name, an old version number, a new version number, and a list of object instances on which live load has to be performed to migrate to a new version of the assembly control logic.
The controller 104 a replaces the compiled code for the old version of the assembly control logic with the compiled code for the new version of the assembly control logic at step 404. This may include, for example, the live load controller 222 causing the execution environment 200 to begin executing the native executable code for the new version of the assembly control logic in place of the native executable code for the old version of the assembly control logic.
The controller 104 a selects the next object instance to be migrated at step 406. This may include, for example, the live load controller 222 selecting the next object instance from the list of object instances provided as a parameter to the API.
The controller 104 a compares a first class layout for the selected object instance (as defined by a class in the old version of the assembly control logic) to a second class layout for the selected object instance (as defined by a class in the new version of the assembly control logic) at step 408. This may include, for example, the live load controller 222 determining whether the data elements defined by the class in the new version of the assembly control logic are the same as the data elements defined by the class in the old version of the assembly control logic.
If the class layouts are identical, the controller 104 a updates the method information for the selected object instance at step 412. In this case, the only changes made to the class associated with the selected object instance may relate to the object instance's methods or behaviors. Therefore, only the method information for the selected object instance is updated so that the object instance now identifies the updated methods.
Otherwise, if the class layouts are different, a new object instance is created for the selected object instance at step 414. This may include, for example, the live load controller 222 creating a new object instance using the appropriate class in the new version of the assembly control logic. The data elements in the new object instance are initialized at step 416. This may include, for example, providing each data element with a user-specified default value or a default value based on the data type of that data element. The current value of each data element in the selected object instance is transferred into the corresponding data element in the new object instance at step 418. This may include, for example, the live load controller 222 reading data from the selected object instance and writing that data to the new object instance.
The controller 104 a determines if additional object instances remain to be processed at step 420. This may include, for example, the live load controller 222 determining if any additional object instances remain to be processed in the list of object instances provided as a parameter to the API. If so, the controller 104 a returns to step 406 to select another object instance.
Otherwise, the controller 104 a returns all new object instances to the executable program, which replaces the old object instances with the new object instances at step 422. In some embodiments, switching from an old object instance to a new object instance can be performed within two execution cycles. During the first execution cycle, the executable program takes the old object instance off-line by marking it as inactive. During the second execution cycle, the executable program places the new object instance on-line by marking it as active. In particular embodiments, the old object instances may not be referenced by any code in the controller 104 a, and they may be reclaimed during a later garbage collection process or other process.
The controller 104 a marks the old version of the assembly control logic as inactive at step 424. This may include, for example, the executable program making an appropriate API call to mark the old version of the assembly control logic as inactive. From this point, any additional object instances are allocated using the new version of the assembly control logic.
The controller 104 a receives a notification from a heap memory manager at step 426. This may include, for example, the memory manager 214 providing an indication that there are no more existing object instances that were allocated using the old version of the assembly control logic. This may occur after any existing object instances are reclaimed during garbage collection. The executable program may have previously registered to receive this notification.
The controller 104 a then unloads the old version of the assembly at step 428. This may include, for example, the executable program calling the appropriate API to cause the code manager 212 to unload the old version of the assembly control logic. This may also include the code manager 212 removing the native executable code for the old version of the assembly control logic from the application domain 210.
Although FIGS. 4A and 4B illustrate one example of a method 400 for live loading of a version upgrade in a process control environment, various changes may be made to FIGS. 4A and 4B. For example, while shown as a series of steps, various steps in FIGS. 4A and 4B could occur in parallel and could be performed in a different order.
FIGS. 5A through 5C illustrate another example method 500 for live loading of a version upgrade in a process control environment according to one embodiment of this disclosure. For ease of explanation, the method 500 is described with respect to the controller 104 a in the process control system 100 of FIG. 1 operating using the execution environment 200 of FIG. 2. The method 500 could be used by any other suitable device and in any other suitable system.
The steps in the method 500 may occur after the steps of the method 300 have been completed. In this example, the executable program is not aware of which object instances should undergo a live load.
The controller 104 a sets a live load ready flag at step 502. This may include, for example, the executable program setting the live load ready flag to the appropriate value indicating that a live load is desired. The live load ready flag could represent any suitable type of flag or other indicator. The executable program then continues with its normal execution.
At some point, the controller 104 a initiates a heap manager garbage collection process at step 504. The garbage collection process is designed to recover unused memory that has been allocated to executing programs. If the live load ready flag was not set, the garbage collection process would occur as usual. However, because the live load ready flag is set, the garbage collection process operates as follows. The controller 104 a scans a memory block that is in use at step 506 and determines if that memory block contains an old object instance at step 508. This may include, for example, the memory manager 214 scanning a block of memory and using a header of the block to determine if the block contains a valid object instance. If the block contains an object instance, the memory manager 214 may determine whether the object instance was created using an old version of assembly control logic or a new version of the assembly control logic. If created using the old version of the assembly control logic, the controller 104 a records the address of that object instance and any address (such as a stack address or an address of another object instance) that references this object instance.
The controller 104 a determines whether more memory blocks remain to be scanned at step 512. If so, the controller 104 a returns to step 506 to scan the next memory block. Otherwise, the garbage collection process is complete, and the controller 104 a sends a notification indicating that the garbage collection process is complete to the executable program at step 514. The executable program may have previously registered to receive this notification.
At this point, the garbage collection process has been used to identify a set of object instances, and the method 500 continues by migrating these object instances over to new object instances (if necessary) during a live load. The remaining steps in FIGS. 5A through 5C are similar to the steps shown in FIGS. 4A and 4B.
The controller 104 a initiates a live load at step 516. The controller 104 a replaces the compiled code for the old version of the assembly control logic with the compiled code for the new version of the assembly control logic at step 518. The controller 104 a selects the next object instance recorded during the garbage collection process at step 520. This may include, for example, the live load controller 222 selecting the next object instance from the set of object instances identified by the memory manager 214 during the garbage collection process.
The controller 104 a compares first and second layouts of the selected object instance (as defined by classes in the old and new versions of the assembly control logic) at step 522. If the layouts are identical, the controller 104 a updates the method information for the selected object instance at step 524. Otherwise, a new object instance is created for the selected object instance at step 526, the data elements in the new object instance are initialized at step 528, and the current value of each data element in the selected object instance is transferred into the appropriate data element in the new object instance at step 530.
The controller 104 a updates references to the selected object instance at step 532. This may include, for example, the live load controller 222 using the addresses (the ones that reference the selected object instance) that were recorded in step 510. These recorded addresses are used to update references from the selected object instance to the new object instance. As a result, no references may remain to the old object instance, and the memory occupied by the old object instance may be reclaimed during a later garbage collection process or other process.
If more recorded object instances remain to be processed, the controller 104 a returns to step 520. Otherwise, the controller 104 a marks the old version of the assembly control logic as inactive at step 536, receives a notification from the heap memory manager that there are no more object instances allocated using the old version of the assembly control logic at step 538, and unloads the old version of the assembly control logic at step 540.
Although FIGS. 5A through 5C illustrate another example of a method 500 for live loading of a version upgrade in a process control environment, various changes may be made to FIGS. 5A through 5C. For example, while shown as a series of steps, various steps in FIGS. 5A through 5C could occur in parallel and could be performed in a different order.
In some embodiments, various functions described above are implemented or supported by a computer program that is formed from computer readable program code and that is embodied in a computer readable medium. The phrase “computer readable program code” includes any type of computer code, including source code, object code, and executable code. The phrase “computer readable medium” includes any type of medium capable of being accessed by a computer, such as read only memory (ROM), random access memory (RAM), a hard disk drive, a compact disc (CD), a digital video disc (DVD), or any other type of memory.
It may be advantageous to set forth definitions of certain words and phrases used throughout this patent document. The term “couple” and its derivatives refer to any direct or indirect communication between two or more elements, whether or not those elements are in physical contact with one another. The term “application” refers to one or more computer programs, sets of instructions, procedures, functions, objects, classes, instances, or related data adapted for implementation in a suitable computer language. The terms “include” and “comprise,” as well as derivatives thereof, mean inclusion without limitation. The term “or” is inclusive, meaning and/or. The phrases “associated with” and “associated therewith,” as well as derivatives thereof, may mean to include, be included within, interconnect with, contain, be contained within, connect to or with, couple to or with, be communicable with, cooperate with, interleave, juxtapose, be proximate to, be bound to or with, have, have a property of, or the like. The term “controller” means any device, system, or part thereof that controls at least one operation. A controller may be implemented in hardware, firmware, software, or some combination of at least two of the same. The functionality associated with any particular controller may be centralized or distributed, whether locally or remotely.
While this disclosure has described certain embodiments and generally associated methods, alterations and permutations of these embodiments and methods will be apparent to those skilled in the art. Accordingly, the above description of example embodiments does not define or constrain this disclosure. Other changes, substitutions, and alterations are also possible without departing from the spirit and scope of this disclosure, as defined by the following claims.

Claims (21)

1. A method for dynamically upgrading one or more object instances of a running program, the method comprising:
loading a new version of a class, the new version of the class being an updated version of an old version of the class, the old version of the class have a first layout of data elements and the new version of the class having a second layout of data elements;
setting a flag in response to the loading of the new version of the class;
initiating a garbage collection process that includes:
determining if the flag is set;
when the flag is not set, performing a normal garbage collection; and
when the flag is set, scanning a memory where at least one or more old object instances of the running program are stored, identifying the one or more old object instances contained in the memory, and recording one or more addresses of the one or more old object instances stored in the memory and one or more references to the one or more old object instances, the one or more old object instances having been created from the old version of the class; and
initiating a live load after the garbage collection process has recorded the one or more addresses of the one or more old object instances that includes:
for each of the one or more recorded addresses:
selecting the old object instance stored at the address;
updating method information in the selected old object instance to identify one or more methods defined by the new version of the class only when the old and new versions of the class define the same data elements as determined by comparing the first and second layouts of data elements; and
creating a new object instance from the new version of the class and transferring one or more values of one or more of the data elements from the selected old object instance to the new object instance only when the old and new versions of the class do not define the same data elements as determined by comparing the first and second layouts of data elements.
2. The method of claim 1, wherein:
the one or more old object instances comprise a plurality of old object instances; and
the old and new versions of assembly code are associated with an executable program.
3. The method of claim 1, wherein:
the one or more old object instances comprises a plurality of old object instances;
the old and new versions of assembly code are associated with an executable program; and
the garbage collection process is external to the executable program.
4. The method of claim 1, further comprising:
during a first execution cycle, marking the one or more old object instances as inactive; and
during a second execution cycle, marking the one or more new object instances as active.
5. The method of claim 1, further comprising:
updating the one or more references to the one or more old object instances, the one or more updated references identifying the one or more new object instances.
6. The method of claim 1, further comprising:
replacing the old version of assembly code with the new version of assembly code.
7. The method of claim 6, wherein:
the old and new versions of assembly code are associated with an executable program; and
the old and new versions of assembly code comprise dynamic link libraries.
8. The method of claim 1, further comprising:
initializing the one or more values of the one or more data elements in the one or more new object instances.
9. The method of claim 1, wherein transferring the one or more values of the one or more data elements from the one or more old object instances to the one or more new object instances comprises applying one or more conversion rules to the one or more values.
10. The method of claim 1, wherein the old and new versions of assembly code are associated with a function block algorithm executed by a controller in a process control system.
11. An apparatus, comprising:
at least one memory configured to store at least one or more old object instances of a running program created from an old version of a class, the old version of the class associated with an old version of assembly code; and
at least one processor configured to:
load a new version of the class, the new version of the class being an updated version of the old version of the class, the old version of the class have a first layout of data elements and the new version of the class having a second layout of data elements;
set a flag in response to the loading of the new version of the class;
initiate a garbage collection process that includes:
determining if the flag is set;
when the flag is not set, performing a normal garbage collection; and
when the flag is set, scanning the at least one memory, identifying the one or more old object instances contained in the at least one memory, and recording one or more addresses of the one or more old object instances stored in the at least one memory and one or more references to the one or more old object instances; and
initiate a live load after the garbage collection process has recorded the one or more addresses of the one or more old object instances that includes:
for each of the one or more recorded addresses:
selecting the old object instance stored at the address;
updating method information in the selected old object instance to identify one or more methods defined by the new version of the class only when the old and new versions of the class define the same data elements as determined by comparing the first and second layouts of data elements; and
creating a new object instance from the new version of the class and transferring one or more values of one or more of the data elements from the selected old object instance to the new object instance only when the old and new versions of the class do not define the same data elements as determined by comparing the first and second layouts of data elements.
12. The apparatus of claim 11, wherein the one or more old object instances comprise a plurality of old object instances.
13. The apparatus of claim 11, wherein the old and new versions of assembly code comprise dynamic link libraries.
14. The apparatus of claim 11, wherein the at least one processor is further operable to update the one or more references to the one or more old object instances, the one or more updated references identifying the one or more new object instances.
15. The apparatus of claim 11, wherein the at least one processor is further operable to initialize the one or more values of the one or more data elements in the one or more new object instances.
16. The apparatus of claim 11, wherein the at least one processor is operable to transfer the one or more values of the one or more data elements from the one or more old object instances to the one or more new object instances by applying one or more conversion rules to the one or more values.
17. The apparatus of claim 11, wherein the at least one processor is further operable to:
during a first execution cycle, mark the one or more old object instances as inactive; and
during a second execution cycle, mark the one or more new object instances as active.
18. A non-transitory computer readable medium embodying a computer program, the computer program comprising computer readable program code, the computer readable program code when executed by a processor configured to perform a method of:
loading a new version of a class, the new version of the class being an updated version of an old version of the class, the old version of the class have a first layout of data elements and the new version of the class having a second layout of data elements;
setting a flag in response to the loading of the new version of the class;
initiating a garbage collection process that includes:
determining if the flag is set;
when the flag is not set, performing a normal garbage collection; and
when the flag is set, scanning a memory where at least one or more old object instances of the running program are stored, identifying the one or more old object instances contained in the memory, and recording one or more addresses of the one or more old object instances stored in the memory and one or more references to the one or more old object instances, the one or more old object instances having been created from the old version of the class; and
initiating a live load after the garbage collection process has recorded the one or more addresses of the one or more old object instances that includes:
for each of the one or more recorded addresses:
selecting the old object instance stored at the address;
updating method information in the selected old object instance to identify one or more methods defined by the new version of the class only when the old and new versions of the class define the same data elements as determined by comparing the first and second layouts of data elements; and
creating a new object instance from the new version of the class and transferring one or more values of one or more of the data elements from the selected old object instance to the new object instance only when the old and new versions of the class do not define the same data elements as determined by comparing the first and second layouts of data elements.
19. The computer readable medium of claim 18, wherein the one or more old object instances comprises a plurality of old object instances.
20. The computer readable medium of claim 18, wherein the old and new versions of assembly code comprise dynamic link libraries.
21. The computer readable medium of claim 18, further comprising computer readable program code for updating the one or more references to the one or more old object instances, the one or more updated references identifying the one or more new object instances.
US11/386,388 2006-03-22 2006-03-22 Apparatus and method for live loading of version upgrades in a process control environment Active 2030-06-09 US8286154B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
US11/386,388 US8286154B2 (en) 2006-03-22 2006-03-22 Apparatus and method for live loading of version upgrades in a process control environment
EP07759001A EP1997004A2 (en) 2006-03-22 2007-03-21 Apparatus and method for live loading of version upgrades in a process control environment
PCT/US2007/064505 WO2007109717A2 (en) 2006-03-22 2007-03-21 Apparatus and method for live loading of version upgrades in a process control environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US11/386,388 US8286154B2 (en) 2006-03-22 2006-03-22 Apparatus and method for live loading of version upgrades in a process control environment

Publications (2)

Publication Number Publication Date
US20070226685A1 US20070226685A1 (en) 2007-09-27
US8286154B2 true US8286154B2 (en) 2012-10-09

Family

ID=38268750

Family Applications (1)

Application Number Title Priority Date Filing Date
US11/386,388 Active 2030-06-09 US8286154B2 (en) 2006-03-22 2006-03-22 Apparatus and method for live loading of version upgrades in a process control environment

Country Status (3)

Country Link
US (1) US8286154B2 (en)
EP (1) EP1997004A2 (en)
WO (1) WO2007109717A2 (en)

Cited By (35)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110078675A1 (en) * 2009-09-25 2011-03-31 Fisher-Rosemount Systems, Inc. Automated Deployment of Computer-Specific Software Updates
US20110185350A1 (en) * 2010-01-26 2011-07-28 Mitsuru Kawahata Shared-program updating system
US20130282152A1 (en) * 2009-03-24 2013-10-24 Rockwell Automation Technologies, Inc. Electronic operator interface based controller and device automatic downloads
US9229702B1 (en) * 2013-08-28 2016-01-05 Lithium Technologies, Inc. Systems and methods for application plugin deployment for websites
US10270853B2 (en) 2016-07-22 2019-04-23 Fisher-Rosemount Systems, Inc. Process control communication between a portable field maintenance tool and an asset management system
US10346449B2 (en) 2017-10-12 2019-07-09 Spredfast, Inc. Predicting performance of content and electronic messages among a system of networked computing devices
US10374873B2 (en) 2016-07-22 2019-08-06 Fisher-Rosemount Systems, Inc. Process control communication between a portable field maintenance tool and a process control instrument
US10375162B2 (en) 2016-07-22 2019-08-06 Fisher-Rosemount Systems, Inc. Process control communication architecture
US10382312B2 (en) 2016-03-02 2019-08-13 Fisher-Rosemount Systems, Inc. Detecting and locating process control communication line faults from a handheld maintenance tool
US10402049B1 (en) * 2015-12-29 2019-09-03 EMC IP Holding Company LLC User interface development
US10481627B2 (en) 2016-07-25 2019-11-19 Fisher-Rosemount Systems, Inc. Connection check in field maintenance tool
US10505585B2 (en) 2016-07-25 2019-12-10 Fisher-Rosemount Systems, Inc. Portable field maintenance tool with a bus for powering and communicating with a field device
US10554644B2 (en) 2016-07-20 2020-02-04 Fisher-Rosemount Systems, Inc. Two-factor authentication for user interface devices in a process plant
US10585422B2 (en) 2016-07-22 2020-03-10 Fisher-Rosemount Systems, Inc. Portable field maintenance tool system having interchangeable functional modules
US10594773B2 (en) 2018-01-22 2020-03-17 Spredfast, Inc. Temporal optimization of data operations using distributed search and server management
US10601937B2 (en) 2017-11-22 2020-03-24 Spredfast, Inc. Responsive action prediction based on electronic messages among a system of networked computing devices
US10599134B2 (en) 2016-07-22 2020-03-24 Fisher-Rosemount Systems, Inc. Portable field maintenance tool configured for multiple process control communication protocols
US10764083B2 (en) 2016-07-25 2020-09-01 Fisher-Rosemount Systems, Inc. Portable field maintenance tool with resistor network for intrinsically safe operation
US10785222B2 (en) 2018-10-11 2020-09-22 Spredfast, Inc. Credential and authentication management in scalable data networks
US10855657B2 (en) 2018-10-11 2020-12-01 Spredfast, Inc. Multiplexed data exchange portal interface in scalable data networks
US10902462B2 (en) 2017-04-28 2021-01-26 Khoros, Llc System and method of providing a platform for managing data content campaign on social networks
US10931540B2 (en) 2019-05-15 2021-02-23 Khoros, Llc Continuous data sensing of functional states of networked computing devices to determine efficiency metrics for servicing electronic messages asynchronously
US10999278B2 (en) 2018-10-11 2021-05-04 Spredfast, Inc. Proxied multi-factor authentication using credential and authentication management in scalable data networks
US11050704B2 (en) 2017-10-12 2021-06-29 Spredfast, Inc. Computerized tools to enhance speed and propagation of content in electronic messages among a system of networked computing devices
US11061900B2 (en) 2018-01-22 2021-07-13 Spredfast, Inc. Temporal optimization of data operations using distributed search and server management
US11128589B1 (en) 2020-09-18 2021-09-21 Khoros, Llc Gesture-based community moderation
US11438282B2 (en) 2020-11-06 2022-09-06 Khoros, Llc Synchronicity of electronic messages via a transferred secure messaging channel among a system of various networked computing devices
US11438289B2 (en) 2020-09-18 2022-09-06 Khoros, Llc Gesture-based community moderation
US11470161B2 (en) 2018-10-11 2022-10-11 Spredfast, Inc. Native activity tracking using credential and authentication management in scalable data networks
US11570128B2 (en) 2017-10-12 2023-01-31 Spredfast, Inc. Optimizing effectiveness of content in electronic messages among a system of networked computing device
US11605037B2 (en) 2016-07-20 2023-03-14 Fisher-Rosemount Systems, Inc. Fleet management system for portable maintenance tools
US11627100B1 (en) 2021-10-27 2023-04-11 Khoros, Llc Automated response engine implementing a universal data space based on communication interactions via an omnichannel electronic data channel
US11714629B2 (en) 2020-11-19 2023-08-01 Khoros, Llc Software dependency management
US11741551B2 (en) 2013-03-21 2023-08-29 Khoros, Llc Gamification for online social communities
US11924375B2 (en) 2021-10-27 2024-03-05 Khoros, Llc Automated response engine and flow configured to exchange responsive communication data via an omnichannel electronic communication channel independent of data source

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090076628A1 (en) * 2007-09-18 2009-03-19 David Mark Smith Methods and apparatus to upgrade and provide control redundancy in process plants
US8165990B2 (en) 2009-06-15 2012-04-24 Microsoft Corporation Conversion of an application database to minimize time in single-user access mode
US9760658B2 (en) * 2009-10-08 2017-09-12 Oracle International Corporation Memory-mapped objects
EP2388693A1 (en) * 2010-05-21 2011-11-23 Siemens Aktiengesellschaft Method for updating the data structure of an instance data component
EP2711793B1 (en) * 2012-09-19 2018-10-31 Siemens Aktiengesellschaft Method for operating an operating device for controlling a technical installation
US9009203B2 (en) * 2013-02-19 2015-04-14 Sap Se Lock-free, scalable read access to shared data structures using garbage collection
US10296291B1 (en) * 2013-04-22 2019-05-21 Amazon Technologies, Inc. Stateless scheduling
US9600551B2 (en) 2013-10-24 2017-03-21 Sap Se Coexistence of message-passing-like algorithms and procedural coding
US9684685B2 (en) 2013-10-24 2017-06-20 Sap Se Using message-passing with procedural code in a database kernel
JP6396084B2 (en) * 2014-06-11 2018-09-26 アズビル株式会社 Engineering apparatus, engineering system, and download processing method
US9519468B2 (en) * 2015-02-13 2016-12-13 Oracle International Corporation Modular co-versioning in a dynamically linked runtime environment
US10691093B2 (en) * 2016-06-22 2020-06-23 Honeywell International Inc. Controller programming migration automation
US10571901B2 (en) * 2017-08-08 2020-02-25 Fisher-Rosemount Systems, Inc. Controlled roll-out of module classes
SE2051321A1 (en) * 2020-11-12 2022-05-13 Addi Medical Ab Dynamic procedures for software products

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5359730A (en) * 1992-12-04 1994-10-25 International Business Machines Corporation Method of operating a data processing system having a dynamic software update facility
US6023704A (en) * 1998-01-29 2000-02-08 International Business Machines Corporation Apparatus and method for swapping identities of two objects to reference the object information of the other
US6092079A (en) * 1998-01-29 2000-07-18 International Business Machines Corporation Apparatus and method for updating an object without affecting the unique identity of the object
US6104875A (en) * 1997-12-18 2000-08-15 Honeywell Inc. Method for field programming an industrial process transmitter
US6298478B1 (en) 1998-12-31 2001-10-02 International Business Machines Corporation Technique for managing enterprise JavaBeans (™) which are the target of multiple concurrent and/or nested transactions
US6360363B1 (en) 1997-12-31 2002-03-19 Eternal Systems, Inc. Live upgrade process for object-oriented programs
US6501995B1 (en) * 1999-06-30 2002-12-31 The Foxboro Company Process control system and method with improved distribution, installation and validation of components
US20030191870A1 (en) 2002-04-02 2003-10-09 Dominic Duggan Method and apparatus for updating software libraries
US20070061372A1 (en) * 2005-09-14 2007-03-15 International Business Machines Corporation Dynamic update mechanisms in operating systems
US7533377B2 (en) * 2003-09-29 2009-05-12 International Business Machines Corporation Achieving autonomic behavior in an operating system via a hot-swapping mechanism

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5359730A (en) * 1992-12-04 1994-10-25 International Business Machines Corporation Method of operating a data processing system having a dynamic software update facility
US6104875A (en) * 1997-12-18 2000-08-15 Honeywell Inc. Method for field programming an industrial process transmitter
US6360363B1 (en) 1997-12-31 2002-03-19 Eternal Systems, Inc. Live upgrade process for object-oriented programs
US6023704A (en) * 1998-01-29 2000-02-08 International Business Machines Corporation Apparatus and method for swapping identities of two objects to reference the object information of the other
US6092079A (en) * 1998-01-29 2000-07-18 International Business Machines Corporation Apparatus and method for updating an object without affecting the unique identity of the object
US6298478B1 (en) 1998-12-31 2001-10-02 International Business Machines Corporation Technique for managing enterprise JavaBeans (™) which are the target of multiple concurrent and/or nested transactions
US6501995B1 (en) * 1999-06-30 2002-12-31 The Foxboro Company Process control system and method with improved distribution, installation and validation of components
US20030191870A1 (en) 2002-04-02 2003-10-09 Dominic Duggan Method and apparatus for updating software libraries
US7533377B2 (en) * 2003-09-29 2009-05-12 International Business Machines Corporation Achieving autonomic behavior in an operating system via a hot-swapping mechanism
US20070061372A1 (en) * 2005-09-14 2007-03-15 International Business Machines Corporation Dynamic update mechanisms in operating systems

Non-Patent Citations (10)

* Cited by examiner, † Cited by third party
Title
A Review of Software Upgrade Techniques for Distributed Systems Sameer Ajmani MIT Computer Science and Articial Intelligence Laboratory First Draft: Aug. 7, 2002; Last Modied: Nov. 7, 2004. *
Alexandre Vasseur, Dynamic AOP and Runtime Weaving for Java-How Does AspectWerkz Address it? [Online], Apr. 25, 2005, URL:http/web.archive.org/web/2005042510743, XP-002452626.
Dynamic ML without Dynamic Types Stephen Gilmore, Dilsun Kirh, and Christopher Walton Published: Jun. 15, 1998. *
Dynamic Software Updating Michael Hicks and Jonathan T. Moore and Scott Nettles Proceedings of the {ACM} Conference on Programming Language Design and Implementation (PLDI) Jun. 2001 pp. 13-23. *
Evolving Dependable Real-Time Systems Lui Sha, Ftagunathan Rajkumar and Michael Gagliarcii Gmegie Mellon University Software Engineering Institute Year of publication 1996. *
Implementing On-line Software Upgrades in Java Martha Gebremichael University of Maryland, College Park May 2003. *
Runtime Support for Type-Safe Dynamic Java Classes Scott Malabarba, Raju Pandey, Jeff Gragg, Earl Barr, and J. Fritz Barnes Published: 2000. *
Schema Evolution in Persistent Object Systems Ashok Malhotra and Steven J. Munroe Seventh International Workshop on Persistent Object Systems Published: May 1996. *
The Architecture of a Dynamically Updatable, Component-based System Robert Pawel Bialek Proceedings of the 26 th Annual International Computer Software and Applications Conference (COMPSAC'02) Mar. 2002. *
U.S. Appl. No. 11/252,183, Filed Oct. 17, 2005, Pekka M. Salpakari, "Apparatus and Method for Live Loading of Control Applications in a Process Control Environment".

Cited By (56)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9459602B2 (en) * 2009-03-24 2016-10-04 Rockwell Automation Technologies, Inc. Electronic operator interface based controller and device automatic downloads
US10409242B2 (en) 2009-03-24 2019-09-10 Rockwell Automation Technologies, Inc. Electronic operator interface based controller and device automatic downloads
US20130282152A1 (en) * 2009-03-24 2013-10-24 Rockwell Automation Technologies, Inc. Electronic operator interface based controller and device automatic downloads
US10018978B2 (en) 2009-03-24 2018-07-10 Rockwell Automation Technologies, Inc. Electronic operator interface based controller and device automatic downloads
US9003387B2 (en) * 2009-09-25 2015-04-07 Fisher-Rosemount Systems, Inc. Automated deployment of computer-specific software updates
US20110078675A1 (en) * 2009-09-25 2011-03-31 Fisher-Rosemount Systems, Inc. Automated Deployment of Computer-Specific Software Updates
US20110185350A1 (en) * 2010-01-26 2011-07-28 Mitsuru Kawahata Shared-program updating system
US11741551B2 (en) 2013-03-21 2023-08-29 Khoros, Llc Gamification for online social communities
US9229702B1 (en) * 2013-08-28 2016-01-05 Lithium Technologies, Inc. Systems and methods for application plugin deployment for websites
US11093113B2 (en) 2015-12-29 2021-08-17 EMC IP Holding Company LLC User interface development
US10402049B1 (en) * 2015-12-29 2019-09-03 EMC IP Holding Company LLC User interface development
US11368384B2 (en) 2016-03-02 2022-06-21 Fisher-Rosemount Systems, Inc. Detecting and locating process control communication line faults from a handheld maintenance tool
US10382312B2 (en) 2016-03-02 2019-08-13 Fisher-Rosemount Systems, Inc. Detecting and locating process control communication line faults from a handheld maintenance tool
US10554644B2 (en) 2016-07-20 2020-02-04 Fisher-Rosemount Systems, Inc. Two-factor authentication for user interface devices in a process plant
US11605037B2 (en) 2016-07-20 2023-03-14 Fisher-Rosemount Systems, Inc. Fleet management system for portable maintenance tools
US10375162B2 (en) 2016-07-22 2019-08-06 Fisher-Rosemount Systems, Inc. Process control communication architecture
US10585422B2 (en) 2016-07-22 2020-03-10 Fisher-Rosemount Systems, Inc. Portable field maintenance tool system having interchangeable functional modules
US10374873B2 (en) 2016-07-22 2019-08-06 Fisher-Rosemount Systems, Inc. Process control communication between a portable field maintenance tool and a process control instrument
US10599134B2 (en) 2016-07-22 2020-03-24 Fisher-Rosemount Systems, Inc. Portable field maintenance tool configured for multiple process control communication protocols
US10270853B2 (en) 2016-07-22 2019-04-23 Fisher-Rosemount Systems, Inc. Process control communication between a portable field maintenance tool and an asset management system
US10505585B2 (en) 2016-07-25 2019-12-10 Fisher-Rosemount Systems, Inc. Portable field maintenance tool with a bus for powering and communicating with a field device
US10481627B2 (en) 2016-07-25 2019-11-19 Fisher-Rosemount Systems, Inc. Connection check in field maintenance tool
US10764083B2 (en) 2016-07-25 2020-09-01 Fisher-Rosemount Systems, Inc. Portable field maintenance tool with resistor network for intrinsically safe operation
US10902462B2 (en) 2017-04-28 2021-01-26 Khoros, Llc System and method of providing a platform for managing data content campaign on social networks
US11538064B2 (en) 2017-04-28 2022-12-27 Khoros, Llc System and method of providing a platform for managing data content campaign on social networks
US11687573B2 (en) 2017-10-12 2023-06-27 Spredfast, Inc. Predicting performance of content and electronic messages among a system of networked computing devices
US10956459B2 (en) 2017-10-12 2021-03-23 Spredfast, Inc. Predicting performance of content and electronic messages among a system of networked computing devices
US11570128B2 (en) 2017-10-12 2023-01-31 Spredfast, Inc. Optimizing effectiveness of content in electronic messages among a system of networked computing device
US11050704B2 (en) 2017-10-12 2021-06-29 Spredfast, Inc. Computerized tools to enhance speed and propagation of content in electronic messages among a system of networked computing devices
US10346449B2 (en) 2017-10-12 2019-07-09 Spredfast, Inc. Predicting performance of content and electronic messages among a system of networked computing devices
US11539655B2 (en) 2017-10-12 2022-12-27 Spredfast, Inc. Computerized tools to enhance speed and propagation of content in electronic messages among a system of networked computing devices
US10601937B2 (en) 2017-11-22 2020-03-24 Spredfast, Inc. Responsive action prediction based on electronic messages among a system of networked computing devices
US11765248B2 (en) 2017-11-22 2023-09-19 Spredfast, Inc. Responsive action prediction based on electronic messages among a system of networked computing devices
US11297151B2 (en) 2017-11-22 2022-04-05 Spredfast, Inc. Responsive action prediction based on electronic messages among a system of networked computing devices
US11061900B2 (en) 2018-01-22 2021-07-13 Spredfast, Inc. Temporal optimization of data operations using distributed search and server management
US11102271B2 (en) 2018-01-22 2021-08-24 Spredfast, Inc. Temporal optimization of data operations using distributed search and server management
US11657053B2 (en) 2018-01-22 2023-05-23 Spredfast, Inc. Temporal optimization of data operations using distributed search and server management
US10594773B2 (en) 2018-01-22 2020-03-17 Spredfast, Inc. Temporal optimization of data operations using distributed search and server management
US11496545B2 (en) 2018-01-22 2022-11-08 Spredfast, Inc. Temporal optimization of data operations using distributed search and server management
US11546331B2 (en) 2018-10-11 2023-01-03 Spredfast, Inc. Credential and authentication management in scalable data networks
US11805180B2 (en) 2018-10-11 2023-10-31 Spredfast, Inc. Native activity tracking using credential and authentication management in scalable data networks
US10785222B2 (en) 2018-10-11 2020-09-22 Spredfast, Inc. Credential and authentication management in scalable data networks
US10999278B2 (en) 2018-10-11 2021-05-04 Spredfast, Inc. Proxied multi-factor authentication using credential and authentication management in scalable data networks
US11601398B2 (en) 2018-10-11 2023-03-07 Spredfast, Inc. Multiplexed data exchange portal interface in scalable data networks
US11470161B2 (en) 2018-10-11 2022-10-11 Spredfast, Inc. Native activity tracking using credential and authentication management in scalable data networks
US11936652B2 (en) 2018-10-11 2024-03-19 Spredfast, Inc. Proxied multi-factor authentication using credential and authentication management in scalable data networks
US10855657B2 (en) 2018-10-11 2020-12-01 Spredfast, Inc. Multiplexed data exchange portal interface in scalable data networks
US10931540B2 (en) 2019-05-15 2021-02-23 Khoros, Llc Continuous data sensing of functional states of networked computing devices to determine efficiency metrics for servicing electronic messages asynchronously
US11627053B2 (en) 2019-05-15 2023-04-11 Khoros, Llc Continuous data sensing of functional states of networked computing devices to determine efficiency metrics for servicing electronic messages asynchronously
US11729125B2 (en) 2020-09-18 2023-08-15 Khoros, Llc Gesture-based community moderation
US11128589B1 (en) 2020-09-18 2021-09-21 Khoros, Llc Gesture-based community moderation
US11438289B2 (en) 2020-09-18 2022-09-06 Khoros, Llc Gesture-based community moderation
US11438282B2 (en) 2020-11-06 2022-09-06 Khoros, Llc Synchronicity of electronic messages via a transferred secure messaging channel among a system of various networked computing devices
US11714629B2 (en) 2020-11-19 2023-08-01 Khoros, Llc Software dependency management
US11627100B1 (en) 2021-10-27 2023-04-11 Khoros, Llc Automated response engine implementing a universal data space based on communication interactions via an omnichannel electronic data channel
US11924375B2 (en) 2021-10-27 2024-03-05 Khoros, Llc Automated response engine and flow configured to exchange responsive communication data via an omnichannel electronic communication channel independent of data source

Also Published As

Publication number Publication date
WO2007109717A2 (en) 2007-09-27
EP1997004A2 (en) 2008-12-03
US20070226685A1 (en) 2007-09-27
WO2007109717A3 (en) 2008-01-10

Similar Documents

Publication Publication Date Title
US8286154B2 (en) Apparatus and method for live loading of version upgrades in a process control environment
EP2024849B1 (en) Updating virtual machine with patch or the like
US8112745B2 (en) Apparatus and method for capabilities verification and restriction of managed applications in an execution environment
US7774636B2 (en) Method and system for kernel panic recovery
US5732275A (en) Method and apparatus for managing and automatically updating software programs
US9081639B2 (en) System and method for remotely re-imaging a computer system
US20090100418A1 (en) Management of Software and Operating System Updates Required for the Process of Creating A Virtual Machine Facsimile Of An Existing Physical Or Virtual Machine
TWI505087B (en) System reset
US20090254899A1 (en) Method for virtualizing software applications
US7827373B2 (en) System and method for managing a short-term heap memory
US9665496B2 (en) Non-volatile memory write mechanism
US20050120331A1 (en) Hosting environment abstraction agents
EP3769224A1 (en) Configurable recovery states
US20070277033A1 (en) Method for re-imaging a computer system
US6336215B1 (en) Apparatus and method for on-line code only replacement of a running program using checkpoints
US20070113051A1 (en) Apparatus and method for live loading of control applications in a process control environment
CN113641378A (en) Optical module program upgrading method, device, equipment and readable storage medium
CN111427588A (en) Suspending installation of firmware packages
CN116594640A (en) RISC-V oriented extensible segmentation automatic mirror image construction technology
CN116360834A (en) Kubernetes cluster in-situ upgrading method and system based on OSTree
CN105511904A (en) Method and apparatus for automatically updating shortcut window
WO2019182797A1 (en) Free space pass-through
CN113821219A (en) Method and system for realizing application program containerization
US20070100894A1 (en) Apparatus and method for encoding data change rates in textual programs
CN117472462A (en) Plug-in operation method and device, desktop operating system and electronic equipment

Legal Events

Date Code Title Description
AS Assignment

Owner name: HONEYWELL INTERNATIONAL INC., NEW JERSEY

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:KAAKANI, ZIAD M.;VARMA, VIVEK B.;REEL/FRAME:017726/0418

Effective date: 20060317

STCF Information on status: patent grant

Free format text: PATENTED CASE

FPAY Fee payment

Year of fee payment: 4

MAFP Maintenance fee payment

Free format text: PAYMENT OF MAINTENANCE FEE, 8TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1552); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

Year of fee payment: 8

MAFP Maintenance fee payment

Free format text: PAYMENT OF MAINTENANCE FEE, 12TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1553); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

Year of fee payment: 12