Label printer

Abstract: An article information printer is composed of a feeding mechanism (11) for feeding continuous paper in which a series of label regions are provided, a SRAM (3) for storing size data regarding a length of the label region, a printing head section (10) for printing article information on the continuous paper fed by the feeding mechanism (11), and a control circuit (1, 5, 7) for controlling the feeding mechanism (11) on the basis of the size data stored in the SRAM (3) to print the article information in the label region. Particularly, the control circuit (1, 5, 7) has a feed sensing section (7) for sensing ends of the label region from the continuous paper fed by the feeding mechanism (11), and a processing unit (1, 5), responsive to start of power supply, for driving the feeding mechanism, measuring the length of the label region on the basis of a sensing signal from the sensing section which is obtained each time the continuous paper is fed by a preset distance, and setting a result of measurement in the SRAM (3) as the size data.

Description: This invention relates to an article information printer which performs printing on various types of continuous paper. Such a printer is known from JP-A-62146661 (see preamble of claim 1). In large-scale retail stores or physical distribution, articles are managed on the basis of labels (including tags), which are attached to the articles so as to display article codes, article names and other article information items. The labels are issued by using an article information printer which prints the article information on a roll of continuous paper. A typical article information printer receives, from a host computer, various control commands, such as a label size setting command, a feed command, a format command, a label data command, etc., and performs a process of issuing labels according to the control commands. The label size setting command contains size data representing a feed length equal to the distance between the front ends of adjacent label regions in the continuous paper, a label length equal to the distance between the opposite ends of each label region, and a space length equal to the rear end of the first label region and the front end of the second label region. The size data is used to determine the size of a printed pattern and to control the paper feed of setting the front end of each label region to a printing position. Conventionally, the article information printer need not receive a label size setting command again to issue labels of the different contents but of the same size. In this case, the size data is retained in the printer until a new label size setting command is supplied, and used for a control of printing. However, to retain the size data, power must be continuously supplied to the printer. The operator of the host computer is unable to omit the transmission of the label size setting command after another one uses the printer, since the operator cannot confirm whether the size data is erased due to an interruption of the power supply. If the transmission of the label size setting command is omitted where the size data is erased, a printing error occurs. At this time, the label size setting command must be supplied together with the other control commands. Further, such a printing error often occurs also when the transmission of the label size setting command has been erroneously omitted at the time of replacing the continuous paper with another type. This gives the operator the impression that the conventional article information printer has but low operability. It is the object of the invention to provide an article information printer capable of reducing errors in printing. To attain the object, there is provided an article information printer as set forth in claim 1. In the printer, even if the size data has been erased from the volatile memory due to an interruption of power supply, the length of the predetermined region is measured when power supply is resumed, and a result of the measurement is stored in the volatile memory as the size data. Accordingly, printing errors would not occur due to an absence of the size data, and hence the printer has higher operability than the conventional one. This invention can be more fully understood from the following detailed description when taken in conjunction with the accompanying drawings, in which: FIG. 1 is a cross sectional view showing the structure of an article information printer according to one embodiment of the present invention; FIG. 2 is a cross sectional view showing the structure of the article information printer in a state where a cover is opened to exchange the continuous paper for a new one; FIG. 3 is a block diagram showing the circuit of the article information printer of FIG. 1; FIG. 4 is a flowchart for explaining the operation of the article information printer of FIG. 1; and FIG. 5 is a flowchart for explaining, in more detail, a size measuring process shown in FIG. 4. An article information printer according to one embodiment of the present invention will now be explained with reference to the accompanying drawings. The article information printer prints article information on two types of continuous paper. The first one is used for separated label issue in which a label is issued by separating a printed portion from the reminder of the paper, and the second one is used for non-separated label issue in which a label is issued without separating a printed portion from the reminder of the paper. FIG. 1 shows the internal structure of the article information printer. This printer has a paper holder HL, a paper guide GD, a printing head section HD, a platen roller PR1, a peel-off roller PR2, a peel-off plate PL and a case CS. The case CS has a cover CV which can be opened as shown in FIG. 2. The paper holder holds continuous paper of each type rotatably hanged thereon in a state where the cover CV is opened. The cover CV is closed after the front end of the continuous paper is pulled from the paper holder HL to a label outlet OUT. At this time, the paper is urged against the platen roller PR1 from the side of the printing head section HD. The platen roller PR1 repeatedly feeds the continuous paper by a predetermined length or distance while the printing head section HD performs printing on a label region of the paper; and then feeds the paper to set the front end of the next label region to the printing position. In the case where the continuous paper for separated label issue has a series of label seals spaced from each other on a base sheet, the base sheet is adapted to be held between the platen roller PR1 and the peel-off roller PR2 after passing the peel-off plate PL. Each label seal is peeled off from the base sheet at the peel-off plate PL as the rollers PR1 and PR2 rotate, and supplied to the label outlet OUT. FIG. 3 shows the circuit of the article information printer. The printer includes a CPU 1 for controlling the overall operation of the printer, a ROM 2 storing a control program for the CPU 1 and fixed data, a static RAM (SRAM) 3 for temporarily storing data input to and output from the CPU 1, an RS-232C driver (communication interface) 4, a slide switch 5 which is switched when the type of the continuous paper on the paper holder HL is changed, a feed sensing section 7 for sensing the front and rear ends of a space between each adjacent pair of label regions, an input/output port 8 for supplying a sensing signal from the feed sensing section 7 to the CPU 1, and a gate array (input/output interface) 9 for controlling peripheral circuits. The CPU 1 is connected, by means of a system bus SB, to the ROM 2, the SRAM 3, the RS-232C driver 4, the slide switch 5, the input/output port 8 and the gate array 9. The feed sensing section 7 is connected to the input/output port 8. The printer further includes a thermal line head 10 which performs printing on the continuous paper in units of one line, a feed motor 11 which rotates the platen roller PR1 to feed the continuous paper, a motor driver 12 for driving the motor 11, a key/display panel 13 having a key-input section and a display section for displaying the state of the printer, a cover open switch 14 for detecting that the cover CV is opened, and a peel-off sensor 15 for sensing a label seal supplied to the label outlet OUT. The thermal line head 10, the motor driver 12, the key/display panel 13, the cover open switch 14 and the peel-off sensor 15 are connected to the gate array 9. The feed motor 11 is connected to the motor driver 12. The ROM 2 has a region which stores patterns of various characters (including numerals) and bar codes as the fixed data, and constitutes a pattern generator for generating a pattern corresponding to print data included in the label data command. The SRAM 3 has regions which respectively constitute a reception buffer RB for temporarily storing various control commands from the host computer HC, a work memory WK for storing various data set at the time of preparation of printing, a frame memory FM for storing, as a print pattern, a combination of patterns from the pattern generator, a first measuring counter C1 for use in measuring the label length, and a second measuring counter C2 for use in measuring the space length. The thermal line head 10 is provided at a tip portion of the printing head section HD so that it can be brought into contact with the platen roller PR1 via the continuous paper. The head 10 is driven according to the print pattern stored in the frame memory FM. The feed motor 11 is a pulse motor engaged with a gear (not shown) provided at an end of the platen roller PR1. The feed sensing section 7 includes a transmission-type optical sensor TS for sensing a space between each adjacent pair of label regions in continuous paper for separated label issue, and a reflection-type optical sensor RS for sensing marks printed at end portions of each label region in the lower or upper surface of continuous paper for non-separated label issue. In the case where the continuous paper for non-separated label issue has a series of label seals on a base sheet, the above-described space corresponds to a gap or cutout created between adjacent label seals on the base sheet. These optical sensors TS and RS are switched from one to the other by the slide switch 5. A sensing signal from the switched or selected optical sensor is used for confirming the positions of the front and rear ends of each label region while the continuous paper is fed. The key/display panel 13 includes, for example, various control keys such as a print start key and a paper feed key, a power switch, LEDs, and a display. One of the LEDs is lit when the power switch is turned on. The host computer HC transmits various control commands such as a label size setting command, a feed command, format commands and label data commands. The label size setting command includes size data representing a feed length equal to the distance between the front ends of adjacent label regions in the continuous paper, a label length equal to the distance between the opposite ends of each label region, and a space length equal to the rear end of a first label region and the front end of a second label region. The size data is used to determine the size of a print pattern, i.e., the size of the frame memory FM, and also to determine a paper feed distance to set the front end of the label region to the printing position. The feed command includes control data for controlling the feed sensing section 7. The format command includes two-dimensional coordinate data, magnification data, style data, and rotation data of a character or a character string. The label data command includes codes of characters (or numerals) to be printed in the form of a character string or a bar code) as article information. The format command is prepared for each label data command. The operation of the article information printer will now be explained. The operator turns on the power switch of the printer after confirming that the slide switch 5 has been set to indicate the type of the continuous paper on the paper holder HL. Upon start of power supply, the CPU 1 performs the operation shown in FIG. 4 by executing the control program stored in the ROM 2. When the operation is started, the SRAM 3 and the RS-232C driver 8, etc., are initialized in step ST1. In step ST2, a size measuring process is performed on the continuous paper set on the paper holder HL. In this process, the length of each label region and the distance (space length) between adjacent two label regions are measured by using the optical sensor selected by the slide switch 5. (This process will be explained later, with reference to FIG. 5.) In step ST3, it is checked from the state of the slide switch 5 whether or not the continuous paper has been changed from one type to another. If it is detected that the type of the continuous paper is detected to be changed, step ST2 is executed again. If, on the other hand, it is detected in step ST3 that the type of the continuous paper has not been changed, it is checked in step ST4 whether or not there is a control command received from the host computer HC. The received command, if any, is stored in the reception buffer RB in step ST6. In step ST7, it is checked whether or not all control commands required for issuing labels have been received. If there is any command which has not yet been received, step ST3 is executed again. If it is detected in step ST7 that all the commands have been received, the CPU 1 performs a print preparation process in step ST8. In this process, each control command is read out from the reception buffer RB, and it is checked whether the read command is one of the label size setting command, the feed command, the format command and the label data command. If the read command is detected to be the label size setting command, a label size setting process is performed to determine the paper feed distance, the size of the frame memory FM and the like, according to the size data, and set them in the work memory WK. If the read command is detected to be the feed command, a feed condition setting process is performed to set the use or non-use of the sensor 15, and the like, in the work memory WK. If the read command is the format command, a format setting process is performed to set in the work memory WK two-dimensional coordinate data, magnification data, style data, rotation data of a character or a character string, etc. If the read command is the label data command, print image producing process is performed to convert codes of characters (or numerals) into a pattern of a character string or a bar code by means of the pattern generator, and to store them in the frame memory FM. If the read command is not included in the above ones, a reception error process is performed. Subsequent to the print preparation process, the CPU 1 performs a printing process in step ST9. In the printing process, a print pattern is read from the frame memory FM in units of one line after confirming that a print start command is supplied, and the pattern is printed as an image in a label region of the paper. The continuous paper is fed by a preset distance for each printing of one line. When all the image of one label is formed in the label region, the paper is fed to set the front end of the next label region to the printing position. The printing process is finished after the required number of labels are issued. Subsequent to the printing process, the CPU 1 executes step ST3 again. In the case of separated label issue, the paper feed and the printing process for the next label is inhibited during the period when the printed label projected from the outlet OUT is not picked up and sensed by the peel-off sensor 15. Printing of the next label starts after confirming that the printed label is picked up, based on a signal from the sensor 15. FIG. 5 shows in more detail the size measuring process shown in FIG. 4. When the size measuring process is started, the CPU 1 clears in step ST11 the values of the first and second measuring counters C1 and C2 to an initial value "0", and enables in step ST12 the feed motor 11 to rotate by one step so as to feed the continuous paper, and checks in step ST13 whether or not the feed sensing section 7 has detected the front end of a space. Steps ST12 and ST13 are repeated until the front end of the space faces the feed sensing section 7 as the continuous paper is fed. Upon detection of the front end of the space, the CPU 1 enables in step ST14 the feed motor 11 to rotate by one step, and checks in step ST15 whether or not the feed sensing section 7 has detected the rear end of the space. Steps ST14 and ST15 are repeated until the rear end of the space is detected as the continuous paper is fed. Upon detection of the rear end of the space, the CPU 1 enables the feed motor 11 to rotate by one more step in step ST16, then in step ST17 adds "1" to the count of the first measuring counter C1, and in step ST18 checks whether or not the feed sensing section 7 has detected the front end of the following space. Steps ST16 - ST18 are repeated until the front end of the following space faces the feed sensing section 7 as the continuous paper is fed. Upon detection of the front end of the following space, the CPU 1 enable the feed motor 11 to rotate by one step in step ST19, then in step ST20 adds "1" to the count of the second measuring counter C2, and in step ST21 checks whether or not the feed sensing section 7 has detected the rear end of the following space. Steps ST19 - ST21 are repeated until the rear end of the following space faces the feed sensing section 7 as the continuous paper is fed. Upon detection of the rear end of the following space, the CPU 1 stores in step ST22 the count of the first measuring counter C1 as a label length (i.e., the distance between the front and rear ends of each label region) in the work memory WK, and stores in step ST23 the count of the second measuring counter C2 as a space length (i.e., the distance between the rear end of a label region and the front end of the following label region) in the work memory WK. Size data such as the label length and the space length are retained in the work memory WK, unless the printer power is turned off or they are updated according to the label size command supplied from the host computer HC. The retained size data can be used in the above-described print preparation process and printing process so as to issue another label. The size measuring process terminates after the execution of step ST23. As described above, in the above-described embodiment, sizes such as the label length and the space length are measured as regards continuous paper set on the paper holder HL, at the time when the power switch of the printer is turned on and at the time when the slide switch 5 is switched over, and are stored in the SRAM 3 in order to be used in the print preparation process and the printing process. Accordingly, no printing errors occur even if the transmission of the label size setting command is omitted in a case where the size data have been erased due to an interruption of the power supply to the printer. Further, no printing errors occur even if the transmission of the label size setting command is mistakenly omitted in a case where the type of the continuous paper has been changed. Thus, the article information printer of this embodiment has higher operability than the conventional one. In the embodiment, the slide switch 5 is used for selecting the type of continuous paper. However, this switch 5 can be replaced with a dip switch, for example. Further, continuous paper may have marks printed at predetermined interval to indicate ends of each label region.

