A label printer cutting control method, system, product, and medium

By establishing a load sliding average and multi-level verification mechanism in the label printer, the load drop rate is dynamically captured, solving the problem of distinguishing between material replacement and cutter wear, and achieving accuracy and robustness in cutter maintenance.

CN120952028BActive Publication Date: 2025-12-26BEIJING SHUOFANG INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511468401.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-10-15
Publication Date
2025-12-26
Estimated Expiration
2045-10-15

AI Technical Summary

Technical Problem

Existing technologies struggle to accurately distinguish between material replacement and cutter wear, leading to reduced accuracy in label printer cutter maintenance and management.

Method used

By establishing a load sliding average, dynamically capturing the load drop rate, and initiating a multi-level verification mechanism, the stability of the new working state is confirmed. By comparing the verification counter with historical snapshots, the accuracy of the cutter maintenance is ensured.

Benefits of technology

It improves the accuracy of cutter maintenance prompts, enhances the robustness of the control scheme, reduces misjudgments caused by material replacement, and ensures the accuracy and reliability of wear accumulation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120952028B_ABST
    Figure CN120952028B_ABST
Patent Text Reader

Abstract

A label printer cutting control method, system, product and medium. The method comprises: quantifying single cutting load by time integration of cutting force in real-time cutting, and accumulating it; using load moving average to dynamically track recent load state, and starting knife replacement verification procedure when real-time load significantly decreases compared with the average; not only confirming whether the load can be stably maintained at a low level in subsequent multiple cutting, but also finally comparing the average load of this stage with a physical reference value representing a brand new cutting knife; only when the stable low value of the load is consistent with the new knife reference, it is confirmed that it is a real knife replacement operation and the accumulated wear is cleared, and the accumulated load value reaches the warning threshold to issue a knife replacement warning. The technical solution provided in the application improves the accuracy of knife maintenance prompt.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of control systems in general, and in particular to a label printer cutting control method, system, product and medium. BACKGROUND

[0002] At present, as a data output and identity device, the label printer has been widely used with the rapid development of logistics and warehousing, intelligent retail and industrial automation. How to ensure that the label printer, especially the core vulnerable part of the cutting knife, can provide long-term stable and high-quality cutting effect is crucial to maintain production and management efficiency.

[0003] In the related art, in order to effectively manage the service life of the cutting knife, the peak current of the motor driving the cutting knife to move in each cutting stroke is monitored in real time through the built-in sensor. The theoretical basis of this scheme is that as the cutting knife wears out, its cutting resistance will increase accordingly, so that the motor needs to output more torque, which is reflected as higher peak working current. The system pre-calibrates a current reference value under the condition of a new knife. When the subsequent monitored peak current continuously exceeds the reference value by a certain preset proportion, a maintenance warning will be triggered.

[0004] However, when the working task of the printer is switched from a high-resistance cutting material (such as thick PET synthetic label) to a low-resistance material (such as ordinary copper plate paper), the overall cutting load will drop sharply. At this time, even if the cutting knife itself is in a state of serious wear, the peak current of the motor generated when cutting low-resistance materials may drop sharply below the initial reference value set for high-resistance materials. When the peak drop is observed, it is difficult to distinguish whether it is caused by the change of materials or the user has really performed the knife replacement maintenance, so it is possible to mistakenly interpret the material replacement as cutting knife maintenance, resulting in reduced accuracy of maintenance prompts. SUMMARY

[0005] The present application provides a label printer cutting control method, system, product and medium for improving the accuracy of cutting knife maintenance prompts.

[0006] In a first aspect of the present application, a label printer cutting control method is provided, which comprises:

[0007] The cutting duration and cutting force data are acquired during the real-time cutting operation; the cutting force data acquired within the cutting duration is time-integrated to obtain a real-time single-cut load index; the real-time single-cut load index is added to the current accumulated load index to obtain a real-time accumulated load index; a load index queue storing a preset number of historical single-cut load indexes is updated, the real-time single-cut load index is enqueued from the tail of the queue, and the single-cut load index ranked at the head of the queue is dequeued; when the load drop rate is greater than a preset reset drop rate threshold, the current accumulated load index is stored as a historical snapshot in a temporary storage area, and a verification counter with an initial value of zero is started; in a preset verification number of cutting operations after the verification counter is started, a real-time single-verification-cut load index corresponding to each cutting is acquired; in the case that the real-time single-verification-cut load index is lower than the load moving average value before the verification counter is started, the count value of the verification counter is increased by one; after the preset verification number of cutting operations is completed, if the final count value of the verification counter is equal to the preset verification number and the verification average load index is equal to or less than the preset cutter physical reference value, the accumulated load index is set to zero; when the accumulated load index reaches a preset wear warning threshold, a cutter maintenance warning information is issued.

[0008] In the above embodiment, the load drop rate is dynamically captured by establishing a load moving average value, thereby triggering a multi-level verification mechanism. By starting the verification counter, it is continuously confirmed whether the load is stably low in subsequent multiple cuttings, confirming the stability of the new working state; after confirming the stability, the verification average load index of the new state is finally compared with the preset cutter physical reference value representing a brand-new cutter. Therefore, even if the load drops sharply due to material replacement, as long as the load value after stabilization fails to reach the new cutter reference, the accumulated index will not be reset by mistake, thereby distinguishing between material replacement and real cutter maintenance, and solving the problem of maintenance management failure caused by the inability to distinguish event types in the related art.

[0009] In combination with some embodiments of the first aspect, in some embodiments, after the preset verification number of cutting operations is completed, if the final count value of the verification counter is equal to the preset verification number and the verification average load index is equal to or less than the preset cutter physical reference value, the accumulated load index is set to zero, and further comprising:

[0010] In a preset number of continuous cutting operations for buffer release, the real-time buffer single-cut load index of each cutting is continuously acquired, the load index queue is updated, and the latest load moving average value is calculated; when the real-time buffer single-cut load index exceeds the preset rebound proportion of the load moving average value before the verification counter is started, the current accumulated load index is set to the value corresponding to the historical snapshot, and the data in the load index queue is restored to the state before the verification counter is started.

[0011] In the above embodiment, after the wear index reset is completed, the self-correction ability of misjudgment is provided by setting up a slow-release observation period and using the pre-stored historical snapshot as the basis for backtracking. Even if the false tool change event caused by temporary material replacement and other complex working conditions tricks the previous judgment, once the load rebounds to near the high position of the historical snapshot within the observation period, the false reset operation can be canceled, thereby providing double insurance for the accuracy of wear accumulation and enhancing the robustness of the entire control scheme.

[0012] In combination with some embodiments of the first aspect, in some embodiments, after updating the load index queue storing the preset number of historical single-cut load indices, enqueuing the real-time single-cut load index from the tail of the queue and dequeuing the single-cut load index ranked at the head of the queue, further comprising:

[0013] When the load drop rate first reaches the reset drop rate threshold, the continuous load data covering the entire cutting process collected in the last cutting action is called to obtain the latest instantaneous load profile curve; when the curve peak value of the latest instantaneous load profile curve is less than the historical baseline value and the difference between the curve peak value and the historical baseline value is greater than the preset difference threshold, the cumulative load index is reset to zero.

[0014] In the above embodiment, when the load is first detected to drop sharply, the instantaneous load profile curve of the last cutting is immediately called and analyzed, and the judgment dimension is improved from a single integral value to a curve profile that can reflect the process details. Further, by directly comparing the difference between the curve peak value and the historical baseline, the physical nature that the peak force of a new tool cutting is necessarily much lower than the average load under the old tool wear state is utilized. This enables the judgment to be completed through a high-confidence feature at the moment of the event, eliminates the lengthy multi-step verification process, improves the real-time performance and decision efficiency of the tool change event recognition, and realizes the rapid and accurate management of the cutting tool state.

[0015] In combination with some embodiments of the first aspect, in some embodiments, after the load drop rate first reaches the reset drop rate threshold, the continuous load data covering the entire cutting process collected in the last cutting action is called to obtain the latest instantaneous load profile curve, and further comprising:

