CONTROL UNIT, COMPUTER-IMPLEMENTED METHOD FOR CONTROLLING A FLOW OF MILK, COMPUTER PROGRAM AND NON-VOLATILE DATA CARRIER

20240215528 ยท 2024-07-04

    Inventors

    Cpc classification

    International classification

    Abstract

    A control unit arranged to control a flow of milk through a cooling system from a balance tank to a storage tank where the balance tank receives an input in the form of milk from a number of milking points and the control unit receives a first level-indicating signal reflecting a milk level in the balance tank and a prediction parameter indicating an estimated future input of milk from the number of milking points for generating a first control signal to a milk pump in the cooling system for causing the flow of milk to be pumped out from the balance tank at a flow rate determined by the first control signal.

    Claims

    1. A control unit (110) arranged to control a flow of milk (F) through a cooling system (170) from a balance tank (120) to a storage tank (130), the balance tank (120) receiving an input (M.sub.IN) of milk from a number of milking points, the control unit (110) configured to: receive a first level-indicating signal (s(L)) reflecting a milk level in the balance tank (120); receive a prediction parameter (M.sub.INest) indicating an estimated future input (M.sub.IN) of milk from the number of milking points; and generate, based on both the first level-indicating signal (s(L)) and the prediction parameter (M.sub.INest), a first control signal (C1) to a milk pump (150) in the cooling system (170), said milk pump (150) arranged to cause the flow of milk (F) to be pumped out from the balance tank (120) at a flow rate determined by the first control signal (C1).

    2. The control unit (110) according to claim 1, wherein the prediction parameter (M.sub.INest) is based on a second level-indicating signal (s(L.sub.RT)) reflecting a milk level in a receiver tank (RT) in which the milk from at least one of the number of milking points is collected before being fed into the balance tank (120).

    3. The control unit (110) according to claim 1, wherein the prediction parameter (M.sub.INest) is based on at least one of: an opening and/or closing of an entrance gate (G1) in to a closed area where the number of milking points are located, an opening and/or closing of an exit gate (G2) out from the closed area where the number of milking points are located, information about a number of milking animals currently being attached to the number of milking points, information about a number of milking animals currently being detached from the number of milking points, information about a milk flow or milk yield from the milking animals currently delivering milk via the number of milking points, and information about a previous milk yield or milk flow curve of the milking animals currently delivering milk via the number of milking points.

    4. The control unit (110) according to claim 1, wherein the prediction parameter (M.sub.INest) is based on at least one of: identity information relating to milking animals that are present in a closed area where the number of milking points are located, and temporal data indicating an extension of a period during which the milking animals have been present in the closed area where the number of milking points are located.

    5. The control unit (110) according to claim 1, wherein the control unit compares an indicated milk level (L) in the balance tank, determined from the first level-indicating signal (s(L)), to at least two predefined threshold levels, and generates the first control signal (C1) such that an indicated milk level (L) in the balance tank (120) above any one of the at least two predefined threshold levels causes the milk pump (150) to pump the flow of milk (F) out from the balance tank (120) at one of at least two flow rates, the at least two flow rates respectively corresponding to the at least two predefined threshold levels, a determination by the control unit that the indicated milk level (L) exceeds a first threshold level of the at least two predefined threshold levels causing the milk pump (150) to pump the flow of milk (F) at a first flow rate of the at least two flow rates, and a determination by the control unit that the indicated milk level (L) exceeds a second threshold level of the at least two predefined threshold levels causing the milk pump (150) to increase the flow of milk (F) from the first flow rate to a second flow rate of the at least two flow rates.

    6. The control unit (110) according to claim 5, wherein the control unit processes the prediction parameter (M.sub.INest) so that, when generating the first control signal (C1), the prediction parameter (M.sub.INest) overrides the first level-indicating signal (s(L)) so that an operation at the controller to cause the milk pump to increase to a higher one of the at least two flow rates due to an increased milk level (L) in the balance tank past a higher one of the at least two predefined threshold levels is overridden and the milk pump (150) continues to pump the flow of milk (F) out from the balance tank (120) at a lower one of the at least two flow rates corresponding to a lower one of the at least two predefined threshold levels if: the indicated milk level (L) in the balance tank (120) is above the higher one of the at least two predefined threshold levels, and the prediction parameter (M.sub.INest) indicates that the estimated future input (M.sub.IN) of milk from the number of milking points is decreasing.

    7. The control unit (110) according to claim 5, wherein the control unit processes the prediction parameter (M.sub.INest) so that, when generating the first control signal (C1), the prediction parameter (M.sub.INest) overrides the first level-indicating signal (s(L)) so that an operation at the controller to cause the milk pump to decrease to a lower one of the at least two flow rates due to a decreased milk level (L) in the balance tank below a higher one of the at least two predefined threshold levels is overridden and the milk pump (150) continues to pump the flow of milk (F) out from the balance tank (120) at a higher one of the at least two flow rates corresponding to a higher one of the at least two predefined threshold levels, if: the indicated milk level (L) in the balance tank (120) is below the higher one of the at least two predefined threshold levels, and the prediction parameter (M.sub.INest) indicates that the estimated future input (M.sub.IN) of milk from the number of milking points is increasing.

    8. The control unit (110) according to claim 1, further configured to: receive a temperature-indicating signal (T) from a temperature sensor (140) measuring a temperature of the flow of milk (F) before entering the storage tank (130); and incorporate the temperature-indicating signal (T) in generating the first control signal (C1), such that a cooling capacity of the cooling system (170) is increased if the temperature-indicating signal (T) reflects a milk temperature above a set temperature.

    9. The control unit (110) according to claim 8, wherein the first control signal (C1) is generated such that the cooling capacity of the cooling system (170) is decreased if the temperature-indicating signal (T) reflects a milk temperature below the set temperature.

    10. The control unit (110) according to claim 5, wherein the cooling system (170) comprises a heat exchanger (160) configured to transfer heat energy from the flow of milk (F) to a coolant (C) being circulated in a chiller (167) by means of a coolant pump (165) operating in response to a second control signal (C2), and wherein the control unit (110) is further configured to generate the second control signal (C2) based on the first level-indicating signal (s(L)) so that: a flow of the coolant (C) and/or the cooling capacity of the chiller (167) increases if the prediction parameter (M.sub.INest) indicates that the estimated future input (M.sub.IN) of milk from the number of milking points will increase during a predefined future interval and the indicated milk level (L) exceeds any one of the at least two predefined threshold levels so as to cause the milk pump (150) to pump the flow of milk (F) out from the balance tank (120) at a higher flow rate, and the flow of the coolant (C) and/or the cooling capacity of the chiller (167) decreases if the prediction parameter (M.sub.INest) indicates that the estimated future input (M.sub.IN) of milk from the number of milking points will decrease during the predefined future interval and the indicated milk level (L) falls below any one of the at least two predefined threshold levels so as to cause the milk pump (150) to pump the flow of milk (F) out from the balance tank (120) at a lower flow rate.

    11. A computer-implemented method for controlling a flow of milk (F) through a cooling system (170) from a balance tank (120) to a storage tank (130), the balance tank (120) receiving an input (M.sub.IN) of milk from a number of milking points, the method comprising: receiving a first level-indicating signal (s(L)) reflecting a milk level in the balance tank (120); receiving a prediction parameter (M.sub.INest) indicating an estimated future input (M.sub.IN) of milk from the number of milking points; and generating, based on both the first level-indicating signal (s(L)) and the prediction parameter (M.sub.INest), a first control signal (C1) to a milk pump (150) in the cooling system (170), said milk pump (150) arranged to cause the flow of milk (F) to be pumped out from the balance tank (120) at a flow rate determined by the first control signal (C1).

    12. The method according to claim 11, wherein the prediction parameter (M.sub.INest) is based on a second level-indicating signal (s(L.sub.RT)) reflecting a milk level in a receiver tank (RT) in which the milk from at least one of the number of milking points is collected before being fed into the balance tank (120).

    13. The method according to claim 11, wherein the prediction parameter (M.sub.INest) is based on at least one of: an opening and/or closing of an entrance gate (G1) in to a closed area where the number of milking points are located, and an opening and/or closing of an exit gate (G2) out from the closed area where the number of milking points are located, information about a number of milking animals currently being attached to the number of milking points, information about a number of milking animals currently being detached from the number of milking points, information about a milk flow or milk yield from the milking animals currently delivering milk via the number of milking points, and information about a previous milk yield or milk flow curve of the milking animals currently delivering milk via the number of milking points.

    14. The method according to claim 11, wherein the prediction parameter (M.sub.INest) is based on at least one of: identity information relating to milking animals that are present in a closed area where the number of milking points are located, and temporal data indicating an extension of a period during which the milking animals have been present in the closed area where the number of milking points are located.

    15. The method according to claim 11, further comprising: comparing an indicated milk level (L) in the balance tank, determined from the first level-indicating signal (s(L)), to each of at least two predefined threshold levels, wherein, in generating the first control signal (C1), when the indicated milk level (L) exceeds one or more of the at least two predefined threshold levels, the milk pump (150) is controlled to pump the flow of milk (F) out from the balance tank (120) at a respective one of at least two flow rates, such that when the indicated milk level (L) exceeds a first threshold level of the at least two predefined threshold levels the milk pump (150) is caused to pump the flow of milk (F) at a first flow rate of the at least two flow rates, and when the indicated milk level (L) exceeds a second threshold level of the at least two predefined threshold levels the milk pump (150) is caused to increase the flow of milk (F) from the first flow rate to a second flow rate of the at least two flow rates.

    16. The method according to claim 15, wherein the control unit processes the prediction parameter (M.sub.INest) so that, when generating the first control signal (C1), the prediction parameter (M.sub.INest) overrides the first level-indicating signal (s(L)) so that an operation to cause the milk pump to increase to a higher one of the at least two flow rates due to an increased milk level (L) in the balance tank past a higher one of the at least two predefined threshold levels is overridden and the milk pump (150) continues to pump the flow of milk (F) out from the balance tank (120) at a lower one of the at least two flow rates corresponding to a lower one of the at least two predefined threshold levels, if: the indicated milk level (L) in the balance tank (120) is above the higher one of the at least two predefined threshold levels and the prediction parameter (M.sub.INest) indicates that the estimated future input (M.sub.IN) of milk from the number of milking points is decreasing.

    17. The method according to claim 15, wherein the control unit processes the prediction parameter (M.sub.INest) so that, when generating the first control signal (C1), the prediction parameter (M.sub.INest) overrides the first level-indicating signal (s(L)) so that an operation at the controller to cause the milk pump to decrease to a lower one of the at least two flow rates due to a decreased milk level (L) in the balance tank below a higher one of the at least two predefined threshold levels is overridden and the milk pump (150) continues to pump the flow of milk (F) out from the balance tank (120) at a higher one of the at least two flow rates corresponding to a higher one of the at least two predefined threshold levels, if: the indicated milk level (L) in the balance tank (120) is below the higher one of the at least two predefined threshold levels, and the prediction parameter (M.sub.INest) indicates that the estimated future input (M.sub.IN) of milk from the number of milking points is increasing.

    18. The method according to claim 11, further comprising: receiving a temperature-indicating signal (T) from a temperature sensor (140) measuring a temperature of the flow of milk (F) before entering the storage tank (130); and incorporating the temperature-indicating signal (T) in generating the first control signal (C1), such that a cooling capacity of the cooling system (170) is increased if the temperature-indicating signal (T) reflects a milk temperature above a set temperature.

    19. The method according to claim 18, wherein, in generating the first control signal (C1), the cooling capacity of the cooling system (170) is decreased if the temperature-indicating signal (T) reflects a milk temperature below the set temperature.

    20. The method according to claim 15, wherein the cooling system (170) comprises a heat exchanger (160) configured to transfer heat energy from the flow of milk (F) to a coolant (C) being circulated in a chiller (167) by means of a coolant pump (165) operating in response to a second control signal (C2), and the method further comprises generating the second control signal (C2) based on the first level-indicating signal (s(L)) so that: a flow of the coolant (C) and/or the cooling capacity of the chiller (167) increases if the prediction parameter (M.sub.INest) indicates that the estimated future input (M.sub.IN) of milk from the number of milking points will increase during a predefined future interval and the indicated milk level (L) exceeds any one of the at least two predefined threshold levels so as to cause the milk pump (150) to pump the flow of milk (F) out from the balance tank (120) at a higher flow rate, and the flow of the coolant (C) and/or the cooling capacity of the chiller (167) decreases if the prediction parameter (M.sub.INest) indicates that the estimated future input (M.sub.IN) of milk from the number of milking points will decrease during the predefined future interval and the indicated milk level (L) falls below any one of the at least two predefined threshold levels will cause the milk pump (150) to pump the flow of milk (F) out from the balance tank (120) at a lower flow rate.

    21. A non-volatile, non-transitory data carrier (316) readable by a processing unit (315) and having recorded thereon a computer program (317) comprising software configured to execute the method according to claim 11 when the computer program (317) is run on the processing unit (315).

    22. (canceled)

    Description

    BRIEF DESCRIPTION OF THE DRAWINGS

    [0023] The invention is now to be explained more closely by means of preferred embodiments, which are disclosed as examples, and with reference to the attached drawings.

    [0024] FIG. 1 schematically illustrates a milk handling system including a control unit according to one embodiment of the invention;

    [0025] FIG. 2 shows a diagram exemplifying a relationship between a milk-flow rate and predefined threshold levels in a balance tank according to one embodiment of the invention;

    [0026] FIG. 3 shows a block diagram of the control unit according to the invention; and

    [0027] FIG. 4 illustrates, by means of a flow diagram, the method according to a preferred embodiment of the invention.

    DETAILED DESCRIPTION

    [0028] FIG. 1 shows a schematic illustration of a milk handling system including a control unit 110 according to one embodiment of the invention.

    [0029] The control unit 110 is arranged to control a flow of milk F through a cooling system 170 from a balance tank 120 to a storage tank 130. The storage tank 130 is adapted to accumulate milk that has been collected during a relatively long period, namely between consecutive pickups of the milk for further transport to a dairy or similar facility, which pickups typically occur every 24 or 48 hours. Consequently, the storage tank 130 has a comparatively large capacity. The balance tank 120, on the other hand, has a comparatively low capacity. Namely, here the milk is just buffered briefly before being forwarded through the cooling system 170. The balance tank 120 is adapted to receive an input M.sub.IN in the form of milk having been extracted from milking animals at a number of milking points MP1, MP2, . . . , MPn, for example located in a milking parlor or on a rotary milking parlor. The milking points MP1, MP2, . . . , MPn may either feed milk to the balance tank 120 directly, or via one or more so-called end units/receiver tanks RT. Each of the receiver tanks RT has a relatively small storage capacity, say in the range of 50 to 200 liters. The storage capacity of each of the balance tank 120 and the storage tank 130 respectively is substantially larger than that of the receiver tank RT, and sizes typically depend on the number of milking points MP1, MP2, . . . , MPn. At least one receiver pump 107 may be arranged to pump the milk collected in the receiver tank(s) RT to the balance tank 120. The receiver pump 107 is normally controlled in response to a Boolean variable, i.e. the receiver pump 107 is either on or off.

    [0030] The control unit 110 is configured to receive a first level-indicating signal s(L) and a prediction parameter M.sub.INest. The first level-indicating signal s(L) reflects a milk level L in the balance tank 120. The prediction parameter M.sub.INest indicates an estimated future input M.sub.IN of milk from the number of milking points MP1, MP2, . . . , MPn.

    [0031] Based on the first level-indicating signal s(L) and the prediction parameter M.sub.INest, the control unit 110 is configured to generate a first control signal C1 to a milk pump 150 in the cooling system 170. In response to the first control signal C1, the milk pump 150 is arranged to cause the flow of milk F to be pumped out from the balance tank 120 at a flow rate determined by the first control signal C1.

    [0032] The prediction parameter M.sub.INest may for example be based on a second level-indicating signal s(L.sub.RT) reflecting a milk level in the receiver tank(s) RT in which the milk from at least one, and preferably several or all, of the milking points MP1, MP2, . . . , MPn is collected before being fed into the balance tank 120. Thus, the control unit 110 obtains straightforward and reliable advance information about a future input M.sub.IN to be expected to the balance tank 120.

    [0033] According to one embodiment of the invention, the prediction parameter M.sub.INest is based on an opening and/or closing of an entrance gate G1 in to a closed area where the milking points MP1, MP2, . . . , MPn are located, typically a milking parlor, e.g. of herringbone or parallel type. Via information about the opening and/or closing of the entrance gate G1, the control unit 110 may gain information about a point in time when milking animals are entering the milking parlor and a new milking session is initiated.

    [0034] Additionally, or alternatively, the prediction parameter M.sub.INest may be based on an opening and/or closing of an exit gate or neck rail(s) G2 out from the closed area, such as one or several neck rails in the milking parlor, where the milking points MP1, MP2, . . . , MPn are located. Via information about the opening and/or closing of the exit gate or neck rail(s) G2, the control unit 110 may gain information about a point in time when a milking session has ended.

    [0035] Of course, knowledge about start and/or end of milking sessions is important to estimate the future input M.sub.IN of milk into the balance tank 120.

    [0036] Additionally, or alternatively, the prediction parameter M.sub.INest may be based on information about a number of milking animals currently being attached to the milking points MP1, MP2, . . . , MPn. This information may be acquired directly from identity readers and/or milking point controllers at the respective milking points MP1, MP2, . . . , MPn, or via a central unit in the milking installation. Similarly, additionally or alternatively, the prediction parameter M.sub.INest may be based on information about a number of milking animals currently being detached from the milking units at the milking points MP1, MP2, . . . , MPn. Knowledge about attachment and/or detachment of individual milking units to the animals enables relatively precise estimation of the future input M.sub.IN of milk into the balance tank 120.

    [0037] Even better estimates may be made based on information about the milk flow or milk yield from the milking animals currently delivering milk via the number of milking points MP1, MP2, . . . , MPn. Therefore, it is preferable if the prediction parameter M.sub.INest is based on such information as alternative or in addition to the above. Moreover, the prediction parameter M.sub.INest may be based on information about a previous milk yield or milk flow curve of each milking animal that is currently delivering milk via the milking points MP1, MP2, . . . , MPn. Namely, this enables estimation of a current milk flow from the animals at each point in time during the milking session. The information about previous milk yields and/or previous milk flow curves is preferably received from a central unit in the milking installation, which central unit is communicatively connected to a database containing this information.

    [0038] According to other embodiments of the invention, the prediction parameter M.sub.INest is based on identity information relating to which milking animals that are present in the closed area where the milking points MP1, MP2, . . . , MPn are located, and/or temporal data indicating an extension of a period during which milking animals have been present in the closed area where the milking points MP1, MP2, . . . , MPn are located. This may not provide exactly the same degree of precision as the current or previous milk yields or previous milk flow curves. However, the identity information and the temporal data may offer a comparatively reliable basis for estimating the future input M.sub.IN of milk into the balance tank 120 based upon which the milk pump 150 may be controlled in a proactive manner.

    [0039] It is advantageous if the control unit 110 is configured to receive a temperature-indicating signal T from a temperature sensor 140 measuring a temperature of the flow of milk F before entering the storage tank 130, i.e. when leaving the cooling system 170 in the form of an output flow of milk M.sub.OUT. The control unit 110 is further configured to generate the first control signal C1 on the further basis of the temperature-indicating signal T such that a cooling capacity of the cooling system 170 is increased if the temperature-indicating signal T reflects a milk temperature above a set temperature. Analogously, the control unit 110 is preferably also configured to generate the first control signal C1 based on the temperature-indicating signal T such that the cooling capacity of the cooling system 170 is decreased if the temperature-indicating signal T reflects a milk temperature below the set temperature. Thereby, it can be ensured that the output milk flow M.sub.OUT has a suitable temperature, for example around 3.5 degrees Celsius while the energy resources are economized.

    [0040] According to one embodiment of the invention, the cooling system 170 contains a heat exchanger 160 configured to transfer heat energy from the flow of milk F to a coolant C, which is circulated in a chiller 167 by means of a coolant pump 165 operating in response to a second control signal C2. In this embodiment, the control unit 110 is further configured to generate the second control signal C2 based on the first level-indicating signal s(L). Specifically, the control unit 110 is configured to generate the second control signal C2 so that a flow of the coolant C and/or the cooling capacity of the chiller 167 increases if the prediction parameter M.sub.INest indicates that the estimated future input M.sub.IN of milk from the milking points MP1, MP2, . . . , MPn will increase during a predefined future interval, say 30 to 90 seconds and any one of the at least two predefined threshold levels L.sub.min, L.sub.mid, L.sub.max will cause the milk pump 150 to pump the flow of milk F out from the balance tank 120 at a higher flow rate F.sub.1, F.sub.2, F.sub.3. Analogously, the control unit 110 is configured to generate the second control signal C2 so that the flow of the coolant C and/or the cooling capacity of the chiller 167 decreases if the prediction parameter M.sub.INest indicates that the estimated future input M.sub.IN of milk from the number points MP1, MP2, . . . , MPn will decrease during the predefined future interval and any one of the at least two predefined threshold levels L.sub.min, L.sub.mid, L.sub.max will cause the milk pump 150 to pump the flow of milk F out from the balance tank 120 at a lower flow rate F.sub.1, F.sub.2, F.sub.3.

    [0041] The cooling capacity of the heat exchanger 160 may be controlled up and down by adjusting the temperature of the coolant C, adjusting the speed of the coolant pump 165, or both.

    [0042] The heat exchanger 160 may contain a plate heat exchanger (PHE), and the coolant C preferably contains water and glycol.

    [0043] FIG. 2 shows a diagram representing a relationship between a milk-flow rate F and predefined threshold levels in the balance tank 120 according to one embodiment of the invention. Here, the horizontal axis indicates three threshold levels L.sub.min, L.sub.mid and L.sub.max in relation to the milk level L measured in the balance tank 120, and the vertical axis F designates corresponding milk-flow rates F.sub.1, F.sub.2 and F.sub.3 respectively at which the control unit 110 nominally will control the milk pump 150 to operate via the first control signal C1 depending on the milk level L measured in the balance tank 120. For example, a first threshold level L.sub.min may represent a level below 10% of the storage capacity of the balance tank 120, a second threshold level L.sub.mid may represent a level between 10% and 90% of the storage capacity of the balance tank 120 and a third threshold level L.sub.max may represent a level above 90% of the storage capacity of the balance tank 120.

    [0044] According to one embodiment of the invention, the control unit 110 is configured to generate the first control signal C1 based on the first level-indicating signal s(L) such that an indicated milk level L in the balance tank 120 above a particular one of at least two predefined threshold levels L.sub.min, L.sub.mid or L.sub.max respectively causes the milk pump 150 to pump the flow of milk F out from the balance tank 120 at a respective rate F.sub.1, F.sub.2 or F.sub.3 corresponding to each one of the at least two predefined threshold levels L.sub.min, L.sub.mid and L.sub.max. As is apparent from the diagram in FIG. 2, Lmid is above L.sub.min and L.sub.max is above L.sub.mid. As is also apparent from the diagram in FIG. 2, F.sub.2 represents a higher flow rate than F.sub.1 and F.sub.3 represents a higher flow rate than F.sub.2.

    [0045] Preferably, the control unit 110 is configured to generate the first control signal C1 based on the prediction parameter M.sub.INest such that the prediction parameter M.sub.INest overrides the first level-indicating signal s(L) to cause the milk pump 150 to pump the flow of milk F out from the balance tank 120 at a lower rate, say at F.sub.1 or F.sub.2, than the rate corresponding to the particular one of the at least two predefined threshold levels, say L.sub.mid or L.sub.max respectively, if the first level-indicating signal s(L) indicates that the milk level L in the balance tank 120 is above the particular one of at least two predefined threshold levels L.sub.mid or L.sub.max; and the prediction parameter M.sub.INest indicates that the estimated future input M.sub.IN of milk from the milking points MP1, MP2, . . . , MPn is decreasing. This means that a temporarily elevated milk level L, i.e. above L.sub.mid or L.sub.max, is accepted in the balance tank 120, say during a period of 30 to 90 seconds, since the control unit 110 knows that the milk level L will decrease soon anyway due to the decreasing input of milk M.sub.IN. Thus, the milk flow rate is stabilized by avoiding an unnecessary and temporary increase in the pumping operation of the milk pump 150.

    [0046] Analogously, the control unit 110 is configured to generate the first control signal C1 based on the prediction parameter M.sub.INest such that the prediction parameter M.sub.INest overrides the first level-indicating signal s(L) to cause the milk pump 150 to pump the flow of milk F out from the balance tank 120 at a higher rate, say at F.sub.2 or F.sub.3, than the rate corresponding to the particular one of the at least two predefined threshold levels, say L.sub.min or L.sub.mid, if the first level-indicating signal s(L) indicates that the milk level L in the balance tank 120 is below the particular one of at least two predefined threshold levels L.sub.min or L.sub.mid; and the prediction parameter M.sub.INest indicates that the estimated future input M.sub.IN of milk from the milking points MP1, MP2, . . . , MPn is increasing. This means that the milk pump 150 is kept operated at the higher rate, say during a period of 30 to 90 seconds, since the control unit 110 knows that the milk level L will increase soon due to the increasing input of milk M.sub.IN. Thus, the milk flow rate is stabilized by avoiding an unnecessary and temporary decrease in the pumping operation of the milk pump 150.

    [0047] Preferably, a backpressure sensor (not shown) is also included in the storage tank 130 or the conduit system between the storage tank 130 and the heat exchanger 160, which backpressure sensor is configured to compensate a milk pump speed to variations in the hydrostatic pressure resulting from the varying milk level in the storage tank 130. In other words, higher milk level in the storage tank 130 causes higher back pressure, which is compensated by running the milk pump 150 at relatively higher pump speed and vice versa.

    [0048] The above pump speed compensation to the back pressure of the milk level in the storage tank 130 aims at maintaining a determined flow rate F of milk through the cooling system 170. Hence, if the storage tank 130 is almost empty the determined flow rate F of milk can be achieved by running the milk pump 150 at a relatively slow speed, while an almost full storage tank 130 requires the milk pump to run at relatively higher speed to push the milk into the storage tank at the determined flow rate.

    [0049] FIG. 3 shows a block diagram of the control unit 110 according to the invention. It is generally advantageous if the controller 110 is configured to effect the above-described procedure in an automatic manner by executing a computer program 317. Therefore, the controller 110 may include a memory unit 316, i.e. non-volatile data carrier, storing the computer program 317, which, in turn, contains software for making processing circuitry in the form of at least one processor 315 in the controller 110 execute the actions mentioned in this disclosure when the computer program 317 is run on the at least one processor 315.

    [0050] In order to sum up, and with reference to the flow diagram in FIG. 4, we will now describe the computer-implemented method according to one embodiment of the invention for controlling the flow of milk F through the cooling system 170 from the balance tank 120 to the storage tank 130, where the balance tank 120 receives an input M.sub.IN in the form of milk extracted from the milking points MP1, MP2, . . . , MPn.

    [0051] In a first step 410, a first level-indicating signal s(L) is received, which first level-indicating signal s(L) reflects a milk level L in the balance tank 120.

    [0052] In a second step 420, for example executed in parallel with step 410, a prediction parameter M.sub.INest is received, which prediction parameter M.sub.INest indicates an estimated future input M.sub.IN of milk from the number of milking points MP1, MP2, . . . , MPn.

    [0053] In a step 430, after steps 410 and 420, a first control signal C1 is generated, which first control signal C1 is sent to a milk pump 150 in the cooling system 170. The milk pump 150 is arranged to cause the flow of milk F to be pumped out from the balance tank 120 at a flow rate determined by the first control signal C1.

    [0054] Thereafter, the procedure loops back to steps 410 and 420.

    [0055] The process steps described with reference to FIG. 4 may be controlled by means of a programmed processor. Moreover, although the embodiments of the invention described above with reference to the drawings comprise processor and processes performed in at least one processor, the invention thus also extends to computer programs, particularly computer programs on or in a carrier, adapted for putting the invention into practice. The program may be in the form of source code, object code, a code intermediate source and object code such as in partially compiled form, or in any other form suitable for use in the implementation of the process according to the invention. The program may either be a part of an operating system, or be a separate application. The carrier may be any entity or device capable of carrying the program. For example, the carrier may comprise a storage medium, such as a Flash memory, a ROM (Read Only Memory), for example a DVD (Digital Video/Versatile Disk), a CD (Compact Disc) or a semiconductor ROM, an EPROM (Erasable Programmable Read-Only Memory), an EEPROM (Electrically Erasable Programmable Read-Only Memory), or a magnetic recording medium, for example a floppy disc or hard disc. Further, the carrier may be a transmissible carrier such as an electrical or optical signal which may be conveyed via electrical or optical cable or by radio or by other means. When the program is embodied in a signal, which may be conveyed, directly by a cable or other device or means, the carrier may be constituted by such cable or device or means. Alternatively, the carrier may be an integrated circuit in which the program is embedded, the integrated circuit being adapted for performing, or for use in the performance of, the relevant processes.

    [0056] Variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed invention, from a study of the drawings, the disclosure, and the appended claims.

    [0057] The term comprises/comprising when used in this specification is taken to specify the presence of stated features, integers, steps or components. The term does not preclude the presence or addition of one or more additional elements, features, integers, steps or components or groups thereof. The indefinite article a or an does not exclude a plurality. In the claims, the word or is not to be interpreted as an exclusive or (sometimes referred to as XOR). On the contrary, expressions such as A or B covers all the cases A and not B, B and not A and A and B, unless otherwise indicated. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage. Any reference signs in the claims should not be construed as limiting the scope.

    [0058] It is also to be noted that features from the various embodiments described herein may freely be combined, unless it is explicitly stated that such a combination would be unsuitable.

    [0059] The invention is not restricted to the described embodiments in the figures, but may be varied freely within the scope of the claims.