JP3982710B2 - Card type pachinko game machine - Google Patents

Card type pachinko game machine Download PDF

Info

Publication number
JP3982710B2
JP3982710B2 JP2005343239A JP2005343239A JP3982710B2 JP 3982710 B2 JP3982710 B2 JP 3982710B2 JP 2005343239 A JP2005343239 A JP 2005343239A JP 2005343239 A JP2005343239 A JP 2005343239A JP 3982710 B2 JP3982710 B2 JP 3982710B2
Authority
JP
Japan
Prior art keywords
discharge
ball
ball lending
signal
card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP2005343239A
Other languages
Japanese (ja)
Other versions
JP2006068560A (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 JP2005343239A priority Critical patent/JP3982710B2/en
Publication of JP2006068560A publication Critical patent/JP2006068560A/en
Application granted granted Critical
Publication of JP3982710B2 publication Critical patent/JP3982710B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Pinball Game Machines (AREA)

Description

本発明は、カード挿排口を備えた球貸機と、該球貸機と対を成し、前面に設けられた供給皿側へ賞球または貸球に関わる遊技球を排出するための排出制御を行う排出制御装置と、遊技盤に関する制御を司ると共に賞球排出に関わる信号を上記排出制御装置へ送信する遊技盤制御装置とを有するパチンコ遊技機とを備えたカード式パチンコ遊技装置に関する。   The present invention is a ball lending machine provided with a card insertion / extraction port, and a discharge for discharging a prize ball or a game ball related to the lending to a supply tray provided on the front surface, which is paired with the ball lending machine. The present invention relates to a card-type pachinko gaming apparatus including a discharge control device that performs control, and a pachinko gaming machine that includes a game board control device that controls a game board and transmits a signal related to prize ball discharge to the discharge control device.

従来の球貸機としては、パチンコ遊技機に併設され、所定数の遊技球を排出する機構を備えた台間球貸装置がある。これは、硬貨の投入に基づいて所定数の遊技球を排出するものであり、かかる球貸装置を利用するには硬貨が必要となり、遊技中に両替を行わなくてはならないという煩わしさがあった。そこで、その煩わしさを回避できるようにするため、予め所定の金額情報が記録されたカードを遊技者に購入してもらい、そのカードの挿入に基づいて所定数の遊技球を排出するようにした球貸装置が開発され、多くの遊技店で使用されるようになってきている。このような球貸装置がパチンコ遊技機間に設置された遊技店では、遊技者が球貸装置より排出された遊技球を球受取部より手で受け取ってパチンコ遊技機の供給皿に投入して遊技を行うこととなる。
特開平02−279191号公報
As a conventional ball lending machine, there is a pedestal ball lending device provided with a mechanism for discharging a predetermined number of game balls, which is attached to a pachinko gaming machine. This is to discharge a predetermined number of game balls based on the insertion of coins, and to use such a ball lending device, coins are required, and there is the troublesomeness that money must be exchanged during the game. It was. Therefore, in order to avoid such annoyance, a player is required to purchase a card in which predetermined amount information is recorded in advance, and a predetermined number of game balls are discharged based on the insertion of the card. Ball lending devices have been developed and are being used in many amusement stores. In a game store where such a ball lending device is installed between pachinko gaming machines, a player receives the game balls discharged from the ball lending device by hand from the ball receiving unit and puts them into the supply tray of the pachinko gaming machine. A game will be performed.
Japanese Patent Laid-Open No. 02-279191

しかしながら、このようなカード方式の台間球貸装置は、遊技者にとって煩わしさが減少するという利点がある反面、従来のカード方式はカードを購入した店においてかつカードを購入した日にしか使用できないという制約が設けられていたため充分に遊技者の便宜を図ったものにはなっていなかった。   However, such a card-type inter-table ball lending device has the advantage of reducing the inconvenience for the player, but the conventional card method can only be used at the store where the card was purchased and on the day the card was purchased. This was not enough for the convenience of the player.

そこで、共通プリペードカード方式のシステムの提案がなされている。この方式は、カードを購入した店および購入日にしか使用できないという問題点を解消することができる。   Therefore, a common prepaid card system has been proposed. This method can solve the problem that the card can only be used at the store where the card was purchased and the date of purchase.

一方、上述した台間球貸装置は、それ自身に遊技球を排出する球排出機構が設けられているため、パチンコ遊技機および台間球貸装置が設置される遊技店のいわゆる島設備に設けられる遊技球循環機構に関しても、パチンコ遊技機裏面に設けられ賞球として排出するための予備球を貯留するタンクに遊技球を補給する機構の他に、台間球貸装置へも遊技球を補給する機構やパチンコ遊技機の貯留タンクと台間球貸装置とに補給すべき遊技球を振り分ける機構が必要となるという問題点があった。   On the other hand, the above-described inter-table ball lending device is provided with a ball discharge mechanism that discharges game balls in itself, so it is provided in a so-called island facility of a game store where pachinko gaming machines and inter-ball ball lending devices are installed. As for the game ball circulation mechanism that is provided, in addition to the mechanism that replenishes game balls to a tank that is provided on the back of the pachinko game machine and stores spare balls to be discharged as prize balls, it also supplies game balls to the inter-ball rental equipment There is a problem that a mechanism for distributing game balls to be supplied to a storage tank and pachinko ball lending device for pachinko machines is required.

そこで、パチンコ遊技機に設けられている球排出機構を利用して球貸に関わる遊技球の排出を行うとともに上記プリペードカード方式を併用した方式が提案されている。この方式は、パチンコ遊技機の球排出機構を利用して球貸分の遊技球を排出してそれを直接供給皿に案内するというものであり、遊技者にとっては手を汚さずに済み、かつ球を床にこぼす心配もなくなって、遊技に専念できるという利点がある。   Therefore, a method has been proposed in which a game ball related to ball lending is discharged using a ball discharge mechanism provided in a pachinko gaming machine and the above prepaid card method is used in combination. This method uses the ball discharge mechanism of the pachinko machine to discharge the game balls that are rented out and guide them directly to the supply tray, and the player does not have to get dirty. There is an advantage that you can concentrate on the game without worrying about spilling the ball on the floor.

しかも、この併用システムは、パチンコ遊技機とは別個に球貸装置としての球貸しユニットを設けるという従来通りの構成を採用したものである。その理由は、パチンコ遊技機と球貸装置とが別体である方が、従来の島設備をそのまま使用できて経済的であるためである。仮に、球貸装置を一体に組み込んでしまうと、従来の島設備にパチンコ遊技機を設置したときに台間球貸装置の配設スペースが空いてしまうため、そのスペースを装飾板等で隠蔽する必要が生じてしまう。   In addition, this combined system employs a conventional configuration in which a ball lending unit as a ball lending device is provided separately from the pachinko gaming machine. The reason for this is that it is more economical if the pachinko gaming machine and the ball lending device are separate because the conventional island facilities can be used as they are. If the ball lending device is integrated, the space for installing the ball lending device will be vacant when a pachinko machine is installed on the conventional island equipment. Necessity arises.

このように、上記併用システムはメリットの多い提案であるが、台間球貸装置は独自の球排出機構を備えておらずパチンコ遊技機側の球排出機構(従来は賞球排出のみ実行)を使用するため、正確性および信頼性が要求される。   In this way, the above combined system is a proposal with many advantages, but the inter-ball lending device does not have its own ball discharge mechanism, but the ball discharge mechanism on the pachinko machine side (previously, only the prize ball discharge is executed). For use, accuracy and reliability are required.

この発明は上記のような背景の下になされたもので、その目的とするところは、パチンコ遊技機側の球排出機構を使用して貸球の排出を正確かつ確実に実行できるようにするために、球貸装置としての球貸しユニットで発生した球貸要求をパチンコ遊技機側の制御回路が確実に認識し、球排出機構を制御して貸球の正確な排出を確実に行えるカード式パチンコ遊技装置を提供することにある。   The present invention has been made under the background as described above, and its purpose is to enable the ball discharge mechanism on the pachinko gaming machine side to be used for the accurate and reliable discharge of the rental balls. In addition, a card-type pachinko machine that can recognize the ball lending request generated by the ball lending unit as a ball lending device reliably by the control circuit on the pachinko gaming machine side and control the ball discharge mechanism to ensure accurate ball lending. The object is to provide a gaming device.

上記目的を達成するため、請求項1に記載の発明は、カード挿排口を備えた球貸機と、該球貸機と対を成し、前面に設けられた供給皿側へ賞球または貸球に関わる遊技球を排出するための排出制御を行う排出制御装置と、遊技盤に関する制御を司ると共に、賞球排出に関わる信号を上記排出制御装置へ送信する遊技盤制御装置と、を有するパチンコ遊技機と、を備えたカード式パチンコ遊技装置において、上記排出制御装置と上記球貸機とを送受信可能に接続すると共に、上記球貸機への入力のために用いられ、カードの有する金額の範囲内で貸球への変換を指令する変換スイッチと、上記球貸機により制御され、挿入されたカードの残高を表示するカード残高表示器および上記変換スイッチの有効・無効を表示する球貸可能表示器を上記パチンコ遊技機の前面に設け、上記排出制御装置は、球貸し排出が可能な状態にある場合に上記球貸機に対して球貸し可能信号を送信すると共に、該球貸機から供給される排出要求を示す排出要求信号に基づいて、該排出要求信号ごとに最小排出単位の個数の遊技球を排出させる排出制御を行い、該最小排出単位の個数の遊技球の排出終了ごとに排出が終了したことを示す信号を上記球貸機へ送信し、且つ、上記排出が終了したことを示す信号は、上記排出要求信号を受信すると賞球排出と共通の排出条件である排出を待機している遊技球を排出センサが検出しているか否かおよび球貸し排出に特有の排出条件である球貸機にカードが挿入されていることを示すカード有無信号を受信しているか否かを確認して球貸し排出が可能と判定した場合に第1のレベル(例えばハイレベル)から該第1のレベルとは異なる第2のレベル(例えばロウレベル)に変化させ、上記最小排出個数の遊技球の排出終了で第2のレベルから第1のレベルに戻すように構成し、上記球貸機は、上記変換スイッチの一回の操作に対して上記最小排出単位の個数の整数倍単位で貸球数を設定可能な球貸し数設定手段を備え、上記カードの挿入に基づいて、上記変換スイッチが有効である場合に上記球貸可能表示器を点灯し、上記変換スイッチの一回の操作に基づき、設定された貸球数の遊技球を排出させる場合に、上記排出制御装置へ最小排出単位の排出要求信号を送信するごとに上記球貸し可能信号により上記排出制御装置が球貸し可能状態にあることを確認し、かつ該排出要求信号に基づく貸球の排出が実行中は、上記変換スイッチの操作が無効であることを上記球貸可能表示器を消灯することで報知し、かつ当該球貸可能表示器の消灯に基づいて上記カード残高表示器の残高表示を所要時間経過後に減算表示するように構成した。

In order to achieve the above object, the invention according to claim 1 is a ball lending machine provided with a card insertion / extraction opening, and a ball lending machine or a ball lending machine that is paired with the ball lending machine. A discharge control device that performs discharge control for discharging game balls related to rental balls, and a game board control device that controls a game board and transmits a signal related to prize ball discharge to the discharge control device. In a card-type pachinko gaming machine equipped with a pachinko gaming machine, the discharge control device and the ball lending machine are connected so as to be able to transmit and receive, and used for input to the ball lending machine, the amount of money held by the card A conversion switch that commands conversion to a rental ball within the range of the above, a card balance indicator that displays the balance of the inserted card controlled by the ball rental machine, and a ball rental that displays the validity / invalidity of the conversion switch The possible indicators are The discharge control device is provided on the front surface of the game machine, and when the ball lending discharge is possible, the discharge control device transmits a ball lending possible signal to the ball lending machine and discharges supplied from the ball lending machine. Based on a discharge request signal indicating a request, discharge control is performed to discharge the minimum number of game balls for each discharge request signal, and the discharge ends each time the minimum number of game balls is discharged. A signal indicating that the discharge has been completed, and the signal indicating that the discharge has ended is a game waiting for discharge which is a discharge condition common to the prize ball discharge when the discharge request signal is received . Check whether the ball is detected by the discharge sensor and whether a card presence / absence signal indicating that a card is inserted in the ball lending machine, which is a discharge condition peculiar to ball lending discharge , is received. When it is judged that loan discharge is possible The first level (for example, the high level) is changed to a second level (for example, the low level) different from the first level, and when the minimum number of game balls is discharged, the second level is changed to the first level. The ball lending machine comprises a ball lending number setting means capable of setting the number of balls lending in an integer multiple of the number of the minimum discharge units for one operation of the conversion switch, Based on the insertion of the card, when the conversion switch is valid, the ball lendable indicator is turned on, and a set number of game balls are discharged based on a single operation of the conversion switch. Each time a discharge request signal of the minimum discharge unit is transmitted to the discharge control device, it is confirmed by the ball lending enable signal that the discharge control device is in a lendable state, and a loan based on the discharge request signal is made. Ball discharge is executed During the notification, the operation of the conversion switch is disabled by turning off the ball lending indicator, and the balance display on the card balance indicator is required based on the turn-off of the ball lending indicator. It was configured to display a subtraction after a lapse of time.

また、請求項2に記載の発明は、上記球貸機は、上記球貸し可能信号により上記排出制御装置が球貸し可能状態にないことを確認した場合は、上記変換スイッチの操作を無効にすると共に、上記球貸可能表示器を消灯させるようにした。   In the invention according to claim 2, the ball lending machine invalidates the operation of the conversion switch when it is confirmed by the ball lending possible signal that the discharge control device is not in a lendable state. At the same time, the ball lending indicator is turned off.

請求項1に係る発明は、カード挿排口を備えた球貸機と、該球貸機と対を成し、前面に設けられた供給皿側へ賞球または貸球に関わる遊技球を排出するための排出制御を行う排出制御装置と、遊技盤に関する制御を司ると共に、賞球排出に関わる信号を上記排出制御装置へ送信する遊技盤制御装置と、を有するパチンコ遊技機と、を備えたカード式パチンコ遊技装置において、上記排出制御装置と上記球貸機とを送受信可能に接続すると共に、上記球貸機への入力のために用いられ、カードの有する金額の範囲内で貸球への変換を指令する変換スイッチと、上記球貸機により制御され、挿入されたカードの残高を表示するカード残高表示器および上記変換スイッチの有効・無効を表示する球貸可能表示器を上記パチンコ遊技機の前面に設け、上記排出制御装置は、球貸し排出が可能な状態にある場合に上記球貸機に対して球貸し可能信号を送信すると共に、該球貸機から供給される排出要求を示す排出要求信号に基づいて、該排出要求信号ごとに最小排出単位の個数の遊技球を排出させる排出制御を行い、該最小排出単位の個数の遊技球の排出終了ごとに排出が終了したことを示す信号を上記球貸機へ送信するように構成され、上記球貸機は、上記変換スイッチの一回の操作に対して上記最小排出単位の個数の整数倍単位で貸球数を設定可能な球貸し数設定手段を備え、上記カードの挿入に基づいて、上記変換スイッチが有効である場合に上記球貸可能表示器を点灯し、上記変換スイッチの一回の操作に基づき、設定された貸球数の遊技球を排出させる場合に、上記排出制御装置へ最小排出単位の排出要求信号を送信するごとに上記球貸し可能信号により上記排出制御装置が球貸し可能状態にあることを確認し、かつ該排出要求信号に基づく貸球の排出が実行中は、上記変換スイッチの操作が無効であることを上記球貸可能表示器を消灯することで報知し、かつ当該球貸可能表示器の消灯に基づいて上記カード残高表示器の残高表示を所要時間経過後に減算表示するように構成したので、パチンコ遊技機側の球排出機構を使用して貸球の排出を正確かつ確実に実行でき、球貸機側で発生した球貸要求をパチンコ遊技機側の制御回路が確実に認識して球排出機構を制御して貸球の正確な排出を確実に行うことができる。
また、排出要求信号に基づく貸球の排出が実行中は、変換スイッチの操作が無効であることを球貸可能表示器を消灯することで報知することができる。
The invention according to claim 1 forms a pair with the ball lending machine provided with the card insertion / extraction port, and discharges the winning ball or the game ball related to the lending to the supply tray side provided on the front surface. A pachinko gaming machine having a discharge control device for performing discharge control and a game board control device for controlling a game board and transmitting a signal related to prize ball discharge to the discharge control device. In the card-type pachinko gaming device, the discharge control device and the ball lending machine are connected so as to be able to transmit and receive, and are used for input to the ball lending machine. The pachinko gaming machine includes a conversion switch that commands conversion, a card balance display that displays the balance of the inserted card controlled by the ball lending machine, and a ball lendable display that displays the validity / invalidity of the conversion switch. On the front of the The discharge control device transmits a ball lending possible signal to the ball lending machine when the ball lending discharge is possible, and based on a discharge request signal indicating a discharge request supplied from the ball lending machine. Thus, for each of the discharge request signals, discharge control is performed to discharge the minimum number of gaming balls, and a signal indicating that the discharge has been completed each time the minimum number of gaming balls is discharged The ball lending machine has a ball lending number setting means capable of setting the number of balls lending in an integral multiple of the number of the minimum discharge units for one operation of the conversion switch. The ball lending indicator is turned on when the conversion switch is valid based on the insertion of the card, and a set number of game balls are played based on a single operation of the conversion switch. When discharging, go to the above discharge control device Each time a discharge request signal of a small discharge unit is transmitted, it is confirmed that the discharge control device is in a lentable state by the sphere lending possible signal, and sphere lending based on the discharge request signal is being executed, Notifying that the operation of the conversion switch is invalid by turning off the ball lending indicator, and displaying the balance on the card balance indicator based on the turning off of the ball lending indicator Since it is configured to display a subtraction, the ball discharge mechanism on the pachinko machine side can be used to accurately and reliably discharge the ball rental, and the ball rental request generated on the ball rental machine side can be controlled on the pachinko machine side. The circuit can reliably recognize and control the ball discharge mechanism to accurately discharge the rental balls.
In addition, while the rental ball discharge based on the discharge request signal is being executed, it is possible to notify that the operation of the conversion switch is invalid by turning off the ball rental possible indicator.

また、球貸可能表示器の消灯に基づいてカード残高表示器の残高表示を所要時間経過後に減算表示することができる。
また、上記球貸機は、上記球貸し可能信号により上記排出制御装置が球貸し可能状態にないことを確認した場合は、上記変換スイッチの操作を無効にすると共に、上記球貸可能表示器を消灯させるようにしたので、排出制御装置が球貸し可能状態になく、変換スイッチの操作が無効であることを報知することができる。
Further, the balance display on the card balance display can be subtracted and displayed after the required time has elapsed based on the turn-off of the ball lendable display.
When the ball lending machine confirms that the discharge control device is not in a lendable state based on the lendable signal, the operation of the conversion switch is invalidated and the lendable indicator is turned on. Since the light is turned off, it can be notified that the discharge control device is not in a lendable state and the operation of the conversion switch is invalid.

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

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

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

この実施例では、変換ボタン123が押されると、上記玉貸機200のカードリーダへのカードの挿入を前提としてカードの有する金額の範囲内で、予め設定された金額(例えば300円分)を貸し玉に変換する指令がパチンコ遊技機100の裏面に設けられている球排出装置の制御装置に対して送出するように構成されている。変換後のカードの残り金額は、100円を1単位とする度数で残高表示器122に表示されるようになっている。   In this embodiment, when the conversion button 123 is pressed, a predetermined amount (for example, 300 yen) is set within the range of the amount of money the card has on the premise that the card is inserted into the card reader of the ball lending machine 200. A command to convert to a lending ball is configured to be sent to a control device of a ball discharge 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 with a frequency of 100 yen as a unit.

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

また、球排出装置170の下方には、排出された玉を遊技機前面の上記供給皿120の流出口129へ誘導する排出樋155と供給皿120からオーバーフローした玉を下方の受け皿141へ誘導するオーバーフロー樋156が連続して設けられているとともに、上記排出樋155の途中から分岐された玉抜き樋157が上記オーバーフロー樋156と平行して配設され、この玉抜き樋157と排出樋155との分岐部には流路切換え弁158が設けられている。159は遊技機の前面に設けられた入賞口に流入した入賞球を一箇所に集合させる集合樋、180は集合樋159の下端に設けられ集合された入賞球を1個ずつ分離して検出器で検出する入賞球分離検出装置、400は遊技部に設けられた入賞検出器からの信号に基づいて役物や表示ランプを駆動する遊技盤制御装置である。   Also, below the ball discharge device 170, a discharge basket 155 for guiding the discharged balls to the outlet 129 of the supply tray 120 on the front surface of the gaming machine and a ball overflowing from the supply tray 120 are guided to the receiving tray 141 below. An overflow rod 156 is continuously provided, and a ball draining rod 157 branched from the middle of the discharge rod 155 is disposed in parallel with the overflow rod 156. Is provided with a flow path switching valve 158. 159 is a collective bowl that collects the winning balls that flowed into the prize opening provided on the front face of the gaming machine in one place, 180 is a detector that separates the collected prize balls one by one provided at the lower end of the collective bowl 159 , A winning ball separation detecting device 400, and a game board control device 400 for driving an accessory or a display lamp based on a signal from a winning detector provided in the game unit.

上記遊技盤制御装置400と排出制御装置600とは、3本の信号線からなるコードによって接続される。特に限定されるものでないがこの実施例では、遊技盤制御装置400と排出制御装置600から引き出されたコード191,192の一端が中継基板195に接続されており、中継基板195を介して遊技盤制御装置400と排出制御装置600とが通信可能に結合されている。   The game board control device 400 and the discharge control device 600 are connected by a cord composed of three signal lines. Although not particularly limited, in this embodiment, one ends of the cords 191 and 192 drawn from the game board control device 400 and the discharge control device 600 are connected to the relay board 195, and the game board is connected via the relay board 195. The control device 400 and the discharge control device 600 are communicably coupled.

なお、この実施例では、入賞球分離検出装置180として集合樋159で集合された入賞球の流下経路に臨むストッパ182とそれを駆動するソレノイド(以下、セーフソレノイドと称する)183とからなり検出器(セーフセンサと称する)181で入賞球を1つ検出する毎にストッパ182をソレノイド183で駆動して入賞球を1つ流下させるするように構成した電気式のものを用いているが、先端にストッパを、また後端に錘を有するシーソー式の球鞘とマイクロスイッチとから構成されたメカ式のものを用い、入賞球数は排出制御装置600内に電気的に記憶させるようにしても良い。   In this embodiment, the winning ball separation / detection device 180 includes a stopper 182 that faces the flow path of winning balls assembled by the collecting rod 159 and a solenoid (hereinafter referred to as a safe solenoid) 183 that drives the stopper 182. Each time a single winning ball is detected by a 181 (referred to as a safe sensor), an electric type configured to drive the stopper 182 with a solenoid 183 to flow down one winning ball is used. A mechanical type constituted by a stopper and a seesaw type ball sheath having a weight at the rear end and a micro switch may be used, and the number of winning balls may be electrically stored in the discharge control device 600. .

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

上記減圧部711は、貯留タンク151から誘導樋152を介して送られてくる予備球の圧力を減らすもので、同図に示すように、緩傾斜状態にUターンされた構造にされている。上記縁切り部712は、その下の排出部713を通る球同士に間隔を開けさせて、下方の排出手段740による球の流出を止め易くするためのもので、前記減圧部711に連続する垂直通路部分721と後述の排出部713に通じる方向変換通路部分722とから構成されている。   The decompression unit 711 reduces the pressure of the reserve sphere sent from the storage tank 151 via the guide rod 152, and has a U-turn structure in a gently inclined state as shown in FIG. The edge cut portion 712 is used to make the balls passing through the lower discharge portion 713 spaced apart so that the discharge of the ball by the lower discharge means 740 can be easily stopped. It comprises a portion 721 and a direction changing passage portion 722 that leads to a discharge portion 713 described later.

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

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

そして、排出ソレノイド741が消磁(オフ)状態にあるときには、作動ロッド742が下降してストッパ745の先端部が切欠き部703より案内樋710の排出部713中にそれぞれ入り込んで、排出部713中の遊技球の流下を阻止するようになっている。一方、排出ソレノイド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 end portion of the stopper 745 enters the discharge portion 713 of the guide rod 710 from the notch portion 703, respectively. The game ball is prevented from flowing down. On the other hand, when the discharge solenoid 741 is excited (turned on), the operating rod 742 is lifted and rotated in the direction in which the stopper 745 is lifted to escape from the notch 703 of the discharge portion 713, and the ball in the discharge portion 713. The flow preventing state is released, and the spare ball in the guide rod 710 is discharged to the lower discharge rod 155.

このように上記実施例の球排出装置170は、排出センサ730で流下する玉を一個ずつ検出しながら所定数に達した時点でストッパ745を作動させて排出を停止させることができるため、上述したごとく排出球数の異なる賞品球と貸し玉とを同一の球排出装置によって排出させることが可能となる。   As described above, the ball discharge device 170 according to the above embodiment can stop the discharge by operating the stopper 745 when reaching a predetermined number while detecting the balls flowing down by the discharge sensor 730 one by one. As a result, it is possible to discharge prize balls and rental balls having different numbers of discharged balls by the same ball discharge device.

なお、図3において、750はパチンコ遊技機100の前面枠に設けられた操作孔(図示省略)から球抜き棒が差し込まれたことを検出する球抜きセンサ750である。球抜きセンサ750がオンされると、上記排出ソレノイド741が連続して励磁されて案内樋710内の予備球を排出させるとともに、排出樋155内の切換え弁158の駆動手段(ソレノイド)を作動させ、排出された玉を球抜き樋157を通して機外へ排出させるようになっている。
上記球抜きセンサ750および排出ソレノイド741、排出センサ730は排出制御装置600に電気的に接続されている。
In FIG. 3, reference numeral 750 denotes a ball removal sensor 750 that detects that a ball removal rod has been inserted from an operation hole (not shown) provided in the front frame of the pachinko gaming machine 100. When the ball removal sensor 750 is turned on, the discharge solenoid 741 is continuously excited to discharge the spare ball in the guide rod 710, and the driving means (solenoid) of the switching valve 158 in the discharge rod 155 is operated. The discharged balls are discharged out of the machine through a ball punch 157.
The ball removal sensor 750, the discharge solenoid 741, and the discharge sensor 730 are electrically connected to the discharge control device 600.

図4には、パチンコ遊技機100の制御系の一実施例が示されている。
この制御系は大きく分けると、主としてパチンコ遊技機100の遊技盤に関する制御を司る遊技盤制御回路としての遊技盤制御装置400と、カードリーダ等の制御を司る玉貸しユニット制御回路としての玉貸し制御装置500と、上記球排出装置170の制御を司る排出制御回路としての排出制御装置600とにより構成されている。
FIG. 4 shows an embodiment of a control system of the pachinko gaming machine 100.
This control system is roughly divided into a game board control device 400 as a game board control circuit that mainly controls the game board of the pachinko gaming machine 100, and a ball lending control as a ball lending unit control circuit that controls the card reader and the like. The apparatus 500 includes a discharge control apparatus 600 serving as a discharge control circuit that controls the ball discharge apparatus 170.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

次に、カードリーダ250に対する制御信号や残高表示器122の駆動信号およびパチンコ遊技機に設けられた玉貸し変換ボタン123からの信号によって上記排出制御装置600対する玉貸し要求信号等を形成して出力する上記玉貸し制御装置500の制御手順を図16ないし図25を参照して詳細に説明する。   Next, a ball lending request signal for the discharge control device 600 is formed and output by a control signal for the card reader 250, a driving signal for the balance display 122, and a signal from a ball lending conversion button 123 provided in the pachinko gaming machine. The control procedure of the ball lending control device 500 will be described in detail with reference to FIGS.

図16には、上記玉貸し制御装置のメインルーチンの概略が示されている。
このメインルーチンは、玉貸し制御装置500の電源が投入されると繰返し実行される。
FIG. 16 shows an outline of the main routine of the ball lending control device.
This main routine is repeatedly executed when the ball lending control device 500 is turned on.

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

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

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

次に、再びステップS8102−S8104と進んでステップS8104で"No"と判定すると、ステップS8108へ進み玉貸し可能表示器(玉貸し可能表示ランプと同意、以下同様。)126が点灯しているか調べる。この玉貸し可能表示器126は、後述のファンクション送受信処理(図20,21)において、カードリーダ制御装置250からカード金額を受信したときに点灯されるランプである。従って、カードリーダにカードが挿入される前は、ステップS8108での判定は"No"となってステップS8102へ戻って上記ステップを繰り返す。   Next, the process proceeds again to steps S8102 to S8104, and if "No" is determined in step S8104, the process proceeds to step S8108, and it is checked whether or not the ball lendable indicator (agree with the ball lendable display lamp, the same applies hereinafter) 126 is lit. . The ball lendable indicator 126 is a lamp that is turned on when a card amount is received from the card reader controller 250 in the function transmission / reception process (FIGS. 20 and 21) described later. Therefore, before the card is inserted into the card reader, the determination in step S8108 is “No”, the process returns to step S8102, and the above steps are repeated.

そして、カードリーダにカードが挿入され、カードリーダ制御装置250からカード金額が送信されて玉貸し可能表示器126が点灯されると、ステップS8108での判定が"Yes"となってステップS8110へ進む。ステップS8110では、上記玉貸可能信号RDYがハイレベルであるか確認して"Yes"なら次のステップS8112へ移行し、"No"ならステップS8102へ戻る。   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 indicator 126 is turned on, the determination in step S8108 becomes “Yes” and the process proceeds to step S8110. . In step S8110, it is confirmed whether the ball lending possible signal RDY is at a high level. If “Yes”, the process proceeds to the next step S8112, and if “No”, the process returns to step S8102.

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

上記ステップS8110で"Yes"すなわち玉貸可能信号RDYがハイレベルであると確認すると、ステップS8112へ進み、変換スイッチからの信号を見て玉貸し変換ボタン123がオンされているか否か判定する。ここで、"Yes"ならステップS8114へ移行してカードの残金が、玉貸し数設定器506に設定された玉貸し数に相当する金額よりも多いか否か判定する。そして、カードの金額の方が多いときは、ステップS8116へ移行して払出回数レジスタに設定玉貸し数をセットし、カードの金額の方が少ないときにはステップS8118へ進んで、払出回数レジスタにカード残金をセットしてから、図18のステップS8130へ移行する。   If “Yes”, that is, the ball lending possible signal RDY is confirmed to be high in step S8110, the process proceeds to step S8112, and it is determined whether or not the ball lending conversion button 123 is turned on by looking at the signal from the conversion switch. Here, if “Yes”, the process proceeds to step S 8114, and it is determined whether or not the remaining amount of the card is larger than the amount corresponding to the ball lending number set in the ball lending number setting unit 506. If the amount of the card is larger, the process proceeds to step S8116, and the set ball lending number is set in the payout number register. If the card amount is smaller, the process proceeds to step S8118, and the remaining card amount is stored in the payout number register. Then, the process proceeds to step S8130 in FIG.

また、ステップS8112で"No"すなわち玉貸し変換ボタン123がオフであると判定されると、ステップS8120へ移行して返却スイッチからの信号を見て返却ボタン124がオンされているか否か判定する。ここで、"Yes"ならステップS8122へ移行して玉貸可能表示器126を消灯させ、磁気書込ファンクションの送信予約を行なってから(ステップS8124)、ステップS5126へ進んで、カードリーダからカードを排出させる排出ファンクションの送信予約を行なってステップS8102へ戻る。一方、上記ステップS8120で返却ボタン124がオフされていると判定すると、何もせずにステップS8102へ戻る。   If it is determined in step S8112 that "No", that is, the ball lending conversion button 123 is off, the process proceeds to step S8120 to determine whether the return button 124 is turned on by looking at a signal from the return switch. . If “Yes”, the process proceeds to step S8122, the ball lending possible indicator 126 is extinguished, the transmission of the magnetic writing function is reserved (step S8124), and the process proceeds to step S5126, where the card is read from the card reader. A reservation is made for transmission of the discharge function to be discharged, and the process returns to step S8102. On the other hand, if it is determined in step S8120 that the return button 124 is turned off, the process returns to step S8102 without doing anything.

図18のステップS8130へ移行して来ると、まず玉貸し可能表示器126を消灯させてから、排出制御装置600に対する玉貸要求信号BRQをロウレベルにアサートして、排出終了信号EXSの応答待ちのEXSタイマ(10秒)をセットする(ステップS8132,S8134)。それから、EXSタイマがゼロになったか判定し、"No"なら排出制御装置600からの排出終了信号EXSが立ち下がったか判定する(ステップS8136,S8138)。そして、"Yes"なら上記EXSタイマが10m秒経過したか否か判定する(ステップS8140)。ここで、排出終了信号EXSが立ち下がる前にEXSタイマがタイムアップしたと判定すると、ステップS8172へ進み、磁気書込ファンクションの送信予約を行なってから、カード排出ファンクションの送信予約を行なって(ステップS8174)有効表示ランプS230を消灯(ステップS8176)、挿入残高表示器220(3桁表示)に「000」を表示させ(S8178)、ステップS8102へ戻る。排出制御装置600に対する玉貸要求を行なってから10秒経過しても排出終了信号が帰って来ないのは異常が発生しているためと考えられるからである。   When the process proceeds to step S8130 in FIG. 18, the ball lending possible indicator 126 is first turned off, and then the ball lending request signal BRQ for the discharge control device 600 is asserted to a low level, and the response waiting for the discharge end signal EXS is awaited. The EXS timer (10 seconds) is set (steps S8132 and S8134). Then, it is determined whether the EXS timer has become zero. If “No”, it is determined whether the discharge end signal EXS from the discharge control device 600 has fallen (steps S8136, S8138). If “Yes”, it is determined whether or not the above-mentioned EXS timer has elapsed for 10 milliseconds (step S8140). If it is determined that the EXS timer has expired before the ejection end signal EXS falls, the process proceeds to step S8172, where transmission reservation for the magnetic writing function is performed, and transmission reservation for the card ejection function is performed (step S8172). S8174) The effective display lamp S230 is turned off (step S8176), “000” is displayed on the insertion balance indicator 220 (3-digit display) (S8178), and the process returns to step S8102. The reason why the discharge end signal does not come back even after 10 seconds have passed since the ball lending request to the discharge control device 600 is made is considered that an abnormality has occurred.

