JPH04343876A - Card type pachinko game machine - Google Patents

Card type pachinko game machine

Info

Publication number
JPH04343876A
JPH04343876A JP14558291A JP14558291A JPH04343876A JP H04343876 A JPH04343876 A JP H04343876A JP 14558291 A JP14558291 A JP 14558291A JP 14558291 A JP14558291 A JP 14558291A JP H04343876 A JPH04343876 A JP H04343876A
Authority
JP
Japan
Prior art keywords
discharge
ball
flag
sensor
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
JP14558291A
Other languages
Japanese (ja)
Other versions
JP2964178B2 (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
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=15388427&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=JPH04343876(A) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by Sophia Co Ltd filed Critical Sophia Co Ltd
Priority to JP14558291A priority Critical patent/JP2964178B2/en
Publication of JPH04343876A publication Critical patent/JPH04343876A/en
Application granted granted Critical
Publication of JP2964178B2 publication Critical patent/JP2964178B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To eliminate the complicatedness of card residue fraction handling by providing a control means for discharging game balls of the number that is a smaller number of the loan ball number or the ball number corresponding to the remainder of a card, writing the remainder data obtained by subtracting the change in the card and discharging the card from a card reader. CONSTITUTION:The preset ball loan number and the remainder data read from a card are compared, an outgo completion signal V is counted, and when the ball loan discharge frequency reaches a smaller number of the preset ball loan number or the remainder data, a ball loan request signal T is negated. A card control means 511 extracts the remainder of a card from the input data sent from a card reader control device 25o by a card remainder input means 541. The content of a remainder storage means 542 is updated every time the outgoing of loan ball is completed, and the content of the remainder storage means 542 is displayed on a remainder display device of a pachinko game machine.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は遊技機の制御技術さらに
はカード式パチンコ遊技機におけるカード残金の貸し玉
への変換制御方式に適用して有効な技術に関し、例えば
パチンコ遊技機の賞球排出装置を用いて貸し玉を排出す
る方式のシステムにおける玉貸し制御に利用して効果的
な技術に関する。
[Field of Industrial Application] The present invention relates to a control technology for gaming machines and a technology that is effective when applied to a control system for converting card balances into rented balls in card-type pachinko gaming machines. This invention relates to effective technology for controlling ball rental in a system that uses a device to eject rental balls.

【0002】0002

【従来の技術】近年、磁気カードを媒介として遊技を行
なうようにしたカード式のパチンコ遊技システムが提唱
されている。カード方式は、遊技客が記憶媒体であるカ
ードのみを持ち歩けばよく、落下し易いパチンコ球を大
量に持ち運ぶ手間を軽減することができるという利点が
ある。従来提案されているカード式パチンコ遊技システ
ムには、大きく分けると次の2つの方式がある。第1の
方式は、カードの発行に際して購入金額に対応した持玉
数データをカードに記憶し、この持玉数データの範囲内
でパチンコ遊技を行ない、遊技過程において増減した持
玉数データをカードに記憶するというものである(特公
昭47−42227号参照)。
2. Description of the Related Art In recent years, card-type pachinko game systems have been proposed in which games are played using magnetic cards. The card system has the advantage that the player only needs to carry the card, which is a storage medium, and can reduce the effort of carrying a large number of pachinko balls that are prone to falling. Card-based pachinko gaming systems that have been proposed in the past can be roughly divided into the following two systems. In the first method, when a card is issued, data on the number of balls held corresponding to the purchase amount is stored on the card, pachinko is played within the range of this data on the number of balls held, and data on the number of balls held that increases or decreases during the playing process is stored on the card. (See Japanese Patent Publication No. 47-42227).

【0003】カード方式の第2の方式は、カードの購入
の際にコード番号だけを記録したカードを発行し、持玉
数は集中管理装置に記憶し、カードをパチンコ機のカー
ド読取装置に挿入することによって記憶された持玉数を
呼び出して遊技を行なえるようにするものである(実公
昭61−32709号、特公昭51−17106号参照
)。しかしながら、従来のカード式遊技システムはいず
れの方式にあっても、カードによる遊技が可能にされる
のはカードを発行した遊技店内のみであり、他の遊技店
で発行されたカードでは遊技が行なえないようになって
いた。また、発行されたカードが有効とされるのは発行
当日のみであった。そこで、他の遊技店で発行されたカ
ードでも使用でき、しかも有効期限の制約を受けずに使
用できるようにした共通プリペードカード方式の遊技シ
ステムも一部で実用化されている。
[0003] In the second card system, when purchasing a card, a card with only a code number recorded is issued, the number of balls held is stored in a central management device, and the card is inserted into a card reading device of a pachinko machine. By doing so, the stored number of balls can be recalled to play the game (see Utility Model Publication No. 61-32709 and Japanese Patent Publication No. 51-17106). However, regardless of the type of conventional card-based gaming system, games with cards can only be played within the gaming arcade where the card was issued, and games cannot be played with cards issued at other gaming arcades. It turned out that there was no such thing. Additionally, issued cards were only valid on the day of issue. Therefore, gaming systems based on common prepaid cards have been put into practical use in some areas, allowing cards issued by other gaming parlors to be used without restrictions on expiration dates.

【0004】0004

【発明が解決しようとする課題】しかしながら、このよ
うな共通プリペードカード方式を採用すると、遊技者に
とっては一旦カードを購入してカードを玉貸機に入れて
貸し玉に変換してからでないと遊技を開始できないため
、従来に比べてカードを購入する行為が増えた分だけ余
計な手間がかかるという問題点があった。そこで、パチ
ンコ遊技機とパチンコ遊技機との間に配置される玉貸機
にカードリーダを設け、パチンコ遊技機の操作パネルに
設けられたスイッチボタンからの指令によりカードの残
金の一部を貸し玉に変換して、パチンコ遊技機に設けら
れた賞品球排出装置を使って貸し玉を直接パチンコ遊技
機の供給皿に排出させるようにして玉貸し操作の煩わし
さを軽減するようにした玉貸し方式が提案されている。
[Problem to be Solved by the Invention] However, if such a common prepaid card system is adopted, the player must first purchase a card, put the card into a ball rental machine, and convert it into a rental ball before playing the game. Since the card cannot be started, there is a problem in that it requires extra effort as the number of card purchases has increased compared to the past. Therefore, a card reader is installed in the ball lending machine placed between the pachinko gaming machines, and a part of the remaining balance on the card is transferred to the ball lending machine based on a command from a switch button provided on the operation panel of the pachinko gaming machine. A ball lending method that reduces the troublesome ball lending operation by converting the game into a game machine and ejecting the rented balls directly into the supply tray of the pachinko machine using a prize ball ejecting device installed in the machine. is proposed.

【0005】しかしながら、この玉貸し方式にあっては
、貸し玉への一回の変換操作による排出数を遊技者が選
択できるようにするために変換スイッチを複数個設けて
いるため、大きさに制約のある操作パネル上のスイッチ
の数が多くなり、一つ一つのスイッチボタンを小さくせ
ざるを得なくなるので操作性や低下し、誤操作も多くな
るという問題点がある。そこで、操作パネル上の玉貸し
変換スイッチの数を一つにする方式を考えた。ところが
、玉貸し変換スイッチの数を一つにすると、一回の変換
操作による排出数が固定されてしまうとともに、カード
の残金に端数が生じないように設定しなければならない
ため、あまり大きな排出数を設定することができないと
いう不都合が生じることが分かった。
However, in this ball rental system, a plurality of conversion switches are provided so that the player can select the number of balls ejected by one conversion operation into rental balls, so the size does not change. The number of switches on the restricted operation panel increases, and each switch button must be made smaller, resulting in lower operability and increased erroneous operations. Therefore, we devised a method to reduce the number of ball rental conversion switches on the operation panel to one. However, if the number of ball rental conversion switches is set to one, the number of discharges from one conversion operation is fixed, and the balance must be set so that there are no fractions in the remaining balance of the card, so if the number of discharges is too large. It turns out that there is an inconvenience that it is not possible to set the .

【0006】一方、遊技店内には複数種の遊技台が設置
されており、機種によっては通常遊技状態における獲得
球が少ないものや遊技状態の変化に関係なく比較的獲得
球が得られやすいものがある。しかるに、上記のように
一回の玉貸し変換操作による排出数が固定されていると
、通常遊技状態における獲得球が少ない機種では頻繁に
変換操作を行なわなくてはならず、また遊技状態の変化
に関係なく比較的獲得球が得られやすい機種では1回の
変換操作によって必要以上の貸し玉が排出されてしまう
おそれがあるという問題点がある。
[0006] On the other hand, there are multiple types of game machines installed in the game arcade, and depending on the machine, there are machines where the number of balls acquired is small in the normal gaming state, and there are machines where it is relatively easy to obtain balls regardless of changes in the gaming state. be. However, if the number of balls ejected by one ball rental conversion operation is fixed as described above, the conversion operation will have to be performed frequently in a machine where the number of balls acquired in the normal game state is small, and changes in the game state will require frequent conversion operations. In models where it is relatively easy to obtain balls regardless of the situation, there is a problem in that there is a risk that more rental balls than necessary may be ejected by one conversion operation.

【0007】この発明は上記のような背景の下になされ
たもので、その目的とするところは、カード式遊技機に
おいて遊技中における貸し玉への追加変換の際の排出数
の最適化を図り、遊技者が追加変換操作に煩らわされる
ことなく遊技に集中できるようにするとともに、カード
残金に端数が生じてその処理に苦慮する必要のないよう
な玉貸し方式を提供することにある。
The present invention was made against the above-mentioned background, and its purpose is to optimize the number of balls ejected when additionally converting balls into rented balls during a game in a card-type gaming machine. To provide a ball lending system that allows players to concentrate on playing games without having to bother with additional conversion operations, and that eliminates the need to worry about dealing with fractional balances on cards. .

【0008】[0008]

【課題を解決するための手段】上記目的を達成するため
、カードリーダにカードが挿入された場合に、予め設定
された貸し玉数(またはパチンコ遊技機に設けられた玉
貸し変換要求操作手段によって指定された玉数)もしく
はカードの残高に相当する玉数のいずれか少ない方の数
の遊技球を上記球排出装置より排出させるとともに上記
カードには変換分を引いた残高データを書き込んでから
カードリーダ内より排出させる機能を制御装置に持たせ
るようにしたものである。
[Means for solving the problem] In order to achieve the above object, when a card is inserted into a card reader, a preset number of rental balls (or a ball rental conversion request operation means provided in a pachinko machine) is set. The number of game balls (specified number of balls) or the number of balls corresponding to the balance of the card, whichever is smaller, is ejected from the ball ejecting device, and the balance data minus the conversion amount is written on the card, and then the card is loaded. The control device has a function to discharge the fluid from inside the reader.

【0009】[0009]

【作用】上記した手段によれば、カードリーダにカード
を挿入するだけで貸し玉への変換が行なわれるため、従
来のようにカードをカードリーダに挿入してから玉貸し
要求操作手段を操作する必要がなくなり、遊技開始時お
よび遊技中における貸し玉への変換の際の手順を簡略化
させることができる。また、1回の玉貸し変換操作によ
り行なわれる玉貸排出数を遊技機毎に任意に設定できる
ので、遊技店に設置されている遊技機の機種にあわせた
排出数を設定することにより、遊技者が変換操作に煩わ
されて遊技に集中できなくなるのを防止し、かつ余計な
貸し玉が排出されるのを防止することができる。さらに
、カード残金に相当する玉数の方設定された1回の玉貸
数よりも少ないときは残りの分が変換されて排出される
ためカードの初期度数に対して割り切れない数の排出数
を設定しておいても端数が生じないので、遊技店の営業
方針にあった貸し玉排出数を設定することが可能となる
[Operation] According to the above-mentioned means, the conversion to rental balls is performed simply by inserting the card into the card reader, so it is necessary to operate the ball rental request operation means after inserting the card into the card reader as in the conventional case. This eliminates the need for this, and it is possible to simplify the procedure for converting to rental balls at the start of a game and during a game. In addition, the number of balls to be discharged by one ball rental conversion operation can be arbitrarily set for each gaming machine, so by setting the number of balls to be discharged according to the model of the gaming machine installed at the game parlor, you can To prevent a player from being troubled by a conversion operation and unable to concentrate on a game, and to prevent unnecessary rental balls from being discharged. Furthermore, if the number of balls equivalent to the card balance is less than the set number of balls borrowed at one time, the remaining amount will be converted and discharged, so the number of discharged balls that is not divisible by the initial number of cards. Even if the number is set, there will be no fraction, so it is possible to set the number of rental balls that match the business policy of the game parlor.

【0010】0010

【実施例】図1には、本発明に係るカード式パチンコ遊
技機の一実施例が示されている。この実施例では、パチ
ンコ遊技機100が玉貸機を兼用した構成にされており
、各パチンコ遊技機100にはカードリーダが内蔵され
、パチンコ遊技機100の前面パネル101の下部に設
けられた受け皿140の前面左側には上記カードリーダ
に対応してカード挿排口211と、カードリーダが稼動
状態すなわちカード挿入可能状態にあることを表示する
有効表示ランプ230が設けられている。一方、パチン
コ遊技機100の前面パネル101に設けられている供
給皿120の上面には、操作パネル121が形成され、
この操作パネル121上に上記カード挿排口211に挿
入されたカードの残高を表示する残高表示器122と、
玉貸しが可能であることを表示する玉貸可能表示ランプ
126が設けられている。
Embodiment FIG. 1 shows an embodiment of a card-type pachinko game machine according to the present invention. In this embodiment, the pachinko gaming machines 100 are configured to double as ball lending machines, and each pachinko gaming machine 100 has a built-in card reader, and a tray provided at the bottom of the front panel 101 of the pachinko gaming machine 100. On the front left side of the card reader 140, a card insertion/ejection opening 211 corresponding to the card reader and a valid indicator lamp 230 are provided to indicate that the card reader is in an operating state, that is, a card can be inserted. 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 game machine 100.
a balance display 122 that displays the balance of the card inserted into the card slot 211 on the operation panel 121;
A ball lending possibility display lamp 126 is provided to indicate that ball lending is possible.

【0011】なお、112は賞品玉排出時に点灯される
賞品球排出表示ランプ、また113は貸し玉排出時に点
灯される貸し玉排出表示ランプ113、108はパチン
コ遊技機において打止状態が発生したときに点灯される
完了ランプ、141は上記供給皿120が満杯になった
ときに内部でオーバーフローした賞品球を貯留する受け
皿、142は供給皿120から流下される球を一個ずつ
遊技領域内に発射する打球発射装置の操作ダイヤルであ
る。パチンコ遊技盤前面の遊技領域の構成は従来のもの
と同様で、任意の構成をとり得る。
Furthermore, 112 is a prize ball discharge display lamp that is lit when a prize ball is discharged, and 113 is a rented ball discharge display lamp 113 that is lit when a rented ball is discharged, and 108 is a display lamp that is lit when a pachinko game machine is stopped. A completion lamp 141 is lit to store prize balls that overflow when the supply tray 120 is full, and 142 is a tray that fires the balls falling from the supply tray 120 one by one into the game area. This is the operation dial for the batted ball launcher. The configuration of the game area on the front of the pachinko game board is similar to that of the conventional one, and can have any configuration.

【0012】この実施例では、上記カードリーダへカー
ドが挿入されると、カードの有する金額の範囲内で、所
定数の貸し玉を排出する指令がパチンコ遊技機100の
裏面に設けられている球排出装置の制御装置に対して送
出されるように構成されている。変換後のカードの残り
金額は、100円を1単位とする度数で残高表示器12
2に表示されるようになっている。図2には上記パチン
コ遊技機100の裏機構の構成例が示されている。図2
において、170は上記玉貸機200からの排出要求信
号に基づいて所定数の貸し玉を排出したりパチンコ遊技
機からの要求信号により賞品球を排出する球排出装置、
151は排出される前の球を貯留しておく貯留タンク、
152は貯留タンク151内の球を一列に整列させて上
記球排出装置170まで誘導する誘導路で、この誘導路
152は特に限定されないが、短時間に多量の玉を供給
できるように2条に形成されており、その途中には球の
重なりを防止する玉ならし153および待機球検出器1
60が設けられている。
In this embodiment, when a card is inserted into the card reader, a command to eject a predetermined number of rental balls within the amount of money held by the card is sent to the ball provided on the back of the pachinko gaming machine 100. The ejector is configured to be delivered to a control device of the ejector. The remaining amount on the card after conversion is displayed on the balance display 12 in units of 100 yen.
It is now displayed on 2. FIG. 2 shows an example of the configuration of the back mechanism of the pachinko gaming machine 100. Figure 2
, 170 is a ball discharging device that discharges a predetermined number of rental balls based on a discharge request signal from the ball rental machine 200 or a prize ball according to a request signal from the pachinko game machine;
151 is a storage tank that stores the balls before being discharged;
Reference numeral 152 denotes a guideway for lining up the balls in the storage tank 151 and guiding them to the above-mentioned ball ejecting device 170. Although this guideway 152 is not particularly limited, it is formed into two strips so that a large amount of balls can be supplied in a short time. A ball leveling device 153 and a standby ball detector 1 are provided on the way to prevent balls from overlapping.
60 are provided.

【0013】また、球排出装置170の下方には、排出
された玉を遊技機前面の上記供給皿120の流出口12
9へ誘導する排出樋155と供給皿120からオーバフ
ローした玉を下方の受け皿141へ誘導するオーバーフ
ロー樋156が連続して設けられているとともに、上記
排出樋155の途中から分岐された玉抜き樋157が上
記オーバーフロー樋156と平行して配設され、この玉
抜き樋157と排出樋155との分岐部には流路切換え
弁158が設けられている。159は遊技機の前面に設
けられた入賞口に流入した入賞球を一箇所に集合させる
集合樋、180は集合樋159の下端に設けられた入賞
球分離検出装置、240は上記カード挿排口211に対
応してその後方に配設されたカードリーダである。
Further, below the ball ejecting device 170, the ejected balls are sent to the outlet 12 of the supply tray 120 on the front of the gaming machine.
A discharge gutter 155 that guides the balls overflowing from the supply tray 120 to the receiving tray 141 is continuously provided, and a ball removal gutter 157 is branched from the middle of the discharge gutter 155. is disposed in parallel with the overflow gutter 156, and a flow path switching valve 158 is provided at the branching point between the beading gutter 157 and the discharge gutter 155. 159 is a collecting gutter that collects winning balls that have flowed into the winning opening provided on the front side of the gaming machine, 180 is a winning ball separation detection device provided at the lower end of the collecting gutter 159, and 240 is the card insertion/ejection opening. 211 and is a card reader disposed behind it.

【0014】図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 ejecting device 170. This ball discharge device 170 includes a guide gutter 710 configured to be continuous with the guide gutter 152 that guides the spare balls stored in the storage tank 151. This guide gutter 710 is formed into two channels corresponding to the guide gutter 152, and a discharge means 740 consisting of a stopper 745 as a flow prevention means and a discharge solenoid 741 for driving the same is also provided corresponding to each channel. There are two sets. The guide trough 710 consists of three parts depending on its function, from the top to the bottom: a pressure reducing part 711, an edge cutting part 712, and a discharge part 7.
It is said to be 13.

【0015】上記減圧部711は、貯留タンク151か
ら誘導樋152を介して送られてくる予備球の圧力を減
らすもので、同図に示すように、緩傾斜状態にUターン
された構造にされている。上記縁切り部712は、その
下の排出部713を通る球同士に間隔を開けさせて、下
方の排出手段740による球の流出を止め易くするため
のもので、前記減圧部711に連続する垂直通路部分7
21と後述の排出部713に通じる方向変換通路部分7
22とから構成されている。そして、垂直通路部分72
1の下端部には、球詰まり防止突部723が前方に突出
して設けられている。この球詰まり防止突部723によ
って、垂直通路部分721に縦に並んで停止した球のう
ちの最も下の球の中心位置がその上方の球の中心位置よ
り常に前方に位置せしめられるようになる。それによっ
て、上方の球の流下移動圧が最も下の球を常に前方に押
圧するように作用し、球詰まりが防止される。
The depressurizing part 711 is for reducing the pressure of the spare balls sent from the storage tank 151 through the guide gutter 152, and as shown in the figure, it has a U-turned structure with a gentle slope. ing. The edge cutting part 712 is for creating a space between the balls passing through the discharge part 713 below and making it easier to stop the balls from flowing out by the discharge means 740 below. part 7
21 and a direction changing passage section 7 leading to a discharge section 713 to be described later.
It is composed of 22. And the vertical passage section 72
A ball jam prevention protrusion 723 is provided at the lower end of the ball 1 to protrude forward. This ball jam prevention protrusion 723 allows the center position of the lowest ball among the balls vertically lined up and stopped in the vertical passage portion 721 to be always located in front of the center position of the balls above it. As a result, the downward movement pressure of the upper balls always acts to press the lowermost ball forward, thereby preventing the balls from clogging.

【0016】各案内樋710の排出部713の途中には
、流下する球を検出する非接触型の排出球検出センサ7
30(排出センサ1,2)がそれぞれ設置されている。 また、各排出部713の途中、上記排出センサ730直
後には上記排出手段740を構成するストッパ745が
出没可能な切欠き703が設けられている。上記ストッ
パ745は、それぞれ支軸705によって回動自在に支
持されているとともに、ストッパ745の一側部には、
それぞれ連結ピン746が突設され、これら連結ピン7
46と排出ソレノイド741の作動ロッド742の下端
部とが連結板747によりそれぞれ連結されている。
A non-contact discharge ball detection sensor 7 is installed in the middle of the discharge section 713 of each guide trough 710 to detect balls flowing down.
30 (emission sensors 1 and 2) are installed respectively. In addition, a notch 703 is provided in the middle of each discharge portion 713, immediately after the discharge sensor 730, through which a stopper 745 constituting the discharge means 740 can be inserted. Each of the stoppers 745 is rotatably supported by a support shaft 705, and on one side of the stopper 745,
Connecting pins 746 are provided respectively, and these connecting pins 7
46 and the lower end of the operating rod 742 of the discharge solenoid 741 are connected by a connecting plate 747, respectively.

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

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

【0019】上記球抜きセンサ750および排出ソレノ
イド741、排出センサ730は排出制御装置600(
図4参照)に電気的に接続されている。図4には、パチ
ンコ遊技機100の制御系の一実施例が示されている。 この制御系は大きく分けると、主としてパチンコ遊技機
100の遊技盤に関する制御を司る遊技盤制御装置40
0と、カードリーダ等の制御を司る玉貸し制御装置50
0と、上記球排出装置170の制御を司る排出制御装置
600とにより構成されている。
The above-mentioned bulb removal sensor 750, discharge solenoid 741, and discharge sensor 730 are connected to the discharge control device 600 (
(see Figure 4). FIG. 4 shows an embodiment of the control system of the pachinko gaming machine 100. Broadly speaking, this control system can be divided into a game board control device 40 that mainly controls the game board of the pachinko game machine 100;
0, and a ball lending control device 50 that controls the card reader, etc.
0, and a discharge control device 600 that controls the ball discharge device 170.

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

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

【0022】また、排出制御装置600は、パチンコ遊
技機100の基枠109に設けられた開閉スイッチ10
3(図1参照)やオーバーフロー樋156の途中に設け
られたオーバーフロー検出器104(図2参照)、誘導
樋152の途中に設けられた待機球検出器160からの
検出信号が入ってくると排出ソレノイド741a,74
1bの励磁を保留して球排出装置170による排出を中
止するとともに、排出時には排出指令信号の内容に応じ
て例えば賞品球排出表示ランプ112または貸し玉排出
表示ランプ113を点灯させたり、遊技盤制御装置40
0に対して賞品球もしくは貸し玉の排出音要求信号を送
出する。
[0022] The discharge control device 600 also controls the opening/closing switch 10 provided on the base frame 109 of the pachinko game machine 100.
3 (see FIG. 1), an overflow detector 104 (see FIG. 2) provided in the middle of the overflow gutter 156, and a waiting ball detector 160 provided in the middle of the guide gutter 152. Solenoid 741a, 74
1b is suspended and the ejection by the ball ejection device 170 is stopped, and at the time of ejection, the prize ball ejection display lamp 112 or the rental ball ejection display lamp 113 is turned on, for example, according to the contents of the ejection command signal, or the game board control is performed. device 40
A signal requesting the ejection sound of a prize ball or a rental ball is sent to 0.

【0023】さらに、排出制御装置600は、補給セン
サ106やアウトセンサ107からの信号に基づいて、
完了ランプ108を点灯させたりパチンコ店の管理装置
700に対して補給要求信号Kや排出賞品球数信号I、
排出貸し玉数信号J(1パルスで例えば25個の排出球
を示す)、アウト球数信号L等をデータとして送信する
ように構成されている。
Further, the discharge control device 600, based on signals from the replenishment sensor 106 and the out sensor 107,
A completion lamp 108 is lit, a replenishment request signal K and a discharge prize ball count signal I are sent to the management device 700 of the pachinko parlor.
It is configured to transmit an ejected ball rental number signal J (one pulse indicates, for example, 25 ejected balls), an out ball number signal L, etc. as data.

【0024】玉貸し制御装置500は、パチンコ遊技機
100内のカードリーダからの読取りデータを受けて残
高表示器122に対する表示駆動信号Xおよびカードリ
ーダが作動状態にあることを表示する有効表示ランプ2
30やパチンコ遊技機に設けられている玉貸し可能表示
ランプ126に対する駆動信号を形成したり、カードリ
ーダ制御装置250に対する残高データ書換え信号q、
パンチ穴加工信号m、カード排出信号nを形成する。ま
た、玉貸し制御装置500は、カードリーダにカードが
挿入されたことを認知すると排出制御装置600に対し
て玉貸し要求信号Tを送ったり、カード管理装置800
に対してカード残高の中から1度(100円)分の貸し
玉のへの変換を行なう毎に1パルスのカード決済信号j
を送信する機能も備えている。
The ball lending control device 500 receives read data from the card reader in the pachinko gaming machine 100 and sends a display drive signal X to the balance display 122 and a valid indicator lamp 2 that indicates that the card reader is in an operating state.
30 and the pachinko game machine, and form a driving signal for the ball lending available display lamp 126 provided in the pachinko game machine, and a balance data rewriting signal q for the card reader control device 250.
A punch hole processing signal m and a card ejection signal n are generated. In addition, when the ball lending control device 500 recognizes that a card has been inserted into the card reader, it sends a ball lending request signal T to the discharge control device 600, and sends a ball lending request signal T to the card management device 800.
1 pulse card payment signal every time (100 yen) is converted from the card balance to the rental ball.
It also has the ability to send.

【0025】図5には上記遊技盤制御装置400の具体
的構成例が示されている。すなわち、この実施例の遊技
盤制御装置400は、セーフセンサ181からの検出信
号に基づいて排出すべき賞品球数を決定する賞球数確定
手段410と、決定された賞球データBおよびそのスト
ローブ信号Cを排出制御装置600に対し出力する賞球
データ送信手段420と、遊技盤102からの信号に基
づいて遊技に関する制御を行なう遊技制御手段430と
、入賞球分離用のセーフソレノイド182に対する駆動
信号やパチンコ店の管理装置700に対する状態信号を
形成する出力部440と、スピーカ190を駆動するた
めの音声出力手段部450とにより構成されている。
FIG. 5 shows a specific example of the configuration of the game board control device 400. That is, the game board control device 400 of this embodiment includes a prize ball number determining means 410 that determines the number of prize balls to be ejected based on the detection signal from the safe sensor 181, and the determined prize ball data B and its strobe. Driving signals for the prize ball data transmitting means 420 that outputs the signal C to the discharge control device 600, the game control means 430 that controls the game based on the signal from the game board 102, and the safe solenoid 182 for separating winning balls. The output section 440 generates a status signal to the management device 700 of the pachinko parlor and the audio output means section 450 that drives the speaker 190.

【0026】上記賞球数確定手段410は、例えばセー
フセンサ181からの検出信号の立上りエッジを検出し
て入賞球検出信号を形成する信号検出手段411と、一
つの入賞球検出信号に対する賞品球数を記憶する賞球数
記憶手段412と、遊技盤の役物等に設けられ一般の入
賞球に対する賞球数と異なる賞球数を与える特定の入賞
領域へ入賞した遊技球の数を記憶する特定入賞数記憶手
段413とからなり、入賞球を検知するとそれぞれの入
賞球に対応して予め設定されたる賞球データを出力する
ように構成されている。セーフセンサ181は入賞球分
離検出装置180内に設けられ、排出制御装置600か
らの応答信号(読込み確定信号)Hによってセーフソレ
ノイド182の駆動信号が形成されて入賞球が一個ずつ
分離されて検出されるため、一般の入賞球はその発生に
応じた数だけ正確に排出指令信号が形成される。
The prize ball number determining means 410 includes, for example, a signal detecting means 411 that detects the rising edge of the detection signal from the safe sensor 181 to form a winning ball detection signal, and a signal detecting means 411 that forms a winning ball detection signal by detecting the rising edge of the detection signal from the safe sensor 181, and a prize ball number determining means for one winning ball detection signal. a prize ball number storage means 412 for storing the number of prize balls, and a special ball storage means 412 for storing the number of game balls that have won a prize in a specific winning area, which is provided on an accessory of the game board and gives a prize ball number different from the number of prize balls for general winning balls. It consists of a winning number storage means 413, and is configured to output prize ball data set in advance corresponding to each winning ball when a winning ball is detected. The safe sensor 181 is provided in the winning ball separation detection device 180, and a drive signal for the safe solenoid 182 is formed in response to a response signal (reading confirmation signal) H from the discharge control device 600, and the winning balls are separated and detected one by one. Therefore, the ejection command signal is accurately formed for the number of ordinary winning balls according to the number of winning balls.

【0027】しかるに、特定入賞球の検出信号は遊技盤
制御装置400に連続して入ってくるので、この実施例
では特定入賞球の検出数を記憶する特定入賞数記憶手段
413を設けている。そして、この特定入賞数記憶手段
413は、その読出し信号が排出制御装置600からの
応答信号Hを制御信号とするANDゲート421を介し
てフィードバックされることによって、入賞球一つに対
する排出が終了するごとにその記憶が一つ減算されるよ
うに構成されている。遊技制御手段430は、上記入賞
球検出手段411と同様な特定入賞球検出手段431と
、遊技盤に設けられているソレノイドやモータ等を駆動
させる制御信号や大当り信号Pを出力する信号形成手段
432等を備えている。
However, since the detection signals of specific winning balls are continuously input to the game board control device 400, this embodiment is provided with a specific winning number storage means 413 for storing the detected number of specific winning balls. Then, this specific winning number storage means 413 finishes discharging one winning ball by feeding back the read signal through an AND gate 421 which uses the response signal H from the discharging control device 600 as a control signal. The memory is decremented by one each time. The game control means 430 includes a specific winning ball detecting means 431 similar to the above winning ball detecting means 411, and a signal forming means 432 that outputs a jackpot signal P and a control signal for driving a solenoid, a motor, etc. provided on the game board. etc.

【0028】図6には音声出力手段450の構成例を示
す。音声出力手段450には、遊技制御手段430から
のソレノイドの駆動に伴う効果音のような遊技音の発生
を要求する遊技音要求信号xと、排出制御装置600か
らの賞球排出音要求信号Dおよび貸し玉排出音要求信号
Eと、玉貸し制御装置900からのカード挿入音要求信
号Fおよびカード排出音要求信号Gとが入力されている
FIG. 6 shows an example of the configuration of the audio output means 450. The audio output means 450 receives a game sound request signal x from the game control means 430 requesting generation of a game sound such as a sound effect accompanying the drive of a solenoid, and a prize ball ejection sound request signal D from the ejection control device 600. A ball rental sound request signal E, a card insertion sound request signal F and a card ejection sound request signal G from the ball rental control device 900 are input.

【0029】音声出力手段450内には、上記5種類の
要求信号に各々対応する音声の発生コードを記憶するR
OM(リードオンリメモリ)等からなる音声発生手段4
51,452,453,454,455と、これら音声
発生手段から出力された信号に基づいてスピーカ190
を駆動する信号を発生するサウンドジェネレータ457
と、上記要求信号のうちいずれを優先して対応する音声
を発生させるか決定する優先制御手段458とを備え、
同時に複数の要求信号が入ってきたときは最も優先度の
高い音声発生手段を選択して音声コードを出力させるよ
うに構成されている。
In the audio output means 450, R is stored which generates audio codes corresponding to each of the above five types of request signals.
Sound generation means 4 consisting of OM (read only memory) etc.
51, 452, 453, 454, 455, and the speaker 190 based on the signals output from these sound generating means.
a sound generator 457 that generates a signal to drive the
and a priority control means 458 for determining which of the request signals should be given priority to generate the corresponding sound,
When a plurality of request signals are received at the same time, the voice generating means with the highest priority is selected to output the voice code.

【0030】図7には排出制御装置600の構成例を示
す。この実施例の排出制御装置600は、マイクロコン
ピュータ等からなる制御部610と、枠センサ103や
オーバーフロー検出器104、待機球検出器160から
の信号に基づいて球排出装置170による排出が可能な
状態にあるか否か示す排出イネーブル信号を形成して制
御部610に供給する排出可能条件確認手段620と、
管理装置700に対して賞球排出や玉貸し、補給等の排
出状態を示すステータス信号を出力する状態出力手段6
30と、アウトセンサ107からの信号を計数して10
球毎にアウト信号を管理装置700に対して供給するカ
ウンタ640と、セグメント型の貸し玉排出表示ランプ
113や賞球排出表示ランプ112を駆動する表示駆動
手段650等により構成されている。
FIG. 7 shows an example of the configuration of the emission control device 600. The discharge control device 600 of this embodiment is in a state where the ball discharge device 170 can discharge the ball based on signals from the control unit 610 including a microcomputer, the frame sensor 103, the overflow detector 104, and the standby ball detector 160. ejection enable condition confirmation means 620 that forms an ejection enable signal indicating whether or not the ejection enable condition exists and supplies the ejection enable signal to the control unit 610;
Status output means 6 for outputting a status signal indicating the discharge status such as prize ball discharge, ball lending, replenishment, etc. to the management device 700
30, and the signal from the out sensor 107 is counted to 10.
It is composed of a counter 640 that supplies an out signal to the management device 700 for each ball, and a display driving means 650 that drives the segment-type rental ball discharge display lamp 113 and prize ball discharge display lamp 112.

【0031】また、排出制御装置600は、各種センサ
や遊技盤制御装置400、玉貸し制御装置500からの
制御信号を受ける入力バッファBFFiや制御部610
からの制御信号を外部の制御装置へ出力する出力バッフ
ァBFFoおよび各種ソレノイドに対する駆動信号を形
成するドライバDRVを備えている。上記排出可能条件
確認手段620は各検出器103,104,160から
の検出信号の論理積をとるANDゲートG2を備え、す
べての検出器がオン状態にあるときにのみ排出可能を示
す排出イネーブル信号Aを制御部610へ与える。これ
によって、パチンコ遊技機の前面枠101が開いていた
り、オーバーフロー樋156内が賞品球で一杯になって
いたり、誘導樋152内に予備球が存在しないような、
排出を行なうのが望ましくない状況での排出動作が保留
されるようになる。
The discharge control device 600 also includes an input buffer BFFi and a control section 610 that receive control signals from various sensors, the game board control device 400, and the ball lending control device 500.
The output buffer BFFo outputs control signals from the controller to an external control device, and a driver DRV generates drive signals for various solenoids. The ejection enable condition confirmation means 620 includes an AND gate G2 that takes the logical product of the detection signals from the respective detectors 103, 104, and 160, and generates an ejection enable signal indicating that ejection is possible only when all the detectors are in the on state. A is given to the control unit 610. As a result, when the front frame 101 of the pachinko game machine is open, the overflow gutter 156 is full of prize balls, or there are no spare balls in the guide gutter 152,
Ejection operation is suspended in situations where it is undesirable to perform ejection.

【0032】また、上記制御部610は、図8に示すよ
うに賞球排出制御部616と、貸し玉排出制御部617
と、玉抜き排出制御部618と停電制御部619とによ
り構成される。このうち、賞球排出制御部616は、遊
技盤制御装置400からの賞球データBとその取込みタ
イミングを示すデータストローブ信号Cを受けて賞品球
数を記憶し、排出センサ730からの検出信号に基づい
て実際の排出数を演算する賞球排出数記憶演算部661
と、演算された排出数に基づいて残りの排出数を判定し
排出ソレノイド741a,741bの駆動信号を形成す
る排出制御信号形成部662とより構成されている。
The control section 610 also includes a prize ball discharge control section 616 and a rental ball discharge control section 617 as shown in FIG.
, a ball removal control section 618 and a power outage control section 619. Of these, the prize ball ejection control section 616 receives the prize ball data B from the game board control device 400 and the data strobe signal C indicating the timing of taking in the prize ball data, stores the number of prize balls, and uses the detection signal from the ejection sensor 730 to store the number of prize balls. Prize ball discharge number storage calculation unit 661 that calculates the actual discharge number based on
and a discharge control signal forming section 662 that determines the remaining number of discharges based on the calculated number of discharges and forms a drive signal for the discharge solenoids 741a and 741b.

【0033】排出制御信号形成部662は上記排出ソレ
ノイド741a,741bの駆動信号のほかに、賞球排
出終了信号Mと排出数が10個になったことを示す賞球
排出数信号Nと賞球排出中であることを示す状態信号R
を形成し、出力する。貸し玉排出制御部617は、貸し
玉への変換レートや一度に連続して貸し玉へ変換できる
金額の上限を記憶するデータ記憶部671と、玉貸し制
御装置500からの玉貸し要求信号Tに基づいて貸し玉
の排出を開始させ排出センサ730a,730bからの
検出信号に基づいて実際の排出数を演算する貸し玉排出
数記憶演算部672と、演算された排出数に基づいて残
りの排出数を判定し排出ソレノイド741の駆動信号を
形成する排出制御信号形成部673と、排出制御信号形
成部673からの排出数を示す信号とデータ記憶部67
1からの上限値とに基づいて貸し玉が上限に達したか判
定し、上限に達した場合にそれ以上の排出を禁止させる
貸し玉上限判定部674とにより構成されている。デー
タ記憶部671に記憶された変換レートは玉貸し要求信
号Tがハイレベルにされると貸し玉排出数記憶演算部6
72に供給され、これによって貸し玉の排出信号の形成
が開始されるようになっている。
In addition to the drive signals for the ejection solenoids 741a and 741b, the ejection control signal forming section 662 also generates a prize ball ejection end signal M, a prize ball ejection number signal N indicating that the number of ejected balls has reached 10, and a prize ball ejection number signal N indicating that the number of ejected balls has reached 10. Status signal R indicating that it is being discharged
form and output. The rental ball discharge control unit 617 is connected to a data storage unit 671 that stores the conversion rate to rental balls and the upper limit of the amount that can be continuously converted to rental balls at one time, and a ball rental request signal T from the ball rental control device 500. a rental ball discharge number storage/calculation unit 672 that starts discharging the rental balls based on the calculated number of discharged balls and calculates the actual number of discharged balls based on the detection signals from the discharge sensors 730a and 730b, and a remaining number of discharged balls based on the calculated number of discharged balls. a discharge control signal forming unit 673 that determines the number of discharges and forms a drive signal for the discharge solenoid 741; and a signal indicating the number of discharges from the discharge control signal forming unit 673 and a data storage unit 67.
The ball rental upper limit determining unit 674 determines whether the rental balls have reached the upper limit based on the upper limit value from 1 and prohibits further discharge when the upper limit is reached. The conversion rate stored in the data storage unit 671 is changed to the rental ball discharge number storage calculation unit 6 when the ball rental request signal T is set to a high level.
72, thereby starting the formation of a rental ball ejection signal.

【0034】排出制御信号形成部673は、賞球排出制
御部616が賞球排出制御中でないことを条件に貸し玉
排出可能を示す玉貸しレディ信号Uと貸し玉排出中を示
す信号Qおよび貸し玉排出終了を示す信号Oを形成し出
力する。玉抜き排出制御部618は、賞球排出制御部6
16および貸し玉排出制御部617が排出制御中でない
ことを条件に玉抜きセンサ75からのオン信号によって
起動され、排出ソレノイド741および流路切換弁15
8のソレノイドを駆動する信号と玉抜き排出中であるこ
とを示す信号pを出力する機能を備えている。
The discharge control signal forming unit 673 generates a ball rental ready signal U indicating that rental balls can be discharged, a signal Q indicating that rental balls are being discharged, and a signal Q indicating that the rental balls are being discharged, provided that the prize ball discharge control unit 616 is not in the process of controlling the prize ball discharge. A signal O indicating the end of ball ejection is generated and output. The ball ejection control section 618 is the prize ball ejection control section 6
16 and rental ball discharge control section 617 are activated by an on signal from ball removal sensor 75 on the condition that discharge control is not in progress, and discharge solenoid 741 and flow path switching valve 15
It has a function of outputting a signal to drive the solenoid No. 8 and a signal p indicating that the ball is being discharged.

【0035】停電制御部619は、図9に示すように、
交流電源の電源波形の波の数を数えて所定数以下になっ
たときに停電の発生を検出する停電検出手段691と、
電圧レベル検出手段等からの信号に基づいて電源電圧の
回復を検出する停電回復検出手段695と、賞球排出制
御部616および貸し玉排出制御部617からの状態信
号R,Qに基づいて進行中の排出の態様を記憶する排出
態様記憶手段692と、排出数信号a,bにより各排出
動作中における排出球数を保持する排出球数記憶手段6
93と、停電により中断された排出を停電回復時に途中
から続行させる排出続行制御手段694とから構成され
ている。
As shown in FIG. 9, the power outage control unit 619
a power outage detection means 691 that counts the number of waves in the power waveform of the AC power source and detects the occurrence of a power outage when the number falls below a predetermined number;
Progress is being made based on the power failure recovery detection means 695 that detects the recovery of the power supply voltage based on signals from the voltage level detection means etc., and the status signals R and Q from the prize ball discharge control section 616 and the rental ball discharge control section 617. ejecting mode storage means 692 for storing the ejection mode of the ejecting method, and ejected ball number storage means 6 for holding the number of ejected balls during each ejecting operation based on ejection number signals a and b.
93, and a discharge continuation control means 694 that continues discharge interrupted due to a power outage from the middle when the power is restored.

【0036】上記排出態様記憶手段692および排出球
数記憶手段693は、例えば電池696によりバックア
ップされたRAM(ランダムアクセスメモリ)で構成さ
れており、停電判定手段691が停電の発生を検出する
とその時の排出態様と排出数を排出態様記憶手段692
および排出球数記憶手段693に保持させ、停電が回復
したときには排出続行制御手段694を起動させて賞球
排出制御部616または貸し玉排出制御部617のいず
れによる排出が中断されていたかを判定させ、その結果
に応じて排出球数記憶手段693に保持されていた球数
を賞球排出制御部616または貸し玉排出制御部617
に転送させて、停電発生時に中断された排出を続行させ
て残りの球数を排出させるようになっている。
The discharge mode storage means 692 and the discharged ball number storage means 693 are constituted by, for example, a RAM (random access memory) backed up by a battery 696, and when the power failure determination means 691 detects the occurrence of a power failure, the current The discharge mode and the number of discharges are stored in the discharge mode storage means 692.
and stored in the ejected ball number storage means 693, and when the power outage is restored, the ejection continuation control means 694 is activated to determine which of the prize ball ejection control section 616 or the rental ball ejection control section 617 has interrupted ejection. In accordance with the result, the number of balls held in the number of ejected balls storage means 693 is stored in the prize ball ejection control section 616 or the rental ball ejection control section 617.
The system is designed to continue discharging the balls that was interrupted when a power outage occurs and eject the remaining number of balls.

【0037】図10は玉貸し制御装置500の構成例を
示す。この実施例の玉貸し制御装置500は、シングル
チップマイコン等からなる制御部510と、この制御部
510とカードリーダ制御装置250との間のデータ送
受信のインターフェースを行なうトランシーバ502と
、セグメント型表示器からなる残高表示器の駆動信号を
形成する表示駆動手段503と、玉貸可能表示ランプ1
26および玉貸有効表示ランプ230を駆動するドライ
ブ回路DRV1,DRV2と、一連の処理で何円分の貸
し玉を排出すべきか設定可能な玉貸数設定スイッチ52
1a,521b,521c,521dの入力信号からノ
イズを除去して上記制御部501に入力するフィルタ5
04と、カード管理装置800に対してカード決済信号
jを供給するリレー505等によって構成されている。
FIG. 10 shows an example of the configuration of the ball lending control device 500. The ball lending control device 500 of this embodiment includes a control section 510 composed of a single-chip microcomputer or the like, a transceiver 502 that performs an interface for data transmission and reception between the control section 510 and a card reader control device 250, and a segment type display. a display drive means 503 for forming a drive signal for a balance display, and a ball loan available display lamp 1;
26 and the drive circuits DRV1, DRV2 that drive the ball rental valid display lamp 230, and a ball rental number setting switch 52 that can set how many yen worth of rental balls should be discharged in a series of processes.
A filter 5 that removes noise from input signals 1a, 521b, 521c, and 521d and inputs them to the control section 501.
04, a relay 505 that supplies a card payment signal j to the card management device 800, and the like.

【0038】また、上記制御部510は、カードリーダ
制御装置250からのデータを読み込んだり、カードリ
ーダ制御装置250に対する書込データや制御信号、残
高表示器122に対する表示データを形成するカード制
御手段511と、上記排出制御装置600に対する玉貸
し要求信号Tを発生する玉貸要求制御手段512と、玉
貸数設定スイッチ521a,521b,521c,52
1dのいずれのスイッチがオンされているか識別し、玉
貸要求制御手段512に対して設定された玉貸し排出の
回数を示す信号tを供給する玉貸回数制御手段513と
から構成されている。
The control section 510 also includes a card control means 511 that reads data from the card reader control device 250 and forms write data and control signals for the card reader control device 250 and display data for the balance display 122. , a ball lending request control means 512 that generates a ball lending request signal T to the discharge control device 600, and ball lending number setting switches 521a, 521b, 521c, 52.
1d is turned on, and a ball lending number control means 513 that supplies a signal t indicating the set number of ball lending and discharging times to the ball lending request control means 512.

【0039】玉貸要求制御手段512は、上記信号tお
よび排出制御装置600からの玉貸し排出可能を示す玉
貸イネーブル信号Uに基いて排出制御装置600に対す
る玉貸し要求信号Tをアサートするとともに、排出制御
装置600からの払出完了信号Vを受けて玉貸し要求信
号Tをネゲートする。具体的には上記設定玉貸数とカー
ドから読み取った残高データ(度数)とを比較するとと
もに、払出完了信号Vを計数して玉貸排出回数が、設定
玉貸数または残高データ(度数)のうち少ない方の数に
達した時点で玉貸し要求信号Tをネゲートするようにな
っている。玉貸し可能表示ランプ126を駆動するドラ
イブ回路DRV1は、上記玉貸し要求信号Tを受けてこ
れがネゲートされている間だけ玉貸し可能表示ランプ1
26を点灯させ、玉貸し要求信号Tがアサートされてい
る間は消灯させるようになっている。
The ball lending request control means 512 asserts a ball lending request signal T to the discharge control device 600 based on the signal t and the ball lending enable signal U from the discharge control device 600 indicating that ball lending is possible. Upon receiving the payout completion signal V from the discharge control device 600, the ball lending request signal T is negated. Specifically, the set ball rental number is compared with the balance data (frequency) read from the card, and the payout completion signal V is counted to determine whether the ball rental number is equal to the set ball rental number or balance data (frequency). When the smaller number is reached, the ball lending request signal T is negated. The drive circuit DRV1 that drives the ball lending available indicator lamp 126 receives the ball lending request signal T and operates the ball lending available indicator lamp 1 only while this is negated.
26 is turned on and turned off while the ball lending request signal T is asserted.

【0040】図11には、上記玉貸し制御装置500の
カード制御手段511の具体的構成例を示す。すなわち
、このカード制御手段511は、カードリーダ制御装置
250から送られてくる読込みデータよりカードの残高
を抽出するカード残高読込み手段541と、読み込まれ
た残高データを記憶する残高記憶手段542と、排出制
御装置600からの貸し玉払出完了信号Vに基いて上記
残高記憶手段542の記憶内容を減算させる金額減算手
段544と、残高記憶手段542の金額が所定数になる
ごとにカードリーダ内のパンチ装置に対して穴開け指令
を与えるパンチ穴加工制御手段545と、上記残高記憶
手段542の金額がゼロになったか否か判定するカード
残高判定手段546と、この判定手段546からの金額
ゼロ信号uに基いてカードリーダの挿排出モータに対す
るカード排出指令信号nや玉貸可能表示器126の制御
信号を形成するカード挿排出制御手段547と、貸し玉
払出完了信号Vに基いてプリペードカードが1度(10
0円等)分使用されたことを、全カードの金額を管理す
るカード管理装置800に知らせる決済信号jを形成す
る決済情報形成手段548とを備えている。この決済信
号jは伝送ラインを介してカード管理会社のコンピュー
タに伝送させるようにすることができる。
FIG. 11 shows a specific example of the structure of the card control means 511 of the ball lending control device 500. That is, this card control means 511 includes a card balance reading means 541 that extracts the balance of the card from the read data sent from the card reader control device 250, a balance storage means 542 that stores the read balance data, and a balance storage means 542 that stores the read balance data. an amount subtraction means 544 that subtracts the stored contents of the balance storage means 542 based on the loaned ball payout completion signal V from the control device 600; and a punch device in the card reader each time the amount of money stored in the balance storage means 542 reaches a predetermined number. a punch hole processing control means 545 for giving a punching command to the card; a card balance determination means 546 for determining whether the amount in the balance storage means 542 has become zero; Based on this, the card insertion/ejection control means 547 forms a card ejection command signal n to the insertion/ejection motor of the card reader and a control signal for the ball rental available display 126, and the prepaid card is inserted once (( 10
A payment information forming means 548 is provided for forming a payment signal j that notifies the card management device 800, which manages the amounts of all cards, that the amount (e.g., 0 yen) has been used. This payment signal j can be transmitted to the card management company's computer via a transmission line.

【0041】上記カード残高読込み手段541と、読み
込まれた残高データを記憶する残高記憶手段542と、
排出制御装置600からの貸し玉払出完了信号Vに基い
て上記残高記憶手段542の記憶内容を減算させる金額
減算手段544とによって、残高データ制御手段549
が構成されている。そして、上記残高記憶手段542の
内容は貸し玉払出完了ごとに更新され、その残高記憶手
段542の内容はパチンコ遊技機100に設けられた残
高表示器122に表示される。
The card balance reading means 541, the balance storage means 542 for storing the read balance data,
The balance data control means 549 is controlled by the amount subtraction means 544 which subtracts the stored contents of the balance storage means 542 based on the ball payout completion signal V from the discharge control device 600.
is configured. The contents of the balance storage means 542 are updated every time the payout of the rented balls is completed, and the contents of the balance storage means 542 are displayed on the balance display 122 provided in the pachinko gaming machine 100.

【0042】次に、上述した排出制御装置600によっ
て行なわれる貸し玉および賞品球の排出制御の手順を図
12乃至図50を参照して詳細に説明する。賞品球の排
出制御は、上記排出制御装置600の電源の投入と同時
に開始され電源が投入されている限り繰返しその処理が
行なわれる所謂バックグラウンド制御処理(図12)と
、上記電源が投入されたあとタイマ割込みにより所定時
間(例えば0.5msec)毎に、上記バックグランド
制御処理中に当該バックグランド制御処理を中断してそ
の処理が実行される割込処理(図13)の2つの制御処
理に大別されるものであり、これら2つの制御処理はC
PUからなる制御部610により実行される。
Next, the procedure for controlling the discharge of rental balls and prize balls performed by the above-described discharge control device 600 will be explained in detail with reference to FIGS. 12 to 50. The ejection control of the prize balls includes a so-called background control process (FIG. 12) in which the ejection control device 600 is started at the same time as the power is turned on and the process is repeated as long as the power is turned on (FIG. 12). There are also two control processes: an interrupt process (Figure 13) in which the background control process is interrupted and executed every predetermined time (for example, 0.5 msec) by a timer interrupt. These two control processes are classified into C
This is executed by a control unit 610 consisting of a PU.

【0043】先ず、賞品球の排出制御のバックグランド
制御処理のメインルーチンについて図12を参照して説
明する。このメインルーチンは、前述したように排出制
御装置600の電源の投上後繰返し行なわれる。電源が
立上がると、先ず、ステップS1で「停電フラグ」が「
1」であるか否かが判定される。この「停電フラグ」は
後述の処理(図26)で停電が検出されたときに「1」
にされるものである。
First, the main routine of the background control process for controlling the ejection of prize balls will be explained with reference to FIG. This main routine is repeated after the emission control device 600 is powered on, as described above. When the power is turned on, first, in step S1, the "power outage flag" is set to "
1" is determined. This "power outage flag" is set to "1" when a power outage is detected in the process described later (Figure 26).
It is something that is done.

【0044】このステップS1の判定結果が“No”の
ときにはステップ2に進み、“Yes”のときにはステ
ップ13に進んでRAM内の参照エリアに用意された「
処理ナンバー」を“5”に設定してからステップS3へ
進む。後で停電回復処理(ステップS15)を行なわせ
るためである。ステップS2では、RAMのクリアやフ
ラグの設定、出力バッファのリセット等の初期設定を行
なう。続くステップS3では、後述の排出装置不正監視
処理(図27)を行なって不正排出が行なわれていない
ことを確認してから、ステップS4に進み、上記処理中
で設定される排出不正フラグが「1」であるか否か判定
し、フラグが「1」のときはステップS13の不正解除
処理を行ない、フラグが「0」のときはステップS5へ
進む。ステップS5〜S9では上記処理ナンバー(処理
NO)を参照して、ナンバーがそれぞれ“5”または“
4”、“3”、“2”、“1”であるか否かが判定され
る。
When the determination result in step S1 is "No", the process advances to step 2, and when it is "Yes", the process advances to step 13, where the "" prepared in the reference area in the RAM is
After setting the "processing number" to "5", the process advances to step S3. This is to allow power failure recovery processing (step S15) to be performed later. In step S2, initial settings such as clearing the RAM, setting flags, and resetting the output buffer are performed. In the subsequent step S3, a discharge device fraud monitoring process (FIG. 27), which will be described later, is performed to confirm that no unauthorized discharge has occurred, and then the process proceeds to step S4, where the discharge fraud flag set during the above process is set to "1", and if the flag is "1", the unauthorized release process of step S13 is performed, and if the flag is "0", the process proceeds to step S5. In steps S5 to S9, the above processing number (processing NO) is referred to and the number is "5" or "," respectively.
4", "3", "2", or "1" is determined.

【0045】この処理ナンバーは、その値が“5”のと
きに後述の停電回復処理(図50)を開始させ、その値
が“4”のときに後述の玉抜処理(図40〜42)を開
始させ、その値が“3”のときに後述の玉貸し排出処理
(図39)を開始させ、その値が“2”のときに後述の
賞球排出処理(図32)を開始させ、その値が“1”の
ときに後述の賞球開始処理(図29)を開始させるもの
である。そして、この処理ナンバーは各々対応する処理
が実行されたとき、その処理フローの中で他のナンバー
に変更もしくは“0”にリセットされるようになってい
る。
[0045] When this processing number is "5", it starts the power failure recovery processing (Fig. 50), which will be described later, and when its value is "4", it starts the ball removal processing (Figs. 40 to 42), which will be described later. When the value is "3", the ball lending process (FIG. 39) to be described later is started, and when the value is "2", the prize ball discharging process (FIG. 32) to be described later is started. When the value is "1", a prize ball start process (FIG. 29), which will be described later, is started. When each corresponding process is executed, this process number is changed to another number or reset to "0" in the process flow.

【0046】一方、処理ナンバーが“0”のときはステ
ップS10へ進み、玉抜フラグが「1」であるか否か判
定し、フラグが「1」のときはステップS20で上記処
理ナンバーを“4”に設定する。再度メインルーチンが
実行されるときにステップS16の玉抜処理へ移行させ
るためである。またステップS10で、玉抜フラグが「
0」と判定したときはステップS11へ進む。ステップ
S11では、玉貸し制御装置500から玉貸し要求信号
Vが入っているか否か調べ、信号が入っていれば玉貸し
開始処理(図38)を実行し、玉貸し要求信号がなけれ
ばステップS12へ進む。ステップS12では、遊技盤
制御装置400から賞球排出要求(賞球データのストロ
ーブ信号C)が入っているか否か調べ入っていればステ
ップS22で処理ナンバーを“1”に設定する。再度メ
インルーチンが実行されるときにステップS19の賞球
開始処理へ移行させるためである。また、ステップS1
2で排出要求がなければ補給処理(図43)および情報
出力処理(図44)を実行した後、上記ステップS3へ
戻る。
On the other hand, when the processing number is "0", the process advances to step S10, and it is determined whether the ball removal flag is "1", and when the flag is "1", the processing number is set to "1" in step S20. Set to 4”. This is to cause the process to proceed to the ball removal process in step S16 when the main routine is executed again. Also, in step S10, the ball removal flag is set to “
0'', the process advances to step S11. In step S11, it is checked whether or not there is a ball lending request signal V from the ball lending control device 500. If the signal is present, the ball lending start process (FIG. 38) is executed, and if there is no ball lending request signal, step S12 Proceed to. In step S12, it is checked whether a prize ball discharge request (strobe signal C of prize ball data) has been received from the game board control device 400, and if so, the processing number is set to "1" in step S22. This is to cause the process to proceed to the prize ball start process of step S19 when the main routine is executed again. Also, step S1
If there is no discharge request in step S2, the replenishment process (FIG. 43) and the information output process (FIG. 44) are executed, and then the process returns to step S3.

【0047】図13には、図12のメインルーチン(バ
ックグランド処理)に優先して排出制御装置600によ
って所定時間(例えば0.5msec)経過毎に行なわ
れるタイマ割込処理の手順が示されている。この割込処
理は各種入力信号の読込みのために行なわれるものであ
る。 この割込処理が開始されると、先ず、各種タイマのカウ
ント値の更新が行なわれ(ステップS40)、次いで玉
貸しリクエスト検出処理(ステップS41)、賞球デー
タ検出処理(ステップS42)、枠センサの入力処理(
ステップS43)、排出センサ1の入力処理(ステップ
S44)、排出センサ2の入力処理(ステップS46)
、排出センサ1レベル入力処理(ステップS48)、排
出センサ2レベル入力処理(ステップS50)、球抜セ
ンサの入力処理(ステップS52)、補給センサの入力
処理(ステップS54)、オーバーフロー検出器入力処
理(ステップS56)、待機球検出器の入力処理(ステ
ップS58)およびアウトセンサ入力処理(ステップS
60)が順次行なわれる。
FIG. 13 shows the procedure of timer interrupt processing, which is carried out by the emission control device 600 every predetermined period of time (for example, 0.5 msec) in priority to the main routine (background processing) of FIG. 12. There is. This interrupt processing is performed to read various input signals. When this interrupt processing is started, first, the count values of various timers are updated (step S40), then ball lending request detection processing (step S41), prize ball data detection processing (step S42), frame sensor input processing (
Step S43), Input processing for the discharge sensor 1 (Step S44), Input processing for the discharge sensor 2 (Step S46)
, discharge sensor 1 level input process (step S48), discharge sensor 2 level input process (step S50), bulb removal sensor input process (step S52), replenishment sensor input process (step S54), overflow detector input process ( Step S56), waiting ball detector input processing (Step S58) and out sensor input processing (Step S
60) are performed sequentially.

【0048】図14は、上記ステップS41にて行なわ
れる玉貸しリクエスト検出処理ルーチンのフローチャー
トである。この処理ルーチンでは、まずRAM内に用意
され図39の玉貸し排出処理ルーチン中で更新される連
続玉貸しカウンタの値が「5」であるか否か判定し(ス
テップS4102)、“No”であればステップS41
04へ進んで賞球排出中か否か調べ、賞球排出中なら玉
貸し要求フラグをリセットして処理を終了する(ステッ
プS4118)。また、賞球排出中でなければ次のステ
ップS4106で玉貸し排出中か否か判定し、玉貸し排
出中なら何もせずに処理を終了する。本実施例では、貸
し玉への1回の変換が200円とか300円等の単位に
設定されていたとしても排出ソレノイドに対しては10
0円単位で排出指令を出すようにしていることを考慮し
たためである。
FIG. 14 is a flowchart of the ball lending request detection processing routine carried out in step S41. In this processing routine, it is first determined whether the value of the continuous ball lending counter prepared in the RAM and updated in the ball lending discharge processing routine of FIG. 39 is "5" (step S4102), and if "No" is determined. If so, step S41
The process advances to S4118 to check whether or not the prize balls are being ejected, and if the prize balls are being ejected, the ball lending request flag is reset and the process ends (step S4118). Moreover, if the prize ball is not being discharged, it is determined in the next step S4106 whether or not the ball rental is being discharged, and if the ball rental is being discharged, the process is ended without doing anything. In this embodiment, even if one conversion to rental balls is set to units such as 200 yen or 300 yen, the ejection solenoid is converted to 100 yen.
This is in consideration of the fact that emission orders are issued in units of 0 yen.

【0049】上記ステップS4106で玉貸し排出中で
ないと判定すると、ステップS4108へ進み、玉貸し
要求信号Tがロウレベルにされているか判定し、“Ye
s”なら信号が連続して5m秒ロウレベルになっている
か調べる(ステップS4120)。連続して5m秒ロウ
レベルになっているのを確認して玉貸し要求信号がアサ
ートされた判断することによってノイズによる誤動作を
防止するためである。そして、ステップS4120の判
定で“No”なら何もせずに、また“Yes”なら玉貸
し要求フラグをセットして処理を終了する(ステップS
4122)。これによって、図12のメインルーチン中
のステップS11で“Yes”と判定されて、玉貸し開
始処理S21が開始される。さらに、ステップS410
8で“No”すなわち玉貸し要求信号Tがハイレベルで
あると判定したときは、ステップS4110へ進んで、
玉貸し要求信号Tが連続して5m秒間ハイレベル(Hレ
ベル)か否か判定する。そして、連続して5m秒間ハイ
レベルであった場合には玉貸し要求がなくなったと判断
して、連続玉貸しカウンタをクリアして玉貸し要求フラ
グをリセット、玉貸し可能を示すP台レディフラグを「
0」にクリアして処理を終了する(ステップS4124
,S4126,S4128)。
If it is determined in the above step S4106 that the ball lending is not being discharged, the process advances to step S4108, where it is determined whether the ball lending request signal T is set to low level, and "Ye" is determined.
If the signal is "low level" for 5 msec consecutively (step S4120), it is determined that the ball lending request signal has been asserted by confirming that the signal has been low level for 5 msec consecutively. This is to prevent malfunctions.If the determination in step S4120 is "No", nothing is done, and if the determination is "Yes", the ball lending request flag is set and the process ends (step S4120).
4122). As a result, "Yes" is determined in step S11 in the main routine of FIG. 12, and ball lending start processing S21 is started. Furthermore, step S410
If it is determined in step S4110 that the ball lending request signal T is at a high level, the process advances to step S4110.
It is determined whether the ball lending request signal T is at a high level (H level) for 5 m seconds continuously. If it remains at a high level for 5 m seconds continuously, it is determined that there is no longer a ball lending request, clears the continuous ball lending counter, resets the ball lending request flag, and sets the P stand ready flag indicating that ball lending is possible. "
0” and terminates the process (step S4124
, S4126, S4128).

【0050】一方、ステップS4102の判定で“Ye
s”であればステップS4112へ進んで玉貸し制御装
置500からの玉貸し要求信号Tがハイレベルか否か判
定する。ここで、玉貸し要求信号Tがロウレベル(Lレ
ベル)であれば、何もせずにそのままこのルーチンを終
了し、玉貸し要求信号Tがハイレベルであれば、ステッ
プS4114へ進み、玉貸し要求信号Tが連続して5m
秒間ハイレベルか否か判定する。そして、玉貸し要求信
号Tが連続して5m秒間ハイレベルであれば、玉貸し要
求信号Tがネゲートされたと判定して連続玉貸しカウン
タをクリアして処理を終了する(ステップS4116)
。一度に500円分を越える変換を回避するためである
On the other hand, the determination in step S4102 is “Yes.
s", the process advances to step S4112, and it is determined whether the ball lending request signal T from the ball lending control device 500 is at a high level.Here, if the ball lending request signal T is at a low level (L level), If this routine is ended without any change and the ball lending request signal T is at a high level, the process proceeds to step S4114, and the ball lending request signal T is continuously output for 5 m.
Determine whether the level is high for a second. If the ball lending request signal T is at a high level for 5 m seconds continuously, it is determined that the ball lending request signal T has been negated, the continuous ball lending counter is cleared, and the process ends (step S4116).
. This is to avoid converting more than 500 yen at a time.

【0051】図15は、上記ステップS42にて行なわ
れる賞球データ検出処理ルーチンのフローチャートであ
る。この処理においては、まず玉貸し排出中か否か調べ
て(ステップS4202)、排出中でないときはステッ
プS4204へ進んで既に賞球排出処理に入っているか
否か判定して賞球排出中なら何もせずに処理を終了し、
賞球排出中でないときはステップS4206へ進んで遊
技盤制御装置400からのデータストローブ信号Cがロ
ウレベルにアサートされているか調べる。ここでデータ
ストローブ信号Cがロウレベルであると判定すると、ス
テップS4212へ移行して信号が連続して10m秒以
上ロウレベルにされているか判定し、“Yes”なら遊
技盤制御装置400からの賞球数データBを読み込んで
から、賞球要求フラグをセットして処理を終了する(ス
テップS4214,S4216)。これによって、図1
2のメインルーチン中のステップS12で“Yes”と
判定されて、処理ナンバーが“1”に設定され、しかる
後ステップS9で“Yes”と判定されて賞球開始処理
S19が開始される。
FIG. 15 is a flowchart of the prize ball data detection processing routine carried out in step S42. In this process, it is first checked whether or not balls are being ejected (step S4202), and if they are not being ejected, the process advances to step S4204 to determine whether or not the prize ball ejecting process has already begun. Finish the process without doing anything,
If the prize balls are not being ejected, the process advances to step S4206 to check whether the data strobe signal C from the game board control device 400 is asserted to a low level. If it is determined that the data strobe signal C is at a low level, the process moves to step S4212, where it is determined whether the signal has been at a low level for 10 msec or more continuously, and if "Yes", the number of prize balls from the game board control device 400 is determined. After reading the data B, the prize ball request flag is set and the process ends (steps S4214, S4216). By this, Figure 1
In step S12 of the main routine No. 2, the determination is "Yes", and the processing number is set to "1", and then, in step S9, the determination is "Yes", and the prize ball start process S19 is started.

【0052】一方、上記ステップS4202で玉貸し排
出中であると判定すると、ステップS4208へ移行し
て上記ステップS4214,S4216でセットした賞
球数データおよび賞球要求フラグをリセットして処理を
終了する(ステップS4210)。賞球排出処理よりも
玉貸し排出処理を優先させるためである。ただし、玉貸
し排出処理が優先されるのは賞球数データおよび賞球要
求フラグがセットされただけの場合であり、一旦賞球排
出動作が開始された段階での賞球排出処理のリセットは
なされないように図14の玉貸リクエスト検出処理の中
で対処されている(ステップS4104,S4118参
照)。
On the other hand, if it is determined in step S4202 that the ball is being rented out, the process moves to step S4208, resets the prize ball number data and the prize ball request flag set in steps S4214 and S4216, and ends the process. (Step S4210). This is to give priority to ball lending processing over prize ball discharging processing. However, the ball lending process is prioritized only when the prize ball count data and the prize ball request flag are set, and once the prize ball ejecting operation has started, the prize ball ejecting process cannot be reset. To prevent this from happening, measures are taken in the ball lending request detection process in FIG. 14 (see steps S4104 and S4118).

【0053】図16は、上記ステップS43にて行なわ
れる枠センサ入力処理ルーチンのフローチャートである
。この枠センサ入力処理は、パチンコ遊技機に設けられ
た枠センサ103の信号を取り込んで、情報出力処理S
24においてホールの管理装置700に対して出力する
信号を形成する遊技台情報出力処理フロー(図48)中
にて枠開放信号を形成する過程で用いられる枠開放フラ
グおよび枠閉塞フラグを設定するための処理である。 このルーチンが開始されると、先ずステップS4300
で枠センサ103の出力信号がハイレベル(枠センサ出
力=“1”)であるか否かが判定される。
FIG. 16 is a flowchart of the frame sensor input processing routine performed in step S43. This frame sensor input processing takes in the signal of the frame sensor 103 provided in the pachinko game machine and performs the information output processing S.
In order to set the frame open flag and the frame blockage flag used in the process of forming the frame open signal in the game machine information output processing flow (FIG. 48) that forms the signal output to the hall management device 700 in step 24. This is the process. When this routine is started, first step S4300
It is determined whether the output signal of the frame sensor 103 is at a high level (frame sensor output=“1”).

【0054】今仮りにパチンコ遊技機の前面枠101が
閉じていたとする。すると、ステップS4300の判定
結果は“Yes”となり、ステップS4302へ進み枠
閉塞フラグが“1”か否か判定される。ここで、初期設
定では判定フラグがすべて“0”にセットされている(
図12のステップS2)ので、ステップS4302の判
定および次のステップS4304の判定(枠閉塞監視フ
ラグが“1”か否か)の結果は共に“No”となり、枠
閉塞監視フラグを“1”に設定し(ステップS4306
)、枠開放監視フラグを“0”に設定し(ステップS4
308)、更に枠閉塞タイマを所定値(100m秒)に
セットして(ステップS4310)、本ルーチンを終了
する。
Assume now that the front frame 101 of the pachinko game machine is closed. Then, the determination result in step S4300 becomes "Yes", and the process advances to step S4302, where it is determined whether or not the frame blockage flag is "1". Here, in the initial setting, all judgment flags are set to "0" (
12), the results of the determination in step S4302 and the next step S4304 (whether or not the frame blockage monitoring flag is "1") are both "No", and the frame blockage monitoring flag is set to "1". setting (step S4306
) and set the frame open monitoring flag to "0" (step S4
308), and further sets the frame closure timer to a predetermined value (100 msec) (step S4310), and ends this routine.

【0055】そして、次のループが開始されたときに引
き続き枠センサがオンであると、前記ステップS430
0の判定結果が“Yes”、続くステップS4302の
判定結果が“No”、S4304の判定結果が“Yes
”となってステップS4312が実行される。このステ
ップS4312では、前記ステップS4310で起動さ
せた枠閉塞タイマがタイムアップしたか否か判定され、
判定結果が“No”のときには、続くステップS431
4,S4316をスキップして本ルーチンを終了する。 一方、前記ステップS4312の判定結果が“Yes”
のときには、ステップS4314にて枠センサ閉塞フラ
グを“1”に設定すると共に、次のステップS4316
にて、枠センサ開放フラグをリセット(“0”に設定)
して本ルーチンを終了する。
[0055] If the frame sensor is still on when the next loop is started, step S430 is performed.
The determination result of step S4302 is “No,” and the determination result of step S4304 is “Yes.”
” and step S4312 is executed. In this step S4312, it is determined whether or not the frame closure timer started in step S4310 has timed up.
When the determination result is "No", the following step S431
4. Skip S4316 and end this routine. On the other hand, the determination result in step S4312 is “Yes”.
In this case, the frame sensor blockage flag is set to "1" in step S4314, and the frame sensor blockage flag is set to "1" in step S4316.
, reset the frame sensor open flag (set to “0”)
to end this routine.

【0056】一方、上記ステップS4300で“No”
すなわち枠センサ103がオフであると判定されると、
ステップS4318へ移行して、ステップS4302な
いしS4316と相補的なステップであるS4318な
いしS4332からなるルーチンを実行して、枠開放フ
ラグを“1”に、また枠閉塞フラグを“0”にそれぞれ
設定して本ルーチンを終了する。すなわち、まずステッ
プS4302(枠開放フラグが“1”か否か)および次
のステップS4304(枠開放監視フラグが“1”か否
か)の判定結果は共に“No”となり、ステップS43
22で枠開放監視フラグを“1”に設定してから、枠閉
塞監視フラグを“0”に設定し(ステップS4324)
、更に枠閉塞タイマを起動して(ステップS4326)
、本ルーチンを終了する。
On the other hand, “No” in step S4300 above.
That is, when it is determined that the frame sensor 103 is off,
Proceeding to step S4318, a routine consisting of steps S4318 to S4332, which are complementary steps to steps S4302 to S4316, is executed to set the frame open flag to "1" and the frame blockage flag to "0". to end this routine. That is, first, the determination results of step S4302 (whether or not the frame opening flag is "1") and the next step S4304 (whether or not the frame opening monitoring flag is "1") are both "No", and step S43
The frame open monitoring flag is set to "1" in step S4322, and the frame blockage monitoring flag is set to "0" (step S4324).
, further starts the frame blockage timer (step S4326).
, this routine ends.

【0057】そして、次のループが開始されたときに引
き続き枠センサがオフであると、前記ステップS430
0の判定結果が“No”、続くステップS4302の判
定結果が“No”、S4304の判定結果が“Yes”
となってステップS4328が実行される。このステッ
プS4328では、前記ステップS4326で起動させ
た枠閉塞タイマがタイムアップしたか否か判定され、判
定結果が“No”のときには、続くステップS4330
,S4332をスキップして本ルーチンを終了する。
[0057] When the next loop is started, if the frame sensor is still off, step S430 is executed.
The determination result of 0 is “No”, the determination result of the subsequent step S4302 is “No”, and the determination result of S4304 is “Yes”.
Then step S4328 is executed. In this step S4328, it is determined whether the frame closing timer started in the step S4326 has timed up, and if the determination result is "No", the subsequent step S4330
, skips S4332 and ends this routine.

【0058】一方、前記ステップS4328の判定結果
が“Yes”のときには、ステップS4330にて枠セ
ンサ開放フラグを“1”に設定すると共に、次のステッ
プS4332にて、枠センサ閉塞フラグをリセット(“
0”に設定)して本ルーチンを終了する。ただし、ステ
ップS4326で起動する枠開放タイマの設定時間は上
記枠閉塞タイマ(ステップS4310)よりもずっと長
い1000m秒のような時間が選択されている。図17
は、上記ステップS44にて行なわれる排出センサ1の
入力処理ルーチンのフローチャートである。
On the other hand, if the determination result in step S4328 is "Yes", the frame sensor open flag is set to "1" in step S4330, and the frame sensor closed flag is reset ("
0") and ends this routine. However, the setting time of the frame opening timer started in step S4326 is selected to be 1000 msec, which is much longer than the frame closing timer (step S4310). .Figure 17
is a flowchart of the input processing routine of the discharge sensor 1 performed in step S44.

【0059】このルーチンは排出センサ730aの状態
を検出するためのものであり、該センサは内側に賞品球
が存在しているときその出力信号がハイレベルとなり、
賞品球が流出して一時的に又は継続してセンサ内に存在
しなくなったときその出力信号がロウレベルとなるよう
に構成されている。従って本ルーチンではセンサ730
aの出力信号がロウレベルからハイレベルに立ち上がっ
たときに後述の排出センサ1立上フラグを“1”に設定
して賞品球が該センサ内に達したことを記憶するように
なっている。一方、該センサ730a(以下、排出セン
サ1と記す)の出力信号がハイレベルからロウレベルに
立下がったとき後述の排出センサ立下フラグを“1”に
設定して賞品球が該センサ内より脱したことを記憶する
ようになっている。
This routine is for detecting the state of the ejection sensor 730a, and when there is a prize ball inside the sensor, its output signal becomes high level.
The output signal is configured to be at a low level when the prize ball has flowed out and is no longer present in the sensor, either temporarily or continuously. Therefore, in this routine, the sensor 730
When the output signal of a rises from a low level to a high level, a discharge sensor 1 rising flag, which will be described later, is set to "1" to store that the prize ball has reached the sensor. On the other hand, when the output signal of the sensor 730a (hereinafter referred to as ejection sensor 1) falls from a high level to a low level, the ejection sensor falling flag, which will be described later, is set to "1" and the prize ball is released from within the sensor. I remember what I did.

【0060】本ルーチンが開始されると、先ずステップ
S4402にて該センサ1の出力信号がハイレベル(排
出センサ1出力=“1”)であるか否かが判定される。 今仮りに賞品球の排出が行われず1つの賞品球がセンサ
1内に留まっている状態を考える。このときステップS
4402の判定結果は“Yes”となってステップS4
404以降が実行される。ステップS4404では排出
1立上変化フラグが“1”であるか否かが、ステップS
4406では排出1立下変化フラグが“1”であるか否
かが、ステップS4408では排出1ロウレベルフラグ
が“1”であるか否かが、次いでステップS4410で
は排出1ハイレベルフラグが“1”であるか否かが夫々
判定される。ところでCPU610の初期化直後はすべ
てのフラグが“0”に設定されているため、ステップS
4404〜S4410の判定結果はすべて“No”とな
り、ステップS4412にて、今回ループで排出センサ
1の出力信号がハイレベルであったことを記憶すべく排
出1ハイレベルフラグを“1”に設定して本ルーチンを
終了する。
When this routine is started, first, in step S4402, it is determined whether the output signal of the sensor 1 is at a high level (emission sensor 1 output = "1"). Let us now consider a situation in which one prize ball remains within the sensor 1 without being ejected. At this time, step S
The determination result of 4402 is “Yes” and the process proceeds to step S4.
404 and subsequent steps are executed. In step S4404, whether or not the discharge 1 rise change flag is "1" is determined in step S4404.
In step S4406, it is determined whether the discharge 1 fall change flag is "1", in step S4408 it is determined whether the discharge 1 low level flag is "1", and then in step S4410, the discharge 1 high level flag is determined to be "1". It is determined whether or not each of them is true. By the way, immediately after the CPU 610 is initialized, all flags are set to "0", so step S
All the determination results from 4404 to S4410 are "No", and in step S4412, the discharge 1 high level flag is set to "1" to remember that the output signal of the discharge sensor 1 was high level in this loop. to end this routine.

【0061】以後のループでは、排出1ハイレベルフラ
グが“1”に設定されているので、排出センサ1の出力
信号がハイレベルの状態を保持する限りステップS44
02,S4404,S4406,S4408,S441
0が繰返し実行されることになる。その後、賞品球の排
出が開始され、それまでセンサ1内に留まっていた賞品
球が排出センサ1内より外側に移動してセンサ1内より
脱すると、排出センサ1の出力信号がロウレベルに立下
り、前記ステップS4402の判定結果が“No”とな
ってステップS4432以降が実行される。
In the subsequent loop, since the discharge 1 high level flag is set to "1", as long as the output signal of the discharge sensor 1 maintains the high level state, step S44 is executed.
02, S4404, S4406, S4408, S441
0 will be executed repeatedly. After that, the ejection of the prize ball starts, and when the prize ball that had been staying inside the sensor 1 moves outside from inside the ejection sensor 1 and escapes from inside the sensor 1, the output signal of the ejection sensor 1 falls to a low level. , the determination result in step S4402 becomes "No" and steps S4432 and subsequent steps are executed.

【0062】ステップS4432以降の処理が最初に行
なわれるときには、前記排出1ハイレベルフラグは“1
”、それ以外のフラグはすべて“0”であるため、該ス
テップS4432の判定(排出1立下変化フラグが“1
”であるか)、次のステップS4434の判定(排出1
立上変化フラグが“1”であるか)の結果が共に“No
”、続くステップS4436(排出1ハイレベルフラグ
が“1”であるか)の判定の結果が“Yes”となって
ステップS4438,S4440が実行される。 ステップS4438では、前回ループから今回ループに
かけて排出センサ1の出力信号がハイレベルからロウレ
ベルに変化した(立下がった)ことを記憶すべく、排出
1立下変化フラグを“1”に設定し、続くステップS4
440では、この時点まで“1”に設定されていた排出
1ハイレベルフラグをリセット(“0”に設定)し、本
ルーチンを終了する。
When the processing after step S4432 is performed for the first time, the discharge 1 high level flag is set to "1".
”, and all other flags are “0”, so the judgment in step S4432 (if the discharge 1 fall change flag is “1”)
”), the next step S4434 determines (discharge 1
Whether the rising change flag is “1”), both results are “No”.
", the result of the determination in step S4436 (whether the discharge 1 high level flag is "1") is "Yes", and steps S4438 and S4440 are executed. In step S4438, the discharge from the previous loop to the current loop is In order to memorize that the output signal of the sensor 1 changes from high level to low level (falls), the discharge 1 falling change flag is set to "1", followed by step S4.
At 440, the discharge 1 high level flag, which had been set to "1" up to this point, is reset (set to "0"), and this routine ends.

【0063】更に次のループで引き続き排出センサ1の
出力信号がロウレベルのときには、前回ループのステッ
プS4438で排出1立下変化フラグが“1”に設定さ
れているので、前記ステップS4432の判定結果が“
Yes”に転じる。そして、続くステップS4442〜
S4448で、賞品球が排出センサ1内より脱したこと
を記憶すべく排出センサ1立下フラグを“1”に設定(
ステップS4442)すると共に、その値が“1”のと
きセンサ1内に賞品球があることを示す排出センサ1立
上フラグ(初期化後初めて本ステップが実行されるとき
は“0”に設定されている)を“0”にリセットし(ス
テップS4444)、続いて前記排出1立下変化フラグ
を“0”にリセットする(ステップS4446)と共に
、今回ループでの排出センサ1の出力信号がロウレベル
であることを記憶すべく排出1ハイレベルフラグを“1
”に設定して(ステップS4448)本ルーチンを終了
する。
Furthermore, when the output signal of the discharge sensor 1 is still at the low level in the next loop, the discharge 1 fall change flag was set to "1" in step S4438 of the previous loop, so the determination result in step S4432 is “
"Yes".Then, the next step S4442~
In S4448, the ejection sensor 1 fall flag is set to "1" to remember that the prize ball has escaped from the ejection sensor 1 (
Step S4442), and when the value is "1", the discharge sensor 1 start-up flag indicates that there is a prize ball in sensor 1 (when this step is executed for the first time after initialization, it is set to "0"). ) is reset to "0" (step S4444), and then the discharge 1 fall change flag is reset to "0" (step S4446), and the output signal of discharge sensor 1 in this loop is at low level. Set the emission 1 high level flag to “1” to remember something.
” (step S4448) and ends this routine.

【0064】次回以降のループでも、排出センサ1の出
力信号がロウレベルであると、排出1立下変化フラグ、
排出1立上変化フラグ、排出1ハイレベルフラグは全て
“0”、排出1ロウレベルフラグが“1”となっている
ので、前記ステップS4402,S4432,S443
4,S4436及びステップS4450(排出1ロウレ
ベルフラグが“1”でいるか否かの判定)が繰返し実行
され(このとき該ステップS4450の判定結果は“Y
es”となる)、このとき排出センサ1立下フラグは“
1”、排出センサ1立上フラグは“0”に保持される。
In the next and subsequent loops, if the output signal of the discharge sensor 1 is at a low level, the discharge 1 fall change flag,
Since the discharge 1 rise change flag and the discharge 1 high level flag are all "0" and the discharge 1 low level flag is "1", steps S4402, S4432, and S443 are performed.
4, S4436 and step S4450 (determining whether the discharge 1 low level flag is "1") are repeatedly executed (at this time, the determination result of step S4450 is "Y").
es”), at this time, the discharge sensor 1 fall flag is “
1”, and the discharge sensor 1 startup flag is held at “0”.

【0065】一方、排出センサ1の出力信号がハイレベ
ルからロウレベルに立下がった直後のループにおいて、
当該出力信号が再びハイレベルに立上がってしまった場
合(前回ループでステップS4438が実行されて排出
1立下変化フラグが“1”となり、且つ今回ループでセ
ンサ出力がハイレベルに立上がった場合)には、ステッ
プS4402の判定結果が“Yes”に転じ、更にステ
ップS4404の判定結果が“No”、ステップS44
06の判定結果が“Yes”と云う具合に判定され、ス
テップS4428にて前回ループから今回ループにかけ
て出力信号が立上がったことを記憶すべく排出1立上変
化フラグを“1”に設定すると共に、ステップS443
0にて前回ループ時に“1”に設定した排出1立下変化
フラグを“0”にリセットして本ルーチンを終了する。
On the other hand, in the loop immediately after the output signal of the discharge sensor 1 falls from high level to low level,
If the output signal rises to a high level again (step S4438 was executed in the previous loop and the discharge 1 fall change flag became "1", and the sensor output rose to a high level in the current loop) ), the determination result of step S4402 changes to "Yes", and furthermore, the determination result of step S4404 changes to "No", and step S44
06 is determined as "Yes", and in step S4428, the discharge 1 rise change flag is set to "1" to remember that the output signal rose from the previous loop to the current loop. , step S443
0, the discharge 1 falling change flag, which was set to "1" in the previous loop, is reset to "0" and this routine ends.

【0066】この結果、排出センサ1の出力信号が立下
がった後ロウレベルの状態が所定時間以上(少なくとも
本割込処理が2回行なわれる間)検知されない限り、排
出1立下フラグを“1”に設定する(賞品球がセンサ1
内より脱したことを示す)処理は行なわれないようにな
っており、排出センサ1の出力信号にノイズが発生し瞬
間的に信号が立下がってた場合等に誤って排出1立下フ
ラグが“1”に設定されないようになっている。
As a result, the discharge 1 fall flag is set to "1" unless a low level state is detected for a predetermined period of time or longer (while this interrupt processing is performed at least twice) after the output signal of the discharge sensor 1 falls. (Prize ball is sensor 1
Processing (indicating that the discharge has occurred from the inside) is not performed, and if noise occurs in the output signal of discharge sensor 1 and the signal falls momentarily, the discharge 1 falling flag may be set by mistake. It is designed not to be set to “1”.

【0067】次に、先の賞品球がセンサ1内より脱した
後、次の賞品球がセンサ1内に達した場合を考える。こ
のとき、ステップS4402の判定(センサ1の出力信
号がロウレベルであるか否かの判定)は“Yes”とな
り、前記ステップS4404の判定(排出1立上変化フ
ラグが“1”)が行なわれ、この場合判定結果は“No
”となり、ステップS4406にて排出1立下変化フラ
グが“1”であるか否かの判定が行われる。このとき該
ステップS4406の判定結果も“No”(前記ステッ
プS4446にて“0”に設定される)となってステッ
プS4408に進み、排出1ロウレベルフラグが“1”
であるか否かの判定が行なわれる。
Next, consider the case where after the previous prize ball escapes from inside the sensor 1, the next prize ball reaches inside the sensor 1. At this time, the determination in step S4402 (determination as to whether the output signal of sensor 1 is at a low level) is "Yes", and the determination in step S4404 (the discharge 1 rise change flag is "1") is performed. In this case, the judgment result is “No.
”, and it is determined in step S4406 whether or not the discharge 1 fall change flag is “1”. At this time, the determination result in step S4406 is also “No” (it is set to “0” in step S4446). is set), the process advances to step S4408, and the discharge 1 low level flag is set to "1".
A determination is made as to whether or not this is the case.

【0068】この時点では排出1ロウレベルフラグは前
記ステップS4448にて“1”に設定されているので
ステップS4408の判定結果は“Yes”となり、ス
テップS4414に進んで、前回ループから今回ループ
にかけて排出センサ1の出力信号がロウレベルからハイ
レベルに変化した(立上った)ことを記憶すべく、排出
1立上変化フラグを“1”に設定し、続くステップS4
416で、この時点まで“1”に設定されていた排出1
ロウレベルフラグをリセット(“0”に設定)して、本
ルーチンを終了する。
At this point, the discharge 1 low level flag has been set to "1" in step S4448, so the determination result in step S4408 is "Yes", and the process advances to step S4414, where the discharge sensor is set from the previous loop to the current loop. In order to memorize that the output signal of No. 1 has changed from a low level to a high level (has risen), the ejection 1 rise change flag is set to "1", followed by step S4.
At 416, Emission 1, which had been set to “1” up until this point,
The low level flag is reset (set to "0") and this routine ends.

【0069】更に次のループで引き続き排出センサ1の
出力信号がハイレベルのときには、前回ループのステッ
プS4414で排出1立上変化フラグが“1”に設定さ
れているので、前記ステップS4404の判定結果が“
Yes”に転じる。そして、続くステップS4418〜
S4424で、排出センサ1内に賞品球あることを記憶
すべく排出センサ1立上フラグを“1”に設定(ステッ
プS4418)すると共に、その値が“1”のときセン
サ内より賞品球が脱したことを示す排出センサ1立下フ
ラグを“0”にリセットし(ステップS4420)、続
いて前記排出1立上変化フラグを“0”にリセットする
(ステップS4422)と共に、今回ループでの排出セ
ンサ1の出力信号がハイレベルであることを記憶すべく
排出1ハイレベルフラグを“1”に設定して(ステップ
S4424)本ルーチンを終了する。
Furthermore, when the output signal of the discharge sensor 1 is still at a high level in the next loop, since the discharge 1 rise change flag was set to "1" in step S4414 of the previous loop, the determination result in step S4404 is but"
"Yes".Then, the next step S4418~
In S4424, the discharge sensor 1 startup flag is set to "1" to remember that there is a prize ball in the discharge sensor 1 (step S4418), and when the value is "1", the prize ball is released from the sensor. The discharge sensor 1 fall flag indicating that the discharge sensor 1 has changed is reset to "0" (step S4420), and the discharge sensor 1 rise change flag is then reset to "0" (step S4422). The discharge 1 high level flag is set to "1" to remember that the output signal of No. 1 is at a high level (step S4424), and this routine ends.

【0070】その後、排出センサ1の出力信号がハイレ
ベルである限り、前記ステップS4402,S4404
,S4406,S4408,S4410が繰返し実行さ
れることになり、このとき、排出1立上フラグは“1”
、排出1立下フラグは“0”に保持される。一方、排出
センサ1の出力信号がロウレベルからハイレベルに立上
がった直後のループにおいて、該出力信号がロウレベル
に立下がってしまった場合(前回ループでステップS4
414が実行されて排出1立上変化フラグが“1”とな
り、且つ今回ループの出力信号がロウレベルの場合)に
は、ステップS4402の判定結果が“No”、ステッ
プS4432の判定結果が“No”、ステップS443
4の判定結果が“Yes”と云う具合に判定され、ステ
ップS4452にて前回ループから今回ループにかけて
出力信号が立下がったことを記憶すべく排出1立下変化
フラグを“1”に設定すると共に、ステップS4454
にて前回ループ時に“1”に設定された排出1立上変化
フラグを“0”にリセットして本ルーチンを終了する。
Thereafter, as long as the output signal of the discharge sensor 1 is at a high level, steps S4402 and S4404 are performed.
, S4406, S4408, and S4410 are executed repeatedly, and at this time, the discharge 1 start-up flag is set to "1".
, the discharge 1 fall flag is held at "0". On the other hand, if in the loop immediately after the output signal of the discharge sensor 1 rises from the low level to the high level, the output signal falls to the low level (step S4 in the previous loop).
414 is executed and the discharge 1 rise change flag becomes "1", and the output signal of the current loop is low level), the determination result of step S4402 is "No", and the determination result of step S4432 is "No". , step S443
4 is determined as "Yes", and in step S4452, the discharge 1 fall change flag is set to "1" to remember that the output signal fell from the previous loop to the current loop. , step S4454
At this point, the discharge 1 rise change flag, which was set to "1" during the previous loop, is reset to "0" and this routine ends.

【0071】以上のように、排出センサ1の出力信号が
立上がった後ハイレベルの状態が所定時間以上(少なく
とも本割込処理が2回行なわれる間)検知されない限り
、排出1立上フラグを“1”に設定する(排出センサ1
内に賞品球があることを示す)処理は行なわれないよう
になっており、排出センサ1の出力信号にノイズが発生
した場合等に誤って排出1立上フラグが“1”に設定さ
れないようになっている。
As described above, after the output signal of the discharge sensor 1 rises, unless a high level state is detected for a predetermined period of time or longer (while this interrupt processing is performed at least twice), the discharge 1 rise flag is set. Set to “1” (emission sensor 1
Processing (indicating that there is a prize ball inside) is not performed, so that the ejection 1 start-up flag will not be set to "1" by mistake when noise occurs in the output signal of ejection sensor 1. It has become.

【0072】以上のルーチンを実行することによって、
排出センサ1の出力信号が立ち上がった後、所定期間以
上(少なくとも割込処理が2回行なわれる間)その状態
が維持されたときにのみ排出センサ1立上フラグが“1
”に設定され、従って該立上フラグは賞品球が排出セン
サ1内に達したことを示すようになる。反対に排出セン
サ1の出力信号が立ち下がった後、所定期間以上(少な
くとも割込処理が2回行なわれる間)その状態が維持さ
れたときにのみ排出センサ1立下フラグが“1”に設定
され、従って該立下フラグは賞品球が排出センサ1内よ
り脱したことを示すようになる。この排出センサ1立上
フラグ及び排出センサ1立下フラグは、バックグランド
処理(メインルーチン)の中の交互排出処理、又は併用
排出処理(後述の図38、図39)にて参照される。
By executing the above routine,
After the output signal of the discharge sensor 1 rises, the discharge sensor 1 rise flag becomes "1" only when that state is maintained for a predetermined period or longer (while interrupt processing is performed at least twice).
”, and therefore, the rising flag indicates that the prize ball has reached the ejection sensor 1. Conversely, after the output signal of the ejection sensor 1 falls, the rise flag is set to The ejection sensor 1 falling flag is set to "1" only when this state is maintained (during the period of two rounds), and therefore the falling flag indicates that the prize ball has escaped from within the ejection sensor 1. The discharge sensor 1 rise flag and discharge sensor 1 fall flag are referenced in the alternate discharge process or combined discharge process (see FIGS. 38 and 39 described later) in the background process (main routine). Ru.

【0073】図21は割込処理(図20)の前記ステッ
プS46にて行なわれる排出センサ2の入力処理ルーチ
ンのフローチャートである。本ルーチンは排出センサ7
30bの状態を検出するためものであり、上述した排出
センサ1の入力処理ルーチンと同一の手順にて行なわれ
る。尚、本ルーチンでは、上述の排出センサ1の入力処
理と同様、該センサ730b(以下排出センサ2と記す
)の出力信号がロウレベルからハイレベルに立上がった
とき排出センサ2立上フラグを“1”に設定して賞品球
が該センサ内に達したことを記憶し、一方、ハイレベル
からロウレベルに立下がったとき排出センサ2立下フラ
グを“1”に設定して賞品球が該センサ内より脱したこ
とを記憶するようにしている。
FIG. 21 is a flowchart of the input processing routine for the discharge sensor 2 carried out in step S46 of the interrupt processing (FIG. 20). This routine
This is to detect the state of the discharge sensor 30b, and is performed in the same procedure as the input processing routine of the discharge sensor 1 described above. In this routine, similarly to the input processing of the exhaust sensor 1 described above, when the output signal of the sensor 730b (hereinafter referred to as the exhaust sensor 2) rises from the low level to the high level, the exhaust sensor 2 rise flag is set to "1". ” to memorize that the prize ball has reached the sensor, and on the other hand, set the ejection sensor 2 falling flag to “1” when the prize ball reaches the sensor when it falls from the high level to the low level. I try to remember things that I escaped more easily.

【0074】具体的には、本ルーチンが開始されると、
先ずステップS4602にて該センサ2の出力信号がハ
イレベル(排出センサ2出力=“1”)であるか否かが
判定される。今仮りに賞品球の排出が行われず1つの賞
品球がセンサ2内に留まっている状態を考える。このと
きステップS4602の判定結果は“Yes”となって
ステップS4604以降が実行される。ステップS46
04では排出2立上変化フラグが“1”であるか否かが
、ステップS4606では排出2立下変化フラグが“1
”であるか否かが、ステップS4608では排出2ロウ
レベルフラグが“1”であるか否かが、次いでステップ
S4610では排出2ハイレベルフラグが“1”である
か否かが夫々判定される。
Specifically, when this routine is started,
First, in step S4602, it is determined whether the output signal of the sensor 2 is at a high level (emission sensor 2 output = "1"). Let us now consider a situation in which one prize ball remains within the sensor 2 without being ejected. At this time, the determination result in step S4602 is "Yes", and steps S4604 and subsequent steps are executed. Step S46
In step S4606, it is determined whether the discharge 2 rising change flag is "1" or not, and in step S4606, it is determined whether the discharge 2 rising change flag is "1".
In step S4608, it is determined whether the discharge 2 low level flag is "1", and in step S4610, it is determined whether the discharge 2 high level flag is "1".

【0075】ところでCPU610の初期化直後はすべ
てのフラグが“0”に設定されているため、ステップS
4604〜S4610の判定結果はすべて“No”とな
り、ステップS4612にて、今回ループで排出センサ
2の出力信号がハイレベルであったことを記憶すべく排
出2ハイレベルフラグを“1”に設定して本ルーチンを
終了する。以後のループでは排出2ハイレベルフラグが
“1”に設定されているので、排出センサ2の出力信号
がハイレベルの状態を保持する限りステップS4602
,S4604,S4606,S4608,S4610が
繰返し実行されることになる。
By the way, immediately after the CPU 610 is initialized, all flags are set to "0", so step S
All the determination results from 4604 to S4610 are "No", and in step S4612, the discharge 2 high level flag is set to "1" to remember that the output signal of the discharge sensor 2 was high level in this loop. to end this routine. In the subsequent loop, the discharge 2 high level flag is set to "1", so as long as the output signal of the discharge sensor 2 remains high level, step S4602
, S4604, S4606, S4608, and S4610 are repeatedly executed.

【0076】その後、賞品球の排出が開始され、それま
でセンサ2内に留まっていた賞品球が排出センサ2内よ
り外側に移動してセンサ2内より脱すると、排出センサ
2の出力信号がロウレベルに立下り、前記ステップS4
602の判定結果が“No”となってステップS463
2以降が実行される。ステップS4632以降の処理が
最初に行なわれるときには、前記排出2ハイレベルフラ
グは“1”、それ以外のフラグはすべて“0”であるた
め、該ステップS4632の判定(排出2立下変化フラ
グが“1”であるか)、次のステップS4634の判定
(排出2立上変化フラグが“1”であるか)の結果が共
に“No”、続くステップS4636(排出2ハイレベ
ルフラグが“1”であるか)の判定の結果が“Yes”
となってステップS4638,S4640が実行される
[0076] After that, the ejection of the prize ball is started, and when the prize ball that had remained in the sensor 2 until then moves to the outside of the ejection sensor 2 and escapes from the sensor 2, the output signal of the ejection sensor 2 becomes low level. falls at step S4.
The determination result in step S463 is “No”.
2 and subsequent steps are executed. When the processing after step S4632 is performed for the first time, the discharge 2 high level flag is "1" and all other flags are "0", so the determination in step S4632 (the discharge 2 falling change flag is "1"), and all other flags are "0". 1"), the results of the next step S4634 (whether the discharge 2 rise change flag is "1") are both "No", and the following step S4636 (the discharge 2 high level flag is "1") If the result of the judgment is “Yes”
Then, steps S4638 and S4640 are executed.

【0077】ステップS4638では、前回ループから
今回ループにかけて排出センサ2の出力信号がハイレベ
ルからロウレベルに変化した(立下がった)ことを記憶
すべく、排出2立下変化フラグを“1”に設定し、続く
ステップS4640では、この時点まで“1”に設定さ
れていた排出2ハイレベルフラグをリセット(“0”に
設定)し、本ルーチンを終了する。更に次のループで引
き続き排出センサ2の出力信号がロウレベルのときには
、前回ループのステップS4638で排出2立下変化フ
ラグが“1”に設定されているので、前記ステップS4
632の判定結果が“Yes”に転じる。そして、続く
ステップS4642〜S4648で、賞品球が排出セン
サ2内より脱したことを記憶すべく排出センサ2立下フ
ラグを“1”に設定(ステップS4642)すると共に
、その値が“1”のときセンサ2内に賞品球があること
を示す排出センサ2立上フラグ(初期化後初めて本ステ
ップが実行されるときは“0”に設定されている)を“
0”にリセットし(ステップS4644)、続いて前記
排出2立下変化フラグを“0”にリセットする(ステッ
プS4646)と共に、今回ループでの排出センサ2の
出力信号がロウレベルであることを記憶すべく排出2ハ
イレベルフラグを“1”に設定して(ステップS464
8)本ルーチンを終了する。
In step S4638, the discharge 2 falling change flag is set to "1" in order to remember that the output signal of the discharge sensor 2 changed from high level to low level (falling) from the previous loop to the current loop. However, in the following step S4640, the discharge 2 high level flag, which had been set to "1" up to this point, is reset (set to "0"), and this routine ends. Furthermore, when the output signal of the discharge sensor 2 is still at a low level in the next loop, since the discharge 2 fall change flag was set to "1" in step S4638 of the previous loop, the output signal in step S4 is
The determination result at 632 changes to "Yes". Then, in the following steps S4642 to S4648, the ejection sensor 2 fall flag is set to "1" (step S4642) to remember that the prize ball has escaped from the ejection sensor 2, and the value is set to "1". When the discharge sensor 2 start-up flag (which is set to "0" when this step is executed for the first time after initialization) indicates that there is a prize ball in sensor 2, "
0" (step S4644), and then resets the discharge 2 falling change flag to "0" (step S4646), and also remembers that the output signal of the discharge sensor 2 in this loop is low level. The discharge 2 high level flag is set to "1" (step S464).
8) End this routine.

【0078】次回以降のループでも、排出センサ2の出
力信号がロウレベルであると、排出2立下変化フラグ、
排出2立上変化フラグ、排出2ハイレベルフラグは全て
“0”、排出2ロウレベルフラグが“1”となっている
ので、前記ステップS4602,S4632,S463
4,S4636及びステップS4650(排出2ロウレ
ベルフラグが“1”でいるか否かの判定)が繰返し実行
され(このとき該ステップS4650の判定結果は“Y
es”となる)、このとき排出センサ2立下フラグは“
1”、排出センサ2立上フラグは“0”に保持される。
In the next and subsequent loops, if the output signal of the discharge sensor 2 is at low level, the discharge 2 fall change flag,
Since the discharge 2 rise change flag and the discharge 2 high level flag are all "0" and the discharge 2 low level flag is "1", steps S4602, S4632, and S463 are performed.
4, S4636 and step S4650 (determining whether the discharge 2 low level flag is "1") are repeatedly executed (at this time, the determination result of step S4650 is "Y").
es”), at this time, the discharge sensor 2 fall flag is “
1", and the discharge sensor 2 startup flag is held at "0".

【0079】一方、排出センサ2の出力信号がハイレベ
ルからロウレベルに立下がった直後のループにおいて、
当該出力信号が再びハイレベルに立上がってしまった場
合(前回ループでステップS4638が実行されて排出
2立下変化フラグが“1”となり、且つ今回ループでセ
ンサ出力がハイレベルに立上がった場合)には、ステッ
プS4602の判定結果が“Yes”に転じ、更にステ
ップS4604の判定結果が“No”、ステップS46
06の判定結果が“Yes”と云う具合に判定され、ス
テップS4628にて前回ループから今回ループにかけ
て出力信号が立上がったことを記憶すべく排出2立上変
化フラグを“1”に設定すると共に、ステップS463
0にて前回ループ時に“1”に設定した排出2立下変化
フラグを“0”にリセットして本ルーチンを終了する。
On the other hand, in the loop immediately after the output signal of the discharge sensor 2 falls from high level to low level,
If the output signal rises to a high level again (step S4638 was executed in the previous loop and the discharge 2 fall change flag became "1", and the sensor output rose to a high level in the current loop) ), the determination result in step S4602 changes to "Yes", and furthermore, the determination result in step S4604 changes to "No", and step S46
06 is determined as "Yes", and in step S4628, the discharge 2 rise change flag is set to "1" to remember that the output signal rose from the previous loop to the current loop. , step S463
0, the discharge 2 fall change flag, which was set to "1" in the previous loop, is reset to "0" and this routine ends.

【0080】この結果、排出センサ2の出力信号が立下
がった後ロウレベルの状態が所定時間以上(少なくとも
本割込処理が2回行なわれる間)検知されない限り、排
出2立下フラグを“1”に設定する(賞品球がセンサ2
内より脱したことを示す)処理は行なわれないようにな
っており、排出センサ2の出力信号にノイズが発生し瞬
間的に信号が立下った場合等誤って排出2立下フラグが
“1”に設定されないようになっている。
As a result, the discharge 2 fall flag is set to "1" unless a low level state is detected for a predetermined period of time or longer (while this interrupt processing is performed at least twice) after the output signal of the discharge sensor 2 falls. (Prize ball is sensor 2
The process (indicating that the discharge has come out from the inside) is not performed, and if noise occurs in the output signal of the discharge sensor 2 and the signal falls momentarily, the discharge 2 fall flag may be set to "1" by mistake. ” is no longer set.

【0081】次に、先の賞品球がセンサ2内より脱した
後、次の賞品球がセンサ2内に達した場合を考える。こ
のとき、ステップS4602の判定(該センサ2の出力
信号がロウレベルであるか否かの判定)は“Yes”と
なり前記ステップS4604の判定(排出2立上変化フ
ラグが“1”か)が行なわれ、この場合判定結果は“N
o”となり、ステップS4606にて排出2立下変化フ
ラグが“1”であるか否かの判定が行われる。このとき
該ステップS4606の判定結果も“No”(前記ステ
ップS4646にて“0”に設定される)となってステ
ップS4608に進み、排出2ロウレベルフラグが“1
”であるか否かの判定が行なわれる。
Next, consider the case where after the previous prize ball escapes from inside the sensor 2, the next prize ball reaches inside the sensor 2. At this time, the determination in step S4602 (determination as to whether the output signal of the sensor 2 is at a low level) is "Yes", and the determination in step S4604 (as to whether the discharge 2 rise change flag is "1") is performed. , in this case the judgment result is “N
o", and it is determined in step S4606 whether or not the discharge 2 fall change flag is "1". At this time, the determination result in step S4606 is also "No"("0" in step S4646). ), the process advances to step S4608, and the discharge 2 low level flag is set to "1".
” is determined.

【0082】この時点では排出2ロウレベルフラグは前
記ステップS4648にて“1”に設定されているので
ステップS4608の判定結果は“Yes”となり、ス
テップS4614に進んで、前回ループから今回ループ
にかけて排出センサ2の出力信号がロウレベルからハイ
レベルに変化した(立上った)ことを記憶すべく、排出
2立上変化フラグを“1”に設定し、続くステップS4
616で、この時点まで“1”に設定されていた排出2
ロウレベルフラグをリセット(“0”に設定)して、本
ルーチンを終了する。
At this point, the discharge 2 low level flag has been set to "1" in step S4648, so the determination result in step S4608 is "Yes", and the process advances to step S4614, where the discharge sensor is set from the previous loop to the current loop. In order to memorize that the output signal of No. 2 has changed from a low level to a high level (has risen), the ejection 2 rise change flag is set to "1", followed by step S4.
At 616, Emission 2, which had been set to "1" up to this point,
The low level flag is reset (set to "0") and this routine ends.

【0083】更に次のループで引き続き排出センサ2の
出力信号がハイレベルのときには、前回ループのステッ
プS4614で排出2立上変化フラグが“1”に設定さ
れているので、前記ステップS4604の判定結果が“
Yes”に転じる。そして、続くステップS4618〜
S4624で、排出センサ2内に賞品球あることを記憶
すべく排出センサ2立上フラグを“1”に設定(ステッ
プS4618)すると共に、その値が“1”のときセン
サ内より賞品球が脱したことを示す排出センサ2立下フ
ラグを“0”にリセットし(ステップS4620)、続
いて前記排出2立上変化フラグを“0”にリセットする
(ステップS4622)と共に、今回ループでの排出セ
ンサ2の出力信号がハイレベルであることを記憶すべく
排出2ハイレベルフラグを“1”に設定して(ステップ
S4624)本ルーチンを終了する。
Furthermore, when the output signal of the discharge sensor 2 is still at a high level in the next loop, since the discharge 2 rise change flag was set to "1" in step S4614 of the previous loop, the determination result of step S4604 is but"
"Yes".Then, the next step S4618~
In S4624, the ejection sensor 2 startup flag is set to "1" to remember that there is a prize ball in the ejection sensor 2 (step S4618), and when the value is "1", the prize ball is ejected from the sensor. The discharge sensor 2 fall flag indicating that the discharge sensor 2 has changed is reset to "0" (step S4620), and the discharge sensor 2 rise change flag is then reset to "0" (step S4622). The discharge 2 high level flag is set to "1" to remember that the output signal of No. 2 is at a high level (step S4624), and this routine ends.

【0084】その後、排出センサ2の出力信号がハイレ
ベルである限り、前記ステップS4602,S4604
,S4606,S4608,S4610が繰返し実行さ
れることになり、このとき、排出2立上フラグは“1”
、排出2立下フラグは“0”に保持される。一方、排出
センサ2の出力信号がロウレベルからハイレベルに立上
がった直後のループにおいて、該出力信号がロウレベル
に立下がってしまった場合(前回ループでステップS4
614が実行されて排出2立上変化フラグが“1”とな
り、且つ今回ループの出力信号がロウレベルの場合)に
は、ステップS4602の判定結果が“No”、ステッ
プS4632の判定結果が“No”、ステップS463
4の判定結果が“Yes”と云う具合に判定され、ステ
ップS4652にて前回ループから今回ループにかけて
出力信号が立下がったことを記憶すべく排出2立下変化
フラグを“1”に設定すると共に、ステップS4654
にて前回ループ時に“1”に設定された排出2立上変化
フラグを“0”にリセットして本ルーチンを終了する。
Thereafter, as long as the output signal of the discharge sensor 2 is at a high level, steps S4602 and S4604 are performed.
, S4606, S4608, and S4610 are executed repeatedly, and at this time, the discharge 2 startup flag is set to "1".
, the discharge 2 falling flag is held at "0". On the other hand, if in the loop immediately after the output signal of the discharge sensor 2 rises from the low level to the high level, the output signal falls to the low level (step S4 in the previous loop).
614 is executed and the discharge 2 rise change flag becomes "1" and the output signal of the current loop is low level), the determination result of step S4602 is "No", and the determination result of step S4632 is "No". , step S463
4 is determined as "Yes", and in step S4652, the discharge 2 fall change flag is set to "1" to remember that the output signal fell from the previous loop to the current loop. , step S4654
At this point, the discharge 2 rise change flag, which was set to "1" during the previous loop, is reset to "0" and this routine ends.

【0085】以上のように、排出センサ2の出力信号が
立上がった後、ハイレベルの状態が所定時間以上(少な
くとも本割込処理が2回行なわれる間)検知されない限
り、排出2立上フラグを“1”に設定する(排出センサ
2内に賞品球があることを示す)処理は行なわれないよ
うになっており、排出センサ2の出力信号にノイズが発
生した場合等に誤って排出2立上フラグが“1”に設定
されないようになっている。
As described above, after the output signal of the discharge sensor 2 rises, unless a high level state is detected for a predetermined period of time or longer (while this interrupt processing is performed at least twice), the discharge 2 rise flag is The process of setting the prize ball to "1" (indicating that there is a prize ball in the ejection sensor 2) is not performed, and if noise occurs in the output signal of the ejection sensor 2, the ejection 2 The start-up flag is not set to "1".

【0086】以上のルーチンを実行することによって、
排出センサ2の出力信号が立ち上がった後、所定期間以
上(少なくとも割込処理が2回行なわれる間)その状態
が維持されたときにのみ排出センサ2立上フラグが“1
”に設定され、従って該立上フラグは賞品球が排出セン
サ2内に達したことを示すようになる。反対に排出セン
サ2の出力信号が立ち下がった後、所定期間以上(少な
くとも割込処理が2回行なわれる間)その状態が維持さ
れたときにのみ排出センサ2立下フラグが“1”に設定
され、従って該立下フラグは賞品球が排出センサ2内よ
り脱したことを示すようになる。この排出センサ2立上
フラグ及び排出センサ2立下フラグは、バックグランド
処理(メインルーチン)の中の交互排出処理、又は併用
排出処理(後述の図38、図39)にて用いられる。
By executing the above routine,
After the output signal of the discharge sensor 2 rises, the discharge sensor 2 rise flag becomes "1" only when that state is maintained for a predetermined period or longer (while the interrupt process is performed at least twice).
”, and therefore, the rise flag indicates that the prize ball has reached the ejection sensor 2. Conversely, after the output signal of the ejection sensor 2 falls, the rise flag is set to The ejection sensor 2 falling flag is set to "1" only when this state is maintained (during the period in which the prize ball has escaped from the ejection sensor 2). The discharge sensor 2 rising flag and the discharge sensor 2 falling flag are used in the alternate discharge process or combined discharge process (see FIGS. 38 and 39 described later) in the background process (main routine). .

【0087】図22は割込処理(図16)のステップS
48にて行なわれる排出センサ1のレベル入力処理のル
ーチンを示すフローチャートである。このレベル入力処
理は、排出センサ1の出力信号がハイレベル(センサ1
が賞品球を検知している状態)である期間が所定期間以
上継続しているか否かを判断するためのルーチンであり
、賞品球が無い状態から有る状態へ変化した後、第1の
所定期間(50msec)が経過したときに排出センサ
1球有フラグを“1”に設定してこれを記憶しておき、
上記変化の後第2の所定期間(2sec)が経過したと
きに排出1エラー解除フラグを“1”に設定することに
よってこれを記憶しておくものである。これら2つのフ
ラグは詳細は後述する排出装置不正監視処理(図31)
、賞球開始処理(図32)、玉貸し開始処理(図41)
、排出エラー回復処理(図40)にて用いられる。
FIG. 22 shows step S of interrupt processing (FIG. 16).
48 is a flowchart showing a routine for level input processing of the discharge sensor 1 performed in step 48. In this level input process, the output signal of the discharge sensor 1 is at a high level (sensor 1
This is a routine for determining whether a period in which the player is detecting a prize ball continues for a predetermined period or longer, and after the state changes from the state where there is no prize ball to the state where there is a prize ball, the first predetermined period (50 msec), set the discharge sensor 1 bulb presence flag to "1" and memorize this,
This is stored by setting the discharge 1 error release flag to "1" when a second predetermined period (2 seconds) has elapsed after the above change. These two flags are used in the discharge device fraud monitoring process (Figure 31), which will be described in detail later.
, prize ball start processing (Figure 32), ball lending start process (Figure 41)
, used in the discharge error recovery process (FIG. 40).

【0088】本ルーチンが開始されると、ステップS7
200にて排出センサ1の出力信号がハイレベルである
(排出センサ1出力=“1”)か否かが判別される。こ
の判別結果が“No”、即ち出力信号がロウレベルであ
るときには、排出1球有監視フラグを“0”(ステップ
S7202)、前述した排出センサ1球有フラグを“0
”(ステップS7204)、排出1エラー監視フラグを
“0”(ステップS7206)、前述した排出1エラー
解除フラグを“0”(ステップS7208)に夫々設定
して、本ルーチンを終了する。
[0088] When this routine is started, step S7
At step 200, it is determined whether the output signal of the discharge sensor 1 is at a high level (the output of the discharge sensor 1 = "1"). When the determination result is "No", that is, the output signal is at a low level, the discharge one ball presence monitoring flag is set to "0" (step S7202), and the above-mentioned discharge sensor one ball presence flag is set to "0".
” (step S7204), the discharge 1 error monitoring flag is set to "0" (step S7206), and the aforementioned discharge 1 error cancellation flag is set to "0" (step S7208), and this routine ends.

【0089】ここで排出1球有監視フラグ及び排出1エ
ラー監視フラグは共に、排出センサ1の出力信号がハイ
レベルであると判別されたループにおいて、そのループ
がロウレベルからハイレベルへの立上り直後のループで
あるか否かを判別する(後述のステップS7212及び
ステップS7224)ために用いられるものである。そ
の後、前記排出センサ1の出力信号がロウレベルからハ
イレベルに変化すると、その直後のループでは前記ステ
ップS7200の判別結果が“Yes”となり、続くス
テップS7210で排出センサ1球有フラグが“1”で
あるか否かが、更に、続くステップS7212で排出1
球有監視フラグが“1”であるか否かが判別される。こ
の場合、判別結果は共に“No”となり、続くステップ
S7214で排出1球有監視フラグを“1”に設定し、
ステップS7216で排出1球有タイマを第1の所定期
間(50msec)に設定してステップS7222に進
む。
Here, both the ejection 1 ball presence monitoring flag and the ejection 1 error monitoring flag are set when the output signal of the ejection sensor 1 is determined to be at a high level, immediately after the loop rises from a low level to a high level. This is used to determine whether it is a loop (steps S7212 and S7224, which will be described later). Thereafter, when the output signal of the discharge sensor 1 changes from low level to high level, in the loop immediately after that, the determination result in step S7200 becomes "Yes", and in the subsequent step S7210, the discharge sensor 1 ball presence flag is set to "1". Further, in the following step S7212, whether or not there is a discharge 1
It is determined whether the ball presence monitoring flag is "1". In this case, the determination results are both "No", and in the subsequent step S7214, the discharge 1 ball presence monitoring flag is set to "1",
In step S7216, the timer with one discharged ball is set to the first predetermined period (50 msec), and the process advances to step S7222.

【0090】ステップS7222では排出1エラー解除
フラグが“1”であるか否かが判別される。この場合(
センサ1の出力信号がロウレベルからハイレベルに変化
した直後)判別結果は“No”となり、続くステップS
7224にて排出1エラー監視フラグが“1”であるか
否かが判別される。今回ループではこの判別結果も“N
o”となるので、ステップS7226で排出1エラー監
視フラグを“1”に設定し、続くステップS7228で
排出1エラータイマを第2の所定期間(2sec)に設
定して本ルーチンを終了する。
In step S7222, it is determined whether the discharge 1 error release flag is "1". in this case(
Immediately after the output signal of sensor 1 changes from low level to high level), the determination result is "No" and the following step S
At 7224, it is determined whether the discharge 1 error monitoring flag is "1". In this loop, this discrimination result is also “N”
o", the discharge 1 error monitoring flag is set to "1" in step S7226, and the discharge 1 error timer is set to a second predetermined period (2 sec) in the subsequent step S7228, and this routine ends.

【0091】次のループで排出センサ1の出力信号が依
然ハイレベルを維持していると、前記ステップS720
0の判別結果が“Yes”、ステップS7210の判別
結果が“No”、ステップS7212の判別結果が“Y
es”となって、ステップS7218に進む。ステップ
S7218では前記ステップS7216でセットされた
球有タイマがタイムアップしたか否かが判別され、この
判別結果が“No”のとき(出力信号がハイレベルに変
化してから未だ第1の所定期間が経過していないとき)
には、続くステップS7220をスキップして、前記ス
テップS7222に進む。
[0091] If the output signal of the discharge sensor 1 is still maintained at a high level in the next loop, step S720 is performed.
The determination result of 0 is "Yes", the determination result of step S7210 is "No", and the determination result of step S7212 is "Y".
es", and the process proceeds to step S7218. In step S7218, it is determined whether or not the ball presence timer set in step S7216 has timed up. If the result of this determination is "No" (the output signal is at a high level) (When the first predetermined period has not yet passed since the change to
If so, skip the following step S7220 and proceed to step S7222.

【0092】今回ループでは、このステップS7222
の判別結果が“No”、続くステップS7224の判別
結果が“Yes”となって、ステップS7230に進む
。ステップS7230では前記ステップS7228でセ
ットされた排出1エラータイマがタイムアップしたか否
かが判別され、この判別結果が“No”のとき(出力信
号がハイレベルに変化してから、未だ第2の所定期間が
経過していないとき)には、続くステップS7232を
スキップして、本ルーチンを終了する。更に次回以降の
ループにおいて、排出センサ1の出力信号がハイレベル
である限り、ステップS7200,S7210,S72
12,S7218及びステップS7222以降が繰返し
実行され、ステップS7218の判別結果が“No”か
ら“Yes”に転じたとき(上記第1の所定期間経過直
後)、ステップS7220にて前述した排出センサ1球
有フラグが“1”に設定され、以後ステップS7200
,S7210及びステップS7222以降が繰返し実行
されることになる。
In this loop, this step S7222
The determination result in step S7224 is "No", and the determination result in step S7224 is "Yes", and the process advances to step S7230. In step S7230, it is determined whether or not the discharge 1 error timer set in step S7228 has timed up. If the determination result is "No" (since the output signal has changed to high level, the second (when the predetermined period has not elapsed), the following step S7232 is skipped and this routine is ended. Furthermore, in subsequent loops, as long as the output signal of the discharge sensor 1 is at a high level, steps S7200, S7210, and S72 are executed.
12, S7218 and steps S7222 and subsequent steps are repeatedly executed, and when the determination result in step S7218 changes from "No" to "Yes" (immediately after the first predetermined period has elapsed), in step S7220, the above-mentioned one discharge sensor bulb is The existence flag is set to "1", and thereafter step S7200
, S7210 and steps S7222 and subsequent steps are repeatedly executed.

【0093】又、ステップS7222以降の処理に関し
ても、排出センサ1の出力信号がハイレベルである限り
ステップS7222,S7224,S7230が繰返し
実行され、ステップS7230の判別結果が“No”か
ら“Yes”に転じたとき(上記第2の所定期間経過直
後)、ステップS7232にて前述した排出1エラー解
除フラグが“1”に設定され、以後ステップS7200
,S7210,S7222(排出1エラー解除フラグが
“1”のときには、当然に、排出センサ1球有フラグは
“1”となっている)が繰返し実行される。そして、排
出センサ1の出力信号が一度でもロウレベルに変化した
ときは、ステップS7202〜S7208にて各フラグ
が“0”にリセットされるため、その直後にハイレベル
に戻っても再びステップS7210以降の処理が初めか
ら開始されることになる。
Regarding the processing after step S7222, as long as the output signal of the discharge sensor 1 is at a high level, steps S7222, S7224, and S7230 are repeatedly executed, and the determination result in step S7230 changes from "No" to "Yes". When the change occurs (immediately after the second predetermined period has elapsed), the discharge 1 error cancellation flag described above is set to "1" in step S7232, and thereafter in step S7200.
, S7210, and S7222 (when the discharge 1 error release flag is "1", naturally the discharge sensor 1 ball presence flag is "1") are repeatedly executed. When the output signal of the discharge sensor 1 changes to low level even once, each flag is reset to "0" in steps S7202 to S7208. Processing will start from the beginning.

【0094】図20は割込処理(図13)のステップS
50にて行なわれる排出センサ2のレベル入力処理のル
ーチンを示すフローチャートであり、本ルーチンは前述
の排出センサ1のレベル入力処理と同一の手順にて行な
われる。このレベル入力処理は、排出センサ2の出力信
号がハイレベル(センサ2が賞品球を検知している状態
)である期間が所定期間以上継続しているか否かを判断
するためのルーチンであり、賞品球が無い状態から有る
状態に変化した後、第1の所定期間(50msec)が
経過したときに排出センサ2球有フラグを“1”に設定
してこれを記憶しておき、上記変化の後第2の所定期間
(2sec)が経過したときに排出2エラー解除フラグ
を“1”に設定することによってこれを記憶しておくも
のである。これら2つのフラグも詳細は後述する賞球開
始処理(図29)、排出エラー回路処理(図37)等に
て用いられる。
FIG. 20 shows step S of interrupt processing (FIG. 13).
50 is a flowchart showing a routine of level input processing for the exhaust sensor 2 performed in step 50, and this routine is performed in the same procedure as the level input processing for the exhaust sensor 1 described above. This level input processing is a routine for determining whether the period in which the output signal of the discharge sensor 2 is at a high level (the state in which the sensor 2 is detecting the prize ball) continues for a predetermined period or more, After the state changes from the state where there is no prize ball to the state where there is a prize ball, when the first predetermined period (50 msec) has elapsed, the discharge sensor 2 ball presence flag is set to "1" and this is stored, and the above change is performed. This is stored by setting the discharge 2 error release flag to "1" when the second predetermined period (2 seconds) has elapsed. These two flags are also used in prize ball start processing (FIG. 29), ejection error circuit processing (FIG. 37), etc., which will be described in detail later.

【0095】本ルーチンが開始されると、先ずステップ
S7400にて排出センサ2の出力信号がハイレベルで
ある(排出センサ2出力=“1”)か否かが判別される
。この判別結果が“No”、即ち出力信号がロウレベル
であるときには、排出2球有監視フラグを“0”(ステ
ップS7402)、前述した排出センサ2球有フラグを
“0”(ステップS7404)、排出2エラー監視フラ
グを“0”(ステップS7406)、前述した排出2エ
ラー解除フラグを“0”(ステップS7408)に夫々
設定して、本ルーチンを終了する。ここで排出2球有監
視フラグ及び排出2エラー監視フラグは共に、排出セン
サ2の出力信号がハイレベルであると判別されたループ
において、そのループがロウレベルからハイレベルへの
立上り直後のループであるか否かを判別する(後述のス
テップS7412及びステップS7424)ために用い
られるものである。
[0095] When this routine is started, first, in step S7400, it is determined whether the output signal of the exhaust sensor 2 is at a high level (exhaust sensor 2 output = "1"). When the determination result is "No", that is, the output signal is at a low level, the ejected 2-ball presence monitoring flag is set to "0" (step S7402), the above-mentioned ejection sensor 2-ball presence flag is set to "0" (step S7404), and the ejected 2-ball presence monitoring flag is set to "0" (step S7404). 2 error monitoring flag is set to "0" (step S7406), and the above-mentioned discharge 2 error cancellation flag is set to "0" (step S7408), and this routine ends. Here, both the ejection 2 ball presence monitoring flag and the ejection 2 error monitoring flag are the loops in which the output signal of the ejection sensor 2 is determined to be at high level, and that loop is the loop immediately after rising from low level to high level. This is used to determine whether or not (steps S7412 and S7424, which will be described later).

【0096】その後、前記排出センサ2の出力信号がロ
ウレベルからハイレベルに変化すると、その直後のルー
プでは前記ステップS7400の判別結果が“Yes”
となり、続くステップS7410で排出センサ2球有フ
ラグが“1”であるか否かが、更に、続くステップS7
412で排出2球有監視フラグが“1”であるか否かが
判別される。この場合、判別結果は共に“No”となり
、続くステップS7414で排出2球有監視フラグを“
1”に設定し、ステップS7416で排出2球有タイマ
を第1の所定期間(50msec)に設定してステップ
S7422に進む。
After that, when the output signal of the discharge sensor 2 changes from low level to high level, the determination result of step S7400 becomes "Yes" in the loop immediately after that.
Then, in the subsequent step S7410, it is determined whether the discharge sensor 2 bulb presence flag is "1" or not, and then in the subsequent step S7410.
In step 412, it is determined whether or not the two ejected balls monitoring flag is "1". In this case, the determination results are both "No", and in the following step S7414, the ejected 2-bulb presence monitoring flag is set to "
1'', and in step S7416, the ejected two-ball timer is set to the first predetermined period (50 msec), and the process advances to step S7422.

【0097】ステップS7422では排出2エラー解除
フラグが“1”であるか否かが判別される。この場合(
センサ2の出力信号がロウレベルからハイレベルに変化
した直後)判別結果は“No”となり、続くステップS
7424にて排出2エラー監視フラグが“1”であるか
否かが判別される。今回ループではこの判別結果も“N
o”となるので、ステップS7426で排出2エラー監
視フラグを“1”に設定し、続くステップS7428で
排出2エラータイマを第2の所定期間(2sec)に設
定して本ルーチンを終了する。
In step S7422, it is determined whether the discharge 2 error release flag is "1". in this case(
Immediately after the output signal of sensor 2 changes from low level to high level) the determination result is "No" and the following step S
At 7424, it is determined whether the discharge 2 error monitoring flag is "1". In this loop, this discrimination result is also “N”
o'', the discharge 2 error monitoring flag is set to "1" in step S7426, and the discharge 2 error timer is set to a second predetermined period (2 sec) in the subsequent step S7428, and this routine ends.

【0098】次のループで排出センサ2の出力信号が依
然ハイレベルを維持していると、前記ステップS740
0の判別結果が“Yes”、ステップS7410の判別
結果が“No”、ステップS7412の判別結果が“Y
es”となって、ステップS7418に進む。ステップ
S7418では前記ステップS7416でセットされた
球有タイマがタイムアップしたか否かが判別され、この
判別結果が“No”のとき(出力信号がハイレベルに変
化してから未だ第1の所定期間が経過していないとき)
には、続くステップS7420をスキップして、前記ス
テップS7422に進む。
[0098] If the output signal of the discharge sensor 2 is still maintained at a high level in the next loop, step S740 is performed.
The determination result of 0 is “Yes”, the determination result of step S7410 is “No”, and the determination result of step S7412 is “Y”.
es", and the process proceeds to step S7418. In step S7418, it is determined whether or not the ball presence timer set in step S7416 has timed up. If the result of this determination is "No" (the output signal is at a high level) (When the first predetermined period has not yet passed since the change to
If so, skip the subsequent step S7420 and proceed to step S7422.

【0099】今回ループでは、このステップS7422
の判別結果が“No”、続くステップS7424の判別
結果が“Yes”となって、ステップS7430に進む
。ステップS7430では前記ステップS7428でセ
ットされた排出2エラータイマがタイムアップしたか否
かが判別され、この判別結果が“No”のとき(出力信
号がハイレベルに変化してから、未だ第2の所定期間が
経過していないとき)には、続くステップS7432を
スキップして、本ルーチンを終了する。更に次回以降の
ループにおいて、排出センサ2の出力信号がハイレベル
である限り、ステップS7400,S7410,S74
12,S7418及びステップS7422以降が繰返し
実行され、ステップS7418の判別結果が“No”か
ら“Yes”に転じたとき(上記第1の所定期間経過直
後)、ステップS7420にて前述した排出センサ2球
有フラグが“1”に設定され、以後ステップS7400
,S7410及びステップS7422以降が繰返し実行
されることになる。
In this loop, this step S7422
The determination result in step S7424 is "No", and the determination result in step S7424 is "Yes", and the process advances to step S7430. In step S7430, it is determined whether or not the discharge 2 error timer set in step S7428 has timed up. If the determination result is "No" (since the output signal has changed to high level, the second (when the predetermined period has not elapsed), the following step S7432 is skipped and this routine is ended. Furthermore, in subsequent loops, steps S7400, S7410, and S74 are performed as long as the output signal of the discharge sensor 2 is at a high level.
12, S7418 and steps S7422 and subsequent steps are repeatedly executed, and when the determination result in step S7418 changes from "No" to "Yes" (immediately after the first predetermined period has elapsed), in step S7420, the two discharge sensors described above are activated. The presence flag is set to "1", and thereafter step S7400
, S7410 and steps S7422 and subsequent steps are repeatedly executed.

【0100】又、ステップS7422以降の処理に関し
ても、排出センサ2の出力信号がハイレベルである限り
ステップS7422,S7424,S7430が繰返し
実行され、ステップS7430の判別結果が“No”か
ら“Yes”に転じたとき(上記第2の所定期間経過直
後)、ステップS7432にて前述した排出2エラー解
除フラグが“1”に設定され、以後ステップS7400
,S7410,S7422(排出2エラー解除フラグが
“1”のときには、当然に、排出センサ2球有フラグは
“1”となっている)が繰返し実行される。そして、排
出センサ2の出力信号が一度でもロウレベルに変化した
ときは、ステップS7402〜S7408にて各フラグ
が“0”にリセットされるため、その直後にハイレベル
に戻っても再びステップS7410以降の処理が初めか
ら開始されることになる。
Regarding the processing after step S7422, steps S7422, S7424, and S7430 are repeatedly executed as long as the output signal of the discharge sensor 2 is at a high level, and the determination result in step S7430 changes from "No" to "Yes". When the change occurs (immediately after the second predetermined period has elapsed), the discharge 2 error cancellation flag described above is set to "1" in step S7432, and thereafter in step S7400.
, S7410, and S7422 (when the discharge 2 error release flag is "1", the discharge sensor 2 bulb presence flag is naturally "1") are repeatedly executed. When the output signal of the discharge sensor 2 changes to low level even once, each flag is reset to "0" in steps S7402 to S7408. Processing will start from the beginning.

【0101】図21は、図13の割込処理のステップS
52にて行なわれる球抜センサ750の入力処理ルーチ
ンのフローチャートである。球抜センサ750は、前述
したように、遊技店の係員が球抜処理を開始するための
操作、即ち、パチンコ遊技機10前面に設けられた操作
用孔に球抜き棒(図示省略)を挿入する操作が為された
ことを検知するためもので、球抜き棒の挿入を検知した
とき該センサ750の出力信号はハイレベルとなり、検
知していないときには出力信号がロウレベルに保持され
るように構成されている。ところで、本フローでは該セ
ンサ750からの出力信号がロウレベルからハイレベル
に変化したとき、後述する球抜フラグを“1”に設定し
て、遊技店の係員による球抜処理が行われたと判断する
ようになっている。そして、賞球排出制御装置は、この
“1”に設定された球抜フラグによって後述の球抜処理
(図40〜第42)を開始するようになっている(メイ
ンルーチンのステップS16)。
FIG. 21 shows step S of the interrupt processing in FIG.
52 is a flowchart of the input processing routine of the ball removal sensor 750 performed in step 52. As mentioned above, the ball removal sensor 750 is operated by an operator at the game parlor to start the ball removal process, that is, insert a ball removal rod (not shown) into the operation hole provided on the front surface of the pachinko game machine 10. The output signal of the sensor 750 is configured to be at a high level when the insertion of the ball extraction rod is detected, and to be held at a low level when the insertion of the ball extraction rod is not detected. has been done. By the way, in this flow, when the output signal from the sensor 750 changes from a low level to a high level, a ball removal flag, which will be described later, is set to "1" and it is determined that a ball removal process has been performed by the staff at the game parlor. It looks like this. Then, the prize ball discharge control device starts a ball withdrawal process (FIGS. 40 to 42), which will be described later, with the ball withdrawal flag set to "1" (step S16 of the main routine).

【0102】本ルーチンが開始されると、先ずステップ
S5300にて前述した処理ナンバーが“0”であるか
否かが判別される。メインルーチン(図12)にて、賞
球(玉貸し)排出開始処理および賞球(玉貸し)排出処
理が行われているとき等処理ナンバーが“0”に設定さ
れていないときには(このとき上記ステップS5300
の判別結果は“No”)ステップS5303以降に進む
ことなく、球抜センサ変化フラグを“0”に設定し(ス
テップS5301)、球抜センサLレベルフラグを“0
”に設定して(ステップS5302)、本ルーチンを終
了する。ここで球抜センサ変化フラグは、今回ループで
センサ750の出力信号がローレベル(L)からハイレ
ベル(H)に変化した(このとき“1”に設定される)
ことを記憶するためのフラグであり、球抜センサLレベ
ルフラグは今回ループでセンサの出力信号がローレベル
(L)であったことを記憶するためのフラグである。
[0102] When this routine is started, first, in step S5300, it is determined whether the above-mentioned processing number is "0". In the main routine (Figure 12), when the process number is not set to "0", such as when the prize ball (ball rental) discharge start process and the prize ball (ball rental) discharge process are being performed (at this time, the above Step S5300
(The determination result is "No") Without proceeding to step S5303 or later, the ball removal sensor change flag is set to "0" (step S5301), and the ball removal sensor L level flag is set to "0".
” (step S5302), and ends this routine.Here, the ball removal sensor change flag indicates that the output signal of the sensor 750 changed from low level (L) to high level (H) in this loop. (set to “1” when
The ball removal sensor L level flag is a flag for storing that the output signal of the sensor was low level (L) in this loop.

【0103】上述のステップS5300の判別を行なう
ことによって、遊技店の係員が球抜操作を行った場合で
あっても、賞品球の排出処理等の実行時には、後述の球
抜処理(図40〜第42)が禁止されるようになる。今
仮りに、賞品球の排出処理等が行われていない場合(処
理NO=“0”)で、遊技機10の操作用孔に球抜き棒
が差し込まれていない状態から、遊技店の係員によって
球抜き棒が差し込まれた状態に変化する場合を考える。 賞品球の排出処理が行われていないときには前記ステッ
プS5300の判別結果は“Yes”となり、続くステ
ップS5303にて球抜センサ変化フラグが“1”であ
るか否かが、さらにステップS5304にて球抜センサ
Lレベルフラグが“1”であるか否かが判別される。
[0103] By making the determination in step S5300 described above, even if the staff at the game parlor performs the ball extraction operation, when executing the prize ball ejection process, etc., the ball extraction process (see FIGS. 42) will be prohibited. Suppose now that the prize balls have not been ejected (processing NO = “0”), and the ball ejecting rod is not inserted into the operating hole of the gaming machine 10, a staff member at the gaming parlor Consider the case where the state changes to the state where the ball extraction rod is inserted. If the prize ball has not been ejected, the determination result in step S5300 is "Yes", and in step S5303 it is determined whether the ball removal sensor change flag is "1", and in step S5304 it is determined whether or not the ball removal sensor change flag is "1". It is determined whether or not the removal sensor L level flag is "1".

【0104】ところで、前述したように、全ての判別フ
ラグは賞球排出制御装置600内の電源が投入された直
後メインルーチン(図12のステップS2)にて“0”
に設定され、又、初期化が行われた後であっても処理N
Oが“0”以外のときに前記ステップS5301,S5
302にて“0”に設定されるので、前記ステップS5
303、S5304の判別結果は共に“No”となりス
テップS5306で球抜センサの出力信号がLレベル(
球抜センサ出力=“0”)であるか否かが判別される。 操作用孔261に球抜き棒が差し込まれていない状態で
は該センサ750の出力信号はLレベルのままであり、
従って該ステップS5306の判別結果は“Yes”と
なり、ステップS5308に進んで球抜センサLレベル
フラグを“1”に設定して本ルーチンを終了する。
By the way, as mentioned above, all the discrimination flags are set to "0" in the main routine (step S2 in FIG. 12) immediately after the power in the prize ball discharge control device 600 is turned on.
Even after initialization is performed, processing N
When O is other than "0", the steps S5301 and S5
Since it is set to "0" in step S302, the step S5
The determination results in steps 303 and S5304 are both "No", and in step S5306, the output signal of the ball removal sensor is set to L level (
It is determined whether or not the ball removal sensor output is "0". When the ball extraction rod is not inserted into the operating hole 261, the output signal of the sensor 750 remains at L level,
Therefore, the determination result in step S5306 is "Yes", and the process proceeds to step S5308, where the ball removal sensor L level flag is set to "1" and this routine is ended.

【0105】その後のループで依然前記球抜センサの出
力信号がLレベルを保持しているときには、球抜センサ
Lレベルフラグが“1”に設定されているので、前記ス
テップS5304の判別結果が“Yes”となり続くス
テップS5310にて今回ループでの球抜センサの出力
信号がハイレベル(球抜センサ出力=“1”)であるか
否かが判別される。このとき(球抜センサの出力信号が
ロウレベルを保持)該判別結果は“No”となって、そ
のまま本ルーチンを終了する。従って、球抜センサの出
力信号がLレベルを保持する限り,ステップS5300
,S5303,S5304,S5310が繰返し実行さ
れることとなる。
When the output signal of the ball removal sensor is still at the L level in the subsequent loop, the ball removal sensor L level flag is set to "1", so the determination result of step S5304 is " In the subsequent step S5310, it is determined whether the output signal of the ball removal sensor in the current loop is at a high level (ball removal sensor output = "1"). At this time (the output signal of the ball removal sensor remains at a low level), the determination result becomes "No" and the present routine is immediately terminated. Therefore, as long as the output signal of the ball removal sensor maintains the L level, step S5300
, S5303, S5304, and S5310 are repeatedly executed.

【0106】この状態から操作用孔に球抜き棒が挿入さ
れ球抜センサの出力信号がLレベルからHレベルに変化
すると、前記ステップS5310の判別結果が“Yes
”となり、続くステップS5312にて今回ループで球
抜センサ750の出力信号がロウレベルからハイレベル
となったことを記憶すべく、球抜センサ変化フラグを“
1”に設定し、次いでステップS5314にて球抜セン
サLレベルフラグを“0”にリセットして、本ルーチン
を終了する。前回ループに続いて今回ループでも出力信
号がHレベルのときには、直前のループの前記ステップ
S5312の実行により球抜センサ変化フラグが“1”
に設定されたのでステップS5303の判別結果が“Y
es”となり、ステップS5316に進んで、今回ルー
プでの球抜センサの出力信号がハイレベル(球抜センサ
出力=“1”)であるか否かが判別される。この判別結
果が“Yes”即ち、前回ループに続いて今回ループで
も出力信号がハイレベルのときには、続くステップS5
318にて球抜フラグを“1”に設定し、更にステップ
S5320にて前記球抜センサ変化フラグを“0”にリ
セットして本ルーチンを終了する。
From this state, when the ball removal rod is inserted into the operation hole and the output signal of the ball removal sensor changes from L level to H level, the determination result in step S5310 becomes "Yes".
”, and in the subsequent step S5312, the ball removal sensor change flag is set to “, in order to remember that the output signal of the ball removal sensor 750 went from low level to high level in this loop.
1", then in step S5314 the ball removal sensor L level flag is reset to "0", and this routine ends. When the output signal is at H level in this loop as well as in the previous loop, if the output signal is at H level, By executing step S5312 of the loop, the ball removal sensor change flag is set to “1”.
is set, the determination result in step S5303 is “Y”.
es", the process advances to step S5316, and it is determined whether the output signal of the ball removal sensor in this loop is at a high level (ball removal sensor output = "1"). This determination result is "Yes". That is, when the output signal is at a high level in the current loop as well as in the previous loop, the subsequent step S5
In step S5320, the ball removal flag is set to "1", and in step S5320, the ball removal sensor change flag is reset to "0", and this routine ends.

【0107】その後のループで球抜センサの出力信号が
依然ハイレベルのときにはステップS5303の判別結
果が“No”に転じ(球抜センサ変化フラグは“0”に
リセットされている)、次いでステップS5304,ス
テップS5306の判別結果は共に“No”となって、
以後ステップS5303,S5304,S5306を繰
返し実行することとなる。一方、球抜センサの出力信号
がロウレベルからハイレベルに変化した直後(前記ステ
ップS5312,ステップS5314が実行された直後
)のループで、球抜センサの出力信号が再びロウレベル
に変化したときには、前記ステップS5316の判別結
果が“No”となり前記ステップS5318(球抜フラ
グ=“1”)を実行することなく、ステップS5322
にて球抜センサLレベルフラグを“1”に設定した後前
記ステップS5320を実行して、本ルーチンを終了す
る。
In the subsequent loop, when the output signal of the ball removal sensor is still at a high level, the determination result in step S5303 changes to "No" (the ball removal sensor change flag has been reset to "0"), and then in step S5304. , the determination results in step S5306 are both "No",
Thereafter, steps S5303, S5304, and S5306 will be repeatedly executed. On the other hand, when the output signal of the ball removal sensor changes to low level again in the loop immediately after the output signal of the ball removal sensor changes from the low level to the high level (immediately after the steps S5312 and S5314 are executed), the output signal of the ball removal sensor changes to the low level again. The determination result in S5316 is "No", and step S5322 is executed without executing step S5318 (ball removal flag = "1").
After setting the ball removal sensor L level flag to "1" in step S5320, the routine ends.

【0108】このように球抜センサの出力信号がロウレ
ベルからハイレベルに変化したときに、少なくとも2回
の処理ループが実行される間に亘って前記出力信号がH
レベルを保持したときにのみ、球抜フラグを“1”に設
定するようにしているのでノイズ等が発生した場合に球
抜フラグが誤って“1”に設定されることがない。図2
2は、図13に示す割込処理のステップS54にて行な
われる補給センサ106の入力処理のサブルーチンを示
すフローチャートである。前述したように補給センサ1
06は、貯留タンク201内の遊技球(予備球)の不足
状態を検知するものであり、貯留された予備球が該タン
ク201内の補給センサ106の設置位置まで溜ってい
るときにロウレベル、そうでないときにハイレベルの信
号を出力するように構成されている。
[0108] When the output signal of the ball removal sensor changes from low level to high level, the output signal remains high for at least two processing loops.
Since the ball out flag is set to "1" only when the level is maintained, the ball out flag will not be erroneously set to "1" when noise or the like occurs. Figure 2
2 is a flowchart showing a subroutine of input processing of the replenishment sensor 106 performed in step S54 of the interrupt processing shown in FIG. As mentioned above, the replenishment sensor 1
06 detects the shortage of game balls (spare balls) in the storage tank 201, and when the stored spare balls have accumulated up to the installation position of the replenishment sensor 106 in the tank 201, the low level is detected. It is configured to output a high level signal when it is not in use.

【0109】今仮りに、タンク201内のセンサ設置位
置まで予備球が充填されていない状態(不足状態)を考
える。この状態で賞球排出制御装置600に電源が投入
され、該ルーチンが開始されると、先ず、ステップS5
002にて該センサ106の出力信号がハイレベル(補
給センサ出力=“1”)であるか否かが判別される。こ
の場合、判別結果は“Yes”となってステップS50
04に進む。ところでCPU610の初期化直後はすべ
てのフラグが“0”に設定されているため、ステップS
5004〜S5010の判別結果はすべて“No”とな
り、ステップS5012にて、今回ループで補給センサ
の出力信号がハイレベルであったことを記憶すべく補給
Hレベルフラグを“1”に設定して本ルーチンを終了す
る。以後のループでは補給Hレベルフラグが“1”に設
定されているので、出力信号がハイレベルの状態が継続
する限りステップS5002,S5004,S5006
,S5008,S5010が繰返し実行されることにな
る。
Let us now consider a situation in which the tank 201 is not filled with spare balls up to the sensor installation position (insufficient state). In this state, when the power is turned on to the prize ball discharge control device 600 and the routine is started, first, step S5
At step 002, it is determined whether the output signal of the sensor 106 is at a high level (replenishment sensor output=“1”). In this case, the determination result is "Yes" and step S50
Proceed to 04. By the way, immediately after the CPU 610 is initialized, all flags are set to "0", so step S
The determination results in steps 5004 to S5010 are all "No", and in step S5012, the replenishment H level flag is set to "1" to remember that the output signal of the replenishment sensor was high level in this loop, and the main process is started. End the routine. Since the replenishment H level flag is set to "1" in the subsequent loop, steps S5002, S5004, and S5006 are performed as long as the output signal remains at a high level.
, S5008, and S5010 are repeatedly executed.

【0110】その後、遊技球(予備球)の補給によって
貯留タンク201内の補給センサ106の設置位置にま
で予備球が充填されると、補給センサ106の出力信号
がロウレベルに転じ、前記ステップS5002の判別結
果が“No”となってステップS5030以降に進む。 ステップS5030が最初に行なわれるときには、前記
補給Hレベルフラグは“1”、それ以外のフラグはすべ
て“0”であるため、該ステップS5030、次のステ
ップS5032の判別結果が共に“No”、続くステッ
プS5034が“Yes”となってステップS5036
,S5038が実行される。ステップS5036では、
前回ループから今回ループにかけて補給センサ106の
出力信号がハイレベルからロウレベルに変化した(立下
がった)ことを記憶すべく、補給立下変化フラグを“1
”に設定し、続くステップS5038では、前回ループ
で“1”に設定された補給Hレベルフラグをリセット(
“0”に設定)し、本ルーチンを終了する。
[0110] Thereafter, when the game balls (spare balls) are replenished to the point where the replenishment sensor 106 is installed in the storage tank 201, the output signal of the replenishment sensor 106 changes to low level, and the step S5002 is completed. The determination result becomes "No" and the process advances to step S5030 and subsequent steps. When step S5030 is performed for the first time, the replenishment H level flag is "1" and all other flags are "0", so the determination results of step S5030 and the next step S5032 are both "No" and continue. Step S5034 becomes “Yes” and step S5036
, S5038 are executed. In step S5036,
In order to remember that the output signal of the replenishment sensor 106 changed from high level to low level (falling) from the previous loop to the current loop, the replenishment fall change flag is set to "1".
", and in the subsequent step S5038, the replenishment H level flag that was set to "1" in the previous loop is reset (
(set to “0”) and end this routine.

【0111】次回ループで引き続き補給センサ106の
出力信号がロウレベルのときには、前回ループのステッ
プS5036で補給立下変化フラグが“1”に設定され
ているので、ステップS5030の判別結果が“Yes
”に転じる。そして、続くステップS5040〜S50
46で、貯留タンク201内の補給センサ106設置位
置まで予備球が充填されていることを記憶すべく補給セ
ンサ立下フラグを“1”に設定(ステップS5040)
すると共に、その値が“1”のときセンサ106の設置
位置に賞品球が無いことを示す補給センサ立上フラグ(
初期化後初めて本ステップが実行されるときは“0”に
設定されている)を“0”に設定し(ステップS504
2)、続いて前記補給立下変化フラグを“0”にリセッ
トする(ステップS5044)と共に、今回ループでの
補給センサ106の出力信号がロウレベルであることを
記憶すべく補給Lレベルフラグを“1”に設定して(ス
テップS5046)本ルーチンを終了する。
When the output signal of the replenishment sensor 106 is still at a low level in the next loop, the determination result in step S5030 is "Yes" because the replenishment fall change flag was set to "1" in step S5036 of the previous loop.
”.Then, the subsequent steps S5040 to S50
In step S5040, the replenishment sensor falling flag is set to "1" to remember that the reserve bulb is filled up to the installation position of the replenishment sensor 106 in the storage tank 201 (step S5040).
At the same time, when the value is "1", a replenishment sensor start-up flag (
When this step is executed for the first time after initialization, it is set to "0") to "0" (step S504).
2) Then, the replenishment fall change flag is reset to "0" (step S5044), and the replenishment L level flag is set to "1" to remember that the output signal of the replenishment sensor 106 in this loop is low level. ” (step S5046) and ends this routine.

【0112】その後、補給センサ106の出力信号がロ
ウレベルである限り、前記ステップS5002,S50
30,S5032,S5034,S5048が繰返し実
行されることになり、このとき、補給センサ立下フラグ
は“1”、補給センサ立上フラグは“0”に保持される
。一方、補給センサ106の出力信号がハイレベルから
ロウレベルに立ち下がった直後のループにおいて、当該
出力信号がハイレベルに立上がってしまった場合(前回
ループでステップS5036が実行されて補給立下変化
フラグが“1”となり、且つ今回ループでセンサ出力が
ハイレベルの場合)には、ステップS5002の判別結
果が“Yes”、ステップS5004の判別結果が“N
o”、ステップS5006の判別結果が“Yes”と云
う具合に判定され、ステップS5028にて前回ループ
から今回ループにかけて出力信号が立上がったことを記
憶すべく補給立上変化フラグを“1”に設定すると共に
、ステップS5029にて前回ループ時に“1”に設定
した補給立下変化フラグを“0”に戻して本ルーチンを
終了する。
Thereafter, as long as the output signal of the replenishment sensor 106 is at a low level, steps S5002 and S50 are performed.
30, S5032, S5034, and S5048 are repeatedly executed, and at this time, the replenishment sensor fall flag is held at "1" and the replenishment sensor rise flag is held at "0". On the other hand, if in the loop immediately after the output signal of the replenishment sensor 106 falls from high level to low level, the output signal rises to high level (step S5036 was executed in the previous loop and the replenishment fall change flag is “1” and the sensor output is at a high level in this loop), the determination result in step S5002 is “Yes” and the determination result in step S5004 is “N”.
o", the determination result in step S5006 is "Yes", and in step S5028, the replenishment rise change flag is set to "1" to remember that the output signal rose from the previous loop to the current loop. At the same time, in step S5029, the replenishment fall change flag, which was set to "1" in the previous loop, is returned to "0", and this routine ends.

【0113】この結果、補給センサ106の出力信号が
立下がった後ハイレベルの状態が所定時間以上(少なく
とも本割込処理が2回行なわれる間)検知されない限り
、補給立下フラグを“1”に設定する(貯留タンク20
1内のセンサ106設定位置まで予備球が充填されてい
ることを示す)処理は行なわれないようになっており、
補給センサの出力信号にノイズが発生した場合等に対処
できるようになっている。次に貯留タンク201内のセ
ンサ106設置位置まで予備球が充填されている状態で
賞球排出制御装置600に電源が投入され、本ルーチン
が開始される場合を考える。
As a result, the replenishment fall flag is set to "1" unless a high level state is detected for a predetermined period of time or longer (while this interrupt processing is performed at least twice) after the output signal of the replenishment sensor 106 falls. (storage tank 20
The process (indicating that the spare bulbs are filled up to the sensor 106 set position in 1) is not performed.
It is possible to deal with cases where noise occurs in the output signal of the replenishment sensor. Next, let us consider a case where the prize ball discharge control device 600 is powered on and this routine is started in a state where the reserve balls are filled up to the sensor 106 installation position in the storage tank 201.

【0114】先ず、ステップS5002では該センサ1
06の出力信号がハイレベル(補給センサ出力=“1”
)であるか否かが判別されるが、この場合、判別結果は
“No”となりステップS5030に進む。CPU61
0の初期化直後はすべてのフラグが“0”に設定されて
いるため、ステップS5030,S5032,S503
4,S5048の判別結果はすべて“No”となり、ス
テップS5054にて、今回ループで補給センサの出力
信号がロウレベルであったことを記憶すべく補給Lレベ
ルフラグを“1”に設定して、本ルーチンを終了する。 以後のループでは補給Lレベルフラグが“1”に設定さ
れているので出力信号がロウレベルの状態が継続する限
りステップS5002,S5030,S5032,S5
034,S5048が繰返し実行されることになる。
First, in step S5002, the sensor 1
06 output signal is high level (replenishment sensor output = “1”
), but in this case, the determination result is "No" and the process advances to step S5030. CPU61
Immediately after initialization of 0, all flags are set to "0", so steps S5030, S5032, and S503
4. All the determination results in S5048 are "No", and in step S5054, the replenishment L level flag is set to "1" to remember that the output signal of the replenishment sensor was low level in this loop, and the main End the routine. In the subsequent loop, since the replenishment L level flag is set to "1", steps S5002, S5030, S5032, and S5 are performed as long as the output signal remains at low level.
034 and S5048 will be repeatedly executed.

【0115】その後、賞品球の排出によってタンク20
1内の予備補給センサ106の設置位置に満たなくなる
と、補給センサ106の出力信号がハイレベルとなり、
前記ステップS5002の判別結果が“Yes”となっ
てステップS5004以降に進む。ステップS5004
が最初に行なわれるときには、前記補給Lレベルフラグ
は“1”、それ以外のフラグはすべて“0”であるため
、ステップS5004、次のステップS5006の判別
結果が共に“No”、続くステップS5008が“Ye
s”となってステップS5014が実行される。このス
テップS5014では、前回ループから今回ループにか
けて補給センサ106の出力信号がロウレベルからハイ
レベルに変化した(立上った)ことを記憶すべく、補給
立上変化フラグを“1”に設定し、続くステップS50
16では、前回ループまでに前述のステップS5054
で“1”に設定されていた補給Lレベルフラグをリセッ
ト(“0”に設定)し、本ルーチンを終了する。
[0115] Thereafter, by discharging the prize ball, the tank 20
1, the output signal of the replenishment sensor 106 becomes high level,
The determination result in step S5002 becomes "Yes" and the process proceeds to step S5004 and subsequent steps. Step S5004
When is performed for the first time, the replenishment L level flag is "1" and all other flags are "0", so the determination results in step S5004 and the next step S5006 are both "No" and the subsequent step S5008 is “Ye
s" and step S5014 is executed. In this step S5014, the replenishment sensor 106 output signal changes from low level to high level (rise) from the previous loop to the current loop. The rising change flag is set to "1", and the subsequent step S50
16, the above-mentioned step S5054 is performed before the previous loop.
The replenishment L level flag, which had been set to "1", is reset (set to "0"), and this routine ends.

【0116】次回ループで引き続き補給センサ106の
出力信号がハイレベルのときには、前回ループのステッ
プS5014で補給立上変化フラグが“1”に設定され
ているので前記ステップS5002の判別を行なった後
前記ステップS5004の判別結果が“Yes”に転じ
る。そして、続くステップS5018〜S5024で、
補給センサ106によって貯留タンク201内の補給セ
ンサ106設置位置に賞品球がなくなったことを記憶す
べく補給センサ立上フラグを“1”に設定(ステップS
5018)すると共に、その値が“1”のとき貯留タン
ク201内のセンサ設置位置に賞品球があることを示す
補給センサ立下フラグ(初期化初めて本ステップが実行
されるときは“0”に設定されている)を“0”に設定
し(ステップS5020)、続いて前記補給立上変化フ
ラグを“0”にリセットする(ステップS5022)と
共に、今回ループでの補給センサ106の出力信号がハ
イレベルであることを記憶すべく補給Hレベルフラグを
“1”に設定して(ステップS5024)本ルーチンを
終了する。
When the output signal of the replenishment sensor 106 continues to be at a high level in the next loop, the replenishment rise change flag was set to "1" in step S5014 of the previous loop, so after the determination in step S5002 is performed, the The determination result in step S5004 changes to "Yes". Then, in the following steps S5018 to S5024,
The replenishment sensor startup flag is set to "1" to record that the replenishment sensor 106 has lost the prize ball at the installation position of the replenishment sensor 106 in the storage tank 201 (step S
5018), and when the value is "1", a replenishment sensor fall flag indicating that there is a prize ball at the sensor installation position in the storage tank 201 (when this step is executed for the first time during initialization, it is set to "0"). ) is set to "0" (step S5020), and then the replenishment start-up change flag is reset to "0" (step S5022), and the output signal of the replenishment sensor 106 in this loop is set to high. The replenishment H level flag is set to "1" to memorize this level (step S5024), and this routine ends.

【0117】その後、補給センサ106の出力信号がハ
イレベルである限り、前記ステップS5002,S50
04,S5006,S5008,S5010が繰返し実
行されることになり、このとき、補給立上フラグは“1
”、補給立下フラグは“0”に保持される。一方、補給
センサ106の出力信号がロウレベルからハイレベルに
立上がった直後のループにおいて、該出力信号がロウレ
ベルに立下がってしまった場合(前回ループでステップ
S5414が実行されて補給立上変化フラグが“1”と
なり、且つ今回ループがロウレベルの場合)には、ステ
ップS5002の判別結果が“No”、ステップS50
30の判別結果が“No”、ステップS5032の判別
結果が“Yes”と云う具合に判定され、ステップS5
050にて前回ループから今回ループにかけて出力信号
が立下がったことを記憶すべく補給立下変化フラグを“
1”に設定すると共に、ステップS5052にて前回ル
ープ時に“1”に設定した補給立上変化フラグを“0”
に戻して本ルーチンを終了する。
Thereafter, as long as the output signal of the replenishment sensor 106 is at a high level, steps S5002 and S50 are performed.
04, S5006, S5008, and S5010 will be executed repeatedly, and at this time, the replenishment start-up flag will be “1”.
", the replenishment fall flag is held at "0". On the other hand, if the output signal of the replenishment sensor 106 falls to a low level in the loop immediately after it rises from a low level to a high level ( If step S5414 was executed in the previous loop and the replenishment rise change flag became "1" and the current loop is at low level), the determination result in step S5002 is "No" and step S50
The determination result in step S5030 is "No" and the determination result in step S5032 is "Yes".
At 050, the replenishment fall change flag is set to " to remember that the output signal fell from the previous loop to this loop.
At the same time, in step S5052, the replenishment start-up change flag, which was set to "1" during the previous loop, is set to "0".
to end this routine.

【0118】以上のように、補給センサ106の出力信
号が立上がった後ハイレベルの状態が所定時間以上(少
なくとも本割込処理が2回行なわれる間)検知されない
限り、補給立上フラグを“1”に設定する(貯留タンク
201内のセンサ106設置位置に賞品球が無くなった
ことを示す)処理は行なわれないようになっており、補
給センサの出力信号にノイズが発生した場合等に対処で
きるようになっている。このようにして“0”又は“1
”に設定される補給センサ立上フラグ及び補給センサ立
下フラグはメイン処理ルーチン(図12)のステップS
23で実行される補給処理(図43)にて用いられる。
As described above, after the output signal of the replenishment sensor 106 rises, unless a high level state is detected for a predetermined period of time or longer (while this interrupt processing is performed at least twice), the replenishment rise flag is set to "1" (indicating that there is no prize ball at the sensor 106 installation position in the storage tank 201) is not performed, and this is done in case noise occurs in the output signal of the replenishment sensor. It is now possible to do so. In this way, “0” or “1”
The replenishment sensor rise flag and replenishment sensor fall flag that are set to ” are set in step S of the main processing routine (Fig.
It is used in the replenishment process (FIG. 43) executed in 23.

【0119】図23は割込処理(図13)のステップS
56にて行なわれるオーバーフロー検出器104の入力
処理のサブルーチンを示すフローチャートである。オー
バーフロー検出器104は、メイン処理ルーチン(図1
2)のステップS19およびS21にて行なわれる処理
(図29および図38)等にて用いられるオーバーフロ
ー球無フラグの値を決定するための信号を出力するため
のもので、オーバーフロー樋156内の賞品球が一定レ
ベル以上に溜った状態のときにその出力信号がハイレベ
ル、一定レベル以下のときにロウレベルとなるように構
成されている。このルーチンが開始されると、先ずステ
ップS5400で検出器の出力がハイレベル(オーバー
フロー出力=“1”)であるか否かが判別される。
FIG. 23 shows step S of interrupt processing (FIG. 13).
56 is a flowchart showing a subroutine of input processing of the overflow detector 104 performed in step 56. The overflow detector 104 performs the main processing routine (FIG.
This is to output a signal for determining the value of the no overflow ball flag used in the processes performed in steps S19 and S21 (FIGS. 29 and 38) of 2), and the prize in the overflow gutter 156. The output signal is configured to be high level when the balls are accumulated above a certain level, and to be low level when the balls are accumulated below the certain level. When this routine is started, first, in step S5400, it is determined whether the output of the detector is at a high level (overflow output = "1").

【0120】今仮りに球導出樋750内のオーバーフロ
ー検出器の設置位置に賞品球が達していない状態から、
賞品球が排出され球導出樋750内の検出器104の位
置に達した状態に変化した場合を考える。賞品球が検出
器の位置に達していない状態ではステップS5400の
判別結果が“No”となる。本ルーチン開始初期には判
別フラグはすべて“0”にリセットされている(図12
のステップS2)ので、続くステップS5402の判別
(オーバーフロー球無フラグが“1”か)、及びステッ
プS5404の判別(オーバーフロー球無監視フラグが
“1”か)の結果は共に“No”となり、オーバーフロ
ー球無監視フラグを“1”に設定し(ステップS540
6)、オーバーフロー球有監視フラグを“0”に設定し
(ステップS5408)、更にオーバーフロー球無タイ
マを所定値(2sec)にセットして(ステップS54
10)本ルーチンを終了する。
[0120] Assuming that the prize ball has not yet reached the installation position of the overflow detector in the ball guide gutter 750,
Let us consider the case where the prize ball has been ejected and has reached the position of the detector 104 in the ball ejection gutter 750. In a state where the prize ball has not reached the position of the detector, the determination result in step S5400 is "No". At the beginning of this routine, all determination flags are reset to “0” (Figure 12
(step S2), the results of the subsequent determination in step S5402 (whether the overflow bulb no-monitoring flag is "1") and step S5404 (whether the overflow bulb no-monitoring flag is "1") are both "No", indicating that there is no overflow. The no-ball monitoring flag is set to "1" (step S540).
6), the overflow ball presence monitoring flag is set to "0" (step S5408), and the overflow ball no timer is set to a predetermined value (2 sec) (step S54).
10) End this routine.

【0121】ここでオーバーフロー球無監視フラグは検
出器の位置に賞品球が達していない状態が2回以上続け
て検知されたか否かを判断(ステップS5404の制御
)するために用いられるフラグであり、一方、オーバー
フロー球有監視フラグは、検出器の位置に賞品球が達し
た状態が2回以上続けて検知されたか否かを判断(ステ
ップS5420の判断)するために用いられるフラグで
ある。次のループで引き続き、賞品球が上記位置に達し
ていないと、前記ステップS5400,S5402の判
別結果が共に“No”、続く前記ステップS5404の
判別結果が“Yes”となってステップS5412が実
行される。
[0121] Here, the overflow ball non-monitoring flag is a flag used to determine whether or not a state in which the prize ball has not reached the detector position has been detected two or more times in a row (control in step S5404). On the other hand, the overflow ball presence monitoring flag is a flag used to determine whether or not a state in which a prize ball has reached the position of the detector has been detected two or more times in a row (determination in step S5420). In the next loop, if the prize ball has not reached the above position, the determination results in steps S5400 and S5402 are both "No", and the determination result in step S5404 is "Yes", and step S5412 is executed. Ru.

【0122】このステップS5412では、前記球無タ
イマがタイムアップしたか否か、即ち、検出器の取付位
置に賞品球が達していないと初めて判別された後(前述
のステップS5406〜S5410実行後)所定時間(
2sec)経過したか否かが判別され、判別結果が“N
o”のときには、続くステップS5414,S5416
をスキップして本ルーチンを終了する。一方、判別結果
が“Yes”のときには、ステップS5414にて、賞
品球が検出器の位置に達していないことを示すべくオー
バーフロー球無フラグを“1”に設定すると共につぎの
ステップS5416にて、オーバーフロー球有フラグ(
このステップが初期化後初めて行なわれるときには初期
値“0”に設定されている)をリセット(“0”に設定
)して本ルーチンを終了する。
[0122] In this step S5412, after it is determined for the first time whether or not the ball-free timer has timed out, that is, the prize ball has not reached the mounting position of the detector (after executing steps S5406 to S5410 described above). Predetermined time (
2 sec) has elapsed, and the determination result is “N
o”, the following steps S5414 and S5416
Skip and end this routine. On the other hand, when the determination result is "Yes", in step S5414, the no overflow ball flag is set to "1" to indicate that the prize ball has not reached the position of the detector, and in the next step S5416, Overflow ball flag (
When this step is performed for the first time after initialization, the initial value (which is set to "0") is reset (set to "0") and this routine ends.

【0123】以後のループで、検出器の位置に賞品球が
達していない限り、ステップS5400の判別結果が“
No”、ステップS5402の判別結果が“Yes”と
なって、これらのステップが繰返し実行される。  次
にこの状態から排出された賞品球が溜ってて検出器10
4の位置まで達した場合を考える。このときステップS
5400の判別結果が“Yes”となり、続くステップ
S5418ではオーバーフロー球有フラグが“1”であ
るか否かが判別される。このオーバーフロー球有フラグ
は前回ループまでに“0”に設定されているので(前記
ステップS5416)この判別結果は“No”となる。 続くステップS5420ではオーバーフロー球有監視フ
ラグが“1”かの結果が行なわれるが、このオーバーフ
ロー球有監視フラグも前回ループまでに“0”に設定(
前記ステップS5408)されているのでこの判別結果
は“No”となり、オーバーフロー球有監視フラグを“
1”に設定すると共に(ステップS5422)、前記オ
ーバーフロー球無監視フラグを“0”に設定し(ステッ
プS5424)、更にオーバーフロー球有タイマを所定
値(2sec)にセットして(ステップS5426)本
ルーチンを終了する。
[0123] In the subsequent loop, unless the prize ball has reached the position of the detector, the determination result in step S5400 is "
"No", the determination result in step S5402 becomes "Yes", and these steps are repeatedly executed. Next, from this state, the ejected prize balls are accumulated and sent to the detector 10.
Let's consider the case where it reaches position 4. At this time, step S
The determination result in step S5400 is "Yes", and in the following step S5418, it is determined whether or not the overflow ball presence flag is "1". Since this overflow ball presence flag was set to "0" by the previous loop (step S5416), the result of this determination is "No". In the following step S5420, it is determined whether the overflow ball presence monitoring flag is "1", but this overflow ball presence monitoring flag was also set to "0" by the previous loop (
Since the above step S5408) has been carried out, the result of this determination is "No" and the overflow ball presence monitoring flag is set to "
1" (step S5422), the overflow ball non-monitoring flag is set to "0" (step S5424), and the overflow ball presence timer is set to a predetermined value (2 sec) (step S5426). This routine end.

【0124】次のループで引き続き、賞品球が検出器1
04の位置まで達していると、前記ステップS5400
の判別結果が“Yes”、ステップS5418の判別結
果が“No”、続く前記ステップS5420の判別結果
が“Yes”となってステップS5428が実行される
。このステップS5428では更に、前記球有タイマが
タイムアップしたか否か、即ち、賞品球が上記位置に達
したと初めて判別された後(前述のステップS5422
〜S5426実行後)所定時間(2sec)経過したか
否かが判別され、判別結果が“No”のときには、続く
ステップS5430,S5432をスキップして本ルー
チンを終了する。一方、判別結果が“Yes”のときに
は、ステップS5430にて、賞品球が検出器の位置ま
で達したことを示すべくオーバーフロー球有フラグを“
1”に設定すると共につぎのステップS5432にて、
オーバーフロー球無フラグをリセット(“0”に設定)
して本ルーチンを終了する。
[0124] Continuing in the next loop, the prize ball is placed on detector 1.
When the position reaches position 04, step S5400 is executed.
The determination result in step S5418 is "No", the determination result in step S5420 is "Yes", and step S5428 is executed. This step S5428 further determines whether or not the ball presence timer has timed up, that is, after it is determined for the first time that the prize ball has reached the above position (in step S5422 described above).
- After execution of S5426) It is determined whether a predetermined time (2 sec) has elapsed, and if the determination result is "No", the following steps S5430 and S5432 are skipped and this routine is ended. On the other hand, when the determination result is "Yes", in step S5430, the overflow ball presence flag is set to indicate that the prize ball has reached the detector position.
1” and in the next step S5432,
Reset the no overflow ball flag (set to “0”)
to end this routine.

【0125】以後のループで、オーバーフロー樋156
内の検出器104の位置まで賞品球が達している限り、
ステップS5400の判別結果が“Yes”、ステップ
S5418の判別結果が“Yes”となって、これらの
ステップが繰返し実行される。以上のように、本入力処
理では、セーフセンサの場合と同様、出力信号がロウレ
ベルからハイレベル(又はハイレベルからロウレベル)
に変化した直後のループでは該ロウレベルからハイレベ
ルの変化(又はハイレベルからロウレベルの変化)を記
憶する(監視フラグを“1”とする)だけに止めておき
、次回ループでも依然ハイレベル(又はロウレベル)で
あって更に上記変化した時点より所定時間(2sec)
が経過した後に初めて本ルーチンの最終出力値であるオ
ーバーフロー球有フラグを“1”(又はオーバーフロー
球無フラグを“1”)に変更するようにしている。この
ような制御手順を採用することによって、ノイズ発生等
によりオーバーフローの出力信号レベルが瞬間的に変化
した場合であっても直ちにその変化を正規の変化と判断
することがなく、当該ノイズ発生等による誤作動を防止
することができるようになっている。
[0125] In the subsequent loop, the overflow gutter 156
As long as the prize ball reaches the position of the detector 104 in
The determination result in step S5400 is "Yes", the determination result in step S5418 is "Yes", and these steps are repeatedly executed. As described above, in this input processing, the output signal changes from low level to high level (or from high level to low level), as in the case of the safe sensor.
In the loop immediately after the change from low level to high level (or change from high level to low level), the change from low level to high level (or change from high level to low level) is only stored (the monitoring flag is set to "1"), and the next loop will still have high level (or change from high level to low level). low level) and further for a predetermined period of time (2 seconds) from the time of the above change.
The overflow ball presence flag, which is the final output value of this routine, is changed to "1" (or the overflow ball no flag to "1") only after the period of time has elapsed. By adopting such a control procedure, even if the overflow output signal level changes instantaneously due to noise generation, the change will not be immediately judged as a normal change, and the change will not be immediately judged as a normal change. It is possible to prevent malfunctions.

【0126】図24は割込処理(図13)のステップS
58にて行なわれる待機球検出器160(以下、半端セ
ンサと記す)の入力処理のルーチンを示すフローチャー
トである。半端センサ160は、後述の賞球開始処理(
図29)にて用いられる半端球有フラグを設定するため
の信号を出力するもので、誘導樋152内に賞品球が十
分貯留されているときに(予備球が2回分の賞球排出個
数以上貯留されているときに)その出力信号がハイレベ
ル、上記個数に満たず半端状態となっているときにロウ
レベルとなるように構成されている。このルーチンが開
始されると、先ずステップS5800で待機球検出器の
出力がハイレベル(待機球検出器出力=“1”)である
か否かが判別される。
FIG. 24 shows step S of interrupt processing (FIG. 13).
58 is a flowchart showing the input processing routine of the standby ball detector 160 (hereinafter referred to as a half-shot sensor) performed in step 58. The half-end sensor 160 performs a prize ball start process (described later).
This outputs a signal for setting the half-ball presence flag used in Figure 29), and when there are enough prize balls stored in the guide gutter 152 (the number of spare balls exceeds the number of prize balls discharged twice). The output signal is configured to be high level (when stored) and to be low level when the number is less than the above number and is in an irregular state. When this routine is started, first, in step S5800, it is determined whether the output of the waiting ball detector is at a high level (standby ball detector output = "1").

【0127】今仮りに誘導樋152の待機球検出器設置
位置まで予備球が貯留されていない状態から、予備球が
補給されて上記設置位置に達した場合を考える。予備球
が上記設置位置に達していない状態ではステップS58
00の判別結果は“No”となる。このとき判別フラグ
はすべて“0”にリセットされている(図12のステッ
プS2)ので、続くステップS5802の判別(半端球
無フラグが“1”か)、及びステップS5804の判別
(半端球無監視フラグが“1”か)の結果は共に“No
”となり、半端球無監視フラグを“1”に設定し(ステ
ップS5806)、半端球有監視フラグを“0”に設定
し(ステップS5808)、更に半端球無タイマを所定
値(2sec)にセットして(ステップS5810)本
ルーチンを終了する。
[0127] Let us now consider a case where spare balls have not been stored up to the standby ball detector installation position in the guide gutter 152, and then the spare balls have been replenished and have reached the installation position. If the spare ball has not reached the above installation position, step S58
The determination result of 00 is "No". At this time, all the determination flags have been reset to "0" (step S2 in FIG. 12), so the determination in the subsequent step S5802 (whether the no hemispherical flag is "1") and the determination in step S5804 (no hemispherical monitoring) is necessary. Whether the flag is “1”), both results are “No”.
”, the hemispherical non-monitoring flag is set to “1” (step S5806), the hemispherical presence monitoring flag is set to “0” (step S5808), and the hemispherical non-monitoring timer is set to a predetermined value (2 sec). Then (step S5810) this routine ends.

【0128】ここで半端球無監視フラグは予備球が上記
設置位置に達していない状態が検知されたか否かを判断
(ステップS5804)するために用いられるフラグで
あり、一方半端球有監視フラグは、予備球が上記設置位
置まで溜っている状態が2回続けて検知されたか否かを
判断(ステップS5820)するために用いられるフラ
グである。次のループで引き続き、予備球が上記設置位
置まで溜っていないと、前記ステップS5800,S5
802の判別結果が共に“No”、続く前記ステップS
5804の判別結果が“Yes”となってステップS5
812が実行される。
[0128] Here, the half-end ball non-monitoring flag is a flag used to judge whether or not a state in which the spare ball has not reached the installation position is detected (step S5804), while the half-end ball presence monitoring flag , is a flag used to determine whether or not a state in which spare balls have accumulated up to the above-mentioned installation position has been detected twice in a row (step S5820). Continuing in the next loop, if the spare balls have not accumulated to the above installation position, steps S5800 and S5
If the determination results of step 802 are both "No", then step S
The determination result of 5804 is “Yes” and the process proceeds to step S5.
812 is executed.

【0129】このステップS5812では更に、前記球
無タイマがタイムアップしたか否か、即ち、予備球が上
記設置位置まにで溜っていないと初めて判別された後(
前述のステップS5806〜S5810実行後)所定時
間(2sec)経過したか否かが判別され、判別結果が
“No”のときには、続くステップS5814,S58
16をスキップして本ルーチンを終了する。一方、前記
ステップS5812の判別結果が“Yes”のときには
、ステップS5814にて、予備球が誘導樋152のセ
ンサ設置位置まで溜っていないことを示すべく半端球無
フラグを“1”に設定すると共に、次のステップS58
16にて、半端球有フラグ(このステップが初期化後初
めて行なわれるときには初期値“0”に設定されている
)をリセット(“0”に設定)して本ルーチンを終了す
る。
In this step S5812, it is further determined whether or not the no-ball timer has timed up, that is, after it is determined for the first time that the spare balls are not accumulated at the above-mentioned installation position (
After executing steps S5806 to S5810 described above), it is determined whether a predetermined period of time (2 seconds) has elapsed, and if the determination result is "No", subsequent steps S5814 and S58 are performed.
Skip step 16 and end this routine. On the other hand, when the determination result in step S5812 is "Yes", in step S5814, a half-end ball missing flag is set to "1" to indicate that the spare balls have not accumulated up to the sensor installation position of the guide gutter 152, and , next step S58
At step 16, the half-sphere presence flag (which is set to an initial value of "0" when this step is performed for the first time after initialization) is reset (set to "0") and this routine ends.

【0130】以後のループで、予備球が上記設置位置ま
で溜らない限り、ステップS5800の判別結果が“N
o”、ステップS5802の判別結果が“Yes”とな
って、これらのステップが繰返し実行される。この状態
から貯留タンク151への遊技球の供給によって予備球
が誘導樋152の半端センサ160の設置位置まで溜る
とステップS5800の判別結果が“Yes”となる。 続くステップS5818で“1”であるか否かの判別が
なされる半端球有フラグはこの時点で未だ初期値“0”
に設定されているのでこの判別結果は“No”となり、
続くステップS5820の判別(半端球有監視フラグが
“1”か)の結果も、前述のステップS5808の実行
により“No”となり、ステップS5822に進む。
[0130] In the subsequent loop, unless the spare balls are accumulated up to the above installation position, the determination result in step S5800 is "N".
o", the determination result in step S5802 becomes "Yes", and these steps are repeatedly executed. From this state, by supplying game balls to the storage tank 151, the spare balls are installed at the half-end sensor 160 of the guide gutter 152. When it reaches this position, the determination result in step S5800 becomes "Yes". At this point, the half-sphere presence flag, which is determined to be "1" in step S5818, still has the initial value "0".
Since it is set to , this determination result is “No”,
The result of the determination in the subsequent step S5820 (whether the half-sphere presence monitoring flag is "1") also becomes "No" by executing the above-described step S5808, and the process proceeds to step S5822.

【0131】ステップS5822では半端球有監視フラ
グを“1”に設定すると共にステップS5824で、前
記半端球無監視フラグを“0”に設定し、更に半端球有
タイマを所定値(2sec)にセットして(ステップS
5826)本ルーチンを終了する。次のループで引き続
き、予備球が半端センサの設置位置まで溜っていると、
前記ステップS5800の判別結果が“Yes”、ステ
ップS5818の判別結果が“No”、続く前記ステッ
プS5820の判別結果が“Yes”(前回ループのス
テップS5822で“1”に設定される)となってステ
ップS5828が実行される。
In step S5822, the hemispherical presence monitoring flag is set to "1", and in step S5824, the hemispherical non-monitoring flag is set to "0", and the hemispherical presence timer is set to a predetermined value (2 sec). (Step S
5826) End this routine. In the next loop, if the spare balls are accumulated up to the half-end sensor installation position,
The determination result in step S5800 is "Yes", the determination result in step S5818 is "No", and the determination result in subsequent step S5820 is "Yes" (set to "1" in step S5822 of the previous loop). Step S5828 is executed.

【0132】このステップS5828では更に、前記球
有タイマがタイムアップしたか否か、即ち、予備球が上
記設置位置まで溜っていると初めて判別された後(前述
のステップS5822〜S5826実行後)所定時間(
2sec)経過したか否かが判別され、判別結果が“N
o”のときには、続くステップS5830,S5832
をスキップして本ルーチンを終了する。一方、判別結果
が“Yes”のとき、即ち予備球がセンサ取付位置まで
溜った後前記所定時間が経過したときには、ステップS
5830にて、予備球が半端センサ221の設置位置ま
で溜っていることを示すべく半端球有フラグを“1”に
設定すると共に、次のステップS5832にて、半端球
無フラグをリセット(“0”に設定)して本ルーチンを
終了する。
[0132] In this step S5828, a predetermined determination is made as to whether or not the ball presence timer has timed up, that is, after it is determined for the first time that the spare balls have accumulated to the above installation position (after executing steps S5822 to S5826 described above). time(
2 sec) has elapsed, and the determination result is “N
o”, the following steps S5830 and S5832
Skip and end this routine. On the other hand, when the determination result is "Yes", that is, when the predetermined time has elapsed after the spare balls have accumulated up to the sensor mounting position, step S
In step S5830, the half-end ball present flag is set to "1" to indicate that the spare balls have accumulated up to the installation position of the half-end sensor 221, and in the next step S5832, the half-end ball absent flag is reset ("0"). ”) and end this routine.

【0133】以後のループで、誘導樋152内の半端セ
ンサ設置位置まで予備球が貯留されている限り、ステッ
プS5800の判別結果が“Yes”、ステップS58
18の判別結果が“Yes”となって、これらのステッ
プが繰返し実行される。以上のように、本入力処理では
、半端センサ221の出力信号がロウレベルからハイレ
ベル(又はハイレベルからロウレベル)に変化した直後
のループでは該ロウレベルからハイレベルの変化(又は
ハイレベルからロウレベルの変化)を記憶する(監視フ
ラグを“1”とする)だけに止めておき、次回ループで
も依然ハイレベル(又はロウレベル)であって且つ上記
変化した時点より所定時間(2sec)が経過した後に
初めて本ルーチンの最終出力値である半端球有フラグを
“1”(又は半端球無フラグを“1”)に変更するよう
にしている。このような制御手順を採用することによっ
て、ノイズ発生等により半端センサの出力信号レベルが
瞬間的に変化した場合であっても直ちにその変化を正規
の変化と判断することがなく、当該ノイズ発生等による
誤作動を防止することができるようになっている。
[0133] In the subsequent loop, as long as the spare balls are stored up to the half-end sensor installation position in the guide gutter 152, the determination result in step S5800 is "Yes" and step S58
The determination result of step 18 becomes "Yes", and these steps are repeatedly executed. As described above, in this input processing, in the loop immediately after the output signal of the half-end sensor 221 changes from a low level to a high level (or from a high level to a low level), the output signal changes from the low level to a high level (or from a high level to a low level). ) (set the monitoring flag to "1"), and it is only stored at the high level (or low level) in the next loop and only after a predetermined time (2 seconds) has elapsed from the time of the above change. The final output value of the routine, the half-sphere presence flag, is changed to "1" (or the half-sphere no flag is changed to "1"). By adopting such a control procedure, even if the output signal level of an odd sensor changes instantaneously due to noise occurrence, the change will not be immediately judged as a normal change, and the noise occurrence etc. It is possible to prevent malfunction due to

【0134】図25は割込処理(図13)の前記ステッ
プS60にて行なわれるアウトセンサ107の出力信号
の入力処理ルーチンのフローチャートで、この処理によ
ってアウト玉数が計数される。本ルーチンが開始される
と、先ずステップS6002にてアウトセンサ変化フラ
グが“1”であるか否かが判定される。このフロー中に
おいて使用される全てのフラグは最初の初期化で“0”
にクリアされており、最初のアウト玉検出信号が入って
くるまでアウトセンサ変化フラグは“0”であるので、
ステップS6002ではまず“No”と判定される。す
ると、続いてステップS6004にてアウトロウレベル
フラグが“1”であるか否かが判定される。ここで、“
No”ならステップS6006でアウトセンサ107の
出力をみてロウレベルか否か判定し、ロウならアウトロ
ウレベルフラグを“1”に設定し(ステップS6008
)、ハイなら何もせずにルーチンを終了する。
FIG. 25 is a flowchart of a processing routine for inputting the output signal of the out sensor 107 performed in step S60 of the interrupt processing (FIG. 13), and the number of out balls is counted by this processing. When this routine is started, first in step S6002 it is determined whether the out-sensor change flag is "1". All flags used during this flow are “0” at first initialization.
The out-sensor change flag is “0” until the first out-ball detection signal is received.
First, in step S6002, the determination is "No". Then, in step S6004, it is determined whether the outlaw level flag is "1". here,"
If "No", the output of the out sensor 107 is checked in step S6006 to determine whether it is low level or not, and if it is low, the out low level flag is set to "1" (step S6008
), if high, exit the routine without doing anything.

【0135】このようにして一旦アウトロウレベルフラ
グが“1”に設定されると、次のルーチンではステップ
S6004で“Yes”と判定されてステップS601
0へ移行し、アウトセンサ107からの信号がハイレベ
ル(“1”)か否か判定する。ここで、アウトセンサ1
07からの信号がハイレベルであれば、アウトセンサ変
化フラグを“1”に設定し、アウトロウレベルフラグを
“0”にクリアして終了する(ステップS6012,S
6014)。
[0135] Once the outlaw level flag is set to "1" in this way, in the next routine, a determination of "Yes" is made in step S6004, and the process proceeds to step S601.
0, and it is determined whether the signal from the out sensor 107 is at a high level (“1”). Here, out sensor 1
If the signal from S07 is at a high level, the out sensor change flag is set to "1", the out low level flag is cleared to "0", and the process ends (steps S6012 and S6012).
6014).

【0136】次にルーチンが開始されると、ステップS
6002で“Yes”と判定されてステップS6016
へ進み、アウトロウレベルフラグが“0”か否か判定さ
れる。通常はアウトセンサ変化フラグが“1”のときは
アウトロウレベルフラグが“0”である(ステップS6
012とS6014参照)ので、“Yes”と判定され
てステップS6018へ進む。ステップS6018では
アウトセンサ107からの信号がハイレベル(“1”)
か否か判定する。ここで、アウトセンサ107からの信
号がハイレベルであれば、アウトセンサ変化フラグを“
0”にクリアし、アウトカウンタをインクリメント(+
1)して終了する(ステップS6020,S6022)
。その後、ステップS6002からS6004,S60
06と上記手順を繰り返してアウト玉数を計数して行く
Next, when the routine is started, step S
If the determination in step S6002 is “Yes”, the process proceeds to step S6016.
Then, it is determined whether the outlaw level flag is "0" or not. Normally, when the out sensor change flag is "1", the out low level flag is "0" (step S6
012 and S6014), the determination is "Yes" and the process advances to step S6018. In step S6018, the signal from the out sensor 107 is at a high level (“1”)
Determine whether or not. Here, if the signal from the out sensor 107 is high level, the out sensor change flag is set to “
0" and increment the out counter (+
1) and end (steps S6020, S6022)
. After that, steps S6002 to S6004, S60
06 and the above steps are repeated to count the number of out balls.

【0137】上記ルーチンはタイマ割込みで0.5m秒
ごとに繰り返されるため、ステップS6010において
0.5m秒以下のノイズを拾ってアウトセンサ変化フラ
グが“1”に設定されたような場合には、ステップS6
018で“No”と判定されるため、ステップS602
4へ移行してアウトロウレベルフラグを“1”に設定し
て終了する。すなわち、上記ルーチンでは、アウトセン
サの立上りエッジのみで信号を計数のではなく、立上り
エッジを検出しかつハイレベルを確認して始めてアウト
玉数をインクリメントしている。そのため、ノイズをセ
ンサ出力として誤計数するのが防止される。しかも、上
記ステップS6024でアウトロウレベルフラグが“1
”に設定されると、次のルーチンのときにステップS6
016で“No”と判定されて、アウトセンサ変化フラ
グが“0”にクリアされる(ステップS6026)ため
、ノイズによるアウトセンサ変化フラグの設定もキャン
セルされる。
[0137] Since the above routine is repeated every 0.5 msec by a timer interrupt, if noise of 0.5 msec or less is picked up in step S6010 and the out-sensor change flag is set to "1", Step S6
Since the determination in 018 is “No”, step S602
4, the outlaw level flag is set to "1", and the process ends. That is, in the above routine, the number of out balls is not counted only by the rising edge of the out sensor, but the number of out balls is incremented only after the rising edge is detected and the high level is confirmed. Therefore, it is possible to prevent noise from being incorrectly counted as a sensor output. Moreover, the outlaw level flag is set to “1” in step S6024 above.
”, step S6 is executed in the next routine.
Since the determination in step S6026 is "No" and the out-sensor change flag is cleared to "0" (step S6026), the setting of the out-sensor change flag due to noise is also canceled.

【0138】図26には、上記割込み処理とは別に、交
流電源の電源波形の数を数えて所定数以下になったとき
に停電の発生を検出する停電検出手段691からの割込
み信号によって行なわれる停電割込み処理の具体的手順
の一例が示されている。この割込みルーチンでは、まず
排出処理中か否か調べて排出処理中でなければそのまま
何もせずに終了する(ステップS3002)。また、排
出処理中であれば2つの排出経路の各排出ソレノイド7
41a,741bをオフさせてから排出レジスタ1と2
(図31参照)の値をバックアップされたRAM内に記
憶させる(ステップS3004−S3010)。それか
ら、賞球排出中か玉貸し排出中か判定して(ステップS
3012)、賞球排出中なら未排出の賞球数データをR
AMに記憶し(ステップS3014)、玉貸し排出中な
ら未排出の貸し玉数データおよび中断する排出が玉貸し
排出であることをRAMに記憶する(ステップS301
4,S3018)。そして、最後にバックアップされた
RAM内のアドレスに割り付けられた停電フラグを“1
”に設定してルーチンを終了する(ステップS3020
)。上記割込み処理は極めて短時間に行なえるので、停
電検出手段691からの割込み信号が入ってから実際に
パワーがなくなるまでの間に終了することができる。
FIG. 26 shows, in addition to the above-mentioned interrupt processing, an interrupt signal from a power outage detection means 691 that counts the number of power waveforms of the AC power source and detects the occurrence of a power outage when the number falls below a predetermined number. An example of a specific procedure for processing a power outage interrupt is shown. In this interrupt routine, it is first checked whether or not the discharge process is in progress, and if the discharge process is not in progress, the routine ends without doing anything (step S3002). In addition, if the discharge process is in progress, each discharge solenoid 7 of the two discharge routes
After turning off 41a and 741b, discharge registers 1 and 2
(See FIG. 31) is stored in the backed up RAM (steps S3004-S3010). Then, it is determined whether the prize ball is being ejected or the ball rental ball is being ejected (step S
3012), if the prize ball is being discharged, the undischarged prize ball number data is R
AM (step S3014), and if balls are being discharged, data on the number of undischarged rental balls and information that the interrupted discharge is a ball rental discharge are stored in the RAM (step S301).
4, S3018). Then, the power outage flag assigned to the last backed up address in the RAM is set to “1”.
” and ends the routine (step S3020
). Since the above-mentioned interrupt processing can be performed in an extremely short time, it can be completed between the time when the interrupt signal from the power failure detection means 691 is received and the time when the power is actually lost.

【0139】図27には、上記タイマ割込みおよび停電
割込み処理と平行して行なわれる図12のメイン処理フ
ロー中で実行される排出装置不正監視処理S3の具体的
手順の一例が示されている。この監視処理S3では、ま
ず2系統の排出系のうち一方の排出ソレノイド741a
がオンされているか調べ(ステップS1101)、“N
o”のときは排出センサ730aの検出信号が立ち上が
ったことを示す立上りフラグが「1」か否か判定し(ス
テップS1102)、“Yes”なら排出不正監視カウ
ンタ1をインクリメントする(ステップS1104)。 排出ソレノイドがオンされないにもかかわらず排出球が
あった場合にこれを不正排出として検出するためである
FIG. 27 shows an example of a specific procedure of the discharge device fraud monitoring process S3 executed in the main process flow of FIG. 12, which is performed in parallel with the timer interrupt and power outage interrupt processes. In this monitoring process S3, first, one discharge solenoid 741a of the two discharge systems is
is turned on (step S1101), and “N
o", it is determined whether a rising flag indicating that the detection signal of the discharge sensor 730a has risen is "1" (step S1102), and if "Yes", the discharge fraud monitoring counter 1 is incremented (step S1104). This is to detect the presence of an ejection bulb as illegal ejection even though the ejection solenoid is not turned on.

【0140】上記ステップS1101で“Yes”すな
わち排出ソレノイドがオフされていると判定すると、ス
テップS1103へ進んで排出不正監視カウンタ1をク
リアする。排出ソレノイドがオンされないにもかかわら
ず排出球があって、上記ステップS1104で排出不正
監視カウンタ1をインクリメントした後は、排出センサ
1の立上りフラグを一旦「0」にクリアしてから上記排
出不正監視カウンタ1の値が「3」以上になったか否か
判定する(ステップS1105,S1106)。排出用
のストッパ745と排出センサ730とが離れた位置に
設けられているため、排出ソレノイドをオフさせても直
ちにセンサからの信号がなくなるわけでなく、少なくと
も排出センサから排出ソレノイドまでの間に存在可能な
予備球の数だけは検出信号が入ってくることを考慮した
ものである。従って、このしきい値「3」は、排出セン
サから排出ソレノイドまでの距離に応じて適宜変更され
るべき値である。
[0140] If "Yes" is determined in step S1101, that is, the discharge solenoid is turned off, the process proceeds to step S1103, where the discharge fraud monitoring counter 1 is cleared. If there is an ejection bulb even though the ejection solenoid is not turned on, and after incrementing the emission irregularity monitoring counter 1 in step S1104, the rising flag of the emission sensor 1 is once cleared to "0", and then the above-mentioned emission irregularity monitoring is performed. It is determined whether the value of counter 1 has become "3" or more (steps S1105, S1106). Since the discharge stopper 745 and the discharge sensor 730 are provided at a separate position, even if the discharge solenoid is turned off, the signal from the sensor does not immediately disappear, but at least the signal from the sensor is present between the discharge sensor and the discharge solenoid. The number of possible spare balls is determined by taking into account the incoming detection signal. Therefore, this threshold value "3" is a value that should be changed as appropriate depending on the distance from the discharge sensor to the discharge solenoid.

【0141】上記ステップS1106で、排出不正監視
カウンタ1の値が「3」以上になったと判定したときは
ステップS1113へ移行して流路切換弁158の駆動
用ソレノイド(以下、玉抜ソレノイドと称する)をオン
させる。これによって、排出ソレノイドが不正に作動し
たときは排出された玉が供給皿121でなく玉抜路を通
ってパチンコ遊技店の回収樋へ誘導され、不当な利益を
与えないようにすることができる。玉抜ソレノイドをオ
ンさせた後は、不正排出があったことを示す排出不正フ
ラグに「1」を立ててから玉貸し排出表示ランプ113
および賞球玉貸し排出表示ランプ112を点滅させて不
正状態の発生を外部に表示させる(ステップS1114
,S1115,S1116)。
[0141] If it is determined in step S1106 that the value of the discharge fraud monitoring counter 1 has become ``3'' or more, the process moves to step S1113 and the solenoid for driving the flow path switching valve 158 (hereinafter referred to as the ball removal solenoid) is activated. ) is turned on. As a result, when the discharge solenoid is erroneously operated, the discharged balls are guided to the collection gutter of the pachinko game parlor through the ball extraction path instead of through the supply tray 121, and it is possible to prevent unfair profits from being given. . After turning on the ball ejection solenoid, set "1" to the illegal ejection flag indicating that there has been an illegal ejection, and then turn on the ball lending ejection display lamp 113.
and causes the prize ball rental display lamp 112 to blink to externally indicate the occurrence of an illegal state (step S1114).
, S1115, S1116).

【0142】上記ステップS11101で“No”と判
定されたときは、ステップS11104へ進み、他方の
排出系2について第1の排出系1に関する上記処理S1
1101−S11106と同様の処理S11107−S
11112を実行し、排出不正監視カウンタ2の値が「
3」以上になったと判定したときはステップS1111
3へ移行して玉抜ソレノイドをオンさせる。図29には
、排出装置不正解除処理S14の具体的手順の一例が示
されている。図13のメインフローのステップS111
4で排出不正フラグが「1」にされ、図12のフローの
ステップS4で“Yes”と判定されると、図32の排
出装置不正解除処理S14が開始される。この排出装置
不正解除処理S14では、まずステップS1121とS
1122で図19,図20のルーチン中で設定される排
出経路1と2のエラー解除フラグが「1」か否か判定し
、いずれのフラグも「1」のときはステップS1123
で上記排出不正フラグを「0」にクリアしてから、玉抜
ソレノイド158をオフする(ステップS1124)。 それから、排出不正を示す点滅状態の貸し玉排出表示ラ
ンプ113と賞球排出表示ランプ112を消灯させて排
出装置不正解除処理が終了する(ステップS1125,
S1126)
[0142] When the determination in step S11101 is "No", the process advances to step S11104, and the above process S1 regarding the first exhaust system 1 is performed for the other exhaust system 2.
Processing S11107-S similar to 1101-S11106
11112, and the value of emission fraud monitoring counter 2 is “
3" or more, step S1111
Move to step 3 and turn on the ball removal solenoid. FIG. 29 shows an example of a specific procedure of the ejection device unauthorized release process S14. Step S111 of the main flow in FIG.
If the discharge fraud flag is set to "1" in Step 4 and "Yes" is determined in step S4 of the flow of FIG. 12, the discharge device fraud cancellation process S14 of FIG. 32 is started. In this discharge device unauthorized release process S14, first, steps S1121 and S
In step S1122, it is determined whether the error release flags for discharge routes 1 and 2 set in the routines of FIGS. 19 and 20 are "1". If both flags are "1", step S1123
After clearing the discharge irregularity flag to "0", the ball removal solenoid 158 is turned off (step S1124). Then, the rental ball ejection display lamp 113 and the prize ball ejection display lamp 112, which are in a blinking state indicating an illegal ejection, are turned off, and the ejection device illegal release process ends (step S1125,
S1126)

【0143】図29は、前述した賞球排出制御装置のメ
インルーチン(図12)のステップS19で実行される
賞球開始処理のサブルーチンを示すフローチャートであ
る。このサブルーチンは、メインルーチン(図12)の
ステップS12で賞球要求を検出すると、処理ナンバー
が「1」にされ、ステップS9で“Yes”と判定され
ることによって開始される。このサブルーチンが開始さ
れると、まず前記図19および図20の排出センサレベ
ル入力処理ルーチンで設定される排出センサ1玉有フラ
グおよび排出センサ2玉有フラグと、図24の半端セン
サ入力処理ルーチンで設定される半端センサ玉有フラグ
さらに図23のオーバーフロー検出器入力処理ルーチン
で設定されるオーバーフロー玉有フラグを調べて(ステ
ップS81−S84)、いずれか一つのフラグでも“0
”になっている場合には排出可能フラグを“0”にクリ
アして終了する(ステップS85)。一方、すべてのフ
ラグが“1”になっている場合には排出可能フラグを“
1”にセットし(ステップS86)、図15の賞球デー
タ検出処理ルーチンで読み込んだ賞球データを排出レジ
スタ0にセットする(ステップS87)。また、賞球排
出表示ランプ112を点灯させ、賞球音要求フラグを“
1”にセットしてから、次の図30に示す排出開始処理
ルーチンを実行した後、処理ナンバーを「2」にして終
了する(ステップS88−S91)。
FIG. 29 is a flowchart showing a subroutine of the prize ball start process executed in step S19 of the main routine (FIG. 12) of the prize ball discharge control device described above. This subroutine is started when a prize ball request is detected in step S12 of the main routine (FIG. 12), the processing number is set to "1", and a determination of "Yes" is made in step S9. When this subroutine is started, first the discharge sensor 1 flag and the discharge sensor 2 flag set in the discharge sensor level input processing routine shown in FIGS. 19 and 20, and the irregular sensor input processing routine shown in FIG. Furthermore, the overflow detection flag set in the overflow detector input processing routine shown in FIG.
”, the ejection possible flag is cleared to “0” and the process ends (step S85). On the other hand, when all the flags are “1”, the ejection possible flag is cleared to “0” and the process ends (step S85).
1" (step S86), and sets the prize ball data read in the prize ball data detection processing routine of FIG. Set the ball sound request flag to “
After setting the number to ``1'' and executing the discharge start processing routine shown in FIG. 30, the process number is set to ``2'' and the process ends (steps S88-S91).

【0144】なお、上記ステップS89でセットされる
賞球音要求フラグは遊技盤制御装置400に対して出力
する賞球排出音発生要求信号Dを後述の音要求出力処理
(図49)でロウレベルにアサートさせるためのもので
ある。図30に示す排出開始処理ルーチンでは、1つの
入賞球(セーフ球)に対して1回行われる所定数の賞品
球の排出を行なうに当り、上記所定数(賞球設定数)の
賞品球を、2条に設けられた賞球導出樋710(図3参
照)の一方から幾つ排出し、他方から幾つ排出するか等
排出の態様を予め決定すると共に、排出ソレノイド1及
び/又は排出ソレノイド2を励磁(ON)して上記態様
に従った賞品球の排出を開始させるものである。
[0144] The prize ball sound request flag set in step S89 above sets the prize ball ejection sound generation request signal D output to the game board control device 400 to a low level in the sound request output process (FIG. 49) to be described later. This is for asserting. In the discharge start processing routine shown in FIG. 30, when discharging a predetermined number of prize balls that is performed once for one winning ball (safe ball), the predetermined number of prize balls (set number of prize balls) is , the mode of ejection is determined in advance, such as how many balls are ejected from one side of the prize ball outlet gutter 710 (see FIG. 3) provided in the second row, and how many are ejected from the other, and the ejection solenoid 1 and/or the ejection solenoid 2 is The magnet is excited (ON) to start discharging the prize balls according to the above embodiment.

【0145】本ルーチンが開始されると、先ず、ステッ
プS102にて、排出レジスタ0の値が「1」に設定さ
れているか否か判定される。排出レジスタ0の値が「1
」でないときは、ステップS104で排出レジスタ0の
値が「8」以下であるか否かが判定される。これらステ
ップS102およびS104判定の結果、排出レジスタ
0の値が「1」のときにはステップS106へ移行して
1個排出フラグを“1”に設定し、交互排出フラグを“
0”にクリアして(ステップS108,S110)から
1個排出タイマをセットしてステップS116の反転フ
ラグの判定へ移行する。一方、前記ステップS104で
の判定の結果、排出レジスタ0の値が「8」以上である
と判定したときは、ステップS112へ移行して1個排
出フラグを“0”にクリアし、交互排出フラグを“1”
に設定(ステップS114)してからステップS118
の反転フラグの判定へ移行する。さらに、前記ステップ
S104での判定の結果、排出レジスタ0の値が「8」
以下であると判定したのときには、ステップS124以
降の処理を実行する。
[0145] When this routine is started, first, in step S102, it is determined whether the value of the discharge register 0 is set to "1". The value of discharge register 0 is “1”
”, it is determined in step S104 whether the value of the discharge register 0 is “8” or less. As a result of the determination in steps S102 and S104, if the value of the discharge register 0 is "1", the process moves to step S106, where the one discharge flag is set to "1", and the alternate discharge flag is set to "1".
0" (steps S108, S110), sets the one discharge timer, and moves to step S116 to determine the inversion flag. On the other hand, as a result of the determination in step S104, the value of the discharge register 0 is "8" or more, the process moves to step S112, where the single discharge flag is cleared to "0" and the alternate discharge flag is cleared to "1".
(step S114), and then step S118
The process moves on to determination of the inversion flag. Furthermore, as a result of the determination in step S104, the value of the discharge register 0 is "8".
If it is determined that the value is below, the processing from step S124 onwards is executed.

【0146】ここで、交互排出フラグは、本ルーチンに
引き続いて行なわれる排出処理(図33)の賞品球排出
の態様を後述の2つの態様(排出ソレノイド1,2を交
互に作動させて賞品球を排出する交互排出処理または排
出ソレノイド1,2を同時に作動させて賞品球を排出す
る併用排出処理)から選択する際に用いられる判定フラ
グであり、交互排出フラグが“1”に設定されていると
きには交互排出処理(賞球設定数が1〜8のとき)が、
“0”に設定されているときには併用排出処理(賞球設
定数が9〜15)が夫々行なわれる。このように交互排
出フラグの値が“1”に設定されたのちにはステップS
116で反転フラグの判定が行なわれる。
[0146] Here, the alternate discharge flag specifies the mode of prize ball discharge in the discharge process (FIG. 33) that is performed following this routine. This is a judgment flag used when selecting from an alternate discharge process in which prize balls are discharged or a combined discharge process in which discharge solenoids 1 and 2 are activated simultaneously to discharge prize balls, and the alternate discharge flag is set to "1". Sometimes, the alternate ejection process (when the number of prize balls set is 1 to 8) is
When it is set to "0", the combined discharge process (the set number of prize balls is 9 to 15) is performed. After the value of the alternate discharge flag is set to "1" in this way, step S
At 116, the inversion flag is determined.

【0147】この反転フラグは、賞品球の排出を交互排
出処理にて行うに際し、球排出装置170の第1の排出
ソレノイド1(741a)と第2の排出ソレノイド2(
741b)とを交互に作動させることにより2つ上の排
出経路を均等に使用して耐久性を向上させるために設け
られたもので、「反転フラグ」の値は、ソレノイドが1
回作動される毎すなわち1排出が終了する毎に“1”ま
たは“0”に反転される。この反転フラグの判定結果が
“Yes”のときには、ステップS120で排出ソレノ
イド1を励磁して、第1の賞球導出樋からの排出を開始
させてから、反転フラグを“0”に反転させる(ステッ
プS121)。また、前記ステップS118の判定結果
が“No”のときには、ステップS122で排出ソレノ
イド2を励磁して第2の賞球導出樋から賞品球の排出を
開始させてから、反転フラグを“1”に反転させる(ス
テップS123)。
[0147] This reversal flag is used when the prize balls are discharged in an alternate discharge process, when the first discharge solenoid 1 (741a) and the second discharge solenoid 2 (
741b) is provided to improve durability by equally using the two discharge paths above, and the value of the "reversal flag" is set when the solenoid is
It is inverted to "1" or "0" each time it is operated, that is, each time one discharge is completed. When the determination result of this reversal flag is "Yes", the discharge solenoid 1 is energized in step S120 to start discharging from the first prize ball derivation gutter, and then the reversal flag is reversed to "0" ( Step S121). Further, when the determination result in step S118 is "No", the discharge solenoid 2 is excited in step S122 to start discharging the prize ball from the second prize ball derivation gutter, and then the reversal flag is set to "1". It is reversed (step S123).

【0148】一方、賞球排出数が9以上のとき(前記ス
テップS104の判定結果が“No”のとき)には、併
用排出処理を行なうべくステップS124へ進む。この
併用排出処理では、先ず、ステップS124にて後述す
る排出数分割処理(図31)を行なった後、1個排出フ
ラグおよび交互排出フラグを“0”に設定し(ステップ
S126,S128)、後述の併用排出処理にて用いら
れる排出1終了フラグ,排出2終了フラグの値を“0”
にリセットする(ステップS130,ステップS132
)と共に排出ソレノイド1、排出ソレノイド2を共に励
磁して併用排出を開始させる(ステップS134,ステ
ップS136)。しかる後、ステップS138で、後述
する賞球排出処理(図32)にて排出ウェイトタイマを
起動するときに“1”に設定される排出ウェイトフラグ
を“0”にリセットする。
On the other hand, when the number of prize balls discharged is 9 or more (when the determination result in step S104 is "No"), the process advances to step S124 to perform a combined discharge process. In this combined discharge process, first, in step S124, a discharge number division process (FIG. 31), which will be described later, is performed, and then the one-piece discharge flag and the alternate discharge flag are set to "0" (steps S126, S128), which will be described later. Set the values of the discharge 1 end flag and discharge 2 end flag used in the combined discharge process to “0”.
(Step S130, Step S132
), both discharge solenoid 1 and discharge solenoid 2 are excited to start combined discharge (steps S134, S136). Thereafter, in step S138, the discharge weight flag, which is set to "1" when starting the discharge weight timer in the prize ball discharge process (FIG. 32) to be described later, is reset to "0".

【0149】次のステップS140では、1個排出処理
、交互排出処理又は併用排出処理が終了したときにその
旨を示すべく“1”に設定される排出終了フラグが“0
”にリセットされ、続くステップS142では排出監視
タイマ(例えば3秒)をセットして終了する。この排出
監視タイマは、賞品球の排出が開始された時点より、所
定時間が経過するまでに後述の交互排出処理又は併用排
出処理によって排出すべき全ての賞品球の排出が完了し
たか否かを監視するために設けられるものである。図3
1は、上記排出開始処理(図30)のステップS124
にて実行される排出数分割処理のサブルーチンを示すフ
ローチャートである。
In the next step S140, the discharge completion flag, which is set to "1" to indicate that the single discharge process, alternate discharge process, or combined discharge process has ended, is set to "0".
”, and in the subsequent step S142, a discharge monitoring timer (for example, 3 seconds) is set and the process ends. This is provided to monitor whether or not all the prize balls to be ejected through the alternate ejection process or the combined ejection process have been completely ejected.Figure 3
1 is step S124 of the discharge start process (FIG. 30).
3 is a flowchart showing a subroutine of discharge number division processing executed in FIG.

【0150】このルーチンは球の排出が後述の併用排出
処理にて行われるとき(排出レジスタ0の値が9以上2
5以下のとき)になされる処理である。これは、併用排
出処理では排出ソレノイド1,2が1回の制御ループで
同時に作動されるため、予め前記排出レジスタ0に記憶
された値を2つに分けて排出レジスタ1と2に夫々設定
しておくものである。そしてこれら2つの排出レジスタ
1,2の値に応じて排出ソレノイド1,2が夫々独立し
て作動されるようになっている。本ルーチンが開始され
ると、ステップS151〜S175にて順次、排出レジ
スタの値が、「9」であるか否か(ステップS151)
、「10」であるか否か(ステップS152)、「11
」であるか否か(ステップS153)、「12」である
か否か(ステップS154)、そして以下同様にして「
25」までが判定される(ステップS175)。 「25」まで判定を行なうのは、玉貸し排出の際には一
回の排出要求に対して25個の玉が排出されるからであ
る。
[0150] This routine is executed when the ball is ejected in the combined ejection process described later (when the value of ejection register 0 is 9 or more and 2
5 or less). This is because in the combined discharge process, discharge solenoids 1 and 2 are operated simultaneously in one control loop, so the value stored in the discharge register 0 is divided into two and set in discharge registers 1 and 2, respectively. It is something to keep. The discharge solenoids 1 and 2 are operated independently according to the values of these two discharge registers 1 and 2, respectively. When this routine starts, steps S151 to S175 sequentially check whether the value of the discharge register is "9" (step S151).
, “10” (step S152), “11”
” (step S153), “12” (step S154), and the following in the same way.
25'' is determined (step S175). The reason why the determination is made up to "25" is that 25 balls are ejected in response to one ejection request during ball lending and ejection.

【0151】前記ステップS151の判定結果が“Ye
s”のときにはステップS181にて排出レジスタ1の
値を「5」に設定すると共にステップS182にて排出
レジスタ2の値を「4」に設定して本ルーチンを終了す
る。以後、前記ステップS152の判定結果が“Yes
”のときには排出レジスタ1,2の値を共に「5」に設
定し(ステップS183,ステップS184)、前記ス
テップS153の判定結果が“Yes”のときには排出
レジスタ1の値を「6」に設定する(ステップS185
)とともに排出レジスタ2の値を“5”に設定し(ステ
ップS186)、前記ステップS154の判定結果が“
Yes”のときには排出レジスタ1,2の値を共に「6
」に設定し(ステップS187,ステップS188)。 以下同様にして、排出レジスタ0の値が奇数のときには
排出レジスタ1に排出レジスタ2よりも1つだけ大きな
値を設定し、排出レジスタ0の値が偶数のときには排出
レジスタ1と排出レジスタ2に同じ値を設定する。
[0151] The determination result in step S151 is "Yes".
s'', the value of the discharge register 1 is set to ``5'' in step S181, and the value of the discharge register 2 is set to ``4'' in step S182, and this routine ends. Thereafter, the determination result in step S152 is "Yes".
”, the values of discharge registers 1 and 2 are both set to “5” (step S183, step S184), and when the determination result of step S153 is “Yes”, the value of discharge register 1 is set to “6”. (Step S185
), the value of the discharge register 2 is set to "5" (step S186), and the determination result of step S154 is "5".
When “Yes”, the values of discharge registers 1 and 2 are set to “6”.
” (step S187, step S188). Similarly, if the value of discharge register 0 is an odd number, set the value in discharge register 1 to one value larger than discharge register 2, and if the value of discharge register 0 is an even number, set the same value to discharge register 1 and discharge register 2. Set the value.

【0152】図32は、前述した賞球排出制御装置側の
CPU610によって実行されるメインルーチン(図1
2)のステップS18において実行される賞球排出処理
のサブルーチンを示すフローチャートである。本ルーチ
ンはメインルーチン(図12)のステップS8において
、処理ナンバーが「2」と判定されたときに開始され、
先ず、ステップS202にて排出ウェイトフラグが“1
”であるか否かが判別される。この排出ウェイトフラグ
は、1つのセーフ球に対応した所定数(賞球排出数)の
賞品球の排出が終了して後述のウェイトタイマが作動し
たときに(ステップS210)その値が“1”に設定さ
れ、前述の排出開始処理(図30)のステップS138
にて“0”にリセットされるものである。従って、1つ
のセーフ球に対応した所定数(賞球排出数)の賞品球の
排出が終了した後初めてステップS202の判別結果が
“Yes”となる。このステップS202の判別結果が
“No”であるうちは、ステップS204に進んで、排
出処理(図33)による賞品球の排出を行なった後ステ
ップS206に進む。このステップS206では、排出
終了フラグが“1”であるか否かが判別される。この排
出終了フラグは、1個排出(図34)、交互排出処理(
図35)又は併用排出処理(図36)によって、1つの
入賞球等に対応した所定数(賞球設定数)の球の排出が
完了したときにその値が“1”に設定されるものである
。従って、この判別結果が“No”のときには続くステ
ップS208乃至ステップS216をスキップして、本
ルーチンを終了する。
FIG. 32 shows the main routine (FIG. 1) executed by the CPU 610 of the prize ball discharge control device described above.
It is a flowchart which shows the subroutine of the prize ball discharge process performed in step S18 of 2). This routine is started when the processing number is determined to be "2" in step S8 of the main routine (FIG. 12),
First, in step S202, the discharge weight flag is set to “1”.
”.This ejection weight flag is set when a predetermined number of prize balls corresponding to one safe ball (number of prize balls ejected) has been ejected and the weight timer described below is activated. (Step S210) The value is set to "1", and step S138 of the above-mentioned discharge start process (FIG. 30)
It is reset to "0" at . Therefore, the determination result in step S202 becomes "Yes" only after a predetermined number (number of prize balls discharged) corresponding to one safe ball has been discharged. As long as the determination result in step S202 is "No", the process proceeds to step S204, where the prize ball is ejected by the ejection process (FIG. 33), and then the process proceeds to step S206. In this step S206, it is determined whether the discharge end flag is "1". This discharge completion flag indicates single discharge (Figure 34), alternate discharge processing (
The value is set to "1" when a predetermined number (set number of prize balls) corresponding to one prize ball, etc. has been discharged by the combined discharge process (Figure 35) or the combined discharge process (Figure 36). be. Therefore, when the result of this determination is "No", the following steps S208 to S216 are skipped, and this routine is ended.

【0153】所定数の賞品球の排出が完了して、前記ス
テップS206の判別結果が“Yes”に転じたときに
は、排出ウェイトフラグを“1”に設定し(ステップS
208)、排出ウェイトタイマを所定時間(例えば40
0m秒)にセットし(ステップS210)、さらに賞球
排出表示ランプ112を消灯(OFF)した(ステップ
S212)後、読込み確定フラグを“1”に設定し、賞
球数データを賞球排出カウンタに加算して本ルーチンを
終了する(ステップS214,S216)。上記読込み
確定フラグおよび賞球排出カウンタは、後述の賞球情報
出力処理(図47)において、パチンコ遊技機のデータ
をホールの管理装置700に知らせるときに使用される
[0153] When the ejection of a predetermined number of prize balls is completed and the determination result in step S206 changes to "Yes", the ejection weight flag is set to "1" (step S206).
208), the discharge wait timer is set to a predetermined time (for example, 40
0 msec) (step S210), and after turning off the prize ball ejection display lamp 112 (off step S212), the reading confirmation flag is set to "1" and the prize ball number data is stored in the prize ball ejection counter. , and then ends this routine (steps S214, S216). The reading confirmation flag and the prize ball discharge counter are used when informing the pachinko game machine data to the hall management device 700 in the prize ball information output process (FIG. 47), which will be described later.

【0154】上記ステップS206の判別結果が“Ye
s”に転じた後のループでは、ステップS208で排出
ウェイトフラグが“1”に設定されることにより、前記
ステップS202の判別結果が“Yes”に転じ、ステ
ップS218が実行される。このステップS218では
前記排出ウェイトタイマがタイムアップしたか否かが判
別され、判別結果が“No”、即ち所定数の賞品球の排
出が終了した後前記所定時間が未だ経過していないとき
にはそのまま本ルーチンを終了し、当該所定時間が経過
するまでステップS202及びステップS218のみを
繰返し実行する。そして、上記所定時間が経過してステ
ップS218の判別結果が“Yes”になると、ステッ
プS220に進んで処理ナンバーを“0”に設定して、
本ルーチンを終了する。
[0154] The determination result in step S206 is "Yes".
In the loop after changing to "S", the discharge weight flag is set to "1" in step S208, so that the determination result in step S202 changes to "Yes", and step S218 is executed.This step S218 Then, it is determined whether or not the ejection weight timer has timed up, and if the determination result is "No", that is, the predetermined time has not yet elapsed after the ejection of a predetermined number of prize balls has been completed, this routine is directly terminated. Then, only steps S202 and S218 are repeatedly executed until the predetermined time period has elapsed. When the predetermined time period has elapsed and the determination result in step S218 becomes "Yes", the process proceeds to step S220 and the processing number is set to " Set it to 0” and
This routine ends.

【0155】図33は、上述した賞球排出処理(図32
)のステップS204にて行われる排出処理のサブルー
チンを示すフローチャートである。本ルーチンが開始さ
れると、先ず、ステップS222にて排出エラーフラグ
が“1”であるか否かが判別される。この排出エラーフ
ラグは排出開始処理の実行時(図33のステップS14
2)にセットされた排出監視タイマがカウントアップす
るまでに所定数の賞品球の排出が完了しないときに排出
制御系の異常を示すべくその値が“1”に設定される(
後述のステップS230にて“1”に設定される)もの
である。従って、このステップS222での判別結果が
“Yes”のときにはステップS252にて後述の排出
エラー回復処理(図37)を行なって本ルーチンを終了
する。
FIG. 33 shows the above-mentioned prize ball ejection process (FIG. 32).
) is a flowchart showing a subroutine of the discharge process performed in step S204. When this routine is started, first, in step S222, it is determined whether or not the discharge error flag is "1". This discharge error flag is set when the discharge start process is executed (step S14 in FIG. 33).
2) When the ejection of a predetermined number of prize balls is not completed by the time the ejection monitoring timer set in 2) counts up, the value is set to "1" to indicate an abnormality in the ejection control system (
(set to "1" in step S230, which will be described later). Therefore, when the determination result in step S222 is "Yes", a discharge error recovery process (FIG. 37) to be described later is performed in step S252, and this routine is ended.

【0156】一方、ステップS222の判別結果が“N
o”のときにはステップS224に進み、排出終了フラ
グが“1”であるか否かが判別される。この排出終了フ
ラグは、前述したように、1個排出(図34)、交互排
出処理(図35)又は併用排出処理(図36)によって
、1つの入賞球等に対応した所定数(賞球設定数)の球
の排出が完了したときにその値が“1”に設定されるも
のである。このステップS222の判別結果が“No”
であるうちは、ステップS226に進み、排出開始処理
の実行時(図30のステップS142)にセットされた
排出監視タイマがタイムアップしたか否か判定する。そ
して、“No”ならステップS228,S230へ進ん
で、前述の排出開始処理(図30)にて設定される1個
排出フラグおよび交互排出フラグを調べて、1個排出フ
ラグが“1”のときにはステップS232の1個排出処
理(図34参照)を、また、交互排出フラグが“1”の
ときにはステップS234(図35参照)を、さらに交
互排出フラグが“0”のときにはステップS236の併
用排出処理(図36)を実行する。
On the other hand, the determination result in step S222 is “N
o", the process advances to step S224, and it is determined whether the discharge end flag is "1". As described above, this discharge end flag is used for single discharge (FIG. 34), alternate discharge processing (FIG. 35) or the combined discharge process (Fig. 36), the value is set to "1" when the discharge of a predetermined number (set number of prize balls) corresponding to one winning ball, etc. is completed. .The determination result of this step S222 is “No”.
If so, the process advances to step S226, and it is determined whether the discharge monitoring timer set at the time of execution of the discharge start process (step S142 in FIG. 30) has timed out. If "No", the process advances to steps S228 and S230, where the one piece discharge flag and the alternate discharge flag set in the above-mentioned discharge start process (FIG. 30) are checked, and if the one piece discharge flag is "1", the one piece discharge flag and the alternate discharge flag are checked. The single discharge process of step S232 (see FIG. 34) is performed, and when the alternate discharge flag is "1", step S234 (see FIG. 35) is executed, and when the alternate discharge flag is "0", the combined discharge process of step S236 is performed. (Figure 36) is executed.

【0157】一方、上記ステップS226で排出監視タ
イマがタイムアップしたと、すなわち排出開始後一定時
間経過しても排出が終了しないと判定すると、排出異常
発生と判断して排出ソレノイド1と2をオフさせ(ステ
ップS238,S240)かつ排出エラーフラグを“1
”に設定(ステップS242)した後、処理ナンバーに
応じて賞球排出処理中なら賞球排出表示ランプ112を
、また玉貸し排出中なら玉貸し排出表示をそれぞれ点滅
状態にさせてエラー表示を行なって終了する(ステップ
S244,S246,S248,S250)。図34は
、上述した排出処理(図33)のステップS232にて
行われる1個排出処理のサブルーチンを示すフローチャ
ートである。
On the other hand, if it is determined in step S226 that the discharge monitoring timer has timed up, that is, if it is determined that the discharge has not been completed even after a certain period of time has passed after the start of discharge, it is determined that a discharge abnormality has occurred, and discharge solenoids 1 and 2 are turned off. (steps S238, S240) and set the discharge error flag to “1”.
” (step S242), the prize ball discharge display lamp 112 is made to blink if the prize ball discharge process is in progress, and the ball loan discharge display is blinked if the ball loan is being discharged, to display an error. The process ends (steps S244, S246, S248, S250). FIG. 34 is a flowchart showing a subroutine of the one-piece discharge process performed in step S232 of the above-described discharge process (FIG. 33).

【0158】この処理が開始されると、まず図30のス
テップS110でセットされる1個排出タイマがタイム
アップしたか否か判定し(ステップS262)、“No
”なら何もせず、また“Yes”すなわち1個排出タイ
マに設定された時間が経過すると、ステップS264へ
移行して反転フラグが“1”か“0”か調べる。そして
、反転フラグが“0”なら排出ソレノイド1をオフ(ス
テップS266)、また反転フラグが“1”なら排出ソ
レノイド2をオフ(ステップS268)して1個排出を
終了させてから、排出終了フラグを“1”に設定してル
ーチンを終了する(ステップS270)。
[0158] When this process is started, it is first determined whether or not the one-piece discharge timer set in step S110 of FIG. 30 has timed up (step S262), and "No.
”, nothing is done, and “Yes”, that is, when the time set in the one-piece ejection timer has elapsed, the process moves to step S264 and checks whether the reversal flag is “1” or “0”. Then, if the reversal flag is “0” ”, turn off the discharge solenoid 1 (step S266), and if the reversal flag is “1”, turn off the discharge solenoid 2 (step S268) to finish discharging one piece, and then set the discharge end flag to “1”. Then, the routine ends (step S270).

【0159】図35は上述した排出処理(図33)のス
テップS234にて行われる交互排出処理のサブルーチ
ンを示すフローチャートである。前述したように本ルー
チンは排出される賞品球の数(賞球設定数)が「8」以
下のときに行われる処理であり、本ルーチンでは上述し
た賞球排出装置170の排出ソレノイド1と2を交替に
使って賞品球を排出するものである。本ルーチンが開始
されると、先ずステップS272にて、反転フラグが“
0”か“1”か調べる。そして、反転フラグが“0”の
ときはステップS274へ進んで、排出センサ1立上り
フラグが“1”であるか否かを判定する。この排出1立
上フラグは予備球が排出センサ1内より脱したときにそ
の値が“1”に設定されるものである。従って、この判
定結果が“No”なら何もせず、また“Yes”となっ
たときには排出レジスタ0の値(排出玉数)を1つだけ
減算してから上記排出センサ1立上りフラグをクリアす
る(ステップS276,S278)。次に、上記排出レ
ジスタ0の値が「1」になったか否かすなわち予め設定
された数の玉を排出したか否か判定し(ステップS28
0)、排出レジスタ0の値が「1」になったなら排出ソ
レノイド1をオフさせ、かつ排出終了フラグを“1”に
セットしてルーチンを終了する(ステップS282,S
284)。
FIG. 35 is a flowchart showing a subroutine of the alternate discharge process performed in step S234 of the above-described discharge process (FIG. 33). As mentioned above, this routine is a process that is performed when the number of prize balls to be ejected (prize ball setting number) is "8" or less, and in this routine, the ejection solenoids 1 and 2 of the above-mentioned prize ball ejecting device 170 are activated. The prize balls are ejected by taking turns using the balls. When this routine starts, first, in step S272, the inversion flag is set to “
0" or "1". Then, when the reversal flag is "0", the process advances to step S274, and it is determined whether the discharge sensor 1 rise flag is "1".This discharge 1 rise flag is set to "1" when the spare ball escapes from inside the ejection sensor 1. Therefore, if the judgment result is "No", nothing will be done, and if it is "Yes", the ejection will be performed. After decrementing the value of register 0 (number of balls ejected) by one, the ejection sensor 1 rising flag is cleared (steps S276, S278).Next, it is determined whether the value of ejection register 0 has become "1" or not. In other words, it is determined whether a preset number of balls have been ejected (step S28).
0), when the value of the discharge register 0 becomes "1", the discharge solenoid 1 is turned off, the discharge end flag is set to "1", and the routine ends (steps S282 and S282).
284).

【0160】一方、前記ステップS272の判定結果が
“No”すせわち反転フラグが“1”のときにはステッ
プS286に進む。ステップS286では排出センサ2
立上りフラグが“1”であるか否かを判定する。この排
出2立上フラグは予備球が排出センサ2内より脱したと
きにその値が“1”に設定されるものである。従って、
この判定結果が“No”なら何もせず、また“Yes”
となったときには排出レジスタ0の値(排出玉数)を1
つだけ減算してから上記排出センサ2立上りフラグをク
リアする(ステップS288,S290)。次に、上記
排出レジスタ0の値が「1」になったか否かすなわち予
め設定された数の玉を排出したか否か判定し(ステップ
S292)、排出レジスタ0の値が「1」になったなら
排出ソレノイド1をオフさせてから、排出終了フラグを
“1”にセットしてルーチンを終了する(ステップS2
94,S284)。
On the other hand, if the determination result in step S272 is "No", that is, the inversion flag is "1", the process advances to step S286. In step S286, the discharge sensor 2
It is determined whether the rising flag is "1". The value of this ejection 2 rising flag is set to "1" when the spare ball escapes from the ejection sensor 2. Therefore,
If this judgment result is “No”, do nothing, and “Yes”
When this happens, the value of the discharge register 0 (number of balls discharged) is set to 1.
After subtracting by one, the discharge sensor 2 rise flag is cleared (steps S288, S290). Next, it is determined whether the value of the ejection register 0 has become "1", that is, whether or not a preset number of balls have been ejected (step S292), and the value of the ejection register 0 has become "1". Then, after turning off the discharge solenoid 1, the discharge end flag is set to "1" and the routine is terminated (step S2).
94, S284).

【0161】このルーチンでは排出ソレノイド1または
2による排出を、排出レジスタ0の値が「1」になった
時点で終了させているのは、排出ソレノイドのオフタイ
ミングを調整するためである。つまり、本実施例では排
出センサの下流側にストッパが配置されているので、排
出レジスタ0の値が「0」になった時点で排出を終了さ
せると、実際には1つ余計に玉が排出されてしまうから
である。図36は上述した排出処理(図33)のステッ
プS236にて行われる併用排出処理のサブルーチンを
示すフローチャートである。前述したように本ルーチン
は排出される賞品球の数(賞球設定数)が「9」以上の
ときに行われる処理であり、本ルーチンでは上述した賞
球排出装置170の排出ソレノイド1と2を同時に作動
させて賞品球を排出するものである。
[0161] In this routine, the discharge by the discharge solenoid 1 or 2 is terminated when the value of the discharge register 0 becomes "1" in order to adjust the off timing of the discharge solenoid. In other words, in this embodiment, since the stopper is placed downstream of the ejection sensor, if ejection ends when the value of ejection register 0 reaches "0", one extra ball will actually be ejected. This is because it will be done. FIG. 36 is a flowchart showing a subroutine of the combined discharge process performed in step S236 of the above-described discharge process (FIG. 33). As mentioned above, this routine is a process that is performed when the number of prize balls to be ejected (prize ball setting number) is "9" or more, and in this routine, the ejection solenoids 1 and 2 of the above-mentioned prize ball ejecting device 170 are activated. The prize balls are ejected by simultaneously operating the balls.

【0162】本ルーチンが開始されると、先ず図30の
排出開始処理のステップS130でリセットされた排出
1終了フラグが“1”になったか否か判定する(ステッ
プS302)。排出開始直後は排出1終了フラグは“0
”であるため、“No”と判定されてステップS304
へ進んで、排出センサ1立上りフラグが“1”であるか
否かを判定する。この判定結果が“No”なら何もせず
、また“Yes”なら排出レジスタ1の値(排出玉数)
を1つだけ減算してから上記排出センサ1立上りフラグ
をクリアする(ステップS306,S308)。次に、
上記排出レジスタ0の値が「1」になったか否かすなわ
ち予め設定された数の玉を排出したか否か判定し(ステ
ップS310)、排出レジスタ0の値が「1」になった
なら排出ソレノイド1をオフさせ、かつ排出1終了フラ
グを“1”にセットする(ステップS312,S314
)。
When this routine is started, first, it is determined whether or not the discharge 1 end flag reset in step S130 of the discharge start process in FIG. 30 has become "1" (step S302). Immediately after the discharge starts, the discharge 1 end flag is “0”.
”, the determination is “No” and the process proceeds to step S304.
It is determined whether the discharge sensor 1 rising flag is "1" or not. If this judgment result is “No”, nothing will be done, and if “Yes”, the value of ejection register 1 (number of balls ejected)
After subtracting only one, the discharge sensor 1 rising flag is cleared (steps S306, S308). next,
It is determined whether or not the value of the discharge register 0 has become "1", that is, whether or not a preset number of balls have been discharged (step S310), and if the value of the discharge register 0 has become "1", the balls are discharged. Turn off solenoid 1 and set discharge 1 end flag to "1" (steps S312, S314
).

【0163】次に、ステップS316へ進み、図30の
排出開始処理のステップS132でリセットされた排出
2終了フラグが“1”になったか否か判定する。排出開
始直後は排出2終了フラグは“0”であるため、“No
”と判定されてステップS318へ進んで、排出センサ
2立上りフラグが“1”であるか否かを判定する。この
判定結果が“No”なら何もせず、また“Yes”なら
上記排出センサ2立上りフラグをクリアしてから排出レ
ジスタ2の値(排出玉数)を1つだけ減算する(ステッ
プS320,S322)。次に、上記排出レジスタ2の
値が「1」になったか否かすなわち予め設定された数の
玉を排出したか否か判定し(ステップS324)、排出
レジスタ2の値が「1」になったなら排出ソレノイド2
をオフさせ、かつ排出2終了フラグを“1”にセットす
る(ステップS326,S328)。それから排出1終
了フラグが“1”か否か判定し(ステップS330)、
“Yes”なら次のステップS332で排出終了フラグ
を“1”にセットしてルーチンを終了する。排出系1の
側が先に排出を終了した場合に、ステップS330−S
332と進んで終了する。一方、排出系2の側が先に排
出を終了した場合には、ステップS330で“No”と
判定され、その後再びこのルーチンが実行されたときに
ステップS314で排出1終了フラグが“1”にセット
されてステップS316へ進み、ここで“Yes”と判
定されてステップS332へジャンプし、排出終了フラ
グを“1”にセットしてルーチンを終了する。 以上のように、賞球設定数が大きな値(9〜15)に設
定されているときに該設定数を分割して2つの排出レジ
スタ1,2にその値を記憶し、排出レジスタ1,2の値
に基づいて第1及び第2の排出ソレノイドを夫々独立し
て作動させることにより、多数の賞品球の排出が一層迅
速に行えるようになる。
Next, the process advances to step S316, and it is determined whether the discharge 2 end flag reset in step S132 of the discharge start process in FIG. 30 has become "1". Immediately after the start of discharge, the discharge 2 end flag is “0”, so “No.
”, the process proceeds to step S318, and it is determined whether or not the discharge sensor 2 rise flag is "1". If the determination result is "No", nothing is done, and if the determination result is "Yes", the discharge sensor 2 is After clearing the rising flag, the value of the discharge register 2 (the number of balls to be discharged) is subtracted by one (steps S320, S322).Next, it is determined whether the value of the discharge register 2 has become "1" or not. It is determined whether or not the set number of balls have been ejected (step S324), and if the value of the ejection register 2 becomes "1", the ejection solenoid 2 is activated.
is turned off, and the discharge 2 end flag is set to "1" (steps S326, S328). Then, it is determined whether the discharge 1 end flag is “1” (step S330),
If "Yes", the discharge end flag is set to "1" in the next step S332, and the routine ends. If the discharge system 1 side finishes discharging first, step S330-S
332 and ends. On the other hand, if the discharge system 2 side finishes discharging first, the determination is "No" in step S330, and then when this routine is executed again, the discharge 1 end flag is set to "1" in step S314. Then, the process advances to step S316, where the determination is "Yes" and the process jumps to step S332, where the discharge end flag is set to "1" and the routine ends. As described above, 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 stored in the two ejection registers 1 and 2. By operating the first and second ejection solenoids independently based on the value of , ejection of a large number of prize balls can be performed more quickly.

【0164】図37は、上述した排出処理(図33)の
ステップS252にて行われる排出エラー回復処理のサ
ブルーチンを示すフローチャートである。このルーチン
が開始されると、まず図19の排出センサ1レベル入力
処理のステップS4832で設定される排出1エラー解
除フラグが“1”であるか否か、また図23の排出セン
サ2レベル入力処理のステップS5032で設定される
排出2エラー解除フラグが“1”であるか否かそれぞれ
判定する(ステップS342,S344)。そして、両
方の判定でともに“Yes”となると、ステップS34
6以下の処理を行なう。ステップS346−S352で
は、図29の賞球開始処理におけるステップS81−S
86と同様の手続に従って、図19および図20の排出
センサレベル入力処理ルーチンで設定される排出センサ
1玉有フラグおよび排出センサ2玉有フラグと、図24
の半端センサ入力処理ルーチンで設定される半端センサ
玉有フラグさらに図23のオーバーフロー検出器入力処
理ルーチンで設定されるオーバーフロー玉有フラグを調
べて、いずれか一つのフラグでも“0”になっている場
合には排出可能フラグを“0”にクリアして終了する(
ステップS354)。
FIG. 37 is a flowchart showing a subroutine of the ejection error recovery process performed in step S252 of the above-mentioned ejection process (FIG. 33). When this routine is started, it is first determined whether the discharge 1 error release flag set in step S4832 of the discharge sensor 1 level input process in FIG. 19 is "1", and whether or not the discharge sensor 2 level input process in FIG. It is determined whether the discharge 2 error release flag set in step S5032 is "1" (steps S342, S344). If both determinations result in "Yes", step S34
6 or below. In steps S346-S352, steps S81-S in the prize ball start process of FIG.
86, the discharge sensor 1 flag and the discharge sensor 2 flag set in the discharge sensor level input processing routine of FIGS. 19 and 20, and the discharge sensor 2 flag present in FIG.
Checking the odd sensor error flag set in the odd sensor input processing routine in Figure 23 and the overflow error flag set in the overflow detector input processing routine in Figure 23, any one of the flags is "0". If so, clear the ejectable flag to “0” and exit (
Step S354).

【0165】一方、すべてのフラグが“1”になってい
る場合には排出可能フラグを“1”にセットし(ステッ
プS356)、次のステップS358で上記排出可能フ
ラグが“1”になっているか否か調べ、“1”ならステ
ップS360およびS362で排出レジスタ1と排出レ
ジスタ2の値がそれぞれ「1」を越えているか判定し、
排出レジスタ1の値が「1」以下のときは排出レジスタ
2の値を、また排出レジスタ2の値が「1」以下のとき
は排出レジスタ1の値を、さらに排出レジスタ1と排出
レジスタ2の値がともに「1」を越えているときは両方
の値を排出レジスタ0に設定する(ステップS364,
S366,S368)。それから、図30の排出開始処
理と同一の処理を行なう(ステップS378)。
On the other hand, if all the flags are set to "1", the ejectable flag is set to "1" (step S356), and in the next step S358, the ejectable flag becomes "1". If it is "1", it is determined in steps S360 and S362 whether the values of discharge register 1 and discharge register 2 each exceed "1",
When the value of ejection register 1 is "1" or less, the value of ejection register 2 is used, and when the value of ejection register 2 is "1" or less, the value of ejection register 1 is used, and the value of ejection register 1 and ejection register 2 is If both values exceed "1", both values are set in the discharge register 0 (step S364,
S366, S368). Then, the same process as the discharge start process in FIG. 30 is performed (step S378).

【0166】これによって、2つの排出系のうちいずれ
か一方が球詰りを起こして排出エラーを起こしたような
場合にも、排出レジスタに残っている未排出の玉数が改
めて排出レジスタ0に設定されて再度排出が開始される
ようになるため、正常な他方の排出系を使用した排出が
行なわれ、故障によるパチンコ遊技機の遊技中断を回避
することができる。なお、このルーチンでは上記排出開
始処理(ステップS378)に先立って、処理ナンバー
をチェックしてナンバーが「2」のときは賞球排出表示
ランプ112を、またナンバーが「3」のときは貸し玉
排出表示ランプ113をそれぞれ点灯されるようになっ
ている(ステップS370,S372,S374,S3
76)。さらに、上記排出開始処理(ステップS378
)終了後には排出エラーフラグを“0”にクリアして本
ルーチンを終了する(ステップS380)。
[0166] As a result, even if one of the two ejection systems becomes clogged with balls and causes an ejection error, the number of unejected balls remaining in the ejection register is set to 0 again in the ejection register. Since the discharge is started again using the other normal discharge system, it is possible to avoid interrupting the game of the pachinko game machine due to a malfunction. In this routine, prior to the ejection start process (step S378), the processing number is checked, and if the number is "2", the prize ball ejection display lamp 112 is turned on, and if the number is "3", the rental ball is turned on. The discharge indicator lamps 113 are turned on (steps S370, S372, S374, S3).
76). Furthermore, the above-mentioned discharge start processing (step S378
) After finishing, the discharge error flag is cleared to "0" and this routine is ended (step S380).

【0167】上記ステップS360で排出レジスタ1の
値が「1」以下のときはステップS364で排出レジス
タ2の値を排出レジスタ0に設定しているのは、排出レ
ジスタの値が「1」ということは排出終了を意味してお
り、それにもかかわらず本ルーチンのエラー回復処理に
入ってきたのは排出レジスタ2に未排出の玉数が残って
いると推定できるからである。同様に、ステップS36
2で排出レジスタ2の値が「1」以下のときはステップ
S366で排出レジスタ1の値を排出レジスタ0に設定
しているのは、排出レジスタ2に未排出の玉数が残って
いると推定できるからである。
[0167] When the value of the discharge register 1 is less than "1" in step S360, the value of the discharge register 2 is set to the discharge register 0 in step S364 because the value of the discharge register is "1". indicates the end of ejection, and the reason why the error recovery process of this routine is entered despite this is because it can be estimated that the number of balls that have not been ejected remains in the ejection register 2. Similarly, step S36
When the value of the ejection register 2 is "1" or less in step S366, the value of the ejection register 1 is set to ejection register 0 in step S366 because it is assumed that the number of unejected balls remains in the ejection register 2. Because it can be done.

【0168】図38は、前述した排出制御装置のメイン
ルーチン(図12)のステップS21で実行される玉貸
開始処理のサブルーチンを示すフローチャートである。 このサブルーチンは、図14の玉貸しリクエスト検出処
理ルーチンのステップS4122で玉貸し要求フラグが
セットされ、メインルーチンのステップS11で“Ye
s”と判定されることによって開始される。このサブル
ーチンが開始されると、まず前記図19および図20の
排出センサレベル入力処理ルーチンで設定される排出セ
ンサ1玉有フラグおよび排出センサ2玉有フラグと、図
24の半端センサ入力処理ルーチンで設定される半端セ
ンサ玉有フラグさらに図23のオーバーフロー検出器入
力処理ルーチンで設定されるオーバーフロー玉有フラグ
を調べて(ステップS402−S408)、いずれか一
つのフラグでも“0”になっている場合には排出可能フ
ラグを“0”にクリアして終了する(ステップS410
)。
FIG. 38 is a flowchart showing the subroutine of the ball lending start process executed in step S21 of the main routine (FIG. 12) of the discharge control device described above. In this subroutine, the ball lending request flag is set in step S4122 of the ball lending request detection processing routine in FIG.
When this subroutine is started, first the discharge sensor 1 flag and the discharge sensor 2 flag set in the discharge sensor level input processing routine of FIGS. 19 and 20 are set. The flag, the odd sensor error flag set in the odd sensor input processing routine of FIG. 24, and the overflow error flag set in the overflow detector input processing routine of FIG. 23 are checked (steps S402-S408), and either If even one flag is “0”, the discharge possible flag is cleared to “0” and the process ends (step S410).
).

【0169】一方、すべてのフラグが“1”になってい
る場合には排出可能フラグを“1”にセットし(ステッ
プS412)、予めROM内に設定されている変換レー
ト(玉貸し数データ)を排出レジスタ0にセットする(
ステップS414)。また、貸玉排出表示ランプ113
を点灯させ(ステップS416)、玉貸し音要求フラグ
およびP台レディフラグを“1”にセット(ステップS
418,S420)してから、賞球排出処理と共通の排
出開始処理ルーチン(図30参照)を実行して球排出装
置170による排出を開始させた後、処理ナンバーを「
3」にして終了する(ステップS422,S424)。 玉貸し排出では玉貸し数データが例えば25個のような
値(>8)に設定されるため、ステップS422の排出
開始処理ルーチンが実行される場合、2系統の排出系を
同時に使用した排出が開始される。
On the other hand, if all the flags are set to "1", the discharge possible flag is set to "1" (step S412), and the conversion rate (ball rental number data) set in advance in the ROM is set. Set to discharge register 0 (
Step S414). In addition, the ball rental indicator lamp 113
is turned on (step S416), and the ball lending sound request flag and the P unit ready flag are set to "1" (step S416).
418, S420), executes the discharge start processing routine (see FIG. 30) common to the prize ball discharge process to start discharge by the ball discharge device 170, and then sets the process number to "
3'' and ends (steps S422, S424). In ball rental discharge, the ball rental number data is set to a value such as 25 (>8), so when the discharge start processing routine of step S422 is executed, discharge using two discharge systems simultaneously is not possible. will be started.

【0170】なお、上記ステップS418,S420で
セットされる玉貸し音要求フラグは遊技盤制御装置40
0に対して出力する貸玉排出音発生要求信号Eを後述の
音要求出力処理(図46)でロウレベルに、またP台レ
ディフラグは玉貸し制御装置500に対して出力する玉
貸レディ信号Uを後述の貸し玉情報出力処理(図45)
でロウレベルに、それぞれアサートさせるためのもので
ある。図39は、前述した排出制御装置側のCPU61
0によって実行されるメインルーチン(図12)のステ
ップS17において実行される玉貸排出処理のサブルー
チンを示すフローチャートである。
[0170] The ball lending sound request flag set in steps S418 and S420 above is set by the game board control device 40.
The ball rental sound generation request signal E to be output for 0 is set to low level in the sound request output process (FIG. 46) described later, and the P machine ready flag is set to the ball rental ready signal U output to the ball rental control device 500. The ball rental information output process (Figure 45) described below
This is to assert each signal at a low level. FIG. 39 shows the CPU 61 on the emission control device side described above.
13 is a flowchart showing a subroutine of ball lending and discharging processing executed in step S17 of the main routine (FIG. 12) executed by 0.

【0171】本ルーチンは、上記サブルーチン(図38
)のステップS424で処理ナンバーが“3”に設定さ
れ、メインルーチン(図12)のステップS7において
、処理ナンバーが“3”と判定されたときに開始され、
先ず、ステップS432にて排出ウェイトフラグが“1
”であるか否かが判別される。この排出ウェイトフラグ
は、1つの玉貸し要求信号に対応した所定数の貸し玉の
排出が終了して後述のウェイトタイマが作動(ステップ
S440)したときにその値が“1”に設定され、前述
の排出開始処理(図30)のステップS138にて“0
”にリセットされるものである。従って、1つの玉貸し
要求信号に対応した所定数貸し玉の排出が終了した後に
初めてステップS432の判別結果が“Yes”となる
。このステップS432の判別結果が“No”であるう
ちは、ステップS434に進んで、賞球排出処理と共通
の排出処理(図33)による貸し玉の排出を行なった後
、ステップS436に進む。このステップS436では
、排出終了フラグが“1”であるか否かが判別される。 この排出終了フラグは、上記排出処理ルーチン(図33
)中において行なわれる図36に示す併用排出処理(1
個排出および交互排出処理は、この貸し玉排出では原則
として行なわれない)によって、1つの玉貸し要求信号
に対応した所定数の球の排出が完了したときにその値が
“1”に設定されるものである。従って、この判別結果
が“No”のときには続くステップS438乃至ステッ
プS446をスキップして、本ルーチンを終了する。
[0171] This routine consists of the above subroutine (Fig. 38
), the process number is set to "3" in step S424, and the process number is determined to be "3" in step S7 of the main routine (FIG. 12),
First, in step S432, the discharge weight flag is set to "1".
”. This ejection wait flag is set when a predetermined number of rental balls corresponding to one ball rental request signal have been discharged and a wait timer described later is activated (step S440). The value is set to "1" and "0" in step S138 of the above-mentioned discharge start process (FIG. 30).
”. Therefore, the determination result in step S432 becomes “Yes” only after the ejection of a predetermined number of rented balls corresponding to one ball rental request signal is completed.The determination result in step S432 becomes “Yes”. If the answer is "No", the process proceeds to step S434, where the rented balls are ejected by the ejection process (FIG. 33) common to the prize ball ejection process, and then the process proceeds to step S436.In this step S436, the ejection end flag is It is determined whether or not the discharge end flag is "1".
) shown in Figure 36.
As a general rule, individual discharge and alternate discharge processing are not performed in this rental ball discharge), the value is set to "1" when the discharge of a predetermined number of balls corresponding to one ball rental request signal is completed. It is something that Therefore, when the result of this determination is "No", the following steps S438 to S446 are skipped, and this routine is ended.

【0172】所定数の賞品球の排出が完了して、前記ス
テップS436の判別結果が“Yes”に転じたときに
は、排出ウェイトフラグを“1”に設定し(ステップS
438)、排出ウェイトタイマを所定時間(例えば40
0m秒)にセットし(ステップS440)、さらに払出
終了フラグを“1”に設定した(ステップS212)後
、貸玉排出表示ランプ113を消灯(OFF)し、連続
玉貸しカウンタをインクリメントして本ルーチンを終了
する(ステップS444,S446)。上記払出終了フ
ラグは後述の貸し玉情報出力処理(図45)において払
出完了信号Vをロウレベルにするために参照され、また
、連続玉貸しカウンタは前述の玉貸リクエスト検出処理
(図14)のステップS4102において参照され、連
続して6回以上の変換すなわち600円分以上の玉貸し
排出が回避されるようになっている。
[0172] When the ejection of a predetermined number of prize balls is completed and the determination result in step S436 changes to "Yes", the ejection weight flag is set to "1" (step S436).
438), the ejection wait timer is set to a predetermined time (for example, 40
After setting the payout end flag to "1" (step S212), the ball rental display lamp 113 is turned off (OFF), the continuous ball rental counter is incremented, and the payout end flag is set to "1" (step S212). The routine ends (steps S444, S446). The payout completion flag is referred to in order to set the payout completion signal V to low level in the ball lending information output process (FIG. 45) described later, and the continuous ball lending counter is used in the step of the ball lending request detection process (FIG. 14) described above. This is referred to in S4102, and six or more consecutive conversions, that is, ball rentals of 600 yen or more are avoided.

【0173】上記ステップS436の判別結果が“Ye
s”に転じた後のループでは、ステップS438で排出
ウェイトフラグが“1”に設定されることにより、前記
ステップS432の判別結果が“Yes”に転じ、ステ
ップS448が実行される。このステップS448では
前記排出ウェイトタイマがタイムアップしたか否かが判
別され、判別結果が“No”、即ち所定数の賞品球の排
出が終了した後前記所定時間が未だ経過していないとき
にはそのまま本ルーチンを終了し、当該所定時間が経過
するまでステップS432及びステップS448のみを
繰返し実行する。そして、上記所定時間が経過してステ
ップS448の判別結果が“Yes”になると、ステッ
プS450に進んで処理ナンバーを“0”に設定して、
本ルーチンを終了する。
[0173] The determination result in step S436 is "Yes".
In the loop after changing to "s", the discharge weight flag is set to "1" in step S438, so that the determination result in step S432 changes to "Yes", and step S448 is executed.This step S448 Then, it is determined whether or not the ejection weight timer has timed up, and if the determination result is "No", that is, the predetermined time has not yet elapsed after the ejection of a predetermined number of prize balls has been completed, this routine is directly terminated. Then, only steps S432 and S448 are repeatedly executed until the predetermined time period has elapsed. When the predetermined time period has elapsed and the determination result in step S448 becomes "Yes", the process proceeds to step S450 and the process number is set to " Set it to 0” and
This routine ends.

【00174】図40ないし図42は、前述した排出制
御装置側のCPU610によって実行されるメインルー
チン(図12)のステップS16において実行される玉
抜処理のサブルーチンを示すフローチャートである。こ
の球抜処理ルーチンは遊技店の係員によって球抜スイッ
チが押されたことが前述の球抜センサ入力処理(図21
)によって検知され、球抜フラグが“1”に設定されて
メインルーチンのステップS10で“Yes”と判定さ
れ、ステップS20で処理ナンバーが“4”に変更され
、さらにメインルーチンのステップS6において、処理
ナンバーが“4”と判定されたときに開始されるもので
ある。
FIGS. 40 to 42 are flowcharts showing a subroutine of the ball removal process executed in step S16 of the main routine (FIG. 12) executed by the CPU 610 on the side of the emission control device described above. This ball removal processing routine is based on the aforementioned ball removal sensor input process (Fig. 21
), the ball removal flag is set to "1", a determination of "Yes" is made in step S10 of the main routine, the processing number is changed to "4" in step S20, and further, in step S6 of the main routine, This is started when the processing number is determined to be "4".

【0175】本ルーチンが開始されると、先ずステップ
S602において強制終了フラグが“1”であるか否か
が判定される。この強制終了フラグは、球抜スイッチが
2回押されたときに(本ルーチンの実行中に再度球抜ス
イッチが押され、後述のステップS616又はステップ
S626の判定結果が“Yes”となったとき)実行さ
れるステップS700〜S736の強制終了処理が実行
される直前のステップS696にてその値が“1”に設
定されるものである。したがって、該フラグがステップ
S696の実行によって一旦“1”に設定されると、そ
の後のループでは前記ステップS602の判定結果が“
Yes”となって、後述のステップS700以降の強制
終了処理のみが実行されることになる。
[0175] When this routine is started, first, in step S602, it is determined whether the forced termination flag is "1". This forced termination flag is activated when the ball removal switch is pressed twice (when the ball removal switch is pressed again during the execution of this routine and the determination result in step S616 or step S626 described later becomes "Yes"). ) The value is set to "1" in step S696 immediately before the forced termination process of steps S700 to S736 is executed. Therefore, once the flag is set to "1" by executing step S696, the determination result of step S602 is set to "1" in the subsequent loop.
"Yes", and only the forced termination process from step S700, which will be described later, will be executed.

【0176】前記ステップS602の判定結果が“No
”のときには、ステップS604で球抜実行フラグが“
1”であるか否かが、続くステップS606で球抜開始
フラグが“1”であるか否かが判定される。このうち球
抜開始フラグは、続くステップS608〜S612の処
理が一度でも行われたときにその旨を記憶すべくステッ
プS614にてその値が“1”に設定されるものである
。又、球抜実行フラグは後述のステップS620,S6
22によって排出ソレノイド1,2の励磁が開始され球
抜処理が実行されたときにその旨を記憶すべくステップ
S624にて“1”に設定されるものである。
[0176] The determination result in step S602 is “No.
”, the ball removal execution flag is set to “ in step S604.
In the following step S606, it is determined whether the ball removal start flag is "1" or not.The ball removal start flag is determined if the following steps S608 to S612 are performed even once. The value is set to "1" in step S614 in order to memorize this fact when the ball is removed.In addition, the ball removal execution flag is set in steps S620 and S6, which will be described later.
When the excitation of the discharge solenoids 1 and 2 is started by 22 and the bulb removal process is executed, this is set to "1" in step S624 in order to memorize that fact.

【0177】ここで、本球抜処理ルーチンが初めて行わ
れた場合を考える。この場合には前記ステップS604
,S606の判定結果は共に“No”となってステップ
S608に進み、1回目の球抜スイッチの押圧(球抜処
理を開始させるための押圧)によって“1”にセットさ
れた球抜フラグを“0”にリセットする。次のステップ
S609,S610では第1及び第2の賞球排出装置に
よる球抜処理が終了したことを記憶するために用いられ
る排出1終了フラグ,排出2終了フラグを“0”にリセ
ットしておく。これら排出1終了フラグ,排出2終了フ
ラグは前述の併用排出処理にて用いられたものがそのま
ま転用でき、2つのフラグは後述のステップS628,
S646等の判定に用いられる。更に次のステップS6
11では球抜開始タイマがセット/スタートされる。こ
の球抜開始タイマは、実際に排出ソレノイド1,2を励
磁(ON)する前に、球抜装置の切換ゲート762を予
め切換えておくのに十分な所定のアイドルタイムを設け
るためのものである。
[0177] Here, let us consider the case where the main ball removal processing routine is performed for the first time. In this case, the step S604
, S606 are both "No", and the process advances to step S608, where the ball removal flag set to "1" by the first press of the ball removal switch (press to start the ball removal process) is set to " Reset to 0”. In the next steps S609 and S610, the discharge 1 end flag and the discharge 2 end flag, which are used to remember that the ball extraction process by the first and second prize ball discharge devices has ended, are reset to "0". . These discharge 1 end flag and discharge 2 end flag used in the above-mentioned combined discharge process can be used as they are, and these two flags can be used in step S628, which will be described later.
It is used for determinations such as S646. Further next step S6
At step 11, a ball removal start timer is set/started. This ball removal start timer is used to provide a predetermined idle time sufficient to switch the switching gate 762 of the ball removal device in advance before actually energizing (ON) the discharge solenoids 1 and 2. .

【0178】次のステップS612では前記切換ゲート
762を切換るべく球抜ソレノイド761が励磁(ON
)され、続いて前記球抜開始フラグが“1”に設定され
る(ステップS614)。続くステップS616では上
記ステップS602〜S614の実行中に球抜フラグが
再び“1”に設定されたか否か、即ち再度球抜スイッチ
が押されたか否か(2度押されたか否か)が判定される
。この判定結果が“Yes”のときにはステップS69
2〜S698を実行した後、球抜処理を強制的に終了さ
せるべくステップS700以降の強制終了処理に進む。
In the next step S612, the bulb removal solenoid 761 is energized (ON) to switch the switching gate 762.
), and then the ball removal start flag is set to "1" (step S614). In the subsequent step S616, it is determined whether the ball removal flag was set to "1" again during the execution of steps S602 to S614, that is, whether the ball removal switch was pressed again (whether it was pressed twice). be done. If this determination result is "Yes", step S69
After executing Steps 2 to S698, the process proceeds to forced termination processing starting from step S700 in order to forcibly terminate the ball extraction process.

【0179】より具体的には先ずステップS692及び
ステップS694で、後述のステップS628〜S64
4の処理にて用いられる排出1球無フラグ及び後述のス
テップS646〜S662の処理にて用いられる排出2
球無フラグが夫々“0”にリセットされ、ステップS6
96で強制終了処理に移行したことを示すべく前記強制
終了フラグが“1”に設定され、更に強制終了処理に移
行した直後より所定時間経過したか否かを判定するため
に設けられた強制終了タイマをセットして、後述のステ
ップS700以降の強制終了処理を行う。
More specifically, first, step S692 and step S694, and then steps S628 to S64, which will be described later.
Discharge 1 ball no flag used in the process of step 4 and discharge 2 used in the process of steps S646 to S662 described later.
The no-ball flags are each reset to "0", and step S6
In step 96, the forced termination flag is set to "1" to indicate that the process has proceeded to forced termination processing, and the forced termination flag is set to "1" to indicate that the forced termination process has proceeded. A timer is set, and forced termination processing from step S700, which will be described later, is performed.

【0180】一方、この判定結果が“No”のときには
、前記ステップS611でスタートさせた球抜開始タイ
マがタイムアップしたか否かが判定される。未だ球抜開
始タイマがタイムアップしないときには(判定結果が“
No”)、以後の処理を行うことなくそのまま本ルーチ
ンを終了する。次回以降のループでは前記タイマがタイ
ムアップするまでステップS602〜S606,S61
6,S618のみが繰返し実行されることになる。前記
タイマがタイムアップしてステップS618の判定結果
が“Yes”に転じると、ステップS620,S622
において夫々排出ソレノイド1,2が励磁(ON)され
て賞品球の流出が開始され、前述の球抜実行フラグが“
1”に設定される(ステップS624)。
On the other hand, when the result of this determination is "No", it is determined whether the ball removal start timer started in step S611 has timed out. If the ball removal start timer has not expired yet (the judgment result is “
No"), this routine ends without performing any further processing. In the next and subsequent loops, steps S602 to S606 and S61 are executed until the timer times up.
6, only S618 will be repeatedly executed. When the timer times out and the determination result in step S618 changes to "Yes", steps S620 and S622
At this point, the ejection solenoids 1 and 2 are energized (ON) and the prize ball begins to flow out, and the above-mentioned ball extraction execution flag is set to "
1'' (step S624).

【0181】このように一旦排出ソレノイド1,2が励
磁(ON)されて球抜実行フラグが“1”に設定される
と、次回以降のループにおいて、前記ステップS604
の判定結果が“Yes”となり、ステップS606〜6
24の処理がスキップされることになる。次のステップ
S626では再び、球抜フラグが“1”であるか否か即
ち、球抜処理を強制的に終了させるべく球抜スイッチの
2回押しがなされたか否かの判定が再びなされる。この
判定結果が“Yes”のときは、ステップS684〜S
690を行った後、前記ステップS692〜S698、
更には後述のステップS700以降の強制終了処理に進
む。
[0181] Once the discharge solenoids 1 and 2 are excited (ON) and the bulb extraction execution flag is set to "1", in the next and subsequent loops, step S604 is performed.
The determination result is "Yes", and steps S606-6
24 processes will be skipped. In the next step S626, it is again determined whether the ball removal flag is "1", that is, whether the ball removal switch has been pressed twice to forcibly end the ball removal process. When this determination result is "Yes", steps S684 to S684
After performing step S690, the steps S692 to S698,
Furthermore, the process proceeds to forced termination processing starting from step S700, which will be described later.

【0182】ステップS684〜S690の処理では、
先ず排出1終了フラグが“1”であるか否かが判定され
(ステップS684)、この判定結果が“Yes”、即
ちこの時点で賞球排出装置170の第1排出ソレノイド
側の賞品球の流出がすべて完了しているときには(該フ
ラグは第1の排出ソレノイド側の賞品球の流出がすべて
完了したとき後述のステップS642でその値が“1”
に設定される)ステップS686に進んで排出ソレノイ
ド1を消磁(OFF)し、その後ステップS688に進
む。一方、判定結果が“No”のときはステップS68
6をスキップしてステップS688に進む。
[0182] In the processing of steps S684 to S690,
First, it is determined whether or not the ejection 1 end flag is "1" (step S684), and the result of this judgment is "Yes", that is, at this point, the prize ball flows out from the first ejection solenoid side of the prize ball ejecting device 170. When all of the prize balls have been completely discharged from the first discharge solenoid side, the value of this flag is set to "1" in step S642, which will be described later.
In step S686, the discharge solenoid 1 is demagnetized (OFF), and then in step S688. On the other hand, if the determination result is "No", step S68
6 and proceeds to step S688.

【0183】ステップS688では更に排出2終了フラ
グが“1”であるか否かが判定され、この判定結果“Y
es”、即ちこの時点で賞球排出装置の第2排出ソレノ
イド側の賞品球の流出がすべて完了しているときには(
該フラグは第2排出ソレノイド側の賞品球の流出がすべ
て完了したとき後述のステップS660でその値が“1
”に設定される)ステップS690に進んで排出ソレノ
イド2を消磁(OFF)し、その後ステップS692に
進み、一方、判定結果が“No”のときはステップS6
90をスキップしてステップS692以降に進む。
[0183] In step S688, it is further determined whether or not the discharge 2 end flag is "1", and this determination result is "Y".
es'', that is, at this point, when all the prize balls have been discharged from the second discharge solenoid side of the prize ball discharge device (
The value of this flag is set to "1" in step S660, which will be described later, when all the prize balls on the second discharge solenoid side have been completely discharged.
”), the process proceeds to step S690, where the discharge solenoid 2 is demagnetized (OFF), and then the process proceeds to step S692. On the other hand, when the determination result is “No”, the process proceeds to step S690.
90 is skipped and the process proceeds to step S692 and subsequent steps.

【0184】この時点で2回目の球抜スイッチの押圧が
為されず、前記ステップS626の判定結果が“No”
となったときには、ステップS628にて排出1終了フ
ラグが“1”であるか否かが判定される。  この排出
1終了フラグは、本球抜処理が初めて実行されたときに
前述のステップS609にて“0”にリセットされるも
のであり、反対に球抜処理によって全ての賞品球が流出
されたときに後述のステップS642にて“1”に設定
される。従って本球抜処理により賞球排出装置170の
第1排出ソレノイド側の賞品球の排出が未だ完了してい
ないときには、該ステップS628の判定結果は“No
”となって、ステップS630以降の処理が実行される
[0184] At this point, the ball removal switch is not pressed for the second time, and the determination result in step S626 is "No".
When this happens, it is determined in step S628 whether or not the discharge 1 end flag is "1". This discharge 1 end flag is reset to "0" in step S609 described above when the main ball extraction process is executed for the first time, and conversely, when all the prize balls are discharged by the ball extraction process. is set to "1" in step S642, which will be described later. Therefore, if the ejection of the prize ball from the first ejection solenoid side of the prize ball ejecting device 170 has not yet been completed due to the main ball extraction process, the determination result in step S628 is "No.
”, and the processing from step S630 onwards is executed.

【0185】先ず、ステップS630では排出1球無フ
ラグが“1”であるか否かが判定される。この排出1球
無フラグは、メインルーチンのステップS4又は賞球排
出装置の第1排出ソレノイド側の球抜処理が完了したと
き(ステップS644)に“0”にリセットされ、本球
抜処理によって賞品球が流出され第1の賞球導出樋内(
排出センサ1内)に賞品球がなくなってセンサ出力が“
0”となったときにその値が“1”に設定されるもので
ある。従って、球抜開始後から排出センサ1内に賞品球
がなくなるまではこの判定結果は“No”となって、ス
テップS632にて排出センサ1の出力がロウレベル(
“0”)であるか否かが判定される。球抜処理が完了せ
ず未だ排出センサ1内に賞品球が残っているときにはこ
の判定結果は“No”となり、そのままステップS64
6以降に進む。
First, in step S630, it is determined whether or not the ejected one ball no flag is "1". This flag with no ejected 1 ball is reset to "0" at step S4 of the main routine or when the ball removal process on the first ejection solenoid side of the prize ball ejection device is completed (step S644), and the prize is awarded by the main ball removal process. The ball flows out and enters the first prize ball lead-out gutter (
There is no prize ball in the ejection sensor 1) and the sensor output is “
0", the value is set to "1". Therefore, from the start of ball removal until there are no prize balls in the ejection sensor 1, the determination result will be "No". In step S632, the output of the discharge sensor 1 is set to low level (
“0”) is determined. If the ball removal process is not completed and the prize ball still remains in the discharge sensor 1, the determination result becomes "No" and the process continues at step S64.
Proceed to step 6 onwards.

【0186】この状態から球抜処理によって第1の賞球
導出樋内(センサ1内)に賞品球がなくなると、ステッ
プS632の判定結果が“Yes”に転じ、上記排出1
球無フラグが“1”に設定され(ステップS634)、
次いでセンサ1内に賞品球がなくなった時点からの時間
経過を計測する排出1球無タイマがセットされて(ステ
ップS636)ステップS646以降に進む。その以降
のループでは前記ステップS630の判定結果は“Ye
s”に転じ、ステップS638にて再度排出センサ1の
出力レベルがロウレベル(“0”)であるか否かが判定
される。
[0186] From this state, when the prize ball disappears in the first prize ball deriving gutter (inside sensor 1) by the ball removal process, the determination result in step S632 changes to "Yes", and the above-mentioned discharge 1
The no-ball flag is set to “1” (step S634),
Next, an ejected one-ball no-ball timer is set to measure the passage of time from the time when no prize balls are left in the sensor 1 (step S636), and the process proceeds to steps S646 and thereafter. In the subsequent loop, the determination result in step S630 is “Ye”.
Then, in step S638, it is determined again whether the output level of the discharge sensor 1 is a low level ("0").

【0187】この判定結果が“Yes”即ち前回ループ
に引き続いて今回ループでも排出センサ1の出力レベル
がロウレベルに保持されていると判定されたときにはス
テップS640に進んで前記ステップS636でセット
された排出1球無タイマがタイムアップしたか否かが判
定される。この判定結果が“No”のとき、即ち第1の
賞球導出樋内(排出センサ1内)に賞品球がないと判定
されてから未だ所定時間が経過していないときには、ス
テップS642,S644をスキップして、ステップS
646以降に進む。以後、上記所定時間が経過するまで
、前記ステップS630,S638の判定結果が共に“
Yes”、ステップS640の判定結果が“No”とい
う具合に判定される。
[0187] If this determination result is "Yes", that is, it is determined that the output level of the discharge sensor 1 is maintained at a low level in the current loop following the previous loop, the process advances to step S640 and the discharge level set in step S636 is It is determined whether or not the one-ball no-ball timer has timed out. If this determination result is "No", that is, if the predetermined time has not yet passed since it was determined that there is no prize ball in the first prize ball derivation gutter (inside the discharge sensor 1), steps S642 and S644 are performed. Skip to step S
Proceed to 646 onwards. Thereafter, until the predetermined time period elapses, the determination results of steps S630 and S638 are both “
The determination result in step S640 is "No", and so on.

【0188】排出センサ1の出力レベルがロウレベルを
保持したまま上記所定時間が経過すると、ステップS6
40の判定結果が“Yes”に転じて排出1終了フラグ
が“1”に設定され(ステップS642)、更に排出1
球無フラグが“0”にリセットされて(ステップS64
4)、ステップS646以降に進む。このように、一旦
排出1終了フラグが“1”に設定されると次回以降のル
ープにおいては前記ステップS628の判定結果が“Y
es”となり、前記ステップS630〜S644をスキ
ップして、直接ステップS646以降に進むこととなる
[0188] When the predetermined time elapses while the output level of the discharge sensor 1 is maintained at the low level, step S6
40 is changed to "Yes", the discharge 1 end flag is set to "1" (step S642), and further discharge 1 is set to "1" (step S642).
The no-ball flag is reset to "0" (step S64).
4), proceed to step S646 and subsequent steps. In this way, once the discharge 1 end flag is set to "1", the determination result of step S628 will be "Y" in the next and subsequent loops.
es'', the steps S630 to S644 are skipped and the process directly proceeds to steps S646 and subsequent steps.

【0189】ところで、本ルーチンが開始され、一旦排
出センサ1の出力がロウレベル(このとき排出1球無フ
ラグが“1”)となった後、上記排出1球無タイマがタ
イムアップする前に再び排出センサ1の出力レベルがハ
イレベル(“1”)に変化すると、前記ステップS63
8の判定結果が“No”に転じ、前記排出1終了フラグ
を“1”に設定することなく(ステップS642をスキ
ップして)、前記ステップS644にて排出1球無フラ
グを“0”にリセットしてステップS646以降に進む
ようになっている。この結果1つの賞品球が排出センサ
1内を通過した後次の賞品球が該センサ1内に達するま
での間に生じる出力信号の立下りや該センサ1の出力信
号にノイズが発生したとき等、出力信号の波形が一時的
に立下った場合に誤って賞球導出樋内の賞品球の流出が
完了したと判断することがない。
By the way, after this routine is started and once the output of the ejection sensor 1 becomes low level (at this time, the ejected 1 ball no flag is "1"), the ejection 1 ball no timer is reset again before the timer expires. When the output level of the discharge sensor 1 changes to a high level (“1”), the step S63
8 turns to "No", and the discharge 1 ball no flag is reset to "0" in step S644 without setting the discharge 1 end flag to "1" (skipping step S642). Then, the process proceeds to step S646 and subsequent steps. As a result, the fall of the output signal that occurs after one prize ball passes through the ejection sensor 1 until the next prize ball reaches the sensor 1, or noise occurs in the output signal of the sensor 1, etc. Therefore, when the waveform of the output signal temporarily falls, it is not erroneously determined that the outflow of the prize balls in the prize ball guiding gutter has been completed.

【0190】次のステップS646では更に排出2終了
フラグが“1”であるか否かが判定される。この排出2
終了フラグは、本球抜処理が初めて実行されたときに前
述のステップS610にて“0”にリセットされるもの
であり、反対に球抜処理によって全ての賞品球が流出さ
れたときに後述のステップS660にて“1”に設定さ
れる。従って本球抜処理により賞球排出装置170の第
2排出ソレノイド側の賞品球の排出が未だ完了していな
いときには、該ステップS646の判定結果は“No”
となって、ステップS648以降の処理が実行される。
[0190] In the next step S646, it is further determined whether or not the discharge 2 end flag is "1". This discharge 2
The end flag is reset to "0" in the above-mentioned step S610 when the main ball extraction process is executed for the first time, and conversely, when all the prize balls have been drained by the ball extraction process, it is reset to "0" as described below. It is set to "1" in step S660. Therefore, if the ejection of the prize ball from the second ejection solenoid side of the prize ball ejecting device 170 has not yet been completed due to the main ball extraction process, the determination result of step S646 is "No".
Then, the processing from step S648 onwards is executed.

【0191】先ず、ステップS648では排出2球無フ
ラグが“1”であるか否かが判定される。この排出2球
無フラグは、メインルーチンのステップS4又は賞球排
出装置の第2排出ソレノイド側の球抜処理が完了したと
き(ステップS662)に“0”にリセットされ、本球
抜処理によって賞品球が流出され第2の賞球導出樋内(
排出センサ2内)に賞品球がなくなってセンサ出力が“
0”となったときにその値が“1”に設定されるもので
ある。
First, in step S648, it is determined whether or not the no ejected 2 balls flag is "1". This flag with no ejected 2 balls is reset to "0" at step S4 of the main routine or when the ball removal process on the second ejection solenoid side of the prize ball ejection device is completed (step S662), and the prize is awarded by the main ball removal process. The ball flows out and enters the second prize ball guiding gutter (
There is no prize ball in the ejection sensor 2) and the sensor output is “
When the value becomes "0", the value is set to "1".

【0192】従って、球抜開始後から排出センサ2内に
賞品球がなくなるまではこの判定結果は“No”となっ
て、ステップS650にて排出センサ2の出力がロウレ
ベル(“0”)であるか否かが判定される。球抜処理が
完了せず未だ排出センサ2内に賞品球が残っているとき
にはこの判定結果は“No”となり、そのままステップ
S664以降に進む。この状態から球抜処理によって第
2の賞球導出樋内(センサ2内)に賞品球がなくなると
、ステップS650の判定結果が“Yes”に転じ、上
記排出2球無フラグが“1”に設定され(ステップS6
52)、次いでセンサ2内に賞品球がなくなった時点か
らの時間経過を計測する排出2球無タイマがセットされ
て(ステップS654)ステップS664以降に進む。
[0192] Therefore, from the start of ball extraction until there are no more prize balls in the ejection sensor 2, the determination result is "No" and the output of the ejection sensor 2 is at a low level ("0") in step S650. It is determined whether or not. If the ball removal process is not completed and the prize ball still remains in the discharge sensor 2, the determination result is "No" and the process directly proceeds to step S664 and subsequent steps. In this state, when there are no prize balls in the second prize ball deriving gutter (inside sensor 2) by the ball extraction process, the determination result in step S650 changes to "Yes" and the two-ball no-ejected flag becomes "1". is set (step S6
52) Next, a timer with no ejected 2 balls is set to measure the elapsed time from the time when there are no more prize balls in the sensor 2 (step S654), and the process proceeds to steps S664 and thereafter.

【0193】その以降のループでは前記ステップS64
8の判定結果は“Yes”に転じ、ステップS656に
て再度排出センサ2の出力レベルがロウレベル(“0”
)であるか否かが判定される。この判定結果が“Yes
”即ち前回ループに引き続いて今回ループでも排出セン
サ2の出力レベルがロウレベルに保持されていると判定
されたときにはステップS658に進んで前記ステップ
S654でセットされた排出2球無タイマがタイムアッ
プしたか否かが判定される。この判定結果が“No”の
とき、即ち第2の賞球導出樋内(排出センサ2内)に賞
品球がないと判定されてから未だ所定時間が経過してい
ないときには、ステップS660,S662をスキップ
して、ステップS664以降に進む。
[0193] In the subsequent loop, step S64 is performed.
The determination result in step S656 changes to "Yes", and the output level of the discharge sensor 2 becomes low level ("0") again in step S656.
). This judgment result is “Yes”
``In other words, when it is determined that the output level of the ejection sensor 2 is maintained at a low level in the current loop following the previous loop, the process advances to step S658 to determine whether the ejected 2-ball no timer set in step S654 has timed out. If the result of this determination is "No", that is, the predetermined time has not yet passed since it was determined that there is no prize ball in the second prize ball derivation gutter (inside the discharge sensor 2). Sometimes, steps S660 and S662 are skipped and the process proceeds to steps S664 and subsequent steps.

【0194】以後、上記所定時間が経過するまで、前記
ステップS648,S656の判定結果が共に“Yes
”、ステップS658の判定結果が“No”という具合
に判定される。排出センサ2の出力レベルがロウレベル
を保持したまま上記所定時間が経過すると、ステップS
658の判定結果が“Yes”に転じて排出2終了フラ
グが“1”に設定され(ステップS660)、更に排出
2球無フラグが“0”にリセットされて(ステップS6
62)、ステップS664以降に進む。このように、一
旦排出2終了フラグが“1”に設定されると次回以降の
ループにおいては前記ステップS646の判定結果が“
Yes”となり、前記ステップS648〜S662をス
キップして、ステップS664以降に進むこととなる。
[0194] Thereafter, until the predetermined time elapses, the determination results of steps S648 and S656 are both "Yes".
”, the determination result in step S658 is “No”. When the predetermined time elapses while the output level of the discharge sensor 2 is maintained at the low level, the determination result in step S658 is determined as “No”.
The determination result of step 658 changes to "Yes" and the discharge 2 completion flag is set to "1" (step S660), and the discharge 2 ball no flag is reset to "0" (step S6
62), the process proceeds to step S664 and subsequent steps. In this way, once the discharge 2 end flag is set to "1", in the subsequent loops, the determination result of step S646 will be "1".
Yes”, the process skips steps S648 to S662 and proceeds to step S664 and subsequent steps.

【0195】ところで、本ルーチンが開始され、一旦排
出センサ2の出力がロウレベル(このとき排出2球無フ
ラグが“1”)となった後、上記排出2球無タイマがタ
イムアップする前に再び排出センサ2の出力レベルがハ
イレベル(“1”)に変化すると、前記ステップS65
6の判定結果が“No”に転じ、前記排出2終了フラグ
を“1”に設定することなく(ステップS660をスキ
ップして)、前記ステップS662にて排出2球無フラ
グを“0”にリセットしてステップS664以降に進む
ようになっている。この結果1つの賞品球が排出センサ
2内を通過した後次の賞品球が該センサ2内に達するま
での間に生じる出力信号の立下りや該センサ2の出力信
号にノイズが発生したとき等、出力信号の波形が一時的
に立下った場合に誤って賞球導出樋内の賞品球の流出が
完了したと判断することがない。
By the way, after this routine is started and the output of the ejection sensor 2 becomes a low level (at this time, the 2-ball no-ejected ball flag is "1"), the output of the ejected 2-ball no. When the output level of the discharge sensor 2 changes to a high level (“1”), the step S65
If the determination result in step 6 turns to "No", the discharge 2 ball no flag is reset to "0" in step S662 without setting the discharge 2 end flag to "1" (skipping step S660). Then, the process proceeds to step S664 and subsequent steps. As a result, the fall of the output signal that occurs after one prize ball passes through the ejection sensor 2 until the next prize ball reaches the sensor 2, or noise occurs in the output signal of the sensor 2, etc. Therefore, when the waveform of the output signal temporarily falls, it is not erroneously determined that the outflow of the prize balls in the prize ball guiding gutter has been completed.

【0196】上記ステップS646〜S662を実行し
た結果、賞球排出装置の第2排出ソレノイド側の賞品球
の流出が完了したと判定された後は、ステップS646
の判定結果が“Yes”に転じステップS664にて第
1排出ソレノイド側の賞品球の球抜が完了したか否か(
排出1終了フラグが“1”か)の判定が再度なされる。 この判定結果が“No”のときには、そのまま今回ルー
プでの処理を終了して、次回ループへと移行する(次回
ループでは再びステップS628〜S644が実行され
ることになる)。
[0196] As a result of executing steps S646 to S662, after it is determined that the outflow of the prize ball from the second discharge solenoid side of the prize ball discharge device is completed, step S646 is executed.
The determination result changes to "Yes" and in step S664, it is determined whether or not the ball removal of the prize ball on the first ejection solenoid side has been completed (
The determination as to whether the discharge 1 end flag is "1" is made again. If the result of this determination is "No", the process in the current loop is immediately terminated, and the process proceeds to the next loop (steps S628 to S644 will be executed again in the next loop).

【0197】一方、判定結果が“Yes”、即ちこの時
点で賞球排出装置の第1、第2の排出ソレノイドによる
球抜処理が共に完了したと判断されたときには、先ず前
記球抜実行フラグ及び球抜開始フラグを共に“0”にリ
セットし(ステップS666,S668)、球抜処理を
終了させるべく排出ソレノイド1,2の消磁(OFF)
を行ない(ステップS674,S676)、更に球抜ソ
レノイドの消磁(OFF)(ステップS678)を行っ
た後、処理NOを“0”にリセットして(ステップS6
80)、本ルーチンを終了する。
On the other hand, if the determination result is "Yes", that is, it is determined that the ball extraction process by the first and second discharge solenoids of the prize ball discharge device are both completed at this point, the ball extraction execution flag and Both the ball removal start flags are reset to "0" (steps S666, S668), and the discharge solenoids 1 and 2 are demagnetized (OFF) to end the ball removal process.
(Steps S674, S676), and further demagnetizes (OFF) the bulb removal solenoid (Step S678), and then resets the process NO to "0" (Step S6).
80), this routine ends.

【0198】次に前記ステップS602,S616,S
626の何れかの判定結果が“Yes”のときに行われ
る強制終了処理(ステップS700以降の処理)につい
て説明する。この処理は、球抜スイッチが押されて一旦
球抜処理が開始された後、再び該スイッチが押されたと
き(2回押し)に実行されるものである。先ず、ステッ
プS700では、強制終了タイマがタイムアップしたか
否かが判定される。この強制終了タイマは2回目のスイ
ッチの押圧がなされたとき(ステップS616,S62
6判定結果が“No”となった直後に実行されるステッ
プS698)にカウントを開始するものである。この判
定結果が“No”、即ち2回目のスイッチ押圧から未だ
所定時間が経過していないときには、ステップS702
にて排出1終了フラグが“1”であるか否かが判定され
る。
Next, the steps S602, S616, S
The forced termination process (processing after step S700) that is performed when any of the determination results in step S726 is "Yes" will be described. This process is executed when the ball removal switch is pressed and the ball removal process is once started, and then the switch is pressed again (two times). First, in step S700, it is determined whether the forced termination timer has timed out. This forced termination timer is activated when the switch is pressed for the second time (steps S616 and S62).
Counting is started at step S698), which is executed immediately after the 6 determination result becomes "No". If the determination result is "No", that is, the predetermined time has not yet passed since the second switch press, step S702
It is determined whether the discharge 1 end flag is "1" or not.

【0199】このステップS702の判定結果が“No
”、即ち球抜処理が完了する前(前記フラグはその値が
“1”のとき賞球排出装置の第1排出ソレノイド側の球
抜が完了したことを表わす)に強制終了処理が開始され
たときには、更にステップS704にて排出センサ1立
上フラグが“1”であるか否かが判定される。この判定
結果が“Yes”のとき、即ち、強制終了処理が一旦行
われた後、新たに賞品球がセンサ1内に達したときには
、この時点で排出ソレノイド1を消磁(OFF)し(ス
テップS706)、次いで強制的に排出1終了フラグを
“1”に設定して(ステップS708)、ステップS7
10に進み、一方、“No”のときには、前記ステップ
S706,S708をスキップして、ステップS710
に進む。
[0199] The determination result in step S702 is “No.
”, that is, the forced termination process was started before the ball extraction process was completed (when the value of the flag is “1”, it indicates that the ball extraction on the first ejection solenoid side of the prize ball ejection device was completed). In some cases, it is further determined in step S704 whether or not the discharge sensor 1 start-up flag is "1".If the determination result is "Yes", that is, after the forced termination process has been performed, a new When the prize ball reaches inside the sensor 1, the ejection solenoid 1 is demagnetized (OFF) at this point (step S706), and then the ejection 1 end flag is forcibly set to "1" (step S708). Step S7
On the other hand, if the answer is "No", steps S706 and S708 are skipped and the process proceeds to step S710.
Proceed to.

【0200】ステップS710では排出2終了フラグが
“1”であるか否かが判定される。このステップS71
0の判定結果が“No”、即ち球抜処理が完了する前(
前記フラグはその値が“1”のとき賞球排出装置の第2
排出ソレノイド側の球抜が完了したことを表わす)に強
制終了処理が開始されたときには、更にステップS71
2にて排出センサ2立上フラグが“1”であるか否かが
判定される。この判定結果が“Yes”のとき、即ち、
強制終了処理が一旦行われた後、新たに賞品球がセンサ
2内に達したときには、この時点で排出ソレノイド2を
消磁(OFF)し(ステップS714)、次いで強制的
に排出2終了フラグを“1”に設定して(ステップS7
16)、本ルーチンを終了する。
[0200] In step S710, it is determined whether the discharge 2 end flag is "1". This step S71
If the judgment result of 0 is “No”, that is, before the ball extraction process is completed (
When the value of the flag is “1”, the second flag of the prize ball ejecting device
When the forced termination process is started (indicating that the bulb removal on the discharge solenoid side has been completed), step S71 is further performed.
At step 2, it is determined whether or not the discharge sensor 2 startup flag is "1". When this judgment result is “Yes”, that is,
After the forced termination process is once performed, when a new prize ball reaches the sensor 2, the discharge solenoid 2 is demagnetized (OFF) at this point (step S714), and then the discharge 2 end flag is forcibly set to " 1” (step S7).
16) End this routine.

【0201】一方、判定結果が“No”のときには、前
記ステップS714,S716をスキップして、本ルー
チンを終了する。このように強制終了処理(ステップS
700以降の処理)が開始された後所定時間が経過する
までに排出センサ2の出力信号の立上り(新たな賞品球
がセンサ内に達したこと)が検出されて一旦排出2終了
フラグが“1”に設定されると、次回以降のループでは
ステップS710の判定結果が“Yes”となって、更
に排出1終了フラグが“1”であるか否かが判定される
(ステップS718)。この判定結果が“No”、即ち
この時点で、賞球排出装置の第1排出センサ1が強制終
了処理開始後の新たな賞品球を検出していないときは、
そのまま本ルーチンを終了する。この場合次回以降のル
ープにおいてもステップS702〜S708の処理が引
き続き実行される。
On the other hand, if the determination result is "No", steps S714 and S716 are skipped and this routine is ended. In this way, the forced termination process (step S
The rise of the output signal of the ejection sensor 2 (that a new prize ball has reached the sensor) is detected before a predetermined time elapses after the process (processing after 700) is started, and the ejection 2 end flag is set to "1". ”, in the next and subsequent loops, the determination result in step S710 becomes “Yes”, and it is further determined whether or not the discharge 1 end flag is “1” (step S718). If this determination result is "No", that is, at this point, the first ejection sensor 1 of the prize ball ejecting device has not detected a new prize ball after the start of the forced termination process,
This routine ends immediately. In this case, the processes of steps S702 to S708 will continue to be executed in subsequent loops.

【0202】一方、前記ステップS718の判定結果が
“Yes”、即ち、強制終了処理が実行された後、賞球
排出装置の第1,第2の排出センサ1,2が共に新たな
賞品球が該センサ1,2内に達したことを検知したとき
には後述のステップS724以降の処理が行われる。 又、上記ステップS702〜S718の処理を実行して
いるうちに所定時間が経過して強制終了タイマがタイム
アップして、ステップS700の判定結果が“Yes”
に転じると(このとき前記排出1終了フラグ及び排出2
終了フラグの何れか一方が“0”である)、ステップS
720,S722で夫々排出ソレノイド1、排出ソレノ
イド2を強制的に消磁(OFF)してステップS724
以降に進む。
On the other hand, if the determination result in step S718 is "Yes", that is, after the forced termination process is executed, both the first and second ejection sensors 1 and 2 of the prize ball ejecting device detect the new prize balls. When it is detected that the light has reached the inside of the sensors 1 and 2, the processes from step S724 to be described later are performed. Also, while the above steps S702 to S718 are being executed, a predetermined period of time passes and the forced termination timer times out, and the determination result in step S700 is "Yes".
(At this time, the discharge 1 end flag and discharge 2
Either one of the end flags is “0”), step S
In steps 720 and S722, the discharge solenoid 1 and discharge solenoid 2 are forcibly demagnetized (OFF), respectively, and the process proceeds to step S724.
Proceed to the following.

【0203】ステップS724では、前述の強制終了フ
ラグを“0”にリセットし、更にステップS726,S
728にて前記球抜実行フラグ及び球抜開始フラグを共
に“0”にリセットし、更に球抜ソレノイドの消磁(O
FF)を行なった後(ステップS734)、処理NOを
“0”にリセットして(ステップS736)、本ルーチ
ンを終了する。図43には、図12のメイン処理フロー
中のステップS23で行なわれる補給処理の具体的手順
の一例が示されている。
[0203] In step S724, the foregoing forced termination flag is reset to "0", and further steps S726 and S
At 728, both the ball removal execution flag and the ball removal start flag are reset to "0", and the ball removal solenoid is demagnetized (O
FF) (step S734), the process NO is reset to "0" (step S736), and this routine ends. FIG. 43 shows an example of a specific procedure of the replenishment process performed in step S23 in the main process flow of FIG. 12.

【0204】この補給処理が開始されると、まず補給セ
ンサ106の検出信号を検出するの補給センサ入力処理
(図22)中において設定される補給センサ立上りフラ
グを調べ(ステップS752)、“Yes”のときはス
テップS754へ進み、完了ランプ108を点灯させて
から、補給要求フラグを“1”にセット、補給センサ立
上りフラグを“0”にクリアして、このルーチンを終了
する(ステップS756,S758)。この補給フラグ
は、後述の遊技台情報出力処理(図48)において管理
装置700に対する補給信号Kをアサートさせるために
参照される。
When this replenishment process is started, first, the replenishment sensor rising flag set during the replenishment sensor input process (FIG. 22) for detecting the detection signal of the replenishment sensor 106 is checked (step S752), and "Yes" is determined. If so, the process advances to step S754, turns on the completion lamp 108, sets the replenishment request flag to "1", clears the replenishment sensor rise flag to "0", and ends this routine (steps S756 and S758). ). This replenishment flag is referenced in order to assert a replenishment signal K to the management device 700 in the game machine information output process (FIG. 48), which will be described later.

【0205】一方、上記ステップS752で“No”と
判定されたときは、ステップS760へ移行して補給セ
ンサが立ち下がったことを示す立下りフラグが「1」か
否か判定し、“No”なら何もせずにまた“Yes”な
ら上記ステップS754で点灯させた完了ランプ108
を消灯させてから(ステップS762)、補給要求フラ
グおよび補給センサ立下りフラグをそれぞれ“0”にク
リアして、このルーチンを終了する(ステップS764
,S766)。図44には、図12のメイン処理フロー
中のステップS24で行なわれる情報出力処理の具体的
内容が示されている。
On the other hand, if the determination in step S752 is "No", the process moves to step S760, where it is determined whether the falling flag indicating that the replenishment sensor has fallen is "1", and the determination is "No". If so, do nothing and if the answer is "Yes", the completion lamp 108 turned on in step S754 above.
After turning off the light (step S762), the replenishment request flag and the replenishment sensor fall flag are cleared to "0", and this routine ends (step S764).
, S766). FIG. 44 shows specific details of the information output process performed in step S24 in the main process flow of FIG. 12.

【0206】図44に示されているように、この情報出
力処理は、玉貸し制御装置500に対する出力信号を形
成する貸し玉情報出力処理S800と、遊技盤制御装置
400に対する出力信号を形成する音要求出力処理S8
50と、ホールの管理装置700に対する出力信号を形
成する賞球情報出力処理S900、遊技台情報出力処理
S950およびエラー情報出力処理S990とからなる
。図45には、上記情報出力処理フロー中における貸し
玉情報出力処理S800の具体的手順の一例を示す。 このルーチンが開始されると、まずステップS802で
玉貸し要求フラグがセットされているか否か調べる。こ
の玉貸し要求フラグは、図14に示されている玉貸しリ
クエスト検出処理ルーチン中において、玉貸し制御装置
500からの玉貸し要求信号Tが連続して5m秒以上ロ
ウレベルになったことを検出したときにセットされるフ
ラグである(ステップS4122)。
As shown in FIG. 44, this information output processing includes a ball rental information output processing S800 that forms an output signal to the ball rental control device 500, and a sound output processing S800 that forms an output signal to the game board control device 400. Request output processing S8
50, prize ball information output processing S900 for forming an output signal to the hall management device 700, game machine information output processing S950, and error information output processing S990. FIG. 45 shows an example of a specific procedure of the ball rental information output process S800 in the above information output process flow. When this routine is started, first in step S802 it is checked whether the ball lending request flag is set. This ball lending request flag detects that the ball lending request signal T from the ball lending control device 500 has been at a low level for 5 msec or more continuously during the ball lending request detection processing routine shown in FIG. This is a flag that is set at the time (step S4122).

【0207】ステップS802での判定の結果、“Ye
s”すなわち玉貸し要求フラグがセットされているとき
はそのまま、また“No”すなわち玉貸し要求フラグが
リセットされているときはステップS804でP台レデ
ィフラグを“0”にクリアしてから、それぞれステップ
S806へ進む。上記P台レディフラグは後述のステッ
プS810で、玉貸しレディ信号Uをハイレベルまたは
ロウレベルに変化されるか決定する際に使用されるフラ
グで、前述した玉貸し開始処理ルーチン(図38)が実
行されて玉貸し排出が開始される際に、ステップS42
0でセットされる。
[0207] As a result of the determination in step S802, “Yes.
s", that is, the ball lending request flag is set, leave it as is; if "No", that is, the ball lending request flag is reset, clear the P machine ready flag to "0" in step S804, and then Proceed to step S806.The above-mentioned P unit ready flag is a flag used to determine whether the ball lending ready signal U is changed to a high level or a low level in step S810, which will be described later. When the process shown in FIG. 38) is executed and ball rental discharge is started, step S42
Set to 0.

【0208】このステップS806では、玉貸し制御装
置500に対して出力される払出完了信号Vがロウレベ
ル(有効)かハイレベル(無効)か判定する。その結果
、ハイレベルであであればステップS808へ進み、玉
貸し排出処理ルーチン(図38)で排出が終了したとき
にセットされる払出終了フラグが“1”か否か判定する
。そして、“No”であればステップS810へ移行し
て、上記P台レディフラグが“1”か否か判定し、“N
o”なら玉貸しレディ信号Uをハイレベルにネゲートし
、“Yes”なら玉貸しレディ信号Uをロウレベルにア
サートして本ルーチンを終了する(ステップS812,
S814)。
[0208] In this step S806, it is determined whether the payout completion signal V output to the ball lending control device 500 is at a low level (valid) or a high level (invalid). As a result, if the level is high, the process advances to step S808, and it is determined whether the payout end flag, which is set when the ball lending discharge process routine (FIG. 38) ends, is "1". If "No", the process moves to step S810, where it is determined whether or not the P ready flag is "1", and "N
o”, the ball lending ready signal U is negated to high level, and if “Yes”, the ball lending ready signal U is asserted to low level, and this routine ends (step S812,
S814).

【0209】従って、玉貸しリクエスト検出処理(図1
4)で玉貸し制御装置500からの玉貸し要求信号Tが
検出されて玉貸し要求フラグがセットされると、メイン
ルーチンのステップS11で“Yes”と判定されて玉
貸し開始処理ルーチン(図38)が実行されて玉貸し排
出が開始されるとともにP台レディフラグが“1”にセ
ットされるため、本玉貸し情報出力処理ルーチンではス
テップS802からステップS806へジャンプし、ス
テップS806,S808でそれぞれ“No”と判定さ
れ、ステップS810では“Yes”と判定して玉貸し
レディ信号Uをロウレベルにアサートする。
[0209] Therefore, the ball lending request detection process (Fig.
4), when the ball lending request signal T from the ball lending control device 500 is detected and the ball lending request flag is set, "Yes" is determined in step S11 of the main routine, and the ball lending start processing routine (FIG. 38 ) is executed and ball rental discharge is started and the P machine ready flag is set to "1", so the main ball rental information output processing routine jumps from step S802 to step S806, and in steps S806 and S808, respectively. The determination is "No", and in step S810, the determination is "Yes" and the ball lending ready signal U is asserted to a low level.

【0210】そして、その後玉貸し排出が終了して玉貸
し排出処理ルーチン(図39)で払出終了フラグが“1
”にセットされると、本ルーチンのステップS808で
“Yes”と判定されてステップS816へ移行し、玉
貸し制御装置500に対する払出完了信号Vおよびホー
ルの管理装置700へ出力される排出貸し玉数信号J(
1パルスが最小変換単位の玉数を表す)をそれぞれロウ
レベルにアサートし、かつ払出完了タイマをセット(起
動)させ、払出終了フラグを“0”にクリアしてから(
ステップS816,S818,S820,S822)、
上記ステップS810−S814と進んで引き続き玉貸
しレディ信号Uをロウレベルにアサートしておく。
[0210] After that, the ball lending and discharging is completed and the payout end flag is set to "1" in the ball lending and discharging processing routine (FIG. 39).
”, it is determined “Yes” in step S808 of this routine and the process moves to step S816, where the payout completion signal V to the ball rental control device 500 and the number of discharged rental balls are output to the hall management device 700. Signal J (
1 pulse represents the number of balls in the minimum conversion unit) are asserted to low level, the payout completion timer is set (activated), and the payout completion flag is cleared to "0" (
Steps S816, S818, S820, S822),
Proceeding to steps S810 to S814, the ball lending ready signal U is subsequently asserted to a low level.

【0211】次に、再び本ルーチンが実行されると、ス
テップS806で“Yes”すなわち払出完了信号Vが
ロウレベルと判定されてステップS824へ移行し、上
記ステップS820でセットされたタイマがタイムアッ
プしたか否か判定される。ここで、タイマがまだタイム
アップしていなければそのまま上記ステップS810へ
移行し、タイムアップしていれば上記払出完了信号Vお
よび排出貸し玉数信号Jをそれぞれハイレベルにネゲー
トしてから(ステップS826,S828)、ステップ
S810−S814と進んで引き続き玉貸しレディ信号
Uをロウレベルにアサートしておく。
Next, when this routine is executed again, it is determined "Yes" in step S806, that is, the payout completion signal V is low level, and the process moves to step S824, and the timer set in step S820 has timed out. It is determined whether or not. Here, if the timer has not yet timed out, the process directly proceeds to step S810, and if the timer has timed up, the payout completion signal V and the number of balls to be discharged signal J are each negated to a high level (step S826). , S828) and steps S810 to S814, and the ball lending ready signal U is continuously asserted to a low level.

【0212】上記処理によって上記払出完了信号Vがハ
イレベルにネゲートされると、玉貸し制御装置500が
それを検知して玉貸し要求信号をハイレベルにネゲート
してくるため、玉貸しリクエスト検出処理(図14)で
玉貸し要求信号Tがハイレベルに変化されたことが検出
されて玉貸し要求フラグがリセットされる。すると、再
び本ルーチンが実行されたときにステップS802で“
No”と判定されるため、ステップS804へ移行して
P台レディフラグが“0”にクリアされる。また、払出
完了信号Vがハイレベルにネゲートされているため、ス
テップS806では“No”と判定され、ステップS8
08、S810と進み、ステップS810で“No”す
なわちP台レディフラグが“0”と判定される。その結
果、玉貸しレディ信号Uがハイレベルにネゲートされて
終了する。
[0212] When the payout completion signal V is negated to a high level by the above process, the ball lending control device 500 detects this and negates the ball lending request signal to a high level, so that the ball lending request detection process (FIG. 14), it is detected that the ball lending request signal T is changed to a high level, and the ball lending request flag is reset. Then, when this routine is executed again, “
Since the determination is "No", the process moves to step S804 and the P machine ready flag is cleared to "0". Also, since the payout completion signal V has been negated to a high level, the determination is "No" in step S806. It is determined, step S8
08 and S810, and in step S810 it is determined "No", that is, the P unit ready flag is determined to be "0". As a result, the ball lending ready signal U is negated to a high level and the process ends.

【0213】図46には、上記情報出力処理フロー中に
おける音要求出力処理S850の具体的手順の一例を示
す。このルーチンが開始されると、まずステップS85
2で遊技盤制御装置400に対する貸し玉排出音発生要
求信号Eがロウレベルにアサートされているか調べ、ハ
イレベルであればステップS854へ進み玉貸音要求フ
ラグが“1”にされているか否か判定する。上記玉貸音
要求フラグは、前述した玉貸し開始処理ルーチン(図3
8)が実行されて貸し玉排出が開始される際に、ステッ
プS418でセットされるフラグである。
FIG. 46 shows an example of a specific procedure of the sound request output process S850 in the above information output process flow. When this routine is started, first step S85
In step S854, it is checked whether the ball rental sound generation request signal E to the game board control device 400 is asserted to a low level, and if it is high, the process advances to step S854 and it is determined whether the ball rental sound request flag is set to "1". do. The above-mentioned ball lending request flag is set in the ball lending start processing routine (Fig. 3) described above.
This flag is set in step S418 when step 8) is executed and rental ball discharge is started.

【0214】ステップS854で“Yes”と判定され
るとステップS856へ移行し、貸し玉排出音発生要求
信号Eをロウレベルにアサートしてから、玉貸音タイマ
をセットし、玉貸音要求フラグを“0”にクリアして本
ルーチンを終了する(ステップS858,S860)。 一方、ステップS854で“No”すなわち玉貸音要求
フラグが“0”と判定すると、ステップS872へ進み
、遊技盤制御装置400に対する賞球排出音発生要求信
号Dがロウレベルにアサートされているか調べ、ハイレ
ベルであればステップS874へ進み賞球音要求フラグ
が“1”にされているか否か判定する。上記賞球音要求
フラグは、前述した賞球開始処理ルーチン(図32)が
実行されて賞球排出が開始される際に、ステップS89
でセットされるフラグである。
[0214] If it is determined as "Yes" in step S854, the process moves to step S856, where the ball rental sound generation request signal E is asserted to low level, the ball rental sound timer is set, and the ball rental sound request flag is set. It is cleared to "0" and this routine ends (steps S858, S860). On the other hand, if it is determined in step S854 that "No", that is, the ball rental sound request flag is "0", the process advances to step S872, and it is checked whether the prize ball discharge sound generation request signal D to the game board control device 400 is asserted to a low level; If the level is high, the process advances to step S874 and it is determined whether the prize ball sound request flag is set to "1". The above-mentioned prize ball sound request flag is set in step S89 when the aforementioned prize ball start processing routine (FIG. 32) is executed and prize ball discharge is started.
This is a flag set by .

【0215】ステップS874で“Yes”と判定され
るとステップS876へ移行し、賞球排出音発生要求信
号Dをロウレベルにアサートしてから、賞球音タイマを
セットし、賞球音要求フラグを“0”にクリアして本ル
ーチンを終了する(ステップS878,S880)。そ
れから、再び本ルーチンが開始されたときに、ステップ
S852へ来ると、“Yes”すなわち貸し玉排出音発
生要求信号Eがロウレベルであると判定されてステップ
S862へ移行し、上記ステップS858でセットした
玉貸音タイマがタイムアップしたか否か判定する。そし
て、タイムアップしていなければそのままルーチンを終
了し、タイムアップしていれば貸し玉排出音発生要求信
号Eをハイレベルにネゲートしてルーチンを終了する(
ステップS864)。
[0215] If it is determined "Yes" in step S874, the process moves to step S876, where the prize ball ejection sound generation request signal D is asserted to low level, the prize ball sound timer is set, and the prize ball sound request flag is set. It is cleared to "0" and this routine ends (steps S878, S880). Then, when this routine is started again, when it comes to step S852, it is determined to be "Yes", that is, the rented ball ejection sound generation request signal E is at a low level, and the process moves to step S862, and the value set in step S858 is determined to be low. Determine whether or not the timer has expired. Then, if the time is not up, the routine is terminated, and if the time is up, the rental ball discharge sound generation request signal E is negated to a high level and the routine is terminated (
Step S864).

【0216】一方、ステップS876で賞球排出音発生
要求信号Dがロウレベルにアサートされてから、再び本
ルーチンが開始され、ステップS872へ来ると“Ye
s”すなわち賞球排出音発生要求信号Dがロウレベルで
あると判定されてステップS882へ移行し、上記ステ
ップS878でセットした賞球音タイマがタイムアップ
したか否か判定する。そして、タイムアップしていなけ
ればそのままルーチンを終了し、タイムアップしていれ
ば賞球排出音発生要求信号Dをハイレベルにネゲートし
てルーチンを終了する(ステップS884)。図50に
は、上記情報出力処理フロー中におけるホールの管理装
置700に対する上記賞球情報出力処理S900の具体
的手順の一例を示す。この賞球情報はホールの管理装置
700に対して出力される。
On the other hand, after the prize ball ejection sound generation request signal D is asserted to a low level in step S876, this routine is started again, and when step S872 is reached, "Ye" is output.
s'', that is, the prize ball ejection sound generation request signal D, is determined to be at a low level, the process moves to step S882, and it is determined whether or not the prize ball sound timer set in step S878 has timed up. If not, the routine ends as is, and if the time is up, the prize ball ejection sound generation request signal D is negated to a high level and the routine ends (step S884). An example of the specific procedure of the prize ball information output process S900 to the hole management device 700 in FIG.

【0217】このルーチンが開始されると、まずステッ
プS902で遊技盤制御装置400に対し出力される読
込み確定信号Hがロウレベルにアサートされているか調
べ、ハイレベルであればステップS904へ進み、読込
み確定フラグが“1”にされているか否か判定する。上
記読込み確定フラグは、前述した賞球排出処理ルーチン
(図32)が実行されて賞球排出が開始される際に、ス
テップS214でセットされるフラグである。ステップ
S904で“Yes”と判定されるとステップS906
へ移行し、読込み確定信号Hをロウレベルにアサートし
てから、読込み確定タイマをセットし、読込み確定フラ
グを“0”にクリアして本ルーチンを終了する(ステッ
プS908,S910)。
When this routine is started, first, in step S902, it is checked whether the reading confirmation signal H output to the game board control device 400 is asserted to a low level, and if it is high, the process advances to step S904, and the reading is confirmed. Determine whether the flag is set to "1". The reading confirmation flag is a flag that is set in step S214 when the aforementioned prize ball ejection processing routine (FIG. 32) is executed and prize ball ejection is started. If “Yes” is determined in step S904, step S906
After asserting the read confirmation signal H to low level, the read confirmation timer is set, the read confirmation flag is cleared to "0", and this routine ends (steps S908 and S910).

【0218】そして、読込み確定信号Hがロウレベルに
アサートされてから、再び本ルーチンが開始され、ステ
ップS902まで来ると“Yes”すなわち読込み確定
信号Hがロウレベルであると判定されて、ステップS9
12へ移行して上記ステップS908でセットした読込
み確定タイマがタイムアップしたか否か判定する。そし
て、タイムアップしていなければそのままルーチンを終
了し、タイムアップしていれば読込み確定信号Hをハイ
レベルにネゲートしてルーチンを終了する(ステップS
914)。
After the read confirmation signal H is asserted to low level, this routine is started again, and when it reaches step S902, it is determined as "Yes", that is, the read confirmation signal H is at low level, and step S9
12, it is determined whether the read confirmation timer set in step S908 has timed up. If the time has not expired, the routine is terminated, and if the time has expired, the read confirmation signal H is negated to a high level and the routine is terminated (step S
914).

【0219】一方、ステップS904で“No”すなわ
ち読込み確定フラグが“0”と判定すると、ステップS
920へ進み、遊技盤制御装置400に対する賞球数信
号I(1パルスで排出球10個を表す)がロウレベルに
アサートされているか調べ、ハイレベルであればステッ
プS922へ進み、賞球送信禁止フラグが“1”にされ
ているか否か判定する。上記賞球送信禁止フラグは、後
述のステップS932で賞球数信号Iがネゲートされた
ときに所定時間該信号の送信を禁止させるためにセット
されるフラグである。
On the other hand, if it is determined "No" in step S904, that is, the read confirmation flag is "0", step
The process proceeds to step S920, and it is checked whether the prize ball number signal I (one pulse represents 10 ejected balls) to the game board control device 400 is asserted to a low level, and if the level is high, the process proceeds to step S922, where the prize ball transmission prohibition flag is set. is set to "1". The prize ball transmission prohibition flag is a flag that is set to prohibit transmission of the signal for a predetermined period of time when the prize ball number signal I is negated in step S932, which will be described later.

【0220】ステップS922で“No”と判定される
とステップS924へ移行し、賞球排出カウンタ(図3
2の賞球排出処理中のステップS216で排出終了時に
排出数(賞球数)分だけ1度に更新される)の値が10
個以上か否か判定して“No”すなわち9個以下ならそ
のままルーチンを終了し、10個以上なら賞球数信号I
をロウレベルにアサートしてから、賞球数タイマ1をセ
ットして本ルーチンを終了する(ステップS926,S
928)。排出球10個に対して所定のパルス幅の賞球
数信号Iを1パルス出力させるためである。
[0220] If it is determined "No" in step S922, the process moves to step S924, and the prize ball ejection counter (Fig. 3
In step S216 during the prize ball discharge process in step 2, when the discharge is completed, the value of 1 is updated by the number of discharged balls (number of prize balls) at once.
If it is ``No'', that is, 9 or less, the routine ends, and if it is 10 or more, the prize ball number signal I
is asserted to a low level, and then the prize pitch count timer 1 is set to end this routine (steps S926 and S926).
928). This is to output one pulse of the prize ball number signal I having a predetermined pulse width for 10 ejected balls.

【0221】それから、再び本ルーチンが開始されたと
きに、ステップS920で“Yes”すなわち賞球数信
号Iがロウレベルであると判定すると、ステップS93
0へ移行して上記ステップS928でセットした賞球数
タイマ1がタイムアップしたか否か判定する。そして、
タイムアップしていなければそのままルーチンを終了し
、タイムアップしていればステップS932で賞球数信
号Iをハイレベルにネゲートしてから、賞球排出カウン
タの値を「10」だけ減算し(タイマ1の動作中にもカ
ウンタの値は更新されるため“0”にクリアすることは
できない)、また賞球送信禁止フラグを“1”にセット
し、賞球タイマ2を起動して本ルーチンを終了する(ス
テップS934,S936,S938)。
[0221] Then, when this routine is started again, if it is determined in step S920 that it is "Yes", that is, that the prize ball number signal I is at a low level, the process proceeds to step S93.
0, and it is determined whether or not the prize ball count timer 1 set in step S928 has timed out. and,
If the time has not elapsed, the routine ends; if the time has elapsed, the prize ball count signal I is negated to a high level in step S932, and the value of the prize ball ejection counter is subtracted by "10" (the timer is activated). (The value of the counter is updated even during the operation of step 1, so it cannot be cleared to 0.) Also, set the prize ball transmission prohibition flag to "1", start prize ball timer 2, and execute this routine. The process ends (steps S934, S936, S938).

【0222】このようにして、賞球送信禁止フラグが“
1”にセットされてから再び本ルーチンが開始されると
、ステップS922で“Yes”すなわち賞球送信禁止
フラグが“1”と判定されるため、ステップS940へ
移行して賞球数タイマ2がタイムアップしたか否か判定
する。そして、タイムアップしていなければそのままル
ーチンを終了し、タイムアップしていれば賞球送信禁止
フラグを“0”にクリアしてルーチンを終了する(ステ
ップS942)。これによって、賞球数10個毎に所定
のパルス幅(タイマ1の設定時間)の賞球数信号Iを出
力させることができ、また賞球数信号Iを1パルス出力
した後は一定時間信号の送信が禁止される。その結果、
多数のパチンコ遊技機からの賞球数信号を受信する管理
装置700が各パチンコ遊技機からの賞球数信号Iを確
実に取り込むことができる。
[0222] In this way, the prize ball transmission prohibition flag is set to “
When this routine is started again after being set to 1, the determination in step S922 is "Yes", that is, the prize ball transmission prohibition flag is determined to be "1", so the process moves to step S940 and the prize ball number timer 2 is set. It is determined whether or not the time has elapsed. If the time has not elapsed, the routine is immediately terminated; if the time has elapsed, the prize ball transmission prohibition flag is cleared to "0" and the routine is terminated (step S942). By doing this, it is possible to output the prize ball number signal I with a predetermined pulse width (timer 1 setting time) every 10 prize balls, and after outputting 1 pulse of the prize ball number signal I, it is possible to output the prize ball number signal I with a predetermined pulse width (timer 1 setting time). The transmission of signals is prohibited.As a result,
A management device 700 that receives prize ball number signals from a large number of pachinko gaming machines can reliably take in the prize ball number signal I from each pachinko gaming machine.

【0223】図48には、上記情報出力処理(図44)
フロー中における上記遊技台情報出力処理S950の具
体的手順の一例を示す。この遊技台情報もホールの管理
装置700に対して出力される。このルーチンが開始さ
れると、まずステップS952で補給要求フラグが“1
”にされているか否か判定する。上記補給要求フラグは
、前述した補給センサ入力処理ルーチン(図22)によ
って補給センサ106の入力が検知され、メインルーチ
ン中の補給処理(図43)が実行されることにより、ス
テップS756でセットされるフラグである。このステ
ップS952で“No”と判定されると次のステップS
953で補給要求信号Kをハイレベルにネゲートし、“
Yes”と判定されるとステップS954へ移行して補
給要求信号Kをロウレベルにアサートしてから、読込み
確定タイマをセットしてから、ステップS956へ移行
する。
FIG. 48 shows the above information output processing (FIG. 44).
An example of a specific procedure of the game machine information output process S950 in the flow is shown. This game machine information is also output to the hall management device 700. When this routine is started, the replenishment request flag is set to "1" in step S952.
”.The replenishment request flag is set when the input of the replenishment sensor 106 is detected by the replenishment sensor input processing routine (FIG. 22) described above, and the replenishment processing (FIG. 43) in the main routine is executed. This is the flag that is set in step S756 by the
At 953, the replenishment request signal K is negated to high level, and “
If the determination is ``Yes'', the process moves to step S954, where the replenishment request signal K is asserted to low level, a read confirmation timer is set, and then the process moves to step S956.

【0224】ステップS956では、枠センサ入力処理
ルーチン(図16)で枠センサ103からの信号の変化
を検知して設定される枠解放フラグを、また続くステッ
プS958では同じく枠センサ入力処理ルーチン(図1
6)で設定される枠閉塞フラグをそれぞれ調べて、枠解
放フラグが“1”なら枠解放信号をロウレベルにアサー
トし、枠解放フラグが“1”なら枠閉塞信号をハイレベ
ルにネゲートして(ステップS957,S959)から
、ステップS960へ移行する。ステップS960では
、遊技盤制御装置400に対して出力されるアウト数信
号L(1パルスでアウト球10個を表す)がロウレベル
にアサートされているか調べ、ハイレベルであればステ
ップS962へ進み、アウト送信禁止フラグが“1”に
されているか否か判定する。上記アウト送信禁止フラグ
は、後述のステップS972でアウト数信号Lがネゲー
トされたときに所定時間該信号の送信を禁止させるため
にセットされるフラグである。
In step S956, the frame release flag that is set by detecting a change in the signal from the frame sensor 103 in the frame sensor input processing routine (FIG. 16) is set, and in the following step S958, the frame release flag is set in the frame sensor input processing routine (FIG. 16). 1
Check each of the frame blockage flags set in step 6), and if the frame release flag is "1", assert the frame release signal to low level, and if the frame release flag is "1", negate the frame blockage signal to high level ( Steps S957, S959) move to step S960. In step S960, it is checked whether the out number signal L (one pulse represents 10 out balls) output to the game board control device 400 is asserted to a low level. If it is high level, the process advances to step S962, and an out number signal L is output to the game board control device 400. It is determined whether the transmission prohibition flag is set to "1". The out transmission prohibition flag is a flag that is set to prohibit transmission of the signal for a predetermined period of time when the out number signal L is negated in step S972, which will be described later.

【0225】ステップS962で“No”と判定される
とステップS964へ移行し、アウトカウンタ(図25
のアウトセンサ入力処理ルーチン中のステップS602
2で1球毎に更新される)の値が10個以上か否か判定
して9個以下ならそのままルーチンを終了し、10個以
上ならアウト数信号Iをロウレベルにアサートしてから
、アウトタイマ1をセットして本ルーチンを終了する(
ステップS966,S968)。アウト球10個に対し
て所定のパルス幅のアウト数信号Lを1パルス出力させ
るためである。それから、再び本ルーチンが開始された
ときに、ステップS960まで来ると“Yes”すなわ
ちアウト数信号Lがロウレベルであると判定され、ステ
ップS970へ移行して上記ステップS968でセット
したアウトタイマ1がタイムアップしたか否か判定する
。そして、タイムアップしていなければそのままルーチ
ンを終了し、タイムアップしていればステップS972
でアウト数信号Lをハイレベルにネゲートしてから、ア
ウトカウンタの値を「10」だけ減算し(タイマ1の動
作中にもカウンタの値は更新されるため“0”にクリア
することはできない)、またアウト送信禁止フラグを“
1”にセットし、アウトタイマ2を起動して本ルーチン
を終了する(ステップS974,S976,S978)
[0225] If the determination in step S962 is "No", the process moves to step S964, and the out counter (FIG. 25
Step S602 in the out-sensor input processing routine of
2 (updated every pitch) is 10 or more, and if it is 9 or less, the routine ends as is, and if it is 10 or more, the out number signal I is asserted to low level, and then the out timer is set. Set 1 and end this routine (
Steps S966, S968). This is to output one pulse of the out number signal L having a predetermined pulse width for 10 out balls. Then, when this routine is started again, when it reaches step S960, it is determined "Yes", that is, the out number signal L is at a low level, and the process moves to step S970, where the out timer 1 set in step S968 Determine whether it has been uploaded. Then, if the time is not up, the routine ends, and if the time is up, step S972 is executed.
After negating the out number signal L to high level, subtract "10" from the out counter value (the counter value is updated even while timer 1 is operating, so it cannot be cleared to "0". ), and also set the out send prohibition flag “
1”, starts out timer 2, and ends this routine (steps S974, S976, S978).
.

【0226】このようにして、アウト送信禁止フラグが
“1”にセットされてから再び本ルーチンが開始される
と、ステップS962で“Yes”すなわちアウト送信
禁止フラグが“1”と判定されるため、ステップS98
0へ移行してアウトタイマ2がタイムアップしたか否か
判定する。そして、タイムアップしていなければそのま
まルーチンを終了し、タイムアップしていればアウト送
信禁止フラグを“0”にクリアしてルーチンを終了する
(ステップS982)。図49には、上記情報出力処理
(図44)フロー中における上記エラー情報出力処理S
990の具体的手順の一例を示す。このエラー情報もホ
ールの管理装置700に対して出力される。
[0226] When this routine is restarted after the out transmission prohibition flag is set to "1" in this way, it is determined in step S962 that the out transmission prohibition flag is "1". , step S98
0, and it is determined whether or not out timer 2 has timed up. If the time has not expired, the routine is immediately terminated; if the time has expired, the out transmission prohibition flag is cleared to "0" and the routine is terminated (step S982). FIG. 49 shows the error information output process S during the flow of the information output process (FIG. 44).
An example of the specific procedure of 990 is shown below. This error information is also output to the hall management device 700.

【0227】このルーチンが開始されると、まずステッ
プS992で排出エラーフラグが“1”になっているか
否か判定する。このステップS992で“No”と判定
されると次のステップS994で排出不正フラグが“1
”になっているか否か判定する。上記排出エラーフラグ
は、前述した排出処理ルーチン(図33)において、、
排出開始処理ルーチン(図30)のステップS142で
セットされた排出監視タイマがカウントアップするまで
に所定数の賞品球の排出が完了しないときに、ステップ
S230にて排出制御系の異常を示すべくその値が“1
”に設定されるものである。この排出エラーフラグが“
1”にされると前述の排出エラー回復処理(図37)が
実行されると共に、本ルーチンのエラー情報出力が行な
われる。一方、上記排出不正フラグは、前述した排出装
置不正監視処理ルーチン(図27)によって排出ソレノ
イドがオフ状態であるにもかかわらず排出センサの入力
が検知されることにより、ステップS114でセットさ
れるフラグである。
[0227] When this routine is started, first in step S992 it is determined whether the discharge error flag is set to "1". If it is determined “No” in this step S992, the discharge irregularity flag is set to “1” in the next step S994.
”.The above discharge error flag is set in the discharge processing routine (FIG. 33) described above.
If the ejection of a predetermined number of prize balls is not completed by the time the ejection monitoring timer set in step S142 of the ejection start processing routine (FIG. 30) counts up, the ejection control system is set in step S230 to indicate an abnormality in the ejection control system. The value is “1”
”.This discharge error flag is set to “
1", the above-mentioned ejection error recovery process (Fig. 37) is executed and error information of this routine is output. On the other hand, the above-mentioned ejection fraud flag is set to the above-mentioned ejection device fraud monitoring processing routine (Fig. 27), this flag is set in step S114 when the input of the discharge sensor is detected even though the discharge solenoid is in the OFF state.

【0228】上記ステップS992またはS994のい
ずれの判定でも“No”と判定されると次のルーチン9
96でエラー信号をハイレベルにネゲートし、ステップ
S992またはS994のいずれかで“Yes”と判定
されるとステップS998へ移行してエラー信号をロウ
レベルにアサートして終了する。図50には、図12の
メイン処理フロー中のステップS15で行なわれる停電
回復処理の具体的手順の一例が示されている。この停電
回復処理は、前述の停電割込み処理(図26)によって
排出中データ(賞球排出数または貸し玉排出数)の退避
が行なわれ、最終ステップS3020で停電フラグが“
1”に設定されて終了した後、停電が回復してCPUに
電源が供給されてメインルーチンが開始されたときに、
ステップS1で停電フラグが“1”と判定してステップ
S13へ移行し、処理ナンバーを“5”に設定してから
、ステップS5へ移行したときに“Yes”と判定され
ることで開始される。
[0228] If the determination in either step S992 or S994 is "No", the next routine 9 is executed.
The error signal is negated to a high level in step S96, and if it is determined as "Yes" in either step S992 or S994, the process moves to step S998, where the error signal is asserted to a low level and the process ends. FIG. 50 shows an example of a specific procedure of the power failure recovery process performed in step S15 in the main process flow of FIG. 12. In this power outage recovery process, the data being ejected (the number of prize balls ejected or the number of rented balls ejected) is saved by the above-mentioned power outage interrupt process (FIG. 26), and the power outage flag is set to "
1" and exits, when the power is restored, power is supplied to the CPU, and the main routine is started.
The power outage flag is determined to be "1" in step S1, the process moves to step S13, the processing number is set to "5", and the process starts when the power outage flag is determined to be "Yes" when the process moves to step S5. .

【0229】ステップS1で停電フラグが“1”と判定
されてステップS13へ移行したときに直ちに本停電回
復処理を実行することをせずに、一旦処理ナンバーを“
5”設定して、ステップS5で“Yes”と判定される
ことで開始させているのは、ステップS3の排出装置不
正監視処理を先に実行させて排出不正がないことを確認
してから、停電によって中断された排出を再開させるた
めである。図50の停電回復処理が開始されると、まず
前記排出センサレベル入力処理ルーチン(図19および
図20)で設定される排出センサ1玉有フラグおよび排
出センサ2玉有フラグと、図27の半端センサ入力処理
ルーチンで設定される半端センサ玉有フラグ、さらに図
26のオーバーフロー検出器入力処理ルーチンで設定さ
れるオーバーフロー玉有フラグを調べて(ステップS1
002−S1008)、いずれか一つのフラグでも“0
”になっている場合には排出可能フラグを“0”にクリ
アして終了する(ステップS1010)。
[0229] When the power outage flag is determined to be "1" in step S1 and the process moves to step S13, the main power outage recovery process is not immediately executed, but the process number is set to "1".
5" and the determination is "Yes" in step S5, the process is started by first executing the discharge device fraud monitoring process in step S3 to confirm that there is no discharge fraud. This is to restart the discharge that was interrupted due to a power outage.When the power outage recovery process shown in FIG. Then, check the discharge sensor 2 ball presence flag, the half sensor ball presence flag set in the half sensor input processing routine of FIG. 27, and the overflow sensor ball presence flag set in the overflow detector input processing routine of FIG. 26 (step S1
002-S1008), any one flag is “0
”, the discharge enable flag is cleared to “0” and the process ends (step S1010).

【0230】一方、すべてのフラグが“1”になってい
る場合には排出可能フラグを“1”にセット(ステップ
S1012)してから、バックアップRAMに退避され
ていた排出レジスタの値や中断された排出が玉貸し排出
であることを示すフラグ等のセーブデータを元のレジス
タやフラグに復帰させる(ステップS1014)。次の
ステップS1016では上記排出可能フラグが“1”に
なっているか否か調べ、“1”ならステップS1018
およびS1020で排出レジスタ1と排出レジスタ2の
値がそれぞれ「1」を越えているか判定し、排出レジス
タ1の値が「1」以下のときは排出レジスタ2の値を、
また排出レジスタ2の値が「1」以下のときは排出レジ
スタ1の値を、さらに排出レジスタ1と排出レジスタ2
の値がともに「1」を越えているときは両方の値を排出
レジスタ0に設定する(ステップS1022,S102
4,S1026)。
On the other hand, if all the flags are set to "1", the discharge enable flag is set to "1" (step S1012), and then the value of the discharge register saved in the backup RAM and the interrupted Save data such as a flag indicating that the discharge is a ball rental discharge is restored to the original register and flag (step S1014). In the next step S1016, it is checked whether the discharge possible flag is set to "1", and if it is "1", step S1018
And in S1020, it is determined whether the values of the discharge register 1 and the discharge register 2 exceed "1", and if the value of the discharge register 1 is "1" or less, the value of the discharge register 2 is changed to
In addition, when the value of discharge register 2 is less than "1", the value of discharge register 1 is added to discharge register 1 and discharge register 2.
If both values exceed "1", both values are set in the discharge register 0 (steps S1022, S102
4, S1026).

【0231】それから、中断された排出が玉貸し排出で
あったか否か判定する(ステップS1028)。そして
、“Yes”ならステップS1030以降の継続玉貸し
排出を行ない、“No”すなわち中断された排出が玉貸
し排出であった場合には、ステップS1042以降の継
続賞球排出を行なう。これによって、停電発生時に2つ
の排出系のうちいずれか一方に未排出の玉数が残ってい
た場合にも、未排出の玉数が改めて排出レジスタ0に設
定されて再度排出が開始されるようになるため、停電回
復後に速やかに未排出の玉を排出させることができる。 なお、上記ステップS1018で排出レジスタ1の値が
「1」以下のときはステップS1022で排出レジスタ
2の値を排出レジスタ0に設定しているのは、排出レジ
スタの値が「1」ということは排出終了を意味しており
、排出レジスタ2に未排出の玉数が残っていると推定で
きるからである。同様に、ステップS1020で排出レ
ジスタ2の値が「1」以下のときはステップS1024
で排出レジスタ1の値を排出レジスタ0に設定している
のは、排出レジスタ1に未排出の玉数が残っていると推
定できるからである。
[0231] Then, it is determined whether or not the interrupted discharge was a ball rental discharge (step S1028). Then, if "Yes", continuous ball lending discharge is performed after step S1030, and if "No", that is, the interrupted discharge is ball lending discharge, continuous prize ball discharge is performed after step S1042. As a result, even if the number of balls that have not been ejected remains in either of the two ejection systems when a power outage occurs, the number of balls that have not been ejected will be set to ejection register 0 again and ejection will start again. Therefore, the balls that have not been ejected can be ejected immediately after the power is restored. Note that when the value of the discharge register 1 is "1" or less in step S1018, the value of the discharge register 2 is set to the discharge register 0 in step S1022. This does not mean that the value of the discharge register is "1". This is because it means that the ejection has ended, and it can be estimated that the number of balls that have not been ejected remains in the ejection register 2. Similarly, if the value of the discharge register 2 is "1" or less in step S1020, step S1024
The reason why the value of the ejection register 1 is set to ejection register 0 is because it can be estimated that the number of unejected balls remains in the ejection register 1.

【0232】上記継続玉貸し排出では、まず玉貸し音要
求フラグおよびP台レディフラグを“1”にセット(ス
テップS1030,S1032)して、貸し玉排出表示
ランプ113を点灯(ステップS1034)させてから
、図30に示されている排出開始処理と同一のルーチン
を実行して球排出装置170による排出を開始させる(
ステップS1036)。それから、玉貸し排出中であっ
たことの記憶を消去し、処理ナンバーを“3”に設定(
ステップS1038,S1040)した後、ステップS
1050へ移行して停電フラグを“0”にクリアして本
ルーチンを終了する。処理ナンバーを“3”に設定する
のは、上記ステップS1036で開始させた貸し玉排出
をメインルーチンの玉貸し排出処理S17で終了させる
ためである。
[0232] In the above-mentioned continuous ball rental discharge, first, the ball rental sound request flag and the P machine ready flag are set to "1" (steps S1030, S1032), and the ball rental display lamp 113 is turned on (step S1034). Then, the same routine as the discharge start process shown in FIG. 30 is executed to start discharge by the ball discharge device 170 (
Step S1036). Then, erase the memory that the ball was being discharged and set the processing number to "3" (
After steps S1038 and S1040), step S
The process moves to 1050, the power outage flag is cleared to "0", and this routine ends. The reason why the process number is set to "3" is to end the rental ball discharge process started in step S1036 in the ball rental discharge process S17 of the main routine.

【0233】一方、ステップS1042以降の継続賞球
排出では、賞球排出表示ランプ112を点灯させてから
、図30に示されている排出開始処理と同一のルーチン
を実行して球排出装置170による排出を開始させる(
ステップS1044)。それから、賞球排出中であった
ことの記憶を消去し、処理ナンバーを“2”に設定(ス
テップS1046,S1048)した後、ステップS1
050へ移行して停電フラグを“0”にクリアして本ル
ーチンを終了する。処理ナンバーを“2”に設定するの
は、上記ステップS1044で開始させた賞球排出をメ
インルーチンの賞球排出処理S18で終了させるためで
ある。次に、カードリーダ250に対する制御信号や残
高表示器122の駆動信号およびパチンコ遊技機に設け
られた玉貸し変換ボタン123からの信号によっ上記排
出制御装置600対する玉貸し要求信号等を形成して出
力する上記玉貸し制御装置500の制御手順を図51な
いし図62を参照して詳細に説明する。
On the other hand, in the continuous prize ball ejection after step S1042, after lighting the prize ball ejection display lamp 112, the same routine as the ejection start process shown in FIG. Start draining (
Step S1044). Then, after erasing the memory that the prize ball was being ejected and setting the processing number to "2" (steps S1046, S1048), step S1
The process moves to 050, the power failure flag is cleared to "0", and this routine ends. The reason why the processing number is set to "2" is to end the prize ball discharge started in step S1044 in the prize ball discharge process S18 of the main routine. Next, a ball lending request signal, etc. to the discharge control device 600 is formed using a control signal for the card reader 250, a drive signal for the balance display 122, and a signal from the ball lending conversion button 123 provided on the pachinko gaming machine. The control procedure of the ball rental control device 500 that outputs will be explained in detail with reference to FIGS. 51 to 62.

【0234】図51には、上記玉貸し制御装置のメイン
ルーチンの概略が示されている。このメインルーチンは
、玉貸し制御装置500の電源が投入されると繰返し実
行される。電源が立上がると、先ず、RAMのクリアや
フラグの設定、出力バッファのリセット等の初期設定を
行なう(ステップS8002)。次のステップS800
4では玉貸し可能表示器126を一旦消灯状態にさせ、
残高表示器122には残高ゼロ(3桁表示の場合には“
000”)の表示を行なわせる駆動信号を形成し出力す
る(ステップS8006)。それから、次のステップへ
進み、玉貸し処理(ステップS8008)、ファンクシ
ョン送受信処理(ステップS8012)および決済信号
出力処理(ステップS8014)の3つの処理を、互い
に並行して同時進行的に行なう。
FIG. 51 shows an outline of the main routine of the ball lending control device. This main routine is repeatedly executed when the ball lending control device 500 is powered on. When the power is turned on, first, initial settings such as clearing the RAM, setting flags, and resetting the output buffer are performed (step S8002). Next step S800
In step 4, the ball rental available display 126 is temporarily turned off,
The balance display 122 shows a zero balance (in the case of a 3-digit display, “
000'') is formed and output (step S8006).Then, the process proceeds to the next step and includes ball lending processing (step S8008), function transmission/reception processing (step S8012), and payment signal output processing (step S8006). The three processes of step S8014) are performed simultaneously in parallel with each other.

【0235】図52および図53には、上記メインルー
チン(図51)のステップS8008で実行される玉貸
し処理の具体的手順の一例が示されている。この処理が
開始されると、まず排出制御装置600から送られてく
る玉貸イネーブル信号Uを調べて信号が立ち下がったか
否か判定する(ステップS8102)。そして、“No
”すなわち玉貸イネーブル信号Uが立ち下がっていない
ときはステップS8104へ進んで、玉貸イネーブル信
号Uを調べて信号が立ち上がったか否か判定する。玉貸
イネーブル信号Uは玉貸し制御装置500から排出制御
装置600に対して玉貸要求信号T(ロウレベル)を送
ったことに対する応答として、また排出制御装置600
が貯留タンク151内の玉不足または遊技盤の打止め状
態が解除されたのを検知した場合に、ロウレベルに変化
される信号であり、システムの電源が投入され排出制御
装置600の制御が開始されるときには、玉貸イネーブ
ル信号Uがハイレベル状態にされる。そのため、玉貸し
制御装置500がステップS8104でこの信号の立下
がりを検知して“Yes”と判定すると、ステップS8
106へ移行してカードリーダ制御装置250に対する
カード受付可能を知らせるファンクションコードの送信
予約をした後、ステップS8102へ戻る。
FIGS. 52 and 53 show an example of a specific procedure for the ball lending process executed in step S8008 of the main routine (FIG. 51). When this process is started, first, the ball lending enable signal U sent from the discharge control device 600 is checked to determine whether the signal has fallen (step S8102). And “No
”In other words, when the ball lending enable signal U has not fallen, the process advances to step S8104, and the ball lending enable signal U is checked to determine whether the signal has risen.The ball lending enable signal U is discharged from the ball lending control device 500. In response to sending the ball lending request signal T (low level) to the control device 600, the discharge control device 600
This is a signal that changes to low level when it detects that there is a shortage of balls in the storage tank 151 or that the game board is no longer in a stopped state, and the system power is turned on and control of the discharge control device 600 is started. When the ball lending enable signal U is set to a high level state. Therefore, if the ball lending control device 500 detects the falling edge of this signal in step S8104 and determines "Yes", step S8
After proceeding to step S8106 and making a reservation for transmission of a function code to notify the card reader control device 250 that the card can be accepted, the process returns to step S8102.

【0236】次に、再びステップS8102−S810
4と進んでステップS8104で“No”と判定すると
、ステップS8108へ進み玉貸し可能表示器126が
点灯しているか調べる。この玉貸し可能表示器126は
、後述のファンクション送受信処理(図55,56)に
おいて、カードリーダ制御装置250からカード金額を
受信したときに点灯されるランプである。従って、カー
ドリーダにカードが挿入される前は、ステップS810
8での判定は“No”となってステップS8102へ戻
って上記ステップを繰り返す。そして、カードリーダに
カードが挿入され、カードリーダ制御装置250からカ
ード金額が送信されて玉貸し可能表示器126が点灯さ
れると、ステップS8108での判定が“Yes”とな
ってステップS8110へ進む。ステップS8110で
は、上記玉貸イネーブル信号Uがハイレベルであるか確
認して“Yes”なら次のステップS8112へ移行し
、“No”ならステップS8102へ戻る。上述したよ
うに、玉貸イネーブル信号Uは玉貸し制御装置500か
ら排出制御装置600に対して玉貸要求信号Tを送った
ことに対する応答としてロウレベルに変化される信号で
あり、玉貸イネーブル信号Uがロウレベルであるのは既
に玉貸し排出処理が開始されていると考えられるからで
ある。
[0236] Next, steps S8102-S810 are performed again.
4, and if it is determined "No" in step S8104, the process advances to step S8108, and it is checked whether the ball rental possible display 126 is lit. This ball lending possible display 126 is a lamp that is lit when a card amount is received from the card reader control device 250 in a function transmission/reception process (FIGS. 55 and 56) to be described later. Therefore, before the card is inserted into the card reader, step S810
The determination in step S8102 is "No" and the process returns to step S8102 to repeat the above steps. Then, when the card is inserted into the card reader, the card amount is transmitted from the card reader control device 250, and the ball rental available display 126 is lit, the determination in step S8108 becomes "Yes" and the process advances to step S8110. . In step S8110, it is confirmed whether the ball lending enable signal U is at a high level, and if "Yes", the process moves to the next step S8112, and if "No", the process returns to step S8102. As described above, the ball lending enable signal U is a signal that is changed to a low level in response to the ball lending request signal T being sent from the ball lending control device 500 to the discharge control device 600, and the ball lending enable signal U The reason why is at a low level is that it is considered that the ball lending process has already started.

【0237】一方、ステップS8102で玉貸イネーブ
ル信号Uの立下がりを検出すると、ステップS8103
へ移行して玉貸可能表示器126が点灯中か調べる。そ
して、点灯していればステップS8105へ進み、玉貸
可能表示器126を消灯させ磁気書込ファンクション送
信予約(ステップS8107)を行なってから、またス
テップS8103の判定で“No”の時はそのままステ
ップS8109へ進んで、カード受付不能を示す受付不
可ファンクションの送信予約を行なってステップS81
02へ戻る。排出制御装置600が貯留タンク151内
の玉不足または遊技盤の打止め状態が解除されたのを検
知した場合にも、玉貸イネーブル信号Uがロウレベルに
立ち下がるためである。上記ステップS8110で“Y
es”すなわち玉貸イネーブル信号Uがハイレベルであ
ると確認すると、ステップS8112へ進み、残高記憶
手段542内のカード残高を調べて残高がゼロか否か判
定する。ここで、“Yes”なら何もせずにステップS
8102へ戻り、“No”すなわち残高がゼロでないと
きはステップS8116ないしS8122で玉貸数設定
スイッチ521a−521dのいずれがオンされている
か調べる。そして、いずれのスイッチもオンされていな
いときにはステップS8102へ戻って上記ステップを
繰り返す。通常は必ずいずれかひとつのスイッチがオン
されている状態で電源が投入される。
On the other hand, when the fall of the ball lending enable signal U is detected in step S8102, the process proceeds to step S8103.
, and check whether the ball rental available indicator 126 is lit. If the light is on, the process advances to step S8105, where the ball rental available indicator 126 is turned off and a magnetic write function transmission reservation is made (step S8107), and if the determination in step S8103 is "No", the process proceeds to step S8105. Proceeding to S8109, a transmission reservation is made for a function that indicates that a card cannot be accepted, and the process proceeds to step S81.
Return to 02. This is because the ball lending enable signal U falls to the low level even when the discharge control device 600 detects that there is a shortage of balls in the storage tank 151 or that the game board is no longer in a stopped state. “Y” in step S8110 above.
If it is confirmed that "es", that is, the ball lending enable signal U is at a high level, the process advances to step S8112, and the card balance in the balance storage means 542 is checked to determine whether the balance is zero. Step S without doing anything
Returning to step 8102, if "No", that is, the balance is not zero, it is checked in steps S8116 to S8122 which of the ball lending number setting switches 521a to 521d is turned on. If none of the switches is turned on, the process returns to step S8102 and repeats the above steps. Normally, the power is turned on with one of the switches always on.

【0238】そして、ステップS8116で500円分
の玉貸数設定スイッチがオンされていると判定したとき
はステップS8124へ移行して、設定金額とカードの
残金とを比較して、カードの金額の方が多いか否か判定
する。そして、カードの金額の方が多いときにのみ、ス
テップS8130へ移行して払出回数レジスタを「5」
にセットし、カードの金額の方が少ないときにはステッ
プS8125へ進んで、カード残金が400円以上ある
か否か判定して“Yes”なら払出回数レジスタの値を
「4」にセットする(ステップS8131)。また、ス
テップS8125で“No”すなわちカード残金が40
0円未満であると判定されるかステップS8118で3
00円分の玉貸数設定スイッチがオンされていると判定
されると、ステップS8126へ移行してカードの残金
が300円以上か判定し、“Yes”ならステップS8
132へ移行して払出回数レジスタを「3」にセットす
る。さらに、ステップS8126で“No”すなわちカ
ード残金が300円未満であると判定されるかステップ
S8120で200円分の玉貸数設定スイッチがオンさ
れていると判定されると、ステップS8128へ移行し
てカードの残金が200円以上か判定し、“Yes”な
らステップS8134へ移行して払出回数レジスタを「
2」にセットする。同様にして、ステップS8127で
“No”すなわちカード残金が200円未満であると判
定されるかステップS8122で100円分の玉貸数設
定スイッチがオンされていると判定されると、ステップ
S8136へ移行して払出回数レジスタを「1」にセッ
トする。
[0238] When it is determined in step S8116 that the switch for setting the number of balls to borrow for 500 yen is turned on, the process moves to step S8124, and the set amount is compared with the balance on the card to determine the amount on the card. Determine whether there are more people. Then, only when the amount on the card is larger, the process moves to step S8130 and the payout count register is set to "5".
, and if the amount on the card is smaller, the process advances to step S8125, where it is determined whether the balance on the card is 400 yen or more, and if "Yes", the value of the payout count register is set to "4" (step S8131). ). In addition, if "No" is determined in step S8125, that is, the card balance is 40.
3 in step S8118 if it is determined that the amount is less than 0 yen.
If it is determined that the ball lending number setting switch for 00 yen is turned on, the process moves to step S8126, and it is determined whether the remaining balance on the card is 300 yen or more, and if "Yes", step S8
The process moves to step 132 and the payout count register is set to "3". Furthermore, if it is determined in step S8126 that the balance on the card is less than 300 yen, or if it is determined in step S8120 that the ball lending number setting switch for 200 yen is turned on, the process moves to step S8128. to determine whether the remaining balance on the card is 200 yen or more, and if "Yes", proceed to step S8134 and set the payout number register to "
2”. Similarly, if it is determined in step S8127 that the card balance is less than 200 yen, or if it is determined in step S8122 that the ball lending number setting switch for 100 yen is turned on, the process advances to step S8136. and set the payout count register to "1".

【0239】これによって、玉貸し制御装置500の玉
貸排出回数が「2」(200円分)以上に設定されてい
てカードリーダに挿入されたカードの残高がその設定金
額以下であった場合にも、カードの残金をすべて貸し玉
に変換させることができ、カードに端数が残ったまま使
用できなくなるのを防止することができる。上記ステッ
プS8130ないしS8136で払出回数をセットした
後は、図53のステップS8142へ移行する。図53
のステップS8142へ移行した場合には、排出制御装
置600に対する玉貸要求信号Tをロウレベルにアサー
トしてから、玉貸イネーブル信号Uの応答待ちのPRQ
タイマ(3m秒)をセットする(ステップS8144)
。それから、排出制御装置600からの玉貸イネーブル
信号Uが立ち下がったか判定し、“No”なら上記タイ
マがタイムアップしたか否か判定する(ステップS81
46,S8148)。ここで、PRQタイマがタイムア
ップする前に玉貸イネーブル信号Uが立ち下がると、玉
貸し処理を保留すべくステップS8192へジャンプし
て磁気書込ファンクションと受付不可ファンクションの
送信予約(ステップSS8194)をしてから、ステッ
プS8140でセットした玉貸中フラグを“0”にクリ
ア(ステップS8188)し、最初のステップS810
2へ戻る。排出制御装置600では、玉貸要求信号Tが
入ってから5m秒後に玉貸イネーブル信号Uをロウレベ
ルにアサートするようにしているので、3m秒以内に玉
貸イネーブル信号Uがロウレベルに立ち下がるのは、排
出制御装置600が貯留タンク151内の玉不足または
遊技盤の打止め状態が解除されたのを検知した場合であ
ると考えられるためである。上記送信予約により図54
のファンクション送受信処理が実行される。ただし、こ
の場合、磁気書込ファンクションコードとともにカード
リーダに送られるカード残高データは読み込んだときの
データと同一である。
[0239] As a result, when the number of ball lending and discharging times of the ball lending control device 500 is set to "2" (200 yen worth) or more and the balance of the card inserted into the card reader is less than the set amount, Also, it is possible to convert all the balance of the card into rental balls, and it is possible to prevent the card from being unusable due to a fraction remaining on the card. After setting the number of payouts in steps S8130 to S8136, the process moves to step S8142 in FIG. 53. Figure 53
If the process moves to step S8142, the ball lending request signal T to the discharge control device 600 is asserted to a low level, and then the PRQ waiting for a response to the ball lending enable signal U is
Set a timer (3 msec) (step S8144)
. Then, it is determined whether the ball lending enable signal U from the discharge control device 600 has fallen, and if "No", it is determined whether the above-mentioned timer has timed up (step S81
46, S8148). Here, if the ball lending enable signal U falls before the PRQ timer times up, the process jumps to step S8192 to suspend the ball lending process, and the transmission reservation of the magnetic write function and the unacceptable function is made (step SS8194). After that, the ball rental flag set in step S8140 is cleared to "0" (step S8188), and the process returns to the first step S810.
Return to 2. In the discharge control device 600, the ball lending enable signal U is asserted to a low level 5 m seconds after the ball lending request signal T is input, so it is impossible for the ball lending enable signal U to fall to a low level within 3 m seconds. This is considered to be the case when the discharge control device 600 detects that there is a shortage of balls in the storage tank 151 or that the game board is no longer in a stopped state. Figure 54 due to the above transmission reservation.
Function transmission/reception processing is executed. However, in this case, the card balance data sent to the card reader together with the magnetic write function code is the same as the data when read.

【0240】一方、ステップS8148で玉貸イネーブ
ル信号Uが立ち下がる前にPRQタイマがタイムアップ
したと判定すると、ステップS8150へ進み、玉貸し
排出処理に入ったことを知らしめるべく玉貸可能表示器
126を消灯する。それから、PRQタイマを例えば3
秒にセットする(ステップS8152)。上記タイマが
タイムアップしたか判定し、“No”なら上記玉貸イネ
ーブル信号Uがロウレベルになっているか否か判定する
(ステップS8154,S8156)。ここで、玉貸イ
ネーブル信号Uがロウレベルになる前にPRQタイマが
タイムアップすると、ステップS8196へジャンプし
て磁気書込ファンクションとカード排出ファンクション
の送信予約(ステップS8198)をしてから、ステッ
プS8140でセットした玉貸中フラグを“0”にクリ
ア(ステップS8188)し、最初のステップS810
2へ戻る。排出制御装置600は玉貸要求信号Tが入っ
てから5m秒後に玉貸イネーブル信号Uをロウレベルに
アサートするようになっているので、玉貸要求信号Tが
立ち下げてから3秒以上経過しても玉貸イネーブル信号
Uがロウレベルにならないのは、排出装置の側に異常が
あると考えられるためである。
[0240] On the other hand, if it is determined in step S8148 that the PRQ timer has timed up before the ball lending enable signal U falls, the process advances to step S8150, and the ball lending available display is displayed to notify that the ball lending discharging process has started. 126 is turned off. Then set the PRQ timer to 3, for example.
It is set to seconds (step S8152). It is determined whether the timer has timed up, and if "No", it is determined whether or not the ball lending enable signal U is at a low level (steps S8154, S8156). Here, if the PRQ timer times out before the ball lending enable signal U becomes low level, the process jumps to step S8196 to reserve the transmission of the magnetic write function and card ejection function (step S8198), and then proceeds to step S8140. The set ball rental flag is cleared to "0" (step S8188), and the first step S810
Return to 2. The discharge control device 600 is configured to assert the ball lending enable signal U to a low level 5 milliseconds after the ball lending request signal T is input, so if 3 seconds or more have elapsed since the ball lending request signal T falls. The reason why the ball lending enable signal U does not go to low level is because it is thought that there is an abnormality on the ejecting device side.

【0241】ステップS8154でPRQタイマがタイ
ムアップする前に玉貸イネーブル信号Uがロウレベルに
なったと判定すると、ステップS8158へ進んで排出
タイマ(3秒)をセットする。それから、上記タイマが
タイムアップしたか判定し(ステップS8160)、“
No”ならステップS8166へ移行して払出完了信号
Vが立ち上がったか否か判定する(ステップS8166
)。払出完了信号Vが立ち上がる前に上記排出タイマが
タイムアップすると、ステップS8196へジャンプし
て磁気書込ファンクションと受付不可ファンクションの
送信予約(ステップS8198)をしてから、ステップ
S8140でセットした玉貸中フラグを“0”にクリア
(ステップS8188)し、最初のステップS8102
へ戻る。通常3秒あれば排出は終了するので、3秒経過
しても払出完了信号Vが立ち上がらないのは、排出装置
の側に異常があると考えられるためである。
[0241] If it is determined in step S8154 that the ball lending enable signal U becomes low level before the PRQ timer times up, the process proceeds to step S8158 and a discharge timer (3 seconds) is set. Then, it is determined whether the timer has timed up (step S8160), and "
If “No”, the process moves to step S8166, and it is determined whether or not the payout completion signal V has risen (step S8166
). If the ejection timer times out before the payout completion signal V rises, the process jumps to step S8196, and a transmission reservation is made for the magnetic write function and the non-acceptable function (step S8198), and then the ball lending time set in step S8140 is made. The flag is cleared to "0" (step S8188), and the first step S8102
Return to Normally, discharging is completed in 3 seconds, so if the dispensing completion signal V does not rise even after 3 seconds, it is thought that there is an abnormality on the discharging device side.

【0242】上記排出タイマがタイムアップする前に払
出完了信号Vが立ち上がると、ステップS8168ヘ進
み、カード残高(度数)および払出回数を「1」だけ減
らし、カード管理装置800に対する決済信号j(パル
ス)の出力カウンタを「1」だけ増加させる(ステップ
S8170,S8172)。それから、ステップS81
74へ進んで払出回数が「0」になったか否か判定し、
“No”なら上記ステップS8158へ戻って上記手順
を繰り返し、“Yes”すなわち払出回数が「0」のと
きはステップS8176へ移行する。ステップS817
6では玉貸要求信号Tをハイレベルにネゲートしてから
、次のステップでPRQタイマを3秒にセットする(ス
テップS8178)。
[0242] If the payout completion signal V rises before the ejection timer times out, the process advances to step S8168, reduces the card balance (frequency) and the number of payouts by "1", and sends the payment signal j (pulse) to the card management device 800. ) is incremented by "1" (steps S8170, S8172). Then, step S81
Proceed to step 74 and determine whether the number of payouts has become "0",
If "No", the process returns to step S8158 and repeats the above procedure, and if "Yes", that is, the number of payouts is "0", the process moves to step S8176. Step S817
In step S8178, the ball lending request signal T is negated to a high level, and in the next step, the PRQ timer is set to 3 seconds (step S8178).

【0243】それから、上記タイマがタイムアップした
か判定し、“No”なら上記玉貸イネーブル信号Uがハ
イレベルになっているか否か判定する(ステップS81
80,S8182)。ここで、玉貸イネーブル信号Uが
ロウレベルになる前にPRQタイマがタイムアップする
と、ステップS8196へジャンプして磁気書込ファン
クションとカード排出ファンクションの送信予約(ステ
ップS8198)をして、最初のステップS8102へ
戻る。玉貸要求信号Tが立ち上げてから3秒以上経過し
ても玉貸イネーブル信号Uがハイレベルにならないのは
、排出装置の側に異常があると考えられるためである。 ステップS8182でPRQタイマがタイムアップする
前に玉貸イネーブル信号Uがハイレベルになったと判定
した場合にもステップS8196へ移行して磁気書込フ
ァンクションとカード排出ファンクションの送信予約(
ステップS8198)をしてから、最初のステップS8
102へ戻る。なお、磁気書込ファンクションの送信予
約の際には、送信バッファ内に書込みファンクションコ
ードとともにカード残高データをテキストとして入れて
おく。これによって、玉貸処理が終了すると変換金額分
が差し引かれたカード残高がカードに書き込まれてから
カードリーダよりカードが排出されるようになる。
[0243] Then, it is determined whether the timer has timed up, and if "No", it is determined whether or not the ball lending enable signal U is at a high level (step S81).
80, S8182). Here, if the PRQ timer times out before the ball lending enable signal U becomes low level, the process jumps to step S8196, the transmission reservation of the magnetic write function and the card ejection function is made (step S8198), and the first step S8102 Return to The reason why the ball lending enable signal U does not go to a high level even after three seconds or more have passed since the ball lending request signal T was started is because it is thought that there is an abnormality on the ejecting device side. Even if it is determined in step S8182 that the ball rental enable signal U has become high level before the PRQ timer times up, the process advances to step S8196 to reserve the transmission of the magnetic write function and card ejection function (
Step S8198) and then the first step S8
Return to 102. Note that when reserving the transmission of the magnetic write function, the card balance data is stored as text together with the write function code in the transmission buffer. As a result, when the ball lending process is completed, the card balance from which the converted amount has been deducted is written on the card, and then the card is ejected from the card reader.

【0244】図54および図55には、上記メインルー
チン(図51)のステップS8012で実行されるカー
ドリーダ制御装置250との間のファンクション送受信
処理の具体的手順の一例が示されている。なお、送受信
されるファンクションは、ファンクションコードの先頭
にSTXコードがまた終端にETXコードが付加された
データ形式で送信される。ファンクションコード以外に
も送受信される信号として、ENQコード(送信の問合
せ)とACKコード(肯定応答)とがあるが、これらは
先頭のSTXコードも終端のETXコードも付加せずに
コード単独で送信される。このファンクション送受信処
理が開始されると、まずステップS8300で上記玉貸
処理(図52,53)によるファンクション送信予約が
設定がなされているか否か判定する。そして、送信予約
がなければステップS8350へ移行して、後述の受信
割込み処理(図59)で設定されるENQ受信フラグを
調べて、カードリーダ制御装置250からENQ(問合
せコード)が入ってきているか判定する。
FIGS. 54 and 55 show an example of a specific procedure for the function transmission/reception process with the card reader control device 250 executed in step S8012 of the main routine (FIG. 51). Note that the functions to be transmitted and received are transmitted in a data format in which an STX code is added to the beginning of the function code and an ETX code is added to the end. In addition to function codes, there are ENQ codes (transmission inquiries) and ACK codes (affirmative responses) as signals that are sent and received, but these are sent as codes alone without adding an STX code at the beginning or an ETX code at the end. be done. When this function transmission/reception process is started, first, in step S8300, it is determined whether or not a function transmission reservation has been set by the ball lending process (FIGS. 52 and 53). If there is no transmission reservation, the process moves to step S8350, and checks the ENQ reception flag set in reception interrupt processing (FIG. 59), which will be described later, to see if an ENQ (inquiry code) has been received from the card reader control device 250. judge.

【0245】上記ステップS8300で“送信予約有”
と判定すると、ステップS8302へ移行して、再送信
回数を3回にセットしてからENQコードを送信バッフ
ァに書き込む(ステップS8304)。この送信バッフ
ァへの書込みによって送信割込みが発生して後述の送信
割込み処理が開始される。それから、ステップS830
6で応答タイマを10秒にセットした後、ステップS9
308でこの応答タイマがタイムアップしたか判定し、
“No”のときは受信割込み処理(図59)でセットさ
れるACK受信フラグをみてACK(応答コード)を受
信したか判定する(ステップS8310)。そして、A
CKを受信する前に応答タイマがタイムアップしたとき
は、ステップS8312へ移行してステップS8302
でセットした再送信回数を「1」だけ減算してから、再
送信回数が「0」になったか否か判定し(ステップS8
314)、「0」でないときは上記ステップS8304
へ戻ってENQコードの再送信を行なう。
[0245] In step S8300, “transmission reservation exists”
If it is determined, the process moves to step S8302, sets the number of retransmissions to 3, and then writes the ENQ code to the transmission buffer (step S8304). This writing to the transmission buffer generates a transmission interrupt and starts transmission interrupt processing, which will be described later. Then, step S830
After setting the response timer to 10 seconds in step S9,
In step 308, it is determined whether this response timer has timed up,
If "No", the ACK reception flag set in the reception interrupt process (FIG. 59) is checked to determine whether an ACK (response code) has been received (step S8310). And A
If the response timer times up before receiving the CK, the process moves to step S8312 and returns to step S8302.
After subtracting "1" from the number of retransmissions set in step S8, it is determined whether the number of retransmissions has become "0" or not.
314), if not “0”, the above step S8304
and retransmits the ENQ code.

【0246】一方、応答タイマがタイムアップする前に
ACKを受信したときは、ステップS8316へ進んで
ACK受信フラグを“0”にクリアし、かつ送信データ
の先頭を示すSTXコードを送信バッファに書き込む。 それから、ステップS8318で応答タイマを10秒に
セットした後、ステップS8320でこの応答タイマが
タイムアップしたか判定し、“No”のときは受信割込
み処理(図59)でセットされるENQ受信フラグをみ
てENQを受信したか判定する(ステップS8322)
。このENQはカードリーダ制御装置250から玉貸し
制御装置500に対して受信結果を送っても良いかの問
合せであるので、玉貸し制御装置500は、応答タイマ
がタイムアップする前にENQを受信したときはステッ
プS8324へ進み、ENQ受信フラグを“0”にクリ
アし、かつACKコードを送信バッファに書き込む。E
NQを受信する前に応答タイマがタイムアップしたとき
は、テキスト送信に対する受信結果の応答がなかったこ
とになるので、通信異常があったと判定してステップS
8340へ移行して通信異常を示すエラーコードを表示
データバッファへ書き込んで、ステップS8344でそ
のコードを残高表示器122に表示させて制御動作を停
止する。
[0246] On the other hand, if an ACK is received before the response timer times up, the process advances to step S8316, where the ACK reception flag is cleared to "0" and the STX code indicating the beginning of the transmission data is written into the transmission buffer. . Then, after setting the response timer to 10 seconds in step S8318, it is determined in step S8320 whether the response timer has timed out, and if "No", the ENQ reception flag set in the reception interrupt processing (FIG. 59) is set. to determine whether ENQ has been received (step S8322).
. Since this ENQ is an inquiry from the card reader control device 250 to the ball rental control device 500 as to whether it is okay to send the reception result, the ball rental control device 500 receives the ENQ before the response timer times up. If so, the process advances to step S8324, where the ENQ reception flag is cleared to "0" and the ACK code is written into the transmission buffer. E
If the response timer times out before receiving NQ, it means that there was no response with the reception result to the text transmission, so it is determined that there is a communication error and the process proceeds to step S.
In step S8340, an error code indicating a communication abnormality is written into the display data buffer, and in step S8344, the code is displayed on the balance display 122 and the control operation is stopped.

【0247】ステップS8324でACKを送信した後
は、再び応答タイマを10秒にセット(ステップS83
26)した後、ステップS9328でこの応答タイマが
タイムアップしたか判定し、“No”のときは受信割込
み処理(図59)でセットされるFNC受信フラグをみ
て受信結果の内容を示すファンクションを受信したか判
定する(ステップS8330)。そして、ファンクショ
ンを受信する前に応答タイマがタイムアップしたときは
、ACK送信に対する応答がなかったことになるので、
通信異常があったと判定してステップS8340へ移行
して通信異常を示すエラーコードを表示データバッファ
へ書き込んで、ステップS8344でそのコードを残高
表示器122に表示させて制御動作を停止する。応答タ
イマがタイムアップする前にファンクションを受信した
ときは、ステップS8332へ進んでFNC受信フラグ
を“0”にクリアした後、受信したファンクションの内
容が、「再送要求」か、「異常終了」か、「正常終了」
かを判定する(ステップS8334,S8336,S8
338)。このうち異常終了は、通信そのものには異常
はなかったがカードリーダにおける書込み不良等の異常
があった場合に送られてくる。
[0247] After transmitting ACK in step S8324, the response timer is set to 10 seconds again (step S83
26) After that, it is determined in step S9328 whether this response timer has timed out, and if "No", the function that indicates the contents of the reception result is received by checking the FNC reception flag set in the reception interrupt processing (Fig. 59). It is determined whether or not (step S8330). If the response timer times out before receiving the function, it means that there was no response to the ACK transmission.
If it is determined that there is a communication abnormality, the process moves to step S8340 to write an error code indicating the communication abnormality to the display data buffer, and in step S8344 the code is displayed on the balance display 122 and the control operation is stopped. If the function is received before the response timer times up, the process advances to step S8332 and after clearing the FNC reception flag to "0", it is determined whether the content of the received function is "retransmission request" or "abnormal termination". ,"normal termination"
(Steps S8334, S8336, S8
338). Among these, abnormal termination is sent when there is no abnormality in the communication itself, but there is an abnormality such as a write failure in the card reader.

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

【0249】一方、ステップS8300で“送信予約な
し”と判定すると、図56のステップS8350へ移行
して、受信割込み処理(図59)でセットされるENQ
受信フラグをみて、カードリーダ制御装置250からの
ENQを受信したか判定する。そして、ENQを受信し
ていればステップS8352へ移行してENQ受信フラ
グをクリアしかつACKコードを送信バッファに書き込
んでから、応答タイマを10秒にセットする(ステップ
S8354)。この送信バッファへの書込みによって送
信割込みが発生して後述の送信割込み処理が開始され、
カードリーダ制御装置250へACKが送信される。そ
こで、ステップS9356でこの応答タイマがタイムア
ップしたか判定し、“No”のときは受信割込み処理(
図59)でセットされるFNC受信フラグをみて受信結
果の内容を示すファンクションを受信したか判定する(
ステップS8358)。そして、ファンクションを受信
する前に応答タイマがタイムアップしたときは、ACK
送信に対する応答がなかったことになるので、通信異常
があったと判定して図55のステップS8340へ移行
して通信異常を示すエラーコードを表示データバッファ
へ書き込んで、ステップS8344でそのコードを残高
表示器122に表示させて制御動作を停止する。
On the other hand, if it is determined in step S8300 that there is no transmission reservation, the process moves to step S8350 in FIG.
The reception flag is checked to determine whether the ENQ from the card reader control device 250 has been received. If ENQ has been received, the process moves to step S8352, clears the ENQ reception flag, writes the ACK code to the transmission buffer, and then sets the response timer to 10 seconds (step S8354). This writing to the transmission buffer generates a transmission interrupt and starts the transmission interrupt processing described later.
ACK is transmitted to card reader control device 250. Therefore, in step S9356, it is determined whether this response timer has timed up, and if "No", the reception interrupt processing (
Check the FNC reception flag set in Figure 59) to determine whether a function indicating the contents of the reception result has been received (
Step S8358). If the response timer times up before receiving the function, the ACK
Since there was no response to the transmission, it is determined that there was a communication error, the process moves to step S8340 in FIG. 55, an error code indicating the communication error is written to the display data buffer, and the code is displayed in the balance in step S8344. display on the device 122 and stop the control operation.

【0250】応答タイマがタイムアップする前にファン
クションを受信したときは、ステップS8360へ進ん
でFNC受信フラグを“0”にクリアした後、受信した
ファンクションとともに受信したカード残高が“0”か
否かを判定する(ステップS8362)。そして、判定
結果が“Yes”すなわちカード残高が「0」なら何も
せずにステップS8300へ戻って上記ルーチンを繰り
返す。一方、ステップS8362の判定結果が“No”
のときは、ステップS8364へ進んで玉貸可能表示器
126を点灯させ、受信バッファの内容(残高データ)
をカード残高記憶部へ書き込んで受信処理を終了する。 図56には、上記メインルーチン(図51)のステップ
S8014で実行される決済情報出力処理の具体的手順
の一例が示されている。
[0250] When the function is received before the response timer times up, the process advances to step S8360 and after clearing the FNC reception flag to "0", it is checked whether the balance of the received card along with the received function is "0" or not. is determined (step S8362). If the determination result is "Yes", that is, the card balance is "0", the process returns to step S8300 and repeats the above routine without doing anything. On the other hand, the determination result in step S8362 is “No”
If so, proceed to step S8364, turn on the ball lending available indicator 126, and display the contents of the reception buffer (balance data).
is written into the card balance storage section and the reception process is completed. FIG. 56 shows an example of a specific procedure for the payment information output process executed in step S8014 of the main routine (FIG. 51).

【0251】この処理が開始されると、まず図53の玉
貸処理中のステップS8172でカウントアップする決
済信号数カウンタを調べて決済信号数が“0”か否か判
定する(ステップS8402)。ここで“No”すなわ
ち決済信号数が1以上であると判定すると、ステップS
8404へ進んでオン時間タイマを200m秒に設定し
、決済信号jをハイレベルにアサートしてから、そのタ
イマがタイムアップするのを待つ(ステップS8408
,S8410)。それから、ステップS8412へ移行
してオフ時間タイマを200m秒に設定し、決済信号j
をロウレベルにネゲートしてから、そのタイマがタイム
アップするのを待つ(ステップS8412,S8414
)。その後、ステップS8416で上記決済信号数カウ
ンタを「1」だけ減らしてステップS8402へ戻り、
決済信号数カウンタが「0」になるまで、決済信号パル
スを出力させる。これによって、パルス幅200m秒の
決済信号jが出力される。また、パルスを「2」以上出
力させる場合にも、パルスとパルスの間隔が200m秒
に設定され、これを受信するカード管理装置800が確
実に決済信号パルスを計数することができる。
[0251] When this process is started, first, the payment signal number counter that counts up in step S8172 during the ball lending process in FIG. 53 is checked to determine whether or not the number of payment signals is "0" (step S8402). If it is determined that "No" here, that is, the number of payment signals is 1 or more, step S
Step S8404 sets the on-time timer to 200 msec, asserts the payment signal j to high level, and waits for the timer to time up (step S8408
, S8410). Then, the process moves to step S8412, where the off time timer is set to 200 msec, and the payment signal j
is negated to low level, and then waits for the timer to time up (steps S8412, S8414).
). Thereafter, in step S8416, the payment signal number counter is decremented by "1" and the process returns to step S8402.
The payment signal pulses are outputted until the payment signal number counter reaches "0". As a result, a payment signal j with a pulse width of 200 msec is output. Further, even when outputting "2" or more pulses, the interval between pulses is set to 200 msec, and the card management device 800 that receives the pulses can reliably count the payment signal pulses.

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

【0253】このうち、送信割込みは、上記メインルー
チンの玉貸処理(図53参照)やファンクション送受信
処理(図55参照)中において、送信バッファにENQ
コード,STXコードまたはACKコードを書き込むこ
とによって発生されるようになっている。この送信割込
みが開始されると、ステップS8602,S8604,
S8606で、送信バッファに書き込まれたコードがい
ずれのコードか判定する。ここで、送信バッファに書き
込まれたコードがENQ,ACKまたはETX(テキス
トデータの終端を示すコード)のいずれかであればステ
ップS8612へ移行して送信バッファ内のコードを送
信して割込みを終了する。一方、上記判定ですべて“N
o”となると送信バッファに入っているコードはSTX
コード、ファンクションコードまたはテキストデータで
あり、これらは続きのコードがある。そこで、その場合
にはステップS8608へ進んでそのコードを送信して
から、送信バッファのアドレスをインクリメントして次
のバッファに入っているコードを送信して終了する(ス
テップS8610,S8612)。
[0253] Of these, the transmission interrupt is caused by the ENQ in the transmission buffer during the ball lending process (see Figure 53) or the function transmission/reception process (see Figure 55) of the main routine.
It is generated by writing a code, STX code, or ACK code. When this transmission interrupt is started, steps S8602, S8604,
In S8606, it is determined which code is written in the transmission buffer. Here, if the code written in the transmission buffer is ENQ, ACK, or ETX (code indicating the end of text data), the process moves to step S8612, the code in the transmission buffer is transmitted, and the interrupt ends. . On the other hand, in the above judgment, all “N”
o”, the code in the sending buffer is STX
Code, function code, or text data, and these have continuation codes. In that case, the process advances to step S8608, transmits that code, increments the address of the transmission buffer, transmits the code in the next buffer, and ends the process (steps S8610, S8612).

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

【0255】一方、受信したコードがENQコードまた
はACKコードのいずれでもない場合には、ステップS
8660へ進んで受信したコードがETXコードか否か
判定し、“No”ならステップS8662へ進んで受信
したコードを受信バッファからメモリへセーブしてから
、受信バッファアドレスを更新し、終了する(ステップ
S8664)。続きの受信コードが受信バッファに残っ
ていれば再び受信割込みがかかるので、上記ルーチンを
繰り返すことで受信コードがメモリにセーブされる。 そして、ステップS8660でETXコードを受信した
と判定すると、ステップS8666へ進んで受信したフ
ァンクションコードの長さが正常であったか調べる。こ
こで、“Yes”ならステップS8668へ進んでファ
ンクション受信フラグを“1”にセットして割込み処理
を終了し、“No”ならステップS8670へ移行して
再送要求ファンクション送信予約をして割込み処理を終
了する。
[0255] On the other hand, if the received code is neither an ENQ code nor an ACK code, step S
The process advances to step S8660 to determine whether the received code is an ETX code, and if "No", the process advances to step S8662 to save the received code from the receive buffer to memory, update the receive buffer address, and end (step S8662). S8664). If a subsequent receive code remains in the receive buffer, a receive interrupt is generated again, so the receive code is saved in memory by repeating the above routine. If it is determined in step S8660 that an ETX code has been received, the process advances to step S8666 to check whether the length of the received function code is normal. Here, if "Yes", the process advances to step S8668, sets the function reception flag to "1", and ends the interrupt processing; if "No", the process advances to step S8670, reserves the retransmission request function transmission, and ends the interrupt process. finish.

【0256】次に、玉貸機200にカードが挿入され、
パチンコ遊技機100に設けられた変換ボタン123が
押されて玉貸し要求がなされた場合において、上記玉貸
し制御装置500と排出制御装置600との間で送受信
される信号の具体的なタイミングを図60を用いて説明
する。図には200円分の貸し玉への変換ボタンが押さ
れた場合の信号タイミングが示されている。変換ボタン
123が押されると、玉貸し制御装置500がこれを検
知して変換要求信号Y(パルス)を玉貸し制御装置50
0へ送る(タイミングt1)。すると、玉貸し制御装置
500がこれを検知して、排出制御装置600に対する
玉貸し要求信号T(BRQ)をロウレベルにアサートす
る(タイミングt2)。玉貸し要求信号T(BRQ)を
受信した排出制御装置600は、球排出装置170が排
出可能な状態にあれば、排出ソレノイド741a,74
1bの駆動信号および貸し玉排出表示ランプ113の駆
動信号を出力すると共に、遊技盤制御装置400に対し
て貸し玉排出音要求信号E(パルス)を送信し、かつ玉
貸し制御装置500に対して供給される玉貸しイネーブ
ル信号U(PRQ)をロウレベルにアサートする(タイ
ミングt3)。
[0256] Next, the card is inserted into the ball lending machine 200,
The figure shows the specific timing of the signals transmitted and received between the ball lending control device 500 and the discharge control device 600 when the conversion button 123 provided on the pachinko game machine 100 is pressed and a ball lending request is made. This will be explained using 60. The figure shows the signal timing when the button for converting to 200 yen worth of rental balls is pressed. When the conversion button 123 is pressed, the ball lending control device 500 detects this and sends a conversion request signal Y (pulse) to the ball lending control device 50.
0 (timing t1). Then, the ball lending control device 500 detects this and asserts the ball lending request signal T (BRQ) to the discharge control device 600 to a low level (timing t2). The discharge control device 600 that has received the ball rental request signal T (BRQ) activates the discharge solenoids 741a and 74 if the ball discharge device 170 is in a state where the ball discharge device 170 can be discharged.
1b and the drive signal for the rental ball discharge display lamp 113, and also transmits a rental ball discharge sound request signal E (pulse) to the game board control device 400, and to the ball rental control device 500. The supplied ball lending enable signal U (PRQ) is asserted to low level (timing t3).

【0257】そして、排出制御装置600は、排出セン
サ730a,730bから検出信号を監視して排出数が
25個(100円分)になった時点で排出ソレノイド7
41a,741bの駆動信号および貸し玉排出表示ラン
プ113の駆動信号をオフさせるとともに、玉貸し制御
装置500に対して払出完了信号V(パルス)を、また
ホールの管理装置700に対して決済信号Jを送信する
(タイミングt4)。玉貸し制御装置500は、払出完
了信号Vを受信するとカード残高の減算を行ない、残高
がゼロでなく所定数の排出も終わっていないと判断する
と、上記玉貸し要求信号Tをそのままロウレベルにアサ
ートさせておく(タイミングt5)。すると、排出制御
装置600は、再び排出ソレノイド741a,741b
の駆動信号および貸し玉排出表示ランプ113の駆動信
号を出力すると共に、遊技盤制御装置400に対して貸
し玉排出音要求信号E(パルス)を送信する(タイミン
グt6)。
Then, the discharge control device 600 monitors the detection signals from the discharge sensors 730a and 730b, and when the number of discharges reaches 25 (worth 100 yen), the discharge solenoid 7 is activated.
41a, 741b and the drive signal of the rental ball discharge indicator lamp 113 are turned off, and a payout completion signal V (pulse) is sent to the ball rental control device 500, and a payment signal J is sent to the hall management device 700. (timing t4). When the ball lending control device 500 receives the payout completion signal V, it subtracts the card balance, and if it determines that the balance is not zero and the predetermined number of balls have not been discharged, it asserts the ball lending request signal T to a low level as it is. (timing t5). Then, the discharge control device 600 again activates the discharge solenoids 741a and 741b.
and a drive signal for the rental ball ejection display lamp 113, and also transmits a rental ball ejection sound request signal E (pulse) to the game board control device 400 (timing t6).

【0258】そして、排出数が25個(100円分)に
なった時点で排出ソレノイド741a,741bの駆動
信号および貸し玉排出表示ランプ113の駆動信号をオ
フさせるとともに、玉貸し制御装置500に対して払出
完了信号V(パルス)を、またホールの管理装置700
に対して決済信号Jを送信する(タイミングt7)。玉
貸し制御装置500は、所定数の排出が終わったと判断
すると、玉貸し要求信号Tをハイレベルにネゲートする
(タイミングt8)。すると、排出制御装置600は貸
し制御装置500に対して供給される玉貸しイネーブル
信号Uをハイレベルにネゲートして玉貸し排出処理を終
了する。図61には、本発明の第2の実施例に係るパチ
ンコ遊技機の構成が示されている。以下、第1の実施例
のパチンコ遊技機と異なる点のみ説明する。
[0258] Then, when the number of balls to be discharged reaches 25 (worth 100 yen), the drive signals for the discharge solenoids 741a and 741b and the drive signal for the ball rental display lamp 113 are turned off, and at the same time, the drive signal for the ball rental control device 500 is turned off. The payout completion signal V (pulse) is sent to the hall management device 700.
A payment signal J is transmitted to (timing t7). When determining that the predetermined number of balls have been discharged, the ball lending control device 500 negates the ball lending request signal T to a high level (timing t8). Then, the discharge control device 600 negates the ball rental enable signal U supplied to the rental control device 500 to a high level, and ends the ball rental discharge process. FIG. 61 shows the configuration of a pachinko game machine according to a second embodiment of the present invention. Hereinafter, only the differences from the pachinko gaming machine of the first embodiment will be explained.

【0259】まず、構造的にこの実施例のパチンコ遊技
機が上記第1の実施例のパチンコ遊技機と異なる点は、
玉貸し制御装置500の玉貸数設定スイッチ521a−
521dの変わりに供給皿120の上面の操作パネル1
21に玉貸し変換ボタン123a−123dが設けられ
ている点である。制御系における相違は、玉貸し制御装
置500には玉貸数設定スイッチ521a−521dの
変わりに玉貸し変換ボタン123a−123d内のスイ
ッチの信号がフィルタ504を介して入力され、カード
残高が操作された変換ボタンに対応した金額よりも少な
いときは残金相当の貸し玉が、またカード残高が操作さ
れた変換ボタンに対応した金額よりも多いときは変換ボ
タン相当の貸し玉が排出されるようになっている点であ
る。
[0259] First, the pachinko gaming machine of this embodiment is structurally different from the pachinko gaming machine of the first embodiment described above.
Ball rental number setting switch 521a- of the ball rental control device 500
Operation panel 1 on the top of the supply tray 120 instead of 521d
21 is provided with ball rental conversion buttons 123a to 123d. The difference in the control system is that instead of the ball lending number setting switches 521a to 521d, signals from the switches in the ball lending conversion buttons 123a to 123d are input to the ball lending control device 500 via the filter 504, and the card balance is manipulated. If the card balance is less than the amount corresponding to the conversion button operated, the amount of rented balls equivalent to the remaining balance will be discharged, and if the card balance is greater than the amount corresponding to the conversion button operated, the amount of rented balls equivalent to the amount of the conversion button will be discharged. The point is that

【0260】また、玉貸数設定スイッチ521a−52
1dの変わりに玉貸し変換ボタン123a−123dが
設けられたため、玉貸し制御フローのうち図52が若干
第1実施例のものと異なっている。すなわち、図62に
示すように、ステップS8116ないしS8122で変
換ボタン群123のいずれか一つがオンされているか調
べる。そして、ステップS8122で100円分の玉貸
し変換ボタンがオンされたと判定したときはステップS
8136へ移行して払出回数レジスタの値を「1」にセ
ットする。また、ステップS8116ないしS8120
で500円、300円または200円のいずれかの変換
ボタンがオンされたと判定すると、それぞれステップS
8124,S8126,S8128へ移行してオンされ
たボタンの変換要求金額とカードの残金とを比較して、
カードの金額の方が多いか否か判定する。そして、カー
ドの金額の方が多いときにのみ、ステップS8130,
S8132,S8134へ移行して払出回数を各々「5
」,「3」または「2」にセットし、カードの金額の方
が少ないときにはステップS8102へ戻る。従って、
遊技者がカードの残金を間違えて残金よりも大きな変換
ボタンを押してしまったとしても玉貸し排出はなされず
、再度別の変換ボタンを押すことで玉貸し処理が実行さ
れるようになる。
[0260] Also, the ball rental number setting switch 521a-52
Since ball lending conversion buttons 123a to 123d are provided instead of 1d, FIG. 52 of the ball lending control flow is slightly different from that of the first embodiment. That is, as shown in FIG. 62, it is checked in steps S8116 to S8122 whether any one of the conversion button group 123 is turned on. Then, when it is determined in step S8122 that the 100 yen worth of ball lending conversion button has been turned on, step S8122
The process moves to 8136 and the value of the payout count register is set to "1". Also, steps S8116 to S8120
If it is determined that the conversion button for 500 yen, 300 yen, or 200 yen is turned on, step S is executed respectively.
8124, S8126, S8128 and compare the conversion request amount of the button turned on with the balance of the card.
Determine whether the amount on the card is greater. Then, only when the amount on the card is larger, step S8130,
Proceed to S8132 and S8134 and set the number of payouts to ``5''.
”, “3” or “2”, and if the amount on the card is smaller, the process returns to step S8102. Therefore,
Even if the player makes a mistake in the remaining amount of the card and presses a conversion button larger than the remaining amount, ball lending is not discharged, and ball lending processing is executed by pressing another conversion button again.

【0261】オンされた変換ボタンに応じて払出回数を
セットするのは、球排出装置170の一回の排出動作に
よって100円分の貸し玉を排出するようになっている
ためである。上記ステップS8130ないしS8136
で払出回数をセットした後は、第1の実施例と同一のフ
ローチャートである図53のステップS8142へ移行
する。なお、上記実施例では、残高表示器122が供給
皿120の上面の操作パネル121に、またカードリー
ダが受け皿140の一側に設けられているが、これらは
パチンコ遊技機の前面の任意の位置に設けることができ
る。また、遊技機と一体でなく別個に設けるようにして
も良い。
[0261] The reason why the number of payouts is set in accordance with the turned-on conversion button is that 100 yen worth of rented balls are ejected by one ejecting operation of the ball ejecting device 170. Steps S8130 to S8136 above
After setting the number of payouts in step S8142 of FIG. 53, which is the same flowchart as the first embodiment. In the above embodiment, the balance display 122 is provided on the operation panel 121 on the top surface of the supply tray 120, and the card reader is provided on one side of the tray 140, but these can be placed at any position on the front of the pachinko machine. It can be provided in Furthermore, it may be provided separately rather than integrally with the gaming machine.

【0262】0262]

【発明の効果】以上説明したように本発明は、カードリ
ーダにカードが挿入された場合に、予め設定された貸し
玉数(またはパチンコ遊技機に設けられた玉貸し変換要
求操作手段によって指定された玉数)もしくはカードの
残高に相当する玉数のいずれか少ない方の数の遊技球を
上記球排出装置より排出させるとともに上記カードには
変換分を引いた残高データを書き込んでからカードリー
ダ内より排出させる機能を制御装置に持たせるようにし
たので、カードリーダにカードを挿入するだけで貸し玉
への変換が行なわれるため、従来のようにカードをカー
ドリーダに挿入してから玉貸し要求操作手段を操作する
必要がなくなり、遊技開始時および遊技中における貸し
玉への変換の際の手順を簡略化させることができる。そ
の結果、遊技中持ち玉が少なくなった時に大当りのよう
な遊技状態が発生しても速やかに追加変換を行なって持
ち玉を増加させることができ、大当り発生時の玉切れに
よる権利消滅を防止することができるという効果がある
[Effects of the Invention] As explained above, the present invention allows a preset number of rental balls (or a number specified by a ball rental conversion request operation means provided in a pachinko game machine) to be set when a card is inserted into a card reader. Eject the smaller number of game balls from the ball ejecting device (the number of balls equivalent to the number of balls) or the number of balls equivalent to the balance of the card, write the balance data minus the conversion amount to the card, and then insert the ball into the card reader. Since the control device is equipped with a function to eject more balls, simply inserting the card into the card reader will convert it to a rental ball, so instead of requesting the rental of balls after inserting the card into the card reader as in the past. There is no need to operate the operating means, and the procedure for converting to rental balls at the start of the game and during the game can be simplified. As a result, even if a game state such as a jackpot occurs when the number of balls you have is low during a game, you can quickly perform additional conversion to increase the number of balls you have, and prevent the loss of rights due to running out of balls when a jackpot occurs. The effect is that it can be done.

【0263】また、1回の玉貸し変換操作により行なわ
れる玉貸排出数を遊技機毎に任意に設定できるので、遊
技店に設置されている遊技機の機種にあわせた排出数を
設定することにより、遊技者が変換操作に煩わされて遊
技に集中できなくなるのを防止し、かつ余計な貸し玉が
排出されるのを防止することができる。さらに、カード
残金に相当する玉数の方設定された1回の玉貸数よりも
少ないときは残りの分が変換されて排出されるためカー
ドの初期度数に対して割り切れない数の排出数を設定し
ておいても端数が生じないので、遊技店の営業方針にあ
った貸し玉排出数を設定することが可能となる。また、
遊技中カードをカードリーダ内に保持させておくように
すると、追加変換のスピードを多少早くすることはでき
るが、停電時にカードがカードリーダ内に入ったままに
なるので停電回復が遅れると遊技客とホールとの間でト
ラブルが発生するおそれがあるのに対し、本発明のよう
に一回の変換が終了したときにカードをカードリーダか
ら排出させるようになっていると、上記のようなトラブ
ルが発生するおそれがなくなる。
[0263] Furthermore, since the number of balls to be discharged by one ball rental conversion operation can be arbitrarily set for each gaming machine, it is possible to set the number of balls to be discharged according to the model of the gaming machine installed at the gaming parlor. Therefore, it is possible to prevent the player from being troubled by the conversion operation and lose concentration on the game, and also to prevent unnecessary rental balls from being discharged. Furthermore, if the number of balls equivalent to the card balance is less than the set number of balls borrowed at one time, the remaining amount will be converted and discharged, so the number of discharged balls that is not divisible by the initial number of cards. Even if the number is set, there will be no fraction, so it is possible to set the number of rental balls that match the business policy of the game parlor. Also,
If the card is held in the card reader during play, the speed of additional conversion can be made somewhat faster, but since the card remains in the card reader during a power outage, it may delay recovery from the power outage and cause problems for players. On the other hand, if the card is ejected from the card reader when one conversion is completed as in the present invention, the above-mentioned troubles may occur. There is no possibility of this occurring.

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

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

【図2】パチンコ遊技機100の裏機構の構成例を示す
背面図である。
FIG. 2 is a rear view showing an example of the configuration of the back mechanism of the pachinko gaming machine 100.

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

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

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

【図6】音声出力手段450の構成例を示すブロック図
である。
FIG. 6 is a block diagram showing a configuration example of audio output means 450.

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

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

【図9】排出制御装置600の停電制御部619の構成
例を示すブロック図である。
FIG. 9 is a block diagram showing a configuration example of a power outage control section 619 of the emission control device 600.

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

【図11】玉貸し制御装置500の制御部510の具体
的構成例を示すブロック図である。
FIG. 11 is a block diagram showing a specific configuration example of a control unit 510 of the ball lending control device 500.

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

【図13】排出制御装置600によって所定時間(例え
ば0.5msec)経過毎に行なわれるタイマ割込処理
の手順の一例を示すフローチャートである。
FIG. 13 is a flowchart showing an example of a timer interrupt processing procedure performed by the emission control device 600 every predetermined period of time (for example, 0.5 msec).

【図14】玉貸しリクエスト検出処理ルーチンのフロー
チャートである。
FIG. 14 is a flowchart of a ball lending request detection processing routine.

【図15】賞球データ検出処理ルーチンのフローチャー
トである。
FIG. 15 is a flowchart of a prize ball data detection processing routine.

【図16】枠センサ入力処理ルーチンのフローチャート
である。
FIG. 16 is a flowchart of a frame sensor input processing routine.

【図17】排出センサ1の入力処理ルーチンのフローチ
ャートである。
FIG. 17 is a flowchart of an input processing routine for the discharge sensor 1.

【図18】排出センサ2の入力処理ルーチンのフローチ
ャートである。
FIG. 18 is a flowchart of an input processing routine for the discharge sensor 2.

【図19】排出センサ1のレベル入力処理のルーチンを
示すフローチャートである。
FIG. 19 is a flowchart showing a routine for level input processing of the discharge sensor 1.

【図20】排出センサ2のレベル入力処理のルーチンを
示すフローチャートである。
FIG. 20 is a flowchart showing a routine for level input processing of the discharge sensor 2;

【図21】球抜センサ750の入力処理ルーチンのフロ
ーチャートである。
FIG. 21 is a flowchart of an input processing routine of the ball removal sensor 750.

【図22】補給センサ106の入力処理のサブルーチン
を示すフローチャートである。
FIG. 22 is a flowchart showing a subroutine of input processing of the replenishment sensor 106.

【図23】オーバーフロー検出器104の入力処理のサ
ブルーチンを示すフローチャートである。
FIG. 23 is a flowchart showing a subroutine of input processing of the overflow detector 104.

【図24】待機球検出器160(半端センサ)の入力処
理のルーチンを示すフローチャートである。
FIG. 24 is a flowchart showing an input processing routine of the standby ball detector 160 (half-shot sensor).

【図25】アウトセンサ107の出力信号の入力処理ル
ーチンのフローチャートである。
FIG. 25 is a flowchart of an input processing routine for the output signal of the out sensor 107.

【図26】停電割込み処理の具体的手順の一例を示すフ
ローチャートである。
FIG. 26 is a flowchart showing an example of a specific procedure for power outage interrupt processing.

【図27】図15のメイン処理フロー中で行なわれる排
出装置不正監視処理S3の具体的手順の一例を示すフロ
ーチャートである。
FIG. 27 is a flowchart showing an example of a specific procedure of the discharge device fraud monitoring process S3 performed in the main process flow of FIG. 15;

【図28】排出装置不正解除処理S14の具体的手順の
一例を示すフローチャートである。
FIG. 28 is a flowchart showing an example of a specific procedure of the ejection device unauthorized release process S14.

【図29】賞球排出制御装置のメインルーチン(図15
)のステップS19で実行される賞球開始処理のサブル
ーチンを示すフローチャートである。
[Figure 29] Main routine of prize ball discharge control device (Figure 15)
) is a flowchart showing a subroutine of the prize ball start process executed in step S19.

【図30】上記賞球開始処理(図32)のステップS9
0で実行される排出開始処理のサブルーチンを示すフロ
ーチャートである。
[Figure 30] Step S9 of the prize ball start process (Figure 32)
3 is a flowchart showing a subroutine of a discharge start process executed in step 0.

【図31】上記排出開始処理(図33)のステップS1
24にて実行される排出数分割処理のサブルーチンを示
すフローチャートである。
FIG. 31: Step S1 of the discharge start process (FIG. 33)
24 is a flowchart showing a subroutine of the discharge number division process executed in step 24.

【図32】賞球排出制御装置側のCPU610によって
実行されるメインルーチン(図15)のステップS18
において実行される賞球排出処理のサブルーチンを示す
フローチャートである。
FIG. 32 Step S18 of the main routine (FIG. 15) executed by the CPU 610 on the prize ball discharge control device side
It is a flowchart which shows the subroutine of the prize ball discharge process performed in .

【図33】上記賞球排出処理(図35)のステップS2
04にて行われる排出処理のサブルーチンを示すフロー
チャートである。
[Figure 33] Step S2 of the prize ball ejection process (Figure 35)
3 is a flowchart showing a subroutine of discharge processing performed in step 04.

【図34】上記排出処理(図36)のステップS232
にて行われる1個排出処理のサブルーチンを示すフロー
チャートである。
FIG. 34: Step S232 of the discharge process (FIG. 36)
3 is a flowchart showing a subroutine of one-piece discharge processing performed in FIG.

【図35】上記排出処理(図36)のステップS234
にて行われる交互排出処理のサブルーチンを示すフロー
チャートである。
FIG. 35: Step S234 of the discharge process (FIG. 36)
3 is a flowchart showing a subroutine of alternate discharge processing performed in FIG.

【図36】上記排出処理(図36)のステップS236
にて行われる併用排出処理のサブルーチンを示すフロー
チャートである。
FIG. 36: Step S236 of the discharge process (FIG. 36)
3 is a flowchart showing a subroutine of a combined discharge process performed in FIG.

【図37】上記排出処理(図36)のステップS252
にて行われる排出エラー回復処理のサブルーチンを示す
フローチャートである。
FIG. 37: Step S252 of the discharge process (FIG. 36)
3 is a flowchart showing a subroutine of ejection error recovery processing performed in FIG.

【図38】賞球排出制御装置のメインルーチン(図15
)のステップS21で実行される玉貸開始処理のサブル
ーチンを示すフローチャートである。
[Figure 38] Main routine of prize ball discharge control device (Figure 15)
) is a flowchart showing a subroutine of ball lending start processing executed in step S21.

【図39】賞球排出制御装置側のCPU610によって
実行されるメインルーチン(図15)のステップS17
において実行される玉貸排出処理のサブルーチンを示す
フローチャートである。
FIG. 39 Step S17 of the main routine (FIG. 15) executed by the CPU 610 on the prize ball discharge control device side
It is a flowchart which shows the subroutine of the ball loan discharge process performed in .

【図40】賞球排出制御装置側のCPU610によって
実行されるメインルーチン(図15)のステップS16
において実行される玉抜処理のサブルーチンの一部(前
半)を示すフローチャートである。
FIG. 40 Step S16 of the main routine (FIG. 15) executed by the CPU 610 on the prize ball discharge control device side
It is a flowchart which shows a part (first half) of the subroutine of the ball removal process performed in .

【図41】賞球排出制御装置側のCPU610によって
実行されるメインルーチン(図15)のステップS16
において実行される玉抜処理のサブルーチンの一部を示
すフローチャートである。
FIG. 41 Step S16 of the main routine (FIG. 15) executed by the CPU 610 on the prize ball discharge control device side
It is a flowchart which shows a part of subroutine of the ball removal process performed in .

【図42】賞球排出制御装置側のCPU610によって
実行されるメインルーチン(図15)のステップS16
において実行される玉抜処理のサブルーチンの一部(後
半)を示すフローチャートである。
FIG. 42 Step S16 of the main routine (FIG. 15) executed by the CPU 610 on the prize ball discharge control device side
It is a flowchart which shows a part (second half) of the subroutine of the ball removal process performed in .

【図43】図15のメイン処理フロー中のステップS2
3で行なわれる補給処理の具体的手順の一例を示すフロ
ーチャートである。
FIG. 43: Step S2 in the main processing flow of FIG. 15
3 is a flowchart showing an example of a specific procedure of replenishment processing performed in step 3;

【図44】図15のメイン処理フロー中のステップS2
4で行なわれる情報出力処理の具体的内容を示すフロー
チャートである。
FIG. 44: Step S2 in the main processing flow of FIG. 15.
4 is a flowchart showing specific details of the information output processing performed in step 4. FIG.

【図45】上記情報出力処理フロー中における貸し玉情
報出力処理S800の具体的手順の一例を示すフローチ
ャートである。
FIG. 45 is a flowchart showing an example of a specific procedure of ball rental information output processing S800 in the above information output processing flow.

【図46】上記情報出力処理フロー中における音要求出
力処理S850の具体的手順の一例を示す。
FIG. 46 shows an example of a specific procedure of sound request output processing S850 in the above information output processing flow.

【図47】上記情報出力処理フロー中におけるホールの
管理装置700に対する上記賞球情報出力処理S900
の具体的手順の一例を示すフローチャートである。
FIG. 47: The prize ball information output process S900 to the hole management device 700 during the information output process flow.
2 is a flowchart showing an example of a specific procedure.

【図48】上記情報出力処理(図47)フロー中におけ
る上記遊技台情報出力処理S950の具体的手順の一例
を示すフローチャートである。
FIG. 48 is a flowchart showing an example of a specific procedure of the game machine information output process S950 in the flow of the information output process (FIG. 47).

【図49】上記情報出力処理(図47)フロー中におけ
る上記エラー情報出力処理S990の具体的手順の一例
を示すフローチャートである。
FIG. 49 is a flowchart showing an example of a specific procedure of the error information output process S990 in the flow of the information output process (FIG. 47).

【図50】図12のメイン処理フロー中のステップS1
5で行なわれる停電回復処理の具体的手順の一例を示す
フローチャートである。
FIG. 50: Step S1 in the main processing flow of FIG. 12
5 is a flowchart showing an example of a specific procedure of the power failure recovery process performed in step 5.

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

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

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

【図54】上記メインルーチン(図51)のステップS
8012で実行されるファンクション送受信処理の具体
的手順の一部(前半)を示すフローチャートである。
[Figure 54] Step S of the above main routine (Figure 51)
80 is a flowchart showing a part (first half) of a specific procedure of function transmission/reception processing executed in 8012. FIG.

【図55】上記メインルーチン(図51)のステップS
8012で実行されるファンクション送受信処理の具体
的手順の一部(後半)を示すフローチャートである。
[Figure 55] Step S of the above main routine (Figure 51)
80 is a flowchart showing a part (second half) of a specific procedure of function transmission/reception processing executed in step 8012. FIG.

【図56】上記メインルーチン(図51)のステップS
8014で実行される決済信号出力処理の具体的手順の
一例を示すフローチャートである。
[Figure 56] Step S of the above main routine (Figure 51)
80 is a flowchart illustrating an example of a specific procedure of payment signal output processing executed in step 8014.

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

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

【図59】図51のメインルーチン(バックグランド処
理)に優先して玉貸し制御装置500によって行なわれ
る受信割込処理の手順を示すフローチャートである。
59 is a flowchart showing the procedure of reception interrupt processing performed by the ball lending control device 500 in priority to the main routine (background processing) of FIG. 51. FIG.

【図60】上記玉貸し制御装置500と排出制御装置6
00との間で送受信される信号の具体的なタイミングを
示すタイムチャートである。
[Fig. 60] The ball rental control device 500 and the discharge control device 6
FIG.

【図61】本発明に係るカード式パチンコ遊技機の第2
の実施例を示す斜視図である。
FIG. 61 A second card-type pachinko game machine according to the present invention.
It is a perspective view showing an example of this.

【図62】第2の実施例のパチンコ遊技機における玉貸
し制御装置500による玉貸処理の具体的手順の一部を
示すフローチャートである。
FIG. 62 is a flowchart showing a part of the specific procedure of the ball lending process by the ball lending control device 500 in the pachinko game machine of the second embodiment.

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

100  パチンコ遊技機 121  供給皿 122  残高表示器 123  玉貸し変換ボタン 125  玉数表示器 131  玉不足検出器 132  玉保有検出器 200  玉貸し機 211  カード挿排口 220  挿入残高表示器 230  有効表示ランプ 400  遊技盤制御装置 500  玉貸し制御装置 600  排出制御装置 700  ホール管理装置 800  カード管理装置 100 Pachinko machine 121 Supply tray 122 Balance display 123 Ball lending conversion button 125 Ball number indicator 131 Ball shortage detector 132 Ball possession detector 200 Ball lending machine 211 Card insertion/ejection port 220 Insert balance display 230 Valid indicator lamp 400 Game board control device 500 Ball rental control device 600 Emission control device 700 Hall management device 800 Card management device

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  任意の数の遊技球を排出可能な球排出
装置と有価データが記憶されたカードからその有価デー
タを読み取るためのカードリーダを内蔵し、上記カード
リーダに挿入されたカードの有価データを玉数データに
変換してその玉数データに応じた数の遊技球を上記球排
出装置より前面の供給皿に直接排出可能に構成されてな
るカード式パチンコ遊技機において、カードリーダにカ
ードが挿入された場合に予め設定された貸し玉数もしく
はカードの残高に相当する玉数のいずれか少ない方の数
の遊技球を上記球排出装置より排出させるとともに、上
記カードには変換分を引いた残高データを書き込んでか
らカードリーダ内より排出させる機能を有する制御手段
を設けてなることを特徴とするカード式パチンコ遊技機
Claim 1: A ball ejecting device capable of ejecting an arbitrary number of game balls and a card reader for reading valuable data from a card storing the valuable data; In a card-type pachinko game machine configured to be able to convert data into ball number data and directly eject a number of game balls corresponding to the ball number data from the ball ejecting device to a supply tray on the front, a card is inserted into a card reader. is inserted, the smaller number of game balls, either the preset number of rental balls or the number of balls equivalent to the balance of the card, is ejected from the ball ejecting device, and the amount of conversion is subtracted from the card. 1. A card-type pachinko game machine, characterized in that the card-type pachinko game machine is provided with a control means having a function of writing balance data and then ejecting it from the card reader.
【請求項2】  任意の数の遊技球を排出可能な球排出
装置と有価データが記憶されたカードからその有価デー
タを読み取るためのカードリーダを内蔵し、上記カード
リーダに挿入されたカードの有価データを玉数データに
変換してその玉数データに応じた数の遊技球を上記球排
出装置より前面の供給皿に直接排出可能に構成されてな
るカード式パチンコ遊技機において、パチンコ遊技機の
前面には玉貸し要求操作手段を設けるとともに、カード
リーダにカードが挿入された場合に上記玉貸し要求操作
手段によって指定された貸し玉数もしくはカードの残高
に相当する玉数のいずれか少ない方の数の遊技球を上記
球排出装置より排出させ、上記カードには変換分を引い
た残高データを書き込んでからカードリーダ内より排出
させる機能を有する制御手段を設けてなることを特徴と
するカード式パチンコ遊技機。
[Claim 2] A ball ejecting device capable of ejecting any number of game balls and a card reader for reading valuable data from a card storing the valuable data; In a card-type pachinko game machine configured to convert data into ball number data and directly discharge a number of game balls according to the ball number data from the ball ejecting device to a supply tray on the front side, A ball lending request operation means is provided on the front side, and when the card is inserted into the card reader, the number of balls to be rented specified by the ball lending request operation means or the number of balls corresponding to the balance of the card, whichever is smaller, is provided. The card type is characterized by being provided with a control means having a function of ejecting a number of game balls from the ball ejecting device, writing balance data after subtracting the conversion amount on the card, and ejecting the balls from within the card reader. Pachinko machine.
JP14558291A 1991-05-21 1991-05-21 Card-type gaming machine Expired - Fee Related JP2964178B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14558291A JP2964178B2 (en) 1991-05-21 1991-05-21 Card-type gaming machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14558291A JP2964178B2 (en) 1991-05-21 1991-05-21 Card-type gaming machine

Publications (2)

Publication Number Publication Date
JPH04343876A true JPH04343876A (en) 1992-11-30
JP2964178B2 JP2964178B2 (en) 1999-10-18

Family

ID=15388427

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14558291A Expired - Fee Related JP2964178B2 (en) 1991-05-21 1991-05-21 Card-type gaming machine

Country Status (1)

Country Link
JP (1) JP2964178B2 (en)

Also Published As

Publication number Publication date
JP2964178B2 (en) 1999-10-18

Similar Documents

Publication Publication Date Title
JP6832229B2 (en) Game machine
JP2954384B2 (en) Gaming machine
JP6859185B2 (en) Game machine
JP6859186B2 (en) Game machine
JP2021100616A (en) Game machine
JP2021100615A (en) Game machine
JP2021112620A (en) Game machine
JP2021058696A (en) Game machine
JP2009282582A (en) Bill recycle machine
JPH05103866A (en) Discharge control method for game ball
JPH04327873A (en) Card type pinball machine game system
JP2888359B2 (en) Gaming machine
JPH04343877A (en) Card type pachinko game machine
JPH04343876A (en) Card type pachinko game machine
JP3624342B2 (en) Card game machine
JP2021112619A (en) Game machine
JPH04343875A (en) Card type pachinko game machine
JP3663596B2 (en) Card type pachinko game machine
JPH10290874A (en) Game machine
JPH10290873A (en) Ball rent processing device
JPH04357980A (en) Discharge control system in card type pinball game system
JP7098015B2 (en) Pachinko machine
JPH10272251A (en) Ball lending processor
JP7098014B2 (en) Pachinko machine
JP2021151561A (en) Game machine

Legal Events

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

Free format text: PAYMENT UNTIL: 20070813

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20080813

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20080813

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20090813

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20090813

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20090813

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20100813

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20100813

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees