JP3035793B2 - Gaming machine - Google Patents

Gaming machine

Info

Publication number
JP3035793B2
JP3035793B2 JP3145583A JP14558391A JP3035793B2 JP 3035793 B2 JP3035793 B2 JP 3035793B2 JP 3145583 A JP3145583 A JP 3145583A JP 14558391 A JP14558391 A JP 14558391A JP 3035793 B2 JP3035793 B2 JP 3035793B2
Authority
JP
Japan
Prior art keywords
discharge
ball
flag
sensor
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP3145583A
Other languages
Japanese (ja)
Other versions
JPH04343877A (en
Inventor
吉平 新山
広司 伊東
Original Assignee
株式会社ソフィア
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 株式会社ソフィア filed Critical 株式会社ソフィア
Priority to JP3145583A priority Critical patent/JP3035793B2/en
Publication of JPH04343877A publication Critical patent/JPH04343877A/en
Application granted granted Critical
Publication of JP3035793B2 publication Critical patent/JP3035793B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、所要数の球を排出可能
な球排出装置および入賞球を一個宛に検出可能なセーフ
センサを備えた遊技機に関する。
The present invention can discharge a required number of balls.
Ball discharge device and safe that can detect winning balls one by one
The present invention relates to a gaming machine provided with a sensor.

【0002】[0002]

【従来の技術】従来、遊技領域に電気的遊技装置を有す
る遊技盤を遊技機本体に対し着脱自在に配設するととも
に、遊技盤の入賞領域への遊技球の入賞に対して所要数
の球を排出可能な球排出装置と、遊技盤に設けられた電
気的遊技装置の遊技動作を制御する遊技盤制御回路等を
配設したパチンコ遊技機などの遊技機が知られている
(例えば、特開平2−203883号公報)。
2. Description of the Related Art Conventionally, a game area has an electric game machine.
Game board that can be freely attached to and detached from the
The required number of prizes for playing balls in the prize area of the game board
And a ball discharge device that can discharge
A game board control circuit for controlling the game operation of the game device
Pachinko and other gaming machines are known
(For example, JP-A-2-203883).

【0003】前記電気的遊技装置としては、例えば、所
謂羽根物と呼ばれるパチンコ遊技機の場合、遊技領域内
の始動入賞口への遊技球の入賞に基づいて可動部材を1
回又は2回開閉変換する予備遊技動作を行うとともに、
その予備遊技動作により内部の入賞空間に流入した遊技
球が特別入賞口へ入賞したことに基づいて可動部材を予
備遊技動作よりも有利に、例えば、18回開閉変換する
特別遊技状態を起生可能な変動入賞装置が知られてお
り、また、所謂セブン機と呼ばれるパチンコ遊技機の場
合、遊技領域内の始動入賞口への遊技球の入賞に基づい
て可変表示ゲームを行う可変表示装置や、該可変表示ゲ
ームの停止結果態様が特別遊技状態となったときにサイ
クル的に開放制御される変動入賞装置などが知られてい
る。
[0003] As the electric game machine, for example,
In the case of pachinko machines called so-called wings, the game area
1 movable member based on the winning of the game ball into the starting winning opening
Perform a preliminary game operation that performs opening or closing conversion twice or twice,
Games that have flowed into the internal prize space due to the preliminary game operation
The movable member is reserved based on the ball winning the special winning opening.
Advantageously, for example, the opening / closing conversion is performed 18 times more than the game operation.
A variable winning device capable of generating a special game state is known.
Pachinko game machines, so-called Seven machines
If the game ball wins the starting winning opening in the game area,
Display device for playing a variable display game by
When the game stop result mode is set to the special game state,
There is a variable winning device that is controlled to open
You.

【0004】そして、前記遊技盤制御回路は、前記羽根
物の場合、予備遊技動作や特別遊技球状態の起生制御や
変動入賞装置の開閉制御などの制御を行い、前記セブン
機の場合、可変表示ゲームや特別遊技状態の起生制御や
変動入賞装置の開閉制御などの制御を行っていた。この
種の遊技機においては、前記入賞領域に遊技球の入賞が
あった場合に、排出制御回路の制御の下で、その入賞に
基づき、排出球(賞品球)を計数しながら球排出装置に
より所定数の球を排出している。
The game board control circuit includes the blade
In the case of objects, the starting control of preliminary game operation and special game ball state,
Controls such as opening and closing of the variable winning device
In the case of the machine, the variable display game and the special game state
Control such as opening and closing control of the variable winning device was performed. this
In some types of gaming machines, a prize of a game ball is
If there is a prize under the control of the emission control circuit
Based on the number of ejected balls (prize balls)
A predetermined number of balls are discharged.

【0005】[0005]

【発明が解決しようとする課題】しかし、最近の遊技機
は、遊技内容を起生する遊技盤が遊技機本体に対して、
着脱交換可能に構成されているものが殆どであり、新機
種を入れ替える場合に、遊技盤のみを入れ替えられる構
成となっている。遊技盤が交換されると、その遊技盤に
おいて行われる遊技内容によって入賞に対する賞品球数
が変化する場合がある。このような場合は、遊技盤とそ
れに付随する遊技盤制御回路を交換する毎に、排出制御
回路も交換しなければならず、遊技店での遊技盤関係の
交換作業が面倒であるとともに、コスト的に不経済であ
るという問題点があった。
However, recent gaming machines
Is that the game board that generates the game content is
Most are configured to be removable and replaceable.
When exchanging seeds, only the game board can be exchanged.
It has become. When the game board is replaced,
Prize balls for winning according to the game content
May change. In such a case, the game board and its
Each time the game board control circuit accompanying it is replaced, the discharge control
The circuit must also be replaced,
Replacement work is troublesome and costly
There was a problem that.

【0006】そこで、種々の検討を行った結果、排出制
御回路を遊技盤を交換する毎に交換しなくてもよいよう
にするためには、入賞に対する賞球制御信号を遊技盤制
御回路から排出制御回路に送信するように構成すればよ
いという結論に想到した。しかし、遊技盤制御回路と排
出制御回路とを個別に分離構成すると、回路自体の互換
性や汎用性が高まる反面、遊技店における1日の営業時
間において発生する遊技球の入賞回数が3000回以上
にも及ぶ場合もあり、且つ、遊技機自体に有する各種の
電気的駆動源からのノイズや内部に多数流動している遊
技球に帯電している静電気等の電子回路にとって悪条件
の中において、遊技盤制御回路から排出制御回路へ送信
される賞球制御信号が正確且つ確実に制御されなければ
ならない。
Therefore, as a result of various studies, the emission control
It is not necessary to change the circuit every time the game board is replaced
In order to achieve this, the prize ball control signal for winning
It should be configured to transmit from the control circuit to the emission control circuit.
I came to the conclusion that However, the game board control circuit and
When the output control circuit is separately configured, the circuit itself is compatible
At the time of one day of operation in a game store, while the versatility and versatility increase
3,000 or more game balls won between games
And the various types of gaming machines themselves
Noise from the electric drive source or play
Bad conditions for electronic circuits such as static electricity charged on the ball
In the game board control circuit to the discharge control circuit
Prize ball control signals must be accurately and reliably controlled
No.

【0007】この発明は上記のような背景の下になされ
たもので、その目的とするところは、遊技盤の交換に伴
って賞球数が様々に変化する場合であっても、排出制御
回路は交換せずに、遊技盤とそれに付随する遊技盤制御
回路を交換するだけで、新たな遊技盤の賞球形態に対応
した賞球の排出を可能にするとともに、入賞球に対する
賞球制御信号を遊技盤制御回路から排出制御回路に送信
するように構成した場合も、排出制御回路側で賞球制御
信号の受信タイミングを正確に制御できるとともに、正
しい賞球制御信号のみを受信できるようにし、1日に数
多く発生する賞品球の排出制御を正確且つ確実に行える
ような制御方式を採用した遊技機を提供することにあ
る。
SUMMARY OF THE INVENTION The present invention has been made in view of the above background, and an object of the present invention is to provide a discharge control circuit even when the number of prize balls changes variously with replacement of a game board. By exchanging the game board and the accompanying game board control circuit without replacing it, it is possible to discharge prize balls corresponding to the new prize ball form of the game board, and to control the prize ball control signal for the winning ball. Is transmitted from the game board control circuit to the discharge control circuit, the discharge control circuit can accurately control the reception timing of the prize ball control signal , and
It is an object of the present invention to provide a gaming machine that can receive only a new prize ball control signal and that employs a control method that enables accurate and reliable discharge control of prize balls generated many times a day.

【0008】[0008]

【課題を解決するための手段】上記目的を達成するた
め、所要数の球を排出可能な球排出装置(170)を備
えた遊技機において、上記遊技機は、少なくとも遊技盤
と一対一に構成される遊技盤制御回路(例えば、遊技盤
制御装置400)および上記球排出装置に関わる制御を
行う排出制御回路(例えば、排出制御装置600)を別
個に備え、上記遊技盤制御回路は、少なくとも排出すべ
き賞品球数データを記憶する記憶手段(例えば、賞球数
記憶手段412)と、上記賞品球数データに対応する賞
球数信号と送信先での信号の取込タイミングを制御する
同期信号(例えば、データストローブ信号)とを含んだ
賞球制御信号を上記排出制御回路へ送信する送信手段と
を備え、 上記排出制御回路は、上記送信手段からの同
期信号が所定時間以上取込を示す有効レベルに維持され
ているか判定する判定手段と、該判定手段によって上記
同期信号の有効レベルの維持が確認されたことに基づい
て上記賞球数信号を取り込む信号取込手段と、上記信号
取込手段によって取り込まれた賞球数信号を記憶する記
憶手段(例えば、賞球排出数記憶演算部661)とを備
えるように構成したものである。
In order to achieve the above object, a ball discharge device (170) capable of discharging a required number of balls is provided.
In example was the gaming machine, the gaming machine, the game board control circuit is configured one-to-one with at least the game board (e.g., a game machine controller 400) discharge control circuit for controlling involved in and the ball discharging unit (e.g., the discharge The game board control circuit includes a storage unit (for example, a prize ball number storage unit 412) for storing at least prize ball number data to be ejected, and a prize corresponding to the prize ball number data.
Controls the timing of capturing the ball count signal and the signal at the destination
Synchronization signal (eg, data strobe signal)
Transmitting means for transmitting a prize ball control signal to the discharge control circuit;
Wherein the discharge control circuit receives the same signal from the transmitting means.
Signal is maintained at an effective level indicating acquisition for a predetermined time or more.
Determining means for determining whether the
Based on the confirmation that the effective level of the synchronization signal has been maintained
Signal capturing means for capturing the prize ball number signal, and the signal
A memory for storing the prize ball number signal captured by the capturing means.
Storage means (for example, award ball discharge number storage operation unit 661).
It is configured to obtain .

【0009】[0009]

【作用】上記した手段によれば、排出すべき賞品球数デ
ータを記憶する手段を備えた遊技盤制御回路により、排
出制御回路に対して賞球制御信号が送信される。また、
賞球制御信号には、賞球数データとしての賞球数信号と
該賞球数信号の取込に関わるタイミングを制御する同期
信号とが含まれ、遊技盤制御回路側から排出制御回路の
賞球排出数記憶手段へ同期信号に基づいて賞球数信号が
送信されるので、賞球数データの受信タイミングを正確
に制御できる。しかも、排出制御回路には、同期信号が
所定時間以上取込を示す有効レベルに維持されているか
判定する判定手段と、該判定手段によって上記同期信号
の有効レベルの維持が確認されたことに基づいて賞球数
信号を取り込む信号取込手段とを設けたため、同期信号
のレベルが遊技盤制御回路で正しく設定されたものであ
るのかノイズ等の異常な信号がのったものであるのか判
別して賞球数信号を正確に取り込むことができ、誤った
賞球排出を防止することができる。
According to the above-mentioned means, the prize ball control signal is transmitted to the discharge control circuit by the game board control circuit having the means for storing the data of the number of prize balls to be discharged. Also,
The prize balls control signal, includes a synchronization signal for controlling the timing related to the acquisition of the prize balls speed signal and that prize ball speed signal as a prize cell count data, the prize of the discharge control circuit from the game board control circuit side Since the prize ball number signal is transmitted to the ball discharge number storage means based on the synchronization signal, the reception timing of the prize ball number data can be accurately controlled. Moreover, the emission control circuit has a synchronization signal.
Is it maintained at an effective level indicating acquisition for more than a predetermined time?
Determining means for determining, and the synchronization signal
Prize balls based on confirmation that the effective level of
Since signal acquisition means for acquiring signals is provided, synchronization signals
Level is set correctly by the game board control circuit.
To determine whether an abnormal signal such as noise
Separately, it is possible to accurately capture the prize ball number signal,
It is possible to prevent prize balls from being discharged.

【0010】[0010]

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

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

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

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

【0014】図2には上記パチンコ遊技機100の裏機
構の構成例が示されている。図2において、170は上
記玉貸機200からの排出要求信号に基づいて所定数の
貸し玉を排出したりパチンコ遊技機からの要求信号によ
り賞品球を排出する球排出装置、151は排出される前
の球を貯留しておく貯留タンク、152は貯留タンク1
51内の球を一列に整列させて上記球排出装置170ま
で誘導する誘導樋で、この誘導樋152は特に限定され
ないが、短時間に多量の玉を供給できるように2条に形
成されており、その途中には球の重なりを防止する玉な
らし153および待機球検出器160が設けられてい
る。
FIG. 2 shows an example of the structure of the back mechanism of the pachinko gaming machine 100. In FIG. 2, reference numeral 170 denotes a ball discharging device which discharges a predetermined number of lending balls based on a discharging request signal from the ball lending machine 200 or discharges a prize ball in response to a request signal from a pachinko gaming machine, and 151 denotes a ball discharging device. Storage tank for storing the previous ball, 152 is storage tank 1
A guiding gutter for guiding the balls in the line 51 in a line and guiding the balls to the ball discharging device 170. The guiding gutter 152 is not particularly limited, but is formed in two lines so that a large amount of balls can be supplied in a short time. On the way, a ball leveling 153 and a standby ball detector 160 for preventing the balls from overlapping are provided.

【0015】また、球排出装置170の下方には、排出
された玉を遊技機前面の上記供給皿120の流出口12
9へ誘導する排出樋155と供給皿120からオーバー
フローした玉を下方の受け皿141へ誘導するオーバー
フロー樋156が連続して設けられているとともに、上
記排出樋155の途中から分岐された玉抜き樋157が
上記オーバーフロー樋156と平行して配設され、この
玉抜き樋157と排出樋155との分岐部には流路切換
え弁158が設けられている。159は遊技機の前面に
設けられた入賞口に流入した入賞球を一箇所に集合させ
る集合樋、180は集合樋159の下端に設けられた入
賞球分離検出装置である。
Further, below the ball discharge device 170, the discharged balls are supplied to the outlet 12 of the supply tray 120 on the front of the gaming machine.
Discharge trough 155 to induce the 9 and over the feed tray 120
An overflow gutter 156 for guiding the flowed balls to the lower tray 141 is provided continuously, and a ball drain gutter 157 branched from the middle of the discharge gutter 155 is disposed in parallel with the overflow gutter 156. A flow path switching valve 158 is provided at a branch portion between the ball drop gutter 157 and the discharge gutter 155. Reference numeral 159 denotes a collecting gutter for collecting winning balls flowing into a winning port provided on the front surface of the gaming machine at one place, and reference numeral 180 denotes a winning ball separation detecting device provided at a lower end of the collecting gutter 159.

【0016】図3には上記球排出装置170の一実施例
を示す。この球排出装置170は、貯留タンク151に
貯留された予備球を誘導する上記誘導樋152に連続す
るように構成された案内樋710を備えている。この案
内樋710は上記誘導樋152に対応して2条に形成さ
れており、各条の通路に対応して流下阻止手段としての
ストッパ745とその駆動用排出ソレノイド741とか
らなる排出手段740も2組設けられている。
FIG. 3 shows an embodiment of the ball discharging device 170. The ball discharge device 170 includes a guide gutter 710 that is configured to be continuous with the guide gutter 152 that guides the spare ball stored in the storage tank 151. The guide gutter 710 is formed in two lines corresponding to the guide gutters 152, and a discharge means 740 including a stopper 745 as a flow-down prevention means and a discharge solenoid 741 for driving the stopper 745 corresponding to the passage of each line. Two sets are provided.

【0017】上記案内樋710は、その機能から3つの
部分からなり、上から順にそれぞれ減圧部711、縁切
り部712、排出部713とされている。上記減圧部7
11は、貯留タンク151から誘導樋152を介して送
られてくる予備球の圧力を減らすもので、同図に示すよ
うに、緩傾斜状態にUターンされた構造にされている。
上記縁切り部712は、その下の排出部713を通る球
同士に間隔を開けさせて、下方の排出手段740による
球の流出を止め易くするためのもので、前記減圧部71
1に連続する垂直通路部分721と後述の排出部713
に通じる方向変換通路部分722とから構成されてい
る。
The guide gutter 710 is composed of three parts due to its function, and is a pressure reducing section 711, a rim section 712, and a discharge section 713 in order from the top. Decompression section 7
Numeral 11 reduces the pressure of the reserve sphere sent from the storage tank 151 via the guide gutter 152, and has a structure in which the U-turn is performed in a gentle inclination state as shown in FIG.
The edge cutting portion 712 is provided to make a distance between the balls passing through the discharging portion 713 thereunder so as to easily prevent the balls from flowing out by the lower discharging means 740.
1 and a discharge portion 713 to be described later.
And a direction changing passage portion 722 that leads to the direction.

【0018】そして、垂直通路部分721の下端部に
は、球詰まり防止突部723が前方に突出して設けられ
ている。この球詰まり防止突部723によって、垂直通
路部分721に縦に並んで停止した球のうちの最も下の
球の中心位置がその上方の球の中心位置より常に前方に
位置せしめられるようになる。それによって、上方の球
の流下移動圧が最も下の球を常に前方に押圧するように
作用し、球詰まりが防止される。
At the lower end of the vertical passage portion 721, a ball clogging prevention projection 723 is provided to protrude forward. By the ball clogging prevention protrusion 723, the center position of the lowest ball among the balls vertically stopped in the vertical passage portion 721 is always positioned ahead of the center position of the ball above it. As a result, the downward moving pressure of the upper sphere acts so as to always press the lowest sphere forward, thereby preventing clogging of the sphere.

【0019】各案内樋710の排出部713の途中に
は、流下する球を検出する非接触型の排出球検出センサ
730(排出センサ1,2)がそれぞれ設置されてい
る。また、各排出部713の途中、上記排出センサ73
0直後には上記排出手段740を構成するストッパ74
5が出没可能な切欠き703が設けられている。上記ス
トッパ745は、それぞれ支軸によって回動自在に支持
されているとともに、ストッパ745の一側部には、そ
れぞれ連結ピン746が突設され、これら連結ピン74
6と排出ソレノイド741の作動ロッド742の下端部
とが連結板747によりそれぞれ連結されている。
In the middle of the discharge section 713 of each guide gutter 710, a non-contact discharge ball detection sensor 730 (discharge sensors 1 and 2) for detecting a flowing ball is provided. In the middle of each discharge unit 713, the discharge sensor 73 is used.
Immediately after 0, the stopper 74 constituting the discharging means 740 is used.
There is provided a notch 703 in which 5 can appear. Each of the stoppers 745 is rotatably supported by a support shaft , and a connecting pin 746 is provided on one side of the stopper 745 so as to project therefrom.
6 and the lower end of the operating rod 742 of the discharge solenoid 741 are connected by a connecting plate 747, respectively.

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

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

【0022】上記球抜きセンサ750および排出ソレノ
イド741、排出センサ730は排出制御装置600
(図4参照)に電気的に接続されている。図4には、パ
チンコ遊技機100の制御系の一実施例が示されてい
る。この制御系は大きく分けると、主としてパチンコ遊
技機100の遊技盤に関する制御を司る遊技盤制御回路
としての遊技盤制御装置400と、カードリーダ等の制
御を司る玉貸し制御回路としての玉貸し制御装置500
と、上記球排出装置170の制御を司る排出制御回路と
しての排出制御装置600とにより構成されている。上
記制御装置のうち遊技盤制御装置400は、パチンコ遊
技機の遊技盤102に設けられている各種入賞球検出器
から検出信号を受けて役物の駆動信号を形成したり、パ
チンコ遊技機の裏機構盤に設けられている入賞球分離検
出装置180内の検出器(セーフセンサ)181からの
信号を受けて入賞球分離用のセーフソレノイド182を
作動させたり、スピーカ190に対する駆動信号を形成
する。
The ball removal sensor 750, the discharge solenoid 741, and the discharge sensor 730 are provided by the discharge control device 600.
(See FIG. 4). FIG. 4 shows an embodiment of a control system of the pachinko gaming machine 100. This control system can be roughly divided into a game board control circuit mainly controlling a game board of the pachinko gaming machine 100.
Board control device 400 as a game , and ball lending control device 500 as a ball lending control circuit for controlling a card reader or the like
A discharge control circuit for controlling the ball discharge device 170 ;
And a discharge control device 600. Among the above control devices, the game board control device 400 receives a detection signal from various winning ball detectors provided on the game board 102 of the pachinko game machine, forms a drive signal of the accessory, and controls the back of the pachinko game machine. In response to a signal from a detector (safe sensor) 181 in the winning ball separation detecting device 180 provided on the mechanism panel, a safe solenoid 182 for winning ball separation is operated or a drive signal for the speaker 190 is formed.

【0023】また、遊技盤制御装置400は、遊技状態
を監視してパチンコ店の管理装置700に対してパチン
コ機が稼働中であることや大当りの発生、打止めの発生
等の状態に関する情報を伝える機能を備えている。排出
制御装置600は、上記玉貸し制御装置500または遊
技盤制御装置400からの排出指令信号に基づいて上記
球排出装置170内の2条の案内樋710の途中に設け
られた一対のストッパ745を作動させる排出ソレノイ
ド741a,741bを励磁して、排出センサ730
a,730bの検出信号に基づいて各案内樋710内の
予備球を所定数だけ排出させるとともに、球抜きスイッ
チ750からのオン信号に基づいて排出ソレノイド74
1a,741bを励磁し、かつ流路切換え弁158の駆
動源を作動させて貯留タンク151および誘導樋152
内の予備球をすべて排出させたりする。
Further, the game board control device 400 monitors the game state and informs the pachinko store management device 700 of information regarding the state of the pachinko machine being operated, occurrence of a big hit, occurrence of a hit, etc. It has a function to communicate. The discharge control device 600 controls a pair of stoppers 745 provided in the middle of the two guide gutters 710 in the ball discharge device 170 based on a discharge command signal from the ball lending control device 500 or the game board control device 400. When the discharge solenoids 741a and 741b to be operated are excited, the discharge sensor 730 is activated.
a, and discharges a predetermined number of spare balls in each guide gutter 710 based on the detection signals of 730b, and discharge solenoid 74 based on an ON signal from ball release switch 750.
1a and 741b are excited, and the drive source of the flow path switching valve 158 is operated to store the storage tank 151 and the guide gutter 152.
Or to discharge all the spare balls inside.

【0024】また、排出制御装置600は、パチンコ遊
技機100の基枠109に設けられた開閉スイッチ10
3(図1参照)やオーバーフロー樋156の途中に設け
られたオーバーフロー検出器104(図2参照)、誘導
樋152の途中に設けられた待機球検出器160からの
検出信号が入ってくると排出ソレノイド741a,74
1bの励磁を保留して球排出装置170による排出を中
止するとともに、排出時には排出指令信号の内容に応じ
て例えば賞品球排出表示ランプ112または貸し玉排出
表示ランプ113を点灯させたり、遊技盤制御装置40
0に対して賞品球もしくは貸し玉の排出音要求信号を送
出する。さらに、排出制御装置600は、補給センサ1
06やアウトセンサ107からの信号に基づいて、完了
ランプ108を点灯させたりパチンコ店の管理装置70
0に対して補給要求信号Kや排出賞品球数信号I、排出
貸し玉数信号J(1パルスで例えば25個の排出玉数を
示す)、アウト球数信号L等をデータとして送信するよ
うに構成されている。
The discharge control device 600 is provided with an open / close switch 10 provided on the base frame 109 of the pachinko gaming machine 100.
3 (see FIG. 1), an overflow detector 104 (see FIG. 2) provided in the middle of the overflow gutter 156, and a detection signal from the standby ball detector 160 provided in the middle of the guide gutter 152 are discharged. Solenoids 741a, 74
In addition to suspending the excitation of 1b, the discharge by the ball discharge device 170 is stopped, and at the time of discharge, for example, the prize ball discharge display lamp 112 or the lending ball discharge display lamp 113 is turned on according to the contents of the discharge command signal, or the game board control. Device 40
For 0, a prize ball or lending ball ejection sound request signal is transmitted. Further, the discharge control device 600 includes the replenishment sensor 1
06 or a signal from the out sensor 107, the completion lamp 108 is turned on, or the pachinko parlor management device 70
For 0, a replenishment request signal K, a discharged prize ball number signal I, a discharged lending ball number signal J (for example, the number of discharged balls is 25 in one pulse), an out-ball number signal L, and the like are transmitted as data. It is configured.

【0025】玉貸し制御装置500は、玉貸機200
のカードリーダからの読取りデータを受けて残高表示器
122に対する表示駆動信号Xおよびカードリーダが作
動状態にあることを表示する有効表示ランプ230やパ
チンコ遊技機に設けられている玉貸し可能表示器126
に対する駆動信号を形成したり、カードリーダ制御装置
250に対する残高データ書換え信号q、パンチ穴加工
信号m、カード排出信号nを形成する。また、玉貸し制
御装置500は、玉貸し変換スイッチ(123)とカー
ド返却スイッチ(124)のオン信号を受け付けるとと
もに、排出制御装置600に対して玉貸し要求信号Tを
送ったり、カード管理会社の管理装置800に対して1
度(100円)分の貸し玉への変換が行なわれたことを
知らせるカード決済信号jを送信する機能も備えてい
る。
The ball lending control device 500 receives the read data from the card reader in the ball lending machine 200 and displays a display drive signal X for the balance display 122 and an effective display lamp 230 for displaying that the card reader is in the operating state. Ball lending possible display 126 provided in a pachinko or pachinko gaming machine
, And a balance data rewrite signal q, a punch hole processing signal m, and a card ejection signal n for the card reader control device 250. In addition, the ball lending control device 500 receives an on signal of the ball lending conversion switch (123) and the card return switch (124), sends a ball lending request signal T to the discharge control device 600, and transmits a ball lending request signal to the card management company. 1 for the management device 800
It also has a function of transmitting a card payment signal j indicating that conversion to a lending ball for a degree (100 yen) has been performed.

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

【0027】上記賞球数確定手段410は、例えばセー
フセンサ181からの検出信号の立上りエッジを検出し
て入賞球検出信号を形成する入賞球検出手段411と、
一つの入賞球検出信号に対する賞品球数を記憶する賞球
数記憶手段412と、遊技盤の役物等に設けられ一般の
入賞球に対する賞球数と異なる賞球数を与える特定の入
賞領域へ入賞した遊技球の数を記憶する特定入賞数記憶
手段413とからなり、入賞球を検知するとそれぞれの
入賞球に対応して予め設定されたる賞球データを出力す
るように構成されている。
The winning ball number determining means 410 detects a rising edge of a detection signal from the safe sensor 181 to form a winning ball detecting signal, for example, and a winning ball detecting means 411 ;
To a prize ball number storage means 412 for storing the number of prize balls for one prize ball detection signal, and to a specific prize area provided in a game board or the like and giving a prize ball number different from the number of prize balls for general prize balls. Specific winning number storage means 413 for storing the number of winning game balls is configured to output a predetermined prize ball data corresponding to each winning ball when a winning ball is detected.

【0028】セーフセンサ181は入賞球分離検出装置
180内に設けられ、排出制御装置600からの応答信
号(読込み確定信号)Hによってセーフソレノイド18
2の駆動信号が形成されて入賞球が一個ずつ分離されて
検出されるため、一般の入賞球はその発生に応じた数だ
け正確に排出指令信号が形成される。しかるに、特定入
賞球の検出信号は遊技盤制御装置400に連続して入っ
てくるので、この実施例では特定入賞球の検出数を記憶
する特定入賞数記憶手段413を設けている。そして、
この特定入賞数記憶手段413は、その読出し信号が排
出制御装置600からの応答信号Hを制御信号とするA
NDゲート421を介してフィードバックされることに
よって、入賞球一つに対する排出が終了するごとにその
記憶が一つ減算されるように構成されている。
The safe sensor 181 is provided in the winning ball separation detecting device 180, and receives a response signal (reading confirmation signal) H from the discharge control device 600 to output the safe solenoid 18.
Since two drive signals are formed and the winning balls are separated and detected one by one, the discharge command signal is formed exactly as many as the number of general winning balls according to the occurrence. However, since the detection signal of the specific winning ball is continuously input to the game board control device 400, in this embodiment, the specific winning number storage means 413 for storing the detected number of the specific winning ball is provided. And
This specific winning number storage means 413 uses the response signal H from the discharge control device 600 as a control signal when the readout signal is A
By feeding back the information through the ND gate 421, the memory is decremented by one every time the discharge of one winning ball is completed.

【0029】遊技制御手段430は、上記入賞球検出手
段411と同様な特定入賞球検出手段431と、遊技盤
に設けられているソレノイドやモータ等を駆動させる制
御信号や大当り信号Pを出力する信号形成手段432等
を備えている。図6には音声出力手段450の構成例を
示す。音声出力手段450には、遊技制御手段430か
らのソレノイドの駆動に伴う効果音のような遊技音の発
生を要求する遊技音要求信号と、排出制御装置600
からの賞球排出音要求信号Dおよび貸し玉排出音要求信
号Eとが入力されている。
The game control means 430 includes a specific winning ball detecting means 431 similar to the above-mentioned winning ball detecting means 411 and a signal for outputting a control signal for driving a solenoid or a motor provided on the game board or a big hit signal P. It is provided with forming means 432 and the like. FIG. 6 shows a configuration example of the audio output unit 450. The sound output means 450 includes a game sound request signal X for requesting generation of a game sound such as a sound effect accompanying driving of the solenoid from the game control means 430, and a discharge control device 600.
, A prize ball discharge sound request signal D and a lending ball discharge sound request signal E are input.

【0030】音声出力手段450内には、上記種類の
要求信号に各々対応する音声の発生コードを記憶するR
OM(リードオンリメモリ)等からなる音声発生手段4
51,452,453と、これら音声発生手段から出力
された信号に基づいてスピーカ190を駆動する信号を
発生するサウンドジェネレータ457と、上記要求信号
のうちいずれを優先して対応する音声を発生させるか決
定する優先制御手段458とを備え、同時に複数の要求
信号が入ってきたときは最も優先度の高い音声発生手段
を選択して音声コードを出力させるように構成されてい
る。図7には排出制御装置600の構成例を示す。
In the voice output means 450, R for storing voice generation codes respectively corresponding to the three types of request signals are stored.
Voice generating means 4 such as OM (Read Only Memory)
51, 452, 453, a sound generator 457 for generating a signal for driving the speaker 190 based on the signal output from these sound generating means, and which of the request signals should be given priority to generate the corresponding sound. And a priority control means 458 for determining, and when a plurality of request signals are received at the same time, a voice generating means having the highest priority is selected to output a voice code. FIG. 7 shows a configuration example of the discharge control device 600.

【0031】この実施例の排出制御回路としての排出制
御装置600は、マイクロコンピュータ等からなる制御
部610と、枠センサ103やオーバーフロー検出器1
04、待機球検出器160からの信号に基づいて球排出
装置170による排出が可能な状態にあるか否か示す排
出イネーブル信号を形成して制御部610に供給する排
出可能条件確認手段620と、管理装置700に対して
賞球排出や玉貸し、補給等の排出状態を示すステータス
信号を出力する状態出力手段630と、アウトセンサ1
07からの信号を計数して10球毎にアウト信号を管理
装置700に対して供給するカウンタ640と、セグメ
ント型の貸し玉排出表示ランプ113や賞球排出表示ラ
ンプ112を駆動する表示駆動手段650等により構成
されている。
The discharge control device 600 as a discharge control circuit of this embodiment includes a control unit 610 including a microcomputer and the like, a frame sensor 103 and an overflow detector 1.
04, a discharge enable condition confirming unit 620 that forms a discharge enable signal based on a signal from the standby ball detector 160 and indicates whether the ball discharge device 170 is in a dischargeable state and supplies the signal to the control unit 610; A state output unit 630 that outputs a status signal indicating a discharge state of the prize ball discharge, ball lending, supply, or the like to the management device 700;
A counter 640 that counts the signal from the counter 07 and supplies an out signal to the management device 700 for every 10 balls, and a display driving unit 650 that drives the segment type lending ball discharge display lamp 113 and the prize ball discharge display lamp 112. And the like.

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

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

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

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

【0036】停電制御部619は、図9に示すように、
交流電源の電源波形の波の数を数えて所定数以下になっ
たときに停電の発生を検出する停電検出手段691と、
電圧レベル検出手段等からの信号に基づいて電源電圧の
回復を検出する停電回復検出手段695と、賞球排出制
御部616および貸し玉排出制御部617からの状態信
号R,Qに基づいて進行中の排出の態様を記憶する排出
態様記憶手段692と、排出数信号a,bにより各排出
動作中における排出球数を保持する排出球数記憶手段6
93と、停電により中断された排出を停電回復時に途中
から続行させる排出続行制御手段694とから構成され
ている。
The power failure control unit 619, as shown in FIG.
A power failure detection means 691 for detecting the occurrence of a power failure when the number of waves of the power supply waveform of the AC power supply becomes equal to or less than a predetermined number,
Power failure recovery detecting means 695 for detecting the recovery of the power supply voltage based on a signal from the voltage level detecting means and the like, and progressing based on status signals R and Q from the prize ball discharge control unit 616 and the lending ball discharge control unit 617. Discharge mode storage means 692 for storing the discharge mode of the discharge ball number, and discharge ball number storage means 6 for storing the discharge ball number during each discharge operation by the discharge number signals a and b.
93 and discharge continuation control means 694 for continuing the discharge interrupted by the power failure from the middle when the power failure is recovered.

【0037】上記排出態様記憶手段692および排出球
数記憶手段693は、例えば電池696によりバックア
ップされたRAM(ランダムアクセスメモリ)で構成さ
れており、停電検出手段691が停電の発生を検出する
とその時の排出態様と排出数を排出態様記憶手段692
および排出球数記憶手段693に保持させ、停電が回復
したときには排出続行制御手段694を起動させて賞球
排出制御部616または貸し玉排出制御部617のいず
れによる排出が中断されていたかを判定させ、その結果
に応じて排出球数記憶手段693に保持されていた球数
を賞球排出制御部616または貸し玉排出制御部617
に転送させて、停電発生時に中断された排出を続行させ
て残りの球数を排出させるようになっている。
The discharge mode storage means 692 and the discharge 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 detection means 691 detects the occurrence of a power failure, Discharge mode and discharge mode storage means 692
And when the power outage is restored, the discharge continuation control means 694 is activated to determine whether the discharge by the prize ball discharge control unit 616 or the lending ball discharge control unit 617 has been interrupted. According to the result, the number of balls held in the number-of-discharged-balls storage means 693 is stored in the prize-ball discharge control unit 616 or the lending-ball discharge control unit 617.
The remaining number of balls is discharged by continuing the discharge interrupted when a power failure occurs.

【0038】図10は玉貸し制御回路としての玉貸し制
御装置500の構成例を示す。この実施例の玉貸し制御
装置500は、シングルチップマイコン等からなる制御
部510と、この制御部510とカードリーダ制御装置
250との間のデータ送受信のインターフェースを行な
うトランシーバ502と、セグメント型表示器からなる
残高表示器の駆動信号を形成する表示駆動手段503
と、玉貸可能表示器126および玉貸有効表示ランプ2
30を駆動するドライブ回路DRV1,DRV2と、返
却ボタン124および変換ボタン123からの信号を受
けて上記制御部510に入力するバッファ504a,5
04bと、カード管理装置800に対してカード決済信
号jを供給するリレー505と、上記変換スイッチ12
3の一回の操作に対する排出回数(100円分を一回と
する)を設定する玉貸し数設定手段506等によって構
成されている。
FIG. 10 shows a configuration example of a ball lending control device 500 as a ball lending control circuit . The ball lending control device 500 according to the present embodiment includes a control unit 510 including a single-chip microcomputer, a transceiver 502 for interfacing data transmission and reception between the control unit 510 and the card reader control device 250, and a segment type display. Display driving means 503 for forming a driving signal of a balance display comprising:
And ball lending possible display 126 and ball lending validity display lamp 2
Buffers 504a and 504 which receive signals from drive circuits DRV1 and DRV2 driving drive 30 and return button 124 and conversion button 123 and input to control section 510.
04b, a relay 505 for supplying a card settlement signal j to the card management device 800, and the conversion switch 12
3 is constituted by a ball lending number setting means 506 and the like for setting the number of discharges for one operation (100 yen is regarded as one time).

【0039】また、上記制御部510は、カードリーダ
制御装置250からのデータを読み込んだり、カードリ
ーダ制御装置250に対する書込データや制御信号、残
高表示器122に対する表示データを形成するカード制
御手段511と、上記排出制御装置600に対する玉貸
し要求信号Tを発生する玉貸要求制御手段512と、変
換ボタン123からの変換要求信号が入ったときに玉貸
要求制御手段512に対して玉貸し要求信号Tの発生を
許可する制御信号tを発生する玉貸要求有効化手段51
3とから構成されている。上記玉貸し数設定手段506
はROMのような記憶手段もしくはスライドスイッチの
ような設定器によって構成することができる。
The control unit 510 reads data from the card reader control device 250, and writes data and control signals for the card reader control device 250 and forms display data for the balance display unit 122. A ball lending request control means 512 for generating a ball lending request signal T to the emission control device 600; and a ball lending request signal to the ball lending request control means 512 when a conversion request signal is input from the conversion button 123. Ball lending request validating means 51 for generating a control signal t for permitting generation of T
And 3. Ball lending number setting means 506
Can be constituted by a storage means such as a ROM or a setting device such as a slide switch.

【0040】玉貸要求制御手段512は、上記玉貸要求
有効化手段513からの制御信号tを受けると上記排出
制御装置600からの玉貸し排出可能を示す玉貸イネー
ブル信号Uに基いて排出制御装置600に対する玉貸し
要求信号Tを形成する玉貸要求信号出力手段521と、
排出制御装置600からの払出完了信号Vを受けて玉貸
排出回数を計数する排出回数計数手段522と、この排
出回数計数手段522と上記玉貸し数設定手段506に
設定された玉貸し数とを比較し一致したときに上記玉貸
し要求信号Tをネゲートさせる比較器523と、カード
制御手段511からカード残高が「0」になったことを
示す信号uが入ってきたときおよび返却ボタン124か
らの信号が入ってきたときに直ちに上記玉貸し要求信号
Tをネゲートさせる玉貸要求取消手段524とにより構
成されている。
When the ball lending request control means 512 receives the control signal t from the ball lending request validation means 513, the ball lending request control means 512 performs discharge control based on the ball lending enable signal U indicating that the ball lending can be discharged from the discharge control device 600. Ball lending request signal output means 521 for forming a ball lending request signal T to the device 600;
The number-of-discharges counting means 522 that counts the number of times the ball has been discharged in response to the payout completion signal V from the discharge control device 600; A comparator 523 for negating the ball lending request signal T when they match and a signal u indicating that the card balance has become "0" from the card control means 511 and a signal from the return button 124 A ball lending request canceling means 524 for negating the ball lending request signal T immediately when a signal comes in.

【0041】玉貸可能表示器126を駆動するドライブ
回路DRV1は、上記玉貸し要求信号Tを受けてこれが
ネゲートされている間だけ玉貸し可能表示ランプ126
を点灯させ、玉貸し要求信号Tがアサートされている間
は消灯させるようになっている。図11には、上記玉貸
し制御装置500のカード制御手段511の具体的構成
例を示す。すなわち、このカード制御手段511は、カ
ードリーダ制御装置250から送られてくる読込みデー
タよりカードの残高を抽出するカード残高読込み手段5
41と、読み込まれた残高データを記憶する残高記憶手
段542と、排出制御装置600からの貸し玉払出完了
信号Vに基いて上記残高記憶手段542の記憶内容を減
算させる金額減算手段544と、残高記憶手段542の
金額が所定数になるごとにカードリーダ内のパンチ装置
に対して穴開け指令を与えるパンチ穴加工制御手段54
5と、上記残高記憶手段542の金額がゼロになったか
否か判定するカード残高判定手段546と、この判定手
段546からの金額ゼロ信号uや返却ボタン124から
のカード返却要求信号等に基いてカードリーダの挿排出
モータに対するカード排出指令信号nや玉貸可能表示器
126の制御信号を形成するカード挿排出制御手段54
7と、貸し玉払出完了信号Vに基いてプリペードカード
が1度(100円等)分使用されたことを、全カードの
金額を管理するカード管理装置800に知らせる決済信
号jを形成する決済情報形成手段548とを備えてい
る。この決済信号jは伝送ラインを介してカード管理会
社のコンピュータに伝送させるようにすることができ
る。上記カード残高読込み手段541と、読み込まれた
残高データを記憶する残高記憶手段542と、排出制御
装置600からの貸し玉払出完了信号Vに基いて上記残
高記憶手段542の記憶内容を減算させる金額減算手段
544とによって、残高データ制御手段549が構成さ
れている。そして、上記残高記憶手段542の内容は貸
し玉払出完了ごとに更新され、その残高記憶手段542
の内容はパチンコ遊技機100に設けられた残高表示器
122に表示される。
The drive circuit DRV1 for driving the ball lending possible display 126 receives the ball lending request signal T, and the ball lending possible display lamp 126 only while this signal is negated.
Is turned on, and is turned off while the ball lending request signal T is asserted. FIG. 11 shows a specific configuration example of the card control unit 511 of the ball lending control device 500. That is, the card control unit 511 extracts the card balance from the read data sent from the card reader control unit 250.
41, balance storage means 542 for storing the read balance data, amount subtraction means 544 for subtracting the stored contents of the balance storage means 542 based on the lending ball payout completion signal V from the discharge control device 600, Punch hole processing control means 54 for giving a punching command to a punch device in a card reader every time the amount of money in storage means 542 reaches a predetermined number
5, a card balance determination unit 546 for determining whether or not the amount stored in the balance storage unit 542 has become zero, and a zero amount signal u from the determination unit 546, a card return request signal from the return button 124, and the like. Card insertion / ejection control means 54 which forms a card ejection command signal n for the insertion / ejection motor of the card reader and a control signal of ball lending possible display 126
7 and the settlement information for forming the settlement signal j that informs the card management device 800 that manages the amounts of all the cards that the prepaid card has been used once (eg, 100 yen) based on the lending ball payout completion signal V. Forming means 548. This payment signal j can be transmitted to a computer of a card management company via a transmission line. The card balance reading means 541, the balance storage means 542 for storing the read balance data, and the amount subtraction for subtracting the contents stored in the balance storage means 542 based on the lending ball payout completion signal V from the discharge control device 600. The means 544 constitutes the balance data control means 549. Then, the contents of the balance storage means 542 are updated each time the loaned ball is paid out, and the balance storage means 542 is updated.
Is displayed on the balance display 122 provided in the pachinko gaming machine 100.

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

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

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

【0045】この処理ナンバーは、その値が“5”のと
きに後述の停電回復処理(図50)を開始させ、その値
が“4”のときに後述の玉抜処理(図40〜42)を開
始させ、その値が“3”のときに後述の玉貸し排出処理
(図39)を開始させ、その値が“2”のときに後述の
賞球排出処理(図32)を開始させ、その値が“1”の
ときに後述の賞球開始処理(図29)を開始させるもの
である。そして、この処理ナンバーは各々対応する処理
が実行されたとき、その処理フローの中で他のナンバー
に変更もしくは“0”にリセットされるようになってい
る。
When the value of this process number is "5", a power failure recovery process (FIG. 50) to be described later is started, and when the value is "4", a ball removal process to be described later (FIGS. 40 to 42). When the value is “3”, the later-described ball lending discharge process (FIG. 39) is started, and when the value is “2”, the later-described prize ball discharge process (FIG. 32) is started. When the value is "1", a prize ball start process (FIG. 29) described later is started. When the corresponding process is executed, the 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の賞
球開始処理へ移行させるためである。また、ステップS
12で排出要求がなければ補給処理(図43)および情
報出力処理(図44)を実行した後、上記ステップS3
へ戻る。
On the other hand, if the processing number is "0", the process proceeds to step S10, where it is determined whether or not the ball-extraction flag is "1". If the flag is "1", the processing number is set to "1" in step S20. Set to 4 ". This is for shifting to the ball-pulling-out processing of step S16 when the main routine is executed again. If it is determined in step S10 that the ball extraction flag is "0", the process proceeds to step S11. In step S11, it is checked whether or not a ball lending request signal V is received from the ball lending control device 500. If the signal is received, a ball lending start process (FIG. 38) is executed. If there is no ball lending request signal, step S12 is performed. Proceed to. In step S12, if it is checked whether or not a prize ball discharge request (strobe signal C of prize ball data) is received from the gaming board control device 400, the process number is set to "1" in step S22. This is for shifting to the winning ball start processing of step S19 when the main routine is executed again. Step S
If there is no ejection request in step 12, after the supply process (FIG. 43) and the information output process (FIG. 44) are executed, the above-described step S3 is performed.
Return to

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

【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 performed in step S41. In this processing routine, first, it is determined whether or not 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). If there is, step S41
The process proceeds to step 04 to check whether or not a prize ball is being discharged. If the prize ball is being discharged, the ball lending request flag is reset and the process ends (step S4118). If a prize ball is not being discharged, it is determined in the next step S4106 whether or not a ball is being discharged. If a ball is being discharged, the process ends without doing anything. In this embodiment, even if one conversion to a lending ball is set to a unit such as 200 yen or 300 yen, 10 conversions are required for the discharge solenoid.
This is because a discharge command is issued in units of 0 yen.

【0049】上記ステップS4106で玉貸し排出中で
ないと判定すると、ステップS4108へ進み、玉貸し
要求信号Tがロウレベルにされているか判定し、“Ye
s”なら信号が連続して5m秒ロウレベルになっている
か調べる(ステップS4120)。連続して5m秒ロウ
レベルになっているのを確認して玉貸し要求信号が
ートされたと判断することによってノイズによる誤動作
を防止するためである。そして、ステップS4120の
判定で“No”なら何もせずに、また“Yes”なら玉
貸し要求フラグをセットして処理を終了する(ステップ
S4122)。これによって、図12のメインルーチン
中のステップS11で“Yes”と判定されて、玉貸し
開始処理S21が開始される。さらに、ステップS41
08で“No”すなわち玉貸し要求信号Tがハイレベル
であると判定したときは、ステップS4110へ進ん
で、玉貸し要求信号Tが連続して5m秒間ハイレベル
(Hレベル)か否か判定する。そして、連続して5m秒
間ハイレベルであった場合には玉貸し要求がなくなった
と判断して、連続玉貸しカウンタをクリアして玉貸し要
求フラグをリセット、玉貸し可能を示すP台レディフラ
グを「0」にクリアして処理を終了する(ステップS4
124,S4126,S4128)。
If it is determined in step S4106 that ball lending is not being performed, the flow advances to step S4108 to determine whether the ball lending request signal T is at a low level.
s "If the signal is continuously check whether has become 5m second low level (step S4120). ball lending request signal is A support after confirming that the succession has become 5m seconds low level
This is to prevent malfunction due to noise by judging that the operation has been performed. If "No" is determined in step S4120, nothing is performed, and if "Yes", the ball lending request flag is set, and the process ends (step S4122). Accordingly, “Yes” is determined in step S11 in the main routine of FIG. 12, and the ball lending start processing S21 is started. Further, step S41
If “No” in 08, that is, it is determined that the ball lending request signal T is at the high level, the process advances to step S4110 to determine whether the ball lending request signal T is continuously at the high level (H level) for 5 ms. . If the high level is continuously attained for 5 msec, it is determined that there is no ball lending request, the continuous ball lending counter is cleared, the ball lending request flag is reset, and the P-unit ready flag indicating that ball lending is possible is set. Clear to "0" and end the processing (step S4
124, S4126, S4128).

【0050】一方、ステップS4102の判定で“Ye
s”であればステップS4112へ進んで玉貸し制御装
置500からの玉貸し要求信号Tがハイレベルか否か判
定する。ここで、玉貸し要求信号Tがロウレベル(Lレ
ベル)であれば、何もせずにそのままこのルーチンを終
了し、玉貸し要求信号Tがハイレベルであれば、ステッ
プS4114へ進み、玉貸し要求信号Tが連続して5m
秒間ハイレベルか否か判定する。そして、玉貸し要求信
号Tが連続して5m秒間ハイレベルであれば、玉貸し要
求信号Tがネゲートされたと判定して連続玉貸しカウン
タをクリアして処理を終了する(ステップS411
6)。一度に500円分を越える変換を回避するためで
ある。
On the other hand, “Ye” is determined in step S4102.
If s ", the flow advances to step S4112 to determine whether or not the ball lending request signal T from the ball lending control device 500 is at a high level. If the ball lending request signal T is at a low level (L level), If 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 5 m.
It is determined whether the level is high for a second. If the ball lending request signal T is continuously at the high level for 5 msec, 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 S411).
6). This is to avoid conversion exceeding 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が開始される。上記のようにこの実施例では、同
期信号としてのデータストローブ信号Cが連続して10
m秒以上ロウレベルにされているか判定して賞球数デー
タBを読み込むようにしているため、データストローブ
信号Cのレベルが遊技盤制御回路で正しく設定されたも
のであるのかノイズ等の異常な信号がのったものである
のか判別して賞球数信号を正確に取り込むことができ、
誤った賞球排出を防止することができる。賞球数は遊技
者の利益と不利益に直接関わるものであり、仮に正しい
賞球排出がなされなかった場合には遊技者は遊技機に対
して不信感を抱いてしまい、遊技店は信用を失ってしま
うおそれがあるが、実施例のような制御方式を採ること
で遊技店の信用の失墜を防止することができる。
FIG. 15 is a flowchart of a winning ball data detection processing routine performed in step S42. In this process, first, it is checked whether or not the ball is being discharged (step S4202). If the ball is not being discharged, the process proceeds to step S4204 to determine whether or not the prize ball discharging process has already been started. End the process without doing
If the prize ball is not being discharged, the flow advances to step S4206 to check whether the data strobe signal C from the game board control device 400 has been asserted to a low level. Here, if it is determined that the data strobe signal C is at the low level, the process proceeds to step S 4212 to determine whether the signal is continuously at the low level for 10 ms or more, and if “Yes”, the number of award balls from the game board control device 400. After reading the data B, the prize ball request flag is set and the process is terminated (steps S4214 and S4216). As a result, FIG.
In step S12 of the second main routine, "Yes" is determined, and the processing number is set to "1". Thereafter, "Yes" is determined in step S9, and the prize ball start processing S19 is started. In this embodiment, as described above,
Data strobe signal C as a start signal
Prize ball count day
Data strobe because data B is read.
If the level of signal C is set correctly by the game board control circuit
Or abnormal signal such as noise
And can accurately capture the prize ball number signal,
Incorrect prize ball ejection can be prevented. The number of prize balls is game
Are directly related to the interests and disadvantages of the
If the prize ball is not ejected, the player
Amusement stores lose their credibility
Use a control method such as that in the embodiment.
Thus, the loss of credit of the game store can be prevented.

