Label paper printing method and device, label printer and storage medium
By setting up positioning sensors in the label printer, the problem of label paper positioning is solved, fast and accurate label paper printing is achieved, and printing efficiency is improved.
Patent Information
- Application Number
- CN202510569195.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-30
- Publication Date
- 2025-08-01
AI Technical Summary
In the prior art, label paper is difficult to accurately locate when printing, resulting in low printing efficiency and long waiting time.
Set up a positioning sensor in the label printer. The positioning sensor detects the surface paper position of the label paper, controls the output or return paper of the label paper, aligns the upper gap of the surface paper with the tearing knife, and then controls the fixed length of the label paper return paper, and aligns the upper edge of the surface paper to the printing line for normal printing.
Through the control of the positioning sensor, the positioning of the surface paper can be quickly completed with a smaller paper-moving distance, reducing printing waiting time, and improving the working efficiency of the label printer.
Smart Images

Figure CN120396536A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of label printers. Specifically, the present application relates to a label paper printing method, device, label printer and computer-readable storage medium. Background Art
[0002] Labels refer to the text, graphic symbols and all descriptive materials on products. They are widely used in scenarios such as supermarket retail, industrial production, express delivery, clothing, and office management. For example, they can be used for price tags, product description labels, shelf labels, barcode labels, clothing labels, document labels, archive labels, various items and stationery labels, express delivery labels, etc. Obtaining labels through label printing has become a common method.
[0003] In the prior art, after placing the label paper into the printer box cover, the first label paper must be pulled out of the printer for a distance. If printed directly, the information to be printed cannot be accurately printed on the label paper surface, requiring a more complicated label positioning step, resulting in low printing efficiency. Summary of the Invention
[0004] The embodiments of the present application provide a label paper printing method, device, label printer and computer-readable storage medium, which aim to solve the technical problems of difficult positioning of label paper surface paper, long printing waiting time and low efficiency.
[0005] In a first aspect, a label paper printing method is provided, which is applied to a label printer, wherein the label printer includes a printing line, a positioning sensor, and a tearing knife arranged in sequence in a paper output direction, and the method includes:
[0006] The label paper is fed out and fed back based on a positioning sensor so that the upper gap of the upper paper of the label paper is aligned with the first position where the tearing knife is located; the label paper includes multiple face papers, and there is a gap between each two adjacent face papers; the distance between the tearing knife and the positioning sensor is less than or equal to the length of the face papers;
[0007] Continue to control the label paper feeding until the preset conditions are met, then control the label paper to be fed out and start printing on the opposite paper based on the print line.
[0008] Optionally, controlling the label paper to be fed out and fed back based on a positioning sensor so that the upper gap of the label paper is aligned with the first position where the tearing knife is located includes:
[0009] Control the label paper to be printed out;
[0010] When the positioning sensor detects the first edge of the face paper, the label paper is controlled to stop feeding and rewind; the first edge is perpendicular to the paper feeding direction;
[0011] When the positioning sensor detects the second edge of the facial tissue, control the label paper to stop rewinding; the second edge is perpendicular to the paper output direction and is different from the first edge;
[0012] Control the label paper to output paper outward until the upper gap of the facial tissue on the label paper aligns with the first position where the paper cutter is located.
[0013] Optionally, when the positioning sensor detects the first edge of the facial tissue, controlling the label paper to stop paper output and rewind paper includes:
[0014] When the positioning sensor changes from detecting the facial tissue of the label paper to detecting the base paper corresponding to the gap of the label paper, control the label paper to stop paper output and rewind paper.
[0015] Optionally, when the positioning sensor detects the second edge of the facial tissue, controlling the label paper to stop rewinding paper includes:
[0016] When the positioning sensor changes from detecting the facial tissue of the label paper to detecting the base paper corresponding to the gap of the label paper again, control the label paper to stop rewinding paper.
[0017] Optionally, the positioning sensor includes a photoelectric sensor; the method further includes:
[0018] Send an optical signal to the label paper through the positioning sensor and obtain a corresponding optical response value; the optical response value includes at least one of a reflection value and a transmission value;
[0019] If the optical response value changes from a first value to a second value, it is determined that the positioning sensor changes from detecting the facial tissue of the label paper to detecting the base paper corresponding to the gap of the label paper; the first value is the optical detection response value corresponding to the facial tissue; the second value is the optical detection response value of the base paper corresponding to the gap.
[0020] Optionally, controlling the label paper to output paper outward until the upper gap of the facial tissue on the label paper aligns with the first position where the paper cutter is located includes:
[0021] Based on the distance between the positioning sensor and the paper cutter and the length of the gap, determine the target paper output distance;
[0022] Based on the target paper output distance, control the label paper to output paper outward until the upper gap of the facial tissue on the label paper aligns with the first position where the paper cutter is located.
[0023] Optionally, the label printer includes a first information reading and writing device, and the label paper is provided with a second information reading and writing device;
[0024] Before determining the target paper output distance based on the distance between the positioning sensor and the paper cutter and the length of the gap, the method further includes:
[0025] Read the second information reading and writing device on the label paper through the first information reading and writing device to obtain the label paper information; the label paper information includes the length of the gap.
[0026] And / or
[0027] Receive the label paper information input by the user on the label printer and / or on the terminal connected to the label printer.
[0028] Optionally, control the label paper to feed out until the upper gap of the top sheet on the label paper aligns with the first position where the paper cutter is located, including:
[0029] Determine the corresponding paper feeding speed based on the length of the top sheet in the paper feeding direction;
[0030] Control the label paper to feed out based on the paper feeding speed until the upper gap of the top sheet on the label paper aligns with the first position where the paper cutter is located.
[0031] Optionally, the method further includes:
[0032] Determine the paper rewinding speed based on the length of the top sheet in the paper feeding direction and the paper feeding speed; the paper rewinding speed is less than or equal to the preset speed threshold;
[0033] Control the label paper to rewind based on the paper rewinding speed.
[0034] Optionally, the paper rewinding speed is less than the paper feeding speed.
[0035] Optionally, control the label paper to feed out and rewind based on the positioning sensor so that the upper gap of the top sheet on the label paper aligns with the first position where the paper cutter is located, including:
[0036] Control the label paper to feed out;
[0037] When the positioning sensor detects the first edge of the top sheet, control the label paper to stop feeding out;
[0038] Determine the paper rewinding distance based on the distance between the paper cutter and the positioning sensor, the length of the top sheet, and the length of the gap;
[0039] Control the label paper to rewind based on the paper rewinding distance so that the upper gap of the top sheet on the label paper aligns with the first position where the paper cutter is located.
[0040] Optionally, continue to control the label paper to rewind until after the preset condition is met, then control the label paper to feed out and start printing on the top sheet based on the printing line, including:
[0041] Continue to control the label paper to rewind until the second edge of the top sheet aligns with the second position where the printing line is located, or until the preset printing position aligns with the second position where the printing line is located; the preset printing position is set on the top sheet and is different from the second edge.
[0042] Control the label paper to feed outwards and start printing on the facing paper based on the printing line.
[0043] Optionally, the method further includes:
[0044] Record the motor steps of the label paper feeding outwards or feeding back;
[0045] If the motor steps are greater than the preset step threshold, send a paper jam prompt signal; the paper jam prompt signal is used to prompt the user that the label printer has jammed.
[0046] In a second aspect, a label paper printing device is provided, which is applied to a label printer. The label printer includes a printing line, a positioning sensor, and a paper cutter arranged in sequence in the paper feeding direction. The device includes:
[0047] A paper feeding module, configured to control the label paper to feed outwards and feed back based on the positioning sensor, so that the upper gap of the facing paper on the label paper is aligned with the first position where the paper cutter is located; the label paper includes multiple facing papers, and there is a gap between every two adjacent facing papers; the distance between the paper cutter and the positioning sensor is less than or equal to the length of the facing paper;
[0048] A printing module, configured to continue to control the label paper to feed back until a preset condition is met, then control the label paper to feed outwards, and start printing on the facing paper based on the printing line.
[0049] In a third aspect, a label printer is provided. The label printer includes a main body, and a print head, a positioning sensor, a paper cutter, and a control module are arranged on the main body. It is characterized in that the print head includes a printing line, and the printing line, the positioning sensor, and the paper cutter are arranged in sequence in the paper feeding direction of the label paper, and the control module executes and implements the steps of any method in the first aspect of the present application.
[0050] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the label paper printing method shown in any one of the first aspects of the present application is implemented.
[0051] The beneficial effects brought by the technical solutions provided by the embodiments of the present application are:
[0052] The label paper printing method provided by this application detects the position of the face paper of the label paper through a positioning sensor set in the label printer, controls the paper feeding or paper rewinding of the label paper, aligns the upper gap of the face paper of the label paper with the paper cutter, and then controls the label paper to rewind a fixed length to align the upper edge of the face paper of the label paper with the printing line, so that normal printing can be carried out, and the complete information to be printed can be printed on the face paper of the label paper. Controlling the paper feeding or paper rewinding of the label paper based on the positioning sensor can quickly complete the positioning of the face paper with a smaller paper feeding distance, reduce the printing waiting time, and improve the working efficiency of the label printer. Description of the Drawings
[0053] To more clearly illustrate the technical solutions in the embodiments of this application, the following briefly introduces the drawings required for description in the embodiments of this application.
[0054] Figure 1 Schematic diagram of the application scenario of a label paper printing method provided by an embodiment of this application;
[0055] Figure 2 Schematic diagram of the flow of a label paper printing method provided by an embodiment of this application;
[0056] Figure 3 Schematic diagram of the flow of moving to the first position in a label paper printing method provided by an embodiment of this application;
[0057] Figure 4 Schematic diagram of the label paper in a label paper printing method provided by an embodiment of this application;
[0058] Figure 5 Schematic diagram of the structural relationship of the positioning sensor in a label paper printing method provided by an embodiment of this application;
[0059] Figure 6 Schematic diagram of the flow of an example of a label paper printing method provided by an embodiment of this application;
[0060] Figure 7 Schematic diagram of the structure of a label paper printing device provided by an embodiment of this application;
[0061] Figure 8 Schematic diagram of the structure of the label printer applicable to the label paper printing method provided by an embodiment of this application. Detailed Embodiments
[0062] The following describes the embodiments of this application with reference to the drawings in this application. It should be understood that the embodiments described below in conjunction with the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of this application, and do not constitute limitations on the technical solutions of the embodiments of this application.
[0063] Those skilled in the art can understand that, unless specifically stated otherwise, the singular forms "a", "an", "the" and "said" used herein may also include the plural forms. It should be further understood that the terms "comprising" and "including" used in the embodiments of the present application mean that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements and / or components, but do not exclude the implementation of other features, information, data, steps, operations, elements, components and / or their combinations supported by the technical field of the present application, etc. It should be understood that when we say an element is "connected" or "coupled" to another element, the one element can be directly connected or coupled to the other element, or it can mean that the one element and the other element establish a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used herein can include wireless connection or wireless coupling. The terms "or", "and / or", "including at least one of the following" and the like used in the present application can be interpreted inclusively, or mean any one or any combination. For example, "including at least one of the following: A, B, C" means "any one of the following: A; B; C; A and B; A and C; B and C; A and B and C", and again, "A, B or C" or "A, B and / or C" means "any one of the following: A; B; C; A and B; A and C; B and C; A and B and C".
[0064] In the embodiments of the present application, the term "module" or "unit" refers to a computer program with a predetermined function or a part of a computer program, which works together with other related parts to achieve a predetermined goal, and can be fully or partially implemented by using software, hardware (such as a processing circuit or a memory) or a combination thereof. Similarly, one processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be a part of the overall module or unit that includes the function of the module or unit.
[0065] To make the objectives, technical solutions and advantages of the present application clearer, the following will further describe the embodiments of the present application in detail with reference to the accompanying drawings.
[0066] In the prior art, after putting the label paper into the printer cartridge cover, the user will pull out the first label paper a certain distance from the printer. If printing directly, it may miss the front face paper or make the information to be printed unable to be completely printed on one label face paper, resulting in waste of face paper or printing errors, and it will take a long time to adjust the position of the label paper, resulting in low printing efficiency.
[0067] The label paper printing method, device, printer and computer-readable storage medium provided by the present application are intended to solve at least one of the above technical problems in the prior art.
[0068] In view of at least one of the above technical problems or areas for improvement in the related art, the present application proposes a label paper printing method, apparatus, label printer, and computer-readable storage medium. The label paper printing method provided by this solution detects the position of the face paper of the label paper through a positioning sensor set in the label printer, controls the paper feeding or paper rewinding of the label paper, aligns the upper slit of the face paper of the label paper with the paper cutter, and then controls the label paper to rewind a fixed length so that the upper edge of the face paper of the label paper is aligned with the printing line, and then normal printing can be performed, thereby printing the complete information to be printed on the face paper of the label paper. Controlling the paper feeding or paper rewinding of the label paper based on the positioning sensor can quickly complete the positioning of the face paper with a smaller paper feeding distance, reduce the printing waiting time, and improve the working efficiency of the label printer.
[0069] The technical solutions of the embodiments of the present application and the technical effects produced by the technical solutions of the present application will be described below through the description of several exemplary embodiments. It should be noted that the following embodiments can be referenced, learned from, or combined with each other. For the same terms, similar features, and similar implementation steps in different embodiments, they will not be repeated.
[0070] Figure 1 It is a schematic diagram of the application scenario of the label paper printing method provided by the embodiment of the present application. Among them, the application environment may include a label printer 100. The label printer 100 includes a main body, on which a print head, a positioning sensor, a paper cutter, and a control module are provided. The print head includes a printing line, and the printing line, the positioning sensor, and the paper cutter are arranged in sequence according to the paper feeding direction of the label paper.
[0071] Specifically, the label printer 100 controls the label paper to feed out and rewind based on the positioning sensor, so that the upper slit of the face paper on the label paper is aligned with the first position where the paper cutter is located. Continue to control the label paper to rewind until a preset condition is met, then control the label paper to feed out, and start printing on the face paper based on the printing line. Among them, the label paper includes multiple face papers, and there is a slit between every two adjacent face papers. The distance between the paper cutter and the positioning sensor is less than or equal to the length of the face paper.
[0072] In the specific implementation process, the label printer further includes a cartridge cover and a rubber roller. The label paper feeds out from the cartridge cover. The rubber roller is used to press the label paper and control the label paper to feed out or rewind by rolling or other paper feeding methods. The control module in the label printer controls the positioning sensor, so that the rubber roller drives the label paper to feed out and rewind, so that the upper slit of the face paper on the label paper is aligned with the first position where the paper cutter is located. The control module continues to control the rubber roller to drive the label paper to rewind until a preset condition is met, then controls the label paper to feed out, and starts printing on the face paper based on the printing line.
[0073] The above application scenario is only an example and does not limit the application scenario of the label paper printing method of the present application.
[0074] Those skilled in the art of this technology can understand that label printers can be classified according to the printer principle, including: thermal printers, thermal transfer printers, inkjet printers, and laser printers. According to the printing type, they can include desktop label printers, industrial label printers, and portable label printers. According to the degree of automation, they can include manual label printers, automatic label printers, and online label printers. According to the printing content, they can include ordinary label printers and special label printers, such as: barcode printers, encoded label printers, card printers, etc. Specifically, it can be determined based on the actual application scenario requirements and is not limited here.
[0075] In some possible implementation manners, taking the execution subject as a label printer as an example, the embodiment of the present application provides a label paper printing method, as Figure 2 shown, which may include the following steps:
[0076] S210, controlling the label paper to feed out and rewind based on a positioning sensor, so that the upper gap of the top sheet of the label paper aligns with the first position where the paper cutter is located;
[0077] Among them, the label printer includes a printing line, a positioning sensor, and a paper cutter arranged in sequence in the paper feeding direction.
[0078] Among them, the label paper includes multiple top sheets, and there is a gap between every two adjacent top sheets; the distance between the paper cutter and the positioning sensor is less than or equal to the length of the top sheet.
[0079] Among them, the upper gap of the top sheet on the label paper is the gap adjacent to and away from the label printer of this top sheet.
[0080] Specifically, the positioning sensor can detect the situation of the label paper corresponding to its location. The label paper can be controlled to feed out through the rubber roller in the label printer. After feeding out to a certain position, the label paper is controlled to rewind through the rubber roller until the upper gap of the label paper aligns with the first position where the paper cutter is located. Then the rewind positioning of the top sheet of the label paper is completed. After that, aligning the upper edge of the top sheet with the printing line can perform printing. Among them, the distance from the sensor to the paper cutter should not exceed the length of the shortest label to prevent the waste of the first top sheet. Using the detection function of the positioning sensor, the paper feeding distance is small, the positioning is simple and rapid, the printing waiting time is reduced, and the top sheet on the label paper is quickly moved to the required position, effectively improving the printing efficiency.
[0081] In the specific implementation process, when a printing task is received, first feed the paper forward to align the lower edge of the label paper's label face paper with the sensor, then feed the paper back to align the upper edge of the current label paper's label face paper with the sensor, and finally feed the paper forward a certain distance to align the upper gap of the face paper with the position of the paper tearing knife.
[0082] In the specific implementation process, before controlling the label paper to feed forward and then feed back based on the positioning sensor so that the upper gap of the upper face paper of the label paper is aligned with the first position where the paper tearing knife is located, it may further include: determining whether the current is the first printing task of the label paper. If so, perform the above paper feeding and paper returning steps to complete the positioning of the face paper. If not, it may be determined whether the current paper tearing knife is aligned with the gap. If so, the label paper can be controlled to feed back so that the upper edge of the face paper is aligned with the printing line to start printing. If not, perform the above steps to complete the positioning of the face paper.
[0083] S220. Continue to control the label paper to feed back until a preset condition is met, then control the label paper to feed forward and start printing on the face paper based on the printing line.
[0084] Among them, the preset condition may include that the second edge of the face paper is aligned with the second position where the printing line is located, or the preset printing position is aligned with the second position where the printing line is located. The preset printing position is set on the face paper and is different from the second edge.
[0085] Specifically, after aligning the upper gap of the face paper of the label paper with the position of the paper tearing knife, that is, after completing the paper returning and positioning process, the label paper can be controlled to feed back until a preset condition for starting printing is met, then control the label paper to feed forward and print. First, position the face paper, and then move to the printing position, which can speed up the printing process and improve the printing efficiency.
[0086] In the specific implementation process, after the label paper feeds back to meet the preset condition, stop feeding back, and the preset printing paper feeding speed can be obtained. Control the label paper to feed forward and print based on the preset printing paper feeding speed. At this time, the paper can be fed at a constant speed, or the specific speed can be set based on the printing situation. For example, if the content is dense, the speed is slowed down; if the content is less, the speed can be increased. Adjust the speed according to different printing tasks to meet different printing needs and improve the user experience.
[0087] In some possible implementation manners, as Figure 3 shown, in the above steps, controlling the label paper to feed forward and then feed back based on the positioning sensor so that the upper gap of the upper face paper of the label paper is aligned with the first position where the paper tearing knife is located includes:
[0088] S310. Control the label paper to feed forward;
[0089] Specifically, the user places the label paper on the preset position of the label printer, so that the glue roller can drive the label paper to be output or rewound by rotating, etc., receive the user's printing instructions, and control the label paper to be output, so that the positioning sensor can sense that a piece of face paper is close to the lower edge of the label printer, and then move to the required position to complete the face paper positioning.
[0090] During the specific implementation process, if the positioning sensor is located at the upper gap of the first sheet of facial paper, directly feeding the paper may result in the inability to detect whether the facial paper or label paper has detached from the glue roller. This solution can avoid this situation by feeding the paper outward first, thereby improving the accuracy of facial paper detection and the efficiency of label printing.
[0091] S320, when the positioning sensor detects the first edge of the face paper, controlling the label paper to stop feeding and rewinding;
[0092] Among them, if the surface paper of the label paper is a relatively regular quadrilateral, the first edge is the lower edge of the surface paper close to the printer, and the first edge is perpendicular to the paper output direction. If the surface paper is other graphics, the first edge is the edge close to the printer.
[0093] Specifically, the positioning sensor detects the label paper at the corresponding position in real time during the process of label paper being output. If the positioning sensor detects the first edge of the surface paper, that is, when it detects that the label paper at the corresponding position changes from surface paper to bottom paper, the label paper is controlled to stop outputting and rewind the paper. This can quickly determine the position of the output surface paper, thereby reducing waiting time and improving printing efficiency.
[0094] During the specific implementation process, the positioning sensor can be used to detect whether the label paper is complete. Before controlling the label paper to be printed out, the specification information of the label paper to be printed can be obtained, including the length or shape information of the label paper in the paper output direction. When the positioning sensor detects the first edge of the surface paper, the paper output is stopped and the paper is fed back. The correct paper feeding movement time can be obtained based on the predetermined paper feeding speed and the length of the surface paper. If the position where the paper feeding stops is reached within the movement time, the surface paper on the label paper may be incomplete, and it is necessary to check the problem or replace the surface paper so that the subsequent printing process can be carried out accurately.
[0095] S330, when the positioning sensor detects the second edge of the face paper, controlling the label paper to stop feeding;
[0096] Among them, the second edge is different from the first edge; if the face paper of the label paper is a relatively regular quadrilateral, the second edge is the upper edge of the face paper close to the paper output direction, and the second edge is perpendicular to the paper output direction. If the face paper is other shapes, the second edge is the edge of the face paper close to the paper output direction.
[0097] Specifically, when the positioning sensor detects the first edge of the face paper during the paper feeding process of the label paper, the second edge of the face paper can be detected through the paper rewinding process. Based on the first edge and the second edge, the position of the face paper relative to the positioning sensor can be determined, and then the position of the face paper relative to the paper tearing knife or the printing line can be determined. The position of the face paper can be located with a relatively small moving length, improving the face paper positioning efficiency.
[0098] In the specific implementation process, when the positioning sensor detects the lower edge of the face paper during the paper feeding process of the label paper, the upper edge of the face paper can be detected through the paper rewinding process. By determining the positions of the lower edge and the upper edge, the position of the face paper relative to the positioning sensor can be accurately determined. Feeding the paper first and then rewinding it avoids the situation where the label paper detaches from the rubber roller during direct rewinding, reducing the occurrence of errors.
[0099] S340, control the label paper to feed outwards until the upper gap of the face paper on the label paper aligns with the first position where the paper tearing knife is located.
[0100] Among them, the upper gap of the face paper is the gap adjacent to the corresponding face paper and far from the paper outlet of the label printer.
[0101] Specifically, when the positioning sensor detects the two edges of the face paper and determines the existence position of the face paper, control the label paper to feed outwards again, so that the upper gap of the face paper on the label paper aligns with the first position where the paper tearing knife is located. Aligning the gap with the paper tearing knife can ensure that the paper tearing knife acts exactly at the gap between the two label face papers, thus cutting off the printed label completely and avoiding cutting into the label content area. If the gap is not aligned with the paper tearing knife, the paper tearing knife may cut into the label itself, resulting in incomplete label content or damaged labels.
[0102] In the specific implementation process, as Figure 4 shown, the label printer usually uses continuous label paper. There is a gap 420 between each label face paper 410. This gap is the basis for the positioning of the paper tearing knife. The paper tearing knife in the label printer is used to separate the printed label from the continuous label paper roll.
[0103] In the specific implementation process, as Figure 5 shown, H1 is the length of the gap, H2 is the length of the face paper, L1 is the distance between the paper tearing knife and the sensor, and L2 is the distance between the printing line and the sensor. First, feed the paper forward to align the lower edge of the label face paper of the current label paper with the sensor, then rewind the paper to align the upper edge of the label face paper of the current label paper with the sensor, and finally feed the paper forward by the length of L1 - H1 / 2 to align the gap with the position of the paper tearing knife. Among them, H1 / 2 means taking the middle position of the gap to align with the position of the paper tearing knife, so that the paper tearing knife is aligned with the middle position of the gap during cutting, avoiding cutting errors. 3]
[0104] In some possible embodiments, when the positioning sensor detects the first edge of the facial tissue in the above steps, controlling the label paper to stop paper feeding and reverse paper feeding includes:
[0105] When the positioning sensor changes from detecting the facial tissue of the label paper to detecting the base paper corresponding to the gap of the label paper, controlling the label paper to stop paper feeding and reverse paper feeding.
[0106] Specifically, when the label paper is feeding, when the positioning sensor changes from detecting the facial tissue of the label paper to detecting the base paper corresponding to the gap of the label paper, the first edge of the facial tissue is detected, and then the label paper is controlled to stop paper feeding and reverse paper feeding. When the label paper is of different shapes, by detecting the change from the facial tissue to the base paper, it can be judged that the first edge of the label paper is reached, making the above method applicable to different styles of label paper and better meeting the user's needs.
[0107] In the specific implementation process, first feed the paper forward to align the lower edge of the current label paper's facial tissue with the sensor, that is, feed the label paper forward, and judge whether it enters the gap through the positioning sensor. If the sensor judges that it enters the gap, that is, the sensor just detects the gap and transitions from the facial tissue of the label paper to the gap, then the lower edge of the current label paper's facial tissue is aligned with the sensor.
[0108] In some possible embodiments, when the positioning sensor detects the second edge of the facial tissue in the above steps, controlling the label paper to stop reverse paper feeding includes:
[0109] When the positioning sensor changes from detecting the facial tissue of the label paper to detecting the base paper corresponding to the gap of the label paper again, controlling the label paper to stop reverse paper feeding.
[0110] Specifically, when the label paper is reverse feeding, when the positioning sensor changes from detecting the facial tissue of the label paper to detecting the base paper corresponding to the gap of the label paper, the second edge of the facial tissue is detected, and the label paper is controlled to stop reverse paper feeding. When the label paper is of different shapes, when the positioning sensor detects the change from the facial tissue to the base paper, it can be judged that the second edge of the label paper is reached, making the above method applicable to different styles of label paper and better meeting the user's needs.
[0111] In the specific implementation process, reverse feed the paper to align the upper edge of the label paper with the sensor, that is, reverse feed the paper backward, and judge whether it enters the gap through the sensor. If the sensor judges that it enters the gap, that is, the sensor just detects the gap and transitions from the facial tissue of the label paper to the gap, then the upper edge of the current label paper's facial tissue is aligned with the sensor.
[0112] In some possible embodiments, the above method further includes:
[0113] Sending an optical signal to the label paper through the positioning sensor and obtaining the corresponding optical response value;
[0114] If the light response value changes from a first value to a second value, it is determined that the positioning sensor changes from detecting the face paper of the label paper to detecting the bottom paper corresponding to the slit of the label paper.
[0115] Among them, the positioning sensor includes a photoelectric sensor.
[0116] Among them, the light response value includes a reflection value and / or a transmission value, the first value is the light detection response value corresponding to the face paper, and the second value is the light detection response value corresponding to the bottom paper of the slit.
[0117] Among them, the first value can be a first interval, and the second value can be a second interval.
[0118] Specifically, a light signal is sent to the label paper through the positioning sensor, and the corresponding light response value is obtained. If the light response value changes from the first value to the second value, that is, the light response value changes from the first interval to the second interval, it is determined that the face paper and the bottom paper of the label paper detected by the positioning sensor have been switched. The first value corresponds to the face paper, and the second value corresponds to the bottom paper. Then it can be determined that the label paper at the position detected by the positioning sensor has been switched from the face paper to the bottom paper. By judging the switching of the bottom paper and the face paper through the light response value, real-time detection can be carried out, and the positioning process of the face paper of the label paper can be accelerated.
[0119] In a specific implementation process, the sensor is a photoelectric sensor, which can send a light signal and receive the reflection value or transmission value of the detection object, and distinguish the face paper and the bottom paper by the difference in the reflection value or projection value of the face paper and the bottom paper by the sensor.
[0120] In some possible implementation manners, in the above steps, controlling the label paper to feed out until the upper slit of the face paper on the label paper aligns with the first position where the paper cutter is located includes:
[0121] Determine the target paper feed distance based on the distance between the positioning sensor and the paper cutter and the length of the slit;
[0122] Based on the target paper feed distance, control the label paper to feed out until the upper slit of the face paper on the label paper aligns with the first position where the paper cutter is located.
[0123] Among them, the length of the slit is the length of the slit in the paper feed direction, and the distance between the positioning sensor and the paper cutter is also the distance in the paper feed direction.
[0124] Specifically, when the upper edge of the face paper aligns with the position where the positioning sensor is located, based on the distance between the positioning sensor and the paper cutter and the length of the gap, the target paper output distance is determined. Based on the target paper output distance, the label paper is controlled to output outward until the upper gap of the face paper on the label paper aligns with the first position where the paper cutter is located. It is possible to directly output the paper with a small moving distance to align the upper gap of the face paper with the first position where the paper cutter is located, effectively improving the efficiency of positioning the face paper of the label paper.
[0125] In the specific implementation process, as Figure 5 shown, H1 is the length of the gap, H2 is the length of the face paper, L1 is the distance between the paper cutter and the sensor, and L2 is the distance between the printing line and the sensor. Then, when the upper edge of the face paper on the label paper aligns with the position where the positioning sensor is located, in order to align the middle of the upper gap of the face paper with the paper cutter, based on the distance L1 between the positioning sensor and the paper cutter and the length H1 of the gap, the target paper output distance L1 - H1 / 2 can be determined. By directly outputting the paper by the target paper output distance, the upper gap of the face paper can be aligned with the first position where the paper cutter is located.
[0126] In some possible implementation manners, before determining the target paper output distance based on the distance between the positioning sensor and the paper cutter and the length of the gap in the above steps, the method further includes:
[0127] Reading the second information reading and writing device on the label paper through the first information reading and writing device to obtain the label paper information;
[0128] and / or
[0129] Receiving the label paper information input by the user on the label printer and / or on the terminal connected to the label printer.
[0130] Wherein, the label printer includes a first information reading and writing device, a second information reading and writing device is arranged on the label paper, and the label paper information includes information such as the length of the face paper and the length of the gap.
[0131] Wherein, the second information reading and writing device can be a chip arranged on the label paper.
[0132] Specifically, the label paper information can be obtained by reading the second information reading and writing device on the label paper through the first information reading and writing device on the label printer, or the label paper information input by the user on the label printer can be received, or the label paper information input by the user on the terminal connected to the label printer can be received. Based on the label paper information, values related to the label paper such as the length of the label paper and the length of the gap can be obtained, which is beneficial to quickly position the face paper and improve the positioning efficiency of the face paper of the label paper.
[0133] In the specific implementation process, the label printer includes a first information reading and writing device, and a second information reading and writing device is provided on the label paper. The label paper information is recorded on the second reading and writing device. The label paper information includes the gap length. After the label paper is placed in the printer, the first information reading and writing device can read the label paper information in the second information reading and writing device, so as to obtain the length of the label paper and the length of the gap.
[0134] In the specific implementation process, the label printer can obtain the information of the label paper through radio frequency identification (RFID). RFID usually includes a tag and a reader. Among them, the RFID tag usually contains a microchip inside for storing and processing data. The chip can be set on the label paper to store the label paper information, and the label printer obtains the corresponding label paper information through the RFID reader.
[0135] In the specific implementation process, the user can manually input information such as the length of the face paper and the length of the gap on the label printer or the corresponding application terminal to cover the scenario without RFID.
[0136] In some possible implementation manners, in the above steps, controlling the label paper to feed out until the upper gap of the face paper on the label paper aligns with the first position where the paper cutter is located includes:
[0137] Determine the corresponding paper feeding speed based on the length of the face paper in the paper feeding direction;
[0138] Control the label paper to feed out based on the paper feeding speed until the upper gap of the face paper on the label paper aligns with the first position where the paper cutter is located.
[0139] Specifically, determine the corresponding paper feeding speed based on the length of the face paper in the paper feeding direction, and control the label paper to feed out based on the paper feeding speed until the upper gap of the face paper on the label paper aligns with the first position where the paper cutter is located. The paper feeding speed is adjusted based on the length of the face paper. Too fast may cause printing deviation, and too slow will result in low printing efficiency. An appropriate paper feeding speed can make the printing more delicate and accurate, effectively improving the printing quality.
[0140] In the specific implementation process, a relationship mapping table corresponding to the face paper length and the paper feeding speed can be preset. After reading the label paper information, the corresponding paper feeding speed can be determined based on the face paper length of the label paper, and the label paper is controlled to feed out based on this paper feeding speed until the upper gap of the face paper on the label paper aligns with the first position where the paper cutter is located.
[0141] In some possible implementation manners, the above method further includes:
[0142] Determine the paper rewinding speed based on the length of the face paper in the paper feeding direction and the paper feeding speed;
[0143] Controls the label paper rewinding based on the rewinding speed.
[0144] The paper feeding speed is less than or equal to a preset speed threshold.
[0145] Specifically, based on the paper length in the paper output direction, the corresponding paper feeding speed is determined. The paper feeding speed should not exceed a preset speed threshold. The paper feeding speed is limited by a threshold to prevent the paper from feeding too fast and causing the label paper to separate from the glue roller, thereby improving the accuracy of paper positioning.
[0146] During the specific implementation process, a preset speed range can be set so that the paper feeding speed meets the speed range. The preset speed range can be set to 20-35mm / s. The paper feeding speed cannot be too fast. If it is too fast, the label paper may be fed back too much due to inertia, causing the upper edge of the paper to be fed back to the upstream position of the sensor, which is close to the position of the label printer, resulting in inaccurate positioning.
[0147] During the specific implementation process, a relationship mapping table corresponding to the face paper length and the paper feeding speed can be pre-set. After reading the label paper information, the corresponding paper feeding speed can be determined based on the face paper length of the label paper, and the paper feeding speed can be adjusted based on the preset speed threshold and the preset speed range, so as to control the label paper feeding based on the paper feeding speed.
[0148] In some possible implementations, the paper feeding speed is lower than the paper discharging speed.
[0149] Specifically, when determining the paper feeding speed and paper output speed, not only the preset speed threshold and other conditions must be met, but the paper feeding speed must also be lower than the paper output speed. This ensures that the paper feeding speed does not cause the label paper to feed back too fast, causing the upper edge of the paper to exceed the positioning sensor, while improving the efficiency of paper positioning.
[0150] In a specific implementation, when discharging paper so that the first edge of the face paper is aligned with the positioning sensor, the forward paper discharging speed is greater than the paper feeding speed, thereby speeding up the positioning efficiency while avoiding too fast paper feeding as much as possible.
[0151] In a specific implementation process, the paper feeding speed can be determined based on the paper length and / or a preset speed threshold, and then the paper output speed is determined, so that the paper output speed is greater than the paper feeding speed, thereby improving the paper positioning efficiency.
[0152] In some possible implementations, the steps of controlling the label paper to be ejected and fed back based on the positioning sensor so that the upper gap of the label paper is aligned with the first position of the tearing knife include:
[0153] Control the label paper to be printed out;
[0154] When the positioning sensor detects the first edge of the facial tissue, control the label paper to stop feeding paper.
[0155] Based on the distance between the paper cutter and the positioning sensor, the length of the facial tissue, and the length of the slit, determine the paper return distance.
[0156] Based on the paper return distance, control the label paper to return paper so that the upper slit of the facial tissue on the label paper aligns with the first position where the paper cutter is located.
[0157] Specifically, not only can the label paper be controlled to feed paper first, then return paper, and then feed paper again to position the facial tissue, but also the label paper can be directly returned a certain distance after feeding paper so that the upper slit of the facial tissue on the label paper aligns with the first position where the paper cutter is located. That is, control the label paper to feed paper outwards. When the positioning sensor detects the first edge of the facial tissue, control the label paper to stop feeding paper. Based on the distance between the paper cutter and the positioning sensor, the length of the facial tissue, and the length of the slit, determine the paper return distance. Based on the paper return distance, control the label paper to directly return paper so that the middle line of the upper slit of the facial tissue on the label paper aligns with the position where the paper cutter is located, which can reduce the cumbersome feed-return-feed steps, directly return the paper to the predetermined position, avoid errors, and improve the accuracy of facial tissue positioning.
[0158] In the specific implementation process, as Figure 5 shown, H1 is the length of the slit, H2 is the length of the facial tissue, L1 is the distance between the paper cutter and the sensor, and L2 is the distance between the printing line and the sensor. Control the label paper to feed paper outwards until the positioning sensor detects the first edge of the facial tissue, then stop feeding paper. Based on the distance L1 between the paper cutter and the positioning sensor, the length H2 of the facial tissue, and the length H1 of the slit, determine the paper return distance: H2 - L1 + H1 / 2, directly making the middle line of the upper slit align with the position where the paper cutter is located.
[0159] In some possible implementation manners, continue to control the label paper to return paper in the above steps. After meeting the preset conditions, control the label paper to feed paper outwards and start printing on the facial tissue based on the printing line, including:
[0160] Continue to control the label paper to return paper until the second edge of the facial tissue aligns with the second position where the printing line is located, or until the preset printing position aligns with the second position where the printing line is located;
[0161] Control the label paper to feed paper outwards and start printing on the facial tissue based on the printing line.
[0162] Among them, the preset printing position is set on the facial tissue and is different from the second edge.
[0163] Specifically, when the upper gap of the face paper on the label paper aligns with the first position where the paper tearing knife is located, the preliminary positioning process is completed. It is necessary to continue to control the label paper to feed back until the second edge of the face paper aligns with the second position where the printing line is located or the preset printing position, so as to start printing based on the printing line, which can avoid the cumbersome manual operation of the user and improve the printing efficiency.
[0164] In the specific implementation process, as Figure 5 shown, H1 is the length of the gap, H2 is the length of the face paper, L1 is the distance between the paper tearing knife and the sensor, and L2 is the distance between the printing line and the sensor. By continuing to control the label paper to feed back, the feed-back distance this time can be determined as: L1 + L2 - H1 / 2, and feed back this distance until the second edge of the face paper aligns with the second position where the printing line is located.
[0165] In some possible implementation manners, the above method further includes:
[0166] Recording the motor steps of the label paper feeding out or feeding back;
[0167] If the motor steps are greater than the preset step threshold, a paper jam prompt signal is issued.
[0168] Wherein, the paper jam prompt signal is used to prompt the user that the label printer has a paper jam.
[0169] Specifically, for each process from the start to the stop of paper feeding out or feeding back, record the corresponding motor steps. If the motor steps are greater than the preset step threshold and still do not reach the required position and stop, a paper jam prompt signal can be generated and issued, which can promptly prompt the user of the problem to solve the problem as soon as possible and improve the printing efficiency of the label printer.
[0170] In the specific implementation process, when the label paper is feeding out or feeding back, if after the motor counting steps are greater than the preset step threshold, the transition signal from the face paper to the gap is still not detected, a prompt signal is sent to the user. At this time, it may be that the printer has a paper jam phenomenon, that is, the motor is moving, but the label paper is actually not feeding forward, so the positioning sensor will always detect the face paper or the gap and will not detect the transition signal from the face paper to the gap.
[0171] In the above embodiment, by setting a positioning sensor in the label printer, detecting the position of the face paper of the label paper based on the positioning sensor, controlling the label paper to feed out or feed back, aligning the upper gap of the face paper of the label paper with the paper tearing knife, and then controlling the label paper to feed back a fixed length to align the upper edge of the face paper of the label paper with the printing line, normal printing can be carried out, so as to print the complete information to be printed on the face paper of the label paper. Controlling the label paper to feed out or feed back based on the positioning sensor can quickly complete the positioning of the face paper with a smaller paper feeding distance, reduce the printing waiting time, and improve the working efficiency of the label printer.
[0172] In one example, the label paper printing method of the present application, as Figure 6 shown, may include:
[0173] S610, controlling the label paper to feed outwards;
[0174] Among them, the label paper includes multiple face papers, there is a gap between every two adjacent face papers, and the distance between the paper cutter and the positioning sensor is less than or equal to the length of the face paper.
[0175] S620, when the positioning sensor detects the first edge of the face paper, controlling the label paper to stop feeding out and feed back;
[0176] Among them, the first edge is perpendicular to the paper feeding direction.
[0177] Specifically, when the positioning sensor changes from detecting the face paper of the label paper to detecting the bottom paper corresponding to the gap of the label paper, controlling the label paper to stop feeding out and feed back.
[0178] S630, when the positioning sensor detects the second edge of the face paper, controlling the label paper to stop feeding back;
[0179] Among them, the second edge is perpendicular to the paper feeding direction, and the second edge is different from the first edge.
[0180] Specifically, when the positioning sensor changes from detecting the face paper of the label paper to detecting the bottom paper corresponding to the gap of the label paper again, controlling the label paper to stop feeding back.
[0181] S640, controlling the label paper to feed outwards until the upper gap of the face paper on the label paper aligns with the first position where the paper cutter is located;
[0182] Specifically, based on the distance between the positioning sensor and the paper cutter and the length of the gap, determining the target paper feeding distance, and based on the target paper feeding distance, controlling the label paper to feed outwards until the upper gap of the face paper on the label paper aligns with the first position where the paper cutter is located.
[0183] S650, continuing to control the label paper to feed back until after a preset condition is met, controlling the label paper to feed outwards, and starting to print on the face paper based on the printing line.
[0184] Specifically, continuing to control the label paper to feed back until the second edge of the face paper aligns with the second position where the printing line is located, or until the preset printing position aligns with the second position where the printing line is located, controlling the label paper to feed outwards, and starting to print on the face paper based on the printing line; among them, the preset printing position is set on the face paper, and the preset printing position is different from the second edge.
[0185] The above label paper printing method detects the position of the face paper of the label paper through a positioning sensor set in the label printer, controls the paper feeding or paper returning of the label paper, aligns the upper gap of the face paper of the label paper with the paper cutter, and then controls the label paper to return a fixed length of paper to align the upper edge of the face paper of the label paper with the printing line, so that normal printing can be carried out, and the complete information to be printed can be printed on the face paper of the label paper. Controlling the paper feeding or paper returning of the label paper based on the positioning sensor can quickly complete the positioning of the face paper with a smaller paper feeding distance, reduce the printing waiting time, and improve the working efficiency of the label printer.
[0186] An embodiment of the present application provides a label paper printing device, as Figure 7 shown. The label paper printing device 70 may include: a paper feeding module 701 and a printing module 702, where
[0187] The paper feeding module 701 is configured to control the label paper to feed out and return paper based on a positioning sensor, so that the upper gap of the face paper on the label paper is aligned with the first position where the paper cutter is located; the label paper includes a plurality of face papers, and there is a gap between every two adjacent face papers; the distance between the paper cutter and the positioning sensor is less than or equal to the length of the face paper;
[0188] The printing module 702 is configured to continue to control the label paper to return paper until a preset condition is met, then control the label paper to feed out, and start printing on the face paper based on the printing line.
[0189] As an optional embodiment, in this device, the paper feeding module 701 is specifically configured to:
[0190] Control the label paper to feed out;
[0191] When the positioning sensor detects the first edge of the face paper, control the label paper to stop feeding out and return paper; the first edge is perpendicular to the paper feeding direction;
[0192] When the positioning sensor detects the second edge of the face paper, control the label paper to stop returning paper; the second edge is perpendicular to the paper feeding direction, and the second edge is different from the first edge;
[0193] Control the label paper to feed out until the upper gap of the face paper on the label paper is aligned with the first position where the paper cutter is located.
[0194] As an optional embodiment, in this device, the paper feeding module 701 is specifically configured to:
[0195] When the positioning sensor changes from detecting the face paper of the label paper to detecting the bottom paper corresponding to the gap of the label paper, control the label paper to stop feeding out and return paper.
[0196] As an optional embodiment, in this device, the paper feeding module 701 is specifically configured to:
[0197] When the positioning sensor changes from detecting the face paper of the label paper to detecting the base paper corresponding to the gap of the label paper again, control the label paper to stop rewinding.
[0198] As an alternative embodiment, in this device, the paper feeding module 701 is specifically configured to:
[0199] Send an optical signal to the label paper through the positioning sensor and obtain the corresponding optical response value; the optical response value includes at least one of the reflection value and the transmission value; wherein, the positioning sensor includes a photoelectric sensor;
[0200] If the optical response value changes from a first value to a second value, it is determined that the positioning sensor changes from detecting the face paper of the label paper to detecting the base paper corresponding to the gap of the label paper; the first value is the optical detection response value corresponding to the face paper; the second value is the optical detection response value of the base paper corresponding to the gap.
[0201] As an alternative embodiment, in this device, the paper feeding module 701 is specifically configured to:
[0202] Determine the target paper feeding distance based on the distance between the positioning sensor and the paper tearing knife and the length of the gap;
[0203] Based on the target paper feeding distance, control the label paper to feed out until the upper gap of the face paper on the label paper aligns with the first position where the paper tearing knife is located.
[0204] As an alternative embodiment, in this device, the paper feeding module 701 is specifically configured to:
[0205] Read the second information reading and writing device on the label paper through the first information reading and writing device to obtain the label paper information; the label paper information includes the length of the gap; wherein, the label printer includes the first information reading and writing device, and the second information reading and writing device is arranged on the label paper;
[0206] And / or
[0207] Receive the label paper information input by the user on the label printer and / or on the terminal connected to the label printer.
[0208] As an alternative embodiment, in this device, the paper feeding module 701 is specifically configured to:
[0209] Determine the corresponding paper feeding speed based on the length of the face paper of the label paper in the paper feeding direction;
[0210] Based on the paper feeding speed, control the label paper to feed out until the upper gap of the face paper on the label paper aligns with the first position where the paper tearing knife is located.
[0211] As an alternative embodiment, in this device, the paper feeding module 701 is specifically configured to:
[0212] Determine the paper return speed based on the length of the facial tissue in the paper output direction and the paper output speed; the paper return speed is less than or equal to a preset speed threshold;
[0213] Control the label paper to return based on the paper return speed.
[0214] As an alternative embodiment, in this device, the paper output module 701 is specifically configured to: the paper return speed is less than the paper output speed.
[0215] As an alternative embodiment, in this device, the paper output module 701 is specifically configured to:
[0216] Control the label paper to output outwards;
[0217] When the positioning sensor detects the first edge of the facial tissue, control the label paper to stop outputting.
[0218] Determine the paper return distance based on the distance between the paper cutter and the positioning sensor, the length of the facial tissue, and the length of the gap;
[0219] Control the label paper to return based on the paper return distance, so that the upper gap of the facial tissue on the label paper aligns with the first position where the paper cutter is located.
[0220] As an alternative embodiment, in this device, the printing module 702 is specifically configured to:
[0221] Continue to control the label paper to return until the second edge of the facial tissue aligns with the second position where the printing line is located, or until the preset printing position aligns with the second position where the printing line is located; the preset printing position is set on the facial tissue and is different from the second edge;
[0222] Control the label paper to output outwards and start printing on the facial tissue based on the printing line.
[0223] As an alternative embodiment, in this device, the paper output module 701 is specifically configured to:
[0224] Record the motor steps of the label paper outputting outwards or returning;
[0225] If the motor steps are greater than the preset step threshold, send a paper jam prompt signal; the paper jam prompt signal is used to prompt the user that the label printer has jammed.
[0226] The label paper printing device provided by the present application detects the position of the face paper of the label paper through a positioning sensor set in the label printer, controls the paper feeding or paper rewinding of the label paper, aligns the upper slit of the face paper of the label paper with the paper cutter, and then controls the label paper to rewind a fixed length to align the upper edge of the face paper of the label paper with the printing line, and then normal printing can be carried out, so that the complete information to be printed is printed on the face paper of the label paper. By controlling the paper feeding or paper rewinding of the label paper based on the positioning sensor, the positioning of the face paper can be quickly completed with a smaller paper feeding distance, the printing waiting time is reduced, and the working efficiency of the label printer is improved.
[0227] The device in the embodiment of the present application can execute the method provided by the embodiment of the present application, and its implementation principle is similar and has corresponding technical effects. The actions performed by each module in the device of each embodiment of the present application correspond to the steps in the method of each embodiment of the present application. For the detailed function description of each module of the device, reference can be specifically made to the description in the corresponding method shown above, and details are not described herein again.
[0228] In an embodiment of the present application, a label printer is provided, which includes a main body, on which a print head, a positioning sensor, a paper cutter, and a control module are arranged. The print head includes a printing line, and the printing line, the positioning sensor, and the paper cutter are arranged in sequence according to the paper feeding direction of the label paper. The control module may include a memory, a processor, and a computer program stored on the memory. The processor executes the above computer program to implement the steps of the method provided by any optional embodiment of the present application. Compared with the prior art, it can be realized that by setting a positioning sensor in the label printer, detecting the position of the face paper of the label paper through the positioning sensor, controlling the paper feeding or paper rewinding of the label paper, aligning the upper slit of the face paper of the label paper with the paper cutter, and then controlling the label paper to rewind a fixed length to align the upper edge of the face paper of the label paper with the printing line, and then normal printing can be carried out, so that the complete information to be printed is printed on the face paper of the label paper. By controlling the paper feeding or paper rewinding of the label paper based on the positioning sensor, the positioning of the face paper can be quickly completed with a smaller paper feeding distance, the printing waiting time is reduced, and the working efficiency of the label printer is improved.
[0229] In an optional embodiment, a label printer is provided, as Figure 8 shown Figure 8The label printer 8000 shown includes a processor 8001 and a memory 8003. Among them, the processor 8001 and the memory 8003 are connected, such as through a bus 8002. Optionally, the label printer 8000 may further include a transceiver 8004, and the transceiver 8004 can be used for data interaction between the label printer and other electronic devices, such as data transmission and / or data reception, and so on. It should be noted that in practical applications, the transceiver 8004 is not limited to one, and the structure of the label printer 8000 does not constitute a limitation to the embodiments of the present application.
[0230] The processor 8001 may be a CPU (Central Processing Unit, central processor), a general - purpose processor, a DSP (Digital Signal Processor, data signal processor), an ASIC (Application Specific Integrated Circuit, application - specific integrated circuit), an FPGA (Field Programmable Gate Array, field - programmable gate array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in connection with the disclosure of the present application. The processor 8001 can also be a combination that implements computing functions, such as a combination including one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0231] The bus 8002 may include a path for transmitting information between the above - mentioned components. The bus 8002 can be a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus or an EISA (Extended Industry Standard Architecture, extended industry standard architecture) bus, etc. The bus 8002 can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, Figure 8 only a thick line is used to represent it in the figure, but it does not mean that there is only one bus or one type of bus.
[0232] The memory 8003 can be a ROM (Read Only Memory), or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory), or other types of dynamic storage devices that can store information and instructions. It can also be an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory), or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium that can be used to carry or store computer programs and can be read by a computer, which is not limited herein.
[0233] The memory 8003 is used to store the computer program for implementing the embodiments of the present application and is controlled by the processor 8001 for execution. The processor 8001 is used to execute the computer program stored in the memory 8003 to implement the steps shown in the foregoing method embodiments.
[0234] Among them, the label printer includes but is not limited to: label printers that can execute and implement the above label paper printing method.
[0235] The embodiments of the present application provide a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps and corresponding contents of the foregoing method embodiments can be implemented.
[0236] It should be noted that the above computer-readable storage medium of the present application can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0237] The terms "first", "second", "third", "fourth", "1", "2", etc. (if any) in the description, claims and above-mentioned drawings of this application are used to distinguish similar objects and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments of this application described here can be implemented in an order other than that shown or described in words.
[0238] The flowcharts and block diagrams in the drawings illustrate the possible architectures, functions and operations of systems, methods and computer program products according to various embodiments of this application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than that marked in the drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.
[0239] It should be understood that although the flowcharts in the embodiments of this application indicate each operation step by an arrow, the execution order of these steps is not limited to the order indicated by the arrow. Unless there is a clear description in this article, in some implementation scenarios of the embodiments of this application, the implementation steps in each flowchart can be executed in other orders according to requirements. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on the actual implementation scenario. Some or all of these sub-steps or stages can be executed at the same time, and each sub-step or stage of these sub-steps or stages can also be executed at different times respectively. In the scenario where the execution times are different, the execution order of these sub-steps or stages can be flexibly configured according to requirements, and the embodiments of this application do not limit this.
[0240] The above are only optional implementation manners of some implementation scenarios of this application. It should be pointed out that for those of ordinary skill in the art, without departing from the technical concept of the solution of this application, using other similar implementation means based on the technical idea of this application also belongs to the protection scope of the embodiments of this application.
Claims
1. A label paper printing method, characterized in that, Applied to a label printer, the label printer includes a printing line, a positioning sensor, and a paper cutter arranged in sequence in the paper output direction, and the method includes: Controlling the label paper to output and rewind paper outward based on the positioning sensor, so that the upper gap of the top sheet of the label paper aligns with the first position where the paper cutter is located; the label paper includes multiple top sheets, and there is a gap between every two adjacent top sheets; the distance between the paper cutter and the positioning sensor is less than or equal to the length of the top sheet; Continuing to control the label paper to rewind paper until a preset condition is met, then controlling the label paper to output paper outward, and starting to print on the top sheet based on the printing line.
2. The method according to claim 1, characterized in that, The controlling the label paper to output and rewind paper outward based on the positioning sensor, so that the upper gap of the top sheet of the label paper aligns with the first position where the paper cutter is located, includes: Controlling the label paper to output paper outward; When the positioning sensor detects the first edge of the top sheet, controlling the label paper to stop outputting paper and rewind paper; the first edge is perpendicular to the paper output direction; When the positioning sensor detects the second edge of the top sheet, controlling the label paper to stop rewinding paper; the second edge is perpendicular to the paper output direction, and the second edge is different from the first edge; Controlling the label paper to output paper outward until the upper gap of the top sheet of the label paper aligns with the first position where the paper cutter is located.
3. The method according to claim 2, wherein The when the positioning sensor detects the first edge of the top sheet, controlling the label paper to stop outputting paper and rewind paper, includes: When the positioning sensor changes from detecting the top sheet of the label paper to detecting the bottom sheet corresponding to the gap of the label paper, controlling the label paper to stop outputting paper and rewind paper.
4. The method according to claim 2, wherein The when the positioning sensor detects the second edge of the top sheet, controlling the label paper to stop rewinding paper, includes: When the positioning sensor changes from detecting the top sheet of the label paper to detecting the bottom sheet corresponding to the gap of the label paper again, controlling the label paper to stop rewinding paper.
5. The method according to claim 3 or 4, characterized in that, The positioning sensor includes a photoelectric sensor; the method further includes: Sending an optical signal to the label paper through the positioning sensor and obtaining a corresponding optical response value; the optical response value includes at least one of a reflection value and a transmission value; If the optical response value changes from a first value to a second value, it is determined that the positioning sensor changes from detecting the top sheet of the label paper to detecting the bottom sheet corresponding to the gap of the label paper; the first value is the optical detection response value corresponding to the top sheet, and the second value is the optical detection response value corresponding to the bottom sheet of the gap.
6. The method according to claim 2, wherein The controlling the label paper to output paper outward until the upper gap of the top sheet of the label paper aligns with the first position where the paper cutter is located, includes: Determining a target paper output distance based on the distance between the positioning sensor and the paper cutter and the length of the gap; Controlling the label paper to output paper outward based on the target paper output distance until the upper gap of the top sheet of the label paper aligns with the first position where the paper cutter is located.
7. The method according to claim 6, characterized in that, The label printer includes a first information reading and writing device, and a second information reading and writing device is arranged on the label paper; Before determining the target paper output distance based on the distance between the positioning sensor and the paper cutter and the length of the gap, the method further includes: Reading, by the first information reading and writing device, the second information reading and writing device on the label paper to obtain label paper information; the label paper information includes the length of the gap; and / or Receiving the label paper information input by the user on the label printer and / or on the terminal connected to the label printer.
8. The method according to claim 2, wherein Controlling the label paper to output paper outward until the upper gap of the top sheet of the label paper aligns with the first position where the paper cutter is located, includes: Determining a corresponding paper output speed based on the length of the top sheet in the paper output direction; Controlling the label paper to output paper outward based on the paper output speed until the upper gap of the top sheet of the label paper aligns with the first position where the paper cutter is located.
9. The method according to claim 8, wherein The method further includes: Determining a paper return speed based on the length of the top sheet in the paper output direction and the paper output speed; the paper return speed is less than or equal to a preset speed threshold; Controlling the label paper to return paper based on the paper return speed.
10. The method according to claim 8, characterized in that, The paper return speed is less than the paper output speed.
11. The method according to claim 1, wherein Based on the positioning sensor, controlling the label paper to output paper outward and return paper so that the upper gap of the top sheet of the label paper aligns with the first position where the paper cutter is located, includes: Controlling the label paper to output paper outward; When the positioning sensor detects the first edge of the top sheet, controlling the label paper to stop outputting paper; Determining a paper return distance based on the distance between the paper cutter and the positioning sensor, the length of the top sheet, and the length of the gap; Controlling the label paper to return paper based on the paper return distance so that the upper gap of the top sheet of the label paper aligns with the first position where the paper cutter is located.
12. The method according to claim 1, wherein Continuing to control the label paper to return paper until after a preset condition is met, then controlling the label paper to output paper outward, and starting to print on the top sheet based on the printing line, includes: Continuing to control the label paper to return paper until the second edge of the top sheet aligns with the second position where the printing line is located, or until a preset printing position on the top sheet aligns with the second position where the printing line is located; the preset printing position is set on the top sheet and is different from the second edge; Controlling the label paper to output paper outward and starting to print on the top sheet based on the printing line.
13. The method according to claim 1, wherein The method further includes: Recording the number of motor steps for the label paper to output paper outward or return paper; If the number of motor steps is greater than a preset step threshold, sending a paper jam prompt signal; the paper jam prompt signal is used to prompt the user that the label printer has jammed.
14. A label paper printing device, characterized in that, Applied to a label printer, the label printer includes a printing line, a positioning sensor, and a paper cutter sequentially arranged in the paper output direction, includes: A paper output module, configured to control the label paper to output paper outward and return paper based on the positioning sensor so that the upper gap of the top sheet of the label paper aligns with the first position where the paper cutter is located; the label paper includes multiple top sheets, and there is a gap between every two adjacent top sheets; the distance between the paper cutter and the positioning sensor is less than or equal to the length of the top sheet; The printing module is used to continue to control the rewinding of the label paper until a preset condition is met, then control the label paper to feed outwards, and start printing on the face paper based on the printing line.
15. A label printer, comprising a main body, on which a print head, a positioning sensor, a paper cutter and a control module are arranged, characterized in that, The print head includes a printing line, and the printing line, the positioning sensor, and the paper cutter are arranged in sequence according to the paper feeding direction of the label paper. The control module executes the label paper printing method according to any one of claims 1 to 13.
16. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the label paper printing method according to any one of claims 1 to 13.
Citation Information
Patent Citations
Control method of label printer and the label printer
CN106864051A
Intelligent label printer and printing method thereof
CN108790429A
Automatic label learning method
CN112549791A
Label printing rollback calibration method and device and computer readable storage medium
CN116787946A
Label initial positioning method, computer storage medium and label printer
CN118144448A
Cited By
Label paper gap positioning method and apparatus, storage medium, and electronic device
WO2026153514A1