JPH0515651A - Card system pinball game system - Google Patents

Card system pinball game system

Info

Publication number
JPH0515651A
JPH0515651A JP19716891A JP19716891A JPH0515651A JP H0515651 A JPH0515651 A JP H0515651A JP 19716891 A JP19716891 A JP 19716891A JP 19716891 A JP19716891 A JP 19716891A JP H0515651 A JPH0515651 A JP H0515651A
Authority
JP
Japan
Prior art keywords
discharge
ball
control device
ball lending
card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP19716891A
Other languages
Japanese (ja)
Other versions
JP3326564B2 (en
Inventor
Kichihei Niiyama
吉平 新山
Koji Ito
広司 伊東
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sophia Co Ltd
Original Assignee
Sophia Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sophia Co Ltd filed Critical Sophia Co Ltd
Priority to JP19716891A priority Critical patent/JP3326564B2/en
Publication of JPH0515651A publication Critical patent/JPH0515651A/en
Application granted granted Critical
Publication of JP3326564B2 publication Critical patent/JP3326564B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To miniaturize the system by omitting a loudspeaker by inserting a card into a game board controller from a discharge controller or a ball bending controller, transmitting a generation request signal of a discharge sound, and also, providing a sound priority control means on the game beard controller. CONSTITUTION:A discharge controller 600 holds an excitation of discharge solenoids 741a, 741b by an input of a detecting signal from a holding ball detector and suspends discharge of a ball discharge device 170, and also, turns on a prize ball discharge display lamp or a lending ball discharge display lamp. Also, a discharge sound request signal of a prize ball or a lending ball is sent out to a game board controller 400. On the other hand, the game board controller 400 is provided with a sound priority control moans 470 for determining which sound is generated preferentially, based on a card insertion and a discharge sound request inputted to a communication means 410.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は遊技機の制御技術さらに
はカード式パチンコ遊技機における制御方式に適用して
有効な技術に関し、例えばパチンコ遊技機に設けられた
賞品球排出装置により貸し玉をも排出するように構成さ
れたカード式パチンコ遊技システムにおける制御方式に
利用して効果的な技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control technique for a gaming machine and a technique effective when applied to a control system for a card-type pachinko gaming machine. The present invention relates to an effective technology that is used as a control method in a card-type pachinko game system that is also configured to discharge.

【0002】[0002]

【従来の技術】近年、磁気カードを媒介として遊技を行
なうようにしたカード式のパチンコ遊技システムが提唱
されている。カード方式は、遊技客が記憶媒体であるカ
ードのみを持ち歩けばよく、落下し易いパチンコ球を大
量に持ち運ぶ手間を軽減することができるという利点が
ある。従来提案されているカード式パチンコ遊技システ
ムには、大きく分けると次の2つの方式がある。第1の
方式は、カードの発行に際して購入金額に対応した持玉
数データをカードに記憶し、この持玉数データの範囲内
でパチンコ遊技を行ない、遊技過程において増減した持
玉数データをカードに記憶するというものである(特公
昭47−42227号参照)。カード方式の第2の方式
は、カードの購入の際にコード番号だけを記録したカー
ドを発行し、持玉数は集中管理装置に記憶し、カードを
パチンコ機のカード読取装置に挿入することによって記
憶された持玉数を呼び出して遊技を行なえるようにする
ものである(実公昭61−32709号、特公昭51−
17106号参照)。
2. Description of the Related Art In recent years, a card-type pachinko game system has been proposed in which a game is played using a magnetic card as a medium. The card system has an advantage that a player only has to carry a card as a storage medium, and can reduce the time and effort to carry a large number of pachinko balls that easily fall. The card-type pachinko game system that has been conventionally proposed is roughly divided into the following two systems. The first method is to store the ball number data corresponding to the purchase amount when issuing the card, play a pachinko game within the range of this ball number data, and use the ball number data that has increased or decreased during the game process to the card. It is to be remembered (see Japanese Patent Publication No. 47-42227). The second type of card system is to issue a card that records only the code number when purchasing a card, store the number of balls in the central management unit, and insert the card into the card reader of the pachinko machine. The number of balls held is recalled so that the player can play the game (Actual Kokoku Sho 61-32709, Japanese Examined Sho 51-).
17106).

【0003】[0003]

【発明が解決しようとする課題】しかしながら、従来の
カード式遊技システムはいずれの方式にあっても、カー
ドによる遊技が可能にされるのはカードを発行した遊技
店内のみであり、他の遊技店で発行されたカードでは遊
技が行なえないようになっていた。また、発行されたカ
ードが有効とされるのは発行当日のみであった。そこ
で、他の遊技店で発行されたカードでも使用でき、しか
も有効期限の制約を受けずに使用できるようにした共通
プリペードカード方式の遊技システムも一部で実用化さ
れている。
However, in any of the conventional card-type game systems, the cards can be played only within the game store that issued the card, and other game stores. It was impossible to play games with the cards issued in. Also, the issued card was only valid on the day of issue. Therefore, a game system of a common prepaid card system, which can be used even with cards issued at other amusement stores and can be used without being restricted by the expiration date, has been partially put into practical use.

【0004】しかしながら、このような共通プリペード
カード方式を採用すると、遊技者にとっては一旦カード
を購入してカードを玉貸機に入れて貸し玉に変換してか
らでないと遊技を開始できないため、従来に比べてカー
ドを購入する行為が増えた分だけ余計な手間がかかると
いう問題点があった。また、従来のカード式パチンコ遊
技システムにあっては、遊技者がカードをカードリーダ
に残したまま遊技機を離れてしまうことがあるという問
題点があった。
However, if such a common prepaid card system is adopted, the player cannot start the game until the player purchases the card, puts it in the ball lending machine, and converts it into a lending ball. Compared to, there was a problem that it took extra time due to the increase in the act of purchasing cards. Further, in the conventional card-type pachinko game system, there is a problem that the player may leave the gaming machine while leaving the card in the card reader.

【0005】そこで、パチンコ遊技機に設けられた賞品
球排出装置を使って貸し玉を直接パチンコ遊技機の供給
皿に排出させるようにして遊技者の煩わしさを軽減でき
るようにするとともに、玉貸機にスピーカを設けてカー
ドの挿入、排出音を発生させるようにした排出制御方式
が考えられている。しかし、このような制御方式を採用
すると、賞品球の排出とカードの挿入、排出が競合した
場合の取扱いが問題となるとともに、玉貸機が大型化す
るという問題があることが明らかになった。。
Therefore, the prize ball discharging device provided in the pachinko gaming machine is used to discharge the lending balls directly to the supply plate of the pachinko gaming machine so that the player's annoyance can be reduced and the ball lending can be performed. A discharge control method has been considered in which a speaker is provided in the machine to insert a card and generate a discharge sound. However, if such a control system is adopted, it becomes clear that there is a problem that the handling of the prize ball ejection, the card insertion, and the ejection when there is a competition, and the ball lending machine becomes large. . .

【0006】この発明は上記のような背景の下になされ
たもので、その目的とするところは、遊技機に設けられ
た賞品球排出装置を使って貸し玉を直接供給皿に排出さ
せるように構成されたパチンコ遊技機において、カード
挿入時やカード排出時にパチンコ遊技機に設けられスピ
ーカを使って挿入音や排出音を発生させて、玉貸し機の
スピーカを省略できるような制御方式を提供することに
ある。この発明の他の目的は、賞品球排出等の遊技音と
カード挿入、排出音が競合した場合に音が重なって発生
されるのを回避できるようにすることにある。
The present invention has been made under the above background, and its object is to discharge the rental balls directly to the supply tray by using the prize ball discharging device provided in the gaming machine. In a configured pachinko gaming machine, when a card is inserted or ejected, a speaker provided in the pachinko gaming machine is used to generate an insertion sound or an ejection sound, thereby providing a control method in which the speaker of the ball lending machine can be omitted. Especially. Another object of the present invention is to avoid generation of overlapping sounds when game sounds such as prize ball discharge and card insertion and discharge sounds compete.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するた
め、遊技機に設けられた賞品球排出装置を使って貸し玉
を直接供給皿に排出させるように構成されたカード式パ
チンコ遊技システムにおいて、カードの保持する有価デ
ータの一部を貸し玉に変換させる指令を与える玉貸し変
換要求手段と、遊技に関する制御を行なう遊技盤制御装
置と、上記玉貸し変換要求手段の1回の操作に対する最
小玉貸し回数を設定するための玉貸回数設定手段と、上
記玉貸し変換要求手段の操作によって玉貸し制御を開始
し玉貸回数設定手段の設定回数に基づいて上記排出制御
装置に対し玉貸し要求信号を供給する玉貸し制御装置
と、上記遊技盤制御装置または玉貸し制御装置からの要
求に従って球排出装置を制御して所定数の賞品球または
貸し玉の排出を行なう排出制御装置とを設け、上記排出
制御装置もしくは上記玉貸し制御装置から上記遊技盤制
御装置に対してカードの挿入、排出音の発生要求信号を
送信させるようにした。また、遊技盤制御装置には音優
先制御手段を設ける。
[Means for Solving the Problems] In order to achieve the above object, in a card-type pachinko game system configured to directly discharge rental balls to a supply tray by using a prize ball discharging device provided in a gaming machine, A ball lending conversion requesting means for giving a command to convert a part of valuable data held by the card into a lending ball, a game board control device for controlling a game, and a minimum ball for one operation of the ball lending conversion requesting means. A ball lending number setting means for setting the number of times of lending, and ball lending control is started by the operation of the ball lending conversion requesting means, and a ball lending request signal is sent to the discharge control device based on the set number of times by the ball lending number setting means. The ball lending control device for supplying the ball lending control device and the ball lending control device according to the request from the game board control device or the ball lending control device to discharge a predetermined number of prize balls or lend balls. And a control device provided out, and so as to transmit from the emission control device or the ball lending controller card insertion against the gaming machine controller, the generation request signal of the exhaust sound. Further, the game board control device is provided with sound priority control means.

【0008】[0008]

【作用】上記した手段によれば、上記排出制御装置から
遊技盤制御装置に対してカードの挿入、排出音の発生要
求信号が送信されるため、カードの置き忘れを防止でき
るとともに、パチンコ遊技機に設けられたスピーカを使
ってカードの挿入音や排出音を発生させることができる
ため、玉貸機に設けるべきスピーカを省略することがで
き、別々にスピーカを設ける場合に比べて玉貸機をコン
パクトに構成できるとともに、システム全体のコストを
下げることができる。また、遊技盤制御装置には音優先
制御手段を設けることにより、賞品球排出等の遊技音と
カード挿入、排出音が競合した場合に音が重なって発生
されるのを回避することができる。
According to the above-mentioned means, since the card insertion / ejection sound generation request signal is transmitted from the ejection control device to the game board control device, it is possible to prevent the card from being left behind and the pachinko game machine. You can omit the speaker that should be installed in the ball lending machine because you can use the speaker provided to generate the sound of card insertion and ejection, and the ball lending machine is compact compared to the case where separate speakers are installed. And the cost of the entire system can be reduced. Further, by providing the sound board control device with the sound priority control means, it is possible to avoid the sound from being overlapped when the game sound such as the prize ball discharge and the card insertion / discharge sound compete with each other.

【0009】[0009]

【実施例】図1には、本発明に係るカード式パチンコ遊
技機の一実施例が示されている。この実施例では、パチ
ンコ遊技機100と玉貸機200とが対をなすように構
成されており、各玉貸機200にはカードリーダが内蔵
され、玉貸機200の前面パネル210には上記カード
リーダに対応してカード挿排口211と、挿入されたカ
ードの残高を表示する挿入残高表示器220、玉貸機が
作動状態にあることを表示する有効表示ランプ230が
設けられている。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows an embodiment of a card-type pachinko gaming machine according to the present invention. In this embodiment, the pachinko gaming machine 100 and the ball lending machine 200 are configured to be paired with each other, and each ball lending machine 200 has a built-in card reader, and the front panel 210 of the ball lending machine 200 has the above-mentioned structure. Corresponding to the card reader, there are provided a card insertion / ejection port 211, an insertion balance indicator 220 for displaying the balance of the inserted card, and an effective display lamp 230 for indicating that the ball lending machine is in an operating state.

【0010】一方、パチンコ遊技機100の前面パネル
101に設けられている供給皿120の上面には、操作
パネル121が形成され、この操作パネル121上に上
記カード挿排口211に挿入されたカードの残高を表示
する残高表示器122と、貸し玉への変換の指令を与え
る変換ボタン123と、カードの排出(返却)を指令す
る返却ボタン124と、上記変換ボタン123が有効中
であることを表示する玉貸し可能表示ランプ126が設
けられている。
On the other hand, an operation panel 121 is formed on the upper surface of the supply tray 120 provided on the front panel 101 of the pachinko gaming machine 100, and a card inserted into the card insertion / ejection slot 211 on the operation panel 121. Balance display device 122 for displaying the balance of the card, a conversion button 123 for giving a command for conversion to a rental ball, a return button 124 for instructing the ejection (return) of the card, and that the conversion button 123 is valid. A ball lendable display lamp 126 for displaying is provided.

【0011】なお、112は賞品玉排出時に点灯される
賞品球排出表示ランプ、また113は貸し玉排出時に点
灯される貸し玉排出表示ランプ、108はパチンコ遊技
機において打止状態が発生したときに点灯される完了ラ
ンプ、141は上記供給皿120が満杯になったときに
内部でオーバーフローした賞品球を貯留する受け皿、1
42は供給皿120から流下される球を一個ずつ遊技領
域内に発射する打球発射装置の操作ダイヤルである。パ
チンコ遊技盤前面の遊技領域の構成は従来のものと同様
で、任意の構成をとり得る。
Numeral 112 is a prize ball discharge display lamp which is turned on when a prize ball is discharged, 113 is a rental ball discharge display lamp which is turned on when a rental ball is discharged, and 108 is a stop state in a pachinko gaming machine. A completion lamp that is turned on, 141 is a tray for storing prize balls that have overflowed inside when the supply tray 120 is full, 1
Reference numeral 42 is an operation dial of a hitting ball launching device that launches the balls flowing down from the supply tray 120 one by one into the game area. The structure of the game area on the front of the pachinko game board is the same as the conventional one, and can take any structure.

【0012】この実施例では、変換ボタン123が押さ
れると、上記玉貸機200のカードリーダへのカードの
挿入を前提としてカードの有する金額の範囲内で、予め
設定された金額(例えば300円分)を貸し玉に変換す
る指令がパチンコ遊技機100の裏面に設けられている
球排出装置の制御装置に対して送出するように構成され
ている。変換後のカードの残り金額は、100円を1単
位とする度数で残高表示器122に表示されるようにな
っている。
In this embodiment, when the conversion button 123 is pressed, a preset amount of money (for example, 300 yen) is set within the range of the amount of money that the card has on the assumption that the card is inserted into the card reader of the ball lending machine 200. It is configured to send a command for converting (minutes) to rental balls to the control device of the ball discharging device provided on the back surface of the pachinko gaming machine 100. The remaining amount of money of the converted card is displayed on the balance display 122 with a frequency of 100 yen as one unit.

【0013】図2には本発明を適用したパチンコ遊技機
100の裏機構の一実施例が示されている。図2におい
て、170は賞品球を排出する球排出装置、600は入
賞検出器等からの信号に基づいて上記球排出装置170
を制御して所定数の賞品球を排出させる排出制御装置、
151は排出される前の球を貯留しておく貯留タンク、
152は貯留タンク151内の球を一列に整列させて上
記球排出装置170まで誘導する誘導路である。、この
誘導路152は特に限定されないが、短時間に多量の玉
を供給できるように2条に形成されており、その途中に
は球の重なりを防止する玉ならし153および待機球検
出器160が設けられている。
FIG. 2 shows an embodiment of a back mechanism of a pachinko gaming machine 100 to which the present invention is applied. In FIG. 2, 170 is a ball ejecting device for ejecting prize balls, and 600 is the ball ejecting device 170 based on a signal from a prize detector or the like.
And a discharge control device for discharging a predetermined number of prize balls,
151 is a storage tank for storing the balls before being discharged,
Reference numeral 152 is a guide path for aligning the balls in the storage tank 151 in a line and guiding the balls to the ball discharging device 170. The guiding path 152 is not particularly limited, but is formed in two lines so that a large amount of balls can be supplied in a short time, and a ball leveling 153 and a waiting ball detector 160 that prevent balls from overlapping in the middle thereof. Is provided.

【0014】また、球排出装置170の下方には、排出
された玉を遊技機前面の上記供給皿120の流出口12
9へ誘導する排出樋155と供給皿120からオーバフ
ローした玉を下方の受け皿141へ誘導するオーバーフ
ロー樋156が連続して設けられているとともに、上記
排出樋155の途中から分岐された玉抜き樋157が上
記オーバーフロー樋156と平行して配設され、この玉
抜き樋157と排出樋155との分岐部には流路切換え
弁158が設けられている。159は遊技機の前面に設
けられた入賞口に流入した入賞球を一箇所に集合させる
集合樋、180は集合樋159の下端に設けられ集合さ
れた入賞球を1個ずつ分離して検出器で検出する入賞球
分離検出装置、400は遊技部に設けられた入賞検出器
からの信号に基づいて役物や表示ランプを駆動する遊技
盤制御装置である。
Below the ball discharge device 170, the discharged balls are provided with the discharged balls 12 on the front face of the gaming machine.
9 and a overflow gutter 156 that guides balls overflowing from the supply tray 120 to the lower tray 141 are continuously provided. Is arranged in parallel with the overflow gutter 156, and a flow path switching valve 158 is provided at a branch portion between the drain gutter 157 and the discharge gutter 155. 159 is a collecting gutter that collects the winning balls that have flowed into the winning openings provided on the front of the gaming machine in one place, and 180 is a detector that is provided at the lower end of the collecting gutter 159 and separates the collected winning balls one by one. The winning ball separation detecting device 400 is a game board control device that drives a winning object or a display lamp based on a signal from a winning detector provided in the game section.

【0015】上記遊技盤制御装置400と排出制御装置
600とは、3本の信号線からなるコードによって接続
される。特に限定されるものでないがこの実施例では、
遊技盤制御装置400と排出制御装置600から引き出
されたコード191,192の一端が中継基板195に
接続されており、中継基板195を介して遊技盤制御装
置400と排出制御装置600とが通信可能に結合され
ている。なお、この実施例では、入賞球分離検出装置1
80として集合樋159で集合された入賞球の流下経路
に臨むストッパ182とそれを駆動するソレノイド(以
下、セーフソレノイドと称する)183とからなり検出
器(セーフセンサと称する)181で入賞球を1つ検出
する毎にストッパ182をソレノイド183で駆動して
入賞球を1つ流下させるするように構成した電気式のも
のを用いているが、先端にストッパを、また後端に錘を
有するシーソー式の球鞘とマイクロスイッチとから構成
されたメカ式のものを用い、入賞球数は排出制御装置6
00内に電気的に記憶させるようにしても良い。
The game board control device 400 and the discharge control device 600 are connected by a cord composed of three signal lines. Although not particularly limited, in this embodiment,
One ends of the codes 191 and 192 pulled out from the game board control device 400 and the discharge control device 600 are connected to the relay board 195, and the game board control device 400 and the discharge control device 600 can communicate with each other via the relay board 195. Is bound to. In this embodiment, the winning ball separation detection device 1
A detector (hereinafter referred to as a safe sensor) 181 is composed of a stopper 182 facing a downflow path of the winning balls collected by the collecting gutter 159 and a solenoid (hereinafter, referred to as a safe solenoid) 183, and the winning ball 1 Each time one is detected, an electric type is used in which the stopper 182 is driven by the solenoid 183 to make one winning ball flow down. However, a seesaw type having a stopper at the front end and a weight at the rear end is used. The number of winning balls is 6 and the discharge control device 6 is used.
It may be electrically stored in 00.

【0016】図3には上記球排出装置170の一実施例
を示す。この球排出装置170は、貯留タンク151に
貯留された予備球を誘導する上記誘導樋152に連続す
るように構成された案内樋710を備えている。この案
内樋710は上記誘導樋152に対応して2条に形成さ
れており、各条の通路に対応して流下阻止手段としての
ストッパ745とその駆動用排出ソレノイド741とか
らなる排出手段740も2組設けられている。上記案内
樋710は、その機能から3つの部分からなり、上から
順にそれぞれ減圧部711、縁切り部712、排出部7
13とされている。
FIG. 3 shows an embodiment of the ball discharging device 170. The ball discharge device 170 includes a guide gutter 710 configured to be continuous with the guide gutter 152 that guides the preliminary balls stored in the storage tank 151. The guide gutter 710 is formed in two lines corresponding to the above-mentioned guide gutter 152, and a discharge means 740 including a stopper 745 as a flow-down prevention means and a drive discharge solenoid 741 thereof is also provided corresponding to the passage of each line. Two sets are provided. The guide gutter 710 is composed of three parts due to its function, and the decompression section 711, the edge cutting section 712, and the discharge section 7 are arranged in this order from the top.
It is supposed to be 13.

【0017】上記減圧部711は、貯留タンク151か
ら誘導樋152を介して送られてくる予備球の圧力を減
らすもので、同図に示すように、緩傾斜状態にUターン
された構造にされている。上記縁切り部712は、その
下の排出部713を通る球同士に間隔を開けさせて、下
方の排出手段740による球の流出を止め易くするため
のもので、前記減圧部711に連続する垂直通路部分7
21と後述の排出部713に通じる方向変換通路部分7
22とから構成されている。
The depressurizing unit 711 reduces the pressure of the reserve ball sent from the storage tank 151 through the guide gutter 152, and has a U-turn structure in a gently inclined state as shown in FIG. ing. The edging portion 712 is provided to allow the balls passing through the discharge portion 713 therebelow to be spaced apart from each other so as to easily stop the discharge of the balls by the discharge means 740 below. Part 7
21 and a direction changing passage portion 7 leading to a discharge portion 713 described later.
22 and 22.

【0018】そして、垂直通路部分721の下端部に
は、球詰まり防止突部723が前方に突出して設けられ
ている。この球詰まり防止突部723によって、垂直通
路部分721に縦に並んで停止した球のうちの最も下の
球の中心位置がその上方の球の中心位置より常に前方に
位置せしめられるようになる。それによって、上方の球
の流下移動圧が最も下の球を常に前方に押圧するように
作用し、球詰まりが防止される。各案内樋710の排出
部713の途中には、流下する球を検出する非接触型の
排出球検出センサ730(排出センサ1,2)がそれぞ
れ設置されている。
A ball clogging preventing projection 723 is provided at the lower end of the vertical passage portion 721 so as to project forward. The ball clogging prevention protrusion 723 allows the center position of the lowest ball among the balls stopped vertically aligned in the vertical passage portion 721 to be always located in front of the center position of the upper ball. As a result, the downward moving pressure of the upper sphere acts so as to always push the lowermost sphere forward, so that the ball clogging is prevented. Non-contact type discharge ball detection sensors 730 (discharge sensors 1 and 2) for detecting falling balls are installed in the middle of the discharge portion 713 of each guide gutter 710.

【0019】また、各排出部713の途中、上記排出セ
ンサ730直後には上記排出手段740を構成するスト
ッパ745が出没可能な切欠き703が設けられてい
る。上記ストッパ745は、それぞれ支軸705によっ
て回動自在に支持されているとともに、ストッパ745
の一側部には、それぞれ連結ピン746が突設され、こ
れら連結ピン746と排出ソレノイド741の作動ロッ
ド742の下端部とが連結板747によりそれぞれ連結
されている。
A notch 703 is provided in the middle of each discharge portion 713, immediately after the discharge sensor 730, into which a stopper 745 forming the discharge means 740 can be projected and retracted. The stoppers 745 are rotatably supported by the support shafts 705, respectively.
Connecting pins 746 are provided on one side of each of the connecting pins 746, and the connecting pins 746 and the lower end of the operating rod 742 of the discharge solenoid 741 are connected by a connecting plate 747.

【0020】そして、排出ソレノイド741が消磁(オ
フ)状態にあるときには、作動ロッド742が下降して
ストッパ745の先端部が切欠き部703より案内樋7
10の排出部713中にそれぞれ入り込んで、排出部7
13中の遊技球を流下を阻止するようになっている。一
方、排出ソレノイド741が励磁(オン)されると、作
動ロッド742が上昇してストッパ745が上昇する方
向に回動されて排出部713の切欠き703中から脱し
て、排出部713中の球の流下阻止状態を解除させ、案
内樋710内の予備球を下方の排出樋155へ排出させ
るようになっている。
When the discharge solenoid 741 is in the demagnetized (OFF) state, the operating rod 742 is lowered and the tip of the stopper 745 is guided from the notch 703 to the guide trough 7.
10 into each of the discharge parts 713,
It is designed to prevent the game balls in 13 from flowing down. On the other hand, when the discharge solenoid 741 is excited (turned on), the operating rod 742 is raised and the stopper 745 is rotated in a direction of rising so as to be removed from the notch 703 of the discharge portion 713 and the ball in the discharge portion 713. The flow prevention state is released, and the preliminary ball in the guide gutter 710 is discharged to the discharge gutter 155 below.

【0021】このように上記実施例の球排出装置170
は、排出センサ730で流下する玉を一個ずつ検出しな
がら所定数に達した時点でストッパ745を作動させて
排出を停止させることができるため、上述したごとく排
出球数の異なる賞品球と貸し玉とを同一の球排出装置に
よって排出させることが可能となる。なお、図3におい
て、750はパチンコ遊技機100の前面枠101に設
けられた操作孔(図示省略)から球抜き棒が差し込まれ
たことを検出する球抜きセンサ750である。球抜きセ
ンサ750がオンされると、上記排出ソレノイド741
が連続して励磁されて案内樋710内の予備球を排出さ
せるとともに、排出樋155内の切換え弁158の駆動
手段(ソレノイド)を作動させ、排出された玉を球抜き
樋157を通して機外へ排出させるようになっている。
Thus, the ball discharging device 170 of the above embodiment.
Can stop the discharge by operating the stopper 745 when the predetermined number is reached while detecting the falling balls one by one by the discharge sensor 730, and thus, as described above, the prize balls and the rental balls having different discharge balls It is possible to discharge and by the same ball discharging device. Note that in FIG. 3, reference numeral 750 is a ball punching sensor 750 that detects that a ball punching bar has been inserted through an operation hole (not shown) provided in the front frame 101 of the pachinko gaming machine 100. When the ball removal sensor 750 is turned on, the discharge solenoid 741
Are continuously excited to discharge the auxiliary ball in the guide gutter 710, and the driving means (solenoid) of the switching valve 158 in the discharge gutter 155 is operated to discharge the discharged ball to the outside of the machine through the ball discharge gutter 157. It is designed to be discharged.

【0022】上記球抜きセンサ750および排出ソレノ
イド741、排出センサ730は排出制御装置600に
電気的に接続されている。図4には、パチンコ遊技機1
00の制御系の一実施例が示されている。この制御系は
大きく分けると、主としてパチンコ遊技機100の遊技
盤に関する制御を司る遊技盤制御装置400と、カード
リーダ等の制御を司る玉貸し制御装置500と、上記球
排出装置170の制御を司る排出制御装置600とによ
り構成されている。
The ball removing sensor 750, the discharge solenoid 741, and the discharge sensor 730 are electrically connected to the discharge control device 600. In Figure 4, the pachinko gaming machine 1
An example of a 00 control system is shown. This control system is roughly divided into a game board control device 400 that mainly controls the game board of the pachinko gaming machine 100, a ball lending control device 500 that controls the card reader and the like, and a ball discharge device 170. The discharge control device 600 is included.

【0023】上記制御装置のうち遊技盤制御装置400
は、パチンコ遊技機の遊技盤102に設けられている各
種入賞球検出器から検出信号を受けて役物の駆動信号を
形成したり、パチンコ遊技機の裏機構盤に設けられてい
る入賞球分離検出装置180内の検出器(セーフセン
サ)181からの信号を受けて入賞球分離用のセーフソ
レノイド182を作動させたり、スピーカ190に対す
る駆動信号を形成する。また、遊技盤制御装置400
は、遊技状態を監視してパチンコ店の管理装置700に
対してパチンコ機が稼働中であることや大当りの発生、
打止めの発生等の状態に関する情報を伝える機能を備え
ている。
Of the above control devices, game board control device 400
Receives a detection signal from various prize-winning ball detectors provided on the game board 102 of the pachinko gaming machine to form a drive signal for a winning character, or separates the prize-winning balls provided on the back mechanism board of the pachinko gaming machine. In response to a signal from a detector (safe sensor) 181 in the detection device 180, the safe solenoid 182 for winning ball separation is operated, or a drive signal for the speaker 190 is formed. In addition, the game board control device 400
Indicates that the pachinko machine is in operation or a big hit occurs for the management device 700 of the pachinko parlor by monitoring the gaming state.
It is equipped with a function to convey information regarding the state of occurrence of stoppage.

【0024】排出制御装置600は、上記玉貸し制御装
置500または遊技盤制御装置400からの排出指令信
号に基づいて上記球排出装置170内の2条の案内樋7
10の途中に設けられた一対のストッパ745を作動さ
せる排出ソレノイド741a,741bを励磁して、排
出センサ730a,730bの検出信号に基づいて各案
内樋710内の予備球を所定数だけ排出させるととも
に、球抜きスイッチ750からのオン信号に基づいて排
出ソレノイド741a,741bを励磁し、かつ流路切
換え弁158の駆動源を作動させて貯留タンク151お
よび誘導樋152内の予備球をすべて排出させたりす
る。
The discharge control device 600 has two guide gutters 7 in the ball discharge device 170 based on a discharge command signal from the ball lending control device 500 or the game board control device 400.
The discharge solenoids 741a and 741b for activating a pair of stoppers 745 provided in the middle of 10 are excited to discharge a predetermined number of preliminary balls in each guide trough 710 based on the detection signals of the discharge sensors 730a and 730b. Exciting the discharge solenoids 741a and 741b based on the ON signal from the ball removing switch 750 and operating the drive source of the flow path switching valve 158 to discharge all the reserve balls in the storage tank 151 and the guide trough 152. To do.

【0025】また、排出制御装置600は、誘導樋15
2の途中に設けられた待機球検出器160からの検出信
号が入ってくると排出ソレノイド741a,741bの
励磁を保留して球排出装置170による排出を中止する
とともに、排出時には排出指令信号の内容に応じて例え
ば賞品球排出表示ランプ112または貸し玉排出表示ラ
ンプ113を点灯させたり、遊技盤制御装置400に対
して賞品球もしくは貸し玉の排出音要求信号を送出す
る。
Further, the discharge control device 600 includes a guide gutter 15
When a detection signal from the standby ball detector 160 provided in the middle of 2 comes in, the excitation of the discharge solenoids 741a and 741b is suspended and the discharge by the ball discharge device 170 is stopped. In response to this, for example, the prize ball discharge display lamp 112 or the rental ball discharge display lamp 113 is turned on, or a discharge sound request signal of the prize ball or the rental ball is sent to the game board control device 400.

【0026】玉貸し制御装置500は、パチンコ遊技機
100内のカードリーダからの読取りデータを受けて挿
入残高表示器220に対する駆動信号や残高表示器12
2に対する表示駆動信号およびカードリーダが作動状態
にあることを表示する有効表示ランプ230やパチンコ
遊技機に設けられている玉貸し可能表示ランプ126に
対する駆動信号を形成したり、カードリーダ制御装置2
50に対する残高データ書換え信号q、パンチ穴加工信
号m、カード排出信号nを形成する。また、玉貸し制御
装置500は、玉貸し変換スイッチ(123)とカード
返却スイッチ(124)のオン信号を受け付けるととも
に、排出制御装置600に対して玉貸し要求信号BRQ
やカード有無信号CONを送ったり、カード管理会社の
管理装置800に対して1度(100円)分の貸し玉へ
の変換が行なわれたことを知らせるカード決済信号jを
送信する機能も備えている。
The ball lending control device 500 receives the read data from the card reader in the pachinko gaming machine 100, and outputs a drive signal to the insertion balance display 220 and the balance display 12.
2, a drive signal for a display drive signal and a drive signal for an effective display lamp 230 that indicates that the card reader is in operation and a ball lendable display lamp 126 provided in a pachinko gaming machine, and the card reader control device 2
A balance data rewrite signal q, a punch hole processing signal m, and a card ejection signal n for 50 are formed. Further, the ball lending control device 500 receives the on signals of the ball lending conversion switch (123) and the card return switch (124), and at the same time sends the ball lending request signal BRQ to the discharge control device 600.
And a card presence / absence signal CON, and a function of sending a card settlement signal j to the management device 800 of the card management company to inform the management device 800 of one (100 yen) conversion to a rental ball. There is.

【0027】図5には上記遊技盤制御装置400の構成
例が示されている。すなわち、この実施例の遊技盤制御
装置400は、排出制御装置600との間の信号の送受
信を行なう通信手段410と、遊技盤102の賞球別入
賞検出器からの検出信号を計数し保持する2つの入賞記
憶手段421,422と、各入賞記憶手段421,42
2に対応した賞球数を記憶する賞球数記憶手段430
と、上記入賞記憶手段421,422の記憶内容に基づ
いて排出すべき賞品球数を決定する賞球数制御手段44
0と、遊技盤102からの信号に基づいて役物のソレノ
イドやモータ、表示ランプを駆動したり大当りの発生を
検出して役物や変動入賞装置等を所定の手順に従って駆
動するなど遊技に関する制御を行なう遊技制御手段45
0と、該遊技制御手段450からの賞球排出音要求、大
当り発生音要求等や上記通信手段410からのカード挿
入、排出音要求に基づいていずれの音の発生を優先させ
るか決定する音優先制御手段470と、上記遊技盤10
2からの入力信号を受けたり遊技盤上の表示ランプやモ
ータ、ソレノイド、スピーカ等の駆動信号を形成する信
号入出力手段460とにより構成されている。
FIG. 5 shows a configuration example of the game board control device 400. That is, the game board control device 400 of this embodiment counts and holds the detection signals from the communication means 410 that transmits and receives signals to and from the discharge control device 600, and the detection signals from the prize-winning prize-based prize detectors of the game board 102. Two winning storage means 421, 422 and each winning storage means 421, 42
Number of prize balls storage means 430 for storing the number of prize balls corresponding to 2
And the prize ball number control means 44 for determining the number of prize balls to be discharged based on the stored contents of the prize storing means 421, 422.
0 and control related to games, such as driving solenoids, motors, and display lamps of the role object based on a signal from the game board 102, detecting the occurrence of a big hit, and driving the role object and the variable winning device according to a predetermined procedure. Game control means 45 for playing
0, and sound priority for determining which sound is to be prioritized based on a prize ball discharge sound request from the game control means 450, a big hit generation sound request, etc., a card insertion from the communication means 410, and a discharge sound request. Control means 470 and the game board 10
It is constituted by a signal input / output means 460 which receives an input signal from the device 2 and forms a drive signal for a display lamp on a game board, a motor, a solenoid, a speaker and the like.

【0028】この実施例の遊技盤制御装置400には、
一般の入賞口とは異なる数の賞品球が設定されている入
賞口に入賞した球を検出する賞球別入賞検出器490が
遊技盤102に2種類設けられた場合にも対応できるよ
うに、2つの入賞記憶手段421,422が設けられて
おり、賞品球数の異なる入賞口ごとに入賞数を計数する
ようにしている。入賞検出信号は賞品球排出の有無にか
かわらず遊技盤制御装置400に連続して入ってくるの
で、入賞球の数を記憶する入賞記憶手段が必要とされ
る。
In the game board control device 400 of this embodiment,
A number of prize balls different from the number of general prize holes are set, so that it is possible to correspond to the case where two kinds of prize ball-specific prize detectors 490 for detecting the balls prized in the prize holes are provided in the game board 102. Two winning storage means 421, 422 are provided, and the number of winnings is counted for each winning opening having a different number of prize balls. Since the winning detection signal continuously enters the game board control device 400 regardless of whether or not the prize balls are discharged, a winning storage means for storing the number of winning balls is required.

【0029】一方、上記賞球数制御手段440は、通信
手段410からの信号により排出制御装置600から賞
球数データの送信要求があったことを知ると、上記入賞
記憶手段421,422の記憶内容に基づいて賞球数記
憶手段430から排出すべき賞品球数を読み出して決定
し、決定された賞球数データGを通信手段410に渡し
て排出制御装置600に対し賞球数データを送信させ
る。これとともに、賞球数制御手段440は、賞球数デ
ータを一回送信すると入賞記憶手段421または422
の記憶内容を「1」だけ減らす機能を備えている。しか
も、この実施例では、上記通信手段410が遊技盤制御
装置400に周期的(2m秒ごと)に割込みを発生させ
る信号(例えばリセット信号)に基づいてこれをタイマ
カウンタで計数することで、所望の周期(8m秒)のク
ロックCKを形成して排出制御装置600へ供給するよ
うに構成されている。
On the other hand, when the prize sphere number control means 440 learns from the signal from the communication means 410 that the discharge control device 600 has requested the transmission of the prize sphere number data, the prize memorization means 421, 422 stores the memorized data. Based on the contents, the number of prize balls to be discharged is read out from the prize ball number storage means 430 and determined, and the determined prize ball number data G is passed to the communication means 410 to transmit the prize ball number data to the discharge control device 600. Let At the same time, the prize ball number control means 440 transmits the prize ball number data once, and the prize storage means 421 or 422.
It is equipped with a function to reduce the stored contents of "1". Moreover, in this embodiment, the communication means 410 counts this with the timer counter on the basis of a signal (for example, a reset signal) that causes the game board control device 400 to periodically (every 2 msec) generate an interrupt. The clock CK having the period (8 msec) is formed and supplied to the emission control device 600.

【0030】図6には上記遊技盤制御装置400におけ
る通信手段410の構成例が示されている。すなわち、
この通信手段410はリセット発生回路RSTからのリ
セット信号rを計数して同期用クロックCKを形成する
通信クロック制御手段411と、上記賞球数制御手段4
40から渡された賞球数データGをシリアルデータに変
換して送信する送信手段412と、電源投入時等に上記
送信手段412によって回線テスト信号を送信させる回
線確認手段413と、賞球数データの送信要求があった
場合に2回続けて同一データを送信するための制御を行
なう送信回数制御手段414と、排出制御装置600か
ら送信されてきた信号(コマンド)の読込みタイミング
を制御する受信タイミング制御手段415と、この制御
手段415からのタイミング信号により受信信号を読み
込んで保持する受信信号記憶手段416と、2回目に読
み込んだ同一の受信信号を保持して上記受信信号記憶手
段416内の受信信号とを比較する受信信号比較手段4
17と、比較の結果に基づいてその受信信号を解読する
受信信号解読手段418とから構成されている。この受
信信号解読手段418は、受信信号を解読して賞球数制
御手段440に対して賞球数要求信号Dを送ったり、受
信データ不一致の場合に再送要求信号Eを供給し、また
上記回線確認手段413に対しては回線テスト信号の送
信指令を与え、上記音優先制御手段470に対して貸し
玉排出音要求信号やカード挿入音要求信号、カード排出
音要求信号を供給したりする。
FIG. 6 shows a configuration example of the communication means 410 in the game board control device 400. That is,
The communication means 410 counts the reset signal r from the reset generation circuit RST to form a synchronization clock CK, and the prize ball number control means 4 described above.
Transmitting means 412 for converting the prize ball number data G passed from 40 into serial data and transmitting it, line confirming means 413 for transmitting a line test signal by the transmitting means 412 when the power is turned on, and prize ball number data Transmission request control means 414 for controlling the transmission of the same data twice in succession and a reception timing for controlling the reading timing of the signal (command) transmitted from the discharge control device 600. The control means 415, the reception signal storage means 416 that reads and holds the reception signal according to the timing signal from the control means 415, and the reception signal storage means 416 that holds the same reception signal read for the second time Received signal comparing means 4 for comparing with a signal
17 and a received signal decoding means 418 which decodes the received signal based on the result of comparison. The received signal decoding means 418 decodes the received signal and sends the prize ball number request signal D to the prize ball number control means 440, or supplies the resend request signal E when the received data do not match, and also the above line. A command for transmitting a line test signal is given to the confirmation means 413, and a rental ball discharge sound request signal, a card insertion sound request signal, and a card discharge sound request signal are supplied to the sound priority control means 470.

