JPH06243275A - Code analysis and print device for bar code - Google Patents

Code analysis and print device for bar code

Info

Publication number
JPH06243275A
JPH06243275A JP5054991A JP5499193A JPH06243275A JP H06243275 A JPH06243275 A JP H06243275A JP 5054991 A JP5054991 A JP 5054991A JP 5499193 A JP5499193 A JP 5499193A JP H06243275 A JPH06243275 A JP H06243275A
Authority
JP
Japan
Prior art keywords
code
printable
bar
data
combination
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5054991A
Other languages
Japanese (ja)
Inventor
Takeshi Nakamura
雄 中村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shinko Seisakusho KK
Original Assignee
Shinko Seisakusho KK
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shinko Seisakusho KK filed Critical Shinko Seisakusho KK
Priority to JP5054991A priority Critical patent/JPH06243275A/en
Publication of JPH06243275A publication Critical patent/JPH06243275A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To normally print a bar code by storing an unprintable code as a combination of printable codes and printing bars designated with the unprintable code by this combination. CONSTITUTION:The table where not only image data of bar codes corresponding to printable code data are stored but also image data of bars of bar codes corresponding to unprintable code data are expressed by printable combinational codes is stored in a storage part 8 of a printer 3. At the time of printing a bar code, a host computer 4 designates printable combination code data corresponding to code data in accordance with this table if this code data cannot be printed. A control part 6 calls corresponding image data of the bar code from the storage part 8 based on designated code data and sends this image data to an output part 7 to print it.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、プリンタなどの印刷装
置に関するものであり、特に、バーコードを構成する各
バーのコード指定を行うことによりバーコード印刷を行
う印刷装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printing device such as a printer, and more particularly to a printing device for performing bar code printing by designating a code for each bar forming a bar code.

【0002】[0002]

【従来の技術】従来、バーコードをプリンタなどの印刷
装置で印刷しようとする場合、図1に示すような形式に
よって、D1 〜Dn にバーコードの各バーに対応するコ
ードデータを入力することによって、図2に示すような
バーコードを印刷するようになっていた。このようにバ
ーコードはマーク・スペース比の異なる複数のバーの組
み合わせにより表現されており、このバーコードが印刷
されたラベルを商品や商品などの梱包に貼り付けておく
ことによって、その商品の値段や種類や製造日などの情
報を瞬時に読み取ることが可能となり、商品管理などに
役立てることができる。このバーコードはスーパーマー
ケットやコンビニエンスストアなどに導入されているP
OSシステムにおいて、実際に使用されるものである。
2. Description of the Related Art Conventionally, when a bar code is to be printed by a printer such as a printer, by inputting code data corresponding to each bar of the bar code in D1 to Dn according to the format shown in FIG. , A bar code as shown in FIG. 2 was printed. In this way, barcodes are expressed by a combination of multiple bars with different mark / space ratios, and by attaching a label with this barcode printed on the product or packaging of the product, the price of the product It is possible to instantly read information such as type, manufacturing date, etc., which is useful for product management. This barcode is used in supermarkets and convenience stores.
It is actually used in the OS system.

【0003】図1に示されている、バーコードの各バー
に対応するコードデータD1 〜Dn (n の最大値は12
8)には、それに使用するためのキャラクタデータが決
めてあって、例えば、CODE128という名称のバー
コードでは、キャラクタデータとしてASCIIコード
128文字全種、ファンクションキャラクタ(FNC1
〜4),コードセット選択キャラクタ(A、B、C、S
hift)、スタートコード(A、B、C)が使用でき
るようになっている。そして、「PR」、「;」で囲ま
れたキャラクタデータによって指定されるバーコードが
印刷されるようになっている。
Code data D1 to Dn (n having a maximum value of 12 is shown in FIG. 1 corresponding to each bar of the bar code.
In 8), character data to be used for it is determined. For example, in the case of a bar code named CODE128, all ASCII character 128 character types, function character (FNC1) are used as character data.
~ 4), code set selection characters (A, B, C, S)
shift) and start code (A, B, C) can be used. Then, the bar code specified by the character data surrounded by "PR" and ";" is printed.

