JP2003103024A - Game machine - Google Patents

Game machine

Info

Publication number
JP2003103024A
JP2003103024A JP2001304446A JP2001304446A JP2003103024A JP 2003103024 A JP2003103024 A JP 2003103024A JP 2001304446 A JP2001304446 A JP 2001304446A JP 2001304446 A JP2001304446 A JP 2001304446A JP 2003103024 A JP2003103024 A JP 2003103024A
Authority
JP
Japan
Prior art keywords
game medium
payout
power supply
ball
switch
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.)
Pending
Application number
JP2001304446A
Other languages
Japanese (ja)
Inventor
Shohachi Ugawa
詔八 鵜川
Masato Kosuge
真人 小菅
Fumitaka Sekine
史高 関根
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sankyo Co Ltd
Original Assignee
Sankyo Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sankyo Co Ltd filed Critical Sankyo Co Ltd
Priority to JP2001304446A priority Critical patent/JP2003103024A/en
Publication of JP2003103024A publication Critical patent/JP2003103024A/en
Pending legal-status Critical Current

Links

Landscapes

  • Pinball Game Machines (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a game machine which surely performs the detection of a game medium being put out when a power supply is stopped, and can accurately grasp a non-discharge number of the game medium. SOLUTION: In a mask impossible interrupting process, a CPU for the put-out control checks a detection maintaining period, and detection signals of a prize ball-counting switch and a ball-renting counting switch. Then, when the prize ball-counting switch is turned on, the content of a total quantity memory is subtracted by one. Also, when the ball-renting counting switch is turned on, the content of a renting ball quantity memory is subtracted by one. Since a capacitor is provided as a subsidiary driving power source, even when the power supply is stopped, the power source voltage is maintained in a range wherein the switches and sorting solenoids can be driven during a detection maintaining period. Therefore, during the detection maintaining period, a switch detection can be surely performed. Thus, the non-discharge number of the game medium can be accurately grasped.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、遊技媒体を用いて
所定の遊技を行うことが可能なパチンコ遊技機やスロッ
ト機等の遊技機に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a gaming machine such as a pachinko gaming machine or a slot machine, which is capable of playing a predetermined game using a gaming medium.

【0002】[0002]

【従来の技術】遊技機として、遊技球などの遊技媒体を
発射装置によって遊技領域に発射し、遊技領域に設けら
れている入賞口などの入賞領域に遊技媒体が入賞する
と、所定個の賞球が遊技者に払い出されるものがある。
さらに、表示状態が変化可能な可変表示部が設けられ、
可変表示部の表示結果があらかじめ定められた特定表示
態様となった場合に所定の遊技価値を遊技者に与えるよ
うに構成されたものがある。
2. Description of the Related Art As a game machine, a game medium such as a game ball is launched into a game area by a launching device, and when a game medium is won in a prize area such as a winning opening provided in the game area, a predetermined number of prize balls are provided. There are things that are paid out to the player.
Furthermore, a variable display unit whose display state can be changed is provided,
There is one configured to give a predetermined game value to the player when the display result of the variable display section becomes a predetermined specific display mode.

【0003】なお、遊技価値とは、遊技機の遊技領域に
設けられた可変入賞球装置の状態が打球が入賞しやすい
遊技者にとって有利な状態になることや、遊技者にとっ
て有利な状態となるための権利を発生させたりすること
や、賞球払出の条件が成立しやすくなる状態になること
である。
The gaming value means that the state of the variable winning ball device provided in the gaming area of the gaming machine is advantageous for a player who easily wins a hit ball, or is advantageous for the player. To generate the right to pay for the prize, and to make it easier for the conditions for paying out prize balls to be met.

【0004】パチンコ遊技機では、特別図柄を表示する
可変表示部の表示結果があらかじめ定められた特定表示
態様の組合せとなることを、通常、「大当り」という。
大当りが発生すると、例えば、大入賞口が所定回数開放
して打球が入賞しやすい大当り遊技状態に移行する。そ
して、各開放期間において、所定個(例えば10個)の
大入賞口への入賞があると大入賞口は閉成する。そし
て、大入賞口の開放回数は、所定回数(例えば16ラウ
ンド)に固定されている。なお、各開放について開放時
間(例えば29.5秒)が決められ、入賞数が所定個に
達しなくても開放時間が経過すると大入賞口は閉成す
る。また、大入賞口が閉成した時点で所定の条件(例え
ば、大入賞口内に設けられているVゾーンへの入賞)が
成立していない場合には、大当り遊技状態は終了する。
In the pachinko gaming machine, it is usually called a "big hit" that the display result of the variable display section for displaying the special symbol is a combination of predetermined specific display modes.
When a big hit occurs, for example, the big winning opening is opened a predetermined number of times, and a big hit game state in which a hit ball is easy to win is entered. Then, in each opening period, when a predetermined number (for example, 10) of winning holes are won, the winning holes are closed. The number of times the special winning opening is opened is fixed to a predetermined number (for example, 16 rounds). An opening time (for example, 29.5 seconds) is determined for each opening, and the special winning opening is closed when the opening time elapses even if the number of winnings does not reach a predetermined number. If the predetermined condition (for example, winning in the V zone provided in the special winning opening) is not satisfied when the special winning opening is closed, the jackpot gaming state ends.

【0005】また、可変表示装置において最終停止図柄
(例えば左右中図柄のうち中図柄)となる図柄以外の図
柄が、所定時間継続して、特定表示態様と一致している
状態で停止、揺動、拡大縮小もしくは変形している状
態、または、複数の図柄が同一図柄で同期して変動した
り、表示図柄の位置が入れ替わっていたりして、最終結
果が表示される前で大当り発生の可能性が継続している
状態(以下、これらの状態をリーチ状態という。)にお
いて行われる演出をリーチ演出という。また、リーチ演
出を含む可変表示をリーチ可変表示という。リーチ状態
において、変動パターンを通常状態における変動パター
ンとは異なるパターンにすることによって、遊技の興趣
が高められている。そして、可変表示装置に可変表示さ
れる図柄の表示結果がリーチ状態となる条件を満たさな
い場合には「はずれ」となり、可変表示状態は終了す
る。遊技者は、大当りをいかにして発生させるかを楽し
みつつ遊技を行う。
Further, in the variable display device, the symbols other than the symbol which is the final stop symbol (for example, the middle symbol of the left and right middle symbols) continue for a predetermined time, and stop and swing in a state in which it matches the specific display mode. , Scaled or deformed state, or multiple symbols fluctuate synchronously in the same symbol, or the position of the displayed symbol is swapped, the possibility of a big hit before the final result is displayed The effect that is performed in a state in which the above is continued (hereinafter, these states are referred to as the reach state) is referred to as the reach effect. A variable display including a reach effect is called a reach variable display. By changing the variation pattern in the reach state from the variation pattern in the normal state, the interest of the game is enhanced. When the display result of the symbols variably displayed on the variably display device does not satisfy the condition for reaching the reach state, the result is “out”, and the variably display state ends. A player plays a game while enjoying how to generate a big hit.

【0006】遊技機における遊技進行はマイクロコンピ
ュータ等による遊技制御手段によって制御される。可変
表示部に表示される識別情報、キャラクタ画像および背
景画像は、マイクロコンピュータの指示に応じて画像デ
ータを生成して可変表示部側に転送するビデオディスプ
レイプロセッサ(VDP)とによって制御されるが、マ
イクロコンピュータが必要とするプログラム容量は大き
い。
The progress of the game on the gaming machine is controlled by the game control means such as a microcomputer. The identification information, the character image, and the background image displayed on the variable display unit are controlled by a video display processor (VDP) that generates image data according to an instruction from the microcomputer and transfers the image data to the variable display unit side. The program capacity required by the microcomputer is large.

【0007】従って、プログラムを格納させるメモリ容
量に制限のある遊技制御手段のマイクロコンピュータで
可変表示部に表示される識別情報等を制御することはで
きず、遊技制御手段のマイクロコンピュータとは別の表
示制御用のマイクロコンピュータ等による表示制御手段
を搭載した図柄制御基板が設置される。遊技の進行を制
御する遊技制御手段は、表示制御手段に対して表示制御
のためのコマンドを送信する必要がある。
Therefore, it is not possible to control the identification information and the like displayed on the variable display portion by the microcomputer of the game control means having a limited memory capacity for storing the program, which is different from the microcomputer of the game control means. A pattern control board on which display control means such as a microcomputer for display control is mounted is installed. The game control means for controlling the progress of the game needs to send a command for display control to the display control means.

【0008】賞球払出の制御を行う払出制御手段が、遊
技制御手段が搭載されている主基板とは別の払出制御基
板に搭載されている場合、遊技の進行は主基板に搭載さ
れた遊技制御手段によって制御されるので、入賞にもと
づく賞球個数は、遊技制御手段によって決定され、払出
制御基板に送信される。一方、遊技媒体の貸し出しは、
遊技の進行とは無関係であるから、一般に、遊技制御手
段を介さず払出制御手段によって制御される。
When the payout control means for controlling the prize ball payout is mounted on a payout control board different from the main board on which the game control means is mounted, the progress of the game proceeds to the game mounted on the main board. Since it is controlled by the control means, the number of prize balls based on the winning is determined by the game control means and transmitted to the payout control board. On the other hand, rental of game media is
Since it has nothing to do with the progress of the game, it is generally controlled by the payout control means without passing through the game control means.

【0009】以上のように、遊技機には、遊技制御手段
の他に種々の制御手段が搭載されている。そして、遊技
の進行を制御する遊技制御手段は、遊技状況に応じて動
作指示を示す各コマンドを、各制御基板に搭載された各
制御手段に送信する。以下、遊技制御手段その他の制御
手段を電気部品制御手段といい、電気部品制御手段が搭
載された基板を電気部品制御基板ということがある。
As described above, the game machine is equipped with various control means in addition to the game control means. Then, the game control means for controlling the progress of the game sends each command indicating an operation instruction according to the game situation to each control means mounted on each control board. Hereinafter, the game control means and other control means may be referred to as electrical component control means, and the board on which the electrical component control means is mounted may be referred to as an electrical component control board.

【0010】[0010]

【発明が解決しようとする課題】以上のように、遊技機
には、遊技制御手段を初めとする種々の電気部品制御手
段が搭載されている。一般に、各電気部品制御手段はマ
イクロコンピュータを含んだ構成とされる。そのような
電気部品制御手段は、一般に、電源電圧が立ち上がると
初期化処理を行い初期状態から制御を開始する。する
と、停電等の不測の電源断が生じ、その後、電源復旧す
ると初期状態に戻ってしまうので、遊技者が得た遊技価
値等が消滅してしまう等の問題が生ずることがある。そ
のような問題が生じないようにするには、電源電圧値の
低下に伴なって発生される所定の信号に応じて遊技制御
を中断し、そのときの制御状態を、遊技機に対する電力
供給停止中でも電源バックアップされている記憶手段
(バックアップ記憶手段)に保存し、電力供給が完全に
停止するのを待つように制御すればよい。そのような遊
技機は、記憶手段に遊技状態が保存されている状態で電
力供給が再開されたら、保存されている制御状態にもと
づいて遊技を再開するので、遊技者に不利益が与えられ
ることが防止される。
As described above, the game machine is equipped with various electric component control means including the game control means. Generally, each electric component control means is configured to include a microcomputer. Such electric component control means generally performs an initialization process when the power supply voltage rises, and starts control from an initial state. Then, an unexpected power failure such as a power failure occurs, and then the power returns to the initial state when the power is restored, which may cause a problem that the gaming value or the like obtained by the player disappears. In order to prevent such a problem from occurring, the game control is interrupted in response to a predetermined signal that accompanies the decrease in the power supply voltage value, and the control state at that time is stopped by the power supply to the game machine. In particular, the power may be stored in the storage means that is backed up (backup storage means) and controlled so as to wait until the power supply is completely stopped. In such a gaming machine, if the power supply is restarted while the game state is stored in the storage means, the game is restarted based on the stored control state, which is disadvantageous to the player. Is prevented.

【0011】しかし、バックアップ記憶手段に制御状態
を保存する処理を行う直前に電気部品が動作中であった
場合には、保存した制御状態に対して、実際の制御状態
が変化してしまう可能性もある。例えば、遊技球の払い
出しを行う球払出装置から払い出された遊技球を、球払
出装置の下部に設けられているスイッチ手段によって検
知して遊技球の払出確認を行うような場合には、そのよ
うな問題が生ずる可能性がある。つまり、球払出装置の
動作を停止する直前に球払出装置が1個の遊技球の払出
を実行し、直後に停電等が生じ、スイッチ手段が払出を
検知する前に制御状態を保存したような場合には、保存
された払出確認個数(または未払出個数)と、実際に払
い出された個数との間に不一致が生じてしまう。そのよ
うな場合、電力供給再開時に、保存されている制御状態
にもとづいて球払出処理を再開すると、余分に遊技球を
払い出してしまうことになる。
However, if the electric component is in operation immediately before the processing of storing the control state in the backup storage means, the actual control state may change with respect to the stored control state. There is also. For example, in the case of detecting the game ball paid out from the ball payout device for paying out the game ball by the switch means provided in the lower part of the ball payout device and confirming the payout of the game ball, Such problems may occur. That is, the ball payout device executes the payout of one game ball immediately before the operation of the ball payout device is stopped, the power failure occurs immediately after that, and the control state is saved before the switch means detects the payout. In this case, the stored payout confirmation number (or the unpaid number) and the actually paid out number may not match. In such a case, when the power supply is restarted, if the ball payout process is restarted based on the stored control state, extra game balls will be paid out.

【0012】そこで、本発明は、電力供給が停止した場
合であっても、払い出された遊技媒体の検出を確実に実
行し、遊技媒体の未払出数を正確に把握することができ
る遊技機を提供することを目的とする。
Therefore, according to the present invention, even when the power supply is stopped, the game medium paid out can be surely detected, and the number of unpaid game media can be accurately grasped. The purpose is to provide.

【0013】[0013]

【課題を解決するための手段】本発明による遊技機は、
遊技媒体を用いて所定の遊技を行うことが可能な遊技機
であって、遊技の進行を制御する遊技制御手段(例えば
CPU56等)と、景品としての景品遊技媒体と遊技者
からの貸出要求に応じて貸し出される貸出遊技媒体の払
い出しが可能な払出手段(例えば球払出装置97)と、
遊技制御手段からのコマンドにもとづいて払出手段の制
御を行う払出制御手段(例えば払出制御用CPU56
等)と、払出手段によって払い出された遊技媒体を景品
遊技媒体として誘導するための景品遊技媒体通路(例え
ば球通路293a)と貸出遊技媒体として誘導するため
の貸出遊技媒体通路(例えば球通路293b)と、払出
手段によって払い出された遊技媒体の通路を景品遊技媒
体通路と貸出遊技媒体通路のいずれかに切り換える通路
切換手段(例えば、振分部材311)と、通路切換手段
を駆動する電気的駆動源(例えば振分部材311の状態
を制御するソレノイド310あるいはモータ)と、景品
遊技媒体通路に設けられ景品遊技媒体を検出可能な景品
遊技媒体検出手段(例えば賞球カウントスイッチ301
A)と、貸出遊技媒体通路に設けられ貸出遊技媒体を検
出可能な貸出遊技媒体検出手段(例えば貸し球カウント
スイッチ301B)と、遊技機への電力供給が停止して
も所定期間は記憶内容を保持することが可能な変動デー
タ記憶手段(例えばバックアップRAM55)と、遊技
機で用いられる所定の電源の状態を監視して、電力の供
給停止にかかわる検出条件が成立した場合に検出信号を
出力する電源監視手段(例えば電源監視用IC902)
とを備え、電源監視手段による検出信号が出力された後
少なくとも所定の検出維持期間(例えば、ステップS7
62で設定される期間)が経過するまでの期間において
景品遊技媒体検出手段と貸出遊技媒体検出手段とのうち
少なくともいずれか一方に電力を供給可能な補助電力供
給手段(例えばコンデンサ923)と、少なくとも検出
維持期間が経過するまでの間は通路切換手段の状態を保
持可能な作動状態保持手段(例えば、コンデンサ924
の充電電力にもとづいて電力供給を継続する電源基板9
10、通路切換手段の状態を機械的構造によって保持可
能な構成とした振分部材311およびモータ)とを含
み、遊技制御手段および払出制御手段が、それぞれ、電
源監視手段からの検出信号(例えば電源断信号)に応じ
て制御状態を復旧させるために必要なデータを変動デー
タ記憶手段に保存するための電力供給停止時処理(例え
ば図19〜図21に示す処理、図45〜図47に示す処
理)を実行し、電力供給停止時処理にて、遊技制御手段
が、景品遊技媒体検出手段からの検出信号の入力処理
(例えば図20におけるステップS461〜ステップS
480の処理)を行い、払出制御手段が、景品遊技媒体
検出手段と貸出遊技媒体検出手段とのうち少なくともい
ずれか一方からの検出信号の入力処理(例えば図45、
図46におけるステップS763〜ステップS782の
処理)を行うことを特徴とする。
A gaming machine according to the present invention comprises:
A game machine capable of performing a predetermined game using a game medium, a game control means (for example, CPU 56) for controlling the progress of the game, a prize game medium as a prize, and a loan request from a player. A payout means (for example, a ball payout device 97) capable of paying out a rental game medium to be rented according to
A payout control means (for example, a payout control CPU 56) that controls the payout means based on a command from the game control means.
Etc.), and a prize game medium passage (for example, ball passage 293a) for guiding the game medium paid out by the payout means as a prize game medium, and a lending game medium passage for guiding as a rental game medium (for example, ball passage 293b). ), A passage switching means (for example, a distribution member 311) for switching the passage of the game medium paid out by the payout means to one of the prize game medium passage and the rental game medium passage, and an electric device for driving the passage change means. A drive source (for example, a solenoid 310 or a motor that controls the state of the distribution member 311) and a prize game medium detection means (for example, a prize ball count switch 301) provided in a prize game medium passage and capable of detecting a prize game medium.
A), a lending game medium detection means (for example, a lending ball count switch 301B) provided in the lending game medium passage and capable of detecting the lending game medium, and the stored contents for a predetermined period even if the power supply to the gaming machine is stopped. The variable data storage means (for example, backup RAM 55) that can be held and the state of a predetermined power source used in the gaming machine are monitored, and a detection signal is output when the detection condition related to the stop of power supply is satisfied. Power monitoring means (for example, power monitoring IC 902)
And at least a predetermined detection maintaining period (for example, step S7) after the detection signal is output by the power supply monitoring means.
Auxiliary power supply means (for example, capacitor 923) capable of supplying power to at least one of the prize game medium detection means and the rental game medium detection means in a period until the period (set by 62) elapses, at least Until the detection maintaining period elapses, the operating state holding means (for example, the capacitor 924) capable of holding the state of the passage switching means.
Power supply board 9 that continues to supply power based on the charging power of
10, a distribution member 311 and a motor configured to hold the state of the passage switching means by a mechanical structure, the game control means and the payout control means, respectively, the detection signal from the power supply monitoring means (for example, power supply) Power supply stoppage processing (for example, the processing shown in FIGS. 19 to 21 and the processing shown in FIGS. 45 to 47 for storing the data necessary for restoring the control state in response to the disconnection signal) in the variable data storage means. ) Is executed, and in the power supply stop process, the game control means inputs the detection signal from the prize game medium detection means (for example, step S461 to step S in FIG. 20).
480), and the payout control means inputs the detection signal from at least one of the prize game medium detection means and the rental game medium detection means (for example, FIG. 45).
The processing of steps S763 to S782 in FIG. 46) is performed.

【0014】作動状態保持手段が、少なくとも検出維持
期間が経過するまでの間は通路切換手段が駆動可能な電
力を供給する補助駆動電力供給手段(例えばコンデンサ
924の充電電力にもとづいて電力供給を継続する電源
基板910)であるように構成されていてもよい。
The operation state holding means continues the power supply based on the auxiliary driving power supply means (for example, the charging power of the capacitor 924) for supplying the power for driving the passage switching means at least until the detection maintaining period elapses. Power supply board 910) that operates.

【0015】作動状態保持手段が、少なくとも検出維持
期間が経過するまでの間は通路切換手段の状態を保持可
能な保持機構(例えば通路切換手段の状態を機械的構造
によって保持可能な構成とした振分部材311およびモ
ータやラッチ式のソレノイド)であるように構成されて
いてもよい。
The operating state holding means holds the state of the passage switching means at least until the detection maintaining period elapses. The split member 311 and the motor or the latch type solenoid) may be configured.

【0016】払出制御手段が、電力供給停止時処理にて
払出手段が景品遊技媒体あるいは貸出遊技媒体のいずれ
の払出中であるか否かを判定(例えば賞球処理中フラグ
や球貸し処理中フラグの状態に応じて判定。例えばステ
ップS828、ステップS829)し、判定にもとづい
て景品遊技媒体検出手段あるいは貸出遊技媒体検出手段
の入力処理(例えば図59におけるステップS763〜
ステップS772と、図60におけるステップS763
a〜ステップS782のうちいずれか一方の処理)を選
択的に行うように構成(例えば、図59〜図61に示す
構成)されていてもよい。
The payout control means determines whether or not the payout means is paying out the prize game medium or the lending game medium in the power supply stop process (for example, a prize ball processing flag or a ball lending process flag). The determination is made according to the state of, for example, step S828, step S829), and based on the determination, the input processing of the prize game medium detection means or the rental game medium detection means (for example, step S763 to FIG. 59).
Step S772 and step S763 in FIG.
It may be configured (for example, the configuration shown in FIG. 59 to FIG. 61) so as to selectively perform any one of a to step S782).

【0017】また、本発明による遊技機は、遊技媒体を
用いて所定の遊技を行うことが可能な遊技機であって、
遊技の進行を制御する遊技制御手段(例えばCPU56
等)と、景品としての景品遊技媒体と遊技者からの貸出
要求に応じて貸し出される貸出遊技媒体の払い出しが可
能な払出手段(例えば球払出装置97)と、遊技制御手
段からのコマンドにもとづいて払出手段の制御を行う払
出制御手段(例えば払出制御用CPU56等)と、払出
手段によって払い出された遊技媒体を景品遊技媒体とし
て誘導するための景品遊技媒体通路(例えば球通路29
3a)と貸出遊技媒体として誘導するための貸出遊技媒
体通路(例えば球通路293b)と、払出手段によって
払い出された遊技媒体の通路を景品遊技媒体通路と貸出
遊技媒体通路のいずれかに切り換える通路切換手段(例
えば、振分部材311)と、通路切換手段を駆動する電
気的駆動源(例えば振分部材311の状態を制御するソ
レノイド310あるいはモータ)と、景品遊技媒体通路
に設けられ景品遊技媒体を検出可能な景品遊技媒体検出
手段(例えば賞球カウントスイッチ301A)と、貸出
遊技媒体通路に設けられ貸出遊技媒体を検出可能な貸出
遊技媒体検出手段(例えば球貸しカウントスイッチ30
1B)と、遊技機への電力供給が停止しても所定期間は
記憶内容を保持することが可能な変動データ記憶手段
(例えばバックアップRAM55)と、遊技機で用いら
れる所定の電源の状態を監視して、電力の供給停止にか
かわる検出条件が成立した場合に検出信号を出力する電
源監視手段(例えば電源監視用IC902)とを備え、
電源監視手段による払出信号が出力された後少なくとも
所定の検出維持期間が経過するまでの間は景品遊技媒体
検出手段および貸出遊技媒体検出手段に電力を供給可能
な補助電力供給手段(例えばコンデンサ923)を含
み、払出制御手段が、電源監視手段からの検出信号に応
じて制御状態を復旧させるために必要なデータを変動デ
ータ記憶手段に保存するための電力供給停止時処理(例
えば図73、図47に示す処理)を実行し、払出制御手
段は、電力供給停止時処理にて、景品遊技媒体検出手段
と貸出遊技媒体検出手段とのうち少なくともいずれか一
方からの検出信号の入力処理(例えば図73におけるス
テップS763以降の処理)を行うとともに、払出手段
による景品遊技媒体あるいは貸出遊技媒体のいずれの払
出であるか否かを判定(例えば賞球処理中フラグや球貸
し処理中フラグの状態に応じて判定。例えば図73にお
けるステップS828、ステップS829)し、その判
定結果にもとづいて、入力処理の際に入力した検出信号
が、景品遊技媒体と貸出遊技媒体のうちいずれの検出に
もとづく検出信号であるかを特定可能であることを特徴
とする。
The gaming machine according to the present invention is a gaming machine capable of playing a predetermined game using a gaming medium,
Game control means for controlling the progress of the game (for example, CPU 56
Etc.), and a payout means (for example, a ball payout device 97) capable of paying out a prize game medium as a prize and a lending game medium that is lent out in response to a lending request from a player, and a command from the game control means. A payout control means (for example, a payout control CPU 56 or the like) for controlling the payout means, and a prize game medium passage (for example, a ball passage 29) for guiding the game medium paid out by the payout means as a prize game medium.
3a) and a lending game medium passage (for example, ball passage 293b) for guiding as a lending game medium, and a passage for switching the passage of the game medium paid out by the payout means to either the prize game medium passage or the rental game medium passage. A switching means (for example, a distribution member 311), an electric drive source (for example, a solenoid 310 or a motor for controlling the state of the distribution member 311) that drives the passage switching means, and a prize game medium provided in the prize game medium passage. And a rental game medium detecting means (for example, a ball lending count switch 30) provided in the lending game medium passage and capable of detecting a prize game medium detecting means (for example, a ball lending count switch 30).
1B), a variable data storage unit (for example, backup RAM 55) capable of retaining stored contents for a predetermined period even when power supply to the game machine is stopped, and a state of a predetermined power source used in the game machine are monitored. And a power supply monitoring unit (for example, a power supply monitoring IC 902) that outputs a detection signal when a detection condition related to the stop of power supply is satisfied,
Auxiliary power supply means (for example, a capacitor 923) capable of supplying power to the prize game medium detection means and the rental game medium detection means at least until a predetermined detection maintaining period elapses after the payout signal is output by the power supply monitoring means. The power-supply stop process for the payout control means to store the data necessary for restoring the control state in the variable data storage means in response to the detection signal from the power supply monitoring means (for example, FIG. 73, FIG. 47). The process shown in FIG. 73 is executed, and the payout control unit performs an input process of a detection signal from at least one of the prize game medium detection unit and the rental game medium detection unit in the power supply stop process (for example, FIG. 73). The processing after step S763 in) is performed, and it is determined whether the prize game medium or the rental game medium is paid out by the payout means. (For example, determination is made according to the state of the prize ball processing flag or the ball lending processing flag. For example, step S828 and step S829 in FIG. 73), and based on the determination result, the detection signal input in the input processing is The present invention is characterized in that it is possible to specify which one of the prize game medium and the rental game medium is a detection signal based on detection.

【0018】電力供給停止時処理にて、外部への信号を
出力するための出力ポートをクリアする処理(例えばス
テップS493〜ステップS499、ステップS821
〜ステップS827)を実行したあと、景品遊技媒体検
出手段と貸出遊技媒体検出手段とのうち少なくとも一方
からの検出信号の入力処理(例えば図20におけるS4
60〜ステップS480の処理。例えば図59における
ステップS763〜ステップS772と、図60におけ
るステップS763a〜ステップS782のうち、少な
くともいずれか一方の処理)を行うように構成されてい
てもよい。
In the power supply stop process, the process of clearing the output port for outputting a signal to the outside (eg, step S493 to step S499, step S821).
After performing step S827), the detection signal is input from at least one of the prize game medium detecting means and the rental game medium detecting means (for example, S4 in FIG. 20).
Processing of 60 to step S480. For example, at least one of steps S763 to S772 in FIG. 59 and steps S763a to S782 in FIG. 60) may be performed.

【0019】検出維持期間は、払出手段によって払い出
された遊技媒体が景品遊技媒体検出手段あるいは貸出遊
技媒体検出手段のいずれかの検出位置に到達するまでの
期間(例えば、スプロケット292から解放された遊技
球が賞球カウントスイッチ301Aや球貸しカウントス
イッチ301Bの検出部に到達するまでの落下期間を示
す√(2L/g)で導出される期間。具体的には、遊技
機の構造などによって異なるが、例えば100[ms]
〜150[ms]程度の期間。)以上の期間に設定され
る構成とされていてもよい。
The detection maintaining period is a period until the game medium paid out by the payout means reaches the detection position of either the prize game medium detection means or the rental game medium detection means (for example, released from the sprocket 292). A period derived by √ (2L / g) indicating a drop period until the game ball reaches the detection unit of the prize ball count switch 301A or the ball lending count switch 301B. However, for example, 100 [ms]
A period of about 150 [ms]. ) The configuration may be set for the above period.

【0020】変動データ記憶手段の記憶内容には、払出
条件の成立にもとづいて払い出すべき景品遊技媒体数の
うち未だ払い出されていない未払出数を特定可能な未払
出数データを含み、払出制御手段は、電力供給が開始さ
れた場合には、電力供給が停止する前の制御状態に復旧
させる復旧処理(例えば図44に示す処理)を実行し、
前記払出制御手段が、電力供給停止時処理では景品遊技
媒体検出手段あるいは貸出遊技媒体検出手段からの検出
信号の入力処理の結果を示すデータを変動データ記憶手
段に保存(例えばステップS872)し、復旧処理に
て、入力処理の結果を示すデータを未払出数データにも
とづいて未払出数データを更新する処理(例えばステッ
プS889)を行うように構成されていてもよい。
The stored contents of the variable data storage means include unpaid amount data which can specify the unpaid amount that has not yet been paid out of the number of prize game media to be paid out based on the satisfaction of the payout condition. When the power supply is started, the control means executes a recovery process (for example, the process shown in FIG. 44) for recovering the control state before the power supply is stopped,
The payout control means saves data indicating the result of the input processing of the detection signal from the prize game medium detection means or the rental game medium detection means in the fluctuation data storage means in the power supply stop processing (for example, step S872), and restores. The processing may be configured to perform processing for updating the data indicating the result of the input processing based on the unpaid amount data (for example, step S889).

【0021】[0021]

【発明の実施の形態】実施の形態1.以下、本発明の一
実施形態を図面を参照して説明する。まず、遊技機の一
例であるパチンコ遊技機の全体の構成について説明す
る。図1はパチンコ遊技機を正面からみた正面図、図2
は遊技盤の前面を示す正面図である。なお、以下の実施
の形態では、パチンコ遊技機を例に説明を行うが、本発
明による遊技機はパチンコ遊技機に限られず、例えば画
像式の遊技機やスロット機に適用することもできる。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiment 1. An embodiment of the present invention will be described below with reference to the drawings. First, the overall configuration of a pachinko gaming machine, which is an example of a gaming machine, will be described. 1 is a front view of a pachinko gaming machine as viewed from the front, and FIG.
[Fig. 3] is a front view showing the front face of the game board. In the following embodiments, a pachinko gaming machine will be described as an example, but the gaming machine according to the present invention is not limited to a pachinko gaming machine and can be applied to, for example, an image-type gaming machine or a slot machine.

【0022】パチンコ遊技機1は、縦長の方形状に形成
された外枠(図示せず)と、外枠の内側に開閉可能に取
り付けられた遊技枠とで構成される。また、パチンコ遊
技機1は、遊技枠に開閉可能に設けられている額縁状に
形成されたガラス扉枠2を有する。遊技枠は、外枠に対
して開閉自在に設置される前面枠(図示せず)と、機構
部品等が取り付けられる機構板と、それらに取り付けら
れる種々の部品(後述する遊技盤を除く。)とを含む構
造体である。
The pachinko gaming machine 1 is composed of an outer frame (not shown) formed in a vertically long rectangular shape, and a game frame attached to the inside of the outer frame so as to be openable and closable. In addition, the pachinko gaming machine 1 has a frame-shaped glass door frame 2 that is provided in the game frame so as to be openable and closable. The game frame includes a front frame (not shown) installed to be openable and closable with respect to the outer frame, a mechanism plate to which mechanical parts and the like are attached, and various parts attached to them (excluding a game board described later). It is a structure including and.

【0023】図1に示すように、パチンコ遊技機1は、
額縁状に形成されたガラス扉枠2を有する。ガラス扉枠
2の下部表面には打球供給皿(上皿)3がある。打球供
給皿3の下部には、打球供給皿3に収容しきれない遊技
球を貯留する余剰球受皿4と打球を発射する打球操作ハ
ンドル(操作ノブ)5が設けられている。ガラス扉枠2
の背面には、遊技盤6が着脱可能に取り付けられてい
る。なお、遊技盤6は、それを構成する板状体と、その
板状体に取り付けられた種々の部品とを含む構造体であ
る。また、遊技盤6の前面には遊技領域7が形成されて
いる。
As shown in FIG. 1, the pachinko gaming machine 1 is
It has a glass door frame 2 formed in a frame shape. On the lower surface of the glass door frame 2, there is a hit ball supply plate (upper plate) 3. Below the hitting ball supply tray 3, there are provided a surplus ball receiving tray 4 for storing game balls that cannot be accommodated in the hitting ball feed tray 3 and a hitting ball operation handle (operation knob) 5 for firing the hit ball. Glass door frame 2
A game board 6 is detachably attached to the back surface of the. The game board 6 is a structure including a plate-shaped body that constitutes the game board 6 and various parts attached to the plate-shaped body. A game area 7 is formed on the front surface of the game board 6.

【0024】遊技領域7の中央付近には、それぞれが識
別情報としての図柄を可変表示する複数の可変表示部を
含む可変表示装置(特別図柄表示装置)9が設けられて
いる。可変表示装置9には、例えば「左」、「中」、
「右」の3つの可変表示部(図柄表示エリア)がある。
可変表示装置9の下方には、始動入賞口14が設けられ
ている。始動入賞口14に入った入賞球は、遊技盤6の
背面に導かれ、始動口スイッチ14aによって検出され
る。また、始動入賞口14の下部には開閉動作を行う可
変入賞球装置15が設けられている。可変入賞球装置1
5は、ソレノイド16によって開状態とされる。
In the vicinity of the center of the game area 7, a variable display device (special symbol display device) 9 including a plurality of variable display portions for variably displaying symbols as identification information is provided. The variable display device 9 includes, for example, “left”, “middle”,
There are three "right" variable display parts (symbol display areas).
A start winning opening 14 is provided below the variable display device 9. The winning ball that has entered the starting winning opening 14 is guided to the rear surface of the game board 6 and detected by the starting opening switch 14a. A variable winning ball device 15 that opens and closes is provided below the starting winning opening 14. Variable winning ball device 1
The solenoid 5 is opened by the solenoid 16.

【0025】可変入賞球装置15の下部には、特定遊技
状態(大当り状態)においてソレノイド21によって開
状態とされる開閉板20が設けられている。開閉板20
は大入賞口を開閉する手段である。開閉板20から遊技
盤6の背面に導かれた入賞球のうち一方(V入賞領域)
に入った入賞球はV入賞スイッチ22で検出され、開閉
板20からの入賞球はカウントスイッチ23で検出され
る。遊技盤6の背面には、大入賞口内の経路を切り換え
るためのソレノイド21Aも設けられている。また、可
変表示装置9の下部には、始動入賞口14に入った有効
入賞球数すなわち始動記憶数を表示する4つのLEDに
よる特別図柄始動記憶表示器(以下、始動記憶表示器と
いう。)18が設けられている。有効始動入賞がある毎
に、始動記憶表示器18は点灯するLEDを1増やす。
そして、可変表示装置9の可変表示が開始される毎に、
点灯するLEDを1減らす。
An opening / closing plate 20 which is opened by a solenoid 21 in a specific game state (big hit state) is provided below the variable winning ball device 15. Opening plate 20
Is a means for opening and closing the special winning opening. One of the winning balls guided from the opening / closing plate 20 to the back of the game board 6 (V winning area)
The entered winning balls are detected by the V winning switch 22, and the winning balls from the opening / closing plate 20 are detected by the count switch 23. On the back surface of the game board 6, a solenoid 21A for switching the route inside the special winning opening is also provided. In addition, in the lower part of the variable display device 9, a special symbol starting memory display (hereinafter, referred to as starting memory display) 18 by four LEDs for displaying the number of effective winning balls that have entered the starting winning opening 14, that is, the number of starting memories. Is provided. Each time there is an effective start prize, the start memory indicator 18 increases the number of LEDs to be turned on by one.
Then, each time the variable display of the variable display device 9 is started,
Decrease the number of lit LEDs by 1.

【0026】ゲート32に遊技球が入賞しゲートスイッ
チ32aで検出されると、普通図柄表示器10の表示の
可変表示が開始される。この実施の形態では、左右のラ
ンプ(点灯時に図柄が視認可能になる)が交互に点灯す
ることによって可変表示が行われ、例えば、可変表示の
終了時に右側のランプが点灯すれば当たりとなる。そし
て、普通図柄表示器10における停止図柄が所定の図柄
(当り図柄)である場合に、可変入賞球装置15が所定
回数、所定時間だけ開状態になる。普通図柄表示器10
の近傍には、ゲート32に入った入賞球数を表示する4
つのLEDによる表示部を有する普通図柄始動記憶表示
器41が設けられている。ゲート32への入賞がある毎
に、普通図柄始動記憶表示器41は点灯するLEDを1
増やす。そして、普通図柄表示器10の可変表示が開始
される毎に、点灯するLEDを1減らす。
When a game ball is won in the gate 32 and detected by the gate switch 32a, the variable display of the display of the normal symbol display device 10 is started. In this embodiment, the left and right lamps (the pattern can be visually recognized when turned on) are alternately turned on to perform variable display. For example, when the variable display ends, the right lamp is turned on. And when the stop symbol on the normal symbol display 10 is a predetermined symbol (hit symbol), the variable winning ball device 15 is opened for a predetermined number of times and for a predetermined time. Normal symbol display 10
The number of winning balls that entered the gate 32 is displayed near 4
A normal symbol start-up memory display 41 having a display section with two LEDs is provided. Every time there is a prize in the gate 32, the normal symbol starting memory display 41 turns on the LED that is turned on by 1
increase. Then, each time the variable display of the normal symbol display device 10 is started, the number of LEDs to be turned on is reduced by 1.

【0027】遊技盤6には、複数の入賞口29,30,
33,39が設けられ、遊技球の入賞口29,30,3
3への入賞は、それぞれ入賞口スイッチ29a,30
a,33a,39aによって検出される。各入賞口2
9,30,33,39は、遊技媒体を受け入れて入賞を
許容する領域として遊技盤6に設けられる入賞領域を構
成している。なお、遊技媒体を受け入れて入賞を許容す
る始動入賞口14や、大入賞口も、入賞領域を構成す
る。遊技領域7の左右周辺には、遊技中に点滅表示され
る装飾ランプ25が設けられ、下部には、入賞しなかっ
た打球を吸収するアウト口26がある。また、遊技領域
7の外側の左右上部には、効果音を発する2つのスピー
カ27が設けられている。遊技領域7の外周には、天枠
ランプ28a、左枠ランプ28bおよび右枠ランプ28
cが設けられている。さらに、遊技領域7における各構
造物(大入賞口等)の周囲には装飾LEDが設置されて
いる。天枠ランプ28a、左枠ランプ28bおよび右枠
ランプ28cおよび装飾用LEDは、遊技機に設けられ
ている装飾発光体の一例である。
The game board 6 has a plurality of winning openings 29, 30,
33, 39 are provided, and the winning openings 29, 30, 3 for gaming balls
The prizes for 3 are prize winning opening switches 29a, 30 respectively.
a, 33a, 39a. Each prize hole 2
Reference numerals 9, 30, 33, and 39 form a winning area provided on the game board 6 as an area for accepting a game medium and allowing a prize. It should be noted that the starting winning opening 14 that accepts the game medium and allows the winning, and the special winning opening also constitute the winning area. Decorative lamps 25 that are displayed blinking during the game are provided around the left and right sides of the game area 7, and there is an outlet 26 at the bottom for absorbing hit balls that have not been won. In addition, two speakers 27 that emit a sound effect are provided on the upper left and right sides outside the game area 7. On the outer periphery of the game area 7, a top frame lamp 28a, a left frame lamp 28b and a right frame lamp 28
c is provided. Further, a decorative LED is installed around each structure (a special winning opening, etc.) in the game area 7. The top frame lamp 28a, the left frame lamp 28b, the right frame lamp 28c, and the decorative LED are examples of the decorative light-emitting body provided in the game machine.

【0028】そして、この例では、左枠ランプ28bの
近傍に、賞球残数があるときに点灯する賞球ランプ51
が設けられ、天枠ランプ28aの近傍に、補給球が切れ
たときに点灯する球切れランプ52が設けられている。
上記のように、本例のパチンコ遊技機1には、発光体と
してのランプやLEDが各所に設けられている。さら
に、図1には、パチンコ遊技機1に隣接して設置され、
プリペイドカードが挿入されることによって球貸しを可
能にするカードユニット50も示されている。
In this example, the prize ball lamp 51 that lights up when the remaining number of prize balls is present near the left frame lamp 28b.
Is provided, and a ball-out lamp 52 that is turned on when the supply ball runs out is provided near the top frame lamp 28a.
As described above, the pachinko gaming machine 1 of this example is provided with lamps and LEDs as light-emitting bodies at various places. Furthermore, in FIG. 1, it is installed adjacent to the pachinko gaming machine 1,
Also shown is a card unit 50 that allows for ball lending by inserting a prepaid card.

【0029】カードユニット50には、使用可能状態で
あるか否かを示す使用可表示ランプ151、カード内に
記録された残額情報に端数(100円未満の数)が存在
する場合にその端数を打球供給皿3の近傍に設けられる
度数表示LEDに表示させるための端数表示スイッチ1
52、カードユニット50がいずれの側のパチンコ遊技
機1に対応しているのかを示す連結台方向表示器15
3、カードユニット50内にカードが投入されているこ
とを示すカード投入表示ランプ154、記録媒体として
のカードが挿入されるカード挿入口155、およびカー
ド挿入口155の裏面に設けられているカードリーダラ
イタの機構を点検する場合にカードユニット50を解放
するためのカードユニット錠156が設けられている。
In the card unit 50, a usable indicator lamp 151 indicating whether or not the card unit 50 is usable, and a fraction (a number less than 100 yen) in the balance information recorded in the card, the fraction is displayed. A fraction display switch 1 for displaying on a frequency display LED provided in the vicinity of the hit ball supply tray 3
52, the connection stand direction indicator 15 showing which side the pachinko gaming machine 1 the card unit 50 corresponds to
3, a card insertion display lamp 154 indicating that a card has been inserted into the card unit 50, a card insertion slot 155 into which a card as a recording medium is inserted, and a card reader provided on the back surface of the card insertion slot 155. A card unit lock 156 is provided for releasing the card unit 50 when checking the mechanism of the writer.

【0030】打球発射装置から発射された遊技球は、打
球レールを通って遊技領域7に入り、その後、遊技領域
7を下りてくる。打球が始動入賞口14に入り始動口ス
イッチ14aで検出されると、図柄の可変表示を開始で
きる状態であれば、可変表示装置9において特別図柄が
可変表示(変動)を始める。図柄の可変表示を開始でき
る状態でなければ、始動記憶数を1増やす。
The game ball shot from the hitting ball launching device enters the game area 7 through the hit ball rail, and then descends from the game area 7. When the ball hits the starting winning opening 14 and is detected by the starting opening switch 14a, if the variable display of the symbol can be started, the variable display device 9 starts the variable display (variation) of the special symbol. If it is not in a state where variable display of symbols can be started, the number of starting memories is increased by 1.

【0031】可変表示装置9における特別図柄の可変表
示は、一定時間が経過したときに停止する。停止時の特
別図柄の組み合わせが大当り図柄(特定表示結果)であ
ると、大当り遊技状態に移行する。すなわち、開閉板2
0が、一定時間経過するまで、または、所定個数(例え
ば10個)の打球が入賞するまで開放する。そして、開
閉板20の開放中に打球がV入賞領域に入賞しV入賞ス
イッチ22で検出されると、継続権が発生し開閉板20
の開放が再度行われる。継続権の発生は、所定回数(例
えば15ラウンド)許容される。
The variable display of the special symbol on the variable display device 9 is stopped when a certain time has elapsed. If the special symbol combination at the time of stop is a big hit symbol (specific display result), the big hit game state is entered. That is, the opening / closing plate 2
0 is released until a fixed time elapses or a predetermined number (for example, 10) of hit balls are won. Then, when the hit ball enters the V winning area while the opening / closing plate 20 is open and is detected by the V winning switch 22, the continuation right is generated and the opening / closing plate 20
Is released again. The continuation right can be generated a predetermined number of times (for example, 15 rounds).

【0032】停止時の可変表示装置9における特別図柄
の組み合わせが確率変動を伴う大当り図柄(確変図柄)
の組み合わせである場合には、次に大当りとなる確率が
高くなる。すなわち、確変状態という遊技者にとってさ
らに有利な状態となる。
A combination of special symbols in the variable display device 9 at the time of stop is a big hit symbol with probability variation (probability variation symbol)
In the case of the combination of, the probability of the next big hit is high. That is, the state of probability change is more advantageous for the player.

【0033】打球がゲート32に入賞すると、普通図柄
表示器10において普通図柄が可変表示される状態にな
る。また、普通図柄表示器10における停止図柄が所定
の図柄(当り図柄)である場合に、可変入賞球装置15
が所定時間だけ開状態になる。さらに、確変状態では、
普通図柄表示器10における停止図柄が当り図柄になる
確率が高められるとともに、可変入賞球装置15の開放
時間と開放回数が高められる。すなわち、可変入賞球装
置15の開放時間と開放回数は、普通図柄の停止図柄が
当り図柄であったり、特別図柄の停止図柄が確変図柄で
ある場合等に高められ、遊技者にとって不利な状態から
有利な状態に変化する。なお、開放回数が高められるこ
とは、閉状態から開状態になることも含む概念である。
When the ball hits the gate 32, the normal symbol display 10 is in a state in which the normal symbol is variably displayed. Further, when the stop symbol in the normal symbol display device 10 is a predetermined symbol (hit symbol), the variable winning ball device 15
Remains open for a predetermined time. Furthermore, in the probable state,
The probability that the stop symbol in the normal symbol display 10 will be a winning symbol is increased, and the opening time and the number of times of opening the variable winning ball device 15 are increased. That is, the opening time and the number of times of opening the variable winning ball device 15 are increased when the stop symbol of the normal symbol is a winning symbol or the stop symbol of the special symbol is a probability variation symbol, and the like, and from a disadvantageous state for the player. Change to an advantageous state. In addition, increasing the number of times of opening is a concept including changing from a closed state to an open state.

【0034】次に、パチンコ遊技機1の裏面の構造につ
いて図3および図4を参照して説明する。図3は、遊技
機を裏面から見た背面図である。図4は、各種部材が取
り付けられた機構板を遊技機背面側から見た背面図であ
る。
Next, the structure of the back surface of the pachinko gaming machine 1 will be described with reference to FIGS. 3 and 4. FIG. 3 is a rear view of the gaming machine viewed from the back side. FIG. 4 is a rear view of the mechanism plate to which various members are attached as seen from the rear side of the gaming machine.

【0035】図3に示すように、遊技機裏面側では、可
変表示装置9を制御する図柄制御基板80を含む可変表
示制御ユニット49、遊技制御用マイクロコンピュータ
等が搭載された遊技制御基板(主基板)31が設置され
ている。また、球払出制御を行う払出制御用マイクロコ
ンピュータ等が搭載された払出制御基板37が設置され
ている。さらに、遊技盤6に設けられている各種装飾L
ED、始動記憶表示器18および普通図柄始動記憶表示
器41、装飾ランプ25、枠側に設けられている天枠ラ
ンプ28a、左枠ランプ28b、右枠ランプ28c、賞
球ランプ51および球切れランプ52を点灯制御するラ
ンプ制御手段が搭載されたランプ制御基板35、スピー
カ27からの音発生を制御する音制御手段が搭載された
音制御基板70も設けられている。また、DC30V、
DC21V、DC12VおよびDC5Vを作成する電源
回路が搭載された電源基板910や発射制御基板91が
設けられている。
As shown in FIG. 3, on the back side of the game machine, a variable display control unit 49 including a symbol control board 80 for controlling the variable display device 9, a game control board on which a game control microcomputer and the like are mounted (mainly Substrate) 31 is installed. Further, a payout control board 37 on which a payout control microcomputer for performing ball payout control is mounted is installed. Furthermore, various decorations L provided on the game board 6
ED, starting memory indicator 18 and normal symbol starting memory indicator 41, decoration lamp 25, top frame lamp 28a, left frame lamp 28b, right frame lamp 28c, prize ball lamp 51 and ball out lamp provided on the frame side. There is also provided a lamp control board 35 on which a lamp control means for controlling lighting of 52 is mounted, and a sound control board 70 on which a sound control means for controlling sound generation from the speaker 27 is mounted. Also, DC30V,
A power supply board 910 and a firing control board 91 on which a power supply circuit for producing DC21V, DC12V and DC5V is mounted are provided.

【0036】遊技機裏面において、上方には、各種情報
を遊技機外部に出力するための各端子を備えたターミナ
ル基板160が設置されている。ターミナル基板160
には、少なくとも、球切れ検出スイッチの出力を導入し
て外部出力するための球切れ用端子、賞球個数信号を外
部出力するための賞球用端子および球貸し個数信号を外
部出力するための球貸し用端子が設けられている。ま
た、中央付近には、主基板31からの各種情報を遊技機
外部に出力するための各端子を備えた情報端子基板(情
報出力基板)34が設置されている。
On the back side of the game machine, a terminal board 160 having terminals for outputting various information to the outside of the game machine is installed above. Terminal board 160
At least, the terminal for ball breakage for introducing the output of the ball breakage detection switch and outputting it externally, the terminal for prize balls for externally outputting the prize ball number signal and the external output for the ball lending number signal A ball lending terminal is provided. Further, in the vicinity of the center, an information terminal board (information output board) 34 provided with each terminal for outputting various information from the main board 31 to the outside of the gaming machine is installed.

【0037】さらに、各基板(主基板31や払出制御基
板37等)に含まれる記憶内容保持手段(例えば、電力
供給停止時にもその内容を保持可能なバックアップRA
M)に記憶されたバックアップデータをクリアするため
の操作手段としてのクリアスイッチ921が搭載された
スイッチ基板190が設けられている。スイッチ基板1
90には、クリアスイッチ921と、主基板31等の他
の基板と接続されるコネクタ922が設けられている。
Further, a memory content holding means (for example, a backup RA capable of holding the content even when power supply is stopped) included in each board (main board 31, payout control board 37, etc.).
There is provided a switch board 190 on which a clear switch 921 as an operation means for clearing the backup data stored in M) is mounted. Switch board 1
The 90 is provided with a clear switch 921 and a connector 922 connected to another substrate such as the main substrate 31.

【0038】貯留タンク38に貯留された遊技球は誘導
レール39を通り、図4に示されるように、カーブ樋1
86を経て賞球ケースで覆われた球払出装置97に至
る。球払出装置97の上部には、遊技媒体切れ検出手段
としての球切れスイッチ187が設けられている。球切
れスイッチ187が球切れを検出すると、球払出装置9
7の払出動作が停止する。球切れスイッチ187は遊技
球通路内の遊技球の有無を検出するスイッチであるが、
貯留タンク38内の補給球の不足を検出する球切れ検出
スイッチ167も誘導レール39における上流部分(貯
留タンク38に近接する部分)に設けられている。球切
れ検出スイッチ167が遊技球の不足を検知すると、遊
技機設置島に設けられている補給機構から遊技機に対し
て遊技球の補給が行われる。
The game balls stored in the storage tank 38 pass through the guide rail 39, and as shown in FIG. 4, the curve gutter 1
After 86, the ball payout device 97 covered with the prize ball case is reached. At the upper part of the ball payout device 97, a ball break switch 187 is provided as a game medium cut detection means. When the out-of-ball switch 187 detects out-of-ball, the ball dispensing device 9
The payout operation of 7 is stopped. The out-of-ball switch 187 is a switch for detecting the presence or absence of a game ball in the game ball passage,
The out-of-balls detection switch 167 for detecting the shortage of the supply balls in the storage tank 38 is also provided in the upstream portion of the guide rail 39 (the portion close to the storage tank 38). When the out-of-ball detection switch 167 detects a shortage of game balls, the supply mechanism provided on the game machine installation island supplies game balls to the game machine.

【0039】入賞にもとづく景品としての遊技球や球貸
し要求にもとづく遊技球が多数払い出されて打球供給皿
3が満杯になり、ついには遊技球が連絡口45に到達し
た後さらに遊技球が払い出されると、遊技球は、余剰球
通路46を経て余剰球受皿4に導かれる。さらに遊技球
が払い出されると、感知レバー47が貯留状態検出手段
としての満タンスイッチ48を押圧して、貯留状態検出
手段としての満タンスイッチ48がオンする。その状態
では、球払出装置97内の払出モータの回転が停止して
球払出装置97の動作が停止するとともに発射装置の駆
動も停止する。
A large number of game balls as prizes based on prizes and game balls based on ball lending requests are paid out, and the hitting ball supply plate 3 becomes full, and finally the game balls reach the contact port 45 and further When paid out, the game ball is guided to the surplus ball receiving tray 4 through the surplus ball passage 46. Further, when the game ball is paid out, the sensing lever 47 presses the full tank switch 48 as the storage state detection means, and the full tank switch 48 as the storage state detection means is turned on. In that state, the rotation of the payout motor in the ball payout device 97 is stopped, the operation of the ball payout device 97 is stopped, and the driving of the launching device is also stopped.

【0040】図4に示すように、球払出装置97の側方
には、カーブ樋186から遊技機下部の排出口192に
至る球抜き通路191が形成されている。球抜き通路1
91の上部には球抜きレバー193が設けられ、球抜き
レバー193が遊技店員等によって操作されると、誘導
レール39から球抜き通路191への遊技球通路が形成
され、貯留タンク38内に貯留されている遊技球は、排
出口192から遊技機外に排出される。
As shown in FIG. 4, a ball removal passage 191 extending from the curve gutter 186 to the discharge port 192 at the lower portion of the gaming machine is formed on the side of the ball payout device 97. Ball passage 1
A ball removing lever 193 is provided on the upper portion of 91, and when the ball removing lever 193 is operated by a game shop clerk or the like, a game ball passage from the guide rail 39 to the ball removing passage 191 is formed and stored in the storage tank 38. The played game ball is discharged from the discharge port 192 to the outside of the game machine.

【0041】図5は、球払出装置97の構成例を示す分
解斜視図である。この例では、賞球ケースとしての3つ
のケース140,141,142の内部に球払出装置9
7が形成されている。ケース140,141の上部に
は、球切れスイッチ187の下部の球通路と連通する穴
170,171が設けられ、遊技球は、穴170,17
1から球払出装置97に流入する。
FIG. 5 is an exploded perspective view showing a structural example of the ball payout device 97. In this example, the ball payout device 9 is placed inside the three cases 140, 141, 142 as prize balls.
7 are formed. Holes 170 and 171 communicating with the ball passage at the bottom of the ball break switch 187 are provided on the top of the cases 140 and 141, and the game balls are holes 170 and 17
From 1 to the ball dispensing device 97.

【0042】球払出装置97は駆動源となる払出モータ
(例えばステッピングモータ)289を含む。払出モー
タ289の回転力は、払出モータ289の回転軸に嵌合
しているギア290に伝えられ、さらに、ギア290と
噛み合うギア291に伝えられる。ギア291の中心軸
には、凹部を有するスプロケット292が嵌合してい
る。穴170,171から流入した遊技球は、スプロケ
ット292の凹部によって、スプロケット292の下方
の球通路293a,293bに1個ずつ落下させられ
る。
The ball payout device 97 includes a payout motor (eg, stepping motor) 289 serving as a drive source. The rotational force of the dispensing motor 289 is transmitted to the gear 290 fitted to the rotation shaft of the dispensing motor 289, and further transmitted to the gear 291 that meshes with the gear 290. A sprocket 292 having a recess is fitted on the central axis of the gear 291. The game balls flowing in from the holes 170 and 171 are dropped one by one into the ball passages 293a and 293b below the sprocket 292 by the recesses of the sprocket 292.

【0043】球通路293a,293bには遊技球の流
下路を切り替えるための振分部材311が設けられてい
る。振分部材311はソレノイド310によって駆動さ
れ、賞球払出時には、球通路293a,293bにおけ
る一方の流下路(球通路293a:景品遊技媒体通路の
一例)を遊技球が流下するように倒れ、球貸し時には球
通路293a,293bにおける他方の流下路(球通路
293b:貸出遊技媒体通路の一例)を遊技球が流下す
るように倒れる。なお、払出モータ289およびソレノ
イド310は、払出制御基板37に搭載されている払出
制御用CPUによって制御される。また、払出制御用C
PUは、主基板31に搭載されている遊技制御用のCP
Uからの指令に応じて払出モータ289およびソレノイ
ド310を制御する。
The ball passages 293a and 293b are provided with a distribution member 311 for switching the flow path of the game balls. The distribution member 311 is driven by the solenoid 310, and when paying out a prize ball, the game ball falls down one of the flow paths (ball path 293a: an example of a prize game medium path) in the ball paths 293a and 293b, and the ball is lent. Occasionally, the game balls fall down along the other flow path (ball path 293b: an example of a lending game medium path) in the ball paths 293a and 293b. The payout motor 289 and the solenoid 310 are controlled by the payout control CPU mounted on the payout control board 37. Also, C for payout control
PU is a game control CP mounted on the main board 31.
The payout motor 289 and the solenoid 310 are controlled according to a command from U.

【0044】賞球払出時に選択される流下路の下方には
球払出装置によって払い出された遊技球を検出する賞球
センサ(賞球カウントスイッチ)301Aが設けられ、
球貸し時に選択される流下路の下方には球払出装置によ
って払い出された遊技球を検出する球貸しセンサ(球貸
しカウントスイッチ)301Bが設けられている。賞球
カウントスイッチ301Aの検出信号と球貸しカウント
スイッチ301Bの検出信号は払出制御基板37の払出
制御用CPUに入力される。払出制御用CPUは、それ
らの検出信号にもとづいて、実際に払い出された遊技球
の個数を計数する。
A prize ball sensor (prize ball count switch) 301A for detecting the game balls paid out by the ball payout device is provided below the downflow path selected at the time of paying out prize balls.
A ball lending sensor (ball lending count switch) 301B for detecting a game ball paid out by a ball payout device is provided below the flow-down path selected at the time of ball lending. The detection signal of the prize ball count switch 301A and the detection signal of the ball lending count switch 301B are input to the payout control CPU of the payout control board 37. The payout control CPU counts the number of game balls actually paid out based on the detection signals.

【0045】なお、ギア291の周辺部には、払出モー
タ位置センサを形成する突起部が形成されている。突起
部は、ギア291の回転すなわち払出モータ289の回
転に伴って発光体(図示せず)からの光を、払出モータ
位置センサの受光部(図示せず)に対して透過させたり
遮蔽したりする。払出制御用CPUは、受光部からの検
出信号によって払出モータ289の位置を認識すること
ができる。
Incidentally, on the peripheral portion of the gear 291, there is formed a protrusion forming a payout motor position sensor. The protrusion allows the light from the light emitting body (not shown) to pass through or shield the light receiving unit (not shown) of the payout motor position sensor in accordance with the rotation of the gear 291 or the rotation of the payout motor 289. To do. The payout control CPU can recognize the position of the payout motor 289 from the detection signal from the light receiving unit.

【0046】また、球払出装置は、賞球払出と球貸しと
を共に行うように構成されていてもよいが、賞球払出を
行う球払出装置と球貸しを行う球払出装置が別個に設け
られていてもよい。さらに、例えばスプロケットの回転
方向を変えて賞球払出と球貸しとを分けるように構成さ
れていてもよいし、本実施の形態において例示する球払
出装置97以外のどのような構造の球払出装置を用いて
も、本発明を適用することができる。
Further, the ball payout device may be configured to perform both prize ball payout and ball lending, but a ball payout device for paying a prize ball and a ball payout device for lending a ball are separately provided. It may be. Further, for example, the rotation direction of the sprocket may be changed to divide the prize ball payout and the ball lending, and the ball payout device having any structure other than the ball payout device 97 exemplified in the present embodiment. The present invention can also be applied by using.

【0047】図6は、遊技盤6に設置されているスイッ
チ基板190の部分を示す正面図である。図6に示すよ
うに、スイッチ基板190には、主基板31等の他の基
板に、ケーブルを介してクリアスイッチ921の出力を
接続するためのコネクタ922が搭載されている。
FIG. 6 is a front view showing a portion of the switch board 190 installed on the game board 6. As shown in FIG. 6, the switch substrate 190 is provided with a connector 922 for connecting the output of the clear switch 921 to another substrate such as the main substrate 31 via a cable.

【0048】図7は、スイッチ基板190に搭載された
クリアスイッチ921の構成の一例を示す構成図であ
る。図7(A)には、押しボタン構造のクリアスイッチ
921が示されている。クリアスイッチ921が押下さ
れるとローレベル(オン状態)のクリアスイッチ信号が
出力され、コネクタ922を介して主基板31等に送信
される。また、クリアスイッチ921が押下されていな
ければハイレベル(オフ状態)の信号が出力される。
FIG. 7 is a configuration diagram showing an example of the configuration of the clear switch 921 mounted on the switch substrate 190. FIG. 7A shows a clear switch 921 having a push button structure. When the clear switch 921 is pressed, a low level (on state) clear switch signal is output and transmitted to the main board 31 and the like via the connector 922. If the clear switch 921 is not pressed, a high level (off state) signal is output.

【0049】図7(B)は、クリアスイッチ921の他
の構成例を示す構成図である。図7(B)に示すクリア
スイッチ921は、「OFF」、「ON」および「クリ
ア」の選択切り換えを行うための切換操作部921aを
有する。切換操作部921aによって、「OFF」が選
択されているときは何らの信号も発生しない。「ON」
が選択されているときはハイレベルの信号を出力する。
なお、クリアスイッチ921が、遊技機1に対する電源
供給のオン/オフ切換のためのスイッチも兼ねていても
よい。その場合、「OFF」が選択されると、遊技機1
に対する電源供給が停止された状態(遊技機の電源がオ
フの状態)になる。「ON」または「クリア」が選択さ
れると、遊技機1に対して電源供給が行われる状態(遊
技機の電源がオンの状態)になる。また、「クリア」が
選択されているときに、ローレベルのクリアスイッチ信
号が出力される。
FIG. 7B is a configuration diagram showing another configuration example of the clear switch 921. The clear switch 921 shown in FIG. 7B has a switching operation unit 921a for performing selective switching of "OFF", "ON", and "clear". When "OFF" is selected by the switching operation unit 921a, no signal is generated. "ON"
When is selected, a high level signal is output.
The clear switch 921 may also serve as a switch for switching on / off the power supply to the gaming machine 1. In that case, when "OFF" is selected, the gaming machine 1
The power supply to is stopped (the power of the gaming machine is off). If "ON" or "clear" is selected, the game machine 1 is in a state where power is supplied (the game machine is powered on). Also, when "clear" is selected, a low level clear switch signal is output.

【0050】なお、この実施の形態では、クリアスイッ
チ921が搭載されたスイッチ基板190が他の基板と
は別個に設けられているが、他の基板にクリアスイッチ
921を搭載してもよい。例えば、電源基板910に搭
載してもよい。クリアスイッチ921が電源基板910
に搭載されている場合には、遊技盤6の入れ替え等の場
合に入れ替え後の遊技盤6に対して電源基板910をそ
のまま使用しても、入れ替え後の遊技盤6において、そ
のままで遊技状態復旧処理等を実行することができる。
すなわち、電源基板910の使い回しを行うことができ
る。
Although the switch board 190 on which the clear switch 921 is mounted is provided separately from the other boards in this embodiment, the clear switch 921 may be mounted on the other board. For example, it may be mounted on the power supply board 910. The clear switch 921 is the power supply board 910.
In the case where the game board 6 is replaced, even if the power board 910 is used as it is for the replaced game board 6 in the case of replacement, etc., the game state is restored as it is in the replaced game board 6. Processing and the like can be executed.
That is, the power supply board 910 can be reused.

【0051】図8は、主基板31における回路構成の一
例を示すブロック図である。なお、図8には、払出制御
基板37、ランプ制御基板35、音制御基板70、発射
制御基板91および図柄制御基板80も示されている。
主基板31には、プログラムに従ってパチンコ遊技機1
を制御する基本回路53と、ゲートスイッチ32a、始
動口スイッチ14a、V入賞スイッチ22、カウントス
イッチ23、入賞口スイッチ29a,30a,33a,
39a、満タンスイッチ48、球切れスイッチ187、
賞球カウントスイッチ301Aおよびクリアスイッチ9
21からの信号を基本回路53に与えるスイッチ回路5
8と、可変入賞球装置15を開閉するソレノイド16、
開閉板20を開閉するソレノイド21および大入賞口内
の経路を切り換えるためのソレノイド21Aを基本回路
53からの指令に従って駆動するソレノイド回路59と
が搭載されている。
FIG. 8 is a block diagram showing an example of the circuit configuration of the main board 31. Note that FIG. 8 also shows the payout control board 37, the lamp control board 35, the sound control board 70, the firing control board 91, and the symbol control board 80.
On the main board 31, the pachinko gaming machine 1 according to the program
Control circuit 53, a gate switch 32a, a starting opening switch 14a, a V winning switch 22, a count switch 23, winning opening switches 29a, 30a, 33a,
39a, full tank switch 48, out of ball switch 187,
Prize ball count switch 301A and clear switch 9
Switch circuit 5 for giving the signal from 21 to the basic circuit 53
8 and a solenoid 16 for opening and closing the variable winning ball device 15,
A solenoid 21 for opening / closing the opening / closing plate 20 and a solenoid circuit 59 for driving a solenoid 21A for switching the path in the special winning opening according to a command from the basic circuit 53 are mounted.

【0052】なお、図8には示されていないが、カウン
トスイッチ短絡信号もスイッチ回路58を介して基本回
路53に伝達される。また、ゲートスイッチ32a、始
動口スイッチ14a、V入賞スイッチ22、カウントス
イッチ23、入賞口スイッチ29a,30a,33a,
39a、満タンスイッチ48、球切れスイッチ187、
賞球カウントスイッチ301A等のスイッチは、センサ
と称されているものでもよい。すなわち、遊技球を検出
できる遊技媒体検出手段(この例では遊技球検出手段)
であれば、その名称を問わない。特に、入賞検出を行う
始動口スイッチ14a、カウントスイッチ23、および
入賞口スイッチ29a,30a,33a,39aの各ス
イッチは、入賞検出手段でもある。なお、入賞検出手段
は、複数の入賞口に別個に入賞したそれぞれの遊技球を
まとめて検出するものであってもよい。また、ゲートス
イッチ32aのような通過ゲートであっても、賞球の払
い出しが行われるものであれば、通過ゲートへ遊技球が
進入することが入賞となり、通過ゲートに設けられてい
るスイッチ(例えばゲートスイッチ32a)が入賞検出
手段となる。
Although not shown in FIG. 8, the count switch short circuit signal is also transmitted to the basic circuit 53 via the switch circuit 58. Further, the gate switch 32a, the starting port switch 14a, the V winning switch 22, the count switch 23, the winning port switches 29a, 30a, 33a,
39a, full tank switch 48, out of ball switch 187,
Switches such as the prize ball count switch 301A may be called a sensor. That is, a game medium detecting means capable of detecting a game ball (a game ball detecting means in this example)
If so, the name does not matter. In particular, each of the starting opening switch 14a, the count switch 23, and the winning opening switches 29a, 30a, 33a, 39a for performing the winning detection is also a winning detection means. The winning detection means may be one that collectively detects each of the gaming balls that have been won separately in a plurality of winning openings. Further, even if a passing gate such as the gate switch 32a is used for paying out prize balls, entering a game ball into the passing gate is a prize, and a switch provided in the passing gate (for example, The gate switch 32a) serves as a winning detection means.

【0053】また、基本回路53から与えられるデータ
に従って、大当りの発生を示す大当り情報、可変表示装
置9における図柄の可変表示開始に利用された始動入賞
球の個数を示す有効始動情報、確率変動が生じたことを
示す確変情報等の情報出力信号をホールコンピュータ等
の外部装置に対して出力する情報出力回路64が搭載さ
れている。
Further, according to the data given from the basic circuit 53, the big hit information indicating the occurrence of the big hit, the effective starting information indicating the number of starting winning balls used to start the variable display of the symbols on the variable display device 9, and the probability variation An information output circuit 64 that outputs an information output signal such as probability variation information indicating that it has occurred to an external device such as a hall computer is mounted.

【0054】基本回路53は、ゲーム制御用のプログラ
ム等を記憶するROM54、ワークメモリとして使用さ
れる記憶手段(変動データを記憶する手段)としてのR
AM55、プログラムに従って制御動作を行うCPU5
6およびI/Oポート部57を含む。この実施の形態で
は、ROM54,RAM55はCPU56に内蔵されて
いる。すなわち、CPU56は、1チップマイクロコン
ピュータである。なお、1チップマイクロコンピュータ
は、少なくともRAM55が内蔵されていればよく、R
OM54およびI/Oポート部57は外付けであっても
内蔵されていてもよい。
The basic circuit 53 is a ROM 54 for storing a game control program and the like, and R as a storage means (a means for storing variation data) used as a work memory.
AM55, CPU5 which controls according to the program
6 and I / O port section 57. In this embodiment, the ROM 54 and the RAM 55 are built in the CPU 56. That is, the CPU 56 is a one-chip microcomputer. Note that the 1-chip microcomputer only needs to have at least the RAM 55 built therein, and
The OM 54 and the I / O port unit 57 may be external or built-in.

【0055】また、RAM(CPU内蔵RAMであって
もよい。)55の一部または全部が、電源基板910に
おいて作成されるバックアップ電源よってバックアップ
されているバックアップRAMである。すなわち、遊技
機に対する電力供給が停止しても、所定期間は、RAM
55の一部または全部の内容は保存される。
Further, a part or all of the RAM (which may be a RAM with built-in CPU) 55 is a backup RAM backed up by a backup power supply created in the power supply board 910. In other words, even if the power supply to the gaming machine is stopped, the RAM remains for a predetermined period.
The contents of part or all of 55 are saved.

【0056】遊技球を打撃して発射する打球発射装置は
発射制御基板91上の回路によって制御される駆動モー
タ94で駆動される。そして、駆動モータ94の駆動力
は、操作ノブ5の操作量に従って調整される。すなわ
ち、発射制御基板91上の回路によって、操作ノブ5の
操作量に応じた速度で打球が発射されるように制御され
る。
The hit ball launching device for hitting and launching a game ball is driven by a drive motor 94 controlled by a circuit on the launch control board 91. Then, the driving force of the drive motor 94 is adjusted according to the operation amount of the operation knob 5. That is, the circuit on the firing control board 91 controls the ball to be fired at a speed according to the operation amount of the operation knob 5.

【0057】なお、この実施の形態では、ランプ制御基
板35に搭載されているランプ制御手段が、遊技盤に設
けられている始動記憶表示器18、普通図柄始動記憶表
示器41および装飾ランプ25の表示制御を行うととも
に、枠側に設けられている天枠ランプ28a、左枠ラン
プ28b、右枠ランプ28c、賞球ランプ51および球
切れランプ52の表示制御を行う。また、特別図柄を可
変表示する可変表示装置9および普通図柄を可変表示す
る普通図柄表示器10の表示制御は、図柄制御基板80
に搭載されている表示制御手段によって行われる。
In this embodiment, the lamp control means mounted on the lamp control board 35 includes the starting memory indicator 18, the normal symbol starting memory indicator 41 and the decorative lamp 25 provided on the game board. In addition to performing display control, display control of the top frame lamp 28a, the left frame lamp 28b, the right frame lamp 28c, the prize ball lamp 51, and the out-of-ball lamp 52 provided on the frame side is performed. Further, the display control of the variable display device 9 that variably displays the special symbol and the normal symbol display 10 that variably displays the ordinary symbol is the symbol control board 80.
The display control means mounted on the.

【0058】図9は、払出制御基板37および球払出装
置97の構成要素などの払出に関連する構成要素を示す
ブロック図である。図9に示すように、満タンスイッチ
48からの検出信号は、中継基板71を介して主基板3
1のI/Oポート部57に入力される。また、球切れス
イッチ187からの検出信号も、中継基板72および中
継基板71を介して主基板31のI/Oポート部57に
入力される。
FIG. 9 is a block diagram showing components related to payout, such as the components of the payout control board 37 and the ball payout device 97. As shown in FIG. 9, the detection signal from the full tank switch 48 is transmitted via the relay board 71 to the main board 3.
1 is input to the I / O port unit 57. The detection signal from the ball break switch 187 is also input to the I / O port section 57 of the main board 31 via the relay boards 72 and 71.

【0059】主基板31のCPU56は、球切れスイッ
チ187からの検出信号が球切れ状態を示しているか、
または、満タンスイッチ48からの検出信号が満タン状
態を示していると、払出を停止すべき状態であることを
指示する払出制御コマンドを送出する。払出を停止すべ
き状態であることを指示する払出制御コマンドを受信す
ると、払出制御基板37の払出制御用CPU371は球
払出処理を停止する。
The CPU 56 of the main board 31 determines whether the detection signal from the ball break switch 187 indicates the ball break condition.
Alternatively, when the detection signal from the full tank switch 48 indicates the full state, a payout control command instructing that the payout should be stopped is sent. When receiving the payout control command instructing that the payout should be stopped, the payout control CPU 371 of the payout control board 37 stops the ball payout process.

【0060】さらに、賞球カウントスイッチ301Aか
らの検出信号は、中継基板72および中継基板71を介
して主基板31のI/Oポート部57に入力されるとと
もに、中継基板72を介して払出制御基板37の入力ポ
ート372bに入力される。賞球カウントスイッチ30
1Aは、球払出装置97の払出機構部分に設けられ、実
際に払い出された賞球払出球を検出する。
Further, the detection signal from the prize ball count switch 301A is input to the I / O port section 57 of the main board 31 via the relay boards 72 and 71, and the payout control is performed via the relay board 72. It is input to the input port 372b of the substrate 37. Prize ball count switch 30
1A is provided in the payout mechanism portion of the ball payout device 97, and detects the actually paid award ball.

【0061】入賞があると、払出制御基板37には、主
基板31の出力ポート(ポート0,1)570,571
から賞球個数を示す払出制御コマンドが入力される。出
力ポート(出力ポート1)571は8ビットのデータを
出力し、出力ポート570は1ビットのINT信号を出
力する。賞球個数を示す払出制御コマンドは、入力バッ
ファ回路373Aを介してI/Oポート372aに入力
される。INT信号は、入力バッファ回路373Bを介
して払出制御用CPU371の割込端子に入力されてい
る。払出制御用CPU371は、I/Oポート372a
を介して払出制御コマンドを入力し、払出制御コマンド
に応じて球払出装置97を駆動して賞球払出を行う。な
お、この実施の形態では、払出制御用CPU371は、
1チップマイクロコンピュータであり、少なくともRA
Mが内蔵されている。
When there is a prize, the payout control board 37 has output ports (ports 0, 1) 570, 571 of the main board 31.
A payout control command indicating the number of prize balls is input from. The output port (output port 1) 571 outputs 8-bit data, and the output port 570 outputs a 1-bit INT signal. The payout control command indicating the number of prize balls is input to the I / O port 372a via the input buffer circuit 373A. The INT signal is input to the interrupt terminal of the payout control CPU 371 via the input buffer circuit 373B. The payout control CPU 371 is an I / O port 372a.
The payout control command is input via the, and the ball payout device 97 is driven according to the payout control command to perform the prize ball payout. In this embodiment, the payout control CPU 371 is
1-chip microcomputer, at least RA
M is built in.

【0062】また、主基板31において、出力ポート5
70,571の外側にバッファ回路620,68Aが設
けられている。バッファ回路620,68Aとして、例
えば、汎用のCMOS−ICである74HC250,7
4HC14が用いられる。このような構成によれば、外
部から主基板31の内部に入力される信号が阻止される
ので、払出制御基板37から主基板31に信号が与えら
れる可能性がある信号ラインをさらに確実になくすこと
ができる。なお、バッファ回路620,68Aの出力側
にノイズフィルタを設けてもよい。
On the main board 31, the output port 5
Buffer circuits 620 and 68A are provided outside the 70 and 571. The buffer circuits 620 and 68A are, for example, 74HC250 and 7 which are general-purpose CMOS-ICs.
4HC14 is used. According to such a configuration, a signal input from the outside to the inside of the main board 31 is blocked, so that the signal line that may give a signal from the payout control board 37 to the main board 31 is further reliably eliminated. be able to. A noise filter may be provided on the output side of the buffer circuits 620 and 68A.

【0063】払出制御用CPU371は、出力ポート3
72cを介して、貸し球数を示す球貸し個数信号をター
ミナル基板160に出力する。さらに、出力ポート37
2dを介して、エラー表示用LED374にエラー信号
を出力する。
The payout control CPU 371 uses the output port 3
A lent ball number signal indicating the number of lent balls is output to the terminal board 160 via 72c. Furthermore, the output port 37
An error signal is output to the error display LED 374 via 2d.

【0064】さらに、払出制御基板37の入力ポート3
72bには、中継基板72を介して、球貸しカウントス
イッチ301B、および払出モータ289の回転位置を
検出するための払出モータ位置センサからの検出信号が
入力される。球貸しカウントスイッチ301Bは、球払
出装置97の払出機構部分に設けられ、実際に払い出さ
れた貸し球を検出する。払出制御基板37からの払出モ
ータ289への駆動信号は、出力ポート372cおよび
中継基板72を介して球払出装置97の払出機構部分に
おける払出モータ289に伝えられ、振分ソレノイド3
10への駆動信号は、出力ポート372eおよび中継基
板72を介して球払出装置97の払出機構部分における
振分ソレノイド310に伝えられる。また、クリアスイ
ッチ921の出力も、入力ポート372bに入力され
る。
Further, the input port 3 of the payout control board 37
The detection signals from the ball lending count switch 301B and a payout motor position sensor for detecting the rotational position of the payout motor 289 are input to the 72b via the relay board 72. The ball lending count switch 301B is provided in the payout mechanism portion of the ball payout device 97, and detects the actually loaned ball. The drive signal from the payout control board 37 to the payout motor 289 is transmitted to the payout motor 289 in the payout mechanism portion of the ball payout device 97 via the output port 372c and the relay board 72, and the distribution solenoid 3 is used.
The drive signal to 10 is transmitted to the distribution solenoid 310 in the payout mechanism portion of the ball payout device 97 via the output port 372e and the relay board 72. The output of the clear switch 921 is also input to the input port 372b.

【0065】カードユニット50には、カードユニット
制御用マイクロコンピュータが搭載されている。また、
カードユニット50には、端数表示スイッチ152、連
結台方向表示器153、カード投入表示ランプ154お
よびカード挿入口155が設けられている(図1参
照)。残高表示基板74には、打球供給皿3の近傍に設
けられている度数表示LED、球貸しスイッチおよび返
却スイッチが接続される。
The card unit 50 is equipped with a microcomputer for controlling the card unit. Also,
The card unit 50 is provided with a fraction display switch 152, a connecting board direction indicator 153, a card insertion display lamp 154, and a card insertion slot 155 (see FIG. 1). To the balance display board 74, a frequency display LED, a ball lending switch and a return switch, which are provided in the vicinity of the hitting ball supply tray 3, are connected.

【0066】残高表示基板74からカードユニット50
には、遊技者の操作に応じて、球貸しスイッチ信号およ
び返却スイッチ信号が払出制御基板37を介して与えら
れる。また、カードユニット50から残高表示基板74
には、プリペイドカードの残高を示すカード残高表示信
号および球貸し可表示信号が払出制御基板37を介して
与えられる。カードユニット50と払出制御基板37の
間では、接続信号(VL信号)、ユニット操作信号(B
RDY信号)、球貸し要求信号(BRQ信号)、球貸し
完了信号(EXS信号)およびパチンコ機動作信号(P
RDY信号)が入力ポート372bおよび出力ポート3
72eを介してやりとりされる。
From the balance display board 74 to the card unit 50
A ball lending switch signal and a return switch signal are given to the player through the payout control board 37 according to the operation of the player. In addition, the balance display board 74 from the card unit 50
A card balance display signal indicating the balance of the prepaid card and a ball lending allowance display signal are given to the payout control board 37. Between the card unit 50 and the payout control board 37, a connection signal (VL signal) and a unit operation signal (B
RDY signal), ball lending request signal (BRQ signal), ball lending completion signal (EXS signal) and pachinko machine operation signal (P
RDY signal) is input port 372b and output port 3
It is exchanged via 72e.

【0067】パチンコ遊技機1の電源が投入されると、
払出制御基板37の払出制御用CPU371は、カード
ユニット50にPRDY信号を出力する。また、カード
ユニット制御用マイクロコンピュータは、VL信号を出
力する。払出制御用CPU371は、VL信号の入力状
態により接続状態/未接続状態を判定する。カードユニ
ット50においてカードが受け付けられ、球貸しスイッ
チが操作され球貸しスイッチ信号が入力されると、カー
ドユニット制御用マイクロコンピュータは、払出制御基
板37にBRDY信号を出力する。この時点から所定の
遅延時間が経過すると、カードユニット制御用マイクロ
コンピュータは、払出制御基板37にBRQ信号を出力
する。
When the power of the pachinko gaming machine 1 is turned on,
The payout control CPU 371 of the payout control board 37 outputs a PRDY signal to the card unit 50. Further, the card unit control microcomputer outputs a VL signal. The payout control CPU 371 determines the connected state / unconnected state based on the input state of the VL signal. When the card is accepted in the card unit 50 and the ball lending switch is operated to input a ball lending switch signal, the card unit controlling microcomputer outputs a BRDY signal to the payout control board 37. When a predetermined delay time has elapsed from this point in time, the card unit control microcomputer outputs a BRQ signal to the payout control board 37.

【0068】そして、払出制御基板37の払出制御用C
PU371は、カードユニット50に対するEXS信号
を立ち上げ、カードユニット50からのBRQ信号の立
ち下がりを検出すると、払出モータ289を駆動し、所
定個の貸し球を遊技者に払い出す。このとき、振分ソレ
ノイド310は駆動状態とされている。すなわち、球振
分部材311を球貸し側に向ける。そして、払出が完了
したら、払出制御用CPU371は、カードユニット5
0に対するEXS信号を立ち下げる。その後、カードユ
ニット50からのBRDY信号がオン状態でなければ、
賞球払出制御を実行する。
Then, the payout control C of the payout control board 37 is used.
When the PU 371 raises the EXS signal to the card unit 50 and detects the fall of the BRQ signal from the card unit 50, it drives the payout motor 289 to pay out a predetermined number of lending balls to the player. At this time, the distribution solenoid 310 is in a driving state. That is, the ball distribution member 311 is directed to the ball lending side. When the payout is completed, the payout control CPU 371 causes the card unit 5
The EXS signal for 0 is dropped. After that, if the BRDY signal from the card unit 50 is not on,
The prize ball payout control is executed.

【0069】以上のように、カードユニット50からの
信号は全て払出制御基板37に入力される構成になって
いる。従って、球貸し制御に関して、カードユニット5
0から主基板31に信号が入力されることはなく、主基
板31の基本回路53にカードユニット50の側から不
正に信号が入力される余地はない。また、カードユニッ
ト50で用いられる電源電圧AC24Vは払出制御基板
37から供給される。
As described above, all the signals from the card unit 50 are input to the payout control board 37. Therefore, regarding the ball lending control, the card unit 5
No signal is input to the main board 31 from 0, and there is no room for the signal to be illegally input to the basic circuit 53 of the main board 31 from the card unit 50 side. The power supply voltage AC24V used in the card unit 50 is supplied from the payout control board 37.

【0070】この実施の形態では、電源基板910から
払出制御基板37に対して電源断信号も入力される。電
源断信号は、払出制御用CPU371のマスク不能割込
(NMI)端子に入力される。さらに、払出制御基板3
7に存在するRAM(CPU内蔵RAMであってもよ
い。)の少なくとも一部は、電源基板910において作
成されるバックアップ電源によって、バックアップされ
ている。すなわち、遊技機に対する電力供給が停止して
も、所定期間は、RAMの少なくとも一部の内容は保存
される。
In this embodiment, a power-off signal is also input from the power supply board 910 to the payout control board 37. The power-off signal is input to the non-maskable interrupt (NMI) terminal of the payout control CPU 371. Furthermore, the payout control board 3
At least a part of the RAM (may be a RAM with a built-in CPU) existing in 7 is backed up by a backup power supply created in the power supply board 910. That is, even if the power supply to the gaming machine is stopped, at least a part of the contents of the RAM is saved for a predetermined period.

【0071】なお、この実施の形態では、カードユニッ
ト50が遊技機とは別体として遊技機に隣接して設置さ
れている場合を例にするが、カードユニット50は遊技
機と一体化されていてもよい。また、コイン投入に応じ
てその金額に応じた遊技球が貸し出されるような場合で
も本発明を適用できる。
In this embodiment, the case where the card unit 50 is installed adjacent to the gaming machine as a separate body from the gaming machine is taken as an example, but the card unit 50 is integrated with the gaming machine. May be. Further, the present invention can be applied even when a game ball corresponding to the amount of coins is lent out in response to the coin insertion.

【0072】図10は、電源基板910の一構成例を示
すブロック図である。電源基板910は、主基板31、
図柄制御基板80、音制御基板70、ランプ制御基板3
5および払出制御基板37等の電気部品制御基板と独立
して設置され、遊技機内の各電気部品制御基板および機
構部品が使用する電圧を生成する。この例では、AC2
4V、VSL(DC+30V)、DC+21V、DC+1
2VおよびDC+5Vを生成する。また、バックアップ
電源すなわち記憶保持手段となるコンデンサ916は、
DC+5Vすなわち各基板上のIC等を駆動する電源の
ラインから充電される。なお、VSLは、整流回路912
において、整流素子でAC24Vを整流昇圧することに
よって生成される。VSLは、ソレノイド駆動電源とな
る。
FIG. 10 is a block diagram showing an example of the structure of the power supply board 910. The power supply board 910 includes a main board 31,
Design control board 80, sound control board 70, lamp control board 3
5 and the payout control board 37 and other electric part control boards are installed independently of each other, and each electric part control board in the gaming machine and the voltage used by the mechanical parts are generated. In this example, AC2
4V, VSL (DC + 30V), DC + 21V, DC + 1
Generates 2V and DC + 5V. Further, the backup power source, that is, the capacitor 916 serving as a memory holding unit,
It is charged from DC + 5V, that is, from the line of the power supply that drives the ICs on each substrate. Note that VSL is a rectifier circuit 912.
At, the rectifying element rectifies and boosts AC 24V. VSL serves as a solenoid drive power source.

【0073】トランス911は、交流電源からの交流電
圧を24Vに変換する。AC24V電圧は、コネクタ9
15に出力される。また、整流回路912は、AC24
Vから+30Vの直流電圧を生成し、DC−DCコンバ
ータ913およびコネクタ915に出力する。DC−D
Cコンバータ913は、1つまたは複数のコンバータI
C920(図10では1つのみを示す。)を有し、VSL
にもとづいて+21V、+12Vおよび+5Vを生成し
てコネクタ915に出力する。コンバータIC920の
入力側には、比較的大容量のコンデンサ923が接続さ
れている。従って、外部からの遊技機に対する電力供給
が停止したときに、+21V、+12V、+5V等の直
流電圧は、比較的緩やかに低下する。また、コネクタ9
15の入力側にも、比較的大容量のコンデンサ924が
接続されている。従って、コネクタ915に出力される
+30Vの直流電圧は、比較的緩やかに低下する。この
結果、コンデンサ923,924は、後述する補助駆動
電源(補助電力供給手段、補助駆動電力供給手段)の役
割を果たす。コネクタ915は例えば中継基板に接続さ
れ、中継基板から各電気部品制御基板および機構部品に
必要な電圧の電力が供給される。
The transformer 911 converts the AC voltage from the AC power supply into 24V. 24V AC voltage is applied to connector 9
It is output to 15. In addition, the rectifier circuit 912 is an AC 24
A DC voltage of +30 V is generated from V and output to the DC-DC converter 913 and the connector 915. DC-D
C converter 913 may include one or more converters I
C920 (only one is shown in FIG. 10) and VSL
Based on the above, + 21V, + 12V and + 5V are generated and output to the connector 915. A relatively large-capacity capacitor 923 is connected to the input side of the converter IC 920. Therefore, when the power supply to the game machine from the outside is stopped, the DC voltage of + 21V, + 12V, + 5V, etc., decreases relatively gently. Also, the connector 9
A capacitor 924 having a relatively large capacity is also connected to the input side of 15. Therefore, the + 30V DC voltage output to the connector 915 decreases relatively slowly. As a result, the capacitors 923 and 924 serve as an auxiliary drive power source (auxiliary power supply means, auxiliary drive power supply means) described later. The connector 915 is connected to, for example, a relay board, and the relay board supplies electric power of a required voltage to each electric component control board and mechanical components.

【0074】ただし、電源基板910に各電気部品制御
基板に至る各コネクタを設け、電源基板910から、中
継基板を介さずにそれぞれの基板に至る各電圧を供給す
るようにしてもよい。また、図10には1つのコネクタ
915が代表して示されているが、コネクタは、各電気
部品制御基板対応に設けられている。
However, the power supply board 910 may be provided with each connector reaching each electric component control board, and each voltage may be supplied from the power supply board 910 to each board without passing through the relay board. Further, although one connector 915 is representatively shown in FIG. 10, the connector is provided for each electric component control board.

【0075】DC−DCコンバータ913からの+5V
ラインは分岐してバックアップ+5Vラインを形成す
る。バックアップ+5Vラインとグラウンドレベルとの
間には大容量のコンデンサ916が接続されている。コ
ンデンサ916は、遊技機に対する電力供給が停止した
ときの電気部品制御基板のバックアップRAM(電源バ
ックアップされているRAMすなわち電力供給停止時に
も記憶内容保持状態となりうるバックアップ記憶手段)
に対して記憶状態を保持できるように電力を供給するバ
ックアップ電源となる。また、+5Vラインとバックア
ップ+5Vラインとの間に、逆流防止用のダイオード9
17が挿入される。なお、この実施の形態では、バック
アップ用の+5Vは、主基板31および払出制御基板3
7に供給される。
+ 5V from the DC-DC converter 913
The line branches to form a backup + 5V line. A large-capacity capacitor 916 is connected between the backup + 5V line and the ground level. The capacitor 916 is a backup RAM of the electric component control board when the power supply to the game machine is stopped (RAM whose power is backed up, that is, backup storage means that can be in a storage content holding state even when the power supply is stopped).
It becomes a backup power supply that supplies electric power so that the memory state can be maintained. In addition, a diode 9 for preventing backflow is provided between the + 5V line and the backup + 5V line.
17 is inserted. In this embodiment, the backup + 5V is applied to the main board 31 and the payout control board 3
7 is supplied.

【0076】なお、バックアップ電源として、+5V電
源から充電可能な電池を用いてもよい。電池を用いる場
合には、+5V電源から電力供給されない状態が所定時
間継続すると容量がなくなるような充電池が用いられ
る。
A battery which can be charged from a + 5V power source may be used as the backup power source. When a battery is used, a rechargeable battery is used which loses its capacity when the power is not supplied from the + 5V power source for a predetermined time.

【0077】また、電源基板910には、電源監視回路
としての電源監視用IC902が搭載されている。電源
監視用IC902は、VSL電圧を導入し、VSL電圧を監
視することによって遊技機への電力供給停止の発生を検
出する。具体的には、VSL電圧が所定値(この例では+
22V)以下になったら、電力供給の停止が生ずるとし
て電源断信号を出力する。なお、監視対象の電源電圧
は、各電気部品制御基板に搭載されている回路素子の電
源電圧(この例では+5V)よりも高い電圧であること
が好ましい。この例では、交流から直流に変換された直
後の電圧であるVSLが用いられている。電源監視用IC
902からの電源断信号は、主基板31や払出制御基板
37等に供給される。
A power supply monitoring IC 902 as a power supply monitoring circuit is mounted on the power supply board 910. The power supply monitoring IC 902 detects the occurrence of power supply stoppage to the gaming machine by introducing the VSL voltage and monitoring the VSL voltage. Specifically, the VSL voltage is a predetermined value (in this example, +
22V) or less, it is determined that the power supply is stopped, and a power-off signal is output. The power supply voltage to be monitored is preferably higher than the power supply voltage (+5 V in this example) of the circuit element mounted on each electric component control board. In this example, VSL, which is the voltage immediately after conversion from AC to DC, is used. Power supply monitoring IC
The power-off signal from 902 is supplied to the main board 31, the payout control board 37, and the like.

【0078】電源監視用IC902が電力供給の停止を
検知するための所定値は、通常時の電圧より低いが、各
電気部品制御基板上のCPUが暫くの間動作しうる程度
の電圧である。また、電源監視用IC902が、CPU
等の回路素子を駆動するための電圧(この例では+5
V)よりも高く、また、交流から直流に変換された直後
の電圧を監視するように構成されているので、CPUが
必要とする電圧に対して監視範囲を広げることができ
る。従って、より精密な監視を行うことができる。
The predetermined value for the power supply monitoring IC 902 to detect the stop of power supply is lower than the normal voltage, but is a voltage at which the CPU on each electric component control board can operate for a while. Further, the power supply monitoring IC 902 is a CPU
For driving circuit elements such as (+5 in this example)
The voltage is higher than V) and is configured to monitor the voltage immediately after the conversion from AC to DC, so that the monitoring range can be expanded with respect to the voltage required by the CPU. Therefore, more precise monitoring can be performed.

【0079】さらに、監視電圧としてVSL(+30V)
を用いる場合には、遊技機の各種スイッチに供給される
電圧が+12Vであることから、電源瞬断時のスイッチ
オン誤検出の防止も期待できる。すなわち、+30V電
源の電圧を監視すると、+30V作成の以降に作られる
+12Vが落ち始める以前の段階でそれの低下を検出で
きる。+12V電源の電圧が低下するとスイッチ出力が
オン状態を呈するようになるが、+12Vより早く低下
する+30V電源電圧を監視して電力供給の停止を認識
すれば、スイッチ出力がオン状態を呈する前に電源復旧
待ちの状態に入ってスイッチ出力を検出しない状態とな
ることができる。
Further, VSL (+ 30V) is used as the monitoring voltage.
In the case of using, since the voltage supplied to the various switches of the gaming machine is + 12V, it can be expected to prevent erroneous detection of switch-on at the moment of power interruption. That is, when the voltage of the + 30V power supply is monitored, it is possible to detect a decrease in + 12V generated after + 30V is generated, before the voltage starts to drop. When the voltage of the + 12V power supply drops, the switch output starts to turn on. However, if the + 30V power supply voltage that drops earlier than + 12V is monitored and it is recognized that the power supply has stopped, the power supply will turn on before the switch output turns on. It is possible to enter a state of waiting for restoration and enter a state in which no switch output is detected.

【0080】また、監視電圧としてのVSL(+30V)
の電源監視用IC902への入力ラインと異なり、ソレ
ノイドやモータなどに供給される電圧としてのVSL(+
30V)のコネクタ915への入力ラインには大容量の
コンデンサ924が接続されている。従って、監視電圧
としてのVSL(+30V)は、大容量のコンデンサ92
4が接続されているコネクタ915に出力されるVSL
(+30V)より早く低下する。すなわち、監視電圧と
してのVSL(+30V)が落ち始めたあとも、所定期間
は、ソレノイドやモータなどに供給される電圧としての
VSL(+30V)の供給状態が維持される。その後、ソ
レノイドやモータなどに供給される電圧としてのVSL
(+30V)は、緩やかに低下してく。よって、監視電
圧としてのVSL(+30V)が落ち始めの場合であって
も、所定期間は、ソレノイドやモータなどを駆動可能な
状態とすることができる。また、コネクタ915に出力
されるVSL(+30V)が落ち始める前に、電力供給の
停止を認識することができる。
Further, VSL (+ 30V) as a monitoring voltage
Unlike the input line to the power supply monitoring IC 902, VSL (+
A large-capacity capacitor 924 is connected to the input line to the connector (915) of 30V. Therefore, VSL (+ 30V) as the monitoring voltage is the large-capacity capacitor 92.
VSL output to connector 915 to which 4 is connected
It drops faster than (+ 30V). That is, even after VSL (+ 30V) as the monitoring voltage starts to drop, the supply state of VSL (+ 30V) as the voltage supplied to the solenoid and the motor is maintained for a predetermined period. After that, VSL as the voltage supplied to the solenoid, motor, etc.
(+ 30V) gradually decreases. Therefore, even when VSL (+ 30V) as the monitoring voltage starts to drop, it is possible to drive the solenoid, motor, etc. for a predetermined period. Further, the stop of the power supply can be recognized before the VSL (+ 30V) output to the connector 915 starts to drop.

【0081】また、電源監視用IC902は、電気部品
制御基板とは別個の電源基板910に搭載されているの
で、電源監視回路から複数の電気部品制御基板に電源断
信号を供給することができる。電源断信号を必要とする
電気部品制御基板が幾つあっても電源監視手段は1つ設
けられていればよいので、各電気部品制御基板における
各電気部品制御手段が後述する復帰制御を行っても、遊
技機のコストはさほど上昇しない。
Further, since the power supply monitoring IC 902 is mounted on the power supply board 910 separate from the electric part control board, the power supply cutoff signal can be supplied from the power supply monitoring circuit to the plurality of electric part control boards. Even if there are any number of electric component control boards that require a power-off signal, one power supply monitoring means may be provided. Therefore, even if each electric component control means in each electric component control board performs the return control described later. , The cost of gaming machines does not rise so much.

【0082】なお、図10に示された構成では、電源監
視用IC902の検出出力(電源断信号)は、バッファ
回路918,919を介してそれぞれの電気部品制御基
板(例えば主基板31と払出制御基板37)に伝達され
るが、例えば、1つの検出出力を中継基板に伝達し、中
継基板から各電気部品制御基板に同じ信号を分配する構
成でもよい。また、電源断信号を必要とする基板数に応
じたバッファ回路を設けてもよい。さらに、主基板31
と払出制御基板37とに出力される電源断信号につい
て、電源断信号を出力することになる電源監視回路の監
視電圧を異ならせてもよい。
In the configuration shown in FIG. 10, the detection output (power-off signal) of the power supply monitoring IC 902 is passed through the buffer circuits 918 and 919 to the respective electric component control boards (for example, the main board 31 and the payout control). Although it is transmitted to the substrate 37), for example, one detection output may be transmitted to the relay substrate and the same signal may be distributed from the relay substrate to each electric component control substrate. In addition, a buffer circuit may be provided according to the number of substrates that require a power-off signal. Further, the main substrate 31
Regarding the power-off signal output to the payout control board 37, the monitoring voltage of the power-source monitoring circuit that outputs the power-off signal may be different.

【0083】図11は、主基板31におけるCPU56
周りの一構成例を示すブロック図である。図11に示す
ように、電源基板910の電源監視回路(電源監視手
段;第1の電源監視手段)からの電源断信号が、CPU
56のマスク不能割込端子(XNMI端子)に接続され
ている。従って、CPU56は、マスク不能割込(NM
I)処理によって遊技機への電力供給の停止の発生を確
認することができる。
FIG. 11 shows the CPU 56 in the main board 31.
It is a block diagram showing an example of the circumference. As shown in FIG. 11, the power-off signal from the power-supply monitoring circuit (power-supply monitoring means; first power-supply monitoring means) of the power supply board 910 indicates that the CPU
It is connected to 56 non-maskable interrupt terminals (XNMI terminals). Therefore, the CPU 56 causes the non-maskable interrupt (NM
I) It is possible to confirm the occurrence of the stop of the power supply to the gaming machine by the process.

【0084】図11には、システムリセット回路65も
示されている。リセットIC651は、電源投入時に、
外付けのコンデンサの容量で決まる所定時間だけ出力を
ローレベルとし、所定時間が経過すると出力をハイレベ
ルにする。すなわち、リセット信号をハイレベルに立ち
上げてCPU56を動作可能状態にする。また、リセッ
トIC651は、電源監視回路が監視する電源電圧と等
しい電源電圧であるVSLの電源電圧を監視して電圧値が
所定値(電源監視回路が電源断信号を出力する電源電圧
値よりも低い値)以下になると出力をローレベルにす
る。従って、CPU56は、電源監視回路からの電源断
信号に応じて所定の電力供給停止時処理を行った後、シ
ステムリセットされる(すなわち、システムの最初の状
態に戻される)。
A system reset circuit 65 is also shown in FIG. The reset IC 651 is
The output is set to the low level for a predetermined time determined by the capacity of the external capacitor, and the output is set to the high level when the predetermined time elapses. That is, the reset signal is raised to the high level to bring the CPU 56 into the operable state. The reset IC 651 monitors the power supply voltage of VSL, which is a power supply voltage equal to the power supply voltage monitored by the power supply monitoring circuit, and has a predetermined voltage value (lower than the power supply voltage value at which the power supply monitoring circuit outputs a power cutoff signal). When the value is less than or equal to (value), the output goes low. Therefore, the CPU 56 is reset in the system (that is, returned to the initial state of the system) after performing a predetermined power supply stoppage process in response to the power off signal from the power monitoring circuit.

【0085】図11に示すように、リセットIC651
からのリセット信号は、NAND回路947に入力され
るとともに、反転回路(NOT回路)944を介してカ
ウンタIC941のクリア端子に入力される。カウンタ
IC941は、クリア端子への入力がローレベルになる
と、発振器943からのクロック信号をカウントする。
そして、カウンタIC941のQ5出力がNOT回路9
45,946を介してNAND回路947に入力され
る。また、カウンタIC941のQ6出力は、フリップ
フロップ(FF)942のクロック端子に入力される。
フリップフロップ942のD入力はハイレベルに固定さ
れ、Q出力は論理和回路(OR回路)949に入力され
る。OR回路949の他方の入力には、NAND回路9
47の出力がNOT回路948を介して導入される。そ
して、OR回路949の出力がCPU56のリセット端
子に接続されている。このような構成によれば、電源投
入時に、CPU56のリセット端子に2回のリセット信
号(ローレベル信号)が与えられるので、CPU56
は、確実に動作を開始する。
As shown in FIG. 11, the reset IC 651 is used.
The reset signal from is input to the NAND circuit 947 and also to the clear terminal of the counter IC 941 via the inverting circuit (NOT circuit) 944. The counter IC 941 counts the clock signal from the oscillator 943 when the input to the clear terminal becomes low level.
Then, the Q5 output of the counter IC 941 is the NOT circuit 9
It is input to the NAND circuit 947 via 45 and 946. The Q6 output of the counter IC 941 is input to the clock terminal of the flip-flop (FF) 942.
The D input of the flip-flop 942 is fixed to the high level, and the Q output is input to the logical sum circuit (OR circuit) 949. The NAND circuit 9 is connected to the other input of the OR circuit 949.
The output of 47 is introduced via the NOT circuit 948. The output of the OR circuit 949 is connected to the reset terminal of the CPU 56. With such a configuration, when the power is turned on, the reset terminal of the CPU 56 is supplied with the reset signal (low level signal) twice.
Reliably starts operation.

【0086】そして、例えば、電源監視回路の検出電圧
(電源断信号を出力することになる電圧)を+22Vと
し、リセット信号をローレベルにするための検出電圧を
+9Vとする。そのように構成した場合には、電源監視
回路とシステムリセット回路65とが、同一の電源VSL
の電圧を監視するので、電圧監視回路が電源断信号を出
力するタイミングとシステムリセット回路65がシステ
ムリセット信号を出力するタイミングの差を所望の所定
期間に確実に設定することができる。所望の所定期間と
は、電源監視回路からの電源断信号に応じて電力供給停
止時処理を開始してから電力供給停止時処理が確実に完
了するまでの期間である。
Then, for example, the detection voltage of the power supply monitoring circuit (the voltage at which the power-off signal is output) is set to + 22V, and the detection voltage for setting the reset signal to the low level is set to + 9V. In such a configuration, the power supply monitoring circuit and the system reset circuit 65 have the same power supply VSL.
Since the voltage is monitored, the difference between the timing when the voltage monitoring circuit outputs the power-off signal and the timing when the system reset circuit 65 outputs the system reset signal can be reliably set to a desired predetermined period. The desired predetermined period is a period from the start of the power supply stop time process to the reliable completion of the power supply stop time process in response to the power off signal from the power supply monitoring circuit.

【0087】なお、電源監視回路とシステムリセット回
路65とが監視する電源の電圧は異なっていてもよい。
また、システムリセット回路65は、第2の電源監視手
段に相当する。
The power supply voltages monitored by the power supply monitoring circuit and the system reset circuit 65 may be different.
The system reset circuit 65 corresponds to the second power supply monitoring means.

【0088】CPU56等の駆動電源である+5V電源
から電力が供給されていない間、RAMの少なくとも一
部は、電源基板から供給されるバックアップ電源によっ
てバックアップされ、遊技機に対する電力供給が停止し
ても内容は保存される。そして、+5V電源が復旧する
と、システムリセット回路65からリセット信号が発せ
られるので、CPU56は、通常の動作状態に復帰す
る。そのとき、必要なデータがバックアップRAMに保
存されているので、停電等からの復旧時に停電等の発生
時の遊技状態に復旧させることができる。
At least part of the RAM is backed up by the backup power supply supplied from the power supply board while the power is not supplied from the + 5V power supply which is the drive power supply of the CPU 56 and the like, even if the power supply to the gaming machine is stopped. Content is saved. When the + 5V power supply is restored, a reset signal is issued from the system reset circuit 65, so that the CPU 56 returns to the normal operating state. At that time, since necessary data is stored in the backup RAM, it is possible to restore the game state at the time of occurrence of a power failure or the like at the time of recovery from the power failure or the like.

【0089】なお、図11に示す構成では、電源投入時
にCPU56のリセット端子に2回のリセット信号(ロ
ーレベル信号)が与えられるが、リセット信号の立ち上
がりタイミングが1回しかなくても確実にリセット解除
されるCPUを使用する場合には、符号941〜949
で示された回路素子は不要である。その場合、リセット
IC651の出力がそのままCPU56のリセット端子
に接続される。
In the configuration shown in FIG. 11, the reset signal (low level signal) is applied twice to the reset terminal of the CPU 56 when the power is turned on, but the reset signal is surely reset even if the rising timing of the reset signal is only once. When using the released CPU, reference numerals 941 to 949
The circuit element indicated by is unnecessary. In that case, the output of the reset IC 651 is directly connected to the reset terminal of the CPU 56.

【0090】この実施の形態で用いられるCPU56
は、I/Oポート(PIO)およびタイマ/カウンタ回
路(CTC)も内蔵している。PIOは、PB0〜PB
3の4ビットおよびPA0〜PA7の1バイトのポート
を有する。PB0〜PB3およびPA0〜PA7のポー
トは、入力/出力いずれにも設定できる。
CPU 56 used in this embodiment
Also incorporates an I / O port (PIO) and a timer / counter circuit (CTC). PIO is PB0-PB
It has 4 bits of 3 and a 1-byte port of PA0 to PA7. The ports PB0 to PB3 and PA0 to PA7 can be set to either input / output.

【0091】図12および図13は、この実施の形態に
おける出力ポートの割り当てを示す説明図である。図1
2に示すように、出力ポート0は各電気部品制御基板に
送出される制御コマンドのINT信号の出力ポートであ
る。また、払出制御基板37に送出される払出制御コマ
ンドの8ビットのデータは出力ポート1から出力され、
図柄制御基板80に送出される表示制御コマンドの8ビ
ットのデータは出力ポート2から出力され、ランプ制御
基板35に送出されるランプ制御コマンドの8ビットの
データは出力ポート3から出力される。そして、図13
に示すように、音制御基板70に送出される音制御コマ
ンドの8ビットのデータは出力ポート4から出力され
る。
12 and 13 are explanatory views showing the allocation of output ports in this embodiment. Figure 1
As shown in 2, the output port 0 is an output port of the INT signal of the control command sent to each electric component control board. The 8-bit data of the payout control command sent to the payout control board 37 is output from the output port 1,
The 8-bit data of the display control command sent to the symbol control board 80 is output from the output port 2, and the 8-bit data of the lamp control command sent to the lamp control board 35 is output from the output port 3. And in FIG.
As shown in, the 8-bit data of the sound control command sent to the sound control board 70 is output from the output port 4.

【0092】また、出力ポート5から、情報出力回路6
4を介して情報端子板34やターミナル基板160に至
る各種情報出力用信号すなわち制御に関わる情報の出力
データが出力される。そして、出力ポート6から、可変
入賞球装置15を開閉するためのソレノイド16、大入
賞口の開閉板2を開閉するためのソレノイド21、およ
び大入賞口内の経路を切り換えるためのソレノイド21
Aに対する駆動信号が出力される。
Also, from the output port 5, the information output circuit 6
Various information output signals reaching the information terminal board 34 and the terminal board 160 via 4, that is, output data of information relating to control are output. Then, from the output port 6, a solenoid 16 for opening / closing the variable winning ball device 15, a solenoid 21 for opening / closing the opening / closing plate 2 of the special winning opening, and a solenoid 21 for switching a path in the special winning opening.
The drive signal for A is output.

【0093】図13に示すように、払出制御基板37、
図柄制御基板80、ランプ制御基板35および音制御基
板70に対して出力される各INT信号(払出制御信号
INT、表示制御信号INT、ランプ制御信号INTお
よび音声制御信号INT)を出力する出力ポート(出力
ポート0)と、払出制御信号CD0〜CD7、表示制御
信号CD0〜CD7、ランプ制御信号CD0〜CD7お
よび音声制御信号CD0〜CD7を出力する出力ポート
(出力ポート1〜4)とは、別ポートである。
As shown in FIG. 13, the payout control board 37,
An output port for outputting each INT signal (payout control signal INT, display control signal INT, lamp control signal INT, and voice control signal INT) output to the pattern control board 80, the lamp control board 35, and the sound control board 70 ( The output port 0) and the output ports (output ports 1 to 4) for outputting the payout control signals CD0 to CD7, the display control signals CD0 to CD7, the lamp control signals CD0 to CD7 and the sound control signals CD0 to CD7 are different ports. Is.

【0094】従って、INT信号を出力する際に、誤っ
て払出制御信号CD0〜CD7、表示制御信号CD0〜
CD7、ランプ制御信号CD0〜CD7および音声制御
信号CD0〜CD7を変化させてしまう可能性が低減す
る。また、払出制御信号CD0〜CD7、表示制御信号
CD0〜CD7、ランプ制御信号CD0〜CD7または
音声制御信号CD0〜CD7を出力する際に、誤ってI
NT信号を変化させてしまう可能性が低減する。その結
果、主基板31の遊技制御手段から各電気部品制御基板
に対するコマンドは、より確実に送出されることにな
る。さらに、各INT信号は、全て出力ポート0から出
力されるように構成されているので、遊技制御手段のI
NT信号出力処理の負担が軽減される。
Therefore, when outputting the INT signal, the payout control signals CD0 to CD7 and the display control signals CD0 to CD0 are mistakenly output.
The possibility of changing the CD7, the lamp control signals CD0 to CD7, and the audio control signals CD0 to CD7 is reduced. Also, when the payout control signals CD0 to CD7, the display control signals CD0 to CD7, the lamp control signals CD0 to CD7 or the voice control signals CD0 to CD7 are output, the I
The possibility of changing the NT signal is reduced. As a result, the command to the electric component control board from the game control means of the main board 31 is more reliably transmitted. Further, since each INT signal is configured to be output from the output port 0, I of the game control means
The load of NT signal output processing is reduced.

【0095】図14は、この実施の形態における入力ポ
ートのビット割り当てを示す説明図である。図14に示
すように、入力ポート0のビット0〜7には、それぞ
れ、入賞口スイッチ33a,39a,29a,30a、
ゲートスイッチ32a、始動口スイッチ14a、カウン
トスイッチ23、V入賞スイッチ22の検出信号が入力
される。また、入力ポート1のビット0〜4には、それ
ぞれ、賞球カウントスイッチ301A、満タンスイッチ
48、球切れスイッチ187の検出信号、カウントスイ
ッチ短絡信号およびクリアスイッチ921の検出信号が
入力される。なお、各スイッチからの検出信号は、スイ
ッチ回路58において論理反転されている。このよう
に、クリアスイッチ921の検出信号すなわち操作手段
の操作入力は、遊技球を検出するためのスイッチの検出
信号が入力される入力ポート(8ビット構成の入力部)
と同一の入力ポートにおけるビット(入力ポート回路)
に入力されている。
FIG. 14 is an explanatory diagram showing bit allocation of input ports in this embodiment. As shown in FIG. 14, bits 0 to 7 of the input port 0 have respective winning opening switches 33a, 39a, 29a, 30a, and
Detection signals of the gate switch 32a, the starting opening switch 14a, the count switch 23, and the V winning switch 22 are input. In addition, the detection signals of the prize ball count switch 301A, the full tank switch 48, the ball cut switch 187, the count switch short circuit signal, and the detection signal of the clear switch 921 are input to bits 0 to 4 of the input port 1, respectively. The detection signal from each switch is logically inverted in the switch circuit 58. In this way, the detection signal of the clear switch 921, that is, the operation input of the operating means, is the input port (the input unit of 8-bit configuration) to which the detection signal of the switch for detecting the game ball is input.
Bit in the same input port as (input port circuit)
Has been entered in.

【0096】次に遊技機の動作について説明する。図1
5は、主基板31における遊技制御手段(CPU56お
よびROM,RAM等の周辺回路)が実行するメイン処
理を示すフローチャートである。遊技機に対して電源が
投入され、リセット端子の入力レベルがハイレベルにな
ると、CPU56は、ステップS1以降のメイン処理を
開始する。メイン処理において、CPU56は、まず、
必要な初期設定を行う。
Next, the operation of the gaming machine will be described. Figure 1
5 is a flowchart showing the main processing executed by the game control means (CPU 56 and peripheral circuits such as ROM and RAM) on the main board 31. When power is turned on to the gaming machine and the input level of the reset terminal becomes high level, the CPU 56 starts the main processing after step S1. In the main processing, the CPU 56 first
Make the necessary initial settings.

【0097】初期設定処理において、CPU56は、ま
ず、割込禁止に設定する(ステップS1)。次に、割込
モードを割込モード2に設定し(ステップS2)、スタ
ックポインタにスタックポインタ指定アドレスを設定す
る(ステップS3)。そして、内蔵デバイスレジスタの
初期化を行う(ステップS4)。また、内蔵デバイス
(内蔵周辺回路)であるCTC(カウンタ/タイマ)お
よびPIO(パラレル入出力ポート)の初期化(ステッ
プS5)を行った後、RAMをアクセス可能状態に設定
する(ステップS6)。
In the initial setting process, the CPU 56 first sets the interrupt prohibition (step S1). Next, the interrupt mode is set to the interrupt mode 2 (step S2), and the stack pointer designated address is set to the stack pointer (step S3). Then, the built-in device register is initialized (step S4). After initializing the built-in device (built-in peripheral circuit) CTC (counter / timer) and PIO (parallel input / output port) (step S5), the RAM is set to the accessible state (step S6).

【0098】この実施の形態で用いられるCPU56
は、I/Oポート(PIO)およびタイマ/カウンタ回
路(CTC)も内蔵している。また、CTCは、2本の
外部クロック/タイマトリガ入力CLK/TRG2,3
と2本のタイマ出力ZC/TO0,1を備えている。
CPU 56 used in this embodiment
Also incorporates an I / O port (PIO) and a timer / counter circuit (CTC). Also, the CTC has two external clock / timer trigger inputs CLK / TRG2,3.
And two timer outputs ZC / TO0,1.

【0099】この実施の形態で用いられているCPU5
6には、マスク可能な割込のモードとして以下の3種類
のモードが用意されている。なお、マスク可能な割込が
発生すると、CPU56は、自動的に割込禁止状態に設
定するとともに、プログラムカウンタの内容をスタック
にセーブする。
CPU 5 used in this embodiment
6 has the following three types of maskable interrupt modes. When a maskable interrupt occurs, the CPU 56 automatically sets the interrupt disabled state and saves the contents of the program counter in the stack.

【0100】割込モード0:割込要求を行った内蔵デバ
イスがRST命令(1バイト)またはCALL命令(3
バイト)をCPUの内部データバス上に送出する。よっ
て、CPU56は、RST命令に対応したアドレスまた
はCALL命令で指定されるアドレスの命令を実行す
る。リセット時に、CPU56は自動的に割込モード0
になる。よって、割込モード1または割込モード2に設
定したい場合には、初期設定処理において、割込モード
1または割込モード2に設定するための処理を行う必要
がある。
Interrupt mode 0: The built-in device that issued the interrupt request has the RST instruction (1 byte) or the CALL instruction (3
Byte) on the internal data bus of the CPU. Therefore, the CPU 56 executes the instruction of the address corresponding to the RST instruction or the address specified by the CALL instruction. At reset, CPU 56 automatically sets interrupt mode 0
become. Therefore, when it is desired to set the interrupt mode 1 or the interrupt mode 2, it is necessary to perform a process for setting the interrupt mode 1 or the interrupt mode 2 in the initial setting process.

【0101】割込モード1:割込が受け付けられると、
常に0038(h)番地に飛ぶモードである。
Interrupt mode 1: When an interrupt is accepted,
It is a mode to always fly to the address 0038 (h).

【0102】割込モード2:CPU56の特定レジスタ
(Iレジスタ)の値(1バイト)と内蔵デバイスが出力
する割込ベクタ(1バイト:最下位ビット0)から合成
されるアドレスが、割込番地を示すモードである。すな
わち、割込番地は、上位アドレスが特定レジスタの値と
され下位アドレスが割込ベクタとされた2バイトで示さ
れるアドレスである。従って、任意の(飛び飛びではあ
るが)偶数番地に割込処理を設置することができる。各
内蔵デバイスは割込要求を行うときに割込ベクタを送出
する機能を有している。
Interrupt mode 2: The address synthesized from the value (1 byte) of the specific register (I register) of the CPU 56 and the interrupt vector (1 byte: least significant bit 0) output by the built-in device is the interrupt address. Is a mode indicating. That is, the interrupt address is an address indicated by 2 bytes in which the upper address is the value of the specific register and the lower address is the interrupt vector. Therefore, the interrupt processing can be installed at an arbitrary (although discrete) even address. Each built-in device has a function of transmitting an interrupt vector when making an interrupt request.

【0103】よって、割込モード2に設定されると、各
内蔵デバイスからの割込要求を容易に処理することが可
能になり、また、プログラムにおける任意の位置に割込
処理を設置することが可能になる。さらに、割込モード
1とは異なり、割込発生要因毎のそれぞれの割込処理を
用意しておくことも容易である。上述したように、この
実施の形態では、初期設定処理のステップS2におい
て、CPU56は割込モード2に設定される。
Therefore, when the interrupt mode 2 is set, the interrupt request from each built-in device can be easily processed, and the interrupt process can be installed at an arbitrary position in the program. It will be possible. Further, unlike the interrupt mode 1, it is easy to prepare each interrupt process for each interrupt generation factor. As described above, in this embodiment, the CPU 56 is set to the interrupt mode 2 in step S2 of the initial setting process.

【0104】次いで、CPU56は、入力ポート1を介
して入力されるクリアスイッチ921の出力信号の状態
を1回だけ確認する(ステップS7)。その確認におい
てオンを検出した場合には、CPU56は、通常の初期
化処理を実行する(ステップS11〜ステップS1
5)。クリアスイッチ921がオンである場合(押下さ
れている場合)には、ローレベルのクリアスイッチ信号
が出力されている。なお、入力ポート1では、クリアス
イッチ信号のオン状態はハイレベルである(図14参
照)。また、例えば、遊技店員は、クリアスイッチ92
1をオン状態にしながら遊技機に対する電力供給を開始
することによって、容易に初期化処理を実行させること
ができる。すなわち、RAMクリア等を行うことができ
る。
Next, the CPU 56 confirms the state of the output signal of the clear switch 921 inputted via the input port 1 only once (step S7). If ON is detected in the confirmation, the CPU 56 executes normal initialization processing (steps S11 to S1).
5). When the clear switch 921 is on (when pressed), a low level clear switch signal is output. In the input port 1, the on state of the clear switch signal is high level (see FIG. 14). Further, for example, the game shop clerk uses the clear switch 92.
By starting power supply to the gaming machine while turning 1 on, the initialization process can be easily executed. That is, the RAM clear or the like can be performed.

【0105】クリアスイッチ921がオンの状態でない
場合には、遊技機への電力供給が停止したときにバック
アップRAM領域のデータ保護処理(例えばパリティデ
ータの付加等の電力供給停止時処理)が行われたか否か
確認する(ステップS8)。この実施の形態では、電力
供給の停止が生じた場合には、バックアップRAM領域
のデータを保護するための処理が行われている。そのよ
うな保護処理が行われていた場合をバックアップありと
する。そのような保護処理が行われていないことを確認
したら、CPU56は初期化処理を実行する。
If the clear switch 921 is not in the ON state, data protection processing of the backup RAM area (for example, power supply stop processing such as addition of parity data) is performed when power supply to the gaming machine is stopped. It is confirmed whether or not (step S8). In this embodiment, when the power supply is stopped, a process for protecting the data in the backup RAM area is performed. When such a protection process is performed, backup is made. When it is confirmed that such protection processing is not performed, the CPU 56 executes initialization processing.

【0106】この実施の形態では、バックアップRAM
領域にバックアップデータがあるか否かは、電力供給停
止時処理においてバックアップRAM領域に設定される
バックアップフラグの状態によって確認される。この例
では、図16に示すように、バックアップフラグ領域に
「55H」が設定されていればバックアップあり(オン
状態)を意味し、「55H」以外の値が設定されていれ
ばバックアップなし(オフ状態)を意味する。
In this embodiment, the backup RAM
Whether or not there is backup data in the area is confirmed by the state of the backup flag set in the backup RAM area during the power supply stop process. In this example, as shown in FIG. 16, if "55H" is set in the backup flag area, it means that there is backup (on state), and if a value other than "55H" is set, there is no backup (off). State).

【0107】バックアップありを確認したら、CPU5
6は、バックアップRAM領域のデータチェック(この
例ではパリティチェック)を行う(ステップS9)。こ
の実施の形態では、クリアデータ(00)をチェックサ
ムデータエリアにセットし、チェックサム算出開始アド
レスをポインタにセットする。また、チェックサムの対
象となるデータ数に対応するチェックサム算出回数をセ
ットする。そして、チェックサムデータエリアの内容と
ポインタが指すRAM領域の内容との排他的論理和を演
算する。演算結果をチェックサムデータエリアにストア
するとともに、ポインタの値を1増やし、チェックサム
算出回数の値を1減算する。以上の処理が、チェックサ
ム算出回数の値が0になるまで繰り返される。チェック
サム算出回数の値が0になったら、CPU56は、チェ
ックサムデータエリアの内容の各ビットの値を反転し、
反転後のデータをチェックサムとする。
After confirming that there is a backup, the CPU 5
6 performs a data check of the backup RAM area (parity check in this example) (step S9). In this embodiment, clear data (00) is set in the checksum data area, and the checksum calculation start address is set in the pointer. Further, the number of checksum calculations corresponding to the number of checksum target data is set. Then, the exclusive OR of the contents of the checksum data area and the contents of the RAM area indicated by the pointer is calculated. The calculation result is stored in the checksum data area, the pointer value is incremented by 1, and the checksum calculation count value is decremented by 1. The above process is repeated until the value of the checksum calculation count becomes zero. When the value of the checksum calculation count becomes 0, the CPU 56 inverts the value of each bit of the contents of the checksum data area,
The data after inversion is used as the checksum.

【0108】電力供給停止時処理において、上記の処理
と同様の処理によってチェックサムが算出され、チェッ
クサムはバックアップRAM領域に保存されている。ス
テップS9では、算出したチェックサムと保存されてい
るチェックサムとを比較する。不測の停電等の電力供給
停止が生じた後に復旧した場合には、バックアップRA
M領域のデータは保存されているはずであるから、チェ
ック結果(比較結果)は正常(一致)になる。チェック
結果が正常でないということは、バックアップRAM領
域のデータが、電力供給停止時のデータとは異なってい
ることを意味する。そのような場合には、内部状態を電
力供給停止時の状態に戻すことができないので、電力供
給の停止からの復旧時でない電源投入時に実行される初
期化処理を実行する。
In the power supply stop process, the checksum is calculated by the same process as the above process, and the checksum is stored in the backup RAM area. In step S9, the calculated checksum is compared with the stored checksum. If the power is restored after an unexpected power outage such as a power outage, backup RA
Since the data in the M area should have been saved, the check result (comparison result) becomes normal (match). If the check result is not normal, it means that the data in the backup RAM area is different from the data when the power supply was stopped. In such a case, since the internal state cannot be returned to the state when the power supply was stopped, the initialization process that is executed when the power is turned on, not when the power supply is restored from the stop, is executed.

【0109】チェック結果が正常であれば、CPU56
は、遊技制御手段の内部状態と表示制御手段等の電気部
品制御手段の制御状態を電力供給停止時の状態に戻すた
めの遊技状態復旧処理を行う(ステップS10)。そし
て、バックアップRAM領域に保存されていたPC(プ
ログラムカウンタ)の退避値がPCに設定され、そのア
ドレスに復帰する。
If the check result is normal, the CPU 56
Performs a game state recovery process for returning the internal state of the game control means and the control state of the electric component control means such as the display control means to the state when the power supply was stopped (step S10). Then, the saved value of the PC (program counter) saved in the backup RAM area is set in the PC and the address is restored.

【0110】このように、バックアップフラグとチェッ
クサム等のチェックデータとを用いてバックアップRA
M領域のデータが保存されているか否かを確認すること
によって、遊技状態を電力供給停止時の状態に正確に戻
すことができる。すなわち、バックアップRAM領域の
データにもとづく状態復旧処理の確実性が向上する。な
お、この実施の形態では、バックアップフラグとチェッ
クデータとの双方を用いてバックアップRAM領域のデ
ータが保存されているか否かを確認しているが、いずれ
か一方のみを用いてもよい。すなわち、バックアップフ
ラグとチェックデータとのいずれかを、状態復旧処理を
実行するための契機としてもよい。
As described above, the backup RA is backed up using the backup flag and the check data such as the checksum.
By checking whether or not the data in the M area is saved, it is possible to accurately return the game state to the state when the power supply was stopped. That is, the certainty of the state restoration process based on the data in the backup RAM area is improved. In this embodiment, it is confirmed whether or not the data in the backup RAM area is stored by using both the backup flag and the check data, but only one of them may be used. That is, either the backup flag or the check data may be used as a trigger for executing the state restoration process.

【0111】また、バックアップフラグの状態によって
「バックアップあり」が確認されなかった場合には、後
述する遊技状態復旧処理を行うことなく後述する初期化
処理を行うようにしているので、バックアップデータが
存在しないのにもかかわらず遊技状態復旧処理が実行さ
れてしまうことを防止することができ、初期化処理によ
って制御状態を初期状態に戻すことが可能となる。
Further, if "backup is present" is not confirmed by the state of the backup flag, the initialization process described below is performed without performing the game state recovery process described below, so backup data exists. It is possible to prevent the game state recovery process from being executed despite not doing so, and it is possible to return the control state to the initial state by the initialization process.

【0112】さらに、チェックデータを用いたチェック
結果が正常でなかった場合には、後述する遊技状態復旧
処理を行うことなく後述する初期化処理を行うようにし
ているので、電力供給停止時とは異なる内容となってし
まっているバックアップデータにもとづいて遊技状態復
旧処理が実行されてしまうことを防止することができ、
初期化処理によって制御状態を初期状態に戻すことが可
能となる。
Further, when the check result using the check data is not normal, the initialization process described below is performed without performing the game state recovery process described below, so that the power supply is stopped. It is possible to prevent the game state restoration process from being executed based on the backup data that has become different contents,
By the initialization processing, the control state can be returned to the initial state.

【0113】初期化処理では、CPU56は、まず、R
AMクリア処理を行う(ステップS11)。また、所定
の作業領域(例えば、普通図柄判定用乱数カウンタ、普
通図柄判定用バッファ、特別図柄左中右図柄バッファ、
特別図柄プロセスフラグ、払出コマンド格納ポインタ、
賞球中フラグ、球切れフラグ、払出停止フラグなど制御
状態に応じて選択的に処理を行うためのフラグ)に初期
値を設定する作業領域設定処理を行う(ステップS1
2)。さらに、球払出装置97からの払出が可能である
ことを指示する払出許可状態指定コマンド(以下、払出
可能状態指定コマンドという。)を払出制御基板37に
対して送信する処理を行う(ステップS13)。また、
他のサブ基板(ランプ制御基板35、音制御基板70、
図柄制御基板80)を初期化するための初期化コマンド
を各サブ基板に送信する処理を実行する(ステップS1
4)。初期化コマンドとして、可変表示装置9に表示さ
れる初期図柄を示すコマンド(図柄制御基板80に対し
て)や賞球ランプ51および球切れランプ52の消灯を
指示するコマンド(ランプ制御基板35に対して)等が
ある。
In the initialization processing, the CPU 56 first executes R
AM clear processing is performed (step S11). Further, a predetermined work area (for example, a random number counter for normal symbol determination, a normal symbol determination buffer, a special symbol left middle right symbol buffer,
Special symbol process flag, payout command storage pointer,
Work area setting processing for setting an initial value to a prize ball flag, out-of-ball flag, payout stop flag, or other flag for selectively performing processing according to the control state is performed (step S1).
2). Further, a process of transmitting a payout permission state designation command (hereinafter, referred to as a payable state designation command) for instructing that the ball can be paid out from the ball payout device 97 to the payout control board 37 (step S13). . Also,
Other sub-boards (lamp control board 35, sound control board 70,
A process of transmitting an initialization command for initializing the pattern control board 80) to each sub-board is executed (step S1).
4). As an initialization command, a command indicating the initial symbol displayed on the variable display device 9 (for the symbol control board 80) and a command for instructing to turn off the prize ball lamp 51 and the ball out lamp 52 (for the lamp control board 35) Etc.)

【0114】初期化処理では、払出制御基板37に対し
て常に払出可能状態指定コマンドが送信される。仮に、
遊技機の状態が球払出装置97からの払出が可能でない
状態であったとしても、直後に実行される遊技制御処理
において、その旨が検出され、払出が可能でない状態で
あることを指示する払出禁止状態指定コマンド(以下、
払出停止状態指定コマンドという。)が送信されるので
問題はない。なお、払出可能状態指定コマンドおよび他
のサブ基板に対する初期化コマンドの送信処理におい
て、例えば、各コマンドが設定されているテーブル(R
OM領域)のアドレスをポインタにセットし、後述する
コマンドセット処理(図35参照)のような処理ルーチ
ンをコールすればよい。
In the initialization processing, the payable state designating command is always transmitted to the payout control board 37. what if,
Even if the state of the gaming machine is a state in which the payout from the ball payout device 97 is not possible, the fact is detected in the game control process executed immediately after that, and a payout instructing that the payout is not possible is issued. Command for specifying prohibited state (hereinafter,
It is called a payout stop state designation command. ) Is sent, so there is no problem. In the process of transmitting the payable state designation command and the initialization command to another sub-board, for example, a table (R
The address of the OM area) may be set in the pointer, and a processing routine such as command setting processing (see FIG. 35) described later may be called.

【0115】そして、2ms毎に定期的にタイマ割込が
かかるようにCPU56に設けられているCTCのレジ
スタの設定が行われる(ステップS15)。すなわち、
初期値として2msに相当する値が所定のレジスタ(時
間定数レジスタ)に設定される。
Then, the register of the CTC provided in the CPU 56 is set so that the timer is interrupted periodically every 2 ms (step S15). That is,
A value corresponding to 2 ms as an initial value is set in a predetermined register (time constant register).

【0116】初期化処理の実行(ステップS11〜S1
5)が完了すると、メイン処理で、表示用乱数更新処理
(ステップS17)および初期値用乱数更新処理(ステ
ップS18)が繰り返し実行される。表示用乱数更新処
理および初期値用乱数更新処理が実行されるときには割
込禁止状態とされ(ステップS16)、表示用乱数更新
処理および初期値用乱数更新処理の実行が終了すると割
込許可状態とされる(ステップS19)。表示用乱数と
は、可変表示装置9に表示される図柄を決定するための
乱数であり、表示用乱数更新処理とは、表示用乱数を発
生するためのカウンタのカウント値を更新する処理であ
る。また、初期値用乱数更新処理とは、初期値用乱数を
発生するためのカウンタのカウント値を更新する処理で
ある。初期値用乱数とは、大当りとするか否かを決定す
るための乱数を発生するためのカウンタ(大当り決定用
乱数発生カウンタ)等のカウント値の初期値を決定する
ための乱数である。後述する遊技制御処理において、大
当り決定用乱数発生カウンタのカウント値が1周する
と、そのカウンタに初期値が設定される。
Execution of initialization processing (steps S11 to S1)
When 5) is completed, the display random number updating process (step S17) and the initial value random number updating process (step S18) are repeatedly executed in the main process. When the display random number updating process and the initial value random number updating process are executed, the interrupt disabled state is set (step S16), and when the display random number updating process and the initial value random number updating process are completed, the interrupt enabled state is set. (Step S19). The display random number is a random number for determining the symbol displayed on the variable display device 9, and the display random number updating process is a process of updating the count value of the counter for generating the display random number. . The initial value random number updating process is a process of updating the count value of the counter for generating the initial value random numbers. The initial value random number is a random number for determining an initial value of a count value of a counter (big hit determination random number generation counter) for generating a random number for determining whether or not to make a big hit. In the game control process described later, when the count value of the big hit determination random number generation counter makes one round, the initial value is set to the counter.

【0117】なお、表示用乱数更新処理が実行されると
きには割込禁止状態とされるのは、表示用乱数更新処理
が後述するタイマ割込処理でも実行されることから、タ
イマ割込処理における処理と競合してしまうのを避ける
ためである。すなわち、ステップS17の処理中にタイ
マ割込が発生してタイマ割込処理中で表示用乱数を発生
するためのカウンタのカウント値を更新してしまったの
では、カウント値の連続性が損なわれる場合がある。し
かし、ステップS17の処理中では割込禁止状態にして
おけば、そのような不都合が生ずることはない。
Note that the interrupt-prohibited state is set when the display random number updating process is executed, because the display random number updating process is also executed in the timer interrupt process described later. This is to avoid competing with. That is, if a timer interrupt occurs during the process of step S17 and the count value of the counter for generating the display random number is updated during the timer interrupt process, the continuity of the count value is lost. There are cases. However, such an inconvenience does not occur if the interrupt prohibition state is set during the process of step S17.

【0118】図17は、遊技状態復旧処理の一例を示す
フローチャートである。遊技状態復旧処理において、C
PU56は、まず、スタックポインタの復帰処理を行う
(ステップS81)。スタックポインタの値は、後で詳
述する電力供給停止時処理において、所定のRAMエリ
ア(電源バックアップされている作業領域におけるスタ
ックポインタ退避バッファ)に退避している。よって、
ステップS81では、そのRAMエリアの値をスタック
ポインタに設定することによって復帰させる。なお、復
帰されたスタックポインタが指す領域(すなわちスタッ
ク領域)には、電力供給が停止したときのレジスタ値や
プログラムカウンタ(PC)の値が退避している。
FIG. 17 is a flow chart showing an example of the game state restoration processing. In the game state recovery process, C
The PU 56 first performs a stack pointer restoration process (step S81). The value of the stack pointer is saved in a predetermined RAM area (a stack pointer save buffer in a work area where power is backed up) in a power supply stop process which will be described later in detail. Therefore,
In step S81, the value of the RAM area is set in the stack pointer to restore the value. In the area pointed to by the restored stack pointer (that is, the stack area), the register value and the value of the program counter (PC) when the power supply is stopped are saved.

【0119】次いで、CPU56は、払出停止状態であ
ったか否か確認する(ステップS82)。払出停止状態
であったか否かは、電源バックアップされているRAM
エリアに保存されている所定の作業領域(例えば、普通
図柄判定用乱数カウンタ、普通図柄判定用バッファ、特
別図柄左中右図柄バッファ、特別図柄プロセスフラグ、
払出コマンド格納ポインタ、賞球中フラグ、球切れフラ
グ、払出停止フラグなど)における払出状態データとし
ての払出停止フラグによって確認される。払出停止状態
であった場合には、払出制御基板37に搭載されている
払出制御手段に対して、払出の停止を指示する払出制御
コマンド(払出停止状態指定コマンド)を送信する(ス
テップS83)。払出停止状態でなかった場合には、払
出制御手段に対して払出が可能であることを指示する払
出制御コマンド(払出可能状態指定コマンド)を送信す
る(ステップS84)。
Next, the CPU 56 confirms whether or not the payout is stopped (step S82). Whether or not the payout has been stopped is determined by the RAM whose power is backed up.
Predetermined work area stored in the area (for example, random symbol for normal symbol determination, normal symbol determination buffer, special symbol left middle right symbol buffer, special symbol process flag,
The payout stop flag as the payout state data in the payout command storage pointer, the award ball flag, the out-of-ball flag, the payout stop flag, etc.) is confirmed. When it is in the payout stop state, a payout control command (payout stop state designation command) for instructing the stop of payout is transmitted to the payout control means mounted on the payout control board 37 (step S83). If the payout is not stopped, the payout control unit sends a payout control command (payable state designation command) to the payout control means (step S84).

【0120】補給球の不足や余剰球受皿4の満タンにつ
いて払出制御手段は認識できないので、遊技制御手段か
ら通知しないと、停電等からの復旧時に、補給球の不足
や余剰球受皿4の満タンであるにもかかわらず遊技球の
払出処理を開始してしまうおそれがある。しかし、この
実施の形態では、遊技状態復旧処理において、払出の停
止を指示する払出制御コマンドまたは払出が可能である
こと指示する払出制御コマンドが送信されるので、払出
制御手段が、補給球の不足や余剰球受皿4の満タンであ
るにもかかわらず遊技球の払出処理を開始してしまうこ
とはない。
Since the payout control means cannot recognize the shortage of the supply balls and the full capacity of the surplus ball receiving tray 4, the game control means must notify the shortage of the supply balls or the surplus ball receiving tray 4 when the power is restored. There is a risk that the game ball payout process will be started despite the fact that it is a ton. However, in this embodiment, in the game state recovery process, since the payout control command for instructing the stop of the payout or the payout control command for instructing that the payout is possible, the payout control means causes the shortage of the supply balls. And even if the surplus ball receiving tray 4 is full, the game ball payout process is never started.

【0121】なお、ここでは、遊技媒体の払い出しが可
能であるか否かを判定する払出状態判定手段(遊技制御
手段の一部)が払出可能でないことを検出したら、原因
の如何に関わらず、1種類の払出停止状態指定コマンド
(すなわち、本例では、払出停止状態指定コマンドは、
払い出しを禁止する複数種類の条件のうちのどの条件が
成立した場合であっても、共通して用いられるコマンド
とされている。)が送信されるようにしたが、原因別の
コマンド(この例では、補給球の不足を示すコマンドと
下皿満タンを示すコマンド)に分けて送信してもよい。
さらに、遊技球の払出が可能でない場合に、遊技の継続
を禁止するために遊技球の発射を禁止することを指示す
るコマンドを払出制御基板37に対して送信してもよ
い。払出制御基板37に搭載された払出制御手段は、遊
技球の発射を禁止することを指示するコマンドを受信し
たら、打球発射装置の駆動を停止する。また、遊技球の
払出が可能でない場合に、遊技制御手段が発射制御手段
に対して、直接、遊技球の発射を禁止することを指示す
る信号を与えてもよい。また、払出制御手段は、払出停
止状態指定コマンドを受信した場合に、打球発射装置の
駆動を停止するようにしてもよい。
Here, if the payout state determination means (a part of the game control means) for determining whether or not the game medium can be paid out, detects that the payout is not possible, regardless of the cause. One type of payout stop state designation command (that is, in the present example, the payout stop state designation command is
It is a command that is commonly used regardless of which of a plurality of types of conditions for prohibiting payout is satisfied. ) Is sent, but it may be sent separately for each cause-specific command (in this example, a command indicating a shortage of the supply balls and a command indicating a lower plate full).
Furthermore, when the payout of the game ball is not possible, a command instructing to prohibit the launch of the game ball to prohibit the continuation of the game may be transmitted to the payout control board 37. When the payout control means mounted on the payout control board 37 receives a command instructing to prohibit the launch of a game ball, it stops driving the ball striking device. Further, when the payout of the game ball is not possible, the game control means may directly give the launch control means a signal instructing to prohibit the launch of the game ball. Further, the payout control means may stop the driving of the hitting ball launching device when the payout stop state designation command is received.

【0122】次いで、CPU56は、電力供給が停止し
たときの可変表示装置9における特別図柄の表示状態に
応じて、その表示状態を復旧させるための表示制御コマ
ンドを送信する(ステップS85)。
Next, the CPU 56 transmits a display control command for restoring the display state of the special symbol on the variable display device 9 when the power supply is stopped (step S85).

【0123】その後、CPU56は、バックアップフラ
グをクリアする(ステップS91)すなわち、前回の電
力供給停止時に所定の記憶保護処理が実行されたことを
示すフラグをリセットする。よって、制御状態の復旧後
に不必要な情報が残存しないようにすることができる。
また、スタック領域から各種レジスタの退避値を読み出
して、各種レジスタ(IXレジスタ、HLレジスタ、D
Eレジスタ、BCレジスタ)に設定する(ステップS9
2)。すなわち、レジスタ復元処理を行う。なお、各レ
ジスタが復元させる毎に、スタックポインタの値が減ら
される。すなわち、スタックポインタの値が、スタック
領域の1つ前のアドレスを指すように更新される。そし
て、パリティフラグがオンしていない場合には割込許可
状態にする(ステップS93,S94)。最後に、AF
レジスタ(アキュミュレータとフラグのレジスタ)をス
タック領域から復元する(ステップS95)。
Thereafter, the CPU 56 clears the backup flag (step S91), that is, resets the flag indicating that the predetermined storage protection process was executed at the previous power supply stop. Therefore, it is possible to prevent unnecessary information from remaining after the control state is restored.
Also, the saved values of various registers are read from the stack area, and various registers (IX register, HL register, D
Set to E register, BC register) (step S9)
2). That is, register restoration processing is performed. The value of the stack pointer is decremented each time each register is restored. That is, the value of the stack pointer is updated to point to the address immediately before the stack area. Then, when the parity flag is not turned on, the interrupt permission state is set (steps S93 and S94). Finally, AF
The registers (accumulator and flag registers) are restored from the stack area (step S95).

【0124】そして、RET命令が実行される。RET
命令が実行されるときには、CPU56は、スタックポ
インタが指す領域に格納されているデータをプログラム
カウンタに設定することによってプログラムのリターン
動作を実現する。ただし、ここでのリターン先は、遊技
状態復旧処理をコールした部分ではない。なぜなら、ス
テップS81においてスタックポインタの復帰処理がな
され、ステップS92でレジスタの復元処理が終了した
後では、スタック領域を指すスタックポインタは、NM
Iによる電力供給停止時処理が開始されたときに実行さ
れていたプログラムのアドレスが退避している領域を指
している。すなわち、復帰されたスタックポインタが指
すスタック領域に格納されているリターンアドレスは、
プログラムにおける前回の電力供給停止時にNMIが発
生したアドレスである。従って、ステップS95の次の
RET命令によって、電力供給停止時にNMIが発生し
たアドレスにリターンする。すなわち、スタック領域に
退避されていたアドレスデータ(プログラムアドレスデ
ータ)にもとづいて復旧制御が実行されている。
Then, the RET instruction is executed. RET
When the instruction is executed, the CPU 56 realizes the return operation of the program by setting the data stored in the area pointed to by the stack pointer in the program counter. However, the return destination here is not the part that called the game state recovery processing. This is because the stack pointer restoration process is performed in step S81, and after the register restoration process is completed in step S92, the stack pointer pointing to the stack area is NM.
It indicates the area where the address of the program being executed when the power supply stop processing by I was started is saved. That is, the return address stored in the stack area pointed to by the restored stack pointer is
This is the address where the NMI occurred when the power supply was last stopped in the program. Therefore, the next RET instruction in step S95 returns to the address where the NMI occurred when the power supply was stopped. That is, the recovery control is executed based on the address data (program address data) saved in the stack area.

【0125】タイマ割込が発生すると、CPU56は、
レジスタの退避処理(ステップS20)を行った後、図
18に示すステップS21〜S32の遊技制御処理を実
行する。遊技制御処理において、CPU56は、まず、
スイッチ回路58を介して、ゲートスイッチ32a、始
動口スイッチ14a、カウントスイッチ23および入賞
口スイッチ29a,30a,33a,39a等のスイッ
チの検出信号を入力し、それらの状態判定を行う(スイ
ッチ処理:ステップS21)。
When a timer interrupt occurs, the CPU 56
After performing the register saving process (step S20), the game control process of steps S21 to S32 shown in FIG. 18 is executed. In the game control process, the CPU 56 first
Via the switch circuit 58, the detection signals of the switches such as the gate switch 32a, the starting opening switch 14a, the count switch 23, and the winning opening switches 29a, 30a, 33a, 39a are input to determine their states (switch processing: Step S21).

【0126】次いで、パチンコ遊技機1の内部に備えら
れている自己診断機能によって種々の異常診断処理が行
われ、その結果に応じて必要ならば警報が発せられる
(エラー処理:ステップS22)。
Next, various abnormality diagnosis processing is performed by the self-diagnosis function provided in the pachinko gaming machine 1, and an alarm is issued if necessary according to the result (error processing: step S22).

【0127】次に、遊技制御に用いられる大当り判定用
の乱数等の各判定用乱数を生成するための各カウンタの
カウント値を更新する処理を行う(ステップS23)。
CPU56は、さらに、表示用乱数および初期値用乱数
を生成するためのカウンタのカウント値を更新する処理
を行う(ステップS24,S25)。
Next, a process of updating the count value of each counter for generating each judgment random number such as a big hit judgment random number used for game control is performed (step S23).
The CPU 56 further performs a process of updating the count value of the counter for generating the display random number and the initial value random number (steps S24 and S25).

【0128】さらに、CPU56は、特別図柄プロセス
処理を行う(ステップS26)。特別図柄プロセス制御
では、遊技状態に応じてパチンコ遊技機1を所定の順序
で制御するための特別図柄プロセスフラグに従って該当
する処理が選び出されて実行される。そして、特別図柄
プロセスフラグの値は、遊技状態に応じて各処理中に更
新される。また、普通図柄プロセス処理を行う(ステッ
プS27)。普通図柄プロセス処理では、普通図柄表示
器10の表示状態を所定の順序で制御するための普通図
柄プロセスフラグに従って該当する処理が選び出されて
実行される。そして、普通図柄プロセスフラグの値は、
遊技状態に応じて各処理中に更新される。
Further, the CPU 56 carries out special symbol process processing (step S26). In the special symbol process control, the corresponding process is selected and executed according to the special symbol process flag for controlling the pachinko gaming machine 1 in a predetermined order according to the gaming state. Then, the value of the special symbol process flag is updated during each process according to the game state. Also, a normal symbol process process is performed (step S27). In the normal symbol process process, the corresponding process is selected and executed according to the normal symbol process flag for controlling the display state of the normal symbol display device 10 in a predetermined order. And the value of the normal symbol process flag,
It is updated during each process according to the game state.

【0129】次いで、CPU56は、特別図柄に関する
表示制御コマンドをRAM55の所定の領域に設定して
表示制御コマンドを送出する処理を行う(特別図柄コマ
ンド制御処理:ステップS28)。また、普通図柄に関
する表示制御コマンドをRAM55の所定の領域に設定
して表示制御コマンドを送出する処理を行う(普通図柄
コマンド制御処理:ステップS29)。
Next, the CPU 56 performs a process of setting a display control command relating to a special symbol in a predetermined area of the RAM 55 and transmitting the display control command (special symbol command control process: step S28). In addition, the display control command relating to the normal symbol is set in a predetermined area of the RAM 55 and a process of transmitting the display control command is performed (normal symbol command control process: step S29).

【0130】さらに、CPU56は、例えばホール管理
用コンピュータに供給される大当り情報、始動情報、確
率変動情報などのデータを出力する情報出力処理を行う
(ステップS30)。
Further, the CPU 56 performs an information output process for outputting data such as big hit information, starting information, probability variation information, etc. supplied to the hall management computer (step S30).

【0131】また、CPU56は、所定の条件が成立し
たときにソレノイド回路59に駆動指令を行う(ステッ
プS31)。可変入賞球装置15または開閉板20を開
状態または閉状態としたり、大入賞口内の遊技球通路を
切り替えたりするために、ソレノイド回路59は、駆動
指令に応じてソレノイド16,21,21Aを駆動す
る。
Further, the CPU 56 issues a drive command to the solenoid circuit 59 when a predetermined condition is satisfied (step S31). In order to open or close the variable winning ball device 15 or the opening / closing plate 20 or to switch the game ball passage in the special winning opening, the solenoid circuit 59 drives the solenoids 16, 21, 21A according to the drive command. To do.

【0132】そして、CPU56は、入賞口スイッチ2
9a,30a,33a,39aの検出信号にもとづく賞
球個数の設定などを行う賞球処理を実行する(ステップ
S32)。具体的には、入賞口スイッチ29a,30
a,33a,39aがオンしたことにもとづく入賞検出
に応じて、払出制御基板37に賞球個数を示す払出制御
コマンドを出力する。払出制御基板37に搭載されてい
る払出制御用CPU371は、賞球個数を示す払出制御
コマンドに応じて球払出装置97を駆動する。その後、
レジスタの内容を復帰させ(ステップS33)、割込許
可状態に設定する(ステップS34)。
Then, the CPU 56 causes the winning opening switch 2
A prize ball process is performed for setting the number of prize balls based on the detection signals of 9a, 30a, 33a and 39a (step S32). Specifically, the winning opening switches 29a, 30
The payout control command indicating the number of prize balls is output to the payout control board 37 in response to the winning detection based on the turning on of a, 33a, and 39a. The payout control CPU 371 mounted on the payout control board 37 drives the ball payout device 97 in response to a payout control command indicating the number of prize balls. afterwards,
The contents of the register are restored (step S33), and the interrupt enabled state is set (step S34).

【0133】以上の制御によって、この実施の形態で
は、遊技制御処理は2ms毎に起動されることになる。
なお、この実施の形態では、タイマ割込処理で遊技制御
処理が実行されているが、タイマ割込処理では例えば割
込が発生したことを示すフラグのセットのみがなされ、
遊技制御処理はメイン処理において実行されるようにし
てもよい。
According to the above control, in this embodiment, the game control process is activated every 2 ms.
In this embodiment, the game control process is executed in the timer interrupt process, but in the timer interrupt process, for example, only a flag indicating that an interrupt has occurred is set,
The game control process may be executed in the main process.

【0134】図19〜図21は、電源基板910からの
電源断信号に応じて実行されるマスク不能割込処理(電
力供給停止時処理)の処理例を示すフローチャートであ
る。マスク不能割込が発生すると、CPU56に内蔵さ
れている割込制御機構は、マスク不能割込発生時に実行
されていたプログラムのアドレス(具体的には実行完了
後の次のアドレス)を、スタックポインタが指すスタッ
ク領域に退避させるとともに、スタックポインタの値を
増やす。すなわち、スタックポインタの値がスタック領
域の次のアドレスを指すように更新する。
19 to 21 are flow charts showing a processing example of the non-maskable interrupt processing (power supply stop time processing) executed in response to the power-off signal from the power supply board 910. When a non-maskable interrupt occurs, the interrupt control mechanism built in the CPU 56 uses the stack pointer as the address of the program being executed at the time of the non-maskable interrupt (specifically, the next address after completion of execution). It is saved in the stack area pointed to by and the value of the stack pointer is increased. That is, the value of the stack pointer is updated to point to the next address in the stack area.

【0135】電力供給停止時処理において、CPU56
は、AFレジスタ(アキュミュレータとフラグのレジス
タ)を所定のバックアップRAM領域に退避する(ステ
ップS451)。また、割込フラグをパリティフラグに
コピーする(ステップS452)。パリティフラグはバ
ックアップRAM領域に形成されている。また、BCレ
ジスタ、DEレジスタ、HLレジスタ、IXレジスタお
よびスタックポインタをバックアップRAM領域に退避
する(ステップS454〜S458)。なお、電源復旧
時には、退避された内容にもとづいてレジスタ内容が復
元され、パリティフラグの内容に応じて、割込許可状態
/禁止状態の内部設定がなされる。
In the power supply stop processing, the CPU 56
Saves the AF register (accumulator and flag register) in a predetermined backup RAM area (step S451). Also, the interrupt flag is copied to the parity flag (step S452). The parity flag is formed in the backup RAM area. Further, the BC register, the DE register, the HL register, the IX register and the stack pointer are saved in the backup RAM area (steps S454 to S458). When the power is restored, the register contents are restored based on the saved contents, and the interrupt enable / disable state is internally set according to the contents of the parity flag.

【0136】次いで、CPU56は、クリアデータ(0
0)を適当なレジスタにセットし(ステップS49
3)、処理数(この例では「7」)を別のレジスタにセ
ットする(ステップS494)。また、出力ポート0の
アドレスをIOポインタに設定する(ステップS49
5)。IOポインタとして、さらに別のレジスタが用い
られる。
Next, the CPU 56 causes the clear data (0
0) is set in an appropriate register (step S49
3), the number of processes (“7” in this example) is set in another register (step S494). Further, the address of the output port 0 is set in the IO pointer (step S49).
5). Another register is used as the IO pointer.

【0137】そして、IOポインタが指すアドレスにク
リアデータをセットするとともに(ステップS49
6)、IOポインタの値を1増やし(ステップS49
7)、処理数の値を1減算する(ステップS498)。
ステップS496〜S498の処理が、処理数の値が0
になるまで繰り返される。その結果、全ての出力ポート
0〜6(図12および図13参照)にクリアデータが設
定される。図12および図13に示すように、この例で
は、「1」がオン状態であり、クリアデータである「0
0」が各出力ポートにセットされるので、全ての出力ポ
ートがオフ状態になる。
Then, the clear data is set to the address pointed to by the IO pointer (step S49).
6), the value of the IO pointer is incremented by 1 (step S49
7), 1 is subtracted from the value of the number of processes (step S498).
In the processes of steps S496 to S498, the value of the number of processes is 0.
Is repeated until. As a result, clear data is set in all output ports 0 to 6 (see FIGS. 12 and 13). As shown in FIGS. 12 and 13, in this example, “1” is in the ON state and the clear data “0”.
Since "0" is set to each output port, all output ports are turned off.

【0138】上記のように、各出力ポートがオフ状態に
なるので、保存される遊技状態と整合しない状況が発生
することは確実に防止される。つまり、パチンコ遊技機
のように可変入賞球装置を有している遊技機において、
実装の関係上、可変入賞球装置における可変入賞口の位
置と入賞を検出する入賞口スイッチの設置位置とを、あ
る程度離さざるを得ない。出力ポート、特に可変入賞球
装置を開放状態にするための信号が出力される出力ポー
トを直ちにオフ状態にしないと、電力供給停止時に、可
変入賞口に入賞したにもかかわらず、電力供給停止時処
理の実行が開始されて入賞口スイッチの検出がなされな
い状況が起こりうる。その場合、可変入賞口に入賞があ
ったことは保存されない。すなわち、実際に生じている
遊技状態(入賞があったこと)と保存される遊技状態と
が整合しない。しかし、この実施の形態では、出力ポー
トがクリアされて可変入賞球装置が閉じられるので、保
存される遊技状態と整合しない状況が発生することは確
実に防止される。
As described above, since each output port is turned off, it is possible to surely prevent the occurrence of a situation inconsistent with the saved game state. That is, in a gaming machine that has a variable winning ball device, such as a pachinko gaming machine,
Due to the mounting, the position of the variable winning opening in the variable winning ball device and the installation position of the winning opening switch for detecting the winning must be separated to some extent. If you do not immediately turn off the output port, especially the output port that outputs the signal to open the variable winning ball device, when the power supply is stopped, even if you win the variable winning port, even if the power supply is stopped A situation may occur in which execution of the process is started and the winning opening switch is not detected. In that case, the fact that the variable winning a prize has been won is not saved. That is, the actually occurring game state (there is a prize) and the saved game state do not match. However, in this embodiment, since the output port is cleared and the variable winning ball device is closed, it is possible to reliably prevent the occurrence of a situation inconsistent with the saved game state.

【0139】また、電気部品の駆動が不能になる状態に
なる前に実行される電力供給停止時処理の際に、出力ポ
ートをクリアすることができるので、電気部品の駆動が
不能になる状態となる前に遊技制御手段によって制御さ
れる各電気部品を、適切な動作停止状態にすることがで
きる。例えば、開放中の大入賞口を閉成させ、また開放
中の可変入賞球装置15を閉成させるなど、電気部品に
ついての作動を停止させたあとに電気部品の駆動が不能
になる状態とすることができる。従って、適切な停止状
態で電力供給の復旧を待つことが可能となる。
In addition, since the output port can be cleared during the power supply stoppage process executed before the electric components cannot be driven, the electric components cannot be driven. Before that, each electric component controlled by the game control means can be put into an appropriate operation stopped state. For example, after closing the open special winning opening and closing the open variable winning ball device 15, the operation of the electric components is disabled after the operation of the electric components is stopped. be able to. Therefore, it becomes possible to wait for the restoration of the power supply in an appropriate stopped state.

【0140】さらに、電力供給停止時処理の際に、各電
気部品を動作停止状態にするので、各電気部品を駆動す
るために電力が費やされることがなくなり、また、出力
ポートからの信号出力に用いられる電流が遮断されるの
で、微量ではあるが電力消費を抑えることができる。
Furthermore, since the operation of each electric component is stopped during the power supply stop process, electric power is not consumed to drive each electric component, and the signal is output from the output port. Since the used electric current is cut off, it is possible to suppress the power consumption though it is a small amount.

【0141】さらに、この実施の形態では、所定期間、
賞球カウントスイッチ301Aの検出信号をチェックす
る。そして、賞球カウントスイッチ301Aがオンした
ら総賞球数バッファの内容を1減らす。
Furthermore, in this embodiment,
The detection signal of the prize ball count switch 301A is checked. When the prize ball count switch 301A is turned on, the content of the total prize ball count buffer is decremented by one.

【0142】なお、この実施の形態では、所定期間を計
測するために、所定期間計測用カウンタが用いられる。
所定期間計測用カウンタの値は、初期値mから、以下に
説明するスイッチ検出処理のループ(S461から始ま
ってS461に戻るループ)が1回実行される毎に−1
され、その値が0になると、所定期間が終了したとす
る。検出処理のループでは、例外はあるがほぼ一定の処
理が行われるので、ループの1周に要する時間のm倍の
時間が、ほぼ所定期間に相当する。
In this embodiment, a counter for measuring a predetermined period is used to measure the predetermined period.
The value of the counter for measuring the predetermined period is −1 from the initial value m every time the loop of the switch detection processing (loop starting from S461 and returning to S461) described below is executed once.
Then, when the value becomes 0, it is assumed that the predetermined period has ended. Although there is an exception in the detection processing loop, substantially constant processing is performed, and therefore a time that is m times the time required for one round of the loop corresponds to a substantially predetermined period.

【0143】所定期間を計測するために、CPU56の
内蔵タイマを用いてもよい。すなわち、スイッチ検出処
理開始時に、内蔵タイマに所定値(所定期間に相当)を
設定しておく。そして、スイッチ検出処理のループが1
回実行される毎に、内蔵タイマのカウント値をチェック
する。そして、カウント値が0になったら、所定期間が
終了したとする。内蔵タイマの値が0になったことを検
出するために内蔵タイマによる割込を用いることもでき
るが、この段階では制御内容(RAMに格納されている
各値など)を変化させないように、割込を用いず、内蔵
タイマのカウント値を読み出してチェックするようなプ
ログラム構成の方が好ましい。
A built-in timer of the CPU 56 may be used to measure the predetermined period. That is, a predetermined value (corresponding to a predetermined period) is set in the built-in timer at the start of the switch detection process. And the loop of the switch detection process is 1
Every time it is executed, the count value of the built-in timer is checked. Then, when the count value becomes 0, it is assumed that the predetermined period ends. An interrupt by the built-in timer can be used to detect that the value of the built-in timer has become 0. It is preferable to use a program configuration in which the count value of the built-in timer is read out and checked without using the program.

【0144】また、所定期間は、遊技球が、球払出装置
97から落下した時点(例えば図5に示すスプロケット
292の下方の球通路293a,293bに送り出され
た時点)から、賞球カウントスイッチ301Aおよび貸
し球カウントスイッチ301Bに到達するまでの時間以
上に設定される。球払出装置97から賞球カウントスイ
ッチ301Aおよび貸し球カウントスイッチ301Bま
での距離をLとすると、その間の落下時間tは、t=√
(2L/g)(g:重力加速度)になるので、所定期間
は、それ以上に設定される。所定期間の具体的な値は、
距離Lの値や、落下時間tからどの程度余裕を持たせる
かによって異なるが、例えば100[ms]〜150
[ms]程度とされる。なお、球払出装置97から賞球
カウントスイッチ301Aまでの距離と貸し球カウント
スイッチ301Bまでの距離とが異なる場合には、球払
出装置97からの距離が離れているスイッチの距離にも
とづいて上記の所定期間を定めるようにすればよい。
Also, during the predetermined period, the game ball is dropped from the ball payout device 97 (for example, when it is sent to the ball passages 293a and 293b below the sprocket 292 shown in FIG. 5), the prize ball count switch 301A. Also, the time is set to be equal to or longer than the time required to reach the loan ball count switch 301B. Assuming that the distance from the ball payout device 97 to the prize ball count switch 301A and the loan ball count switch 301B is L, the fall time t during that time is t = √
Since it becomes (2 L / g) (g: gravity acceleration), the predetermined period is set to be longer than that. The specific value of the predetermined period is
Depending on the value of the distance L and how much margin is provided from the fall time t, for example, 100 [ms] to 150
It is set to about [ms]. When the distance from the ball payout device 97 to the prize ball count switch 301A is different from the distance to the loan ball count switch 301B, the above distance is calculated based on the distance of the switch away from the ball payout device 97. The predetermined period may be set.

【0145】少なくとも、スイッチ検出処理が実行され
る所定期間では、賞球カウントスイッチ301Aが遊技
球を検出できる状態でなければならない。そこで、この
実施の形態では、図10に示されたように、電源基板9
10におけるコンバータIC920の入力側に比較的大
容量の補助駆動電源としてのコンデンサ923が接続さ
れている。よって、遊技機に対する電力供給停止時に
も、ある程度の期間は+12V電源電圧がスイッチ駆動
可能な範囲に維持され、賞球カウントスイッチ301A
が動作可能になる。その期間が、上記の所定期間以上に
なるように、コンデンサ923の容量が決定される。
At least, during the predetermined period in which the switch detection process is executed, the prize ball count switch 301A must be in a state where it can detect a game ball. Therefore, in this embodiment, as shown in FIG.
A capacitor 923 serving as an auxiliary drive power source having a comparatively large capacity is connected to the input side of the converter IC 920 in FIG. Therefore, even when the power supply to the gaming machine is stopped, the + 12V power supply voltage is maintained within the switchable range for a certain period of time, and the prize ball count switch 301A.
Becomes operational. The capacitance of the capacitor 923 is determined so that the period is equal to or longer than the above-described predetermined period.

【0146】なお、入力ポートおよびCPU56も、コ
ンバータIC920で作成される+5V電源で駆動され
るので、電力供給停止時にも、比較的長い期間動作可能
になっている。
Since the input port and the CPU 56 are also driven by the + 5V power source created by the converter IC 920, they can be operated for a relatively long period even when the power supply is stopped.

【0147】ステップS461において、2ms計測用
カウンタに2msの時間に相当する初期値nが設定され
る。そして、2ms計測用カウンタの値が0になるまで
(ステップS462)、2ms計測用カウンタの値が−
1される(ステップS463)。
In step S461, an initial value n corresponding to a time of 2 ms is set in the 2 ms measuring counter. Then, until the value of the 2 ms measurement counter becomes 0 (step S462), the value of the 2 ms measurement counter becomes −.
1 (step S463).

【0148】2ms計測用カウンタの値が0になると、
賞球カウントスイッチ301Aの検出信号の入力チェッ
クが行われる。すなわち、後述するスイッチ処理および
スイッチチェック処理に類似した処理が行われる。具体
的には、入力ポート1に入力されているデータを入力す
る(ステップS464)。次いで、クリアデータ(0
0)をセットする(ステップS465)。また、ポート
入力データ、この場合には入力ポート1からの入力デー
タを「比較値」として設定する(ステップS466)。
さらに、賞球カウントスイッチ301Aのためのスイッ
チタイマのアドレスをポインタにセットする(ステップ
S467)。
When the value of the 2 ms measurement counter becomes 0,
The input check of the detection signal of the prize ball count switch 301A is performed. That is, a process similar to the switch process and the switch check process described later is performed. Specifically, the data input to the input port 1 is input (step S464). Then, clear data (0
0) is set (step S465). Further, the port input data, in this case, the input data from the input port 1 is set as the "comparison value" (step S466).
Further, the address of the switch timer for the prize ball count switch 301A is set in the pointer (step S467).

【0149】そして、ポインタ(スイッチタイマのアド
レスが設定されている)が指すスイッチタイマをロード
するとともに(ステップS468)、比較値を右(上位
ビットから下位ビットへの方向)にシフトする(ステッ
プS469)。比較値には入力ポート1のデータ設定さ
れている。そして、この場合には、賞球カウントスイッ
チ301Aの検出信号がキャリーフラグに押し出され
る。
Then, the switch timer pointed to by the pointer (the address of the switch timer is set) is loaded (step S468), and the comparison value is shifted to the right (direction from the higher bit to the lower bit) (step S469). ). The data of the input port 1 is set as the comparison value. Then, in this case, the detection signal of the prize ball count switch 301A is pushed out to the carry flag.

【0150】キャリーフラグの値が「1」であれば(ス
テップS470)、すなわち賞球カウントスイッチ30
1Aの検出信号がオン状態であれば、スイッチタイマの
値を1加算する(ステップS471)。キャリーフラグ
の値が「0」であれば、すなわち賞球カウントスイッチ
301Aの検出信号がオフ状態であれば、スイッチタイ
マにクリアデータをセットする(ステップS472)。
すなわち、スイッチがオフ状態であれば、スイッチタイ
マの値が0に戻る。
If the value of the carry flag is "1" (step S470), that is, the prize ball count switch 30.
If the 1A detection signal is in the ON state, the value of the switch timer is incremented by 1 (step S471). If the value of the carry flag is "0", that is, if the detection signal of the prize ball count switch 301A is in the off state, clear data is set in the switch timer (step S472).
That is, if the switch is in the off state, the value of the switch timer returns to 0.

【0151】そして、スイッチタイマの値が2になった
ときに(ステップS473)、総賞球数格納バッファの
格納値を1減算するとともに(ステップS474)、賞
球情報カウンタの値を+1する(ステップS475)。
そして、賞球情報カウンタの値が10以上であれば(ス
テップS476)、賞球情報出力カウンタの値を+1す
るとともに(ステップS477)、賞球情報カウンタの
値を−10する(ステップS478)。
When the value of the switch timer becomes 2 (step S473), the value stored in the total prize ball number storage buffer is decremented by 1 (step S474), and the value of the prize ball information counter is incremented by 1 (step S474). Step S475).
When the value of the prize ball information counter is 10 or more (step S476), the value of the prize ball information output counter is incremented by 1 (step S477), and the value of the prize ball information counter is decremented by 10 (step S478).

【0152】次いで、所定期間計測用カウンタの値を−
1し(ステップS479)、その値が0になっていなけ
ればステップS461に戻る。
Next, the value of the counter for measuring for a predetermined period is set to −
1 (step S479), and if the value is not 0, the process returns to step S461.

【0153】以上の処理によって、所定期間内に賞球カ
ウントスイッチ301Aがオンしたら、総賞球数格納バ
ッファの値が−1される。バックアップRAMの内容を
保存するための処理は、このようなスイッチ検出処理の
後で行われるので、払出が完了した賞球について、必ず
総賞球数格納バッファが−1される。従って、遊技球の
払出に関して、保存される制御状態に矛盾が生じてしま
うことが防止される。また、スイッチ検出処理におい
て、遊技機外部への賞球情報出力のための賞球情報出力
回数カウンタの演算も行われるので、外部に出力される
賞球情報と実際の払出賞球数とが食い違ってしまうよう
なこともない。
By the above processing, when the prize ball count switch 301A is turned on within the predetermined period, the value of the total prize ball number storage buffer is decremented by one. Since the processing for storing the contents of the backup RAM is performed after such a switch detection processing, the total prize ball number storage buffer is always decremented by -1 for the prize balls that have been paid out. Therefore, regarding the payout of the game balls, it is possible to prevent the stored control state from being inconsistent. Further, in the switch detection process, since the prize ball information output frequency counter for outputting the prize ball information to the outside of the gaming machine is also calculated, the prize ball information output to the outside and the actual number of payout prize balls are inconsistent. It doesn't happen.

【0154】また、上記のスイッチ検出処理では、検出
期間用カウンタを用いたタイマ処理が施されている。す
なわち、2ms毎に賞球カウントスイッチ301Aの検
出出力のチェックが行われ、2回連続してオン検出した
場合に、賞球カウントスイッチ301Aが確実にオンし
たと見なされる。すなわち、所定の遊技媒体検出判定期
間(電力供給停止時処理において、遊技媒体(ここでは
払い出された賞球)の検出の有無を判定するための期
間。本例では、2ms以上の期間)の前後に2回連続し
てオン検出した場合に、1個の賞球の払出が完了したと
見なされる。このように、本例では、遊技媒体検出判定
期間を、通常遊技媒体検出判定期間(電力供給停止時処
理での処理でない、通常の遊技状態において遊技媒体の
有無を判定するための期間。本例では、後述するスイッ
チオン判定値(図31参照)によって決定される2ms
以上の期間であって、後述する図29のステップS24
4の判断で用いられている。)と同じ期間としている。
従って、通常の制御と同一の条件の下で、賞球カウント
スイッチ301Aがオンしたか否かを判定することがで
きる。なお、遊技媒体検出判定期間は、通常遊技媒体検
出判定期間と異なる期間としてもよい。上記のように、
2回連続してオン検出した場合に、賞球カウントスイッ
チ301Aが確実にオンしたと見なされるようにしてい
るため、誤ってスイッチオン検出がなされてしまうこと
が防止され、払い出された賞球を確実に検出することが
可能となる。
In the switch detection process described above, the timer process using the detection period counter is performed. That is, the detection output of the prize ball count switch 301A is checked every 2 ms, and when the ON detection is performed twice in succession, it is considered that the prize ball count switch 301A is surely turned on. That is, a predetermined game medium detection determination period (a period for determining whether or not a game medium (here, a prize ball paid out in the power supply stop process) is detected. In this example, a period of 2 ms or more) When the ON detection is performed twice consecutively before and after, it is considered that the payout of one prize ball is completed. As described above, in this example, the game medium detection determination period is the normal game medium detection determination period (a period for determining the presence or absence of the game medium in the normal game state, which is not the process in the power supply stop process. Then, 2 ms determined by the switch-on determination value (see FIG. 31) described later
In the above period, step S24 of FIG.
It is used in the judgment of 4. ) And the same period.
Therefore, it is possible to determine whether or not the prize ball count switch 301A is turned on under the same condition as the normal control. The game medium detection determination period may be different from the normal game medium detection determination period. as mentioned above,
Since the prize ball count switch 301A is considered to be surely turned on when it is detected to be turned on twice consecutively, it is prevented that the switch-on is mistakenly detected, and the prize ball paid out. Can be reliably detected.

【0155】なお、この実施の形態では、賞球カウント
スイッチ301Aのみのスイッチ検出処理が行われた
が、始動入賞口のスイッチや大入賞口に関連するV入賞
スイッチ22やカウントスイッチについても同様のスイ
ッチ検出処理を行ってもよい。また、他の入賞について
も同様のスイッチ検出処理を行ってもよい。そのような
オンチェックも行う場合には、入賞口に遊技球が入賞し
た直後に停電が発生したような場合でも、その入賞が確
実に検出され、保存される遊技状態に反映される。
In this embodiment, the switch detection processing is performed only for the prize ball count switch 301A, but the same applies to the switch for the start winning opening and the V winning switch 22 and the count switch related to the big winning opening. Switch detection processing may be performed. Further, similar switch detection processing may be performed for other prizes. When such an on-check is also performed, even if a power failure occurs immediately after the game ball has won the winning opening, the winning is surely detected and reflected in the saved game state.

【0156】所定期間が経過すると(ステップS48
0)、すなわち、所定期間計測用カウンタの値が0にな
ると、バックアップあり指定値(この例では「55
H」)をバックアップフラグにストアする(ステップS
481)。バックアップフラグはバックアップRAM領
域に形成されている。次いで、パリティデータを作成す
る(ステップS482〜S491)。すなわち、まず、
クリアデータ(00)をチェックサムデータエリアにセ
ットし(ステップS482)、チェックサム算出開始ア
ドレスをポインタにセットする(ステップS483)。
また、チェックサム算出回数をセットする(ステップS
484)。
When the predetermined period has elapsed (step S48)
0), that is, when the value of the counter for measuring for a predetermined period becomes 0, the designated value with backup (in this example, "55
H ”) is stored in the backup flag (step S
481). The backup flag is formed in the backup RAM area. Next, the parity data is created (steps S482 to S491). That is, first,
The clear data (00) is set in the checksum data area (step S482), and the checksum calculation start address is set in the pointer (step S483).
Also, the number of checksum calculations is set (step S
484).

【0157】そして、チェックサムデータエリアの内容
とポインタが指すRAM領域の内容との排他的論理和を
演算する(ステップS485)。演算結果をチェックサ
ムデータエリアにストアするとともに(ステップS48
6)、ポインタの値を1増やし(ステップS487)、
チェックサム算出回数の値を1減算する(ステップS4
88)。ステップS485〜S488の処理が、チェッ
クサム算出回数の値が0になるまで繰り返される(ステ
ップS489)。
Then, the exclusive OR of the contents of the checksum data area and the contents of the RAM area pointed to by the pointer is calculated (step S485). The calculation result is stored in the checksum data area (step S48).
6), increment the pointer value by 1 (step S487),
The value of the checksum calculation count is subtracted by 1 (step S4
88). The processes of steps S485 to S488 are repeated until the value of the checksum calculation count becomes 0 (step S489).

【0158】チェックサム算出回数の値が0になった
ら、CPU56は、チェックサムデータエリアの内容の
各ビットの値を反転する(ステップS490)。そし
て、反転後のデータをチェックサムデータエリアにスト
アする(ステップS491)。このデータが、電源投入
時にチェックされるパリティデータとなる。次いで、R
AMアクセスレジスタにアクセス禁止値を設定する(ス
テップS492)。以後、内蔵RAM55のアクセスが
できなくなる。
When the value of the checksum calculation frequency becomes 0, the CPU 56 inverts the value of each bit of the contents of the checksum data area (step S490). Then, the inverted data is stored in the checksum data area (step S491). This data becomes the parity data that is checked when the power is turned on. Then R
An access prohibition value is set in the AM access register (step S492). After that, the built-in RAM 55 cannot be accessed.

【0159】そして、RAMアクセスレジスタにアクセ
ス禁止値を設定すると、CPU56は、待機状態(ルー
プ状態)に入る。従って、システムリセットされるま
で、何もしない状態になる。
Then, when the access prohibition value is set in the RAM access register, the CPU 56 enters the standby state (loop state). Therefore, nothing is done until the system is reset.

【0160】この実施の形態では、遊技制御処理におい
て用いられるデータが格納されるRAM領域は全て電源
バックアップされている。従って、その内容が正しく保
存されているか否かを示すチェックサムの生成処理、お
よびその内容を書き換えないようにするためのRAMア
クセス防止処理が、遊技状態を保存するための処理に相
当する。
In this embodiment, the RAM area in which the data used in the game control processing is stored is backed up by the power supply. Therefore, the checksum generation process indicating whether or not the contents are correctly saved, and the RAM access prevention process for preventing the contents from being rewritten correspond to the process for saving the game state.

【0161】なお、この実施の形態では、NMIに応じ
て電力供給停止時処理が実行されたが、電源断信号をC
PU56のマスク可能端子に接続し、マスク可能割込処
理によって電力供給停止時処理を実行してもよい。ま
た、電源断信号を入力ポートに入力し、入力ポートのチ
ェック結果に応じて電力供給停止時処理を実行してもよ
い。
In this embodiment, the power supply stop processing is executed according to the NMI, but the power-off signal is changed to C
You may connect to the maskable terminal of PU56 and may perform a power supply stop process by a maskable interrupt process. Alternatively, a power-off signal may be input to the input port, and the power supply stoppage process may be executed according to the check result of the input port.

【0162】また、この実施の形態では、電源断信号に
応じて起動される処理の最初にレジスタの保存処理が行
われたが、スイッチ検出処理においてレジスタを使用し
ない場合には、スイッチ検出処理の実行後に、すなわ
ち、バックアップフラグの設定とチェックサムの算出の
処理の前にレジスタ保存処理を行うことができる。その
場合には、レジスタ保存処理、バックアップフラグ設定
処理、チェックサム算出処理および出力ポートのオフ設
定処理を電力供給停止時処理と見なすことができる。さ
らに、スイッチ検出処理において幾つかのレジスタを使
用する場合であっても、使用しないレジスタについて
は、バックアップフラグの設定とチェックサムの算出の
処理の前にレジスタ保存処理を行うことができる。
In this embodiment, the register saving process is performed at the beginning of the process started in response to the power-off signal. However, when the register is not used in the switch detecting process, the switch detecting process is performed. The register saving process can be performed after the execution, that is, before the process of setting the backup flag and calculating the checksum. In that case, the register saving process, the backup flag setting process, the checksum calculation process, and the output port off setting process can be regarded as the power supply stop process. Further, even when some registers are used in the switch detection process, the register saving process can be performed on the unused registers before the backup flag setting and the checksum calculation process.

【0163】なお、上記の例では、出力ポートのクリア
処理を、スイッチ検出処理の実行前(ステップS460
の前)に行っている。電力供給停止時処理の実行中で
は、CPU56やスイッチ類はコンデンサ923,92
4の充電電力等で駆動されることになる。出力ポートの
クリア処理をスイッチ検出処理の実行前に行っているの
で、大入賞口や可変入賞装置等がソレノイド等の電気部
品で駆動されるように構成されていても、それらが駆動
されることはなく、コンデンサ(特にコンデンサ92
4)の充電電力等を電力供給停止時処理のために効果的
に使用することができる。
In the above example, the output port clearing process is performed before the switch detection process is executed (step S460).
Before). During the execution of the power supply stop process, the CPU 56 and the switches are connected to the capacitors 923 and 92.
It will be driven by the charging power of 4 or the like. Since the output port clearing process is performed before the switch detection process is executed, even if the special winning opening, the variable winning device, etc. are configured to be driven by electric parts such as solenoids, they must be driven. Not a capacitor (especially capacitor 92
The charging power and the like in 4) can be effectively used for the processing at the time of power supply stop.

【0164】なお、上記の例において、電源が断するこ
とが検出された後にV入賞スイッチ22を検出する場合
には、ソレノイド21(大入賞口をV入賞スイッチに誘
導するための部材を動作させるもの)の出力ポートにつ
いては、スイッチ検出処理の実行後にクリアする。その
ようにすれば、継続権発生の条件であるV入賞をしてい
ない状態で停電が発生した場合、停電発生直前に大入賞
口に入った遊技球をV入賞スイッチ22の側に誘導する
ことができる。従って、不当な継続権の消滅を防止する
ことができる。この場合、所定期間は、大入賞口に入賞
した遊技球がV入賞スイッチ22に到達するまでの時間
以上の期間である。なお、ラッチ式のソレノイドを用い
た場合には、出力ポートのクリア処理は不要である。
In the above example, when the V winning switch 22 is detected after the power is cut off, the solenoid 21 (the member for guiding the special winning opening to the V winning switch is operated). The output port of () is cleared after the switch detection processing is executed. By doing so, when a power outage occurs in a state where the V winning that is the condition of continuation right is not generated, guide the game ball that entered the special winning opening just before the power outage to the V winning switch 22 side. You can Therefore, it is possible to prevent the unjustified extinction of the continuation right. In this case, the predetermined period is a period of time or more until the gaming ball that has won the special winning opening reaches the V winning switch 22. When a latch type solenoid is used, it is not necessary to clear the output port.

【0165】また、出力ポートのクリアによって大入賞
口が閉じた場合でも、大入賞口内に遊技球があることも
考えられるので、電源断信号に応じて実行されるスイッ
チ検出処理において、カウントスイッチ23の検出も行
うことが望ましい。上記の例外的な処理については、第
1種パチンコ遊技機においてのみならず、第2種パチン
コ遊技機や第3種パチンコ遊技機についても同様であ
る。
Further, even if the special winning opening is closed by clearing the output port, it is possible that there is a game ball in the special winning opening. Therefore, in the switch detection processing executed in response to the power-off signal, the count switch 23 It is desirable to detect The above-mentioned exceptional processing is the same not only in the type 1 pachinko gaming machine but also in the type 2 pachinko gaming machine and the type 3 pachinko gaming machine.

【0166】図22は、遊技機への電力供給停止時の電
源電圧低下やNMI信号(=電源断信号:電力供給停止
時信号)の様子を示すタイミング図である。遊技機に対
する電力供給が停止すると、最も高い直流電源電圧であ
るVSLのうちの監視電圧(電源監視用IC902に入力
される電圧)の電圧値は徐々に低下する。そして、この
例では、+22Vにまで低下すると、電源基板910に
搭載されている電源監視用IC902から電源断信号が
出力される(ローレベルになる)。
FIG. 22 is a timing chart showing the state of the power supply voltage drop and the NMI signal (= power off signal: power supply stop signal) when the power supply to the gaming machine is stopped. When the power supply to the gaming machine is stopped, the voltage value of the monitoring voltage (voltage input to the power supply monitoring IC 902) of VSL, which is the highest DC power supply voltage, gradually decreases. Then, in this example, when the voltage drops to + 22V, the power supply cutoff signal is output from the power supply monitoring IC 902 mounted on the power supply board 910 (becomes a low level).

【0167】電源断信号は、電気部品制御基板(この実
施の形態では主基板31および払出制御基板37)に導
入され、CPU56および払出制御用CPU371のN
MI端子に入力される。CPU56および払出制御用C
PU371は、NMI処理によって、所定の電力供給停
止時処理を実行する。
The power-off signal is introduced to the electric component control board (in this embodiment, the main board 31 and the payout control board 37), and the CPU 56 and the payout control CPU 371 have N levels.
It is input to the MI terminal. CPU 56 and payout control C
The PU 371 executes a predetermined power supply stop process by the NMI process.

【0168】VSLの電圧値がさらに低下して所定値(こ
の例では+9V)にまで低下すると、主基板31や払出
制御基板37に搭載されているシステムリセット回路の
出力がローレベルになり、CPU56および払出制御用
CPU371がシステムリセット状態になる。なお、C
PU56および払出制御用CPU371は、システムリ
セット状態とされる前に、電力供給停止時処理を完了し
ている。
When the voltage value of VSL further decreases to a predetermined value (+ 9V in this example), the output of the system reset circuit mounted on the main board 31 or the payout control board 37 becomes low level, and the CPU 56 And the payout control CPU 371 enters the system reset state. Note that C
The PU 56 and the payout control CPU 371 have completed the power supply stoppage process before being brought into the system reset state.

【0169】VSLの電圧値がさらに低下してVcc(各種
回路を駆動するための+5V)を生成することが可能な
電圧を下回ると、各基板において各回路が動作できない
状態となる。しかし、少なくとも主基板31や払出制御
基板37では、電力供給停止時処理が実行され、CPU
56および払出制御用CPU371がシステムリセット
状態とされている。
When the voltage value of VSL further decreases and falls below the voltage capable of generating Vcc (+ 5V for driving various circuits), each circuit becomes inoperable in each substrate. However, at least on the main board 31 and the payout control board 37, the processing at the time of power supply stop is executed, and
56 and the payout control CPU 371 are in the system reset state.

【0170】以上のように、この実施の形態では、電源
監視回路は、遊技機で使用される直流電圧のうちで最も
高い電源VSLの電圧を監視して、その電源の電圧が所定
値を下回ったら電圧低下信号(電源断検出信号)を発生
する。図22に示すように、電源断信号が出力されるタ
イミングでは、IC駆動電圧は、まだ各種回路素子を十
分駆動できる電圧値になっている。従って、IC駆動電
圧で動作する主基板31のCPU56が所定の電力供給
停止時処理を行うための動作時間が確保されている。
As described above, in this embodiment, the power supply monitoring circuit monitors the voltage of the power supply VSL, which is the highest DC voltage used in the gaming machine, and the voltage of the power supply falls below the predetermined value. Generates a voltage drop signal (power cut detection signal). As shown in FIG. 22, at the timing when the power-off signal is output, the IC drive voltage is still a voltage value that can sufficiently drive various circuit elements. Therefore, an operation time is ensured for the CPU 56 of the main board 31 operating with the IC drive voltage to perform a predetermined power supply stoppage process.

【0171】なお、ここでは、電源監視回路は、遊技機
で使用される直流電圧のうちで最も高い電源VSLから分
岐された電圧を監視したが、電源断信号を発生するタイ
ミングが、IC駆動電圧で動作する電気部品制御手段が
所定の電力供給停止時処理を行うための動作時間が確保
されるようなタイミングであれば、監視対象電圧は、最
も高い電源VSLの電圧でなくてもよい。すなわち、少な
くともICやソレノイドの駆動電圧よりも高い電圧を監
視すれば、電気部品制御手段が所定の電力供給停止時処
理を行うための動作時間が確保されるようなタイミング
で電源断信号を発生することができる。この例では、ソ
レノイド等の駆動電圧として電源VSLから分岐された電
圧が用いられるが、監視対象電圧が供給されるラインと
は異なり、ソレノイド等に駆動電圧を供給するラインに
大容量のコンデンサ924が接続されているので、ソレ
ノイド等に対する駆動電圧の供給を継続することができ
る所定期間が確保されているタイミングで電源断信号を
発生することができる。
Here, the power supply monitoring circuit monitors the voltage branched from the highest power supply VSL of the DC voltage used in the gaming machine. However, the timing of generating the power-off signal is the IC drive voltage. The voltage to be monitored does not have to be the highest voltage of the power supply VSL, as long as the operation time for the electric component control means operating in (3) secures the operation time for performing the predetermined power supply stop processing. That is, if at least a voltage higher than the drive voltage of the IC or the solenoid is monitored, the power-off signal is generated at such a timing that the operation time for the electric component control means to perform the predetermined power supply stop processing is secured. be able to. In this example, the voltage branched from the power supply VSL is used as the drive voltage of the solenoid or the like, but unlike the line to which the monitored voltage is supplied, a large-capacity capacitor 924 is provided in the line that supplies the drive voltage to the solenoid or the like. Since they are connected, the power-off signal can be generated at a timing when a predetermined period in which the supply of the drive voltage to the solenoid etc. can be continued is secured.

【0172】最も高い電源VSL以外の電圧を監視対象電
圧とする場合、上述したように、監視対象電圧は、電力
供給停止時のスイッチオン誤検出の防止も期待できる電
圧であることが好ましい。すなわち、遊技機の各種スイ
ッチに供給される電圧(スイッチ電圧)が+12Vであ
ることから、+12V電源電圧が落ち始める以前の段階
で、電圧低下を検出できることが好ましい。よって、少
なくともスイッチ電圧よりも高い電圧を監視することが
好ましい。
When a voltage other than the highest power source VSL is set as the monitored voltage, it is preferable that the monitored voltage is a voltage that can be expected to prevent erroneous switch-on detection when the power supply is stopped, as described above. That is, since the voltage (switch voltage) supplied to the various switches of the gaming machine is + 12V, it is preferable that the voltage drop can be detected before the + 12V power supply voltage starts to drop. Therefore, it is preferable to monitor at least a voltage higher than the switch voltage.

【0173】図23は、払出検出手段からの検出信号の
入力処理が実行される様子の一例を示すタイミング図で
ある。この実施の形態では、電源断信号は、主基板31
および払出制御基板37に入力され、主基板31のCP
U56および払出制御用CPU371のNMI端子に入
力される。主基板31のCPU56は、マスク不能割込
処理によって、上述した電力供給停止時処理を実行す
る。
FIG. 23 is a timing chart showing an example of how the detection signal input processing from the payout detecting means is executed. In this embodiment, the power-off signal is the main board 31.
And the payout control board 37, and the CP of the main board 31.
It is input to the N56 terminal of the U56 and the payout control CPU 371. The CPU 56 of the main board 31 executes the above-described power supply stop processing by the non-maskable interrupt processing.

【0174】図23に示すように、電源断信号がオン
(この例ではハイレベルからローレベルに変化)するあ
たりで賞球払出が実行された場合、払出検出手段からの
検出信号の入力処理が実行される所定期間内で賞球カウ
ントスイッチ301Aがオンする。従って、電源断信号
がオンするあたりで実行された球払出についても、電力
供給停止時処理が実行される際に、総賞球数バッファに
反映することができる。
As shown in FIG. 23, when the prize-ball payout is executed when the power-off signal turns on (changes from the high level to the low level in this example), the detection signal input process from the payout detection means is performed. The prize ball count switch 301A is turned on within a predetermined period to be executed. Therefore, the ball payout executed when the power-off signal is turned on can be reflected in the total prize ball number buffer when the power supply stop process is executed.

【0175】VSLの電圧値がさらに低下して所定値(こ
の例では+9V)にまで低下すると、図11に示された
ように主基板31搭載されているリセットIC651の
出力がローレベルになり、CPU56がシステムリセッ
ト状態になる。なお、CPU56は、システムリセット
状態とされる前に、電力供給停止時処理を完了してい
る。
When the voltage value of VSL further decreases to a predetermined value (+ 9V in this example), the output of the reset IC 651 mounted on the main board 31 becomes low level as shown in FIG. The CPU 56 enters the system reset state. The CPU 56 completes the power supply stoppage process before the system is reset.

【0176】VSLの電圧値がさらに低下してVcc(各種
回路を駆動するための+5V)を生成することが可能な
電圧を下回ると、各基板において各回路が動作できない
状態となる。しかし、主基板31では、電力供給停止時
処理が実行され、CPU56がシステムリセット状態と
されている。
When the voltage value of VSL further decreases and falls below a voltage capable of generating Vcc (+ 5V for driving various circuits), each circuit becomes inoperable in each substrate. However, in the main board 31, the power supply stop processing is executed, and the CPU 56 is in the system reset state.

【0177】なお、後述するように、払出制御基板37
における払出制御用CPU371も、同様に電力供給停
止時処理を行った後にシステムリセット状態になる。
Note that, as will be described later, the payout control board 37
Similarly, the payout control CPU 371 in (1) also enters the system reset state after performing the power supply stoppage process.

【0178】次に、メイン処理におけるスイッチ処理
(ステップS21)の具体例を説明する。この実施の形
態では、各スイッチの検出信号のオン状態が所定時間継
続すると、確かにスイッチがオンしたと判定されスイッ
チオンに対応した処理が開始される。所定時間を計測す
るために、スイッチタイマが用いられる。スイッチタイ
マは、バックアップRAM領域に形成された1バイトの
カウンタであり、検出信号がオン状態を示している場合
に2ms毎に+1される。図24に示すように、スイッ
チタイマは検出信号の数N(クリアスイッチ921の検
出信号を除く)だけ設けられている。この実施の形態で
はN=13である。また、RAM55において、各スイ
ッチタイマのアドレスは、入力ポートのビット配列順
(図14に示された上から下への順)と同じ順序で並ん
でいる。
Next, a specific example of the switch process (step S21) in the main process will be described. In this embodiment, when the ON state of the detection signal of each switch continues for a predetermined time, it is determined that the switch is certainly turned on, and the process corresponding to the switch on is started. A switch timer is used to measure a predetermined time. The switch timer is a 1-byte counter formed in the backup RAM area, and is incremented by 1 every 2 ms when the detection signal indicates the ON state. As shown in FIG. 24, the switch timers are provided by the number N of detection signals (excluding the detection signal of the clear switch 921). In this embodiment, N = 13. In the RAM 55, the addresses of the switch timers are arranged in the same order as the bit arrangement order of the input ports (the order from the top to the bottom shown in FIG. 14).

【0179】図25は、遊技制御処理におけるステップ
S21のスイッチ処理の処理例を示すフローチャートで
ある。なお、スイッチ処理は、図18に示すように遊技
制御処理において最初に実行される。スイッチ処理にお
いて、CPU56は、まず、入力ポート0に入力されて
いるデータを入力する(ステップS101)。次いで、
処理数として「8」を設定し(ステップS102)、入
賞口スイッチ33aのためのスイッチタイマのアドレス
をポインタにセットする(ステップS103)。そし
て、スイッチチェック処理サブルーチンをコールする
(ステップS104)。
FIG. 25 is a flow chart showing a processing example of the switch processing of step S21 in the game control processing. The switch process is first executed in the game control process as shown in FIG. In the switch process, the CPU 56 first inputs the data input to the input port 0 (step S101). Then
The number of processes is set to "8" (step S102), and the address of the switch timer for the winning opening switch 33a is set in the pointer (step S103). Then, the switch check processing subroutine is called (step S104).

【0180】図26は、スイッチチェック処理サブルー
チンを示すフローチャートである。スイッチチェック処
理サブルーチンにおいて、CPU56は、ポート入力デ
ータ、この場合には入力ポート0からの入力データを
「比較値」として設定する(ステップS121)。ま
た、クリアデータ(00)をセットする(ステップS1
22)。そして、ポインタ(スイッチタイマのアドレス
が設定されている)が指すスイッチタイマをロードする
とともに(ステップS123)、比較値を右(上位ビッ
トから下位ビットへの方向)にシフトする(ステップS
124)。比較値には入力ポート0のデータ設定されて
いる。そして、この場合には、入賞口スイッチ33aの
検出信号がキャリーフラグに押し出される。
FIG. 26 is a flow chart showing the switch check processing subroutine. In the switch check processing subroutine, the CPU 56 sets the port input data, in this case, the input data from the input port 0 as the "comparison value" (step S121). In addition, clear data (00) is set (step S1
22). Then, the switch timer pointed to by the pointer (the address of the switch timer is set) is loaded (step S123), and the comparison value is shifted to the right (from the upper bit to the lower bit) (step S).
124). The data of the input port 0 is set as the comparison value. Then, in this case, the detection signal of the winning opening switch 33a is pushed out to the carry flag.

【0181】キャリーフラグの値が「1」であれば(ス
テップS125)、すなわち入賞口スイッチ33aの検
出信号がオン状態であれば、スイッチタイマの値を1加
算する(ステップS127)。加算後の値が0でなけれ
ば加算値をスイッチタイマに戻す(ステップS128,
S129)。加算後の値が0になった場合には加算値を
スイッチタイマに戻さない。すなわち、スイッチタイマ
の値が既に最大値(255)に達している場合には、そ
れよりも値を増やさない。
If the value of the carry flag is "1" (step S125), that is, if the detection signal of the winning opening switch 33a is on, the value of the switch timer is incremented by 1 (step S127). If the value after addition is not 0, the added value is returned to the switch timer (step S128,
S129). When the value after addition becomes 0, the added value is not returned to the switch timer. That is, when the value of the switch timer has already reached the maximum value (255), the value is not increased.

【0182】キャリーフラグの値が「0」であれば、す
なわち入賞口スイッチ33aの検出信号がオフ状態であ
れば、スイッチタイマにクリアデータをセットする(ス
テップS126)。すなわち、スイッチがオフ状態であ
れば、スイッチタイマの値が0に戻る。
If the value of the carry flag is "0", that is, if the detection signal of the winning opening switch 33a is in the off state, clear data is set in the switch timer (step S126). That is, if the switch is in the off state, the value of the switch timer returns to 0.

【0183】その後、CPU56は、ポインタ(スイッ
チタイマのアドレス)を1加算するとともに(ステップ
S130)、処理数を1減算する(ステップS13
1)。処理数が0になっていなければステップS122
に戻る。そして、ステップS122〜S132の処理が
繰り返される。
Thereafter, the CPU 56 adds 1 to the pointer (address of the switch timer) (step S130) and subtracts 1 from the processing number (step S13).
1). If the number of processes is not 0, step S122
Return to. Then, the processing of steps S122 to S132 is repeated.

【0184】ステップS122〜S132の処理は、処
理数分すなわち8回繰り返され、その間に、入力ポート
0の8ビットに入力されるスイッチの検出信号につい
て、順次、オン状態かオフ状態か否かのチェック処理が
行われ、オン状態であれば、対応するスイッチタイマの
値が1増やされる。
The processing of steps S122 to S132 is repeated for the number of processings, that is, eight times, and during that time, the detection signal of the switch input to the 8 bits of the input port 0 is sequentially turned on or off. If the check process is performed and the switch is on, the value of the corresponding switch timer is incremented by one.

【0185】CPU56は、スイッチ処理のステップS
105において、入力ポート1に入力されているデータ
を入力する。次いで、処理数として「4」を設定し(ス
テップS106)、賞球カウントスイッチ301Aのた
めのスイッチタイマのアドレスをポインタにセットする
(ステップS107)。そして、スイッチチェック処理
サブルーチンをコールする(ステップS108)。
The CPU 56 executes step S of the switch processing.
At 105, the data input to the input port 1 is input. Next, "4" is set as the number of processes (step S106), and the address of the switch timer for the prize ball count switch 301A is set in the pointer (step S107). Then, the switch check processing subroutine is called (step S108).

【0186】スイッチチェック処理サブルーチンでは、
上述した処理が実行されるので、ステップS122〜S
132の処理が、処理数分すなわち4回繰り返され、そ
の間に、入力ポート1の4ビットに入力されるスイッチ
の検出信号について、順次、オン状態かオフ状態か否か
のチェック処理が行われ、オン状態であれば、対応する
スイッチタイマの値が1増やされる。
In the switch check processing subroutine,
Since the processing described above is executed, steps S122 to S122
The processing of 132 is repeated for the number of processings, that is, four times, and during that time, with respect to the detection signal of the switch input to the 4 bits of the input port 1, the check processing of whether it is in the on state or the off state is performed sequentially. If it is on, the value of the corresponding switch timer is incremented by one.

【0187】なお、この実施の形態では、遊技制御処理
が2ms毎に起動されるので、スイッチ処理も2msに
1回実行される。従って、スイッチタイマは、2ms毎
に+1される。
In this embodiment, the game control process is activated every 2 ms, so the switch process is also performed once every 2 ms. Therefore, the switch timer is incremented by 1 every 2 ms.

【0188】図27〜図29は、遊技制御処理における
ステップS32の賞球処理の一例を示すフローチャート
である。この実施の形態では、賞球処理では、賞球払出
の対象となる入賞口スイッチ33a,39a,29a,
30a、カウントスイッチ23および始動口スイッチ1
4aが確実にオンしたか否か判定されるとともに、オン
したら賞球個数を示す払出制御コマンドが払出制御基板
37に送出されるように制御し、また、満タンスイッチ
48および球切れスイッチ187が確実にオンしたか否
か判定されるとともに、オンしたら所定の払出制御コマ
ンドが払出制御基板37に送出されるように制御する等
の処理が行われる。
27 to 29 are flowcharts showing an example of the prize ball process of step S32 in the game control process. In the present embodiment, in the prize ball processing, the prize winning hole switches 33a, 39a, 29a, which are targets of prize ball payout,
30a, count switch 23 and starting opening switch 1
4a is surely turned on, and when turned on, the payout control command indicating the number of prize balls is controlled to be sent to the payout control board 37, and the full tank switch 48 and the out-of-ball switch 187 are controlled. Whether or not it is surely turned on is determined, and when it is turned on, processing such as controlling to send a predetermined payout control command to the payout control board 37 is performed.

【0189】賞球処理において、CPU56は、入力判
定値テーブルのオフセットとして「1」を設定し(ステ
ップS150)、スイッチタイマのアドレスのオフセッ
トとして「9」を設定する(ステップS151)。入力
判定値テーブル(図31参照)のオフセット「1」は、
入力判定値テーブルの2番目のデータ「50」を使用す
ることを意味する。また、各スイッチタイマは、図14
に示された入力ポートのビット順と同順に並んでいるの
で、スイッチタイマのアドレスのオフセット「9」は満
タンスイッチ48に対応したスイッチタイマが指定され
ることを意味する。そして、スイッチオンチェックルー
チンがコールされる(ステップS152)。
In the prize ball processing, the CPU 56 sets "1" as the offset of the input determination value table (step S150) and "9" as the offset of the address of the switch timer (step S151). The offset “1” in the input determination value table (see FIG. 31) is
This means that the second data “50” in the input determination value table is used. Also, each switch timer is shown in FIG.
Since they are arranged in the same order as the bit order of the input ports shown in FIG. 3, the offset "9" of the address of the switch timer means that the switch timer corresponding to the full switch 48 is designated. Then, the switch-on check routine is called (step S152).

【0190】入力判定値テーブルとは、各スイッチにつ
いて、連続何回のオンが検出されたら確かにスイッチが
オンしたと判定するための判定値が設定されているRO
M領域である。入力判定値テーブルの構成例は図31に
示されている。図31に示すように、入力判定値テーブ
ルには、上から順に、すなわちアドレス値が小さい領域
から順に、「2」、「50」、「250」、「30」、
「250」、「1」の判定値が設定されている。また、
スイッチオンチェックルーチンでは、入力判定値テーブ
ルの先頭アドレスとオフセット値とで決まるアドレスに
設定されている判定値と、スイッチタイマの先頭アドレ
スとオフセット値とで決まるスイッチタイマの値とが比
較され、一致した場合には、例えばスイッチオンフラグ
がセットされる。
The input judgment value table is set with a judgment value for each switch, for judging how many times the switch is continuously turned on to judge that the switch is turned on.
It is the M region. An example of the configuration of the input determination value table is shown in FIG. As shown in FIG. 31, in the input determination value table, “2”, “50”, “250”, “30”,
The determination values of "250" and "1" are set. Also,
In the switch-on check routine, the judgment value set at the address determined by the start address of the input judgment value table and the offset value is compared with the switch timer value determined by the start address of the switch timer and the offset value, and they match. In that case, the switch-on flag is set, for example.

【0191】スイッチオンチェックルーチンの一例が図
30に示されている。スイッチオンチェックルーチンに
おいて、満タンスイッチ48に対応するスイッチタイマ
の値が満タンスイッチオン判定値「50」に一致してい
ればスイッチオンフラグがセットされるので(ステップ
S153)、満タンフラグがセットされる(ステップS
154)。なお、図27には明示されていないが、満タ
ンスイッチ48に対応したスイッチタイマの値が0にな
ると、満タンフラグはリセットされる。
An example of the switch-on check routine is shown in FIG. In the switch-on check routine, the switch-on flag is set if the value of the switch timer corresponding to the full-tank switch 48 matches the full-tank switch-on determination value "50" (step S153), so the full-tank flag is set. (Step S
154). Although not explicitly shown in FIG. 27, when the value of the switch timer corresponding to the full tank switch 48 becomes 0, the full tank flag is reset.

【0192】また、CPU56は、入力判定値テーブル
のオフセットとして「2」を設定し(ステップS15
6)、スイッチタイマのアドレスのオフセットとして
「0A(H)」を設定する(ステップS157)。入力
判定値テーブルのオフセット「2」は、入力判定値テー
ブルの3番目のデータ「250」を使用することを意味
する。また、各スイッチタイマは、図14に示された入
力ポートのビット順と同順に並んでいるので、スイッチ
タイマのアドレスのオフセット「0A(H)」は球切れ
スイッチ187に対応したスイッチタイマが指定される
ことを意味する。そして、スイッチオンチェックルーチ
ンがコールされる(ステップS158)。
Further, the CPU 56 sets "2" as the offset of the input judgment value table (step S15).
6), "0A (H)" is set as the offset of the switch timer address (step S157). The offset “2” in the input determination value table means that the third data “250” in the input determination value table is used. Since the switch timers are arranged in the same order as the bit order of the input ports shown in FIG. 14, the offset “0A (H)” of the switch timer address is designated by the switch timer corresponding to the out-of-ball switch 187. Means to be done. Then, the switch-on check routine is called (step S158).

【0193】スイッチオンチェックルーチンにおいて、
球切れスイッチ187に対応するスイッチタイマの値が
球切れスイッチオン判定値「250」に一致していれば
スイッチオンフラグがセットされるので(ステップS1
59)、球切れフラグがセットされる(ステップS16
0)。なお、図27には明示されていないが、球切れス
イッチ187に対応したスイッチオフタイマが用意さ
れ、その値が50になると、球切れフラグはリセットさ
れる。
In the switch-on check routine,
If the value of the switch timer corresponding to the out-of-ball switch 187 matches the out-of-ball switch-on determination value "250", the switch-on flag is set (step S1).
59), the out-of-ball flag is set (step S16).
0). Although not clearly shown in FIG. 27, a switch-off timer corresponding to the out-of-ball switch 187 is prepared, and when the value reaches 50, the out-of-ball flag is reset.

【0194】そして、CPU56は、払出停止状態であ
るか否か確認する(ステップS201)。払出停止状態
は、払出制御基板37に対して払出を停止すべき状態で
あることを指示する払出制御コマンドである払出停止状
態指定コマンドを送出した後の状態であり、具体的に
は、作業領域における払出停止フラグがセットされてい
る状態である。払出停止状態でなければ、上述した球切
れ状態フラグまたは満タンフラグがオンになったか否か
を確認する(ステップS202)。
Then, the CPU 56 confirms whether or not the dispensing is stopped (step S201). The payout stop state is a state after a payout stop state designating command, which is a payout control command for instructing the payout control board 37 to be in a state where the payout should be stopped, specifically, the work area. The payout stop flag in is set. If it is not in the payout stop state, it is confirmed whether the out-of-ball state flag or the full tank flag is turned on (step S202).

【0195】いずれかがオン状態に変化したときには、
払出停止状態フラグをセットするとともに(ステップS
203)、払出停止状態指定コマンドに関するコマンド
送信テーブルをセットし(ステップS204)、コマン
ドセット処理をコールする(ステップS205)。ステ
ップS204では、払出停止状態指定コマンドの払出制
御コマンドが格納されているコマンド送信テーブル(R
OM)の先頭アドレスが、コマンド送信テーブルのアド
レスとして設定される。払出停止状態指定コマンドに関
するコマンド送信テーブルには、後述するINTデー
タ、払出制御コマンドの1バイト目のデータ、および払
出制御コマンドの2バイト目のデータが設定されてい
る。なお、ステップS202において、いずれか一方の
フラグが既にオン状態であったときに他方のフラグがオ
ン状態になったときには、ステップS203〜ステップ
S205の処理は行われない。
When any of them changes to the ON state,
The payout stop state flag is set (step S
203), the command transmission table relating to the payout stop state designation command is set (step S204), and the command setting process is called (step S205). In step S204, a command transmission table (R
The start address of OM) is set as the address of the command transmission table. In the command transmission table relating to the payout stop state designation command, the INT data, the first byte of the payout control command, and the second byte of the payout control command, which will be described later, are set. In addition, in step S202, when one of the flags is already in the on state and the other flag is in the on state, the processes of steps S203 to S205 are not performed.

【0196】また、払出停止状態であれば、球切れ状態
フラグおよび満タンフラグがともにオフ状態になったか
否かを確認する(ステップS206)。ともにオフ状態
となったとき(後述する解除条件が成立したとき)に
は、払出停止フラグをリセットするとともに(ステップ
S207)、払出可能状態指定コマンドに関するコマン
ド送信テーブルをセットし(ステップS208)、コマ
ンドセット処理をコールする(ステップS209)。ス
テップS208では、払出可能状態指定コマンドの払出
制御コマンドが格納されているコマンド送信テーブル
(ROM)の先頭アドレスが、コマンド送信テーブルの
アドレスとして設定される。払出可能状態指定コマンド
に関するコマンド送信テーブルには、後述するINTデ
ータ、払出制御コマンドの1バイト目のデータ、および
払出制御コマンドの2バイト目のデータが設定されてい
る。
If it is in the payout stop state, it is confirmed whether or not both the out-of-ball state flag and the full tank flag are turned off (step S206). When both are in the off state (when the release condition described later is satisfied), the payout stop flag is reset (step S207), and the command transmission table regarding the payable state designation command is set (step S208). The set process is called (step S209). In step S208, the start address of the command transmission table (ROM) in which the payout control command of the payable state designation command is stored is set as the address of the command transmission table. In the command transmission table related to the payable state designation command, INT data, which will be described later, data of the first byte of the payout control command, and data of the second byte of the payout control command are set.

【0197】なお、解除条件は、払出停止状態を解除す
るための条件であり、払出停止状態を維持する必要がな
くなったときに成立する条件である。本例では、解除条
件は、払出停止状態とされているときに、余剰球受皿4
が満タン状態でなく、かつ、球切れ状態でもない状態で
ない状態となったこととされている。
The cancel condition is a condition for canceling the payout stop state and is satisfied when it is no longer necessary to maintain the payout stop state. In this example, the cancellation condition is that the surplus ball receiving tray 4 is used when the dispensing stop state is set.
Is said to be in a state that is not full and is not out of ball.

【0198】さらに、CPU56は、入力判定値テーブ
ルのオフセットとして「0」を設定し(ステップS22
1)、スイッチタイマのアドレスのオフセットとして
「0」を設定する(ステップS222)。入力判定値テ
ーブルのオフセット「0」は、入力判定値テーブルの最
初のデータを使用することを意味する。また、各スイッ
チタイマは、図14に示された入力ポートのビット順と
同順に並んでいるので、スイッチタイマのアドレスのオ
フセット「0」は入賞口スイッチ33aに対応したスイ
ッチタイマが指定されることを意味する。また、繰り返
し数として「4」をセットする(ステップS223)。
そして、スイッチオンチェックルーチンがコールされる
(ステップS224)。
Further, the CPU 56 sets "0" as the offset of the input judgment value table (step S22).
1), "0" is set as the offset of the switch timer address (step S222). The offset “0” in the input determination value table means that the first data in the input determination value table is used. Further, since the switch timers are arranged in the same order as the bit order of the input ports shown in FIG. 14, the switch timer address offset “0” specifies the switch timer corresponding to the winning opening switch 33a. Means Also, "4" is set as the number of repetitions (step S223).
Then, the switch-on check routine is called (step S224).

【0199】スイッチオンチェックルーチンにおいて、
CPU56は、入力判定値テーブル(図31参照)の先
頭アドレスを設定する(ステップS281)。そして、
そのアドレスにオフセットを加算し(ステップS28
2)、加算後のアドレスからスイッチオン判定値をロー
ドする(ステップS283)。
In the switch-on check routine,
The CPU 56 sets the start address of the input determination value table (see FIG. 31) (step S281). And
An offset is added to the address (step S28
2) The switch-on determination value is loaded from the added address (step S283).

【0200】次いで、CPU56は、スイッチタイマの
先頭アドレスを設定し(ステップS284)、そのアド
レスにオフセットを加算し(ステップS285)、加算
後のアドレスからスイッチタイマの値をロードする(ス
テップS286)。各スイッチタイマは、図14に示さ
れた入力ポートのビット順と同順に並んでいるので、ス
イッチに対応したスイッチタイマの値がロードされる。
Next, the CPU 56 sets the start address of the switch timer (step S284), adds an offset to the address (step S285), and loads the value of the switch timer from the added address (step S286). Since the switch timers are arranged in the same order as the bit order of the input ports shown in FIG. 14, the value of the switch timer corresponding to the switch is loaded.

【0201】そして、CPU56は、ロードしたスイッ
チタイマの値とスイッチオン判定値とを比較する(ステ
ップS287)。それらが一致すれば、スイッチオンフ
ラグをセットする(ステップ128)。
Then, the CPU 56 compares the loaded switch timer value with the switch-on determination value (step S287). If they match, the switch-on flag is set (step 128).

【0202】この場合には、スイッチオンチェックルー
チンにおいて、入賞口スイッチ33aに対応するスイッ
チタイマの値がスイッチオン判定値「2」に一致してい
ればスイッチオンフラグがセットされる(ステップS2
25)。そして、スイッチチェックオンルーチンは、ス
イッチタイマのアドレスのオフセットが更新されつつ
(ステップS230)、最初に設定された繰り返し数分
だけ実行されるので(ステップS228,S229)、
結局、入賞口スイッチ33a,39a,29a,30a
について、対応するスイッチタイマの値がスイッチオン
判定値「2」と比較されることになる。
In this case, in the switch-on check routine, if the value of the switch timer corresponding to the winning opening switch 33a matches the switch-on determination value "2", the switch-on flag is set (step S2).
25). Then, the switch check-on routine is executed for the number of repetitions set initially (steps S228 and S229) while the address offset of the switch timer is updated (step S230).
After all, the winning opening switch 33a, 39a, 29a, 30a
For, the value of the corresponding switch timer is compared with the switch-on determination value “2”.

【0203】スイッチオンフラグがセットされたら、払
い出すべき賞球個数としての「10」をリングバッファ
に設定する(ステップS226)。そして、総賞球数格
納バッファの格納値に10を加算する(ステップS22
7)。なお、リングバッファにデータを書き込んだとき
には、書込ポインタをインクリメントし、リングバッフ
ァの最後の領域にデータを書き込まれたときには、書込
ポインタを、リングバッファの最初の領域を指すように
更新する。
When the switch-on flag is set, "10" as the number of prize balls to be paid out is set in the ring buffer (step S226). Then, 10 is added to the value stored in the total prize ball number storage buffer (step S22).
7). When data is written in the ring buffer, the write pointer is incremented, and when data is written in the last area of the ring buffer, the write pointer is updated to point to the first area of the ring buffer.

【0204】総賞球数格納バッファは、払出制御手段に
対して指示した賞球個数の累積値(ただし、払い出しが
なされると減算される)が格納されるバッファであり、
バックアップRAMに形成されている。なお、この実施
の形態では、リングバッファにデータを書き込んだ時点
で総賞球数格納バッファの格納値に対する加算処理が行
われるが、払い出すべき賞球個数を指示する払出制御コ
マンドを出力ポートに出力した時点で総賞球数格納バッ
ファの格納値に対する、出力する払出制御コマンドに対
応した賞球数の加算処理を行ってもよい。
The total prize ball number storage buffer is a buffer for storing the cumulative value of the prize ball numbers instructed to the payout control means (however, the value is subtracted when the payout is made).
It is formed in the backup RAM. In this embodiment, when the data is written in the ring buffer, addition processing is performed on the stored value of the total prize ball number storage buffer, but a payout control command for instructing the number of prize balls to be paid out is output to the output port. At the time of output, addition processing of the number of prize balls corresponding to the payout control command to be output may be performed on the stored value of the total prize ball storage buffer.

【0205】次に、CPU56は、入力判定値テーブル
のオフセットとして「0」を設定し(ステップS23
1)、スイッチタイマのアドレスのオフセットとして
「5」を設定する(ステップS232)。入力判定値テ
ーブルのオフセット「0」は、入力判定値テーブルの最
初のデータを使用することを意味する。また、各スイッ
チタイマは、図14に示された入力ポートのビット順と
同順に並んでいるので、スイッチタイマのアドレスのオ
フセット「5」は始動口スイッチ14aに対応したスイ
ッチタイマが指定されることを意味する。そして、スイ
ッチオンチェックルーチンがコールされる(ステップS
233)。
Next, the CPU 56 sets "0" as the offset of the input determination value table (step S23).
1), "5" is set as the offset of the switch timer address (step S232). The offset “0” in the input determination value table means that the first data in the input determination value table is used. Further, since the switch timers are arranged in the same order as the bit order of the input ports shown in FIG. 14, the switch timer address offset "5" specifies the switch timer corresponding to the starting port switch 14a. Means Then, the switch-on check routine is called (step S
233).

【0206】スイッチオンチェックルーチンにおいて、
始動口スイッチ14aに対応するスイッチタイマの値が
スイッチオン判定値「2」に一致していればスイッチオ
ンフラグがセットされる(ステップS234)。スイッ
チオンフラグがセットされたら、払い出すべき賞球個数
としての「6」をリングバッファに設定する(ステップ
S235)。また、総賞球数格納バッファの格納値に6
を加算する(ステップS236)。
In the switch-on check routine,
If the value of the switch timer corresponding to the starting port switch 14a matches the switch-on determination value "2", the switch-on flag is set (step S234). When the switch-on flag is set, "6" as the number of prize balls to be paid out is set in the ring buffer (step S235). In addition, the value stored in the total prize ball storage buffer is 6
Is added (step S236).

【0207】次いで、CPU56は、入力判定値テーブ
ルのオフセットとして「0」を設定し(ステップS24
1)、スイッチタイマのアドレスのオフセットとして
「6」を設定する(ステップS242)。入力判定値テ
ーブルのオフセット「0」は、入力判定値テーブルの最
初のデータを使用することを意味する。また、各スイッ
チタイマは、図14に示された入力ポートのビット順と
同順に並んでいるので、スイッチタイマのアドレスのオ
フセット「6」はカウントスイッチ23に対応したスイ
ッチタイマが指定されることを意味する。そして、スイ
ッチオンチェックルーチンがコールされる(ステップS
243)。
Next, the CPU 56 sets "0" as the offset of the input judgment value table (step S24).
1), "6" is set as the offset of the switch timer address (step S242). The offset “0” in the input determination value table means that the first data in the input determination value table is used. Further, since the switch timers are arranged in the same order as the bit order of the input ports shown in FIG. 14, the offset "6" of the address of the switch timer indicates that the switch timer corresponding to the count switch 23 is designated. means. Then, the switch-on check routine is called (step S
243).

【0208】スイッチオンチェックルーチンにおいて、
カウントスイッチ23に対応するスイッチタイマの値が
スイッチオン判定値「2」に一致していればスイッチオ
ンフラグがセットされる(ステップS244)。スイッ
チオンフラグがセットされたら、払い出すべき賞球個数
としての「15」をリングバッファに設定する(ステッ
プS245)。また、総賞球数格納バッファの格納値に
15を加算する(ステップS246)。
In the switch-on check routine,
If the value of the switch timer corresponding to the count switch 23 matches the switch-on determination value “2”, the switch-on flag is set (step S244). When the switch-on flag is set, "15" as the number of prize balls to be paid out is set in the ring buffer (step S245). In addition, 15 is added to the value stored in the total prize ball storage buffer (step S246).

【0209】そして、リングバッファにデータが存在す
る場合には(ステップS247)、読出ポインタが指す
リングバッファの内容を送信バッファにセットするとと
もに(ステップS248)、読出ポインタの値を更新
(リングバッファの次の領域を指すように更新)し(ス
テップS249)、賞球個数に関するコマンド送信テー
ブルをセットし(ステップS250)、コマンドセット
処理をコールする(ステップS251)。コマンドセッ
ト処理の動作については後で詳しく説明する。
If data exists in the ring buffer (step S247), the contents of the ring buffer pointed to by the read pointer are set in the transmission buffer (step S248), and the value of the read pointer is updated (in the ring buffer). It is updated to point to the next area (step S249), the command transmission table regarding the number of prize balls is set (step S250), and the command setting process is called (step S251). The operation of the command set process will be described later in detail.

【0210】ステップS250では、賞球個数に関する
払出制御コマンドが格納されているコマンド送信テーブ
ル(ROM)の先頭アドレスが、コマンド送信テーブル
のアドレスとして設定される。賞球個数に関するコマン
ド送信テーブルには、後述するINTデータ(01
(H))、払出制御コマンドの1バイト目のデータ(F
0(H))、および払出制御コマンドの2バイト目のデ
ータが設定されている。ただし、2バイト目のデータと
して「80(H)」が設定されている。
In step S250, the head address of the command transmission table (ROM) in which the payout control command relating to the number of prize balls is stored is set as the address of the command transmission table. The command transmission table relating to the number of prize balls includes INT data (01
(H)), the first byte of the payout control command (F
0 (H)), and the data of the second byte of the payout control command are set. However, "80 (H)" is set as the second byte of data.

【0211】以上のように、遊技制御手段から払出制御
基板37に賞球個数を指示する払出制御コマンドを出力
しようとするときに、賞球個数に関するコマンド送信テ
ーブルのアドレス設定と送信バッファの設定とが行われ
る。そして、コマンドセット処理によって、賞球個数に
関するコマンド送信テーブルと送信バッファの設定内容
とにもとづいて払出制御コマンドが払出制御基板37に
送出される。なお、ステップS247において、書込ポ
インタと読出ポインタとの差によってデータがあるか否
か確認することができるが、リングバッファ内の未処理
のデータ個数を示すカウンタを設け、カウント値によっ
てデータがあるか否か確認するようにしてもよい。
As described above, when the payout control command for instructing the number of prize balls is output from the game control means to the payout control board 37, the address setting of the command transmission table regarding the number of prize balls and the setting of the transmission buffer are performed. Is done. Then, by the command setting process, the payout control command is sent to the payout control board 37 based on the command transmission table regarding the number of prize balls and the setting contents of the transmission buffer. In step S247, it is possible to confirm whether or not there is data by the difference between the write pointer and the read pointer. However, a counter indicating the number of unprocessed data in the ring buffer is provided, and the data is present according to the count value. You may confirm whether or not.

【0212】そして、総賞球数格納バッファの内容が0
でない場合、すなわち、まだ賞球残がある場合には、C
PU56は、賞球払出中フラグをオンする(ステップS
252,S253)。
Then, the content of the total prize ball number storage buffer is 0.
If not, that is, if there is still a prize ball left, C
The PU 56 turns on the prize ball payout flag (step S
252, S253).

【0213】また、CPU56は、賞球払出中フラグが
オンしているときには(ステップS254)、球払出装
置97から実際に払い出された賞球個数を監視して総賞
球数格納バッファの格納値を減算する賞球個数減算処理
を行う(ステップS255)。なお、賞球払出中フラグ
がオンからオフに変化したときには、ランプ制御基板3
5に対して、賞球ランプ51の点灯を指示するランプ制
御コマンドが送出される。
When the prize ball payout flag is on (step S254), the CPU 56 monitors the number of prize balls actually paid out from the ball payout device 97 and stores it in the total prize ball number storage buffer. The number of prize balls subtraction processing for subtracting the value is performed (step S255). When the prize-ball paying-out flag changes from on to off, the lamp control board 3
5, a lamp control command for instructing lighting of the prize ball lamp 51 is transmitted.

【0214】なお、払出制御手段は、払出停止状態指定
コマンドを受信すると、賞球としての球払出と球貸しと
しての球払出とをともに停止させる。また、払出可能状
態指定コマンドを受信すると、賞球としての球払出と球
貸しとしての球払出とをともに可能な状態とする。しか
し、遊技制御手段から払出制御手段に対して、賞球とし
ての球払出を停止または再開させる払出制御コマンド
と、球貸しとしての球払出を停止または再開させる払出
制御コマンドとを、別の制御コマンドとして送信するよ
うにしてもよい。
Upon receipt of the payout stop state designation command, the payout control means stops both the ball payout as a prize ball and the ball payout as a ball lend. When the payable state designation command is received, both the ball payout as a prize ball and the ball payout as a ball lend are made possible. However, from the game control means to the payout control means, a payout control command for stopping or restarting ball payout as a prize ball and a payout control command for stopping or restarting ball payout as a ball lending are different control commands. You may make it transmit as.

【0215】また、この実施の形態では、払出停止中で
あっても(ステップS201,S206)、ステップS
221〜S251の処理が実行される。すなわち、遊技
制御手段は、払出停止状態であっても、賞球個数を指示
するための払出制御コマンドを送出することができる。
すなわち、賞球個数を指示するためのコマンドが、払出
停止状態であっても払出制御手段に伝達され、払出停止
状態が解除されたときに、早めに賞球払出を開始するこ
とができる。また、遊技制御手段において、払出停止状
態における入賞にもとづく賞球個数を記憶するための大
きな記憶領域は必要とされない。
Further, in this embodiment, even when the payout is stopped (steps S201 and S206), the step S
The processing of 221 to S251 is executed. That is, the game control means can send a payout control command for instructing the number of prize balls even in the payout stopped state.
That is, the command for instructing the number of prize balls is transmitted to the payout control means even in the payout stop state, and when the payout stop state is released, the prize ball payout can be started earlier. Further, the game control means does not require a large storage area for storing the number of prize balls based on the winning in the payout stop state.

【0216】さらに、この実施の形態では、遊技媒体の
払出状況とは無関係に、ステップS221〜S251の
処理が実行される。すなわち、遊技制御手段は、前回ま
でに指定した賞球個数の払い出しが完了しているか否か
に関わらず、新たな賞球個数を指示するための払出制御
コマンドを送信することができる。よって、遊技制御手
段の払い出しに関する処理負担を軽減させることができ
るとともに、賞球の払出処理を迅速に行うことができ
る。
Furthermore, in this embodiment, the processing of steps S221 to S251 is executed regardless of the payout status of the game medium. That is, the game control means can send a payout control command for instructing a new prize ball number, regardless of whether or not the specified number of prize balls has been paid out up to the previous time. Therefore, it is possible to reduce the processing load related to the payout of the game control means, and to quickly perform the prize ball payout processing.

【0217】次に、遊技制御手段から各電気部品制御手
段に対する制御コマンドの送出方式について説明してお
く。遊技制御手段から他の電気部品制御基板(サブ基
板)に制御コマンドを出力しようとするときに、コマン
ド送信テーブルの先頭アドレスの設定が行われる。図3
2(A)は、コマンド送信テーブルの一構成例を示す説
明図である。1つのコマンド送信テーブルは3バイトで
構成され、1バイト目にはINTデータが設定される。
また、2バイト目のコマンドデータ1には、制御コマン
ドの1バイト目のMODEデータが設定される。そし
て、3バイト目のコマンドデータ2には、制御コマンド
の2バイト目のEXTデータが設定される。
Next, a method of sending a control command from the game control means to each electric component control means will be described. When the control command is to be output from the game control means to another electric component control board (sub board), the start address of the command transmission table is set. Figure 3
FIG. 2A is an explanatory diagram showing a configuration example of a command transmission table. One command transmission table is composed of 3 bytes, and INT data is set in the 1st byte.
The MODE data of the first byte of the control command is set in the command data 1 of the second byte. Then, in the command data 2 of the third byte, the EXT data of the second byte of the control command is set.

【0218】なお、EXTデータそのものがコマンドデ
ータ2の領域に設定されてもよいが、コマンドデータ2
には、EXTデータが格納されているテーブルのアドレ
スを指定するためのデータが設定されるようにしてもよ
い。例えば、コマンドデータ2のビット7(ワークエリ
ア参照ビット)が0であれば、コマンドデータ2にEX
Tデータそのものが設定されていることを示す。そのよ
うなEXTデータはビット7が0であるデータである。
この実施の形態では、ワークエリア参照ビットが1であ
れば、EXTデータとして、送信バッファの内容を使用
することを示す。なお、ワークエリア参照ビットが1で
あれば、他の7ビットが、EXTデータが格納されてい
るテーブルのアドレスを指定するためのオフセットであ
ることを示すように構成することもできる。
The EXT data itself may be set in the area of the command data 2, but the command data 2
May be set with data for designating the address of the table in which the EXT data is stored. For example, if bit 7 (work area reference bit) of command data 2 is 0, command data 2 is EX
Indicates that the T data itself is set. Such EXT data is data in which bit 7 is 0.
In this embodiment, if the work area reference bit is 1, it indicates that the content of the transmission buffer is used as the EXT data. If the work area reference bit is 1, the other 7 bits can be configured to indicate that the other 7 bits are an offset for designating the address of the table in which the EXT data is stored.

【0219】図32(B)INTデータの一構成例を示
す説明図である。INTデータにおけるビット0は、払
出制御基板37に払出制御コマンドを送出すべきか否か
を示す。ビット0が「1」であるならば、払出制御コマ
ンドを送出すべきことを示す。従って、CPU56は、
例えば賞球処理(メイン処理のステップS32)におい
て、INTデータに「01(H)」を設定する。また、
INTデータにおけるビット1は、図柄出制御基板80
に表示制御コマンドを送出すべきか否かを示す。ビット
1が「1」であるならば、表示制御コマンドを送出すべ
きことを示す。従って、CPU56は、例えば特別図柄
コマンド制御処理(メイン処理のステップS28)にお
いて、INTデータに「02(H)」を設定する。
FIG. 32B is an explanatory diagram showing a structural example of INT data. Bit 0 in the INT data indicates whether or not the payout control command should be sent to the payout control board 37. If bit 0 is "1", it indicates that the payout control command should be sent. Therefore, the CPU 56
For example, in the prize ball process (step S32 of the main process), "01 (H)" is set in the INT data. Also,
Bit 1 in the INT data is the design control board 80.
Indicates whether or not the display control command should be sent. If bit 1 is "1", it indicates that the display control command should be sent. Therefore, the CPU 56 sets "02 (H)" to the INT data in the special symbol command control process (step S28 of the main process), for example.

【0220】INTデータのビット2,3は、それぞ
れ、ランプ制御コマンド、音制御コマンドを送出すべき
か否かを示すビットであり、CPU56は、それらのコ
マンドを送出すべきタイミングになったら、特別図柄プ
ロセス処理等で、ポインタが指しているコマンド送信テ
ーブルに、INTデータ、コマンドデータ1およびコマ
ンドデータ2を設定する。それらのコマンドを送出する
ときには、INTデータの該当ビットが「1」に設定さ
れ、コマンドデータ1およびコマンドデータ2にMOD
EデータおよびEXTデータが設定される。
Bits 2 and 3 of the INT data are bits indicating whether or not to send the lamp control command and the sound control command, respectively, and the CPU 56 outputs a special command at the timing to send these commands. In the symbol process processing or the like, INT data, command data 1 and command data 2 are set in the command transmission table pointed to by the pointer. When sending those commands, the corresponding bit of the INT data is set to "1", and the command data 1 and the command data 2 are MOD.
E data and EXT data are set.

【0221】この実施の形態では、払出制御コマンドに
ついて、図32(C)に示すように、リングバッファお
よび送信バッファが用意されている。そして、賞球処理
において、賞球払出条件が成立すると、成立した条件に
応じた賞球個数が順次リングバッファに設定される。ま
た、賞球個数に関する払出制御コマンド送出する際に、
リングバッファから1個のデータが送信バッファに転送
される。なお、図32(C)に示す例では、リングバッ
ファには、12個分の払出制御コマンドに相当するデー
タが格納可能になっている。すなわち、12個のバッフ
ァがある。なお、リングバッファにおけるバッファの数
は、賞球を発生させる入賞口の数に対応した数であれば
よい。同時入賞が発生した場合でも、それぞれの入賞に
もとづく払出制御コマンドのデータの格納が可能だから
である。
In this embodiment, for the payout control command, a ring buffer and a transmission buffer are prepared as shown in FIG. 32 (C). Then, in the prize ball processing, when the prize ball payout condition is satisfied, the number of prize balls according to the satisfied condition is sequentially set in the ring buffer. Also, when sending the payout control command regarding the number of prize balls,
One data is transferred from the ring buffer to the transmission buffer. In the example shown in FIG. 32C, the ring buffer can store data corresponding to 12 payout control commands. That is, there are 12 buffers. The number of buffers in the ring buffer may be any number corresponding to the number of winning openings for generating prize balls. This is because even if the simultaneous winnings occur, it is possible to store the payout control command data based on the respective winnings.

【0222】図33は、主基板31から他の電気部品制
御基板に送出される制御コマンドのコマンド形態の一例
を示す説明図である。この実施の形態では、制御コマン
ドは2バイト構成であり、1バイト目はMODE(コマ
ンドの分類)を表し、2バイト目はEXT(コマンドの
種類)を表す。MODEデータの先頭ビット(ビット
7)は必ず「1」とされ、EXTデータの先頭ビット
(ビット7)は必ず「0」とされる。このように、電気
部品制御基板へのコマンドとなる制御コマンドは、複数
のデータで構成され、先頭ビットによってそれぞれを区
別可能な態様になっている。なお、図33に示されたコ
マンド形態は一例であって他のコマンド形態を用いても
よい。例えば、1バイトや3バイト以上で構成される制
御コマンドを用いてもよい。また、図33では払出制御
基板37に送出される払出制御コマンドを例示するが、
他の電気部品制御基板に送出される制御コマンドも同一
構成である。
FIG. 33 is an explanatory diagram showing an example of the command form of the control command sent from the main board 31 to another electric component control board. In this embodiment, the control command has a 2-byte structure, the first byte represents MODE (command classification), and the second byte represents EXT (command type). The first bit (bit 7) of the MODE data is always "1", and the first bit (bit 7) of the EXT data is always "0". As described above, the control command, which is a command to the electric component control board, is composed of a plurality of data, and can be distinguished by the leading bit. The command form shown in FIG. 33 is an example, and other command forms may be used. For example, a control command composed of 1 byte or 3 bytes or more may be used. Further, although FIG. 33 illustrates the payout control command sent to the payout control board 37,
The control commands sent to the other electric component control boards have the same configuration.

【0223】図34は、各電気部品制御手段に対する制
御コマンドを構成する8ビットの制御信号CD0〜CD
7とINT信号との関係を示すタイミング図である。図
34に示すように、MODEまたはEXTのデータが出
力ポート(出力ポート1〜出力ポート4のうちのいずれ
か)に出力されてから、Aで示される期間が経過する
と、CPU56は、データ出力を示す信号であるINT
信号をハイレベル(オンデータ)にする。また、そこか
らBで示される期間が経過するとINT信号をローレベ
ル(オフデータ)にする。さらに、次に送出すべきデー
タがある場合には、すなわち、MODEデータ送出後で
は、Cで示される期間をおいてから2バイト目のデータ
を出力ポートに送出する。2バイト目のデータに関し
て、A,Bの期間は、1バイト目の場合と同様である。
このように、取込信号はMODEおよびEXTのデータ
のそれぞれについて出力される。
FIG. 34 is a diagram showing 8-bit control signals CD0 to CD forming a control command for each electric component control means.
7 is a timing diagram showing the relationship between 7 and the INT signal. As shown in FIG. 34, when the period indicated by A elapses after the MODE or EXT data is output to the output port (any one of the output ports 1 to 4), the CPU 56 outputs the data. INT which is a signal
Set the signal to high level (on data). When the period indicated by B elapses, the INT signal is set to low level (off data). Furthermore, if there is data to be sent next, that is, after sending the MODE data, the data of the second byte is sent to the output port after a period indicated by C. Regarding the data of the second byte, the periods A and B are the same as the case of the first byte.
In this way, the capture signal is output for each of MODE and EXT data.

【0224】Aの期間は、CPU56が、コマンドの送
出準備の期間すなわちバッファに送出コマンドを設定す
る処理に要する期間であるとともに、制御信号線におけ
るデータの安定化のための期間である。すなわち、制御
信号線において制御信号CD0〜CD7が出力された
後、所定期間(Aの期間:オフ出力期間の一部)経過後
に、取込信号としてのINT信号が出力される。また、
Bの期間(オン出力期間)は、INT信号安定化のため
の期間である。そして、Cの期間(オフ出力期間の一
部)は、電気部品制御手段が確実にデータを取り込める
ように設定されている期間である。B,Cの期間では、
信号線上のデータは変化しない。すなわち、B,Cの期
間が経過するまでデータ出力が維持される。
The period A is a period during which the CPU 56 prepares to send a command, that is, a period required to set a send command in the buffer, and is a period for stabilizing the data on the control signal line. That is, after the control signals CD0 to CD7 are output on the control signal line, an INT signal as a capture signal is output after a predetermined period (period of A: part of the off output period) has elapsed. Also,
The period B (ON output period) is a period for stabilizing the INT signal. The period C (a part of the OFF output period) is a period in which the electric component control unit is set so that the data can be reliably fetched. In the period of B and C,
The data on the signal line does not change. That is, the data output is maintained until the B and C periods elapse.

【0225】この実施の形態では、払出制御基板37へ
の払出制御コマンド、図柄制御基板80への表示制御コ
マンド、ランプ制御基板35へのランプ制御コマンドお
よび音制御基板70への音制御コマンドは、同一のコマ
ンド送信処理ルーチン(共通モジュール)を用いて送出
される。そこで、B,Cの期間すなわち1バイト目に関
するINT信号が立ち上がってから2バイト目のデータ
が送出開始されるまでの期間は、コマンド受信処理に最
も時間がかかる電気部品制御手段における受信処理時間
よりも長くなるように設定される。
In this embodiment, the payout control command to the payout control board 37, the display control command to the symbol control board 80, the lamp control command to the lamp control board 35, and the sound control command to the sound control board 70 are It is transmitted using the same command transmission processing routine (common module). Therefore, the period of B and C, that is, the period from the rise of the INT signal for the first byte to the start of the transmission of the data of the second byte, is longer than the reception processing time in the electric component control means that takes the longest time for the command reception processing. Is also set to be long.

【0226】なお、各電気部品制御手段は、INT信号
が立ち上がったことを検知して、例えば割込処理によっ
て1バイトのデータの取り込み処理を開始する。
Each electric component control means detects that the INT signal has risen, and starts the processing of fetching 1-byte data by, for example, interrupt processing.

【0227】B,Cの期間が、コマンド受信処理に最も
時間がかかる電気部品制御手段における受信処理時間よ
りも長いので、遊技制御手段が、各電気部品制御手段に
対するコマンド送出処理を共通モジュールで制御して
も、いずれの電気部品制御手段でも遊技制御手段からの
制御コマンドを確実に受信することができる。
Since the periods B and C are longer than the reception processing time in the electric component control means which takes the longest time for the command reception processing, the game control means controls the command transmission processing to each electric component control means by the common module. However, any electric component control means can surely receive the control command from the game control means.

【0228】CPU56は、INT信号出力処理を実行
した後に所定期間が経過すると次のデータを送出できる
状態になるが、その所定期間(B,Cの期間)は、IN
T信号出力処理の前にデータを送出してからINT信号
を出力開始するまでの期間(Aの期間)よりも長い。上
述したように、Aの期間はコマンドの信号線における安
定化期間であり、B,Cの期間は受信側がデータを取り
込むのに要する時間を確保するための期間である。従っ
て、Aの期間をB,Cの期間よりも短くすることによっ
て、受信側の電気部品制御手段が確実にコマンドを受信
できる状態になるという効果を得ることができるととも
に、1つのコマンドの送出完了に要する期間が短縮され
る効果もある。
The CPU 56 is ready to send the next data after the lapse of a predetermined period after executing the INT signal output process, but the predetermined period (the period of B and C) is IN
It is longer than the period (period A) from the transmission of data before the T signal output process to the start of output of the INT signal. As described above, the period A is the stabilization period in the command signal line, and the periods B and C are the periods for ensuring the time required for the receiving side to take in the data. Therefore, by making the period A shorter than the periods B and C, it is possible to obtain the effect that the electric component control means on the receiving side can surely receive the command, and the transmission of one command is completed. There is also an effect that the period required for is shortened.

【0229】図35は、払出制御コマンドの内容の一例
を示す説明図である。本例では、払出制御を実行するた
めに、複数種類の払出制御コマンドが用いられる。図3
5に示された例において、MODE=FF(H),EX
T=00(H)のコマンドFF00(H)は、払出が可
能であることを指示する払出制御コマンド(払出可能状
態指定コマンド)である。MODE=FF(H),EX
T=01(H)のコマンドFF01(H)は、払出を停
止すべき状態であることを指示する払出制御コマンド
(払出停止状態指定コマンド)である。また、MODE
=F0(H)のコマンドF0XX(H)は、賞球個数を
指定する払出制御コマンド(払出個数指定コマンド)で
ある。EXTである「XX」が払出個数を示す。
FIG. 35 is an explanatory diagram showing an example of the contents of the payout control command. In this example, a plurality of types of payout control commands are used to execute the payout control. Figure 3
In the example shown in FIG. 5, MODE = FF (H), EX
The command FF00 (H) of T = 00 (H) is a payout control command (payable state designation command) for instructing that the payout is possible. MODE = FF (H), EX
The command FF01 (H) of T = 01 (H) is a payout control command (payout stop state designation command) for instructing that the payout should be stopped. Also, MODE
The command F0XX (H) of = F0 (H) is a payout control command (payout number designating command) for designating the number of prize balls. “XX”, which is EXT, indicates the number of payouts.

【0230】払出制御手段は、主基板31の遊技制御手
段からFF01(H)の払出制御コマンドを受信すると
賞球払出および球貸しを停止する状態となり、FF00
(H)の払出制御コマンドを受信すると賞球払出および
球貸しができる状態になる。また、賞球個数を指定する
払出制御コマンドを受信すると、受信したコマンドで指
定された個数に応じた賞球払出制御を行う。
When the payout control means receives the payout control command of FF01 (H) from the game control means of the main board 31, the payout ball payout and the ball lending are stopped, and FF00.
When the payout control command (H) is received, prize balls can be paid out and balls can be lent. Further, when the payout control command for designating the number of prize balls is received, the prize ball payout control according to the number designated by the received command is performed.

【0231】なお、払出制御コマンドは、払出制御手段
が認識可能に1回だけ送出される。認識可能とは、この
例では、INT信号のレベルが変化することであり、認
識可能に1回だけ送出されるとは、この例では、払出制
御信号の1バイト目および2バイト目のそれぞれに応じ
てINT信号が1回だけパルス状(矩形波状)に出力さ
れることである。
The payout control command is sent only once so that the payout control means can recognize it. In this example, “recognizable” means that the level of the INT signal changes, and “recognitionally being sent only once” means that in this example, the payout control signal is sent to each of the first byte and the second byte. Accordingly, the INT signal is output only once in a pulse shape (rectangular wave shape).

【0232】各電気部品制御基板への制御コマンドを、
対応する出力ポート(出力ポート1〜4)に出力する際
に、出力ポート0のビット0〜3のうちのいずれかのビ
ットが所定期間「1」(ハイレベル)になるのである
が、INTデータにおけるビット配列と出力ポート0に
おけるビット配列とは対応している。従って、各電気部
品制御基板に制御コマンドを送出する際に、INTデー
タにもとづいて、容易にINT信号の出力を行うことが
できる。
A control command for each electric component control board is
When outputting to the corresponding output port (output ports 1 to 4), one of the bits 0 to 3 of the output port 0 becomes "1" (high level) for a predetermined period. And the bit array in the output port 0 correspond to each other. Therefore, when the control command is sent to each electric component control board, the INT signal can be easily output based on the INT data.

【0233】図36は、コマンドセット処理(ステップ
S205,S209,S251)の処理例を示すフロー
チャートである。コマンドセット処理は、コマンド出力
処理とINT信号出力処理とを含む処理である。コマン
ドセット処理において、CPU56は、まず、コマンド
送信テーブルのアドレス(送信信号指示手段としてのポ
インタの内容)をスタック等に退避する(ステップS3
31)。そして、ポインタが指していたコマンド送信テ
ーブルのINTデータを引数1にロードする(ステップ
S332)。引数1は、後述するコマンド送信処理に対
する入力情報になる。また、コマンド送信テーブルを指
すアドレスを+1する(ステップS333)。従って、
コマンド送信テーブルを指すアドレスは、コマンドデー
タ1のアドレスに一致する。
FIG. 36 is a flow chart showing a processing example of the command set processing (steps S205, S209, S251). The command set process is a process including a command output process and an INT signal output process. In the command setting process, the CPU 56 first saves the address of the command transmission table (contents of the pointer as the transmission signal instruction means) to the stack or the like (step S3).
31). Then, the INT data of the command transmission table pointed to by the pointer is loaded into the argument 1 (step S332). The argument 1 is input information for the command transmission process described later. Further, the address indicating the command transmission table is incremented by 1 (step S333). Therefore,
The address indicating the command transmission table matches the address of the command data 1.

【0234】そこで、CPU56は、コマンドデータ1
を読み出して引数2に設定する(ステップS334)。
引数2も、後述するコマンド送信処理に対する入力情報
になる。そして、コマンド送信処理ルーチンをコールす
る(ステップS335)。
Therefore, the CPU 56 sends the command data 1
Is read out and is set to the argument 2 (step S334).
The argument 2 is also input information for the command transmission process described later. Then, the command transmission processing routine is called (step S335).

【0235】図37は、コマンド送信処理ルーチンを示
すフローチャートである。コマンド送信処理ルーチンに
おいて、CPU56は、まず、引数1に設定されている
データすなわちINTデータを、比較値として決められ
ているワークエリアに設定する(ステップS351)。
次いで、送信回数=4を、処理数として決められている
ワークエリアに設定する(ステップS352)。そし
て、払出制御信号を出力するためのポート1のアドレス
をIOアドレスにセットする(ステップS353)。こ
の実施の形態では、ポート1のアドレスは、払出制御信
号を出力するための出力ポートのアドレスである。ま
た、ポート2〜4のアドレスが、表示制御信号、ランプ
制御信号、音声制御信号を出力するための出力ポートの
アドレスである。
FIG. 37 is a flow chart showing the command transmission processing routine. In the command transmission processing routine, the CPU 56 first sets the data set in the argument 1, that is, the INT data, in the work area determined as the comparison value (step S351).
Next, the number of transmissions = 4 is set in the work area determined as the number of processes (step S352). Then, the address of the port 1 for outputting the payout control signal is set to the IO address (step S353). In this embodiment, the address of port 1 is the address of the output port for outputting the payout control signal. Further, the addresses of the ports 2 to 4 are the addresses of the output ports for outputting the display control signal, the lamp control signal and the voice control signal.

【0236】次に、CPU56は、比較値を1ビット右
にシフトする(ステップS354)。シフト処理の結
果、キャリービットが1になったか否か確認する(ステ
ップS355)。キャリービットが1になったというこ
とは、INTデータにおける最も右側のビットが「1」
であったことを意味する。この実施の形態では4回のシ
フト処理が行われるのであるが、例えば、払出制御コマ
ンドを送出すべきことが指定されているときには、最初
のシフト処理でキャリービットが1になる。
Next, the CPU 56 shifts the comparison value right by 1 bit (step S354). As a result of the shift processing, it is confirmed whether the carry bit has become 1 (step S355). The carry bit has become 1, which means that the rightmost bit in the INT data is "1".
It means that it was. In this embodiment, the shift process is performed four times. For example, when it is specified that the payout control command should be sent, the carry bit becomes 1 in the first shift process.

【0237】キャリービットが1になった場合には、引
数2に設定されているデータ、この場合にはコマンドデ
ータ1(すなわちMODEデータ)を、IOアドレスと
して設定されているアドレスに出力する(ステップS3
56)。最初のシフト処理が行われたときにはIOアド
レスにポート1のアドレスが設定されているので、その
ときに、払出制御コマンドのMODEデータがポート1
に出力される。
When the carry bit becomes 1, the data set in the argument 2, in this case, the command data 1 (ie, MODE data) is output to the address set as the IO address (step S3
56). When the first shift processing is performed, the address of port 1 is set as the IO address, so the MODE data of the payout control command is set to port 1 at that time.
Is output to.

【0238】次いで、CPU56は、IOアドレスを1
加算するとともに(ステップS357)、処理数を1減
算する(ステップS358)。加算前にポート1を示し
ていた場合には、IOアドレスに対する加算処理によっ
て、IOアドレスにはポート2のアドレスが設定され
る。ポート2は、表示制御コマンドを出力するためのポ
ートである。そして、CPU56は、処理数の値を確認
し(ステップS359)、値が0になっていなければ、
ステップS354に戻る。ステップS354で再度シフ
ト処理が行われる。
Next, the CPU 56 sets the IO address to 1
While adding (step S357), 1 is subtracted from the processing number (step S358). When the port 1 is shown before the addition, the address of the port 2 is set to the IO address by the addition process for the IO address. Port 2 is a port for outputting a display control command. Then, the CPU 56 confirms the value of the number of processes (step S359), and if the value is not 0,
It returns to step S354. The shift process is performed again in step S354.

【0239】2回目のシフト処理ではINTデータにお
けるビット1の値が押し出され、ビット1の値に応じて
キャリーフラグが「1」または「0」になる。従って、
表示制御コマンドを送出すべきことが指定されているか
否かのチェックが行われる。同様に、3回目および4回
目のシフト処理によって、ランプ制御コマンドおよび音
制御コマンドを送出すべきことが指定されているか否か
のチェックが行われる。このように、それぞれのシフト
処理が行われるときに、IOアドレスには、シフト処理
によってチェックされる制御コマンド(払出制御コマン
ド、表示制御コマンド、ランプ制御コマンド、音制御コ
マンド)に対応したIOアドレスが設定されている。
In the second shift processing, the value of bit 1 in the INT data is pushed out, and the carry flag becomes "1" or "0" depending on the value of bit 1. Therefore,
A check is made to see if it is specified that a display control command should be sent. Similarly, by the third and fourth shift processes, it is checked whether or not the lamp control command and the sound control command should be sent. In this way, when each shift process is performed, the IO address has the IO address corresponding to the control command (payout control command, display control command, lamp control command, sound control command) checked by the shift process. It is set.

【0240】よって、キャリーフラグが「1」になった
ときには、対応する出力ポート(ポート1〜ポート4)
に制御コマンドが送出される。すなわち、1つの共通モ
ジュールで、各電気部品制御手段に対する制御コマンド
の送出処理を行うことができる。
Therefore, when the carry flag becomes "1", the corresponding output port (port 1 to port 4)
A control command is sent to. That is, one common module can perform a process of sending a control command to each electric component control means.

【0241】また、このように、シフト処理のみによっ
てどの電気部品制御手段に対して制御コマンドを出力す
べきかが判定されるので、いずれの電気部品制御手段に
対して制御コマンドを出力すべきか判定する処理が簡略
化されている。
Further, in this way, since it is determined to which electric component control means the control command should be output only by the shift processing, it is determined to which electric component control means the control command should be output. Processing has been simplified.

【0242】次に、CPU56は、シフト処理開始前の
INTデータが格納されている引数1の内容を読み出し
(ステップS360)、読み出したデータをポート0に
出力する(ステップS361)。この実施の形態では、
ポート0のアドレスは、各制御信号についてのINT信
号を出力するためのポートであり、ポート0のビット0
〜4が、それぞれ、払出制御INT信号、表示制御IN
T信号、ランプ制御INT信号、音制御INT信号を出
力するためのポートである。INTデータでは、ステッ
プS351〜S359の処理で出力された制御コマンド
(払出制御コマンド、表示制御コマンド、ランプ制御コ
マンド、音制御コマンド)に応じたINT信号の出力ビ
ットに対応したビットが「1」になっている。従って、
ポート1〜ポート4のいずれかに出力された制御コマン
ド(払出制御コマンド、表示制御コマンド、ランプ制御
コマンド、音制御コマンド)に対応したINT信号がハ
イレベルになる。
Next, the CPU 56 reads the contents of the argument 1 in which the INT data before the shift processing is started (step S360), and outputs the read data to the port 0 (step S361). In this embodiment,
The address of port 0 is a port for outputting the INT signal for each control signal, and bit 0 of port 0
4 to 4 are the payout control INT signal and the display control IN, respectively.
It is a port for outputting a T signal, a lamp control INT signal, and a sound control INT signal. In the INT data, the bit corresponding to the output bit of the INT signal corresponding to the control command (payout control command, display control command, lamp control command, sound control command) output in the processing of steps S351 to S359 becomes “1”. Has become. Therefore,
The INT signal corresponding to the control command (payout control command, display control command, lamp control command, sound control command) output to any of the ports 1 to 4 becomes high level.

【0243】次いで、CPU56は、ウェイトカウンタ
に所定値を設定し(ステップS362)、その値が0に
なるまで1ずつ減算する(ステップS363,S36
4)。この処理は、図34に示されたBの期間を設定す
るための処理である。ウェイトカウンタの値が0になる
と、クリアデータ(00)を設定して(ステップS36
5)、そのデータをポート0に出力する(ステップS3
66)。よって、INT信号はローレベルになる。そし
て、ウェイトカウンタに所定値を設定し(ステップS3
62)、その値が0になるまで1ずつ減算する(ステッ
プS368,S369)。この処理は、図34に示され
たCの期間を設定するための処理である。ただし、実際
のCの期間は、ステップS367〜S369で作成され
る時間に、その後の処理時間(この時点でMODEデー
タが出力されている場合にはEXTデータを出力するま
でに要する制御にかかる時間)が加算された期間とな
る。このように、Cの期間が設定されることによって、
連続してコマンドが送出される場合であっても、一のコ
マンドの出力完了後、次にコマンドの送出が開始される
までに所定期間がおかれることになり、コマンドを受信
する電気部品制御手段の側で、容易に連続するコマンド
の区切りを識別することができ、各コマンドは確実に受
信される。
Next, the CPU 56 sets a predetermined value in the wait counter (step S362), and decrements by 1 until the value becomes 0 (steps S363, S36).
4). This process is a process for setting the period B shown in FIG. When the value of the wait counter becomes 0, clear data (00) is set (step S36).
5) output the data to port 0 (step S3)
66). Therefore, the INT signal becomes low level. Then, a predetermined value is set in the wait counter (step S3
62), and subtracts 1 by 1 until the value becomes 0 (steps S368 and S369). This process is a process for setting the period C shown in FIG. However, the actual period of C is the time that is generated in steps S367 to S369 and the subsequent processing time (if MODE data is output at this time, the time required for control until the EXT data is output). ) Is the period added. By setting the period of C in this way,
Even when the commands are continuously sent, a predetermined period of time elapses after the output of one command is completed and before the sending of the next command is started, and the electric component control means for receiving the command. On the side of, the command delimiters can be easily identified and each command is reliably received.

【0244】従って、ステップS367でウェイトカウ
ンタに設定される値は、Cの期間が、制御コマンド受信
対象となる全ての電気部品制御手段が確実にコマンド受
信処理を行うのに十分な期間になるような値である。ま
た、ウェイトカウンタに設定される値は、Cの期間が、
ステップS357〜S359の処理に要する時間(Aの
期間に相当)よりも長くなるような値である。なお、A
の期間をより長くしたい場合には、Aの期間を作成する
ためのウェイト処理(例えば、ウェイトカウンタに所定
値を設定し、ウェイトカウンタの値が0になるまで減算
を行う処理)を行う。
Therefore, the value set in the wait counter in step S367 is set so that the period C is a period sufficient for surely performing the command receiving process by all the electric component control means which are the control command receiving targets. Value. The value set in the wait counter is
The value is longer than the time (corresponding to the period A) required for the processes of steps S357 to S359. In addition, A
If it is desired to lengthen the period A, a wait process for creating the period A (for example, a process of setting a predetermined value in the wait counter and performing subtraction until the value of the wait counter becomes 0) is performed.

【0245】以上のようにして、制御コマンドの1バイ
ト目のMODEデータが送出される。そこで、CPU5
6は、図36に示すステップS336で、コマンド送信
テーブルを指す値を1加算する。従って、3バイト目の
コマンドデータ2の領域が指定される。CPU56は、
指し示されたコマンドデータ2の内容を引数2にロード
する(ステップS337)。また、コマンドデータ2の
ビット7(ワークエリア参照ビット)の値が「0」であ
るか否か確認する(ステップS339)。0でなけれ
ば、送信バッファの内容を引数2にロードする(ステッ
プS341)。なお、ワークエリア参照ビットの値が
「1」であるときに拡張データを使用するように構成さ
れている場合には、コマンド拡張データアドレステーブ
ルの先頭アドレスをポインタにセットし、そのポインタ
にコマンドデータ2のビット6〜ビット0の値を加算し
てアドレスを算出する。そして、そのアドレスが指すエ
リアのデータを引数2にロードする。
As described above, the 1st byte MODE data of the control command is transmitted. Therefore, CPU5
In step S336 shown in FIG. 36, 6 adds 1 to the value indicating the command transmission table. Therefore, the area of the command data 2 in the third byte is designated. The CPU 56
The contents of the indicated command data 2 are loaded into the argument 2 (step S337). Further, it is confirmed whether or not the value of bit 7 (work area reference bit) of the command data 2 is "0" (step S339). If it is not 0, the contents of the transmission buffer are loaded into the argument 2 (step S341). If the extended data is used when the value of the work area reference bit is "1", the start address of the command extended data address table is set in the pointer and the command data is set in the pointer. The address is calculated by adding the values of bit 6 to bit 0 of 2. Then, the data of the area pointed to by the address is loaded into the argument 2.

【0246】送信バッファには賞球個数を特定可能なデ
ータが設定されているので、引数2にそのデータが設定
される。なお、ワークエリア参照ビットの値が「1」で
あるときに拡張データを使用するように構成されている
場合には、コマンド拡張データアドレステーブルには、
電気部品制御手段に送出されうるEXTデータが順次設
定される。よって、ワークエリア参照ビットの値が
「1」であれば、コマンドデータ2の内容に応じたコマ
ンド拡張データアドレステーブル内のEXTデータが引
数2にロードされる。
Since data capable of specifying the number of prize balls is set in the transmission buffer, the data is set in the argument 2. If the extended data is used when the value of the work area reference bit is “1”, the command extended data address table contains
EXT data that can be sent to the electric component control means is sequentially set. Therefore, if the value of the work area reference bit is “1”, the EXT data in the command extension data address table according to the content of the command data 2 is loaded into the argument 2.

【0247】次に、CPU56は、コマンド送信処理ル
ーチンをコールする(ステップS342)。従って、M
ODEデータの送出の場合と同様のタイミングでEXT
データが送出される。
Next, the CPU 56 calls the command transmission processing routine (step S342). Therefore, M
EXT at the same timing as when transmitting ODE data
Data is sent out.

【0248】以上のようにして、2バイト構成の制御コ
マンド(払出制御コマンド、表示制御コマンド、ランプ
制御コマンド、音制御コマンド)が、対応する電気部品
制御手段に送信される。電気部品制御手段ではINT信
号の立ち上がりを検出すると制御コマンドの取り込み処
理を開始するのであるが、いずれの電気部品制御手段に
ついても、取り込み処理が完了する前に遊技制御手段か
らの新たな信号が信号線に出力されることはない。すな
わち、各電気部品制御手段において、確実なコマンド受
信処理が行われる。なお、各電気部品制御手段は、IN
T信号の立ち下がりで制御コマンドの取り込み処理を開
始してもよい。また、INT信号の極性を図34に示さ
れた場合と逆にしてもよい。
As described above, the control command (payout control command, display control command, lamp control command, sound control command) having a 2-byte structure is transmitted to the corresponding electric component control means. The electric component control means starts the control command fetching process when the rising edge of the INT signal is detected, but for any electric component control means, a new signal from the game control means is signaled before the fetching process is completed. It is never printed on the line. That is, a reliable command reception process is performed in each electric component control means. In addition, each electric component control means is
The control command acquisition process may be started at the falling edge of the T signal. The polarity of the INT signal may be reversed from that shown in FIG.

【0249】また、この実施の形態では、賞球処理にお
いて、賞球払出条件が成立すると賞球個数を特定可能な
データが、同時に複数のデータを格納可能なリングバッ
ファに格納され、賞球個数を指定する払出制御コマンド
を送出する際に、読出ポインタが指しているリングバッ
ファの領域のデータが送信バッファに転送される。従っ
て、同時に複数の賞球払出条件の成立があっても、それ
らの条件成立にもとづく賞球個数を特定可能なデータが
リングバッファに保存されるので、各条件成立にもとづ
くコマンド出力処理は問題なく実行される。
Further, in this embodiment, in the prize ball processing, when the prize ball payout condition is satisfied, data capable of specifying the number of prize balls is stored in the ring buffer capable of storing a plurality of data at the same time. When the payout control command designating the is sent, the data in the area of the ring buffer pointed by the read pointer is transferred to the transmission buffer. Therefore, even if a plurality of prize ball payout conditions are satisfied at the same time, the data capable of specifying the number of prize balls based on the satisfaction of those conditions is stored in the ring buffer, so that the command output process based on the satisfaction of each condition does not pose a problem. To be executed.

【0250】さらに、この実施の形態では、1回の賞球
処理内で払出停止状態指定コマンドまたは払出可能状態
指定コマンドと賞球個数を示すコマンドとの双方を送出
することができる。すなわち、2ms毎に起動される1
回の制御期間内において、複数のコマンドを送出するこ
とができる。また、この実施の形態では、各制御手段へ
の制御コマンド(表示制御コマンド、ランプ制御コマン
ド、音制御コマンド、払出制御コマンド)毎に、それぞ
れ複数のリングバッファが用意されているので、例え
ば、表示制御コマンド、ランプ制御コマンドおよび音制
御コマンドのリングバッファに制御コマンドを特定可能
なデータが設定されている場合には、1回のコマンド制
御処理で複数の表示制御コマンド、ランプ制御コマンド
および音制御コマンドを送出するように構成することも
可能である。すなわち、同時に(遊技制御処理すなわち
2msタイマ割込処理の起動周期での意味)、複数の制
御コマンドを送出することができる。遊技演出の進行
上、それらの制御コマンドの送出タイミングは同時に発
生するので、このように構成されているのは便利であ
る。ただし、払出制御コマンドは、遊技演出の進行とは
無関係に発生するので、一般には、表示制御コマンド、
ランプ制御コマンドおよび音制御コマンドと同時に送出
されることはない。
Furthermore, in this embodiment, both the payout stop state designating command or the payable state designating command and the command indicating the number of prize balls can be sent in one award ball process. That is, 1 is activated every 2 ms
Multiple commands can be sent within one control period. Further, in this embodiment, since a plurality of ring buffers are prepared for each control command (display control command, lamp control command, sound control command, payout control command) to each control means, for example, When data capable of specifying the control command is set in the ring buffer of the control command, the lamp control command, and the sound control command, a plurality of display control commands, lamp control commands, and sound control commands can be performed by one command control process. Can also be configured to deliver. That is, a plurality of control commands can be sent at the same time (meaning in the activation cycle of the game control process, that is, the 2 ms timer interrupt process). Since the transmission timings of those control commands occur at the same time in the progress of the game production, it is convenient to have such a configuration. However, since the payout control command is generated regardless of the progress of the game effect, in general, the display control command,
It is not sent at the same time as the lamp control command and the sound control command.

【0251】図38は、賞球個数減算処理の一例を示す
フローチャートである。賞球個数減算処理において、C
PU56は、まず、総賞球数格納バッファの格納値をロ
ードする(ステップS381)。そして、格納値が0で
あるか否か確認する(ステップS382)。0であれば
処理を終了する。
FIG. 38 is a flow chart showing an example of the award ball number subtracting process. In the process of subtracting the number of prize balls, C
The PU 56 first loads the value stored in the total prize ball number storage buffer (step S381). Then, it is confirmed whether the stored value is 0 (step S382). If it is 0, the process ends.

【0252】0でなければ、賞球カウントスイッチ用の
スイッチタイマをロードし(ステップS383)、ロー
ド値とオン判定値(この場合は「2」)とを比較する
(ステップS384)。一致したら(ステップS38
5)、賞球カウントスイッチ301Aが確かにオンした
として、すなわち、確かに1個の遊技球が球払出装置9
7から払い出されたとして、総賞球数格納バッファの格
納値を1減算する(ステップS386)。
If it is not 0, the switch timer for the prize ball count switch is loaded (step S383), and the loaded value is compared with the ON determination value (in this case, "2") (step S384). If they match (step S38)
5) Assuming that the prize ball count switch 301A is turned on, that is, one game ball is certainly one ball payout device 9
The value stored in the total prize ball number storage buffer is decremented by 1 assuming that the payout is made from 7 (step S386).

【0253】また、賞球情報カウンタの値を+1する
(ステップS387)。そして、賞球情報カウンタの値
が10以上であれば(ステップS388)、賞球情報出
力カウンタの値を+1するとともに(ステップS38
9)、賞球情報カウンタの値を−10する(ステップS
390)。なお、賞球情報出力カウンタの値は、図18
に示された遊技制御処理における情報出力処理(ステッ
プS30)で参照され、その値が1以上であれば、賞球
信号(出力ポート5のビット7:図13参照)として1
パルスが出力される。よって、この実施の形態では、1
0個の遊技球が賞球として払い出される度に、1つの賞
球信号が遊技機外部に出力される。
Also, the value of the prize ball information counter is incremented by 1 (step S387). When the value of the prize ball information counter is 10 or more (step S388), the value of the prize ball information output counter is incremented by 1 (step S38).
9), the value of the prize ball information counter is decremented by 10 (step S
390). The value of the prize ball information output counter is shown in FIG.
Referred to in the information output process (step S30) in the game control process shown in, and if the value is 1 or more, it is set as 1 as a prize ball signal (bit 7 of output port 5: see FIG. 13).
A pulse is output. Therefore, in this embodiment, 1
Each time 0 game balls are paid out as a prize ball, one prize ball signal is output to the outside of the gaming machine.

【0254】そして、総賞球数格納バッファの格納値が
0になったら(ステップS391)、賞球払出中フラグ
をクリアし(ステップS392)、賞球残数がないこと
を報知するために、ランプ制御コマンド用のコマンド送
信テーブルに賞球ランプ51の消灯を示すコマンドデー
タを設定した後(ステップS393)、ランプ制御コマ
ンドの送出処理を実行する(ステップS394)。
Then, when the value stored in the total prize ball number storage buffer becomes 0 (step S391), the prize ball in-progress flag is cleared (step S392) to notify that there is no remaining prize ball number. After the command data indicating that the prize ball lamp 51 is turned off is set in the command transmission table for the lamp control command (step S393), the lamp control command sending process is executed (step S394).

【0255】次に、遊技制御手段以外の電気部品制御手
段の例として、払出制御手段について説明する。
Next, the payout control means will be described as an example of the electric component control means other than the game control means.

【0256】図39は、払出制御用CPU371周りの
一構成例を示すブロック図である。図39に示すよう
に、電源基板910の電源監視回路(電源監視手段)か
らの電源断信号が、バッファ回路960を介して払出制
御用CPU371のマスク不能割込端子(XNMI端
子)に接続されている。従って、払出制御用CPU37
1は、マスク不能割込処理によって遊技機への電力供給
停止の発生を確認することができる。
FIG. 39 is a block diagram showing an example of the configuration around the payout control CPU 371. As shown in FIG. 39, the power-off signal from the power-supply monitoring circuit (power-supply monitoring means) of the power supply board 910 is connected to the non-maskable interrupt terminal (XNMI terminal) of the payout control CPU 371 via the buffer circuit 960. There is. Therefore, the payout control CPU 37
1, it is possible to confirm the occurrence of the stop of power supply to the gaming machine by the non-maskable interrupt process.

【0257】払出制御用CPU371のCLK/TRG
2端子には、主基板31からのINT信号が接続されて
いる。CLK/TRG2端子にクロック信号が入力され
ると、払出制御用CPU371に内蔵されているタイマ
カウンタレジスタCLK/TRG2の値がダウンカウン
トされる。そして、レジスタ値が0になると割込が発生
する。従って、タイマカウンタレジスタCLK/TRG
2の初期値を「1」に設定しておけば、INT信号の入
力に応じて割込が発生することになる。
CLK / TRG of payout control CPU 371
The INT signal from the main board 31 is connected to the two terminals. When a clock signal is input to the CLK / TRG2 terminal, the value of the timer counter register CLK / TRG2 built in the payout control CPU 371 is down-counted. Then, when the register value becomes 0, an interrupt occurs. Therefore, the timer counter register CLK / TRG
If the initial value of 2 is set to "1", an interrupt will occur in response to the input of the INT signal.

【0258】払出制御基板37には、システムリセット
回路975も搭載されているが、この実施の形態では、
システムリセット回路975におけるリセットIC97
6は、電源投入時に、外付けのコンデンサに容量で決ま
る所定時間だけ出力をローレベルとし、所定時間が経過
すると出力をハイレベルにする。また、リセットIC9
76は、VSLの電源電圧を監視して電圧値が所定値(例
えば+9V)以下になると出力をローレベルにする。従
って、遊技機への電力供給停止時には、リセットIC9
76からの信号がローレベルになることによって払出制
御用CPU371がシステムリセットされる。
A system reset circuit 975 is also mounted on the payout control board 37, but in this embodiment,
Reset IC 97 in system reset circuit 975
When the power is turned on, 6 sets the output to the low level for a predetermined time determined by the capacity of the external capacitor, and sets the output to the high level after the predetermined time has elapsed. Also, reset IC9
Reference numeral 76 monitors the power supply voltage of VSL and sets the output to a low level when the voltage value becomes a predetermined value (for example, + 9V) or less. Therefore, when the power supply to the gaming machine is stopped, the reset IC 9
When the signal from 76 goes low, the payout control CPU 371 is system reset.

【0259】リセットIC976が電力供給停止を検知
するための所定値は、通常時の電圧より低いが、払出制
御用CPU371が暫くの間動作しうる程度の電圧であ
る。また、リセットIC976が、払出制御用CPU3
71が必要とする電圧(この例では+5V)よりも高い
電圧を監視するように構成されているので、払出制御用
CPU371が必要とする電圧に対して監視範囲を広げ
ることができる。従って、より精密な監視を行うことが
できる。なお、システムリセット回路975は、第2の
電源監視手段に相当する。
The predetermined value for the reset IC 976 to detect the stop of power supply is lower than the normal voltage, but is a voltage at which the payout control CPU 371 can operate for a while. Further, the reset IC 976 is used for the payout control CPU 3
Since it is configured to monitor a voltage higher than the voltage required by 71 (+5 V in this example), the monitoring range can be expanded with respect to the voltage required by the payout control CPU 371. Therefore, more precise monitoring can be performed. The system reset circuit 975 corresponds to the second power supply monitoring means.

【0260】+5V電源から電力が供給されていない
間、払出制御用CPU371の内蔵RAMの少なくとも
一部は、電源基板から供給されるバックアップ電源がバ
ックアップ端子に接続されることによってバックアップ
され、停電等の遊技機に対する電力供給停止が発生して
も内容は保存される。そして、+5V電源が復旧する
と、システムリセット回路975からリセット信号が発
せられるので、払出制御用CPU371は、通常の動作
状態に復帰する。そのとき、必要なデータがバックアッ
プされているので、停電等からの復旧時には停電発生時
の払出制御状態に復旧させることができる。
While the power is not being supplied from the + 5V power supply, at least a part of the built-in RAM of the payout control CPU 371 is backed up by connecting the backup power supply supplied from the power supply board to the backup terminal to prevent a power failure or the like. Contents are saved even when power supply to the gaming machine is stopped. Then, when the + 5V power supply is restored, a reset signal is issued from the system reset circuit 975, so that the payout control CPU 371 returns to a normal operation state. At that time, since necessary data is backed up, at the time of recovery from a power failure or the like, the payout control state at the time of power failure can be restored.

【0261】なお、図39に示された構成では、システ
ムリセット回路975は、電源投入時に、コンデンサの
容量で決まる期間のローレベルを出力し、その後ハイレ
ベルを出力する。すなわち、リセット解除タイミングは
1回だけである。しかし、図11に示された主基板31
の場合と同様に、複数回のリセット解除タイミングが発
生するような回路構成を用いてもよい。
In the structure shown in FIG. 39, system reset circuit 975 outputs a low level for a period determined by the capacitance of the capacitor when the power is turned on, and then outputs a high level. That is, the reset release timing is only once. However, the main substrate 31 shown in FIG.
Similarly to the case of 1, the circuit configuration in which the reset release timing occurs a plurality of times may be used.

【0262】図40は、この実施の形態における出力ポ
ートの割り当てを示す説明図である。図40に示すよう
に、出力ポートC(アドレス00H)は、払出モータ2
89に出力される駆動信号等の出力ポートである。ま
た、出力ポートD(アドレス01H)は、7セグメント
LEDであるエラー表示LED374に出力される表示
制御信号の出力ポートである。そして、出力ポートE
(アドレス02H)は、振分ソレノイド310に出力さ
れる駆動信号、およびカードユニット50に対するEX
S信号とPRDY信号とを出力するための出力ポートで
ある。
FIG. 40 is an explanatory diagram showing output port allocation in this embodiment. As shown in FIG. 40, the output port C (address 00H) is connected to the payout motor 2
89 is an output port for driving signals and the like output to 89. Further, the output port D (address 01H) is an output port of a display control signal output to the error display LED 374 which is a 7-segment LED. And output port E
(Address 02H) is the drive signal output to the distribution solenoid 310 and the EX to the card unit 50.
It is an output port for outputting the S signal and the PRDY signal.

【0263】図41は、この実施の形態における入力ポ
ートのビット割り当てを示す説明図である。図41に示
すように、入力ポートA(アドレス06H)は、主基板
31から送出された払出制御コマンドの8ビットの払出
制御信号を取り込むための入力ポートである。また、入
力ポートB(アドレス07H)のビット0〜1には、そ
れぞれ、賞球カウントスイッチ301Aおよび球貸しカ
ウントスイッチ301Bの検出信号が入力される。ビッ
ト2〜5には、カードユニット50からのBRDY信
号、BRQ信号、VL信号およびクリアスイッチ921
の検出信号が入力される。
FIG. 41 is an explanatory diagram showing bit allocation of input ports in this embodiment. As shown in FIG. 41, the input port A (address 06H) is an input port for fetching the 8-bit payout control signal of the payout control command sent from the main board 31. Further, the detection signals of the prize ball count switch 301A and the ball lending count switch 301B are input to bits 0 to 1 of the input port B (address 07H), respectively. Bits 2 to 5 include a BRDY signal, a BRQ signal, a VL signal, and a clear switch 921 from the card unit 50.
Detection signal is input.

【0264】図42は、払出制御手段(払出制御用CP
U371およびROM,RAM等の周辺回路)のメイン
処理を示すフローチャートである。メイン処理では、払
出制御用CPU371は、まず、必要な初期設定を行
う。すなわち、払出制御用CPU371は、まず、割込
禁止に設定する(ステップS701)。次に、割込モー
ドを割込モード2に設定し(ステップS702)、スタ
ックポインタにスタックポインタ指定アドレスを設定す
る(ステップS703)。また、払出制御用CPU37
1は、内蔵デバイスレジスタの初期化を行い(ステップ
S704)、CTCおよびPIOの初期化(ステップS
705)を行った後に、RAMをアクセス可能状態に設
定する(ステップS706)。
FIG. 42 shows payout control means (CP for payout control).
7 is a flowchart showing a main process of U371 and peripheral circuits such as ROM and RAM. In the main process, the payout control CPU 371 first performs necessary initial settings. That is, the payout control CPU 371 first sets the interruption prohibition (step S701). Next, the interrupt mode is set to the interrupt mode 2 (step S702), and the stack pointer designated address is set to the stack pointer (step S703). Further, the payout control CPU 37
1 initializes built-in device registers (step S704), and initializes CTC and PIO (step S704).
After performing 705), the RAM is set to the accessible state (step S706).

【0265】この実施の形態では、内蔵CTCのうちの
一つのチャネルがタイマモードで使用される。従って、
ステップS704の内蔵デバイスレジスタの設定処理お
よびステップS705の処理において、使用するチャネ
ルをタイマモードに設定するためのレジスタ設定、割込
発生を許可するためのレジスタ設定および割込ベクタを
設定するためのレジスタ設定が行われる。そして、その
チャネルによる割込がタイマ割込として用いられる。タ
イマ割込を例えば2ms毎に発生させたい場合は、初期
値として2msに相当する値が所定のレジスタ(時間定
数レジスタ)に設定される。
In this embodiment, one channel of the built-in CTC is used in the timer mode. Therefore,
In the built-in device register setting processing of step S704 and the processing of step S705, register setting for setting the channel to be used in timer mode, register setting for permitting interrupt generation, and register for setting interrupt vector Settings are made. Then, the interrupt by that channel is used as a timer interrupt. When it is desired to generate a timer interrupt every 2 ms, for example, a value corresponding to 2 ms is set in a predetermined register (time constant register) as an initial value.

【0266】なお、タイマモードに設定されたチャネル
(この実施の形態ではチャネル3)に設定される割込ベ
クタは、タイマ割込処理の先頭アドレスに相当するもの
である。具体的は、Iレジスタに設定された値と割込ベ
クタとでタイマ割込処理の先頭アドレスが特定される。
タイマ割込処理では、払出制御処理が実行される。
The interrupt vector set in the channel set in the timer mode (channel 3 in this embodiment) corresponds to the start address of the timer interrupt process. Specifically, the start address of the timer interrupt process is specified by the value set in the I register and the interrupt vector.
In the timer interrupt process, payout control process is executed.

【0267】また、内蔵CTCのうちの他の一つのチャ
ネル(この実施の形態ではチャネル2)が、遊技制御手
段からの払出制御コマンド受信のための割込発生用のチ
ャネルとして用いられ、そのチャネルがカウンタモード
で使用される。従って、ステップS704の内蔵デバイ
スレジスタの設定処理およびステップS705の処理に
おいて、使用するチャネルをカウンタモードに設定する
ためのレジスタ設定、割込発生を許可するためのレジス
タ設定および割込ベクタを設定するためのレジスタ設定
が行われる。
Also, another one of the built-in CTCs (channel 2 in this embodiment) is used as an interrupt generation channel for receiving a payout control command from the game control means, and that channel is used. Is used in counter mode. Therefore, in the built-in device register setting processing of step S704 and the processing of step S705, in order to set the register setting for setting the channel to be used in the counter mode, the register setting for permitting interrupt generation, and the interrupt vector. Register setting is performed.

【0268】カウンタモードに設定されたチャネル(チ
ャネル2)に設定される割込ベクタは、後述するコマン
ド受信割込処理の先頭アドレスに相当するものである。
具体的は、Iレジスタに設定された値と割込ベクタとで
コマンド受信割込処理の先頭アドレスが特定される。
The interrupt vector set in the channel (channel 2) set in the counter mode corresponds to the start address of the command reception interrupt process described later.
Specifically, the start address of the command reception interrupt process is specified by the value set in the I register and the interrupt vector.

【0269】この実施の形態では、払出制御用CPU3
71でも割込モード2が設定される。従って、内蔵CT
Cのカウントアップにもとづく割込処理を使用すること
ができる。また、CTCが送出した割込ベクタに応じた
割込処理開始アドレスを設定することができる。
In this embodiment, the payout control CPU 3
Also in 71, the interrupt mode 2 is set. Therefore, the built-in CT
An interrupt process based on C count up can be used. Further, it is possible to set the interrupt processing start address according to the interrupt vector sent by the CTC.

【0270】CTCのチャネル2(CH2)のカウント
アップにもとづく割込は、上述したタイマカウンタレジ
スタCLK/TRG2の値が「0」になったときに発生
する割込である。従って、例えばステップS705にお
いて、特定レジスタとしてのタイマカウンタレジスタC
LK/TRG2に初期値「1」が設定される。さらに、
CLK/TRG2端子に入力される信号の立ち上がりま
たは立ち下がりで特定レジスタとしてのタイマカウンタ
レジスタCLK/TRG2のカウント値が−1されるの
であるが、所定の特定レジスタの設定によって、立ち上
がり/立ち下がりの選択を行うことができる。この実施
の形態では、CLK/TRG2端子に入力される信号の
立ち上がりで、タイマカウンタレジスタCLK/TRG
2のカウント値が−1されるような設定が行われる。
The interrupt based on the count-up of the channel 2 (CH2) of the CTC is an interrupt that occurs when the value of the above-mentioned timer counter register CLK / TRG2 becomes "0". Therefore, for example, in step S705, the timer counter register C as the specific register
An initial value "1" is set in LK / TRG2. further,
The count value of the timer counter register CLK / TRG2 as a specific register is decremented by -1 at the rising or falling of the signal input to the CLK / TRG2 terminal. You can make a choice. In this embodiment, the timer counter register CLK / TRG is output at the rising edge of the signal input to the CLK / TRG2 terminal.
The count value of 2 is set to -1.

【0271】また、CTCのチャネル3(CH3)のカ
ウントアップにもとづく割込は、CPUの内部クロック
(システムクロック)をカウントダウンしてレジスタ値
が「0」になったら発生する割込であり、後述する2m
sタイマ割込として用いられる。具体的には、CPU3
71の動作クロックを分周したクロックがCTCに与え
られ、クロックの入力によってレジスタの値が減算さ
れ、レジスタの値が0になるとタイマ割込が発生する。
例えば、CH3のレジスタ値はシステムクロックの1/
256周期で減算される。分周したクロックにもとづい
て減算が行われるので、レジスタの初期値は大きくなら
ない。ステップS705において、CH3のレジスタに
は、初期値として2msに相当する値が設定される。
The CTC channel 3 (CH3) count-up interrupt is an interrupt that occurs when the internal clock (system clock) of the CPU is counted down and the register value becomes "0". 2m
s Used as a timer interrupt. Specifically, CPU3
A clock obtained by dividing the operation clock of 71 is given to the CTC, the value of the register is subtracted by the input of the clock, and when the value of the register becomes 0, a timer interrupt is generated.
For example, the register value of CH3 is 1 / of the system clock.
It is subtracted in 256 cycles. Since the subtraction is performed based on the divided clock, the initial value of the register does not increase. In step S705, a value corresponding to 2 ms is set as an initial value in the CH3 register.

【0272】CTCのCH2のカウントアップにもとづ
く割込は、CH3のカウントアップにもとづく割込より
も優先順位が高い。従って、同時にカウントアップが生
じた場合に、CH2のカウントアップにもとづく割込、
すなわち、コマンド受信割込処理の実行契機となる割込
の方が優先される。
The interrupt based on the count-up of CH2 of CTC has a higher priority than the interrupt based on the count-up of CH3. Therefore, when count-ups occur at the same time, an interrupt based on the count-up of CH2,
That is, the interrupt that triggers the execution of the command reception interrupt process is prioritized.

【0273】次いで、払出制御用CPU371は、入力
ポートB(図41参照)を介して入力されるクリアスイ
ッチ921の出力信号の状態を1回だけ確認する(ステ
ップS707)。その確認においてオンを検出した場合
には、払出制御用CPU371は、通常の初期化処理を
実行する(ステップS711〜ステップS713)。ク
リアスイッチ921がオンである場合(押下されている
場合)には、ローレベルのクリアスイッチ信号が出力さ
れている。なお、入力ポート372では、クリアスイッ
チ信号のオン状態はハイレベルである。また、払出制御
手段においては、ステップS707の判定を行わなくて
もよい。
Next, the payout control CPU 371 confirms the state of the output signal of the clear switch 921 input through the input port B (see FIG. 41) only once (step S707). When ON is detected in the confirmation, the payout control CPU 371 executes a normal initialization process (steps S711 to S713). When the clear switch 921 is on (when pressed), a low level clear switch signal is output. In the input port 372, the on state of the clear switch signal is high level. Further, the payout control means does not have to make the determination in step S707.

【0274】なお、払出制御用CPU371も、主基板
31のCPU56と同様に、スイッチの検出信号のオン
判定を行う場合には、例えば、オン状態が少なくとも2
ms(2ms毎に起動される処理の1回目の処理におけ
る検出直前に検出信号がオンした場合)継続しないとス
イッチオンとは見なさないが、クリアスイッチ921の
オン検出の場合には、1回のオン判定でオン/オフが判
定される。すなわち、操作手段としてのクリアスイッチ
921が所定の操作状態であるか否かを払出制御用CP
U371が判定するための初期化要求検出判定期間は、
遊技媒体検出手段としての賞球カウントスイッチ等が遊
技媒体を検出したことを判定するための遊技媒体検出判
定期間とは異なる期間とされている。
Note that, like the CPU 56 of the main substrate 31, the payout control CPU 371 also determines that the ON state is at least 2 when the ON detection of the switch detection signal is performed.
ms (when the detection signal is turned on immediately before the detection in the first processing of the processing started every 2 ms) does not continue, it is not considered to be switch-on, but when the clear switch 921 is detected to be on, ON / OFF is determined by the ON determination. That is, it is determined whether or not the clear switch 921 as the operating means is in a predetermined operating state.
The initialization request detection determination period for U371 to determine is
The period is different from the game medium detection determination period for determining that the prize ball count switch or the like as the game medium detecting means has detected the game medium.

【0275】クリアスイッチ921がオンの状態でない
場合には、払出制御用CPU371は、払出制御用のバ
ックアップRAM領域にバックアップデータが存在して
いるか否かの確認を行う(ステップS708)。例え
ば、主基板31のCPU56の処理と同様に、遊技機へ
の電力供給停止時にセットされるバックアップフラグが
セット状態になっているか否かによって、バックアップ
データが存在しているか否か確認する。バックアップフ
ラグがセット状態になっている場合には、バックアップ
データありと判断する。
If the clear switch 921 is not turned on, the payout control CPU 371 confirms whether or not backup data exists in the payout control backup RAM area (step S708). For example, similar to the processing of the CPU 56 of the main board 31, whether or not backup data exists is determined by whether or not the backup flag that is set when the power supply to the gaming machine is stopped is set. If the backup flag is set, it is determined that there is backup data.

【0276】バックアップありを確認したら、払出制御
用CPU371は、バックアップRAM領域のデータチ
ェック(この例ではパリティチェック)を行う。不測の
停電等の電力供給の停止が生じた後に復旧した場合に
は、バックアップRAM領域のデータは保存されていた
はずであるから、チェック結果は正常になる。チェック
結果が正常でない場合には、内部状態を電力供給の停止
時の状態に戻すことができないので、不足の停電等から
の復旧時ではなく電源投入時に実行される初期化処理を
実行する。
When it is confirmed that there is a backup, the payout control CPU 371 performs a data check (parity check in this example) of the backup RAM area. When the power is restored after the power supply is stopped due to an unexpected power failure, the data in the backup RAM area should have been saved, so the check result is normal. If the check result is not normal, it is not possible to return the internal state to the state at the time of stopping the power supply, so the initialization process that is executed when the power is turned on is executed instead of when the power is restored from an insufficient power failure.

【0277】チェック結果が正常であれば(ステップS
709)、払出制御用CPU371は、内部状態を電力
供給停止時の状態に戻すための払出状態復旧処理を行う
(ステップS710)。そして、バックアップRAM領
域に保存されていたPC(プログラムカウンタ)の指す
アドレスに復帰する。
If the check result is normal (step S
709), the payout control CPU 371 performs a payout state recovery process for returning the internal state to the state when the power supply was stopped (step S710). Then, it returns to the address pointed to by the PC (program counter) stored in the backup RAM area.

【0278】初期化処理では、払出制御用CPU371
は、まず、RAMクリア処理を行う(ステップS71
1)。そして、2ms毎に定期的にタイマ割込がかかる
ように払出制御用CPU371に設けられているCTC
のレジスタの設定が行われる(ステップS712)。す
なわち、初期値として2msに相当する値が所定のレジ
スタ(時間定数レジスタ)に設定される。そして、初期
設定処理のステップS701において割込禁止とされて
いるので、初期化処理を終える前に割込が許可される
(ステップS713)。
In the initialization processing, the payout control CPU 371
First performs a RAM clear process (step S71).
1). Then, the CTC provided in the payout control CPU 371 so that a timer interrupt is periodically applied every 2 ms.
The register is set (step S712). That is, a value corresponding to 2 ms as an initial value is set in a predetermined register (time constant register). Since the interrupt is prohibited in step S701 of the initialization process, the interrupt is permitted before the initialization process is completed (step S713).

【0279】この実施の形態では、払出制御用CPU3
71の内蔵CTCが繰り返しタイマ割込を発生するよう
に設定される。この実施の形態では、繰り返し周期は2
msに設定される。そして、タイマ割込が発生すると、
図43に示すように、タイマ割込があったことを示すタ
イマ割込フラグがセットされる(ステップS792)。
そして、メイン処理において、タイマ割込フラグがセッ
トされたことが検出されたら(ステップS714)、タ
イマ割込フラグがリセットされるとともに(ステップS
751)、払出制御処理(ステップS751〜S76
0)が実行される。
In this embodiment, the payout control CPU 3
71 built-in CTCs are set to repeatedly generate timer interrupts. In this embodiment, the repetition period is 2
Set to ms. And when a timer interrupt occurs,
As shown in FIG. 43, a timer interrupt flag indicating that there is a timer interrupt is set (step S792).
Then, in the main process, when it is detected that the timer interrupt flag is set (step S714), the timer interrupt flag is reset (step S714).
751), payout control process (steps S751 to S76)
0) is executed.

【0280】なお、タイマ割込では、図43に示すよう
に、最初に割込許可状態に設定される(ステップS79
1)。よって、タイマ割込処理中では割込許可状態にな
り、INT信号の入力にもとづく払出制御コマンド受信
処理を優先して実行することができる。
In the timer interruption, as shown in FIG. 43, the interruption permission state is first set (step S79).
1). Therefore, during the timer interrupt process, the interrupt enable state is set, and the payout control command reception process based on the input of the INT signal can be preferentially executed.

【0281】払出制御処理において、払出制御用CPU
371は、まず、入力ポート372bに入力される賞球
カウントスイッチ301Aや球貸しカウントスイッチ3
01B等のスイッチがオンしたか否かを判定する(スイ
ッチ処理:ステップS752)。
In the payout control process, the payout control CPU
371: First, the prize ball count switch 301A and the ball lending count switch 3 input to the input port 372b.
It is determined whether a switch such as 01B is turned on (switch process: step S752).

【0282】次に、払出制御用CPU371は、主基板
31から払出停止状態指定コマンドを受信していたら払
出停止状態に設定し、払出可能状態指定コマンドを受信
していたら払出停止状態の解除を行う(払出停止状態設
定処理:ステップS753)。また、受信した払出制御
コマンドを解析し、解析結果に応じた処理を実行する
(コマンド解析実行処理:ステップS754)。さら
に、プリペイドカードユニット制御処理を行う(ステッ
プS755)。
Next, the payout control CPU 371 sets the payout stop state when the payout stop state designation command is received from the main board 31, and releases the payout stop state when the payable state designation command is received. (Payment stop state setting process: step S753). Further, it analyzes the received payout control command and executes processing according to the analysis result (command analysis execution processing: step S754). Further, prepaid card unit control processing is performed (step S755).

【0283】次いで、払出制御用CPU371は、球貸
し要求に応じて貸し球を払い出す制御を行う(ステップ
S756)。このとき、払出制御用CPU371は、振
分ソレノイド310によって球振分部材311を球貸し
側に設定する。
Next, the payout control CPU 371 controls the payout of the lent balls in response to the sphere lending request (step S756). At this time, the payout control CPU 371 sets the ball distribution member 311 to the ball lending side by the distribution solenoid 310.

【0284】さらに、払出制御用CPU371は、総合
個数記憶に格納された個数の賞球を払い出す賞球制御処
理を行う(ステップS757)。このとき、払出制御用
CPU371は、振分ソレノイド310によって球振分
部材311を賞球側に設定する。そして、出力ポート3
72cおよび中継基板72を介して球払出装置97の払
出機構部分における払出モータ289に対して駆動信号
を出力し、所定の回転数分払出モータ289を回転させ
る払出モータ制御処理を行う(ステップS758)。
Further, the payout control CPU 371 performs a prize ball control process for paying out the number of prize balls stored in the total number memory (step S757). At this time, the payout control CPU 371 sets the ball distribution member 311 to the prize ball side by the distribution solenoid 310. And output port 3
A drive signal is output to the payout motor 289 in the payout mechanism portion of the ball payout device 97 via the 72c and the relay board 72 to perform payout motor control processing for rotating the payout motor 289 for a predetermined number of rotations (step S758). .

【0285】なお、この実施の形態では、払出モータ2
89としてステッピングモータが用いられ、それらを制
御するために1−2相励磁方式が用いられる。従って、
具体的には、払出モータ制御処理において、8種類の励
磁パターンデータが繰り返し払出モータ289に出力さ
れる。また、この実施の形態では、各励磁パターンデー
タが4msずつ出力される。
In this embodiment, the payout motor 2
A stepping motor is used as 89, and a 1-2 phase excitation method is used to control them. Therefore,
Specifically, in the payout motor control process, eight types of excitation pattern data are repeatedly output to the payout motor 289. Further, in this embodiment, each excitation pattern data is output by 4 ms.

【0286】次いで、エラー検出処理が行われ、その結
果に応じてエラー表示LED374に所定の表示を行う
(エラー処理:ステップS759)。また、遊技機外部
に出力される球貸し個数信号を出力する処理等を行う
(出力処理:ステップS760)。
Next, error detection processing is performed, and predetermined display is performed on the error display LED 374 according to the result (error processing: step S759). In addition, processing such as outputting a ball lending number signal output to the outside of the gaming machine is performed (output processing: step S760).

【0287】なお、図40に示す出力ポートCは、払出
制御処理における払出モータ制御処理(ステップS75
8)でアクセスされる。また、出力ポートDは、払出制
御処理におけるエラー処理(ステップS759)でアク
セスされる。そして、出力ポートEは、払出制御処理に
おける球貸し制御処理(ステップS756)および賞球
制御処理(ステップS757)でアクセスされる。
The output port C shown in FIG. 40 has the payout motor control process (step S75) in the payout control process.
Accessed in 8). Further, the output port D is accessed by the error processing in the payout control processing (step S759). Then, the output port E is accessed in the ball lending control process (step S756) and the prize ball control process (step S757) in the payout control process.

【0288】図44は、ステップS710の払出状態復
旧処理の一例を示すフローチャートである。払出状態復
旧処理において、払出制御用CPU371は、まず、ス
タックポインタの復帰処理を行う(ステップS73
1)。スタックポインタの値は、後述する電力供給停止
時処理において、所定のRAMエリア(電源バックアッ
プされている)に退避している。よって、ステップS7
31では、そのRAMエリアの値をスタックポインタに
設定することによって復帰させる。なお、復帰されたス
タックポインタが指す領域(すなわちスタック領域)に
は、電力供給が停止したときのレジスタ値やプログラム
カウンタ(PC)の値が退避している。
FIG. 44 is a flow chart showing an example of the payout state recovery process of step S710. In the payout state recovery process, the payout control CPU 371 first performs a stack pointer return process (step S73).
1). The value of the stack pointer is saved in a predetermined RAM area (power source is backed up) in the power supply stoppage process described later. Therefore, step S7
At 31, the value in the RAM area is set in the stack pointer to restore the value. In the area pointed to by the restored stack pointer (that is, the stack area), the register value and the value of the program counter (PC) when the power supply is stopped are saved.

【0289】次いで、払出制御用CPU371は、バッ
クアップフラグをクリアする(ステップS732)すな
わち、前回の電力供給停止時に所定の記憶保護処理が実
行されたことを示すフラグをリセットする。また、スタ
ック領域から各種レジスタの退避値を読み出して、各種
レジスタに設定する(ステップS733)。すなわち、
レジスタ復元処理を行う。そして、パリティフラグがオ
ンしていない場合には割込許可状態にする(ステップS
734,S735)。最後に、AFレジスタ(アキュミ
ュレータとフラグのレジスタ)をスタック領域から復元
する(ステップS736)。
Next, the payout control CPU 371 clears the backup flag (step S732), that is, resets the flag indicating that the predetermined storage protection process has been executed at the previous power supply stop. Further, the saved values of various registers are read from the stack area and set in the various registers (step S733). That is,
Performs register restoration processing. Then, when the parity flag is not turned on, the interrupt enable state is set (step S
734, S735). Finally, the AF register (accumulator and flag register) is restored from the stack area (step S736).

【0290】そして、RET命令が実行されるのである
が、ここでのリターン先は、払出状態復旧処理をコール
した部分ではない。なぜなら、ステップS731におい
てスタックポインタの復帰処理がなされ、復帰されたス
タックポインタが指すスタック領域に格納されているリ
ターンアドレスは、プログラムにおける前回の電力供給
停止時にNMIが発生したアドレスである。従って、ス
テップS736の次のRET命令によって、電力供給停
止時にNMIが発生したアドレスにリターンする。すな
わち、スタック領域に退避されていたアドレスにもとづ
いて復旧制御が実行されている。
Then, the RET instruction is executed, but the return destination here is not the portion that called the payout state recovery processing. This is because the stack pointer restoration process is performed in step S731, and the return address stored in the stack area pointed to by the restored stack pointer is the address where the NMI occurred at the time of the previous power supply stop in the program. Therefore, the next RET instruction in step S736 returns to the address where the NMI occurred when the power supply was stopped. That is, the recovery control is executed based on the address saved in the stack area.

【0291】図45〜図47は、電源基板910からの
電源断信号に応じて実行されるマスク不能割込処理(N
MI処理:電力供給停止時処理)の処理例を示すフロー
チャートである。この例では、NMIに応じて電力供給
停止時処理が実行されるが、電源断信号を払出制御用C
PU371のマスク可能端子に接続し、マスク可能割込
処理によって電力供給停止時処理を実行してもよい。ま
た、電源断信号を入力ポートに入力し、入力ポートのチ
ェック結果に応じて電力供給停止時処理を実行してもよ
い。
45 to 47 are non-maskable interrupt processing (N) executed in response to a power-off signal from the power supply board 910.
It is a flow chart which shows the example of processing of MI processing: processing at the time of power supply stop. In this example, the process at the time of stopping the power supply is executed according to the NMI, but a power-off signal is sent to the payout control C
You may connect to the maskable terminal of PU371 and may perform a power supply stop process by a maskable interrupt process. Alternatively, a power-off signal may be input to the input port, and the power supply stoppage process may be executed according to the check result of the input port.

【0292】マスク不能割込処理において、払出制御用
CPU371は、AFレジスタを所定のバックアップR
AM領域に退避する(ステップS801)。また、割込
フラグをパリティフラグにコピーする(ステップS80
2)。パリティフラグはバックアップRAM領域に形成
されている。また、BCレジスタ、DEレジスタ、HL
レジスタ、IXレジスタおよびスタックポインタをバッ
クアップRAM領域に退避する(ステップS804〜8
08)。なお、電源復旧時には、退避された内容にもと
づいてレジスタ内容が復元され、パリティフラグの内容
に応じて、割込許可状態/禁止状態の内部設定がなされ
る。
In the non-maskable interrupt process, the payout control CPU 371 sets the AF register to a predetermined backup R.
It is saved in the AM area (step S801). Also, the interrupt flag is copied to the parity flag (step S80).
2). The parity flag is formed in the backup RAM area. Also, BC register, DE register, HL
The registers, IX register and stack pointer are saved in the backup RAM area (steps S804-8).
08). When the power is restored, the register contents are restored based on the saved contents, and the interrupt enable / disable state is internally set according to the contents of the parity flag.

【0293】なお、本例では、払出モータ289とし
て、払出制御用CPU371からのパルス信号(駆動信
号)によって回転するステッピングモータが用いられて
いる。従って、払出モータ289に対するパルス信号の
出力が停止されることによって、球払出装置97の駆動
は停止する。
In this example, as the payout motor 289, a stepping motor which is rotated by a pulse signal (drive signal) from the payout control CPU 371 is used. Therefore, the driving of the ball payout device 97 is stopped by stopping the output of the pulse signal to the payout motor 289.

【0294】次いで、払出制御用CPU371は、クリ
アデータ(00)を適当なレジスタにセットし(ステッ
プS821)、処理数(この例では「2」)を別のレジ
スタにセットする(ステップS822)。また、出力ポ
ートCのアドレス(この例では「00H」)をIOポイ
ンタに設定する(ステップS823)。IOポインタと
して、さらに別のレジスタが用いられる。
Next, the payout control CPU 371 sets the clear data (00) in an appropriate register (step S821), and sets the number of processes (“2” in this example) in another register (step S822). Further, the address of the output port C (“00H” in this example) is set in the IO pointer (step S823). Another register is used as the IO pointer.

【0295】そして、IOポインタが指すアドレスにク
リアデータをセットするとともに(ステップS82
4)、IOポインタの値を1増やし(ステップS82
5)、処理数の値を1減算する(ステップS827)。
ステップS824〜S826の処理が、処理数の値が0
になるまで繰り返される。その結果、出力ポートCおよ
び出力ポートD(図40参照)にクリアデータが設定さ
れる。図40に示すように、この例では、「1」がオン
状態であり、クリアデータである「00」が各出力ポー
トにセットされるので、出力ポートCおよび出力ポート
Dの全てのポートがオフ状態になる。この例では、出力
ポートEのクリア処理は実行されないので、振分ソレノ
イド310の出力ポートはオフ状態とはされない。出力
ポートEにおける振分ソレノイド310の出力ポート以
外の出力ポートについて、クリア処理を行うようにして
もよい。
Then, the clear data is set to the address pointed to by the IO pointer (step S82).
4), increment the value of the IO pointer by 1 (step S82)
5), 1 is subtracted from the value of the number of processes (step S827).
In the processes of steps S824 to S826, the value of the number of processes is 0.
Is repeated until. As a result, clear data is set in the output port C and the output port D (see FIG. 40). As shown in FIG. 40, in this example, “1” is in the ON state and clear data “00” is set in each output port, so that all the output ports C and D are turned off. It becomes a state. In this example, since the output port E is not cleared, the output port of the distribution solenoid 310 is not turned off. Clear processing may be performed on output ports other than the output port of the distribution solenoid 310 in the output port E.

【0296】その後、この実施の形態では、所定期間、
払出検出手段としての賞球カウントスイッチ301A
(賞遊技媒体払出検出手段に相当)および球貸しカウン
トスイッチ301B(貸出遊技媒体払出検出手段に相
当)の検出信号をチェックする。そして、賞球カウント
スイッチ301Aがオンしたら総合個数記憶の内容を1
減らす。また、球貸しカウントスイッチ301Bがオン
したら貸し球個数記憶の内容を1減らす。
Then, in this embodiment,
Prize ball count switch 301A as payout detection means
(Corresponding to a prize game medium payout detecting means) and a ball lending count switch 301B (corresponding to a lending game medium payout detecting means) are checked. Then, when the prize ball count switch 301A is turned on, the content of the total number memory is set to 1
cut back. When the ball lending count switch 301B is turned on, the content of the number of lent balls is reduced by one.

【0297】なお、この実施の形態では、所定期間を計
測するために、所定期間計測用カウンタが用いられる。
所定期間計測用カウンタの値は、初期値mから、以下に
説明するスイッチ検出処理のループ(S763から始ま
ってS763に戻るループ)が1回実行される毎に−1
され、その値が0になると、所定期間が終了したとす
る。検出処理のループでは、例外はあるがほぼ一定の処
理が行われるので、ループの1周に要する時間のm倍の
時間が、ほぼ所定期間に相当する。
In this embodiment, a counter for measuring a predetermined period is used to measure the predetermined period.
The value of the counter for measuring the predetermined period is -1 from the initial value m every time the loop of the switch detection process (loop starting from S763 and returning to S763) described below is executed once.
Then, when the value becomes 0, it is assumed that the predetermined period has ended. Although there is an exception in the detection processing loop, substantially constant processing is performed, and therefore a time that is m times the time required for one round of the loop corresponds to a substantially predetermined period.

【0298】所定期間を計測するために、払出制御用C
PU371の内蔵タイマを用いてもよい。すなわち、ス
イッチ検出処理開始時に、内蔵タイマに所定値(所定期
間に相当)を設定しておく。そして、スイッチ検出処理
のループが1回実行される毎に、内蔵タイマのカウント
値をチェックする。そして、カウント値が0になった
ら、所定期間が終了したとする。内蔵タイマの値が0に
なったことを検出するために内蔵タイマによる割込を用
いることもできるが、この段階では制御内容(RAMに
格納されている各値など)を変化させないように、割込
を用いず、内蔵タイマのカウント値を読み出してチェッ
クするようなプログラム構成の方が好ましい。また、所
定期間は、遊技球が、球払出装置97から落下した時点
から、賞球カウントスイッチ301Aまたは球貸しカウ
ントスイッチ301Bに到達するまでの時間以上に設定
される。
C for payout control in order to measure a predetermined period
The built-in timer of PU371 may be used. That is, a predetermined value (corresponding to a predetermined period) is set in the built-in timer at the start of the switch detection process. Then, the count value of the built-in timer is checked every time the loop of the switch detection processing is executed once. Then, when the count value becomes 0, it is assumed that the predetermined period ends. An interrupt by the built-in timer can be used to detect that the value of the built-in timer has become 0. It is preferable to use a program configuration in which the count value of the built-in timer is read out and checked without using the program. In addition, the predetermined period is set to be equal to or longer than the time from when the game ball falls from the ball payout device 97 to when it reaches the prize ball count switch 301A or the ball lending count switch 301B.

【0299】少なくとも、スイッチ検出処理が実行され
る所定期間(遊技球が球払出装置97から落下した時点
から賞球カウントスイッチ301Aや球貸しカウントス
イッチ301Aに到達するまでの期間以上の期間。例え
ば、100[ms]〜150[ms]程度。)では、賞
球カウントスイッチ301Aおよび球貸しカウントスイ
ッチ301Bが遊技球を検出できる状態でなければなら
ない。そこで、この実施の形態では、図10に示された
ように、電源基板910におけるコンバータIC920
の入力側に比較的大容量の補助駆動電源としてのコンデ
ンサ923が接続されている。よって、遊技機に対する
電力供給停止時にも、ある程度の期間は+12V電源電
圧がスイッチ駆動可能な範囲に維持され、賞球カウント
スイッチ301Aおよび球貸しカウントスイッチ301
Bが動作可能になる。その期間が、上記の所定期間以上
になるように、コンデンサの容量が決定される。上記の
所定期間が長い程、あるいは上記の所定期間以上とされ
るスイッチ駆動可能な期間に余裕を持たせる程、より容
量の大きいコンデンサが必要になるため、上記の所定期
間は短く設定するとともに、スイッチ駆動可能な期間に
余裕を持たせすぎないようにすることが望ましい。
At least a predetermined period during which the switch detection process is executed (a period longer than the period from the time when the game ball falls from the ball payout device 97 to the prize ball count switch 301A or the ball lending count switch 301A. For example, In the range of 100 [ms] to 150 [ms].), The prize ball count switch 301A and the ball lending count switch 301B must be in a state capable of detecting a game ball. Therefore, in this embodiment, as shown in FIG. 10, converter IC 920 in power supply substrate 910 is used.
A capacitor 923 as an auxiliary drive power source having a relatively large capacity is connected to the input side of the. Therefore, even when the power supply to the gaming machine is stopped, the + 12V power supply voltage is maintained within a switchable range for a certain period of time, and the prize ball count switch 301A and the ball lend count switch 301.
B becomes operational. The capacitance of the capacitor is determined so that the period is equal to or longer than the above predetermined period. The longer the above predetermined period is, or the longer the switchable period that is longer than the above predetermined period is, the larger the capacity of the capacitor is required. It is desirable not to have too much margin in the switchable period.

【0300】なお、入力ポートおよび払出制御用CPU
371も、コンバータIC920で作成される+5V電
源で駆動されるので、電力供給停止時にも、比較的長い
期間動作可能になっている。
Input port and payout control CPU
Since the 371 is also driven by the + 5V power source created by the converter IC 920, it can be operated for a relatively long period even when the power supply is stopped.

【0301】さらに、この実施の形態では、賞球路と貸
し球路とを切り換えるために振分ソレノイド310が用
いられている。よって、図10に示されたコンデンサ9
24の容量は、少なくとも上記の所定期間の間、振分ソ
レノイド310を駆動できるような容量になっている。
なお、コンデンサ924は、各電気部品に電力供給を行
うためのライン(コネクタ915の入力側のライン)に
接続されているが、電源断信号に応じて遊技制御手段が
他のソレノイド(大入賞口開閉用等)の駆動信号をオフ
状態にしているので、電源断信号発生後では、コンデン
サ924は、各ソレノイドのうちでは振分ソレノイド3
10のみを駆動できればよい。
Further, in this embodiment, the distribution solenoid 310 is used to switch between the prize ball path and the rental ball path. Therefore, the capacitor 9 shown in FIG.
The capacity of 24 is such that the distribution solenoid 310 can be driven at least during the above-mentioned predetermined period.
The capacitor 924 is connected to a line for supplying electric power to each electric component (a line on the input side of the connector 915), but the game control means is operated by another solenoid (large winning hole) in response to the power-off signal. Since the drive signals (for opening and closing, etc.) are turned off, the capacitor 924 is the distribution solenoid 3 among the solenoids after the power-off signal is generated.
It suffices if only 10 can be driven.

【0302】なお、この実施の形態で用いられているコ
ンデンサ923およびコンデンサ924は補助駆動電源
の一つの例であるが、補助駆動電源として他のものを用
いてもよい。少なくとも、上記の所定期間の間は、賞球
カウントスイッチ301A、球貸しカウントスイッチ3
01B、振分ソレノイド310および払出制御用CPU
371等の払出制御手段を駆動できるものであれば、他
の態様の補助駆動電源を用いることができる。
The capacitors 923 and 924 used in this embodiment are only examples of the auxiliary driving power source, but other auxiliary driving power sources may be used. At least during the above predetermined period, the prize ball count switch 301A and the ball lending count switch 3
01B, distribution solenoid 310, and payout control CPU
As long as it can drive the payout control means such as 371, an auxiliary drive power source of another aspect can be used.

【0303】払出検出手段からの検出信号の入力処理
(スイッチ検出処理)では、払出制御用CPU371
は、まず、所定期間計測用カウンタに、所定期間に対応
した値mを設定する(ステップS762)。そして、払
出制御用CPU371は、所定期間計測用カウンタの値
を−1し(ステップS763)、所定期間計測用カウン
タの値を確認する(ステップS764)。その値が0で
あれば、スイッチ検出処理を終了し、制御状態を保存す
るための処理である電力供給停止時処理に移行する。
In the processing of inputting the detection signal from the payout detecting means (switch detection processing), the payout control CPU 371.
First, the value m corresponding to the predetermined period is set in the counter for measuring the predetermined period (step S762). Then, the payout control CPU 371 decrements the value of the counter for measuring the predetermined period by -1 (step S763), and confirms the value of the counter for measuring the predetermined period (step S764). If the value is 0, the switch detection process is terminated, and the process proceeds to a power supply stop process which is a process for saving the control state.

【0304】所定期間計測用カウンタの値が0になって
いなければ、賞球カウントスイッチオン中であるか否か
確認する(ステップS765)。この確認は、後述する
賞球カウントスイッチON中フラグの状態を確認するこ
とで行われる。賞球カウントスイッチON中フラグがセ
ットされていれば、賞球カウントスイッチオン中である
と判定し、検出期間用カウンタの値を1減らした後(ス
テップS766)、検出期間用カウンタの値が0になっ
たか否か確認する(ステップS767)。0になってい
れば、入力ポートを介して賞球カウントスイッチ301
Aの検出信号を確認し(ステップS768)、オン状態
を示していれば、賞球カウントスイッチ301Aが確実
にオンしたとして、総合個数記憶の値を1減らす(ステ
ップS769)。
If the value of the counter for measuring for a predetermined period is not 0, it is confirmed whether or not the prize ball count switch is on (step S765). This confirmation is performed by confirming the state of the flag for turning on the prize ball count switch, which will be described later. If the prize ball count switch ON flag is set, it is determined that the prize ball count switch is ON, the value of the detection period counter is decremented by 1 (step S766), and then the value of the detection period counter is set to 0. It is confirmed whether or not (step S767). If it is 0, the prize ball count switch 301 via the input port
If the detection signal of A is confirmed (step S768) and it is in the ON state, it is determined that the prize ball count switch 301A is surely turned on, and the value of the total number storage is decremented by 1 (step S769).

【0305】ステップS765で、賞球カウントスイッ
チオン中でないこと(賞球カウントスイッチON中フラ
グがセットされていないこと)を確認したら、入力ポー
トを介して賞球カウントスイッチ301Aの検出信号を
確認し(ステップS770)、オン状態を示していれ
ば、賞球カウントスイッチON中フラグをセットすると
ともに(ステップS771)、検出期間用カウンタに初
期値nをセットする(ステップS772)。
If it is confirmed in step S765 that the prize ball count switch is not on (the prize ball count switch ON flag is not set), the detection signal of the prize ball count switch 301A is confirmed via the input port. (Step S770) If it is in the ON state, the prize ball count switch ON flag is set (step S771), and the initial value n is set in the detection period counter (step S772).

【0306】以上の処理によって、所定期間内に賞球カ
ウントスイッチ301Aがオンしたら、総合個数記憶の
値が−1される。バックアップRAMの内容を保存する
ための処理は、このようなスイッチ検出処理の後で行わ
れるので、払出が完了した賞球について、必ず総合個数
記憶が−1される。従って、遊技球の払出に関して、保
存される制御状態に矛盾が生じてしまうことが防止され
る。また、上記のスイッチ検出処理では、検出期間用カ
ウンタを用いたタイマ処理が施されている。すなわち、
一度賞球カウントスイッチ301Aのオンが検出された
後、所定時間(S763からS767に至りS763に
戻るループにおける処理時間のn倍:遊技媒体検出判定
期間)の経過後にもオンが検出されないとスイッチオン
と見なされない。つまり、最初のオン検出後、所定の遊
技媒体検出判定期間経過後にもオン検出した場合に、1
個の賞球の払出が完了したと見なされる。従って、誤っ
てスイッチオン検出がなされてしまうことは防止され
る。
By the above processing, when the prize ball count switch 301A is turned on within the predetermined period, the value of the total number memory is decremented by one. Since the processing for storing the contents of the backup RAM is performed after such a switch detection processing, the total number of stored prize balls is always -1. Therefore, regarding the payout of the game balls, it is possible to prevent the stored control state from being inconsistent. Further, in the above switch detection processing, timer processing using a detection period counter is performed. That is,
Once the prize ball count switch 301A is detected to be on, the switch is turned on unless a predetermined time (n times the processing time in the loop from S763 to S767 and returning to S763: a game medium detection determination period) elapses. Not considered. That is, if the ON detection is performed after the predetermined game medium detection determination period elapses after the first ON detection, 1
It is considered that the prize balls have been paid out. Therefore, erroneous switch-on detection can be prevented.

【0307】この場合、例えば、遊技媒体検出判定期間
がほぼ2msとなるようにnを設定すれば、遊技媒体検
出判定期間を通常遊技媒体検出判定期間(電力供給停止
時処理での処理でない、通常の遊技状態において遊技媒
体の有無を判定するための期間。本例では、後述する図
53における751cで賞球カウントスイッチオンフラ
グの値が2であることが確認されるまでの2ms以上の
期間)と同じ期間とすることが可能となる。このように
構成すれば、通常の制御とほぼ同一の条件で、賞球カウ
ントスイッチ301Aがオンしたか否かを判定すること
が可能となる。
In this case, for example, if n is set so that the game medium detection determination period is approximately 2 ms, the game medium detection determination period is set to the normal game medium detection determination period (not the power supply stop process, (A period of 2 ms or more until it is confirmed that the value of the prize ball count switch on flag is 2 in 751c in Fig. 53 described later) in this example. It is possible to have the same period as. According to this structure, it is possible to determine whether or not the prize ball count switch 301A is turned on under substantially the same conditions as in the normal control.

【0308】なお、通常時のスイッチ処理(図42にお
けるステップS752)でも、誤検出防止用のタイマ処
理が施されている。よって、そのような通常時のスイッ
チ処理をコールするようにしてもよい。また、ここで
は、検出期間用カウンタを用いたタイマ処理が行われた
が、所定期間の計測の場合にCPU内蔵タイマを用いて
もよいのと同様、CPU内蔵タイマを用いてスイッチ検
出処理におけるタイマ処理を実現してもよい。
In the normal switch process (step S752 in FIG. 42), the timer process for preventing erroneous detection is also performed. Therefore, you may make it call such a switch process at the time of normal. Although the timer process using the detection period counter is performed here, the timer in the switch detection process using the CPU built-in timer may be used similarly to the case where the CPU built-in timer may be used in the case of measuring a predetermined period. The processing may be realized.

【0309】賞球カウントスイッチオン中でなく、か
つ、賞球カウントスイッチ301Aのオン状態が検出で
きない場合には、球貸しカウントスイッチ301Bにつ
いてスイッチ検出処理を行う。すなわち、払出制御用C
PU371は、球貸しカウントスイッチオン中であるか
否か確認する(ステップS775)。この確認は、後述
する球貸しカウントスイッチON中フラグの状態を確認
することで行われる。球貸しカウントスイッチON中フ
ラグがセットされていれば、球貸しカウントスイッチオ
ン中であると判定し、検出期間用カウンタの値を1減ら
した後(ステップS776)、検出期間用カウンタの値
が0になったか否か確認する(ステップS777)。0
になっていれば、入力ポートを介して球貸しカウントス
イッチ301Bの検出信号を確認し(ステップS77
8)、オン状態を示していれば、球貸しカウントスイッ
チ301Bが確実にオンしたとして、貸し球個数記憶の
値を1減らす(ステップS779)。
If the prize ball count switch is not ON and the ON state of the prize ball count switch 301A cannot be detected, switch detection processing is performed for the ball lending count switch 301B. That is, C for payout control
The PU 371 confirms whether or not the ball lending count switch is on (step S775). This confirmation is performed by confirming the state of the flag during ON of the ball lending count switch, which will be described later. If the ball lending count switch ON flag is set, it is determined that the ball lending count switch is on, the value of the detection period counter is decremented by 1 (step S776), and then the value of the detection period counter is set to 0. It is confirmed whether or not (step S777). 0
If so, the detection signal of the ball lending count switch 301B is confirmed via the input port (step S77).
8) If it is in the ON state, it is determined that the ball lending count switch 301B is surely turned on, and the value of the stored number of lent balls is decremented by 1 (step S779).

【0310】ステップS775で、球貸しカウントスイ
ッチオン中でないこと(球貸しカウントスイッチON中
フラグがセットされていないこと)を確認したら、入力
ポートを介して球貸しカウントスイッチ301Bの検出
信号を確認し(ステップS780)、オン状態を示して
いれば、球貸しカウントスイッチON中フラグをセット
するとともに(ステップS781)、検出期間用カウン
タに初期値nをセットする(ステップS782)。
In step S775, if it is confirmed that the ball lending count switch is not on (the ball lending count switch ON flag is not set), the detection signal of the ball lending count switch 301B is confirmed via the input port. (Step S780) If it is in the on state, the ball lending count switch ON flag is set (step S781), and the initial value n is set in the detection period counter (step S782).

【0311】以上の処理によって、所定期間内に球貸し
カウントスイッチ301Bがオンしたら、貸し球個数記
憶の値が−1される。バックアップRAMの内容を保存
するための処理は、このようなスイッチ検出処理の後で
行われるので、払出が完了した貸し球について、必ず貸
し球個数記憶が−1される。従って、遊技球の払出に関
して、保存される制御状態に矛盾が生じてしまうことが
防止される。また、上記のスイッチ検出処理では、検出
期間用カウンタを用いたタイマ処理が施されている。す
なわち、球貸しカウントスイッチ301Bのオンが所定
時間(遊技媒体検出判定期間)以上継続しないとスイッ
チオンと見なされない。つまり、賞球の払出検出の場合
と同様に、最初のオン検出後、所定の遊技媒体検出判定
期間経過後にもオン検出した場合に、1個の貸し球の払
出が完了したと見なされる。従って、誤ってスイッチオ
ン検出がなされてしまうことは防止される。
By the above processing, when the ball lending count switch 301B is turned on within the predetermined period, the value of the number of lent balls memorized is decremented. The processing for saving the contents of the backup RAM is performed after such a switch detection processing, so that the number of lent balls is always -1 for the lent balls that have been paid out. Therefore, regarding the payout of the game balls, it is possible to prevent the stored control state from being inconsistent. Further, in the above switch detection processing, timer processing using a detection period counter is performed. That is, unless the ball lending count switch 301B is turned on for a predetermined time (game medium detection determination period) or more, it is not considered to be switched on. That is, as in the case of detecting the payout of a prize ball, it is considered that the payout of one loan ball is completed when the ON detection is performed after a predetermined game medium detection determination period has elapsed after the first ON detection. Therefore, erroneous switch-on detection can be prevented.

【0312】また、賞球の払出検出の場合と同様に、例
えば、遊技媒体検出判定期間がほぼ2msとなるように
nを設定すれば、遊技媒体検出判定期間を通常遊技媒体
検出判定期間(電力供給停止時処理での処理でない、通
常の遊技状態において遊技媒体の有無を判定するための
期間。本例では、図51におけるステップS751hで
球貸しカウントスイッチオンフラグの値が2であること
が確認されるまでの2ms以上の期間)と同じ期間とす
ることが可能となる。このように構成すれば、通常の制
御とほぼ同一の条件で、球貸しカウントスイッチ301
Bがオンしたか否かを判定することが可能となる。
Further, as in the case of the prize ball payout detection, for example, if n is set so that the game medium detection determination period is approximately 2 ms, the game medium detection determination period is set to the normal game medium detection determination period (power). A period for determining the presence / absence of a game medium in the normal game state, which is not the process at the time of supply stop.In this example, it is confirmed that the value of the ball lending count switch on flag is 2 in step S751h in FIG. The period can be the same as the period of 2 ms or more). With this configuration, the ball lending count switch 301 can be operated under almost the same conditions as the normal control.
It is possible to determine whether or not B is turned on.

【0313】所定期間が経過すると(ステップS76
4)、払出制御用CPU371は、バックアップあり指
定値(この例では「55H」)をバックアップフラグに
ストアする(ステップS809)。バックアップフラグ
はバックアップRAM領域に形成されている。次いで、
主基板31のCPU56の処理と同様の処理を行ってパ
リティデータを作成しバックアップRAM領域に保存す
る(ステップS810〜S819)。そして、RAMア
クセスレジスタにアクセス禁止値を設定する(ステップ
S820)。以後、内蔵RAMのアクセスができなくな
る。
When the predetermined period has elapsed (step S76)
4) The payout control CPU 371 stores the designated value with backup (“55H” in this example) in the backup flag (step S809). The backup flag is formed in the backup RAM area. Then
Parity data is created by performing the same processing as that of the CPU 56 of the main board 31 and is stored in the backup RAM area (steps S810 to S819). Then, an access prohibition value is set in the RAM access register (step S820). After that, the built-in RAM cannot be accessed.

【0314】なお、この実施の形態では、払出制御処理
において用いられるデータが格納されるRAM領域は全
て電源バックアップされている。従って、その内容が正
しく保存されているか否かを示すチェックサムの生成処
理、およびその内容を書き換えないようにするためのR
AMアクセス防止処理が、払出制御状態を保存するため
の処理に相当する。
In this embodiment, the RAM area in which the data used in the payout control process is stored is backed up by power supply. Therefore, the checksum generation process indicating whether the contents are correctly stored, and R for preventing the contents from being rewritten
The AM access prevention process corresponds to the process for storing the payout control state.

【0315】以上のように、この実施の形態では、停電
等の発生に応じて電源断信号が出力されたら、まず、球
払出装置97の駆動を停止した後、所定期間、払出検出
手段からの検出信号の入力処理が実行され、その後、払
出制御状態を保存するための処理が行われる。従って、
停電発生時に払出途中であった遊技球も、バックアップ
RAMの保存内容に反映される。
As described above, in this embodiment, when the power-off signal is output in response to the occurrence of a power failure or the like, first, the driving of the ball payout device 97 is stopped, and then the payout detecting means outputs a predetermined period. Input processing of the detection signal is executed, and then processing for saving the payout control state is performed. Therefore,
The game balls that were being paid out when the power failure occurred are also reflected in the saved contents of the backup RAM.

【0316】すなわち、この実施の形態では、遊技機へ
の電力供給停止時に制御状態をバックアップ記憶手段に
保存するように構成した場合に、制御の矛盾等を生じさ
せないようにすることができる。
That is, in this embodiment, when the control state is stored in the backup storage means when the power supply to the gaming machine is stopped, it is possible to prevent the control contradiction from occurring.

【0317】また、この実施の形態では、遊技媒体検出
手段が所定の遊技媒体検出判定期間の前後において2回
連続してオン検出した場合に、1個の賞球あるいは貸し
球の払出を完了したと見なすようにしたので、誤ってス
イッチオン検出がなされてしまうことを防止することが
できる。従って、電源断時における制御の適正化を図る
ことが可能となる。
Further, in this embodiment, when the game medium detecting means detects ON twice in succession before and after the predetermined game medium detection judgment period, the payout of one prize ball or loan ball is completed. Therefore, it is possible to prevent erroneous switch-on detection. Therefore, it is possible to optimize the control when the power is off.

【0318】上述したように、この例では、振分ソレノ
イド310の出力ポート以外の出力ポートのクリア処理
が、スイッチ検出処理の実行前(ステップS762の
前)に行われる。電力供給停止時処理の実行中では、払
出制御用CPU371やスイッチ類はコンデンサ92
3,924の充電電力等で駆動されることになる。この
例では、出力ポートのクリア処理をスイッチ検出処理の
実行前に行っているので、コンデンサの充電電力等を電
力供給停止時処理のために効率的に使用することができ
る。
As described above, in this example, the clearing process of the output ports other than the output port of the distribution solenoid 310 is performed before the switch detection process is executed (before step S762). During execution of the power supply stop process, the payout control CPU 371 and switches are connected to the capacitor 92.
It will be driven by the charging power of 3,924 or the like. In this example, since the output port clearing process is performed before the switch detection process is executed, the capacitor charging power and the like can be efficiently used for the power supply stop process.

【0319】RAMアクセスレジスタにアクセス禁止値
を設定すると、払出制御用CPU371は、待機状態
(ループ状態)に入る。従って、システムリセットされ
るまで、何もしない状態になる。
When the access prohibition value is set in the RAM access register, the payout control CPU 371 enters a standby state (loop state). Therefore, nothing is done until the system is reset.

【0320】なお、ここでは、賞球カウントスイッチ3
01Aまたは球貸しカウントスイッチ301Bの検出信
号がオン状態を示したらタイマ(検出期間用カウンタ)
をセットし、タイマがタイムアップしたときにも検出信
号がオン状態を示していたら、スイッチが確実にオンし
たと判定したが、主基板31のCPU56と同様に、2
msのタイマ(2ms計測用カウンタ)がタイムアップ
する毎に検出信号の判定を行うように構成してもよい。
[0320] Here, the prize ball count switch 3
Timer (counter for detection period) when the detection signal of 01A or ball lending count switch 301B indicates the ON state
Is set, and if the detection signal shows the ON state even when the timer times out, it is determined that the switch is surely turned ON. However, like the CPU 56 of the main board 31,
The detection signal may be determined each time the ms timer (2 ms measurement counter) times out.

【0321】また、この実施の形態でも、電源断信号に
応じて起動される処理の最初にレジスタの保存処理が行
われたが、スイッチ検出処理においてレジスタを使用し
ない場合には、スイッチ検出処理の実行後に、すなわ
ち、バックアップフラグの設定とチェックサムの算出の
処理の前にレジスタ保存処理を行うことができる。その
場合には、レジスタ保存処理、バックアップフラグ設定
処理、チェックサム算出処理および出力ポートのオフ設
定処理を電力供給停止時処理と見なすことができる。さ
らに、スイッチ検出処理において幾つかのレジスタを使
用する場合であっても、使用しないレジスタについて
は、バックアップフラグの設定とチェックサムの算出の
処理の前にレジスタ保存処理を行うことができる。
Also in this embodiment, the register saving process is performed at the beginning of the process started in response to the power-off signal, but if the register is not used in the switch detecting process, the switch detecting process is performed. The register saving process can be performed after the execution, that is, before the process of setting the backup flag and calculating the checksum. In that case, the register saving process, the backup flag setting process, the checksum calculation process, and the output port off setting process can be regarded as the power supply stop process. Further, even when some registers are used in the switch detection process, the register saving process can be performed on the unused registers before the backup flag setting and the checksum calculation process.

【0322】図48は、払出制御用CPU371が内蔵
するRAMの使用例を示す説明図である。この例では、
バックアップRAM領域に、総合個数記憶(例えば2バ
イト)と貸し球個数記憶とがそれぞれ形成されている。
総合個数記憶は、主基板31の側から指示された賞球払
出個数の総数を記憶するものである。貸し球個数記憶
は、未払出の球貸し個数を記憶するものである。なお、
バックアップRAM領域には、上記の遊技球の個数に関
する情報を記憶する領域に限られず、例えば、後述する
払出停止中フラグ、賞球経路エラーフラグなどのエラー
状態を示すフラグ、バックアップフラグなどの各種のフ
ラグを記憶する領域や、受信コマンドバッファなどの各
種のバッファなどを記憶する領域なども形成されてい
る。また、払出制御処理において用いられるデータが格
納されるRAM領域は全て電源バックアップされるよう
にしてもよい。
FIG. 48 is an explanatory diagram showing a usage example of the RAM incorporated in the payout control CPU 371. In this example,
In the backup RAM area, a total number memory (for example, 2 bytes) and a rental ball number memory are formed.
The total number storage stores the total number of prize ball payout numbers instructed from the main board 31 side. The loaned ball number storage is for storing the number of unpaid lent balls. In addition,
The backup RAM area is not limited to the area for storing the above-mentioned information regarding the number of game balls, and various kinds of flags such as a flag indicating an error state such as a payout stop flag, an award ball path error flag, and a backup flag, which will be described later, for example. An area for storing flags, an area for storing various buffers such as a reception command buffer, and the like are also formed. Further, the RAM area in which the data used in the payout control process is stored may be backed up by power supply.

【0323】そして、払出制御用CPU371は、例え
ば、賞球制御処理(ステップS757)において、遊技
制御手段から賞球個数を示す払出制御コマンドを受信す
ると、指示された個数分だけ総合個数記憶に内容を増加
する。また、球貸し制御処理(ステップS756)にお
いて、カードユニット50から球貸し要求の信号を受信
する毎に1単位(例えば25個)の個数分だけ貸し球個
数記憶に内容を増加する。さらに、払出制御用CPU3
71は、賞球制御処理において賞球カウントスイッチ3
01Aが1個の賞球払出を検出すると総合個数記憶の値
を1減らし、球貸し制御処理において球貸しカウントス
イッチ301Bが1個の貸し球払出を検出すると貸し球
個数記憶の値を1減らす。
Then, when the payout control CPU 371 receives a payout control command indicating the number of prize balls from the game control means in the prize ball control processing (step S757), the payout control CPU 371 stores the total number of stored contents in the total number storage. To increase. In addition, in the ball lending control process (step S756), the content is increased in the lending ball number storage by one unit (for example, 25) each time the ball lending request signal is received from the card unit 50. Further, the payout control CPU 3
71 is the prize ball count switch 3 in the prize ball control processing.
When 01A detects the payout of one prize ball, the value of the total number of balls stored is decremented by 1. When the ball lending count switch 301B detects the payout of one ball, the value of the stored number of lent balls is decremented by 1.

【0324】従って、未払出の賞球個数と貸し球個数と
が、所定期間はその内容を保持可能なバックアップRA
M領域に記憶されることになる。よって、停電等の不測
の電力供給停止が生じても、所定期間内に電力供給が復
旧すれば、バックアップRAM領域の記憶内容にもとづ
いて賞球処理および球貸し処理を再開することができ
る。すなわち、遊技機への電力供給が停止しても、電力
供給が再開すれば、電力供給停止時の未払出の賞球個数
と貸し球個数とにもとづいて払い出しが行われ、遊技者
に与えられる不利益を低減することができる。
Therefore, the number of unpaid prize balls and the number of lent balls are backup RAs that can retain their contents for a predetermined period.
It will be stored in the M area. Therefore, even if an unexpected power supply interruption such as a power failure occurs, if the power supply is restored within a predetermined period, the prize ball processing and the ball lending processing can be restarted based on the stored contents of the backup RAM area. That is, even if the power supply to the gaming machine is stopped, if the power supply is restarted, the payout is made based on the number of unpaid prize balls and the number of lent balls when the power supply is stopped, and is given to the player. The disadvantage can be reduced.

【0325】図49は、主基板31から受信した払出制
御コマンドを格納するための受信バッファの一構成例を
示す説明図である。この例では、2バイト構成の払出制
御コマンドを6個格納可能なリングバッファ形式の受信
バッファが用いられる。従って、受信バッファは、受信
コマンドバッファ1〜12の12バイトの領域で構成さ
れる。そして、受信したコマンドをどの領域に格納する
のかを示すコマンド受信個数カウンタが用いられる。コ
マンド受信個数カウンタは、0〜11の値をとる。
FIG. 49 is an explanatory diagram showing an example of the structure of a reception buffer for storing the payout control command received from the main board 31. In this example, a ring buffer type reception buffer that can store six 2-byte payout control commands is used. Therefore, the reception buffer is composed of 12-byte areas of the reception command buffers 1 to 12. Then, a command reception number counter indicating which area to store the received command is used. The command reception number counter takes a value of 0-11.

【0326】図50は、割込処理による払出制御コマン
ド受信処理を示すフローチャートである。主基板31か
らの払出制御用のINT信号は払出制御用CPU371
のCLK/TRG2端子に入力されている。よって、主
基板31からのINT信号が立ち上がると、払出制御用
CPU371に割込がかかり、図50に示す払出制御コ
マンドの受信処理が開始される。なお、払出制御用CP
U371は、割込が発生すると、ソフトウェアで割込許
可にしない限り、マスク可能割込がさらに生ずることは
ないような構造のCPUである。
FIG. 50 is a flow chart showing the payout control command receiving process by the interrupt process. The payout control INT signal from the main board 31 is sent to the payout control CPU 371.
Is input to the CLK / TRG2 terminal. Therefore, when the INT signal from the main board 31 rises, the payout control CPU 371 is interrupted, and the payout control command reception process shown in FIG. 50 is started. In addition, CP for payout control
The U371 is a CPU having a structure in which, when an interrupt occurs, no further maskable interrupt occurs unless the interrupt is permitted by software.

【0327】なお、ここでは払出制御手段のコマンド受
信処理について説明するが、表示制御手段、ランプ制御
手段および音制御手段でも、同様のコマンド受信処理が
実行されている。また、この実施の形態では、CLK/
TRG2端子の入力が立ち上がるとタイマカウンタレジ
スタCLK/TRG2の値が−1されるような初期設定
を行ったが、すなわち、INT信号の立ち上がりで割込
が発生するような初期設定を行ったが、CLK/TRG
2端子の入力が立ち下がるとタイマカウンタレジスタC
LK/TRG2の値が−1されるような初期設定を行っ
てもよい。換言すれば、INT信号の立ち下がりで割込
が発生するような初期設定を行ってもよい。
Although the command receiving process of the payout control means will be described here, the same command receiving process is executed by the display control means, the lamp control means and the sound control means. In this embodiment, CLK /
Although the initial setting was made such that the value of the timer counter register CLK / TRG2 is decremented by 1 when the input of the TRG2 terminal rises, that is, the initial setting is made such that an interrupt occurs at the rising edge of the INT signal. CLK / TRG
When the input of 2 terminals falls, timer counter register C
Initialization may be performed such that the value of LK / TRG2 is decremented by one. In other words, the initialization may be performed so that an interrupt occurs at the falling edge of the INT signal.

【0328】すなわち、取込信号としてのパルス状(矩
形波状)のINT信号のレベル変化タイミング(エッ
ジ)で割込が発生するように構成すれば、エッジは立ち
上がりエッジであっても立ち下がりエッジであってもよ
い。いずれにせよ、取込信号としてのパルス状(矩形波
状)のINT信号のレベル変化タイミング(エッジ)で
割込が発生するように構成される。このようにすること
で、コマンドの取込が指示された段階でいち早くコマン
ド受信を行うことが可能になる。また、Aの期間(図3
4)が経過するまでINT信号の出力が待機されるの
で、INT信号の出力時に、制御信号CD0〜CD7の
ライン上のコマンドデータの出力状態は安定している。
よって、払出制御手段において、払出制御コマンドは良
好に受信される。
That is, if the interrupt is generated at the level change timing (edge) of the pulse-shaped (rectangular wave-shaped) INT signal as the capture signal, the edge may be a rising edge or a falling edge. It may be. In any case, the interrupt is configured to occur at the level change timing (edge) of the pulse-shaped (rectangular wave-shaped) INT signal as the acquisition signal. By doing so, it becomes possible to receive the command promptly at the stage when the command acquisition is instructed. In addition, the period of A (Fig. 3
Since the output of the INT signal is waited until 4) has elapsed, the output state of the command data on the lines of the control signals CD0 to CD7 is stable when the INT signal is output.
Therefore, the payout control command is properly received by the payout control means.

【0329】払出制御コマンドの受信処理において、払
出制御用CPU371は、まず、各レジスタをスタック
に退避する(ステップS850)。次いで、払出制御コ
マンドデータの入力に割り当てられている入力ポート3
72a(図9参照)からデータを読み込む(ステップS
851)。そして、2バイト構成の払出制御コマンドの
うちの1バイト目であるか否か確認する(ステップS8
52)。1バイト目であるか否かは、受信したコマンド
の先頭ビットが「1」であるか否かによって確認され
る。先頭ビットが「1」であるのは、2バイト構成であ
る払出制御コマンドのうちのMODEバイト(1バイト
目)のはずである(図33参照)。そこで、払出制御用
CPU371は、先頭ビットが「1」であれば、有効な
1バイト目を受信したとして、受信したコマンドを受信
バッファ領域におけるコマンド受信個数カウンタが示す
受信コマンドバッファに格納する(ステップS85
3)。
In the process of receiving the payout control command, the payout control CPU 371 first saves each register in the stack (step S850). Next, the input port 3 assigned to the input of the payout control command data
Data is read from 72a (see FIG. 9) (step S
851). Then, it is confirmed whether or not it is the first byte of the payout control command having a 2-byte structure (step S8).
52). Whether or not it is the first byte is confirmed by whether or not the first bit of the received command is "1". The head bit is "1" in the MODE byte (first byte) of the payout control command having a 2-byte structure (see FIG. 33). Therefore, if the leading bit is "1", the payout control CPU 371 determines that the valid first byte has been received and stores the received command in the reception command buffer indicated by the command reception number counter in the reception buffer area (step). S85
3).

【0330】払出制御コマンドのうちの1バイト目でな
ければ、1バイト目を既に受信したか否か確認する(ス
テップS854)。既に受信したか否かは、受信バッフ
ァ(受信コマンドバッファ)に有効なデータが設定され
ているか否かによって確認される。
If it is not the first byte of the payout control command, it is confirmed whether or not the first byte has already been received (step S854). Whether or not the data has already been received is confirmed by whether or not valid data is set in the reception buffer (reception command buffer).

【0331】1バイト目を既に受信している場合には、
受信した1バイトのうちの先頭ビットが「0」であるか
否か確認する。そして、先頭ビットが「0」であれば、
有効な2バイト目を受信したとして、受信したコマンド
を、受信バッファ領域におけるコマンド受信個数カウン
タ+1が示す受信コマンドバッファに格納する(ステッ
プS855)。先頭ビットが「0」であるのは、2バイ
ト構成である払出制御コマンドのうちのEXTバイト
(2バイト目)のはずである(図33参照)。なお、ス
テップS854における確認結果が1バイト目を既に受
信したである場合には、2バイト目として受信したデー
タのうちの先頭ビットが「0」でなければ処理を終了す
る。なお、ステップS854で「N」と判断された場合
には、ステップS856の処理が行われないので、次に
受信したコマンドは、今回受信したコマンドが格納され
るはずであったバッファ領域に格納される。
If the first byte has already been received,
It is confirmed whether the first bit of the received 1 byte is "0". If the first bit is "0",
Assuming that the valid second byte has been received, the received command is stored in the reception command buffer indicated by the command reception number counter + 1 in the reception buffer area (step S855). The head bit should be "0" in the EXT byte (second byte) of the payout control command having a 2-byte structure (see FIG. 33). If the confirmation result in step S854 indicates that the first byte has already been received, the process ends if the first bit of the data received as the second byte is not "0". If it is determined as "N" in step S854, the process of step S856 is not performed, so the command received next is stored in the buffer area where the command received this time should have been stored. It

【0332】ステップS855において、2バイト目の
コマンドデータを格納すると、コマンド受信個数カウン
タに2を加算する(ステップS856)。そして、コマ
ンド受信カウンタが12以上であるか否か確認し(ステ
ップS857)、12以上であればコマンド受信個数カ
ウンタをクリアする(ステップS858)。その後、退
避されていたレジスタを復帰し(ステップS859)、
最後に割込許可に設定する(ステップS859)。
When the command data of the second byte is stored in step S855, 2 is added to the command reception number counter (step S856). Then, it is confirmed whether the command reception counter is 12 or more (step S857), and if it is 12 or more, the command reception number counter is cleared (step S858). After that, the saved registers are restored (step S859),
Finally, the interrupt permission is set (step S859).

【0333】コマンド受信割込処理中は割込禁止状態に
なっている。上述したように、2msタイマ割込処理中
は割込許可状態になっているので、2msタイマ割込中
にコマンド受信割込が発生した場合には、コマンド受信
割込処理が優先して実行される。また、コマンド受信割
込処理中に2msタイマ割込が発生しても、その割込処
理は待たされる。このように、この実施の形態では、主
基板31からのコマンド受信処理の処理優先度が高くな
っている。また、コマンド受信処理中には他の割込処理
が実行されないので、コマンド受信処理に要する最長時
間は決まる。コマンド受信処理中に他の割込処理が実行
可能であるように構成したのでは、コマンド受信処理に
要する最長の時間を見積もることは困難である。コマン
ド受信処理に要する最長時間が決まるので、遊技制御手
段のコマンド送出処理におけるCの期間(図34参照)
をどの程度にすればよいのかを正確に判断することがで
きる。
During the command reception interrupt process, the interrupt is disabled. As described above, since the interrupt is enabled during the 2ms timer interrupt process, if a command reception interrupt occurs during the 2ms timer interrupt process, the command reception interrupt process is executed with priority. It Further, even if a 2 ms timer interrupt occurs during the command reception interrupt process, the interrupt process is kept waiting. As described above, in this embodiment, the processing priority of the command reception processing from the main board 31 is high. Further, since the other interrupt processing is not executed during the command receiving processing, the maximum time required for the command receiving processing is determined. If the other interrupt processing can be executed during the command receiving processing, it is difficult to estimate the maximum time required for the command receiving processing. Since the maximum time required for the command receiving process is determined, the period C in the command sending process of the game control means (see FIG. 34)
Can be accurately determined.

【0334】また、払出制御コマンドは2バイト構成で
あって、1バイト目(MODE)と2バイト目(EX
T)とは、受信側で直ちに区別可能に構成されている。
すなわち、先頭ビットによって、MODEとしてのデー
タを受信したのかEXTとしてのデータを受信したのか
を、受信側において直ちに検出できる。よって、上述し
たように、適正なデータを受信したのか否かを容易に判
定することができる。
Also, the payout control command has a 2-byte structure, and the first byte (MODE) and the second byte (EX
It is configured so that it can be immediately distinguished from T) on the receiving side.
That is, the receiving side can immediately detect whether the data as MODE or the data as EXT is received by the first bit. Therefore, as described above, it is possible to easily determine whether or not proper data has been received.

【0335】なお、この実施の形態では、コマンド受信
割込処理では、受信したコマンドを受信バッファに格納
する制御が行われるが、後述する払出停止状態設定処理
(図52参照)やコマンド解析実行処理(図53参照)
を、コマンド受信割込処理において実行するように構成
してもよい。そのように、受信バッファ内のコマンドに
ついて判定するコマンド判定処理までもコマンド受信割
込処理において実行する場合には、コマンドの判定も迅
速に実行される。
In this embodiment, in the command reception interrupt processing, control for storing the received command in the reception buffer is performed. However, the payout stop state setting processing (see FIG. 52) and the command analysis execution processing described later are performed. (See Figure 53)
May be configured to be executed in the command reception interrupt processing. In this way, when even the command determination processing for determining the command in the reception buffer is executed in the command reception interrupt processing, the command determination is also executed promptly.

【0336】図51は、ステップS751のスイッチ処
理の一例を示すフローチャートである。スイッチ処理に
おいて、払出制御用CPU371は、賞球カウントスイ
ッチ301Aがオン状態を示しているか否か確認する
(ステップS751a)。オン状態を示していれば、払
出制御用CPU371は、賞球カウントスイッチオンカ
ウンタを+1する(ステップS751b)。賞球カウン
トスイッチオンカウンタは、賞球カウントスイッチ30
1Aのオン状態を検出した回数を計数するためのカウン
タである。
FIG. 51 is a flow chart showing an example of the switch process of step S751. In the switch processing, the payout control CPU 371 confirms whether or not the prize ball count switch 301A is in the ON state (step S751a). If it is in the ON state, the payout control CPU 371 increments the prize ball count switch ON counter by 1 (step S751b). The prize ball count switch on counter is the prize ball count switch 30.
This is a counter for counting the number of times the ON state of 1A is detected.

【0337】そして、賞球カウントスイッチオンカウン
タの値をチェックし(ステップS751c)、その値が
2になっていれば、1個の賞球の払出が行われたと判断
する。1個の賞球の払出が行われたと判断した場合に
は、払出制御用CPU371は、賞球未払出カウンタ
(総合個数記憶に格納されている賞球個数)を−1する
(ステップS751d)。
Then, the value of the prize ball count switch ON counter is checked (step S751c), and if the value is 2, it is determined that one prize ball has been paid out. When it is determined that one prize ball has been paid out, the payout control CPU 371 decrements the prize ball unpaid counter (the number of prize balls stored in the total number memory) by -1 (step S751d).

【0338】ステップS751aにおいて賞球カウント
スイッチ301Aがオン状態でないことが確認される
と、払出制御用CPU371は、賞球カウントスイッチ
オンカウンタをクリアする(ステップS751e)。そ
して、この実施の形態では、球貸しカウントスイッチ3
01Bがオン状態を示しているか否か確認する(ステッ
プS751f)。オン状態を示していれば、払出制御用
CPU371は、球貸しカウントスイッチオンカウンタ
を+1する(ステップS751g)。球貸しカウントス
イッチオンカウンタは、球貸しカウントスイッチ301
Bのオン状態を検出した回数を計数するためのカウンタ
である。
When it is confirmed in step S751a that the prize ball count switch 301A is not turned on, the payout control CPU 371 clears the prize ball count switch ON counter (step S751e). And in this embodiment, the ball lending count switch 3
It is confirmed whether or not 01B indicates the ON state (step S751f). If it is in the ON state, the payout control CPU 371 increments the ball lending count switch ON counter by 1 (step S751g). Ball lending count switch ON counter is ball lending count switch 301
This is a counter for counting the number of times the ON state of B is detected.

【0339】そして、球貸しカウントスイッチオンカウ
ンタの値をチェックし(ステップS751h)、その値
が2になっていれば、1個の貸し球の払出が行われたと
判断する。1個の貸し球の払出が行われたと判断した場
合には、払出制御用CPU371は、貸し球未払出個数
カウンタ(貸し球個数記憶に格納されている貸し球数)
を−1する(ステップS751i)。
Then, the value of the ball lending count switch on counter is checked (step S751h), and if the value is 2, it is determined that one ball has been paid out. When it is determined that one loan ball has been paid out, the payout control CPU 371 causes the loan ball unpaid number counter (the number of loan balls stored in the loan ball number storage).
Is decremented by 1 (step S751i).

【0340】ステップS751fにおいて球貸しカウン
トスイッチ301Bがオン状態でないことが確認される
と、払出制御用CPU371は、球貸しカウントスイッ
チオンカウンタをクリアする(ステップS751j)。
When it is confirmed in step S751f that the ball lending count switch 301B is not on, the payout control CPU 371 clears the ball lending count switch ON counter (step S751j).

【0341】図52は、ステップS753の払出停止状
態設定処理の一例を示すフローチャートである。払出停
止状態設定処理において、払出制御用CPU371は、
受信バッファ中に受信コマンドがあるか否かの確認を行
う(ステップS753a)。受信バッファ中に受信コマ
ンドがあれば、受信した払出制御コマンドが払出停止状
態指定コマンドであるか否かの確認を行う(ステップS
753b)。払出停止状態指定コマンドであれば、払出
制御用CPU371は、払出停止状態に設定する(ステ
ップS753c)。
FIG. 52 is a flow chart showing an example of the payout stop state setting process of step S753. In the payout stop state setting process, the payout control CPU 371
It is confirmed whether or not there is a receive command in the receive buffer (step S753a). If there is a receive command in the receive buffer, it is confirmed whether the received payout control command is a payout stop state designation command (step S).
753b). If it is the payout stop state designation command, the payout control CPU 371 sets the payout stop state (step S753c).

【0342】ステップS753bで受信コマンドが払出
停止状態指定コマンドでないことを確認すると、受信し
た払出制御コマンドが払出可能状態指定コマンドである
か否かの確認を行う(ステップS753d)。払出可能
状態指定コマンドであれば、払出停止状態を解除する
(ステップS753e)。
When it is confirmed in step S753b that the received command is not the payout stop state designation command, it is confirmed whether or not the received payout control command is the payout possible state designation command (step S753d). If it is the payable state designation command, the payout stop state is canceled (step S753e).

【0343】なお、払出停止状態に設定するときには、
例えば払出モータ289の駆動が停止されるとともに払
出停止中であることを示す内部フラグ(払出停止中フラ
グ)がセットされる。また、払出停止状態を解除すると
きには、払出モータ289の駆動が再開されるととも
に、払出停止中フラグがリセットされる。すなわち、ス
テップS753cでは、払い出しが禁止された状態であ
ることを示すデータ(セットされた払出停止中フラグ)
を所定の記憶領域に記憶する処理が実行されており、ス
テップS753eでは、払い出しが許可された状態であ
ることを示すデータ(リセットされた払出停止中フラ
グ)を所定の記憶領域に記憶する処理が実行されてい
る。
When setting the payout stop state,
For example, the driving of the payout motor 289 is stopped, and an internal flag (payment stopped flag) indicating that the payout is stopped is set. When the payout stop state is released, the driving of the payout motor 289 is restarted and the payout stop flag is reset. That is, in step S753c, data indicating that payout is prohibited (set payout suspension flag)
Is being executed in the predetermined storage area, and in step S753e, the processing for storing the data indicating that the payout is permitted (the reset payout suspension flag) in the predetermined storage area is executed. It is running.

【0344】払出停止中フラグは、例えばバックアップ
RAM領域に格納されている。払出停止中フラグは、例
えばD0〜D7の各ビットから成る1バイト構成とされ
る。この場合、例えば、D0が「1」であれば払出停止
状態が設定されている状態を示し、D1が「1」であれ
ば払出停止状態が解除されている状態を示すようにすれ
ばよい。また、D2は、例えば、払出停止状態が解除さ
れたあとの復帰待ち状態であることを示すために用いら
れる。なお、D3〜D7は、未使用領域とされる。
The payout suspension flag is stored in, for example, the backup RAM area. The payout suspension flag has a 1-byte structure including bits D0 to D7, for example. In this case, for example, if D0 is "1", it indicates the state in which the dispensing stop state is set, and if D1 is "1", it indicates the state in which the dispensing stop state is released. Further, D2 is used, for example, to indicate that it is in a waiting state for returning after the payout stop state is released. Note that D3 to D7 are unused areas.

【0345】ここで、図52の処理における払出停止中
フラグの状態を具体的に説明する。ステップS753c
の処理では、払出制御用CPU371は、払出停止中フ
ラグのD0を「0」とするとともに、D1を「1」とす
る。また、ステップS753eの処理では、払出制御用
CPU371は、払出停止中フラグのD0を「1」にす
るとともにD1を「0」とし、D2を「1」とする。な
お、払出制御用CPU371は、D2を「1」とした場
合には、所定期間(例えば1[s])経過後にD2を
「0」にする。本例では、払出停止中フラグは、D0が
「0」であり、かつD1が「1」の状態であるときに、
払出停止状態であることを示す。また、D0が「1」で
あり、かつD1が「0」の状態であるときに、払出許可
状態(払出停止状態状態が解除されている状態)である
ことを示す。なお、払出停止中フラグは、1バイト構成
以外の他の構成であってもよく、各ビットを他の態様で
使用するようにしてもよい(例えば、D0のみを用いる
ようにして、D0が「0」であれば払出停止状態を示
し、D0が「1」であれば払出許可状態を示すようにし
てもよい)。
Now, the state of the payout suspension flag in the process of FIG. 52 will be specifically described. Step S753c
In the process of, the payout control CPU 371 sets D0 of the payout suspension flag to “0” and sets D1 to “1”. In the process of step S753e, the payout control CPU 371 sets D0 of the payout suspension flag to “1”, sets D1 to “0”, and sets D2 to “1”. When D2 is set to "1", the payout control CPU 371 sets D2 to "0" after a predetermined period (for example, 1 [s]) has elapsed. In this example, the payout suspension flag indicates that when D0 is "0" and D1 is "1",
Indicates that the dispensing is stopped. Further, when D0 is "1" and D1 is "0", it indicates that the payout permission state (the payout stop state is released). Note that the payout suspension flag may have a configuration other than the 1-byte configuration, and each bit may be used in another manner (for example, by using only D0, D0 is " The payout stop state may be indicated when "0", and the payout permission state may be indicated when D0 is "1").

【0346】払出停止状態に設定された場合に、直ちに
払出モータ289を停止してもよいが、そのように制御
するのではなく、切りのよいところで払出モータ289
を停止するようにしてもよい。例えば、遊技球の払出を
25個単位で実行し、一単位の払出が完了した時点で払
出モータ289を停止するとともに、内部状態を払出停
止状態に設定するようにしてもよい。上述したように、
球切れスイッチ187は、払出球通路に27〜28個程
度の遊技球が存在することを検出できるような位置に設
置されているので、主基板31の遊技制御手段が球切れ
を検出しても、その時点から少なくとも25個の払出は
可能である。従って、一単位の払出が完了した時点で払
出停止状態にしても問題は生じない。また、一単位の区
切りで払出停止状態とすれば、払出再開時の制御が容易
になる。
When the payout stop state is set, the payout motor 289 may be stopped immediately, but instead of performing such control, the payout motor 289 is cut at a good cutting point.
May be stopped. For example, the payout of the game balls may be executed in units of 25, and the payout motor 289 may be stopped when the payout of one unit is completed, and the internal state may be set to the payout stop state. As mentioned above,
Since the ball break switch 187 is installed at a position where it can detect that there are 27 to 28 gaming balls in the payout ball passage, even if the game control means of the main board 31 detects the ball breaking. From that point on, at least 25 payouts are possible. Therefore, there is no problem even if the payout is stopped at the time when one unit of payout is completed. Further, if the payout is stopped at the unit of one unit, the control when the payout is restarted becomes easy.

【0347】図53は、ステップS754のコマンド解
析実行処理の一例を示すフローチャートである。コマン
ド解析実行処理において、払出制御用CPU371は、
受信バッファに受信コマンドがあるか否かの確認を行う
(ステップS754a)。受信コマンドがあれば、受信
した払出制御コマンドが賞球個数を指定するための払出
制御コマンドであるか否かの確認を行う(ステップS7
54b)。なお、払出制御用CPU371は、コマンド
指示手段としての読出ポインタが指す受信バッファ中の
アドレスに格納されている受信コマンドについてステッ
プS754bの判断を行う。また、その判断後、読出ポ
インタの値は+1される。読出ポインタが指すアドレス
が受信コマンドバッファ12(図49参照)のアドレス
を越えた場合には、読出ポインタの値は、受信コマンド
バッファ1を指すように更新される。
FIG. 53 is a flow chart showing an example of the command analysis execution processing of step S754. In the command analysis execution processing, the payout control CPU 371
It is confirmed whether or not there is a receive command in the receive buffer (step S754a). If there is a received command, it is confirmed whether or not the received payout control command is a payout control command for designating the number of prize balls (step S7).
54b). The payout control CPU 371 makes a determination in step S754b for the received command stored at the address in the receive buffer pointed to by the read pointer as the command instruction means. After the determination, the value of the read pointer is incremented by +1. When the address pointed to by the read pointer exceeds the address of the reception command buffer 12 (see FIG. 49), the value of the read pointer is updated to point to the reception command buffer 1.

【0348】受信した払出制御コマンドが賞球個数を指
定するための払出制御コマンドであれば、払出制御コマ
ンドで指示された個数を総合個数記憶に加算する(ステ
ップS754c)。すなわち、払出制御用CPU371
は、主基板31のCPU56から送られた払出制御コマ
ンドに含まれる賞球個数をバックアップRAM領域(総
合個数記憶)に記憶する。
If the received payout control command is a payout control command for designating the number of prize balls, the number instructed by the payout control command is added to the total number storage (step S754c). That is, the payout control CPU 371
Stores the number of prize balls included in the payout control command sent from the CPU 56 of the main board 31 in the backup RAM area (total number storage).

【0349】なお、払出制御用CPU371は、必要な
らば、コマンド受信個数カウンタの減算や受信バッファ
における受信コマンドシフト処理を行う。また、払出停
止状態設定処理およびコマンド解析実行処理が、読出ポ
インタの値と受信バッファにおける最新コマンド格納位
置とが一致するまで繰り返すように構成されていてもよ
い。例えば、読出ポインタの値と受信バッファにおける
最新コマンド格納位置との差が「3」であれば未処理の
受信済みコマンドが3つあることになるが、一致するま
で繰り返し処理が実行されることによって、未処理の受
信済みコマンドがなくなる。すなわち、受信バッファに
格納されている受信済みコマンドが、一度の処理で、全
て読み出されて処理される。
The payout control CPU 371 performs the subtraction of the command reception number counter and the reception command shift processing in the reception buffer, if necessary. Further, the payout stop state setting process and the command analysis execution process may be repeated until the value of the read pointer and the latest command storage position in the reception buffer match. For example, if the difference between the value of the read pointer and the latest command storage position in the reception buffer is "3", there are three unprocessed received commands, but the repeated processing is executed until they match. , There are no outstanding received commands. That is, all the received commands stored in the reception buffer are read and processed in one process.

【0350】図54は、ステップS755のプリペイド
カードユニット制御処理の一例を示すフローチャートで
ある。プリペイドカードユニット制御処理において、払
出制御用CPU371は、カードユニット制御用マイク
ロコンピュータより入力されるVL信号を検知したか否
かを確認する(ステップS755a)。VL信号を検知
していなければ、VL信号非検知カウンタを+1する
(ステップS755b)。また、払出制御用CPU37
1は、VL信号非検知カウンタの値が本例では125で
あるか否か確認する(ステップS755c)。VL信号
非検知カウンタの値が125であれば、払出制御用CP
U371は、発射制御基板91への発射制御信号出力を
停止して、駆動モータ94を停止させる(ステップS7
55d)。
FIG. 54 is a flow chart showing an example of the prepaid card unit control process of step S755. In the prepaid card unit control process, the payout control CPU 371 confirms whether or not the VL signal input from the card unit control microcomputer is detected (step S755a). If the VL signal is not detected, the VL signal non-detection counter is incremented by 1 (step S755b). Further, the payout control CPU 37
1 confirms whether the value of the VL signal non-detection counter is 125 in this example (step S755c). If the value of the VL signal non-detection counter is 125, the payout control CP
The U371 stops the output of the firing control signal to the firing control board 91 and stops the drive motor 94 (step S7).
55d).

【0351】以上の処理によって、125回(2ms×
125=250ms)継続してVL信号のオフが検出さ
れたら、球発射禁止状態に設定される。
By the above processing, 125 times (2 ms ×
(125 = 250 ms) When the OFF of the VL signal is continuously detected, the ball firing prohibition state is set.

【0352】ステップS755aにおいてVL信号を検
知していれば、払出制御用CPU371は、VL信号非
検知カウンタをクリアする(ステップS755e)。そ
して、払出制御用CPU371は、発射制御信号出力を
停止していれば(ステップS755f)、発射制御基板
91への発射制御信号出力を開始して駆動モータ94を
動作可能状態にする(ステップS755g)。
If the VL signal is detected in step S755a, the payout control CPU 371 clears the VL signal non-detection counter (step S755e). If the output control signal output is stopped (step S755f), the payout control CPU 371 starts the output control signal output to the discharge control board 91 to put the drive motor 94 into an operable state (step S755g). .

【0353】図55および図56は、ステップS756
の球貸し制御処理の一例を示すフローチャートである。
なお、この実施の形態では、連続的な払出数の最大値を
貸し球の一単位(例えば25個)とするが、連続的な払
出数の最大値は他の数であってもよい。
55 and 56, step S756 is executed.
It is a flow chart which shows an example of the ball lending control processing of.
In addition, in this embodiment, the maximum value of the continuous payout number is one unit (for example, 25) of the lending sphere, but the maximum value of the continuous payout number may be another number.

【0354】球貸し制御処理において、払出制御用CP
U371は、球貸し停止中であるか否かを確認する(ス
テップS510)。停止中であれば、処理を終了する。
なお、球貸し停止中であるか否かは、図52に示された
払出停止状態設定処理において設定される払出停止中フ
ラグがオンしているか否かによって確認される。
In the ball lending control process, the payout control CP
U371 confirms whether or not the ball lending is suspended (step S510). If it is stopped, the process ends.
Whether or not the ball lending is being stopped is confirmed by whether or not the payout in-progress flag set in the payout stop state setting process shown in FIG. 52 is turned on.

【0355】球貸し停止中でなければ、払出制御用CP
U371は、貸し球払出中であるか否かの確認を行い
(ステップS511)、貸し球払出中であれば図56に
示す球貸し中の処理に移行する。なお、貸し球払出中で
あるか否かは、後述する球貸し処理中フラグの状態によ
って判断される。貸し球払出中でなければ、賞球の払出
中であるか否か確認する(ステップS512)。賞球の
払出中であるか否は、後述する賞球処理中フラグの状態
によって判断される。
If the ball lending is not stopped, the payout control CP
The U371 confirms whether or not the ball lending is being issued (step S511), and if the ball lending is being delivered, the process shifts to the ball lending process shown in FIG. In addition, whether or not the lent-out of the lent-out sphere is being performed is determined by the state of the lent-out-of-ball-lending flag described later. If the loan balls are not being paid out, it is confirmed whether or not the prize balls are being paid out (step S512). Whether or not the prize balls are being paid out is determined by the state of a prize ball processing flag described later.

【0356】貸し球払出中でも賞球払出中でもなけれ
ば、払出制御用CPU371は、カードユニット50か
ら球貸し要求があったか否かを確認する(ステップS5
13)。要求があれば、球貸し処理中フラグをオンする
とともに(ステップS514)、25(球貸し一単位
数:ここでは100円分)をバックアップRAM領域の
貸し球個数記憶に設定する(ステップS515)。そし
て、払出制御用CPU371は、EXS信号をオンする
(ステップS516)。また、球払出装置97の下方の
球振分部材311を球貸し側に設定するために振分用ソ
レノイド310を駆動する(ステップS517)。さら
に、払出制御用CPU371は、25個の遊技球を払い
出すためのモータ回転時間を設定するか、または、モー
タ回転時間に応じた数の出力パルス数を決定する。そし
て、払出モータ289をオンして(ステップS51
8)、図56に示す球貸し中の処理に移行する。
If neither the lending balls nor the prize balls are being paid out, the payout control CPU 371 confirms whether or not there is a ball lending request from the card unit 50 (step S5).
13). When there is a request, the ball lending processing flag is turned on (step S514), and 25 (one unit of ball lending: 100 yen here) is set in the backup RAM area storage of the number of lending balls (step S515). Then, the payout control CPU 371 turns on the EXS signal (step S516). Further, the distribution solenoid 310 is driven to set the ball distribution member 311 below the ball dispensing device 97 to the ball lending side (step S517). Further, the payout control CPU 371 sets the motor rotation time for paying out the 25 game balls, or determines the number of output pulses corresponding to the motor rotation time. Then, the payout motor 289 is turned on (step S51
8), and shifts to the processing during ball lending shown in FIG.

【0357】なお、払出モータ289をオンするのは、
厳密には、カードユニット50が受付を認識したことを
示すためにBRQ信号をオフ状態にしてからである。ま
た、球貸し処理中フラグはバックアップRAM領域に設
定される。
The payout motor 289 is turned on as follows.
Strictly speaking, the BRQ signal is turned off to indicate that the card unit 50 has recognized the acceptance. The ball lending processing flag is set in the backup RAM area.

【0358】図56は、払出制御用CPU371による
払出制御処理における球貸し中の処理を示すフローチャ
ートである。球貸し処理では、払出モータ289がオン
していなければオンする。なお、この実施の形態では、
ステップS751のスイッチ処理で、球貸しカウントス
イッチ301Bの検出信号による遊技球の払出がなされ
たか否かの確認を行うので、球貸し制御処理では貸し球
個数記憶の減算などは行われない。
FIG. 56 is a flow chart showing the processing during ball lending in the payout control processing by the payout control CPU 371. In the ball lending process, the payout motor 289 is turned on if it is not turned on. In addition, in this embodiment,
In the switch processing of step S751, it is confirmed whether or not the game balls have been paid out based on the detection signal of the ball lending count switch 301B. Therefore, in the ball lending control processing, the storage of the number of loaned balls is not subtracted.

【0359】球貸し制御処理において、払出制御用CP
U371は、貸し球通過待ち時間中であるか否かの確認
を行う(ステップS519)。貸し球通過待ち時間中で
なければ、貸し球の払出を行い(ステップS520)、
払出モータ289の駆動を終了すべきか(一単位の払出
動作が終了したか)否かの確認を行う(ステップS52
1)。具体的には、所定個数の払出に対応した回転が完
了したか否かを確認する。所定個数の払出に対応した回
転が完了した場合には、払出制御用CPU371は、払
出モータ289の駆動を停止し(ステップS522)、
貸し球通過待ち時間の設定を行う(ステップS52
3)。
CP for payout control in the ball lending control process
U371 confirms whether or not it is in the waiting time for passing the loan ball (step S519). If it is not during the waiting time for passing the rental ball, the rental ball is paid out (step S520),
It is confirmed whether or not the driving of the payout motor 289 should be ended (whether one unit of payout operation is ended) (step S52).
1). Specifically, it is confirmed whether or not the rotation corresponding to the predetermined number of payouts is completed. When the rotation corresponding to the predetermined number of payouts is completed, the payout control CPU 371 stops driving the payout motor 289 (step S522).
The lending ball passage waiting time is set (step S52).
3).

【0360】ステップS519で貸し球通過待ち時間中
であれば、払出制御用CPU371は、貸し球通過待ち
時間が終了したか否かの確認を行う(ステップS52
4)。貸し球通過待ち時間は、最後の払出球が払出モー
タ289によって払い出されてから球貸しカウントスイ
ッチ301Bを通過するまでの時間である。貸し球通過
待ち時間の終了を確認すると、一単位の貸し球は全て払
い出された状態であるので、カードユニット50に対し
て次の球貸し要求の受付が可能になったことを示すため
にEXS信号をオフにする(ステップS525)。ま
た、振分ソレノイドをオフするとともに(ステップS5
26)、球貸し処理中フラグをオフする(ステップS5
27)。なお、貸し球通過待ち時間が経過するまでに最
後の払出球が球貸しカウントスイッチ301Bを通過し
なかった場合には、球貸し経路エラーとされる。また、
この実施の形態では、賞球も球貸しも同じ払出装置で行
われる。
If it is in the lending ball passage waiting time in step S519, the payout control CPU 371 confirms whether or not the lending ball passage waiting time has ended (step S52).
4). The lending ball passage waiting time is the time from when the last payout ball is paid out by the payout motor 289 to when it passes through the ball lending count switch 301B. When confirming the end of the lending ball passage waiting time, all of the one unit of lending balls have been paid out, so that it is possible to indicate to the card unit 50 that the next ball lending request can be accepted. The EXS signal is turned off (step S525). The distribution solenoid is turned off (step S5).
26), turn off the ball lending processing flag (step S5)
27). If the last payout ball has not passed the ball lending count switch 301B before the lending ball passage waiting time elapses, a ball lending route error is determined. Also,
In this embodiment, prize balls and ball lending are performed by the same payout device.

【0361】なお、球貸し要求の受付を示すEXS信号
をオフにした後、所定期間内に再び球貸し要求信号であ
るBRQ信号がオンしたら、振分ソレノイドおよび払出
モータをオフせずに球貸し処理を続行するようにしても
よい。すなわち、所定単位(この例では100円単位)
毎に球貸し処理を行うのではなく、球貸し処理を連続し
て実行するように構成することもできる。
After turning off the EXS signal indicating acceptance of the ball lending request, if the BRQ signal, which is the ball lending request signal, is turned on again within a predetermined period, the ball lending is performed without turning off the distribution solenoid and the payout motor. The processing may be continued. That is, a predetermined unit (100 yen unit in this example)
Instead of performing the ball lending process every time, the ball lending process may be continuously executed.

【0362】貸し球個数記憶の内容は、遊技機への電力
供給が停止しても、所定期間電源基板910のバックア
ップ電源によって保存される。従って、所定期間中に電
力供給が復旧すると、払出制御用CPU371は、貸し
球個数記憶の内容にもとづいて球貸し処理を継続するこ
とができる。
The content of the number of lent balls is stored by the backup power supply of the power supply board 910 for a predetermined period even if the power supply to the game machine is stopped. Therefore, when the power supply is restored within the predetermined period, the payout control CPU 371 can continue the ball lending process based on the content of the loan ball number storage.

【0363】図57および図58は、ステップS757
の賞球制御処理の一例を示すフローチャートである。な
お、この例では、連続的な払出数の最大値を貸し球の一
単位と同数(例えば25個)とするが、連続的な払出数
の最大値は他の数であってもよい。
57 and 58, step S757 is executed.
It is a flow chart which shows an example of the prize ball control processing. In addition, in this example, the maximum value of the continuous payout amount is set to the same number as one unit of the lending sphere (for example, 25), but the maximum value of the continuous payout amount may be another number.

【0364】賞球制御処理において、払出制御用CPU
371は、まず、賞球停止中であるか否かを確認する
(ステップS530)。停止中であれば、処理を終了す
る。なお、賞球停止中であるか否かは、図52に示され
た払出停止状態設定処理において設定される払出停止中
フラグがオンしているか否かによって確認される。
In the prize ball control processing, the payout control CPU
The 371 first confirms whether or not the prize ball is stopped (step S530). If it is stopped, the process ends. Whether or not the prize balls are stopped is confirmed by whether or not the payout stopping flag set in the payout stopping state setting process shown in FIG. 52 is turned on.

【0365】賞球停止中でなければ、払出制御用CPU
371は、貸し球払出中であるか否かの確認を行い(ス
テップS531)、貸し球払出中であれば処理を終了す
る。なお、貸し球払出中であるか否かは、球貸し処理中
フラグの状態によって判断される。貸し球払出中でなけ
れば、既に賞球払出処理が開始されているか否か、すな
わち賞球中であるか否か確認する(ステップS53
2)。賞球中であれば図58に示す賞球中の処理に移行
する。なお、賞球中であるか否かは、後述する賞球処理
中フラグの状態によって判断される。
If the prize ball is not stopped, the payout control CPU
The 371 confirms whether or not the lending balls are being paid out (step S531), and if the lending balls is being paid out, the process is ended. Whether or not the ball lending is being paid out is determined by the state of the ball lending processing flag. If the payout of the rented balls is not in progress, it is confirmed whether or not the prize ball payout processing has already been started, that is, whether or not the prize balls are being paid out (step S53).
2). If it is in the prize ball, the process moves to the process in the prize ball shown in FIG. Whether or not a prize ball is in play is determined by the state of a prize ball processing flag, which will be described later.

【0366】賞球払出中でなければ、払出制御用CPU
371は、総合個数記憶に格納されている賞球数(未払
出の賞球数)が0でないか否か確認する(ステップS5
34)。総合個数記憶に格納されている賞球数が0でな
ければ、賞球制御用CPU371は、賞球処理中フラグ
をオンし(ステップS535)、総合個数記憶の値が2
5以上であるか否か確認する(ステップS536)。な
お、賞球処理中フラグは、バックアップRAM領域に設
定される。
If the prize balls are not being paid out, the payout control CPU
371 confirms whether the number of prize balls (the number of unpaid prize balls) stored in the total number memory is not 0 (step S5).
34). If the number of prize balls stored in the total number memory is not 0, the prize ball control CPU 371 turns on the prize ball processing flag (step S535), and the value of the total number memory is 2.
It is confirmed whether it is 5 or more (step S536). The prize ball processing flag is set in the backup RAM area.

【0367】総合個数記憶に格納されている賞球個数が
25以上であると、払出制御用CPU371は、25個
分の遊技球を払い出すまで払出モータ289を回転させ
るように払出モータ289に対して駆動信号を出力する
ために、25個払出動作の設定を行う(ステップS53
7)。具体的には、25個の遊技球を払い出すためのモ
ータ回転時間を設定したり、モータ回転時間に応じた数
の出力パルス数を決定する。
When the number of prize balls stored in the total number memory is 25 or more, the payout control CPU 371 instructs the payout motor 289 to rotate the payout motor 289 until the 25 game balls are paid out. In order to output the drive signal by the operation, the 25-piece payout operation is set (step S53).
7). Specifically, the motor rotation time for paying out the 25 game balls is set, and the number of output pulses corresponding to the motor rotation time is determined.

【0368】総合個数記憶に格納されている賞球個数が
25以上でなければ、払出制御用CPU371は、総合
個数記憶に格納されている数に応じた遊技球を払い出す
まで払出モータ289を回転させるように駆動信号を出
力するために、全個数払出動作の設定を行う(ステップ
S538)。具体的には、遊技球を払い出すためのモー
タ回転時間を設定したり、モータ回転時間に応じた数の
出力パルス数を決定する。次いで、払出モータ289を
オンする(ステップS539)。なお、振分ソレノイド
はオフ状態であるから、球払出装置97の下方の球振分
部材は賞球側に設定されている。そして、図58に示す
賞球制御処理における賞球払出中の処理に移行する。
If the number of prize balls stored in the total number memory is not 25 or more, the payout control CPU 371 rotates the payout motor 289 until the game balls corresponding to the number stored in the total number memory are paid out. In order to output the drive signal so as to perform the above operation, the all-pieces payout operation is set (step S538). Specifically, the motor rotation time for paying out the game balls is set, and the number of output pulses corresponding to the motor rotation time is determined. Next, the payout motor 289 is turned on (step S539). Since the distribution solenoid is off, the ball distribution member below the ball payout device 97 is set to the prize ball side. Then, the process shifts to the process of paying out prize balls in the prize ball control process shown in FIG.

【0369】図58は、払出制御用CPU371による
払出制御処理における賞球中の処理の一例を示すフロー
チャートである。賞球制御処理では、払出モータ289
がオンしていなければオンする。なお、この実施の形態
では、ステップS751のスイッチ処理で、賞球カウン
トスイッチ301Aの検出信号による遊技球の払出がな
されたか否かの確認を行うので、賞球制御処理では総合
個数記憶の減算などは行われない。
FIG. 58 is a flow chart showing an example of a prize ball process in the payout control process by the payout control CPU 371. In the prize ball control processing, the payout motor 289
If is not on, turn it on. In this embodiment, in the switch processing of step S751, it is confirmed whether or not the game balls have been paid out by the detection signal of the prize ball count switch 301A. Is not done.

【0370】賞球中の処理において、払出制御用CPU
371は、賞球通過待ち時間中であるか否かの確認を行
う(ステップS540)。賞球通過待ち時間中でなけれ
ば、賞球払出を行い(ステップS541)、払出モータ
289の駆動を終了すべきか(25個または25個未満
の所定の個数の払出動作が終了したか)否かの確認を行
う(ステップS542)。具体的には、所定個数の払出
に対応した回転が完了したか否かを確認する。所定個数
の払出に対応した回転が完了した場合には、払出制御用
CPU371は、払出モータ289の駆動を停止し(ス
テップS543)、賞球通過待ち時間の設定を行う(ス
テップS544)。賞球通過待ち時間は、最後の払出球
が払出モータ289によって払い出されてから賞球カウ
ントスイッチ301Aを通過するまでの時間である。
[0370] The payout control CPU in the process of winning a prize
The 371 confirms whether or not it is during the prize ball waiting time (step S540). If it is not during the prize ball passage waiting time, whether or not the prize balls should be paid out (step S541) and the driving of the payout motor 289 should be ended (whether the payout operation of 25 or a predetermined number of less than 25 has ended). Is confirmed (step S542). Specifically, it is confirmed whether or not the rotation corresponding to the predetermined number of payouts is completed. When the rotation corresponding to the predetermined number of payouts is completed, the payout control CPU 371 stops driving the payout motor 289 (step S543), and sets the prize ball passage waiting time (step S544). The prize ball passage waiting time is the time from when the last payout ball is paid out by the payout motor 289 until it passes through the prize ball count switch 301A.

【0371】ステップS540で賞球通過待ち時間中で
あれば、払出制御用CPU371は、賞球通過待ち時間
が終了したか否かの確認を行う(ステップS545)。
賞球通過待ち時間が終了した時点は、ステップS537
またはステップS538で設定された賞球が全て払い出
された状態である。そこで、払出制御用CPU371
は、賞球通過待ち時間が終了していれば、賞球処理中フ
ラグをオフする(ステップS546)。賞球通過待ち時
間が経過するまでに最後の払出球が賞球カウントスイッ
チ301Aを通過しなかった場合には、賞球経路エラー
とされる。
If it is during the prize ball passage waiting time in step S540, the payout control CPU 371 confirms whether or not the prize ball passage waiting time is over (step S545).
When the prize ball waiting time is over, step S537
Alternatively, all the prize balls set in step S538 have been paid out. Therefore, the payout control CPU 371
If the award ball passage waiting time has ended, the award ball processing flag is turned off (step S546). If the last payout ball has not passed the prize ball count switch 301A before the prize ball passage waiting time has elapsed, a prize ball path error is determined.

【0372】なお、この実施の形態では、ステップS5
11、ステップS531の判断によって球貸しが賞球処
理よりも優先されることになるが、賞球処理が球貸しに
優先するようにしてもよい。
In this embodiment, step S5
11, the ball lending is prioritized over the prize ball processing according to the determination in step S531, but the prize ball processing may be prioritized over the ball lending.

【0373】総合個数記憶および貸し球個数記憶の内容
は、遊技機への電力供給が停止しても、所定期間電源基
板910のバックアップ電源によって保存される。従っ
て、所定期間中に電力供給が復旧すると、払出制御用C
PU371は、総合個数記憶の内容にもとづいて払出処
理を継続することができる。
The contents of the total number storage and the number of rented balls storage are retained by the backup power supply of the power supply board 910 for a predetermined period even if the power supply to the gaming machine is stopped. Therefore, when the power supply is restored within a predetermined period, the payout control C
The PU 371 can continue the payout process based on the content of the total number storage.

【0374】なお、払出制御用CPU371は、主基板
31から指示された賞球個数を賞球個数記憶で総数とし
て管理したが、賞球個数毎(例えば15個、10個、6
個)に管理してもよい。例えば、賞球個数毎に対応した
個数カウンタを設け、払出個数指定コマンドを受信する
と、そのコマンドで指定された個数に対応する個数カウ
ンタを+1する。そして、個数カウンタに対応した賞球
払出が行われると、その個数カウンタを−1する(この
場合、払出制御処理にて減算処理を行うようにする)。
その場合にも、各個数カウンタはバックアップRAM領
域に形成される。よって、遊技機への電力供給が停止し
ても、所定期間中に電源が復旧すれば、払出制御用CP
U371は、各個数カウンタの内容にもとづいて賞球払
出処理を継続することができる。
Although the payout control CPU 371 manages the number of prize balls instructed from the main board 31 as the total number in the prize ball number memory, the prize ball number is stored for each prize ball number (for example, 15, 10, 6).
Individual). For example, a number counter corresponding to each prize ball number is provided, and when a payout number designation command is received, the number counter corresponding to the number designated by the command is incremented by one. When the prize ball payout corresponding to the number counter is performed, the number counter is decremented by 1 (in this case, the subtraction process is performed in the payout control process).
Also in that case, each number counter is formed in the backup RAM area. Therefore, even if the power supply to the gaming machine is stopped, if the power is restored within the predetermined period, the payout control CP
The U371 can continue the prize ball payout process based on the contents of the respective number counters.

【0375】なお、この実施の形態では、払出制御手段
は、払出制御信号に関するINT信号が立ち上がったこ
とを検知して、例えば割込処理によって1バイトのデー
タの取り込み処理を開始する。そして、複数の払出制御
コマンドを格納可能な受信リングバッファ(この例では
受信バッファ)が設けられているので、払出制御コマン
ドを受信後、そのコマンドにもとづく制御が開始されな
いうちに次の払出制御コマンドを受信しても、そのコマ
ンドが、払出制御手段において受信されないということ
はない。
In this embodiment, the payout control means detects that the INT signal relating to the payout control signal has risen, and starts the process of fetching 1-byte data by, for example, an interrupt process. Since a receiving ring buffer (a receiving buffer in this example) capable of storing a plurality of payout control commands is provided, after the payout control command is received, the next payout control command is issued before the control based on the command is started. The receipt of the command does not mean that the command is not received by the payout control means.

【0376】払出制御手段において、払出停止状態であ
っても割込処理は起動されるので、払出制御手段は、払
出停止中であっても、払出制御コマンドを受信すること
ができる。そして、払出停止中では受信した払出制御コ
マンドに応じた払出処理は停止しているのであるが、複
数の払出制御コマンドを格納可能な受信リングバッファ
が設けられているので、遊技制御手段から送出された払
出制御コマンドは、払出制御手段において消失してしま
うようなことはない。
In the payout control means, the interrupt process is activated even in the payout stop state, so that the payout control means can receive the payout control command even when the payout is stopped. Then, while the payout is stopped, the payout process according to the received payout control command is stopped, but since a receiving ring buffer capable of storing a plurality of payout control commands is provided, it is sent from the game control means. The payout control command does not disappear in the payout control means.

【0377】そして、払出制御手段において、送出コマ
ンドを受信リングバッファにおけるどの領域に格納する
のかを示すアドレス指示手段としてのコマンド受信個数
カウンタが用いられる。よって、どの領域を使用すれば
よいのかの判断は容易である。
Then, in the payout control means, a command reception number counter is used as an address designating means for indicating in which area in the reception ring buffer the transmission command is stored. Therefore, it is easy to determine which area should be used.

【0378】なお、上記の実施の形態では、変動データ
記憶手段としてRAMを用いた場合を示したが、変動デ
ータ記憶手段として、電気的に書き換えが可能な記憶手
段であればRAM以外のものを用いてもよい。
In the above embodiment, the case where the RAM is used as the fluctuation data storage means is shown. However, as the fluctuation data storage means, any electrically rewritable storage means other than RAM can be used. You may use.

【0379】さらに、上記の実施の形態では、電源監視
手段が電源基板910に設けられ、システムリセットの
ための信号を発生する回路は電気部品制御基板に設けら
れたが、それらがともに電気部品制御基板に設けられて
いてもよい。
Further, in the above embodiment, the power supply monitoring means is provided on the power supply board 910 and the circuit for generating the signal for system reset is provided on the electric part control board. It may be provided on the substrate.

【0380】以上説明したように、電力供給停止時処理
(図19〜図21、図45〜図48参照)にて、検出維
持期間が経過するまでの間は、コンデンサ923,92
4に充電された電力を用いて、電源基板910(補助電
力供給手段および作動状態保持手段の機能を有する基板
である。)が、賞球カウントスイッチ301A(景品遊
技媒体検出手段の一例)および球貸しカウントスイッチ
301B(貸出遊技媒体検出手段の一例)を駆動可能な
電力を供給するとともに、ソレノイド310(通路切換
手段の一例)が振分部材311の状態を保持するための
駆動電力を供給し、遊技制御手段(CPU56)が賞球
カウントスイッチ301Aからの検出信号の入力処理
(ステップS460〜ステップS480)を行い、払出
制御手段(払出制御用CPU371)が賞球カウントス
イッチ301Aおよび球貸しカウントスイッチ301B
からの検出信号の入力処理(ステップS762〜ステッ
プS782)を行う構成としたので、電力供給停止時処
理にて、払い出された景品遊技媒体(入賞領域への入賞
にもとづいて景品として払い出される遊技媒体)や貸出
遊技媒体(遊技者からの貸出要求に応じて貸し出される
遊技媒体)を確実に検出することができるようになる。
すなわち、上述した遊技機によれば、電力供給停止時処
理にて払い出された遊技媒体の検出を確実に実行するこ
とができるので、遊技媒体の未払出数を正確に把握する
ことができるようになる。
As described above, in the power supply stoppage process (see FIGS. 19 to 21 and 45 to 48), the capacitors 923 and 92 are operated until the detection maintaining period elapses.
The power supply board 910 (which is a board having a function of an auxiliary power supply means and an operation state holding means) uses the electric power charged to 4 and a prize ball count switch 301A (an example of prize game medium detection means) and a ball. While supplying electric power capable of driving the lending count switch 301B (an example of a lending game medium detecting means), a solenoid 310 (an example of a passage switching means) supplies driving power for holding the state of the distribution member 311. The game control means (CPU 56) performs input processing of the detection signal from the prize ball count switch 301A (steps S460 to S480), and the payout control means (payout control CPU 371) has the prize ball count switch 301A and the ball lending count switch 301B.
Since the processing for inputting the detection signal from (step S762 to step S782) is performed, the prize gaming medium paid out in the power supply stop process (the game paid as a prize based on the winning in the winning area) It is possible to reliably detect a medium) and a rental game medium (a game medium that is rented in response to a lending request from a player).
That is, according to the above-mentioned gaming machine, it is possible to reliably execute the detection of the game medium paid out in the power supply stop process, so that the number of unpaid game media can be accurately grasped. become.

【0381】また、上述したように、検出維持期間が経
過するまでの間は、コンバータIC920(作動状態保
持手段の一例)によって、ソレノイド310に対して振
分部材311を駆動することが可能な電力を供給する構
成とされているので、通路切換手段としてのソレノイド
310の駆動状態を電気的な構成によって保持させるこ
とができる。上記のような構成とされていることから、
コンバータIC920は、検出維持期間が経過するまで
の間、振分部材311の状態を維持させるための電力を
供給する補助駆動電力供給手段として機能している。
Further, as described above, until the detection maintaining period elapses, the converter IC 920 (an example of the operation state holding means) can drive the distribution member 311 with respect to the solenoid 310. Is supplied, it is possible to maintain the drive state of the solenoid 310 as the passage switching means by an electrical configuration. Since it is configured as above,
The converter IC 920 functions as an auxiliary drive power supply unit that supplies power for maintaining the state of the distribution member 311 until the detection maintaining period elapses.

【0382】また、上述したように、上記の実施の形態
では、停電等の発生に応じて電源断信号が出力された
ら、まず、球払出装置97の駆動を停止した後、所定の
検出維持期間、払出検出手段(賞球カウントスイッチ3
01Aや球貸しカウントスイッチ301B)からの検出
信号の入力処理が実行され、その後、払出制御状態を保
存するための処理が行われる。従って、停電発生時に払
出途中であった遊技球も、バックアップRAMの保存内
容に反映される。よって、遊技機への電力供給停止時に
制御状態をバックアップ記憶手段に保存するように構成
した場合に、保存される制御状態と実際の制御状態との
間に矛盾等を生じさせないようにすることができる。
Further, as described above, in the above embodiment, when the power-off signal is output in response to the occurrence of a power failure or the like, first, the driving of the ball payout device 97 is stopped, and then the predetermined detection maintaining period is reached. , Payout detecting means (prize ball count switch 3
01A or the ball lending count switch 301B) is input with a detection signal, and then a process for saving the payout control state is performed. Therefore, the game balls that were being paid out when the power failure occurred are also reflected in the saved contents of the backup RAM. Therefore, when the control state is stored in the backup storage means when the power supply to the gaming machine is stopped, it is possible to prevent a contradiction or the like from occurring between the stored control state and the actual control state. it can.

【0383】なお、上述した実施の形態では、払出制御
手段が、電力供給停止時処理において、賞球カウントス
イッチ301Aおよび球貸しカウントスイッチ301B
がオンしたか否かをそれぞれ確認する構成としていた
が、いずれか一方のスイッチの状態を確認する構成とし
てもよい。
In the above-described embodiment, the payout control means sets the prize ball count switch 301A and the ball lending count switch 301B in the power supply stop process.
Although it is configured to confirm whether or not each switch is turned on, the configuration may be configured to confirm the state of either one of the switches.

【0384】図59〜図61は、上記のようにいずれか
一方のスイッチの状態を確認する構成とする場合の電源
基板910からの電源断信号に応じて実行されるマスク
不能割込処理(NMI処理:電力供給停止時処理)の処
理例を示すフローチャートである。なお、上述した図4
5〜図47にて既に説明した処理等については詳細な説
明を省略する。
FIGS. 59 to 61 show non-maskable interrupt processing (NMI) executed in response to a power-off signal from the power supply board 910 in the case of confirming the state of one of the switches as described above. It is a flowchart which shows the example of a process of a process: power supply stop process. In addition, FIG.
Detailed description of the processes and the like already described with reference to FIGS.

【0385】マスク不能割込処理において、払出制御用
CPU371は、ステップS801〜ステップS808
の処理を行ったあと、ステップS821〜ステップS8
27に示した出力ポートクリア処理を行う。その後、こ
の実施の形態では、所定期間(検出維持期間)、賞球カ
ウントスイッチ301A(賞遊技媒体払出検出手段に相
当)または球貸しカウントスイッチ301B(貸出遊技
媒体払出検出手段に相当)の検出信号をチェックする。
この例では、遊技球を検出する可能性のあるスイッチに
ついてのみ検出信号をチェックする。検出する可能性の
あるスイッチが賞球カウントスイッチ301Aである場
合には、賞球カウントスイッチ301Aをチェックし
て、オンしたら総合個数記憶の内容を1減らす。また、
検出する可能性のあるスイッチが球貸しカウントスイッ
チ301Bである場合には、球貸しカウントスイッチ3
01Bをチェックして、オンしたら貸し球個数記憶の内
容を1減らす。
In the non-maskable interrupt process, the payout control CPU 371 executes steps S801 to S808.
After performing the process of step S821 to step S8
The output port clear process shown in 27 is performed. After that, in this embodiment, a detection signal of a prize ball count switch 301A (corresponding to prize game medium payout detection means) or a ball lending count switch 301B (corresponding to rental game media payout detection means) for a predetermined period (detection maintaining period) Check.
In this example, the detection signal is checked only for the switches that may detect the game ball. When the switch that may be detected is the prize ball count switch 301A, the prize ball count switch 301A is checked, and when it is turned on, the content of the total number storage is decremented by one. Also,
If the switch that may be detected is the ball lending count switch 301B, the ball lending count switch 3
If 01B is checked and turned on, the content of the number of lent balls is reduced by 1.

【0386】この例では、払出制御用CPU371は、
賞球処理中フラグがオンしているか否か確認し(ステッ
プS828)、オンしている場合には賞球処理中である
ため、賞球カウントスイッチ301Aによって賞球が検
出される可能性があると判定する。賞球処理中フラグが
オンでなければ、払出制御用CPU371は、球貸し処
理中フラグがオンしているか否か確認し(ステップS8
29)、オンしている場合には球貸し処理中であるた
め、球貸しカウントスイッチ301Bによって貸し球が
検出される可能性があると判定する。
In this example, the payout control CPU 371 is
It is confirmed whether or not the award ball processing flag is turned on (step S828). If the award ball processing flag is turned on, it means that the award ball is being processed, and therefore the award ball count switch 301A may detect the award ball. To determine. If the prize ball processing flag is not on, the payout control CPU 371 confirms whether the ball lending processing flag is on (step S8).
29) If it is on, it is determined that the ball lending count switch 301B may detect the ball lending because the ball lending process is being performed.

【0387】なお、この例では、いずれのスイッチをチ
ェックする場合にも、所定期間を計測するために、所定
期間計測用カウンタが用いられる。賞球カウントスイッ
チ301Aをチェックする場合には、所定期間計測用カ
ウンタの値は、初期値mから、以下に説明する賞球カウ
ントスイッチ検出処理のループ(S763から始まって
S763に戻るループ)が1回実行される毎に−1さ
れ、その値が0になると、所定期間が終了したとする。
また、球貸しカウントスイッチ301Bをチェックする
場合には、所定期間計測用カウンタの値は、初期値mか
ら、以下に説明する球貸しカウントスイッチ検出処理の
ループ(S763aから始まってS763aに戻るルー
プ)が1回実行される毎に−1され、その値が0になる
と、所定期間が終了したとする。検出処理のループで
は、例外はあるがほぼ一定の処理が行われるので、ルー
プの1周に要する時間のm倍の時間が、ほぼ所定期間に
相当する。なお、所定期間を計測するために、払出制御
用CPU371の内蔵タイマを用いてもよい。
In this example, the counter for measuring the predetermined period is used to measure the predetermined period regardless of which switch is checked. When the prize ball count switch 301A is checked, the value of the counter for measuring the predetermined period is from the initial value m to a loop of prize ball count switch detection processing (loop starting from S763 and returning to S763) described below. It is decremented by 1 each time it is executed, and when the value becomes 0, it is assumed that the predetermined period has ended.
Further, when checking the ball lending count switch 301B, the value of the counter for measuring the predetermined period is from the initial value m, the loop of the ball lending count switch detection process described below (loop starting from S763a and returning to S763a). -1 is executed every time is executed, and when the value becomes 0, it is assumed that the predetermined period ends. Although there is an exception in the detection processing loop, substantially constant processing is performed, and therefore a time that is m times the time required for one round of the loop corresponds to a substantially predetermined period. The internal timer of the payout control CPU 371 may be used to measure the predetermined period.

【0388】ステップS828にて賞球処理中フラグが
オンであれば、払出制御用CPU371は、賞球カウン
トスイッチ301Aからの検出信号の入力処理(賞球カ
ウントスイッチ検出処理)を実行する。賞球カウントス
イッチ検出処理では、払出制御用CPU371は、ま
ず、所定期間計測用カウンタに、所定期間に対応した値
mを設定する(ステップS762)。そして、払出制御
用CPU371は、所定期間計測用カウンタの値を−1
し(ステップS763)、所定期間計測用カウンタの値
を確認する(ステップS764)。その値が0であれ
ば、賞球カウントスイッチ検出処理を終了し、制御状態
を保存するための処理である電力供給停止時処理に移行
する。
If the prize ball in-process flag is turned on in step S828, the payout control CPU 371 executes a process of inputting a detection signal from the prize ball count switch 301A (prize ball count switch detection process). In the prize ball count switch detection process, the payout control CPU 371 first sets a value m corresponding to a predetermined period in a predetermined period measurement counter (step S762). Then, the payout control CPU 371 sets the value of the counter for measuring the predetermined period to −1.
(Step S763), the value of the counter for measuring the predetermined period is confirmed (step S764). If the value is 0, the prize ball count switch detection process is terminated and the process proceeds to the power supply stop process which is a process for storing the control state.

【0389】所定期間計測用カウンタの値が0になって
いなければ、上述した図45と同様にステップS765
〜ステップS772の処理を行う。ただし、賞球カウン
トスイッチ検出処理では、ステップS767にて検出期
間用カウンタの値が0になっていない場合、ステップS
770にて賞球カウントスイッチ301Aがオン状態を
示していない場合、ステップS772にて検出期間用カ
ウンタに初期値nをセットした場合のいずれの場合で
も、それらの処理のあとにステップS763の処理に戻
る。以上の処理によって、所定期間内に賞球カウントス
イッチ301Aがオンしたら、総合個数記憶の値が−1
される。
If the value of the counter for measuring the predetermined period is not 0, the step S765 is performed as in the case of FIG.
-The process of step S772 is performed. However, in the prize ball count switch detection processing, if the value of the detection period counter is not 0 in step S767,
In either case, when the prize ball count switch 301A does not indicate the ON state in 770, or when the initial value n is set in the detection period counter in step S772, the process in step S763 is performed after those processes. Return. By the above processing, if the prize ball count switch 301A is turned on within the predetermined period, the value of the total number memory is -1.
To be done.

【0390】ステップS829にて球貸し処理中フラグ
がオンであれば、払出制御用CPU371は、球貸しカ
ウントスイッチ301Bからの検出信号の入力処理(球
貸しカウントスイッチ検出処理)を実行する。球貸しカ
ウントスイッチ検出処理では、払出制御用CPU371
は、まず、所定期間計測用カウンタに、所定期間に対応
した値mを設定する(ステップS762a)。そして、
払出制御用CPU371は、所定期間計測用カウンタの
値を−1し(ステップS763a)、所定期間計測用カ
ウンタの値を確認する(ステップS764a)。その値
が0であれば、球貸しカウントスイッチ検出処理を終了
し、制御状態を保存するための処理である電力供給停止
時処理に移行する。
If the ball lending processing flag is turned on in step S829, the payout control CPU 371 executes a process of inputting a detection signal from the ball lending count switch 301B (ball lending count switch detection process). In the ball lending count switch detection processing, the payout control CPU 371
First, a value m corresponding to a predetermined period is set in the counter for measuring the predetermined period (step S762a). And
The payout control CPU 371 decrements the value of the counter for measuring the predetermined period by -1 (step S763a), and confirms the value of the counter for measuring the predetermined period (step S764a). If the value is 0, the ball lending count switch detection process is terminated, and the process proceeds to the power supply stop process which is a process for saving the control state.

【0391】所定期間計測用カウンタの値が0になって
いなければ、上述した図46と同様にステップS775
〜ステップS782の処理を行う。ただし、球貸しカウ
ントスイッチ検出処理では、ステップS777にて検出
期間用カウンタの値が0になっていない場合、ステップ
S780にて球貸しカウントスイッチ301Bがオン状
態を示していない場合、ステップS782にて検出期間
用カウンタに初期値nをセットした場合のいずれの場合
でも、それらの処理のあとにステップS763aの処理
に戻る。以上の処理によって、所定期間内に球貸しカウ
ントスイッチ301Bがオンしたら、貸し球個数記憶の
値が−1される。
If the value of the counter for measuring the predetermined period is not 0, as in the case of FIG. 46 described above, step S775.
-The process of step S782 is performed. However, in the ball lending count switch detection processing, if the value of the detection period counter is not 0 in step S777, or if the ball lending count switch 301B is not in the ON state in step S780, in step S782. In any case where the initial value n is set in the detection period counter, the processing returns to step S763a after the processing. By the above processing, when the ball lending count switch 301B is turned on within a predetermined period, the value of the number of lent balls memorized is decremented by one.

【0392】また、ステップS828とステップS82
9にて、賞球処理中フラグおよび球貸し処理中フラグが
ともにオンでなければ、賞球カウントスイッチ301A
と球貸しカウントスイッチ301Bのいずれもオンする
可能性がないので、払出制御用CPU371は、スイッ
チのチェックを行うことなく、上述した図47の処理と
同様のバックアップRAMの内容の保存などの処理(ス
テップS809〜ステップS820)を行ったあと待機
状態(ループ状態)に入る。
Also, step S828 and step S82.
If both the prize ball processing flag and the ball lending processing flag are not turned on at 9, prize ball count switch 301A
Since there is no possibility of turning on both the ball lending count switch 301B and the ball lending count switch 301B, the payout control CPU 371 performs a process such as saving the contents of the backup RAM similar to the process of FIG. 47 described above without checking the switch ( After performing steps S809 to S820, a standby state (loop state) is entered.

【0393】上記のように、遊技球が検出される可能性
がない場合には、賞球カウントスイッチ301Aおよび
球貸しカウントスイッチ301Bのいずれの検出状態も
確認しない構成としたので、無駄な処理を省略すること
ができ、電力供給停止時処理(図59〜図61)を迅速
に行うことができる。すなわち、貸し球および賞球の払
出状態を確認する必要がない場合には、遊技媒体の払い
出しを検出した場合に出力される検出信号の入力処理自
体を行わない構成としているので、電力供給停止時処理
を迅速に遂行することができるようになる。
As described above, when there is no possibility that a game ball will be detected, neither the prize ball count switch 301A nor the ball lending count switch 301B is detected. It can be omitted, and the processing at the time of stopping the power supply (FIGS. 59 to 61) can be quickly performed. That is, when it is not necessary to confirm the payout state of the lent balls and the prize balls, the detection signal output when the payout of the game medium is detected is not input. The processing can be performed quickly.

【0394】また、上記のように、賞球カウントスイッ
チ301Aまたは球貸しカウントスイッチ301Bのう
ち、遊技球が検出される可能性のあるスイッチについて
のみについて選択的に検出状態を確認する構成としたこ
とで、無駄な処理を省略することができる。また、図4
5等に示したスイッチ検出処理のループ処理よりも、図
59や図60に示すスイッチ検出のループ処理の方が処
理期間が短いので、たとえ所定時間計測用カウンタに設
定する値が同じであっても、最終回のループ処理にて処
理期間に差が出るため、上記の構成とすることで電力供
給停止時処理(図59〜図61)を迅速に行うことがで
きるようになる。従って、図45等に示した電力供給停
止時処理が実行される場合と比較して、コンデンサ92
3,924の容量を小さくすることができる。
As described above, of the prize ball count switch 301A or the ball lend count switch 301B, the detection state is selectively confirmed only for the switch in which the game ball may be detected. Thus, useless processing can be omitted. Also, FIG.
Since the processing period of the switch detection loop processing shown in FIGS. 59 and 60 is shorter than that of the switch detection processing loop processing shown in FIG. 5 and the like, even if the value set in the predetermined time measurement counter is the same, Also, since there is a difference in the processing period in the final loop processing, the above configuration allows the power supply stop processing (FIGS. 59 to 61) to be quickly performed. Therefore, as compared with the case where the power supply stop process shown in FIG.
The capacity of 3,924 can be reduced.

【0395】なお、上記の例では、賞球処理中フラグが
オンでない場合に、球貸し処理中フラグの状態を確認す
る構成としたが、賞球処理中フラグがオンでなければ直
ちに球貸しカウントスイッチ検出処理を実行する構成と
してもよい。また、賞球処理中フラグを確認することな
く球貸し処理中フラグの状態を確認する構成とし、球貸
し処理中フラグがオンでなければ直ちに賞球カウントス
イッチ検出処理を実行する構成としてもよい。このよう
に構成すれば、検出される可能性が残されているスイッ
チの状態を迅速に確認することができる。
In the above example, when the award ball processing flag is not on, the state of the ball lending processing flag is confirmed. The switch detection process may be executed. Further, the state of the ball lending processing flag may be confirmed without checking the prize ball processing flag, and the prize ball count switch detection processing may be executed immediately if the ball lending processing flag is not on. According to this structure, it is possible to quickly confirm the state of the switch that has a possibility of being detected.

【0396】また、上記の例では、賞球カウントスイッ
チ301Aおよび球貸しカウントスイッチ301Bのい
ずれの検出状態も確認しないか、賞球カウントスイッチ
301Aまたは球貸しカウントスイッチ301Bのいず
れか一方の検出状態を確認する構成としていたが、賞球
カウントスイッチ301Aおよび球貸しカウントスイッ
チ301Bのいずれも確認する構成としてもよい。この
ように構成すれば、いずれのスイッチからの検出信号で
あるか否かを確認することなく、検出信号の入力があっ
た場合に賞球あるいは貸し球のいずれが検出されたので
あるか認識することができる。例えば、賞球処理中フラ
グがオンしていることを確認したあとカウントスイッチ
からの検出信号が入力した場合には、払出制御用CPU
371が、賞球カウントスイッチ301Aからの検出信
号が入力したと認識するようにすればよい。よって、上
記のように構成すれば、賞球および球貸し用の一つのカ
ウントスイッチによって払い出された遊技球を検出する
構成としても、検出した遊技球が賞球であるのか貸し球
であるのかを的確に判定することができるようになる。
In the above example, neither the detection state of the prize ball count switch 301A nor the ball lending count switch 301B is confirmed, or the detection state of either the prize ball count switch 301A or the ball lending count switch 301B is set. Although the confirmation is performed, both the prize ball count switch 301A and the ball lending count switch 301B may be confirmed. With this configuration, it is possible to recognize whether the prize ball or the loan ball is detected when the detection signal is input, without checking which switch the detection signal is from. be able to. For example, if the detection signal from the count switch is input after confirming that the prize ball processing flag is turned on, the payout control CPU
It suffices that the 371 recognize that the detection signal from the prize ball count switch 301A has been input. Therefore, if configured as described above, whether the detected game ball is a prize ball or a loan ball even if the game ball paid out by one count switch for prize balls and ball lending is detected Can be accurately determined.

【0397】また、上述した各実施の形態では、ソレノ
イド310のオン/オフに応じて、振分部材311が球
貸し側/賞球側に遊技球が流下するように倒れる構成と
していたが、例えば、振分部材311が倒れる位置をモ
ータによって制御する構成とし、モータがオンする度に
球貸し側/賞球側に交互に振分部材311が倒れる構成
としてもよい。この構成では、振分部材311は、モー
タが新たにオンしない限り、現在の状態を継続して維持
することになる。よって、上記のように構成すること
で、電力供給停止時処理にて、モータの駆動電源の電圧
の状態とは無関係に、機械的な構造によって振分部材3
11の状態を維持しておくことができるようになる。な
お、上記の構成とした場合には、電力供給が開始したあ
との復旧処理(図44参照)あるいは初期化処理にて、
振分部材311の状態を初期状態(例えば、球貸し側に
遊技球が流下する状態)に戻す処理を実行するようにす
ればよい。所定の処理を行う度に球貸し側/賞球側に交
互に振分部材311が倒れるようにすることができるも
のであれば、モータ以外の部材(例えばラッチ式のソレ
ノイドなど)を用いるようにしてもよい。上記のように
構成した場合には、振分部材311が倒れる位置を制御
するモータが通路切換手段として機能するとともに、モ
ータからの駆動信号がない限り現在の状態を維持可能な
機構を有する振分部材311が作動状態保持手段として
機能することになる。また、振分部材311が有する球
貸し側/賞球側の状態を維持可能な機構が、検出維持期
間が経過するまでの間、通路切換手段の状態を保持可能
な保持機構として機能することになる。
Further, in each of the above-described embodiments, the distribution member 311 is arranged to fall down so that the game ball flows down to the ball lending side / prize ball side in accordance with the turning on / off of the solenoid 310. The position where the distribution member 311 falls may be controlled by a motor, and the distribution member 311 may alternately fall to the ball lending side / prize ball side each time the motor is turned on. In this configuration, the distribution member 311 will continue to maintain the current state unless the motor is newly turned on. Therefore, by configuring as described above, the distribution member 3 has a mechanical structure in the power supply stop process regardless of the voltage state of the drive power source of the motor.
The state of 11 can be maintained. In the case of the above configuration, in the restoration process (see FIG. 44) or the initialization process after the power supply is started,
The process of returning the state of the distribution member 311 to the initial state (for example, the state in which the game ball flows down to the ball lending side) may be executed. If the sorting member 311 can be alternately tilted to the ball lending side / prize ball side each time a predetermined process is performed, a member other than the motor (for example, a latch-type solenoid) should be used. May be. In the case of the above-described configuration, the motor that controls the position where the distributing member 311 falls down functions as the passage switching means, and the distribution that has a mechanism that can maintain the current state unless there is a drive signal from the motor. The member 311 will function as an operation state holding means. Further, the mechanism of the distribution member 311 capable of maintaining the state of the ball lending side / prize ball side functions as a holding mechanism capable of holding the state of the passage switching means until the detection maintaining period elapses. Become.

【0398】また、上記の各実施の形態では、遊技媒体
検出判定期間(検出期間用カウンタによって計測される
期間)がほぼ2msとなるようにn(ステップS772
やステップS782参照)を設定するようにしてもよい
旨の説明をしたが、例えばステップS763からステッ
プS763に戻るループ処理が2ms毎に実行されるよ
うに、ステップS763のあとに所定の遅延期間(2m
sから通常のループ処理にかかる期間を減算した期間)
が経過するまで遅延させる処理を行う構成としてもよ
い。遅延期間は、例えばソフトウェアタイマによって計
測されるようにすればよい。なお、ステップS763a
からステップS763aに戻るループ処理についても同
様である。また、2ms以外の他の期間としてもよい。
In each of the above embodiments, n is set so that the game medium detection determination period (the period measured by the detection period counter) is approximately 2 ms (step S772).
Or step S782) may be set. However, for example, a predetermined delay period (step S763) is executed after step S763 so that the loop processing of returning from step S763 to step S763 is executed every 2 ms. 2m
(A period obtained by subtracting the period required for normal loop processing from s)
It may be configured to perform a process of delaying until elapse. The delay period may be measured by, for example, a software timer. Note that step S763a
The same applies to the loop processing that returns from step S763a. Further, the period may be other than 2 ms.

【0399】また、上記の各実施の形態では、電力供給
停止時処理において、遊技球が払い出されたか否かを監
視し、払い出された場合には未払出の遊技球数として記
憶している値を減算する処理(ステップS474、ステ
ップS769、ステップS779)を行っていたが、未
払出数の記憶値を減算する処理を行うことなく、賞球カ
ウントスイッチ301Aや球貸しカウントスイッチ30
1Bがオンしたか否かを確認し、その確認結果を電源バ
ックアップされているRAMに保存する構成としてもよ
い。この場合、電力供給が開始したあとの復旧処理(図
17、図44参照)において、電源バックアップされて
いるRAMの記憶内容にもとづいて電力供給停止時処理
の実行中に賞球カウントスイッチ301Aや球貸しカウ
ントスイッチ301Bがオンしていたことが確認された
場合に、未払出数の記憶値を減算する処理を行うように
すればよい。上記のように、電力供給停止時処理におい
て賞球カウントスイッチ301Aや球貸しカウントスイ
ッチ301Bがオンした場合に、未払出数を更新するこ
となく、その賞球カウントスイッチ301Aや球貸しカ
ウントスイッチ301Bからの検出信号の入力処理の結
果を保存して、復旧時に、保存されていた入力処理の結
果に応じて未払出数を更新する構成とすれば、電力供給
停止時処理にて未払出数として記憶している値を変更す
る処理を行う必要がないので、処理を迅速に終えること
ができるようになり、電力供給が停止する前に未払出の
遊技球数を管理するために実行される処理をより確実に
完了させることができるようになる。なお、上記のよう
な構成の一例が、後述する実施の形態3で実現されてい
る。
Further, in each of the above embodiments, in the power supply stop process, it is monitored whether or not the game balls have been paid out, and when the game balls have been paid out, it is stored as the number of unpaid game balls. Although the process of subtracting the stored value (step S474, step S769, step S779) was performed, the prize ball count switch 301A and the ball lending count switch 30 are not performed without the process of subtracting the stored value of the unpaid amount.
The configuration may be such that it is confirmed whether or not the 1B is turned on, and the confirmation result is stored in the RAM whose power is backed up. In this case, in the recovery process (see FIGS. 17 and 44) after the power supply is started, the prize ball count switch 301A and the ball are switched while the power supply stop process is being executed based on the stored contents of the RAM backed up by the power supply. If it is confirmed that the lending count switch 301B is turned on, a process of subtracting the stored value of the unpaid amount may be performed. As described above, when the prize ball count switch 301A or the ball lending count switch 301B is turned on in the power supply stop process, the award ball count switch 301A or the ball lending count switch 301B is updated without updating the unpaid amount. If the configuration is such that the result of the input processing of the detection signal of is saved and the number of unpaid amounts is updated according to the saved input process result at the time of restoration, it is stored as the unpaid amount in the power supply stop process. Since it is not necessary to perform the process of changing the value being processed, it becomes possible to finish the process quickly, and the process executed to manage the number of unpaid gaming balls before the power supply is stopped It can be completed more reliably. It should be noted that an example of the above-described configuration is realized in Embodiment 3 described later.

【0400】上記のように、電力供給停止時処理を迅速
に終えるようにすれば、スタックオーバーフローを生じ
させ、初期化処理を実行させることにより大当りを発生
させる不正行為を防止することができる。すなわち、電
力供給の停止が生ずる訳ではないにも関わらず、電源断
を検出する検出回路の側からマイクロコンピュータの割
込端子に至る信号線において電源断信号が連続的に入力
されると、スタック領域のサイズには限界があるにもか
かわらず、繰り返し割込処理が実行されることによって
スタック領域へのデータ保存が繰り返され、遂にはスタ
ックオーバーフローが生じてしまう。その結果、スタッ
クオーバーフローに起因してRAM領域の内容が破壊さ
れてしまうことによりプログラム暴走が生じたことにも
とづいて、ウォッチドッグタイマのタイムアップが生じ
てマイクロコンピュータにリセットがかかり、RAM領
域の内容が初期化される。大当りを発生させるか否か
は、一般に、所定のタイミング(例えば始動入賞の発生
時すなわち始動入賞信号の入力時)において、RAM領
域に形成された乱数発生用カウンタのカウント値があら
かじめ決められた大当り判定値に一致するか否かによっ
て決定される。電源断信号が連続的に入力されると、上
述したようにシステムリセットがかかり、初期化処理に
てRAMの内容が初期化されるので、大当りを発生させ
るか否かを決定するための乱数発生用カウンタのカウン
ト値も初期化される(0に戻される。)。すると、カウ
ント値が0から歩進を開始するので、カウント値があら
かじめ決められた大当り判定値に一致するタイミングを
容易に把握できてしまう。つまり、不正基板等の不正手
段を遊技機に搭載し、不正手段からマイクロコンピュー
タに対して電源断信号(割込信号)を連続的に入力させ
るとともに、乱数発生用カウンタのカウント値が大当り
判定値に一致するようなタイミングで、マイクロコンピ
ュータが搭載されている遊技制御基板に対して不正に始
動入賞信号を送り込むことによって、不正に大当りを生
じさせることが可能になってしまう。上記の例では、電
力供給停止時処理が迅速に行われるので、不正な行為に
よって電源断信号が連続的に入力される前に、最初の電
源断信号の入力にもとづく電力供給停止時処理が完了し
ている可能性を高めることができる。従って、不正に割
込信号を送り込むような不正行為が行われても、その行
為を無効とすることが期待できる。なお、後述する他の
構成(例えば電力供給停止時処理におけるスイッチチェ
ックを、賞球あるいは貸し球についてのみ行う構成)に
よって電力供給停止時処理を迅速に終えるようにした場
合であっても、上記と同様の効果を得ることができる。
As described above, if the power supply stop process is quickly completed, it is possible to prevent a fraudulent act which causes a big hit by causing a stack overflow and executing an initialization process. That is, even if the power supply is not stopped, if the power-off signal is continuously input to the signal line from the detection circuit side that detects power-off to the interrupt terminal of the microcomputer, the stack Although the size of the area is limited, the data is repeatedly stored in the stack area due to the repeated interrupt processing, which eventually causes a stack overflow. As a result, the contents of the RAM area are destroyed due to the stack overflow, and the program runaway occurs. Therefore, the watchdog timer times up, the microcomputer is reset, and the contents of the RAM area are lost. Is initialized. Whether or not to generate a big hit is generally a big hit in which a count value of a random number generation counter formed in the RAM area is predetermined at a predetermined timing (for example, when a start prize is generated, that is, when a start prize signal is input). It is determined by whether or not it matches the judgment value. When the power-off signal is continuously input, the system is reset as described above, and the RAM contents are initialized in the initialization process, so a random number is generated to determine whether or not a big hit should be generated. The count value of the use counter is also initialized (returned to 0). Then, since the count value starts from 0, it is possible to easily grasp the timing when the count value coincides with the predetermined jackpot determination value. In other words, a fraudulent means such as a fraudulent board is mounted on a gaming machine, and a power-off signal (interrupt signal) is continuously input to the microcomputer from the fraudulent means, and the count value of the random number generation counter is the jackpot judgment value It is possible to illegally generate a big hit by illegally sending a start winning signal to the game control board on which the microcomputer is mounted at a timing that coincides with. In the above example, the power supply stop process is performed quickly, so the power supply stop process based on the input of the first power supply stop signal is completed before the power supply stop signal is continuously input due to an illegal act. You can increase the possibility that you are doing. Therefore, even if an illegal act such as illegally sending an interrupt signal is performed, it can be expected to invalidate the act. Even when the power supply stop process is quickly ended by another configuration described later (for example, a switch check in the power supply stop process is performed only for prize balls or loan balls), The same effect can be obtained.

【0401】また、上記の各実施の形態では、球払出装
置97が賞球も貸し球も払い出し、振分ソレノイド31
0で駆動される振分部材311によって、賞球流下経路
(景品遊技媒体通路)と貸し球流下経路(貸出遊技媒体
経路)とが切り換えられた。しかし、賞球払出球を行う
払出装置と球貸しを行う払出装置とを別個に設けてもよ
い。
Further, in each of the above-mentioned embodiments, the ball payout device 97 pays out the prize balls and the lending balls, and the distribution solenoid 31.
By the distribution member 311 driven by 0, the prize ball downflow path (prize game medium path) and the rental ball downflow path (rental game medium path) were switched. However, a payout device for paying a prize ball and a payout device for lending a ball may be separately provided.

【0402】さらに、上述した各実施の形態では、払出
モータ289として、払出制御用CPU371からのパ
ルス信号(駆動信号)によって回転するステッピングモ
ータを用いる構成としたが、ソレノイドを用いる構成と
してもよい。この場合、電力供給停止時処理において、
賞球カウントスイッチ301Aや球貸しカウントスイッ
チ301Bの状態を確認する処理の前(例えばステップ
S762の前)に、払出モータ289の駆動を停止させ
る処理を行うようにすればよい。このように構成すれ
ば、ソレノイドを用いて払出モータ289を構成したと
しても、電力消費を抑制することができるようになる。
Furthermore, in each of the above-described embodiments, the stepping motor that rotates in response to the pulse signal (driving signal) from the payout control CPU 371 is used as the payout motor 289, but a solenoid may be used. In this case, in the power supply stop process,
The process of stopping the driving of the payout motor 289 may be performed before the process of confirming the state of the prize ball count switch 301A or the ball lending count switch 301B (for example, before step S762). According to this structure, even if the payout motor 289 is configured by using the solenoid, the power consumption can be suppressed.

【0403】実施の形態2.図62は、第2の実施の形
態(実施の形態2)における主基板31から他の各電気
部品制御基板(サブ基板)に送信される制御コマンド
(払出制御コマンド、表示制御コマンド、ランプ制御コ
マンド、音制御コマンド)の送出形態を示すタイミング
図である。この例では、上述した実施の形態とは異なる
形態の制御コマンドを用いる。すなわち、図9に示した
主基板31の出力ポート(出力ポート1)571からは
8ビットのコマンドデータが出力され、出力ポート57
0からは割込信号およびストローブ信号(STB信号)
が出力される。割込信号は、表示制御用CPU101の
割込端子に入力される。また、STB信号は、I/Oポ
ートに入力される。
Embodiment 2. FIG. 62 is a control command (payout control command, display control command, lamp control command) transmitted from the main board 31 to each of the other electric component control boards (sub-boards) in the second embodiment (Embodiment 2). , Sound control command). In this example, a control command of a form different from that of the above-described embodiment is used. That is, 8-bit command data is output from the output port (output port 1) 571 of the main board 31 shown in FIG.
Interrupt signal and strobe signal (STB signal) from 0
Is output. The interrupt signal is input to the interrupt terminal of the display control CPU 101. Further, the STB signal is input to the I / O port.

【0404】図62に示すように、主基板31(メイ
ン)からコマンドデータが出力された後、割込信号およ
びSTB信号がオン状態になる。このように、遊技制御
手段は、コマンドデータの出力に関連して、データ出力
中信号(この例ではSTB信号)の出力タイミングと同
タイミングで、コマンドデータの電気部品制御手段への
入力を指示するための指示信号としての割込信号を出力
する。
As shown in FIG. 62, after the command data is output from the main board 31 (main), the interrupt signal and the STB signal are turned on. In this way, the game control means, in relation to the output of the command data, instructs the input of the command data to the electric component control means at the same timing as the output timing of the data outputting signal (STB signal in this example). It outputs an interrupt signal as an instruction signal for.

【0405】その後、メインからの割込信号はオフ状態
になり、サブ基板の電気部品制御手段がコマンド受信処
理を完了した後のタイミングで、メインからのSTB信
号はオフ状態になる。
After that, the interrupt signal from the main is turned off, and the STB signal from the main is turned off at the timing after the electric component control means of the sub-board completes the command receiving process.

【0406】図63は、払出制御コマンドを送信するた
めのコマンド制御処理の一例を示すフローチャートであ
る。払出制御コマンドを送信するためのコマンド制御処
理は、例えば、図18に示されたフローチャートにおけ
るステップS32の賞球処理において実行される。払出
制御コマンドを送信するためのコマンド制御処理におい
て、CPU56は、出力ポート1出力内容記憶領域(出
力ポート1の出力内容を記憶する領域。なお、払出制御
コマンドの送出要求を行うための払出制御コマンド送出
要求フラグに対応して設けられている。)に、送出すべ
き払出制御コマンドのコマンドデータを書き込む(ステ
ップS321)。そして、払出制御コマンド送出要求フ
ラグをセットする(ステップS322)。なお、ステッ
プS321では出力ポート1出力内容記憶領域ではなく
バックアップRAMにおける他の領域にコマンドデータ
を書き込み、実際にコマンドデータが出力ポート1に出
力されるときに、出力ポート1出力内容記憶領域にコマ
ンドデータを書き込むように構成してもよい。
FIG. 63 is a flowchart showing an example of command control processing for transmitting a payout control command. The command control process for transmitting the payout control command is executed, for example, in the prize ball process of step S32 in the flowchart shown in FIG. In the command control process for transmitting the payout control command, the CPU 56 stores the output content of the output port 1 (the area for storing the output content of the output port 1. The payout control command for making a request to send the payout control command) Command data of the payout control command to be sent is written in (provided corresponding to the send request flag) (step S321). Then, the payout control command transmission request flag is set (step S322). In step S321, command data is written in another area of the backup RAM instead of the output port 1 output content storage area, and when the command data is actually output to the output port 1, the command is output to the output port 1 output content storage area. It may be configured to write data.

【0407】例えば、賞球払出数を指定するための払出
制御コマンドとして、01(H)〜0F(H)のいずれ
かが用いられる。従って、1個〜15個の賞球払出数を
指定することができる。また、払出制御状態を指定する
ための払出制御コマンドとして、01(H)〜0F
(H)以外の1バイトのデータが用いられる。例えば、
払出禁止を指定する場合には11(H)が用いられ、払
出禁止解除を指定する場合には12(H)が用いられ
る。あるいは、払出禁止/払出禁止解除の原因毎に払出
制御コマンドを定義してもよい。例えば、球切れ(補給
球不足)の場合にはF0(H)、その解除の場合にはF
1(H)、下皿満タンの場合にはF2(H)、その解除
の場合にはF3(H)のようにしてもよい。さらに、1
バイトのうちの上位の4ビットを指示の種類を示すデー
タとし、下位の4ビットを具体的内容を示すデータとし
てもよい。例えば、上位4ビットが0000であれば賞
球払出数を指示することとし下位4ビットで賞球数を示
すようにする。また、上位4ビットが0001であれば
払出禁止/払出禁止解除を指示することにしてもよい。
For example, any one of 01 (H) to 0F (H) is used as a payout control command for designating the number of prize balls to be paid out. Therefore, the number of payouts of 1 to 15 prize balls can be designated. Further, as a payout control command for designating the payout control state, 01 (H) to 0F
1-byte data other than (H) is used. For example,
11 (H) is used to specify the withdrawal prohibition, and 12 (H) is used to specify the withdrawal prohibition. Alternatively, the payout control command may be defined for each of the causes of prohibition of payout / release of prohibition of payout. For example, F0 (H) in the case of running out of balls (insufficient supply balls) and F0 in the case of releasing it.
1 (H), F2 (H) when the lower plate is full, and F3 (H) when the lower plate is released. Furthermore, 1
The upper 4 bits of the byte may be data indicating the type of instruction, and the lower 4 bits may be data indicating specific contents. For example, if the upper 4 bits are 0000, the number of prize balls to be paid out is designated, and the lower 4 bits indicate the number of prize balls. Further, if the upper 4 bits are 0001, the payout prohibition / payout prohibition cancellation may be instructed.

【0408】この例では、例えば図18に示した割込処
理(ただし、本例では図18の処理とは異なるタイミン
グで割込処理が実行される)にてポート出力処理が実行
され、このポート出力処理によって制御コマンドが出力
される。ここでは、払出制御コマンドを出力するための
ポート出力処理について説明する。ポート出力処理にお
いて、CPU56は、払出制御コマンド送出要求フラグ
がセットされていれば、出力ポート1出力内容記憶領域
のデータを出力ポート1に出力する。このタイミング
は、図62におけるa区間の開始時に相当する。
In this example, the port output process is executed in the interrupt process shown in FIG. 18 (however, in this example, the interrupt process is executed at a timing different from the process of FIG. 18), and the port output process is executed. A control command is output by the output processing. Here, a port output process for outputting a payout control command will be described. In the port output process, the CPU 56 outputs the data in the output content storage area of the output port 1 to the output port 1 if the payout control command transmission request flag is set. This timing corresponds to the start of section a in FIG.

【0409】次に、CPU56は、出力ポート0の、デ
ータを出力した出力ポート1に対応した出力ポート0の
割込信号のビット(ビット0〜3のいずれか(ここでは
払出制御コマンドなのでビット0:払出制御信号用割込
信号))と、出力ポート0のSTB信号のビット(ビッ
ト4〜7のいずれか(ここでは払出制御コマンドなので
ビット4:払出制御信号用STB信号))とに「1」を
出力する。このタイミングは、図62におけるb区間の
開始時に相当する。なお、コマンドデータの出力と、割
込信号およびSTB信号の出力との間に、ディレイ時間
をおいてもよい。
Next, the CPU 56 sets the bit of the interrupt signal of the output port 0 of the output port 0 corresponding to the output port 1 which has output the data (one of the bits 0 to 3 (here, bit 0 because it is a payout control command). : Payout control signal interrupt signal)) and the bit of the STB signal of the output port 0 (any one of bits 4 to 7 (here, since it is a payout control command, bit 4: payout control signal STB signal)), "1. Is output. This timing corresponds to the start of section b in FIG. A delay time may be provided between the output of the command data and the output of the interrupt signal and the STB signal.

【0410】そして、払出制御コマンド送出要求フラグ
をクリアする。なお、出力ポート0の出力状態を出力ポ
ート0出力内容記憶領域にコピーしておく。
Then, the payout control command transmission request flag is cleared. The output state of output port 0 is copied to the output content storage area of output port 0.

【0411】次いで、図62におけるb区間とc区間の
時間の合計に相当する時間だけ待ってから、データを出
力した出力ポート1に対応した出力ポート0の割込信号
のビット(ここではビット0:払出制御信号用割込信
号)を「0」にする(ステップS349)。また、出力
ポート0の出力状態を出力ポート0出力内容記憶領域に
コピーしておく。このタイミングは、図62におけるd
区間の開始時に相当する。なお、b区間は、主基板31
が割込信号を出力してからサブ基板(ここでは払出制御
基板37)において割込が受け付けられるまでの遅れ時
間に相当する。
Then, after waiting for a time corresponding to the sum of the times of the section b and the section c in FIG. 62, the bit (here, bit 0) of the interrupt signal of the output port 0 corresponding to the output port 1 which has output the data is waited. : The payout control signal interrupt signal) is set to "0" (step S349). Further, the output state of the output port 0 is copied to the output content of the output port 0 storage area. This timing is d in FIG.
It corresponds to the start of the section. The section b is the main board 31.
Corresponds to the delay time from the output of the interrupt signal to the acceptance of the interrupt by the sub-board (here, the payout control board 37).

【0412】さらに、図62におけるd区間とe区間の
時間の合計に相当する時間だけ待ってから、データを出
力した出力ポート(ここでは出力ポート1)に対応した
出力ポート0のSTB信号のビット(ここではビット
4:払出制御信号用STB信号)を「0」にする。ま
た、出力ポート0の出力状態を出力ポート0出力内容記
憶領域にコピーしておく。このタイミングは、図62に
おけるe区間の終了時に相当する。
Further, after waiting for a time corresponding to the sum of the times of the d section and the e section in FIG. 62, the bit of the STB signal of the output port 0 corresponding to the output port (here, output port 1) that has output the data. (Here, bit 4: STB signal for payout control signal) is set to "0". Further, the output state of the output port 0 is copied to the output content of the output port 0 storage area. This timing corresponds to the end of section e in FIG.

【0413】なお、この例では、タイマ割込処理が4m
s毎に実行される。従って、上述したポート出力処理も
4msに1回しか実行されない。従って、各電気部品制
御基板には、主基板31から、1回の制御期間(この例
では4ms)において高々1つの制御コマンドしか出力
されない。
In this example, the timer interrupt processing is 4m.
It is executed every s. Therefore, the above-mentioned port output processing is also executed only once in 4 ms. Therefore, at most one control command is output from the main board 31 to each electric component control board in one control period (4 ms in this example).

【0414】以上のようにして、図62に示されたよう
なタイミングで、制御コマンドがサブ基板に送出され
る。なお、タイマ割込がかかったときに、複数種類の制
御コマンド送出要求フラグがオンしていたときには、例
えば、あらかじめ決められている優先順位に従って、い
ずれかの制御コマンド送出要求フラグについてポート出
力処理が実行される。
As described above, the control command is sent to the sub-board at the timing shown in FIG. If a plurality of types of control command transmission request flags are turned on when the timer interrupt occurs, for example, the port output processing is performed for one of the control command transmission request flags according to a predetermined priority order. To be executed.

【0415】このように、この実施の形態では、制御コ
マンドのコマンドデータを出力するときに、ポート出力
内容記憶領域のデータを出力ポートに出力する。そし
て、ポート出力内容記憶領域のデータは、電力供給が停
止しても所定期間はその内容が保存されるバックアップ
RAMに設定される。この例では、メイン処理において
はポート出力内容記憶領域ではなくバックアップRAM
における他の領域にコマンドデータを書き込み、実際に
コマンドデータが出力ポートに出力されるときに、ポー
ト出力内容記憶領域にコマンドデータを書き込む。従っ
て、出力ポートにコマンドデータを出力するときに、ポ
ート出力内容記憶領域に、出力ポートに出力したコマン
ドデータが設定される構成とされている。
As described above, in this embodiment, when the command data of the control command is output, the data in the port output content storage area is output to the output port. Then, the data in the port output content storage area is set in the backup RAM in which the content is stored for a predetermined period even if the power supply is stopped. In this example, in the main process, a backup RAM is used instead of the port output content storage area.
Command data is written in the other area in the above, and when the command data is actually output to the output port, the command data is written in the port output content storage area. Therefore, when the command data is output to the output port, the command data output to the output port is set in the port output content storage area.

【0416】次に、この例における払出制御用CPU3
71の処理について説明する。図64は、払出制御手段
(払出制御用CPU371およびROM,RAM等の周
辺回路)がプログラムに従って実行するメイン処理を示
すフローチャートである。メイン処理では、払出制御用
CPU371は、上述したステップS701〜ステップ
S705の処理を実行したあとに(図42参照)、ウォ
ッチドッグクリア処理(ステップS705A)を行っ
て、RAMをアクセス可能状態に設定する(ステップS
706)。ステップS705Aでは、払出制御用CPU
371がウォッチドッグ機能を内蔵し、それを利用して
いる場合には、ウォッチドッグ機能の初期化およびタイ
マクリア処理が行われる。
Next, the payout control CPU 3 in this example
The processing of 71 will be described. FIG. 64 is a flowchart showing main processing executed by the payout control means (the payout control CPU 371 and peripheral circuits such as ROM and RAM) according to a program. In the main processing, the payout control CPU 371 performs the watchdog clear processing (step S705A) after executing the above-described processing of steps S701 to S705 (see FIG. 42) to set the RAM in the accessible state. (Step S
706). In step S705A, the payout control CPU
When the watchdog function is built in the 371 and is utilized, initialization of the watchdog function and timer clear processing are performed.

【0417】この実施の形態では、内蔵CTCのうちの
一つのチャネルがタイマモードで使用される。従って、
ステップS704の内蔵デバイスレジスタの設定処理お
よびステップS705の処理において、使用するチャネ
ルをタイマモードに設定するためのレジスタ設定、割込
発生を許可するためのレジスタ設定および割込ベクタを
設定するためのレジスタ設定が行われる。そして、その
チャネルによる割込がタイマ割込として用いられる。タ
イマ割込を例えば1ms毎に発生させたい場合は、初期
値として1msに相当する値が所定のレジスタ(時間定
数レジスタ)に設定される。
In this embodiment, one channel of the built-in CTC is used in the timer mode. Therefore,
In the built-in device register setting processing of step S704 and the processing of step S705, register setting for setting the channel to be used in timer mode, register setting for permitting interrupt generation, and register for setting interrupt vector Settings are made. Then, the interrupt by that channel is used as a timer interrupt. When it is desired to generate a timer interrupt every 1 ms, for example, a value corresponding to 1 ms is set in a predetermined register (time constant register) as an initial value.

【0418】なお、タイマモードに設定されたチャネル
(この実施の形態ではチャネル3)に設定される割込ベ
クタは、タイマ割込処理の先頭アドレスに相当するもの
である。具体的は、Iレジスタに設定された値と割込ベ
クタとでタイマ割込処理の先頭アドレスが特定される。
タイマ割込処理では、払出制御処理が実行される。
The interrupt vector set in the channel set to the timer mode (channel 3 in this embodiment) corresponds to the start address of the timer interrupt process. Specifically, the start address of the timer interrupt process is specified by the value set in the I register and the interrupt vector.
In the timer interrupt process, payout control process is executed.

【0419】また、内蔵CTCのうちの他の一つのチャ
ネル(この実施の形態ではチャネル2)が、遊技制御手
段からの払出制御コマンド受信のための割込発生用のチ
ャネルとして用いられ、そのチャネルがカウンタモード
で使用される。従って、ステップS704の内蔵デバイ
スレジスタの設定処理およびステップS705の処理に
おいて、使用するチャネルをカウンタモードに設定する
ためのレジスタ設定、割込発生を許可するためのレジス
タ設定および割込ベクタを設定するためのレジスタ設定
が行われる。
Also, another one of the built-in CTCs (channel 2 in this embodiment) is used as an interrupt generation channel for receiving a payout control command from the game control means, and that channel is used. Is used in counter mode. Therefore, in the built-in device register setting processing of step S704 and the processing of step S705, in order to set the register setting for setting the channel to be used in the counter mode, the register setting for permitting interrupt generation, and the interrupt vector. Register setting is performed.

【0420】カウンタモードに設定されたチャネル(チ
ャネル2)に設定される割込ベクタは、後述するコマン
ド受信割込処理の先頭アドレスに相当するものである。
具体的は、Iレジスタに設定された値と割込ベクタとで
コマンド受信割込処理の先頭アドレスが特定される。
The interrupt vector set in the channel (channel 2) set in the counter mode corresponds to the start address of the command reception interrupt process described later.
Specifically, the start address of the command reception interrupt process is specified by the value set in the I register and the interrupt vector.

【0421】この実施の形態では、払出制御用CPU3
71でも割込モード2が設定される。従って、内蔵CT
Cのカウントアップにもとづく割込処理を使用すること
ができる。また、CTCが送出した割込ベクタに応じた
割込処理開始アドレスを設定することができる。
In this embodiment, the payout control CPU 3
Also in 71, the interrupt mode 2 is set. Therefore, the built-in CT
An interrupt process based on C count up can be used. Further, it is possible to set the interrupt processing start address according to the interrupt vector sent by the CTC.

【0422】CTCのチャネル2(CH2)のカウント
アップにもとづく割込は、上述したタイマカウンタレジ
スタCLK/TRG2の値が「0」になったときに発生
する割込である。従って、例えばステップS705にお
いて、特定レジスタとしてのタイマカウンタレジスタC
LK/TRG2に初期値「1」が設定される。さらに、
CLK/TRG2端子に入力される信号の立ち上がりま
たは立ち下がりで特定レジスタとしてのタイマカウンタ
レジスタCLK/TRG2のカウント値が−1されるの
であるが、所定の特定レジスタの設定によって、立ち上
がり/立ち下がりの選択を行うことができる。この実施
の形態では、CLK/TRG2端子に入力される信号の
立ち上がりで、タイマカウンタレジスタCLK/TRG
2のカウント値が−1されるような設定が行われる。
An interrupt based on the count-up of CTC channel 2 (CH2) is an interrupt that occurs when the value of the above-mentioned timer counter register CLK / TRG2 becomes "0". Therefore, for example, in step S705, the timer counter register C as the specific register
An initial value "1" is set in LK / TRG2. further,
The count value of the timer counter register CLK / TRG2 as a specific register is decremented by -1 at the rising or falling of the signal input to the CLK / TRG2 terminal. You can make a choice. In this embodiment, the timer counter register CLK / TRG is output at the rising edge of the signal input to the CLK / TRG2 terminal.
The count value of 2 is set to -1.

【0423】また、CTCのチャネル3(CH3)のカ
ウントアップにもとづく割込は、CPUの内部クロック
(システムクロック)をカウントダウンしてレジスタ値
が「0」になったら発生する割込であり、後述する1m
sタイマ割込として用いられる。具体的には、CPU3
71の動作クロックを分周したクロックがCTCに与え
られ、クロックの入力によってレジスタの値が減算さ
れ、レジスタの値が0になるとタイマ割込が発生する。
例えば、CH3のレジスタ値はシステムクロックの1/
256周期で減算される。分周したクロックにもとづい
て減算が行われるので、レジスタの初期値は大きくなら
ない。ステップS705において、CH3のレジスタに
は、初期値として1msに相当する値が設定される。
The interrupt based on the count-up of the CTC channel 3 (CH3) is an interrupt that occurs when the register value becomes "0" by counting down the internal clock (system clock) of the CPU, and will be described later. 1m
s Used as a timer interrupt. Specifically, CPU3
A clock obtained by dividing the operation clock of 71 is given to the CTC, the value of the register is subtracted by the input of the clock, and when the value of the register becomes 0, a timer interrupt is generated.
For example, the register value of CH3 is 1 / of the system clock.
It is subtracted in 256 cycles. Since the subtraction is performed based on the divided clock, the initial value of the register does not increase. In step S705, a value corresponding to 1 ms is set as an initial value in the CH3 register.

【0424】CTCのCH2のカウントアップにもとづ
く割込は、CH3のカウントアップにもとづく割込より
も優先順位が高い。従って、同時にカウントアップが生
じた場合に、CH2のカウントアップにもとづく割込、
すなわち、コマンド受信割込処理の実行契機となる割込
の方が優先される。
An interrupt based on the count-up of CTC CH2 has a higher priority than an interrupt based on the count-up of CH3. Therefore, when count-ups occur at the same time, an interrupt based on the count-up of CH2,
That is, the interrupt that triggers the execution of the command reception interrupt process is prioritized.

【0425】次いで、払出制御用CPU371は、図4
2にて説明したように、ステップS707〜ステップS
709の判定処理の一部または全部を実行する。
Next, the payout control CPU 371 will be described with reference to FIG.
As described in step 2, step S707 to step S707.
A part or all of the determination processing of 709 is executed.

【0426】なお、この例では、払出制御用CPU37
1は、例えば、オン状態が少なくとも1ms(1ms毎
に起動される処理の1回目の処理における検出直前に検
出信号がオンした場合)継続しないとスイッチオンとは
見なさないが、クリアスイッチ921のオン検出の場合
には、1回のオン判定でオン/オフが判定される。すな
わち、初期化操作手段としてのクリアスイッチ921が
所定の操作状態であるか否かを払出制御用CPU371
が判定するための初期化要求検出判定期間は、遊技媒体
検出手段としての賞球カウントスイッチ等が遊技媒体を
検出したことを判定するための遊技媒体検出判定期間と
は異なる期間とされている。
In this example, the payout control CPU 37
1 is not considered to be switch-on unless the on-state continues for at least 1 ms (when the detection signal is turned on immediately before detection in the first processing of the processing started every 1 ms), but the clear switch 921 is turned on. In the case of detection, ON / OFF is determined by one ON determination. That is, it is determined whether the clear switch 921 as the initialization operation means is in a predetermined operation state or not.
The initialization request detection determination period for determining is different from the game medium detection determination period for determining that the prize ball count switch or the like as the game medium detecting means has detected the game medium.

【0427】ステップS709でのチェック結果が正常
でない場合などには、不測の停電等からの復旧時ではな
く電源投入時に実行される初期化処理を実行する。初期
化処理では、上述したステップS711〜ステップS7
13の処理が実行される(図42参照)。なお、この例
では、ステップS712にて、1ms毎に定期的にタイ
マ割込がかかるように払出制御用CPU371に設けら
れているCTCのレジスタの設定が行われる。すなわ
ち、初期値として1msに相当する値が所定のレジスタ
(時間定数レジスタ)に設定される。また、この例で
は、初期化処理にて、内部状態を払出禁止状態に設定す
る処理が実行される。
If the check result in step S709 is not normal, an initialization process is executed which is executed when the power is turned on rather than when the power is restored from an unexpected power failure. In the initialization process, steps S711 to S7 described above are performed.
The process of 13 is executed (see FIG. 42). In this example, in step S712, the CTC register provided in the payout control CPU 371 is set so that a timer interrupt is periodically taken every 1 ms. That is, a value corresponding to 1 ms as an initial value is set in a predetermined register (time constant register). Further, in this example, in the initialization process, a process of setting the internal state to the payout prohibition state is executed.

【0428】このように、この例における遊技制御手段
以外の電気部品制御手段においても、電力供給が開始さ
れた場合に、電力供給が停止する前の制御状態に復旧さ
せるか否かを決めるための復旧条件が複数あり、電気部
品制御手段は、復旧条件の全てが成立していたら電力供
給が停止する前の制御状態に復旧させ、復旧条件のうち
少なくとも1つが成立していなかったら制御状態を初期
化する初期化処理を行うように構成されている。従っ
て、誤って復旧処理がなされ、誤った制御がなされてし
まうことが防止される。なお、この例では、復旧条件の
成立は、クリアスイッチ921の押下がないこと、バッ
クアップフラグがオン状態であること、およびパリティ
チェックの結果が正常であったことである。
Thus, also in the electric component control means other than the game control means in this example, when the power supply is started, it is determined whether or not to restore the control state before the power supply is stopped. There are a plurality of restoration conditions, and the electric component control means restores the control state before the power supply is stopped if all the restoration conditions are satisfied, and initializes the control state if at least one of the restoration conditions is not satisfied. It is configured to perform an initialization process for converting the data into a new one. Therefore, it is possible to prevent erroneous recovery processing and erroneous control. In this example, the recovery condition is satisfied because the clear switch 921 is not pressed, the backup flag is in the ON state, and the result of the parity check is normal.

【0429】ステップS709にてチェック結果が正常
であれば、払出制御用CPU371は、内部状態を電力
供給停止時の状態に戻すための払出状態復旧処理を行う
(ステップS710)。なお、この例では、払出制御用
CPU371は、払出状態復旧処理にて、図44に示し
た処理の他、内部状態を払出禁止状態に設定する処理を
行う。なお、内部状態を払出禁止状態に設定するという
ことは、例えば、対応する内部フラグを設定することで
ある。そして、バックアップRAM領域に保存されてい
たPC(プログラムカウンタ)の指すアドレスに復帰す
る。
If the check result is normal in step S709, the payout control CPU 371 performs a payout state recovery process for returning the internal state to the state at the time of stopping the power supply (step S710). In this example, the payout control CPU 371 performs, in the payout state recovery process, a process of setting the internal state to the payout prohibited state in addition to the process shown in FIG. 44. Note that setting the internal state to the payout prohibition state means setting a corresponding internal flag, for example. Then, it returns to the address pointed to by the PC (program counter) stored in the backup RAM area.

【0430】この実施の形態では、電力供給停止時処理
を実行したことを示すフラグとして1バイトデータであ
るバックアップフラグを用いたが、電力供給停止時処理
を実行したことを示すフラグであればどのような形態の
フラグを用いてもよい。また、そのようなフラグは複数
あってもよい。
In this embodiment, the backup flag, which is 1-byte data, is used as the flag indicating that the power supply stop time process has been executed. A flag having such a form may be used. There may be a plurality of such flags.

【0431】次いで、払出制御処理(ステップS751
A〜S760)が繰り返し(ループ処理で)実行され
る。
Next, payout control processing (step S751)
A to S760) are repeatedly executed (in a loop process).

【0432】払出制御処理において、払出制御用CPU
371は、まず、ウォッチドッグクリア処理を実行する
(ステップS751A)。ステップS751Aでは、払
出制御用CPU371がウォッチドッグ機能を内蔵し、
それを利用している場合には、内蔵されているウォッチ
ドッグタイマにタイマクリアするためのデータを書き込
む処理が行われる。なお、リセットIC976に信号を
与えることによってウォッチドッグ機能を実現する構成
としてもよく、そのように構成されている場合には、1
パルスの信号を出力する。
In the payout control process, the payout control CPU
The 371 first executes a watchdog clear process (step S751A). In step S751A, the payout control CPU 371 incorporates a watchdog function,
When using this, a process of writing data for clearing the timer in the built-in watchdog timer is performed. The watchdog function may be realized by giving a signal to the reset IC 976.
Output a pulse signal.

【0433】そして、上述したステップS752〜ステ
ップS760の処理が実行される(図42参照)。その
後、ステップS751Aに戻る。なお、この例では、後
述するように、タイマ割込処理において、入力ポートの
データが所定のRAM領域に保存されている。従って、
ステップS752のスイッチ処理では、そのRAM領域
を介して、賞球カウントスイッチ301Aや球貸しカウ
ントスイッチ301B等のスイッチの検出信号を認識
し、それらの状態判定を行う。また、この実施の形態で
は、後述するように、タイマ割込処理において、出力ポ
ート出力内容記憶領域のデータが出力ポートに出力され
る。従って、ステップS758の払出モータ制御処理で
は、出力ポート出力内容記憶領域に駆動信号等を設定す
る。
Then, the processes of steps S752 to S760 described above are executed (see FIG. 42). Then, the process returns to step S751A. In this example, as will be described later, in the timer interrupt process, the data of the input port is stored in a predetermined RAM area. Therefore,
In the switch process of step S752, the detection signals of the switches such as the prize ball count switch 301A and the ball lending count switch 301B are recognized through the RAM area, and the state determination is performed. Further, in this embodiment, as will be described later, in the timer interrupt processing, the data in the output port output content storage area is output to the output port. Therefore, in the payout motor control process of step S758, a drive signal or the like is set in the output port output content storage area.

【0434】図65は、この例におけるタイマ割込処理
を示すフローチャートである。タイマ割込処理におい
て、払出制御用CPU371は、レジスタの退避処理を
行った後(ステップS793)、ポート入力処理(ステ
ップS794)、ポート出力処理(ステップS795)
およびタイマ更新処理(ステップS796)を行う。そ
して、レジスタの復旧処理を行い(ステップS79
7)、割込許可状態にして(ステップS798)、処理
を終了する。
FIG. 65 is a flow chart showing the timer interrupt processing in this example. In the timer interrupt process, the payout control CPU 371 performs the register saving process (step S793), and then the port input process (step S794) and the port output process (step S795).
And timer update processing (step S796). Then, register restoration processing is performed (step S79).
7), the interrupt enabled state is set (step S798), and the process is terminated.

【0435】ステップS794のポート入力処理は、入
力ポートのデータを読み出して、読み出したデータを所
定のRAM領域に書き込む処理である。払出制御処理
(図64に示されたループ処理)では、RAM領域の内
容にもとづいて入力ポートの入力状態を認識する。ステ
ップS795のポート出力処理は、出力ポート出力内容
記憶領域の内容を対応する出力ポートに出力する処理で
ある。ステップS796のタイマ更新処理は、払出制御
処理において用いられている各種タイマの値を減算する
処理である。例えば、払出制御処理では、タイマに計測
時間に相当した値をタイマにセットし、タイマの値が0
になったらタイムアウトしたと認識する。
The port input process of step S794 is a process of reading the data of the input port and writing the read data in a predetermined RAM area. In the payout control process (loop process shown in FIG. 64), the input state of the input port is recognized based on the contents of the RAM area. The port output process of step S795 is a process of outputting the content of the output port output content storage area to the corresponding output port. The timer updating process of step S796 is a process of subtracting the values of various timers used in the payout control process. For example, in the payout control process, a value corresponding to the measurement time is set in the timer and the timer value is 0.
When it becomes, it recognizes that it has timed out.

【0436】図66は、主基板31からの割込信号(払
出制御用)に応じて起動されるコマンド受信割込処理を
示すフローチャートである。コマンド受信割込処理にお
いて、払出制御用CPU371は、レジスタの退避処理
を行った後(ステップS850)、入力ポートB(図4
1参照)のデータを入力する(ステップS861)。そ
して、そのビット7を確認する(ステップS862)。
この例では、入力ポートBのビット7は、払出制御用S
TB信号が入力されるビットとされているものとする。
払出制御用STB信号がオン状態であれば、入力ポート
A(図41参照)のデータを入力する(ステップS86
3)。そして、入力したデータを、コマンド受信個数カ
ウンタが示す受信コマンドバッファに格納し(ステップ
S864)、コマンド受信個数カウンタの値を更新する
(ステップS865)。
FIG. 66 is a flow chart showing a command reception interrupt process activated in response to an interrupt signal (for payout control) from the main board 31. In the command reception interrupt process, the payout control CPU 371 performs the register saving process (step S850), and then the input port B (FIG. 4).
1) is input (step S861). Then, the bit 7 is confirmed (step S862).
In this example, bit 7 of the input port B is S for payout control.
It is assumed that the TB signal is input.
If the payout control STB signal is on, the data of the input port A (see FIG. 41) is input (step S86).
3). Then, the input data is stored in the reception command buffer indicated by the command reception number counter (step S864), and the value of the command reception number counter is updated (step S865).

【0437】その後、レジスタ復旧処理を行い(ステッ
プS859)、割込許可状態にして(ステップS86
0)、処理を終了する。以上のように、この実施の形態
では、払出制御手段は、指示信号(割込信号)とデータ
出力中信号(STB信号)の両方の出力を検出した場合
に、コマンドデータを入力する処理(ステップS86
3)を実行することになる。
Thereafter, register restoration processing is performed (step S859), and the interrupt enabled state is set (step S86).
0), the process ends. As described above, in this embodiment, the payout control means inputs the command data when the output of both the instruction signal (interrupt signal) and the data output signal (STB signal) is detected (step S86
3) will be executed.

【0438】なお、この例では、主基板31から受信し
た払出制御コマンドを格納するための受信バッファとし
て、払出制御コマンドを4個格納可能なリングバッファ
形式の受信バッファが用いられる。従って、受信バッフ
ァは、受信コマンドバッファ1〜4の4バイトの領域で
構成される。そして、受信したコマンドをどの領域に格
納するのかを示すコマンド受信個数カウンタが用いられ
る。コマンド受信個数カウンタは、0〜3の値をとる。
In this example, a ring buffer type reception buffer capable of storing four payout control commands is used as a receive buffer for storing the payout control commands received from the main board 31. Therefore, the reception buffer is composed of the 4-byte area of the reception command buffers 1 to 4. Then, a command reception number counter indicating which area to store the received command is used. The command reception number counter has a value of 0 to 3.

【0439】なお、コマンド解析実行処理は図64に示
されたメイン処理で実行され、その処理において、読出
ポインタが指す受信バッファの内容が読み出されるとと
もに読出ポインタの値が+1される。また、主基板31
の遊技制御手段は、4msの制御期間において1つしか
払出制御コマンドを送信しない。従って、通常、受信バ
ッファに、複数の払出制御コマンドが記憶されているこ
とはない。
The command analysis execution process is executed in the main process shown in FIG. 64. In the process, the contents of the receive buffer pointed to by the read pointer are read and the value of the read pointer is incremented by one. In addition, the main substrate 31
The game control means of sends only one payout control command in the control period of 4 ms. Therefore, normally, a plurality of payout control commands are not stored in the reception buffer.

【0440】図67および図68は、この例における払
出制御用CPU371によって電源基板910からの電
源断信号に応じて実行されるマスク不能割込処理(NM
I処理:電力供給停止時処理)の処理例を示すフローチ
ャートである。
67 and 68 are non-maskable interrupt processing (NM) executed by the payout control CPU 371 in this example in response to a power-off signal from the power-supply board 910.
It is a flowchart showing a processing example of (I processing: power supply stop processing).

【0441】電力供給停止時処理において、払出制御用
CPU371は、上述したステップS801〜ステップ
S807の処理(図45参照)を実行する。なお、ステ
ップS801〜S807の処理は、電源監視手段の検出
信号に応じて制御状態を復旧させるために必要なデータ
を変動データ記憶手段に保存させるためのデータ退避処
理に相当する。
In the power supply stop process, the payout control CPU 371 executes the processes of steps S801 to S807 described above (see FIG. 45). The processing of steps S801 to S807 corresponds to the data saving processing for saving the data necessary for restoring the control state in the variable data storage means according to the detection signal of the power supply monitoring means.

【0442】次に、処理ループ回数としてあらかじめ決
められた値をセットし(ステップS831)、賞球カウ
ントスイッチ301Aのチェック処理と払出制御コマン
ド受信処理とを所定期間実行するループ処理に移行す
る。払出制御用CPU371は、まず、ウォッチドッグ
クリア処理を行う(ステップS832)。次いで、入力
ポートB(図41参照:ただし、この例では、ビット7
は払出制御用STB信号に割り当てられている)のデー
タを入力する(ステップS833)。そして、入力した
データのビット7(払出制御用STB信号)を確認する
(ステップS834)。払出制御用STB信号がオン状
態であって、オン状態の確認が最初のものであれば(ス
テップS835)、入力ポートA(図41参照)のデー
タを入力し、入力したデータをコマンドバッファに格納
する(ステップS836)。
Next, a predetermined value is set as the number of processing loops (step S831), and the process shifts to a loop process for executing the check process of the prize ball count switch 301A and the payout control command receiving process for a predetermined period. The payout control CPU 371 first performs a watchdog clear process (step S832). Next, input port B (see FIG. 41: in this example, bit 7
Inputs data of STB signal for payout control) (step S833). Then, the bit 7 (STB signal for payout control) of the input data is confirmed (step S834). If the payout control STB signal is in the ON state and the confirmation of the ON state is the first confirmation (step S835), the data of the input port A (see FIG. 41) is input and the input data is stored in the command buffer. Yes (step S836).

【0443】コマンドバッファは、通常の制御時に使用
される通常時コマンド記憶領域としての受信バッファと
は異なるRAM領域に設けられているバックアップコマ
ンド記憶領域であり、電力供給停止時でも所定期間は保
存される。
The command buffer is a backup command storage area provided in a RAM area different from the reception buffer as a normal command storage area used during normal control, and is stored for a predetermined period even when power supply is stopped. It

【0444】次いで、ポートチェック回数としてあらか
じめ決められている値をセットし(ステップS83
7)、入力ポートBのデータを入力する(ステップS8
38)。そして、スイッチチェックタイミングが到来し
ていない場合には(ステップS839)、ポートチェッ
ク回数を減算し(ステップS840)、その値が0にな
っていなければステップS838に戻る(ステップS8
41)。0になっていれば、ステップS847に移行す
る。
Then, a predetermined value is set as the number of port checks (step S83).
7) Input the data of the input port B (step S8)
38). If the switch check timing has not come (step S839), the port check count is subtracted (step S840), and if the value is not 0, the process returns to step S838 (step S8).
41). If it is 0, the process proceeds to step S847.

【0445】スイッチチェックタイミングが到来してい
る場合には、スイッチチェック処理を行う(ステップS
842)。そして、賞球カウントスイッチ301Aがオ
ンしたことを検出したら(ステップS843)、総合個
数記憶(総賞球数格納バッファ)の値を1減算し(ステ
ップS844)、ステップS847に移行する。また、
球貸しカウントスイッチ301Bがオンしたことを検出
したら(ステップS845)、貸し球個数記憶(貸し球
個数格納バッファ)の値を1減算し(ステップS84
6)、ステップS847に移行する。なお、スイッチチ
ェック処理は、賞球カウントスイッチ301Aが確かに
オンしたか否かを検出するとともに、球貸しカウントス
イッチ301Bが確かにオンしたか否かを検出する処理
であり、例えば、所定回連続して賞球カウントスイッチ
301Aあるいは球貸しカウントスイッチ301Bのオ
ン状態が検出されたら、ステップS843で賞球カウン
トスイッチ301Aが確かにオンしたと判断され、ある
いはステップS845で球貸しカウントスイッチ301
Bが確かにオンしたと判断される。
If the switch check timing has come, switch check processing is carried out (step S
842). When it is detected that the prize ball count switch 301A is turned on (step S843), the value of the total number storage (total prize ball number storage buffer) is decremented by 1 (step S844), and the process proceeds to step S847. Also,
When it is detected that the ball lending count switch 301B is turned on (step S845), the value of the lent ball number storage (loan ball number storage buffer) is decremented by 1 (step S84).
6) and proceeds to step S847. The switch check process is a process of detecting whether or not the prize ball count switch 301A is surely turned on and detecting whether or not the ball lending count switch 301B is surely turned on, for example, a predetermined number of consecutive times. Then, when the ON state of the prize ball count switch 301A or the ball lending count switch 301B is detected, it is determined in step S843 that the prize ball count switch 301A has indeed turned on, or in step S845 the ball lending count switch 301.
It is judged that B is on.

【0446】ステップS847では、処理ループ回数を
減算し、処理ループ回数が0になっていなければステッ
プS832に戻る(ステップS848)。処理ループ回
数が0になっていれば、ステップS808に移行する。
In step S847, the number of processing loops is subtracted, and if the number of processing loops is not 0, the process returns to step S832 (step S848). If the number of processing loops is 0, the process proceeds to step S808.

【0447】ステップS808ではスタックポインタを
バックアップRAM領域に退避させる。そして、払出制
御用CPU371は、上述したステップS809〜ステ
ップS820の処理(図47参照)を実行する。
At step S808, the stack pointer is saved in the backup RAM area. Then, the payout control CPU 371 executes the above-described processing of steps S809 to S820 (see FIG. 47).

【0448】その後、払出制御用CPU371は、待機
状態(ループ状態)に入る。従って、システムリセット
されるまで、何もしない状態になる。なお、ウォッチド
ッグタイマを使用している場合には、ループ状態でウォ
ッチドッグクリア処理を行っていないので、ウォッチド
ッグタイマがタイムアウトする。ただし、正常な電力供
給停止時にはその前にシステムリセットがかかる。しか
し、例えばノイズ等によってNMIがかかった場合に
は、電力供給停止時ではないのでシステムリセットがか
からないが、ウォッチドッグタイマのタイムアウトによ
ってリセットがかかり、ループから抜け出すことができ
る。
After that, the payout control CPU 371 enters a standby state (loop state). Therefore, nothing is done until the system is reset. When the watchdog timer is used, the watchdog timer is timed out because the watchdog clear processing is not performed in the loop state. However, when the power supply is stopped normally, the system is reset before that. However, for example, when NMI is caused by noise or the like, the system is not reset because the power supply is not stopped, but the watchdog timer is reset and the loop can be exited.

【0449】図62に示されたb〜e期間において電力
供給が停止しマスク不能割込が主基板31のCPU56
にかかると、CPU56は、出力ポートの出力状態を変
更しないので、払出制御用STB信号が出力されていた
場合にはその出力状態は維持されている。すなわち、遊
技制御手段は、コマンドデータの出力に関連してコマン
ドデータを出力していることを示すデータ出力中信号
(この例ではSTB信号)を出力するとともに、電力供
給停止時処理を開始した後にも所定期間(上記の例では
システムリセットされるまでであって、払出制御手段が
コマンド受信を完了するまでの期間よりも短い期間)は
データ出力中信号の出力を維持している。電力供給が停
止するときには払出制御用CPU371にもマスク不能
割込がかかるが、払出制御用CPU371が実行するマ
スク不能割込処理において、所定期間(この例では処理
ループ回数の初期値×S832〜S848のループ時
間)データ出力中信号の状態を監視し(ステップS83
4)、データ出力中信号が出力されている場合には、コ
マンドデータを取り込む処理を実行する。そして、コマ
ンドデータが受信されコマンドバッファに格納される
(ステップS836)。従って、b〜e期間において電
力供給が停止する場合には、払出制御手段において、送
信途中であった払出制御コマンドの受信が完了する。
In the periods b to e shown in FIG. 62, the power supply is stopped and the non-maskable interrupt is the CPU 56 of the main board 31.
At this point, the CPU 56 does not change the output state of the output port, so that the output state is maintained when the payout control STB signal is output. That is, the game control means outputs a data outputting signal (STB signal in this example) indicating that the command data is being output in association with the output of the command data, and after starting the power supply stop time process. Also maintains the output of the data output signal for a predetermined period (in the above example, until the system is reset and is shorter than the period until the payout control means completes command reception). When the power supply is stopped, the payout control CPU 371 also receives a non-maskable interrupt. Loop time) The state of the data output signal is monitored (step S83).
4) If the data output signal is output, the process of capturing command data is executed. Then, the command data is received and stored in the command buffer (step S836). Therefore, when the power supply is stopped in the period from b to e, the payout control means completes the reception of the payout control command which is being transmitted.

【0450】なお、図62に示されたc〜d期間におい
て電力供給が停止しマスク不能割込が主基板31のCP
U56にかかると、電力供給停止のタイミングによって
は、電力供給再開後の払出状態復旧処理によってコマン
ド受信割込処理に復旧し、コマンド受信割込処理によっ
て払出制御コマンドを受信してしまう場合も考えられ
る。
In the periods c to d shown in FIG. 62, the power supply is stopped and the non-maskable interrupt is the CP of the main substrate 31.
In the case of U56, depending on the timing of stopping the power supply, the command reception interrupt process may be restored by the payout state recovery process after the power supply is restarted, and the payout control command may be received by the command reception interrupt process. .

【0451】そこで、この実施の形態では、メイン処理
におけるコマンド解析実行処理(ステップS754)に
おいて、まず、コマンドバッファにデータがあるか否か
確認する。コマンドバッファは電力供給停止時処理にお
いて受信した払出制御コマンドを格納するバックアップ
コマンド記憶領域であり、電力供給停止時でも所定期間
は保存されている。コマンドバッファにデータがある場
合には、そのデータについてコマンド解析処理を実行し
た後、コマンドバッファの内容をクリアするとともに、
さらに、通常時コマンド記憶領域としての受信バッファ
をクリアする。すなわち、通常時コマンド記憶領域の内
容を無効にする。
Therefore, in this embodiment, in the command analysis execution processing (step S754) in the main processing, it is first confirmed whether or not there is data in the command buffer. The command buffer is a backup command storage area for storing the payout control command received in the power supply stop process, and is stored for a predetermined period even when the power supply is stopped. If there is data in the command buffer, execute command analysis processing for that data, then clear the contents of the command buffer and
Further, the reception buffer serving as the command storage area during normal operation is cleared. That is, the contents of the normal command storage area are invalidated.

【0452】なお、コマンド解析処理は受信されていた
払出制御コマンドがいかなるコマンドであるかを解析す
る処理であり、例えば、賞球個数を指示する払出制御コ
マンドであったことが確認されたら、総合個数記憶(総
賞球数格納バッファ)の内容を更新する。そして、コマ
ンド受信カウンタを初期化する。すなわち、読出ポイン
タの値と一致させる。
The command analysis process is a process of analyzing what command the payout control command received is. For example, if it is confirmed that the payout control command indicates the number of award balls, The content of the number storage (total prize ball number storage buffer) is updated. Then, the command reception counter is initialized. That is, it is matched with the value of the read pointer.

【0453】メイン処理において、このような制御を行
えば、電力供給が停止するときにコマンド受信割込処理
の処理途中であって、電力供給が復旧してコマンド割込
処理の実行が再開され、受信コマンドを受信バッファに
格納したとしても、その受信コマンドはメイン処理にお
いて破棄される。よって、払出制御コマンドがコマンド
バッファと受信バッファの双方に格納されるという状
況、すなわち、払出制御コマンドを二重に受信してしま
うという状況が発生することはない。なお、上述したよ
うに、コマンド受信割込処理中に停電等の不測の電力供
給停止が発生した場合、本来コマンド受信割込処理によ
って受信されるべき払出制御コマンドは、電力供給停止
時処理によって受信され、コマンドバッファに格納され
ている。
If such control is performed in the main processing, when the power supply is stopped, the command reception interrupt processing is in the process, the power supply is restored, and the execution of the command interrupt processing is restarted. Even if the received command is stored in the receive buffer, the received command is discarded in the main process. Therefore, the situation where the payout control command is stored in both the command buffer and the receiving buffer, that is, the situation where the payout control command is received twice does not occur. As described above, if an unexpected power outage such as a power failure occurs during the command reception interrupt process, the payout control command that should be originally received by the command reception interrupt process is received by the power supply stop process. Stored in the command buffer.

【0454】以上に説明したような第2の実施の形態の
構成とした場合であっても、第1の実施の形態と同様の
効果を得ることができる。具体的には、電力供給停止時
処理(図67、図68参照)にて、検出維持期間(ステ
ップS831にてループ回数が設定されてから、設定さ
れた回数のループ処理が終了してステップS848にて
「Y」となるまでの期間)が経過するまでの間は、コン
デンサ923,924に充電された電力を用いて、電源
基板910(補助電力供給手段および作動状態保持手段
の機能を有する基板である。)が、賞球カウントスイッ
チ301A(景品遊技媒体検出手段の一例)および球貸
しカウントスイッチ301B(貸出遊技媒体検出手段の
一例)を駆動可能な電力を供給するとともに、ソレノイ
ド310(通路切換手段の一例)が振分部材311の状
態を保持するための駆動電力を供給し、払出制御手段
(払出制御用CPU371)が賞球カウントスイッチ3
01Aおよび球貸しカウントスイッチ301Bからの検
出信号の入力処理(ステップS837〜ステップS84
8)を行う構成としたので、電力供給停止時処理にて、
払い出された景品遊技媒体(入賞領域への入賞にもとづ
いて景品として払い出される遊技媒体)や貸出遊技媒体
(遊技者からの貸出要求に応じて貸し出される遊技媒
体)を確実に検出することができるようになる。すなわ
ち、上述した第2の実施の形態の構成をなす遊技機によ
れば、電力供給停止時処理にて払い出された遊技媒体の
検出を確実に実行することができるので、遊技媒体の未
払出数を正確に把握することができるようになる。
Even with the configuration of the second embodiment as described above, the same effect as that of the first embodiment can be obtained. Specifically, in the power supply stop process (see FIGS. 67 and 68), after the number of loops is set in the detection maintaining period (step S831), the loop process for the set number of times is completed and step S848. Until the time "Y" is reached, the power supply board 910 (a board having a function of an auxiliary power supply means and an operating state holding means) is used by using the electric power charged in the capacitors 923 and 924. Is supplied with electric power capable of driving the prize ball count switch 301A (an example of the prize game medium detecting means) and the ball lending count switch 301B (an example of the lending game medium detecting means), and the solenoid 310 (passage switching). (An example of a means) supplies drive power for maintaining the state of the distribution member 311 and the payout control means (the payout control CPU 371) causes the prize ball counts. Pitch 3
01A and input processing of detection signals from the ball lending count switch 301B (steps S837 to S84)
Since it is configured to perform 8), in the power supply stop process,
It is possible to reliably detect a paid-out game medium (a game medium that is paid out as a prize based on a prize in a prize area) or a rented-out game medium (a game medium that is lent out in response to a loan request from a player). Like That is, according to the gaming machine having the configuration of the above-described second embodiment, it is possible to reliably detect the gaming medium paid out in the power supply stop process, so that the gaming medium is not paid yet. You will be able to grasp the number accurately.

【0455】なお、上述した第2の実施の形態において
も、電力供給停止時処理において、払出制御手段が、賞
球カウントスイッチ301Aあるいは球貸しカウントス
イッチ301Bのうちいずれか一方のスイッチの状態を
確認する構成としてもよい。
Also in the above-described second embodiment, the payout control means confirms the state of one of the prize ball count switch 301A and the ball lending count switch 301B in the power supply stop process. It may be configured to.

【0456】実施の形態3.図69は、第3の実施の形
態(実施の形態3)における主基板31から各電気部品
制御基板(サブ基板)に送信される制御コマンド(払出
制御コマンド、表示制御コマンド、ランプ制御コマン
ド、音制御コマンド)の送出形態を示すタイミング図で
ある。この例では、制御コマンドのコマンドデータは1
バイトで構成されている。
Embodiment 3. FIG. FIG. 69 is a control command (payout control command, display control command, lamp control command, sound) transmitted from the main board 31 to each electric component control board (sub-board) in the third embodiment (Embodiment 3). It is a timing chart which shows the transmission form of (control command). In this example, the command data of the control command is 1
It consists of bytes.

【0457】図69に示すように、主基板31(メイ
ン)から割込信号がオン状態になった後オフ状態になっ
たら、コマンドデータが出力される。さらに、STB信
号がオン状態になる。このように、遊技制御手段は、電
気部品制御手段がコマンドデータを入力する入力処理を
実行する契機を示す信号(この例では割込信号)を送信
した後、コマンドデータを出力し、コマンドデータを出
力した後に、入力処理実行中における実際の入力の契機
を示す信号として指示信号(この例ではSTB信号)を
出力する。サブ基板では、電気部品制御手段を構成する
マイクロコンピュータに対して割込信号の立ち上がりで
割込がかかり、制御コマンドの受信処理(入力処理)が
開始される。
As shown in FIG. 69, when the interrupt signal from the main board 31 (main) is turned on and then turned off, command data is output. Further, the STB signal is turned on. In this way, the game control means outputs the command data after transmitting the signal (in this example, an interrupt signal) indicating the opportunity for the electric component control means to execute the input process of inputting the command data, and outputs the command data. After the output, the instruction signal (STB signal in this example) is output as a signal indicating the trigger of actual input during execution of the input process. On the sub-board, the microcomputer constituting the electric component control means is interrupted at the rising edge of the interrupt signal, and the control command reception process (input process) is started.

【0458】サブ基板の電気部品制御手段は、受信処理
において、STB信号がオン状態になったらコマンドデ
ータを取り込む。その後、サブ基板の電気部品制御手段
がコマンド受信処理を完了した後のタイミングで、メイ
ンからのSTB信号はオフ状態になる。
The electric component control means of the sub-board fetches the command data when the STB signal is turned on in the receiving process. After that, the STB signal from the main is turned off at a timing after the electric component control means of the sub-board completes the command receiving process.

【0459】この実施の形態でも、遊技制御手段は、制
御コマンドの送出処理などを除き、上述した各実施の形
態と同様の制御を行う。すなわち、電源断信号に応じて
電力供給停止時処理を実行する(図19〜図21参
照)。また、電力供給開始時に、復旧条件が成立してい
ることを確認したら、遊技状態復旧処理を行う。なお、
この実施の形態では、入出力ポートの信号割り当ては、
実施の形態2の場合と同じである。
Also in this embodiment, the game control means carries out the same control as that of each of the above-mentioned embodiments except for the control command sending processing and the like. That is, the power supply stop process is executed according to the power-off signal (see FIGS. 19 to 21). Also, when it is confirmed that the restoration condition is satisfied at the start of power supply, the gaming state restoration processing is performed. In addition,
In this embodiment, the input / output port signal assignment is
This is the same as the case of the second embodiment.

【0460】この例では、例えば図18に示した割込処
理(ただし、本例では図18の処理とは異なるタイミン
グで割込処理が実行される)にてポート出力処理が実行
され、このポート出力処理によって制御コマンドが出力
される。ここでは、払出制御コマンドを出力するための
ポート出力処理について説明する。ポート出力処理にお
いて、CPU56は、払出制御コマンド送出要求フラグ
がセットされていれば、コマンドデータを出力する出力
ポート0の割込信号のビット(ここではビット0:払出
制御信号用割込信号)に「1」を出力するとともに、払
出制御コマンド送出要求フラグをリセットし、さらに、
出力ポート0の出力状態を出力ポート0出力内容記憶領
域にコピーしておく。このタイミングは、図69におけ
るa区間の開始時に相当する。
In this example, the port output process is executed in the interrupt process shown in FIG. 18 (however, in this example, the interrupt process is executed at a different timing from the process in FIG. 18). A control command is output by the output processing. Here, a port output process for outputting a payout control command will be described. In the port output processing, if the payout control command transmission request flag is set, the CPU 56 sets the bit of the interrupt signal of the output port 0 (here bit 0: interrupt signal for payout control signal) for outputting the command data. "1" is output, the payout control command transmission request flag is reset, and
The output state of the output port 0 is copied to the output content storage area of the output port 0. This timing corresponds to the start of section a in FIG.

【0461】次に、CPU56は、図69におけるa区
間とb区間の時間の合計に相当する時間だけ待ってか
ら、コマンドデータを出力する出力ポート(ここでは払
出制御コマンドを出力するための出力ポート1)に対応
した出力ポート0の割込信号のビット(ここではビット
0:払出制御信号用割込信号)を「0」にする。なお、
出力ポート0の出力状態を出力ポート0出力内容記憶領
域にコピーしておく。このタイミングは、図69におけ
るc区間の開始時に相当する。なお、a区間は、主基板
31が割込信号を出力してからサブ基板において割込が
受け付けられるまでの遅れ時間に相当する。
Next, the CPU 56 waits for a time corresponding to the total of the time of the section a and the time of the section b in FIG. The bit of the interrupt signal of the output port 0 corresponding to 1) (here, bit 0: interrupt signal for payout control signal) is set to "0". In addition,
The output state of the output port 0 is copied to the output content storage area of the output port 0. This timing corresponds to the start of section c in FIG. The section a corresponds to the delay time from when the main board 31 outputs the interrupt signal to when the sub board receives the interrupt.

【0462】次いで、CPU56は、払出制御信号用割
込信号をオンする際に確認した制御コマンド送出要求フ
ラグに対応したポート出力内容記憶領域(ここでは出力
ポート1出力内容記憶領域)のデータを、対応する出力
ポート(ここでは出力ポート1)に出力する。
Next, the CPU 56 stores the data in the port output content storage area (here, output port 1 output content storage area) corresponding to the control command transmission request flag confirmed when the payout control signal interrupt signal is turned on, Output to the corresponding output port (here, output port 1).

【0463】なお、メイン処理ではポート出力内容記憶
領域ではなくバックアップRAMにおける他の領域にコ
マンドデータを書き込み、実際にコマンドデータが出力
ポートに出力されるときに、ポート出力内容記憶領域に
コマンドデータを書き込むようにしてもよい。この場合
には、出力ポートにコマンドデータを出力するときに、
ポート出力内容記憶領域に、出力ポートに出力したコマ
ンドデータを設定するようにすればよい。また、なお、
コマンドデータを出力する前にディレイ時間をおいても
よい。
In the main process, the command data is written not in the port output content storage area but in another area of the backup RAM, and when the command data is actually output to the output port, the command data is written in the port output content storage area. It may be written. In this case, when outputting command data to the output port,
The command data output to the output port may be set in the port output content storage area. Also,
A delay time may be set before outputting the command data.

【0464】次に、CPU56は、図69におけるd区
間の時間に相当する時間だけ待ってから、出力ポート0
の、コマンドデータを出力した出力ポート(ここでは出
力ポート1)に対応した出力ポート0のSTB信号のビ
ット(ここではビット4:払出制御信号用STB信号)
に「1」を出力する。なお、出力ポート0の出力状態を
出力ポート0出力内容記憶領域にコピーしておく。この
タイミングは、図69におけるe区間の開始時に相当す
る。なお、d区間の時間に相当する時間待つことなく上
記の処理を行うようにしてもよい。また、サブ基板で
は、d区間開始のタイミングから、やや遅れて受信処理
が開始される。その遅れは、サブ基板におけるマイクロ
コンピュータの処理遅れ(ソフトウェアがSTB信号の
オンを検知するまでの遅れ)である。
Next, the CPU 56 waits for a time corresponding to the time of section d in FIG.
Of the STB signal of the output port 0 corresponding to the output port that outputs the command data (here, output port 1) (here, bit 4: STB signal for payout control signal)
"1" is output to. The output state of output port 0 is copied to the output content storage area of output port 0. This timing corresponds to the start of section e in FIG. The above process may be performed without waiting for a time corresponding to the time of the d section. In the sub-board, the reception process is started with a slight delay from the timing of the start of section d. The delay is a processing delay of the microcomputer in the sub-board (delay until the software detects that the STB signal is turned on).

【0465】そして、CPU56は、図69におけるe
区間の時間に相当する時間だけ待ってから、出力ポート
0の、コマンドデータを出力した出力ポート(ここでは
出力ポート1)に対応した出力ポート0のSTB信号の
ビット(ビット4:払出制御信号用STB信号)に
「0」を出力する。なお、出力ポート0の出力状態を出
力ポート0出力内容記憶領域にコピーしておく。このタ
イミングは、図69におけるe区間の終了時に相当す
る。
Then, the CPU 56 executes the e in FIG.
After waiting for the time corresponding to the time of the section, the bit of the STB signal of the output port 0 of the output port 0 corresponding to the output port (here, output port 1) of the output port 0 (bit 4: for payout control signal) "0" is output to the STB signal). The output state of output port 0 is copied to the output content storage area of output port 0. This timing corresponds to the end of section e in FIG.

【0466】以上のようにして、図69に示されたよう
なタイミングで、制御コマンドがサブ基板に送出され
る。なお、タイマ割込がかかったときに、複数種類の制
御コマンド送出要求フラグがオンしていたときには、例
えば、あらかじめ決められている優先順位に従って、い
ずれかの制御コマンド送出要求フラグについて上記のポ
ート出力処理が実行される。
As described above, the control command is sent to the sub-board at the timing shown in FIG. If a plurality of types of control command transmission request flags are turned on when the timer interrupt occurs, for example, according to a predetermined priority, one of the control command transmission request flags outputs the above port output. The process is executed.

【0467】このように、この実施の形態では、制御コ
マンドのコマンドデータを出力するときに、ポート出力
内容記憶領域のデータを出力ポートに出力する。そし
て、ポート出力内容記憶領域のデータは、電力供給が停
止しても所定期間はその内容が保存されるバックアップ
RAMに設定される。上述したように、メイン処理では
ポート出力内容記憶領域ではなくバックアップRAMに
おける他の領域にコマンドデータを書き込み、実際にコ
マンドデータが出力ポートに出力されるときに、ポート
出力内容記憶領域にコマンドデータを書き込むように構
成した場合には、出力ポートにコマンドデータを出力す
るときに、ポート出力内容記憶領域に、出力ポートに出
力したコマンドデータが設定される。
As described above, in this embodiment, when the command data of the control command is output, the data in the port output content storage area is output to the output port. Then, the data in the port output content storage area is set in the backup RAM in which the content is stored for a predetermined period even if the power supply is stopped. As described above, in the main process, the command data is written not in the port output content storage area but in another area of the backup RAM, and when the command data is actually output to the output port, the command data is written in the port output content storage area. When configured to write, when the command data is output to the output port, the command data output to the output port is set in the port output content storage area.

【0468】次に、この実施の形態における払出制御用
CPU371の処理について説明する。払出制御手段
も、上述した各実施の形態の場合と同様にメイン処理お
よびタイマ割込処理を行うことができるが、メイン処理
における電力供給開始時に復旧条件が成立していること
を確認したら実行される払出状態復旧処理、コマンド受
信割込処理、および電力供給停止時処理は、各実施の形
態の場合とは異なる。なお、この実施の形態では、入出
力ポートの信号割り当ては、実施の形態2の場合と同じ
である。
Next, the processing of the payout control CPU 371 in this embodiment will be described. The payout control means can also perform the main processing and the timer interrupt processing as in the case of each of the above-described embodiments, but is executed when it is confirmed that the restoration condition is satisfied at the start of the power supply in the main processing. The payout state restoration process, the command reception interrupt process, and the power supply stop process that are different from those of the respective embodiments. In this embodiment, signal allocation of input / output ports is the same as that in the second embodiment.

【0469】図70は、この実施の形態におけるコマン
ド受信割込処理を示すフローチャートである。コマンド
受信割込処理において、払出制御用CPU371は、レ
ジスタの退避処理を行った後(ステップS850)、S
TB信号待ちカウンタをセットする(ステップS89
7)。そして、入力ポートB(図41参照:ただし、こ
の例では、ビット7は払出制御用STB信号に割り当て
られている)のデータを入力し(ステップS861)、
そのビット7(払出制御用STB信号)を確認する(ス
テップS862)。払出制御用STB信号がオン状態で
あれば、ステップS863に移行する。
FIG. 70 is a flow chart showing the command reception interrupt processing in this embodiment. In the command reception interrupt process, the payout control CPU 371 performs the register save process (step S850), and then S
The TB signal waiting counter is set (step S89).
7). Then, the data of the input port B (see FIG. 41: in this example, bit 7 is assigned to the payout control STB signal) is input (step S861),
The bit 7 (STB signal for payout control) is confirmed (step S862). If the payout control STB signal is on, the process proceeds to step S863.

【0470】払出制御用STB信号がオン状態でなけれ
ば、STB信号待ちカウンタのカウント値を−1し(ス
テップS898)、カウント値が0になっているか否か
確認する(ステップS899)。0になっていなけれ
ば、ステップS861に戻る。0になっていたら、ステ
ップS859に移行する。
If the payout control STB signal is not in the ON state, the count value of the STB signal waiting counter is decremented by 1 (step S898), and it is confirmed whether or not the count value is 0 (step S899). If not 0, the process returns to step S861. If it is 0, the process proceeds to step S859.

【0471】ステップS863において、払出制御用C
PU371は、入力ポートA(図41参照)のデータを
入力する。そして、入力したデータを、コマンド受信個
数カウンタが示す受信コマンドバッファに格納し(ステ
ップS864)、コマンド受信個数カウンタの値を更新
する(ステップS865)。
[0471] In Step S863, the payout control C
The PU 371 inputs the data of the input port A (see FIG. 41). Then, the input data is stored in the reception command buffer indicated by the command reception number counter (step S864), and the value of the command reception number counter is updated (step S865).

【0472】その後、レジスタ復旧処理を行い(ステッ
プS859)、割込許可状態にして(ステップS86
0)、処理を終了する。
Thereafter, register restoration processing is performed (step S859), and the interrupt enabled state is set (step S86).
0), the process ends.

【0473】コマンド受信割込処理は、主基板31から
の割込信号がオン状態になったことに起因して起動され
る。そして、コマンド割込処理において、STB信号が
オン状態になったことを検出したらコマンドデータの取
込が実行される(ステップS863)。また、所定期間
(STB信号待ちカウンタの初期値に対応した時間)内
にSTB信号がオン状態にならなかったら処理を終了す
る。
The command reception interrupt process is activated when the interrupt signal from the main board 31 is turned on. Then, in the command interrupt process, when it is detected that the STB signal is turned on, the command data is fetched (step S863). If the STB signal does not turn on within the predetermined period (the time corresponding to the initial value of the STB signal waiting counter), the process ends.

【0474】図71は、この実施の形態における電源基
板910からの電源断信号に応じて実行されるマスク不
能割込処理(NMI処理:電力供給停止時処理)の処理
例を示すフローチャートである。
FIG. 71 is a flow chart showing an example of a non-maskable interrupt process (NMI process: power supply stop time process) executed in response to a power-off signal from the power supply board 910 in this embodiment.

【0475】電力供給停止時処理において、払出制御用
CPU371は、上述したステップS801〜ステップ
S807の処理(図45参照)を実行する。なお、ステ
ップS801〜S807の処理は、電源監視手段の検出
信号に応じて制御状態を復旧させるために必要なデータ
を変動データ記憶手段に保存させるためのデータ退避処
理に相当する。
In the power supply stop process, the payout control CPU 371 executes the processes of steps S801 to S807 described above (see FIG. 45). The processing of steps S801 to S807 corresponds to the data saving processing for saving the data necessary for restoring the control state in the variable data storage means according to the detection signal of the power supply monitoring means.

【0476】次に、ポートチェック回数としてあらかじ
め決められた値をセットし(ステップS871)、賞球
カウントスイッチ301Aのチェック処理と払出制御コ
マンド受信処理とを所定期間実行するループ処理に移行
する。払出制御用CPU371は、まず、入力ポートB
(図41参照:ただし、この例では、ビット7は払出制
御用STB信号に割り当てられている)のデータを入力
する(ステップS838)。そして、スイッチチェック
処理を行い(ステップS842)、賞球カウントスイッ
チ301Aがオンしたことを検出したら(ステップS8
43)、賞球カウント値を+1する(ステップS87
2)。また、球貸しカウントスイッチ301Bがオンし
たことを検出したら(ステップS845)、球貸しカウ
ント値を+1する(ステップS873)。賞球カウント
値および球貸しカウント値はバックアップRAMに形成
され、払出状態復旧処理において、賞球カウント値のカ
ウント数が総合個数記憶に反映され、球貸しカウント値
のカウント数が貸し球個数記憶に反映される。
Next, a predetermined value is set as the number of port checks (step S871), and the process shifts to a loop process for executing the check process of the prize ball count switch 301A and the payout control command reception process for a predetermined period. The payout control CPU 371 first determines the input port B.
(See FIG. 41: However, in this example, bit 7 is assigned to the payout control STB signal) (step S838). Then, switch check processing is performed (step S842), and when it is detected that the prize ball count switch 301A is turned on (step S8).
43), the prize ball count value is incremented by 1 (step S87)
2). When it is detected that the ball lending count switch 301B is turned on (step S845), the ball lending count value is incremented by 1 (step S873). The prize ball count value and the ball lend count value are formed in the backup RAM, and in the payout state restoration process, the count number of the prize ball count value is reflected in the total number storage, and the count number of the ball lend count value is stored in the loan ball number storage. Reflected.

【0477】そして、ポートチェック回数を減算し(ス
テップS840)、その値が0になっていれば、上述し
た図68に示されたステップS808に移行する。0に
なっていなければ、ソフトウェアタイマによって所定時
間のディレイ時間(スイッチチェック間隔をとるための
遅延時間に相当)を設定する(ステップS874)。次
いで、ウエイト用コードにもとづく処理を実行するとと
もに(ステップS875)、ソフトウェアタイマを減算
し(ステップS876)、ディレイ時間が経過していな
ければステップS875に戻る(ステップS877の
N)。ディレイ時間が経過していればステップS838
に戻る(ステップS877のY)。ウエイト用コードに
もとづく処理は、遅延時間が経過するまでに時間を稼ぐ
ための処理であり、他の制御内容に影響を与えない処理
である。
Then, the number of port checks is subtracted (step S840), and if the value is 0, the process proceeds to step S808 shown in FIG. 68 described above. If it is not 0, the software timer sets a delay time of a predetermined time (corresponding to the delay time for setting the switch check interval) (step S874). Next, the process based on the weight code is executed (step S875), the software timer is decremented (step S876), and if the delay time has not elapsed, the process returns to step S875 (N in step S877). If the delay time has elapsed, step S838.
(Y in step S877). The process based on the wait code is a process for gaining time until the delay time elapses, and is a process that does not affect other control contents.

【0478】図72は、この実施の形態における払出状
態復旧処理の一例を示すフローチャートである。払出状
態復旧処理において、払出制御用CPU371は、ま
ず、スタックポインタの復旧処理を行う(ステップS8
81)。スタックポインタの値は、後述する電力供給停
止時処理において、所定のRAMエリア(電源バックア
ップされている)に退避している。よって、ステップS
881では、そのRAMエリアの値をスタックポインタ
に設定することによって復旧させる。なお、復旧された
スタックポインタが指す領域(すなわちスタック領域)
には、電力供給が停止したときのレジスタ値やプログラ
ムカウンタ(PC)の値が退避している。
FIG. 72 is a flow chart showing an example of the payout state recovery processing in this embodiment. In the payout state recovery process, the payout control CPU 371 first performs a stack pointer recovery process (step S8).
81). The value of the stack pointer is saved in a predetermined RAM area (power source is backed up) in the power supply stoppage process described later. Therefore, step S
At 881, the value of the RAM area is set in the stack pointer to restore the value. The area pointed to by the restored stack pointer (that is, the stack area)
The register value and the value of the program counter (PC) when the power supply is stopped are saved in.

【0479】この実施の形態では、主基板31のCPU
56は、電力供給開始時に復旧条件が成立していたら実
行される遊技状態復旧処理において、保存されていたポ
ート出力内容記憶領域の内容を出力ポートに出力する処
理を行う。従って、この実施の形態では、払出制御用C
PU371は、そのような状況を考慮して、主基板31
からポート出力内容記憶領域の内容が出力されたことを
確認してから、電力供給停止直前に実行されていたアド
レスに復帰する制御を行う。
In this embodiment, the CPU of the main board 31
56 performs a process of outputting the saved contents of the port output contents storage area to the output port in the game state recovery process that is executed if the recovery condition is satisfied at the start of power supply. Therefore, in this embodiment, the payout control C
In consideration of such a situation, the PU 371 selects the main board 31.
After confirming that the contents of the port output contents storage area have been output from the device, control is performed to return to the address that was executed immediately before the power supply was stopped.

【0480】払出制御用CPU371は、まず、処理ル
ープ回数をセットする(ステップS882)。そして、
入力ポートA(図41参照)のデータすなわちコマンド
データを入力する(ステップS883)。そして、入力
したデータが前回入力したデータと同じであるか否か確
認する(ステップS884)。同じであれば、処理ルー
プ回数を−1する(ステップS885)。そして、処理
ループ回数が0になっていなければステップS883に
戻る。処理ループ回数が0になっていればステップS8
87に移行する。また、ステップS884において入力
したデータが前回入力したデータと同じであることを確
認した場合にもステップS887に移行する。
First, the payout control CPU 371 sets the number of processing loops (step S882). And
Data of the input port A (see FIG. 41), that is, command data is input (step S883). Then, it is confirmed whether or not the input data is the same as the previously input data (step S884). If they are the same, the number of processing loops is decremented by 1 (step S885). If the number of processing loops is not 0, the process returns to step S883. If the number of processing loops is 0, step S8
Go to 87. Also, when it is confirmed that the data input in step S884 is the same as the previously input data, the process proceeds to step S887.

【0481】ステップS887において、払出制御用C
PU371は、CTCやPIOなどの内蔵デバイスの初
期設定を行い、また、スタック領域から各種レジスタの
退避値を読み出して、各種レジスタに設定する。すなわ
ち、レジスタ復元処理を行う。ここで、RAMアクセス
許可状態に設定する処理も行う。さらに、バックアップ
フラグをクリアする(ステップS888)。次いで、電
力供給が停止したときに実行された電力供給停止時処理
において保存された賞球カウント値を総合個数記憶に反
映する(ステップS889)。例えば、総合個数記憶の
内容から賞球カウント値を減算する。また、電力供給が
停止したときに実行された電力供給停止時処理において
保存された貸出カウント値を貸し球個数記憶に反映する
(ステップS890)。例えば、貸し球個数記憶の内容
から貸出カウント値を減算する。また、RAM領域にお
ける保護領域以外の領域の内容をクリアする(ステップ
S891)。そして、パリティフラグがオンしていない
場合には割込許可状態にする(ステップS892,S8
93)。最後に、内部状態を払出禁止状態に設定して
(ステップS894)、AFレジスタ(アキュミュレー
タとフラグのレジスタ)をスタック領域から復元する
(ステップS895)。
In step S887, the payout control C
The PU 371 performs initial settings of built-in devices such as CTC and PIO, reads the saved values of various registers from the stack area, and sets them in various registers. That is, register restoration processing is performed. Here, the process of setting the RAM access permission state is also performed. Further, the backup flag is cleared (step S888). Next, the prize ball count value stored in the power supply stop processing executed when the power supply is stopped is reflected in the total number storage (step S889). For example, the prize ball count value is subtracted from the content of the total number memory. In addition, the lending count value stored in the power supply stop process executed when the power supply is stopped is reflected in the number of lent balls stored (step S890). For example, the lending count value is subtracted from the stored contents of the number of lent balls. In addition, the contents of areas other than the protected area in the RAM area are cleared (step S891). Then, when the parity flag is not turned on, the interrupt permission state is set (steps S892 and S8).
93). Finally, the internal state is set to the payout prohibition state (step S894), and the AF register (accumulator and flag register) is restored from the stack area (step S895).

【0482】そして、所定時間(処理ループ回数の初期
値に応じた時間)内に入力ポートの状態が変化しなかっ
た場合には、すなわち、ステップS882〜S886の
処理において遊技制御手段からのコマンドデータの出力
が確認されなかったら、プログラムカウンタ(PC)を
初期化して(ステップS896)RET命令が実行され
る。従って、この実施の形態では、払出状態復旧処理を
実行した後、初期状態から払出制御が開始される。
If the state of the input port does not change within the predetermined time (the time corresponding to the initial value of the number of processing loops), that is, the command data from the game control means in the processing of steps S882 to S886. If the output of is not confirmed, the program counter (PC) is initialized (step S896) and the RET instruction is executed. Therefore, in this embodiment, after executing the payout state recovery process, the payout control is started from the initial state.

【0483】以上のような処理によって、電力供給が開
始したときに、復旧条件が成立していた場合に実行され
る払出状態復旧処理において、主基板31からのコマン
ドデータが入力される入力ポートの状態が変化したこと
を確認してから、電力供給停止時にNMIが発生したア
ドレスに復帰する。従って、そのアドレスがコマンド受
信割込処理におけるアドレスであるような場合に、保存
されていたポート出力内容記憶領域の内容を出力ポート
に出力する処理を主基板31のCPU56が行ったこと
を確認してからコマンド受信割込処理を再開することが
できる。従って、払出制御コマンドの受信を確実に行う
ことができ、払出制御コマンドが消失してしまうことを
確実に防止することができる。なお、コマンド受信割込
処理が完了したら、初期状態から払出制御が開始され
る。
With the above processing, in the payout state restoration processing executed when the restoration condition is satisfied when the power supply is started, the input port of the input port to which the command data from the main board 31 is inputted is input. After confirming that the state has changed, the NMI is restored to the address where the power supply was stopped. Therefore, when the address is the address in the command reception interrupt process, it is confirmed that the CPU 56 of the main board 31 has performed the process of outputting the content of the saved port output content storage area to the output port. Then, the command reception interrupt process can be restarted. Therefore, the payout control command can be surely received, and the payout control command can be surely prevented from being lost. When the command reception interrupt process is completed, the payout control is started from the initial state.

【0484】実施の形態2とは異なり、この実施の形態
では、電力供給停止時処理において、払出制御コマンド
の受信を継続する処理は実行されない。しかし、払出状
態状態復旧処理において、保存されていたポート出力内
容記憶領域の内容を出力ポートに出力する処理を主基板
31のCPU56が行ったことを確認してからコマンド
受信割込処理を再開する。すなわち、電力供給が開始さ
れた場合に、遊技制御手段によるコマンドデータの出力
ポートへの出力状態を監視し、出力状態に応じてコマン
ドデータを取り込む処理を再開可能な状態にする。従っ
て、電力供給停止の直前に払出制御コマンドの受信が開
始されたにも関わらず受信が完了しなかった場合でも、
電力供給が復旧したときに、確実にコマンド受信処理を
完了させることができる。
Unlike the second embodiment, in this embodiment, the processing for continuing the reception of the payout control command is not executed in the power supply stop processing. However, in the payout state recovery processing, after confirming that the CPU 56 of the main board 31 has performed the processing of outputting the content of the saved port output content storage area to the output port, the command reception interrupt processing is restarted. . That is, when the power supply is started, the output state of the command data to the output port by the game control means is monitored, and the process of fetching the command data according to the output state can be restarted. Therefore, even if the reception of the payout control command is started immediately before the power supply is stopped, but the reception is not completed,
When the power supply is restored, the command reception process can be surely completed.

【0485】なお、この実施の形態では、主基板31の
CPU56がポート出力内容記憶領域の内容を出力ポー
トに出力する処理を行ったことを確認するための所定時
間内に、CPU56がポート出力内容記憶領域の内容を
出力ポートに出力する処理を行ったことを確認できなか
った場合には、初期状態に戻るようにしたが、そのよう
な場合には、電力供給が停止したときにコマンド受信処
理は行われていなかったはずであり、コマンド受信処理
に復旧することはない。すなわち、CPU56がポート
出力内容記憶領域の内容を出力ポートに出力する処理を
行ったことを確認できなかった場合には、初期状態に戻
っても問題はない。また、初期状態に戻る際にRAMの
保護領域の内容は保存されているので、遊技者に不利益
が与えられることはない。
In this embodiment, the CPU 56 of the main board 31 outputs the port output contents within a predetermined time to confirm that the CPU 56 has output the contents of the port output contents storage area to the output port. When it was not possible to confirm that the processing of outputting the contents of the storage area to the output port was performed, the initial state was restored. Should not have been performed, and will not recover to the command reception processing. That is, if it is not confirmed that the CPU 56 has performed the process of outputting the contents of the port output contents storage area to the output port, there is no problem in returning to the initial state. Further, since the contents of the protected area of the RAM are preserved when returning to the initial state, no disadvantage is given to the player.

【0486】また、払出状態復旧処理において保護領域
以外の領域がクリアされるので、不正確なデータによっ
て誤った制御を行ってしまうことが防止される。この実
施の形態では、払出状態復旧処理において保護領域以外
の領域がクリアされるが、電力供給が開始されたときに
コマンド受信処理に復旧するような場合には、コマンド
受信処理におけるコマンドデータの取り込みを実行して
から保護領域以外の領域をクリアするようにしてもよ
い。
Further, since the area other than the protected area is cleared in the payout state recovery processing, it is possible to prevent erroneous control due to incorrect data. In this embodiment, areas other than the protected area are cleared in the payout state recovery process, but if the command reception process is restored when power supply is started, the command data is taken in the command reception process. After executing, the area other than the protected area may be cleared.

【0487】以上に説明したような第3の実施の形態の
構成とした場合であっても、第1の実施の形態と同様の
効果を得ることができる。具体的には、電力供給停止時
処理(図71、図68参照)にて、検出維持期間(ステ
ップS837にてポートチェック回数が設定されてか
ら、設定された回数のポートチェックが終了してステッ
プS841にて「Y」となるまでの期間)が経過するま
での間は、コンデンサ923,924に充電された電力
を用いて、電源基板910(補助電力供給手段および作
動状態保持手段の機能を有する基板である。)が、賞球
カウントスイッチ301A(景品遊技媒体検出手段の一
例)および球貸しカウントスイッチ301B(貸出遊技
媒体検出手段の一例)を駆動可能な電力を供給するとと
もに、ソレノイド310(通路切換手段の一例)が振分
部材311の状態を保持するための駆動電力を供給し、
払出制御手段(払出制御用CPU371)が賞球カウン
トスイッチ301Aおよび球貸しカウントスイッチ30
1Bからの検出信号の入力処理(ステップS837〜ス
テップS848)を行う構成としたので、電力供給停止
時処理にて、払い出された景品遊技媒体(入賞領域への
入賞にもとづいて景品として払い出される遊技媒体)や
貸出遊技媒体(遊技者からの貸出要求に応じて貸し出さ
れる遊技媒体)を確実に検出することができるようにな
る。すなわち、上述した第3の実施の形態の構成をなす
遊技機によれば、電力供給停止時処理にて払い出された
遊技媒体の検出を確実に実行することができるので、遊
技媒体の未払出数を正確に把握することができるように
なる。
Even with the configuration of the third embodiment as described above, the same effect as that of the first embodiment can be obtained. Specifically, in the power supply stop process (see FIG. 71 and FIG. 68), after the number of port checks is set in the detection maintaining period (step S837), the set number of port checks are completed and Until the time of "Y" in S841) elapses, the electric power charged in the capacitors 923 and 924 is used to function as a power supply substrate 910 (auxiliary power supply means and operating state holding means). The board) supplies electric power capable of driving the prize ball count switch 301A (an example of the prize game medium detecting means) and the ball lending count switch 301B (an example of the lending game medium detecting means), and the solenoid 310 (passage). An example of a switching means) supplies drive power for maintaining the state of the distribution member 311;
The payout control means (payout control CPU 371) has a prize ball count switch 301A and a ball lending count switch 30.
Since the input processing of the detection signal from 1B (step S837 to step S848) is performed, the paid game media (paid as a prize based on the winning in the winning area is paid out in the power supply stop processing. It becomes possible to reliably detect a game medium) and a lending game medium (a game medium lent out in response to a lending request from a player). That is, according to the gaming machine having the configuration of the above-described third embodiment, it is possible to reliably execute the detection of the gaming medium paid out in the power supply stop process, so that the gaming medium is not paid yet. You will be able to grasp the number accurately.

【0488】なお、上述した第3の実施の形態において
も、電力供給停止時処理において、払出制御手段が、賞
球カウントスイッチ301Aあるいは球貸しカウントス
イッチ301Bのうちいずれか一方のスイッチの状態を
確認する構成としてもよい。
Also in the third embodiment described above, the payout control means confirms the state of either the prize ball count switch 301A or the ball lending count switch 301B in the power supply stop process. It may be configured to.

【0489】なお、上述した第2の実施の形態および第
3の実施の形態では、主として払出制御手段の処理につ
いて説明したが、例えば電力供給停止時処理における賞
球カウントスイッチ301Aからの検出状態の確認など
の処理は、遊技制御手段にて同様に実行される。
In the above-described second and third embodiments, the processing of the payout control means has been mainly described. Processing such as confirmation is similarly executed by the game control means.

【0490】また、上述した各実施の形態では、払出制
御手段が賞球カウントスイッチ301Aと球貸しカウン
トスイッチ301Bとを区別してその状態を確認する構
成としていたが(例えば図46、図59および図60、
図67、図71参照)、それらのカウントスイッチを区
別することなく確認する構成とすることもできる。図7
3は、賞球カウントスイッチ301Aと球貸しカウント
スイッチ301Bの区別をしないでそれらのカウントス
イッチの状態を確認する構成とする場合のマスク不能割
込処理(NMI処理:電力供給停止時処理)の処理例を
示すフローチャートである。なお、上述した図45等に
おいて既に説明した処理等については詳細な説明を省略
する。
Further, in each of the above-mentioned embodiments, the payout control means distinguishes the prize ball count switch 301A and the ball lending count switch 301B and confirms the state thereof (for example, FIG. 46, FIG. 59 and FIG. 59). 60,
67 and 71), the count switches can be confirmed without distinction. Figure 7
Process 3 is a non-maskable interrupt process (NMI process: power supply stop process) when the prize ball count switch 301A and the ball lending count switch 301B are not distinguished from each other and the states of the count switches are confirmed. It is a flowchart which shows an example. Note that detailed description of the processing and the like already described in FIG. 45 and the like will be omitted.

【0491】図73に示すマスク不能割込処理におい
て、払出制御用CPU371は、ステップS801〜ス
テップS808の処理を行ったあと、ステップS821
〜ステップS827に示した出力ポートクリア処理を行
う。その後、この実施の形態では、所定期間(検出維持
期間)、払出検出手段(カウントスイッチ:賞球カウン
トスイッチ301A、球貸しカウントスイッチ301
B)の検出信号をチェックする。この例では、チェック
する検出信号が、賞球カウントスイッチ301Aからの
検出信号であるか、球貸しカウントスイッチ301Bか
らの検出信号であるかは問題としない。この例では、カ
ウントスイッチのどちらかがオンしたら、払い出された
遊技球が賞球であるか貸し球であるのかを確認し、賞球
であれば総合個数記憶の内容を1減らす。また、払い出
された遊技球が貸し球であれば貸し球個数記憶の内容を
1減らす。
In the non-maskable interrupt process shown in FIG. 73, the payout control CPU 371 performs the processes of steps S801 to S808 and then executes step S821.
The output port clearing process shown in step S827 is performed. Then, in this embodiment, a predetermined period (detection maintaining period), payout detecting means (count switch: prize ball count switch 301A, ball lending count switch 301)
Check the detection signal of B). In this example, it does not matter whether the detection signal to be checked is the detection signal from the prize ball count switch 301A or the ball lending count switch 301B. In this example, if either of the count switches is turned on, it is confirmed whether the paid game ball is a prize ball or a loan ball, and if it is a prize ball, the content of the total number memory is decremented by 1. If the paid game ball is a loan ball, the content of the number of loaned balls stored is reduced by one.

【0492】払出検出手段からの検出信号の入力処理で
は、払出制御用CPU371は、まず、所定期間計測用
カウンタに、所定期間に対応した値mを設定する(ステ
ップS762)。そして、払出制御用CPU371は、
所定期間計測用カウンタの値を−1し(ステップS76
3)、所定期間計測用カウンタの値を確認する(ステッ
プS764)。その値が0であれば、スイッチ検出処理
を終了し、制御状態を保存するための処理である電力供
給停止時処理に移行する。
In the input processing of the detection signal from the payout detecting means, the payout control CPU 371 first sets the value m corresponding to the predetermined period in the counter for measuring the predetermined period (step S762). Then, the payout control CPU 371
The value of the counter for measuring for a predetermined period is decremented by 1 (step S76
3) Confirm the value of the counter for measuring the predetermined period (step S764). If the value is 0, the switch detection process is terminated, and the process proceeds to a power supply stop process which is a process for saving the control state.

【0493】所定期間計測用カウンタの値が0になって
いなければ、カウントスイッチのいずれかがオン中であ
るか否か確認する(ステップS765a)。オン中であ
れば、検出期間用カウンタの値を1減らした後(ステッ
プS766)、検出期間用カウンタの値が0になったか
否か確認する(ステップS767)。0になっていれ
ば、入力ポートを介してカウントスイッチからの検出信
号を確認し(ステップS768a)、オン状態を示して
いれば、払い出された遊技球が賞球であるか貸し球であ
るのかを確認する。この例では、払出制御用CPU37
1は、賞球処理中フラグがオンしているか否か確認し
(ステップS828)、オンしている場合には賞球処理
中であるため、払い出された遊技球が賞球であると判定
する。払い出された遊技球が賞球であると判定した場合
には、払出制御用CPU371は、総合個数記憶の値を
1減らす(ステップS769)。
If the value of the counter for measuring the predetermined period is not 0, it is confirmed whether any of the count switches is on (step S765a). If it is on, after the value of the detection period counter is decremented by 1 (step S766), it is confirmed whether or not the value of the detection period counter has become 0 (step S767). If it is 0, the detection signal from the count switch is confirmed via the input port (step S768a), and if it is in the ON state, the paid game ball is a prize ball or a loan ball. Check if. In this example, the payout control CPU 37
1, it is confirmed whether or not the award ball processing flag is turned on (step S828), and if it is turned on, the award ball is being processed, so it is determined that the paid game ball is an award ball. To do. When it is determined that the paid game ball is a prize ball, the payout control CPU 371 decrements the value of the total number memory by 1 (step S769).

【0494】賞球処理中フラグがオンでなければ、払出
制御用CPU371は、球貸し処理中フラグがオンして
いるか否か確認し(ステップS829)、オンしている
場合には球貸し処理中であるため、払い出された遊技球
が貸し球であると判定する。払い出された遊技球が貸し
球であると判定した場合には、払出制御用CPU371
は、貸し球個数記憶の値を1減らす(ステップS77
9)。
If the prize ball processing flag is not on, the payout control CPU 371 confirms whether the ball lending processing flag is on (step S829), and if it is on, ball lending processing is on. Therefore, it is determined that the paid game ball is a lending ball. When it is determined that the paid game ball is a rented ball, the payout control CPU 371
Decrements the value stored in the number of lent balls by 1 (step S77).
9).

【0495】ステップS765aで、いずれのカウント
スイッチもオン中でないことを確認したら、入力ポート
を介してそれぞれのカウントスイッチの検出信号を確認
し(ステップS770a)、いずれかのカウントスイッ
チがオン状態を示していれば、カウントスイッチON中
フラグをセットするとともに(ステップS771a)、
検出期間用カウンタに初期値nをセットする(ステップ
S772)。なお、カウントスイッチ検出処理では、ス
テップS767にて検出期間用カウンタの値が0になっ
ていない場合、ステップS770aにていずれのカウン
トスイッチもオン状態を示していない場合、ステップS
772にて検出期間用カウンタに初期値nをセットした
場合のいずれの場合でも、それらの処理のあとにステッ
プS763の処理に戻る。
When it is confirmed in step S765a that neither count switch is on, the detection signal of each count switch is confirmed via the input port (step S770a), and one of the count switches indicates the on state. If so, the count switch ON flag is set (step S771a), and
An initial value n is set in the detection period counter (step S772). In the count switch detection process, if the value of the detection period counter is not 0 in step S767, or if none of the count switches is in the ON state in step S770a, step S770.
In any case where the initial value n is set in the detection period counter in 772, the processing returns to step S763 after the processing.

【0496】以上の処理によって、所定期間内にいずれ
かのカウントスイッチがオンした場合、賞球払出処理中
であることが確認されたら総合個数記憶の値が−1さ
れ、球貸し処理中であることが確認されたら貸し球個数
記憶の値が−1される。
With the above processing, when any of the count switches is turned on within the predetermined period, if it is confirmed that the prize ball payout processing is being carried out, the value of the total number memory is decremented by 1 and the ball lending processing is being carried out. If this is confirmed, the value of the number of lent balls stored is decremented by one.

【0497】上記のように、賞球カウントスイッチ30
1Aと球貸しカウントスイッチ301Bの区別をするこ
となく検出信号の入力処理を行い、検出信号の入力があ
った場合に払い出された遊技球が賞球であるのか貸し球
であるのかを確認する構成としてので、たとえ賞球とし
て払い出された遊技球が貸し球用の通路を通過して払い
出されるようなことがあっても、賞球として正確に検出
されるようになる。また、貸し球として払い出された遊
技球が賞球用の通路を通過して払い出されるようなこと
があっても、貸し球として正確に検出されるようにな
る。従って、電源供給停止時処理の際に振分部材311
の状態が維持されていなくても、賞球あるいは貸し球の
別を正確に判定することができ、バックアップRAM領
域に格納されている未払出数に反映させることが可能と
なる。よって、電源供給停止時処理の際に振分ソレノイ
ド310を駆動させるための電源を確保しておく必要が
ないので、コンデンサ924を設けない構成や、コンデ
ンサ924の容量を小さくした構成としても、電力供給
停止時処理において、払い出された遊技球を賞球と貸し
球を区別して検出することができる。
As described above, the prize ball count switch 30
Input processing of the detection signal is performed without distinguishing 1A and the ball lending count switch 301B, and when the detection signal is input, it is confirmed whether the game ball paid out is a prize ball or a loan ball. As a configuration, even if a game ball paid out as a prize ball passes through a lending ball passage and is paid out, the game ball is accurately detected as a prize ball. Further, even if a game ball paid out as a rental ball passes through a prize ball passage and is paid out, the game ball is accurately detected as a rental ball. Therefore, the distribution member 311 is used during the processing when the power supply is stopped.
Even if the state of No. is not maintained, it is possible to accurately determine whether a prize ball or a lent ball, and it can be reflected in the number of unpaid coins stored in the backup RAM area. Therefore, it is not necessary to secure a power source for driving the distribution solenoid 310 during the processing when the power supply is stopped. In the supply stop process, the paid game balls can be detected by distinguishing the prize balls from the loan balls.

【0498】上記の各実施の形態のパチンコ遊技機は、
主として、始動入賞にもとづいて可変表示部9に可変表
示される特別図柄の停止図柄が所定の図柄の組み合わせ
になると所定の遊技価値が遊技者に付与可能になる第1
種パチンコ遊技機であったが、始動入賞にもとづいて開
放する電動役物の所定領域への入賞があると所定の遊技
価値が遊技者に付与可能になる第2種パチンコ遊技機
や、始動入賞にもとづいて可変表示される図柄の停止図
柄が所定の図柄の組み合わせになると開放する所定の電
動役物への入賞があると所定の権利が発生または継続す
る第3種パチンコ遊技機であっても、本発明を適用でき
る。
The pachinko gaming machine of each of the above embodiments is
Mainly, a predetermined game value can be given to the player when the stop symbol of the special symbol variably displayed on the variable display portion 9 based on the start winning is a combination of the predetermined symbols.
Although it was a kind of pachinko machine, a kind of pachinko machine that can give a predetermined game value to the player if there is a prize in the predetermined area of the electric role to open based on the start prize, and a start prize Even if it is a third-class pachinko game machine, a predetermined right is generated or continues when there is a prize for a predetermined electric accessory that is released when a stop symbol of the symbols variably displayed based on the above is a combination of predetermined symbols The present invention can be applied.

【0499】さらに、遊技媒体が遊技球であるパチンコ
遊技機に限られず、スロット機等においても、遊技媒体
の払い出しを行う電気部品が備えられている場合には本
発明を適用することができる。
Furthermore, the present invention is applicable not only to a pachinko gaming machine in which the game medium is a game ball, but also to a slot machine or the like provided with an electric component for paying out the game medium.

【0500】[0500]

【発明の効果】以上のように、請求項1記載の発明によ
れば、遊技機を、電源監視手段による検出信号が出力さ
れた後少なくとも所定の検出維持期間が経過するまでの
期間において景品遊技媒体検出手段と貸出遊技媒体検出
手段とのうち少なくともいずれか一方に電力を供給可能
な補助電力供給手段と、少なくとも検出維持期間が経過
するまでの間は通路切換手段の状態を保持可能な作動状
態保持手段とを含み、遊技制御手段および払出制御手段
が、それぞれ、電源監視手段からの検出信号に応じて制
御状態を復旧させるために必要なデータを変動データ記
憶手段に保存するための電力供給停止時処理を実行し、
電力供給停止時処理にて、遊技制御手段は、景品遊技媒
体検出手段からの検出信号の入力処理を行い、払出制御
手段は、景品遊技媒体検出手段と貸出遊技媒体検出手段
とのうち少なくともいずれか一方からの検出信号の入力
処理を行うことを特徴とするので、電力供給停止時処理
にて、払い出された景品遊技媒体や貸出遊技媒体を確実
に検出することができるという効果がある。
As described above, according to the first aspect of the present invention, the gaming machine is a prize game in a period until at least a predetermined detection maintaining period elapses after the detection signal is output by the power source monitoring means. Auxiliary power supply means capable of supplying power to at least one of the medium detection means and the rental game medium detection means, and an operation state in which the state of the passage switching means can be maintained at least until the detection maintaining period elapses. Stopping power supply for saving the data necessary for the game control means and the payout control means to restore the control state in response to the detection signal from the power supply monitoring means in the variable data storage means, including the holding means. Run time processing,
In the power supply stop process, the game control means performs an input process of a detection signal from the prize game medium detection means, and the payout control means is at least one of the prize game medium detection means and the rental game medium detection means. Since the detection signal from one side is input, there is an effect that the paid-out prize game medium or the rental game medium can be surely detected in the power supply stop process.

【0501】請求項2記載の発明では、作動状態保持手
段が、少なくとも検出維持期間が経過するまでの間は通
路切換手段が駆動可能な電力を供給する補助駆動電力供
給手段であるように構成されているので、通路切換手段
の駆動状態を電気的な構成によって保持させることがで
きる。
According to the second aspect of the present invention, the operating state holding means is configured to be an auxiliary drive power supply means for supplying electric power capable of driving the passage switching means at least until the detection maintaining period elapses. Therefore, the drive state of the passage switching means can be maintained by the electrical configuration.

【0502】請求項3記載の発明では、作動状態保持手
段が、少なくとも検出維持期間が経過するまでの間は通
路切換手段の状態を保持可能な保持機構であるように構
成されているので、通路切換手段の駆動状態を機械的な
構成によって保持させることができる。
According to the third aspect of the present invention, the operating state holding means is configured to be a holding mechanism capable of holding the state of the passage switching means at least until the detection maintaining period elapses. The drive state of the switching means can be maintained by a mechanical structure.

【0503】請求項4記載の発明では、払出制御手段
が、電力供給停止時処理にて払出手段が景品遊技媒体あ
るいは貸出遊技媒体のいずれの払出中であるか否かを判
定し、判定にもとづいて景品遊技媒体検出手段あるいは
貸出遊技媒体検出手段の入力処理を選択的に行うように
構成されているので、電力供給停止時処理を迅速に行う
ことができる。
According to the fourth aspect of the invention, the payout control means determines whether or not the payout means is paying out the prize game medium or the rental game medium during the power supply stop process, and based on the determination. Since the input processing of the prize game medium detecting means or the lending game medium detecting means is selectively performed, the power supply stop processing can be quickly performed.

【0504】また、請求項5記載の発明では、遊技機
を、電源監視手段による検出信号が出力された後少なく
とも所定の検出維持期間が経過するまでの間は景品遊技
媒体検出手段および貸出遊技媒体検出手段に電力を供給
可能な補助電力供給手段を含み、払出制御手段が、電源
監視手段からの検出信号に応じて制御状態を復旧させる
ために必要なデータを変動データ記憶手段に保存するた
めの電力供給停止時処理を実行し、払出制御手段が、電
力供給停止時処理にて、景品遊技媒体検出手段と貸出遊
技媒体検出手段とのうち少なくともいずれか一方からの
検出信号の入力処理を行うとともに、払出手段による景
品遊技媒体あるいは貸出遊技媒体のいずれの払出である
か否かを判定し、その判定結果にもとづいて、入力処理
の際に入力した検出信号が、景品遊技媒体と貸出遊技媒
体のうちいずれの検出にもとづく検出信号であるかを特
定可能であることを特徴とするので、通路切換手段の状
態を保持しなくても景品遊技媒体または貸出遊技媒体が
払い出されたことを確実に検出することができるという
効果がある。
Further, in the invention according to claim 5, the gaming machine, the prize gaming medium detecting means and the renting gaming medium until at least a predetermined detection maintaining period elapses after the detection signal by the power source monitoring means is output. The auxiliary power supply means capable of supplying electric power to the detection means, for the payout control means to store the data necessary for restoring the control state in the fluctuation data storage means in response to the detection signal from the power supply monitoring means. The power supply stop processing is executed, and the payout control means performs the input processing of the detection signal from at least one of the prize game medium detection means and the rental game medium detection means in the power supply stop processing. , It is determined whether or not the payout means pays out the prize game medium or the rental game medium, and based on the determination result, the detection input during the input process. It is possible to specify whether the signal is a detection signal based on the detection of the prize game medium or the rental game medium. There is an effect that it is possible to reliably detect that the game medium has been paid out.

【0505】請求項6記載の発明では、電力供給停止時
処理にて、外部へ信号を出力するための出力ポートをク
リアする処理を実行したあと、景品遊技媒体検出手段と
貸出遊技媒体検出手段とのうち少なくとも一方からの検
出信号の入力処理を行うように構成されているので、電
力供給停止時処理における消費電力を軽減することがで
きる。
According to the sixth aspect of the present invention, in the power supply stop process, after performing the process of clearing the output port for outputting a signal to the outside, the prize game medium detecting means and the rental game medium detecting means are provided. Since it is configured to perform the input processing of the detection signal from at least one of them, it is possible to reduce the power consumption in the power supply stop processing.

【0506】請求項7記載の発明では、検出維持期間
が、払出手段によって払い出された遊技媒体が景品遊技
媒体検出手段あるいは貸出遊技媒体検出手段のいずれか
の検出位置に到達するまでの期間以上の期間に設定され
る構成とされているので、払い出された遊技媒体を確実
に検出することができる。
In the invention according to claim 7, the detection maintaining period is equal to or longer than the period until the game medium paid out by the payout means reaches the detection position of either the prize game medium detection means or the rental game medium detection means. Since it is configured to be set in the period of, it is possible to reliably detect the paid-out game medium.

【0507】請求項8記載の発明では、払出制御手段
が、電力供給停止時処理では景品遊技媒体検出手段ある
いは貸出遊技媒体検出手段からの検出信号の入力処理の
結果を示すデータを変動データ記憶手段に保存し、復旧
処理にて、入力処理の結果を示すデータを未払出数デー
タにもとづいて未払出数データを更新する処理を行うよ
うに構成されているので、電力供給停止時処理を迅速に
行うことができる。
In the invention as set forth in claim 8, the payout control means changes the data showing the result of the input processing of the detection signal from the prize game medium detecting means or the rental game medium detecting means in the power supply stop processing to the variable data storing means. In the recovery process, the data indicating the result of the input process is configured to perform the process of updating the unpaid amount data based on the unpaid amount data, so that the process at the time of power supply stop can be performed quickly. It can be carried out.

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

【図1】 パチンコ遊技機を正面からみた正面図であ
る。
FIG. 1 is a front view of a pachinko gaming machine as viewed from the front.

【図2】 ガラス扉枠を取り外した状態での遊技盤の前
面を示す正面図である。
FIG. 2 is a front view showing the front surface of the game board with the glass door frame removed.

【図3】 遊技機を裏面から見た背面図である。FIG. 3 is a rear view of the gaming machine viewed from the back side.

【図4】 各種部材が取り付けられた機構板を遊技機背
面側から見た背面図である。
FIG. 4 is a rear view of a mechanism plate to which various members are attached as seen from the rear side of the gaming machine.

【図5】 球払出装置の構成例を示す分解斜視図であ
る。
FIG. 5 is an exploded perspective view showing a configuration example of a ball payout device.

【図6】 遊技盤に設置されているスイッチ基板の部分
を示す正面図である。
FIG. 6 is a front view showing a portion of a switch board installed on the game board.

【図7】 クリアスイッチの構成の一例を示す構成図で
ある。
FIG. 7 is a configuration diagram showing an example of a configuration of a clear switch.

【図8】 遊技制御基板(主基板)の回路構成例を示す
ブロック図である。
FIG. 8 is a block diagram showing a circuit configuration example of a game control board (main board).

【図9】 払出制御基板の回路構成例を示すブロック図
である。
FIG. 9 is a block diagram showing a circuit configuration example of a payout control board.

【図10】 電源基板の回路構成例を示すブロック図で
ある。
FIG. 10 is a block diagram showing a circuit configuration example of a power supply board.

【図11】 電源監視および電源バックアップのための
CPU周りの一構成例を示すブロック図である。
FIG. 11 is a block diagram showing an example of a configuration around a CPU for power supply monitoring and power supply backup.

【図12】 出力ポートのビット割り当ての一例を示す
説明図である。
FIG. 12 is an explanatory diagram showing an example of bit allocation of output ports.

【図13】 出力ポートのビット割り当ての一例を示す
説明図である。
FIG. 13 is an explanatory diagram showing an example of bit allocation of output ports.

【図14】 入力ポートのビット割り当ての一例を示す
説明図である。
FIG. 14 is an explanatory diagram showing an example of bit allocation of input ports.

【図15】 主基板におけるCPUが実行するメイン処
理を示すフローチャートである。
FIG. 15 is a flowchart showing a main process executed by a CPU on a main board.

【図16】 バックアップフラグと遊技状態復旧処理を
実行するか否かとの関係の一例を示す説明図である。
FIG. 16 is an explanatory diagram showing an example of the relationship between the backup flag and whether or not to execute the game state recovery process.

【図17】 遊技状態復旧処理を示すフローチャートで
ある。
FIG. 17 is a flowchart showing a game state recovery process.

【図18】 2msタイマ割込処理を示すフローチャー
トである。
FIG. 18 is a flowchart showing a 2 ms timer interrupt process.

【図19】 マスク不能割込処理(電力供給停止時処
理)を示すフローチャートである。
FIG. 19 is a flowchart showing non-maskable interrupt processing (processing when power supply is stopped).

【図20】 マスク不能割込処理(電力供給停止時処
理)を示すフローチャートである。
FIG. 20 is a flowchart showing a non-maskable interrupt process (power supply stop process).

【図21】 マスク不能割込処理(電力供給停止時処
理)を示すフローチャートである。
FIG. 21 is a flowchart showing non-maskable interrupt processing (processing when power supply is stopped).

【図22】 遊技機への電力供給停止時の電源低下やN
MI信号の様子を示すタイミング図である。
FIG. 22: Power supply drop and N when power supply to a game machine is stopped
It is a timing diagram which shows a mode of MI signal.

【図23】 検出信号の入力処理が実行される様子の一
例を示すタイミング図である。
FIG. 23 is a timing chart showing an example of how a detection signal input process is executed.

【図24】 RAMにおけるスイッチタイマの形成例を
示す説明図である。
FIG. 24 is an explanatory diagram showing a formation example of a switch timer in a RAM.

【図25】 スイッチ処理の一例を示すフローチャート
である。
FIG. 25 is a flowchart showing an example of a switch process.

【図26】 スイッチチェック処理の一例を示すフロー
チャートである。
FIG. 26 is a flowchart showing an example of a switch check process.

【図27】 賞球処理の一例を示すフローチャートであ
る。
FIG. 27 is a flowchart showing an example of prize ball processing.

【図28】 賞球処理の一例を示すフローチャートであ
る。
FIG. 28 is a flowchart showing an example of prize ball processing.

【図29】 賞球処理の一例を示すフローチャートであ
る。
FIG. 29 is a flowchart showing an example of prize ball processing.

【図30】 スイッチオンチェック処理を示すフローチ
ャートである。
FIG. 30 is a flowchart showing a switch-on check process.

【図31】 入力判定値テーブルの構成例を示す説明図
である。
FIG. 31 is an explanatory diagram showing a configuration example of an input determination value table.

【図32】 コマンド送信テーブル等の一構成例を示す
説明図である。
FIG. 32 is an explanatory diagram showing a configuration example of a command transmission table and the like.

【図33】 制御コマンドのコマンド形態の一例を示す
説明図である。
FIG. 33 is an explanatory diagram showing an example of a command form of a control command.

【図34】 制御コマンドを構成する8ビットの制御信
号とINT信号との関係を示すタイミング図である。
FIG. 34 is a timing diagram showing a relationship between an 8-bit control signal forming a control command and an INT signal.

【図35】 払出制御コマンドの内容の一例を示す説明
図である。
FIG. 35 is an explanatory diagram showing an example of contents of a payout control command.

【図36】 コマンドセット処理の処理例を示すフロー
チャートである。
FIG. 36 is a flowchart showing a processing example of command set processing.

【図37】 コマンド送信処理ルーチンを示すフローチ
ャートである。
FIG. 37 is a flowchart showing a command transmission processing routine.

【図38】 賞球個数減算処理の一例を示すフローチャ
ートである。
FIG. 38 is a flowchart showing an example of award ball number subtraction processing.

【図39】 電源監視および電源バックアップのための
払出制御用CPU周りの一構成例を示すブロック図であ
る。
FIG. 39 is a block diagram showing a configuration example around a payout control CPU for power supply monitoring and power supply backup.

【図40】 出力ポートのビット割り当ての一例を示す
説明図である。
FIG. 40 is an explanatory diagram showing an example of bit allocation of output ports.

【図41】 入力ポートのビット割り当ての一例を示す
説明図である。
FIG. 41 is an explanatory diagram showing an example of bit allocation of input ports.

【図42】 払出制御基板におけるCPUが実行するメ
イン処理を示すフローチャートである。
FIG. 42 is a flowchart showing a main process executed by a CPU in a payout control board.

【図43】 2msタイマ割込処理を示すフローチャー
トである。
FIG. 43 is a flowchart showing a 2 ms timer interrupt process.

【図44】 払出状態復旧処理を示すフローチャートで
ある。
FIG. 44 is a flowchart showing a payout state recovery process.

【図45】 マスク不能割込処理(電力供給停止時処
理)を示すフローチャートである。
FIG. 45 is a flowchart showing non-maskable interrupt processing (power supply stop processing).

【図46】 マスク不能割込処理(電力供給停止時処
理)を示すフローチャートである。
FIG. 46 is a flowchart showing non-maskable interrupt processing (power supply stop processing).

【図47】 マスク不能割込処理(電力供給停止時処
理)を示すフローチャートである。
FIG. 47 is a flowchart showing non-maskable interrupt processing (power supply stop processing).

【図48】 払出制御手段におけるRAMの一構成例を
示す説明図である。
48 is an explanatory diagram showing a configuration example of a RAM in the payout control means. FIG.

【図49】 受信コマンドバッファの一構成例を示す説
明図である。
FIG. 49 is an explanatory diagram showing a configuration example of a reception command buffer.

【図50】 払出制御用CPUのコマンド受信処理の例
を示すフローチャートである。
FIG. 50 is a flowchart showing an example of command reception processing of the payout control CPU.

【図51】 スイッチ処理の例を示すフローチャートで
ある。
FIG. 51 is a flowchart showing an example of switch processing.

【図52】 払出停止状態設定処理の例を示すフローチ
ャートである。
FIG. 52 is a flowchart showing an example of payout stop state setting processing.

【図53】 コマンド解析実行処理の例を示すフローチ
ャートである。
FIG. 53 is a flowchart showing an example of command analysis execution processing.

【図54】 プリペイドカードユニット制御処理の例を
示すフローチャートである。
FIG. 54 is a flowchart showing an example of prepaid card unit control processing.

【図55】 球貸し制御処理の例を示すフローチャート
である。
FIG. 55 is a flowchart showing an example of ball lending control processing.

【図56】 球貸し制御処理の例を示すフローチャート
である。
FIG. 56 is a flowchart showing an example of ball lending control processing.

【図57】 賞球制御処理の例を示すフローチャートで
ある。
FIG. 57 is a flowchart showing an example of prize ball control processing.

【図58】 賞球制御処理の例を示すフローチャートで
ある。
FIG. 58 is a flowchart showing an example of prize ball control processing.

【図59】 マスク不能割込処理(電力供給停止時処
理)の他の例を示すフローチャートである。
FIG. 59 is a flowchart showing another example of the non-maskable interrupt process (power supply stop process).

【図60】 マスク不能割込処理(電力供給停止時処
理)の他の例を示すフローチャートである。
FIG. 60 is a flowchart showing another example of unmaskable interrupt processing (power supply stop processing).

【図61】 マスク不能割込処理(電力供給停止時処
理)の他の例を示すフローチャートである。
FIG. 61 is a flowchart showing another example of the non-maskable interrupt process (power supply stop process).

【図62】 第2の実施の形態において主基板からサブ
基板に送信される制御コマンドの送出形態を示すタイミ
ング図である。
FIG. 62 is a timing chart showing how control commands are sent from the main board to the sub-board in the second embodiment.

【図63】 コマンド制御処理を示すフローチャートで
ある。
FIG. 63 is a flowchart showing command control processing.

【図64】 払出制御基板におけるCPUが実行するメ
イン処理を示すフローチャートである。
FIG. 64 is a flowchart showing a main process executed by a CPU in the payout control board.

【図65】 タイマ割込処理を示すフローチャートであ
る。
FIG. 65 is a flowchart showing a timer interrupt process.

【図66】 コマンド受信処理を示すフローチャートで
ある。
FIG. 66 is a flowchart showing command reception processing.

【図67】 第2の実施の形態におけるマスク不能割込
処理(電力供給停止時処理)の例を示すフローチャート
である。
FIG. 67 is a flow chart showing an example of non-maskable interrupt processing (power supply stoppage processing) in the second embodiment.

【図68】 第2の実施の形態におけるマスク不能割込
処理(電力供給停止時処理)の例を示すフローチャート
である。
FIG. 68 is a flowchart showing an example of non-maskable interrupt processing (power supply stop processing) in the second embodiment.

【図69】 第3の実施の形態において主基板からサブ
基板に送信される制御コマンドの送出形態を示すタイミ
ング図である。
FIG. 69 is a timing diagram showing how control commands are sent from the main board to the sub-board in the third embodiment.

【図70】 コマンド受信処理を示すフローチャートで
ある。
FIG. 70 is a flowchart showing command reception processing.

【図71】 第3の実施の形態におけるマスク不能割込
処理(電力供給停止時処理)の例を示すフローチャート
である。
71 is a flow chart showing an example of non-maskable interrupt processing (power supply stop processing) according to the third embodiment. FIG.

【図72】 第3の実施の形態における払出状態復旧処
理の例を示すフローチャートである。
FIG. 72 is a flowchart showing an example of payout state recovery processing according to the third embodiment.

【図73】 マスク不能割込処理(電力供給停止時処
理)のさらに他の例を示すフローチャートである。
FIG. 73 is a flowchart showing still another example of the non-maskable interrupt process (power supply stop process).

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

1 パチンコ遊技機 31 遊技制御基板(主基板) 37 払出制御基板 56 CPU 97 球払出装置 301A 賞球カウントスイッチ 301B 球貸しカウントスイッチ 310 振分ソレノイド 311 振分部材 371 払出制御用CPU 910 電源基板 902 電源監視用IC(電源監視手段) 923,924 コンデンサ 1 Pachinko machine 31 Game control board (main board) 37 Discharge control board 56 CPU 97 Ball dispensing device 301A prize ball count switch 301B ball lending count switch 310 Sorting solenoid 311 Sorting member 371 CPU for payout control 910 Power board 902 Power supply monitoring IC (power supply monitoring means) 923,924 capacitors

───────────────────────────────────────────────────── フロントページの続き (72)発明者 関根 史高 群馬県桐生市境野町6丁目460番地 株式 会社三共内 Fターム(参考) 2C088 BA21 BC58 BC70 DA09 EA09   ─────────────────────────────────────────────────── ─── Continued front page    (72) Inventor Fumitaka Sekine             Gunma Prefecture Kiryu City Sakaino-cho 6-460 Stock             Company Sankyo F term (reference) 2C088 BA21 BC58 BC70 DA09 EA09

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 遊技媒体を用いて所定の遊技を行うこと
が可能な遊技機であって、 遊技の進行を制御する遊技制御手段と、 景品としての景品遊技媒体と遊技者からの貸出要求に応
じて貸し出される貸出遊技媒体の払い出しが可能な払出
手段と、 前記遊技制御手段からのコマンドにもとづいて前記払出
手段の制御を行う払出制御手段と、 前記払出手段によって払い出された遊技媒体を景品遊技
媒体として誘導するための景品遊技媒体通路と貸出遊技
媒体として誘導するための貸出遊技媒体通路と、 前記払出手段によって払い出された遊技媒体の通路を前
記景品遊技媒体通路と前記貸出遊技媒体通路のいずれか
に切り換える通路切換手段と、 前記通路切換手段を駆動する電気的駆動源と、 前記景品遊技媒体通路に設けられ景品遊技媒体を検出可
能な景品遊技媒体検出手段と、 前記貸出遊技媒体通路に設けられ貸出遊技媒体を検出可
能な貸出遊技媒体検出手段と、 遊技機への電力供給が停止しても所定期間は記憶内容を
保持することが可能な変動データ記憶手段と、 遊技機で用いられる所定の電源の状態を監視して、電力
の供給停止にかかわる検出条件が成立した場合に検出信
号を出力する電源監視手段とを備え、 前記電源監視手段による前記検出信号が出力された後少
なくとも所定の検出維持期間が経過するまでの期間にお
いて前記景品遊技媒体検出手段と前記貸出遊技媒体検出
手段とのうち少なくともいずれか一方に電力を供給可能
な補助電力供給手段と、 少なくとも前記検出維持期間が経過するまでの間は前記
通路切換手段の状態を保持可能な作動状態保持手段とを
含み、 前記遊技制御手段および前記払出制御手段は、それぞ
れ、前記電源監視手段からの検出信号に応じて制御状態
を復旧させるために必要なデータを前記変動データ記憶
手段に保存するための電力供給停止時処理を実行し、 前記電力供給停止時処理にて、前記遊技制御手段は、前
記景品遊技媒体検出手段からの検出信号の入力処理を行
い、前記払出制御手段は、前記景品遊技媒体検出手段と
前記貸出遊技媒体検出手段とのうち少なくともいずれか
一方からの検出信号の入力処理を行うことを特徴とする
遊技機。
1. A game machine capable of performing a predetermined game using a game medium, comprising: game control means for controlling the progress of the game; and a prize game medium as a prize and a loan request from a player. According to a command from the game control means, a payout control means for controlling the payout means, a payout means capable of paying out a rental game medium to be rented out according to the payout means, and a game medium paid out by the payout means as a prize A prize game medium passage for guiding as a game medium, a rental game medium passage for guiding as a rental game medium, and a passage of the game medium paid out by the payout means, the prize game medium passage and the rental game medium passage A passage switching means for switching to any of the above, an electric drive source for driving the passage switching means, and a prize game medium provided in the prize game medium passage for detecting a prize game medium Noble game medium detecting means, lending game medium detecting means provided in the lending game medium passage and capable of detecting the lending game medium, and retains stored contents for a predetermined period even when power supply to the gaming machine is stopped And a power supply monitoring means for monitoring a state of a predetermined power supply used in the gaming machine and outputting a detection signal when a detection condition regarding stop of power supply is satisfied, Power is supplied to at least one of the prize game medium detection unit and the rental game medium detection unit during a period until at least a predetermined detection maintaining period elapses after the detection signal is output by the power supply monitoring unit. A possible auxiliary power supply means, and an operation state holding means capable of holding the state of the passage switching means at least until the detection maintaining period elapses, The game control means and the payout control means each process the power supply stop time for storing the data necessary for restoring the control state in the variable data storage means in response to the detection signal from the power supply monitoring means. In the power supply stop process, the game control means performs an input process of a detection signal from the prize game medium detection means, and the payout control means determines the prize game medium detection means and the loan. A game machine characterized by performing input processing of a detection signal from at least one of the game medium detecting means.
【請求項2】 作動状態保持手段は、少なくとも検出維
持期間が経過するまでの間は通路切換手段が駆動可能な
電力を供給する補助駆動電力供給手段である請求項1記
載の遊技機。
2. The gaming machine according to claim 1, wherein the operating state holding means is an auxiliary drive power supply means for supplying electric power capable of driving the passage switching means at least until the detection maintaining period elapses.
【請求項3】 作動状態保持手段は、少なくとも検出維
持期間が経過するまでの間は通路切換手段の状態を保持
可能な保持機構である請求項1記載の遊技機。
3. The gaming machine according to claim 1, wherein the operating state holding means is a holding mechanism capable of holding the state of the passage switching means at least until the detection maintaining period elapses.
【請求項4】 払出制御手段は、電力供給停止時処理に
て払出手段が景品遊技媒体あるいは貸出遊技媒体のいず
れの払出中であるか否かを判定し、 判定にもとづいて景品遊技媒体検出手段あるいは貸出遊
技媒体検出手段の入力処理を選択的に行う請求項1から
請求項3のうちいずれかに記載の遊技機。
4. The payout control means determines whether or not the payout means is paying out a prize game medium or a rental game medium in the power supply stop process, and based on the determination, the prize game medium detection means. Alternatively, the game machine according to any one of claims 1 to 3, wherein the input processing of the rental game medium detection means is selectively performed.
【請求項5】 遊技媒体を用いて所定の遊技を行うこと
が可能な遊技機であって、 遊技の進行を制御する遊技制御手段と、 景品としての景品遊技媒体と遊技者からの貸出要求に応
じて貸し出される貸出遊技媒体の払い出しが可能な払出
手段と、 前記遊技制御手段からのコマンドにもとづいて前記払出
手段の制御を行う払出制御手段と、 前記払出手段によって払い出された遊技媒体を景品遊技
媒体として誘導するための景品遊技媒体通路と貸出遊技
媒体として誘導するための貸出遊技媒体通路と、 前記払出手段によって払い出された遊技媒体の通路を前
記景品遊技媒体通路と前記貸出遊技媒体通路のいずれか
に切り換える通路切換手段と、 前記通路切換手段を駆動する電気的駆動源と、 前記景品遊技媒体通路に設けられ景品遊技媒体を検出可
能な景品遊技媒体検出手段と、 前記貸出遊技媒体通路に設けられ貸出遊技媒体を検出可
能な貸出遊技媒体検出手段と、 遊技機への電力供給が停止しても所定期間は記憶内容を
保持することが可能な変動データ記憶手段と、 遊技機で用いられる所定の電源の状態を監視して、電力
の供給停止にかかわる検出条件が成立した場合に検出信
号を出力する電源監視手段とを備え、 前記電源監視手段による前記検出信号が出力された後少
なくとも所定の検出維持期間が経過するまでの間は前記
景品遊技媒体検出手段および前記貸出遊技媒体検出手段
に電力を供給可能な補助電力供給手段を含み、 前記払出制御手段は、前記電源監視手段からの検出信号
に応じて制御状態を復旧させるために必要なデータを前
記変動データ記憶手段に保存するための電力供給停止時
処理を実行し、 前記払出制御手段は、前記電力供給停止時処理にて、前
記景品遊技媒体検出手段と前記貸出遊技媒体検出手段と
のうち少なくともいずれか一方からの検出信号の入力処
理を行うとともに、前記払出手段による景品遊技媒体あ
るいは貸出遊技媒体のいずれの払出であるか否かを判定
し、その判定結果にもとづいて、前記入力処理の際に入
力した検出信号が、前記景品遊技媒体と前記貸出遊技媒
体のうちいずれの検出にもとづく検出信号であるかを特
定可能であることを特徴とする遊技機。
5. A game machine capable of playing a predetermined game using a game medium, comprising game control means for controlling the progress of a game, a prize game medium as a prize, and a loan request from a player. According to a command from the game control means, a payout control means for controlling the payout means, a payout means capable of paying out a rental game medium to be rented out according to the payout means, and a game medium paid out by the payout means as a prize A prize game medium passage for guiding as a game medium, a rental game medium passage for guiding as a rental game medium, and a passage of the game medium paid out by the payout means, the prize game medium passage and the rental game medium passage A passage switching means for switching to any of the above, an electric drive source for driving the passage switching means, and a prize game medium provided in the prize game medium passage for detecting a prize game medium Noble game medium detecting means, lending game medium detecting means provided in the lending game medium passage and capable of detecting the lending game medium, and retains stored contents for a predetermined period even when power supply to the gaming machine is stopped And a power supply monitoring means for monitoring the state of a predetermined power supply used in the gaming machine and outputting a detection signal when the detection condition related to the stop of power supply is satisfied, Auxiliary power supply means capable of supplying power to the prize game medium detection means and the rental game medium detection means at least until a predetermined detection maintaining period elapses after the detection signal is output by the power supply monitoring means. And the payout control means stores the data necessary for restoring the control state in the fluctuation data storage means in response to the detection signal from the power supply monitoring means. A supply stop process is executed, and the payout control unit performs an input process of a detection signal from at least one of the prize game medium detection unit and the rental game medium detection unit in the power supply stop process. It is determined whether or not the payout means pays out either the prize game medium or the rental game medium, and based on the result of the judgment, the detection signal input in the input process is the prize game. A gaming machine, characterized in that it is possible to specify which of a medium and the rental game medium is a detection signal based on detection.
【請求項6】 電力供給停止時処理にて、外部へ信号を
出力するための出力ポートをクリアする処理を実行した
あと、景品遊技媒体検出手段と貸出遊技媒体検出手段と
のうち少なくとも一方からの検出信号の入力処理を行う
請求項1から請求項5のうちいずれかに記載の遊技機。
6. The power supply stoppage process executes a process of clearing an output port for outputting a signal to the outside, and then, at least one of the prize game medium detection means and the rental game medium detection means. The gaming machine according to any one of claims 1 to 5, which performs input processing of a detection signal.
【請求項7】 検出維持期間は、払出手段によって払い
出された遊技媒体が景品遊技媒体検出手段あるいは貸出
遊技媒体検出手段のいずれかの検出位置に到達するまで
の期間以上の期間に設定される請求項1から請求項6の
うちいずれかに記載の遊技機。
7. The detection maintaining period is set to a period equal to or longer than a period until the game medium paid out by the payout means reaches a detection position of either the prize game medium detection means or the rental game medium detection means. The gaming machine according to any one of claims 1 to 6.
【請求項8】 変動データ記憶手段の記憶内容には、払
出条件の成立にもとづいて払い出すべき景品遊技媒体数
のうち未だ払い出されていない未払出数を特定可能な未
払出数データを含み、 払出制御手段は、電力供給が開始された場合には、電力
供給が停止する前の制御状態に復旧させる復旧処理を実
行し、 前記払出制御手段は、電力供給停止時処理では景品遊技
媒体検出手段あるいは貸出遊技媒体検出手段からの検出
信号の入力処理の結果を示すデータを変動データ記憶手
段に保存し、 前記復旧処理にて、前記入力処理の結果を示すデータを
前記未払出数データにもとづいて前記未払出数データを
更新する処理を実行する請求項1から請求項7のうちい
ずれかに記載の遊技機。
8. The storage content of the variable data storage means includes unpaid amount data capable of specifying the unpaid amount that has not yet been paid out of the number of prize game media to be paid out based on the establishment of the payout condition. When the power supply is started, the payout control means executes a recovery process for restoring the control state before the power supply is stopped, and the payout control means detects the prize game medium in the power supply stop process. Data indicating the result of the input processing of the detection signal from the means or the rental game medium detecting means is stored in the variable data storage means, and the data indicating the result of the input processing is based on the unpaid amount data in the restoration processing. The gaming machine according to any one of claims 1 to 7, which executes a process of updating the unpaid amount data.
JP2001304446A 2001-09-28 2001-09-28 Game machine Pending JP2003103024A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001304446A JP2003103024A (en) 2001-09-28 2001-09-28 Game machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001304446A JP2003103024A (en) 2001-09-28 2001-09-28 Game machine

Related Child Applications (2)

Application Number Title Priority Date Filing Date
JP2006088334A Division JP4170347B2 (en) 2006-03-28 2006-03-28 Game machine
JP2006088333A Division JP4170346B2 (en) 2006-03-28 2006-03-28 Game machine

Publications (1)

Publication Number Publication Date
JP2003103024A true JP2003103024A (en) 2003-04-08

Family

ID=19124370

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001304446A Pending JP2003103024A (en) 2001-09-28 2001-09-28 Game machine

Country Status (1)

Country Link
JP (1) JP2003103024A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008183316A (en) * 2007-01-31 2008-08-14 Daito Giken:Kk Game machine
JP2008183323A (en) * 2007-01-31 2008-08-14 Daito Giken:Kk Game machine
JP2009078036A (en) * 2007-09-27 2009-04-16 Daito Giken:Kk Game machine
JP2011062564A (en) * 2010-12-28 2011-03-31 Daito Giken:Kk Game machine

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008183316A (en) * 2007-01-31 2008-08-14 Daito Giken:Kk Game machine
JP2008183323A (en) * 2007-01-31 2008-08-14 Daito Giken:Kk Game machine
JP2009078036A (en) * 2007-09-27 2009-04-16 Daito Giken:Kk Game machine
JP2011062564A (en) * 2010-12-28 2011-03-31 Daito Giken:Kk Game machine

Similar Documents

Publication Publication Date Title
JP3907926B2 (en) Game machine
JP2003103024A (en) Game machine
JP2003175165A (en) Game machine
JP2003135784A (en) Game machine
JP2003169908A (en) Game machine
JP2003103025A (en) Game machine
JP2003111960A (en) Game machine
JP4170346B2 (en) Game machine
JP4170347B2 (en) Game machine
JP2003190587A (en) Game machine
JP2003164579A (en) Game machine
JP2003169905A (en) Game machine
JP2003169904A (en) Game machine
JP2003159448A (en) Game machine
JP2003093619A (en) Game machine
JP2003111957A (en) Game machine
JP4642248B2 (en) Game machine
JP2003033542A (en) Game machine
JP2003169906A (en) Game machine
JP2003117183A (en) Game machine
JP2003154138A (en) Game machine
JP2003033535A (en) Game machine
JP2003164580A (en) Game machine
JP2003135778A (en) Game machine
JP2003159449A (en) Game machine

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20051202

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20060123