【0031】図7には上記遊技盤制御装置400を汎用
のICを使って構成する場合の実施例が示されている。
すなわち、遊技盤制御装置400はマイクロプロセッサ
CPUと、読出し専用メモリROMと、随時読出し書込
み可能なメモリRAMと、ゲートアレイからなる入出力
制御回路I/Oと、遊技盤上の表示器(ランプ)やLE
D、ソレノイド、モータ等の駆動信号を形成するドライ
バDRV、賞球別入賞検出器の信号からノイズを除去し
て入力するフィルタFLT、音優先制御手段470から
の選択信号に基づいて各種効果音を形成するサウンドジ
ェネレータSDGと、サウンドジェネレータSDGの出
力を増幅してスピーカ190を駆動するアンプAMPと
から構成される。
FIG. 7 shows an embodiment in which the game board control device 400 is constructed by using a general-purpose IC.
That is, the game board control device 400 is a microprocessor CPU, a read-only memory ROM, a memory RAM that can be read from and written to at any time, an input / output control circuit I / O including a gate array, and a display (lamp) on the game board. And LE
D, a solenoid, a driver DRV that forms a drive signal for a motor, a filter FLT that removes noise from the signal of the prize detector for each prize ball, and inputs various sound effects based on a selection signal from the sound priority control means 470. The sound generator SDG and the amplifier AMP that amplifies the output of the sound generator SDG and drives the speaker 190.

【0032】図7においては、図5に示されている構成
手段のうち、入賞記憶手段421,422はRAMによ
って、また、賞球数記憶手段430はROMによって、
通信手段410と賞球数制御手段440と遊技制御手段
450はCPUおよびその動作プログラムを記憶するR
OMによって、さらに信号入出力手段460はドライバ
DRV、フィルタFLT、サウンドジェネレータSDG
およびアンプAMPによって、それぞれ構成することが
できる。
In FIG. 7, among the components shown in FIG. 5, the prize storing means 421 and 422 are RAM, and the prize ball number storing means 430 is ROM.
The communication means 410, the number of prize balls control means 440, and the game control means 450 store the CPU and its operation program R
Depending on the OM, the signal input / output unit 460 further includes a driver DRV, a filter FLT, a sound generator SDG.
And the amplifier AMP, respectively.

【0033】なお、RSTはマイクロプロセッサCPU
に対するリセット信号rを発生するリセット発生回路、
PC1,PC2は入出力制御回路I/Oからの同期信号
CKおよび送信データ信号に基づいて排出制御装置60
0との間に接続された信号線を電流駆動する送信駆動手
段としてのフォトカプラ、RCVはフォトカプラPC3
とフィルタFLT2とからなり排出制御装置600によ
り供給された電流を電圧に変換して受信データとする受
信回路である。この実施例のリセット発生回路RST
は、電源投入時にリセット信号を発生するパワーオンリ
セット回路と、クロックジェネレータ等から供給される
基準クロックφcに基づいて2m秒毎にリセットパルス
を発生する分周器とにより構成されている。
RST is a microprocessor CPU
A reset generation circuit for generating a reset signal r for
The PC1 and PC2 are based on the synchronization signal CK and the transmission data signal from the input / output control circuit I / O and the discharge control device 60.
0 is a photocoupler serving as a transmission driving unit that current-drives a signal line connected to 0, and RCV is a photocoupler PC3.
And a filter FLT2, which is a receiving circuit that converts the current supplied by the emission control device 600 into a voltage to generate received data. Reset generation circuit RST of this embodiment
Is composed of a power-on reset circuit that generates a reset signal when the power is turned on, and a frequency divider that generates a reset pulse every 2 msec based on a reference clock φc supplied from a clock generator or the like.

【0034】図8には排出制御装置600の構成例を示
す。この実施例の排出制御装置600は、遊技盤制御装
置400との間の信号の送受信を行なう通信制御手段6
10と、セーフセンサ181からの検出信号に基づいて
上記遊技盤制御装置400に対して賞球数データの要求
信号を送信させる賞球数要求手段620と、排出ソレノ
イド741a,741bを駆動して賞品球の排出や球抜
を行なったり賞品球の排出時に上記通信手段610に対
して賞球排出音の要求送信を行なうように指示したりす
る排出制御手段650と、玉貸し制御装置500からの
玉貸し要求信号BRQに基づいて玉貸し排出数を演算し
排出制御手段610に知らせたり、貸し玉の排出時に上
記通信手段610に対して貸し玉排出音の要求送信を行
なうように指示したりする貸し玉排出制御手段670と
により構成されている。
FIG. 8 shows a structural example of the discharge control device 600. The discharge control device 600 of this embodiment is a communication control means 6 for transmitting and receiving signals to and from the game board control device 400.
10, a prize ball number requesting means 620 for transmitting a request signal of prize ball number data to the game board control device 400 based on a detection signal from the safe sensor 181, and driving the discharge solenoids 741a, 741b to win the prize. Ejection control means 650 for ejecting balls, ejecting balls, or instructing the communication means 610 to perform a request transmission of prize ball ejection sound when ejecting prize balls, and balls from the ball lending control device 500. The lending, which calculates the number of ball lending discharges based on the lending request signal BRQ and informs the emission control means 610, or instructs the communication means 610 to perform a request transmission of the lending ball discharge sound when the lending balls are discharged. It is composed of a ball ejection control means 670.

【0035】上記通信制御手段610は、パワーオンリ
セット回路のような電源投入検出手段611と、電源投
入直後に遊技盤制御装置400から供給される同期用の
クロックCKの受信を確認して回線テストを行なう回線
確認手段612と、遊技盤制御装置400に対して送信
する各種コマンドを記憶する送信情報記憶手段613
と、選択されたコマンドを遊技盤制御装置400に対し
て送信する送信手段614と、賞球数データ要求等に対
して遊技盤制御装置400からの応答がなかったり受信
信号に誤りがあった場合に再送要求を行なう再送制御手
段615と、再送要求を行なう回数を記憶する要求回数
設定手段615aと、遊技盤制御装置400からの信号
を1ビットずつ2度続けて読み込む受信手段616と、
2回連続して送信されてくる信号を記憶する2つの受信
信号記憶手段617a,617bと、2つの受信信号を
比較して誤りを検出する受信信号比較手段618と、受
信した情報を解読して賞球数データならそれを排出制御
手段650に渡したり回線テストなら回線が正常である
ことを上記回線確認手段612に知らせたりする受信情
報解読手段619とから構成されている。
The communication control means 610 confirms the reception of the power-on detection means 611 such as the power-on reset circuit and the synchronization clock CK supplied from the game board control device 400 immediately after the power is turned on, and the line test is performed. Line confirming means 612 for carrying out, and transmission information storing means 613 for storing various commands to be transmitted to the game board control device 400.
And a transmitting means 614 for transmitting the selected command to the game board control device 400, and a case where there is no response from the game board control device 400 to a prize ball number data request or the like or there is an error in the received signal. A re-transmission control means 615 for making a re-transmission request, a request number setting means 615a for storing the number of re-transmission requests, and a receiving means 616 for successively reading the signal from the game board control device 400 twice bit by bit.
Two reception signal storage means 617a and 617b for storing the signals transmitted twice in succession, reception signal comparison means 618 for comparing the two reception signals to detect an error, and decoding the received information It comprises a received information decoding means 619 for passing the prize ball number data to the discharge control means 650, and for a line test to inform the line confirmation means 612 that the line is normal.

【0036】排出制御手段650は、賞球排出が終了す
るごとに入賞球検出分離装置180内の分離用ソレノイ
ド182を駆動したり、待機球検出器がオンしているこ
とを条件に賞球数データ(受信データ)および排出セン
サ730a,730bからの検出信号に基づいて排出ソ
レノイド741a,741bを駆動して賞品球の排出を
行なったり、賞品球の排出駆動の際に賞球排出表示器1
12を点灯させたり、球抜スイッチ750からのオン信
号によって賞球排出樋の途中に設けられた流路切り換え
弁(球抜ソレノイド)を切換えかつ排出ソレノイド74
1a,741bを駆動して貯留タンク151内の予備球
をすべて排出させる制御を行なう。
The discharge control means 650 drives the separating solenoid 182 in the winning ball detecting / separating device 180 every time the winning ball discharging is completed, and the number of winning balls is provided on condition that the standby ball detector is turned on. Based on the data (reception data) and the detection signals from the discharge sensors 730a and 730b, the discharge solenoids 741a and 741b are driven to discharge the prize balls, or the prize ball discharge indicator 1 is used when the prize balls are discharged.
12 is turned on, or the ON / OFF signal from the ball removal switch 750 is used to switch the flow path switching valve (ball removal solenoid) provided in the middle of the prize ball discharge trough and the discharge solenoid 74.
Control is performed to drive 1a and 741b to discharge all the spare balls in the storage tank 151.

【0037】貸し玉排出制御手段670は、貸し玉への
変換レート(100円分の貸し玉数)を記憶する玉貸数
設定手段(例えばROM)と、玉貸し制御装置500か
らの玉貸し要求信号BRQおよびカード有無信号CON
と賞球数要求手段620からの賞球排出中を示す信号と
に基づいて玉貸排出制御を開始すべきか判定する玉貸開
始判定手段と、この玉貸開始判定手段からの玉貸開始要
求信号に基づいて貸し玉の排出数を上記玉貸数設定手段
より読み出して上記排出制御手段650に渡す貸し玉排
出数決定手段と、玉貸し制御装置500に対して玉貸し
排出が可能な状態にあることを知らせる玉貸し可能信号
RDYや1回(100円分)の貸し玉の排出が終了した
ことを知らせる貸し玉排出終了信号EXS、賞球数要求
手段620に対して貸し玉排出制御中であることを知ら
せる信号xを形成する排出制御信号形成手段等から構成
されている。上記賞球数要求手段620は、セーフセン
サ181から入賞検出信号が入力されても玉貸し排出中
であれば、賞球排出の開始を遅らせる。
The rental ball discharge control means 670 is a ball lending number setting means (for example, a ROM) for storing the conversion rate to the rental ball (the number of rental balls for 100 yen), and a ball lending request from the ball lending control device 500. Signal BRQ and card presence / absence signal CON
And the ball lending start request signal from the ball lending start determination means, which determines whether or not the ball lending discharge control should be started based on On the basis of the above, the number of discharged balls for lending is read out from the number-of-lending-lens setting means and passed to the discharge control means 650, and the number of discharged balls for lending is determined, and the ball lending control device 500 is in a state where ball lending can be discharged. A ball lending signal RDY indicating that the rental ball discharge completion signal EXS indicating that the discharge of one (100 yen) rental ball is completed, and the prize ball number requesting means 620 are under the ball rental control. It is composed of a discharge control signal forming means for forming a signal x for notifying that. The prize ball number requesting means 620 delays the start of prize ball discharge if the ball lending is being discharged even if the winning detection signal is input from the safe sensor 181.

【0038】上記排出制御装置600は、図9に示すよ
うに、ROMやRAM等を内蔵したシングルチップマイ
コンCPUおよび入出力制御回路I/O、フォトカプラ
PC、ドライバDRV、フィルタFLT等の汎用ICや
ディスクリートの抵抗R、コンデンサC、回線モニタ用
発光ダイオードLED、コネクタCNTを使って構成す
ることができる。一例として本実施例では、500kH
zの周波数のシステムクロックで動作するCPUを使用
している。また、回線モニタランプLEDは玉貸し制御
装置500との間の送受信用信号線上に介装され、信号
線の断線を検出できるようになっている。
As shown in FIG. 9, the discharge control device 600 is a general-purpose IC such as a single-chip microcomputer CPU having a built-in ROM or RAM and an input / output control circuit I / O, a photocoupler PC, a driver DRV, a filter FLT, etc. Alternatively, it can be configured by using a discrete resistor R, a capacitor C, a line monitor light emitting diode LED, and a connector CNT. As an example, in this embodiment, 500 kH
A CPU operating with a system clock of frequency z is used. Further, the line monitor lamp LED is provided on the signal line for transmission / reception with the ball lending control device 500 so that disconnection of the signal line can be detected.

【0039】図10は玉貸し制御装置500の構成例を
示す。この実施例の玉貸し制御装置500は、シングル
チップマイコン等からなる制御部510と、この制御部
510とカードリーダ制御装置250との間のデータ送
受信のインターフェースを行なうトランシーバ502
と、セグメント型表示器からなる残高表示器122およ
び挿入残高表示器220の駆動信号を形成する表示駆動
手段503aおよび503bと、玉貸可能表示ランプ1
26および玉貸有効表示ランプ230を駆動するドライ
ブ回路DRV1,DRV2と、返却ボタン124および
変換ボタン123からの信号を受けて上記制御部501
に入力するバッファ504a,504bと、カード管理
装置800に対してカード決済信号jを供給するリレー
505と、上記変換スイッチ123の一回の操作に対す
る排出回数(100円分を最小排出単位とする)を設定
する玉貸し数設定手段506等によって構成されてい
る。
FIG. 10 shows a configuration example of the ball lending control device 500. The ball lending control device 500 of this embodiment includes a control unit 510 including a single-chip microcomputer, and a transceiver 502 that interfaces data transmission / reception between the control unit 510 and the card reader control device 250.
And display driving means 503a and 503b for forming drive signals for the balance indicator 122 and the insertion balance indicator 220, which are segment-type indicators, and the ball lending indicator lamp 1
26 and the drive circuits DRV1 and DRV2 for driving the ball lending validity display lamp 230, and signals from the return button 124 and the conversion button 123.
Input buffers 504a and 504b, a relay 505 that supplies a card settlement signal j to the card management device 800, and the number of discharges per operation of the conversion switch 123 (100 yen is the minimum discharge unit). It is configured by a ball lending number setting means 506 and the like.

【0040】また、上記制御部510は、カードリーダ
制御装置250からのデータを読み込んでカードの残高
データを判定しカードがカードリーダ内に存在すること
を示すカード有無信号CONを出力したり挿入残高表示
器220に対する表示データを形成するカード残高判定
手段511と、玉貸し排出があったときにカード残高を
減算して残高表示器220に対する表示データを形成し
たりカードリーダ制御装置250に対する書込データや
指令を形成するカード残高減算手段512と、返却ボタ
ン124がオンされたりカード残高が「0」になったり
排出エラーがあったときにカードリーダ制御装置250
に対しカード返却指令を与えるカード返却要求手段51
3と、排出制御装置600からの玉貸し排出終了信号E
XSに基づいて1単位分の玉貸しがあったことをカード
管理装置装置800に知らせるためのカード使用情報出
力手段514と、変換ボタン123からの変換要求信号
が入ったときにカード残高や玉貸し可能信号RDY等に
基づいて玉貸しが可能か否か判定する玉貸可能判定手段
515と、玉貸し数設定手段506の設定数と排出終了
信号EXSに基づいて残りの玉貸し排出回数を決定する
玉貸し回数制御手段516と、玉貸可能判定手段515
からの玉貸し要求信号の発生を許可する制御信号と玉貸
し回数制御手段517からの信号に基づいて上記上記排
出制御装置600に対する玉貸し要求信号BRQを発生
する玉貸要求制御手段517等から構成されている。
The control unit 510 also reads the data from the card reader control unit 250 to determine the balance data of the card and outputs a card presence / absence signal CON indicating that the card is present in the card reader or the inserted balance. A card balance determination means 511 that forms display data for the display device 220, and subtracts the card balance when there is a ball lending and discharges to form display data for the balance display device 220 or write data for the card reader control device 250. And the card balance subtraction means 512 for forming a command and the card reader controller 250 when the return button 124 is turned on, the card balance becomes “0”, or there is an ejection error.
Card return requesting means 51 for giving a card return instruction to
3 and the ball lending discharge end signal E from the discharge control device 600
A card usage information output unit 514 for notifying the card management device 800 that there has been a lend for one unit based on XS, and a card balance or a ball lend when a conversion request signal from the conversion button 123 is input. The ball lending availability determining means 515 for determining whether or not ball lending is possible based on the availability signal RDY and the like, and the remaining number of ball lending discharges is determined based on the set number of the ball lending number setting means 506 and the discharge end signal EXS. Ball lending frequency control means 516 and ball lending possibility determination means 515
From a ball lending request signal BRQ to the discharge control device 600 based on a control signal permitting the generation of a ball lending request signal from the player and a signal from the ball lending frequency control means 517. Has been done.

【0041】また、この実施例では、上記玉貸し要求信
号BRQと玉貸し排出終了信号EXSとから、玉貸し要
求送信後所定時間内に排出が開始されなかったり玉貸し
排出開始後所定時間内に一連の玉貸し排出が終了しなか
った場合に、排出エラーと判定して上記カード返却要求
手段513に対してカード返却指令を与える排出開始時
間監視手段518および排出時間監視手段519が設け
られている。さらに、玉貸し可能判定手段515は、上
記カード残高判定手段511から信号および排出制御装
置600からの玉貸し可能信号RDYに基づいてドライ
ブ回路507を駆動して、上記玉貸し変換ボタン124
が有効である間だけ玉貸し可能表示ランプ126を点灯
させ、玉貸し排出が実行されている間は玉貸し可能表示
ランプ126を消灯させるようになっている。なお、上
記玉貸し数設定手段506はROMのような記憶手段も
しくはスライドスイッチのような設定器によって構成す
ることができる。
Further, in this embodiment, from the ball lending request signal BRQ and the ball lending discharge end signal EXS, the discharge is not started within a predetermined time after the ball lending request is transmitted, or the ball lending discharge is started within a predetermined time. Discharge start time monitoring means 518 and discharge time monitoring means 519 for determining a discharge error and giving a card return command to the card return requesting means 513 when a series of ball lending and discharging are not completed are provided. . Further, the ball lending possibility determining unit 515 drives the drive circuit 507 based on the signal from the card balance determining unit 511 and the ball lending possible signal RDY from the emission control device 600, and the ball lending conversion button 124.
The ball lending possible display lamp 126 is turned on only when is enabled, and the ball lending possible display lamp 126 is turned off while the ball lending is being executed. The ball lending number setting means 506 can be configured by a storage means such as a ROM or a setting device such as a slide switch.

【0042】図11には上記玉貸し制御装置500を汎
用のICを使って構成する場合の実施例が示されてい
る。すなわち、玉貸し制御装置500は、読出し専用メ
モリROMおよび随時読出し書込み可能なメモリRA
M、シリアル通信用のシリアルインタフェースSIFを
内蔵したシングルチップマイコンCPUと、カードリー
ダ制御装置250との間のシリアル通信を行なうトラン
シーバTRSと、セグメント型残高表示器122(挿入
残高表示器220)の駆動信号を形成するフォトカプラ
型ドライバDRV11,DRV12(DRV13,DR
V14)と、玉貸し変換スイッチからの信号をCPUに
入力するためのフォトカプラPC21、玉貸し可能表示
器126の駆動信号を形成するフォトカプラ型ドライバ
DRV21と、排出制御装置600との間の送受信信号
の変換を行なうフォトカプラPC11−PC14と、玉
貸し数設定用スイッチ列SW−ARYと、カード管理装
置800に対してカード決済信号jを供給するリレーR
LY等から構成される。また、排出制御装置600との
間の送受信用信号線上には、信号線の断線を検出するた
めの回線モニタランプLED11−LED14が介装さ
れている。
FIG. 11 shows an embodiment in which the ball lending control device 500 is constructed by using a general-purpose IC. That is, the ball lending control device 500 includes a read-only memory ROM and a memory RA that can be read and written at any time.
M, a single-chip microcomputer CPU with a built-in serial interface SIF for serial communication, a transceiver TRS for performing serial communication with the card reader control device 250, and driving of a segment balance indicator 122 (insertion balance indicator 220). Photocoupler drivers DRV11, DRV12 (DRV13, DR) that form signals
V14), a photocoupler PC21 for inputting a signal from the ball lending conversion switch to the CPU, a photocoupler driver DRV21 forming a drive signal for the ball lendable indicator 126, and transmission / reception between the discharge control device 600. Photo couplers PC11-PC14 for converting signals, a ball lending number setting switch array SW-ARY, and a relay R for supplying a card settlement signal j to the card management device 800.
It is composed of LY and the like. Further, line monitor lamps LED11-LED14 for detecting disconnection of the signal line are provided on the signal line for transmission / reception with the emission control device 600.

【0043】次に、上述した遊技盤制御装置400によ
って行なわれる遊技盤全体の制御手順の一例を図12を
参照して詳細に説明する。この制御フローは、遊技盤制
御装置400の電源が投入されたあとタイマ割込みによ
り所定時間(例えば2msec)毎に実行される。この割込
み処理が開始されると、先ず、遊技盤102に設けられ
ている賞球別入賞検出器490その他各種スイッチ(セ
ンサを含む)からの信号を読み込むスイッチ入力処理を
行なう(ステップS80)。次に、リセット回路RST
からのパワーオンリセット信号をチェックして電源が投
入されたか判定する(ステップS81)。そして、電源
が投入されたと判定すると、RAMや入出力ポートの初
期化を行なって割込み処理を終了する(ステップS8
2)。
Next, an example of the control procedure of the entire game board performed by the above-mentioned game board control device 400 will be described in detail with reference to FIG. This control flow is executed every predetermined time (for example, 2 msec) by the timer interrupt after the power of the game board control device 400 is turned on. When this interruption process is started, first, a switch input process for reading signals from the prize-winning prize detector 490 and other various switches (including sensors) provided on the game board 102 is performed (step S80). Next, the reset circuit RST
The power-on reset signal from is checked to determine whether the power is turned on (step S81). When it is determined that the power is turned on, the RAM and the input / output port are initialized and the interrupt processing is finished (step S8).
2).

【0044】一方、ステップS81で“No”すなわち
電源投入済みであると判定すると、ステップS83へ移
行して、排出制御装置600に対して供給する同期信号
としてのクロックCKの出力処理(図13参照)を行な
う。それから、賞球別入賞検出器490の検出信号を読
込み計数する賞球スイッチ入力処理(図14参照)、排
出制御装置600との間のコマンドやデータの送受信処
理(図15−図18参照)および遊技機内の各種スイッ
チやセンサの信号に基づいて不正がなされていないか調
べる不正検出処理とその解除処理を行なった後(ステッ
プS84−S86)、この不正検出処理中で設定される
フラグをチェックして不正があったか否か判定する(ス
テップS87)。
On the other hand, if "No" in the step S81, that is, if it is determined that the power has been turned on, the process proceeds to a step S83 to output the clock CK as a synchronization signal to be supplied to the discharge control device 600 (see FIG. 13). ). Then, the prize ball switch input processing (see FIG. 14) for reading and counting the detection signal of the prize detecting detector 490 for each prize ball, the transmission / reception processing of commands and data with the discharge control device 600 (see FIGS. 15 to 18), and After performing fraud detection processing for checking whether fraud has been made based on the signals of various switches and sensors in the gaming machine and its cancellation processing (steps S84-S86), the flag set in this fraud detection processing is checked. Then, it is determined whether or not there is a fraud (step S87).

【0045】ステップS87で不正が検出されると、遊
技機に設けられている表示器を点滅させたり、スピーカ
190を駆動して警報を発するなどの不正処理(ステッ
プS89)を実行して割込み処理を終了する。ステップ
S87で不正なしと判定すると、ステップS88へ移行
して遊技盤102に設けられている役物の駆動したり表
示器を点灯、消灯したり、スピーカにより賞球排出音等
の効果音を発生させるために出力ポートを設定したりす
るゲーム処理を行なう。
When an injustice is detected in step S87, an injustice process (step S89) such as blinking a display provided in the gaming machine or driving a speaker 190 to give an alarm is executed to perform an interrupt process. To finish. If it is determined in step S87 that there is no injustice, the process proceeds to step S88, in which a character provided on the game board 102 is driven, a display is turned on or off, and a sound effect such as a prize ball discharge sound is generated by a speaker. A game process such as setting an output port is performed in order to perform the above.

【0046】図13には、上記各種処理のうちクロック
信号出力処理の制御手順の一例が示されている。この処
理が開始されると、先ずステップS90でクロック用の
タイマカウンタをインクリメント(+1)した後、ステ
ップS91でそのタイマカウンタ値が「2」以上になっ
たか判定し、“No”なら処理を終了して次の割込み処
理に入ったときに再びステップS90で上記タイマカウ
ンタをインクリメントする。そして、ステップS91で
“Yes”と判定されると、ステップS92へ移行して
上記をクリアしてからクロック信号の出力状態を反転さ
せて本ルーチンを終了する(ステップS93)。これに
よって、2m秒の割込み毎にこのタイマカウンタは
「0」と「1」と「2」の値を繰り返し、「2」になる
度にクロックCKが反転される。その結果、図60に示
すように、割込み周期すなわちリセットパルスrの4倍
の周期(8m秒)を持つクロックCKが出力される。こ
の実施例では、このクロックCKが排出制御装置600
に対して通信の際の同期信号として供給される。
FIG. 13 shows an example of the control procedure of the clock signal output process of the above various processes. When this process is started, first, the clock timer counter is incremented (+1) in step S90, and then it is determined in step S91 whether the timer counter value is "2" or more. If "No", the process ends. Then, when the next interrupt process is started, the timer counter is incremented again in step S90. Then, if "Yes" is determined in the step S91, the process shifts to a step S92 to clear the above, and then the output state of the clock signal is inverted and the present routine is finished (step S93). As a result, this timer counter repeats the values of "0", "1" and "2" at every 2 msec interrupt, and the clock CK is inverted every time it becomes "2". As a result, as shown in FIG. 60, a clock CK having an interrupt period, that is, a period (8 msec) four times as long as the reset pulse r is output. In this embodiment, the clock CK is the emission control device 600.
Is supplied as a synchronizing signal for communication.

【0047】図14には、図12に示されている各種処
理のうち賞球スイッチ入力処理の制御手順の一例が示さ
れている。この入力処理では、「7」個の賞品球を与え
る入賞口へ入賞した球を検出する7個賞球スイッチまた
は「10」個の賞品球を与える入賞口へ入賞した球を検
出する10個賞球スイッチがオンしているか判定する
(ステップS94,S95)。そして、7個賞球スイッ
チがオンのときはステップS96へ移行して7個賞球記
憶が「254個」以下か判定し、“Yes”なら7個賞
球記憶を「1」加算する(ステップS97)。また、1
0個賞球スイッチがオンのときはステップS98へ移行
して10個賞球記憶が「254個」以下か判定し、“Y
es”なら7個賞球記憶を「1」加算する(ステップS
99)。これによって、各入賞球を最大254個まで記
憶しておくことができる。
FIG. 14 shows an example of the control procedure of the prize ball switch input process among the various processes shown in FIG. In this input processing, a 7-piece award switch for detecting a ball that has won a winning opening that gives "7" prize balls or a 10-piece award that detects a ball that has won a winning opening that gives "10" prize balls It is determined whether the ball switch is on (steps S94 and S95). When the 7 award ball switch is turned on, the process proceeds to step S96, and it is determined whether the 7 award ball memory is "254 or less", and if "Yes", the 7 award ball memory is incremented by "1" (step 1). S97). Also, 1
When the 0 award ball switch is turned on, the process proceeds to step S98, and it is determined whether or not the 10 award ball memory is "254" or less, and "Y
If "es", the memory of seven prize balls is incremented by "1" (step S
99). As a result, a maximum of 254 prize winning balls can be stored.

【0048】図15A〜図15Dには、上記各種処理の
うちデータの送受信処理の制御手順の一例が示されてい
る。このうち、図15Aが送信処理フローで、図15B
〜図15Dが受信処理フローである。この送受信処理で
は、先ずステップS801で、後述のステップS885
(図15D参照)において設定される8ビットの送信ビ
ットカウンタが「0」よりも大きいか否か調べることで
送信要求があるかどうか判定する。送信ビットカウンタ
はデータ受信処理の最後のステップで排出制御装置60
0に対する応答を送信する際に、8ビットのデータもし
くはコマンドを送信するために、用意されているもの
で、このビットカウンタが「8」に設定されるとステッ
プS801で“Yes”と判定されてステップS803
へ移行し、送信処理が開始される。
15A to 15D show an example of a control procedure of data transmission / reception processing among the above various processing. Of these, FIG. 15A is a transmission processing flow, and FIG.
15D is a reception processing flow. In this transmission / reception process, first in step S801, step S885 described later is executed.
It is determined whether there is a transmission request by checking whether the 8-bit transmission bit counter set in (see FIG. 15D) is larger than “0”. The transmission bit counter is the discharge control device 60 at the last step of the data reception process.
It is prepared for transmitting 8-bit data or command when transmitting a response to 0. When this bit counter is set to "8", it is determined as "Yes" in step S801. Step S803
Then, the transmission process is started.

【0049】上記ステップS803では遊技盤制御装置
400から供給されるクロックCKがハイレベルか否か
判定し、ロウレベルなら本ルーチンを終了する。クロッ
クCKのロウレベルの期間に送信データを切り換える
と、排出制御装置600がデータの読込みをしていると
きにデータが代わるおそれがあるので、それを回避する
ためである。上記ステップS803で“Yes”と判定
すると、ステップS805へ移行してクロック用タイマ
カウンタが「0」か否か判定する。本ルーチンの割込み
処理のクロックは2m秒であるのに対し、クロックCK
の周期は8m秒であるので、1周期の間に2回ハイレベ
ルと判定することがあり、そのうちハイレベルへの変化
直後のタイミングでデータもしくはコマンドを送信させ
るようにするためである。
In step S803, it is determined whether or not the clock CK supplied from the game board control device 400 is at high level, and if it is at low level, this routine is ended. This is because if the transmission data is switched during the low level period of the clock CK, the data may be replaced while the emission control device 600 is reading the data, so that it is avoided. If "Yes" is determined in the above step S803, the process proceeds to step S805 and it is determined whether or not the clock timer counter is "0". The clock for interrupt processing in this routine is 2 ms, while the clock CK
Since the cycle is 8 ms, the high level may be determined twice during one cycle, and the data or command is transmitted at the timing immediately after the change to the high level.

【0050】ステップS805で“Yes”と判定する
と、ステップS807へ進んで送信ポートに送信バッフ
ァ内の該当ビット(送信ビットカウンタの指示するビッ
ト)の内容を出力する。それから、送信ビットカウンタ
の値をデクリメント(−1)した後(ステップS80
9)、送信ビットカウンタの値になったか判定する(ス
テップS811)。ここで、“No”のときは一旦処理
を終了し、再び本ルーチンが実行されたときに上記手順
を繰り返して送信バッファ内の次のビットを送信する。
If "Yes" is determined in step S805, the flow advances to step S807 to output the content of the corresponding bit (the bit designated by the transmission bit counter) in the transmission buffer to the transmission port. Then, after decrementing (-1) the value of the transmission bit counter (step S80)
9), it is determined whether the value of the transmission bit counter has been reached (step S811). Here, in the case of "No", the process is once terminated, and when the present routine is executed again, the above procedure is repeated to transmit the next bit in the transmission buffer.

【0051】8ビットのデータがすべて送信されると、
ステップS811での判定が“Yes”となってステッ
プS813へ進み、送信回数を「1」だけ減算する。そ
して、次のステップS815で送信回数が「0」になっ
たか判定し、“Yes”のときは送信処理を終了し、
“No”のときは再び送信ビットカウンタを「8」に設
定する。これによって、設定された回数だけ同一データ
が繰り返し送信される。この実施例では、回線テストコ
マンドの送信のときは1回、また賞球数データの送信の
ときは2回にそれぞれ設定される(後述のステップS8
59,S883参照)ので、その回数だけ送信がなされ
る。
When all 8-bit data is transmitted,
The determination in step S811 becomes "Yes", the flow proceeds to step S813, and the transmission count is decremented by "1". Then, in the next step S815, it is determined whether or not the number of transmissions has become “0”, and if “Yes”, the transmission processing is terminated,
If "No", the transmission bit counter is set to "8" again. As a result, the same data is repeatedly transmitted the set number of times. In this embodiment, the line test command is set to once and the prize ball number data is set to twice (step S8 described later).
59, S883), so the transmission is performed that number of times.

【0052】次ステップS801で“No”と判定され
て図15Bの受信処理に移行すると、先ずステップS8
21で同期用のクロック信号CKがロウレベルか否か判
定する。そして、クロックCKがハイレベルであればス
テップS845(図15C)へジャンプする。排出制御
装置600は、図60に破線で示すごとく、上記クロッ
クCKに同期してデータ(コマンド)を送信してくるよ
うになっており、信号の遅延を考えると、クロックCK
のハイレベルの期間T1にデータが遷移するので、その
間のデータ読込みを回避するためである。なお、図60
において、クロック信号CKの実線と破線との変化のず
れΔTは信号線上の遅延のため生じる時間差(往復)で
ある。受信するデータSDの遅延は片道だけであるので
クロックCKの遅延よりも少ない。
When it is judged "No" in the next step S801 and the process shifts to the receiving process of FIG. 15B, first, the step S8 is performed.
In step 21, it is determined whether or not the clock signal CK for synchronization is low level. If the clock CK is at high level, the process jumps to step S845 (FIG. 15C). The discharge control device 600 transmits data (command) in synchronization with the clock CK as shown by the broken line in FIG. 60. Considering the delay of the signal, the clock CK
This is for avoiding reading of data during the transition of data during the high level period T1. Note that FIG.
In, the deviation ΔT of the change between the solid line and the broken line of the clock signal CK is the time difference (round trip) caused by the delay on the signal line. The delay of the data SD to be received is only one way, so that it is less than the delay of the clock CK.

【0053】ステップS821で“Yes”すなわちク
ロックCKがロウレベルであると判定すると、ステップ
S823へ進んで、入出力ポートより1ビットの受信デ
ータを読み込む(図60タイミングt1)。それから、
図13のサブルーチンで更新されるクロック用タイマカ
ウンタを調べて(ステップS825)、カウンタの値が
「0」のときは上記ステップS823で読み込んだ受信
データをメモリに記憶(ステップS827)してからス
テップS829へ進む。一方、ステップS825でクロ
ック用タイマカウンタの値が「0」でないときは直ちに
ステップS829へ移行して、タイマカウンタの値が
「1」か否か判定する。そして、ステップS829の判
定で“No”のときはステップS845へジャンプす
る。
If "Yes" in the step S821, that is, if it is determined that the clock CK is at the low level, the process proceeds to a step S823 to read 1-bit received data from the input / output port (timing t1 in FIG. 60). then,
The clock timer counter updated in the subroutine of FIG. 13 is checked (step S825). If the counter value is "0", the received data read in step S823 is stored in the memory (step S827), and then the step Proceed to S829. On the other hand, when the value of the clock timer counter is not "0" in step S825, the process immediately proceeds to step S829 to determine whether the value of the timer counter is "1". If the determination in step S829 is "No", the process jumps to step S845.