【0004】[0004]

【発明が解決しようとする課題】このようなバーコード
の印刷装置において、バーコードを印刷する場合、印刷
可能なコードデータ(ASCIIコードの場合、20H
〜7EH(16進))を指定する場合は、直接コードデ
ータの指定を行っても印刷装置に不都合が発生すること
はない。しかし、印刷不可能なコードデータ(ASCI
Iコードの場合、00H〜1FH、7FH(16進)、
その他の印刷可能なコード以外)を指定する場合におい
ては、指定したコードデータが印刷装置の制御コマンド
と重なって、対ホストインターフェースで不具合が発生
したり、印刷装置のファンクションコード範囲と重複し
て、印刷装置の動作に異常が発生したりするという欠点
があった。
When printing a bar code in such a bar code printing apparatus, printable code data (20H for ASCII code) is used.
In the case of specifying ~ 7EH (hexadecimal), even if the code data is directly specified, no inconvenience occurs in the printing apparatus. However, unprintable code data (ASCI
In case of I code, 00H to 1FH, 7FH (hexadecimal),
(Other than the printable code), the specified code data overlaps with the control command of the printing device, causing a problem with the host interface or overlapping with the function code range of the printing device. However, there is a drawback that the operation of the printing device may be abnormal.

【0005】本発明は、このような背景に基づいてなさ
れたものであり、バーコードの印刷時に印刷不可能なコ
ードデータを指定した場合においても、印刷装置の不具
合や動作の異常の発生を回避して、バーコードの印刷が
正常に行われることを目的とする。
The present invention has been made on the basis of such a background, and avoids the occurrence of malfunctions and abnormal operations of the printing apparatus even when unprintable code data is designated at the time of printing a barcode. Then, the bar code is printed normally.

【0006】[0006]

【課題を解決するための手段】前記目的を達成するため
に、本発明では、バーコードの印刷を行う印刷装置にお
いて、バーコードを構成する各バーを指定するための印
刷不可能なコードを、印刷可能なコードの組み合わせに
よって表現したものをあらかじめ記憶しておき、印刷可
能なコードの組み合わせを指定することによって、印刷
不可能なコードによって指定されるべき各バーを印刷す
るようになっている。
In order to achieve the above object, in the present invention, in a printing apparatus for printing a barcode, a non-printable code for designating each bar constituting the barcode is provided. What is expressed by a combination of printable codes is stored in advance, and by designating a combination of printable codes, each bar that should be specified by an unprintable code is printed.

【0007】[0007]

【作用】本発明では、バーコードを構成する各バーのう
ち、印刷不可能なコードによって指定されるべきもの
が、印刷可能なコードの組み合わせによって表現されて
いて、印刷装置に印刷不可能なコードが取り込まれるこ
とがないので、バーコード印刷時に、バーコードのコー
ドデータが、印刷装置の制御コマンドと重なって対ホス
トインターフェースで不具合が発生したり、印刷装置の
ファンクションコード範囲と重複して印刷装置の動作に
異常が発生したりすることがなくなり、その結果、印刷
不可能なコードによって指定されるバーがバーコードの
中にあったとしても、バーコードの印刷が正常に行われ
る。
According to the present invention, among the bars constituting the bar code, the bar to be designated by the non-printable code is expressed by the combination of the printable codes, and the bar code which cannot be printed on the printing device. When a barcode is printed, the barcode code data overlaps with the printer's control command, causing a malfunction in the host interface, or overlapping with the printer's function code range. The operation does not occur abnormally, and as a result, even if the bar designated by the unprintable code is in the bar code, the bar code is printed normally.

【0008】[0008]

【実施例】以下、本発明の実施例を図面に基づいて説明
する。図3は、例えば、CODE128という名称のバ
ーコードの印刷不可能なコードデータを印刷可能な組み
合わせコード(インタフェース上のコード)によって表
現したものの一例を示している。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 3 shows an example of the non-printable code data of the barcode named CODE128 expressed by a printable combination code (code on the interface).

【0009】印刷不可能なコードデータである「1E
H」というひとつのコードを、例えば「\」、「1]、
「f」という3つの印刷可能なコードによって表現し、
「5c」、「31」、「65」の3つの16進の組み合
わせコードとして、印刷装置に認識される。さらに、印
刷不可能なコードデータである「7FH」は、例えば、
「\」、「7」、「e」という3つの印刷可能なコード
によって表現され、「5c」、「37」、「66」の3
つの16進の組み合わせコードとして、印刷装置に認識
され、「00H」は、例えば、「\」、「0」、「0」
という3つの印刷可能なコードによって表現され、「5
c」、「30」、「30」の3つの16進の組み合わせ
コードとして印刷装置に認識され、「START A」
は、例えば、「\」、「*」という2つの印刷可能なコ
ードによって表現され、「5c」、「2A」の2つの1
6進の組み合わせコードとして印刷装置に認識され、
「START B」は、例えば、「\」、「+」という
2つの印刷可能なコードによって表現され、「5c」、
「2B」の2つの16進の組み合わせコードとして印刷
装置に認識され、「START C」は、例えば、
「\」、「,」という2つの印刷可能なコードによって
表現され、「5c」、「2C」の2つの16進の組み合
わせコードとして印刷装置に認識され、「SHIFT」
は、例えば、「\」、「S」という2つの印刷可能なコ
ードによって表現され、「5c」、「53」の2つの1
6進の組み合わせコードとして印刷装置に認識される。
The unprintable code data "1E"
One code "H" can be used, for example, "\", "1",
Expressed by three printable codes called "f",
It is recognized by the printing apparatus as three hexadecimal combination codes of "5c", "31", and "65". Furthermore, the unprintable code data “7FH” is, for example,
It is expressed by three printable codes of "\", "7", and "e", and is 3 of "5c", "37", and "66".
It is recognized by the printing device as one hexadecimal combination code, and "00H" is, for example, "\", "0", "0".
It is expressed by three printable codes called "5
It is recognized by the printing apparatus as three hexadecimal combination codes of "c", "30", and "30", and "START A"
Is represented by, for example, two printable codes "\" and "*", and two 1s "5c" and "2A"
Recognized by the printer as a hexadecimal combination code,
"START B" is represented by two printable codes "\" and "+", for example, "5c",
The printer recognizes it as two hexadecimal combination codes of "2B", and "START C" is, for example,
It is expressed by two printable codes "\" and "," and recognized by the printing device as two hexadecimal combination codes "5c" and "2C", and "SHIFT"
Is represented by, for example, two printable codes "\" and "S", and two 1s "5c" and "53"
It is recognized by the printing device as a hexadecimal combination code.

