Roll paper printing device and control method thereof
The roll paper printing device addresses the issue of DIP switch priority by using a sensor and storage unit to execute mark control based on received commands, enabling efficient printing on marked or unmarked paper.
Patent Information
- Application Number
- JP2023037308
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-10
- Publication Date
- 2024-09-24
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing printers may prioritize DIP switch settings over commands, potentially preventing temporary control based on received commands.
The roll paper printing device includes a sensor to detect marks on the paper, a storage unit to store setting information, and a control unit that prioritizes reading this information over a setting switch, allowing temporary execution of mark control based on received commands.
Enables temporary execution of mark control regardless of DIP switch settings, facilitating efficient printing on marked or unmarked paper without manual switch adjustments.
Smart Images

Figure 2024128366000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a roll paper printing device and a method for controlling a roll paper printing device. [Background technology]
[0002] Conventionally, as shown in Patent Document 1, there is known a printer that can detect either a cut identification mark or a near-end identification mark of a black mark formed on the back side of a roll of paper based on a flag stored in volatile memory, and the flag can be rewritten by a command or forcibly rewritten by a dip switch. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2006-290532 A Summary of the Invention [Problem to be solved by the invention]
[0004] In the above-mentioned printer, there is a risk that the DIP switches will take priority over the commands, and temporary control based on commands may not be possible. [Means for solving the problem]
[0005] The roll paper printing device comprises a roller that transports paper, a sensor that can detect marks on the paper, a control unit that can execute control to transport the paper to a predetermined position using the roller based on the mark detected by the sensor, a memory unit that can store setting information that enables the control, and a setting switch that can set the setting information, and if the setting information is included in a received command, the control unit stores the setting information in the memory unit and reads out the memory unit in priority to the setting switch, and executes the control if the setting information is stored.
[0006] A control method for a roll paper printing device having a roller that transports paper, a sensor that can detect marks on the paper, a memory unit that can store setting information that enables control to transport the paper to a specified position by the roller based on the mark detected by the sensor, and a setting switch that can set the setting information, wherein if the setting information is included in a received command, the setting information is stored in the memory unit, the memory unit is read out in priority to the setting switch, and if the setting information is stored, the control is executed. [Brief description of the drawings]
[0007] [Figure 1] FIG. 1 is a block diagram showing the configuration of a roll paper printing device. [Diagram 2] FIG. 2 is a cross-sectional view showing the main parts of the roll paper printing device. [Diagram 3] FIG. 2 is a schematic diagram showing the positional relationship between paper and the main parts of the roll paper printing device. [Figure 4] 4 is a flowchart showing a control method for the roll paper printing device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] 1. First embodiment 1-1. Configuration of roll paper printing device The printing device 1 according to the embodiment will be described below with reference to the drawings. The directions in Fig. 2 and Fig. 3 will be described using a three-dimensional coordinate system in which the X-axis, Y-axis, and Z-axis are mutually orthogonal. For ease of explanation, the positive direction of the Z-axis will be referred to as the upward direction, upward, or simply upward, the negative direction as the downward direction, downward, or simply downward, the positive direction of the X-axis will be referred to as the leftward direction, leftward, or simply left, the negative direction as the rightward direction, rightward, or simply right, the positive direction of the Y-axis will be referred to as the forward direction, forward, or simply forward, and the negative direction as the rearward direction, rearward, or simply rear.
[0009] A roll paper printing device 1 according to an embodiment is used, for example, in a POS (Point Of Sale) system to issue receipts, etc. In what follows, the roll paper printing device 1 will be simply referred to as the printing device 1. As shown in FIG. 1, the printing device 1 includes a control unit 10, a storage unit 11, a setting switch 12, a communication unit 13, a head 20, a roller 30, and a sensor 40.
[0010] The control unit 10 includes a CPU (Central Processing Unit) that controls each part of the printing device 1, a UART (Universal Asynchronous Receiver Transmitter) that manages input and output, and logic circuits such as an FPGA (Field Programmable Gate Array) and a PLD (Programmable Logic Device). The CPU is also called a processor. When a power switch (not shown) is turned on and power is supplied to the printing device 1, the control unit 10 starts up. More specifically, the CPU of the control unit 10 starts up. Hereinafter, the start-up of the control unit 10 is also referred to as the start-up of the printing device 1.
[0011] The storage unit 11 includes a flash ROM (Read Only Memory), which is a rewritable nonvolatile memory, an HDD (Hard Disk Drive), a RAM (Random Access Memory), which is a volatile memory, and the like. The CPU of the control unit 10 reads out programs such as firmware stored in the non-volatile memory of the storage unit 11, and executes them using the RAM of the storage unit 11 as a working area.
[0012] The setting switch 12 is, for example, a DIP switch (Dual In-line Package Switch). A user can set predetermined setting information by turning on or off the setting switch 12. The control unit 10 can read the setting information of the setting switch 12 and perform control instructed by the setting information. Predetermined setting information can also be stored in the storage unit 11. The control unit 10 can read the setting information in the storage unit 11 and perform control instructed by the setting information.
[0013] The communication unit 13 includes a circuit capable of communicating with an external device 2 such as a computer or a mobile terminal wirelessly or via a wired connection. The communication unit 13 receives print data and commands from the external device 2. The control unit 10 prints the print data received by the communication unit 13 using the head 20, and executes predetermined control based on the command.
[0014] As shown in FIG. 2, the paper P is, for example, a long piece of plain paper. The front side P1, which is the first side, is the printing side that is printed on by the head 20. The back side P2, which is the second side, is provided with black rectangular so-called black marks by printing or the like. Hereinafter, the black marks are referred to as marks BM. A plurality of marks BM are provided at predetermined intervals along the transport direction F of the paper P. In FIG. 2, a first mark BM1 and a second mark BM2 are provided from upstream to downstream in the transport direction F of the paper P. In addition, when the mark BM is detected by, for example, an optical sensor as described later, it may be of any color other than black as long as it is a color that can absorb the detection light of the optical sensor.
[0015] As shown in FIG. 2, the roll of paper R around which the paper P is wound can be stored in a case 50. The cover 51 is attached to the case 50 so as to be able to open and close. When the user opens the cover 51 upward, the user can access the inside of the case 50 and store the roll paper R in the case 50 from above.
[0016] The case 50 is provided with a roller 30 which is a drive roller that can be rotated by a motor (not shown), and a head 20 which is disposed at position B. The cover 51 is provided with the driven roller 31, the platen 21, and the sensor 40 disposed at position A. When the cover 51 is closed, the roller 30 and the driven roller 31, and the head 20 and the platen 21 are positioned opposite each other.
[0017] At this time, the roller 30 and the head 20 are positioned to face the front surface P1 of the paper P. The sensor 40 is positioned to face the back surface P2 of the paper P on which the mark BM is affixed. Further, the roller 30 and the driven roller 31 are capable of conveying the paper P by sandwiching it from the front and rear. Between the head 20 and the platen 21, a predetermined gap called a platen gap is provided.
[0018] A sensor 40, a head 20, a platen 21, a roller 30 and a driven roller 31 are arranged from upstream to downstream in a transport direction F of the paper P. As will be described later, the sensor 40 and the head 20 are separated by a distance L. At the boundary between the cover 51 and the case 50, a rectangular outlet 4 is formed through which the paper P is discharged.
[0019] When roller 30 rotates clockwise, driven roller 31 also rotates counterclockwise. Roller 30 and driven roller 31 pinch paper P, pull out paper P from the roll paper R, and transport it in the transport direction F. At this time, the roll paper R rotates counterclockwise. The roller 30 can also rotate counterclockwise. In this case, the roller 30 can transport the paper P in the opposite direction to the transport direction F.
[0020] Between the head 20 and the platen 21 are an ink ribbon (not shown) and paper P. The head 20 is a dot impact type head, and prints by projecting pins through the ink ribbon toward the paper P and transferring the ink of the ink ribbon to the paper P. The pins are also called wires. The head 20 is mounted on a carriage (not shown) and prints on a surface P1 of the paper P at position B while moving left and right.
[0021] The sensor 40 can detect a mark BM affixed to the back surface P2 of the paper P at a position upstream of the head 20 in the transport direction F. When the mark BM is present at position A of the sensor 40 on the transported paper P, the sensor 40 detects it. On the other hand, when the mark BM is not present at position A of the sensor 40, the sensor 40 does not detect it. The sensor 40 is, for example, a reflective optical sensor having an element capable of emitting and receiving detection light such as infrared light absorbed by the mark BM. The sensor 40 is also called a mark sensor because it detects the mark BM affixed to the paper P.
[0022] The control unit 10 can detect the mark BM affixed to the paper P by the sensor 40 and determine the position of the paper P. The control unit 10 can transport the paper P by the rollers 30 while detecting the mark BM on the paper P by the sensor 40, and transport the paper P to a target position.
[0023] 3, from upstream to downstream in the transport direction F, the sensor 40 is disposed at position A and the head 20 is disposed at position B. The sensor 40 and the head 20 are spaced a distance L apart. A plurality of marks BM are provided on the back surface P2 of the paper P at intervals slightly longer than the distance L. Here, a first mark BM1 and a second mark BM2 are provided from upstream to downstream in the transport direction F. 3 shows the time when the paper P is transported by the roller 30 and the first mark BM1 reaches the position A of the sensor 40. At this time, the sensor 40 can detect the first mark BM1, and a detection result is obtained.
[0024] The following describes the control performed by the control unit 10 to transport the paper P to a predetermined position by the rollers 30 based on the mark BM detected by the sensor 40. This control is referred to as mark control. The predetermined position is a position in the transport direction F. In the following, the predetermined position will be referred to as the "predetermined position." The predetermined position is, for example, a printing position where the head 20 prints on the paper P.
[0025] First, a case where the printing position is the first printing position C1, which is a position on the paper P downstream in the transport direction F from the position of the first mark BM1 by a distance L, will be described. When the sensor 40 detects the first mark BM1, the first printing position C1 on the paper P has reached the position B where the head 20 is disposed. Note that the second mark BM2 has already passed the position of the sensor 40.
[0026] That is, the control unit 10 causes the rollers 30 to transport the paper P, and stops the transport when the sensor 40 detects the first mark BM1. At this time, the first printing position C1 of the paper P reaches position B. Then, based on the printing data received by the communication unit 13, the control unit 10 prints on the front surface P1 of the paper P while moving the head 20 left and right. As a result, the control unit 10 can print on the paper P at the first printing position C1 that is a distance L downstream in the transport direction F from the first mark BM1.
[0027] Next, a case will be described where the printing position is the second printing position C2, which is a position on the paper P downstream in the transport direction F from the position of the first mark BM1 by a distance (LM). When the sensor 40 detects the first mark BM1, the second printing position C2 on the paper P is a position shown as (-M) in FIG. 3 relative to position B where the head 20 is located, and is a distance M upstream in the transport direction F. The second printing position C2 has not yet reached position B. Note that the second mark BM2 has already passed the position of the sensor 40.
[0028] That is, the control unit 10 causes the roller 30 to transport the paper P, and the sensor 40 detects the first mark BM1, resulting in a detection result. At this time, the second printing position C2 of the paper P has not yet reached the position B where the head 20 is disposed. After the sensor 40 detects the paper P, the control unit 10 causes the rollers 30 to transport the paper P by a distance M and then stops the paper P. At this time, the second printing position C2 of the paper P reaches the position B where the head 20 is disposed.
[0029] Then, the control unit 10 causes the head 20 to print on the paper P based on the print data received by the communication unit 13. As a result, the control unit 10 can perform printing at the second printing position C2 that is located the distance (LM) downstream in the transport direction F from the first mark BM1.
[0030] Next, a case where the printing position is the third printing position C3, which is a position on the paper P downstream in the transport direction F from the first mark BM1 by a distance (L+M), will be described. When the sensor 40 detects the first mark BM1, the third printing position C3 on the paper P is at a position shown as (+M) in FIG. 3 relative to position B where the head 20 is located, and is downstream by a distance M in the transport direction F. In other words, the third printing position C3 has already passed position B.
[0031] That is, the control unit 10 causes the roller 30 to transport the paper P, and the sensor 40 detects the first mark BM1, resulting in a detection result. At this time, the third printing position C3 of the paper P is a distance M beyond the position B where the head 20 is disposed. After detection by the sensor 40, the control unit 10 reverses the roller 30, transporting the paper P a distance M in the opposite direction to the transport direction F, and then stops the paper P. At this time, the third printing position C3 of the paper P reaches the position B where the head 20 is located. Then, the control unit 10 causes the head 20 to print on the paper P based on the print data received by the communication unit 13. As a result, the control unit 10 can perform printing at the third printing position C3, which is a distance (L+M) away from the first mark BM1 downstream in the transport direction F.
[0032] When printing on the paper P at the third printing position C3, the control unit 10 may perform control based on the position of the second mark BM2. Before printing on the paper P at the third printing position C3, the control unit 10 can detect the second mark BM2, which is downstream of the first mark BM1 in the transport direction F, using the sensor 40. Based on the position of the second mark BM2, the control unit 10 can transport the third printing position C3 of the paper P in the transport direction F to position B where the head 20 is located, using the roller 30. In this case, the control unit 10 does not need to reverse the rotation of the roller 30.
[0033] 1-2. Control method for roll paper printing device When the power switch is turned on and power is supplied to the printing device 1, the printing device 1 starts up and the control unit 10 starts control. 4, the control unit 10 determines whether or not a command has been received from the external device 2 via the communication unit 13 (S100). The command includes setting information. The setting information includes either "mark control enabled" or "mark control disabled." Setting information that enables mark control is "mark control enabled" information, which is information that instructs the execution of the above-mentioned mark control. Setting information that disables mark control is "mark control disabled" information, which is information that instructs not to execute mark control.
[0034] In this example, it is assumed that the command contains the setting information "mark control enabled." Note that the initial value of the setting information in the storage unit 11 is "mark control disabled." When the control unit 10 determines that a command has been received (S100: YES), the control unit 10 writes the setting information included in the command to the storage unit 11 (S101). Specifically, the control unit 10 writes the setting information to a volatile memory such as a RAM of the storage unit 11.
[0035] On the other hand, if the control unit 10 determines that a command has not been received (S100: NO), the control unit 10 reads the setting information from the storage unit 11 (S102). In this case, the setting information is the initial value "mark control disabled". Also, when a command is received, the control unit 10 reads the setting information from the storage unit 11 (S102). In this case, the setting information is "mark control enabled" that was included in the command.
[0036] In this way, the control unit 10 reads the setting information from the storage unit 11 in preference to reading the setting information from the setting switch 12, which will be described later. Then, when the setting information read from the storage unit 11 is "mark control enabled", the control unit 10 sets "mark control enabled" regardless of the setting information of the setting switch 12.
[0037] Next, the control unit 10 reads the setting information from the setting switch 12 (S103). When both the storage unit 11 and the setting switch 12 are set to "mark control enabled," the control unit 10 sets "mark control enabled." If the setting information read from the storage unit 11 is "mark control enabled" and the setting information read from the setting switch 12 is "mark control disabled", the control unit 10 sets "mark control enabled". If the setting information read from the storage unit 11 is "mark control disabled" and the setting information read from the setting switch 12 is "mark control enabled", the control unit 10 sets "mark control enabled". If both the memory unit 11 and the setting switch 12 are set to "mark control disabled," the control unit 10 sets the setting to "mark control disabled." When the control unit 10 does not receive a command, the setting information is the initial value, ie, “mark control disabled”, so that the control unit 10 can control the marking based on the setting information of the setting switch 12 .
[0038] Next, the control unit 10 judges whether or not "mark control is enabled" based on the storage unit 11 and the setting switch 12 as described above (S104). When the control unit 10 determines that the mark control is enabled (S104: YES), the control unit 10 executes the above-mentioned mark control (S105), and then ends the series of processes. On the other hand, if the control unit 10 determines that the mark control is not enabled (S104: NO), that is, that the mark control is disabled, the control unit 10 does not execute the mark control and ends the series of processes.
[0039] When the mark control is disabled, the control unit 10 detects the mark BM on the paper P using the sensor 40 while transporting the paper P using the rollers 30, and does not execute the mark control for transporting the paper P to a target position. At this time, the control unit 10 simply prints on the paper P using the head 20 based on the print data received by the communication unit 13. The control unit 10 can print on the paper P that does not have the mark BM affixed thereto.
[0040] Note that the control unit 10 may receive a command including information designating the print position via the communication unit 13 and write the command in the storage unit 11 before executing the mark control. In mark control, the control unit 10 reads information on the specified printing position from the memory unit 11, and while transporting the paper P with the roller 30, detects the mark BM with the sensor 40 and causes the paper P to reach the printing position specified by the command. The initial value of the printing position information stored in the storage unit 11 specifies, for example, the first printing position C1.
[0041] After the series of processes is completed, it is assumed that the user turns off the power switch of the printing device 1. The setting information "mark control enabled" stored in the RAM, which is the non-volatile memory of the storage unit 11, is erased because no power is supplied when the power switch is turned off. Next, when the user turns on the power switch of the printing device 1, the setting information in the storage unit 11 becomes the initial value "mark control disabled."
[0042] The storage unit 11 stores a binary value, either "0" or "1." When the control unit 10 initializes the RAM at startup, it writes "0" once. "0" at this time is the initial value of the setting information and indicates "mark control disabled." "1" indicates "mark control enabled." Furthermore, information other than the setting information, such as the distance L between the sensor 40 and the head 20, the printing position, etc., is preferably stored in a flash ROM, which is a non-volatile memory of the storage unit 11. This information will not be erased even if the power switch of the printing device 1 is turned off.
[0043] Incidentally, the setting switch 12 is located at the bottom of the case 50 of the printer 1 and is covered with a screw or the like so that the setting information cannot be easily changed from the outside. Therefore, it is time-consuming for the user to change the setting switch 12. Meanwhile, suppose that the user normally sets the setting information of the setting switch 12 to "mark control disabled" and prints on paper P that does not have the mark BM. However, there are cases where the user temporarily wants to print on paper P that has the mark BM. As described above, at this time, it is troublesome for the user to change the setting information of the setting switch 12 to "mark control enabled."
[0044] According to the above-described embodiment, even if the setting switch 12 is in the "mark control disabled" state, the user can easily set the printing device 1 to "mark control enabled" by sending a command from the external device 2. The user can print on the paper P to which the mark BM is affixed. Thereafter, if the user turns off the power switch of the printer 1 and then turns it on again, the setting information in the memory unit 11 returns to the initial value, "mark control disabled." In this way, the user can easily return the printer 1 to the state corresponding to the paper P that is normally used before the command was sent.
[0045] In other words, regardless of the setting information of the setting switch 12, when the control unit 10 receives a command including "mark control enabled" via the communication unit 13, it can set the printing device 1 to "mark control enabled" and temporarily perform mark control. In other words, the control unit 10 reads the RAM, which is the volatile memory of the storage unit 11, in preference to the setting switch 12, and if "mark control enabled", which is setting information that enables mark control, is stored, the control unit 10 can temporarily execute mark control regardless of the setting information of the setting switch 12.
[0046] The setting information of the setting switch 12 and the storage unit 11 may be reversed from that described above, with "mark control disabled" set to "1" and "mark control enabled" set to "0." In this case, the user can normally set the setting information of the setting switch 12 to "mark control enabled" and print on paper P with the mark BM attached, and then send a command to "disable mark control" to temporarily print on paper P without the mark BM attached. Thereafter, if the user turns the power switch of the printing device 1 off and then on, the setting information of the storage unit 11 can be returned to the initial value of "mark control enabled."
[0047] According to the printing device 1 of the above-described embodiment, if the received command includes "mark control enabled," which is setting information that enables mark control, the control unit 10 stores it in the RAM, which is a volatile memory of the memory unit 11. The control unit 10 reads the RAM of the storage unit 11 with priority over the setting switch 12, and if "mark control enabled" is stored, then the control unit 10 can execute mark control.
[0048] As a result, the printer 1 can temporarily control the marks based on the command, regardless of the setting information of the setting switch 12. For example, a user normally uses paper P that does not have a mark BM, but when updating firmware via the communication unit 13, the mark control function of the printer 1 can be easily inspected without changing the setting switch 12. Also, during the manufacturing process of the printer 1, workers can easily inspect the mark control function.
[0049] Although these embodiments have been described in detail above with reference to the drawings, the specific configurations are not limited to these embodiments, and may be modified, substituted, deleted, etc. without departing from the spirit of the present invention.
[0050] Although the head 20 has been described as a dot impact type head, the printing method is not limited thereto. For example, the head 20 may be an inkjet head. The head 20 may also be a thermal head. In this case, the roller 30 can convey the thermal paper P by sandwiching it together with the thermal head. The paper P may be so-called die-cut labels, which are labels attached to a mount at predetermined intervals.
[0051] Although the sensor 40 has been described as a reflective optical sensor, it may be a transmissive optical sensor. In the case of a transmissive optical sensor, the light emitting section and the light receiving section may be separately mounted in the cover 51 and the case 50, respectively. In the case of a transmissive optical sensor, the detection light does not pass through the mark BM on the paper P, but passes through the portion of the paper P where there is no mark BM, thereby making it possible to detect the mark BM.
[0052] Furthermore, a cutter capable of cutting the paper P may be provided at a position downstream of the rollers 30 in the transport direction F and upstream of the discharge port 6. The predetermined position in the mark control may be the position where the cutter cuts the paper P. [Explanation of symbols]
[0053] 1...roll paper printing device, 2...external device, 10...control unit, 11...memory unit, 12...setting switch, 13...communication unit, 20...head, 30...roller, 40...sensor, BM...mark, BM1...first mark, BM2...second mark, A, B...position, C1...first printing position, C2...second printing position, C3...third printing position, L...distance, P...paper, P1...front side, P2...back side, R...roll paper.
Claims
1. A roller for transporting paper; a sensor capable of detecting a mark on the paper; a control unit capable of executing control to transport the paper to a predetermined position by the roller based on the mark detected by the sensor; a storage unit capable of storing setting information for enabling the control; A setting switch capable of setting the setting information, The control unit is If the setting information is included in the received command, the setting information is stored in the storage unit; The roll paper printing device reads the storage unit in preference to the setting switch, and executes the control if the setting information is stored.
2. The control unit is A roll paper printing device as described in claim 1, wherein the control is executed when the setting information is not stored in the memory unit and the setting information is set in the setting switch, and the control is not executed when the setting information is not set in the setting switch.
3. The roll paper printing device according to claim 1 , wherein the storage unit has a volatile memory, and the setting information is stored in the volatile memory.
4. A control method for a roll paper printing device comprising: a roller for transporting paper; a sensor capable of detecting a mark on the paper; a memory unit capable of storing setting information for enabling control of the roller to transport the paper to a specified position based on the mark detected by the sensor; and a setting switch capable of setting the setting information, If the setting information is included in the received command, the setting information is stored in the storage unit; A control method for a roll paper printing device, comprising: reading the storage unit in preference to the setting switch; and executing the control if the setting information is stored in the storage unit.
Citation Information
Patent Citations
printer
JP2006290532A