[0016] When the curve peak value of the latest instantaneous load profile curve is less than the historical baseline value and the difference between the curve peak value and the historical baseline value is greater than the preset difference threshold, the real-time cutting fingerprint parameter is obtained from the curve net peak value part in the latest instantaneous load profile curve; when the difference between the real-time cutting fingerprint parameter and the historical cutting fingerprint parameter is within the preset cutting fingerprint error threshold range, the cumulative load index is reset to zero.

[0017] In the above embodiment, by comparing the real-time cutting fingerprint reflecting the physical characteristics of the cutter with the historical cutting fingerprint parameters learned and stored by the system after the last cutter replacement, an identity verification procedure is added for each cutter replacement operation. This method ensures that wear reset is only performed when the dynamic cutting characteristics of the new cutter are completely consistent with the expected standard model, eliminating interference caused by replacing different types of cutters or consumables and improving the accuracy of maintenance management.

[0018] In combination with some embodiments of the first aspect, in some embodiments, after completing the cutting operation of the preset verification number of times, if the final count value of the verification counter is equal to the preset verification number and the verification average load index is equal to or less than the preset cutter physical reference value, the cumulative load index is set to zero, and further comprising:

[0019] If the final count value is less than the preset verification number, the historical snapshot is read from the temporary storage area, and the cumulative load index is set to the value corresponding to the historical snapshot.

[0020] In the above embodiment, by pre-storing the historical snapshot before starting the verification, if the subsequent multi-step verification process fails due to unstable load (i.e., the count value does not meet the standard), the cumulative wear index is immediately rolled back to the accurate value before the event using the snapshot. This ensures that false positives triggered by temporary material replacement and other short-term working condition fluctuations can be completely eliminated, thereby ensuring the continuity and accuracy of the wear data, avoiding errors in life calculation caused by temporary events, and improving the reliability of the entire life management system.

[0021] In combination with some embodiments of the first aspect, in some embodiments, when the load drop rate is greater than the preset reset drop rate threshold, the current cumulative load index is stored in the temporary storage area as a historical snapshot, and before starting the verification counter with an initial value of zero, further comprising:

[0022] After each cutting operation, record the time interval between the end of this cutting and the arrival of the next cutting instruction, denoted as the instantaneous cutting interval; calculate the sliding average of the instantaneous cutting interval of the latest preset rhythm threshold to obtain the average working rhythm parameter; map the average working rhythm to the thermal effect compensation factor according to the preset rhythm-load compensation curve; add the thermal effect compensation factor to the real-time single-cut load index to correct the real-time single-cut load index and replace the real-time single-cut load index for calculating the load drop rate.

[0023] In the above embodiment, the physical phenomenon of heat accumulation caused by high-frequency operation and thus reduced load reading is identified and quantified in advance. By correcting the thermal effect of the original load data before judging the load drop, the interference caused by the working condition rhythm is removed from the signal source, thereby distinguishing whether it is a real tool change, reducing the misjudgment rate caused by the change of production rhythm, and improving the accuracy and robustness of the wear state evaluation.

[0024] In combination with some embodiments of the first aspect, in some embodiments, before the current cumulative load index is stored in the temporary storage area as a historical snapshot and the verification counter with an initial value of zero is started, the method further includes:

[0025] The real-time cutter motor operating voltage is obtained, and a voltage deviation rate between the real-time cutter motor operating voltage and a preset standard reference voltage is calculated. When the real-time cutter motor operating voltage is lower than the preset standard reference voltage, the load index is adjusted downward according to the voltage deviation rate, and when the real-time cutter motor operating voltage is higher than the preset standard reference voltage, the load index is adjusted upward according to the voltage deviation rate, to obtain a corrected real-time single-cutting load index and replace the real-time single-cutting load index for calculating the load drop rate.

[0026] In the above embodiment, the real-time operating voltage of the cutter motor is included in the monitoring, and the key interference source of power grid fluctuation is identified and quantified. Before any wear judgment is made, the original load data is first dynamically compensated and corrected according to the real-time voltage deviation rate, which is equivalent to constructing a filter at the data source, removing the false high or false low of the load reading caused by unstable voltage, and improving the accuracy of the entire wear evaluation system.

[0027] In the second aspect, the embodiments of the present application provide a label printer cutting control system, which comprises one or more processors and a memory; the memory is coupled with the one or more processors, and the memory is used to store computer program codes, the computer program codes comprising computer instructions, and the one or more processors invoke the computer instructions to enable the label printer cutting control system to perform the method described in the first aspect and any possible implementation manner of the first aspect.

[0028] In the third aspect, the embodiments of the present application provide a computer program product comprising instructions, which, when the computer program product is run on a label printer cutting control system, enable the label printer cutting control system to perform the method described in the first aspect and any possible implementation manner of the first aspect.

[0029] In a fourth aspect, the embodiments of the present application provide a computer readable storage medium, including instructions, when the instructions run on the label printer cutting control system, causing the label printer cutting control system to perform the method as described in the first aspect and any possible implementation manner of the first aspect.

[0030] It can be understood that the label printer cutting control system provided by the second aspect, the computer program product provided by the third aspect, and the computer storage medium provided by the fourth aspect are all used to execute the label printer cutting control method provided by the embodiments of the present application. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method, which will not be described here.

[0031] The one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:

[0032] The present application dynamically captures the load drop rate by establishing a load moving average, thereby triggering a multi-level verification mechanism. By starting the verification counter, it continuously confirms whether the load is stably low in subsequent multiple cutting, confirming the stability of the new working state; after confirming the stability, the verification average load index of the new state is finally compared with the preset cutter physical reference value representing a brand new cutter. Therefore, even if the load drops sharply due to material replacement, as long as the load value after stabilization fails to reach the new cutter reference, the cumulative index will not be reset incorrectly, thereby distinguishing between material replacement and real cutter maintenance, and solving the problem of maintenance management failure caused by the inability to distinguish event types in the prior art.

[0033] After completing the wear index reset, the present application has the ability to correct itself by setting a slow-release observation period and using pre-stored historical snapshots as a retrospective basis. Even if a false cutter replacement event caused by temporary material replacement and other complex working conditions tricks the previous judgment, as long as the load rebounds to a high level close to the historical snapshot within the observation period, the incorrect reset operation can be reversed, thereby providing double insurance for the accuracy of the wear accumulation and enhancing the robustness of the entire control scheme.

[0034] 3、The present application compares the real-time cutting fingerprint reflecting the physical characteristics of the cutter with the historical cutting fingerprint parameters learned and stored by the system after the last cutter replacement, which is equivalent to adding an identity verification program for each cutter replacement operation. This method ensures that the wear reset is only performed when the dynamic cutting characteristics of the new cutter are completely consistent with the expected standard model, and can exclude the interference caused by replacing different types of cutters or consumables, thereby improving the accuracy of maintenance management. BRIEF DESCRIPTION OF DRAWINGS

[0035] Figure 1 is a flowchart of the label printer cutting control method in the embodiments of the present application;

[0036] Figure 2 is another flowchart of the label printer cutting control method in the embodiments of the present application;

[0037] Figure 3 is a comparison chart of the instantaneous cutting load fingerprints in different working conditions introduced in the scenario of Embodiment 2 of the present application;

[0038] Figure 4 is a schematic diagram of an exemplary hardware structure of the label printer cutting control system in the embodiments of the present application. DETAILED DESCRIPTION

[0039] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments and are not intended to be limiting of the present application. As used in the specification and the appended claims of the present application, the singular forms “a,” “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “and / or” as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.

[0040] Hereinafter, the terms “first” and “second” are only for the purpose of description and cannot be understood as implying or suggesting relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with “first” and “second” can explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, the meaning of “a plurality of” is two or more, unless otherwise specified.

[0041] In the related art, the cumulative cutting load is used to quantify the degree of wear of the cutting knife. When it is necessary to determine whether the user has performed the knife replacement maintenance, an intuitive but defective method is to monitor whether the cutting load has dropped significantly. The logic of this method is that the cutting resistance of a new tool is much smaller than that of an old tool. However, this judgment method ignores the possible changes in the working conditions. For example, when the machining task is switched from a hard material with high resistance to a soft material with low resistance, the cutting load will also drop sharply. At this time, the cutting knife is mistakenly considered to have been replaced because of the observation of the sudden drop in load, and the cumulative wear value is cleared, but in fact the old tool is still in service. This misjudgment of the working condition change as equipment maintenance leads to the misalignment of the cutting knife life management.

