JPH0780321B2 - Printer - Google Patents

Printer

Info

Publication number
JPH0780321B2
JPH0780321B2 JP10998388A JP10998388A JPH0780321B2 JP H0780321 B2 JPH0780321 B2 JP H0780321B2 JP 10998388 A JP10998388 A JP 10998388A JP 10998388 A JP10998388 A JP 10998388A JP H0780321 B2 JPH0780321 B2 JP H0780321B2
Authority
JP
Japan
Prior art keywords
code
stop
start code
stop code
input
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.)
Expired - Lifetime
Application number
JP10998388A
Other languages
Japanese (ja)
Other versions
JPH01280573A (en
Inventor
弘司 大湖
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.)
Tec Corp
Original Assignee
Tec Corp
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 Tec Corp filed Critical Tec Corp
Priority to JP10998388A priority Critical patent/JPH0780321B2/en
Publication of JPH01280573A publication Critical patent/JPH01280573A/en
Publication of JPH0780321B2 publication Critical patent/JPH0780321B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Printers Characterized By Their Purpose (AREA)

Description

【発明の詳細な説明】 〔発明の目的〕 (産業上の利用分野) 本発明は、バーコードのスタートコードおよびストップ
コードの処理を行なうプリンタに関する。
DETAILED DESCRIPTION OF THE INVENTION Object of the Invention (Field of Industrial Application) The present invention relates to a printer for processing start codes and stop codes of bar codes.

(従来の技術) 従来のバーコードのプリンタでは、スタートコードおよ
びストップコードを必要とするたとえばNW7、Code39に
基づくバーコードを印刷する場合、バーコードのデータ
の前後にそれぞれスタートコードおよびストップコード
を入力している。
(Prior Art) When printing a barcode based on, for example, NW7 or Code39 that requires a start code and a stop code in a conventional barcode printer, enter the start code and stop code before and after the barcode data, respectively. is doing.

(発明が解決しようとする課題) しかしながら、上述の従来の装置で、スタートコードお
よびストップコードが必要であるバーコードの場合にス
タートコードまたはストップコードのいずれか一方のみ
でも入力されないと、スキャナーにてバーコードを読取
ることができない問題を有している。
(Problems to be Solved by the Invention) However, in the above-mentioned conventional device, in the case of a bar code that requires a start code and a stop code, if only one of the start code and the stop code is not input, the scanner There is a problem that the barcode cannot be read.

本発明は上記問題点に鑑みなされたもので、スタートコ
ードまたはストップコードのいずれかの入力を忘れて
も、正確にスタートコードおよびストップコードが付さ
れたバーコードを印刷することができるプリンタを提供
することを目的とする。
The present invention has been made in view of the above problems, and provides a printer that can accurately print a bar code with a start code and a stop code even if the user forgets to input either a start code or a stop code. The purpose is to do.

〔発明の構成〕[Structure of Invention]

(課題を解決するための手段) 本発明のプリンタは、バーコードの種類およびバーコー
ドのデータを入力するバーコード入力手段と、前記バー
コードの種類に基づいてスタートコードおよびストップ
コードの要否を判断する判断手段と、この判断手段でス
タートコードおよびストップコードが必要であると判断
したとき入力されたデータにスタートコードがあるかを
検出するスタートコード検出手段と、このスタートコー
ド検出手段でスタートコードがないと判断されたとき入
力されたデータを1ずらしてスタートコードを追加する
スタートコード追加手段と、この判断手段でスタートコ
ードおよびストップコードが必要であると判断したとき
入力されたデータにストップコードがあるかを検出する
ストップコード検出手段と、このストップコード検出手
段でストップコードがないと判断されたとき入力された
データにストップコードを追加するストップコード追加
手段と、前記バーコード入力手段、前記スタートコード
追加手段および前記ストップコード追加手段に基づいて
印刷を行なう印刷手段とを具備するものである。
(Means for Solving the Problem) The printer of the present invention determines the necessity of the start code and the stop code based on the barcode type and the barcode input means for inputting the barcode type and the barcode data. Judging means for judging, start code detecting means for detecting whether the input data has a start code when it is judged that a start code and a stop code are necessary, and a start code by this start code detecting means When it is determined that there is no start code, a start code adding unit that shifts the input data by 1 to add a start code, and a stop code to the input data when the determination unit determines that a start code and a stop code are necessary There is a stop code detection means to detect whether there is A stop code adding means for adding a stop code to the input data when the code detecting means determines that there is no stop code, and printing based on the bar code inputting means, the start code adding means and the stop code adding means. And a printing means for performing.