【0054】また、再び当該サブルーチンが実行され、
ステップS823で2回目の受信データを読み込んで
(図60タイミングt2)から、ステップS829へ来
たときに“Yes”と判定するとステップS831へ進
んで、上記ステップS823で読み込んだ2回目の受信
データ(1ビット)とステップS827で記憶しておい
た1回目の読込みデータとを比較する。その結果、同一
であれば正しく読込みがなされたとみなしてステップS
833へ進んで、読込みビットカウンタの値が「0」か
否か判定する。そして、「0」ならステップS835で
受信したビットがロウレベルすなわち受信データの先頭
ビット(いわゆるスタートビット)であるか否か判定
し、“No”ならステップS845へジャンプ、“Ye
s”ならステップS841へ進んで受信バッファの該当
ビットへ受信データ(1ビット)を書き込んでから、上
記読込みビットカウンタをインクリメント(+1)する
(ステップS843)。
The subroutine is executed again,
After the second reception data is read in step S823 (timing t2 in FIG. 60), when it is determined to be “Yes” at step S829, the process proceeds to step S831, and the second reception data read in step S823 ( (1 bit) and the first read data stored in step S827 are compared. As a result, if they are the same, it is considered that the reading was correctly performed, and the step S
In step 833, it is determined whether the value of the read bit counter is "0". Then, if "0", it is determined whether or not the bit received in step S835 is low level, that is, the head bit (so-called start bit) of the received data, and if "No", the process jumps to step S845 and "Yes".
If s ″, the flow advances to step S841 to write the reception data (1 bit) into the corresponding bit of the reception buffer, and then the read bit counter is incremented (+1) (step S843).

【0055】一方、上記ステップS831の判定で1回
目と2回目の読込みデータが一致しなかったときは、ス
テップS837へ移行して読込みビットカウンタが
「0」より大きいか否か判定し、「0」のときはステッ
プS845へジャンプする。また、読込みビットカウン
タが「1」以上すなわち先頭ビット以外を示していると
きはデータエラーフラグに“1”を立ててからステップ
S841へ進み、受信バッファの該当ビットへ受信デー
タ(1ビット)を書き込んでから、上記読込みビットカ
ウンタをインクリメントして図15CのステップS84
5へ移行する。とりあえず8ビットのデータはすべて読
み込んで、最後にデータエラーに対処するようにするた
めである。
On the other hand, if the read data of the first time and the read data of the second time do not match in the determination of step S831, the flow shifts to step S837 to determine whether the read bit counter is larger than "0", and "0" is read. , The process jumps to step S845. If the read bit counter is "1" or more, that is, other than the first bit, the data error flag is set to "1" and the process proceeds to step S841 to write the received data (1 bit) to the corresponding bit of the reception buffer. Then, the read bit counter is incremented and step S84 of FIG. 15C is executed.
Go to 5. This is because all the 8-bit data is read for the time being, and finally a data error is dealt with.

【0056】ステップS845では、読込みビットカウ
ンタが「8」になったか否か判定し、“No”すなわち
未だ8ビットの受信データを全部読み込んでいないとき
は一旦本ルーチンを終了する。そして、上記読込み動作
を繰り返すうちに、ステップS845で“Yes”と判
定されると、ステップS847へ進み上記読込みビット
カウンタを「0」にクリアしてから、データエラーフラ
グに“1”が立っているか判定する(ステップS84
9)。ここで“Yes”ならステップS851へ進んで
データエラーフラグを“0”にクリアして本ルーチンを
終了する。すなわち、排出制御装置600からのデータ
送信に対して何ら応答しないで受信処理を終了する。た
だし、排出制御装置600のフロー(後述)の方で、こ
のような無応答に対しては再送等の処理を行なうことで
対処するようになっている。
In step S845, it is determined whether or not the read bit counter has reached "8". If "No", that is, if all the 8-bit received data has not been read yet, this routine is once terminated. When it is determined to be “Yes” in step S845 while repeating the read operation, the process proceeds to step S847, the read bit counter is cleared to “0”, and then the data error flag is set to “1”. It is determined whether or not (step S84
9). If "Yes" here, the flow advances to step S851 to clear the data error flag to "0", and the present routine ends. That is, the reception process ends without any response to the data transmission from the emission control device 600. However, in the flow of the emission control device 600 (described later), such non-response is dealt with by performing processing such as retransmission.

【0057】一方、ステップS849での判定結果が
“No”のときはステップS853へ移行して、受信し
た8ビットのデータが「回線テストコマンド」か否か判
定し、“Yes”のときはステップS855へ進んで、
回線テスト受信済みフラグを“1”にセットしてから、
送信バッファに「回線テストコマンド」を設定する(ス
テップS857)。回線テストは、遊技盤制御装置40
0と排出制御装置600の双方から「回線テストコマン
ド」を送信してそれを確認することで行なうようになっ
ているためである。送信バッファに「回線テストコマン
ド」を設定した後は、ステップS859へ進んで送信回
数を「1」にセットしてから図15DのステップS88
5へジャンプして送信ビットカウンタを「8」に設定し
て本ルーチンを終了する。送信ビットカウンタを「8」
に設定するのは、前述した送信ルーチン(図15A)で
の送信開始条件とするためである。
On the other hand, if the decision result in the step S849 is "No", the flow shifts to a step S853, and it is decided whether or not the received 8-bit data is a "line test command". Go to S855,
After setting the line test received flag to "1",
The "line test command" is set in the transmission buffer (step S857). The line test is the game board controller 40
This is because the "line test command" is transmitted from both 0 and the emission control device 600 and is confirmed. After setting the "line test command" in the transmission buffer, the process proceeds to step S859, the number of transmissions is set to "1", and then step S88 of FIG. 15D.
The routine jumps to step 5, sets the transmission bit counter to "8", and ends this routine. Send bit counter to "8"
Is set as the transmission start condition in the above-described transmission routine (FIG. 15A).

【0058】また、上記ステップS853で“No”す
なわち受信した8ビットのデータが「回線テストコマン
ド」でないときは、ステップS861へ移行して回線テ
スト受信済みフラグが既に“1”にセットされているか
判定し、“No”なら本ルーチンを終了する。回線テス
トを確認する前に他のコマンドが送信されてきても無視
するためである。ステップS861で回線テスト受信済
みフラグが既に“1”にセットされていると判定したと
きは、図15DのステップS863へ移行する。
If "No" in the step S853, that is, if the received 8-bit data is not the "line test command", the process advances to step S861 to see if the line test received flag is already set to "1". If it is determined to be "No", this routine ends. This is because even if another command is sent before checking the line test, it is ignored. If it is determined in step S861 that the line test reception completion flag has already been set to "1", the flow shifts to step S863 in FIG. 15D.

【0059】ステップS863では受信した8ビットの
データが「賞球要求コマンド」であるか否か判定し(ス
テップS865,S867)、“Yes”のときはメモ
リ内の7個賞球記憶と10個賞球記憶を調べて、いずれ
の記憶もないときはステップS869で送信バッファに
賞球数データとして15個を設定する。一方、ステップ
S865で7個賞球記憶があると判定したときはステッ
プS871へ移行して、送信バッファに賞球数データと
して7個を設定し、当該7個賞球記憶数を「1」だけ減
算する(ステップS873)。また、ステップS867
で10個賞球記憶があると判定したときはステップS8
75へ移行して、送信バッファに賞球数データとして1
0個を設定し、当該10個賞球記憶数を「1」だけ減算
する(ステップS877)。それから、ステップS88
3へ進んで送信回数を「2」に設定してから送信ビット
カウンタを「8」に設定して本ルーチンを終了する(ス
テップS885)。
In step S863, it is determined whether or not the received 8-bit data is a "prize ball request command" (steps S865 and S867). The award ball memory is checked, and if none is stored, 15 award ball number data is set in the transmission buffer in step S869. On the other hand, if it is determined in step S865 that there are 7 award balls stored, the process proceeds to step S871 and 7 is set as the award ball number data in the transmission buffer, and the number of the 7 award balls stored is "1". Subtract (step S873). Also, step S867
If it is determined that there is a memory of 10 prize balls in step S8
Move to 75, 1 as prize ball number data in the transmission buffer
Zero is set, and the number of stored 10 prize balls is subtracted by "1" (step S877). Then, step S88
In step 3, the number of transmissions is set to "2", the transmission bit counter is set to "8", and this routine is finished (step S885).

【0060】ステップS863で受信した8ビットのデ
ータが「賞球要求コマンド」でないと判定したときは、
ステップS879へ移行して受信データが「賞球要求コ
マンド」であるか否か判定し、“No”ならステップS
887へ移行し、“Yes”なら送信バッファに既に賞
球数データが設定されているか判定する。そして、送信
バッファに既に賞球数データが設定されているときは、
ステップS883へ移行して送信回数を「2」に設定し
てから送信ビットカウンタを「8」に設定(ステップS
885)してから送信処理へ移行し、“No”ならステ
ップS887へ移行する。
When it is determined that the 8-bit data received in step S863 is not the "prize ball request command",
In step S879, it is determined whether or not the received data is a "prize ball request command". If "No", step S879 is performed.
The process proceeds to 887, and if “Yes”, it is determined whether or not prize ball number data is already set in the transmission buffer. Then, when the prize ball number data is already set in the transmission buffer,
In step S883, the number of transmissions is set to "2" and then the transmission bit counter is set to "8" (step S883).
885) and then the process proceeds to the transmission process. If “No”, the process proceeds to step S887.

【0061】上記ステップS887では、排出制御装置
600から購入音(玉貸し変換音)の要求コマンドを受
信したか判定し、“Yes”ならステップS893で購
入音出力フラグを“1”にセットして本ルーチンを終了
する。このフラグは、図12中のゲーム処理(ステップ
S88)にて参照され、スピーカを駆動して所定の効果
音を発生させる。
In step S887, it is determined whether a request command for a purchase sound (lens conversion sound) is received from the emission control device 600. If "Yes", the purchase sound output flag is set to "1" in step S893. This routine ends. This flag is referred to in the game process (step S88) in FIG. 12, and drives the speaker to generate a predetermined sound effect.

【0062】上記ステップS887で“No”のときは
ステップS889へ進み、排出制御装置600からカー
ド挿入音の要求コマンドを受信したか判定し、“Ye
s”ならステップS895でカード挿入音出力フラグを
“1”にセットして本ルーチンを終了する。また、上記
ステップS889で“No”のときはステップS890
へ進み、排出制御装置600からカード排出音の要求コ
マンドを受信したか判定し、“Yes”ならステップS
895でカード排出音出力フラグを“1”にセットして
本ルーチンを終了する。これらのフラグは、図12中の
ゲーム処理(ステップS88)にて参照され、スピーカ
を駆動して所定の効果音を発生させる。
If "No" in step S887, the flow advances to step S889 to determine whether a card insertion sound request command has been received from the ejection control device 600, and "Yes"
If "s", the card insertion sound output flag is set to "1" in step S895, and the present routine ends. If "No" in step S889, step S890
Then, it is determined whether the card ejection sound request command is received from the ejection control device 600, and if “Yes”, the step S
At 895, the card ejection sound output flag is set to "1" and this routine ends. These flags are referred to in the game process (step S88) in FIG. 12, and the speaker is driven to generate a predetermined sound effect.

【0063】次に、カードリーダ250に対する制御信
号や残高表示器122の駆動信号およびパチンコ遊技機
に設けられた玉貸し変換ボタン123からの信号によっ
上記排出制御装置600対する玉貸し要求信号等を形成
して出力する上記玉貸し制御装置500の制御手順を図
16ないし図25を参照して詳細に説明する。図16に
は、上記玉貸し制御装置のメインルーチンの概略が示さ
れている。このメインルーチンは、玉貸し制御装置50
0の電源が投入されると繰返し実行される。
Next, a ball lending request signal or the like to the discharge control device 600 is sent by a control signal to the card reader 250, a drive signal of the balance indicator 122, and a signal from the ball lending conversion button 123 provided on the pachinko gaming machine. A control procedure of the ball lending control device 500 that forms and outputs the ball lending control device 500 will be described in detail with reference to FIGS. 16 to 25. FIG. 16 shows an outline of a main routine of the ball lending control device. This main routine is performed by the ball lending control device 50.
When the power of 0 is turned on, it is repeatedly executed.

【0064】電源が立上がると、先ず、RAMのクリア
やフラグの設定、出力バッファのリセット等の初期設定
を行なう(ステップS8002)。次のステップS80
04では玉貸し可能表示器126を一旦消灯状態にさ
せ、残高表示器122には残高ゼロ(3桁表示の場合に
は“000”)の表示を行なわせる駆動信号を形成し出
力する(ステップS8006)。
When the power is turned on, first, initial settings such as RAM clear, flag setting, and output buffer resetting are performed (step S8002). Next step S80
In 04, the ball lending indicator 126 is temporarily turned off, and the balance indicator 122 forms and outputs a drive signal for displaying zero balance (“000” in the case of three-digit display) (step S8006). ).

【0065】それから、次のステップへ進み、玉貸し処
理(ステップS8008)、返却処理(ステップS80
10)、ファンクション送受信処理(ステップS801
2)および決済信号出力処理(ステップS8014)の
4つの処理を、互いに並行して同時進行的に行なう。図
17および図18には、上記メインルーチン(図16)
のステップS8008で実行される玉貸し処理の具体的
手順の一例が示されている。
Then, the process proceeds to the next step, and the ball lending process (step S8008) and the returning process (step S80).
10), function transmission / reception processing (step S801)
The four processes of 2) and the payment signal output process (step S8014) are performed concurrently in parallel with each other. 17 and 18 show the main routine (FIG. 16).
An example of a specific procedure of the ball lending process executed in step S8008 is shown.

【0066】この処理が開始されると、まず排出制御装
置600から送られてくる玉貸可能信号RDYを調べて
信号が立ち下がったか否か判定する(ステップS810
2)。そして、“No”すなわち玉貸可能信号RDYが
立ち下がっていないときはステップS8104へ進ん
で、玉貸可能信号RDYを調べて信号が立ち上がったか
否か判定する。玉貸可能信号RDYは排出制御装置60
0が貯留タンク151内の玉不足または遊技盤の打止め
状態を検知した場合に、ロウレベルに変化される信号で
あり、システムの電源が投入され排出制御装置600の
制御が開始されるときには、玉貸可能信号RDYがハイ
レベル状態にされる。そのため、玉貸し制御装置500
がステップS8104でこの信号の立上りを検知して
“Yes”と判定すると、ステップS8106へ移行し
てカードリーダ制御装置250に対するカード受付可能
を知らせるファンクションコードの送信予約をした後、
ステップS8102へ戻る。
When this process is started, first, the ball lending possible signal RDY sent from the discharge control device 600 is checked to determine whether or not the signal has fallen (step S810).
2). If "No", that is, if the ball lending possible signal RDY has not fallen, the process advances to step S8104 to check the ball lending available signal RDY to determine whether or not the signal has risen. The ball lending possible signal RDY is the emission control device 60.
0 is a signal that is changed to a low level when a shortage of balls in the storage tank 151 or a stopped state of the game board is detected. The lendable signal RDY is set to the high level state. Therefore, the ball lending control device 500
When the rising edge of this signal is detected in step S8104 and it is determined to be “Yes”, the process proceeds to step S8106, and after making a function code transmission reservation for notifying the card reader control device 250 that the card can be accepted,
The procedure returns to step S8102.

【0067】次に、再びステップS8102−S810
4と進んでステップS8104で“No”と判定する
と、ステップS8108へ進み玉貸し可能表示器126
が点灯しているか調べる。この玉貸し可能表示器126
は、後述のファンクション送受信処理(図20,21)
において、カードリーダ制御装置250からカード金額
を受信したときに点灯されるランプである。従って、カ
ードリーダにカードが挿入される前は、ステップS81
08での判定は“No”となってステップS8102へ
戻って上記ステップを繰り返す。
Next, steps S8102-S810 are executed again.
When it is determined to be “No” in step S8104 after proceeding to step 4, the process proceeds to step S8108, and the ball lendability indicator 126 is displayed.
Check if is lit. This ball lending indicator 126
Is the function transmission / reception processing described later (FIGS. 20 and 21).
In the above, the lamp is turned on when the card amount is received from the card reader control device 250. Therefore, before the card is inserted into the card reader, step S81
The determination in 08 is “No”, the process returns to step S8102 and the above steps are repeated.

【0068】そして、カードリーダにカードが挿入さ
れ、カードリーダ制御装置250からカード金額が送信
されて玉貸し可能表示器126が点灯されると、ステッ
プS8108での判定が“Yes”となってステップS
8110へ進む。ステップS8110では、上記玉貸可
能信号RDYがハイレベルであるか確認して“Yes”
なら次のステップS8112へ移行し、“No”ならス
テップS8102へ戻る。
Then, when the card is inserted into the card reader, the card amount is sent from the card reader control device 250, and the ball lending indicator 126 is turned on, the determination in step S8108 becomes "Yes" and the step becomes S
Proceed to 8110. In step S8110, it is confirmed whether the ball lending enable signal RDY is at a high level and "Yes".
If so, the process moves to the next step S8112, and if “No”, the process returns to step S8102.

【0069】一方、ステップS8102で玉貸可能信号
RDYの立下がりを検出すると、ステップS8103へ
移行して玉貸可能表示器126が点灯中か調べる。そし
て、点灯していればステップS8105へ進み、玉貸可
能表示器126を消灯させ磁気書込ファンクション送信
予約(ステップS8107)を行なってから、またステ
ップS8103の判定で“No”の時はそのままステッ
プS8109へ進んで、カード受付不能を示す受付不可
ファンクションの送信予約を行なってステップS810
2へ戻る。排出制御装置600が貯留タンク151内の
玉不足または遊技盤の打止め状態を検知した場合に、玉
貸可能信号RDYがロウレベルに立ち下がるためであ
る。
On the other hand, when the fall of the ball lending enable signal RDY is detected in step S8102, the flow shifts to step S8103 to check whether the ball lending availability display 126 is on. If it is lit, the process proceeds to step S8105, the ball lending indicator 126 is turned off, the magnetic writing function transmission reservation is made (step S8107), and if the determination in step S8103 is "No", the step is continued. The process advances to step S8109 to make a transmission reservation for an unacceptable function indicating that the card cannot be accepted, and then step S810.
Return to 2. This is because the ball lending enable signal RDY falls to a low level when the discharge control device 600 detects a shortage of balls in the storage tank 151 or a stopped state of the game board.

【0070】上記ステップS8110で“Yes”すな
わち玉貸可能信号RDYがハイレベルであると確認する
と、ステップS8112へ進み、変換スイッチからの信
号を見て玉貸し変換ボタン123がオンされているかか
否か判定する。ここで、“Yes”ならステップS81
14へ移行してカードの残金が、玉貸し数設定器506
に設定された玉貸し数に相当する金額よりも多いか否か
判定する。そして、カードの金額の方が多いときは、ス
テップS8116へ移行して払出回数レジスタに設定玉
貸し数をセットし、カードの金額の方が少ないときには
ステップS8118へ進んで、払出回数レジスタにカー
ド残金をセットしてから、図18のステップS8130
へ移行する。
If "Yes" in the step S8110, that is, if it is confirmed that the ball lending enable signal RDY is at a high level, the flow advances to step S8112 to see whether the ball lending conversion button 123 is turned on by observing the signal from the conversion switch. Determine whether. If “Yes”, step S81
The balance of the card shifts to 14 and the ball lending number setting device 506
It is determined whether or not the amount is larger than the amount corresponding to the number of ball lending set in. When the amount of the card is larger, the process proceeds to step S8116 to set the set number of balls to be dispensed in the payout count register, and when the amount of the card is smaller, the process proceeds to step S8118 and the card balance is paid to the payout count register. Set, then step S8130 of FIG.
Move to.

【0071】また、ステップS8112で“No”すな
わち玉貸し変換ボタン123がオフであると判定される
と、ステップS8120へ移行して変換スイッチからの
信号を見て返却ボタン124がオンされているかか否か
判定する。ここで、“Yes”ならステップS8122
へ移行して玉貸可能表示器126を消灯させ、磁気書込
ファンクションの送信予約を行なってから、ステップS
8124へ進んで、カードリーダからカードを排出させ
る排出ファンクションの送信予約を行なってステップS
8102へ戻る。一方、上記ステップS8120で返却
ボタン124がオフされていると判定すると、何もせず
にステップS8102へ戻る。
If it is determined in step S8112 that "No", that is, the ball lending conversion button 123 is off, the flow shifts to step S8120, and the return button 124 is turned on by observing the signal from the conversion switch. Determine whether or not. If “Yes” here, step S8122.
After shifting to, the ball lending indicator 126 is turned off, and the transmission of the magnetic writing function is reserved, then step S
Proceed to 8124 to make a transmission reservation for the ejection function for ejecting the card from the card reader, and then execute step S
Return to 8102. On the other hand, if it is determined in step S8120 that the return button 124 is off, the process returns to step S8102 without doing anything.

【0072】図18のステップS8130へ移行して来
ると、まず玉貸し可能表示器126を消灯させてから、
排出制御装置600に対する玉貸要求信号BRQをロウ
レベルにアサートして、排出終了信号EXSの応答待ち
のEXSタイマ(10秒)をセットする(ステップS8
132,S8134)。それから、EXSタイマがゼロ
になったか判定し、“No”なら排出制御装置600か
らの排出終了信号EXSが立ち下がったか判定する(ス
テップS8136,S8138)。そして、“No”な
ら上記EXSタイマが10m秒経過したか否か判定する
(ステップS8140)。ここで、排出終了信号EXS
が立ち下がる前にEXSタイマがタイムアップしたと判
定すると、ステップS8172へ進み、磁気書込ファン
クションの送信予約を行なってから、カード排出ファン
クションの送信予約を行なってステップS8102へ戻
る(ステップS8174)。排出制御装置600に対す
る玉貸要求を行なってから10秒経過しても排出終了信
号が帰って来ないのは異常が発生しているためと考えら
れるからである。
When the process moves to step S8130 in FIG. 18, first, the ball lending indicator 126 is turned off, and then the
The ball lending request signal BRQ to the discharge control device 600 is asserted to a low level, and the EXS timer (10 seconds) waiting for a response to the discharge end signal EXS is set (step S8).
132, S8134). Then, it is determined whether the EXS timer has become zero, and if "No", it is determined whether the discharge end signal EXS from the discharge control device 600 has fallen (steps S8136, S8138). Then, if "No", it is determined whether or not the EXS timer has passed 10 ms (step S8140). Here, the discharge end signal EXS
If it is determined that the EXS timer has timed out before the start, the process advances to step S8172 to make a transmission reservation for the magnetic writing function, then to make a reservation for the card ejection function, and return to step S8102 (step S8174). The reason why the discharge end signal does not come back even after 10 seconds have elapsed since the ball lending request to the discharge control device 600 is made is that it is considered that an abnormality has occurred.

【0073】一方、EXSタイマがタイムアップする前
に排出終了信号EXSが立ち下がりかつEXSタイマが
10m秒経過していると、次のステップS8142へ移
行して再びEXSタイマを10秒にセットする。それか
ら、EXSタイマがゼロになったか判定し、“No”な
ら排出制御装置600からの排出終了信号EXSが立ち
上がったか判定する(ステップS8144,S814
6)。そして、“No”なら上記EXSタイマが200
m秒経過したか否か判定する(ステップS8148)。
ここで、排出終了信号EXSが立ち上がる前にEXSタ
イマ(10秒)がタイムアップしたと判定すると、ステ
ップS8172へ進み、磁気書込ファンクションの送信
予約を行なってから、カード排出ファンクションの送信
予約を行なってステップS8102へ戻る(ステップS
8174)。排出制御装置600からの排出終了信号E
XSは、球排出装置170の構造からロウレベルに立ち
下がってから平均で約1秒経過すると立ち上がることが
分かっているので、排出終了信号EXSがロウレベルに
立ち下がってから10秒経過してもハイレベルに立ち上
がらないのは異常が発生しているためと考えられるから
である。
On the other hand, if the discharge end signal EXS falls and the EXS timer has passed 10 msec before the EXS timer times out, the process proceeds to the next step S8142 and the EXS timer is set to 10 sec again. Then, it is determined whether the EXS timer has become zero, and if "No", it is determined whether the discharge end signal EXS from the discharge control device 600 has risen (steps S8144, S814).
6). If “No”, the EXS timer is 200
It is determined whether m seconds have elapsed (step S8148).
If it is determined that the EXS timer (10 seconds) has timed out before the ejection end signal EXS rises, the process advances to step S8172 to make a transmission reservation for the magnetic writing function and then make a transmission reservation for the card ejection function. And returns to step S8102 (step S
8174). Discharge end signal E from the discharge control device 600
It is known from the structure of the ball discharging device 170 that XS rises after an average of about 1 second has elapsed, so even if 10 seconds have elapsed after the discharge end signal EXS has fallen to a low level, it remains at a high level. The reason why it doesn't rise is because it is thought that something is wrong.

【0074】EXSタイマがタイムアップする前に排出
終了信号EXSが立ち上がりかつEXSタイマが200
m秒(この時間内排出が終了するはずはないため)経過
していると、次のステップS8150へ移行してタイマ
を75m秒にセットする。それから、そのタイマがゼロ
になったか判定し(ステップS8152)、タイムアッ
プすると次のステップS8154へ移行して玉貸要求信
号BRQをハイレベルにネゲートする。これによって、
排出終了信号EXSが立ち上がってから75m秒経過し
てから玉貸要求信号BRQがハイレベルに変化されるよ
うになる。それから、再びタイマを100m秒にセット
する(ステップS8156)。
Before the EXS timer times out, the discharge end signal EXS rises and the EXS timer becomes 200
If m seconds have elapsed (because the discharge should not end within this time), the process moves to the next step S8150 and the timer is set to 75 ms. Then, it is determined whether or not the timer has become zero (step S8152), and when the time is up, the process moves to the next step S8154 to negate the ball lending request signal BRQ to a high level. by this,
The ball lending request signal BRQ is changed to a high level after 75 m seconds have elapsed after the discharge end signal EXS rises. Then, the timer is set again to 100 ms (step S8156).

【0075】次のステップS8158では、カード残高
(度数)を「1」だけ減らしてから、カード管理装置8
00に対する決済信号j(パルス)の出力カウンタを
「1」だけ増加させる(ステップS8160)。それか
ら、ステップS8162へ進んで払出回数を「1」だけ
減算したのち、払出回数が「0」になったか否か判定し
(ステップS8164)、“No”なら上記ステップS
8158でセットしたタイマがタイムアップしたか判定
し(ステップS8170)、タイムアップした時点で上
記ステップS8130へ戻って上記手順を繰り返して再
度玉貸要求信号BRQをアサートして排出制御装置60
0から応答を待つ。これによって、玉貸要求信号BRQ
が続けて発生される場合、前の信号が一旦立ち上がって
100m秒経過してから玉貸要求信号BRQが再びロウ
レベルにアサートされるようになり、排出制御装置60
0は確実に玉貸要求信号BRQの立下りを検知すること
ができる。
In the next step S8158, the card balance (frequency) is reduced by "1", and then the card management device 8
The output counter of the payment signal j (pulse) for 00 is incremented by "1" (step S8160). Then, the procedure proceeds to step S8162, after the payout number is decremented by “1”, it is determined whether or not the payout number is “0” (step S8164), and if “No”, the above step S is performed.
It is determined whether or not the timer set in 8158 has timed out (step S8170), and at the time when it has timed out, the process returns to step S8130 and the above procedure is repeated to assert the ball lending request signal BRQ again to discharge control device 60.
Wait for a response from 0. As a result, the ball lending request signal BRQ
Is generated continuously, the ball lending request signal BRQ is again asserted to the low level after 100 m seconds have elapsed since the previous signal rose, and the discharge control device 60
0 can detect the trailing edge of the ball lending request signal BRQ with certainty.

【0076】一方、ステップS8164で“Yes”す
なわち払出回数が「0」のときはステップS8166へ
移行してカード残金がゼロになったか否か判定し、ゼロ
のときはステップS8172へ移行して磁気書込ファン
クションとカード排出ファンクションの送信予約(ステ
ップS8174)をしてから、有効表示ランプ230を
消灯(ステップS8176)、挿入残高表示器220
(3桁表示)に「000」を表示させ(ステップS81
78)、最初のステップS8102へ戻る。これによっ
て、遊技中、カードをカードリーダ内に保持させておい
ても、カード残高が「0」になると自動的にカードがカ
ードリーダより排出され、遊技者はカード残高が「0」
になったことを速やかに知ることができる。また、磁気
書込ファンクションの送信予約の際には、送信バッファ
内に書込みファンクションコードとともにカード残高デ
ータをテキストとして入れておく。
On the other hand, if "Yes" in the step S8164, that is, if the payout number is "0", the process shifts to a step S8166 to determine whether or not the card balance has become zero. After making a transmission reservation for the writing function and the card ejecting function (step S8174), the valid indicator lamp 230 is turned off (step S8176), and the insertion balance indicator 220 is displayed.
Display "000" in (3 digit display) (step S81
78) and the process returns to the first step S8102. As a result, even if the card is held in the card reader during the game, the card is automatically discharged from the card reader when the card balance becomes "0", and the player has the card balance "0".
You can quickly know that it has become. Further, at the time of reservation for transmission of the magnetic writing function, the card balance data is stored as text together with the writing function code in the transmission buffer.

【0077】一方、上記ステップS8166でカード残
高が「0」でないと判定すると、ステップS8168へ
進んで、玉貸排出処理が終了し次の玉貸し変換ボタンの
操作が可能であることを表示すべく玉貸可能表示器12
6を点灯させてから最初のステップS8102へ戻る。
図19には、上記メインルーチン(図16)のステップ
S8010で実行されるカードの返却処理の具体的手順
の一例が示されている。
On the other hand, if it is determined in step S8166 that the card balance is not "0", the flow advances to step S8168 to display that the ball lending / discharging process is completed and the next ball lending conversion button can be operated. Ball lending indicator 12
After turning on 6, the process returns to the first step S8102.
FIG. 19 shows an example of a specific procedure of card return processing executed in step S8010 of the main routine (FIG. 16).

【0078】この処理が開始されると、まず返却ボタン
124がオンされているか判定し(ステップS820
2)、“Yes”ならステップS8204へ進んで玉貸
可能表示器126が点灯されているか調べる。この玉貸
可能表示器126はカードがカードリーダに挿入され、
玉貸し変換ボタン123が有効な場合に点灯されるラン
プであり、ステップS8204で“Yes”すなわちラ
ンプ点灯と判定すると、ステップS8206へ進み、こ
の玉貸可能表示器126を消灯させてから、磁気書込フ
ァンクション送信予約およびカードの排出ファンクショ
ン送信予約を行なった後、上記ステップS8202へ戻
って次に返却ボタンがオンされるのを待つ(ステップS
8208,S8210)。このファンクションをカード
リーダが受信することによって、カードリーダ内からカ
ードが排出される。しかる後、有効表示ランプ230を
消灯させ、挿入残高表示器220の表示(3けた)を
「000」に変更する(ステップS8212,S821
4)。
When this process is started, it is first determined whether the return button 124 is turned on (step S820).
2) If "Yes", the process advances to step S8204 to check whether the ball lending indicator 126 is lit. This ball lending indicator 126 has a card inserted into a card reader,
This is a lamp that is turned on when the ball lending conversion button 123 is valid, and if it is determined in step S8204 that the lamp is lit, the process proceeds to step S8206, the ball lending indicator 126 is turned off, and then the magnetic writing is performed. After making the reservation for the included function transmission and the reservation for the card ejection function, the process returns to step S8202 and waits for the next return button to be turned on (step S
8208, S8210). When the card reader receives this function, the card is ejected from the inside of the card reader. Then, the valid indicator lamp 230 is turned off, and the display (three digits) of the insertion balance indicator 220 is changed to "000" (steps S8212, S821).
4).

【0079】一方、玉貸可能表示器126が消灯されて
いるときに返却ボタンがオンされると、上記ステップS
8204からステップS8216へ移行して、玉貸処理
(図17)のステップS8140でセットされる玉貸中
フラグをチェックして玉貸処理中か否か判定する。そし
て、玉貸中でなければ何もせずステップS8202へ戻
る。玉貸可能表示器126が消灯されているのは玉貸し
処理中もしくはカードがカードリーダ内に存在しないと
いうことであるので、返却ボタンがオンされてもカード
の返却をカードリーダに指令する必要がないからであ
る。
On the other hand, if the return button is turned on while the ball lending indicator 126 is off, the above step S
The process proceeds from step 8204 to step S8216, and the ball lending flag set in step S8140 of the ball lending process (FIG. 17) is checked to determine whether or not the ball lending process is in progress. If no balls are being rented, nothing is done and the process returns to step S8202. The ball lending indicator 126 is turned off because the ball lending process is in progress or the card does not exist in the card reader, so it is necessary to instruct the card reader to return the card even if the return button is turned on. Because there is no.

【0080】上記ステップS8216で“Yes”すな
わち玉貸中と判定すると、ステップS8218へ進ん
で、同じく玉貸フラグを調べて玉貸処理が終了したか判
定する。そして、この玉貸フラグが“0”になるまでこ
のステップを繰り返し、玉貸処理が終了した時点でステ
ップS8220へ移行して、カード残高が“0”か否か
判定する。ここで、カード残高が“0”でないときは上
記ステップS8206へ移行してこの玉貸可能表示器1
26を消灯させてから、磁気書込ファンクション送信予
約およびカードの排出ファンクション送信予約等を行な
った後、上記ステップS8202へ戻って次に返却ボタ
ンがオンされるのを待つ。
If "Yes" is determined in the above step S8216, that is, it is determined that the ball is being lent, the process proceeds to step S8218, similarly, the ball lending flag is checked to determine whether or not the ball lending process is completed. Then, this step is repeated until the ball lending flag becomes "0", and when the ball lending process ends, the flow shifts to step S8202, and it is determined whether or not the card balance is "0". If the card balance is not "0", the flow advances to step S8206 to display the ball lending indicator 1.
After turning off 26, the magnetic writing function transmission reservation and the card ejection function transmission reservation are made, and then the process returns to step S8202 and waits for the next return button to be turned on.

【0081】ステップS8220でカード残高が“0”
と判定すると何もせずにステップS8202へ戻って次
の返却ボタンの操作を待つ。カード残高が“0”になる
と、前述した玉貸処理のステップS8172,S817
4(図18)で磁気書込ファンクションおよび排出ファ
ンクションの送信予約がなされ、それを受けてカードリ
ーダ内からカードが排出されるからである。図20およ
び図21には、上記メインルーチン(図16)のステッ
プS8012で実行されるカードリーダ制御装置250
との間のファンクション送受信処理の具体的手順の一例
が示されている。
In step S8220, the card balance is "0".
If it is determined that nothing is done, the process returns to step S8202 and waits for the operation of the next return button. When the card balance becomes “0”, steps S8172 and S817 of the ball lending process described above.
This is because the transmission reservation of the magnetic writing function and the ejection function is made in 4 (FIG. 18) and the card is ejected from the card reader in response to the reservation. 20 and 21, the card reader controller 250 executed in step S8012 of the main routine (FIG. 16).
An example of a specific procedure of a function transmission / reception process between and is shown.

【0082】なお、送受信されるファンクションは、フ
ァンクションコードの先頭にSTXコードがまた終端に
ETXコードが付加されたデータ形式で送信される。フ
ァンクションコード以外にも送受信される信号として、
ENQコード(送信の問合せ)とACKコード(肯定応
答)とがあるが、これらは先頭のSTXコードも終端の
ETXコードも付加せずにコード単独で送信される。こ
のファンクション送受信処理が開始されると、まずステ
ップS8300で上記玉貸処理(図17,18)または
カード返却処理(図19)によるファンクション送信予
約が設定がなされているか否か判定する。そして、送信
予約がなければステップS8350へ移行して、後述の
受信割込み処理(図25)で設定されるENQ受信フラ
グを調べて、カードリーダ制御装置250からENQ
(問合せコード)が入ってきているか判定する。
The functions to be transmitted and received are transmitted in a data format in which the STX code is added to the head of the function code and the ETX code is added to the end. As signals that are sent and received other than function codes,
There is an ENQ code (inquiry of transmission) and an ACK code (acknowledgement), but these are transmitted alone without adding the leading STX code or the trailing ETX code. When this function transmission / reception process is started, first, in step S8300, it is determined whether or not the function transmission reservation by the ball lending process (FIGS. 17 and 18) or the card return process (FIG. 19) is set. If there is no transmission reservation, the process advances to step S8350, the ENQ reception flag set in the reception interrupt process (FIG. 25) described below is checked, and the ENQ reception flag from the card reader control device 250 is checked.
It is determined whether (inquiry code) is entered.

【0083】上記ステップS8300で“送信予約有”
と判定すると、ステップS8302へ移行して、再送信
回数を3回にセットしてからENQコードを送信する
(ステップS8304)。この送信によって送信割込み
が発生して後述の送信割込み処理が開始される。それか
ら、ステップS8306で応答タイマを10秒にセット
した後、ステップS9308でこの応答タイマがタイム
アップしたか判定し、“No”のときは受信割込み処理
(図25)でセットされるACK受信フラグをみてAC
K(応答コード)を受信したか判定する(ステップS8
310)。そして、ACKを受信する前に応答タイマが
タイムアップしたときは、ステップS8312へ移行し
てステップS8302でセットした再送信回数を「1」
だけ減算してから、再送信回数が「0」になったか否か
判定し(ステップS8314)、「0」でないときは上
記ステップS8304へ戻ってENQコードの再送信を
行なう。
In step S8300, "transmission reserved"
If it is determined, the process proceeds to step S8302, the number of retransmissions is set to three, and then the ENQ code is transmitted (step S8304). This transmission causes a transmission interrupt, and the transmission interrupt processing described later is started. Then, in step S8306, after setting the response timer to 10 seconds, it is determined in step S9308 whether this response timer has timed out. See AC
It is determined whether K (response code) is received (step S8).
310). When the response timer times out before receiving the ACK, the process proceeds to step S8312 and the number of retransmissions set in step S8302 is set to "1".
Then, it is determined whether or not the number of retransmissions has become "0" (step S8314). If it is not "0", the flow returns to step S8304 to retransmit the ENQ code.

【0084】一方、応答タイマがタイムアップする前に
ACKを受信したときは、ステップS8316へ進んで
ACK受信フラグを“0”にクリアし、かつ送信データ
の先頭を示すSTXコードを送信する。この送信によっ
て送信割込みが発生して後述の送信割込み処理が開始さ
れ、ファンクションコードやデータが送信される。ま
た、ステップS8318で応答タイマを10秒にセット
した後、ステップS8320でこの応答タイマがタイム
アップしたか判定し、“No”のときは受信割込み処理
(図25)でセットされるENQ受信フラグをみてEN
Qを受信したか判定する(ステップS8322)。この
ENQはカードリーダ制御装置250から玉貸し制御装
置500に対して受信結果を送っても良いかの問合せで
あるので、玉貸し制御装置500は、応答タイマがタイ
ムアップする前にENQを受信したときはステップS8
324へ進み、ENQ受信フラグを“0”にクリアし、
かつACKコードを送信する。ENQを受信する前に応
答タイマがタイムアップしたときは、テキスト送信に対
する受信結果の応答がなかったことになるので、通信異
常があったと判定してステップS8340へ移行して通
信異常を示すエラーコードを表示データバッファへ書き
込んで、ステップS8344でそのコードを残高表示器
122に表示させて制御動作を停止する。
On the other hand, if an ACK is received before the response timer times out, the flow advances to step S8316 to clear the ACK reception flag to "0" and to transmit the STX code indicating the beginning of the transmission data. By this transmission, a transmission interrupt occurs, the transmission interrupt processing described later is started, and the function code and data are transmitted. Also, after setting the response timer to 10 seconds in step S8318, it is determined in step S8320 whether or not this response timer has timed out, and if "No", the ENQ reception flag set in the reception interrupt process (FIG. 25) is set. See EN
It is determined whether Q is received (step S8322). Since this ENQ is an inquiry from the card reader control device 250 to the ball lending control device 500 as to whether the reception result may be sent, the ball lending control device 500 receives the ENQ before the response timer times out. When step S8
Proceed to 324, clear the ENQ reception flag to "0",
And send an ACK code. If the response timer times out before receiving ENQ, it means that there is no response of the reception result to the text transmission, so it is determined that there is a communication error, the process moves to step S8340, and an error code indicating a communication error Is written in the display data buffer, the code is displayed on the balance display 122 in step S8344, and the control operation is stopped.

【0085】ステップS8324でACKを送信した後
は、再び応答タイマを10秒にセット(ステップS83
26)した後、ステップS8328でこの応答タイマが
タイムアップしたか判定し、“No”のときは受信割込
み処理(図25)でセットされるFNC受信フラグをみ
て受信結果の内容を示すファンクションを受信したか判
定する(ステップS8330)。そして、ファンクショ
ンを受信する前に応答タイマがタイムアップしたとき
は、ACK送信に対する応答がなかったことになるの
で、通信異常があったと判定してステップS8340へ
移行して通信異常を示すエラーコードを表示データバッ
ファへ書き込んで、ステップS8344でそのコードを
残高表示器122に表示させて制御動作を停止する。
After transmitting the ACK in step S8324, the response timer is set to 10 seconds again (step S83).
26) and then, in step S8328, it is determined whether or not this response timer has timed out, and if "No", the function indicating the content of the reception result is received by checking the FNC reception flag set in the reception interrupt processing (FIG. 25). It is determined whether or not (step S8330). Then, when the response timer times out before receiving the function, it means that there is no response to the ACK transmission, so it is determined that there is a communication error, the process proceeds to step S8340, and the error code indicating the communication error is output. The data is written in the display data buffer, the code is displayed on the balance display 122 in step S8344, and the control operation is stopped.

【0086】応答タイマがタイムアップする前にファン
クションを受信したときは、ステップS8332へ進ん
でFNC受信フラグを“0”にクリアした後、受信した
ファンクションの内容が、「再送要求」か、「異常終
了」か、「正常終了」かを判定する(ステップS833
4,S8336,S8338)。このうち異常終了は、
通信そのものには異常はなかったがカードリーダにおけ
る書込み不良等の異常があった場合に送られてくる。
If a function is received before the response timer times out, the flow advances to step S8332 to clear the FNC reception flag to "0", and then the content of the received function is "retransmission request" or "abnormal". “End” or “normal end” is determined (step S833).
4, S8336, S8338). Of these, the abnormal termination is
There is no abnormality in the communication itself, but it is sent when there is an abnormality such as a writing error in the card reader.

【0087】そこで、受信したファンクションが再送要
求であったときは上記ステップS8302へ戻って送信
のやりなおしを行ない、異常終了のときはステップS8
342へ移行してカードリーダ異常を示すエラーコード
を表示データバッファへ書き込んで、ステップS834
4でそのコードを残高表示器122に表示させて制御動
作を停止する。また、正常終了であれば、一連の送信処
理が終了したものとしてステップS8300へ戻り、次
の送信予約に対する処理を行ない、正常終了でないとき
はステップS8318へ戻って受信結果のファンクショ
ンコードの再受信を行なう。
Therefore, if the received function is a resend request, the process returns to step S8302 to retry the transmission, and if abnormally ended, step S8.
In step S834, the error code indicating the card reader abnormality is written in the display data buffer.
In step 4, the code is displayed on the balance display 122 and the control operation is stopped. If the processing is normally ended, it is determined that the series of transmission processing is ended and the processing returns to step S8300 to perform the processing for the next transmission reservation. To do.