Claims: An article information printer comprising: a feeding mechanism (PR1, 11) for feeding continuous paper in which a series of predetermined regions are provided; a volatile memory (3) for storing size data representing a length of the predetermined region; printing means (HD) for printing article information on the continuous paper fed by said feeding mechanism (PR1, 11); and control means (1, 5, 7) for controlling said feeding mechanism (PR1, 11) on the basis of the size data stored in said volatile memory (3) to print the article information in the predetermined region of the continuous paper, wherein said control means includes sensing means (7) for sensing a distinguishable feature of the predetermined region from the continuous paper fed by the feeding mechanism (PR1, 11), whereat said control means further includes processing means (1, 5), responsive to power supply which is resumed for driving said feeding mechanism (PR1, 11), measuring the length of the predetermined region on the basis of a sensing signal from the sensing means (7) which is obtained, as a result of sensing by said sensing means (7), each time the continuous paper is fed by a preset distance, and setting size data indicating the measured length of the predetermined region in said volatile memory (3) to recover the size data; characterized in that, the printer receives in addition size data from an external device to replace the measured size data and that the size data is erased C from the volatile memory (3) due to an interruption of power supply. An article information printer according to claim 1, characterized in that said processing means (1,5) is further responsive to a change in the type of continuous paper to update the size data. An article information printer according to claim 2, characterized in that said processing means (1, 5) includes switch means (5) for selecting the type of continuous paper. An article information printer according to claim 1, characterized in that said processing means (1, 5) measures the length of the predetermined region together with a space between the predetermined regions. An article information printer according to claim 1, characterized in that said sensing means (7) includes sensors (TS, RS) each assigned to a corresponding type of continuous paper. An article information printer according to claim 1, characterized in that said distinguishable feature is a mark provided on said continuous paper. An article information printer according to claim 1, characterized in that said distinguishable feature is a cutout or gap provided on continuous paper.

Inventors: SENDA KOUJI, SENDA, KOUJI
Applicants: TOSHIBA TEC KK, TOSHIBA TEC KABUSHIKI KAISHA
Application year: 1994
Main classification: G06K15
IPC codes: B41J15, G06K15, B41J11, B41J3