一方、EXSタイマがタイムアップする前に排出終了信号EXSが立ち下がりかつEXSタイマが10m秒経過していると、次のステップS8142へ移行して再びEXSタイマを10秒にセットする。それから、EXSタイマがゼロになったか判定し、"No"なら排出制御装置600からの排出終了信号EXSが立ち上がったか判定する(ステップS8144,S8146)。そして、"Yes"なら上記EXSタイマが200m秒経過したか否か判定する(ステップS8148)。ここで、排出終了信号EXSが立ち上がる前にEXSタイマ(10秒)がタイムアップしたと判定すると、ステップS8172へ進み、磁気書込ファンクションの送信予約を行なってから、カード排出ファンクションの送信予約を行なって(ステップS8174)有効表示ランプS230を消灯(ステップS8176)、挿入残高表示器220(3桁表示)に「000」を表示させ(S8178)、ステップS8102へ戻る。排出制御装置600からの排出終了信号EXSは、球排出装置170の構造からロウレベルに立ち下がってから平均で約1秒経過すると立ち上がることが分かっているので、排出終了信号EXSがロウレベルに立ち下がってから10秒経過してもハイレベルに立ち上がらないのは異常が発生しているためと考えられるからである。   On the other hand, if the discharge end signal EXS falls before the EXS timer expires and the EXS timer has elapsed for 10 milliseconds, the process proceeds to the next step S8142, and the EXS timer is set to 10 seconds again. Then, it is determined whether the EXS timer has become zero, and if “No”, it is determined whether the discharge end signal EXS from the discharge control device 600 has risen (steps S8144, S8146). If “Yes”, it is determined whether or not the above-mentioned EXS timer has passed 200 msec (step S8148). If it is determined that the EXS timer (10 seconds) has expired before the ejection end signal EXS rises, the process proceeds to step S8172, where transmission reservation for the magnetic writing function is performed, and transmission reservation for the card ejection function is performed. (Step S8174) The effective display lamp S230 is turned off (Step S8176), “000” is displayed on the insertion balance indicator 220 (3-digit display) (S8178), and the process returns to Step S8102. Since it is known that the discharge end signal EXS from the discharge control device 600 rises on average after about 1 second from the fall of the structure of the ball discharge device 170, the discharge end signal EXS falls to the low level. The reason why it does not rise to a high level even after 10 seconds elapses is that an abnormality has occurred.

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

