Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2709417B2 - Game storage medium issuing device - Google Patents
[go: Go Back, main page]

JP2709417B2 - Game storage medium issuing device - Google Patents

Game storage medium issuing device

Info

Publication number
JP2709417B2
JP2709417B2 JP2317024A JP31702490A JP2709417B2 JP 2709417 B2 JP2709417 B2 JP 2709417B2 JP 2317024 A JP2317024 A JP 2317024A JP 31702490 A JP31702490 A JP 31702490A JP 2709417 B2 JP2709417 B2 JP 2709417B2
Authority
JP
Japan
Prior art keywords
card
data
routine
unit
packet
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
JP2317024A
Other languages
Japanese (ja)
Other versions
JPH03222987A (en
Inventor
吉平 新山
広司 伊東
Original Assignee
株式会社ソフィア
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 株式会社ソフィア filed Critical 株式会社ソフィア
Priority to JP2317024A priority Critical patent/JP2709417B2/en
Publication of JPH03222987A publication Critical patent/JPH03222987A/en
Application granted granted Critical
Publication of JP2709417B2 publication Critical patent/JP2709417B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Pinball Game Machines (AREA)
  • Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明はパチンコ機あるいはアレンジボール機、スロ
ットマシン等の遊技装置を用いた遊技システムに関し、
所要の遊技を実行可能な遊技装置に用いられる記憶媒体
を発行可能な記憶媒体発行装置に利用して有効な技術に
関する。
The present invention relates to a game system using a game machine such as a pachinko machine, an arrangement ball machine, a slot machine, and the like.
The present invention relates to a technique that is effective when a storage medium used for a game device capable of executing a required game is used for a storage medium issuing device that can issue the game.

[従来の技術] 近年、カード状の記憶媒体を媒介として遊技を行なう
ようにした記憶媒体式遊技設備の一例としてカード式パ
チンコ遊技システムが提唱されている。カード方式は、
遊技客が記憶媒体であるカードのみを持ち歩けばよく、
落下し易いパチンコ球を大量に持ち運ぶ手間を軽減する
ことができるという利点がある。従来提案されているカ
ード式パチンコ遊技システムは、大きく分けると次の2
つの方式がある。
[Prior Art] In recent years, a card-type pachinko game system has been proposed as an example of a storage medium-type game facility in which a game is played using a card-shaped storage medium as a medium. The card method is
The player only needs to carry the card that is the storage medium,
There is an advantage that it is possible to reduce the trouble of carrying a large amount of pachinko balls that easily fall. The card-type pachinko gaming systems that have been conventionally proposed are roughly divided into the following two.
There are two methods.

第1の方式は、カードの発行に際して購入金額に対応
した持玉数データをカードに記憶し、この持玉数データ
の範囲内でパチンコ遊技を行ない、遊技過程において増
減した持玉数データをカードに記憶するというものであ
る。(特公昭47−42227号参照)。
In the first method, when issuing a card, the number of balls held corresponding to the purchase amount is stored in the card, a pachinko game is performed within the range of the number of balls held, and the number of balls held is increased or decreased in the game process. Is to memorize it. (See JP-B-47-42227).

カード方式の第2の方式は、カードの購入の際にカー
ド番号だけ記録したカードを発行し、持玉数は管理装置
に記憶し、カードをパチンコ機のカード読取装置に挿入
することによって記憶された持玉数を呼び出して遊技を
行なえるようにするものである。(実公昭61−32709
号、特公昭51−17106号) [発明が解決しようとする課題] 上記いずれの方式のシステムにおいても、使用するカ
ードは金額に応じて複数種類発行できる方が利用者に対
する便宜を図る上で望ましい。また、パチンコ店の省力
化を図るには、カードの発行をカード発行機により自動
的に行なえるようにするのがよい。
In the second type of the card system, when a card is purchased, a card in which only the card number is recorded is issued, the number of balls held is stored in a management device, and the card is stored by inserting the card into a card reader of a pachinko machine. The player can play the game by calling the number of balls held. (61-32709)
[Problems to be Solved by the Invention] In any of the above-mentioned systems, it is desirable to be able to issue a plurality of types of cards in accordance with the amount of money for the convenience of the user. . In order to save labor in pachinko parlors, it is preferable that card issuance can be automatically performed by a card issuing machine.

しかるに、カード発行機により複数種類のカードを発
行できるようにするには、予め金額等を記録した複数種
類のカードを用意しておくか、カード購入時に金額等を
記録して発行する必要がある。一方、最初から予め金額
等を記録したカードを用意しておくと、カードの発行所
要時間は短縮されるかもしれないが、このカードが盗難
等の被害にあった場合にはそのまま遊技装置において使
用されてしまい、遊技店に多大な損害を与える可能性が
あるという問題点があることが分かった。
However, in order to be able to issue a plurality of types of cards by a card issuing machine, it is necessary to prepare a plurality of types of cards in which the amount of money is recorded in advance or to record and issue the amount of money when purchasing the card. . On the other hand, if you prepare a card with the amount of money recorded in advance from the beginning, the time required for issuing the card may be shortened, but if this card is stolen or otherwise damaged, it can be used directly in the gaming device It has been found that there is a problem that the game store may be greatly damaged.

この発明は上記のような背景の下になされたもので、
記憶媒体発行装置内の記憶媒体もしくは記憶媒体発行装
置に挿入される前の記憶媒体が盗難等にあった場合にも
そのまま遊技装置において使用できないようにして、遊
技店が不測の損害を被るのを回避することを目的とす
る。
The present invention has been made under the above background,
Even if the storage medium in the storage medium issuing device or the storage medium before being inserted into the storage medium issuing device is stolen, etc., it cannot be used in the gaming device as it is, so that the gaming shop does not suffer unexpected damage. The purpose is to avoid.

[課題を解決するための手段] 上記目的を達成するためこの発明は、有効な金額を特
定するための所要情報が記憶されるとともに所要の遊技
を実行可能な遊技装置(例えばパチンコ機100、制御ユ
ニット160)に使用される有効記憶媒体(カードCD)を
発行する遊技用記憶媒体発行装置(カード発行機200)
であって、上記所要情報のうち少なくとも一部が記憶さ
れていない発行前記憶媒体を収納する記憶媒体収納手段
(カードタンク701)と、上記記憶媒体収納手段内に収
納されている上記発行前記憶媒体を所定の処理を行うた
め1枚ずつ取り出し可能な記憶媒体取出手段(発行装置
700のカード取出装置710)と、上記記憶媒体取出手段に
より取り出された発行前記憶媒体の情報記憶部(例えば
磁気記録部MG)に所要の情報を記憶可能な情報書込手段
(カード発行機200のカードリーダ800の磁気ヘッド82
1)と、有効記憶媒体の発行要求を与える購入選択手段
(購入選択スイッチ群212)と、上記購入選択手段の操
作に基づいて上記有効記憶媒体を排出するための記憶媒
体排出手段(発行装置700のカード導出装置770)と、上
記発行される有効記憶媒体数を確認可能な記憶媒体数計
数表示手段(カウンタ795)とを備え、上記購入選択手
段の操作に基づいて上記発行前記憶媒体の情報記憶部へ
上記情報書込手段によって所定の情報の書き込み処理を
行って有効記憶媒体に加工して上記記憶媒体排出手段に
より排出するとともに、上記記憶媒体数計数表示手段の
計数値を更新するように構成したものである。
Means for Solving the Problems In order to achieve the above object, the present invention provides a gaming machine (for example, a pachinko machine 100, a pachinko machine 100, which stores required information for specifying an effective amount of money and can execute a required game). Gaming storage medium issuing device (card issuing machine 200) for issuing an effective storage medium (card CD) used for the unit 160)
A storage medium storing means (card tank 701) for storing a pre-issue storage medium in which at least a part of the required information is not stored; and the pre-issue storage stored in the storage medium storing means. Storage medium ejecting means (issuing device) capable of ejecting media one by one to perform predetermined processing
700 card removal device 710) and information writing means (card issuing machine 200) capable of storing required information in an information storage unit (for example, a magnetic recording unit MG) of the storage medium before issuance taken out by the storage medium removal means. Card reader 800 magnetic head 82
1), purchase selection means (purchase selection switch group 212) for issuing a request for issuing an effective storage medium, and storage medium ejection means (issuing device 700) for ejecting the effective storage medium based on the operation of the purchase selection means. Card deriving device 770) and storage medium number counting and displaying means (counter 795) capable of confirming the number of valid storage media to be issued, and information of the storage medium before issuance based on the operation of the purchase selecting means. The information writing means performs predetermined information writing processing on the storage unit, converts the information into an effective storage medium, discharges the storage medium by the storage medium discharge means, and updates the count value of the storage medium number display means. It is composed.

[作用] 上記した手段によれば、発行前の記憶媒体の情報記憶
部に情報書込手段によって所要の情報を記憶して、遊技
装置で使用可能な有効記憶媒体に加工してから記憶媒体
発行装置から排出させるようにしているため、記憶媒体
発行装置によって正規に発行された有効記憶媒体とそれ
以外の記憶媒体とを明確に区別することができるように
なり、これによって例えば盗難等の被害にあった不正な
記憶媒体が遊技装置に挿入された場合にその記憶媒体を
無効として扱うことができ、加工された有効な記憶媒体
のみ遊技装置等において使用可能とすることができると
ともに、記憶媒体発行装置が発行する記憶媒体数を計数
して表示することができるため、遊技店において発行さ
れる記憶媒体数を正確に把握することが可能となる。
[Operation] According to the above-described means, the required information is stored in the information storage unit of the storage medium before issuance by the information writing means, and the information is processed into an effective storage medium that can be used in the gaming machine, and then the storage medium is issued. Since the storage medium is ejected from the device, it is possible to clearly distinguish the effective storage medium that has been properly issued by the storage medium issuing device from the other storage medium, thereby preventing damage such as theft. If an illegal storage medium is inserted into a gaming device, the storage medium can be treated as invalid, only the processed effective storage medium can be used in the gaming device, etc., and the storage medium is issued. Since the number of storage media issued by the device can be counted and displayed, it is possible to accurately grasp the number of storage media issued at the game arcade.

[実施例] 第1図に本発明を適用した記憶媒体式遊技設備の一例
としてのカード式パチンコ遊技システムの一実施例を示
す。
[Embodiment] FIG. 1 shows an embodiment of a card-type pachinko gaming system as an example of a storage medium-type gaming facility to which the present invention is applied.

この実施例のパチンコ遊技システムは、遊技装置の一
部を構成するパチンコ機100と、各パチンコ機における
遊技を開始させるためローカルな有価価値を有する記憶
媒体としてのカードCDを発行する記憶媒体発行装置とし
ての発行機200と、遊技の結果得られた賞品球および遊
技に使用せずに残った購入金を精算するための記憶媒体
精算装置としての精算機300と、上記各種端末機を集中
的に管理し、制御する管理装置400と、この管理装置400
と各端末機を有機的に結合する伝送手段としてのデータ
伝送路500とからなり、これらによって、有機的結合体
が構成される。この有機的結合体は、上記カードCDによ
ってのみ介入が可能とされ、かつ有機的結合体によって
のみカードの運用とその有価データの変換が可能となっ
ている。そのため、有機的結合体の各構成要素たるパチ
ンコ機100、発行機200、精算機300および管理装置400に
は、それぞれ記憶媒体読取装置としてのカードリーダ
(この明細書では、カードの磁気面への書込みを行うも
のもカードリーダと称する)が設けられているととも
に、カードの情報および各端末機の情報は、管理装置40
0の記憶装置内にファイルの形で記憶されるようになっ
ている。
The pachinko gaming system according to this embodiment includes a pachinko machine 100 that forms a part of a gaming device, and a storage medium issuing device that issues a card CD as a storage medium having a local value in order to start a game in each pachinko machine. The issuing machine 200 as a game machine, the prize ball obtained as a result of the game, and a payment machine 300 as a storage medium payment device for paying out the remaining purchase money not used for the game, and the above various terminals The management device 400 that manages and controls, and the management device 400
And a data transmission path 500 as a transmission means for organically coupling each terminal, and these constitute an organic coupling body. This organic combination can be interposed only by the card CD, and the card can be operated and its valuable data can be converted only by the organic combination. Therefore, the pachinko machine 100, the issuing machine 200, the settlement machine 300, and the management device 400, which are the components of the organic binder, each have a card reader as a storage medium reading device (in this specification, A card reader for writing data is also provided), and information on the card and information on each terminal are stored in the management device 40.
0 is stored in the form of a file in the storage device.

次に、上記有機的結合体の各構成要素についての具体
的な説明に入る前に、本実施例の記憶媒体式遊技設備に
使用されるカードについて説明する。
Next, before entering into a specific description of each component of the organic conjugate, a card used in the storage medium type game facility of the present embodiment will be described.

本実施例の記憶媒体式遊技設備に使用されるカードCD
は、例えば第2図(A)に示すように、購入金額AMや、
発行年月日(=有効年月日)DATE等遊技客にとって必要
な情報および破損カードの復活の際に必要な発行通し番
号n等が発行時に印字される印字表示部PRTがカード挿
入方向(カードの長手方向)に沿って設けられている。
従って、予め異なる金額を印字した複数種類のカードを
用意しておく必要がない。
Card CD used in the storage medium type game facility of this embodiment
Is, for example, as shown in FIG.
The information required for the player, such as the date of issue (= valid date), DATE, and the issue serial number n, etc., required when the damaged card is restored, are printed at the time of issuance. (Longitudinal direction).
Therefore, there is no need to prepare a plurality of types of cards on which different amounts of money are printed in advance.

この印字表示部PRTのすぐ上には、カードの状態すな
わち発行済、復活、遊技、帰零(ゼロ)および精算済等
カードの来歴もしくは状態遷移を穿孔の形で記録する穿
孔形成部としてのパンチ穴形成領域PHが、同じくカード
挿入方向に沿って設けられている。
Immediately above the print display unit PRT, a punch as a punch forming unit for recording the status of the card, that is, issued, resurrected, playing, returning to zero (zero), and settlement or status transition of the card in the form of a punch. A hole forming area PH is also provided along the card insertion direction.

カードに形成された上記穿孔を光電検出器で検出する
ことで、磁気面に記録されているコードを使って管理装
置のファイルから持玉数データを読み出して確認するこ
となく容易にカードの状態を把握することができ、これ
によって、カードの状態に対応した処理を決定するのに
要するカードリーダのコントローラや管理装置の負担を
軽減することができる。
By detecting the above-mentioned perforations formed in the card with the photoelectric detector, the number of balls held is read from the file of the management device using the code recorded on the magnetic surface, and the state of the card can be easily checked without checking. Thus, it is possible to reduce the burden on the controller and the management device of the card reader required to determine the processing corresponding to the state of the card.

一方、カードの中央よりやや下方の位置には、前端か
ら中央付近まで帯状の磁性材が塗布された情報記憶部と
しての磁気記録部MGが設けられている(第2図(B)参
照)。ただし、磁気記録部MGはカードの長手方向の一部
にのみでなく、印字表示部PRTと同様カードの端から端
まで連続する帯状としてもよいし、あるいはカードの裏
面全体に磁性材を塗布して磁気記録部としてもよい。
On the other hand, at a position slightly below the center of the card, there is provided a magnetic recording section MG as an information storage section coated with a band-shaped magnetic material from the front end to the vicinity of the center (see FIG. 2 (B)). However, the magnetic recording portion MG may be formed not only on a part of the card in the longitudinal direction but also in a continuous band shape from end to end of the card similarly to the print display portion PRT, or a magnetic material may be applied to the entire back surface of the card. May be used as a magnetic recording unit.

さらに、この実施例のカードでは、印字表示部PRTと
磁気記録部MGとの間、すなわちカードの中央にカードリ
ーダ内の搬送ローラよりも少し幅の広い帯状のローラ走
行領域RRAがカードの長手方向に沿って設けられてお
り、搬送ローラとの接触によりカードの表面、特にカー
ドの判定に利用される重要な情報を有する上記磁気記録
部MG、印字表示部PRT、真偽鑑別領域TFが損傷されるの
を防止し、それらの情報が読取り不能になるのを回避で
きるようになっている。
Further, in the card of this embodiment, a belt-like roller running area RRA slightly wider than the transport roller in the card reader is provided between the print display section PRT and the magnetic recording section MG, that is, in the center of the card, in the longitudinal direction of the card. The magnetic recording unit MG, the print display unit PRT, and the authenticity discrimination area TF, which have important information used for determining the card, are damaged due to contact with the transport rollers. To prevent the information from becoming unreadable.

また、この実施例のカードでは、磁気記録部MGの下方
にカード表面に印刷されるホール名等の文字中に隠匿さ
れたセキュリティマークからなる真偽鑑別領域TFを設け
てある。すなわち、カードの表面に印刷される「PLAZ
A」なる文字を、第2図(C)に示すように各文字の脚
部が、3.5mm等のピッチで設けられる検出ビットパター
ンB0〜B9に対応する位置に来るようにデザインして印刷
しておく。そして、文字幅が0.5〜1.5mm、各ビット間が
3.5mmとなるようにし、各ビットの“1"または“0"を文
字の濃淡で表現する。しかも、10個のビットのうち左か
ら5番目のビットB4と最後のビットB9は、ビットB0〜B3
とB5〜B8のパリティを表すように文字の濃淡を決定して
おく。なお、この文字列中に隠匿されたセキュリティビ
ットは、センサにおいてのみ検出でき、人間の目には区
別がつかないような特殊なインクを用いて形成しておく
とより好ましい。
In the card of this embodiment, a true / false discrimination area TF including a security mark concealed in characters such as a hole name printed on the surface of the card is provided below the magnetic recording unit MG. In other words, "PLAZ" printed on the surface of the card
The A "as the character, the legs of each character as shown in FIG. 2 (C) is then designed to come to a position corresponding to the detection bit pattern B 0 .about.B 9 provided at a pitch of 3.5mm, etc. Print it out. And the character width is 0.5-1.5mm,
It is set to 3.5 mm, and "1" or "0" of each bit is represented by shading of characters. Moreover, 10 5 th bit B 4 from left of the bit and the last bit B 9, the bit B 0 .about.B 3
Previously determining the shading of text to represent the parity of the B 5 .about.B 8 and. It is more preferable that the security bits concealed in the character string be formed using a special ink that can be detected only by the sensor and cannot be distinguished by human eyes.

さらに、この実施例の遊技カードの表面には、磁気記
録部MGに連続した帯状領域に磁気ヘッドの汚れを除去す
るためのクリーニング剤を塗布してなるヘッドクリーニ
ング領域HCNが設けられてい。これとともに、実施例の
カードでは、上記磁気記録部MGがどこに設けられている
か分からないようにするため、第2図(D)に示すよう
に、ポリエステル等のプラスチックからなる基材11上に
磁性粒子を均一に塗布してなる磁気層12の上にホワイト
層13を形成し、さらにその上に絵柄印刷層14を載せてか
らその一部(印字表示部PRTに対応する部位)に感熱発
色層15を形成し、その上方に透明な保護膜16をコーティ
ングしてある。なお、クリーニング領域HCNにはホワイ
ト層13と同一色のクリーニング剤を塗布し、その表面に
は保護膜16がコーティングされないようにして露出さ
せ、クリーニング領域が他の部位と色彩的にほとんど変
わらないようにして、美観の向上を図っている。また、
カードの基材11の裏面には絵柄印刷層17を形成し、その
上を保護膜18でコーティングするようになっている。
Further, on the surface of the game card of this embodiment, a head cleaning area HCN is provided in which a cleaning agent for removing dirt on the magnetic head is applied to a band-shaped area continuous with the magnetic recording section MG. At the same time, in the card of the embodiment, as shown in FIG. 2 (D), the magnetic recording portion MG is placed on a base material 11 made of a plastic such as polyester so as not to know where it is provided. A white layer 13 is formed on a magnetic layer 12 coated with particles uniformly, and a pattern printing layer 14 is further placed thereon, and then a heat-sensitive coloring layer is formed on a part of the layer (a portion corresponding to the print display PRT). 15 and a transparent protective film 16 is coated thereon. A cleaning agent having the same color as that of the white layer 13 is applied to the cleaning area HCN, and the surface thereof is exposed without being coated with the protective film 16 so that the cleaning area hardly changes in color from other parts. To improve the aesthetics. Also,
A pattern printing layer 17 is formed on the back surface of the base material 11 of the card, and is coated with a protective film 18 thereon.

磁気層12の表面にホワイト層13が形成されている上記
のような構造のカードにあっては、黒色の磁性粒子から
なる磁気層12が白色のホワイト層13で覆われているた
め、絵柄を印刷してファッション性の豊かなカードを提
供することが可能になるとともに、磁気記録部MGを隠匿
する機能も有している。
In the card having the above structure in which the white layer 13 is formed on the surface of the magnetic layer 12, the magnetic layer 12 made of black magnetic particles is covered with the white white layer 13, so that the pattern is It is possible to provide a card with rich fashion by printing, and has a function of concealing the magnetic recording unit MG.

さらに、カードの表面に保護膜16がコーティングされ
ているため、印字表示部PRTや磁気記録部MGおよび真偽
鑑別領域TF等カードの判別に使用される重要な情報を保
持する領域が保護され、それらの情報が破壊されにくく
なって、カードの信頼性が向上する。
Furthermore, since the surface of the card is coated with the protective film 16, the print display area PRT, the magnetic recording area MG, and the area holding important information used for discriminating the card such as the authenticity discrimination area TF is protected, Such information is less likely to be destroyed, and the reliability of the card is improved.

第2図(E)には、カードに設けられた磁気記録部MG
の構成例を示す。
FIG. 2 (E) shows a magnetic recording section MG provided on the card.
An example of the configuration will be described.

この実施例のカードの磁気記録部MGは2つのトラック
で構成され、このうち、第1のトラックTRC1にはサンプ
リングタイミングを与えるクロックデータを記録する。
第2のトラックTRC2は、左から順に4ビットの開始符号
とそのパリティビットの入るフィールドSTX、カードリ
ーダの製造元を示す企業コードMKCとカードリーダの機
種を示す機器コードMCC、遊技店の識別コードDSC、年月
日データDATE、カード番号No、カード発行時にカードリ
ーダから与えられる発行指令コードFNCおよび真偽鑑別
領域から読み取られたセキュリティデータSDCの入るテ
キストフィールドTXT、テキスト終了符号の入るフィー
ルドETX、テキストデータと終了符号との排他的論理和
の値(検出符号)の入るフィールドLRCと開始符号の入
るフィールドSTXとから構成されている。しかも、年月
日データDATEは、4ビットごとにそれぞれのパリティを
示すビットPが設けられているとともに、最初の4ビッ
トで「月」を、第6〜第9ビットと第11ビットとで
「日」を、そして第12〜第14ビットおよび第16〜第19ビ
ットで西暦の下2桁を2進コード化してそれぞれ記録す
るようになっている。
The magnetic recording unit MG of the card of this embodiment is composed of two tracks, of which the first track TRC1 records clock data for giving a sampling timing.
The second track TRC2 includes, starting from the left, a 4-bit start code and a field STX containing the parity bit, a company code MKC indicating the card reader manufacturer, a device code MCC indicating the model of the card reader, and an identification code DSC of the game store. , Date DATE, card number No, issuance command code FNC given from the card reader when the card is issued, text field TXT containing security data SDC read from the authenticity discrimination area, field ETX containing text end code, text It is composed of a field LRC containing an exclusive OR value (detection code) of data and an end code, and a field STX containing a start code. In addition, the date P is provided with a bit P indicating each parity every four bits, and the first four bits represent "month" and the sixth to ninth bits and the eleventh bit represent "month". The date, and the 12th to 14th bits and the 16th to 19th bits are recorded by binary coding the last two digits of the year.

磁気記録部を有するカードでは、一般に年月日から記
録フォーマットや記録データの解読するのが一番容易で
あるが、上記実施例のカードでは年月日の順序を入れ替
えるとともに、4ビットごとにパリティビットを入れ、
さらに記録ビットの対応に変化を持たせているため、カ
ードの偽造が極めて困難となる。また、発行通し番号n
を印字表示部PRTに印字するようになっているため、カ
ードの破損等により磁気記録部MGの情報が読出し不能に
なっても管理装置のファイル情報からカードを復活する
ことができる。
In the case of a card having a magnetic recording section, it is generally easiest to decode the recording format and recording data from the date. However, in the card of the above embodiment, the order of the date is changed, and the parity is set every 4 bits. Put a bit,
Further, since the correspondence of the recording bits is changed, forgery of the card becomes extremely difficult. The issue serial number n
Is printed on the print display unit PRT, so that the card can be restored from the file information of the management device even if the information in the magnetic recording unit MG cannot be read due to damage to the card or the like.

さらに、上述したように、この実施例のカードの磁気
記録部に記録される情報は、カードの使用可能空間を特
定するための識別コードDSCと、カードの有効期間を示
すための発行年月日DATEと、発行通し番号nから適当な
関数もしくは変換方式を使って得られる識別符号として
のカード番号と、エラー検出用のチェックコードのみで
あり、購入金額や持玉数は記録されないようになってい
る。これらは、上記カード番号NOによって管理装置400
のデータファイルからリアルタイムで引出し可能な構成
にしてある。これによって、カードのコピーによる不正
を防止し、かつ不正による被害を最小限にとどめること
ができる。つまり、カードがコピーされてもデータファ
イル内に登録されている購入金額と獲得玉数以上の被害
は生じないので、カードをコピーするのは全くの無駄な
行為となる。
Further, as described above, the information recorded in the magnetic recording unit of the card of this embodiment includes an identification code DSC for specifying the usable space of the card and an issue date for indicating the validity period of the card. Only the DATE, the card number as an identification code obtained from the issue serial number n using an appropriate function or conversion method, and a check code for error detection, the purchase amount and the number of balls held are not recorded. . These are managed by the management device 400 according to the card number NO.
It can be extracted in real time from the data file. This prevents fraud by copying the card and minimizes the damage caused by fraud. In other words, even if the card is copied, no damage occurs beyond the purchase price and the number of balls registered in the data file, so copying the card is a completely useless act.

しかも、上記実施例ではカードに記録された磁気記録
情報のみならず偽造が困難な真偽鑑別領域TFによっても
カードの真偽を鑑定するようにしているので、カードの
不正をより確実に防止することができる。また、真偽鑑
別領域TFのチェックにより不正カードを直ちに検出でき
るので、磁気情報を管理装置400に送って不正カードの
判定を行うよりもすばやく不正カードを発見することが
できる。なお、磁気記録部を有するテレホンカード等に
おいても穿孔が形成されるようになっているが、従来の
カードの穿孔は未使用残額を使用者に知らせるために設
けられるものであり、カードリーダが穿孔を検出して何
らかの処理もしくは判定に利用するためのものではな
い。
Moreover, in the above embodiment, the authenticity of the card is determined not only by the magnetically recorded information recorded on the card but also by the authenticity discrimination area TF which is difficult to forge, so that the illegality of the card is more reliably prevented. be able to. In addition, since a fraudulent card can be immediately detected by checking the authenticity discrimination area TF, the fraudulent card can be found more quickly than sending the magnetic information to the management device 400 and determining the fraudulent card. It is to be noted that a hole is also formed in a telephone card or the like having a magnetic recording section, but a conventional card is provided to inform the user of the remaining balance, and a card reader is used to make a hole. Is not intended to be used for any processing or determination.

次に、本来の遊技を提供する遊技装置の構成例につい
て第3図〜第13図を用いて説明する。
Next, an example of the configuration of a game device that provides an original game will be described with reference to FIGS.

この実施例の遊技装置としてのパチンコ機100と、該
パチンコ機と1対1で対応されて遊技機本体上方の島設
備等に配置され、主として表示器とカードリーダに関す
る制御と遊技中の稼動データの収集を司る制御ユニット
160とにより構成される。
A pachinko machine 100 as a game machine of this embodiment, and a pachinko machine, which is disposed on an island facility or the like above the main body of the game machine in a one-to-one correspondence, and mainly controls a display and a card reader and operates data during the game. Control unit that controls collection
160.

パチンコ機100は、パチンコ店の島設備に固定される
機枠101内に、ヒンジ102によって開閉自在に装着され
る。機枠101の下部にはパチンコ機100の重量に耐えかつ
打球発射装置103の振動を吸収する操作ダイヤル補強部
材107aを有する補強板107が固着されている。パチンコ
機100の下部には、封入球を一個ずつ遊技領域内に発射
する打球発射装置103とその操作ダイヤル104が設けられ
ており、また、操作ダイヤル104の上方には、前記カー
ドを使用した遊技開始の手続きを可能にするための金額
表示器111、玉数表示器112、購入スイッチ113、中断ス
イッチ114、終了スイッチ115、遊技状態表示器116等を
備えた操作パネル110が設けられている。パチンコ機前
面の遊技領域の構成は従来のものと同じである。購入ス
イッチ113は、制御ユニット160に内蔵されたカードリー
ダ800へのカードの挿入を前提としてカードの有する金
額の範囲内で、200円等の単位でこれを遊技球に変換す
るための指示スイッチで、変換された遊技球が持玉数と
なる。カードの残り金額は、100円を1単位とする度数
で金額表示器111は表示されるとともに、変換された持
玉数は玉数表示器112に表示され、打球発射装置103によ
り遊技球一つ発射されるごとに持玉数が一つ減算され、
入賞球が発生すると賞品球数の分だけ加算表示される。
終了スイッチ115は遊技者が遊技を終了させたくなった
とき(遊技台を変更したい場合を含む)にいつでもこれ
をオンさせることで、使用中のカードを制御ユニット16
0より排出させることができる。そのときユニットコン
トローラ190はその時点で遊技客の残金額と持玉数(購
入玉と獲得球の和)を、管理装置400のファイル内に登
録してからカードをカードリーダ800の挿排口802aより
排出する。また、中断スイッチ114は、遊技者が現在遊
技中の遊技機での遊技を止める意思はないが、休憩のた
め一時的に遊技を中断させるために使用するスイッチ
で、このスイッチが操作されると、ユニットコントロー
ラ190は一旦カードを排出して再び同一カードが挿入さ
れるまで待機状態となり、その間他のカードを受け付け
ないようになる。なお、上記各スイッチのうち購入スイ
ッチ113はランプ内蔵型で、持玉数が「0」になると購
入スイッチ113内のランプが点滅される。
The pachinko machine 100 is mounted to be openable and closable by a hinge 102 in a machine frame 101 fixed to the island equipment of the pachinko parlor. A reinforcing plate 107 having an operation dial reinforcing member 107a that withstands the weight of the pachinko machine 100 and absorbs the vibration of the hit ball firing device 103 is fixed to a lower portion of the machine frame 101. In the lower part of the pachinko machine 100, a hit ball launching device 103 for firing the enclosed balls one by one into the game area and its operation dial 104 are provided, and above the operation dial 104, a game using the card is provided. An operation panel 110 is provided with an amount indicator 111, a ball number indicator 112, a purchase switch 113, an interrupt switch 114, an end switch 115, a game state indicator 116, and the like for enabling a start procedure. The configuration of the game area on the front of the pachinko machine is the same as that of the conventional one. The purchase switch 113 is an instruction switch for converting the card into a game ball in units of 200 yen or the like within the range of the amount of the card assuming insertion of the card into the card reader 800 built in the control unit 160. , The converted game balls are the number of possessed balls. The remaining amount of the card is displayed on the amount display 111 in a unit of 100 yen as one unit, and the converted number of balls is displayed on the number-of-balls display 112. Each time the shot is fired, the number of balls is reduced by one,
When a prize ball is generated, it is added and displayed for the number of prize balls.
The end switch 115 is turned on at any time when the player wants to end the game (including a case where the player wants to change the game console), so that the card in use is controlled by the control unit 16.
It can be discharged from zero. At that time, the unit controller 190 registers the remaining amount of the player and the number of balls (the sum of the purchased ball and the acquired ball) at that time in the file of the management device 400, and then inserts the card into the slot 802a of the card reader 800. Discharge more. In addition, the interrupt switch 114 is a switch used to temporarily stop the game for a break, although the player does not intend to stop the game at the game machine currently playing, and when this switch is operated. The unit controller 190 once ejects the card and waits until the same card is inserted again, during which time no other cards are accepted. The purchase switch 113 among the above switches is of a built-in lamp type, and the lamp in the purchase switch 113 blinks when the number of balls held becomes “0”.

操作パネル110は第4図に示すように、パチンコ機100
の下部の開閉可能な前面パネル105に装着され、かつ断
面三角形の中空状をなし、上面が前方に向かって下り傾
斜されることにより表示が読取り易いようになってい
る。操作パネル110の内側には、表示面110aと平行に配
線基板120A,120Bが配設され、この基板120A上に7セグ
メント型LEDからなる金額表示器111と玉数表示器112
が、また基板120B上に上記各スイッチ113〜115と内蔵ラ
ンプが取り付けられ、表示プレート117で覆われてい
る。この表示プレート117の上記表示器111,112に対応す
る部位は透明な窓部117aとされ、スイッチ113〜115に対
応する部位は開口部117bとされている(第5図参照)。
そして、この開口部117b内には上記各スイッチ113〜115
の上方を覆うように操作ボタン118が装着されている。1
21は購入スイッチ113に対応された内蔵ランプである。
The operation panel 110 is, as shown in FIG.
Is mounted on an openable front panel 105 at the lower part of the panel and has a hollow shape with a triangular cross section. The upper surface is inclined forward and downward so that the display is easy to read. Inside the operation panel 110, wiring boards 120A and 120B are arranged in parallel with the display surface 110a. On the board 120A, a money amount indicator 111 composed of 7-segment type LEDs and a ball number indicator 112 are arranged.
However, the switches 113 to 115 and the built-in lamp are mounted on the substrate 120B, and are covered with the display plate 117. A portion of the display plate 117 corresponding to the indicators 111 and 112 is a transparent window 117a, and a portion corresponding to the switches 113 to 115 is an opening 117b (see FIG. 5).
The switches 113 to 115 are provided in the opening 117b.
The operation button 118 is mounted so as to cover the upper part of the camera. 1
Reference numeral 21 denotes a built-in lamp corresponding to the purchase switch 113.

また、操作パネル110前端には、半透明なフレネルレ
ンズ119等で表示ランプ123が覆われてなる遊技状態表示
部116が設けられており、この表示ランプ123は打球発射
装置103の操作ダイヤル104を回すと点灯されるようにな
っている。
Further, at the front end of the operation panel 110, a game state display section 116 in which a display lamp 123 is covered with a translucent Fresnel lens 119 or the like is provided, and the display lamp 123 operates the operation dial 104 of the hitting ball firing device 103. It is lit when turned.

さらに、操作パネル110の側部(実施例では左側)に
は、ストップスイッチ124を内蔵した操作ボタン125が装
着されており、このスイッチ124をオンさせると、遊技
部内に配設された役物の作動を停止させるなど遊技に関
連する指令を与えることができるようになっている。ス
トップスイッチ124は、操作パネル110内に配設された配
線基板120C上に取り付けられ、この配線基板120Cから延
設された配線群126Cおよび前記各基板120A,120Bから延
設された配線群126A,126Bが外部に引き出され、その端
部に結合されたコネクタ127A〜127Cにてパチンコ機裏面
下部に配置されたパチンコ機制御装置195に接続可能に
されている。
Further, an operation button 125 having a built-in stop switch 124 is mounted on a side portion (the left side in the embodiment) of the operation panel 110, and when the switch 124 is turned on, an accessory provided in the game section is activated. Commands relating to the game, such as stopping the operation, can be given. The stop switch 124 is mounted on a wiring board 120C provided in the operation panel 110, and a wiring group 126C extending from the wiring board 120C and a wiring group 126A extending from each of the boards 120A and 120B. 126B is pulled out to the outside, and can be connected to a pachinko machine control device 195 arranged at the lower part of the back of the pachinko machine via connectors 127A to 127C connected to its ends.

一方、本実施例の遊技機を構成するパチンコ機100
は、機内に封入された遊技球を循環使用する密閉型遊技
機として構成されており、封入球を循環させる封入球循
環装置130を裏面に有している。
On the other hand, the pachinko machine 100 constituting the gaming machine of the present embodiment
Is configured as a closed-type game machine that circulates and uses game balls sealed in the machine, and has a sealed ball circulation device 130 for circulating the sealed balls on the back surface.

パチンコ機100の裏面の構成例を第13図に示す。 FIG. 13 shows a configuration example of the back surface of the pachinko machine 100.

遊技盤前面の遊技領域内に設けられた入賞領域に対応
して遊技盤を貫通するように形成された複数の入賞球導
出孔を覆う入賞球集合樋131が、フレーム106に保持され
た遊技盤の裏面に取り付けられている。入賞球集合樋13
1の底壁は中央に向かって下り傾斜されて案内棚131aと
され、その下方に、第7図のごとくアウト球樋132aと第
1セーフ球樋132b、第2セーフ球樋132cとが一体に形成
されてなる誘導樋132が配設されている。この誘導樋132
内の各樋の途中には、一対の投光、受光器からなる光電
式のアウトセンサSNS1と第1セーフセンサSNS2、第2セ
ーフセンサSNS3が取り付けられている。また、誘導樋13
2は、各樋に流入した球を一箇所に集める合流樋部132d
を備え、合流樋部132dの終端は、第7図に示すようにパ
チンコ球を一列に整列せしめるべく緩やかに傾斜された
案内樋133の上流側に接続され、これによって封入球循
環装置130が構成されている。そして、案内樋133の上流
側には発射レールに沿って打ち出された打球がレール基
部に向かって戻ってしまういわゆるファール球を回収す
べく発射レールの上端に設けられたファール球受入口13
4(第9図参照)に臨むように配設されるファール球樋1
33aが一体に形成されており、ファール球は誘導樋132を
介して案内樋133上に流下された球と合流されるように
なっている。ファール球樋133aの途中にはファールセン
サSNS4が配設されている。
A game board in which a plurality of winning ball collecting troughs 131 covering a plurality of winning ball derivation holes formed so as to penetrate the game board corresponding to a winning area provided in a game area on the front of the game board are held by a frame 106. It is attached to the back of. Winning ball assembly gutter 13
The bottom wall 1 is inclined downward toward the center to form a guide shelf 131a, below which an out ball gutter 132a, a first safe ball gutter 132b, and a second safe ball gutter 132c are integrally formed as shown in FIG. The formed guiding gutter 132 is provided. This gutter 132
In the middle of each gutter, a photoelectric out sensor SNS1, a first safe sensor SNS2, and a second safe sensor SNS3 each comprising a pair of light emitting and receiving devices are mounted. In addition, guide gutter 13
2 is a merging gutter section 132d that collects the balls flowing into each gutter at one place
The end of the merging gutter section 132d is connected to the upstream side of the guide gutter 133 which is gently inclined to align the pachinko balls in a line as shown in FIG. 7, thereby forming the sealed ball circulation device 130. Have been. On the upstream side of the guide gutter 133, a foul ball receiving port 13 provided at an upper end of the firing rail to collect a so-called foul ball in which a hit ball hit along the firing rail returns toward the rail base.
Foul ball gutter 1 installed facing 4 (see Fig. 9)
The ball 33a is formed integrally, and the foul ball merges with the ball that has flowed down onto the guide gutter 133 via the guide gutter 132. A foul sensor SNS4 is provided in the middle of the foul ball gutter 133a.

そして、上記案内樋133の下端部に、対向して、球一
つ分の収納部135aを有し、案内樋133上の球を一個ずつ
分離して下方へ流下せしめる球送り135が揺動可能に取
付けられている。球送り135の後方にはストッパ136が固
設され、球送り135の必要以上の回動を阻止して球送り1
35が流入した球の重みで下方へ回動したときにその上辺
端面が案内樋133上の球の流下を阻止できるようになっ
ている。さらに、案内樋133の途中には回動自在な球な
らし137が取り付けられているとともに、下流にはスラ
イド式の球抜き機構138が設けられている。
And, at the lower end of the guide gutter 133, there is a storage portion 135a for one ball, facing the lower end of the guide gutter 133, and a ball feed 135 for separating the balls on the guide gutter 133 one by one and allowing the balls to flow downward can swing. Mounted on A stopper 136 is fixed behind the ball feeder 135 to prevent the ball feeder 135 from rotating more than necessary.
When the ball 35 rotates downward by the weight of the ball that has flowed in, the upper end surface can prevent the ball from flowing down on the guide gutter 133. Further, a rotatable ball leveler 137 is attached in the middle of the guide gutter 133, and a slide type ball removing mechanism 138 is provided downstream.

この球抜き機構138は、第8図に示すように、封入球
循環装置130がフレームボード109の裏面に装着された状
態では、フレームボード裏面に突設された阻止片148に
よって横方向のスライドが阻止され、球抜きを行えない
ようになっている。しかして、封入球循環装置130はそ
の一側(第8図では右側)に設けられたヒンジ部139に
て全体が回動できるように取り付けられており、ヒンジ
部139を中心にして後方へ回動されると、球抜き機構138
をスライドさせて球抜きを行える。しかも、案内樋133
の端部には弾性係止片133aが固着されており、これをフ
レームボード109の係合段部149に係合させることで、封
入球循環装置130を回動できないように固定させること
ができる。
As shown in FIG. 8, when the enclosing ball circulation device 130 is mounted on the back surface of the frame board 109, the ball removing mechanism 138 slides laterally by a blocking piece 148 protruding from the back surface of the frame board. He was blocked and could not remove the ball. The enclosed ball circulating device 130 is mounted so as to be able to rotate as a whole by a hinge portion 139 provided on one side (the right side in FIG. 8), and is rotated backward around the hinge portion 139. When moved, the ball removal mechanism 138
Slide to remove the ball. Moreover, the guide gutter 133
An elastic locking piece 133a is fixed to the end of the frame board 109. By engaging this with the engaging step portion 149 of the frame board 109, the sealed ball circulation device 130 can be fixed so as not to rotate. .

球送り135により分離されたパチンコ球は、前面パネ
ル105の後方に配設されたフレームボード109に形成され
た球通過孔139(第9図参照)を通って、フレームボー
ドの前面に斜めに固着された発射レール140の基部に一
個宛流下される。そして、この発射レール140の基部に
臨むように発射杆103aが配設される(第10図参照)。こ
れとともに、発射レール140の基部の下方には、上記発
射杆103aに連動して回動され、上記球送り135を上方へ
押し上げる押上げ片141aを有する連動部材141が配設さ
れている。
The pachinko balls separated by the ball feed 135 pass through ball passage holes 139 (see FIG. 9) formed in the frame board 109 disposed behind the front panel 105 and are fixed to the front of the frame board at an angle. One of them flows down to the base of the fired rail 140. Then, the firing rod 103a is disposed so as to face the base of the firing rail 140 (see FIG. 10). At the same time, below the base of the firing rail 140, there is provided an interlocking member 141 having a push-up piece 141a which is rotated in conjunction with the firing rod 103a and pushes up the ball feed 135 upward.

また、発射レール140の上面には球を誘導するため凹
状の溝が形成されているとともに、フレームボード109
の前面にはレール上を通過する球を検出する反射型光電
スイッチからなる発射センサSNS5がブラケット142によ
ってレール上面と球一つ分以上の間隔をおいて装着さ
れ、この発射センサSN55の取付けブラケット142の上端
には、戻り球がこのセンサを飛び越してしまうのを防止
する戻り球阻止壁143が設けられている。さらに、発射
レール140の上端に対応してフレームボード109には戻り
球をフレームボード後方の誘導樋132内へ導くファール
球受入口134が形成され、このファール球受入口134の下
辺に沿って球受け片144が突設されている。
In addition, a concave groove for guiding a sphere is formed on the upper surface of the firing rail 140, and the frame board 109
On the front surface of the sensor, a firing sensor SNS5 composed of a reflection type photoelectric switch for detecting a ball passing on the rail is mounted by a bracket 142 at a distance of at least one ball from the upper surface of the rail, and a mounting bracket 142 for the firing sensor SN55 is mounted. A return ball blocking wall 143 that prevents the return ball from jumping over the sensor is provided at the upper end of the sensor. Further, a foul ball receiving port 134 is formed in the frame board 109 corresponding to the upper end of the firing rail 140 to guide the return ball into the guiding gutter 132 behind the frame board, and the ball extends along the lower side of the foul ball receiving port 134. A receiving piece 144 protrudes.

なお、フレームボード109の上端には遊技盤の載置部1
09aが設けられているとともに、両端には遊技盤位置決
め用突起145が立設されている。また、フレームボード1
09の上端に沿って、遊技盤を保持するためのフレーム10
6が係合可能な溝を有するフレーム係合部146が形成され
ており、第11図に示すように、フレームボード109の上
方よりフレーム106を位置決め用突起145に沿って降下さ
せ、下端をフレーム係合部146の溝に係合させることに
より両者を結合することができるようになっている。上
記フレーム106の側壁には遊技盤を着脱可能に係合する
係止具106aが4個設けられており、フレーム106に保持
された遊技盤をフレームボード109の載置部109aに載置
させた状態で止着具147を締め付けて固定する。なお、
フレームボード109の前面一側(第9図では左側)には
遊技に関連した効果音を発生するスピーカ150が取り付
けられている。
In addition, on the upper end of the frame board 109, the mounting portion 1 of the game board
09a is provided, and game board positioning projections 145 are provided upright at both ends. Also, frame board 1
Along the top edge of 09, a frame 10 for holding the game board
A frame engaging portion 146 having a groove engageable with the frame 6 is formed, and as shown in FIG. 11, the frame 106 is lowered along the positioning protrusion 145 from above the frame board 109, and the lower end is formed on the frame board 109. By engaging with the groove of the engaging portion 146, both can be connected. On the side wall of the frame 106, four locking members 106a for detachably engaging the game board are provided, and the game board held by the frame 106 is mounted on the mounting portion 109a of the frame board 109. In this state, the fastener 147 is tightened and fixed. In addition,
On one side of the front of the frame board 109 (left side in FIG. 9), a speaker 150 for generating a sound effect related to the game is attached.

一方、フレームボード109の前方を覆う前面パネル105
は第10図に示すように、前面枠108内側の保持枠108cで
縁取られた開口部下部に一端(左端)を支点に開閉可能
に装着され、その裏側には発射レール140に対応して、
その上方に位置される発射レール枠151が固着され、こ
の発射レール枠151の途中には、前記発射センサSNS5が
枠内に臨むことができるようにするための切欠き151aが
設けられている。また、前面パネル105のヒンジと反対
側の端部裏面には、ロックレバー152が設けられてい
る。前面枠108内の上記前面パネル105上方には、ガラス
枠154が同じく開閉可能に取り付けられている。一方、
前面枠108の裏面のヒンジ部102と反対側の一側には、第
12図に示すように、前面を機枠101に係止させるための
係止具156とその施錠装置157とが装着されている。ま
た、155のガラス枠154の開放レバーである。
On the other hand, a front panel 105 covering the front of the frame board 109
As shown in FIG. 10, is mounted at the lower part of the opening framed by the holding frame 108c inside the front frame 108 so as to be openable and closable with one end (left end) as a fulcrum.
A firing rail frame 151 positioned above is fixed, and a cutout 151a is provided in the middle of the firing rail frame 151 so that the firing sensor SNS5 can face the inside of the frame. Further, a lock lever 152 is provided on the back surface of the end of the front panel 105 opposite to the hinge. Above the front panel 105 in the front frame 108, a glass frame 154 is similarly openably opened. on the other hand,
On one side of the rear surface of the front frame 108 opposite to the hinge portion 102, a
As shown in FIG. 12, a locking device 156 for locking the front surface to the machine frame 101 and a locking device 157 thereof are mounted. Further, it is an opening lever of the glass frame 154 of 155.

この前面枠108の裏面に、遊技盤を保持したフレーム1
06(第11図参照)とフレームボード109を、前面枠裏面
の嵌合受部108bにフレーム裏面の嵌合突起106b、フレー
ムボード裏面の嵌合突起109bを一致させるようにして接
合させ、ネジ止めすることにより前面枠108と遊技盤を
保持したフレーム106とフレームボード109とが一体化さ
れる。
On the back of this front frame 108, a frame 1 holding a game board
06 (see FIG. 11) and the frame board 109 are joined to the fitting receiving portion 108b on the back of the front frame so that the fitting projection 106b on the back of the frame and the fitting projection 109b on the back of the frame board are aligned, and screwed. By doing so, the front frame 108, the frame 106 holding the game board, and the frame board 109 are integrated.

第13図はこのようにして前面枠108の裏面にフレーム1
06とフレームボード109を取り付けた状態を示してお
り、フレーム106に保持された遊技盤の裏面には更に入
賞球集合樋131が装着され、またフレームボード109の下
方にはパチンコ機制御装置195が配設されている。さら
に、フレーム106および入賞球集合樋131の裏面には遊技
の制御装置158や中継基板159が装着されている。
FIG. 13 shows the frame 1 on the back of the front frame 108 in this way.
06 and a state where the frame board 109 is attached, a winning ball collecting gutter 131 is further mounted on the back of the game board held by the frame 106, and a pachinko machine control device 195 is provided below the frame board 109. It is arranged. Further, a game control device 158 and a relay board 159 are mounted on the back surfaces of the frame 106 and the winning ball collecting gutter 131.

第14図〜第16図には、パチンコ機100と別個に構成さ
れた制御ユニット160の実施例が示されている。
FIGS. 14 to 16 show an embodiment of the control unit 160 which is configured separately from the pachinko machine 100. FIG.

この実施例の制御ユニット160は、収納枠161の前面に
パチンコ機の状態を示す状態表示器162と、複数個のラ
ンプが一列に整列されてなるアナログ表示器163、入賞
球発生表示用のセーフ球ランプ164、係員呼出し用の呼
出しボタン165等を有している。上記アナログ表示器163
は、遊技中の持玉数をアナログ的に表示したり、打止め
状態やフリー状態を同時点滅と移動点滅で表示するのに
用いられる。
The control unit 160 of this embodiment includes a status indicator 162 on the front of the storage frame 161 indicating the status of the pachinko machine, an analog indicator 163 in which a plurality of lamps are arranged in a line, and a safe It has a ball lamp 164, a call button 165 for calling a clerk, and the like. The above analog display 163
Is used to display the number of balls in play in an analog manner, and to display a hit state and a free state by simultaneous blinking and moving blinking.

また、収納枠161内にはスピーカ166とカードリーダ80
0が内蔵され、収納枠前面にはカードリーダ800のカード
挿排口802aが露出されており、この挿排口802aの上方に
はカードリーダ内にカードがあるか否か示すカード保持
表示ランプ167(LED1)が、カード挿排口802aの下方に
は制御ユニット160にカードを挿入可能な状態にあるか
否か表示するカード挿入表示ランプ168が配置されてい
る。
In the storage frame 161, a speaker 166 and a card reader 80 are provided.
0 is built in, and a card insertion / ejection opening 802a of the card reader 800 is exposed on the front surface of the storage frame. A card holding display lamp 167 above the insertion / ejection opening 802a indicates whether or not there is a card in the card reader. Below the card insertion / ejection opening 802a, a card insertion indicator lamp 168 for indicating whether or not a card can be inserted into the control unit 160 is arranged.

さらに、制御ユニット160の収納枠161の前面パネル16
1aの内側には、パチンコ機100を管理装置400と切り離し
た特異状態で、後述のテストカードを用いて遊技動作を
可能にさせるためのテストスイッチ179が配設され、収
納枠の前面にはそのスイッチをピンを用いて外部からオ
ンさせることができるようにするためのピン挿入孔169
と、当該パチンコ機に与えられる台番号を明示する銘板
170がそれぞれ設けられている。
Furthermore, the front panel 16 of the storage frame 161 of the control unit 160
Inside 1a, a test switch 179 for enabling a game operation using a test card described later is arranged in a peculiar state in which the pachinko machine 100 is separated from the management device 400, and the test switch 179 is provided on the front of the storage frame. Pin insertion hole 169 for enabling the switch to be turned on externally using a pin
And a nameplate indicating the machine number given to the pachinko machine
170 are provided respectively.

そして、制御ユニット160の前面パネル161aの内側に
は、第15図に示すように台番号の銘板170に表示された
台番号の設定スイッチ171と、上記状態表示器162やアナ
ログ表示器163、セーフランプ164の内蔵ランプ群L11〜L
15,L21〜L28,L31,L32(第16図参照)を有するランプ基
板172と、上記スピーカ166およびカード挿入ランプ168
の保持基板173が装着されている。また、呼出しボタン1
65の後方には呼出しスイッチ165aが配設されている。
Then, inside the front panel 161a of the control unit 160, a setting switch 171 for the machine number displayed on the machine name plate 170 as shown in FIG. 15, the status indicator 162, the analog indicator 163, and the safe Built-in lamp group L11 to L of lamp 164
A lamp substrate 172 having 15, L21 to L28, L31, L32 (see FIG. 16), the speaker 166 and the card insertion lamp 168
The holding substrate 173 is mounted. Also, call button 1
A call switch 165a is provided behind 65.

さらに、収納枠161内には、カードリーダ800と、制御
ユニット160全体の制御を司るユニットコントローラ190
や伝送手段、モニタ表示器174,175,176を有するユニッ
ト制御装置180とカードリーダ制御装置188および電源装
置177が内蔵されている。また、カードリーダ800の下方
には、カードリーダ内の穿孔装置(後述)によって穿孔
を行った際に生じる穿孔片の収納箱178が着脱可能に配
置されている。なお、カードリーダ制御装置188を構成
する基板上には、上記カードリーダに対してカードの強
制排出を指令するカード排出スイッチが設けられている
(図示省略)。
Further, a card reader 800 and a unit controller 190 for controlling the entire control unit 160 are provided in the storage frame 161.
The control unit 180 includes a unit control unit 180 having a communication unit, a transmission unit, and monitor displays 174, 175, and 176, a card reader control unit 188, and a power supply unit 177. Further, below the card reader 800, a storage box 178 for perforated pieces generated when a perforation is performed by a perforation device (described later) in the card reader is detachably arranged. A card ejection switch (not shown) for instructing the card reader to forcibly eject a card is provided on a substrate constituting the card reader control device 188.

上記制御ユニット160は、前面パネル161aの自由端側
に係止具179aとその解除レバー179bが設けられており、
解除レバー179bは前面パネル161aの下端に形成された開
口部161bに臨むようにされている。そして、制御ユニッ
ト160は、第17図に示すようにパチンコ機100の機枠101
およびこれと同一高さのユニット設置台24上に載置され
るようにされており、しかもこのとき前面パネル161aが
パチンコ機の前面枠108と同一平面をなすように配置さ
れる。従って、解除レバー179bが臨む前面パネル161の
開口部161bは、通常前面枠108の上面で閉塞され、前面
枠108を開くことによって開口部161bが露出され、解除
レバー179bを操作することができるようになる。これに
よって、制御ユニット160には施錠装置を設ける必要が
なくなる。
The control unit 160 has a locking tool 179a and a release lever 179b provided on a free end side of the front panel 161a,
The release lever 179b faces the opening 161b formed at the lower end of the front panel 161a. Then, the control unit 160 controls the machine frame 101 of the pachinko machine 100 as shown in FIG.
In addition, the front panel 161a is arranged so as to be flush with the front frame 108 of the pachinko machine at this time. Therefore, the opening 161b of the front panel 161 facing the release lever 179b is normally closed on the upper surface of the front frame 108, and the opening 161b is exposed by opening the front frame 108 so that the release lever 179b can be operated. become. This eliminates the need for the control unit 160 to be provided with a locking device.

なお、制御ユニット160内のユニット制御装置180は、
光ファイバもしくは同軸ケーブルのような伝送路によっ
て、パチンコ機100の制御装置195に、また後述の伝送コ
ントローラおよびローカルネットワーク(伝送ケーブ
ル)を介して管理装置400に接続される。
The unit control device 180 in the control unit 160 includes:
A transmission path such as an optical fiber or a coaxial cable is connected to the control device 195 of the pachinko machine 100 and to the management device 400 via a transmission controller and a local network (transmission cable) described later.

実施例の制御ユニット160はいずれの伝送路を用いて
もデータ伝送が行えるようにするため、収納枠161の裏
面に光ファイバ用コネクタ186と同軸ケーブル用コネク
タ187が設けられている(第20図参照)。
In the control unit 160 of the embodiment, an optical fiber connector 186 and a coaxial cable connector 187 are provided on the back surface of the storage frame 161 in order to perform data transmission using any transmission path (FIG. 20). reference).

第18図〜第20図には、上記パチンコ機100と制御ユニ
ット160とからなる遊技機を載置する島設備の一例とそ
れに遊技機を装備させた状態が示されている。
FIGS. 18 to 20 show an example of an island facility on which a gaming machine including the pachinko machine 100 and the control unit 160 is mounted, and a state in which the gaming machine is equipped therewith.

この実施例の島設備は、基台21上に遊技機の幅に等し
い間隔をおいて複数本の支柱22が立設され、床から60cm
程度の高さの位置には水平な載置台23が支柱22にて固定
されている。また、この載置台23の上方には、前記機枠
101の高さ分だけ離れた位置に第1の設置棚24が、さら
にその上方には第2の設置棚25がそれぞれ支柱22にて固
定されているとともに、第2設置棚25の上方には支柱22
の上端を覆うように天板26が固定されている。なお、上
記載置台23の前端は支柱22よりも少し手前に突出するよ
うにされ、第1設置台24はその前端が支柱22よりも機枠
101の厚み分だけ後方に位置するようにされている。
In the island facility of this embodiment, a plurality of pillars 22 are erected on the base 21 at intervals equal to the width of the gaming machine, and 60 cm from the floor.
A horizontal mounting table 23 is fixed at a height of about a level by a column 22. In addition, above the mounting table 23,
A first installation shelf 24 is fixed at a position separated by the height of 101, and a second installation shelf 25 is further fixed above the first installation shelf 24 by a column 22, and above the second installation shelf 25. Prop 22
A top plate 26 is fixed so as to cover the upper end of the top plate. In addition, the front end of the mounting table 23 is configured to protrude slightly forward from the support 22, and the first mounting table 24 has a front end that is closer to the machine frame than the support 22.
It is configured to be located rearward by the thickness of 101.

そして、上記支柱22間の載置台23上にそれぞれパチン
コ機100が機枠101とともに載置され、第1設置台24から
これと同一平面をなす機枠101上にかけて制御ユニット1
60が載置される。また、第2設置台25上にはローカルネ
ットワークを構成する伝送路(図示省略)が延設され、
かつ各支柱22間には上記伝送路を介して管理装置400と
の間でデータ伝送を行うためのトランシーバ185が載置
される。なお、トランシーバ185の前方は上板27で閉塞
され、載置台23の下方は下板28で閉塞される。
Then, the pachinko machines 100 are mounted together with the machine frames 101 on the mounting tables 23 between the columns 22, and the control unit 1 extends from the first mounting table 24 to the machine frames 101 on the same plane as this.
60 is placed. A transmission line (not shown) constituting a local network extends on the second installation table 25,
In addition, a transceiver 185 for transmitting data to and from the management device 400 via the transmission path is mounted between the columns 22. The front of the transceiver 185 is closed by the upper plate 27, and the lower part of the mounting table 23 is closed by the lower plate 28.

さらに、図示しないが、載置台23の下面には24Vの電
源ラインが延設され、天板26の下面には100Vの電源ライ
ンが延設されている。そして、載置台23上面の各遊技機
に対応した位置には24V電源用のコンセント30が、また
天板26の下面の桟29には100V電源用のコンセント31が各
遊技機に対応して3個ずつ設けられている(第20図参
照)。
Further, although not shown, a 24 V power supply line extends on the lower surface of the mounting table 23, and a 100 V power line extends on the lower surface of the top plate 26. An outlet 30 for 24V power supply is provided at a position on the upper surface of the mounting table 23 corresponding to each gaming machine, and an outlet 31 for 100V power supply is provided on the bar 29 on the lower surface of the top plate 26 in correspondence with each gaming machine. They are provided individually (see FIG. 20).

第21図にパチンコ機100と制御ユニット160とからなる
遊技機全体の制御システムの構成例が示されている。
FIG. 21 shows a configuration example of a control system of the entire gaming machine including the pachinko machine 100 and the control unit 160.

同図において188は、第26図に示されているカードリ
ーダ800の各構成部品たる搬送モータ807、磁気ヘッド82
1、穿孔装置820等を制御するカードリーダ制御装置であ
る。そして、このカードリーダ制御装置188およびパチ
ンコ機制御装置195と制御ユニット160に設けられた各種
スイッチ171,179や表示器162,163,164,168、スピーカ16
6は、ユニット制御装置180によって制御されるようにな
っている。
In the figure, reference numeral 188 denotes a transport motor 807 and a magnetic head 82, each of which is a component of the card reader 800 shown in FIG.
1. A card reader control device for controlling the punching device 820 and the like. Then, various switches 171, 179, indicators 162, 163, 164, 168, and speakers 16 provided in the card reader controller 188, the pachinko machine controller 195 and the control unit 160 are provided.
6 is controlled by the unit controller 180.

また、特に制限されないが、この実施例では光ケーブ
ル191を介して、パチンコ機100の制御装置195が上記ユ
ニット制御装置180に接続され、各種センサからの検出
信号が入力されるとともに、表示器等に対する駆動制御
信号が出力される。光ファイバケーブルによる通信を可
能にするため、パラレルデータとシリアルデータの変換
を行なう並−直列変換器や電気信号と光信号との変換を
行なう光−電変換器等からなる光多重データリンク(イ
ンタフェース)が、ユニット制御装置180と光ファイバ
ケーブル191との間および光ファイバケーブル191とパチ
ンコ機制御装置915との接続部にそれぞれ設けられてい
る(後述)。
Further, although not particularly limited, in this embodiment, the control device 195 of the pachinko machine 100 is connected to the unit control device 180 via the optical cable 191 and detection signals from various sensors are input, and the display device and the like are connected. A drive control signal is output. To enable communication using an optical fiber cable, an optical multiplexed data link (interface) including a parallel-to-serial converter for converting parallel data and serial data, an optical-to-electric converter for converting electric signals to optical signals, and the like. ) Are provided between the unit controller 180 and the optical fiber cable 191 and at the connection between the optical fiber cable 191 and the pachinko machine controller 915 (described later).

光ファイバケーブル191をユニット制御装置180とパチ
ンコ機制御装置195との間のデータ通信に使用すること
により、従来パチンコ機の裏側にて複雑に配設されてい
た多数の配線をすっきりさせ、保守、管理を容易にする
とともに、ノイズによる誤動作を防止することができ
る。
By using the optical fiber cable 191 for data communication between the unit control device 180 and the pachinko machine control device 195, a large number of wirings conventionally arranged in a complicated manner on the back side of the pachinko machine are reduced, maintenance, In addition to facilitating management, malfunction due to noise can be prevented.

上記パチンコ機制御装置195の制御下に、金額表示器1
11や玉数表示器112、購入ランプ121、遊技状態表示ラン
プ123や打球発射装置103の制御装置14および役物制御装
置158が置かれているとともに、購入スイッチ113、中断
スイッチ114、終了スイッチ115やアウトセンサ等の球検
出センサSNS1〜SNS5からの信号がパチンコ機制御装置19
5によって波形整形されてユニット制御装置180に供給さ
れるようになっている。そして、この実施例では、電源
系をAC24VとAC100Vの2系統にしパチンコ機100側にはAC
24Vを供給し、制御ユニット160側にはAC100Vを供給して
いる。このように供給電源を別にすることにより、電源
系のトラブルが多いパチンコ店において電源の影響でパ
チンコ機制御ユニットが不用意に破壊するのを防止して
いる。
Under the control of the pachinko machine control device 195, the amount indicator 1
11 and a ball number display 112, a purchase lamp 121, a game state display lamp 123, a control device 14 of the hit ball launching device 103, and a character control device 158, a purchase switch 113, an interrupt switch 114, and an end switch 115. From the ball detection sensors SNS1 to SNS5 such as the pachinko machine control device 19
The waveform is shaped by 5 and supplied to the unit controller 180. In this embodiment, the power supply system is divided into two systems, 24 V AC and 100 V AC, and the pachinko machine 100 has an AC power supply.
24V is supplied, and 100V AC is supplied to the control unit 160 side. Separating the power supply in this way prevents the pachinko machine control unit from being inadvertently destroyed by the influence of the power supply in a pachinko parlor having many problems in the power supply system.

第22図には上記パチンコ機制御装置195の構成例が示
されている。
FIG. 22 shows a configuration example of the pachinko machine control device 195.

パチンコ機制御装置195は、マイクロコンピュータか
らなるパチンコ機コントローラCPU1と、このコントロー
ラCPU1から出力される定期的なウォッチドッグパルスを
監視してパルスが途切れたときにリセット信号を発生す
るリセット回路RST1と、ユニット制御装置180との間の
光データ伝送を可能にするためパレラレル送信データを
シリアルデータに変換する並直変換手段およびシリアル
受信データをパラレルデータに変換する直並変換手段を
備えた多重伝送コントローラCNT1と、光コネクタ193を
介して光ケーブル191と接続される光電変換回路OETと、
各種センサからの検出信号のノイズをカットするフィル
タ回路FLT、金額表示器111や玉数表示器112への表示デ
ータをデコードするデコーダDEC1,DEC2やその出力に基
づいて表示器の駆動信号を形成するドライバDRV1,DRV2
と、購入ランプ121や遊技状態表示ランプ123、打球発射
装置103の駆動信号を形成するドライバDRV3とにより構
成されている。
The pachinko machine control device 195 includes a pachinko machine controller CPU1 composed of a microcomputer, a reset circuit RST1 that monitors a regular watchdog pulse output from the controller CPU1 and generates a reset signal when the pulse is interrupted, A multiplex transmission controller CNT1 provided with parallel-to-parallel conversion means for converting parallel transmission data to serial data and serial-to-parallel conversion means for converting serial reception data to parallel data in order to enable optical data transmission with the unit controller 180. And a photoelectric conversion circuit OET connected to the optical cable 191 via the optical connector 193,
A filter circuit FLT that cuts noise of detection signals from various sensors, decoders DEC1 and DEC2 that decode display data to the money amount display 111 and the ball number display 112, and a display drive signal are formed based on the output thereof. Driver DRV1, DRV2
And a driver DRV3 for generating a drive signal for the hitting ball launching device 103.

このパチンコ機制御装置195におけるセンサからの検
出信号の処理に関しては、単に検出信号からノイズを除
去し一定のパルス幅に整形してから発射球やセーフ球等
の検出データとしてユニット制御装置180へ送る。つま
り、パチンコ機制御装置195側ではセーフ球数等の演算
は行わず、そのような演算はユニット制御装置180の側
で行うようになっている。
Regarding the processing of the detection signal from the sensor in the pachinko machine control device 195, the noise is simply removed from the detection signal, shaped into a fixed pulse width, and then sent to the unit control device 180 as detection data of a launch sphere, a safe sphere, or the like. . In other words, the pachinko machine control device 195 does not calculate the number of safe balls or the like, and such calculation is performed on the unit control device 180 side.

また、パチンコ機では静電気等によりノイズが発生し
易いが、ウォッチドッグパルスを監視するリセット回路
RST1があるためノイズ等によりパチンコ機コントローラ
CPU1が暴走したとしても、暴走により定期的なウォッチ
ドッグパルスがなくなるとリセット信号を発生してCPU
を初期化させるので、暴走を防止することができる。
In pachinko machines, noise is likely to occur due to static electricity, but a reset circuit that monitors watchdog pulses
Pachinko machine controller due to noise etc. due to RST1
Even if CPU1 goes out of control, a reset signal is generated and the CPU
Is initialized, runaway can be prevented.

ウォッチドッグパルスは、CPU内部のタイマカウンタ
からの割込み等によって容易に発生させることができ
る。
The watchdog pulse can be easily generated by an interrupt or the like from a timer counter inside the CPU.

第23図には、ユニット制御装置180の構成例が示され
ている。
FIG. 23 shows a configuration example of the unit control device 180.

ユニット制御装置180は、カードによるパチンコ遊技
を可能にさせるためカードリーダ制御装置188およびパ
チンコ機制御装置195と統括的に制御するユニットコン
トローラ190と、管理装置400とのデータ伝送に係る制御
をするデータ伝送コントローラ551と、データ伝送コン
トローラの制御下でネットワークにおける送受信権の確
立およびデータの直並列変換を行うネットワークコント
ローラ553等から構成されている。そして各コントロー
ラ190と551間および551と553間のデータの受け渡しは、
デュアルポートメモリ(RAM)550および552を介して実
行できるように構成されている。このうち、メモリ552
は、送信データ記憶領域と受信データ記憶領域とに分か
れており、全ての送受信データ長を同一長にする(パケ
ット化)のための調整機能と、データ伝送の高速化(2.
5Mbps)を計るための緩衝機能とをもっている。
The unit controller 180 is a unit controller 190 for controlling the card reader controller 188 and the pachinko machine controller 195 in order to enable a pachinko game with a card, and a unit controller 190 for controlling data transmission with the management device 400. The transmission controller 551 includes a network controller 553 for establishing a transmission / reception right in a network and performing serial / parallel conversion of data under the control of the data transmission controller. And the transfer of data between each controller 190 and 551 and between 551 and 553,
It is configured to run via dual port memory (RAM) 550 and 552. Of which, memory 552
Is divided into a transmission data storage area and a reception data storage area. An adjustment function for equalizing all transmission / reception data lengths (packetization) and a high-speed data transmission (2.
It has a buffer function to measure 5Mbps).

このパケットメモリ552は各々が256バイトの容量を持
つ4つのページで構成され、このうちページ0は送信要
求パケットの送信に、またページ1は定時データ送信パ
ケットの送信に使用される。一方、ページ2,3は、デー
タパケット受信用で交互に使用される。どのページを使
うかは、データ伝送コントローラ551が、ネットワーク
コントローラ553に指示する。データ伝送コントローラ5
51が受信パケットデータの処理中、次のパケットデータ
が送られてきたとしても、他のページに受信されるた
め、確実に全てのパケットを受信できる。各コントロー
ラ551,553を同時に初期化できるようにするため共通の
リセット回路555が設けられている。
The packet memory 552 is composed of four pages each having a capacity of 256 bytes, of which page 0 is used for transmitting a transmission request packet and page 1 is used for transmitting a regular data transmission packet. On the other hand, pages 2 and 3 are used alternately for data packet reception. The data transmission controller 551 instructs the network controller 553 on which page to use. Data transmission controller 5
Even if the next packet data is sent during the processing of the received packet data by 51, all the packets can be received reliably because they are received by another page. A common reset circuit 555 is provided so that the controllers 551 and 553 can be initialized at the same time.

ネットワークコントローラ553の管理装置400との接続
側には、受信データを波形整形するとともに送信データ
のドライブ能力を上げるために信号のレベル変換を行う
信号変換回路554および切換スイッチ542を介して、光コ
ネクタ186に接続可能にされているとともに、低層ネッ
トワークの伝送ラインが同軸ケーブルで構成された場合
にも対応できるように切換スイッチ542を介して、送信
信号と受信信号の分離および結合を図る分岐回路540に
接続可能にされている。上記光コネクタ186には第20図
の光トランシーバ185が接続される。
On the connection side of the network controller 553 with the management device 400, an optical connector is provided via a signal conversion circuit 554 and a changeover switch 542 which perform waveform shaping of received data and level conversion of a signal in order to increase the drive capability of transmitted data. A branch circuit 540 which is connectable to 186 and separates and couples a transmission signal and a reception signal via a changeover switch 542 so as to cope with a case where the transmission line of the low-layer network is constituted by a coaxial cable. Can be connected to The optical transceiver 185 shown in FIG. 20 is connected to the optical connector 186.

さらに、データ伝送コントローラ551とネットワーク
コントローラ553との間には、データ伝送コントローラ5
51からの要求に応じてネットワークコントローラ553が
データの受信結果を記憶するためのラッチ回路561と、
データ伝送コントローラ551が、ネットワークコントロ
ーラ553に対するデータ送信指令等のコマンドを記憶さ
せるラッチ回路562および低層ネットワーク用アドレス
を記憶させるラッチ回路563と、ユニット制御装置180内
の通信制御状態の異常を表示するための3個のLEDラン
プからなるモニタ表示器556への表示データを記憶する
ラッチ回路564が設けられている。557は上記各ラッチ回
路561〜564に与えられたアドレスをデコードして選択信
号を発生するデコーダである。
Further, a data transmission controller 5 is provided between the data transmission controller 551 and the network controller 553.
A latch circuit 561 for the network controller 553 to store the data reception result in response to a request from 51,
A data transmission controller 551 displays a latch circuit 562 for storing a command such as a data transmission command to the network controller 553 and a latch circuit 563 for storing a low-layer network address, and displays an abnormality in a communication control state in the unit control device 180. Is provided with a latch circuit 564 for storing display data to the monitor display 556 composed of three LED lamps. A decoder 557 decodes an address given to each of the latch circuits 561 to 564 and generates a selection signal.

一方、ユニットコントローラ190とカードリーダ制御
装置188との間には送受信データのレベル変換を行うト
ランシーバ571が、またパチンコ機制御装置195との間に
は送受信データの並−直変換を行う多重伝送コントロー
ラ572および光電変換装置573が接続されている。
On the other hand, a transceiver 571 for performing level conversion of transmission / reception data is provided between the unit controller 190 and the card reader control device 188, and a multiplex transmission controller for performing parallel / direct conversion of transmission / reception data between the unit controller 190 and the pachinko machine control device 195. 572 and the photoelectric conversion device 573 are connected.

さらに、ユニットコントローラ190には、データバス5
81を介して、金額、球数表示器の表示データ(セグメン
トデータおよびコモンデータ)をラッチするラッチ回路
574、購入ランプや遊技状態表示ランプ、打球発射装置
に対する制御信号をラッチするラッチ回路575、パチン
コ機100および制御ユニット160に設けられた各種スイッ
チからの入力信号を所定のタイミングでデータバス581
上にのせたり各種ランプを表示させる出力信号をラッチ
したりする入出力コントローラ576と、制御ユニット160
内のスピーカ166より発生させる音声データ等をラッチ
するラッチ回路577が接続されている。
Furthermore, the unit controller 190 has a data bus 5
Latch circuit that latches display data (segment data and common data) of the monetary value and ball count display via 81
574, a purchase lamp, a game state display lamp, a latch circuit 575 for latching a control signal for the hit ball launching device, and input signals from various switches provided in the pachinko machine 100 and the control unit 160 at a predetermined timing on the data bus 581.
An input / output controller 576 for latching output signals for mounting on top or displaying various lamps, and a control unit 160
A latch circuit 577 for latching audio data and the like generated from the speaker 166 is connected.

582は音声合成LSI、583は高周波成分をカットして音
質を高めるローパスフィルタ、584は音量を調整するア
ンプで、このうち音声合成LSI582は、複数の音声データ
を内蔵のEPROM内に記憶しており、ユニットコントロー
ラ190から与えられる選択信号(S0〜S3)に応じて音声
データを選択して開始信号STに同期して音声信号を出力
し、リセット信号Rによって出力を停止する。
582 is a voice synthesis LSI, 583 is a low-pass filter that cuts high-frequency components to improve sound quality, and 584 is an amplifier that adjusts the volume.The voice synthesis LSI 582 stores multiple voice data in a built-in EPROM. In response to the selection signal (S0 to S3) given from the unit controller 190, the audio data is selected, the audio signal is output in synchronization with the start signal ST, and the output is stopped by the reset signal R.

なお、558はユニットコントローラ190の制御プログラ
ムを格納したプログラムROM、559は伝送コントローラ55
1の制御プログラムを格納したプログラムROMである。58
5はユニットコントローラ190から出力されるアドレス信
号をデコードして、プログラムメモリ558やユニットメ
モリ550、ラッチ回路574,575,577および入出力コントロ
ーラ576の選択信号を形成するデコーダである。
558 is a program ROM storing a control program of the unit controller 190, and 559 is a transmission controller 55
This is a program ROM storing the control program of No. 1. 58
Reference numeral 5 denotes a decoder that decodes an address signal output from the unit controller 190 and forms a selection signal for the program memory 558, the unit memory 550, the latch circuits 574, 575, 577, and the input / output controller 576.

上記のごとくユニット制御装置180は、管理装置400、
カードリーダ制御装置188、パチンコ機制御装置195の三
方に情報交換の窓口を有しており、管理装置400の制御
下のもとにカードでパチンコ遊技をさせるための制御を
するとともに、遊技結果として発生するパチンコ機遊技
情報を定期的に管理装置に送信するソフトウェアを有し
ている。さらに、この実施例のユニット制御装置180に
おいては、金額、玉数表示器を駆動させるべくユニット
コントローラ190から出力される表示データのうち、桁
セレクト信号(コモン信号)は例えば2msのような間隔
で周期的に出力される点に着目して、これをリセット回
路555に、ウォッチドッグパルスとして入力するように
している。リセット回路555はパワーオンリセットの
他、このウォッチドッグパルスを監視してパルスがなく
なるとリセット信号を発生するように構成されている。
As described above, the unit control device 180 includes the management device 400,
The three sides of the card reader control device 188 and the pachinko machine control device 195 have information exchange windows, and under the control of the management device 400, perform control for causing a pachinko game to be played with a card, and as a game result It has software for periodically transmitting generated pachinko machine game information to the management device. Further, in the unit control device 180 of this embodiment, the digit select signal (common signal) of the display data output from the unit controller 190 for driving the monetary value and the number of balls is displayed at intervals of, for example, 2 ms. Paying attention to the point of periodic output, this is input to the reset circuit 555 as a watchdog pulse. In addition to the power-on reset, the reset circuit 555 monitors the watchdog pulse and generates a reset signal when the pulse disappears.

従って、ユニットコントローラ190がノイズ等により
暴走したとしても、暴走すると正常な間隔でコモン信号
が出力されなくなるため、リセット回路555が作動して
ユニットコントローラ190およびデータ伝送コントロー
ラ551が初期化され、暴走が回避されるようになる。
Therefore, even if the unit controller 190 runs away due to noise or the like, the common signal is not output at regular intervals when the runaway occurs, so that the reset circuit 555 operates to initialize the unit controller 190 and the data transmission controller 551, and the runaway occurs. Will be avoided.

これとともに、ユニットコントローラ190は、内部に
タイマカウンタを有しており、送信要求に対する応答と
してのACK(肯定)またはNAK(否定)が一定時間(ex,1
0秒)内に返ってこなかったり、ACK受信後一定時間(e
x.2秒)内にパケットを送信できないとき、あるいは内
部メモリ(RAM)の乱れを検出したときに、強制的に上
記コモン信号をロウまたはハイレベルに固定することに
より、自らリセットをかけることができるようになって
いる。なお、上記内部メモリの乱れは、例えば初期化の
際にメモリ内の所定の番地に特定のコード(A55A等)を
書き込んでおいて、それを1m秒ごとに割込み処理でチェ
ックすることで容易に検出することができる。
At the same time, the unit controller 190 has a timer counter inside, and ACK (positive) or NAK (negative) as a response to the transmission request is transmitted for a predetermined time (ex, 1).
0 seconds), or after a certain time (e
x.2 seconds), when a packet cannot be transmitted, or when a disturbance in the internal memory (RAM) is detected, the common signal can be forcibly fixed to a low or high level to reset itself. I can do it. Note that the disturbance of the internal memory can be easily performed by writing a specific code (A55A or the like) at a predetermined address in the memory at the time of initialization, for example, and checking it by interrupt processing every 1 ms. Can be detected.

さらに、実施例のユニット制御装置180は、データ伝
送コントローラ553が一定時間(5.12秒)内にデータを
送信できないときもユニットコントローラ190を初期化
させ、異常なデータが管理装置400に送信されたりしな
いように対処している。すなわち、実施例では、ユニッ
トメモリ550内にウォッチドッグカウンタ領域を設け、
データ伝送コントローラ551が、管理装置に対してデー
タを送信する度に所定のコードFFをセットし、ユニット
コントローラ190が20msごとにこのカウンタを「1」ず
つカウントダウンさせる。従って、仮りにデータ伝送コ
ントローラが5.12秒以上送信できない状態が続いたとす
ると、ユニットメモリ550のウォッチドッグカウンタは
「0」になるので、このカウンタを監視して、「0」に
なったならばデータ伝送コントローラ551がダウンした
と判定して、自らリセットをかけるようにすることがで
きる。
Further, the unit control device 180 of the embodiment initializes the unit controller 190 even when the data transmission controller 553 cannot transmit data within a certain time (5.12 seconds), so that abnormal data is not transmitted to the management device 400. Is being dealt with. That is, in the embodiment, a watchdog counter area is provided in the unit memory 550,
The data transmission controller 551 sets a predetermined code FF every time data is transmitted to the management device, and the unit controller 190 counts down this counter by “1” every 20 ms. Therefore, if the state in which the data transmission controller cannot transmit for 5.12 seconds or more continues, the watchdog counter of the unit memory 550 becomes “0”, and this counter is monitored. It can be determined that the transmission controller 551 has gone down and reset itself.

しかも、この実施例では、ユニットメモリ550とし
て、ある所定の番地(7FE)にデータを書くと所定の端
子INTが立ち上がるような特殊なRAMが使用されており、
この機能を利用して、システムの立上り時にデータ伝送
コントローラ551が上記所定番地にデータを書き込んで
端子INTを立ち上げ、その端子の信号をユニットコント
ローラ190に入れて、ユニットメモリの使用に対するコ
ントローラ間の同期をとるようにしている。なお、上記
特定の端子INTはユニットコントローラ190が上記所定の
番地のデータをリードする立ち下がるようになってい
る。
Moreover, in this embodiment, a special RAM is used as the unit memory 550 such that when data is written at a certain predetermined address (7FE), a predetermined terminal INT rises.
Using this function, at the time of system startup, the data transmission controller 551 writes data to the above-mentioned predetermined address to start up the terminal INT, and inputs the signal of the terminal to the unit controller 190 so that the controller for use of the unit memory can be used. Synchronize. Note that the specific terminal INT falls so that the unit controller 190 reads data at the predetermined address.

一方、システム立ち上げ時における管理装置400との
同期は、データ伝送コントローラ551によってなされ、
データ伝送コントローラが管理装置400から発信される
回線テスト指令(後述)を受信し、その受信応答を管理
装置400に送信することによってなされる。
On the other hand, at the time of system startup, synchronization with the management device 400 is performed by the data transmission controller 551.
This is performed by the data transmission controller receiving a line test command (described below) transmitted from the management device 400 and transmitting a reception response to the management device 400.

ところで、前述したようにパチンコ機制御装置195側
では、セーフ球数等の演算は行わず、そのような演算は
ユニット制御装置180の側で行うようになっており、ユ
ニットコントローラ190には、セーフ信号等遊技球に関
する検出信号や購入スイッチ113からの信号が入力され
ている。ユニットコントローラ190は、これらの信号に
基づいて、出玉数、アウト玉数、持玉数、売上金額等の
稼働データを演算したり、パチンコ機に関する稼働情報
(遊技状態)やモニタ情報等を生成し、それらをデュア
ルポートメモリからなるユニットメモリ550の送信デー
タエリアSDA(第24図参照)に書き込む。
By the way, as described above, the pachinko machine control device 195 does not calculate the number of safe balls or the like, and such calculation is performed on the unit control device 180 side. A detection signal relating to a game ball, such as a signal, and a signal from the purchase switch 113 are input. Based on these signals, the unit controller 190 calculates operation data such as the number of payout balls, the number of outgoing balls, the number of held balls, and the sales amount, and generates the operation information (game state) and the monitor information related to the pachinko machine. Then, they are written in the transmission data area SDA (see FIG. 24) of the unit memory 550 composed of a dual port memory.

ユニットメモリ550に書き込まれた稼働データ等は、
伝送コントローラ551による管理装置400との間のデータ
交信によって管理装置に送られる。また、管理装置400
から送られてくるデータも一旦ユニットメモリ550内の
受信データエリアRDAに書き込まれ、ユニットコントロ
ーラ190がこれを読み取ることによってデータの受信が
行われる。ユニットメモリ550には、その他の送信デー
タや受信データがメモリ内にあることを相手方のコント
ローラに伝えるためのコマンドやステータス情報の入る
交信用エリアCCAや各コントローラ用のワーキングエリ
アUWAとDWAおよびコントローラ間同期用エリアCSAが設
けられている。
Operation data and the like written in the unit memory 550
The data is transmitted to the management device by data communication with the management device 400 by the transmission controller 551. Also, the management device 400
Is also once written in the reception data area RDA in the unit memory 550, and the unit controller 190 reads the data to receive the data. The unit memory 550 includes a communication area CCA for storing commands and status information for notifying the other controller that other transmission data and reception data are in the memory, a working area UWA and DWA for each controller, and a communication area between the controllers. A synchronization area CSA is provided.

第24図にユニットメモリの全体の構成が、そして、表
1、表2および表3に、送信データエリアSDA、受信デ
ータエリアRDAおよび交信用エリアCCAの構成例を示す。
FIG. 24 shows the overall configuration of the unit memory, and Tables 1, 2, and 3 show examples of the configuration of the transmission data area SDA, the reception data area RDA, and the communication area CCA.

なお、表1において示されているモニタ情報1は、表
4に示すようにシステム立上り時のテスト実行中を示す
ビット、初期値設定/未設定を示すビット、ホットコー
ドエラーを示すビット、ローカルネットワークの異常を
示すビット(低層用と高層用の2ビット)、遊技機異常
を示すビット等により構成されている。また、モニタ情
報2は、表5に示すようにカードリーダの異常を示すビ
ットを有している。
The monitor information 1 shown in Table 1 includes a bit indicating that a test is being executed at the time of system startup, a bit indicating whether an initial value is set / not set, a bit indicating a hot code error, and a local network, as shown in Table 4. (Two bits for low-rise and high-rise), a bit indicating a game machine abnormality, and the like. Further, the monitor information 2 has bits indicating an abnormality of the card reader as shown in Table 5.

さらに、稼動情報は、表6のごとく打止め状態を示す
ビット、遊技の中断中であることを示すビット、通信異
常あるいは不正検出等に基づく管理装置もしくはコント
ローラによる強制終了状態を示すビット、遊技中である
ことを示すビット、遊技機が遊技客のついていないフリ
ー状態にあることを示すビット等により構成されてい
る。
Further, the operation information includes a bit indicating a stop state as shown in Table 6, a bit indicating that the game is being interrupted, a bit indicating a forced termination state by a management device or a controller based on a communication error or fraud detection, etc. , A bit indicating that the gaming machine is in a free state without a player, and the like.

上記表6より、実際のパチンコ機の状態は、 フリー状態が、 0000000000000001 遊技中が、 0000000000000010 強制終了受信時が、 0000000000000100 中断時が、 0000000000001000 打止発生時が、 0000000000010000 で表わされることがわかる。 From the above Table 6, it can be seen that the actual state of the pachinko machine is represented by the free state, 0000000000000001 during the game, 0000000000000010 at the time of the forced termination reception, 0000000000000100 at the time of interruption, and 0000000000001000 at the time of the occurrence of the stop, as 0000000000010000.

第25図〜第30図には制御ユニット160内に設けられた
パチンコ機用カードリーダ800の具体的な構成例を示
す。
FIG. 25 to FIG. 30 show a specific configuration example of the card reader 800 for a pachinko machine provided in the control unit 160. FIG.

カードリーダ800を構成する箱形のケース本体801の前
端には、カード保持表示部LED1とカード挿排口802aを有
する前蓋802が装着され、ケース本体801の側壁には前記
制御ユニット160の収納枠161内に固定するためのL字ブ
ラケット803が四隅に固着されている。
At the front end of a box-shaped case main body 801 constituting the card reader 800, a front lid 802 having a card holding display LED1 and a card insertion / ejection opening 802a is attached, and the side wall of the case main body 801 houses the control unit 160. L-shaped brackets 803 for fixing in the frame 161 are fixed to the four corners.

ケース本体801内には第26図に示すようにカード搬送
路となるベースプレート804が配置され、このベースプ
レート804の上方にはカードの厚みより少し広い間隙を
おいてこれと平行に支持基板805,806が取付けられるよ
うになっている。
As shown in FIG. 26, a base plate 804 serving as a card transport path is disposed in the case body 801. Supporting substrates 805 and 806 are mounted above the base plate 804 with a gap slightly larger than the thickness of the card. It is supposed to be.

支持基板805にはカード挿入口側に位置しその上には
モータ807とマイクロスイッチからなるカード挿入検出
センサ808と、シャッタソレノイド809とマイクロスイッ
チからなるカード挿入検出センサ808と、シャッタソレ
ノイド809およびセキュリティコード読取用の反射型光
センサ810a,810bが取り付けられている。この実施例で
はセンサ810a,810bのうち一方(810a)のみ使用し、他
方のセンサ(810b)は将来においてセキュリティコード
が増加されても良いように予備的に設けられている。
The support substrate 805 is located on the card insertion port side and has a card insertion detection sensor 808 including a motor 807 and a micro switch thereon, a card insertion detection sensor 808 including a shutter solenoid 809 and a micro switch, a shutter solenoid 809, and security. Reflection type optical sensors 810a and 810b for reading codes are attached. In this embodiment, only one of the sensors 810a and 810b (810a) is used, and the other sensor (810b) is provided as a spare so that the security code may be increased in the future.

上記モータ807とシャッタソレノイド809との間には第
2ローラ軸811が回転自在に載置され、この第2ローラ
軸811の中央には搬送ローラ812が設けられているととも
に、第2ローラ軸811の一端はケース本体の側壁801aか
ら外部へ突出可能にされ、突出端部にプーリ813が固着
されている。また、シャッタソレノイド809の近傍には
カード位置検出用センサSNS1に対し検出光を照射する投
光器814が取り付けられ、第2ローラ軸811とモータ807
との間には第2の位置検出センサSNS2の検出光が透過可
能な透光部815が形成されている。さらに、上記モータ8
07の側方にはパンチ穴検出用センサSNSpに対し検出光を
照射する投光器816が取り付けられているとともに、モ
ータ807の回転軸807aの一端にはロータリエンコーダ817
が固着され、かつ回転軸807aの他端はケース本体801の
側壁801bより外部に突出され、径の小さなプーリ818が
固着されている。
A second roller shaft 811 is rotatably mounted between the motor 807 and the shutter solenoid 809. A transport roller 812 is provided at the center of the second roller shaft 811. Is protrudable from the side wall 801a of the case body to the outside, and a pulley 813 is fixed to the protruding end. Further, a projector 814 for irradiating the card position detection sensor SNS1 with detection light is attached near the shutter solenoid 809, and a second roller shaft 811 and a motor 807 are provided.
A light-transmitting portion 815 through which the detection light of the second position detection sensor SNS2 can pass is formed between them. Furthermore, the motor 8
A projector 816 for irradiating the detection light to the punch hole detection sensor SNSp is attached to the side of 07, and a rotary encoder 817 is provided at one end of a rotating shaft 807a of the motor 807.
Is fixed, and the other end of the rotating shaft 807a protrudes outside from the side wall 801b of the case body 801 to which a pulley 818 having a small diameter is fixed.

一方、カード挿排口802aの反対側に配置された上記支
持基板806上には、第1ローラ軸819が回転自在に配置さ
れているとともに、ソレノイドを駆動手段とするパンチ
装置820と磁気ヘッド821が取付け可能にされている。磁
気ヘッド取付け位置に対応して支持基板806には磁気ヘ
ッドを上方から下向きに挿入させたときヘッド面が下方
に臨むことができるように貫通孔822が形成されてい
る。また、第1ローラ軸819の中央には搬送ローラ823が
固着されているとともに、軸の両端はケースの側壁から
外部に突出可能にされ、プーリ824,825がそれぞれ取り
付けられている。そして、上記プーリ818と825との間に
ベルト826が、またプーリ824と813との間にベルト827が
捲回されており、モータ807の回転駆動力がベルト826に
より第1ローラ軸819へ伝えられ、さらにベルト827によ
り第2ローラ軸811へ伝達されるようになっている。
On the other hand, a first roller shaft 819 is rotatably disposed on the support substrate 806 disposed on the opposite side of the card insertion / ejection port 802a, and a punch device 820 and a magnetic head 821 using a solenoid as driving means. Can be attached. A through-hole 822 is formed in the support substrate 806 corresponding to the magnetic head mounting position so that the head surface can face downward when the magnetic head is inserted downward from above. A transport roller 823 is fixed to the center of the first roller shaft 819, and both ends of the shaft are made to be able to protrude to the outside from the side wall of the case, and pulleys 824 and 825 are attached thereto. A belt 826 is wound between the pulleys 818 and 825, and a belt 827 is wound between the pulleys 824 and 813. The rotational driving force of the motor 807 is transmitted to the first roller shaft 819 by the belt 826. And transmitted to the second roller shaft 811 by the belt 827.

さらに、上記支持基板806の下面には、第3および第
4のカード位置検出センサSNS3,SNS4に対し検出光を照
射する投光器828,829が取り付けられている。
Further, on the lower surface of the support substrate 806, light projectors 828 and 829 for irradiating the third and fourth card position detection sensors SNS3 and SNS4 with detection light are attached.

上記支持基板805,806の上方には、これを覆うように
第1のインタフェース基板830が配置され、ケースの側
壁801a,801bに固定される。このインタフェース基板830
には制御ユニット160内に設けられたカードリーダ制御
装置188からの各種制御信号を受信したり、カードリー
ダ側に設けられたセンサや磁気ヘッドからの読取り信号
をカードリーダ制御装置188へ渡すためのインタフェー
ス回路を備えている。また、インタフェース基板830の
下面には、上記透光部815に対応する位置に投光器831
が、そして上記エンコーダ817に対応する位置に速度検
出センサ832がそれぞれ設けられている。
A first interface board 830 is disposed above the support boards 805 and 806 so as to cover the support boards 805 and 806, and is fixed to the side walls 801a and 801b of the case. This interface board 830
For receiving various control signals from a card reader control device 188 provided in the control unit 160, and for passing a read signal from a sensor or a magnetic head provided on the card reader side to the card reader control device 188 An interface circuit is provided. In addition, on the lower surface of the interface board 830, the projector 831 is located at a position corresponding to the light transmitting section 815.
A speed detection sensor 832 is provided at a position corresponding to the encoder 817.

一方、支持基板805,806の下方に配置された前記ベー
スプレート804には、上記搬送ローラ812と823に対応す
る位置に、トーションスプリング834と835により上方へ
付勢された補助ローラ836と837が、ベースプレートに形
成された開口部841,842よりわずかに顔を出すように装
着されている。また、ベースプレート804には、支持基
板806に設けられた貫通孔822より下方に臨むように取り
付けられた磁気ヘッド821に対応する位置に同じくトー
ションスプリング836によって上方へ付勢された補助ロ
ーラ838が、開口部843よりわずかに上方へ顔を出すよう
に装着されている。これとともに、ベースプレート804
には、上記投光器814,816,828,829および831に対応する
位置にそれぞれ透孔844が形成されている。さらに、ベ
ースプレート804の前端には幅方向に沿って凹部845(第
28図参照)が形成され、そこには円筒状の遮蔽部材846
が載置されている。遮蔽部材846はカード挿排口802aを
閉塞してゴミの侵入を防止するとともに、その重量で一
定以上の剛性を有するカード以外を受け付けないように
作用する。
On the other hand, auxiliary rollers 836 and 837 urged upward by torsion springs 834 and 835 are provided on the base plate 804 at positions corresponding to the transport rollers 812 and 823 on the base plate 804 disposed below the support substrates 805 and 806. It is mounted so that the face slightly emerges from the formed openings 841,842. Further, the base plate 804 has an auxiliary roller 838 urged upward by a torsion spring 836 at a position corresponding to the magnetic head 821 attached so as to face below the through hole 822 provided in the support substrate 806, It is mounted so that its face is slightly above the opening 843. Along with this, the base plate 804
Has through holes 844 at positions corresponding to the projectors 814, 816, 828, 829 and 831 respectively. Further, the front end of the base plate 804 has a concave portion 845 (the
28 is formed, and there is a cylindrical shielding member 846
Is placed. The shielding member 846 closes the card insertion / ejection opening 802a to prevent ingress of dust, and acts so as to accept only cards having a certain rigidity or more due to its weight.

上記ベースプレート804の下面には、第2のインタフ
ェース基板848がネジによって取り付けられるようにな
っており、この第2インタフェース基板848上にはカー
ドリーダ制御装置188とのインタフェースを行なう回路
とともに、投光器814、831、828、829および816に対向
するように、第1〜第4の位置検出センサSNS1,SNS2,SN
S3,SNS4およびパンチ穴検出センサSNSpが取り付けられ
ている。また、補助ローラ836,837,838に対応する位置
に、ローラとの接触を防止する逃し穴849が設けられて
いる。
On the lower surface of the base plate 804, a second interface board 848 is attached by screws. On the second interface board 848, together with a circuit for interfacing with the card reader control device 188, a light projector 814, First to fourth position detection sensors SNS1, SNS2, SN
S3, SNS4 and punch hole detection sensor SNSp are attached. In addition, a relief hole 849 is provided at a position corresponding to the auxiliary rollers 836, 837, 838 to prevent contact with the rollers.

ベースプレート804の前端に載置された円筒状の遮蔽
部材846に対応して、上方の支持基板805の前端には、遮
蔽部材846よりひとまわり大きな空部851が形成されてお
り、ベースプレート804上に支持基板805を配置したと
き、遮蔽部材846が空部851内に上下動可能に収納される
ようになっている。また、上記空部851を構成する枠体8
52の後壁には開口853が形成され、その後方に前記挿入
検出スイッチ808が配置されてその可動接点808aが上記
開口853より空部851内に突出される。この可動接点808a
の先端は通常第28図(A)に示すように遮蔽部材846の
上方に位置するようにされており、カード挿排口802aよ
りカードCDが挿入されると、第28図(B)のごとくカー
ドCDが遮蔽部材846を上方へ押し上げるため可動接点808
aが回動され、挿入検出センサ808がオンされるようにな
っている。
Corresponding to the cylindrical shielding member 846 placed on the front end of the base plate 804, an empty space 851 slightly larger than the shielding member 846 is formed at the front end of the upper support substrate 805, and on the base plate 804 When the support substrate 805 is arranged, the shielding member 846 is housed in the empty space 851 so as to be vertically movable. In addition, the frame 8 constituting the empty space 851
An opening 853 is formed on the rear wall of the 52, and the insertion detection switch 808 is disposed behind the opening 853, and the movable contact 808a projects from the opening 853 into the space 851. This movable contact 808a
Is normally positioned above the shielding member 846 as shown in FIG. 28 (A), and when a card CD is inserted through the card insertion / ejection opening 802a, as shown in FIG. 28 (B). The movable contact 808 is used because the card CD pushes the shielding member 846 upward.
is rotated, and the insertion detection sensor 808 is turned on.

支持基板805上に取り付けられるシャッタソレノイド8
09は第29図(A)に示すように下向きに配置され、プラ
ンジャ809aの先端に形成されたピン809bが、ソレノイド
消磁状態において支持基板805に設けられた挿通孔854を
貫通して、第29図(B)のごとくベースプレート804上
面の対応する位置形成された凹孔855に係合することに
よりカードCDの挿入を阻止するようになっている。
Shutter solenoid 8 mounted on support substrate 805
29 is disposed downward as shown in FIG. 29 (A), and the pin 809b formed at the tip of the plunger 809a passes through the insertion hole 854 provided in the support substrate 805 in the solenoid demagnetized state, and As shown in FIG. 7B, the card CD is prevented from being inserted by engaging with a corresponding recessed hole 855 formed on the upper surface of the base plate 804.

なお、特に制限されるものではないが、この実施例の
カードリーダ800はカード発行機においても使用できる
ようにするため、ケースの後壁が開放されており、カー
ドを後方へ排出できる構造にされている。
Although not particularly limited, the card reader 800 of this embodiment has a structure in which the rear wall of the case is open so that the card can be ejected backward so that the card reader 800 can be used in a card issuing machine. ing.

第30図(A)にはカードリーダにおける各種センサや
磁気ヘッドの取付け位置関係を示す。
FIG. 30 (A) shows the mounting positional relationship of various sensors and a magnetic head in the card reader.

挿入検出センサ808は最もカード挿排口802aに近い側
に配置され、第1位置検出センサSNS1は搬送ローラの直
前に配置されている。そして、シャッタピン809bは挿入
検出センサ808と第1位置検出センサSNS1との間に配置
され、セキュリティコード読取センサ810a,810bは第1
位置検出センサSNS1のほぼ真横に配置されている。ま
た、第2位置検出センサSNS2は搬送ローラ812の後方
に、第3位置検出センサSNS3は搬送ローラ823の後方
に、第4位置検出センサSNS4はカードリーダの最奥部に
配置され、かつ第1〜第4位置検出センサSNS1〜SNS4は
同一直線上に位置されている。
The insertion detection sensor 808 is disposed closest to the card insertion / ejection opening 802a, and the first position detection sensor SNS1 is disposed immediately before the transport roller. The shutter pin 809b is disposed between the insertion detection sensor 808 and the first position detection sensor SNS1, and the security code reading sensors 810a and 810b are
It is arranged almost right beside the position detection sensor SNS1. The second position detection sensor SNS2 is located behind the transport roller 812, the third position detection sensor SNS3 is located behind the transport roller 823, the fourth position detection sensor SNS4 is located at the innermost part of the card reader, and To the fourth position detection sensors SNS1 to SNS4 are located on the same straight line.

さらに、パンチ穴検出センサSNSpとパンチピンPPは第
2位置検出センサSNS2と搬送ローラ823との間に配置さ
れ、磁気ヘッド821は搬送ローラ823と第3位置検出セン
サSNS3との間に配置されている。
Further, the punch hole detection sensor SNSp and the punch pin PP are disposed between the second position detection sensor SNS2 and the transport roller 823, and the magnetic head 821 is disposed between the transport roller 823 and the third position detection sensor SNS3. .

第30図(B)には第30図(A)のような位置関係にな
るように配置された各種センサによるカード挿入時のカ
ード検出タイミングとモータ807およびシャッタソレノ
イド809への制御信号のタイミングを示す。同図から分
かるように、この実施例のカードリーダでは、カード挿
入時に挿入検出センサでカードの挿入を検出してモータ
およびシャッタを駆動させ、位置検出センサSNS1〜4で
カードの位置を検出しながら所定のタイミングでカード
上の情報をセキュリティコード、パンチ穴、磁気コード
の順に読み取るように構成されている。
FIG. 30 (B) shows the timing of detecting a card at the time of card insertion by various sensors arranged so as to have a positional relationship as shown in FIG. 30 (A) and the timing of a control signal to the motor 807 and the shutter solenoid 809. Show. As can be seen from the figure, in the card reader of this embodiment, when the card is inserted, the insertion detection sensor detects the insertion of the card, drives the motor and the shutter, and detects the position of the card with the position detection sensors SNS1 to SNS4. At a predetermined timing, information on the card is read in the order of a security code, a punched hole, and a magnetic code.

しかも、各種センサやパンチピンの相対距離は、カー
ドの読取りやパンチ穴開け等の処理を正確に行う上で重
要であるため、予め設けられた位置関係になるよう各部
品が精度よく取り付けられている。
In addition, since the relative distance between the various sensors and the punch pins is important for accurately performing processes such as reading a card and punching a hole, the components are accurately mounted so as to have a predetermined positional relationship. .

第31図にはカードリーダ制御装置188(第21図参照)
の具体的回路構成例が示されている。
FIG. 31 shows a card reader control device 188 (see FIG. 21).
2 shows a specific circuit configuration example.

カードリーダ制御装置188は、マイクロコンピュータ
からなるカードリーダコントローラCPU2と、ユニット制
御装置180との間で送受信されるデータ信号のレベル変
換を行うトランシーバTRVと、制御ユニット160内に設け
られたモニタ表示器175と176の駆動信号を形成するドラ
イバDRV11,DRV12およびカードリーダ800内のモータ807
やパンチ装置820、磁気ヘッド821、LEDランプ167、シャ
ッタソレノイド809を駆動する制御信号を形成するドラ
イバDRV13と、モータ807に供給される電源をオン・オフ
するリレーRLYを駆動するドライバDRV14と、カードリー
ダ800内の磁気ヘッドの読取りデータや各種センサから
の検出信号を波形整形するシュミットトリガ回路からな
る波形整形回路SMG、磁気ヘッドで読取られた2つのト
ラックの各リードデータをラッチするフリップフロップ
回路F/F1,F/F2と、パワーオンリセット回路とウォッチ
ドッグタイマを内蔵しコントローラCPU2から定期的に出
力されるパルス(ラッチLT1,LT2のリセットパルスと共
用)をウォッチドッグパルスとして監視してパルスが途
切れたときにリセット信号を発生するリセット回路RST2
とにより構成されている。
The card reader control device 188 includes a card reader controller CPU 2 composed of a microcomputer, a transceiver TRV that performs level conversion of data signals transmitted and received between the unit control device 180, and a monitor display provided in the control unit 160. Drivers DRV11 and DRV12 forming the drive signals of 175 and 176 and motor 807 in card reader 800
And a driver DRV13 for generating a control signal for driving the punch device 820, the magnetic head 821, the LED lamp 167, the shutter solenoid 809, a driver DRV14 for driving a relay RLY for turning on / off the power supplied to the motor 807, and a card. A waveform shaping circuit SMG comprising a Schmitt trigger circuit for shaping the waveform of read data of the magnetic head in the reader 800 and detection signals from various sensors, and a flip-flop circuit F for latching each read data of two tracks read by the magnetic head. / F1, F / F2, built-in power-on reset circuit and watchdog timer, monitor pulses periodically output from controller CPU2 (shared with reset pulses of latches LT1 and LT2) as watchdog pulses. Reset circuit RST2 that generates a reset signal when interrupted
It is composed of

また、カードリーダコントローラCPU2には、制御ユニ
ット160内に設けられた機器の設定器171およびカード排
出スイッチSWcからのオン・オフ信号が入力されてい
る。
The card reader controller CPU2 receives ON / OFF signals from a setting device 171 of a device provided in the control unit 160 and a card ejection switch SWc.

上記モニタ表示器176を構成する4個の発光ダイオー
ドは、電源が投入されている間点灯されるパワーオン表
示LED11と、カードがカードリーダ内にあることを表示
するカードイン表示LED12と、カードリーダコントロー
ラによる制御が正常に実行できているときに点灯される
OK表示LED13として使用され、LED14はその他任意のモニ
タ表示に使用できるように未使用となっている。
The four light-emitting diodes constituting the monitor display 176 include a power-on display LED 11 that is lit while the power is on, a card-in display LED 12 that indicates that the card is in the card reader, and a card reader. Lights when control by the controller can be executed normally.
Used as OK display LED 13, LED 14 is unused so that it can be used for any other monitor display.

一方、セグメント型モニタ表示器175は、数字を表す
7つのセグメントと、1つのドット表示セグメントDTと
を組合せることにより、次の表7のように、カードリー
ダの異常内容を符号で表示するようになっている。な
お、表7の右欄のエラーコードは対応する異常が発生し
たときにカードリーダコントローラCPU2が上位の制御装
置に異常の内容を知らせるときに使用するコードであ
る。
On the other hand, the segment-type monitor display 175 combines the seven segments representing numbers and one dot display segment DT to display the contents of abnormalities of the card reader with codes as shown in Table 7 below. It has become. The error code in the right column of Table 7 is a code used when the card reader controller CPU2 notifies a higher-level control device of the content of the abnormality when a corresponding abnormality occurs.

カードリーダコントローラCPU2は、内蔵ROM内の制御
プログラムに従って動作し、ユニット制御装置180から
の指令に基づいてカードの走行制御やカードデータの読
出し、カードデータのチェック等を実行し、カード番号
およびカードリーダの制御情報をユニット制御装置に伝
達する。ユニット制御装置180との交信は内蔵のシリア
ルコミュニケーション回路により、シリアルポートTX,R
Xを使用して行う。カードリーダ800を構成する部品への
制御信号の出力や各種センサからの検出信号の入力は、
第32図に示すようなインタフェース回路198を介して行
うようになっている。
The card reader controller CPU 2 operates in accordance with the control program in the built-in ROM, executes card travel control, reads card data, checks card data, and the like based on commands from the unit controller 180, and executes the card number and card reader Is transmitted to the unit controller. Communication with the unit controller 180 is performed by the built-in serial communication circuit using the serial ports TX and R.
Do this using X. Output of control signals to the components that make up the card reader 800 and input of detection signals from various sensors
This is performed via an interface circuit 198 as shown in FIG.

また、カードの磁気記録部MGのトラックTRC2上の磁気
データaをラッチするフリップフロップFF2は、トラッ
クTRC1上から読み出されてフリップフロップFF1をトリ
ガさせるリードクロックbをサンプリングクロックとし
て動作される。フリップフロップFF1はリードクロック
bでトリガされCPU2から出力されるパルスeでリセット
されることで周期的な信号cを出力する。
The flip-flop FF2 that latches the magnetic data a on the track TRC2 of the magnetic recording unit MG of the card is operated using the read clock b read from the track TRC1 and triggering the flip-flop FF1 as a sampling clock. The flip-flop FF1 outputs a periodic signal c by being triggered by a read clock b and reset by a pulse e output from the CPU 2.

第32図には、カードリーダ制御装置188とカードリー
ダ内の入出力部品との間に設けられるインタフェース回
路198の構成例を示す。
FIG. 32 shows a configuration example of an interface circuit 198 provided between the card reader control device 188 and input / output components in the card reader.

同図において符号SMG1〜SMG5で示されているのは、シ
ュミットトリガゲート等からなる波形整形回路、REC1,R
EC2は整流回路、MCC1,MCC2は磁化電流切替回路、AMP1〜
AMP4はアンプ、MHD1,MHD2は磁気ヘッド、MTはモータ、S
OL1,SOL2はソレノイド、LED1は発光ダイオード、DRV21,
DRV22はドライバ、SNS11,SNS12,SNSp,SNS1〜SNS5はセン
サである。また、CCCはモータMTの回転方向を切替るた
めの電流切替回路、VCCはモータMTの回転速度を切替る
ための電圧切替回路である。
In the figure, reference numerals SMG1 to SMG5 denote waveform shaping circuits including Schmitt trigger gates and the like, REC1, R
EC2 is a rectifier circuit, MCC1 and MCC2 are magnetizing current switching circuits, and AMP1 to
AMP4 is amplifier, MHD1 and MHD2 are magnetic head, MT is motor, S
OL1 and SOL2 are solenoids, LED1 is a light emitting diode, DRV21,
DRV22 is a driver, and SNS11, SNS12, SNSp, and SNS1 to SNS5 are sensors. CCC is a current switching circuit for switching the rotation direction of the motor MT, and VCC is a voltage switching circuit for switching the rotation speed of the motor MT.

2つのトラックTRC1とTRC2にそれぞれ対応された2つ
の磁気ヘッドMHD1,MHD2により読み取られたリードデー
タのリードクロック信号は、アンプAMP1,AMP3によって
増幅された後、整流回路REC1,REC2で整流され、さらに
波形整形回路SMG1,SMG3を通して矩形波としてカードリ
ーダ制御装置188に送られる。一方、カードリーダ制御
装置188から供給されるライトデータとライトクロック
は波形整形回路SMG2,SMG4を通って磁化電流切替回路MCC
1,MCC2に入力され、ライトデータの“1",“0"に応じて
ヘッド駆動電流の向きが切り替えられてアンプAMP2,AMP
4で増幅され磁気ヘッドMHD1,MHD2に供給される。
Read clock signals of read data read by the two magnetic heads MHD1 and MHD2 respectively corresponding to the two tracks TRC1 and TRC2 are amplified by the amplifiers AMP1 and AMP3, and then rectified by the rectifier circuits REC1 and REC2. The signal is sent to the card reader control device 188 as a rectangular wave through the waveform shaping circuits SMG1 and SMG3. On the other hand, the write data and write clock supplied from the card reader controller 188 pass through the waveform shaping circuits SMG2 and SMG4, and the magnetization current switching circuit MCC.
1, input to MCC2, the direction of head drive current is switched according to write data “1”, “0”, and amplifier AMP2, AMP2
It is amplified by 4 and supplied to the magnetic heads MHD1 and MHD2.

モータMTを駆動するため、カードリーダ制御装置188
から与えられる正転信号と逆転信号に基づいて電流切替
回路CCCがドライバDRV21に流れる電流の向きを変え、ま
た速度切替信号に応じてドライバDRV21によってモータ
に印加する電圧を切替える。
Card reader controller 188 to drive motor MT
The current switching circuit CCC changes the direction of the current flowing to the driver DRV21 based on the forward rotation signal and the reverse rotation signal given from the controller, and switches the voltage applied to the motor by the driver DRV21 according to the speed switching signal.

一方、セキュリティコード読取りセンサSNS11(810
a),SNS12(未使用)、パンチ穴検出センサSNSp、位置
検出センサSNS1〜SNS4、速度検出センサSNS5(821)の
検出信号は、波形整形回路SMG5で波形整形されてからカ
ードリーダ制御装置188へ供給され、挿入検出スイッチ8
08の検出信号はローパスフィルタLPFでノイズカットさ
れてから波形整形回路SMG5で波形整形される。
On the other hand, the security code reading sensor SNS11 (810
a) The detection signals of SNS12 (unused), punch hole detection sensor SNSp, position detection sensors SNS1 to SNS4, and speed detection sensor SNS5 (821) are waveform-shaped by the waveform shaping circuit SMG5, and then to the card reader controller 188. Supplied and inserted detection switch 8
The detection signal 08 is noise-cut by the low-pass filter LPF, and then the waveform is shaped by the waveform shaping circuit SMG5.

第33図には、カードリーダ制御装置188による磁気デ
ータの書込みと読出しのタイミングが示されている。
FIG. 33 shows the timing of writing and reading of magnetic data by the card reader control device 188.

同図の信号中、(A)〜(D)は書込みデータ情報、
(E)〜(G)は書込みクロック情報に関し、また
(H)〜(J)は読出しデータ情報、(K)〜(M)は
読出しクロック情報に関する各部の信号波形を示す。ま
た、同図(N)〜(R)に第31図のカードリーダ制御装
置188において、符号a〜eで示されている各信号のタ
イミングを示す。
In the signals shown in FIG. 3, (A) to (D) indicate write data information,
(E) to (G) show write clock information, (H) to (J) show read data information, and (K) to (M) show signal waveforms of various parts related to read clock information. 31 (N) to (R) show timings of signals indicated by reference symbols a to e in the card reader control device 188 of FIG.

このうち、(H)および(K)の信号は第32図のイン
タフェース回路を構成するアンプAMP1とAMP3の出力信号
を、また、(I)および(L)の信号は、整流回路REC1
とREC2の出力信号を、そして(J)および(M)の信号
は波形整形回路SMG1とSMG3の出力信号をそれぞれ示す。
Of these, the signals (H) and (K) represent the output signals of the amplifiers AMP1 and AMP3 constituting the interface circuit of FIG. 32, and the signals (I) and (L) represent the rectifier circuit REC1.
And REC2, and the signals (J) and (M) indicate the output signals of the waveform shaping circuits SMG1 and SMG3, respectively.

この実施例では、書込み方式としてデータが“1"のと
きは極性を反転し、データが“0"または無信号のときは
極性を反転せず直前の状態を維持するいわゆるNRZI方式
を採用している。
In this embodiment, a so-called NRZI method is adopted as the writing method, in which the polarity is inverted when the data is "1" and the polarity is not inverted when the data is "0" or there is no signal. I have.

従ってCPU出力や書込み電流、磁化状態を示す信号
(B),(C),(D)は、CPUの内部データ(A)が
“0"から“1"に変わったときに、それぞれ反転してい
る。
Therefore, the signals (B), (C), and (D) indicating the CPU output, the write current, and the magnetization state are inverted when the internal data (A) of the CPU changes from “0” to “1”. I have.

一方、上記のようにして書き込まれたデータを磁気ヘ
ッドMHD2で読み取ると、磁化状態(D)が変化したとこ
ろでアンプAMP1の出力が磁化の向きに応じて+または−
に変化するので、カードリーダコントローラCPU2は、リ
ードクロックbの立上りでアンプAMP1の出力を波形整形
した信号(J)に対応するリードデータaがラッチF/F2
に取り込まれたときに、信号a(N)がハイレベルであ
ればデータ“1"であると認識し、信号aがロウレベルで
あればデータが“0"であると認識することになる(第33
図(S)参照)。
On the other hand, when the data written as described above is read by the magnetic head MHD2, when the magnetization state (D) changes, the output of the amplifier AMP1 changes to + or-depending on the direction of magnetization.
At the rising edge of the read clock b, the read data a corresponding to the signal (J) obtained by shaping the output of the amplifier AMP1 is latched by the latch F / F2.
When the signal a (N) is at a high level, it is recognized that the data is "1". When the signal a is at a low level, the data is recognized as "0". 33
(See FIG. (S)).

なお、この実施例では、カードへの磁気データの記録
密度を4.134bit/mm(=105BPI)とし、カード搬送速度
を300mm/秒としたので、読出しクロックデータのパルス
周期は約806μSとなる。そこで、CPU2による磁気デー
タ書込みの際には、書込みクロックに関するCPU出力
(E)の周期T0をクロックパルスの2倍(1.612mS)と
して出力するようになっている。
In this embodiment, since the recording density of magnetic data on the card is 4.134 bits / mm (= 105 BPI) and the card transport speed is 300 mm / sec, the pulse period of the read clock data is about 806 μS. Therefore, when the magnetic data write by CPU2 is adapted to output a period T 0 of the CPU output (E) about the write clock twice the clock pulse as (1.612mS).

第34図および第35図に記憶媒体発行装置としての上記
カード発行機200の構成例を示す。
34 and 35 show a configuration example of the card issuing machine 200 as a storage medium issuing device.

この実施例のカード発行機200は、カード購入のため
の紙幣を識別する紙幣識別装置210と、投入紙幣に対応
した金額を印刷し、カードを発行する発行装置700と、
つり銭としての紙幣を払出するための紙幣払出装置230
と、各種表示器221〜225およびカード発行機200全体の
制御および管理装置400との間のデータ交信を行なうユ
ニット制御装置280等により構成されている。上記紙幣
識別装置210に対応して、開閉自在な前面パネル201には
紙幣挿入口211と、購入選択手段としての購入選択スイ
ッチ群212および金額表示器213が設けられている。従っ
て、遊技客は、先ず紙幣挿入口211より紙幣を投入する
と、金額表示器213に投入金額が表示される。そして、
購入選択スイッチ群212の中から所望の購入金額に対応
するスイッチを押圧することにより、所望の購入金額に
相当するカードが上記発行装置700の記憶媒体発行口と
してのカード発行口202より発行される。また、上記購
入選択スイッチ群212は、各々ランプ内蔵型スイッチで
構成されており、紙幣が投入されるとその投入金額の範
囲内で選択可能なスイッチ(3千円なら3つ、5千円な
ら5つ)に対応する内蔵ランプが点灯されるようになっ
ている。
The card issuing machine 200 of this embodiment includes a bill identifying device 210 that identifies bills for card purchase, an issuing device 700 that prints an amount corresponding to an inserted bill, and issues a card.
Bill dispensing device 230 for dispensing bills as change
And a unit control device 280 for performing data communication between the various displays 221 to 225 and the control and management device 400 of the entire card issuing machine 200. The front panel 201, which can be opened and closed, is provided with a bill insertion slot 211, a purchase selection switch group 212 as purchase selection means, and a money amount display 213 corresponding to the bill identification device 210. Therefore, when the player first inserts a bill from the bill insertion slot 211, the inserted amount is displayed on the amount display 213. And
By pressing a switch corresponding to a desired purchase price from the purchase selection switch group 212, a card corresponding to the desired purchase price is issued from the card issuing port 202 as a storage medium issuing port of the issuing device 700. . Each of the purchase selection switch groups 212 is constituted by a switch with a built-in lamp, and when a bill is inserted, switches that can be selected within the range of the inserted amount (three for 3,000 yen, three for 5,000 yen) (5) built-in lamps are turned on.

カード発行機200の紙幣挿入口211より紙幣が挿入さ
れ、購入選択スイッチ212により購入金額が決定されて
残金が生じたときに、それを払い戻すための紙幣払出装
置230は、紙幣をストックしておく紙幣タンクを備えて
おり、残金に相当する紙幣を前面パネル201に設けられ
た紙幣払出口232より排出するように構成されている。
When a bill is inserted from the bill insertion slot 211 of the card issuing machine 200, the purchase amount is determined by the purchase selection switch 212, and a balance is generated, the bill dispensing device 230 for refunding the balance stores the bill. It has a bill tank, and is configured to discharge bills corresponding to the balance from a bill payout port 232 provided on the front panel 201.

また、上記カード発行機200の前面パネル201には、カ
ード発行可能な状態にあることを示す発行中ランプ22
1、カード発行不能状態を示す発行中止ランプ222、紙幣
挿入口211への紙幣の受付の可否を示す紙幣挿入表示器2
23、カードの発行状態を知らせるカード発行表示器22
4、残金の払出状態を知らせる紙幣払出表示器225が設け
られている。また、カード発行機200の前面パネル201の
内側には、発行機の異常の種類(番号)を、2桁の数字
で表示するためのモニタ表示器206と、このモニタ表示
器206の表示をリセットするためのリセットボタン207と
が設けられている。
A front panel 201 of the card issuing machine 200 has an issuing lamp 22 indicating that the card is ready to be issued.
1, an issuance stop lamp 222 indicating a card issue disabled state, a bill insertion indicator 2 indicating whether or not a bill can be accepted into the bill insertion slot 211
23, card issuance display to notify card issuance status 22
4. A bill dispensing indicator 225 is provided to inform the dispensing state of the balance. Also, inside the front panel 201 of the card issuer 200, a monitor display 206 for displaying the type (number) of the abnormality of the issuer with a two-digit number, and resetting the display of the monitor display 206 And a reset button 207 for resetting.

さらに、この実施例のカード発行機200には、遊技店
に設置される複数(数10台)の発行機の各々を区別し
て、特定のカードを発行した発行機を管理装置400にお
いて把握できるようにするため台番号設定器205が内部
に設けられており、この設定器205により設定された台
番号は管理装置400に送られて、データ通信の際の伝送
アドレスの生成および各発行機ごとのデータファイルの
作成に供される。
Further, the card issuing machine 200 of this embodiment is capable of distinguishing each of a plurality (several tens) of issuing machines installed in a game arcade so that the managing device 400 can identify the issuing machine that has issued a specific card. The setting unit 205 is provided internally, and the unit number set by the setting unit 205 is sent to the management device 400 to generate a transmission address at the time of data communication and for each issuing machine. Used to create data files.

一方、発行装置700は、記憶媒体収納手段としてのカ
ードタンク701内にストックされている白紙状態のカー
ドを1枚ずつ取り出して先ずカードリーダ800へ送り、
カードの磁気記録部に管理装置400によって演算されて
送られてきたカード番号および識別コード(店コー
ド)、発行年月日コード、チェックコード等を記録し、
カードリーダ800内のパンチ装置820で発行済穿孔位置PH
1(第2図参照)にパンチ穴を開けてから、印字装置750
で発行年月日と発行通し番号nおよび購入金額を印字し
て前面パネル201に設けられたカード発行口202より排出
する。上記発行通し番号nは、カード発行機200からカ
ード購入の申込を受けた管理装置400が、自己の制御下
にある複数のカード発行機からの購入申込みに対し、そ
の受付け順に発行通し番号nを決定し、各カード発行機
に付与する番号であって、この発行通し番号nに基づい
て前述したビットの並び換え等のコード変換処理を行な
って得られたコードをカード番号としてカードの磁気面
に記録して発行し、カードに関する情報は管理装置400
内のファイルに記録するようになっている。
On the other hand, the issuing device 700 takes out blank cards stored in a card tank 701 as a storage medium storage means one by one and sends them to a card reader 800 first,
The card number and identification code (store code), issue date code, check code, etc., which are calculated and sent by the management device 400, are recorded in the magnetic recording section of the card,
Punching position PH issued by punching device 820 in card reader 800
1 (See Fig. 2)
And prints out the issue date, issue serial number n, and purchase price, and discharges the card from the card issuing port 202 provided on the front panel 201. The issuing serial number n is determined by the management apparatus 400, which has received the application for card purchase from the card issuing machine 200, in the order of receipt for purchase applications from a plurality of card issuing machines under its control. A code assigned to each card issuing machine and obtained by performing the code conversion processing such as the rearrangement of bits based on the serial number n is recorded on the magnetic surface of the card as a card number. Issued and information on the card is managed device 400
To be recorded in a file inside.

上記発行通し番号nからカード番号の生成を可能にす
るため、管理装置400の制御プログラムには、カード番
号生成ルーチンと、コード変換ルーチンが設けられてい
るともに、カードから読み出されたカード番号と発行通
し番号nとの一致を確認するため逆変換と逆算ルーチン
が用意されている。
In order to enable generation of a card number from the issuance serial number n, the control program of the management device 400 is provided with a card number generation routine and a code conversion routine. In order to confirm the coincidence with the serial number n, an inverse conversion and an inverse calculation routine are prepared.

なお、この実施例のカード発行機200は、カードリー
ダ800で磁気データを記録しかつ印字装置で、発行通し
番号nと発行年月日および購入金額の千の桁を除く3つ
の「0」を印字した状態でカードを待機させておき、購
入スイッチが押された時点で千の桁の数字を印字して排
出することにより見かけ上の発行所要時間を短縮するよ
うになっている。
The card issuing machine 200 of this embodiment records magnetic data with a card reader 800 and prints three “0” s except for a serial number n, an issue date, and a thousand digit of a purchase amount with a printing device. In this state, the card is put on standby, and when a purchase switch is pressed, a thousand-digit number is printed and discharged, thereby shortening the apparent issuance required time.

第36図にはカードリーダを内蔵した発行装置700の全
体斜視図が、また第37図には発行装置の概略構成例を示
す。
FIG. 36 is an overall perspective view of the issuing device 700 incorporating a card reader, and FIG. 37 shows a schematic configuration example of the issuing device.

この実施例の発行装置700は、磁気記録部MGと印字表
示部PRTが白紙の状態とされているカードが多数収納さ
れたカードタンク701内から一枚ずつカードを取り出す
記憶媒体取出手段としてのカード取出装置710と、その
後方に配置されたカードリーダ800と、さらにその後方
に配置されたカード反転装置740と、カードリーダ800の
下方に配置された印字装置750と、その前方に配置され
たカードを排出するための記憶媒体排出手段としてのカ
ード導出装置770とにより構成されており、カードリー
ダ800の上方に配設されたカード発行制御装置790によっ
て制御されるようになっている。この実施例の発行装置
700内のカードリーダは、パチンコ機用のカードリーダ8
00と略同一の構造と機能を有したものでよい。
The issuing device 700 according to this embodiment includes a card as a storage medium ejecting unit that ejects cards one by one from a card tank 701 in which a large number of cards whose magnetic recording unit MG and print display unit PRT are blank are stored. Take-out device 710, card reader 800 arranged behind it, card reversing device 740 arranged further behind it, printing device 750 arranged below card reader 800, and card arranged ahead of it And a card deriving device 770 as a storage medium discharging means for discharging the card, and is controlled by a card issuing control device 790 provided above the card reader 800. Issuing device of this embodiment
The card reader in 700 is a card reader for pachinko machines.
It may have substantially the same structure and function as 00.

発行機用のカードリーダが、パチンコ機用のカードリ
ーダと異なる点は、(1)磁気データの記録機能を備え
る必要がある点と、(2)カードを後方へ排出できる構
造となっている必要がある点にある。このうち、(1)
については第32図に示すようにインタフェース回路198
が書込みデータ信号を波形整形する波形整形回路SMG2,S
MG4と磁気電流切替回路MCC1,MCC2とを有していて、情報
書込手段としての磁気ヘッド(821)MHD1とMHD2で磁気
データの読出しは勿論のこと、書込みも行なえるので、
問題はない。また、パチンコ機用カードリーダ800の構
造説明のところでも言及したように第25図〜第28図に示
すカードリーダ800は、ケースの後壁が開放されてお
り、挿入されたカードを後方へも排出できるようになっ
ている。従って、この実施例の発行装置700には、パチ
ンコ機用のカードリーダ800と全く同一のものを使用す
ることができる。
A card reader for an issuing machine is different from a card reader for a pachinko machine in that (1) it is necessary to have a magnetic data recording function, and (2) it is necessary to have a structure capable of ejecting a card backward. There is a point. (1)
For the interface circuit 198 as shown in FIG.
Waveform shaping circuit SMG2, S that shapes the write data signal
Since it has MG4 and magnetic current switching circuits MCC1 and MCC2, magnetic heads (821) MHD1 and MHD2 as information writing means can not only read magnetic data but also write data.
No problem. In addition, as mentioned in the description of the structure of the card reader 800 for the pachinko machine, the card reader 800 shown in FIGS. 25 to 28 has an opened rear wall of the case, and the inserted card can be moved backward. It can be discharged. Therefore, as the issuing device 700 of this embodiment, the same device as the card reader 800 for the pachinko machine can be used.

一方、上記カードタンク701はカードと同一の大きさ
の空間を有しコの字状をなす枠体で構成され、カード取
出装置710の側壁711の上端にボルトで固定されている。
このカードタンク701内に収納されたカードの上には、
カードに一定の圧力を加えカードの取出しを確実にさせ
るための押圧部材702が載置されるようになっている。
この押圧部材702にはタンク内のカードの有無を検出す
るセンサ703で検出されないように左右に切欠き702aが
形成されている。また、カードタンク701内に収納され
た白紙カードCDは、第38図に示すようなカード取出装置
710のベース基板711の前半部の上に載置される。このベ
ース基板711には、中心線に沿って開口部711a,711b,711
cが形成され、この開口部より上方へ僅かに突出するよ
うに第1搬送ローラ712と第2搬送ローラ713と第3搬送
ローラ714が配置されている。また、ベース基板711の前
端側部には上記カード有無検出用センサ703の作動片703
aが下方より臨むことができるように切欠き711dが形成
されている。
On the other hand, the card tank 701 has a space of the same size as the card and is formed of a U-shaped frame, and is fixed to the upper end of the side wall 711 of the card removal device 710 with bolts.
On the cards stored in this card tank 701,
A pressing member 702 for applying a certain pressure to the card to ensure that the card is taken out is placed.
Notches 702a are formed on the right and left sides of the pressing member 702 so as not to be detected by a sensor 703 for detecting the presence or absence of a card in the tank. The blank card CD stored in the card tank 701 is inserted into a card ejection device as shown in FIG.
710 is placed on the front half of the base substrate 711. This base substrate 711 has openings 711a, 711b, 711 along the center line.
A first transfer roller 712, a second transfer roller 713, and a third transfer roller 714 are arranged so as to protrude slightly upward from the opening. The operating piece 703 of the card presence / absence detection sensor 703 is provided on the front end side of the base substrate 711.
Notch 711d is formed so that a can be seen from below.

さらに、上記ベース基板711の上方略中央には、これ
と直交する向きの支持プレート715が配置され、カード
取出装置710の側壁716に固定されている。そして、この
支持プレート715の前面には、上記ベース基板711とカー
ド1枚分の間隔をおいて対向されるストッパ717を有す
るブラケット718が装着されている。また、上記支持プ
レート715の後方には、上記搬送ローラ712〜714を駆動
するための取出用モータ719が配置され、側壁716に固定
されている。
Further, a support plate 715, which is orthogonal to the base plate 711, is disposed substantially at the center above the base substrate 711, and is fixed to the side wall 716 of the card removal device 710. On the front surface of the support plate 715, a bracket 718 having a stopper 717 opposed to the base substrate 711 at an interval of one card is mounted. A take-out motor 719 for driving the transport rollers 712 to 714 is disposed behind the support plate 715, and is fixed to the side wall 716.

この取出用モータ719の回転軸には減速機構720を介し
て駆動プーリ721が連結され、この駆動プーリ721と、上
記搬送ローラ713および714の回転軸713a,714aの端部に
装着された従動プーリ722,723との間にタイミングベル
ト724が捲回されている。さらに、上記第2搬送ローラ7
13の回転軸にはクラッチ用ディスク725aが装着されてい
るとともに、このディスク725aに対向して第2クラッチ
用ディスク725bが回転自在に配設されている。また、上
記一対のクラッチ用ディスク725a,725bの外周に当接可
能なローラ726を一端に有するクラッチレバー727が、側
壁716に揺動可能に取り付けられている。そして、この
クラッチレバー727の他端は、スプリング728を介してク
ラッチソレノイド729のプランジャ729aに連結されてお
り、ソレノイド729が励磁されると、クラッチレバー727
が回動されてローラ726がクラッチ用ディスク725aと725
bの外周に同時に接触され、回転力を伝達し、ソレノイ
ド729がオフされると回転力を遮断するようになってい
る。さらに、クラッチ用ディスク725bの回転軸にはプー
リ730が固着されており、このプーリ730と上記第1搬送
ローラ712の回転軸712aの一端に固着されたプーリ731と
の間にはベルト732が捲回されている。従って、取出用
モータ719の回転力は、クラッチソレノイド729が励磁さ
れている間だけクラッチ機構(725,726)を介して第1
搬送ローラ712へ伝達される。
A drive pulley 721 is connected to a rotation shaft of the take-out motor 719 via a speed reduction mechanism 720, and the drive pulley 721 is driven by a driven pulley attached to an end of the rotation shafts 713a and 714a of the transport rollers 713 and 714. A timing belt 724 is wound between 722 and 723. Further, the second transport roller 7
A clutch disc 725a is mounted on the rotation shaft of the thirteen, and a second clutch disc 725b is rotatably arranged facing the disc 725a. Further, a clutch lever 727 having a roller 726 at one end that can contact the outer circumference of the pair of clutch disks 725a and 725b is swingably attached to the side wall 716. The other end of the clutch lever 727 is connected to a plunger 729a of the clutch solenoid 729 via a spring 728. When the solenoid 729 is excited, the clutch lever 727 is turned on.
Is rotated so that the rollers 726 are moved to the clutch disks 725a and 725.
At the same time, it contacts the outer circumference of b and transmits the torque, and when the solenoid 729 is turned off, the torque is shut off. Further, a pulley 730 is fixed to the rotating shaft of the clutch disk 725b, and a belt 732 is wound between the pulley 730 and the pulley 731 fixed to one end of the rotating shaft 712a of the first transport roller 712. Has been turned. Therefore, the rotational force of the take-out motor 719 is only transmitted through the clutch mechanism (725, 726) while the clutch solenoid 729 is being excited.
The light is transmitted to the transport roller 712.

しかも、この第1搬送ローラ712は、その回転軸712a
に対して偏心した状態で取り付けられており、通常は上
面がベース基板711よりも低くされており、回転軸712a
が180°回転すると開口部711aから上方へ僅かに突出す
るようになっている。
In addition, the first transport roller 712 has its rotating shaft 712a
Is mounted eccentrically with respect to the base substrate 711.
When the is rotated by 180 °, it slightly projects upward from the opening 711a.

そして、この実施例の発行装置700は、紙幣投入後に
購入選択スイッチ212が操作されると、取出用モータ719
が回転され、その後クラッチソレノイド729が一定時間
オンされ、第1搬送ローラ712が1回転されるようにな
っている。これによって、第1搬送ローラ712は偏心回
転され、この第1搬送ローラ712の上方のカードタンク7
01内のカードを押し上げるようにしながら後方へ送り出
す。このとき、カードCD上に押圧部材702が載置され一
定圧力を加えているためローラとの摩擦力で一番下のカ
ードがタンク内のカード群から分離される。しかも、後
方にはベース基板711とカード1枚分の間隔を有するス
トッパ717が設けられているため、カードの2枚送りが
防止される。
Then, when the purchase selecting switch 212 is operated after the bill is inserted, the issuing device 700 of this embodiment outputs the take-out motor 719.
Is rotated, and then the clutch solenoid 729 is turned on for a certain period of time, so that the first transport roller 712 is rotated once. As a result, the first transport roller 712 is eccentrically rotated, and the card tank 7 above the first transport roller 712 is rotated.
Send the card backwards while pushing up the card in 01. At this time, since the pressing member 702 is placed on the card CD and applies a constant pressure, the lowermost card is separated from the card group in the tank by the frictional force with the roller. In addition, since a stopper 717 having an interval of one card and the base substrate 711 is provided at the rear, feeding of two cards is prevented.

こうして、1枚だけタンク内から取り出されたカード
は、取出用モータ719が回転中ずっと回転されている第
2、第3の搬送ローラ713,714によって後方のカードリ
ーダ800へ向かって送り出される。
In this manner, only one card taken out of the tank is sent out toward the rear card reader 800 by the second and third transport rollers 713 and 714 that are being rotated while the take-out motor 719 is rotating.

なお、カード取出装置710の後端には走行位置検出セ
ンサCPS1が配設されており、送り出されたカードを検出
するようになっている。
In addition, a traveling position detection sensor CPS1 is provided at the rear end of the card removal device 710, and detects the sent card.

また、第3搬送ローラ714の上方にはカードの浮き上
がりを防止する押さえローラ734が配設されている。
In addition, a pressing roller 734 for preventing the card from floating is disposed above the third transport roller 714.

上記カード取出装置710によってタンク701から取り出
されたカードは、カードリーダ800の情報書込手段とし
ての磁気ヘッド821によって情報記憶部としての磁気記
録部MGへの識別コードやカード番号等の書込みが行なわ
れ、かつ内部のパンチ装置820で発行穴穿孔位置にパン
チ穴が開けられてから後方のカード反転装置740へ送り
出される。カードリーダ800の下方には穿孔片すなわち
パンチ屑を収納するケース705が配置されている。
The card removed from the tank 701 by the card removal device 710 is written with the identification code and the card number and the like to the magnetic recording unit MG as the information storage unit by the magnetic head 821 as the information writing unit of the card reader 800. Then, a punch hole is formed in the issuing hole punching position by the internal punch device 820, and then the card is sent to the rear card reversing device 740. Below the card reader 800, a case 705 for accommodating perforated pieces, that is, punch waste is arranged.

パチンコ機用カードリーダ800の制御装置188に相当す
る発行機用のカードリーダ制御装置288は、カード発行
制御装置790内に設けられている。
The card reader controller 288 for the issuing machine corresponding to the controller 188 of the card reader 800 for the pachinko machine is provided in the card issuing controller 790.

カード反転装置740に送られたカードは、先ず搬送ロ
ーラ741a,741b,741cに捲回されたベルト742と、搬送ロ
ーラ743a,743bに捲回されたベルト744との間に挟まれて
S字走行路に沿って搬送され、その出口に配置された走
路切替片745を破線イのように押しながら、搬送ローラ7
46a,746b,746cに捲回されたベルト747と上記ベルト742
とに挟まれて一旦上方へ送られる。そして、カードが走
路切替片745を通過すると切替片745がスプリング745aの
張力で破線イの位置から実線の位置へ回動復帰されると
ともに、その上方に配置された走行位置センサCPS2によ
ってカードの後端が検出された時点で上記ベルト742を
駆動する走行モータ706が逆回転される。これによっ
て、カードは向きを変えて下方へ搬送され始める。そし
て、搬送ローラ748a,748b,748cに捲回されたベルト749
と、上記ベルト747とに挟まれて徐々に向きを変え、遂
には水平方向前方に向かって送り出される。
The card sent to the card reversing device 740 is first S-shaped while being sandwiched between the belt 742 wound around the transport rollers 741a, 741b, 741c and the belt 744 wound around the transport rollers 743a, 743b. The transport roller 7 is transported along the road and pushes the runway switching piece 745 arranged at the exit as shown by the broken line a.
The belt 747 wound around 46a, 746b, and 746c and the belt 742 above
And once sent upward. Then, when the card passes the runway switching piece 745, the switching piece 745 is pivotally returned from the position shown by the broken line A to the position shown by the solid line by the tension of the spring 745a, and the running position sensor CPS2 disposed above the When the end is detected, the traveling motor 706 for driving the belt 742 is rotated in the reverse direction. As a result, the card changes its direction and starts to be conveyed downward. Then, the belt 749 wound around the transport rollers 748a, 748b, 748c
Then, the direction is gradually changed by being sandwiched between the belts 747, and finally, the sheet is fed forward in the horizontal direction.

上記ベルト742と749は、走行モータ706によって直接
駆動されるベルト707およびそれと連動されたベルト708
とによって駆動されるようになっている。ベルト744と7
49には走行モータ706の駆動力が伝達されず、カードの
移動に伴って摩擦力で連れ回りする。
The belts 742 and 749 are a belt 707 directly driven by a traveling motor 706 and a belt 708 linked therewith.
And is driven by. Belts 744 and 7
The driving force of the traveling motor 706 is not transmitted to 49, and the card rotates with the frictional force as the card moves.

なお、上記ベルト707は後述のカード導出装置770の搬
送ローラ771と一体のプーリにも捲回されており、走行
モータ706の駆動力によってカードの排出が行なわれ
る。
The belt 707 is also wound around a pulley integrated with a transport roller 771 of a card dispensing device 770 described later, and the card is discharged by the driving force of the traveling motor 706.

さらに、上記搬送ローラ748cの回転軸709は側方へ突
出され、その端部には第36図に示すようにノブ709aが固
着されており、このノブ709aを手で回すことにより、走
行モータ706の停止中に手動でカードを移動させ、紙詰
まりを生じたカードを取り除くことができるようになっ
ている。カード反転装置740の終端には走行位置センサC
PS3が配置されており、このセンサがカードの後端を検
出すると走行モータ706が停止される。
Further, a rotary shaft 709 of the transport roller 748c is protruded to the side, and a knob 709a is fixed to an end portion thereof as shown in FIG. 36. The card can be manually moved while the printer is stopped to remove the jammed card. Running position sensor C at the end of card reversing device 740
PS3 is arranged, and when this sensor detects the rear end of the card, the traveling motor 706 is stopped.

上記カード反転装置740から送り出されたカードは印
字装置750に入り、先ず走行位置センサCPS4により検出
される。すると、印字装置750内の移送モータ751が駆動
され、その駆動力がベルト762および歯車群763を介して
移送ローラ752a,752bに伝達され、その上方に配設され
た押圧ローラ753a,753bとの間にカードを挟持して前方
へ移動させる。移送ローラ752a,752bの前方には、移送
ローラ754と755が走行路に沿って配置され、その上方に
はサーマルヘッドのような印字ヘッド756がガイドピン7
57に沿って昇降可能に配置されている。また、ガイドピ
ン757の周囲には復帰バネ758が介挿されている。
The card sent from the card reversing device 740 enters the printing device 750, and is first detected by the traveling position sensor CPS4. Then, the transfer motor 751 in the printing device 750 is driven, and the driving force is transmitted to the transfer rollers 752a and 752b via the belt 762 and the gear group 763, and is transmitted to the pressing rollers 753a and 753b disposed thereabove. Hold the card in between and move it forward. In front of the transfer rollers 752a and 752b, transfer rollers 754 and 755 are arranged along the traveling path, and a print head 756 such as a thermal head is provided with guide pins 7 above the transfer rollers 754 and 755.
It can be moved up and down along 57. A return spring 758 is inserted around the guide pin 757.

758は印字ヘッド昇降用モータで、このモータ758の回
転は減速されて従動軸759に伝達される。この従動軸759
には、切欠きを有する検出コマ760が固着され、この検
出コマ760の周縁に対向して回転位置センサ761a,761bが
配置されている。また、図示しないが昇降用モータ758
の回転力は、例えば上記従動軸759に固着したカムとそ
の外周に当接されたタペットを介して印字ヘッド756に
伝えられ、これを昇降させる。このとき、昇降用モータ
758は一回の作動で従動軸759を180°ずつ回動させる。
すなわち、昇降用モータ758は常に検出コマ760の切欠き
がセンサ761aまたは761bに対向する位置で回転を停止す
るようになっており、走行位置センサCPS4がカードを検
出し昇降用モータ758を作動させると、センサ761aまた
は761bが検出コマ760の切欠きを検出した時点でモータ
の回転が停止される。これによって、印字ヘッド756は
走行位置センサCPS4のカード検出時に降下され、印字が
終了すると再び昇降用モータ758が作動されて従動軸759
を180°回転させることにより、印字ヘッド756は上昇さ
れて停止する。印字装置750の出口には走行位置センサC
PS5が配設されており、このセンサCPS5がカードの先端
を検出すると前記走行モータ706を先程と同一の方向
(逆方向)へ作動させて搬送ローラ771a,771b,771cに捲
回されたベルト772を駆動させ、センサCPS5がカードの
後端を検出すると印字装置内の搬送用モータ751を停止
させる。これによって、印字装置750から送り出された
カードは速やかに前方のカード導出装置770内へ搬送さ
れていく。
Reference numeral 758 denotes a print head raising / lowering motor. The rotation of the motor 758 is reduced and transmitted to the driven shaft 759. This driven shaft 759
A detection piece 760 having a notch is fixedly attached thereto, and rotation position sensors 761a and 761b are arranged to face the periphery of the detection piece 760. Although not shown, the lifting motor 758
Is transmitted to the print head 756 via, for example, a cam fixed to the driven shaft 759 and a tappet in contact with the outer periphery of the cam, and moves the cam up and down. At this time, the lifting motor
758 rotates the driven shaft 759 by 180 ° in one operation.
That is, the elevating motor 758 always stops rotating at the position where the notch of the detection piece 760 faces the sensor 761a or 761b, and the traveling position sensor CPS4 detects the card and activates the elevating motor 758. Then, when the sensor 761a or 761b detects the notch of the detection piece 760, the rotation of the motor is stopped. As a result, the print head 756 is lowered when the card is detected by the traveling position sensor CPS4, and when printing is completed, the elevating motor 758 is operated again to operate the driven shaft 759.
Is rotated by 180 °, the print head 756 is raised and stopped. Traveling position sensor C at the exit of the printing device 750
When the sensor CPS5 detects the leading end of the card, the traveling motor 706 is operated in the same direction (reverse direction) as before, and the belt 772 wound around the transport rollers 771a, 771b, 771c. When the sensor CPS5 detects the rear end of the card, the transport motor 751 in the printing device is stopped. As a result, the card sent from the printing device 750 is quickly conveyed into the card leading device 770 in front.

カード導出装置770においては、第39図にその詳細を
示すように、上記ベルト772の下方に搬送ローラ773,774
a,774bが配置され、このうち搬送ローラ774aと774bには
ベルト775が捲回されている。しかも、この実施例で
は、このカード導出装置のみ搬送ローラとそのベルト77
2,775が2列に設けられて排出を確実に行なえるように
なっている。そして、ベルト772と775とによって構成さ
れる搬送路に対応してその前方にカード発行口202が配
置され、この発行口の直前に走行位置センサCPS6が配設
されている。
In the card dispensing device 770, as shown in detail in FIG. 39, conveying rollers 773 and 774 are provided below the belt 772.
a and 774b, of which a belt 775 is wound around the transport rollers 774a and 774b. In addition, in this embodiment, only the transporting roller and its belt 77
2,775 are provided in two rows so that discharge can be reliably performed. A card issuing port 202 is arranged in front of the conveyance path constituted by the belts 772 and 775, and a traveling position sensor CPS6 is arranged immediately before the card issuing port.

また、上記搬送ローラ773と774bとの間には支軸776を
中心に回動可能な走路切替部材777が配設されている。
この走路切替部材777はスプリング778によって通常は第
37図に破線ロで示すごとく先端が下方に位置され、印字
装置750より送られてきたカードをカード発行口202へ向
かって案内する。しかして、カードが正規なものでなか
ったり、傷があって磁気記録部へ正しく記録できなかっ
たような場合には、走路切替部材777によってカードは
下方の没収タンク780に誘導される。正しく書き込まれ
たカードのときは切替部材777を、第37図に実線で示す
ごとく下方へ回動させる。すると、印字装置750から送
られてきたカードはカード発行口202へ誘導される。搬
送ローラ774a,774bの下方には、没収タンク780が配設さ
れており、通常状態で上方に位置された走路切替部材77
7によって下方へ誘導されたカードはこの没収タンク780
内に収納される。
A runway switching member 777 rotatable around a support shaft 776 is provided between the transport rollers 773 and 774b.
This runway switching member 777 is normally in the first position by a spring 778.
The leading end is positioned below as shown by the broken line B in FIG. 37, and guides the card sent from the printing device 750 toward the card issuing port 202. If the card is not valid or cannot be recorded correctly on the magnetic recording unit due to damage, the card is guided to the confiscation tank 780 below by the runway switching member 777. When the card is correctly written, the switching member 777 is rotated downward as shown by the solid line in FIG. Then, the card sent from the printing device 750 is guided to the card issuing port 202. A confiscation tank 780 is disposed below the transport rollers 774a and 774b.
The card guided down by 7 is the confiscated tank 780
Is stored inside.

この没収タンク780の後壁781には切欠き781aが形成さ
れており、この切欠き781aに臨むようにセンサ782が配
設されている。このセンサは782受光器であってこれに
対応する投光器783は、上記一対のベルト775間に配置さ
れ、検出光軸が斜めになるように設定され、没収タンク
780に入ってくるカードを検出するとともに、タンク内
のカードが一定量以上になると、カードの上端が上記検
出光軸を遮るようになって満杯になったことを検出でき
るようになっている。さらに、この没収タンク780はそ
の下方に斜め配置されたプレート784上に前後方向スラ
イド可能に載置され、その下面には、プレート784に形
成された長孔784aに係合するガイドピン785が固着され
ており、このガイドピン785と上記プレート784の後端と
の間に張設されたスプリング786によって、常に後方へ
付勢されている。
A notch 781a is formed in the rear wall 781 of the confiscation tank 780, and a sensor 782 is provided so as to face the notch 781a. This sensor is a 782 light receiver, and the corresponding light projector 783 is disposed between the pair of belts 775, the detection optical axis is set to be oblique, and the confiscation tank
When the card in the tank reaches a certain amount or more while detecting the card entering the 780, the upper end of the card blocks the detection optical axis to detect that the card is full. Further, the confiscation tank 780 is slidably mounted on a plate 784 disposed obliquely below the tank 780, and a guide pin 785 for engaging with a long hole 784a formed in the plate 784 is fixed to a lower surface thereof. The spring 786 is stretched between the guide pin 785 and the rear end of the plate 784, and is always urged rearward.

このカード導出装置770は、カードの終端が通過して
走行位置センサCPS6または没収カードの検出センサがオ
ンからオフに変わると、走行モータ706がオフされて、
排出または没収動作を停止する。
This card deriving device 770 is, when the end of the card passes and the traveling position sensor CPS6 or the detection sensor of the confiscated card changes from on to off, the traveling motor 706 is turned off,
Stop the discharge or confiscation operation.

なお、カード発行口202の上部には、発行装置700にお
けるカードの発行作業進行状態を示すカード発行表示器
787が設けられている。
Note that a card issuance display is provided above the card issuance slot 202 to indicate the progress of card issuance work in the issuance device 700.
There are 787s.

さらに、この実施例の発行装置700は第36図に示すよ
うに、固定ベース791上において左右のレール792a,792b
によって前後方向スライド可能に支持された基盤793の
上に載置されており、この基盤793の左側半分には、補
助電源装置を内蔵した電源ボックス794が載置され、こ
の電源ボックス794の前面には、カードの発行枚数を表
示するための記憶媒体数計数手段としてのカウンタ795
と、没収カードの枚数等の表示に利用可能な予備カウン
タ796が設けられている。
Further, as shown in FIG. 36, the issuing device 700 of this embodiment has left and right rails 792a, 792b on a fixed base 791.
A power supply box 794 with an auxiliary power supply is mounted on the left half of the base 793. Is a counter 795 as storage medium number counting means for displaying the number of cards issued.
And a spare counter 796 that can be used to display the number of confiscated cards and the like.

また、797は固定ベース791上に載置された発行装置全
体を前方へスライドさせる際に使用する把手、798はス
ライド機構をロックさせるための操作ボタンである。
Reference numeral 797 denotes a handle used to slide the entire issuing device placed on the fixed base 791 forward, and reference numeral 798 denotes an operation button for locking the slide mechanism.

このように、発行前のカードCDの磁気記録部MGにカー
ドリーダ800の磁気ヘッド821によって所定の情報の書込
み処理を行なって有効なカードCDに加工してから、カー
ド発行機200より有効なカードCDのみを発行するように
している。なお、本実施例においては、識別コードやカ
ード番号等をカードCDの磁気記録部MGへ書き込むように
しているが、これに限定されるものではなく、発行前の
カードCDに所定の情報を書き込むことによって有効なカ
ードCDに加工処理できるものであれば、どのような情報
を磁気記録部MGへ書き込むようにしてもよい。
As described above, the magnetic recording unit MG of the card CD before issuance is subjected to the predetermined information writing process by the magnetic head 821 of the card reader 800 to be processed into a valid card CD, and then processed by the card issuing machine 200. Only CDs are issued. In this embodiment, the identification code, the card number, and the like are written in the magnetic recording unit MG of the card CD. However, the present invention is not limited to this. Any information may be written into the magnetic recording unit MG as long as the information can be processed into an effective card CD.

第40図には、上記のごとく構成されたカード発行機20
0の制御システムの構成例が示されている。
FIG. 40 shows a card issuing machine 20 configured as described above.
A configuration example of a control system of 0 is shown.

なお、同図において、790がカード発行制御装置、280
がユニット制御装置、また288はカードリーダ800の各構
成部品たる搬送モータ807、磁気ヘッド821、穿孔装置82
0等を制御するカードリーダ制御装置であり、符号LMP1
〜LMP5で示されているのが、購入金額の選択スイッチ群
212に内蔵されたランプで、オンされたスイッチに対応
するランプが点灯されて操作ボタンを後方から照明する
ようになっている。
In the same figure, 790 is a card issuing control device, 280
Is a unit control device, and 288 is a transport motor 807, a magnetic head 821, and a punching device 82, each component of the card reader 800.
It is a card reader control device that controls 0, etc.
~ LMP5 indicates the purchase price selection switches
The lamp corresponding to the turned on switch is turned on by a lamp built in 212, and the operation button is illuminated from behind.

この実施例の制御システムは、大別してユニット制御
装置280による制御系とカード発行制御装置790による制
御系とに分割されており、ユニット制御装置280が、貨
幣の受け入れ手段、所望購入金額の選択手段、管理装置
に有価データを送信して該有価データに代わるカード番
号を貰い受けるための通信手段、釣貨幣の払出し手段、
および発行処理状態を示す状態表示手段の制御を担当し
ており、カード発行制御装置790が上述した発行装置700
を構成するカード取出装置710、カード反転装置740、印
字装置750およびカード導出装置770と、カードのチェッ
クおよび磁気データの記録を担当するカードリーダ800
の制御装置288の統括的な制御を担当している。そし
て、ユニット制御装置280とカード発行制御装置790との
間の交信はシリアル通信によって行なわれる。
The control system of this embodiment is roughly divided into a control system by the unit control device 280 and a control system by the card issuance control device 790, and the unit control device 280 is a means for receiving money and a means for selecting a desired purchase amount. Communication means for transmitting valuable data to the management device and receiving a card number in place of the valuable data, means for paying out coins,
The card issuing control device 790 controls the status display means indicating the issuing process status.
, A card reversing device 740, a printing device 750, and a card deriving device 770, and a card reader 800 for checking a card and recording magnetic data.
Of the control unit 288. Communication between the unit controller 280 and the card issuing controller 790 is performed by serial communication.

一方、ユニット制御装置280は、管理装置400との間で
カード番号等のデータの送受信を行なうため、光トラン
シーバ185を介して光ケーブルまたは同軸ケーブルから
なる低層ネットワーク用通信ライン510に接続可能にさ
れている。この実施例のカード発行機200は、ユニット
制御装置280によって前面パネル201に設けられた各種表
示器221〜225等からなる状態表示手段をカード発行手順
に従って点灯もしくは点滅させることによって利用者に
操作手順を教示するとともに、排出したカードや釣銭忘
れを防止するようにしている。
On the other hand, the unit control device 280 is connected to a low-layer network communication line 510 including an optical cable or a coaxial cable via the optical transceiver 185 in order to transmit and receive data such as a card number to and from the management device 400. I have. The card issuing machine 200 according to the present embodiment provides a user with an operation procedure by lighting or blinking status display means including various indicators 221 to 225 provided on the front panel 201 according to the card issuing procedure by the unit control device 280. In addition, the card and the change of the discharged card are prevented from being forgotten.

すなわち、カード発行機200の電源が投入され、カー
ド発行の準備が終了するとユニット制御装置280は、先
ず前面パネル201に設けられた発行中表示器221を点灯さ
せ、かつ紙幣挿入表示器223を点滅させて紙幣の挿入を
促す表示を行なって紙幣挿入待ち状態にあることを外部
に知らせる。この状態で紙幣挿入口211に紙幣が投入さ
れるとユニット制御装置280は金額表示器213に投入され
た金額に相当する数字を表示させ、かつ購入選択スイッ
チ212内蔵の購入ランプLMP1〜LMP5を投入金額相当分ま
で点灯させる。つまり、千円ならランプLMP1のみ、3千
円ならランプLMP1〜LMP3、5千円ならランプLMP1〜LMP5
を点灯させて、操作可能なスイッチを明示させるように
なっている。この状態で有効な購入選択スイッチ212の
いずれか一つがオンされると、紙幣挿入表示器223を消
灯させ、代わりにカード発行口202近傍のカード発行表
示器224を点滅させてカードが排出されることを利用者
に知らせる。
That is, when the power of the card issuing machine 200 is turned on and preparation for card issuance is completed, the unit control device 280 first turns on the issuing display 221 provided on the front panel 201, and blinks the bill insertion display 223. Then, a message prompting the user to insert a bill is displayed to notify the outside that the user is in a bill insertion waiting state. In this state, when a bill is inserted into the bill insertion slot 211, the unit controller 280 displays a number corresponding to the inserted amount on the amount indicator 213, and inputs the purchase lamps LMP1 to LMP5 with the built-in purchase selection switch 212. Light up to the amount of money. In other words, the lamp LMP1 for 1,000 yen, the lamp LMP1 to LMP3 for 3,000 yen, the lamp LMP1 to LMP5 for 5,000 yen
Is turned on to clearly indicate the operable switch. When any one of the valid purchase selection switches 212 is turned on in this state, the bill insertion display 223 is turned off, and the card issuance display 224 near the card issuance slot 202 is blinked instead, and the card is ejected. To the user.

それから、ユニット制御装置280は、実際にカード発
行口202よりカードを排出するときには金額表示器213と
購入ランプLMP1〜LMP5を消灯させる。そして、このとき
釣銭があれば紙幣払出表示器225を点滅させて注意を喚
起させながら釣銭の払出しを実行する。なお、釣銭がな
いときは紙幣払出表示器225は消灯のままにしておく。
また、カード排出時には利用者がカード発行口202に排
出されたカードを抜き取るとカード発行表示器224の点
滅を中止して消灯させる。
Then, the unit control device 280 turns off the amount indicator 213 and the purchase lamps LMP1 to LMP5 when the card is actually ejected from the card issuing port 202. At this time, if there is a change, the bill payout indicator 225 is blinked to pay attention, and the change is paid out. When there is no change, the bill payout indicator 225 is kept off.
When the card is ejected, if the user removes the card ejected to the card issuing port 202, the blinking of the card issuing display 224 is stopped and the light is turned off.

一方、釣銭があるときは紙幣払出表示器230が釣銭の
除去を検出して送ってくる払出完了信号を受けてから紙
幣挿入表示器223を消灯させる。
On the other hand, when there is change, the bill insertion indicator 223 is turned off after the bill payout indicator 230 detects the removal of the change and receives the payout completion signal sent.

ユニット制御装置280による前面パネル201上の各種表
示器の状態遷移を表8に示す。
Table 8 shows the state transition of various indicators on the front panel 201 by the unit controller 280.

同図においては○は点灯、×は消灯、△は点滅、Dは
投入金額に応じた数値表示、Bは金額に対応したランプ
を点灯することをそれぞれ意味する。なお、表8には各
状態において紙幣挿入口211の紙幣受付状態がどのよう
になっているかも併せて示した。これよりカードおよび
釣銭が除去されるまで次の紙幣挿入ができないことが分
かる。
In the figure, o means on, x means off, △ means blinking, D means numerical display according to the amount of money inserted, and B means to turn on a lamp corresponding to the amount of money. Table 8 also shows what the bill insertion state of the bill insertion slot 211 is in each state. This indicates that the next bill cannot be inserted until the card and change are removed.

第41図には、ユニット制御装置280の構成例が示され
ている。
FIG. 41 shows a configuration example of the unit control device 280.

発行機のユニット制御装置280は、カードリーダ制御
装置288およびカード発行制御装置790を統括的に制御す
るユニットコントローラ290と、管理装置400とのデータ
伝送に係る制御をするデータ伝送コントローラ551と、
データ伝送コントローラの制御下でネットワークにおけ
る送受信権の確立およびデータの直並列変換を行うネッ
トワークコントローラ553等から構成されており、通信
系に関してはパチンコ機のユニット制御装置180と全く
同一の構成である。すなわち、各コントローラ290と551
間および551と553間のデータの受け渡しは、デュアルポ
ートメモリ(RAM)550および552を介して実行できるよ
うに構成されている。このうち、メモリ552は、送信デ
ータ記憶領域と受信データ記憶領域とに分かれており、
全ての送受信データ長を同一長にする(パケット化)の
ための調整機能と、データ伝送の高速化(2.5Mbps)を
計るための緩衝機能とをもっている。
The unit controller 280 of the issuing machine, a unit controller 290 that comprehensively controls the card reader controller 288 and the card issuance controller 790, and a data transmission controller 551 that performs control related to data transmission with the management device 400,
It is composed of a network controller 553 and the like for establishing a transmission / reception right in a network and performing serial / parallel conversion of data under the control of a data transmission controller. The communication system is completely the same as the unit control device 180 of the pachinko machine. That is, each controller 290 and 551
The transfer of data between and between 551 and 553 is configured to be performed via dual port memories (RAMs) 550 and 552. Of these, the memory 552 is divided into a transmission data storage area and a reception data storage area,
It has an adjustment function to make all transmission / reception data lengths the same (packetization) and a buffer function to measure high-speed data transmission (2.5 Mbps).

このパケットメモリ552は各々が256バイトの容量を持
つ4つのページで構成され、このうちページ0は送信要
求パケットの送信に、またページ1は定時データ送信パ
ケットの送信に使用される。一方、ページ2,3は、デー
タパケット受信用で交互に使用される。どのページを使
うかは、データ伝送コントローラ551が、ネットワーク
コントローラ553に指示する。データ伝送コントローラ5
51が受信パケットデータの処理中、次のパケットデータ
が送られてきたとしても、他のページに受信されるた
め、確実に全てのパケットを受信できる。各コントロー
ラ551,553を同時に初期化できるようにするため共通の
リセット回路555が設けられている。
The packet memory 552 is composed of four pages each having a capacity of 256 bytes, of which page 0 is used for transmitting a transmission request packet and page 1 is used for transmitting a regular data transmission packet. On the other hand, pages 2 and 3 are used alternately for data packet reception. The data transmission controller 551 instructs the network controller 553 on which page to use. Data transmission controller 5
Even if the next packet data is sent during the processing of the received packet data by 51, all the packets can be received reliably because they are received by another page. A common reset circuit 555 is provided so that the controllers 551 and 553 can be initialized at the same time.

ネットワークコントローラ553の管理装置400との接続
側には、受信データを波形整形するとともに送信データ
のドライブ能力を上げるために信号のレベル変換を行う
信号変換回路554および切換スイッチ542を介して、光コ
ネクタ186に接続可能にされているとともに、低層ネッ
トワークの伝送ラインが同軸ケーブルで構成された場合
にも対応できるように切換スイッチ542を介して、送信
信号と受信信号の分離および結合を図る分岐回路540に
接続可能にされている。上記光コネクタ186に光トラン
シーバ285が接続される。
On the connection side of the network controller 553 with the management device 400, an optical connector is provided via a signal conversion circuit 554 and a changeover switch 542 which perform waveform shaping of received data and level conversion of a signal in order to increase the drive capability of transmitted data. A branch circuit 540 which is connectable to 186 and separates and couples a transmission signal and a reception signal via a changeover switch 542 so as to cope with a case where the transmission line of the low-layer network is constituted by a coaxial cable. Can be connected to An optical transceiver 285 is connected to the optical connector 186.

さらに、データ伝送コントローラ551とネットワーク
コントローラ553との間には、データ伝送コントローラ5
51からの要求に応じてネットワークコントローラ553が
データの受信結果を記憶するためのラッチ回路561と、
データ伝送コントローラ551が、ネットワークコントロ
ーラ553に対するデータ送信指令等のコマンドを記憶さ
せるラッチ回路562および低層ネットワーク用アドレス
を記憶させるラッチ回路563と、ユニット制御装置280内
の通信制御状態の異常を表示するための3個のLEDラン
プからなるモニタ表示器556への表示データを記憶する
ラッチ回路564が設けられている。557は上記各ラッチ回
路561〜564に与えられたアドレスをデコードして選択信
号を発生するデコーダである。
Further, a data transmission controller 5 is provided between the data transmission controller 551 and the network controller 553.
A latch circuit 561 for the network controller 553 to store the data reception result in response to a request from 51,
A data transmission controller 551 displays a latch circuit 562 for storing a command such as a data transmission command to the network controller 553 and a latch circuit 563 for storing a low-layer network address, and displays an abnormality in the communication control state in the unit control device 280. Is provided with a latch circuit 564 for storing display data to the monitor display 556 composed of three LED lamps. A decoder 557 decodes an address given to each of the latch circuits 561 to 564 and generates a selection signal.

一方、発行機のユニット制御装置280がパチンコ機の
ユニット制御装置180と異なる点は、ユニットコントロ
ーラ290がカードリーダ制御装置288と直接交信すること
はせず、カード発行制御装置790を介して行なうことで
ある。そのため、ユニットコントローラ290とカード発
行制御装置790のとの間には送受信データのレベル交換
を行うトランシーバ571が接続されている。
On the other hand, the point that the unit controller 280 of the issuing machine is different from the unit controller 180 of the pachinko machine is that the unit controller 290 does not directly communicate with the card reader controller 288, but through the card issuing controller 790. It is. Therefore, a transceiver 571 for exchanging the level of transmission / reception data is connected between the unit controller 290 and the card issuing control device 790.

また、ユニットコントローラ290には、台番号設定器2
05やリセットスイッチ207からの入力信号を所定のタイ
ミングでデータバス581上にのせたり発行中表示器221等
の各種ランプを表示させる駆動信号をラッチしたりする
入出力コントローラ576と、紙幣識別器210、紙幣払出器
230および購入選択スイッチ212からの入力信号を所定の
タイミングでデータバス581上へのせ、かつ紙幣識別器2
10および紙幣払出器230への制御信号をラッチする入出
力コントローラ578が接続されている。
The unit controller 290 has a unit number setting device 2
An input / output controller 576 for putting an input signal from the reset switch 207 on the data bus 581 at a predetermined timing or latching a drive signal for displaying various lamps such as the issuing display 221; and a bill validator 210. , Bill dispenser
The input signals from 230 and the purchase selection switch 212 are placed on the data bus 581 at a predetermined timing, and the bill validator 2
10 and an input / output controller 578 for latching control signals to the bill dispenser 230 are connected.

ユニットコントローラ290から紙幣識別器210への制御
信号としては、真紙幣と判定された紙幣を10000円、500
0円、1000円の区別をして金庫内へ収納するための指示
信号と、紙幣挿入口への紙幣挿入を可としたり、不可と
したりするための指示信号がある。
As a control signal from the unit controller 290 to the bill validator 210, the bill determined to be a true bill is 10,000 yen, 500
There is an instruction signal for discriminating between 0 yen and 1000 yen to be stored in a safe, and an instruction signal for enabling or disabling insertion of a bill into a bill insertion slot.

また、紙幣識別器210からユニットコントローラ290に
対する入力信号には、挿入紙幣が真の10000円紙幣と判
定したときの信号と、挿入紙幣を真の5000円紙幣と判定
したときの信号と、挿入紙幣を真の1000円紙幣と判定し
たときの信号と、紙幣判定後に、紙幣挿入口方向へ紙幣
が引き抜かれたときに出力されるアラーム信号と、紙幣
の挿入があり、該紙幣を識別中であることを示すための
信号と、紙幣詰まりが発生したことを示すための信号
と、金庫内の紙幣収納が満杯になったことを示すための
信号とがある。
The input signal from the bill validator 210 to the unit controller 290 includes a signal when the inserted bill is determined to be a true 10,000 yen bill, a signal when the inserted bill is determined to be a true 5000 yen bill, and an inserted bill. Is a signal when it is determined to be a true 1000 yen bill, after the bill determination, an alarm signal output when the bill is pulled out toward the bill insertion slot direction, there is a bill inserted, and the bill is being identified There is a signal indicating that the banknote jam has occurred, and a signal indicating that the banknote storage in the safe is full.

一方、ユニットコントローラ290から紙幣払出器230に
対する制御信号としては、紙幣払出枚数をバイナリコー
ドで設定するための指示信号と、枚数設定値に基づいた
紙幣の払出しを実行させるための指示信号と、払出し実
行結果を表示するためのモニタ表示器(図示しない)の
表示をクリアにするための指示信号とがある。
On the other hand, as a control signal from the unit controller 290 to the bill dispenser 230, an instruction signal for setting the number of bills to be dispensed by a binary code, an instruction signal for executing the dispensing of a bill based on the number of sheets set value, and dispensing There is an instruction signal for clearing the display of a monitor display (not shown) for displaying the execution result.

また、紙幣払出器230からユニットコントローラ290に
対する入力信号としては、紙幣を1枚出す度に出力され
る信号と、払出し中装置内で異常が発生し、払出し動作
が実行できないときに出力されるアラーム信号と、紙幣
収納部の紙幣残量が20枚以下になったことを示す信号
と、紙幣払出し動作を実行中であることを示すための信
号と、紙幣払出し動作が終了し、紙幣発行口の紙幣が取
り除かれたことを示すための信号とがある。
The input signals from the bill dispenser 230 to the unit controller 290 include a signal output every time one bill is dispensed and an alarm output when an abnormality occurs in the dispensing apparatus and the dispensing operation cannot be performed. Signal, a signal indicating that the bill remaining amount of the bill storage unit has become 20 sheets or less, a signal indicating that the bill dispensing operation is being performed, and a bill dispensing operation is completed, and the bill issuing port is closed. There is a signal to indicate that the bill has been removed.

さらに、ユニットコントローラ290には、購入金額を
表示する金額表示器213や発行機の異常の種類を示す番
号を表示するモニタ表示機206をダイナミック表示させ
るためのデコーダ586,587とデコーダドライバ588,589や
データバス581を介して接続されている。
Further, the unit controller 290 includes decoders 586 and 587, decoder drivers 588 and 589, and a data bus 581 for dynamically displaying an amount indicator 213 for displaying the purchase price and a monitor display 206 for displaying a number indicating the type of abnormality of the issuing machine. Connected through.

表9に、上記モニタ表示器206に表示されるエラー番
号とその内容および処理の一例を示す。
Table 9 shows an example of error numbers displayed on the monitor display 206, their contents, and processing.

上記表9において、*印の付されているエラーが発生
した場合はシステムダウンとしてリセットがかかる。ま
た、エラー表示が点滅している場合はエラー回復処理
後、リセットボタンを押す必要があることを示してい
る。
In Table 9 above, when an error marked with an asterisk occurs, the system is brought down and reset. When the error display is blinking, it indicates that the reset button needs to be pressed after the error recovery processing.

なお、588はユニットコントローラ290から出力される
アドレス信号をデコードしてプログラムメモリ558やユ
ニットメモリ550、入出力コントローラ576,578およびデ
コーダ586,587、デコーダドライバ588,889の選択信号を
形成するデコーダである。
A decoder 588 decodes an address signal output from the unit controller 290 to form a selection signal for the program memory 558, the unit memory 550, the input / output controllers 576 and 578, the decoders 586 and 587, and the decoder drivers 588 and 889.

さらに、この実施例のユニット制御装置280において
は、金額表示器213を駆動させるべくユニットコントロ
ーラ290から出力される表示データのうち、2msのような
間隔で周期的に出力される桁セレクト信号(コモン信
号)をリセット回路555に、ウォッチドッグパルスとし
て入力するようにしている。リセット回路555はパワー
オンリセットの他、このウォッチドッグパルスを監視し
てパルスがなくなると各コントローラ290,551,553に対
するリセット信号を発生する。
Further, in the unit control device 280 of this embodiment, of the display data output from the unit controller 290 to drive the amount indicator 213, a digit select signal (common signal) periodically output at intervals of 2 ms is used. ) Is input to the reset circuit 555 as a watchdog pulse. The reset circuit 555 monitors the watchdog pulse in addition to the power-on reset, and generates a reset signal for each of the controllers 290, 551, and 553 when the pulse disappears.

上記のごとくユニット制御装置280は、管理装置400、
カード発行制御装置790の二方向に情報交換の窓口を有
しており、管理装置400の制御下のもとにカードを発行
するための制御を行なうとともに、発行処理の結果とし
て発生する発行機における稼働情報を定期的に管理装置
に送信するソフトウェアを有している。
As described above, the unit control device 280 includes the management device 400,
The card issuance control device 790 has a window for information exchange in two directions, controls the issuance of a card under the control of the management device 400, and controls the issuer generated as a result of the issuance process. Software for periodically transmitting operation information to the management device is provided.

管理装置との間のデータの送受信は、パチンコ機と同
様ユニットメモリ550を介して行なう。ユニットメモリ5
50の構成はパチンコ機のそれと全く同一(第24図参照)
であり、送信データエリアSDAと、受信データエリアRDA
と、送信データや受信データがメモリ内にあることを相
手方のコントローラに伝えるためのコマンドやステータ
ス情報の入る共有データエリアCDAとが設けられてい
る。
Transmission and reception of data with the management device is performed via the unit memory 550 as in the case of the pachinko machine. Unit memory 5
The configuration of the 50 is exactly the same as that of the pachinko machine (see Fig. 24)
The transmission data area SDA and the reception data area RDA
And a shared data area CDA for storing commands and status information for notifying the other controller that transmission data and reception data are in the memory.

表10および表11に、各々上記ユニットメモリ550内の
送信データエリアSDAおよび受信データエリアRDAの構成
例を示す。交信用エリアCCAの構成はパチンコ機のユニ
ットメモリのそれと全く同一である(表3参照)。
Tables 10 and 11 show configuration examples of the transmission data area SDA and the reception data area RDA in the unit memory 550, respectively. The structure of the communication area CCA is exactly the same as that of the unit memory of the pachinko machine (see Table 3).

上記表10に示されているホットコードは、システムの
立上りのときに管理装置400がユニットメモリ550の送信
エリア内に、例えば010101……01なるコードを書き込ん
でおいて、定期的に管理装置に送って、静電気等のノイ
ズによるRAMデータの破壊の有無をチェックし、送信デ
ータの異常を速やかに検出できるようになっている。
The hot codes shown in Table 10 are written by the management device 400 in the transmission area of the unit memory 550 at the start of the system, for example, by writing a code such as 010101... 01 to the management device periodically. The data is sent to check whether or not the RAM data has been destroyed due to noise such as static electricity, so that abnormalities in the transmitted data can be detected quickly.

なお、上記表10に示されているモニタ情報1は、表12
に示すようにシステム立上り時のテスト実行中を示すビ
ット、初期値設定/未設定を示すビット、ホットコード
エラーを示すビット、ローカルネットワーク(伝送ケー
ブル500)の異常を示すビット(低層用と高層用の2ビ
ット)、発行機異常を示すビット等により構成されてい
る。
Note that the monitor information 1 shown in Table 10 above corresponds to Table 12
As shown in the figure, a bit indicating that a test is being executed at system startup, a bit indicating initial value setting / unset, a bit indicating a hot code error, and a bit indicating a local network (transmission cable 500) error (for low and high layers) 2 bits), a bit indicating an issuer abnormality, and the like.

また、モニタ情報2は、表13に示すようにカードリー
ダの異常を示すビット、カードの有無を示すビット、同
紙幣タンク内の状態を示すビット、紙幣詰まりを示すビ
ット、紙幣の強制引き抜きを示すビット、残金払出器の
紙幣タンク内の状態を示すビット、残金払出器の異常を
示すビット等により構成されている。
Further, as shown in Table 13, the monitor information 2 indicates a bit indicating an abnormality of the card reader, a bit indicating the presence or absence of a card, a bit indicating a state in the banknote tank, a bit indicating a banknote jam, and a forcible withdrawal of the banknote. It comprises a bit, a bit indicating the state of the balance dispenser in the bill tank, a bit indicating an abnormality of the balance dispenser, and the like.

第42図(A)〜(C)に前述した精算機300の構成例
を示す。
42 (A) to 42 (C) show a configuration example of the above-described settlement machine 300.

この実施例の精算機300は、挿入されたカードCDの磁
気記録部に記録されたカード番号を読み取ってコードの
チェックを行なうカードリーダを内蔵し、管理装置から
のデータを受け取った後カードを回収するカード精算装
置310と、そのカードについて使用されずに残った未使
用金額に相当する金額を払い戻すための残金払出装置32
1,325と、遊技により獲得した持玉数を印刷したレシー
トを発行するプリンタ330と各種表示器340〜342およ
び、精算機300全体の制御を行なうユニット制御装置350
等により構成されている。
The payment machine 300 of this embodiment has a built-in card reader that reads the card number recorded in the magnetic recording section of the inserted card CD and checks the code, and collects the card after receiving data from the management device. Card payment device 310 and a balance payment device 32 for refunding an amount corresponding to an unused amount remaining unused for the card.
1,330, a printer 330 for issuing a receipt printed with the number of balls possessed by the game, various displays 340 to 342, and a unit controller 350 for controlling the entire payment machine 300
And the like.

この精算機300は上面パネル301が上下方向回動可能に
構成され、上記カード精算装置310に対応して、上面パ
ネル301の前端にはカード挿入口302が、また上面パネル
301の上面には、獲得した賞球数(持玉数)を表示する
玉数表示器303および未使用金額を表示する金額表示器3
04が設けられている。しかも、この実施例の精算機300
はパチンコ店に設置されるカウンタを構成できるように
上面がフラットに形成され、かつ玉数表示器303と金額
表示器304が2組設けられており、そのうち一つは前方
に傾斜して遊技客にとって読み取り易く、他方は後方に
傾斜してカウンタ内側の係員にとって読み取り易いよう
になっている。また、上面パネル301の上面後方寄りに
は、上記表示器の表示を「0」にクリアする表示リセッ
トスイッチ305が設けられている。遊技客が、先ずカー
ド挿入口302よりカードを投入すると、カード精算機300
内のカードリーダ800がカードCDの磁気面に記録されて
いるカード番号を読み取って管理装置400に送り、その
カードに関するデータを受け取る。そして、金額表示器
304に未使用金額を表示させるとともに、玉数表示器303
に獲得玉数を表示させ、プリンタ330により未使用金額
と獲得玉数および来歴データを印字したレシートを発行
する。また、カードリーダ内の挿入されたカードは穿孔
装置により、所定の穿孔位置PH5にパンチ穴(精算済
孔)の形成がなされてから内部のカード回収タンク314
内に排出される。
The payment machine 300 is configured such that an upper panel 301 is rotatable in the vertical direction. A card insertion slot 302 is provided at the front end of the upper panel 301, and the upper panel 301 corresponds to the card payment device 310.
On the upper surface of 301, a ball number display 303 for displaying the number of awarded balls (the number of balls held) and an amount display 3 for displaying an unused amount.
04 is provided. Moreover, the settlement machine 300 of this embodiment
Has a flat top surface so that it can form a counter installed in a pachinko parlor, and has two sets of ball number display 303 and money amount display 304, one of which is inclined forward and Is easy to read, and the other is inclined backward to make it easy for a staff member inside the counter to read. Further, a display reset switch 305 for clearing the display on the display unit to “0” is provided near the rear of the upper surface of the upper panel 301. When a player first inserts a card from the card insertion slot 302, the card settlement machine 300
The card reader 800 reads the card number recorded on the magnetic surface of the card CD, sends the card number to the management device 400, and receives data related to the card. And the amount indicator
Display the unused amount on 304, and display the number of balls 303
, The number of obtained balls is displayed, and the printer 330 issues a receipt in which the unused amount, the obtained number of balls, and the history data are printed. Further, by the inserted card in the card reader perforating apparatus, predetermined punching position PH 5 to punch holes (settlement Sumiana) inside the card collecting tank from formation is made of 314
Is discharged into

なお、この実施例では、精算機のカードリーダには記
録用ヘッドが不要であるが、記録用ヘッドを設けて、精
算済カードについては磁気面のデータを消去して排出す
ることにより、カード番号の変換方式の解読を不能に
し、カードの偽造を防止するようにしてもよい。
In this embodiment, a recording head is not required for the card reader of the checkout machine. However, by providing a recording head and erasing and discharging the data on the magnetic surface of the settled card, the card number can be obtained. May be made impossible to decipher the conversion method, and forgery of the card may be prevented.

カードリーダとしては、パチンコ機100のカードリー
ダ800(第25図参照)をそのまま使用しており、発行機
用のカードリーダと同様後方へカードが排出可能にされ
ており、カードリーダの後方にカード回収タンク314が
配置されている。プリンタ330は、ロール状態でストッ
クされている白紙のシートを引き出して、その表面に発
行年月日と、獲得玉数および未使用残金額さらにはカー
ド来歴等を印刷し、上面パネル301の凹部301a内に開口
されたレシート発行口331より排出する。
As the card reader, the card reader 800 of the pachinko machine 100 (see FIG. 25) is used as it is, and the card can be ejected backward like the card reader for the issuing machine. A collection tank 314 is arranged. The printer 330 pulls out a blank sheet of paper stocked in a roll state, prints the date of issue, the number of obtained balls, the amount of unused money, and the card history, etc. on the surface thereof, and prints the concave portion 301a of the upper panel 301. It is discharged from the receipt issuing port 331 opened inside.

これとともに、未使用金額に相当する金銭が残金払出
装置よりも払い出される。残金払出装置は、紙幣を払い
出す紙幣払出器321と100円硬貨を払い出す硬貨払出器32
5からなり、紙幣払出器321に対応して全面パネル306に
は紙幣排出口322が、また硬貨払出器325に対応して硬貨
払出口326が設けられている。また、精算においては、
未使用金として1000円未満の端数が生じるので、上記の
ごとく100円単位の硬貨を払い出す硬貨払出器325が必要
とされる。
At the same time, money corresponding to the unused amount is paid out from the balance payout device. The balance dispensing device includes a bill dispenser 321 for dispensing bills and a coin dispenser 32 for dispensing 100 yen coins.
5, a bill outlet 322 is provided on the front panel 306 corresponding to the bill dispenser 321, and a coin outlet 326 is provided corresponding to the coin dispenser 325. In the settlement,
Since a fraction of less than 1000 yen is generated as unused money, a coin dispenser 325 that pays out coins of 100 yen units as described above is required.

さらに、上記精算機300の上面パネル301の上面には、
カード精算中であることを示す精算中ランプ341、カー
ド精算不能状態を示す精算中止ランプ342が設けられて
いる。
Further, on the upper surface of the upper panel 301 of the payment machine 300,
A checkout lamp 341 indicating that the card is being settled and a settlement stop lamp 342 indicating that the card cannot be settled are provided.

また、開閉可能な全面パネル306の内側には、第42図
(B)に示すように紙幣不足等精算機の異常をエラー番
号を用いて表示するモニタ表示器343と、このモニタ表
示器343の表示をリセットするリセットスイッチ351と遊
技店に設置される複数の精算機の各々を区別し、特定の
カードの精算を行なった精算機を管理装置400において
把握できるようにするための台番号設定器352と、閉店
時に硬貨払出器325のタンク内に残った硬貨を排出させ
るための硬貨抜取スイッチ353と、プリンタ330によって
発行するレシートを来歴データを印字するか否か指示を
与える印字切替スイッチ354が設けられている。
Also, inside the openable and closable front panel 306, as shown in FIG. 42 (B), a monitor display 343 for displaying an abnormality of the settlement machine such as a shortage of bills using an error number, A reset switch 351 for resetting the display and a number setting device for distinguishing each of a plurality of checkout machines installed in a game arcade and allowing the management device 400 to recognize the checkout machine that has performed the checkout of a specific card. 352, a coin removal switch 353 for discharging coins remaining in the tank of the coin dispenser 325 when the store is closed, and a print changeover switch 354 for giving an instruction whether or not to print the history data of the receipt issued by the printer 330. Is provided.

上記台番号設定器352により設定された台番号は管理
装置400に送られて、データ通信の際の伝送アドレスの
生成および各精算機ごとのデータファイル作成に供され
る。
The machine number set by the machine number setting unit 352 is sent to the management device 400, and is used for generating a transmission address in data communication and creating a data file for each settlement machine.

カード精算装置310は、第42図(C)に示すようにカ
ードリーダ800と、その後方に配置された補助搬送装置3
11と、ユニット制御装置350からの指示に従ってカード
リーダ800や補助搬送装置311の制御を司るカード精算制
御装置312と、それらの電源装置313および補助搬送装置
311の後方に配置されたカード回収タンク314とにより構
成されている。
As shown in FIG. 42 (C), the card settlement device 310 includes a card reader 800 and an auxiliary transport device 3 disposed behind the card reader 800.
11, a card settlement controller 312 that controls the card reader 800 and the auxiliary transport device 311 in accordance with instructions from the unit controller 350, a power supply device 313 thereof, and an auxiliary transport device.
311 and a card collection tank 314 arranged behind.

なお、上記カード回収タンク314はカード精算装置310
のフレーム315に固定された縦長のタンク収納枠316内に
着脱可能に挿入されるようになっている。また、上記フ
レーム315の側面には2つのカウンタ317と318が設けら
れ、そのうち一方に回収したカードの枚数を表示するよ
うになっている。他方のカウンタは未使用である。
The card collection tank 314 is used for the card settlement device 310.
And is removably inserted into a vertically long tank storage frame 316 fixed to the frame 315. Two counters 317 and 318 are provided on the side of the frame 315, and one of them displays the number of cards collected. The other counter is unused.

補助搬送装置311は、搬送ローラ361,362と、それらに
捲回された上下一対の搬送ベルト363,364と、下方の搬
送ベルト364を駆動する搬送モータ365とからなり、カー
ドリーダ800の後端から排出されたカードを一対のベル
ト363と364の間に挟んで後方の回収タンク314へ向かっ
て移送させるようになっている。
The auxiliary transport device 311 includes transport rollers 361 and 362, a pair of upper and lower transport belts 363 and 364 wound therearound, and a transport motor 365 that drives the lower transport belt 364, and is discharged from the rear end of the card reader 800. The card is sandwiched between a pair of belts 363 and 364 and is transported toward the collection tank 314 at the rear.

第42図(C)には図示されていないが、カード回収タ
ンク314にはカードがタンク内に排出されたこと、また
は一杯になったことを検出するカードセンサ319が設け
られている(第43図参照)。ただし、この実施例の精算
機300は前記台番号設定器352の最上位桁を「9」にセッ
トしたときのみカード没収モードとなり、精算のため挿
入されたカードを精算後に上記カード回収タンクに誘導
して没収するようになっており、それ以外のときは精算
後にカードを前方へ排出して遊技客に返却するようにな
っている。
Although not shown in FIG. 42 (C), the card collection tank 314 is provided with a card sensor 319 for detecting that the card has been discharged into the tank or is full. See figure). However, the settlement machine 300 of this embodiment enters the card confiscation mode only when the highest digit of the machine number setting device 352 is set to “9”, and guides the inserted card for settlement to the card collection tank after settlement. In other cases, the card is ejected forward after the settlement and returned to the player.

第43図には、上記のごとく構成された精算機300の制
御システムの構成例が示されている。
FIG. 43 shows a configuration example of a control system of the payment machine 300 configured as described above.

この実施例の制御システムは、大別してユニット制御
装置350による制御系とカード精算制御装置312による制
御系とに分割されており、ユニット制御装置350が、紙
幣および硬貨払出器321,325や各種表示器303,304,341〜
343およびプリンタ330の制御と各種スイッチ類351〜35
4,305の入力の受付けを担当しており、カード精算制御
装置312が補助搬送装置311と、回収したカードの計数表
示手段としてのカウンタ317と、カードのチェックおよ
び磁気データの読出しを行なうカードリーダ800の制御
装置388の統括的な制御を担当している。そして、ユニ
ット制御装置350と精算制御装置312との間の交信はシリ
アル通信によって行われる。
The control system of this embodiment is roughly divided into a control system by the unit control device 350 and a control system by the card settlement control device 312, and the unit control device 350 has bill and coin dispensers 321, 325 and various displays 303, 304, 341. ~
Control of 343 and printer 330 and various switches 351 to 35
The card settlement controller 312 is in charge of receiving an input of 4,305, and the card settlement controller 312 is provided with an auxiliary transport device 311, a counter 317 as a counting and displaying means of collected cards, and a card reader 800 for checking cards and reading magnetic data. It is in charge of overall control of the control device 388. Communication between the unit controller 350 and the settlement controller 312 is performed by serial communication.

一方、ユニット制御装置350は、管理装置400との間で
カード番号等のデータの送受信を行なうため、光トラン
シーバ385を介して光ケーブルまたは同軸ケーブルから
なる低層ネットワーク用通信ライン510に接続可能にさ
れている。
On the other hand, the unit control device 350 is made connectable to a low-layer network communication line 510 including an optical cable or a coaxial cable via the optical transceiver 385 in order to transmit and receive data such as a card number to and from the management device 400. I have.

精算機300のユニット制御装置350の構成は、第41図に
示されている発行機200のユニット制御装置280とほとん
ど同一であり、ユニットコントローラ290に相当するユ
ニットコントローラ390とユニットメモリ550、データ伝
送コントローラ551、パケットメモリ552、ネットワーク
コントローラ553等により構成されている。
The configuration of the unit controller 350 of the settlement machine 300 is almost the same as that of the unit controller 280 of the issuing machine 200 shown in FIG. 41, and a unit controller 390 corresponding to the unit controller 290, a unit memory 550, and data transmission. It comprises a controller 551, a packet memory 552, a network controller 553, and the like.

精算機300のユニットコントローラ390は、上記構成部
品の制御やカード番号のチェック、カードデータの受
信、表示等を行なって精算処理を実行するとともに、稼
動データを収集し、それをデュアルポートメモリからな
るユニットメモリ550内の送信データエリアSDAに書き込
む。ユニットメモリ550に書き込まれた稼動データは、
データ伝送コントローラ551による伝送ケーブルを介し
た管理装置400との間のデータ交信により管理装置に送
られる。管理装置から送られて来るデータも、一旦ユニ
ットメモリ550内の受信データエリアRDAに書き込まれ、
ユニットコントローラ390がこれを読み取ることによっ
てデータの受信が行なわれる。ユニットメモリ550には
送信データや受信データがメモリ内にあることを相手方
のコントローラに伝えるためのコマンドやステータス情
報の入る共有データエリアCDAが設けられている。
The unit controller 390 of the checkout machine 300 controls the above components, checks the card number, receives and displays the card data, executes the checkout process, collects the operation data, and configures it as a dual port memory. Write to the transmission data area SDA in the unit memory 550. The operation data written to the unit memory 550 is
The data is transmitted to the management device by data communication between the data transmission controller 551 and the management device 400 via the transmission cable. Data sent from the management device is also temporarily written to the reception data area RDA in the unit memory 550,
The unit controller 390 reads this to receive data. Unit memory 550 is provided with a shared data area CDA for storing commands and status information for notifying the other controller that transmission data and reception data are in the memory.

表14および表15に、各々上記ユニットメモリ550内の
送信データエリアSDAおよび受信データエリアRDAの構成
例を示す。交信用エリアCCAの構成はパチンコ機のユニ
ットメモリのそれと全く同一である(表3参照)。
Tables 14 and 15 show configuration examples of the transmission data area SDA and the reception data area RDA in the unit memory 550, respectively. The structure of the communication area CCA is exactly the same as that of the unit memory of the pachinko machine (see Table 3).

表15に示すようにこの実施例ではカードの来歴データ
も受信して、これを時刻データとともにレシートに印刷
して排出することにより、遊技客に対し信頼度の高い精
算データであることを印象づけることかできる。ただ
し、来歴データはカードファイル内に入っている最高20
回までのデータである。
As shown in Table 15, in this embodiment, the history data of the card is also received, and this is printed on the receipt together with the time data and is ejected, thereby impressing the player that the payment data has high reliability. I can do it. However, the history data is up to 20 in the card file
It is data up to times.

なお、上記表14に示されているモニタ情報1は、表16
に示すようにシステム立上り時のテスト実行中を示すビ
ット、初期値設定/未設定を示すビット、ホットコード
エラーを示すビット、ローカルネットワーク(伝送ケー
ブル500)の異常を示すビット(低層用と高層用の2ビ
ット)、精算機異常を示すビット等により構成されてい
る。
Note that the monitor information 1 shown in Table 14 above corresponds to Table 16
As shown in the figure, a bit indicating that a test is being executed at system startup, a bit indicating initial value setting / unset, a bit indicating a hot code error, and a bit indicating a local network (transmission cable 500) error (for low and high layers) , 2 bits), a bit indicating an abnormality of the payment apparatus, and the like.

また、モニタ情報2は、表17に示すようにプリンタの
異常を示すビット、カードリーダの異常を示すビット、
硬貨タンク内の状態を示すビット、硬貨払出機の硬貨詰
まりを示すビット、硬貨払出機の異常を示すビット、紙
幣払出機の紙幣タンク内の状態を示すビット、紙幣払出
機の異常を示すビット等により構成されている。
The monitor information 2 includes a bit indicating a printer error, a bit indicating a card reader error as shown in Table 17, and
Bits indicating the state in the coin tank, bits indicating a jam in the coin dispenser, bits indicating an abnormality in the coin dispenser, bits indicating a state in the bill tank of the bill dispenser, bits indicating an abnormality in the bill dispenser, etc. It consists of.

次に、前述のごとく構成されたパチンコ機100、カー
ド発行機200および精算機300を統括的に制御するととも
に稼動データをリアルタイムに収集して、停電や故障が
発生しても復旧時に直ちに元のデータ状態を復活させて
システム各部の動作を再開させ、また遊技店の経営に必
要なデータの集計を可能にするとともに、カードが破損
した場合に同一資格の復活カードを発行する管理装置40
0について説明する。
Next, the pachinko machine 100, the card issuing machine 200, and the payment machine 300 configured as described above are collectively controlled, and operation data is collected in real time. A management device 40 that restores the data state, resumes the operation of each part of the system, enables the aggregation of data necessary for the management of the amusement store, and issues a resurrection card of the same qualification when the card is damaged
0 will be described.

第44図に管理装置400の具体的な構成を、また第45図
に管理装置のシステム構成を示す。
FIG. 44 shows a specific configuration of the management device 400, and FIG. 45 shows a system configuration of the management device.

管理装置400は、ミニコンクラスの中央処理装置CPUや
半導体メモリ(RAM)からなる主記憶装置M−MEM、タイ
マ(カレンダを含む)TMR、通信制御装置SCC等が格納さ
れたメイン制御装置401と、このメイン制御装置401の上
部に設けられた補助記憶装置としてのフロッピディスク
記憶装置402、ハードディスク記憶装置403とパーソナル
コンピュータ410とにより構成されている。また、パー
ソナルコンピュータ410は、メッセージや収集データを
表示するCRT表示装置411と、オペレータが指令や設定デ
ータを与えるためのコンソール412と、CPUを内蔵し、メ
イン制御装置401内の中央処理装置と通信回線および割
込回路を介して接続されたローカル処理装置413と、収
集データ等を印字するためのプリンタ414とにより構成
されている。
The management device 400 includes a main control device 401 storing a central processing unit CPU of a minicomputer class, a main storage device M-MEM including a semiconductor memory (RAM), a timer (including a calendar) TMR, a communication control device SCC, and the like. The main control device 401 includes a floppy disk storage device 402 as an auxiliary storage device, a hard disk storage device 403, and a personal computer 410 provided above the main control device 401. The personal computer 410 also has a CRT display device 411 for displaying messages and collected data, a console 412 for the operator to give commands and setting data, a built-in CPU, and communicates with a central processing unit in the main control device 401. It comprises a local processing unit 413 connected via a line and an interrupt circuit, and a printer 414 for printing collected data and the like.

ローカル処理装置413と中央処理装置CPUとを結合する
ため、通信制御装置406a,406bがメイン制御装置401内に
設けられている。
Communication control devices 406a and 406b are provided in the main control device 401 in order to connect the local processing device 413 and the central processing unit CPU.

上記プリンタ414は、管理装置400のスループットを向
上させるため、印字されるデータを一時的に格納するバ
ッファ414aを備えている。
The printer 414 includes a buffer 414a for temporarily storing data to be printed in order to improve the throughput of the management device 400.

さらに、この管理装置400には、パチンコ遊技システ
ムに特有なものとして、復活カードや各端末からシステ
ムにアクションを起こさせる媒体としてのテスト用カー
ドを発行するカードリーダ407やパチンコ機で発生する
“打止め”等、システムで発生した緊急情報をリアルタ
イムで印字する補助プリンタ408が上記メイン制御装置4
01の上部に設けられ、通信制御装置406c,406dを介して
中央処理装置CPUに接続されている。
In addition, the management device 400 includes a card reader 407 that issues a resurrection card or a test card as a medium for causing the system to perform an action from each terminal, and a “card generated by a pachinko machine”, which is unique to the pachinko gaming system. The auxiliary printer 408 that prints emergency information generated by the system such as “stop” in real time is provided by the main controller 4.
It is provided above 01 and is connected to the central processing unit CPU via the communication control devices 406c and 406d.

SCCは、ネットワークを介して各端末機との間でデー
タ伝送を可能にするための伝送制御装置である。
The SCC is a transmission control device for enabling data transmission with each terminal via a network.

また、停電発生時に、主記憶装置に揮発的に保持され
ている全ての端末の稼動データや、発行した全てのカー
ドのデータをハードディスク記憶装置403に移して保護
できるようにするため、最低でも10分間程度は管理装置
を動作できるようにする補助電源装置409が、上記メイ
ン制御装置401の下方に設けられている。
In addition, in the event of a power failure, at least 10 data is transferred to the hard disk storage device 403 to protect the operation data of all terminals volatilely held in the main storage device and the data of all issued cards to the hard disk storage device 403. An auxiliary power supply 409 that enables the management device to operate for about a minute is provided below the main control device 401.

なお、本実施例においては、主としてパチンコ機100
とカード発行機200、精算機300および管理装置400から
なるシステムについて説明するが、この発明は店内放送
装置や景品交換装置、自動販売機等をも管理装置400の
制御下におくようにしたシステムにまで拡張することが
できる。特に景品交換装置は、カードを使って精算機30
0を通さずに直接景品と交換できるような方式を容易に
適用する可能性がある。
In this embodiment, the pachinko machine 100 is mainly used.
And a system including a card issuing machine 200, a checkout machine 300, and a management device 400 will be described. However, the present invention provides a system in which an in-store broadcast device, a prize exchange device, a vending machine, and the like are also controlled by the management device 400. Can be extended to In particular, the prize exchange device uses a card to
There is a possibility that a system that can be exchanged for a prize directly without passing through 0 may be easily applied.

さらに、管理装置400を構成するコンソール412も、本
実施例のパチンコ遊技システムに最も適した独特のキー
構成となっている。
Further, the console 412 configuring the management device 400 also has a unique key configuration most suitable for the pachinko gaming system of the present embodiment.

第46図に、コンソール412の構成例を示す。同図
(B)はコンソールの上面すなわちパネル面、同図
(A)はコンソールの背面を示す。
FIG. 46 shows a configuration example of the console 412. FIG. 1B shows the upper surface of the console, that is, the panel surface, and FIG. 1A shows the rear surface of the console.

第46図において、421はシステムの各端末に対する営
業開始を指示するための開店スイッチ、422は同じく営
業終了を指示するための閉店スイッチで、開店スイッチ
421がオンされた後、閉店スイッチ422がオンされるまで
の間、各端末機におけるカードの運用が可能となる。ま
た、423は営業終了後に全端末機の稼動データをフロッ
ピディスク記憶装置402に格納し、管理装置へ動作の停
止を指示するための終了スイッチ、424は破損したカー
ドの復活処理を指示するためのカード復活スイッチであ
る。
In FIG. 46, reference numeral 421 denotes a store opening switch for instructing the start of business for each terminal of the system, and reference numeral 422 denotes a store close switch for instructing the end of business.
After the 421 is turned on, the card can be operated in each terminal until the store closing switch 422 is turned on. Also, 423 is an end switch for storing the operation data of all terminals in the floppy disk storage device 402 after the business is closed, and instructing the management device to stop the operation, and 424 for instructing the recovery process of the damaged card. It is a card resurrection switch.

なお、上記開店スイッチ421、閉店スイッチ422、終了
スイッチ423およびカード復活スイッチ424の4つのスイ
ッチは、本システムにとって特に重要なスイッチであ
り、システム稼動中安易に操作されるのを防止するた
め、その後方(図では上方)に設けられたキースイッチ
420に連動しており、キースイッチ420を回してオンさせ
た状態でないと各スイッチ421〜424を操作してオンさせ
ることができないようになっている。
The four switches of the store opening switch 421, the store closing switch 422, the end switch 423, and the card resurrection switch 424 are particularly important switches for the present system, and in order to prevent the system from being easily operated during the operation of the system, Key switch (upper in the figure)
In conjunction with the key switch 420, each of the switches 421 to 424 cannot be turned on unless the key switch 420 is turned on.

425,426,427は、通常のパーソナルコンピュータ等の
コンソールに設けられているのと同種のテンキー、リタ
ーンキーおよびデリートキーである。
Reference numerals 425, 426, and 427 denote ten keys, a return key, and a delete key similar to those provided on a console of a normal personal computer or the like.

一方、428はカードに関するデータや各端末の稼動デ
ータ等をCRT表示装置411の画面上に表示させる指令を与
える表示メニュースイッチ、429はCRT表示装置に表示さ
れたデータの消去を要求するCRTクリアスイッチであ
る。また430はカードに関するデータや各端末の稼動デ
ータ等をプリンタ414によって印字させる指令を与える
印字メニュースイッチ、431はプリンタ414による印字の
中止を要求する印字ストップスイッチである。432はパ
チンコ機における打止数や打止モード等の設定を要求す
るための設定スイッチ、433は、設定された打止数の賞
品球が払い出されて打止すなわち遊技継続不能状態にな
っているパチンコ機の打止状態の解除指令を与えるため
の打止解除スイッチ、434は、営業終了時に端末機を種
別ごとに強制終了させたり、通信ネットワークの異常等
に伴い正常な制御やデータ収集が不能になった場合に全
端末機を強制終了させたり、あるいは遊技客の不正を発
見した場合に特定端末機を強制停止させるための強制終
了スイッチ、435は強制停止された端末機の停止を解除
させるための終了解除スイッチ、439は日時設定用スイ
ッチである。また、実施例のコンソール412には、パチ
ンコ機での打止等緊急事態が発生した場合にオペレータ
の喚起を促す音を発生するブザー440と、その発音停止
を指示するブザーストップスイッチ436とが設けられて
いる。
On the other hand, reference numeral 428 denotes a display menu switch for giving an instruction to display data related to the card and operation data of each terminal on the screen of the CRT display device 411, and reference numeral 429 denotes a CRT clear switch for requesting deletion of data displayed on the CRT display device. It is. Reference numeral 430 denotes a print menu switch for giving a command to cause the printer 414 to print data related to the card, operation data of each terminal, and the like. Reference numeral 431 denotes a print stop switch for requesting the printer 414 to stop printing. 432 is a setting switch for requesting the setting of the number of hits or the hitting mode in the pachinko machine, and 433 is hitting, that is, the game cannot be continued because the prize balls of the set hitting number are paid out. A stop release switch 434 for giving a command to release the stop state of pachinko machines that have been shut down, forcibly shuts down terminals by type at the end of business, normal control and data collection due to communication network abnormalities, etc. Forced termination switch for forcibly terminating all terminals if it becomes impossible or forcibly stopping specific terminals if a player's fraud is discovered, 435 cancels termination of forcibly terminated terminals An end release switch 439 is a date / time setting switch. Further, the console 412 of the embodiment is provided with a buzzer 440 that generates a sound to urge the operator to wake up when an emergency such as a pachinko machine is hit and a buzzer stop switch 436 that instructs to stop the sound generation. Have been.

上記各スイッチのうち、図中2重枠で示されているス
イッチ421〜424,432〜436は、ランプ内蔵型のスイッチ
で、これらのスイッチがオンされて対応する処理の実行
中もしくは状態継続中内蔵ランプが点灯される。ただ
し、ブザーストップスイッチ436内のランプは、ブザー
と連動し、ブザー発音中点灯され、ストップスイッチ43
6が押されると消灯する。
Of the above switches, the switches 421 to 424 and 432 to 436 indicated by double frames in the figure are switches with built-in lamps. Lights up. However, the lamp in the buzzer stop switch 436 is linked with the buzzer, lights up while the buzzer is sounding, and the stop switch 43
Turns off when 6 is pressed.

さらに、この実施例のコンソール412には、その背面
に、テストカード発行指令を与えるためのテストカード
スイッチ437と、システム導入時に購入玉の交換レート
や店コード、端末機の総台数、入賞球1個当たりの賞品
球数等の設定値の設定要求を行なうためのビルトインス
イッチ438が設けられている。これらのスイッチ437と43
8は、他のスイッチと異なり、通常はほとんど使用しな
いスイッチであり、かつ特定の者(遊技店の支配人等)
が存在を知っていればよいスイッチであるため、コンソ
ールの背面に設けられている。
Further, the console 412 of this embodiment has a test card switch 437 for giving a test card issuance command on the back thereof, an exchange rate of purchased balls and store codes, a total number of terminals, a winning ball 1 when the system is introduced. A built-in switch 438 is provided for making a setting request such as the number of prize balls per piece. These switches 437 and 43
8 is a switch that is rarely used unlike other switches, and is a specific person (such as a manager of a game store).
Is a switch that only needs to know its presence, so it is provided on the back of the console.

ここで、上記テストカードについて言及する。既に説
明した構成より明らかなように、この実施例の遊技シス
テムは、すべての端末機(パチンコ機、カード発行機、
精算機)が管理装置の制御下にあり、カード番号等のや
り取りによって稼動可能な状態に移行するようになって
おり、端末単独では動作不能である。しかるに、パチン
コ機は使用頻度が高いため、玉詰まりやいわゆるチュー
リップなどの役物が故障したりすることが多いととも
に、出玉率の調節のため遊技領域内の釘調整が必要であ
る。その場合、修理や釘調整後に試し打ちを行なうこと
になるが、本実施例では、前述した各パチンコ機の制御
ユニット160内のテスト用スイッチ179をオンさせ、かつ
管理装置によって発行された特殊なテスト用カードを制
御ユニット160のカード挿排口802aより挿入すると、一
定の持玉数が与えられてパチンコ機単独で遊技動作が実
行可能になるように構成されている。これによって、非
営業時における試し打ちではシステム全体を立ち上がら
せる必要がない。また、営業中においては、遊技中の稼
働データを損なうことなく試し打ちを行なうことができ
る。
Here, the test card will be described. As is clear from the configuration already described, the gaming system of this embodiment includes all terminals (pachinko machines, card issuing machines,
The settlement machine is under the control of the management device, and shifts to an operable state by exchanging card numbers and the like, and cannot be operated by the terminal alone. However, since pachinko machines are frequently used, jams and so-called tulips and other accessories often break down, and it is necessary to adjust nails in the game area to adjust the payout rate. In this case, a test drive is performed after repair or nail adjustment. In this embodiment, the test switch 179 in the control unit 160 of each pachinko machine described above is turned on, and a special device issued by the management device is used. When a test card is inserted through the card insertion / ejection port 802a of the control unit 160, a certain number of balls is given, and the pachinko machine can execute a game operation alone. As a result, it is not necessary to start up the entire system in trial running during non-business hours. In addition, during business hours, a trial hit can be performed without impairing the operation data during the game.

なお、管理装置400に設けられるカードリーダ407は第
25図に示すパチンコ機内のカードリーダ800と全く同じ
構成でよい。
Note that the card reader 407 provided in the management device 400
The configuration may be exactly the same as the card reader 800 in the pachinko machine shown in FIG.

ただし、内部に白紙カードを有さず、外部から白紙カ
ードを挿入して磁気面にコードを記録して排出する方式
を採るようにしてもよい。その場合にはカードタンクを
省略できる。また、管理装置400により発行される前記
テストカードや復活カードは必ずしも他の一般カードの
ように使用年月日や発行通し番号等を明記する必要がな
いので、印字装置を省略してもよい。ただし、印字装置
を組み込んで、テストカードである旨を印字して発行す
ることもできる。なお、復活カード発行の際には穿孔装
置807によってカードの所定の穿孔位置PH2にパンチ穴を
開けるようになっている。
However, a method may be employed in which a blank card is inserted from outside, a code is recorded on a magnetic surface, and the blank is ejected, without a blank card inside. In that case, the card tank can be omitted. Further, since the test card and the resurrection card issued by the management device 400 do not always need to specify the date of use and the serial number of the issuance as in other general cards, the printing device may be omitted. However, it is also possible to incorporate a printing device and print out and issue the fact that the card is a test card. Incidentally, it has become so punch holes in a predetermined punching position PH 2 of the card by the perforating apparatus 807 during resurrection card issuing.

上述したようにこの実施例の端末機100,200,300はす
べての管理装置400の管理下に置かれ、管理装置400が起
動されていないと、原則として単独で動作できない。従
って、システムの立上り時には管理装置400によってす
べての端末機に設定値を与えてイニシャライズを行な
う。しかも、このイニシャライズに先立って、データ伝
送を可能にするため各端末機から台番号を吸い上げて1
つ1つの伝送アドレスを形成する。そして、システム稼
動中はすべての端末機の稼動データをリアルタイムで収
集して主記憶装置M−MEMに保持するようになってい
る。
As described above, the terminals 100, 200, and 300 of this embodiment are under the control of all the management devices 400, and cannot operate independently unless the management device 400 is activated. Therefore, when the system is started up, the management apparatus 400 gives setting values to all terminals and initializes them. In addition, prior to the initialization, the terminal number is collected from each terminal to enable data transmission, and 1
Each transmission address is formed. During operation of the system, operation data of all terminals is collected in real time and stored in the main storage M-MEM.

このように、本実施例では管理装置400の取扱うデー
タの量は膨大なものとなる。そこで、実施例ではこれら
のデータをファイル管理により整理して取扱いを容易に
している。
As described above, in this embodiment, the amount of data handled by the management device 400 is enormous. Therefore, in the embodiment, these data are organized by file management to facilitate handling.

表18に管理装置400によって管理されるデータのファ
イル構成例を示す。
Table 18 shows a file configuration example of data managed by the management device 400.

これらのファイルは通常主記憶装置M−MEM内に記録
されるが、すべてのファイルは停電時にハードディスク
記憶装置403にセーブされる。また、端末機に関するデ
ータファイルすなわちパチンコ機ファイル(以下P機フ
ァイルと称する)、発行機ファイルおよび精算機ファイ
ルは、営業終了時にフロッピーディスク記憶装置402に
記憶され、月別の稼動データ集計等に供される。
These files are usually recorded in the main memory M-MEM, but all files are saved in the hard disk storage 403 at the time of power failure. Further, the data files relating to the terminals, that is, the pachinko machine files (hereinafter referred to as P machine files), the issuing machine files and the settlement machine files are stored in the floppy disk storage device 402 at the end of business hours, and are provided for monthly operation data totaling and the like. You.

次に、表18に示されている各ファイルについて更に詳
しく説明する。
Next, each file shown in Table 18 will be described in more detail.

同表における設定値ファイルFL1は、システム導入時
にコンソールの入力によって予めハードディスクに記憶
される購入玉の交換レートや店コード、端末台数、賞品
球数、打止数等のシステムの特性や構成に応じて変動す
る設定値である。この設定値ファイルは通常営業開始時
にハードディスクHDDより主記憶装置にロードされる。
また、設定値ファイルFL1は、パチンコ機の入替えの際
等にビルトインスイッチを押してコンソールより更新で
きるようになっている。
The setting value file FL1 in the table depends on the characteristics and configuration of the system such as the exchange rate of purchased balls, the store code, the number of terminals, the number of prize balls, the number of hits, etc. Is a setting value that fluctuates. This setting value file is normally loaded from the hard disk HDD to the main storage device at the start of business.
The set value file FL1 can be updated from the console by pressing a built-in switch when replacing a pachinko machine or the like.

表19に設定値ファイルFL1の構成例を示す。 Table 19 shows a configuration example of the setting value file FL1.

同表において、購入玉交換レートとは、購入金額単位
(例えば200円)に対する貸玉数すなわち最小の持玉数
であり、NAU台数とは、データ伝送システムとしての高
層ネットワークと低層ネットワークとの連結部に設けら
れるネットワークアダプタユニット(通信制御装置)の
総数である。また、符号iで示されるテーブルには、あ
るパチンコ機からあるパチンコ機までの賞品球数が設定
される。この賞品球数には1台につき2種類の賞品球数
が設定できるようになっている。しかも、i=1〜16で
示されるようにこの実施例では、遊技店の全パチンコ機
を16のグループに分割して、各々メインとサブの2つの
賞品球数を別個に設定できるようになっている。ただし
同一の設定値のパチンコ機には連続した台番号が与えら
れ、その先頭番号と末尾番号とによって対象範囲が指定
される。
In the table, the exchange rate of purchased balls is the number of lending balls per purchase amount unit (for example, 200 yen), that is, the minimum number of possessed balls, and the number of NAUs is the connection between a high-layer network and a low-layer network as a data transmission system. The total number of network adapter units (communication control devices) provided in the unit. Further, the number of prize balls from a certain pachinko machine to a certain pachinko machine is set in a table indicated by a symbol i. Two types of prize balls can be set for each prize ball. In addition, as shown by i = 1 to 16, in this embodiment, all the pachinko machines of the amusement store are divided into 16 groups, and two main and sub prize balls can be separately set. ing. However, consecutive machine numbers are given to pachinko machines having the same set value, and the target range is specified by the start number and end number.

さらに、jで示されるテーブルには打止数が設定さ
れ、kで示されるテーブルには打止モードが設定され
る。ここで、打止モードとは、打止数の算出の仕方(演
算式)を示し、例えば単純に払出し賞品球数が打止数に
達したときをもって打止とするモードや、払出し賞品球
数から打込球数を引いたものが打止数に達したときをも
って打止めとするモード等がある。特に限定はされない
が、この実施例ではj=1〜16,k=1〜16で示されるよ
うに、各々16のグループに分けて独立に打止数および打
止モードを設定できる。
Further, the number of hits is set in the table indicated by j, and the hitting mode is set in the table indicated by k. Here, the hit mode indicates a method of calculating the number of hits (arithmetic formula). For example, a mode in which hitting is performed when the number of payout prize balls reaches the hit number, or the number of payout prize balls. There is a mode in which, when the number of hit balls is subtracted from the number of hits reaches the number of hits, hitting is performed when the hitting number is reached. Although not particularly limited, in this embodiment, as shown by j = 1 to 16, k = 1 to 16, the number of hits and the hitting mode can be independently set for each of 16 groups.

表20に、データ伝送に使用される伝送アドレスのファ
イルFL2の構成例を示す。
Table 20 shows a configuration example of a transmission address file FL2 used for data transmission.

表20において、種別フラグは端末の種類を示すための
フラグで、「1」がパチンコ機、「2」がカード発行
機、「4」が精算機であることを、そして、「0」が端
末の不存在を各々示す。台番号および通し番号は「4」
と「9」を除いて作られた端末機の番号とその通し番号
であり、ユニット番号は、端末の種類にかかわらず一つ
のNAU(ネットワークアダプタユニット)の下に置かれ
た各端末機の番号すなわち後述の低層ネットワーク上で
のアドレスとなる番号、またチャネル番号は管理装置か
ら見た各端末機のアドレスすなわち後述の高層ネットワ
ーク上でのアドレスとなる番号である。ただし、実施例
のシステムでは一つのNAUの下に接続されるパチンコ機
台数を64台以下としている。
In Table 20, the type flag is a flag for indicating the type of terminal. “1” indicates a pachinko machine, “2” indicates a card issuing machine, “4” indicates a checkout machine, and “0” indicates a terminal. Indicates the absence of each. Vehicle number and serial number are "4"
And the serial number of the terminal created except for “9”, and the unit number is the number of each terminal placed under one NAU (network adapter unit) regardless of the type of terminal, ie, The number which is an address on a low-layer network described later, and the channel number are the addresses of the respective terminals viewed from the management device, that is, the numbers which are addresses on a high-layer network described later. However, in the system of the embodiment, the number of pachinko machines connected under one NAU is set to 64 or less.

NAU番号と台番号は既に述べたように設定スイッチ(1
71,205,305,561)で与えられる番号で、パチンコ店の場
合、パチンコ機の台番号は、慣例として「4」と「9」
を除いた数字で与えられる飛び番号である。ここで
「4」と「9」を使用しないということは8進法表現が
可能であることが分かる。そこで、10進数表示された台
番号を表21に示す変換テーブルを使って0〜7の数字の
みで表現する。これに従うと、例えば「258」なる台番
号は「247」と表記される。
The NAU number and the unit number are set by the setting switches (1
71, 205, 305, 561), and in the case of a pachinko parlor, the pachinko machine numbers are customarily "4" and "9".
It is a jump number given by a number excluding. Here, the fact that "4" and "9" are not used indicates that an octal representation is possible. Therefore, the unit numbers expressed in decimal notation are represented by only the numbers 0 to 7 using the conversion table shown in Table 21. According to this, for example, a stand number of “258” is described as “247”.

これを2進化8進法によりバイナリコードを表現する
と、「010・100・111」となる。このコードは10進法の
「167」を示しており、これによって、「4」と「9」
の抜けたパチンコ機台番号が連続した通し番号となる。
一方、低層ネットワーク上でのアドレスを8ビットに抑
えるため上記コードの下位8ビットをとって、これを2
進化8進法で表されたコード「1010・0111」とみなし、
これをHEXA表現すると、「A7H」となる。さらに、一つ
のNAU下にはパチンコ機以外に発行機や精算機等の端末
機も接続されており、それらにも8ビットのユニット番
号を与えるため、一つのNAU下のパチンコ機の台数を64
台に制限し、上記コード「A7H」とコード「3FH」との論
理積をとって「27H」を得る。この実施例ではこれをユ
ニット番号とするものである。そして、このユニット番
号の頭にNAU番号を付けた「NAU番号+ユニット番号」を
チャネル番号としている。このような方法により、
「4」と「9」を使用しない台番号の有するパチンコ遊
技店の慣例において、2進法のみを使ってデータ処理を
行なうマイクロコンピュータの特性に合致した効率の良
いアドレス処理が可能となる。
If this is expressed as a binary code in binary octal system, it will be "010/100/111". This code indicates the decimal "167", which results in "4" and "9"
Pachinko machine numbers that are missing are consecutive serial numbers.
On the other hand, in order to reduce the address on the low-layer network to 8 bits, the lower 8 bits of the above code are taken, and this is taken as 2 bits.
Assuming the code "1010-0111" expressed in the octal evolution system,
If this is expressed in HEXA, it will be "A7H". Furthermore, besides pachinko machines, terminals such as issuing machines and settlement machines are also connected under one NAU. To give them an 8-bit unit number, the number of pachinko machines under one NAU is increased by 64.
The number is limited to the platform, and the logical product of the code “A7H” and the code “3FH” is obtained to obtain “27H”. In this embodiment, this is used as the unit number. Then, “NAU number + unit number” in which an NAU number is prefixed to the unit number is used as a channel number. In this way,
In the custom of a pachinko game store having a machine number that does not use “4” and “9”, efficient address processing that matches the characteristics of a microcomputer that performs data processing using only the binary system can be performed.

上記ファイルは、回線テスト後の管理装置によるユニ
ットテーブル要求の返答データに基づいて全端末機につ
いて作成されている。
The file is created for all terminals based on the response data of the unit table request by the management device after the line test.

表22にカードファイルFL3の構成例を示す。カードフ
ァイルFL3には、各カードごとの情報が入る。
Table 22 shows a configuration example of the card file FL3. The card file FL3 contains information for each card.

同表において、カード番号は発行通し番号nから関数
f(n)を用いて、得られる番号であり、持玉数と金
額、カード状態は発行通し番号nとカード番号で特定さ
れるカードの現在状態を示す情報で、この実施例では以
下カードテキストを称する。なお、ここでカード状態と
は、表23に示すように、遊技に使用されていないフリー
状態を示すビット、遊技中を示すビット、遊技機から一
時的に離れる中断中を示すビット、既に精算機における
精算を行なったカードであることを示すビット、カード
の持玉数および残金がともにゼロになったことを示すビ
ット、過去に1回以上打止めを発生したことを示すビッ
ト、強制終了されたパチンコ機で使用されたカードであ
ることを示すビット、復活されたカードであることを示
すビット等により構成されている。
In the same table, the card number is a number obtained from the issue serial number n using the function f (n), and the number of balls and the amount of money, and the card status is the current status of the card specified by the issue serial number n and the card number. This information is referred to as a card text in this embodiment. Here, the card state is, as shown in Table 23, a bit indicating a free state that is not used in a game, a bit indicating a game, a bit indicating a pause temporarily leaving the gaming machine, A bit indicating that the card has been settled, a bit indicating that both the number of balls and the balance of the card have become zero, a bit indicating that one or more hits have occurred in the past, It is composed of a bit indicating that the card is used in the pachinko machine, a bit indicating that the card has been restored, and the like.

一方、表22に戻って、カードファイルFL3には、カー
ドの現在存在している端末の位置を示す所在端末通し番
号と、所在端末番号が登録される。パチンコ機遊技店で
は慣例として、「4」と「9」の数台を台番号として用
いないので、裏と表の2種類の端末番号が発生する。
Returning to Table 22, on the other hand, in the card file FL3, a terminal serial number indicating the position of the terminal where the card is currently present and a terminal number are registered. In pachinko game arcades, as usual, several terminal numbers “4” and “9” are not used as unit numbers, so two types of terminal numbers, back and front, are generated.

また、表22においてiカウンタとはカードがアクショ
ン起こした数すなわち、カードが有機的結合体たるシス
テムから外部へ排出動作された回数を示すもので、この
回数に対応して、そのときの台番号、持玉数、金額、時
刻等のカード情報すなわちカードの来歴が記録される。
統計的に見て遊技者は1日20台以下のパチンコ機で遊技
するのがほとんどであるので、この実施例では最高20回
までカード来歴を記録することとした。ただし、20回を
超えた場合には、i=20で示されるテーブルを更新する
形で記録される。なお、上記の場合、iカウンタは遊技
中断を計数しない。つまり、中断時には各カード情報を
新しいエリアに記録するが、中断解除後の遊技終了スイ
ッチオン時にカウンタを更新せず同一エリアに重ねてカ
ード情報を記録することによりiカウンタの値を実質的
な遊技台数と一致させている。
In Table 22, the i-counter indicates the number of actions taken by the card, that is, the number of times the card has been ejected from the system, which is an organic combination, to the outside. , Card information such as the number of balls, the amount of money, the time, etc., that is, the card history is recorded.
Statistically, most players play with less than 20 pachinko machines per day. Therefore, in this embodiment, the card history is recorded up to 20 times. However, when the number of times exceeds 20, the information is recorded in a form updating the table indicated by i = 20. In the above case, the i counter does not count the interruption of the game. In other words, each card information is recorded in a new area at the time of interruption, but the value of the i-counter is substantially updated by recording the card information in the same area without updating the counter when the game end switch is turned on after the interruption is cancelled. The number is matched.

ここで、カードの状態およびアクションとカードファ
イルへFL3のカード情報の登録について第47図を用いて
説明する。
Here, the state and action of the card and the registration of the FL3 card information in the card file will be described with reference to FIG.

先ず、カード発行機200においてカードの発行が行な
われると、カードが排出されて、カードは未発行(白
紙)状態SS0からフリー状態SS1に移行する。それから、
所望のパチンコ機100にカードを挿入すると、遊技状態S
S2へ移行する。ここで遊技によってカードの持玉および
金額がゼロになると、カードが排出されて帰零状態SS3
に移る。また、遊技中に中断スイッチ115が押される
と、カードが排出されて、中断状態SS4へ移行し、同一
カードの再投入により再び遊技状態SS2へ戻る。そし
て、遊技中に遊技を終了させるべく終了スイッチ114を
押すと、カードが排出されてフリー状態SS1に移行す
る。CPUによる強制終了または打止発生によってもカー
ドが排出されて遊技状態SS2からフリー状態SS1へ移る。
そのフリー状態のカードを持って精算機300に行き精算
処理を行なうと、無効マークが付されてからカードが回
収され精算済の状態SS5へ移る。この実施例のシステム
では、中断状態SS4のカードを持ってパチンコ機に戻ら
ずそのまま精算機300に行き、精算処理を行なうことも
可能でありその場合、中断状態SS4から精算済状態SS5へ
移行する。
First, when a card is issued in the card issuing machine 200, the card is ejected and the card shifts from the unissued (blank) state SS0 to the free state SS1. then,
When the card is inserted into the desired pachinko machine 100, the gaming state S
Move to S2. Here, when the ball and the amount of money of the card become zero by the game, the card is ejected and the state is returned to zero return SS3
Move on to Further, when the interruption switch 115 is pressed during the game, the card is ejected, and the state shifts to the interruption state SS4, and returns to the game state SS2 again by reinserting the same card. Then, when the end switch 114 is pressed to end the game during the game, the card is ejected and the state shifts to the free state SS1. The card is ejected by the forced termination or hitting by the CPU, and the game state SS2 is shifted to the free state SS1.
When the user goes to the checkout machine 300 with the card in the free state and performs the checkout process, the card is collected after an invalid mark is added, and the state is shifted to the settled state SS5. In the system of this embodiment, it is also possible to go to the checkout machine 300 without returning to the pachinko machine with the card in the interrupted state SS4 and perform the checkout process.In that case, the state shifts from the interrupted state SS4 to the settled state SS5. .

上記状態遷移図において、遷移方向を示す矢印に○が
付されているのがカードファイルFL3へのカード情報の
記録を伴うアクションである。また、各ブロック内に
て、xxHで示されている符号は、表23のカード状態を示
すコードを用いて対応する状態を16進数字で表現(HEXA
表現)したものである。
In the state transition diagram described above, an action accompanied by recording of card information in the card file FL3 is indicated by a circle in the arrow indicating the transition direction. In each block, the code indicated by xxH represents the corresponding state in hexadecimal using the code indicating the card state in Table 23 (HEXA
Expression).

次に、表24にP機ファイルFL4の構成例を示す。 Next, Table 24 shows a configuration example of the P machine file FL4.

同表において、台番号からカード状態までの項目は、
表1に示されている送信データエリアに保持されている
データであり、これらは1秒に1回管理装置400によっ
てサンプリングされ、ファイルに登録される。また、メ
イン賞球数、サブ賞球数、打止数および打止モードは、
システム立上り時に表19に示されている設定値ファイル
FL1に基づいてP機ファイルFL4に登録される。
In the table, items from the machine number to the card status are as follows:
The data held in the transmission data area shown in Table 1 is sampled once a second by the management device 400 and registered in a file. In addition, the number of main prize balls, the number of sub prize balls, the number of hits, and the hit mode,
Setting value files shown in Table 19 at system startup
It is registered in the P machine file FL4 based on FL1.

表25および表26に発行機ファイルFL5と精算機ファイ
ルFL6をそれぞれ示す。表25に示すデータ項目は、表10
に示されている発行機の送信データエリアに保持されて
いるデータ、また、表26に示すデータの項目は表14に示
されている送信データエリアに保持されているデータと
各々一致する。これらは、1秒間に1回管理装置によっ
てサンプリングされる。
Tables 25 and 26 show the issuing machine file FL5 and the checkout machine file FL6, respectively. The data items shown in Table 25 are
The data stored in the transmission data area of the issuing machine shown in Table 26 and the data items shown in Table 26 respectively correspond to the data stored in the transmission data area shown in Table 14. These are sampled by the management device once a second.

表24〜表26において、セーブ欄に○印が付されている
データは、営業終了時にフロッピディスクFDDにセーブ
されるデータである。
In Tables 24 to 26, data marked with a circle in the save column is data saved on the floppy disk FDD at the end of business.

次に上記のごとく構成された端末機としてのカード発
行機200、パチンコ機100、精算機300およびそれらの端
末機の集中制御を行なう管理装置400を有機的に結合し
て、データ伝送およびカードの運用を可能にするデータ
伝送路(ローカルエリアネットワーク)について説明す
る。第48図に階層的データ伝送路を用いたパチンコ遊技
システムの構成例を示す。
Next, the card issuing machine 200 as a terminal configured as described above, the pachinko machine 100, the payment machine 300, and the management device 400 that performs centralized control of those terminals are organically connected to perform data transmission and card transfer. A data transmission path (local area network) that enables operation will be described. FIG. 48 shows a configuration example of a pachinko game system using a hierarchical data transmission path.

すなわち、100〜1000台の端末機は、例えば遊技店の
島設備のような単位で20〜40台ずつグループ化され、各
群の端末機は、リング状の伝送路上を高速で巡回するト
ークンと呼ばれるアクセス権をつかまえたノード(端末
機)がパケットの形でデータの送受信を行なう権利を有
するようにされたトークンパッシング方式の低層ネット
ワーク(トークンバス)510によってネットワークアダ
プタユニット(以下、NAUと称する)530に接続されてい
る。
That is, 100 to 1000 terminals are grouped in units of 20 to 40, for example, in units such as amusement park island facilities, and each group of terminals is a token that circulates at high speed on a ring-shaped transmission path. A network adapter unit (hereinafter, referred to as NAU) by a token-passing-type low-layer network (token bus) 510 in which a node (terminal) having access right has a right to transmit and receive data in the form of a packet. Connected to 530.

そして、各低層ネットワーク(トークンバス)510を
制御する複数個のNAU530は、CSMA/CD方式の高層ネット
ワーク520を介して管理装置400に接続されている。
A plurality of NAUs 530 that control each low-layer network (token bus) 510 are connected to the management device 400 via a high-level network 520 of the CSMA / CD system.

上記低層ネットワーク510は2.5Mbps(メガビット/
秒)のような伝送速度を有し、高層ネットワーク520
は、10Mbpsのような伝送速度を有するように制御され、
NAU530は両者の伝送速度の差を吸収して円滑なデータ伝
送を可能とするバッファとして作用し、これによって、
管理装置400の負担を軽減し、大量の稼動データの収集
を可能にしている。
The low-layer network 510 is 2.5Mbps (megabit /
Second) and have a high-speed network 520
Is controlled to have a transmission rate such as 10 Mbps,
The NAU530 acts as a buffer that absorbs the difference between the two transmission rates and enables smooth data transmission,
The burden on the management device 400 is reduced, and a large amount of operation data can be collected.

第48図において符号Pで示されているが端末機として
のパチンコ機、符号Hで示されているのがカード発行
機、また符号Sで示されているのが精算機である。
In FIG. 48, a pachinko machine as a terminal is indicated by reference numeral P, a card issuing machine is indicated by reference numeral H, and a checkout machine is indicated by reference numeral S.

各端末機P,H,Sは、ネットワーク510から分岐された分
岐線に接続されている。各分岐線の終端に各々の端末機
の制御ユニット160,250および350が接続されている。第
48図において符号Uで示すのが、各端末機の制御ユニッ
トである。
Each of the terminals P, H, S is connected to a branch line branched from the network 510. The control units 160, 250 and 350 of each terminal are connected to the end of each branch line. No.
Reference numeral U in FIG. 48 denotes a control unit of each terminal.

第49図に、上記低層ネットワーク510と高層ネットワ
ーク520間のデータ伝送の緩衝を行なう上記NAU(ネット
ワークアダプタユニット)530の回路構成例を示す。
FIG. 49 shows a circuit configuration example of the NAU (network adapter unit) 530 that buffers data transmission between the low-layer network 510 and the high-layer network 520.

この実施例のNAU530は、低層ネットワーク510におけ
る送受信権の確立およびデータの直並列変換を行なう低
層ネットワークコントローラ533と、CSMA/CD方式の高層
ネットワークにおける送受信権の確立およびデータの直
並列変換を行なう高層ネットワークコントローラ537
と、これらのネットワークコントローラ533と537との間
のデータ転送を制御するデータ伝送コントローラ535と
を備えている。上記コントローラのうち、低層ネットワ
ークコントローラ533は、トークンパッシング専用の通
信用LSIからなり、高層ネットワークコントローラ537と
データ伝送コントローラ535は、汎用マイクロコンピュ
ータによって構成されている。そして、これらのコント
ローラ533と535との間および535と537との間には、低層
ネットワーク510と高層ネットワーク520のデータ伝送速
度違いを吸収するための緩衝用パケットメモリ534と536
とがそれぞれ接続されている。上記パケットメモリ534,
536はデュアルポートメモリにより構成され、送信デー
タエリアと受信データエリアとを有する。また、上記低
層ネットワークコントローラ533と低層ネットワーク
(トークスバス)510との間には、送信信号と受信信号
の分離および結合を行なう分岐回路531と、送受信デー
タ信号のレベル変換を行なうレベル変換回路532が接続
されている。また、同様に、高層ネットワークコントロ
ーラ537と高層ネットワーク520との間には、レベル変換
回路538と分岐回路539が接続されている。
The NAU 530 of this embodiment includes a low-layer network controller 533 that establishes a transmission / reception right in the low-layer network 510 and performs serial-parallel conversion of data, and a high-layer network that establishes a transmission / reception right and serial-parallel conversion of data in a CSMA / CD high-layer network. Network controller 537
And a data transmission controller 535 for controlling data transfer between these network controllers 533 and 537. Among the above controllers, the low-layer network controller 533 is composed of a communication LSI dedicated to token passing, and the high-layer network controller 537 and the data transmission controller 535 are composed of general-purpose microcomputers. Further, between these controllers 533 and 535 and between 535 and 537, buffer packet memories 534 and 536 for absorbing a difference in data transmission speed between the low-layer network 510 and the high-layer network 520 are provided.
And are connected respectively. The above packet memory 534,
536 is constituted by a dual port memory and has a transmission data area and a reception data area. Between the low-layer network controller 533 and the low-layer network (talks bus) 510, a branch circuit 531 for separating and coupling a transmission signal and a reception signal, and a level conversion circuit 532 for converting the level of a transmission / reception data signal are provided. It is connected. Similarly, a level conversion circuit 538 and a branch circuit 539 are connected between the high-layer network controller 537 and the high-layer network 520.

さらに、この実施例のNAU530とは、複数個接続されて
いるNAUを互いに区別するための番号を設定するNAU番号
設定器561と、各NAU530の制御下にある低層ネットワー
ク510上に存在する端末機のうち最小台番号を設定する
最小台番号設定器562と、低層ネットワーク上に存在す
る端末機の台数を設定する台数設定器563とが設けられ
ている。各設定器561〜563の設定値は、NAU530内のデー
タ伝送コントローラ535に入力され、NAU番号は高層ネッ
トワーク520における各NAUの伝送アドレスの形成に使用
される。また、最小台番号と台数とにより低層ネットワ
ーク510における各端末機の伝送アドレスが形成され
る。
Further, the NAU 530 of this embodiment includes a NAU number setting unit 561 for setting a number for distinguishing a plurality of connected NAUs from each other, and a terminal existing on the low-layer network 510 under the control of each NAU 530. And a number setting device 563 for setting the number of terminals existing on the low-layer network. The set values of the setting units 561 to 563 are input to the data transmission controller 535 in the NAU 530, and the NAU number is used for forming the transmission address of each NAU in the high-layer network 520. Also, the transmission address of each terminal in the low-layer network 510 is formed by the minimum number and the number.

上記階層的ローカルネットワーク(第48図)において
は、システム立上り時に管理装置400が各NAU530を通じ
て回線テストと、各端末機に対する設定値の設定を行な
うとともに、システム稼動中にはNAU530が低層ネットワ
ーク510を使用して1秒間に1回ずつ端末機P,H,Sから稼
動データを収集して自己のメモリ内に蓄積する。そし
て、蓄積データは、管理装置400からの要求に応じて同
じく1秒間に1回ずつ高層ネットワーク520を通して各N
AU530から管理装置400内のデータファイル内にストック
される。
In the hierarchical local network (FIG. 48), when the system starts up, the management device 400 performs a line test through each NAU 530 and sets a set value for each terminal, and the NAU 530 connects the low-layer network 510 during system operation. It collects operation data from the terminals P, H, and S once a second and stores it in its own memory. The stored data is transmitted to each N through the high-layer network 520 once a second in response to a request from the management device 400.
The data is stored in the data file in the management device 400 from the AU 530.

上記のごとく、通信ネットワークがNAU530をバッファ
とする階層的構成にされ、高層ネットワーク520が低層
ネットワーク510の伝送速度2.5Mbpsの4倍の伝送速度を
有するようにされているため、100〜1000台の端末機を
有するシステムにおいても、各端末機から表1、表10、
表13に示すような大量の稼動データを1秒間に1回管理
装置へ収集することができる。
As described above, since the communication network has a hierarchical configuration using the NAU 530 as a buffer and the high-layer network 520 has a transmission speed four times the transmission speed of the low-layer network 510 of 2.5 Mbps, 100 to 1000 In a system having terminals, Table 1, Table 10,
A large amount of operation data as shown in Table 13 can be collected in the management device once a second.

表27には、上記データ伝送システムにおいて管理装置
400からカード発行機200のユニット制御装置280に送信
される発行機から見た受信パケットの種類、また表28に
はカード発行機200から管理装置400へ送られる送信パケ
ットの種類がそれぞれ示されている。
Table 27 shows the management devices in the data transmission system.
The types of received packets as seen from the issuing machine transmitted from 400 to the unit controller 280 of the card issuing machine 200, and the types of transmitted packets transmitted from the card issuing machine 200 to the management device 400 are shown in Table 28, respectively. I have.

表28に掲記されている“カード購入”パケットは、カ
ード発行機20の紙幣装入口211に紙幣が挿入され購入選
択スイッチ212がオンされたときに、ユニット制御装置2
80から管理装置400に対してそのカードに関するカード
番号と発行通し番号を要求するためのパケット、また表
27の“カード購入ACK"パケットはそれに対する応答パケ
ットである。
The “card purchase” packet described in Table 28 is transmitted when the bill is inserted into the bill insertion slot 211 of the card issuing machine 20 and the purchase selection switch 212 is turned on.
A packet for requesting the management device 400 for the card number and issue serial number
The 27 "card purchase ACK" packet is a response packet to it.

この実施例のシステムにおいては、カード発行機200
に紙幣が投入される前にカード番号等の予約を行ない、
実際に紙幣投入されたときに金額を印字して発行できる
ように前準備を行なえるようにするため、カード発行機
200がカード金額の欄が「0」の“カード購入”パケッ
トを送信してくると、管理装置400は発行予約のパケッ
トであると判断し、発行通し番号とカード番号を決定し
カードファイル内に当該カードのエリアを確保してか
ら、発行通し番号とカード番号を入れたACKパケットを
カード発行機に返す。一方、紙幣の投入があったときは
カード発行機が管理装置に対してカード金額の欄に実際
の購入金額を入れた“カード購入”パケットを送信す
る。すると、管理装置はカード番号の欄を見て発行予約
済みのカードであると判断してカードファイルを検索
し、当該カードのデータエリアに購入金額や発行時刻等
のデータを書き込んでからACKパケットを発行機に返す
ようになっている。
In the system of this embodiment, the card issuing machine 200
Make a reservation such as a card number before the bill is inserted into
A card issuing machine to prepare for printing and issuing money when bills are actually inserted
When 200 transmits a "card purchase" packet in which the card amount column is "0", the management device 400 determines that the packet is an issuance reservation packet, determines an issuance serial number and a card number, and stores the packet in the card file. After securing the card area, return an ACK packet containing the serial number and card number to the card issuing machine. On the other hand, when a bill is inserted, the card issuing machine transmits a “card purchase” packet in which the actual purchase amount is entered in the card amount column to the management device. Then, the management device looks at the card number column, determines that the card is reserved for issuance, searches the card file, writes data such as the purchase amount and the issuance time in the data area of the card, and then transmits the ACK packet. It is to be returned to the issuing machine.

なお、上記“カード購入”パケットとその応答パケッ
ト以外は、パチンコ機と管理装置との間で送受信される
パケットと共通である。
Except for the "card purchase" packet and its response packet, the packet is common to the packet transmitted and received between the pachinko machine and the management device.

また、表27においてNAKなるパケットには、管理装置4
00がユニット制御装置280からの“カード購入”パケッ
トを受信したときの相手に対する否定応答であり、パケ
ットデータが異常であったような場合にNAKパケットが
送信される。
Further, in Table 27, the packet which is NAK includes the management device 4
00 is a negative response to the other party when the “card purchase” packet is received from the unit control device 280, and a NAK packet is transmitted when the packet data is abnormal.

なお、表27および表28に示されている各パケットのコ
ード09H,80H,……は、16進数で表示したものであり、そ
のコードは一例であってこれに限定されるものでないこ
とはいうまでもない。
The codes 09H, 80H,... Of each packet shown in Table 27 and Table 28 are represented by hexadecimal numbers, and the codes are merely examples, and it is not limited to these codes. Not even.

第50図〜第55図には、上記データ伝送システム(ロー
カルネットワーク)においてカード発行機200と管理装
置400との間で送受信されるパケットのフォーマットの
代表的な例を示す。
FIGS. 50 to 55 show typical examples of the format of a packet transmitted and received between the card issuer 200 and the management device 400 in the data transmission system (local network).

このうち第50図にカード発行機に対する“回線テス
ト”パケットの構造(他の端末と共通)を、また、同図
(B)にカード発行機から管理装置に対する応答たる
“ACK"パケットの構造を示す。
Fig. 50 shows the structure of the "line test" packet for the card issuing machine (common to other terminals), and Fig. 50 (B) shows the structure of the "ACK" packet that is sent from the card issuing machine to the management device. Show.

第50図(A)のパケットにおける「発行機番号」〜
「チャネル番号」の欄には初期化の際に予めNAUがNAU番
号設定スイッチ561や台番号設定スイッチ562等の設定値
に基づいて算出しておいた番号を、管理装置からの“回
線テスト”パケットを受信し時点で入れて対応する発行
機に送る。一方、第50図(B)のパケットにおける「発
行機番号」〜「チャネル番号」の欄にはユニットコント
ローラ290が台番号設定器205の設定値に基づいて予め算
出しておいた番号を入れて送信するようになっている。
"Issuing machine number" in the packet of FIG.
In the “Channel number” column, a number previously calculated by the NAU based on the setting values of the NAU number setting switch 561 and the unit number setting switch 562 at the time of initialization is used for the “line test” from the management device. The packet is received at the time of insertion and sent to the corresponding issuing machine. On the other hand, in the columns of “issuer number” to “channel number” in the packet of FIG. 50 (B), a number previously calculated by the unit controller 290 based on the set value of the unit number setting unit 205 is entered. To be sent.

なお、第50図において、LHDで示されているのは低層
ネットワーク520で使用されるパケットヘッドで、低層
ネットワーク510内でのNAU530と各端末機との間のデー
タ伝送は、パケットヘッドLHDを用いて行なわれ、高層
ネットワーク520内での管理装置400とNAU530との間のデ
ータ伝送は、高層パケットヘッドHHDを用いて行なわれ
る。
In FIG. 50, LHD indicates a packet head used in the low-layer network 520, and data transmission between the NAU 530 and each terminal in the low-layer network 510 uses the packet head LHD. The data transmission between the management device 400 and the NAU 530 in the high-layer network 520 is performed using the high-layer packet head HHD.

また、管理装置400からNAU530を介して各端末機への
データ伝送は、2つのパケットヘッドHHDとLHDを使って
行なわれる。この場合、上位のパケットヘッドHHDによ
って、伝送先の端末機の属するネットワークアダプタが
指定され、そこにパケットが取り込まれると、上位のパ
ケットヘッドHHDが外され、下位のパケットヘッドLHDの
みをヘッドとして低層ネットワーク510上に送り出さ
れ、指定された端末機にパケットが伝送される。
Data transmission from the management device 400 to each terminal via the NAU 530 is performed using two packet heads HHD and LHD. In this case, the network adapter to which the transmission destination terminal belongs is specified by the upper packet head HHD, and when a packet is captured therein, the upper packet head HHD is removed, and only the lower packet head LHD is used as the head to lower the network adapter. The packet is transmitted over the network 510 and transmitted to the designated terminal.

一方、各端末機から管理装置400に対してデータを伝
送する場合、先ず端末機は低層ネットワーク用のパケッ
トヘッドLHDのみをデータの頭に付けて低層ネットワー
ク510上に送り出す。すると、そのパケットはNAU530に
よって取り込まれ、そこでパケットヘッドLHDの頭にさ
らに高層ネットワーク用パケットヘッドHHDを付けて高
層ネットワーク520上に送り出し、管理装置400へ伝送さ
れるようになっている。
On the other hand, when transmitting data from each terminal to the management device 400, first, the terminal attaches only the packet head LHD for the low-layer network to the head of the data and sends out the data to the low-layer network 510. Then, the packet is fetched by the NAU 530, where the packet head LHD is further attached with a packet head HHD for a high-layer network, sent out over the high-layer network 520, and transmitted to the management device 400.

第51図には管理装置400から各カード発行機200に対す
る“初期値設定”パケットの構成例を示す。※3で示す
データ欄には、管理装置の設定値ファイル(表19参照)
から読み出されたデータが入っており、これらはユニッ
トメモリの受信データエリアに格納される。上記受信デ
ータのうちホットコードのみは、ユニットメモリの送信
データエリアにもコピーされる。この受信パケットに対
する応答はない。
FIG. 51 shows a configuration example of an “initial value setting” packet from the management device 400 to each card issuing machine 200. * In the data column indicated by 3, the set value file of the management device (see Table 19)
, And these are stored in the reception data area of the unit memory. Only the hot code of the received data is copied to the transmission data area of the unit memory. There is no response to this received packet.

第52図には、管理装置から発行機に対するデータを伴
わない各種指令パケットの構成例を示す。同図のパケッ
トタイプの欄x,xには、コード90H(開店コード)、91H
(閉店コード)、95H(強制終了要求)、96H(強制終了
解除)またはB1H(リスタート)のいずれかのコードが
入る。これらの受信パケットに対するNAU530への応答は
なく、一方的な指令送信である。
FIG. 52 shows an example of the configuration of various command packets without data from the management device to the issuing machine. In the packet type columns x and x in the figure, codes 90H (opening code), 91H
(Closed code), 95H (forced termination request), 96H (forced termination release) or B1H (restart) code. There is no response to these received packets to NAU 530, and it is a one-way command transmission.

第53図(A)〜(C)には、カードの発行予約を管理
装置400に要求する“カード購入”パケットとその応答
パケット“ACK"および“NAK"の構成例を示す。
53 (A) to 53 (C) show a configuration example of a “card purchase” packet for requesting the management device 400 to make a card issuance reservation, and its response packets “ACK” and “NAK”.

カード発行予約の際の“カード購入”パケットのデー
タ欄には、対象カードが当該発行機において何番目の発
行カードであるかを示す発行受付番号mのみ入れ、カー
ド金額やカード番号、発行通し番号は「0」として送
る。一方、その応答“ACK"パケットのデータ欄には管理
装置において発行受付番号mから決定した全発行機に関
する発行通し番号nと、この発行通し番号nから演算し
たカード番号を入れて送る。ACKパケットの最後の「チ
ェックサム」欄には発行機番号から発行受付番号までの
加算値がチェックコードとして入っている。
In the data field of the "card purchase" packet at the time of card issuance reservation, only the issuance receipt number m indicating the number of the issuance card in the issuing machine is entered, and the card amount, card number, and issuance serial number are Send as "0". On the other hand, in the data field of the response "ACK" packet, the management apparatus inserts and issues the issue serial numbers n for all issuing machines determined from the issue acceptance number m and the card numbers calculated from the issue serial numbers n. In the "check sum" field at the end of the ACK packet, an added value from the issuer number to the issue receipt number is entered as a check code.

一方、発行機に紙幣が投入され、購入金額が決定され
たときに発行機から管理装置に送られる“カード購入”
とその応答パケットの構成は第53図のパケットと全く同
じであり、送信パケットのカード金額の欄に実際の購入
金額を入れるとともに、カード番号と発行通し番号の欄
には予約時に既に決定された番号を入れて送る点のみ異
なる。
On the other hand, when a bill is inserted into the issuing machine and the purchase amount is determined, the "card purchase" sent from the issuing machine to the management device is determined.
The structure of the response packet is exactly the same as that of the packet shown in Fig. 53. The actual purchase amount is entered in the card amount column of the transmission packet, and the numbers already determined at the time of reservation are entered in the card number and issue serial number columns. The only difference is that you put the

さらに、第54図には“定時データ送信”パケットの構
成例が、また第55図(A),(B)には“ユニット復旧
データ”の送受信パケットの構成例が示されている。
Further, FIG. 54 shows a configuration example of a “scheduled data transmission” packet, and FIGS. 55 (A) and (B) show a configuration example of a “unit recovery data” transmission / reception packet.

このうち、“定時データ送信”パケットには、ユニッ
トメモリの送信データエリア内のすべてのデータを入れ
て送り、管理装置はこのデータを受信して発行機ファイ
ル内の当該発行機のデータを更新する。ただし、送信デ
ータのうちカード金額および発行受付番号は管理装置に
おいて利用されないデータであるので、送信されてもフ
ァイル内に登録されない。
Of these, the "scheduled data transmission" packet contains all the data in the transmission data area of the unit memory and sends it, and the management device receives this data and updates the data of the issuing device in the issuing device file. . However, the card amount and the issuance receipt number of the transmission data are data that are not used in the management device, and therefore are not registered in the file even if transmitted.

一方、“ユニット復旧データ”パケットには、管理装
置の発行機ファイル内の全データと設定値ファイルから
読み出した年月日、識別コードおよびホットコードを、
ユニットメモリ550のデータエリアの構成に一致させて
送ってくる。ただし、ユニットメモリの送信データエリ
アと重複する受信データパケットヘッドとカードテキス
トは重複した送信を省略し、ユニットコントローラ290
の側で送信データエリアから受信データエリアへコピー
するようになっている。受信データ中※4で示されるデ
ータはユニットメモリ内の受信データエリアに記入され
る。上記パケットに対する応答パケットでは送信データ
エリア内の全データのみ入れて送るようになっている。
On the other hand, in the “unit recovery data” packet, all data in the issuing device file of the management device, the date read from the setting value file, the identification code and the hot code are included.
The data is sent according to the configuration of the data area of the unit memory 550. However, for the received data packet head and the card text that overlap with the transmission data area of the unit memory, duplicate transmission is omitted, and the unit controller 290
Is to copy from the transmission data area to the reception data area. The data indicated by * 4 in the received data is written in the received data area in the unit memory. In the response packet to the above packet, only the entire data in the transmission data area is inserted and transmitted.

なお、第50図〜第55図に示されているパケットは、ネ
ットワークにのせられる本来のパケットの全体でなく要
部のみであり、その他にデータの先頭を発見するための
アラートバーストや同期データ、伝送元を示すソースア
ドレスフィールドや伝送先を示すデスティネーションア
ドレス等からなるヘッダ部と、データの長さを示すカウ
ント部、誤り検出用のチェックコード部がある。これら
は、各端末機の制御ユニット内のネットワークコントロ
ーラによって自動的に生成されて付加されるようになっ
ている。
The packets shown in FIG. 50 to FIG. 55 are not the whole of the original packet put on the network, but only the main part, and additionally include an alert burst for detecting the head of data, synchronization data, There are a header section including a source address field indicating a transmission source and a destination address indicating a transmission destination, a count section indicating data length, and a check code section for error detection. These are automatically generated and added by the network controller in the control unit of each terminal.

次に、上記ユニット制御装置280におけるデータ送信
に関する制御手順を第56図〜第59図を用いて説明する。
Next, a control procedure regarding data transmission in the unit control device 280 will be described with reference to FIGS. 56 to 59.

リセット回路555から各コントローラ290,551,553に対
してリセットパルスが供給されると、各コントローラは
内部レジスタや内部RAMをクリアするとともに、データ
伝送コントローラ551は、ユニットコントローラ290との
間のパラレル通信用のユニットメモリ550をもクリアす
る(ステップS101,S201,S301)。それからデータ伝送コ
ントローラ551は、ユニットメモリ550内の所定の番地
(27FF)に適当なデータを書き込む(ステップS202)。
すると、ユニットメモリ550は所定の端子から出力する
信号INTのレベルを立ち上げる。この信号INTは前述した
ようにイニシャライズ信号としてユニットコントローラ
290に供給されるようになっている 一方、ユニットコントローラ290は、上記内部レジス
タ、RAMのクリア後、I/Oポートをクリアし(ステップS1
02)、上記ユニットメモリ550からのイニシャライズ信
号INTが立ち上がったか監視しており(ステップS10
3)、信号INTが立ち上がると台番号設定器171に設定さ
れている値を読み込んでから、その台番号より端末通し
番号とチャネル番号を演算する(ステップS104,S10
5)。そして、それらの番号をユニットメモリ550の送信
データエリアSDAに書き込む(ステップS106)。
When a reset pulse is supplied from the reset circuit 555 to each of the controllers 290, 551, and 553, each controller clears the internal registers and the internal RAM, and the data transmission controller 551 executes a unit memory for parallel communication with the unit controller 290. 550 is also cleared (steps S101, S201, S301). Then, the data transmission controller 551 writes appropriate data to a predetermined address (27FF) in the unit memory 550 (step S202).
Then, the unit memory 550 raises the level of the signal INT output from the predetermined terminal. As described above, this signal INT is used as an initialization signal as a unit controller.
On the other hand, after clearing the internal registers and RAM, the unit controller 290 clears the I / O port (step S1).
02), it is monitored whether the initialization signal INT from the unit memory 550 has risen (step S10).
3) When the signal INT rises, the value set in the unit number setting unit 171 is read, and then the terminal serial number and the channel number are calculated from the unit number (steps S104 and S10).
Five). Then, those numbers are written in the transmission data area SDA of the unit memory 550 (step S106).

データ伝送コントローラ551は上記送信データエリアS
DA内のチャネル番号を読み込んでそれが「0」か否かを
判定しており(ステップS203,S204)、ユニットコント
ローラによる書込みによって「0」でなくなると、読み
取ったチャネル番号をラッチLT3(563)に書込み、続い
てラッチLT2(562)に対しデータの送受信に使用するパ
ケットメモリ内のページ構成を指定するコマンドを書き
込む(ステップS205,S206)。すると、ネットワークコ
ントローラ553は、ラッチLT3内のチャネル番号を読み込
んで内部RAMに記憶している低層ネットワークにおける
自己のアドレスを確定して(ステップS302)、次のラッ
チLT2内からパケットメモリのページ構成を読み取って
記憶する(ステップS303)。これによって送受信ページ
の構成が確定する。
The data transmission controller 551 uses the transmission data area S
The channel number in the DA is read to determine whether it is "0" (steps S203 and S204). If the channel number is not "0" by writing by the unit controller, the read channel number is latched LT3 (563) Then, a command specifying the page configuration in the packet memory used for data transmission / reception is written to the latch LT2 (562) (steps S205 and S206). Then, the network controller 553 reads the channel number in the latch LT3, determines its own address in the low-layer network stored in the internal RAM (Step S302), and changes the page configuration of the packet memory from the next latch LT2. Read and store (step S303). Thereby, the configuration of the transmission / reception page is determined.

その後、データ伝送コントローラ551が、次のデータ
受信に使用するページ番号をラッチLT2に書き込む(ス
テップS207)。すると、これがネットワークコントロー
ラ553に対する受信許可指令となる。そこで、ネットワ
ークコントローラはラッチLT2内に受信ページ番号があ
るか否かチェックして、ページ番号があるときは受信許
可があったと判定してステップS305(第47図)以下の受
信処理に移行する(ステップS304)。ステップS305で
は、ネットワークコントローラがNAUからの送信要求が
あるか否か判定する。そして、送信要求があったとき
は、受信が可能であることをNAUに対し送信した後、NAU
から送られてきたパケットを受信して受信したパケット
により送信元アドレス等の不要部分を除去し、データ部
をパラレルデータに変換してパケットメモリ582内の指
定されたページに受信したデータを書き込む(ステップ
S306〜S308)。しかる後、ネットワークコントローラ55
3は受信コマンドをラッチLT1(561)に書き込む(ステ
ップS309)。
Thereafter, the data transmission controller 551 writes the page number used for the next data reception to the latch LT2 (Step S207). Then, this becomes a reception permission command to the network controller 553. Therefore, the network controller checks whether there is a reception page number in the latch LT2, and if there is a page number, determines that the reception is permitted, and shifts to the reception processing after step S305 (FIG. 47) (FIG. 47). Step S304). In step S305, the network controller determines whether there is a transmission request from the NAU. Then, when there is a transmission request, after transmitting to the NAU that reception is possible, the NAU
The packet received from the device is received, the unnecessary portion such as the source address is removed by the received packet, the data portion is converted into parallel data, and the received data is written to a designated page in the packet memory 582 ( Steps
S306 to S308). After a while, the network controller 55
3 writes the received command into the latch LT1 (561) (step S309).

すると、データ伝送コントローラ551がそのラッチLT1
のデータを読んで受信コマンドがあることを確認してパ
ケットメモリ552の所定ページ内から受信データを読み
込んでユニットメモリ550のヒーキングエリアに一時格
納する(ステップS208,S209)。それから、データ伝送
コントローラ551が次の受信ページをラッチLT2に書き込
む。これが、次のパケットの受信を許可する指令となる
(ステップ210)。この指令(受信ページ)はネットワ
ークコントローラ553によって読み取られて記憶され
(ステップS310)、データ伝送コントローラ551からユ
ニットコントローラ290への受信データの送信と並行し
て次のデータの受信が可能となる。
Then, the data transmission controller 551 sets its latch LT1
After confirming that there is a received command by reading the data, the received data is read from a predetermined page of the packet memory 552 and temporarily stored in the healing area of the unit memory 550 (steps S208 and S209). Then, the data transmission controller 551 writes the next received page to the latch LT2. This is a command to permit reception of the next packet (step 210). This command (received page) is read and stored by the network controller 553 (step S310), and the next data can be received in parallel with the transmission of the received data from the data transmission controller 551 to the unit controller 290.

すなわち、データ伝送コントローラ551はステップS21
0で受信ページをラッチLT2に書き込んだならば、ユニッ
トメモリ550内のコマンドレジスタCR2をチェックし
「0」つまりユニットコントローラ290に対する他の送
信要求がないことを確認してから(ステップS211)、受
信パケットタイプから受信データエリア内での書込み位
置を確定してワーキングエリア内の受信データをユニッ
トメモリの受信データエリアに移す(ステップS212,S21
3)。それから、交信用エリアのコマンドレジスタCR2に
受信パケットタイプ名を書く(ステップS214)。
That is, the data transmission controller 551 determines in step S21
If the received page is written to the latch LT2 with 0, the command register CR2 in the unit memory 550 is checked to confirm that it is "0", that is, that there is no other transmission request to the unit controller 290 (step S211). The write position in the reception data area is determined from the packet type, and the reception data in the working area is moved to the reception data area in the unit memory (steps S212 and S21).
3). Then, the received packet type name is written in the command register CR2 of the communication area (step S214).

すると、ユニットコントローラ290がコマンドレジス
タCR2を監視していてパケットタイプが書き込まれたと
判定すると、そのパケットタイプに対応した処理を開始
する(ステップS107,S108)。そして、その処理が終了
し時点でコマンドレジスタCR2をクリアする(ステップS
109)。一方、データ伝送コントローラ551は、ステップ
S214で受信パケットタイプ名をコマンドレジスタCR2に
書き込んだ後、そのパケットが“初期値設定”パケット
か否か判定し、“初期値設定”パケットならば定時デー
タの送信を開始するため、ユニットメモリ内の定時タイ
マ(1秒)をセットする(ステップS215,S216)。受信
パケットが“初期値設定”パケットでなかったときはス
テップS217で“回線テスト”パケットか否か判定する。
もし、“回線テスト”パケットであったなら、ステップ
S218でその応答たる“ACK"パケットの送信のための処理
を実行し、“回線テスト”パケット以外のときはそのま
ま他の処理へ移行する。
Then, when the unit controller 290 monitors the command register CR2 and determines that the packet type has been written, the unit controller 290 starts processing corresponding to the packet type (steps S107 and S108). Then, when the processing is completed, the command register CR2 is cleared (step S
109). On the other hand, the data transmission controller 551
After writing the received packet type name in the command register CR2 in S214, it is determined whether or not the packet is an “initial value setting” packet. If the packet is an “initial value setting” packet, transmission of scheduled data is started. The timer (1 second) is set (steps S215 and S216). If the received packet is not the "initial value setting" packet, it is determined in step S217 whether the packet is a "line test" packet.
If it is a "line test" packet, step
In step S218, a process for transmitting the "ACK" packet as a response is executed, and if it is not a "line test" packet, the process directly proceeds to another process.

次に、第58図を用いてパケット送信処理について説明
する。
Next, the packet transmission processing will be described with reference to FIG.

ユニットコントローラ290は“カード購入”、“定時
データ”等のパケット送信要因が生じると、先ずユニッ
トメモリ550の送信データエリア内の「パケットタイ
プ」欄にパケットタイプ名を書く。つまり、パケットヘ
ッドを作成する(ステップS121)。それから、ユニット
メモリ内のコマンドレジスタCR1をチェックして他の送
信パケットが既に入っているか否かチェックし、他の送
信パケットがないときはコマンドレジスタCR1に送信し
ようとするパケットタイプ名を書いてから送信タイマを
セットする(ステップS122〜S124)。コマンドレジスタ
CR1へのパケットタイプ名の書込みが、データ伝送コン
トローラ551に対する送信指令となる。一方、データ伝
送コントローラ551は、コマンドレジスタCR1にパケット
タイプが入ったか否か監視しており(ステップS221)、
パケットタイプが入ったことを知ると送信パケットタイ
プに応じた送信データを、ユニットメモリ内の送信デー
タエリアから読み出し、送信先であるNAUのアドレス
(固定)と送信データのバイト数とともにパケットメモ
リ内のページ0に書き込む(ステップS222,S223)。
When a packet transmission factor such as “card purchase” or “periodic data” occurs, the unit controller 290 first writes the packet type name in the “packet type” column in the transmission data area of the unit memory 550. That is, a packet head is created (step S121). Then, check the command register CR1 in the unit memory to see if another transmission packet has already been entered, and if there is no other transmission packet, write the packet type name to be transmitted in the command register CR1 and then The transmission timer is set (steps S122 to S124). Command register
Writing the packet type name to CR1 is a transmission command to the data transmission controller 551. On the other hand, the data transmission controller 551 monitors whether the packet type has entered the command register CR1 (step S221).
When the packet type is received, the transmission data corresponding to the transmission packet type is read from the transmission data area in the unit memory, and the address (fixed) of the destination NAU and the number of bytes of the transmission data are read in the packet memory. Write to page 0 (steps S222, S223).

しかる後、データ伝送コントローラ551はページ0内
のデータの送信コマンドをラッチLT2に書き込む(ステ
ップS224)。
Thereafter, the data transmission controller 551 writes a command for transmitting data in page 0 to the latch LT2 (step S224).

すると、これがネットワークコントローラ553に対す
る送信指令となり、ネットワークコントローラ553は送
信コマンドの有無を調べ、コマンドがあったときはネッ
トワーク上での送信権の獲得を待ち、送信権を獲得した
ならNAUからの送信許可を待つ(ステップS321〜S32
3)。それから、パケットメモリのページ1内のデータ
を送信した後、送信結果をラッチLT1に書き込む(ステ
ップS324,S325)。これを受けてデータ伝送コントロー
ラはラッチLT1を調べて送信成功の有無をチェックし、
失敗したときは、上記送信処理を3回まで繰り返す(ス
テップS225,S226)。
Then, this becomes a transmission command to the network controller 553, and the network controller 553 checks for a transmission command, and when there is a command, waits for acquisition of a transmission right on the network, and when the transmission right is obtained, permits transmission from the NAU. (Steps S321 to S32)
3). Then, after transmitting the data in the page 1 of the packet memory, the transmission result is written into the latch LT1 (steps S324, S325). In response to this, the data transmission controller checks the latch LT1 to see if the transmission was successful,
When the transmission fails, the above transmission processing is repeated up to three times (steps S225, S226).

そして、送信結果を、ユニットメモリの交信用エリア
内のステータスレジスタSTRに書いてからコマンドレジ
スタCR1をクリアする(ステップS227,S228)。
Then, after writing the transmission result in the status register STR in the communication area of the unit memory, the command register CR1 is cleared (steps S227 and S228).

一方、ユニットコントローラ290、ステップS124で送
信タイマをセットした後は、コマンドレジスタCR1をず
っと監視しており(ステップS125)、上記ステップS228
においてデータ伝送コントローラ551によりコマンドレ
ジスタCR1がクリアされるまでにタイムオーバーを起こ
すと、金額表示器213に送られる表示データのコモン信
号(ウォッチドッグパルス)をロウレベルに固定して、
ウォッチドッグパルスを停止させる(ステップS127)。
これによって、リセット回路555によるリセットがかか
り、ステップS101,S201,S301の初期化が行われる。
On the other hand, after the unit controller 290 sets the transmission timer in step S124, the command register CR1 is continuously monitored (step S125).
When a time-over occurs before the command register CR1 is cleared by the data transmission controller 551, the common signal (watchdog pulse) of the display data sent to the amount indicator 213 is fixed to a low level,
The watchdog pulse is stopped (step S127).
As a result, a reset is performed by the reset circuit 555, and steps S101, S201, and S301 are initialized.

次に、定時データ送信処理について第59図を用いて説
明する。データ伝送コントローラ551は、上記ステップS
216でセットした定時タイマをチェックし(ステップS23
1)、1秒経過したときにステップS232へ進み、ユニッ
トメモリ550の送信データエリア内のデータを全て読み
出してワーキングエリアに書き込む(ステップS233)。
そして次に再び送信データエリア内のデータと比較し
(ステップS234)、一致したならば、コマンドレジスタ
CR1を見てデータ伝送コントローラに対する他の送信要
求(パケットタイプ)が入っていないか調べ(ステップ
S235)、ワーキングエリアからデータを読み出して送信
データとしてパケットメモリ552へ書き込む(ステップS
237,S238)。また、このとき送信データとともに送信先
のアドレス(NAU)と送信データの長さ(バイト数)お
よびパケットタイプ名をパケットメモリ内のページ1に
書き込む。なお、ステップS235でコマンドレジスタCR1
に他のパケットを名が入っていたときはそのパケットの
送信(S236)を行ってからステップS237へ進む。
Next, the scheduled data transmission processing will be described with reference to FIG. The data transmission controller 551 determines in step S
Check the regular timer set in step 216 (step S23
1) When one second has elapsed, the process proceeds to step S232, where all data in the transmission data area of the unit memory 550 is read and written to the working area (step S233).
Then, the data is compared again with the data in the transmission data area (step S234).
Check CR1 to see if there is another transmission request (packet type) to the data transmission controller (step
S235), data is read from the working area and written to the packet memory 552 as transmission data (step S).
237, S238). At this time, together with the transmission data, the destination address (NAU), the length (the number of bytes) of the transmission data, and the packet type name are written in page 1 in the packet memory. In step S235, the command register CR1
If another packet contains a name, the packet is transmitted (S236) and the process proceeds to step S237.

上記ステップS234でデータの一致を判定しているの
は、ユニットコントローラが送信データエリアに対して
2バイトからなるデータ部の1バイトを書き換えたとき
に、定時データを送信すると、未確定なデータを送信す
ることになるからである。データの一致をみることによ
り、送信データエリアのデータ確定を判定することがで
きる。
The reason why the data match is determined in step S234 is that when the unit controller rewrites one byte of the 2-byte data portion with respect to the transmission data area and transmits the scheduled data, the undetermined data is transmitted. This is because it will be transmitted. By confirming the coincidence of the data, it is possible to determine the determination of the data in the transmission data area.

送信データの書込み(ステップS238)後、データ伝送
コントローラ551は、ページ1内のデータの送信コマン
ドをラッチLT2に書く(ステップS239)。
After writing the transmission data (step S238), the data transmission controller 551 writes a transmission command of the data in page 1 to the latch LT2 (step S239).

すると、これがネットワークコントローラ553に対す
る送信指令となり、ネットワークコントローラ553は送
信コマンドの有無を調べ、コマンドがあったときはネッ
トワーク上での送信権の獲得を待ち、送信権を獲得した
ならNAUからの送信許可を待つ(ステップS331〜S33
3)。それから、パケットメモリのページ1内のデータ
を送信した後、送信結果をラッチLT1に書き込む(ステ
ップS334,S335)。これを受けてデータ伝送コントロー
ラ551はラッチLT1を調べて送信成功の有無をチェック
し、失敗したときは、上記送信処理を3回まで繰り返す
(ステップS240,S241)。
Then, this becomes a transmission command to the network controller 553, and the network controller 553 checks for a transmission command, and when there is a command, waits for acquisition of a transmission right on the network, and when the transmission right is obtained, permits transmission from the NAU. Wait for (Steps S331 to S33
3). Then, after transmitting the data in the page 1 of the packet memory, the transmission result is written into the latch LT1 (steps S334, S335). In response to this, the data transmission controller 551 checks the latch LT1 to determine whether the transmission has succeeded. If the transmission has failed, the data transmission controller 551 repeats the transmission process up to three times (steps S240 and S241).

なお、パチンコ機のユニット制御装置180や精算機の
ユニット制御装置380におけるデータ送信処理も第56図
〜第59図の制御手順と同一の手順に従って実行される。
The data transmission processing in the pachinko machine unit controller 180 and the settlement machine unit controller 380 is also executed according to the same procedure as the control procedure in FIGS. 56 to 59.

次に、発行機200におけるユニット制御装置280とカー
ド発行制御装置790およびカードリーダ制御装置288にお
ける制御手順を、相互間のデータ通信と関連して説明す
る。
Next, control procedures in the unit control device 280, the card issuance control device 790, and the card reader control device 288 in the issuer 200 will be described in relation to data communication between them.

なお、この実施例のカード発行機においては、ユニッ
トコントローラ290はカード発行制御装置790とのみ通信
可能でカードリーダ制御装置288と直接交信することは
できない。つまり、カードリーダ制御装置288はカード
発行制御装置790との間でのみ通信が可能である。そこ
で、ユニットコントローラ290とカード発行制御装置790
との間の通信は、ファンクションコードによって行な
い、カード発行制御装置790とカードリーダ制御装置288
との間の通信はコマンドによって行なうようになってい
る。ちなみにユニットコントローラ290からカード発行
制御装置790に対するファンクションコードとしては、
カードの磁気記録部へ記録すべき年月日コードと識別コ
ードをカードリーダに対して与えるための「初期値設
定」ファンクション、カードの発行を指令する「カード
発行」ファンクションおよび直前に送ってきたファンク
ションコードの再送を要求する「再送要求」ファンクシ
ョン、カード発行制御装置790がカードリーダ制御装置2
88から受け取ったカードリーダの状態を示すステータス
の送信を要求する「ステータス要求」ファンクションの
4種類の指令が用意されている。
In the card issuing machine of this embodiment, the unit controller 290 can communicate only with the card issuing control device 790 and cannot directly communicate with the card reader control device 288. That is, the card reader control device 288 can communicate only with the card issue control device 790. Therefore, the unit controller 290 and the card issuing control device 790
Communication with the card issuing controller 790 and the card reader controller 288 is performed by a function code.
The communication with is performed by a command. By the way, as the function code from the unit controller 290 to the card issuing control device 790,
"Initial value setting" function for giving the card reader a date code and identification code to be recorded on the magnetic recording section of the card, "Card issue" function to instruct card issuance, and function sent immediately before A "retransmission request" function for requesting retransmission of the code, the card issuing controller 790 becomes the card reader controller 2
Four types of commands of a "status request" function for requesting the transmission of the status indicating the status of the card reader received from 88 are prepared.

また、カード発行制御装置790からユニットコントロ
ーラ290に対するファンクションコードとしては、リセ
ット時に年月日や識別コード等の初期値を要求する「初
期値要求」ファンクション、指示された処理が正常に終
了したことをユニットコントローラに知らせる「正常終
了」ファンクションおよび逆に正常に処理が終了しなか
ったことを知らせる「異常終了」ファンクション、ユニ
ットコントローラに対して直前に送ってきたファンクシ
ョンコードの再送を要求する「再送要求」ファンクショ
ンとユニットコントローラ290からの「ステータス要
求」に対してカードリーダのステータスを送信するため
の「ステータス送信」ファンクションの5種類がある。
The function code from the card issuing control device 790 to the unit controller 290 includes an "initial value request" function for requesting an initial value such as a date and an identification code at the time of reset, and a fact that the designated processing has been normally completed. A "normal end" function that informs the unit controller and an "abnormal end" function that informs that processing has not ended normally, and a "retransmission request" that requests the unit controller to retransmit the function code sent immediately before. There are five types of functions and a "status transmission" function for transmitting the status of the card reader in response to a "status request" from the unit controller 290.

なお、特に限定されないが上記ファンクションコード
はSTXなる開始コードとETXなる終了コードに挾まれて送
信され、STXとETXとの間にはファンクションコードの他
にステータスや送信したいデータが入ることもある。
Note that, although not particularly limited, the function code is transmitted between a start code of STX and an end code of ETX, and between the STX and ETX, there may be a status and data to be transmitted in addition to the function code.

具体的には、上記「正常終了」ファンクションや「異
常終了」ファンクションおよび「ステータス送信」ファ
ンクションの中に表29、表30に示すようなカードリーダ
の状態を示す8ビットのステータス1、ステータス2の
入る欄が設けられており、ファンクションコードととも
にステータスがユニットコントローラ290へ送られる。
Specifically, in the “normal end” function, the “abnormal end” function, and the “status transmission” function, 8-bit status 1 and status 2 indicating the status of the card reader as shown in Tables 29 and 30 are included. An entry column is provided, and the status is sent to the unit controller 290 together with the function code.

表29のステータス1において、搬送部センサ異常ビッ
トはカード発行装置700の走行位置センサCPS2〜CPS6の
いずれかが故障したときに「1」が設定される。
In status 1 of Table 29, the transport unit sensor abnormality bit is set to “1” when any of the traveling position sensors CPS2 to CPS6 of the card issuing device 700 has failed.

一方、カード発行制御装置790からカードリーダ制御
装置288に対する通信コマンドとしては、カードに磁気
データを記録するように指示する「磁気書込み」コマン
ドと、カードの磁気データやセキュリティコードおよび
パンチ穴の各情報を読み取って磁気データを送るよう指
示する「磁気読込み」コマンドと、読み取ったセキュリ
ティデータを送るよう指示する「セキュリティ要求」コ
マンドと、読み取ったパンチ穴データを送るよう指示す
る「パンチ穴要求」コマンドと、カードリーダ内に保持
されているカードのデータの再読取りを指示する「リロ
ード」コマンドと、カードにパンチ穴を開けるように指
示する「パンチ穴開け」コマンドと、カードリーダ内の
カードを前方の挿入口の方向へ排出するよう指示する
「カード前方排出」コマンドと、カードリーダ内のカー
ドを後方へ排出するよう指示する「カード後方排出」コ
マンドと、カード読取り指令を取り消すための「キャン
セル」コマンドおよびカードリーダの状態を示すステー
タス情報の送信を指示する「ステータス要求」コマンド
の9種類がある。
On the other hand, the communication commands from the card issuing control device 790 to the card reader control device 288 include a “magnetic write” command instructing recording of magnetic data on the card, and information on the magnetic data, security code, and punch holes of the card. A "magnetic read" command instructing to read and send magnetic data, a "security request" command instructing to send read security data, and a "punch hole request" command instructing to send read punch data. A "reload" command for instructing the card reader to reread the data held in the card reader, a "punch hole" command for instructing the card to make a punch hole, and "Card ejection in front" command instructing ejection in the direction of the insertion slot A "card backward ejection" command for instructing ejection of the card in the card reader backward, a "cancel" command for canceling the card reading command, and a "status" for instructing transmission of status information indicating the status of the card reader. There are nine types of "request" commands.

また、カードリーダ制御装置288は、カード発行制御
装置790から上記のようなコマンドを受信すると、対応
する処理を実行し、必ず応答を返すようになっている。
その応答の種類としては、正常、通信異常、コマンドエ
ラー、磁気記録データ無し、磁気データ読込み不能、磁
気記録データ異常、セキュリティと磁気データ不一致、
企業コードまたは機器コード不一致、磁気書込みエラ
ー、パンチエラー、パンチ穴読取りエラー、セキュリテ
ィ読取りエラー、パンチ屑満杯、モータ異常、RAM異
常、センサ異常、カードリーダ異常、カード長エラー、
カードジャムがある。
When the card reader control device 288 receives the above-described command from the card issuance control device 790, it executes a corresponding process and always returns a response.
The types of response include: normal, communication error, command error, no magnetic recording data, magnetic data read failure, magnetic recording data abnormality, security and magnetic data mismatch,
Company code or device code mismatch, magnetic write error, punch error, punch hole read error, security read error, punch dust full, motor error, RAM error, sensor error, card reader error, card length error,
There is a card jam.

なお特に限定されないが、上記コマンドを示すコード
はESCなる開始コードとCRなる終了コードに挾まれて送
信され、ESCとCRとの間にはコマンドコードの他に送信
するデータが入ることがある。また、カードリーダ制御
装置288からカード御装置790への応答は、STXなる開始
コードとCRなる終了コードとの間に上記エラーの種類を
示すコードまたはエラーコードと要求されたデータを挾
んで送信するようになっている。
Although not particularly limited, a code indicating the command is transmitted between a start code of ESC and an end code of CR, and data to be transmitted other than the command code may be inserted between the ESC and the CR. In addition, a response from the card reader control device 288 to the card control device 790 is transmitted with a code indicating the type of the error or an error code and the requested data between the start code STX and the end code CR. It has become.

第60図〜第62図には、カード発行機200のユニットコ
ントローラ290における主たる処理の具体的な制御手順
を示す。
FIG. 60 to FIG. 62 show a specific control procedure of main processing in the unit controller 290 of the card issuing machine 200.

ユニットコントローラ290は、リセット信号が入って
くると、CPU内部の初期化すなわち内部メモリ(RAM)を
クリアして所定の番地にチェックコードを書き込んだ
り、タイマや内部レジスタ、I/Oポートをクリアもしく
は所定の値にセットする(手続きPC101)。それから、
ユニットメモリ550の所定の端子からイニシャライズ信
号INTが立ち上がるのを待ち(手続きPC102)、この信号
が立ち上がると台番号設定器205から発行機の台番号を
読み取って、その台番号を用いて端末通し番号とチャネ
ル番号を演算し、それらの番号をユニットメモリ550の
送信データエリアに書き込む(手続きPC103,PC104)。
Upon receiving a reset signal, the unit controller 290 initializes the CPU, that is, clears an internal memory (RAM) and writes a check code at a predetermined address, or clears a timer, an internal register, and an I / O port. It is set to a predetermined value (procedure PC101). then,
Wait for the initialization signal INT to rise from a predetermined terminal of the unit memory 550 (procedure PC102). When this signal rises, the serial number of the issuing machine is read from the serial number setting unit 205, and the terminal serial number and The channel numbers are calculated, and those numbers are written in the transmission data area of the unit memory 550 (procedures PC103 and PC104).

次に、ユニットメモリ550の受信データエリア内の年
月日が「0」か否か判定することで“回線テスト”パケ
ットの受信待ちを行なう(手続きPC105)。すなわち、
管理装置400から年月日の入った“回線テスト”パケッ
トが送られてくるまではユニットメモリ内の年月日の欄
は「0」となっており、パケットを受信すると年月日が
「0」でなくなるため、この年月日を監視していること
で“回線テスト”パケットの受信の有無を知ることがで
きる。
Next, it is determined whether or not the date in the reception data area of the unit memory 550 is "0" to wait for reception of a "line test" packet (procedure PC105). That is,
Until the “line test” packet containing the date is sent from the management device 400, the date field in the unit memory is “0”, and when the packet is received, the date is “0”. By monitoring this date, it is possible to know whether or not a "line test" packet has been received.

“回線テスト”パケットを受信するとユニットコント
ローラ290は、送信データエリア内のモニタ情報1(表1
2参照)の初期値未設定ビットを「1」にセットする
(手続きP106)。このビットは“初期値設定”パケット
または“ユニット復旧データ”パケットを受信したとき
に「0」にクリアされる。それからユニットコントロー
ラ290はユニットメモ550の交信用エリア内のコマンドレ
ジスタCR2をみて管理装置400からの受信パケットがある
かいなかチェックし(手続きPC107)、なければそのま
ま、またあったときは第61図(A)のパケット受信処理
(手続きPC201〜PC209)を実行した後にそれぞれ手続き
PC108へ進む。
Upon receiving the “line test” packet, the unit controller 290 checks the monitor information 1 (Table 1) in the transmission data area.
2) is set to “1” (procedure P106). This bit is cleared to "0" when an "initial value setting" packet or a "unit recovery data" packet is received. Then, the unit controller 290 checks whether or not there is a received packet from the management device 400 by checking the command register CR2 in the communication area of the unit memo 550 (procedure PC107). Each procedure after executing the packet receiving process (A) (procedures PC201 to PC209)
Proceed to PC108.

手続きPC108ではユニットメモリ550の送信データエリ
ア内の予約フラグが「0」か否かチェックし、「1」な
らそのまま、また「0」なら第61図(B)のカード番号
予約処理(手続きPC211〜PC227)を実行してからそれぞ
れ手続きPC109へ進む。ただし、最初にこの手続きPC109
へきたときは、手続きPC101の初期化で予約フラグが
「0」にされているで、先ずカード番号予約処理を実行
することになる。
In procedure PC108, it is checked whether the reservation flag in the transmission data area of unit memory 550 is "0", and if "1", it is left as it is, and if "0", the card number reservation process in FIG. (PC227), and then proceed to procedure PC109. However, first, this procedure PC109
If it has, the reservation flag has been set to "0" in the initialization of the procedure PC101, and therefore the card number reservation processing will be executed first.

手続きPC109では、紙幣識別器210からの紙幣挿入中信
号BUSYをチェックして、紙幣の挿入の有無を調べて、挿
入がなければそのまま、また紙幣の挿入があれば第61図
(C)のカード購入処理(手続きPC231〜PC264)を実行
してから次の手続きPC110へ進む。
The procedure PC109 checks the signal BUSY during bill insertion from the bill validator 210 to check whether or not a bill is inserted. If there is no bill inserted, the card is inserted as it is, and if there is a bill inserted, the card shown in FIG. 61 (C) is inserted. After executing the purchase process (procedures PC231 to PC264), the process proceeds to the next procedure PC110.

手続きPC110では、内部メモリ内に未処理パケットと
して登録されているパケットがあるか否か調べ、なけれ
ばそのまま、また未処理パケットがあれば第61図(A)
のパケット受信処理(手続きPC201〜PC209)を実行した
後、手続きPC111へ移行する。
The procedure PC 110 checks whether or not there is a packet registered as an unprocessed packet in the internal memory.
After performing the packet receiving process (procedures PC201 to PC209), the process proceeds to procedure PC111.

手続きPC111では、カード発行制御装置790から「初期
値要求」ファンクションが入っているかチェックし、フ
ァンクションがなければ手続きPC107へ戻り、あれば手
続きPC112で年月日と識別コードを入れた「初期値送
信」ファンクションを送信してから手続きPC107へ戻っ
て上記手続きを繰り返す。
In the procedure PC111, the card issuing controller 790 checks whether the "initial value request" function is included. If there is no function, the procedure returns to the procedure PC107. If the function is not present, the procedure PC112 inserts the date and the identification code in the "initial value transmission". After transmitting the function, return to the procedure PC 107 and repeat the above procedure.

第61図(A)には第60図のフロー中におけるパケット
受信処理の具体的手順の一例を示す。
FIG. 61 (A) shows an example of a specific procedure of the packet receiving process in the flow of FIG.

ユニットコントローラ290は、受信パケットがある
と、先ずその受信パケットが“初期値設定”パケットか
否か判定し(手続きPC201)、“初期値設定”パケット
なら第62図(A)に示す初期値設定処理(手続きPC271
〜PC274)を実行してから手続きPC209へ移行して、パケ
ットを受信したことをデータ伝送コントローラ551に知
らせるためユニットメモリ550内のコマンドレジスタCR2
をクリアする。
When there is a received packet, unit controller 290 first determines whether or not the received packet is an "initial value setting" packet (procedure PC201). If the packet is an "initial value setting" packet, unit controller 290 sets the initial value shown in FIG. Processing (procedure PC271
~ PC274), and then proceed to procedure PC209, in order to notify the data transmission controller 551 that the packet has been received, the command register CR2 in the unit memory 550.
Clear

次に、受信パケットが“初期値設定”パケットでない
ときは“ユニット復旧データ”パケットか否か判定し
(手続きPC202)、イエスなら第62図(B)に示すユニ
ット復旧処理(手続きPC281〜PC288)を実行して手続き
PC209へ移行する。
Next, if the received packet is not an "initial value setting" packet, it is determined whether or not the packet is a "unit restoration data" packet (procedure PC202). If yes, a unit restoration process shown in FIG. 62 (B) (procedures PC281 to PC288). Run procedure
Move to PC209.

また、受信パケットが“初期値設定”でも“ユニット
復旧データ”でもないときは、“ACK"受信か否か判定し
(手続きPC203)、“ACK"受信のときはなにもせずにそ
のまま手続きPC209へ移行する。この時点で受信した“A
CK"パケットは、ユニットコントローラ290から管理装置
400へパケットを送信してその応答を待っているとき以
外の“ACK"であるためである。
If the received packet is neither "initial value setting" nor "unit recovery data", it is determined whether or not "ACK" is received (procedure PC203). If "ACK" is received, procedure PC209 is performed without doing anything. Move to. "A received at this time
The CK "packet is sent from the unit controller 290 to the management device.
This is because it is “ACK” other than when a packet is transmitted to 400 and waiting for a response.

手続きPC203で受信パケットが“ACK"でなかったとき
は手続きPC204へ進み、ここでモニタ情報1内の初期値
未設定ビットが「1」か否かチェックする。ここで、初
期値未設定ビットが「1」なら手続きPC209へ移行し、
「0」なら手続きPC205へ移行する。“初期値設定”パ
ケットを受信する前に“開店コード”や“強制終了解
除”パケットが入ってきたときに誤って発行機が発行動
作を開始しないようにするためである。
If the received packet is not "ACK" in procedure PC203, the process proceeds to procedure PC204, where it is checked whether the initial value unset bit in monitor information 1 is "1". Here, if the initial value unset bit is “1”, the process proceeds to procedure PC209,
If "0", the procedure moves to procedure PC205. This is to prevent the issuing machine from erroneously starting the issuance operation when the “opening code” or the “forced termination release” packet comes in before the “initial value setting” packet is received.

手続きPC205では、受信パケットが“開店コード”パ
ケットか否か判定し、イエスなら第62図(C)に示す強
制終了解除処理(手続きPC291〜PC293)を実行する。ま
た、“開店コード”でないときは手続きPC206で受信パ
ケットが“強制終了解除”か否か判定し、イエスなら同
じく強制終了解除処理PC291〜P293を実行し、ノオなら
手続きPC207へ進む。
In procedure PC205, it is determined whether or not the received packet is a "store opening code" packet. If yes, the forced termination release processing (procedures PC291 to PC293) shown in FIG. 62 (C) is executed. If it is not the "opening code", the procedure PC 206 determines whether or not the received packet is "compulsory termination release", and if yes, executes the compulsory termination release processing PC291 to P293, and if no, proceeds to the procedure PC207.

手続きPC207では、受信パケットが“閉店コード”か
否か判定し、イエスなら第62図(D)に示す強制終了処
理(手続きPC295〜PC297)を実行する。また“閉店コー
ド”でないときは手続きPC208で受信パケットが“強制
終了要求”か否か判定し、イエスなら同じく強制終了処
理PC295〜PC297を実行してから、またノオならそのまま
手続きPC209へ移行してユニットメモリ550内のコマンド
レジスタCR2をクリアする。
In procedure PC207, it is determined whether or not the received packet is a "closing code", and if yes, the forced termination process (procedures PC295 to PC297) shown in FIG. 62 (D) is executed. If it is not the "closed code", the procedure PC208 determines whether the received packet is a "forced termination request", and if yes, executes the forced termination processing PC295 to PC297, and if no, proceeds to the procedure PC209 as it is. The command register CR2 in the unit memory 550 is cleared.

第61図(B)には、第60図のフローにおけるカード番
号予約処理の具体的手順を示す。
FIG. 61 (B) shows a specific procedure of the card number reservation process in the flow of FIG.

ここでは、先ずユニットメモリ550内のモニタ情報1
の初期値未設定ビットが「1」か否か判定する(手続き
PC211)。ここで、当該ビットが「1」なら未だ管理装
置400から初期値を受け取っていないので何もせずに元
のルーチン(第60図)へ戻り、「0」なら手続きPC212
へ進んで、金額、カード番号および発行通し番号を
「0」とし発行受付番号のみ入れた“カード購入”パケ
ットを送信する。なお、発行受付番号は、当該カード発
行機200における既発行回数に1を加算したものを使用
する。管理装置400においては、自己の管理下の全発行
機における発行回数を加算して発行通し番号nを決定す
る。
Here, first, monitor information 1 in unit memory 550
Whether the initial value unset bit of is “1” (procedure
PC211). Here, if the bit is "1", the initial value has not yet been received from the management device 400, so that the process returns to the original routine (FIG. 60) without doing anything.
Then, the amount, card number and serial number are set to "0", and a "card purchase" packet containing only the issue receipt number is transmitted. It should be noted that, as the issuance acceptance number, a number obtained by adding 1 to the number of issued cards in the card issuing machine 200 is used. The management apparatus 400 determines the issue serial number n by adding the number of issuances for all issuers under its management.

次に、ユニットコントローラ290は、10秒タイマを設
定してから、そのタイマがタイムオーバーしたか判定
し、ノオならユニットメモリ550内のコマンドレジスタC
R1を見て管理装置からパケットを受信したか否か判定す
る(手続きPC213〜PC215)。ここで、パケットが受信さ
れていないときは、上記手続きPC214へ戻って、再び10
秒タイマがタイムオーバーしたか判定する。そして、パ
ケットを受信する前にタイムオーバーになると、手続き
PC291へ移行して金額表示器213のコモン信号をロウレベ
ルまたはハイに固定することでウォッチドッグパルスの
出力を停止させる。ちなみに、このパルスが停止される
と、リセット回路555によってリセット信号が発生さ
れ、ユニットコントローラ290およびデータ伝送コント
ローラ553にリセットがかかるようになっている。
Next, after setting the 10-second timer, the unit controller 290 determines whether or not the timer has timed out. If no, the command register C in the unit memory 550 is determined.
By looking at R1, it is determined whether a packet has been received from the management device (procedures PC213 to PC215). Here, when the packet is not received, the process returns to the above-described procedure PC214, and the process returns to step PC214.
It is determined whether the second timer has timed out. If the time expires before receiving the packet,
The flow shifts to the PC 291 to stop the output of the watchdog pulse by fixing the common signal of the amount indicator 213 to low level or high. Incidentally, when this pulse is stopped, a reset signal is generated by the reset circuit 555, and the unit controller 290 and the data transmission controller 553 are reset.

手続きPC213で設定したタイマがタイムオーバーを起
こす前にパケットを受信すると、手続きPC215からPC216
へ進み、その受信パケットが“ACK"か否か判定し、“AC
K"でないときは“NAK"か否か判定する(手続きPC21
7)。また、受信したパケットが“ACK"でも“NAK"でも
ないときは、内部メモリに未処理パケットとして登録し
ておく(手続きPC218)。なお、この未処理パケットは
第60図のメインフローの中の手続きPC110でその有無が
判定されて、処理される。
If a packet is received before the timer set in procedure PC213 has timed out, procedure PC215 to PC216
To determine whether the received packet is “ACK” or not.
If it is not "K", it is determined whether it is "NAK" (procedure PC21
7). If the received packet is neither "ACK" nor "NAK", it is registered as an unprocessed packet in the internal memory (procedure PC218). Note that the presence or absence of this unprocessed packet is determined by the procedure PC 110 in the main flow of FIG. 60 and is processed.

また、手続きPC219で受信パケットが“NAK"と判定さ
れたときは手続きPC219へ移行し、ウォッチドッグパル
スを停止して、リセットをかける。
If the received packet is determined to be "NAK" in procedure PC219, the procedure proceeds to procedure PC219, where the watchdog pulse is stopped and reset.

一方、手続きPC216で受信パケットが“ACK"と判定さ
れたときは、手続きPC221へ移行して予約フラグをオー
ル“1"にセットしてから、カード発行制御装置790に対
し、金額を「0」として「カード発行」ファンクション
を送信する(手続きPC222)。
On the other hand, when the procedure PC 216 determines that the received packet is “ACK”, the procedure proceeds to procedure PC 221 to set the reservation flag to all “1”, and then, to the card issuing control device 790, the amount is set to “0”. To send a "card issue" function (procedure PC222).

それから、カード発行制御装置790から「正常終了」
ファンクションを受信したか判定し(手続きPC223)、
受信していなければ手続きPC224へ移行して「異常終
了」ファンクションを受信したか判定する。ここでノオ
ならば再び手続きPC223へ戻って上記判定を繰り返し、
「正常終了」ファンクションを受信した時点で手続きPC
225へ移行して紙幣挿入ランプ223の点滅を開始させてか
ら元のルーチン(第60図)に戻る。
Then, "normal end" is issued from the card issuing control device 790.
Determine whether function was received (procedure PC223),
If not, the process proceeds to procedure PC224 to determine whether an “abnormal termination” function has been received. If no here, return to procedure PC223 again and repeat the above determination,
Procedure PC when "normal end" function is received
The flow shifts to 225, where the bill insertion lamp 223 starts blinking, and then returns to the original routine (FIG. 60).

また、手続きPC224で「異常終了」ファンクションを
受信したときは、モニタ表示器206にその異常の内容を
示すエラー番号を表示させてからエラー状態の回復を待
ち、回復後に手続きPC222へ戻って再度カード発行制御
装置790へ「カード発行」ファンクションを送信する。
When the procedure PC 224 receives the “abnormal termination” function, the monitor display 206 displays an error number indicating the content of the abnormality, waits for the recovery of the error state, returns to the procedure PC 222 after the recovery, and returns to the card again. The “card issue” function is transmitted to the issue control device 790.

なお、金額が「0」の「カード発行」ファンクション
をカード発行制御装置790が受信すると、カードタンク
からカードを取り出して磁気記録部にカード番号を含む
磁気データを記録し、発行穴を開けてから千の位を除く
3つの「0」を印字した時点で処理を中断して待機状態
に移るようになっている。
When the card issuance control device 790 receives the "card issuance" function with the amount of "0", the card is taken out from the card tank, the magnetic data including the card number is recorded in the magnetic recording unit, and the issuance hole is opened. When three “0” s except for the thousands are printed, the process is interrupted and the process shifts to a standby state.

第61図(C)には、第60図のフロー中におけるカード
購入処理の具体的手順を示す。
FIG. 61 (C) shows a specific procedure of the card purchase process in the flow of FIG.

紙幣識別器210に紙幣が挿入されたことを検知する
と、ユニットコントローラ290は先ず紙幣挿入ランプ223
が点滅状態にあるか否かチェックし(手続きPC231)、
点滅中でないときは何もせずに元のルーチン(第60図)
へ戻り、点滅中のときはPC232以下の手続きへ移行す
る。上記紙幣挿入ランプ223は、前述したカード番号予
約処理中の手続きPC225または第62図(D)の強制終了
解除処理中の手続きPC225で点滅が開始されるので、カ
ード番号の予約処理終了後または“強制終了解除”パケ
ットを受信した後に当該カード購入処理が実行されるこ
とになる。
Upon detecting that a bill has been inserted into the bill validator 210, the unit controller 290 first activates the bill insertion lamp 223.
Check if is blinking (procedure PC231),
The original routine without doing anything when it is not blinking (Fig. 60)
Returning to the above procedure, if it is blinking, proceed to the procedure below PC232. The bill insertion lamp 223 starts blinking in the above-described procedure PC225 during the card number reservation processing or the procedure PC225 in the forced termination release processing in FIG. 62 (D). After receiving the "forced termination release" packet, the card purchase processing is executed.

手続きPC232では紙幣識別器210に対して、紙幣取込み
指示信号STACKを与えてから、紙幣識別器210からの金額
を読み取って、その金額によって購入可能な購入選択ス
イッチ212を示すべくスイッチ内臓のランプLMP1〜LMP5
を挿入金額に相当する分(千円ならLMP1のみ、5千円な
らLMP1〜LMP5)だけ点灯させる(手続きPC233)。
The procedure PC232 gives the bill accepting instruction signal STACK to the bill validator 210, reads the amount from the bill validator 210, and displays a purchase selection switch 212 that can be purchased based on the amount. ~ LMP5
Is turned on for the amount corresponding to the insertion amount (LMP1 for 1,000 yen, LMP1 to LMP5 for 5,000 yen) (procedure PC233).

次に、挿入された紙幣が5千円未満か判定し(手続き
PC234)、5千円なら手続きPC236で上記紙幣挿入ランプ
223を消灯させてから手続きPC237へ移行し、5千円未満
なら手続きPC236で次の紙幣が挿入されたか否か判定す
る。連続した紙幣の挿入による高額のカードの購入を可
能にするためである。ここで、次の紙幣の挿入を検知す
ると、再び手続きPC232へ戻って紙幣の取込み指令を与
え、トータルの投入金額に相当する購入ランプを点灯さ
せてからトータルの投入金額が5千円未満か判定する。
Next, it is determined whether the inserted bill is less than 5,000 yen (procedure
PC234) If the fee is 5,000 yen, the above-mentioned bill insertion lamp will be written in PC236.
After turning off 223, the procedure proceeds to procedure PC237, and if it is less than 5,000 yen, procedure PC236 determines whether the next bill is inserted. This is because it is possible to purchase a high-priced card by continuously inserting bills. Here, when the insertion of the next bill is detected, the procedure returns to the procedure PC232 again to give a command to take in the bill, turn on the purchase lamp corresponding to the total bill, and determine whether the total bill is less than 5,000 yen. I do.

投入金額が5千円に達するか次の紙幣の挿入がないと
きは、手続きPC237へ移行して購入選択スイッチ212のい
ずれかがオンされたか否か判定する。ここで、選択スイ
ッチ212がオンされていないときは手続きPC234へ戻るこ
とで購入選択スイッチがオンされるまで次の手続きへ移
行せずに待機する。
When the inserted amount reaches 5,000 yen or when the next bill is not inserted, the process proceeds to procedure PC237 to determine whether any of the purchase selection switches 212 is turned on. Here, when the selection switch 212 is not turned on, the process returns to the procedure PC 234 to wait without shifting to the next procedure until the purchase selection switch is turned on.

その後、購入選択スイッチ212がオンされると、紙幣
挿入ランプ223を消灯させてからオンされたスイッチ以
外の内蔵ランプをすべて消灯させる(手続きPC238,PC23
9)。次に、カード発行口202に設けられているカード発
行ランプ224の点滅を開始させてから、釣銭があるか否
か判定し、釣銭があるときは、紙幣払出口232に設けら
れた紙幣払出ランプ225の点滅を開始させる(手続きPC2
40〜PC242)。この実施例のカード発行機では、紙幣識
別器210として千円と5千円と1万円を識別できるもの
を使用するとともに、発行カードとしては千円きざみで
5千円相当まで発行できるようにしているためである。
Thereafter, when the purchase selection switch 212 is turned on, the banknote insertion lamp 223 is turned off, and then all the built-in lamps other than the switch that was turned on are turned off (procedures PC238 and PC23).
9). Next, after the blinking of the card issuing lamp 224 provided in the card issuing port 202 is started, it is determined whether or not there is change. When there is a change, the bill payout lamp provided in the bill payout port 232 is provided. Start flashing of 225 (procedure PC2
40-PC242). In the card issuing machine of this embodiment, a bill discriminator 210 capable of discriminating between 1,000 yen, 5,000 yen, and 10,000 yen is used, and an issuance card can be issued up to 5,000 yen per thousand yen. Because it is.

一方、釣銭がないときは手続きPC241からPC243へジャ
ンプしてランプを点滅させずに次の手続きへ進み、予約
フラグが「0」か否か判定する。
On the other hand, when there is no change, the procedure jumps from PC241 to PC243 to proceed to the next procedure without blinking the lamp, and determines whether the reservation flag is "0".

ここで、予約フラグが「1」なら次の手続きPC244
で、金額の欄に購入選択スイッチ212により選択された
値を、また、カード番号および発行通し番号の欄には第
61図(B)のカード番号予約処理で管理装置400から受
け取った予約番号を、更に発行受付番号の欄には予約の
際に管理装置へ送った発行回数をそれぞれ入れた“カー
ド購入”パケットを管理装置へ送信する。一方、予約フ
ラグが「0」のときは、金額の欄に選択値または発行受
付番号の欄には既発行回数に+1をした値を入れ、カー
ド番号と発行通し番号は各々「0」とした“カード購
入”パケットを管理装置へ送信する。発行機がカード番
号の予約を行なう前に紙幣が投入された場合を想定した
ものである。
Here, if the reservation flag is “1”, the next procedure PC244
In the amount column, the value selected by the purchase selection switch 212 is entered, and in the card number and
A "card purchase" packet in which the reservation number received from the management device 400 in the card number reservation process of FIG. 61 (B) and the number of issuances sent to the management device at the time of reservation are entered in the issuance reception number column. Send to the management device. On the other hand, when the reservation flag is "0", a selection value is entered in the amount column or a value obtained by adding +1 to the number of issued issuances in the column of issuance reception number, and the card number and the issue serial number are each set to "0". A "Card purchase" packet is transmitted to the management device. It is assumed that a bill is inserted before the issuing machine reserves a card number.

パケット送信後ユニットコントローラ290は、10秒タ
イマをセットしてからタイムオーバーしたか判定し、オ
ーバーしていないときは管理装置400からのパケットを
受信したか否か判定する(手続きPC246〜PC248)。ここ
でパケットを受信していないときは手続きPC247へ戻っ
てタイマをチェックし、タイムオーバーすなわち10秒以
内に“ACK"パケットが戻ってこないときは、手続きPC25
2へ移行してウォッチドッグパルスの出力を停止させ
る。
After transmitting the packet, the unit controller 290 determines whether the time has elapsed after setting the 10-second timer, and if not, determines whether or not a packet from the management device 400 has been received (procedures PC246 to PC248). If the packet has not been received, the procedure returns to procedure PC247 to check the timer. If the time is over, that is, if the "ACK" packet does not return within 10 seconds, procedure PC25 is returned.
Go to step 2 to stop the watchdog pulse output.

また、時間内にパケットを受信すると、そのパケット
が“NAK"か否か判定し、“NAK"のときは、手続きPC252
へ移行してウォッチドッグパルスの出力を停止させる。
When a packet is received within the time, it is determined whether or not the packet is "NAK".
And the output of the watchdog pulse is stopped.

さらに、受信パケットが“NAK"でなかったときは“AC
K"か否かチェックし、“ACK"でないときは未処理パケッ
トとして内部メモリに登録してから手続きPC247へ戻っ
て再びタイマをチェックする。そして、受信パケットが
“ACK"であった場合にのみ手続きPC253へ移行して、発
行回数をインクリメントしてから、予約処理フローの手
続きPC221で「1」にセットされた予約フラグを「0」
にする(手続きPC254)。
If the received packet is not “NAK”, “AC
Check if it is "K", and if it is not "ACK", register it as an unprocessed packet in the internal memory, return to procedure PC247 and check the timer again, and only if the received packet is "ACK" The procedure shifts to procedure PC253, in which the number of issuances is incremented, and the reservation flag set to "1" in procedure PC221 of the reservation processing flow is set to "0".
(Procedure PC254).

その後、ユニットコントローラ290は、カード発行制
御装置790へカード番号と発行通し番号および購入金額
を入れた「カード発行」ファンクションを送信してか
ら、「正常終了」ファンクションの応答があるのを待つ
(手続きPC255〜PC257)。「正常終了」の応答がくる前
に「異常終了」応答がカード発行制御装置790から送ら
れてくると、ユニットコントローラ290はモニタ表示器2
06に異常の内容を示すエラー番号を表示してからエラー
状態が回復するのを待つ(手続きPC263,PC264)。
Thereafter, unit controller 290 transmits a “card issuance” function including the card number, issuance serial number, and purchase price to card issuance control device 790, and then waits for a response of the “normal end” function (procedure PC255). ~ PC257). If an "abnormal end" response is sent from the card issuing control device 790 before the "normal end" response is received, the unit controller 290 displays the monitor display 2
After displaying an error number indicating the content of the error in 06, wait for the error state to recover (procedures PC263 and PC264).

一方、カード発行指令後に「正常終了」ファンクショ
ンが戻ってきたときは、手続きPC240で点滅させたカー
ド発行ランプ224を消灯させてから、再び釣銭の有無を
判定し、釣銭があるときは釣銭払出器230に対して釣銭
払出指令信号を与える(手続きPC258〜PC260)。それか
ら、手続きPC242で点滅させた紙幣払出ランプ225を消灯
させた後、ユニットメモリ550の送信データエリア内の
受入金額、預かり金額および払出金額を演算して更新す
る(手続きPC261,PC262)。なお、釣銭がないときは手
続きPC259からPC262へジャンプして、元のルーチン(第
60図)へ戻る。
On the other hand, when the "normal end" function returns after the card issuance command, the card issuance lamp 224 flashed by the procedure PC 240 is turned off, and then the presence or absence of change is determined again. A change payment command signal is given to 230 (procedures PC258 to PC260). Then, after turning off the banknote payout lamp 225 blinked in the procedure PC242, the received amount, the deposited amount, and the paidout amount in the transmission data area of the unit memory 550 are calculated and updated (procedures PC261, PC262). If there is no change, the procedure jumps from PC259 to PC262 and returns to the original routine (No.
Return to Fig. 60).

第62図(A)〜(D)は、第61図(A)のフローにお
いて示されている初期値設定処理、ユニット復旧処理、
強制終了解除処理および強制終了処理の具体器手順を示
すもので管理装置400から送られてきたパケットに応じ
てそれぞれ対応する処理が実行される。
FIGS. 62 (A) to 62 (D) show initial value setting processing, unit recovery processing, and the like shown in the flow of FIG. 61 (A).
It shows the concrete procedure of the forced termination cancellation processing and the forced termination processing, and the corresponding processing is executed according to the packet transmitted from the management apparatus 400.

このうち第62図(A)は“初期値設定”パケットを受
信したときの処理であり、ユニットコントローラ290は
先ずユニットメモリ550の受信データエリアに書き込ま
れた受信パケットのヘッド部分を送信データエリアにコ
ピーすることで、送信の際のパケットのヘッドとなる部
分を作成するとともに、受信データエリアのホットコー
ドを送信データエリアの所定の番地にコピーする(手続
きPC271,PC272)。
FIG. 62 (A) shows the processing when the "initial value setting" packet is received. The unit controller 290 first sets the head portion of the received packet written in the received data area of the unit memory 550 to the transmission data area. By copying, a portion which becomes the head of the packet at the time of transmission is created, and the hot code of the reception data area is copied to a predetermined address of the transmission data area (procedures PC271 and PC272).

次に、手続きPC106で「1」にセットした送信データ
エリア内のモニタ情報1の初期値未設定ビットをクリア
することで、ユニット制御装置280が初期値を受信した
ことを明示してから、カード発行制御装置790に対して
「初期値送信」ファンクションを送信して元のルーチン
へ戻る(手続きPC273,PC274)。
Next, by clearing the initial value unset bit of the monitor information 1 in the transmission data area set to “1” by the procedure PC 106, it is made clear that the unit controller 280 has received the initial value, The "initial value transmission" function is transmitted to the issuance control device 790, and the process returns to the original routine (procedures PC273 and PC274).

“ユニット復旧データ”パケットを受信したときは、
第62図(B)の処理が開始され、先ず受信データエリア
内のパケットタイプと受信した復旧データを送信データ
エリアの対応するエリアにコピーしてからユニットメモ
リ550の交信用エリア内のコマンドレジスタCR2に“ACK"
パケットの送信コマンドを書き込んでデータ伝送コント
ローラ551にパケットの送信を指示する(手続きPC281,P
C282)。
When the “unit recovery data” packet is received,
The processing of FIG. 62 (B) is started. First, the packet type in the reception data area and the received recovery data are copied to the corresponding area of the transmission data area, and then the command register CR2 in the communication area of the unit memory 550 is copied. To “ACK”
Write a packet transmission command to instruct the data transmission controller 551 to transmit the packet (procedure PC281, PC
C282).

次に、タイマ(10秒)を設定してからカード発行制御
装置790へ「初期値送信」ファンクションを送る(手続
きPC283,P284)。それから管理装置400からのパケット
の受信を待ち、“ACK"送信後所定時間(10秒)内に所定
のパケット(“リスタート”パケット)が送信されてこ
ないときはウォッチドッグパルスの出力を停止させて、
自らリセットをかける(手続きPC285〜PC287)。10秒以
内に“リスタート”パケットが送信されてきたときは第
61図(A)の手続きPC209でコマンドレジスタCR2をクリ
アしてから第60図のメインルーチンへ戻る(手続きPC28
8)。
Next, after setting a timer (10 seconds), an "initial value transmission" function is sent to the card issuance control device 790 (procedures PC283 and P284). Then, it waits for the reception of a packet from the management device 400. If a predetermined packet (“restart” packet) is not transmitted within a predetermined time (10 seconds) after the transmission of the “ACK”, the output of the watchdog pulse is stopped. hand,
Reset itself (procedure PC285-PC287). If a “restart” packet is sent within 10 seconds, the
The command register CR2 is cleared by the procedure PC209 in FIG. 61 (A), and the process returns to the main routine in FIG. 60 (procedure PC28).
8).

第62図(C),(D)には管理装置400から“強制終
了解除”パケットまたは“強制終了”パケットの送信を
受けたときの処理が示されている。ユニットコントロー
ラ290が“強制終了解除”を受信したときは先ず発行機
の稼動情報内の「稼動中」を示すビットをセットしてか
ら発行中止ランプ222を消灯、発行中ランプ221を点灯さ
せ、紙幣挿入ランプ223の点灯を開始させる(手続きPC2
91〜PC293)。一方、“強制終了”パケットを受信する
と稼動情報内の「稼動中」を示すビットをクリアした
後、発行中止ランプ222を点灯、発行中ランプ221を消灯
してから、紙幣挿入ランプ223を消灯させる(手続きPC2
95〜PC297)。
FIGS. 62 (C) and 62 (D) show a process when a “forced termination release” packet or a “forced termination” packet is received from the management device 400. When the unit controller 290 receives the "forced termination release", first sets the bit indicating "in operation" in the operation information of the issuing machine, then turns off the issuance stop lamp 222, turns on the issuance lamp 221 and outputs the bill. Turn on the insertion lamp 223 (procedure PC2
91-PC293). On the other hand, when the “forced end” packet is received, the bit indicating “in operation” in the operation information is cleared, the issue stop lamp 222 is turned on, the issue lamp 221 is turned off, and then the bill insertion lamp 223 is turned off. (Procedure PC2
95-PC297).

第63図には、ユニットコントローラ290における上記
メイン処理(第60図)とは別個にタイマ割込みによって
実行されるタイマ割込み処理の手順が示されている。
FIG. 63 shows a procedure of a timer interrupt process executed by the timer interrupt separately from the main process (FIG. 60) in the unit controller 290.

ユニットコントローラ290は、第60図のフロー中の手
続きPC101でセットされた内部のタイマから1m秒間隔で
割込み信号が入ってくると、先ず手続きPC101で内部メ
モリに書き込んだチェックコードを読み出してコードが
変化していないか調べることで内部メモリをチェックし
て異常があるときは手続きPC124へジャンプしてウォッ
チドッグパルスの出力を省略することでリセットをかけ
る(手続きPC121)。内部メモリが正常であるときは手
続きPC122でタイマを更新してからウォッチドッグパル
スを出力した後、金額表示器213をダイナミック表示さ
せるためのデータを出力して割込み処理を終了する(手
続きPC123,PC124)。
When the unit controller 290 receives an interrupt signal at an interval of 1 ms from the internal timer set by the procedure PC 101 in the flow of FIG. 60, the unit controller 290 first reads the check code written in the internal memory by the procedure PC 101, and reads the code. The internal memory is checked by checking for any change, and if there is an abnormality, the procedure jumps to procedure PC124 to omit the output of the watchdog pulse to reset (procedure PC121). If the internal memory is normal, the procedure PC122 updates the timer and then outputs a watchdog pulse, then outputs data for dynamically displaying the monetary indicator 213 and terminates the interrupt processing (procedures PC123 and PC124). ).

なお、第60図〜第63図のフローチャートには示されて
いないが、ユニットコントローラ290はカード発行制御
装置790からのファンクションを受信した場合、そのコ
ードをチェックしてエラーがあったときには、「再送要
求」ファンクションを送信するようにしている。
Although not shown in the flowcharts of FIGS. 60 to 63, when the unit controller 290 receives a function from the card issuance control device 790, it checks its code, and when there is an error, Request "function is sent.

第64図にはカード発行制御装置790におけるカード発
行等の制御手順が示されている。
FIG. 64 shows a control procedure for card issuance and the like in the card issuance control device 790.

カード発行制御装置790は、リセットがかかると先ず
内部メモリやレジスタ、I/Oポート等をクリアして初期
化した後、タイマ(ex.10秒)を設定し、「初期値要
求」ファンクションをユニットコントローラ290に対し
て送信する(ルーチンRN101〜RN103)。次に、ユニット
コントローラ290からのファンクションを受信したかチ
ェックし、受信していなければルーチンRN102で設定し
たタイマがオーバーしたか判定する(ルーチンRN104,10
5)。そしてタイムオーバーするまでルーチンRN104,105
を繰り返し、タイムオーバーしたならルーチンRN102へ
戻ってタイマを設定し直してから再度「初期値要求」フ
ァンクションを送信する。最初に「初期値要求」ファン
クションを送った時点では、まだユニットコントローラ
290が受信の準備が整っていない場合があり得るからで
ある。
When the card issuance control device 790 is reset, the internal memory, registers, I / O ports, and the like are first cleared and initialized, then a timer (ex. 10 seconds) is set, and the “initial value request” function is executed as a unit. This is transmitted to the controller 290 (routines RN101 to RN103). Next, it is checked whether a function from the unit controller 290 has been received, and if not, it is determined whether or not the timer set in the routine RN102 has expired (routines RN104 and RN104).
Five). Then the routine RN104, RN105 until the time is over
Is repeated, and if the time is over, the process returns to the routine RN102, resets the timer, and then transmits the "initial value request" function again. When the "Initial value request" function is sent for the first time,
This is because 290 may not be ready for reception.

ファンクション送信後に、ユニットコントローラ290
からのファンクションを受信すると、ルーチンRN104か
らRN106へ移行して、受信したファンクションが「初期
値送信」ファンクションか否か調べ、ノオならルーチン
RN107で「異常終了」ファンクションを送信してからル
ーチンRN102へ戻って、「初期値要求」ファンクション
の再送信を行なう。ユニットコントローラ290から先ず
初期値をもらってからカード発行等の具体的処理を正確
に実行するためである。
After sending the function, unit controller 290
When the function is received from, the routine shifts from routine RN104 to RN106, and checks whether the received function is the "send initial value" function.
After transmitting the “abnormal termination” function in RN107, the process returns to the routine RN102 and retransmits the “initial value request” function. This is because a specific process such as card issuance is accurately executed after first receiving an initial value from the unit controller 290.

ルーチンRN106の判定で受信したファンクションが
「初期値送信」であったときは、ルーチンRN108へ進
み、ファンクションコードと一緒に送られてきた年月日
と識別コードとを内部メモリに記憶してから同じく内部
メモリに用意されたステータスレジスタの初期値未設定
ビットをクリアし、「正常終了」ファンクションをユニ
ットコントローラ290へ送信する(ルーチンRN109,RN11
0)。
If the function received in the determination of the routine RN106 is "transmission of the initial value", the process proceeds to the routine RN108, where the date and the identification code sent together with the function code are stored in the internal memory, and The initial value unset bit of the status register prepared in the internal memory is cleared, and a “normal end” function is transmitted to the unit controller 290 (routines RN109 and RN11).
0).

しかる後、ルーチンRN111でユニットコントローラ290
からの次のファンクションの受信が有るのを待ち、ファ
ンクションを受信した時点でルーチンRN112〜RN115へ進
み、いずれのファンクションを受信したか判定し、「初
期値送信」ファンクションであったときは年月日、識別
コードを記憶してから「正常終了」ファンクションを送
信し(ルーチンRN116,RN117)、「カード発行」ファン
クションであったときは第65図のカード発行処理(ルー
チンRN121〜RN129)を実行する。また受信したファンク
ションが「再送要求」であったときは、ルーチンNR118
でて前回送信したファンクションを再送し、「ステータ
ス要求」であったときはルーチンRN119で「ステータス
要求」ファンクションを送信する。ルーチンRN112で再
度「初期値送信」ファンクションか否か判定しているの
は、後述のエラー処理(第67図参照)実行後にルーチン
RN111へ戻ってきた場合(符号V1)を考慮したものであ
る。
Thereafter, the unit controller 290 is executed in the routine RN111.
Wait for the reception of the next function from, and when the function is received, proceed to routines RN112 to RN115 to determine which function was received. After the identification code is stored, the "normal end" function is transmitted (routines RN116 and RN117). If the function is the "card issue" function, the card issuing process (routines RN121 to RN129) of FIG. 65 is executed. If the received function is "retransmission request", the routine NR118
Then, the previously transmitted function is retransmitted, and if it is a "status request", a "status request" function is transmitted in routine RN119. The reason why the “initial value transmission” function is determined again in the routine RN112 is that the routine is executed after execution of error processing (see FIG. 67) described later.
This is in consideration of the case of returning to RN111 (symbol V1).

第65図には第64図のフロー中におけるカード発行処理
の具体的手順を示す。
FIG. 65 shows a specific procedure of the card issuing process in the flow of FIG.

カード発行制御装置790は、ユニットコントローラ290
から「カード発行」ファンクションを受信すると、先ず
印字装置750内のセンサ761aを見て印字装置内に待機し
ているカードがあるか否か判定する(ルーチンR121)。
ここで、カードがなければ次のルーチンR122で「カード
発行」ファンクション内の金額が「0」か否か調べ、イ
エスなら第66図(A)に示されているカード取出処理ル
ーチンRN201〜RN212を実行してから第66図(B)のリー
ダ制御処理ルーチンRN213〜RN227、第66図(C)のカー
ド反転処理ルーチンRN288〜RN243、第66図(D)の印字
1処理ルーチンRN245〜RN266を実行した後、「正常終
了」ファンクションをユニットコントローラ290に対し
て送信して元のルーチン(第65図)へ(ルーチンRN12
9)戻る。これによって、カードタンクからカードを1
枚取り出して磁気データを書き込んだ後、印字装置で購
入金額の千の桁を除くすべてのデータを印字した状態で
待機する発行予約処理が実行される。
The card issuance control device 790 includes a unit controller 290
When the "card issue" function is received from the printer, first, it is determined whether or not there is a card waiting in the printing apparatus by looking at the sensor 761a in the printing apparatus 750 (routine R121).
Here, if there is no card, it is checked in the next routine R122 whether or not the amount in the "card issuance" function is "0", and if yes, the card removal processing routines RN201 to RN212 shown in FIG. After execution, the reader control processing routines RN213 to RN227 of FIG. 66 (B), the card inversion processing routines RN288 to RN243 of FIG. 66 (C), and the print 1 processing routines RN245 to RN266 of FIG. 66 (D) are executed. After that, a “normal end” function is transmitted to the unit controller 290, and the process returns to the original routine (FIG. 65) (routine RN12).
9) Return. This allows you to remove one card from the card tank.
After the sheets are taken out and the magnetic data is written, an issuance reservation process is executed in which the printing device stands by in a state where all the data except for the thousands digit of the purchase price are printed.

また、ルーチンRN121,RN122でそれぞれ“カードな
し”、“金額≠0"と判定されると、カード取出処理RN20
1〜RN212、リーダ制御処理RN213〜RN227、カード反転処
理RN228〜RN243、印字1処理RN245〜RN266および第66図
(E)のカード排出処理RN268〜RN280を実行してから、
カード取出枚数を計数する記憶媒体数計数手段としての
カウンタ795をカウントアップ(計数値の更新)し、
「正常終了」ファンクションを送信する(ルーチンRN12
3,RN129)。これによって、カード番号予約前に金額の
入った「カード発行」ファンクションが送られてきたと
きに、カードを発行することができる。このような事態
は、例えばカードリーダのみ電源がオフで、ユニットコ
ントローラ290やカード発行制御装置790の電源がオンさ
れていて処理が進行し、その後カードリーダの電源が投
入された場合に生じる。
Further, when it is determined in the routines RN121 and RN122 that "no card" and "amount of money are $ 0", respectively, the card removal processing RN20 is performed.
1 to RN212, reader control processing RN213 to RN227, card inversion processing RN228 to RN243, print 1 processing RN245 to RN266, and card ejection processing RN268 to RN280 in FIG.
The counter 795 as a storage medium number counting means for counting the number of card ejections is counted up (update of the count value),
Send "normal end" function (routine RN12
3, RN129). In this way, a card can be issued when a "card issue" function containing an amount of money is sent before the card number reservation. Such a situation occurs, for example, when the power of only the card reader is off, the power of the unit controller 290 and the power of the card issuance control device 790 is on, the processing proceeds, and then the power of the card reader is turned on.

一方、ルーチンRN121で印字装置750内にカード(予約
カード)があると判定したときにはルーチンRN124へ移
行して、既に予約してあったカードのカード番号と「カ
ード発行」ファンクションにより送られてきたカード番
号とを比較する。そして、カード番号が一致しなかった
ときは、第66図(F)に示すスタック処理RN281〜RN299
を実行して予約中のカードを没収タンク780へ収納して
から、カード取出枚数とスタックカード枚数を計数する
2つのカウンタ795,796を更新する(ルーチンRN125)。
発行されたカードのデータと管理装置400内のカードフ
ァイルのデータとの不一致を回避するためである。その
後、金額が「0」か否かの判定を行ない(ルーチンRN12
6)、金額がゼロならルーチンR122の次のカード取出処
理RN201〜RN212から印字1処理RN245〜RN266までを実行
してカードの発行予約処理を実行する。また、ルーチン
RN126で金額が「0」でないと判定したときは、カード
取出処理RN201〜RN212からカード排出処理RN268〜RN280
までを実行して、カード予約なしに直ちにカードを発行
させる。
On the other hand, when the routine RN121 determines that there is a card (reserved card) in the printing device 750, the process shifts to the routine RN124, where the card number of the already reserved card and the card sent by the "card issue" function are provided. Compare with number. When the card numbers do not match, the stack processes RN281 to RN299 shown in FIG.
Is executed to store the reserved card in the confiscation tank 780, and then the two counters 795 and 796 for counting the number of cards taken out and the number of stack cards are updated (routine RN125).
This is to avoid inconsistency between the issued card data and the card file data in the management device 400. Thereafter, it is determined whether the amount is "0" (routine RN12).
6) If the amount is zero, the card issuance reservation processing is executed by executing the next card removal processing RN201 to RN212 of the routine R122 to the print 1 processing RN245 to RN266. Also the routine
When it is determined in RN126 that the amount is not “0”, the card ejection processing RN268 to RN280 is performed from the card ejection processing RN201 to RN212.
And immediately issue the card without a card reservation.

一方、上記ルーチンRN124でカード番号が一致したと
きは、ルーチンRN127へ移行して金額が「0」か否か判
定する。ここで金額が「0」なら何もせずにルーチンRN
129へ移行して「正常終了」ファンクションを送信し、
金額が「0」でないときは第66図(D)の印字2処理
(ルーチンRN126〜RN266)へ移行してこれを実行した
後、カード排出処理RN268〜RN280を実行し、カード取出
枚数カウンタを更新してから「正常終了」ファンクショ
ンを送信する(ルーチンRN128,RN129)。すなわち、ル
ーチンRN127〜RN128までの手続きによって予約待機中の
カードに対する金額の千の桁の印字と排出が行われる。
On the other hand, if the card numbers match in the above routine RN124, the process proceeds to routine RN127 to determine whether or not the amount is "0". If the amount is "0", the routine RN is performed without doing anything
Move to 129 and send the "normal end" function,
If the amount is not "0", the flow shifts to the printing 2 process (routines RN126 to RN266) in FIG. 66 (D) and executes it. Then, the card ejection processes RN268 to RN280 are executed and the card ejection counter is updated. Then, the "normal end" function is transmitted (routines RN128 and RN129). That is, the printing and discharging of the thousands of digits of the amount of money for the card waiting for the reservation are performed by the procedures of the routines RN127 to RN128.

なお、上記ルーチンRN121とRN124で“予約カード有
り”、“カード番号一致”と判定してからルーチンR127
で“金額=0"と判定されるのは、例えばカード発行予約
処理後にユニット制御装置280の電源がオフされ、再び
オンされて管理装置400から“ユニット復旧データ”パ
ケットを受信した後に、ユニットコントローラ290がカ
ード発行制御装置790へカード予約のための「カード発
行」ファンクションを送信したような場合に生じる。
It should be noted that the routine RN121 and RN124 determine that there is a "reserved card" and "card number match" before the routine R127
Is determined to be “amount = 0” because, for example, the unit controller 280 is turned off after the card issuance reservation process, turned on again, and receives a “unit recovery data” packet from the management device 400. This occurs when the 290 sends a “card issue” function for card reservation to the card issue control device 790.

第66図(A)には、第65図のカード発行ファンクショ
ン受信処理フロー中におけるカード排出処理の具体的な
手順を示す。
FIG. 66 (A) shows a specific procedure of the card ejection processing in the card issuing function reception processing flow of FIG. 65.

ここでは先ず、カード有無センサ703を見てカードタ
ンク701内にカードがあるか否か調べ(ルーチンR20
1)、センサがオフすなわちタンクが空のときは、ルー
チンRN212へジャンプして内部メモリ内のステータス2
の取出装置異常ビットを「1」に設定してから、第67図
のエラー処理ルーチンへ移行する。
Here, first, it is checked whether there is a card in the card tank 701 by looking at the card presence / absence sensor 703 (routine R20).
1) When the sensor is off, that is, when the tank is empty, the routine jumps to the routine RN212 to return to the status 2 in the internal memory.
Is set to "1", and then the flow shifts to the error processing routine in FIG. 67.

また、カードタンク701内にカードがあるときはルー
チンRN201からRN202へ移行してカードリーダ制御装置28
8へ「磁気書込み」コマンドを送る。それから、タイマ
を設定した後、クラッチソレノイド729をオンさせると
ともに、取出モータ719を回転させる(ルーチンRN203,R
N204)。これによってカードタンクからカードが1枚送
り出される。
If there is a card in the card tank 701, the routine shifts from the routine RN201 to RN202 and proceeds to the card reader control device 28.
Send a "magnetic write" command to 8. Then, after setting the timer, the clutch solenoid 729 is turned on and the take-out motor 719 is rotated (routines RN203 and RN203).
N204). Thereby, one card is sent out from the card tank.

次にルーチンRN203で設定したタイマがタイムオーバ
ーしたか否かチェックし、ノオなら第1走行位置センサ
CPS1がオンしたか調べる(ルーチンRN205,RN206)。第
1走行位置センサCPS1がオフのときはルーチンRN206へ
戻ってタイマのチェックを繰り返す。こうして、第1走
行位置センサCPS1がオンするのを待ち、センサがオンす
る前にタイムオーバーになるとルーチンRN211へジャン
プしてステータス1の走行位置センサ1異常ビットを
「1」に設定し、続いてステータス2の取出装置異常ビ
ットを「1」に設定してから第67図のエラー処理ルーチ
ンへ移行する。
Next, it is checked whether or not the timer set in the routine RN203 has timed out.
Check whether CPS1 is turned on (routines RN205, RN206). When the first traveling position sensor CPS1 is off, the process returns to the routine RN206 and repeats the timer check. In this way, it waits for the first traveling position sensor CPS1 to be turned on, and if the time is over before the sensor is turned on, the routine jumps to the routine RN211 and sets the traveling position sensor 1 abnormality bit of status 1 to “1”. After setting the take-out device abnormal bit of No. 2 to “1”, the process proceeds to the error processing routine of FIG. 67.

一方、タイムオーバーする前に第1走行位置センサCP
S1がオンしたときは、ルーチンRN207へ進み、クラッチ
ソレノイド729をオフしてカードをタンクから送り出す
ローラ712へ取出モータ719の回転力が伝わるのを止めさ
せてカードの2枚送りを防止してから、再びルーチンRN
203でセットしたタイマがタイムオーバーしたか否かチ
ェックする(ルーチンRN208)。それから、今度は第1
走行位置センサCPS1がオフしたか否か調べ、所定時間内
にセンサがオフすれば、カードがカードタンク701から
取り出され、正常に送り出されたと判断し、取出モータ
719を停止させて処理を終了し元のルーチン(第65図)
へ戻る。なお、所定時間内に走行位置センサCPS1がオフ
しないときはカードが途中で詰まったと判断してルーチ
ンRN211へ移行し、ステータス1の走行位置センサ1異
常ビットをセットする。
On the other hand, before the time is over, the first traveling position sensor CP
When S1 is turned on, the routine proceeds to the routine RN207, in which the clutch solenoid 729 is turned off to stop the rotation force of the take-out motor 719 from being transmitted to the roller 712 that sends out the card from the tank, thereby preventing two cards from being fed. , Again routine RN
It is checked whether the timer set in 203 has timed out (routine RN208). Then this time the first
Check whether the traveling position sensor CPS1 is turned off, and if the sensor is turned off within a predetermined time, the card is removed from the card tank 701, it is determined that the card is normally sent out, and the removal motor is
Stops 719, terminates processing, and returns to original routine (Fig. 65)
Return to If the traveling position sensor CPS1 is not turned off within a predetermined time, it is determined that the card is jammed halfway, and the routine shifts to the routine RN211 to set the traveling position sensor 1 abnormality bit of the status 1.

第66図(B)には、第65図のカード発行ファンクショ
ン受信処理フロー中におけるリーダ制御処理の具体的な
手順を示す。
FIG. 66 (B) shows a specific procedure of the reader control process in the card issuing function reception process flow of FIG. 65.

このフローでは、先ずタイマを設定してから、そのタ
イマがタイムオーバーを起こす前に、カード取出処理フ
ロー中のルーチンRN202で送信した「磁気書込み」コマ
ンドに対する応答があったか否かチェックする(ルーチ
ンRN213〜RN215)。そして、時間内に応答がなかったと
きはルーチンRN227へジャンプしてステータス2のカー
ドリーダ異常ビットを「1」に設定してから第67図のエ
ラー処理ルーチンへ移行する。
In this flow, first, after setting a timer, it is checked whether or not there is a response to the "magnetic write" command transmitted in the routine RN202 in the card removal processing flow before the timer times out (routines RN213 to RN215). ). If there is no response within the time, the flow jumps to the routine RN227, sets the card reader abnormality bit of the status 2 to "1", and shifts to the error processing routine of FIG. 67.

また、所定時間内にカードリーダ制御装置288からの
応答を受信したときは、ルーチンRN216へ進みその応答
が正常か否かチェックし、異常があるとタイムオーバー
のときと同様にルーチンRN227へジャンプし、エラー処
理を実行する。一方、応答が正常ならカードリーダ制御
装置288に対して発行穴位置を示すデータを入れた「パ
ンチ穴開け」コマンドを送信して、タイマをセットする
(ルーチンRN217,RN218)。それから、そのタイマがタ
イムオーバーを起こす前にカードリーダ制御装置288か
らの応答があったか否かチェックする(ルーチンRN219,
RN220)。そして、時間内に応答がなかったときはルー
チンRN227へジャンプしてステータス2のカードリーダ
異常ビットを「1」に設定してから第67図のエラー処理
ルーチンへ移行する。
When a response from the card reader control device 288 is received within a predetermined time, the process proceeds to the routine RN216 to check whether the response is normal.If there is an abnormality, the process jumps to the routine RN227 as in the case of time over, Perform error handling. On the other hand, if the response is normal, a “punch hole” command containing data indicating the position of the issue hole is transmitted to the card reader control device 288, and the timer is set (routines RN217 and RN218). Then, it is checked whether or not there is a response from the card reader control device 288 before the timer times out (routine RN219,
RN220). If there is no response within the time, the flow jumps to the routine RN227, sets the card reader abnormality bit of the status 2 to "1", and shifts to the error processing routine of FIG. 67.

また、所定時間内にカードリーダ制御装置288からの
応答を受信したときはルーチンRN221へ進み、その応答
が正常か否かチェックし、異常があるとタイムオーバー
のときと同様にルーチンRN227へジャンプし、エラー処
理を実行する。一方、応答が正常ならカードリーダ制御
装置288に対し「カード後方排出」コマンドを送信して
タイマをセットする(ルーチンRN222,RN223)。それか
ら、そのタイマがタイムオーバーを起こす前にカードリ
ーダ制御装置288からの応答があったか否かチェックす
る(ルーチンRN224,RN225)。そして、時間内に応答が
なかったときはルーチンRN227へジャンプしてステータ
スのカードリーダ異常ビットを「1」に設定してから第
67図のエラー処理ルーチンへ移行する。
When a response from the card reader control device 288 is received within a predetermined time, the process proceeds to the routine RN221, and checks whether the response is normal.If there is an abnormality, the process jumps to the routine RN227 as in the case of time over, Perform error handling. On the other hand, if the response is normal, a "card rear ejection" command is transmitted to the card reader control device 288 to set a timer (routines RN222, RN223). Then, it is checked whether there is a response from the card reader control device 288 before the timer times out (routines RN224, RN225). If there is no response within the time, the process jumps to the routine RN227, sets the card reader abnormality bit of the status to “1”, and then proceeds to the routine RN227.
The routine proceeds to the error processing routine shown in FIG.

また、所定時間内にカードリーダ制御装置288からの
応答を受信したときは、ルーチンRN226へ進みその応答
が正常か否かチェックし、異常があるとタイムオーバー
のときと同様にルーチンRN227へジャンプし、エラー処
理を実行する。一方、応答が正常なら元のルーチン(第
65図)へ戻る。
When a response from the card reader control device 288 is received within a predetermined time, the process proceeds to the routine RN226 to check whether the response is normal.If there is an abnormality, the process jumps to the routine RN227 as in the case of time over, Perform error handling. On the other hand, if the response is normal, the original routine (No.
Return to Fig. 65).

第66図(C)には、第65図のカード発行ファンクショ
ン受信処理フロー中におけるカード反転処理の具体的な
手順を示す。
FIG. 66 (C) shows a specific procedure of the card inversion processing in the card issuing function reception processing flow of FIG. 65.

この処理では、先ず搬送モータ706を正回転させてか
らタイマをセットし、このタイマがタイムオーバーを起
こす前に第2走行位置センサCPS2がオンしたか否かチェ
ックする(ルーチンRN228〜RN231)。そして、時間内に
第2走行位置センサCPS2がオンしなかったときはルーチ
ンRN242へジャンプしてステータス1のジャム異常ビッ
トに「1」を、またルーチンRN243でステータス2のカ
ード搬送異常ビットに「1」をそれぞれ設定してから第
67図のエラー処理ルーチンへ移行する。
In this process, the timer is set after the transport motor 706 is first rotated forward, and it is checked whether the second traveling position sensor CPS2 is turned on before the timer times out (routines RN228 to RN231). If the second traveling position sensor CPS2 is not turned on within the time, the routine jumps to the routine RN242 to set the jam abnormality bit of the status 1 to "1", and the routine RN243 sets the card abnormality bit of the status 2 to "1". After setting each
The routine proceeds to the error processing routine shown in FIG.

一方、所定時間内に第2走行位置センサCPS2がオンし
たときは、ルーチンRN232,RN233へ移行してルーチンRN2
29で設定したタイマがタイムオーバーを起こす前に第2
走行位置センサCPS2がオフしたか否かチェックする。第
2走行位置センサCPS2がオフすれば、カードが走路切替
片745を通過したことになる。そこで、時間内に第2走
行位置センサCPS2がオフしなかったときはルーチンRN24
2へジャンプしてステータス1のジャム異常ビットに
「1」を、またルーチンRN243でステータス2のカード
搬送異常ビットに「1」をそれぞれ設定してから第67図
のエラー処理ルーチンへ移行する。
On the other hand, when the second traveling position sensor CPS2 is turned on within the predetermined time, the routine proceeds to routines RN232 and RN233, and proceeds to routine RN2.
Before the timer set in 29 times out, the second
Check whether the traveling position sensor CPS2 is turned off. When the second traveling position sensor CPS2 is turned off, it means that the card has passed the traveling path switching piece 745. Therefore, if the second traveling position sensor CPS2 does not turn off within the time, the routine RN24
The process jumps to 2 to set "1" in the jam error bit of status 1 and "1" in the card transport error bit of status 2 in the routine RN243, and then proceeds to the error processing routine in FIG.

また、所定時間内に第2走行位置センサCPS2がオフし
たときは、ルーチンRN234へ移行して新たにタイマを設
定してから、搬送モータ706を逆回転させる(ルーチンR
N235)。これによって、カードは逆方向に移送され、走
路切替片745によって印字装置750へ向かう走路へ誘導さ
れる。
If the second traveling position sensor CPS2 is turned off within the predetermined time, the process proceeds to the routine RN234, a new timer is set, and then the transport motor 706 is rotated in reverse (routine R
N235). As a result, the card is transported in the reverse direction, and guided by the track switching piece 745 to the track toward the printing device 750.

搬送モータ逆転後、カード発行制御装置790は、ルー
チンRN234でセットしたタイマがタイムオーバーを起こ
す前に第2走行位置センサCPS2が再びオンしたか否かチ
ェックする(ルーチンRN236,RN237)。そして、時間内
に第2走行位置センサCPS2がオンしなかったときはルー
チンRN242へジャンプしてステータス1のジャム異常ビ
ットに「1」を、またルーチンRN243でステータス2の
カード搬送異常ビットに「1」をそれぞれ設定してから
第67図のエラー処理ルーチンへ移行する。
After the reverse rotation of the transport motor, the card issuing control device 790 checks whether the second traveling position sensor CPS2 is turned on again before the timer set in the routine RN234 times out (routines RN236 and RN237). If the second traveling position sensor CPS2 is not turned on within the time, the routine jumps to the routine RN242 to set the jam abnormality bit of the status 1 to "1", and the routine RN243 sets the card abnormality bit of the status 2 to "1". Is set, and then the flow shifts to the error processing routine in FIG. 67.

一方、所定時間内に第2走行位置センサCPS2がオンし
たときは、ルーチンRN238,RN239へ移行してルーチンRN2
34で設定したタイマがタイムオーバーを起こす前に第2
走行位置センサCPS2がオフしたか否かチェックする。そ
して、時間内に第2走行位置センサCPS2がオフしなかっ
たときはルーチンRN242へジャンプしてステータス1の
ジャム異常ビットに「1」を、またルーチンRN243でス
テータス2のカード搬送異常ビットに「1」をそれぞれ
設定してから第67図のエラー処理ルーチンへ移行する。
さらに、所定時間内に第2走行位置センサCPS2がオフし
たときは、ルーチンRN240,RN241へ移行して、ルーチンR
N234で設定したタイマがタイムオーバーを起こす前に第
3走行位置センサCPS3がオンしたか否かチェックし、時
間内にセンサがオンすれば元のルーチン(第65図)へ戻
る。
On the other hand, when the second traveling position sensor CPS2 is turned on within the predetermined time, the routine shifts to the routines RN238 and RN239 and proceeds to the routine RN2.
Before the timer set in 34 times out, the second
Check whether the traveling position sensor CPS2 is turned off. If the second traveling position sensor CPS2 is not turned off within the time, the routine jumps to the routine RN242 to set the jam abnormality bit of the status 1 to "1", and the routine RN243 sets the card transport abnormality bit of the status 2 to "1". Is set, and then the flow shifts to the error processing routine in FIG. 67.
Further, when the second traveling position sensor CPS2 is turned off within a predetermined time, the routine proceeds to routines RN240 and RN241, and the routine R
Before the timer set in N234 times out, it is checked whether the third traveling position sensor CPS3 is turned on, and if the sensor is turned on within the time, the routine returns to the original routine (FIG. 65).

第66図(D)には、第65図のカード発行処理フロー中
における印字1処理(印字2処理を含む)の具体的な手
順を示す。
FIG. 66 (D) shows a specific procedure of the printing 1 process (including the printing 2 process) in the card issuing process flow of FIG. 65.

ここでは、先ずタイマをセットしてから、そのタイマ
がタイムオーバーを起こす前に第4走行位置センサCPS4
がオンしたか否かチェックする(ルーチンRN245〜RN26
7)。第4走行位置センサCPS4がオンする前にタイムオ
ーバーを起こしたときはルーチンRN265,R266へジャンプ
して、ステータス1のジャム異常ビットに「1」を設定
し、またステータス2の印字装置異常ビットに「1」を
設定してから第67図のエラー処理へ移行する。
Here, after setting the timer first, the fourth traveling position sensor CPS4
Check whether or not is turned on (routines RN245 to RN26
7). If the time runs out before the fourth traveling position sensor CPS4 is turned on, the routine jumps to the routines RN265 and R266, sets the status 1 jam error bit to "1", and sets the status 2 printer error bit to "1". After "1" is set, the flow shifts to the error processing in FIG. 67.

また、タイムオーバーを起こす前に第4走行位置セン
サCPS4がオンしたときは、ルーチンRN248へ進んで印字
用モータ751を回転させてから、タイムオーバーを起こ
す前に第3走行位置センサCPS3がオフしたか否かチェッ
クする(ルーチンRN249,RN250)。ここで、タイムオー
バーを起こすとルーチンRN265へジャンプしてエラー処
理へ移行し、所定時間内に第3走行位置センサCPS3がオ
フしたときは、第66図(C)のルーチンRN235で駆動さ
れた搬送モータ706を停止させてから、タイムオーバー
を起こす前に第4走行位置センサCPS4がオフしたか否か
チェックする(ルーチンRN251〜RN253)。ここでタイム
オーバーを起こしたときは上記と同様ルーチンRN265へ
ジャンプする。一方タイムオーバー前に第4走行位置セ
ンサCPS4がオフしたときはルーチンRN254へ進んで印字
ヘッドの昇降モータ758を、180°回転させて、ヘッドを
降下させる。それから、印字ヘッド756で識別コードと
年月日および購入金額の千の桁以外数字すなわち「00
0」を印字した後、「カード発行」ファンクションコー
ドとともに送られてきた金額データが「0」か否か判定
する(ルーチンRN255〜RN258)。
If the fourth traveling position sensor CPS4 is turned on before the time is over, the process proceeds to the routine RN248 to rotate the printing motor 751, and then determines whether the third traveling position sensor CPS3 is turned off before the time is over. Is checked (routines RN249 and RN250). Here, when the time is over, the routine jumps to the routine RN265 and shifts to error processing. When the third traveling position sensor CPS3 is turned off within a predetermined time, the transport motor driven in the routine RN235 of FIG. After stopping the 706, it is checked whether or not the fourth traveling position sensor CPS4 is turned off before the time is over (routines RN251 to RN253). Here, when the time is over, the process jumps to the routine RN265 as described above. On the other hand, if the fourth traveling position sensor CPS4 is turned off before the time is over, the routine proceeds to a routine RN254, in which the elevation motor 758 of the print head is rotated by 180 ° to lower the head. Then, the print head 756 uses the identification code, the date, and the number other than the thousand digits of the purchase amount, that is, “00”.
After printing "0", it is determined whether or not the amount data transmitted together with the "card issue" function code is "0" (routines RN255 to RN258).

そして、金額が「0」のときはルーチンR259へ移行し
て印字ヘッド756を下げた状態のまま印字用モータ751を
停止させてカードの移動を中止させ、印字装置750内で
待機させる。また、金額が「0」でなかったときはルー
チンRN261へ進み金額の千の桁の数字を印字させてか
ら、ヘッド昇降モータ758を再び180°回転させて印字ヘ
ッド756を上昇させ、新たにタイマをセットする(ルー
チンRN262)。その後、このタイマがタイムオーバーを
起こす前に第5走行位置センサCPS5がオンしたか否かチ
ェックし(ルーチンRN263,RN264)、タイムオーバーを
起こしたときはルーチンRN265へ移行してステータス1
のジャム異常ビットを「1」に、またステータス2の印
字装置異常ビットに「1」を設定してから第67図のエラ
ー処理へ移行する。一方、タイムオーバーを起こす前に
第5走行位置センサCPS5がオンしたときは元のルーチン
(第65図)へ戻る。
If the amount is "0", the flow shifts to routine R259, in which the print motor 751 is stopped with the print head 756 lowered, the movement of the card is stopped, and the card is stopped in the printing device 750. If the amount is not "0", the process proceeds to the routine RN261 to print a thousand-digit number of the amount. Then, the head lifting motor 758 is again rotated by 180 ° to raise the print head 756, and a new timer is set. Is set (routine RN262). Thereafter, it is checked whether or not the fifth traveling position sensor CPS5 has been turned on before the timer times out (routines RN263 and RN264).
Is set to "1" and the status 2 printing apparatus error bit is set to "1", and then the flow proceeds to the error processing of FIG. 67. On the other hand, if the fifth traveling position sensor CPS5 is turned on before the time is over, the routine returns to the original routine (FIG. 65).

さらに、このフローには第65図における印字2処理も
示されている。すなわち、第65図のカード発行処理にお
いて印字装置750内に予約カードが待機しているときに
「カード発行」ファンクションを受信し、その中のカー
ド番号が待機中の予約カードのカード番号と一致し、か
つ金額が「0」でなかったときはいきなり第66図(D)
のルーチンRN260で印字用モータ751を始動させてカード
を移動させ、以下ルーチンRN261〜RN264を実行すること
で、やり残していた金額の千の桁の数字の印字を行なっ
てから第65図のルーチンへ戻ってカード排出処理へ移行
する。これによって、カード発行機200に実際に紙幣を
投入したときは、第66図(D)のルーチンRN245〜RN258
の実行を省略し、既に金額の千の桁以外の印字までを終
了した予約カードに1字だけ印字して直ちに排出するこ
とで紙幣投入からカード排出までのみかけ上の所要時間
を大幅に短縮することができる。
Further, this flow also shows the print 2 processing in FIG. That is, in the card issuing process of FIG. 65, when the reserved card is waiting in the printing device 750, the “card issuing” function is received, and the card number in the card coincides with the card number of the waiting reserved card. And when the amount is not "0", suddenly, FIG. 66 (D)
In the routine RN260, the printing motor 751 is started to move the card, and by executing the following routines RN261 to RN264, the remaining thousands of digits are printed. Then, the process returns to the card discharging process. As a result, when the banknotes are actually inserted into the card issuing machine 200, the routines RN245 to RN258 in FIG.
Is executed, and only one character is printed on the reservation card that has already been printed up to the thousands of digits of the amount and immediately discharged, thereby greatly reducing the apparent time required from bill insertion to card discharge. be able to.

第66図(E)には第65図のカード発行処理フロー中に
おけるカード排出処理の具体的手順が示されている。
FIG. 66 (E) shows a specific procedure of the card discharging process in the card issuing process flow of FIG.

この処理が開始されると、先ずカード導出装置770内
の導出ソレノイド779をオンさせて走路切替部材777を下
方へ回転させてから搬送モータ706の逆回転を開始さ
せ、タイマをセットする(ルーチンRN268〜RN270)。こ
れによって、印字装置750から送り出されたカードは導
出装置770内を通ってカード発行口202へ向かって移送さ
れる。そして、ルーチンRN270でセットしたタイマがタ
イムオーバーを起こす前に第5走行位置センサCPS5がオ
フしたときは印字装置750内の印字用モータ751を停止さ
せる(ルーチンRN271〜RN273)。既にカードが印字装置
750から送り出されているからである。また、第5走行
位置センサCPS5がオフする前にタイムオーバーを起こし
たときはルーチンR279,RN280へ移行してステータス1の
ジャム異常ビットとステータス2のカード搬送異常ビッ
トにそれぞれ「1」を設定してから第67図のエラー処理
へ移行する。
When this process is started, first, the lead-out solenoid 779 in the card lead-out device 770 is turned on to rotate the track switching member 777 downward, and then the reverse rotation of the transport motor 706 is started, and a timer is set (routine RN268). ~ RN270). As a result, the card sent from the printing device 750 is transferred toward the card issuing port 202 through the deriving device 770. When the fifth traveling position sensor CPS5 is turned off before the timer set in the routine RN270 times out, the printing motor 751 in the printing device 750 is stopped (routines RN271 to RN273). Card already printing device
Because it is sent from 750. If the time is over before the fifth traveling position sensor CPS5 is turned off, the process proceeds to the routines R279 and RN280 to set “1” to the jam error bit of status 1 and the card transport error bit of status 2 respectively. Then, the processing shifts to the error processing in FIG.

上記ルーチンRN273で印字用モータ751を停止させた後
は、再びルーチンRN270でセットしたタイマをチェック
し、タイムオーバーを起こす前にカード発行口202の直
前にある第6走行位置センサCPS6がオンしたときは導出
ソレノイド779をオフさせる(ルーチンRN274〜RN27
6)。第6走行位置センサCPS6がオンする前にタイマが
タイムオーバーを起こしたときはルーチンRN279へ移行
する。
After stopping the printing motor 751 in the routine RN273, the timer set in the routine RN270 is checked again, and if the sixth traveling position sensor CPS6 immediately before the card issuing port 202 is turned on before the time is over, Turn off the derived solenoid 779 (routines RN274 to RN27
6). If the timer times out before the sixth traveling position sensor CPS6 is turned on, the flow shifts to routine RN279.

ルーチンRN276で導出ソレノイド779をオフした後は、
新たにタイマをセットして0.5秒待ってから搬送モータ7
06を停止させる。上記0.5秒は、搬送モータ706の回転速
度との関係から決定されるもので、カード導出装置770
の搬送用ベルト772がカードをその全長l0に相当する距
離だけ移動させるのに充分な時間である。第6走行位置
センサCPS6がカードを検出した後0.5秒待つことによっ
てカードはカード発行口202から3分の2程度突出され
た状態で停止する。第6走行位置センサCPS6は遊技客が
手でカードを発行口202より引き抜いた時点でオフとな
る。
After turning off the derived solenoid 779 in routine RN276,
Set a new timer and wait 0.5 seconds before feeding motor 7
Stop 06. The above 0.5 second is determined from the relationship with the rotation speed of the transport motor 706, and
Transfer belt 772 is sufficient time to move by a distance corresponding to the card its entire length l 0. By waiting 0.5 seconds after the sixth traveling position sensor CPS6 detects the card, the card is stopped in a state where it is protruded from the card issuing port 202 by about two thirds. The sixth traveling position sensor CPS6 is turned off when the player manually pulls out the card from the issuing port 202.

第66図(F)には、第65図のカード発行処理フロー中
におけるスタック処理の具体的手順を示す。
FIG. 66 (F) shows a specific procedure of the stack process in the card issuing process flow of FIG.

カード発行制御装置790は、ルーチンRN121で印字装置
750内に予約カードがあると判定したものの受信したカ
ード番号が待機中のカードのカード番号と一致しないと
きは、このスタック処理を実行し、先ず印字装置750の
ヘッド昇降モータ758を180°回転させて印字ヘッド756
を上昇させる(ルーチンRN281)。それからタイマを設
定して印字用モータ751を回転させてカードの移送を開
始させてから上記タイマをチェックする(ルーチンRN28
2〜RN285)。そして、印字装置750の出口にある第5走
行位置センサCPS5がオンする前にタイマがタイムオーバ
ーしたときは印字装置750内にカードが詰まっていると
判定してルーチンRN296,RN297へ移行してステータス1
のジャム異常ビットとステータス2の印字装置異常ビッ
トにそれぞれ「1」を設定してから第67図のエラー処理
へ移行する。
The card issuance control device 790 uses the printing device in routine RN121.
If it is determined that there is a reserved card in 750 but the received card number does not match the card number of the waiting card, this stack processing is executed, and first, the head elevating motor 758 of the printing device 750 is rotated 180 °. Print head 756
Is raised (routine RN281). Then, a timer is set and the printing motor 751 is rotated to start transferring the card, and then the timer is checked (routine RN28).
2-RN285). If the timer times out before the fifth traveling position sensor CPS5 at the exit of the printing device 750 is turned on, it is determined that a card is jammed in the printing device 750, and the process proceeds to routines RN296 and RN297 to return to status 1
Are set to "1", respectively, and then the processing shifts to the error processing of FIG.

また、タイマがタイムオーバーを起こす前に第5走行
位置センサCPS5がオンしたときは、ルーチンRN286へ進
んで搬送モータ706を逆回転させてカード導出装置770の
搬送用ベルト772の搬送を開始させてから新たにタイマ
を設定する。それから、このタイマをチェックして第5
走行位置センサCPS5がオフする前にタイムオーバーをお
こしたときはルーチンRN298,R299へジャンプしてステー
タス1のジャム異常ビットとステータス2のカード没収
装置異常ビットにそれぞれ「1」を設定してから、第67
図のエラー処理へ移行する(ルーチンRN288,RN289)。
If the fifth traveling position sensor CPS5 is turned on before the timer times out, the process proceeds to the routine RN286, in which the transport motor 706 is rotated in the reverse direction to start the transport of the transport belt 772 of the card dispensing device 770, and Set a new timer. Then check this timer and
If the time is over before the traveling position sensor CPS5 is turned off, the routine jumps to the routines RN298 and R299 to set “1” to the status 1 jam error bit and the status 2 card confiscation device error bit, respectively. 67
The flow shifts to error processing in the figure (routines RN288 and RN289).

一方、タイマがタイムオーバーを起こす前に第5走行
位置センサCPS5がオフしたときは、ルーチンRN290へ進
んで印字用モータ751を停止させる。しかる後、再びル
ーチンRN287でセットしたタイマをチェックし、カード
導出装置770内のカード満杯センサ783がオンする前にタ
イムオーバーを起こすか、カード満杯センサ783がオン
したもののオフ前にタイムオーバーを起こすと(ルーチ
ンRN291RN294)、ルーチンRN298,RN299を実行してから
第67図のエラー処理ルーチンへ移行する。また、タイマ
設定後所定時間内にカード満杯センサ783がオンし、続
いてオフになったならばルーチンRN295へ進み、搬送モ
ータ706を停止させる。
On the other hand, if the fifth traveling position sensor CPS5 is turned off before the timer times out, the routine proceeds to the routine RN290, where the printing motor 751 is stopped. Thereafter, the timer set in the routine RN287 is checked again, and a time-out occurs before the card full sensor 783 in the card deriving device 770 is turned on, or a time-over occurs before the card full sensor 783 is turned on but turned off ( After executing the routines RN298 and RN299, the processing shifts to the error processing routine of FIG. 67. If the card full sensor 783 is turned on within a predetermined time after the timer is set, and if the card full sensor 783 is subsequently turned off, the process proceeds to the routine RN295 to stop the transport motor 706.

このスタック処理では、第66図(E)のカード排出処
理と異なり、搬送モータ706の駆動前に導出ソレノイド7
79をオンさせていないので、カード導出装置770内の走
路切替部材777はカード発行口202へ向かう走行路を遮断
した状態のまま搬送モータ706が駆動されることにな
る。その結果、搬送用ベルト772で移送されてきたカー
ドは下の没収タンク780内に誘導され、その途中でカー
ド満杯センサ783によって検出される。
In this stacking process, unlike the card ejection process in FIG.
Since 79 is not turned on, the transport motor 706 is driven while the travel path switching member 777 in the card dispensing device 770 blocks the travel path toward the card issuing port 202. As a result, the card transferred by the transport belt 772 is guided into the lower confiscation tank 780, and is detected by the card full sensor 783 on the way.

第67図には第66図(A)〜(F)の各処理フロー中に
おいてカードの位置を検出する各種センサCPS1〜CPS6等
がオンまたはオフする前にタイムオーバーを起こしたと
きに実行されるエラー処理の具体的な手順が示されてい
る。
FIG. 67 shows an error that is executed when a time-over occurs before the various sensors CPS1 to CPS6 for detecting the position of the card are turned on or off in the processing flows of FIGS. 66 (A) to (F). The specific procedure of the processing is shown.

この処理では、先ずカード発行装置700内のすべての
モータ(取出モータ719、搬送モータ706、印字用モータ
751およびヘッド昇降モータ758)を停止させてから「異
常終了」ファンクションをユニットコントローラ290へ
送信する(ルーチンRN151,RN152)。次に、ユニットコ
ントローラ290からファンクションが送信されてきたか
否か判定し(ルーチンRN153)、ファンクションを受信
していないときは、カード発行装置700内のセンサをチ
ェックすることでエラーが復旧したか否か判定し(ルー
チンRN154)、復旧していないときはルーチンRN153へ戻
ることでエラーが復旧するのを待つ。復旧を待っている
間に、カード発行装置700に詰まっていたカードが取り
除かれるなどしてエラー原因がなくなると、ルーチンRN
155へ移行してステータス1,2の各異常ビットを「0」に
クリアしてから、ルーチンRN156へ移行してカード取出
枚数とカード没収枚数を計数するカウンタ795,796を更
新し、メイン処理フロー(第64図)中のルーチンRN111
へ復帰する(符号V1参照)。
In this processing, first, all the motors in the card issuing device 700 (the take-out motor 719, the transport motor 706, the printing motor
751 and the head elevating motor 758) are stopped, and then the "abnormal termination" function is transmitted to the unit controller 290 (routines RN151 and RN152). Next, it is determined whether or not the function has been transmitted from the unit controller 290 (routine RN153). If the function has not been received, the sensor in the card issuing device 700 is checked to determine whether or not the error has been recovered. It is determined (routine RN154), and if the error has not been recovered, the process returns to the routine RN153 to wait for the error to be recovered. If the cause of the error disappears while the card issue device 700 is removed while waiting for recovery, the routine RN
155, the status bits 1 and 2 are cleared to "0", and then the routine RN156 is executed to update the counters 795, 796 for counting the number of cards taken out and the number of cards confiscated, and the main processing flow (No. Routine RN111 in Fig. 64)
(Refer to symbol V1).

一方、ルーチンRN153,RN154でエラーの復旧を待って
いるときに、ユニットコントローラ290からのファンク
ションを受信すると、ルーチンRN157へ移行して、その
受信ファンクションが「ステータス要求」ファンクショ
ンか否か判定し、イエスなら次のルーチンRN158で「ス
テータス送信」ファンクションを送信してからルーチン
RN153へ戻り再びエラーが復旧されるのを待つ。また、
エラー復旧待ち中に受信したファンクションが「ステー
タス要求」でなかったときはルーチンRN159で受信ファ
ンクションが「初期値送信」ファンクションか否か判定
し、「初期値送信」であったときはそのファンクション
内の年月日と識別コードを内部メモリに記憶し、「正常
終了」ファンクションを送信してルーチンRN153へ戻
り、再びエラーの復旧を待つ(ルーチンRN160,RN16
1)。
On the other hand, when a function from the unit controller 290 is received while waiting for error recovery in the routines RN153 and RN154, the process proceeds to the routine RN157, and it is determined whether or not the received function is a “status request” function. Then, send the "Status transmission" function in the next routine RN158 and then the routine
Return to RN153 and wait until the error is recovered again. Also,
If the function received while waiting for error recovery is not a "status request", it is determined in routine RN159 whether the received function is a "send initial value" function. The date and the identification code are stored in the internal memory, the "normal end" function is transmitted, and the process returns to the routine RN153, and waits for the error recovery again (the routines RN160 and RN16).
1).

また、エラー復旧待ち中に受信したファンクションが
「ステータス要求」でも「初期値送信」でもなかったと
きは、ルーチンRN159からRN152へ戻って「異常終了」フ
ァンクションを送信した後、エラー復旧を待つ。
If the function received during the error recovery wait is neither “status request” nor “initial value transmission”, the routine returns from the routine RN159 to RN152 to transmit the “abnormal end” function, and then waits for error recovery.

次に、カード発行制御装置790からの指令に基づいた
カードリーダ制御装置288による発行機200のカードリー
ダ800の制御手順の一例を第68図〜第73図を用いて説明
する。なお、この実施例のフローは精算機300や管理装
置400にも発行機と同一のカードリーダを使用した場合
を想定していずれの制御フローとしても共通に使用でき
るようになっている。
Next, an example of a control procedure of the card reader 800 of the issuing machine 200 by the card reader control device 288 based on a command from the card issuance control device 790 will be described with reference to FIGS. It should be noted that the flow of this embodiment can be commonly used as any control flow on the assumption that the same card reader as the issuing machine is used for the settlement machine 300 and the management device 400.

パチンコ機の制御ユニット160内のカードリーダに関
する制御フローの大きな違いは、磁気コードの書込みと
そのベリファイの制御フローを有する点とカードをカー
ドリーダの前方でなく後方へ排出するフローを有する点
である。
The major difference in the control flow regarding the card reader in the control unit 160 of the pachinko machine is that the control flow of writing and verifying the magnetic code is provided, and the flow of discharging the card to the rear of the card reader instead of to the front is provided. .

前述したように、カードリーダ制御装置288とユニッ
トコントローラ290との間の通信は、前述したようにコ
マンド送信によって行われるようになっており、カード
発行制御装置790からカードリーダ制御装置288に対する
通信コマンドとしては、カードの磁気データを記録する
ように指示する「磁気書込み」コマンドと、カードの磁
気データやセキュリティコードおよびパンチ穴の各情報
を読み取って磁気データを送るよう指示する「磁気読込
み」コマンドと、読み取ったセキュリティデータを送る
よう指示する「セキュリティ要求」コマンドと、読み取
ったパンチ穴データを送るよう指示する「パンチ穴要
求」コマンドと、カードリーダ内に保持されているカー
ドのデータの再読取りを指示する「リロード」コマンド
と、カードにパンチ穴を開けるように指示する「パンチ
穴開け」コマンドと、カードリーダ内のカードを前方の
挿入口の方向へ排出するよう指示する「カード前方排
出」コマンドと、カードリーダ内のカードを後方へ排出
するよう指示する「カード後方排出」コマンドと、カー
ド読取り指令を取り消すための「キャンセル」コマンド
およびカードリーダの状態を示すステータス情報の送信
を指示する「ステータス要求」コマンドの9種類があ
る。
As described above, communication between the card reader control device 288 and the unit controller 290 is performed by command transmission as described above, and the communication command from the card issue control device 790 to the card reader control device 288 is transmitted. As a `` magnetic write '' command instructing to record the magnetic data of the card, a `` magnetic read '' command instructing to read the magnetic data of the card, the security code and the information of the punch holes and to send the magnetic data A "security request" command to send the read security data, a "punch hole request" command to send the read punch hole data, and a re-read of the card data held in the card reader. Instruct “Reload” command and punch a hole in the card Command to eject the card in the card reader, a command to eject the card in the card reader toward the front insertion slot, and an instruction to eject the card in the card reader backward. There are nine types of commands: a "card rear ejection" command, a "cancel" command for canceling a card reading command, and a "status request" command for instructing transmission of status information indicating the status of the card reader.

このうち、「磁気読込み」と「リロード」コマンドは
発行機200では使用せず、「磁気書込み」コマンドは精
算機300や管理装置400では使用しない。なお、「磁気読
込み」コマンドは、カードリーダ800に対し磁気データ
のみでなくカードの全てのデータの読取りを指示し、そ
のうち磁気データのみの送信を要求するものである。セ
キュリティデータとパンチ穴データに関してはそれぞれ
別にデータ要求コマンドが用意されている。
Of these, the “magnetic read” and “reload” commands are not used by the issuing machine 200, and the “magnetic write” command is not used by the checkout machine 300 or the management device 400. The “magnetic read” command instructs the card reader 800 to read not only magnetic data but also all data on the card, and requests transmission of only magnetic data. Data request commands are separately prepared for security data and punch hole data.

第68図にはカードリーダ制御装置288による主たる制
御の手順全体が、また第69図〜第71図にはその詳細な手
順が、そして第72図および第73図には上記主制御とは別
個に割込みによって発生する割込み処理の制御手順が示
されている。
FIG. 68 shows the entire procedure of the main control by the card reader control device 288, FIGS. 69 to 71 show the detailed procedure, and FIGS. 72 and 73 show the main control separately. 2 shows a control procedure of an interrupt process generated by an interrupt.

カードリーダ制御装置288は、リセットがかかると、
つまりリセット入力端子がロウレベルに変化すると、第
68図に示すように先ず各種フラグやカウンタ、バッフ
ァ、ワークエリア、レジスタ等の入った内部メモリをク
リアする(ルーチンR1101)。それから、割込み発生時
のスタックポインタを設定しI/Oポートを初期化して入
出力端子の状態を設定した後、機器コード設定器MCSよ
り設定コードを読み込んで記憶してから、カード搬送用
のモータ807へ電源を供給するリレーRLY1をオンさせる
(ルーチンR1102〜R1105)。
When the card reader control device 288 is reset,
That is, when the reset input terminal changes to low level,
First, as shown in FIG. 68, the internal memory including various flags, counters, buffers, work areas, registers, etc. is cleared (routine R1101). Then, after setting the stack pointer when an interrupt occurs, initializing the I / O port and setting the state of the input / output terminals, read and store the setting code from the device code setting device MCS, and then use the motor for card transfer. The relay RLY1 for supplying power to the power supply 807 is turned on (routines R1102 to R1105).

次に、エラー原因を表示するモニタ表示器175を消灯
状態に設定し、電源投入状態を示すパワーオンランプLE
D21を点灯させた後、内蔵RAM内の“カード挿入禁止”フ
ラグに“1"を立てる(ルーチンR1106〜R1108)。それか
ら、受信バッファに対してカード発行制御装置790から
のコマンドの受信を許可した後、コマンドを受信したか
否か調べる(ルーチンR1109,R1110)。ここで、受信コ
マンドがないときは、ルーチンR1117へ移行して、“カ
ード挿入待ち”フラグが“1"に設定されているかチェッ
クし、“0"ならルーチンR1110へ戻ってコマンドの受信
を待ち、“カード挿入待ち”フラグが“1"のときは第69
図(A)に示されているカード読込み処理を実行してか
らルーチンR1110へ戻る。カード読込み処理は、「磁気
読込み」コマンドを受信したときの処理と同じである。
この実施例のフローチャートは、精算機300や管理装置4
00にもパチンコ機100や発行機200と同一のカードリーダ
800を使用した場合に共通に使用できるように設計され
ており、ルーチンR1117から「カード読込み処理」への
流れは、精算機や管理装置における制御を意識したもの
で、この発行機のフローにおいては、“カード挿入待
ち”フラグはずっと“0"にされており、意味をなさな
い。
Next, the monitor display 175 for displaying the cause of the error is set to the OFF state, and the power-on lamp LE indicating the power-on state is set.
After turning on D21, the "card insertion prohibition" flag in the internal RAM is set to "1" (routines R1106 to R1108). Then, after permitting the reception buffer to receive the command from the card issuing control device 790, it is checked whether or not the command has been received (routines R1109, R1110). If there is no received command, the flow shifts to the routine R1117 to check whether the "card insertion wait" flag is set to "1". If "0", the flow returns to the routine R1110 to wait for the reception of the command. 69th when the “card insertion wait” flag is “1”
After executing the card reading process shown in FIG. (A), the process returns to the routine R1110. The card reading process is the same as the process when the “magnetic reading” command is received.
The flowchart of this embodiment is based on the settlement machine 300 and the management device 4.
Same card reader as pachinko machine 100 and issuing machine 200
It is designed so that it can be used in common when 800 is used, and the flow from routine R1117 to "card reading process" is conscious of control in the checkout machine and management device. , The "waiting for card insertion" flag is always set to "0" and has no meaning.

精算機300においては、“開店コード”パケットの受
信に基づいてカード精算制御装置312に「カード受付
可」ファンクションが送られて、カード精算制御装置31
2から「磁気読込み」コマンドがカードリーダ制御装置3
88に送られてくると、ルーチンR1110で受信ありと判定
されてルーチンR1111へ進み、コマンド先頭の“ESC"が
検出されてルーチンR1118へジャンプしてR1121まで進み
コマンドの種類が判定されることで第69図(A)の磁気
読込み処理へ移行して、ルーチンR1202から更に第70図
(a)のカード読取処理を実行し、このフローの中で挿
入検出スイッチがオフの間はカード読込みは行われず
“カード未読込み”フラグがセットされてルーチンR120
3からR1204へ移行して“カード挿入待ち”フラグをセッ
トして第68図のルーチンR1122→R1117へ移行し、ここで
再び第69図(A)の処理へ移行する。つまり、カードが
挿入されるのをずっと待ち、挿入時点で第70図(b)の
カード読取処理を実行するようになる。
In the payment machine 300, a “card accepted” function is sent to the card payment control device 312 based on the reception of the “opening code” packet, and the card payment control device 31
The "magnetic read" command is sent from the card reader controller 3
When it is sent to 88, it is determined that there is a reception in the routine R1110, and proceeds to the routine R1111. The "ESC" at the head of the command is detected, the routine jumps to the routine R1118, the routine proceeds to R1121, and the type of the command is determined. The flow shifts to the magnetic reading process of FIG. 69 (A), and the card reading process of FIG. 70 (a) is further executed from the routine R1202. In this flow, the card reading is performed while the insertion detection switch is off. Not set and the "card unread" flag is set and routine R120
From R3, the flow shifts to R1204, the "card insertion wait" flag is set, and the flow shifts to the routine R1122 → R1117 in FIG. 68, where the flow again shifts to the processing in FIG. 69 (A). In other words, it waits for the card to be inserted forever, and at the time of the insertion, the card reading process of FIG. 70 (b) is executed.

一方、ルーチンR1110でコマンド受信有りと判定し、
ルーチンR111でその受信データがコマンドの先頭を示す
“ESC"でないと判ったときは、ルーチンR1112でそのコ
マンドが先に送られてきたコマンドのキャンセルコマン
ド“CAN"であるか否か判定する。キャンセルコマンド
“CAN"は他の通信コマンドと異なり先頭コードESCと終
端コードCSを有さず、コマンドコードそのもので送られ
てくるのでこのような判定が行なえる。ルーチンR112で
受信コマンドが“CAN"でなかったときはルーチンR1117
へ移行し、“CAN"であったときは次のルーチンR1113へ
進んで“カード挿入禁止”フラグを設定してからカード
保持ランプを消灯させ、送信バッファへ正常終了を示す
コードを設定してから第70図(h)の送信処理を実行し
てそのコードをカード発行制御装置790へ送信した後、
“カード挿入待ち”フラグをクリアしてルーチンR1110
へ戻る。これによって、その前にカード発行制御装置79
0から送信された「磁気読込み」コマンドによるカード
挿入待ち状態がキャンセルされる。
On the other hand, in the routine R1110, it is determined that the command is received,
If it is determined in the routine R111 that the received data is not “ESC” indicating the head of the command, it is determined in a routine R1112 whether the command is a cancel command “CAN” of the previously transmitted command. Unlike the other communication commands, the cancel command "CAN" does not have the start code ESC and the end code CS, and is transmitted by the command code itself, so that such determination can be made. If the received command is not "CAN" in the routine R112, the routine R1117
If it is "CAN", go to the next routine R1113, set the "Card insertion prohibition" flag, turn off the card holding lamp, set the code indicating normal end to the transmission buffer, and then After executing the transmission processing of FIG. 70 (h) and transmitting the code to the card issuing control device 790,
Routine R1110 after clearing the "card insertion wait" flag
Return to This allows the card issuance control device 79
The card insertion waiting state by the “magnetic read” command transmitted from 0 is canceled.

その後、再びコマンドを受信してルーチンR1111へ進
み、ここでコマンド先頭コード受信と判定すると、ルー
チンR1118へジャンプしてその後のコマンドの受信を禁
止してからカードリーダのモニタ表示器206を消灯さ
せ、カードリーダ制御装置288の受付状態を示すOKラン
プを消灯する(ルーチンR1119,R1120)。それから、ル
ーチンR1121で受信コマンドが前述した9つのコマンド
のいずれかに該当するかチェックし、該当しないとき
は、ルーチンR1124でメモリ内にエラー情報として“コ
マンド異常”を示すコードを書き込んでから第71図のエ
ラー処理ルーチンへ移行し、登録されたコマンドに該当
していればそれに対応した処理を実行してからOKランプ
を点灯させ、ルーチンR1109へ戻って上記手順を繰り返
す(ルーチンR1122,R1123)。
Thereafter, the command is received again and the process proceeds to the routine R1111.If it is determined that the command head code is received, the process jumps to the routine R1118 to prohibit the reception of the subsequent command, and then turns off the monitor display 206 of the card reader, The OK lamp indicating the reception state of the card reader control device 288 is turned off (routines R1119 and R1120). Then, in a routine R1121, it is checked whether or not the received command corresponds to any of the above-mentioned nine commands. If not, a code indicating "command error" is written as error information in the memory in a routine R1124, and then the 71st command is executed. The flow proceeds to the error processing routine shown in the figure. If the command corresponds to the registered command, the corresponding process is executed, the OK lamp is turned on, the process returns to the routine R1109, and the above procedure is repeated (routines R1122, R1123).

第69図(A)には「磁気読込み」コマンドを受信した
ときの処理手順が、また同図(B)には「リロード」コ
マンドを受信したときの処理手順が示されている。これ
らのコマンド処理はカード発行機200では無縁であるの
で、説明は省略する。
FIG. 69 (A) shows a processing procedure when a “magnetic read” command is received, and FIG. 69 (B) shows a processing procedure when a “reload” command is received. Since these command processes are irrelevant in the card issuing machine 200, the description is omitted.

第69図(C)には、「磁気書込み」コマンドを受信し
たときのカードリーダコントローラ28の処理手順を示
す。
FIG. 69 (C) shows a processing procedure of the card reader controller 28 when the “magnetic write” command is received.

このコマンドを受信すると、先ず「磁気書込み」コマ
ンドとともにアスキーコードの形で送られてきた磁気記
録データを内部処理に適したバイナリコードに変換して
内部メモリの磁気データバッファに記憶してから、当該
磁気データバッファの先頭に磁気データの先頭を示す先
頭コードSTX(第2図(E)参照)を入れ、磁気データ
バッファ内の上記磁気記録データの次(磁気データ数が
20個のときは21個目)にデータの終わりを示すETXコー
ドを入れる(ルーチンR1231〜R1233)。次に、書込みを
行なう磁気データ数(次のルーチンで計算されるLRGを
含め22個)を設定した後、セーブした磁気データバッフ
ァから順次磁気記録データを読み出すためのアドレスを
アドレスカウンタに設定する(ルーチンR1234,R123
5)。
When this command is received, first, the magnetic recording data sent in the form of ASCII code together with the “magnetic write” command is converted into a binary code suitable for internal processing and stored in the magnetic data buffer of the internal memory. A head code STX (see FIG. 2E) indicating the head of the magnetic data is inserted at the head of the magnetic data buffer, and the next magnetic recording data in the magnetic data buffer (the number of magnetic data is
The ETX code indicating the end of the data is entered in the 21st (in the case of 20) (routine R1231 to R1233). Next, after setting the number of magnetic data to be written (22 including the LRG calculated in the next routine), an address for sequentially reading magnetic recording data from the saved magnetic data buffer is set in the address counter ( Routine R1234, R123
Five).

しかる後、ルーチンR1236で所定のレジスタAにSTXの
コード(OBH)を予め設定しておいてから、ルーチンR12
37〜R1244でレジスタAのデータと次の磁気データとの
排他的論理和を演算したものを再びレジスタAに入れて
いく処理を、磁気データがなくなるまで繰り返すことで
最後にレジスタA内に全磁気データの誤り検査符号たる
LRCコードが残るようにしている。なお、ルーチンR1236
で最初にレジスタAにSTXのコード(OBH)を設定してい
るので、最初の排他的論理和の演算(ルーチンR1238)
では同一データ同士を演算することになり、その結果は
オール“0"であり、STXをLRCの計算に含めなかったのと
同じ結果が得られ、初期の目的を達成できる。また、ル
ーチンR1237〜R1248の処理ではLRCの計算と同時に各読
込みデータ内のオンビット(“1"のビット)の数が奇数
が偶数か判定し、偶数のときは各データ内のパリティビ
ットを“1"に設定してデータバッファにセーブすること
でパリティ(奇数パリティ)ビットの付加も合わせて行
なうようにしている(ルーチンR1239〜R1241)。上記LR
C、パリティビットの計算処理後は、磁気データバッフ
ァの最後(24番目)にSTXを示すコードを入れる(ルー
チンR1245)。つまり、磁気データとETXおよびLRCを2
つのSTXコードで挾む形にする(第2図(E)参照)。
Thereafter, the STX code (OBH) is set in a predetermined register A in advance in the routine R1236, and then the routine R12 is executed.
The process of exclusive-ORing the data of the register A with the next magnetic data in 37 to R1244 and then re-entering the result in the register A is repeated until the magnetic data is exhausted. Data error check code
LRC code is kept. Note that the routine R1236
First, the STX code (OBH) is set in the register A, so the first exclusive OR operation (routine R1238)
Then, the same data is calculated, the result is all “0”, and the same result as when STX is not included in the LRC calculation is obtained, so that the initial purpose can be achieved. In the processing of the routines R1237 to R1248, it is determined whether the number of ON bits (bits of “1”) in each read data is an odd number or an even number at the same time as the calculation of the LRC. By setting it to 1 "and saving it in the data buffer, the addition of a parity (odd parity) bit is also performed (routines R1239 to R1241). LR above
After the C and parity bit calculation processing, a code indicating STX is inserted at the end (24th) of the magnetic data buffer (routine R1245). In other words, magnetic data and ETX and LRC are 2
Between two STX codes (see Fig. 2 (E)).

次に、レジスタAに残ったデータ(LCR)のオンビッ
ト数が偶数か奇数か判定し、偶数のときにのみパリティ
ビットを“1"に設定してLRC自身にもパリティビットを
付加し、磁気データバッファ内の所定の位置(23文字
目)に入れる(ルーチンR1246〜R1248)。
Next, it is determined whether the number of ON bits of the data (LCR) remaining in the register A is even or odd. Only when the number is even, the parity bit is set to “1” and the parity bit is added to the LRC itself. It is stored in a predetermined position (23rd character) in the data buffer (routines R1246 to R1248).

その後、第70図(d)に示されている書込み処理(ル
ーチンR1301〜R1337)を実行して磁気データとライトク
ロックの出力を行ない、同図(e)のベリファイ処理
(ルーチンR1341〜R1361)を実行して磁気データが正し
く書き込まれたか否かチェックしてから、ベリファイエ
ラーが検出されたか否か判定し(ルーチンR1249)、エ
ラーがあったときはメモリ内にエラー情報として磁気書
込み異常を設定してから第71図のエラー処理ルーチンへ
移行する(ルーチンR1251)。また、ベリファイエラー
がなかったときは送信バッファへ“正常”応答コマンド
を設定してから第70図(h)の送信処理(ルーチンR142
1〜R1426)を実行して第68図のメインフローへ戻る。
Thereafter, the write processing (routines R1301 to R1337) shown in FIG. 70 (d) is executed to output the magnetic data and the write clock, and the verify processing (routines R1341 to R1361) of FIG. 70 (e) is performed. After executing and checking whether or not the magnetic data has been written correctly, it is determined whether or not a verify error has been detected (routine R1249). If an error has occurred, a magnetic write error is set as error information in the memory. Thereafter, the flow shifts to the error processing routine in FIG. 71 (routine R1251). If there is no verify error, a "normal" response command is set in the transmission buffer, and then the transmission processing (routine R142) shown in FIG.
1 to R1426), and returns to the main flow of FIG.

第69図(D)にはカード発行制御装置790からの「ス
テータス要求」コマンドを受信したときのカードリーダ
制御装置288の制御手順を示す。
FIG. 69 (D) shows a control procedure of the card reader control device 288 when receiving a “status request” command from the card issuance control device 790.

「ステータス要求」コマンドを受信すると、内部メモ
リ内に保持されている機器コードとステータス1の内容
を送信バッファへ移し、送信バッファ内の最終データの
次の番地へコマンドの終了を示すコードCRを設定してか
ら、送信データとしてSTXを設定して先ずそれを送信す
る(ルーチンR1261〜R1264)。しかる後、上記送信バッ
ファのアドレスをカウンタに設定してからそのアドレス
を用いて送信バッファより1バイトのデータを読み出し
てそれを送信した後、送信バッファのアドレスを更新す
る(ルーチンR1265〜R1268)。それから、CRコードを送
信したか否か判定し、ノオならルーチンR1266へ戻って
次のデータを送信し、CRコードの送信をもって「ステー
タス要求」コマンドに対する処理を終了する(ルーチン
R1269)。
When a "status request" command is received, the device code stored in the internal memory and the contents of status 1 are transferred to the transmission buffer, and a code CR indicating the end of the command is set to the address next to the last data in the transmission buffer. After that, STX is set as transmission data, and the STX is transmitted first (routines R1261 to R1264). Thereafter, the address of the transmission buffer is set in the counter, and after reading 1-byte data from the transmission buffer using the address and transmitting it, the address of the transmission buffer is updated (routines R1265 to R1268). Then, it is determined whether or not the CR code has been transmitted, and if no, the process returns to the routine R1266 to transmit the next data, and the transmission of the CR code ends the processing for the “status request” command (routine
R1269).

さらに、第69図(E)では、「パンチ穴要求」コマン
ドを受信したときの制御手順をまた、第69図(F)には
「セキュリティ要求」コマンドを受信したときの制御手
順をそれぞれ示す。これらのコマンドに対する応答処理
(R1271〜R1279およびR1281〜R1289)の手順は第69図
(D)の「ステータス要求」コマンドに対する応答処理
と全く同一である。異なるのは、最初に送信バッファへ
機器コードとステータス1の内容の代わりにカードから
読み取られて内部メモリ内に保持されているパンチ穴デ
ータまたはセキュリティデータを移しておく点のみであ
る。
Further, FIG. 69 (E) shows a control procedure when a “punch hole request” command is received, and FIG. 69 (F) shows a control procedure when a “security request” command is received. The procedure of the response process (R1271 to R1279 and R1281 to R1289) for these commands is exactly the same as the response process for the "status request" command in FIG. 69 (D). The only difference is that first, instead of the device code and the contents of status 1, punch hole data or security data read from the card and held in the internal memory is transferred to the transmission buffer.

さらに、第69図(G)にはカード発行制御装置790か
ら「パンチ穴開け」コマンドを受信したときのカードリ
ーダ制御装置288の制御手順を示す。
Further, FIG. 69 (G) shows a control procedure of the card reader control device 288 when receiving a “punch hole” command from the card issuance control device 790.

このコマンドを受信すると、コマンドとともに送られ
てきた穴開け箇所を示すデータ(この場合には発行穴)
に基づいて、初期化ルーチン等でRAM内に設定したパン
チ穴位置に基づいて基準位置からの距離をROMから読み
出して、バッファに記憶(ルーチンR1291)した後、第7
0図(g)の穴開け処理(R311〜R352)を実行する。そ
れから“パンチOK"フラグをチェックして穴開けが確実
に行われたか判定し(ルーチンR1292)、イエスなら送
信バッファへ正常応答コマンドを設定してから(ルーチ
ンR1293)、第70図(h)の送信処理を実行し、ノオな
らステータス1のパンチ不良ビットに“1"をセットし
て、エラー情報にパンチ異常を書き込んでから第71図の
エラー処理ルーチンへ移行する(ルーチンR1294,R129
5)。
When this command is received, data indicating the hole to be drilled sent with the command (in this case, the issued hole)
The distance from the reference position is read from the ROM based on the punch hole position set in the RAM in the initialization routine or the like based on the ROM, and stored in the buffer (routine R1291).
0 The punching process (R311 to R352) shown in FIG. Then, the "punch OK" flag is checked to determine whether or not the punching has been performed reliably (routine R1292). If the result is YES, a normal response command is set in the transmission buffer (routine R1293), and then the processing shown in FIG. The transmission process is executed, and if no, the punch failure bit of the status 1 is set to "1", punch error is written in the error information, and the process proceeds to the error processing routine of FIG. 71 (routines R1294 and R129).
Five).

第69図(H)には、「カード後方排出」コマンドを受
信したときのカードリーダ制御装置288における制御手
順を示す。
FIG. 69 (H) shows a control procedure in the card reader control device 288 when the “card rear ejection” command is received.

このコマンドを受信すると先ず1秒タイマを設定して
からモータ807を高速で正回転させる(ルーチンR1401,R
1402)。それから、ルーチンR1401で設定したタイマが
タイムオーバーを起こしたかチェックし、続いてカード
リーダ内の最も後方の位置検出センサSNS4がオンしたか
否か調べる(ルーチンR1403,R1404)。そして、位置検
出センサSNS4がオフする前にタイムオーバーを起こした
なら、ルーチンR1413へジャンプしてモータ807を停止さ
せてから全センサがオフしているか調べる(ルーチンR1
414)。ここで、カードリーダ内のセンサのうち一つで
もオンしていればステータス1のカードジャムビットに
“1"を設定し、エラー情報としてのカードジャムエラー
を書き込んでから第71図のエラー処理ルーチンへ移行す
る。なお、ルーチンR1414ですべてのセンサがオフして
いたときは排出終了とみなしてルーチンR1407へジャン
プする。
When this command is received, the 1-second timer is set first, and then the motor 807 is rotated forward at high speed (routine R1401, R
1402). Then, it checks whether or not the timer set in the routine R1401 has timed out, and then checks whether or not the rearmost position detection sensor SNS4 in the card reader has been turned on (routines R1403, R1404). If the time-out occurs before the position detection sensor SNS4 is turned off, the process jumps to the routine R1413 to stop the motor 807 and then checks whether all the sensors are off (routine R1).
414). Here, if at least one of the sensors in the card reader is turned on, "1" is set to the card jam bit of status 1 and a card jam error is written as error information. Move to. If all the sensors are turned off in the routine R1414, it is determined that the discharge is completed, and the process jumps to the routine R1407.

一方、ルーチンR1401で設定したタイマがタイムオー
バーを起こす前に位置検出センサSNS4がオフしたとき
は、0.4秒待ってからモータ807を停止させる(ルーチン
R1403)。カードリーダ後方のカード反転装置740が駆動
され、カードリーダ800から送り出されたカードがカー
ド反転装置740によって搬送され始めるのを待つためで
ある。
On the other hand, if the position detection sensor SNS4 is turned off before the timer set in the routine R1401 times out, the motor 807 is stopped after waiting 0.4 seconds (routine
R1403). This is to wait for the card reversing device 740 behind the card reader to be driven and the card sent from the card reader 800 to be conveyed by the card reversing device 740.

モータ807を停止した後は、ステータス1のカードジ
ャムビットをクリアし、第70図(e)のルーチンR1351
で設定した“ベリファイエラー”フラグをクリアしてか
らカード保持LEDを消灯する(ルーチンR1407〜R140
9)。しかる後、“カード挿入禁止”フラグをセットし
て次のカードの挿入を禁止してから、送信バッファへ
“正常”応答コマンドのコードを設定した後、第70図
(h)の送信処理を実行する(ルーチンR1410,R141
1)。
After the motor 807 is stopped, the status 1 card jam bit is cleared, and the routine R1351 in FIG.
After clearing the "verify error" flag set in step (1), the card holding LED is turned off (routines R1407 to R140
9). Thereafter, the "card insertion prohibition" flag is set to prohibit the insertion of the next card, and after setting the code of the "normal" response command in the transmission buffer, the transmission processing of FIG. 70 (h) is executed. Yes (routines R1410, R141
1).

第69図(I)には、カード発行制御装置790から「カ
ード前方排出」コマンドを受信した場合のカードリーダ
制御装置288の処理手順を示す。
FIG. 69 (I) shows a processing procedure of the card reader control device 288 when a “card forward ejection” command is received from the card issuance control device 790.

この処理はカード精算機300において必要なため用意
されたフローであり、カード発行機200においては実行
されないので説明は省略する。
This processing is a flow prepared because it is necessary in the card settlement machine 300, and is not executed in the card issuing machine 200, so that the description is omitted.

また、第70図(a),(b)には第69図(A)「磁気
読込み」コマンド受信フロー中におけるカード読取処理
とパリティ、LRC検査処理の具体的手順が、さらに、第7
0図(c)には第69図(B)の「リロード」コマンド受
信フロー中における磁気処理の具体的手順が示されてい
るが、これらの処理もカード精算機において実行され、
カード発行機では実行されないので説明は省略する。
FIGS. 70 (a) and (b) show specific procedures of the card reading process, the parity, and the LRC checking process in the “magnetic read” command receiving flow of FIG. 69 (A).
FIG. 0 (c) shows the specific procedure of the magnetic processing during the “reload” command reception flow of FIG. 69 (B), but these processings are also executed in the card settlement machine,
Since the processing is not executed by the card issuing machine, the description is omitted.

一方、第70図(d)には、第69図(C)のフロー中に
おける書込み処理の具体的手順を示す。
On the other hand, FIG. 70 (d) shows a specific procedure of the writing process in the flow of FIG. 69 (C).

この処理では、先ずカードの後端をカードリーダ800
の入口側の位置検出センサSNS1の位置まで移動させてか
ら、磁気データの数(ex.24個)をカウンタにセットす
る(ルーチンR1301,R1302)。このときカードの先頭は
磁気ヘッド821の位置まで達していない。それから、磁
気記録データの入った磁気データバッファの先頭アドレ
スをアドレスカウンタに設定した後、モータ807を高速
回転させ磁気ヘッド821に対するライト許可信号をオン
(ハイレベル)にする(ルーチンR1303〜R1305)。その
後、磁気データ記録部のトラックTRC2の先頭と終端に無
データの領域を設けるための消去データ“0"を設定し、
200m秒のタイマをセットしてから、“書込割込み”フラ
グを“1"にセットして806μ秒ごとの書込割込みを開始
させる(ルーチンR1306〜R1308)。書込割込みはモータ
807の回転を検出するエンコーダからの検出信号によっ
て806μ秒(カード搬送スピードを300mm/Sとした場合)
ごとに入ってくるようになっている。
In this process, first, the rear end of the card is
After moving to the position of the position detection sensor SNS1 on the entrance side of the above, the number of magnetic data (ex. 24) is set in the counter (routine R1301, R1302). At this time, the head of the card has not reached the position of the magnetic head 821. Then, after setting the head address of the magnetic data buffer containing the magnetic recording data in the address counter, the motor 807 is rotated at high speed to turn on (high level) the write permission signal for the magnetic head 821 (routines R1303 to R1305). Thereafter, erase data “0” is set to provide a non-data area at the beginning and end of the track TRC2 of the magnetic data recording unit,
After setting the 200 ms timer, the "write interrupt" flag is set to "1" to start a write interrupt every 806 μs (routines R1306 to R1308). Write interrupt for motor
806 microseconds based on the detection signal from the encoder that detects the rotation of 807 (when the card transport speed is 300 mm / S)
It comes in every time.

次に、ルーチンR1307でセットしたタイマをチェック
してから、ライトクロックデータを反転し“書込み待
ち”フラグを“1"にセットして、このフラグが第73図の
書込割込み処理で“0"にクリアされるのを待つ(ルーチ
ンR1309〜R1312)。そして、磁気ヘッド821の少し後方
位置に配置された位置検出センサSNS3がオンしたか否か
チェックして(ルーチンR1313)、オフならルーチンR13
09へ戻って、センサSNS3がオンするまで上記手順を繰り
返す。上記ループを繰り返すことにより、806μ秒に一
度ずつ書込割込みが実行される度に、ライトクロックデ
ータが反転される。これによって、磁気ヘッドによるカ
ードの磁気部への磁化方向が806μ秒ごとに反転され、
2倍の1.612m秒を1周期とするクロックデータがカード
のトラックTRC1に書き込まれる。なお、上記位置検出セ
ンサSNS3は、このセンサがカードの末端を検出したとき
に磁気ヘッドがトラックTRC2のSTXコード書込み開始位
置にくるように取付け位置が決定されており、センサSN
S3がオンすると、次のルーチンR1314へ進み磁気データ
の書込みを開始する。なお、このセンサSNS3がオンする
前にルーチンR1307でセットしたタイマがタイムオーバ
ーを起こすと、カードが詰まったと判定して、ルーチン
R1309からR1336へジャンプしステータス1のカードジャ
ムビットに“1"を立てて、エラー情報にカードジャムを
書き込んでから第71図のエラー処理ルーチンへ移行する
(ルーチンR1337)。
Next, after checking the timer set in the routine R1307, the write clock data is inverted and the "write wait" flag is set to "1", and this flag is set to "0" in the write interrupt processing of FIG. 73. (Routines R1309 to R1312). Then, it is checked whether or not the position detection sensor SNS3 arranged slightly behind the magnetic head 821 is turned on (routine R1313).
Returning to 09, the above procedure is repeated until the sensor SNS3 is turned on. By repeating the above loop, the write clock data is inverted every time the write interrupt is executed once every 806 μsec. Thereby, the magnetization direction of the magnetic part of the card by the magnetic head is reversed every 806 μsec,
Clock data having one cycle of 1.612 ms, which is twice as long, is written to the track TRC1 of the card. The position of the position detection sensor SNS3 is determined such that the magnetic head comes to the STX code writing start position of the track TRC2 when this sensor detects the end of the card, and the sensor SN
When S3 is turned on, the process proceeds to the next routine R1314 to start writing magnetic data. If the timer set in the routine R1307 times out before the sensor SNS3 is turned on, it is determined that the card is jammed, and the routine is terminated.
The process jumps from R1309 to R1336, sets the card jam bit of status 1 to "1", writes the card jam in the error information, and moves to the error processing routine of FIG. 71 (routine R1337).

タイムオーバーを起こす前に位置検出センサSNS3がオ
ンすると、ルーチンR1314へ進んで、先ず各データ(パ
リティを含む)のビット数(5ビット)をカウンタにセ
ットしてからルーチンR1303で設定したアドレスを用い
て磁気データバッファ内から1バイト(8ビット)の磁
気記録データを読み込んで並−直変換手段としてのシフ
トレジスタへ入れ、アドレスカウンタをインクリメント
する(ルーチンR1315,R1316)。それから、出力バッフ
ァ内のデータを2ビットさらに1ビット計3ビット左へ
シフトさせる(ルーチンR1317,R1318)。これによって
シフトレジスタの左端に5ビットの磁気データの最上位
ビットがくる。
If the position detection sensor SNS3 is turned on before the time is over, the process proceeds to the routine R1314, where the number of bits (5 bits) of each data (including parity) is first set in the counter, and then the address set in the routine R1303 is used. One-byte (8-bit) magnetic recording data is read from the magnetic data buffer and put into a shift register as a parallel-to-serial conversion means, and the address counter is incremented (routines R1315 and R1316). Then, the data in the output buffer is shifted to the left by two bits and one bit for a total of three bits (routines R1317 and R1318). This places the most significant bit of the 5-bit magnetic data at the left end of the shift register.

そこで次に、ルーチンR1319で上記シフトレジスタの
左端にきたビットがオンすなわち“1"か否か判定し、
“0"なら次のルーチンR1320でライトデータを反転し、
“1"なら反転しないでルーチンR1321へジャンプする。
これによって、NRZI方式の書込み信号を形成して、出力
させることができる。また、ライトデータの出力に続い
て、前記ルーチンR1310〜R1312で行なったのと同一の手
順でライトクロックの出力も実行する(ルーチンR1321
〜R1323)。このうち、ライトデータはカードの第2ト
ラックTRC2に、またライトクロックは第1トラックTRC1
にそれぞれ書き込む。
Then, next, in the routine R1319, it is determined whether or not the bit at the left end of the shift register is ON, that is, “1”.
If “0”, the write data is inverted in the next routine R1320,
If “1”, the process jumps to the routine R1321 without inversion.
Thus, a write signal of the NRZI method can be formed and output. Following the output of the write data, the output of the write clock is also executed in the same procedure as that performed in the routines R1310 to R1312 (routine R1321).
~ R1323). Of these, the write data is on the second track TRC2 of the card, and the write clock is on the first track TRC1.
Write to each.

上記1ビットのデータの出力後、ビットカウンタをデ
クリメントしてカウンタが「0」になったか判定し、
「0」でないときはルーチンR1318へ戻ってシフトレジ
スタ内の磁気データを1ビットだけ左へシフトしてその
出力を行なう処理をビットカウンタが「0」になるまで
繰り返すことで、5ビットのパラレル磁気データがシリ
アルなライトデータに変換され出力される(ルーチンR1
324,R1325)。そして、1バイトの磁気データの出力が
終了すると、ルーチンR1326へ進んで、磁気データ数を
一つ減算してからルーチンR1314へ戻って次の磁気デー
タの並−直変換と出力を繰返し行なって、全磁気データ
の出力が終了したならルーチンR1328へ移行する(ルー
チンR1327)。
After the output of the 1-bit data, the bit counter is decremented to determine whether the counter has become "0",
If it is not "0", the process returns to the routine R1318, and the process of shifting the magnetic data in the shift register to the left by one bit and outputting the same is repeated until the bit counter becomes "0". Data is converted to serial write data and output (routine R1
324, R1325). When the output of the 1-byte magnetic data is completed, the process proceeds to the routine R1326, in which the number of magnetic data is decremented by 1, and then returns to the routine R1314 to repeatedly perform the parallel-to-direct conversion and output of the next magnetic data. When the output of all magnetic data is completed, the flow shifts to routine R1328 (routine R1327).

ルーチンR1328では100m秒のタイマをセットしてか
ら、前記ルーチンR1309〜R1313と同一の手順に従って位
置検出センサSNS4がオンするまで、ライトクロックデー
タの出力を行なう(ルーチンR1329〜R1333)。つまり、
カードの第1トラックTRC1には、第2トラックTRC2へ磁
気データの最終データとしてのSTXコードを書き込んだ
後も、カード終端までクロックデータを書き続けるよう
になっている(第2図(E)参照)。なお、第2トラッ
ク側は磁気データの書込み終了後は磁気データは反転さ
れないので磁化の向きは一定にされ、データの消去状態
になる。
In the routine R1328, write clock data is output until the position detection sensor SNS4 is turned on in accordance with the same procedure as the routines R1309 to R1313 after setting the timer for 100 ms (routines R1329 to R1333). That is,
After writing the STX code as the last data of the magnetic data on the second track TRC2 on the first track TRC1 of the card, the clock data is continuously written until the end of the card (see FIG. 2E). ). Since the magnetic data is not inverted on the second track after the writing of the magnetic data is completed, the direction of the magnetization is fixed and the data is erased.

一方、ルーチンR1329でタイマオーバーを起こす前に
位置検出センサSNS4がオンになったならルーチンR1334
へ進み、磁気ヘッド821へのライト許可信号をオフ(ロ
ウレベル)にしてからモータ807の回転を停止させて終
了する(ルーチンR1335)。また、位置検出センサSNS4
がオンする前にルーチンR1328でセットしたタイマがタ
イムオーバーを起こすと、ルーチンR1336へジャンプ
し、ステータス1とエラー情報にカードジャムを設定し
てから第71図のエラー処理ルーチンへ移行する。
On the other hand, if the position detection sensor SNS4 is turned on before the timer over occurs in the routine R1329, the routine R1334
Then, the write permission signal to the magnetic head 821 is turned off (low level), and then the rotation of the motor 807 is stopped and the routine is terminated (routine R1335). Also, the position detection sensor SNS4
If the timer set in the routine R1328 causes a time-over before turning on, the routine jumps to the routine R1336, sets the card jam in the status 1 and the error information, and shifts to the error processing routine in FIG. 71.

第70図(e)には、同図(d)の書込み処理に続いて
行われるベリファイ処理の具体的な手順が示されてい
る。
FIG. 70 (e) shows a specific procedure of the verification process performed after the write process of FIG. 70 (d).

ここでは、先ずカードの後端がカードリーダ内の第1
位置検出センサSNS1によって検出されるまでモータ807
を逆転させてカードを後退させてから、1秒タイマをセ
ットする(ルーチンR1341,R1342)。それから、モータ8
07を高速正回転させ、磁気データ数(ここではLRCの次
のSTXコードはチェックしないので23個でもよい)を設
定し、アドレスカウンタに磁気データバッファの2番目
のアドレスをセットする(ルーチンR1343〜R1344)。最
初のSTXコードをベリファイの対象から外すためであ
る。
Here, first, the rear end of the card is the first in the card reader.
Motor 807 until detected by position detection sensor SNS1
Is reversed to retract the card, and then a one second timer is set (routine R1341, R1342). Then, motor 8
07 is rotated forward at high speed, the number of magnetic data is set (the STX code next to the LRC is not checked, so it may be 23), and the second address of the magnetic data buffer is set in the address counter (routine R1343 to R1343). R1344). This is to exclude the first STX code from the target of verification.

アドレス設定後、第70図(f)の1ビット読込処理を
実行してルーチンR1346で読み込まれワークエリアに格
納されたデータがSTXコードと一致したか判定し、一致
するまで待ち、一致した時点で次のルーチンR1347へ進
む。ルーチンR1347ではビットカウンタに5ビットを設
定してから第70図(f)の1ビット読込み処理で磁気デ
ータの1ビットを読み込んでワークエリアの最下位ビッ
トに入れてシフトさせてからビットカウンタをデクリメ
ントし、これをビットカウンタが「0」になるまで、つ
まり5ビット読み込むまで繰り返す(ルーチンR1347〜R
1349)。
After the address is set, the 1-bit read process shown in FIG. 70 (f) is executed to determine whether the data read in the routine R1346 and stored in the work area matches the STX code, and waits for a match. Proceed to the next routine R1347. In the routine R1347, 5 bits are set in the bit counter, 1 bit of the magnetic data is read in the 1-bit read processing shown in FIG. 70 (f), the bit is shifted into the least significant bit of the work area, and then the bit counter is decremented. This is repeated until the bit counter becomes “0”, that is, until 5 bits are read (routines R1347 to R1347
1349).

それから、ルーチンR1345でカウンタに設定したアド
レスを用いて磁気データバッファから読み出した磁気デ
ータとカードから読み出されてシフトレジスタに入って
いる磁気データとを比較する(ルーチンR1350)。ここ
で、2つのデータが一致しないときはルーチンR1351で
エラー情報にベリファイエラーを設定してから、またデ
ータが一致したときはルーチンR1350からR1352へジャン
プして磁気データバッファのアドレスカウンタをインク
リメントし、磁気データ数を「1」減算して、磁気デー
タ数が「0」になるまで上記ルーチンR1347〜R1353を繰
り返す(ルーチンR1354)。
Then, the magnetic data read from the magnetic data buffer is compared with the magnetic data read from the card and stored in the shift register using the address set in the counter in the routine R1345 (routine R1350). Here, when the two data do not match, a verify error is set in the error information in the routine R1351, and when the data matches, the routine jumps from the routine R1350 to R1352 to increment the address counter of the magnetic data buffer, The routines R1347 to R1353 are repeated until the number of magnetic data is reduced by "1" and the number of magnetic data becomes "0" (routine R1354).

そして、磁気データ数が「0」になったならば、ルー
チンR1355へ進んで1ビットの読取りラッチをクリアし
て読取ったデータを消去してから、ルーチンR1342でセ
ットした1秒タイマがタイムオーバーを起こしたか判定
し(ルーチンR1356)。また、次のルーチンR1357では位
置検出センサSNS4がオンになったか判定する。タイムオ
ーバーを起こす前に位置検出センサSNS4がオンになった
ときはルーチンR1358へ進み、ステータス1のカードジ
ャムビットをクリアしてからモータ807を停止させる
(ルーチンR1359)。一方、位置検出センサSNS4がオン
する前にタイムオーバーを起こすと、ステータス1の
“カードジャム”ビットに“1"をセットしてからエラー
情報にカードジャムを書き込んだ後、第71図のエラー処
理ルーチンへ移行する(ルーチンR1360,R1361)。
When the number of magnetic data becomes "0", the process proceeds to the routine R1355, where the 1-bit read latch is cleared to erase the read data, and then the 1-second timer set in the routine R1342 times out. Is determined (routine R1356). In the next routine R1357, it is determined whether the position detection sensor SNS4 has been turned on. If the position detection sensor SNS4 is turned on before the time is over, the routine proceeds to routine R1358, where the card jam bit of status 1 is cleared, and then the motor 807 is stopped (routine R1359). On the other hand, if a time-out occurs before the position detection sensor SNS4 is turned on, the “card jam” bit of status 1 is set to “1”, and then the card jam is written in the error information. The routine goes to (routines R1360, R1361).

第70図(f)には、第70図(e)のベリファイ処理フ
ローおよび第70図(c)の磁気処理フローに共通の1ビ
ット読込処理の具体的手順を示す。
FIG. 70 (f) shows a specific procedure of the 1-bit reading process common to the verification process flow of FIG. 70 (e) and the magnetic process flow of FIG. 70 (c).

この処理では、先ず1ビットの読取りラッチをクリア
してから(ルーチンR581)、カードリーダ内の各センサ
SNS1〜SNS4の出力に基づいてカードのサイズの検査を行
なう(ルーチンR582〜R588)。それから、ルーチンR581
でクリアした読取ラッチ内に磁気データがラッチされて
いるかチェックし、入っていればそのラッチデータの転
送先となるワークエリアを左に1ビットだけシフトさせ
て最下位ビット0に上記ラッチのデータを移して終了す
る(ルーチンR589〜R590)。
In this process, the 1-bit read latch is first cleared (routine R581), and then each sensor in the card reader is cleared.
The size of the card is checked based on the outputs of SNS1 to SNS4 (routines R582 to R588). Then the routine R581
Check if magnetic data is latched in the read latch cleared in step 2. If yes, shift the work area to which the latch data is to be transferred by one bit to the left, and place the data of the latch into the least significant bit 0. Transfer and end (routines R589 to R590).

なお、この実施例のカードリーダは第1と第3の位置
検出センサSNS2,SNS3間の距離l3が正規のカード長l0
りも長く、第2と第3の位置検出センサSNS1,SNS3間の
距離l4が正規のカード長l0よりも短くなるようにセンサ
間距離が設定されている(第30図(A)参照)。そこ
で、第70図(f)に示す1ビット読込み処理中において
第1〜第3の位置検出センサSNS1〜SNS3の出力をチェッ
クすることでカードサイズの不良を検出するようになっ
ている(ルーチンR584〜R587)。
Incidentally, the card reader embodiment is longer than the card length l 0 distance l 3 is normal between the first and third position detection sensor SNS2, SNS3, second and third position detection sensor SNS1, SNS3 between the distance between the sensors as the distance l 4 is shorter than the card length l 0 of the normal is set (see Figure 30 (a)). Therefore, during the one-bit reading process shown in FIG. 70 (f), the output of the first to third position detection sensors SNS1 to SNS3 is checked to detect a card size defect (routine R584). ~ R587).

第70図(g)には、第69図(G)の「パンチ穴開け」
コマンド受信フローにおける穴開け処理の具体的手順が
示されている。
FIG. 70 (g) shows the “punch hole” of FIG. 69 (G).
The specific procedure of the punching process in the command reception flow is shown.

この穴開け処理では、先ずカードをカードリーダ800
の一番奥まで移動(ルーチンR311)して“パンチOK"フ
ラグをクリア(ルーチンR312)した後、モータを逆転さ
せてタイマ(3秒)を起動させ(ルーチンR313)、“移
動量検出”フラグをセットしてから移動量カウンタをク
リアする(ルーチンR314〜R318)。そして“タイマ2動
作”フラグをセットしてタイマ割込みを許可し、タイマ
割込みにより移動量を検出してパンチ穴開け位置に達し
たところでモータの回転を停止させ(ルーチンR319〜R3
22)、モータが完全に止まるのを待つため150m秒間待機
(ルーチンR323)してからパンチ装置820を作動させる
(ルーチンR324〜R327)。上記ルーチンR323〜R327を2
回繰り返して穴開けを確実にしてから(ルーチンR32
8)、移動量カウンタをクリアしてモータを高速で逆転
させて開口したパンチ穴がパンチ穴検出センサSNSpに対
向する方向へカードを動かす。そして、パンチ穴検出セ
ンサがオンしているか判定し、正規の位置にパンチ穴が
開いているときは“パンチOK"フラグをセットしてか
ら、第1の位置検出センサSNS1がオンしてカードの後端
を検出したところでタイマ割込みを停止させるとともに
モータを停止させる(ルーチンR329〜R340)。
In this hole punching process, first insert the card into the card reader 800
After moving to the innermost position (routine R311) and clearing the "punch OK" flag (routine R312), the motor is reversed to start the timer (3 seconds) (routine R313), and the "moving amount detected" flag Is set and then the movement amount counter is cleared (routines R314 to R318). Then, the "timer 2 operation" flag is set to enable the timer interrupt, and the amount of movement is detected by the timer interrupt, and when the punching position is reached, the rotation of the motor is stopped (routines R319 to R3).
22) Wait for 150 msec to wait for the motor to stop completely (routine R323), and then operate the punching device 820 (routines R324 to R327). Routine R323-R327 above 2
Times to make sure the holes are drilled (Routine R32
8) Clear the moving amount counter and reverse the motor at high speed to move the card in the direction where the punched hole that opens is facing the punched hole detection sensor SNSp. Then, it is determined whether or not the punch hole detection sensor is turned on. If the punch hole is opened at a regular position, the “punch OK” flag is set, and then the first position detection sensor SNS1 is turned on to turn on the card. When the rear end is detected, the timer interrupt and the motor are stopped (routines R329 to R340).

上記ルーチンにおいてカード移動中にタイムオーバを
起こすとカードのジャム(紙づまり)が発生したと判定
し、それぞれエラー処理に入るようになっている(ルー
チンR315,R332)。
In the above routine, if a time-over occurs during the movement of the card, it is determined that a card jam (paper jam) has occurred, and error processing is started (routines R315, R332).

第70図(h)には、第69図(C)の「磁気書込み」コ
マンド受信時の処理フロー、第69図(G)の「パンチ穴
開け」コマンド受信時の処理フロー、第69図(H)の
「カード後方排出」コマンド受信時の処理フローおよび
第69図(I)の「カード前方排出」コマンド受信時の処
理フロー中における応答コマンドの送信処理の具体的手
順を示す。
FIG. 70 (h) shows the processing flow at the time of receiving the “magnetic write” command of FIG. 69 (C), the processing flow at the time of receiving the “punch hole” command of FIG. 69 (G), and FIG. A specific procedure of the processing flow at the time of receiving the "discharge card backward" command in H) and the processing of transmitting the response command during the processing flow of receiving the "discharge card forward" command of FIG. 69 (I) are shown.

送信処理では、先ず受信バッファに対し受信を禁止し
てから送信バッファの先頭アドレスをカウンタに設定す
る(ルーチンR1421,R1422)。次に、上記各フロー中に
おいて送信バッファ内にセーブされた送信データを1バ
イト読み込んで送信した後、送信バッファのアドレスカ
ウンタをインクリメントする(ルーチンR1423,R142
4)。しかる後、応答コマンドの終了を示すコードCRを
送信したか判定して(ルーチンR1425)、未だならルー
チンR1423へ戻って次の1バイトデータを順次送信し、
“CR"コードを送信したなら受信バッファに対して受信
許可を与えてから、元のルーチンに戻る(ルーチンR142
6)。
In the transmission process, first, the reception of the reception buffer is prohibited, and then the start address of the transmission buffer is set in the counter (routine R1421, R1422). Next, in each of the above flows, one byte of the transmission data saved in the transmission buffer is read and transmitted, and then the address counter of the transmission buffer is incremented (routines R1423, R142).
Four). Thereafter, it is determined whether the code CR indicating the end of the response command has been transmitted (routine R1425). If not, the process returns to the routine R1423 to sequentially transmit the next one-byte data.
If the “CR” code is transmitted, the reception permission is given to the reception buffer, and then the process returns to the original routine (routine R142).
6).

一方、第71図には、第68図や第69図(A)〜(I)お
よび第70図(a)〜(g)の各処理フロー中においてエ
ラーが発生した場合に実行されるエラー処理の具体的手
順が示されている。
On the other hand, FIG. 71 shows an error processing executed when an error occurs in each processing flow of FIGS. 68 and 69 (A) to (I) and FIGS. 70 (a) to (g). Are shown.

このエラー処理では、前記各フロー中で発生したエラ
ーの内容に応じて書き込まれたエラー情報に対応するモ
ニタ表示データすなわちエラー表示符号(表7参照)を
内部メモリから読み出してそれをモニタ表示器175に出
力してエラーの種類を表示させる(ルーチンR1131,R113
2)。それから、OKランプを消灯し、“書込み禁止”フ
ラグに“1"を立てて磁気データの書込み処理を禁止して
からタイマ2割込みを停止させて磁気読込み処理も禁止
する(ルーチンR1133〜R1135)。しかる後、カードリー
ダ800内のモータ807を停止させてからシャッタソレノイ
ド809をオフしてシャッタを閉じてカードの進入を禁止
した後、エラーの種類に対応した応答コード(表7右欄
参照)を送信(ルーチンR1136〜R1138)して、第68図の
メインフロー中のルーチンR1109へ戻る(符号V2参
照)。
In this error processing, monitor display data corresponding to the error information written in accordance with the content of the error that has occurred in each flow, that is, an error display code (see Table 7) is read from the internal memory and is read out by the monitor display 175. To display the type of error (Routine R1131, R113
2). Then, the OK lamp is turned off, the "write inhibit" flag is set to "1" to inhibit the magnetic data write process, and then the timer 2 interrupt is stopped to inhibit the magnetic read process (routines R1133 to R1135). Thereafter, the motor 807 in the card reader 800 is stopped, the shutter solenoid 809 is turned off, the shutter is closed, and entry of the card is prohibited. Then, a response code (see the right column in Table 7) corresponding to the type of error is output. After transmission (routines R1136 to R1138), the process returns to the routine R1109 in the main flow of FIG. 68 (see reference numeral V2).

次に、第72図(A),(B)には、読出し割込みが、
また第73図には書込み割込みが入った場合の処理の手順
が示されている。
Next, FIGS. 72 (A) and (B) show a read interrupt,
FIG. 73 shows the procedure of processing when a write interrupt occurs.

既に述べたように、この実施例のカードリーダ800で
は、モータ807の回転速度を検出するセンサ832からの検
出信号が割込み信号としてカードリーダ制御装置288に
入力されており、第70図(a)のカード読取処理フロー
中におけるルーチンR524でコントローラ内部の“タイマ
2動作”フラグが“1"にセットされたときにこの信号が
入ってくると、第71図(A),(B)のタイマ2割込み
処理を実行し、第70図(d)の書込み処理フロー中にお
けるルーチンR1308で“書込割込み開始”フラグがセッ
トされると、第72図の書込割込み処理を実行するように
なっている。
As described above, in the card reader 800 of this embodiment, the detection signal from the sensor 832 for detecting the rotation speed of the motor 807 is input to the card reader control device 288 as an interrupt signal, and FIG. When this signal comes in when the "timer 2 operation" flag in the controller is set to "1" in the routine R524 in the card reading process flow of FIG. 71, the timer 2 shown in FIGS. When the "write interrupt start" flag is set in the routine R1308 during the write process flow of FIG. 70 (d) by executing the interrupt process, the write interrupt process of FIG. 72 is executed. .

なお、速度センサ832はモータ807の回転軸に取り付け
られたロータリエンコーダ817に対向し設けられてお
り、回転速度にかかわらずカードが0.1mm移動するごと
に割込み信号が入ってくる。
The speed sensor 832 is provided to face the rotary encoder 817 attached to the rotating shaft of the motor 807, and receives an interrupt signal every time the card moves 0.1 mm regardless of the rotating speed.

タイマ2割込み処理では先ずルーチンR701で“セキュ
リティ読取”フラグと“パンチ穴読取”フラグを見てい
ずれも“0"のときは移動量検出モードとなり、ルーチン
R710へ移行し、移動量カウンタをインクリメントして割
込み処理を終了する。なお、移動検出モードとなるの
は、第70図(c)の磁気処理中(ルーチンR572)および
第70図(g)の穴開け処理中(ルーチンR317)において
基準となる位置からのカードの移動量を知りたい場合で
あり、“セキュリティ読取”フラグおよび“パンチ穴読
取”フラグをクリアすることにより移動量検出モードが
設定される。
In the timer 2 interrupt processing, first, the routine reads the "security read" flag and the "punch hole read" flag in the routine R701, and when both are "0", enters the movement amount detection mode.
The flow shifts to R710, where the movement counter is incremented, and the interrupt processing ends. Note that the movement detection mode is set during movement of the card from the reference position during the magnetic processing (routine R572) in FIG. 70 (c) and the punching processing (routine R317) in FIG. 70 (g). This is a case where the user wants to know the amount, and clears the “security reading” flag and the “punch hole reading” flag to set the movement amount detection mode.

また、タイマ2割込み処理に入って“移動量検出”フ
ラグが“0"のときはルーチンR702へ進み移動量カウンタ
をインクリメントしてから、、ルーチンR703で“セキュ
リティ読取中”フラグがセットされているかチェック
し、セットされていればルーチンR704へ進み移動量が4.
8mm以上になったか判定する(“セキュリティ読取中”
フラグが“0"のときは第72図(B)のパンチ穴読取りル
ーチンへ移行する)。“セキュリティ読取中”フラグが
セットされるのは第70図(a)のカード読取り処理中の
ルーチンR523でパンチ穴センサSNSpがオンしたときであ
り、このときセキュリティコード読取センサ810aはカー
ドのセキュリティ領域(TF)の始端に位置する。しか
し、最初のセキュリティマークはセキュリティ領域の始
端から4.8mm以上離れた位置に設けられる。そこで、ル
ーチンR704で移動量が4.8mm以上になったと判定してい
るのである。4.8mm以下の場合は割込み処理を終了し、
次のタイマ2割込みで再び移動量カウンタをインクリメ
ントする。そして、移動量が4.8mmに達すると、ルーチ
ンR711へ移行し、そこで先ず移動量とルーチンR519でRA
M内に設定された読取範囲とを比較し、読取範囲内であ
ればセキュリティのコード読取センサがオンになってい
るか判定し、オンならばセキュリティコードの幅を計数
するカウンタをインクリメントして割込み処理を終了す
る(ルーチンR712,R713)。そして、コード読取センサ
がオフになった時点でカウンタの値を調べ(ルーチンR7
14)セキュリティコードの幅が“0"ならコードなしと判
定し、割込み処理を終了する。一方、セキュリティの幅
が“0"でなければカウンタの幅をバッファに移してから
カウンタをクリアし、セキュリティ幅が0.5mm以上ある
か否か判定する(ルーチンR715,R716)。ここで、幅が
0.5mm以下なら異常とみなし、0.5mm以上ならシフトレジ
スタとして動作されるセキュリティバッファの最上位
(または最下位)ビットに“1"を立てる。
If the "movement amount detection" flag is "0" after entering the timer 2 interrupt processing, the process proceeds to the routine R702, and the movement amount counter is incremented. Then, is the "security reading" flag set in the routine R703? Check, if set, go to routine R704 and move 4.
Judge whether it is 8 mm or more (“Reading security”
When the flag is "0", the process proceeds to the punch hole reading routine of FIG. 72 (B)). The "security reading" flag is set when the punch hole sensor SNSp is turned on in the routine R523 during the card reading process of FIG. 70 (a). At this time, the security code reading sensor 810a sets the security area of the card. Located at the beginning of (TF). However, the first security mark is provided at a position at least 4.8 mm away from the beginning of the security area. Therefore, it is determined in the routine R704 that the movement amount has become 4.8 mm or more. If it is 4.8 mm or less, end the interrupt processing,
The movement amount counter is incremented again by the next timer 2 interrupt. Then, when the moving amount reaches 4.8 mm, the process proceeds to the routine R711, where the moving amount and the RA are first determined in the routine R519.
Comparing with the reading range set in M, if it is within the reading range, determine whether the security code reading sensor is on, and if on, increment the counter that counts the width of the security code and perform interrupt processing Ends (routines R712, R713). When the code reading sensor is turned off, the value of the counter is checked (routine R7).
14) If the security code width is "0", it is determined that there is no code, and the interrupt processing ends. On the other hand, if the security width is not "0", the counter width is transferred to the buffer, the counter is cleared, and it is determined whether the security width is 0.5 mm or more (routines R715, R716). Where the width is
If it is 0.5 mm or less, it is regarded as abnormal. If it is 0.5 mm or more, "1" is set to the most significant (or least significant) bit of the security buffer operated as a shift register.

それから、次のタイマ割込みに入ってルーチンR711で
読取範囲から外れたときは1番目のコードの読取り終了
としてルーチンR721へ移行しセキュリティ読取数(カウ
ンタ)を減算する。そして、読み取ったコードを記憶す
るセキュリティバッファをルーチンR723で1ビットだけ
シフトしてから読取範囲をセキュリティコードのピッチ
(3.5mm)分だけ加算して終了する。セキュリティを1
ビット検出するごとにセキュリティバッファをシフトす
ることにより、シリアルに読み取られたセキュリティコ
ードがパラレルデータに変換されていく。上記ルーチン
を繰り返すことにより、セキュリティの読取数が「0」
になると、ルーチンR722からR714へ進み、読み取ったセ
キュリティ幅が0.5mmのときにはセキュリティバッファ
の最上位ビットに“1"を書き込む。そして、セキュリテ
ィ読取り後、磁気データ読取処理に移って第70図(c)
のルーチンR553で“パンチ穴読取”フラグが“1"にセッ
トされ、“セキュリティ読取”フラグが“0"にクリアさ
れてからこの第72図(A)のタイマ2割込みが開始され
ると、ルーチンR703から第72図(B)のルーチンR731へ
移行し、パンチ穴検出センサがオンしているかチェック
し、オンならばルーチンR732でパンチ穴幅を計数するカ
ウンタをインクリメントして割込み処理を終了する。そ
して、次の割込みでパンチ穴検出センサがオフになった
ならばルーチンR733へ移行してパンチ穴幅をチェックす
る。ここで、検出されたパンチ穴の幅が0.8mm以上のと
きは正規のパンチ穴とみなし、ルーチンR734でパンチ穴
の有無を記憶するバッファ(シフトレジスタとして動作
される)の最上位(または最下位)ビットに“1"を書き
込んでから、またパンチ穴の幅が0.8mm以下のときはル
ーチンR735でパンチ穴幅カウンタをクリアしてからルー
チンR736へ進む。
Then, when the next timer interrupt is entered and the reading is out of the reading range in the routine R711, the process proceeds to the routine R721 as the end of reading the first code, and the security reading number (counter) is decremented. Then, the security buffer storing the read code is shifted by one bit in the routine R723, and then the read range is added by the security code pitch (3.5 mm), and the processing is terminated. Security 1
By shifting the security buffer every time a bit is detected, the serially read security code is converted into parallel data. By repeating the above routine, the number of security readings becomes “0”
Then, the process proceeds from the routine R722 to R714, and when the read security width is 0.5 mm, "1" is written to the most significant bit of the security buffer. Then, after the security reading, the process proceeds to the magnetic data reading process and FIG. 70 (c)
When the "punch hole reading" flag is set to "1" in the routine R553 and the "security reading" flag is cleared to "0", the timer 2 interrupt shown in FIG. The flow shifts from R703 to the routine R731 in FIG. 72 (B) to check whether the punch hole detection sensor is ON, and if ON, the counter for counting the punch hole width is incremented in the routine R732, and the interrupt processing ends. Then, if the punch hole detection sensor is turned off at the next interruption, the process proceeds to routine R733 to check the punch hole width. Here, when the detected width of the punched hole is 0.8 mm or more, it is regarded as a regular punched hole, and the uppermost (or lowermost) of the buffer (operated as a shift register) storing the presence or absence of the punched hole in routine R734. After writing "1" to the bit, and when the width of the punched hole is 0.8 mm or less, the punched hole width counter is cleared in the routine R735 and then the routine proceeds to the routine R736.

ここでは、カード移動量が読取範囲内に入っているか
判定し、入っているときは上記手順を繰り返し、読取範
囲から外れるとルーチンR741以下へ移行する。
Here, it is determined whether or not the card moving amount is within the reading range. If the moving amount is within the reading range, the above procedure is repeated.

ルーチンR741〜R745では先ずパンチ穴読取数を減算し
て読み取られたビットの入ったバッファを1ビットシフ
トさせ、パンチ穴幅カウンタをクリアしてから読取範囲
を設定し直して終了する。そして、読取数が「0」にな
ったときに“タイマ2動作”フラグをクリアして以後の
タイマ2割込み動作を停止させる(ルーチンR742,R74
6)。
In the routines R741 to R745, the buffer containing the read bits is shifted by one bit by subtracting the number of punched holes read, the punched hole width counter is cleared, the read range is set again, and the processing ends. Then, when the number of readings becomes "0", the "timer 2 operation" flag is cleared and the subsequent timer 2 interrupt operation is stopped (routines R742 and R74).
6).

一方、第70図(d)の書込み処理フロー中においてル
ーチンR1308で“書込割込み開始”フラグがセットされ
た後、カードリーダのモータ807の回転検出センサ832か
ら806μSごとに検出信号が入ってくると、第73図の書
込割込み処理が開始され、先ず第70図(d)のフロー中
のルーチンR1310もしくはルーチンR1330で設定したライ
トクロックデータまたはルーチンR1320,R1321で設定し
たライトデータおよびライトクロックデータを出力する
(ルーチンR751)。しかる後、ルーチンR1311,R1322ま
たはR1331でセットした“書込み待ち”フラグをクリア
して書込割込み処理を終了する(ルーチンR752)。
On the other hand, after the “write interrupt start” flag is set in the routine R1308 during the write processing flow of FIG. 70 (d), a detection signal is input every 806 μS from the rotation detection sensor 832 of the motor 807 of the card reader. Then, the write interrupt processing of FIG. 73 is started. First, the write clock data set in the routine R1310 or R1330 or the write data and the write clock data set in the routines R1320 and R1321 in the flow of FIG. 70 (d). Is output (routine R751). Thereafter, the "write waiting" flag set in the routine R1311, R1322 or R1331 is cleared, and the write interrupt process is terminated (routine R752).

なお、上記実施例では、記憶媒体としてのカードには
カード番号のみ記録し、購入金額や玉数はカード番号に
対応して管理装置の記憶装置に記憶させておくようにし
た遊技システムにおけるカード発行機に適用したものに
ついて説明したが、この発明はそれに限定されず、購入
金額または玉数を記録したカードを発行する発行機にも
適用することができる。また、カード発行機は必ずしも
伝送媒体を介して管理装置に接続されている必要はなく
自己の判断の下でカードを発行する発行機であってもよ
い。
In the above embodiment, only a card number is recorded on a card as a storage medium, and the purchase amount and the number of balls are stored in a storage device of a management device in correspondence with the card number. Although the present invention has been described as applied to a machine, the present invention is not limited to this, and can also be applied to an issuing machine that issues a card in which the purchase amount or the number of balls is recorded. Further, the card issuing machine does not necessarily need to be connected to the management device via a transmission medium, and may be an issuing machine that issues a card under its own judgment.

さらに、上記実施例では、パチンコ機とカード発行機
と管理装置を伝送媒体を介して接続し、データ送信を行
えるようにシステムを構成することで、カード発行機で
はカードの磁気記録部に金額等の有価データを記録しな
いでカード番号を記録したカードを発行するようにして
いるが、この発明はそれに限定されず、カードの磁気記
録部に有価データを記録し、管理装置と切り離された状
態で単独でカードを発行するようなカード発行機にも適
用することができる。
Further, in the above embodiment, the pachinko machine, the card issuing machine, and the management device are connected via a transmission medium, and the system is configured so that data can be transmitted. However, the present invention is not limited to this. The valuable data is recorded on the magnetic recording unit of the card, and the card is separated from the management device. The present invention can also be applied to a card issuing machine that issues a card alone.

また、上記実施例では同一面に磁気記録部と印字表示
部を有するいうカードの仕様の制約から、カードリーダ
800内において磁気ヘッド821を穿孔装置802と同一の側
(搬送路の上方)に設けているが、カードの表面に印字
表示部を有し、裏面に磁気記録部を有するという仕様の
カードを使用する場合には、穿孔装置802を搬送路の上
方に位置し、磁気ヘッド821は搬送路の下方に上向き状
態で配置するか、あるいは印字装置750を上下逆向きに
配設すればよい(穿孔装置802はパンチ屑の処理の関係
上逆さにすることはできない)。このようにすることに
よって、実施例の反転装置740をそのまま使用すること
ができる。
In the above embodiment, the card reader has a magnetic recording section and a print display section on the same surface, and the card reader is limited.
In 800, a magnetic head 821 is provided on the same side as the punching device 802 (above the transport path), but a card with a print display section on the front side of the card and a magnetic recording section on the back side is used. In such a case, the punching device 802 may be located above the transport path, and the magnetic head 821 may be disposed below the transport path in an upward state, or the printing device 750 may be disposed upside down (the punching device). 802 cannot be turned upside down due to the processing of punch waste.) By doing so, the reversing device 740 of the embodiment can be used as it is.

さらに、上記実施例では、遊技装置の一例として封入
球循環方式のパチンコ遊技機を備えた遊技設備に適用し
た場合について説明したが、この発明はそれに限定され
るものではなく、例えば記憶媒体発行装置により発行さ
れた記憶媒体の有する有価データを各遊技装置で実球に
変換してそれを遊技装置全面の供給皿から1個宛遊技装
置内部に供給して遊技を行うように構成された遊技装置
を備えた遊技設備その他記憶媒体により遊技可能となる
ものであれば、どのような構成の遊技装置(パチンコ遊
技機以外の遊技装置を含む)を備えた遊技設備(記憶媒
体発行装置を含む)においても適用することができる。
Furthermore, in the above-described embodiment, the case where the present invention is applied to a game facility having a pachinko game machine of a sealed ball circulation type as an example of a game apparatus has been described. However, the present invention is not limited to this. Game device which converts valuable data of the storage medium issued by the game device into a real ball in each game device and supplies it to the inside of the game device from the supply plate on the entire surface of the game device to play one game. In a gaming facility (including a storage medium issuing device) equipped with a gaming machine (including a gaming machine other than a pachinko gaming machine) of any configuration as long as the game can be played with a gaming facility or other storage medium provided with Can also be applied.

[発明の効果] 以上説明したようにこの発明は、有効な金額を特定す
るための所要情報が記憶されるとともに所要の遊技を実
行可能な遊技装置に使用される有効記憶媒体を発行する
遊技用記憶媒体発行装置であって、上記所要情報のうち
少なくとも一部が記憶されていない発行前記憶媒体を収
納する記憶媒体収納手段と、上記記憶媒体収納手段内に
収納されている上記発行前記憶媒体を所定の処理を行う
ため1枚ずつ取り出し可能な記憶媒体取出手段と、上記
記憶媒体取出手段により取り出された発行前記憶媒体の
情報記憶部に所要の情報を記憶可能な情報書込手段と、
有効記憶媒体の発行要求を与える購入選択手段と、上記
購入選択手段の操作に基づいて上記有効記憶媒体を排出
するための記憶媒体排出手段と、上記発行される有効記
憶媒体数を確認可能な記憶媒体数計数表示手段とを備
え、上記購入選択手段の操作に基づいて上記発行前記憶
媒体の情報記憶部への上記情報書込手段によって所定の
情報の書き込み処理を行って有効記憶媒体に加工して上
記記憶媒体排出手段により排出するとともに、上記記憶
媒体数計数表示手段の計数値を更新するように構成した
ので、発行前の記憶媒体の情報記憶部に情報書込手段に
よって所要の情報を記憶して、遊技装置で使用可能な有
効記憶媒体に加工してから記憶媒体発行装置から排出さ
せるようにしているため、記憶媒体発行装置によって正
規に発行された有効記憶媒体とそれ以外の記憶媒体とを
明確に区別することができるようになり、これによって
例えば盗難等の被害にあった不正な記憶媒体が遊技装置
に挿入された場合にその記憶媒体を無効として扱うこと
ができ、加工された有効な記憶媒体のみ遊技装置等にお
いて使用可能とすることができるとともに、記憶媒体発
行装置が発行する記憶媒体数を計数として表示すること
ができるため、遊技店において発行される記憶媒体数を
正確に把握することが可能となるという効果がある。
[Effects of the Invention] As described above, the present invention is a gaming machine for issuing a valid storage medium used for a game device that stores required information for specifying a valid amount of money and that can execute a required game. A storage medium issuance device, wherein a storage medium storage means for storing a pre-issue storage medium in which at least a part of the required information is not stored, and the pre-issue storage medium stored in the storage medium storage means A storage medium take-out means capable of taking out one by one in order to perform predetermined processing; an information writing means capable of storing required information in an information storage section of a storage medium before issuance taken out by the storage medium take-out means;
Purchase selecting means for issuing a valid storage medium issuance request, storage medium discharging means for discharging the valid storage medium based on the operation of the purchase selecting means, and storage capable of confirming the number of valid storage media to be issued. Means for counting the number of mediums, and performing a process of writing predetermined information to the information storage section of the storage medium before issuance based on the operation of the purchase selection means by the information writing means to process the information into an effective storage medium. In this case, the information is discharged by the storage medium discharging means and the count value of the storage medium number counting and displaying means is updated, so that necessary information is stored by the information writing means in the information storage section of the storage medium before issuance. Then, after processing into an effective storage medium that can be used in the gaming device, the storage medium is issued from the storage medium issuing device. The storage medium and the other storage medium can be clearly distinguished, so that, for example, when an unauthorized storage medium that has been damaged by theft or the like is inserted into a gaming device, the storage medium is invalidated. Only valid processed storage media can be used in gaming machines and the like, and the number of storage media issued by the storage media issuing device can be displayed as a count. There is an effect that the number of storage media to be performed can be accurately grasped.

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

第1図は本発明が適用されたパチンコ遊技システム全体
の構成を示すシステム構成図、 第2図(A),(B)は本発明に係るシステムに使用さ
れるカードの一例を示す正面図および内部構成図、 第2図(C)はカード内の真偽識別領域の構成例を示す
説明図、 第2図(D)はカードの断面構造の一例を示す断面図、 第2図(E)はカード内の磁気記録部の構成例を示す説
明図、 第3図は遊技システムを構成するパチンコ機全体の構成
図を示す斜視図、 第4図(A),(B)はパチンコ機前面の操作パネル部
の構成例を示す断面側面図、 第5図は同じく操作パネル部の分解斜視図、 第6図は同じく操作パネル部内部の構成を示す斜視図、 第7図はパチンコ機の裏面の封入球循環装置の構成例を
示す斜視図、 第8図はその封入球循環装置をパチンコ機に取り付けた
状態を示す斜視図、 第9図は打球発射レール基部の詳細を示す斜視図、 第10図はパチンコ機の前面パネルを開いた状態を示す斜
視図、 第11図は遊技盤を保持するフレームとこれに結合される
発射レールを備えたフレームボードの構成例を示す斜視
図、 第12図はパチンコ機の前面枠の裏面構成を示す斜視図、 第13図はパチンコ機の裏面の構成例を示す背面斜視図、 第14図はパチンコ機制御ユニットの構成例を示す斜視
図、 第15図は同じくその制御ユニットの内部構成を示す斜視
図、 第16図は制御ユニットの前面パネルの構成を示す斜視
図、 第17図はパチンコ機と制御ユニットの取付位置関係を示
す斜視図、 第18図はパチンコ機が設置される島設備の骨組みを示す
斜視図、 第19図は島設備にパチンコ機と制御ユニットを設置した
状態を示す斜視図、 第20図は島設備の背面を示す斜視図、 第21図はパチンコ機全体の制御体系を示すブロック図、 第22図はパチンコ機制御装置の回路構成例を示すブロッ
ク図、 第23図はパチンコ機制御ユニットの回路構成例を示すブ
ロック図、 第24図はユニットメモリのエリア構成を示すメモリマッ
プ、 第25図はパチンコ機のカードリーダの構成例を示す斜視
図、 第26図はそのカードリーダの分解斜視図、 第27図はカードリーダのカード挿入部の詳細を示す分解
斜視図、 第28図(A),(B)は同じくカードリーダのカード挿
入部の詳細を示す断面側面図、 第29図(A),(B)はカードリーダ入口のシャッタ部
分の詳細を示す断面側面図、 第30図(A)はカードリーダ内に設けられた各種センサ
の取付け位置関係を示す平面説明図、 第30図(B)はカード挿入時のセンサの検出タイミング
チャート、 第31図はカードリーダ制御装置の回路構成例を示すブロ
ック図、 第32図はカードリーダのインタフェース回路を示すブロ
ック図、 第33図はカードリーダのデータ読込み、書込みタイミン
グを示すタイミングチャート、 第34図は本発明に係る遊技システムに使用されるカード
発行機の構成例を示す斜視図、 第35図は発行機の前面パネルを開いた状態を示す斜視
図、 第36図は発行機に設けられたカード発行装置の斜視図、 第37図は同じくカード発行装置の概略構成図、 第38図はカード発行装置を構成するカード取出装置の構
成を示す斜視図、 第39図は同じくカード発行装置を構成するカード導出装
置の構成を示す斜視図、 第40図はカード発行機の制御装置の構成例を示すブロッ
ク図、 第41図はカード発行機のユニット制御装置の構成例を示
すブロック図、 第42図(A)は精算機の構成例を示す斜視図、 第42図(B)は精算機の上面パネルおよび前面パネルを
開いた状態を示す斜視図、 第42図(C)は精算機を構成するカード精算装置の構成
例を示す斜視図、 第43図は精算機の制御装置の構成例を示すブロック図、 第44図は管理装置全体の構成例を示す斜視図、 第45図は管理装置自身のシステム構成例を示すブロック
図、 第46図は管理装置のコンソールの構成例を示すもので、
(A)は平面図、(B)は背面図、 第47図は本考案の遊技システム内でのカードの状態遷移
を示す説明図、 第48図は本考案の遊技システムにおける伝送系の構成例
を示すブロック図、 第49図はネットワーク上でのデータ転送制御を行うNAU
(ネットワークアダプタユニット)の構成例を示すブロ
ック図、 第50図〜第55図は低層ネットワーク上で送受信されるパ
ケットの構成例を示すもので、 第50図は“回線テスト”パケットの構成図、 第51図は“初期値設定”パケットの構成図、 第52図は管理装置からカード発行機に指示を与えるため
のパケットの構成図、 第53図(A),(B),(C)は“カード購入”パケッ
トとその応答“ACK"および“NAK"パケットの構成図、 第54図は“定時データ送信”パケットの構成図、 第55図(A),(B)は“ユニット復旧データ”パケッ
トとその応答“ACK"パケットの構成図、 第56図、第57図、第58図および第59図は、NAUにおける
パケット送受信制御の手順を示すフローチャート、 第60図はカード発行機のユニットコントローラにおける
メイン処理の制御手順を示すフローチャート、 第61図(A)は第60図のフロー中におけるパケット受信
処理の具体的手順の一例を示すフローチャート、 第61図(B)は第60図のフロー中におけるカード番号予
約処理の具体的手順を示すフローチャート、 第61図(C)は第60図のフロー中におけるカード購入処
理の具体的手順を示すフローチャート、 第62図(A)は第61図(A)のフローにおける“初期値
設定”パケット受信時の処理手順を示すフローチャー
ト、 第62図(B)は第61図(A)のフローにおける“ユニッ
ト復旧データ”パケット受信時の処理手順を示すフロー
チャート、 第62図(C)は第61図(A)のフローにおける“強制終
了解除”パケット受信時の処理手順を示すフローチャー
ト、 第62図(D)は第61図(A)のフローにおける“強制終
了”パケット受信時の処理手順を示すフローチャート、 第63図は発行機のユニットコントローラにおいてメイン
処理とは別個に、タイマ割込みによって実行される割込
み処理の内容を示すフローチャート、 第64図はカード発行制御装置による制御の手順を示すフ
ローチャート、 第65図は第64図のフローにおいて「カード発行」ファン
クションを受信したときの具体的制御手順を示すフロー
チャート、 第66図(A)は第65図のフロー中におけるカード排出処
理の具体的手順を示すフローチャート、 第66図(B)は第65図のフロー中におけるリーダ制御処
理の具体的手順を示すフローチャート、 第66図(C)は第65図のフロー中におけるカード反転処
理の具体的手順を示すフローチャート、 第66図(D)は第65図のフロー中における印字および印
字2処理の具体的手順を示すフローチャート、 第66図(E)は第65図のフロー中におけるカード排出処
理の具体的手順を示すフローチャート、 第66図(F)は第65図のフロー中におけるスタック処理
の具体的手順を示すフローチャート、 第67図は第66図(A)〜(F)の各処理フロー中におい
てエラーが発生したときに実行されるエラー処理の具体
的手順を示すフローチャート、 第68図は発行機と精算機内のカードリーダ制御装置に共
通の制御手順を示すフローチャート、 第69図(A)は「磁気読込み」コマンド受信時のカード
リーダ制御装置の具体的制御手順を示すフローチャー
ト、 第69図(B)は「リロード」コマンド受信時のカードリ
ーダ制御装置の具体的制御手順を示すフローチャート、 第69図(C)は「磁気書込み」コマンド受信時のカード
リーダ制御装置の具体的制御手順を示すフローチャー
ト、 第69図(D)は「ステータス要求」コマンド受信時のカ
ードリーダ制御装置の具体的制御手順を示すフローチャ
ート、 第69図(E)は「パンチ穴要求」コマンド受信時のカー
ドリーダ制御装置の具体的制御手順を示すフローチャー
ト、 第69図(F)は「セキュリティ要求」コマンド受信時の
カードリーダ制御装置の具体的制御手順を示すフローチ
ャート、 第69図(G)は「パンチ穴開け」コマンド受信時のカー
ドリーダ制御装置の具体的制御手順を示すフローチャー
ト、 第69図(H)は「カード後方排出」コマンド受信時のカ
ードリーダ制御装置の具体的制御手順を示すフローチャ
ート、 第69図(I)は「カード前方排出」コマンド受信時のカ
ードリーダ制御装置の具体的制御手順を示すフローチャ
ート、 第70図(a)は第69図(A)のフロー中におけるカード
読取り処理の具体的手順を示すフローチャート、 第70図(b)は第69図(A)のフロー中におけるパリテ
イ、LRC検査処理の具体的手順を示すフローチャート、 第70図(c)は第69図(B)のフロー中における磁気処
理の具体的手順を示すフローチャート、 第70図(d)は第69図(C)のフロー中における書込み
処理の具体的手順を示すフローチャート、 第70図(e)は第69図(C)のフロー中におけるベリフ
ァイ処理の具体的手順を示すフローチャート、 第70図(f)は第70図(c),(e)のフロー中におけ
る1ビット読込処理の手順を示すフローチャート、 第70図(g)は第69図(G)のフロー中における穴開け
処理の具体的な手順を示すフローチャート、 第70図(h)は第69図(A)〜(I)の制御フロー中等
における送信処理の具体的手順を示すフローチャート、 第71図は第69図(A)〜(I)の制御フローにおいてエ
ラーが発生したときのエラー処理の具体的手順を示すフ
ローチャート、 第72図(A),(B)はカードリーダコントローラにお
ける磁気読出しのタイマ割込み処理手順を示すフローチ
ャート、 第73図は、カードリーダ制御装置における磁気書込み時
の書込割込み処理の手順を示すフローチャートである。 100……パチンコ機、110……操作パネル、113……購入
スイッチ、114……中断スイッチ、115……終了スイッ
チ、130……球循環装置、160……制御ユニット、180…
…ユニット制御装置、188……カードリーダ制御装置、1
95……パチンコ機制御装置、190……ユニットコントロ
ーラ、200……カード発行機、700……カード発行装置、
710……カード取出装置、740……カード反転装置、750
……印字装置、770……カード導出装置、300……精算
機、400……管理装置、550……ユニットメモリ、551…
…データ伝送コントローラ、553……ネットワークコン
トローラ、800……カードリーダ、802……カード挿排
口、807……搬送モータ、809……シャッタソレノイド、
820……パンチ装置、821……磁気ヘッド。
FIG. 1 is a system configuration diagram showing an overall configuration of a pachinko gaming system to which the present invention is applied, and FIGS. 2A and 2B are front views showing an example of a card used in the system according to the present invention; FIG. 2 (C) is an explanatory view showing a configuration example of a true / false identification area in the card, FIG. 2 (D) is a cross-sectional view showing an example of a cross-sectional structure of the card, and FIG. 2 (E). Is an explanatory view showing a configuration example of a magnetic recording unit in the card, FIG. 3 is a perspective view showing a configuration diagram of an entire pachinko machine constituting the gaming system, and FIGS. 4 (A) and (B) are front views of the pachinko machine. FIG. 5 is an exploded perspective view of the operation panel unit, FIG. 6 is a perspective view of the inside of the operation panel unit, and FIG. 7 is a rear view of the pachinko machine. FIG. 8 is a perspective view showing a configuration example of a sealed ball circulating device, and FIG. 9 is a perspective view showing the details of the base of the hitting ball launching rail, FIG. 10 is a perspective view showing a state where the front panel of the pachinko machine is opened, and FIG. 11 is a game board. FIG. 12 is a perspective view showing a configuration example of a frame board provided with a frame holding a frame and a firing rail coupled thereto, FIG. 12 is a perspective view showing a rear configuration of a front frame of a pachinko machine, and FIG. FIG. 14 is a perspective view showing a configuration example of a pachinko machine control unit, FIG. 15 is a perspective view showing an internal configuration of the control unit, and FIG. 16 is a front panel of the control unit. 17 is a perspective view showing a positional relationship between a pachinko machine and a control unit, FIG. 18 is a perspective view showing a framework of an island facility in which the pachinko machine is installed, and FIG. 19 is an island facility. Pachinko machine and control unit FIG. 20 is a perspective view showing the back of the island equipment, FIG. 21 is a block diagram showing a control system of the entire pachinko machine, and FIG. 22 shows a circuit configuration example of the pachinko machine control device. Block diagram, FIG. 23 is a block diagram showing a circuit configuration example of the pachinko machine control unit, FIG. 24 is a memory map showing an area configuration of the unit memory, and FIG. 25 is a perspective view showing a configuration example of a card reader of the pachinko machine. FIG. 26 is an exploded perspective view of the card reader, FIG. 27 is an exploded perspective view showing details of a card insertion portion of the card reader, and FIGS. 29 (A) and (B) are cross-sectional side views showing details of a shutter portion at the entrance of the card reader, and FIG. 30 (A) is mounting of various sensors provided in the card reader. Plan view showing a positional relationship, FIG. 30 (B) is a detection timing chart of a sensor when a card is inserted, FIG. 31 is a block diagram showing a circuit configuration example of a card reader control device, FIG. 32 is a block diagram showing an interface circuit of the card reader, FIG. Figure is a timing chart showing the data reading and writing timing of the card reader, FIG. 34 is a perspective view showing a configuration example of a card issuing machine used in the gaming system according to the present invention, FIG. 35 is a front panel of the issuing machine FIG. 36 is a perspective view of a card issuing device provided in the issuing machine, FIG. 37 is a schematic configuration diagram of the same card issuing device, and FIG. 38 is a card removal device constituting the card issuing device. FIG. 39 is a perspective view showing a configuration of a card dispensing device which also constitutes a card issuing device, and FIG. 40 is a block diagram showing a configuration example of a control device of the card issuing machine. 41 is a block diagram showing a configuration example of a unit control device of a card issuing machine, FIG. 42 (A) is a perspective view showing a configuration example of a checkout machine, and FIG. 42 (B) is a top panel of the checkout machine. FIG. 42 (C) is a perspective view showing an example of the structure of a card settlement device which constitutes a checkout machine, and FIG. 43 is a block diagram showing an example of a control device of the checkout device. FIG. 44 is a perspective view showing a configuration example of the whole management device, FIG. 45 is a block diagram showing a system configuration example of the management device itself, and FIG. 46 shows a configuration example of a console of the management device.
(A) is a plan view, (B) is a rear view, FIG. 47 is an explanatory view showing a state transition of a card in the gaming system of the present invention, and FIG. 48 is a configuration example of a transmission system in the gaming system of the present invention. FIG. 49 is a NAU for controlling data transfer on a network
FIG. 50 to FIG. 55 show configuration examples of packets transmitted and received on a low-layer network, FIG. 50 shows a configuration diagram of a “line test” packet, FIG. 51 is a block diagram of an “initial value setting” packet, FIG. 52 is a block diagram of a packet for giving an instruction from the management device to the card issuing machine, and FIGS. 53 (A), (B) and (C) are FIG. 54 is a block diagram of a “card transmission” packet and its response “ACK” and “NAK” packets. FIG. 54 is a block diagram of a “scheduled data transmission” packet. FIGS. 55 (A) and (B) are “unit recovery data”. FIG. 56, FIG. 57, FIG. 58, and FIG. 59 are flowcharts showing the procedure of packet transmission / reception control in the NAU. FIG. 60 is a unit controller of the card issuing machine. Of main processing in FIG. 61 (A) is a flowchart showing an example of a specific procedure of the packet receiving process in the flow of FIG. 60, and FIG. 61 (B) is a card number reservation process in the flow of FIG. FIG. 61 (C) is a flowchart showing the specific procedure of the card purchase process in the flow of FIG. 60, and FIG. 62 (A) is a flowchart showing the flow of FIG. 61 (A). FIG. 62 (B) is a flowchart showing a processing procedure when receiving a “unit recovery data” packet in the flow of FIG. 61 (A), and FIG. 62 (C) is a flowchart showing a processing procedure when receiving a “initial value setting” packet. ) Is a flowchart showing a processing procedure when a “forced termination release” packet is received in the flow of FIG. 61 (A), and FIG. 62 (D) is a “forced termination” packet in the flow of FIG. 61 (A). FIG. 63 is a flowchart showing the contents of an interrupt process executed by a timer interrupt separately from the main process in the unit controller of the issuing machine; FIG. 63 is a flowchart showing the contents of the card issuance control device; FIG. 65 is a flowchart showing a control procedure. FIG. 65 is a flowchart showing a specific control procedure when the “card issue” function is received in the flow of FIG. 64. FIG. 66 (A) is a card in the flow of FIG. FIG. 66 (B) is a flowchart showing a specific procedure of the ejection process, FIG. 66 (B) is a flowchart showing a specific procedure of the reader control process in the flow of FIG. 65, and FIG. 66 (C) is a card in the flow of FIG. FIG. 66 (D) is a flowchart showing a specific procedure of the reversing process, and FIG. 66 (E) is a flowchart showing a specific procedure of card ejection processing in the flow of FIG. 65, and FIG. 66 (F) is a specific procedure of stack processing in a flow of FIG. 65. 67 is a flowchart showing a procedure, FIG. 67 is a flowchart showing a specific procedure of error processing executed when an error occurs in each of the processing flows of FIGS. 66 (A) to (F), and FIG. And FIG. 69 (A) is a flowchart showing a specific control procedure of the card reader control device when a “magnetic read” command is received, and FIG. 69 (B) is a flowchart showing a specific control procedure of the card reader control device when a “magnetic read” command is received. ) Is a flowchart showing a specific control procedure of the card reader control device when the “reload” command is received, and FIG. 69 (C) is a card reader when the “magnetic write” command is received. FIG. 69 (D) is a flowchart showing a specific control procedure of the control device, FIG. 69 (D) is a flowchart showing a specific control procedure of the card reader control device when a “status request” command is received, and FIG. 69 (E) is a “punch hole request”. FIG. 69 (F) is a flowchart showing a specific control procedure of the card reader control device at the time of receiving the “security request” command, and FIG. 69 (F) is a flowchart showing a specific control procedure of the card reader control device at the time of receiving the “security request” command. G) is a flowchart showing a specific control procedure of the card reader control device at the time of receiving the "punch hole" command. FIG. 69 (H) is a specific control procedure of the card reader control device at the time of receiving the "card rear ejection" command. FIG. 69 (I) is a flowchart showing a specific control procedure of the card reader control device at the time of receiving the “card forward ejection” command. 70 (a) is a flowchart showing a specific procedure of a card reading process in the flow of FIG. 69 (A), FIG. 70 (b) is a parity in the flow of FIG. 69 (A), A flowchart showing a specific procedure of the LRC inspection process, FIG. 70 (c) is a flowchart showing a specific procedure of the magnetic processing in the flow of FIG. 69 (B), and FIG. 70 (d) is a flowchart of FIG. 70) is a flowchart showing a specific procedure of the write process in the flow of FIG. 70. FIG. 70 (e) is a flowchart showing a specific procedure of the verify process in the flow of FIG. 69 (C), and FIG. 70 (c) and (e) are flowcharts showing the procedure of the one-bit reading process in the flow, and FIG. 70 (g) shows the specific procedure of the hole making process in the flow of FIG. 69 (G). Flow chart, FIG. 70 (h) 69 is a flowchart showing a specific procedure of transmission processing during the control flow of FIGS. 69 (A) to (I), and FIG. 71 is an error when an error occurs in the control flow of FIGS. 69 (A) to (I). 72A and 72B are flowcharts showing a magnetic read timer interrupt processing procedure in the card reader controller, and FIG. 73 is a magnetic write operation in the card reader control device. It is a flowchart which shows the procedure of an interruption process. 100 ... Pachinko machine, 110 ... Operation panel, 113 ... Purchase switch, 114 ... Pause switch, 115 ... End switch, 130 ... Ball circulation device, 160 ... Control unit, 180 ...
… Unit controller, 188 …… Card reader controller, 1
95… Pachinko machine controller, 190… Unit controller, 200… Card issuer, 700… Card issuer,
710 …… Card removal device, 740 …… Card reversing device, 750
…… Printing device, 770 …… Card dispensing device, 300 …… Checkout machine, 400 …… Management device, 550 …… Unit memory, 551…
... Data transmission controller, 553 ... Network controller, 800 ... Card reader, 802 ... Card insertion / ejection port, 807 ... Convey motor, 809 ... Shutter solenoid,
820: Punch device, 821: Magnetic head.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】有効な金額を特定するための所要情報が記
憶されるとともに所要の遊技を実行可能な遊技装置に使
用される有効記憶媒体を、発行する遊技用記憶媒体発行
装置であって、 上記所要情報のうち少なくとも一部が記憶されていない
発行前記憶媒体を収納する記憶媒体収納手段と、 上記記憶媒体収納手段内に収納されている上記発行前記
憶媒体を所定の処理を行うため1枚ずつ取り出し可能な
記憶媒体取出手段と、 上記記憶媒体取出手段により取り出された発行前記憶媒
体の情報記憶部に所要の情報を記憶可能な情報書込手段
と、 有効記憶媒体の発行要求を与える購入選択手段と、 上記購入選択手段の操作に基づいて上記有効記憶媒体を
排出するための記憶媒体排出手段と、 上記発行される有効記憶媒体数を確認可能な記憶媒体数
計数表示手段と、 を備え、 上記購入選択手段の操作に基づいて上記発行前記憶媒体
の情報記憶部へ上記情報書込手段によって所定の情報の
書き込み処理を行って有効記憶媒体に加工して上記記憶
媒体排出手段により排出するとともに、上記記憶媒体数
計数表示手段の計数値を更新するように構成されてなる
ことを特徴とする遊技用記憶媒体発行装置。
1. A game storage medium issuing device for issuing required storage for specifying an effective amount of money and issuing an effective storage medium used for a game device capable of executing a required game, Storage medium storage means for storing a pre-issue storage medium in which at least a part of the required information is not stored; and 1 for performing predetermined processing on the pre-issue storage medium stored in the storage medium storage means. A storage medium take-out unit that can be taken out one by one; an information writing unit that can store required information in an information storage unit of the storage medium before issuance taken out by the storage medium take-out unit; and a request to issue an effective storage medium Purchase selection means, storage medium discharge means for discharging the effective storage medium based on the operation of the purchase selection means, and storage medium number capable of confirming the number of issued effective storage media And a number display means. Based on the operation of the purchase selection means, the information writing means performs predetermined information writing processing on the information storage section of the storage medium before issuance by the information writing means, and processes the information into an effective storage medium. A storage medium issuance device for a game, wherein the storage medium is discharged by a storage medium discharge unit and the count value of the storage medium number display unit is updated.
JP2317024A 1990-11-21 1990-11-21 Game storage medium issuing device Expired - Fee Related JP2709417B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2317024A JP2709417B2 (en) 1990-11-21 1990-11-21 Game storage medium issuing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2317024A JP2709417B2 (en) 1990-11-21 1990-11-21 Game storage medium issuing device

Publications (2)

Publication Number Publication Date
JPH03222987A JPH03222987A (en) 1991-10-01
JP2709417B2 true JP2709417B2 (en) 1998-02-04

Family

ID=18083574

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2317024A Expired - Fee Related JP2709417B2 (en) 1990-11-21 1990-11-21 Game storage medium issuing device

Country Status (1)

Country Link
JP (1) JP2709417B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3366791B2 (en) 1995-11-09 2003-01-14 ニスカ株式会社 Information recording device
CN106779947B (en) * 2016-12-16 2023-10-31 成都草堂书香科技有限责任公司 A shelf, an article circulation system and an article circulation method including the shelf

Also Published As

Publication number Publication date
JPH03222987A (en) 1991-10-01

Similar Documents

Publication Publication Date Title
JP2709417B2 (en) Game storage medium issuing device
JP2724556B2 (en) Game storage medium issuing device
JP2700504B2 (en) Storage medium issuing device in a game arcade
JP2767007B2 (en) Storage medium issuing device
JP2724557B2 (en) Game storage medium issuing device
JP2767006B2 (en) Amusement store equipment
JP2784956B2 (en) Amusement store equipment
JP2709418B2 (en) Storage media payment device
JP2663207B2 (en) Game equipment
JP2767008B2 (en) Gaming equipment
JP2784958B2 (en) Game equipment
JP2724558B2 (en) Storage medium issuing device in a game arcade
JP2728649B2 (en) Game storage medium issuing device
JP2779607B2 (en) Amusement store equipment
JP2688720B2 (en) Amusement equipment
JP2663203B2 (en) Storage media type game equipment
JP2767030B2 (en) Gaming equipment
JP2688721B2 (en) Amusement equipment
JP2663204B2 (en) Game equipment
JP2663208B2 (en) Game equipment
JP2663209B2 (en) Gaming equipment management equipment
JP2784957B2 (en) Amusement store equipment
JP2663205B2 (en) Game equipment
JPH03242184A (en) Card collecting machine
JP2720328B2 (en) Gaming equipment

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees