This application claims priority of European Patent Office application No. 08001137.2 EP filed Jan. 22, 2008, which is incorporated by reference herein in its entirety.
The invention relates to a method for controlling a batch process recipe, comprising a first recipe phase and a recipe phase step enabling condition, wherein a function module assigned to the first recipe phase is executed by means of a programmable controller and wherein a first setpoint value and a first actual value are stored in the first recipe phase. The invention also relates to a computer program which, when run on a programming unit operatively connected to a programmable controller, controls a batch process recipe, and, in addition, a programming unit incorporating a computer program of this kind.
A computer program for implementing a method is known from the Siemens Catalog “ST PCS 7—March 2007”, SIMATIC PCS 7, page 4/7 and Section 6. On a display unit, a user graphically creates a recipe for controlling a batch process by means of a so-called BATCH software package that can be run on a programming unit. This recipe has a plurality of recipe phases which are executed sequentially by the programming unit from a start point onward, wherein for each recipe phase a programmable controller connected online to the programming unit correspondingly executes a function module assigned to said recipe phase.
In the context of a “dosing” recipe phase it may happen that during a dosing operation the programmable controller only doses eighty units of an article, even though a dosing quantity of e.g. one hundred units is specified for this recipe phase in the programming unit. The dosed quantity of eighty units (actual value) is communicated by the programmable controller's function module to the recipe phase in the programming unit in which this actual value is stored as the “already dosed quantity”. In this case another dosing operation is required for which the recipe phase communicates twenty units to the programmable controller as the setpoint quantity which the recipe phase determines by taking the difference between the specified dosing quantity of a hundred and the already dosed quantity of eighty units. Assuming that during the subsequent dosing operation the programmable controller only doses fifteen units (new actual value), this will result in disturbances in the “dosing” recipe phase unless appropriate action is taken, as the new actual value of fifteen units communicated to the programming unit is again stored in the programming unit as the “already dosed quantity”, which means that the recipe phase determines from the specified dosing quantity of a hundred units and the “new” already dosed quantity of fifteen (instead of eighty-five) units a new setpoint value of eighty-five (instead of five) units and supplies this to the programmable controller for another dosing operation. In order to prevent such a problem, the function module is usually “adapted” in the programmable controller. This means that the function module communicates to the recipe phase an actual value which the function module calculates by adding together the actual values of all the dosing operations performed. The disadvantage of this is that the function module can no longer be used universally, but only for this specific application. In addition, a module of this kind must be appropriately designed using suitable engineering software that can be run on an engineering system and finally implemented in the programmable controller.
An object of the present invention is to improve a method of the type mentioned in the introduction. A computer program shall also be specified which, when run on a programming unit operatively connected to a programmable controller, controls a batch process recipe and is suitable for implementing such a method. In addition, a suitable programming unit incorporating a computer program of this kind shall be created.
The object is achieved with a method, a computer program and a programming unit according to the claims.
It is advantageous that, as part of recipe creation, particular functionalities can be implemented graphically and therefore visibly for a user, without it being necessary to adapt a function module running in the programmable controller.
In one embodiment of the invention it is provided that the second recipe phase is a summing phase with which the actual value is determined by adding together actual values communicated by the programmable controller. A summing phase of this kind ensures that the already dosed quantity is always made available to a “dosing” recipe phase that is to be repeatedly executed as an actual value.
In another embodiment of the invention, the second recipe phase is an incrementing phase with which the actual value is determined from the number of recipe phases completed. This makes it possible to implement a loop counter which, e.g. in the context of a dyeing process, records the number of dyeing passes, causing the dyeing process to be terminated after a specified number of passes in order to avoid damaging the material to be dyed.
Further advantageous embodiments to the invention will emerge from the other sub-claims.
The invention, its embodiments and advantages will now be explained in greater detail with reference to the accompanying drawings in which exemplary embodiments of the invention are illustrated.
Identical parts shown in
Denoted by 1 in
For clarification, reference is made in this connection to
It is assumed that a user-specified dosing quantity 7, a quantity 8 already dosed in the course of dosing operations whose initial value is 0, as well as an actual quantity 9 which is determined during a dosing operation, are stored in a parameter list or more specifically in programming unit memory cells provided for that purpose. It is also assumed that a hundred units of a substance are to be dosed, which means that the value one hundred is entered as the dosing quantity 7 and that the step enabling condition 5 allows the first and the second recipe phase 4, 6 to be repeated until a hundred units of that substance have been dosed. As usual, two memory cells or two groups of memory cells are provided for storing a setpoint and an actual value for each phase. In this exemplary embodiment, for the dosing phase 4 a setpoint value is denoted by 10 and an actual value by 11, for the summing phase 6 a setpoint value is denoted by 12 and an actual value by 13. After activation of the starting step 2 (
The summing phase 6 following the dosing phase 4 influences the actual value 11 or rather the actual quantity 9 by adding to said actual quantity 9 the already dosed quantity 8 stored in the parameter list and storing the result as the setpoint value 12. In this exemplary embodiment—as stated—the actual quantity 9 is twenty and the already dosed quantity zero, so that the setpoint value 12 is twenty units. This setpoint value 12 is not communicated to a function module in the programmable controller, but stored directly as the actual value 13 in the summing phase. This actual value 13 is finally stored in the parameter list as the “new” already dosed quantity 8 of twenty units, thereby completing the first dosing operation. Because of the step enabling condition 5, another dosing operation is required and the dosing and downstream summing phase 4, 6 are repeated, as the already dosed quantity 8 (twenty units) is less than the dosing quantity 7 (one hundred units).
The subsequent dosing operation and any other dosing operations take place in the same manner until the already dosed quantity 8 corresponds to the dosing quantity 7 and the step enabling condition 5 therefore initiates no further dosing operation.
For the case that in a second dosing operation sixty, in a third fifteen and in a fourth five units are dosed by means of the programmable controller, values are obtained as shown in the following table:
In the following it will be assumed that the first recipe phase 4 as shown in
Number | Date | Country | Kind |
---|---|---|---|
08001137.2 | Jan 2008 | EP | regional |