A method and system for generating product instructions from recipe parameter analysis

By generating formula parameter analysis results and querying the material dropping time comparison table, combined with the staggered time compensation strategy, coordinated control of multiple actuators is achieved, solving the problem of uneven mixing during the synchronous extraction of multiple materials, and improving the control accuracy and adaptability of beverage preparation equipment.

CN123137016APending Publication Date: 2026-11-20浙江玖零智能设备有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611619563.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-20
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

During the formulation process of simultaneous extraction of multiple materials, the time difference in arrival time of different materials in the mixing zone leads to uneven mixing, and some materials cannot fully participate in the mixing, affecting the uniformity of the beverage and the consistency of the output.

Method used

By acquiring the control parameters of the task to be executed, generating the formula parameter analysis results, querying the channel material drop time comparison table to obtain the estimated arrival time delay of the first segment, dividing the candidate material drop batches and selecting a unified or batch staggered time compensation strategy, determining the pump valve opening time, generating pump valve and stirring control commands, and realizing coordinated and consistent control of multiple actuators.

Benefits of technology

It effectively solves the problem of uneven mixing caused by the time difference of material feeding, improves the timing control accuracy and operational adaptability of the control system of beverage preparation equipment, and ensures that the materials achieve higher mixing uniformity within the specified mixing time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123137016A_ABST
    Figure CN123137016A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of control, and discloses a formula parameter analysis generation product instruction method and system, which comprises the following steps: generating a formula parameter analysis result by analyzing a point order instruction, acquiring an estimated material dropping time value by querying a material dropping time contrast table to generate a material dropping time sequence table, selecting a unified compensation or batch compensation strategy according to a maximum material dropping time difference and a preset alignment window threshold value, generating a pump valve control instruction sequence and a staged stirring control instruction set after compensation, and writing the pump valve control instruction sequence and the staged stirring control instruction set into a product instruction queue for execution; and the estimated material dropping time value is used to apply forward compensation to a pump valve opening time, and stirring actions are executed in stages according to material dropping batches, so that the problems of jamming of jam and excessive stirring of tea soup caused by dispersion of material dropping time are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of automatic control technology, specifically to a method and system for generating product instructions by parsing recipe parameters. Background Technology

[0002] In automated material preparation equipment, the control system typically generates control commands for multiple actuators based on preset formula parameters, and drives pump and valve actuators, conveying actuators, and mixing actuators according to a predetermined control program to complete the material supply and mixing process. Existing control methods usually map the formula parameters directly to start and stop commands for each actuator based on the target output, preset running time, and fixed mixing parameters, and execute them according to a preset timing sequence or synchronous triggering method.

[0003] However, during the simultaneous extraction of multiple materials, the arrival times of different materials in the mixing zone often differ, resulting in some materials not fully participating in the mixing process. For example, after the control system interprets the order command, it simultaneously opens the tea and jam channels and initiates the mixing action. The low-viscosity tea flows through the delivery pipes and into the cup first, while the high-viscosity jam lags behind and falls completely into the cup. By this time, the mixing action is already running continuously in the tea, shortening the actual mixing time of the jam. Clumps of unmixed jam are visible at the bottom of the cup, while the upper layer of tea exhibits increased foam or changes in taste due to prolonged mixing, affecting the overall uniformity and consistency of the beverage. Therefore, reducing the mixing unevenness caused by the time difference in material arrival during concurrent extraction and mixing of multiple materials is a problem that urgently needs to be solved in this field. Summary of the Invention

[0004] To address the shortcomings of existing technologies, the present invention aims to provide a multi-actuator timing control method and system based on formula parameter analysis. This method acquires the control parameters of the task to be executed and generates formula parameter analysis results. It then queries a channel drop time lookup table based on the material channel identifier and material fluid state level to obtain the estimated initial arrival delay and determine the pump and valve running time. Based on the estimated initial arrival delay, candidate drop batches are divided, and a unified staggered time compensation strategy or a batch staggered time compensation strategy is selected based on the effective pre-stirring time to determine the compensated pump and valve opening time. Finally, based on the compensated pump and valve opening time, the estimated initial arrival delay, and the pump and valve running time, the expected complete drop end time and formal stirring start time are determined. Finally, pump and valve control commands and stirring control commands are generated and written into the control command queue according to the execution time to control the corresponding actuators. This achieves the technical effect of comprehensive timing compensation based on the initial material arrival delay and the complete drop end time, enabling coordinated and consistent control of multiple actuators under different material fluid states.

[0005] To achieve the above objectives, the present invention adopts the following technical solution: In a first aspect, the present invention provides a multi-actuator timing control method based on recipe parameter analysis, comprising: Obtain the control parameters for the task to be executed, and generate formula parameter parsing results including material channel identifiers and target output quantities; By referring to the material channel identification and material fluid state level, the estimated arrival time delay of the first segment of each material channel is obtained from the channel drop time comparison table, and the pump valve running time is determined according to the target output. Based on the estimated arrival time delay of the first segment, candidate material feeding batches are divided. According to the effective pre-mixing time corresponding to the candidate material feeding batch, a unified staggered time compensation strategy or a batch staggered time compensation strategy is selected to determine the pump valve opening time after compensation for each material channel. The expected complete material discharge end time of each material channel is determined based on the compensated pump valve opening time, the estimated first-stage arrival delay, and the pump valve running time, and the formal stirring start time is determined based on the expected complete material discharge end time. Pump valve control commands and stirring control commands are generated and written into the control command queue according to the execution time. The pump valve actuator and stirring actuator are controlled according to the control command queue.

[0006] Preferably, obtaining the control parameters of the task to be executed includes: The machine-readable code used to carry task information is read by the barcode scanning and recognition module, and the machine-readable code is decoded to obtain structured data. The structured data is transmitted to the control motherboard via a communication interface, and integrity verification is performed on the verification field in the structured data. When the integrity verification passes, the structured data is written to the parsing cache, and the control motherboard extracts the control parameters used to control the material supply process and the stirring process from the structured data.

[0007] Preferably, the generated formula parameter analysis results include: Extract the proportioning adjustment parameters, temperature parameters, stirring time parameters, formal stirring speed parameters, and material list from the control parameters; The bill of materials is traversed to obtain the material codes and corresponding target output quantities. The material code channel mapping table is queried according to the material codes to obtain the corresponding material channel identifier and material type. For materials whose target output is affected by the proportioning adjustment parameters, the target output shall be re-determined based on the proportioning adjustment parameters and the corresponding baseline output parameters; The material channel identifier, material type, target output quantity, and corresponding control parameters are organized into structured data objects to generate the formula parameter parsing results.

[0008] Preferably, the determination of the material fluid state level includes: Based on the material type in the formula parameter analysis results, query the material fluid property table to obtain the material viscosity grade; Based on the correspondence between material channel identifiers and storage areas, obtain the current temperature detection value of the corresponding storage area, and determine the material temperature level according to the temperature range mapping relationship; The material viscosity grade and material temperature grade corresponding to the same material channel are combined to form the material fluid state grade.

[0009] Preferably, the channel material dropping time reference table includes: The material channel identifier is used as the first index dimension, and the material fluid state level, which is composed of the material viscosity level and the material temperature level, is used as the second index dimension. The estimated arrival time of the first segment is stored in the table entries corresponding to each index combination. The estimated first-stage arrival delay characterizes the estimated timing response time between the start of the discharge action of the corresponding pump valve actuator and the first-stage arrival of the corresponding material in the target mixing area. Different material channels correspond to independent estimated first-segment arrival delays under the same material fluid state level.

[0010] Preferably, the method further includes online correction of the channel material dropping time reference table: Obtain the actual pump valve opening time of the target material channel and the actual first arrival time of the corresponding material in the target mixing area, and determine the measured first arrival time delay based on the time difference between the two. Based on the measured arrival delay of the first segment and the original estimated arrival delay of the first segment in the corresponding table entry, the corrected estimated arrival delay of the first segment is determined according to the recursive update rule and written into the table entry jointly determined by the material channel identifier of the target material channel and the current material fluid state level. When the current test result cannot uniquely determine the material channel identifier corresponding to the actual first material arriving, stop using the current test result to update the corresponding table entry.