[0042] In the embodiment of the present application, when the load drop rate exceeds the threshold, instead of resetting immediately, a multi-stage verification mechanism is started. First, it does not believe in a single load drop, but through the start of the verification counter, it continuously confirms whether the load is stable at a low level in the subsequent continuous multiple cutting operations, which aims to confirm the persistence of the new working state, thereby excluding temporary fluctuations. More importantly, after confirming the stability of the new state, the verification average load index in this new stable state is compared with a preset cutting tool physical reference value representing the physical characteristics of the new cutting tool. Therefore, even if the replacement of materials leads to a stable decrease in load, as long as the load value fails to reach the reference level of the new cutting tool, the reset will not be performed. This combination of stability verification and physical reference comparison strategy gives the system the ability to distinguish between real tool replacement and material replacement, solves the misjudgment problem, and ensures the accuracy of wear tracking.

[0043] Figure 1 is a flowchart of using the label printer cutting control method in the embodiment of the present application, including the following steps:

[0044] S101, acquiring cutting duration and cutting force data in real-time cutting operation process.

[0045] Among them, the real-time cutting operation process of the printer that needs to manually trigger cutting refers to an independent electromechanical action cycle started by the operator on demand. In this scenario, after completing the printing, the printer will stop the label medium at the cutting position and enter the waiting state. The starting point of this cycle is an explicit physical action of the operator, such as pressing the dedicated cutter button on the control panel, generating an external trigger signal, which constitutes the cutting instruction received by the main control unit. After receiving the instruction, the cutter module is driven to perform the complete action of cutting and returning to the original position, and the end point is the return of the cutter to the mechanical origin. For devices that use direct manual control of the cutter for cutting, the starting point of the cycle of the real-time cutting operation process is the moment when the operator's hand starts to exert force on the control mechanism and makes it displace; the end point is the time when the mechanism completes a complete stroke (for example, the lever is pressed to the bottom) and the cutter completely cuts off the label medium; the cutting duration is used to represent the total time consumed by the complete cutting action; the cutting force data is obtained by continuous sampling of the sensor at a fixed high frequency within the cutting duration, which indirectly or directly reflects the physical resistance borne by the cutter at the sampling moment.

[0046] Specifically, when the printer's main control unit (MCU) receives a cutting instruction, it will immediately start a high-precision hardware timer and begin data collection. The source of the cutting instruction varies depending on the device type: for automatic cutting machines, the instruction is automatically generated by the firmware when the printing conditions are met; for manually triggered electromechanical models, the instruction comes from the external electrical signal generated by the user pressing the cutter button. For both types of motor-driven models, after the instruction is triggered, the MCU sends control signals (such as PWM signals) to the cutter drive chip to make the motor move, while the current sensor (for example, a low-ohm precision shunt resistor) connected in series with the motor power supply circuit starts to work. The output analog voltage signal is amplified and filtered, then sampled, quantized, and stored in the RAM buffer area by the MCU's analog-to-digital converter (ADC) periodically. For purely mechanical cutting devices controlled directly by humans, the cutting instruction can be defined as the event when the reading of the force sensor installed on its load-bearing structure first exceeds the pre-set noise threshold. This event also triggers the hardware timer and data collection process, but the cutting force data comes directly from the force sensor, not the motor current. At the end of the cutting action - for motor-driven types, the limit switch or position sensor reports that the cutter is back in place; for manually controlled types, the displacement sensor reports that the mechanism has reached the end of the stroke - the MCU stops the hardware timer and terminates data collection. At this time, the reading of the timer is the cutting duration, and the complete data sequence stored in the RAM buffer area is the cutting force data for this cutting, which describes the load change curve from the start of the cutting to the end of the cutting.

[0047] S102, time-integrate the cutting force data acquired within the cutting duration to obtain a real-time single-cut load index.

[0048] wherein the real-time single-cut load index refers to a single scalar value ultimately derived from the time-integration operation, representing the overall load size of a single cutting operation.

[0049] Specifically, the main control unit (MCU) confirms that a complete cutting force data sequence has been obtained, and then reduces the dimension of the original data sequence stored in the RAM buffer area in S101 to a single index that can stably represent the cutting effort level. The theoretical basis is that the wear of the cutting knife, the toughness and thickness of the material, and the cutting speed and other factors not only affect a certain moment in the cutting process, but also jointly determine the energy consumption of the entire cutting process. By integrating the force data of the entire process, the peak size, peak width (duration), and other multi-dimensional morphological information can be coupled into a comprehensive index, thereby smoothing out the interference of transient data spikes caused by electrical noise or mechanical vibration, and obtaining a robust load characteristic value. In digital signal processing, this integration process is usually discretized as a cumulative summation operation: the processor will traverse each force sampling value Fᵢ in the data sequence, multiply it by the sampling time interval Δt (the reciprocal of the sampling frequency), and then accumulate the areas of all these small rectangles. The final sum is the real-time single-cut load index of this cutting.

[0050] It can be understood that higher-order numerical integration algorithms such as Simpson's rule can also be used to further improve the integration accuracy, or frequency domain analysis based on Fourier transform can be introduced to calculate the energy in a specific frequency band as the load index to adapt to different accuracy and computing resource requirements, which is not limited here.

[0051] S103, add the real-time single-cut load index to the currently stored cumulative load index to obtain the real-time cumulative load index.

[0052] Among them, the currently stored cumulative load index refers to a core variable maintained in a non-volatile memory (such as Flash or EEPROM) or a power failure protection RAM. This variable records the total workload of the cutting knife since the last counting value of the cutting knife was reset (for example, after replacing a new knife), and is the direct basis for evaluating the long-term wear of the cutting knife; the real-time cumulative load index refers to the updated cumulative load total value obtained by adding the currently stored cumulative load and the real-time single-cut load index.

[0053] Specifically, the main control unit (MCU) updates the cumulative load index immediately after obtaining the real-time single-cut load index. First, the current cumulative load index value is read from the memory, then added to the new real-time single-cut load index in the CPU arithmetic logic unit (ALU), and finally the sum is written back to the original storage address, replacing the old value. The theoretical basis is to model the physical wear process of the tool as a linear, discrete cumulative process, assuming that each cut will cause a certain amount of irreversible wear to the tool, and this amount of wear is proportional to the energy consumed by the cut (i.e. single-cut load index). By continuously accumulating the amount of wear of each small cut, the entire life cycle process of the tool from a new state to a scrap state can be macroscopically tracked.

[0054] S104, update the load index queue that stores the preset number of historical single-cut load indices, and enqueue the real-time single-cut load index from the tail and dequeue the single-cut load index ranked first.

[0055] wherein the load index queue refers to a data structure with a first-in-first-out feature in the system memory (RAM), which opens a fixed-size storage area dedicated to storing the real-time single-cut load indices of the last preset number (e.g. the last 100 times); update refers to the two sub-actions of enqueueing and dequeueing the content of the load index queue; enqueueing from the tail means adding the latest data item (i.e. the single-cut load index calculated this time) to the end of the queue; and dequeueing the single-cut load index ranked first means removing the load index that has been in the queue the longest, i.e. represents the earliest cutting, from the head of the queue.

[0056] Specifically, after updating the cumulative load, the main control unit (MCU) maintains the load index queue. This queue is usually implemented through a circular buffer (Circular Buffer) at the software level to achieve efficient space utilization and O(1) time complexity of enqueueing / dequeueing operations. When a new real-time single-cut load index arrives, the processor writes it to the memory location pointed to by the current tail pointer, and then moves the tail pointer one bit to the right. At the same time, in order to keep the length of the queue constant (i.e. the preset number, which is an optimal value determined by experience based on a large amount of experimental data and the balance between response sensitivity and data stability in specific application scenarios), the head pointer also moves one bit to the right, which is logically equivalent to discarding the oldest data, and the core function is to build a sliding window that can reflect the recent working conditions. By always keeping the queue storing the cutting history data of the last period of time, a dynamic load sliding average value that can sensitively reflect the current state of the cutting tool or the recent changes in cutting materials can be calculated, thereby avoiding the disadvantages of using a fixed reference value that cannot adapt to changes in working conditions.

