The present application claims priority from Japanese Patent Application No. 2017-147594, which was filed on Jul. 31, 2017, the disclosure of which is herein incorporated by reference in its entirety.
The following disclosure relates to a printing apparatus, a non-transitory storage medium storing a program executable by a computer of the printing apparatus, and a method of controlling the printing apparatus.
There is known a printing apparatus on which a cassette containing a printing medium such as a tape is mounted and which performs printing on the printing medium drawn from the mounted cassette. Such a printing apparatus preferably obtains conditions of the printing medium contained in the mounted cassette. Examples of the conditions include the width of the printing medium and a remaining amount of the printing medium, and the conditions will be hereinafter referred to as “medium conditions”. The obtainment of the medium conditions enables the printing apparatus to determine, based on the medium conditions obtained from the cassette, whether printing can be performed based on designated printing conditions (e.g., the number of characters and the size of the characters) and notify a user of a result of the determination, for example.
There is known an image forming apparatus capable of performing wireless communication with an ID chip provided on a sub-unit such as a toner bottle and a photoconductor unit. The image forming apparatus determines whether the sub-unit is mounted or removed, based on a state of the cover and the presence or absence of a reply about an ID number from the sub-unit. When the sub-unit is mounted or removed, the image forming apparatus obtains all the data from the ID chip.
To reduce power consumption for communication between a printing apparatus and a cassette, the printing apparatus preferably communicates with the cassette only in a case where medium conditions in the cassette are required. In the case where the above-described technique is applied, however, communication for obtaining the medium conditions is always performed when the cassette is mounted and removed. Thus, the communication with the cassette is performed also in the case where the medium conditions are not required in the printing apparatus, resulting in unnecessary electric power consumed in the communication with the cassette.
Accordingly, an aspect of the disclosure relates to a printing apparatus, a non-transitory storage medium storing a program executable by a computer of the printing apparatus, and a method of controlling the printing apparatus, which are capable of efficiently performing communication with a cassette to reduce power consumption.
In one aspect of the disclosure, a printing apparatus includes: a mount portion configured to support a cassette such that the cassette is removable, the cassette being configured to contain a printing medium and including a cassette storage configured to store medium information related to the printing medium; a printing device configured to draw the printing medium from the cassette mounted on the mount portion and perform printing on the printing medium; and a controller configured to perform: when the printing apparatus is in a required state in which the medium information stored in the cassette storage of the cassette mounted on the mount portion is required, executing obtaining-communication for obtaining the medium information from the cassette mounted on the mount portion, each time when a first cycle has elapsed; and when the printing apparatus is in a non-required state in which the medium information stored in the cassette storage of the cassette mounted on the mount portion is not required, inhibiting execution of the obtaining-communication or executing the obtaining-communication each time when a second cycle greater than the first cycle has elapsed.
In another aspect of the disclosure, a non-transitory storage medium storing a program executable by a computer of a printing apparatus, the printing apparatus including: a mount portion configured to support a cassette such that the cassette is removable, the cassette being configured to contain a printing medium and including a cassette storage configured to store medium information related to the printing medium; and a printing device configured to draw the printing medium from the cassette mounted on the mount portion and perform printing on the printing medium, the program, when executed by the computer, causing the printing apparatus to perform: when the printing apparatus is in a required state in which the medium information stored in the cassette storage of the cassette mounted on the mount portion is required, executing obtaining-communication for obtaining the medium information from the cassette mounted on the mount portion, each time when a first cycle has elapsed; and when the printing apparatus is in a non-required state in which the medium information stored in the cassette storage of the cassette mounted on the mount portion is not required, inhibiting execution of the obtaining-communication or executing the obtaining-communication each time when a second cycle greater than the first cycle has elapsed.
In yet another aspect of the disclosure, a method of controlling a printing apparatus, the printing apparatus including: a mount portion configured to support a cassette such that the cassette is removable, the cassette being configured to contain a printing medium and including a cassette storage configured to store medium information related to the printing medium; a printing device configured to draw the printing medium from the cassette mounted on the mount portion and perform printing on the printing medium; and a controller configured to execute the method, the method including: when the printing apparatus is in a required state in which the medium information stored in the cassette storage of the cassette mounted on the mount portion is required, executing obtaining-communication for obtaining the medium information from the cassette mounted on the mount portion, each time when a first cycle has elapsed; and when the printing apparatus is in a non-required state in which the medium information stored in the cassette storage of the cassette mounted on the mount portion is not required, inhibiting execution of the obtaining-communication or executing the obtaining-communication each time when a second cycle greater than the first cycle has elapsed.
The objects, features, advantages, and technical and industrial significance of the present disclosure will be better understood by reading the following detailed description of the embodiments, when considered in connection with the accompanying drawings, in which:
Hereinafter, there will be described embodiments by reference to the drawings. A printing apparatus 1 is configured to create a label by printing print information on a tape 50 (see
As illustrated in
As illustrated in
As illustrated in
A rectangular board 36 elongated in the right and left direction is provided at a right portion of a lower surface of the cassette casing 33. An IC chip, not illustrated, and a pair of cassette terminals 37 are provided on the board 36. The pair of cassette terminals 37 are provided on a lower surface of the board 36. Each of the pair of cassette terminals 37 is a rectangular metal terminal. The cassette terminals 37 are arranged next to each other in the right and left direction. The IC chip is mounted on an upper surface of the board 36. The IC chip is electrically connected to both of the cassette terminals 37. The IC chip at least includes a cassette storage 360 (see
As illustrated in
The printing apparatus 1 drives the tape driving shaft 82 to draw the tape 50 from the tape spool 40 of the tape cassette 30. The printing apparatus 1 controls the thermal head 83 to heat the unused ink ribbon to perform printing on the tape 50. The printing apparatus 1 drives the platen mechanism 84 to convey the tape 50 and the ink ribbon such that the tape 50 and the ink ribbon are in pressing contact with the thermal head 83.
The terminal holder 16 is disposed on a lower right portion of the mount portion 8. The terminal holder 16 is provided movably in the up and down direction and urged upward by an urging member, not illustrated. A pair of apparatus terminals 17 are provided on an upper surface of the terminal holder 16. Each of the apparatus terminals 17 is a rectangular metal terminal. The apparatus terminals 17 are arranged next to each other in the right and left direction. In the state in which the tape cassette 30 is mounted in the mount portion 8, the apparatus terminals 17 are in contact with the respective cassette terminals 37 of the tape cassette 30 (see
There will be next described an electric configuration of the printing apparatus 1 with reference to
Devices connected to the input/output interface 77 include the keyboard 3, a liquid-crystal-display driving circuit (LCDC) 25, drive circuits 26, 27, 28, a communication device 15, and an external interface (I/F) 19. The LCDC 25 includes a video RAM, not illustrated, for outputting display data to the display 5. The drive circuit 26 is an electronic circuit for driving the thermal head 83. The drive circuit 27 is an electronic circuit for driving the tape conveying motor 23. The drive circuit 28 is an electronic circuit for driving the cut motor 24. The external interface 19 is connectable to an external device 19A, not illustrated, to communicate therewith. For example, the CPU 71 stores the program received from the external device 19A, into the flash memory 75 to update the program. The external device 19A is a general-purpose personal computer (PC) or a mobile terminal.
The communication device 15 performs contact-type communication with the tape cassette 30 via the pair of cassette terminals 37 and the pair of apparatus terminals 17 in the state in which the cassette terminals 37 of the tape cassette 30 and the respective apparatus terminals 17 of the terminal holder 16 are in contact with each other. A method of the contact-type communication to be performed is a digital amplitude modulation method. The communication performed via the pair of cassette terminals 37 and the pair of apparatus terminals 17 enables the CPU 71 to read the medium information stored in the cassette storage 360 of the tape cassette 30.
In the case where an apparatus terminal 17A of the pair of apparatus terminals 17 is in contact with the cassette terminal 37A, and an apparatus terminal 17B of the pair of apparatus terminals 17 is in contact with the cassette terminal 37B (see
Thus, even in the case where the positions of the cassette terminals 37 are reversed in the right and left direction with respect to the apparatus terminals 17 by the contact-type communication using the digital amplitude modulation method between the printing apparatus 1 and the tape cassette 30, the CPU 71 can accurately recognize whether the bit is “1” or “0”, based on the signal output from the pair of cassette terminals 37. This accurate recognition enables the CPU 71 to accurately obtain the medium information about the tape cassette 30 even in the case where the positions of the cassette terminals 37 are reversed in the right and left direction with respect to the apparatus terminals 17.
States of the printing apparatus 1 include: a state in which the medium information stored in the cassette storage 360 of the tape cassette 30 mounted on the mount portion 8 is required (hereinafter referred to as “required state”); and a state in which the medium information is not required (hereinafter referred to as “non-required state”). For example, the CPU 71 establishes the required state as the state of the printing apparatus 1 when any of the following conditions (1)-(3) is satisfied.
The condition (1) is a condition that the condition of printing to be performed by the thermal head 83 is calculated based on the medium information. For example, it is assumed that an instruction for starting printing of print information constituted by a designated character string is input via the keyboard 3. In this case, the CPU 71 needs to perform calculation based on the medium information about the tape cassette 30 mounted on the mount portion 8 (e.g., the type and the remaining amount of each of the tape 50 and the ink ribbon) to determine printing conditions (settings) such as the size of each character, a printing density, and a heating temperature of the thermal head 83. Since the CPU 71 needs to obtain the medium information from the tape cassette 30 mounted on the mount portion 8, the CPU 71 establishes the required state as the state of the printing apparatus 1 in this case.
The condition (2) is a condition that display information specified based on the medium information is being displayed on the display 5. The printing apparatus 1 in some cases controls the display 5 to display the display information specified based on the medium information about the tape cassette 30 mounted on the mount portion 8 (e.g., the type and the remaining amount of each of the tape 50 and the ink ribbon). In this case, the CPU 71 needs to obtain the medium information from the tape cassette 30 to specify the display information. Accordingly, the CPU 71 establishes the required state as the state of the printing apparatus 1 in the case where the display information is being displayed on the display 5.
The condition (3) is a condition that the print information to be printed by the thermal head 83 is being edited. In the case where the printing apparatus 1 is being operated in a mode for editing the print information, the display 5 in some cases displays the print information being edited and the display information specified based on the medium information about the tape cassette 30 mounted on the mount portion 8 (e.g., the type and the remaining amount of each of the tape 50 and the ink ribbon). One example of the display information is the length of a portion of the tape 50 on which the print information is to be printed (noted that this length will be referred to as “printing length”). The printing length changes depending upon the medium information about the tape cassette 30 mounted on the mount portion 8. This requires the CPU 71 to obtain the medium information from the tape cassette 30 and specify an appropriate printing length to display the printing length on the display 5. Accordingly, the CPU 71 establishes the required state as the state of the printing apparatus 1 in the case where the print information is being edited.
The CPU 71 establishes the non-required state as the state of the printing apparatus 1 in the case where none of the conditions (1)-(3) is established, that is, in the case where the condition of printing to be performed by the thermal head 83 is not calculated based on the medium information (condition (4)), the display information specified based on the medium information is not being displayed on the display 5 (condition (5)), and the print information to be printed by the thermal head 83 is not being edited (condition (6)).
Depending upon the state of the printing apparatus 1 (i.e., the required state or the non-required state), the CPU 71 switches a state of communication with the tape cassette 30, which is performed via the pair of cassette terminals 37 and the pair of apparatus terminals 17, in a main process which will be described below. Specifically, in the case where the printing apparatus 1 is in the required state, the CPU 71 performs, in first cycles, communication for obtaining the medium information from the tape cassette 30 mounted on the mount portion 8 (noted that this communication will be hereinafter referred to as “obtaining communication”). Each of the first cycles is five seconds, for example. In the case where the printing apparatus 1 is in the non-required state, the CPU 71 inhibits the communication with the tape cassette 30 mounted on the mount portion 8. This operation reduces consumption of electric power required for communication between the printing apparatus 1 and the tape cassette 30. The state of communication with the tape cassette 30 in the case where the printing apparatus 1 is in the required state will be hereinafter referred to as “first state”. The state of communication with the tape cassette 30 in the case where the printing apparatus 1 is in the non-required state will be hereinafter referred to as “second state”.
There will be next described a first embodiment with reference to
The flow in
The CPU 71 at S17 determines, based on the value of the timer variable, whether the first cycle has elapsed. When the CPU 71 determines that the first cycle has not elapsed (S17: NO), this flow goes to S27. The CPU 71 at S27 updates the timer variable by adding one to the timer variable, and this flow goes to S29. The CPU 71 at S29 determines whether the power source of the printing apparatus 1 has been turned off. When the CPU 71 determines that the power source of the printing apparatus 1 has not been turned off (S29: NO), this flow returns to S13.
When the timer variable is repeatedly updated, and the first cycle has elapsed (S17: YES), the CPU 71 at S19 determines whether the printing apparatus 1 at this point in time is in the required state. When the CPU 71 determines that the printing apparatus 1 is in the required state (S19: YES), the first cycle has elapsed in the required state. Thus, the CPU 71 at S21 starts the obtaining communication with the tape cassette 30. Since the printing apparatus 1 is in the required state, the state of communication with the tape cassette 30 is the first state, and the obtaining communication is performed in the first cycles. It is noted that, after the start of the obtaining communication at S21, this flow goes to S25 regardless of whether the obtaining communication is finished. In the case where the obtaining communication is finished, the CPU 71 executes a processing, not illustrated, to store the obtained medium information into the flash memory 75.
The CPU 71 at S25 initializes the timer variable by setting the timer variable at zero. The CPU 71 at S27 updates the timer variable by adding one to the timer variable, and this flow goes to S29. When the CPU 71 determines that the printing apparatus 1 at this point in time is in the non-required state (S19: NO), the CPU 71 at S23 inhibits the obtaining communication. Since the printing apparatus 1 is in the non-required state, the state of communication with the tape cassette 30 is the second state, and the obtaining communication is inhibited.
When the CPU 71 determines that the power source of the printing apparatus 1 has been turned off (S29: YES), the main process is terminated.
The CPU 71 at S19 determines whether the printing apparatus 1 is in the required state in which the medium information is required or the non-required state in which the medium information is not required. When the CPU 71 determines that the printing apparatus 1 is in the required state (S19: YES), the CPU 71 at S21 executes the obtaining communication at every first cycle to obtain the medium information from the tape cassette 30. When the CPU 71 determines that the printing apparatus 1 is in the non-required state (S19: NO), the CPU 71 at S23 inhibits the obtaining communication. With this configuration, in the case where the medium information is not required, the frequency of the obtaining communication is low, resulting in reduction in the power consumption required for the obtaining communication. This enables the printing apparatus 1 to efficiently obtain the medium information in the required state and reduce the power consumption in the non-required state.
In the case where the condition (1) is satisfied, the CPU 71 establishes the first state as the state of the printing apparatus 1, thereby frequently obtaining the medium information required for calculation of the printing condition. This configuration enables the printing apparatus 1 to appropriately execute print processing for the printing medium based on the printing condition. In the case where the condition (4) is satisfied, that is, in the case where the medium information is not required for the calculation of the printing condition, the CPU 71 establishes the second state as the state of the printing apparatus 1 to reduce the frequency of the obtaining communication, resulting in reduced power consumption.
In the case where the condition (2) is satisfied, the CPU 71 establishes the first state as the state of the printing apparatus 1, thereby frequently obtaining the medium information to display the display information on the display 5. This enables the printing apparatus 1 to accurately obtain the medium information about the tape cassette 30 mounted on the mount portion 8 to display the display information on the display 5. In the case where the condition (5) is satisfied, that is, in the case where the display information specified based on the medium information is not being displayed on the display 5, the CPU 71 establishes the second state as the state of the printing apparatus 1 to reduce the frequency of the obtaining communication, resulting in reduced power consumption.
In the case where the condition (3) is satisfied, the CPU 71 establishes the first state as the state of the printing apparatus 1, thereby frequently obtaining the medium information to display the display information, such as the printing length, on the display 5. This enables the printing apparatus 1 to accurately obtain the medium information about the tape cassette 30 mounted on the mount portion 8 to display the print information being edited on the display 5 in addition to the display information. In the case where the condition (6) is satisfied, that is, in the case where the print information is not being edited, the CPU 71 establishes the second state as the state of the printing apparatus 1 to reduce the frequency of the obtaining communication, resulting in reduced power consumption.
There will be next described a second embodiment with reference to
The CPU 71 at S17 determines, based on the value of the timer variable, whether the first cycle has elapsed. When the CPU 71 determines that the first cycle has elapsed (S17: YES), this flow goes to S19. When the CPU 71 determines that the printing apparatus 1 at this point in time is not in the required state (S19: NO), this flow goes to S27 at which the CPU 71 updates the timer variable. When the CPU 71 determines that the first cycle has not elapsed (S17: NO), this flow goes to S31 at which the CPU 71 determines, based on the value of the timer variable, whether the second cycle longer than the first cycle has elapsed. When the CPU 71 determines that the second cycle has not elapsed (S31: NO), this flow goes to S27.
When the timer variable is repeatedly updated, and the second cycle has elapsed (S31: YES), the CPU 71 at S33 determines whether the printing apparatus 1 at this point in time is in the non-required state. When the CPU 71 determines that the printing apparatus 1 is in the non-required state (S33: YES), the second cycle has elapsed in the non-required state. Thus, the CPU 71 at S35 starts the obtaining communication with the tape cassette 30. Since the printing apparatus 1 is in the non-required state, the state of communication with the tape cassette 30 is the second state, and the obtaining communication is performed in the second cycle longer than the first cycle. It is noted that, after the start of the obtaining communication at S35, this flow goes to S25 regardless of whether the obtaining communication is finished. In the case where the obtaining communication is finished, the CPU 71 executes the processing, not illustrated, to store the obtained medium information into the flash memory 75. When the CPU 71 determines that the printing apparatus 1 at this point in time is in the required state (S33: NO), this flow goes to S25.
When the CPU 71 determines that the printing apparatus 1 is in the non-required state (S33: YES), the CPU 71 at S35 performs the obtaining communication at every second cycle longer than the first cycle. With this configuration, in the case where the medium information is not required, the frequency of the obtaining communication is low, resulting in reduction in the power consumption required for the obtaining communication. Unlike the first embodiment, the medium information is obtained also in the non-required state in the second embodiment. This operation enables the CPU 71 to execute the processings using the medium information obtained in the non-required state just after the state of the printing apparatus 1 is switched from the non-required state to the required state, for example.
There will be next described a third embodiment with reference to
There will be next described the determination process with reference to
The CPU 71 at S43 determines whether the state of the printing apparatus 1 needs to be switched from the required state to the non-required state. When the CPU 71 determines that the state of the printing apparatus 1 needs to be switched from the non-required state to the required state (S43: NO), the CPU 71 at S47 switches the state of the printing apparatus 1 to the required state in response to an operation on the keyboard 3. The CPU 71 then terminates the determination process and returns to the main process (see
As illustrated in
When the state of the printing apparatus 1 is switched from the required state to the non-required state during the obtaining communication (S43: YES, S45: YES), after the obtaining communication being performed is finished (S45: NO), the CPU 71 at S47 switches the state of the printing apparatus 1 to the non-required state and at S23 inhibits the obtaining communication. In this case, the state of the printing apparatus 1 is switched from the required state to the non-required state to suspend the obtaining communication, thereby reducing obtainment of the inappropriate medium information.
There will be next described a fourth embodiment with reference to
As illustrated in
The CPU 71 at S53 determines whether the state of the printing apparatus 1 needs to be switched from the non-required state to the required state. When the CPU 71 determines that the state of the printing apparatus 1 needs to be switched from the required state to the non-required state (S53: NO), the CPU 71 at S57 switches the state of the printing apparatus 1 to the non-required state in response to an operation on the keyboard 3. The CPU 71 terminates the determination process and returns to the main process (see
As illustrated in
The CPU 71 at S55 initializes the timer variable when the state of the printing apparatus 1 is switched from the non-required state to the required state (S53: YES). The CPU 71 at S21 executes the obtaining communication at every first cycle measured from the timing of the change from the non-required state to the required state (S17: YES). In this case, when compared with the case where the timer variable is not initialized at S55, the frequency of the obtaining communication in the first state is reduced.
There will be next described a fifth embodiment with reference to
As illustrated in
The CPU 71 at S65 determines whether the state of the printing apparatus 1 is switched from the non-required state to the required state. When the state of the printing apparatus 1 is switched from the required state to the non-required state (S65: NO), the CPU 71 terminates the determination process and returns to the main process (see
The CPU 71 at S67 determines whether the first cycle has elapsed in the non-required state from which the state of the printing apparatus 1 has been switched. When the CPU 71 determines that the first cycle has elapsed at S17 (see
In the case where the state of the printing apparatus 1 is switched from the non-required state to the required state after the first cycle has elapsed in the non-required state from which the state of the printing apparatus 1 has been switched (S65: YES, S67: YES), the CPU 71 at S69 performs the obtaining communication at the timing when the state of the printing apparatus 1 is switched from the non-required state to the required state. This configuration enables the CPU 71 to obtain the medium information by executing the obtaining communication from the timing just after the state of the printing apparatus 1 is switched to the required state.
There will be next described a sixth embodiment with reference to
As illustrated in
The CPU 71 at S71 determines whether the state of the printing apparatus 1 has been switched from the non-required state to the required state (the condition (a) is satisfied) or the type of the required state of the printing apparatus 1 has been switched (the condition (b) is satisfied). When the state of the printing apparatus 1 has been switched from the required state to the non-required state (the condition (c) is satisfied) (S71: NO), this flow goes to S17. When the state of the printing apparatus 1 has been switched from the non-required state to the required state (the condition (a) is satisfied) or the type of the required state of the printing apparatus 1 has been switched (the condition (b) is satisfied) (S71: YES), this flow goes to S73. The CPU 71 at S73 determines the type of the required state by determining one of the conditions (1)-(3) which is satisfied by an operation on the keyboard 3 for switching the state of the printing apparatus 1 or the type of the required state. The CPU 71 at S75 sets the first cycle to the determined type. In this processings, the CPU 71 sets one of different values to a corresponding one of the conditions. For example, the CPU 71 sets one second as the first cycle when the condition (1) is satisfied, the CPU 71 sets third seconds as the first cycle when the condition (2) is satisfied, and the CPU 71 sets five seconds as the first cycle when the condition (3) is satisfied. Upon completion of this processing, this flow goes to S17.
When the CPU 71 determines that the first cycle set at S75 has elapsed (S17: YES), since the printing apparatus 1 at this point in time is in the required state (S19: YES), the CPU 71 at S21 starts the obtaining communication with the tape cassette 30 to obtain the medium information from the tape cassette 30.
When the CPU 71 determines that the state of the printing apparatus 1 or the type of the required state needs to be switched (S13: YES), the CPU 71 at S73 determines the type of the required state. The CPU 71 at S75 sets the first cycle according to the determined type of the required state. When the CPU 71 determines that the first cycle set at S73 has elapsed (S17: YES), the CPU 71 at S21 starts the obtaining communication and obtains the medium information from the tape cassette 30. This configuration enables the printing apparatus 1 to obtain the medium information by performing the obtaining communication in the first cycles related to the degree of the necessity of the medium information.
There will be next described a seventh embodiment with reference to
As illustrated in
The CPU 71 at S87 determines whether the state of the printing apparatus 1 needs to be switched from the required state to the non-required state in response to the operation performed at S83 on the keyboard 3. When the CPU 71 determines that the operation on the keyboard 3 is not for switching the state of the printing apparatus 1 or when the CPU 71 determines that the operation on the keyboard 3 is for keeping the required state (S87: NO), the CPU 71 terminates the determination process and returns to the main process (see
When the CPU 71 at S81 determines that the obtaining communication is not being performed (S81: NO), this flow goes to S91. The CPU 71 at S91 determines whether the state of the printing apparatus 1 needs to be switched from the required state to the non-required state or from the non-required state to the required state in response to the operation on the keyboard 3. When the CPU 71 determines that the state of the printing apparatus 1 need not be switched (S91: NO), the CPU 71 terminates the determination process and returns to the main process (see
When an operation on the keyboard 3 is accepted during the obtaining communication in the required state (S83: YES), the CPU 71 at S85 waits for the end of the obtaining communication. After the end of the obtaining communication (S85: YES), the CPU 71 at S87 determines whether the state of the printing apparatus 1 needs to be switched from the required state to the non-required state in response to the operation performed at S83 on the keyboard 3. When the CPU 71 determines that the operation on the keyboard 3 is for switching the state of the printing apparatus 1 from the required state to the non-required state (S87: YES), the CPU 71 at S89 switches the state of the printing apparatus 1 to the required state in response to an operation on the keyboard 3. This configuration enables the printing apparatus 1 to reduce switching from the required state to the non-required state during the obtaining communication.
There will be next described an eighth embodiment with reference to
As illustrated in
When the CPU 71 determines that the keyboard 3 has been operated during the obtaining communication in the required state (S83: YES), the CPU 71 at S101 determines, during the obtaining communication, whether the state of the printing apparatus 1 needs to be switched from the required state to the non-required state. When the CPU 71 determines that the operation on the keyboard 3 is for switching the state of the printing apparatus 1 from the required state to the non-required state (S101: YES), the CPU 71 at S103 suspends the obtaining communication being performed and at S105 switches the state of the printing apparatus 1 to the required state. This configuration enables the printing apparatus 1 to switch the state of the printing apparatus 1 from the required state to the non-required state even during the obtaining communication, resulting in immediate switching of the state.
There will be next described a ninth embodiment with reference to
As illustrated in
When the CPU 71 determines that the state of the printing apparatus 1 need not be switched (S113: NO), this flow goes to S117. The CPU 71 at S117 determines whether the printing apparatus 1 at this point in time is in the required state. When the CPU 71 determines that the printing apparatus 1 is in the required state (S117: YES), the operation performed on the keyboard 3 is an operation not requiring switching of the state of the printing apparatus 1 in the required state. In this case, the CPU 71 at S119 reads the medium information stored in the flash memory 75. The CPU 71 at S121 controls the display 5 to display display information specified based on the read medium information. The CPU 71 terminates the determination process and returns to the main process (see
When the medium information is obtained from the tape cassette 30 in the obtaining communication (S21), the CPU 71 stores the obtained medium information into the flash memory 75. When the keyboard 3 has been operated in the required state (S111: YES), and the operation is an operation not requiring switching of the state of the printing apparatus 1 from the required state to the non-required state (S113: NO), the CPU 71 at S119 reads the medium information stored in the flash memory 75 and at S121 controls the display 5 to display the display information specified based on the medium information. This configuration enables the printing apparatus 1 to appropriately specify, based on the medium information stored in the flash memory 75, the display information to be displayed on the display 5 in the required state, and display the specified display information on the display 5. When the operation not requiring switching of the state of the printing apparatus 1, the CPU 71 may update the display information displayed on the display 5, at the timing when the operation is performed.
There will be next described a tenth embodiment with reference to
In the tenth embodiment, it is assumed that the printing apparatus 1 is connected to the external device 19A (see
The type command indicates whether the processing to be executed by the CPU 71 based on the program is changed according to the medium information. For example, in the case where a processing executed based on a program adjusts the heating temperature of the thermal head 83 in accordance with the color of the tape 50 contained in the tape cassette 30, the program corresponds to a program which changes a processing in accordance with the medium information. In the case where a processing executed based on a program changes the settings of the printing apparatus 1, for example, the program corresponds to a program which does not change a processing in accordance with the medium information. The type of the program which changes the processing in accordance with the medium information will be hereinafter referred to as “first type”. The type of the program which does not change the processing in accordance with the medium information will be hereinafter referred to as “second type”.
As illustrated in
The CPU 71 at S133 determines whether the received command is the printing start command. When the CPU 71 determines that the received command is the printing start command (S133: YES), the printing apparatus 1 starts printing based on the print information to be received next. The CPU 71 at S139 does not change the state of the printing apparatus 1 by keeping it to the state established before the command is received. The CPU 71 terminates the determination process and returns to the main process (see
When the CPU 71 determines that the received command is not the printing start command (S133: NO), the CPU 71 at S135 determines whether the received command is the information obtaining command. When the CPU 71 determines that the received command is the information obtaining command (S135: YES), the CPU 71 reads the medium information stored in the flash memory 75 and transmits the read medium information to the external device 19A. The CPU 71 at S139 does not change the state of the printing apparatus 1 by keeping it to the state established before the command is received. The CPU 71 terminates the determination process and returns to the main process (see
When the CPU 71 determines that the received command is not the information obtaining command (S135: NO), the CPU 71 at S137 determines whether the received command is the program update command. When the CPU 71 determines that the received command is the program update command (S137: YES), the CPU 71 receives the type command and the program transmitted from the external device 19A next. The CPU 71 at S141 determines, based on the type command, whether the type of the program is the first type. When the CPU 71 determines that the type of the program is the first type (S141: YES), the CPU 71 is to update the program stored in the flash memory 75, to the program which changes the processing in accordance with the medium information stored in the flash memory 75. In this case, the CPU 71 at S143 establishes the non-required state as the state of the printing apparatus 1, and this flow goes to S147. When the CPU 71 determines that the type of the program is the second type (S141: NO), the CPU 71 is to update the program stored in the flash memory 75, to the program which does not change the processing in accordance with the medium information stored in the flash memory 75. In this case, the CPU 71 at S145 does not change the state of the printing apparatus 1 by keeping it to the state established before the command is received, and this flow goes to S147.
The CPU 71 at S147 stores the program received from the external device 19A, into the flash memory 75 to update the program. Upon completion of this processing, the CPU 71 terminates the determination process and returns to the main process (see
When the printing apparatus 1 has received the command from the external device 19A (S131: YES), and the CPU 71 determines that the received command is the program update command (S137: YES) and that the type is the first type (S141: YES), the CPU 71 updates the program stored in the flash memory 75, to the program which changes the processing in accordance with the medium information stored in the flash memory 75. In this case, the CPU 71 at S143 establishes the non-required state as the state of the printing apparatus 1 to inhibit the obtaining communication. This configuration enables the printing apparatus 1 to reduce execution of the obtaining communication during update of the program, making it possible to reduce execution of the obtaining communication during update of the program for execution of the processing based on the medium information.
While the embodiments have been described above, it is to be understood that the disclosure is not limited to the details of the illustrated embodiments, but may be embodied with various changes and modifications, which may occur to those skilled in the art, without departing from the spirit and scope of the disclosure. The method of printing of the printing apparatus 1 is not limited to the thermal transfer method. For example, the method of printing of the printing apparatus 1 may be a heat-sensitive method in which the thermal head 83 heats a heat-sensitive sheet to perform printing. In this case, the tape cassette 30 need not accommodate the ink ribbon. The cassette storage 360 of the IC chip of the tape cassette 30 may store only information related to the tape 50 as the medium information.
The conditions that the CPU 71 establishes the required state as the state of the printing apparatus 1 are not limited to the conditions (1)-(3). That is, the CPU 71 may determine the state of the printing apparatus 1 based on another condition or other conditions. The determination process in the third to tenth embodiments is not limited to a process applied to the main process in the third embodiment. For example, the determination process in the third to tenth embodiments may be executed in the main process (see
In the third embodiment, when the communication state is switched to the second state, the obtaining communication may be executed in the second cycles (see the second embodiment). In this configuration, when the CPU 71 determines that the state of the printing apparatus 1 needs to be switched from the non-required state to the required state in response to an operation on the keyboard 3 (S43: YES), the CPU 71 may switch the state of the printing apparatus 1 to the required state at S47 after the obtaining communication being performed is finished (S45: YES).
In the fourth embodiment, when the communication state is switched to the second state, the obtaining communication may be executed in the second cycles (see the second embodiment). In this configuration, when the CPU 71 determines that the state of the printing apparatus 1 needs to be switched from the required state to the non-required state in response to an operation on the keyboard 3 (S53: YES), the CPU 71 may initialize the timer variable at S55.
In the fifth embodiment, when the communication state is switched to the second state, the obtaining communication may be executed in the second cycles (see the second embodiment). In this configuration, when the CPU 71 determines that the state of the printing apparatus 1 needs to be switched from the required state to the non-required state in response to an operation on the keyboard 3 (S65: YES), the CPU 71 may determine at S67 whether the second cycle has elapsed in the required state before the switching. When the CPU 71 determines that the second cycle has elapsed (S67: YES), the printing apparatus 1 at S69 may perform the obtaining communication at the timing when the state of the printing apparatus 1 is switched from the required state to the non-required state.
In the seventh embodiment, when the communication state is switched to the second state, the obtaining communication may be executed in the second cycles (see the second embodiment). When the keyboard 3 is operated during the obtaining communication (S83: YES), after the end of the obtaining communication (S85: YES), the CPU 71 may at S87 determine whether the state of the printing apparatus 1 needs to be switched from the non-required state to the required state, and at S89 switch the state of the printing apparatus 1 from the non-required state to the required state.
In the eighth embodiment, when the communication state is switched to the second state, the obtaining communication may be executed in the second cycles (see the second embodiment). In this configuration, when an operation on the keyboard 3 is performed during the obtaining communication (S83: YES), and the CPU 71 determines that the state of the printing apparatus 1 needs to be switched from the non-required state to the required state (S101: YES), the CPU 71 may at S103 suspend the obtaining communication from being finished and at S105 switch the state of the printing apparatus 1 from the non-required state to the required state.
In the ninth embodiment, the CPU 71 may at S121 output, from a speaker, not illustrated, alarm information specified based on the medium information read from the flash memory 75.
In the tenth embodiment, when the CPU 71 determines that the command received from the external device 19A is the program update command (S137: YES), the CPU 71 may at S143 switch the state of the printing apparatus 1 to the non-required state regardless of the type command.
The method of communication performed via the pair of apparatus terminals 17 of the printing apparatus 1 and the pair of cassette terminals 37 of the tape cassette 30 is not limited to a digital modulation method and may be any of various wired communication methods such as a differential communication method. The printing apparatus 1 may use wireless communication to obtain the medium information stored in the cassette storage 360 of the tape cassette 30.
Each of the thermal head 83 and the tape conveying motor 23 is one example of a printing device. The flash memory 75 is one example of an apparatus storage.
Number | Date | Country | Kind |
---|---|---|---|
2017-147594 | Jul 2017 | JP | national |