[0011] Preferably, the step of dividing candidate material feeding batches and selecting a unified staggered time compensation strategy or a batch staggered time compensation strategy includes: The material channels are sorted according to the estimated arrival time of the first segment; Using the minimum estimated first segment arrival delay in the currently undivided material channels as the starting point of the current window, material channels whose estimated first segment arrival delay falls within the time range formed by the sum of the current window starting point and the preset batch alignment window threshold are classified into the same candidate material dropping batch, and the remaining material channels are repeatedly divided. The alignment time of the first segment of each candidate batch is determined based on the upper limit of the estimated arrival time of the first segment in each candidate material feeding batch. The expected material arrival amount of the target stirring area is calculated based on the first segment alignment time of each candidate batch, the channel discharge rate and the pump valve running time. The moment when the expected material arrival amount first reaches the preset pre-stirring start liquid volume is determined as the candidate pre-stirring start time. The time difference between the alignment time of the first segment of the last candidate material feeding batch and the start time of the candidate pre-mixing is determined as the effective pre-mixing time. When the number of candidate material feeding batches is 1 or the effective pre-mixing time is less than the pre-mixing establishment time threshold, a unified staggered time compensation strategy is selected; when the number of candidate material feeding batches is greater than 1 and the effective pre-mixing time is greater than or equal to the pre-mixing establishment time threshold, a batch staggered time compensation strategy is selected.

[0012] Preferably, the unified time-shifting compensation strategy includes: The unified first segment alignment time is determined based on the upper limit of the estimated first segment arrival time of each material channel; The difference between the unified first segment alignment time and the estimated first segment arrival time corresponding to the current material channel is determined as the compensated pump valve opening time of the current material channel, so that the estimated first segment arrival time of the material corresponding to each material channel is equal to the unified first segment alignment time.

[0013] Preferably, the batch staggered time compensation strategy includes: The candidate unloading batches are determined as unloading batches, and the first segment alignment time of each candidate unloading batch is determined as the first segment alignment time of the corresponding unloading batch. The difference between the alignment time of the first segment of the current material channel and the estimated arrival time of the first segment of the current material channel is determined as the opening time of the pump valve after compensation, so that the estimated arrival time of the first segment of the material in each material channel within the same material channel is equal to the alignment time of the first segment of the corresponding batch. The candidate pre-stirring start time is determined as the pre-stirring start time, and a pre-stirring control command is generated based on the pre-stirring start time and a pre-stirring speed lower than the formal stirring speed.

[0014] Preferably, determining the expected end time of complete material feeding and the start time of formal mixing includes: The sum of the compensated pump valve opening time of the current material channel and the estimated first-stage arrival time delay is determined as the estimated first-stage arrival time of the current material channel. The pump valve running time is determined based on the ratio of the target discharge volume of the current material channel to the corresponding discharge rate. The sum of the estimated arrival time of the first segment and the pump valve running time is determined as the estimated complete discharge end time of the current material channel. Select the upper limit of the time value from the expected complete material discharge end time of all material channels, and determine the upper limit of the time value as the formal stirring start time; Generate formal stirring control commands based on the formal stirring start time, formal stirring speed, and stirring duration; When selecting a staggered timing compensation strategy, the time difference between the formal stirring start time and the pre-stirring start time is determined as the pre-stirring running time, and the pre-stirring control command and the formal stirring control command are combined into a staged stirring control command set according to the execution time.

[0015] Preferably, the step of generating pump valve control commands and stirring control commands and writing them into the control command queue includes: The pump valve closing time is determined based on the compensated pump valve opening time and pump valve running time of each material channel, and pump valve control commands are generated based on the material channel identifier, the compensated pump valve opening time, and the pump valve closing time. The moment when the cup position detection signal meets the preset valid conditions and the timer of the main board is started is taken as the start time of product output. The pump valve control command and the stirring control command are written into the same control command queue according to the execution time relative to the start time of product output. The control board reads the control command queue based on a unified timing benchmark and outputs control signals to the corresponding pump valve actuator or stirring actuator according to the command type.

[0016] Secondly, the present invention provides a multi-actuator timing control system based on recipe parameter analysis, comprising: The parameter parsing module is used to obtain the control parameters of the task to be executed and generate the formula parameter parsing results; The timing parameter generation module is used to obtain the estimated arrival time delay of the first stage based on the material channel identifier and the material fluid state level, and to determine the pump valve running time based on the target output. The timing compensation module is used to divide candidate material feeding batches based on the estimated arrival delay of the first segment, select a unified staggered time compensation strategy or a batch staggered time compensation strategy according to the effective pre-mixing time, determine the pump valve opening time after compensation for each material channel, and determine the expected complete material feeding end time and formal mixing start time based on the pump valve opening time after compensation, the estimated arrival delay of the first segment and the pump valve running time. The instruction scheduling module is used to generate pump and valve control instructions and stirring control instructions and write them into the control instruction queue according to the execution time, and control the pump and valve actuators and stirring actuators according to the control instruction queue.

[0017] Compared to existing technologies, the advantages of this invention are as follows: This invention obtains the estimated material drop time value for each channel by jointly querying the channel drop time reference table, and applies advance compensation to the opening time of the pump valves of each channel accordingly. At the same time, it generates control commands for pre-stirring and formal stirring in stages according to the actual arrival time of the drop batch. This effectively solves the problem of uneven material distribution in existing control systems when multiple channels are extracted concurrently, caused by differences in material viscosity, refrigeration temperature, and pipelines, resulting in low-viscosity materials falling in first and high-viscosity materials participating in stirring later, causing jam clumps at the bottom of the cup to not be broken up and the upper tea soup to be over-stirred. Since the channel drop time reference table uses the material channel identifier as the row index and the combination of material viscosity grade and material temperature grade as the column index, the estimated drop time value can simultaneously cover the material's own flow difficulty, refrigeration temperature drift, and differences in pipeline and pump power. It remains consistent with the actual arrival time even under conditions such as changing pipelines in stores, reheating refrigerated cabinets, and changing material suppliers, and the batch division boundary is not easily misaligned. Under the batch compensation strategy, pre-mixing keeps the first batch of materials circulating, while the last batch of high-viscosity materials is stretched and dispersed instantly upon entering the cup. This results in a higher initial mixing degree during the formal mixing stage, achieving greater mixing uniformity within the mixing time specified in the formula. This solution achieves dynamic compensation and coordinated control of the timing of multiple actuators at the control command generation and execution level, improving the timing control accuracy and operational adaptability of the beverage preparation equipment control system. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is a flowchart of a method for generating production instructions by parsing formula parameters according to the present invention. Figure 2 This is a schematic representation of the channel material dropping time in an embodiment of the present invention; Figure 3 This is a schematic diagram showing the opening time of the pump valve after compensation in an embodiment of the present invention; Figure 4 This is a schematic diagram of the material feeding batch in an embodiment of the present invention; Figure 5 This is a schematic diagram of a staged stirring control instruction set in an embodiment of the present invention; Figure 6 This is a schematic diagram of the output instruction queue in an embodiment of the present invention; Figure 7 This is a functional block diagram of a system for parsing formula parameters and generating output instructions according to the present invention. Detailed Implementation

[0020] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0021] Example 1: Please see Figure 1 As shown, this embodiment provides a method for generating dispensing instructions through formula parameter parsing. This embodiment is applied to the control system of a beverage preparation equipment, which includes a barcode scanning module, 17 dispensing channels, pump valve actuators corresponding to the 17 dispensing channels, a stirring motor, a stirring motor drive module, a heating module, a control motherboard, a cup position detection module, and a refrigerator located at the bottom of the equipment. The refrigerator includes two independent passages sharing a common cooling source, and a temperature sensor is installed at the air outlet of each refrigerator passage. The formula parameter parsing result refers to the structured key-value data object formed after the order instruction is parsed. The material fluid state level refers to a discrete state label formed by combining the material viscosity level and the material temperature level. The channel discharge time lookup table refers to a data table that uses the material channel identifier and the material fluid state level as a joint index, and uses the estimated first-segment arrival delay as the table item value. The estimated first-segment arrival delay refers to the time elapsed from when the pump valve starts executing the dispensing action to when the corresponding first segment of material reaches the stirring area. The estimated complete discharge end time refers to the time when the last segment of material corresponding to the target discharge amount is expected to complete entering the stirring area. A material discharge batch refers to a set of material channels divided according to the estimated arrival delay of the first stage and aligned with the arrival of the first stage within the batch. A phased mixing control instruction set refers to a set of instructions composed of pre-mixing control instructions and formal mixing control instructions arranged according to their execution times. Existing control methods only arrange the mixing sequence based on the pump / valve opening time or the arrival time of the first stage of material. During the continuous operation of the pump / valve, subsequent materials may still enter the mixing area, and the final stage of material may only enter after the formal mixing stage, resulting in different actual participation times for different materials in the formal mixing. Therefore, this embodiment utilizes the estimated arrival delay of the first stage to arrange staggered opening and material discharge batches, and uses the estimated end time of complete material discharge to determine the start time of formal mixing, so that the first stage arrival control and the complete material discharge control bear different timing constraints.