[0057] In some embodiments, the update and management of the load index queue can be achieved in various ways:

[0058] Optionally, a double queue mechanism can be adopted to distinguish short-term fluctuations from long-term trends. Specifically, 1) the system maintains a short-period queue (e.g. storing the last 20 cutting data) and a long-period queue (e.g. storing the last 200 cutting data) in memory simultaneously; 2) the short-period queue is used to calculate a short-term moving average value that is sensitive to changes, mainly for rapid detection of events such as load drop in S105; 3) the long-period queue is used to calculate a more stable baseline value that represents the long-term wear trend, which can be used for more macroscopic life prediction or anomaly detection. When a new single load index is generated, both queues perform enqueue and dequeue operations synchronously.

[0059] It can be understood that more complex data structures can also be used, such as a weighted queue, in which newer data is given a higher weight in calculating the average value; or according to the printer's work rhythm (e.g. the first cutting data after a long standby period may be given a lower weight or not included in the queue), to achieve more intelligent data filtering and management, which is not limited here.

[0060] S105, when the load drop rate is greater than the preset reset drop rate threshold, the current cumulative load index is stored as a historical snapshot in the temporary storage area, and a verification counter with an initial value of zero is started.

[0061] wherein the load moving average value is the result obtained by performing an arithmetic average operation on all values in the load index queue in S104; the load drop rate is a dimensionless ratio that quantifies the drop in current cutting load relative to the recent average level, and the calculation formula is: (load moving average value - real-time single cutting load index) / load moving average value; the preset reset drop rate threshold is a critical percentage pre-marked according to experience or experiment, when the load drop rate exceeds this value, it is considered that an event sufficient to cause state change (such as replacing a thinner material) may have occurred; the historical snapshot represents a backup of the value of the current cumulative load index before starting the subsequent verification program, which has a similar effect to a system restore point, and is used for state recovery after verification failure.

[0062] After each load index calculation (S102) and queue update (S104), a conditional judgment is performed. Specifically, first, the load sliding average value is calculated by calling the queue data in S104, and the average value and the latest real-time single-cut load index are substituted into the formula to calculate the load drop rate. The calculated drop rate is compared with the preset reset drop rate threshold. If the drop rate does not exceed the threshold, this step does not perform any operation. If the drop rate exceeds the threshold, a to-be-verified state is entered, and a series of actions are immediately performed: first, the current accumulated load index accumulated in S103 is read and completely copied to a temporary, safe storage area to form a history snapshot; then, a variable named verification counter is started in the memory, and the verification counter value is set to zero.

[0063] In some embodiments, after obtaining the real-time single-cut load index, a dynamic compensation mechanism based on the work rhythm can also be introduced before the load drop rate calculation to correct the interference of the thermal effect caused by the change in cutting frequency on the load index, thereby improving the accuracy of load drop detection.

[0064] First, the theoretical basis is that the cutter will generate heat due to friction during continuous cutting, and the accumulation and dissipation rate of heat is closely related to the cutting frequency (i.e., the work rhythm). High-frequency continuous cutting will cause heat accumulation, which may cause the cutter or the material to locally soften, thereby showing a lower cutting load; on the contrary, low-frequency intermittent cutting gives sufficient cooling time, which may show a higher cutting load. This load fluctuation caused by the work rhythm is not the real physical wear change of the cutter, and if not eliminated, it will become a serious noise signal that may falsely trigger or mask a real load drop event.