【0010】このような印刷不可能なコードデータを印
刷可能な組み合わせコードによって表現したもののテー
ブルを、印刷不可能なコードデータのすべて(ASSI
Cコードの場合、00H〜1FH、7FH、(16
進))についてあらかじめ作成しておく。
A table of such unprintable code data represented by a printable combination code is used as a table for all unprintable code data (ASSI).
In case of C code, 00H to 1FH, 7FH, (16
Create) in advance.

【0011】本願発明に係る印刷装置の一実施例を示す
構成図を図4に示す。この印刷装置3はホストコンピュ
ータ4とデータのやり取りを行うためのインターフェー
ス部5、印刷装置3を制御するための制御部6、印刷デ
ータの印刷を行うための出力部7、データやプログラム
が記憶してある記憶部8とから構成され、インターフェ
ース部5がホストコンピュータ4に接続されている。
FIG. 4 is a block diagram showing an embodiment of the printing apparatus according to the present invention. This printing device 3 stores an interface unit 5 for exchanging data with the host computer 4, a control unit 6 for controlling the printing device 3, an output unit 7 for printing print data, data and programs stored therein. The storage unit 8 and the interface unit 5 are connected to the host computer 4.

【0012】印刷装置3の記憶部8には、従来の印刷装
置と同じように、印刷可能なコードデータに対応するバ
ーコードのイメージデータのほかに、印刷不可能なコー
ドデータに対応するバーコードのバーのイメージデータ
を、印刷可能な組み合わせコードによって表現したもの
のテーブルが記憶してある。
In the storage unit 8 of the printing device 3, as in the conventional printing device, in addition to the image data of the bar code corresponding to the printable code data, the bar code corresponding to the unprintable code data. A table of the image data of the bar is stored in the form of a printable combination code.