【0088】一方、ステップS8300で“送信予約な
し”と判定すると、図21のステップS8350へ移行
して、受信割込み処理(図25)でセットされるENQ
受信フラグをみて、カードリーダ制御装置250からの
ENQを受信したか判定する。そして、ENQを受信し
ていればステップS8351へ移行してこのENQ受信
フラグをリセットしてからステップS8352へ進み、
ACKコードを送信した後、応答タイマを10秒にセッ
トする(ステップS8354)。この送信バッファへの
書込みによって送信割込みが発生して後述の送信割込み
処理が開始され、カードリーダ制御装置250へACK
が送信される。
On the other hand, if it is determined in step S8300 that there is no transmission reservation, the process proceeds to step S8350 in FIG. 21 and ENQ set in the reception interrupt process (FIG. 25).
The reception flag is checked to determine whether ENQ from the card reader control device 250 has been received. If ENQ is received, the process moves to step S8351, the ENQ reception flag is reset, and then the process proceeds to step S8352.
After transmitting the ACK code, the response timer is set to 10 seconds (step S8354). A write interrupt to the send buffer causes a send interrupt to start a send interrupt process described later, and ACKs the card reader controller 250.
Will be sent.

【0089】そこで、ステップS8356でこの応答タ
イマがタイムアップしたか判定し、“No”のときは受
信割込み処理(図25)でセットされるFNC受信フラ
グをみて受信結果の内容を示すファンクションを受信し
たか判定する(ステップS8358)。そして、ファン
クションを受信する前に応答タイマがタイムアップした
ときは、ACK送信に対する応答がなかったことになる
ので、通信異常があったと判定して図20のステップS
8340へ移行して通信異常を示すエラーコードを表示
データバッファへ書き込んで、ステップS8344でそ
のコードを残高表示器122に表示させて制御動作を停
止する。
Then, in step S8356, it is determined whether or not this response timer has timed out, and if "No", the function indicating the contents of the reception result is received by checking the FNC reception flag set in the reception interrupt processing (FIG. 25). It is determined whether or not (step S8358). Then, when the response timer times out before receiving the function, it means that there is no response to the ACK transmission, so it is determined that there is a communication error and step S in FIG.
After shifting to 8340, an error code indicating communication abnormality is written in the display data buffer, and the code is displayed on the balance indicator 122 in step S8344 to stop the control operation.

【0090】応答タイマがタイムアップする前にファン
クションを受信したときは、ステップS8360へ進ん
でFNC受信フラグを“0”にクリアした後、受信した
ファンクションがカードデータ送信ファンクションか否
かを判定する(ステップS8361)。そして、判定結
果が“No”なら何もせずにステップS8300へ戻
り、“Yes”ならステップS8362へ移行してカー
ド残高が「0」か否か判定する。そして、カード残高が
「0」でなければステップS8364へ進んで玉貸可能
表示器126を点灯させ、受信バッファの内容(残高デ
ータ)をカード残高記憶部へ書き込む(ステップS83
66)。それから、有効表示ランプ230を点灯させ、
受信したカード残高を挿入残高記憶部に格納しかつそれ
を挿入残高表示器220に表示させて受信処理を終了す
る(ステップS8368,S8370)。一方、ステッ
プS8362の判定結果が“Yes”すなわちカード残
高が「0」のときは、ステップS8372へ移行してカ
ードリーダに対するカード排出ファンクション予約を行
なって処理を終了する。
If a function is received before the response timer times out, the flow advances to step S8360 to clear the FNC reception flag to "0", and then it is determined whether or not the received function is a card data transmission function ( Step S8361). If the determination result is "No", nothing is returned to step S8300, and if "Yes", the process proceeds to step S8362 to determine whether the card balance is "0". If the card balance is not "0", the flow advances to step S8364 to turn on the ball lendability indicator 126 and write the contents of the reception buffer (balance data) to the card balance storage unit (step S83).
66). Then, turn on the effective display lamp 230,
The received card balance is stored in the insertion balance storage unit and is displayed on the insertion balance display unit 220, and the reception process ends (steps S8368, S8370). On the other hand, if the result of the determination in step S 8362 is “Yes”, that is, if the card balance is “0”, then the flow shifts to step S 8372 to make a card ejection function reservation for the card reader and terminate the processing.

【0091】図22には、上記メインルーチン(図1
6)のステップS8014で実行される決済情報出力処
理の具体的手順の一例が示されている。この処理が開始
されると、まず図18の玉貸処理中のステップS817
2でカウントアップする決済信号数カウンタを調べて決
済信号数が“0”か否か判定する(ステップS840
2)。ここで“No”すなわち決済信号数が1以上であ
ると判定すると、ステップS8404へ進んでオン時間
タイマを200m秒に設定し、決済信号jをハイレベル
にアサートしてから、そのタイマがタイムアップするの
を待つ(ステップS8408,S8410)。それか
ら、ステップS8412へ移行してオフ時間タイマを2
00m秒に設定し、決済信号jをロウレベルにネゲート
してから、そのタイマがタイムアップするのを待つ(ス
テップS8412,S8414)。
FIG. 22 shows the main routine (see FIG.
An example of a specific procedure of the payment information output processing executed in step S8014 of 6) is shown. When this process is started, first, step S817 during the ball lending process in FIG.
The payment signal number counter that counts up at 2 is checked to determine whether the payment signal number is "0" (step S840).
2). If “No”, that is, if the number of payment signals is 1 or more, the process advances to step S8404, the on-time timer is set to 200 msec, and the payment signal j is asserted to the high level. It waits for (steps S8408, S8410). Then, the process proceeds to step S8412 and the off time timer is set to 2
After setting the time to 00 msec and negating the settlement signal j to low level, it waits for the timer to time up (steps S8412, S8414).

【0092】その後、ステップS8416で上記決済信
号数カウンタを「1」だけ減らしてステップS8402
へ戻り、決済信号数カウンタが「0」になるまで、決済
信号パルスを出力させる。これによって、パルス幅20
0m秒の決済信号jが出力される。また、パルスを
「2」以上出力させる場合にも、パルスとパルスの間隔
が200m秒に設定され、これを受信するカード管理装
置800が確実に決済信号パルスを計数することができ
る。
Thereafter, in step S8416, the payment signal number counter is decremented by "1", and then step S8402.
Returning to, the settlement signal pulse is output until the settlement signal number counter becomes “0”. This gives a pulse width of 20
A payment signal j of 0 msec is output. Further, even when pulses of “2” or more are output, the interval between the pulses is set to 200 msec, and the card management device 800 that receives the pulses can reliably count the settlement signal pulses.

【0093】図23には、上記メインルーチン(図1
6)とは別個に玉貸制御装置500がタイマ割込みによ
り、例えば1m秒ごとに実行するタイマ割込み処理の具
体的手順の一例が示されている。このタイマ割込み処理
では、カード残高記憶部から残高データを読み出して残
高表示器122の表示信号を形成して出力し、カード残
高を表示させ(ステップS8502)、上記メインルー
チン中で使用されている各タイマを「−1」して終了す
る(ステップS8504)。
FIG. 23 shows the main routine (FIG. 1).
In addition to 6), an example of a specific procedure of timer interrupt processing executed by the ball lending control device 500 by a timer interrupt, for example, every 1 ms is shown. In this timer interrupt processing, the balance data is read from the card balance storage unit, a display signal of the balance display 122 is formed and output, and the card balance is displayed (step S8502). The timer is set to "-1" and the processing is ended (step S8504).

【0094】図24および図25には、上記メインルー
チン(図16)とは別個に玉貸制御装置500によって
実行される送信割込み処理および受信割込み処理の具体
的手順の一例が示されている。このうち、送信割込み
は、上記メインルーチンの玉貸処理(図18参照)やフ
ァンクション送受信処理(図20参照)中において、E
NQコード,STXコードまたはACKコードを送信す
ることによって発生されるようになっている。この送信
割込みが開始されると、ステップS8602,S860
4,S8606で、送信バッファを見て送信されたコー
ドがいずれのコードか判定する。ここで、送信されたコ
ードがENQ,ACKまたはETX(テキストデータの
終端を示すコード)のいずれかであれば何もせずに割込
みを終了する。
24 and 25 show an example of a concrete procedure of the transmission interruption processing and the reception interruption processing executed by the ball lending control device 500 separately from the main routine (FIG. 16). Among them, the transmission interruption is E during the ball lending process (see FIG. 18) or the function transmission / reception process (see FIG. 20) of the main routine.
It is generated by transmitting an NQ code, STX code or ACK code. When this transmission interrupt is started, steps S8602 and S860 are performed.
4, in S8606, it is determined which code is transmitted by looking at the transmission buffer. Here, if the transmitted code is either ENQ, ACK or ETX (a code indicating the end of text data), the interrupt is ended without doing anything.

【0095】一方、上記判定ですべて“No”となると
送信バッファに入っていたコードはSTXコード、ファ
ンクションコードまたはテキストデータであり、これら
には続きのコードがある。そこで、その場合にはステッ
プS8608へ進んでメモリの送信データエリア内の次
の8ビットのコードを送信バッファへ転送してから、メ
モリの送信データエリアのアドレスをインクリメントし
て、送信バッファに入っているコードを送信して終了す
る(ステップS8610,S8612)。この送信によ
って再び送信割込みが発生するので、送信したコードが
上記ENQ,ACKまたはETX以外のときは続きのコ
ードがあるので、ステップS8608でメモリの送信デ
ータエリア内の次の8ビットのコードを送信バッファへ
転送してから、メモリの送信データエリアのアドレスを
インクリメントして送信バッファに入っているコードを
送信する手順を繰り返しすべてのコードを送信する。
On the other hand, when all the above judgments result in "No", the code stored in the transmission buffer is the STX code, the function code or the text data, and there are the following codes. Therefore, in that case, the process proceeds to step S8608, the next 8-bit code in the transmission data area of the memory is transferred to the transmission buffer, the address of the transmission data area of the memory is incremented, and then the transmission buffer is entered. The code is transmitted and the process ends (steps S8610 and S8612). Since a transmission interrupt is generated again by this transmission, if the transmitted code is other than ENQ, ACK, or ETX, there is a subsequent code. Therefore, in step S8608, the next 8-bit code in the transmission data area of the memory is transmitted. After transferring to the buffer, the procedure of transmitting the code in the transmission buffer by incrementing the address of the transmission data area of the memory is repeated, and all the codes are transmitted.

【0096】図25の受信割込みは、カードリーダ制御
装置250からの送信が入ってくることによって発生す
る。この受信割込みが開始されると、ステップS865
2,S8654で受信したコードがENQコードまたは
ACKコードであるか判定する。そして、受信したコー
ドがENQコードであればステップS8656へ移行し
てENQ受信フラグを“1”にセットし、ACKコード
であればステップS8658でACK受信フラグを
“1”にセットして割込み処理を終了する。上記ENQ
受信フラグおよびACK受信フラグは、前記ファンクシ
ョン送受信処理フロー中で参照される。
The reception interrupt shown in FIG. 25 is generated when a transmission from the card reader controller 250 comes in. When this reception interrupt is started, step S865
2, it is determined whether the code received in S8654 is an ENQ code or an ACK code. If the received code is an ENQ code, the process advances to step S8656 to set the ENQ reception flag to "1", and if it is an ACK code, the ACK reception flag is set to "1" in step S8658 to perform interrupt processing. finish. ENQ above
The reception flag and the ACK reception flag are referred to in the function transmission / reception processing flow.

【0097】一方、受信したコードがENQコードまた
はACKコードのいずれでもない場合には、ステップS
8660へ進んで受信したコードを受信バッファからメ
モリへセーブしてから、受信バッファアドレスを更新す
る(ステップS8662)。続きの受信コードが受信バ
ッファに残っていれば再び受信割込みがかかるので、上
記ルーチンを繰り返すことで受信コードがすべてメモリ
にセーブされる。次に、受信したコードがETXコード
か否か判定し(ステップS8664)、“No”なら何
もせずに本ルーチンを終了する。一方、、ステップS8
664でETXコードを受信したと判定すると、ステッ
プS8666へ進んで受信したファンクションコードの
長さが正常であったか調べる。ここで、“Yes”なら
ステップS8668へ進んでファンクション受信フラグ
を“1”にセットして割込み処理を終了し、“No”な
らステップS8670へ移行して再送要求ファンクショ
ン送信予約をして割込み処理を終了する。
On the other hand, when the received code is neither the ENQ code nor the ACK code, step S
After proceeding to 8660 and saving the received code from the reception buffer in the memory, the reception buffer address is updated (step S8662). If the subsequent reception code remains in the reception buffer, the reception interrupt is applied again, so that all the reception codes are saved in the memory by repeating the above routine. Next, it is determined whether or not the received code is an ETX code (step S8664), and if "No", this routine is terminated without doing anything. On the other hand, step S8
If it is determined in 664 that the ETX code has been received, the flow advances to step S8666 to check whether the length of the received function code is normal. If “Yes”, the process proceeds to step S8668 to set the function reception flag to “1” to end the interrupt process. If “No”, the process proceeds to step S8670 to make a retransmission request function transmission reservation and execute the interrupt process. finish.

【0098】次に、上述した排出制御装置600によっ
て行なわれる賞品球および貸し玉の排出制御の手順を図
26ないし図57を参照して詳細に説明する。図26に
は、上記排出制御装置600が実行するメインルーチン
の全体が示されている。このメインルーチンは、上記排
出制御装置600の電源の投入と同時に開始され電源が
投入されている限り繰返しその処理が行なわれる。電源
が立上がると、先ず、ステップS0でRAMのクリアや
フラグの設定、出力バッファのリセット等の初期設定を
行なう。
Next, the procedure of the discharge control of the prize balls and the rental balls performed by the above-described discharge control device 600 will be described in detail with reference to FIGS. 26 to 57. FIG. 26 shows the entire main routine executed by the emission control device 600. This main routine is started at the same time when the power of the emission control device 600 is turned on, and the processing is repeated as long as the power is turned on. When the power is turned on, first, in step S0, initialization such as RAM clearing, flag setting, and output buffer resetting is performed.

【0099】続くステップS1では、タイマの更新や各
種センサからの検出信号、入力信号の読込みを行なうバ
ックグランド処理が行なってから、ステップS2に進
み、カード挿排確認処理(図40)を行なってカードリ
ーダ内にカードが存在しているか否か確認する。それか
ら、ステップS3に進み、後述のBRQ信号読込み処理
(図37)中でセットされる玉貸し要求信号BRQの立
下りフラグが「1」であるか否か判定し、フラグが
「1」のときはステップS10の貸玉処理を行ない、フ
ラグが「0」のときはステップS4へ進む。ステップS
4では、後述のセーフ玉排出処理(図49)中で起動さ
れる排出ウェイトタイマ(ステップS5708)が動作
中であるか否かが判定される。
At the subsequent step S1, background processing for updating the timer and reading detection signals and input signals from various sensors is performed. Then, the processing proceeds to step S2, and card insertion / ejection confirmation processing (FIG. 40) is performed. Check if the card is present in the card reader. Then, the process proceeds to step S3, it is determined whether or not the falling flag of the ball lending request signal BRQ set in the BRQ signal reading process (FIG. 37) described later is "1", and when the flag is "1". Performs the ball rental processing of step S10, and when the flag is "0", proceeds to step S4. Step S
In 4, it is determined whether or not the discharge wait timer (step S5708) activated during the safe ball discharge processing (FIG. 49) described later is in operation.

【0100】ここで、“No”なら次のステップS5の
玉抜処理(図41−42)を行なってから、また“Ye
s”ならステップS5をスキップしてステップS6へ移
行する。ステップS6では、セーフセンサ181からの
検出信号の入力処理を行なう図31のセーフセンサ読込
み処理フロー中において設定されるセーフセンサ検出フ
ラグを調べて該フラグが“1”ならステップS7で払出
処理(図43)を実行してから、またセーフセンサ検出
フラグが“0”なら、ステップS7をスキップしてステ
ップS8,S9へ移行する。
If "No" here, after performing the ball-punching process (FIG. 41-42) of the next step S5, "Ye"
If "s", step S5 is skipped and the process proceeds to step S6. In step S6, the safe sensor detection flag set in the safe sensor reading process flow of FIG. If the flag is "1", the payout process (FIG. 43) is executed in step S7. If the safe sensor detection flag is "0", step S7 is skipped and the process proceeds to steps S8 and S9.

【0101】ステップS8,S9では、排出系1と2の
排出カウンタをそれぞれチェックして、いずれのカウン
タの値も「11」以上の時は上記ステップS2へ戻って
上記手続きを繰り返す。一方、ステップS8,S9でい
ずれかのカウンタの値が「11」以下と判定した時は排
出異常と判断してステップS11へ移行し、玉抜きソレ
ノイドをオンさせ、セーフランプを点灯、さらに玉貸可
能信号RDYをロウレベル(無効状態)に変化させて終
了する。玉抜きソレノイドがオンされることにより、余
分に払いだされた玉は遊技機前面の受け皿でなく玉抜き
路157を通って遊技機の背部に回収され、故障等によ
る遊技店の不利益を回避することができる。
In steps S8 and S9, the discharge counters of the discharge systems 1 and 2 are checked, and when the value of any of the counters is "11" or more, the process returns to step S2 and the above procedure is repeated. On the other hand, when it is determined in step S8 or S9 that the value of either counter is equal to or less than "11", it is determined that the discharge is abnormal, the process proceeds to step S11, the ball drop solenoid is turned on, the safe lamp is turned on, and the ball lending is further performed. The enable signal RDY is changed to a low level (invalid state), and the process ends. When the ball drop solenoid is turned on, the extra balls paid out are collected on the back of the game machine through the ball drop path 157 instead of the saucer on the front of the game machine, avoiding the disadvantages of the game store due to malfunctions and the like. can do.

【0102】なお、ステップS8,S9で排出カウンタ
の値が「11」以下か否か判定することで排出異常を判
断しているのは、この実施例では、所定の排出数よりも
5個以上多く排出されたときに異常と判定するようにし
ているためである。なお、排出カウンタとして4ビット
のカウンタを使用し予め排出数をセットして排出玉検出
毎にカウントダウンさせるようした場合、上位から2ビ
ット目を監視するようにすれば、カウンタの値が「1
1」以下になったか否かをソフトウェア的に容易に知る
ことができる。
It should be noted that the discharge abnormality is determined by determining whether the value of the discharge counter is "11" or less in steps S8 and S9. This is because it is determined to be abnormal when a large amount is discharged. When a 4-bit counter is used as the discharge counter and the discharge number is set in advance to count down each time a discharge ball is detected, if the second bit from the higher order is monitored, the counter value will be "1."
It can be easily known by software whether or not the value becomes 1 ”or less.

【0103】図27には、図26のメインルーチンのス
テップS0で実行される初期化処理の手順が示されてい
る。この処理が開始されると、まず玉貸し制御装置60
0に対する玉貸可能信号RDYをロウレベルにネゲート
してから、割込み処理時の退避領域を指定するスタック
ポインタの設定を行なう(ステップS101,S10
2)。次に、システムクロックを分周してタイマのクロ
ック発生する可変分周器の分周率を1/4に設定し、タ
イマを起動させる(ステップS103,S105)。こ
れによって、例えばタイマとして8ビットのカウンタを
使用し、システムクロックとして500kHzの周波数
のクロックを用いたとすると、タイマカウンタは125
kHzのクロックでカウントアップされ、タイマからは
2.048m秒ごとにオーバーフロー(桁上げ)信号が
出力されるようになる。なお、上記タイマのオーバーフ
ロー(桁上げ)信号があるとそれを保持するフラグ(I
NT RQF)が設けられており、このフラグは、CP
Uがその状態を読み出すことによりクリアされるように
構成されている。
FIG. 27 shows the procedure of the initialization process executed in step S0 of the main routine of FIG. When this process is started, first, the ball lending control device 60
After the ball lending enable signal RDY for 0 is negated to the low level, the stack pointer for designating the save area during interrupt processing is set (steps S101 and S10).
2). Next, the system clock is frequency-divided to set the frequency division ratio of the variable frequency divider for generating the clock of the timer to 1/4, and the timer is activated (steps S103 and S105). Thus, for example, if an 8-bit counter is used as the timer and a clock having a frequency of 500 kHz is used as the system clock, the timer counter is 125
The clock is counted up with a clock of kHz, and the timer outputs an overflow (carry) signal every 2.048 ms. If there is an overflow (carry) signal from the timer, a flag (I
NT RQF) is provided and this flag is set to CP
It is configured to be cleared by U reading its state.

【0104】上記タイマ起動後は、ステップS107で
I/Oポートの初期化を行なって、排出制御装置600
から玉貸制御装置500へ供給する玉貸可能信号RDY
や排出終了信号EXS等の状態(初期レベル)を設定す
る。ちなみに、玉貸可能信号RDYの初期状態はロウレ
ベルで、排出終了信号EXSの初期状態はハイレベルで
ある。次に、ステップS109でソフトタイマを2秒
(カウント値「976」)に設定してから、上記ハード
タイマからのオーバーフロー(桁上げ)信号を保持する
フラグ(INT RQF)が“1”になるのを待ち(ス
テップS111)、“1”になるとステップS109で
設定したソフトタイマを「1」だけ減らす(ステップS
113)。そして、次のステップS115で上記ソフト
タイマの値が「0」になったか判定し、“No”なら上
記ステップS111へ戻ってタイマのカウントダウンを
繰り返し行なう。電源投入後、システムの動作が安定化
するのを待つためである。
After the timer is activated, the I / O port is initialized in step S107, and the emission control device 600 is initialized.
Lendable signal RDY supplied from the ball lending controller 500
And the state (initial level) of the discharge end signal EXS and the like are set. By the way, the initial state of the ball lending enable signal RDY is low level, and the initial state of the discharge end signal EXS is high level. Next, in step S109, the soft timer is set to 2 seconds (count value "976"), and then the flag (INT RQF) holding the overflow (carry) signal from the hard timer becomes "1". (Step S111), when it becomes "1", the soft timer set in step S109 is decreased by "1" (step S111).
113). Then, in the next step S115, it is determined whether or not the value of the soft timer has become "0", and if "No", the process returns to step S111 and the timer countdown is repeated. This is to wait for the system operation to stabilize after the power is turned on.

【0105】その後、ステップS115でソフトタイマ
(2秒)のカウント値が「0」になったと判定すると、
ステップS117へ移行して通信線の接続を確認する回
線テスト処理(図28)を行なってから、ステップS1
18,S119進み、不正監視用玉数設定処理として2
つの排出系1と2の排出カウンタにそれぞれ「4」を設
定した後、玉貸可能信号RDYをハイレベルにアサート
して(ステップS121)、当該初期化処理を終了す
る。
Thereafter, when it is determined in step S115 that the count value of the soft timer (2 seconds) has become "0",
After shifting to step S117 and performing line test processing (FIG. 28) for confirming connection of the communication line, step S1
18. Proceed to S119, and set 2 as the fraud monitoring ball number setting process.
After setting the respective discharge counters of the two discharge systems 1 and 2 to "4", the ball lending enable signal RDY is asserted to a high level (step S121), and the initialization process is ended.

【0106】図28には、図27のサブルーチン中にお
ける回線テスト処理(ステップS117)の手順の一例
が示されている。このサブルーチンが開始されると、先
ずステップS171で送信バッファに「回線テスト」コ
マンドをセットした後、タイマ2を12m秒に設定し、
クロック立上りエッジ検出フラグを“0”にクリアして
からバックグランド処理を行なう(ステップS173,
S175,S177)。そして、このバックグランド処
理で遊技盤制御装置400から供給されるクロックCK
の読込み(図28)を行なって、その中で設定されるク
ロック立上りエッジ検出フラグが“1”にセットされて
いるかを、ステップS181でチェックすることでクロ
ックが発生されていることを確認を行なう。タイマ2を
12m秒にセットしているのは、確認しようとしている
クロックCKの周期が8m秒であるからである。このタ
イマ2がタイムアップする前にクロック立上りエッジ検
出フラグが“1”にならなかったときは、上記ステップ
S173へ戻って再度タイマ2を設定しなおす(ステッ
プS179)。
FIG. 28 shows an example of the procedure of the line test process (step S117) in the subroutine of FIG. When this subroutine is started, first, in step S171, the "line test" command is set in the transmission buffer, and then the timer 2 is set to 12 msec.
Background processing is performed after the clock rising edge detection flag is cleared to "0" (step S173, step S173).
S175, S177). Then, in this background processing, the clock CK supplied from the game board control device 400
Is read (FIG. 28), and it is confirmed in step S181 whether the clock is generated by checking whether the clock rising edge detection flag set therein is set to "1". . The timer 2 is set to 12 msec because the cycle of the clock CK to be confirmed is 8 msec. If the clock rising edge detection flag does not become "1" before the timer 2 times out, the process returns to the step S173 and the timer 2 is set again (step S179).

【0107】ステップS181でクロック立上りエッジ
検出フラグが“1”になっているのを確認すると、ステ
ップS183へ進んでこのフラグを“0”にクリアして
から、再びタイマ2を12m秒に設定し、バックグラン
ド処理を行なう(ステップS185,S187)。それ
から上記クロック立上りエッジ検出フラグが“1”にな
っている再度確認する(ステップS191)。このよう
にしてクロックCKの立上りを2度確認してからステッ
プS193の送信処理(図29)へ移行して、「回線テ
スト」コマンドを送信するようになっている。タイマ2
(12m秒)がタイムアップする前にクロック立上りエ
ッジ検出フラグが“1”にならなかったときは、上記ス
テップS173へ戻って再度タイマ2を設定しクロック
の確認をやりなおす(ステップS189)。
When it is confirmed in step S181 that the clock rising edge detection flag is "1", the flow advances to step S183 to clear this flag to "0", and then the timer 2 is set to 12 ms again. , Background processing is performed (steps S185 and S187). Then, it is confirmed again that the clock rising edge detection flag is "1" (step S191). In this way, after confirming the rising edge of the clock CK twice, the process shifts to the transmission processing of step S193 (FIG. 29), and the "line test" command is transmitted. Timer 2
If the clock rising edge detection flag does not become "1" before (12 msec) has expired, the process returns to step S173, the timer 2 is set again, and the clock is checked again (step S189).

【0108】上記「回線テスト」コマンドを遊技盤制御
装置400が受信すると、前述したように「回線テス
ト」コマンドを送り返してくるようになっている(図1
7ステップS853−S857参照)。そこで、上記送
信処理(ステップS193)実行後は、ステップS19
5へ進んで受信処理(図30参照)を行ない、遊技盤制
御装置400からの応答(「回線テスト」コマンド)を
待つ。そして、次のステップS197で上記受信処理内
で設定されるデータエラーフラグをチェックして、フラ
グが“0”ならステップS199へ進み、受信したデー
タが「回線テスト」コマンドか否か確認して“Yes”
なら本ルーチンを終了する。一方、上記ステップS19
7でデータエラーフラグが“1”になっていたり、ステ
ップS199で回線テスト以外のコマンドを受信してい
ると、ステップS19へ戻って受信処理を繰り返す。
When the game board control device 400 receives the "line test" command, the "line test" command is sent back as described above (FIG. 1).
7 steps S853-S857). Therefore, after the transmission process (step S193) is executed, step S19 is performed.
5, the reception process (see FIG. 30) is performed, and a response (“line test” command) from the game board control device 400 is waited for. Then, in the next step S197, the data error flag set in the reception process is checked. If the flag is "0", the process proceeds to step S199 to check whether the received data is the "line test" command or not. Yes ”
Then, this routine is finished. On the other hand, the above step S19
If the data error flag is "1" in step 7 or a command other than the line test is received in step S199, the process returns to step S19 to repeat the receiving process.

【0109】図29には、図28の回線テスト処理ルー
チン中における送信処理(ステップS193)の手順の
一例が示されている。このサブルーチンでは、先ずステ
ップS701で上記クロック立上りエッジ検出フラグを
“0”にクリアしてから、送信バッファ内の送信データ
を1ビット読み込む(ステップS703)。それから、
タイマ2を12m秒に設定してからバックグランド処理
を行なう(ステップS705,S707)。そして、こ
のバックグランド処理で遊技盤制御装置400から供給
されるクロックCKの読込み(図39)を行なって、そ
の中で設定されるクロック立上りエッジ検出フラグが
“1”にセットされているかを、ステップS711でチ
ェックすることでクロックが立ち上がったのを確認して
次のステップS713へ進み、送信ポートへ送信バッフ
ァ内のビットを1つ出力する。これによって、クロック
CKの立上りに同期してコマンドの送信がなされる(図
60のタイミングts)。ステップS713でのビット
送信後は、ステップS715へ進み、全ビットの送信が
終了したか否か判定し、終了していないときは上記ステ
ップS707へ戻って上記手順を繰り返して送信コード
の全ビットを順番に送信する。なお、ステップS711
でクロック立上りエッジ検出フラグの変化を検出する前
にステップS705でセットしたタイマがタイムアップ
すると、図26のステップS0へ戻って初期化処理から
やりなおすようになっている。
FIG. 29 shows an example of the procedure of the transmission process (step S193) in the line test process routine of FIG. In this subroutine, first, the clock rising edge detection flag is cleared to "0" in step S701, and then 1 bit of the transmission data in the transmission buffer is read (step S703). then,
The background process is performed after the timer 2 is set to 12 ms (steps S705 and S707). Then, in this background processing, the clock CK supplied from the game board control device 400 is read (FIG. 39) to check whether the clock rising edge detection flag set therein is set to "1". By checking in step S711 that the clock has risen, the flow advances to step S713 to output one bit in the transmission buffer to the transmission port. As a result, the command is transmitted in synchronization with the rising of the clock CK (timing ts in FIG. 60). After the bit transmission in step S713, the process proceeds to step S715 to determine whether or not all the bits have been transmitted. If not, the process returns to step S707 and the above procedure is repeated to retrieve all the bits of the transmission code. Send in order. Note that step S711
If the timer set in step S705 expires before the change of the clock rising edge detection flag is detected in step S705, the process returns to step S0 in FIG. 26 and the initialization process is restarted.

【0110】図30には、図28の回線テスト処理ルー
チン中における受信処理(ステップS195)の手順の
一例が示されている。このサブルーチンでは、先ずステ
ップS721でタイマ3を3秒に設定してから、データ
エラーフラグおよびクロック立上りエッジ検出フラグを
それぞれ“0”にクリアする(ステップS723,S7
25)。次に別のタイマ2を12m秒に設定してからバ
ックグランド処理を行なう(ステップS727,S72
9)。そして、このバックグランド処理で遊技盤制御装
置400から供給されるクロックCKの読込み(図4
0)を行なって、その中で設定されるクロック立上りエ
ッジ検出フラグが“1”にセットされているかを、ステ
ップS733でチェックすることでクロックが立ち上が
ったのを確認して次のステップS735へ進み、再びバ
ックグランド処理を行なう。
FIG. 30 shows an example of the procedure of the receiving process (step S195) in the line test process routine of FIG. In this subroutine, first, the timer 3 is set to 3 seconds in step S721, and then the data error flag and the clock rising edge detection flag are each cleared to "0" (steps S723 and S7).
25). Next, another timer 2 is set to 12 msec and then background processing is performed (steps S727 and S72).
9). Then, in this background processing, the clock CK supplied from the game board control device 400 is read (see FIG. 4).
0) is performed, and it is checked in step S733 whether the clock rising edge detection flag set therein is set to "1", and it is confirmed that the clock has risen, and the process proceeds to the next step S735. , Perform background processing again.

【0111】それから、上記バックグランド処理の中で
読み込まれたクロックCKのチャタリング除去後のレベ
ルがロウレベルになっているか判定し、“Yes”なら
ステップS741へ移行して受信ポートより受信データ
を1ビット読み込んでメモリに記憶する(図59タイミ
ングtr1)。遊技盤制御装置400はクロックCKの
ハイレベルへの立上りに同期して送信データを切り換え
るので、クロックCKのロウレベルの期間に受信データ
を読み込むことにより、誤ったデータの読込みを防止す
ることができる。なお、ステップS731およびS73
7で、クロック立上りエッジ検出フラグの変化を検出す
る前にステップS727でセットしたタイマがタイムア
ップしたと判定すると、図26のステップS0へ戻って
初期化処理からやりなおすようになっている。
Then, it is determined whether or not the level of the clock CK read in the background processing after chattering removal is low level. If "Yes", the process proceeds to step S741 to receive 1 bit of received data from the receiving port. It is read and stored in the memory (timing tr1 in FIG. 59). Since the game board control device 400 switches the transmission data in synchronization with the rise of the clock CK to the high level, by reading the reception data during the low level period of the clock CK, it is possible to prevent erroneous data reading. Note that steps S731 and S73
If it is determined in step 7 that the timer set in step S727 has timed out before the change in the clock rising edge detection flag is detected, the process returns to step S0 in FIG. 26 to restart the initialization process.

【0112】ステップS741で受信ビットを読み込ん
だ後は、再びバックグランド処理を行なう(ステップS
743)。そして、読み込まれたクロックCKのチャタ
リング除去後のレベルがロウレベルになっているか判定
し、“Yes”ならステップS747へ移行して受信ポ
ートより受信データを1ビット読み込んでメモリに記憶
する(図59タイミングtr2)。バックグランド処理
では1m秒待ちを行なうので、ステップS743を入れ
ることにより、約1m秒の間隔をおいて同一のビットが
2度読みされることになる。それから、上記ステップS
741とS747で記憶した2つの読み込みビットと比
較して(ステップS749)、一致したならステップS
751へ進んでスタートビットの検出中か判定し、“N
o”ならステップS755へジャンプして読み込みビッ
トを受信バッファの対応ビットに記憶する。一方、ステ
ップS751でスタートビットの検出中と判定すると、
ステップS753へ進み、読み込んだ先頭のビットがロ
ウレベルか否か判定する。そして、“Yes”ならステ
ップS755へ移行して、読み込まれたスタートビット
を受信バッファの対応ビットに記憶する。
After reading the received bit in step S741, background processing is performed again (step S741).
743). Then, it is determined whether or not the level of the read clock CK after chattering removal is low level. If “Yes”, the process proceeds to step S747 to read one bit of received data from the receiving port and store it in the memory (FIG. 59 timing). tr2). Since 1 ms is waited in the background processing, by inserting step S743, the same bit is read twice at intervals of about 1 ms. Then, the above step S
741 and the two read bits stored in S747 (step S749), and if they match, step S
Proceed to 751 to determine if the start bit is being detected, and then "N
If “o”, the process jumps to step S755 to store the read bit in the corresponding bit of the reception buffer. On the other hand, if it is determined in step S751 that the start bit is being detected,
In step S753, it is determined whether the read top bit is at low level. Then, if "Yes", the process proceeds to step S755, and the read start bit is stored in the corresponding bit of the reception buffer.

【0113】それから、ステップS757へ進んで、受
信データの全ビットの読込みが終了したか判定し、“N
o”ならステップS759へ移行して上記ステップS7
21でセットしたタイマ3がタイムアップしたか判定
し、タイムアップしていなければステップS725へ戻
って上記手順を繰り返し、全ビットの読込みを行なう。
一方、ステップS759で、全ビットの読込みが終了す
る前にタイマ3がタイムアップしたと判定すると、本ル
ーチンを中断し、メインルーチンのステップS2へ戻っ
て最初からやりなおす。また、上記ステップS749
で、2度読みしたデータ同志が一致しなかったときは、
ステップS761へ移行してデータエラーフラグを
“1”にセットして本ルーチンを終了する。
Then, the process proceeds to step S757, it is determined whether the reading of all the bits of the received data is completed, and "N
If "o", the process proceeds to step S759 and the above step S7 is performed.
It is determined whether the timer 3 set in step 21 has timed out. If not, the process returns to step S725 to repeat the above procedure to read all bits.
On the other hand, if it is determined in step S759 that the timer 3 has timed out before the reading of all bits is completed, this routine is interrupted and the process returns to step S2 of the main routine to start over. Also, the above step S749
Then, when the data read twice do not match,
The flow shifts to step S761, the data error flag is set to "1", and this routine ends.

【0114】図31には、図26のメインルーチンや各
種処理中で実行されるバックグランド処理の内容が、ま
た図32−図39にはその具体的手順が示されている。
この処理はタイマの更新や各種センサからの検出信号、
各種入力信号の読込みのために行なわれるものである。
このバックグランド処理が開始されると、先ず、1m秒
待ち処理(ステップS21)を行なってから、タイマ0
とタイマ1、タイマ2、タイマ3(いずれもソフトタイ
マ)のカウント値の更新を行なう(ステップS22,S
23,S24,S25)。それから、セーフセンサの読
込み処理(ステップS26)および排出センサ1の読込
み処理(ステップS27)、排出センサ2の読込み処理
(ステップS28)、球抜センサの読込み処理(ステッ
プS29)、玉貸要求信号BRQの読込み処理(ステッ
プS30)、カード有無信号CONの読込み処理(ステ
ップS31)を行ない、続いてクロックCKの読込み処
理(ステップS32)を行なう。
FIG. 31 shows the contents of the background routine executed in the main routine of FIG. 26 and various processes, and FIGS. 32-39 show the concrete procedure thereof.
This processing is the update of the timer and the detection signal from various sensors,
This is performed for reading various input signals.
When this background processing is started, first, a 1-msec waiting processing (step S21) is performed, and then the timer 0
And count values of timer 1, timer 2 and timer 3 (all are soft timers) are updated (steps S22, S).
23, S24, S25). Then, the safe sensor reading process (step S26), the discharge sensor 1 reading process (step S27), the discharge sensor 2 reading process (step S28), the ball drop sensor reading process (step S29), and the ball lending request signal BRQ are performed. (Step S30), the card presence / absence signal CON is read (step S31), and then the clock CK is read (step S32).

【0115】図32は、上記ステップS21にて行なわ
れる1m秒待ち処理ルーチンのフローチャートである。
このサブルーチンが開始されると、先ずバッファもしく
はメモリにセーブされたタイマ用の8ビットカウンタ
(2.048m秒)の前回カウント値を読み出してから
(ステップS201)、現在のカウント値を読み込むと
ともにそれをバッファもしくはメモリにセーブする(ス
テップS203)。次に、読み込んだ現在のカウント値
と、前回のカウント値とを比較して最上位ビットb7が
変化したか判定し(ステップS205)、“Yes”な
ら処理を終了し、“No”ならステップS201へ戻っ
て再びセーブしたタイマの前回カウント値と現在のカウ
ント値を読み込んで最上位ビットb7の比較を繰り返
す。この8ビットのタイマカウンタは前述したように1
25kHzのクロックでカウントアップされるので、最
上位ビットb7が変化したときに1m秒(正確には1.
024m秒)経過したことになる。
FIG. 32 is a flow chart of the 1 msec wait processing routine performed in step S21.
When this subroutine is started, first, the previous count value of the timer 8-bit counter (2.048 msec) saved in the buffer or the memory is read (step S201), and then the current count value is read and The data is saved in the buffer or the memory (step S203). Next, the read current count value and the previous count value are compared to determine whether or not the most significant bit b7 has changed (step S205). If “Yes”, the process ends, and if “No”, step S201. Then, the previous count value and the current count value of the saved timer are read again and the comparison of the most significant bit b7 is repeated. This 8-bit timer counter is set to 1 as described above.
Since it is counted up with the clock of 25 kHz, when the most significant bit b7 changes, it takes 1 msec (more precisely, 1.
024 ms) has elapsed.