次のステップS8158では、カード残高(度数)を「1」だけ減らしてから、カード管理装置800に対する決済信号j(パルス)の出力カウンタを「1」だけ増加させる(ステップS8160)。それから、ステップS8162へ進んで払出回数を「1」だけ減算したのち、払出回数が「0」になったか否か判定し(ステップS8164)、"No"なら上記ステップS8156でセットしたタイマがタイムアップしたか判定し(ステップS8170)、タイムアップした時点で上記ステップS8130へ戻って上記手順を繰り返して再度玉貸要求信号BRQをアサートして排出制御装置600から応答を待つ。これによって、玉貸要求信号BRQが続けて発生される場合、前の信号が一旦立ち上がって100m秒経過してから玉貸要求信号BRQが再びロウレベルにアサートされるようになり、排出制御装置600は確実に玉貸要求信号BRQの立下りを検知することができる。   In the next step S8158, after the card balance (frequency) is decreased by “1”, the output counter of the settlement signal j (pulse) for the card management device 800 is increased by “1” (step S8160). Then, after proceeding to step S8162, the number of payouts is decremented by “1”, and then it is determined whether or not the number of payouts becomes “0” (step S8164). If “No”, the timer set in step S8156 times out. When the time is up, the process returns to step S8130 to repeat the above procedure, assert the ball lending request signal BRQ again, and wait for a response from the discharge control device 600. As a result, when the ball lending request signal BRQ is continuously generated, the ball lending request signal BRQ is again asserted to the low level after 100 msec after the previous signal rises once, and the discharge control device 600 The falling of the ball lending request signal BRQ can be reliably detected.

