The present application claims priority from Japanese Patent Application No. 2016-71861, which was filed on Mar. 31, 2016, the disclosure of which is incorporated herein by reference in its entirety.
The present disclosure relates to a printer performing print using an elongated medium.
A printer has hitherto been known that detects a consumption completion status (so-called a tape end) of an elongated medium (an ink ribbon) consumed by use during printing. In this prior art, rotations of a body to be detected (a sensor plate) rotating in conjunction with a roll (an ink ribbon bobbin) into which an elongated medium is wound, are detected by an optical detection device (a rotary encoder) and counted as the pulse count. The total pulse count obtained at the time of execution of print is then compared with a termination definition pulse count preset corresponding to the full length of the elongated medium, so that the residual amount of the elongated medium is detected based on the difference value. When the detected residual amount becomes 0, the above consumption completion status is determined to have been achieved.
The above prior art, however, involves problems which follow. The consumption completion status cannot be detected until the counted pulse count value reaches the termination definition pulse count, rendering prompt detection difficult. Due to use of the counted pulse count value corresponding to the withdrawal amount (the feeding amount) of the elongated medium, for example, even if the elongated medium becomes loosened when handled by the operator or even if it is manually taken up (to eliminate the loosening), no support is provided resulting in a remarkably poor detection accuracy. The same applies to the case of abnormal feeding (so-called jamming) or roll replacement.
It is therefore an object of the present disclosure to provide a printer capable of detecting the consumption completion status of an elongated medium promptly and with high accuracy.
In order to achieve the above-described object, according to aspect of the present application, there is provided a printer comprising a feeder, a pulse motor, a drive control device, a body to be detected, an optical detection device, a processor, and a memory. The feeder is configured to transport an elongated medium that is to be consumed during printing fed out from a roll that includes an outer periphery around which the elongated medium is wound. The pulse motor is configured to drive the feeder. The drive control device is configured to output a pulse signal for driving the pulse motor. The body to be detected is configured to rotate in conjunction with rotation of the roll, and includes M (M is an integer greater than or equal to 2) detected elements along a circumferential direction. The optical detection device is configured to optically detect the detected elements of the body to be detected. The memory stores computer-executable instructions that, when executed by the processor, cause the printer to perform a comparison value calculation step, an index value detection step, and a first determination step. The index value detection step includes detecting a pulse count index value expressed by a pulse count of the pulse signal per one of the detected elements, in sequence for each of the detected elements, in accordance with transport of the elongated medium by the feeder driven by the pulse motor. The comparison value calculation step includes a first process, a second process, and a third process. In the first process, an N-th determination target value to be determined is calculated, from an N-th (N: an integer greater than or equal to 1) pulse count index value from start of transport and an (N+1)th pulse count index value adjoining the N-th pulse count index value, among a plurality of the pulse count index values detected in sequence at the index value detection step. In the second process, a mean value of a plurality of consecutive pulse count index values within a predetermined range is calculated. The predetermined range has its latest value that is an (N−1)th pulse count index value when N is an odd number greater than or equal to 3 or is an (N−2)th pulse count index value when N is an even number greater than or equal to 4, among the plurality of the pulse count index values detected in sequence at the index value detection step. In the third process, a comparison value is calculated by comparing, with using a predetermined arithmetic operation, (N−1)th the determination target value among the determination target values calculated in sequence in the first process with the mean value calculated in the second process. The first process to the third process are performed in sequence while increasing N one by one with consumption of the elongated medium. The first determination step includes determining whether the elongated medium wound around the outer periphery of the roll has reached a consumption completion status or not, on the basis of a magnitude relation between the comparison value calculated at the comparison value calculation step and a predetermined first threshold value.
In the printer of the present disclosure, upon the execution of printing, an elongated medium wound into a roll is used. The pulse motor drives the feeder based on a pulse signal from the drive control device so that the feeder feeds out the elongated medium from the roll, for transport.
At that time, in the present disclosure, a body to be detected and an optical detection device are disposed in order to detect a consumption completion status (a so-called tape end) of the elongated medium fed out and transported as above. The body to be detected comprises M (M is an integer greater than or equal to 2) detected elements arranged at predetermined angular intervals in the circumferential direction and rotates in conjunction with rotation of the roll by the transport of the elongated medium. The detected elements disposed on the body to be detected are detected by the optical detection device through the rotation of the body to be detected, so that the pulse count index value (=the pulse count of pulse signals per one detected element) is detected in sequence in the index value detection processing executed by the processor. According as the elongated medium is consumed, the roll reduces in diameter and the angular velocity of the body to be detected rotated by the transport becomes faster, with the result that the pulse index value decreases gradually. When the elongated medium reaches the consumption completion status, the pulse index value increases to an extreme extent (since the body to be detected does not rotate irrespective of the drive of the pulse motor). Based on such a behavior, the consumption completion status can be detected from the fact that the detected elements are not detected regardless of output of a predetermined number of pulse signals for example.
In the present disclosure, to detect the above consumption completion status more promptly and with higher accuracy, comparison value calculation processing is executed. In this comparison value calculation processing, first in a first process, a determination target value is calculated from the N-th pulse count index value from the start of transport and the (N+1)th pulse count index value adjoining thereto. This has significance as follows.
In the case of performing the optical detection on the body to be detected as above, slits are formed on the body to be detected so that both the slits and the shielding portions between the adjacent slits function as the detected elements. By the optical detection, a convex pulse is detected from the slits for example and a concave pulse is detected from the shielding portions. At that time, if the slit width is equal to the width of the shielding portion on the body to be detected, the duration of the convex pulse and the duration of the concave pulse detected by the optical detection device should originally be the same. Actually, however, the duration of the convex pulse and the duration of the concave pulse may not be equal e.g. due to the influence of the wraparound phenomenon of light when passing through the slits or due to the magnitude relation between the threshold value set at the time of optical detection and the signal value. In spite of the occurrence of the above influences, however, the total duration of one convex pulse and one concave pulse is unvaried, in other words, the duration from the detection of the rising edge of a convex pulse from one slit to the detection of the rising edge of a next convex pulse, or the duration from the detection of the falling edge of a concave pulse from the shielding portion to the detection of the falling edge of a next concave pulse, is unvaried. Thus, the above concerns over the optical detection can be obviated to secure a high accuracy, by calculating the determination target value from the N-th pulse count index value (corresponding to either one of the convex pulse and the concave pulse) and the (N+1)th pulse count index value (corresponding to remaining one of the convex pulse and the concave pulse).
In the comparison value calculation processing, a mean value of a plurality of consecutive pulse count index values within a predetermined range is calculated in the second process, and thereafter a predetermined arithmetic operation is applied to the above determination target value and the above mean value in the third process, to calculate a comparison value. The mean value of the plurality of pulse count index values calculated in the second process can be used as a past actual value having high reliability without any influence of variations and fluctuations of the pulse count index values in the arithmetic operation of the third process.
In the present disclosure, the first process, second process and third process are performed from moment to moment while incrementing N with the consumption of the elongated medium in the comparison value calculation processing, and it is determined in the first determination processing whether the elongated medium has reached the consumption completion status, on the basis of the magnitude relation between the comparison values calculated from moment to moment and a predetermined threshold value (first threshold value). This enables the consumption completion status of the elongated medium to be detected more promptly and with higher accuracy than the conventional technique of detecting an arrival at a termination definition pulse count of a pulse count value corresponding to the amount of transport of the elongated medium or than the technique of simply waiting non-detection of the detected element S, W at the time of output of a predetermined number of pulse signals as described above.
An embodiment of the present disclosure will now be described with reference to the drawings.
<Overall Schematic Configuration>
Referring first to
In
The printer 1 comprises a housing 10 that includes a body case 11 and a cover 12. The body case 11 is a box-shaped member in the shape of a transversely elongated rectangular parallelepiped. The cover 12 is a plate-shaped member disposed on top of the body case 11. The cover 12 has a rear end portion supported rotatably on top of the body case 11 at a rear end portion thereof. The cover 12 rotates its front end portion in the top-bottom direction so as to open and close a mounting surface 11A that is a top surface of the body case 11. The body case 11 has a lock mechanism 13 at a top front end portion. The lock mechanism 13 locks the front end portion of the cover 12 to restrain the cover 12 from opening when the cover 12 is closed on the body case 11.
When closed on the body case 11 (see
The housing 10 has on its side surfaces an operation part 17, a tube insertion port 15, and a tube discharge port 16. The operation part 17 is in the form of a plurality of operation buttons including a power button and a start button. The operation part 17 is disposed on a front surface at its upper right portion of the body case 11. The tube insertion port 15 is an opening for guiding the tube 9 to the interior of the housing 10. The tube insertion port 15 is disposed on a right surface at its upper rear portion of the body case 11 and is of a vertically slightly elongated rectangular shape. The tube discharge port 16 is an opening for discharging the tube 9 to the exterior of the housing 10. The tube discharge port 16 is disposed on a left surface at its upper rear portion of the body case 11 and is of a vertically slightly elongated rectangular shape. The tube discharge port 16 is positioned slightly frontward of the tube insertion port 15.
A ribbon cassette mounting part 30 and a tube mounting part 40 are arranged on the mounting surface 11A.
The ribbon cassette mounting part 30 is a part to/from which a ribbon cassette 95 is attached/detached. The ribbon cassette mounting part 30 is a recessed portion that opens upward and has an opening substantially corresponding in shape to the ribbon cassette 95 in a planar view. In this example, the ribbon cassette mounting part 30 is disposed on a left half of the mounting surface 11A and frontward of the tube mounting part 40.
The ribbon cassette 95 is a box-shaped body storing an ink ribbon 93. A ribbon spool 56 of a ribbon roll R1 and a ribbon take-up shaft 63 around which a used ink ribbon 93 is wound, are supported rotatably within the interior of the ribbon cassette 95. The ribbon roll R1 is a roll into which an unused ink ribbon 93 is wound around the ribbon spool 56.
In this case, as shown in
A spool gear 33 meshed with the ribbon gear 32 is disposed rotatably within the ribbon cassette 95. The spool gear 33 is of a substantially cylindrical shape and has on its upper end periphery a plurality of teeth meshing with the ribbon gear 32. In this instance, the spool gear 33 has an addendum circle diameter smaller than that of the ribbon gear 32 (see
The ribbon gear 32 is considerably larger in diameter than the spool gear 33 due to such a positional relationship, with the result that the two gears 32, 33 have a large gear ratio therebetween. In this embodiment, the ratio of number of teeth between the ribbon gear 32 and the spool gear 33 is 50:16 for example. Therefore, when the ink ribbon 93 is transported by the drive of the drive motor 103, the spool gear 33 rotates at a high rotational speed that is a few times (e.g. approx. 3 times) faster than the rotational speed of the ribbon gear 32. The spool gear 33 has an uneven portion on an upper inner wall so as to engage with a cam member 76 that will be described later.
On the other hand, a rotation shaft 35 is disposed on the ribbon cassette mounting part 30. As shown in
The encoder plate 25 has an outer diameter greater than the addendum circle diameter of the spool gear 33. Due to its disposition below the bottom surface of the ribbon cassette mounting part 30 outside the ribbon cassette 95, the encoder plate 25 with a considerably large diameter can be disposed so that a plurality of (32 in the shown example) slits S can be arranged at predetermined intervals along the circumferential direction of the encoder plate 25 (see
The photosensor 26 in the form of e.g. a light transmission sensor is disposed in a position facing the slits S and the shielding portions W of the encoder plate 25. Although not shown, the photosensor 26 is fixedly secured to the base plate 65 and comprises a light emitting part 26a and a light receiving part 26b (see
Referring back to
The printer 1 comprises a control substrate 19, a power supply part 18 (see
The control substrate 19 is a substrate having a control circuit 190 described later (see
The tube printing mechanism 60 includes a printing head 61, the platen roller 62, a pair of the pressure feeding rollers 66, a pair of the pressure feeding rollers 67, the ribbon take-up shaft 63, the drive motor 103 (see
The printing head 61 and the ribbon take-up shaft 63 extend vertically upward from the bottom surface of the ribbon cassette mounting part 30. The printing head 61 is a thermal head having a plurality of heat generating elements (not shown), disposed in a rear portion of the ribbon cassette mounting part 30. Using the ink ribbon 93, the printing head 61 forms print on the tube 9 transported by the platen roller 62, etc. and clamped between the printing head 61 and the platen roller 62. The ribbon take-up shaft 63 is a shaft capable of rotating a ribbon take-up spool 92. When the ribbon cassette 95 is mounted on the ribbon cassette mounting part 30, the ribbon take-up shaft 63 fits in the ribbon take-up spool 92.
On the rear side of the ribbon cassette mounting part 30, the platen roller 62 is arranged facing the printing head 61 along a direction orthogonal to the transport direction. The platen roller 62 superimposes the tube 9 lying within the tube mounting part 40 and an unused ink ribbon of the ribbon cassette 95 that are clamped between the platen roller 62 and the printing head 61, to press the tube 9 and the unused ink ribbon toward the printing head 61, and transports the tube 9 along the transport path 40a while flattening the tube 9 and bringing the tube 9 into surface contact with the printing head 61 by way of the ink ribbon 93. The pair of pressure feeding rollers 66 are arranged facing each other along a direction orthogonal to the transport direction, toward the tube insertion port 15 (hereinafter, appropriately referred to simply as “upstream”) along the transport path 40a with respect to the printing head 61. The pair of pressure feeding rollers 66 transport the clamped tube 9 within the tube mounting part 40 along the transport path 40a while press-bonding and flattening the tube 9. The pair of pressure feeding rollers 67 are arranged facing each other along a direction orthogonal to the transport direction, upstream of an optical sensor 69 (see
The platen roller 62, the pressure feeding roller 66 on one hand, and the pressure feeding roller 67 on one hand are displaceable between their respective operating positions and retracted positions in response to opening and closing of the cover 12. When the cover 12 is opened, the platen roller 62, the pressure feeding roller 66 on one hand, and the pressure feeding roller 67 on one hand are displaced to their respective retracted positions. In the case (not shown) that the platen roller 62, the pressure feeding roller 66 on one hand, and the pressure feeding roller 67 on one hand are at their respective retracted positions, the platen roller 62, the pressure feeding roller 66 on one hand, and the pressure feeding roller 67 on one hand are positioned outside of the tube mounting part 40 so as to be separated from the printing head 6, the pressure feeding roller 66 on the other, and the pressure feeding roller 67 on the other, respectively. On the other hand, when the cover 12 is closed, the platen roller 62, the pressure feeding roller 66 on one hand, and the pressure feeding roller 67 on one hand are displaced to their respective operating positions. In the case (see
The drive motor 103 outputs a driving force for rotating the platen roller 62, the pressure feeding rollers 66, the pressure feeding rollers 67, and the ribbon take-up shaft 63. The driving force of the drive motor 103 is transmitted via a predetermined transmission mechanism to the platen roller 62, the pressure feeding rollers 66, the pressure feeding rollers 67, and the ribbon take-up shaft 63 so that the platen roller 62, the pressure feeding rollers 66, the pressure feeding rollers 67, and the ribbon take-up shaft 63 can rotate in synchronism with one another.
The cutter 64 and the blade receiving plate 65 are arranged facing each other on opposite sides of the transport path 40a, downstream of the printing head 61. The cutter 64 moves toward the blade receiving plate 65 to press and cut the tube 9 within the tube mounting part 40 against the blade receiving plate 65, to separate a portion of the tube lying downstream of the cutting position.
The cutter motor 105 outputs a driving force for activating the cutter 64.
A mechanical sensor 68 is disposed on the transport path 40a upstream of the pressure feeding rollers 66. The mechanical sensor 68 performs a mechanical detection of whether the tube 9 is present or absent, to output a corresponding detection signal. For example, the mechanical sensor 68 detects the presence of the tube 9 when a retractable detected element extending vertically on the transport path 40a falls down, to output a detection signal.
The optical sensor 69 is disposed downstream of the pressure feeding roller 67 and upstream of the cutter 64 within the body case 11. The optical sensor 69 is a transmission type optical sensor having e.g. a light projecting part 691 and a light receiving part 692 (see
<Control System>
Referring next to
In
The ROM 192 stores various programs (including a control program executing process steps of a flowchart shown in
The I/O interface 195 connects to drive circuits 101, 102, 104, the operation part 17, the power supply part 18, the photosensor 26, the mechanical sensor 68, the light projecting part 691 and the light receiving part 692 of the optical sensor 69, etc.
The drive circuit 101 performs energization control of the plurality of heat generating elements of the printing head 61. The drive circuit 102 outputs a drive pulse to the drive motor 103 rotating the platen roller 62, the ribbon take-up shaft 63, and the pressure feeding rollers 66, 67, to thereby perform drive control. The drive circuit 104 performs drive control of the cutter motor 105 driving the cutter 64.
The power supply part 18 is connected to a battery (not shown) mounted in the body case 11 or is connected via a cord to an external power source (not shown), to supply power to the printer 1.
<Schematic Printed Tube Producing Action>
In the thus configured printer 1, when the cover 12 is closed and the platen roller 62, the pressure feeding roller 66 on one hand, and the pressure feeding roller 67 on one hand are displaced from their respective retracted positions to their respective operating positions after the mounting of the ribbon cassette 95 on the ribbon cassette mounting part 30 and mounting of the tube 9 on the tube mounting part 40, the tube 9 and the ink ribbon 93 are clamped between the printing head 61 and the platen roller 62 while the tube 9 is clamped between the pair of pressure feeding rollers 66 and between the pair of pressure feeding rollers 67.
Due to the driving force of the drive motor 103, the platen roller 62, the pressure feeding rollers 66, the pressure feeding rollers 67, and the ribbon take-up shaft 63 rotate in synchronism with one another. The tube 9 is transported to the downstream side with rotation of the platen roller 62, the pressure feeding rollers 66, and the pressure feeding rollers 67 and the ribbon take-up spool 92 rotates with rotation of the ribbon take-up shaft 63, allowing the ink ribbon 93 to be withdrawn from the ribbon roller R1. At that time, the plurality of heat generating elements of the printing head 61 are supplied with power from the drive circuit 101 to generate heat and the front surface of the tube 9 is brought into surface contact with the printing head 61 by way of the ink ribbon 93. As a result, the printing head 61 performs printing of print data such as letters, symbols, and graphics on the front surface of the tube 9. The used ink ribbon 93 is taken up around the ribbon take-up spool 92.
Afterward, the tube 9 is transported further downstream and is discharged from the housing 10 by way of the tube discharge port 16. At that time, when a cut position of the tube 9 is fed to the cutting position, the cutter 64 is actuated by the driving force of the cutter motor 105 so that the tube 9 is cut off at its cut position, allowing a portion of the tube on which print data is formed, lying downstream of the cut position to be separated as a printed tube.
<Feature of This Embodiment>
This embodiment is featured by a technique of detecting a consumption completion status of the ink ribbon 93 promptly and with high accuracy by use of a pulse index value (that will be described later). Details thereof will hereinafter be described.
<Optical Detection of Encoder Plate>
As described above, when executing print on the tube 9, the drive motor 103 in the form of the pulse motor drives the ribbon take-up shaft 63 on the basis of a drive pulse from the drive circuit 102 so that the ink ribbon 93 wound into the ribbon roll R1 is fed out from the ribbon roll R1 and transported. At that time, due to the above configuration, the encoder plate 25 rotates in conjunction with rotation of the ribbon roll R1 caused by the transport of the ink ribbon 93.
In the example shown in
On the other hand, according as the ink ribbon 93 is consumed, the ribbon roll R1 has a smaller diameter, resulting in a higher angular velocity of the encoder plate 25 rotated by the transport. Hence, consumption of the ink ribbon 93 advances from the state shown in
In this embodiment, attention is paid to the above relationship to perform processes using a pulse count (hereinafter, appropriately, referred to as “pulse count index value) of drive pulses per detected element S, W as an index value for detecting a consumption completion status (so-called tape end) of the ink ribbon 93 fed out and transported as described above. In the example of
When the ink ribbon 93 reaches the consumption completion status as a result of further advancement in consumption of the ink ribbon 93, the encoder plate 25 does not rotate in spite of the drive of the drive motor 103 (the next detected element S, W does not appear irrespective of the number of pulses output), as shown in
<Calculation Content>
In this embodiment, however, to detect the consumption completion status more promptly and with higher accuracy, the CPU 191 executes further in-depth calculation processing. The content of the processing will be described separately in two states, i.e. a state immediately after the start of transport (in more detail, duration of one turn of the encoder plate 25 after the start of rotation) and a state after elapse of a certain time from the start of transport (in more detail, after one turn of the encoder plate 25). Hereinafter, in an example described using
<Until Encoder Plate Achieves One Turn of Rotation>
In this embodiment, as described above, after the start of transport, the pulse index value P is calculated in sequence each time the detected element S, W is detected so that the consumption completion status is determined based on the behavior of the values. Specifically, a determination target value is a sum of a latest pulse index value P and a second latest pulse index value P and is compared with a comparison value (a mean value of all past pulse count index value data calculated so far).
For example, when a first detected element S, W is first detected immediately after the start of transport, a corresponding pulse index value P1 (hereinafter, a pulse index value corresponding to an N-th detected element S, W is denoted as PN (N is an integer greater than or equal to 1) in this manner) is calculated (see
Subsequently, when a second detected element S, W is detected and a corresponding pulse index value P2 is calculated (see
Subsequently, when a third detected element S, W is detected and a corresponding pulse index value P3 is figured out (see
Subsequently, similarly, when a fourth detected element S, W is detected and a corresponding pulse index value P4 is figured out (see
Subsequently, similarly, when a fifth detected element S, W is detected and a corresponding pulse index value P5 is figured out (see
Subsequently, similarly, when a sixth detected element S, W is detected and a corresponding pulse index value P6 is figured out (see
Subsequently, similarly, when a seventh detected element S, W is detected and a corresponding pulse index value P7 is figured out (see
Subsequently, similarly, when an eighth detected element S, W is detected and a corresponding pulse index value P8 is figured out (see
Subsequently, similarly, when a ninth detected element S, W is detected and a corresponding pulse index value P9 is figured out (see
Subsequently, similarly, when a tenth detected element S, W is detected and a corresponding pulse index value P10 is figured out (see
An ordinal number k in
<After Encoder Plate Exceeds One Turn of Rotation>
In this embodiment, after one turn of rotation of the encoder plate 25, similar to the above, a sum of a latest pulse index value P and a second latest pulse count index value P is used as the determination target value, which in turn is compared with a comparison value (a mean value of a predetermined range of pulse count index value data calculated so far, in this example, 10 pulse count index value data just for one turn of the encoder plate 25).
For example, when a 109th detected element S, W is detected in the process of eleventh turn after the completion of 10 turns of rotation of the encoder plate 25 and a corresponding pulse index value P109 is figured out (see
Subsequently, in the same manner, when a 110th detected element S, W is detected and a corresponding pulse index value P110 is figured out (see
In the same manner, when a 111th detected element S, W is detected, a determination target value X110 is P110+P111 that is a sum of the pulse index values P and the comparison value is Y55=average (y′55) that is a mean value obtained by dividing a sum y′55 (P101+ . . . +P110) of most recent 10 pulse count index values P by 10. The determination is then performed based on whether X110/(Y55×2) is greater than the threshold value α (see
In the same manner, when a 113th detected element S, W is detected, a determination target value X112 is P112+P113 that is a sum of the pulse index values P and the comparison value is Y56=average (y′56) that is a mean value obtained by dividing a sum y′56 (P103+ . . . +P112) of most recent 10 pulse count index values P by 10. The determination is then performed based on whether X112/(Y56×2) is greater than the threshold value α (see
In the same manner, when a 115th detected element S, W is detected, a determination target value X114 is P114+P115 that is a sum of the pulse index values P and the comparison value is Y57=average (y′57) that is a mean value obtained by dividing a sum y′57 (P105+ . . . +P114) of most recent 10 pulse count index values P by 10. The determination is then performed based on whether X114/(Y57×2) is greater than the threshold value α (see
Hereafter, each time a latest detected element S, W is detected, the processing technique similar to the above is repeated.
Similar to the above, the ordinal number k in
<Control Procedure>
Referring next to
In
First, at step S10, the CPU 191 determines whether transport of the ink ribbon 93 is started by the drive of the platen roller 62 and the ribbon take-up shaft 63 by the drive motor 103. If negative, this determination is not satisfied (S10: NO), resulting in loop wait until it is satisfied. If affirmative, this determination is satisfied (S10: YES), allowing the procedure to go to step S15. As described above, the encoder plate 25 starts to rotate in conjunction with the start of transport so that the photosensor 26 starts to detect each detected element S, W of the encoder plate 25 in rotation.
At step S15, the CPU 191 acquires the total number M (M=64 in the example shown in
At step S20, the CPU 191 sets the value of a variable N to N=0. Subsequently, the procedure goes to step S25.
At step S25, it is determined whether the photosensor 26 has detected an (N+1)th detected element (initially, since N=0, a first detected element) S, W on the encoder plate 25, in other words, whether a detection pulse (see
At step S30, the CPU 191 calculates an (N+1)th (initially, since N=0, a first) pulse index value PN+1, based on the result of detection at step S25 (see also
At step S32, the CPU 191 determines whether the value of N is greater than or equal to 1 at that point of time. If N<1 (i.e. N=0), the determination is not satisfied (step S32: NO), the procedure returns to step S25 after addition of 1 to N at step S33, repeating similar steps. If N≧1, the determination is satisfied (step S32: YES), allowing the procedure to shift to step S35.
At step S35, the CPU 191 calculates a determination target value XN=PN+1+PN from an (N+1)th pulse count index value PN+1 calculated at step S30 and a preceding Nth pulse count index value PN (already figured out at step S30 before returning to step S25 via step S33 from step S32).
Subsequently, at step S40, the CPU 191 determines whether the value of N at that point of time is less than or equal to the value of M acquired at step S15 (N≦M). If N>M, this determination is not satisfied (S40: NO), allowing the procedure to shift to step S50 described later, whereas if N≦M, this determination is satisfied (S40: YES), allowing a shift to step S45.
At step S45, the CPU 191 determines whether N is an odd number. If negative (i.e. it is an even number), this determination is not satisfied (S45: NO), allowing a shift to step S60 described later. If affirmative, this determination is satisfied (S45: YES), allowing a shift to step S55.
At step S55, the CPU 191 determines a natural number k meeting N=2k−1, thereafter shifting to step S75.
At step S75, the CPU 191 determines whether N is greater than or equal to 3 (N≧3). If N is less than 3, this determination is not satisfied (S75: NO), allowing a shift to step S140, whereas if N is greater than or equal to 3, this determination is satisfied (S75: YES), allowing a shift to step S85.
At step S85, the CPU 191 figures out a mean value Yk−1 (see
On the other hand, at step S60 to which the procedure has shifted as a result of non-satisfaction in the determination at step S45, the CPU 191 determines a natural number k meeting N=2k, thereafter shifting to step S80.
At step S80, the CPU 191 determines whether N is greater than or equal to 4 (N≧4). If negative, this determination is not satisfied (S80: NO), allowing a shift to step S140 described later, whereas if affirmative, this determination is satisfied (S80: YES), allowing a shift to step S90.
At step S90, the CPU 191 figures out a mean value Yk−1 (see
At step S105, the CPU 191 figures out a value of XN−1/2Yk−1 for determination of the consumption completion status of the ink ribbon 93, in accordance with the result of calculation at step S35 up to that point of time and the result of calculation at step S85 or S90.
Subsequently, at step S120, the CPU 191 determines whether the value of XN−1/2Yk−1 figured out at step S105 is greater than the threshold value α. If negative, this determination is not satisfied (S120: NO), allowing a shift to step S140 described later. If affirmative, this determination is satisfied (S120: YES), allowing a shift to step S130.
At step S130, the CPU 191 executes a predetermined tape end process (e.g. a proper informing process such as a predetermined alarm display or stop of transport of the ink ribbon 93), to end this flow.
On the other hand, at step S50 to which the procedure has shifted as a result of non-satisfaction in the determination at step S40, in the same manner as in step S45, the CPU 191 determines whether N is an odd number. If negative (i.e. it is an even number), this determination is not satisfied (S50: NO), allowing a shift to step S70 described later. If affirmative, this determination is satisfied (S50: YES), allowing a shift to step S65.
At step S65, in the same manner as in step S55, the CPU 191 determines a natural number k meeting N=2k−1, thereafter shifting to step S95.
At step S95, the CPU 191 figures out a mean value Yk−1 (see
On the other hand, at step S70 to which the procedure has shifted as a result of non-satisfaction in the determination at step S50, in the same manner as in step S60, the CPU 191 determines a natural number k meeting N=2k, thereafter shifting to step S100.
At step S100, the CPU 191 figures out a mean value Yk−1 (see
At step S110, the CPU 191 figures out a value of XN−1/2Yk−1 for determination of the consumption completion status of the ink ribbon 93, in accordance with the result of calculation at step S35 up to this point of time and the result of calculation at step S95 or S100, thereafter shifting to step S125 described later.
At step S125, the CPU 191 determines whether the value of XN−1/2Yk−1 calculated at step S110 or the value of XN−1/2Yk calculated at step S115 is greater than the threshold value α. If negative, this determination is not satisfied (S125: NO), allowing a shift to step S140 described later. If affirmative, this determination is satisfied (S125: YES), allowing a shift to step S135.
At step S135, in the same manner as in step S130, the CPU 191 executes a predetermined tape end process (e.g. a proper informing process such as a predetermined alarm display or stop of transport of the ink ribbon 93), to end this flow.
On the other hand, at step S140 to which the procedure has shifted as a result of non-satisfaction in the determination at steps S75, S120, S80, and S125, it is determined whether transport of the ink ribbon 93 started at step S10 has terminated. If negative, this determination is not satisfied (S140: NO), and 1 is added to the value of N at step S145, after which the procedure goes back to step S25 for repetition of similar processes. If affirmative, the determination at step S140 is satisfied (S140: YES), bringing this flow to an end.
<Advantages of the Embodiment>
In this embodiment, as has been described hereinabove, first at step S35, the CPU 191 figures out the determination target value XN=PN+PN+1 from the N-th pulse count index value PN and the (N+1)th pulse count index value PN+1 adjoining thereto. This has significance which follows. In the case that the optical detection is applied to the encoder plate 25 as above, both the slits of the encoder plate 25 and the shielding portions W between the slits S act as the detected elements. In this case, the optical detection by the photosensor 26 allows detection of a convex pulse from the slit S and detection of a concave pulse from the shielding portion W for example (see also the example of
Nevertheless, actually, as shown in
As shown in
Regardless of occurrence of the above influences, however, the total duration of one convex pulse and one concave pulse is unvaried that is expressed as duration to (see
In this embodiment, the CPU 191 calculates mean value Yk−1 or Yk of a plurality of consecutive pulse count index values P within a predetermined range at steps S85, S90, S95, and S100, and thereafter applies predetermined arithmetic operations to the determination target value XN and the mean value Yk−1 or Yk at subsequent steps S105, S110, and S115, to figure out XN−1/2Yk−1 or XN−1/2Yk. The mean value Yk−1 or Yk of the plurality of pulse count index values P as described above can be used as the past actual value having high reliability without any influence of variations and fluctuations of the pulse count index values P in the subsequent arithmetic operation for calculating XN−1/2Yk−1 or XN−1/2Yk.
In this embodiment, the CPU 191 performs the above arithmetic processing from moment to moment while incrementing N with the consumption of the ink ribbon 93, and determines whether the ink ribbon 93 has reached the consumption completion status in accordance with the magnitude relation between XN−1/2Yk−1 or XN−1/2Yk calculated from moment to moment and the above threshold value α. This enables the consumption completion status of the ink ribbon 93 to be detected more promptly and with higher accuracy than the technique of simply detecting an arrival at a termination definition pulse count of a pulse count value corresponding to the amount of transport of the ink ribbon 93 or than the technique of simply waiting non-detection of the detected element S, W at the time of output of a predetermined number of drive pulses as described above.
Particularly in this embodiment, as described earlier using
Particularly in this embodiment, as described earlier using
Particularly, in this embodiment, as described using
The present disclosure is not intended to be limited to the above embodiment and may variously be modified without departing from its spirit and technical idea. Such modification examples will hereinafter be described in due course.
(1) Case of Using Threshold Value β Different from α
For example, it may be determined whether the ink ribbon 93 has reached the consumption completion status, in accordance with comparison of magnitude between the value of the pulse index value P calculated at step S30 every time step S30 of
According to this modification example, the consumption completion status is determined in accordance with the value itself of the latest pulse count index value P, using the threshold value β, in addition to the technique of determining the consumption completion status based on the magnitude comparison between XN−1/2Yk−1 (or XN−1/2Yk) and the threshold value α, with the result that the consumption completion status of the ink ribbon 93 can be detected more reliably.
(2) Application to Medium Other than Ink Ribbon
Although in the above embodiment, description has been given of the case by way of example where the elongated medium whose consumption completion status is to be determined is a thermal transfer ribbon that performs a thermal transfer onto the tube 9 by heat from the printing head 61, this is not limitative. The elongated medium may be a print-receiving tape fed out and consumed, when print is executed, from a proper roll into which the tape is wound in advance. The above technique may be applied to such a print-receiving tape. Furthermore, the elongated medium may be a print-receiving tube like the tube 9 as long as it is fed out and consumed, when print is executed, from a proper roll into which the tube is wound in advance. The above technique may be applied to such a print-receiving tube.
(3) Exclusion of Durations Immediately Before and after Cutting
For example, in the case of using the print-receiving tape or the print-receiving tube as the elongated medium as described in (2), the tape or tube may be cut off by a cutter (the cutter 64 in this example) disposed within the printer so that it has a user's desired length after the formation of print by the printing head. This modification example deals with such a case and does not perform the determination related to the consumption completion status as described above for predetermined durations before and after the cutting action by the cutter, but performs the determination related to the consumption completion status at timings other than the predetermined durations.
Since in this embodiment, the unstable state of action at the time of cutting by the cutter is excluded from the determination target, the adverse effect arising from the unstable states can be eliminated and a more reliable and accurate detection of the consumption completion status is feasible.
(4) Others
In the case that “vertical”, “parallel”, “plane”, etc. appear in the above description, those terms are not used in a strict sense. Those “vertical”, “parallel”, “plane”, etc. allow designing or manufacturing tolerances and errors and mean “substantially vertical”, “substantially parallel”, “substantial plane”, etc., respectively.
In the case that there are expressions that the dimensions or sizes on appearance are “same”, “equal”, and “different” in the above description, those expressions are not used in a strict sense. Those “same”, “equal”, “different”, etc. allow designing or manufacturing tolerances and errors and mean “substantially same”, “substantially equal”, “substantially different”, etc., respectively. It is to be noted, however, that when there are described given criterion values or sectionalizing values, such as threshold values or reference values, the terms “same”, “equal”, “different”, etc. used therewith have their respective strict senses, dissimilar to the above.
In the above, arrows shown in
The flowchart of
Other than the above, techniques based on the embodiment and the modification examples may appropriately be combined for utilization.
Number | Date | Country | Kind |
---|---|---|---|
2016-071861 | Mar 2016 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
9272536 | Tanaka | Mar 2016 | B2 |
20110292150 | Ishii et al. | Dec 2011 | A1 |
Number | Date | Country |
---|---|---|
2001-047717 | Feb 2001 | JP |
2011-245758 | Dec 2011 | JP |
Number | Date | Country | |
---|---|---|---|
20170282622 A1 | Oct 2017 | US |