【0116】図33は、上記ステップS22にて行なわ
れるタイマ0の更新処理ルーチンのフローチャートであ
る。この実施例ではタイマ0として4ビットのカウンタ
を3本用意してあり、そのうち一つを上記1m秒待ち処
理終了毎に更新する1mSカウンタとして使用し、他の
一つはこの1mSカウンタがオーバーフローする毎に更
新する16mSカウンタとして使用し、残りの一つはこ
の16mSカウンタがオーバーフローする毎に更新する
256mSカウンタとして使用するようにしている。
FIG. 33 is a flow chart of the timer 0 update processing routine executed in step S22. In this embodiment, three 4-bit counters are prepared as the timer 0, one of them is used as a 1 mS counter that is updated each time the above 1 msec waiting processing is completed, and the other one overflows this 1 mS counter. It is used as a 16 mS counter that is updated every time, and the other one is used as a 256 mS counter that is updated each time this 16 mS counter overflows.

【0117】このサブルーチンが開始されると、まず1
mSカウンタをデクリメント(−1)してから(ステッ
プS211)、この1mSカウンタが桁下げすなわちオ
ール0からオール1に変化したか判定し(ステップS2
12)、桁下げがなければそのままこの処理を終了す
る。一方、1mSカウンタが桁下げがあると予め用意さ
れた1mSフラグに“1”をセットしてから(ステップ
S213)、16mSカウンタをデクリメントする(ス
テップS214)。それから、この16mSカウンタが
桁下げすなわちオール0からオール1に変化したか判定
し(ステップS215)、桁下げがなければそのままこ
の処理を終了する。
When this subroutine is started, first, 1
After decrementing (-1) the mS counter (step S211), it is determined whether or not the 1mS counter is lowered, that is, changed from all 0 to all 1 (step S2).
12) If there is no digit reduction, this process ends as it is. On the other hand, if the 1 mS counter carries a carry down, the 1 mS flag prepared in advance is set to "1" (step S213), and then the 16 mS counter is decremented (step S214). Then, it is judged whether or not the 16 mS counter is digit-reduced, that is, whether all 0 is changed to all 1 (step S215), and if there is no digit-reduction, this process is finished as it is.

【0118】さらに、ステップS215で桁下げ有りと
判定すると、予め用意された16mSフラグに“1”を
セットしてから(ステップS216)、256mSカウ
ンタをデクリメントする(ステップS217)。それか
ら、この256mSカウンタが桁下げを起こしたか判定
し(ステップS218)、桁下げがなければそのままこ
の処理を終了し、桁下げがあると予め用意された256
mSフラグに“1”をセットして処理を終了する(ステ
ップS219)。
Further, if it is determined in step S215 that there is a carry down, "1" is set in the 16 mS flag prepared in advance (step S216), and the 256 mS counter is decremented (step S217). Then, it is determined whether or not the 256 mS counter has caused a digit reduction (step S218), and if there is no digit reduction, this processing is ended as it is, and if there is a digit reduction, a 256 prepared in advance is prepared.
The mS flag is set to "1" and the process ends (step S219).

【0119】従って、例えば10m秒の経過待ちをした
い場合には、上記1mSカウンタに「1010」を設定
してからバックグランド処理でタイマを更新させ、1m
Sフラグを監視して“1”に変化するのを待てば良い。
なお、図31のステップS23におけるタイマ1の更新
処理とステップS24におけるタイマ2の更新処理およ
びステップS25におけるタイマ3の更新処理は、図3
3のタイマ0の更新処理と全く同じであるので図示およ
び説明を省略する。4つのソフトタイマを用意している
のは、同一処理内で4つまでの時間を同時に計測できる
ようにするためである。
Therefore, for example, when it is desired to wait for elapse of 10 msec, the timer is updated by the background process after setting "1010" in the 1 mS counter, and 1 mS is set.
It suffices to monitor the S flag and wait until it changes to "1".
It should be noted that the timer 1 update processing in step S23, the timer 2 update processing in step S24, and the timer 3 update processing in step S25 shown in FIG.
Since it is exactly the same as the updating process of the timer 0 of No. 3, the illustration and description will be omitted. The four soft timers are provided so that up to four times can be measured simultaneously in the same process.

【0120】図34は、図31のステップS26にて行
なわれるセーフセンサの読込み処理ルーチンのフローチ
ャートである。このサブルーチンが開始されると、先ず
ステップS221でセーフセンサの状態を入力ポートよ
り読み込んでから、一旦セーフセンサフラグを“1”に
セットする(ステップS223)。次に、ステップS2
21で読み込んで状態からセーフセンサ181がオンし
ているか判定し(ステップS225)、“Yes”なら
そのまま処理を終了し、“No”ならセーフセンサフラ
グを“0”にクリアして処理を終了する(ステップS2
27)。
FIG. 34 is a flow chart of the safe sensor read processing routine executed in step S26 of FIG. When this subroutine is started, the state of the safe sensor is first read from the input port in step S221, and then the safe sensor flag is temporarily set to "1" (step S223). Next, step S2
It is read in step 21 and it is determined from the state whether the safe sensor 181 is on (step S225). If “Yes”, the process is ended as it is, and if “No”, the safe sensor flag is cleared to “0” and the process is ended. (Step S2
27).

【0121】図35は、図31のステップS27にて行
なわれる排出センサ1の読込み処理ルーチンのフローチ
ャートである。このサブルーチンは排出センサ730a
の状態を検出するためのものであり、図35のバックグ
ランド処理により約1m秒毎に繰り返し実行される。な
お、排出センサは内側に球が存在しているときにその出
力信号がロウレベルとなり、球が流出して一時的に又は
継続してセンサ内に存在しなくなったときその出力信号
がハイレベルとなるように構成されている。従って本ル
ーチンではセンサ730aの出力信号がロウレベルから
ハイレベルに変化したときに後述の排出フラグを“1”
に設定して球が排出されたことを記憶するようになって
いる。一方、該センサ730a(以下、排出センサ1と
記す)の出力信号がハイレベルからロウレベルに変化し
たとき排出フラグを“0”に設定して球が待機状態にあ
ることを記憶するようになっている。
FIG. 35 is a flow chart of a routine for reading the emission sensor 1 performed in step S27 of FIG. This subroutine is for the discharge sensor 730a.
This is for detecting the state of the above, and is repeatedly executed about every 1 ms by the background processing of FIG. The output signal of the discharge sensor becomes low level when the sphere exists inside, and the output signal becomes high level when the sphere flows out and temporarily or continuously does not exist in the sensor. Is configured. Therefore, in this routine, when the output signal of the sensor 730a changes from the low level to the high level, the discharge flag described later is set to "1".
It is set to remember the discharge of the ball. On the other hand, when the output signal of the sensor 730a (hereinafter referred to as the discharge sensor 1) changes from the high level to the low level, the discharge flag is set to "0" to store that the ball is in the standby state. There is.

【0122】本ルーチンが開始されると、先ず該排出セ
ンサ1の出力信号の状態を入力ポートより、また前回の
排出センサ1の出力信号の状態をバッファ(もしくはメ
モリ)より読み込む(ステップS232,S234)。
そして、ステップS236で両方の信号状態を比較す
る。今仮りに球の排出が行われ、1つの球がセンサ1内
から脱した場合を考える。このとき排出センサ1の出力
信号はロウレベルからハイレベルに変化する。そのた
め、ステップS236の判定結果は“Yes”(変化有
り)となってステップS238以降が実行される。
When this routine is started, first, the state of the output signal of the discharge sensor 1 is read from the input port, and the state of the output signal of the previous discharge sensor 1 is read from the buffer (or memory) (steps S232 and S234). ).
Then, in step S236, both signal states are compared. Suppose now that the balls are ejected and one ball comes out of the sensor 1. At this time, the output signal of the discharge sensor 1 changes from low level to high level. Therefore, the determination result of step S236 is "Yes" (changed), and steps S238 and thereafter are executed.

【0123】ステップS238では、前回のセンサ状態
を廃棄して今回のセンサ状態をバッファに記憶してか
ら、上記タイマ0または1をチャタリング除去タイマと
して使用し、これを1m秒に設定する(ステップS24
0)。次に、ステップS232の読込み状態から該排出
センサ1の出力信号がロウレベルか否か判定する(ステ
ップS242)。ここでは、“No”と判定されるため
上記チャタリング除去タイマを4m秒に設定しなおす
(ステップS244)。それから、排出フラグを“0”
に設定する(ステップS246)。次に、ステップS2
62へ移行して上記排出フラグを調べて排出があったか
否か判定する。ここではまだ“No”と判定されるため
ステップS264をスキップして一旦終了する。
In step S238, the previous sensor state is discarded and the current sensor state is stored in the buffer, and then the timer 0 or 1 is used as a chattering elimination timer and set to 1 msec (step S24).
0). Next, it is determined from the read state in step S232 whether the output signal of the discharge sensor 1 is low level (step S242). Here, since the determination is "No", the chattering removal timer is reset to 4 msec (step S244). Then, set the discharge flag to "0"
Is set (step S246). Next, step S2
In step 62, the discharge flag is checked to determine whether or not there is discharge. Here, since it is still determined to be "No", step S264 is skipped and the process ends.

【0124】つぎに、再びバックグランド処理に入り1
m秒待ちしてから本ルーチンが実行されると、排出セン
サ1の出力信号がハイレベルの状態を保持する限りステ
ップS236で“No”すなわち変化無しと判定され
て、ステップS248へ進み、上記ステップS244
(またはS240)で設定したチャタリング除去タイマ
をデクリメント(−1)してから、該タイマがタイムア
ップしたか判定する(ステップS250)。ここでは、
タイマが4m秒に設定されているので、まず“No”と
判定されるため、ステップS246へ移行して排出フラ
グを“0”に設定し、ステップS262へ移行して“N
o”と判定されてステップS264をスキップして終了
することになる。
Next, the background processing is started again 1
When this routine is executed after waiting for m seconds, as long as the output signal of the emission sensor 1 maintains the high level state, it is determined to be "No" in step S236, that is, there is no change, and the process proceeds to step S248, and the above step is performed. S244
(Or S240) decrement (-1) the chattering removal timer, and then it is determined whether the timer has timed out (step S250). here,
Since the timer is set to 4 msec, it is first determined to be "No". Therefore, the process proceeds to step S246, the discharge flag is set to "0", and the process proceeds to step S262 to "N".
If it is determined to be "o", step S264 is skipped and the process ends.

【0125】その後、上記手順を繰り返しているうち
に、ステップS250でチャタリング除去タイマがタイ
ムアップしたと判定されると、ステップS252へ移行
して、ステップS232で読み込んだセンサ状態がロウ
レベルか否か判定する。ここではセンサがハイレベルの
場合を考えているので、“No”と判定されてステップ
S254へ進んでチャタリング除去後のレベル(バッフ
ァに記憶されており、初期設定でロウレベルにされてい
る)がロウレベルか否か判定する。そして、“Yes”
と判定されてステップS256へ進んでチャタリング除
去後のレベルをハイレベルに設定してから、排出フラグ
を“1”にセット(ステップS258)し、上記ステッ
プS262へ進む。すると、ステップS262では
“1”にセットされた排出フラグを見て、排出があった
と判定してステップS264へ進み、排出カウンタを
「1」だけ減算して本ルーチンを終了する。
After that, when it is determined in step S250 that the chattering removal timer has timed out while repeating the above procedure, the process proceeds to step S252, and it is determined whether or not the sensor state read in step S232 is low level. To do. Since the case where the sensor is at a high level is considered here, it is determined to be “No”, the flow proceeds to step S254, and the level after chattering removal (stored in the buffer and set to a low level by default) is a low level. It is determined whether or not. And "Yes"
Then, the process proceeds to step S256, the level after chattering removal is set to the high level, the discharge flag is set to "1" (step S258), and the process proceeds to step S262. Then, in step S262, the discharge flag set to "1" is checked, it is determined that there is discharge, the process proceeds to step S264, the discharge counter is decremented by "1", and this routine ends.

【0126】上記の場合、チャタリング除去タイマがタ
イムアップする前に、排出センサ1の出力状態がハイレ
ベルからロウレベルに変化してしまうと、ステップS2
36で変化有りと判定してステップS238へ移行する
ため、排出センサ1が4m秒以下のチャタリングノイズ
もしくは電気的なノイズを拾っても排出カウンタの減算
は行なわれない。
In the above case, if the output state of the discharge sensor 1 changes from the high level to the low level before the chattering removal timer times out, step S2
Since it is determined that there is a change in 36 and the process proceeds to step S238, even if the discharge sensor 1 picks up chattering noise or electrical noise of 4 msec or less, the discharge counter is not decremented.

【0127】次に、排出センサ1の出力信号がハイレベ
ルからロウレベルに立下がった場合を考える。この場合
も上記と同様にステップS236で状態変化有りと判定
されてステップS238へ移行する。ただし、今度はス
テップS242で“Yes”と判定されるため、ステッ
プS244,S246をスキップして一旦終了する。そ
して、再び本ルーチンが実行されたときにステップS2
36からS248へ進んでチャタリング除去タイマをデ
クリメント(−1)してから、該タイマがタイムアップ
したか判定する(ステップS250)。ここでは、タイ
マが1m秒に設定されているので、直ちに“Yes”と
判定されるため、ステップS252へ進んで排出センサ
1の状態がロウレベルか否か判定する。そして、“Ye
s”と判定されてステップS260へ移行してチャタリ
ング除去後のレベルをロウレベルに設定してから、ステ
ップS246で排出フラグを“0”に設定し、ステップ
S262へ移行して“No”と判定されてステップS2
64をスキップして終了することになる。なお、図31
のステップS28における排出センサ2の読込み処理ル
ーチンは、図35の排出センサ1の読込み処理ルーチン
と全く同じであるので図示および説明を省略する。
Next, consider a case where the output signal of the discharge sensor 1 falls from the high level to the low level. Also in this case, similarly to the above, it is determined in step S236 that there is a state change, and the process proceeds to step S238. However, this time, since "Yes" is determined in step S242, steps S244 and S246 are skipped and the process is ended. Then, when this routine is executed again, step S2
After proceeding from S36 to S248, the chattering removal timer is decremented (-1), and then it is determined whether or not the timer is up (step S250). Here, since the timer is set to 1 msec, it is immediately determined to be "Yes". Therefore, the process proceeds to step S252 and it is determined whether or not the state of the discharge sensor 1 is at the low level. And "Ye
s "is determined, the process proceeds to step S260, the level after chattering removal is set to a low level, the discharge flag is set to" 0 "in step S246, the process proceeds to step S262, and" No "is determined. Step S2
The process will be skipped and the process will end. Note that FIG.
The reading process routine of the discharge sensor 2 in step S28 is completely the same as the reading process routine of the discharge sensor 1 in FIG.

【0128】図36は、図31のステップS29にて行
なわれる玉抜きセンサの読込み処理ルーチンのフローチ
ャートである。このサブルーチンは玉抜きスイッチ75
0の状態を検出するためのものであり、図35のバック
グランド処理により約1m秒毎に繰り返し実行される。
なお、玉抜きスイッチは玉抜き棒によりオンされている
ときにその出力信号がロウレベルとなり、オフされてい
るときはその出力信号がハイレベルとなるように構成さ
れている。従って本ルーチンでは玉抜きスイッチ750
の出力信号がハイレベルからロウレベルに立ち下ったと
きに後述の立下りエッジ検出フラグを“1”に設定して
がオンされたことを記憶するようになっている。
FIG. 36 is a flow chart of the ball-punching sensor reading processing routine executed in step S29 of FIG. This sub-routine is a ball pulling switch 75
It is for detecting the state of 0, and is repeatedly executed about every 1 ms by the background processing of FIG.
The punching switch is configured so that its output signal is at a low level when it is turned on by the punching rod and that it is at a high level when it is turned off. Therefore, in this routine, the punching switch 750
When the output signal of 1 falls from the high level to the low level, a trailing edge detection flag, which will be described later, is set to "1" and the fact that is turned on is stored.

【0129】本ルーチンが開始されると、先ず該玉抜き
スイッチの出力信号の状態を入力ポートより読み込む
(ステップS302)。そして、次のステップS304
で読み込まれた信号状態がハイレベルか否か判定する。
玉抜きスイッチ750がオンされる前は出力信号はハイ
レベルであるため、ステップS304の判定結果は“Y
es”となってステップS306へ移行する。ステップ
S306では、前回のスイッチ状態をバッファより読み
出してハイレベルであったか判定する。ここで、“Ye
s”すなわち玉抜きスイッチの出力信号の状態が2回続
けてハイレベルであったならチャタリング除去後のレベ
ルをハイレベルとしてから、前回のセンサ状態を廃棄し
て今回センサ状態をハイレベルとしてバッファに記憶す
る(ステップS308,S310)。一方、ステップS
306で、“No”と判定されるとステップS308を
スキップしてステップS310へ移行し、今回センサ状
態をハイレベルとしてバッファに記憶して一旦本ルーチ
ンを終了する。
When this routine is started, first, the state of the output signal of the punching switch is read from the input port (step S302). Then, the next step S304
It is determined whether or not the signal state read in is at a high level.
Since the output signal is at the high level before the ball drop switch 750 is turned on, the determination result of step S304 is "Y".
It becomes "es" and moves to step S306. In step S306, it is determined whether the previous switch state was read from the buffer and was at the high level.
s ", that is, if the output signal of the ball drop switch is at the high level twice in a row, the level after chattering removal is set to the high level, the previous sensor state is discarded, and the current sensor state is set to the high level in the buffer. It is stored (steps S308 and S310).
When it is determined to be "No" in 306, step S308 is skipped, the process proceeds to step S310, the current sensor state is set to the high level in the buffer, and the present routine is once terminated.

【0130】つぎに、再びバックグランド処理に入り1
m秒待ちしてから本ルーチンが実行されると、玉抜きス
イッチの出力信号がハイレベルの状態を保持する限りス
テップS304からステップS306,S310と進
み、これを繰り返す。その後、上記手順を繰り返してい
るうちに、玉抜きスイッチ750がオンされると、ステ
ップS304で“No”と判定されてステップS312
へ進んで、前回のスイッチ状態をバッファより読み出し
てハイレベルであったか判定する。ここで、“No”と
判定されるとステップS320へ移行し、前回のセンサ
状態を廃棄して今回センサ状態をロウレベルとしてバッ
ファに記憶して一旦本ルーチンを終了する。
Next, the background processing is started again 1
When this routine is executed after waiting for m seconds, the process proceeds from step S304 to steps S306 and S310 and is repeated as long as the output signal of the punching switch maintains the high level state. After that, when the ball punching switch 750 is turned on while repeating the above procedure, it is determined as “No” in step S304, and step S312 is performed.
Then, the process proceeds to and the previous switch state is read from the buffer and it is determined whether it was at high level. Here, if it is determined to be "No", the process proceeds to step S320, the previous sensor state is discarded, the current sensor state is stored in the buffer as a low level, and the present routine is ended.

【0131】一方、ステップS312で、“Yes”す
なわち玉抜きスイッチの出力信号の状態が2回続けてロ
ウレベルであったならステップS314へすすんで前回
のチャタリング除去後のレベルがロウレベルか否か判定
し、“No”すなわち前回のチャタリング除去後のレベ
ルがハイレベルであったときはステップS316へ移行
して立下りエッジ検出フラグを“1”にセットし、チャ
タリング除去後のレベルをロウレベルとして終了する
(ステップS318)。このように上記ルーチンでは、
玉抜きスイッチの出力状態が2回続けてハイレベルまた
はロウレベルであると判定すると、その出力状態を確定
状態として記憶するため、が1m秒以下のチャタリング
ノイズもしくは電気的なノイズを拾っても誤って立下り
エッジ検出フラグを“1”にセットすることはない。
On the other hand, in step S312, if "Yes", that is, the state of the output signal of the punching switch is low level twice in succession, the process proceeds to step S314 to determine whether or not the level after the previous chattering removal is low level. , "No", that is, when the level after the previous chattering removal is the high level, the process proceeds to step S316, the falling edge detection flag is set to "1", and the level after the chattering removal is set to the low level, and the process ends. Step S318). Thus, in the above routine,
If it is determined that the output state of the ball drop switch is high level or low level twice in succession, the output state is stored as a fixed state, so even if the chattering noise or electrical noise of 1 ms or less is picked up, The falling edge detection flag is never set to "1".

【0132】図37は、図30のステップS30にて行
なわれる玉貸要求信号BRQの入力(読込み)処理ルー
チンのフローチャートである。このサブルーチンは玉貸
要求信号BRQの状態を検出するためのものであり、図
31のバックグランド処理により約1m秒毎に繰り返し
実行される。なお、玉貸要求信号BRQはそのレベルが
ロウレベルのときに有効状態を示し、ハイレベルのとき
は無効状態を示すようにされている。従って本ルーチン
では玉貸要求信号BRQがハイレベルからロウレベルに
立ち下ったときに後述の立下りエッジ検出フラグを
“1”に設定して玉貸要求信号BRQがロウレベルにア
サートされたことを記憶するようになっている。
FIG. 37 is a flowchart of the processing routine for inputting (reading) the ball lending request signal BRQ performed in step S30 of FIG. This subroutine is for detecting the state of the ball lending request signal BRQ, and is repeatedly executed about every 1 ms by the background processing of FIG. The ball lending request signal BRQ indicates a valid state when the level is low and an invalid state when the level is high. Therefore, in this routine, when the ball lending request signal BRQ falls from the high level to the low level, a falling edge detection flag described later is set to "1" to store that the ball lending request signal BRQ is asserted to the low level. It is like this.

【0133】本ルーチンが開始されると、先ず該玉貸要
求信号BRQの状態を入力ポートより読み込む(ステッ
プS332)。そして、次のステップS334で読み込
まれた信号状態がハイレベルか否か判定する。玉貸要求
信号BRQがアサートされる前はレベルがハイレベルで
あるため、ステップS334の判定結果は“Yes”と
なってステップS336へ移行する。ステップS336
では、前回の玉貸要求信号BRQの状態をバッファより
読み出してハイレベルであったか判定する。ここで、
“Yes”すなわち玉貸要求信号の状態が2回続けてハ
イレベルであったならノイズ除去後のレベルをハイレベ
ルとしてから、前回の信号レベル状態を廃棄して今回信
号レベル状態をハイレベルとしてバッファに記憶する
(ステップS338,S340)。一方、ステップS3
36で、“No”と判定されるとステップS338をス
キップしてステップS340へ移行し、今回信号レベル
状態をハイレベルとしてバッファに記憶して一旦本ルー
チンを終了する。
When this routine is started, first, the state of the ball lending request signal BRQ is read from the input port (step S332). Then, it is determined whether or not the signal state read in the next step S334 is a high level. Since the level is high level before the ball lending request signal BRQ is asserted, the determination result of step S334 is "Yes" and the process proceeds to step S336. Step S336
Then, the state of the previous ball lending request signal BRQ is read from the buffer and it is determined whether it is at the high level. here,
If “Yes”, that is, if the status of the ball lending request signal is high level twice in a row, the level after noise removal is set to high level, the previous signal level state is discarded, and the current signal level state is set to high level and buffered. (Steps S338 and S340). On the other hand, step S3
If it is determined to be "No" in 36, step S338 is skipped, the process proceeds to step S340, the current signal level state is set to the high level in the buffer, and this routine is once terminated.

【0134】つぎに、再びバックグランド処理に入り1
m秒待ちしてから本ルーチンが実行されると、玉貸要求
信号BRQの出力信号がハイレベルの状態を保持する限
りステップS334からステップS336,S340と
進み、これを繰り返す。その後、上記手順を繰り返して
いるうちに、玉貸要求信号BRQがロウレベルにアサー
トされると、ステップS334で“No”と判定されて
ステップS342へ進んで、前回のスイッチ状態をバッ
ファより読み出してハイレベルであったか判定する。こ
こで、“No”と判定されるとステップS350へ移行
し、前回の信号レベル状態を廃棄して今回信号レベル状
態をロウレベルとしてバッファに記憶して一旦本ルーチ
ンを終了する。一方、ステップS342で、“Yes”
すなわち玉貸要求信号の出力信号の状態が2回続けてロ
ウレベルであったならステップS344へすすんで前回
のノイズ除去後のレベルがロウレベルか否か判定し、
“No”すなわち前回のノイズ除去後のレベルがハイレ
ベルであったときはステップS346へ移行して立下り
エッジ検出フラグを“1”にセットし、ノイズ除去後の
レベルをロウレベルとして終了する(ステップS34
8)。このように上記ルーチンでは、玉貸要求信号BR
Qの出力レベルが2回続けてハイレベルまたはロウレベ
ルであると判定すると、その出力状態を確定状態として
記憶するため、玉貸要求信号BRQに1m秒以下のノイ
ズがのっても誤って立下りエッジ検出フラグを“1”に
セットすることはない。
Then, the background processing is started again 1
When this routine is executed after waiting for m seconds, as long as the output signal of the ball lending request signal BRQ maintains the high level state, the process proceeds from step S334 to steps S336 and S340, and this is repeated. After that, when the ball lending request signal BRQ is asserted to the low level while repeating the above procedure, it is determined as “No” in step S334, the process proceeds to step S342, the previous switch state is read from the buffer, and the high level is read. Determine if it was a level. If it is determined to be "No" here, the process proceeds to step S350, the previous signal level state is discarded, the current signal level state is stored in the buffer as a low level, and the present routine is once terminated. On the other hand, in step S342, "Yes"
That is, if the state of the output signal of the ball lending request signal is low level twice in succession, the process proceeds to step S344 to determine whether the level after the previous noise removal is low level,
If "No", that is, if the level after the previous noise removal is the high level, the process proceeds to step S346, the trailing edge detection flag is set to "1", and the level after the noise removal is set to the low level, and the process ends (step S346). S34
8). Thus, in the above routine, the ball lending request signal BR
When the output level of Q is determined to be high level or low level twice in a row, the output state is stored as a fixed state, and therefore the ball lending request signal BRQ is erroneously fallen even if a noise of 1 msec or less is present. The edge detection flag is never set to "1".

【0135】図38は、図31のステップS31にて行
なわれるカード有無信号CONの入力(読込み)処理ル
ーチンのフローチャートである。このサブルーチンはカ
ード有無信号CONの状態を検出するためのものであ
り、図31のバックグランド処理により約1m秒毎に繰
り返し実行される。なお、カード有無信号CONはその
レベルがハイレベルのときに有効状態(カードが挿入さ
れている状態)を示し、ロウレベルのときは無効状態
(カード無しの状態)を示すようにされている。従っ
て、本ルーチンではカード有無信号CONがロウレベル
からハイレベルに立ち上ったときに後述の立上りエッジ
検出フラグを“1”に設定してカード有無信号CONが
ハイレベルにアサートされたことを記憶し、カード有無
信号CONがハイレベルからロウレベルに立ち下ったと
きに後述の立下りエッジ検出フラグを“1”に設定して
カード有無信号CONがロウレベルにネゲートされたこ
とを記憶するようになっている。
FIG. 38 is a flowchart of the input (read) processing routine of the card presence signal CON performed in step S31 of FIG. This subroutine is for detecting the state of the card presence / absence signal CON, and is repeatedly executed about every 1 ms by the background processing of FIG. The card presence / absence signal CON indicates a valid state (state in which a card is inserted) when the level is high, and an invalid state (state in which there is no card) when the level is low. Therefore, in this routine, when the card presence / absence signal CON rises from the low level to the high level, a rising edge detection flag described later is set to "1" and it is stored that the card presence / absence signal CON is asserted at the high level. When the presence / absence signal CON falls from the high level to the low level, a trailing edge detection flag described later is set to "1" to store that the card presence / absence signal CON is negated to the low level.

【0136】本ルーチンが開始されると、先ず該カード
有無信号CONの状態を入力ポートより読み込む(ステ
ップS361)。そして、次のステップS362で読み
込まれた信号状態がハイレベルか否か判定する。カード
有無信号CONがアサートされる前はレベルがロウレベ
ルであるため、ステップS364の判定結果は“No”
となってステップS363へ移行する。ステップS36
3では、前回のカード有無信号CONの状態をバッファ
より読み出してロウレベルであったか判定する。ここ
で、“No”ならステップS364で読込み信号状態を
一旦ロウレベルと記憶して本ルーチンを終了する。一
方、上記ステップS363で“Yes”すなわちカード
有無信号CONの状態が2回続けてロウレベルであった
と判定したなら、ステップS365へ移行して前回のノ
イズ除去後のレベルがロウレベルか判定する。そして、
“Yes”なら何もせずに本ルーチンを終了し、“N
o”ならステップS366へ進んで、立下りフラグを
“1”にセットしてからノイズ除去後のレベルをロウレ
ベルとして本ルーチンを終了する(ステップS36
7)。
When this routine is started, first, the state of the card presence / absence signal CON is read from the input port (step S361). Then, it is determined whether or not the signal state read in the next step S362 is high level. Since the level is low level before the card presence / absence signal CON is asserted, the determination result of step S364 is “No”.
Then, the process proceeds to step S363. Step S36
At 3, the state of the previous card presence / absence signal CON is read from the buffer and it is determined whether it is at the low level. If "No" here, the read signal state is temporarily stored as a low level in step S364, and the present routine ends. On the other hand, if it is determined in step S363 that "Yes", that is, the state of the card presence / absence signal CON has been the low level twice consecutively, the process proceeds to step S365, and it is determined whether the level after the previous noise removal is the low level. And
If “Yes”, this routine is terminated without doing anything, and “N
If it is "o", the process proceeds to step S366, the fall flag is set to "1", the level after noise removal is set to low level, and this routine is finished (step S36).
7).

【0137】つぎに、再びバックグランド処理に入り1
m秒待ちしてから本ルーチンが実行されると、カード有
無信号CONの出力信号がロウレベルの状態を保持する
限りステップS362からステップS363,S365
と進み、これを繰り返す。その後、上記手順を繰り返し
ているうちに、カード有無信号CONがハイレベルにア
サートされると、ステップS362で“Yes”と判定
されてステップS368へ進んで、前回の信号状態をメ
モリより読み出してハイレベルであったか判定する。こ
こで、“No”と判定されるとステップS369へ移行
し、前回の信号レベル状態を廃棄して今回信号レベル状
態をハイレベルとしてメモリに記憶して一旦本ルーチン
を終了する。一方、ステップS368で、“Yes”す
なわちカード有無信号CONの状態が2回続けてハイレ
ベルであったならステップS370へすすんで前回のノ
イズ除去後のレベルがハイレベルか否か判定し、“Ye
s”なら本ルーチンを終了し、“No”すなわち前回の
ノイズ除去後のレベルがロウレベルであったときはステ
ップS371へ移行して、立上りフラグを“1”にセッ
トしてからノイズ除去後のレベルをハイレベルとして終
了する(ステップS372)。
Then, the background processing is started again 1
When this routine is executed after waiting for m seconds, as long as the output signal of the card presence / absence signal CON maintains the low level state, steps S362 to S363, S365
And repeat this. After that, when the card presence / absence signal CON is asserted to a high level while repeating the above procedure, it is determined to be “Yes” in step S362, the process proceeds to step S368, the previous signal state is read from the memory and set to high. Determine if it was a level. If it is determined to be "No" here, the process proceeds to step S369, the previous signal level state is discarded, the current signal level state is stored as a high level in the memory, and this routine is once terminated. On the other hand, in step S368, if "Yes", that is, the state of the card presence / absence signal CON is high level twice in a row, the process proceeds to step S370 to determine whether the level after the previous noise removal is high level, and "Yes".
If “s”, this routine is terminated, and if “No”, that is, the level after the previous noise removal is low level, the process proceeds to step S371, the rising flag is set to “1”, and the level after noise removal is set. Is set to a high level and the process ends (step S372).

【0138】このように上記ルーチンでは、カード有無
信号CONの出力レベルが2回続けてハイレベルまたは
ロウレベルであると判定すると、その出力状態を確定状
態として記憶するため、カード有無信号CONに1m秒
以下のノイズがのっても誤って確定レベルを“H”また
は“L”にセットすることはない。なお、カード有無信
号CONは、状態を示す信号でぁって、上記球貸要求信
号BRQのような要求もしくは応答信号でないので、立
上りエッジや立下りエッジを検出してフラグを立てる必
要がない。
As described above, in the above routine, when it is determined that the output level of the card presence / absence signal CON is the high level or the low level twice in succession, the output state is stored as the definite state. Even if the following noise occurs, the fixed level will not be set to "H" or "L" by mistake. The card presence / absence signal CON is a signal indicating a state and is not a request or response signal like the ball lending request signal BRQ, and therefore it is not necessary to detect a rising edge or a falling edge and set a flag.

【0139】図39は、図31のステップS32にて行
なわれるクロックCKの入力(読込み)処理ルーチンの
フローチャートである。このサブルーチンはクロックC
Kの状態を検出するためのものであり、図21のバック
グランド処理により約1m秒毎に繰り返し実行される。
なお、本ルーチンではクロックCKがハイレベルからロ
ウレベルに立ち下ったときに後述の立下りエッジ検出フ
ラグを“1”に設定してクロックCKがロウレベルに変
化したこととロウレベルまたはハイレベルにあるときに
その状態を記憶するようになっている。
FIG. 39 is a flowchart of the clock CK input (read) processing routine performed in step S32 of FIG. This subroutine is clock C
It is for detecting the state of K, and is repeatedly executed about every 1 ms by the background processing of FIG.
In this routine, when the clock CK falls from the high level to the low level, the falling edge detection flag described later is set to "1" and the clock CK changes to the low level, and when the clock CK is at the low level or the high level. It is designed to remember that state.

【0140】本ルーチンが開始されると、先ず該クロッ
クCKの状態を入力ポートより読み込む(ステップS3
32)。そして、次のステップS334で読み込まれた
信号状態がハイレベルか否か判定する。クロックCKが
ハイレベルであると、ステップS334の判定結果は
“Yes”となってステップS336へ移行する。ステ
ップS336では、前回のクロックCKの状態をバッフ
ァより読み出してハイレベルであったか判定する。ここ
で、“Yes”すなわちクロック信号の状態が2回続け
てハイレベルであったならノイズ除去後のレベルをハイ
レベルとしてから、前回の信号レベル状態を廃棄して今
回信号レベル状態をハイレベルとしてバッファに記憶す
る(ステップS338,S340)。一方、ステップS
336で、“No”と判定されるとステップS338を
スキップしてステップS340へ移行し、今回信号レベ
ル状態をハイレベルとしてバッファに記憶して一旦本ル
ーチンを終了する。
When this routine is started, first, the state of the clock CK is read from the input port (step S3).
32). Then, it is determined whether or not the signal state read in the next step S334 is a high level. If the clock CK is at the high level, the determination result of step S334 becomes "Yes" and the process proceeds to step S336. In step S336, the previous state of the clock CK is read from the buffer and it is determined whether it is at high level. Here, if the state of the clock signal is "Yes", that is, if the state of the clock signal is high level twice in succession, the level after noise removal is set to the high level, then the previous signal level state is discarded, and the current signal level state is set to the high level. The data is stored in the buffer (steps S338 and S340). On the other hand, step S
If it is determined to be "No" in 336, step S338 is skipped, the process proceeds to step S340, the current signal level state is set to the high level in the buffer, and this routine is once terminated.

【0141】つぎに、再びバックグランド処理に入り1
m秒待ちしてから本ルーチンが実行されると、クロック
CKがハイレベルの状態を保持する限りステップS33
4からステップS336,S340と進み、これを繰り
返す。その後、上記手順を繰り返しているうちに、クロ
ックCKがロウレベルに変化されると、ステップS33
4で“No”と判定されてステップS342へ進んで、
前回の状態をバッファより読み出してハイレベルであっ
たか判定する。ここで、“No”と判定されるとステッ
プS350へ移行し、前回の信号レベル状態を廃棄して
今回信号レベル状態をロウレベルとしてバッファに記憶
して一旦本ルーチンを終了する。一方、ステップS34
2で、“Yes”すなわちクロック信号の状態が2回続
けてロウレベルであったならステップS344へすすん
で前回のノイズ除去後のレベルがロウレベルか否か判定
し、“No”すなわち前回のノイズ除去後のレベルがハ
イレベルであったときはステップS346へ移行して立
下りエッジ検出フラグを“1”にセットし、ノイズ除去
後のレベルをロウレベルとして終了する(ステップS3
48)。このように上記ルーチンでは、クロックCKの
出力レベルが2回続けてハイレベルまたはロウレベルで
あると判定すると、その出力状態を確定状態として記憶
するため、クロックCKに1m秒以下のノイズがのって
も誤って立下りエッジ検出フラグを“1”にセットする
ことはない。
Next, the background processing is started again 1
When this routine is executed after waiting for m seconds, as long as the clock CK maintains the high level state, step S33.
From step 4, the process proceeds to steps S336 and S340 and is repeated. After that, when the clock CK is changed to the low level while repeating the above procedure, step S33.
In No. 4, it is determined to be “No”, the process proceeds to step S342,
The previous state is read from the buffer and it is determined whether it was at high level. If it is determined to be "No" here, the process proceeds to step S350, the previous signal level state is discarded, the current signal level state is stored in the buffer as a low level, and the present routine is once terminated. On the other hand, step S34
If “Yes”, that is, if the state of the clock signal is low level twice in succession, proceed to step S344 to determine whether or not the level after the previous noise removal is low level, and “No”, that is, after the previous noise removal. If the level is high, the process proceeds to step S346, the falling edge detection flag is set to "1", the level after noise removal is set to low level, and the process ends (step S3).
48). As described above, in the above routine, when it is determined that the output level of the clock CK is the high level or the low level twice in succession, the output state is stored as the definite state, so that the clock CK has noise of 1 msec or less. Also, the falling edge detection flag is not set to "1" by mistake.

【0142】図40には、排出制御装置600によって
実行されるメインルーチン(図26)のステップS2に
おけるカード挿排確認処理の具体的手順のフローチャー
トの一例が示されている。本ルーチンが開始されると、
先ずステップS381で玉貸し制御装置500から供給
されるカード有無信号CONの読込みを行なう図38の
サブルーチンで設定される立上りフラグを調べて“1”
が立っているか判定し、“Yes”ならステップS38
5へ移行して送信バッファに「カード挿入音要求」コマ
ンドを設定する。それから、ステップS389へ進んで
そのコマンドの送信処理(図29参照)を行なった後、
カード有無信号CONの立上りフラグと立下りフラグを
“0”にクリア(ステップS391,S393)して本
ルーチンを終了する。
FIG. 40 shows an example of a flowchart of a specific procedure of the card insertion / ejection confirmation processing in step S2 of the main routine (FIG. 26) executed by the ejection control device 600. When this routine starts,
First, in step S381, the rising flag set in the subroutine of FIG. 38 for reading the card presence / absence signal CON supplied from the ball lending controller 500 is checked to be "1".
Is determined, and if “Yes”, step S38.
Then, the process proceeds to step 5 to set the "card insertion sound request" command in the transmission buffer. Then, after proceeding to step S389 to perform the command transmission processing (see FIG. 29),
The rising flag and falling flag of the card presence / absence signal CON are cleared to "0" (steps S391 and S393), and this routine ends.