一方、ステップS8164で"Yes"すなわち払出回数が「0」のときはステップS8166へ移行してカード残金がゼロになったか否か判定し、ゼロのときはステップS8172へ移行して磁気書込ファンクションとカード排出ファンクションの送信予約(ステップS8174)をしてから、有効表示ランプ230を消灯(ステップS8176)、挿入残高表示器220(3桁表示)に「000」を表示させ(ステップS8178)、最初のステップS8102へ戻る。これによって、遊技中、カードをカードリーダ内に保持させておいても、カード残高が「0」になると自動的にカードがカードリーダより排出され、遊技者はカード残高が「0」になったことを速やかに知ることができる。また、磁気書込ファンクションの送信予約の際には、送信バッファ内に書込みファンクションコードとともにカード残高データをテキストとして入れておく。   On the other hand, if “Yes”, that is, the number of payouts is “0” in step S 8164, the process proceeds to step S 8166 to determine whether or not the card balance is zero, and if it is zero, the process proceeds to step S 8172 and the magnetic writing function. And the card discharge function transmission reservation (step S8174), the validity display lamp 230 is turned off (step S8176), and “000” is displayed on the insertion balance indicator 220 (three-digit display) (step S8178). Return to step S8102. As a result, 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 player has reached “0”. You can know this quickly. When making a transmission reservation for the magnetic writing function, card balance data is put in the transmission buffer as text together with the writing function code.

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

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

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

上記ステップS8216で"Yes"すなわち玉貸中と判定すると、ステップS8218へ進んで、ステップS8168で玉貸可能表示器126の点灯と同時にクリアされる玉貸中フラグを調べて玉貸処理が終了したか判定する。そして、この玉貸中フラグが"0"にクリアされるまでこのステップを繰り返し、玉貸処理が終了した時点でステップS8220へ移行して、カード残高が"0"か否か判定する。ここで、カード残高が"0"でないときは上記ステップS8206へ移行してこの玉貸可能表示器126を消灯させてから、磁気書込ファンクション送信予約およびカードの排出ファンクション送信予約等を行なった後、上記ステップS8202へ戻って次に返却ボタンがオンされるのを待つ。   If “Yes”, that is, ball lending is determined in step S 8216, the process proceeds to step S 8218, and the ball lending process is completed by checking the ball lending flag that is cleared simultaneously with the lighting of the ball lending possible indicator 126 in step S 8168. To determine. This step is repeated until the ball lending flag is cleared to “0”. When the ball lending process is completed, the process proceeds to step S8220, and it is determined whether or not the card balance is “0”. If the card balance is not "0", the process proceeds to step S8206 and the ball lending indicator 126 is turned off, and then the magnetic writing function transmission reservation and the card ejection function transmission reservation are performed. The process returns to step S8202 and waits for the return button to be turned on next time.

ステップS8220でカード残高が"0"と判定すると何もせずにステップS8202へ戻って次の返却ボタンの操作を待つ。カード残高が"0"になると、前述した玉貸処理のステップS8172,S8174(図18)で磁気書込ファンクションおよび排出ファンクションの送信予約がなされ、それを受けてカードリーダ内からカードが排出されるからである。   If it is determined in step S8220 that the card balance is "0", nothing is done and the process returns to step S8202 to wait for the next return button operation. When the card balance becomes “0”, transmission reservations for the magnetic writing function and the ejection function are made in steps S8172 and S8174 (FIG. 18) of the ball lending process described above, and the card is ejected from the card reader in response to the reservation. Because.

図20および図21には、上記メインルーチン(図16)のステップS8012で実行されるカードリーダ制御装置250との間のファンクション送受信処理の具体的手順の一例が示されている。
なお、送受信されるファンクションは、ファンクションコードの先頭にSTXコードがまた終端にETXコードが付加されたデータ形式で送信される。ファンクションコード以外にも送受信される信号として、ENQコード(送信の問合せ)とACKコード(肯定応答)とがあるが、これらは先頭のSTXコードも終端のETXコードも付加せずにコード単独で送信される。
20 and 21 show an example of a specific procedure of function transmission / reception processing with the card reader control device 250 executed in step S8012 of the main routine (FIG. 16).
The function to be transmitted / received is transmitted in a data format in which the STX code is added to the beginning of the function code and the ETX code is added to the end. In addition to the function code, there are ENQ code (transmission inquiry) and ACK code (acknowledgment) as signals to be transmitted / received, but these are transmitted by the code alone without adding the head STX code or the terminal ETX code. Is done.

このファンクション送受信処理が開始されると、まずステップS8300で上記玉貸処理(図17,18)またはカード返却処理(図19)によるファンクション送信予約の設定がなされているか否か判定する。そして、送信予約がなければステップS8350へ移行して、後述の受信割込み処理(図25)で設定されるENQ受信フラグを調べて、カードリーダ制御装置250からENQ(問合せコード)が入ってきているか判定する。   When the function transmission / reception process is started, first, in step S8300, it is determined whether or not the function transmission reservation is set by the ball lending process (FIGS. 17 and 18) or the card return process (FIG. 19). If there is no transmission reservation, the process proceeds to step S8350, where an ENQ reception flag set in a reception interrupt process (FIG. 25) described later is checked, and whether an ENQ (inquiry code) is received from the card reader controller 250. judge.

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

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

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

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

そこで、受信したファンクションが再送要求であったときは上記ステップS8302へ戻って送信のやりなおしを行ない、異常終了のときはステップS8342へ移行してカードリーダ異常を示すエラーコードを表示データバッファへ書き込んで、ステップS8344でそのコードを残高表示器122に表示させて制御動作を停止する。また、正常終了であれば、一連の送信処理が終了したものとしてステップS8300へ戻り、次の送信予約に対する処理を行ない、正常終了でないときはステップS8318へ戻って受信結果のファンクションコードの再受信を行なう。   Therefore, when the received function is a retransmission request, the process returns to step S8302 to perform transmission again, and when abnormally terminated, the process 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 it is normal termination, it is determined that a series of transmission processing has been completed, and the process returns to step S8300 to perform processing for the next transmission reservation. If not, the process returns to step S8318 to re-receive the reception result function code. Do.

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

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

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

図22には、上記メインルーチン(図16)のステップS8014で実行される決済信号出力処理の具体的手順の一例が示されている。
この処理が開始されると、まず図18の玉貸処理中のステップS8160でカウントアップする決済信号数カウンタを調べて決済信号数が"0"か否か判定する(ステップS8402)。ここで"No"すなわち決済信号数が1以上であると判定すると、ステップS8404へ進んでオン時間タイマを200m秒に設定し、決済信号jをハイレベルにアサートしてから、そのタイマがタイムアップするのを待つ(ステップS8406,S8408)。それから、ステップS8410へ移行してオフ時間タイマを200m秒に設定し、決済信号jをロウレベルにネゲートしてから、そのタイマがタイムアップするのを待つ(ステップS8412,S8414)。
FIG. 22 shows an example of a specific procedure of the settlement signal output process executed in step S8014 of the main routine (FIG. 16).
When this process is started, first, the settlement signal number counter counted up in step S8160 during the ball lending process in FIG. 18 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 settlement signals is 1 or more, the process proceeds to step S8404, the on-time timer is set to 200 milliseconds, the settlement signal j is asserted high, and the timer expires. (Steps S8406 and S8408). Then, the process proceeds to step S8410, the off-time timer is set to 200 milliseconds, the settlement signal j is negated to a low level, and the timer waits for the time to expire (steps S8412 and S8414).

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

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

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

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

図25の受信割込みは、カードリーダ制御装置250からの送信が入ってくることによって発生する。
この受信割込みが開始されると、ステップS8652,S8654で受信したコードがENQコードまたはACKコードであるか判定する。そして、受信したコードがENQコードであればステップS8656へ移行してENQ受信フラグを"1"にセットし、ACKコードであればステップS8658でACK受信フラグを"1"にセットして割込み処理を終了する。上記ENQ受信フラグおよびACK受信フラグは、前記ファンクション送受信処理フロー中で参照される。
The reception interrupt in FIG. 25 is generated when a transmission from the card reader control device 250 is received.
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. If the received code is an ENQ code, the process proceeds to step S8656 and the ENQ reception flag is set to "1". If the received code is an ACK code, the ACK reception flag is set to "1" in step S8658 and interrupt processing is performed. finish. The ENQ reception flag and the ACK reception flag are referred to in the function transmission / reception processing flow.

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

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

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

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

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

なお、ステップS8,S9で排出カウンタの値が「8」以上か否か判定することで排出異常を判断しているのは、この実施例では、排出要求がないにもかかわらず5個以上の球が排出されたときに異常と判定するようにしているためである。なお、この実施例では排出カウンタとして4ビットのカウンタを使用し不正監視用に「4」を設定(図49のステップS5702)しておいて、排出玉検出毎にカウントダウンさせるようにしているため、4ビット目を監視することにより、カウンタの値が「8」(2進数では1000)以上になったか否かをソフトウェア的に容易に知ることができる。   In this embodiment, the discharge abnormality is determined by determining whether or not the value of the discharge counter is “8” or more in steps S8 and S9. This is because an abnormality is determined when the ball is discharged. In this embodiment, a 4-bit counter is used as the discharge counter, and “4” is set for fraud monitoring (step S5702 in FIG. 49), and the countdown is performed every time the discharged ball is detected. By monitoring the fourth bit, it is possible to easily know whether or not the counter value has reached “8” (1000 in binary) or more.

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

上記タイマ起動後は、ステップS107でI/Oポートの初期化を行なって、排出制御装置600から玉貸制御装置500へ供給する玉貸可能信号RDYや排出終了信号EXS等の状態(初期レベル)を設定する。ちなみに、玉貸可能信号RDYの初期状態はロウレベルで、排出終了信号EXSの初期状態はハイレベルである。   After starting the timer, the I / O port is initialized in step S107, and the state (initial level) of the ball lending possible signal RDY, the discharge end signal EXS, etc. supplied from the discharge control device 600 to the ball lending control device 500 Set. Incidentally, the initial state of the ball lending possible signal RDY is low level, and the initial state of the discharge end signal EXS is high level.

次に、ステップS109でソフトタイマを2秒(カウント値「976」)に設定してから、上記ハードタイマからのオーバーフロー(桁上げ)信号を保持するフラグ(INT RQF)が"1"になるのを待ち(ステップS111)、"1"になるとステップS109で設定したソフトタイマを「1」だけ減らす(ステップS113)。そして、次のステップS115で上記ソフトタイマの値が「0」になったか判定し、"No"なら上記ステップS111へ戻ってタイマのカウントダウンを繰り返し行なう。電源投入後、システムの動作が安定化するのを待つためである。   Next, after setting the soft timer to 2 seconds (count value “976”) in step S109, the flag (INT RQF) for holding the overflow (carry) signal from the hard timer becomes “1”. (Step S111), and when it becomes “1”, the soft timer set in step S109 is decreased by “1” (step S113). Then, in the next step S115, it is determined whether or not the value of the soft timer has become “0”. If “No”, the process returns to step S111 to repeatedly count down the timer. This is to wait for the system operation to stabilize after the power is turned on.

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

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

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

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

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

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

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

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

それから、ステップS757へ進んで、受信データの全ビットの読込みが終了したか判定し、"No"ならステップS759へ移行して上記ステップS721でセットしたタイマ3がタイムアップしたか判定し、タイムアップしていなければステップS725へ戻って上記手順を繰り返し、全ビットの読込みを行なう。   Then, the process proceeds to step S757, where it is determined whether all bits of the received data have been read. If “No”, the process proceeds to step S759, where it is determined whether the timer 3 set in step S721 has timed out. If not, the process returns to step S725, and the above procedure is repeated to read all bits.