【0013】バーコードを印刷するために、ホストコン
ピュータ4によって、印刷可能なコードデータに対して
はそのコードデータを指定し、印刷不可能なコードデー
タに対しては、図3に示すようなテーブルに従って、印
刷不可能なコードデータに対応する印刷可能な組み合わ
せデータを指定する。この指定されたコードデータは印
刷装置3のインターフェイス部5を介して制御部6に送
られる。制御部6は、前記指定されたコードデータに基
づいて、記憶部8から対応するバーコードのイメージデ
ータの呼び出しを行い、そのイメージデータを出力部7
に送って印刷を行う。
In order to print the bar code, the host computer 4 specifies the code data for the printable code data and the table as shown in FIG. 3 for the unprintable code data. According to, the printable combination data corresponding to the unprintable code data is designated. The designated code data is sent to the control unit 6 via the interface unit 5 of the printing device 3. The control unit 6 calls the image data of the corresponding barcode from the storage unit 8 based on the designated code data, and outputs the image data to the output unit 7.
Send to and print.

【0014】この時、印刷不可能なコードデータは印刷
装置3の中には取り込まれないので、バーコードの印刷
時に、印刷装置3に不具合が発生したり、動作の異常が
起こったりすることはない。
At this time, since the unprintable code data is not taken into the printer 3, it is possible that the printer 3 will not malfunction or malfunction when the barcode is printed. Absent.

【0015】本発明は、以上に述べたCODE128と
いう名称のバーコードに限定されるものではなく、JA
N標準、JAN短縮、CODE39、ITF、NW7な
どの他の名称のバーコードにも適用可能である。
The present invention is not limited to the above-mentioned bar code named CODE128, and can be
It is also applicable to barcodes with other names such as N standard, JAN abbreviation, CODE39, ITF, NW7.

【0016】さらに、印刷不可能なコードデータに加え
て、ある種のバーコードにある独特なコードについて
も、印刷可能なコードデータの組み合わせで表現するこ
とにより、独特なコードも直接コード指定することが可
能となる。
Further, in addition to non-printable code data, a unique code in a certain kind of bar code can be expressed by a combination of printable code data so that the unique code can be directly designated. Is possible.

【0017】[0017]

【発明の効果】以上述べたように本発明によれば、印刷
不可能なコードデータを印刷可能なコードデータだけで
表現できるので、バーコード印刷時に、印刷装置の不具
合や動作の異常の発生を回避して、バーコードの印刷を
正常に行うことができる。
As described above, according to the present invention, unprintable code data can be expressed only by printable code data, so that when printing a bar code, a malfunction of the printing apparatus or an abnormal operation occurs. By avoiding this, the barcode can be printed normally.

【0018】また、組み合わせ方法を変えることによ
り、ある種のバーコードにある独特なコードのコード指
定が可能となる。
By changing the combination method, it is possible to specify a unique code in a certain kind of bar code.