[0065] After each cutting operation is completed, the time interval between the end of this cutting and the arrival of the next cutting instruction is recorded as the instantaneous cutting interval. Since the single cutting interval may have occasional jitter (such as the operator's brief hesitation), the sliding average value of the instantaneous cutting interval of the last N times (N is a preset rhythm threshold) is calculated in real time to obtain a stable and real-time work rhythm parameter that reflects the current real work state. An internal preset rhythm-load compensation curve is a data model (which can be a lookup table, a polynomial function, etc.) pre-calibrated through a large number of experiments, which describes the nonlinear relationship between the average work rhythm parameter and the load index offset. The average work rhythm parameter obtained in the previous step is input, and the corresponding thermal effect compensation factor is queried or calculated through the curve. For example, a shorter average interval (fast rhythm) will map a positive compensation factor to offset the load reduction caused by heat.

[0066] Finally, the thermal effect compensation factor is algebraically added to the originally acquired real-time single-cut load index to obtain a brand-new real-time single-cut load index after thermal effect correction. The corrected load index, which is considered to be a value that better represents the true physical interaction between the cutter and the material after removing the influence of the work rhythm change, replaces the original value and is used for all subsequent calculations, especially the update of the load index queue in S104 and the calculation of the load drop rate in S105, thereby providing high-quality data input for the entire decision-making system.

[0067] The core advantage of the above technical steps is to decouple physical wear and thermal effect interference, improving the signal-to-noise ratio of the input signal. By monitoring the work rhythm in real time and quantifying and removing the interference of thermal effect on the load index using the compensation curve, a more pure load signal reflecting only the true wear is obtained. This enables the subsequent load drop rate calculation to identify sudden drops caused by cutter or material changes, rather than fluctuations caused by changes in operating rhythm, thereby improving the decision-making reliability of the entire detection system.

[0068] S106, in the cutting operation after starting the verification counter, the real-time single-verification-cut load index corresponding to each cutting is acquired.

[0069] Wherein, the starting of the verification counter determines the time starting point of this step, i.e. after the conditions in S105 are met and executed; the preset verification number is a fixed, small integer, determined based on statistical confidence requirements and a large number of working condition simulation experiments, defining the size of the subsequent verification window, i.e. how many subsequent cutting operations need to be observed to make a final judgment; acquiring the real-time single-verification-cut load index corresponding to each cutting means that within this verification window, for each cutting, the same operation process as S101 and S102 is still performed, i.e. complete force data is collected and time integration is performed, and the calculated result is logically marked as a load index for verification.

[0070] Specifically, after S105 is triggered, the printer does not stop normal work, but continues to accept and perform cutting operations. For each of the subsequent cutting operations, the number of which is determined by the preset verification number, the entire process of S101 (acquiring cutting duration and force data) and S102 (performing time integration) is repeated completely to collect a new set of load data samples that can reflect the current true working condition. In theory, if the sudden drop in load is due to the replacement of low-resistance material, then as long as the material does not change in the next few cuts, the calculated single-load index should continue to maintain at a new, lower level. Conversely, if the previous sudden drop was just a measurement error or abnormal fluctuation, then in these few cuts, the load index is likely to rebound to close to the previous average level.

[0071] S107, in case that the real-time single-cut verification cutting load index is lower than the load moving average value before starting the verification counter, the count value of the verification counter is added by one.

[0072] wherein the real-time single-cut verification cutting load index refers to the single-cut load index generated by each cutting in the verification window period of S106; the load moving average value before starting the verification counter specifically refers to the historical average value calculated by the load index queue at that time before triggering the verification process in S105, representing the old steady-state load level before the state mutation occurs; and the count value of the verification counter is added by one refers to performing an increment operation on the initialized counter variable in S105.

[0073] Specifically, the core goal of this step is to verify the stability of the load drop. For each cutting in the preset verification number of cycles, when the real-time single-cut verification cutting load index is calculated by S102, a conditional judgment is immediately performed. The new load index is compared with the load moving average value recorded when the verification is triggered in S105. If the new load index is less than the old moving average value, the condition is established, which logically provides a supporting evidence for the hypothesis that a new, low-load steady state has been entered. Therefore, the counter adding one operation is performed to record the successful verification. If the new load index is equal to or greater than the old moving average value, it indicates that the load rebound occurs, which does not meet the low-load persistence hypothesis, and the counter will not perform any operation. This step is repeatedly executed until the verification cycle of S106 ends, and the final value of the verification counter quantifies the consistency degree of the persistent low load phenomenon.

[0074] S108, after completing the cutting operation of the preset verification number of times, if the final count value of the verification counter is equal to the preset verification number of times and the verification average load index is equal to or less than the preset cutting physical reference value, the cumulative load index is set to zero.

[0075] Wherein, the execution timing of this step is determined after the cutting operation of the preset verification number is completed, that is, after the verification loop of S106 is completely finished; the final count value of the verification counter refers to the value that the verification counter finally stays after repeated judgment and accumulation of S107; equal to the preset verification number refers to a logical judgment condition, which requires that the final value of the counter is completely equal to the size of the verification window, representing that each verification cutting meets the condition of low load; setting the cumulative load index to zero refers to modifying the core variable recording the total wear of the cutting knife in S103 to 0; the verification average load index is the arithmetic average of the single cutting load index in the cutting operation of the preset verification number; and the preset cutting knife physical reference value is a key parameter calibrated through experiments. For example, a statistically significant reference value can be obtained by using multiple new cutting knives of the same model to cut standard test materials (such as copper paper of a specific gram weight) multiple times during the factory calibration stage, collecting the single cutting load index and statistically averaging it. Alternatively, an initialization learning program can be automatically executed by the printer after the user installs a new knife and confirms it through the system interface, and the load index of the first few cuttings is recorded as the physical reference of the new knife.

[0076] Specifically, after the preset number of verification cuttings in S106 are all completed, the final decision-making stage is entered, which includes two layers of decision trees.

[0077] The first layer of decision-making is to judge stability. The final value of the verification counter is read. If the value is less than the preset verification number, it means that there was a load rebound during the verification period, and the load drop is not a stable event. This may be a measurement error or an accidental cutting anomaly. At this time, the false assumption is determined, and the restoration process of the historical snapshot in S105 is directly executed to restore the cumulative load index and other states to before the drop occurred, thereby avoiding false judgment, and the process ends.

[0078] The second layer of decision-making is to distinguish the root cause of the event (material replacement and cutting knife replacement). The verification average load index of the verification cuttings is calculated. Then, the verification average load index is compared with the preset cutting knife physical reference value.

[0079] Case one: determine to replace the material. If the verification average load index is lower than the old moving average value but still higher than the cutting knife physical reference value, it is determined that this is most likely a material replacement (for example, from thick PET to thin copper paper). The wear state of the cutting knife has not changed. Therefore, the current cumulative load index is retained because the wear history of the old knife is still valid. The load index queue of S104 is reset or quickly updated with this verified new steady-state load level, thereby establishing a completely new and accurate dynamic load reference for the new material.

[0080] Case 2: Determine it is a physical blade change. If the average load index is close to or lower than the preset physical blade reference value, it is determined that it is a physical blade change operation, and the user has installed a brand new blade. Therefore, the cumulative load index is set to zero. Because the old blade has been replaced, the wear record naturally invalidates, clears zero, and the life cycle record of the new blade starts from scratch.

[0081] In some embodiments, to deal with the situation where the verification process after the load drop rebounds or is unstable, a history snapshot-based state rollback mechanism can also be implemented to reverse the misjudgment of the unstable event, thereby ensuring the accuracy of the cumulative load index.

[0082] The triggering condition of this process is that the final count value read after the verification loop in S106 is less than the preset verification number. The inequality holds that in the preset number of verification cuts, at least one or more single-cut load indexes exceed the low-load judgment threshold newly formed after the load drop. This phenomenon is called load rebound, which directly indicates that the initial detected load drop is not a stable and persistent event. Without this mechanism, false subsequent judgments may be made based on this short-lived and unreliable pseudo-drop data, such as falsely updating the baseline load or more seriously clearing the wear record, which will lead to catastrophic failure of the entire wear evaluation model.

[0083] First, the history snapshot stored in the temporary storage area (such as RAM or cache) before entering the verification process (i.e., in the S105 step) is accessed. The snapshot is a complete backup of all key state parameters (the core is the cumulative load index, which can also include the load queue, etc.) at the moment the system decides to enter the verification process, which is equivalent to a restore point. Then, the cumulative load index value in the snapshot is read, and this historical true value is used to forcibly overwrite the cumulative load index in the current memory that may have been affected by false expectations.

[0084] The above technical steps can actively ignore and isolate this unstable and occasional load fluctuation data by forcibly restoring the system state to the historical snapshot before the event occurs when the verification fails, thereby avoiding the cumulative load index being contaminated by false data or being falsely cleared, and ultimately ensuring the long-term reliability and data purity of the blade wear evaluation model.

[0085] In other embodiments, after initially determining that the load drop is a stable event (whether it is material replacement or blade replacement), a slow-release monitoring process can be further introduced to achieve the technical effect of continuously and dynamically confirming the new load state and preventing false judgments caused by delayed load rebound.

[0086] First, after the decision in S108 is made, i.e. the system has accepted the new load condition (whether the cumulative index is kept or cleared). At this point, a buffer release monitoring period is entered, which contains a preset number (e.g. 100) of consecutive cutting operations. During this period, a continuous, real-time state tracking is performed: for each cutting, the real-time buffer single-cut load index is obtained, and the load index queue in S104 is dynamically updated with the new data, while the latest load moving average is calculated. The essence of this process is to try out this new low load condition, and constantly refresh the benchmark for this new state.

[0087] The core of this flow is that in each cutting during the buffer release monitoring, a logical judgment is performed: compare the current real-time buffer single-cut load index with the historical benchmark value. This historical benchmark value is the load moving average before the verification counter is started (i.e. before S105), which is the value representing the old high load condition. When the real-time load index exceeds this old high load average by a certain preset rebound ratio (e.g. 50% or 60%), it is determined that a serious delayed load rebound has occurred. This rebound may be caused by some special reasons, such as an abnormality in a certain section of the new material, or a hidden defect in the newly replaced cutting tool, causing the load to rise sharply after a short period of use. Once this rebound is detected, the original cumulative load index is read from the historical snapshot stored in S105, and the current value is overwritten.

[0088] This operation reverses all judgments and state changes since the load crash was identified, ensuring that the system returns to the most original and reliable state, avoiding the accumulation of errors based on a crash event that ultimately proved to be an illusion.

[0089] The above technical steps establish a double verification mechanism to deal with non-immediate state changes, by adding a buffer release period for continuous monitoring after preliminary verification, it can capture those delayed load rebounds that are not exposed in short-term verification in real time, and can trigger a complete state rollback immediately, thereby reducing the risk of final misjudgment caused by nonlinear changes in material or equipment state, and providing a guarantee for the long-term accuracy of wear assessment.

[0090] S109, when the cumulative load index reaches the preset wear warning threshold, a cutting tool maintenance warning information is issued.

[0091] Among them, the cumulative load index is the updated core variable representing the total wear of the cutter; the preset wear warning threshold is a specific upper limit of cumulative load that is pre-calibrated based on the cutter's designed service life, the average wear coefficient of the material, and a large amount of destructive experimental data. In a physical sense, it represents the critical point at which the cutter goes from a brand-new state to when its cutting performance (such as the smoothness of the cutting edge and the condition of burrs) begins to decline unacceptably; the cutter maintenance warning information refers to a clear notification or operation suggestion issued to the operator through the printer's own user interface (such as the LCD display, flashing or color-changing LED indicator) or through the connected host computer software interface (such as the driver pop-up), indicating that the cutter's lifespan is about to end or has already been exhausted.

[0092] Specifically, the current value of the updated cumulative load index is compared with a preset wear warning threshold stored in the firmware. If the cumulative load index value reaches or exceeds the preset warning threshold for the first time, the comparison result is "yes," immediately triggering a preset warning event handling function. This function, based on a preset warning method, controls the corresponding hardware interface or software API to issue a clear maintenance signal, such as displaying a message on the screen stating that the cutter's lifespan has ended and requesting immediate replacement, possibly accompanied by a buzzer sound.

[0093] In the above embodiments, a multi-level verification mechanism is triggered by dynamically capturing the load drop rate through a load sliding average. By activating a verification counter, the stability of the new working state is confirmed by continuously verifying whether the load remains stable at a low level during subsequent cuts. After confirming stability, the verification average load index of this new state is compared with a preset physical reference value representing a brand-new cutter. Therefore, even if a sudden drop in load occurs due to material replacement, the cumulative index will not be incorrectly reset as long as the stabilized load value fails to reach the new cutter reference value. This distinguishes between material replacement and actual cutter maintenance, solving the problem of maintenance management failure caused by the inability to distinguish event types in existing technologies.

[0094] In other embodiments of this application, when frequently changing materials with vastly different physical properties, misjudgment may occur due to the accidental similarity between the cutting fingerprint of a new material and the fingerprint of a new cutting tool. The label printer cutting control method provided in this application can prioritize excluding cases where the fingerprint matches a known material library before determining whether it is a new cutting tool, thereby improving the accuracy of decision-making under complex working conditions.

[0095] like Figure 2 The diagram shown is another flowchart illustrating the label printer cutting control method provided in this application, which includes the following steps:

[0096] S201. Acquire cutting duration and cutting force data during real-time cutting operation.

[0097] S202, time-integrate the cutting force data acquired within the cutting duration to obtain a real-time single-cut load index.

[0098] S203, add the real-time single-cut load index to the current stored cumulative load index to obtain a real-time cumulative load index.

[0099] S204, update the load index queue storing a preset number of historical single-cut load indexes, enqueue the real-time single-cut load index from the tail of the queue and dequeue the single-cut load index ranked at the head of the queue.

[0100] Steps S201-S204 are similar to steps S101-S104 in the embodiment shown in Figure 1 Steps S101-S104 in the embodiment shown in

[0101] S205, when the load drop rate first reaches the reset drop rate threshold, retrieve the continuous load data covering the whole cutting process collected in the latest cutting action to obtain a latest instantaneous load profile curve.

[0102] wherein the load drop rate refers to the percentage drop of the current single-cut load index relative to the previous stable stage load sliding average, used to quantify the degree of load reduction; the reset drop rate threshold refers to a preset critical value of the load drop rate used to trigger in-depth analysis, indicating that only when the load drops sharply to a certain degree, it is considered that a key event may have occurred; the latest cutting action refers to the physical cutting process corresponding to the triggering of the load drop rate threshold; the continuous load data covering the whole cutting process refers to the complete time series load readings recorded by the sensor at a high sampling frequency (e.g. hundreds or thousands of times per second) from the moment the cutter contacts the workpiece to the moment it disengages from the workpiece; the latest instantaneous load profile curve refers to the curve pattern formed after visualizing the above continuous load data with time as the X-axis and load value as the Y-axis, which can reveal the dynamic change process of the single-cut force.

[0103] Specifically, at the moment when the load drop rate reaches or exceeds the reset drop rate threshold for the first time, the flag is switched from the regular macroscopic average monitoring to the microscopic deep profiling of the specific event. During the operation of the machine, not only the average load index of each cut is calculated, but also the raw, high-frequency data stream from the load sensor (such as the servo motor current, force sensor, etc.) is continuously stored in a temporary ring buffer in the background. This buffer can usually store continuous data for the last few seconds. When S205 is triggered, first, according to the timestamp of the triggering event, the complete data segment corresponding to the last cutting action that caused the load drop is located in the ring buffer. Then, this high-fidelity continuous load data is retrieved from the buffer. This data is not a single average value, but a vector containing all the details of the cutting start, climb, peak, drop, and end. Finally, this data vector is defined as the latest instantaneous load profile curve and is passed to the subsequent step for morphological analysis. The advantage of this is that the most original and richest on-site information is retained for subsequent accurate judgment.

[0104] It can be understood that other ways can also be used to implement this step, such as using double buffering technology to achieve seamless data recording and retrieval, etc., which is not limited here.

[0105] S206, when the curve peak value of the latest instantaneous load profile curve is less than the historical baseline value and the difference between the curve peak value and the historical baseline value is greater than the preset difference threshold, obtaining a real-time cutting fingerprint parameter for the curve net peak value part in the latest instantaneous load profile curve.

[0106] Wherein, the curve peak value represents the maximum load value on the instantaneous load profile curve obtained by S205; the historical baseline value refers to the load sliding average value in the stable working stage before the load drop occurs, representing the normal load level of the old tool or old material; the preset difference threshold is a load difference threshold for preliminary effectiveness verification, ensuring that the analysis is not a small random fluctuation; the curve net peak value part refers to the part of the load profile curve that is significantly higher than the baseline noise, i.e. the main pulse area from the significant climb of the load to the fall to the initial level, representing the core process of the effective physical action of the cutting tool and the material; the peak height specifically refers to the difference between the maximum value of the net peak value part and the starting baseline of the part; the duration specifically refers to the time span from the starting point to the ending point of the net peak value part; the real-time cutting fingerprint parameter refers to a ratio obtained by dividing the peak height by the duration.

[0107] Specifically, after successfully obtaining the load curve in S205, first, a pre-check is performed, i.e., whether the curve is worth analyzing. The condition for the pre-check is that the peak value of the curve must be significantly lower than the historical baseline value (i.e., the old average load), and the difference between the two must be greater than a preset absolute threshold. This pre-check step can effectively filter out abnormal situations where the average load is reduced, but the peak value is still high (for example, sensor failure), ensuring that the subsequent calculation resources are only used for meaningful, truly low-load events.

[0108] After the pre-check, the cutting fingerprint is calculated. Net peak extraction: First, the net peak part is identified from the complete curve data. This is achieved by an algorithm, for example, starting from the beginning of the curve, when the load value exceeds a certain noise threshold, it is recorded as the starting point; then continue to search until the load value falls below the threshold, record it as the end point. The data segment between the starting point and the end point is the net peak part. Fingerprint parameter calculation: Within the extracted net peak data segment, two key indicators are calculated: peak height, i.e., the maximum value in the data segment; duration, i.e., the time difference between the end point and the starting point. Finally, divide the peak height by the duration to get the real-time cutting fingerprint parameter. The physical meaning of this parameter is that a brand new, sharp cutting knife will usually produce a high and narrow load pulse (high peak height and short duration) when cutting, so its fingerprint parameter value is larger. Conversely, the pulse shape may not necessarily become sharper due to material replacement.

[0109] In some embodiments, the cutting fingerprint parameter calculation in this step can be implemented in various ways to capture different physical characteristics: Optionally, energy fingerprint parameter based on curve integration: Perform the same pre-check and net peak extraction; Calculate the area under the curve of the net peak part (i.e., time integral of the load value), and get the total energy consumed by this cutting as the fingerprint parameter; compare this energy value with the energy value of the historical new knife.

[0110] It can be understood that other ways can also be used to implement this step, for example, using Fourier transform to analyze the frequency components of the curve as a fingerprint, etc., which are not limited here.

[0111] S207, when the difference between the real-time cutting fingerprint parameter and the historical cutting fingerprint parameter is within the preset cutting fingerprint error threshold, reset the cumulative load index to zero.

[0112] Wherein, the real-time cutting fingerprint parameter is a value calculated by S206 representing the current cutting event characteristics; the historical cutting fingerprint parameter is a cutting fingerprint parameter calculated and stored within a preset initial learning period after the last cumulative load index is reset; the preset cutting fingerprint error threshold is a permissible, small range of difference for determining whether two fingerprint parameters are similar enough to tolerate measurement noise and minor differences; the initial learning period is a period of initial working time after confirming a cutting tool replacement (i.e. resetting the cumulative load index last time), for example, the first 10 or 20 cutting, during which the fingerprint baseline of the new cutting tool is learned and established.

[0113] Specifically, after S206 successfully calculates the real-time fingerprint parameter, it is executed by comparing the fingerprint of the current event with the fingerprint of the known new cutting tool to confirm whether a physical cutting tool replacement has occurred.

[0114] When the last cumulative load index is successfully reset to zero (i.e. confirming a tool replacement), an initial learning period is entered. During this period, S205 and S206 are executed for each cutting to obtain a series of fingerprint parameters. After the learning period ends, these parameters are statistically processed (e.g. taking the average, median or removing outliers and then averaging) to obtain a stable and completely historical cutting fingerprint parameter for the current working condition (equipment, material, tool model), and is stored.

[0115] When the real-time cutting fingerprint parameter of the current event is calculated, it is compared with the stored historical cutting fingerprint parameter. If the absolute difference between the two is less than or equal to the preset cutting fingerprint error threshold, it is determined that the two match. This match is considered strong evidence of a cutting tool replacement event, as it means that the current cutting behavior pattern is highly consistent with a known new cutting tool. Once a match is determined, the final action is performed: the cumulative load index, the core wear record, is cleared.

[0116] S208, when the curve peak value of the recent instantaneous load pattern curve is less than the historical baseline value and the difference between the curve peak value and the historical baseline value is greater than the preset difference threshold, the cumulative load index is reset to zero.

[0117] Wherein, the historical baseline value is the load moving average before the verification counter is started.

[0118] The core of this step is to propose a more direct judgment criterion parallel to the S206-S207 fingerprint analysis path. The load moving average before the verification counter is started is a further clarification of the source of the historical baseline value, ensuring the accuracy of the comparison baseline.

[0119] Specifically, the trigger condition is exactly the same as the pre-check condition in S206: after the curve is obtained in S205, it is found that the peak value of the curve has dropped significantly compared to the historical baseline value (the old stable load).

[0120] If the peak load of a single cut has itself dropped to a very low level, this phenomenon is most likely that the physical cutter is replaced. The underlying physical assumption is that any change in material or change in operation method, although it can reduce the average load, is difficult to reduce the peak force in an instant of a single cut, and only a brand new, extremely sharp blade can do so.

[0121] After meeting the condition that the curve peak is much smaller than the historical baseline value, the fingerprint calculation and comparison process in S206 and S207 can be bypassed, and the judgment that the cutter has been replaced is made, and the operation of resetting the cumulative load index to zero is performed. This step can be seen as an upgraded version of the simple logic in Embodiment 1, because it no longer judges the average value, but the more representative peak value.

[0122] In some embodiments, the direct decision logic in this step can be implemented in various ways to adapt to different scenarios:

[0123] Optionally, peak value judgment based on relative drop rate: calculate the relative drop rate of the curve peak value relative to the historical baseline value, i.e. (historical baseline value - curve peak value) / historical baseline value; when the relative drop rate is greater than an extremely high threshold, the reset is performed.

[0124] Optionally, dual judgment combining peak value and area: judge whether the curve peak value is less than the peak threshold value and whether the integral area under the curve is less than the area threshold value; only when both conditions are met, the reset operation is performed. This way, by adding a judgment dimension, it can further exclude false low peak values caused by instantaneous sensor failure, and is more reliable.

[0125] It can be understood that other ways can also be used to implement this step, such as judging whether the duration of the peak load is extremely short, etc., which are not limited here.

[0126] As Figure 3 shown, it is a visual carrier for steps S205 to S207 of Embodiment 2, showing how the system distinguishes between two completely different physical events through further analysis when it detects a load drop (i.e. the peak values of curves B and C are much lower than curve A).

[0127] The function of step S205 is to capture the complete instantaneous load pattern curve like curve B or curve C in the figure from the high-frequency data cache after the system finds that the average load value has dropped significantly. Step S206 is to perform mathematical dissection on the captured curve, which calculates the peak height and net peak duration marked in the figure through an algorithm, and defines the ratio of the two as the cutting fingerprint parameter. Finally, step S207 performs the final decision judgment, and the judgment logic is most intuitively embodied in the figure: if the calculated fingerprint parameter is large (corresponding to the high and thin shape of curve B), it is determined that this is a real cutter replacement and the wear record is reset; otherwise, if the fingerprint parameter is small (corresponding to the short and fat shape of curve C), it is determined that this is only a material replacement, and the wear record is maintained. In this way, the figure powerfully proves how the present application solves the misjudgment problem commonly existing in the prior art by analyzing the two-dimensional curve shape characteristics instead of one-dimensional average value.

[0128] S209, when the load drop rate is greater than the preset reset drop rate threshold, store the current cumulative load index as a historical snapshot in the temporary storage area, and start a verification counter with an initial value of zero.

[0129] Step S209 is similar to step S105 in the embodiment shown in Figure 1 The step S105 in the embodiment shown is similar to the description in steps S106-S109, and will not be described here.

[0130] In some embodiments, before calculating the load drop rate, a dynamic compensation mechanism based on the real-time working voltage of the cutter motor can also be introduced to correct the interference of power grid voltage fluctuation on the load index, so as to improve the signal-to-noise ratio from the data source.

[0131] Specifically, this step aims to solve the interference of power grid voltage fluctuation on load measurement. The theoretical basis is that the output torque of the cutter motor and its electrical parameters (such as working current) are closely related to the input voltage. In the case of constant load, a decrease in power grid voltage will usually result in the motor drawing more current to maintain output torque, and vice versa. Since the load index in the present application is usually directly related to electrical parameters such as motor current or power, fluctuations in power grid voltage will directly translate into fluctuations in load index, which may falsely trigger a load drop judgment or mask a real drop event.

[0132] At the same time of acquiring the real-time single-cut load index of each cut, the real-time cutter motor working voltage at this time is also acquired synchronously through the voltage sensor. A preset standard reference voltage is pre-stored, which is usually the rated power supply voltage of the factory (for example, three-phase 380V or single-phase 220V). The real-time voltage is compared with the standard voltage, and the deviation percentage of the current voltage is calculated according to the formula: voltage deviation rate = (real-time voltage - standard voltage) / standard voltage. The deviation rate is a signed value, which is negative when the voltage is too low and positive when the voltage is too high. According to the calculated voltage deviation rate, the original load index is inversely compensated.

[0133] When the real-time voltage is lower than the standard voltage (deviation rate is negative), it means that the original load index may be raised due to the motor drawing more current. At this time, the load index is adjusted downward by the proportion of the voltage deviation rate. For example, if the voltage is 5% lower (deviation rate -0.05), then the corrected index = original index * (1-0.05) = original index * 0.95.

[0134] When the real-time voltage is higher than the standard voltage (deviation rate is positive), it means that the original load index may be depressed due to the motor drawing less current. At this time, the load index is adjusted upward by the proportion of the voltage deviation rate. For example, if the voltage is 3% higher (deviation rate +0.03), then the corrected index = original index * (1+0.03) = original index * 1.03.

[0135] After the above compensation calculation, the corrected real-time single-cut load index is obtained, which replaces the original, uncorrected load index and is used in all subsequent calculation processes, including updating the load index queue (S204) and calculating the final load drop rate triggering S209.

[0136] The above technical steps can strip the electrical noise introduced by unstable power supply by monitoring the voltage fluctuation in real time and inversely compensating the load measurement value related to voltage change, ensuring that the final load drop rate used for decision-making only reflects the real physical wear or material change, thereby reducing the system misjudgment rate caused by power grid interference and greatly improving the robustness and reliability of decision-making.

[0137] S210, in the cutting operation of presetting the verification times after starting the verification counter, the real-time single-verification-cut load index corresponding to each cut is acquired.

[0138] S211, in the case that the real-time single-verification-cut load index is lower than the load moving average before starting the verification counter, the count value of the verification counter is increased by one.

[0139] S212, after completing the cutting operation of the preset verification number of times, if the final count value of the verification counter is equal to the preset verification number of times and the verification average load index is equal to or less than the preset cutter physical reference value, the cumulative load index is set to zero.

[0140] S213, when the cumulative load index reaches the preset wear warning threshold, a cutter maintenance warning information is issued.

[0141] Steps S210-S213 are similar to steps S106-S109 in the embodiment shown in Figure 1 The steps S106-S109 in the embodiment shown in the above are similar to the description in steps S106-S109, and will not be repeated here.

[0142] In the above embodiment, when the load is detected to drop sharply, the single average load value is no longer relied on, but the instantaneous load pattern curve covering the whole cutting process is called and analyzed, so that higher dimensional data information is obtained. Further, by calculating the ratio of the peak height to the duration of the curve, the cutting fingerprint parameter capable of representing the sharpness of the cutting process is constructed, which can distinguish the two cases of new cutter cutting (peak height duration ratio is large) and old cutter cutting soft material which are physically different in essence. By understanding the process details to make a judgment, the accuracy of the cutter replacement event recognition is improved.

[0143] Next, an example label printer cutting control system 400 provided by an embodiment of the present application is introduced. Figure 4 is an example hardware structure schematic diagram of the label printer cutting control system 400 provided by an embodiment of the present application.

[0144] In some embodiments, the label printer cutting control system 400 is a computer device or includes a computer device in the label printer cutting control system 400. The computer device includes a processor, a memory, and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capability. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operating system and the computer program in the non-volatile storage medium to run. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with other terminals or servers outside through network connection. In some embodiments, the network interface can be a wired network interface, and in some embodiments, the network interface can also be a wireless network interface. The computer program is executed by the processor to implement the method in the embodiment of the present application.

[0145] Those skilled in the art can understand that, Figure 4The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. A specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0146] The above-described embodiments are only used to illustrate the technical scheme of the present application, but not limit it; although the technical scheme recorded in the foregoing embodiments has been described in detail, those skilled in the art should understand that the technical scheme recorded in the foregoing embodiments can be modified, or some technical features can be replaced by equivalents; and these modifications or replacements do not make the essence of the corresponding technical scheme deviate from the scope of the technical scheme of the embodiments of the present application.

