PRINTING SYSTEM, DETECTION METHOD, AND COMPUTER PROGRAM
The printing system addresses the issue of erroneous gap detection between label portions by using a sensor and determination unit to calculate voltage changes and set thresholds, ensuring accurate detection without enlarging the sensor, suitable for small printers.
Patent Information
- Application Number
- JP2020172311
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-10-13
- Publication Date
- 2024-08-29
- Estimated Expiration
- 2040-10-13
AI Technical Summary
Existing printing systems inaccurately detect the gaps between label portions on label paper due to the small reflectance difference and paper flapping, leading to erroneous detection.
A printing system that includes a transport control unit, a sensor for light irradiation and detection, a change amount calculation unit, and a determination unit to accurately detect the gaps between label portions by calculating the voltage change and determining the start and end of gap detection based on predetermined thresholds and dot line counts.
Reduces erroneous detection of gaps between label portions by accurately identifying the start and end of gap detection, allowing for precise label portion detection without increasing sensor size, suitable for small printers.
Smart Images

Figure 0007541892000014 
Figure 0007541892000019 
Figure 0007541892000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a printing system, a detection method, and a computer program. [Background technology]
[0002] A technology for detecting a detection area provided on a paper surface is known for printing systems such as thermal printers (see, for example, Patent Document 1). In this technology, a conveying unit conveys paper on which a mark for determining a printing position is provided on at least a part of the paper surface, an acquiring unit acquires a detection signal from a sensor that optically detects the mark on the paper surface conveyed by the conveying unit at a predetermined interval as the paper is conveyed, and a detecting unit detects the mark based on an integrated value of the amount of change in the detection signal acquired at the predetermined interval. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2017-132087 A Summary of the Invention [Problem to be solved by the invention]
[0004] In the above-mentioned technology, marks are detected by utilizing the difference in reflectance between the portion of the paper surface where the mark is provided and the portion where the mark is not provided. Therefore, if label paper with label portions without marks is used, the portions between the label portions are detected from the difference in reflectance between the label portions and the portion between the labels. Hereinafter, the portions between the labels may be referred to as "gaps." The difference in reflectance between the label and gap areas is very small. In some cases, the change in reflectance caused by flapping label paper is greater than the difference in reflectance. This can lead to the flapping label paper being mistakenly detected as a gap.
[0005] The present invention has been made in consideration of the above circumstances, and its purpose is to provide a printing system, a detection method, and a computer program that can reduce erroneous detection of the areas between label portions of paper on which labels are formed. [Means for solving the problem]
[0006] (1) In view of the above-mentioned problems, a printing system according to one aspect of the present invention includes a transport control unit that controls a transport unit that transports paper having label portions formed at predetermined intervals on its printing surface, a sensor that irradiates light onto the paper transported by the transport unit and detects reflected light of the irradiated light, a detection unit that detects an output of the sensor, a change amount calculation unit that calculates an amount of change in voltage based on the output of the sensor detected by the detection unit, and a determination unit that determines that a portion between adjacent label portions has been detected based on the amount of change in voltage calculated by the change amount calculation unit.
[0007] (2) In the printing system according to an aspect of the present invention, the change amount calculation unit may calculate a difference between a voltage value before a predetermined dot line.
[0008] (3) In a printing system according to one aspect of the present invention, the determination unit may determine that detection of the portion between adjacent label parts has begun during a period during which the amount of change in voltage continues to be equal to or greater than a predetermined threshold and a predetermined condition is satisfied.
[0009] (4) In a printing system according to one aspect of the present invention, the determination unit may be configured to determine that detection of the portion between adjacent label units has been completed during a period during which the amount of change in voltage continues to be below a predetermined threshold, if the period satisfies a predetermined condition, after which the determination unit determines that the portion between adjacent label units has been detected.
[0010] (5) In a printing system according to one aspect of the present invention, the determination unit may determine that the portion between adjacent label units has been detected if the number of dots by which the paper is transported from the time it determines that detection of the portion between adjacent label units has started until it determines that detection has ended is within a predetermined range.
[0011] (6) In a printing system according to one aspect of the present invention, the determination unit may determine that the paper is flapping if the number of dots transported on the paper from the time it determines that detection of the portion between adjacent label portions has started until it determines that detection has ended is not within a predetermined range.
[0012] (7) In a printing system according to one aspect of the present invention, the determination unit may be configured to determine that there is no paper if, after determining that detection of the portion between adjacent label units has begun, the period during which the amount of change in voltage continues to be equal to or less than a predetermined threshold value satisfies a predetermined condition.
[0013] (8) In a printing system according to one aspect of the present invention, the determination unit may determine whether or not the detection unit has detected a label portion based on the number of dots by which the paper has been transported since detecting the portion between the label portions, and may determine whether or not to disable the process of detecting the portion between the label portions based on a result of the determination of whether or not the detection unit has detected the label portion.
[0014] (9) A detection method according to one aspect of the present invention is a detection method executed by a printing system, and includes the steps of controlling a transport unit that transports paper having label portions formed at predetermined intervals on its printing surface, a sensor that irradiates light onto the paper transported by the transport unit and detects reflected light of the irradiated light, detecting an output of the sensor, calculating an amount of voltage change based on the output of the sensor detected in the detecting step, and determining that a portion between adjacent label portions has been detected based on the amount of voltage change calculated in the calculating amount of voltage change step.
[0015] (10) A detection computer program according to one aspect of the present invention causes a computer of a printing system to execute the steps of controlling a transport unit that transports paper having label portions formed at predetermined intervals on its printing surface; irradiating light onto the paper transported by the transport unit and detecting an output of a sensor that detects reflected light of the irradiated light; calculating an amount of voltage change based on the output of the sensor detected in the detecting step; and determining that a portion between adjacent label portions has been detected based on the amount of voltage change calculated in the calculating amount of voltage change step. Effect of the Invention
[0016] According to the present invention, it is possible to reduce erroneous detection of the portion between labels of a sheet of paper on which labels have been formed. [Brief description of the drawings]
[0017] [Figure 1] 1 is a block diagram showing an example of a configuration of a printing system according to an embodiment of the present invention. [Diagram 2] FIG. 4 is a diagram showing Example 1 of a waveform acquired by the printing system of the present embodiment. [Diagram 3] FIG. 11 is a diagram showing a second example of a waveform acquired by the printing system of the present embodiment. [Figure 4] FIG. 11 is a diagram showing a third example of a waveform acquired by the printing system of the present embodiment. [Diagram 5] 1 is a perspective view of a printer apparatus according to an embodiment; [Figure 6] FIG. 2 is a plan view of recording paper P according to an embodiment. [Figure 7] FIG. 2 is a front perspective view of a printing unit according to an embodiment. [Figure 8] FIG. 2 is an exploded front perspective view of the printing unit according to the embodiment; [Figure 9] FIG. 2 is a rear perspective view of the printing unit according to the embodiment; [Figure 10] FIG. 2 is a front view of a printing unit according to an embodiment. [Figure 11] 11 is a cross-sectional view taken along line VII-VII of FIG. 10. [Figure 12] FIG. 2 is an exploded front perspective view of the electrical equipment of the printing unit according to the embodiment; [Figure 13] FIG. 2 is a diagram illustrating an example of a sensor of the printing system of the present embodiment. [Figure 14] FIG. 4 is a flow diagram showing a first example of the operation of the printing system of the present embodiment. [Figure 15] FIG. 11 is a flow diagram showing a second example of the operation of the printing system according to the present embodiment. [Figure 16] FIG. 11 is a flow diagram showing a third example of the operation of the printing system according to the present embodiment. [Figure 17] FIG. 4 is a diagram illustrating an example of an output of a sensor. [Figure 18] FIG. 11 is a diagram illustrating an operation of a printing system according to a modified example of the embodiment. [Figure 19] FIG. 11 is a flowchart showing a first example of the operation of a printing system according to a modified example of the embodiment. [Figure 20] FIG. 11 is a flowchart showing a second example of the operation of a printing system according to a modified example of the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0018] Next, a printing system, a detection method, and a computer program according to the present embodiment will be described with reference to the drawings. The embodiment described below is merely an example, and the embodiment to which the present invention is applied is not limited to the following embodiment. In addition, in this application, "based on XX" means "based on at least XX" and includes cases where it is based on other elements in addition to XX. Furthermore, "based on XX" is not limited to cases where XX is directly used, but also includes cases where it is based on XX that has been calculated or processed. "XX" is any element (for example, any information).
[0019] (Embodiment) (Printing System) FIG. 1 is a block diagram showing an example of the configuration of a printing system of this embodiment. As shown in the figure, the printing system 1 includes a host terminal 2 that transmits commands to a printer device 8, and a printer device 8 that receives the commands and print data transmitted by the host terminal 2 and performs processing based on the received commands and print data. The printing system 1 transports recording paper. On the printing surface of the recording paper, peelable labels are formed at predetermined intervals. The printing system 1 includes a sensor that irradiates light onto the transported recording paper, detects the reflected light of the irradiated light, and outputs the detection result of the reflected light. The printing system 1 detects the output of the sensor, and calculates the amount of change in voltage based on the detected output. The printing system 1 determines that the portion between adjacent label parts has been detected based on the calculation result of the amount of change in voltage. The host terminal 2 and the printer device 8 that constitute the printing system 1 will be described in order below.
[0020] (Host terminal) The host terminal 2 includes a communication unit 2-1, a storage unit 2-2, an operation unit 2-3, an information processing unit 2-4, and a display unit 2-5. The communication unit 2-1 is realized by a communication module. Specifically, the communication unit 2-1 is configured by a wireless device that performs wireless communication using a wireless communication technology such as wireless LAN (registered trademark). The communication unit 2-1 may also be configured by a device that performs wired communication. Here, the explanation will continue on the case where the communication unit 2-1 is configured by a wireless device that performs wireless communication using a wireless communication technology. The communication unit 2-1 communicates with external devices such as the printer device 8 via the network. Specifically, the communication unit 2-1 receives status information transmitted by the printer device 8 and outputs the received status information to the information processing unit 2-4. Here, the status information is information for notifying the state of the printer device 8. The communication unit 2-1 also acquires print data output by the information processing unit 2-4 and transmits the acquired print data to the printer device 8. The communication unit 2-1 also acquires commands output by the information processing unit 2-4 and transmits the acquired commands to the printer device 8.
[0021] The storage unit 2-2 is realized by, for example, a RAM (Random Access Memory), a ROM (Read Only Memory), a HDD (Hard Disk Drive), a flash memory, or a hybrid storage device that combines a plurality of these. The storage unit 2-2 stores a program executed by the information processing unit 2-4. The operation unit 2-3 is a user interface and includes an input unit and an output unit. The input unit is, for example, a key button or a touch panel. The key buttons are a start key, a stop key, a numeric keypad, a clear key, a reset key, etc. The start key is a key button for starting a printing operation. The stop key is a key button for interrupting a printing operation. The numeric keypad is a key button for setting numerical values, etc. In this embodiment, the output unit is the display unit 2-5. The display unit 2-5 functions as a touch panel in addition to displaying images. The display unit 2-5 displays a setting screen for printing processing. From this setting screen, the user can change the size, set the density, etc. by operating the touch panel function or key buttons of the display unit 2-5.
[0022] The information processing unit 2-4 acquires the status information output by the communication unit 2-1, and acquires information indicating the state of the printer device 8 contained in the acquired status information. The information processing unit 2-4 monitors the state of the printer device 8 based on the acquired information indicating the state of the printer device 8. Specifically, the information processing unit 2-4 monitors whether the printer device 8 is printing or not. The information processing unit 2-4 also generates print data and outputs the generated print data to the communication unit 2-1. The information processing unit 2-4 also generates commands and outputs the generated commands to the communication unit 2-1. All or a part of the information processing unit 2-4 is a functional unit (hereinafter referred to as a software functional unit) realized by a processor such as a CPU (Central Processing Unit) executing a program stored in the storage unit 2-2. All or a part of the information processing unit 2-4 may be realized by hardware such as an LSI (Large Scale Integration), an ASIC (Application Specific Integrated Circuit), or an FPGA (Field-Programmable Gate Array), or may be realized by a combination of a software functional unit and hardware.
[0023] (Printer device) The printer device 8 includes a processing unit 5 and a mechanism unit 9. The processing unit 5 includes a communication unit 5-1, a storage unit 5-2, a command analysis unit 5-3, a print data creation unit 5-4, a print unit control unit 5-5, a transport control unit 5-6, a detection unit 5-7, a change amount calculation unit 5-8, and a determination unit 5-9. The communication unit 5-1 is realized by a communication module. Specifically, the communication unit 5-1 is configured by a wireless device that performs wireless communication using a wireless communication technology such as wireless LAN (registered trademark). The communication unit 5-1 may also be configured by a device that performs wired communication. Here, the explanation will continue on the case where the communication unit 5-1 is configured by a wireless device that performs wireless communication using a wireless communication technology. The communication unit 5-1 communicates with external devices such as the host terminal 2 via a network. Specifically, the communication unit 5-1 receives commands and print data sent by the host terminal 2. The communication unit 5-1 also acquires status information output by the printing unit control unit 5-5 and transmits the acquired status information to the host terminal 2.
[0024] The storage unit 5-2 is realized by, for example, a RAM, a ROM, a HDD, a flash memory, or a hybrid storage device that combines a plurality of these. The storage unit 5-2 stores a control program for causing the printer device 8 to execute printing. The command analysis unit 5-3 acquires the command received by the communication unit 5-1 and analyzes the acquired command. The print data creation unit 5-4 acquires the print data received by the communication unit 5-1, and creates print image data based on the acquired print data. The printing section control section 5-5 acquires the image data created by the print data creation section 5-4, and creates a control signal for causing the thermal head to print based on the acquired image data. The printing section control section 5-5 outputs the created control signal to the print unit 10. The printing section control section 5-5 also acquires the command analysis result from the command analysis section 5-3, and performs processing based on the acquired command analysis result. Specifically, if the command analysis result is reset, the printing section control section 5-5 resets (restarts) the printer device 8. The printing section control section 5-5 also creates status information, and outputs the created status information to the communication section 5-1.
[0025] The transport control unit 5-6 acquires the image data created by the print data creation unit 5-4, creates a control signal for driving a stepping motor based on the acquired image data, and outputs the created control signal to the printing unit 10. The detection unit 5-7 detects the voltage value output by the sensor 81 based on the detection result of the reflected light of the light. One example of the detection unit 5-7 detects the voltage value output by the sensor 81 for each dot line. The detection unit 5-7 acquires a voltage waveform based on the detection result of the voltage value output by the sensor 81. The change amount calculation unit 5-8 calculates the amount of change in voltage based on the voltage waveform acquired by the detection unit 5-7. One example of the change amount calculation unit 5-8 calculates the amount of change between the voltage value before the NSlp dot line and the voltage value of the current dot. Specifically, the change amount calculation unit 5-8 calculates the amount of change based on the formula (1). ΔVSen=VSen(N)-VSen(N-NSlp) (1) In equation (1), ΔVSen is the change in voltage output by the sensor [V], VSen(N) is the current sensor output [V], and VSen(N-NSlp) is the sensor output NSlp dots before the current dot [V]. The change amount calculation section 5-8 obtains a change amount waveform based on the result of the change amount calculation. The determination unit 5-9 determines whether the waveform is rising or falling based on the change amount waveform acquired by the change amount calculation unit 5-8. The determination unit 5-9 determines whether the waveform is noise, a gap, or out of paper based on the result of determining the rising edge of the waveform and the result of detecting the falling edge of the waveform.
[0026] The change amount waveform will be described with reference to FIG. 2 to FIG. Fig. 2 is a diagram showing Example 1 of a waveform acquired by the printing system of this embodiment. In Fig. 2, the horizontal axis is the number of paper feed dots [dot lines], and the vertical axis is voltage [V]. In Fig. 2, the upper diagram is an example of a voltage waveform, and the lower diagram is an example of a change amount waveform. Fig. 2 shows a case where the determination unit 5-9 detects a gap portion based on the change amount waveform. The determination unit 5-9 determines whether the voltage value exceeds the threshold for a positive change amount (hereinafter referred to as the "rising voltage threshold") consecutively by the dot line number threshold NPrThr based on the change amount waveform. The determination unit 5-9 determines that a rising edge has been detected when the voltage value exceeds the rising voltage threshold consecutively by the dot line number threshold NPrThr. When the determination unit 5-9 determines that a rising edge has been detected, it starts counting the number of paper feed dots. After starting to count the number of paper feed dots, the determination unit 5-9 determines whether the voltage value has not exceeded the threshold for the negative amount of change (hereinafter referred to as the "falling voltage threshold") consecutively based on the change amount waveform. The determination unit 5-9 determines that the falling has started when the voltage value has not exceeded the falling voltage threshold consecutively, the dot line number minimum threshold NMinThr. The determination unit 5-9 determines that the falling has ended when the voltage value exceeds the falling voltage threshold. When the determination unit 5-9 determines that the falling has ended, it stops counting the number of paper feed dots. The determination unit 5-9 determines whether the result of counting the number of paper feed dots is equal to or greater than the minimum count value NMinGap and less than the maximum count value NMaxGap. The determination unit 5-9 determines that the cap portion has been detected when the result of counting the number of paper feed dots is equal to or greater than the minimum count value NMinGap and less than the maximum count value NMaxGap.
[0027] Fig. 3 is a diagram showing a second example of a waveform acquired by the printing system of this embodiment. In Fig. 3, the horizontal axis is the number of paper feed dots [dot lines], and the vertical axis is voltage [V]. In Fig. 3, the upper diagram is an example of a voltage waveform, and the lower diagram is an example of a change amount waveform. Fig. 3 shows a case where the determination unit 5-9 detects a fluttering portion of the paper based on the change amount waveform. The determination unit 5-9 determines whether the voltage value exceeds the rising voltage threshold value NMinThr consecutively based on the change amount waveform. If the voltage value exceeds the rising voltage threshold value NMinThr consecutively, the determination unit 5-9 determines that a rising edge has been detected. If the determination unit 5-9 determines that a rising edge has been detected, it starts counting the number of paper feed dots. After starting to count the number of paper feed dots, the determination unit 5-9 determines whether the voltage value has not exceeded the falling voltage threshold value NPrThr consecutively based on the change amount waveform. When the falling voltage threshold value NPrThr has not exceeded the falling voltage threshold value NPrThr consecutively, the determination unit 5-9 determines that the falling has started. When the voltage value exceeds the falling voltage threshold value, the determination unit 5-9 determines that the falling has ended. When the determination unit 5-9 determines that the falling has ended, the determination unit 5-9 stops counting the number of paper feed dots. The determination unit 5-9 determines whether the result of counting the number of paper feed dots is greater than or equal to the minimum count value NMinGap and less than the maximum count value NMaxGap. When the result of counting the number of paper feed dots is not greater than or equal to the minimum count value NMinGap and less than the maximum count value NMaxGap, the determination unit 5-9 determines that the paper is fluttering, in other words, that a fluttering portion has been detected.
[0028] Fig. 4 is a diagram showing Example 3 of a waveform acquired by the printing system of this embodiment. In Fig. 3, the horizontal axis is the number of paper feed dots [dot lines], and the vertical axis is voltage [V]. In Fig. 4, the upper diagram is an example of a voltage waveform, and the lower diagram is an example of a change amount waveform. Fig. 4 shows a case where the determination unit 5-9 detects a paper-out portion based on the change amount waveform. The determination unit 5-9 determines whether the voltage value exceeds the rising voltage threshold value NPrThr consecutively based on the change amount waveform. If the voltage value exceeds the rising voltage threshold value NPrThr consecutively, the determination unit 5-9 determines that the voltage value is rising. If the determination unit 5-9 determines that the voltage value is rising, the determination unit 5-9 starts counting the number of paper feed dots. After starting to count the number of paper feed dots, the determination unit 5-9 determines whether the voltage value has not exceeded the falling voltage threshold value for the minimum dot line number threshold value NMinThr consecutively based on the change amount waveform. If the voltage value has not exceeded the falling voltage threshold value for the minimum dot line number threshold value NMinThr consecutively, the determination unit 5-9 determines that a falling has started. If the determination unit 5-9 does not detect a falling edge even after feeding the paper feed dot line number threshold value NNoPap, it determines that the paper has run out, in other words, that a paper-out portion has been detected. Returning to FIG. 1, the explanation will be continued.
[0029] All or part of the command analysis unit 5-3, print data creation unit 5-4, print unit control unit 5-5, transport control unit 5-6, detection unit 5-7, change amount calculation unit 5-8, and judgment unit 5-9 are software function units realized by, for example, a processor such as a CPU executing a control program stored in the storage unit 5-2. Note that all or part of the command analysis unit 5-3, print data creation unit 5-4, print unit control unit 5-5, transport control unit 5-6, detection unit 5-7, change amount calculation unit 5-8, and judgment unit 5-9 may be realized by hardware such as an LSI, ASIC, or FPGA, or may be realized by a combination of software function units and hardware.
[0030] The mechanism section 9 includes a printing unit 10 and a sensor 81. The printing unit 10 and the sensor 81 will be described. Fig. 5 is a perspective view of a printer according to one embodiment. As shown in Fig. 5, the printer 8 is configured to be capable of printing on recording paper P. The recording paper P is thermal paper that changes color when heat is applied, and is suitable for printing various labels, receipts, tickets, and the like. The recording paper P is set in the printer 8 in the form of roll paper R that is wound so as to have a hollow hole, and printing is performed on the portion of the roll paper R that is pulled out.
[0031] The printer device 8 has a casing 3, a display unit 4, a processing unit 5, and a printing unit 10. The casing 3 is formed in a hollow box shape from plastic or metal materials such as ABS (Acrylonitrile butadiene styrene) or a composite material of ABS and polycarbonate. The casing 3 has a rectangular parallelepiped main body 6 and a roll paper storage section 7 that protrudes from one end of the main body 6 in the longitudinal direction to one side of the main body 6 in the thickness direction.
[0032] A printing unit 10 is housed in one longitudinal end of the main body 6. An outlet 3a is formed in the end face of one longitudinal end of the main body 6. The recording paper P printed through the printing unit 10 is discharged from the outlet 3a. A display unit 4 is disposed on the main surface of the main body 6 opposite the roll paper storage unit 7 in the thickness direction. The display unit 4 is, for example, a liquid crystal panel, and is connected to the processing unit 5 to display various information. Roll paper R is housed in the roll paper storage unit 7.
[0033] (Recording paper) FIG. 6 is a plan view of the recording paper P according to one embodiment. As shown in FIG. 6, the recording paper P has a plurality of peelable labels P1 formed at a predetermined interval on the printing surface of the paper. The label P1 is a rectangular die-cut thermosensitive layer adhered to the release paper P3 (base paper) on the opposite side of the printing surface of the recording paper P, and a plurality of labels are formed at intervals in the longitudinal direction of the recording paper P. A frame-shaped liner P2 is formed around the periphery of the label P1. The label P1 is peelable from the release paper P3 leaving the liner P2. Thus, the recording paper P of this embodiment is a label release paper with a liner P2. The recording paper P is transported in the direction of the arrow. The portion of the release paper P3 between adjacent labels P1 is called a gap portion G. In FIG. 6, (1) indicates the position of the head end face, (2) indicates the position of the heating element, and (3) indicates the position of the sensor 81 when it is determined that there is no paper.
[0034] (Printing unit) Fig. 7 is a front perspective view of the print unit according to the embodiment, Fig. 8 is an exploded front perspective view of the print unit according to the embodiment, and Fig. 9 is a rear perspective view of the print unit according to the embodiment. As shown in FIG. 7, the printing unit 10 includes a platen roller 51 having a driven gear 56, a motor 61 that rotates the platen roller 51, a main body frame 11 that rotatably supports the platen roller 51 and to which the motor 61 is attached, a first reduction gear 65 and a second reduction gear 66 that reduce the driving force of the motor 61 and transmit it to the driven gear 56, and a thermal head 41 that is pressed against the peripheral surface of the platen roller 51.
[0035] The printing unit 10 discharges the recording paper P that has passed between the platen roller 51 and the thermal head 41 in the direction indicated by the arrow A. In the following explanation of the printing unit 10, the direction along the arrow A is defined as the up-down direction L1. The axial direction in which the rotation shaft of the platen roller 51 extends and perpendicular to the up-down direction L1 is defined as the left-right direction L2. Furthermore, the direction perpendicular to the up-down direction L1 and the left-right direction L2 is defined as the front-rear direction L3.
[0036] In the up-down direction L1, the side where the recording paper P is discharged (the side indicated by the arrow A) is defined as the top, and the opposite side is defined as the bottom. In the left-right direction L2, the side where the motor 61 is located is defined as the right, and the opposite side is defined as the left. In the front-rear direction L3, the side where the platen roller 51 is located is defined as the front, and the opposite side where the thermal head 41 is located is defined as the rear.
[0037] The main body frame 11 is formed of a plate material such as polycarbonate resin containing glass fiber. The main body frame 11 is formed in a U-shape that opens toward the front when viewed from the up-down direction L1. Specifically, the main body frame 11 has a back plate portion 12 extending in the left-right direction L2, a first side wall portion 13 erected toward the front from an end portion on one side (left side) of the back plate portion 12 in the left-right direction L2, a second side wall portion 14 erected toward the front and downward from an end portion on the other side (right side) of the back plate portion 12 in the left-right direction L2, and a paper guide portion 20 provided between the first side wall portion 13 and the second side wall portion 14.
[0038] The back plate 12 is formed in a plate shape having a thickness in the front-rear direction L3. The first side wall 13 is formed in a plate shape having a thickness in the left-right direction L2. A first roller insertion groove 16A is formed in the upper edge of the first side wall 13 and cut downward. The second side wall 14 is formed in a plate shape having a thickness in the left-right direction L2. A second roller insertion groove 16B is formed in the upper edge of the second side wall 14 and cut downward.
[0039] The second roller insertion groove 16B is formed so that its shape and position when viewed from the left-right direction L2 match those of the first roller insertion groove 16A. The platen roller 51 is removably inserted into the first roller insertion groove 16A and the second roller insertion groove 16B. The second side wall portion 14 extends forward from the end portion on the other side (right side) in the left-right direction L2 of the back plate portion 12 and further extends downward.
[0040] A motor 61 is attached to the second side wall 14 below the connection between the second side wall 14 and the back plate 12. The motor 61 is attached to the second side wall 14 from the inside in the left-right direction L2, and an output shaft 61A of the motor 61 penetrates the second side wall 14 and protrudes outside the second side wall 14 in the left-right direction L2. The motor 61 is connected to the processing unit 5 via a flexible printed circuit board 71 on which a wiring pattern (not shown) is printed. The motor 61 is driven based on a signal from the processing unit 5.
[0041] A gear box portion 17 is formed on the outer side of the second side wall portion 14. The gear box portion 17 has a peripheral wall portion 18 that stands outward in the left-right direction L2 from the periphery of the second side wall portion 14. The peripheral wall portion 18 is formed in a U-shape that is open upward when viewed in the left-right direction L2. The gear box portion 17 opens outward in the left-right direction L2.
[0042] A recess 19 recessed downward is formed on each of the front and rear upper edges of the peripheral wall 18. The pair of recesses 19 are formed to match each other in shape and position when viewed from the front-rear direction L3. A hole 18a is formed in the lower part of the peripheral wall 18. A cover member (not shown) that covers the gear box 17 engages with the pair of recesses 19 and hole 18a.
[0043] A first reduction gear 65 and a second reduction gear 66 are assembled inside the gear box portion 17. As shown in Fig. 8, the first reduction gear 65 is rotatably supported by a first rotating shaft 67 erected from the second side wall portion 14. The first reduction gear 65 meshes with an output shaft 61A of the motor 61. The second reduction gear 66 is rotatably supported by a second rotating shaft 68 erected from the second side wall portion 14 above the first rotating shaft 67. The second reduction gear 66 meshes with the first reduction gear 65.
[0044] The paper guide part 20 is formed in a substantially right-angled triangular column shape extending along the left-right direction L2. One end of the paper guide part 20 on one side (left side) in the left-right direction L2 is connected to the inner surface of the first side wall part 13, and the other end of the paper guide part 20 on the other side (right side) in the left-right direction L2 is connected to the inner surface of the second side wall part 14. The paper guide part 20 is formed with a pair of mounting parts 20a that are recessed downward when viewed from the front-rear direction L3.
[0045] The pair of mounting parts 20a are formed with a gap therebetween in the left-right direction L2. A through hole 20b is provided at the bottom of the mounting part 20a, passing through the bottom of the mounting part 20a in the up-down direction. The main body frame 11 is attached to the casing 3 by inserting a fastening member such as a bolt through the through hole 20b of the paper guide part 20.
[0046] The thermal head 41 prints on the recording paper P. The thermal head 41 is formed in a rectangular shape with the longitudinal direction being the left-right direction L2 when viewed from the front-rear direction L3. The thermal head 41 is disposed with its longitudinal direction coinciding with the width direction of the recording paper P. A large number of heating elements 42 are arranged on the head surface 41a of the thermal head 41 in the left-right direction L2.
[0047] The head surface 41a faces the printing surface of the recording paper P, and is adapted to hold the recording paper P between itself and the outer peripheral surface of the platen roller 51. The thermal head 41 is connected to the processing unit 5 via a flexible printed circuit board 71, and a driver IC (not shown) mounted on the thermal head 41 controls the heat generation of the heating elements 42 based on signals from the processing unit 5. The thermal head 41 prints various characters, figures, and the like on the printing surface of the recording paper P by controlling the heat generation of the heating elements 42.
[0048] The thermal head 41 is affixed and fixed to a head support 45 supported by the main body frame 11. The head support 45 is a plate-shaped member whose longitudinal direction is the left-right direction L2, and the thermal head 41 is affixed and fixed to the front surface. The head support 45 is disposed between the first side wall portion 13 and the second side wall portion 14, and is also disposed between the back plate portion 12 and the paper guide portion 20.
[0049] 9, an elastic member 46 is interposed between the head support 45 and the back plate portion 12, for biasing the head support 45 and the back plate portion 12 in a direction separating them from each other. That is, the elastic member 46 is configured to constantly press the head support 45 forward. A plurality of elastic members 46 (three in this embodiment) are arranged at intervals in the left-right direction L2.
[0050] As shown in FIG. 8, a pair of stoppers 45a for restricting the rotation range of the head support 45 is formed at the upper end of the head support 45. The pair of stoppers 45a is formed in a substantially rectangular prism shape and extends outward in the left-right direction L2 of the head support 45. The pair of stoppers 45a is inserted into a rectangular hole 13a formed in the upper part of the first side wall part 13 of the main body frame 11 and a rectangular hole 14a formed in the upper part of the second side wall part 14. The stoppers 45a are configured to move in the holes 13a and 14a as the head support 45 rotates and to be able to come into contact with the inner wall surfaces of the holes 13a and 14a. The stoppers 45a restrict the rotation amount of the head support 45 by coming into contact with the inner wall surfaces of the holes 13a and 14a.
[0051] 7, the platen roller 51 is disposed opposite the thermal head 41, and rotates with the recording paper P sandwiched between the platen roller 51 and the thermal head 41 to feed the recording paper P in the direction indicated by the arrow A. The platen roller 51 has a roller shaft 52, a roller body 53 fitted to the roller shaft 52, and a pair of bearings 54 attached to both ends of the roller shaft 52. The roller shaft 52 is formed to be slightly longer than the distance between the first side wall portion 13 and the second side wall portion 14 of the main body frame 11. The roller body 53 is formed of, for example, rubber, and is uniformly disposed over the entire roller shaft 52 except for both ends in the left-right direction L2.
[0052] The platen roller 51 has a pair of bearings 54 attached to both ends which are inserted into the first roller insertion groove 16A and the second roller insertion groove 16B of the main body frame 11. This allows the platen roller 51 to be rotatably and detachably held relative to the main body frame 11. When inserted into the first roller insertion groove 16A and the second roller insertion groove 16B, the platen roller 51 is arranged so that the roller body 53 comes into contact with the thermal head 41 with recording paper P pulled out from the roll paper R sandwiched therebetween.
[0053] As shown in FIG. 7, a driven gear 56 is fixed to the end of the platen roller 51 on the other side (right side) in the left-right direction L2. The driven gear 56 is assembled to the upper part of the gear box unit 17 when the platen roller 51 is held by the first side wall portion 13 and the second side wall portion 14. At this time, the driven gear 56 overlaps with the second reduction gear 66 when viewed from the left-right direction L2, and is disposed on the inner side of the second reduction gear 66, and is meshed with the second reduction gear 66. As a result, the rotational driving force from the motor 61 is transmitted to the driven gear 56 via the first reduction gear 65 and the second reduction gear 66. The platen roller 51 rotates while being held by the first side wall portion 13 and the second side wall portion 14, and can feed out the recording paper P.
[0054] Fig. 10 is a front view of the print unit according to one embodiment, Fig. 11 is a cross-sectional view taken along line VII-VII shown in Fig. 10, Fig. 12 is an exploded front perspective view of the electrical components of the print unit according to one embodiment. As shown in FIG. 11, the paper guide portion 20 has a guide slope 21 through which the recording paper P is inserted from an acute angle toward a print area 100 by the thermal head 41.
[0055] Here, the printing area 100 refers to the head surface 41a of the thermal head 41 on which the heating elements 42 are provided, which faces the platen roller 51. In a narrow sense, the printing area 100 refers to the area of the head surface 41a that is in pressure contact with the circumferential surface of the platen roller 51. The printing area 100 in this embodiment is a flat area that extends in the up-down direction L1 and the left-right direction L2.
[0056] The guide slope 21 is inclined at an angle θ1 with respect to the printing area 100. The angle θ1 is an acute angle less than 90° when the printing area 100 is set as a reference plane of 0°. The angle θ1 is preferably an acute angle of 57.5° or less. This makes it possible to insert the recording paper P into the printing area 100 without applying a strong bend to the recording paper P and preventing the label portion P1 from peeling off. In other words, the upper limit of the angle θ1 is preferably 57.5°.
[0057] On the other hand, the lower limit of angle θ1 is preferably angle θ2. Angle θ2 is the angle that a tangent 101 drawn from the printing area 100 to the peripheral surface 61a of the motor 61 forms with respect to the printing area 100. As shown in FIG. 7, peripheral surface 61a of motor 61 is disposed within the paper passage path of recording paper P and guides recording paper P. If angle θ1 is less than angle θ2, recording paper P will float with respect to inclined guide surface 21, which is not preferable. In other words, it is preferable that inclined guide surface 21 is inclined with respect to printing area 100 at an angle equal to or greater than angle θ2.
[0058] In this embodiment, the inclined guide surface 21 is inclined at an acute angle of 37.5° with respect to the printing area 100. By setting the inclined guide surface 21 at 37.5°, the minimum internal space required for laying out the sensor 81 on the inclined guide surface 21 can be secured in the paper guide unit 20. In this manner, the angle θ1 is preferably equal to or larger than the angle θ2 and equal to or smaller than 57.5°, and more preferably equal to or larger than 37.5° and equal to or smaller than 57.5°.
[0059] 10, an opening 22 in which the sensor 81 is disposed is formed in the guide slope 21. The opening 22 is formed in a T-shape when viewed from the front. The opening 22 is disposed between the pair of mounting portions 20a in the left-right direction of the guide slope 21. The opening 22 is disposed between the pair of mounting portions 20a, closer to the mounting portion 20a on one side (the left side) in the left-right direction.
[0060] In the opening 22, a sensor 81 for detecting the recording paper P is disposed. Fig. 13 is a diagram showing an example of a sensor of the printing system of this embodiment. An example of the sensor 81 is a photoreflector. The photoreflector has a light-emitting element and a light-receiving element, and detects the presence (presence) and position of an object by the reflected light of the object. The sensor 81 may be a non-contact sensor other than a photoreflector. The sensor 81 may also be a contact sensor. The sensor 81 is provided on the flexible printed circuit board 71 as shown in Fig. 12.
[0061] The flexible printed circuit board 71 includes a head connection portion 72 connected to the heating element 42, a motor connection portion 73 connected to the motor 61, and a sensor connection portion 74 connected to a sensor 81. The sensor connection portion 74 and the sensor 81, together with a sensor holder 91, are inserted into the opening 22 of the paper guide portion 20 from the bottom side of the paper guide portion 20. The sensor holder 91 is a resin molded part, and is detachably engaged with the opening 22 of the paper guide portion 20.
[0062] (Printing system operation) 14 is a flow diagram showing a first example of the operation of the printing system of this embodiment. (Step S1-1) In the printer device 8, the detection unit 5-7 detects the voltage value output by the sensor 81 based on the detection result of the reflected light, and obtains a voltage waveform based on the detection result of the voltage value output by the sensor 81. The change amount calculation unit 5-8 calculates the amount of change in voltage based on the voltage waveform obtained by the detection unit 5-7. The determination unit 5-9 determines whether or not this is the first rising detection process based on the change amount waveform obtained by the change amount calculation unit 5-8. (Step S2-1) In the printer device 8, when the determining unit 5-9 determines that it is the first rising edge detection process, it sets the number of paper feed dot lines at the time of rising edge detection (hereinafter referred to as "rising edge detection paper feed dot line number") to zero. (Step S3-1) In the printer device 8, a determination unit 5-9 determines whether the amount of change in voltage is a positive amount. (Step S4-1) In the printer device 8, when the amount of change in voltage is a positive amount of change, the determination unit 5-9 determines whether or not the amount of change in voltage is greater than a threshold value (rising voltage threshold value).
[0063] (Step S5-1) In the printer device 8, the determination unit 5-9 sets the rising edge detection paper feed dot line number to zero when the amount of change in voltage is not a positive amount of change or when the amount of change in voltage is equal to or less than the threshold value, and then the process ends. (Step S6-1) In the printer device 8, the determination unit 5-9 counts up the number of rising edge detection paper feed dot lines when the amount of change in voltage is greater than the threshold value. (Step S7-1) In the printer device 8, the determination unit 5-9 determines whether the number of dot lines for detecting a rising edge is equal to or greater than the minimum threshold value NMinThr for the number of dot lines. If the number of dot lines for detecting a rising edge is less than the minimum threshold value NMinThr for the number of dot lines, the process ends. (Step S8-1) In the printer device 8, the determination unit 5-9 determines that a rising edge has been detected when the number of dot lines for detecting a rising edge is equal to or greater than the minimum threshold value NMinThr for the number of dot lines.
[0064] 15 is a flow diagram showing a second example of the operation of the printing system of this embodiment. (Step S1-2) In the printer device 8, the detection unit 5-7 detects the voltage value output by the sensor 81 based on the detection result of the reflected light, and obtains a voltage waveform based on the detection result of the voltage value output by the sensor 81. The change amount calculation unit 5-8 calculates the amount of change in voltage based on the voltage waveform obtained by the detection unit 5-7. The determination unit 5-9 determines whether or not this is the first falling edge detection process based on the change amount waveform obtained by the change amount calculation unit 5-8. (Step S2-2) In the printer device 8, when the judgment unit 5-9 judges that this is the first trailing edge detection process, it sets the number of paper feed dot lines at the time of trailing edge detection (hereinafter referred to as the "trailing edge detection paper feed dot line number") to zero and turns off the trailing edge start flag. (Step S3-2) In the printer device 8, the determination unit 5-9 determines whether the amount of change in voltage is negative or not. (Step S4-2) In the printer device 8, when the amount of change in voltage is a negative amount of change, the determination unit 5-9 determines whether or not the amount of change in voltage is greater than a threshold value (falling voltage threshold value). (Step S5-2) In the printer device 8, a determination unit 5-9 determines whether or not the falling start flag is ON when the amount of change in voltage is not negative or is equal to or smaller than the threshold value.
[0065] (Step S6-2) In the printer device 8, the determination unit 5-9 determines that a falling edge has been detected when the falling edge start flag is ON. (Step S7-2) In the printer device 8, when the determination unit 5-9 determines that the falling edge start flag is not ON or when it determines that a falling edge has been detected, it sets the falling edge detection paper feed dot line number to zero and turns the falling edge start flag OFF. Then, the process ends. (Step S8-2) In the printer device 8, the determination unit 5-9 counts up the number of paper-feed dot lines for detecting a falling edge when the amount of change in voltage is greater than the threshold value. (Step S9-2) In the printer device 8, the determination unit 5-9 determines whether the number of dot lines for detecting a falling edge is equal to or greater than the minimum threshold value NMinThr for the number of dot lines. If the number of dot lines for detecting a falling edge is less than the minimum threshold value NMinThr for the number of dot lines, the process ends. (Step S10-2) In the printer device 8, the determination unit 5-9 turns on the falling start flag when the number of dot lines for detecting a falling edge is equal to or greater than the minimum threshold value NMinThr for the number of dot lines.
[0066] Fig. 16 is a flow diagram showing a third example of the operation of the printing system of this embodiment. Fig. 16 mainly shows the process performed by the printer device 8 of the printing system 1 to determine that the gap G has been detected. (Step S1-3) In the printer device 8, the detection unit 5-7 detects the voltage value output by the sensor 81 based on the detection result of the reflected light, and obtains a voltage waveform based on the detection result of the voltage value output by the sensor 81. The change amount calculation unit 5-8 calculates the amount of change in voltage based on the voltage waveform obtained by the detection unit 5-7. The determination unit 5-9 determines whether or not the determination is for the first gap portion G based on the change amount waveform obtained by the change amount calculation unit 5-8. (Step S2-3) In the printer device 8, when the determination unit 5-9 determines that this is the first gap determination, it sets the number of paper feed dot lines to zero and turns off the rising edge detection flag. (Step S3-3) In the printer device 8, the change amount calculation unit 5-8 calculates the amount of change in voltage based on the voltage waveform acquired by the detection unit 5-7. (Step S4-3) In the printer device 8, the determination section 5-9 performs the rising edge detection process described with reference to FIG.
[0067] (Step S5-3) In the printer device 8, the determination section 5-9 determines whether or not a rising edge has been detected. (Step S6-3) In the printer device 8, when the determination unit 5-9 detects a rising edge, it sets a rising edge detection flag to ON. (Step S7-3) In the printer device 8, when a rising edge is not detected or when the rising edge detection flag is set to ON, the determination unit 5-9 determines whether the rising edge detection flag is ON or not. If the rising edge detection flag is not ON, the process ends. (Step S8-3) In the printer device 8, the determination unit 5-9 counts up the number of paper feed dot lines when the rising edge detection flag is ON.
[0068] (Step S9-3) In the printer device 8, the determination unit 5-9 determines whether or not the number of paper feed dot lines is equal to or greater than the paper feed dot line number threshold value NNoPap dots. (Step S10-3) In the printer device 8, the determination unit 5-9 determines that no paper (no paper portion) has been detected when the number of paper feed dot lines is equal to or greater than the paper feed dot line number threshold NNoPap dots. (Step S11-3) In the printer device 8, when the number of paper feed dot lines is less than the paper feed dot line number threshold NNoPap dots, the determination unit 5-9 performs the trailing edge detection process described with reference to FIG. (Step S12-3) In the printer device 8, the determination unit 5-9 determines whether or not a falling edge has been detected. If a falling edge has not been detected, the process ends. (Step S13-3) In the printer device 8, when a determining unit 5-9 detects a trailing edge, it determines whether the result of counting the number of paper feed dot lines is greater than or equal to the minimum count number NMinGap and less than the maximum count number NMaxGap.
[0069] (Step S14-3) In the printer device 8, the determination unit 5-9 determines that noise has been detected when it determines that the result of counting the number of paper feed dot lines is not included in the range of the minimum count number NMinGap to the maximum count number NMaxGap. In other words, in this case, the determination unit 5-9 determines that a fluttering portion of the paper has been detected. (Step S15-3) In the printer device 8, the determination unit 5-9 determines that a gap G has been detected when it determines that the result of counting the number of paper feed dot lines is greater than or equal to the minimum count value NMinGap and less than the maximum count value NMaxGap. (Step S16-3) In the printer device 8, the determination unit 5-9 sets the number of paper feed dot lines to zero, turns off the rising edge detection flag, and then ends the falling edge detection process.
[0070] The printing system 1 of this embodiment is equipped with a transport control unit 5-6 that controls the transport unit serving as a platen roller 51 that transports recording paper P (paper) having peelable label portions P1 formed at predetermined intervals on its printing surface, a sensor 81 that irradiates light onto the paper transported by the transport unit and detects the reflected light of the irradiated light, a detection unit 5-7 that detects the output of the sensor 81, a change amount calculation unit 5-8 that calculates the amount of change in voltage based on the output of the sensor 81 detected by the detection unit 5-7, and a judgment unit 5-9 that judges that a portion between adjacent label portions P1 (gap portion G) has been detected based on the amount of change in voltage calculated by the change amount calculation unit 5-8. By configuring in this manner, the printing system 1 calculates the amount of voltage change based on the reflected light of light irradiated onto the paper, and can detect the portion (gap portion G) between adjacent label portions P1 based on the calculated amount of voltage change, thereby reducing erroneous detection of the portion (gap portion G) between label portions P1 of the paper on which the label portion P1 is formed. One of the causes of erroneous detection of the portion (gap portion G) between the label portions P1 of the paper is erroneous detection by the sensor due to fluttering of the paper. In order to reduce erroneous detection by the sensor due to fluttering of the paper, the sensor can be made larger. However, if the printing system 1 is applied to a small-sized printer, it is difficult to reduce the size of the sensor. In this embodiment, the portion (gap portion G) between adjacent label portions P1 can be detected based on the amount of change in voltage, so that erroneous detection of the portion (gap portion G) between the label portions P1 of the paper can be reduced without making the sensor larger. Also, the change amount calculation unit 5-8 calculates the difference between the voltage value before the predetermined dot line. By configuring in this way, the change amount of the voltage can be calculated. An example of the predetermined dot line is 3 dots to 7 dots. Furthermore, when a period during which the amount of change in voltage continues to be equal to or greater than a predetermined threshold (rising voltage threshold) satisfies a predetermined condition (consecutively exceeding the dot line count threshold NPrThr), the judgment unit 5-9 judges that detection of the portion between adjacent labels P1 has started during that period. By configuring in this way, it is possible to detect the rise of the amount of change in voltage, and therefore to judge that detection of the portion between adjacent labels P1 has started.
[0071] Furthermore, after judging that the portion between adjacent label parts P1 has been detected, if the period during which the amount of change in voltage continues to be equal to or less than a predetermined threshold (falling voltage threshold) satisfies a predetermined condition (not continuously exceeding the minimum dot line number threshold NMinThr), the judgment unit 5-9 judges that detection of the portion between adjacent label parts P1 during that period has ended. By configuring in this way, it is possible to detect the falling edge of the amount of change in voltage, and therefore to judge that detection of the portion between adjacent label parts P1 has ended. Furthermore, the determination unit 5-9 determines that the portion between adjacent labels P1 has been detected if the number of dots by which the paper has been transported from when it is determined that detection of the portion between adjacent labels P1 has started until it is determined that detection has ended is within a predetermined range (greater than or equal to the minimum count number NMinGap and less than the maximum count number NMaxGap). By configuring in this way, it is possible to determine whether or not the gap G has been detected based on the number of dots by which the paper has been transported from when it is determined that detection of the portion between adjacent labels P1 has started until it is determined that detection has ended and the predetermined range.
[0072] Furthermore, the determination unit 5-9 determines that the paper is fluttering if the number of dots by which the paper is transported from when it is determined that detection of the portion between adjacent labels P1 has started until it is determined that detection has ended is not within a predetermined range (greater than or equal to the minimum count number NMinGap and less than the maximum count number NMaxGap).By configuring in this way, it is possible to determine whether or not a fluttering portion has been detected based on the number of dots by which the paper is transported from when it is determined that detection of the portion between adjacent labels P1 has started until it is determined that detection has ended, and on the predetermined range. FIG. 17 is a diagram showing an example of the output of the sensor. In FIG. 17, the horizontal axis is the distance [mm] from PI, and the vertical axis is the voltage [V]. FIG. 17 shows a voltage calculated based on the reflected light of the light irradiated to the platen, a voltage calculated based on the reflected light of the light irradiated to the mount (release paper), and a voltage calculated based on the reflected light of the light irradiated to the label part P1. FIG. 17 also shows a range FR in which the label part P1 flutters. The voltage calculated based on the reflected light of the light irradiated to the mount (release paper) corresponds to the voltage calculated based on the reflected light of the light irradiated to the gap part G. According to FIG. 17, it can be seen that the potential difference caused by the fluttering of the label part P1 is larger than the difference between the voltage corresponding to the label part P1 and the voltage corresponding to the gap part G. In this embodiment, even if the potential difference caused by the fluttering of the label part P1 is larger than the difference between the voltage corresponding to the label part P1 and the voltage corresponding to the gap part G, it is possible to determine whether or not the fluttering part has been detected. A sensor that is strong at detecting paper fluttering would be large in size. In this embodiment, a small sensor can be used, allowing the product to be made smaller. As a result, in printing systems such as small line thermal printers, the label portion P1 can be detected without increasing the product size. Furthermore, the determination unit 5-9 determines that there is no paper if, after it has determined that detection of the portion between adjacent labels P1 has started, the period during which the amount of change in voltage continues to be equal to or less than a predetermined threshold (falling voltage threshold) satisfies a predetermined condition (paper feed dot line number threshold NNoPap: no falling is detected even when paper is fed). By configuring in this way, it can be determined that there is no paper based on the number of dots that the paper has been transported since it was determined that detection of the portion between adjacent labels P1 has started and on the predetermined condition.
[0073] (Modification of the embodiment) (Printing System) An example of the configuration of a printing system 1a according to a modification of the embodiment can be applied to the printing system 1a shown in Fig. 1. However, a determination unit 5a-9 is provided instead of the determination unit 5-9. In the printing system 1a, the determination unit 5a-9 can be the determination unit 5-9. However, the determination unit 5a-9 determines whether or not to disable the process of detecting the gap G based on the voltage waveform acquired by the detection unit 5-7. Fig. 18 is a diagram showing the operation of a printing system according to a modified example of the embodiment. Fig. 18 shows a portion of the recording paper P for which the printing system 1a performs a determination of the gap portion G, and a portion of the recording paper P for which the printing system 1a does not perform a determination of the gap portion G. The printing system 1a performs a determination of the gap portion G for the portion assumed to be the gap portion G, and does not perform a determination of the gap portion G for the portion assumed to be the label portion P1. In the printing system 1a, the determination unit 5a-9 determines whether the detection unit 5-7 has detected the gap G. When the determination unit 5a-9 determines that the detection unit 5-7 has detected the gap G, the determination unit 5a-9 determines whether the count number for detecting the gap G is equal to or greater than the threshold NGapEna for the count number for detecting the gap G. When the count number for detecting the gap G is equal to or greater than the threshold NGapEna for the count number for detecting the gap G, the determination unit 5a-9 determines whether the detection unit 5-7 has detected the label part P1. When the determination unit 5a-9 determines that the detection unit 5-7 has detected the label part P1, the determination unit 5a-9 counts up the count number indicating the length after detecting the gap G. Based on the result of counting up the count number indicating the length after detecting the gap G, the determination unit 5a-9 determines whether to disable the process of detecting the gap G.
[0074] (Printing system operation) Fig. 19 is a flow diagram showing a first example of the operation of a printing system according to a modified embodiment of the present invention. Fig. 19 mainly shows a process performed by the printer device 8 of the printing system 1a to determine whether or not the gap G has been detected. (Step S1-4) In the printer device 8, the detection unit 5-7 detects the voltage value output by the sensor 81 based on the detection result of the reflected light, and obtains a voltage waveform based on the detection result of the voltage value output by the sensor 81. The change amount calculation unit 5-8 calculates the amount of change in voltage based on the voltage waveform obtained by the detection unit 5-7. The judgment unit 5a-9 judges whether or not this is the first gap judgment based on the change amount waveform obtained by the change amount calculation unit 5-8. (Step S2-4) In the printer device 8, when the determining unit 5a-9 determines that this is the first gap determination, it sets the number of paper feed dot lines to zero and turns off the rising edge detection flag. (Step S3-4) In the printer device 8, the determination section 5a-9 executes a process for limiting the determination of the gap portion G (hereinafter, referred to as "gap determination limiting process"). (Step S4-4) In the printer device 8, the determination unit 5a-9 determines whether or not the detection of the gap portion G is valid. If it is determined that the detection of the gap portion G is not valid, the process ends. (Step S5-4) In the printer device 8, when the judgment unit 5a-7 judges that the detection of the gap portion G is valid, the change amount calculation unit 5-8 calculates the amount of change in voltage based on the voltage waveform acquired by the detection unit 5-7. (Step S6-4) In the printer device 8, the determination section 5a-9 performs the rising edge detection process described with reference to FIG.
[0075] (Step S7-4) In the printer device 8, the determination section 5a-9 determines whether or not a rising edge has been detected. (Step S8-4) In the printer device 8, when the determination unit 5a-9 detects a rising edge, it sets a rising edge detection flag to ON. (Step S9-4) In the printer device 8, when a rising edge is not detected or when the rising edge detection flag is set to ON, the determination unit 5a-9 determines whether the rising edge detection flag is ON or not. If the rising edge detection flag is not ON, the process ends. (Step S10-4) In the printer device 8, the determination unit 5a-9 counts up the number of paper feed dot lines when the rising edge detection flag is ON.
[0076] (Step S11-4) In the printer device 8, the determination unit 5a-9 determines whether or not the number of paper feed dot lines is equal to or greater than the paper feed dot line number threshold value NNoPap dots. (Step S12-4) In the printer device 8, the determination unit 5a-9 determines that there is no paper when the number of paper feed dot lines is equal to or greater than the paper feed dot line number threshold NNoPap dots. (Step S13-4) In the printer device 8, when the number of paper-feeding dot lines is less than the paper-feeding dot line number threshold NNoPap dots, the determination unit 5a-9 performs the trailing edge detection process described with reference to FIG. (Step S14-4) In the printer device 8, the determination unit 5a-9 determines whether or not a falling edge has been detected. If a falling edge has not been detected, the process ends.
[0077] (Step S15-4) In the printer device 8, when a falling edge is detected, the determining unit 5a-9 determines whether the result of counting the number of paper-feeding dot lines is equal to or greater than the minimum count value NMinGap and less than the maximum count value NMaxGap. (Step S16-4) In the printer device 8, the determination unit 5a-9 determines that the count of the number of paper feed dot lines is noise when it is determined that the count is not equal to or greater than the minimum count value NMinGap and not less than the maximum count value NMaxGap. In other words, in this case, the determination unit 5a-9 determines that a fluttering portion of the paper has been detected. (Step S17-4) In the printer device 8, the determining unit 5a-9 determines that a gap G has been detected when it determines that the result of counting the number of paper-feeding dot lines is equal to or greater than the minimum count value NMinGap and less than the maximum count value NMaxGap. (Step S18-4) In the printer device 8, the determination unit 5a-9 sets the number of paper feed dot lines to zero, and turns off the rising edge detection flag.
[0078] Fig. 20 is a flow diagram showing a second example of the operation of a printing system according to a modified embodiment of the present invention. Fig. 20 mainly shows the gap determination and restriction process performed by the printer device 8 of the printing system 1a. (Step S1-5) In the printer device 8, the detection unit 5-7 detects the voltage value output by the sensor 81 based on the detection result of the reflected light, and obtains a voltage waveform based on the detection result of the voltage value output by the sensor 81. The change amount calculation unit 5-8 calculates the amount of change in voltage based on the voltage waveform obtained by the detection unit 5-7. The determination unit 5a-9 determines whether or not the determination is for the first gap portion G based on the change amount waveform obtained by the change amount calculation unit 5-8. (Step S2-5) In the printer device 8, the judgment unit 5a-9 sets the count number indicating the length after detecting the gap portion G to zero, sets the count number indicating the length of the label portion P1 to zero, and sets the count number indicating the length of the gap portion G to zero. (Step S3-5) In the printer device 8, the determination unit 5a-9 determines whether the count number for detecting the gap portion G is equal to or greater than a threshold value NGapEna of the count number for detecting the gap portion G. (Step S4-5) In the printer device 8, when the determination unit 5a-9 determines that the count number for detecting the gap portion G is less than the threshold count number NGapEna for detecting the gap portion G, it determines whether or not the label portion P1 has been detected. (Step S5-5) In the printer device 8, when the determination unit 5a-9 determines that the label portion P1 has not been detected, it determines whether or not the gap portion G has been detected.
[0079] (Step S6-5) In the printer device 8, when it is determined in step S4-5 that the label portion P1 has been detected, or when it is determined in step S5-5 that the gap portion G has been detected, the judgment unit 5a-9 determines whether or not the state has changed from the previous dot line. (Step S7-5) In the printer device 8, the determination unit 5a-9 counts up the count number indicating the length of the label part P1 if the state has not changed from the previous dot line. (Step S8-5) In the printer device 8, when the state of the current dot line has changed from that of the previous dot line, the determination unit 5a-9 stores the count number indicating the length of the gap portion G in the storage unit 5-2. (Step S9-5) In the printer device 8, the determination unit 5a-9 sets the count number indicating the length of the label portion P1 to zero, and sets the count number indicating the length of the gap portion G to zero. (Step S10-5) In the printer device 8, the determination unit 5a-9 determines that the process of detecting the gap portion G is enabled.
[0080] (Step S11-5) In the printer device 8, the determination unit 5a-9 determines whether or not the label part P1 has been detected if it determines that the count number for detecting the gap part G is equal to or greater than the threshold count number NGapEna for detecting the gap part G. If it determines that the label part P1 has not been detected, the process proceeds to step S10-5. (Step S12-5) In the printer device 8, when the determination unit 5a-9 determines that the label portion P1 has been detected, it counts up a count number indicating the length after the gap portion G has been detected. (Step S13-5) In the printer device 8, the determination unit 5a-9 determines whether the count number indicating the length after detecting the gap portion G is equal to or less than 80% of the label length. If the count number indicating the length after detecting the gap portion G is greater than 80% of the label length, the process proceeds to step S10-5. (Step S14-5) In the printer device 8, the determining unit 5a-9 determines that the process of detecting the gap portion G is invalid when the count number indicating the length after detecting the gap portion G is 80% or less of the label length.
[0081] According to a printing system 1a relating to a modified embodiment, in the printing system 1 described above, the determination unit 5a-9 determines whether or not the detection unit 5-7 has detected the label portion P1 based on the number of dots by which the paper has been transported since detecting the portion between the label portions P1, and determines whether or not to disable the process of detecting the portion between the label portions P1 based on the determination result of whether or not the detection unit 5-7 has detected the label portion P1. With this configuration, when it is determined that the detection unit 5-7 has detected the label P1, the process of detecting the gaps between the label P1 can be disabled, thereby reducing power consumption compared to when the process of detecting the gaps between the label P1 is always running. Also, by limiting the range in which it is determined that the gap G has been detected, it is possible to further reduce false detections caused by paper flapping.
[0082] In addition, all or part of the functions of each unit of the host terminal 2 and the printer device 8 in the above-mentioned embodiment may be realized by recording a program for realizing these functions on a computer-readable recording medium, and reading and executing the program recorded on the recording medium into a computer system. Note that the "computer system" referred to here includes hardware such as the OS and peripheral devices.
[0083] In addition, the term "computer-readable recording medium" refers to portable media such as flexible disks, optical magnetic disks, ROMs, and CD-ROMs, and storage units such as hard disks built into computer systems. Furthermore, the term "computer-readable recording medium" may also include those that dynamically hold a program for a short period of time, such as a communication line when transmitting a program via a network such as the Internet or a communication line such as a telephone line, and those that hold a program for a certain period of time, such as a volatile memory inside a computer system that serves as a server or client in such cases. Furthermore, the above program may be one that realizes part of the above-mentioned functions, or may be one that can realize the above-mentioned functions in combination with a program already recorded in the computer system.
[0084] The above describes the form for carrying out the present invention using an embodiment, but the present invention is not limited to such an embodiment, and various modifications and substitutions can be made within the scope that does not deviate from the gist of the present invention. [Explanation of symbols]
[0085] 1, 1a...printing system, 2...host terminal, 2-1...communication unit, 2-2...storage unit, 2-3...operation unit, 2-4...information processing unit, 2-5...display unit, 3...casing, 3a...discharge port, 4...display unit, 5...processing unit, 5-1...communication unit, 5-2...storage unit, 5-3...command analysis unit, 5-4...print data creation unit, 5-5...printing unit control unit, 5-6...transport control unit, 5-7...detection unit, 5-8...change amount calculation unit, 5-9, 5a-9...determination unit, 6...main body unit, 7...roll paper storage unit , 8... printer device, 9... mechanism section, 10... printing unit, 11... main body frame, 12... back plate section, 13... first side wall section, 13a... hole section, 14... second side wall section, 14a... hole section, 16A... first roller insertion groove, 16B... second roller insertion groove, 17... gear box section, 18... peripheral wall section, 18a... hole section, 19... recess, 20... paper guide section, 20a... mounting section, 20b... through hole, 21... guide slope, 22... opening section, 22a... inner wall surface, 23... clamping section, 24... engaged section, 41...thermal head, 41a...head surface, 42...heating element, 45...head support, 45a...stopper, 46...elastic member, 51...platen roller, 52...roller shaft, 53...roller body, 54...bearing, 56...driven gear, 61...motor, 61a...circumferential surface, 61A...output shaft, 65...first reduction gear, 66...second reduction gear, 67...first rotating shaft, 68...second rotating shaft, 71...flexible printed circuit board, 72...head connection portion, 73...motor connection portion, 74... Sensor connection portion, 74a...band portion, 74b...notch portion, 81...sensor, 91...sensor holder, 92...base portion, 92a...rib, 93A...first inclined portion, 93B...second inclined portion, 94...engagement portion, 95...shoulder portion, 96...recess, 100...printing area, 101...tangent line, A...arrow, IC...driver, L1...up-down direction, L2...left-right direction, L3...front-rear direction, P...recording paper, P1...label, P2...liner, P3...release paper, R...roll paper, S...space, θ1...angle, θ2...angle
Claims
1. a conveyance control unit that controls a conveyance unit that conveys paper on which labels are formed at predetermined intervals on a printing surface; a sensor that irradiates light onto the paper being transported by the transport unit and detects reflected light of the irradiated light; A detection unit that detects an output of the sensor; a change amount calculation unit that calculates a change amount of a voltage based on the output of the sensor detected by the detection unit; a determination unit that determines, based on the amount of change in voltage calculated by the change amount calculation unit, that a portion between adjacent label units has been detected; A printing system comprising:
2. The printing system according to claim 1 , wherein the change amount calculation unit calculates a difference between a voltage value before a predetermined dot line.
3. 3. The printing system according to claim 1, wherein the determination unit determines that detection of the portion between adjacent labels has started during a period during which the amount of change in voltage continues to be equal to or greater than a predetermined threshold and satisfies a predetermined condition.
4. 4. The printing system according to claim 3, wherein the determination unit determines that detection of the portion between adjacent label units has been completed during a period during which the amount of change in voltage continues to be equal to or less than a predetermined threshold value, if a predetermined condition is satisfied, after the determination unit has determined that the portion between adjacent label units has been detected.
5. 5. The printing system according to claim 1 , wherein the determination unit determines that the portion between adjacent labels has been detected if a number of dots of the paper transported from when it determines that detection of the portion between adjacent labels has started until it determines that detection has ended is within a predetermined range.
6. 6. The printing system according to claim 1, wherein the determination unit determines that the paper is flapping when a number of dots of the paper transported from when it determines that detection of the portion between adjacent label parts has started to when it determines that detection has ended is not within a predetermined range.
7. 7. The printing system according to claim 1 , wherein the determination unit determines that there is no paper if, after determining that detection of the portion between adjacent labels has started, a period during which the amount of change in voltage continues to be equal to or less than a predetermined threshold value satisfies a predetermined condition.
8. 8. The printing system according to claim 1 , wherein the determination unit determines whether or not the detection unit has detected a label portion based on the number of dots by which the paper has been transported since detecting the portion between the label portions, and determines whether or not to disable processing to detect the portion between the label portions based on a determination result of whether the detection unit has detected the label portion.
9. A detection method implemented by a printing system, comprising: controlling a conveying unit that conveys paper on which labels are formed at predetermined intervals on a printing surface; a step in which a sensor irradiates light onto the paper being transported by the transport unit and detects reflected light of the irradiated light; detecting an output of the sensor; calculating an amount of change in voltage based on the output of the sensor detected in the detecting step; determining that a portion between adjacent label portions has been detected based on the amount of change in voltage calculated in the step of calculating the amount of change in voltage; The detection method comprising:
10. On the printing system computer, controlling a conveying unit that conveys paper on which labels are formed at predetermined intervals on a printing surface; a step of irradiating light onto the paper being transported by the transport unit and detecting an output of a sensor that detects reflected light of the irradiated light; calculating an amount of change in voltage based on the output of the sensor detected in the detecting step; determining that a portion between adjacent label portions has been detected based on the amount of change in voltage calculated in the step of calculating the amount of change in voltage; A computer program that executes the following:
Citation Information
Patent Citations
Label position detector for label printer
JP1989171968A
Measuring method of label with release paper, measuring device thereof and label printer
JP2006030092A
Detection device, printer, and detection method
JP2017132087A