【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 lent and discharged, the flow shifts to step S4208 to reset the prize ball number data and the prize ball request flag set in steps S4214 and S4216, and terminate the process. (Step S4210). This is for giving priority to the ball lending discharge processing over the prize ball discharge processing. However, the ball lending discharge processing is prioritized only when the prize ball count data and the prize ball request flag are set, and once the prize ball discharge operation is started, the prize ball discharge processing is reset. This is dealt with in the ball lending request detection processing of FIG. 14 so as not to be performed (see steps S4104 and S4118).

【0053】図16は、上記ステップS43にて行なわ
れる枠センサ入力処理ルーチンのフローチャートであ
る。この枠センサ入力処理は、パチンコ遊技機に設けら
れた枠センサ103の信号を取り込んで、情報出力処理
S24においてホールの管理装置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 is a game console information output processing flow (FIG. 7) which takes in a signal of the frame sensor 103 provided in the pachinko gaming machine and forms a signal to be output to the hall management device 700 in the information output processing S24. 48)
This is a process for setting a frame opening flag and a frame closing flag used in the process of forming a frame opening signal inside.
When this routine is started, first, in step S4300
It is determined whether or not 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”に設定し(ステップS430
6)、枠開放監視フラグを“0”に設定し(ステップS
4308)、更に枠閉塞タイマを所定値(100m秒)
にセットして(ステップS4310)、本ルーチンを終
了する。
It is now assumed that the front frame 101 of the pachinko gaming machine is closed. Then, the determination result of step S4300 is “Yes”, and the process proceeds to step S4302 to determine whether the frame closing flag is “1”. Here, since the determination flags are all set to “0” in the initial setting (step S2 in FIG. 12), the determination in step S4302 and the determination in the next step S4304 (whether the frame closing monitoring flag is “1” or not) ) Are both "No",
The frame closing monitoring flag is set to "1" (step S430).
6), and set the frame opening monitoring flag to “0” (Step S)
4308) Further, the frame closing timer is set to a predetermined value (100 ms).
Is set (step S4310), and this routine ends.

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

