JPH05756B2 - - Google Patents

Info

Publication number
JPH05756B2
JPH05756B2 JP62106976A JP10697687A JPH05756B2 JP H05756 B2 JPH05756 B2 JP H05756B2 JP 62106976 A JP62106976 A JP 62106976A JP 10697687 A JP10697687 A JP 10697687A JP H05756 B2 JPH05756 B2 JP H05756B2
Authority
JP
Japan
Prior art keywords
banknote
banknotes
discrimination
data
output
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
Application number
JP62106976A
Other languages
Japanese (ja)
Other versions
JPS63271690A (en
Inventor
Yasuaki Kaneko
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.)
Laurel Bank Machine Co Ltd
Original Assignee
Laurel Bank Machine 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 Laurel Bank Machine Co Ltd filed Critical Laurel Bank Machine Co Ltd
Priority to JP62106976A priority Critical patent/JPS63271690A/en
Publication of JPS63271690A publication Critical patent/JPS63271690A/en
Publication of JPH05756B2 publication Critical patent/JPH05756B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Inspection Of Paper Currency And Valuable Securities (AREA)

Description

【発明の詳細な説明】 「産業上の利用分野」 本発明は紙幣計数機に関わり、特に、紙幣表面
の光学パターンを読取つて異種券混入の有無、二
重送り等を検出しつつ計数を行なうようにした紙
幣計数機に関するものである。
[Detailed Description of the Invention] "Industrial Application Field" The present invention relates to banknote counting machines, and in particular, counts while reading the optical pattern on the surface of banknotes and detecting the presence or absence of mixture of different types of banknotes, double feeding, etc. The present invention relates to a banknote counting machine having the above-mentioned structure.

「従来の技術」 一般に紙幣計数機は、公転しながら自転する吸
引軸内の真空圧により、紙幣を一枚ずつ吸着して
めくり取りながら計数を行なうとともに、計数中
の紙幣に異なる金種の紙幣が混入しているか否か
をチエツクする機能を有している。
``Prior Art'' In general, bill counting machines use vacuum pressure in a suction shaft that rotates on its own axis to attract bills one by one and count the bills while flipping them over. It has a function to check whether or not it is contaminated.

従来、このような機能を有する紙幣計数機とし
て、本出願人は実開昭60−104979号公報に示す如
き「紙幣計数機における判別装置」を既に提供し
ている。
Conventionally, as a banknote counting machine having such a function, the present applicant has already provided a "discrimination device for a banknote counting machine" as shown in Japanese Utility Model Application Publication No. 60-104979.

この紙幣計数機における判別装置は、吸引軸に
吸着される部分の近傍で紙幣表面のパターンをラ
イン状に読み取るようにしたものであつて、読み
取つたデータ(表面パターン)を記憶手段に記憶
されている基準データと比較することにより、金
種および表裏の判別を行ない、この判別の結果、
計数紙幣に異種券あるいは異常紙幣が混入してい
るか否か検出するものである。
The discrimination device in this banknote counting machine reads the pattern on the surface of the banknote in a line shape near the part that is attracted to the suction shaft, and stores the read data (surface pattern) in the storage means. The denomination and the obverse and reverse sides are determined by comparing with standard data, and as a result of this determination,
This detects whether different types of bills or abnormal bills are mixed in the counted bills.

「発明が解決しようとする問題点」 ところで、このような紙幣計数機における判別
装置においては、前記表面パターンと比較される
基準データが多数あるために、これら多数の基準
データの内のいくつかを適宜選択し、更に、これ
ら選択した基準データを前記表面パターンと逐一
比較判別するのに時間が掛かり、作業能率の低下
を招くという不具合があつた。
"Problems to be Solved by the Invention" By the way, in the discriminating device of such a banknote counting machine, since there is a large number of reference data to be compared with the surface pattern, it is necessary to select some of these reference data. There is a problem in that it takes time to select the appropriate reference data and to compare and discriminate the selected reference data point by point with the surface pattern, resulting in a decrease in work efficiency.

本発明は、上記の事情に鑑みてなされたもので
あつて、検出素子によつて読み取られた表面パタ
ーンを、記憶手段に記憶されている判別基準デー
タと効率良く比較判別することができる紙幣計数
機における異種券判別装置の提供を目的としてい
る。
The present invention has been made in view of the above circumstances, and is a banknote counter that can efficiently compare and discriminate a surface pattern read by a detection element with discrimination reference data stored in a storage means. The purpose is to provide a device for discriminating different types of tickets in machines.

「問題点を解決するための手段」 上記目的を達成するために、本発明では、紙幣
が装填されるホルダと、 該ホルダに装填された紙幣を一枚ずつ吸着して
めくりながら計数する吸引軸と、 該吸引軸により吸着されてめくられようとする
状態の紙幣の表面に光線を照射する投光器と、 該紙幣の表面で反射した光線を検出して紙幣の
表面パターンを読み取る検出素子と、 該検出素子によつて読み取られた表面パターン
を、記憶手段に記憶されている複数種の判別基準
パターンと比較する比較手段とを有する紙幣計数
機における判別装置において、 前記比較手段により紙幣と判別された1枚目の
金種コード並びに表裏基準データを一時記憶する
基準情報一時記憶手段と、 該基準情報記憶一時手段に基づき、2枚目以降
の紙幣の判別に際して前記表裏基準データと同じ
表裏いずれかの正逆2つの判別基準パターン、そ
の後、前記表裏基準データと異なる表裏いずれか
他方の正逆2つの判別基準パターンを記憶手段か
ら読み出す選択手段と、 該選択手段により順次読み出される判別基準デ
ータと前記表面パターンとを前記比較手段にて比
較し、一致したパターンがあつた時点で、当該紙
幣における残りの判別基準パターンとの比較を中
止する比較中止手段とを設けるようにしている。
"Means for Solving the Problems" In order to achieve the above object, the present invention includes a holder into which banknotes are loaded, and a suction shaft which attracts and counts the banknotes loaded in the holder one by one while turning them over. a light projector that irradiates a light beam onto the surface of a banknote that is about to be turned over after being attracted by the suction shaft; a detection element that detects the light beam reflected on the surface of the banknote and reads the surface pattern of the banknote; A discriminating device for a banknote counting machine, comprising a comparison means for comparing a surface pattern read by a detection element with a plurality of types of discrimination reference patterns stored in a storage means, wherein a banknote is determined to be a banknote by the comparison means. a reference information temporary storage means for temporarily storing the first denomination code and front/back reference data; and based on the reference information temporary storage means, when determining the second and subsequent banknotes, one of the front and back sides that is the same as the front and back reference data is used. a selection means for reading out from a storage means two forward and reverse discrimination reference patterns, and then two forward and reverse discrimination reference patterns on either the front or back which are different from the front and back reference data; The comparison means compares the pattern with the comparison means, and when a matching pattern is found, a comparison stop means is provided for stopping the comparison with the remaining discrimination reference patterns of the banknote.

「作用」 この発明によれば、比較手段により紙幣と判別
された1枚目の金種コード並びに表裏基準データ
が基準情報一時記憶手段に一時記憶される。
"Operation" According to the present invention, the denomination code and front/back reference data of the first sheet determined to be a banknote by the comparison means are temporarily stored in the reference information temporary storage means.

そして、この基準情報記憶一時手段に一時記憶
された金種コード並びに表裏基準データに基づ
き、2枚目以降の紙幣のそれぞれについて、表裏
基準データと同じ表裏いずれかの正逆2つの判別
基準パターンが記憶手段から選択されて、該紙幣
の表面パターンと比較され、その後、該表裏基準
データと異なる表裏いずれかの正逆2つの判別基
準パターンが記憶手段から選択されて、該紙幣の
表面パターンと比較される。
Then, based on the denomination code and the front and back reference data temporarily stored in this reference information temporary storage means, for each of the second and subsequent banknotes, the two forward and reverse discrimination reference patterns of either the front or the back, which are the same as the front and back reference data, are determined. Selected from the storage means and compared with the surface pattern of the banknote, and then two discrimination reference patterns, either front or reverse, which are different from the front and back reference data, are selected from the storage means and compared with the surface pattern of the banknote. be done.

そして、このような紙幣の判別基準パターンと
表面パターンとは比較手段にて比較され、これら
比較により、一致したパターンがあつた時点で、
当該紙幣における残りの判別基準パターンとの比
較が中止される。
Then, the discrimination reference pattern and the surface pattern of such banknotes are compared by a comparison means, and when a matching pattern is found by these comparisons,
Comparison with the remaining discrimination reference patterns for the banknote is discontinued.

以上の作用を具体的に示せば、1枚目の紙幣が
表向きの万券であつた場合には、「万券」を示す
金種コードと「表」を示す表裏基準データとが基
準情報記憶一時手段に一時記憶される。
To express the above effect concretely, if the first bill is a ten thousand note face up, the denomination code indicating "ten thousand note" and the front and back reference data indicating "obverse" are stored as reference information. Temporarily stored in temporary means.

そして、この後、比較手段では、金種コードと
表裏基準データとに基づいて、二枚目以降のそれ
ぞれ紙幣について、まず、表向きの正逆を示す2
つの判別基準パターンが、記憶手段から読み出さ
れて該紙幣の表面パターンと比較され、更にこの
後、裏向きの正逆を示す2つの判別基準パターン
が、記憶手段から読み出されて該紙幣の表面パタ
ーンと比較されることになる。
After this, the comparison means first calculates the number of 2000, which indicates whether the front side is normal or reverse, for each of the second and subsequent banknotes based on the denomination code and the front/back reference data.
Two discrimination reference patterns are read out from the storage means and compared with the surface pattern of the banknote, and then two discrimination reference patterns indicating face-down, forward and reverse are read out from the storage means and compared with the surface pattern of the banknote. It will be compared with the surface pattern.

そして、上記のような比較手段での比較によ
り、例えば、最初の表向きの正逆を示す2判別基
準パターンとの比較により、該判別基準パターン
と紙幣の表面パターンとが一致した場合には、こ
こで判別が終了し、当該紙幣の表面パターンが、
残りの裏向きの正逆を示す2判別基準パターンと
比較されることはなく、また、最初の表向きの正
逆を示す2判別基準パターンとの比較により、該
判別基準パターンと紙幣の表面パターンとが一致
しない場合には、更に該紙幣の表面パターンが、
裏向きの正逆を示す2判別基準パターンと比較さ
れる。
Then, by comparison using the comparison means as described above, for example, when the discrimination reference pattern and the front surface pattern of the banknote coincide with each other by comparison with the first two discrimination reference patterns indicating the forward and reverse sides, this is the case. The discrimination is completed and the surface pattern of the banknote is
It is not compared with the remaining 2 discrimination reference patterns indicating the forward and reverse direction of the face-down banknote, and by comparison with the first 2 discrimination reference patterns indicating the forward and reverse direction of the face-up banknote, the discrimination reference pattern and the surface pattern of the banknote are If the banknotes do not match, the surface pattern of the banknote is
It is compared with two discrimination reference patterns indicating face-down forward and reverse.

すなわち、本発明の紙幣計数機における異種券
判別装置によれば、2枚目以降のそぞれの紙幣に
ついて、該紙幣の表面パターンを、まず、1枚目
の紙幣と同じ金種、表裏の正逆2つの判別基準パ
ターンと比較させ、ここでパターンが一致したと
の判別結果が出た場合に、以後の判別を中止し、
次の紙幣の判別に移るようにしたので、例えば、
紙幣の表裏がある程度揃ついる紙幣について、2
枚目以降の紙幣を、表あるいは裏の正逆について
の2つの判別基準パターンと比較するだけで、当
該紙幣についての判別を終了させることができ
る。
That is, according to the discriminating device for different types of bills in a bill counting machine of the present invention, for each of the second and subsequent bills, the surface pattern of the bill is first determined by determining the same denomination as the first bill and the same denomination on the front and back sides. It is compared with two forward and reverse discrimination reference patterns, and if a discrimination result is obtained that the patterns match, the subsequent discrimination is stopped,
For example, we moved on to distinguishing the next banknote.
Regarding banknotes whose front and back sides are aligned to some extent, 2.
By simply comparing the subsequent banknotes with the two discrimination reference patterns for front and reverse sides, it is possible to complete the discrimination for the banknotes.