[0022] S1: Obtain the ordering instruction through the barcode scanning module, parse the control parameters in the ordering instruction, and generate the recipe parameter parsing result.

[0023] The order information generated at the store's front end needs to be converted into a material channel-level control object. Subsequent channel timing calculations use the material channel identifier, material type, target output volume, stirring duration, and actual stirring speed as inputs. If the order information only retains the beverage name or set meal name, the control board cannot determine the output channel involved in this production, nor can it calculate the pump valve runtime based on the target output volume. Therefore, step S1 converts the order information into structured data that can be directly used in subsequent timing calculations.

[0024] Further, step S1 includes: S11: The machine-readable code used to carry order information is read through the barcode scanning and recognition module, the machine-readable code is decoded and its integrity is verified, and an order instruction is generated.

[0025] Specifically, the QR code scanning module uses a camera-based QR code recognition module, installed above the cup spout on the front panel of the machine. The lens axis is tilted downwards towards the front of the device, with an effective recognition distance of 50 mm to 150 mm. The store's front-end ordering program outputs a QR code when an order is generated. The QR code carries a JSON format string, which includes at least the order number, beverage number, cup type, sweetness level, temperature, stirring time, actual stirring speed, and a bill of materials. The bill of materials uses an array structure, with array elements including material codes and target dispensing quantities.

[0026] After decoding, the barcode scanning module transmits the JSON string to the control motherboard via a serial communication interface. The control motherboard reads the cyclic redundancy check (CRUD) field from the JSON string and performs a CRUD operation. If the check passes, the JSON string is written to the parsing cache and an order placement instruction is generated. If the check fails, order placement instruction generation stops, and a prompt to rescan the barcode is displayed on the device screen. CRUD is used to prevent data with missing fields or incorrect transmission from entering the pump and valve control process.

[0027] S12: Perform field parsing and material channel mapping for order placement instructions, calculate the target output amount affected by the proportion adjustment parameters, and generate formula parameter parsing results.

[0028] Specifically, the control board extracts the cup type, sweetness, temperature, stirring time, and actual stirring speed from the order instruction according to the field names, and iterates through the bill of materials to obtain the material code and target output quantity. The control board then queries the pre-stored material code channel mapping table based on the material code to obtain the material channel identifier and material type. The material code channel mapping table uses a key-value table structure, where the key is the material code and the value is a record consisting of the material channel identifier and material type. The material code channel mapping table is written to the control board's memory by the store operator through the equipment maintenance interface after changing the material box.

[0029] For carbohydrate materials, the control board recalculates the target output quantity based on the sweetness and cup type parameter table. The cup type parameter table uses a key-value table structure, where the key is the cup type and the values ​​include the baseline total liquid volume and baseline sugar content. The target output quantity for carbohydrate materials is equal to the product of the sweetness percentage and the baseline sugar content for the corresponding cup type. For example, if a large cup corresponds to a baseline sugar content of 30 ml and a sweetness of 70%, the target output quantity for the carbohydrate material is 21 ml. For materials not adjusted for sweetness, the target output quantity retains the field values ​​from the bill of materials.

[0030] The control board organizes the material channel identifier, material type, target output quantity, cup type, sweetness, temperature, stirring time, and actual stirring speed into formula parameter analysis results according to a key-value structure. For example, the formula parameter analysis results for a large cup of mango jam milk tea include CH01 corresponding to 320 ml of black tea, CH05 corresponding to 120 ml of fresh milk, CH09 corresponding to 21 ml of fructose, CH12 corresponding to 15 ml of caramel-flavored syrup, CH14 corresponding to 40 ml of mango jam, a sweetness of 70%, a temperature of room temperature, a stirring time of 4 seconds, and an actual stirring speed of 1000 rpm.

[0031] S2: Determine the material fluid state level of each material channel based on the formula parameter analysis results, obtain the estimated arrival time delay of the first segment by querying the channel discharge time comparison table, and generate the channel discharge timing parameter table by combining the target discharge volume and the channel discharge rate.

[0032] The conveying delay of the same material channel varies with the type of material and refrigeration temperature. The pipe length, pipe diameter, and pump / valve response also differ between different material channels. Using only a uniform fixed delay cannot reflect the actual arrival sequence of the first segment of the 17 discharge channels under different material conditions. Furthermore, the start-up time of the formal mixing process also requires knowledge of the continuous discharge time of each material channel. Therefore, step S2 simultaneously generates the estimated arrival delay of the first segment and the pump / valve running time, enabling subsequent calculations of the arrival time of the first segment and the end time of the complete discharge process.

[0033] Further, step S2 includes: S21: Based on the material type in the formula parameter analysis results, query the material fluid property table to determine the material viscosity grade corresponding to each material channel.

[0034] Specifically, the material fluid property table adopts a key-value table structure, where the key is the material type and the value is the material viscosity grade. The material viscosity grade is divided into four levels: V1, V2, V3, and V4. Apparent viscosity less than 10 mPa·s is denoted as V1; greater than or equal to 10 mPa·s and less than 100 mPa·s is denoted as V2; greater than or equal to 100 mPa·s and less than 1000 mPa·s is denoted as V3; and greater than or equal to 1000 mPa·s is denoted as V4.

[0035] The initial values ​​for the material fluid properties table are determined when the material first enters the store's material catalog. Operators take samples of the corresponding material and measure its apparent viscosity using a rotational viscometer at 4 degrees Celsius, recording the viscosity grade according to four ranges. When an unrecorded material type appears in the material fluid properties table, a new record is added following the same measurement process; when the same material type is supplied in a different batch and the measurement crosses the original viscosity grade boundary, the newly measured viscosity grade overwrites the original record. For example, black tea infusion corresponds to V1, fresh milk to V2, fructose and caramel-flavored syrups to V3, and mango jam to V4.

[0036] S22: Determine the corresponding freezer passage based on the material passage identifier, read the current temperature detection value of the corresponding freezer passage, determine the material temperature level according to the temperature range mapping relationship, and combine the material viscosity level and the material temperature level into the material fluid state level.

[0037] Specifically, digital temperature sensors are installed at the air outlets of the two refrigeration compartments. These sensors measure temperatures from -10°C to 50°C with a quantization resolution of 0.1°C and are connected to the control motherboard via a single-bus interface. The control motherboard reads the temperature sensor output every 5 seconds and saves the most recent valid reading. The correspondence between material channel identifiers and refrigeration compartment numbers is recorded in the equipment configuration table, which is written into the control motherboard's memory after the piping assembly is completed.

[0038] The temperature range mapping is set to three levels: T1 is when the current temperature detection value is no greater than 4.0 degrees Celsius, T2 is when it is greater than 4.0 degrees Celsius but no greater than 8.0 degrees Celsius, and T3 is when it is greater than 8.0 degrees Celsius. The two range boundaries are determined through factory testing: the same high-viscosity calibration material is loaded into a fixed channel, and the temperature in the freezer passage is increased from 2 degrees Celsius in 1-degree Celsius increments. The time from pump valve opening to the first stage arrival is measured three times at each temperature point, and the cumulative change in the average first stage arrival delay between adjacent temperature points is calculated. When the cumulative change reaches four times the 50-millisecond command interval of the control board, the corresponding temperature point is recorded as the range boundary, and the next boundary is obtained after re-accumulation. For example, the test-obtained boundaries are 4.0 degrees Celsius and 8.0 degrees Celsius. After the material temperature increases, the viscosity changes to varying degrees for different materials. Therefore, the control board does not preset that the temperature and the estimated first stage arrival delay must maintain the same monotonic direction; instead, it directly uses the material temperature level for subsequent table lookup.

