CN115848034A - Method for identifying label state of printer - Google Patents
Method for identifying label state of printer Download PDFInfo
- Publication number
- CN115848034A CN115848034A CN202211234050.7A CN202211234050A CN115848034A CN 115848034 A CN115848034 A CN 115848034A CN 202211234050 A CN202211234050 A CN 202211234050A CN 115848034 A CN115848034 A CN 115848034A
- Authority
- CN
- China
- Prior art keywords
- printer
- paper
- state
- label
- identifying
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Handling Of Sheets (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
The invention discloses a method for identifying the label state of a printer, which comprises the following steps: s1, when a photoelectric sensor of a printer detects that a label state is a gap state, starting to record the paper feeding length; s2, when the paper feeding length is larger than a and the paper feeding device is always in a gap state, the printer judges that the paper is out of paper; when the paper feed length is less than a, the printer determines a normal state. The method for identifying the label state of the printer can improve the detection and positioning of the printer on the label, improve the positioning precision of the label and prevent blank label paper from being printed due to misjudgment in the printing process.
Description
Technical Field
The invention relates to the technical field of printers, in particular to a method for identifying the label state of a printer.
Background
At present, a label printer is applied to many scenes such as take-out, supermarkets, merchants and the like, is used for printing orders and tickets, and is one of machines heavily relied on by modern retail merchants. Meanwhile, the merchant has great market demand for marking information such as the product incoming, outgoing, quality guarantee period and the like. At present, label printers are also widely used in home life to mark articles of home goods for storage.
In a label printer, label positioning is a problem difficult to solve, and a common method in the industry at present is to use a photoelectric triode correlation or reflection mode, use different currents flowing through triodes at different illumination intensities, perform simple I-V conversion, and detect a current voltage value by using an AD technology of an MCU. When the voltage is above or below a certain value, it is considered to be a tag or a gap. The existing printer determines three states by different voltage values: no paper, no gap, and no label. Because the voltage value is divided into three intervals, the numerical value of the voltage value for judging the gap state is closer to the numerical value of the voltage value for judging the label state, and sometimes the label state is wrongly judged as the gap state, so that the detection sensitivity of the sensor is lower, a blank label is easy to appear in the printing process, the label is wasted, and bad use experience is brought to a user.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a method for identifying the label state of a printer, which can improve the detection and positioning of the printer on the label, improve the label positioning precision and prevent blank label paper from being printed due to misjudgment in the printing process.
The technical solution of the present invention is to provide a method for identifying the label state of a printer, which comprises the following steps, dividing the detection voltage value range of a photoelectric sensor into two intervals, wherein the two intervals correspond to two states, namely a gap state and a label state; s1, when the photoelectric sensor detects that the label state is a gap state, starting to record the paper feeding length; s2, when the paper feeding length is larger than a and the paper feeding device is always in a gap state, the printer judges that the paper is out of paper; when the paper feed length is less than a, the printer is determined to be in a normal state.
After the structure is adopted, compared with the prior art, the method for identifying the label state of the printer has the following advantages that:
the method for identifying the label state of the printer divides the detection voltage value range of the photoelectric sensor into two intervals, wherein the two intervals correspond to two label states, namely a gap state and a label state respectively; compared with the prior art that the detection voltage value range is divided into three intervals, the numerical range of the two intervals of the detection value of the photoelectric sensor of the printer is larger, and the difficulty of state recognition of the photoelectric sensor is reduced, so that the detection sensitivity of the photoelectric sensor can be improved, and the misjudgment probability of the photoelectric sensor is greatly reduced. The label is detected and positioned by the printer according to the length of the gap in combination with the paperless state, the label positioning precision is improved, and the situation that blank label paper is printed due to misjudgment in the printing process is prevented.
In step S2, when the paper feed length is greater than a and the printer is in the slit state, the printer determines that the paper is out, and stops printing and gives an alarm. After adopting this kind of structure, can remind the user in time to change and beat printing paper.
As a modification, when the paper feed length is less than a, the printer judges as a normal state, and the print head starts a print job.
As an improvement, the warning prompt comprises displaying information of paper shortage on a screen of the printer or/and giving a warning sound. After adopting this kind of structure, it is better to report an emergency and ask for help or increased vigilance suggestion effect.
As an improvement, a is 4-8mm. After adopting this kind of structure, the design is more reasonable.
As a refinement, the a is 6mm. After adopting this kind of structure, the printer judges that clearance or label are the most accurate.
Detailed Description
It should be understood that the detailed description is merely illustrative of exemplary embodiments of the present application and does not limit the scope of the present application in any way.
It will be further understood that the terms "comprises," "comprising," "includes," "including," "has," "having," "contains," and/or "containing," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
The invention discloses a method for identifying the label state of a printer. The paper feeding rubber roller is fixed on the lower casing through shaft sleeves at two sides. In the printing process of the printer, the printing paper is pressed between the printing head and the paper feeding rubber roller through the elastic piece. A pair of photoelectric sensors is fixed on the upper and lower parts of the label surface paper and comprises a transmitting end and a receiving end which are respectively arranged on the upper side and the lower side of the label surface paper.
The label and the gap have different thicknesses, so that different currents are generated by the receiving end due to different received light intensities when the label passes through the photoelectric sensor, the current voltage value is detected through simple I-V conversion and the AD technology of the MCU, and the current state can be judged.
In the printer in the prior art, the detection voltage value range of the photoelectric sensor is divided into three intervals, and the three intervals correspond to three states, namely a paper-free state, a gap state and a label state, for example, the detection voltage value range of the photoelectric sensor is 0-3.2V, the detection voltage value of the photoelectric sensor is a, the paper-free state is when a is greater than or equal to 0 and less than 1V, the gap state is when a is greater than or equal to 1V and less than 1.5V, and the label state is when a is greater than or equal to 1.5V and less than 3.2V. The printer is different from the prior art, the detection voltage value range of the photoelectric sensor is divided into two sections by the printer, the two sections correspond to two states, namely a gap state and a label state, if the detection voltage value range of the photoelectric sensor is 0-3.2V, the detection voltage value of the photoelectric sensor is A, the gap state is when A is larger than or equal to 0 and smaller than 1.5V, and the label state is when A is larger than or equal to 1.5V and smaller than or equal to 3.2V. The detection voltage value ranges of the photoelectric sensors of different models of printers are different, and this embodiment is only illustrative.
The method for identifying the label state of the printer comprises the following steps:
s1, when a photoelectric sensor of the printer detects that the label state is a gap state, recording the paper feeding length is started. The paper feed length is calculated by calculating the travel of the rotating rubber roller.
And S2, when the paper feeding length is larger than a and the paper feeding device is always in a gap state, the printer judges that the paper is out of the paper, stops printing and gives an alarm, namely, the information of the paper out of the printer screen is displayed, and meanwhile, the alarm sound is given out. When the paper feeding length is less than a, the printer judges as a normal state, and the printing head starts printing.
The a is 4-8mm, and the a is 6mm in the embodiment, because the maximum gap of the label paper on the market is 6mm, and the narrowest height of the label is 10mm. The optimal value of a is 6mm, and most of label paper in the market can be basically covered.
Claims (6)
1. A method for identifying the label state of a printer comprises the following steps:
dividing the detection voltage value range of the photoelectric sensor into two intervals, wherein the two intervals correspond to two states, namely a gap state and a label state respectively;
s1, when the photoelectric sensor detects that the label state is a gap state, starting to record the paper feeding length;
s2, when the paper feeding length is larger than a and the paper feeding device is always in a gap state, the printer judges that the paper is out of paper; when the paper feed length is less than a, the printer determines a normal state.
2. The method of identifying a status of a printer label as claimed in claim 1, wherein: in step S2, when the paper feed length is greater than a and the paper is always in the slit state, the printer determines that the paper is out of paper, stops printing, and gives an alarm.
3. The method of identifying a status of a printer tag as set forth in claim 2, wherein: when the paper feeding length is less than a, the printer judges as a normal state, and the printing head starts printing.
4. The method of identifying a status of a printer tag as claimed in claim 2, wherein: the warning prompt includes displaying a paper out message or/and emitting a warning sound on the printer screen.
5. The method of identifying the status of a printer tag as claimed in any one of claims 1 to 4, wherein: and a is 4-8mm.
6. The method of identifying a status of a printer tag of claim 5, wherein: and a is 6mm.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211234050.7A CN115848034A (en) | 2022-10-10 | 2022-10-10 | Method for identifying label state of printer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211234050.7A CN115848034A (en) | 2022-10-10 | 2022-10-10 | Method for identifying label state of printer |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115848034A true CN115848034A (en) | 2023-03-28 |
Family
ID=85661386
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211234050.7A Pending CN115848034A (en) | 2022-10-10 | 2022-10-10 | Method for identifying label state of printer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115848034A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118144448A (en) * | 2024-05-09 | 2024-06-07 | 珠海益之印科技有限公司 | Label initial positioning method, computer storage medium and label printer |
-
2022
- 2022-10-10 CN CN202211234050.7A patent/CN115848034A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118144448A (en) * | 2024-05-09 | 2024-06-07 | 珠海益之印科技有限公司 | Label initial positioning method, computer storage medium and label printer |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5915864A (en) | Method and apparatus to determine position and sense motion of linerless media | |
CN115848034A (en) | Method for identifying label state of printer | |
EP2369539B1 (en) | Management system, electronic instrument, and management method | |
CN111516397B (en) | Label paper identification method, device, equipment and readable storage medium | |
JPH0252787A (en) | Thermal printer by microprocessor control | |
USRE42088E1 (en) | Printer | |
CN103407637B (en) | Inner pasting compound labelling anti-counterfeiting method for labelling rewinder | |
CN110091627B (en) | Method for automatically identifying paper by bar code label printer | |
JP2000141775A (en) | Label sheet and label printer | |
RU2006101538A (en) | SYSTEM AND METHOD FOR DETERMINING THE STATUS OF LABEL IN THE ROLL OF RESERVE OF LABELS | |
US20050286956A1 (en) | System for ensuring correct placement of printed matter on a tangible print medium | |
JP2007522965A (en) | Printing device | |
EP1939818A3 (en) | Ensuring print quality for postage meter systems | |
US6202727B1 (en) | Registration system for various types of media | |
CN100443307C (en) | Tape processing apparatus, method of conducting demonstration with tape processing apparatus, and program | |
US20100278544A1 (en) | System and method for ensuring that only a specific toner is used for printing a document | |
JP2744676B2 (en) | Printer device | |
JP2899456B2 (en) | Label printer | |
JPH03159750A (en) | Printer | |
US10982979B2 (en) | Label sensing mechanism with two optical sensors and different sensing modes for detecting label position, preprinted marks on label liners and preprinted marks on labels | |
JP4129331B2 (en) | Label identification device, label identification method, and belt-like mount | |
CN205033728U (en) | Image forming device | |
CN113352786B (en) | False cutting prevention method for bill printer | |
US20080024578A1 (en) | End of roll paper sensing and system management | |
CN116834447A (en) | Label printer and printing positioning correction method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |