This application claims priority under 35 U.S.C. § 119 to Japanese Patent Application No. 2017-165608 filed on Aug. 30, 2017, the entire disclosure of which is expressly incorporated by reference herein.
The present invention relates to a printing apparatus and a method of controlling a printing apparatus.
In the past, a technique of performing detection on a medium such as detection of presence or absence of a medium and detection of a mark attached to a medium and the like by an optical sensor is known (for example, refer to JP-A-2-228526). In JP-A-2-228526, a technique is disclosed in which, when an average of detection voltages of an optical sensor increases due to disturbance light, the average of detection voltages is reduced with differential amplification by negative feedback of an operational amplifier, and the increase in the average of detection voltages due to the disturbance light is canceled to prevent an influence of disturbance light.
JP-A-2-228526 is based on assumption that, because the average of detection voltages is used, the average of detection voltages of the optical sensor differs depending on presence or absence of the disturbance light, while the average of detection voltages does not differ in detection on a medium. For this reason, in JP-A-2-228526, although it is possible to prevent the influence of disturbance light, it is difficult to accurately perform the detection on a medium using a detection voltage.
An advantage of some aspects of the invention is to be capable of accurately performing detection on a medium while preventing an influence of disturbance light.
A printing apparatus according to a working example of the invention includes a transport mechanism for transporting a medium, an optical sensor, a high-pass filter circuit to which a detection voltage of the optical sensor is inputted, and a control circuit that drives the optical sensor at a predetermined cycle and compares an output voltage outputted from the high-pass filter circuit with a predetermined threshold value to determine presence or absence of the medium.
According to the working example of the invention, a detection voltage, effective for determination, of the optical sensor driven at the predetermined cycle capable of passing through the high-pass filter circuit has a high frequency and is capable of passing through the high-pass filter circuit, and disturbance light or the like that adversely affects to the determination has a lower frequency than a frequency capable of passing through the high-pass filter circuit and is not capable of passing through, thus the detection on a medium may be accurately performed while preventing the influence of disturbance light by comparing a detection voltage that has passed with the predetermined threshold value and determining presence or absence of the medium or a mark when the mark is attached to the medium.
Further, a working example of the invention includes an impedance conversion circuit between the high-pass filter circuit and the control circuit.
According to the working example of the invention, since the impedance conversion circuit is included between the high-pass filter circuit and the control circuit, deterioration in noise resistance of a detection voltage that has passed through the high-pass filter circuit may be prevented, and the detection on a medium may be accurately performed.
Further, a working example of the invention includes a voltage stabilizing circuit on an input side of the impedance conversion circuit.
According to the working example of the invention, since the voltage stabilizing circuit is included on the input side of the impedance conversion circuit, it is possible to prevent a detection voltage from being changed due to generation of a leakage current from the input side, and thus it is possible to accurately perform the detection on a medium.
In addition, a working example of the invention includes an amplifier circuit between the impedance conversion circuit and the control circuit.
According to the working example of the invention, since the amplifier circuit is included between the impedance conversion circuit and the control circuit, change in a detection voltage may be made remarkable in the detection on a medium, and the detection on a medium may be performed more accurately.
Further, in a working example of the invention, the medium is a label sheet that is formed by attaching labels to a mount at a predetermined interval, and the control circuit compares the output voltage outputted from the high-pass filter circuit with the predetermined threshold value to determine presence or absence of the label on the mount.
According to the working example of the invention, since the presence or absence of the label on the mount is determined by comparing the detection voltage that has passed through the high-pass filter circuit with the predetermined threshold value, the presence or absence of the label attached to the mount may be accurately detected while preventing the influence of disturbance light.
In addition, according to a working example of the invention, the control circuit compares the output voltage outputted from the high-pass filter circuit with the predetermined threshold value, detects presence or absence of the medium, and controls transport of the medium by the transport mechanism.
According to the working example of the invention, by comparing the detection voltage that has passed through the high-pass filter circuit with the predetermined threshold value to determine presence or absence of a medium such as a roll paper, it is possible to accurately detect the presence or absence of the medium while preventing the influence of disturbance light, thereby accurately controlling the transport of the medium.
Further, a working example of the invention is a method for controlling a printing apparatus including a transport mechanism for transporting a medium, drives an optical sensor at a predetermined cycle, inputs a detection voltage of the optical sensor to a high-pass filter circuit, and compares an output voltage outputted from the high-pass filter circuit with a predetermined threshold value to determine presence or absence of the medium.
According to the working example of the invention, since the optical sensor is driven at the predetermined cycle capable of passing through the high-pass filter circuit, the detection voltage that has passed through the high-pass filter circuit is compared with the predetermined threshold value, and the presence or absence of the medium or a mark, when the mark is attached to the medium, is determined, thus the detection on a medium may be accurately performed while preventing the influence of disturbance light.
The invention will be described with reference to the accompanying drawings, wherein like numbers reference like elements.
In the following description with reference to FIG. 1, in each direction indicated by an arrow, a direction toward a left in the figure is defined as “forward”, a direction toward a right in the figure is defined as “backward”, a direction toward a top in the figure is defined as “upward”, and a direction toward a bottom in the figure is defined as “downward”.
The printing apparatus 1 is a serial ink jet printer, and prints on a print medium (medium) by ejecting ink from an ink jet head 10 configured as a serial head. A mark is attached to the print medium of the embodiment. The mark indicates a sign of a predetermined position attached to the print medium, and also includes a label LB (see
As the print medium, the printing apparatus 1 contains a roll paper R that is a rolled label sheet LS (see
Here, with reference to
The label sheet LS includes the long mount DS, and the labels LB attached in a row at a predetermined interval on a surface of the mount DS. A gap G having a constant width is provided between the adjacent labels LB. In the following description, a portion of the label sheet LS on which only the mount DS exists is represented as a mount portion DSa, and a portion that is formed by superimposing the label LB on the mount DS is represented as a label portion LBa.
Note that the mount DS is a release paper that is formed by processing a material such as a resin film or a synthetic paper into a long continuous paper shape having a constant width. The label LB is a label seal made of an opaque material such as white, and a surface of the label LB is subjected to surface processing suitable for a printing method (ink jet type in the embodiment), and a back surface of the label LB is subjected to adhesive processing. Various materials, thicknesses, colors, and the like, are adopted for the mount DS and the label LB depending on an application.
As shown in
A roll support section 12 is fitted into the cylindrical core member Ra provided at a central portion of the roll body RB in the paper containing section 11. The roll support section 12 holds the roll body RB via the core member Ra. The roll support section 12 is connected to a motor shaft of a delivery motor 111, which will be described later, via a power transmission mechanism, and rotates in accordance with drive of the delivery motor 111. Thus, in conjunction with rotation of the roll support section 12 in a rotation direction KH, the roll body RB rotates and the transport roll paper RH is delivered from the roll body RB. Thus, transport force to the transport roll paper RH by a transport roller 18 and a driven roller 19 is assisted.
As shown in
As shown in
In the transport path 13, the transport roller 18 is provided on the downstream side in the transport direction H of the label detection sensor 71, and the driven roller 19 is provided at a position corresponding to the transport roller 18. The transport roll paper RH is pinched between the transport roller 18 and the driven roller 19, and is transported in the transport direction H in accordance with rotation of the transport roller 18. The transport roller 18 is connected to a motor shaft of a transport motor 112 (see
In the transport path 13, a printing unit (printing mechanism) 20 is provided on the downstream side in the transport direction H of the transport roller 18. The printing unit 20 includes a carriage 21 and the ink jet head 10 mounted on the carriage 21. The carriage 21 is supported by a carriage shaft 21a extending in a scanning direction intersecting with the transport direction H, and scans the ink jet head 10 in the scanning direction along the carriage shaft 21a. The ink jet head 10 includes nozzle rows of a plurality of colors (e.g., four colors of cyan (C), yellow (Y), magenta (M), and black (K)). The ink jet head 10 ejects ink supplied from an ink cartridge from the nozzles provided in each nozzle row to form dots on the transport roll paper RH (more specifically, the label LB) to print characters, images, and the like.
As shown in
The first slack detection sensor 23 (optical sensor) is an optic type sensor, and outputs different detection voltages to the SOC 110 (see
The printing apparatus 1 includes a logic section 100 (logic circuit), a transport section 101 (transport mechanism), a printing section 102 (printing mechanism), a roll paper detection section 103 (roll paper detection circuit), and a label detection section 104 (label detection circuit).
The logic section 100 (logic circuit) includes the SOC 110 and a memory 120.
The SOC 110 is an integrated circuit that controls each section of the printing apparatus 1. The SOC 110 includes a CPU (processor, controller), or the like as an operation execution circuit. A ROM constituting the memory 120 is connected to the SOC 110, and the ROM stores a control program such as firmware executable by the CPU and data related to the control program in a nonvolatile manner. The SOC 110 reads and executes the control program stored in the ROM and controls transport of the roll paper R by the transport section 101 and an operation of printing by the printing section 102 through cooperation of hardware and software, and controls each section of the printing apparatus 1. Further, the SOC 110, by executing the control program stored in the ROM, determines the presence or absence of the transport roll paper RH at the detection position T1 and the detection position T2 (i.e., presence or absence of the roll paper R). Further, the SOC 110 determines the presence or absence of the label LB at the detection position P by executing the control program stored in the ROM.
The memory 120 includes a semiconductor memory element such as an EEPROM, a flash memory or the like, or a storage medium such as a hard disk, and stores various data in a nonvolatile and rewritable manner. Further, the memory 120 stores a medium determination threshold value (predetermined threshold value) for determining the presence or absence of the transport roll paper RH at the detection position T1 and the detection position T2. Further, the memory 120 stores a label determination threshold value (predetermined threshold value) for determining the presence or absence of the label LB at the detection position P.
A mechanism of the printing apparatus 1 is configured with the transport section 101 and the printing section 102. The transport section 101 includes as a mechanism for transporting the roll paper R (transport mechanism), the delivery motor 111, a power transmission mechanism for transmitting power of the delivery motor 111 to the roll support section 12, and a motor driver for driving the delivery motor 111. In accordance with control of the SOC 110, the transport section 101 drives the delivery motor 111 to drive and rotate the roll support section 12 and the core member Ra held by the roll support section 12, and delivers the transport roll paper RH from the roll body RB. Further, the transport section 101 includes as a configuration for transporting the roll paper R, the transport motor 112, a power transmission mechanism for transmitting power of the transport motor 112 to transport roller 18, and a motor driver for driving the transport motor 112. Under control of the SOC 110, the transport section 101 drives the transport motor 112 to rotate the transport roller 18 and transports the transport roll paper RH delivered from the roll body RB.
The printing section 102 includes a mechanism for printing (printing mechanism) such as the ink jet head 10, or the carriage 21, and under control of the SOC 110, forms, by the ink jet head 10, dots on the transport roll paper RH transported by the transport section 101, and prints characters, images, and the like.
The roll paper detection section 103 (roll paper detection circuit) includes the first slack detection sensor 23, a first processing circuit 113, and an A/D (Analog/Digital) converter (hereinafter, referred to as “ADC”) 133. The first slack detection sensor 23 is driven at a predetermined cycle under control of the SOC 110, and inputs an analog detection voltage corresponding to the presence or absence of the transport roll paper RH at the detection position T1 to the first processing circuit 113. Here, a term “drive” refers to at least one of “turn on” and “turn off”. The first processing circuit 113 performs processing to be described later on the inputted analog detection voltage, and inputs the processed detection voltage to the ADC 133. The ADC 133 converts the analog detection voltage processed by the first processing circuit 113 to a digital detection voltage and inputs to the SOC 110.
Further, the roll paper detection section 103 includes the second slack detection sensor 24, a second processing circuit 123, and an ADC 143. The second slack detection sensor 24 is driven at a predetermined cycle under control of the SOC 110, and inputs an analog detection voltage corresponding to the presence or absence of the transport roll paper RH at the detection position T2 to the second processing circuit 123. The second processing circuit 123 performs processing to be described later on the inputted analog detection voltage, and inputs the processed detection voltage to the ADC 143. The ADC 143 converts the analog detection voltage processed by the second processing circuit 123 to a digital detection voltage and inputs to the SOC 110.
The label detection section 104 (label detection circuit) includes the label detection sensor 71, a third processing circuit 114, and an ADC 124. The label detection sensor 71 is driven at a predetermined cycle under control of the SOC 110, and inputs an analog detection voltage corresponding to the presence or absence of the label LB at the detection position P to the third processing circuit 114. The third processing circuit 114 performs processing, for example, amplification, filtering, and the like on the inputted analog detection voltage, and inputs the processed detection voltage to the ADC 124. The ADC 124 converts the analog detection voltage processed by the third processing circuit 114 to a digital detection voltage and inputs to the SOC 110.
Next, processing of the SOC 110 (see
When a state of the printing apparatus 1 is a state shown in
The SOC 110, in order to maintain a state in which the lowermost position U1 is positioned vertically lower than the detection position T1 and is positioned vertically higher than the detection position T2, controls the delivery motor 111 of the transport section 101, adjusts a rotation amount of the roll support section 12, and adjusts an amount of delivery of the transport roll paper RH delivered from the roll body RB. In other words, when the SOC 110 determines that the transport roll paper RH is absent at the detection position T1 using the first slack detection sensor 23, the SOC 110 controls the delivery motor 111 of the transport section 101 to rotate the roll support section 12 in the rotation direction KH. Further, when the SOC 110 determines that the transport roll paper RH is present at the detection position T2 using the second slack detection sensor 24, the SOC 110 controls the delivery motor 111 of the transport section 101 to rotate the roll support section 12 in a reverse direction of the rotation direction KH.
When the lowermost position U1 is positioned below the detection position T1 and is positioned above the detection position T2, a slack occurs in the transport roll paper RH as shown in
Thus, the SOC 110 causes the slack in the transport roll paper RH based on the detection voltages inputted from the first slack detection sensor 23 and the second slack detection sensor 24. In the embodiment, the roll paper detection section 103 (particularly, the first processing circuit 113 and the second processing circuit 123) has the following configuration so that the presence or absence of the transport roll paper RH can be accurately detected by the first slack detection sensor 23 and the second slack detection sensor 24.
In the embodiment, the first slack detection sensor 23 and the second slack detection sensor 24 included in the roll paper detection section 103 have the same configuration. Further, the first processing circuit 113 and the second processing circuit 123 included in the roll paper detection section 103 have the same configuration. Therefore, in a description of
The first slack detection sensor 23 includes a light emitting sensor 23a and a light receiving sensor 23b.
The light emitting sensor 23a includes a photodiode PD and a transistor Q1 configured with an npn-type bipolar transistor. A collector of the transistor Q1 is connected to a cathode of the photodiode PD, and an emitter of the transistor Q1 is grounded. In other words, the photodiode PD and the transistor Q1 are connected in series.
When a signal having a voltage level of a “High” level is inputted to a base, the transistor Q1 performs an ON operation. In addition, the transistor Q1 performs an OFF operation when a signal having a voltage level of a “Low” level is inputted to the base. The ON operation refers to an operation of bringing the collector and the emitter of the transistor Q1 into a conductive state, and the OFF operation refers to an operation of bringing the collector and the emitter of the transistor Q1 into a disconnected state.
When the transistor Q1 is turned on, a current flows into the photodiode PD, and the photodiode PD is turned on. On the other hand, when the transistor Q1 is turned off, the photodiode PD is turned off.
The SOC 110 inputs a signal for turning on or off the transistor Q1 to the base of the transistor Q1. In other words, the SOC 110 turns on the photodiode PD by inputting a signal of the “High” level to the base of the transistor Q1. Further, the SOC 110 turns off the photodiode PD by inputting a signal of the “Low” level to the base of the transistor Q1. The SOC 110 turns on and off the photodiode PD at a predetermined cycle by inputting signals in which a voltage level alternates between the “High” level and the “Low” level at the predetermined cycle to the base of the transistor Q1.
The light receiving sensor 23b includes a phototransistor PQ and a variable resistor KR. An emitter of the phototransistor PQ and one end of the variable resistor KR are connected to a node P1. The other end of the variable resistor KR is grounded. In other words, the phototransistor PQ and the variable resistor KR are connected in series.
The phototransistor PQ receives light emitted from the photodiode PD and outputs a current corresponding to a received light amount (hereinafter, referred to as “received light current”). When the received light current flows into the variable resistor KR, a voltage corresponding to the received light current is generated at the node P1. At the detection position T1, the received light amount by the phototransistor PQ differs depending on the presence and absence of the transport roll paper RH. Therefore, the voltage corresponding to the received light current generated at the node P1 differs depending on the presence and absence of the transport roll paper RH at the detection position T1. Accordingly, the voltage generated at the node P1 corresponds to a detection voltage corresponding to the presence or absence of the transport roll paper RH at the detection position T1. The detection voltage generated at the node P1 is inputted to the first processing circuit 113.
The first processing circuit 113 includes a high-pass filter circuit 201, an impedance conversion circuit 202, and a voltage stabilizing circuit 203.
The high-pass filter circuit 201 is a filter circuit that restricts passage of a predetermined low-frequency component, and is configured with a capacitor C1 and a resistor R1. One end of the capacitor C1 is connected to the node P1 of the light receiving sensor 23b of the first slack detection sensor 23, and the other end thereof is connected to one end of the resistor R1 at a node P2. The one end of the resistor R1 is connected to the node P2, and the other end thereof is connected to a node P3 of the voltage stabilizing circuit 203.
The high-pass filter circuit 201, configured with the resistor R1 and the capacitor C1, defines based on a resistance value of the resistor R1 and capacitance of the capacitor C1, a predetermined range of frequencies for which passage is restricted. In other words, the high-pass filter circuit 201, configured with the resistor R1 and the capacitor C1, restricts passage of a component having a frequency equal to or lower than a frequency defined based on the resistance value of the resistor R1 and the capacitance of the capacitor C1. On the other hand, a component exceeding this frequency is passed. Specifically, the SOC 110 passes a component corresponding to a frequency of input signals for turning on and off the photodiode PD at a predetermined cycle.
Since the one end of the capacitor C1 is connected to the node P1, a detection voltage of the first slack detection sensor 23 is inputted to the high-pass filter circuit 201. Then, the high-pass filter circuit 201 outputs a detection voltage obtained by removing a component equal to or lower than a frequency based on the resistance value of the resistor R1 and the capacitance of the capacitor C1 to the impedance conversion circuit 202.
The impedance conversion circuit 202 includes an operational amplifier OP. A non-inverting input terminal (+) of the operational amplifier OP is connected to the high-pass filter circuit 201. More specifically, the non-inverting input terminal (+) of the operational amplifier OP is connected to the node P2 where the capacitor C1 and the resistor R1 are connected. An output terminal ST of the operational amplifier OP is negatively fed back to an inverting input terminal (−) of the operational amplifier OP. Further, the output terminal ST of the operational amplifier OP is connected to the ADC 133.
The operational amplifier OP has high input impedance, low output impedance, and an amplification factor of “1”. Therefore, the operational amplifier OP functions as a voltage follower, and performs impedance conversion on a detection voltage inputted from the high-pass filter circuit 201. In general, it is known that when a signal (including a voltage) flowing in a transmission path has high impedance, noise resistance is deteriorated and noise is easily mixed to the signal (easily superimposed). By providing the operational amplifier OP to function as the voltage follower, the impedance conversion circuit 202 can reduce impedance of a detection voltage outputted by the first processing circuit 113 to the SOC 110. Accordingly, the impedance conversion circuit 202 can prevent the deterioration in noise resistance of the detection voltage outputted to the SOC 110.
The voltage stabilizing circuit 203 includes the resistor R1, a resistor R2, a resistor R3, and a capacitor C2. The one end of the resistor R1 is connected to the node P2, and the other end thereof is connected to the node P3. One end of the resistor R2 is connected to the node P3, and a voltage is applied to the other end thereof. One end of the resistor R3 is connected to the node P3, and the other end thereof is grounded. One end of the capacitor C2 is connected to the node P3, and the other end thereof is grounded. As shown in
The operational amplifier OP is provided in order to prevent the deterioration in noise resistance of the detection voltage, thus a leakage current is generated from the non-inverting input terminal (+) of the operational amplifier OP toward the capacitor C1. When the leakage current is generated, a voltage between the node P2 and the non-inverting input terminal (+) of the operational amplifier OP changes upward, and accordingly, the detection voltage changes. Therefore, the first processing circuit 113 includes the voltage stabilizing circuit 203 between the high-pass filter circuit 201 and an input side of the impedance conversion circuit 202. Thus, the leakage current generated in the non-inverting input terminal (+) of the operational amplifier OP is released to the voltage stabilizing circuit 203, and the voltage between the node P2 and the non-inverting input terminal (+) of the operational amplifier OP is made stabilized, and is prevented from being changed upward. Accordingly, the voltage stabilizing circuit 203 prevents a detection voltage inputted to the SOC 110 from being changed.
Next, an operation of the printing apparatus 1 including the roll paper detection section 103 having the above-described configuration will be described.
As described above, in the embodiment, the first slack detection sensor 23 and the second slack detection sensor 24 included in the roll paper detection section 103 have the same configuration, and the first processing circuit 113 and the second processing circuit 123 have the same configuration. For this reason, in a description of
The SOC 110 of the printing apparatus 1 determines whether or not to start driving the first slack detection sensor 23 and the second slack detection sensor 24 (Step SA1). For example, when power is supplied to the printing apparatus 1, the SOC 110 determines to start driving the first slack detection sensor 23 and the second slack detection sensor 24 using this power supply as a trigger (Step SA1: YES).
When the SOC 110 determines to start driving the first slack detection sensor 23 and the second slack detection sensor 24 (Step SA1: YES), the SOC 110 inputs signals in which a voltage level alternates between the “High” level and the “Low” level at a predetermined cycle to the first slack detection sensor 23 and the second slack detection sensor 24. Thus, the first slack detection sensor 23 and the second slack detection sensor 24 are driven at the predetermined cycle to start detecting presence or absence of the transport roll paper RH (Step SA2). In addition, when the first slack detection sensor 23 detects the presence or absence of the transport roll paper RH, the first slack detection sensor 23 outputs a detection voltage corresponding to the presence or absence of the transport roll paper RH, and also when the second slack detection sensor 24 detects the presence or absence of the transport roll paper RH, the second slack detection sensor 24 outputs a detection voltage corresponding to the presence or absence of the transport roll paper RH.
When the first slack detection sensor 23 starts detecting the presence or absence of the transport roll paper RH, the first slack detection sensor 23 inputs a detection voltage corresponding to the presence or absence of the transport roll paper RH to the high-pass filter circuit 201 of the first processing circuit 113 (Step SA3). A voltage value of the detection voltage that the first slack detection sensor 23 inputs to the high-pass filter circuit 201 differs depending on the presence or absence of the transport roll paper RH at the detection position T1. For example, a voltage value of the detection voltage when the transport roll paper RH is absent at the detection position T1 is higher than a voltage value of the detection voltage when the transport roll paper RH is present. This is because a received light amount by the phototransistor PQ is larger than an amount when the transport roll paper RH is present at the detection position T1. On the other hand, a voltage value of the detection voltage when the transport roll paper RH is present at the detection position T1 is lower than a voltage value of the detection voltage when the transport roll paper RH is absent. This is because the received light amount by the phototransistor PQ is smaller than the amount when the transport roll paper RH is absent at the detection position T1. Note that the same applies to a detection voltage outputted from the second slack detection sensor 24.
When a detection voltage is inputted from the first slack detection sensor 23, the high-pass filter circuit 201, configured with the resistor R1 and the capacitor C1, inputs a detection voltage obtained by removing a component equal to or lower than a frequency based on the resistance value of the resistor R1 and the capacitance of the capacitor C1 to the non-inverting input terminal (+) of the operational amplifier OP of the impedance conversion circuit 202 (Step SA4).
Next, when the high-pass filter circuit 201 inputs the detection voltage to the impedance conversion circuit 202, the impedance conversion circuit 202 outputs the detection voltage for which impedance is reduced to the SOC 110 via the ADC 133 (Step SA5).
Each of
The point A shown in
Each description of
A waveform H1 in
As shown in
A waveform H3 of
As shown in
As is apparent in comparison with
A waveform H5 in
As shown in
As is apparent in comparison with
As is apparent in comparison with
A waveform H7 of
As shown in
As is apparent in comparison with
As is apparent in comparison with
When there is the disturbance light, in
By setting a frequency to be passed to be equal to or higher than a frequency of the detection voltage outputted from the first slack detection sensor 23 using the time constant defined based on the resistance value of the resistor R1 and the capacitance of the capacitor C1 of the high-pass filter circuit 201, the high-pass filter circuit 201 can remove the voltage based on disturbance light from the detection voltage when the voltage based on disturbance light forms an AC waveform lower than the frequency of the detection voltage even when the voltage based on disturbance light does not form a DC waveform. Further, the high-pass filter circuit 201 can also remove a voltage based on noise generated on a predetermined substrate from a detection voltage, for example, and the voltage is not limited to a voltage based on disturbance light as long as the voltage forms an AC waveform lower than a frequency of the detection voltage.
Returning to a description of the flowchart shown in
On the other hand, when the SOC 110 determines that the transport roll paper RH is present at the detection position T1 (Step SA6: “Present”), the SOC 110 determines the presence or absence of the transport roll paper RH at the detection position T2 based on the detection voltage inputted from the second slack detection sensor 24 via the second processing circuit 123 and the medium determination threshold value (Step SA8).
When the SOC 110 determines that the transport roll paper RH is present at the detection position T2 (Step SA8: “Present”), the SOC 110 rotates the delivery motor 111 in an opposite direction of the rotation direction KH, and transports the transport roll paper RH so as to move the lowermost position U1 of the transport roll paper RH upward (Step SA9). Then, the printing apparatus 1 returns the processing to Step SA3 and again detects the presence or absence of the transport roll paper RH at the detection position T1 and the detection position T2.
On the other hand, when the SOC 110 determines that transport roll paper RH is absent at the detection position T2 (Step SA8: “Absent”), the SOC 110 determines that the lowermost position U1 of the transport roll paper RH is below the detection position T1 and above the detection position T2 (Step SA10), and ends the processing.
As described above, the SOC 110 compares the detection voltage that has passed through the high-pass filter circuit 201 with the medium determination threshold value, and determines the presence or absence of the transport roll paper RH at the detection position T1 and the presence or absence of the transport roll paper RH at the detection position T2. Therefore, the printing apparatus 1 can accurately detect the presence or absence of the transport roll paper RH at the detection position T1 and the detection position T2 by the first slack detection sensor 23 and the second slack detection sensor 24 respectively, while preventing the influence of disturbance light. In addition, since the SOC 110 controls movement of the lowermost position U1 based on the presence or absence of the transport roll paper RH detected accurately, the lowermost position U1 can be reliably positioned below the detection position T1 and above the detection position T2. Thus, the SOC 110 may reliably suppress occurrence of the empty transport in the transport roller 18 and the driven roller 19.
Further, the impedance conversion circuit 202 is provided between the high-pass filter circuit 201 and the SOC 110. Therefore, it is possible to prevent the deterioration in noise resistance of the detection voltage that has passed through the high-pass filter circuit 201, and the printing apparatus 1 can accurately detect the presence or absence of the transport roll paper RH at the detection position T1 and the detection position T2 by the first slack detection sensor 23 and the second slack detection sensor 24 respectively.
Further, the voltage stabilizing circuit 203 is provided on an input side of the detection voltage in the impedance conversion circuit 202. Accordingly, it is possible to prevent the detection voltage from being changed by a leakage current generated on the input side of the impedance conversion circuit 202, and the printing apparatus 1 can accurately detect the presence or absence of the transport roll paper RH at the detection position T1 and the detection position T2 by the first slack detection sensor 23 and the second slack detection sensor 24 respectively.
In the above description, the configuration of the roll paper detection section 103 (in particular, the first processing circuit 113 and the second processing circuit 123) that accurately detects the presence or absence of the transport roll paper RH by the first slack detection sensor 23 and the second slack detection sensor 24 has been described. However, the label detection section 104 may have the same configuration as the roll paper detection section 103. Thus, the printing apparatus 1 may accurately detect the presence or absence of the label LB on the mount DS by the label detection section 104. Hereinafter, this will be described.
In a description of
As shown in
Further, the third processing circuit 114 included in the label detection section 104 has the same configuration as the first processing circuit 113 and the second processing circuit 123. In other words, the third processing circuit 114 includes the high-pass filter circuit 201, the impedance conversion circuit 202, and the voltage stabilizing circuit 203.
Next, an operation of the printing apparatus 1 including the label detection section 104 having a configuration shown in
The SOC 110 of the printing apparatus 1 determines whether or not to start driving the label detection sensor 71 (Step SB1). For example, when power is supplied to the printing apparatus 1, the SOC 110 determines to start driving the label detection sensor 71 using this power supply as a trigger (Step SB1: YES).
When the SOC 110 determines to start driving the label detection sensor 71 (Step SB1: YES), the SOC 110 inputs signals in which a voltage level alternates between the “High” level and the “Low” level at a predetermined cycle to the label detection sensor 71. Thus, the label detection sensor 71 is driven at the predetermined cycle and starts detecting presence or absence of the label LB on the mount DS (Step SB2). When the label detection sensor 71 detects the presence or absence of the label LB, the label detection sensor 71 outputs a detection voltage corresponding to presence or absence of the label LB at the detection position P.
When the detection of the presence or absence of the label LB on the mount DS is started, the label detection sensor 71 inputs the detection voltage corresponding to the presence or absence of the label LB to the high-pass filter circuit 201 of the third processing circuit 114 (Step SB3). A voltage value of the detection voltage that the label detection sensor 71 inputs to the high-pass filter circuit 201 differs depending on which of the mount portion DSa and the label portion LBa is positioned at the detection position P. For example, a voltage value of the detection voltage when the mount portion DSa is at the detection position P is higher than when the label portion LBa is positioned at the detection position P. This is because the label LB is absent on the mount portion DSa and the received light amount by the phototransistor PQ is larger than when the label LB is present. On the other hand, when the label portion LBa is positioned at the detection position P, a voltage value of the detection voltage is lower than when the mount portion DSa is positioned at the detection position P. This is because on the label portion LBa of the mount DS the label LB is present, and the received light amount by the phototransistor PQ is smaller than when the label LB is absent.
When the detection voltage is inputted from the label detection sensor 71, the high-pass filter circuit 201, configured with the resistor R1 and the capacitor C1, inputs a detection voltage obtained by removing a component equal to or lower than a frequency based on the resistance value of the resistor R1 and the capacitance of the capacitor C1 to the non-inverting input terminal (+) of the operational amplifier OP of the impedance conversion circuit 202 (Step SB4).
Next, when the high-pass filter circuit 201 inputs the detection voltage to the impedance conversion circuit 202, the impedance conversion circuit 202 outputs the detection voltage for which impedance is reduced to the SOC 110 via the ADC 133 (Step SB5).
When the detection voltage is inputted, the SOC 110 determines whether the inputted detection voltage is lower than or higher than the label determination threshold value stored in the memory 120 (Step SB6). As the label determination threshold value, for example, an intermediate value between a voltage value of a detection voltage when the mount portion DSa is positioned at the detection position P and a voltage value of a detection voltage when the label portion LBa is positioned at the detection position P may be cited.
When the SOC 110 determines that the detection voltage falls below the label determination threshold value (Step SB6: “Below”), the SOC 110 determines that the label LB is present at the detection position P (Step SB7). On the other hand, when the SOC 110 determines that the detection voltage exceeds the label determination threshold value (Step SB6: “Above”), the SOC 110 determines that the label LB is absent at the detection position P (Step SB8).
In this way, the SOC 110 compares the detection voltage that has passed through the high-pass filter circuit 201 with the label determination threshold value, and determines the presence or absence of the label LB on the mount DS. Therefore, the printing apparatus 1 can accurately detect the label LB on the mount DS by the label detection sensor 71 while preventing the influence of disturbance light (e.g., erroneous determination of the presence or absence of the label LB). Accordingly, the SOC 110 can accurately identify the mount portion DSa and the label portion LBa in the label sheet LS, and can accurately control a print position, for example.
Also, in the label detection section 104, the impedance conversion circuit 202 is provided between the high-pass filter circuit 201 and the SOC 110. Therefore, it is possible to prevent the deterioration in noise resistance of the detection voltage that has passed through the high-pass filter circuit 201, and the printing apparatus 1 can accurately detect the presence or absence of the label LB on the mount DS by the label detection sensor 71.
Also, in the label detection section 104, the voltage stabilizing circuit 203 is provided on the input side of the detection voltage in the impedance conversion circuit 202. Therefore, it is possible to prevent the detection voltage from being changed by the leakage current generated on the input side of the impedance conversion circuit 202, and the printing apparatus 1 can accurately detect the presence or absence of the label LB on the mount DS by the label detection sensor 71.
Next, variations will be described.
The variations are examples applicable to the roll paper detection section 103 and the label detection section 104. Hereinafter, a variation on the roll paper detection section 103 will be representatively described.
In a description of
Note that, similarly to the description of
As is apparent in comparison with
The amplifier circuit 204 includes an operational amplifier OPa, a resistor R4, and a resistor R5.
A non-inverting input terminal (+) of the operational amplifier OPa is connected to the output terminal ST of the operational amplifier OP of the impedance conversion circuit 202. One end of the resistor R5 and one end of the resistor R4 are connected to an inverting input terminal (−) of the operational amplifier OPa. The other end of the resistor R5 is connected to an output terminal STa of the operational amplifier OPa. Further, the ADC 133 is connected to the output terminal STa of the operational amplifier OPa.
The amplifier circuit 204 amplifies a detection voltage outputted from the impedance conversion circuit 202 with an amplification factor based on the resistor R4 and the resistor R5 by the operational amplifier OPa, and outputs the amplified detection voltage to the SOC 110 via the ADC 133.
As in the variation, by providing the amplifier circuit 204 between the impedance conversion circuit 202 and the SOC 110, the SOC 110 can obtain the amplified detection voltage. Therefore, in the detection position T1 and the detection position T2, a difference between the detection voltage when the transport roll paper RH is present and the detection voltage when the transport roll paper RH is absent can be made remarkable, and the SOC 110 can determine the presence or absence of the transport roll paper RH at the detection position T1 and the detection position T2 more accurately using a medium determination threshold value. With this effect, the SOC 110 can more reliably suppress occurrence of empty transport in the transport roller 18 and the driven roller 19.
As described above, the printing apparatus 1 includes the transport section 101 that transports the transport roll paper RH as a print medium (medium), the first slack detection sensor 23 (optical sensor) that drives at a predetermined cycle, the second slack detection sensor 24 (optical sensor), the high-pass filter circuit 201 to which the detection voltages of the first slack detection sensor 23 and the second slack detection sensor 24 are inputted, and the SOC 110 (control circuit) that determines presence or absence of the transport roll paper RH at the detection position T1 and the detection position T2 by comparing a detection voltage that has passed through the high-pass filter circuit 201 with the medium determination threshold value (predetermined threshold value). Further, the printing apparatus 1 includes the label detection sensor 71 (optical sensor) that drives at a predetermined cycle, the high-pass filter circuit 201 to which a detection voltage of the label detection sensor 71 is inputted, and the SOC 110 (control circuit) that compares the detection voltage which has passed through the high-pass filter circuit 201 with a label determination threshold value (predetermined threshold value) and determines a label (mark) attached to the label sheet LS as a print medium.
According to this configuration, the detection voltage that has passed through the high-pass filter circuit 201 is compared with the medium determination threshold value, and the presence or absence of the transport roll paper RH at the detection position T1 and the detection position T2 is determined, and the detection voltage that has passed through the high-pass filter circuit 201 is compared with the label determination threshold value to determine the label on the label sheet LS, thus detection on a print medium can be performed accurately while preventing an influence of disturbance light. More specifically, the printing apparatus 1 can accurately detect the presence or absence of the transport roll paper RH at the detection position T1 and the detection position T2 by the first slack detection sensor 23 and the second slack detection sensor 24 respectively, while preventing erroneous determination due to disturbance light. Further, the printing apparatus 1 prevents the erroneous determination due to disturbance light and can accurately detect the label LB attached to the label sheet LS by the label detection sensor 71.
Further, the printing apparatus 1 includes the impedance conversion circuit 202 between the high-pass filter circuit 201 and the SOC 110.
According to this configuration, it is possible to prevent deterioration in noise resistance of the detection voltage that has passed through the high-pass filter circuit 201, and the printing apparatus 1 can accurately detect the presence or absence of the transport roll paper RH at the detection position T1 and the detection position T2 by the first slack detection sensor 23 and the second slack detection sensor 24 respectively. Further, the printing apparatus 1 can accurately detect the label LB attached to the label sheet LS by the label detection sensor 71.
Further, the printing apparatus 1 includes the voltage stabilizing circuit 203 on an input side of the detection voltage in the impedance conversion circuit 202.
According to this configuration, it is possible to prevent the detection voltage from being changed by a leakage current generated on the input side of the impedance conversion circuit 202, and the printing apparatus 1 can accurately detect the presence or absence of the transport roll paper RH at the detection position T1 and the detection position T2 by the first slack detection sensor 23 and the second slack detection sensor 24 respectively. Further, the printing apparatus 1 can accurately detect the label LB attached to the label sheet LS by the label detection sensor 71.
Further, the printing apparatus 1 includes the amplifier circuit 204 between the impedance conversion circuit 202 and the SOC 110.
According to this configuration, the printing apparatus 1 includes the amplifier circuit 204 between the impedance conversion circuit 202 and the SOC 110, thus a difference in the detection voltages can be made remarkable. More specifically, at the detection position T1 and the detection position T2, the printing apparatus 1 can make a difference between a detection voltage when the transport roll paper RH is present and a detection voltage when the transport roll paper RH is absent remarkable, and can detect the presence or absence of the transport roll paper RH at the detection position T1 and the detection position T2 more accurately. Further, the printing apparatus 1 can make a difference between a detection voltage when the label LB is present and a detection voltage when the label LB is absent at the detection position P remarkable, and can detect the presence or absence of the label LB at the detection position P more accurately.
In addition, a print medium of the embodiment is the label sheet LS that is formed by attaching the labels LB to the mount DS at a predetermined interval. The SOC 110 compares the detection voltage that has passed through the high-pass filter circuit 201 with the label determination threshold value (predetermined threshold value), and determines presence or absence of the label LB on the mount DS.
According to this configuration, since the printing apparatus 1 compares the detection voltage that has passed through the high-pass filter circuit 201 with the label determination threshold value and determines the presence or absence of the label LB on the mount DS, it is possible to accurately detect the presence or absence of the label LB attached to the mount DS by the label detection sensor 71 while preventing the influence of disturbance light. Thus, the SOC 110 can accurately manage a printing position.
In addition, the print medium of the embodiment is the roll paper R. The SOC 110 compares the detection voltage that has passed through the high-pass filter circuit 201 with the medium determination threshold value, detects the presence or absence of the transport roll paper RH, and controls vertical movement of the transport roll paper RH.
According to this configuration, by comparing the detection voltage that has passed through the high-pass filter circuit 201 with the medium determination threshold value to determine the presence or absence of the transport roll paper RH, the printing apparatus 1 can accurately detect the presence or absence of the transport roll paper RH by the first slack detection sensor 23 and the second slack detection sensor 24 while preventing the influence of disturbance light, and accurately control the vertical movement of the transport roll paper RH. Thus, the SOC 110 can reliably suppress occurrence of the empty transport in the transport roller 18 and the driven roller 19.
Note that the above-described embodiment is merely one aspect of the invention and may be modified and applied arbitrarily within the scope of the invention.
For example, in the above-described embodiment, as optical sensors, the first slack detection sensor 23, the second slack detection sensor 24, and the label detection sensor 71 were described. However, the optical sensors are not limited thereto. For example, a black mark detection sensor for detecting a black or dark colored rectangular black mark on a back surface of the label sheet LS, or a cutout detection sensor for detecting a cutout formed on a print medium may be used.
Further, for example, in the above-described embodiment, the respective circuit configurations shown in
Further, each functional section shown in
Number | Date | Country | Kind |
---|---|---|---|
2017-165608 | Aug 2017 | JP | national |