The present application is based on and claims priority on German Patent Application No. 103 12 756.9 having a filing date of 21 Mar. 2003.
1. Technical Field
The present invention relates to a method of operating a device for controlling and/or monitoring a production and/or packaging installation, in particular an installation for the production and/or packaging of cigarettes, cigars and the like, on a communication medium, for example a bus. The aforementioned device will be referred to briefly below as a controller. The invention further relates to such a device, that is to say such a controller. The controller comprises an interface to be connected to the communication medium, a main memory for the storage of a control program, according to which the control and/or monitoring of the production and/or packaging installation is carried out, and also means for executing the control program.
2. Prior Art
Controllers of this type are generally known and in use in multifarious configurations in the automation of technical processes.
When such controllers are replaced, for example in the event of service, reconfiguration of the controller has hitherto disadvantageously been required.
The object of the invention is therefore to specify a method of operating a controller with which the replacement of controllers and the following restarting of the controller is made easier. A further object of the invention is to specify a controller with which the method can be carried out.
The object is achieved with a method of operating a device for controlling or monitoring a production and/or packaging installation for the production and/or packaging of cigarettes, cigars and the like—controller—on a communication medium, namely a bus, the controller comprising an interface to be connected to the communication medium, a main memory for the storage of a control program and also means for executing the control program, characterized in that configuration data are stored in a removeable memory module in that, when the controller is restarted, the configuration data are read out and in that, by using the configuration data, an access to a remote memory which can be reached via the communication medium is made, which comprises a transfer to the controller of data stored in the remote memory.
The object also is achieved with a device for controlling or monitoring a production and/or packaging installation for the production or packaging of cigarettes, cigars and the like—controller—comprising a main memory, in which a control program can be stored, a device for executing the control program and an interface for connection to a communication medium, in particular a bus, characterized in that configuration data, which can be read out and evaluated when the controller is restarted, are stored in a removeable memory module, the memory module being fixed at an installation location of the controller such that it can move.
According to these, in a method of operating a controller of the abovementioned type, provision is made for configuration data to be stored in a memory module which can be removed, in that, when the controller is restarted, the configuration data are read out and in that, by using the configuration data, an access to a remote memory which can be reached via the communication medium is made, which comprises a transfer to the controller of data stored in the remote memory.
A special feature of the method according to the invention is that the reading of the configuration data is triggered by an installation program stored in the main memory of the controller, and in that the installation program in the main memory of the controller is overwritten with the transfer of the data, specifically a copy of the control program stored in the remote memory.
A further special feature of the invention is that a multiplicity of copies of the control program is stored in the one or more remote memories and in that, when the controller is restarted, access is made to the last copy of the control program.
Finally, a special feature of the invention consists in the configuration data comprising machine data with regard to a machine for which the control program is provided, and in that, before or at the start of the control program, a comparison is made between the machine data and machine codes read in, and in that the control program is executed only in the case of machine codes matching the machine data.
Further special features of the invention will be explained in more detail below using the drawings, in which:
The exemplary embodiment illustrated in the drawings shown in
The individual fabrication unit, namely the maker 10, packer 11, film wrapping machine 12, carton packer 13, cartoner 14, cigarette conveyor 15 and cigarette store 16 and also the blank store 17, are assigned controllers 30 which execute a control program 31. The store 24 and the material conveyor 25 are also assigned their own controller 30. The controllers 30 are connected communicatively to one another and to a remote memory 32 via a bus 34, in particular a field bus.
The functionality of the installation program 42 and also the use of the configuration data 40 will be explained below. As already explained, a new controller 30 does not comprise any control program 31. This means that such a new controller 30 is not immediately ready for use for controlling and/or monitoring specific functional units. Hitherto, complicated reconfiguration of the controller 30 was required here. This is now avoided by the invention. The installation program 42 called by the boot-strap program 41 automatically effects configuration of the new controller 30 in such a way that the new controller 30 has all the data to which a failed controller 30 which is replaced by the new controller 30 had access. For the configuration of the new controller 30, the installation program 42 initially makes access to the configuration data 40 in the memory module 39. These configuration data 40 comprise at least one unique address of the controller on the bus 33. This address is transmitted to the interface 34, so that the new controller 30 can send and receive data via the bus 33. Furthermore, the configuration data 40 comprise memory location data with regard to a memory location of a copy of the control program 31. By using the memory location data, the controller 30, under the control of the installation program 42, makes access to the memory location of the copy of the control program 31, in particular the last or most up-to-date copy, that is to say, for example, to the memory 35 of the remote memory 32. During this access, there is a transfer of the copy of the control program 31 into the main memory 36 of the new controller 30. During the transfer of the copy of the control program 31 into the main memory 36, either the installation program 42 or a reference to calling the installation program 42 is overwritten in such a way that, when the controller 30 is next restarted, the boot-strap program 41 executes the control program 31.
During operation of the controller 30, either under the control of the control program 31 or of the operating system 38, at predefined or predefinable times, in particular at equidistant time intervals, a copy of the control program 31 is stored outside the controller 30, that is to say preferably in an external memory 32, but possibly also in a main memory 36 of a further controller 30. The memory location of this copy of the control program 31 is appended to the configuration data 40 in order to permit subsequent access to the copy of the control program. In connection with the present invention, the term control program 31 relates not only to the actual program instructions but also to the data treated or processed by the control program, that is to say for example input data, output data and, for example, register contents or data for intermediate or partial results, what are known as markers. In the event of failure of a controller 30, this can be replaced by a new controller 30 which, under control of the installation program 42, looks for a copy of the control program 31 and transfers this into the main memory 36 of the new controller 30. Following this transfer, the new controller 30 can perform the functionality of the failed controller 30. A controller replacement of this type may be made in a few instants, particularly against the background in which the controllers are frequently kept in a module carrier (not illustrated). Stoppage times of the controlled technical installation are therefore reduced to a minimum, even in the event of service. In order to increase the integrity still further, provision can be made for a plurality of copies of control programs 31 to be stored on the communication participants which can be reached via the bus 33, that is to say other controllers 30 or one or more remote memories 32. Then, automatic configuration of a failed controller 30 is subsequently possible even if, in addition to the controller 30, for example the central memory 32 on which a copy of the control program 31 is stored fails. In such a case, the installation program 42 of the new controller falls back specifically on the memory location of an earlier copy of the control program 31. For this purpose, the configuration data 40 comprise a list of memory location data with regard to a memory location of the respective copy of the control program. In this case, either the last element of such a list of memory location data can specify the memory location of the last copy of the control program, or provision is made for the memory location data additionally to comprise an item of time information, so that, by using the item of time information, the most up-to-date accessible copy of the control program 31 can be determined.
On the other hand, if the software called by the boot-strap program 41 is the installation program 42, the latter is started (step 130). The installation program 42 makes access to the memory module 39 and reads out the configuration data 40 stored there (step 140). The configuration data 40 comprise the address of the controller 30 on the bus 33. The installation program 42 configures the controller 30 in accordance with the bus address read out, so that the controller 30 can participate in the data traffic via the bus 33 (step 150). The configuration data 14 further comprise the memory location of a copy of the control program 31. The installation program 42 makes access to the memory location, that is to say firstly the remote memory 32 or the relevant controller 30, and then to the local memory location, that is to say for example to a file specified with a file name in a directory tree or a section of a memory specified with start and end address, and causes a transfer of the selected copy of the control program 31 into the main memory 36 of the controller 30 (step 160). During the transfer of the control program 31 into the main memory 36, the installation program 42 is overwritten by the control program 31 in such a way that the control program 31 begins in the main memory 31 at the same point in the memory at which the installation program 42 was previously stored. Alternatively, provision can also be made for a point in the memory which had previously contained the start address of the installation program 42 to be overwritten with the start address of the control program 31 (step 170). Finally, restarting of the controller 30 is triggered. This can be carried out automatically (step 180). If automatic restarting of the controller 30 is not possible, the completion of the transfer of the control program 31 is indicated visually or acoustically to a user, so that the latter then arranges to restart the controller 30 manually, for example by switching off the mains voltage and switching it on again.
When the supply voltage returns, the boot-strap program 41 is then started again (step 100), which causes the control program 31 now present on the controller 30 to be called (step 110).
The execution of the control program 31 (step 120) will be explained below using
The machine data read out, together with further important data which are necessary to the operation of the controller (configuration data 40) are stored in the memory module 39 under the control of the control program 31.
The memory module 39 is in particular a memory module 39 which can be separated from the controller 30, which, therefore, in the case of a required replacement of a controller 30, is initially removed from the controller 30 to be replaced and, following installation of a new controller 30, is inserted into the new controller 30. The memory module 39 is fixed in the region of an installation location of the controller 30, that is to say to a control cabinet, control box or control desk or to a module carrier for holding a controller 30 (none of these illustrated) such that it can move, for example by means of a chain or the like. This ensures that the memory module 39 is not lost and that the memory module 39 can be inserted only into a controller 30 which is installed at the installation location within the range of mobility of the memory module 39.
List of Designations
10 Maker
11 Packer
12 Film wrapping machine
13 Carton packer
14 Cartoner
15 Cigarette conveyor
16 Blank store
17 Blank store
18 Pack conveyor
19 Carton conveyor
20
21 Output conveyor
22 Pack store
23 Filter-tipping machine
24 Material store
25 Material conveyor
26 Bobbin
27 Conveyor belt
28
29
30 Controller
31 Control program
32 Remote memory
33 Bus
34 Interface
35 Memory
36 Main memory
37 Microprocessor
38 Operating system
39 Memory module
40 Configuration data
41 Boot-strap program
42 Installation program
Number | Date | Country | Kind |
---|---|---|---|
103 12 756.9 | Mar 2003 | DE | national |