JP2727503B2 - Automatic calculation method of bar code reading position correction value - Google Patents
Automatic calculation method of bar code reading position correction valueInfo
- Publication number
- JP2727503B2 JP2727503B2 JP7228721A JP22872195A JP2727503B2 JP 2727503 B2 JP2727503 B2 JP 2727503B2 JP 7228721 A JP7228721 A JP 7228721A JP 22872195 A JP22872195 A JP 22872195A JP 2727503 B2 JP2727503 B2 JP 2727503B2
- Authority
- JP
- Japan
- Prior art keywords
- barcode
- reading position
- bar code
- correction value
- 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.)
- Expired - Fee Related
Links
Description
【0001】[0001]
【発明の属する技術分野】本発明は、表面にバーコード
の設けられた媒体を吸入、搬送及び排出する機構と前記
媒体表面のバーコードの上からバーコードリーダを走査
させてバーコードを光学的に読取る機構とを有する装置
における前記バーコード読取位置を最適位置とするため
の補正値の自動算出方法に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a mechanism for sucking, transporting, and discharging a medium having a barcode provided on a surface thereof, and an optical system for scanning a barcode reader by scanning a barcode reader from above the barcode on the medium surface. The present invention relates to a method for automatically calculating a correction value for setting the bar code reading position to an optimum position in an apparatus having a reading mechanism.
【0002】[0002]
【従来の技術】図5は自走式バーコード読取機構を備え
た装置におけるバーコード読取位置の最適位置を説明す
る図である。図5の(a)において、バーコードの印刷
又は印字された媒体(以下バーコード媒体と記す)13
は、搬送用ベルト11の上にセットされる。この搬送用
ベルト11は一対のローラ12に巻張され、ローラ12
の軸は図示されない駆動用モータ(例えばパルスモータ
等)と結合されている。従ってこの駆動用モータの回転
方向と回転角を制御することにより搬送用ベルト11を
図の媒体搬送方向又はこれと逆方向に所望の距離だけ移
動させることができる。そしてこの搬送ベルト11の移
動により、ベルト上のバーコード媒体13を所定の読取
位置まで搬送することができる。2. Description of the Related Art FIG. 5 is a diagram for explaining an optimum bar code reading position in an apparatus having a self-propelled bar code reading mechanism. In FIG. 5A, a barcode is printed or a printed medium (hereinafter referred to as a barcode medium) 13
Is set on the conveyor belt 11. The transport belt 11 is wound around a pair of rollers 12,
Are connected to a driving motor (not shown) (for example, a pulse motor or the like). Therefore, by controlling the rotation direction and the rotation angle of the drive motor, the transport belt 11 can be moved by a desired distance in the medium transport direction shown in FIG. The movement of the conveyor belt 11 can convey the barcode medium 13 on the belt to a predetermined reading position.
【0003】図5の(b)は、前記所定の読取位置にお
けるバーコード媒体13を真上からみた図であり、図示
されないバーコードリーダ(バーコードを光学的に読取
り、これをコードに変換して出力する装置)は、バーコ
ード媒体13の上から、媒体搬送方向と直角でバーコー
ドの配列方向(図のAからBの方向)に走査してバーコ
ードを読取る。従ってバーコードリーダの走査線が、図
5の(b)に示されるように、バーコードの各コードの
長さを2等分する中点を結ぶ線上にあれば、読取位置と
して最適位置であるといえる。換言すれば読取エラーの
発生が最小となる位置であるといえる。FIG. 5B is a view of the bar code medium 13 at the predetermined reading position as viewed from directly above, and a bar code reader (not shown) that optically reads a bar code and converts the bar code into a code. The device reads the barcode from above the barcode medium 13 by scanning in the barcode arrangement direction (the direction from A to B in the figure) at right angles to the medium transport direction. Therefore, as shown in FIG. 5B, if the scanning line of the barcode reader is on the line connecting the midpoints that divide the length of each barcode into two equal parts, it is the optimum reading position. It can be said that. In other words, it can be said that this is the position where the occurrence of the reading error is minimized.
【0004】しかしながら、実際の装置における駆動モ
ータによる制御結果としての読取位置は、各装置毎にば
らつき、前記読取最適位置から若干前後した位置となる
のが普通である。従って各装置毎に、前記読取最適位置
からの誤差を補正する補正値を求め、この補正値を装置
に入力することにより、バーコード読取位置を最適位置
に調整する方法が採用されている。However, the reading position as a result of the control by the drive motor in an actual apparatus varies from one apparatus to another, and is usually a position slightly before or after the optimal reading position. Therefore, a method is employed in which a bar code reading position is adjusted to an optimum position by obtaining a correction value for correcting an error from the optimum reading position for each device and inputting the correction value to the device.
【0005】そして従来の自走式バーコード読取機構を
備えた装置におけるバーコード読取位置の補正値を求め
る方法は、バーコード媒体13の読取装置を何通りも変
えてバーコードの読取動作を行ってみて、この何通りか
の読取結果の正常又は異常情報に基づき、操作員が最適
と思われる補正値を判断して決定すものであった。しか
し最適と思われる補正値を装置に入力して、実際にバー
コードの読込動作を行ってみると、この補正値が必ずし
も最適値でない場合もあり、このような場合には何回も
試行錯誤を繰返すことになった。[0005] In a conventional method of obtaining a correction value of a bar code reading position in a device having a self-propelled bar code reading mechanism, a bar code reading operation is performed by changing the reading device of the bar code medium 13 in any number of ways. In this case, the operator determines and determines a correction value that is considered to be optimal based on the normal or abnormal information of some of the reading results. However, when a correction value that seems to be optimal is input to the device and barcode reading operation is actually performed, this correction value may not always be the optimal value, and in such a case, trial and error is performed many times. Was to be repeated.
【0006】[0006]
【発明が解決しようとする課題】しかしながら上記のよ
うなバーコード読取位置補正値の決定方法では、バーコ
ード読取位置補正値を決定するために、操作員がバーコ
ード媒体を装置に送入してバーコードを読取り、この読
取結果に基づき補正値を決定し、この決定した補正値を
装置に入力して適切な補正値であることを確認するとい
う工程を何回も繰返す必要があり、操作員が多くの調整
時間を要するのみならず、このようにして得られた補正
値は、バーコードを正常に読取れる範囲内にはあるが、
必ずしも最適値であるとは限らないという問題点があっ
た。However, in the above-described method of determining a bar code reading position correction value, an operator sends a bar code medium to the apparatus in order to determine the bar code reading position correction value. It is necessary to repeat the process of reading a bar code, determining a correction value based on the read result, and inputting the determined correction value to the device to confirm that the correction value is appropriate. Not only takes a lot of adjustment time, but the correction value obtained in this way is within the range where the barcode can be read normally,
There is a problem that the optimum value is not always obtained.
【0007】[0007]
【課題を解決するための手段】本発明に係るバーコード
読取位置補正値の自動算出方法は、表面にバーコードの
設けられた媒体を送入、搬送及び排出する機構と前記媒
体表面のバーコードの上からバーコードリーダを走査さ
せてバーコードを光学的に読取る機構とを有する装置に
おける前記バーコード読取位置を最適位置とするための
補正値の自動算出方法において、媒体上の正しい位置に
バーコードの設けられた標準媒体を通常の読取位置に送
入し、次に前記通常の読取位置の前後に所定の試験範囲
を設け、該試験範囲内で前記標準媒体を最小移動可能距
離毎に順次移動させ、該順次移動の度に前記バーコード
リーダを走査させてバーコードを読取ると共にその読取
結果の正常又は異常の情報を記憶し、次に前記記憶した
読取結果の情報のうちで最初に正常の情報の得られた読
取位置と最後に正常の情報の得られた読取位置を求め、
前記最初に正常の情報の得られた読取位置と、最後に正
常の情報の得られた読取位置との間を2等分する中点の
位置を前記バーコード読取位置の最適位置とするための
補正値を算出するものである。According to the present invention, there is provided a method for automatically calculating a bar code reading position correction value, comprising a mechanism for feeding, transporting, and discharging a medium provided with a bar code on the surface, and a bar code on the surface of the medium. And a mechanism for optically reading a bar code by scanning a bar code reader from above. In the automatic calculation method of the correction value for setting the bar code reading position to the optimum position, the bar is set to the correct position on the medium. The standard medium provided with the code is sent to a normal reading position, and then a predetermined test range is provided before and after the normal reading position, and the standard medium is sequentially moved within the test range at every minimum movable distance. The bar code reader is scanned at each successive movement to read the bar code, and stores the normal or abnormal information of the read result, and then stores the information of the stored read result. Chide first determined the resulting reading position of normal information obtained reading position and last normal information,
The position of the middle point which bisects the reading position where the first normal information is obtained and the reading position where the last normal information is obtained is set as the optimum position of the barcode reading position. The correction value is calculated.
【0008】本発明においては、表面にバーコードの設
けられた媒体を吸入、搬送及び排出する機構と前記媒体
表面のバーコードの上からバーコードリーダを走査させ
てバーコードを光学的に読取る機構とを有する装置にお
ける前記バーコード読取位置を最適位置とするための補
正値の自動算出方法において、最初の工程で、媒体上の
正しい位置にバーコードの設けられた標準媒体を通常の
読取位置に吸入し、次の工程で、前記通常の読取位置の
前後に所定の試験範囲を設け、該試験範囲内で前記標準
媒体を最小移動可能距離毎に順次移動させ、該順次移動
の度に前記バーコードリーダを走査させてバーコードを
読取ると共にその読取結果の正常又は異常の情報を記憶
し、最後の工程で、前記記憶した読取結果の情報のうち
で最初に正常の情報の得られた読取位置と最後に正常の
情報の得られた読取位置を求め、前記最初に正常の情報
の得られた読取位置と、最後に正常の情報の得られた読
取位置との間を2等分する中点の位置を前記バーコード
読取位置の最適位置とするための補正値を算出するよう
にしたので、バーコード読取位置の補正値が自動的に算
出され、従来のように操作員が多くの調整時間を要する
ことがなく、また算出される補正値は最適値であるの
で、バーコード読取りエラーの発生が最小となる。In the present invention, a mechanism for sucking, transporting, and discharging a medium provided with a barcode on the surface and a mechanism for optically reading the barcode by scanning a barcode reader from above the barcode on the medium surface. In the automatic calculation method of the correction value for setting the barcode reading position to the optimum position in the device having the above, in the first step, the standard medium provided with the barcode at the correct position on the medium is moved to the normal reading position. In the next step, a predetermined test range is provided before and after the normal reading position, and the standard medium is sequentially moved by the minimum movable distance within the test range. The bar code is scanned by scanning the code reader, and the normal or abnormal information of the read result is stored. In the last step, the normal information is first among the stored read result information. Of the obtained reading position and the reading position at which the last normal information was obtained, and the distance between the first reading position at which the normal information was obtained and the reading position at which the last normal information was obtained. Since the correction value for setting the position of the midpoint to be bisected as the optimum position of the barcode reading position is calculated, the correction value of the barcode reading position is automatically calculated, and the operation as in the conventional operation is performed. Since the operator does not need much adjustment time and the calculated correction value is an optimum value, the occurrence of a barcode reading error is minimized.
【0009】[0009]
【発明の実施の形態】図2は本発明を適用したバーコー
ドリーダ装置の構成例を示す図であり、図において、1
はプリンタ、2はプリンタ制御部、3は不揮発性メモ
リ、4はバーコードリーダ、5は搬送部、6は主制御
部、7は主メモリ、8はディスプレイ、9はキーボー
ド、10は接続ケーブルである。図2において、プリン
タ1は、バーコード媒体(例えば各種帳票等で、この帳
票内の所定位置に1つのバーコードが印刷される)の吸
入、文字とバーコードの印字、搬送及び排出の機構を有
すると共に、バーコードを光学的に読取ってコード信号
に変換する機構であるバーコードリーダ4をも有する装
置であり、内部にプリンタ制御部2と不揮発性メモリ3
を含む。そしてプリンタ1と主制御部6とは接続ケーブ
ル10で接続されている。主制御部6は、内部に主メモ
リ7を含むと共に、オペレータからの命令を入力するた
めのキーボード9及びオペレータへの情報を表示するた
めのディスプレイ8と接続ケーブル10で接続され、プ
リンタ1への動作指示及びプリンタ1からの情報取得を
行うことができる。FIG. 2 is a diagram showing a configuration example of a bar code reader device to which the present invention is applied.
Is a printer, 2 is a printer control unit, 3 is a non-volatile memory, 4 is a barcode reader, 5 is a transport unit, 6 is a main control unit, 7 is a main memory, 8 is a display, 9 is a keyboard, and 10 is a connection cable. is there. In FIG. 2, a printer 1 has a mechanism for inhaling a barcode medium (for example, one barcode is printed at a predetermined position in this form on various forms, etc.), printing characters and barcodes, transporting and discharging. And a bar code reader 4 which is a mechanism for optically reading a bar code and converting the bar code into a code signal.
including. The printer 1 and the main controller 6 are connected by a connection cable 10. The main control unit 6 includes a main memory 7 therein, and is connected to a keyboard 9 for inputting instructions from an operator and a display 8 for displaying information to the operator via a connection cable 10. An operation instruction and information acquisition from the printer 1 can be performed.
【0010】図3は図2のバーコードリーダ4と搬送部
5の動作を説明する図であり、図の4はバーコードリー
ダ、11は搬送用ベルト、12は1対のローラ、13は
バーコード媒体である。図3の(a)の側面図におい
て、ローラ12はその回転軸が図示されないモータ(こ
の例ではパルスモータとする)と結合されており、プリ
ンタ制御部2が指定した角度分だけモータを回転させる
ことにより、ローラ12がその角度分だけ回転し、ロー
ラ12に巻張された搬送用ベルト11が進行方向(例え
ばX軸方向)へ移動する。この搬送用ベルト11の移動
によりベルト上のバーコード媒体13の送入、搬送、排
出がなされる。ローラ12の回転軸と結合されるパルス
モータは、1パルス供給される毎に最小回転単位だけ回
転するので、プリンタ制御部2は回転させたい角度がこ
の最小回転単位の何倍であるかを判断し、N倍である場
合にはN個のパルスをパルスモータに供給する。このよ
うにプリンタ制御部2はパルスモータに供給するパルス
数を制御することにより、搬送ベルト11を移動させバ
ーコード媒体13を所定のバーコード読取位置(バーコ
ードリーダ4の真下の位置)まで送入できる。FIG. 3 is a diagram for explaining the operation of the bar code reader 4 and the transport section 5 of FIG. 2. In FIG. 3, 4 is a bar code reader, 11 is a transport belt, 12 is a pair of rollers, and 13 is a bar. It is a code medium. In the side view of FIG. 3A, the roller 12 has its rotation axis connected to a motor (not shown), which is a pulse motor, and rotates the motor by an angle designated by the printer control unit 2. Thereby, the roller 12 rotates by that angle, and the transport belt 11 wound around the roller 12 moves in the traveling direction (for example, the X-axis direction). By the movement of the transport belt 11, the barcode medium 13 on the belt is fed, transported, and discharged. Since the pulse motor connected to the rotation shaft of the roller 12 rotates by the minimum rotation unit every time one pulse is supplied, the printer control unit 2 determines how many times the angle to be rotated is the minimum rotation unit. If it is N times, N pulses are supplied to the pulse motor. As described above, the printer control unit 2 controls the number of pulses supplied to the pulse motor, thereby moving the conveyor belt 11 and sending the barcode medium 13 to a predetermined barcode reading position (a position immediately below the barcode reader 4). You can enter.
【0011】バーコード媒体13が所定のバーコード読
取位置にまで送入されると、バーコードリーダ4はプリ
ンタ制御部2からの指令により、図3の(b)の正面図
において、左端Aから右端B(この例では前記X軸方向
と直角なY軸方向)へ自走し、バーコードを読取ろうと
する。このときバーコード読取位置が図5の(b)に示
した最適位置(バーコードリーダの走査線が各バーコー
ドの長さを2等分する中点を結ぶ線と一致する位置)に
あれば、正しくバーコードを読取ることができる。しか
し前記パルスモータの最小回転単位による搬送距離は、
各装置毎にばらつくので、実際の装置におけるバーコー
ド読取位置は最適位置からずれている。従って各装置毎
にこのずれを補正する補正値を求め、この補正値を装置
に入力していることは従来の技術において説明した通り
である。When the bar code medium 13 is fed to a predetermined bar code reading position, the bar code reader 4 receives a command from the printer control unit 2 and starts from the left end A in the front view of FIG. It runs on the right end B (in this example, the Y-axis direction perpendicular to the X-axis direction) and attempts to read a barcode. At this time, if the bar code reading position is at the optimum position shown in FIG. 5B (the position where the scanning line of the bar code reader coincides with the line connecting the midpoints that divides the length of each bar code into two equal parts). , The bar code can be read correctly. However, the transport distance by the minimum rotation unit of the pulse motor is
The barcode reading position in an actual device is shifted from the optimum position because the value varies for each device. Therefore, a correction value for correcting this deviation is obtained for each device, and this correction value is input to the device, as described in the related art.
【0012】例えば従来の試行錯誤を繰返す手法等によ
って前記バーコード読取位置の補正値が求められたとす
ると、この補正値はプリンタ制御部2内の不揮発性メモ
リ3に書込まれる。そしてバーコード媒体13を搬送し
てバーコード読取位置まで吸入するとき、この搬送距離
に対応して標準パルスモータに与える一定のパルス数に
対して前記補正値のパルス数を増減したパルス数を各装
置のパルスモータに供給し、バーコード読取位置が最適
位置になるようにしている。For example, if a correction value of the bar code reading position is obtained by a conventional method of repeating trial and error, the correction value is written in the nonvolatile memory 3 in the printer control unit 2. When the barcode medium 13 is conveyed and sucked up to the barcode reading position, the number of pulses obtained by increasing or decreasing the number of pulses of the correction value with respect to a fixed number of pulses given to the standard pulse motor in accordance with the distance of conveyance is calculated. It is supplied to the pulse motor of the device so that the bar code reading position is at the optimum position.
【0013】本発明は、前記補正値を自動的に且つ最適
値となるように算出するものであり、この算出された補
正値は不揮発性メモリ13に書込まれる。図1は本発明
に係るバーコード読取位置補正値の自動算出順序を示す
流れ図である。図1の流れ図に従い補正値の自動算出方
法を説明する。なお図のSに続く数値はステップ番号を
示す。図1のS0では、まず標準バーコード媒体(媒体
内の正確な位置にバーコードが印字されたバーコード媒
体)を搬送部5の所定の取込位置にセットする。ここで
従来の手法等で得られた現在のバーコード読取位置の補
正値を整数αとする(例えば補正値の初期値は02等で
ある)。また前記取込位置からバーコード媒体を読取位
置にまで送入するための標準パルス数をβとする。According to the present invention, the correction value is calculated automatically and so as to be an optimum value, and the calculated correction value is written in the nonvolatile memory 13. FIG. 1 is a flowchart showing an automatic calculation order of the barcode reading position correction value according to the present invention. An automatic calculation method of the correction value will be described with reference to the flowchart of FIG. The numerical value following S in the figure indicates a step number. In S0 of FIG. 1, first, a standard barcode medium (a barcode medium having a barcode printed at an accurate position in the medium) is set at a predetermined take-in position of the transport unit 5. Here, the correction value of the current barcode reading position obtained by the conventional method or the like is an integer α (for example, the initial value of the correction value is 02 or the like). Also, let β be the standard number of pulses for feeding the barcode medium from the capture position to the read position.
【0014】図1のS1では、前記標準バーコード媒体
を読取位置に吸入するため、プリンタ制御部2は搬送部
5に補正値を加算したパルス数(β+α)の供給を指示
する。次にS2で、S1の読込位置から標準バーコード
媒体を15パルス分だけ逆搬送(排出方向へ搬送)す
る。従って標準バーコード媒体はS1の読込位置から−
15パルス分の位置にあることになる。In step S1 of FIG. 1, the printer control unit 2 instructs the transport unit 5 to supply the pulse number (β + α) to which the correction value has been added in order to suck the standard barcode medium into the reading position. Next, in step S2, the standard barcode medium is conveyed backward by 15 pulses (conveyed in the discharge direction) from the reading position of S1. Therefore, the standard bar code medium is-from the reading position of S1.
That is, it is at a position corresponding to 15 pulses.
【0015】次にS3で、読取回数iを初期値の0にセ
ットし、S4では読取回数iが31以下かを判別し、以
下の場合はS5へ、以下でない場合はS9へ移る。図1
のS5では、現在の読取位置において、プリンタ制御部
2の命令によってバーコードリーダが自走し、標準バー
コード媒体からバーコードの読取動作を行なう。Next, in step S3, the number of readings i is set to an initial value of 0. In step S4, it is determined whether the number of readings i is 31 or less. If not, the flow proceeds to S5. If not, the flow proceeds to S9. FIG.
In step S5, the barcode reader runs by itself at the current reading position according to a command from the printer control unit 2, and performs a barcode reading operation from a standard barcode medium.
【0016】S6では、S5の読取動作の結果、正常に
バーコードを読取れたか否かの情報を読取結果テーブル
のi番目のエリアにセットする。図4は本発明に係る読
取結果テーブルの一例を示すもので、このテーブルは1
バイト単位で31バイト分のメモリ容量を有し、各メモ
リアドレスに対応するインデックス値(0〜30)を設
けている。なお主制御部6は、先頭のインデックス値
“0”のメモリアドレスのみを認識すれば、カウンタ等
を用いて、各インデックス値とメモリアドレスとの対応
が可能である。また読取結果の情報としては、例えば、
正常に読取れた場合は“1”、そうでない場合は“0”
とする。In S6, as a result of the reading operation in S5, information indicating whether or not the bar code has been read normally is set in the i-th area of the reading result table. FIG. 4 shows an example of a reading result table according to the present invention.
It has a memory capacity of 31 bytes in byte units, and is provided with index values (0 to 30) corresponding to each memory address. If the main control unit 6 recognizes only the memory address of the leading index value “0”, it is possible to associate each index value with the memory address using a counter or the like. Also, as information of the reading result, for example,
"1" if read successfully, "0" otherwise
And
【0017】次にS7では、標準バーコード媒体を1パ
ルス分順搬送(送入方向へ搬送)する。S8では読取回
数iを1つ増加させてS4へ戻る。そしてS4〜S8の
ステップを31回繰り返す。その結果、最終的に標準バ
ーコード媒体の読取位置はS1の読込位置から+15パ
ルス分の位置となる。即ち標準バーコード媒体の読取位
置を、最初のS1の読込位置をはさみその−15パルス
分の位置から+15パルス分の位置まで、順次1パルス
分の間隔で移動させて、この読取位置の移動毎に、バー
コードの読取動作とその読取結果情報の読取結果テーブ
ルへのセット動作を行うことになる。In step S7, the standard barcode medium is sequentially conveyed by one pulse (conveyed in the feeding direction). In S8, the number of readings i is increased by one, and the process returns to S4. Then, steps S4 to S8 are repeated 31 times. As a result, the reading position of the standard barcode medium finally becomes a position for +15 pulses from the reading position of S1. That is, the reading position of the standard barcode medium is sequentially moved at intervals of one pulse from the position of −15 pulses to the position of +15 pulses with the reading position of the first S1 interposed therebetween. Then, a barcode reading operation and an operation of setting the reading result information in the reading result table are performed.
【0018】従ってこの31回の繰り返し動作の終了後
に、読取結果テーブルには、最初の読込位置をはさみ、
その前後15パルス分の読込位置における、31回分の
読取結果情報がセットされていることになる。S4にお
ける判別処理で、読取回数iが31を越えると、S9へ
移る。S9では、読取結果テーブルのインデックス順に
テーブル内で最初にバーコード読取結果が正常になった
位置を探索し、この位置のインデックス値をSTART
値とする。S10では読取結果テーブル内で最後にバー
コードの読取結果が正常であった位置を探索し、この位
置のインデックス値をEND値とする。ここで、前記S
TART値とEND値は0から30までのいずれかの値
である。Therefore, after the end of the 31 repetitive operations, the first read position is inserted in the read result table,
This means that the read result information for 31 times is set at the read position for 15 pulses before and after that. If the number of readings i exceeds 31 in the discrimination process in S4, the process proceeds to S9. In S9, the position where the bar code reading result becomes normal is searched in the reading result table in the order of the index in the index, and the index value of this position is set to START.
Value. In S10, the position where the bar code reading result was finally normal is searched in the reading result table, and the index value of this position is set as the END value. Here, the S
The TART value and the END value are any values from 0 to 30.
【0019】前記読取結果テーブルを調べて、読取結果
のうちで最初に正常の情報の得られた読取位置と、最後
に正常の情報の得られた読取位置とが判ると、この2つ
の読取位置の間を2等分する中点の位置が前記バーコー
ド読取位置の最適位置となる。従ってこの最適位置に対
する最初のS1の読込位置の修正値(これをCORRE
CT値と称する)は次の演算によって求めることができ
る。S11では、前記START及びEND値に基づき
下記の演算式によりCORRECT値を求める。 CORRECT値={(END値+1)−START
値}/2+START値−15When the reading result table is examined and the reading position where the normal information is obtained first and the reading position where the normal information is obtained last are found out of the reading results, the two reading positions are obtained. The position of the midpoint that bisects the interval is the optimum position of the barcode reading position. Therefore, the correction value of the first reading position of S1 with respect to this optimum position (this is the CORRE
CT value) can be obtained by the following calculation. In step S11, a CORRECT value is obtained by the following equation based on the START and END values. CORRECT value = {(END value + 1) -START
Value} / 2 + START value -15
【0020】S12では、S11で求めたCORREC
T値をそれまでの補正値αに加算し、この(CORRE
CT値+α)を新たなバーコード読取位置の補正値とし
て、これをプリンタ制御部2の命令によりプリンタ制御
部2内の不揮発性メモリ3に書込む。S13では、標準
バーコード媒体を搬送部5により排出させる。以上によ
りバーコード読取位置の補正値は最適値となるように自
動的に算出される。At S12, the CORREC calculated at S11 is obtained.
The T value is added to the previous correction value α, and this (CORRE)
(CT value + α) is written as a new bar code reading position correction value in the nonvolatile memory 3 in the printer control unit 2 in accordance with an instruction from the printer control unit 2. In S13, the standard barcode medium is discharged by the transport unit 5. As described above, the correction value of the barcode reading position is automatically calculated so as to be an optimum value.
【0021】従って本実施例によれば、バーコード読取
位置の補正値は自動的に算出されるから、従来のように
操作員がバーコード媒体の読取位置を何通りも変えてバ
ーコードを読取らせて、その読取結果をみて補正値を決
定し、この補正値をキーボードにより装置に入力させ
て、その補正結果が良好であるか否かを確認するという
ような手間が不要となった。また従来は、上記のように
手間をかけて求めた補正値といえども、必ずしも最適値
でない場合もあったが、本実施例によれば、正しく最適
の補正値が算出される。Therefore, according to this embodiment, since the correction value of the bar code reading position is automatically calculated, the operator reads the bar code by changing the reading position of the bar code medium in a number of ways as in the prior art. This eliminates the need for determining the correction value based on the read result, inputting the correction value to the apparatus using a keyboard, and checking whether the correction result is satisfactory. In the related art, even though the correction value obtained by the above-mentioned method is troublesome, the correction value may not always be the optimum value. However, according to the present embodiment, the optimum correction value is correctly calculated.
【0022】[0022]
【発明の効果】以上のように本発明によれば、表面にバ
ーコードの設けられた媒体を吸入、搬送及び排出する機
構と前記媒体表面のバーコードの上からバーコードリー
ダを走査させてバーコードを光学的に読取る機構とを有
する装置における前記バーコード読取位置を最適位置と
するための補正値の自動算出方法において、最初の工程
で、媒体上の正しい位置にバーコードの設けられた標準
媒体を通常の読取位置に吸入し、次の工程で、前記通常
の読取位置の前後に所定の試験範囲を設け、該試験範囲
内で前記標準媒体を最小移動可能距離毎に順次移動さ
せ、該順次移動の度に前記バーコードリーダを走査せて
バーコードを読取ると共にその読取結果の正常又は異常
の情報を記憶し、最後の工程で、前記記憶した読取結果
の情報のうちで最初に正常の情報の得られた読取位置と
最後に正常の情報の得られた読取位置を求め、前記最初
に正常の情報の得られた読取位置と、最後に正常の情報
の得られた読取位置との間を2等分する中点の位置を前
記バーコード読取位置の最適位置とするための補正値を
算出するようにしたので、バーコード読取り位置の補正
値が自動的に算出され、従来のように操作員が多くの調
整時間を要することがなく、また算出される補正値は最
適値であるので、バーコード読取りエラーの発生が最小
となるという効果が得られる。As described above, according to the present invention, a mechanism for sucking, transporting, and discharging a medium provided with a barcode on the surface and a barcode reader scanning the barcode reader from above the barcode on the medium surface. In a method for automatically calculating a correction value for setting the barcode reading position to an optimum position in a device having a mechanism for optically reading a code, a standard in which a barcode is provided at a correct position on a medium in a first step. The medium is sucked into a normal reading position, and in the next step, a predetermined test range is provided before and after the normal reading position, and the standard medium is sequentially moved within the test range by a minimum movable distance, and Each time the bar code reader is sequentially moved, the bar code reader is scanned to read a bar code, and the normal or abnormal information of the read result is stored. In the last step, the first among the stored read result information is stored. The reading position where the normal information is obtained and the reading position where the normal information is finally obtained are obtained, and the reading position where the first normal information is obtained and the reading position where the normal information is finally obtained are The correction value for making the position of the midpoint that divides the interval into two equal to the optimum position of the barcode reading position is calculated, so that the correction value of the barcode reading position is automatically calculated, As described above, since the operator does not need much adjustment time and the calculated correction value is the optimum value, the effect of minimizing the occurrence of a barcode reading error can be obtained.
【図1】本発明に係るバーコード読取位置補正値の自動
算出順序を示す流れ図である。FIG. 1 is a flowchart showing an automatic calculation order of a barcode reading position correction value according to the present invention.
【図2】本発明を適用したバーコードリーダ装置の構成
例を示す図である。FIG. 2 is a diagram illustrating a configuration example of a barcode reader device to which the present invention has been applied.
【図3】図2のバーコードリーダ4と搬送部5との動作
を説明する図である。FIG. 3 is a diagram illustrating the operation of a bar code reader 4 and a transport unit 5 in FIG.
【図4】本発明に係る読取結果テーブルの一例を示す図
である。FIG. 4 is a diagram showing an example of a reading result table according to the present invention.
【図5】バーコード読取位置の最適位置を説明する図で
ある。FIG. 5 is a diagram illustrating an optimal barcode reading position.
1 プリンタ 2 プリンタ制御部 3 不揮発性メモリ 4 バーコードリーダ 5 搬送部 6 主制御部 7 主メモリ 8 ディスプレイ 9 キーボード 10 接続ケーブル 11 搬送用ベルト 12 ローラ 13 バーコード媒体 DESCRIPTION OF SYMBOLS 1 Printer 2 Printer control part 3 Non-volatile memory 4 Barcode reader 5 Transport part 6 Main control part 7 Main memory 8 Display 9 Keyboard 10 Connection cable 11 Transport belt 12 Roller 13 Barcode medium
───────────────────────────────────────────────────── フロントページの続き (72)発明者 高橋 智子 東京都港区虎ノ門1丁目7番12号 沖電 気工業株式会社内 (72)発明者 伊藤 信介 神奈川県横浜市港北区綱島東4丁目3番 1号 松下通信工業株式会社内 (72)発明者 川手 大輔 岩手県花巻市城内4番3号 株式会社 新興製作所内 (72)発明者 鈴木 雅彦 静岡県田方郡大仁町大仁570番地 株式 会社 テック 大仁工場内 (56)参考文献 特開 平4−77864(JP,A) 特開 平9−34973(JP,A) ──────────────────────────────────────────────────続 き Continued on the front page (72) Inventor Tomoko Takahashi 1-7-12 Toranomon, Minato-ku, Tokyo Oki Electric Industry Co., Ltd. (72) Inventor Shinsuke Ito 4-chome Tsunashima Higashi, Kohoku-ku, Yokohama, Kanagawa Prefecture No. 1 Matsushita Communication Industrial Co., Ltd. (72) Inventor Daisuke Kawate 4-3 Jonai, Hanamaki City, Iwate Prefecture Inside Shinko Seisakusho Co., Ltd. Inside the factory (56) References JP-A-4-77864 (JP, A) JP-A-9-34973 (JP, A)
Claims (3)
入、搬送及び排出する機構と前記媒体表面のバーコード
の上からバーコードリーダを走査させてバーコードを光
学的に読取る機構とを有する装置における前記バーコー
ド読取位置を最適位置とするための補正値の自動算出方
法において、 媒体上の正しい位置にバーコードの設けられた標準媒体
を通常の読取位置に吸入し、 次に前記通常の読取位置の前後に所定の試験範囲を設
け、該試験範囲内で前記標準媒体を最小移動可能距離毎
に順次移動させ、該順次移動の度に前記バーコードリー
ダを走査させてバーコードを読取ると共にその読取結果
の正常又は異常の情報を記憶し、 次に前記記憶した読取結果の情報のうちで最初に正常の
情報の得られた読取位置と最後に正常の情報の得られた
読取位置を求め、前記最初に正常の情報の得られた読取
位置と、最後に正常の情報の得られた読取位置との間を
2等分する中点の位置を前記バーコード読取位置の最適
位置とするための補正値を算出することを特徴とするバ
ーコード読取位置補正値の自動算出方法。1. A mechanism for inhaling, transporting, and discharging a medium having a barcode provided on a surface thereof, and a mechanism for optically reading a barcode by scanning a barcode reader from above the barcode on the medium surface. In the method of automatically calculating a correction value for setting the barcode reading position in the apparatus to an optimum position, a standard medium provided with a barcode is sucked into a normal reading position at a correct position on the medium, and then the normal medium is read. A predetermined test range is provided before and after the reading position, the standard medium is sequentially moved by the minimum movable distance within the test range, and the barcode reader is scanned at each successive movement to read a barcode. The normal or abnormal information of the read result is stored, and then, among the stored read result information, the read position at which the normal information was obtained first and the normal position at the last were obtained. The reading position is obtained, and the reading at which the first normal information is obtained is obtained.
Between the position and the last reading position where normal information was obtained.
A method for automatically calculating a correction value of a bar code reading position, comprising calculating a correction value for setting a position of a middle point at which the bar code is read into two as an optimum position of the bar code reading position.
最小移動可能距離の複数N倍の距離を、前記通常の読取
位置の前後にそれぞれ設けた範囲とする請求項1記載の
バーコード読取位置補正値の自動算出方法。2. The barcode reading device according to claim 1, wherein the predetermined test range is a range in which a distance N times the minimum movable distance of the standard medium is provided before and after the normal reading position. Automatic calculation method of position correction value.
記吸入、搬送及び排出する機構を駆動するパルスモータ
に、1つのパルスを供給することによって得られる移動
距離とする請求項1又は請求項2記載のバーコード読取
位置補正値の自動算出方法。3. The minimum movable distance of the standard medium is a movable distance obtained by supplying one pulse to a pulse motor that drives the suction, transport and discharge mechanism. 2. A method for automatically calculating the bar code reading position correction value described in 2.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7228721A JP2727503B2 (en) | 1995-09-06 | 1995-09-06 | Automatic calculation method of bar code reading position correction value |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7228721A JP2727503B2 (en) | 1995-09-06 | 1995-09-06 | Automatic calculation method of bar code reading position correction value |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0973514A JPH0973514A (en) | 1997-03-18 |
| JP2727503B2 true JP2727503B2 (en) | 1998-03-11 |
Family
ID=16880781
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP7228721A Expired - Fee Related JP2727503B2 (en) | 1995-09-06 | 1995-09-06 | Automatic calculation method of bar code reading position correction value |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2727503B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP3199953B1 (en) * | 2016-02-01 | 2021-03-24 | Roche Diagniostics GmbH | Method for teaching positioning of a bar code scanner and apparatus for processing a sample or reagent |
-
1995
- 1995-09-06 JP JP7228721A patent/JP2727503B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0973514A (en) | 1997-03-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0103788B1 (en) | Method and apparatus for reading mark sheets | |
| JP2727503B2 (en) | Automatic calculation method of bar code reading position correction value | |
| JP2004276396A (en) | Cueing position shift correction amount calculation method and printing apparatus | |
| JPH01214555A (en) | Media transport mechanism | |
| JP2000001033A (en) | Apparatus for detecting end of printing medium and printing apparatus using the same | |
| JP3459175B2 (en) | Printer | |
| JPH07125343A (en) | Printer | |
| CN1152727A (en) | Method and device for correcting negative film conveying amount | |
| JPS63222874A (en) | Recorder | |
| JPH11227274A (en) | Sensor position correction method and paper position control method in printer | |
| JP2003040229A (en) | Printing equipment | |
| JP4473682B2 (en) | Printing device | |
| JPH05191583A (en) | Method for correcting form carrier speed for form driving-type scanner | |
| JPH02303867A (en) | Method for transferring printing medium in high speed printer | |
| JP2005047638A (en) | Optical information reader for continuous forms | |
| JPS58173685A (en) | Apparatus for conveying medium | |
| CN120987065A (en) | Paper conveying apparatus and image forming apparatus including the same | |
| JP2823067B2 (en) | OMR mark reading method | |
| JPH04207853A (en) | Image reader | |
| JPH04333453A (en) | Jam monitoring method | |
| JP2002062600A (en) | Image exposure equipment | |
| JPH113402A (en) | Image reader | |
| JPH11261771A (en) | Image reader | |
| JPH10264461A (en) | Printing equipment | |
| JPH08230267A (en) | Printer device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081212 Year of fee payment: 11 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081212 Year of fee payment: 11 |
|
| S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081212 Year of fee payment: 11 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091212 Year of fee payment: 12 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091212 Year of fee payment: 12 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101212 Year of fee payment: 13 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101212 Year of fee payment: 13 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111212 Year of fee payment: 14 |
|
| LAPS | Cancellation because of no payment of annual fees |