(作用) 本発明は、まず、バーコードの種類をバーコード入力手
段で入力し、スタートコードおよびストップコードが必
要であるか否かを判断手段で判断する。この判断手段で
スタートコードおよびストップコードが必要であると判
断されたときは、まず、入力されたデータにスタートコ
ードがあるか否かをスタートコード検出手段で検出し、
スタートコードがないと判断されたときは入力されたバ
ーコードのデータを1ずらしてスタートコードを追加す
る。次に、入力されたデータにストップコードがあるか
否かをストップコード検出手段で検出し、ストップコー
ドがないと判断されたときは、ストップコードを追加す
る。
(Operation) In the present invention, first, the type of barcode is input by the barcode input means, and the determination means determines whether or not a start code and a stop code are required. When it is judged by this judging means that the start code and the stop code are necessary, first, the start code detecting means detects whether or not the input data has a start code,
When it is determined that there is no start code, the input bar code data is shifted by 1 and a start code is added. Next, the stop code detecting means detects whether or not the input data has a stop code. When it is determined that the stop code does not exist, the stop code is added.

そうして、バーコード入力手段、スタートコード追加手
段およびストップコード追加手段に基づいて印刷手段
で、スタートコードおよびストップコードが必要なバー
コードには必ずスタートコードおよびストップコードを
印刷するものである。
Then, based on the bar code inputting means, the start code adding means and the stop code adding means, the printing means always prints the start code and the stop code on the bar code requiring the start code and the stop code.

(実施例) 以下、本発明のプリンタの一実施例を図面を参照して説
明する。
Embodiment An embodiment of the printer of the present invention will be described below with reference to the drawings.

第1図において、1はバーコードの種類およびバーコー
ドのデータを入力するたとえばキーボードなどにより構
成されるバーコード入力手段で、このバーコード入力手
段1には、たとえばNW7またはCode39のように、バーコ
ードにスタートコードおよびストップコードが必要であ
るかあるいは不要であるかを判断する判断手段2が接続
されている。この判断手段2にはスタートコードの有無
を検出するスタートコード検出手段3とストップコード
の有無を検出するストップコード検出手段4が接続さ
れ、スタートコード検出手段3にはスタートコードを追
加するスタートコード追加手段5、ストップコード検出
手段4にはストップコードを追加するストップコード追
加手段6が接続されている。そして、バーコード入力手
段1、スタートコード追加手段5およびストップコード
追加手段6には印刷手段7が接続され、この印刷手段7
はバーコード入力手段1、スタートコード追加手段5お
よびストップコード追加手段6に従って、印刷するよう
になっている。
In FIG. 1, reference numeral 1 denotes a bar code input means for inputting bar code type and bar code data, which is composed of, for example, a keyboard. The bar code input means 1 has bar codes such as NW7 or Code39. A judgment means 2 for judging whether a start code and a stop code are necessary or not is connected to the code. A start code detecting means 3 for detecting the presence / absence of a start code and a stop code detecting means 4 for detecting the presence / absence of a stop code are connected to the judging means 2, and a start code is added to the start code detecting means 3 to add a start code. Stop code adding means 6 for adding a stop code is connected to the means 5 and the stop code detecting means 4. A printing unit 7 is connected to the bar code input unit 1, the start code adding unit 5, and the stop code adding unit 6, and the printing unit 7 is connected to the printing unit 7.
Is printed according to the bar code input means 1, the start code addition means 5 and the stop code addition means 6.

