JPH0374776A - Method and device for preparing control program of optical reader - Google Patents

Method and device for preparing control program of optical reader

Info

Publication number
JPH0374776A
JPH0374776A JP1210388A JP21038889A JPH0374776A JP H0374776 A JPH0374776 A JP H0374776A JP 1210388 A JP1210388 A JP 1210388A JP 21038889 A JP21038889 A JP 21038889A JP H0374776 A JPH0374776 A JP H0374776A
Authority
JP
Japan
Prior art keywords
control program
screen
read
input
reading
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.)
Granted
Application number
JP1210388A
Other languages
Japanese (ja)
Other versions
JP2947286B2 (en
Inventor
Yoichi Naito
陽一 内藤
Seiichi Tochihara
聖一 栃原
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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing Co Ltd
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 Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP1210388A priority Critical patent/JP2947286B2/en
Publication of JPH0374776A publication Critical patent/JPH0374776A/en
Application granted granted Critical
Publication of JP2947286B2 publication Critical patent/JP2947286B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To easily prepare a control program of an optical reader by providing a computer system where a display device, an input device, an external storage device, a printer, and a communication equipment are connected to each other and controlled and preparing the control program in a screen interavtive system. CONSTITUTION:An operator selects and inputs the tasks via a keyboard of an input device 113. When a new preparation mode is selected, a control program is prepared in a screen interactive system by means of a display device 111 and an input device 113. In a correction mode the medium of the prepared control program is set to an external storage device 114 and the control program is read into a computer system 112. Then the control program is corrected in a screen interavtive system by means of both devices 111 and 113. The corrected control program is outputted to the storage device 114 or a printer 115 or transferred to an optical reader via a communication equipment 116. In such a constitution, the control program can be effectively prepared.

Description

【発明の詳細な説明】 発明の目的; 〈産業上の利用分野) この発明は、OCR(Optical Charact
er Reader)等の光学式読取装置の制御プログ
ラムを画面対話方式で作成するための作成方法及び装置
に関するものである。
[Detailed Description of the Invention] Purpose of the Invention; (Field of Industrial Application) This invention is directed to OCR (Optical Character
The present invention relates to a creation method and apparatus for creating a control program for an optical reading device such as an er reader) using a screen interactive method.

(従来の技術) 従来技術について第1図を用いて説明する。(Conventional technology) The prior art will be explained using FIG. 1.

OCR帳票を読取る光学式読取装置3の制御プログラム
は、■読取帳票1からデータを読取る為のプログラム、
■読取ったデータが正しいかどうかをチエツクするため
のプログラム、■読取ったデータをフロッピーディスク
(FD)13. 磁気テープ(M丁)15等の媒体に出
力する為のプログラム、■読取ったデータをCR7画面
若しくはプリンタに印字する為のプログラム、に大別さ
れる。このうち、上記■のプログラムに関しては、読取
る文字を記入する文字枠の座標値を算出するのに、実際
心読取る帳票1の文字枠寸法や位置を定規で測定して・
いる。また、上記■〜■のプログラムに関しては、個々
の光学式読取装置3に特有の制御プログラムを、システ
ムエンジニアの介在によってIIHXIプログラム用紙
2を介してコーディングをしなければならない。すなわ
ち、制御プログラム専用の制御プログラム用紙(FC用
紙)2に記入して光学式読取装置3に読込ませるか、又
は光学式読取装置3のキーボード(図示せず)から入力
しなければならない。
The control program for the optical reading device 3 that reads the OCR form is: ■ A program for reading data from the reading form 1;
■Program to check whether the read data is correct;■Transfer the read data to a floppy disk (FD)13. They are broadly divided into programs for outputting to a medium such as magnetic tape (M-15), and programs for printing read data on a CR7 screen or printer. Of these, regarding the program (■) above, in order to calculate the coordinate values of the character frame in which the characters to be read are written, the character frame dimensions and position of the form 1 to be read by mind are actually measured with a ruler.
There is. Regarding the programs ① to ② above, a control program specific to each optical reading device 3 must be coded via the IIHXI program sheet 2 with the intervention of a system engineer. That is, the control program must be written on a dedicated control program form (FC form) 2 and read into the optical reader 3, or input from the keyboard (not shown) of the optical reader 3.