[0147] In the above embodiments, according to the context, the term "when" can be interpreted as "if" or "after" or "in response to determining" or "in response to detecting". Similarly, according to the context, the phrase "upon determining" or "if detecting (the stated condition or event)" can be interpreted as "if determining" or "in response to determining" or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)".

[0148] In the above embodiments, all or part of the technical scheme can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the technical scheme can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) mode. The computer readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media. The available media can be magnetic media (for example, floppy disk, hard disk, magnetic tape), optical media (for example, DVD), or semiconductor media (for example, solid state disk) and the like.

[0149] Those skilled in the art can understand that all or part of the processes in the above-mentioned method embodiments can be implemented by a computer program instructing relevant hardware to complete, the program can be stored in a computer readable storage medium, and the program can include the processes of the above-mentioned method embodiments when executed. The aforementioned storage medium includes ROM or random storage memory RAM, magnetic disc or optical disc and various storage code medium.

Claims

1. A label printer cutting control method characterized by, The method comprises: acquiring cutting duration and cutting force data during real-time cutting operation; time-integrating the cutting force data acquired within the cutting duration to obtain a real-time single-cut load index; adding the real-time single-cut load index to a current stored cumulative load index to obtain a real-time cumulative load index; updating a load index queue storing a preset number of historical single-cut load indexes, enqueuing the real-time single-cut load index from the tail of the queue and dequeuing the single-cut load index ranked at the head of the queue; when a load drop rate is greater than a preset reset drop rate threshold, storing the current cumulative load index as a historical snapshot in a temporary storage area and starting a verification counter with an initial value of zero; the load drop rate is a ratio of a difference between a load moving average value and the real-time single-cut load index and the load moving average value; the load moving average value is an arithmetic mean of all single-cut load indexes in the load index queue; during a preset verification number of cutting operations after starting the verification counter, acquiring a real-time single-verification-cut load index corresponding to each cutting operation; in a case where the real-time single-verification-cut load index is lower than the load moving average value before starting the verification counter, increasing the count value of the verification counter by one; after completing the preset verification number of cutting operations, if the final count value of the verification counter is equal to the preset verification number and a verification average load index is equal to or lower than a preset cutter physical reference value, setting the cumulative load index to zero; the verification average load index is an arithmetic mean of single-cut load indexes in the preset verification number of cutting operations; the preset cutter physical reference value is obtained by using a plurality of brand-new cutters of the same model to cut a standard test material multiple times, collecting a plurality of reference single-cut load indexes and calculating an average value; if the final count value is less than the preset verification number, reading the historical snapshot from the temporary storage area and setting the cumulative load index to a value corresponding to the historical snapshot; when the cumulative load index reaches a preset wear warning threshold, issuing a cutter maintenance warning message.

