Electronic Control of a Dual-Stage Water Heater in a Hot-Beverage Vending Machine
Technical Field of the Invention
The present invention relates in general to hot beverage vending machines, and in particular to electronic control of a dual-stage water heater for use in hot beverage vending machines, such as coffee-based beverages, e.g. espresso coffee (ES), instant coffee (INST) and/or fresh brew coffee (FB).
State of the Art
Hot beverage vending machines are known to be equipped with single-stage water heaters, i.e., with a single water tank and a single water heater, usually of the electric resistance type, placed inside the water tank, or with dual-heating stage water heaters, i.e., with two series- connected water tanks arranged one inside the other, and two water heaters associated with the two water tanks.
An example of a dual-stage water heater is described in DE 3218442 or US 2004/0079749. In these examples, the water heater comprises a main water tank provided with a first heater operable to heat up and keep water at a first predetermined stand-by temperature, and a smaller secondary water tank, arranged inside the main tank, thermally insulated therefrom, and provided with a second heater operable to heat up and keep water at a second, predetennined stand-by temperature higher than the first temperature.
Another example of a dual-stage water heater for hot beverage vending machines is described in CH 367610, wherein the second water heater is operated only when steam it to be produced. In this example, a valve is provided which, responsive to pressure increase in the secondary tank, interrupts the fiuidic communication between the two water tanks so that only the amount of water contained in the secondary tank is transformed into steam.
In the above examples, the two water heaters are of a storage type, i.e., in which a given amount of water is stored in a water tank and heated up and kept at the desired temperature, and when the water heater is required to dispense a given amount of hot water to prepare a beverage, the withdrawn water is replenished with fresh water and the water in the water tank is then heated up and brought back to the desired temperature.
The Applicant has found that single-stage or dual- stage storage water heaters described in the above documents have numerous drawbacks, the main ones of which are:
i) a stand-by temperature relatively high to such an extent as to exclude, either directly or due to the pressures generated, the use of plastic materials for the construction of the water tank, which is normally made of a metallic material, preferably steel;
(ii) low thermal efficiency, which is the result of high heat loss to the outside due to the relatively high stand-by temperature and the metallic material used for the construction of the water tank;
iii) little flexibility of use, since even by modulating the electrical resistances, it is not possible to vary in a relatively short time the temperature of all the water contained in the water tank; therefore, a vending machine capable of dispensing different hot beverages at different temperatures must normally be equipped with several water heaters, preferably as many heaters as the types of beverages dispensed.
A dual-stage water heater for hot beverage vending machines capable of overcoming the above-mentioned drawbacks is described in WO 2014/027310 Al, in the name of the Applicant, in which the first heating stage is of the water storage type, while the second heating stage is of the continuous flow type, i.e. in which water is heated to the desired temperature while flowing through the second heating stage when a beverage is selected, i.e. only when water is withdrawn to meet the water demand necessary to prepare a beverage.
Subject-matter and Summary of the Invention
The object of the present invention is to provide an electronic control system for a dual-stage water heater of the type described in WO 2014/027310 Al, and capable of efficiently, accurately and reliably controlling the temperature of the water supplied by the dual-stage water heater.
According to the present invention, an electronic control system for a dual-stage water heater in a hot beverage vending machine, and a dual-stage water heater provided with such an electronic control system are provided, as claimed in the appended claims.
Brief Description of the Drawings
Figure 1 schematically shows a dual-stage water heater and an associated hydraulic circuit in a hot beverage vending machine.
Figure 2 schematically shows the structure of a dual-stage water heater and a block diagram of an electronic control system of the dual-stage water heater.
Figure 3 shows a flowchart of the control of the dual-stage water heater.
Figure 4 shows a high-level functional block diagram of the control of the dual-stage water heater.
Figure 5 shows a functional block diagram of the control of a water boiler in the dual-stage water heater.
Figure 6 shows a functional block diagram of the control of a water booster in the dual-stage water heater.
Figure 7 shows a functional block diagram of a planner implemented to control the water booster. Figures 8 to 12 show functional block diagrams of an energy manager implemented to control of the dual- stage water heater.
Figure 13 shows the time development of a desired temperature in the water booster of the duel -stage water heater.
Detailed Description of Preferred Embodiments of the Invention The present invention will now be described in detail with reference to the attached figures to enable a person skilled in the art to make and use it. Various modifications to the described embodiments will be immediately appreciable to a person skilled in the art and the general principles described may be applied to other embodiments and applications while remaining within the scope of the present invention, as defined by the appended claims. The present invention should not therefore be considered to be limited to the embodiments described and shown, but given a broader scope of protection according to the features described and claimed.
Figure 1 schematically shows, and references as a whole with reference numeral 1, a dual- stage water heater for a hot beverage vending machine 2 (also schematically illustrated).
The water heater 1 has a single cold water inlet 3 fluidiy connectable to a hydraulic circuit 5 configured to supply cold water (at room temperature) to the cold water inlet 3, and a single hot water outlet 4 fluidiy connectable to a beverage production unit (not shown).
The hydraulic circuit 5 comprises a water pump 6 with an intake fluidiy connected to a cold water source (not shown) through a suitable water filter 7, and a supply fluidiy connected to the cold water inlet 3 of the water heater 1 through a pressure control valve 8 calibrated so as to recirculate towards the intake of the water pump 6, through a bypass branch 9 and a T- connection 10, the water delivered by the water pump 6, when water pressure in the water heater 1 exceeds a maximum pressure.
In one embodiment, the hydraulic circuit 5 is also conveniently configured to carry out two additional functions of mixing hot water dispensed by the water heater 1 with cold water to cause a rapid cooling of hot water dispensed by the water heater 1, and of bypassing the water heater 1. In particular, to accomplish this, the hydraulic circuit 5 is configured to cause cold water supplied to the water heater 1 to be partializable to supply a part to the cold water inlet
3 and a part towards the hot water outlet 4 to mix it with hot water and cause, when needed, as said, a rapid cooling of hot water, as described in more detail below.
To achieve these additional functions, the hydraulic circuit 5 comprises a T-junction 11 having an I/O port fluidiy connectable to the pressure control valve 8, an I/O port fluidiy connected to the cold water inlet 3 of the water heater 1 through a first solenoid valve EVl 12, and an 110 port fluidi y connected to the cold water inlet 13 of the water mixer 14 through a second solenoid valve EV2 15 and a bypass branch 16. The water mixer 14 has also a ho water inlet 17 fluidiy connected to the hot water outlet 4 of the water heater 1 and a mixed water outlet 18.
Under normal operating conditions, the first solenoid valve EVl 12 is controlled to be open to cause cold water to be supplied to the cold water inlet 3 of the water heater 1. The second solenoid valve EV2 15 is instead controlled by appropriate PW modulation to adjust the opening period and, consequently, the cooling of the water supplied by the water heater 1.
In an alternative embodiment, the hydraulic circuit 5 is configured to carry out only the function of supplying cold water to the cold water inlet 3 of the water heater 1, and not also the two additional functions of mixing the hot water dispensed by the water heater 1 with cold water and of bypassing the water heater 1.
In one embodiment, the water heater 1 is conveniently of the type described and shown in WO 2014/027310 Al, in the name of the Applicant, and the content of which is to be considered incorporated herein in its entirety, and is schematically shown in Figure 2. hi particular, the water heater 1, which will be described below limited only to the features necessary to understand the present invention, comprises:
- a storage water heater stage, for brevity hereinafter referred to as water boiler 20, and
- a continuous -flow water heater stage, for brevity hereinafter referred to as water booster 21, which is housed in, and is fluidiy series-connected to, the water boiler 20.
The water boiler 20 comprises:
- an external water tank 22 in which the cold water inlet 3 and the hot water outlet 4 of the water heater 1 are provided, and
- a first electric heater 23 housed in the external water tank 22 and operable to heat up the water contained in the external water tank 22 and keep it at a temperature comprised in a first temperature range, for example between 70 and 80 °C, typically 75 °C.
In the embodiment shown in Figure 2, the cold water inlet 3 of the water heater 1 is conveniently provided at the bottom of the external water tank 22, while the hot water outlet
4 of the water heater 1 is conveniently provided at the top of the external water tank 22.
The water booster 21 comprises:
- an internal body 24 housed in the external water tank 22 and defining a water conduit 25 with a water inlet in fluidic communication with the internal volume of the external water tank 22 to receive hot water contained therein, and a water outlet fluidly connected to the hot water outlet 4 of the water heater 1, and
- a second electric heater 26 associated with, and conveniently arranged in, the internal body 24, and operable to heat water flowing in the internal body 24 to a temperature comprised in a second temperature range higher than the first temperature range, for example between 75 and 1 10 °C.
In the example shown in Figure 2, the external water tank 22 is conveniently in the form of a box-shaped body having a longitudinal axis and formed of two coupled semi-shells, while the internal body 24 is conveniently in the form of a generally cylindrical tubular body arranged in the external water tank 22 coaxialiy to the longitudinal axis thereof.
In a different embodiment not shown, the external water tank 22 may be in the form of a box- shaped body formed of a cup-shaped body closed by a lid, while the internal body may be again be in the form of a generally cylindrical tubular body, but arranged in the external water tank 22 transversely to the longitudinal axis thereof.
In the embodiment shown in Figure 2, the first electric heater 23 conveniently comprises first and second electric resistors 27, 28, which have electrical resistances hereinafter referred to as Rl and R2, respectively, are distinct and independently controllable, and are arranged one in the lower part and the other in the upper part of the water boiler 20, and for this reason hereinafter also referred to as lower resistance of the water boiler and higher resistance of the water boiler, while the second electric heater 26 conveniently comprises a third electric resistor 29 with an electric resistance, hereinafter referred to as R3 and also by the term water booster resistance.
In the embodiment shown in Figure 2, the first and second electrical resistors 27 are helically wound around the internal body 24, while the third electrical resistor 29 is straight- s aped and is coaxialiy mounted to the longitudinal axis of the internal body 24 and extends substantially along the entire length thereof.
The water heater 1 further comprises an electronic control system 30 comprising:
- a sensory system 31 carried by the external water tank 22 to measure water temperature in certain areas of the water heater 1 and to output electrical signals indicative of the temperatures measured, and
- an electronic control unit 32 electrically connected to the sensory system 31 and to the first and second electric heaters 23, 26, and programmed to receive electrical signals from the sensory system 31 and to control the first and second electric heaters 23, 26 based on the received electrical signals in the manner described below in detail.
In the embodiment shown in Figure 2, the sensory system 31 comprises:
- a first temperature sensor 33 arranged to measure water temperature, hereinafter referred to as Te t_ni, in the water boiler 20,
- a second temperature sen sor 34 arranged to measure water temperature, hereinafter referred to as Tbooster.ni, in the water booster 21, and
- a third temperature sensor 35 arranged at the hot water outlet 4, hereinafter also referred to as delivery point, of the water heater 1 to measure temperature, hereinafter referred to as Tout., m, of the hot water dispensed by the water heater 1.
Conveniently, the first temperature sensor 33 is arranged to measure water temperature at an end of the water boiler 20 opposite the cold water inlet 3 of the water heater 1, in the example shown in Figure 2 at the top of the water boiler 20, while the second temperature sensor 34 is arranged to measure water temperature at an end of the water booster 21 opposite that of the first temperature sensor 33, in the example shown in Figure 2 at the bottom of the water booster 22, i.e., at the water inlet of the water booster 21.
In a different embodiment not shown, the sensory system 31 may comprise only the first and third temperature sensors 33 and 35 and not also the second temperature sensor 34, so as to measure only water temperatures in the water boiler 20 and at the hot water outlet 4 of the water heater 1.
In a further embodiment not shown, the sensory system 31 may comprise only the first and second temperature sensors 33 and 34 and not also the third temperature sensor 35, so as to measure only water temperatures in the water boiler 20 and in the water booster 21. In this embodiment, the second temperature sensor 34 may conveniently be arranged at the top of the water booster 21, i.e., at the water outlet of the water booster 21, so as to measure a water temperature very close to, and thus indicative of, the water temperature at the hot water outlet 4.
In the embodiment shown in Figure 2, the electronic control unit 32 is programmed to control the first and second electric heaters 27, 28 according to a logic control scheme shown in the self-explanatory flowchart shown in Figure 3.
The aim of the control is to control water temperature in the water boiler 20 and in the water booster 21 such that they follow as closely as possible the following two reference temperatures:
- Text., d: desired water temperature in the water boiler 20, typically 75 °C;
- Tout_d: desired water temperature at the delivery point 4, which is variable depending on the selected beverage, in the example considered between a minimum of 75° and for example a maximum of 110 °C.
The electronic control unit 32 is programmed to achieve this specification by operating based on a mathematical model of the water heater 1 as a whole and of the first and second electric heaters 27, 28, and on measured water temperatures Text_m, Tbooster _m and Tout_m.
The electronic control unit 32 is programmed to compare the measured water temperatures Text_m and Tout_m with the reference water temperatures Text_d and Tout_d, so as to compute error temperatures based on which control signals are generated for the three electrical resistors 27, 28 and 29, and in particular:
R...B oiler... Low: electric control signal for the lower resistance Rl of the water boiler 20, R_Boiler_Hi: electrical control signal for the higher resistance R2 of the water boiler 20, R ...Booster: electrical control signal for the resistance R3 of the water booster 21, and EV_bypass(t): electrical control signal for the solenoid valve EV2 15.
In the embodiment in which the third temperature sensor 35 is not provided to measure water temperature Tout_m at the hot water outlet 4 of the water heater 1, this can be estimated based on the measured water temperature TBoost_m in the water booster 21 measured by the second temperature sensor 34 conveniently arranged at the water outlet of the water booster 21.
However, reference water temperature Tbooster_d is not a desired value stored by an operator in the electronic control unit 32 or by a higher control, but is a value computed by a Planner described below.
3
Figure 4 shows a functional block diagram of the control carried out by the electronic control unit 32. The control is essentially divided into three macro blocks:
- a water boiler control 36,
- a water booster control 37, and
- an energy manager 38 designed to manage electrical power demands of the water boiler control 36 and water booster control 37.
The meanings of the input and output variables of the blocks shown in Figure 4 are indicated in Tables 1 and 2, respectively, at the bottom of this description.
1. Water Boiler Control
The water boiler control 36 operates as shown in the functional block diagram shown in Figure 5. The water boiler control 36 is essentially based on a single PID (Proportional-Integral- Derivative) controller 39 that receives the water temperature error eText =Text_d-Text_m and supply the Energy Manager 38 with a PwRboiler_r electrical power demand for the res stances Rl and R2 of the water boiler 20 and computed according to the proportional, derivative and integral terms.
2. Planner and Water Booster Control
The water booster control 37 operates as shown in the functional block diagram shown in Figure 6.
The water booster control 37 is more complex than the water boiler control 36 and is based on:
- a planner 40 designed to compute the desired water temperature TBoost_des in the water booster 21 based on water temperature Tdel_des=Tout_d,
- two PIDs, hereinafter referred to as PID Flow ON 41 and PID Flow OFF 42, designed to intervene alternately based on the presence or absence of water flow to compensate for the different behaviour of the system in the two functioning modes (with or without water flow), and
- a feedforward component (kFFW) 43,
all of which concur to provide the Energy Manager 38 with an electrical power demand PW- R3 for the resistance of R3 the water booster 21.
Based on the measured water temperature TBoost_m in the water booster 21 and the desired water temperature TBoost_d computed by the planner 40, the water temperature error eTbooster - Tbooster_d-Tbooster_m is then computed to obtain one of the contributions to the electrical power demand PW-R3 for the resistance R3 of the water booster 21, according to the proportional, derivative and integral terms.
In the embodiment in which the second temperature sensor 34 to measure the water temperature TBoost_m in the water booster 21 is not provided, this can be estimated based on the water temperature Tout., m measured at the hot water outlet 4 of the water heater 1.
The other contribution to the electrical power demand PW-R3 for the resistance R3 of the water booster 21 is the feedforward component (KFFW) 43, which acts as a proportional factor o the water temperature step from the water temperature in the water boiler 20 to that in the water booster 21.
Also for the water booster 21, as for the water boiler 20, the electric power PwBooster_r requested to the resistance R3 is managed by the energy manager 38, which, based on all the electrical power demands, determines which are to be energized and which don't.
2.1 Planner
TThhee ppllaannnneerr 4400 ooppeerraatteess aass sshhoowwnn iinn tthhee ffuunnccttiioonnaall bblloocckk ddiiaaggrraamm sshhoowwnn iinn FFiigguurree 77,, wwhhiillee tthhee mmeeaanniinngg ooff t thhee iinnppuutt v vaaririaabblleess ooff tthhee ppllaannnneerr 4410) aanndd tthhoossee ddeessccrriibbeedd iinn t thhee nneexxtt FFiigguurreess aarree iinnddiiccaatteedd iinn TTaabblleess 33 aanndd 44 aatt tthhee bboottttoomm ooff tthhiiss ddeessccrriippttiioonn..
TThhee ppllaannnneerr 4400 iiss ddeessiiggnneedd ttoo ccoommppuuttee t thhee t tiimmee ddeevveellooppmmeenntt ooff tthhee ddeessiirreedd wwaatteerr t teemmppeerraattuurree TTBBoooosstt__dd iinn tthhee wwaatteerr bboooosstteerr 2211.. BBaasseedd oonn tthhee pphhyyssiiccaall rreessppoonnssee ttiimmeess ooff tthhee ssyysstteemm,, tthhee iinneerrttiiaass ooff tthhee rreessiissttaanncceess aanndd tthhee mmaasssseess iinnvvoollvveedd,, tthhee ppllaannnneerr 4400 iiss ddeessiiggnneedd ttoo aannttiicciippaattee tthhee aaccttiioonnss ttoo bbee ttaakkeenn oonn tthhee ddeessiirreedd wwaatteerr tteemmppeerraattuurree TTBBoooosstt__dd iinn oorrddeerr ttoo t trryy ttoo ccaanncceell tthhee iinnhheerreenntt tthheerrmmaall ssyysstteemm ddeellaayy.. IInn tthhiiss wwaayy,, tthhee wwaatteerr hheeaatteerr 11 mmaayy mmaannaaggee tthhee ssuuddddeenn cchhaannggeess iinn t thhee ddeessiirreedd wwaatteerr tteemmppeerraattuurree TToouutt__dd aatt tthhee ddeelliivveerryy ppooiinntt 44 bbaasseedd oonn tthhee pprriinncciippllee ooff pprreeppaarriinngg tthhee wwaatteerr hheeaatteerr 11 iinn aaddvvaannccee ffoorr tthhee ssuubbsseeqquueenntt pphhaassee..
FFoorr eexxaammppllee,, ffoorr t thhee pprreeppaarraattiioonn ooff aa m miixx bbeevveerraaggee,, ssuucchh aass ccaappppuucccciinnoo,, iiff tthhee wwaatteerr bboooosstteerr 2211 iiss nnoott pprreehheeaatteedd dduurriinngg mmiillkk ddiissppeennssiinngg,, tthhee ccooffffeeee wwiillll b bee ccoolldd,, bbeeccaauussee tthhee wwaatteerr bboooosstteerr 2211 ttaakkeess aa l loonngg ttiimmee ttoo hheeaatt tthhee wwaatteerr tthheerreeiinn dduurriinngg tthhee ffllooww pphhaassee.. SSiimmiillaarrllyy,, ffoorr tthhee pprreeppaarraattiioonn ooff aa mmooccaacccciinnoo,, ttoo sswwiittcchh ffrroomm ccooffffeeee ttoo cchhooccoollaattee ddiissppeennssiinngg,, tthhee wwaatteerr hheeaatteerr 11 mmuusstt bbee pprreeppaarreedd ffoorr eeaarrllyy ccoooolliinngg bbeeffoorree tthhee eenndd ooff tthhee ccooffffeeee ddiissppeennssiinngg..
TThhee ppllaannnneerr 4400 aaccttss i inn rreessppoonnssee ttoo aa bbeevveerraaggee sseelleeccttiioonn,, ffiirrsstt oonn tthhee pprreeppaarraattiioonn pphhaassee aanndd tthheenn oonn tthhee ddiissppeennssiinngg pphhaassee.. IInn ppaarrttiiccuullaarr,, aass sshhoowwnn iinn FFiigguurree 77,, tthhee ppllaannnneerr 4400 ccaann bbee sscchheemmaattiisseedd aass tthhee ssuumm ooff tthhee ffoolllloowwiinngg tthhrreeee ccoonnttriribbuuttiioonnss,, wwhhiicchh aarree ddeessccrriibbeedd iinn ggrreeaatteerr ddeettaaiill iinnddiivviidduuaallllyy bbeellooww::
-- PPIIDD ddeellttaa tteemmpp 4444:: tthhee tteemmppeerraattuurree ccoonnttriribbuuttiioonn ccoommppuutteedd iinn tthhiiss bblloocckk rreepprreesseennttss tthhee tteemmppeerraattuurree ddeellttaa nneeeeddeedd ttoo hheeaatt tthhee ssyysstteemm ddoowwnnssttrreeaamm ooff tthhee wwaatteerr bbooiilleerr 2200,,
-- pprreeddiiccttiivvee 4455:: t thhee tteemmppeerraattuurree ccoonnttriribbuuttiioonn ccoommppuutteedd i inn tthhiiss bblloocckk rreepprreesseennttss tthhee ttiimmee ddeevveellooppmmeenntt tthhaatt tthhee ddeessiirreedd wwaatteerr tteemmppeerraattuurree TTBBoooosstt_. dd iinn tthhee wwaatteerr bboooosstteerr 2211 mmuusstt ffoollllooww,, tthhiiss cchhooiiccee iiss nneecceessssaarryy iinn tthhee mmiixx bbeevveerraaggeess ttoo ssppeeeedd uupp tteemmppeerraattuurree cchhaannggeess bbeettwweeeenn ddiiffffeerreenntt ttyyppeess ooff ssuubb--bbeevveerraaggeess,, ffoorr eexxaammppllee bbeettwweeeenn mmiillkk aanndd ccooffffeeee,, oorr ccooffffeeee aanndd cchhooccoollaattee,, aanndd
-- pphhaassee 4466:: ddeeppeennddiinngg oonn tthhee bbeevveerraaggee pprreeppaarraattiioonn oorr ddiissppeennssiinngg pphhaassee,, pprree--hheeaattiinngg aanndd pprree-- ccoooolliinngg pphhaasseess aarree pprroovviiddeedd ttoo aannttiicciippaattee tthhee iinnhheerreenntt tthheerrmmaall ssyysstteemm ddeellaayyss..
The PID delta temp block temperature contribution 44 is computed only once at the beginning of the preparation phase of each sub-beverage. So, if a beverage comprises three sub- beverages, this temperature contribution is computed three times. This temperature contribution represents the desired water temperature TBoost_d in the water booster 21 to have the desired temperature Tout_d at the delivery point 4. In particular, this temperature contribution represents the temperature delta needed to heat the system downstream of the water boiler 20, between the water booster 21 and the mixed water outlet 18 of the water mixer 14. This contribution is computed based on the following formula:
OutPID = ACT_PHASE.Tout_d - ParTar.th sogliajfid - Tout_a)* KpOut wherein:
- ACT_PHASE.Tout_d: element of the ACTJPHASE structure that corresponds to the desired temperature at the delivery point of the beverage under preparation or dispensing;
- ParTar.th_sogIia_pid: element of the ParTar structure: it is a constant that allows the temperature at which a zero contribution is made to be set;
- Tout., a: water temperature measured by the water temperature sensor at the delivery point.
- KpOut: PID proportional coefficient;
- OutPID: temperature contribution from the PID Delta Temp 44.
This temperature contribution is very variable based on the system initial temperature, i.e., on the water temperature measured when the system is cold and is far from the desired water temperature at the delivery point. This temperature contribution is important in order to speed up the heating of the system downstream of the heater, while when the system is already hot, this contribution assumes almost zero, if not negative, values to counteract the inertia to the rise of the water temperature.
2.1.2 Predictive
The predictive temperature contribution 45 represents the desired temperature of a given sub- beverage during delivery thereof. This temperature contribution is necessary in double beverages to take account of the next beverage and anticipate heating or cooling. This temperature contribution is computed as defined by the following functional code:
If the beverage is single, that is if (Single = true)
™ During the final part of the dispensing phase
(cdv > ACTJPHASE.cdv* ParTar .p4_cdv_ero)
or the dispensing phase has already ended
OutPr = Text_d; // follows the temperature of the water boiler
otherwise
- OutPr = ACT_PHASE.Tout_d // follows the temperature of the current beverage
If the beverage is a mix beverage
*« After the first part of the dispensing phase, if the next temperature is higher, that is when (cdv > ACT . PHASE.cdv * ParTar.p3_cdv_ero &&
ACT. PHASE.Tout. d < NEXT . PHASE.Tout. d)
- outPr = NEXT_PHASE.Tout_d; // starts heating before the end of the
current dispensing
™ After the second part of the dispensing phase, if the next temperature is lower, i.e. when (cdv > ACT... PHASE.cdv * ParTar.p4...cdv...ero &&
ACT... PH A S E . Tout .. d > NEXT...PH AS E .Tout __.d)
- outPr = NEXT_PHASE.Tout_d; // starts cooling before the end of the
current dispensing
™ otherwise
* outPr = ACT_PHASE.Tout_d; // follows the temperature of the beverage wherein:
- ACT_PHASE.Tout_d: element of the ACT...PHASE structure that corresponds to the desired temperature at the delivery point of the beverage during preparation or dispensing;
- NEXT_PHASE.Tout_d: element of the NEXT... PHASE structure that corresponds to the desired temperature at the delivery point of the beverage following that is in preparation or dispensing;
- ParTar. 3...cdy..ero: element of the ParTar structure representing the percentage thereof used for the computation of a characteristic point, called p.3 (represented in Figure 5 5 and described in detail in paragraph 2.1.3);
- ParTar.p4__.cdv_._eFo: element of the ParTar structure representing the percentage thereof used for the computation of a characteristic point, called p4 (represented in and described in detail in paragraph 2.1.3);
- cdv: volumetric counter pulses, measurement of the dispensing flow
- Single: beverage descriptive characteristic, if single it is TRUE, otherwise FALSE.
- Text_d: desired water temperature in the water boiler 20.
- OutPr: temperature contribution from the Predictive 45.
2.1,3 Phase
The phase temperature contribution 46 represents the heart of the planner 40, because through the beverage preparation or dispensing it is possible to change the behaviour of the water heater, causing it to follow a non-constant temperature development over time.
The temperature contribution is divided for each sub-beverage into five periods:
- two periods in the preparation phase;
- two periods in the dispensing phase;
- an intermediate period between the preparation and dispensing phases.
For each period the temperature contribution depends on some constants defined during a calibration phase (elements of the ParTar structure in Table 3), these contributions are specific for each sub-beverage.
For each individual delivery of a sub-beverage, the five periods are defined as follows, as also schematically shown in Figure 13, where the time development of Tboost_d is shown,:
- Period 1: preparation: from the beverage selection to tl (theoretical preparation time * %1)
- Period 2: preparation: tl to t2 (theoretical preparation time * %2)
- Period 3: intermediate: t2 to p3 (theoretical volume (expected cdv) * %3)
- Period 4: dispensing: p3 to p4 (theoretical volume (expected cdv)* %4)
- Period 5: dispensing: from p4 to end of the dispensing phase.
In mix beverages, different deliveries are interspersed with preparation periods, so the diagram shown in Figure 13 is repeated as many times as there are the types of composition of the beverage. This temperature contribution is computed as defined by the following functional code:
- In the first preparation phase, when (t_seIectioii < ACT_PHASE.delay* ParTar . l_t_pre) ° o itPhase = ParTar. thl_c
- In the second preparation phase, when (t_se!ection < ACT_PHASE.delay*ParTar.p2_t_pre) ° outPhase = ParTar. th2_c
- In the first dispensing phase, when (cdv < ACT_PHASE.cdv*ParTar.p3„cdv_ero) and dispensing is not already completed
° oiitPhase --- ParTar .th3_c
- In the second dispensing phase, when (cdv < ACT._PHASE.cdv* ParTar .p4_cdv_ero)
° outPhase = ParTar. th4_c
- At the end of the dispensing phase
« oiitPhase = 0 wherein:
- t_selection: measurement of the time between the current time and stalling of preparation of the sub-bey eraee;
- cdv: volumetric counter pulses, measurement of the flow in dispensing;
- ACT_PHASE.delay_d: Element of the ACTJPHASE structure (reference Table 4) which corresponds to the theoretical preparation time of the sub-beverage:
- ACT_PHASE.cdv: Element of the .ACT PHASE structure (reference Table 4) which corresponds to the total value of the volumetric counter pulses set during calibration for that sub- beverage;
- ParTar.pl_t_pre: Element of the ParTar structure (reference Table 4) representing the percentage used for the calculation of the first preparation phase, called tl;
- ParTar.thl_c: ParTar structure element (reference Table 4) representing a temperature delta;
- ParTar.p2_t_pre: Element of the ParTar structure (reference Table 4) representing the percentage used for the calculation of the second preparation phase, called t2;
- ParTaF,th2__c: Par Far structure element (reference Table 4) representing a temperature delta;
- ParTar.p3___edv. ero: Element of the ParTar structure (reference Table 4) representing the percentage used for the calculation of the first dispensing phase, called p3;
- ParTar.th3_c: ParTar structure element (reference Table 4) representing a temperature delta;
- ParTar.p4__.cdv_._ero: Element of the ParTar structure (reference Table 4) representing the percentage used for the calculation of the second dispensing phase, called p4;
- ParTar. th4_c: ParTar structure element (reference Table 4) representing a temperature delta;
- OutPhase: temperature contribution in output from the "Phase" block.
3. Energy Manager
The energy manager 38 is designed to manage the following three specifications:
1. maximum electrical power: the maximum electrical power that may be supplied by the system is different from, in particular smaller, than the sum of the electrical powers delivered by all the electrical resistances when simultaneously switched on
2. control of flickers: the turning on/off of the electrical resistances must be under control, as indicated in IEC-61000-3-3.
3. the electrical resistances have a fixed electrical power.
The energy manager 38, a block diagram of which is shown in Figure 8, has the purpose of determining whether the electrical power required by the control can be implemented according to specification, or if it needs to be adjusted and alternated between the various electrical resistances .
The resistance R3 of the water booster 21 takes precedence over the two resistances Rl and R2 of the water boiler 20, and when all the three resistances Rl, R2 and R3 must be switched on, the two resistances Rl and R2 of the water boiler 20 are switched on alternately.
To control the flickers, the energy manager 38 is designed to cause the electrical power never to change to an extent higher than a certain threshold power.
A non -deliverable energy recovery system is also implemented. For example, if an electrical resistance is capable of delivering an electrical power of 1000 W, if it is required to deliver 400W three times, the resistance will be switched on at the third request, delivering 1000 W.
The decisions that is taken by the energy manager 38 may be subdivided, at a conceptual level, into three levels, as shown in the block diagram shown in Figure 9:
- Level 1 47: transition from ideal required electrical power values to real electrical power values deliverable by the electrical resistances (specification 3),
- Level 2 48: regulation of the turning on and off of the electrical resistances according to the given priorities, since the maximum electrical power that may be supplied fails to correspond to the sum of the electrical powers delivered by the three resistances (specification 1),
- Level 3 49: control of the timing of turning on and off of the electrical resistances so as to avoid electrical power jumps higher than a certain threshold electrical power (specification 2).
3.1 Level 1
Level 1 47 is used to divide the electrical power demand PwRboiler_r into PwR._Low.__l and PwR_High_l. for the two resistances Rl and R2 of the water boiler 20 according to the diagram shown in Figure 10. The electrical power demand PwR__.Ftigh.__l of the higher resistance (PwR_High_l) so computed is filtered through a double threshold function (Relay). The error on the power delivered by the higher resistance is recovered by adding it to the electrical power demand PwR__.Low.__l of the lower resistance, before passing through Relay 1.
The control of the resi stance R3 of the water booster 21 uses a different method from that of the resistances Rl and R2 of the water boiler 20: the duty cycle of the PWM used to drive the electrical resistance (set at a frequency of 1.5 Hz) is computed based on the electrical power demand. For recovering the non-delivered electrical power, the integral of the error on the electrical power supplied in the previous step is added to the electrical power required at that moment. The duty-cycle values are fixed at three constant values, so as not to increase the risk of flicker, as defined by the following functional code:
If the desired electrical power is less than one-third of the maximum power (PBooster_d< PboilerMax/3):
duty_cycle = 0;
If the desired electrical power is between one-third and two-thirds of the maximum power:
° duty.. cycle --- 0.5;
Otherwise:
duty... cycle --- 0;
3.2 Level 2
Level 2 48 has the objective of adjusting the deliverable electrical power according to the diagram shown in Figure 11, since the maximum electrical power fails to correspond to the sum of the electrical powers delivered by the three resistances Rl, R2 and R3. In order to decide which resistance has priority for switching on compared to another, the rule described by the following functional code (Priority Function) is used. The highest priority is given to the resistance R3 of the water booster 21, unless the vending machine ignition period in which the resistance R3 of the water booster 21 is not turned on until the water boiler 2( has (almost) reached the desired temperature.
- If the sum of the three desired electrical powers is higher than the maximum deliverable electrical power (PwR_Low_l+ PwR_High_l+PwR_booster_l) > PboilerMax
- the turning on of the two resistances of the water boiler alternate, following the trend of a square wave generated by "Pulse Generator 1" and inputted the block:
- PwR_High_2 = PulseGenerator*PwR_High_l ;
~ PwR_Low_2 = (l-PulseGenerator)*PwR_Low_l ;
- Otherwise, both the electrical powers of the electric resistances of the water boiler can continue to assume the electrical power value computed at "Level I":
~ P R_High_2 = PwR_High_l ;
- PwR_Lo _2 = PwR_Low_l;
The square wave generated by the "Pulse Generator 1" block has the following characteristics: amplitude 1 , Period 4 s, of which 1 s high and 3 s low.
3.3 Level 3
Level 3 49 aims to avoid electrical power jumps higher than a certain threshold electrical power by controlling the "DeltaP" power delta that the system is required to perform according to the diagram shown in Figure 12 and through the criterion set out in the following functional code (Anti-Flicker Function):
DeltaP
function [PwR_Low_3,PwR_ffigh_3] = fcn(DeltaPTot,PwR_Low_2,PwR_High_2)
PLow = 1000;% Watt
PHigh = 1 100;%Watt
PBoost = 1000;%Watt
%if the three res stances are to be switched on together, the booster has the highest priority
%it is therefore on, while the other two of the boiler alternate
if(abs(DeltaPTot)> maxt PLow. PHigh, PBoost)) %on or off of two or more resistances at the same time
if ((PwR_Low_2+ PwR_High_2)==(PLow +PHigh)) %if they are those of the boiler
PwR High 3 = 0; % the High falls
PwR_Low.„3 = PwR_Low.„2; % the Low rises
else % if the booster also wants to turn on, it has priority
PwR . High .3 - 0; % both fall
PwRJLow_3 - 0; % the boiler resistances
end
else if only one resistance is switched on, the value is not altered
PwR_High_3 = PwR_High_2;
PwR Low 3 - PwR Low 2;
to p4 of the dispensing phase