(発明が解決しようとする課題) このような従来技術においては、前記プログラム■の座
標値算出は印刷物を定規で測定しており、読取らせる箇
所が多い場所では作業が煩雑である。また、印刷物を直
接測っている為に、印刷物自体の紙の伸び縮みによる測
定誤差や測定自体の誤りが発生していた。さらに、前記
プログラム■〜■についても、高度な知識を有するシス
テムエンジニア等が介在する必要があった。このように
、最終的にコーディング作業を行なう為に人為的なコー
ディングミスも発生し、一つの制御プログラムを作成し
て完成するのに、該当する読取帳票を実際上読取らせ、
幾度となくテストを繰返すといった多大な労力を必要と
していた。そして、コーディングが正しく行なわれてい
るかどうかを調べる為、読取テストを何度も行なう必要
があった。ざらC又、光学式読取装置13の制御プログ
ラムは各メーカー、各機種毎に異なっており、同一の読
取帳票1を読取らず場合であっても、読取装置毎にそれ
ぞれ別の制御プログラムを作成する必要があった。
(Problems to be Solved by the Invention) In such conventional technology, the coordinate value calculation in the program (2) is performed by measuring the printed matter with a ruler, which is a complicated work in a place where there are many places to be read. Furthermore, since the printed material is directly measured, measurement errors due to the expansion and contraction of the paper in the printed material and errors in the measurement itself occur. Furthermore, regarding the programs (1) to (2), it was necessary for a system engineer or the like with advanced knowledge to intervene. In this way, human coding errors occur in the final coding process, and in order to create and complete one control program, it is necessary to actually read the corresponding reading form.
This required a great deal of effort and repeated testing over and over again. In order to check whether the coding was done correctly, it was necessary to perform reading tests many times. Also, the control program for the optical reading device 13 is different for each manufacturer and model, so even if the same reading form 1 is not read, a separate control program is created for each reading device. I needed to.

この発明は上述のような事情よりなされたものであり、
この発明の目的は、光学式読取装置の制御プログラムの
作成を画面対話方式で容易に、かつ各機種毎に異なる制
御プログラム間の相違を気にすることなく作成する方法
及び装置を提供することにある。
This invention was made due to the circumstances mentioned above,
An object of the present invention is to provide a method and apparatus for easily creating a control program for an optical reading device using a screen interactive method without worrying about differences between different control programs for each model. be.

発明の構成: (課題を解決するための手段) 上述した各問題点を解決するため、この発明では、光学
式読取装置の制御プログラムの作成を各メーカー、各機
種毎に異なる制御プログラムの仕様を意識することなく
、画面対話方式で容易に作成できる方法及び装置として
いる。すなわち、この発明の上記目的は、光学式読取装
置の制御プログラムを画面対話方式で作成するようにす
ることによって達成され、また、表示装置と、入力装置
と、外部記憶装置と、印字装置と、通信装置と、前記各
装置を結合して制御するコンピュータシステムとを設け
、前記表示装置及び入力装置を用いて画面対話方式で試
行錯誤的に光学式読取装置の制御プログラムを作成し、
前記外部記憶装置、前記印字装置、前記通信装置に出力
する機能を与えることによって達成される。
Structure of the Invention: (Means for Solving the Problems) In order to solve the above-mentioned problems, the present invention creates a control program for an optical reading device by using different control program specifications for each manufacturer and model. The method and device are such that it can be easily created using screen interaction without being conscious of it. That is, the above object of the present invention is achieved by creating a control program for an optical reading device using a screen interactive method, and also includes a display device, an input device, an external storage device, a printing device, A communication device and a computer system that connects and controls each of the devices are provided, and a control program for the optical reading device is created by trial and error using a screen interaction method using the display device and input device,
This is achieved by providing an output function to the external storage device, the printing device, and the communication device.

(作用) この発明では試行錯誤的に画面対話方式で制御プログラ
ムを作成する様にしているので、従来制御プログラム作
成の作業が煩雑であったものを容易化できると共に、効
率化を実現できる。また、各メーカー、各機種毎のメニ
ューを設けることによって、仕様の異なる制御プログラ
ムであっても作成者はそのことを意識することなく作成
でき辺る利点を有する。
(Function) In this invention, a control program is created by trial and error using a screen interactive method, so that the work of creating a control program, which was conventionally complicated, can be simplified and efficiency can be improved. Furthermore, by providing a menu for each manufacturer and model, the creator has the advantage of being able to create control programs with different specifications without being aware of them.

(実施例) この発明では第1図に示すシステムにおいて、制御プロ
グラム作成システム11で画面対話方式により制御プロ
グラム12を作成する。作成された制御プログラム12
をフロッピーデ、fスク13又は磁気テープ15に格納
して光学式読取装置3に与える。
(Embodiment) In the present invention, in the system shown in FIG. 1, a control program 12 is created using a screen interaction method in a control program creation system 11. Created control program 12
is stored on a floppy disk, F disk 13 or magnetic tape 15 and provided to the optical reader 3.