「実施例」 以下、本発明を第1図〜第10図に示す一実施
例に基づいて説明する。
"Example" The present invention will be described below based on an example shown in FIGS. 1 to 10.

まず、第1図ないし第3図にしたがつて紙幣計
数機機構の構成を説明すれば、この計数機構は、
紙幣Sをホルダ1に載せてこのホルダ1を軸2を
中心として水平旋回させることにより、第1図実
線で示す計数位置、あるいは第1図鎖線で示す待
機位置に移動させ、ホルダ1が計数位置にあると
きに、回転筒3を軸4を中心として第1図反時計
方向に回転させながら、回転筒3上の吸引軸5を
軸6を中心として時計方向に回転させ、この吸引
軸5内に真空圧を作用させてホルダー1上の紙幣
Sを1枚ずつめくり取りながら計数を行なうとと
もに、後述する投光器から紙幣Sの表面に照射し
た光線の反射光を受光器で読取つて紙幣の判別を
行なうようにした基本構成となつている。
First, the structure of the banknote counting mechanism will be explained according to FIGS. 1 to 3.
By placing banknotes S on the holder 1 and horizontally rotating the holder 1 around the shaft 2, the banknotes S are moved to the counting position shown by the solid line in FIG. 1 or the standby position shown by the chain line in FIG. While rotating the rotary cylinder 3 in the counterclockwise direction in FIG. The banknotes S on the holder 1 are counted while being turned over one by one by applying vacuum pressure to the banknotes, and the banknotes are identified by reading the reflected light of the light rays irradiated onto the surface of the banknotes S from a projector, which will be described later, with a light receiver. The basic configuration is as follows.

前記ホルダー1には、紙幣Sを裏側(吸引軸5
の反対側)から支える台板1aが設けられ、この
台板1aの表面1bは、反射光レベルが低くなる
よう黒色系で形成されている。
The holder 1 has a banknote S on the back side (suction shaft 5
A base plate 1a is provided to support the base plate 1a from the opposite side), and the surface 1b of this base plate 1a is formed in a blackish color so as to reduce the level of reflected light.

前記回転筒3および吸引軸5の軸4,6は、第
3図に示すように中空状に形成されるとともに、
吸入管路7を介して真空ポンプ8の吸入ポート9
に接続されており、この真空ポンプ8の真空圧
が、前記吸引軸5の外周の一部に設けた開口部1
0を介して紙幣Sに作用することにより、吸引軸
5に紙幣Sが吸着されるようになつている。ま
た、前記吸入管路7の途中には圧力センサ11が
設けられており、この圧力センサ11によつて、
吸入管路7内の真空圧が紙幣を吸着し得る程度に
上昇したか否かが検出されるようになつている。
The shafts 4 and 6 of the rotary cylinder 3 and the suction shaft 5 are formed in a hollow shape as shown in FIG.
Suction port 9 of vacuum pump 8 via suction line 7
The vacuum pressure of this vacuum pump 8 is connected to the opening 1 provided in a part of the outer periphery of the suction shaft 5.
By acting on the banknotes S through the suction shaft 5, the banknotes S are attracted to the suction shaft 5. Further, a pressure sensor 11 is provided in the middle of the suction pipe line 7, and this pressure sensor 11 allows
It is detected whether the vacuum pressure within the suction pipe line 7 has risen to a level that can attract banknotes.

一方、前記真空ポンプ8の排気ポート12に
は、排気管路13が接続されており、この排気管
路13の先端には、紙幣Sの側面に排気を吹付け
て紙幣S相互の分離を容易にするための排気ノズ
ル14が設けられ、一方、排気管路13の途中に
は、紙幣の計数が行なわれていないときに排気を
放出口15に切換えて排気ノズル14からの騒音
の発生を防止するソレノイドバルブ16が設けら
れている。
On the other hand, an exhaust pipe 13 is connected to the exhaust port 12 of the vacuum pump 8, and the tip of the exhaust pipe 13 blows exhaust gas onto the sides of the banknotes S to facilitate separation of the banknotes S from each other. On the other hand, an exhaust nozzle 14 is provided in the middle of the exhaust pipe line 13 to switch the exhaust to a discharge port 15 when banknotes are not being counted to prevent the generation of noise from the exhaust nozzle 14. A solenoid valve 16 is provided.

また、前記吸引軸5のそれぞれには、第1図〜
第3図に示すように、一対の位置規制片5aが固
定されている。この位置規制片5aは、吸引軸5
の側面から突出し、かつ該吸引軸5の開口部10
を間に挾むように設けられたものであつて、開口
部10から外気が吸引されて吸引軸5に紙幣が吸
着された際に、紙幣を側方から支持して、該紙幣
の倒れあるいは折り曲がりを防止するようになつ
ている。そして、このように前記位置規制片5a
によつて、吸引軸5が吸着分離した紙幣の起立状
態を保つことにより、二重送りされているか否か
を検知する箇所(第1図において紙幣が吸着分離
された位置Sa)に、該紙幣の位置決めが行なわ
れるようになつている。
In addition, each of the suction shafts 5 has a structure shown in FIGS.
As shown in FIG. 3, a pair of position regulating pieces 5a are fixed. This position regulating piece 5a is connected to the suction shaft 5
The opening 10 of the suction shaft 5 protrudes from the side surface of the suction shaft 5.
When the outside air is sucked through the opening 10 and the bill is attracted to the suction shaft 5, it supports the bill from the side and prevents the bill from falling or folding. It is now possible to prevent In this way, the position regulating piece 5a
, the suction shaft 5 maintains the suction-separated banknote in an upright state, and the banknote is placed in the position where it is detected whether or not double feeding is being carried out (the position Sa where the banknote is suction-separated in FIG. 1). positioning is now performed.

