Label paper feeding positioning method and device, storage medium and terminal
By determining whether the sensor has detected a gap in the label printer and using different paper-moving rules to align the label paper, the problem of inaccurate printing positioning of long label paper is solved, ensuring printing quality and efficiency.
Patent Information
- Application Number
- CN202510569227.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-30
- Publication Date
- 2025-07-22
AI Technical Summary
When existing label printers process long label paper, they cannot accurately control the paper movement distance, resulting in offset or overlap of print content, affecting print quality and readability.
By determining whether the sensor detects the passage of the gap, the label paper is aligned with different paper-moving rules, including an alignment method based on the sensor or the printing line as the reference to ensure the precise alignment of the label paper.
Accurate alignment of label paper, improves printing efficiency and quality, and avoids offset or overlap of printed content.
Smart Images

Figure CN120348081A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of label printing, and particularly to a paper feeding and positioning method, device, storage medium, and terminal for label paper. Background Art
[0002] With the continuous progress of label printing technology, label printers play an important role in many fields. For example, in the fields of retail and commodity management, label printers are used to print product price labels, promotional labels, etc., to improve the display and promotional effects of products; in the fields of logistics and warehousing, label printers are used to print various logistics labels, goods labels, etc., to help users track and manage goods, and so on. However, for the printing of long label paper, a complete printing requires a longer paper feeding distance. Existing label printers cannot accurately control the advancing distance of the paper to ensure that the printed content falls accurately on the label, resulting in the printed content being offset or overlapping, affecting the printing quality and readability of the label. Summary of the Invention
[0003] This application provides a paper feeding and positioning method, device, storage medium, and terminal for label paper to solve the technical problem of inaccurate paper feeding and positioning of the above-mentioned label printers.
[0004] In a first aspect, an embodiment of this application provides a paper feeding and positioning method for label paper, the method includes:
[0005] In response to a paper feeding and positioning request for a target label paper, determine whether the first sensor detects that a gap passes during the printing of the current printing surface paper, and the first sensor is located upstream of the printing line in the paper output direction;
[0006] If the first sensor does not detect that a gap passes, align the next to-be-printed surface paper with the first sensor as a reference, and align the next to-be-printed surface paper with the printing line as a reference according to a first preset paper feeding rule;
[0007] If the first sensor detects that a gap passes, align the next to-be-printed surface paper with the printing line as a reference according to a second preset paper feeding rule.
[0008] In a second aspect, an embodiment of this application provides a paper feeding and positioning device for label paper, the device includes:
[0009] A gap determination module, which in response to a paper feeding and positioning request for a target label paper, determines whether the first sensor detects that a gap passes during the printing of the current printing surface paper, and the first sensor is located upstream of the printing line in the paper output direction;
[0010] The first paper feeding compensation module is used to align the next to-be-printed face paper with the first sensor as a reference if the first sensor does not detect that a gap has passed, and align the next to-be-printed face paper with the printing line as a reference according to the first preset paper feeding rule;
[0011] The second paper feeding compensation module is used to align the next to-be-printed face paper with the printing line as a reference according to the second preset paper feeding rule if the first sensor detects that a gap has passed.
[0012] In a third aspect, an embodiment of the present application provides a computer storage medium. The computer storage medium stores multiple instructions, and the instructions are adapted to be loaded and executed by a processor to perform the steps of the above method.
[0013] In a fourth aspect, an embodiment of the present application provides a terminal, including a memory, a processor, and a computer program stored on the memory and executable on the processor. The computer program is adapted to be loaded and executed by the processor to perform the steps of the above method.
[0014] The beneficial effects brought by the technical solutions provided in some embodiments of the present application at least include:
[0015] The present application provides a method for paper feeding and positioning of label paper. In response to a paper feeding and positioning request for a target label paper, it is determined whether the first sensor detects that a gap has passed during the printing of the current printing paper. The first sensor is located upstream of the printing line in the paper output direction. If the first sensor does not detect that a gap has passed, the next paper to be printed is aligned with the first sensor as a reference, and the next paper to be printed is aligned with the printing line as a reference according to the first preset paper feeding rule. If the first sensor detects that a gap has passed, the next paper to be printed is aligned with the printing line as a reference according to the second preset paper feeding rule. By determining whether the first sensor detects that a gap has passed during the printing of the current printing paper, the specific position of the next paper to be printed can be clarified, and it can be accurately determined whether the upper edge of the next paper to be printed has passed the first sensor, so as to facilitate subsequent selection of corresponding alignment methods based on this specific position. When the first sensor does not detect that a gap has passed, the upper edge of the next paper to be printed has not passed the first sensor. At this time, the next paper to be printed is first aligned with the first sensor as a reference, and then subsequent alignment operations are performed according to the first preset paper feeding rule, which ensures accurate paper feeding and alignment when the upper edge of the next paper to be printed has not passed the first sensor. When the first sensor detects that a gap has passed, the upper edge of the next paper to be printed has passed the first sensor. At this time, the next paper to be printed is directly aligned with the printing line as a reference according to the second preset paper feeding rule, which ensures accurate paper feeding and alignment after the upper edge of the next paper to be printed has passed the first sensor. Through the method of the present application, different alignment methods and preset paper feeding rules can be selected according to the specific position of the next paper to be printed to perform precise paper feeding compensation for the target label paper, solve the paper feeding and positioning problem caused by different lengths of label paper, so as to ensure that the next paper to be printed can be accurately aligned with the printing line position each time printing is performed, improve the printing efficiency and ensure the printing quality at the same time. Brief Description of the Drawings
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present application. For those skilled in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0017] Figure 1 It is an exemplary system architecture diagram of a method for paper feeding and positioning of label paper provided by an embodiment of the present application;
[0018] Figure 2 It is a flowchart of a method for paper feeding and positioning of label paper provided by an embodiment of the present application;
[0019] Figure 3 Schematic diagram of component content of a label printer provided by an embodiment of the present application;
[0020] Figure 4 Schematic diagram of the structural relationship of a sensor in a label printer provided by an embodiment of the present application;
[0021] Figure 5 Schematic flowchart of a paper feeding and positioning method for a label paper provided by an embodiment of the present application;
[0022] Figure 6 Schematic diagram of the principle of a paper feeding and positioning method for a label paper provided by an embodiment of the present application;
[0023] Figure 7 Schematic diagram of the principle of a paper feeding and positioning method for a label paper provided by an embodiment of the present application;
[0024] Figure 8 Schematic diagram of the principle of a paper feeding and positioning method for a label paper provided by an embodiment of the present application;
[0025] Figure 9 Schematic diagram of the principle of a paper feeding and positioning method for a label paper provided by an embodiment of the present application;
[0026] Figure 10 Schematic flowchart of a paper feeding and positioning method for a label paper provided by an embodiment of the present application;
[0027] Figure 11 Schematic flowchart of a paper feeding and positioning method for a label paper provided by an embodiment of the present application;
[0028] Figure 12 Schematic block diagram of a paper feeding and positioning device for a label paper provided by an embodiment of the present application;
[0029] Figure 13 Schematic diagram of the structure of a terminal provided by an embodiment of the present application. Detailed implementation manners
[0030] To make the features and advantages of the present application more obvious and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative efforts fall within the scope of protection of the present 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. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0032] With the continuous progress of label printing technology, label printers play an important role in many fields such as retail, merchandise management, logistics, and warehousing. For example, in the retail industry, label printers are used to generate product price labels, promotional labels, etc., which helps to improve the display effect and promotional effect of products; in the field of logistics and warehousing, they are used to produce logistics labels, goods labels, etc., to achieve effective tracking and management of goods.
[0033] However, existing label printers face challenges when dealing with long label facestock. Due to the long size of the long label facestock, if the paper feeding mechanism of the printer cannot accurately control the moving distance of the label paper, it may result in some areas on the label paper not being effectively utilized during the printing process, thus causing waste. In addition, if the positioning of the long label is inaccurate, it may also cause the printed information to be offset or overlapped, affecting the printing quality and readability.
[0034] Therefore, the embodiments of the present application provide a paper feeding and positioning method for label paper to solve the above technical problem of inaccurate facestock positioning of label printers.
[0035] Please refer to Figure 1 , Figure 1 which is an exemplary system architecture diagram of a paper feeding and positioning method for label paper provided by the embodiments of the present application.
[0036] As Figure 1 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 the 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, the wired communication links include optical fibers, twisted pairs, or coaxial cables, and the wireless communication links include Bluetooth communication links, Wireless-Fidelity (Wi-Fi) communication links, or microwave communication links, etc.
[0037] The terminal 101 can interact with the server 103 via the network 102 to receive messages from the server 103 or send messages to the server 103. Alternatively, the terminal 101 can interact with the server 103 via the network 102 to receive messages or data sent by other users to the server 103. 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 smart watches, smart phones, tablet computers, laptop portable computers, and desktop computers, etc. When the terminal 101 is software, it can be installed in the above-listed electronic devices, which can be implemented as multiple software or software modules (e.g., used to provide distributed services), or can be implemented as a single software or software module, and no specific limitation is made here.
[0038] In the embodiment of the present application, the terminal 101 first responds to the paper feeding and positioning request for the target label paper, and determines whether the first sensor detects that a gap passes during the printing of the current printing paper. The first sensor is located upstream of the printing line in the paper output direction. Then, if the first sensor does not detect that a gap passes, the terminal 101 aligns the next paper to be printed with the first sensor as a reference, and aligns the next paper to be printed with the printing line as a reference according to the first preset paper feeding rule. Finally, if the first sensor detects that a gap passes, the terminal 101 aligns the next paper to be printed with the printing line as a reference according to the second preset paper feeding rule.
[0039] The server 103 can be a business server that provides various services. It should be noted that the server 103 can be hardware or software. When the server 103 is hardware, it can be implemented as a distributed server cluster composed of multiple servers, or can be implemented as a single server. When the server 103 is software, it can be implemented as multiple software or software modules (e.g., used to provide distributed services), or can be implemented as a single software or software module, and no specific limitation is made here.
[0040] Alternatively, the system architecture may not include the server 103. In other words, the server 103 can be an optional device in the embodiment of this specification. That is, the method provided in the embodiment of this specification can be applied to a system structure that only includes the terminal 101, and no limitation is made in the embodiment of the present application.
[0041] It should be understood that Figure 1 the numbers of the terminals, networks, and servers in
[0042] Please refer to Figure 2 , Figure 2Schematic flowchart of a paper feeding and positioning method for a label paper provided by an embodiment of the present application. The execution subject of the embodiment of the present application can be a terminal that performs paper feeding and positioning of the label paper, a processor in the terminal that executes the paper feeding and positioning method of the label paper, or a paper feeding and positioning service of the label paper in the terminal that executes the paper feeding and positioning method of the label paper. For ease of description, the following takes the execution subject as the processor in the terminal as an example to introduce the specific execution process of the paper feeding and positioning method of the label paper.
[0043] As Figure 2 shown, the paper feeding and positioning method of the label paper may at least include:
[0044] S202. In response to a paper feeding and positioning request for a target label paper, determine whether the first sensor detects that a gap passes during the printing of the current printing paper surface. The first sensor is located upstream of the printing line in the paper output direction.
[0045] Optionally, Figure 3 Schematic diagram of component content of a label printer provided by an embodiment of the present application. As Figure 3As shown, the overall structure of the label printer mainly includes four parts: the upper cover, the printer body, the paper output and return assembly, and the label paper. Among them, the upper cover is located at the top of the label printer, mainly used to protect the internal components and can be opened when needed to replace the label paper or perform maintenance. The print head (with a printing line set thereon) is located in the upper cover and is usually composed of thermal elements, which directly contact the label paper and are used to print information onto the face paper. The printer body contains the main working components and control circuits of the printer, which is the core part of the entire printer, mainly including a paper pressing roller, a printing line, and a paper tearing knife. The paper pressing roller is used in cooperation with the print head to make the label paper closely adhere to the print head by applying appropriate pressure to ensure the printing quality. At the same time, the paper pressing roller also participates in the paper feeding process of the label paper to help control the forward speed and position of the label paper. The printing line defines the path of the label paper inside the printer to ensure that the label paper moves along a predetermined trajectory, thereby ensuring the accuracy of the printing position. The paper tearing knife is located behind the printing area and is used to separate the label paper from the backing paper after printing is completed, facilitating the user to pick up the printed label. The paper output and return assembly is responsible for the paper feeding and discharging operations of the label paper to ensure that the label paper can smoothly enter the printer and be sent out after printing is completed. The sensing element (i.e., sensor) in the paper output and return assembly includes a transmitter and a receiver, which are used to detect the position and status of the label paper. When the label paper passes through the sensing element, the transmitter emits a signal, and the receiver receives the change in the signal, thereby being able to sense the presence of the label paper and transmit the signal to the control system of the printer to determine whether the label paper has reached the specified position. There are two groups of sensing elements in the paper output and return assembly, which are respectively located on both sides of the printing line, and the two groups of sensing elements work together to improve the accuracy and reliability of the label paper position detection. The label paper includes a backing paper, a face paper, and a gap. The backing paper is the bottom layer of the label paper and serves to support the face paper and will be torn off after printing is completed. The face paper is located on the upper layer of the label paper and is the part used to carry the printing information. The upper edge and lower edge of the face paper respectively define the effective printing area of the label paper. The gap is the space between the face paper and the backing paper and is used to tear off the face paper from the backing paper after printing is completed.
[0046] Optionally, Figure 4 is a schematic structural relationship diagram of a sensor in a label printer provided by an embodiment of the present application, showing the positional relationship among the sensor, the printing line, and the paper tearing knife in the label printer. As 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. In this way, 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, so that the complete information can be 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 large area in the backing 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 backing 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 of 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 position relationship between the first sensor a and the printing line b, to distinguish different types of label papers and adopt 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 long label paper, which 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 a different paper feeding strategy from that of the short label face paper needs to be adopted to avoid printing on the incomplete face paper.
[0048] It should be noted that, in order to clearly and accurately illustrate the paper feeding strategies of different types of label papers, this patent only describes the paper feeding method for the long label type face paper (that is, L3 < H2 + H1).
[0049] Optionally, after the printing of the current face paper in the target label paper is completed, in order to accurately align the next face paper with the printing line, it is necessary to re-feed and position the target label paper. When the target label paper is a long label face paper, L3 < H2 + H1, that is, during the printing of the current face paper, the upper edge of the next face paper to be printed may have passed the first sensor a in the paper output direction i, or may not have passed the first sensor a yet. The alignment methods corresponding to these two situations are different. Therefore, when it is necessary to re-feed and position the target label paper, it is first necessary to determine the specific position of the next face paper to be printed, that is, to judge whether the first sensor detects the passing of a gap during the printing of the current face paper.
[0050] S204. If the first sensor does not detect the passing of a gap, align the next face paper to be printed with the first sensor as a reference, and align the next face paper to be printed with the printing line as a reference according to the first preset paper feeding rule.
[0051] Optionally, the first sensor a not detecting the passing of a gap f includes two possible situations. First, the first sensor a has been feeding paper in the current face paper and has not experienced any gap f at all. At this time, when the printing of the current face paper ends, the first sensor a is located in the current face paper. Second, the first sensor a has entered the gap from the current face paper, but the printing operation of the current face paper ends before it exits the gap. At this time, the first sensor a is located in the gap f.
[0052] Optionally, when the first sensor a does not detect the passing of a gap f, it means that the upper edge of the next face paper to be printed has not passed the first sensor a in the paper output direction i. At this time, first align the next face paper to be printed with the first sensor a as a reference to align the next face paper to be printed with the first sensor a; further, according to the first preset paper feeding rule, move the target label paper a certain distance along the paper output direction i to align the next face paper to be printed with the position of the printing line b.
[0053] S206. If the first sensor detects the passing of a gap, align the next face paper to be printed with the printing line as a reference according to the second preset paper feeding rule.
[0054] Optionally, the first sensor a detecting the passing of a gap includes two possible situations. First, the first sensor a detects a complete gap e, that is, during the printing of the current face paper, the first sensor a experiences a process from entering the gap (from face paper e to gap f) to exiting the gap (from gap f to face paper e). Second, the first sensor a does not detect a complete gap e, but the first sensor a is initially located at a certain position in the gap e and walks from the gap e to a certain position of the next face paper to be printed during the paper feeding process.
[0055] Optionally, when the first sensor a detects that a gap f has passed by, it means that the upper edge of the next paper to be printed in the paper output direction i has passed by the first sensor a. At this time, according to the second preset paper feeding rule, the target label paper can be moved a certain distance along the paper output direction i to align the next paper to be printed with the position of the printing line b.
[0056] In an embodiment of the present application, a method for positioning the paper feeding of a label paper is provided. In response to a paper feeding positioning request for a target label paper, it is determined whether the first sensor detects that a gap has passed during the printing of the current paper to be printed. The first sensor is located upstream of the printing line in the paper output direction. If the first sensor does not detect that a gap has passed, the next paper to be printed is aligned with the first sensor as a reference, and the next paper to be printed is aligned with the printing line as a reference according to the first preset paper feeding rule. If the first sensor detects that a gap has passed, the next paper to be printed is aligned with the printing line as a reference according to the second preset paper feeding rule. By determining whether the first sensor detects that a gap has passed during the printing of the current paper to be printed, the specific position of the next paper to be printed can be clarified, and it can be accurately determined whether the upper edge of the next paper to be printed has passed by the first sensor, thereby facilitating the subsequent selection of the corresponding alignment method based on this specific position. When the first sensor does not detect that a gap has passed, the upper edge of the next paper to be printed has not passed by the first sensor. At this time, first, the next paper to be printed is aligned with the first sensor as a reference, and then the subsequent alignment operation is performed according to the first preset paper feeding rule, which ensures accurate paper feeding alignment when the upper edge of the next paper to be printed has not passed by the first sensor. When the first sensor detects that a gap has passed, the upper edge of the next paper to be printed has passed by the first sensor. At this time, the next paper to be printed is directly aligned with the printing line as a reference according to the second preset paper feeding rule, which ensures accurate paper feeding alignment after the upper edge of the next paper to be printed has passed by the first sensor. Through the method of the present application, different alignment methods and preset paper feeding rules can be selected according to the specific position of the next paper to be printed to perform precise paper feeding compensation on the target label paper, solve the paper feeding positioning problem caused by different lengths of label papers, so as to ensure that the next paper to be printed can accurately align with the printing line position each time printing is performed, improve the printing efficiency while ensuring the printing quality.
[0057] Please refer to Figure 5 , Figure 5 which is a flowchart of a method for positioning the paper feeding of a label paper provided by an embodiment of the present application.
[0058] As Figure 5 shown, the method for positioning the paper feeding of a label paper may at least include:
[0059] S502. In response to a paper feeding and positioning request for a target label paper, determine whether the first sensor detects that a gap has passed during the printing of the current printing face paper. The first sensor is located upstream of the printing line in the paper output direction.
[0060] Optionally, for step S502, please refer to the detailed description in step S202, which will not be elaborated here.
[0061] S504. If the position of the first sensor is in the gap, or the position of the first sensor is in the face paper and the first sensor does not detect that a gap has passed during the printing of the current printing face paper, align the upper edge of the next face paper to be printed in the paper output direction with the first sensor.
[0062] Optionally, if the position of the first sensor a is in the gap f, align the upper edge of the next face paper to be printed in the paper output direction i with the first sensor a. Exemplarily, Figure 6 is a schematic diagram of the principle of a paper feeding and positioning method for a label paper provided by an embodiment of the present application, showing the positional relationship between the components of the sensor and the target label paper after the printing of the current printing face paper e1 is completed. In Figure 6 , the position of the first sensor a is in the gap f1. At this time, it is necessary to align the upper edge of the next face paper e2 to be printed in the paper output direction i with the first sensor a.
[0063] Optionally, if the position of the first sensor a is in the face paper e and the first sensor a does not detect that a gap f has passed during the printing of the current printing face paper, it is also necessary to align the upper edge of the next face paper to be printed in the paper output direction i with the first sensor a. Exemplarily, Figure 7 is a schematic diagram of the principle of a paper feeding and positioning method for a label paper provided by an embodiment of the present application, showing the positional relationship between the components of the sensor and the target label paper after the printing of the current printing face paper e1 is completed. In Figure 7 , the position of the first sensor a is in the current printing face paper e1. At this time, it is also necessary to align the upper edge of the next face paper e2 to be printed in the paper output direction i with the first sensor a.
[0064] S506. And determine the first paper feeding compensation distance corresponding to the target label paper according to the first preset paper feeding rule, and align the upper edge of the next face paper to be printed in the paper output direction with the printing line according to the first paper feeding compensation distance.
[0065] Optionally, after aligning the upper edge of the next paper to be printed with the first sensor a in the paper output direction i, since there is still a certain distance between the first sensor a and the printing line b in the paper output direction i, at this time, it is necessary to further perform paper feeding compensation on the target label paper according to the first preset paper feeding rule. Specifically, determine the first paper feeding compensation distance corresponding to the target label paper according to the first preset paper feeding rule, and then align the upper edge of the next paper to be printed with the printing line b in the paper output direction i according to the first paper feeding compensation distance.
[0066] S508. If the position of the first sensor is in the paper, and the first sensor detects that a gap passes during the printing of the current printing paper, when the current printing paper is for single-page printing, calculate the second paper feeding compensation distance corresponding to the target label paper according to the second preset paper feeding rule, and align the upper edge of the next paper to be printed with the printing line in the paper output direction according to the second paper feeding compensation distance.
[0067] Optionally, in practical applications, users may need to select cross-page printing or single-page printing according to different printing requirements. Cross-page printing means that the information printed at one time is printed on multiple papers. The current paper contains part of the printing content, and the next paper or even the next-next paper also contains part of the printing content; single-page printing means that the printing content of the current paper is completely contained within the paper, without cross-page printing. If the current printing paper is for cross-page printing, it means that part of the printing content of the current printing paper is also printed on the next paper to be printed. At this time, it is necessary to align the next-next paper to be printed (or a later paper to be printed) with the printing line b, and the number of cross-page printing pages needs to be considered; if the current printing paper is for single-page printing, it means that the next paper to be printed is the paper e that needs to be aligned with the printing line b, and there is no need to consider the additional complexity brought by cross-page printing, and the paper feeding compensation calculation is relatively simpler. The embodiments of the present application only consider the paper feeding compensation calculation method when the current printing paper is for single-page printing, and do not involve the case of cross-page printing.
[0068] Optionally, if the position of the first sensor a is in the paper e, and the first sensor a detects that a gap f passes during the printing of the current printing paper, it means that the upper edge of the next paper to be printed in the paper output direction i has passed the first sensor a. At this time, if the current printing page is for single-page printing, the paper feeding compensation can be performed on the target label paper according to the second preset paper feeding rule. Specifically, determine the second paper feeding compensation distance corresponding to the target label paper according to the second preset paper feeding rule, and then align the upper edge of the next paper to be printed with the printing line b in the paper output direction i according to the second paper feeding compensation distance. Exemplarily, Figure 8 is a schematic diagram of the principle of a paper feeding and positioning method for a label paper provided by an embodiment of the present application, showing the positional relationship between each component of the sensor and the target label paper after the printing of the current printing paper e1 is completed. InFigure 8 In the embodiment, the first sensor a is located in the next paper e2 to be printed. At this time, the upper edge of the next paper e2 to be printed in the paper output direction i needs to be aligned with the printing line b.
[0069] S510, in response to a tearing 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 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 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 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 in the paper output direction, and tear the current printed surface paper from the target label paper by the tearing knife.
[0070] Optionally, in order to further improve the automation level and user experience of the printing task, the method of the embodiment of the present application adds the function of generating a tear-off request when the printing task is completed. 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 it is confirmed that the printing task is 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 easily and accurately torn off after the printing task is completed.
[0071] Optionally, when a tearing request for the target label paper is received, the tearing operation process is immediately started. First, ensure that the upper edge of the next paper to be printed is aligned with the printing line b. For example, Figure 9 A schematic diagram of the principle of a paper feeding positioning method for label paper provided in an embodiment of the present application shows the positional relationship between the 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 feed the target label paper forward and tear the paper distance until the target tear position (the midline of the gap f1 in the paper output direction i) is aligned with the tearing knife d, and perform the tearing task. 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.
[0072] Optionally, according to the calculated tearing distance, the paper feeding mechanism is controlled to move the target label paper along the paper output direction i by a corresponding distance. 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 a preset program, and accurately tears the current printed surface paper from the target label paper.
[0073] S512. Move the target label paper in the direction opposite to the paper output direction by the paper tearing distance until the upper edge of the next paper to be printed in the paper output direction is aligned with the printing line.
[0074] Optionally, when the current printed paper is successfully torn off from the target label paper by the paper tearing knife d, the label printer will determine the distance that the target label paper needs to retreat according to the previously calculated paper tearing distance, and drive the target label paper to retreat the corresponding paper tearing distance in the direction opposite to the paper output direction, and once again ensure 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.
[0075] In the embodiment of the present application, a paper feeding and positioning method for a label paper is provided. By clarifying two specific situations where the first sensor does not detect the passing of the gap, the recognition accuracy of the label paper state is improved, so that the type and paper feeding state of the label paper can be judged more accurately, providing a reliable basis for subsequent alignment and printing operations; the next paper to be printed is aligned with the first sensor as a reference, ensuring the accuracy of the preliminary positioning of the label paper and providing a basis for subsequent accurate alignment with the printing line; by determining the first paper feeding compensation distance according to the first preset paper feeding rule and aligning the upper edge of the next paper to be printed with the printing line according to this distance, the accurate alignment of the label paper is realized, avoiding the problems of missing or overlapping printing content caused by inaccurate paper feeding; by clarifying the situation where the position of the first sensor is in the paper during the detection process and can detect the passing of the gap, the switching of different positions of the label paper can be accurately recognized, so as to adjust the paper feeding strategy in time to avoid missing printing content and effectively improve the accuracy and efficiency of printing; for single-page printing, the second preset paper feeding rule is used to calculate the second paper feeding compensation distance, and the upper edge of the next paper to be printed is accurately aligned with the printing line according to this distance, ensuring the accurate positioning of the label paper during single-page printing, avoiding the deviation or missing of the printing content, and improving the printing quality and efficiency; after each printing task is completed, a paper tearing request is automatically generated, the paper tearing distance is calculated according to 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, realizing the automatic and accurate separation of the label paper, improving the use convenience and automation level; after the paper tearing is completed, the label paper is retreated by the corresponding distance, so that the next paper to be printed is aligned with the printing line again, ensuring that the subsequent printing tasks can be seamlessly connected without manual adjustment, and improving the continuous printing efficiency and automation degree.
[0076] Please refer to Figure 10 , Figure 10 , which is a schematic flowchart of a paper feeding and positioning method for a label paper provided by the embodiment of the present application.
[0077] As Figure 10 shown, the paper feeding and positioning method for the label paper may at least include:
[0078] S1002. In response to a paper feeding and positioning request for a target label paper, determine whether the first sensor detects that a gap passes by during the printing process of the current printing face paper. The first sensor is located upstream of the printing line in the paper output direction.
[0079] Optionally, for step S1002, please refer to the detailed description in step S202, which will not be elaborated here.
[0080] S1004. If the first sensor does not detect that a gap passes by, move the target label paper in the paper output direction until the first sensor detects the upper edge of the next printing face paper in the paper output direction.
[0081] Optionally, when the target label paper moves in the label printer, the first sensor a will capture 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. Therefore, if the first sensor does not detect that a gap passes by, the target label paper will be moved in the paper output direction i until the first sensor a detects the upper edge of the next printing face paper in the paper output direction i to ensure that the subsequent printing tasks can be carried out accurately.
[0082] S1006. Determine the first paper feeding compensation distance corresponding to the target label paper based on the interval distance from the first sensor to the printing line; move the target label paper in the paper output direction by the first paper feeding compensation distance until the upper edge of the next printing face paper in the paper output direction is aligned with the printing line.
[0083] Optionally, after aligning the upper edge of the next printing face paper in the paper output direction i with the first sensor a, since there is still an interval distance L3 between the first sensor a and the printing line b, at this time, the paper feeding compensation should be performed on the target label paper based on this interval distance L3 to ensure that the upper edge of the next printing face paper in the paper output direction i is aligned with the printing line b. Specifically, move the target label paper in the paper output direction i by the length of this interval distance L3, so that the next printing face paper can be aligned with the printing line b.
[0084] Exemplarily, Figure 6 is a schematic diagram of the principle of a paper feeding and positioning method for a label paper provided by an embodiment of the present application. For the second case where the first sensor a does not detect that a gap f passes by (the first sensor a enters the gap from the current printing face paper e1 but has not exited the gap when the current printing face paper e1 ends the printing operation), the positional relationship between each component of the sensor and the target label paper after the printing of the current printing face paper e1 is given. In Figure 6In it, the position of the first sensor a is in the slit f1. After aligning the upper edge of the next paper e2 to be printed in the paper output direction i with the first sensor a, there is still a distance L3 in length between the upper edge of the next paper e2 to be printed in the paper output direction i and the printing line b. At this time, move the target label paper along the paper output direction i by the length of this interval distance L3 so that the next paper to be printed can be aligned with the printing line b.
[0085] Similarly, Figure 7 is a schematic diagram of the principle of a paper feeding and positioning method for a label paper provided by an embodiment of the present application. For the first case where the first sensor a does not detect that a slit f passes (the first sensor a has been feeding paper in the current printing paper e1 and has not experienced the slit f1 at all), the positional relationship between each component of the sensor and the target label paper after the current printing paper e1 is printed is given. In Figure 7 In it, the position of the first sensor a is in the current printing paper e1. After aligning the upper edge of the next paper e2 to be printed in the paper output direction i with the first sensor a, it is also necessary to move the target label paper along the paper output direction i by the length of this interval distance L3 so that the next paper to be printed can be aligned with the printing line b.
[0086] S1008. If the first sensor detects that a slit passes, based on the interval distance from the first sensor to the printing line and the distance from the first sensor to the upper edge of the paper where the first sensor is located in the paper output direction when the current printing paper is printed, calculate the corresponding second paper feeding compensation distance for the target label paper; move the target label paper along the paper output direction by the second paper feeding compensation distance until the upper edge of the next paper to be printed in the paper output direction is aligned with the printing line.
[0087] Optionally, when the first sensor a detects that a slit f passes, it means that the upper edge of the next paper to be printed in the paper output direction i has passed the first sensor a. At this time, according to the second preset paper feeding rule, move the target label paper along the paper output direction i by a certain distance to align the next paper to be printed with the position of the printing line b. Specifically, the calculation formula for the second paper feeding compensation distance is as follows: D = L3 - E, where D is the second paper feeding compensation distance, L3 is the interval distance from the first sensor to the printing line, and E is the distance from the first sensor to the upper edge of the paper where the first sensor is located in the paper output direction when the current printing paper is printed.
[0088] Exemplarily, Figure 8 is a schematic diagram of the principle of a paper feeding and positioning method for a label paper provided by an embodiment of the present application. For the case where the first sensor a detects that a slit f1 passes, the positional relationship between each component of the sensor and the target label paper after the current printing paper e1 is printed is given. In Figure 8In this case, the position of the first sensor a is in the next sheet of paper to be printed e2. At this time, it is necessary to align the upper edge of the next sheet of paper to be printed e2 in the paper output direction i with the printing line b. Specifically, move the target label paper along the paper output direction i by a length of the second compensation distance D (L3 - E), so that the upper edge of the next sheet of paper to be printed e2 in the paper output direction i can be aligned with the printing line b.
[0089] S1010. When the first sensor moves in the sheet of paper or the gap, count the number of steps of the motor; if the number of counted steps is greater than the preset number of steps of the motor at the corresponding position, generate a paper jam prompt message and send the paper jam prompt message to the user.
[0090] Optionally, to further improve the stability and reliability of the label printer, the method of the embodiment of the present application sets the function of monitoring the number of steps of the motor count and paper jam prompt. Specifically, during the operation of the label printer, the internal control system continuously monitors the number of steps of the motor that drives the paper feeding mechanism. Each time the motor rotates one step, it corresponds to a fixed paper feeding distance. Therefore, by counting the number of steps of the motor, the paper feeding distance of the target label paper can be known. And for the sheet of paper e and the gap f of the target label paper, the label printer presets the corresponding preset number of steps of the motor. These preset numbers of steps are determined comprehensively based on factors such as the mechanical structure of the printer and the specifications of the label paper, and represent the number of steps of the motor required for the motor to pass through in the sheet of paper e or the gap f under normal paper feeding conditions. When the first sensor a starts to move in the sheet of paper e or the gap f, synchronously record the number of steps of the motor and compare it with the preset number of steps of the motor at the corresponding position. When the number of counted steps is greater than the preset number of steps of the motor at the corresponding position, it indicates that there is a paper jam or other abnormal paper feeding situation for the target label paper.
[0091] Optionally, once it is determined that there is a paper jam, immediately generate a paper jam prompt message and send the paper jam prompt message to the user through the display screen, indicator light or sound alarm of the printer, etc. After the user receives the paper jam prompt message, the user can take corresponding handling measures according to the content of the prompt message. For example, the user can check whether there is any foreign object blocking the paper feeding path of the printer, adjust the position of the label paper or replace the new label paper, etc. After the user finishes handling the paper jam problem, the label printer can restart the printing task and continue to perform the paper feeding positioning and printing operations.
[0092] In an embodiment of the present application, a method for paper feeding and positioning of a label paper is provided. By moving the target label paper along the paper output direction until the first sensor detects the upper edge of the next to-be-printed face paper in the paper output direction, the upper edge of the next to-be-printed face paper in the paper output direction can be aligned with the first sensor, ensuring the accurate initial position of the label paper during the printing process and providing a reliable basis for subsequent alignment operations based on the printing line. The first paper feeding compensation distance is determined based on the distance between the first sensor and the printing line, and the next to-be-printed face paper is aligned with the printing line according to this distance, achieving precise control of the paper feeding distance of the label paper and avoiding printing content offset or missing caused by inaccurate paper feeding. By comprehensively considering the distance between the first sensor and the printing line and the distance between the first sensor and the upper edge of the face paper when the current printing face paper printing ends, the second paper feeding compensation distance is calculated, and the alignment operation is performed according to this distance, further improving the accuracy of the paper feeding and positioning of the label paper. The paper feeding state is monitored in real time by counting the steps of the motor, and a paper jam prompt is triggered when the number of steps is abnormal, which can quickly locate the paper feeding failure and reduce the printing failure rate caused by mechanical jamming. Ensuring that the distance from the printing line to the paper cutter is greater than the height of the face paper can avoid the label paper being mis-torn when the printing is not completed, ensuring the integrity of the printing.
[0093] Please refer to Figure 11 , Figure 11 which is a schematic flowchart of a method for paper feeding and positioning of a label paper provided by an embodiment of the present application.
[0094] As Figure 11 shown, the method for paper feeding and positioning of the label paper may at least include:
[0095] S1102. In response to a paper feeding and positioning request for the target label paper, determine whether the first sensor detects that a gap passes during the printing of the current printing face paper. The first sensor is located upstream of the printing line in the paper output direction.
[0096] Optionally, for step S1102, please refer to the detailed description in step S202, which will not be elaborated here.
[0097] S1104. If the position of the first sensor is in the face paper and the first sensor does not detect that a gap passes during the printing of the current printing face paper, move the target label paper along the paper output direction until the first sensor first detects the lower edge of the current printing face paper in the paper output direction; continue to move the target label paper along the paper output direction until the first sensor detects the upper edge of the next to-be-printed face paper in the paper output direction.
[0098] Optionally, Figure 7 which is a schematic principle diagram of a method for paper feeding and positioning of a label paper provided by an embodiment of the present application, showing the positional relationship between each component of the sensor and the target label paper after the printing of the current printing face paper e1 ends. AsFigure 7 As shown, when the first sensor a does not detect the passing of a slit f, if the position of the first sensor a is in the current printing paper e1 and the first sensor a does not detect the passing of a slit during the printing of the current printing paper e1, during the alignment operation of the next paper to be printed e2 and the printing line b, first move the target label paper along the paper output direction i until the first sensor a first detects the lower edge of the current printing paper e1 in the paper output direction i; then continue to move the target label paper along the paper output direction i until the first sensor a detects the upper edge of the next paper to be printed e2 in the paper output direction i.
[0099] S1106. And align the next paper to be printed with the printing line as a reference according to the first preset paper feeding rule.
[0100] Optionally, for step S1106, please refer to the detailed description in step S204 and will not be elaborated here.
[0101] S1108. If the first sensor detects the passing of a slit, align the next paper to be printed with the printing line as a reference according to the second preset paper feeding rule.
[0102] Optionally, for step S1108, please refer to the detailed description in step S206 and will not be elaborated here.
[0103] In the embodiment of the present application, a paper feeding and positioning method for a label paper is provided. By moving the target label paper in two steps (first detecting the lower edge of the current printing paper and then detecting the upper edge of the next paper to be printed), it is ensured that the first sensor can accurately capture the boundary change of the paper, thereby improving the accuracy and reliability of paper feeding and positioning, and effectively avoiding printing errors caused by inaccurate detection of the paper edge.
[0104] Please refer to Figure 12 , Figure 12 which is the structural block diagram of a paper feeding and positioning device for a label paper provided by the embodiment of the present application. As Figure 12 shown, the paper feeding and positioning device 1200 for a label paper includes:
[0105] A slit judgment module 1210, in response to a paper feeding and positioning request for the target label paper, judges whether the first sensor detects the passing of a slit during the printing of the current printing paper. The first sensor is located upstream of the printing line in the paper output direction;
[0106] A first paper feeding compensation module 1220, which is used to, if the first sensor does not detect the passing of a slit, align the next paper to be printed with the first sensor as a reference and align the next paper to be printed with the printing line as a reference according to the first preset paper feeding rule;
[0107] The second paper feeding compensation module 1230 is configured to, if the first sensor detects that a gap has passed, align the next to-be-printed face paper with respect to the printing line according to a second preset paper feeding rule.
[0108] In some possible embodiments, the first paper feeding compensation module 1220 is further configured to: the position of the first sensor is in the gap; or, the position of the first sensor is in the face paper, and the first sensor does not detect that a gap has passed during the printing of the current printing face paper.
[0109] In some possible embodiments, the first paper feeding compensation module 1220 is further configured to align the upper edge of the next to-be-printed face paper in the paper output direction with the first sensor.
[0110] In some possible embodiments, the first paper feeding compensation module 1220 is further configured to move the target label paper in the paper output direction until the first sensor detects the upper edge of the next to-be-printed face paper in the paper output direction.
[0111] In some possible embodiments, when the position of the first sensor is in the face paper and the first sensor does not detect that a gap has passed during the printing of the current printing face paper, the first paper feeding compensation module 1220 is further configured to move the target label paper in the paper output direction until the first sensor first detects the lower edge of the current printing face paper in the paper output direction; and continue to move the target label paper in the paper output direction until the first sensor detects the upper edge of the next to-be-printed face paper in the paper output direction.
[0112] In some possible embodiments, the first paper feeding compensation module 1220 is further configured to determine a first paper feeding compensation distance corresponding to the target label paper according to a first preset paper feeding rule, and align the upper edge of the next to-be-printed face paper in the paper output direction with the printing line according to the first paper feeding compensation distance.
[0113] In some possible embodiments, the first paper feeding compensation module 1220 is further configured to determine a first paper feeding compensation distance corresponding to the target label paper based on the distance between the first sensor and the printing line; and move the target label paper in the paper output direction by the first paper feeding compensation distance until the upper edge of the next to-be-printed face paper in the paper output direction is aligned with the printing line.
[0114] In some possible embodiments, the second paper feeding compensation module 1230 is further configured to: the position of the first sensor is in the face paper, and the first sensor detects that a gap has passed during the printing of the current printing face paper.
[0115] In some possible embodiments, the second paper feeding compensation module 1230 is further configured to, when the current printing face paper is for single-page printing, calculate a second paper feeding compensation distance corresponding to the target label paper according to a second preset paper feeding rule, and align the upper edge of the next face paper to be printed in the paper output direction with the printing line based on the second paper feeding compensation distance.
[0116] In some possible embodiments, the second paper feeding compensation module 1230 is further configured to calculate a second paper feeding compensation distance corresponding to the target label paper based on the distance between the first sensor and the printing line, and the distance from the first sensor to the upper edge of the face paper where the first sensor is located in the paper output direction when the printing of the current printing face paper ends; move the target label paper in the paper output direction by the second paper feeding compensation distance until the upper edge of the next face paper to be printed in the paper output direction is aligned with the printing line.
[0117] In some possible embodiments, the paper feeding and positioning device 1200 for label paper further includes: a paper tearing task execution module, configured to, in response to a paper tearing request for the target label paper, align the upper edge of the next face paper to be printed with the printing line in the paper output direction, and calculate a paper tearing distance corresponding to the target label paper based on the distance from the second sensor to the paper 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, where the printing line is upstream of the second sensor in the paper output direction, and the second sensor is upstream of the paper tearing knife in the paper output direction; move the target label paper in the paper output direction by the paper tearing distance, and tear off the current printing face paper from the target label paper through the paper tearing knife.
[0118] In some possible embodiments, the paper feeding and positioning device 1200 for label paper further includes: a paper tearing retraction module, configured to, after the paper tearing task execution module tears off the current printing face paper from the target label paper through the paper tearing knife, move the target label paper in the opposite direction of the paper output direction by the paper tearing distance until the upper edge of the next face paper to be printed in the paper output direction is aligned with the printing line.
[0119] In some possible embodiments, the paper feeding and positioning device 1200 for label paper further includes: a paper jamming prompt module, configured to count the number of counting steps of the motor when the first sensor moves in the face paper or the gap; if the number of counting steps is greater than the preset number of steps of the motor at the corresponding position, generate a paper jamming prompt message and send the paper jamming prompt message to the user.
[0120] In an embodiment of the present application, a paper feeding and positioning device for label paper is provided. Among them, a gap judgment module, in response to a paper feeding and positioning request for a target label paper, judges whether a first sensor detects that a gap passes during the printing of the current printing face paper. The first sensor is located upstream of the printing line in the paper output direction; a first paper feeding compensation module is used to align the next to-be-printed face paper with the first sensor as a reference if the first sensor does not detect that a gap passes, and align the next to-be-printed face paper with the printing line as a reference according to a first preset paper feeding rule; a second paper feeding compensation module is used to align the next to-be-printed face paper with the printing line as a reference according to a second preset paper feeding rule if the first sensor detects that a gap passes. The gap judgment module can clarify the specific position of the next to-be-printed face paper by judging whether the first sensor detects that a gap passes during the printing of the current printing face paper, and accurately judge whether the upper edge of the next to-be-printed face paper has passed the first sensor, so as to facilitate subsequent selection of corresponding alignment methods based on this specific position; when the first sensor does not detect that a gap passes, the upper edge of the next to-be-printed face paper has not passed the first sensor yet. At this time, the first paper feeding compensation module first aligns the next to-be-printed face paper with the first sensor as a reference, and then performs subsequent alignment operations according to the first preset paper feeding rule, which ensures accurate paper feeding and alignment when the upper edge of the next to-be-printed face paper has not passed the first sensor; when the first sensor detects that a gap passes, the upper edge of the next to-be-printed face paper has passed the first sensor. At this time, the second paper feeding compensation module directly aligns the next to-be-printed face paper with the printing line as a reference according to the second preset paper feeding rule, which ensures accurate paper feeding and alignment after the upper edge of the next to-be-printed face paper has passed the first sensor. Through the method of the present application, different alignment methods and preset paper feeding rules can be selected according to the specific position of the next to-be-printed face paper to perform precise paper feeding compensation on the target label paper, solve the paper feeding and positioning problem caused by different lengths of label paper, so as to ensure that the next to-be-printed face paper can be accurately aligned with the printing line position each time printing is performed, improve the printing efficiency and ensure the printing quality at the same time.
[0121] The embodiment of the present application also provides a computer storage medium. The computer storage medium can store multiple instructions, and the instructions are suitable for being loaded and executed by a processor to perform the steps of the method in any one of the above embodiments.
[0122] Please refer to Figure 13 , Figure 13 which is a schematic structural diagram of a terminal provided by an embodiment of the present application. As Figure 13 shown, the terminal 1300 may include: at least one terminal processor 1301, at least one network interface 1304, a user interface 1303, a memory 1305, and at least one communication bus 1302.
[0123] Among them, the communication bus 1302 is used to realize the connection and communication between these components.
[0124] Among them, the user interface 1303 may include a display screen and a camera. Optionally, the user interface 1303 may further include a standard wired interface and a wireless interface.
[0125] Among them, the network interface 1304 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).
[0126] Among them, the terminal processor 1301 may include one or more processing cores. The terminal processor 1301 connects various parts within the entire terminal 1300 through various interfaces and lines. By running or executing instructions, programs, code sets or instruction sets stored in the memory 1305, and by invoking data stored in the memory 1305, it executes various functions of the terminal 1300 and processes data. Optionally, the terminal processor 1301 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The terminal processor 1301 may integrate one or a combination of several of a central processing unit (CPU), a graphics processing unit (GPU), and a modem, etc. Among them, the CPU mainly processes the operating system, user interface, and application programs, etc.; the GPU is responsible for the rendering and drawing of the content to be displayed on the display screen; the modem is used to process wireless communication. It can be understood that the above-mentioned modem may not be integrated into the terminal processor 1301 and may be implemented separately by a single chip.
[0127] Among them, the memory 1305 may include a Random Access Memory (RAM), or may include a Read-Only Memory (ROM). Optionally, the memory 1305 includes a non-transitory computer-readable storage medium. The memory 1305 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 1305 may include a program storage area and a data storage area. Among them, 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 method embodiments, etc.; the data storage area may store data involved in the above method embodiments. Optionally, the memory 1305 may also be at least one storage device located far from the aforementioned terminal processor 1301. As Figure 13 shown, the memory 1305 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.
[0128] In Figure 13 the terminal 1300 shown, the user interface 1303 is mainly used to provide an input interface for the user to obtain user input data; while the terminal processor 1301 can be used to call the paper feeding and positioning program for label paper stored in the memory 1305 and specifically perform the following operations:
[0129] In response to a paper feeding and positioning request for a target label paper, determine whether the first sensor detects that a gap passes during the printing of the current printing paper. The first sensor is located upstream of the printing line in the paper output direction;
[0130] If the first sensor does not detect that a gap passes, align the next paper to be printed with the first sensor as a reference, and align the next paper to be printed with the printing line as a reference according to the first preset paper feeding rule;
[0131] If the first sensor detects that a gap passes, align the next paper to be printed with the printing line as a reference according to the second preset paper feeding rule.
[0132] In some possible embodiments, that the first sensor does not detect that a gap passes includes: the position of the first sensor is in the gap; or, the position of the first sensor is in the paper, and the first sensor does not detect that a gap passes during the printing of the current printing paper.
[0133] In some possible embodiments, when the terminal processor 1301 performs the alignment operation of aligning the next sheet of paper to be printed with respect to the first sensor, the following steps are specifically performed: Align the upper edge of the next sheet of paper to be printed in the paper output direction with the first sensor.
[0134] In some possible embodiments, when the terminal processor 1301 performs the alignment of aligning the upper edge of the next sheet of paper to be printed in the paper output direction with the first sensor, the following steps are specifically performed: Move the target label paper in the paper output direction until the first sensor detects the upper edge of the next sheet of paper to be printed in the paper output direction.
[0135] In some possible embodiments, when the position of the first sensor is in the sheet of paper and the first sensor does not detect a gap passing through during the printing of the current sheet of paper to be printed, when the terminal processor 1301 performs the operation of moving the target label paper in the paper output direction until the first sensor detects the upper edge of the next sheet of paper to be printed in the paper output direction, the following steps are specifically performed: Move the target label paper in the paper output direction until the first sensor first detects the lower edge of the current sheet of paper to be printed in the paper output direction; Move the target label paper in the paper output direction continuously until the first sensor detects the upper edge of the next sheet of paper to be printed in the paper output direction.
[0136] In some possible embodiments, when the terminal processor 1301 performs the alignment operation of aligning the next sheet of paper to be printed with respect to the printing line according to the first preset paper feeding rule, the following steps are specifically performed: Determine the first paper feeding compensation distance corresponding to the target label paper according to the first preset paper feeding rule, and align the upper edge of the next sheet of paper to be printed in the paper output direction with the printing line according to the first paper feeding compensation distance.
[0137] In some possible embodiments, when the terminal processor 1301 performs the operation of determining the first paper feeding compensation distance corresponding to the target label paper according to the first preset paper feeding rule and aligning the upper edge of the next sheet of paper to be printed in the paper output direction with the printing line according to the first paper feeding compensation distance, the following steps are specifically performed: Determine the first paper feeding compensation distance corresponding to the target label paper based on the interval distance from the first sensor to the printing line; Move the target label paper in the paper output direction by the first paper feeding compensation distance until the upper edge of the next sheet of paper to be printed in the paper output direction is aligned with the printing line.
[0138] In some possible embodiments, the first sensor detecting a gap passing through includes: The position of the first sensor is in the sheet of paper, and the first sensor detects a gap passing through during the printing of the current sheet of paper to be printed.
[0139] In some possible embodiments, when the terminal processor 1301 performs the alignment operation of aligning the next to-be-printed face paper with the printing line according to the second preset paper feeding rule, it specifically performs the following steps: When the current printed face paper is for single-page printing, calculate the second paper feeding compensation distance corresponding to the target label paper according to the second preset paper feeding rule, and align the upper edge of the next to-be-printed face paper in the paper output direction with the printing line based on the second paper feeding compensation distance.
[0140] In some possible embodiments, when the terminal processor 1301 calculates the second paper feeding compensation distance corresponding to the target label paper according to the second preset paper feeding rule and aligns the upper edge of the next to-be-printed face paper in the paper output direction with the printing line based on the second paper feeding compensation distance, it specifically performs the following steps: Calculate the second paper feeding compensation distance corresponding to the target label paper based on the distance between the first sensor and the printing line and the distance from the first sensor to the upper edge of the face paper where the first sensor is located in the paper output direction when the printing of the current printed face paper ends; Move the target label paper in the paper output direction by the second paper feeding compensation distance until the upper edge of the next to-be-printed face paper in the paper output direction is aligned with the printing line.
[0141] In some possible embodiments, the terminal processor 1301 further specifically performs the following steps: In response to a paper tearing request for the target label paper, align the upper edge of the next to-be-printed face paper with the printing line in the paper output direction, and calculate the paper tearing distance corresponding to the target label paper based on the distance from the second sensor to the paper 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 upstream of the second sensor in the paper output direction, and the second sensor is upstream of the paper tearing knife in the paper output direction; Move the target label paper in the paper output direction by the paper tearing distance, and tear off the current printed face paper from the target label paper through the paper tearing knife.
[0142] In some possible embodiments, after the terminal processor 1301 tears off the current printed face paper from the target label paper through the paper tearing knife, it further specifically performs the following steps: Move the target label paper in the opposite direction of the paper output direction by the paper tearing distance until the upper edge of the next to-be-printed face paper in the paper output direction is aligned with the printing line.
[0143] In some possible embodiments, the terminal processor 1301 further specifically performs the following steps: When the first sensor moves in the face paper or the gap, count the number of counting steps of the motor; If the number of counting steps is greater than the preset number of steps of the motor at the corresponding position, generate a paper jamming prompt message and send the paper jamming prompt message to the user.
[0144] In several embodiments provided by the present 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. For example, 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 displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of devices or modules can be in electrical, mechanical or other forms.
[0145] The modules described as separate components may or may not be physically separated. The components shown as modules may or may not be physical modules, that is, they can be located in one place or distributed to multiple network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0146] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The above computer program product includes one or more computer instructions. When the above computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of this specification are generated in whole or in part. The above computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The above computer instructions can be stored in a computer-readable storage medium or transmitted through the above computer-readable storage medium. The above computer instructions can be transmitted from a website, computer, server or data center to another website, computer, server or data center in a wired (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) manner. The above computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, data center, etc. that contains one or more integrated available media. The above available medium can be a magnetic medium (for example, floppy disk, hard disk, magnetic tape), an optical medium (for example, Digital Versatile Disc (DVD)), or a semiconductor medium (for example, Solid State Disk (SSD)), etc.
[0147] It should be noted that, for the foregoing method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations. However, those skilled in the art should be aware that this application is not limited by the described action sequence, because according to this application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0148] In the above embodiments, the descriptions of each embodiment have their own focuses. For the parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0149] The above is the description of a paper feeding and positioning method, device, storage medium, and terminal for a label paper provided by this application. For those skilled in the art, according to the idea of the embodiments of this application, there will be changes in the specific implementation manners and application scopes. In summary, the content of this specification should not be construed as a limitation to this application.
Claims
1. A paper feeding and positioning method for label paper, characterized in that, The method includes: In response to a paper feeding and positioning request for a target label paper, determining whether the first sensor detects that a gap passes during the printing of the current printing paper, where the first sensor is located upstream of the printing line in the paper output direction; If the first sensor does not detect that a gap passes, aligning the next printing paper to be printed with the first sensor as a reference, and aligning the next printing paper to be printed with the printing line as a reference according to a first preset paper feeding rule; If the first sensor detects that a gap passes, aligning the next printing paper to be printed with the printing line as a reference according to a second preset paper feeding rule.
2. The method according to claim 1, wherein That the first sensor does not detect that a gap passes includes: The position of the first sensor is in the gap; Or, the position of the first sensor is in the paper, and the first sensor does not detect that a gap passes during the printing of the current printing paper.
3. The method according to claim 1, characterized in that, The aligning the next printing paper to be printed with the first sensor as a reference includes: Aligning the upper edge of the next printing paper to be printed in the paper output direction with the first sensor.
4. The method according to claim 3, characterized in that, The aligning the upper edge of the next printing paper to be printed in the paper output direction with the first sensor includes: Moving the target label paper in the paper output direction until the first sensor detects the upper edge of the next printing paper to be printed in the paper output direction.
5. The method according to claim 4, wherein When the position of the first sensor is in the paper and the first sensor does not detect that a gap passes during the printing of the current printing paper, the moving the target label paper in the paper output direction until the first sensor detects the upper edge of the next printing paper to be printed in the paper output direction includes: Moving the target label paper in the paper output direction until the first sensor first detects the lower edge of the current printing paper in the paper output direction; Continuing to move the target label paper in the paper output direction until the first sensor detects the upper edge of the next printing paper to be printed in the paper output direction.
6. The method according to claim 1, characterized in that, The aligning the next printing paper to be printed with the printing line as a reference according to the first preset paper feeding rule includes: Determining a first paper feeding compensation distance corresponding to the target label paper according to the first preset paper feeding rule, and aligning the upper edge of the next printing paper to be printed in the paper output direction with the printing line according to the first paper feeding compensation distance.
7. The method according to claim 6, wherein The determining a first paper feeding compensation distance corresponding to the target label paper according to the first preset paper feeding rule, and aligning the upper edge of the next printing paper to be printed in the paper output direction with the printing line according to the first paper feeding compensation distance includes: Determining the first paper feeding compensation distance corresponding to the target label paper based on the interval distance from the first sensor to the printing line; Moving the target label paper in the paper output direction by the first paper feeding compensation distance until the upper edge of the next printing paper to be printed in the paper output direction is aligned with the printing line.
8. The method according to claim 1, wherein That the first sensor detects that a gap passes includes: The position of the first sensor is in the facial tissue, and the first sensor detects that a gap passes by during the printing of the current printed facial tissue.
9. The method according to claim 1, characterized in that The aligning operation of aligning the next facial tissue to be printed with respect to the printing line according to the second preset paper feeding rule includes: When the current printed facial tissue is for single-page printing, calculate the second paper feeding compensation distance corresponding to the target label paper according to the second preset paper feeding rule, and align the upper edge of the next facial tissue to be printed in the paper output direction with the printing line based on the second paper feeding compensation distance.
10. The method according to claim 9, wherein The calculating the second paper feeding compensation distance corresponding to the target label paper according to the second preset paper feeding rule and aligning the upper edge of the next facial tissue to be printed in the paper output direction with the printing line based on the second paper feeding compensation distance includes: Calculate the second paper feeding compensation distance corresponding to the target label paper based on the interval distance from the first sensor to the printing line and the distance from the first sensor to the upper edge of the facial tissue where the first sensor is located in the paper output direction when the printing of the current printed facial tissue ends; Move the target label paper in the paper output direction by the second paper feeding compensation distance until the upper edge of the next facial tissue to be printed in the paper output direction is aligned with the printing line.
11. The method according to claim 1, wherein The method further includes: In response to a paper tearing request for the target label paper, align the upper edge of the next facial tissue to be printed with the printing line in the paper output direction, and calculate the paper tearing distance corresponding to the target label paper based on the distance from the second sensor to the paper 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 upstream of the second sensor in the paper output direction, and the second sensor is upstream of the paper tearing knife in the paper output direction; Move the target label paper in the paper output direction by the paper tearing distance, and tear off the current printed facial tissue from the target label paper through the paper tearing knife.
12. The method according to claim 11, wherein After tearing off the current printed facial tissue from the target label paper through the paper tearing knife, the method further includes: Move the target label paper in the opposite direction of the paper output direction by the paper tearing distance until the upper edge of the next facial tissue to be printed in the paper output direction is aligned with the printing line.
13. The method according to claim 1, characterized in that, The method further includes: When the first sensor moves in the facial tissue or the gap, count the number of steps of the motor; If the number of counted steps is greater than the preset number of steps of the motor at the corresponding position, generate a paper jamming prompt message and send the paper jamming prompt message to the user.
14. A paper feeding and positioning device for label paper, characterized in that, The device includes: A gap judgment module, which, in response to a paper feeding and positioning request for the target label paper, judges whether the first sensor detects that a gap passes by during the printing of the current printed facial tissue. The first sensor is upstream of the printing line in the paper output direction. The first paper feeding compensation module is configured to, if the first sensor does not detect that a gap has passed, align the next paper to be printed with the first sensor as a reference and align the next paper to be printed with the printing line as a reference according to the first preset paper feeding rule; The second paper feeding compensation module is configured to, if the first sensor detects that a gap has passed, align the next paper to be printed with the printing line as a reference according to the second preset paper feeding rule.
15. A computer storage medium, characterized in that, The computer storage medium stores multiple instructions, and the instructions are adapted to be loaded and executed by a processor to perform the steps of the method according to any one of claims 1 to 13.
16. A terminal, characterized in that, It includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, it implements the steps of the method according to any one of claims 1 to 13.
Citation Information
Cited By
Label paper gap positioning method and apparatus, storage medium, and electronic device
WO2026153514A1