或いは制御プログラム12はプリンタ出力16で制御プ
ログラム用紙2に書込み、目視の読取又はキーボード又
はOCnリーダの制御プログラム読取機能で入力するよ
うにしても良い。更には通信回線を介して、光学式読取
装置3を制御するホストコンピュータ4にオンラインで
転送しても良い。光学式読取装置3からは読取データ5
が生成される。
Alternatively, the control program 12 may be written on the control program paper 2 using the printer output 16 and may be input by visual reading or by using the control program reading function of a keyboard or OCn reader. Furthermore, the information may be transferred online to the host computer 4 that controls the optical reader 3 via a communication line. Read data 5 from optical reader 3
is generated.

第2図はこの発明の制御プログラム作成システム11の
全体構成を示す。所要のメツセージ、制御プログラム等
を表示するCRT等の表示装置111と、各種メニュー
を有するデータ入力風の入力機構(タブレット、マウス
等)及びキーボードから成る入力装置113と、読取帳
票を作成する際に使用した帳票CADシステムのデータ
を読込み、又制御プログラムを書き出す為のフロッピー
ディスク装置等の外部記憶装置114と、制御プログラ
ムを紙へ印字出力する為の印字装置!15と、制御プロ
グラムを通信回線を用いて人出力する為の通信装置11
6 と、上記各装置を結合して処理するコンピュータシ
ステム112とから構成されている。なお、コンピュー
タシステム112はソフトウェアで動作するものである
FIG. 2 shows the overall configuration of the control program creation system 11 of the present invention. A display device 111 such as a CRT for displaying required messages, control programs, etc., an input device 113 consisting of a data input-like input mechanism (tablet, mouse, etc.) having various menus and a keyboard, and a display device 113 for creating a reading form. An external storage device 114 such as a floppy disk device for reading the data of the form CAD system used and writing out the control program, and a printing device for printing out the control program on paper! 15, and a communication device 11 for outputting the control program using a communication line.
6, and a computer system 112 that connects and processes each of the above devices. Note that the computer system 112 is operated by software.

このような構成において、この発明システムでの処理を
第3図のシステムフローチャートを参照して説明する。
In such a configuration, the processing in the system of the present invention will be explained with reference to the system flowchart shown in FIG.

入力装置113に設けられているキーボードを操作して
システムを起動させると (ステップ5100) 、表
示装置111 e例えば第4図の様な作業メニューが表
示される (ステップ5101)ので、オペレータは入
力装置113のキーボードより作業メニューの“l)新
規作成”、“2)修正“若しくは“3)終了”を選択し
て入力する (ステップ51G2)。ここで、例えば“
3)終了”をキー入力で選択した場合 (ステップ51
09)はシステムを終了させる。また、“l)新規作成
”をキー入力で選択した場合(ステップ5103)は、
表示装置111及び入力装置113を用い画面対話方式
で制御プログラムを作成する (ステップ5104) 
、具体的には帳票寸法、読込む文字の文字枠の位置座標
、枠の高さ、輻方向寸法、枠の送りピッチ、枠の個数等
の情報の他、用紙の種類(光学式読取装置用の用紙か、
又はコピー機により複写した用紙か等)、字種(カナ文
字、英字、数字9漢字、記号等)、帳票の読取欄に記入
した筆記具の種類(ボールペン、鉛筆又は活字文字か等
)、読取データの出力媒体の指定やファイルレイアウト
等の情報を入力する。また、作業選択 (ステップ51
02)で”2)修正”を選択した場合 (ステップ51
06)は、既に作成されている制御プログラムの媒体を
外部記憶装置114にセットし、当該制御プログラムを
コンピュータシステム112に読込む (ステップ51
07)。この読込んf9制御プログラムを表示装置11
1 、入力装置113を用いて画面対話方式で修正する
 (ステップ5ioa)。
When the system is activated by operating the keyboard provided on the input device 113 (step 5100), a work menu as shown in FIG. 4, for example, is displayed on the display device 111e (step 5101). From the keyboard 113, select and input "l) New creation", "2) Modify" or "3) End" from the work menu (Step 51G2). Here, for example “
3) If you select "End" by key input (Step 51
09) terminates the system. Also, if "l) Create new" is selected by key input (step 5103),
A control program is created using a screen interactive method using the display device 111 and input device 113 (step 5104).
Specifically, in addition to information such as form dimensions, character frame position coordinates of characters to be read, frame height, radial direction dimensions, frame feed pitch, and number of frames, the type of paper (for optical readers) paper or
or paper copied using a copy machine, etc.), type of characters (kana characters, alphabets, numbers, 9 kanji, symbols, etc.), type of writing instrument entered in the reading field of the form (ballpoint pen, pencil, printed characters, etc.), reading data Enter information such as specifying the output medium and file layout. Also, work selection (step 51
If you select "2) Modify" in step 02) (step 51
Step 06) sets the medium of the control program that has already been created into the external storage device 114, and reads the control program into the computer system 112 (step 51).
07). This read f9 control program is displayed on the display device 11.
1. Modify using the screen interactive method using the input device 113 (step 5ioa).

