Printing device and printing device control method
By designing a latch circuit and a switch circuit in the printing device, combining a control unit and a storage unit, the problem of complex power starting structure of the printing device in the prior art is solved, and a simplified power starting process and automatic power maintaining function is realized.
Patent Information
- Application Number
- CN202211208187.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-10-06
- Filing Date
- 2022-09-30
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2042-09-30
AI Technical Summary
The power starting device of the existing printing device has a complex structure and is difficult to start with a simple structure.
A printing device is designed, including a connector, a switching circuit, a latch circuit, a power switch, a control unit and a storage unit. Through the coordination of the latch circuit and the switching circuit, the power switch is controlled to maintain a predetermined state, and the operation detection of the power switch is ignored when the setting information is valid to maintain the power state.
The power starting structure of the printing device is realized, and the power state can be automatically maintained when the setting information is valid, reducing the complexity of manual operation.
Smart Images

Figure CN115923359B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to a printing device and a control method of the printing device. Background Art
[0002] In the prior art, there is known a power starting device for a printing device as shown in Patent Document 1, which uses a momentary switch as the power switch. When the circuit breaker is turned on, the control unit determines the state of the power switch. If it is in the off state, an arbitrary electrical circuit, i.e., the automatic starting unit, sets the switch to the on state.
[0003] Patent Document 1: Japanese Patent Application Publication No. 2013-188941.
[0004] However, as in the device described in Patent Document 1, the structure of turning on the momentary switch using the automatic starter is complicated, and it is difficult to start with a simple structure. Summary of the invention
[0005] The printing device comprises: a connector capable of receiving a first power supply from the outside; a switch circuit capable of supplying the first power to a regulator; a latch circuit capable of controlling the switch circuit; a power switch capable of maintaining the latch circuit in a predetermined state; a control unit capable of maintaining the latch circuit in the predetermined state and capable of detecting the operation of the power switch; and a storage unit capable of storing setting information, wherein when the first power is supplied to the connector, the first power is supplied to the latch circuit, and when the predetermined state is the first state, the switch circuit is turned on and the first power is supplied to the regulator, the regulator generates a second power based on the supplied first power, and the second power is supplied to the control unit and the storage unit, and when the setting information in the storage unit is valid, the control unit does not detect the operation of the power switch and maintains the latch circuit in the first state.
[0006] A control method for a printing device, the printing device comprising: a connector, the connector being capable of receiving a first power supply from the outside; a switch circuit, the switch circuit being capable of supplying the first power to a regulator; a latch circuit, the latch circuit controlling the switch circuit; a power switch being capable of maintaining the latch circuit in a predetermined state; and a storage unit being capable of maintaining the latch circuit in the predetermined state and capable of storing setting information, wherein when the connector is supplied with the first power, the latch circuit is supplied with the first power, and when the predetermined state is the first state, the switch circuit is turned on and the first power is supplied to the regulator, the regulator generates a second power based on the supplied first power, and the second power is supplied to the storage unit, and when the setting information in the storage unit is valid, the operation of the power switch is not detected and the latch circuit is maintained in the first state. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] Figure 1 It is a block diagram showing the structure of a printing device.
[0008] Figure 2 This is a status transition diagram when the setting information is valid.
[0009] Figure 3 This is a state transition diagram when the setting information is invalid.
[0010] Figure 4 This is a state transition diagram after the power is turned off by the power switch when the setting information is invalid.
[0011] Figure 5 This is a state transition diagram after the power is turned off without turning on the power switch when the setting information is invalid. DETAILED DESCRIPTION
[0012] 1. Implementation Method
[0013] The following is an explanation of the embodiment with reference to the accompanying drawings. The printing device 1 of the embodiment is used, for example, in a POS (Point Of Sale) system. The POS system is a system used in retail businesses such as shopping malls, department stores, convenience stores, and in-car sales, and in catering businesses such as restaurants, teahouses, and pubs. The POS system has a function of checking out the goods and services purchased by the customer, and a function of printing an invoice based on the checkout.
[0014] When employees of stores such as retail and restaurant businesses need to print invoices during checkout, they operate the POS system, send print data from a computer to the printing device 1, and the printing device 1 prints the invoice and hands it over to the customer.
[0015] The printing device 1 is installed at the cash register for checkout in the store. In the case of a large store, there are multiple cash registers and multiple printing devices 1 are installed. Sometimes, the staff needs to turn on the power of each printing device 1 for maintenance, etc., and sometimes, they need to turn on the power of multiple printing devices 1 at once for closing the store, etc., and they are required to be able to do both. In addition, in the following description, the turning on and off of the power supply and switch are expressed as ON and OFF.
[0016] 1-1. Structure of printing device
[0017] like Figure 1 As shown, the printing device 1 includes a control unit 10 , a storage unit 11 , a power switch 12 , a latch circuit 13 , a switch circuit 14 , a regulator 15 , an actuator 16 , and a connector 17 .
[0018] The control unit 10 is composed of a CPU (Central Processing Unit) that controls all parts of the printing device 1, a UART (Universal Asynchronous Receiver Transmitter) that manages input and output, and an FPGA (Field Programmable Gate Array) and a PLD (Programmable Logic Device) that are logic circuits. A CPU is also called a processor.
[0019] The storage unit 11 is configured to include a flash ROM (Read Only Memory) and a HDD (Hard Disk Drive) as rewritable nonvolatile memories, a RAM (Random Access Memory) as a volatile memory, and the like.
[0020] The CPU of the control unit 10 reads out programs such as firmware and setting information stored in the nonvolatile memory of the storage unit 11 , and executes them using the RAM of the storage unit 11 as a work area.
[0021] The actuator 16 is composed of a conveying mechanism including a conveying motor that rotates a conveying roller, a printing mechanism including a head that performs printing, a cutting mechanism including a cutting motor that moves a cutter, and the like.
[0022] The recording medium is, for example, thermal paper. In this case, the head is a line thermal head. The control unit 10 drives the conveying motor of the conveying mechanism to rotate the conveying roller to convey the thermal paper, drives the line thermal head of the printing mechanism to print on the thermal paper, and drives the cutting motor of the cutting mechanism to move the cutter to cut the printed thermal paper. The printed and cut thermal paper is handed over to the customer by the employee as an invoice.
[0023] exist Figure 1 In the figure, N represents a node as a connection point, and in the present embodiment, it is used particularly to represent an applied voltage. S is used to represent a signal as a signal. The commercial power supply 2 is a power supply that supplies, for example, AC (Alternating Current) 100V power as an alternating voltage. The circuit breaker 3 is a wiring circuit breaker that can be turned on and off. The commercial power supply 2 supplies AC 100V alternating current to the AC adapter 4 via the circuit breaker 3.
[0024] When the worker turns on the circuit breaker 3, AC 100V is applied to the node N1 at the downstream of the circuit breaker 3. The node N1 is provided with a socket to connect the plug of the AC adapter 4. When the worker turns off the circuit breaker 3, the supply of AC 100V is cut off and the node N1 becomes 0V.
[0025] The AC adapter 4 can convert AC 100V power and output, for example, DC (Direct Current) 24V power as a direct current voltage. In the following, DC is omitted when expressing a direct current voltage.
[0026] The function of the AC adapter 4 may also be included in the printing device 1. Specifically, a circuit such as a smoothing circuit or a switching regulator that converts AC100V power to 24V power may be formed after the connector 17 and before the node N2 in the printing device 1.
[0027] Connector 17 can receive 24V supply as the first power from the outside through AC adapter 4 or the like. When the circuit breaker 3 is turned on by a worker and the AC adapter 4 is connected to connector 17 of printing device 1, 24V is applied to node N2 at the rear stage of connector 17, and power is supplied to printing device 1. As a result, 24V is supplied from connector 17 to switch circuit 14 and latch circuit 13.
[0028] Then, the employee may disconnect the AC adapter 4 from the connector 17 of the printing device 1 in order to cut off the power supply to the printing device 1. Alternatively, the employee may disconnect the AC adapter 4 from the socket in order to cut off the power supply to the printing device 1.
[0029] The latch circuit 13 is configured to include, for example, a combination of an NPN transistor and a PNP transistor. Depending on the combination of these transistors, the latch circuit 13 is a circuit that maintains an ON state if it is turned ON once, or maintains an OFF state if it is turned OFF once. As described later, by inputting a signal S1 of the power switch 12 or a signal S4 of the control unit 10 as a so-called trigger signal, the latch circuit 13 can be turned ON or OFF and maintain the state.
[0030] In addition, by wiring the terminal of the NPN transistor or PNP transistor of the latch circuit 13 to the GND (Ground) level, the latch circuit 13 can be set to either ON or OFF in the initial state when 24 V is supplied. In the present embodiment, the latch circuit 13 is wired in such a way that the initial state is ON. In addition, the latch circuit 13 may also be composed of a logic circuit.
[0031] The switch circuit 14 is configured to include, for example, a MOSFET (Metal-Oxide-Semiconductor Field Effect Transistor). When a voltage is applied between G (Gate) and S (Source), the MOSFET turns on and D (Drain) and S are in a conducting state.
[0032] The latch circuit 13 can output a signal S2 to the switch circuit 14 to turn the switch circuit 14 on or off. For example, when the latch circuit 13 is turned on and outputs the signal S2 indicating ON to the switch circuit 14, a voltage is applied between the GS of the MOSFET of the switch circuit 14 to turn it on, and between the DS is turned on. As a result, the switch circuit 14 outputs 24V. In this way, the latch circuit 13 controls the switch circuit 14.
[0033] When latch circuit 13 turns off and outputs OFF signal S2 to switch circuit 14, no voltage is applied between GS of MOSFET of switch circuit 14 and it turns off, and DS becomes non-conductive. As a result, the output of switch circuit 14 becomes 0V.
[0034] When the switch circuit 14 is turned on, 24 V is output, so that the node N3 is applied with 24 V. As a result, the regulator 15 and the actuator 16 are supplied with 24 V.
[0035] The regulator 15 is, for example, a linear regulator and specifically includes a so-called three-terminal regulator composed of three terminals, namely, an input terminal, an output terminal, and a ground terminal, and constitutes a constant voltage circuit.
[0036] When the regulator 15 receives 24 V as input, it outputs the second power, 3.3 V as a logic voltage. At this time, 3.3 V is applied to the node N4. As a result, the control unit 10 and the storage unit 11 are supplied with 3.3 V and can operate. The CPU of the control unit 10 can be started.
[0037] The logic voltage is a voltage for operating ICs (Integrated Circuits) such as the control unit 10 and the storage unit 11. On the other hand, 24V is a voltage for operating the actuator 16 and the like.
[0038] The power switch 12 is a so-called momentary type switch that turns on when the employee presses the button with a finger, and returns to the OFF state when the finger is released from the button. A momentary type switch is also called a self-resetting type switch. In the following description, the employee's operation of the power switch 12 is referred to as pressing.
[0039] As a non-momentary switch, there is a so-called alternate type switch, which becomes the ON state when the button is pressed once, and does not return to the OFF state even if the finger is released, but remains in the ON state. When the alternate type switch is in the ON state, the button is pressed in, so it is used in a state where a gap is formed around the button. There is a risk of dust and liquid entering the gap. In particular, when used in the catering industry where dust and liquid can easily enter, the alternate type switch is not ideal.
[0040] In the case of a momentary switch, it is difficult to form a gap around the button, which can prevent dust and liquid from entering. In addition, the momentary switch has a flat surface regardless of whether it is in the ON or OFF state, so it is easy to wipe off dirt. In this way, the momentary switch can be used appropriately even in the catering industry where the printing device 1 is installed.
[0041] When the worker presses the power switch 12, the power switch 12 turns on. At this time, the power switch 12 uses the ON signal S1 as a trigger signal and can output to the latch circuit 13. As a result, the latch circuit 13 turns on, the switch circuit 14 can be turned on, and 24V can be applied to the node N3.
[0042] In this way, the power switch 12 can hold the latch circuit 13 in the ON state which is a predetermined state and the first state.
[0043] Furthermore, when the power switch 12 is pressed, it is possible to output an ON signal S3 to the control unit 10. As a result, the control unit 10 can detect that the power switch 12 is pressed based on the input of the signal S3.
[0044] In addition, setting information for validating or invalidating the output of the signal S4 to the latch circuit 13 by the control unit 10 regardless of the signal S3 of the power switch 12 is stored in the storage unit 11. The control unit 10 can read the setting information from the storage unit 11 and determine whether to output the signal S4 to the latch circuit 13 regardless of the signal S3 of the power switch 12 and execute it.
[0045] For example, when the setting information stored in the storage unit 11 is valid, the control unit 10 outputs the signal S4 to the latch circuit 13 regardless of the signal S3 of the power switch 12. In this case, the signal S4 is a signal for turning on the latch circuit 13.
[0046] In other words, the control unit 10 does not detect the signal S3, that is, does not detect the pressing of the power switch 12, and outputs the signal S4 to the latch circuit 13. The situation in which the control unit 10 does not detect the signal S3, that is, does not perform control based on the detection of the pressing of the power switch 12, is also called ignoring the signal S3.
[0047] The control unit 10 can output an ON signal S4 to turn on the latch circuit 13, turn on the switch circuit 14, apply 24V to the node N3, and turn on the power of the printing device 1. If the switch circuit 14 is already ON, the control unit 10 can keep the switch circuit 14 ON.
[0048] Thus, when the setting information is valid, the worker can supply power to the printing device 1 by turning on the circuit breaker 3 without pressing the power switch 12. That is, the worker can turn on the power of multiple printing devices 1 at once by turning on the circuit breaker 3.
[0049] In this case, when the circuit breaker 3 is turned on, the worker connects the AC adapter 4 to the connector 17 of the printing device 1 and connects the plug of the AC adapter 4 to the socket, thereby supplying power to the printing device 1 and turning the power on without pressing the power switch 12.
[0050] Furthermore, when the setting information is valid, the employee turns off the circuit breaker 3 without pressing the power switch 12 while the printing device 1 is powered on, thereby cutting off the power supply to the printing device 1. By turning off the circuit breaker 3, the employee can turn off the power of multiple printing devices 1 at once.
[0051] Alternatively, when the circuit breaker 3 is turned on, the worker disconnects the AC adapter 4 from the connector 17 of the printing device 1 and unplugs the plug of the AC adapter 4 from the socket, thereby cutting off the power supply to the printing device 1 and turning the power off without pressing the power switch 12.
[0052] On the other hand, when the setting information stored in the storage unit 11 is invalid, when the power switch 12 is pressed by the worker, the control unit 10 detects the input of the signal S3 from the power switch 12 and outputs the signal S4 to the latch circuit 13. In this case, the signal S4 is a signal to turn the latch circuit 13 on.
[0053] In this way, the control unit 10 can hold the latch circuit 13 in the ON state which is a predetermined state and the first state.
[0054] As a result, the control unit 10 turns on the latch circuit 13, turns on the switch circuit 14, applies 24V to the node N3, and turns on the printing device 1. If the switch circuit 14 is already on, the control unit 10 can keep the switch circuit 14 on.
[0055] In this way, when the setting information is invalid, a worker can turn on the power of each printing apparatus 1 one by one by pressing the power switch 12 during maintenance or the like.
[0056] Furthermore, when the setting information is invalid, when the printer 1 is powered on and the power switch 12 is pressed by the worker, the control unit 10 detects the input of the signal S3 from the power switch 12 and outputs the signal S4 to the latch circuit 13. In this case, the signal S4 is a signal to turn the latch circuit 13 OFF.
[0057] As a result, the control unit 10 can set the latch circuit 13 to the OFF state which is the second state, which is a predetermined state, and can set the switch circuit 14 to OFF, thereby stopping the application of 24V to the node N3 and setting it to 0V.
[0058] Since the regulator 15 is no longer input with 24 V, the output becomes 0 V, and the node N4 becomes 0 V. Since the control unit 10 and the storage unit 11 are no longer supplied with 3.3 V, they are shut down to stop operation, and the printing device 1 is powered off.
[0059] In this way, when the setting information is invalid, a worker can turn off the power of each printing apparatus 1 one by one by pressing the power switch 12 during maintenance or the like.
[0060] As described above, when the setting information is invalid, when the power switch 12 is pressed by a worker while the printing device 1 is powered on, the control unit 10 detects input of the signal S3 from the power switch 12 and turns the power off of the printing device 1.
[0061] At this time, the control unit 10 may store "information indicating that the printing device 1 has been powered off by pressing the power switch 12" in the storage unit 11 before shutting down. Hereinafter, "information indicating that the printing device 1 has been powered off by pressing the power switch 12" is referred to as "power off information".
[0062] After the printing device 1 is powered off, when power is supplied to the printing device 1 next time and the control unit 10 is activated, the storage unit 11 is referenced to check whether “power off information” is stored.
[0063] If the storage unit 11 does not store the “power OFF information”, the control unit 10 can determine that the employee did not press the power switch 12 but turned off the circuit breaker 3 or unplugged the AC adapter 4, and the power supply to the printing device 1 was forcibly cut off.
[0064] Furthermore, the control unit 10 can determine that the worker has turned on the circuit breaker 3 and connected the AC adapter 4 without pressing the power switch 12 , and the power supply to the printing device 1 is forced.
[0065] Therefore, when the control unit 10 is started and the storage unit 11 does not store the "power OFF information", regardless of the signal S3 of the power switch 12, the signal S4 is output to the latch circuit 13, the latch circuit 13 is set to ON, the switch circuit 14 is set to ON, and the printing device 1 is set to power ON.
[0066] In addition, the case where the storage unit 11 does not store the "power OFF information" also includes the case where the CPU of the control unit 10 is reset due to a failure, etc. In this case, the control unit 10 performs the same operation as the case where the "power OFF information" is not stored as described above.
[0067] On the other hand, when the storage unit 11 stores “power OFF information”, the control unit 10 can determine that the power switch 12 was pressed to turn off the power of the printing device 1 and the employee then pressed the power switch 12 to turn on the power of the printing device 1.
[0068] In addition, the control unit 10 can store the setting information in the storage unit 11 according to a command for designating the setting information from the POS system computer. In addition, the control unit 10 can store the setting information in the storage unit 11 according to the operation of a panel or sensor (not shown) provided in the printing device 1.
[0069] 1-2. Printing device control method
[0070] use Figure 2 to Figure 5The control method of the printing device 1 is described. The figure shows the state of the connector 17 and the node N2 at the subsequent stage, the state of the latch circuit 13 and the output signal S2, the state of the switch circuit 14 and the node N3 at the subsequent stage, the state of the regulator 15 and the node N4 at the subsequent stage, the state of the power switch 12 and the output signals S1 and S3, and the state of the control unit 10 and the output signal S4. The printing device 1 performs processing according to the arrows in the figure.
[0071] First, use Figure 2 A control method when the power of the printing device 1 is turned on when the setting information stored in the storage unit 11 is valid will be described.
[0072] In this case, it is assumed that the worker turns on the circuit breaker 3 and connects the AC adapter 4 , and power is supplied to the printing device 1 without pressing the power switch 12 .
[0073] At this time, 24 V is applied to the node N2 at the subsequent stage of the connector 17 , and 24 V is supplied from the connector 17 to the switch circuit 14 and the latch circuit 13 .
[0074] As described above, the latch circuit 13 is configured to be ON in the initial state. Therefore, when 24V is supplied, the latch circuit 13 is turned on, and an ON signal S2 is output to the switch circuit 14, turning on the switch circuit 14. As a result, the switch circuit 14 outputs 24V, 24V is applied to the node N3, and 24V is supplied to the regulator 15 and the actuator 16.
[0075] The regulator 15 supplied with 24 V outputs 3.3 V, and the node N4 is applied with 3.3 V. As a result, 3.3 V is supplied to the control unit 10 and the storage unit 11, and the CPU of the control unit 10 can be activated.
[0076] The control unit 10 activated by the CPU reads out the setting information stored in the storage unit 11. The setting information is hereinafter referred to as simply "setting". In this case, the setting is effective. The control unit 10 ignores the signal S3 of the power switch 12 and outputs the ON signal S4 to the latch circuit 13 according to the setting being effective.
[0077] Since the latch circuit 13 is already turned on, the latch circuit 13 remains on, and the switch circuit 14 also remains on, and the 24 V can be continuously supplied. As a result, the power of the printing device 1 is turned on.
[0078] Next, a control method when the printing device 1 is powered off when the setting stored in the storage unit 11 is valid will be described.
[0079] In this case, suppose that the worker turns off the circuit breaker 3 or unplugs the AC adapter 4 , etc., and the power switch 12 is not pressed, so that the power supply to the printing device 1 is cut off.
[0080] When the power supply to the printing device 1 is cut off, the node N2 at the downstream of the connector 17 becomes 0V. Since the supply of 24V from the connector 17 to the latch circuit 13 and the switch circuit 14 is cut off, the switch circuit 14 turns OFF and the node N3 becomes 0V.
[0081] Then, the 24 V supply to the regulator 15 is cut off, so the regulator 15 stops and the node N4 also becomes 0 V. Since the 3.3 V supply to the control unit 10 and the storage unit 11 is cut off, the control unit 10 and the storage unit 11 are shut down and the printing device 1 is powered off.
[0082] When the employee turns on the circuit breaker 3 and connects the AC adapter 4, and power is supplied to the printing device 1, as described above, when the setting stored in the storage unit 11 is valid, the control unit 10 can set the power of the printing device 1 to ON regardless of whether the power switch 12 is pressed or not.
[0083] Next, use Figure 3 A control method when the power of the printing device 1 is turned on when the setting stored in the storage unit 11 is invalid will be described.
[0084] Assume that the power switch 12 is pressed, and after the "power OFF information" is stored in the storage unit 11, the power of the printing device 1 is turned off, and then the employee turns off the circuit breaker 3, unplugs the AC adapter 4, etc., and the power supply to the printing device 1 is cut off. Alternatively, as described later, it is assumed that the storage unit 11 is set to the factory settings, that is, the so-called initial settings. Then, it is assumed that the employee turns on the circuit breaker 3, connects the AC adapter 4, etc., and the power supply to the printing device 1 is implemented.
[0085] When power is supplied to the printing device 1 , 24 V is applied to the node N2 at the downstream of the connector 17 . At this time, 24 V is supplied from the connector 17 to the switch circuit 14 and the latch circuit 13 .
[0086] Since the latch circuit 13 is initially ON, it turns ON when supplied with 24V, and outputs an ON signal S2 to the switch circuit 14, turning ON the switch circuit 14. As a result, the switch circuit 14 outputs 24V, 24V is applied to the node N3, and 24V is supplied to the regulator 15 and the actuator 16.
[0087] The regulator 15 supplied with 24 V outputs 3.3 V, and the node N4 is applied with 3.3 V. As a result, 3.3 V is supplied to the control unit 10 and the storage unit 11, and the CPU of the control unit 10 can be activated.
[0088] Up to this point, the control method of the printing device 1 is the same as the above-mentioned method when the power is turned on when the setting stored in the storage unit 11 is valid.
[0089] The control unit 10 reads the setting stored in the storage unit 11. In this case, the setting is invalid. Further, the control unit 10 reads the "power OFF information" stored in the storage unit 11. In the initial setting of the storage unit 11, the setting is invalid, and the "power OFF information" is stored.
[0090] In addition, Figure 3 The processing after the junction point A is referred to as processing A. Processing A is described later. Figure 4 Used in.
[0091] The control unit 10 detects the input of the signal S3 of the power switch 12 based on the fact that the setting of the storage unit 11 is invalid and the "power OFF information" is stored. That is, the control unit 10 detects the pressing of the power switch 12. The control unit 10 and the Figure 2 Unlike the case where the setting described in the above is effective, the signal S3 of the power switch 12 is not ignored. The time at which the control unit 10 detects the input of the signal S3 of the power switch 12 may be set within a predetermined time.
[0092] When the control unit 10 detects input of the signal S3 of the power switch 12, it can be determined that the power switch 12 is pressed. In this case, for example, the signal S3 is a signal that changes from OFF to ON.
[0093] When the control unit 10 determines that the power switch 12 is pressed, it outputs an ON signal S4 to the latch circuit 13 .
[0094] Since the latch circuit 13 is already turned on, the latch circuit 13 remains on, and the switch circuit 14 also remains on, and the 24 V can be continuously supplied. As a result, the power of the printing device 1 is turned on.
[0095] On the other hand, when the control unit 10 does not detect the input of the signal S3 of the power switch 12, it can be determined that the power switch 12 is not pressed. In this case, for example, the signal S3 remains in the OFF state.
[0096] When the control unit 10 determines that the power switch 12 is not pressed, it outputs an OFF signal S4 to the latch circuit 13 to turn OFF the latch circuit 13. The latch circuit 13 outputs an OFF signal S2 to the switch circuit 14 to turn OFF the switch circuit 14.
[0097] The switch circuit 14 is turned off, the node N3 becomes 0 V, the supply of 24 V to the regulator 15 is cut off, so the regulator 15 stops, and the node N4 also becomes 0 V. The supply of 3.3 V to the control unit 10 and the storage unit 11 is cut off, so the control unit 10 and the storage unit 11 are turned off. As a result, the printing device 1 is not powered on.
[0098] Next, a control method will be described for when the printing device 1 is powered off when the setting stored in the storage unit 11 is invalid. In this case, the printing device 1 is powered on by pressing the power switch 12 .
[0099] The control unit 10 detects the input of the signal S3 of the power switch 12 according to the setting of invalid. That is, the control unit 10 detects the pressing of the power switch 12. Unlike the case where the setting is valid, the control unit 10 does not ignore the signal S3 of the power switch 12. Alternatively, the control unit 10 detects the input of the signal S3 of the power switch 12 at a predetermined time interval.
[0100] When the control unit 10 detects the input of the signal S3 of the power switch 12, it can be determined that the power switch 12 is pressed. In this case, for example, the signal S3 is a signal that changes from OFF to ON.
[0101] When the control unit 10 determines that the power switch 12 is pressed, the "power OFF information" is stored in the storage unit 11. In addition, the control unit 10 outputs an OFF signal S4 to the latch circuit 13 to switch the latch circuit 13 to OFF. The latch circuit 13 outputs an OFF signal S2 to the switch circuit 14 to turn the switch circuit 14 OFF.
[0102] The switch circuit 14 is turned off, the node N3 becomes 0 V, the supply of 24 V to the regulator 15 is cut off, so the regulator 15 stops, and the node N4 also becomes 0 V. The supply of 3.3 V to the control unit 10 and the storage unit 11 is cut off, so the control unit 10 and the storage unit 11 are turned off. As a result, the printing device 1 is powered off.
[0103] As described above, when the setting stored in the storage unit 11 is invalid and the "power OFF information" is stored, the control unit 10 can turn on the power of the printing device 1 in response to the pressing of the power switch 12. Furthermore, the control unit 10 can also turn off the power of the printing device 1 in response to the pressing of the power switch 12.
[0104] Next, use Figure 4The following describes a method for controlling the printing device 1 when the setting stored in the storage unit 11 is invalid and after the employee turns off the power of the printing device 1 by pressing the power switch 12, the employee turns on the power of the printing device 1 again by pressing the power switch 12. Since the printing device 1 is turned off by pressing the power switch 12, the "power off information" is stored in the storage unit 11.
[0105] Assume that the worker turns off the power of the printing apparatus 1 by pressing the power switch 12 , so that the circuit breaker 3 remains in the ON state, the AC adapter 4 remains connected, and the like remains.
[0106] Therefore, 24 V is continuously applied to the node N2 at the subsequent stage of the connector 17 . 24 V is supplied from the connector 17 to the switch circuit 14 and the latch circuit 13 .
[0107] Similar to when the power switch 12 is pressed to turn off the power of the printing device 1 , the latch circuit 13 remains OFF and continues to output the OFF signal S2 to the switch circuit 14 , turning off the switch circuit 14 .
[0108] Node N3 becomes 0V, and the 24V supply to the regulator 15 stops, so the regulator 15 stops. Therefore, node N4 also becomes 0V, and 3.3V is not supplied to the control unit 10 and the storage unit 11. The control unit 10 and the storage unit 11 remain off. The printing device 1 remains in the power OFF state.
[0109] In this state, when the worker presses the power switch 12, the power switch 12 turns on. The power switch 12 outputs an ON signal S1 to the latch circuit 13 as a trigger signal.
[0110] As a result, latch circuit 13 is switched on, switch circuit 14 can be turned on, and 24 V is applied to node N3. 24 V is supplied to regulator 15 and actuator 16, regulator 15 outputs 3.3 V, and 3.3 V is applied to node N4. 3.3 V is supplied to control unit 10 and storage unit 11, and the CPU of control unit 10 is started.
[0111] The control unit 10 reads the settings stored in the storage unit 11. In this case, the settings are invalid. The control unit 10 reads the "power OFF information" stored in the storage unit 11. The control unit 10 reads these and executes Figure 3 In addition, the treatment A is the same as that in the above Figure 3 The situation is the same as described in , so the description is omitted here.
[0112] like Figure 4As shown, regardless of the control unit 10, in other words, even when the control unit 10 is turned off, the latch circuit 13 can be switched on by pressing the power switch 12. As a result, the switch circuit 14 can be turned on, the regulator 15 outputs 3.3V, and the CPU of the control unit 10 starts.
[0113] In addition, the signal S3 of the power switch 12 changes from OFF to ON together with the signal S1 in response to the pressing of the power switch 12. The signal S3 of the power switch 12 may be configured to maintain the ON state until the control unit 10 detects the input of the signal S3.
[0114] The employee wants to turn off the power of the printing device 1 by pressing the power switch 12, and then turn on the power of the printing device 1 by pressing the power switch 12 again. At this time, as described above, when the setting stored in the storage unit 11 is invalid and the "power OFF information" is stored, the control unit 10 can turn on the power of the printing device 1 in response to the pressing of the power switch 12. In addition, the control unit 10 can turn off the power of the printing device 1 in response to the pressing of the power switch 12.
[0115] Next, use Figure 5 The control method of the printing device 1 is described below in which the employee turns on the power of the printing device 1 by pressing the power switch 12, then turns off the circuit breaker 3 and unplugs the AC adapter 4, and then turns on the power of the printing device 1 by turning on the circuit breaker 3 and connecting the AC adapter 4. In addition, the storage unit 11 stores the setting to be invalid.
[0116] In this case, the worker has turned off the circuit breaker 3 , unplugged the AC adapter 4 , and the printing device 1 has been powered off, so the “power off information” is not stored in the storage unit 11 .
[0117] After the power switch 12 is pressed to maintain the latch circuit 13 in the ON state and the printing device 1 is powered on, the supply of 24V to the connector 17 is cut off, and the worker turns on the circuit breaker 3 and connects the AC adapter 4 again. When the power supply to the printing device 1 is implemented, 24V is applied to the node N2 at the rear stage of the connector 17. At this time, 24V is supplied from the connector 17 to the switch circuit 14 and the latch circuit 13.
[0118] Since the latch circuit 13 is initially ON, it turns ON when supplied with 24V, and outputs an ON signal S2 to the switch circuit 14, turning ON the switch circuit 14. As a result, the switch circuit 14 outputs 24V, 24V is applied to the node N3, and 24V is supplied to the regulator 15 and the actuator 16.
[0119] The regulator 15 supplied with 24 V outputs 3.3 V, and the node N4 is applied with 3.3 V. As a result, 3.3 V is supplied to the control unit 10 and the storage unit 11, and the CPU of the control unit 10 can be activated.
[0120] The control unit 10 reads the setting stored in the storage unit 11. In this case, the setting is invalid. As described above, the storage unit 11 does not store the "power OFF information".
[0121] Even when the storage unit 11 is set to invalid, the control unit 10 ignores the signal S3 of the power switch 12 because the "power OFF information" is not stored, and outputs the ON signal S4 to the latch circuit 13. That is, the control unit 10 does not detect that the power switch 12 is pressed.
[0122] Since the latch circuit 13 is already turned on, the latch circuit 13 remains on, and the switch circuit 14 also remains on, and the 24 V can be continuously supplied. As a result, the power of the printing device 1 is turned on.
[0123] Next, the control method when the printing device 1 is turned off will be described. The control unit 10 detects input of the signal S3 of the power switch 12 in response to the setting being invalid. That is, the control unit 10 detects that the power switch 12 is pressed.
[0124] When the control unit 10 detects the input of the signal S3 of the power switch 12, it can be determined that the power switch 12 is pressed. When the control unit 10 determines that the power switch 12 is pressed, the "power OFF information" is stored in the storage unit 11. In addition, the control unit 10 outputs the OFF signal S4 to the latch circuit 13 to switch the latch circuit 13 to OFF.
[0125] Then, the latch circuit 13 outputs an OFF signal S2 to the switch circuit 14, turning off the switch circuit 14. Since the switch circuit 14 is turned off, the node N3 becomes 0 V, and the supply of 24 V to the regulator 15 is cut off, the regulator 15 stops, and the node N4 also becomes 0 V. Since the supply of 3.3 V to the control unit 10 and the storage unit 11 is cut off, the control unit 10 and the storage unit 11 are turned off. As a result, the printing device 1 is powered off.
[0126] The employee wants to turn on the power of the printing device 1 by pressing the power switch 12, then turn off the circuit breaker 3 and unplug the AC adapter 4, and then turn on the circuit breaker 3 and connect the AC adapter 4 to turn on the power of the printing device 1.
[0127] At this time, when the worker turns on the circuit breaker 3, connects the AC adapter 4, etc., and the power supply to the printing device 1 is implemented, as described above, when the setting stored in the storage unit 11 is invalid and the "power OFF information" is not stored, the control unit 10 can turn on the power of the printing device 1 regardless of whether the power switch 12 is pressed or not. Furthermore, the control unit 10 can turn off the power of the printing device 1 when the setting is invalid and the pressing of the power switch 12 is detected.
[0128] According to the above-described embodiment, the control unit 10 can start the printing apparatus 1, that is, turn on the power by determining whether the setting stored in the storage unit 11 is valid or invalid, with a simple configuration using the momentary power switch 12 .
[0129] Although the embodiments are described in detail above with reference to the drawings, the specific structure is not limited to these embodiments, and changes, replacements, deletions, etc. may be made as long as they do not depart from the gist of the present disclosure.
[0130] As described above, the head of the printing device 1 is described as a line type thermal head, but the type of the head is not limited. For example, the head may be an inkjet head.
[0131] The recording medium has been described by taking thermal paper as an example, but when the head is an inkjet head, it may be plain paper.
[0132] As described above, when the setting stored in the storage unit 11 is invalid, the control unit 10 determines whether the "power OFF information" is stored in the storage unit 11 and performs control. However, it is not necessary to determine whether the "power OFF information" is stored. In this case, the control unit 10 only needs to perform the control as in Figure 3 The processing described in , and control may be performed so that pressing of the power switch 12 is detected regardless of whether the printing device 1 is turned on or off.
[0133] As described above, the logic voltage is set to 3.3V, but it may also be 5V.
Claims
1. A printing device, characterized in that: have: A connector capable of receiving a first power supply from the outside; a switching circuit capable of supplying the first power to the regulator; A latch circuit, wherein the latch circuit controls the switch circuit; a power switch capable of maintaining the latch circuit in a predetermined state; a control unit capable of maintaining the latch circuit in the predetermined state and capable of detecting the operation of the power switch, and a storage unit capable of storing setting information, When the first power is supplied to the connector, the first power is supplied to the latch circuit, and when the predetermined state is the first state, the switch circuit is turned on to supply the first power to the regulator. The regulator generates second power based on the supplied first power, and supplies the second power to the control unit and the storage unit. When the setting information of the storage unit is valid, the control unit does not detect the operation of the power switch and maintains the latch circuit in the first state.
2. The printing device according to claim 1, characterized in that The control unit detects the operation of the power switch when the setting information in the storage unit is invalid. When the control unit detects the operation of the power switch, the control unit maintains the latch circuit in the first state. When the control unit does not detect the operation of the power switch, the control unit switches the latch circuit to a second state different from the first state, turns off the switch circuit, and cuts off the supply of the first power to the regulator.
3. The printing device according to claim 2, characterized in that After the control unit maintains the latch circuit in the first state, the control unit further detects the operation of the power switch. When the control unit detects the operation of the power switch, the control unit switches the latch circuit from the first state to the second state, turns off the switch circuit, and cuts off the supply of the first power to the regulator.
4. The printing device according to claim 3, characterized in that After the latch circuit is turned off according to the operation of the power switch, the latch circuit maintains the second state. When the power switch is operated, the power switch switches the latch circuit from the second state to the first state, turns on the switch circuit, and supplies the first power to the regulator.
5. The printing device according to claim 2, characterized in that: After the latch circuit is maintained in the first state, the supply of the first power to the connector is cut off, and when the first power is supplied to the connector again, The latch circuit is in the first state, the switch circuit is turned on, and the first power is supplied to the regulator. The regulator generates the second power based on the supplied first power, and supplies the second power to the control unit and the storage unit. the control unit does not detect the operation of the power switch and maintains the latch circuit in the first state even when the setting information of the storage unit is invalid; Then, the control unit detects the operation of the power switch, and when the operation of the power switch is detected, switches the latch circuit from the first state to the second state, sets the switch circuit to be open, and cuts off the supply of the first power to the regulator.
6. The printing device according to any one of claims 1 to 5, characterized in that: The power switch is of the momentary type.
7. A method for controlling a printing device, characterized in that: The printing device includes: a connector capable of receiving a first power supply from the outside; a switch circuit capable of supplying the first power to the regulator; and a latch circuit capable of controlling the switch circuit. a power switch capable of maintaining the latch circuit in a predetermined state; and a storage unit capable of maintaining the latch circuit in the predetermined state and storing setting information, When the first power is supplied to the connector, the first power is supplied to the latch circuit, and when the predetermined state is the first state, the switch circuit is turned on to supply the first power to the regulator. the regulator generates second power based on the supplied first power, and supplies the second power to the storage unit, When the setting information of the storage unit is valid, the operation of the power switch is not detected, and the latch circuit is maintained in the first state.
Citation Information
Patent Citations
Printer, power source starter of the same, and power source starting method of the same
JP2013188941A
Information device
CN102064698A
Printing device
CN102950904A