Printer
20170282622 · 2017-10-05
Inventors
Cpc classification
B41J35/36
PERFORMING OPERATIONS; TRANSPORTING
B41J33/54
PERFORMING OPERATIONS; TRANSPORTING
B41J2/355
PERFORMING OPERATIONS; TRANSPORTING
International classification
B41J35/36
PERFORMING OPERATIONS; TRANSPORTING
B41J33/54
PERFORMING OPERATIONS; TRANSPORTING
Abstract
The disclosure discloses a printer including a memory. The memory stores computer-executable instructions that, when executed by a processor, cause the printer to perform a first process, a second process, and a third process. In the first process, an N-th determination target value is calculated, from an N-th pulse count index value and an (N+1).sup.th pulse count index value. In the second process, a mean value of a plurality of consecutive pulse count index values within a predetermined range is calculated. In the third process, a comparison value is calculated by comparing (N−1).sup.th the determination target value with the mean value. The first process to the third process are performed while increasing N one by one. A first determination step includes determining whether the elongated medium has reached a consumption completion status or not, on the basis of a magnitude relation between the comparison value and a first threshold value.
Claims
1. A printer comprising: a feeder 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 said elongated medium is wound; a pulse motor configured to drive said feeder; a drive control device configured to output a pulse signal for driving said pulse motor; a body to be detected that is configured to rotate in conjunction with rotation of said roll, and includes M (M is an integer greater than or equal to 2) detected elements along a circumferential direction; an optical detection device configured to optically detect said detected elements of said body to be detected; a processor; and a memory, said memory storing computer-executable instructions that, when executed by said processor, cause said printer to perform: a comparison value calculation step; an index value detection step; and a first determination step, said index value detection step including: detecting a pulse count index value expressed by a pulse count of said pulse signal per one of said detected elements, in sequence for each of said detected elements, in accordance with transport of said elongated medium by said feeder driven by said pulse motor, said comparison value calculation step including: a first process for calculating an N-th determination target value to be determined, 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).sup.th pulse count index value adjoining the N-th pulse count index value, among a plurality of said pulse count index values detected in sequence at said index value detection step; a second process for calculating a mean value of a plurality of consecutive pulse count index values within a predetermined range with its latest value being an (N−1).sup.th pulse count index value when N is an odd number greater than or equal to 3 or an (N−2).sup.th pulse count index value when N is an even number greater than or equal to 4, among the plurality of said pulse count index values detected in sequence at said index value detection step; and a third process for calculating a comparison value by comparing, with using a predetermined arithmetic operation, (N−1).sup.th said determination target value among said determination target values calculated in sequence in said first process with said mean value calculated in said second process, said first process to said third process being performed in sequence while increasing N one by one with consumption of said elongated medium, said first determination step including determining whether said elongated medium wound around the outer periphery of said roll has reached a consumption completion status or not, on the basis of a magnitude relation between said comparison value calculated at said comparison value calculation step and a predetermined first threshold value.
2. The printer according to claim 1, wherein slits disposed on said body to be detected and portions between two adjacent said slits function as said detected elements.
3. The printer according to claim 1, wherein after detection of one of the detected elements by said optical detection device, said index value detection step is performed based on the result of the detection.
4. The printer according to claim 1, wherein after completion of detection of M pulse count index values equal to the number of said detected elements in said index value detection step, after start of transport by said feeder, in said second process of said comparison value calculation step, a mean value of latest said M pulse count index values within said predetermined range is calculated.
5. The printer according to claim 1, wherein before completion of detection of M pulse count index values equal to the number of said detected elements in said index value detection step, after start of transport by said feeder, in said second process of said comparison value calculation step, a mean value of less than said M pulse count index values within said predetermined range is calculated.
6. The printer according to claim 1, wherein in said first process of said comparison value calculation step, as said N-th determination target value, a total value of said N-th pulse count index value and said (N+1).sup.th pulse count index value is calculated, and wherein in said third process of said comparison value calculation step, said comparison value is calculated by comparing (N−1).sup.th said total value based on a result of calculation in said first process with said mean value calculated in said second process.
7. The printer according to claim 6, wherein in said third process of said comparison value calculation step, said comparison value is calculated by dividing said (N−1).sup.th said total value based on the result of calculation in said first process by the double of said mean value calculated in said second process, and in said first determination step, it is determined that said elongated medium has reached said consumption completion status in the case that said comparison value calculated in said third process becomes greater than said first threshold value.
8. The printer according to claim 1, wherein said memory stores instructions that, when executed by said processor, cause said printer to further perform a second determination step for determining, separately from determination in said first determination step, whether said elongated medium has reached said consumption completion status or not, on the basis of a magnitude relation between latest said pulse count index value detected in said index value detection step and a predetermined second threshold value.
9. The printer according to claim 1, wherein in said first determination step, a determination related to said consumption completion status is not performed for a first predetermined period immediately after start of transport by said feeder and the determination related to said consumption completion status is started after the elapse of said first predetermined period.
10. The printer according to claim 1, further comprising a printing head configured to form print on a print-receiving medium, wherein said elongated medium is a thermal transfer ribbon configured to perform a thermal transfer on said print-receiving medium by heat from said printing head, or is said print-receiving medium.
11. The printer according to claim 10, further comprising a cutter configured to cut said print-receiving medium after print formation by said printing head, wherein in said first determination step, a determination related to said consumption completion status is not performed during a second predetermined period before and after a cutting action by said cutter, and the determination related to said consumption completion status is performed at timing other than said second predetermined period.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0013]
[0014]
[0015]
[0016]
[0017]
[0018]
[0019]
[0020]
[0021]
[0022]
[0023]
[0024]
[0025]
[0026]
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0027] An embodiment of the present disclosure will now be described with reference to the drawings.
<Overall Schematic Configuration>
[0028] Referring first to
[0029] In
[0030] 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.
[0031] When closed on the body case 11 (see
[0032] 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.
[0033] A ribbon cassette mounting part 30 and a tube mounting part 40 are arranged on the mounting surface 11A.
[0034] 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.
[0035] 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.
[0036] In this case, as shown in
[0037] 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
[0038] 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.
[0039] On the other hand, a rotation shaft 35 is disposed on the ribbon cassette mounting part 30. As shown in
[0040] 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
[0041] 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
[0042] Referring back to
[0043] The printer 1 comprises a control substrate 19, a power supply part 18 (see
[0044] The control substrate 19 is a substrate having a control circuit 190 described later (see
[0045] 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
[0046] 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.
[0047] 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
[0048] 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
[0049] 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.
[0050] 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.
[0051] The cutter motor 105 outputs a driving force for activating the cutter 64.
[0052] 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.
[0053] 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>
[0054] Referring next to
[0055] In
[0056] The ROM 192 stores various programs (including a control program executing process steps of a flowchart shown in
[0057] 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.
[0058] 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.
[0059] 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>
[0060] 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.
[0061] 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.
[0062] 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>
[0063] 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>
[0064] 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.
[0065] In the example shown in
[0066] 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
[0067] 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
[0068] 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>
[0069] 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>
[0070] 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).
[0071] 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
[0072] Subsequently, when a second detected element S, W is detected and a corresponding pulse index value P2 is calculated (see
[0073] Subsequently, when a third detected element S, W is detected and a corresponding pulse index value P3 is figured out (see
[0074] Subsequently, similarly, when a fourth detected element S, W is detected and a corresponding pulse index value P4 is figured out (see
[0075] Subsequently, similarly, when a fifth detected element S, W is detected and a corresponding pulse index value P5 is figured out (see
[0076] Subsequently, similarly, when a sixth detected element S, W is detected and a corresponding pulse index value P6 is figured out (see
[0077] Subsequently, similarly, when a seventh detected element S, W is detected and a corresponding pulse index value P7 is figured out (see
[0078] Subsequently, similarly, when an eighth detected element S, W is detected and a corresponding pulse index value P8 is figured out (see
[0079] Subsequently, similarly, when a ninth detected element S, W is detected and a corresponding pulse index value P9 is figured out (see
[0080] Subsequently, similarly, when a tenth detected element S, W is detected and a corresponding pulse index value P10 is figured out (see
[0081] An ordinal number k in
<After Encoder Plate Exceeds One Turn of Rotation>
[0082] 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).
[0083] For example, when a 109.sup.th 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
[0084] Subsequently, in the same manner, when a 110.sup.th detected element S, W is detected and a corresponding pulse index value P110 is figured out (see
[0085] In the same manner, when a 111.sup.th 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
[0086] In the same manner, when a 113.sup.th 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
[0087] In the same manner, when a 115.sup.th 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
[0088] Hereafter, each time a latest detected element S, W is detected, the processing technique similar to the above is repeated.
[0089] Similar to the above, the ordinal number k in
<Control Procedure>
[0090] Referring next to
[0091] In
[0092] 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.
[0093] At step S15, the CPU 191 acquires the total number M (M=64 in the example shown in
[0094] At step S20, the CPU 191 sets the value of a variable N to N=0. Subsequently, the procedure goes to step S25.
[0095] At step S25, it is determined whether the photosensor 26 has detected an (N+1).sup.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
[0096] At step S30, the CPU 191 calculates an (N+1).sup.th (initially, since N=0, a first) pulse index value P.sub.N+1, based on the result of detection at step S25 (see also
[0097] 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.
[0098] At step S35, the CPU 191 calculates a determination target value X.sub.N=P.sub.N+1+P.sub.N from an (N+1).sup.th pulse count index value P.sub.N+1 calculated at step S30 and a preceding N.sup.th pulse count index value P.sub.N (already figured out at step S30 before returning to step S25 via step S33 from step S32).
[0099] 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.
[0100] 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.
[0101] At step S55, the CPU 191 determines a natural number k meeting N=2k−1, thereafter shifting to step S75.
[0102] 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.
[0103] At step S85, the CPU 191 figures out a mean value Y.sub.k−1 (see
[0104] 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.
[0105] 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.
[0106] At step S90, the CPU 191 figures out a mean value Y.sub.k−1 (see
[0107] At step S105, the CPU 191 figures out a value of X.sub.N−1/2Y.sub.k−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.
[0108] Subsequently, at step S120, the CPU 191 determines whether the value of X.sub.N−1/2Y.sub.k−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.
[0109] 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.
[0110] 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.
[0111] 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.
[0112] At step S95, the CPU 191 figures out a mean value Y.sub.k−1 (see
[0113] 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.
[0114] At step S100, the CPU 191 figures out a mean value Y.sub.k−1 (see
[0115] At step S110, the CPU 191 figures out a value of X.sub.N−1/2Y.sub.k−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.
[0116] At step S125, the CPU 191 determines whether the value of X.sub.N−1/2Y.sub.k−1 calculated at step S110 or the value of X.sub.N−1/2Y.sub.k 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.
[0117] 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.
[0118] 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>
[0119] In this embodiment, as has been described hereinabove, first at step S35, the CPU 191 figures out the determination target value X.sub.N=P.sub.N+P.sub.N+1 from the N-th pulse count index value P.sub.N and the (N+1).sup.th pulse count index value P.sub.N+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
[0120] Nevertheless, actually, as shown in
[0121] As shown in
[0122] 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
[0123] In this embodiment, the CPU 191 calculates mean value Y.sub.k−1 or Y.sub.k 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 X.sub.N and the mean value Y.sub.k−1 or Y.sub.k at subsequent steps S105, S110, and S115, to figure out X.sub.N−1/2Y.sub.k−1 or X.sub.N−1/2Y.sub.k. The mean value Y.sub.k−1 or Y.sub.k 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 X.sub.N−1/2Y.sub.k−1 or X.sub.N−1/2Y.sub.k.
[0124] 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 X.sub.N−1/2Y.sub.k−1 or X.sub.N−1/2Y.sub.k 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.
[0125] Particularly in this embodiment, as described earlier using
[0126] Particularly in this embodiment, as described earlier using
[0127] Particularly, in this embodiment, as described using
[0128] 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 α
[0129] 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
[0130] 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 X.sub.N−1/2Y.sub.k−1 (or X.sub.N−1/2Y.sub.k) 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
[0131] 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
[0132] 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.
[0133] 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
[0134] 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.
[0135] 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.
[0136] In the above, arrows shown in
[0137] The flowchart of
[0138] Other than the above, techniques based on the embodiment and the modification examples may appropriately be combined for utilization.