Label paper feeding positioning method and device, storage medium and terminal
By obtaining the number of face papers and sensor positions of the label paper, using preset paper-moving rules and compensation calculation methods, the problem of inaccurate positioning of the short label paper printer is solved, and the precise alignment and efficient printing of the label paper are achieved.
Patent Information
- Application Number
- CN202510569231.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-30
- Publication Date
- 2025-08-08
AI Technical Summary
When existing label printers process short label paper, it is difficult to accurately locate the position where each printing starts, resulting in the inability to print intact or overlap, affecting the printing effect and increasing waste of paper.
By obtaining the complete number of paper in the interval distance between the first sensor and the printing line, it is determined that the sensor position is in a gap or paper, and the alignment operation is performed according to the corresponding preset paper removal rules, including a paper removal compensation calculation method based on the number of paper removal.
Ensure that the next printed side paper is accurately aligned with the printing line position during each printing, improve printing efficiency and ensure printing quality, and solve the problem of paper removal positioning caused by different lengths of label paper.
Smart Images

Figure CN120439697A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of label printing technology, and in particular to a method, device, storage medium and terminal for positioning label paper. Background Art
[0002] With the continuous advancement of label printing technology, label printers are playing a vital role in many fields. For example, in the retail and merchandise management sectors, label printers are used to print price tags, promotional labels, and other items to enhance product display and promotional effectiveness. In the logistics and warehousing sectors, label printers are used to print various logistics labels and cargo labels, helping users track and manage goods. However, due to their short size, existing printers struggle to accurately locate the starting point of each print when processing short labels. This can result in incomplete information being printed on a single label sheet, impacting print quality. Summary of the Invention
[0003] The present application provides a paper feed positioning method, device, storage medium and terminal for label paper to solve the technical problem of inaccurate paper feed positioning of the above-mentioned label printer.
[0004] In a first aspect, an embodiment of the present application provides a method for positioning label paper, the method comprising:
[0005] In response to a paper feed positioning request for target label paper, obtaining the number of complete face sheets of paper within a distance between a first sensor and a print line, wherein the first sensor is located upstream of the print line in a paper feed direction;
[0006] Determining that the first sensor is located in the gap or in the tissue paper;
[0007] The next paper to be printed is aligned with the printing line as a reference according to the preset paper feeding rule corresponding to the gap or paper. The preset paper feeding rule includes a paper feeding compensation calculation method set based on the number of paper sheets.
[0008] In a second aspect, an embodiment of the present application provides a paper feeding and positioning device for label paper, the device comprising:
[0009] a paper quantity acquisition module, configured to, in response to a paper feed positioning request for target label paper, acquire the number of complete paper sheets within a distance between a first sensor and a print line, wherein the first sensor is located upstream of the print line in a paper feed direction;
[0010] A sensor determination module, configured to determine whether the first sensor is located in a gap or in tissue paper;
[0011] The paper feed compensation module is used to align the next surface paper to be printed with the print line as the reference according to the preset paper feed rules corresponding to the gap or surface paper. The preset paper feed rules include a paper feed compensation calculation method set based on the number of surface papers.
[0012] In a third aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the steps of the above method.
[0013] In a fourth aspect, an embodiment of the present application provides a terminal comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is suitable for being loaded by the processor and executing the steps of the above method.
[0014] The beneficial effects of the technical solutions provided by some embodiments of the present application include at least:
[0015] The present application provides a paper feeding positioning method for label paper. In response to a paper feeding positioning request for a target label paper, the method obtains the number of complete face sheets in the interval between a first sensor and a printing line, wherein the first sensor is located upstream of the printing line in the paper output direction; determines whether the position of the first sensor is in a gap or face sheet; and aligns the next face sheet to be printed with the printing line as a reference according to a preset paper feeding rule corresponding to the gap or face sheet, wherein the preset paper feeding rule includes a paper feeding compensation calculation method set based on the number of face sheets.
[0016] By accurately calculating the number of complete face sheets in the interval between the first sensor and the print line, it is possible to ensure that after the current face sheet is printed, the current paper status is accurately understood, providing data support for subsequent paper feed positioning operations and helping to accurately control the paper feed amount; by determining whether the current position of the first sensor is a gap or face sheet, the current position of the label paper can be accurately positioned, thereby determining which paper feed compensation method to use to adjust the paper position in the future to ensure that the next face sheet to be printed can be accurately aligned with the print line; different preset paper feed rules are applied according to the position judgment result of the sensor, and the paper feed compensation calculation method in the preset paper feed rules is set based on the number of face sheets obtained in the previous step. This calculation method can accurately compensate for paper feed of different lengths of label paper, solving the paper feed positioning problem caused by different lengths of label paper. Through the method of the present application, the target label paper can be accurately fed according to the different preset paper feed rules corresponding to the position of the first sensor, thereby ensuring that the next face sheet to be printed can be accurately aligned with the print line position each time printing is performed, improving printing efficiency while ensuring printing quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0018] Figure 1 An exemplary system architecture diagram of a label paper feeding and positioning method provided in an embodiment of the present application;
[0019] Figure 2 A schematic diagram of a flow chart of a method for positioning label paper provided in an embodiment of the present application;
[0020] Figure 3 A schematic diagram of the components of a label printer provided in an embodiment of the present application;
[0021] Figure 4 A schematic diagram of the structural relationship of sensors in a label printer provided in an embodiment of the present application;
[0022] Figure 5 A schematic diagram of a flow chart of a method for positioning label paper provided in an embodiment of the present application;
[0023] Figure 6 A schematic diagram illustrating the principle of a method for positioning label paper feeding provided in an embodiment of the present application;
[0024] Figure 7 A schematic diagram illustrating the principle of a method for positioning label paper feeding provided in an embodiment of the present application;
[0025] Figure 8 A schematic diagram of a flow chart of a method for positioning label paper provided in an embodiment of the present application;
[0026] Figure 9 A schematic diagram illustrating the principle of a method for positioning label paper feeding provided in an embodiment of the present application;
[0027] Figure 10 Schematic diagram of the principle of a label paper feeding and positioning method provided in an embodiment of the present application
[0028] Figure 11 A structural block diagram of a paper feeding and positioning device for label paper provided in an embodiment of the present application;
[0029] Figure 12 A schematic diagram of the structure of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] To make the features and advantages of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts shall fall within the scope of protection of this application.
[0031] When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are merely examples of devices and methods consistent with certain aspects of the present application, as detailed in the appended claims.
[0032] With the continuous advancement of label printing technology, label printers play a vital role in various fields, including retail, merchandise management, logistics, and warehousing. For example, in the retail industry, label printers are used to produce price tags and promotional labels, helping to enhance product display and promotional effectiveness. In the logistics and warehousing fields, they are used to produce logistics labels and cargo labels, enabling effective tracking and management of goods.
[0033] However, existing label printers face challenges when processing short label paper. Due to the short size of short label paper, precise paper feed control is complex. Traditional printing methods struggle to precisely locate the start of each print, which can lead to incomplete or overlapping information, affecting the readability and aesthetics of the label. Furthermore, inaccurate print positioning can increase paper waste and printing costs.
[0034] Therefore, an embodiment of the present application provides a short label positioning method to solve the technical problem of inaccurate positioning of the surface paper of the label printer mentioned above.
[0035] See also Figure 1 , Figure 1 This is an exemplary system architecture diagram of a label paper feeding and positioning method provided in an embodiment of the present application.
[0036] like Figure 1 As shown, the system architecture may include a terminal 101, a network 102, and a server 103. The network 102 is used to provide a medium for a communication link between the terminal 101 and the server 103. The network 102 may include various types of wired communication links or wireless communication links, for example, a wired communication link may include an optical fiber, a twisted pair, or a coaxial cable, and a wireless communication link may include a Bluetooth communication link, a Wireless-Fidelity (Wi-Fi) communication link, or a microwave communication link.
[0037] The terminal 101 can interact with the server 103 through the network 102 to receive messages from the server 103 or send messages to the server 103, or the terminal 101 can interact with the server 103 through the network 102 to receive messages or data sent to the server 103 by other users. The terminal 101 can be hardware or software. When the terminal 101 is hardware, it can be various electronic devices, including but not limited to label printers, etc. When the terminal 101 is software, it can be installed in the electronic devices listed above, which can be implemented as multiple software or software modules (for example: for providing distributed services), or it can be implemented as a single software or software module, which is not specifically limited here.
[0038] In an embodiment of the present application, the terminal 101 first responds to a paper feed positioning request for the target label paper, obtains the number of complete face sheets in the interval distance from the first sensor to the print line, and the first sensor is located upstream of the print line in the paper output direction; then the terminal 101 determines whether the position of the first sensor is in the gap or face sheet; finally, the terminal 101 aligns the next face sheet to be printed with the print line as the reference according to the preset paper feed rules corresponding to the gap or face sheet, and the preset paper feed rules include a paper feed compensation calculation method set based on the number of face sheets.
[0039] The server 103 may be a business server that provides various services. It should be noted that the server 103 may be hardware or software. When the server 103 is hardware, it may be implemented as a distributed server cluster consisting of multiple servers, or it may be implemented as a single server. When the server 103 is software, it may be implemented as multiple software or software modules (for example, for providing distributed services), or it may be implemented as a single software or software module, which is not specifically limited herein.
[0040] Alternatively, the system architecture may also not include the server 103. In other words, the server 103 may be an optional device in the embodiments of this specification, that is, the method provided in the embodiments of this specification may be applied to a system structure that only includes the terminal 101, and the embodiments of this application do not limit this.
[0041] It should be understood that Figure 1 The number of terminals, networks, and servers in the figure is only for illustration and any number of terminals, networks, and servers may be used according to implementation requirements.
[0042] See also Figure 2 , Figure 2This is a flowchart of a method for positioning paper feed for label paper provided in an embodiment of the present application. The execution subject of this embodiment of the present application can be a terminal that executes the positioning method for label paper feed, a processor within the terminal that executes the positioning method for label paper feed, or a label paper positioning service within the terminal that executes the positioning method for label paper feed. For ease of description, the specific execution process of the positioning method for label paper feed is described below, taking the processor within the terminal as an example.
[0043] like Figure 2 As shown, the paper feeding and positioning method of the label paper may at least include:
[0044] S202: In response to a paper feeding positioning request for target label paper, obtain the number of complete face sheets in a distance between a first sensor and a printing line, wherein the first sensor is located upstream of the printing line in a paper output direction.
[0045] Optionally, Figure 3 This is a schematic diagram of the components of a label printer provided in an embodiment of the present application. Figure 3As shown, the overall structure of a label printer consists of four main parts: the top cover, the printer body, the paper return assembly, and the label paper. The top cover, located at the top of the label printer, primarily protects the internal components and can be opened when needed to replace the label paper or perform maintenance. The print head (with its print line) is located in the top cover and typically consists of a thermal element. It directly contacts the label paper and prints information onto the surface paper. The printer body contains the printer's main working components and control circuitry, and is the core of the entire printer. It primarily includes the platen roller, print line, and tear-off blade. The platen roller works in conjunction with the print head to apply appropriate pressure to keep the label paper against the print head, ensuring print quality. The platen roller also participates in the label paper feed process, helping to control the label paper's forward speed and position. The print line defines the label paper's path within the printer, ensuring that the label paper moves along a predetermined trajectory, thereby ensuring accurate printing position. The tear-off blade, located after the print area, separates the label paper from the backing paper after printing, making it easier for users to access the printed labels. The paper return assembly is responsible for feeding and discharging labels, ensuring they enter the printer smoothly and are ejected after printing. The sensor in the paper return assembly consists of a transmitter and a receiver, which detect the position and status of the label. When the label passes the sensor, the transmitter emits a signal, and the receiver detects the change in the signal, detecting the presence of the label and transmitting the signal to the printer's control system to determine whether the label has reached the specified position. The paper return assembly includes two sets of sensors, one on either side of the print line, which work together to improve the accuracy and reliability of label position detection. Label paper consists of a backing paper, a face paper, and a gap. The backing paper is the bottom layer of the label, supporting the face paper and is removed after printing. The face paper, located on top of the label, carries the printed information. The top and bottom edges of the face paper define the effective printing area of the label. The gap is the space between the face paper and the backing paper, allowing the face paper to be removed from the backing paper after printing.
[0046] Optionally, Figure 4 The schematic diagram of the structural relationship of the sensor in a label printer provided in the embodiment of the present application shows the positional relationship between the sensor, the printing line and the tearing knife in the label printer. Figure 4As shown, the first sensor a, the printing line b, the second sensor c, and the paper cutter d are distributed in sequence from upstream to downstream in the paper output direction i of the label paper g. After printing the face paper e of the current label paper, the upper edge of the face paper e of the next label paper can be moved to the position of the printing line b through the first sensor a, so as to ensure that each time a new label is printed, it starts from the upper edge position of the face paper e, and thus the complete information is printed on the face paper e of the next label paper. The distance between the first sensor a and the printing line b in the paper output direction i is L3, the distance between the printing line b and the second sensor c in the paper output direction i is L2, and the distance between the second sensor c and the paper cutter d in the paper output direction i is L1. The rectangular area that occupies a relatively large area in the base paper g is the face paper e, and the height of the face paper e in the paper output direction i is H2; the gap between adjacent face papers e on the base paper g is the gap f, and the height of the gap f in the paper output direction i is H1.
[0047] Optionally, in order to ensure accurate positioning and processing of label papers with different lengths during the printing process, the method of the embodiment of the present application is based on the physical dimensions of the label paper (the height H2 of the face paper e and the height H1 of the gap f) and the relative positional relationship between the first sensor a and the printing line b, distinguishes different types of label papers, and adopts different paper feeding calculation methods, so as to achieve precise paper feeding control during the label printing process. Specifically, when L3 > H2 + H1, the face paper e is a short label face paper; when L3 < H2 + H1, the face paper e is a long label face paper. Taking Figure 4 as an example, since L3 > H2 + H1, this label paper is a short label paper. Further, since H2 is the height of the face paper e and H1 is the height of the gap f, H2 + H1 represents the height of a complete label paper (including the face paper e and the gap f below it). When L3 > H2 + H1, it means that at least one complete label paper (face paper e and gap f) can be accommodated between the printing line b and the first sensor a. At this time, by calculating L3 / (H2 + H1) and rounding down, the number of face papers N can be obtained, and this number of face papers N represents the number of complete short label papers sandwiched between the printing line b and the first sensor a. Further, the corresponding relationship between the current printing position and the complete label paper can be judged according to the value of the number of face papers N, and then the paper feeding operation can be adjusted so that the next face paper e can be accurately aligned with the printing line b, ensuring the printing effect and the integrity of the label. When L3 < H2 + H1, it means that the distance between the printing line b and the first sensor a is not enough to accommodate a complete label paper. In this case, there may be only some incomplete face papers between the printing line b and the first sensor a, and different paper feeding strategies from those for short label face papers need to be adopted to avoid printing on incomplete face papers.
[0048] It should be noted that in order to clearly and accurately describe the paper feeding strategies of different types of label papers, this patent only describes the paper feeding method of short label type paper (that is, L3>H2+H1).
[0049] Optionally, after the current sheet of the target label paper is printed, in order to accurately align the next sheet of paper with the print line, the target label paper needs to be re-positioned. When the target label paper is short label paper, L3>H2+H1, which means that there may be several complete sheets of paper e and gaps f in the distance L3 between the first sensor a and the print line b. Since the number N of complete sheets of paper in this distance directly affects how the label paper is subsequently positioned, when responding to a paper positioning request for the target label paper, it is first necessary to obtain the number N of complete sheets of paper in the distance L3 between the first sensor a and the print line b.
[0050] Alternatively, a specific sensor can be used to identify the characteristic differences between the face paper e and the gap f on the target label paper, and the different signals detected by the specific sensor can be processed and analyzed to determine the number of face paper sheets N within the spacing distance L3. Alternatively, the spacing distance L3 from the first sensor a to the print line b can be calculated, and the number of complete face paper sheets N that can be accommodated within this interval can be accurately calculated based on the numerical relationship between H2 and H1.
[0051] S204: Determine whether the first sensor is located in the gap or in the paper.
[0052] Optionally, because the calculation methods differ depending on whether paper feeding starts at the gap or the face paper, it is also necessary to determine the position of the first sensor a. As the target label paper moves within the label printer, the first sensor a captures the signal changes on it in real time. These signal changes reflect the alternation between the face paper e and the gap f on the target label paper. By processing and analyzing these signals, the first sensor a can accurately determine whether the sensor itself is currently in the face paper e or the gap f. Once the position of the first sensor a is determined, this information is immediately fed back to the printing control system. The control system will select different paper feeding rules and alignment operations based on the different positions of the first sensor a to ensure that subsequent printing tasks can be carried out accurately.
[0053] S206 , aligning the next paper to be printed with the printing line as a reference according to the preset paper feeding rule corresponding to the gap or paper, wherein the preset paper feeding rule includes a paper feeding compensation calculation method set based on the number of paper sheets.
[0054] Optionally, after determining the position of the first sensor a, the method of the embodiment of the present application will automatically select the preset paper feed rule corresponding to the position, and use it to perform precise alignment operations on the next surface paper to be printed, ensuring that the printed content can be completely and accurately presented on the label paper. Specifically, when the first sensor a is at the position of gap f, the preset paper feed rule specific to gap f will be used; when the first sensor a is at the position of surface paper e, the preset paper feed rule corresponding to surface paper e will be used. Furthermore, the paper feed compensation amount is calculated based on the paper feed compensation calculation method in the selected preset paper feed rule, and the label printer is controlled to perform an alignment operation based on the paper feed compensation amount. The alignment operation uses the print line as a reference to ensure that the next surface paper to be printed can be accurately aligned to the position of the print line.
[0055] In an embodiment of the present application, a paper feed positioning method for label paper is provided. In response to a paper feed positioning request for a target label paper, the number of complete face sheets in the interval between a first sensor and a print line is obtained, and the first sensor is located upstream of the print line in the paper output direction; it is determined whether the position of the first sensor is in a gap or face sheet; and the next face sheet to be printed is aligned with the print line as a reference according to a preset paper feed rule corresponding to the gap or face sheet, and the preset paper feed rule includes a paper feed compensation calculation method set based on the number of face sheets. By accurately calculating the number of complete face sheets in the interval between the first sensor and the print line, it is possible to ensure that after the current face sheet is printed, the current paper status is accurately understood, providing data support for subsequent paper feed positioning operations and helping to accurately control the paper feed amount; by determining whether the current position of the first sensor is a gap or face sheet, the current position of the label paper can be accurately positioned, thereby determining which paper feed compensation method to use to adjust the paper position in the future to ensure that the next face sheet to be printed can be accurately aligned with the print line; different preset paper feed rules are applied according to the position judgment result of the sensor, and the paper feed compensation calculation method in the preset paper feed rules is set based on the number of face sheets obtained in the previous step. This calculation method can accurately compensate for paper feed of different lengths of label paper, solving the paper feed positioning problem caused by different lengths of label paper. Through the method of the present application, the target label paper can be accurately fed according to the different preset paper feed rules corresponding to the position of the first sensor, thereby ensuring that the next face sheet to be printed can be accurately aligned with the print line position each time printing is performed, improving printing efficiency while ensuring printing quality.
[0056] See also Figure 5 , Figure 5 A schematic flow chart of a method for positioning label paper feed provided in an embodiment of the present application.
[0057] like Figure 5 As shown, the paper feeding and positioning method of the label paper may at least include:
[0058] S502: Calculate the number of intact face sheets of the target label paper within the gap distance based on the gap distance, the height of the face sheets in the paper output direction, and the height of the gap in the paper output direction.
[0059] Optionally, when the size of the target label paper is fixed, the number N of complete face sheets contained in the distance between the first sensor a and the print line b will also be a fixed constant. In order to facilitate the subsequent paper feed calculation process to directly obtain the relevant face sheet number N, when the label printer detects a new label paper, it can directly calculate the face sheet number N inherent in the target label paper and record it.
[0060] Optionally, when calculating the number of sheets N of the target label paper, relevant data for the label printer and the target label paper must first be determined. This includes the distance L3 between the first sensor a and the print line b, the height H2 of the sheet e in the paper exit direction i, and the height H1 of the gap f in the paper exit direction i. This data can be obtained using the printer's mechanical design parameters or real-time sensor measurements. Then, based on this collected data, a preset algorithm is used to calculate the number N of intact sheets of the target label paper within the gap distance L3. Specifically, the calculation formula is as follows: N = floor(L3 / (H2+H1)), where the floor function rounds down to ensure that the calculated number of sheets is an integer. This formula takes into account the heights of the sheet e and the gap f, as well as their distribution within the gap distance L3. For example, when L3 = 5, H2 = 2.5, and H1 = 1, N = floor(1.43) = 1, indicating that there is a complete sheet of sheet e within the gap distance L3.
[0061] S504. In response to a paper feed positioning request for the target label paper, the number of intact face papers in the interval between the first sensor and the print line is obtained, the first sensor is located upstream of the print line in the paper output direction; the distance from the print line to the tearing knife in the paper output direction is greater than the height of the face paper in the paper output direction; and it is determined that the position of the first sensor is in the gap or the face paper.
[0062] Optionally, when positioning the target label paper for feeding, the calculated number of sheets N is obtained, and the position of the first sensor a is determined, so that paper feeding compensation can be performed according to the corresponding preset paper feeding rules. Specifically, regarding obtaining the number of sheets N and determining the position of the first sensor a in step S504, please refer to the detailed description of steps S202 and S204, and will not be repeated here.
[0063] Alternatively, if the distance (L1+L2) between the print line b and the tear-off blade d is less than the height H2 of the paper e, if the user is in a hurry to tear the paper or the tear-off blade moves too quickly, the current paper may be torn off before the printing task is completed. This will result in incomplete printed content on the label paper, missing information, and affecting print quality. Therefore, when designing the printer, the distance from the print line b to the tear-off blade d can be appropriately increased to be greater than the height H2 of the paper e. This provides a certain safety margin, giving the printer enough time to complete the printing task of the entire paper e without worrying about unfinished labels being torn off prematurely.
[0064] S506: When the first sensor is located in the gap, a first paper feeding compensation distance corresponding to the target label paper is calculated according to a preset paper feeding rule corresponding to the gap.
[0065] Optionally, when the first sensor a is located in the gap f, the first paper feed compensation distance of the target label paper at this time will be further calculated according to the preset paper feed rule corresponding to the gap f. The calculation of this distance takes into account factors such as the number of face sheets N, the spacing distance L3 between the first sensor a and the print line b, the height H2 of the face sheet e, the height H1 of the gap f, and the possible gap entry distance. The gap entry distance is determined based on the relative positional relationship between the first sensor a and the gap f, specifically the distance between the first sensor a and the upper edge of the gap f in which it is located in the paper output direction i. For example, Figure 6 The schematic diagram of the principle of a paper feeding positioning method for label paper provided in the embodiment of the present application shows the positional relationship between the various components of the sensor and the target label paper after the current paper f1 is printed. Figure 6 In FIG, the gap entry distance is the distance between the first sensor a and the upper edge of the gap f2 in the paper output direction i, and is represented by E1; the first paper feed compensation distance finally calculated is represented by D1.
[0066] S508: Align the upper edge of the next paper to be printed in the paper output direction with the print line according to the first paper feed compensation distance.
[0067] Optionally, based on the calculated first paper feed compensation distance, the paper feed mechanism in the label printer drives the target label paper a corresponding distance in the paper output direction until the top edge of the next paper to be printed is aligned with the print line. This ensures that each new print begins at the very top of the label paper, preventing information misalignment or loss. After completing the paper feed compensation, alignment verification is performed. For example, alignment marks can be read to confirm that the next paper to be printed is accurately aligned with the print line. If the alignment is found to be inaccurate, fine-tuning can be performed based on the verification results.
[0068] S510: When the first sensor is located in the face paper, determine whether the first sensor detects a gap during the printing of the current face paper, and determine whether the current printing face paper is a single page print.
[0069] Optionally, the gap f serves as an important marker for distinguishing different sheets of paper e. When the first sensor a is positioned within the sheet of paper e, in order to distinguish whether the sheet of paper e at the first sensor a's location is the current printing sheet or the next sheet to be printed, it is necessary to determine whether the first sensor a detects the passage of the gap f during the printing process of the current sheet of paper. If the first sensor a detects the passage of the gap f during this process, the sheet of paper e at the first sensor a's location is definitely not the current printing sheet, but the next sheet to be printed, or even the sheet to be printed after that.
[0070] Optionally, in actual applications, users may need to choose cross-page printing or single-page printing according to different printing needs. Cross-page printing means that the information printed at one time is printed on multiple sheets of paper. The current sheet of paper contains a part of the printed content, and the next page of paper or even the next page of paper also contains a part of the printed content; single-page printing means that the printed content of the current sheet of paper is completely contained in the sheet of paper, and there is no cross-page printing. If the current printing sheet of paper is cross-page printing, it means that part of the printed content of the current printing sheet of paper is also printed on the next sheet of paper to be printed. At this time, it is necessary to align the next sheet of paper to be printed (or the next sheet of paper to be printed) with the print line b, and the number of pages of cross-page printing needs to be considered; and if the current printing sheet of paper is single-page printing, it means that the next sheet of paper to be printed is the sheet of paper e that needs to be aligned with the print line b, and there is no need to consider the additional complexity brought by cross-page printing, and the paper feed compensation calculation is relatively simpler. The embodiment of the present application only considers the paper feed compensation calculation method when the current printing sheet of paper is single-page printing, and does not involve cross-page printing.
[0071] S512: If the first sensor detects that a gap has passed and the current printing surface paper is a single-page printing surface paper, a second paper feed compensation distance corresponding to the target label paper is calculated according to a preset paper feed rule corresponding to the surface paper.
[0072] Optionally, when the first sensor detects that a gap has passed and the current printing paper is a single-page print, the second paper feed compensation distance of the target label paper at this time will be further calculated according to the preset paper feed rule corresponding to the paper e. The calculation of this distance takes into account factors such as the number of paper sheets N, the spacing distance L3 between the first sensor a and the print line b, the height H2 of the paper e, the height H1 of the gap f, and the possible gap distance. Among them, the gap distance is determined based on the relative position relationship between the first sensor a and the paper e, specifically the distance between the first sensor a and the upper edge of the paper e in the paper output direction i. For example, Figure 7The schematic diagram of the principle of a paper feeding positioning method for label paper provided in the embodiment of the present application shows the positional relationship between the various components of the sensor and the target label paper after the current paper f1 is printed. Figure 7 In the figure, the gap distance is the distance between the first sensor a and the upper edge of the surface paper e3 in the paper output direction i, which is represented by E2; the second paper feed compensation distance finally calculated is represented by D2.
[0073] S514: Align the upper edge of the next paper to be printed in the paper output direction with the print line according to the second paper feed compensation distance.
[0074] Optionally, based on the calculated second paper feed compensation distance, the paper feed mechanism in the label printer drives the target label paper a corresponding distance in the paper output direction until the top edge of the next paper to be printed is aligned with the print line. This ensures that each new print begins at the very top of the label paper, preventing information misalignment or loss. After completing paper feed compensation, alignment verification can be performed. For example, alignment marks can be read to confirm that the next paper to be printed is accurately aligned with the print line. If alignment is found to be inaccurate, fine-tuning can be performed based on the verification results.
[0075] S516. When the first sensor moves in the paper or the gap, the number of steps counted by the motor is counted; if the number of steps counted is greater than the preset number of steps of the motor at the corresponding position, a paper jam prompt message is generated and sent to the user.
[0076] Optionally, to further improve the stability and reliability of the label printer, the method of the embodiment of the present application provides a motor step count monitoring and paper jam prompt function. Specifically, during the operation of the label printer, the internal control system continuously monitors the counted steps of the motor driving the paper feed mechanism. Each rotation of the motor corresponds to a fixed paper feed distance. Therefore, by counting the motor step counts, the paper feed distance of the target label paper can be determined. In addition, for the target label paper's face paper e and gap f, the label printer will preset a preset number of motor steps corresponding to the target label paper. These preset steps are determined based on factors such as the printer's mechanical structure and the specifications of the label paper, and represent the number of motor steps required for the motor to pass through the face paper e or gap f under normal paper feed conditions. When the first sensor a begins to move in the face paper e or gap f, the motor step count is synchronously recorded and compared with the preset number of motor steps at the corresponding position. If the counted step count is greater than the preset number of motor steps at the corresponding position, it indicates that the target label paper has experienced a paper jam or other paper feed abnormality.
[0077] Optionally, once a paper jam is detected, a paper jam prompt is immediately generated and sent to the user via the printer's display, indicator light, or audible alarm. After receiving the paper jam prompt, the user can take appropriate action based on the prompt. For example, the user can check the printer's paper path for foreign objects, adjust the position of the label paper, or replace the label paper with new one. After the user resolves the paper jam, the label printer can restart the print job and continue with paper positioning and printing.
[0078] In an embodiment of the present application, a paper feed positioning method for label paper is provided. When the first sensor is located in the gap, the first paper feed compensation distance is calculated according to the preset paper feed rule corresponding to the gap, and the upper edge of the next surface paper to be printed is aligned with the print line accordingly, which can effectively solve the positioning deviation problem caused by the sensor being in the gap position; when the first sensor is in the surface paper and detects that a gap has passed during the single-page printing process, the second paper feed compensation distance is calculated and applied for alignment, which can ensure that the next label paper can still be accurately printed from the upper edge of the surface paper, thereby improving Printing stability and reliability; before responding to the paper positioning request, the complete paper quantity is calculated in advance based on the interval distance, paper height and gap height, which can realize the accurate prediction of label paper capacity, provide key parameter basis for subsequent paper feeding compensation, and improve the accuracy of paper feeding control; the paper feeding status is monitored in real time by counting the number of motor steps, and a paper jam prompt is triggered when the number of steps is abnormal, which can quickly locate paper feeding failures and reduce the printing failure rate caused by mechanical jams; ensure that the distance from the printing line to the tearing knife is greater than the paper height to avoid the label paper being accidentally torn when printing is not completed, thereby ensuring printing integrity.
[0079] See also Figure 8 , Figure 8 A schematic flow chart of a method for positioning label paper feed provided in an embodiment of the present application.
[0080] like Figure 8 As shown, the paper feeding and positioning method of the label paper may at least include:
[0081] S802: In response to a paper feed positioning request for a target label paper, obtain the number of intact face sheets in a distance between a first sensor and a print line, wherein the first sensor is located upstream of the print line in a paper output direction; and determine whether the first sensor is located in a gap or in the face sheet.
[0082] Optionally, regarding step S802, please refer to the detailed description in steps S202 and S204, which will not be repeated here.
[0083] S804. When the first sensor is located in the gap, the first paper feed compensation distance corresponding to the target label paper is calculated based on the spacing distance, the number of face papers, the height of the face papers in the paper output direction, the height of the gap in the paper output direction, and the distance from the first sensor in the paper output direction to the upper edge of the gap where the first sensor is located when printing of the current printed face paper is finished.
[0084] Optionally, when the first sensor is located in the gap f, the calculation formula for the first paper feed compensation distance is as follows: D1 = L3-N*H2-(N-1)*H1-E1, where D1 is the first paper feed compensation distance, L3 is the spacing distance, N is the number of face papers, H2 is the height of the face paper in the paper output direction, H1 is the height of the gap in the paper output direction, and E1 is the distance from the first sensor in the paper output direction to the upper edge of the gap where the first sensor is located when printing of the last printed face paper is finished (i.e., the gap entry distance).
[0085] For example, Figure 6 A schematic diagram illustrating the principle of a label paper feed positioning method provided in an embodiment of the present application shows the positional relationship between the sensor components and the target label paper after the current paper f1 is printed, when the number of paper sheets N is 1; Figure 9 This is a schematic diagram of the principle of a paper feeding and positioning method for label paper provided in an embodiment of the present application, which shows the positional relationship between the sensor components and the target label paper after the current paper f1 is printed when the number of paper N is 2.
[0086] S806: Move the target label paper along the paper output direction by a first paper feed compensation distance until the upper edge of the next paper to be printed in the paper output direction is aligned with the print line.
[0087] Optionally, based on the first paper feed compensation distance calculated above, the paper feed mechanism in the label printer drives the target label paper to move a corresponding distance along the paper output direction until the upper edge of the next surface paper to be printed is aligned with the print line, ensuring that each new print content starts from the top of the label paper to avoid information misplacement or loss.
[0088] S808. When the first sensor is located in the face paper, determine whether the first sensor detects a gap during the printing of the current face paper, and determine whether the current face paper is a single page. If the first sensor detects a gap and the current face paper is a single page, calculate the second paper feed compensation distance corresponding to the target label paper based on the interval distance, the number of face papers, the height of the face paper in the paper output direction, the height of the gap in the paper output direction, and the distance from the first sensor in the paper output direction to the upper edge of the face paper where the first sensor is located when the printing of the current face paper is finished.
[0089] Optionally, when the first sensor is located in the face paper e, the calculation formula for the second paper feed compensation distance is as follows: D2 = L3 - N*(H2 + H1) - E2, where D2 is the second paper feed compensation distance, L3 is the interval distance, N is the number of face papers, H2 is the height of the face paper in the paper output direction, H1 is the height of the gap in the paper output direction, and E2 is the distance from the first sensor in the paper output direction to the upper edge of the face paper where the first sensor is located when printing of the last printed face paper is finished (i.e., the gap distance).
[0090] For example, Figure 7 This is a schematic diagram of the principle of a paper feeding and positioning method for label paper provided in an embodiment of the present application, which shows the positional relationship between the sensor components and the target label paper after the current paper f1 is printed when the number of paper N is 1.
[0091] S810: Move the target label paper along the paper output direction by a second paper feed compensation distance until the upper edge of the next paper to be printed in the paper output direction is aligned with the print line.
[0092] Optionally, based on the second paper feed compensation distance calculated above, the paper feed mechanism in the label printer drives the target label paper to move a corresponding distance along the paper output direction until the upper edge of the next surface paper to be printed is aligned with the print line, ensuring that each new print content starts from the top of the label paper to avoid information misplacement or loss.
[0093] S812: When a printing task is completed, a tearing request is generated for the target label paper. The printing task includes the printing content of at least one sheet of surface paper.
[0094] Optionally, in order to further improve the degree of automation and user experience of printing tasks, the method of the embodiment of the present application adds the function of generating a tear-off request at the end of the printing task. Specifically, during the process of the label printer executing the printing task, the printing progress will be continuously monitored. When it is detected that all the reserved surface papers in the current printing task have been printed, the printing task is determined to be completed. Once the printing task is confirmed to be completed, a tear-off request for the target label paper is immediately generated. This request contains the operating instructions that the tear-off knife needs to execute to ensure that the printed label paper can be torn off conveniently and accurately after the printing task is completed.
[0095] S814. In response to a tear-off request for the target label paper, align the upper edge of the next surface paper to be printed with the print line in the paper output direction, and calculate the tear-off distance corresponding to the target label paper based on the distance from the second sensor to the tear-off knife in the paper output direction, the distance from the print line to the second sensor in the paper output direction, and the height of the gap in the paper output direction, wherein the print line is located upstream of the second sensor in the paper output direction, and the second sensor is located upstream of the tear-off knife in the paper output direction; move the target label paper by the tear-off distance in the paper output direction, and tear the current printed surface paper from the target label paper by the tear-off knife.
[0096] Optionally, when a tearing request for the target label paper is received, the tearing operation process is started immediately. First, ensure that the upper edge of the next paper to be printed is aligned with the print line b. For example, Figure 10 A schematic diagram of the principle of a paper feeding and positioning method for label paper provided in an embodiment of the present application shows the positional relationship between the various sensor components and the target label paper when the upper edge of the next surface paper e2 to be printed is aligned with the print line b. Furthermore, it is necessary to continue to advance the target label paper by the tearing distance until the target tearing position (the midline of the gap f1 in the paper output direction i) is aligned with the tearing knife d, and the tearing task is performed. Specifically, the calculation formula for the tearing distance is as follows: D3 = L1 + L2 - H1 / 2, where D3 is the tearing distance, L1 is the distance from the second sensor to the tearing knife in the paper output direction, L2 is the distance from the print line to the second sensor in the paper output direction, and H1 is the height of the gap in the paper output direction.
[0097] Optionally, based on the calculated tearing distance, the paper feeding mechanism is controlled to move the target label paper a corresponding distance along the paper output direction i. After moving into position, a tearing instruction is sent to the tearing knife d, so that the tearing knife d performs the tearing action according to the preset program, and accurately tears the current printed surface paper from the target label paper.
[0098] S816: Move the target label paper in the opposite direction of the paper output direction by the tearing distance until the upper edge of the next paper to be printed in the paper output direction is aligned with the print line.
[0099] Optionally, after the current printing paper is successfully torn off from the target label paper by the tearing knife d, the label printer will determine the distance the target label paper needs to be retracted based on the tearing distance calculated previously, and drive the target label paper to retract the corresponding tearing distance in the opposite direction of the paper output direction, again ensuring that the upper edge of the next paper to be printed is aligned with the printing line b to prepare for the next printing task.
[0100] In an embodiment of the present application, a paper feeding positioning method for label paper is provided. By accurately calculating the first or second paper feeding compensation distance based on the interval distance, the number of face papers, the face paper height, the gap height, and the entry or exit distance, more precise paper feeding control can be achieved for short label scenarios, and the accuracy of the printing start position is improved; a paper tearing request is automatically generated after each printing task is completed, and the paper tearing distance is calculated based on the spatial relationship between the second sensor, the paper tearing knife, and the printing line, combined with the gap height, and the paper tearing operation is performed, thereby realizing automatic and accurate label paper separation and improving ease of use and automation level; after the paper tearing is completed, the label paper is retracted a corresponding distance so that the next face paper to be printed is realigned with the printing line, ensuring that subsequent printing tasks can be seamlessly connected without manual adjustment, thereby improving continuous printing efficiency and automation level.
[0101] See also Figure 11 , Figure 11 This is a structural block diagram of a paper feeding and positioning device for label paper provided in an embodiment of the present application. Figure 11 As shown, the label paper feeding and positioning device 1100 includes:
[0102] a paper quantity acquisition module 1110 for acquiring the number of intact paper sheets within a distance between a first sensor and a print line in response to a paper feed positioning request for target label paper, wherein the first sensor is located upstream of the print line in a paper feed direction;
[0103] The sensor determination module 1120 is used to determine whether the first sensor is located in the gap or in the tissue paper;
[0104] The paper feed compensation module 1130 is used to align the next paper to be printed with the printing line as a reference according to the preset paper feed rules corresponding to the gap or paper. The preset paper feed rules include a paper feed compensation calculation method set based on the number of paper sheets.
[0105] In some possible embodiments, when the position of the first sensor is in the gap, the paper feed compensation module 1130 is also used to calculate the first paper feed compensation distance corresponding to the target label paper according to the preset paper feed rule corresponding to the gap; and align the upper edge of the next surface paper to be printed in the paper output direction with the print line based on the first paper feed compensation distance.
[0106] In some possible embodiments, the paper feed compensation module 1130 is also used to calculate the first paper feed compensation distance corresponding to the target label paper based on the spacing distance, the number of face papers, the height of the face paper in the paper output direction, the height of the gap in the paper output direction, and the distance from the first sensor in the paper output direction to the upper edge of the gap where the first sensor is located when printing of the current printed face paper is completed.
[0107] In some possible embodiments, the paper feed compensation module 1130 is further configured to move the target label paper by a first paper feed compensation distance along the paper output direction until the upper edge of the next paper to be printed in the paper output direction is aligned with the print line.
[0108] In some possible embodiments, when the first sensor is located in the face paper, the paper feed compensation module 1130 is also used to determine whether the first sensor detects a gap passing during the printing of the current face paper, and whether the current printing face paper is a single page print; if the first sensor detects a gap passing and the current printing face paper is a single page print, the second paper feed compensation distance corresponding to the target label paper is calculated according to the preset paper feed rules corresponding to the face paper; and the upper edge of the next face paper to be printed in the paper output direction is aligned with the print line based on the second paper feed compensation distance.
[0109] In some possible embodiments, the paper feed compensation module 1130 is also used to calculate the second paper feed compensation distance corresponding to the target label paper based on the interval distance, the number of face papers, the height of the face paper in the paper output direction, the height of the gap in the paper output direction, and the distance from the first sensor in the paper output direction to the upper edge of the face paper where the first sensor is located when printing of the current printed face paper is completed.
[0110] In some possible embodiments, the paper feed compensation module 1130 is further configured to move the target label paper by a second paper feed compensation distance along the paper output direction until the upper edge of the next paper to be printed in the paper output direction is aligned with the print line.
[0111] In some possible embodiments, the paper feeding and positioning device 1100 for label paper further includes: a tearing task execution module, which is used to respond to a tearing request for the target label paper, align the upper edge of the next surface paper to be printed with the printing line in the paper output direction, and calculate the tearing distance corresponding to the target label paper based on the distance from the second sensor to the tearing knife in the paper output direction, the distance from the printing line to the second sensor in the paper output direction, and the height of the gap in the paper output direction, the printing line is located upstream of the second sensor in the paper output direction, and the second sensor is located upstream of the tearing knife in the paper output direction; move the target label paper by the tearing distance along the paper output direction, and tear the current printed surface paper from the target label paper by the tearing knife.
[0112] In some possible embodiments, the paper feeding and positioning device 1100 for label paper further includes: a tearing-off retraction module, which is used to move the target label paper in the opposite direction of the paper output direction by a tearing distance after the tearing-off task execution module tears the current printing surface paper from the target label paper through the tearing knife, until the upper edge of the next surface paper to be printed in the paper output direction is aligned with the print line.
[0113] In some possible embodiments, the label paper feeding and positioning device 1100 further includes: a tearing request generating module, which is used to generate a tearing request for the target label paper when a printing task is completed, and the printing task includes the printing content of at least one sheet of surface paper.
[0114] In some possible embodiments, the paper feeding positioning device 1100 for label paper further includes: a face paper quantity calculation module, which is used to calculate the number of complete face papers of the target label paper in the interval distance based on the interval distance, the height of the face paper in the paper output direction, and the height of the gap in the paper output direction before the face paper quantity acquisition module 1110 responds to the paper feeding positioning request for the target label paper.
[0115] In some possible embodiments, the paper feeding and positioning device 1100 for label paper further includes: a paper jam prompt module, which is used to count the number of steps of the motor when the first sensor moves in the surface paper or the gap; if the counted number of steps is greater than the preset number of steps of the motor at the corresponding position, a paper jam prompt message is generated and the paper jam prompt message is sent to the user.
[0116] In some possible embodiments, the distance from the printing line to the tearing knife in the paper output direction is greater than the height of the surface paper in the paper output direction.
[0117] In an embodiment of the present application, a paper feed positioning device for label paper is provided, wherein a paper quantity acquisition module is used to respond to a paper feed positioning request for a target label paper and obtain the number of complete paper sheets in the interval between a first sensor and a print line, wherein the first sensor is located upstream of the print line in the paper output direction; a sensor judgment module is used to judge whether the position of the first sensor is in a gap or paper; and a paper feed compensation module is used to align the next paper to be printed with the print line as a reference according to a preset paper feed rule corresponding to the gap or paper, wherein the preset paper feed rule includes a paper feed compensation calculation method set based on the number of paper sheets. By accurately calculating the number of complete face sheets in the interval between the first sensor and the print line through the face sheet quantity acquisition module, it is possible to ensure that after the current face sheet is printed, the current paper status is accurately understood, providing data support for subsequent paper feed positioning operations and helping to accurately control the paper feed amount; by determining whether the current position of the first sensor is a gap or face sheet through the sensor judgment module, the current position of the label paper can be accurately positioned, thereby determining which paper feed compensation method to use to adjust the paper position in the future to ensure that the next face sheet to be printed can be accurately aligned with the print line; the paper feed compensation module applies different preset paper feed rules based on the sensor position judgment result, and the paper feed compensation calculation method in the preset paper feed rules is set based on the face sheet quantity obtained in the previous step. This calculation method can accurately compensate for the paper feed of labels of different lengths, solving the paper feed positioning problem caused by different label paper lengths. Through the method of the present application, the target label paper can be accurately fed according to the different preset paper feed rules corresponding to the first sensor position, thereby ensuring that the next face sheet to be printed can be accurately aligned with the print line position each time printing is performed, improving printing efficiency while ensuring printing quality.
[0118] An embodiment of the present application further provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded by a processor and executing the steps of any method in the above embodiments.
[0119] See Figure 12 , Figure 12 This is a schematic diagram of the structure of a terminal provided in an embodiment of the present application. Figure 12 As shown, the terminal 1200 may include: at least one terminal processor 1201 , at least one network interface 1204 , a user interface 1203 , a memory 1205 , and at least one communication bus 1202 .
[0120] The communication bus 1202 is used to implement connection and communication between these components.
[0121] The user interface 1203 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 1203 may also include a standard wired interface and a wireless interface.
[0122] The network interface 1204 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0123] The terminal processor 1201 may include one or more processing cores. The terminal processor 1201 utilizes various interfaces and circuits to connect various components within the terminal 1200. It executes instructions, programs, code sets, or instruction sets stored in the memory 1205, and accesses data stored in the memory 1205 to perform various functions and process data for the terminal 1200. Optionally, the terminal processor 1201 may be implemented using at least one of the following hardware forms: a digital signal processing (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The terminal processor 1201 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU primarily processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content displayed on the display; and the modem handles wireless communications. It is understood that the modem may not be integrated into the terminal processor 1201 and may be implemented as a separate chip.
[0124] Among them, the memory 1205 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 1205 includes a non-transitory computer-readable storage medium. The memory 1205 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 1205 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 1205 may also be optionally at least one storage device located away from the aforementioned terminal processor 1201. As Figure 12 As shown, the memory 1205 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a paper feeding and positioning program for label paper.
[0125] exist Figure 12 In the terminal 1200 shown, the user interface 1203 is mainly used to provide an input interface for the user and obtain the data input by the user; and the terminal processor 1201 can be used to call the label paper feeding and positioning program stored in the memory 1205 and perform the following operations:
[0126] In response to a paper feed positioning request for target label paper, obtaining the number of complete face sheets of paper within a distance between a first sensor and a print line, wherein the first sensor is located upstream of the print line in a paper feed direction;
[0127] Determining that the first sensor is located in the gap or in the tissue paper;
[0128] The next paper to be printed is aligned with the printing line as a reference according to the preset paper feeding rule corresponding to the gap or paper. The preset paper feeding rule includes a paper feeding compensation calculation method set based on the number of paper sheets.
[0129] In some possible embodiments, when the position of the first sensor is in the gap, the terminal processor 1201 performs the following steps when executing the operation of aligning the next surface paper to be printed with the print line as the reference according to the preset paper feeding rules corresponding to the gap or surface paper: calculating the first paper feeding compensation distance corresponding to the target label paper according to the preset paper feeding rules corresponding to the gap; aligning the upper edge of the next surface paper to be printed in the paper output direction with the print line based on the first paper feeding compensation distance.
[0130] In some possible embodiments, when the terminal processor 1201 calculates the first paper feed compensation distance corresponding to the target label paper according to the preset paper feed rules corresponding to the gap, it specifically performs the following steps: based on the interval distance, the number of surface papers, the height of the surface papers in the paper output direction, the height of the gap in the paper output direction, and the distance from the first sensor in the paper output direction to the upper edge of the gap where the first sensor is located when the current printing surface paper is finished printing, calculate the first paper feed compensation distance corresponding to the target label paper.
[0131] In some possible embodiments, when the terminal processor 1201 aligns the upper edge of the next surface paper to be printed in the paper output direction with the print line based on the first paper feed compensation distance, it specifically performs the following steps: moving the target label paper along the paper output direction by the first paper feed compensation distance until the upper edge of the next surface paper to be printed in the paper output direction is aligned with the print line.
[0132] In some possible embodiments, when the first sensor is located in the face paper, the terminal processor 1201 performs the following steps when executing the operation of aligning the next face paper to be printed with the print line as the reference according to the gap or the preset paper feeding rule corresponding to the face paper: determining whether the first sensor detects a gap passing during the printing process of the current face paper, and determining whether the current printing face paper is a single page print; if the first sensor detects a gap passing and the current printing face paper is a single page print, calculating the second paper feeding compensation distance corresponding to the target label paper according to the preset paper feeding rule corresponding to the face paper; and aligning the upper edge of the next face paper to be printed in the paper output direction with the print line based on the second paper feeding compensation distance.
[0133] In some possible embodiments, when the terminal processor 1201 calculates the second paper feed compensation distance corresponding to the target label paper according to the preset paper feed rules corresponding to the face paper, it specifically performs the following steps: based on the interval distance, the number of face papers, the height of the face paper in the paper output direction, the height of the gap in the paper output direction, and the distance from the first sensor in the paper output direction to the upper edge of the face paper where the first sensor is located when the current printing face paper is finished printing, calculate the second paper feed compensation distance corresponding to the target label paper.
[0134] In some possible embodiments, when the terminal processor 1201 aligns the upper edge of the next surface paper to be printed in the paper output direction with the print line based on the second paper feed compensation distance, it specifically performs the following steps: moving the target label paper along the paper output direction by the second paper feed compensation distance until the upper edge of the next surface paper to be printed in the paper output direction is aligned with the print line.
[0135] In some possible embodiments, the terminal processor 1201 further specifically performs the following steps: in response to a tear-off request for the target label paper, aligning the upper edge of the next surface paper to be printed with the print line in the paper output direction, and calculating the tear-off distance corresponding to the target label paper based on the distance from the second sensor to the tear-off knife in the paper output direction, the distance from the print line to the second sensor in the paper output direction, and the height of the gap in the paper output direction, the print line being located upstream of the second sensor in the paper output direction, and the second sensor being located upstream of the tear-off knife in the paper output direction; moving the target label paper by the tear-off distance in the paper output direction, and tearing the current printed surface paper from the target label paper by the tear-off knife.
[0136] In some possible embodiments, after the current printing surface paper is torn off from the target label paper by a tearing knife, the terminal processor 1201 further specifically performs the following steps: moving the target label paper by a tearing distance in the opposite direction of the paper output direction until the upper edge of the next surface paper to be printed is aligned with the print line in the paper output direction.
[0137] In some possible embodiments, the terminal processor 1201 further specifically performs the following steps: when a printing task is completed, generating a tearing request for the target label paper, and the printing task includes at least the printed content of one sheet of surface paper.
[0138] In some possible embodiments, before responding to a paper feed positioning request for the target label paper, the terminal processor 1201 further specifically performs the following steps: calculating the number of complete face papers of the target label paper in the interval distance based on the interval distance, the height of the face paper in the paper output direction, and the height of the gap in the paper output direction.
[0139] In some possible embodiments, the terminal processor 1201 further specifically performs the following steps: when the first sensor moves in the surface paper or the gap, the number of counted steps of the motor is counted; if the number of counted steps is greater than the preset number of steps of the motor at the corresponding position, a paper jam prompt message is generated and the paper jam prompt message is sent to the user.
[0140] In some possible embodiments, the distance from the printing line to the tearing knife in the paper output direction is greater than the height of the surface paper in the paper output direction.
[0141] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of modules is only a logical function division. In actual implementation, there may be other division methods, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0142] Modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network modules. Some or all of these modules may be selected to achieve the purpose of this embodiment based on actual needs.
[0143] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The above-mentioned computer program product includes one or more computer instructions. When the above-mentioned computer program instructions are loaded and executed on a computer, the above-mentioned process or function according to the embodiment of this specification is generated in whole or in part. The above-mentioned computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The above-mentioned computer instructions can be stored in a computer-readable storage medium or transmitted by the above-mentioned computer-readable storage medium. The above-mentioned computer instructions can be transmitted from a website, computer, server or data center to another website, computer, server or data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The above-mentioned computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The above-mentioned available media can be magnetic media (for example, floppy disks, hard disks, tapes), optical media (for example, digital versatile discs (DVDs)), or semiconductor media (for example, solid state disks (SSDs)).
[0144] It should be noted that for the aforementioned method embodiments, for ease of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
[0145] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0146] The above is a description of the paper feeding positioning method, device, storage medium and terminal for label paper provided in this application. For technical personnel in this field, based on the ideas of the embodiments of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on this application.
Claims
1. A paper feeding and positioning method for label paper, characterized in that: The method comprises: In response to a paper feed positioning request for target label paper, obtaining the number of complete face sheets of paper within a distance between a first sensor and a print line, wherein the first sensor is located upstream of the print line in a paper feed direction; Determining that the first sensor is located in a gap or in tissue paper; The next surface paper to be printed is aligned with the printing line as a reference according to a preset paper feeding rule corresponding to the gap or the surface paper, wherein the preset paper feeding rule includes a paper feeding compensation calculation method set based on the number of surface papers.
2. The method according to claim 1, characterized in that When the first sensor is located in the gap, aligning the next surface paper to be printed with the printing line as a reference according to a preset paper feeding rule corresponding to the gap or the surface paper includes: Calculate the first paper feeding compensation distance corresponding to the target label paper according to the preset paper feeding rule corresponding to the gap; The upper edge of the next paper to be printed in the paper output direction is aligned with the printing line according to the first paper feed compensation distance.
3. The method according to claim 2, characterized in that The calculating the first paper feeding compensation distance corresponding to the target label paper according to the preset paper feeding rule corresponding to the gap includes: The first paper feed compensation distance corresponding to the target label paper is calculated based on the spacing distance, the number of face papers, the height of the face papers in the paper output direction, the height of the gap in the paper output direction, and the distance from the first sensor in the paper output direction to the upper edge of the gap where the first sensor is located when printing of the current printed face paper is finished.
4. The method according to claim 2, characterized in that Aligning the upper edge of the next surface paper to be printed in the paper output direction with the printing line according to the first paper feed compensation distance includes: The target label paper is moved along the paper output direction by the first paper feed compensation distance until the upper edge of the next surface paper to be printed in the paper output direction is aligned with the print line.
5. The method according to claim 1, wherein When the first sensor is located in the tissue paper, the operation of aligning the next tissue paper to be printed with the printing line as a reference according to the gap or the preset paper feeding rule corresponding to the tissue paper includes: determining whether the first sensor detects a gap during printing of the current printing paper, and determining whether the current printing paper is a single-page print; If the first sensor detects that a gap has passed and the current printing paper is a single-page printing paper, a second paper feed compensation distance corresponding to the target label paper is calculated according to a preset paper feed rule corresponding to the paper; The upper edge of the next paper to be printed in the paper output direction is aligned with the printing line according to the second paper feed compensation distance.
6. The method according to claim 5, characterized in that The calculating the second paper feeding compensation distance corresponding to the target label paper according to the preset paper feeding rule corresponding to the surface paper includes: Based on the spacing distance, the number of face papers, the height of the face papers in the paper output direction, the height of the gap in the paper output direction, and the distance from the first sensor in the paper output direction to the upper edge of the face paper where the first sensor is located when printing of the current printing face paper is finished, the second paper feed compensation distance corresponding to the target label paper is calculated.
7. The method according to claim 5, characterized in that The step of aligning the upper edge of the next surface paper to be printed in the paper output direction with the printing line according to the second paper feed compensation distance includes: The target label paper is moved along the paper output direction by the second paper feed compensation distance until the upper edge of the next surface paper to be printed in the paper output direction is aligned with the print line.
8. The method according to claim 1, characterized in that The method further comprises: In response to a tear-off request for the target label paper, aligning the upper edge of the next surface paper to be printed with the print line in the paper exit direction, and calculating a tear-off distance corresponding to the target label paper based on a distance from the second sensor to the tear-off blade in the paper exit direction, a distance from the print line to the second sensor in the paper exit direction, and a height of the gap in the paper exit direction, wherein the print line is located upstream of the second sensor in the paper exit direction, and the second sensor is located upstream of the tear-off blade in the paper exit direction; The target label paper is moved along the paper output direction by the tearing distance, and the current printing surface paper is torn off from the target label paper by the tearing knife.
9. The method according to claim 8, characterized in that After the current printing surface paper is torn off from the target label paper by the tearing knife, the method further includes: The target label paper is moved in the opposite direction of the paper output direction by the tearing distance until the upper edge of the next surface paper to be printed in the paper output direction is aligned with the printing line.
10. The method according to claim 8, characterized in that The method further comprises: When a printing task is completed, a tearing request is generated for the target label paper, and the printing task includes at least the printed content of one sheet of the surface paper.
11. The method according to claim 1, wherein Before responding to the paper feeding and positioning request for the target label paper, the method further includes: The number of complete face sheets of the target label paper in the interval is calculated based on the interval distance, the height of the face sheets in the paper output direction, and the height of the gap in the paper output direction.
12. The method according to claim 1, characterized in that The method further comprises: When the first sensor moves in the paper or the gap, counting the number of steps of the motor; If the counted number of steps is greater than a preset number of steps of the motor at a corresponding position, a paper jam prompt message is generated and sent to a user.
13. The method according to claim 1, wherein The distance from the printing line to the tearing knife in the paper output direction is greater than the height of the surface paper in the paper output direction.
14. A paper feeding and positioning device for label paper, characterized in that: The device comprises: a paper quantity acquisition module, configured to, in response to a paper feed positioning request for target label paper, acquire the number of complete paper sheets within a distance between a first sensor and a print line, wherein the first sensor is located upstream of the print line in a paper feed direction; a sensor determination module, configured to determine whether the first sensor is located in a gap or in tissue paper; The paper feed compensation module is used to align the next surface paper to be printed with the printing line as a reference according to the preset paper feed rule corresponding to the gap or surface paper. The preset paper feed rule includes a paper feed compensation calculation method set based on the number of surface papers.
15. A computer storage medium, characterized in that The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the steps of the method according to any one of claims 1 to 13.
16. A terminal, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 13 when executing the program.
Citation Information
Cited By
Label paper gap positioning method and apparatus, storage medium, and electronic device
WO2026153514A1