【0056】一方、上記ステップS4300で“No”
すなわち枠センサ103がオフであると判定されると、
ステップS4318へ移行して、ステップS4302な
いしS4316と相補的なステップであるS4318な
いしS4332からなるルーチンを実行して、枠開放フ
ラグを“1”に、また枠閉塞フラグを“0”にそれぞれ
設定して本ルーチンを終了する。すなわち、まずステッ
プS4318(枠開放フラグが“1”か否か)および次
ステップS4320(枠開放監視フラグが“1”か否
か)の判定結果は共に“No”となり、ステップS43
22で枠開放監視フラグを“1”に設定してから、枠閉
塞監視フラグを“0”に設定し(ステップS432
4)、更に枠開放タイマを起動して(ステップS432
6)、本ルーチンを終了する。
On the other hand, "No" in step S4300
That is, when it is determined that the frame sensor 103 is off,
The flow proceeds to step S4318 to execute a routine consisting of steps S4318 to S4332, which are steps complementary to steps S4302 to S4316, to set the frame opening flag to “1” and the frame closing flag to “0”, respectively. To end this routine. In other words, first steps
The determination result is both "No" next flop S4318 (frame opening flag whether "1") and the next step S4320 (whether the frame opening monitor flag is "1" or), Step S43
After setting the frame opening monitoring flag to "1" at 22, the frame closing monitoring flag is set to "0" (step S432).
4) Then, a frame release timer is started (step S432).
6), end this routine.

【0057】そして、次のループが開始されたときに引
き続き枠センサがオフであると、前記ステップS430
0の判定結果が“No”、続くステップS4318の判
定結果が“No”、S4320の判定結果が“Yes”
となってステップS4328が実行される。このステッ
プS4328では、前記ステップS4326で起動させ
た枠開放タイマがタイムアップしたか否か判定され、判
定結果が“No”のときには、続くステップS433
0,S4332をスキップして本ルーチンを終了する。
If the frame sensor is still off when the next loop is started, step S430 is performed.
The determination result of 0 is “No”, the determination result of subsequent step S4318 is “No”, and the determination result of S4320 is “Yes”.
And step S4328 is executed. In this step S4328, it is determined whether or not the time of the frame release timer started in step S4326 has expired. If the determination result is “No”, the subsequent step S433 is performed.
0, S4332 is skipped, and this routine ends.

【0058】一方、前記ステップS4328の判定結果
が“Yes”のときには、ステップS4330にて枠セ
ンサ開放フラグを“1”に設定すると共に、次のステッ
プS4332にて、枠センサ閉塞フラグをリセット
(“0”に設定)して本ルーチンを終了する。ただし、
ステップS4326で起動する枠開放タイマの設定時間
は上記枠閉塞タイマ(ステップS4310)よりもずっ
と長い1000m秒のような時間が選択されている。図
17は、上記ステップS44にて行なわれる排出センサ
1の入力処理ルーチンのフローチャートである。
On the other hand, if the decision result in the step S4328 is "Yes", the frame sensor open flag is set to "1" in a step S4330, and in the next step S4332, the frame sensor closing flag is reset (" (Set to "0"), and this routine ends. However,
As the set time of the frame opening timer started in step S4326, a time such as 1000 ms, which is much longer than the frame closing timer (step S4310), is selected. FIG. 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 discharge sensor 730a. When the prize ball is present inside, the output signal of the sensor becomes high level.
The output signal becomes low level when the prize ball flows out and no longer exists in the sensor temporarily or continuously. Therefore, in this routine, the sensor 730 is used.
When the output signal “a” rises from a low level to a high level, a discharge sensor 1 start-up flag described later is set to “1” to memorize that the prize ball has reached the inside of the sensor. On the other hand, when the output signal of the sensor 730a (hereinafter, referred to as the discharge sensor 1) falls from the high level to the low level, the discharge sensor fall flag described later is set to "1", and the prize ball is removed from 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, it is first determined in step S4402 whether the output signal of the sensor 1 is at a high level (the output of the discharge sensor 1 = "1").
It is now assumed that one prize ball remains in the sensor 1 without discharging the prize ball. At this time, step S
The result of the determination at 4402 is “Yes”, and the
Steps 404 and thereafter are executed. In step S4404, it is determined whether the discharge 1 startup change flag is "1" in step S4404.
At 4406, it is determined whether the discharge 1 fall change flag is "1", at step S4408, whether the discharge 1 low level flag is "1", and then, at step S4410, the discharge 1 high level flag is "1". Is determined respectively. By the way, immediately after the initialization of the CPU 610, since all the flags are set to “0”, the step S
All the determination results in 4404 to S4410 are “No”, and in step S4412, the discharge 1 high level flag is set to “1” in order to store that the output signal of the discharge sensor 1 was at the high level in the current 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 holds the high level state, step S44 is performed.
02, S4404, S4406, S4408, S441
0 will be repeatedly executed. After that, the discharge of the prize ball is started, and when the prize ball which has stayed in the sensor 1 until then moves outside of the discharge sensor 1 and comes out of the sensor 1, the output signal of the discharge sensor 1 falls to low level. The result of the determination in step S4402 is "No", and steps S4432 and thereafter 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 "1" and the other flags are all "0".
The results of the determination in step S4432 (whether the discharge 1 fall change flag is “1”) and the next determination in step S4434 (whether the discharge 1 rise change flag is “1”) are both “No”, The result of the determination of the following step S4436 (whether the discharge 1 high level flag is "1") becomes "Yes", and steps S4438 and S4440 are executed.
In step S4438, the discharge 1 fall change flag is set to "1" in order to store that the output signal of the discharge sensor 1 has changed (falled) from the high level to the low level from the previous loop to the current loop. Step S4
At 440, the discharge 1 high level flag that has 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)本ルーチンを
終了する。
When the output signal of the discharge sensor 1 is continuously at the low level in the next loop, the discharge 1 fall change flag is set to "1" in step S4438 of the previous loop. Turns to “Yes”. Then, the subsequent step S4442
In steps S4448 to S4448, the discharge sensor 1 fall flag is set to "1" to store the fact that the prize ball has escaped from the inside of the discharge sensor 1 (step S4442). Discharge sensor 1 indicating that there is a prize ball
The rise flag (set to “0” when this step is executed for the first time after initialization) is reset to “0” (step S4444), and then the discharge 1 fall change flag is set to “0”. (Step S4446), and sets the discharge 1 low level flag to "1" in order to store that the output signal of the discharge sensor 1 in this loop is low level (step S4448), and terminates 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 (determination of whether or not the discharge 1 low level flag is "1") are repeatedly executed (at this time, the determination result of step S4450 is "Y
At this time, the discharge sensor 1 fall flag is held at "1" and the discharge sensor 1 rise 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 a loop immediately after the output signal of the discharge sensor 1 falls from the high level to the low level,
When the output signal has risen to the high level again (when the step S4438 is executed in the previous loop, the discharge 1 fall change flag becomes “1”, and the sensor output rises to the high level in the current loop) In), the determination result of step S4402 changes to “Yes”, the determination result of step S4404 changes to “No”, and step S44
It is determined that the result of the determination in step 06 is "Yes". In step S4428, the discharge 1 rise change flag is set to "1" to store that the output signal has risen from the previous loop to the current loop. , Step S443
At 0, the discharge 1 fall change flag set to "1" at the time of 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 time or more after the output signal of the discharge sensor 1 falls (at least during the time when the main interrupt processing is performed twice). (The prize ball is sensor 1
The processing is not performed, and when the output signal of the discharge sensor 1 generates noise and the signal falls instantaneously, the discharge 1 fall flag is erroneously set. It is not set to "1".

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

【0068】この時点では排出1ロウレベルフラグは前
記ステップS4448にて“1”に設定されているので
ステップS4408の判定結果は“Yes”となり、ス
テップS4414に進んで、前回ループから今回ループ
にかけて排出センサ1の出力信号がロウレベルからハイ
レベルに変化した(立上った)ことを記憶すべく、排出
1立上変化フラグを“1”に設定し、続くステップS4
416で、この時点まで“1”に設定されていた排出1
ロウレベルフラグをリセット(“0”に設定)して、本
ルーチンを終了する。
At this time, since the discharge 1 low level flag is set to "1" in step S4448, the determination result in step S4408 is "Yes", and the flow advances to step S4414 to execute the discharge sensor from the previous loop to the current loop. In order to memorize that the output signal of No. 1 has changed (rising) from the low level to the high level, the discharge 1 rising change flag is set to "1", and the following step S4
At 416, the discharge 1 that has been set to “1” up to 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”にリセットし(ステップS442
0)、続いて前記排出1立上変化フラグを“0”にリセ
ットする(ステップS4422)と共に、今回ループで
の排出センサ1の出力信号がハイレベルであることを記
憶すべく排出1ハイレベルフラグを“1”に設定して
(ステップS4424)本ルーチンを終了する。
When the output signal of the discharge sensor 1 is continuously at the high level in the next loop, the discharge 1 rise change flag is set to "1" in step S4414 of the previous loop, so that the result of the determination in step S4404 is obtained. Turns to “Yes”. Then, the subsequent step S4418
In steps S4424 to S4424, the start-up flag of the discharge sensor 1 is set to "1" to store that there is a prize ball in the discharge sensor 1 (step S4418), and when the value is "1", the prize ball is output from the sensor. Is reset to "0" indicating that the sensor has come off (step S442).
0) Then, the discharge 1 rise change flag is reset to "0" (step S4422), and the discharge 1 high level flag is stored to store that the output signal of the discharge sensor 1 in this loop is at the high level. Is set to "1" (step S4424), and this routine ends.

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

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

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

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

【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 (the output of the discharge sensor 2 = “1”). It is assumed that a prize ball is not ejected and one prize ball remains in the sensor 2. At this time, the determination result of step S4602 is “Yes”, and the steps from step S4604 are executed. Step S46
In step S4606, it is determined whether or not the discharge 2 rise change flag is "1" in step S4606, and whether or not the discharge 2 fall change flag is "1" in step S4608.
It is determined whether the low level flag is “1”, and then, in step S4610, whether the discharge 2 high level flag is “1”.

【0075】ところでCPU610の初期化直後はすべ
てのフラグが“0”に設定されているため、ステップS
4604〜S4610の判定結果はすべて“No”とな
り、ステップS4612にて、今回ループで排出センサ
2の出力信号がハイレベルであったことを記憶すべく排
出2ハイレベルフラグを“1”に設定して本ルーチンを
終了する。以後のループでは排出2ハイレベルフラグが
“1”に設定されているので、排出センサ2の出力信号
がハイレベルの状態を保持する限りステップS460
2,S4604,S4606,S4608,S4610
が繰返し実行されることになる。
By the way, immediately after the initialization of the CPU 610, all the flags are set to "0".
The results of the determination in steps 4604 to S4610 are all “No”, and in step S4612, the discharge 2 high level flag is set to “1” in order to store that the output signal of the discharge sensor 2 was at the high level in the current loop. To end this routine. In the subsequent loop, since the discharge 2 high level flag is set to “1”, as long as the output signal of the discharge sensor 2 holds the state of the high level, step S460 is performed.
2, S4604, S4606, S4608, S4610
Is 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が実行され
る。
Thereafter, the discharge of the prize ball is started, and when the prize ball which has stayed in the sensor 2 until then moves outside the discharge sensor 2 and comes out of the sensor 2, the output signal of the discharge sensor 2 becomes low level. Falling in step S4
The result of the determination in 602 is “No” and the step S463
2 and subsequent steps are executed. When the processing after step S4632 is performed for the first time, since the discharge 2 high level flag is “1” and all other flags are “0”, the determination in step S4632 (the discharge 2 fall change flag is “1”). 1), the result of the determination in the next step S4634 (whether the discharge 2 rise change flag is "1") is "No", and the following step S4636 (the discharge 2 high level flag is "1"). Is "Yes"
As a result, steps S4638 and S4640 are executed.

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

【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 the 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 (determination of whether or not the discharge 2 low level flag is "1") are repeatedly executed (at this time, the determination result of step S4650 is "Y
At this time, the discharge sensor 2 fall flag is held at "1" and the discharge sensor 2 rise 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 a loop immediately after the output signal of the discharge sensor 2 falls from the high level to the low level,
When the output signal rises to the high level again (when the step S4638 is executed in the previous loop, the discharge 2 fall change flag becomes “1”, and the sensor output rises to the high level in the current loop) ), The determination result of step S4602 changes to “Yes”, the determination result of step S4604 changes to “No”, and step S46
It is determined that the result of the determination in step 06 is "Yes". In step S4628, the discharge 2 rise change flag is set to "1" to store that the output signal has risen from the previous loop to the current loop. , Step S463
At 0, the discharge 2 fall change flag that 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 the low level state is detected for a predetermined time or more (at least during the time when the main interrupt processing is performed twice) after the output signal of the discharge sensor 2 falls. (Prize ball is sensor 2
The processing is not performed, and noise is generated in the output signal of the discharge sensor 2 and the discharge 2 fall flag is erroneously set to "1", for example, when the signal falls instantaneously. "Is not set.

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

【0082】この時点では排出2ロウレベルフラグは前
記ステップS4648にて“1”に設定されているので
ステップS4608の判定結果は“Yes”となり、ス
テップS4614に進んで、前回ループから今回ループ
にかけて排出センサ2の出力信号がロウレベルからハイ
レベルに変化した(立上った)ことを記憶すべく、排出
2立上変化フラグを“1”に設定し、続くステップS4
616で、この時点まで“1”に設定されていた排出2
ロウレベルフラグをリセット(“0”に設定)して、本
ルーチンを終了する。
At this time, since the discharge 2 low level flag is set to "1" in step S4648, the determination result in step S4608 is "Yes", and the flow advances to step S4614 to execute the discharge sensor from the previous loop to the current loop. In order to memorize that the output signal of No. 2 has changed (rising) from the low level to the high level, the discharge 2 rising change flag is set to "1", and the following step S4
At 616, the discharge 2 that has 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)本ルーチンを終了する。
When the output signal of the discharge sensor 2 continues to be at the high level in the next loop, the discharge 2 rise change flag is set to "1" in step S4614 of the previous loop. Turns to “Yes”. Then, the following step S4618
In steps S4624, the start-up flag of the discharge sensor 2 is set to "1" to store that there is a prize ball in the discharge sensor 2 (step S4618), and when the value is "1", the prize ball is The discharge sensor 2 fall flag indicating that the sensor has been removed is reset to "0" (step S4620),
Subsequently, the discharge 2 rise change flag is reset to "0" (step S4622), and the discharge 2 high level flag is set to "1" in order to store that the output signal of the discharge sensor 2 in this loop is at the high level. "(Step S4624) and terminates this routine.

【0084】その後、排出センサ2の出力信号がハイレ
ベルである限り、前記ステップS4602,S460
4,S4606,S4608,S4610が繰返し実行
されることになり、このとき、排出2立上フラグは
“1”、排出2立下フラグは“0”に保持される。一
方、排出センサ2の出力信号がロウレベルからハイレベ
ルに立上がった直後のループにおいて、該出力信号がロ
ウレベルに立下がってしまった場合(前回ループでステ
ップS4614が実行されて排出2立上変化フラグが
“1”となり、且つ今回ループの出力信号がロウレベル
の場合)には、ステップS4602の判定結果が“N
o”、ステップS4632の判定結果が“No”、ステ
ップS4634の判定結果が“Yes”と云う具合に判
定され、ステップS4652にて前回ループから今回ル
ープにかけて出力信号が立下がったことを記憶すべく排
出2立下変化フラグを“1”に設定すると共に、ステッ
プS4654にて前回ループ時に“1”に設定された排
出2立上変化フラグを“0”にリセットして本ルーチン
を終了する。
Thereafter, as long as the output signal of the discharge sensor 2 is at the high level, the aforementioned steps S4602, S460
4, S4606, S4608, and S4610 are repeatedly executed. At this time, the discharge 2 rise flag is held at "1" and the discharge 2 fall flag is held at "0". On the other hand, in a loop immediately after the output signal of the discharge sensor 2 rises from the low level to the high level, if the output signal falls to the low level (Step S4614 is executed in the previous loop and the discharge 2 rise change flag Is “1” and the output signal of the current loop is low level), the determination result of step S4602 is “N”.
o ", the determination result of step S4632 is" No ", and the determination result of step S4634 is" Yes ". In step S4652, the fact that the output signal has fallen from the previous loop to the current loop is stored. The discharge 2 fall change flag is set to "1", and in step S4654, the discharge 2 rise change flag set to "1" in 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 the high level state is detected for a predetermined time or more (at least during the time when the main interrupt processing is performed twice), the discharge 2 rise flag is set. Is set to "1" (indicating that there is a prize ball in the discharge sensor 2), and when the output signal of the discharge sensor 2 generates noise, the discharge 2 is erroneously performed. The rise flag is not set to "1".

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

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

【0088】本ルーチンが開始されると、ステップS7
200にて排出センサ1の出力信号がハイレベルである
(排出センサ1出力=“1”)か否かが判別される。こ
の判別結果が“No”、即ち出力信号がロウレベルであ
るときには、排出1球有監視フラグを“0”(ステップ
S7202)、前述した排出センサ1球有フラグを
“0”(ステップS7204)、排出1エラー監視フラ
グを“0”(ステップS7206)、前述した排出1エ
ラー解除フラグを“0”(ステップS7208)に夫々
設定して、本ルーチンを終了する。
When this routine is started, step S7
At 200, it is determined whether or not the output signal of the discharge sensor 1 is at a high level (discharge sensor 1 output = "1"). When the determination result is “No”, that is, when the output signal is at the low level, the discharge one ball presence flag is set to “0” (step S7202), the discharge sensor one ball presence flag is set to “0” (step S7204), and the discharge is performed. The 1-error monitoring flag is set to “0” (step S7206), and the above-described discharge 1 error cancel flag is set to “0” (step S7208), and the 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, in the loop where the output signal of the discharge sensor 1 is determined to be at the high level, both the discharge 1 ball existence monitoring flag and the discharge 1 error monitoring flag are obtained immediately after the loop rises from the low level to the high level. This is used to determine whether or not the loop is a loop (steps S7212 and S7224 described later). Thereafter, when the output signal of the discharge sensor 1 changes from the low level to the high level, in the loop immediately after that, the determination result of the step S7200 becomes “Yes”, and in the subsequent step S7210, the discharge sensor 1 ball presence flag is set to “1”. It is further determined in step S7212 whether or not discharge 1
It is determined whether or not the ball presence flag is “1”. In this case, the determination results are both “No”, and in a succeeding step S7214, the one-ball discharge monitoring flag is set to “1”.
In step S7216, the one-ball discharge timer is set to the first predetermined period (50 msec), and the flow advances to step S7222.

【0090】ステップS7222では排出1エラー解除
フラグが“1”であるか否かが判別される。この場合
(センサ1の出力信号がロウレベルからハイレベルに変
化した直後)判別結果は“No”となり、続くステップ
S7224にて排出1エラー監視フラグが“1”である
か否かが判別される。今回ループではこの判別結果も
“No”となるので、ステップS7226で排出1エラ
ー監視フラグを“1”に設定し、続くステップS722
8で排出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 the sensor 1 has changed from the low level to the high level), the determination result is "No", and in a succeeding step S7224, it is determined whether or not the discharge 1 error monitoring flag is "1". In the current loop, this determination result is also “No”, so the discharge 1 error monitoring flag is set to “1” in step S7226, and the subsequent step S722.
At 8, the discharge 1 error timer is set to the second predetermined period (2 sec).
Is set and the routine ends.

【0091】次のループで排出センサ1の出力信号が依
然ハイレベルを維持していると、前記ステップS720
0の判別結果が“Yes”、ステップS7210の判別
結果が“No”、ステップS7212の判別結果が“Y
es”となって、ステップS7218に進む。ステップ
S7218では前記ステップS7216でセットされた
球有タイマがタイムアップしたか否かが判別され、この
判別結果が“No”のとき(出力信号がハイレベルに変
化してから未だ第1の所定期間が経過していないとき)
には、続くステップS7220をスキップして、前記ス
テップS7222に進む。
In the next loop, if the output signal of the discharge sensor 1 is still at the high level, the aforementioned step S720
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 ", the flow proceeds to step S7218. In step S7218, it is determined whether or not the timer with the ball set in step S7216 has timed out. When the determination result is" No "(the output signal When the first predetermined period has not yet elapsed since the change to
, 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,S7
212,S7218及びステップS7222以降が繰返
し実行され、ステップS7218の判別結果が“No”
から“Yes”に転じたとき(上記第1の所定期間経過
直後)、ステップS7220にて前述した排出センサ1
球有フラグが“1”に設定され、以後ステップS720
0,S7210及びステップS7222以降が繰返し実
行されることになる。
In this loop, this step S7222
Is "No", and the determination in step S7224 is "Yes", and the flow advances to step S7230. In step S7230, it is determined whether the discharge 1 error timer set in step S7228 has expired. If the determination result is "No" (the output signal has changed to a high level and the second If the predetermined period has not elapsed), the subsequent step S7322
Is skipped, and this routine ends. Further, in the next and subsequent loops, as long as the output signal of the discharge sensor 1 is at the high level, steps S7200, S7210, S7
212, S7218 and step S7222 and thereafter are repeatedly executed, and the determination result of step S7218 is “No”
Is changed to "Yes" (immediately after the elapse of the first predetermined period), in step S7220 the discharge sensor 1
The ball presence flag is set to "1", and thereafter, step S720
0, S7210 and step S7222 and thereafter are repeatedly executed.

【0093】又、ステップS7222以降の処理に関し
ても、排出センサ1の出力信号がハイレベルである限り
ステップS7222,S7224,S7230が繰返し
実行され、ステップS7230の判別結果が“No”か
ら“Yes”に転じたとき(上記第2の所定期間経過直
後)、ステップS7232にて前述した排出1エラー解
除フラグが“1”に設定され、以後ステップS720
0,S7210,S7222(排出1エラー解除フラグ
が“1”のときには、当然に、排出センサ1球有フラグ
は“1”となっている)が繰返し実行される。そして、
排出センサ1の出力信号が一度でもロウレベルに変化し
たときは、ステップS7202〜S7208にて各フラ
グが“0”にリセットされるため、その直後にハイレベ
ルに戻っても再びステップS7210以降の処理が初め
から開始されることになる。
Also, with regard to the processing after step S7222, steps S7222, S7224, and S7230 are repeatedly executed as long as the output signal of the discharge sensor 1 is at the high level, and the determination result of step S7230 changes from "No" to "Yes". When the state has been changed (immediately after the lapse of the second predetermined period), the above-described discharge 1 error release flag is set to “1” in step S7322, and thereafter, step S720 is performed.
0, S7210, and S7222 (when the discharge 1 error release flag is "1", the discharge sensor 1 ball presence flag is naturally "1") is repeatedly executed. And
When the output signal of the discharge sensor 1 has once changed to the low level, the flags are reset to “0” in steps S7202 to S7208. Therefore, even if the flag returns to the high level immediately after that, the processing in step S7210 and thereafter is performed again. It will be started 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 the step S of the interrupt processing (FIG. 13).
5 is a flowchart showing a routine of a level input process of the discharge sensor 2 performed at 50. This routine is performed in the same procedure as the level input process of the discharge sensor 1 described above. This level input processing is a routine for determining whether or not a period in which the output signal of the discharge sensor 2 is at a high level (a state in which the sensor 2 is detecting a prize ball) has continued for a predetermined period or more. After changing from a state without a prize ball to a state with a prize ball, a first predetermined period (50 msec)
Is set to "1" when the time has elapsed, and this is stored. When the second predetermined period (2 sec) has elapsed after the above change, the emission 2 error release flag is set to "1". This is stored by setting it to 1 ". These two flags are also used in the prize ball start processing (FIG. 29), the ejection error circuit processing (FIG. 37), etc., which will be described later in detail.

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

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

【0097】ステップS7422では排出2エラー解除
フラグが“1”であるか否かが判別される。この場合
(センサ2の出力信号がロウレベルからハイレベルに変
化した直後)判別結果は“No”となり、続くステップ
S7424にて排出2エラー監視フラグが“1”である
か否かが判別される。今回ループではこの判別結果も
“No”となるので、ステップS7426で排出2エラ
ー監視フラグを“1”に設定し、続くステップS742
8で排出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 the sensor 2 changes from the low level to the high level), the determination result is “No”, and in a succeeding step S7424, it is determined whether or not the discharge 2 error monitoring flag is “1”. In the current loop, this determination result is also “No”, so the emission 2 error monitoring flag is set to “1” in step S7426, and the subsequent step S742
At 8, the discharge 2 error timer is set to the second predetermined period (2 sec).
Is set and the routine ends.

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

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