【0143】一方、上記ステップS381で“No”と
判定したときはステップS383へ進んで、図38のサ
ブルーチンで設定されるカード有無信号CONの立下り
フラグを調べて“1”が立っているか判定し、“Ye
s”ならステップS387へ移行して送信バッファに
「カード排出音要求」コマンドを設定する。それから、
ステップS389へ進んでそのコマンドの送信処理(図
29参照)を行なった後、カード有無信号CONの立上
りフラグと立下りフラグを“0”にクリア(ステップS
391,S393)して本ルーチンを終了する。また、
上記ステップS381とS383でともに“No”と判
定したときは、何もせずに本ルーチンを終了する。
On the other hand, if "No" is determined in the above step S381, the process proceeds to step S383 to check the falling flag of the card presence / absence signal CON set in the subroutine of FIG. 38 to determine whether "1" is set. Then, "Ye
If "s", the process proceeds to step S387 and the "card ejection sound request" command is set in the transmission buffer. then,
After proceeding to step S389 to perform the command transmission processing (see FIG. 29), the rising flag and falling flag of the card presence / absence signal CON are cleared to "0" (step S38).
391, S393) and the present routine ends. Also,
When it is determined to be "No" in both steps S381 and S383, the routine is terminated without doing anything.

【0144】図41および図42は、排出制御装置60
0によって実行されるメインルーチン(図26)のステ
ップS5において実行される玉抜処理のサブルーチンを
示すフローチャートである。この球抜処理ルーチンは遊
技店の係員によって球抜スイッチが押されたことがバッ
クグランド処理の中の球抜センサ読込み処理(図36)
によって検知され、球抜センサの立下りエッジ検出フラ
グが“1”に設定されたときにメインルーチン(図2
6)のステップS5で実行されるものである。
41 and 42 show a discharge control device 60.
27 is a flowchart showing a subroutine of a ball dropout process executed in step S5 of the main routine (FIG. 26) executed by 0. In this ball removal processing routine, the ball removal sensor reading process in the background process when the ball removal switch is pressed by the staff at the game shop (FIG. 36)
When the falling edge detection flag of the ball drop sensor is set to “1”, the main routine (FIG. 2) is detected.
This is executed in step S5 of 6).

【0145】本ルーチンが開始されると、先ずステップ
S402において球抜センサの立下りエッジ検出フラグ
が“1”であるか否かが判定される。ステップS402
の判定結果が“No”のときは何もせずに次の処理に移
行し、“Yes”のときはステップS404へ進み、上
記球抜センサの立下りエッジ検出フラグを“0”にクリ
アしてから、球抜ソレノイドを励磁(ON)する(ステ
ップS406)。すると、切換ゲート158が切り換え
られて、球排出装置から排出された球は球抜き樋157
を通って遊技盤背部に回収されるようになる。
When this routine is started, first, at step S402, it is judged if the falling edge detection flag of the ball drop sensor is "1". Step S402
If the determination result of No is "No", the process proceeds to the next process without doing anything, and if "Yes", the process proceeds to step S404 to clear the falling edge detection flag of the ball drop sensor to "0". Then, the ball-exiting solenoid is excited (ON) (step S406). Then, the switching gate 158 is switched, and the balls discharged from the ball discharging device are discharged from the ball removing gutter 157.
It will be collected through the back of the game board.

【0146】続くステップS408では、タイマ0を1
秒に設定してから、バックグランド処理を行なう(ステ
ップS410)。バックグランド処理によってステップ
S408で設定されたタイマ0の更新が1m秒毎に行な
われる。そこで、次のステップS412で上記タイマ0
がタイムアップしたか判定し、“No”ならステップS
410へ戻ってタイマ0の更新を繰り返すことで、1秒
が経過するのを待つ。ステップS406で作動させた球
抜ソレノイドにより切換ゲート158が完全に切り換え
られるのを待つためである。
In the following step S408, the timer 0 is set to 1
After setting to seconds, background processing is performed (step S410). By the background processing, the timer 0 set in step S408 is updated every 1 msec. Therefore, in the next step S412, the timer 0
Determines if the time is up, and if “No”, then step S
By returning to 410 and repeating the update of the timer 0, one second is awaited. This is to wait for the switching gate 158 to be completely switched by the ball-extracting solenoid operated in step S406.

【0147】球抜ソレノイド作動後、1秒が経過したと
きにステップS414へ進み、排出センサ1が待機球の
存在を検出しているか判定し、“Yes”ならステップ
S418へジャンプし、“No”ならステップS416
へ進んで排出センサ2が待機球の存在を検出しているか
判定する。そして、“Yes”なら次のステップS41
8進み、“No”なら後述のステップS468へジャン
プする。すなわち、排出センサ1または2のいずれかが
待機球の存在を検出していると排出ソレノイド1および
2を励磁させて球抜き排出を開始させ、排出センサ1お
よび2の両方が待機球を検出していないと球抜きソレノ
イドを消磁させて球抜き排出を終了させるようになって
いる。
When one second has passed after the ball-drawing solenoid was operated, the routine proceeds to step S414, where it is determined whether or not the discharge sensor 1 detects the presence of the standby ball. If "Yes", the routine jumps to step S418 and "No". Then step S416
Then, it proceeds to and determines whether the discharge sensor 2 detects the presence of the standby ball. If “Yes”, the next step S41
If it is “No”, the process jumps to step S468 described later. That is, when either the discharge sensor 1 or 2 detects the presence of the standby ball, the discharge solenoids 1 and 2 are excited to start the ball discharge, and both discharge sensors 1 and 2 detect the standby ball. If not, the ball removal solenoid is demagnetized and the ball removal is completed.

【0148】ステップS418で排出ソレノイド1およ
び2を励磁させた後は、ステップS420へ進み、バッ
クグランド処理を行なう。再度球抜きセンサの状態を読
み込んでチェックするためである。ステップS420の
バックグランド処理が終わると、ステップS422へ進
み、球抜センサの立下りエッジ検出フラグが“1”であ
るか否かが判定され、“1”なら図42のステップS4
68へ移行して、球抜き終了処理を行なう。玉抜き動作
中に再度球抜きスイッチ750をオンさせると球抜き動
作を停止できるようにするためである。
After exciting the discharge solenoids 1 and 2 in step S418, the process proceeds to step S420 to perform background processing. This is because the state of the ball-extracting sensor is read again and checked. When the background process of step S420 is completed, the process proceeds to step S422, and it is determined whether or not the falling edge detection flag of the ball drop sensor is "1". If "1", step S4 of FIG.
Then, the process proceeds to 68 to perform the ball removal completion processing. This is because if the ball removing switch 750 is turned on again during the ball removing operation, the ball removing operation can be stopped.

【0149】ステップS422で“No”すなわち最初
に球抜きスイッチ750がオンされて球抜き処理が開始
され、その後球抜きスイッチ750がオンされていない
ときは、ステップS424に進み、排出センサ1が待機
球の存在を検出しているか判定し、“Yes”なら上記
ステップS420へ戻り、“No”ならステップS42
6へ進んで排出センサ2が待機球の存在を検出している
か判定する。そして、ここで“Yes”なら上記ステッ
プS420へ戻り、“No”なら次のステップS428
進む。すなわち、排出センサ1または2のいずれかが待
機球の存在を検出している限り、排出ソレノイド1およ
び2を励磁させた球抜き排出を継続させ、排出センサ1
および2の両方が待機球を検出しなくなると、ステップ
S428へ進みタイマ0を3秒に設定する。
If "No" in the step S422, that is, if the ball removing switch 750 is first turned on to start the ball removing process and then the ball removing switch 750 is not turned on, the process proceeds to a step S424, and the discharge sensor 1 waits. It is determined whether or not the presence of a sphere is detected. If "Yes", the process returns to step S420, and if "No", the process proceeds to step S42.
The process proceeds to step 6 and determines whether the discharge sensor 2 detects the presence of a standby ball. Then, if “Yes” here, the process returns to the step S420, and if “No”, the next step S428.
move on. That is, as long as either the discharge sensor 1 or 2 detects the presence of the standby ball, the discharge solenoids 1 and 2 are excited to continue the ball discharge, and the discharge sensor 1
When both and 2 stop detecting the waiting ball, the process proceeds to step S428 and the timer 0 is set to 3 seconds.

【0150】それから、ステップS430へ進んでバッ
クグランド処理を行ない、ステップS428で設定され
たタイマ0の更新させてから、ステップS432に進
み、排出センサ1が待機球の存在を検出しているか判定
し、“Yes”なら上記ステップS420へ戻り、“N
o”ならステップS434へ進んで排出センサ2が待機
球の存在を検出しているか判定する。そして、ここで
“Yes”なら上記ステップS420へ戻り、“No”
なら次のステップS436進む。すなわち、排出センサ
1または2のいずれかが待機球の存在を検出している限
り、排出ソレノイド1および2を励磁させた球抜き排出
を継続させ、排出センサ1および2の両方が待機球を検
出しなくなると、ステップS436へ進みステップS4
28で設定されたタイマ0がタイムアップしたか判定
し、“No”なら上記ステップS430へ戻り、“Ye
s”なら次のステップS438へ進んで、排出ソレノイ
ド1および2を消磁させる。貯留タンク151および誘
導路152内の球が完全になくなるまで排出ソレノイド
1および2を作動させておくためである。
Then, in step S430, background processing is performed to update the timer 0 set in step S428, and then in step S432, it is determined whether the discharge sensor 1 detects the presence of a waiting ball. , "Yes", the process returns to step S420 and "N"
If “o”, the process proceeds to step S434 to determine whether the discharge sensor 2 detects the presence of the standby ball. If “Yes” here, the process returns to step S420 and “No”.
If so, the process proceeds to the next step S436. That is, as long as either the discharge sensor 1 or 2 detects the presence of the standby ball, the discharge solenoids 1 and 2 are excited to continue the ball discharge, and both discharge sensors 1 and 2 detect the standby ball. If not, the process proceeds to step S436 and step S4.
It is determined whether the timer 0 set in step 28 has timed out. If "No", the process returns to step S430, and "Yes"
If s ″, the process proceeds to the next step S438 to demagnetize the discharge solenoids 1 and 2. This is because the discharge solenoids 1 and 2 are operated until the balls in the storage tank 151 and the guide path 152 are completely exhausted.

【0151】通常、貯留タンク151および誘導路15
2内の球抜きを行なう場合、予備球が少なくなるに従っ
て流下する球と球の間隔が広くなって、最後の数個の球
は時々球止まりを起こしながら流下することがあるの
で、それが完全に排出される必要がある。ステップS4
38で排出ソレノイド1および2を消磁させた後は、図
42のステップS468へジャンプして球抜きソレノイ
ドをオフさせて流路切り換え弁158を元に戻してか
ら、排出系1と2の各排出カウンタに不正監視用玉数と
して「4」を設定して当該ルーチンを終了する(ステッ
プS470,S472)。
Normally, the storage tank 151 and the taxiway 15
When removing the balls in 2, the distance between the falling balls becomes wider as the number of spare balls decreases, and the last few balls sometimes flow down with a ball stop sometimes. Need to be discharged to. Step S4
After degaussing the discharge solenoids 1 and 2 in step 38, the process jumps to step S468 in FIG. 42 to turn off the ball removing solenoid to return the flow path switching valve 158 to its original state, and then discharge each of the discharge systems 1 and 2. The counter is set to "4" as the number of fraud monitoring balls, and the routine is finished (steps S470 and S472).

【0152】一方、球抜き動作の途中で球抜きスイッチ
750のオンを検知してステップS422からS440
へ移行したときは、球抜センサの立下りエッジ検出フラ
グを“0”をクリアしてから、排出系1と2の各排出カ
ウンタに「1」をセットする。そして、次のステップS
444でタイマ0を1秒に設定してからバックグランド
処理(ステップS446)を行ない、ステップS444
で設定されたタイマ0の更新させてから、ステップS4
48に進み、排出カウンタ1が「0」になっているか判
定する。ここで“Yes”なら次のステップS450で
排出ソレノイド1を消磁させ、“No”ならステップS
450をスキップしてステップS452で排出カウンタ
2が「0」になっているか判定する。ここで“Yes”
なら次のステップS454で排出ソレノイド2を消磁さ
せ、“No”ならステップS454をスキップして上記
ステップS444で設定したタイマ0がタイムアップし
たか判定する(ステップS456)。そして、ここで
“No”なら上記ステップS446へ戻り、“Yes”
なら次のステップS458へ進む。すなわち、排出カウ
ンタ1および2の両方が「0」にならなくてもタイマ0
がタイムアップすると、次のステップS458へ進ん
で、排出ソレノイド1および2を消磁させる。
On the other hand, during the ball removing operation, it is detected that the ball removing switch 750 is turned on, and steps S422 to S440 are executed.
When the process shifts to, the trailing edge detection flag of the ball ejection sensor is cleared to "0", and then "1" is set to each discharge counter of the discharge systems 1 and 2. And the next step S
After setting the timer 0 to 1 second in 444, background processing (step S446) is performed, and step S444
After updating the timer 0 set in step S4,
Proceeding to 48, it is judged whether the discharge counter 1 is "0". If “Yes” here, the discharge solenoid 1 is demagnetized in the next step S450, and if “No”, step S450.
It is determined whether the discharge counter 2 is "0" in step S452 by skipping 450. "Yes" here
If so, the discharge solenoid 2 is demagnetized in the next step S454, and if "No", step S454 is skipped and it is determined whether the timer 0 set in step S444 has timed up (step S456). Then, if “No” here, the process returns to the step S446, and “Yes”
If so, the process proceeds to the next step S458. That is, even if both the discharge counters 1 and 2 do not become "0", the timer 0
When the time elapses, the process proceeds to the next step S458, and the discharge solenoids 1 and 2 are demagnetized.

【0153】球抜きを中断させる際に上記ステップS4
42で排出系1と2の各排出カウンタに「1」をセット
しているのは、排出センサの位置と排出ソレノイドによ
り駆動されるストッパの位置との関係を考慮して、流下
する球に対して排出ソレノイド1と2を消磁させるタイ
ミングを合わせて、ストッパ745と案内樋710との
間に球が挾まれて球詰まりを起こすのを防止するためで
ある。
At the time of interrupting the ball removal, the above step S4
At 42, the discharge counters of the discharge systems 1 and 2 are set to "1" because the relationship between the position of the discharge sensor and the position of the stopper driven by the discharge solenoid is taken into consideration for the falling ball. This is to prevent the balls from being caught between the stopper 745 and the guide gutter 710 due to the timing of demagnetizing the discharge solenoids 1 and 2 to cause the ball clogging.

【0154】ステップS458で排出ソレノイド1と2
を消磁させた後は、ステップS460へ移行して、再び
タイマ0を3秒に設定してから、バックグランド処理を
行なう(ステップS462)。バックグランド処理によ
ってステップS460で設定されたタイマ0の更新が1
m秒毎に行なわれる。そこで、次のステップS464で
上記タイマ0がタイムアップしたか判定し、“No”な
らステップS462へ戻ってタイマ0の更新を繰り返す
ことで、3秒が経過するのを待つ。そして、3秒経過し
た時点で球抜きソレノイドをオフさせて、切換ゲート1
58を元の状態に切り換え、球排出装置170から排出
された球が供給皿の方へ誘導されるようにする。球排出
装置170から切換ゲート158までの距離を考慮した
もので、これによって球排出装置170から排出された
球が切換ゲート158に達する前に、ゲートが切り換え
られるのを防止することができる。続くステップS47
0,S472では、排出系1と2の各排出カウンタに不
正監視用玉数として「4」を設定して当該ルーチンを終
了する。
At step S458, the discharge solenoids 1 and 2 are discharged.
After degaussing, the process proceeds to step S460, timer 0 is set again to 3 seconds, and then background processing is performed (step S462). By the background processing, the timer 0 set in step S460 is updated by 1
It is performed every m seconds. Therefore, in the next step S464, it is determined whether or not the timer 0 has timed out, and if "No", the process returns to step S462 and the timer 0 is repeatedly updated to wait for 3 seconds. Then, after 3 seconds, the ball removing solenoid is turned off, and the switching gate 1
58 is switched to the original state so that the balls discharged from the ball discharging device 170 are guided toward the supply dish. The distance from the ball ejecting device 170 to the switching gate 158 is taken into consideration, so that the gates can be prevented from being switched before the balls ejected from the ball ejecting device 170 reach the switching gate 158. Continued Step S47
At 0 and S472, the number of fraud monitoring balls is set to "4" in each ejection counter of the ejection systems 1 and 2, and the routine is finished.

【0155】図43は、排出制御装置600によって実
行されるメインルーチン(図26)のステップS7にお
いて実行される払出処理のサブルーチンを示すフローチ
ャートで、このフローによって賞品球の排出が行なわれ
る。このルーチンでは、まずステップS501で排出条
件の判定処理(図44)を行なってから、次のステップ
S502でその結果を見て排出可能か不能か判定する。
そして、排出不能なら何もせずに本ルーチンを終了す
る。
FIG. 43 is a flowchart showing a subroutine of payout processing executed in step S7 of the main routine (FIG. 26) executed by the discharge control device 600, and the prize balls are discharged by this flow. In this routine, first, the discharge condition determination process (FIG. 44) is performed in step S501, and then in step S502, it is determined whether the discharge is possible or not based on the result.
If it cannot be discharged, the routine is terminated without doing anything.

【0156】また、排出可能であれば、賞球数要求処理
(ステップS503)、賞球数設定処理(ステップS5
04)および賞球排出処理(ステップS505)を順次
行なってからステップS506で処理が正常に終了した
か判定し、“No”なら上記ステップS504へ戻って
上記処理を繰り返し、“Yes”なら次のステップへ進
み、セーフ玉排出処理(ステップS507)および賞球
排出終了処理(ステップS508)を順次行なて、本ル
ーチンを終了する。
If the ball can be discharged, the prize ball number request process (step S503) and the prize ball number setting process (step S5).
04) and the prize ball discharging process (step S505) are sequentially performed, and then it is determined in step S506 whether the process is normally completed. If “No”, the process returns to step S504 to repeat the process, and if “Yes”, the next process is performed. The process proceeds to step, and the safe ball discharging process (step S507) and the prize ball discharging ending process (step S508) are sequentially performed, and the present routine is ended.

【0157】図44には、図43のステップS501に
て行なわれる排出条件判定処理ルーチンのフローチャー
トが示されている。このルーチンでは、まずステップS
5011で後述のセーフ玉排出処理ルーチン(図49)
のステップS5708で設定される排出ウェイトタイマ
が起動中か否か判定し、“Yes”ならステップS50
19で排出可能を示すフラグを“0”にクリアして本ル
ーチンを終了する。また、“No”なら、ステップS5
012でタイマ0を50m秒に設定してから、バックグ
ランド処理(ステップS5013)を行なってステップ
S5012で設定されたタイマ0を更新する。次のステ
ップS5014では、セーフセンサ読込み処理(図3
4)によってセットされるセーフセンサフラグを調べて
“1”ならステップS5015,5016で排出センサ
1および2の出力レベルがハイレベル(玉有り)か否か
判定する。そして、いずれのセンサも出力がハイレベル
ならステップS5017へ進んで、上記ステップS50
12で設定したタイマ0がタイムアップしたか判定し、
“No”ならステップS5013へ戻ってタイマ0の更
新を繰り返すことで、50m秒が経過するのを待つ。そ
して、タイマ0がタイムアップした時点でステップS5
018へ進み、排出可能フラグを“1”にセットして本
ルーチンを終了する。一方、上記ステップS5014,
S5015,S5016でセーフセンサフラグが“0”
または排出センサ1または2のいずれかの出力がロウレ
ベルと判定すると、ステップS5019へ移行して、排
出不可を示すフラグを“1”にセットして本ルーチンを
終了する。この排出可能フラグは、上述したように図4
3の払出処理ルーチンのステップS502で参照され
る。
FIG. 44 shows a flowchart of the discharge condition determination processing routine executed in step S501 of FIG. In this routine, first, step S
In 5011, a safe ball discharge processing routine described later (FIG. 49)
It is determined whether the discharge wait timer set in step S5708 of No. is in operation, and if “Yes”, step S50.
The flag indicating that discharge is possible is cleared to "0" at 19 and this routine ends. If “No”, step S5
After the timer 0 is set to 50 msec in 012, the background processing (step S5013) is performed to update the timer 0 set in step S5012. In the next step S5014, the safe sensor reading process (see FIG.
The safe sensor flag set by 4) is checked, and if it is "1", it is determined in steps S5015 and 5016 whether the output levels of the discharge sensors 1 and 2 are high levels (with balls). If the output of any of the sensors is high level, the process proceeds to step S5017 and the above step S50.
Determine whether the timer 0 set in 12 has timed up,
If “No”, the process returns to step S5013 and repeats the update of the timer 0, thereby waiting for the lapse of 50 ms. Then, when the timer 0 times out, step S5
Proceeding to 018, the discharge possible flag is set to "1" and this routine is ended. On the other hand, in step S5014,
The safe sensor flag is "0" in S5015 and S5016.
Alternatively, if it is determined that the output of either the discharge sensor 1 or 2 is low level, the process proceeds to step S5019, the flag indicating that discharge is impossible is set to "1", and this routine is ended. This dischargeable flag is set in FIG.
Reference is made in step S502 of the payout processing routine of No. 3.

【0158】図45には、図43のステップS503に
て行なわれる賞球数要求処理ルーチンのフローチャート
が示されている。本ルーチンが開始されると、まずステ
ップS5031で送信バッファに「賞球数要求」コマン
ドを書込みかつ再送信回数を「3」に設定してから、図
29に示されている送信処理を行なう(ステップS50
33)。次に図30に示されている受信処理(ステップ
S5035)を行ない、全ビット受信後に図30のフロ
ーの中のステップS721でセットしたタイマ(3秒)
がタイムアップしたか判定する(ステップS503
7)。ここで“No”ならステップS5039へ進んで
データエラーフラグに“1”が立っているか判定する。
そして、エラーフラグが“0”なら受信した賞球数デー
タをバッファよりメモリに記憶してから(ステップS5
041)、再び受信処理を行なう(ステップS504
3)。これにより、図30の受信処理における同一ビッ
トの2度読みとあわせて、遊技盤制御装置400から2
回連続して送信されてくる同一データの2回読みが行な
われる。
FIG. 45 shows a flowchart of the prize ball number request processing routine executed in step S503 of FIG. When this routine is started, first, in step S5031, a "prize number request" command is written in the transmission buffer and the number of retransmissions is set to "3", and then the transmission processing shown in FIG. 29 is performed ( Step S50
33). Next, the reception process (step S5035) shown in FIG. 30 is performed, and after the reception of all bits, the timer (3 seconds) set in step S721 in the flow of FIG.
Determines whether the time has expired (step S503
7). If “No” here, the flow advances to step S5039 to determine whether “1” is set in the data error flag.
If the error flag is "0", the received prize ball number data is stored in the memory from the buffer (step S5).
041), and the receiving process is performed again (step S504).
3). As a result, in addition to the double reading of the same bit in the reception processing of FIG.
The same data transmitted continuously twice is read twice.

【0159】ステップS5043での受信処理後は、図
30のフローの中のステップS721でセットしたタイ
マ(3秒)がタイムアップしたか判定する(ステップS
5045)。ここで“No”ならステップS5047へ
進んでデータエラーフラグに“1”が立っているか判定
する。そして、エラーフラグが“0”なら受信した2つ
の賞球数データが同一であったか判定する(ステップS
5049)。そして、賞球数データが同一ならステップ
S5051へ進み、受信したデータが賞球数のデータで
あるか否か判定する。この判定は、受信データが「回線
テスト」コマンド、「再送要求」コマンドその他予め決
められた使用可能コマンド以外のコードか否かチェック
することで判定することができる。ここで、受信したデ
ータが賞球数データであると判定したときは、受信した
賞球数データを排出装置により払いだすべき賞球数と決
定して排出カウンタに設定して本ルーチンを終了する
(ステップS5053)。
After the reception processing in step S5043, it is determined whether the timer (3 seconds) set in step S721 in the flow of FIG. 30 has timed out (step S).
5045). If "No" here, the flow advances to step S5047 to determine whether "1" is set in the data error flag. Then, if the error flag is “0”, it is determined whether or not the received two prize ball number data are the same (step S
5049). If the prize ball number data is the same, the process advances to step S5051 to determine whether the received data is the prize ball number data. This determination can be made by checking whether or not the received data is a code other than the "line test" command, the "retransmission request" command and other predetermined usable commands. Here, when it is determined that the received data is the prize ball number data, the received prize ball number data is determined as the number of prize balls to be paid out by the discharging device, set in the discharge counter, and the present routine ends. (Step S5053).

【0160】一方、上記ステップS5037またはS5
045で、受信が終了する前にタイマ3がタイムアップ
したと判定したとき、あるいはステップS5047でデ
ータエラーフラグが“1”と判定したり、ステップS5
049で2回の受信データが不一致と判定したとき、お
よびステップS5051での判定で受信データが賞球数
データでなかったときは、ステップS5055へ移行し
て送信バッファに「再送要求」コマンドが設定されてい
るか判定する。ここで、“Yes”ならステップS50
59へジャンプして再送要求回数を「1」だけ減算し、
ステップS5055で“No”の時はステップS505
7で、送信バッファに「再送要求」コマンドを書込みか
つ再送信回数を「4」に設定してから、ステップS50
59へ移行して再送要求回数を「1」だけ減算する。そ
して、次のステップS5061で再送信回数が「0」に
なったか判定し、“No”なら上記ステップS5033
へ戻って送信処理からやりなおす。また、ステップS5
061での判定で“Yes”すなわち再送信回数が
「0」になったときは図26のメインルーチンへ戻って
最初からやりなおす。なお、上記処理では受信したデー
タについてのパリティエラーのチェックが記載されてい
ないが、パリティエラーがなかったか併せてチェックす
るようにしてもよい。
On the other hand, the above step S5037 or S5
In 045, when it is determined that the timer 3 has timed out before the reception ends, or in step S5047, the data error flag is determined to be “1”, or in step S5.
If it is determined that the received data does not match twice in 049, or if the received data is not the prize ball number data in the determination in step S5051, the process proceeds to step S5055 and the "retransmission request" command is set in the transmission buffer. Determine if it has been done. If “Yes” here, step S50.
Jump to 59, subtract the number of resend requests by "1",
If "No" in step S5055, step S505
In step 7, the “retransmission request” command is written in the transmission buffer and the number of retransmissions is set to “4”, and then step S50
In step 59, the number of retransmission requests is decremented by "1". Then, in the next step S5061, it is determined whether or not the number of retransmissions has become “0”, and if “No”, the above step S5033.
Return to and start over from the sending process. Also, step S5
If the result of the determination at 061 is “Yes”, that is, if the number of retransmissions is “0”, the process returns to the main routine of FIG. 26 and starts over. It should be noted that although the above process does not describe checking the received data for a parity error, it may also be possible to check whether or not there is a parity error.

【0161】図46には、図43のステップS504に
て行なわれる賞球数設定処理ルーチンのフローチャート
が示されている。本ルーチンが開始されると、まずステ
ップS5401で排出カウンタ1および2を一旦「0」
にセットしてから、上記ルーチンで受信した賞球数デー
タが「9」以上か判定する(ステップS5402)。こ
こで、賞球数データが「9」以上ならステップS540
3へ進んで、賞球数が偶数のときは排出カウンタ1に賞
球数の2分の1を、また賞球数が奇数のときは(賞球数
+1)の2分の1をセットする。また、排出カウンタ2
には、賞球数が偶数のときは賞球数の2分の1の数を、
また賞球数が奇数のときは(賞球数+1)の2分の1よ
りも「1」だけ少ない数をセット(ステップS540
4)してから、排出ソレノイド1と2を励磁させる(ス
テップS5405)。これによって、排出すべき賞品球
を2つの排出系にほぼ均等に割り振って排出させること
ができる。
FIG. 46 shows a flowchart of the award ball number setting processing routine executed in step S504 of FIG. When this routine is started, first in step S5401, the discharge counters 1 and 2 are once set to "0".
After the setting, the number of prize balls received in the above routine is determined to be "9" or more (step S5402). If the number of prize balls data is "9" or more, step S540.
When the number of prize balls is even, the discharge counter 1 is set to one half of the number of prize balls, and when the number of prize balls is odd, one half of (number of prize balls + 1) is set. . Also, the discharge counter 2
Is a half of the number of prize balls when the number of prize balls is even,
When the number of prize balls is an odd number, a number smaller than ½ of (number of prize balls + 1) by “1” is set (step S540).
After 4), the discharge solenoids 1 and 2 are excited (step S5405). As a result, the prize balls to be discharged can be equally distributed to the two discharge systems and discharged.

【0162】一方、ステップS5402の判別結果が
“No”すなわち賞球数データが「9」以下のときには
ステップS5406へ移行して、片側排出フラグを反転
させてから、この片側排出フラグが“1”であるか否か
判定する(ステップS5407)。この片側排出フラグ
は、賞品球を排出系1または排出系2のいずれの側から
排出させるか指示するためのもので、片側排出フラグが
“1”のときはステップS5408へ進んで賞球数を排
出カウンタ1のみに設定して、排出ソレノイド1を励磁
させて本ルーチンを終了する(ステップS5409)。
On the other hand, if the result of the determination in step S5402 is "No", that is, if the number of prize balls data is "9" or less, the flow proceeds to step S5406 to reverse the one-sided discharge flag, and then the one-sided discharge flag is "1". It is determined whether or not (step S5407). This one-sided discharge flag is for instructing from which side of the discharge system 1 or the discharge system 2 the prize balls are to be discharged. When the one-sided discharge flag is "1", the process proceeds to step S5408 to determine the number of prize balls. Only the discharge counter 1 is set, the discharge solenoid 1 is excited, and this routine ends (step S5409).

【0163】上記ステップS5407で“No”すなわ
ち片側排出フラグが“0”と判定したときはステップS
5410へ進んで、賞球数を排出カウンタ2のみに設定
して、排出ソレノイド2を励磁させて本ルーチンを終了
する(ステップS5411)。以上のように、本サブル
ーチンでは、賞球設定数が大きな値(9〜15)に設定
されているときに該設定数を分割して2つの排出レジス
タ1,2にその値を設定しているので、この排出レジス
タ1,2の値に基づいて次の賞球排出処理(図47)に
より第1及び第2の排出ソレノイドを夫々独立してオフ
させることにより、所定数の賞品球の排出を一層迅速に
行える。
If it is determined "No" in step S5407, that is, the one-sided discharge flag is "0", step S5407.
The process proceeds to 5410, the number of prize balls is set only in the discharge counter 2, the discharge solenoid 2 is excited, and the present routine ends (step S5411). As described above, in this subroutine, when the set number of prize balls is set to a large value (9 to 15), the set number is divided and the values are set in the two discharge registers 1 and 2. Therefore, based on the values of the discharge registers 1 and 2, the first and second discharge solenoids are independently turned off by the next prize ball discharge processing (FIG. 47), so that a predetermined number of prize balls are discharged. It can be done more quickly.

【0164】図47は、図43の払出処理ルーチンのス
テップS505において実行される賞球排出処理のサブ
ルーチンを示すフローチャートである。この賞球排出処
理ルーチンは上記賞球数設定処理(図46)によって排
出賞球数の設定に引き続いて実行される。
FIG. 47 is a flow chart showing a subroutine of prize ball discharge processing executed in step S505 of the payout processing routine of FIG. This prize ball discharge processing routine is executed subsequent to the setting of the number of discharged prize balls by the prize ball number setting process (FIG. 46).

【0165】本ルーチンが開始されると、先ずステップ
S5502において賞球排出表示器112(セーフラン
プ)を点灯させてから、ステップS5504へ進み、タ
イマ0を35m秒に設定してから、バックグランド処理
を行なう(ステップS5506)。バックグランド処理
によってステップS5504で設定されたタイマ0の更
新が1m秒毎に行なわれる。そこで、次のステップS5
508で上記タイマ0がタイムアップしたか判定し、
“No”ならステップS5506へ戻ってタイマ0の更
新を繰り返すことで、35m秒が経過するのを待つ。ス
テップS5502で点灯させた賞球排出表示器112が
完全に明るくなるのを待つためである。
When this routine is started, first, in step S5502, the award ball discharge indicator 112 (safe lamp) is turned on, and then in step S5504, the timer 0 is set to 35 msec, and then the background processing is executed. Is performed (step S5506). By the background processing, the timer 0 set in step S5504 is updated every 1 msec. Therefore, the next step S5
At 508, it is determined whether the timer 0 has timed up,
If “No”, the process returns to step S5506 and repeats the updating of the timer 0 to wait for 35 msec. This is to wait for the award ball discharge indicator 112 that has been turned on in step S5502 to become completely bright.

【0166】賞球排出表示器点灯後、35m秒が経過し
たときにステップS5510へ進み、タイマ0を3秒に
設定してから、バックグランド処理を行ないタイマ0を
更新する(ステップS5512)。次に、排出系1につ
いて賞球排出終了判定処理(図48参照)を行なってか
ら当該処理内で設定される排出終了フラグを調べて、排
出系1の賞球排出が終了したか判定する(ステップS5
514,S5516)。そして、“Yes”ならステッ
プS5518へ進んで排出ソレノイド1をオフさせ、
“No”ならステップS5518をスキップしてステッ
プS5520へ移行して排出系2について賞球排出終了
判定処理(図48参照)を行なってから当該処理内で設
定される排出終了フラグを調べて、排出系2の賞球排出
が終了したか判定する(ステップS5522)。
After 35 ms have elapsed after the award ball discharge indicator is turned on, the flow advances to step S5510 to set timer 0 to 3 seconds, and then background processing is performed to update timer 0 (step S5512). Next, a prize ball discharge end determination process (see FIG. 48) is performed on the discharge system 1, and then the discharge end flag set in the process is checked to determine whether the discharge system 1 has completed prize ball discharge ( Step S5
514, S5516). If “Yes”, the process proceeds to step S5518 to turn off the discharge solenoid 1,
If “No”, the process skips step S5518 and moves to step S5520 to perform the prize ball discharge end determination process (see FIG. 48) for the discharge system 2, and then checks the discharge end flag set in the process to discharge. It is determined whether or not the prize balls of the system 2 have been discharged (step S5522).

【0167】ここで、“Yes”ならステップS552
4へ進んで排出ソレノイド2をオフさせ、“No”なら
ステップS5524をスキップしてステップS5530
へ移行して、上記ステップS5510で設定したタイマ
0がタイムアップしたか判定し、“No”なら上記ステ
ップS5512へ戻って上記手順を繰り返す。また、ス
テップS5524で排出ソレノイド2をオフさせた後に
はもう一度排出系1の排出終了フラグを調べて賞球排出
が終了したか判定し、終了していれば正常終了フラグを
“1”にセットして該サブルーチンを終了する(ステッ
プS5526,S5528)。
Here, if "Yes", the step S552.
4, the discharge solenoid 2 is turned off, and if "No", step S5524 is skipped and step S5530 is performed.
Then, it is determined whether the timer 0 set in step S5510 has timed out. If "No", the process returns to step S5512 to repeat the above procedure. After the discharge solenoid 2 is turned off in step S5524, the discharge completion flag of the discharge system 1 is checked again to determine whether the prize ball discharge is completed. If it is completed, the normal completion flag is set to "1". Then, the subroutine is finished (steps S5526, S5528).

【0168】すなわち、排出系1または2のカウンタを
調べていずれかが「0」なっていると排出ソレノイド1
または2を消磁させてその系の賞球排出を停止させ、排
出系1および2の両方のカウンタが「0」になると両方
のソレノイドを消磁させて賞球排出を終了させるように
なっている。ステップS5526で排出系1の賞球排出
が終了していないと判定したときは、ステップS553
0へ進み、上記ステップS5510で設定したタイマ0
がタイムアップしたか判定し、“No”なら上記ステッ
プS5512へ戻って上記手順を繰り返す。
That is, the counter of the discharge system 1 or 2 is checked, and if either is "0", the discharge solenoid 1
Alternatively, 2 is demagnetized to stop the prize ball discharge of the system, and when both the counters of the discharge systems 1 and 2 become “0”, both solenoids are demagnetized to terminate the prize ball discharge. If it is determined in step S5526 that the discharge of the prize balls of the discharge system 1 is not completed, step S553.
0, timer 0 set in step S5510 above
Determines whether the time has expired. If "No", the process returns to step S5512 and the above procedure is repeated.

【0169】そして、排出系1または2のいずれかもし
くは両方とも排出が終了する前にタイマ0がタイムアッ
プすると、ステップS5532へ進んで排出ソレノイド
1と2を一旦オフさせる。実施例の球排出装置によれ
ば、3秒もあれば15個の賞品球でも充分に排出される
からである。ステップS5532で排出ソレノイド1と
2をオフさせた後は、ステップS5534へ進み、排出
系1と2の排出カウンタをそれぞれ「1」だけ減算して
から排出系1について賞球排出終了判定処理(図48参
照)を行ない賞球排出が終了したか判定する(ステップ
S5536,S5538)。さらに、ステップS554
0,S5542で排出系2についても賞球排出終了判定
処理(図48参照)を行ない賞球排出が終了したか判定
する。そして、両方の系の排出が終了していれば排出終
了とみなしてステップS5528へ移行し、正常終了フ
ラグを“1”にセットして該サブルーチンを終了する。
賞品球が連続して排出される場合、2つの排出球を1つ
として検出してしまったり、誘導路内での球止まりで排
出時間が通常よりも長くなることがあり、1回の排出で
1個くらい排出数が少なくなっても賞球排出が連続する
場合に全体の処理が遅滞なく進行できるようにするため
である。
If the timer 0 times out before the discharge of either or both of the discharge systems 1 and 2 is completed, the flow advances to step S5532 to temporarily turn off the discharge solenoids 1 and 2. This is because, according to the ball discharging device of the embodiment, 15 prize balls can be sufficiently discharged in 3 seconds. After the discharge solenoids 1 and 2 are turned off in step S5532, the flow proceeds to step S5534, the discharge counters of the discharge systems 1 and 2 are decremented by "1", respectively, and then the prize ball discharge end determination process for the discharge system 1 (Fig. (See 48) and determines whether or not the prize ball discharge is completed (steps S5536 and S5538). Further, step S554
0, S5542, the award ball discharge end determination process (see FIG. 48) is also performed for the discharge system 2 to determine whether or not the award ball discharge is completed. If the discharge of both systems is completed, it is considered that the discharge is completed, the process proceeds to step S5528, the normal end flag is set to "1", and the subroutine is completed.
If the prize balls are discharged continuously, two discharge balls may be detected as one, or the discharge time may be longer than usual due to the ball stopping in the taxiway, so it is possible This is to enable the entire process to proceed without delay when prize balls are continuously discharged even if the number of discharged one balls is reduced.

【0170】ただし、ステップS5534で排出系1と
2の排出カウンタをそれぞれ「1」だけ減算しても排出
系1または2のいずれか一方の系について賞球排出が終
了していないとステップS5538,S5542で判定
されると、ステップS5544へ移行して、再びタイマ
0を3秒に設定する。それから、バックグランド処理を
行ないタイマ0を更新(ステップS5546)した後、
ステップS5548に進み、排出センサ1が待機球の存
在を検出しているか判定し、“Yes”ならステップS
5550へ進んで排出センサ2が待機球の存在を検出し
ているか判定する。そして、ここでも“Yes”なら次
のステップS5552へ進み、ステップS5544で設
定されたタイマ0がタイムアップしたか判定し、“N
o”なら上記ステップS5546へ戻って上記手順を繰
り返し、“Yes”なら排出異常と判断して次のステッ
プS5554へ進み、正常終了フラグを“0”にクリア
して終了する。排出センサ1と2が待機球の存在を検出
しているにもかかわらず3秒以内に賞球排出が終了しな
いのは排出ソレノイド等に故障があるためと考えられる
からである。
However, even if the discharge counters of the discharge systems 1 and 2 are decremented by "1" at step S5534, if the prize ball discharge has not been completed for either one of the discharge systems 1 and 2, then step S5538, If determined in S5542, the flow shifts to step S5544, and timer 0 is set to 3 seconds again. Then, after performing background processing and updating timer 0 (step S5546),
In step S5548, it is determined whether the discharge sensor 1 detects the presence of a standby ball, and if “Yes”, the step S5.
Proceeding to 5550, it is determined whether the discharge sensor 2 detects the presence of a standby ball. If "Yes" here as well, the flow advances to the next step S5552, and it is determined whether or not the timer 0 set in step S5544 has timed out, and "N"
If "o", the process returns to the step S5546 and repeats the above procedure. If "Yes", it is judged that the discharge is abnormal and the process proceeds to the next step S5554, where the normal end flag is cleared to "0" and the process ends. The reason why the prize ball discharge does not end within 3 seconds even though the presence of the standby ball is detected is considered to be due to a malfunction of the discharge solenoid or the like.

【0171】一方、上記ステップS5548またはS5
550で排出センサ1または2のいずれかが待機球なし
と判定したときは、ステップS5544へ戻って、再び
タイマ0を3秒に設定し直してから、上記手順を繰り返
す。これによって、貯留タンク151が玉切れを起こし
たような場合には、上記処理を繰り返している間に球の
補給がなされるので補給させた時点で排出センサ1およ
び2が待機球有りと判定してステップS5554へ移行
し、正常終了フラグを“0”にクリアして終了する。そ
の後、図43のステップS506で上記正常終了フラグ
をチェックしてステップS502へ戻り、賞球数要求処
理からやり直すことによって中断された賞球排出を再実
行することができる。
On the other hand, the above step S5548 or S5
If either of the discharge sensors 1 or 2 determines in 550 that there is no standby ball, the process returns to step S5544, the timer 0 is reset to 3 seconds, and then the above procedure is repeated. As a result, when the storage tank 151 is out of balls, the balls are replenished while the above process is repeated. Therefore, at the time of replenishment, the discharge sensors 1 and 2 determine that there is a standby ball. Then, the process proceeds to step S5554, clears the normal end flag to "0", and ends. After that, the normal end flag is checked in step S506 of FIG. 43, the process returns to step S502, and the suspended prize discharge can be re-executed by starting over from the prize count requesting process.

【0172】図48は、上述した賞球排出処理(図4
7)のステップS5514、S5520、S5536お
よびS5540にて行われる賞球排出終了判定処理のサ
ブルーチンを示すフローチャートである。この判定処理
は、先ずステップS5572で排出カウンタの値が
「0」か否か判定し、“No”ならカウント値が「1
2」以上か判定する(ステップS5574)。そして、
カウント値が「0」又は「12」以上のときはステップ
S5576へ移行して排出終了フラグを“1”にセット
して終了する。また、ステップS5572およびS55
74のいずれの判定も“No”のときは、ステップS5
578へ進んで排出終了フラグを“0”にクリアして終
了する。
FIG. 48 shows the award ball discharge process (see FIG. 4).
7 is a flowchart showing a subroutine of prize ball discharge end determination processing performed in steps S5514, S5520, S5536 and S5540 of 7). In this determination processing, first, in step S5572, it is determined whether or not the value of the discharge counter is "0", and if "No", the count value is "1".
2 ”or more is determined (step S5574). And
When the count value is "0" or "12" or more, the process proceeds to step S5576, the discharge end flag is set to "1", and the process ends. Also, steps S5572 and S55.
If any of the determinations in step 74 is "No", step S5
Proceeding to step 578, the discharge end flag is cleared to "0" and the processing is ended.