一方、ステップS759で、全ビットの読込みが終了する前にタイマ3がタイムアップしたと判定すると、本ルーチンを中断し、メインルーチンのステップS2へ戻って最初からやりなおす。また、上記ステップS749で、2度読みしたデータ同志が一致しなかったときは、ステップS761へ移行してデータエラーフラグを"1"にセットして本ルーチンを終了する。   On the other hand, if it is determined in step S759 that the timer 3 has timed out before all bits have been read, this routine is interrupted, and the process returns to step S2 of the main routine and starts again. In step S749, if the data read twice do not match, the process proceeds to step S761, the data error flag is set to "1", and this routine is terminated.

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

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

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

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

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

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

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

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

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

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

つぎに、再びバックグランド処理に入り1m秒待ちしてから本ルーチンが実行されると、排出センサ1の出力信号がハイレベルの状態を保持する限りステップS236で"No"すなわち変化無しと判定されて、ステップS248へ進み、上記ステップS244(またはS240)で設定したチャタリング除去タイマをデクリメント(−1)してから、該タイマがタイムアップしたか判定する(ステップS250)。ここでは、タイマが4m秒に設定されているので、まず"No"と判定されるため、ステップS246へ移行して排出フラグを"0"に設定し、ステップS262へ移行して"No"と判定されてステップS264をスキップして終了することになる。   Next, when this routine is executed after entering the background processing again and waiting for 1 msec, it is determined that the output signal of the discharge sensor 1 is “No”, that is, there is no change as long as the output signal of the discharge sensor 1 is kept at the high level. In step S248, the chattering elimination timer set in step S244 (or S240) is decremented (−1), and it is determined whether the timer has expired (step S250). Here, since the timer is set to 4 milliseconds, it is first determined “No”, so the process proceeds to step S246, the discharge flag is set to “0”, the process proceeds to step S262, and “No” is set. As a result of the determination, step S264 is skipped and the process ends.

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

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

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

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

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

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

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

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

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

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

このように上記ルーチンでは、玉貸要求信号BRQの出力レベルが2回続けてハイレベルまたはロウレベルであると判定すると、その出力状態を確定状態として記憶するため、玉貸要求信号BRQに1m秒以下のノイズがのっても誤って立下りエッジ検出フラグを"1"にセットすることはない。   As described above, in the above routine, when the output level of the ball lending request signal BRQ is determined to be the high level or the low level twice in succession, the output state is stored as a confirmed state, so that the ball lending request signal BRQ is 1 msec or less. The falling edge detection flag is not set to “1” by mistake even if the noise is applied.

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

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

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

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

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

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

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

このように上記ルーチンでは、クロックCKの出力レベルが2回続けてハイレベルまたはロウレベルであると判定すると、その出力状態を確定状態として記憶するため、クロックCKに1m秒以下のノイズがのっても誤って立下りエッジ検出フラグを"1"にセットすることはない。   As described above, in the above routine, when it is determined that the output level of the clock CK is the high level or the low level twice in succession, the output state is stored as a definite state, so that noise of 1 msec or less is added to the clock CK. However, the falling edge detection flag is not set to “1” by mistake.

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

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

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

本ルーチンが開始されると、先ずステップS402において球抜センサの立下りエッジ検出フラグが"1"であるか否かが判定される。ステップS402の判定結果が"No"のときは何もせずに次の処理に移行し、"Yes"のときはステップS404へ進み、上記球抜センサの立下りエッジ検出フラグを"0"にクリアしてから、球抜ソレノイドを励磁(ON)する(ステップS406)。すると、切換ゲート158(流路切換弁158と同意、以下同様。)が切り換えられて、球排出装置から排出された球は球抜き樋157を通って遊技盤背部に回収されるようになる。   When this routine is started, it is first determined in step S402 whether or not the falling edge detection flag of the ball removal sensor is “1”. If the determination result in step S402 is "No", the process proceeds to the next process without doing anything. If "Yes", the process proceeds to step S404, and the falling edge detection flag of the ball removal sensor is cleared to "0". Then, the ball removal solenoid is excited (ON) (step S406). Then, the switching gate 158 (which agrees with the flow path switching valve 158, the same shall apply hereinafter) is switched, and the balls discharged from the ball discharging device are collected on the back of the game board through the ball removal basket 157.

続くステップS408では、タイマ0を1秒に設定してから、バックグランド処理を行なう(ステップS410)。バックグランド処理によってステップS408で設定されたタイマ0の更新が1m秒毎に行なわれる。そこで、次のステップS412で上記タイマ0がタイムアップしたか判定し、"No"ならステップS410へ戻ってタイマ0の更新を繰り返すことで、1秒が経過するのを待つ。ステップS406で作動させた球抜ソレノイドにより切換ゲート158が完全に切り換えられるのを待つためである。   In subsequent step S408, the timer 0 is set to 1 second, and then background processing is performed (step S410). The timer 0 set in step S408 is updated every 1 msec by background processing. Therefore, in the next step S412, it is determined whether the timer 0 has timed up. If "No", the process returns to step S410 and repeats the update of the timer 0 to wait for 1 second. This is to wait for the switching gate 158 to be completely switched by the ball removal solenoid operated in step S406.

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

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

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

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

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

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

球抜きを中断させる際に上記ステップS442で排出系1と2の各排出カウンタに「1」をセットしているのは、排出センサの位置と排出ソレノイドにより駆動されるストッパの位置との関係を考慮して、流下する球に対して排出ソレノイド1と2を消磁させるタイミングを合わせて、ストッパ745と案内樋710との間に球が挾まれて球詰まりを起こすのを防止するためである。   When the ball removal is interrupted, “1” is set to the discharge counters of the discharge systems 1 and 2 in the above step S442 because the relationship between the position of the discharge sensor and the position of the stopper driven by the discharge solenoid is set. In consideration of this, the timing of demagnetizing the discharge solenoids 1 and 2 with respect to the ball that flows down is matched to prevent the ball from being caught between the stopper 745 and the guide rod 710 and causing the ball to become clogged.

ステップS458で排出ソレノイド1と2を消磁させた後は、ステップS460へ移行して、再びタイマ0を3秒に設定してから、バックグランド処理を行なう(ステップS462)。バックグランド処理によってステップS460で設定されたタイマ0の更新が1m秒毎に行なわれる。そこで、次のステップS464で上記タイマ0がタイムアップしたか判定し、"No"ならステップS462へ戻ってタイマ0の更新を繰り返すことで、3秒が経過するのを待つ。そして、3秒経過した時点で球抜きソレノイドをオフさせて、切換ゲート158を元の状態に切り換え、球排出装置170から排出された球が供給皿の方へ誘導されるようにする。球排出装置170から切換ゲート158までの距離を考慮したもので、これによって球排出装置170から排出された球が切換ゲート158に達する前に、ゲートが切り換えられるのを防止することができる。
続くステップS470,S472では、排出系1と2の各排出カウンタに不正監視用玉数として「4」を設定して当該ルーチンを終了する。
After de-energizing the discharge solenoids 1 and 2 in step S458, the process proceeds to step S460, the timer 0 is set to 3 seconds again, and background processing is performed (step S462). The timer 0 set in step S460 is updated every 1 ms by the background processing. Therefore, in the next step S464, it is determined whether the timer 0 has timed up. If “No”, the process returns to step S462 and repeats the update of the timer 0 to wait for 3 seconds to elapse. When 3 seconds have elapsed, the ball removal solenoid is turned off, and the switching gate 158 is switched back to the original state so that the balls discharged from the ball discharge device 170 are guided toward the supply tray. The distance from the ball discharge device 170 to the switching gate 158 is taken into consideration, and this prevents the ball discharged from the ball discharge device 170 from being switched before reaching the switching gate 158.
In subsequent steps S470 and S472, “4” is set as the number of balls for fraud monitoring in the discharge counters of the discharge systems 1 and 2, and the routine ends.

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

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

図44には、図43のステップS501にて行なわれる排出条件判定処理ルーチンのフローチャートが示されている。
このルーチンでは、まずステップS5011で後述のセーフ玉排出処理ルーチン(図49)のステップS5708で設定される排出ウェイトタイマが起動中か否か判定し、"Yes"ならステップS5019で排出可能を示すフラグを"0"にクリアして本ルーチンを終了する。また、"No"なら、ステップS5012でタイマ0を50m秒に設定してから、バックグランド処理(ステップS5013)を行なってステップS5012で設定されたタイマ0を更新する。次のステップS5014では、セーフセンサ読込み処理(図34)によってセットされるセーフセンサフラグを調べて"1"ならステップS5015,5016で排出センサ1および2の出力レベルがロウレベル(玉有り)か否か判定する。そして、いずれのセンサも出力がロウレベルならステップS5017へ進んで、上記ステップS5012で設定したタイマ0がタイムアップしたか判定し、"No"ならステップS5013へ戻ってタイマ0の更新を繰り返すことで、50m秒が経過するのを待つ。そして、タイマ0がタイムアップした時点でステップS5018へ進み、排出可能フラグを"1"にセットして本ルーチンを終了する。一方、上記ステップS5014,S5015,S5016でセーフセンサフラグが"0"または排出センサ1または2のいずれかの出力がハイレベルと判定すると、ステップS5019へ移行して、排出可能を示すフラグを"0"にリセットして本ルーチンを終了する。
この排出可能フラグは、上述したように図43の払出処理ルーチンのステップS502で参照される。
FIG. 44 shows a flowchart of the discharge condition determination processing routine performed in step S501 of FIG.
In this routine, first, in step S5011, it is determined whether or not the discharge weight timer set in step S5708 of the safe ball discharge processing routine (FIG. 49) described later is in operation. If “Yes”, a flag indicating that discharge is possible in step S5019. Is cleared to "0" and this routine is terminated. If “No”, the timer 0 is set to 50 milliseconds in step S5012, and then background processing (step S5013) is performed to update the timer 0 set in step S5012. In the next step S5014, the safe sensor flag set by the safe sensor reading process (FIG. 34) is checked, and if it is “1”, whether or not the output level of the discharge sensors 1 and 2 is low level (with ball) in steps S5015 and 5016. judge. If any of the sensors outputs a low level, the process proceeds to step S5017 to determine whether the timer 0 set in step S5012 has expired. If “No”, the process returns to step S5013 to repeat the update of timer 0. Wait for 50 milliseconds to elapse. Then, when the timer 0 expires, the process proceeds to step S5018, the discharge enable flag is set to “1”, and this routine is ended. On the other hand, if it is determined in steps S5014, S5015, and S5016 that the safe sensor flag is “0” or the output of either the discharge sensor 1 or 2 is high, the process proceeds to step S5019, and the flag indicating that discharge is possible is set to “0”. Reset to "End this routine.
This dischargeable flag is referred to in step S502 of the payout processing routine of FIG. 43 as described above.

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

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

一方、上記ステップS5037またはS5045で、受信が終了する前にタイマ3がタイムアップしたと判定したとき、あるいはステップS5047でデータエラーフラグが"1"と判定したり、ステップS5049で2回の受信データが不一致と判定したとき、およびステップS5051での判定で受信データが賞球数データでなかったときは、ステップS5055へ移行して送信バッファに「再送要求」コマンドが設定されているか判定する。ここで、"Yes"ならステップS5059へジャンプして再送要求回数を「1」だけ減算し、ステップS5055で"No"の時はステップS5057で、送信バッファに「再送要求」コマンドを書込みかつ再送信回数を「4」に設定してから、ステップS5059へ移行して再送要求回数を「1」だけ減算する。そして、次のステップS5061で再送信回数が「0」になったか判定し、"No"なら上記ステップS5033へ戻って送信処理からやりなおす。また、ステップS5061での判定で"Yes"すなわち再送信回数が「0」になったときは図26のメインルーチンへ戻って最初からやりなおす。
なお、上記処理では受信したデータについてのパリティエラーのチェックが記載されていないが、パリティエラーがなかったか併せてチェックするようにしてもよい。
On the other hand, when it is determined in step S5037 or S5045 that the timer 3 has timed out before the end of reception, or in step S5047, the data error flag is determined to be “1”, or in step S5049, the received data is received twice. If the received data is not the winning ball number data in the determination in step S5051, the process proceeds to step S5055 to determine whether the “retransmission request” command is set in the transmission buffer. If "Yes", the process jumps to step S5059 and subtracts "1" from the number of retransmission requests. If "No" in step S5055, the "retransmission request" command is written and retransmitted in the transmission buffer in step S5057. After setting the number of times to “4”, the process proceeds to step S5059, and the number of retransmission requests is decremented by “1”. Then, in the next step S5061, it is determined whether the number of retransmissions is “0”. If “No”, the process returns to step S5033 and starts again from the transmission process. If “Yes”, that is, the number of retransmissions is “0” in the determination in step S5061, the process returns to the main routine of FIG. 26 and starts again.
In the above process, the parity error check for the received data is not described, but it may be checked together with the parity error.