また、前記回転筒3の外周には、磁性体からな
る作動片17が複数貼付されており、これらの作
動片17が磁気センサ18を作動させるか否かに
より各吸引軸5が待機位置(開口部10が紙幣に
正対しかつ吸引軸5内が真空ポンプ8と連通され
る位置)にあるか、あるいは開始位置(開口部1
0が紙幣に正対する直前の位置にあつて、かつ吸
引軸5内が真空ポンプ8から遮断される位置)に
あるかが検出されるようになつている。
Further, a plurality of actuation pieces 17 made of magnetic material are attached to the outer circumference of the rotary cylinder 3, and each suction shaft 5 is moved to a standby position (opening) depending on whether or not these actuation pieces 17 actuate the magnetic sensor 18. 10 is in the starting position (opening 1
0 is in the position just before directly facing the bill, and the inside of the suction shaft 5 is in a position where it is cut off from the vacuum pump 8.

なお、第3図において、符号19は回転筒3を
ベルト20を介して駆動する計数モータ、符号2
1は真空ポンプ8をベルト22を介して駆動する
ポンプモータ、符号23はホルダー1を旋回させ
るホルダーモータ、符号24Aおよび24Bは、
ホルダー1が閉位置(吸引軸5に接近した位置)
にあるか開位置(吸引軸5から離間した位置)に
あるかを検出するホルダー位置検出スイツチであ
る。
In addition, in FIG. 3, reference numeral 19 is a counting motor that drives the rotary cylinder 3 via a belt 20;
1 is a pump motor that drives the vacuum pump 8 via a belt 22; 23 is a holder motor that rotates the holder 1; 24A and 24B are
Holder 1 in closed position (position close to suction shaft 5)
This is a holder position detection switch that detects whether the holder is in the open position (a position away from the suction shaft 5).

更に、回転筒3の近傍には、セパレータ25が
設けられており、このセパレータ25は、軸26
に水平旋回自在に支持されるとともに、ばね27
によつて第1図反時計方向に付勢され、更に、バ
ツチソレノイド28に操作されて第1図時計方向
に旋回させられるようになつている。そして、こ
のセパレータ25は、後述するように異金種紙幣
を検出したときにすでにめくり取られた紙幣とま
だめくり取られていない紙幣との間に挿入されて
両者を分離させる機能を有している。
Further, a separator 25 is provided near the rotary cylinder 3, and this separator 25 is connected to the shaft 26.
The spring 27
1 in the counterclockwise direction in FIG. 1, and is further operated by the batch solenoid 28 to turn it in the clockwise direction in FIG. 1. As will be described later, the separator 25 has a function of being inserted between a banknote that has already been turned over and a banknote that has not yet been turned over and separating the two when a banknote of a different denomination is detected. There is.

次に、紙幣を束ねた帯封に確認印を押す押印機
構について第1図を参照して説明する。
Next, a stamping mechanism for stamping a confirmation stamp on a bundle of banknotes will be explained with reference to FIG. 1.

第1図において符号30で示されるものは、ホ
ルダ1に設けられた印鑑保持部材であつて、この
印鑑保持部30によつて印鑑31が矢印イ−ロ方
向に移動自在に支持され、かつ紙幣Sに対して近
接離間するように移動自在に支持されている。ま
た、前記ホルダ1の基端部には、ダイヤル32が
設けられており、このダイヤル32を回転させる
ことによつて、前記印鑑31が矢印イ−ロ方向に
移動して、印鑑31の捺印部31aが帯封Bに位
置合わせされるようになつている。
1 is a seal holding member provided in the holder 1, and the seal holding part 30 supports a seal 31 so as to be movable in the direction of the arrow E-L, and the seal holding part 30 supports the seal 31 so as to be movable in the direction of the arrow E-L. It is movably supported so as to be close to and away from S. Further, a dial 32 is provided at the base end of the holder 1, and by rotating this dial 32, the seal 31 moves in the direction of the arrow E-L, and the seal 31 is stamped on the seal 31. 31a is aligned with the band seal B.

また、ホルダ1を支持する基台上には、軸33
を中心として水平面内で回動する打撃アーム34
と、該打撃アーム34を回動させるソレノイド3
5とが設けられており、この打撃アーム34をソ
レノイド35の動作により回動させることによつ
て、該打撃アーム34の先端部が印鑑の後端部3
1bを後方から押圧して、該印鑑31の捺印部3
1aを帯封上に近接させ、これによつて帯封上に
捺印が行なわれるようにしている。
Further, on the base supporting the holder 1, there is a shaft 33.
A striking arm 34 that rotates in a horizontal plane around
and a solenoid 3 that rotates the striking arm 34.
5 is provided, and by rotating this striking arm 34 by the operation of a solenoid 35, the tip of the striking arm 34 is brought into contact with the rear end 3 of the stamp.
1b from the rear to seal the stamping part 3 of the seal 31.
1a is brought close to the band seal, thereby making it possible to stamp the band seal.

次に、前記吸引軸5によつてめくり取られた紙
幣の二重送り検出機構について第1図を参照して
説明する。
Next, a mechanism for detecting double feeding of banknotes turned over by the suction shaft 5 will be described with reference to FIG. 1.

第1図に符号37及び符号38でそれぞれ示す
ものは二重送り検出用ランプ及び受光素子(これ
ら素子によつて二重送り検知センサが構成され
る)であり、符号39で示すものは受光素子に光
を集光する集光レンズである。
In FIG. 1, reference numerals 37 and 38 respectively indicate a double feed detection lamp and a light-receiving element (these elements constitute a double-feed detection sensor), and reference numeral 39 indicates a light-receiving element. This is a condensing lens that condenses light.

前記二重送り検出用ランプ37及び受光素子3
8は共に回転筒3側に向けて設けられたものであ
つて、前記二重送り検出用ランプ37から発光さ
れた光線は、めくり取られた紙幣Saに対して交
差する方向から照射され、かつ該紙幣Saのめく
り取り部分における略中央位置に照射されるよう
になつている。
The double feed detection lamp 37 and the light receiving element 3
8 are both provided facing the rotary tube 3 side, and the light beam emitted from the double feed detection lamp 37 is irradiated from a direction crossing the turned-over banknote Sa, and The beam is irradiated to approximately the center position of the turned-up portion of the banknote Sa.

そして、このように光の照射が行なわれた紙幣
Saは、この紙幣Saを透過した光の量つまり透過
光量が受光素子38により検出され、更に、この
受光素子38が検出した透過光量に基づき二重送
りの判断がなされるようになつている。すなわ
ち、この透過光量が所定値以上であれば正常な送
り(一枚送り)と判断され、透過光量で所定値以
下であれば二重送りと判断されるようになつてい
る。
And the banknotes that were irradiated with light in this way
The amount of light transmitted through the banknote Sa, that is, the amount of transmitted light, is detected by a light receiving element 38, and further, based on the amount of transmitted light detected by this light receiving element 38, a determination of double feeding is made. That is, if the amount of transmitted light is greater than a predetermined value, normal feeding (single sheet feeding) is determined, and if the amount of transmitted light is less than a predetermined value, it is determined to be double feeding.

次に、紙幣の金種判別および表裏判別を行う判
別機構について第1図及び第2図を参照して説明
する。
Next, a discrimination mechanism for discriminating the denomination and front and back of banknotes will be explained with reference to FIGS. 1 and 2.

図において符号40で示すものは、集積された
最前面の紙幣Sbに光を照射する投光器、符号4
1で示すものは、この投光器40から紙幣Sbに
照射された光の反射光を受光する受光器(検出素
子)であつて、投光器40から発せられた光線
は、紙幣Sbの二点鎖線で示すエリアEを含む領
域に照射されるようになつている。
In the figure, the reference numeral 40 indicates a light projector that irradiates light onto the stacked frontmost banknotes Sb.
1 is a light receiver (detection element) that receives the reflected light of the light irradiated onto the banknote Sb from the projector 40, and the light beam emitted from the projector 40 is indicated by a chain double-dashed line on the banknote Sb. The area including area E is irradiated.

また、前記受光器41は、紙幣表面のパターン
に応じた電気信号を発生させるエリアセンサ42
と、このエリアセンサ42に紙幣Sbの反射光を
集光する集光レンズ43とから構成されている。
そして、前記エリアセンサ42は、ライン状のイ
メージセンサがそのラインと直交する方向に多数
配置された2次元状のセンサで後述する判別制御
回路46から発せられるトリガ信号により動作し
て、前記エリアEのスキヤニングを行ない、この
エリアEの特定位置(ラインあるいは座標)にお
ける反射光量を電気信号に変換して、紙幣表面の
パターンに応じた波形の信号を出力するようにな
つている。つまり、前記エリアセンサ42は、そ
の横方向がエリアEのX座標に対応し、また、そ
の縦方向がエリアEのY座標に対応しており、こ
のようなエリアセンサの縦横座標とエリアEの
XY座標との対応によつて、エリアEにおける表
面パターン(ラインデータ)を例えば、Y=1、
Y=3とラインを指定して読み出すことができ、
更には、読み出されたエリアデータをROM64
(後述する)に記憶されている基準表面パターン
(実施例においては以後、基準データという)と
比較して、紙幣Sbの金種判別及び表裏判別を行
うことができるようになつている(詳細は後述す
る)。
The light receiver 41 also includes an area sensor 42 that generates an electrical signal according to the pattern on the surface of the banknote.
and a condensing lens 43 that condenses reflected light from the banknote Sb onto the area sensor 42.
The area sensor 42 is a two-dimensional sensor in which a large number of line-shaped image sensors are arranged in a direction perpendicular to the line, and is operated by a trigger signal issued from a discrimination control circuit 46 to be described later. The amount of reflected light at a specific position (line or coordinate) in area E is converted into an electrical signal, and a waveform signal corresponding to the pattern on the banknote surface is output. In other words, the area sensor 42 has its horizontal direction corresponding to the X coordinate of area E, and its vertical direction corresponding to the Y coordinate of area E.
Depending on the correspondence with the XY coordinates, for example, the surface pattern (line data) in area E is Y=1,
You can read by specifying the line as Y=3,
Furthermore, the read area data is stored in the ROM64.
(Described later) It is now possible to determine the denomination and front and back of the banknote Sb by comparing it with a reference surface pattern (hereinafter referred to as reference data in the embodiment) stored in the banknote (described later). (described later).

次いで、第4図により、前記計数機構および判
別機構をそれぞれ操作する計数制御回路45およ
び判別制御回路46を説明する。
Next, with reference to FIG. 4, a counting control circuit 45 and a discrimination control circuit 46 that operate the counting mechanism and discrimination mechanism, respectively, will be explained.

つまり、計数制御回路45は、後述する計数制
御プログラム(第5図及び第6図参照)等を記憶
しているROM47と、このROM47に記憶さ
れているプログラムに従つて各種データの書込み
と読出しとを行なうRAM48と、これらを制御
するCPU49とから構成されている。更に、
CPU49には、入力側I/Oポート50および
レシーバ51を介して、計数動作開始を指示する
スタートスイツチ52、金種及び二重送り判別を
行うための検出モードスイツチ53、表裏判別を
行うための表裏モードスイツチ54が接続される
とともに、ホルダー1が閉位置にあるか開位置に
あるかを検出するホルダ位置検出センサ24Aお
よび24B、回転筒位置センサ18、圧力センサ
11及びクリアスイツチ等のその他の操作スイツ
チ55がそれぞれ接続されている。
In other words, the counting control circuit 45 has a ROM 47 that stores a counting control program (see FIGS. 5 and 6), which will be described later, and the like, and writes and reads various data according to the program stored in the ROM 47. It is composed of a RAM 48 that performs this, and a CPU 49 that controls these. Furthermore,
The CPU 49 includes, via an input side I/O port 50 and a receiver 51, a start switch 52 for instructing the start of counting operation, a detection mode switch 53 for discriminating the denomination and double feed, and a detection mode switch 53 for discriminating front and back sides. The front/back mode switch 54 is connected, and other devices such as holder position detection sensors 24A and 24B, rotary cylinder position sensor 18, pressure sensor 11, clear switch, etc., which detect whether the holder 1 is in the closed position or the open position, are connected. Operation switches 55 are connected to each.

なお、スタートスイツチ52は、この一実施例
ではホルダー1に設けた押ボタン60(第1図参
照)から構成されているが、例えば、ホルダー1
に紙幣Sが装填されたことを検出するセンサ(図
示略)をスタートスイツチ52として使用しても
よい。
In this embodiment, the start switch 52 is composed of a push button 60 (see FIG. 1) provided on the holder 1.
A sensor (not shown) that detects that banknotes S are loaded may be used as the start switch 52.

また、前記CPU49には、出力側I/Oポー
ト61およびドライバ62を介して、ソレノイド
(捺印ソレノイド)35、二重送り検出用ランプ
37あるいは投光器40とからなるランプ、ホル
ダーモータ23、計数モータ19、ポンプモータ
21、ソレノイドバルブ16、バツチソレノイド
28、および紙幣計数機の操作パネル(図示略)
などに設けられて紙幣の枚数、異常の有無等を表
示する表示部63がそれぞれ接続されている。
Further, the CPU 49 is connected to a solenoid (printing solenoid) 35, a lamp consisting of a double feed detection lamp 37 or a projector 40, a holder motor 23, and a counting motor 19 via an output side I/O port 61 and a driver 62. , pump motor 21, solenoid valve 16, batch solenoid 28, and bill counter operation panel (not shown)
A display section 63 is connected to the display section 63 for displaying the number of banknotes, presence or absence of an abnormality, etc.

一方、前記判別制御回路46は、判別制御プロ
グラム(第7図及び第8図参照)等を記憶してい
るROM(記憶手段)64と、このROM64に記
憶されているプログラムに従つて各種データの書
き込みと読み出しとを行うRAM65と、これら
を制御するCPU66とから構成されている。更
に、前記CPU66には、出力用I/Oポート7
0及び駆動回路71を介してエリアセンサ34が
接続され、このエリアセンサ34の出力が増幅器
72、A/Dコンバータ73、入力側I/Oポー
ト74を介して前記CPU66に入力されるよう
になつている。
On the other hand, the discrimination control circuit 46 has a ROM (storage means) 64 that stores discrimination control programs (see FIGS. 7 and 8), etc., and stores various data according to the programs stored in the ROM 64. It is composed of a RAM 65 that performs writing and reading, and a CPU 66 that controls these. Furthermore, the CPU 66 has an output I/O port 7.
0 and a drive circuit 71, and the output of this area sensor 34 is input to the CPU 66 via an amplifier 72, an A/D converter 73, and an input side I/O port 74. ing.

なお、前記駆動回路71からエリアセンサ34
に供給される駆動信号は、X軸駆動用信号とY軸
駆動用信号とからなり、これらX軸駆動用信号と
Y軸駆動用信号の出力によつて紙幣のエリアEに
おける特定位置の表面パターン(エリアデータ)
を読み出すようになつている。そして、このよう
なエリアEにおける表面パターンのデータを取り
出す際には、まず、Y軸駆動用信号を出力してエ
リアE(第2図参照)のY座標を決定してから、
X軸駆動用信号を出力してエリアEのX座標を決
定するようにすれば良い。例えば、Yを1に設定
してエリアEにおけるデータをラインデータ
(X、1)として読み出し、更に、Yを3に設定
してエリアEにおけるデータをラインデータ
(X、3)として読み出し、これら読み出された
複数のラインデータ(X、1)、(X、3)等を
RAM65に記憶されている基準データと比較す
るようにすれば良い(なお、駆動用信号のX軸及
びY軸は第2図に示すエリアEのX軸及びY軸に
それぞれ対応している)。
Note that from the drive circuit 71 to the area sensor 34
The drive signal supplied to the banknote is composed of an X-axis drive signal and a Y-axis drive signal, and by outputting these X-axis drive signals and Y-axis drive signals, the surface pattern at a specific position in area E of the banknote is determined. (area data)
is now read out. When extracting surface pattern data in area E, first output a Y-axis drive signal to determine the Y coordinate of area E (see Figure 2).
The X coordinate of area E may be determined by outputting an X-axis drive signal. For example, set Y to 1 and read the data in area E as line data (X, 1), set Y to 3 and read the data in area E as line data (X, 3), and read these data. The output multiple line data (X, 1), (X, 3), etc.
The data may be compared with reference data stored in the RAM 65 (the X-axis and Y-axis of the drive signal correspond to the X-axis and Y-axis of area E shown in FIG. 2, respectively).

一方、前記A/Dコンバータ73には、エリア
センサ34と同様に、増幅器78を介して二重送
り検知センサ37,38が接続されている。ま
た、これら増幅器72,78とA/Dコンバータ
73との間には、出力側I/Oポート70からの
切換信号によつて動作するアナログスイツチ7
9,80がそれぞれ設けられており、これらアナ
ログスイツチ79,80によつて、エリアセンサ
34あるいは二重送り検知センサ37,38のい
ずれか一方の出力信号がA/Dコンバータ73に
送られるようになつている。
On the other hand, similar to the area sensor 34, double feed detection sensors 37 and 38 are connected to the A/D converter 73 via an amplifier 78. Further, an analog switch 7 operated by a switching signal from the output side I/O port 70 is connected between the amplifiers 72 and 78 and the A/D converter 73.
These analog switches 79 and 80 allow the output signal of either the area sensor 34 or the double feed detection sensors 37 and 38 to be sent to the A/D converter 73. It's summery.

また、前記計数制御回路45のCPU49と判
別制御回路46のCPU66は、データ転送用
I/Oポート81,82を介して相互に接続され
ており、相互にデータを変換して連動動作し得る
ように構成されている。
Further, the CPU 49 of the counting control circuit 45 and the CPU 66 of the discrimination control circuit 46 are connected to each other via data transfer I/O ports 81 and 82 so that they can mutually convert data and operate in conjunction with each other. It is composed of

以下、第5図及び第9図に従つて、前記判別制
御回路45のROM47に記憶されたプログラム
の内容を紙幣計数機の動作とともに説明する。
Hereinafter, the contents of the program stored in the ROM 47 of the discrimination control circuit 45 will be explained along with the operation of the banknote counter with reference to FIGS. 5 and 9.

なお、第5図におけるSNは以下の説明におけ
るステツプNを示し、第9図におけるTnは以下
の説明におけるタイミングTnを示すものとする。
Note that SN in FIG. 5 indicates step N in the following explanation, and Tn in FIG. 9 indicates timing Tn in the following explanation.

(a)◇計数制御動作1(第5図及び第9図参照) <ステツプ1> 電源投入 <ステツプ2> ホルダ位置検出センサ24A,24Bの出力信
号により、ホルダ1が開位置にあるか否かを判断
し、NOの場合にはホルダーモータ23を駆動し
てホルダー1を開位置に設定し(ステツプ3)、
YESの場合には次のステツプ4へ進む。
(a) ◇ Counting control operation 1 (see Figures 5 and 9) <Step 1> Turn on the power <Step 2> Based on the output signals of the holder position detection sensors 24A and 24B, check whether the holder 1 is in the open position or not. If the answer is NO, drive the holder motor 23 to set the holder 1 to the open position (step 3).
If YES, proceed to the next step 4.

<ステツプ4> 回転筒位置センサ18からの出力の有無によ
り、吸引軸5が待機位置(すなわち、吸引軸5が
紙幣に正対する位置)にあるか否かを判断し、
NOの場合には、計数モータ19を低速駆動して
吸引軸5を待機位置に設定し(ステツプ5)、
YESの場合には次のステツプ6へ進む。
<Step 4> Based on the presence or absence of an output from the rotary cylinder position sensor 18, it is determined whether the suction shaft 5 is in the standby position (that is, the position where the suction shaft 5 directly faces the banknotes),
If NO, the counting motor 19 is driven at low speed and the suction shaft 5 is set to the standby position (step 5).
If YES, proceed to the next step 6.

<ステツプ6> モードの設定操作がなされているか否かを判断
し、YESの場合には、各種のモード設定動作、
例えば捺印モードの操作設定により捺印モードを
記憶し(ステツプ50)、また、NOの場合には次
のステツプ7へ進む。
<Step 6> Determine whether or not mode setting operations have been performed. If YES, various mode setting operations,
For example, the stamping mode is memorized by the operation setting of the stamping mode (step 50), and in the case of NO, the process proceeds to the next step 7.

<ステツプ7> スタートスイツチ52からスタート信号(ST)
が出力されたか否かを判断し、NOの場合には前
記ステツプ6に戻り、YESの場合には、次のス
テツプ8に進む(タイミングT1)。
<Step 7> Start signal (ST) from start switch 52
It is determined whether or not the output has been output, and if NO, the process returns to step 6, and if YES, the process proceeds to the next step 8 (timing T 1 ).

<ステツプ8> 検出モードスイツチ53がONとなつているか
否かを判断し、YESの場合には、二重送り検出
ランプ37及び投光器40を点灯し(ステツプ
9)、また、NOの場合は、次のステツプ10に進
み計数動作を開始する。
<Step 8> Determine whether the detection mode switch 53 is ON or not. If YES, double feed detection lamp 37 and floodlight 40 are turned on (Step 9); if NO, Proceed to the next step 10 and start counting.

<ステツプ10> ホルダー位置センサ24A、24Bの出力によ
り、ホルダー1が閉位置にあるか否かを判断し
て、NOの場合には、ホルダモータ駆動信号
(HMD)が出力されて、ホルダーモータ23を
駆動してホルダー1を閉位置に設定し(ステツプ
11)、YESの場合には次のステツプ12へ進む(タ
イミングT2)。
<Step 10> Based on the outputs of the holder position sensors 24A and 24B, it is determined whether the holder 1 is in the closed position or not. If NO, a holder motor drive signal (HMD) is output and the holder motor 23 is to set holder 1 to the closed position (step
11), if YES, proceed to the next step 12 (timing T 2 ).

<ステツプ12> ポンプ駆動信号(PMP)が出力されて、ポン
プモータ21を駆動するとともに、ソレノイドバ
ルブ駆動信号(SV)が出力されて、ソレノイド
バルブ16を排気ノズル14側に切換える。
<Step 12> A pump drive signal (PMP) is output to drive the pump motor 21, and a solenoid valve drive signal (SV) is output to switch the solenoid valve 16 to the exhaust nozzle 14 side.

<ステツプ13> 吸引軸5が開始位置にあるか否かを判別し、
NOの場合には、計数モータ駆動信号(CMD)
が出力されて、計数モータ19を低速で逆方向に
駆動して吸引軸5を開始位置に設定し(ステツプ
14)、また、YESの場合には、次のステツプへ進
む(タイミングT3)。
<Step 13> Determine whether the suction shaft 5 is at the starting position,
If NO, count motor drive signal (CMD)
is output, the counting motor 19 is driven in the reverse direction at low speed to set the suction shaft 5 to the starting position (step
14), and in the case of YES, proceed to the next step (timing T 3 ).

<ステツプ15> 圧力判定信号(VSW)が出力されたか否かを
判別し、すなわち、吸入管路7内の真空圧が所定
の値まで上昇したか否かを判別して、NOの場合
には、前記タイミングT3から所定時間(真空圧
上昇に必要とされる時間)経過したか否かを判別
し(ステツプ16)、このステツプ16がNOの場合
には、ステツプ15へ戻り、また、ステツプ16が
YESの場合には、後述する吸引不良処理ルール
(第5図Aに鎖線Aで示す)へ進む。
<Step 15> Determine whether or not the pressure judgment signal (VSW) has been output, that is, determine whether the vacuum pressure in the suction pipe line 7 has increased to a predetermined value. , it is determined whether a predetermined time (the time required for increasing the vacuum pressure) has elapsed since the timing T3 (step 16), and if step 16 is NO, the process returns to step 15, and 16 is
In the case of YES, the process proceeds to the suction failure processing rule (indicated by chain line A in FIG. 5A), which will be described later.

一方、このステツプ15がYESの場合には次の
ステツプ17へ進む(タイミングT4)。
On the other hand, if this step 15 is YES, the process advances to the next step 17 (timing T 4 ).

<ステツプ17> 前記圧力判別信号(VSW)が出力されたとき
(ステツプ15)に、計数モータ駆動信号(CMD)
が出力されて、回転筒3および吸引軸5の回転を
開始する。
<Step 17> When the pressure discrimination signal (VSW) is output (step 15), the counting motor drive signal (CMD) is output.
is output, and the rotating barrel 3 and suction shaft 5 start rotating.

<ステツプ18> 吸引軸5が紙幣を一枚ずつめくり取りながら計
数を行ない、回転筒位置センサ18が信号
(SNS)を発生するたびに、エリアセンサ42の
検出データを取り出すためのトリガー信号
(TRG)が出力される。また、このとき計数信号
(CNT)が出力されて、紙幣の計数(あるいは判
別)を行なう(タイミングT6〜Tm)。
<Step 18> The suction shaft 5 counts the bills while flipping them one by one, and every time the rotary cylinder position sensor 18 generates a signal (SNS), a trigger signal (TRG) is generated to retrieve the detection data of the area sensor 42. ) is output. Also, at this time, a counting signal (CNT) is output to count (or discriminate) the banknotes (timings T6 to Tm).