【0173】カウント値が「12」以上でも排出終了と
判定しているのは、上記排出カウンタが4ビットのダウ
ンカウンタであって「0」の次は「15」,「14」,
・・と減少して行くので、予定よりも4個位多く排出さ
れたとしても誤差範囲とみなして制御継続させ、賞球排
出数の誤りで遊技が中断されないようにするためであ
る。
Even when the count value is "12" or more, it is determined that the discharge is completed because the discharge counter is a 4-bit down counter, and after "0", "15", "14",
This is because the number will decrease, and even if about four more than the planned discharge amount, it will be regarded as an error range and control will be continued, so that the game will not be interrupted due to an error in the number of prize balls discharged.

【0174】図49には、図43のステップS507に
て行なわれるセーフ球排出処理ルーチンのフローチャー
トが示されている。本ルーチンが開始されると、まずス
テップS5702で排出カウンタ1および2に不正監視
用玉数として「4」を設定する。この玉数は、不正監視
処理において4ビットの排出カウンタの最上位ビット
(第4ビット)を監視することで、球排出要求がないに
もかかわらず排出球検出信号により排出カウンタが
「0」すなわち5個以上の排出があったとき(第4ビッ
トが0から1に変化する)に不正排出と判断して、例え
ば球抜きソレノイドを励磁させて排出された球を供給皿
でなく遊技盤背部に回収するのに使用される。
FIG. 49 shows a flowchart of the safe ball ejection processing routine executed in step S507 of FIG. When this routine is started, first, in step S5702, the discharge counters 1 and 2 are set to "4" as the number of fraud monitoring balls. By monitoring the most significant bit (4th bit) of the 4-bit discharge counter in the fraud monitoring process, the number of balls can be set to "0" by the discharge ball detection signal even if there is no request for discharging a ball. When there are five or more discharges (the 4th bit changes from 0 to 1), it is determined that the discharge is illegal, and for example, the discharge ball is energized and the discharged balls are placed on the back of the game board instead of the supply plate. Used to collect.

【0175】続いて、上記賞球排出処理ルーチン(図4
7)のステップS5502で点灯させたセーフランプを
消灯させてから、入賞球分離排出装置180内のセーフ
ソレノイド183を励磁させる(ステップS5704,
S5706)。すると、入賞球導出樋内に突出されたス
トッパ182が後退させられ、入賞球が流下する。次
に、タイマ0を排出ウェイトタイマとして使用し、これ
を400m秒に設定(ステップS5708)、またタイ
マ2を200m秒に設定する(ステップS5710)し
てから、セーフセンサ玉無し確認処理(図50参照)を
行ない、セーフセンサ181内から入賞球が流出したか
確認する(ステップS5712)。上記排出ウェイトタ
イマは、前述したように排出条件判定処理(図44)中
のステップS5011で参照され、次の賞品球払出処理
に移るのを留保させる。また、上記セーフセンサ玉無し
確認処理はバックグランド処理を5回続けて行なって、
すなわち1m秒ごとに5回センサ等の読込み処理を行な
ってセーフセンサの状態を調べ、5回ともセーフセンサ
フラグが“0”の時に入賞球の玉無しフラグを“1”に
セットするものである。
Subsequently, the prize ball discharge processing routine (see FIG. 4).
After turning off the safe lamp turned on in step S5502 of 7), the safe solenoid 183 in the winning ball separating and discharging device 180 is excited (step S5704).
S5706). Then, the stopper 182 protruding into the winning ball outflow trough is retracted, and the winning ball flows down. Next, timer 0 is used as a discharge wait timer, which is set to 400 msec (step S5708), and timer 2 is set to 200 msec (step S5710), and then the safe sensor ball absence confirmation process (see FIG. 50). ) Is performed to confirm whether or not winning balls have flowed out from inside the safe sensor 181 (step S5712). The discharge wait timer is referred to in step S5011 in the discharge condition determination process (FIG. 44) as described above, and holds the process for the next prize ball payout process. Also, the safe sensor ball absence confirmation processing is performed by performing the background processing five times in a row,
That is, the reading process of the sensor or the like is performed 5 times every 1 msec to check the state of the safe sensor, and the ballless flag of the winning ball is set to "1" when the safe sensor flag is "0" in all 5 times.

【0176】図49のセーフ球排出処理ルーチンでは、
上記セーフセンサ玉無し確認処理実行後に、上記玉無し
フラグが“1”か否か判定し、“Yes”すなわちセー
フセンサ181内から入賞球が流出したと判定した場合
には本ルーチンを終了する(ステップS5714)。一
方、ステップS5714で“No”と判定したときはス
テップS5716へ進み、上記ステップS5710で設
定したタイマ1(200m秒)がタイムアップしたか判
定する。タイマ0と1の更新は、セーフセンサ玉無し確
認処理(図50参照)内のバックグランド処理によって
行なわれる。ここで、“No”ならステップS5712
へ戻って上記手順を繰り返す。そして、玉無しフラグが
“1”になる前にタイマ1がタイムアップすると、ステ
ップS5718へ移行してセーフランプ(賞球排出表示
器112)を点灯させてから、球抜きソレノイド(15
8)を励磁させる(ステップS5720)。球抜きソレ
ノイドが励磁されると切換え弁158が切り換えられ
て、球排出装置170より排出された球は供給皿に排出
されず遊技盤背部に回収されるようになる。通常、セー
フソレノイドをオンさせてから200m秒もたてば入賞
球はセンサ内から流出するので、200m秒たっても玉
無しフラグが“1”にならないのは、入賞球が玉詰まり
を起こしていると考えられるので、この玉詰まりを入賞
球の発生と勘違いして次の賞球排出処理に移行して余分
な賞品球が遊技者に与えられるのを防止するためであ
る。
In the safe ball discharge processing routine of FIG. 49,
After the safe sensor ball absence confirmation process is executed, it is determined whether or not the ball absence flag is "1", and if "Yes", that is, it is determined that the winning ball has flowed out from within the safe sensor 181, this routine is ended (step S5714). ). On the other hand, if it is determined "No" in step S5714, the flow advances to step S5716 to determine whether the timer 1 (200 msec) set in step S5710 has timed up. The timers 0 and 1 are updated by the background processing in the safe sensor ball absence confirmation processing (see FIG. 50). If “No” here, step S5712.
Return to and repeat the above procedure. Then, when the timer 1 times out before the ball-less flag becomes "1", the process proceeds to step S5718, the safe lamp (prize ball discharge indicator 112) is turned on, and then the ball removing solenoid (15
8) is excited (step S5720). When the ball removing solenoid is excited, the switching valve 158 is switched, and the balls discharged from the ball discharging device 170 are not discharged to the supply tray but are collected on the back of the game board. Normally, the winning ball will flow out of the sensor within 200 msec after the safe solenoid is turned on. Therefore, the ballless flag does not become "1" even after 200 msec because the winning ball is clogged. This is because it can be considered that the ball clogging is mistaken for the occurrence of a winning ball and the process proceeds to the next prize ball discharging process to prevent an extra prize ball from being given to the player.

【0177】上記ステップS5720で球抜きソレノイ
ドを励磁させた後は、ステップS5722へ移行して、
上記玉無しフラグが“1”になるまで、すなわち入賞球
がセーフセンサから流出したのを確認するまで上記セー
フセンサ玉無し確認処理(図50)を繰り返し実行する
(ステップS5724)。そして、上記手順を繰り返し
ているうちに玉無しフラグが“1”になったなら、タイ
マ1を900m秒に設定してから、バックグランド処理
を行なってタイマを更新し、該タイマがタイムアップし
た時点で本ルーチンを終了する(ステップS5726,
S5728,S5730)。
After exciting the ball removing solenoid in step S5720, the flow shifts to step S5722,
The safe sensor ball absence confirmation processing (FIG. 50) is repeatedly executed until the ball absence flag becomes “1”, that is, until it is confirmed that the winning ball has flown out from the safe sensor (step S5724). Then, if the ballless flag becomes "1" while repeating the above procedure, the timer 1 is set to 900 msec, background processing is performed to update the timer, and the time when the timer expires This routine ends with (step S5726,
S5728, S5730).

【0178】上記セーフ玉排出処理ルーチン中で行なわ
れる上記セーフセンサ玉無し確認処理は、図50に示す
ごとく、バックグランド処理(ステップS5752,S
5756,S5760,S5764,S5768)でセ
ーフセンサの読込みを行ない、次にセーフセンサフラグ
をチェック(ステップS5754,S5758,S57
62,S5766,S5770)してセーフセンサ18
1が入賞球を検出しているかを5回繰り返し、1度でも
フラグが“1”すなわち入賞球を検出していると、玉無
しフラグを“0”にクリア(ステップS5774)し、
5回ともセーフセンサフラグが“0”の時に入賞球の玉
無しフラグを“1”にセットする(ステップS577
2)。
The safe sensor ball non-confirmation processing executed in the safe ball discharge processing routine is the background processing (steps S5752, S) as shown in FIG.
5756, S5760, S5764, S5768), the safe sensor is read, and then the safe sensor flag is checked (steps S5754, S5758, S57).
62, S5766, S5770) and then the safe sensor 18
It repeats 5 times whether 1 detects the winning ball, and if the flag is "1" even once, that is, the winning ball is detected, the ballless flag is cleared to "0" (step S5774),
When the safe sensor flag is "0" at all five times, the no-ball flag of the winning ball is set to "1" (step S577).
2).

【0179】図51には、図43のステップS508に
て行なわれる賞球排出終了処理ルーチンのフローチャー
トが示されている。本ルーチンでは、まずタイマ1(タ
イマ0)を100m秒に設定(ステップS582)して
から、図49のセーフ玉排出処理ルーチン中でオンさせ
たセーフソレノイド、セーフランプおよび球抜きソレノ
イドをオフさせて終了する(ステップS584,S58
6,S588)。
FIG. 51 shows a flowchart of the prize ball discharge end processing routine executed in step S508 of FIG. In this routine, first, the timer 1 (timer 0) is set to 100 msec (step S582), and then the safe solenoid, the safe lamp and the ball removing solenoid which are turned on in the safe ball discharge processing routine of FIG. 49 are turned off. End (steps S584, S58
6, S588).

【0180】図52は、前述した賞球排出制御装置のメ
インルーチン(図26)のステップS10で実行される
貸出処理の手順を示すフローチャートで、このフローは
図37の球貸し要求信号BRQの読込み処理によって信
号の立下りエッジが検出されることにより開始され、所
定数の貸し球の排出が行なわれる。このルーチンでは、
まずステップS150で貸出条件の判定処理(図53)
を行なってから、次のステップS151でその結果を見
て貸出可能か不能か判定する。そして、貸出不能ならス
テップS159へ移行して球貸し要求信号BRQがロウ
レベルか否か判定し、“Yes”なら何もせずに本ルー
チンを終了する。既に開始されている貸出処理が終了す
るのを待つためである。また、ステップS159で“N
o”すなわち球貸し要求信号BRQがハイレベルである
と判定すると、ステップS160へ移行して、図37の
球貸し要求信号BRQの読込み処理によってセットされ
たBRQ信号の立下りエッジ検出フラグを“0”にクリ
アして本ルーチンを終了する。BRQ信号は一度立ち下
がると排出制御装置600による球貸し排出が終了した
ことを受けないとハイレベルに変化しない信号であるの
で、一旦本貸出処理ルーチンに入って排出が終了する前
に球貸し要求信号BRQがロウレベルに変化したのが検
出されたなら、それは前回の立下り検出が誤りだからで
ある。
FIG. 52 is a flow chart showing the procedure of the lending process executed in step S10 of the main routine (FIG. 26) of the above-mentioned prize ball emission control device. This flow is the reading of the ball lending request signal BRQ of FIG. The process is started when the falling edge of the signal is detected, and a predetermined number of loan balls are discharged. In this routine,
First, in step S150, the lending condition determination process (FIG. 53)
After that, the result is checked in the next step S151 to determine whether lending is possible or not. If the lending is not possible, the process proceeds to step S159 to determine whether or not the ball lending request signal BRQ is at the low level. If "Yes", the routine is terminated without doing anything. This is to wait for the already started lending process to end. In step S159, "N
o ", that is, when it is determined that the ball lending request signal BRQ is at the high level, the process proceeds to step S160, and the falling edge detection flag of the BRQ signal set by the reading process of the ball lending request signal BRQ in FIG. "BRQ signal is a signal that does not change to a high level unless the discharge control device 600 finishes discharging the ball lending once the BRQ signal falls once. If it is detected that the ball lending request signal BRQ has changed to the low level before the entry and the discharge are completed, it is because the previous fall detection is incorrect.

【0181】また、貸出可能であれば、貸出玉設定処理
(ステップS152)を行なってから、ステップS15
3で球貸し要求信号BRQがロウレベルか否か判定し、
“No”すなわち球貸し要求信号BRQがハイレベルで
あると判定すると、ステップS160へ移行して、BR
Q信号の立下りエッジ検出フラグを“0”にクリアして
本ルーチンを終了する。一方、ステップS153で“Y
es”すなわち球貸し要求信号BRQがロウレベルであ
ると判定すると、ステップS154へ進んで、送信バッ
ファに貸出音要求コマンドを設定し、かつ再送信回数を
3回に設定してから、送信処理(図29)を行なう(ス
テップS155)。しかる後、ステップS156へ進
み、貸出排出処理を行なってからステップS157で処
理が正常に終了したか判定し、“Yes”なら次のステ
ップへ進み、貸出排出終了処理(ステップS158)を
行なって、本ルーチンを終了する。
If lending is possible, lending ball setting processing (step S152) is performed, and then step S15.
In 3, it is determined whether the ball lending request signal BRQ is at a low level,
If “No”, that is, if it is determined that the ball lending request signal BRQ is at high level, the process proceeds to step S160, and BR
The falling edge detection flag of the Q signal is cleared to "0", and this routine ends. On the other hand, in step S153, "Y
es ", that is, if the ball lending request signal BRQ is determined to be at a low level, the process proceeds to step S154, the lending sound request command is set in the transmission buffer, and the number of retransmissions is set to three, and then the transmission process (Fig. 29) (step S155) After that, the process proceeds to step S156, and after the lending and discharging process is performed, it is determined in step S157 whether the process is normally completed. If “Yes”, the process proceeds to the next step and the lending and discharging process is completed. The process (step S158) is performed, and the present routine ends.

【0182】上記ステップS157で“No”すなわち
異常終了と判定すると、ステップS161へ移行して、
玉抜きソレノイドをオンさせ、セーフランプを点灯、さ
らに玉貸可能信号RDYをロウレベル(無効状態)に変
化させて終了する。玉抜きソレノイドがオンされること
により、余分に払いだされた玉は遊技機前面の受け皿で
なく玉抜き路157を通って遊技機の背部に回収され、
故障等による遊技店の不利益を回避することができる。
If "No" in the above step S157, that is, if it is determined to be an abnormal end, the process proceeds to step S161.
The ball drop solenoid is turned on, the safe lamp is turned on, the ball lending enable signal RDY is changed to a low level (ineffective state), and the process is ended. When the ball drop solenoid is turned on, the extra balls are collected to the back of the game machine through the ball drop passage 157 instead of the saucer on the front of the game machine.
It is possible to avoid the disadvantage of the game store due to a breakdown or the like.

【0183】図53には、図52のステップS151に
て行なわれる貸出条件判定処理ルーチンのフローチャー
トが示されている。このルーチンでは、まずステップS
1511で球貸し制御装置500からのカード有無信号
CONがハイレベルか否か調べ、“No”ならステップ
S1519へ移行して貸出可能を示すフラグを“0”に
クリアして本ルーチンを終了する。また、カード有無信
号CONがハイレベルならステップS1512へ進ん
で、後述の貸出終了処理ルーチン(図57)のステップ
S6571で設定される貸出ウェイトタイマが起動中か
否か判定し、“Yes”ならステップS1519で貸出
可能を示すフラグを“0”にクリアして本ルーチンを終
了する。既に開始されている貸出排出処理が終了するの
を待つためである。
FIG. 53 shows a flowchart of the lending condition determination processing routine executed in step S151 of FIG. In this routine, first, step S
At 1511, it is checked whether the card presence / absence signal CON from the ball lending control device 500 is at a high level. If "No", the process proceeds to step S1519 to clear the lendable flag to "0" and terminates this routine. If the card presence / absence signal CON is at high level, the process proceeds to step S1512, and it is determined whether or not the lending wait timer set in step S6571 of the lending ending processing routine (FIG. 57), which will be described later, is active. In S1519, the flag indicating that lending is possible is cleared to "0", and this routine ends. This is to wait for the loan discharge process that has already started to end.

【0184】一方、ステップS1512で“No”と判
定すると、ステップS1513へ進み、タイマ0を50
m秒に設定してから、バックグランド処理(ステップS
1514)を行なってステップS1513で設定された
タイマ0を更新する。次のステップS1515,501
6では、排出センサ読込み処理(図35)によってセッ
トされる貸出センサ1および2の出力レベルを調べて出
力がハイレベル(玉有り)か否か判定する。そして、い
ずれの排出センサも出力がハイレベルならステップS1
517へ進んで、上記ステップS1512で設定したタ
イマ0がタイムアップしたか判定し、“No”ならステ
ップS1513へ戻ってタイマ0の更新を繰り返すこと
で、50m秒が経過するのを待つ。そして、タイマ0が
タイムアップした時点でステップS1518へ進み、貸
出可能フラグを“1”にセットして本ルーチンを終了す
る。また、上記ステップS1515,S1516で排出
センサ1または2のいずれかの出力がロウレベルと判定
すると、ステップS1519へ移行して、貸出不可を示
すフラグを“1”にセットして本ルーチンを終了する。
この貸出可能フラグは、上述したように図52の貸出処
理ルーチンのステップS152で参照される。
On the other hand, if it is determined "No" in step S1512, the flow advances to step S1513 to set timer 0 to 50
After setting to m seconds, background processing (step S
1514) to update the timer 0 set in step S1513. Next step S1515, 501
At 6, the output level of the lending sensors 1 and 2 set by the discharge sensor reading process (FIG. 35) is checked to determine whether the output is at a high level (with balls). If the output of any of the discharge sensors is high level, step S1
In step 517, it is determined whether or not the timer 0 set in step S1512 has timed out. If “No”, the process returns to step S1513 to repeat the update of the timer 0 and wait for 50 msec to elapse. Then, when the timer 0 times out, the process proceeds to step S1518, the lending possible flag is set to "1", and the present routine ends. If it is determined in steps S1515 and S1516 that the output of either the emission sensor 1 or 2 is low, the flow advances to step S1519 to set the flag indicating that the lending is not possible to "1", and this routine is terminated.
This lending possible flag is referred to in step S152 of the lending processing routine of FIG. 52, as described above.

【0185】図54には、図52の貸出処理ルーチンの
ステップS153にて行なわれる貸出玉数設定処理ルー
チンのフローチャートが示されている。本ルーチンが開
始されると、まずステップS1531で貸出玉数(例え
ば25個)をメモリ(ROM)から読み出してから、ス
テップS1532へ進み、上記貸出玉数に基づいて、貸
出玉数が偶数のときは排出カウンタ1に貸出玉数の2分
の1を、また貸出玉数が奇数のときは(貸出玉数+1)
の2分の1をセットする。また、排出カウンタ2には、
貸出玉数が偶数のときは貸出玉数の2分の1の数を、ま
た貸出玉数が奇数のときは(貸出玉数+1)の2分の1
よりも「1」だけ少ない数をセット(ステップS153
3)してから、排出ソレノイド1と2を励磁させる(ス
テップS1534)。これによって、排出すべき貸し玉
を2つの排出系にほぼ均等に割り振って排出させること
ができる。
FIG. 54 shows a flow chart of the lending ball number setting processing routine executed in step S153 of the lending processing routine of FIG. When this routine is started, first, in step S1531, the number of lending balls (for example, 25) is read from the memory (ROM), and then in step S1532, when the number of lending balls is an even number based on the number of lending balls. Is 1/2 of the number of balls lent to the discharge counter 1, and when the number of balls lent is odd (number of balls lent + 1)
Set half of. In addition, the discharge counter 2 has
When the number of lending balls is even, it is 1/2 of the number of lending balls, and when the number of lending balls is odd, it is 1/2 of (lending ball number + 1).
Set a number smaller than that by "1" (step S153
After 3), the discharge solenoids 1 and 2 are excited (step S1534). As a result, the lending balls to be discharged can be distributed and evenly distributed to the two discharge systems.

【0186】図55は、図52の貸出処理ルーチンのス
テップS155において実行される貸出排出処理のサブ
ルーチンを示すフローチャートである。この貸出排出処
理ルーチンは、前述した賞球排出処理(図47)とほぼ
同一の手順であり、上記貸出玉数設定処理(図54)に
よって排出数が設定されてから実行される。
FIG. 55 is a flow chart showing the subroutine of the lending and discharging process executed in step S155 of the lending process routine of FIG. This lending and discharging process routine is almost the same as the award ball discharging process (FIG. 47) described above, and is executed after the number of discharged balls is set by the lending ball number setting process (FIG. 54).

【0187】本ルーチンが開始されると、先ずステップ
S6502において貸玉排出表示器113を点灯させ、
玉貸し制御装置500に対する排出終了信号EXSをロ
ウレベルにアサートした後、ステップS6504へ進
み、タイマ0を35m秒に設定してから、バックグラン
ド処理を行なう(ステップS6506)。バックグラン
ド処理によってステップS6504で設定されたタイマ
0の更新が1m秒毎に行なわれる。そこで、次のステッ
プS6508で上記タイマ0がタイムアップしたか判定
し、“No”ならステップS6506へ戻ってタイマ0
の更新を繰り返すことで、35m秒が経過するのを待
つ。ステップS6502で点灯させた貸玉排出表示器1
13が完全に明るくなるのを待つためである。
When this routine is started, first in step S6502 the ball rental discharge indicator 113 is turned on,
After asserting the discharge end signal EXS to the ball lending control device 500 to a low level, the flow advances to step S6504 to set timer 0 to 35 msec, and then background processing is performed (step S6506). The background processing updates the timer 0 set in step S6504 every 1 msec. Then, in the next step S6508, it is determined whether or not the timer 0 has timed out. If “No”, the process returns to step S6506 and the timer 0
By repeating the update of, wait for 35 ms to elapse. Ball rental discharge indicator 1 turned on in step S6502
This is to wait until 13 is completely bright.

【0188】貸玉排出表示器点灯後、35m秒が経過し
たときにステップS6510へ進み、タイマ0を3秒に
設定してから、バックグランド処理を行ないタイマ0を
更新する(ステップS6512)。次に、排出系1につ
いて貸出排出終了判定処理(図56参照)を行なってか
ら当該処理内で設定される排出終了フラグを調べて、排
出系1の貸出排出が終了したか判定する(ステップS6
514,S6516)。そして、“Yes”ならステッ
プS6518へ進んで排出ソレノイド1をオフさせ、
“No”ならステップS6518をスキップしてステッ
プS6520へ移行して排出系2について貸出排出終了
判定処理(図56参照)を行なってから当該処理内で設
定される排出終了フラグを調べて、排出系2の貸出排出
が終了したか判定する(ステップS6522)。
After 35 m seconds have elapsed after the ball rental display is turned on, the flow advances to step S6510 to set timer 0 to 3 seconds, and then background processing is performed to update timer 0 (step S6512). Next, after performing the lending / emission end determination process (see FIG. 56) on the emission system 1, the emission end flag set in the process is checked to determine whether the lending / emission of the emission system 1 is completed (step S6).
514, S6516). If “Yes”, the process proceeds to step S6518, the discharge solenoid 1 is turned off,
If “No”, step S6518 is skipped, the process proceeds to step S6520, the lending / emission end determination process (see FIG. 56) is performed on the emission system 2, and then the emission end flag set in the process is checked to determine the emission system. It is determined whether the lending and discharging of No. 2 is completed (step S6522).

【0189】ここで、“Yes”ならステップS652
4へ進んで排出ソレノイド2をオフさせ、“No”なら
ステップS6524をスキップしてステップS6530
へ移行して、上記ステップS6510で設定したタイマ
0がタイムアップしたか判定し、“No”なら上記ステ
ップS6512へ戻って上記手順を繰り返す。また、ス
テップS6524で排出ソレノイド2をオフさせた後に
はもう一度排出系1の排出終了フラグを調べて貸出排出
が終了したか判定し、終了していれば正常終了フラグを
“1”にセットして該サブルーチンを終了する(ステッ
プS6526,S6528)。
Here, if "Yes", the step S652.
4, the discharge solenoid 2 is turned off, and if “No”, step S6524 is skipped and step S6530.
Then, it is determined whether the timer 0 set in step S6510 has timed out. If "No", the process returns to step S6512 to repeat the above procedure. After the discharge solenoid 2 is turned off in step S6524, the discharge completion flag of the discharge system 1 is checked again to determine whether the lending discharge is completed. If it is completed, the normal completion flag is set to "1". The subroutine is finished (steps S6526, S6528).

【0190】すなわち、排出系1または2のカウンタを
調べていずれかが「0」なっていると排出ソレノイド1
または2を消磁させてその系の貸出排出を停止させ、排
出系1および2の両方のカウンタが「0」になると両方
のソレノイドを消磁させて貸出排出を終了させるように
なっている。ステップS6526で排出系1の貸出排出
が終了していないと判定したときは、ステップS653
0へ進み、上記ステップS6510で設定したタイマ0
がタイムアップしたか判定し、“No”なら上記ステッ
プS6512へ戻って上記手順を繰り返す。
That is, the counter of the discharge system 1 or 2 is checked, and if either is "0", the discharge solenoid 1
Alternatively, it demagnetizes 2 to stop lending and discharging of the system, and when both the counters of the discharging systems 1 and 2 become “0”, demagnetizes both solenoids to end lending and discharging. When it is determined in step S6526 that the lending and discharging of the discharge system 1 is not completed, step S653
0, the timer 0 set in step S6510 is set.
Determines whether the time has expired, and if "No", returns to step S6512 to repeat the above procedure.

【0191】そして、排出系1または2のいずれかもし
くは両方とも排出が終了する前にタイマ0がタイムアッ
プすると、ステップS6532へ進んで排出ソレノイド
1と2を一旦オフさせる。実施例の球排出装置によれ
ば、3秒もあれば25個の貸玉でも充分に排出できるか
らである。
If the timer 0 times out before the discharge of either or both of the discharge systems 1 and 2 ends, the flow advances to step S6532 to temporarily turn off the discharge solenoids 1 and 2. This is because the ball discharging device of the embodiment can sufficiently discharge 25 ball rental balls in 3 seconds.

【0192】ステップS6532で排出ソレノイド1と
2をオフさせた後は、ステップS6534へ進み、排出
系1と2の排出カウンタをそれぞれ「1」だけ減算して
から排出系1について貸出排出終了判定処理(図56参
照)を行ない貸出排出が終了したか判定する(ステップ
S6536,S6538)。さらに、ステップS654
0,S6542で排出系2についても貸出排出終了判定
処理(図56参照)を行ない貸出排出が終了したか判定
する。そして、両方の系の排出が終了していれば貸出終
了とみなしてステップS6528へ移行し、正常終了フ
ラグを“1”にセットして該サブルーチンを終了する。
賞球排出処理と同様に、貸し玉が連続して排出される場
合、2つの排出球を1つとして検出してしまったり、誘
導路内での球止まりで排出時間が通常よりも長くなるこ
とがあり、1回の排出で1個くらい排出数が少なくなっ
ても貸出排出が連続する場合に全体の処理が遅滞なく進
行できるようにするためである。
After the discharge solenoids 1 and 2 are turned off in step S6532, the flow advances to step S6534, and the discharge counters of the discharge systems 1 and 2 are each decremented by "1", and then the lending discharge end determination process for the discharge system 1 is performed. (See FIG. 56) is performed to determine whether or not lending and discharging have been completed (steps S6536, S6538). Further, step S654
0, in S6542, the lending / emission end determination process (see FIG. 56) is also performed for the emission system 2 to determine whether or not the lending / emission has ended. Then, if the discharge of both systems is completed, it is considered that the lending is completed, the process proceeds to step S6528, the normal end flag is set to "1", and the subroutine is completed.
Similar to the prize ball discharge processing, if balls are continuously discharged, two discharge balls will be detected as one, or the discharge time will be longer than usual due to the ball remaining in the taxiway. This is because the entire processing can proceed without delay when lending and discharging are continuous even if the number of discharged one is reduced by one at one time.

【0193】ただし、ステップS6534で排出系1と
2の排出カウンタをそれぞれ「1」だけ減算しても排出
系1または2のいずれか一方の系について貸出排出が終
了していないとステップS6538,S6542で判定
されると、ステップS6544へ移行して、再びタイマ
0を3秒に設定する。それから、バックグランド処理を
行ないタイマ0を更新(ステップS6546)した後、
ステップS6548に進み、排出センサ1が待機球の存
在を検出しているか判定し、“Yes”ならステップS
6550へ進んで排出センサ2が待機球の存在を検出し
ているか判定する。そして、ここでも“Yes”なら次
のステップS6552へ進み、ステップS6544で設
定されたタイマ0がタイムアップしたか判定し、“N
o”なら上記ステップS6546へ戻って上記手順を繰
り返し、“Yes”なら排出異常と判断して次のステッ
プS6554へ進み、正常終了フラグを“0”にクリア
して終了する。排出センサ1と2が待機球の存在を検出
しているにもかかわらず3秒以内に貸出排出が終了しな
いのは排出ソレノイド等に故障があるためと考えられる
からである。
However, even if the discharge counters of the discharge systems 1 and 2 are respectively decremented by "1" in step S6534, if the lending and discharge of one of the discharge systems 1 and 2 is not completed, steps S6538, S6542. If it is determined in step S6544, the process proceeds to step S6544 and timer 0 is set to 3 seconds again. Then, after performing background processing and updating timer 0 (step S6546),
In step S6548, it is determined whether the discharge sensor 1 detects the presence of the standby ball, and if “Yes”, the step S6.
The process proceeds to 6550, and it is determined whether the discharge sensor 2 detects the presence of the standby ball. If "Yes" here as well, the flow advances to the next step S6552 to determine whether the timer 0 set in step S6544 has timed out, and "N"
If "o", the process returns to step S6546 and repeats the above procedure. If "Yes", it is determined that the discharge is abnormal, the process proceeds to the next step S6554, the normal end flag is cleared to "0" and the process ends. Detecting the presence of the standby ball does not finish the lending and discharging within 3 seconds because it is considered that the discharging solenoid or the like has a failure.

【0194】一方、上記ステップS6548またはS6
550で排出センサ1または2のいずれかが待機球なし
と判定したときは、ステップS6544へ戻って、再び
タイマ0を3秒に設定し直してから、上記手順を繰り返
す。これによって、貯留タンク151が玉切れを起こし
たような場合には、上記処理を繰り返している間に球の
補給がなされるので補給させた時点で排出センサ1およ
び2が待機球有りと判定してステップS6554へ移行
し、正常終了フラグを“0”にクリアして終了する。た
だし、賞球排出(図47)の場合と異なり、その後、図
52のステップS157で上記正常終了フラグをチェッ
クして“No”すなわち異常と判定するとステップS1
61へ移行し、球抜きソレノイドをオン、セーフランプ
を点灯、玉貸し可能信号RDYをロウレベルにネゲート
して貸出排出処理を中断する。
On the other hand, the above step S6548 or S6
If either of the discharge sensors 1 or 2 determines in 550 that there is no standby ball, the process returns to step S6544, the timer 0 is reset to 3 seconds, and then the above procedure is repeated. As a result, when the storage tank 151 is out of balls, the balls are replenished while the above process is repeated. Therefore, at the time of replenishment, the discharge sensors 1 and 2 determine that there is a standby ball. Then, the process proceeds to step S6554, the normal end flag is cleared to "0", and the process ends. However, unlike the case of prize ball discharge (FIG. 47), if the normal end flag is checked in step S157 of FIG.
The process proceeds to step 61, the ball removal solenoid is turned on, the safe lamp is turned on, the ball lending enable signal RDY is negated to a low level, and the lending and discharging process is interrupted.

【0195】図56は、上述した貸出排出処理(図4
7)のステップS6514、S6520、S6536お
よびS6540にて行われる貸出排出終了判定処理のサ
ブルーチンを示すフローチャートである。この判定処理
は、先ずステップS6562で排出カウンタの値が
「0」か否か判定し、“No”ならカウント値が「1
4」以上か判定する(ステップS6564)。そして、
カウント値が「0」又は「14」以上のときはステップ
S6566へ移行して排出終了フラグを“1”にセット
して終了する。また、ステップS6562およびS65
64のいずれの判定も“No”のときは、ステップS6
568へ進んで排出終了フラグを“0”にクリアして終
了する。
FIG. 56 shows the above-mentioned lending and discharging process (see FIG. 4).
It is a flowchart which shows the subroutine of the lending discharge completion | finish judgment process performed in step S6514, S6520, S6536, and S6540 of 7). In this determination process, first, in step S6562, it is determined whether or not the value of the discharge counter is "0", and if "No", the count value is "1".
4 ”or more is determined (step S6564). And
When the count value is equal to or greater than "0" or "14", the flow advances to step S6566 to set the discharge end flag to "1" and ends. Also, steps S6562 and S65.
If all of the judgments in 64 are “No”, step S6
Proceed to 568 to clear the discharge end flag to "0" and end.

【0196】カウント値が「14」以上でも貸出終了と
判定しているのは、上記排出カウンタが4ビットのダウ
ンカウンタであって「0」の次は「15」,「14」,
・・と減少して行くので、予定よりも2個位多く排出さ
れたとしても誤差範囲とみなして制御継続させ、排出数
の僅かな誤りで制御が中断されないようにするためであ
る。ただし、賞球排出の場合と異なり、玉貸し数の誤り
は遊技店の利害に密接するので、誤差範囲とみなす玉数
を賞球排出終了判定(図48)の場合よりも少なく見積
もっている。
Even if the count value is "14" or more, it is determined that the lending is finished because the discharge counter is a 4-bit down counter, and "15", "14",
This is to prevent the control from being interrupted by a slight error in the number of discharges, even if the discharge is about two more than planned, considering it as an error range. However, unlike the case of prize ball discharge, the error in the number of balls lent is closely related to the interest of the amusement store, so the number of balls regarded as the error range is estimated to be smaller than that in the case of the prize ball discharge end determination (FIG. 48).

【0197】図57には、図52の貸出処理フローのス
テップS158にて行なわれる貸出排出終了処理ルーチ
ンのフローチャートが示されている。本ルーチンは、図
55の貸出排出処理で正常終了フラグが“1”にセット
された場合に実行される。本ルーチンが開始されると、
次の貸出処理が開始されないようにするため(図53参
照)、まずステップ6571でタイマ0をウェイトタイ
マとして使用し、これを400m秒に設定してから、タ
イマ1を100m秒に設定する(ステップ6572)。
それから、玉貸し制御装置500に対する排出終了信号
EXSをハイレベルに変化(ステップ6573)させた
後、バックグランド処理を行なって各タイマを更新させ
てから上記ステップ6572で設定したタイマ1がタイ
ムアップしたか判定する(ステップ6574,S657
5)。ここで“No”ならステップ6576へ進んで玉
貸し制御装置500からの玉貸し要求信号BRQがハイ
レベルに変化したか判定し、“No”なら上記ステップ
S6574へ戻って上記手順を繰り返し、玉貸し要求信
号BRQがハイレベルに変化するのを待つ。排出終了信
号EXSをハイレベルに変化させてから100m秒以内
に玉貸し要求信号BRQがハイレベルに変化したなら、
ステップS6577へ進んで上記タイマ1を調べて50
m秒は経過しているか判定する。そして、50m秒経過
していればステップ6578へ進み、玉貸し要求信号B
RQの立下り検出フラグを“0”にクリアする。
FIG. 57 shows a flowchart of the lending and discharging end processing routine executed in step S158 of the lending processing flow of FIG. This routine is executed when the normal end flag is set to "1" in the lending and discharging process of FIG. When this routine starts,
To prevent the next lending process from starting (see FIG. 53), first use timer 0 as a wait timer in step 6571, set it to 400 msec, and then set timer 1 to 100 msec (step 6572).
Then, after changing the discharge end signal EXS to the ball lending controller 500 to a high level (step 6573), background processing is performed to update each timer, and then the timer 1 set in the above step 6572 has timed up. Whether or not (steps 6574, S657)
5). If “No” here, the routine proceeds to step 6576, where it is determined whether or not the ball lending request signal BRQ from the ball lending control device 500 has changed to a high level, and if “No”, the procedure returns to the step S6574 and repeats the above procedure to repeat the ball lending. Wait for the request signal BRQ to change to high level. If the ball lending request signal BRQ changes to high level within 100 msec after changing the discharge end signal EXS to high level,
Go to step S6577, check the timer 1 and check 50
It is determined whether m seconds have elapsed. If 50 msec has elapsed, the process proceeds to step 6578, and the ball lending request signal B
The trailing edge detection flag of RQ is cleared to "0".