[0039] The control board connects the viscosity grade and temperature grade of materials corresponding to the same material channel in a fixed field order to generate the material fluid state grade. For example, if the current temperature detection value of freezer channel A is 3.5 degrees Celsius, the current temperature detection value of freezer channel B is 6.2 degrees Celsius, CH01 and CH05 are located in freezer channel A, and CH09, CH12 and CH14 are located in freezer channel B, then CH01 corresponds to V1T1, CH05 corresponds to V2T1, CH09 and CH12 correspond to V3T2, and CH14 corresponds to V4T2.

[0040] S23: Use the material channel identifier and material fluid state level to query the channel drop time comparison table and read the estimated first segment arrival delay for each material channel.

[0041] Specifically, the material drop time reference table is a two-dimensional data table with 17 rows and 12 columns. The 17 rows correspond to 17 material channel identifiers, and the 12 columns correspond to 12 material fluid state levels formed by 4 material viscosity levels and 3 material temperature levels. Each entry stores one floating-point estimated first-segment arrival delay in seconds. See also Figure 2 The control board locates the row index based on the current material channel identifier, locates the column index based on the current material fluid state level, and reads the cross-tab entry as the estimated arrival delay of the first segment of the current material channel.

[0042] The initial values ​​of the material drop time reference table are obtained through factory-measured channel by channel. A photoelectric material drop detection probe is installed above the mixing area. Each material channel is loaded with calibrated materials corresponding to V1 to V4, and the corresponding refrigerated compartment is stabilized at the midpoint of the T1, T2, and T3 intervals. The control board issues a pump valve opening command to the current material channel, records the time difference between the pump valve opening command time and the time when the photoelectric material drop detection probe first detects the material, repeats this process three times, and records the arithmetic average in the corresponding table entry. When a store replaces the piping of a material channel, only the 12 table entries corresponding to that material channel are remeasured.

[0043] During equipment operation, the channel feeding time reference table can be corrected under detection conditions where the channel source is determinable. Determinable channel source detection conditions include single-channel output testing, or the current feeding batch containing only one material channel and no expected first-segment arrival from a non-current material channel within the detection time window. The control board calculates the actual first-segment arrival delay and updates the corresponding table entry using a first-order recursive average. The correction value is equal to 0.9 times the original table entry value and 0.1 times the actual first-segment arrival delay. When the trigger time of the photoelectric feeding detection probe cannot uniquely correspond to the material channel identifier, the control board does not perform table entry updates to prevent cross-writing of detection results from different material channels.

[0044] For example, after the composite index is used, CH01 corresponds to 0.6 seconds, CH05 corresponds to 1.1 seconds, CH09 corresponds to 2.0 seconds, CH12 corresponds to 2.5 seconds, and CH14 corresponds to 3.2 seconds. CH09 and CH12 have the same V3T2 material fluid state level, but the estimated first-segment arrival delays of the two material channels are different. The difference is used to characterize the differences between the two material channels in terms of pipeline length and pump / valve delivery capacity.

[0045] Material viscosity grade, material temperature grade, and material channel identifier each constrain time delay variations from different sources. If the material temperature grade is removed, the same material will still read the original table entry after the refrigerator temperature crosses the interval boundary, causing the first arrival time to deviate from the current material state. If the material viscosity grade is removed, tea and jam within the same refrigerator passage cannot obtain different first arrival times. If the material channel identifier is removed, different pipe lengths and pump / valve delivery capacities will be merged. When these three types of indexes are used together, the channel drop time lookup table can reflect both material state changes and channel structure differences in the first arrival time, reducing misalignment at subsequent drop batch boundaries due to changing conditions.

[0046] S24: Calculate the pump and valve running time based on the target discharge rate and the channel discharge rate, and organize the material channel identifier, estimated first-stage arrival delay, channel discharge rate and pump and valve running time into a channel material dropping sequence parameter table.

[0047] Specifically, the channel discharge rate table uses a key-value table structure. The key is the material channel identifier, and the value is the discharge rate per unit time of the corresponding material channel under stable discharge conditions, in milliliters per second. The channel discharge rate table is established during equipment factory testing. For each material channel, a corresponding type of calibrated material is loaded, and after continuous and stable discharge is achieved at the outlet, the discharge volume within 10 seconds is recorded. The discharge volume is then divided by 10 seconds to obtain the channel discharge rate. The corresponding records are re-measured after changing the pump body, pipe diameter, or actuator of the material channel.

[0048] The pump valve running time is equal to the target discharge volume generated in step S1 divided by the current discharge rate of the corresponding material channel. The pump valve running time represents the duration for which the pump valve maintains its discharge action, and the estimated first-segment arrival delay represents the conveying time shifted backward from the pump valve opening time for the entire continuous discharge interval. The estimated arrival time of the continuous material segment formed during pump valve operation in the mixing zone is consistent with the pump valve running time; therefore, the estimated complete discharge end time can be obtained by adding the estimated first-segment arrival time to the pump valve running time.

[0049] For example, the discharge rate of channel CH01 is 80 ml / s, the target discharge volume is 320 ml, and the pump valve running time is 4.0 seconds; CH05 is 40 ml / s and 120 ml / s, with a pump valve running time of 3.0 seconds; CH09 is 7 ml / s and 21 ml / s, with a pump valve running time of 3.0 seconds; CH12 is 5 ml / s and 15 ml / s, with a pump valve running time of 3.0 seconds; and CH14 is 10 ml / s and 40 ml / s, with a pump valve running time of 4.0 seconds. The control main board arranges the records of each material channel in ascending order according to the estimated first-segment arrival delay. If the estimated first-segment arrival delays are the same, they are arranged in lexicographical order according to the material channel identifier, generating a channel discharge timing parameter table.

[0050] S3: Based on the channel material feeding timing parameter table, candidate feeding batches are formed, the candidate effective pre-mixing time is calculated and compared with the pre-mixing establishment time threshold, a unified staggered time compensation strategy or a batch staggered time compensation strategy is selected, and a pump valve control command sequence and a staged mixing control command set are generated after compensation.

[0051] The difference in estimated arrival time of the first segment does not mean that the material channels cannot be aligned uniformly. The control board can ensure that the first segments of each material enter the mixing zone at the same time by delaying the material channel with the shorter arrival time of the first segment. Step S3 does not use uniform alignment as a batching condition, but first estimates the time when the liquid volume in the cup reaches the pre-mixing start condition, and then determines whether there is a time period between the start of pre-mixing and the entry of the first segment of the last candidate batch of material, which meets the requirements for establishing pre-mixing. When the effective pre-mixing time of the candidates is insufficient, uniform staggered compensation is used; when the effective pre-mixing time of the candidates reaches the pre-mixing establishment time threshold, the arrival time difference of the first segment between batches is retained, so that the material that enters the mixing zone first forms a continuous flow state before the last batch of material enters.

[0052] Further, step S3 includes: S31: Divide the channel material dropping timing parameter table into candidate dropping batches according to the preset batch alignment window threshold, calculate the candidate pre-mixing start time and candidate effective pre-mixing duration, and generate a strategy selection identifier based on the comparison result between the candidate effective pre-mixing duration and the pre-mixing establishment duration threshold.

[0053] Specifically, the control board starts from the first undivided record in the channel material feeding timing parameter table, using the corresponding estimated first-segment arrival delay as the starting point of the current window. Material channel records whose arrival delay is greater than or equal to the current window starting point but not greater than the current window starting point plus a preset batch alignment window threshold are assigned to the same candidate feeding batch. The control board repeats the window division process for the remaining records until all records are included in candidate feeding batches. The range of estimated first-segment arrival delays within each candidate feeding batch is not greater than the preset batch alignment window threshold.

[0054] The preset intra-batch alignment window threshold is jointly limited by the pump / valve mechanical response time and the material settling and stratification time. At the factory, the time from receiving the drive command to the valve reaching a stable open state is measured, and the upper limit of the measured values ​​from 17 material channels is used as the lower constraint of the window. Then, low-viscosity tea is injected into a transparent calibration cup, and the time it takes for a identifiable concentration boundary to appear during settling is recorded; this settling and stratification time is used as the upper constraint of the window. The preset intra-batch alignment window threshold is a value greater than the upper limit of the pump / valve mechanical response time but less than the settling and stratification time. For example, if the upper limit of the pump / valve mechanical response time is 0.2 seconds and the settling and stratification time is 1.4 seconds, the preset intra-batch alignment window threshold is 0.8 seconds.