<ステツプ19> 圧力判定信号(VSW)が出力されているか否
か、すなわち、めくり取るべき紙幣がなくなつて
吸入管路7内の真空圧が上昇できない状態
(OFF)となつているか否かを判別し、OFFとな
つた(タイミングTm+1)ことを条件として次の
ステツプ20へ進む。
<Step 19> Check whether the pressure judgment signal (VSW) is output, that is, whether there are no more bills to be turned over and the vacuum pressure in the suction pipe 7 cannot rise (OFF). Proceed to the next step 20 on the condition that it is determined and turned OFF (timing Tm +1 ).

<ステツプ20> 計数モータ19、ポンプモータ21を停止す
る。
<Step 20> Stop the counting motor 19 and pump motor 21.

<ステツプ21> ステツプ20によつて回転筒3の停止動作と並行
して、ホルダのオープン信号が出力されたか否か
の判別を行い、YESの場合にはステツプ2に戻
り(タイミングTn)、NOの場合にはこのステツ
プ21で待機する。そして、ステツプ2に戻つた場
合には(タイミングTn)、ホルダー1が開になつ
たか否かの判別が行なわれ、ホルダー1が開とな
るまでホルダーモータ駆動信号(HMD)が出力
される。
<Step 21> In parallel with the stopping operation of the rotary cylinder 3 in step 20, it is determined whether or not a holder open signal has been output, and if YES, the process returns to step 2 (timing Tn), and NO is output. In this case, the process waits at step 21. When the process returns to step 2 (timing Tn), it is determined whether or not the holder 1 is opened, and the holder motor drive signal (HMD) is output until the holder 1 is opened.

そして、ホルダーが開(ステツプ4;タイミン
グTn+1)となると、モータ駆動信号(HMD)が
OFFとなると同時に計数モータ駆動信号
(CMD)が出力されて、計数モータ19を駆動す
る。そして、この計数モータ19の駆動によつて
吸引軸5が待機位置にまで移動して来ると、回転
筒位置センサ18の出力がONとなり、これと同
時に計数モータ19が停止されられる(タイミン
グTn+2)。
Then, when the holder opens (step 4; timing Tn +1 ), the motor drive signal (HMD) is activated.
At the same time as turning off, a counting motor drive signal (CMD) is output to drive the counting motor 19. When the suction shaft 5 moves to the standby position by driving the counting motor 19, the output of the rotary cylinder position sensor 18 turns ON, and at the same time, the counting motor 19 is stopped (timing Tn + 2 ).

このようにして吸引軸5が待機位置に停止させ
られると、次回のスタート信号(ステツプ7)に
よつて、直ちに計数を開始し得る状態となつて、
次の準備が完了する。
When the suction shaft 5 is stopped at the standby position in this way, it becomes ready to start counting immediately by the next start signal (step 7).
The next preparation is complete.

次いで、吸引、不良処理ルートAについて説明
する。
Next, the suction and defect processing route A will be explained.

すなわち、計数モータ19のブレーキの動作不
良などの原因によつて回転筒3が所定位置に停止
することができない場合には、吸入管路7の内部
が外部から密閉されないため、一定時間以上経過
しても真空圧が上昇せず、したがつて、圧力判定
信号がONとなることができない(ステツプ16)。
In other words, if the rotary cylinder 3 cannot be stopped at a predetermined position due to a malfunction of the brake of the counting motor 19, etc., the inside of the suction pipe 7 is not sealed from the outside, so that the rotation cylinder 3 cannot be stopped for a certain period of time or more. However, the vacuum pressure does not increase even when the pressure is turned on, and therefore the pressure judgment signal cannot turn ON (step 16).

このような場合には、計数モータ19を定速で
逆転させて回転筒3の位置を調整し(ステツプ
30)、ステツプ13ないし15を繰り返す。そして、
この動作をN回繰り返しても真空圧が上昇しない
場合(ステツプ31)には、ポンプモータ21を停
止させ(ステツプ32)、アラーム信号を出力し
(ステツプ33)、その後、機械を停止させる(ステ
ツプ34)。
In such a case, adjust the position of the rotary cylinder 3 by rotating the counting motor 19 in reverse at a constant speed (step
30), repeat steps 13 to 15. and,
If the vacuum pressure does not increase even after repeating this operation N times (step 31), the pump motor 21 is stopped (step 32), an alarm signal is output (step 33), and then the machine is stopped (step 31). 34).