このようにして新規作成、修正した制御プログラムは、
外部記憶装置114にセットされたフロッピーディスク
13やMT15等の媒体に出力するか、若しくは印字装
置115により1tlJ御プログラム用紙2に出力され
るか、さらには通信装置118を介してオンラインで光
学式読取装置3を制御するホストコンビエータ4若しく
は直接光学式読取装置3に転送される。この様にして作
威しに制御プログラムは、オンライン又はオフラインで
光学式読取装置3に読込まれる。この制御プログラムの
制御のもとに光学式読取装置3により帳票を読取り、所
要の処理を行なうことによって読取データ5が出力され
る。
The control program newly created or modified in this way is
It can be output to a medium such as the floppy disk 13 or MT 15 set in the external storage device 114, or it can be output to the 1tlJ program paper 2 by the printing device 115, or it can be optically read online via the communication device 118. It is transferred to the host combinator 4 controlling the device 3 or directly to the optical reader 3 . In this way, the control program is read into the optical reader 3 online or offline. Under the control of this control program, the optical reading device 3 reads the form and performs necessary processing to output read data 5.

次C画面対話入力の具体的な例を挙げて説明する。Next, a specific example of dialog input on the C screen will be explained.

全体のフローは第5図に示すようになっており、動作が
開始されると先ず第6図に示すようなメニュー画面#l
が表示され(ステップS2) 、カーソル等の入力装置
113で処理項目の選択を行なうことにより(ステップ
S2)、データ読込み(ステップS3)、制御プログラ
ムの作J!(ステップS4)、制御プログラムの修正(
ステップS5)、制御プログラムの出力(ステップS6
)もしくは終了が実行される。
The overall flow is shown in Figure 5. When the operation starts, the menu screen #l as shown in Figure 6 is displayed.
is displayed (step S2), and by selecting a processing item using the input device 113 such as a cursor (step S2), data is read (step S3), and the control program is created. (Step S4), Modification of the control program (
Step S5), output of the control program (Step S6)
) or termination is executed.

ここで、データ読込みがメニュー画面#lから選択され
ると、第7図に示すような読込ルーチンとなる。すなわ
ち、先ず第8図に示すようなメニュー画面#2が表示さ
れ(ステップ5101) 、入力装置113で読込デー
タの処理項目の選択を行なうことにより(ステップ51
02) 、読取帳票lをスキャナから読取るか(ステッ
プ5103) 、帳票CADシステムでデザインされた
データを読取るか(ステップ5104) 、又は読取帳
票のデザインデータを行なう(ステップ5105)。な
お、帳票CADシステムとしては、本出願人による特開
昭62−128463号、特開昭62−134757号
、特開昭62−134760号等を用いることができる
。ステップ5103では印刷された被読取帳票をスキャ
ナにセットして読取らせ、ステップ5104では被読取
帳票を印刷する際に使用した帳票CADデータを読込み
、ステップ5IO5では表示装置1111及び入力装置
113を用いて読取帳票1のデザインを行なう。
Here, when data reading is selected from menu screen #l, a reading routine as shown in FIG. 7 is executed. That is, first, menu screen #2 as shown in FIG. 8 is displayed (step 5101), and by selecting a processing item for the read data using the input device 113 (step
02) Read the read form l from the scanner (step 5103), read the data designed by the form CAD system (step 5104), or read the design data of the read form (step 5105). Note that, as the form CAD system, JP-A-62-128463, JP-A-62-134757, JP-A-62-134760, etc. by the present applicant can be used. In step 5103, the printed form to be read is set on the scanner and read. In step 5104, the form CAD data used when printing the form to be read is read. In step 5IO5, the display device 1111 and input device 113 are used. Then, the reading form 1 is designed.

第5図のステップS2で制御プログラムの作成が選択さ
れると第9図の作成フローとなり、先ず第1O図に示す
ようなメニュー画面#3が表示され(ステップ5201
) 、入力装置113で処理項目が選択される(ステッ
プ5202)。ステップ5202で読取制御が選択され
ると、被読取帳票のデザインが表示装置111に表示さ
れ(ステップ5203) 、OCR文字枠、OCR点線
円等に分割/統合処理を行ない(ステップ5204) 
、論理的関係付けを行なう。分割処理は第11図(八)
に示すような6個×1グループを同図CB)のような2
個×3グループとするものであり、統合処理は第12図
(^)に示すような1個×4グループを同図(B)のよ
うな4個×1グループとするものである。設定にあたっ
ては、対角点の2点を指示入力する第13図(八)に示
すような分割枠204^によって同図(B)に示すよう
に分割され、第14図(A)  に示すような統合枠2
04Bによって同図(B)に示すように統合される。上
述の操作により文字枠9点線円等が統合2分割される。
When creation of a control program is selected in step S2 of FIG. 5, the creation flow is as shown in FIG. 9, and first, menu screen #3 as shown in FIG.
), a processing item is selected using the input device 113 (step 5202). When reading control is selected in step 5202, the design of the document to be read is displayed on the display device 111 (step 5203), and division/integration processing is performed into OCR character frames, OCR dotted circles, etc. (step 5204).
, make logical relationships. The division process is shown in Figure 11 (8).
6 x 1 group as shown in Figure CB)
The integration process converts 1 x 4 groups as shown in FIG. 12(^) into 4 x 1 groups as shown in FIG. 12(B). When setting, the screen is divided as shown in FIG. 14 (B) by a dividing frame 204 shown in FIG. 13 (8) in which the two diagonal points are inputted, and integrated frame 2
04B, they are integrated as shown in FIG. By the above-described operation, the character frame 9 dotted line circles etc. are integrated and divided into two parts.