【図面の簡単な説明】[Brief description of drawings]

【図1】バーコードを指定するためのフォーマットを示
す図である。
FIG. 1 is a diagram showing a format for designating a barcode.

【図2】印刷されたバーコードの一例を示す図である。FIG. 2 is a diagram showing an example of a printed barcode.

【図3】本願発明に係る、印刷不可能なコードデータを
表現するための組み合わせコードの一実施例を示すため
の図である。
FIG. 3 is a diagram showing an example of a combination code for expressing unprintable code data according to the present invention.

【図4】本願発明に係る印刷装置の一実施例を示す構成
図である。
FIG. 4 is a configuration diagram showing an embodiment of a printing apparatus according to the present invention.

【符号の説明】[Explanation of symbols]

1 コードデータ 2 バー 3 印刷装置 1 code data 2 bar 3 printer

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 バーコードの印刷を行う印刷装置におい
て、バーコードを構成する各バーを指定するための印刷
不可能なコードを、印刷可能なコードの組み合わせによ
って表現したものをあらかじめ記憶しておき、印刷可能
なコードの組み合わせを指定することによって、印刷不
可能なコードによって指定されるべき各バーを印刷する
バーコードのコード解析印刷装置。
1. A printing apparatus for printing a bar code, wherein an unprintable code for designating each bar constituting the bar code is represented in advance by a combination of printable codes and stored in advance. , A barcode code analysis printing device that prints each bar that should be designated by a non-printable code by designating a printable code combination.
JP5054991A 1993-02-19 1993-02-19 Code analysis and print device for bar code Pending JPH06243275A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5054991A JPH06243275A (en) 1993-02-19 1993-02-19 Code analysis and print device for bar code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5054991A JPH06243275A (en) 1993-02-19 1993-02-19 Code analysis and print device for bar code

Publications (1)

Publication Number Publication Date
JPH06243275A true JPH06243275A (en) 1994-09-02

Family

ID=12986124

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5054991A Pending JPH06243275A (en) 1993-02-19 1993-02-19 Code analysis and print device for bar code

Country Status (1)

Country Link
JP (1) JPH06243275A (en)

Similar Documents

Publication Publication Date Title
US9672456B2 (en) Image processing device, printing device, and image processing method
US7561283B2 (en) Barcode printing system, and method and program of setting a virtual barcode font
CA2124716C (en) On-line barcode printer system with multi-level user printer commands
JPH03127088A (en) Label printer
JPH11221946A (en) Print system and method
JPH06243275A (en) Code analysis and print device for bar code
JP3274751B2 (en) Label producing apparatus and label producing method
JPH0330977A (en) Page printer control system
JPS61177255A (en) Image output device
JP2004009717A (en) Receipt printer and method of printing receipt
JP3241592B2 (en) Printer system
KR100345880B1 (en) Method for selection paper cassette of printer
JPH0429861A (en) Label printer
JP3742285B2 (en) Identification code output device
KR100395564B1 (en) Printer having the function of printing bar-code
JPH0781150A (en) Printer for making label
CN112976836A (en) Printing apparatus and control method of printing apparatus
JPH0785201A (en) Bar code input device
JPH1124867A (en) On-line printing system
JP2002019193A (en) Tape printer
JPH06266870A (en) Bar code printer
JPH0330974A (en) Page printer control system
JP2001328299A (en) Printer and print system
JPH07195750A (en) Printer
JP2002049885A (en) Two-dimensional code automatic generating device, recording medium where two-dimensional code automatic generating program is recorded, and device for generating document where two-dimensional code and character information coexist

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 10

Free format text: PAYMENT UNTIL: 20090416

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 10

Free format text: PAYMENT UNTIL: 20090416

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100416

Year of fee payment: 11

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 11

Free format text: PAYMENT UNTIL: 20100416

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110416

Year of fee payment: 12

EXPY Cancellation because of completion of term