次に上記実施例の動作を説明する。Next, the operation of the above embodiment will be described.

まず、バーコードの種別をバーコード入力手段1で入力
し(ステップ)、スタートコードおよびストップコー
ドが必要なバーコードであるか否かを判断手段2で判断
する(ステップ)。スタートコードおよびストップコ
ードが必要なバーコードの場合には入力されたデータの
先頭を検知し(ステップ)、先頭がスタートコードで
あるか否かをスタートコード検出手段3で検出し(ステ
ップ)、スタートコードがないときは入力されたデー
タをすべて1つずつずらし(ステップ)、先頭にスタ
ートコードを追加し(ステップ)、最後尾を検出し
(ステップ)、また、ステップでスタートコードが
ある場合は入力されたデータの最後尾を検出する場合
(ステップ)とともに、ストップコードがあるか否か
をストップコード追加手段6で検出する(ステップ
)。ストップコードがないときは、入力されたデータ
の最後尾の次にストップコードをストップコード追加手
段6で追加し(ステップ)、データ長を加え(ステッ
プ)、ステップでスタートコードおよびストップコ
ードが不要であると判断されたときおよびステップで
ストップコードを有すると判断されたときとともに、印
刷手段7にてバーコードの印刷を行ない(ステップ
)、終了する。
First, the type of barcode is input by the barcode input means 1 (step), and the determination means 2 determines whether the start code and stop code are required barcodes (step). In the case of a bar code that requires a start code and a stop code, the beginning of the input data is detected (step), the start code detecting means 3 detects whether the beginning is the start code (step), and the start is performed. If there is no code, shift all input data one by one (step), add a start code to the beginning (step), detect the end (step), and if there is a start code at the step, enter it Along with the case of detecting the end of the generated data (step), the stop code adding means 6 detects whether or not there is a stop code (step). When there is no stop code, the stop code is added next to the end of the input data by the stop code adding means 6 (step), the data length is added (step), and the start code and the stop code are unnecessary in the step. When it is determined that there is a stop code and when it is determined that a stop code is included in the step, the printing means 7 prints a barcode (step), and the processing is completed.

〔発明の効果〕〔The invention's effect〕

本発明によれば、バーコード入力手段でバーコードの種
類を入力し、スタートコードおよびストップコードが必
要なバーコードの場合は、スタートコード検出手段およ
びストップコード検出手段でスタートコードおよびスト
ップコードを検出し、スタートコードまたはストップコ
ードがないときはそれぞれスタートコード追加手段また
はストップコード追加手段でスタートコードまたはスト
ップコードを追加するので、スタートコードおよびスト
ップコードが必要なバーコードの場合スタートコードま
たはストップコードのいずれかの入力を忘れてもスター
トコードおよびストップコードのいずれも付されたバー
コードを印刷できる。
According to the present invention, when the bar code input means inputs the kind of the bar code and the start code and the stop code are necessary, the start code and the stop code are detected by the start code detecting means and the stop code detecting means. However, when there is no start code or stop code, the start code or stop code is added by the start code addition means or the stop code addition means respectively. Barcodes with both start and stop codes can be printed even if you forget to enter any of them.

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