【0100】又、ステップS7422以降の処理に関し
ても、排出センサ2の出力信号がハイレベルである限り
ステップS7422,S7424,S7430が繰返し
実行され、ステップS7430の判別結果が“No”か
ら“Yes”に転じたとき(上記第2の所定期間経過直
後)、ステップS7432にて前述した排出2エラー解
除フラグが“1”に設定され、以後ステップS740
0,S7410,S7422(排出2エラー解除フラグ
が“1”のときには、当然に、排出センサ2球有フラグ
は“1”となっている)が繰返し実行される。そして、
排出センサ2の出力信号が一度でもロウレベルに変化し
たときは、ステップS7402〜S7408にて各フラ
グが“0”にリセットされるため、その直後にハイレベ
ルに戻っても再びステップS7410以降の処理が初め
から開始されることになる。
Also in 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 the high level, and the determination result of step S7430 changes from "No" to "Yes". At the time of switching (immediately after the lapse of the second predetermined period), the above-described discharge 2 error release flag is set to “1” in step S7432, and thereafter, step S740 is performed.
0, S7410, and S7422 (when the discharge 2 error release flag is "1", the discharge sensor 2 ball presence flag is of course "1") is repeatedly executed. And
When the output signal of the discharge sensor 2 has once changed to the low level, the flags are reset to “0” in steps S7402 to S7408. Therefore, even if the flag returns to the high level immediately after that, the processing after step S7410 is performed again. It will be started from the beginning.

【0101】図21は、図13の割込処理のステップS
52にて行なわれる球抜センサ750の入力処理ルーチ
ンのフローチャートである。球抜センサ750は、前述
したように、遊技店の係員が球抜処理を開始するための
操作、即ち、パチンコ遊技機100前面に設けられた
作孔(図示省略)に球抜き棒を挿入する操作が為された
ことを検知するためもので、球抜き棒の挿入を検知した
とき該センサ750の出力信号はハイレベルとなり、検
知していないときには出力信号がロウレベルに保持され
るように構成されている。ところで、本フローでは該セ
ンサ750からの出力信号がロウレベルからハイレベル
に変化したとき、後述する球抜フラグを“1”に設定し
て、遊技店の係員による球抜処理が行われたと判断する
ようになっている。そして、賞球排出制御装置は、この
“1”に設定された球抜フラグによって後述の球抜処理
(図40〜第42)を開始するようになっている(メイ
ンルーチンのステップS16)。
FIG. 21 is a flowchart showing step S of the interrupt process shown in FIG.
It is a flowchart of the input processing routine of the ball removal sensor 750 performed in 52. The ball removal sensor 750 is, as described above, an operation for the staff of the game store to start the ball removal process, that is, an operation provided on the front of the pachinko gaming machine 100.
This is for detecting that an operation of inserting a ball-extraction rod into a hole (not shown) is performed. When the insertion of the ball-extraction rod is detected, the output signal of the sensor 750 becomes a high level and is not detected. Sometimes, the output signal is held at a low level. By the way, in this flow, when the output signal from the sensor 750 changes from the low level to the high level, a ball pulling flag described later is set to “1”, and it is determined that the ball pulling process has been performed by a game store attendant. It has become. Then, the prize ball discharge control device starts the ball removal process (FIGS. 40 to 42) to be described later by the ball removal 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)であったことを記憶するためのフラグであ
る。
When this routine is started, it is first determined in step S5300 whether or not the above-mentioned processing number is "0". In the main routine (FIG. 12), when the processing number is not set to “0”, such as when the prize ball (ball lending) discharge start processing and the prize ball (ball lending) discharge processing are performed (at this time, Step S5300
(No in step S5303), without going 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). ), End this routine. Here, the ball-excluding sensor change flag is a flag for storing that the output signal of the sensor 750 has changed from low level (L) to high level (H) in this loop (set to “1” at this time). And the ball removal sensor L
The level flag is a flag for storing that the output signal of the sensor was low level (L) in the current loop.

【0103】上述のステップS5300の判別を行なう
ことによって、遊技店の係員が球抜操作を行った場合で
あっても、賞品球の排出処理等の実行時には、後述の球
抜処理(図40〜第42)が禁止されるようになる。今
仮りに、賞品球の排出処理等が行われていない場合(処
理NO=“0”)で、遊技機100の操作孔に球抜き棒
が差し込まれていない状態から、遊技店の係員によって
球抜き棒が差し込まれた状態に変化する場合を考える。
賞品球の排出処理が行われていないときには前記ステッ
プS5300の判別結果は“Yes”となり、続くステ
ップS5303にて球抜センサ変化フラグが“1”であ
るか否かが、さらにステップS5304にて球抜センサ
Lレベルフラグが“1”であるか否かが判別される。
By performing the above-described determination in step S5300, even when the game shop staff performs the ball-pulling operation, the ball-pulling processing described later (FIGS. No. 42) is prohibited. Now, if the prize ball is not discharged (process NO = “0”), and the ball is not inserted into the operation hole of the gaming machine 100 , the ball at the game store is changed by a staff at the game store. Let us consider a case where the state changes to a state where the punching bar is inserted.
When the prize ball discharging process is not performed, the determination result of the step S5300 is “Yes”, and in a succeeding step S5303, 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の判別結果は“Ye
s”となり、ステップS5308に進んで球抜センサL
レベルフラグを“1”に設定して本ルーチンを終了す
る。
As described above, all the determination flags are set to "0" in the main routine (step S2 in FIG. 12) immediately after the power in the winning ball discharge control device 600 is turned on.
, And the processing N even after the initialization is performed.
When O is other than "0", steps S5301, S5
Since it is set to “0” in 302, the above-described step S5
The determination results of 303 and S5304 are both "No", and it is determined in step S5306 whether or not the output signal of the ball-absorbing sensor is at the L level (ball-absorbing sensor output = "0"). In a state where the ball-pull-out rod is not inserted into the operation hole 261, the output signal of the sensor 750 remains at the L level, and therefore, the determination result of the step S 5306 is “Ye”.
s ", the flow proceeds to step S5308, and the ball removal sensor L
The level flag is set to “1” and the routine ends.

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

【0106】この状態から操作孔に球抜き棒が挿入され
球抜センサの出力信号がLレベルからHレベルに変化す
ると、前記ステップS5310の判別結果が“Yes”
となり、続くステップS5312にて今回ループで球抜
センサ750の出力信号がロウレベルからハイレベルと
なったことを記憶すべく、球抜センサ変化フラグを
“1”に設定し、次いでステップS5314にて球抜セ
ンサLレベルフラグを“0”にリセットして、本ルーチ
ンを終了する。前回ループに続いて今回ループでも出力
信号がHレベルのときには、直前のループの前記ステッ
プS5312の実行により球抜センサ変化フラグが
“1”に設定されたのでステップS5303の判別結果
が“Yes”となり、ステップS5316に進んで、今
回ループでの球抜センサの出力信号がハイレベル(球抜
センサ出力=“1”)であるか否かが判別される。この
判別結果が“Yes”即ち、前回ループに続いて今回ル
ープでも出力信号がハイレベルのときには、続くステッ
プS5318にて球抜フラグを“1”に設定し、更にス
テップS5320にて前記球抜センサ変化フラグを
“0”にリセットして本ルーチンを終了する。
In this state, when the ball-pulling rod is inserted into the operation hole and the output signal of the ball-pulling sensor changes from L level to H level, the result of the determination in step S5310 is "Yes".
In a succeeding step S5312, the ball removal sensor change flag is set to “1” in order to store that the output signal of the ball removal sensor 750 has changed from a low level to a high level in the current loop, and then the ball is removed in a step S5314. The sensor L level flag is reset to "0", and this routine ends. When the output signal is at the H level in the current loop following the previous loop, the ball extraction sensor change flag is set to “1” by the execution of the step S5312 in the immediately preceding loop, so that the determination result in the step S5303 is “Yes”. Proceeding to step S5316, it is determined whether or not the output signal of the ball-absorbing sensor in this loop is at a high level (ball-absorbing sensor output = "1"). If the determination result is "Yes", that is, if the output signal is at the high level in the current loop following the previous loop, the ball removal flag is set to "1" in the subsequent step S5318, and the ball removal sensor is set in step S5320. The 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”)を実行することなく、ステップS532
2にて球抜センサLレベルフラグを“1”に設定した後
前記ステップS5320を実行して、本ルーチンを終了
する。
In the subsequent loop, when the output signal of the ball-extraction sensor is still at the high level, the determination result in step S5303 changes to "No" (the ball-extraction sensor change flag is reset to "0"), and then in step S5304 , The determination result of step S5306 is both "No",
Thereafter, steps S5303, S5304, and S5306 are repeatedly executed. On the other hand, in a loop immediately after the output signal of the ball-extraction sensor changes from low level to high level (immediately after execution of steps S5312 and S5314), when the output signal of the ball-extraction sensor changes to low level again, The determination result in S5316 is "No", and the step S532 (ball extraction flag = "1") is not executed, and the step S532 is executed.
After setting the ball-extraction sensor L level flag to "1" in step 2, the above-mentioned step S5320 is executed, and this routine ends.

【0108】このように球抜センサの出力信号がロウレ
ベルからハイレベルに変化したときに、少なくとも2回
の処理ループが実行される間に亘って前記出力信号がH
レベルを保持したときにのみ、球抜フラグを“1”に設
定するようにしているのでノイズ等が発生した場合に球
抜フラグが誤って“1”に設定されることがない。図2
2は、図13に示す割込処理のステップS54にて行な
われる補給センサ106の入力処理のサブルーチンを示
すフローチャートである。前述したように補給センサ1
06は、貯留タンク151内の遊技球(予備球)の不足
状態を検知するものであり、貯留された予備球が該タン
ク151内の補給センサ106の設置位置まで溜ってい
るときにロウレベル、そうでないときにハイレベルの信
号を出力するように構成されている。
As described above, when the output signal of the ball sensor changes from the low level to the high level, the output signal becomes H during at least two processing loops.
Only when the level is held, the ball-extraction flag is set to "1". Therefore, when noise or the like occurs, the ball-extraction flag is not erroneously set to "1". FIG.
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 described above, the replenishment sensor 1
06 serves to detect the insufficiency of the game balls in the storage tank 151 (spare bulb), pooled pre spheres said Tan
It is configured to output a low level signal when it is accumulated up to the position where the replenishment sensor 106 is installed in the housing 151 and a high level signal otherwise.

【0109】今仮りに、タンク151内のセンサ設置位
置まで予備球が充填されていない状態(不足状態)を考
える。この状態で賞球排出制御装置600に電源が投入
され、該ルーチンが開始されると、先ず、ステップS5
002にて該センサ106の出力信号がハイレベル(補
給センサ出力=“1”)であるか否かが判別される。こ
の場合、判別結果は“Yes”となってステップS50
04に進む。ところでCPU610の初期化直後はすべ
てのフラグが“0”に設定されているため、ステップS
5004〜S5010の判別結果はすべて“No”とな
り、ステップS5012にて、今回ループで補給センサ
の出力信号がハイレベルであったことを記憶すべく補給
Hレベルフラグを“1”に設定して本ルーチンを終了す
る。以後のループでは補給Hレベルフラグが“1”に設
定されているので、出力信号がハイレベルの状態が継続
する限りステップS5002,S5004,S500
6,S5008,S5010が繰返し実行されることに
なる。
Now, let us consider a case where the spare sphere is not filled up to the sensor installation position in the tank 151 (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, in step S5
At 002, it is determined whether or not the output signal of the sensor 106 is at a high level (supply sensor output = "1"). In this case, the determination result is “Yes” and the process proceeds to step S50.
Go to 04. By the way, immediately after the initialization of the CPU 610, since all the flags are set to “0”, the step S
All the determination results in steps 5004 to S5010 are "No", and in step S5012, the supply H level flag is set to "1" to store that the output signal of the supply sensor was high level in the current loop. End the routine. Since the supply H level flag is set to "1" in the subsequent loop, steps S5002, S5004, and S500 are performed as long as the output signal remains at the high level.
6, S5008, and S5010 are repeatedly executed.

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

【0111】次回ループで引き続き補給センサ106の
出力信号がロウレベルのときには、前回ループのステッ
プS5036で補給立下変化フラグが“1”に設定され
ているので、ステップS5030の判別結果が“Ye
s”に転じる。そして、続くステップS5040〜S5
046で、貯留タンク151内の補給センサ106設置
位置まで予備球が充填されていることを記憶すべく補給
センサ立下フラグを“1”に設定(ステップS504
0)すると共に、その値が“1”のときセンサ106の
設置位置に賞品球が無いことを示す補給センサ立上フラ
グ(初期化後初めて本ステップが実行されるときは
“0”に設定されている)を“0”に設定し(ステップ
S5042)、続いて前記補給立下変化フラグを“0”
にリセットする(ステップS5044)と共に、今回ル
ープでの補給センサ106の出力信号がロウレベルであ
ることを記憶すべく補給Lレベルフラグを“1”に設定
して(ステップS5046)本ルーチンを終了する。
When the output signal of the replenishment sensor 106 is continuously low in the next loop, since the replenishment fall change flag is set to "1" in step S5036 of the previous loop, the determination result of step S5030 is "Ye".
s ". Then, the following steps S5040 to S5
At 046, the replenishment sensor fall flag is set to “1” in order to store that the spare sphere has been filled to the position where the replenishment sensor 106 is installed in the storage tank 151 (step S504).
0) and a replenishment sensor start flag indicating that there is no prize ball at the installation position of the sensor 106 when the value is “1” (set to “0” when this step is executed for the first time after initialization). Is set to "0" (step S5042), and then the replenishment fall change flag is set to "0".
(Step S5044), the replenishment L level flag is set to "1" in order to store that the output signal of the replenishment sensor 106 in this loop is at the low level (step S5046), and this routine ends.

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

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

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

【0115】その後、賞品球の排出によってタンク15
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”に設定)し、本ルーチンを終了する。
Thereafter, the prize balls are discharged to the tank 15.
When the position of the replenishment sensor 106 in 1 is less than the installation position,
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. When step S5004 is performed for the first time, the supply L level flag is "1" and the other flags are all "0".
The determination results of step S5004 and the next step S5006 are both “No”, and the subsequent step S5008 is “Ye”.
s ", and the step S5014 is executed. In the step S5014, the replenishment is performed in order to store that the output signal of the replenishment sensor 106 has changed (rising) from the low level to the high level from the previous loop to the current loop. The rising change flag is set to "1", and the subsequent step S50
In step S5054, the previous step S5054
Resets the supply L level flag set to "1" (sets to "0"), and terminates this routine.

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

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

【0118】以上のように、補給センサ106の出力信
号が立上がった後ハイレベルの状態が所定時間以上(少
なくとも本割込処理が2回行なわれる間)検知されない
限り、補給立上フラグを“1”に設定する(貯留タンク
151内のセンサ106設置位置に賞品球が無くなった
ことを示す)処理は行なわれないようになっており、
給センサ106の出力信号にノイズが発生した場合等に
対処できるようになっている。このようにして“0”又
は“1”に設定される補給センサ立上フラグ及び補給セ
ンサ立下フラグはメイン処理ルーチン(図12)のステ
ップS23で実行される補給処理(図43)にて用いら
れる。
As described above, unless the high level state is detected for a predetermined period of time after the output signal of the replenishment sensor 106 has risen for at least a predetermined time (at least during the time when the main interrupt process is performed twice), the replenishment start flag is set to “ Set to 1 "( storage tank
) Treatment is shown that the prize ball runs out sensor 106 installed position within 151 is adapted not performed, complement
It is possible to cope with a case where noise occurs in the output signal of the supply sensor 106 or the like. The replenishment sensor rising flag and the replenishment sensor falling flag set to “0” or “1” in this manner are used in the replenishment process (FIG. 43) executed in step S23 of the main processing routine (FIG. 12). Can be

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

【0120】今仮りにオーバーフロー樋156内のオー
バーフロー検出器104の設置位置に賞品球が達してい
ない状態から、賞品球が排出されオーバーフロー樋15
内の検出器104の位置に達した状態に変化した場合
を考える。賞品球が検出器の位置に達していない状態で
はステップS5400の判別結果が“No”となる。本
ルーチン開始初期には判別フラグはすべて“0”にリセ
ットされている(図12のステップS2)ので、続くス
テップS5402の判別(オーバーフロー球無フラグが
“1”か)、及びステップS5404の判別(オーバー
フロー球無監視フラグが“1”か)の結果は共に“N
o”となり、オーバーフロー球無監視フラグを“1”に
設定し(ステップS5406)、オーバーフロー球有監
視フラグを“0”に設定し(ステップS5408)、更
にオーバーフロー球無タイマを所定値(2sec)にセ
ットして(ステップS5410)本ルーチンを終了す
る。
[0120] O in the overflow gutter 156 to now temporarily
The prize ball is discharged from the state where the prize ball has not reached the installation position of the bar flow detector 104 , and the overflow gutter 15
Consider the case where the change in the state reaching the position of the detector 104 in 6. If the prize ball has not reached the position of the detector, the determination result of step S5400 is “No”. Since the determination flags are all reset to “0” at the beginning of this routine (step S2 in FIG. 12), the determination in the following step S5402 (whether the overflow ball absence flag is “1”) and the determination in step S5404 ( If the overflow ball non-monitoring flag is “1”, the result is “N
o ", the overflow sphere no monitoring flag is set to" 1 "(step S5406), the overflow sphere presence monitoring flag is set to" 0 "(step S5408), and the overflow sphere no timer is set to a predetermined value (2 sec). This is set (step S5410), and this routine ends.

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

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

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

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

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

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

【0127】今仮りに誘導樋152の待機球検出器設置
位置まで予備球が貯留されていない状態から、予備球が
補給されて上記設置位置に達した場合を考える。予備球
が上記設置位置に達していない状態ではステップS52
00の判別結果は“No”となる。このとき判別フラグ
はすべて“0”にリセットされている(図12のステッ
プS2)ので、続くステップS5202の判別(半端球
無フラグが“1”か)、及びステップS5204の判別
(半端球無監視フラグが“1”か)の結果は共に“N
o”となり、半端球無監視フラグを“1”に設定し(
テップS5206)、半端球有監視フラグを“0”に設
定し(ステップS5208)、更に半端球無タイマを所
定値(2sec)にセットして(ステップS5210
本ルーチンを終了する。
Now, let us consider a case where a spare ball is supplied from the state where no spare ball is stored to the stand-by ball detector setting position of the guiding gutter 152 and reaches the above-described setting position. If the spare ball has not reached the installation position, step S52
The determination result of “ 00 ” is “No”. At this time, since the determination flags are all reset to "0" (step S2 in FIG. 12), the determination in the following step S5202 (whether the no- semisphere flag is "1") and the determination in step S5204 (no- semisphere no monitoring) Flag is “1”) are both “N”
o ", and sets the hemisphere no-monitoring flag to" 1 " .
( Step S5206 ), the odd-sphere presence monitoring flag is set to “0” ( step S5208 ), and the odd-sphere absence timer is set to a predetermined value (2 sec) ( step S5210 ).
This routine ends.

【0128】ここで半端球無監視フラグは予備球が上記
設置位置に達していない状態が検知されたか否かを判断
ステップS5204)するために用いられるフラグで
あり、一方半端球有監視フラグは、予備球が上記設置位
置まで溜っている状態が2回続けて検知されたか否かを
判断(ステップS5220)するために用いられるフラ
グである。次のループで引き続き、予備球が上記設置位
置まで溜っていないと、前記ステップS5200,S5
202の判別結果が共に“No”、続く前記ステップS
5204の判別結果が“Yes”となってステップS5
212が実行される。
Here, the half-sphere non-monitoring flag is a flag used to determine whether or not the state where the spare sphere has not reached the installation position is detected ( step S5204 ). This flag is used to determine whether or not the state in which the reserve sphere has accumulated to the installation position is detected twice consecutively ( step S5220 ). In the next loop, if the reserve sphere is not accumulated up to the installation position, the above-mentioned steps S5200, S5
Both the determination results of step 202 are “No” and the following step S
The determination result of 5204 becomes “Yes”, and step S5
Step 212 is executed.

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

【0130】以後のループで、予備球が上記設置位置ま
で溜らない限り、ステップS5200の判別結果が“N
o”、ステップS5202の判別結果が“Yes”とな
って、これらのステップが繰返し実行される。この状態
から貯留タンク151への遊技球の供給によって予備球
が誘導樋152の半端センサ160の設置位置まで溜る
ステップS5200の判別結果が“Yes”となる。
続くステップS5218で“1”であるか否かの判別が
なされる半端球有フラグはこの時点で未だ初期値“0”
に設定されているのでこの判別結果は“No”となり、
続くステップS5220の判別(半端球有監視フラグが
“1”か)の結果も、前述のステップS5208の実行
により“No”となり、ステップS5222に進む。
In the subsequent loop, as long as the spare sphere does not accumulate at the above-mentioned installation position, the determination result of step S5200 is “N”.
o ", the result of the determination in step S5202 is" Yes ", and these steps are repeatedly executed. When the position is accumulated , the determination result of step S5200 becomes “Yes”.
In the following step S5218 , the odd-sphere presence flag for which it is determined whether or not the flag is "1" is still the initial value "0" at this time.
, The result of this determination is “No”,
The results of the determination of the next step S5220 (odd ball chromatic monitoring flag is either "1"), "No" next by the execution of the aforementioned step S5208, the process proceeds to step S5222.

【0131】ステップS5222では半端球有監視フラ
グを“1”に設定すると共にステップS5224で、前
記半端球無監視フラグを“0”に設定し、更に半端球有
タイマを所定値(2sec)にセットして(ステップS
5226)本ルーチンを終了する。次のループで引き続
き、予備球が半端センサの設置位置まで溜っていると、
前記ステップS5200の判別結果が“Yes”、ステ
ップS5218の判別結果が“No”、続く前記ステッ
プS5220の判別結果が“Yes”(前回ループの
テップS5222で“1”に設定される)となってステ
ップS5228が実行される。
[0131] Set to Step S5224 and sets, in step S5222 the odd ball chromatic monitor flag "1", the odd ball set to "0" no monitoring flag, further odd ball chromatic timer a predetermined value (a time of 2 sec) ( Step S
5226 ) This routine ends. In the next loop, if the reserve sphere continues to accumulate to the position of the odd sensor,
Question of the step S5200 is "Yes", stearyl
If the determination result in step S5218 is "No,"
The answer to the question of the flop S5220 is "Yes" (previous loop scan
Stearate is to be set to "1" in step S5222)
Step S5228 is executed.

【0132】このステップS5228では更に、前記球
有タイマがタイムアップしたか否か、即ち、予備球が上
記設置位置まで溜っていると初めて判別された後(前述
ステップS5222〜S5226実行後)所定時間
(2sec)経過したか否かが判別され、判別結果が
“No”のときには、続くステップS5230,S52
32をスキップして本ルーチンを終了する。一方、判別
結果が“Yes”のとき、即ち予備球がセンサ取付位置
まで溜った後前記所定時間が経過したときには、ステッ
プS5230にて、予備球が半端センサ160の設置位
置まで溜っていることを示すべく半端球有フラグを
“1”に設定すると共に、次のステップS5232
て、半端球無フラグをリセット(“0”に設定)して本
ルーチンを終了する。
In this step S5228 , it is further determined whether or not the ball- existing timer has timed out, that is, after it is determined for the first time that the spare ball has accumulated to the above-mentioned installation position (after execution of the above-described steps S5222 to S5226 ). It is determined whether or not the time (2 sec) has elapsed. If the determination result is “No”, the subsequent steps S5230 and S52
This routine is ended by skipping 32 . On the other hand, when the determination result is “Yes”, that is, when the predetermined time has elapsed after the spare ball has accumulated at the sensor mounting position, the step is performed.
In step S5230 , the odd ball presence flag is set to “1” to indicate that the spare ball has accumulated to the position where the odd sensor 160 is set, and in the next step S5232 , the odd ball absence flag is reset (“ (Set to "0"), and this routine ends.

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

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

【0135】このようにして一旦アウトロウレベルフラ
グが“1”に設定されると、次のルーチンではステップ
S6004で“Yes”と判定されてステップS601
0へ移行し、アウトセンサ107からの信号がハイレベ
ル(“1”)か否か判定する。ここで、アウトセンサ1
07からの信号がハイレベルであれば、アウトセンサ変
化フラグを“1”に設定し、アウトロウレベルフラグを
“0”にクリアして終了する(ステップS6012,S
6014)。
Once the out-low level flag is set to "1" in this way, in the next routine, "Yes" is determined in step S6004, and step S601 is performed.
0, and determines whether the signal from the out sensor 107 is at a high level (“1”). Here, out sensor 1
If the signal from 07 is high level, the out sensor change flag is set to "1", the out low level flag is cleared to "0", and the process is terminated (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,S602
2)。その後、ステップS6002からS6004,S
6006と上記手順を繰り返してアウト玉数を計数して
行く。
Next, when the routine is started, step S
It is determined “Yes” in 6002 and step S6016
Then, it is determined whether or not the out-low level flag is "0". Normally, when the out sensor change flag is "1", the out low level flag is "0" (step S6).
012 and S6014), so it is determined as “Yes” and the process proceeds to step S6018. In step S6018, the signal from the out sensor 107 is at a high level ("1").
Is determined. Here, if the signal from the out sensor 107 is at a high level, the out sensor change flag is cleared to “0”, the out counter is incremented (+1), and the process ends (steps S6020, S602).
2). After that, steps S6002 to S6004, S
The above procedure is repeated with 6006 to count the number of out balls.