次に、各OCR文字文字名称を与え(ステップ5205
) 、この与えた名称を後で演算チエツク、ファイル出
力フォーマットの設定等に使用する。具体的方法として
は、入力装置IHのタブレットのカーソルを操作し、表
示装置 111に表示されたocrt文字枠をヒツトす
る。ヒツトされた文字枠の現在の属性(このOCR文字
枠に書かれる文字は数字のみであるとか、カナと記号の
みであるとかの犯人文字属性や文字枠の名称)が表示装
置litに表示されるので、ここで入力装置113のキ
ーボードよりOCR文字枠の名称を入力し、同様に犯人
文字属性も設定する。
Next, give each OCR character character name (step 5205
), this given name will be used later for calculation checks, file output format settings, etc. Specifically, the cursor on the tablet of the input device IH is operated to hit the ocrt character frame displayed on the display device 111. The current attributes of the hit character frame (culprit character attributes such as characters written in this OCR character frame are only numbers or only kana and symbols, and the name of the character frame) are displayed on the display device lit. Therefore, here, the name of the OCR character frame is input from the keyboard of the input device 113, and the culprit character attribute is also set in the same way.

上記ステップ5202で演算チエツクが選択されると演
算式の入力となり(ステップ5206) 、先ず画面が
読取データ演算チエツク用の画面に替り、先に入力した
文字枠の名称を用いて読取データの演算チエツクを行な
う。たとえば第15図のようにデザインされた枠に対し
て、上記ステップ5205で“月”を記入するフィール
ドに“M”日”を記入するフィールドに“D“を与えた
とする。ここで、入力装置113のキーボードより1≦
M≦12.1≦D≦31等と数式を入力するだけで、自
動的に”月”のフィールドには“l〜12″   “日
”のフィールドには″1〜31″以外の数値が記された
場合、エラーとして処理するような制御プログラムが生
成される。また、i 16図の文字枠において、単価フ
ィールドに“TAN”、個数フィールドに“N“、合計
フィールドに”TOTAL ”と名称を与えた場合、“
TAN XN−TOTAL”とキーボードで入力するだ
けで、自動的に(単価フィールドに記入した数値)と(
個数フィールドに記入した数値)との積が(合計フィー
ルドに記入した数値)になっているかどうかの演算チエ
ツクを行なう制御プログラムを自動生成する。
When the arithmetic check is selected in step 5202 above, an arithmetic expression is input (step 5206), and the screen first changes to the read data arithmetic check screen, where the read data arithmetic check is performed using the name of the character frame input earlier. Do this. For example, suppose that in step 5205, for a frame designed as shown in FIG. 1≦ from 113 keyboards
Just by entering the formulas such as M≦12.1≦D≦31, the “month” field will automatically be filled with numbers other than “l~12” and the “day” field will be filled with numbers other than “1~31”. If this happens, a control program will be generated that will treat it as an error. In addition, in the text frame in Figure i 16, if the unit price field is named "TAN", the quantity field is named "N", and the total field is named "TOTAL", "
Just enter "TAN XN-TOTAL" on your keyboard and it will automatically calculate
A control program is automatically generated that performs an arithmetic check to see if the product of (the numerical value entered in the number field) is (the numerical value entered in the total field).