[0055] The preset pre-stirring start-up liquid volume is determined based on the effective operating height of the agitator. After the equipment is assembled, measure the vertical distance from the bottom of the cup to the lower edge of the agitator and the volume of the calibration cup at the corresponding height. The volume of the calibration cup when the liquid level reaches the lower edge of the agitator is taken as the preset pre-stirring start-up liquid volume. For example, if the liquid level reaching the lower edge of the agitator corresponds to 80 ml, then the preset pre-stirring start-up liquid volume is 80 ml.

[0056] The pre-stirring speed is lower than the formal stirring speed. The pre-stirring speed is determined by a transparent calibration cup test: under a preset pre-stirring start-up liquid volume condition, the stirring motor speed is gradually increased, and the speed range in which the tracer particles can circulate continuously and no liquid droplets are generated on the liquid surface beyond the cup rim is recorded. The median value from the speed range is selected as the pre-stirring speed. For example, when the formal stirring speed is 1000 rpm, the pre-stirring speed is 300 rpm.

[0057] The control board uses the upper limit of the estimated arrival delay of the first segment in each candidate material feeding batch as the alignment time of the first segment of the candidate batch, and uses a calculation step of 10 milliseconds to accumulate the estimated volume of material entering the mixing zone starting from the alignment time of the first segment of the candidate feeding batch. For material channels whose current calculation time has reached the alignment time of the first segment of the candidate feeding batch to which the current material channel belongs, and whose current calculation time is less than the alignment time of the first segment of the candidate batch plus the pump and valve running time, the control board multiplies the channel discharge rate by 10 milliseconds to obtain the estimated volume of material arriving at the current calculation step, and adds it to the accumulated amount of material arriving in the mixing zone. The calculation time when the accumulated amount of material arriving in the mixing zone first reaches the preset pre-mixing start liquid volume is defined as the candidate pre-mixing start time.

[0058] The pre-stirring setup time threshold represents the lower limit of the time required for the low-viscosity material in the cup to form a continuous circulating flow after the stirring motor runs at the pre-stirring speed. The pre-stirring setup time threshold is determined through a transparent calibration cup test: a preset amount of tea and tracer particles are added to the transparent calibration cup, the stirring motor is started at the pre-stirring speed, and the time taken for the tracer particles to continuously complete one cycle is recorded. This process is repeated 10 times, and the upper limit of the 10 records is taken as the pre-stirring setup time threshold. For example, the pre-stirring setup time threshold is 1.0 second. The control board subtracts the candidate pre-stirring start time from the candidate batch first segment alignment time of the last candidate material drop batch to obtain the candidate effective pre-stirring time.

[0059] When the number of candidate feeding batches is 1, or the effective pre-mixing time is less than the pre-mixing establishment time threshold, the main board generates a unified time-staggered compensation flag. When the number of candidate feeding batches is greater than 1 and the effective pre-mixing time is greater than or equal to the pre-mixing establishment time threshold, the main board generates a batch-by-batch time-staggered compensation flag. For example, the first candidate feeding batch is formed between 0.6 and 1.4 seconds, with CH01 and CH05 entering the first candidate feeding batch; the second candidate feeding batch is formed between 2.0 and 2.8 seconds, with CH09 and CH12 entering the second candidate feeding batch; and CH14 forms the third candidate feeding batch. The first-segment alignment times for the three candidate batches are 1.1 seconds, 2.5 seconds, and 3.2 seconds, respectively. After 1.1 seconds, the sum of the expected feeding rates of CH01 and CH05 is 120 ml / s. It takes 0.67 seconds for the cumulative feeding amount in the mixing area to reach 80 ml. Based on a step size of 10 milliseconds, the candidate pre-mixing start time is taken as 1.77 seconds. The candidate effective pre-mixing time is 3.2 seconds minus 1.77 seconds, which equals 1.43 seconds. Since 1.43 seconds is greater than 1.0 seconds, a batch staggered time compensation flag is generated.

[0060] S32: When the strategy selection flag is the unified staggered time compensation flag, the estimated first segment arrival delay upper limit in all material channels is used as the unified first segment alignment time, and the compensation pump valve opening time of each material channel is calculated.

[0061] Specifically, the control motherboard reads the estimated first-segment arrival delay from the last record of the channel feeding timing parameter table and uses this estimated first-segment arrival delay as the unified first-segment alignment time. The compensated pump valve opening time of the current material channel is equal to the unified first-segment alignment time minus the estimated first-segment arrival delay of the current material channel. Material channels with longer estimated first-segment arrival delays open first, and material channels with shorter estimated first-segment arrival delays open later, so that the estimated first-segment arrival times of all material channels are uniformly equal to the unified first-segment alignment time.

[0062] For example, a recipe contains only CH01, CH02, and CH05, with estimated first-stage arrival delays of 0.6 seconds, 0.9 seconds, and 1.1 seconds, respectively. A unified first-stage alignment time is set at 1.1 seconds. Therefore, the compensated pump valve opening times for CH01, CH02, and CH05 are 0.5 seconds, 0.2 seconds, and 0 seconds, respectively. See [link to relevant documentation]. Figure 3 Step S32 uses a staggered start method. Figure 3 Using the unified first segment alignment time as the right-side alignment benchmark, the material channel with the estimated first segment arrival delay is opened first, and the material channel with the estimated first segment arrival delay is opened later. The compensation process is no longer described as the opening time of all pumps and valves moving forward to the time origin.

[0063] The unified staggered time compensation allows the arrival time delay difference of the first segment to be offset by the pump and valve opening time difference. However, the unified first segment alignment time only indicates that the front end of the continuous material segment has entered the mixing zone, and does not mean that the target discharge amount has all entered the mixing zone. Therefore, after the unified staggered time compensation, it is still necessary to continue to calculate the expected complete discharge end time of each material channel. Formal mixing is not started directly at the unified first segment alignment time.

[0064] S33: When the strategy selection flag is set to batch staggered compensation flag, determine the first segment alignment time of each batch and the compensation pump valve opening time of each material channel according to the candidate material feeding batch, and determine the pre-mixing start time.

[0065] The staggered arrival time compensation retains the time interval between the first arrival segments of different candidate material batches, but the first arrival segment alignment is still performed within the same candidate material batch. The staggered arrival time compensation is not because uniform alignment is impossible, but because it uses the original conveying time delay difference to generate a pre-stirring time period, so that low-viscosity materials form a continuous flow state before high-viscosity materials enter. In order to avoid the agitator running dry when the liquid level in the cup is too low, the pre-stirring start time is also constrained by the pre-stirring start liquid level.

[0066] Further, step S33 includes: S331: The candidate material dropping batch generated in step S31 is determined as the material dropping batch, and the first segment alignment time of the corresponding batch is determined by the upper limit of the estimated first segment arrival delay in each material dropping batch.

[0067] Specifically, the first batch of blanking includes CH01 and CH05, with the first segment of the batch aligned at 1.1 seconds; the second batch of blanking includes CH09 and CH12, with the first segment of the batch aligned at 2.5 seconds; and the third batch of blanking includes CH14, with the first segment of the batch aligned at 3.2 seconds. See also Figure 4 The material feeding batches are distributed along the estimated arrival time of the first segment. The material channels within the same feeding batch are subsequently aligned to the alignment time of the first segment of the corresponding batch by staggered opening. The time interval between the alignment times of the first segment of different feeding batches is maintained.

[0068] S332: Calculate the compensated pump valve opening time for each material channel based on the difference between the alignment time of the first segment of the batch to which each material channel belongs and the estimated arrival time delay of the first segment.

[0069] Specifically, the compensated pump valve opening time of the current material channel is equal to the batch first segment alignment time of the current material channel's feeding batch minus the estimated arrival delay of the first segment of the current material channel. For example, in the first feeding batch, the compensated pump valve opening time for CH01 is 0.5 seconds, and for CH05 it is 0 seconds; in the second feeding batch, for CH09 it is 0.5 seconds, and for CH12 it is 0 seconds; and in the third feeding batch, for CH14 it is 0 seconds. The control board uses the same output start time as the time origin, therefore the compensated pump valve opening times of the three feeding batches can be directly written into the same control instruction queue.