【0137】上記ルーチンはタイマ割込みで0.5m秒
ごとに繰り返されるため、ステップS6010において
0.5m秒以下のノイズを拾ってアウトセンサ変化フラ
グが“1”に設定されたような場合には、ステップS6
018で“No”と判定されるため、ステップS602
4へ移行してアウトロウレベルフラグを“1”に設定し
て終了する。すなわち、上記ルーチンでは、アウトセン
サの立上りエッジのみで信号を計数のではなく、立上り
エッジを検出しかつハイレベルを確認して始めてアウト
玉数をインクリメントしている。そのため、ノイズをセ
ンサ出力として誤計数するのが防止される。しかも、上
記ステップS6024でアウトロウレベルフラグが
“1”に設定されると、次のルーチンのときにステップ
S6016で“No”と判定されて、アウトセンサ変化
フラグが“0”にクリアされる(ステップS6026)
ため、ノイズによるアウトセンサ変化フラグの設定もキ
ャンセルされる。
Since the above-described routine is repeated every 0.5 ms by the timer interrupt, if noise of 0.5 ms or less is picked up and the out-sensor change flag is set to "1" in step S6010, Step S6
Since “No” is determined in 018, step S602
Then, the process proceeds to step S4, where the outlow level flag is set to "1" and the processing is terminated. That is, in the above routine, the number of out balls is incremented only after detecting the rising edge and confirming the high level, instead of counting the signal only at the rising edge of the out sensor. Therefore, erroneous counting of noise as a sensor output is prevented. Further, if the out-low level flag is set to "1" in step S6024, "No" is determined in step S6016 in the next routine, and the out-sensor change flag is cleared to "0" (step S6016). S6026)
Therefore, 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”に設定してルーチンを終了する(ステップS30
20)。上記割込み処理は極めて短時間に行なえるの
で、停電検出手段691からの割込み信号が入ってから
実際にパワーがなくなるまでの間に終了することができ
る。
In FIG. 26, in addition to the above-described interrupt processing, the number of power supply waveforms of the AC power supply is counted, and when the number of power supply waveforms becomes equal to or less than a predetermined number, the interruption is performed by an interrupt signal from a power failure detection means 691 for detecting occurrence of a power failure. An example of a specific procedure of the power failure interruption process is shown. In this interrupt routine, first, it is checked whether or not the discharging process is being performed. If the discharging process is not being performed, nothing is performed and the process ends (step S3002). If the discharge process is being performed, each discharge solenoid 7 of the two discharge paths is used.
After turning off 41a and 741b, discharge registers 1 and 2
The value of (see FIG. 31) is stored in the backed-up RAM (steps S3004-S3010). Then, it is determined whether the prize ball is being discharged or the ball is being discharged (step S).
3012) If the prize ball is being ejected, the number of prize balls not ejected is set to R
In the AM (step S3014), if the ball is being lent out, the data on the number of undischarged lending balls and the fact that the discharge to be interrupted is the ball lending discharge is stored in the RAM (step S301).
4, S3018). Then, the power failure flag assigned to the last backed up address in the RAM is set to "1", and the routine ends (step S30).
20). Since the interruption process can be performed in a very short time, the interruption process can be completed after the interruption signal from the power failure detection means 691 is input and before 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 illegality monitoring process S3 executed in the main process flow of FIG. 12 which is performed in parallel with the timer interrupt and the power failure interrupt process. In the monitoring process S3, first, one of the two discharge systems, the discharge solenoid 741a
Is turned on (step S1101), and "N
If "o", it is determined whether or not a rising flag indicating that the detection signal of the discharge sensor 730a has risen is "1" (step S1102). If "Yes", the discharge illegality monitoring counter 1 is incremented (step S1104).
This is because if there is a discharge ball even though the discharge solenoid is not turned on, this is detected as an illegal discharge.

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

【0141】上記ステップS1106で、排出不正監視
カウンタ1の値が「3」以上になったと判定したときは
ステップS1113へ移行して流路切換弁158の駆動
用ソレノイド(以下、玉抜ソレノイドと称する)をオン
させる。これによって、排出ソレノイドが不正に作動し
たときは排出された玉が供給皿120でなく玉抜路を通
ってパチンコ遊技店の回収樋へ誘導され、不当な利益を
与えないようにすることができる。玉抜ソレノイドをオ
ンさせた後は、不正排出があったことを示す排出不正フ
ラグに「1」を立ててから貸し玉排出表示ランプ113
および賞品球排出表示ランプ112を点滅させて不正状
態の発生を外部に表示させる(ステップS1114,S
1115,S1116)。
If it is determined in step S1106 that the value of the discharge irregularity monitoring counter 1 has become "3" or more, the flow advances to step S1113 to drive the solenoid for driving the flow path switching valve 158 (hereinafter, referred to as a ball ejection solenoid). ) Is turned on. Thus, when the discharge solenoid is operated improperly, the discharged balls are guided not to the supply tray 120 but to the collection gutter of the pachinko game store through the ball extraction path, so that it is possible to prevent unfair profit. . After turning on the ball ejection solenoid, a lending ball discharge indicator lamp 113 is set to “1” for a discharge fraud flag indicating that illegal discharge has occurred.
And the prize ball discharge display lamp 112 is blinked to display the occurrence of the unauthorized state to the outside (steps S1114 and S114).
1115, S1116).

【0142】上記ステップS1101で“No”と判定
されたときは、ステップS1104へ進み、他方の排出
系2について第1の排出系1に関する上記処理S110
1−S1106と同様の処理S1107−S1112
実行し、排出不正監視カウンタ2の値が「3」以上にな
ったと判定したときはステップS1113へ移行して玉
抜ソレノイドをオンさせる。図29には、排出装置不正
解除処理S14の具体的手順の一例が示されている。図
13のメインフローのステップS1114で排出不正フ
ラグが「1」にされ、図12のフローのステップS4で
“Yes”と判定されると、図32の排出装置不正解除
処理S14が開始される。この排出装置不正解除処理S
14では、まずステップS1121とS1122で図1
9,図20のルーチン中で設定される排出経路1と2の
エラー解除フラグが「1」か否か判定し、いずれのフラ
グも「1」のときはステップS1123で上記排出不正
フラグを「0」にクリアしてから、玉抜ソレノイド15
8をオフする(ステップS1124)。それから、排出
不正を示す点滅状態の貸し玉排出表示ランプ113と
品球排出表示ランプ112を消灯させて排出装置不正解
除処理が終了する(ステップS1125,S1126)
[0142] When it is determined "No" in step S1101, the process proceeds to step S1104, the processing for the first discharge system 1 for the other discharge system 2 S110
Steps S1107 to S1112 similar to 1-S1106 are executed, and if it is determined that the value of the discharge irregularity monitoring counter 2 is equal to or more than "3", the flow shifts to step S1113 to turn on the ball ejection solenoid. FIG. 29 shows an example of a specific procedure of the ejection device unauthorized release processing S14. In step S1114 of the main flow of FIG. 13, the discharge illegal flag is set to “1”, and when “Yes” is determined in step S4 of the flow of FIG. 12, the illegal discharge device release process S14 of FIG. 32 is started. This ejection device illegal release processing S
In FIG. 14, first in steps S1121 and S1122, FIG.
It is determined whether the error release flags of the discharge paths 1 and 2 set in the routine of FIG. 9 and FIG. 20 are “1”. ”, And then the ballless solenoid 15
8 is turned off (step S1124). Then, a blinking lending-ball discharge indicator lamp 113 indicating an illegal discharge and a prize
The product ball discharge display lamp 112 is turned off, and the discharge device illegal release process ends (steps S1125 and 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 starting process executed in step S19 of the main routine (FIG. 12) of the above-mentioned prize ball discharge control device. 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 "Yes" is determined in step S9. When this subroutine is started, first, a discharge sensor 1 ball presence flag and a discharge sensor 2 ball presence flag set in the discharge sensor level input processing routine of FIGS. 19 and 20, and an odd sensor input processing routine of FIG. The flag for the presence of an odd sensor is set, and the flag for no overflow is set in the overflow detector input processing routine of FIG. 23 (steps S81-S84). If any one flag is "0" , The discharge enable flag is cleared to "0", and the process is terminated (step S85). On the other hand, if all the flags are "1", the discharge enable flag is set to "1" (step S86), and the award ball data read in the award ball data detection processing routine of FIG. (Step S87). Also award
After turning on the product ball discharge indicator lamp 112 and setting the prize ball sound request flag to "1", the discharge start processing routine shown in FIG. 30 is executed, the process number is set to "2", and the processing is ended. (Steps S88-S91).

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

【0145】本ルーチンが開始されると、先ず、ステッ
プS102にて、排出レジスタ0の値が「1」に設定さ
れているか否か判定される。排出レジスタ0の値が
「1」でないときは、ステップS104で排出レジスタ
0の値が「8」以下であるか否かが判定される。これら
ステップS102およびS104判定の結果、排出レジ
スタ0の値が「1」のときにはステップS106へ移行
して1個排出フラグを“1”に設定し、交互排出フラグ
を“0”にクリアして(ステップS108)から1個排
出タイマをセット(S110)してステップS118
反転フラグの判定へ移行する。一方、前記ステップS1
04での判定の結果、排出レジスタ0の値が「8」以下
であると判定したときは、ステップS112へ移行して
1個排出フラグを“0”にクリアし、交互排出フラグを
“1”に設定(ステップS114)してからステップS
118の反転フラグの判定へ移行する。さらに、前記ス
テップS104での判定の結果、排出レジスタ0の値が
「8」以上であると判定したときには、ステップS12
4以降の処理を実行する。
When this routine is started, first, in step S102, it is determined whether or not the value of the discharge register 0 is set to "1". If the value of the discharge register 0 is not "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, when the value of the discharge register 0 is "1", the process proceeds to step S106, where the single discharge flag is set to "1", and the alternate discharge flag is cleared to "0" ( One is discharged from step S108).
The output timer is set (S110), and the process proceeds to the determination of the inversion flag in step S118 . On the other hand, step S1
As a result of the determination in step 04, when it is determined that the value of the discharge register 0 is equal to or less than "8", the process proceeds to step S112, where the single discharge flag is cleared to "0", and the alternate discharge flag is set. Is set to “1” (step S114), and then step S114
The process proceeds to the determination of the inversion flag of 118. Further, as a result of the determination in step S104, when it is determined that the value of the discharge register 0 is "8" or more , step S12
4 and subsequent processes are executed.

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

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

【0148】一方、賞球排出数が9以上のとき(前記ス
テップS104の判定結果が“No”のとき)には、併
用排出処理を行なうべくステップS124へ進む。この
併用排出処理では、先ず、ステップS124にて後述す
る排出数分割処理(図31)を行なった後、1個排出フ
ラグおよび交互排出フラグを“0”に設定し(ステップ
S126,S128)、後述の併用排出処理にて用いら
れる排出1終了フラグ,排出2終了フラグの値を“0”
にリセットする(ステップS130,ステップS13
2)と共に排出ソレノイド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 result of the determination in step S104 is "No"), the flow proceeds to step S124 to perform the combined discharge processing. In this combined discharge processing, first, a discharge number dividing process (FIG. 31) described later is performed in step S124, and then a single discharge flag and an alternate discharge flag are set to "0" (steps S126 and S128). The value of the discharge 1 end flag and the value of the discharge 2 end flag used in the combined discharge process
(Step S130, Step S13)
At the same time, the discharge solenoid 1 and the discharge solenoid 2 are both excited to start the combined discharge (step S134, step S136). Thereafter, in step S138, the discharge weight flag set to "1" when the discharge weight timer is started in the prize ball discharge processing (FIG. 32) described later is reset to "0".

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

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

【0151】前記ステップS151の判定結果が“Ye
s”のときにはステップS181にて排出レジスタ1の
値を「5」に設定すると共にステップS182にて排出
レジスタ2の値を「4」に設定して本ルーチンを終了す
る。以後、前記ステップS152の判定結果が“Ye
s”のときには排出レジスタ1,2の値を共に「5」に
設定し(ステップS183,ステップS184)、前記
ステップS153の判定結果が“Yes”のときには排
出レジスタ1の値を「6」に設定する(ステップS18
5)とともに排出レジスタ2の値を“5“に設定し(ス
テップS186)、前記ステップS154の判定結果が
“Yes”のときには排出レジスタ1,2の値を共に
「6」に設定する(ステップS187,ステップS18
8)。以下同様にして、排出レジスタ0の値が奇数のと
きには排出レジスタ1に排出レジスタ2よりも1つだけ
大きな値を設定し、排出レジスタ0の値が偶数のときに
は排出レジスタ1と排出レジスタ2に同じ値を設定す
る。
If the result of the determination in step S151 is "Ye
If 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 of step S152 is "Ye
s ", the values of the discharge registers 1 and 2 are both set to" 5 "(steps S183 and S184), and if the result of the determination in step S153 is" Yes ", the value of the discharge register 1 is set to" 6 ". Yes (Step S18)
5) the value of the discharge register 2 with set to "5" (step S186), the determination result in step S154 is when the "Yes" is set to both the value of the discharge registers 1 and 2 "6" (step S187 , Step S18
8). Similarly, when the value of the discharge register 0 is odd, the discharge register 1 is set to a value larger by one than the value of the discharge register 2, and when the value of the discharge register 0 is even, the same value is set for the discharge registers 1 and 2. Set the value.

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

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

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

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

【0156】一方、ステップS222の判別結果が“N
o”のときにはステップS224に進み、排出終了フラ
グが“1”であるか否かが判別される。この排出終了フ
ラグは、前述したように、1個排出(図34)、交互排
出処理(図35)又は併用排出処理(図36)によっ
て、1つの入賞球等に対応した所定数(賞球設定数)の
球の排出が完了したときにその値が“1”に設定される
ものである。このステップS222の判別結果が“N
o”であるうちは、ステップS226に進み、排出開始
処理の実行時(図30のステップS142)にセットさ
れた排出監視タイマがタイムアップしたか否か判定す
る。そして、“No”ならステップS228,S230
へ進んで、前述の排出開始処理(図30)にて設定され
る1個排出フラグおよび交互排出フラグを調べて、1個
排出フラグが“1”のときにはステップS232の1個
排出処理(図34参照)を、また、交互排出フラグが
“1”のときにはステップS234(図35参照)を、
さらに交互排出フラグが“0”のときにはステップS2
36の併用排出処理(図36)を実行する。
On the other hand, if the result of the determination in step S222 is "N
If "o", the process proceeds to step S224, where it is determined whether or not the discharge end flag is "1". This discharge end flag is, as described above, one discharge (FIG. 34) and alternate discharge processing (FIG. 34). 35) or when a predetermined number (a set number of prize balls) of balls corresponding to one winning ball or the like has been discharged by the combined discharge processing (FIG. 36), the value is set to "1". The determination result of step S222 is "N
If it is “o”, the process proceeds 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 expired, and if “No”, step S228. , S230
Then, the one-discharge flag and the alternate discharge flag set in the above-described discharge start processing (FIG. 30) are checked, and when the one-discharge flag is “1”, the one-discharge processing in step S232 (FIG. 34) Step S234 (see FIG. 35) when the alternate discharge flag is “1”.
Further, when the alternate discharge flag is "0", step S2 is executed.
36 is executed (FIG. 36).

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

【0158】この処理が開始されると、まず図30のス
テップS110でセットされる1個排出タイマがタイム
アップしたか否か判定し(ステップS262)、“N
o”なら何もせず、また“Yes”すなわち1個排出タ
イマに設定された時間が経過すると、ステップS264
へ移行して反転フラグが“1”か“0”か調べる。そし
て、反転フラグが“0”なら排出ソレノイド1をオフ
(ステップS266)、また反転フラグが“1”なら排
出ソレノイド2をオフ(ステップS268)して1個排
出を終了させてから、排出終了フラグを“1”に設定し
てルーチンを終了する(ステップS270)。
When this process is started, it is first determined whether or not the one-discharge timer set in step S110 in FIG. 30 has expired (step S262).
If it is “o”, nothing is performed, and if “Yes”, that is, the time set in the single discharge timer elapses, step S264 is performed.
Then, it is determined whether the inversion flag is "1" or "0". If the reversal flag is "0", the discharge solenoid 1 is turned off (step S266). If the reversal flag is "1", the discharge solenoid 2 is turned off (step S268) to finish discharging one piece. Is set to "1", and 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」になったか否かすなわち予め設
定された数の玉を排出したか否か判定し(ステップS2
80)、排出レジスタ0の値が「1」になったなら排出
ソレノイド1をオフさせ、かつ排出終了フラグを“1”
にセットしてルーチンを終了する(ステップS282,
S284)。
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 described above, this routine is a process performed when the number of prize balls to be discharged (the number of prize balls set) is equal to or less than "8". Is used to discharge prize balls. When this routine is started, first, in step S272, it is checked whether the inversion flag is “0” or “1”. Then, the inversion flag is “0”
In step S274, the flow advances to step S274 to determine whether the discharge sensor 1 rising flag is "1". This discharge 1
The value of the rising flag is set to “1” when the spare ball comes out of the discharge sensor 1. Accordingly, if this determination result is “No”, nothing is performed, and if “Yes”, the value of the discharge register 0 (the number of discharged balls) is subtracted by one, and then the rising flag of the discharge sensor 1 is cleared ( Steps S276 and S278). Next, it is determined whether or not the value of the discharge register 0 has become "1", that is, whether or not a predetermined number of balls have been discharged (step S2).
80) When the value of the discharge register 0 becomes "1", the discharge solenoid 1 is turned off, and the discharge end flag is set to "1".
And the routine ends (step S282,
S284).

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

【0161】このルーチンでは排出ソレノイド1または
2による排出を、排出レジスタ0の値が「1」になった
時点で終了させているのは、排出ソレノイドのオフタイ
ミングを調整するためである。つまり、本実施例では排
出センサの下流側にストッパが配置されているので、排
出レジスタ0の値が「0」になった時点で排出を終了さ
せると、実際には1つ余計に玉が排出されてしまうから
である。図36は上述した排出処理(図33)のステッ
プS236にて行われる併用排出処理のサブルーチンを
示すフローチャートである。前述したように本ルーチン
は排出される賞品球の数(賞球設定数)が「9」以上の
ときに行われる処理であり、本ルーチンでは上述した賞
球排出装置170の排出ソレノイド1と2を同時に作動
させて賞品球を排出するものである。
In this routine, the reason why the discharge by the discharge solenoid 1 or 2 is terminated when the value of the discharge register 0 becomes "1" is to adjust the OFF timing of the discharge solenoid. That is, in the present embodiment, since the stopper is disposed on the downstream side of the discharge sensor, if the discharge is stopped when the value of the discharge register 0 becomes “0”, one more ball is actually discharged. It is because it is 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 described above, this routine is a process performed when the number of prize balls to be discharged (prize ball set number) is "9" or more. In this routine, the discharge solenoids 1 and 2 of the above-described prize ball discharge device 170 are used. At the same time to discharge the prize balls.

【0162】本ルーチンが開始されると、先ず図30の
排出開始処理のステップS130でリセットされた排出
1終了フラグが“1”になったか否か判定する(ステッ
プS302)。排出開始直後は排出1終了フラグは
“0”であるため、“No”と判定されてステップS3
04へ進んで、排出センサ1立上りフラグが“1”であ
るか否かを判定する。この判定結果が“No”なら何も
せず、また“Yes”なら排出レジスタ1の値(排出玉
数)を1つだけ減算してから上記排出センサ1立上りフ
ラグをクリアする(ステップS306,S308)。次
に、上記排出レジスタ0の値が「1」になったか否かす
なわち予め設定された数の玉を排出したか否か判定し
(ステップS310)、排出レジスタ0の値が「1」に
なったなら排出ソレノイド1をオフさせ、かつ排出1終
了フラグを“1”にセットする(ステップS312,S
314)。
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 processing in FIG. 30 has become "1" (step S302). Immediately after the discharge is started, the discharge 1 end flag is “0”, so that “No” is determined and step S3 is performed.
Proceeding to 04, it is determined whether or not the discharge sensor 1 rising flag is "1". If the determination result is “No”, nothing is performed, and if “Yes”, the value of the discharge register 1 (the number of discharged balls) is subtracted by one, and then the discharge sensor 1 rising flag is cleared (steps S306 and S308). . Next, it is determined whether or not the value of the discharge register 0 has become "1", that is, whether or not a predetermined number of balls have been discharged (step S310), and the value of the discharge register 0 has become "1". If so, the discharge solenoid 1 is turned off, and the discharge 1 end flag is set to "1" (steps S312 and S3).
314).

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

【0164】図37は、上述した排出処理(図33)の
ステップS252にて行われる排出エラー回復処理のサ
ブルーチンを示すフローチャートである。このルーチン
が開始されると、まず図19の排出センサ1レベル入力
処理のステップS7232で設定される排出1エラー解
除フラグが“1”であるか否か、また図23の排出セン
サ2レベル入力処理のステップS7432で設定される
排出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-described ejection process (FIG. 33). When this routine is started, first, it is determined whether or not the discharge 1 error release flag set in step S7322 of the discharge sensor 1 level input processing of FIG. 19 is “1”, and the discharge sensor 2 level input processing of FIG. It is determined whether or not the discharge 2 error release flag set in step S7432 is “1” (steps S342 and S344). If both the determinations are “Yes”, step S34 is performed.
6 and below are performed. In steps S346-S352, steps S81-S in the winning ball start process of FIG.
In accordance with the same procedure as in the case of FIG. 86, the discharge sensor 1 ball present flag and the discharge sensor 2 ball present flag set in the discharge sensor level input processing routine of FIGS.
In addition, the odd sensor existence flag set in the odd sensor input processing routine of FIG. 23 and the overflow ball absence flag set in the overflow detector input processing routine of FIG. 23 are checked, and any one of the flags is "0". In this case, the dischargeable flag is cleared to "0" and the process is terminated (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 "1", the discharge enable flag is set to "1" (step S356), and in the next step S358, the discharge enable flag becomes "1". It is checked whether it is "1", and if it is "1", it is determined in steps S360 and S362 whether the values of the discharge register 1 and the discharge register 2 respectively exceed "1",
When the value of the discharge register 1 is "1" or less, the value of the discharge register 2 is used. When the value of the discharge register 2 is "1" or less, the value of the discharge register 1 is used. 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 of FIG. 30 is performed (step S378).

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

【0167】上記ステップS360で排出レジスタ1の
値が「1」以下のときはステップS364で排出レジス
タ2の値を排出レジスタ0に設定しているのは、排出レ
ジスタの値が「1」ということは排出終了を意味してお
り、それにもかかわらず本ルーチンのエラー回復処理に
入ってきたのは排出レジスタ2に未排出の玉数が残って
いると推定できるからである。同様に、ステップS36
2で排出レジスタ2の値が「1」以下のときはステップ
S366で排出レジスタ1の値を排出レジスタ0に設定
しているのは、排出レジスタ2に未排出の玉数が残って
いると推定できるからである。
If the value of the discharge register 1 is equal to or 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". Means that the ejection has been completed, and the reason why the error recovery processing of this routine is started is that it can be estimated that the number of undischarged balls remains in the ejection register 2. Similarly, step S36
If the value of the discharge register 2 is equal to or smaller than "1" in step S2, the value of the discharge register 1 is set in the discharge register 0 in step S366 because the number of undischarged balls remains in the discharge register 2. Because you can.

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

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

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

【0171】本ルーチンは、上記サブルーチン(図3
8)のステップ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をスキップして、本ルーチンを終了す
る。
This routine is based on the above subroutine (FIG. 3)
The process number is set to "3" in step S424 of 8), and the process is started when the process number is determined to be "3" in step S7 of the main routine (FIG. 12). It is determined whether the flag is “1”. This discharge weight flag is set to “1” when a predetermined number of lending balls corresponding to one ball lending request signal have been discharged and a later-described wait timer is activated (step S440),
This is reset to "0" in step S138 of the above-described discharge start processing (FIG. 30). Therefore, the determination result of step S432 becomes "Yes" only after the discharge of the predetermined number of lending balls corresponding to one lending request signal is completed. While the determination result of step S432 is “No”, the process proceeds to step S434, in which the loaned ball is discharged by the common prize ball discharging process (FIG. 33) and thereafter, the process proceeds to step S436. This step S436
Then, it is determined whether or not the discharge end flag is "1". This discharge end flag is set to one by the combined discharge processing shown in FIG. 36 (one discharge and alternate discharge processing are not performed in principle in the lending ball discharge) shown in FIG. 36 performed during the discharge processing routine (FIG. 33). When a predetermined number of balls corresponding to the ball lending request signal have been discharged, the value is set to "1". Therefore, when the determination result is “No”, the subsequent steps S438 to S446 are skipped, and the present routine ends.

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

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

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

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

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

【0177】ここで、本球抜処理ルーチンが初めて行わ
れた場合を考える。この場合には前記ステップS60
4,S606の判定結果は共に“No”となってステッ
プS608に進み、1回目の球抜スイッチの押圧(球抜
処理を開始させるための押圧)によって“1”にセット
された球抜フラグを“0”にリセットする。次のステッ
プS609,S610では第1及び第2の排出手段によ
る球抜処理が終了したことを記憶するために用いられる
排出1終了フラグ,排出2終了フラグを“0”にリセッ
トしておく。これら排出1終了フラグ,排出2終了フラ
グは前述の併用排出処理にて用いられたものがそのまま
転用でき、2つのフラグは後述のステップS628,S
646等の判定に用いられる。更に次のステップS61
1では球抜開始タイマがセット/スタートされる。この
球抜開始タイマは、実際に排出ソレノイド1,2を励磁
(ON)する前に、球抜装置の切換弁158を予め切換
えておくのに十分な所定のアイドルタイムを設けるため
のものである。
Here, consider the case where the main ball removal processing routine is performed for the first time. In this case, step S60
4, the determination results in S606 are both "No", and the process proceeds to step S608. Reset to "0". In the next steps S609 and S610, the discharge 1 end flag and the discharge 2 end flag used to store the fact that the ball discharging process by the first and second discharging means is completed are set to "0". Reset it. The discharge 1 end flag and the discharge 2 end flag used in the above-described combined discharge processing can be diverted as they are, and the two flags are determined in steps S628 and S described later.
646 and the like. Further next step S61
At 1, the ball start timer is set / started. This ball removal start timer is for providing a predetermined idle time sufficient to switch the switching valve 158 of the ball removal device in advance before the discharge solenoids 1 and 2 are actually excited (ON). .

【0178】次のステップS612では前記切換弁15
を切換るべく球抜ソレノイドが励磁(ON)され、続
いて前記球抜開始フラグが“1”に設定される(ステッ
プS614)。続くステップS616では上記ステップ
S602〜S614の実行中に球抜フラグが再び“1”
に設定されたか否か、即ち再度球抜スイッチが押された
か否か(2度押されたか否か)が判定される。この判定
結果が“Yes”のときにはステップS692〜S69
8を実行した後、球抜処理を強制的に終了させるべくス
テップS700以降の強制終了処理に進む。
In the next step S612, the switching valve 15
In step S614, the ball- extraction solenoid is excited (ON) so as to switch to No. 8 , and then the ball- extraction start flag is set to "1". In the following step S616, the ball-extraction flag is set to "1" again during the execution of steps S602 to S614.
, That is, whether or not the ball release switch has been pressed again (whether or not the switch has been pressed twice). If the result of this determination is "Yes", steps S692-S69
After the execution of step 8, the process proceeds to the forced termination process in step S700 and subsequent steps to forcibly terminate the ball removal process.

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