また、上記ステップ5202でファイル出力が選択され
ると出力フォーマットの入力となり(ステップ5207
) 、画面が第17図のように替る。ここでファイルに
出力するデータの順に上記ステップ5205で説明した
フィールド名称を、第17図に示す如くフィールド名称
、出力桁数、右づめ出力又は左づめ出力かの指定をキー
ボードより入力することで、出力制御プログラムが自動
的に作成される。さらに、上記ステップ5202で画面
制御が選択されると読取時画面の作成となり(ステップ
5208) 、表示装置illの画面に0CR1J−ダ
の画面イメージが表示される。ここで、画面対話式で画
面出力制御プログラムを作成するが、具体的には被読取
帳票から読取ったデータを表示させるエリアは矩形枠で
囲み、その中に上記ステップ5205で説明した文字枠
フィールドの名称を入力する。また、見出し等について
は、表示させたい個所に入力するだけで該当するイメー
ジの制御プログラムが作成される。第18図のように画
面対話で入力した場合、OCRリーダの画面の2行目の
7欄目からlO欄目に見出として“入金伝票” 3行目
の7欄目に“年”、12411目に“月”、17欄目に
“日”が表示される。まTh、4−6欄目に上記ステッ
プ5205で定義したY”フィールドのデータが表示さ
れ、同様に9〜1111目には“M″フイールドデータ
が、14〜16欄目には“D″フイールドデータがそれ
ぞれ表示される様な画面制御プログラムが表示される。
Additionally, if file output is selected in step 5202 above, the output format is input (step 5207).
), the screen changes as shown in Figure 17. Here, in the order of the data to be output to the file, input the field name, number of output digits, and designation of right-justified output or left-justified output using the keyboard, as shown in FIG. 17, using the field names explained in step 5205 above. An output control program is automatically created. Further, when screen control is selected in step 5202, a reading screen is created (step 5208), and a screen image of 0CR1J-da is displayed on the screen of the display device ill. Here, a screen output control program is created in a screen interactive manner. Specifically, the area where the data read from the document to be read is displayed is surrounded by a rectangular frame, and the character frame field described in step 5205 above is enclosed within the rectangular frame. Enter the name. Furthermore, with regard to headings and the like, just by inputting them in the desired location, a control program for the corresponding image will be created. When inputting through screen dialogue as shown in Figure 18, the heading "Deposit Slip" appears in the 7th column of the 2nd line on the OCR reader screen, "Year" appears in the 7th column of the 3rd line, and "Year" appears in the 12411th column. "Month" and "Day" are displayed in the 17th column. Th, the data of the "Y" field defined in step 5205 above is displayed in columns 4-6, and similarly, the "M" field data is displayed in columns 9-1111, and the "D" field data is displayed in columns 14-16. A screen control program as shown in each screen is displayed.

また、矩形棒に対してフィールド名称を右づめで記入す
れば表示データも右づめで表示され、左づめで記入すれ
ば表示データも左づめで表示される。なお、従来見出し
文字等のOCRリーダの画面に表示させる場合、その文
字の指定は1文字1文字について4桁のJISコードで
指定しなければならず、作成が容易ではなかった。画面
設計の具体的な入力例を第19図に示す。
Furthermore, if field names are entered right-justified on a rectangular bar, the display data will also be displayed right-aligned, and if field names are entered left-aligned, the display data will also be displayed left-aligned. In addition, when displaying conventional heading characters on the screen of an OCR reader, each character must be specified using a four-digit JIS code, which is not easy to create. A specific example of screen design input is shown in FIG.

一方、上記ステップS2で修正が選択された場合の制御
プログラムの修正ルーチンは第20図のようになってお
り、先ず第21図に示すようなメニュー画面#4が表示
され(ステップ5301) 、既に作成した読取制御プ
ログラムが格納されているMT、FDを外部記憶装置1
14にセットし、読取制御プログラムを本システムに読
込む(ステップ5302)。以下ステップ5303〜5
310は第9図のステップ3201〜5208と全く同
様である。また、上記ステップS2で出力が選択された
場合の制御プログラム出力ルーチンは第22図のように
なっており、第23図に示すようなメニュー画面#5が
表示され(ステップ5402) 、その画面内からFD
出力(ステップ5403) 、MT出力(ステップ54
04) 、制御プログラム用紙への描画(ステップ54
05) 、オンライン転送(ステップ5406)及び終
了が選択され、各選択された出力が実行される。
On the other hand, the control program modification routine when modification is selected in step S2 is as shown in FIG. 20. First, menu screen #4 as shown in FIG. 21 is displayed (step 5301), The MT and FD in which the created reading control program is stored are stored in external storage device 1.
14, and the reading control program is read into this system (step 5302). Steps 5303 to 5 below
Step 310 is completely similar to steps 3201 to 5208 in FIG. In addition, the control program output routine when output is selected in step S2 above is as shown in FIG. 22, and menu screen #5 as shown in FIG. 23 is displayed (step 5402). From FD
Output (step 5403), MT output (step 54)
04), drawing on control program paper (step 54)
05), online transfer (step 5406) and termination are selected and each selected output is executed.