【0198】それから、ステップS6579へ移行して
タイマ1を250m秒に設定し直してから、バックグラ
ンド処理を行なってタイマを更新させてから上記ステッ
プ6579で設定したタイマ1がタイムアップしたか判
定する(ステップ6580,S6581)。ここで“N
o”ならステップ6582へ進んで玉貸し制御装置50
0からの玉貸し要求信号BRQがロウレベルに変化した
か判定し、“No”なら上記ステップS6580へ戻っ
て上記手順を繰り返し、玉貸し要求信号BRQがロウレ
ベルに変化するのを待つ。そして、250m秒以内に玉
貸し要求信号BRQがロウレベルに変化するか、玉貸し
要求信号BRQがロウレベルに変化する前にタイマ1が
タイムアップしたなら本ルーチンを終了する(ステップ
6577)。
Then, the flow shifts to step S6579, the timer 1 is reset to 250 msec, background processing is performed to update the timer, and it is determined whether the timer 1 set in step 6579 has timed out. (Steps 6580 and S6581). Where "N
If “o”, the process proceeds to step 6582, and the ball lending control device 50
It is determined whether the ball lending request signal BRQ from 0 has changed to the low level. If "No", the process returns to the step S6580 and repeats the above procedure, and waits for the ball lending request signal BRQ to change to the low level. Then, if the ball lending request signal BRQ changes to the low level within 250 msec, or if the timer 1 times out before the ball lending request signal BRQ changes to the low level, this routine is ended (step 6577).

【0199】一方、上記ステップ6575で玉貸し要求
信号BRQがハイレベルに変化する前にステップ657
2で設定したタイマ1がタイムアップしたと判定する
と、ステップ6585へ移行し、球抜きソレノイドをオ
ン、セーフランプを点灯、玉貸し可能信号RDYをロウ
レベルにネゲートして貸出排出処理を中止する。所定時
間内に玉貸し制御装置500から応答信号が戻ってこな
いのは通信ラインの切断等重大な故障が発生したと考え
られるからである。
On the other hand, before the ball lending request signal BRQ is changed to the high level in the step 6575, the step 657 is executed.
When it is determined that the timer 1 set in 2 has timed up, the process proceeds to step 6585, the ball removal solenoid is turned on, the safe lamp is turned on, the ball lending enable signal RDY is negated to a low level, and the lending and discharging process is stopped. The reason why the response signal does not return from the ball lending control device 500 within the predetermined time is that a serious failure such as disconnection of the communication line may occur.

【0200】次に、カードリーダにカードが挿入され、
パチンコ遊技機100に設けられた変換ボタン123が
押されて玉貸し要求がなされた場合において、上記玉貸
し制御装置500と排出制御装置600との間で送受信
される信号の具体的なタイミングを図58を用いて説明
する。なお、同図には変換ボタン123の1回の操作に
対し300円分の貸し玉を排出するように玉貸し数が設
定されている場合の信号タイミングが示されている。
Next, the card is inserted into the card reader,
When the conversion button 123 provided on the pachinko gaming machine 100 is pressed and a ball lending request is made, a specific timing of a signal transmitted and received between the ball lending control device 500 and the discharge control device 600 is shown. 58. It should be noted that the signal timings in the case where the number of ball lending is set so that the ball lending for 300 yen is discharged for one operation of the conversion button 123 are shown in the same figure.

【0201】遊技機の電源が投入されると、排出制御装
置600から玉貸し制御装置500へ供給される玉貸し
可能信号RDYがハイレベルに変化される(タイミング
t1)。一方、カードリーダにカードが挿入されると、
玉貸し制御装置500がこれを検知して、排出制御装置
600に対するカード有無信号CONをハイレベルにア
サートする(タイミングt2)。
When the power of the game machine is turned on, the ball lending enable signal RDY supplied from the discharge control device 600 to the ball lending control device 500 is changed to a high level (timing t1). On the other hand, when the card is inserted into the card reader,
The ball lending control device 500 detects this and asserts the card presence / absence signal CON to the discharge control device 600 at a high level (timing t2).

【0202】その後、変換ボタン123が押されると、
玉貸し制御装置500は上記玉貸し可能信号RDYがハ
イレベルに変化されていることを確認して玉貸し要求信
号BRQをロウレベルに変化させる(タイミングt
3)。玉貸し要求信号BRQを受信した排出制御装置6
00は、自らが出力している玉貸し可能信号RDYがハ
イレベルで、かつ玉貸し制御装置500からのカード有
無信号CONがハイレベルであることを条件に、排出終
了信号EXSをロウレベルに変化させ排出ソレノイド7
41a,741bを駆動して貸し玉の排出を開始する
(タイミングt4)。
After that, when the conversion button 123 is pressed,
The ball lending control device 500 confirms that the ball lending possible signal RDY is changed to a high level and changes the ball lending request signal BRQ to a low level (timing t
3). Emission control device 6 that has received the ball lending request signal BRQ
00 changes the discharge end signal EXS to a low level on condition that the ball lending possible signal RDY output by itself is at a high level and the card presence signal CON from the ball lending control device 500 is at a high level. Discharge solenoid 7
41a and 741b are driven to start the discharge of rental balls (timing t4).

【0203】そして、排出制御装置600は、排出セン
サ730a,730bの検出信号を監視して排出数が2
5個(100円分)になった時点で排出ソレノイド74
1a,741bの駆動を停止させるとともに、玉貸し制
御装置500に対する排出終了信号EXSをハイレベル
に変化させる(タイミングt5)。玉貸し制御装置50
0は、排出終了信号EXSの立上りを検知すると、75
m秒おいてから一旦上記玉貸し要求信号BRQをハイレ
ベルにネゲートさせる(タイミングt6)。
Then, the discharge control device 600 monitors the detection signals of the discharge sensors 730a and 730b and the discharge number is 2
Ejection solenoid 74 when 5 pieces (100 yen worth) are reached
The driving of 1a and 741b is stopped, and the discharge end signal EXS to the ball lending control device 500 is changed to a high level (timing t5). Ball lending control device 50
0 is 75 when detecting the rising of the discharge end signal EXS.
After waiting for m seconds, the ball lending request signal BRQ is negated to a high level once (timing t6).

【0204】それから、玉貸し制御装置500は、10
0m秒経過後に再び上記玉貸し要求信号BRQをロウレ
ベルにアサートする(タイミングt7)。すると、排出
制御装置600はそれを検知して排出終了信号EXSを
ロウレベルに変化させ、貸し玉の排出を開始する(タイ
ミングt8)。上記動作を3回繰り返すことによって3
00円分の貸し玉が排出される。
Then, the ball lending control device 500 sets 10
After the lapse of 0 ms, the ball lending request signal BRQ is asserted to the low level again (timing t7). Then, the discharge control device 600 detects it and changes the discharge end signal EXS to the low level to start discharging the rental balls (timing t8). By repeating the above operation 3 times, 3
The rental ball for 00 yen is discharged.

【0205】ただし、玉貸し制御装置500は、玉貸し
要求信号BRQをロウレベルにアサート(タイミングt
3,t7,t11)してから10秒経過しても排出終了
信号EXSがロウレベルに変化しなかったり、排出終了
信号EXSがロウレベルに変化(タイミングt4,t
8,t12)してから10秒経過しても排出終了信号E
XSがハイレベルに変化しなかった場合(T1<10
S,T2<10S)には、カードリーダにカード排出指
令を送って玉貸し制御を中断する(図18のステップS
8134,S8142参照)。一方、排出制御装置60
0は、排出終了信号EXSをハイレベルに変化(タイミ
ングt5,t9,t13)させてから100m秒経過し
ても玉貸し要求信号BRQがハイレベルに変化しなかっ
た場合(T3<100mS)には、異常発生(正常なら
75m秒で変化する)と判断して球抜きソレノイドをオ
ン、セーフランプを点灯、玉貸し可能信号RDYをロウ
レベルにネゲートして貸し玉の排出処理を中止する(図
57のステップS6572,S6575参照)。
However, the ball lending controller 500 asserts the ball lending request signal BRQ at a low level (timing t
3, t7, t11), the discharge end signal EXS does not change to the low level even after 10 seconds have passed, or the discharge end signal EXS changes to the low level (timing t4, t).
Ejection end signal E even if 10 seconds have passed after (8, t12)
When XS does not change to high level (T1 <10
At S, T2 <10S, a card ejection command is sent to the card reader to interrupt the ball lending control (step S in FIG. 18).
8134, S8142). On the other hand, the discharge control device 60
0 means that the ball lending request signal BRQ does not change to the high level (T3 <100 mS) even after 100 m seconds have elapsed since the discharge end signal EXS was changed to the high level (timing t5, t9, t13). , It is determined that an abnormality has occurred (changes in 75 msec if normal), the ball removal solenoid is turned on, the safe lamp is turned on, the ball lending enable signal RDY is negated to a low level, and the ball rental processing is stopped (see FIG. 57). See steps S6572 and S6575).

【0206】さらに、上記実施例の排出制御装置600
の制御フローではBRQ立下りフラグが“1”になって
いる間は貸玉処理を繰り返すようになっており(図26
のステップS3参照)、玉貸し制御装置500はBRQ
立下りフラグは設定された玉貸し数の回数だけ貸玉排出
を繰り返すまで玉貸し要求信号BRQをロウレベルにア
サートしてくる(図18のステップS8164,S81
70,S8130参照)ので、貸玉排出処理に入ってか
ら遊技盤制御装置400から賞球排出要求が送られてき
ても貸玉排出処理が優先的に実行される。ただし、排出
制御装置600は玉貸し要求信号BRQの立上りを検知
した後、所定時間(例えば250m秒)以内にBRQが
立ち下がらないと、すなわち図58の時間T4が250
m秒以内でないと、賞球排出処理に移行するようになっ
ている(図57ステップS6579−S6582参
照)。
Further, the emission control device 600 of the above embodiment.
In the control flow of Fig. 26, the ball rental process is repeated while the BRQ falling flag is "1" (Fig. 26).
Step S3), the ball lending control device 500 is BRQ
The falling flag asserts the ball lending request signal BRQ to a low level until the ball lending is repeated a set number of times (steps S8164 and S81 in FIG. 18).
70, S8130), so even if a prize ball discharge request is sent from the game board control device 400 after starting the ball rental discharge process, the ball rental discharge process is preferentially executed. However, if the emission control device 600 detects that the ball lending request signal BRQ has risen and the BRQ does not fall within a predetermined time (for example, 250 msec), that is, the time T4 in FIG.
If it is not within m seconds, the prize ball discharging process is started (see steps S6579 to S6582 in FIG. 57).

【0207】また、玉貸し制御装置500は貸玉排出処
理に入ると玉貸し数の回数だけ貸玉排出を済ますまで、
図18のステップS8164,S8170,S8130
のループを繰り返し、図17のステップS8112を通
過しないので、玉貸し要求信号BRQをロウレベルにア
サートした後に変換ボタン123が押されてもこれを検
知しないため、この間の変換スイッチのオンは無効とさ
れる。なお、上記実施例では、排出制御装置から遊技盤
制御装置に対してカードの挿入、排出音の発生要求信号
を送信するように構成されているが、この発明はそれに
限定されず、玉貸し制御装置から直接遊技盤制御装置に
対してカードの挿入、排出音の発生要求信号を送信する
ように構成してもよい。
When the ball lending control device 500 starts the ball lending discharge processing, the ball lending control device 500 finishes discharging balls as many times as the number of ball lending.
Steps S8164, S8170, and S8130 of FIG.
The loop is repeated and the step S8112 of FIG. 17 is not passed. Therefore, even if the conversion button 123 is pressed after the ball lending request signal BRQ is asserted to the low level, this is not detected, and the conversion switch ON during this period is invalidated. It In the above embodiment, the ejection control device is configured to transmit a card insertion and ejection sound generation request signal to the game board control device, but the present invention is not limited to this and the ball lending control is performed. The device may be configured to directly transmit a card insertion / ejection sound generation request signal to the game board control device.

【0208】また、上記実施例では、入賞球分離検出装
置180内のセーフセンサ181の検出信号を排出制御
装置600に入力して、排出制御装置600が入賞球を
検出すると遊技盤制御装置400に対して賞球数データ
の要求を行なって受信した賞球数データに基づいて賞品
球の排出を行なうようにしているが、この発明はそれに
限定されず、例えばセーフセンサ181の検出信号を遊
技盤制御装置400に入力して、遊技盤制御装置400
が入賞球を検出すると排出制御装置600に対して賞球
数データを送信し、賞品球の排出を行なわせるようにす
ることも可能である。
In the above embodiment, the detection signal of the safe sensor 181 in the winning ball separation detection device 180 is input to the discharge control device 600, and when the discharge control device 600 detects the winning ball, the game board control device 400 is operated. On the other hand, the prize ball number data is requested and the prize ball is discharged based on the received prize ball number data. However, the present invention is not limited to this. For example, the detection signal of the safe sensor 181 is a game board. Input to the control device 400, the game board control device 400
When the prize winning ball is detected, the prize ball number data may be transmitted to the discharge control device 600 so that the prize ball is discharged.

【0209】さらに、上記実施例では、貸し玉への変換
ボタン123や返却ボタン124、残高表示器122等
が供給皿120の上面の操作パネル121に設けられて
いるが、これらの位置は供給皿に限定されず、パチンコ
遊技機の前面の任意の位置あるいは球貸機200の前面
に設けることができる。また、実施例では遊技機と遊技
機との間に配置された玉貸機にカードリーダが内蔵され
ているが、カードリーダはパチンコ遊技機100の受け
皿140の一側等に配設して遊技機に内蔵させておくよ
うに構成しても良い。
Further, in the above-mentioned embodiment, the conversion button 123 to the rental ball, the return button 124, the balance indicator 122 and the like are provided on the operation panel 121 on the upper surface of the supply tray 120, but these positions are the supply tray. However, the present invention is not limited to this and can be provided at any position on the front surface of the pachinko gaming machine or on the front surface of the ball lending machine 200. Further, in the embodiment, the card reader is incorporated in the ball lending machine arranged between the gaming machines, but the card reader is arranged on one side of the saucer 140 of the pachinko gaming machine 100 or the like to play the game. It may be configured to be built in the machine.

【0210】[0210]

【発明の効果】以上説明したように、この発明は、遊技
機に設けられた賞品球排出装置を使って貸し玉を直接供
給皿に排出させるように構成されたカード式パチンコ遊
技システムにおいて、カードの保持する有価データの一
部を貸し玉に変換させる指令を与える玉貸し変換要求手
段と、遊技に関する制御を行なう遊技盤制御装置と、上
記玉貸し変換要求手段の1回の操作に対する最小玉貸し
回数を設定するための玉貸回数設定手段と、上記玉貸し
変換要求手段の操作によって玉貸し制御を開始し玉貸回
数設定手段の設定回数に基づいて上記排出制御装置に対
し玉貸し要求信号を供給する玉貸し制御装置と、上記遊
技盤制御装置または玉貸し制御装置からの要求に従って
球排出装置を制御して所定数の賞品球または貸し玉の排
出を行なう排出制御装置とを設け、該排出制御装置もし
くは上記玉貸し制御装置から上記遊技盤制御装置に対し
てカードの挿入、排出音の発生要求信号を送信させるよ
うにしたので、カードの置き忘れを防止できるととも
に、パチンコ遊技機に設けられたスピーカを使ってカー
ドの挿入音や排出音を発生させることができるため、玉
貸機に設けるべきスピーカを省略することができ、別々
にスピーカを設ける場合に比べて玉貸機をコンパクトに
構成できるとともに、システム全体のコストを下げるこ
とができる。また、遊技盤制御装置には音優先制御手段
を設けたので、賞品球排出等の遊技音とカード挿入、排
出音が競合した場合に音が重なって発生されるのを回避
することができるという効果がある。
As described above, according to the present invention, in the card type pachinko game system configured to discharge the lending balls directly to the supply tray using the prize ball discharging device provided in the gaming machine, Ball lending conversion requesting means for giving a command to convert a part of the valuable data held by the ball lending ball, a game board control device for controlling a game, and a minimum ball lending for one operation of the ball lending conversion requesting means. A ball lending number setting means for setting the number of times and a ball lending control is started by the operation of the ball lending conversion requesting means, and a ball lending request signal is sent to the discharge control device based on the set number of times by the ball lending number setting means. A ball lending control device to be supplied, and an emission system for discharging a predetermined number of prize balls or lend balls by controlling the ball discharging device in accordance with a request from the game board control device or the ball lending control device. Since the device is provided and the ejection control device or the ball lending control device transmits the card insertion request signal to the game board control device to generate the ejection sound, misplacement of the card can be prevented, and Since the sound of card insertion and ejection can be generated using the speaker provided in the pachinko gaming machine, the speaker that should be provided in the ball lending machine can be omitted and compared to the case where separate speakers are provided. The rental machine can be configured compactly and the cost of the entire system can be reduced. Further, since the game board control device is provided with the sound priority control means, it is possible to prevent the sounds from being overlapped when the game sound such as the prize ball discharge and the card insertion / discharge sound compete with each other. effective.

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

【図1】本発明に係るカード式パチンコ遊技機の構成例
を示す斜視図である。
FIG. 1 is a perspective view showing a configuration example of a card-type pachinko gaming machine according to the present invention.

【図2】本発明に係るパチンコ遊技機の裏機構の構成例
を示す背面図である。
FIG. 2 is a rear view showing a configuration example of a back mechanism of a pachinko gaming machine according to the present invention.

【図3】球排出装置170の一実施例を示す断面正面図
である。
FIG. 3 is a sectional front view showing an embodiment of a ball discharging device 170.

【図4】パチンコ遊技機100および玉貸機200の制
御系の一実施例を示すブロック図である。
FIG. 4 is a block diagram showing an embodiment of a control system of a pachinko gaming machine 100 and a ball lending machine 200.

【図5】遊技盤制御装置400の一構成例を示すブロッ
ク図である。
FIG. 5 is a block diagram showing a configuration example of a game board control device 400.

【図6】遊技盤制御装置400を構成する通信手段の一
構成例を示すブロック図である。
FIG. 6 is a block diagram showing a configuration example of a communication unit that constitutes the game board control device 400.

【図7】遊技盤制御装置400の具体的構成例を示すシ
ステム構成図である。
FIG. 7 is a system configuration diagram showing a specific configuration example of a game board control device 400.

【図8】排出制御装置600の一構成例を示すブロック
図である。
8 is a block diagram showing a configuration example of an emission control device 600. FIG.

【図9】排出制御装置600の具体的構成例を示すシス
テム構成図である。
9 is a system configuration diagram showing a specific configuration example of an emission control device 600. FIG.

【図10】玉貸制御装置500の一構成例を示すブロッ
ク図である。
10 is a block diagram showing a configuration example of a ball lending control device 500. FIG.

【図11】玉貸制御装置500の具体的構成例を示すシ
ステム構成図である。
11 is a system configuration diagram showing a specific configuration example of a ball lending control device 500. FIG.

【図12】遊技盤制御装置400によって行なわれる遊
技盤全体の制御手順の一例を示すフローチャートであ
る。
FIG. 12 is a flowchart showing an example of a control procedure for the entire game board, which is performed by the game board control device 400.

【図13】図12のフロー中におけるクロック信号出力
処理の制御手順の一例を示すフローチャートである。
13 is a flowchart showing an example of a control procedure of clock signal output processing in the flow of FIG.

【図14】図12のフロー中における賞球スイッチ入力
処理の制御手順の一例を示すフローチャートである。
14 is a flowchart showing an example of a control procedure of prize ball switch input processing in the flow of FIG.

【図15A】図12のフロー中における送受信処理の制
御手順の一例一部のを示すフローチャートである。
15A is a flowchart showing a part of an example of a control procedure of transmission / reception processing in the flow of FIG.

【図15B】図12のフロー中における送受信処理の制
御手順の一例一部のを示すフローチャートである。
FIG. 15B is a flowchart showing a part of an example of a control procedure of transmission / reception processing in the flow of FIG. 12;

【図15C】図12のフロー中における送受信処理の制
御手順の一例一部のを示すフローチャートである。
FIG. 15C is a flowchart showing a part of an example of a control procedure of transmission / reception processing in the flow of FIG. 12;

【図15D】図12のフロー中における送受信処理の制
御手順の一例一部のを示すフローチャートである。
15D is a flowchart showing a part of an example of a control procedure of transmission / reception processing in the flow of FIG.

【図16】玉貸し制御装置のメインルーチンの概略を示
すフローチャートである。
FIG. 16 is a flowchart showing an outline of a main routine of the ball lending control device.

【図17】上記メインルーチン(図16)のステップS
8008で実行される玉貸処理の具体的手順の一部(前
半)を示すフローチャートである。
FIG. 17: Step S of the main routine (FIG. 16)
It is a flowchart which shows a part (first half) of the specific procedure of the ball lending process performed in 8008.

【図18】上記メインルーチン(図16)のステップS
8008で実行される玉貸処理の具体的手順の一部(後
半)を示すフローチャートである。
FIG. 18: Step S of the main routine (FIG. 16)
It is a flowchart which shows a part (second half) of the specific procedure of the ball lending process performed in 8008.

【図19】上記メインルーチン(図16)のステップS
8010で実行されるカードの返却処理の具体的手順の
一部を示すフローチャートである。
FIG. 19 is a step S of the main routine (FIG. 16).
It is a flowchart which shows a part of specific procedure of the card return process performed by 8010.

【図20】上記メインルーチン(図16)のステップS
8012で実行されるファンクション送受信処理の具体
的手順の一部(前半)を示すフローチャートである。
FIG. 20: Step S of the main routine (FIG. 16)
It is a flowchart which shows a part (first half) of the specific procedure of the function transmission / reception process performed by 8012.

【図21】上記メインルーチン(図16)のステップS
8012で実行されるファンクション送受信処理の具体
的手順の一部(後半)を示すフローチャートである。
FIG. 21 is a step S of the main routine (FIG. 16).
It is a flowchart which shows a part (latter half) of the specific procedure of the function transmission / reception process performed by 8012.

【図22】上記メインルーチン(図16)のステップS
8014で実行される決済信号出力処理の具体的手順の
一例を示すフローチャートである。
FIG. 22 is a step S of the main routine (FIG. 16).
It is a flowchart which shows an example of the specific procedure of the payment signal output process performed by 8014.

【図23】図16のメインルーチンに優先して玉貸し制
御装置500によって所定時間(例えば1msec)経過毎
に行なわれるタイマ割込処理の手順を示すフローチャー
トである。
23 is a flowchart showing a procedure of a timer interrupt process performed every time a predetermined time (for example, 1 msec) has passed by the ball lending control device 500 in preference to the main routine of FIG.

【図24】図16のメインルーチンに優先して玉貸し制
御装置500によって行なわれる送信割込処理の手順を
示すフローチャートである。
24 is a flowchart showing the procedure of a transmission interrupt process performed by the ball lending control device 500 in preference to the main routine of FIG.

【図25】図16のメインルーチンに優先して玉貸し制
御装置500によって行なわれる受信割込処理の手順を
示すフローチャートである。
FIG. 25 is a flowchart showing the procedure of a reception interrupt process performed by the ball lending controller 500 prior to the main routine of FIG. 16;

【図26】排出制御装置600によるの排出制御処理の
メインルーチンの一例を示すフローチャートである。
FIG. 26 is a flowchart showing an example of a main routine of discharge control processing by the discharge control device 600.

【図27】上記メインルーチン(図26)のステップS
0で実行される初期化処理の具体的手順の一例を示すフ
ローチャートである。
FIG. 27 is a step S of the main routine (FIG. 26).
6 is a flowchart showing an example of a specific procedure of an initialization process executed at 0.

【図28】上記初期化処理ルーチン(図27)のステッ
プS117で実行される回線テスト処理の具体的手順の
一例を示すフローチャートである。
28 is a flowchart showing an example of a specific procedure of a line test process executed in step S117 of the initialization process routine (FIG. 27).

【図29】上記回線テスト処理、図40のカード挿排確
認処理および図45の賞球数要求処理ルーチンで実行さ
れる送信処理の具体的手順の一例を示すフローチャート
である。
FIG. 29 is a flowchart showing an example of specific procedures of the line test processing, the card insertion / ejection confirmation processing of FIG. 40, and the transmission processing executed in the prize ball number request processing routine of FIG. 45.

【図30】上記回線テスト処理ルーチンで実行される受
信処理の具体的手順の一例を示すフローチャートであ
る。
FIG. 30 is a flowchart showing an example of a specific procedure of reception processing executed in the line test processing routine.

【図31】上記メインルーチン(図26)のステップS
1で実行されるバックグランド処理の具体的手順の一例
を示すフローチャートである。
FIG. 31 is a step S of the main routine (FIG. 26).
3 is a flowchart showing an example of a specific procedure of background processing executed in 1.

【図32】上記バックグランド処理(図31)のステッ
プS21で実行される1m秒待ち処理の手順の一例を示
すフローチャートである。
FIG. 32 is a flowchart showing an example of a procedure of a 1 ms waiting process executed in step S21 of the background process (FIG. 31).

【図33】上記バックグランド処理(図31)のステッ
プS22で実行されるタイマ更新処理の手順の一例を示
すフローチャートである。
FIG. 33 is a flowchart showing an example of the procedure of timer updating processing executed in step S22 of the background processing (FIG. 31).

【図34】上記バックグランド処理(図31)のステッ
プS26で実行されるセーフセンサの読込み処理ルーチ
ンのフローチャートである。
FIG. 34 is a flowchart of a safe sensor read processing routine executed in step S26 of the background processing (FIG. 31).

【図35】上記バックグランド処理(図31)のステッ
プS27で実行される排出センサの読込み処理ルーチン
のフローチャートである。
FIG. 35 is a flowchart of a discharge sensor reading processing routine executed in step S27 of the background processing (FIG. 31).

【図36】上記バックグランド処理(図31)のステッ
プS29で実行される球抜センサ750の読込み処理ル
ーチンのフローチャートである。
FIG. 36 is a flowchart of a read processing routine of the ball-extraction sensor 750 executed in step S29 of the background processing (FIG. 31).

【図37】上記バックグランド処理(図31)のステッ
プS30で実行される玉貸要求信号の入力処理のルーチ
ンを示すフローチャートである。
FIG. 37 is a flowchart showing a routine of a ball lending request signal input process executed in step S30 of the background process (FIG. 31).

【図38】上記バックグランド処理(図31)のステッ
プS31で実行されるカード有無信号の入力処理のルー
チンを示すフローチャートである。
FIG. 38 is a flowchart showing a routine of card presence / absence signal input processing executed in step S31 of the background processing (FIG. 31).

【図39】上記バックグランド処理(図31)のステッ
プS32で実行されるクロックの入力処理のルーチンを
示すフローチャートである。
FIG. 39 is a flowchart showing a routine of clock input processing executed in step S32 of the background processing (FIG. 31).

【図40】上記メインルーチン(図26)のステップS
3で実行されるカード挿排確認処理の具体的手順の一例
を示すフローチャートである。
FIG. 40 is a step S of the main routine (FIG. 26).
6 is a flowchart showing an example of a specific procedure of card insertion / ejection confirmation processing executed in 3.

【図41】上記メインルーチン(図26)のステップS
5で実行される球抜き処理(前半)の具体的手順の一例
を示すフローチャートである。
FIG. 41 is a step S of the main routine (FIG. 26).
5 is a flowchart showing an example of a specific procedure of a ball removing process (first half) executed in 5.

【図42】上記メインルーチン(図26)のステップS
5で実行される球抜き処理(後半)の具体的手順の一例
を示すフローチャートである。
42 is a step S of the main routine (FIG. 26).
6 is a flowchart showing an example of a specific procedure of a ball removing process (second half) executed in 5.

【図43】上記メインルーチン(図26)のステップS
7で実行される払出処理の手順の一例を示すフローチャ
ートである。
FIG. 43 is a step S of the main routine (FIG. 26).
It is a flow chart which shows an example of the procedure of the payout processing performed in 7.

【図44】上記払出処理(図43)のステップS501
で実行される排出条件判定処理のサブルーチンを示すフ
ローチャートである。
FIG. 44 is a step S501 of the above-mentioned payout processing (FIG. 43).
6 is a flowchart showing a subroutine of a discharge condition determination process executed in.

【図45】上記払出処理(図43)のステップS503
で実行される賞球数要求処理のサブルーチンを示すフロ
ーチャートである。
FIG. 45 is a step S503 of the payout process (FIG. 43).
It is a flow chart which shows the subroutine of a prize sphere number demand processing performed by.

【図46】上記払出処理(図43)のステップS504
で実行される賞球設定処理のサブルーチンを示すフロー
チャートである。
FIG. 46 is a step S504 of the above-mentioned payout processing (FIG. 43).
5 is a flowchart showing a subroutine of a prize ball setting process executed in FIG.

【図47】上記払出処理(図43)のステップS505
にて行われる賞球排出処理のサブルーチンを示すフロー
チャートである。
FIG. 47: Step S505 of the above-mentioned payout processing (FIG. 43)
8 is a flowchart showing a subroutine of prize ball discharge processing performed in FIG.

【図48】上記賞球排出処理(図39)にて行われる賞
球排出終了判定処理のサブルーチンを示すフローチャー
トである。
FIG. 48 is a flowchart showing a subroutine of prize ball discharge end determination processing performed in the prize ball discharge processing (FIG. 39).

【図49】上記払出処理(図43)のステップS507
で実行されるセーフ玉排出処理のサブルーチンを示すフ
ローチャートである。
[FIG. 49] Step S507 of the above-mentioned payout processing (FIG. 43)
6 is a flow chart showing a subroutine of a safe ball discharge process executed in.

【図50】上記セーフ玉排出処理(図41)にて行われ
るセーフセンサ玉無し確認処理のサブルーチンを示すフ
ローチャートである。
FIG. 50 is a flowchart showing a subroutine of safe sensor ball absence confirmation processing performed in the safe ball discharge processing (FIG. 41).

【図51】上記払出処理(図43)のステップS508
で実行される賞球排出終了処理のサブルーチンを示すフ
ローチャートである。
FIG. 51 is a step S508 of the payout process (FIG. 43).
6 is a flowchart showing a subroutine of a prize ball discharge end process executed in step S6.

【図52】上記メインルーチン(図26)のステップS
10で実行される貸出処理のサブルーチンの一部を示す
フローチャートである。
FIG. 52 is a step S of the main routine (FIG. 26).
10 is a flowchart showing a part of a lending process subroutine executed in 10.

【図53】上記貸出処理(図52)のステップS151
にて実行される貸出条件判定処理のサブルーチンを示す
フローチャートである。
FIG. 53 is a step S151 of the lending process (FIG. 52).
5 is a flowchart showing a subroutine of a lending condition determination process executed in.

【図54】上記貸出処理(図52)のステップS153
にて実行される貸出玉数設定処理のサブルーチンを示す
フローチャートである。
FIG. 54 is a step S153 of the lending process (FIG. 52).
5 is a flowchart showing a subroutine of a number-of-lending-balls setting process executed in.

【図55】上記貸出処理(図52)のステップS155
にて実行される貸出排出処理のサブルーチンを示すフロ
ーチャートである。
FIG. 55 is a step S155 of the lending process (FIG. 52).
5 is a flowchart showing a sub routine of a lending and discharging process executed in.

【図56】上記貸出排出処理(図47)にて実行される
貸出排出終了判定処理のサブルーチンを示すフローチャ
ートである。
FIG. 56 is a flowchart showing a subroutine of a lending / ejection end determination process executed in the lending / ejection process (FIG. 47).

【図57】上記貸出処理(図52)のステップS157
にて実行される貸出排出終了処理のサブルーチンを示す
フローチャートである。
FIG. 57 is a step S157 of the lending process (FIG. 52).
5 is a flowchart showing a subroutine of a lending and discharging end process executed in.

【図58】上記玉貸し制御装置500と排出制御装置6
00との間で送受信される信号の具体的なタイミングを
示すタイムチャートである。
FIG. 58 is the above-mentioned ball lending control device 500 and discharge control device 6
10 is a time chart showing specific timings of signals transmitted and received to and from 00.

【図59】上記遊技盤制御装置400と排出制御装置6
00との間で送受信される信号の排出制御装置側におけ
る具体的なタイミングを示すタイムチャートである。
59] The game board control device 400 and the discharge control device 6 described above.
10 is a time chart showing specific timings on the side of the emission control device for signals transmitted to and received from 00.

【図60】上記遊技盤制御装置400と排出制御装置6
00との間で送受信される信号の遊技盤制御装置側にお
ける具体的なタイミングを示すタイムチャートである。
FIG. 60 is a game board control device 400 and a discharge control device 6;
It is a time chart which shows the concrete timing in the game board control device side of the signal transmitted / received between 00.

【符号の説明】[Explanation of symbols]

100 パチンコ遊技機 121 供給皿 122 残高表示器 123 玉貸し変換ボタン 125 玉数表示器 131 玉不足検出器 132 玉保有検出器 170 球排出装置 180 入賞球分離排出装置 200 玉貸し機 211 カード挿排口 220 挿入残高表示器 230 有効表示ランプ 400 遊技盤制御装置 500 玉貸し制御装置 600 排出制御装置 100 pachinko machine 121 supply plate 122 Balance indicator 123 Ball Rental Conversion Button 125 ball number display 131 Ball shortage detector 132 Ball possession detector 170 ball ejector 180 prize winning ball separation discharge device 200 ball lending machine 211 Card slot 220 Insert balance indicator 230 Effective indicator lamp 400 game board control device 500 ball lending control device 600 emission control device

フロントページの続き (51)Int.Cl.5 識別記号 庁内整理番号 FI 技術表示箇所 G07F 7/08 Continuation of front page (51) Int.Cl. 5 Identification code Office reference number FI Technical display area G07F 7/08

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 任意の数の遊技球を排出可能な球排出装
置と、有価データを記憶したカードのデータを読取り可
能なカードリーダと、カードの保持する有価データの一
部を貸し玉に変換させる指令を与える玉貸し変換要求手
段と、遊技に関する制御を行なう遊技盤制御装置と、上
記玉貸し変換要求手段の1回の操作に対する最小玉貸し
回数を設定するための玉貸回数設定手段と、上記玉貸し
変換要求手段の操作によって玉貸し制御を開始し玉貸回
数設定手段の設定回数に基づいて上記排出制御装置に対
し玉貸し要求信号を供給する玉貸し制御装置と、上記遊
技盤制御装置または玉貸し制御装置からの要求に従って
球排出装置を制御して所定数の賞品球または貸し玉の排
出を行なう排出制御装置とを備え、上記排出制御装置も
しくは上記玉貸し制御装置から上記遊技盤制御装置に対
してカードの挿入、排出音の発生要求信号が送信される
ように構成されてなることを特徴とするカード式パチン
コ遊技システム。
1. A ball discharging device capable of discharging an arbitrary number of game balls, a card reader capable of reading the data of a card storing valuable data, and a part of the valuable data held by the card converted into a rental ball. A ball lending conversion requesting means for giving a command, a game board control device for controlling a game, and a ball lending number setting means for setting a minimum ball lending frequency for one operation of the ball lending conversion requesting means, A ball lending control device that starts ball lending control by operating the ball lending conversion requesting means and supplies a ball lending request signal to the discharge control device based on the number of times set by the ball lending number setting means, and the game board control device. Or a ball lending control device that controls the ball discharging device according to a request from the ball lending control device to discharge a predetermined number of prize balls or lend balls. A card-type pachinko game system characterized in that a card insertion / ejection sound generation request signal is transmitted from the control device to the game board control device.
【請求項2】 上記遊技盤制御装置には、遊技に伴う効
果音の発生とカードの挿入、排出音の発生要求が競合し
た場合にいずれか一つを選択する音優先制御手段を設け
たことを特徴とする請求項1記載のカード式パチンコ遊
技システム。
2. The game board control device is provided with sound priority control means for selecting any one of them when there is a conflict between the generation of a sound effect associated with a game, a card insertion request, and a discharge sound generation request. The card-type pachinko game system according to claim 1.
JP19716891A 1991-07-11 1991-07-11 Card-type pachinko machine Expired - Lifetime JP3326564B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19716891A JP3326564B2 (en) 1991-07-11 1991-07-11 Card-type pachinko machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19716891A JP3326564B2 (en) 1991-07-11 1991-07-11 Card-type pachinko machine

Related Child Applications (2)

Application Number Title Priority Date Filing Date
JP2001259263A Division JP2002113214A (en) 2001-08-29 2001-08-29 Card type pachinko game apparatus
JP2002082834A Division JP2002320758A (en) 2002-03-25 2002-03-25 Card type pachinko game device

Publications (2)

Publication Number Publication Date
JPH0515651A true JPH0515651A (en) 1993-01-26
JP3326564B2 JP3326564B2 (en) 2002-09-24

Family

ID=16369922

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19716891A Expired - Lifetime JP3326564B2 (en) 1991-07-11 1991-07-11 Card-type pachinko machine

Country Status (1)

Country Link
JP (1) JP3326564B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012205645A (en) * 2011-03-29 2012-10-25 Easys Inc Information management apparatus, information management system, their control method, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012205645A (en) * 2011-03-29 2012-10-25 Easys Inc Information management apparatus, information management system, their control method, and program

Also Published As

Publication number Publication date
JP3326564B2 (en) 2002-09-24

Similar Documents

Publication Publication Date Title
JP2000288229A (en) Card-type game machine
JPH11221353A (en) Electronic game machine
JP3274476B2 (en) Card type pachinko game machine
JP2875816B2 (en) Gaming machine
JP4296112B2 (en) Slot machine
JP3629609B2 (en) Card type pachinko game machine
JPH08182815A (en) Pinball game machine
JPH0515651A (en) Card system pinball game system
JP3066475B2 (en) Card-type gaming machine
JP3982709B2 (en) Card type pachinko game machine
JP3066474B2 (en) Card-type gaming machine
JP5996005B2 (en) Game machine
JP3035796B2 (en) Gaming equipment
JP3035795B2 (en) Gaming equipment
JPH0515647A (en) Transmitting/receiving system in pinball game machine
JPH10118291A (en) Information relaying device
JP3982710B2 (en) Card type pachinko game machine
JP3982711B2 (en) Card type pachinko game machine
JP3982713B2 (en) Card type pachinko game machine
JP3982712B2 (en) Card type pachinko game machine
JP2002113214A (en) Card type pachinko game apparatus
JP2002320758A (en) Card type pachinko game device
JP3415555B6 (en) Card game machine
JP5417570B2 (en) Game ball rental system, card unit, payout control device, and game machine
JP2000288232A (en) Card-type game machine

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20080712

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110712

Year of fee payment: 9

EXPY Cancellation because of completion of term