【0180】一方、この判定結果が“No”のときに
は、前記ステップS611でスタートさせた球抜開始タ
イマがタイムアップしたか否かが判定される。未だ球抜
開始タイマがタイムアップしないときには(判定結果が
“No”)、以後の処理を行うことなくそのまま本ルー
チンを終了する。次回以降のループでは前記タイマがタ
イムアップするまでステップS602〜S606,S6
16,S618のみが繰返し実行されることになる。前
記タイマがタイムアップしてステップS618の判定結
果が“Yes”に転じると、ステップS620,S62
2において夫々排出ソレノイド1,2が励磁(ON)さ
れて賞品球の流出が開始され、前述の球抜実行フラグが
“1”に設定される(ステップS624)。
On the other hand, when the result of this determination is "No", it is determined whether or not the ball start start timer started in step S611 has timed out. If the ball start start timer has not yet timed out (the determination result is “No”), the routine ends without performing the subsequent processing. In the next and subsequent loops, steps S602 to S606 and S6 are performed until the timer expires.
16, only S618 is repeatedly executed. When the timer times out and the determination result of step S618 turns to “Yes”, steps S620, S62
At 2, the discharge solenoids 1 and 2 are excited (ON), respectively, to start the flow of the prize ball, and the above-mentioned ball removal 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以降の強制終了処理に進
む。
As described above, once the discharge solenoids 1 and 2 are excited (ON) and the ball removal execution flag is set to "1", in the next and subsequent loops, the aforementioned step S604 is performed.
Is "Yes", and steps S606 to S606
24 will be skipped. In the next step S626, it is again determined whether or not the ball removal flag is "1", that is, whether or not the ball removal switch has been pressed twice to forcibly end the ball removal process. If the result of this determination is “Yes”, then steps S684 to S684
690, the steps S692 to S698,
Further, the process proceeds to the forcible termination process after step S700 described later.

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

【0183】ステップS688では更に排出2終了フラ
グが“1”であるか否かが判定され、この判定結果“Y
es”、即ちこの時点で球排出装置170の第2排出ソ
レノイド側の賞品球の流出がすべて完了しているときに
は(該フラグは第2排出ソレノイド側の賞品球の流出が
すべて完了したとき後述のステップS660でその値が
“1”に設定される)ステップS690に進んで排出ソ
レノイド2を消磁(OFF)し、その後ステップS69
2に進み、一方、判定結果が“No”のときはステップ
S690をスキップしてステップS692以降に進む。
In step S688, it is further determined whether or not the discharge 2 end flag is "1".
es ", that is, when all the prize balls on the second discharge solenoid side of the ball discharge device 170 have been flown out at this time (the flag is set when the flow of all the prize balls on the second discharge solenoid side is completed). (The value is set to "1" in step S660.) The process proceeds to step S690 to demagnetize (OFF) the discharge solenoid 2 and then to step S69.
The process advances to step S692 while skipping step S690 if the determination result is "No".

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

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

【0186】この状態から球抜処理によって第1の案内
内(センサ1内)に賞品球がなくなると、ステップS
632の判定結果が“Yes”に転じ、上記排出1球無
フラグが“1”に設定され(ステップS634)、次い
でセンサ1内に賞品球がなくなった時点からの時間経過
を計測する排出1球無タイマがセットされて(ステップ
S636)ステップS646以降に進む。その以降のル
ープでは前記ステップS630の判定結果は“Yes”
に転じ、ステップS638にて再度排出センサ1の出力
レベルがロウレベル(“0”)であるか否かが判定され
る。
[0186] The first guide depending from the state to the ball disconnect processing
When there is no prize ball in the gutter (in the sensor 1), step S
The determination result of step 632 changes to “Yes”, the above-described one-ball-discharge-no-ball flag is set to “1” (step S634), and then the one-ball discharge for measuring the time elapsed from the time when there is no prize ball in the sensor 1. The no-timer is set (step S636), and the process proceeds to step S646 and subsequent steps. In the subsequent loop, the determination result of step S630 is “Yes”
Then, in step S638, it is determined again whether the output level of the discharge sensor 1 is at the low level ("0").

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

【0188】排出センサ1の出力レベルがロウレベルを
保持したまま上記所定時間が経過すると、ステップS6
40の判定結果が“Yes”に転じて排出1終了フラグ
が“1”に設定され(ステップS642)、更に排出1
球無フラグが“0”にリセットされて(ステップS64
4)、ステップS646以降に進む。このように、一旦
排出1終了フラグが“1”に設定されると次回以降のル
ープにおいては前記ステップS628の判定結果が“Y
es”となり、前記ステップS630〜S644をスキ
ップして、直接ステップS646以降に進むこととな
る。
When the above-mentioned predetermined time has elapsed while the output level of the discharge sensor 1 is maintained at the low level, the process proceeds to step S6.
The determination result of 40 changes to "Yes", the discharge 1 end flag is set to "1" (step S642), and further the discharge 1
The no-ball flag is reset to "0" (step S64)
4) The process proceeds to step S646 and subsequent steps. As described above, once the discharge 1 end flag is set to “1”, the determination result of step S628 is “Y” in the next and subsequent loops.
es ", skipping steps S630 to S644 and proceeding directly to step 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 the output of the discharge sensor 1 once becomes a low level (at this time, the discharge one ball absence flag is "1"), before the discharge one ball absence timer times out, the discharge sensor 1 is restarted. When the output level of the discharge sensor 1 changes to a high level ("1"), step S63 is performed.
The determination result of No. 8 changes to "No", and the discharge 1 end 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 thereafter. As a result, when one prize ball passes through the discharge sensor 1 and falls until the next prize ball reaches the inside of the sensor 1, the output signal falls, or when noise is generated in the output signal of the sensor 1. When the waveform of the output signal temporarily falls, it is not erroneously determined that the flow of the prize ball in the guide gutter is completed.

【0190】次のステップS646では更に排出2終了
フラグが“1”であるか否かが判定される。この排出2
終了フラグは、本球抜処理が初めて実行されたときに前
述のステップS610にて“0”にリセットされるもの
であり、反対に球抜処理によって全ての賞品球が流出さ
れたときに後述のステップS660にて“1”に設定さ
れる。従って本球抜処理により賞球排出装置170の第
2排出ソレノイド側の賞品球の排出が未だ完了していな
いときには、該ステップS646の判定結果は“No”
となって、ステップS648以降の処理が実行される。
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-described step S610 when the main ball removal processing is executed for the first time, and will be described later when all the prize balls have flowed out by the ball removal processing. It is set to “1” in step S660. Accordingly, when the prize ball is not completely discharged from the second discharge solenoid side of the prize ball discharge device 170 by the main ball removal processing, the determination result in step S646 is “No”.
As a result, the processing from step S648 is executed.

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

【0192】従って、球抜開始後から排出センサ2内に
賞品球がなくなるまではこの判定結果は“No”となっ
て、ステップS650にて排出センサ2の出力がロウレ
ベル(“0”)であるか否かが判定される。球抜処理が
完了せず未だ排出センサ2内に賞品球が残っているとき
にはこの判定結果は“No”となり、そのままステップ
S664以降に進む。この状態から球抜処理によって
2の案内樋内(センサ2内)に賞品球がなくなると、ス
テップS650の判定結果が“Yes”に転じ、上記排
出2球無フラグが“1”に設定され(ステップS65
2)、次いでセンサ2内に賞品球がなくなった時点から
の時間経過を計測する排出2球無タイマがセットされて
(ステップS654)ステップS664以降に進む。
Therefore, the determination result is "No" until the prize ball is exhausted from the discharge sensor 2 after the start of removing the ball, and the output of the discharge sensor 2 is at low level ("0") in step S650. Is determined. When the prize ball remains in the ejection sensor 2 without completing the ball removal process, the determination result is “No”, and the process directly proceeds to step S664 and subsequent steps. The this state by the sphere disconnect process
When there is no prize ball in the guide gutter No. 2 (inside the sensor 2), the determination result in step S650 changes to "Yes", and the above-described two-ball discharge flag is set to "1" (step S65).
2) Then, a two-ball discharge no-timer for measuring the time elapsed from the point at which no prize ball is left in the sensor 2 is set (step S654), and the flow proceeds to step S664 and subsequent steps.

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

【0194】以後、上記所定時間が経過するまで、前記
ステップS648,S656の判定結果が共に“Ye
s”、ステップS658の判定結果が“No”という具
合に判定される。排出センサ2の出力レベルがロウレベ
ルを保持したまま上記所定時間が経過すると、ステップ
S658の判定結果が“Yes”に転じて排出2終了フ
ラグが“1”に設定され(ステップS660)、更に排
出2球無フラグが“0”にリセットされて(ステップS
662)、ステップS664以降に進む。このように、
一旦排出2終了フラグが“1”に設定されると次回以降
のループにおいては前記ステップS646の判定結果が
“Yes”となり、前記ステップS648〜S662を
スキップして、ステップS664以降に進むこととな
る。
Thereafter, until the predetermined time elapses, the determination results in steps S648 and S656 are both "Ye".
s "and the result of the determination in step S658 is" No. "When the above-described predetermined time has elapsed while the output level of the discharge sensor 2 is maintained at the low level, the result of the determination in step S658 changes to" Yes ". The discharge 2 end flag is set to “1” (step S660), and further, the discharge 2 no-ball flag is reset to “0” (step S660).
662), and proceeds to step S664 and subsequent steps. in this way,
Once the discharge 2 end flag is set to “1”, the determination result of step S646 is “Yes” in the next and subsequent loops, skipping steps S648 to S662, and proceeding 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 discharge sensor 2 once becomes low level (at this time, the discharge two-ball no-time flag is set to "1"), before the timer of the discharge two-ball no-timer expires, the routine is restarted. When the output level of the discharge sensor 2 changes to a high level ("1"), step S65 is performed.
The determination result of No. 6 changes to "No", and the discharge two-ball no flag is reset to "0" in the 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, when an output signal falls after one prize ball passes through the discharge sensor 2 until the next prize ball reaches the inside of the sensor 2 or when noise is generated in the output signal of the sensor 2 or the like. When the waveform of the output signal temporarily falls, it is not erroneously determined that the flow of the prize ball in the guide gutter is completed.

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

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

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

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

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

【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 decision result is "No", the steps S714 and S716 are skipped, and this routine ends. Thus, the forced termination process (step S
The start of the output signal of the discharge sensor 2 (a new prize ball has reached the inside of the sensor) is detected until a predetermined time elapses after the start of the processing after 700 and the discharge 2 end flag is once set to "1". In the next and subsequent loops, the determination result of step S710 becomes "Yes", and it is further determined whether or not the discharge 1 end flag is "1" (step S718). If the determination result is “No”, that is, at this time, the first discharge sensor 1 of the prize ball discharge device has not detected a new prize ball after the start of the forced termination process,
This routine ends as it is. In this case, the processes of steps S702 to S708 are continuously performed in the next and 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 result of the determination in step S718 is "Yes", that is, after the forced termination process has been executed, both the first and second ejection sensors 1 and 2 of the prize ball ejecting device cause a new prize ball to be obtained. When it is detected that the sensor has reached the inside of the sensors 1 and 2, the processing of step S724 and thereafter described later is performed.
In addition, while the processing of steps S702 to S718 is being executed, a predetermined time has elapsed and the forced termination timer times out, and the determination result of step S700 is “Yes”.
(At this time, the discharge 1 end flag and the discharge 2
One of the end flags is “0”), step S
In steps 720 and S722, the discharge solenoid 1 and the discharge solenoid 2 are forcibly demagnetized (OFF), respectively, and step S724 is performed.
Proceed to the following.

【0203】ステップS724では、前述の強制終了フ
ラグを“0”にリセットし、更にステップS726,S
728にて前記球抜実行フラグ及び球抜開始フラグを共
に“0”にリセットし、更に球抜ソレノイドの消磁(O
FF)を行なった後(ステップS734)、処理NOを
“0”にリセットして(ステップS736)、本ルーチ
ンを終了する。図43には、図12のメイン処理フロー
中のステップS23で行なわれる補給処理の具体的手順
の一例が示されている。
At step S724, the above-mentioned forced termination flag is reset to "0".
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.

【0204】この補給処理が開始されると、まず補給セ
ンサ106の検出信号を検出する補給センサ入力処理
(図22)中において設定される補給センサ立上りフラ
グを調べ(ステップS752)、“Yes”のときはス
テップS754へ進み、完了ランプ108を点灯させて
から、補給要求フラグを“1”にセット、補給センサ立
上りフラグを“0”にクリアして、このルーチンを終了
する(ステップS756,S758)。この補給フラグ
は、後述の遊技台情報出力処理(図48)において管理
装置700に対する補給信号Kをアサートさせるために
参照される。
When the replenishment process is started, 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). In step S754, the completion lamp 108 is turned on, the replenishment request flag is set to "1", the replenishment sensor rising flag is cleared to "0", and the routine ends (steps S756 and S758). . The replenishment flag is referred to in order to assert a replenishment signal K to the management device 700 in the game console information output process (FIG. 48) described later.

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

【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 process includes a lending ball information output process S800 for forming an output signal to the ball lending control device 500 and a sound for forming an output signal to the game board control device 400. Request output processing S8
50, a prize ball information output process S900 for forming an output signal to the hall management device 700, a gaming table information output process S950, and an error information output process S990. FIG. 45 shows an example of a specific procedure of the lending ball information output processing S800 in the information output processing flow.
When this routine is started, it is checked in step S802 whether a ball lending request flag is set. The ball lending request flag detects that the ball lending request signal T from the ball lending control device 500 has continuously been at the low level for 5 ms or more during the ball lending request detection processing routine shown in FIG. The flag is set at the time (step S4122).

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

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

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

【0210】そして、その後玉貸し排出が終了して玉貸
し排出処理ルーチン(図39)で払出終了フラグが
“1”にセットされると、本ルーチンのステップS80
8で“Yes”と判定されてステップS816へ移行
し、玉貸し制御装置500に対する払出完了信号Vおよ
びホールの管理装置700へ出力される排出貸し玉数信
号J(1パルスが最小変換単位の玉数を表す)をそれぞ
れロウレベルにアサートし、かつ払出完了タイマをセッ
ト(起動)させ、払出終了フラグを“0”にクリアして
から(ステップS816,S818,S820,S82
2)、上記ステップS810−S814と進んで引き続
き玉貸しレディ信号Uをロウレベルにアサートしてお
く。
Then, when the ball lending discharge is completed and the payout end flag is set to "1" in the ball lending discharge processing routine (FIG. 39), step S80 of this routine is performed.
8, the flow advances to step S816, and the payout completion signal V to the ball lending control device 500 and the discharged lending ball number signal J output to the hall management device 700 (balls whose pulse is the minimum conversion unit) Are respectively asserted to a low level, the payout completion timer is set (activated), and the payout end flag is cleared to "0" (steps S816, S818, S820, S82).
2), the process proceeds to steps S810 to S814 to continuously assert the ball lending ready signal U 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, "Yes" is determined in step S806, that is, it is determined that the payout completion signal V is at a low level, and the flow shifts to step S824, where the timer set in step S820 times out. It is determined whether or not. Here, if the timer has not yet timed up, the process directly proceeds to step S810. If the time has elapsed, the payout completion signal V and the number of discharged lending balls signal J are negated to a high level, respectively (step S826). , S828), and proceeds to steps S810-S814 to continuously assert the ball lending ready signal U to the low level.

【0212】上記処理によって上記払出完了信号Vがハ
イレベルにネゲートされると、玉貸し制御装置500が
それを検知して玉貸し要求信号をハイレベルにネゲート
してくるため、玉貸しリクエスト検出処理(図14)で
玉貸し要求信号Tがハイレベルに変化されたことが検出
されて玉貸し要求フラグがリセットされる。すると、再
び本ルーチンが実行されたときにステップS802で
“No”と判定されるため、ステップS804へ移行し
てP台レディフラグが“0”にクリアされる。また、払
出完了信号Vがハイレベルにネゲートされているため、
ステップS806では“No”と判定され、ステップS
808、S810と進み、ステップS810で“No”
すなわちP台レディフラグが“0”と判定される。その
結果、玉貸しレディ信号Uがハイレベルにネゲートされ
て終了する。
When the payout completion signal V is negated to the high level by the above processing, the ball lending control device 500 detects this and negates the ball lending request signal to the high level. In FIG. 14, it is detected that the ball lending request signal T has changed to a high level, and the ball lending request flag is reset. Then, when this routine is executed again, “No” is determined in step S802, and the process proceeds to step S804 to clear the P-unit ready flag to “0”. Also, since the payout completion signal V is negated to a high level,
In step S806, “No” is determined, and step S806
The process proceeds to 808 and S810, and “No” in step S810
That is, the P-unit ready flag is determined to be “0”. As a result, the ball lending ready signal U is negated to the high level, and the processing 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 processing S850 in the information output processing flow. When this routine is started, first, step S85
In step 2, it is checked whether or not the lending ball discharge sound generation request signal E to the game board control device 400 is asserted at a low level. I do. The ball lending sound request flag is set in the ball lending start processing routine (FIG. 3).
This flag is set in step S418 when lending is started by executing 8).

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

【0215】ステップS874で“Yes”と判定され
るとステップS876へ移行し、賞球排出音発生要求信
号Dをロウレベルにアサートしてから、賞球音タイマを
セットし、賞球音要求フラグを“0”にクリアして本ル
ーチンを終了する(ステップS878,S880)。そ
れから、再び本ルーチンが開始されたときに、ステップ
S852へ来ると、“Yes”すなわち貸し玉排出音発
生要求信号Eがロウレベルであると判定されてステップ
S862へ移行し、上記ステップS858でセットした
玉貸音タイマがタイムアップしたか否か判定する。そし
て、タイムアップしていなければそのままルーチンを終
了し、タイムアップしていれば貸し玉排出音発生要求信
号Eをハイレベルにネゲートしてルーチンを終了する
(ステップS864)。
If "Yes" is determined in the step S874, the process shifts to a step S876 to assert the prize ball discharge sound generation request signal D to a low level, set a prize ball sound timer, and set a prize ball sound request flag. It is cleared to "0" and this routine ends (steps S878, S880). Then, when the present routine is started again, when the process proceeds to step S852, it is determined that “Yes”, that is, the lending ball discharge sound generation request signal E is at the low level, the process proceeds to step S862, and the process proceeds to step S858. It is determined whether or not the ball lending timer has timed out. If the time is not up, the routine is terminated as it is. If the time is up, the lending 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 discharge sound generation request signal D is asserted to a low level in step S876, the present routine is started again, and when the routine proceeds to step S872, “Ye
s ", that is, it is determined that the prize ball discharge sound generation request signal D is at the low level, and the flow shifts to step S882 to determine whether or not the prize ball sound timer set in step S878 has timed out. If not, the routine is terminated as it is, and if the time is up, the prize ball discharge sound generation request signal D is negated to the high level and the routine is terminated (step S884). 9 shows an example of a specific procedure of the award ball information output processing S900 for the hole management device 700. The award ball information is output to the hole management device 700.

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

【0218】そして、読込み確定信号Hがロウレベルに
アサートされてから、再び本ルーチンが開始され、ステ
ップS902まで来ると“Yes”すなわち読込み確定
信号Hがロウレベルであると判定されて、ステップS9
12へ移行して上記ステップS908でセットした読込
み確定タイマがタイムアップしたか否か判定する。そし
て、タイムアップしていなければそのままルーチンを終
了し、タイムアップしていれば読込み確定信号Hをハイ
レベルにネゲートしてルーチンを終了する(ステップS
914)。
After the read confirmation signal H is asserted to the low level, this routine is started again. When the routine reaches step S902, "Yes", that is, it is determined that the read confirmation signal H is at the low level, and the process proceeds to step S9.
Then, the process proceeds to step S12, and it is determined whether the reading determination timer set in step S908 has timed out. If the time is not up, the routine is terminated as it is. If the time is up, the read confirmation signal H is negated to the 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 "No" in step S904, that is, if the read confirmation flag is determined to be "0", then step S904 is executed.
In step 920, it is determined whether the prize ball number signal I (representing 10 ejected balls in one pulse) to the game board control device 400 is asserted to a low level. Is set to “1”. The prize ball transmission prohibition flag is a flag set to prohibit the transmission of the prize ball signal I for a predetermined time when the prize ball number signal I is negated in step S932 described later.

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

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

【0222】このようにして、賞球送信禁止フラグが
“1”にセットされてから再び本ルーチンが開始される
と、ステップS922で“Yes”すなわち賞球送信禁
止フラグが“1”と判定されるため、ステップS940
へ移行して賞球数タイマ2がタイムアップしたか否か判
定する。そして、タイムアップしていなければそのまま
ルーチンを終了し、タイムアップしていれば賞球送信禁
止フラグを“0”にクリアしてルーチンを終了する(ス
テップS942)。これによって、賞球数10個毎に所
定のパルス幅(タイマ1の設定時間)の賞球数信号Iを
出力させることができ、また賞球数信号Iを1パルス出
力した後は一定時間信号の送信が禁止される。その結
果、多数のパチンコ遊技機からの賞球数信号を受信する
管理装置700が各パチンコ遊技機からの賞球数信号I
を確実に取り込むことができる。
When the present routine is started again after the prize-ball transmission prohibition flag is set to "1", it is determined in step S922 that "Yes", that is, the prize-ball transmission prohibition flag is "1". Therefore, step S940
Then, it is determined whether or not the award ball count timer 2 has timed out. If the time is not up, the routine is terminated as it is, and if the time is up, the award ball transmission prohibition flag is cleared to "0" and the routine is terminated (step S942). As a result, it is possible to output the prize ball number signal I having a predetermined pulse width (set time of the timer 1) every ten prize ball numbers. Transmission is prohibited. As a result, the management device 700, which receives the number-of-prize-ball signals from a number of pachinko game machines, sets the prize-ball number signal I from each of the pachinko game machines.
Can be reliably captured.

【0223】図48には、上記情報出力処理(図44)
フロー中における上記遊技台情報出力処理S950の具
体的手順の一例を示す。この遊技台情報もホールの管理
装置700に対して出力される。このルーチンが開始さ
れると、まずステップS952で補給要求フラグが
“1”にされているか否か判定する。上記補給要求フラ
グは、前述した補給センサ入力処理ルーチン(図22)
によって補給センサ106の入力が検知され、メインル
ーチン中の補給処理(図43)が実行されることによ
り、ステップS756でセットされるフラグである。こ
のステップS952で“No”と判定されると次のステ
ップS953で補給要求信号Kをハイレベルにネゲート
し、“Yes”と判定されるとステップS954へ移行
して補給要求信号Kをロウレベルにアサートしてから、
ステップS956へ移行する。
FIG. 48 shows the information output process (FIG. 44).
An example of a specific procedure of the gaming machine information output processing S950 in the flow is shown. This gaming table information is also output to the hall management device 700. When this routine is started, it is first determined in step S952 whether or not the supply request flag has been set to "1". The replenishment request flag is determined by the replenishment sensor input processing routine described above (FIG. 22).
When the input of the replenishment sensor 106 is detected by this and the replenishment process (FIG. 43) in the main routine is executed, the flag is set in step S756. If "No" is determined in this step S952, the replenishment request signal K is negated to the high level in the next step S953, and if "Yes" is determined, the process proceeds to step S954 to assert the replenishment request signal K to the low level. from to,
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 set by detecting a change in the signal from the frame sensor 103 in the frame sensor input processing routine (FIG. 16), and in the subsequent step S958, the frame sensor input processing routine (FIG. 16) 1
A frame stoppage flag set by 6) Examine each asserts the frame release signal if the frame release flag is "1" to low level, negates the frame occlusion signal if the frame closure flag is "1" to the high level ( The process moves from step S957, S959) to step S960. In step S960, the number of outs output to the game board control device 400
It is checked whether the signal L (one pulse represents ten out balls) is asserted at a low level. If the signal L is at a high level, the process proceeds to step S962, and the out transmission inhibition flag is set to "1".
It is determined whether or not it has been set. The out transmission inhibition flag indicates that the out number signal L is high in step S972 described later.
This flag is set when the level is negated.

【0225】ステップS962で“No”と判定される
とステップS964へ移行し、アウトカウンタ(図25
のアウトセンサ入力処理ルーチン中のステップS602
2で1球毎に更新される)の値が10個以上か否か判定
して9個以下ならそのままルーチンを終了し、10個以
上ならアウト数信号Iをロウレベルにアサートしてか
ら、アウトタイマ1をセットして本ルーチンを終了する
(ステップS966,S968)。アウト球10個に対
して所定のパルス幅のアウト数信号Lを1パルス出力さ
せるためである。
If "No" is determined in the step S962, the process shifts to the step S964, and the out counter (FIG. 25)
Step S602 in the out sensor input processing routine of
2 is updated for each ball). If the value is 10 or more, the routine is terminated if the value is 9 or less. If the value is 10 or more, the out-number signal I is asserted to low level, and then the 1 is set, and this routine ends (steps S966 and S968). This is for outputting one out-number signal L having a predetermined pulse width to ten out-balls.

【0226】それから、再び本ルーチンが開始されたと
きに、ステップS960まで来ると“Yes”すなわち
アウト数信号Lがロウレベルであると判定され、ステッ
プS970へ移行して上記ステップS968でセットし
たアウトタイマ1がタイムアップしたか否か判定する。
そして、タイムアップしていなければそのままルーチン
を終了し、タイムアップしていればステップS972で
アウト数信号Lをハイレベルにネゲートしてから、アウ
トカウンタの値を「10」だけ減算し、またアウト送信
禁止フラグを“1”にセットし、アウトタイマ2を起動
して本ルーチンを終了する(ステップS974,S97
6,S978)。
Then, when this routine is started again, when it reaches step S960, "Yes", that is, it is determined that the number-of-outs signal L is low level, and the routine goes to step S970 to set the out-timer set in step S968. It is determined whether 1 has timed out.
Then, ended as it routine unless the time is up, is subtracted from the negated out number signal L to high level at step S972 if the time-up, the value of the out counter by "10", also out The transmission prohibition flag is set to "1", the out timer 2 is started, and the present routine ends (steps S974 and S97).
6, S978).

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

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

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