2. The method of claim 1, wherein, after the cumulative load index is set to zero when the final count value of the verification counter is equal to the preset verification number and the verification average load index is equal to or lower than the preset cutter physical reference value, the method further comprises: during a preset number of continuous cutting operations for buffer release, continuously acquiring a real-time buffer single-cut load index, updating the load index queue and calculating a latest load moving average value; when the real-time buffer single-cut load index exceeds a preset rebound proportion of the load moving average value before starting the verification counter, setting the current cumulative load index to a value corresponding to the historical snapshot and restoring data in the load index queue to a state before starting the verification counter.

3. The method of claim 1, wherein, In the load index queue of the preset number of historical single-cut load indices, the real-time single-cut load index is enqueued from the tail and the single-cut load index ranked at the head is dequeued, and the method further comprises the following steps: When the load drop rate first reaches the reset drop rate threshold, the continuous load data covering the whole cutting process collected in the last cutting action is called to obtain a latest instantaneous load profile curve; When the curve peak value of the latest instantaneous load profile curve is less than a historical baseline value and the difference between the curve peak value and the historical baseline value is greater than a preset difference threshold, the cumulative load index is reset to zero; the historical baseline value is a load sliding average value before the verification counter is started.

4. The method of claim 3, wherein, When the load drop rate first reaches the reset drop rate threshold, the continuous load data covering the whole cutting process collected in the last cutting action is called to obtain a latest instantaneous load profile curve, and the method further comprises the following steps: When the curve peak value of the latest instantaneous load profile curve is less than a historical baseline value and the difference between the curve peak value and the historical baseline value is greater than a preset difference threshold, a real-time cutting fingerprint parameter is obtained from a curve net peak value part in the latest instantaneous load profile curve; the cutting fingerprint parameter is a ratio of a peak height of the curve net peak value part to a duration of the curve net peak value part; When the difference between the real-time cutting fingerprint parameter and a historical cutting fingerprint parameter is within a preset cutting fingerprint error threshold range, the cumulative load index is reset to zero; the historical cutting fingerprint parameter is a cutting fingerprint parameter calculated and stored within a preset initial learning period after the last cumulative load index is reset.