図46には、図43のステップS504にて行なわれる賞球数設定処理ルーチンのフローチャートが示されている。
本ルーチンが開始されると、まずステップS5401で排出カウンタ1および2を一旦「0」にセットしてから、上記ルーチンで受信した賞球数データが「9」以上か判定する(ステップS5402)。ここで、賞球数データが「9」以上ならステップS5403へ進んで、排出カウンタ1(排出1カウンタと同義、以下同様)に、賞球数が奇数のときは(賞球数+1)の2分の1よりも「1」だけ少ない数を、また賞球数が偶数のときは賞球数の2分の1をセットする。また、排出カウンタ2(排出2カウンタと同義、以下同様)には、賞球数が奇数のときは(賞球数+1)の2分の1の数を、また賞球数が偶数のときは賞球数の2分の1をセット(ステップS5404)してから、排出ソレノイド1と2を励磁させる(ステップS5405)。これによって、排出すべき賞品球を2つの排出系にほぼ均等に割り振って排出させることができる。
FIG. 46 shows a flowchart of the winning ball number setting processing routine performed in step S504 of FIG.
When this routine is started, the discharge counters 1 and 2 are first set to “0” in step S5401, and then it is determined whether the winning ball number data received in the routine is “9” or more (step S5402). Here, if the winning ball number data is “9” or more, the process proceeds to step S5403. If the winning ball number is an odd number, 2 (award winning ball number + 1) is 2 in the discharging counter 1 (synonymous with the discharging 1 counter, the same applies hereinafter). A number smaller by one than “1” is set, and if the number of prize balls is an even number, half the number of prize balls is set. In addition, the discharge counter 2 (synonymous with the discharge 2 counter, the same shall apply hereinafter) indicates that the number of prize balls is an odd number (the number of prize balls + 1), and the number of prize balls is an even number. After setting half the number of prize balls (step S5404), the discharge solenoids 1 and 2 are excited (step S5405). As a result, the prize balls to be discharged can be allocated to the two discharge systems almost uniformly and discharged.

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

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

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

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

賞球排出表示器点灯後、35m秒が経過したときにステップS5510へ進み、タイマ0を3秒に設定してから、バックグランド処理を行ないタイマ0を更新する(ステップS5512)。次に、排出系1について賞球排出終了判定処理(図48参照)を行なってから当該処理内で設定される排出終了フラグを調べて、排出系1の賞球排出が終了したか判定する(ステップS5514,S5516)。そして、"Yes"ならステップS5518へ進んで排出ソレノイド1をオフさせ、"No"ならステップS5518をスキップしてステップS5520へ移行して排出系2について賞球排出終了判定処理(図48参照)を行なってから当該処理内で設定される排出終了フラグを調べて、排出系2の賞球排出が終了したか判定する(ステップS5522)。   When 35 msec elapses after the prize ball discharge indicator is turned on, the process proceeds to step S5510, the timer 0 is set to 3 seconds, the background process is performed, and the timer 0 is updated (step S5512). Next, after performing a prize ball discharge end determination process (see FIG. 48) for the discharge system 1, a discharge end flag set in the process is checked to determine whether or not the prize ball discharge of the discharge system 1 has ended ( Steps S5514 and S5516). If "Yes", the process proceeds to step S5518 to turn off the discharge solenoid 1. If "No", step S5518 is skipped and the process proceeds to step S5520 to perform a prize ball discharge end determination process (see FIG. 48) for the discharge system 2. Thereafter, the discharge end flag set in the process is checked to determine whether or not the prize ball discharge of the discharge system 2 has ended (step S5522).

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

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

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

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

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

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

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

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

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

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

上記ステップS5720で球抜きソレノイドを励磁させた後は、ステップS5722へ移行して、上記玉無しフラグが"1"になるまで、すなわち入賞球がセーフセンサから流出したのを確認するまで上記セーフセンサ玉無し確認処理(図50)を繰り返し実行する(ステップS5724)。そして、上記手順を繰り返しているうちに玉無しフラグが"1"になったなら、タイマ1を900m秒に設定してから、バックグランド処理を行なってタイマを更新し、該タイマがタイムアップした時点で本ルーチンを終了する(ステップS5726,S5728,S5730)。   After energizing the ball removal solenoid in step S5720, the process proceeds to step S5722, and the safe sensor ball is not detected until the no-ball flag is "1", that is, until it is confirmed that the winning ball has flowed out of the safe sensor. The confirmation process (FIG. 50) is repeatedly executed (step S5724). If the ballless flag becomes “1” while repeating the above procedure, the timer 1 is set to 900 milliseconds, the background processing is performed, the timer is updated, and the timer is timed up Then, this routine is finished (steps S5726, S5728, S5730).

上記セーフ玉排出処理ルーチン中で行なわれる上記セーフセンサ玉無し確認処理は、図50に示すごとく、バックグランド処理(ステップS5752,S5756,S5760,S5764,S5768)でセーフセンサの読込みを行ない、次にセーフセンサフラグをチェック(ステップS5754,S5758,S5762,S5766,S5770)してセーフセンサ181が入賞球を検出しているかを5回繰り返し、1度でもフラグが"1"すなわち入賞球を検出していると、玉無しフラグを"0"にクリア(ステップS5774)し、5回ともセーフセンサフラグが"0"の時に入賞球の玉無しフラグを"1"にセットする(ステップS5772)。   As shown in FIG. 50, the safe sensor ball absence confirmation process performed in the safe ball discharge process routine reads the safe sensor in the background process (steps S5752, S5756, S5760, S5764, S5768), and then performs the safe The sensor flag is checked (steps S5754, S5758, S5762, S5766, S5770) and whether the safe sensor 181 detects a winning ball is repeated five times. The flag is “1”, that is, a winning ball is detected even once. Then, the no-ball flag is cleared to “0” (step S5774), and the no-ball flag of the winning ball is set to “1” when the safe sensor flag is “0” for all five times (step S5772).

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

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

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

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

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

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

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

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

本ルーチンが開始されると、先ずステップS6502において貸玉排出表示器113(貸玉排出表示ランプ113と同意、以下同様。)を点灯させ、玉貸し制御装置500に対する排出終了信号EXSをロウレベルにアサートした後、ステップS6504へ進み、タイマ0を35m秒に設定してから、バックグランド処理を行なう(ステップS6506)。バックグランド処理によってステップS6504で設定されたタイマ0の更新が1m秒毎に行なわれる。そこで、次のステップS6508で上記タイマ0がタイムアップしたか判定し、"No"ならステップS6506へ戻ってタイマ0の更新を繰り返すことで、35m秒が経過するのを待つ。ステップS6502で点灯させた貸玉排出表示器113が完全に明るくなるのを待つためである。   When this routine is started, first, in step S6502, the ball rental discharge indicator 113 (which agrees with the ball rental discharge display lamp 113, the same applies hereinafter) is turned on, and the discharge end signal EXS for the ball rental control device 500 is asserted to a low level. After that, the process proceeds to step S6504, the timer 0 is set to 35 milliseconds, and then background processing is performed (step S6506). The timer 0 set in step S6504 is updated every 1 msec by background processing. Therefore, in the next step S6508, it is determined whether the timer 0 has timed up. If "No", the process returns to step S6506 and repeats the update of the timer 0 to wait for 35 milliseconds to elapse. This is to wait for the ball-carrying discharge indicator 113 lit in step S6502 to become completely bright.

貸玉排出表示器点灯後、35m秒が経過したときにステップS6510へ進み、タイマ0を3秒に設定してから、バックグランド処理を行ないタイマ0を更新する(ステップS6512)。次に、排出系1について貸出排出終了判定処理(図56参照)を行なってから当該処理内で設定される排出終了フラグを調べて、排出系1の貸出排出が終了したか判定する(ステップS6514,S6516)。そして、"Yes"ならステップS6518へ進んで排出ソレノイド1をオフさせ、"No"ならステップS6518をスキップしてステップS6520へ移行して排出系2について貸出排出終了判定処理(図56参照)を行なってから当該処理内で設定される排出終了フラグを調べて、排出系2の貸出排出が終了したか判定する(ステップS6522)。   When 35 msec elapses after the ball rental discharge indicator is turned on, the process proceeds to step S6510, the timer 0 is set to 3 seconds, the background process is performed, and the timer 0 is updated (step S6512). Next, after performing the loan discharge end determination process (see FIG. 56) for the discharge system 1, the discharge end flag set in the process is checked to determine whether the loan discharge of the discharge system 1 has ended (step S6514). , S6516). If "Yes", the process proceeds to step S6518 to turn off the discharge solenoid 1. If "No", step S6518 is skipped and the process proceeds to step S6520 to perform a loan discharge end determination process for the discharge system 2 (see FIG. 56). Thereafter, the discharge end flag set in the processing is checked to determine whether or not the loan discharge of the discharge system 2 has ended (step S6522).

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

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

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

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

ただし、ステップS6534で排出系1と2の排出カウンタをそれぞれ「1」だけ減算しても排出系1または2のいずれか一方の系について貸出排出が終了していないとステップS6538,S6542で判定されると、ステップS6544へ移行して、再びタイマ0を3秒に設定する。それから、バックグランド処理を行ないタイマ0を更新(ステップS6546)した後、ステップS6548に進み、排出センサ1が待機球の存在を検出しているか判定し、"Yes"ならステップS6550へ進んで排出センサ2が待機球の存在を検出しているか判定する。そして、ここでも"Yes"なら次のステップS6552へ進み、ステップS6544で設定されたタイマ0がタイムアップしたか判定し、"No"なら上記ステップS6546へ戻って上記手順を繰り返し、"Yes"なら排出異常と判断して次のステップS6554へ進み、正常終了フラグを"0"にクリアして終了する。排出センサ1と2が待機球の存在を検出しているにもかかわらず3秒以内に貸出排出が終了しないのは排出ソレノイド等に故障があるためと考えられるからである。   However, even if the discharge counters of the discharge systems 1 and 2 are decremented by “1” in step S 6534, it is determined in steps S 6538 and S 6542 that the loan discharge has not been completed for either the discharge system 1 or 2. Then, the process proceeds to step S6544, and the timer 0 is set to 3 seconds again. Then, after background processing is performed and timer 0 is updated (step S6546), the process proceeds to step S6548, where it is determined whether the discharge sensor 1 detects the presence of a waiting ball, and if “Yes”, the process proceeds to step S6550. 2 determines whether the presence of a waiting ball is detected. If "Yes" again, the process proceeds to the next step S6552, and it is determined whether the timer 0 set in step S6544 has timed up. If "No", the process returns to step S6546 and the above procedure is repeated. It is determined that the discharge is abnormal, and the process proceeds to the next step S6554, where the normal end flag is cleared to “0” and the process ends. Even though the discharge sensors 1 and 2 detect the presence of the standby ball, the reason why the rental discharge is not completed within 3 seconds is considered that there is a failure in the discharge solenoid or the like.

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

図56は、上述した貸出排出処理(図55)のステップS6514、S6520、S6536およびS6540にて行われる貸出排出終了判定処理のサブルーチンを示すフローチャートである。
この判定処理は、先ずステップS6562で排出カウンタの値が「0」か否か判定し、"No"ならカウント値が「14」以上か判定する(ステップS6564)。そして、カウント値が「0」又は「14」以上のときはステップS6566へ移行して貸出終了フラグを"1"にセットして終了する。また、ステップS6562およびS6564のいずれの判定も"No"のときは、ステップS6568へ進んで排出終了フラグを"0"にクリアして終了する。
FIG. 56 is a flowchart showing a subroutine of the loan discharge end determination process performed in steps S6514, S6520, S6536, and S6540 of the above-described loan discharge process (FIG. 55).
In this determination process, first, in step S6562, it is determined whether or not the value of the discharge counter is “0”. If “No”, it is determined whether the count value is “14” or more (step S6564). When the count value is “0” or “14” or more, the process proceeds to step S6566, the lending end flag is set to “1”, and the process ends. If both determinations in steps S6562 and S6564 are “No”, the process proceeds to step S6568 and the discharge end flag is cleared to “0” and the process ends.

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

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

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

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

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

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

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