【0230】ステップS1で停電フラグが“1”と判定
されたときに直ちに本停電回復処理を実行することをせ
ずに、ステップS13へ移行して一旦処理ナンバーを
“5“設定して停電が発生してることを記憶しておい
、ステップS5へ来たときに“Yes”と判定される
ことで停電回復処理を開始させているのは、ステップS
3の排出装置不正監視処理を先に実行させて排出不正が
ないことを確認してから、停電によって中断された排出
を再開させるためである。図50の停電回復処理が開始
されると、まず前記排出センサレベル入力処理ルーチン
(図19および図20)で設定される排出センサ1玉有
フラグおよび排出センサ2玉有フラグと、図27の半端
センサ入力処理ルーチンで設定される半端センサ玉有フ
ラグ、さらに図26のオーバーフロー検出器入力処理ル
ーチンで設定されるオーバーフロー玉無フラグを調べて
(ステップS1002−S1008)、いずれか一つの
フラグでも“0”になっている場合には排出可能フラグ
を“0”にクリアして終了する(ステップS101
0)。
When the power failure flag is determined to be "1" in step S1, the process proceeds to step S13 without immediately executing the power failure recovery processing, and the processing number is temporarily set to "5" to stop the power failure. Remember what happened
The reason why the power failure recovery process is started when it is determined to be “Yes” at step S5 is that at step S5
This is because the discharge device illegality monitoring process 3 is executed first to confirm that there is no discharge irregularity, and then the discharge interrupted by the power failure is restarted. When the power failure recovery process of FIG. 50 is started, first, a discharge sensor 1 ball presence flag and a discharge sensor 2 ball presence flag set in the discharge sensor level input processing routine (FIGS. 19 and 20), The incomplete sensor ball presence flag set in the sensor input processing routine and the overflow ball absence flag set in the overflow detector input processing routine of FIG. 26 are checked (steps S1002-S1008), and any one flag is set to “0”. If it is "", the dischargeable flag is cleared to "0" and the process is terminated (step S101).
0).

【0231】一方、すべてのフラグが“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 or the interrupted state is set. The save data such as a flag indicating that the discharged discharge is a ball lending discharge is returned to the original register or flag (step S1014). In the next step S1016, it is checked whether or not the discharge enable flag is "1". If "1", the process proceeds to step S1018.
In S1020, it is determined whether the values of the discharge register 1 and the discharge register 2 each exceed “1”, and when the value of the discharge register 1 is “1” or less, the value of the discharge register 2 is
When the value of the discharge register 2 is "1" or less, the value of the discharge register 1 is further increased.
If both values exceed "1", both values are set in the discharge register 0 (steps S1022 and S102).
4, S1026).

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

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

【0234】一方、ステップS1042以降の継続賞球
排出では、賞球排出表示ランプ112を点灯させてか
ら、図30に示されている排出開始処理と同一のルーチ
ンを実行して球排出装置170による排出を開始させる
(ステップS1044)。それから、賞球排出中であっ
たことの記憶を消去し、処理ナンバーを“2“に設定
(ステップS1046,S1048)した後、ステップ
S1050へ移行して停電フラグを“0”にクリアして
本ルーチンを終了する。処理ナンバーを“2“に設定す
るのは、上記ステップS1044で開始させた賞球排出
をメインルーチンの賞球排出処理S18で終了させるた
めである。次に、カードリーダ250に対する制御信号
や残高表示器122の駆動信号およびパチンコ遊技機に
設けられた玉貸し変換ボタン123からの信号によって
上記排出制御装置600に対する玉貸し要求信号等を形
成して出力する上記玉貸し制御装置500の制御手順を
図51ないし図60を参照して詳細に説明する。
On the other hand, in the continuous prize ball discharge after step S1042, the prize ball discharge display lamp 112 is turned on, and then the same routine as the discharge start process shown in FIG. The discharge is started (step S1044). Then, the memory that the prize ball is being discharged is erased, and the processing number is set to “2” (steps S1046 and S1048). End the routine. The process number is set to "2" in order to end the prize ball discharge started in step S1044 in the prize ball discharge process S18 of the main routine. Then, ball lending request signal for the control signal and the balance display 122 ball lending conversion button 123 thus <br/> the discharge control device 600 on the signal from that provided in the drive signal and the pachinko machines for the card reader 250 or the like The control procedure of the ball lending control device 500 for forming and outputting the above will be described in detail with reference to FIGS.

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

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

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

【0238】そして、カードリーダにカードが挿入さ
れ、カードリーダ制御装置250からカード金額が送信
されて玉貸し可能表示器126が点灯されると、ステッ
プS8108での判定が“Yes”となってステップS
8110へ進む。ステップS8110では、上記玉貸イ
ネーブル信号Uがハイレベルであるか確認して“Ye
s”なら次のステップS8112へ移行し、“No”な
らステップS8102へ戻る。上述したように、玉貸イ
ネーブル信号Uは玉貸し制御装置500から排出制御装
置600に対して玉貸要求信号Tを送ったことに対する
応答としてロウレベルに変化される信号であり、玉貸イ
ネーブル信号Uがロウレベルであるのは既に玉貸し排出
処理が開始されていると考えられるからである。
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 lending possible display 126 is turned on, the judgment in step S8108 becomes "Yes" and the step S
Proceed to 8110. In step S8110, it is determined whether or not the ball lending enable signal U is at a high level.
If "s", the process proceeds to the next step S8112, and if "No", the process returns to step S8102.As described above, the ball lending enable signal U sends the ball lending request signal T This signal is changed to low level in response to the transmission, and the ball lending enable signal U is at low level because it is considered that the ball lending discharge process has already been started.

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

【0240】上記ステップS8110で“Yes”すな
わち玉貸イネーブル信号Uがハイレベルであると確認す
ると、ステップS8112へ進み、残高記憶手段542
内のカード残高を調べて残高がゼロか否か判定する。こ
こで、“Yes”なら何もせずにステップS8102へ
戻り、“No”すなわち残高がゼロでないときはステッ
プS8116ないしS8122で玉貸し数設定手段50
6に設定されている値を調べる。そして、設定値が
「0」のときにはステップS8102へ戻って上記ステ
ップを繰り返す。通常は必ず玉貸し数設定手段506が
設定された状態で電源が投入される。
If "Yes" in step S8110, that is, it is confirmed that the ball lending enable signal U is at the high level, the flow advances to step S8112, where the balance storage means 542 is set.
The balance of the card in is checked to determine whether the balance is zero. Here, if “Yes”, the process returns to step S8102 without doing anything. If “No”, that is, if the balance is not zero, the ball lending number setting means 50 in steps S8116 to S8122.
Check the value set in 6. If the set value is “0”, the process returns to step S8102 and repeats the above steps. Usually, the power is turned on with the ball lending number setting means 506 always set.

【0241】そして、ステップS8116で500円分
の玉貸し数が設定されていると判定したときはステップ
S8124へ移行して、設定金額とカードの残金とを比
較して、カードの金額の方が多いか否か判定する。そし
て、カードの金額の方が多いときにのみ、ステップS8
130へ移行して払出回数レジスタを「5」にセット
し、カードの金額の方が少ないときにはステップS81
25へ進んで、カード残金が400円以上あるか否か判
定して“Yes”なら払出回数レジスタの値を「4」に
セットする(ステップS8131)。また、ステップS
8125で“No”すなわちカード残金が400円未満
であると判定されるかステップS8118で300円分
の玉貸し数が設定されていると判定されると、ステップ
S8126へ移行してカードの残金が300円以上か判
定し、“Yes”ならステップS8132へ移行して払
出回数レジスタを「3」にセットする。さらに、ステッ
プS8126で“No”すなわちカード残金が300円
未満であると判定されるかステップS8120で200
円分の玉貸し数が設定されていると判定されると、ステ
ップS8128へ移行してカードの残金が200円以上
か判定し、“Yes”ならステップS8134へ移行し
て払出回数レジスタを「2」にセットする。同様にし
て、ステップS8128で“No”すなわちカード残金
が200円未満であると判定されるかステップS812
2で100円分の玉貸し数が設定されていると判定され
ると、ステップS8136へ移行して払出回数レジスタ
を「1」にセットする。
If it is determined in step S8116 that the lending amount for 500 yen has been set, the flow shifts to step S8124 to compare the set amount with the remaining amount of the card, and determine that the card amount is higher. It is determined whether the number is large. Then, only when the amount of money of the card is larger, step S8
The process proceeds to 130, where the number-of-payouts register is set to "5", and if the amount of the card is smaller, step S81.
25, it is determined whether or not the balance of the card is 400 yen or more. If "Yes", the value of the number-of-payouts register is set to "4" (step S8131). Step S
If “No” is determined in 8125, that is, it is determined that the card balance is less than 400 yen, or if it is determined in step S8118 that the number of balls to be lent for 300 yen is set, the process proceeds to step S8126 and the balance of the card is reduced. It is determined whether it is 300 yen or more, and if “Yes”, the flow shifts to step S 8132 to set the payout number register to “3”. Further, in step S8126, it is determined whether "No", that is, the balance of the card is less than 300 yen, or 200 in step S8120.
If it is determined that the number of balls to be lent is set, the process proceeds to step S8128 to determine whether or not the balance of the card is 200 yen or more. If “Yes”, the process proceeds to step S8134 to set the payout number register to “2”. Set to Similarly, in step S8128 , it is determined whether "No", that is, the card balance is less than 200 yen, or step S812.
If it is determined in step 2 that the lending number for 100 yen has been set, the flow shifts to step S8136 to set the payout number register to "1".

【0242】これによって、玉貸し制御装置500の玉
貸排出回数が「2」(200円分)以上に設定されてい
てカードリーダに挿入されたカードの残高がその設定金
額以下であった場合にも、カードの残金をすべて貸し玉
に変換させることができ、カードに端数が残ったまま使
用できなくなるのを防止することができる。上記ステッ
プS8130ないしS8136で払出回数をセットした
後は、ステップS8138へ進み、玉貸し可能表示器1
26が消灯されているか否か調べ、点灯中であれば、ス
テップS8140で玉貸し中フラグを“1”にセットし
てから図53のステップS8142へ移行する。ただ
し、ステップS8138で玉貸し可能表示器126が消
灯されていると判定すると、図53のステップS819
6へ移行して磁気書込ファンクションとカード排出ファ
ンクションの送信予約(ステップS8198)をし、玉
貸中フラグをクリア(ステップS8188)してから、
最初のステップS8102へ戻る。変換ボタンを押した
後直ちに返却ボタンを押せば玉貸し排出処理が開始され
ないようにするためである。図56の返却処理では、玉
貸し可能表示器126が点灯しているときに返却ボタン
がオンされると、玉貸し可能表示器126を消灯させて
からカードをカードリーダより排出させる指令を与える
ようになっている。ステップS8130ないしS813
6でセットされた払出回数は、再びカードが挿入され上
記ステップへ移行してきたときに書き直される。
Thus, when the ball lending discharge number of the ball lending control device 500 is set to “2” (for 200 yen) or more and the balance of the card inserted into the card reader is less than the set amount. In addition, the remaining balance of the card can be converted into a lending ball, and it is possible to prevent the card from becoming unusable with a fraction remaining. After the number of payouts is set in steps S8130 to S8136, the flow advances to step S8138, and the ball lending possible display 1
It is checked whether or not 26 is turned off. If it is turned on, the ball lending flag is set to "1" in step S8140, and then the flow shifts to step S8142 in FIG. However, if it is determined in step S8138 that the ball lending possible display 126 is turned off, step S819 in FIG. 53 is performed.
Then, the process proceeds to step S6, the transmission reservation of the magnetic writing function and the card ejection function is made (step S8198), and the ball lending flag is cleared (step S8188).
It returns to the first step S8102. This is so that if the return button is pressed immediately after the conversion button is pressed, the ball lending and discharging process is not started. In the return process of FIG. 56, if the return button is turned on while the ball lending possible display 126 is lit, a command to turn off the ball lending possible display 126 and then eject the card from the card reader is given. It has become. Steps S8130 to S813
The payout number set in 6 is rewritten when the card is inserted again and the process proceeds to the above step.

【0243】図53のステップS8142へ移行した場
合には、排出制御装置600に対する玉貸要求信号Tを
ロウレベルにアサートしてから、玉貸イネーブル信号U
の応答待ちのPRQタイマ(3m秒)をセットする(ス
テップS8144)。それから、排出制御装置600か
らの玉貸イネーブル信号Uが立ち下がったか判定し、
“No”なら上記タイマがタイムアップしたか否か判定
する(ステップS8146,S8148)。ここで、P
RQタイマがタイムアップする前に玉貸イネーブル信号
Uが立ち下がると、玉貸し処理を保留すべくステップS
8192へジャンプして磁気書込ファンクションと受付
不可ファンクションの送信予約(ステップSS819
4)をしてから、ステップS8140でセットした玉貸
中フラグを“0”にクリア(ステップS8188)し、
最初のステップS8102へ戻る。排出制御装置600
では、玉貸要求信号Tが入ってから5m秒後に玉貸イネ
ーブル信号Uをロウレベルにアサートするようにしてい
るので、3m秒以内に玉貸イネーブル信号Uがロウレベ
ルに立ち下がるのは、排出制御装置600が貯留タンク
151内の玉不足または遊技盤の打止め状態が解除され
たのを検知した場合であると考えられるためである。上
記送信予約により図55のファンクション送受信処理が
実行される。ただし、この場合、磁気書込ファンクショ
ンコードとともにカードリーダに送られるカード残高デ
ータは読み込んだときのデータと同一である。
In the case where the flow proceeds to step S8142 in FIG. 53, the ball lending request signal T to the emission control device 600 is asserted to a low level, and then the ball lending enable signal U is asserted.
A PRQ timer (3 ms) waiting for the response is set (step S8144). Then, it is determined whether the ball lending enable signal U from the emission control device 600 has fallen,
If “No”, it is determined whether or not the timer has timed out (steps S8146, S8148). Where P
If the ball lending enable signal U falls before the RQ timer times out, step S is executed to suspend the ball lending process.
Jump to 8192 to reserve transmission of magnetic write function and unacceptable function (step SS819)
4) After that, the ball lending flag set in step S8140 is cleared to “0” (step S8188),
It returns to the first step S8102. Emission control device 600
Since the ball lending enable signal U is asserted to a low level 5 ms after the ball lending request signal T enters, the ball lending enable signal U falls to a low level within 3 msec. This is because 600 is considered to be a case where it is detected that the number of balls in the storage tank 151 is short or the hit state of the game board is released. The function transmission / reception processing of FIG. 55 is executed by the transmission reservation. However, in this case, the card balance data sent to the card reader together with the magnetic writing function code is the same as the data at the time of reading.

【0244】一方、ステップ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がロウレベルにならないのは、排出装置の側に異常が
あると考えられるためである。
On the other hand, if it is determined in step S8148 that the PRQ timer has expired before the ball lending enable signal U falls, the flow advances to step S8150 to display a ball lending possible display to inform that ball lump discharging processing has started. 126 is turned off. Then, set the PRQ timer to 3
Seconds are set (step S8152). It is determined whether or not the timer has expired, and if "No", it is determined whether or not the ball lending enable signal U is at a low level (steps S8154 and 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 writing function and the card ejection function (step S8198), and then in step S8140 The set ball lending flag is cleared to "0" (step S8188), and the first step S810 is executed.
Return to 2. The discharge control device 600 asserts the ball lending enable signal U to a low level 5 ms after the ball lending request signal T enters, so that 3 seconds or more have elapsed after the ball lending request signal T falls. The reason why the ball lending enable signal U does not become low level is that it is considered that there is an abnormality on the side of the discharging device.

【0245】ステップS8154でPRQタイマがタイ
ムアップする前に玉貸イネーブル信号Uがロウレベルに
なったと判定すると、ステップS8158へ進んで排出
タイマ(3秒)をセットする。それから、上記タイマが
タイムアップしたか判定し(ステップS8160)、
“No”ならステップS8162で返却ボタンがオンさ
れているか判定し、オンならステップS8130,S8
132,S8134でセットした払出回数を「1」に変
更(ステップS8164)してから、またオフならその
ままステップS8166へ移行して払出完了信号Vが立
ち上がったか否か判定する(ステップS8166)。通
常3秒あれば排出は終了するので、3秒経過しても払出
完了信号Vが立ち上がらないのは、排出装置の側に異常
があると考えられるためである。また、返却ボタンがオ
ンされている場合に払出回数を「1」に変更しているの
は、一旦変換ボタンを操作した後で誤操作に気がついた
り大当りが発生したような場合に返却ボタンを操作すれ
ば途中で玉貸し排出処理を中断させることができるよう
にするためである。ただし、既に処理が開始されている
ので、1回すなわち100円分の貸し玉の排出は実行さ
れるようにするため、払出回数を「0」でなく「1」に
変更するようにしている。
If it is determined in step S8154 that the ball lending enable signal U has become low before the PRQ timer times out, the flow advances to step S8158 to set a discharge timer (3 seconds). Then, it is determined whether the timer has expired (step S8160),
If “No”, it is determined in step S8162 whether the return button is turned on. If it is on, steps S8130, S8
After changing the number of payouts set in steps 132 and S8134 to “1” (step S8164), if the number of payouts is off, the process directly proceeds to step S8166 to determine whether the payout completion signal V has risen (step S8166). Usually, the discharge is completed in 3 seconds, and the payout completion signal V does not rise even after 3 seconds, because it is considered that there is an abnormality in the discharge device. Also, the reason why the number of payouts is changed to “1” when the return button is turned on is that once the conversion button is operated, if the user notices an erroneous operation or a big hit occurs, the user can operate the return button. This is to allow the ball lending discharge process to be interrupted halfway. However, since the processing has already been started, the number of payouts is changed from "0" to "1" in order to discharge the lending ball for one time, that is, 100 yen.

【0246】払出完了信号Vが立ち上がる前に上記排出
タイマがタイムアップすると、ステップS8196へジ
ャンプして磁気書込ファンクションと受付不可ファンク
ションの送信予約(ステップS8198)をしてから、
ステップS8140でセットした玉貸中フラグを“0”
にクリア(ステップS8188)し、最初のステップS
8102へ戻る。上記排出タイマがタイムアップする前
に払出完了信号Vが立ち上がると、ステップS8168
へ進み、カード残高(度数)および払出回数を「1」だ
け減らし、カード管理装置800に対する決済信号j
(パルス)の出力カウンタを「1」だけ増加させる(ス
テップS8170,S8172)。それから、ステップ
S8174へ進んで払出回数が「0」になったか否か判
定し、“No”なら上記ステップS8158へ戻って上
記手順を繰り返し、“Yes”すなわち払出回数が
「0」のときはステップS8176へ移行する。ステッ
プS8176では玉貸要求信号Tをハイレベルにネゲー
トしてから、次のステップでPRQタイマを3秒にセッ
トする(ステップS8178)。
If the discharge timer times out before the payout completion signal V rises, the flow jumps to step S8196 to reserve the transmission of the magnetic writing function and the unacceptable function (step S8198).
The ball lending flag set in step S8140 is set to “0”
Is cleared (step S8188), and the first step S
Return to 8102. If the payout completion signal V rises before the expiration timer expires, step S8168.
Then, the card balance (frequency) and the number of payouts are reduced by “1”, and the settlement signal j to the card management device 800 is set.
The (pulse) output counter is increased by "1" (steps S8170, S8172). Then, the process proceeds to step S8174 to determine whether or not the number of payouts has become “0”. If “No”, the process returns to step S8158 to repeat the above procedure. If “Yes”, that is, if the number of payouts is “0”, The process moves to S8176. In step S8176, the ball lending request signal T is negated to the high level, and in the next step, the PRQ timer is set to 3 seconds (step S8178).

【0247】それから、上記タイマがタイムアップした
か判定し、“No”なら上記玉貸イネーブル信号Uがハ
イレベルになっているか否か判定する(ステップS81
80,S8182)。ここで、玉貸イネーブル信号Uが
ハイレベルになる前にPRQタイマがタイムアップする
と、ステップS8196へジャンプして磁気書込ファン
クションとカード排出ファンクションの送信予約(ステ
ップS8198)をしてから、ステップS8140でセ
ットした玉貸中フラグを“0”にクリア(ステップS8
188)し、最初のステップS8102へ戻る。玉貸要
求信号Tを立ち上げてから3秒以上経過しても玉貸イネ
ーブル信号Uがハイレベルにならないのは、排出装置の
側に異常があると考えられるためである。
Then, it is determined whether or not the timer has timed out, 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, the ball lending enable signal U is
If the PRQ timer times out before the high level is reached, the process jumps to step S8196 to make a transmission reservation of the magnetic writing function and the card ejection function (step S8198), and then sets the ball lending flag set in step S8140 to “ 0 ”(Step S8
188), and returns to the first step S8102. The reason why the ball lending enable signal U does not become high even after 3 seconds or more has elapsed since the ball lending request signal T is activated is because it is considered that there is an abnormality in the discharging device.

【0248】ステップS8182でPRQタイマがタイ
ムアップする前に玉貸イネーブル信号Uがハイレベルに
なったと判定すると、ステップS8184へ進んでカー
ド残高が「0」か否か判定する。そして、カード残高が
「0」ならステップS8196へジャンプして磁気書込
ファンクションとカード排出ファンクションの送信予約
(ステップS8198)をしてから、ステップS814
0でセットした玉貸中フラグを“0”にクリア(ステッ
プS8188)し、最初のステップS8102へ戻る。
これによって、遊技中、カードをカードリーダ内に保持
させておいても、カード残高が「0」になると自動的に
カードがカードリーダより排出され、遊技者はカード残
高が「0」になったことを速やかに知ることができる。
また、磁気書込ファンクションの送信予約の際には、送
信バッファ内に書込みファンクションコードとともにカ
ード残高データをテキストとして入れておく。
If it is determined in step S8182 that the ball lending enable signal U has gone high before the PRQ timer times out, the flow advances to step S8184 to determine whether or not the card balance is "0". If the card balance is "0", the flow jumps to step S8196 to make a reservation for transmission of the magnetic writing function and the card ejection function (step S8198), and then to step S814.
The ball lending flag set at 0 is cleared to "0" (step S8188), and the process returns to the first step S8102.
Thereby, even if the card is held in the card reader during the game, when the card balance becomes "0", the card is automatically ejected from the card reader, and the card balance becomes "0" for the player. You can know that quickly.
When making a transmission reservation for the magnetic writing function, the card balance data is written as text along with the write function code in the transmission buffer.

【0249】一方、上記ステップS8184でカード残
高が「0」でないと判定すると、ステップS8186へ
進んで、玉貸排出処理が終了し次の玉貸し変換ボタンの
操作が可能であることを表示すべく玉貸可能表示器12
6を点灯させてからステップS8188へ進み、ステッ
プS8140でセットした玉貸中フラグをゼロにクリア
してから最初のステップS8102へ戻る。図54に
は、上記メインルーチン(図51)のステップS801
0で実行されるカードの返却処理の具体的手順の一例が
示されている。
On the other hand, if it is determined in step S8184 that the card balance is not "0", the flow advances to step S8186 to display that the ball lending discharge processing is completed and the next ball lending conversion button can be operated. Ball lending possible display 12
After turning on 6, the flow advances to step S8188 to clear the ball lending flag set in step S8140 to zero, and then returns to the first step S8102. FIG. 54 shows a step S801 of the main routine (FIG. 51).
An example of a specific procedure of the card return process executed at 0 is shown.

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

【0251】一方、玉貸可能表示器126が消灯されて
いるときに返却ボタンがオンされると、上記ステップS
8204からステップS8212へ移行して、玉貸処理
(図52)のステップS8140でセットされる玉貸中
フラグをチェックして玉貸処理中か否か判定する。そし
て、玉貸中でなければ何もせずステップS8202へ戻
る。玉貸可能表示器126が消灯されているのはカード
がカードリーダ内に保持されていないということである
ので、返却ボタンがオンされてもカードの返却をカード
リーダに指令する必要がないからである。
On the other hand, if the return button is turned on when the ball lending possible display 126 is turned off, the above-described step S
The process moves from step 8204 to step S8212, and the ball lending flag set in step S8140 of the ball lending process (FIG. 52) is checked to determine whether the ball lending process is in progress. If no ball is being lent, the process returns to step S8202 without doing anything. Since the ball lending indicator 126 is turned off because the card is not held in the card reader, it is not necessary to instruct the card reader to return the card even if the return button is turned on. is there.

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

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

【0254】なお、送受信されるファンクションは、フ
ァンクションコードの先頭にSTXコードがまた終端に
ETXコードが付加されたデータ形式で送信される。フ
ァンクションコード以外にも送受信される信号として、
ENQコード(送信の問合せ)とACKコード(肯定応
答)とがあるが、これらは先頭のSTXコードも終端の
ETXコードも付加せずにコード単独で送信される。こ
のファンクション送受信処理が開始されると、まずステ
ップS8300で上記玉貸処理(図52,53)または
カード返却処理(図54)によるファンクション送信予
約の設定がなされているか否か判定する。そして、送信
予約がなければステップS8350へ移行して、後述の
受信割込み処理(図60)で設定されるENQ受信フラ
グを調べて、カードリーダ制御装置250からENQ
(問合せコード)が入ってきているか判定する。
The transmitted / received functions are transmitted in a data format in which an STX code is added at the head of the function code and an ETX code is added at the end. In addition to the function code,
There are an ENQ code (transmission inquiry) and an ACK code (acknowledgement), which are transmitted alone without adding a head STX code or a tail ETX code. When the function transmitting and receiving process is started, the ball lending process at Step S8300 (Fig. 52, 53) or function sends pre by card return processing (FIG. 54)
It is determined whether an approximate setting has been made. If there is no transmission reservation, the flow shifts to step S8350 to check the ENQ reception flag set in the reception interrupt processing (FIG. 60) described later, and the card reader control device 250
(Inquiry code) is determined.

【0255】上記ステップS8300で“送信予約有
“と判定すると、ステップS8302へ移行して、再送
信回数を3回にセットしてからENQコードを送信バッ
ファに書き込む(ステップS8304)。この送信バッ
ファへの書込みによって送信割込みが発生して後述の送
信割込み処理が開始される。それから、ステップS83
06で応答タイマを10秒にセットした後、ステップS
9308でこの応答タイマがタイムアップしたか判定
し、“No”のときは受信割込み処理(図60)でセッ
トされるACK受信フラグをみてACK(応答コード)
を受信したか判定する(ステップS8310)。そし
て、ACKを受信する前に応答タイマがタイムアップし
たときは、ステップS8312へ移行してステップS8
302でセットした再送信回数を「1」だけ減算してか
ら、再送信回数が「0」になったか否か判定し(ステッ
プS8314)、「0」でないときは上記ステップS8
304へ戻ってENQコードの再送信を行なう。
If it is determined in step S8300 that "transmission reservation exists", the flow shifts to step S8302 to set the number of retransmissions to 3, and then writes the ENQ code in the transmission buffer (step S8304). The writing to the transmission buffer causes a transmission interrupt and starts a transmission interrupt process described later. Then, step S83
After setting the response timer to 10 seconds at 06, step S
At 9308, it is determined whether or not the response timer has expired. If "No", the ACK (response code) is checked by checking the ACK reception flag set in the reception interrupt processing (FIG. 60).
Is determined (step S8310). If the response timer times out before receiving the ACK, the process moves to step S8312 and proceeds to step S812.
After subtracting "1" from the number of retransmissions set in 302, it is determined whether the number of retransmissions has become "0" (step S8314).
Returning to step 304, the ENQ code is retransmitted.

【0256】一方、応答タイマがタイムアップする前に
ACKを受信したときは、ステップS8316へ進んで
ACK受信フラグを“0”にクリアし、かつ送信データ
の先頭を示すSTXコードを送信バッファに書き込む。
それから、ステップS8318で応答タイマを10秒に
セットした後、ステップS8320でこの応答タイマが
タイムアップしたか判定し、“No”のときは受信割込
み処理(図60)でセットされるENQ受信フラグをみ
てENQを受信したか判定する(ステップS832
2)。このENQはカードリーダ制御装置250から玉
貸し制御装置500に対して受信結果を送っても良いか
の問合せであるので、玉貸し制御装置500は、応答タ
イマがタイムアップする前にENQを受信したときはス
テップS8324へ進み、ENQ受信フラグを“0”に
クリアし、かつACKコードを送信バッファに書き込
む。ENQを受信する前に応答タイマがタイムアップし
たときは、テキスト送信に対する受信結果の応答がなか
ったことになるので、通信異常があったと判定してステ
ップS8340へ移行して通信異常を示すエラーコード
を表示データバッファへ書き込んで、ステップS834
4でそのコードを残高表示器122に表示させて制御動
作を停止する。
On the other hand, if the ACK is received before the response timer expires, the flow advances to step S8316 to clear the ACK reception flag to "0" and write the STX code indicating the head of the transmission data in 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. If "No", the ENQ reception flag set in the reception interrupt process (FIG. 60) is reset. To determine whether an ENQ has been received (step S832).
2). Since this ENQ is an inquiry as to whether the reception result may be sent from the card reader control device 250 to the ball lending control device 500, the ball lending control device 500 receives the ENQ before the response timer times out. In this case, the flow advances to step S8324 to clear the ENQ reception flag to "0" and write the ACK code into the transmission buffer. If the response timer times out before receiving the ENQ, it means that there was no response of the reception result to the text transmission, so it is determined that there was a communication error, and the flow shifts to step S8340 to show an error code indicating the communication error Is written to the display data buffer, and step S834 is executed.
In step 4, the code is displayed on the balance display 122, and the control operation is stopped.

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