5. The method of claim 1, wherein, Before the step of storing the current cumulative load index as a historical snapshot in a temporary storage area and starting a verification counter with an initial value of zero when the load drop rate is greater than a preset reset drop rate threshold, the method further comprises the following steps: After each cutting operation, a time interval between the end of the cutting operation and the arrival of a next cutting instruction is recorded as an instantaneous cutting interval; A sliding average value of the instantaneous cutting interval of the latest preset rhythm threshold is calculated in real time to obtain an average working rhythm parameter; The average working rhythm is mapped to a thermal effect compensation factor in combination with a preset rhythm-load compensation curve; The thermal effect compensation factor is added to the real-time single-cut load index, the real-time single-cut load index is corrected and replaces the real-time single-cut load index for calculating the load drop rate.

6. The method of claim 1, wherein, Before the step of storing the current cumulative load index as a historical snapshot in a temporary storage area and starting a verification counter with an initial value of zero when the load drop rate is greater than a preset reset drop rate threshold, the method further comprises the following steps: A real-time cutting knife motor working voltage is obtained, and a voltage deviation rate between the real-time cutting knife motor working voltage and a preset standard reference voltage is calculated; the voltage deviation rate is a ratio of a difference between the real-time cutting knife motor working voltage and the preset standard reference voltage to the preset standard reference voltage; When the real-time cutter motor operating voltage is lower than the preset standard reference voltage, the load index is adjusted downward according to the voltage deviation rate, and when the real-time cutter motor operating voltage is higher than the preset standard reference voltage, the load index is adjusted upward according to the voltage deviation rate, to obtain a corrected real-time single-cut load index and replace the real-time single-cut load index for calculating the load reduction rate.

7. A label printer cutting control system characterized by, The label printer cutting control system comprises one or more processors and a memory; the memory is coupled with the one or more processors, and the memory is configured to store computer program codes comprising computer instructions, and the one or more processors are configured to invoke the computer instructions to enable the label printer cutting control system to perform the method according to any one of claims 1-6.

8. A computer program product comprising instructions, characterized in that, When the computer program product is run on the label printer cutting control system, the label printer cutting control system is enabled to perform the method according to any one of claims 1-6.

9. A computer-readable storage medium comprising instructions, characterized in that, When the instructions are run on the label printer cutting control system, the label printer cutting control system is enabled to perform the method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Online tool wear monitoring system and detection method thereof

    CN105234746A

  • Tool damage / abnormality detecting device

    CN1796973A