第1図は本発明の一実施例のプリンタを示すブロック
図、第2図は同上フローチャートである。 1……バーコード入力手段、2……判断手段、3……ス
タートコード検出手段、4……ストップコード検出手
段、5……スタートコード追加手段、6……ストップコ
ード追加手段、7……印刷手段。
FIG. 1 is a block diagram showing a printer according to an embodiment of the present invention, and FIG. 2 is a flowchart of the same as above. 1 ... Bar code input means, 2 ... Judgment means, 3 ... Start code detection means, 4 ... Stop code detection means, 5 ... Start code addition means, 6 ... Stop code addition means, 7 ... Printing means.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】バーコードの種類およびバーコードのデー
タを入力するバーコード入力手段と、 前記バーコードの種類に基づいてスタートコードおよび
ストップコードの要否を判断する判断手段と、 この判断手段でスタートコードおよびストップコードが
必要であると判断したとき入力されたデータにスタート
コードがあるかを検出するスタートコード検出手段と、 このスタートコード検出手段でスタートコードがないと
判断されたとき入力されたデータを1ずらしてスタート
コードを追加するスタートコード追加手段と、 この判断手段でスタートコードおよびストップコードが
必要であると判断したとき入力されたデータにストップ
コードがあるかを検出するストップコード検出手段と、 このストップコード検出手段でストップコードがないと
判断されたとき入力されたデータにストップコードを追
加するストップコード追加手段と、 前記バーコード入力手段、前記スタートコード追加手段
および前記ストップコード追加手段に基づいて印刷を行
なう印刷手段と を具備することを特徴としたプリンタ。
1. A bar code input means for inputting a bar code type and bar code data, a judging means for judging whether a start code or a stop code is necessary based on the bar code type, and this judging means. When the start code and the stop code are judged to be necessary, the start code detecting means for detecting whether or not the input data has the start code, and the input when the start code detecting means determines that there is no start code Start code adding means for shifting the data by 1 and adding a start code, and stop code detecting means for detecting whether or not the input data has a stop code when the judging means judges that the start code and the stop code are necessary With this stop code detection means, the stop code is A stop code adding means for adding a stop code to the input data when it is determined to be yes, and a printing means for printing based on the bar code inputting means, the start code adding means, and the stop code adding means. A printer characterized by that.
JP10998388A 1988-05-06 1988-05-06 Printer Expired - Lifetime JPH0780321B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10998388A JPH0780321B2 (en) 1988-05-06 1988-05-06 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10998388A JPH0780321B2 (en) 1988-05-06 1988-05-06 Printer

Publications (2)

Publication Number Publication Date
JPH01280573A JPH01280573A (en) 1989-11-10
JPH0780321B2 true JPH0780321B2 (en) 1995-08-30

Family

ID=14524106

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10998388A Expired - Lifetime JPH0780321B2 (en) 1988-05-06 1988-05-06 Printer

Country Status (1)

Country Link
JP (1) JPH0780321B2 (en)

Also Published As

Publication number Publication date
JPH01280573A (en) 1989-11-10

Similar Documents

Publication Publication Date Title
US5128527A (en) Apparatus for reading a bar code
JPH01280573A (en) Printer
EP1703446A1 (en) Apparatus and method for generating bar code, and apparatus and method for reading out bar code
JP2946780B2 (en) Barcode printer and control method thereof
JPS62271189A (en) Mark reading control method
JPH04310777A (en) Printer for pos terminal
JPH113399A5 (en)
JPH08263585A (en) Code reader
JPS62196167A (en) Printer
JPS63244283A (en) Bar code processor
KR950003479B1 (en) How to register a recognized name for the fax
JPS5647862A (en) Electronic cash register
JPH0537309Y2 (en)
JPS63272145A (en) dump output device
KR100257825B1 (en) Method for recording additional information on document in printer
JP2705354B2 (en) Printing device with print density detection function
JPH0793449A (en) Mark sheet reader
JPH02217272A (en) electronic typewriter
JPH06152896A (en) Picture information recorder
JP3530320B2 (en) Facsimile machine
JPS62202769A (en) Printing processing system
JPH01259470A (en) Character recognizing device
JPH0374771A (en) Electronic filing system
JPS63125373A (en) Discriminating system for presence or absence of print
JPH0946467A (en) Compound printer

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070830

Year of fee payment: 12

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

Year of fee payment: 13

Free format text: PAYMENT UNTIL: 20080830

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080830

Year of fee payment: 13