[0070] S333: Determine the candidate pre-stirring start time obtained in step S31 as the pre-stirring start time, and generate the pre-stirring control command start parameters based on the pre-stirring start time and the pre-stirring speed.

[0071] Specifically, the batch staggered timing compensation uses the candidate pre-mixing start time calculated in step S31 under the candidate material dropping batch conditions. The candidate material dropping batch is directly determined as the dropping batch in step S331, and the alignment time of the first segment of the candidate batch is consistent with the alignment time of the first segment of the batch. Therefore, the candidate pre-mixing start time calculated in step S31 based on the arrival process of the first segment of the batch can be directly used as the pre-mixing start time. For example, the pre-mixing start time is 1.77 seconds.

[0072] The pre-stirring speed is the one determined in step S31. The control mainboard writes the pre-stirring start time and pre-stirring speed into the pre-stirring control command start parameters.

[0073] Batch staggered timing compensation and low-speed pre-mixing form two complementary control conditions. If only batch staggered timing compensation is implemented without low-speed pre-mixing, the first batch of material entering the cup remains stationary, and subsequent batches of high-viscosity material tend to accumulate locally at the bottom of the cup. If only low-speed pre-mixing is implemented without retaining the time interval between the first arrivals of each batch, all materials enter the mixing zone simultaneously, and the pre-mixing stage lacks an independent time interval. Batch staggered timing compensation retains the time interval between the first arrivals, and low-speed pre-mixing converts this time interval into a continuous flow stage within the cup. With these two conditions combined, high-viscosity material enters into an already moving liquid, and the material distribution before formal mixing begins differs from the stationary waiting state.

[0074] S34: Calculate the expected complete material discharge end time of each material channel based on the compensated pump valve opening time, the estimated first-stage arrival delay, and the pump valve running time, determine the formal stirring start time, and generate the compensated pump valve control command sequence and the staged stirring control command set.

[0075] Step S34 corrects the time allocation problem caused by starting formal mixing solely based on the arrival time of the first stage. After the pump valve starts operating, the first stage of material reaches the mixing area through the conveying pipeline, and the pump valve will continue to operate for a period of time according to the target discharge rate. If formal mixing starts directly from the arrival time of the first stage of the last batch, the subsequent part of the last batch of material will continue to enter during the formal mixing operation, and the actual time that the last stage of material participates in formal mixing is shorter than the mixing time specified in the formula. Therefore, the start time of formal mixing is now determined jointly by the expected complete discharge end time of all material channels.

[0076] Further, step S34 includes: S341: Calculate the estimated arrival time of the first segment, the pump valve closing time, and the expected completion time of material discharge for each material channel.

[0077] Specifically, the estimated arrival time of the first segment of the current material channel is equal to the compensated pump valve opening time plus the estimated arrival delay of the first segment. The closing time of the pump valve in the current material channel is equal to the compensated pump valve opening time plus the pump valve running time. The estimated end time of the complete material discharge in the current material channel is equal to the estimated arrival time of the first segment plus the pump valve running time. These calculation relationships indicate that the entire continuous discharge interval reaches the mixing zone after the estimated arrival delay of the first segment. The arrival time of the first segment determines the starting point of the continuous discharge interval, and the pump valve running time determines the duration of the continuous discharge interval.

[0078] For example, under the staggered timing compensation condition, the estimated arrival time of the first stage of CH01 is 1.1 seconds, the pump and valve running time is 4.0 seconds, and the estimated completion time of the entire material discharge is 5.1 seconds; CH05 is 1.1 seconds plus 3.0 seconds equals 4.1 seconds; CH09 is 2.5 seconds plus 3.0 seconds equals 5.5 seconds; CH12 is 2.5 seconds plus 3.0 seconds equals 5.5 seconds; CH14 is 3.2 seconds plus 4.0 seconds equals 7.2 seconds. CH14 only completes the first stage arrival at 3.2 seconds, and the continuous material segment corresponding to the target discharge amount of CH14 is expected to enter the mixing zone at 7.2 seconds. Therefore, 3.2 seconds is no longer set as the formal mixing start time.

[0079] S342: Select the upper limit of the time value from the expected complete material discharge end time of each material channel as the formal stirring start time, and generate formal stirring control command based on the formal stirring start time, formal stirring speed and stirring duration.

[0080] Specifically, the mainboard traverses all estimated complete material discharge end times, records the upper limit of the time value, and determines the upper limit of the time value as the formal mixing start time. The formal mixing speed and mixing duration are read from the formula parameter parsing results generated in step S1. For example, the estimated complete material discharge end times for the five material channels are 5.1 seconds, 4.1 seconds, 5.5 seconds, 5.5 seconds, and 7.2 seconds, respectively, and the formal mixing start time is taken as 7.2 seconds. When the formal mixing speed is 1000 rpm and the mixing duration is 4 seconds, the formal mixing end time is 11.2 seconds.

[0081] Once the start time of formal mixing is determined based on the upper limit of the expected end time of complete material discharge, the target discharge amount for each material channel participating in this formula is expected to enter the mixing area before the formal mixing starts. Taking CH14 as an example, the last material entering CH14 can still undergo 4 seconds of formal mixing from 7.2 seconds to 11.2 seconds, eliminating the timing contradiction of the last material entering the cup only after the formal mixing ends.

[0082] S343: Generate a sequence of compensated pump valve control commands based on the material channel identifier, the compensated pump valve opening time, and the pump valve closing time.

[0083] Specifically, the control board assembles the material channel identifier, the compensated pump valve opening time, and the pump valve closing time into a pump valve control record, and generates pump valve opening and closing commands according to the execution time. For example, under batch staggered time compensation conditions, CH05, CH12, and CH14 open at 0 seconds, CH01 and CH09 open at 0.5 seconds; CH05 and CH12 close at 3.0 seconds, CH09 closes at 3.5 seconds, CH14 closes at 4.0 seconds, and CH01 closes at 4.5 seconds.

[0084] S344: Generate a staged mixing control instruction set based on the strategy selection identifier, the pre-mixing control instruction start parameters, and the formal mixing control instruction.

[0085] Specifically, when the strategy selection flag is set to "Unified Time-Staggered Compensation," the phased mixing control instruction set only includes the formal mixing control instruction. Formal mixing starts after all material channels have completed the expected full material discharge. When the strategy selection flag is set to "Batch Time-Staggered Compensation," the control board determines the time difference between the pre-mixing start time and the formal mixing start time as the pre-mixing runtime. It then generates pre-mixing control instructions based on the pre-mixing start time, pre-mixing speed, and pre-mixing runtime. These pre-mixing control instructions are then combined with the formal mixing control instructions according to their execution times to form the phased mixing control instruction set. The mixing motor performs speed switching at the formal mixing start time, but does not perform a stop-and-start operation.

[0086] See Figure 5The timeline of the phased mixing control command set simultaneously marks the batch first-segment alignment time of each material feeding batch, the expected complete feeding end time of each material channel, the pre-mixing start time, and the formal mixing start time. The batch first-segment alignment time of the last material feeding batch only indicates that the last batch of material has begun to enter the mixing area, and the formal mixing start time is located after the expected complete feeding end time. Thus, the pre-mixing stage is responsible for maintaining the flow of the first arriving material and for continuous mixing during the arrival of subsequent materials, while the formal mixing stage is responsible for mixing for the formula-specified duration after all target materials have arrived. The time boundaries of the two stages are determined by different physical events.

[0087] S4: Using the start time of product output as a unified time origin, the compensated pump valve control instruction sequence and the staged stirring control instruction set are written into the product output instruction queue. The control motherboard controls the pump valve actuator and stirring motor drive module according to the execution time of the product output instruction queue.

[0088] The compensated pump and valve control command sequence and the staged stirring control command set include pump and valve opening, pump and valve closing, pre-stirring start, formal stirring speed switching, and stirring stop actions distributed on the same time axis. If the pump and valve control and stirring control use independent timing start points, the deviation between the timing start points will directly change the relative position between the arrival of the first segment of the batch and the stirring speed switching. Step S4 uses the same timing reference to schedule all actions, so that the timing relationship obtained in step S3 is directly converted into the timing of the actuator actions.

