An automatic dye feeding method and system for dye vats
By using dynamic assessment and temperature correction models of dye pipeline residues, the problem of color cross-contamination caused by dye pipeline residues was solved, enabling precise cleaning and efficient production, and improving the automation level and dyeing quality of printing and dyeing production.
Patent Information
- Application Number
- CN202611235614.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-14
- Publication Date
- 2026-11-10
AI Technical Summary
In dyeing and printing production, dye residue in pipelines leads to cross-contamination of colors. Existing cleaning strategies cannot be dynamically adjusted, resulting in insufficient cleaning or waste of resources. Furthermore, task scheduling does not take into account the risk of color contamination, making it difficult to balance dyeing quality, production efficiency, and water conservation.
By dynamically evaluating the turbidity characteristics at the end of the evacuation period and the pipe-dye adsorption correction coefficient, combined with a temperature-corrected natural dredging model, accurate prediction of dye residue and cleaning decisions are achieved. A closed-loop mechanism for residue identification, task scheduling and cleaning control is constructed to optimize the dye feeding process in the dyeing vat.
It enables accurate prediction and dynamic cleaning of dye pipeline residues, reduces the risk of color cross-contamination, improves production efficiency and automation, and reduces unnecessary cleaning processes and water waste.
Smart Images

Figure CN123067386A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of automated control in dyeing and finishing production, and in particular to a method and system for automatic dye feeding into dyeing vats. Background Technology
[0002] In dyeing and printing production, multiple dyeing vats usually share a main feed pipe to transport dye. When switching between different color batches, the dye remaining on the inner wall of the pipe can easily cause cross-contamination of colors in subsequent batches, directly affecting the quality stability of the dyed finished products.
[0003] Existing color-changing cleaning methods mostly adopt a fixed-duration water flow rinsing mode, which cannot dynamically adjust the cleaning intensity according to the actual residual state of the pipeline, the dye adsorption characteristics, and the color tolerance of the next batch. This often results in insufficient cleaning leading to color difference defects, or excessive cleaning causing water waste and production time loss. At the same time, the scheduling of multiple dyeing batches is not optimized in combination with the risk of color contamination. Adjacent tasks with high contamination risk further increase the cleaning burden and scheduling difficulty, making it difficult to simultaneously meet the needs of dyeing quality, production efficiency, and water conservation. Summary of the Invention
[0004] To address the technical problems of extensive pipeline residue assessment, rigid cleaning strategies, and unsuitable task scheduling for color contamination risks in existing dye feeding processes, which lead to significant cross-contamination risks and low cleaning efficiency, this application provides an automatic dye feeding method and system for dyeing vats.
[0005] In a first aspect, this application provides an automatic dye feeding method for a dye vat, comprising: Based on the original turbidity sequence of the evacuation process, the material identifier of the main feed pipe, and the dye type identifier, the initial residual concentration, residual color category identifier, and residual reference hue angle are obtained, and the workshop ambient temperature is acquired. Based on the target color category identifier, target hue angle, and time constraints of each task in the set of dyeing vats to be scheduled, an optimized operation execution sequence is obtained, determining the next dyeing vat task to be served, the waiting time, and the remaining cleaning time. Based on the residual color category identifier, the residual reference hue angle, and the target color category identifier and target hue angle of the next dyeing vat task to be served, the permissible residual concentration threshold is determined. Based on the material identifier of the main feed pipe, the dye type identifier, and the... The initial residual concentration is used to obtain the effective irreversible adsorption residual concentration. A predicted residual concentration is obtained based on the initial residual concentration, the workshop ambient temperature, the waiting time, and the effective irreversible adsorption residual concentration. Feeding is permitted when the predicted residual concentration is not greater than the allowable residual concentration threshold. When the predicted residual concentration is greater than the allowable residual concentration threshold and the allowable residual concentration threshold is higher than the effective irreversible adsorption residual concentration, a minimum cleaning time is obtained. Active water flow cleaning is performed when the remaining cleaning time is not less than the minimum cleaning time; otherwise, rescheduling is performed. Feeding is stopped when the allowable residual concentration threshold is not higher than the effective irreversible adsorption residual concentration.
[0006] Optionally, the basic adsorption correction coefficient for pipe and dye is read based on the material identification and dye type identification of the main supply pipeline; the unlimited adsorption correction coefficient is calculated by combining the relative deviation ratio of the turbidity decrease rate and the reference decrease rate; the effective adsorption correction coefficient is obtained after upper and lower limits are applied to the unlimited adsorption correction coefficient; the original turbidity sequence is filtered to obtain a smooth turbidity sequence; the final stage of venting is determined based on the smooth turbidity sequence; the average turbidity and turbidity decrease rate of the residual liquid at the final stage of venting are obtained based on the smooth turbidity sequence within the final stage of venting; the basic adsorption correction coefficient is obtained based on the material identification and dye type identification of the main supply pipeline; the basic adsorption correction coefficient is corrected based on the relative deviation of the turbidity decrease rate and the reference decrease rate; the correction result is limited to obtain the effective adsorption correction coefficient; the effective adsorption correction coefficient is incremented by one to obtain the adsorption correction ratio; the initial residual concentration is obtained by multiplying the turbidity-concentration conversion coefficient, the average turbidity of the residual liquid at the final stage of venting, and the adsorption correction ratio.
[0007] Optionally, the shortest arc distance of the hue angle is obtained based on the target hue angle of any two colored tasks, and the hue difference is obtained based on the shortest arc distance of the hue angle; a sensitive hue interval threshold is determined based on all the hue differences; for each adjacent task pair in each candidate task arrangement, the cleaning cost is determined based on the target color category identifier, hue difference, and sensitive hue interval threshold of the adjacent task pair; the task arrangement fitness of the candidate task arrangement is obtained based on the cleaning cost of each adjacent task pair and the time constraint of each task; the candidate task arrangement is iteratively updated using a genetic algorithm to obtain the optimized job execution sequence with the highest task arrangement fitness and satisfying the time constraint.
[0008] Optionally, when both the residual and target color categories are chromatic, the hue deviation between the residual reference hue angle and the target hue angle is calculated, and the hue deviation is continuously mapped to the minimum allowable concentration and the maximum allowable concentration to obtain the allowable residual concentration threshold; when the residual or target color category is achromatic, the allowable residual concentration threshold is directly set to the minimum allowable concentration.
[0009] Optionally, the effective decay time constant is calculated based on the baseline draining time constant, temperature compensation coefficient, and reference temperature of the corresponding pipe and dye combination, combined with the current workshop ambient temperature; the smaller value between the calibrated irreversible adsorption residual concentration and the initial residual concentration is taken as the effective irreversible adsorption residual concentration; based on the exponential decay model, the difference between the initial residual concentration and the effective irreversible adsorption residual concentration is taken as the drainable part, and the predicted residual concentration is calculated by combining the waiting time and the effective decay time constant.
[0010] Optionally, a cleaning attenuation model is used to describe the relationship between cleaning time and residual concentration after cleaning. The residual concentration after cleaning is set to be equal to the allowable residual concentration threshold, and the minimum cleaning time to meet the cleaning requirements is calculated. The cleaning attenuation model takes the difference between the predicted residual concentration and the effective irreversible adsorption residual concentration as the rinseable residual part, and the cleaning equivalent attenuation time constant as the cleaning attenuation rate parameter.
[0011] Optionally, after starting active water flow cleaning, the turbidity of the cleaning effluent is collected according to the same sampling and filtering parameters as the emptying stage; when all smooth turbidity during the continuous and stable confirmation period is lower than the cleaning confirmation turbidity threshold, the cleaning is terminated in advance; when the cumulative cleaning time reaches the cleaning timeout judgment time and the condition is still not met, the cleaning is stopped and an abnormal alarm is output.
[0012] Optionally, a safety replacement flush is performed on the main feed line to remove any remaining dye that can flow within it; after the safety replacement flush is completed, the feed is stopped, and a deep cleaning prompt or a main feed line replacement prompt is output.
[0013] Secondly, this application provides an automatic dye feeding system for a dyeing vat, including a processor and a memory. The memory stores computer program instructions, which, when executed by the processor, implement the aforementioned automatic dye feeding method for a dyeing vat.
[0014] This application has the following technical effects: 1. Based on the dynamic change characteristics of turbidity at the end of the drainage period, combined with the adsorption correction coefficient of pipe material-dye matching, it covers both liquid phase residue and pipe wall adsorption residue; the temperature-corrected natural dripping decay model is introduced, which can accurately predict the pipeline residual concentration after waiting, providing a quantitative basis for cleaning decisions and effectively avoiding insufficient cleaning or water waste caused by experience-based cleaning.
[0015] 2. Based on the continuous mapping of hue deviation to allowable residual concentration threshold, the pollution tolerance of different colors is matched; combined with the task scheduling optimization of color isolation and time constraints, the probability of adjacent high pollution risk tasks is reduced, unnecessary cleaning processes are reduced while ensuring dyeing quality, and the overall production efficiency of multi-task is improved.
[0016] 3. Construct a closed-loop control mechanism for residue identification, task scheduling, residue prediction, cleaning control, and scheduling updates. Based on different relationships between residue concentration and allowable threshold, implement graded feeding, active cleaning, rescheduling, or deep maintenance prompts. This can flexibly adapt to complex production conditions and improve the automation level of the feeding process and the batch dyeing qualification rate. Attached Figure Description
[0017] Figure 1 This is a flowchart of a method for automatically feeding dye into a dyeing vat. Detailed Implementation
[0018] This application discloses an automatic dye feeding method for dye vats, referring to... Figure 1 ,include: Step S1: Based on the original turbidity sequence of the evacuation process, the material identification of the main feed pipe, and the dye type identification, obtain the initial residual concentration, residual color category identification, and residual reference color hue angle, and obtain the workshop ambient temperature.
[0019] After a dyeing vat completes its feeding, the controller switches the main feeding pipeline to venting mode, allowing the residual flowing dye liquor in the main feeding pipeline to be discharged from the end by gravity or compressed air. The controller uses an online turbidity sensor to continuously collect turbidity signals during the venting process, and uses the stability and rate of decrease of turbidity at the end of the venting period to characterize the discharge of residual dye liquor and the shedding of dye adhering to the pipe wall.
[0020] An online turbidity sensor collects the raw turbidity sequence according to the sampling frequency and inputs the raw turbidity sequence into a first-order low-pass digital filter to obtain a smoothed turbidity sequence. The first-order low-pass digital filter is used to suppress bubbles, fiber impurities, and instantaneous fluctuations of the online turbidity sensor. The controller multiplies the current raw turbidity by the filter coefficient, multiplies the smoothed turbidity at the previous sampling time by the difference obtained by subtracting the filter coefficient, and adds the two products to obtain the current smoothed turbidity. The filter coefficient can be 0.3, and the selection range can be 0.1 to 0.5; the larger the filter coefficient, the faster the smoothed turbidity responds to changes in the current raw turbidity, and the smaller the filter coefficient, the stronger the ability to suppress instantaneous fluctuations. The same filter coefficient is used for venting monitoring and cleaning monitoring. The sampling frequency can be 1Hz, and the selection range can be 0.5Hz to 5Hz; the larger the sampling frequency, the stronger the resolution of short-term turbidity changes, but the larger the data volume and computational load.
[0021] The controller calculates the difference between the current smoothed turbidity and the smoothed turbidity one turbidity change rate window prior, and calculates the ratio of this difference to the length of the turbidity change rate window to obtain the current turbidity change rate. The turbidity change rate window length can be 10s, with a selection range of 5s to 30s; a larger turbidity change rate window length results in a more stable turbidity change rate but a slower response. The turbidity change rate threshold is the ratio of the minimum resolvable turbidity of the online turbidity sensor to the turbidity change rate window length; when the minimum resolvable turbidity cannot be read, the turbidity change rate threshold can be a cold start value of 0.02 NTU / s, with a selection range of 0.005 NTU / s to 0.1 NTU / s.
[0022] When the absolute value of each turbidity change rate is less than the turbidity change rate threshold during a continuous and stable confirmation period, the controller determines that the main feed pipeline has entered the final stage of venting. The stable confirmation time can be 15 seconds, with a selection range of 10 seconds to 60 seconds; the longer the stable confirmation time, the more stable the determination of the final stage of venting, but the later the confirmation. The upper limit of venting monitoring is the maximum value among the historical effective venting times of the current main feed pipeline; if there are no historical records, the upper limit of venting monitoring can be a cold start value of 180 seconds, with a selection range of 60 seconds to 600 seconds. If the stability condition is not met even after reaching the upper limit of venting monitoring, the controller continues to calculate using the data from the last turbidity statistics window before the end of venting.
[0023] To characterize the overall turbidity of the residual liquid at the end of the emptying process using multiple sample values and to reduce the impact of single-point fluctuations, the controller calculates the mean turbidity of the residual liquid at the end of the emptying process using the following formula: In the formula, This represents the average turbidity of the residual liquid at the end of the emptying process, in NTU. This indicates the number of sampled data points within the turbidity statistics window; Indicates the sampling sequence number; Indicates the sampling time corresponding to the sampling sequence number; The smoothness turbidity of the nth sample data is expressed in NTU. This indicates a summation operation. The number of sampled data points is obtained by multiplying the sampling frequency by the turbidity statistical window length.
[0024] The turbidity statistical window length can be 20 seconds, with a selection range of 10 to 60 seconds. A longer turbidity statistical window results in a more stable mean turbidity value and decreasing trend in the residual liquid at the end of the emptying process, but also a slower update of the residual state. The controller also inputs the sampling time and corresponding smoothed turbidity within the turbidity statistical window into a least-squares linear fitting algorithm, using the slope of the fitted line as the turbidity decrease rate. The least squares linear fitting algorithm takes turbidity and time data pairs as input and outputs the slope of the fitted straight line. As turbidity decreases over time, the rate of turbidity decrease is... A negative value indicates the absolute value of the rate of turbidity decrease. The larger the value, the faster the residual dye solution is discharged or the dye adhering to the tube wall is shed.
[0025] The controller reads the pipe-dye basic adsorption correction coefficient from the parameter library based on the material identification and dye type identification of the main feed pipe. Pipe-Dye Base Adsorption Correction Factor The reference descent rate was obtained through adsorption tests on the corresponding pipe material and dye combination. Absolute value of turbidity decrease rate in historical effective evacuation records using the same pipe material and dye combination The average value; when no historical data is available, refer to the rate of decline. A cold start value of 0.1 NTU / s can be used, and the selection range can be from 0.02 NTU / s to 1 NTU / s.
[0026] When the rate of decrease in secondary turbidity is higher than the historical normal, the dye adhering to the pipe wall detaches more quickly, and the adsorption correction should be reduced; when the rate of decrease in secondary turbidity is lower than the historical normal, the dye adhering to the pipe wall detaches more slowly, and the adsorption correction should be increased. Based on the above relationship, the controller calculates the unlimited adsorption correction coefficient according to the following formula: In the formula, This represents the unrestricted adsorption correction factor; Indicates the pipe-dye base adsorption correction factor; Indicates the rate correction intensity coefficient; This indicates the rate of turbidity decrease, expressed in NTU / s. The reference turbidity descent rate is expressed in NTU / s. The difference between the absolute value of the turbidity descent rate and the reference descent rate indicates the direction and magnitude of the deviation of the current descent rate from the historical reference rate, and the ratio of the difference to the reference descent rate indicates the relative deviation proportion.
[0027] Rate correction intensity coefficient The absolute value of the turbidity decrease rate in historical effective evacuation records, using the same pipe material and dye combination, is preferred. The ratio of the standard deviation to the mean provides a stronger dynamic correction for combinations with large historical fluctuations; when historical records are insufficient, the rate correction strength coefficient... A cold start value of 0.15 can be used, with a selection range of 0.05 to 0.30. Rate correction intensity coefficient. The larger the value, the greater the correction magnitude when the rate of decline deviates from the historical norm.
[0028] To prevent sensor malfunctions or fitting biases from causing adsorption correction to exceed reasonable limits, the controller adjusts the unlimited adsorption correction coefficient according to the following formula. Limiting the amplitude: In the formula, Indicates the effective adsorption correction factor; This represents the unrestricted adsorption correction factor; Indicates the pipe-dye base adsorption correction factor; This indicates the operation of taking the smaller value; This indicates the maximum value; 0.5 represents the lower limit multiplier; 2.0 represents the upper limit multiplier. The lower limit multiplier can be selected from 0.3 to 0.8, and the upper limit multiplier can be selected from 1.5 to 3.0. The wider the dynamic correction range, the stronger the adaptability to changes in actual working conditions, but the greater the impact of abnormal data.
[0029] To simultaneously account for the liquid phase residue in the final stage of evacuation and the additional residue formed by adsorption on the pipe wall, the controller calculates the initial residual concentration using the following formula: In the formula, This indicates the initial residual concentration, expressed in mg / L. This represents the turbidity-concentration conversion factor, with units of (mg / L) / NTU; This represents the average turbidity of the residual liquid at the end of the emptying process, in NTU. The value represents the effective adsorption correction factor; 1 represents the liquid phase residual reference portion. The turbidity-concentration conversion factor is determined by conventional linear regression using a standard sample of the corresponding dye at a known concentration and the turbidity of the standard sample. An increase in the mean turbidity of the residual liquid at the end of evacuation or the effective adsorption correction factor indicates an increase in the initial residual concentration.
[0030] The controller reads the residual color category identifier and residual red-green intensity component from the dye characteristic database based on the dye variety identifier. and residual yellow-blue component When the residual color category is identified as colored, the controller calculates the residual reference color hue angle according to the following formula: In the formula, This represents the residual reference hue angle, in degrees. Indicates the residual red-green hue component; Indicates the residual yellow-blue hue component; This represents the two-parameter arctangent operation; Represents pi; This represents the modulo operation; This indicates the conversion relationship from radians to angles; 360 represents the complete angle of the hue circle. The calculation maps the direction angle of the residual dye to 0 degrees to 360 degrees. When the residual color category is identified as achromatic, the controller does not calculate the residual reference hue angle.
[0031] While collecting turbidity data, the controller reads the workshop ambient temperature output by the temperature sensor. The end time of the turbidity statistical window is recorded as the reference time for the residual state. The temperature sampling time corresponds to the turbidity statistical window. Step S1 outputs the initial residual concentration. Effective adsorption correction coefficient Residual color category identifier, residual base color hue angle Workshop ambient temperature Reference time for residual state and actual evacuation time.
[0032] Step S2: Obtain the optimized job execution sequence based on the target color category identifier, target hue angle and time constraints of each task in the set of dyeing vats to be scheduled, and determine the next dyeing vat task to be served, the waiting time and the remaining cleaning time.
[0033] The controller receives material feeding requests from each dyeing vat via industrial Ethernet and maintains a dynamically updated set of dyeing vat tasks to be scheduled. Each task includes at least a task identifier, target red-green hue component, target yellow-blue hue component, target color category identifier, estimated feeding duration, earliest allowed start time, and latest allowed start time.
[0034] For tasks with a target color category identified as colored, the controller inputs the target red-green hue component and the target yellow-blue hue component into the hue angle conversion algorithm used in step S1 to obtain the target hue angle. For any two colored tasks, the controller compares the absolute difference between the two target hue angles with the value of 360 degrees minus the absolute difference, takes the smaller value as the shortest hue angle arc, and calculates the ratio of the shortest hue angle arc to 180 degrees to obtain the normalized hue isolation degree between 0 and 1. When the target color category is identified as achromatic, the target hue angle is not calculated.
[0035] The sensitive hue interval threshold is the median of the pairwise normalized hue isolation of all currently colored tasks; if there are fewer than two colored tasks, sensitive hue grading is not performed. The normalized hue isolation between two colored tasks... When the value is below the sensitive hue interval threshold, the task's cleaning cost factor... Set it to 1.0; otherwise, the task's cost factor for cleaning is reduced. The low-risk cleaning cost factor of 0.2 can be selected from 0.1 to 0.5; the larger the low-risk cleaning cost factor, the stronger the cleaning risk penalty will be for adjacent tasks with large color differences.
[0036] The genetic algorithm uses task permutation encoding, where each permutation contains all schedulable tasks, and each task appears only once. The cleaning cost penalty weights are also considered. Using the normalized hue isolation of all current colored task pairs The sum of the corresponding task and the cleaning cost factor The ratio of the sums; when there are no colored task pairs, the cleaning cost penalty weight. Set to 0. If only one of two adjacent tasks has a target color category that is achromatic, then there is a penalty for achromatic boundaries. Select 1, otherwise there is no color boundary penalty. Set to 0. For adjacent task pairs containing a non-colored task, normalize the hue isolation. and the task's cost factor for cleaning All values are set to 0, resulting in a penalty for the absence of colored boundaries. Characterizes the boundary risk of the adjacent task pairs.
[0037] To improve the normalized hue isolation of adjacent colored tasks, reduce the risk of adjacent sensitive colors, and decrease the boundary between colored and achromatic tasks, the controller calculates the task arrangement fitness according to the following formula: In the formula, Indicates the task arrangement fitness; Indicates the total number of tasks to be scheduled; Indicates the position number of adjacent task pairs; Indicates the preceding task in an adjacent task pair; Indicates the next task in an adjacent task pair; Indicates the isolation of adjacent tasks with respect to normalized hue; Indicates the weight of the cleaning cost penalty; This represents the cleaning cost factor for adjacent tasks; This indicates the penalty imposed on adjacent tasks for non-colored boundaries; This represents the summation operation. The greater the fitness of the task arrangement, the greater the benefit of the normalized hue isolation of the task arrangement, and the smaller the cleaning cost and the penalty for achromatic boundaries.
[0038] In calculating task arrangement fitness Previously, the controller verified the time feasibility of the task scheduling starting point using the residual state reference time. The estimated start time of the first task was the later of the residual state reference time and the earliest allowed start time of the first task. For the second to the last task, the controller recursively calculated the estimated start time of the task according to the following formula: In the formula, Indicates the current recursive position of the task; Indicates the estimated start time of the current task; Indicates the earliest allowed start time for the current task; Indicates the estimated start time of the previous task; This indicates the estimated material supply time for the previous task, in seconds. Indicates the actual time taken for venting, in seconds; Indicates the late operation; This indicates the task position number. The actual emptying time is based on the actual time taken from the switch of the main feed pipeline to the emptying state to the residual state in step S1. If the estimated start time of any task is later than the corresponding latest allowed start time, the corresponding task arrangement will be determined as infeasible.
[0039] The controller employs a genetic algorithm with task permutation encoding to optimize the set of tasks to be scheduled in the dyeing vat. Each permutation includes all tasks to be scheduled, and each task appears only once. The controller generates multiple permutations to form an initial population. Selection, partial matching crossover, and exchange mutation are performed based on the fitness of each permutation to update the population. Permutations that do not meet the time constraints are not selected. The population size, crossover probability, mutation probability, and maximum number of generations are determined based on the number of tasks to be scheduled and the controller's allowed scheduling computation time.
[0040] When the number of generations reaches the maximum, or when the fitness of the highest task arrangement no longer improves over multiple generations, the controller stops updating the population and determines the task arrangement with the highest fitness and satisfying the time constraint as the optimized job execution sequence. The controller determines the first task in the optimized job execution sequence as the next dyeing vat task to be served, and obtains the target color category identifier, target hue angle, and estimated start time of the next dyeing vat task to be served.
[0041] Waiting time This is the difference between the estimated start time and the reference time of the residual state. In the event of an emergency order insertion, task cancellation, or dyeing vat malfunction, step S2 is only re-executed for tasks that have not yet started; tasks that are currently feeding materials are not interrupted.
[0042] Step S3: Determine the permissible residual concentration threshold based on the residual color category identifier, the residual reference hue angle, and the target color category identifier and target hue angle of the next dyeing vat task to be serviced.
[0043] Permissible residual concentration threshold This indicates the maximum dye concentration allowed to remain in the main feed line before the next dyeing vat task begins. When the residual color category identifier or target color category identifier is achromatic, the color wheel cannot express the color relationship between the residual dye and the target color, and the controller will allow a residual concentration threshold. Determined as the minimum permissible concentration .
[0044] When both the residual color category identifier and the target color category identifier are colored, the controller compares the residual reference color phase angle. The smaller of the absolute difference between the target hue angle and 360 degrees minus the absolute difference is taken as the hue deviation. Hue deviation The range is from 0 degrees to 180 degrees. To avoid abrupt changes in the segmented threshold near the critical angle, the controller calculates the hue deviation using the following formula. Continuous mapping to the minimum permissible concentration With the maximum permissible concentration between: In the formula, This indicates the permissible residual concentration threshold, in mg / L. This indicates the minimum permissible concentration, expressed in mg / L. This indicates the maximum permissible concentration, expressed in mg / L. The value represents the hue deviation, in degrees; 180 represents the maximum and minimum arc distance on the hue circle, in degrees. When the hue deviation is 0 degrees, the permissible residual concentration threshold is equal to the minimum permissible concentration; when the hue deviation is 180 degrees, the permissible residual concentration threshold is equal to the maximum permissible concentration; the permissible residual concentration threshold increases continuously with the hue deviation within the range stated above.
[0045] Minimum allowable concentration and maximum permissible concentration Prioritize using the minimum and maximum values of actual residual concentrations from historical quality inspection records that show compliance. If no historical compliance records are available, use the minimum permissible concentration. A cold start value of 0.05 mg / L can be used, with a selection range of 0.01 mg / L to 0.5 mg / L; maximum allowable concentration. A cold start value of 5.0 mg / L can be used, with a range of 1 mg / L to 10 mg / L. Minimum allowable concentration. or maximum permissible concentration The smaller the size, the stricter the cleaning requirements for the main supply pipeline.
[0046] Step S4: Obtain the effective irreversible adsorption residual concentration based on the material identification of the main feed pipe, the dye type identification, and the initial residual concentration. Obtain the predicted residual concentration based on the initial residual concentration, workshop ambient temperature, waiting time, and effective irreversible adsorption residual concentration.
[0047] Residual dye in the main feed pipe includes a drainable portion that can continue to drain naturally during the waiting process, and an irreversible adsorbed residue that enters the micropores of the pipe wall or forms a stable adhesion that remains essentially unchanged during normal waiting. When the ambient temperature in the workshop increases, the viscosity of the dye liquor usually decreases, and the draining speed increases. Therefore, the controller uses a temperature-corrected decay time constant to predict the waiting process.
[0048] The baseline draining time constant, temperature compensation coefficient, and reference temperature are calibrated based on historical effective natural draining records of the same feed main pipeline material and dye type. The controller obtains the corresponding observed decay time constant based on the residual concentration, historical stable residual concentration, and time interval at two different times in each historical effective natural draining record, and determines the average ambient temperature of all historical effective natural draining records as the reference temperature.
[0049] The controller uses the difference between the ambient temperature and the reference temperature in each historical valid natural draining record as the temperature deviation, the temperature deviation as the independent variable, and the natural logarithm of the corresponding observed decay time constant as the dependent variable. The controller obtains the fitted line by minimizing the sum of squared residuals between each dependent variable and the corresponding values of the fitted line. The temperature compensation coefficient is obtained based on the slope of the fitted line, and the reference draining time constant is obtained based on the intercept of the fitted line.
[0050] If historical data is insufficient, the most recent valid value shall be used; if no valid value is available, the baseline draining time constant shall be used. A cold start value of 120 seconds can be used, with a selection range from 30 seconds to 600 seconds, and a temperature compensation coefficient. A cold start value of 0.05 can be used, with a selection range of 0.01 to 0.10, and a reference temperature. A cold start value of 25℃ can be used, and the selection range can be from 15℃ to 35℃.
[0051] To ensure that the time constant after temperature correction is positive, and to accelerate natural draining corresponding to temperature increases, the controller calculates the effective decay time constant according to the following formula: In the formula, Indicates the effective decay time constant, in seconds; This represents the baseline draining time constant, in seconds. Indicates the temperature compensation coefficient; This indicates the ambient temperature of the workshop, in °C. This indicates the reference temperature, in °C. This indicates an exponential operation with the natural constant as the base. When the ambient temperature in the workshop is higher than the reference temperature, the effective decay time constant decreases, indicating faster natural draining; when the ambient temperature in the workshop is lower than the reference temperature, the effective decay time constant increases, indicating slower natural draining.
[0052] The residual concentration of irreversible adsorption is calibrated using the historical average residual concentration reached after the same pipe material and dye combination has been fully air-dried or continuously rinsed with cleaning water and reached a stable state. If no historical data is available, a cold start value of 0.15 mg / L can be used, with a range of 0.01 mg / L to 1.0 mg / L. Effective irreversible adsorption residual concentration. Take the calibrated irreversible adsorption residual concentration and the initial residual concentration. The smaller value in the range is used to avoid the irreversible adsorption residue from exceeding the initial residual concentration.
[0053] To obtain an effective decay time constant and effective irreversible adsorption residual concentration Then, the controller calculates the predicted residual concentration according to the following formula: In the formula, This indicates the predicted residual concentration, in mg / L. This indicates the initial residual concentration, expressed in mg / L. Indicates the effective irreversible adsorption residual concentration, in mg / L; Indicates the waiting time, in seconds; Indicates the effective decay time constant, in seconds; This represents an exponential operation with the natural constant as the base. The difference between the initial residual concentration and the effective irreversible adsorption residual concentration represents the residual concentration at which natural drainage can continue at the start of the waiting period. As the waiting time increases, the predicted residual concentration approaches but does not fall below the effective irreversible adsorption residual concentration; with the same waiting time, the larger the effective decay time constant, the higher the predicted residual concentration.
[0054] Step S5: Allow feeding when the predicted residual concentration is not greater than the allowable residual concentration threshold; when the predicted residual concentration is greater than the allowable residual concentration threshold and the allowable residual concentration threshold is higher than the effective irreversible adsorption residual concentration, obtain the minimum cleaning time, and perform active water flow cleaning when the remaining cleaning time is not less than the minimum cleaning time, otherwise reschedule; stop feeding when the allowable residual concentration threshold is not higher than the effective irreversible adsorption residual concentration.
[0055] When predicting residual concentration Not greater than the permissible residual concentration threshold When the controller determines that natural drainage has brought the residual concentration in the main feed pipe to within the allowable range for the next dyeing tank to be serviced, it will not initiate active water flow cleaning. When the predicted residual concentration... Greater than the permissible residual concentration threshold At this point, the controller enters the cleaning judgment phase. Active water flow can accelerate the removal of washable residue, but cannot reduce the residue concentration below the effective irreversible adsorption residue concentration. .
[0056] To describe the relationship between cleaning time and residual concentration after cleaning, the controller uses the cleaning attenuation model shown in the following formula: In the formula, This indicates the residual concentration after cleaning, expressed in mg / L. This indicates the predicted residual concentration, in mg / L. Indicates the effective irreversible adsorption residual concentration, in mg / L; This indicates the cleaning time, in seconds. This represents the equivalent decay time constant for cleaning, in seconds. This represents an exponential calculation with the natural constant as the base. The difference between the predicted residual concentration and the effective irreversible adsorption residual concentration represents the residual concentration that can be further removed by continuous wash water. When the wash duration increases or the wash-equivalent decay time constant decreases, the residual concentration after wash decreases and approaches the effective irreversible adsorption residual concentration.
[0057] Cleaning equivalent decay time constant Water flow enhancement factor and baseline draining time constant The product of these factors. The water flow enhancement factor is determined based on historical effective cleaning records: the controller utilizes the residual concentration, time interval, and effective irreversible adsorption residual concentration at two cleaning moments in each record. and the reference draining time constant Calculate the flow enhancement factor in reverse, and then calculate the average value of the valid records. If there are no historical cleaning records, a cold start value of 0.25 can be used for the flow enhancement factor, and the range can be selected from 0.1 to 0.8; the smaller the flow enhancement factor, the stronger the enhancement effect of the active flow.
[0058] When the permissible residual concentration threshold Not exceeding the effective irreversible adsorption residual concentration If the controller determines that continuous cleaning with the wash water is insufficient, it will not perform meaningless, prolonged active water flow cleaning. Instead, the controller will perform a safety displacement flush to remove any remaining flowable dye liquor, then stop the feed and output a prompt to perform deep chemical cleaning or replace the main feed line. The safety displacement flush duration is calculated as the ratio of the main feed line volume to the actual volumetric flow rate of the cleaning water. The main feed line volume is calculated and accumulated based on the inner diameter and length of each pipe section.
[0059] When the permissible residual concentration threshold Higher than the effective irreversible adsorption residual concentration At that time, the cleaning target can be achieved. To avoid over-cleaning while meeting cleaning requirements, the controller sets the residual concentration after cleaning in the cleaning attenuation model. Equal to the permissible residual concentration threshold The minimum cleaning time is obtained according to the following formula: In the formula, This indicates the minimum cleaning time, in seconds. This represents the equivalent decay time constant for cleaning, in seconds. This indicates the permissible residual concentration threshold, in mg / L. This indicates the predicted residual concentration, in mg / L. Indicates the effective irreversible adsorption residual concentration, in mg / L; This represents the natural logarithm. When the predicted residual concentration is greater than the allowable residual concentration threshold and the allowable residual concentration threshold is greater than the effective irreversible adsorption residual concentration, the logarithm argument is greater than 0 and less than 1, therefore the minimum cleaning time is a positive value. If the minimum cleaning time is less than 0 due to rounding, the minimum cleaning time is set to 0.
[0060] The remaining cleaning time is the difference between the latest allowed start time and the expected start time of the next pending dyeing vat task. When the remaining cleaning time is less than the minimum cleaning duration... If the controller does not initiate active water flow cleaning for the next dyeing vat task to be served, it will re-execute step S2 for tasks in the set of dyeing vat tasks to be scheduled that have not yet started; if no feasible task is found after rescheduling, the controller will output a production scheduling error message.
[0061] When the remaining cleaning time is not less than the minimum cleaning duration When the cleaning timeout period is reached, the minimum cleaning time will be used to determine the timeout period. The smaller of the sum of the stabilization confirmation time in step S1 and the remaining cleaning time. The turbidity threshold for cleaning confirmation is the allowable residual concentration threshold. Turbidity-concentration conversion coefficient The sum obtained by multiplying by an effective adsorption correction factor The ratio of the resulting products ensures consistency between the mass concentration standard and the online turbidity feedback. Permissible residual concentration threshold. Reduce turbidity-concentration conversion coefficient Increase or improve the effective adsorption correction factor As the concentration increases, the turbidity threshold for cleanliness confirmation decreases.
[0062] The controller opens the cleaning solenoid valve and starts timing. It collects the turbidity of the cleaning effluent according to the sampling frequency of step S1 and uses the same first-order low-pass digital filter to obtain the smoothed turbidity during the cleaning phase. When all smoothed turbidities within the continuous stable confirmation period are below the cleaning confirmation turbidity threshold, the controller closes the cleaning solenoid valve and ends the cleaning prematurely. If any smoothed turbidity does not meet the condition, the stable confirmation timing restarts. If the accumulated cleaning time reaches the cleaning timeout determination duration but still does not meet the condition, the controller closes the cleaning solenoid valve, outputs an online turbidity sensor or feed main pipeline abnormality alarm, and suspends subsequent feed until manually reset.
[0063] The controller records the actual cleaning time. The actual start time for the next dyeing tank task to be serviced is the sum of the estimated start time and the actual cleaning time; when active water flow cleaning is not initiated, the actual cleaning time is 0. When the actual start time for material supply is not later than the latest allowed start time of the next dyeing tank task to be serviced, the controller allows the next dyeing tank task to start supplying materials.
[0064] When the actual start time of material feeding is later than the latest allowed start time of the next dyeing tank task to be served, the controller does not start the next dyeing tank task to be served. Instead, it uses the end time of cleaning as the new reference time for the residual state, updates the residual state of the main feed pipeline according to the smooth turbidity at the end of cleaning, and re-executes steps S2 to S5 for tasks in the set of dyeing tank tasks to be scheduled that have not yet started. This forms a closed loop of residual identification, task scheduling, residual prediction, cleaning control, and scheduling update.
[0065] This application also provides an automatic dye feeding system for dyeing vats, including a memory, a processor, and a computer program stored in the memory and running on the processor. When the computer program is executed by the processor, it implements the steps of an automatic dye feeding method for dyeing vats according to any of the above embodiments.
[0066] The computer program used to perform the operations of this application may be assembly instructions, Instruction Set Architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, status setting data, integrated circuit configuration data, or source code or object code written in any combination of one or more programming languages and procedural programming languages. The computer program may execute entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter case, the remote computer may be connected to the user's computer via any type of network, including a Local Area Network (LAN) or Wide Area Network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, to perform aspects of this application, electronic circuits, including, for example, programmable logic circuits, Field-Programmable Gate Arrays (FPGAs), or Programmable Logic Arrays (PLAs), may execute computer-readable program instructions using status information from computer-readable program instructions to personalize the electronic circuits.
[0067] Therefore, those skilled in the art should recognize that although many exemplary embodiments of this application have been shown and described in detail herein, many other variations or modifications conforming to the principles of this application can be directly determined or derived from the disclosure of this application without departing from the spirit and scope of this application. Thus, the scope of this application should be understood and construed as covering all such other variations or modifications.
Claims
1. A method for automatically feeding dye into a dye vat, characterized in that, Including the following steps: The initial residual concentration, residual color category, and residual reference hue angle are obtained based on the original turbidity sequence of the evacuation process, the material identification of the main feed pipe, and the dye type identification, and the workshop ambient temperature is also obtained. Based on the target color category identifier, target hue angle and time constraints of each task in the set of dyeing vats to be scheduled, an optimized job execution sequence is obtained, and the next dyeing vat task to be served, the waiting time and the remaining cleaning time are determined. The permissible residual concentration threshold is determined based on the residual color category identifier, the residual reference hue angle, and the target color category identifier and target hue angle of the next dyeing vat task to be served. The effective irreversible adsorption residual concentration is obtained based on the material identification of the main feed pipe, the dye type identification, and the initial residual concentration; the predicted residual concentration is obtained based on the initial residual concentration, the workshop ambient temperature, the waiting time, and the effective irreversible adsorption residual concentration. Feeding is permitted when the predicted residual concentration is not greater than the allowable residual concentration threshold; when the predicted residual concentration is greater than the allowable residual concentration threshold and the allowable residual concentration threshold is higher than the effective irreversible adsorption residual concentration, a minimum cleaning time is obtained, and active water flow cleaning is performed when the remaining cleaning time is not less than the minimum cleaning time, otherwise rescheduling is performed; feeding is stopped when the allowable residual concentration threshold is not higher than the effective irreversible adsorption residual concentration.
2. The automatic dye feeding method for a dyeing vat according to claim 1, characterized in that, The initial residual concentration is obtained based on the original turbidity sequence of the evacuation process, the material identifier of the main feed pipe, and the dye type identifier, including: The basic adsorption correction coefficient of the pipe-dye is read according to the material identification and dye type identification of the main supply pipeline; the unlimited adsorption correction coefficient is calculated by combining the relative deviation ratio of the turbidity decrease rate and the reference decrease rate; and the effective adsorption correction coefficient is obtained after upper and lower limits are applied to the unlimited adsorption correction coefficient. The original turbidity sequence is filtered to obtain a smooth turbidity sequence. The end period of the emptying is determined based on the smooth turbidity sequence, and the average turbidity and turbidity decrease rate of the residual liquid at the end of the emptying period are obtained based on the smooth turbidity sequence within the end period of the emptying period. The basic adsorption correction coefficient is obtained based on the material identification of the main feed pipe and the dye type identification. The basic adsorption correction coefficient is corrected based on the relative deviation between the turbidity decrease rate and the reference decrease rate. The correction result is then limited to obtain the effective adsorption correction coefficient. The effective adsorption correction coefficient is incremented by one to obtain the adsorption correction ratio. The initial residual concentration is obtained by multiplying the turbidity-concentration conversion coefficient, the average turbidity of the residual liquid at the end of the evacuation, and the adsorption correction ratio.
3. The automatic dye feeding method for a dyeing vat according to claim 1, characterized in that, The process of obtaining the optimized job execution sequence based on the target color category identifier, target hue angle, and time constraints of each task in the set of dyeing vat tasks to be scheduled includes: The shortest arc distance of the hue angle is obtained based on the target hue angles of any two colored tasks, and the hue difference is obtained based on the shortest arc distance of the hue angle. The sensitive hue interval threshold is determined based on all the hue differences; for each adjacent task pair in each candidate task arrangement, the cleaning cost is determined based on the target color category identifier, hue difference, and sensitive hue interval threshold of the adjacent task pair; the task arrangement fitness of the candidate task arrangement is obtained based on the cleaning cost of each adjacent task pair and the time constraint of each task. The candidate task arrangement is iteratively updated using a genetic algorithm to obtain the optimized job execution sequence with the highest task arrangement fitness that satisfies the time constraint.
4. The automatic dye feeding method for a dyeing vat according to claim 1, characterized in that, The step of determining the permissible residual concentration threshold based on the residual color category identifier, the residual reference hue angle, and the target color category identifier and target hue angle of the next dyeing vat task to be served includes: When both the residual and target color categories are chromatic, the hue deviation between the residual reference hue angle and the target hue angle is calculated, and the hue deviation is continuously mapped between the minimum allowable concentration and the maximum allowable concentration to obtain the allowable residual concentration threshold. When the residual or target color category is achromatic, the allowable residual concentration threshold is directly set to the minimum allowable concentration.
5. The automatic dye feeding method for a dyeing vat according to claim 1, characterized in that, The step of obtaining the predicted residual concentration based on the initial residual concentration, the workshop ambient temperature, the waiting time, and the effective irreversible adsorption residual concentration includes: Based on the baseline draining time constant, temperature compensation coefficient, and reference temperature of the corresponding pipe and dye combination, the effective decay time constant is calculated in conjunction with the current workshop ambient temperature. The smaller value between the calibrated irreversible adsorption residual concentration and the initial residual concentration is taken as the effective irreversible adsorption residual concentration. Based on the exponential decay model, the difference between the initial residual concentration and the effective irreversible adsorption residual concentration is taken as the drainable portion. The predicted residual concentration is calculated by combining the waiting time and the effective decay time constant.
6. The automatic dye feeding method for a dyeing vat according to claim 1, characterized in that, When the predicted residual concentration is greater than the allowable residual concentration threshold and the allowable residual concentration threshold is higher than the effective irreversible adsorption residual concentration, the minimum cleaning time is obtained, including: A cleaning attenuation model is used to describe the relationship between cleaning time and residual concentration after cleaning. The residual concentration after cleaning is set to be equal to the allowable residual concentration threshold, and the minimum cleaning time to meet the cleaning requirements is calculated. The cleaning attenuation model takes the difference between the predicted residual concentration and the effective irreversible adsorption residual concentration as the rinseable residual part, and the cleaning equivalent attenuation time constant as the cleaning attenuation rate parameter.
7. The automatic dye feeding method for a dyeing vat according to claim 1, characterized in that, The step of performing active water flow cleaning when the remaining cleaning time is not less than the minimum cleaning duration includes: After the active water flow cleaning is started, the turbidity of the cleaning effluent is collected according to the sampling and filtering parameters consistent with the emptying stage; when all smooth turbidity during the continuous and stable confirmation period is lower than the cleaning confirmation turbidity threshold, the cleaning is terminated in advance; when the cumulative cleaning time reaches the cleaning timeout judgment time and the condition is not met, the cleaning is stopped and an abnormal alarm is output.
8. The automatic dye feeding method for a dyeing vat according to claim 1, characterized in that, When the allowable residual concentration threshold is not higher than the effective irreversible adsorption residual concentration, the feeding is stopped, including: Perform a safety replacement flush on the main feed line to remove any remaining dye that can flow within it; after the safety replacement flush is completed, stop feeding and output a deep cleaning prompt or a main feed line replacement prompt.
9. An automatic dye feeding system for dyeing vats, characterized in that, include: A processor and a memory, wherein the memory stores computer program instructions that, when executed by the processor, implement an automatic dye feeding method for a dye vat according to any one of claims 1-8.
