This application is based upon and claims the benefit of priority from the prior Japanese Patent Application No. 2017-140262, filed on Jul. 19, 2017, the entire contents of which are incorporated herein by reference.
An embodiment described here generally relates to a printer and a method of controlling the printer.
In a store, the product name, the price, the expiration date, and the like of a product are printed on a label, and the label is attached to the product. When printing the above-mentioned label, a label printer displays a label to be printed on a display device to cause an operator to check whether or not the print content is correct. The operator of the label printer checks whether or not the content of print items is correct by checking the above-mentioned displayed content.
When performing the checking, even in the case where the difference from the label printed last time is small, e.g., the label of the same product is to be printed again, the operator of the label printer needs to check all print items again. For this reason, there is a problem that the operator takes time and effort for the checking.
According to an embodiment, a printer performs printing on a printable medium to be attached to a product. The printer includes: an interface; a memory; a printer mechanism; a display; and a controller. The interface inputs identification information identifying the product. The memory records a product information file that records, for each piece of the identification information, product information including a plurality of pieces of data of a plurality of attribution items each representing an attribution of the product, the memory recording print data in association with the identification information, the plurality of pieces of data of the plurality of attribution items being arranged at predetermined positions in the print data. The printer mechanism prints the product information of the product identified by the input identification information, on the printable medium on the basis of the print data. The display displays a print image of the printable medium where the product information is to be printed by the printer mechanism. The controller reads, where the identification information is input via the interface, the product information from the product information file in the memory on the basis of the identification information. The controller generates print data in which the plurality of pieces of data included in the read product information are arranged at predetermined positions. The controller detects an attribution item that differs between the generated print data and the print data that is recorded in the memory in association with the input identification information. The controller displays the print image on the display on the basis of the generated print data in such a way that the detected attribution item is highlighted.
Hereinafter, an embodiment will be described with reference to the drawings. In the drawings, the same reference symbols show the same or similar units.
(Description of Schematic Configuration of Label Printer System)
A label printer according to an embodiment will be described first with reference to the drawings.
The label printer 10 is a printer that performs printing for issuing a label 50. The label 50 is a medium, such as a paper, on which product information (to be described later) is printed and is attached to the product in order to represent the product information. The label printer 10 prints information and the like of the product on the label sheet and issues the label 50. Hereinafter, printing information of the product and the like on the label sheet and issuing the label 50 will be referred to simply as printing of the label 50 in some cases. The label printer 10 includes a display device 13. Further, the label printer 10 includes a top cover 11 and a main cover 12. The display device 13 is provided on the top cover 11. The display device 13 is, for example, a liquid crystal display or the like and a touchscreen 14 is layered. The top cover 11 is provided on the main cover 12 and is opened/closed. The main cover 12 includes an accommodation device (not shown) that accommodates a rolled label sheet. For example, when the top cover 11 is open, the accommodation device of the main cover 12 is exposed. The operator is capable of supplying label sheets to the accommodation device by opening the top cover 11. The label sheet is obtained by attaching a plurality of labels 50 to a strip-shaped sheet, for example. Further, the label printer 10 includes a print device 110 (see
Further, the label printer 10 includes a handy scanner 32. The handy scanner 32 is connected to the label printer 10. The handy scanner 32 reads a code symbol (e.g., barcode) attached to a product to which the label 50 is to be attached. The code symbol includes a product code and the like. The product code is identification information uniquely identifying a product.
The label printer 10 includes a PLU file 107 (see
As described above, the label 50 is a printable medium on which product information of a product to which the label 50 is to be attached is printed. The product information includes, for example, information on the product name, the product price, the manufacturing date, the best-before date, the expiration date, the production area, and the like. Note that a specific example of the label 50 will be described later.
(Description of Hardware Configuration of Label Printer)
Next, a hardware configuration of the label printer 10 of the label printer system 1 will be described.
Further, the label printer 10 includes the memory device 105, an input/output controller 109, a communication interface 111, and a connection interface 112. The controller 100 is connected to the memory device 105, the input/output controller 109, the communication interface 111, and the connection interface 112 via the bus line 104.
The memory device 105 is a nonvolatile memory that holds information even after power-off, such as a flash memory. The memory device 105 records programs including a control program P1, and the like. The control program P1 is a program for realizing the functions of the label printer 10. Further, the memory device 105 records the PLU (Price Look Up) file 107, and print data 108.
The PLU file 107 records, for each product code, product information on the product corresponding to the product code. The PLU file 107 is one to which a PLU file 207 (see
The print data 108 is print data for the label 50 printed in the past by the label printer 10. The print data 108 includes text data 108a and layout data 108b. The detailed configuration of the print data 108 will be described later.
The input/output controller 109 is connected to the display device 13, the touchscreen 14, and the print device 110. The input/output controller 109 controls the display device 13, the touchscreen 14, and the print device 110 connected thereto on the basis of a command from the controller 100.
The print device 110 includes a platen roller and a print head (which are not shown). The platen roller rotates, thereby pulls the label sheet out of the above-mentioned accommodation device (not shown), and feeds the label sheet. The print head is, for example, a thermal head. The print head performs printing on the label sheet fed by the platen roller.
The communication interface 111 is an interface for communicating with the store-server 20 via the network 30 such as an in-store LAN (see
The connection interface 112 is an interface for connecting to an external device. For example, to the connection interface 112, the handy scanner 32 is connected.
(Description of Hardware Configuration of Store-Server)
Next, a hardware configuration of the store-server 20 will be described.
Further, the store-server 20 includes the memory device 205, an input/output controller 209, and a communication interface 212. The controller 200 is connected to the memory device 205, the input/output controller 209, and the communication interface 212 via the bus line 204.
The memory device 205 is a memory such as an HDD (Hard Disk Drive) or an SSD (Solid State Drive). The memory device 205 may be a nonvolatile memory that holds information even after power-off, such as a flash memory. The memory device 205 records programs including a control program P2, and the like. The control program P2 is a program for realizing the functions of the store-server 20. Further, the memory device 205 records the PLU file 207.
The PLU file 207 is transmitted to each system such as the label printer system 1, device, or the like. Therefore, when the price of a product is changed or when a sale or the like is held, a manager of a store or the like edits the PLU file 207 of the store-server 20. In other words, the memory device 205 records the newest PLU file 207.
Further, the store-server 20 includes a display device 210 and an operation device 211. The input/output controller 209 is connected to the display device 210 and the operation device 211. The input/output controller 209 controls the display device 210 and the operation device 211 connected thereto on the basis of commands from the controller 200.
The display device 210 is, for example, a liquid crystal display (LCD). Note that the display device 210 may not be a liquid crystal display device but may be an organic EL (Electro Luminescence) display or another display. The operation device 211 includes a keyboard, a mouse, and/or other operation devices.
The communication interface 212 is an interface for communicating with the label printer 10 via the network 30 such as an in-store LAN (see
(Description of Functional Configuration of Label Printer)
Next, a functional configuration of the label printer 10 will be described with reference to
The print data generation module 40 acquires product information to be printed on the label 50 under the condition that an operation of requesting printing the label 50 is accepted. The print data generation module 40 generates the print data 108 in which predetermined information regarding the product, which is included in the product information, is arranged at a predetermined position. Note that the print data generation module 40 is an example of generation means.
Specifically, first, an operator operates the handy scanner 32 to read the product code from the code symbol (e.g., barcode) printed on a product to which the label 50 is to be attached. The print data generation module 40 searches the PLU file 107 for the product information corresponding to the product code read by the handy scanner 32. The print data generation module 40 reads, from the PLU file 107, the product information corresponding to the read product code. The print data generation module 40 generates the print data 108 necessary for performing printing of the label 50 on the basis of the read product information. The print data 108 is data in which product information to be printed on the label 50 is arranged in a predetermined format set in advance. The print data 108 includes, for example, information on items to be described later such as the product name, the processing date, the expiration date, and the price.
Note that the content of the PLU file 107 is periodically updated. Therefore, there is the product information corresponding to the product code read by the handy scanner 32 in the PLU file 107. However, there is no product information corresponding to the product code read by the handy scanner 32 in the PLU file 107 due to delay of the above-mentioned updating or the like in some cases. In this case, the print data generation module 40 communicates with the store-server 20 via the network 30. The print data generation module 40 refers to the PLU file 207 recorded in the memory device 205 (see
The print data memory module 41 records, in the memory device 105 for each product code, the print data 108 that is generated by the print data generation module 40 and checked to be free of problems as will be described later. Note that the print data memory module 41 is an example of memory means.
The change detection module 42 detects an item that is changed (differs) between the print data 108 (newly-generated print data 108) generated by the print data generation module 40 and the print data 108 (previously-generated print data 108), which is recorded in the memory device 105, of the product corresponding to the same product code of that of the above-mentioned new print data 108, i.e., an item of a changed attribution among attributions of the product to be described later. In other words, the change detection module 42 detects, when the print data generation module 40 newly generates the print data 108, a changed item (item of a changed attribution among attributions of the product to be described alter) of the newly-generated print data 108 with respect to the previously-generated print data 108 under the condition that the previously-generated print data 108 of the product corresponding to the same product code as that of the product of the newly-generated print data 108 is recorded in the memory device 105. Note that the change detection module 42 is an example of detection means.
The change highlighting module 43 displays, on the display device 13, a printing image of the label 50 based on the print data 108 (new print data 108) generated by the print data generation module 40. Further, the change highlighting module 43 highlights the item of the new print data 108, which is detected by the change detection module 42. Note that the change highlighting module 43 is an example of highlight means.
The notification module 44 performs, when the print data generation module 40 generates the print data 108 (new print data 108), notification under the condition that the print data 108 (previous print data 108) of the product corresponding to the same product code as that of the product of the new print data 108 is not recorded in the memory device 105. Note that the notification module 44 is an example of notification means.
The operation control module 45 controls the touchscreen 14, and accepts various operations on the label printer 10. Note that the operation control module 45 may accept various operations on the label printer 10 by detecting that not the touchscreen 14 but operation buttons (not shown) or the like of the label printer 10 are operated.
The display control module 46 controls the display state of the display device 13.
The print control module 47 controls printing of the label 50 executed by the print device 110.
The communication control module 48 causes the communication interface 111 to perform communication between the label printer 10 and the store-server 20.
(Description of Structure of Print Data)
Next, a structure of the print data 108 will be described. As described above, the print data 108 includes the text data 108a and the layout data 108b (see
As shown in
The product number 60a is information that represents a product code of a product.
The product name 60b is information that represents a product name of a product.
The auxiliary name 60c represents auxiliary information added to a product. For example, the auxiliary name 60c is information such as “new release”, “limited time”, and “limited area”.
The raw material 60d is information that represents a raw material of a product.
The processing date 60e is information that represents the processing date, the cooking date, or the manufacturing date of a product. The processing date 60e is recorded separately for date and time as shown in
The expiration date 60f is information that represents the expiration date of a product. Note that instead of the expiration date, the best-before date may be represented depending on the product.
The price 60g is information that represents the price of a product.
The barcode 60h is code information that includes the product number 60a and the like of a product. Note that as shown in
The title information 60i is information that represents a title character or the like to be printed on the label 50. Note that the title information 60i is information for identifying one of a plurality of titles determined in advance. Therefore, as shown in
The container information 60j represents information regarding a container in which a product is placed. The container information 60j includes a symbol or the like that represents a material of the container. Note that the container information 60j is information for identifying one of a plurality of containers determined in advance. Therefore, as shown in
The additional information 60k represents additional information of a product. The additional information 60k of a product includes, for example, notes or the like regarding handling of the product. Note that the additional information 60k is information for identifying one of a plurality of pieces of additional information determined in advance. Therefore, as shown in
As shown in
The layout data 108b is data that represents the arrangement (print) position of each attribution item (the product number 60a to the additional information 60k) when printing the text data 108a on the label 50. The text data 108a is recorded as, for example, image data. The layout data 108b includes a coordinate position (e.g., upper left coordinate position of a rectangular area) at which each attribution item of the text data 108a is arranged. Note that the layout data 108b is not limited to one type of layout data, and a plurality of types of different layout data 108b are recorded. Although not shown in
(Description of Method of Detecting Change)
Next, the above-mentioned method of detecting the changed attribution item in the print data 108 executed by the change detection module 42 will be described. As described above, the change detection module 42 detects an attribution item that differs between the new print data 108 generated by the print data generation module 40 and the previously-generated print data 108 of the product corresponding to the same product code as that of the new print data 108. Specifically, the change detection module 42 detects an attribution item that differs between the text data 108a of the new print data 108 and the text data 108a of the previously-generated print data 108.
The content of each attribution item (the product name 60b to the additional information 60k) included in the text data 108a is changed in some cases depending on the time and date or the like even when the product number (product code) 60a of the product is the same. The change detection module 42 compares the content of the generated text data 108a and the content of the previously-generated text data 108a that includes the same product number 60a as that of the text data 108a and is recorded in the memory device 105 every time the print data generation module 40 newly generates the text data 108a. Specifically, the change detection module 42 compares the content of the same attribution items (the product name 60b to the additional information 60k) of the newly-generated text data 108a and the previously-generated text data 108a.
The change detection module 42 detects a changed attribution item by comparing the text data 108a. Note that the detection of the attribution items with the change may be performed by comparing the product information on which the text data 108a is based. In this case, it is necessary to store the product information that was source of the previous print data 108 (the text data 108a) generated previously. Also, the attribution items (the barcode 60h to the additional information 60k) in which labels (the above-mentioned identification numbers B1, L1, R1, and I1) are recorded are not data to be actually printed, and the presence/absence of the change is detected by comparing the above-mentioned identification numbers. The change detection module 42 transmits names of all the detected attribution items to the change highlighting module 43.
(Description of Method of Highlighting Change)
Next, the above-mentioned method of highlighting the changed attribution item by the change highlighting module 43 will be described.
The change highlighting module 43 arranges the corresponding text data 108a at a predetermined position (predetermined position corresponding to each attribution item) of the layout data 108b generated by the print data generation module 40. The change highlighting module 43 changes the method of displaying the attribution item corresponding to the change detected by the change detection module 42 after arranging the text data 108a.
For example, the change highlighting module 43 highlights the changed attribution item by superimposing a rectangular frame on the attribution item and displaying them. Specifically, as shown in
Note that the method of highlighting the changed attribution item is not limited to the superimposition of a rectangular frame. Specifically, the change highlighting module 43 may change the display color of the changed attribution item to highlight the attribution item. Further, the change highlighting module 43 may enlarge the display size of the changed attribution item to highlight the attribution item.
(Description of Display Example of Label Printer)
Next, an example of display content that the display control module 46 causes the display device 13 of the label printer 10 to display before printing the label 50 will be described with reference to
As shown in
The labels 50a and 50b respectively shown in
Note that in
The display control module 46 displays a message for the operator of the label printer 10 on the message window 62. In the example shown in
The print button 64 is a button, which receives a pressing operation by the operator, for instructing the label printer 10 to print the print data 108 of the label 50a displayed on the display device 13. In other words, the operation control module 45 detects that the print button 64 is pressed by the operator. The print control module 47 causes, when the operation control module 45 detects that the print button 64 is pressed by the operator, the print device 110 to perform printing for issuing the label 50 based on the print data 108 of the label 50a (print image of the label 50). Note that the print data 108 does not include the rectangular frames 70a and 70b superimposed on the processing date 60e and the expiration date 60f in the example of
The registration button 66 is a button, which receives a pressing operation by the operator, for instructing the label printer 10 to register the print data 108 of the label 50a displayed on the display device 13. In other words, the operation control module 45 detects that the registration button 66 is pressed by the operator. The print data memory module 41 causes, when the operation control module 45 detects that the print button 64 is pressed by the operator, the memory device 105 to record the print data 108 of the label 50a.
The return button 68 is a button, which receives a pressing operation by the operator, for instructing to return the label 50a displayed on the display device 13 to the state in which the label 50a of the previous product is displayed. In other words, the operation control module 45 detects that the return button 68 is pressed by the operator. The display control module 46 displays, when the operation control module detects that the print button 64 is pressed by the operator, the label 50a of the print data 108 of the previous product on the display device 13.
In the case of
Note that also in the case where the label 50a or 50b are displayed on the touchscreen 14, the functions of the print button 64, the registration button 66, and the return button 68 are as described above. In the case where the label printer 10 executes printing according to the label 50b in the display state of the display device 13 shown in
(Description of Flow of Processing Executed by Label Printer)
Next, the processing executed by the controller 100 of the label printer 10 will be described.
As shown in
In Step S12, the change detection module 42 detects a change (changed attribution item) in the print data 108 (the print data 108 generated in Step S108) generated by the print data generation module 40 this time. In other words, the change detection module 42 detects an attribution item that differs between the print data 108 generated this time and the print data 108, which is recorded in the memory device 105, of the product corresponding to the same product code as that of the print data 108 generated this time.
In Step S14, the change detection module 42 determines presence/absence of a change (changed attribution item). In the case where it is determined that there is a changed attribution item (Step S14: Yes), the processing of the controller 100 proceeds to Step S16. In Step S16, the change highlighting module 43 performs processing of highlighting the changed attribution item in the print data 108. In other words, the change highlighting module 43 superimposes the rectangular frames 70a and 70b at the positions of the changed attribution items to highlight the changed attribution items in the print data 108. Further, in Step S16, the display control module 46 displays, on the display device 13, the label 50a or 50b (print image) based on the print data 108 in which the highlighting processing is executed on the above-mentioned changed attribution item by the change highlighting module 43. When the print data 108 in which the highlighting processing is executed on the changed attribution item is displayed on the display device 13, the processing of the controller 100 proceeds to Step S20. Meanwhile, in the case where it is not determined that there is a changed attribution item (Step S14: No), the processing of the controller 100 proceeds to Step S18. In Step S18, the display control module 46 displays, on the display device 13, the above-mentioned print data 108 (the print data 108 generated in Step S10) generated this time. When the above-mentioned print data 108 generated this time is displayed on the display device 13, the processing of the controller 100 proceeds to Step S20.
In Step S20, the operation control module 45 determines whether or not there is a print instruction of the print data 108 by the operator. In the case where it is determined that there is a print instruction (Step S20: Yes), the processing of the controller 100 proceeds to step S22. In Step S22, the operation control module 45 transmits an instruction for printing to the print control module 47. The print control module 47 causes the print device 110 to perform printing based on the print data 108. When the print device 110 executes printing of the print data 108, the processing of the controller 100 proceeds to Step S24. Meanwhile, in the case where it is not determined that there is a print instruction (Step S20: No), the processing of the controller 100 proceeds to Step S24.
In Step S24, the operation control module 45 determines whether or not there is a registration instruction of the print data 108 by the operator. In the case where it is determined that there is a registration instruction (Step S24: Yes), the processing of the controller 100 proceeds to Step S26. In Step S26, the operation control module 45 transmits, to the print data memory module 41, an instruction for registering the print data 108. The print data memory module 41 causes the memory device 105 to record (register) the print data 108. When the print data 108 is registered in the memory device 105, the processing of the controller 100 shown in
As described above, according to the label printer 10 (printer) of this embodiment, the change detection module 42 (detection means) detects a changed attribution item in the print data 108 for the label 50 generated by the print data generation module 40 (generation means). In other words, the change detection module 42 detects a changed attribution item in the generated print data 108 between the generated print data 108 and the print data 108, which is recorded (registered) in the memory device 105 by the print data memory module 41 (memory means), of the product corresponding to the same product number 60a (product code) as that of the generated print data 108. The change highlighting module 43 (highlight means) executes processing of highlighting the attribution item detected by the change detection module 42 in the generated print data 108. The display control module 46 displays, on the display device 13, the above-mentioned print data 108 on which highlight processing is performed by the change highlighting module 43. Therefore, a changed attribution item in the generated print data 108 for the label 50 with respect to the print data 108 (the print data 108 recorded in the memory device 105) for the label 50 printed in the past is highlighted. Therefore, the operator is capable of easily checking the label 50 in a short time before executing printing.
Further, according to the label printer 10 of this embodiment, the print data memory module 41 is capable of causing, by receiving an instruction from the operator, the memory device 105 to record (register), for the product corresponding to each product number 60a (product code), the print data 108 for the label 50 generated for the first time by the print data generation module 40. Therefore, the label printer 10 is capable of reliably recording the print data 108 of the product corresponding to the product code printed once.
Further, according to the label printer 10 of this embodiment, the print data memory module 41 causes, by receiving an instruction from the operator, the memory device 105 to record, for the product corresponding to each product number 60a, the print data 108 for the label 50 generated most recently by the print data generation module 40. Therefore, the label printer 10 is capable of reliably recording the print data 108 of the product corresponding to the product code printed once. In particular, in the case where a major change such as a change in the product name 60b or the auxiliary name 60c occurs for the product corresponding to the same product number 60a (product code) and the changes are maintained thereafter, the label printer 10 is capable of recording the print data 108 of the time when the above-mentioned major changes occurs. Therefore, it is possible to reduce the number of changes (changed attribution items) in the print data 108 to be generated with respect to the print data 108 printed in the past. In other words, it is possible to suppress the increase in the time necessary for checking the print data 108 to be printed.
Further, according to the label printer 10 of this embodiment, the change detection module 42 detects a changed attribution item by comparing information to be arranged on each attribution item of the print data 108 for the label 50. Therefore, the label printer 10 is capable of easily detecting a changed attribution item in the generated print data 108 by simple calculation processing.
Further, according to the label printer 10 of this embodiment, the notification module 44 (notification means) performs, when the print data generation module 40 generates the print data 108, notification under the condition that the print data 108 having the same product number 60a as that of the print data 108 is not recorded in the memory device 105 by the print data memory module 41. Therefore, the label printer 10 is capable of warning that it is necessary to carefully perform checking before printing for the label 50 to be printed for the first time.
Note that the above-mentioned embodiment is not limited. For example, the control program P1 to be executed by the label printer 10 and the control program P2 to be executed by the store-server 20 may be recorded respectively in the memory devices 105 and 205 in advance and provided, or recorded in an installable format file or an executable format file in a computer readable recording medium such as a CD-ROM, a flexible disk (FD), a CD-R, and a DVD (Digital Versatile Disk) and provided. Further, the control programs P1 and P2 may be recorded in a computer connected to a network, downloaded via the network, and provided. Further, the control programs P1 and P2 may be provided or distributed via a network such as the Internet.
While certain embodiments have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the inventions. Indeed, the novel embodiments described herein may be embodied in a variety of other forms; furthermore, various omissions, substitutions and changes in the form of the embodiments described herein may be made without departing from the spirit of the inventions. The accompanying claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the inventions.
Number | Date | Country | Kind |
---|---|---|---|
2017-140262 | Jul 2017 | JP | national |