[0089] Further, step S4 includes: S41: Write the compensated pump valve control instruction sequence and the staged stirring control instruction set into the output instruction queue according to the execution time.

[0090] Specifically, the dispensing start time is the moment when the cup position detection module detects the cup in place and, after a 20-millisecond period of valid determination, the control motherboard starts a millisecond timer. The dispensing instruction queue uses a record sequence arranged in ascending order of execution time. The record fields include execution time, instruction type, and instruction parameters. Instruction types include pump valve open, pump valve close, stirring start, stirring speed switch, stirring stop, and heating setting. The internal comparison step of the control motherboard timer is 10 milliseconds, and the instruction transmission interval of the actuator control bus is 50 milliseconds. These two time parameters are used for time determination and bus transmission scheduling, respectively.

[0091] See Figure 6The control board writes pump and valve start commands, pump and valve stop commands, pre-stirring control commands, formal stirring control commands, and heating setting commands generated based on the formula temperature field into the product output command queue according to their execution times. Commands with the same execution time and subject to a 50-millisecond bus transmission interval are arranged according to the following rules: pump and valve commands take priority, stirring commands follow, and commands of the same type are arranged in alphabetical order by material channel identifier. For two or more pump and valve actuators that need to operate simultaneously within the same control cycle, the control board first generates bitmap-style channel drive parameters and sends the status of two or more channels in one bus frame to avoid additional time differences caused by sending channels one by one.

[0092] S42: The main control board executes pump valve opening and closing commands sequentially according to the output command queue, driving the corresponding material channel to complete the target output.

[0093] Specifically, the control board compares the current timing value with the execution time of the first pending record in the output instruction queue every 10 milliseconds during a timer interrupt. When the current timing value is not less than the execution time and the instruction type is pump valve open or pump valve close, the control board reads the material channel identifier and outputs the corresponding drive status via the internal control bus. The pump valve open instruction causes the corresponding pump and valve body to enter the discharge state, and the pump valve close instruction stops the corresponding pump and resets the valve body.

[0094] S43: When the output instruction queue reaches the pre-mixing start time, the control motherboard sends the pre-mixing speed setpoint to the mixing motor drive module, so that the mixing motor runs at the pre-mixing speed until the formal mixing start time.

[0095] Specifically, the control motherboard reads the pre-stirring speed from the stirring start command, converts the pre-stirring speed into a speed setpoint used by the stirring motor drive module, and sends it via the communication interface. The stirring motor drive module outputs a drive current according to the speed setpoint, keeping the stirring motor at the pre-stirring speed. In the batch staggered time compensation example, the pre-stirring stage starts at 1.77 seconds and lasts until the formal stirring start time at 7.2 seconds, with a pre-stirring runtime of 5.43 seconds.

[0096] S44: When the output instruction queue reaches the formal mixing start time, the control motherboard switches the mixing motor speed to the formal mixing speed, and stops the mixing motor at the moment corresponding to the mixing duration at the formal mixing start time.

[0097] Specifically, the control motherboard reads the stirring speed switching command and sends the actual stirring speed to the stirring motor drive module. The stirring motor drive module then switches the stirring motor from the pre-stirring speed to the actual stirring speed without stopping the machine. When the strategy selection flag is set to unified time-off compensation, the control motherboard directly sends a stirring start command and sets the actual stirring speed at the start of the actual stirring process. At the end of the actual stirring process, the control motherboard reads the stirring stop command, and the stirring motor drive module stops outputting drive current.

[0098] For example, when using staggered batch compensation, the output instruction queue includes: CH05, CH12, and CH14 starting at 0 milliseconds; CH01 and CH09 starting at 500 milliseconds; the stirring motor starting pre-mixing at 300 rpm at 1770 milliseconds; CH05 and CH12 stopping at 3000 milliseconds; CH09 stopping at 3500 milliseconds; CH14 stopping at 4000 milliseconds; CH01 stopping at 4500 milliseconds; the stirring motor switching to 1000 rpm at 7200 milliseconds; and stirring stopping at 11200 milliseconds. Compared to the original control method that directly used the arrival time of the first segment of the last batch at 3200 milliseconds as the formal stirring start time, this embodiment moves the formal stirring start boundary to the moment when all target outputs are expected to enter the mixing zone, so that the 4-second formal stirring specified in the formula applies to all target materials.

[0099] The output instruction queue expresses the staggered start of the first segment, inter-batch pre-mixing, complete material discharge judgment, and formal mixing control as execution records at the same time origin. When the formula changes, the number of material channels changes, or the material fluid state level changes, the control board only needs to regenerate the output instruction queue, without changing the reading and sending process of the actuator layer. Thus, changes in channel timing parameters are limited to the instruction generation stage, and the pump valve actuator and the stirring motor drive module still complete the control actions according to the unified queue.

[0100] Example 2: This embodiment provides a system for parsing recipe parameters to generate production instructions, based on Embodiment 1. (See [link]). Figure 7 It includes a parameter parsing module, a timing parameter generation module, a timing compensation module, and an instruction scheduling module.

[0101] The parameter parsing module is used to obtain order instructions through the barcode recognition module, perform field parsing, material code channel mapping and target output calculation on the order instructions, and generate formula parameter parsing results.

[0102] The timing parameter generation module is used to query the material fluid characteristic table based on the material type in the formula parameter analysis results, read the current temperature detection value of the corresponding cold cabinet passage based on the material channel identifier, and generate the material fluid state level. The timing parameter generation module is also used to query the channel material drop time comparison table by combining the material channel identifier and the material fluid state level, obtain the estimated first stage arrival delay, and calculate the pump valve running time based on the target discharge amount and the channel discharge rate, and generate the channel material drop timing parameter table.

[0103] The timing compensation module is used to divide the channel material feeding timing parameter table into candidate feeding batches according to the preset batch alignment window threshold, calculate the candidate pre-mixing start time and candidate effective pre-mixing duration, and generate a strategy selection identifier based on the comparison result between the candidate effective pre-mixing duration and the pre-mixing establishment duration threshold. Under the unified staggered time compensation condition, the timing compensation module determines the unified first-segment alignment time and the compensated pump valve opening time of each material channel. Under the batch staggered time compensation condition, it determines the batch first-segment alignment time, the compensated pump valve opening time of each material channel, and the pre-mixing start time. The timing compensation module is also used to calculate the expected complete feeding end time based on the compensated pump valve opening time, the estimated first-segment arrival delay, and the pump valve running time, and determine the formal mixing start time based on the upper limit of the time value among all expected complete feeding end times.

[0104] The instruction scheduling module generates a compensated pump valve control instruction sequence based on the compensated pump valve opening and closing times. It also generates a staged mixing control instruction set based on the pre-mixing start time, pre-mixing speed, formal mixing start time, formal mixing speed, and mixing duration. Using the product discharge start time as a unified time origin, the compensated pump valve control instruction sequence and the staged mixing control instruction set are written into the product discharge instruction queue. The main control board outputs control signals to the pump valve actuators and the mixing motor drive module according to the execution times of the product discharge instruction queue, enabling staggered material discharge from each material channel and sequential pre-mixing and formal mixing by the mixing motor.

Claims

1. A multi-actuator timing control method based on recipe parameter analysis, characterized in that, include: Obtain the control parameters for the task to be executed, and generate formula parameter parsing results including material channel identifiers and target output quantities; By referring to the material channel identification and material fluid state level, the estimated arrival time delay of the first segment of each material channel is obtained from the channel drop time comparison table, and the pump valve running time is determined according to the target output. Based on the estimated arrival time delay of the first segment, candidate material feeding batches are divided. According to the effective pre-mixing time corresponding to the candidate material feeding batch, a unified staggered time compensation strategy or a batch staggered time compensation strategy is selected to determine the pump valve opening time after compensation for each material channel. The expected complete material discharge end time of each material channel is determined based on the compensated pump valve opening time, the estimated first-stage arrival delay, and the pump valve running time, and the formal stirring start time is determined based on the expected complete material discharge end time. Pump valve control commands and stirring control commands are generated and written into the control command queue according to the execution time. The pump valve actuator and stirring actuator are controlled according to the control command queue.