次に、CPU49における計数処理フローにつ
いて第6図を参照して説明し、更に、CPU66
における判別処理フローについて第7図及び第8
図を参照して説明する。
Next, the counting processing flow in the CPU 49 will be explained with reference to FIG.
Figures 7 and 8 regarding the determination processing flow in
This will be explained with reference to the figures.

◇計数制御動作2(第6図参照) <ステツプ100> スタート <ステツプ101> 検出モードスイツチ53がONとなつているか
否か、すなわち、紙幣表面のパターンを読取る必
要があるか否かを判断し、YESの場合には、判
別ON信号及び表裏モード信号(但し、表裏モー
ドスイツチ54がONのときのみ、以下同じ)を
出力し(ステツプ102)、更にこれら紙幣判別ON
信号及び表裏モード信号を第7図に示す判別ルー
チンに供給する(矢印で示す)。
◇Counting control operation 2 (see Figure 6) <Step 100> Start <Step 101> Determine whether the detection mode switch 53 is turned on, that is, whether it is necessary to read the pattern on the banknote surface. , in the case of YES, outputs a discrimination ON signal and a front/back mode signal (however, only when the front/back mode switch 54 is ON, the same applies hereinafter) (step 102), and further turns these banknote discrimination ON.
The signal and the front/back mode signal are supplied to the discrimination routine shown in FIG. 7 (indicated by the arrow).

また、検出モードスイツチ53がOFFとなつ
ている場合には、計数のみを行うと判断して、次
のステツプ103に進む。
If the detection mode switch 53 is OFF, it is determined that only counting is to be performed, and the process proceeds to the next step 103.

<ステツプ103> 回転筒位置センサ出力信号(SNS)の立上が
りを検出し、YESとなつた場合に次のステツプ
104へ進む。
<Step 103> Detects the rise of the rotary cylinder position sensor output signal (SNS), and if it becomes YES, proceed to the next step.
Proceed to 104.

<ステツプ104> 前記ステツプ103と同一のタイミングでトリガ
ー信号(TRG)を立上がらせるとともに、この
トリガー信号(TRG)の出力を第7図に示す判
別ルーチンに供給する(矢印で示す)。
<Step 104> The trigger signal (TRG) is raised at the same timing as step 103, and the output of this trigger signal (TRG) is supplied to the discrimination routine shown in FIG. 7 (indicated by an arrow).

<ステツプ105> 回転筒位置センサ出力信号(SNS)のON−
OFF状態を検出し、ON(YES)の場合には、圧
力判定信号(VSW)がONとなつているか否か
を判別し(ステツプ106)、このステツプ106が
NOの場合に、判別OFF信号を出力し(ステツプ
150)、かつ、計数モータ19、ポンプモータ21
の駆動及び二重送り検出用ランプ37、投光器4
0の点灯を停止する(ステツプ151)。また、前記
ステツプ106において、圧力判定信号(VSW)の
出力がある(YES)の場合には、次のステツプ
107へ進む。
<Step 105> Rotating tube position sensor output signal (SNS) ON-
The OFF state is detected, and if it is ON (YES), it is determined whether or not the pressure judgment signal (VSW) is ON (step 106).
If NO, a discrimination OFF signal is output (step
150), and counting motor 19, pump motor 21
drive and double feed detection lamp 37, floodlight 4
The lighting of 0 is stopped (step 151). Further, in step 106, if the pressure judgment signal (VSW) is output (YES), the next step is performed.
Proceed to 107.

<ステツプ107> 検出モードスイツチ53がONとなつているか
否かを判断し、YESの場合にはステツプ108に進
み、NOの場合にはステツプ109に進む。
<Step 107> It is determined whether the detection mode switch 53 is turned on or not. If YES, proceed to step 108; if NO, proceed to step 109.

<ステツプ108> 異金種が検出された場合、表裏判別モードの時
に表裏不一致が検出された場合、全ての基準パタ
ーンと一致せず判別異常と判断された場合、ある
いは二重吸着が検出された場合に、判別処理フロ
ーから出力されるエラー信号(矢印で示す)の
入力があるか否かを判断し、YESの場合にはバ
ツチソレノイド28を動作させて計数を中断し、
また、NOの場合にはステツプ109に進む。
<Step 108> If a different denomination is detected, if a discrepancy between the front and back sides is detected in the front/back discrimination mode, if the pattern does not match all the reference patterns and is judged to be a discrimination error, or if double adsorption is detected. In this case, it is determined whether or not there is an input of an error signal (indicated by an arrow) outputted from the determination processing flow, and if YES, the batch solenoid 28 is operated to interrupt counting;
If the answer is NO, proceed to step 109.

<ステツプ109> バツチモードがONとなつているか否かを判断
し、NOの場合にはステツプ105に戻り、YESの
場合にはステツプ110に進む。
<Step 109> Determine whether the batch mode is ON or not. If NO, return to step 105; if YES, proceed to step 110.

<ステツプ110> 紙幣の枚数判別を行い、紙幣の計数値が所定枚
数に満たないと判断された場合(NO)には、ス
テツプ105に戻り、また、紙幣の計数値が所定枚
数に達したと判断された場合(YES)には、バ
ツチソレノイド28をONとして、計数紙幣を未
計数紙幣から分離した後(ステツプ111)に、判
別OFF信号を出力して(ステツプ112)(この判
別OFF信号は矢印に示すように判別処理フロ
ーに供給される)、計数モータ19、ポンプモー
タ21の駆動及び二重送り検出用ランプ37、投
光器40の点灯を停止する(ステツプ113)。そし
て、次のステツプ114に進む。
<Step 110> The number of banknotes is determined, and if it is determined that the banknote count is less than the predetermined number (NO), the process returns to step 105, and if the banknote count has reached the predetermined number. If it is determined (YES), the batch solenoid 28 is turned ON to separate counted banknotes from uncounted banknotes (step 111), and then a discrimination OFF signal is output (step 112) (this discrimination OFF signal is supplied to the discrimination processing flow as shown by the arrow), and the driving of the counting motor 19 and the pump motor 21 and the lighting of the double feed detection lamp 37 and the floodlight 40 are stopped (step 113). Then, proceed to the next step 114.

<ステツプ114> 上記したバツチ処理時、もしくはエラー検出時
に動作したセパレータ25の作動を解除するクリ
ア操作が行なわれたか否かを判断し、YESの場
合にステツプ115に進む。
<Step 114> It is determined whether or not a clear operation has been performed to deactivate the separator 25 that was activated during the batch processing or error detection described above, and if YES, the process proceeds to step 115.

<ステツプ115> ホルダー1に対しオープン信号(ステツプ21参
照)を出力して、このフローが終了する。
<Step 115> An open signal (see step 21) is output to holder 1, and this flow ends.

次に、ステツプ120〜ステツプ121について説明
する。
Next, steps 120 to 121 will be explained.

<ステツプ120> 前記ステツプ105において、回転筒位置センサ
出力信号(SNS)のON−OFF状態を検出し、
ONの状態であれば、前記ステツプ105〜ステツ
プ109(またはステツプ110)のルーチンを回り続
け、OFF状態となつたところで、このステツプ
120へ移行する。そして、前記ステツプ106と同様
に、圧力判定信号(VSW)がONとなつている
か否かを判別し、この判別がNOの場合には、前
記ステツプ106と同様に次のステツプ150へ進み、
判別OFF信号を出力する(ステツプ150)ととも
に、計数モータ19、ポンプモータ21の駆動及
び二重送り検出用ランプ37、投光器40の点灯
を停止する(ステツプ151)。また、前記圧力判定
信号(VSW)の出力がYESの場合には、ステツ
プ121に進む。
<Step 120> In step 105, the ON-OFF state of the rotary cylinder position sensor output signal (SNS) is detected,
If it is in the ON state, the routine from step 105 to step 109 (or step 110) continues, and when it becomes OFF, this step is executed.
Move to 120. Then, similarly to step 106, it is determined whether or not the pressure judgment signal (VSW) is ON, and if this determination is NO, the process proceeds to the next step 150, as in step 106,
A discrimination OFF signal is output (step 150), and the driving of the counting motor 19 and pump motor 21 and the lighting of the double feed detection lamp 37 and the floodlight 40 are stopped (step 151). Further, if the output of the pressure determination signal (VSW) is YES, the process proceeds to step 121.

<ステツプ121> 回転筒位置センサ出力信号(SNS)がONとな
つているか否かを再度判別し、NOの場合にはス
テツプ120に戻り、YESの場合には、トリガー信
号(TRG)を出力して(ステツプ122)(この
TRGは矢印に示すように判別処理フローに供
給される)、カウンタを1計数した後(ステツプ
123)ステツプ105に戻る。
<Step 121> Determine again whether the rotary cylinder position sensor output signal (SNS) is ON or not. If NO, return to step 120; if YES, output the trigger signal (TRG). (Step 122) (This
TRG is supplied to the discrimination processing flow as shown by the arrow), and after counting the counter (TRG is supplied to the discrimination processing flow as shown by the arrow),
123) Return to step 105.

次に、ステツプ150〜ステツプ165について説明
する。
Next, steps 150 to 165 will be explained.

<ステツプ150> 前述したようにステツプ106、120において、圧
力判定信号(VSW)の出力が検出されない場合、
例えば待機位置にある紙幣が吸着されない、ある
いは計数されるべき紙幣がない場合等には、判別
OFF信号が出力され、かつ、計数モータ19、
ポンプモータ21の駆動及び二重送り検出用ラン
プ37、投光器40の点灯を停止させた後(ステ
ツプ151)、ステツプ152に進む。
<Step 150> As mentioned above, if the output of the pressure judgment signal (VSW) is not detected in steps 106 and 120,
For example, if the banknotes in the standby position are not picked up or there are no banknotes to be counted, the
The OFF signal is output, and the counting motor 19,
After driving the pump motor 21 and stopping the lighting of the double feed detection lamp 37 and the floodlight 40 (step 151), the process proceeds to step 152.

<ステツプ152> 検出モードスイツチ53がONとなつているか
否かを判断し、NOの場合にはステツプ160に進
み、YESの場合にはステツプ153に進む。
<Step 152> Determine whether or not the detection mode switch 53 is turned on. If NO, proceed to step 160; if YES, proceed to step 153.

<ステツプ153> 一定の時間に亙つて(ステツプ154)、判別ルー
チンからエンド信号が出力(矢印で示す)され
なかつた場合、例えば、計数すべき紙幣がセツト
されているにも拘わらず、紙幣の吸着が行なわれ
なかつた場合等には、記憶部(RAM48あるい
はCPU49)の所定のエリアに残留エラーを示
すフラグを立てた後(ステツプ155)、次のステツ
プ114に進む。
<Step 153> If the discrimination routine does not output an end signal (indicated by an arrow) for a certain period of time (step 154), for example, even though the banknotes to be counted have been set, If suction is not performed, etc., a flag indicating a residual error is set in a predetermined area of the storage section (RAM 48 or CPU 49) (step 155), and then the process proceeds to the next step 114.

また、第7図の判別処理フローからエンド信号
が出力された場合には次のステツプ160に進む。
Further, if an end signal is output from the determination processing flow shown in FIG. 7, the process advances to the next step 160.

<ステツプ160> モード設定が枚数チエツクモードになつている
か否かを判断し、NOの場合にはステツプ164に
進み、YESの場合にはステツプ161に進む。
<Step 160> It is determined whether the mode setting is set to the number of sheets check mode. If NO, proceed to step 164; if YES, proceed to step 161.

<ステツプ161> 枚数チエツクモードにおいて設定された枚数
に、計数された紙幣の計数値が一致しているか否
かを判断し、NOの場合には記憶部の所定のエリ
アに不一致エラーを示すフラグを立て(ステツプ
166)、ステツプ114に進む。また、設定された枚
数と計数値とが一致した場合(YES)には、次
のステツプ162に進む。
<Step 161> It is determined whether the counted value of the banknotes matches the number set in the number of banknotes check mode, and if NO, a flag indicating a mismatch error is placed in a predetermined area of the storage unit. Step
166), proceed to step 114. Further, if the set number of sheets and the counted value match (YES), the process advances to the next step 162.