【0258】応答タイマがタイムアップする前にファン
クションを受信したときは、ステップS8332へ進ん
でFNC受信フラグを“0”にクリアした後、受信した
ファンクションの内容が、「再送要求」か、「異常終
了」か、「正常終了」かを判定する(ステップS833
4,S8336,S8338)。このうち異常終了は、
通信そのものには異常はなかったがカードリーダにおけ
る書込み不良等の異常があった場合に送られてくる。そ
こで、受信したファンクションが再送要求であったとき
は上記ステップS8302へ戻って送信のやりなおしを
行ない、異常終了のときはステップS8342へ移行し
てカードリーダ異常を示すエラーコードを表示データバ
ッファへ書き込んで、ステップS8344でそのコード
を残高表示器122に表示させて制御動作を停止する。
また、正常終了であれば、一連の送信処理が終了したも
のとしてステップS8300へ戻り、次の送信予約に対
する処理を行ない、正常終了でないときはステップS8
318へ戻って受信結果のファンクションコードの再受
信を行なう。
If a function is received before the response timer expires, the flow advances to step S8332 to clear the FNC reception flag to "0". Then, the content of the received function is "retransmission request" or "abnormal". "End" or "normal end" (step S833).
4, S8336, S8338). Abnormal termination is
This message is sent when there is no abnormality in the communication itself but there is an abnormality such as writing failure in the card reader. Therefore, if the received function is a retransmission request, the flow returns to step S8302 to perform transmission again, and if abnormally terminated, the flow proceeds to step S8342 to write an error code indicating a card reader abnormality to the display data buffer. In step S8344, the code is displayed on the balance display 122, and the control operation is stopped.
If the transmission has been completed normally, the process returns to step S8300 assuming that a series of transmission processing has been completed, and performs processing for the next transmission reservation.
Returning to step 318, the function code of the reception result is received again.

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

【0260】応答タイマがタイムアップする前にファン
クションを受信したときは、ステップS8360へ進ん
でFNC受信フラグを“0”にクリアした後、受信した
ファンクションとともに受信したカード残高が「0」か
否かを判定する(ステップS8362)。そして、判定
結果が“Yes”すなわちカード残高が「0」なら何も
せずステップS8300へ戻って上記ルーチンを繰り返
す。一方、ステップS8362の判定結果が“No”の
ときは、ステップS8364へ進んで玉貸可能表示器1
26を点灯させ、受信バッファの内容(残高データ)を
カード残高記憶部へ書き込んで受信処理を終了する。図
57には、上記メインルーチン(図51)のステップS
8014で実行される決済信号出力処理の具体的手順の
一例が示されている。
If the function is received before the response timer expires, the flow advances to step S8360 to clear the FNC reception flag to "0", and then to determine whether the received card balance together with the received function is "0". Is determined (step S8362). If the result of the determination is "Yes", that is, if the card balance is "0", the process returns to step S8300 without doing anything and repeats the above routine. On the other hand, when the result of the determination in step S8362 is “No”, the flow proceeds to step S8364 and the ball lending possible display 1
26 is turned on, the contents of the reception buffer (balance data) are written into the card balance storage unit, and the reception processing is terminated. FIG. 57 shows step S of the main routine (FIG. 51).
An example of a specific procedure of the settlement signal output process executed in 8014 is shown.

【0261】この処理が開始されると、まず図53の玉
貸処理中のステップS8172でカウントアップする決
済信号数カウンタを調べて決済信号数が“0”か否か判
定する(ステップS8402)。ここで“No”すなわ
ち決済信号数が1以上であると判定すると、ステップS
8404へ進んでオン時間タイマを200m秒に設定
し、決済信号jをハイレベルにアサートしてから、その
タイマがタイムアップするのを待つ(ステップS840
6,S8408)。それから、ステップS8410へ移
行してオフ時間タイマを200m秒に設定し、決済信号
jをロウレベルにネゲートしてから、そのタイマがタイ
ムアップするのを待つ(ステップS8412,S841
4)。
When this process is started, first, the settlement signal number counter counted up in step S8172 in the ball lending process of FIG. 53 is checked to determine whether or not the number of settlement signals is “0” (step S8402). If "No", that is, if it is determined that the number of payment signals is one or more, step S
Proceeding to 8404, the on-time timer is set to 200 ms, the settlement signal j is asserted to a high level, and then the timer is awaited ( step S840).
6, S8408 ). Then, the process proceeds to step S8410 to set the off-time timer to 200 ms, negate the settlement signal j to low level, and waits for the timer to expire (steps S8412 and S841).
4).

【0262】その後、ステップS8416で上記決済信
号数カウンタを「1」だけ減らしてステップS8402
へ戻り、決済信号数カウンタが「0」になるまで、決済
信号パルスを出力させる。これによって、パルス幅20
0m秒の決済信号jが出力される。また、パルスを
「2」以上出力させる場合にも、パルスとパルスの間隔
が200m秒に設定され、これを受信するカード管理装
置800が確実に決済信号パルスを計数することができ
る。図58には、上記メインルーチン(図51)とは別
個に玉貸制御装置500がタイマ割込みにより、例えば
1m秒ごとに実行するタイマ割込み処理の具体的手順の
一例が示されている。
Then, in step S8416, the above-mentioned settlement signal number counter is decremented by "1", and step S8402 is performed.
Then, the settlement signal pulse is output until the settlement signal number counter becomes “0”. Thereby, the pulse width 20
A settlement signal j of 0 ms is output. Also, when outputting the pulse “2” or more, the interval between the pulses is set to 200 ms, and the card management device 800 that receives the pulse can reliably count the settlement signal pulse. FIG. 58 shows an example of a specific procedure of a timer interrupt process executed by the ball lending control device 500 by a timer interrupt, for example, every 1 millisecond, separately from the main routine (FIG. 51).

【0263】このタイマ割込み処理では、カード残高記
憶部から残高データを読み出して残高表示器122の表
示信号を形成して出力し、カード残高を表示させ(ステ
ップS8502)、上記メインルーチン中で使用されて
いる各タイマを「−1」して終了する(ステップS85
04)。図59および図60には、上記メインルーチン
(図51)とは別個に玉貸制御装置500によって実行
される送信割込み処理および受信割込み処理の具体的手
順の一例が示されている。
In this timer interrupt processing, the balance data is read from the card balance storage unit, a display signal of the balance display unit 122 is formed and output, and the card balance is displayed (step S8502), and is used in the main routine. Each of the timers is decremented by "-1" (step S85).
04). 59 and 60 show an example of a specific procedure of the transmission interruption process and the reception interruption process executed by the ball lending control device 500 separately from the main routine (FIG. 51).

【0264】このうち、送信割込みは、上記メインルー
チンの玉貸処理(図53参照)やファンクション送受信
処理(図55参照)中において、送信バッファにENQ
コード,STXコードまたはACKコードを書き込むこ
とによって発生されるようになっている。この送信割込
みが開始されると、ステップS8602,S8604,
S8606で、送信バッファに書き込まれたコードがい
ずれのコードか判定する。ここで、送信バッファに書き
込まれたコードがENQ,ACKまたはETX(テキス
トデータの終端を示すコード)のいずれかであればステ
ップS8612へ移行して送信バッファ内のコードを送
信して割込みを終了する。
Of these, the transmission interrupt is transmitted to the transmission buffer during the ball lending process (see FIG. 53) and the function transmission / reception process (see FIG. 55) of the main routine.
It is generated by writing a code, an STX code or an ACK code. When this transmission interrupt is started, steps S8602, S8604,
In step S8606, it is determined which code is written in the transmission buffer. If the code written in the transmission buffer is any one of ENQ, ACK and ETX (code indicating the end of text data), the flow advances to step S8612 to transmit the code in the transmission buffer and end the interrupt. .

【0265】一方、上記判定ですべて“No”となると
送信バッファに入っているコードはSTXコード、ファ
ンクションコードまたはテキストデータであり、これら
は続きのコードがある。そこで、その場合にはステップ
S8608へ進んでそのコードを送信してから、送信バ
ッファのアドレスをインクリメントして次のバッファに
入っているコードを送信して終了する(ステップS86
10,S8612)。図60の受信割込みは、カードリ
ーダ制御装置250からの送信が入ってくることによっ
て発生する。
On the other hand, if all of the above determinations result in "No", the code in the transmission buffer is an STX code, a function code or text data, and there are subsequent codes. Therefore, in that case, the process proceeds to step S8608 to transmit the code, then increments the address of the transmission buffer, transmits the code stored in the next buffer, and ends (step S86).
10, S8612). The reception interrupt in FIG. 60 is generated when a transmission from the card reader control device 250 enters.

【0266】この受信割込みが開始されると、ステップ
S8652,S8654で受信したコードがENQコー
ドまたはACKコードであるか判定する。そして、受信
したコードがENQコードであればステップS8656
へ移行してENQ受信フラグを“1”にセットし、AC
KコードであればステップS8658でACK受信フラ
グを“1”にセットして割込み処理を終了する。上記E
NQ受信フラグおよびACK受信フラグは、前記ファン
クション送受信処理フロー中で参照される。
When this reception interrupt is started, it is determined whether the code received in steps S8652 and S8654 is an ENQ code or an ACK code. Then, if the received code is an ENQ code, step S8656
And set the ENQ reception flag to “1”
If the code is a K code, the ACK reception flag is set to "1" in step S8658, and the interrupt processing ends. E above
The NQ reception flag and the ACK reception flag are referred to in the function transmission / reception processing flow.

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

【0268】次に、玉貸機200にカードが挿入され、
パチンコ遊技機100に設けられた変換ボタン123が
押されて玉貸し要求がなされた場合において、上記玉貸
し制御装置500と排出制御装置600との間で送受信
される信号の具体的なタイミングを図61を用いて説明
する。図には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)。
Next, the card is inserted into the ball lending machine 200,
FIG. 9 shows the specific timing of signals transmitted and received between the ball lending control device 500 and the discharge control device 600 when the ball lending request is made by pressing the conversion button 123 provided on the pachinko gaming machine 100. This will be described using reference numeral 61. The figure shows the signal timing when the conversion button to the loaned ball for 200 yen 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 emission control device 600 to a low level (timing t2). The discharge control device 600 that has received the ball lending request signal T (BRQ), if the ball discharge device 170 is in a dischargeable state, discharge solenoids 741 a and 741.
1b and the drive signal of the lending ball discharge display lamp 113, the lending ball discharge sound request signal E (pulse) is transmitted to the game board control device 400, and the lending ball control device 500 is transmitted to the game board control device 400. The supplied ball lending enable signal U (PRQ) is asserted to a low level (timing t3).

【0269】そして、排出制御装置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)。
The discharge control device 600 monitors the detection signals from the discharge sensors 730a and 730b, and when the discharge number reaches 25 (equivalent to 100 yen), the discharge solenoid 7
The drive signal for the ball-discharge indicator lamp 113 and the drive signal for the ball-discharge display lamp 113 are turned off, the payout completion signal V (pulse) is sent to the ball-lending control device 500, and the settlement signal J is sent to the hall management device 700. Is transmitted (timing t4). When receiving the payout completion signal V, the ball lending control device 500 subtracts the card balance, and when judging that the balance is not zero and a predetermined number of discharges have not been completed, the ball lending request signal T is asserted to a low level as it is. (Timing t5). Then, the discharge control device 600 again controls the discharge solenoids 741a and 741b.
And the drive signal of the lending ball discharge display lamp 113, and transmits a lending ball discharge sound request signal E (pulse) to the game board control device 400 (timing t6).

【0270】そして、排出数が25個(100円分)に
なった時点で排出ソレノイド741a,741bの駆動
信号および貸し玉排出表示ランプ113の駆動信号をオ
フさせるとともに、玉貸し制御装置500に対して払出
完了信号V(パルス)を、またホールの管理装置700
に対して決済信号Jを送信する(タイミングt7)。玉
貸し制御装置500は、所定数の排出が終わったと判断
すると、玉貸し要求信号Tをハイレベルにネゲートする
(タイミングt8)。すると、排出制御装置600は貸
し制御装置500に対して供給される玉貸しイネーブル
信号Uをハイレベルにネゲートして玉貸し排出処理を終
了する。
When the number of discharges reaches 25 (for 100 yen), the drive signal of the discharge solenoids 741a and 741b and the drive signal of the lending ball discharge display lamp 113 are turned off. Payout completion signal V (pulse) and the hall management device 700
The settlement signal J is transmitted to the user (timing t7). When judging that the predetermined number of discharges has been completed, 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 lending enable signal U supplied to the lending control device 500 to a high level, and ends the ball lending discharge process.

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

【0272】[0272]

【発明の効果】以上説明したように本発明は、排出すべ
き賞品球数データを記憶する手段を備えた遊技盤制御回
路により、排出制御回路に対して賞球制御信号が送信さ
れるようにしたので、排出制御回路側で賞球数データを
記憶している必要はなくなる。その結果、遊技盤が交換
される際にも、排出制御回路は交換しなくても済むとい
う効果がある。また、賞球制御信号には、賞球数データ
としての賞球数信号と該賞球数信号の取込に関わるタイ
ミングを制御する同期信号とが含まれ、遊技盤制御回路
側から排出制御回路の賞球排出数記憶手段へ同期信号に
基づいて賞球数信号が送信されるので、排出制御回路側
で賞球制御信号の受信タイミングを正確に制御でき、1
日に数多く発生する賞品球の排出制御を正確且つ確実に
行える。しかも、排出制御回路には、同期信号が所定時
間以上取込を示す有効レベルに維持されているか判定す
る判定手段と、該判定手段によって上記同期信号の有効
レベルの維持が確認されたことに基づいて賞球数信号を
取り込む信号取込手段とを設けたため、同期信号のレベ
ルが遊技盤制御回路で正しく設定されたものであるのか
ノイズ等の異常な信号がのったものであるのか判別して
賞球数信号を正確に取り込むことができ、誤った賞球排
出を防止することができるという効果がある。さらに、
遊技盤制御街路と排出制御回路とを個別に構成したの
で、各々の回路自体を小さくすることができ経済的であ
る。
As described above, according to the present invention, a prize ball control signal is transmitted to a discharge control circuit by a game board control circuit having means for storing data of the number of prize balls to be discharged. This eliminates the need for the emission control circuit to store the prize ball number data. As a result, even when the game board is replaced, there is an effect that the discharge control circuit does not need to be replaced. In addition, the prize balls control signal, includes a synchronization signal for controlling the timing related to the acquisition of the prize balls speed signal and that prize ball speed signal as a prize cell count data, the discharge control circuit from the game board control circuit side Since the prize ball number signal is transmitted to the prize ball discharge number storage means based on the synchronization signal, the discharge control circuit can accurately control the reception timing of the prize ball control signal.
The discharge control of the prize balls generated many times a day can be performed accurately and reliably. In addition, when the synchronization signal
Judge whether it is maintained at the effective level indicating
Determining means for validating the synchronization signal by the determining means.
Based on the confirmation that the level has been maintained,
Since the signal acquisition means is provided, the level of the synchronization signal
The game is correctly set in the game board control circuit
Determine if there is any abnormal signal such as noise
The prize ball number signal can be accurately captured, and the wrong prize ball
There is an effect that outflow can be prevented . further,
Since the game board control street and the discharge control circuit are separately configured, each circuit itself can be reduced in size, which is economical.

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

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

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

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

【図4】パチンコ遊技機100および玉貸機200の制
御系の一実施例を示すブロック図である。
FIG. 4 is a block diagram showing an embodiment of a 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 configuration example of a game board control device 400.

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

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

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

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

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

【図11】玉貸し制御装置500のカード制御手段51
の具体的構成例を示すブロック図である。
FIG. 11 shows a card control unit 51 of the ball lending control device 500.
1 is a block diagram illustrating a specific configuration example of FIG.

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

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

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

【図15】賞球データ検出処理ルーチンのフローチャー
トである。
FIG. 15 is a flowchart of a winning 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 of the discharge sensor 1.

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

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

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

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

【図22】補給センサ106の入力処理のサブルーチン
を示すフローチャートである。
FIG. 22 is a flowchart showing a subroutine of an input process of the supply 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 illustrating a routine of an input process of a standby sphere detector 160 (irregular sensor).

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

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

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

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

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

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

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

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

【図33】上記賞球排出処理(図32)のステップS2
04にて行われる排出処理のサブルーチンを示すフロー
チャートである。
FIG. 33: Step S2 of the prize ball discharging process ( FIG. 32 )
9 is a flowchart illustrating a subroutine of a discharging process performed in the subroutine 04.

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

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

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

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

【図38】賞球排出制御装置のメインルーチン(図1
)のステップS21で実行される玉貸開始処理のサブ
ルーチンを示すフローチャートである。
38 shows a main routine of the prize ball discharge control device ( FIG. 1)
It is a flowchart which shows the subroutine of the ball lending start process performed in step S21 of 2 ).

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

【図40】賞球排出制御装置側のCPU610によって
実行されるメインルーチン(図12)のステップS16
において実行される玉抜処理のサブルーチンの一部を示
すフローチャートである。
40 is a step S16 of a main routine ( FIG. 12 ) executed by the CPU 610 of the winning ball discharge control device .
5 is a flowchart showing a part of a subroutine of a ball-pulling-out process executed in FIG.

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

【図42】賞球排出制御装置側のCPU610によって
実行されるメインルーチン(図1 )のステップS16
において実行される玉抜処理のサブルーチンの一部を示
すフローチャートである。
[Figure 42] prize balls emission control device side main routine executed by the CPU610 (Figure 1 2) step S16 of
5 is a flowchart showing a part of a subroutine of a ball-pulling-out process executed in FIG.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

100 パチンコ遊技機120 供給皿 122 残高表示器 123 玉貸し変換ボタン 200 玉貸し機 211 カード挿排口 220 挿入残高表示器 230 有効表示ランプ 400 遊技盤制御装置 500 玉貸し制御装置 600 排出制御装置 700 ホール管理装置 800 カード管理装置100 Pachinko gaming machine 120 Supply tray 122 Balance display 123 Ball lending conversion button 200 Ball lending machine 211 Card insertion / ejection slot 220 Insert balance display 230 Effective display lamp 400 Gaming board control device 500 Ball lending control device 600 Discharge control device 700 Hall Management device 800 Card management device

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 所要数の球を排出可能な球排出装置を備
えた遊技機において、 上記遊技機は、少なくとも遊技盤と一対一に構成される
遊技盤制御回路および上記球排出装置に関わる制御を行
う排出制御回路を別個に備え、 上記遊技盤制御回路は、 少なくとも排出すべき賞品球数データを記憶する記憶手
段と、 上記賞品球数データに対応する賞球数信号と送信先での
信号の取込タイミングを制御する同期信号とを含んだ賞
球制御信号を上記排出制御回路へ送信する送信手段と、 を備え、 上記排出制御回路は、 上記送信手段からの同期信号が所定時間以上取込を示す
有効レベルに維持されているか判定する判定手段と、 上記判定手段によって上記同期信号の有効レベルの維持
が確認されたことに基づいて上記賞球数信号を取り込む
信号取込手段と、 上記信号取込手段によって取り込まれた賞球数信号を記
憶する記憶手段とを備えている ことを特徴とする遊技
機。
1. A ball discharge device capable of discharging a required number of balls is provided.
In example was the gaming machine, the gaming machine, comprise a separate discharge control circuit for controlling relating to <br/> game board control circuit and the bulb discharging device is configured one-to-one with at least the game board, the game board control The circuit is a storage means for storing at least data of the number of prize balls to be discharged.
And a prize ball number signal corresponding to the prize ball number data and a transmission destination
A prize including a synchronization signal for controlling the timing of signal acquisition
Transmitting means for transmitting a ball control signal to the discharge control circuit, wherein the discharge control circuit indicates that the synchronization signal from the transmission means captures for a predetermined time or more.
Determining means for determining whether the synchronization signal is maintained at an effective level; and maintaining the effective level of the synchronization signal by the determining means.
Captures the above prize ball number signal based on the confirmation of
The signal capturing means and the prize ball number signal captured by the signal capturing means are recorded.
A gaming machine characterized by comprising a storage means for remembering .
JP3145583A 1991-05-21 1991-05-21 Gaming machine Expired - Lifetime JP3035793B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3145583A JP3035793B2 (en) 1991-05-21 1991-05-21 Gaming machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3145583A JP3035793B2 (en) 1991-05-21 1991-05-21 Gaming machine

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP25827099A Division JP3624342B2 (en) 1999-09-13 1999-09-13 Card game machine

Publications (2)

Publication Number Publication Date
JPH04343877A JPH04343877A (en) 1992-11-30
JP3035793B2 true JP3035793B2 (en) 2000-04-24

Family

ID=15388449

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3145583A Expired - Lifetime JP3035793B2 (en) 1991-05-21 1991-05-21 Gaming machine

Country Status (1)

Country Link
JP (1) JP3035793B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102496200B1 (en) 2018-10-04 2023-02-06 아키라 카도와키 fishing lure attachment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102496200B1 (en) 2018-10-04 2023-02-06 아키라 카도와키 fishing lure attachment

Also Published As

Publication number Publication date
JPH04343877A (en) 1992-11-30

Similar Documents

Publication Publication Date Title
JP2954384B2 (en) Gaming machine
JPH05103866A (en) Discharge control method for game ball
JP2888359B2 (en) Gaming machine
JP2954383B2 (en) Gaming machine
JP3035793B2 (en) Gaming machine
JP3663596B2 (en) Card type pachinko game machine
JP3624342B2 (en) Card game machine
JP2964178B2 (en) Card-type gaming machine
JP2964177B2 (en) Card-type gaming machine
JP3066472B2 (en) Card-type gaming machine
JPH10290873A (en) Ball rent processing device
JPH10290874A (en) Game machine
JPH10272251A (en) Ball lending processor
JP2020137760A (en) Game machine
JP3066471B2 (en) Gaming machine
JP2000245928A (en) Pachinko machine
JPH0515652A (en) Card system pinball game system
JP3066475B2 (en) Card-type gaming machine
JP5260383B2 (en) Automatic transaction equipment
CN111327777A (en) Image forming apparatus and image forming apparatus system
JP2001170348A (en) Game machine
JP3035795B2 (en) Gaming equipment
JP3066474B2 (en) Card-type gaming machine
JP3035796B2 (en) Gaming equipment
JP7052639B2 (en) Vehicle certification equipment

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20090225

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100225

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20100225

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20110225

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20110225

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20120225

Year of fee payment: 12

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120225

Year of fee payment: 12