この発明では更に、各社、各機種により異なる制御プロ
グラムの作成についても、それぞれに通したフォーマッ
トで出力する様にしている。具体的には、制御プログラ
ム出力時 (ステップ5105)に第24図に示すよう
に、読取るOCRリーダの名称を入力し、これにより第
25図〜第27図に示す様に各制御プログラムの仕様を
考慮した制御プログラムを出力する。
Furthermore, in the present invention, control programs that are created differently depending on each company and each model are outputted in a format that is compatible with each company. Specifically, when outputting the control program (step 5105), the name of the OCR reader to be read is input as shown in FIG. 24, and the specifications of each control program are then entered as shown in FIGS. Output the considered control program.

第25図はOCRリーダの種類(八、B)により同一メ
ーカであっても単位系が異なることを示しており、第2
5図はOCRリーダA、B毎に基準辺が左基準L11.
右基準R[1の如く異なることを示している。
Figure 25 shows that the unit system differs depending on the type of OCR reader (8, B) even if it is made by the same manufacturer.
In Figure 5, the reference side for each OCR reader A and B is the left reference L11.
The right reference R[1 indicates a difference.

また、第25図はラインマーク30の有無により算出す
る寸法値りが異なることを示している。同図(A)はラ
インマーク30が有り、この場合にはラインマーク30
の端部よりOCR文字枠32までが寸法値りとなること
を示し、同図CB)はラインマーク30が無い場合で、
帳票辺31とOCR文字枠132とが寸法値りとなるこ
とを示している。
Further, FIG. 25 shows that the calculated dimension value differs depending on the presence or absence of the line mark 30. In the same figure (A), there is a line mark 30; in this case, the line mark 30
CB) in the same figure shows the case where there is no line mark 30,
This shows that the form side 31 and the OCR character frame 132 have the same dimensions.

発明の効果: 上述の様にこの発明の光学式読取装置の制御プログラム
作成方法及び装置によれば、従来の制御プログラム作成
の作業が煩雑であったものを画面対話方式で試行錯誤的
に容易に作成できるので、制御プログラム作成が効率化
される。また、従来行なっていたコーディングが正しく
行なわれているかどうかを調べる読取テストが不要とな
る利点もあり、同一帳票を制御プログラムの作成方法の
異なる複数の光学式読取装置で読取る場合であっても、
−度画面対話方式で作成すれば、各々の仕様に合せて自
動的に制御プログラムを作成することができる。
Effects of the Invention: As described above, according to the method and apparatus for creating a control program for an optical reading device of the present invention, the complicated work of creating a control program in the past can be easily done through trial and error using a screen interactive method. Since the control program can be created, the control program can be created more efficiently. Another advantage is that there is no need for reading tests to check whether the coding has been done correctly, which was done in the past, and even when the same form is read by multiple optical reading devices with different control program creation methods,
- If created using the on-screen interactive method, control programs can be automatically created according to each specification.

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

第1図はこの発明の制御プログラム作成方法を実現する
装置のブロック構成図、第2図はこの発明の制御プログ
ラム作成装置のシステム構成図、第3図はその制御プロ
グラム作成の一例を示すフローチャート、第4図はこの
発明システムを起動した時のメニュー画面の例を示す図
、第5図は画面対話入力のメインルーチンを示すフロー
チャート、第6図はそのメニュー画面例を示す図、第7
図は読込ルーチンを示すフローチャート、第8図はその
メニュー画面°例を示す図、第9図は制御プログラム作
成ルーチンを示すフローチャート、第1O図はそのメニ
ュー画面例を示す図、$11図〜第14図は分割/統合
処理を説明するための図、1Ii15図及び第16図は
読取データの演算チ、ニックを説明するための図、第1
7図はファイル出力制御プログラムの作成を説明するた
めの図、第18図及び第19図は画面出力制御プログラ
ムの作成′を説明するための図、第20図は制御プログ
ラム修正ルーチンを示すフローチャート、第2I図はそ
のメニュー画面例を示す図、第22図は制御プログラム
出力ルーチンを示すフローチャート、第23図はそのメ
ニュー画面例を示す図、第24図〜第27図は制御プロ
グラム出力を説明するための図である。 1・・・読取帳票、2・・・制御プログラム用紙、3・
・・光学式読取装置、4・・・ホストコンピュータ、5
・・・読取データ、11・・・制御用プログラム作成シ
ステム、12・・・制御プログラム。
FIG. 1 is a block configuration diagram of a device that implements the control program creation method of the present invention, FIG. 2 is a system configuration diagram of the control program creation device of the invention, and FIG. 3 is a flowchart showing an example of the control program creation method. Fig. 4 is a diagram showing an example of the menu screen when the system of the present invention is started, Fig. 5 is a flowchart showing the main routine for screen dialogue input, Fig. 6 is a diagram showing an example of the menu screen, and Fig.
Figure 8 is a flowchart showing the reading routine, Figure 8 is a diagram showing an example of the menu screen, Figure 9 is a flowchart showing the control program creation routine, Figure 1O is a diagram showing an example of the menu screen, Figures 11 to 9 Figure 14 is a diagram for explaining division/integration processing, Figures 1Ii15 and 16 are diagrams for explaining calculation ticks and ticks of read data,
7 is a diagram for explaining the creation of the file output control program, FIGS. 18 and 19 are diagrams for explaining the creation of the screen output control program, and FIG. 20 is a flowchart showing the control program modification routine. FIG. 2I is a diagram showing an example of the menu screen, FIG. 22 is a flowchart showing the control program output routine, FIG. 23 is a diagram showing an example of the menu screen, and FIGS. 24 to 27 explain the control program output. This is a diagram for 1...Reading form, 2...Control program paper, 3.
...Optical reader, 4...Host computer, 5
. . . Read data, 11. Control program creation system, 12. Control program.