そして、排出制御装置600は、排出センサ730a,730bの検出信号を監視して排出数が25個(100円分)になった時点で排出ソレノイド741a,741bの駆動を停止させるとともに、玉貸し制御装置500に対する排出終了信号EXSをハイレベルに変化させる(タイミングt5)。玉貸し制御装置500は、排出終了信号EXSの立上りを検知すると、75m秒おいてから一旦上記玉貸し要求信号BRQをハイレベルにネゲートさせる(タイミングt6)。   The discharge control device 600 monitors the detection signals of the discharge sensors 730a and 730b and stops driving the discharge solenoids 741a and 741b when the number of discharges reaches 25 (for 100 yen), and ball lending control. The discharge end signal EXS for the apparatus 500 is changed to a high level (timing t5). When detecting the rise of the discharge end signal EXS, the ball lending control device 500 once negates the ball lending request signal BRQ to a high level after 75 msec (timing t6).

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

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

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

また、玉貸し制御装置500は貸玉排出処理に入ると玉貸し数の回数だけ貸玉排出を済ますまで、図18のステップS8164,S8170,S8130のループを繰り返し、図17のステップS8112を通過しないので、玉貸し要求信号BRQをロウレベルにアサートした後に変換ボタン123が押されてもこれを検知しないため、この間の変換スイッチのオンは無効とされる。   Further, when the ball lending control device 500 enters the ball lending discharge process, the loop of steps S8164, S8170, and S8130 in FIG. 18 is repeated until the number of ball lending is completed, and step S8112 in FIG. Therefore, even if the conversion button 123 is pressed after the ball lending request signal BRQ is asserted to the low level, this is not detected, so that the conversion switch is turned on during this period.

なお、上記実施例では、排出制御装置から遊技盤制御装置に対してカードの挿入、排出音の発生要求信号を送信するように構成されているが、この発明はそれに限定されず、玉貸し制御装置から直接遊技盤制御装置に対してカードの挿入、排出音の発生要求信号を送信するように構成してもよい。   In the above-described embodiment, the discharge control device is configured to transmit a card insertion / discharge sound generation request signal to the game board control device. However, the present invention is not limited thereto, and ball lending control is performed. You may comprise so that the insertion request | requirement signal of a card insertion and discharge sound may be transmitted with respect to a game board control apparatus directly from an apparatus.

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

さらに、上記実施例では、貸し玉への変換ボタン123や返却ボタン124、残高表示器122等が供給皿120の上面の操作パネル121に設けられているが、これらの位置は供給皿に限定されず、パチンコ遊技機の前面の任意の位置あるいは球貸機200の前面に設けることができる。   Furthermore, in the above embodiment, the lending ball conversion button 123, the return button 124, the balance indicator 122 and the like are provided on the operation panel 121 on the upper surface of the supply tray 120, but these positions are limited to the supply tray. First, it can be provided at an arbitrary position on the front surface of the pachinko gaming machine or on the front surface of the ball lending machine 200.

また、実施例では遊技機と遊技機との間に配置された玉貸機にカードリーダが内蔵されているが、カードリーダはパチンコ遊技機100の受け皿141の一側等に配設して遊技機に内蔵させておくように構成しても良い。   Further, in the embodiment, the card reader is built in the ball lending machine arranged between the gaming machines, but the card reader is arranged on one side of the tray 141 of the pachinko gaming machine 100 or the like. It may be configured to be built in the machine.

本発明に係る遊技機としてのカード式パチンコ遊技機の構成例を示す斜視図である。It is a perspective view which shows the structural example of the card type pachinko gaming machine as a gaming machine according to the present invention. 本発明に係るパチンコ遊技機の裏機構の構成例を示す背面図である。It is a rear view which shows the structural example of the back mechanism of the pachinko game machine which concerns on this invention. 球排出装置170の一実施例を示す断面正面図である。It is a sectional front view showing one example of ball discharge device 170. パチンコ遊技機100および玉貸しユニットとしての玉貸機200の制御系の一実施例を示すブロック図である。It is a block diagram which shows one Example of the control system of the pachinko machine 100 and the ball lending machine 200 as a ball lending unit. 遊技盤制御回路としての遊技盤制御装置400の一構成例を示すブロック図である。It is a block diagram which shows one structural example of the game board control apparatus 400 as a game board control circuit. 遊技盤制御装置400を構成する通信手段の一構成例を示すブロック図である。3 is a block diagram showing an example of a configuration of a communication means that constitutes the game board control device 400. FIG. 遊技盤制御装置400の具体的構成例を示すシステム構成図である。2 is a system configuration diagram showing a specific configuration example of a game board control device 400. FIG. 排出制御回路としての排出制御装置600の一構成例を示すブロック図である。It is a block diagram which shows the example of 1 structure of the discharge control apparatus 600 as a discharge control circuit. 排出制御装置600の具体的構成例を示すシステム構成図である。2 is a system configuration diagram illustrating a specific configuration example of a discharge control device 600. FIG. 玉貸制御回路としての玉貸制御装置500の一構成例を示すブロック図である。It is a block diagram which shows the example of 1 structure of the ball lending control apparatus 500 as a ball lending control circuit. 玉貸制御装置500の具体的構成例を示すシステム構成図である。It is a system block diagram which shows the specific structural example of the ball lending control apparatus 500. 遊技盤制御装置400によって行なわれる遊技盤全体の制御手順の一例を示すフローチャートである。4 is a flowchart illustrating an example of a control procedure for the entire game board performed by the game board control device 400; 図12のフロー中におけるクロック信号出力処理の制御手順の一例を示すフローチャートである。13 is a flowchart illustrating an example of a control procedure of clock signal output processing in the flow of FIG. 図12のフロー中における賞球スイッチ入力処理の制御手順の一例を示すフローチャートである。It is a flowchart which shows an example of the control procedure of a prize ball switch input process in the flow of FIG. 図12のフロー中における送受信処理の制御手順の一例一部のを示すフローチャートである。It is a flowchart which shows a part of example of the control procedure of the transmission / reception process in the flow of FIG. 図12のフロー中における送受信処理の制御手順の一例一部のを示すフローチャートである。It is a flowchart which shows a part of example of the control procedure of the transmission / reception process in the flow of FIG. 図12のフロー中における送受信処理の制御手順の一例一部のを示すフローチャートである。It is a flowchart which shows a part of example of the control procedure of the transmission / reception process in the flow of FIG. 図12のフロー中における送受信処理の制御手順の一例一部のを示すフローチャートである。It is a flowchart which shows a part of example of the control procedure of the transmission / reception process in the flow of FIG. 玉貸し制御装置のメインルーチンの概略を示すフローチャートである。It is a flowchart which shows the outline of the main routine of a ball lending control apparatus. 上記メインルーチン(図16)のステップS8008で実行される玉貸処理の具体的手順の一部(前半)を示すフローチャートである。It is a flowchart which shows a part (first half) of the specific procedure of the ball lending process performed by step S8008 of the said main routine (FIG. 16). 上記メインルーチン(図16)のステップS8008で実行される玉貸処理の具体的手順の一部(後半)を示すフローチャートである。It is a flowchart which shows a part (latter half) of the specific procedure of the ball lending process performed by step S8008 of the said main routine (FIG. 16). 上記メインルーチン(図16)のステップS8010で実行されるカードの返却処理の具体的手順の一部を示すフローチャートである。It is a flowchart which shows a part of specific procedure of the return process of the card | curd performed by step S8010 of the said main routine (FIG. 16). 上記メインルーチン(図16)のステップS8012で実行されるファンクション送受信処理の具体的手順の一部(前半)を示すフローチャートである。It is a flowchart which shows a part (first half) of the specific procedure of the function transmission / reception process performed by step S8012 of the said main routine (FIG. 16). 上記メインルーチン(図16)のステップS8012で実行されるファンクション送受信処理の具体的手順の一部(後半)を示すフローチャートである。It is a flowchart which shows a part (second half) of the specific procedure of the function transmission / reception process performed by step S8012 of the said main routine (FIG. 16). 上記メインルーチン(図16)のステップS8014で実行される決済信号出力処理の具体的手順の一例を示すフローチャートである。It is a flowchart which shows an example of the specific procedure of the payment signal output process performed by step S8014 of the said main routine (FIG. 16). 図16のメインルーチンに優先して玉貸し制御装置500によって所定時間(例えば1msec)経過毎に行なわれるタイマ割込処理の手順を示すフローチャートである。FIG. 17 is a flowchart showing a timer interrupt process performed every predetermined time (for example, 1 msec) by the ball lending control device 500 in preference to the main routine of FIG. 16. 図16のメインルーチンに優先して玉貸し制御装置500によって行なわれる送信割込処理の手順を示すフローチャートである。FIG. 17 is a flowchart showing a procedure of a transmission interruption process performed by the ball lending control device 500 in preference to the main routine of FIG. 16. 図16のメインルーチンに優先して玉貸し制御装置500によって行なわれる受信割込処理の手順を示すフローチャートである。FIG. 17 is a flowchart showing a procedure of a reception interrupt process performed by the ball lending control device 500 in preference to the main routine of FIG. 16. 排出制御装置600による排出制御処理のメインルーチンの一例を示すフローチャートである。5 is a flowchart illustrating an example of a main routine of discharge control processing by the discharge control device 600. 上記メインルーチン(図26)のステップS0で実行される初期化処理の具体的手順の一例を示すフローチャートである。It is a flowchart which shows an example of the specific procedure of the initialization process performed by step S0 of the said main routine (FIG. 26). 上記初期化処理ルーチン(図27)のステップS117で実行される回線テスト処理の具体的手順の一例を示すフローチャートである。It is a flowchart which shows an example of the specific procedure of the line test process performed by step S117 of the said initialization process routine (FIG. 27). 上記回線テスト処理、図40のカード挿排確認処理および図45の賞球数要求処理ルーチンで実行される送信処理の具体的手順の一例を示すフローチャートである。FIG. 46 is a flowchart showing an example of a specific procedure of a transmission process executed in the line test process, the card insertion / removal confirmation process of FIG. 40, and the winning ball number request process routine of FIG. 45; 上記回線テスト処理ルーチンで実行される受信処理の具体的手順の一例を示すフローチャートである。It is a flowchart which shows an example of the specific procedure of the reception process performed by the said line test process routine. 上記メインルーチン(図26)のステップS1で実行されるバックグランド処理の具体的手順の一例を示すフローチャートである。It is a flowchart which shows an example of the specific procedure of the background process performed by step S1 of the said main routine (FIG. 26). 上記バックグランド処理(図31)のステップS21で実行される1m秒待ち処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of the 1 m second waiting process performed by step S21 of the said background process (FIG. 31). 上記バックグランド処理(図31)のステップS22で実行されるタイマ更新処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of the timer update process performed by step S22 of the said background process (FIG. 31). 上記バックグランド処理(図31)のステップS26で実行されるセーフセンサの読込み処理ルーチンのフローチャートである。FIG. 32 is a flowchart of a safe sensor reading process routine executed in step S26 of the background process (FIG. 31). 上記バックグランド処理(図31)のステップS27で実行される排出センサの読込み処理ルーチンのフローチャートである。It is a flowchart of the reading process routine of the discharge sensor executed in step S27 of the background process (FIG. 31). 上記バックグランド処理(図31)のステップS29で実行される球抜センサ750の読込み処理ルーチンのフローチャートである。It is a flowchart of a reading process routine of the ball removal sensor 750 executed in step S29 of the background process (FIG. 31). 上記バックグランド処理(図31)のステップS30で実行される玉貸要求信号の入力処理のルーチンを示すフローチャートである。It is a flowchart which shows the routine of the input process of the ball lending request signal performed by step S30 of the said background process (FIG. 31). 上記バックグランド処理(図31)のステップS31で実行されるカード有無信号の入力処理のルーチンを示すフローチャートである。It is a flowchart which shows the routine of the input process of the card | curd presence / absence signal performed by step S31 of the said background process (FIG. 31). 上記バックグランド処理(図31)のステップS32で実行されるクロックの入力処理のルーチンを示すフローチャートである。It is a flowchart which shows the routine of the input process of the clock performed by step S32 of the said background process (FIG. 31). 上記メインルーチン(図26)のステップS2で実行されるカード挿排確認処理の具体的手順の一例を示すフローチャートである。It is a flowchart which shows an example of the specific procedure of the card | curd insertion / extraction confirmation process performed by step S2 of the said main routine (FIG. 26). 上記メインルーチン(図26)のステップS5で実行される球抜き処理(前半)の具体的手順の一例を示すフローチャートである。It is a flowchart which shows an example of the specific procedure of the ball removal process (first half) performed by step S5 of the said main routine (FIG. 26). 上記メインルーチン(図26)のステップS5で実行される球抜き処理(後半)の具体的手順の一例を示すフローチャートである。It is a flowchart which shows an example of the specific procedure of the ball removal process (second half) performed by step S5 of the said main routine (FIG. 26). 上記メインルーチン(図26)のステップS7で実行される払出処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of the payout process performed by step S7 of the said main routine (FIG. 26). 上記払出処理(図43)のステップS501で実行される排出条件判定処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the discharge condition determination process performed by step S501 of the said payout process (FIG. 43). 上記払出処理(図43)のステップS503で実行される賞球数要求処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of a prize ball number request process performed by step S503 of the said payout process (FIG. 43). 上記払出処理(図43)のステップS504で実行される賞球設定処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of a prize ball setting process performed by step S504 of the said payout process (FIG. 43). 上記払出処理(図43)のステップS505にて行われる賞球排出処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of a prize ball discharge | emission process performed in step S505 of the said payout process (FIG. 43). 上記賞球排出処理(図47)にて行われる賞球排出終了判定処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the prize ball discharge | emission end determination process performed by the said prize ball discharge process (FIG. 47). 上記払出処理(図43)のステップS507で実行されるセーフ玉排出処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the safe ball | bowl discharge | emission process performed by step S507 of the said payout process (FIG. 43). 上記セーフ玉排出処理(図49)にて行われるセーフセンサ玉無し確認処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the safe sensor ball absence confirmation process performed in the said safe ball discharge process (FIG. 49). 上記払出処理(図43)のステップS508で実行される賞球排出終了処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of a prize ball discharge | emission end process performed by step S508 of the said payout process (FIG. 43). 上記メインルーチン(図26)のステップS10で実行される貸玉処理のサブルーチンの一部を示すフローチャートである。It is a flowchart which shows a part of subroutine of the ball lending process performed by step S10 of the said main routine (FIG. 26). 上記貸玉処理(図52)のステップS150にて実行される貸出条件判定処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the lending condition determination process performed in step S150 of the said ball lending process (FIG. 52). 上記貸玉処理(図52)のステップS152にて実行される貸出玉数設定処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the lending ball number setting process performed in step S152 of the said ball lending process (FIG. 52). 上記貸玉処理(図52)のステップS156にて実行される貸出排出処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the loan discharge | emission process performed in step S156 of the said ball | bowl rental process (FIG. 52). 上記貸出排出処理(図55)にて実行される貸出排出終了判定処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the loan discharge | emission end determination process performed in the said loan discharge | emission process (FIG. 55). 上記貸玉処理(図52)のステップS158にて実行される貸出排出終了処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the loan discharge | emission end process performed in step S158 of the said ball lending process (FIG. 52). 上記玉貸し制御装置500と排出制御装置600との間で送受信される信号の具体的なタイミングを示すタイムチャートである。It is a time chart which shows the specific timing of the signal transmitted / received between the said ball lending control apparatus 500 and the discharge control apparatus 600. FIG. 上記遊技盤制御装置400と排出制御装置600との間で送受信される信号の排出制御装置側における具体的なタイミングを示すタイムチャートである。7 is a time chart showing specific timings on the discharge control device side of signals transmitted and received between the game board control device 400 and the discharge control device 600. 上記遊技盤制御装置400と排出制御装置600との間で送受信される信号の遊技盤制御装置側における具体的なタイミングを示すタイムチャートである。4 is a time chart showing specific timing on the game board control device side of signals transmitted and received between the game board control device 400 and the discharge control device 600.