2. The multi-actuator timing control method based on recipe parameter analysis according to claim 1, characterized in that, The process of obtaining the control parameters for the task to be executed includes: The machine-readable code used to carry task information is read by the barcode scanning and recognition module, and the machine-readable code is decoded to obtain structured data. The structured data is transmitted to the control motherboard via a communication interface, and integrity verification is performed on the verification field in the structured data. When the integrity verification passes, the structured data is written to the parsing cache, and the control motherboard extracts the control parameters used to control the material supply process and the stirring process from the structured data.

3. The multi-actuator timing control method based on recipe parameter analysis according to claim 2, characterized in that, The generated formula parameter parsing results include: Extract the proportioning adjustment parameters, temperature parameters, stirring time parameters, formal stirring speed parameters, and material list from the control parameters; The bill of materials is traversed to obtain the material codes and corresponding target output quantities. The material code channel mapping table is queried according to the material codes to obtain the corresponding material channel identifier and material type. For materials whose target output is affected by the proportioning adjustment parameters, the target output shall be re-determined based on the proportioning adjustment parameters and the corresponding baseline output parameters; The material channel identifier, material type, target output quantity, and corresponding control parameters are organized into structured data objects to generate the formula parameter parsing results.

4. The multi-actuator timing control method based on recipe parameter analysis according to claim 1, characterized in that, The determination of the material fluid state level includes: Based on the material type in the formula parameter analysis results, query the material fluid property table to obtain the material viscosity grade; Based on the correspondence between material channel identifiers and storage areas, obtain the current temperature detection value of the corresponding storage area, and determine the material temperature level according to the temperature range mapping relationship; The material viscosity grade and material temperature grade corresponding to the same material channel are combined to form the material fluid state grade.

5. The multi-actuator timing control method based on recipe parameter analysis according to claim 4, characterized in that, The channel material feeding time comparison table includes: The material channel identifier is used as the first index dimension, and the material fluid state level, which is composed of the material viscosity level and the material temperature level, is used as the second index dimension. The estimated arrival time of the first segment is stored in the table entries corresponding to each index combination. The estimated first-stage arrival delay characterizes the estimated timing response time between the start of the discharge action of the corresponding pump valve actuator and the first-stage arrival of the corresponding material in the target mixing area. Different material channels correspond to independent estimated first-segment arrival delays under the same material fluid state level.

6. The multi-actuator timing control method based on recipe parameter analysis according to claim 5, characterized in that, This also includes online correction of the aforementioned channel material feeding time reference table: Obtain the actual pump valve opening time of the target material channel and the actual first arrival time of the corresponding material in the target mixing area, and determine the measured first arrival time delay based on the time difference between the two. Based on the measured arrival delay of the first segment and the original estimated arrival delay of the first segment in the corresponding table entry, the corrected estimated arrival delay of the first segment is determined according to the recursive update rule and written into the table entry jointly determined by the material channel identifier of the target material channel and the current material fluid state level. When the current test result cannot uniquely determine the material channel identifier corresponding to the actual first material arriving, stop using the current test result to update the corresponding table entry.

7. The multi-actuator timing control method based on recipe parameter analysis according to claim 1, characterized in that, The process of dividing candidate material receiving batches and selecting a unified staggered time compensation strategy or a batch staggered time compensation strategy includes: The material channels are sorted according to the estimated arrival time of the first segment; Using the minimum estimated first segment arrival delay in the currently undivided material channels as the starting point of the current window, material channels whose estimated first segment arrival delay falls within the time range formed by the sum of the current window starting point and the preset batch alignment window threshold are classified into the same candidate material dropping batch, and the remaining material channels are repeatedly divided. The alignment time of the first segment of each candidate batch is determined based on the upper limit of the estimated arrival time of the first segment in each candidate material feeding batch. The expected material arrival amount of the target stirring area is calculated based on the first segment alignment time of each candidate batch, the channel discharge rate and the pump valve running time. The moment when the expected material arrival amount first reaches the preset pre-stirring start liquid volume is determined as the candidate pre-stirring start time. The time difference between the alignment time of the first segment of the last candidate material feeding batch and the start time of the candidate pre-mixing is determined as the effective pre-mixing time. When the number of candidate material feeding batches is 1 or the effective pre-mixing time is less than the pre-mixing establishment time threshold, a unified staggered time compensation strategy is selected; when the number of candidate material feeding batches is greater than 1 and the effective pre-mixing time is greater than or equal to the pre-mixing establishment time threshold, a batch staggered time compensation strategy is selected.

8. The multi-actuator timing control method based on recipe parameter analysis according to claim 7, characterized in that, The unified time-off compensation strategy includes: The unified first segment alignment time is determined based on the upper limit of the estimated first segment arrival time of each material channel; The difference between the unified first segment alignment time and the estimated first segment arrival time corresponding to the current material channel is determined as the compensated pump valve opening time of the current material channel, so that the estimated first segment arrival time of the material corresponding to each material channel is equal to the unified first segment alignment time.

9. The multi-actuator timing control method based on recipe parameter analysis according to claim 7, characterized in that, The batch staggered time compensation strategy includes: The candidate unloading batches are determined as unloading batches, and the first segment alignment time of each candidate unloading batch is determined as the first segment alignment time of the corresponding unloading batch. The difference between the alignment time of the first segment of the current material channel and the estimated arrival time of the first segment of the current material channel is determined as the opening time of the pump valve after compensation, so that the estimated arrival time of the first segment of the material in each material channel within the same material channel is equal to the alignment time of the first segment of the corresponding batch. The candidate pre-stirring start time is determined as the pre-stirring start time, and a pre-stirring control command is generated based on the pre-stirring start time and a pre-stirring speed lower than the formal stirring speed.

10. The multi-actuator timing control method based on recipe parameter analysis according to claim 8 or 9, characterized in that, The determination of the expected end time of complete material discharge and the start time of formal mixing includes: The sum of the compensated pump valve opening time of the current material channel and the estimated first-stage arrival time delay is determined as the estimated first-stage arrival time of the current material channel. The pump valve running time is determined based on the ratio of the target discharge volume of the current material channel to the corresponding discharge rate. The sum of the estimated arrival time of the first segment and the pump valve running time is determined as the estimated complete discharge end time of the current material channel. Select the upper limit of the time value from the expected complete material discharge end time of all material channels, and determine the upper limit of the time value as the formal stirring start time; Generate formal stirring control commands based on the formal stirring start time, formal stirring speed, and stirring duration; When selecting a staggered timing compensation strategy, the time difference between the formal stirring start time and the pre-stirring start time is determined as the pre-stirring running time, and the pre-stirring control command and the formal stirring control command are combined into a staged stirring control command set according to the execution time.

11. The multi-actuator timing control method based on recipe parameter analysis according to claim 10, characterized in that, The generation of pump valve control commands and stirring control commands and their writing into the control command queue includes: The pump valve closing time is determined based on the compensated pump valve opening time and pump valve running time of each material channel, and pump valve control commands are generated based on the material channel identifier, the compensated pump valve opening time, and the pump valve closing time. The moment when the cup position detection signal meets the preset valid conditions and the timer of the main board is started is taken as the start time of product output. The pump valve control command and the stirring control command are written into the same control command queue according to the execution time relative to the start time of product output. The control board reads the control command queue based on a unified timing benchmark and outputs control signals to the corresponding pump valve actuator or stirring actuator according to the command type.

12. A multi-actuator timing control system based on recipe parameter analysis, characterized in that, include: The parameter parsing module is used to obtain the control parameters of the task to be executed and generate the formula parameter parsing results; The timing parameter generation module is used to obtain the estimated arrival time delay of the first stage based on the material channel identifier and the material fluid state level, and to determine the pump valve running time based on the target output. The timing compensation module is used to divide candidate material feeding batches based on the estimated arrival delay of the first segment, select a unified staggered time compensation strategy or a batch staggered time compensation strategy according to the effective pre-mixing time, determine the pump valve opening time after compensation for each material channel, and determine the expected complete material feeding end time and formal mixing start time based on the pump valve opening time after compensation, the estimated arrival delay of the first segment and the pump valve running time. The instruction scheduling module is used to generate pump and valve control instructions and stirring control instructions and write them into the control instruction queue according to the execution time, and control the pump and valve actuators and stirring actuators according to the control instruction queue.