<ステツプ162> モード設定が捺印モードにセツトされているか
否かを判断し、YESの場合には捺印ソレノイド
35を動作させて、帯封に捺印し(ステツプ
163)、また、NOの場合には次のステツプ164に
進む。
<Step 162> Determine whether or not the mode setting is set to the stamping mode. If YES, operate the stamping solenoid 35 to stamp the seal (step 162).
163), and if NO, proceed to the next step 164.

<ステツプ164> 加算モードにセツトされているか否かを判断
し、YESの場合には、先に計数された紙幣の計
数結果を加算し、その加算結果を記憶部に記憶さ
せ、また、NOの場合には、ステツプ115に進み、
計数処理が終了する。
<Step 164> Determine whether or not the addition mode is set. If YES, add the counting results of the previously counted banknotes and store the addition result in the storage unit. If so, proceed to step 115;
Counting process ends.

次に、CPU66における判別処理フローにつ
いて第7図、第8図及び第10図のタイムチヤー
トを参照して説明する。
Next, the determination processing flow in the CPU 66 will be explained with reference to the time charts of FIGS. 7, 8, and 10.

<ステツプ200> スタート <ステツプ201> 計数ルーチンからトリガー信号(TRG)(矢印
で示す)が出力されたか否かを判断し、YES
の場合に次のステツプ202に進む。
<Step 200> Start <Step 201> Determine whether the trigger signal (TRG) (indicated by the arrow) is output from the counting routine and select YES.
In this case, proceed to the next step 202.

<ステツプ202> 計数ルーチンから判別ON信号(矢印で示
す)が出力されたか否かを判断し、NOの場合に
はステツプ201に戻り、YESの場合には、第4図
に示すアナログスイツチ80を選択して、二重送
り検知センサ37、38の出力を増幅器78、
A/Dコンバータ73を介して取り込み、RAM
65に記憶した後(ステツプ203)、ステツプ204
に進む。
<Step 202> It is determined whether or not the determination ON signal (indicated by the arrow) has been output from the counting routine. If NO, the process returns to step 201. If YES, the analog switch 80 shown in FIG. 4 is activated. Select the output of the double feed detection sensors 37 and 38 to the amplifier 78,
Capture via A/D converter 73, RAM
65 (step 203), step 204
Proceed to.

<ステツプ204> ステツプ214、ステツプ222、ステツプ238にお
いてセツトされたエラーコードに基づき、異金種
の混入有り、表裏不一致有り、判別異常有り(異
常紙幣の混入)か否かを判断し(これら異金種の
混入、表裏不一致、判別異常の検出についてはス
テツプ213、221、237で述べる)、YESである場
合にはエラー信号及びエラーコードを出力して、
そのエラー内容を表示部63に表示した後(ステ
ツプ205)、ステツプ201に戻る。なお、前記ステ
ツプ205で出力されたエラー信号は矢印で示す
ように第6図の計数ルーチンのステツプ108に供
給される。
<Step 204> Based on the error codes set in step 214, step 222, and step 238, it is determined whether there is a mixture of different denominations, there is a discrepancy between the front and back sides, and there is an abnormality in discrimination (mixture of abnormal banknotes). Detection of mixed denominations, discrepancies between front and back sides, and discrimination abnormalities will be described in steps 213, 221, and 237).If YES, an error signal and error code are output.
After displaying the error details on the display section 63 (step 205), the process returns to step 201. The error signal output at step 205 is supplied to step 108 of the counting routine in FIG. 6 as indicated by the arrow.

また、異金種の混入、表裏不一致、判別異常が
無い場合(NO)には次のステツプ206に進む。
Further, if there is no mixing of different denominations, no discrepancy between the front and back sides, and no discrimination abnormality (NO), the process proceeds to the next step 206.

なお、最初のトリガー信号(TRG)出力時に
は、ステツプ214、222、238を通つておらず、判
別もなされていないから、最初のステツプ204は
常にNOでステツプ206に進む。
Note that when the first trigger signal (TRG) is output, steps 214, 222, and 238 have not been passed and no determination has been made, so the first step 204 is always NO and the process proceeds to step 206.

<ステツプ206> ステツプ203で二重送り検知センサ37、38
から取り込んだ検出データとステツプ217(後述す
る)でセツトされた判別基準となる二重比較レベ
ルとに基づいて、紙幣が二重吸着がされたか否か
を判断し、YESの場合にはエラー信号及びエラ
ーコードを出力して、そのエラー内容を表示部6
3に表示した後(ステツプ207)、ステツプ201に
戻る。
<Step 206> In step 203, double feed detection sensors 37 and 38
Based on the detection data taken in from the bank and the double comparison level, which serves as a discrimination standard, set in step 217 (described later), it is determined whether or not the banknote has been double-adsorbed, and if YES, an error signal is sent. and an error code, and the error details are displayed on the display section 6.
3 (step 207), the process returns to step 201.

なお、前記ステツプ207で出力されたエラー信
号は矢印で示すように第6図の計数ルーチンの
ステツプ108に供給される。
The error signal output at step 207 is supplied to step 108 of the counting routine in FIG. 6 as indicated by the arrow.

また、NOの場合つまり二重吸着が無と判断さ
れた場合には次のステツプ208に進む。
If NO, that is, if it is determined that there is no double adsorption, the process proceeds to the next step 208.

なお、ステツプ204と同様に最初のトリガー信
号(TRG)出力時には、二重吸着を判別すべき
紙幣Saは第1図の位置に存在せず、また、基準
となる二重比較レベルはセツトされていないの
で、このステツプ206は常にNOでステツプ208に
進む。
Note that, as in step 204, when the first trigger signal (TRG) is output, the banknote Sa for which double adsorption should be determined does not exist in the position shown in Figure 1, and the reference double comparison level has not been set. Therefore, this step 206 is always NO and the process proceeds to step 208.

<ステツプ208> 第4図に示すアナログスイツチ79を選択し、
エリアセンサ34の出力を増幅器72、A/Dコ
ンバータ73を介してRAM65に記憶すること
により、エリアEにおけるエリアデータ(Nライ
ンにおけるデータ)の取り込みが行なわれる。な
お、このエリアデータの取り込みは、第8図に示
すようなフローに基づいて行なわれる。
<Step 208> Select the analog switch 79 shown in FIG.
By storing the output of the area sensor 34 in the RAM 65 via the amplifier 72 and the A/D converter 73, area data in the area E (data on the N line) is captured. Note that this area data is taken in based on the flow shown in FIG.

つまり、取り込み信号が出力された場合(ステ
ツプ300)に、Yを0、Xを0に設定した後(ス
テツプ301)、次のステツプ302に進む。そして、
このステツプ302では、必要とするNラインのデ
ータ(ラインデータ)の出力が終了したか否かを
判断し、YESの場合には判別開始信号が出力さ
れて(ステツプ303)、第7図のメインルーチンに
戻る。また、ステツプ302において、NOの場合
には指定されたNラインのデータがステツプ312
で出力されるまで、ステツプ304〜311をループ
し、該データの出力が行なわれた時点で前述した
ようにステツプ303に進む。
That is, when a capture signal is output (step 300), after setting Y to 0 and X to 0 (step 301), the process proceeds to the next step 302. and,
In this step 302, it is determined whether or not the output of the necessary N lines of data (line data) has been completed.If YES, a determination start signal is output (step 303), and the main Return to routine. If the answer is NO at step 302, the data of the specified N line is sent to step 312.
Steps 304 to 311 are looped until the data is output, and when the data is output, the process proceeds to step 303 as described above.

そして、このようにエリアデータのライン毎の
取り込みが終了すると、第7図に示す次のステツ
プ209に進む。
When the line-by-line acquisition of area data is completed in this manner, the process proceeds to the next step 209 shown in FIG.

<ステツプ209> ステツプ208において取り込んだデータがパタ
ーンを有さないレベルのものか否か(すなわち、
前記ホルダ1の表面1bの黒色パターンか否か)
を判断し、YES(データ無)である場合には、エ
ンド信号を出力した後(ステツプ210)、ステツプ
201に戻る。なお、前記ステツプ210で出力された
エンド信号は矢印で示すように第6図の計数ル
ーチンのステツプ153に供給される。
<Step 209> Check whether the data imported in step 208 has no pattern (i.e.,
whether it is a black pattern on the surface 1b of the holder 1)
If it is YES (no data), after outputting the end signal (step 210), step
Return to 201. The end signal output at step 210 is supplied to step 153 of the counting routine in FIG. 6 as indicated by the arrow.

また、取り込んだエリアデータがパターンを有
するレベルのものである場合(NO)には、次の
ステツプ211に進む。
Further, if the captured area data is of a level having a pattern (NO), the process advances to the next step 211.

<ステツプ211> 吸引軸5によつて吸着された紙幣が1枚目であ
るか否かを判断し、YESである場合には、ステ
ツプ212に進み、NOである場合には、ステツプ
230に進む。
<Step 211> It is determined whether or not the bill attracted by the suction shaft 5 is the first one. If YES, proceed to step 212; if NO, proceed to step 212.
Proceed to 230.

<ステツプ212> ステツプ208で取り込まれた1枚目の紙幣にお
けるエリアデータに対して、ROM64に記憶さ
れている現行3金種(L種の金種)合計12パター
ン(4×Lパターン)の基準データ(1金種につ
いて、表裏正逆4パターンある)とを比較して、
次のステツプ213に進む。
<Step 212> Based on the area data of the first banknote imported in step 208, a total of 12 patterns (4 x L patterns) of the current 3 denominations (L denominations) stored in the ROM 64 are applied. Comparing with the data (for one denomination, there are 4 patterns of front and back, forward and reverse),
Proceed to the next step 213.

<ステツプ213> 前記1枚目の紙幣のエリアデータと、12パター
ンの基準データとを比較した結果、一致したパタ
ーンがあるか否かを判断し、NOの場合には、判
別が不能な異常紙幣であるとして記憶部
(RAM65)の所定のエリアに判別異常を示すフ
ラグを立てて(ステツプ214)、前記ステツプ201
に戻る。
<Step 213> As a result of comparing the area data of the first banknote with the reference data of the 12 patterns, it is determined whether there is a matching pattern, and if NO, it is determined that the banknote is an abnormal banknote that cannot be identified. As such, a flag indicating a determination abnormality is set in a predetermined area of the storage unit (RAM 65) (step 214), and the process is performed in step 201.
Return to

また、一致パターンがある(YES)の場合に
は、記憶部(RAM65)の所定のエリアに判別さ
れた紙幣が3金種の内のいずれか1つであること
を示すフラグを立て(ステツプ215)、更に、該紙
幣の表裏を示すフラグを立てた後(ステツプ
216)、判別した金種と表裏情報とに基づいて
ROM64に記憶させてある二重吸着の判別基準
である二重比較レベルを記憶部(RAM65)にセ
ツトした後(ステツプ217)、ステツプ218に進む。
If there is a matching pattern (YES), a flag indicating that the identified banknote is one of the three denominations is set in a predetermined area of the storage unit (RAM65) (step 215). ), and after setting a flag indicating the front and back sides of the banknote (step
216), based on the determined denomination and front and back information.
After setting the double comparison level, which is a criterion for determining double adsorption, stored in the ROM 64 in the storage section (RAM 65) (step 217), the process proceeds to step 218.

<ステツプ230> 一方、前述したステツプ211において、前記吸
引軸5により吸着された紙幣が1枚目でないと判
断された場合には、当該ステツプ230において、
表裏モードスイツチ54がONに設定されている
か否かを判断する。そして、その結果、表裏モー
ドが設定されている(ON)と判断された場合に
は、ステツプ232に進み、また、表裏モードが設
定されていない(OFF)と判断された場合には、
ステツプ231に進む。
<Step 230> On the other hand, in step 211 described above, if it is determined that the banknote sucked by the suction shaft 5 is not the first bill, in step 230,
It is determined whether the front/back mode switch 54 is set to ON. As a result, if it is determined that the front/reverse mode is set (ON), the process proceeds to step 232, and if it is determined that the front/reverse mode is not set (OFF),
Proceed to step 231.