Claims (1)

【特許請求の範囲】 1、光学式読取装置の制御プログラムを画面対話方式で
作成するようにしたことを特徴とする光学式読取装置の
制御プログラム作成方法。 2、表示装置と、入力装置と、外部記憶装置と、印字装
置と、通信装置と前記各装置を結合して制御するコンピ
ュータシステムとを備え、前記表示装置及び入力装置を
用いて画面対話方式で試行錯誤的に光学式読取装置の制
御プログラムを作成し、前記外部記憶装置、前記印字装
置、前記通信装置に出力する機能を有したことを特徴と
する光学式読取装置の制御プログラム作成装置。
[Scope of Claims] 1. A method for creating a control program for an optical reading device, characterized in that the control program for the optical reading device is created using a screen interactive method. 2. A display device, an input device, an external storage device, a printing device, a communication device, and a computer system that connects and controls each of the devices, and uses the display device and input device to perform screen interaction. A control program creation device for an optical reading device, comprising a function of creating a control program for the optical reading device through trial and error and outputting it to the external storage device, the printing device, and the communication device.
JP1210388A 1989-08-15 1989-08-15 Control program creation device for optical reader Expired - Lifetime JP2947286B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1210388A JP2947286B2 (en) 1989-08-15 1989-08-15 Control program creation device for optical reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1210388A JP2947286B2 (en) 1989-08-15 1989-08-15 Control program creation device for optical reader

Publications (2)

Publication Number Publication Date
JPH0374776A true JPH0374776A (en) 1991-03-29
JP2947286B2 JP2947286B2 (en) 1999-09-13

Family

ID=16588509

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1210388A Expired - Lifetime JP2947286B2 (en) 1989-08-15 1989-08-15 Control program creation device for optical reader

Country Status (1)

Country Link
JP (1) JP2947286B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030040622A (en) * 2001-11-15 2003-05-23 기아자동차주식회사 Coupling structure for the roller hinges on a slide door in a vehicle
US7568854B2 (en) 2001-07-13 2009-08-04 Renishaw Plc Pivot joint

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7568854B2 (en) 2001-07-13 2009-08-04 Renishaw Plc Pivot joint
US8074369B2 (en) 2001-07-13 2011-12-13 Renishaw Plc Pivot joint
KR20030040622A (en) * 2001-11-15 2003-05-23 기아자동차주식회사 Coupling structure for the roller hinges on a slide door in a vehicle

Also Published As

Publication number Publication date
JP2947286B2 (en) 1999-09-13

Similar Documents

Publication Publication Date Title
JPH0320754B2 (en)
JPS59220867A (en) Processing system of parts data of machine design
JPH0374776A (en) Method and device for preparing control program of optical reader
JPS59223483A (en) Display
JPH0734204B2 (en) Form design system
JPH0524534B2 (en)
JPH1173288A (en) Display device and method for controlling display and recording medium
US5500932A (en) Slip output apparatus
JP7469792B2 (en) Printing System
JPH10254984A (en) Slip preparing method
JPH0991107A (en) Paper format register device
JPH0399385A (en) Method for forming control program for optical reader
JPS63233465A (en) Input display system for numerical format code
JPH0399384A (en) Method for forming control program for optical reader
JPH0235583A (en) Method and device for generating control program for optical reader
JPH0285984A (en) Method and device for generating control program of optical reader
JPH0379732B2 (en)
JPH03240880A (en) Instruction frame check method for optical reader
JPH0399383A (en) Method for specifying reading line order in control program formation of optical reader
JPH07112732B2 (en) Sheet music composition device
JPH02133822A (en) Data processor
JPH0399382A (en) Method for forming control program for optical reader
JPH0285925A (en) Method and device for producing control program of optical reader
JPS61147371A (en) Interactive graphic processing system
JPS62290971A (en) Input data processor for simple language

Legal Events

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

Free format text: PAYMENT UNTIL: 20080702

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20090702

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20090702

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20100702

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20100702

Year of fee payment: 11