符号の説明Explanation of symbols

100 パチンコ遊技機
120 供給皿
122 残高表示器
123 玉貸し変換ボタン
170 球排出装置
180 入賞球分離検出装置
200 玉貸し機
211 カード挿排口
220 挿入残高表示器
230 有効表示ランプ
400 遊技盤制御回路としての遊技盤制御装置
500 玉貸し制御回路としての玉貸し制御装置
600 排出制御回路としての排出制御装置
DESCRIPTION OF SYMBOLS 100 Pachinko machine 120 Supply tray 122 Balance indicator 123 Ball lending conversion button 170 Ball discharge device 180 Winning ball separation detection device 200 Ball lending device 211 Card insertion / extraction port 220 Insert balance indicator 230 Effective display lamp 400 As game board control circuit Game board control device 500 Ball lending control device as a ball lending control circuit 600 Discharge control device as a discharge control circuit

Claims (3)

カード挿排口を備えた球貸機と、
該球貸機と対を成し、前面に設けられた供給皿側へ賞球または貸球に関わる遊技球を排出するための排出制御を行う排出制御装置と、遊技盤に関する制御を司ると共に、賞球排出に関わる信号を上記排出制御装置へ送信する遊技盤制御装置と、を有するパチンコ遊技機と、
を備えたカード式パチンコ遊技装置において、
上記排出制御装置と上記球貸機とを送受信可能に接続すると共に、上記球貸機への入力のために用いられ、カードの有する金額の範囲内で貸球への変換を指令する変換スイッチと、上記球貸機により制御され、挿入されたカードの残高を表示するカード残高表示器および上記変換スイッチの有効・無効を表示する球貸可能表示器を上記パチンコ遊技機の前面に設け、
上記排出制御装置は、
球貸し排出が可能な状態にある場合に上記球貸機に対して球貸し可能信号を送信すると共に、該球貸機から供給される排出要求を示す排出要求信号に基づいて、該排出要求信号ごとに最小排出単位の個数の遊技球を排出させる排出制御を行い、該最小排出単位の個数の遊技球の排出終了ごとに排出が終了したことを示す信号を上記球貸機へ送信し、
且つ、上記排出が終了したことを示す信号は、上記排出要求信号を受信すると賞球排出と共通の排出条件である排出を待機している遊技球を排出センサが検出しているか否かおよび球貸し排出に特有の排出条件である球貸機にカードが挿入されていることを示すカード有無信号を受信しているか否かを確認して球貸し排出が可能と判定した場合に第1のレベルから該第1のレベルとは異なる第2のレベルに変化させ、上記最小排出個数の遊技球の排出終了で第2のレベルから第1のレベルに戻すように構成し、
上記球貸機は、
上記変換スイッチの一回の操作に対して上記最小排出単位の個数の整数倍単位で貸球数を設定可能な球貸し数設定手段を備え、
上記カードの挿入に基づいて、上記変換スイッチが有効である場合に上記球貸可能表示器を点灯し、上記変換スイッチの一回の操作に基づき、設定された貸球数の遊技球を排出させる場合に、上記排出制御装置へ最小排出単位の排出要求信号を送信するごとに上記球貸し可能信号により上記排出制御装置が球貸し可能状態にあることを確認し、かつ該排出要求信号に基づく貸球の排出が実行中は、上記変換スイッチの操作が無効であることを上記球貸可能表示器を消灯することで報知し、かつ当該球貸可能表示器の消灯に基づいて上記カード残高表示器の残高表示を所要時間経過後に減算表示するように構成したことを特徴とするカード式パチンコ遊技装置。
A ball lending machine with a card insertion / extraction port;
The ball lending machine is paired with a discharge control device that performs discharge control for discharging a prize ball or a game ball related to a loan to a supply tray provided on the front surface, and controls a game board, A pachinko gaming machine having a game board control device for transmitting a signal related to prize ball discharge to the discharge control device;
In the card-type pachinko gaming machine with
A conversion switch that connects the discharge control device and the ball lending machine so as to be able to transmit and receive, and is used for input to the ball lending machine, and commands conversion to a ball lending within the range of the amount of money possessed by the card; A card balance indicator that displays the balance of the inserted card controlled by the ball lending machine and a ball lendable indicator that displays the validity / invalidity of the conversion switch is provided on the front surface of the pachinko gaming machine,
The emission control device
When the ball lending discharge is possible, a ball lending possible signal is transmitted to the ball lending machine, and the discharge request signal is based on a discharge request signal indicating a discharge request supplied from the ball lending machine. A discharge control for discharging the number of game balls of the minimum discharge unit every time, a signal indicating that the discharge is completed at the end of discharge of the number of game balls of the minimum discharge unit is transmitted to the ball lending machine,
In addition, the signal indicating that the discharge has ended is, when the discharge request signal is received, whether or not the discharge sensor detects a game ball waiting for discharge which is a discharge condition common to the prize ball discharge and the ball The first level when it is determined whether or not a ball lending discharge is possible by checking whether or not a card presence / absence signal indicating that a card is inserted in a ball lending machine, which is a discharge condition peculiar to a lending discharge, is received To a second level different from the first level, and configured to return from the second level to the first level at the end of the discharge of the minimum number of game balls,
The above ball lending machine
A ball lending number setting means capable of setting the number of balls lent in units of an integral multiple of the number of the minimum discharge units for one operation of the conversion switch;
Based on the insertion of the card, when the conversion switch is valid, the ball lendable indicator is turned on, and a set number of game balls are discharged based on a single operation of the conversion switch. Each time a discharge request signal of the minimum discharge unit is transmitted to the discharge control device, it is confirmed by the ball lending enable signal that the discharge control device is in a lendable state, and a loan based on the discharge request signal is made. While the ball is being discharged, the operation of the conversion switch is disabled by turning off the ball lendable indicator, and the card balance indicator based on the turn-off of the ball lendable indicator A card-type pachinko gaming apparatus configured to display the balance of the game after the required time has elapsed.
上記球貸機は、上記球貸し可能信号により上記排出制御装置が球貸し可能状態にないことを確認した場合は、上記変換スイッチの操作を無効にすると共に、上記球貸可能表示器を消灯させることを特徴とする請求項1に記載のカード式パチンコ遊技装置。 The ball lending machine invalidates the operation of the conversion switch and turns off the ball lending possible indicator when it is confirmed by the ball lending available signal that the discharge control device is not in a ball lending enabled state. The card-type pachinko gaming apparatus according to claim 1. 上記排出制御装置は、上記最小排出個数の遊技球の排出の際に排出表示ランプを点灯することを特徴とする請求項1または2に記載のカード式パチンコ遊技装置。 The card-type pachinko gaming apparatus according to claim 1 or 2, wherein the discharge control device lights a discharge display lamp when the minimum number of game balls is discharged.
JP2005343239A 2005-11-29 2005-11-29 Card type pachinko game machine Expired - Lifetime JP3982710B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005343239A JP3982710B2 (en) 2005-11-29 2005-11-29 Card type pachinko game machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005343239A JP3982710B2 (en) 2005-11-29 2005-11-29 Card type pachinko game machine

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2002082834A Division JP2002320758A (en) 2002-03-25 2002-03-25 Card type pachinko game device

Publications (2)

Publication Number Publication Date
JP2006068560A JP2006068560A (en) 2006-03-16
JP3982710B2 true JP3982710B2 (en) 2007-09-26

Family

ID=36149724

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005343239A Expired - Lifetime JP3982710B2 (en) 2005-11-29 2005-11-29 Card type pachinko game machine

Country Status (1)

Country Link
JP (1) JP3982710B2 (en)

Also Published As

Publication number Publication date
JP2006068560A (en) 2006-03-16

Similar Documents

Publication Publication Date Title
JP2000288229A (en) Card-type game machine
JP3629609B2 (en) Card type pachinko game machine
JP3274476B2 (en) Card type pachinko game machine
JP3982709B2 (en) Card type pachinko game machine
JP3982710B2 (en) Card type pachinko game machine
JP3982712B2 (en) Card type pachinko game machine
JP3982711B2 (en) Card type pachinko game machine
JP3982713B2 (en) Card type pachinko game machine
JPH08182815A (en) Pinball game machine
JP3326564B2 (en) Card-type pachinko machine
JP2001321532A (en) Game machine
JP2012081148A (en) Game machine and game device
JP3066475B2 (en) Card-type gaming machine
JP3415555B6 (en) Card game machine
JP2002113214A (en) Card type pachinko game apparatus
JP2002320758A (en) Card type pachinko game device
JPH0515647A (en) Transmitting/receiving system in pinball game machine
JP2001170348A (en) Game machine
JP3066474B2 (en) Card-type gaming machine
JP5895991B2 (en) Game machine
JP3035795B2 (en) Gaming equipment
JP3035796B2 (en) Gaming equipment
JP2006212446A (en) Game machine
JPH0515646A (en) Transmitting/receiving system in pinball game machine
JP2000325639A (en) Card type game machine

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20051228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060928

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061106

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070201

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070326

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20070410

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070507

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070604

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20070628

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070628

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

Free format text: PAYMENT UNTIL: 20100713

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150