<ステツプ231> ステツプ208で取り込まれた該紙幣のエリアデ
ータと、ROM64に記憶された特定金種(ステ
ツプ215にセツトされた金種)についての表裏正
逆4パターンの基準データとを比較して、次のス
テツプ237に進む。
<Step 231> The area data of the banknote imported in step 208 is compared with the standard data of four patterns of front and back, forward and reverse, for a specific denomination (the denomination set in step 215) stored in the ROM 64. , proceed to the next step 237.

<ステツプ232> ステツプ220においてセツトされた表裏基準デ
ータに基づき(後述する)、計数紙幣が表側を向
いているのか、裏側を向いているのかを判断し、
表側を向いていると判断された(YES)場合に、
ステツプ233〜ステツプ234に進み、裏側を向いて
いると判断された(NO)場合に、ステツプ235
〜ステツプ236に進む。
<Step 232> Based on the front/back reference data set in step 220 (described later), it is determined whether the banknotes to be counted are facing the front side or the back side,
If it is determined that the face is facing up (YES),
Proceed to steps 233 to 234, and if it is determined that the person is facing backwards (NO), proceed to step 235.
~Proceed to step 236.

<ステツプ233>〜<ステツプ234> まず、ステツプ233において、ステツプ208で取
り込まれた紙幣のエリアデータと、ROM64に
記憶されている特定金種(ステツプ215において
セツトされた金種)の表向き正逆の2パターンの
基準データとを比較し、次に、ステツプ234にお
いて、ステツプ208で取り込まれた紙幣のエリア
データと、ROM64に記憶されている特定金種
(ステツプ215においてセツトされた金種)の裏向
き正逆の2パターンの基準データとを比較する。
<Step 233> - <Step 234> First, in step 233, the area data of the banknote taken in in step 208 and the specific denomination stored in the ROM 64 (the denomination set in step 215) are compared in the forward and reverse directions. Then, in step 234, the area data of the banknote captured in step 208 and the specific denomination stored in the ROM 64 (the denomination set in step 215) are compared. Compare the two patterns of reference data: face down, forward and reverse.

なお、これらステツプ233〜ステツプ234におい
ては、紙幣のエリアデータを、表正→表逆→裏正
→裏逆の順で4パターンの基準データと比較する
が、これら比較の途中で一致パターンがあると、
そこで比較を終了して、ステツプ237に進む。
In addition, in these steps 233 and 234, the area data of the banknote is compared with four patterns of reference data in the order of front, front, reverse, front, reverse, and if there is a matching pattern in the middle of these comparisons. and,
The comparison is then terminated and the process proceeds to step 237.

<ステツプ235>〜<ステツプ236> まず、ステツプ235において、ステツプ208で取
り込まれた紙幣のエリアデータと、ROM64に
記憶されている特定金種(ステツプ215において
セツトされた金種)の裏向き正逆の2パターンの
基準データとを比較し、次に、ステツプ236にお
いて、ステツプ208で取り込まれた紙幣のエリア
データと、ROM64に記憶されている特定金種
(ステツプ215においてセツトされた金種)の表向
き正逆の2パターンの基準データとを比較する。
<Step 235> to <Step 236> First, in step 235, the area data of the banknote taken in in step 208 and the face-down face-up of the specific denomination (the denomination set in step 215) stored in the ROM 64 are The two opposite patterns of reference data are compared, and then, in step 236, the area data of the banknote taken in in step 208 and the specific denomination stored in the ROM 64 (the denomination set in step 215) are compared. Compare the two patterns of standard data, ostensibly forward and reverse.

なお、これらステツプ235〜ステツプ236におい
ては、紙幣のエリアデータを、裏正→裏逆→表正
→表逆の順で4パターンの基準データと比較する
が、これら比較の途中で一致パターンがあると、
そこで比較を終了して、ステツプ237に進む。
In addition, in these steps 235 to 236, the area data of the banknote is compared with four patterns of reference data in the order of reverse side → reverse side → front side → front side reverse, but if there is a matching pattern in the middle of these comparisons. and,
The comparison is then terminated and the process proceeds to step 237.

<ステツプ237> 前記ステツプ231、ステツプ233〜ステツプ234、
ステツプ235〜ステツプ236において、紙幣のエリ
アデータと特定金種の表裏正逆の4パターンの基
準データとを比較した結果、一致したパターンが
あるか否かを判断し、NOの場合にはこの紙幣が
異金種紙幣(厳密に言うと判別異常紙幣もあり得
る)であるとして、記憶部の所定のエリアに異金
種を示すフラグを立て(ステツプ238)、前記ステ
ツプ201に戻る。
<Step 237> Step 231, Step 233 to Step 234,
In steps 235 and 236, as a result of comparing the area data of the banknote with the reference data of four patterns of front and back of the specific denomination, it is determined whether there is a matching pattern, and if NO, this banknote is Assuming that the banknote is a different denomination banknote (strictly speaking, there may be an abnormal banknote), a flag indicating a different denomination is set in a predetermined area of the storage section (step 238), and the process returns to step 201.

また、一致したパターンがある場合(YES)
には、前述したように、記憶部の所定のエリアに
紙幣の表裏を示すフラグを立て(ステツプ216)、
更に、ステツプ217において、記憶部の所定のエ
リアに判別基準でる二重比較レベルをセツトし
て、次のステツプ218に進む。
Also, if there is a matched pattern (YES)
As described above, a flag indicating the front and back sides of the banknote is set in a predetermined area of the storage unit (step 216).
Furthermore, in step 217, a double comparison level serving as a discrimination criterion is set in a predetermined area of the storage section, and the process proceeds to the next step 218.

<ステツプ218> 表裏モードスイツチ54がONになつているか
否かを判断し、NOの場合にはステツプ201に進
み、YESの場合には次のステツプ219に進む。
<Step 218> It is determined whether the front/back mode switch 54 is turned on. If NO, proceed to step 201; if YES, proceed to the next step 219.

<ステツプ219> この紙幣が1枚目であるか否かを判断し、NO
の場合にはステツプ221に進み、YESの場合には
次のステツプ220に進む。
<Step 219> Determine whether or not this banknote is the first one, and select NO.
If YES, proceed to step 221; if YES, proceed to the next step 220.

<ステツプ220> 前記ステツプ216においてセツトした1枚目の
紙幣の表裏コードを表裏基準データとして記憶部
RAM65にセツトし、この表裏基準データに基
づいて以後紙幣表裏判定を行なう(ステツプ
221)。
<Step 220> The front and back codes of the first bill set in step 216 are stored in the storage unit as front and back reference data.
It is set in the RAM 65, and based on this front/back reference data, the front/back side of the banknote is determined (step
221).

<ステツプ221> ステツプ216でセツトされる表裏コードとステ
ツプ220でセツトされた表裏基準データとを比較
して、2枚目以降の紙幣が1枚目の紙幣の表裏と
一致しているか否かを判断し、一致している
(YES)場合にステツプ201に戻り、不一致であ
る(NO)場合に次のステツプ222に進み、この
ステツプ222において、記憶部の所定のエリアに
表裏不一致であることを示すフラグを立て(ステ
ツプ222)、ステツプ201に戻り、ふたたび上述し
たステツプ201〜ステツプ238を繰り返す。
<Step 221> The front and back codes set in step 216 are compared with the front and back reference data set in step 220 to determine whether or not the second and subsequent banknotes match the front and back of the first banknote. If they match (YES), the process returns to step 201; if they do not match (NO), proceed to the next step 222. A flag indicating this is set (step 222), the process returns to step 201, and steps 201 to 238 described above are repeated again.

なお、上述したトリガー信号(TRG)、二重デ
ータを取り込む等のタイミングは第10図のタイ
ミングチヤートにおいて記載されている。これら
トリガー信号(TRG)、二重データを取り込む等
のタイミングと第7図のステツプ番号と対応させ
ると、判別トリガー信号はステツプ201に対応し、
二重データ取り込みタイミングはステツプ203に
対応し、以下、エラーチエツクタイミングはステ
ツプ204に、二重チエツクタイミングはステツプ
206に、エリアデータ取り込みタイミングはステ
ツプ208に、エンドチエツクタイミングはステツ
プ209にそれぞれ対応し、また、判別処理タイミ
ングはステツプ211〜213及びステツプ230〜237に
対応し、更に、金種、表裏、二重比較レベル、エ
ラーセツトタイミングは、ステツプ215〜217、ス
テツプ214、222、238にそれぞれ対応している。
Note that the timing of the above-mentioned trigger signal (TRG), duplex data capture, etc. is described in the timing chart of FIG. If these trigger signals (TRG), the timing of importing double data, etc. correspond to the step numbers in FIG. 7, the discrimination trigger signal corresponds to step 201,
The double data acquisition timing corresponds to step 203, below, the error check timing corresponds to step 204, and the double check timing corresponds to step 203.
206, the area data import timing corresponds to step 208, the end check timing corresponds to step 209, and the discrimination processing timing corresponds to steps 211 to 213 and steps 230 to 237. The multiple comparison level and error set timing correspond to steps 215 to 217 and steps 214, 222, and 238, respectively.

上記のように構成された紙幣計数機の判別装置
においては、ステツプ230〜ステツプ236で説明し
たように、1枚目の紙幣が表を向いているのか否
かを判別し(ステツプ232)、この1枚目の紙幣の
判別結果に基づいて、2枚目以降の紙幣につい
て、判別基準となる基準データの選択を行うよう
にしている。
In the bill counting machine discriminating device configured as described above, as explained in steps 230 to 236, it is determined whether the first bill is facing up (step 232), and Based on the discrimination result of the first banknote, reference data serving as a discrimination standard is selected for the second and subsequent banknotes.

つまり、1枚目の紙幣が表である場合には、2
枚目以降の紙幣におけるエリアデータを、特定金
種4パターンの基準データと、表正→表逆→裏正
→裏逆の順で選択して、互いに比較するようにし
ている。また、1枚目の紙幣が裏である場合に
は、2枚目以降の紙幣におけるエリアデータを、
特定金種4パターンの基準データと、裏正→裏逆
→表正→表逆の順で選択して、互いに比較するよ
うにしている(ステツプ233〜236)。
In other words, if the first bill is heads, 2
The area data of the banknotes after the first banknote are selected and compared with the standard data of four patterns of specific denominations in the order of front side → front side → front side → right side → reverse side. In addition, if the first bill is the back side, the area data for the second and subsequent bills will be
The standard data of four patterns of specific denominations are selected in the order of reverse side → reverse side → front side → front side reverse, and are compared with each other (steps 233 to 236).

これによつて、上記の判別装置においては、1
枚目の紙幣の表裏正逆と2枚以降の紙幣との表裏
正逆が同一であるとすれば(例えば、再鑑モード
において、金種及び表裏が揃つた紙幣を判別する
場合)、2枚目のエリアデータを、少なくとも最
初の2組の基準データと比較した時点で、判別が
終了することになり、これによつて、処理時間の
短縮を図ることができる。
As a result, in the above discriminating device, 1
If the front and back sides of the first banknote are the same as those of the second and subsequent banknotes (for example, when identifying banknotes with the same denomination and front and back sides in re-examination mode), two The determination ends when the eye area data is compared with at least the first two sets of reference data, thereby reducing processing time.

