Printing control method and device, storage medium and electronic equipment
By setting sensors in the printing equipment to detect the peeling status of the paper head and face paper of the printing paper, the problem of accidental peeling of the first face paper is solved, and efficient printing control is achieved, avoiding information loss and incomplete labels.
Patent Information
- Application Number
- CN202510569232.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-30
- Publication Date
- 2025-07-25
AI Technical Summary
During the continuous conveying and printing of label paper, the accidental peeling of the first surface paper is difficult to detect in time, resulting in subsequent printing operations being carried out in the base paper area of the stripped surface paper, resulting in the loss of printing information and incomplete label content, which seriously affects work efficiency and printing quality.
By providing the second sensor and the first sensor in the printing device, the paper head state and the surface paper peeling state of the printing paper are detected, so as to ensure that the upper gap area of the first surface paper moves to the tearing knife in the direction of the paper output, and to avoid printing on the printing paper after the surface paper is peeled.
Effectively detect and avoid printing on the paper after being stripped off the surface paper, improve printing efficiency and ensure the integrity and quality of printing information.
Smart Images

Figure CN120363610A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of printing technology, and particularly relates to a printing control method, device, storage medium and electronic device. Background Art
[0002] In logistics, retail, medical, and many office automation scenarios, label printers, as key devices, are widely used for the fast and accurate printing of various labels to meet diverse needs such as goods tracking, inventory management, and product identification. Label paper, as the core consumable of label printers, usually consists of a face paper, a bottom paper, and an adhesive layer between the two. The face paper bears the printing information, and the bottom paper provides structural support and protection.
[0003] In current label printer technology, a common problem is that during the continuous feeding and printing of label paper, the accidental peeling of the first face paper (for example, due to uneven adhesion of the adhesive layer, malfunction of the feeding mechanism, or improper operation, etc.) is often difficult to detect in a timely manner. If this phenomenon is not effectively monitored and intervened, it will directly cause subsequent printing operations to be carried out on the bottom paper area where the face paper has been peeled off, resulting in loss of printing information, incomplete label content, or even scrapping of the entire label, seriously affecting work efficiency and printing quality. Summary of the Invention
[0004] Embodiments of the present application provide a printing control method, device, storage medium and electronic device, which can detect the peeling situation of the first face paper in the printing paper of a printing device, and avoid printing on the printing paper after the peeled face paper, thereby improving printing efficiency.
[0005] In a first aspect, embodiments of the present application provide a printing control method, which is applied to a printing device. The printing device includes a main body, and a second sensor, a print head, a first sensor, and a paper cutter are arranged on the main body along the paper output direction of the printing device. A printing line is arranged on the print head. The method includes:
[0006] Drive the upper gap area of the first face paper on the printing paper to move along the paper output direction to the paper cutter. The printing paper includes a bottom paper and a plurality of face papers attached to the bottom paper, and a gap position is formed between adjacent two face papers;
[0007] Determine the paper head detection state of the printing paper through the first sensor, and determine the face paper peeling state of the first face paper on the printing paper through the second sensor based on the paper head detection state of the printing paper.
[0008] In some embodiments, the determining the paper head detection state of the printing paper through the first sensor and determining the face paper peeling state of the first face paper based on the paper head detection state of the printing paper includes:
[0009] Detect the detection state of the paper head of the printing paper through the first sensor;
[0010] If the detection state of the paper head of the printing paper is the type where the paper head has appeared, then determine whether the first face paper on the printing paper is peeled off from the base paper through the second sensor;
[0011] If the first face paper on the printing paper is peeled off from the base paper, determine that the face paper peeling state of the first face paper is the type where the face paper has been peeled off.
[0012] In some embodiments, after determining that the face paper peeling state of the first face paper is the type where the face paper has been peeled off, it further includes:
[0013] Update the next face paper of the first face paper to be the first face paper of the printing paper, and perform the step of driving the upper slit area of the first face paper on the printing paper to move along the paper output direction to the paper tearing knife.
[0014] In some embodiments, determining the detection state of the paper head of the printing paper through the first sensor and determining the face paper peeling state for the first face paper based on the detection state of the paper head of the printing paper includes:
[0015] Detect the detection state of the paper head of the printing paper through the first sensor;
[0016] If the detection state of the paper head of the printing paper is the type where the paper head has appeared, then determine whether a slit position or the base paper is detected through the second sensor;
[0017] If a slit position or the base paper is detected, drive the printing paper to move a first preset distance along the paper feeding-back direction, and detect whether there is a face paper through the second sensor;
[0018] If the second sensor detects that there is a face paper, determine that the face paper peeling state of the first face paper on the printing paper is the type where the face paper has not been peeled off.
[0019] In some embodiments, after determining that the face paper peeling state of the first face paper on the printing paper is the type where the face paper has not been peeled off, the method further includes:
[0020] Drive the printing paper to feed paper along the paper output direction. After the first sensor detects the paper head of the printing paper, drive the printing paper to move a second preset distance along the paper output direction, and the second preset distance is used to indicate that the upper slit area of the first face paper on the printing paper moves to the paper tearing knife.
[0021] In some embodiments, the first preset distance is the gap distance of the slit.
[0022] In some embodiments, the second preset distance is the distance between the first sensor and the paper cutter.
[0023] In some embodiments, the first preset distance is the distance between the first sensor and the printing line.
[0024] In some embodiments, the first preset distance is greater than or equal to the gap distance of the gap, and the second preset distance is the distance between the first sensor and the paper cutter.
[0025] In some embodiments, after detecting whether there is facial tissue through the second sensor, the method further includes:
[0026] If the second sensor does not detect facial tissue, it is determined that the facial tissue peeling state of the first facial tissue on the printing paper is the type of peeled facial tissue, and the printing paper is driven to move along the paper output direction;
[0027] If the second sensor detects the upper edge position of the next facial tissue of the first facial tissue, the printing paper is driven to move a third preset distance along the paper output direction, and the third preset distance is used to indicate that the upper gap area of the next facial tissue reaches the paper cutter;
[0028] Update the next facial tissue as the first facial tissue of the printing paper.
[0029] In some embodiments, before driving the printing paper to move a third preset distance along the paper output direction, it further includes:
[0030] Obtain the distance between the first sensor and the paper cutter, the distance between the first sensor and the printing line, the distance between the second sensor and the printing line, and the gap distance between two adjacent facial tissues on the printing paper;
[0031] Based on the distance between the first sensor and the paper cutter, the distance between the first sensor and the printing line, the distance between the second sensor and the printing line, and the gap distance between two adjacent facial tissues on the printing paper, use a calculation formula to determine the third preset distance;
[0032] The calculation formula is:
[0033] A = L1 + L2 + L3 - H1 / 2
[0034] Wherein, L1 is the distance between the first sensor and the paper cutter, L2 is the distance between the first sensor and the printing line, L3 is the distance between the second sensor and the printing line, and H1 is the gap distance between two adjacent facial tissues on the printing paper.
[0035] In some embodiments, if the detected state of the leading edge of the printing paper is the type where the leading edge has appeared, determining the state of the top face sheet on the printing paper being peeled off from the base paper through the second sensor, including:
[0036] If the detected state of the leading edge of the printing paper is the type where the leading edge has appeared, and no gap position or the base paper is detected through the second sensor, determining that the state of the top face sheet on the printing paper being peeled off is the type where the face sheet is not peeled off.
[0037] In some embodiments, the height of the face sheet of the printing paper, the gap distance between the face sheets, the distance between the first sensor and the printing line, and the distance between the printing line and the second sensor satisfy the following inequality:
[0038] H2 + 2 * H1 ≥ L2 + L3
[0039] Wherein, H2 is the height of the face sheet of the printing paper, H1 is the gap distance between the face sheets, L2 is the distance between the first sensor and the printing line, and L3 is the distance between the printing line and the second sensor.
[0040] In some embodiments, after driving the upper gap area of the top face sheet of the printing paper to move in the paper output direction to the paper tearing knife, the method further includes:
[0041] Driving the upper edge position of the face sheet of the top face sheet to move in the paper feeding-back direction to the printing line.
[0042] In some embodiments, after driving the upper edge position of the face sheet of the top face sheet to move in the paper feeding-back direction to the printing line, it further includes:
[0043] Determining that the printing of the top face sheet is completed, updating the next face sheet of the top face sheet to be the top face sheet of the printing paper;
[0044] Driving the upper edge position of the top face sheet of the printing paper to move in the paper output direction towards the printing line, and detecting the upper edge position of the face sheet of the top face sheet of the printing paper through the second sensor;
[0045] If the second sensor detects the upper edge position of the face sheet, driving the printing paper to move in the paper output direction by a fourth preset distance, and the fourth preset distance is used to indicate that the upper edge position of the face sheet is aligned with the printing line.
[0046] In some embodiments, the fourth preset distance is the distance between the second sensor and the printing line.
[0047] In some embodiments, the method further includes:
[0048] During the process of detecting the upper edge position of the top sheet of the printing paper by the second sensor, record the first number of motor steps corresponding to the motor of the printing device when the second sensor detects the gap position or the backing paper, and record the second number of motor steps corresponding to the motor of the printing device when the second sensor detects the upper edge position of the top sheet of the printing paper;
[0049] If the difference between the second number of motor steps and the first number of motor steps is greater than a preset number of steps, a paper feed fault prompt for the printing device is issued.
[0050] In a second aspect, an embodiment of the present application further provides a printing control device, where the device includes:
[0051] A driving module, configured to drive the upper gap area of the top sheet on the printing paper to move to the paper cutter along the paper output direction, where the printing paper includes a backing paper and a plurality of sheets attached to the backing paper, and a gap position is formed between two adjacent sheets;
[0052] A detection module, configured to determine the paper head detection state of the printing paper through a first sensor, and determine the sheet peeling state of the top sheet on the printing paper through a second sensor based on the paper head detection state of the printing paper.
[0053] In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program runs on a computer, the computer is caused to execute the printing control method provided in any embodiment of the present application.
[0054] In a fourth aspect, an embodiment of the present application further provides an electronic device, including a processor and a memory. The memory has a computer program, and the processor is configured to execute the printing control method provided in any embodiment of the present application by calling the computer program.
[0055] The technical solution provided by the embodiments of the present application is applied to a printing device. The printing device includes a main body, on which a second sensor, a print head, a first sensor, and a paper cutter are arranged along the paper output direction of the printing device. The print head is provided with printing lines. By driving the upper gap area of the first sheet of paper on the printing paper to move to the paper cutter along the paper output direction, the printing paper includes a base paper and a plurality of sheets of paper attached to the base paper, and a gap position is formed between two adjacent sheets of paper. The paper head detection state of the printing paper is determined by the first sensor, and the paper peeling state of the first sheet of paper on the printing paper is determined by the second sensor based on the paper head detection state of the printing paper. The present application can detect the peeling situation of the first sheet of paper in the printing paper in the printing device, avoiding the situation in the related art that when printing on the printing paper, the sheet of paper on the printing paper may be peeled off and printed on the printing paper behind the peeled-off sheet of paper, and information cannot be printed, thereby improving the printing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description 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.
[0057] Figure 1 It is a schematic flowchart of a printing control method provided by an embodiment of the present application.
[0058] Figure 2 It is a schematic diagram of the structural relationship of sensors in a printing device in the printing control method provided by an embodiment of the present application.
[0059] Figure 3 It is a first distance distribution diagram of the gap distance between the sensor, the printing line, and the sheet of paper in the printing paper provided by an embodiment of the present application.
[0060] Figure 4 It is a second distance distribution diagram of the gap distance between the sensor, the printing line, and the sheet of paper in the printing paper provided by an embodiment of the present application.
[0061] Figure 5 It is a schematic structural diagram of a printing control device provided by an embodiment of the present application.
[0062] Figure 6 It is a schematic structural diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0063] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to 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. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.
[0064] Reference to "embodiment" in this context means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The phrase appears in various places in the specification and does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described herein can be combined with other embodiments.
[0065] In logistics, retail, medical, and many office automation scenarios, label printers, as key devices, are widely used for the fast and accurate printing of various labels to meet diverse needs such as goods tracking, inventory management, and product identification. As the core consumable of the label printer, label paper usually consists of a face paper, a base paper, and an adhesive layer between the two. The face paper carries the printing information, and the base paper provides structural support and protection.
[0066] In current label printer technology, a common problem is that during the continuous feeding and printing of label paper, the accidental peeling of the first face paper (e.g., due to uneven adhesion of the adhesive layer, malfunction of the feeding mechanism, or improper operation, etc.) is often difficult to detect in a timely manner. If this phenomenon is not effectively monitored and intervened, it will directly lead to subsequent printing operations being carried out in the area of the base paper where the face paper has been peeled off, resulting in loss of printing information, incomplete label content, or even the entire label being scrapped, seriously affecting work efficiency and printing quality.
[0067] To solve the above technical problems, the embodiments of the present application provide a printing control method. The execution subject of the printing control method can be the printing control device provided by the embodiments of the present application, or an electronic device integrated with the printing control device, where the printing control device can be implemented in a hardware or software manner. Among them, the electronic device can be a printing device, such as a label printer.
[0068] Please refer to Figure 1 , Figure 1 which is the first flow schematic diagram of the printing control method provided by the embodiments of the present application. The printing control method provided by the embodiments of the present application is applied to a printing device. The printing device includes a main body, and a second sensor, a print head, a first sensor, and a paper cutter are arranged on the main body along the paper output direction of the printing device. A printing line is arranged on the print head. The specific process of the printing control method can be as follows:
[0069] S101. Drive the upper gap area of the first sheet of paper on the printing paper to move along the paper output direction to the paper cutter. The printing paper includes a base paper and a plurality of sheets of paper attached to the base paper, and a gap position is formed between two adjacent sheets of paper.
[0070] Among them, the printing paper is a kind of paper designed and manufactured specifically to meet various printing output requirements. By cooperating with office equipment such as printers, copiers, and fax machines, it converts digital information (such as text, images, charts, etc.) into physical documents and is an indispensable basic consumable in modern office, education, business, and household scenarios. The printing paper used in the printing device provided in this application includes a base paper and a plurality of sheets of paper attached to the base paper, and a gap position is formed between two adjacent sheets of paper. For example, the printing device can be a label printer, and the printing paper can be a label paper.
[0071] To illustrate this application more intuitively, please refer to Figure 2 , Figure 2 , which is a schematic diagram of the structural relationship of a sensor in the printing device in the printing control method provided by the embodiment of this application. Among them:
[0072] The first sensor, that is, the sensor 1 shown in the figure: along the paper output direction, downstream of the printing line;
[0073] The second sensor, that is, the sensor 2 shown in the figure: along the paper output direction, upstream of the printing line;
[0074] L1: The distance from sensor 1 to the paper cutter;
[0075] L2: The distance from the printing line (printing head) to sensor 1;
[0076] L3: The distance from sensor 2 to the printing line;
[0077] H1: The gap height;
[0078] H2: The height of the sheet of paper.
[0079] It should be noted that during normal printing, Figure 2 the upper sheet of paper shown in the figure should be printed and peeled off. The corresponding position of this upper sheet of paper should be the base paper of the printing paper. The lower sheet of paper is the first sheet of paper of the printing paper. And Figure 2 in the figure, in order to show the distribution of the sheets of paper on the printing paper, two sheets of paper on the printing paper and the corresponding gaps between these two sheets of paper are shown here. When understanding this embodiment, it is necessary to regard the upper sheet of paper shown in Figure 2 as peeled off and the next sheet of paper as the first sheet of paper on the printing paper.
[0080] In this embodiment, before starting the printing operation, the printing device first moves the upper slit of the first sheet of paper on the printing paper to the position of the paper cutter. When starting to print, it returns a preset distance and aligns the upper edge of the first sheet of paper on the printing paper with the printing line to ensure that the complete printing information is printed on this sheet of printing paper.
[0081] S102. Determine the paper head detection state of the printing paper through the first sensor, and determine the paper peeling state of the first sheet of paper on the printing paper through the second sensor based on the paper head detection state of the printing paper.
[0082] In this embodiment, when the printing device drives the printing paper to move in the paper output direction to move the upper slit area of the first sheet of paper on the printing paper to the position of the paper cutter, during the paper output process, the first sensor is used to detect the paper head detection state of the printing paper, and the paper head detection state includes the type of paper head appeared and the type of paper head not appeared. It can be understood that the type of paper head appeared corresponds to the first sensor detecting the paper head of the printing paper; the type of paper head not appeared corresponds to the first sensor not detecting the paper head of the printing paper. During the paper output process, the second sensor is used to detect the paper peeling state of the first sheet of paper on the printing paper, and the paper peeling state includes the type of paper peeled and the type of paper not peeled. It can be understood that in this application, the detection cooperation of the first sensor and the second sensor is used to determine the paper peeling state of the first sheet of paper on the printing paper, so as to avoid printing on the printing paper after the paper is peeled, thereby improving the printing efficiency.
[0083] Specifically, in implementation, this application is not limited by the execution order of the described steps. Without conflict, some steps can also be performed in other orders or simultaneously.
[0084] As can be seen from the above, the printing control method provided by the embodiment of this application is applied to a printing device. The printing device includes a main body, and a second sensor, a print head, a first sensor, and a paper cutter are arranged on the main body along the paper output direction of the printing device. A printing line is arranged on the print head. By driving the upper slit area of the first sheet of paper on the printing paper to move along the paper output direction to the position of the paper cutter, the printing paper includes a base paper and a plurality of sheets of paper attached to the base paper, and a slit position is formed between adjacent sheets of paper. Determine the paper head detection state of the printing paper through the first sensor, and determine the paper peeling state of the first sheet of paper on the printing paper through the second sensor based on the paper head detection state of the printing paper. This application can detect the peeling situation of the first sheet of paper in the printing paper in the printing device, and avoid the situation in the related art that when printing on the printing paper, the paper on the printing paper may be peeled off and printed on the printing paper after the peeled paper, and no information can be printed, thereby improving the printing efficiency.
[0085] In some embodiments, the detection state of the leading edge of the printing paper is determined by a first sensor, and based on the detection state of the leading edge of the printing paper, the peeling state of the first sheet of face paper is determined by a second sensor, including:
[0086] Detect the detection state of the leading edge of the printing paper by the first sensor;
[0087] If the detection state of the leading edge of the printing paper is of the type that the leading edge has appeared, then judge whether the first sheet of face paper on the printing paper is peeled off from the base paper by the second sensor;
[0088] If the first sheet of face paper on the printing paper is peeled off from the base paper, determine that the peeling state of the first sheet of face paper is of the type that the face paper has been peeled off.
[0089] In this embodiment, when the first sensor detects the appearance of the leading edge of the printing paper, the printing paper is detected by the second sensor to judge whether the first sheet of face paper on the printing paper is peeled off from the base paper. If the first sheet of face paper on the printing paper is peeled off from the base paper, determine that the peeling state of the first sheet of face paper is of the type that the face paper has been peeled off.
[0090] For example, please refer to Figure 2 , during the paper output process, if the first sensor detects the appearance of the leading edge of the printing head paper, and the second sensor does not detect the face paper on the printing paper during the paper output process, it means that the first sheet of face paper on the printing paper is in the state that the face paper has been peeled off.
[0091] In some embodiments, after determining that the peeling state of the first sheet of face paper is of the type that the face paper has been peeled off, it further includes:
[0092] Update the next sheet of face paper of the first sheet of face paper to the first sheet of face paper of the printing paper, and execute the step of driving the upper slit area of the first sheet of face paper on the printing paper to move along the paper output direction to the paper tearing knife.
[0093] In this embodiment, after determining that the peeling state of the first sheet of face paper on the printing paper is of the type that the face paper has been peeled off, it indicates that it is necessary to continue to output paper forward to find the face paper, so as to achieve the subsequent purpose of printing information on the face paper. Therefore, at this time, it is necessary to find the first sheet of face paper of the printing paper through paper output, and after finding the first sheet of face paper of the printing paper, move the upper slit area of the first sheet of face paper along the paper output direction to the paper tearing knife.
[0094] In some embodiments, the detection state of the leading edge of the printing paper is determined by a first sensor, and based on the detection state of the leading edge of the printing paper, the peeling state of the first sheet of face paper is determined by a second sensor, including:
[0095] Detect the detection state of the leading edge of the printing paper by the first sensor;
[0096] If the paper head detection status of the printing paper is the type that the paper head has appeared, then it is judged by the second sensor whether the gap position or the base paper is detected;
[0097] If the gap position or the base paper is detected, the printing paper is driven to move a first preset distance in the paper return direction, and it is detected by the second sensor whether there is a top sheet;
[0098] If the second sensor detects the existence of a top sheet, it is determined that the top sheet peeling state of the first top sheet on the printing paper is the type that the top sheet is not peeled.
[0099] In this embodiment, when the first sensor detects that the paper head detection status of the printing paper is the type that the paper head has appeared, it is judged by the second sensor whether the gap position or the base paper is detected. If the second sensor detects the gap position or the base paper, the printing paper is driven to move a first preset distance in the paper return direction, and it is detected by the second sensor whether there is a top sheet. It can be understood that at this time, the paper return is to confirm whether there is a top sheet on the printing paper that exits downstream of the second sensor. When the second sensor detects the top sheet, it is determined that the top sheet peeling state of the first top sheet on the printing paper is the type that the top sheet is not peeled.
[0100] Among them, the value of the first preset distance can be referred to the following description.
[0101] In some embodiments, after determining that the top sheet peeling state of the first top sheet on the printing paper is the type that the top sheet is not peeled, the method further includes:
[0102] The printing paper is driven to feed out in the paper feed direction. After the first sensor detects the paper head of the printing paper, the printing paper is driven to move a second preset distance in the paper feed direction. The second preset distance is used to indicate that the upper gap area of the first top sheet on the printing paper moves to the paper tearing knife.
[0103] In this embodiment, after determining that the top sheet peeling state of the first top sheet on the printing paper is the type that the top sheet is not peeled, the printing paper is driven to feed out in the paper feed direction. After the first sensor detects the paper head of the printing paper, the printing paper is continuously driven to feed out a second preset distance in the paper feed direction, so that the upper gap area of the first top sheet on the printing paper moves to the paper tearing knife.
[0104] Among them, the value of the second preset distance can be referred to the following description.
[0105] In some embodiments, the first preset distance is the gap distance of the gap.
[0106] Please refer to Figure 2 , that is, the first preset distance can be taken as the gap distance H1 between the top sheets.
[0107] It can be understood that in the above text, when the first sensor detects that the paper head detection state of the printing paper is the type where the paper head has appeared, the second sensor is used to determine whether the gap position or the base paper is detected. If the second sensor detects the gap position or the base paper, the printing paper is driven to move a distance of H1 in the paper feeding-back direction, and the second sensor is used to detect whether there is a face paper. It can be understood that at this time, the paper feeding-back is to confirm whether there is a face paper on the printing paper that exits downstream of the second sensor. When the second sensor detects the face paper, it is determined that the face paper peeling state of the first face paper on the printing paper is the type where the face paper is not peeled. It can be understood that since the printing paper includes a base paper and multiple face papers attached to the base paper, a gap position is formed between adjacent two face papers. After moving back a distance of H1, if there is a face paper on the printing paper that exits downstream of the second sensor, that is, the second sensor can detect the face paper.
[0108] In some embodiments, when the first preset distance is set to the gap distance of the gap, the second preset distance can be set to the distance between the first sensor and the paper cutter.
[0109] Please refer to Figure 2 , that is, the second preset distance can take a value of L1.
[0110] It can be understood that in the above text, after determining that the face paper peeling state of the first face paper on the printing paper is the type where the face paper is not peeled, the printing paper is driven to feed out in the paper feeding direction. After the first sensor detects the paper head of the printing paper, the printing paper is continuously driven to feed out a distance of L1 in the paper feeding direction, so that the upper gap area of the first face paper on the printing paper moves to the paper cutter. Please refer to Figure 2 , the printing paper feeding out a distance of L1 in the paper feeding direction can make the upper gap area of the first face paper on the printing paper move to the paper cutter.
[0111] In some embodiments, the first preset distance is the distance between the first sensor and the printing line.
[0112] Please refer to Figure 2 , the first preset distance can also take a value of L2, that is, in the corresponding paper feeding-back process above, the paper head of the printing paper is between the first sensor and the printing line, and it is not allowed to feed back the paper so that the paper head is at the upstream position of the printing line. If the paper head feeds back to the upstream position of the printing line, then the subsequent printing paper feeding out will cause the paper feeding to be unsmooth.
[0113] In some embodiments, when the first preset distance is set to the distance between the first sensor and the printing line, the first preset distance is greater than or equal to the gap distance of the gap, and the second preset distance can be set to the distance between the first sensor and the paper cutter.
[0114] In this embodiment, it is ensured that the distance L2 between the first sensor and the printing line is greater than or equal to the gap distance H1, so as to ensure the normal detection of whether the first sheet of paper is peeled off. Otherwise, when the finger of the printing paper has returned to the printing line position, but the second sensor is still at the gap position, it will cause the printer to misjudge that the first sheet of paper is peeled off, but in fact it is not peeled off. The printer will directly enter the paper output positioning process, resulting in waste of the first sheet of paper.
[0115] In some embodiments, after detecting whether there is a sheet of paper through the second sensor, it further includes:
[0116] If the second sensor does not detect a sheet of paper, it is determined that the peeling state of the first sheet of paper on the printing paper is the type of peeled-off sheet of paper, and the printing paper is driven to move in the paper output direction;
[0117] If the second sensor detects the upper edge position of the next sheet of paper of the first sheet of paper, the printing paper is driven to move a third preset distance in the paper output direction, and the third preset distance is used to indicate that the upper gap area of the next sheet of paper reaches the paper cutter;
[0118] Update the next sheet of paper to the first sheet of paper of the printing paper.
[0119] In this embodiment, if the second sensor does not detect a sheet of paper, it is determined that the first sheet of label paper is peeled off from the backing paper, and then the paper is fed forward so that the second sensor detects the upper edge of the next sheet of paper, and then continues to feed forward a third preset distance, so that the upper gap area of the next sheet of paper can be aligned with the paper cutter position. Since the first sheet of paper is peeled off from the backing paper, the next sheet of paper is updated to the first sheet of paper.
[0120] In some embodiments, before driving the printing paper to move a third preset distance in the paper output direction, it further includes:
[0121] Obtain the distance between the first sensor and the paper cutter, the distance between the first sensor and the printing line, the distance between the second sensor and the printing line, and the gap distance between two adjacent sheets of paper on the printing paper;
[0122] Based on the distance between the first sensor and the paper cutter, the distance between the first sensor and the printing line, the distance between the second sensor and the printing line, and the gap distance between two adjacent sheets of paper on the printing paper, use a calculation formula to determine the third preset distance;
[0123] The calculation formula is:
[0124] A = L1 + L2 + L3 - H1 / 2
[0125] Wherein, L1 is the distance between the first sensor and the paper cutter, L2 is the distance between the first sensor and the printing line, L3 is the distance between the second sensor and the printing line, and H1 is the gap distance between two adjacent face papers on the printing paper.
[0126] In this embodiment, please refer to Figure 2 , if the second sensor detects the upper edge position of the face paper of the next face paper of the first face paper, the printing paper is driven to move a third preset distance in the paper output direction, and the third preset distance is L1 + L2 + L3 - H1 / 2, that is, during the paper output process, the upper gap area of the next face paper is moved from the position of the second sensor to the position of the paper cutter.
[0127] In some embodiments, if the paper head detection state of the printing paper is the type of paper head already appeared, it is determined whether the first face paper on the printing paper is peeled off from the base paper through the second sensor, including:
[0128] If the paper head detection state of the printing paper is the type of paper head already appeared, and the second sensor does not detect the gap position or the base paper, it is determined that the face paper peeling state of the first face paper on the printing paper is the type of face paper not peeled off.
[0129] In this embodiment, it can be understood that the second sensor does not detect the gap position or the base paper, that is, the second sensor detects the face paper, and it is determined that the face paper peeling state of the first face paper on the printing paper is the type of face paper not peeled off.
[0130] In some embodiments, the face paper height of the printing paper, the gap distance between the face papers, the distance between the first sensor and the printing line, and the distance between the printing line and the second sensor satisfy the following inequality:
[0131] H2 + 2*H1 ≥ L2 + L3
[0132] Wherein, H2 is the face paper height of the printing paper, H1 is the gap distance between the face papers, L2 is the distance between the first sensor and the printing line, and L3 is the distance between the printing line and the second sensor.
[0133] In this embodiment, when the face paper height of the printing paper, the gap distance between the face papers, the distance between the first sensor and the printing line, and the distance between the printing line and the second sensor in the printing device satisfy the above inequality, the printing control method provided by the present application can be accurately used to determine whether the first label paper is peeled off. Please refer to Figure 3 , satisfying this inequality means that the distance of the face paper height H2 plus twice the gap height H1 is greater than or equal to the distance L2 + L3 between the first sensor and the second sensor.
[0134] It is understandable that if this inequality is not satisfied, that is, H2 + 2*H1 < L2 + L3, in this case, please refer to Figure 4 , that is, the distance from the height H2 of the facial tissue plus twice the height H1 of the gap is less than the distance L2 + L3 between the first sensor and the second sensor. In this case, what the second sensor actually detects is whether the second facial tissue is peeled off, rather than whether the first facial tissue (i.e., the first facial tissue) is peeled off. Therefore, there will still be a situation where printing cannot start from the first facial tissue.
[0135] In some embodiments, after driving the upper gap area of the first facial tissue on the printing paper to move along the paper output direction to the paper cutter, the method further includes:
[0136] Driving the upper edge position of the facial tissue of the first facial tissue to move along the paper return direction to the printing line.
[0137] In this embodiment, before starting the printing operation, the printing device will first move the upper gap of the first facial tissue on the printing paper to the position of the paper cutter. When starting to print, a paper return process will be performed, that is, driving the upper edge position of the facial tissue of the first facial tissue to move along the paper return direction to the printing line, aligning the upper edge of the first facial tissue on the printing paper with the printing line to ensure that complete printing information is printed on this printing paper.
[0138] In some embodiments, after driving the upper edge position of the facial tissue of the first facial tissue to move along the paper return direction to the printing line, it further includes:
[0139] Determining that the printing of the first facial tissue is completed, and updating the next facial tissue of the first facial tissue to the first facial tissue of the printing paper;
[0140] Driving the upper edge position of the first facial tissue on the printing paper to move along the paper output direction towards the printing line, and detecting the upper edge position of the facial tissue of the first facial tissue of the printing paper through the second sensor;
[0141] If the second sensor detects the upper edge position of the facial tissue, then drive the printing paper to move along the paper output direction by a fourth preset distance, and the fourth preset distance is used to indicate that the upper edge position of the facial tissue is aligned with the printing line.
[0142] Please refer to Figure 2 , it is understandable that after the printing of the first facial tissue on the printing paper is completed, it is necessary to print on the next facial tissue of this first facial tissue. At this time, update this next facial tissue to the first facial tissue. At this time, there is no need for paper return, and continue to output the paper to align the upper edge of this first facial tissue with the printing line to continue printing. Specifically, during the movement along the paper output direction, when the second sensor detects the upper edge position of this first facial tissue, then drive the printing paper to move along the paper output direction by a fourth preset distance so that the upper edge of this first facial tissue is aligned with the printing line.
[0143] In some embodiments, the fourth preset distance is the distance between the second sensor and the printing line.
[0144] It can be understood that, referring to Figure 2 , the fourth preset distance can be set to L3. When the second sensor detects the upper edge position of the first sheet of paper, the printing paper is driven to move a distance of L3 in the paper output direction, so that the upper edge of the first sheet of paper can be aligned with the printing line.
[0145] In some embodiments, the method further includes:
[0146] During the process of detecting the upper edge position of the first sheet of paper on the printing paper by the second sensor, record the first number of motor steps corresponding to the motor of the printing device when the second sensor detects the gap position or the backing paper, and record the second number of motor steps corresponding to the motor of the printing device when the second sensor detects the upper edge position of the first sheet of paper on the printing paper;
[0147] If the difference between the second number of motor steps and the first number of motor steps is greater than the preset number of steps, a paper feeding fault prompt for the printing device is issued.
[0148] Among them, the preset number of steps can be set according to the needs of the actual printing scenario. For example, the preset number of steps can be set to the number of motor steps required for the motor of the printing device to move a gap distance.
[0149] In this embodiment, that is, during the process of the second sensor detecting from the gap area to detecting the sheet of paper, if the number of motor steps is greater than the preset number of steps, it means that many sheets of paper on the printing paper may have been peeled off, causing the second sensor to always detect the gap. Therefore, at this time, a paper feeding fault prompt for the printing device is issued to prompt the user to perform fault handling.
[0150] In an embodiment, a printing control device is further provided. Please refer to Figure 5 , Figure 5 which is a schematic structural diagram of the printing control device 200 provided by the embodiment of the present application. The printing control device 200 is applied to an electronic device. The printing control device 200 includes a driving module 201 and a detection module 202, as follows:
[0151] The driving module 201 is used to drive the upper gap area of the first sheet of paper on the printing paper to move to the paper cutting knife along the paper output direction. The printing paper includes a backing paper and a plurality of sheets of paper attached to the backing paper, and a gap position is formed between adjacent two sheets of paper;
[0152] The detection module 202 is used to determine the paper head detection state of the printing paper through the first sensor, and determine the paper peeling state of the first sheet of paper on the printing paper through the second sensor based on the paper head detection state of the printing paper.
[0153] In some embodiments, the detection module 202 is specifically configured to:
[0154] Detect the detection status of the paper head of the printing paper through the first sensor;
[0155] If the detection status of the paper head of the printing paper is the type where the paper head has appeared, determine whether the first face paper on the printing paper is peeled off from the base paper through the second sensor;
[0156] If the first face paper on the printing paper is peeled off from the base paper, determine that the face paper peeling status of the first face paper is the type where the face paper has been peeled off.
[0157] In some embodiments, the driving module 201 is specifically configured to:
[0158] Update the next face paper of the first face paper as the first face paper of the printing paper, and perform the step of driving the upper slit area of the first face paper on the printing paper to move along the paper output direction to the paper tearing knife.
[0159] In some embodiments, the detection module 202 is specifically configured to:
[0160] Detect the detection status of the paper head of the printing paper through the first sensor;
[0161] If the detection status of the paper head of the printing paper is the type where the paper head has appeared, determine whether the slit position or the base paper is detected through the second sensor;
[0162] If the slit position or the base paper is detected, drive the printing paper to move a first preset distance along the paper feeding-back direction, and detect whether there is a face paper through the second sensor;
[0163] If the second sensor detects that there is a face paper, determine that the face paper peeling status of the first face paper on the printing paper is the type where the face paper has not been peeled off.
[0164] In some embodiments, the driving module 201 is specifically configured to:
[0165] Drive the printing paper to output paper along the paper output direction. After the first sensor detects the paper head of the printing paper, drive the printing paper to move a second preset distance along the paper output direction, and the second preset distance is used to indicate that the upper slit area of the first face paper on the printing paper moves to the paper tearing knife.
[0166] In some embodiments, the first preset distance is the gap distance of the slit.
[0167] In some embodiments, the second preset distance is the distance between the first sensor and the paper tearing knife.
[0168] In some embodiments, the first preset distance is the distance between the first sensor and the printing line.
[0169] In some embodiments, the first preset distance is greater than or equal to the gap distance of the slit, and the second preset distance is the distance between the first sensor and the paper cutter.
[0170] In some embodiments, the driving module 201 is specifically configured to:
[0171] If the second sensor does not detect the facial tissue, determine that the facial tissue peeling state of the first facial tissue on the printing paper is the type of peeled facial tissue, and drive the printing paper to move along the paper outlet direction;
[0172] If the second sensor detects the upper edge position of the next facial tissue of the first facial tissue, drive the printing paper to move a third preset distance along the paper outlet direction, and the third preset distance is used to indicate that the upper slit area of the next facial tissue reaches the paper cutter;
[0173] Update the next facial tissue as the first facial tissue of the printing paper.
[0174] In some embodiments, the printing control device further includes a determination module, and the determination module is configured to:
[0175] Obtain the distance between the first sensor and the paper cutter, the distance between the first sensor and the printing line, the distance between the second sensor and the printing line, and the gap distance between two adjacent facial tissues on the printing paper;
[0176] Determine the third preset distance by using a calculation formula based on the distance between the first sensor and the paper cutter, the distance between the first sensor and the printing line, the distance between the second sensor and the printing line, and the gap distance between two adjacent facial tissues on the printing paper;
[0177] The calculation formula is:
[0178] A = L1 + L2 + L3 - H1 / 2
[0179] where L1 is the distance between the first sensor and the paper cutter, L2 is the distance between the first sensor and the printing line, L3 is the distance between the second sensor and the printing line, and H1 is the gap distance between two adjacent facial tissues on the printing paper.
[0180] In some embodiments, the detection module 202 is specifically configured to:
[0181] If the detected state of the leading edge of the printing paper is the type where the leading edge has appeared, and the gap position or the backing paper is not detected by the second sensor, it is determined that the peeling state of the first top sheet on the printing paper is the type where the top sheet is not peeled off.
[0182] In some embodiments, the height of the top sheet of the printing paper, the gap distance between the top sheets, the distance between the first sensor and the printing line, and the distance between the printing line and the second sensor satisfy the following inequality:
[0183] H2 + 2 * H1 ≥ L2 + L3
[0184] Where H2 is the height of the top sheet of the printing paper, H1 is the gap distance between the top sheets, L2 is the distance between the first sensor and the printing line, and L3 is the distance between the printing line and the second sensor.
[0185] In some embodiments, the driving module 201 is specifically configured to:
[0186] Drive the upper edge position of the top sheet of the first top sheet to move along the paper feeding-back direction to the printing line.
[0187] In some embodiments, the driving module 201 is specifically configured to:
[0188] Determine that the printing of the first top sheet is completed, and update the next top sheet of the first top sheet to the first top sheet of the printing paper;
[0189] Drive the upper edge position of the first top sheet on the printing paper to move along the paper feeding-out direction to the printing line, and detect the upper edge position of the top sheet of the first top sheet of the printing paper through the second sensor;
[0190] If the second sensor detects the upper edge position of the top sheet, drive the printing paper to move along the paper feeding-out direction by a fourth preset distance, and the fourth preset distance is used to indicate that the upper edge position of the top sheet is aligned with the printing line.
[0191] In some embodiments, the fourth preset distance is the distance between the second sensor and the printing line.
[0192] In some embodiments, the detection module 202 is specifically configured to:
[0193] During the process of detecting the upper edge position of the top sheet of the first top sheet of the printing paper through the second sensor, record the first motor steps corresponding to the motor of the printing device when the second sensor detects the gap position or the backing paper, and record the second motor steps corresponding to the motor of the printing device when the second sensor detects the upper edge position of the top sheet of the first top sheet;
[0194] If the difference between the number of steps of the second motor and the number of steps of the first motor is greater than a preset number of steps, a paper feed fault prompt for the printing device is issued.
[0195] It should be noted that the printing control device provided in the embodiments of the present application and the printing control method in the above embodiments belong to the same concept. Through this printing control device, any method provided in the embodiments of the printing control method can be implemented. The specific implementation process is detailed in the embodiments of the printing control method and will not be elaborated here.
[0196] In addition, in order to better implement the printing control method in the embodiments of the present application, based on the printing control method, the present application also provides an electronic device, and the electronic device may be a printing device, such as a label printer. Please refer to Figure 6 , Figure 6 FIG. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. The electronic device 300 includes a processor 301 and a memory 302. Among them, the processor 301 is electrically connected to the memory 302.
[0197] The processor 301 is the control center of the electronic device 300, connects various parts of the entire electronic device through various interfaces and lines, executes various functions of the electronic device and processes data by running or calling computer programs stored in the memory 302 and calling data stored in the memory 302, so as to monitor the electronic device as a whole. Among them, the processor 301 may be a central processing unit (CPU), or may also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0198] The memory 302 can be used to store computer programs and data. The computer programs stored in the memory 302 contain instructions that can be executed in the processor. The computer programs can form various functional modules. The processor 401 executes various functional applications and data processing by calling the computer programs stored in the memory 302. Among them, the memory 302 mainly includes a program storage area and a data storage area. The program storage area can store an operating system, application programs required for at least one function (such as a sound playback function, an image playback function, etc.); the data storage area can store data created according to the use of the electronic device 300 (such as audio data, video data, etc.). In addition, the memory can include high-speed random access memory, and can also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0199] In this embodiment, the processor 301 in the electronic device 300 will load the instructions corresponding to the processes of one or more computer programs into the memory 302 according to the following steps, and the processor 401 will run the computer programs stored in the memory 302 to implement various functions:
[0200] Drive the upper slit area of the first sheet of paper on the printing paper to move along the paper output direction to the paper cutter. The printing paper includes a base paper and a plurality of sheets of paper attached to the base paper, and a slit position is formed between two adjacent sheets of paper.
[0201] Determine the paper head detection state of the printing paper through the first sensor, and determine the paper peeling state of the first sheet of paper on the printing paper through the second sensor based on the paper head detection state of the printing paper.
[0202] In some embodiments, when the processor 301 executes determining the paper head detection state of the printing paper through the first sensor and determining the paper peeling state of the first sheet of paper based on the paper head detection state of the printing paper through the second sensor, it can execute:
[0203] Detect the paper head detection state of the printing paper through the first sensor;
[0204] If the paper head detection state of the printing paper is the type where the paper head has appeared, then determine whether the first sheet of paper on the printing paper has peeled off from the base paper through the second sensor;
[0205] If the first sheet of paper on the printing paper has peeled off from the base paper, then determine that the paper peeling state of the first sheet of paper is the type where the paper has peeled off.
[0206] In some embodiments, after the processor 301 executes the step of determining that the face paper peeling state of the first face paper is the face paper peeled type, the processor 301 may further execute:
[0207] Update the next face paper of the first face paper to be the first face paper of the printing paper, and execute the step of driving the upper gap area of the first face paper on the printing paper to move in the paper outlet direction to the paper cutter.
[0208] In some embodiments, when the processor 301 executes the step of determining the paper head detection state of the printing paper through the first sensor and determining the face paper peeling state of the first face paper through the second sensor based on the paper head detection state of the printing paper, the processor 301 may further execute:
[0209] Detect the paper head detection state of the printing paper through the first sensor;
[0210] If the paper head detection state of the printing paper is the paper head appeared type, then determine whether the gap position or the base paper is detected through the second sensor;
[0211] If the gap position or the base paper is detected, drive the printing paper to move a first preset distance in the paper feeding-back direction, and detect whether there is face paper through the second sensor;
[0212] If the second sensor detects that there is face paper, determine that the face paper peeling state of the first face paper on the printing paper is the face paper not peeled type.
[0213] In some embodiments, after the processor 301 executes the step of determining that the face paper peeling state of the first face paper on the printing paper is the face paper not peeled type, the processor 301 may further execute:
[0214] Drive the printing paper to feed paper in the paper outlet direction. After the first sensor detects the paper head of the printing paper, drive the printing paper to move a second preset distance in the paper outlet direction, where the second preset distance is used to indicate that the upper gap area of the first face paper on the printing paper moves to the paper cutter.
[0215] In some embodiments, the first preset distance is the gap distance of the gap.
[0216] In some embodiments, the second preset distance is the distance between the first sensor and the paper cutter.
[0217] In some embodiments, the first preset distance is the distance between the first sensor and the printing line.
[0218] In some embodiments, the first preset distance is greater than or equal to the gap distance of the gap, and the second preset distance is the distance between the first sensor and the paper cutter.
[0219] In some embodiments, after the processor 301 executes detecting whether there is facial tissue through the second sensor, it may further execute:
[0220] If the second sensor does not detect facial tissue, it is determined that the facial tissue peeling state of the first facial tissue on the printing paper is the type of facial tissue already peeled, and the printing paper is driven to move in the paper output direction;
[0221] If the second sensor detects the upper edge position of the next facial tissue of the first facial tissue, the printing paper is driven to move a third preset distance in the paper output direction, and the third preset distance is used to indicate that the upper gap area of the next facial tissue reaches the paper cutter;
[0222] Update the next facial tissue as the first facial tissue of the printing paper.
[0223] In some embodiments, before the processor 301 executes driving the printing paper to move a third preset distance in the paper output direction, it may further execute:
[0224] Obtain the distance between the first sensor and the paper cutter, the distance between the first sensor and the printing line, the distance between the second sensor and the printing line, and the gap distance between two adjacent facial tissues on the printing paper;
[0225] Based on the distance between the first sensor and the paper cutter, the distance between the first sensor and the printing line, the distance between the second sensor and the printing line, and the gap distance between two adjacent facial tissues on the printing paper, use a calculation formula to determine the third preset distance;
[0226] The calculation formula is:
[0227] A = L1 + L2 + L3 - H1 / 2
[0228] Wherein, L1 is the distance between the first sensor and the paper cutter, L2 is the distance between the first sensor and the printing line, L3 is the distance between the second sensor and the printing line, and H1 is the gap distance between two adjacent facial tissues on the printing paper.
[0229] In some embodiments, when the processor 301 executes that if the paper head detection state of the printing paper is the type of paper head already appeared, and determines the facial tissue peeling state by judging whether the first facial tissue on the printing paper is peeled from the base paper through the second sensor, it may execute:
[0230] If the detected state of the paper head of the printing paper is the type where the paper head has appeared, and the gap position or the base paper is not detected by the second sensor, it is determined that the peeling state of the first face paper on the printing paper is the type where the face paper is not peeled off.
[0231] In some embodiments, the face paper height of the printing paper, the gap distance between the face papers, the distance between the first sensor and the printing line, and the distance between the printing line and the second sensor satisfy the following inequality:
[0232] H2 + 2*H1 ≥ L2 + L3
[0233] Wherein, H2 is the face paper height of the printing paper, H1 is the gap distance between the face papers, L2 is the distance between the first sensor and the printing line, and L3 is the distance between the printing line and the second sensor.
[0234] In some embodiments, after the processor 301 executes to drive the upper gap area of the first face paper on the printing paper to move in the paper output direction to the paper tearing knife, it can also execute:
[0235] Drive the upper edge position of the face paper of the first face paper to move in the paper feeding-back direction to the printing line.
[0236] In some embodiments, after the processor 301 executes to drive the upper edge position of the face paper of the first face paper to move in the paper feeding-back direction to the printing line, it can also execute:
[0237] Determine that the printing of the first face paper is completed, and update the next face paper of the first face paper to the first face paper of the printing paper;
[0238] Drive the upper edge position of the first face paper on the printing paper to move in the paper output direction towards the printing line, and detect the upper edge position of the face paper of the first face paper of the printing paper through the second sensor;
[0239] If the second sensor detects the upper edge position of the face paper, drive the printing paper to move in the paper output direction for a fourth preset distance, and the fourth preset distance is used to indicate that the upper edge position of the face paper is aligned with the printing line.
[0240] In some embodiments, the fourth preset distance is the distance between the second sensor and the printing line.
[0241] In some embodiments, the processor 301 can also execute:
[0242] During the process of detecting the upper edge position of the first face paper of the printing paper by the second sensor, record the first motor steps corresponding to the motor of the printing device when the second sensor detects the gap position or the base paper, and record the second motor steps corresponding to the motor of the printing device when the second sensor detects the upper edge position of the first face paper of the printing paper;
[0243] If the difference between the second motor steps and the first motor steps is greater than the preset steps, a paper feeding fault prompt for the printing device is issued.
[0244] The embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program runs on a computer, the computer executes the printing control method described in any one of the above embodiments.
[0245] It should be noted that those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the storage medium can include but is not limited to: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.
[0246] In addition, the terms "first", "second", "third", etc. in the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or modules is not limited to the listed steps or modules, but some embodiments also include steps or modules that are not listed, or some embodiments also include other steps or modules inherent to these processes, methods, products or devices.
[0247] The printing control method, device, storage medium and electronic device provided by the embodiments of the present application have been introduced in detail above. Specific examples are used in this article to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present application.
Claims
1. A printing control method, characterized in that, Applied to a printing device, the printing device includes a main body, and a second sensor, a print head, a first sensor and a paper cutter are arranged on the main body along the paper output direction of the printing device. A printing line is arranged on the print head. The method includes: Driving the upper gap area of the first sheet of paper on the printing paper to move along the paper output direction to the paper cutter. The printing paper includes a base paper and a plurality of sheets of paper attached to the base paper, and a gap position is formed between two adjacent sheets of paper. Determining the paper head detection state of the printing paper through the first sensor, and determining the paper peeling state of the first sheet of paper on the printing paper through the second sensor based on the paper head detection state of the printing paper.
2. The method according to claim 1, characterized in that, The determining the paper head detection state of the printing paper through the first sensor, and determining the paper peeling state of the first sheet of paper based on the paper head detection state of the printing paper through the second sensor includes: Detecting the paper head detection state of the printing paper through the first sensor; If the paper head detection state of the printing paper is the type that the paper head has appeared, then judging whether the first sheet of paper on the printing paper is peeled off from the base paper through the second sensor; If the first sheet of paper on the printing paper is peeled off from the base paper, determining that the paper peeling state of the first sheet of paper is the type that the paper has been peeled off.
3. The method according to claim 2, characterized in that, After determining that the paper peeling state of the first sheet of paper is the type that the paper has been peeled off, it further includes: Updating the next sheet of paper of the first sheet of paper to the first sheet of paper of the printing paper, and performing the step of driving the upper gap area of the first sheet of paper on the printing paper to move along the paper output direction to the paper cutter.
4. The method according to claim 1, wherein The determining the paper head detection state of the printing paper through the first sensor, and determining the paper peeling state of the first sheet of paper based on the paper head detection state of the printing paper through the second sensor includes: Detecting the paper head detection state of the printing paper through the first sensor; If the paper head detection state of the printing paper is the type that the paper head has appeared, then judging whether the gap position or the base paper is detected through the second sensor; If the gap position or the base paper is detected, driving the printing paper to move a first preset distance along the paper feeding-back direction, and detecting whether there is a sheet of paper through the second sensor; If the second sensor detects that there is a sheet of paper, determining that the paper peeling state of the first sheet of paper on the printing paper is the type that the paper has not been peeled off.
5. The method according to claim 4, wherein After determining that the paper peeling state of the first sheet of paper on the printing paper is the type that the paper has not been peeled off, the method further includes: Driving the printing paper to feed paper along the paper output direction. After the first sensor detects the paper head of the printing paper, driving the printing paper to move a second preset distance along the paper output direction. The second preset distance is used to indicate that the upper gap area of the first sheet of paper on the printing paper moves to the paper cutter.
6. The method according to claim 5, characterized in that The first preset distance is the gap distance of the gap.
7. The method according to claim 6, wherein The second preset distance is the distance between the first sensor and the paper cutter.
8. The method according to claim 5, wherein The first preset distance is the distance between the first sensor and the printing line.
9. The method according to claim 8, wherein The first preset distance is greater than or equal to the gap distance of the gap, and the second preset distance is the distance between the first sensor and the paper cutter.
10. The method according to claim 4, wherein After detecting whether there is facial tissue through the second sensor, the method further includes: If the second sensor does not detect facial tissue, determine that the facial tissue peeling state of the first facial tissue on the printing paper is the type of peeled facial tissue, and drive the printing paper to move along the paper output direction; If the second sensor detects the upper edge position of the facial tissue of the next facial tissue of the first facial tissue, drive the printing paper to move a third preset distance along the paper output direction, and the third preset distance is used to indicate that the upper gap area of the next facial tissue reaches the paper tearing knife; Update the next facial tissue as the first facial tissue of the printing paper.
11. The method according to claim 10, wherein Before driving the printing paper to move a third preset distance along the paper output direction, it further includes: Obtain the distance between the first sensor and the paper tearing knife, the distance between the first sensor and the printing line, the distance between the second sensor and the printing line, and the gap distance between two adjacent facial tissues on the printing paper; Determine the third preset distance by using a calculation formula based on the distance between the first sensor and the paper tearing knife, the distance between the first sensor and the printing line, the distance between the second sensor and the printing line, and the gap distance between two adjacent facial tissues on the printing paper; The calculation formula is: A = L1 + L2 + L3 - H1 / 2 Wherein, L1 is the distance between the first sensor and the paper tearing knife, L2 is the distance between the first sensor and the printing line, L3 is the distance between the second sensor and the printing line, and H1 is the gap distance between two adjacent facial tissues on the printing paper.
12. The method according to claim 2, characterized in that, When the paper head detection state of the printing paper is the type of paper head already appeared, determining the facial tissue peeling state of the first facial tissue on the printing paper by judging whether the first facial tissue on the printing paper is peeled from the base paper through the second sensor includes: If the paper head detection state of the printing paper is the type of paper head already appeared, and the second sensor does not detect the gap position or the base paper, determine that the facial tissue peeling state of the first facial tissue on the printing paper is the type of unpeeled facial tissue.
13. The method according to claim 1, wherein The facial tissue height of the printing paper, the gap distance between facial tissues, the distance between the first sensor and the printing line, and the distance between the printing line and the second sensor satisfy the following inequality: H2 + 2*H1 ≥ L2 + L3 Wherein, H2 is the facial tissue height of the printing paper, H1 is the gap distance between facial tissues, L2 is the distance between the first sensor and the printing line, and L3 is the distance between the printing line and the second sensor.
14. The method according to claim 1, wherein After driving the upper gap area of the first facial tissue on the printing paper to move to the paper tearing knife along the paper output direction, the method further includes: Drive the upper edge position of the facial tissue of the first facial tissue to move to the printing line along the paper feeding-back direction.
15. The method according to claim 14, wherein After driving the upper edge position of the facial tissue of the first facial tissue to move to the printing line along the paper feeding-back direction, it further includes: Determine that the printing of the first facial tissue is completed, and update the next facial tissue of the first facial tissue as the first facial tissue of the printing paper; Drive the upper edge position of the first sheet of paper on the printing paper to move along the paper output direction towards the printing line, and detect the upper edge position of the sheet of paper of the first sheet of paper of the printing paper through the second sensor; If the second sensor detects the upper edge position of the sheet of paper, drive the printing paper to move a fourth preset distance along the paper output direction, and the fourth preset distance is used to indicate that the upper edge position of the sheet of paper is aligned with the printing line.
16. The method according to claim 15, wherein The fourth preset distance is the distance between the second sensor and the printing line.
17. The method according to claim 15, wherein The method further includes: During the process of detecting the upper edge position of the sheet of paper of the first sheet of paper of the printing paper through the second sensor, record the first motor steps corresponding to the motor of the printing device when the second sensor detects the gap position or the backing paper, and record the second motor steps corresponding to the motor of the printing device when the second sensor detects the upper edge position of the sheet of paper of the first sheet of paper; If the difference between the second motor steps and the first motor steps is greater than the preset number of steps, issue a paper feed fault prompt for the printing device.
18. A printing control device, characterized in that, The device includes: A driving module, configured to drive the upper gap area of the first sheet of paper on the printing paper to move to the paper cutting knife along the paper output direction, where the printing paper includes a backing paper and a plurality of sheets of paper attached to the backing paper, and a gap position is formed between adjacent sheets of paper; A detection module, configured to determine the paper head detection state of the printing paper through the first sensor, and determine the paper peeling state of the first sheet of paper on the printing paper through the second sensor based on the paper head detection state.
19. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program runs on a computer, the computer is caused to execute the printing control method according to any one of claims 1 to 17.
20. An electronic device, comprising a processor and a memory, the memory storing a computer program, characterized in that, The processor is configured to execute the printing control method according to any one of claims 1 to 17 by calling the computer program.
Citation Information
Cited By
Paper return positioning method and device, storage medium and electronic equipment
CN120439696A
Label paper gap positioning method and apparatus, storage medium, and electronic device
WO2026153514A1