例を挙げると、1枚目の紙幣の金種が1万円
で、表の正方向を向いていたとすると、2枚目の
紙幣は、そのエリアデータを1万円における表正
逆2組の基準データとまず比較し、この比較の結
果、一致したパターンがないと次に、1万円にお
ける裏正逆2組の基準データと比較する。そし
て、このとき、2枚目の紙幣のエリアデータを最
初の表正逆2組の基準データと比較した結果、一
致したパターンがあるとすれば、これら基準デー
タとエリアデータとの比較はこの時点で終了し、
これによつて、表裏モードの選択を行つていなか
つた場合等において、2枚目以降の紙幣について
全て4基準データと比較していた行程(ステツプ
231)と比べて、紙幣処理時間の大幅短縮化を図
ることができるという効果を奏する。
For example, if the first bill has a denomination of 10,000 yen and is facing forward, then the second bill has its area data as two sets of 10,000 yen, front and reverse. First, it is compared with standard data, and if there is no matching pattern as a result of this comparison, then it is compared with two sets of standard data of 10,000 yen, reverse and reverse. At this time, if there is a matching pattern as a result of comparing the area data of the second banknote with the first two sets of forward and backward reference data, the comparison between these reference data and area data should be made at this point. Ends with
As a result, when the front/back mode has not been selected, the process (step) in which all subsequent banknotes are compared with the 4 standard data can be
231), the banknote processing time can be significantly shortened.

なお、上記の判別装置においては、1枚目の紙
幣の金種及び表裏情報に基づき、2枚目の紙幣の
判別基準となる基準データの選択を行うようにし
たが、必ずしもこれに限定されず、紙幣の金種及
び表裏情報とともに、紙幣の正逆情報に基づき、
基準データを選択するようにしても良い。
In addition, in the above-mentioned discrimination device, the reference data serving as the discrimination criterion for the second banknote is selected based on the denomination and front and back information of the first banknote, but the present invention is not necessarily limited to this. , based on the denomination and front/back information of the banknote, as well as the forward/reverse information of the banknote.
It is also possible to select reference data.

また、日本国紙幣を判別するプログラムを米ド
ル紙幣を判別するプログラムに変更する場合に
は、ROM64等を取り替えることによつて行
う。
Furthermore, when changing the program for discriminating Japanese banknotes to a program for discriminating US dollar bills, this is done by replacing the ROM 64 or the like.

また、上記の判別制御回路46では、ラインデ
ータをX軸に沿うように取り出したが、これに限
定されず、Y軸に沿つて取り出すようにしても良
い。
Further, in the discrimination control circuit 46 described above, the line data is extracted along the X axis, but the line data is not limited to this, and may be extracted along the Y axis.

更に、前記エリアEにおける表面パターンを読
み取るセンサとして、前記エリアセンサ34に替
えて、1次元イメージセンサを第2図に示すY軸
あるいはX軸に対し間隔を以て複数列配置し、更
に、これらセンサの検出データを列を指定して読
み出すようにしても良い。
Furthermore, as a sensor for reading the surface pattern in the area E, in place of the area sensor 34, a plurality of one-dimensional image sensors are arranged at intervals with respect to the Y-axis or the X-axis shown in FIG. The detected data may be read out by specifying a column.

また更に、この紙幣計数機においては、帯封に
押印する押印機構と二重送りを検出する二重送り
検出機構との配置は任意である。
Furthermore, in this banknote counting machine, the arrangement of the stamping mechanism for stamping the band and the double-feed detection mechanism for detecting double-feed is arbitrary.

なお、第7図に示すフローチヤートにおいて、
ステツプ215及び220は特許請求の範囲に示す「基
準情報一時記憶手段」に該当し、ステツプ232〜
236は特許請求の範囲に示す「選択手段」に該当
し、また、ステツプ232〜236は特許請求の範囲に
示す「比較中止手段」に該当する。
In addition, in the flowchart shown in FIG.
Steps 215 and 220 correspond to "reference information temporary storage means" in the claims, and steps 232 to 220 correspond to
236 corresponds to the "selection means" shown in the claims, and steps 232 to 236 correspond to the "comparison stop means" shown in the claims.

「発明の効果」 以上詳細に説明したように、本発明の紙幣計数
機における異種券判別装置によれば、2枚目以降
のそれぞれの紙幣について、該紙幣の表面パター
ンを、まず、1枚目の紙幣と同じ金種、表裏の正
逆2つの判別基準パターンと比較させ、ここでパ
ターンが一致したとの判別結果が出た場合に、以
後の判別を中止し、次の紙幣の判別に移るように
したので、例えば、紙幣の表裏がある程度揃つて
いる紙幣について、2枚目以降の紙幣を、表ある
いは裏の正逆についての2つの判別基準パターン
と比較するだけで、当該紙幣についての判別を終
了させることができ、これによつて判別作業の効
率化を図ることができる効果が得られる。
"Effects of the Invention" As described in detail above, according to the different type of bill discriminating device in the bill counting machine of the present invention, for each of the second and subsequent bills, the surface pattern of the first bill is first determined. The banknote is compared with two discrimination reference patterns of the same denomination, front and back, front and back, and if a discrimination result is obtained that the patterns match, the subsequent discrimination is stopped and the next banknote is discriminated. For example, for banknotes whose front and back sides are aligned to some extent, the banknotes can be identified by simply comparing the second and subsequent banknotes with two discrimination reference patterns for front and reverse sides. This has the effect of increasing the efficiency of the discrimination work.

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

第1図〜第10図は本発明の一実施例を示すも
ので、第1図は平面図、第2図は第1図の−
線に沿う矢視図、第3図は吸引軸および吸引管系
の断面図、第4図は計数制御回路および判別制御
回路のブロツク図、第5図は計数制御動作の流れ
図、第6図は計数制御回路のCPU動作を示す図、
第7図及び第8図は判別制御回路のCPU動作を
示す図、第9図及び第10図は計数制御動作およ
び判別制御動作の流れ図である。 5……吸引軸、40……投光器、41……受光
器(検出素子)、42……エリアセンサ、64…
…ROM(記憶手段)、66……CPU(基準情報一
時記憶手段・選択手段・比較中止手段)。
1 to 10 show an embodiment of the present invention, FIG. 1 is a plan view, and FIG.
Fig. 3 is a sectional view of the suction shaft and suction pipe system, Fig. 4 is a block diagram of the counting control circuit and discrimination control circuit, Fig. 5 is a flowchart of the counting control operation, and Fig. 6 is a diagram taken along the line. A diagram showing the CPU operation of the counting control circuit,
7 and 8 are diagrams showing the CPU operation of the discrimination control circuit, and FIGS. 9 and 10 are flowcharts of the counting control operation and the discrimination control operation. 5... Suction axis, 40... Emitter, 41... Light receiver (detection element), 42... Area sensor, 64...
...ROM (storage means), 66...CPU (reference information temporary storage means, selection means, comparison cancellation means).

Claims (1)

【特許請求の範囲】 1 紙幣が装填されるホルダと、 該ホルダに装填された紙幣を一枚ずつ吸着して
めくりながら計数する吸引軸と、 該吸引軸により吸着されてめくられようとする
状態の紙幣の表面に光線を照射する投光器と、 該紙幣の表面で反射した光線を検出して紙幣の
表面パターンを読み取る検出素子と、 該検出素子によつて読み取られた表面パターン
を、記憶手段に記憶されている複数種の判別基準
パターンと比較する比較手段とを有する紙幣計数
機における判別装置において、 前記比較手段により紙幣と判別された1枚目の
金種コード並びに表裏基準データを一時記憶する
基準情報一時記憶手段と、 該基準情報記憶一時手段に基づき、2枚目以降
の紙幣の判別に際して前記表裏基準データと同じ
表裏いずれかの正逆2つの判別基準パターン、そ
の後、前記表裏基準データと異なる表裏いずれか
他方の正逆2つの判別基準パターンを記憶手段か
ら読み出す選択手段と、 該選択手段により順次読み出される判別基準デ
ータと前記表面パターンとを前記比較手段にて比
較し、一致したパターンがあつた時点で、当該紙
幣における残りの判別基準パターンとの比較を中
止する比較中止手段とを有することを特徴とする
紙幣計数機における異種券判別装置。
[Scope of Claims] 1. A holder into which banknotes are loaded, a suction shaft that sucks and turns over the banknotes loaded in the holder one by one and counts them, and a state in which the banknotes are attracted by the suction shaft and are about to be turned over. a light projector that irradiates a light beam onto the surface of the banknote; a detection element that detects the light beam reflected by the surface of the banknote to read the surface pattern of the banknote; and a storage means for storing the surface pattern read by the detection element. In a discriminating device for a banknote counting machine having a comparison means for comparing with a plurality of stored discrimination reference patterns, temporarily storing the denomination code and front/back reference data of the first sheet that is discriminated as a banknote by the comparison means. a reference information temporary storage means; and based on the reference information temporary storage means, two forward and reverse discrimination reference patterns of either the front or the back, which are the same as the front and back reference data, are used when determining the second and subsequent banknotes, and then, based on the front and back reference data, a selection means for reading out two forward and reverse discrimination reference patterns of either the front or the back of the other from the storage means; and a comparison means for comparing the discrimination reference data sequentially read out by the selection means with the front pattern, and determining whether a matching pattern is detected. What is claimed is: 1. A dissimilar banknote discriminating device for a banknote counting machine, comprising a comparison stop means for ceasing comparison with the remaining discrimination reference patterns of the banknote at a time when the banknote has reached a certain point.
JP62106976A 1987-04-30 1987-04-30 Different note discriminator in banknote counter Granted JPS63271690A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62106976A JPS63271690A (en) 1987-04-30 1987-04-30 Different note discriminator in banknote counter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62106976A JPS63271690A (en) 1987-04-30 1987-04-30 Different note discriminator in banknote counter

Publications (2)

Publication Number Publication Date
JPS63271690A JPS63271690A (en) 1988-11-09
JPH05756B2 true JPH05756B2 (en) 1993-01-06

Family

ID=14447318

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62106976A Granted JPS63271690A (en) 1987-04-30 1987-04-30 Different note discriminator in banknote counter

Country Status (1)

Country Link
JP (1) JPS63271690A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5957393A (en) * 1982-09-27 1984-04-02 株式会社東芝 Discriminator for printed matter
JPS6149293A (en) * 1984-08-16 1986-03-11 富士通株式会社 Discrimination of sheet paper
JPS61201397A (en) * 1985-03-05 1986-09-06 東京システムクリエ−ト株式会社 Optical type building counter

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60104979U (en) * 1983-12-22 1985-07-17 ロ−レルバンクマシン株式会社 banknote counting machine

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5957393A (en) * 1982-09-27 1984-04-02 株式会社東芝 Discriminator for printed matter
JPS6149293A (en) * 1984-08-16 1986-03-11 富士通株式会社 Discrimination of sheet paper
JPS61201397A (en) * 1985-03-05 1986-09-06 東京システムクリエ−ト株式会社 Optical type building counter

Also Published As

Publication number Publication date
JPS63271690A (en) 1988-11-09

Similar Documents

Publication Publication Date Title
KR910008436B1 (en) Discriminator for paper money counting machine
JPH05755B2 (en)
JPH05756B2 (en)
JPH0214757B2 (en)
JPS63271684A (en) Double-feed detector in banknote counter
JPH0528437B2 (en)
JPH0584954B2 (en)
JPH0558983B2 (en)
JP2522555B2 (en) Stamp control device for bill counting machine
JPS63244294A (en) Discriminator for paper money counting machine
JPH0473198B2 (en)
JPH0532797B2 (en)
JPS63271689A (en) Different note discriminator in banknote counter
JP2542642B2 (en) Banknote counting machine
JPS63271693A (en) Stamping indicator of paper counter with different note discriminating function
JPH0525013Y2 (en)
JPH0585077B2 (en)
JPH029420Y2 (en)
JPH0525014Y2 (en)
JP2522559B2 (en) Stamp control device for paper counter
JPH07113989B2 (en) Banknote counting machine
JP3535040B2 (en) Banknote discriminator
JPH03179588A (en) Note counter
JPH0241719Y2 (en)
BG65191B1 (en) System for banknotes recognition and validation

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees