JP2003169905A - Game machine - Google Patents

Game machine

Info

Publication number
JP2003169905A
JP2003169905A JP2001372061A JP2001372061A JP2003169905A JP 2003169905 A JP2003169905 A JP 2003169905A JP 2001372061 A JP2001372061 A JP 2001372061A JP 2001372061 A JP2001372061 A JP 2001372061A JP 2003169905 A JP2003169905 A JP 2003169905A
Authority
JP
Japan
Prior art keywords
command
payout
game
state
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.)
Granted
Application number
JP2001372061A
Other languages
Japanese (ja)
Other versions
JP3737424B2 (en
JP2003169905A5 (en
Inventor
Shohachi Ugawa
詔八 鵜川
Takayuki Ishikawa
貴之 石川
Yasuo Kanbayashi
康男 神林
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 JP2001372061A priority Critical patent/JP3737424B2/en
Publication of JP2003169905A publication Critical patent/JP2003169905A/en
Publication of JP2003169905A5 publication Critical patent/JP2003169905A5/ja
Application granted granted Critical
Publication of JP3737424B2 publication Critical patent/JP3737424B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To efficiently perform a process for recovering a game state. <P>SOLUTION: In the game state-recovering process, a CPU performs the returning process of a stack pointer first. Then, if the state is not a put-out prohibited state, a command-transmitting table regarding a put-out available state designating command is set, and the command setting process is called. Also, a command-transmitting table regarding a display-controlling command for recovering the display state of a special pattern in a variably displaying device when a power supply is stopped is set, and the command setting process is called. Then, a process for setting retracting values for various kinds of registers and so forth is performed for various kinds of registers, and then, a RET command is performed. Since the process to transmit the command is performed after the stack point has been returned, the process to transmit the command can be performed using a sub-routine, and the process for recovering the game state can be efficiently performed. <P>COPYRIGHT: (C)2003,JPO

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 that allows a player to play a predetermined game.

【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】しかし、上記のように保存されている制御
状態にもとづいて遊技を再開する構成とする場合には、
遊技制御手段は、電力供給停止時の制御状態に復旧させ
るためのコマンドを他の電気部品制御手段に対して送信
するなどの各種の処理を実行する必要がある。上述した
ように、遊技制御手段にはプログラムを格納させるメモ
リ容量に制限があるので、遊技状態を復旧させるための
処理を実行するために用いられるプログラムの容量は極
力小さくすることが好ましい。そのためには、遊技状態
を復旧させるための処理をより効率良く実行し得るよう
にすることが望まれる。
However, in the case where the game is restarted based on the control state saved as described above,
The game control means needs to execute various processes such as transmitting a command for restoring the control state at the time of stopping the power supply to other electric component control means. As described above, since the game control means has a limited memory capacity for storing the program, it is preferable to minimize the capacity of the program used for executing the processing for restoring the game state. To that end, it is desired to be able to more efficiently execute the processing for restoring the gaming state.

【0012】そこで、本発明は、遊技状態を復旧させる
ための処理を効率良く実行することができる遊技機を提
供することを目的とする。
Therefore, an object of the present invention is to provide a gaming machine capable of efficiently executing a process for restoring a gaming state.

【0013】[0013]

【課題を解決するための手段】本発明による遊技機は、
遊技者が所定の遊技を行うことが可能な遊技機であっ
て、遊技機に設けられた電気部品(例えば、球払出装置
97、可変表示装置9、図65に示す電気部品802)
を制御するための電気部品制御手段(例えば、払出制御
用CPU371を含む払出制御手段、表示制御用CPU
101を含む表示制御手段、ランプ制御用CPU351
を含むランプ制御手段、図65に示す電気部品制御手段
801)と、遊技の進行を制御する遊技制御手段(例え
ばCPU56を含む遊技制御手段、図65に示す遊技制
御手段561)と、遊技機への電力供給が停止しても所
定期間は記憶内容を保持することが可能な変動データ記
憶手段(例えば主基板31が備える電源バックアップさ
れたRAM55や払出制御基板37が備える電源バック
アップされたRAM、図65に示す変動データ記憶手段
551)と、遊技機で用いられる所定の電源の状態を監
視して、遊技機への電力の供給停止にかかわる検出条件
(例えば監視電圧であるVSL(+30V)の電圧値が+
22Vまで低下したときに成立する条件)が成立した場
合に検出信号(例えば電源断信号、図65に示す検出信
号)を出力する電源監視手段(例えば電源監視用IC9
02、図65に示す電源監視手段910a)とを備え、
遊技制御手段が、電気部品制御手段にコマンドを送信す
るためのコマンド送信プログラム(例えばコマンドセッ
ト処理を実行するためのプログラム)を実行して遊技の
進行に応じたコマンドを送信するコマンド送信手段(例
えばCPU56を含む遊技制御手段、図65に示すコマ
ンド送信手段562)を有し、電源監視手段からの検出
信号に応じて制御状態を復旧させるために必要なデータ
(例えばCPU56や払出制御用CPU371に用いら
れるレジスタのデータ等)を変動データ記憶手段に保存
するための電力供給停止時処理(例えば図23〜図25
に示す処理、図65に示すステップS450の電力供給
停止時処理)と、変動データ記憶手段に保存されていた
記憶内容にもとづいて制御状態を電力供給が停止する前
の状態に復旧させる復旧処理(例えば図21に示す遊技
状態復旧処理、図65に示すステップS100の復旧処
理)を実行し、コマンド送信手段が、復旧処理にてサブ
ルーチン(例えばコマンドセット処理を実行するサブル
ーチン)コールによって呼び出したコマンド送信プログ
ラムを実行することで、電気部品制御手段に電力供給が
停止する前の制御状態へ復旧するためのコマンドを送信
する処理(例えばステップS82〜ステップS85、図
65に示すステップS562aのコマンド送信処理)を
実行し、変動データ記憶手段は、サブルーチンコールが
あったこと(例えばステップS84)に応じて実行され
ていた制御プログラムのアドレスに関連するプログラム
アドレスデータを退避させるスタック領域(例えば図6
5に示すスタック領域552)を含み、遊技制御手段
が、スタックポインタ(例えば図65に示すスタックポ
インタ563)により示されるアドレスによりスタック
領域に退避されたアドレスのうち、次に読み出されるべ
きデータが格納されているアドレスを特定し、電力供給
停止時処理において、スタックポインタにより示される
アドレスに関連するスタックアドレスデータを変動デー
タ記憶手段に退避する処理(例えばステップS458、
図65に示すステップS450aの退避処理)を行い、
復旧処理において、コマンド送信手段が最初にコマンド
を送信する前(例えばステップS82〜ステップS85
の前)に、電力供給停止時処理にて変動データ記憶手段
に退避したスタックアドレスデータ(例えば図65に示
すスタックアドレスデータ552a)によって、スタッ
クポインタを設定する(例えばステップS81、図65
に示すステップS100aのスタックポインタ設定処
理)ことを特徴とする。
A gaming machine according to the present invention comprises:
A game machine that allows a player to play a predetermined game, and electric parts provided on the game machine (for example, ball payout device 97, variable display device 9, and electric part 802 shown in FIG. 65).
For controlling the electric component (for example, payout control means including payout control CPU 371, display control CPU
Display control means including 101, CPU 351 for lamp control
To the gaming machine, a lamp control means including the electric component control means 801 shown in FIG. 65), a game control means for controlling the progress of the game (for example, a game control means including the CPU 56, a game control means 561 shown in FIG. 65). Fluctuation data storage means capable of holding the stored contents for a predetermined period even when the power supply of the device is stopped (for example, the RAM 55 of the main board 31 with power backup and the RAM of the payout control board 37 with power backup, FIG. The fluctuation data storage means 551) shown in FIG. 65 and a state of a predetermined power source used in the gaming machine are monitored, and a detection condition (for example, a voltage of VSL (+ 30V) which is a monitoring voltage) related to stop of power supply to the gaming machine is monitored. Value is +
Power supply monitoring means (for example, power supply monitoring IC 9) that outputs a detection signal (for example, a power supply cutoff signal, the detection signal shown in FIG. 65) when a condition that is satisfied when the voltage drops to 22V is satisfied.
02, and power supply monitoring means 910a) shown in FIG.
The game control means executes a command transmission program (for example, a program for executing command set processing) for transmitting a command to the electric component control means, and transmits a command according to the progress of the game (for example, command transmission means 65 has a game control means including the CPU 56 and a command transmission means 562 shown in FIG. 65, and is used for data necessary for restoring the control state according to the detection signal from the power supply monitoring means (for example, the CPU 56 and the payout control CPU 371). Power supply stop processing for storing the data of the register to be stored in the fluctuation data storage means (for example, FIGS. 23 to 25).
And the power supply stoppage process of step S450 shown in FIG. 65) and a restoration process for restoring the control state to the state before the power supply was stopped based on the stored contents stored in the fluctuation data storage means ( For example, the game state restoration process shown in FIG. 21 and the restoration process of step S100 shown in FIG. 65) are executed, and the command transmission means sends a command called by a subroutine (for example, a subroutine for executing the command set process) call in the restoration process. A process of transmitting a command for restoring the control state before the power supply is stopped to the electric component control means by executing the program (for example, step S82 to step S85, the command transmission process of step S562a shown in FIG. 65). And the variable data storage means has a subroutine call (for example, Step S84) stack area for saving the program address data associated with the address of the control program which has been executed in accordance with (e.g., Fig. 6
5, the game control means stores the data to be read next among the addresses saved in the stack area by the address indicated by the stack pointer (for example, the stack pointer 563 shown in FIG. 65). The specified address is specified, and the stack address data related to the address indicated by the stack pointer is saved in the fluctuation data storage means in the power supply stop process (for example, step S458,
Perform the evacuation process of step S450a shown in FIG.
In the restoration process, before the command transmitting means first transmits a command (for example, step S82 to step S85).
Before), the stack pointer is set by the stack address data (for example, stack address data 552a shown in FIG. 65) saved in the fluctuation data storage means in the power supply stop process (for example, step S81, FIG. 65).
The stack pointer setting process in step S100a shown in FIG.

【0014】遊技制御手段が、電力供給が復帰し所定の
復旧条件(例えばステップS7〜ステップS9の条件)
が成立した場合に復旧処理を実行し、所定の復旧条件が
不成立であった場合には、変動データ記憶手段に保持さ
れていた記憶内容を初期化する初期化処理(例えばステ
ップS11〜ステップS15)を実行するように構成さ
れていてもよい。
The game control means, the power supply is restored and a predetermined restoration condition (for example, the conditions of step S7 to step S9)
If the predetermined recovery condition is not satisfied, the recovery process is executed when the condition is satisfied, and the initialization process is performed to initialize the storage content held in the variable data storage means (for example, step S11 to step S15). May be configured to perform.

【0015】電気部品制御手段が、遊技媒体の払い出し
を行う払出手段を制御する払出制御手段を含み、払出制
御手段が、電力供給が開始された場合に、遊技媒体の払
い出しを禁止する払出禁止状態に制御(例えばステップ
S732)し、遊技制御手段からの所定のコマンド(例
えば払出可能状態指定コマンド)の受信に応じて払出禁
止状態を解除する(例えばステップS753e)ように
構成されていてもよい。
The electric component control means includes a payout control means for controlling the payout means for paying out the game medium, and the payout control means prohibits the payout of the game medium when power supply is started. (For example, step S732), the payout prohibition state may be canceled (for example, step S753e) in response to the reception of a predetermined command (for example, a payable state designation command) from the game control means.

【0016】コマンド送信手段が、復旧処理にて、遊技
媒体の払い出しを禁止するか許可するかを指定する払出
状態指定コマンド(例えば払出可能状態指定コマンド)
を、払出制御手段に対して送信し(例えばステップS8
3、ステップS84)、払出制御手段が、払出状態指定
コマンドが、遊技媒体の払い出しを許可するものであっ
た場合に払出禁止状態を解除するように構成されていて
もよい。
A command sending means specifies a payout state designating command (for example, a payable state designating command) for designating whether or not to permit the payout of the game medium in the recovery process.
To the payout control means (for example, step S8
3, step S84), the payout control means may be configured to cancel the payout prohibition state when the payout state designating command permits the payout of the game medium.

【0017】遊技機への電力供給の開始に関連して、遊
技制御手段が遊技に関わる制御が可能な状態になる時期
を、電気部品制御手段が電気部品の制御が可能な状態に
なる時期よりも遅い時期となるように規制する起動順序
規制手段(例えば遅延回路960)を備えた構成とされ
ていてもよい。
With respect to the start of the power supply to the gaming machine, the time when the game control means becomes the state in which the control related to the game can be performed is more than the time when the electric part control means becomes the state in which the electric parts can be controlled. It may be configured to include a starting order regulation unit (for example, a delay circuit 960) that regulates the activation timing to be late.

【0018】電気部品制御手段が、識別情報の可変表示
を行う可変表示装置(例えば可変表示装置9)を制御す
る表示制御手段(例えば表示制御用CPU101を含む
表示制御手段)と、可変表示装置における識別情報の可
変表示の保留回数を示す始動入賞記憶数を表示する始動
入賞記憶数表示手段(例えば始動記憶表示器18)を制
御する始動入賞記憶数表示制御手段(例えば表示制御用
CPU101を含む表示制御手段、ランプ制御用CPU
351を含むランプ制御手段)とを含み、コマンド送信
手段が、復旧処理にて、始動入賞記憶数を指定する始動
入賞記憶数指定コマンド(例えば始動入賞記憶数ランプ
指定コマンド)を、始動入賞記憶数表示制御手段に対し
て送信するように構成されていてもよい。
In the variable display device, the electric component control means controls the variable display device (for example, the variable display device 9) that variably displays the identification information (for example, the display control device including the display control CPU 101). Starting prize winning memory number display control means (for example, a display including the display control CPU 101) for controlling the starting winning prize memory number display means (for example, the starting memory indicator 18) that displays the starting winning prize memory number that indicates the number of times of variable display of the identification information. Control means, CPU for lamp control
The lamp control means including 351), and the command transmission means, in the restoration process, a start winning prize memory number designating command (for example, starting winning prize memory number lamp designating command) for designating the starting prize winning memory number. It may be configured to transmit to the display control means.

【0019】電気部品制御手段が、識別情報の可変表示
を行う可変表示装置(例えば可変表示装置9)を制御す
る表示制御手段(例えば表示制御用CPU101を含む
表示制御手段)を含み、遊技機は、可変表示装置に表示
される識別情報の表示結果が特定の表示態様(例えば大
当り表示態様)となったことを条件に遊技者にとって有
利な特定遊技状態(例えば大当り遊技状態)に制御可能
であるとともに、識別情報が特定の表示態様になりやす
い特別遊技状態(例えば確変状態)に制御可能であっ
て、コマンド送信手段が、復旧処理にて、特別遊技状態
であるか否かを指定する特別遊技状態指定コマンド(例
えば確変状態指定コマンド)を、表示制御手段に対して
送信するように構成されていてもよい。
The electric component control means includes a display control means (for example, a display control means including the display control CPU 101) for controlling a variable display device (for example, the variable display device 9) that variably displays the identification information, and the gaming machine is , It is possible to control to a specific game state (eg, big hit game state) advantageous to the player on condition that the display result of the identification information displayed on the variable display device becomes a particular display form (eg, big hit display state). Together with the special game, the identification information can be controlled to a special game state (for example, a probability change state) that tends to be in a specific display mode, and the command transmission means, in the restoration process, specifies whether or not the special game state. The state designation command (for example, the probability variation state designation command) may be configured to be transmitted to the display control means.

【0020】電気部品制御手段が、識別情報の可変表示
を行う可変表示装置を制御する表示制御手段を含み、コ
マンド送信手段が、復旧処理にて、電力供給の停止に関
連した時期に可変表示装置に表示させる識別情報の表示
結果を指定する識別情報指定コマンド(例えば左中右そ
れぞれの図柄を指定する各図柄指定コマンド)を、表示
制御手段に対して送信するように構成されていてもよ
い。
The electric component control means includes a display control means for controlling the variable display device that variably displays the identification information, and the command transmission means causes the variable display device at a time related to the stop of the power supply in the restoration process. The identification information designating command for designating the display result of the identification information to be displayed in (for example, each designating command designating each of the left, middle, and right symbols) may be transmitted to the display control means.

【0021】遊技制御手段が、所定期間毎に発生するタ
イマ割込に応じて所定の制御を行い、復旧処理にて、コ
マンド送信手段によって電気部品制御手段に対してコマ
ンドを送信したあと、タイマ割込を所定期間毎(例えば
2ms毎)に発生させるための設定を行う(例えばステ
ップS87)ように構成されていてもよい。
The game control means performs a predetermined control according to a timer interrupt generated every predetermined period, and in the restoration process, after transmitting a command to the electric component control means by the command transmitting means, the timer interrupt is executed. The setting may be performed (for example, step S87) so as to generate the interruption every predetermined period (for example, every 2 ms).

【0022】遊技制御手段が、電力供給停止時処理に
て、変動データ記憶手段へのアクセスを禁止する処理
(例えばステップS498)を実行するように構成され
ていてもよい。
The game control means may be configured to execute a processing (for example, step S498) of prohibiting access to the fluctuation data storage means in the power supply stop processing.

【0023】遊技制御手段が、出力信号を出力するため
の出力ポート(例えば、図16、図17に示す出力ポー
ト)を備え、遊技制御手段が、電力供給停止時処理に
て、出力ポートに対してクリア信号を出力することによ
って出力信号をクリアするための処理(例えば、ステッ
プS459〜ステップS465)を行うように構成され
ていてもよい。
The game control means is provided with an output port for outputting an output signal (for example, the output port shown in FIGS. 16 and 17), and the game control means performs output power stop processing to the output port. May be configured to perform a process for clearing the output signal by outputting a clear signal (for example, step S459 to step S465).

【0024】[0024]

【発明の実施の形態】以下、本発明の一実施形態を図面
を参照して説明する。まず、遊技機の一例であるパチン
コ遊技機の全体の構成について説明する。図1はパチン
コ遊技機を正面からみた正面図、図2は遊技盤の前面を
示す正面図である。なお、以下の実施の形態では、パチ
ンコ遊技機を例に説明を行うが、本発明による遊技機は
パチンコ遊技機に限られず、例えば画像式の遊技機やス
ロット機に適用することもできる。
BEST MODE FOR CARRYING OUT THE INVENTION 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 seen from the front, and FIG. 2 is a front view showing the front surface of the gaming 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.

【0025】パチンコ遊技機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.

【0026】図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.

【0027】遊技領域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.

【0028】可変入賞球装置15の下部には、特定遊技
状態(大当り状態)においてソレノイド21によって開
状態とされる開閉板20が設けられている。開閉板20
は大入賞口を開閉する手段である。開閉板20から遊技
盤6の背面に導かれた入賞球のうち一方(V入賞領域)
に入った入賞球はV入賞スイッチ22で検出され、開閉
板20からの入賞球はカウントスイッチ23で検出され
る。遊技盤6の背面には、大入賞口内の経路を切り換え
るためのソレノイド21Aも設けられている。また、可
変表示装置9の下部には、始動入賞口14に入った有効
入賞球数すなわち始動記憶数を表示する4つのLEDに
よる特別図柄始動記憶表示器(以下、始動記憶表示器と
いう。)18が設けられている。有効始動入賞がある毎
に、始動記憶表示器18は点灯するLEDを1増やす。
そして、可変表示装置9の可変表示が開始される毎に、
点灯するLEDを1減らす。
At the bottom of the variable winning ball device 15, there is provided an opening / closing plate 20 which is opened by a solenoid 21 in a specific game state (big hit state). 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.

【0029】ゲート32に遊技球が入賞しゲートスイッ
チ32aで検出されると、普通図柄表示器10の表示の
可変表示が開始される。この実施の形態では、左右のラ
ンプ(点灯時に図柄が視認可能になる)が交互に点灯す
ることによって可変表示が行われ、例えば、可変表示の
終了時に右側のランプが点灯すれば当たりとなる。そし
て、普通図柄表示器10における停止図柄が所定の図柄
(当り図柄)である場合に、可変入賞球装置15が所定
回数、所定時間だけ開状態になる。普通図柄表示器10
の近傍には、ゲート32に入った入賞球数を表示する4
つのLEDによる表示部を有する普通図柄始動記憶表示
器41が設けられている。ゲート32への入賞がある毎
に、普通図柄始動記憶表示器41は点灯するLEDを1
増やす。そして、普通図柄表示器10の可変表示が開始
される毎に、点灯するLEDを1減らす。
When the game ball wins the gate 32 and is detected by the gate switch 32a, the variable display of the display of the normal symbol display 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.

【0030】遊技盤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.

【0031】そして、この例では、左枠ランプ28bの
近傍に、賞球残数があるときに点灯する賞球ランプ51
が設けられ、天枠ランプ28aの近傍に、補給球が切れ
たときに点灯する球切れランプ52が設けられている。
上記のように、本例のパチンコ遊技機1には、発光体と
してのランプやLEDが各所に設けられている。さら
に、図1には、パチンコ遊技機1に隣接して設置され、
プリペイドカードが挿入されることによって球貸しを可
能にするカードユニット(プリペイドカードユニット)
50も示されている。
In this example, the prize ball lamp 51 that lights up when there is a remaining number of prize balls 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,
A card unit that allows you to lend a ball by inserting a prepaid card (prepaid card unit)
50 is also shown.

【0032】カードユニット50には、使用可能状態で
あるか否かを示す使用可表示ランプ151、カードユニ
ット50がいずれの側のパチンコ遊技機1に対応してい
るのかを示す連結台方向表示器153、カードユニット
50内にカードが投入されていることを示すカード投入
表示ランプ154、記録媒体としてのカードが挿入され
るカード挿入口155、およびカード挿入口155の裏
面に設けられているカードリーダライタの機構を点検す
る場合にカードユニット50を解放するためのカードユ
ニット錠156が設けられている。
The card unit 50 has a usable indicator lamp 151 indicating whether or not it is in a usable state, and a connecting stand direction indicator indicating which side of the pachinko gaming machine 1 the card unit 50 corresponds to. 153, a card insertion indicator 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.

【0033】打球発射装置から発射された遊技球は、打
球レールを通って遊技領域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.

【0034】可変表示装置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).

【0035】停止時の可変表示装置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.

【0036】打球がゲート32に入賞すると、普通図柄
表示器10において普通図柄が可変表示される状態にな
る。また、普通図柄表示器10における停止図柄が所定
の図柄(当り図柄)である場合に、可変入賞球装置15
が所定時間だけ開状態になる。さらに、確変状態では、
普通図柄表示器10における停止図柄が当り図柄になる
確率が高められるとともに、可変入賞球装置15の開放
時間と開放回数が高められる。すなわち、可変入賞球装
置15の開放時間と開放回数は、普通図柄の停止図柄が
当り図柄であったり、特別図柄の停止図柄が確変図柄で
ある場合等に高められ、遊技者にとって不利な状態から
有利な状態に変化する。なお、開放回数が高められるこ
とは、閉状態から開状態になることも含む概念である。
When the hit ball wins 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.

【0037】次に、パチンコ遊技機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.

【0038】図3に示すように、遊技機裏面側では、可
変表示装置9を制御する図柄制御基板80を含む可変表
示制御ユニット49、遊技制御用マイクロコンピュータ
等が搭載された遊技制御基板(主基板)31が設置され
ている。また、球払出制御を行う払出制御用マイクロコ
ンピュータ等が搭載された払出制御基板37が設置され
ている。さらに、遊技盤6に設けられている各種装飾L
ED、始動記憶表示器18および普通図柄始動記憶表示
器41、装飾ランプ25、枠側に設けられている天枠ラ
ンプ28a、左枠ランプ28b、右枠ランプ28c、賞
球ランプ51および球切れランプ52を点灯制御するラ
ンプ制御手段が搭載されたランプ制御基板35、スピー
カ27からの音発生を制御する音制御手段が搭載された
音制御基板70も設けられている。また、また、DC3
0V、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 (mainly a game control microcomputer, etc.) is mounted. 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. In addition, DC3
A power supply board 910 and a firing control board 91 on which a power supply circuit for creating 0V, DC21V, DC12V and DC5V is mounted are provided.

【0039】遊技機裏面において、上方には、各種情報
を遊技機外部に出力するための各端子を備えたターミナ
ル基板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.

【0040】貯留タンク38に貯留された遊技球は誘導
レール39を通り、図4に示されるように、カーブ樋1
86を経て賞球ケース40Aで覆われた球払出装置に至
る。球払出装置の上部には、遊技媒体切れ検出手段とし
ての球切れスイッチ187が設けられている。球切れス
イッチ187が球切れを検出すると、球払出装置の払出
動作が停止する。球切れスイッチ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 covered with the prize ball case 40A is reached. At the upper part of the ball payout device, 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 payout operation of the ball payout device is stopped. The out-of-ball switch 187 is a switch that detects the presence or absence of a game ball in the game ball passage, but the out-of-ball detection switch 167 that detects a shortage of supply balls in the storage tank 38 is also an upstream portion of the guide rail 39 (the storage tank 38). (Provided near). 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.

【0041】入賞にもとづく景品としての遊技球や球貸
し要求にもとづく遊技球が多数払い出されて打球供給皿
3が満杯になり、ついには遊技球が連絡口45に到達し
た後さらに遊技球が払い出されると、遊技球は、余剰球
通路46を経て余剰球受皿4に導かれる。さらに遊技球
が払い出されると、感知レバー47が貯留状態検出手段
としての満タンスイッチ48を押圧して、貯留状態検出
手段としての満タンスイッチ48がオンする。その状態
では、球払出装置内の払出モータの回転が停止して球払
出装置の動作が停止するとともに発射装置の駆動も停止
する。
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 is filled up. Finally, after the game balls reach the contact port 45, further game balls are provided. 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 is stopped, the operation of the ball payout device is stopped, and the driving of the launching device is also stopped.

【0042】図4に示すように、球払出装置の側方に
は、カーブ樋186から遊技機下部の排出口192に至
る球抜き通路191が形成されている。球抜き通路19
1の上部には球抜きレバー193が設けられ、球抜きレ
バー193が遊技店員等によって操作されると、誘導レ
ール39から球抜き通路191への遊技球通路が形成さ
れ、貯留タンク38内に貯留されている遊技球は、排出
口192から遊技機外に排出される。
As shown in FIG. 4, a ball passage 191 extending from the curve gutter 186 to the discharge port 192 at the lower portion of the game machine is formed on the side of the ball payout device. Ball passage 19
1 is provided with a ball removing lever 193, and when the ball removing lever 193 is operated by a game store 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.

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

【0044】球払出装置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.

【0045】球通路(遊技媒体払出通路の一例)293
a,293bには遊技球の流下路を切り替えるための振
分部材311が設けられている。振分部材311はソレ
ノイド310によって駆動され、賞球払出時には、球通
路293a,293bにおける一方の流下路(球通路2
93a:景品遊技媒体通路の一例)を遊技球が流下する
ように倒れ、球貸し時には球通路293a,293bに
おける他方の流下路(球通路293b:貸出遊技媒体通
路の一例)を遊技球が流下するように倒れる。なお、払
出モータ289およびソレノイド310は、払出制御基
板37に搭載されている払出制御用CPUによって制御
される。また、払出制御用CPUは、主基板31に搭載
されている遊技制御用のCPUからの指令に応じて払出
モータ289およびソレノイド310を制御する。
Sphere passage (an example of a game medium payout passage) 293
The a 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 at the time of paying out a prize ball, one of the downflow paths (ball path 2) in the ball paths 293a and 293b.
93a: An example of a prize game medium passage) falls down so that a game ball flows down, and at the time of lending a ball, a game ball flows down the other downflow path (ball passage 293b: an example of a rental game medium path) of the ball passages 293a and 293b. To fall. The payout motor 289 and the solenoid 310 are controlled by the payout control CPU mounted on the payout control board 37. In addition, the payout control CPU controls the payout motor 289 and the solenoid 310 in accordance with a command from the game control CPU mounted on the main board 31.

【0046】賞球払出時に選択される流下路の下方には
球払出装置によって払い出された遊技球を検出する賞球
センサ(賞球カウントスイッチ)301Aが設けられ、
球貸し時に選択される流下路の下方には球払出装置によ
って払い出された遊技球を検出する球貸しセンサ(球貸
しカウントスイッチ)301Bが設けられている。賞球
カウントスイッチ301Aの検出信号と球貸しカウント
スイッチ301Bの検出信号は払出制御基板37の払出
制御用CPUに入力される。払出制御用CPUは、それ
らの検出信号にもとづいて、実際に払い出された遊技球
の個数を計数する。なお、賞球カウントスイッチ301
Aの検出信号は、主基板31のCPUにも入力される。
球貸しカウントスイッチ301Bに対する電源基板91
0からの電力供給は、払出制御基板37を介してなされ
る。なお、賞球カウントスイッチ301Aに対する電源
基板910からの電力供給は、主基板31を介してなさ
れるが、払出制御基板37を介してなされるようにして
もよい。また、賞球センサと球貸しセンサは、それぞれ
複数設けられていてもよい。また、賞球センサは、主基
板31用のものと払出制御基板37用のものが別個に設
けられていてもよい。
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. In addition, prize ball count switch 301
The detection signal A is also input to the CPU of the main board 31.
Power supply board 91 for ball lending count switch 301B
The power supply from 0 is performed through the payout control board 37. Although power is supplied from the power supply board 910 to the prize ball count switch 301A through the main board 31, it may be supplied through the payout control board 37. In addition, a plurality of prize ball sensors and ball lending sensors may be provided respectively. Moreover, as the prize ball sensor, one for the main board 31 and one for the payout control board 37 may be provided separately.

【0047】なお、ギア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.

【0048】また、球払出装置は、賞球払出と球貸しと
を共に行うように構成されていてもよいが、賞球払出を
行う球払出装置と球貸しを行う球払出装置が別個に設け
られていてもよい。さらに、例えばスプロケットの回転
方向を変えて賞球払出と球貸しとを分けるように構成さ
れていてもよいし、本実施の形態において例示する球払
出装置97以外のどのような構造の球払出装置を用いて
も、本発明を適用することができる。
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.

【0049】図6は、遊技枠を構成する機構板に設置さ
れている電源基板910の露出部分を示す正面図であ
る。図6に示すように、電源基板910は、大部分が主
基板31と重なっているが、主基板31に重なることな
く外部から視認可能に露出した露出部分がある。この露
出部分には、遊技機1への電力供給を実行あるいは遮断
するための電源スイッチ914と、各基板(主基板31
や払出制御基板37等)に含まれる記憶内容保持手段
(例えば、電力供給停止時にもその内容を保持可能なバ
ックアップRAM)に記憶されたバックアップデータを
クリアするための操作手段としてのクリアスイッチ92
1とが設けられている。このように、電源スイッチ91
4とクリアスイッチ921とが近くに配置されているの
で、クリアスイッチ921の操作が容易となる。
FIG. 6 is a front view showing an exposed portion of the power supply substrate 910 installed on the mechanism plate constituting the game frame. As shown in FIG. 6, most of the power supply board 910 overlaps with the main board 31, but there is an exposed portion that is visible from the outside without overlapping with the main board 31. In this exposed portion, a power switch 914 for executing or cutting off power supply to the gaming machine 1 and each board (main board 31
And a payout control board 37) included in the storage content holding means (for example, a backup RAM capable of holding the content even when power supply is stopped) as a clear switch 92 as an operation means for clearing the backup data.
1 and are provided. In this way, the power switch 91
4 and the clear switch 921 are arranged close to each other, the operation of the clear switch 921 becomes easy.

【0050】図7は、主基板31における回路構成の一
例を示すブロック図である。なお、図7には、払出制御
基板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. 7 is a block diagram showing an example of the circuit configuration of the main board 31. Note that FIG. 7 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.

【0051】なお、図7には示されていないが、カウン
トスイッチ短絡信号もスイッチ回路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. 7, the count switch short circuit signal is also transmitted to the basic circuit 53 through 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.

【0052】また、基本回路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.

【0053】基本回路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 (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.

【0054】また、RAM(CPU内蔵RAMであって
もよい。)55の一部または全部が、電源基板910に
おいて作成されるバックアップ電源よってバックアップ
されているバックアップRAMである。すなわち、遊技
機に対する電力供給が停止しても、所定期間は、RAM
55の一部または全部の内容は保存される。
Further, a part or all of the RAM (which may be a CPU built-in RAM) 55 is a backup RAM backed up by a backup power source created in the power source 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.

【0055】この実施の形態では、電源基板910から
主基板31に対して、ローレベルがリセット状態を示す
リセット信号、ローアクティブの復帰信号およびローア
クティブの電源断信号も入力される。リセット信号と復
帰信号とはAND回路161に入力され、AND回路1
61の出力がCPU56のリセット端子に入力される。
また、電源断信号は、CPU56のマスク不能割込(N
MI)端子に入力される。
In this embodiment, the power supply board 910 also inputs to the main board 31 a reset signal whose low level indicates a reset state, a low active return signal, and a low active power off signal. The reset signal and the return signal are input to the AND circuit 161, and the AND circuit 1
The output of 61 is input to the reset terminal of the CPU 56.
Further, the power-off signal is a non-maskable interrupt (N
MI) terminal.

【0056】遊技球を打撃して発射する打球発射装置は
発射制御基板91上の回路によって制御される駆動モー
タ94で駆動される。そして、駆動モータ94の駆動力
は、操作ノブ5の操作量に従って調整される。すなわ
ち、発射制御基板91上の回路によって、操作ノブ5の
操作量に応じた速度で打球が発射されるように制御され
る。
A hitting ball launching device for hitting and launching a game ball is driven by a drive motor 94 controlled by a circuit on a launching 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】図8は、払出制御基板37および球払出装
置97の構成要素などの払出に関連する構成要素を示す
ブロック図である。図8に示すように、満タンスイッチ
48からの検出信号は、中継基板71を介して主基板3
1のI/Oポート部57に入力される。また、球切れス
イッチ187からの検出信号も、中継基板72および中
継基板71を介して主基板31のI/Oポート部57に
入力される。
FIG. 8 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. 8, the detection signal from the full tank switch 48 is transmitted via the relay substrate 71 to the main substrate 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ビットのデータを
出力し、出力ポート(出力ポート0)570は1ビット
のINT信号を出力する。賞球個数を示す払出制御コマ
ンドは、入力バッファ回路373Aを介してI/Oポー
ト372aに入力される。INT信号は、入力バッファ
回路373Bを介して払出制御用CPU371の割込端
子に入力されている。払出制御用CPU371は、I/
Oポート372aを介して払出制御コマンドを入力し、
払出制御コマンドに応じて球払出装置97を駆動して賞
球払出を行う。なお、この実施の形態では、払出制御用
CPU371は、1チップマイクロコンピュータであ
り、少なくともRAMが内蔵されている。
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 (output port 0) 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
Input a payout control command through the O port 372a,
The ball payout device 97 is driven in accordance with the payout control command to perform prize ball payout. In this embodiment, the payout control CPU 371 is a one-chip microcomputer and has at least a built-in RAM.

【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には、使用可表示ランプ151、連
結台方向表示器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 usable indicator lamp 151, a connecting stand direction indicator 153, a card insertion indicator 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を介して
与えられる。このように、残高表示基板74とカードユ
ニット50は、直接接続されることなく、払出制御基板
37を介して接続されている。カードユニット50と払
出制御基板37の間では、接続信号(VL信号)、ユニ
ット操作信号(BRDY信号)、球貸し要求信号(BR
Q信号)、球貸し完了信号(EXS信号)およびパチン
コ機動作信号(PRDY信号)が入力ポート372bお
よび出力ポート372eを介してやりとりされる。な
お、カードユニット50と払出制御基板37の間には、
図示しないインタフェース基板が介在しており、接続信
号(VL信号)等の信号はインタフェース基板を介して
やりとりされる。
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. As described above, the balance display board 74 and the card unit 50 are connected to each other via the payout control board 37 without being directly connected. Between the card unit 50 and the payout control board 37, a connection signal (VL signal), a unit operation signal (BRDY signal), a ball lending request signal (BR).
The Q signal), the ball lending completion signal (EXS signal) and the pachinko machine operation signal (PRDY signal) are exchanged via the input port 372b and the output port 372e. In addition, between the card unit 50 and the payout control board 37,
An interface board (not shown) is interposed, and signals such as connection signals (VL signals) are exchanged via the interface board.

【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に対して、リセット信号、復帰信号お
よび電源断信号も入力される。リセット信号と復帰信号
とはAND回路385に入力され、AND回路385の
出力が払出制御用CPU371のリセット端子に入力さ
れる。また、電源断信号は、払出制御用CPU371の
マスク不能割込(NMI)端子に入力される。さらに、
払出制御基板37に存在するRAM(CPU内蔵RAM
であってもよい。)の少なくとも一部は、電源基板91
0において作成されるバックアップ電源によって、バッ
クアップされている。すなわち、遊技機に対する電力供
給が停止しても、所定期間は、RAMの少なくとも一部
の内容は保存される。
In this embodiment, a reset signal, a return signal and a power-off signal are also input from the power supply board 910 to the payout control board 37. The reset signal and the return signal are input to the AND circuit 385, and the output of the AND circuit 385 is input to the reset terminal of the payout control CPU 371. Further, the power-off signal is input to the non-maskable interrupt (NMI) terminal of the payout control CPU 371. further,
RAM existing in the payout control board 37 (RAM with built-in CPU
May be ) Is at least partially
It is backed up by the backup power supply created at 0. 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 in the case where a game ball corresponding to the amount of coins is lent out according to the coin insertion.

【0072】図9は、図柄制御基板80内の回路構成
を、可変表示装置9の一実現例であるLCD(液晶表示
装置)82、普通図柄表示器10、主基板31の出力ポ
ート(ポート0,2)570,572および出力バッフ
ァ回路620,62Aとともに示すブロック図である。
出力ポート(出力ポート2)572からは8ビットのデ
ータが出力され、出力ポート570からは1ビットのス
トローブ信号(INT信号)が出力される。
FIG. 9 shows the circuit configuration in the symbol control board 80, an LCD (liquid crystal display device) 82 which is an example of realizing the variable display device 9, an ordinary symbol display device 10, an output port of the main substrate 31 (port 0). , 2) 570 and 572 and output buffer circuits 620 and 62A.
8-bit data is output from the output port (output port 2) 572, and a 1-bit strobe signal (INT signal) is output from the output port 570.

【0073】表示制御用CPU101は、制御データR
OM102に格納されたプログラムに従って動作し、主
基板31からノイズフィルタ107および入力バッファ
回路105Bを介してINT信号が入力されると、入力
バッファ回路105Aを介して表示制御コマンドを受信
する。入力バッファ回路105A,105Bとして、例
えば汎用ICである74HC540,74HC14を使
用することができる。なお、表示制御用CPU101が
I/Oポートを内蔵していない場合には、入力バッファ
回路105A,105Bと表示制御用CPU101との
間に、I/Oポートが設けられる。
The display control CPU 101 controls the control data R
It operates according to the program stored in the OM 102, and when the INT signal is input from the main board 31 via the noise filter 107 and the input buffer circuit 105B, the display control command is received via the input buffer circuit 105A. As the input buffer circuits 105A and 105B, for example, general-purpose ICs 74HC540 and 74HC14 can be used. If the display control CPU 101 does not include an I / O port, an I / O port is provided between the input buffer circuits 105A and 105B and the display control CPU 101.

【0074】そして、表示制御用CPU101は、受信
した表示制御コマンドに従って、LCD82に表示され
る画面の表示制御を行う。具体的には、表示制御コマン
ドに応じた指令をVDP(ビデオディスプレイプロセッ
サ)103に与える。VDP103は、キャラクタRO
M86から必要なデータを読み出す。VDP103は、
入力したデータに従ってLCD82に表示するための画
像データを生成し、R,G,B信号および同期信号をL
CD82に出力する。
Then, the display control CPU 101 controls the display of the screen displayed on the LCD 82 in accordance with the received display control command. Specifically, a command corresponding to the display control command is given to the VDP (video display processor) 103. The VDP 103 is the character RO
Read the required data from M86. VDP103 is
Image data to be displayed on the LCD 82 is generated according to the input data, and the R, G, B signals and the synchronization signal are set to L.
Output to CD82.

【0075】なお、図9には、VDP103をリセット
するためのリセット回路83、VDP103に動作クロ
ックを与えるための発振回路85、および使用頻度の高
い画像データを格納するキャラクタROM86も示され
ている。キャラクタROM86に格納される使用頻度の
高い画像データとは、例えば、LCD82に表示される
人物、動物、または、文字、図形もしくは記号等からな
る画像などである。
FIG. 9 also shows a reset circuit 83 for resetting the VDP 103, an oscillating circuit 85 for giving an operation clock to the VDP 103, and a character ROM 86 for storing frequently used image data. The frequently used image data stored in the character ROM 86 is, for example, a person, an animal, or an image including characters, figures, symbols, or the like displayed on the LCD 82.

【0076】入力バッファ回路105A,105Bは、
主基板31から図柄制御基板80へ向かう方向にのみ信
号を通過させることができる。従って、図柄制御基板8
0側から主基板31側に信号が伝わる余地はない。すな
わち、入力バッファ回路105A,105Bは、入力ポ
ートともに不可逆性情報入力手段を構成する。図柄制御
基板80内の回路に不正改造が加えられても、不正改造
によって出力される信号が主基板31側に伝わることは
ない。
The input buffer circuits 105A and 105B are
The signal can be passed only in the direction from the main board 31 to the symbol control board 80. Therefore, the pattern control board 8
There is no room for signals to be transmitted from the 0 side to the main board 31 side. That is, the input buffer circuits 105A and 105B constitute an irreversible information input means together with the input ports. Even if the circuit in the symbol control board 80 is tampered with, the signal output by the tampering is not transmitted to the main board 31 side.

【0077】高周波信号を遮断するノイズフィルタ10
7として、例えば3端子コンデンサやフェライトビーズ
が使用されるが、ノイズフィルタ107の存在によっ
て、表示制御コマンドに基板間でノイズが乗ったとして
も、その影響は除去される。また、主基板31のバッフ
ァ回路620,62Aの出力側にもノイズフィルタを設
けてもよい。
Noise filter 10 for cutting off high frequency signals
For example, a 3-terminal capacitor or a ferrite bead is used as 7, but the presence of the noise filter 107 eliminates the influence of noise on the display control command between the substrates. A noise filter may be provided on the output side of the buffer circuits 620 and 62A of the main board 31.

【0078】図10は、主基板31およびランプ制御基
板35における信号送受信部分を示すブロック図であ
る。この実施の形態では、遊技領域7の外側に設けられ
ている点枠ランプ28a、左枠ランプ28b、右枠ラン
プ28cと遊技盤に設けられている装飾ランプ25の点
灯/消灯と、賞球ランプ51および球切れランプ52の
点灯/消灯とを示すランプ制御コマンドが主基板31か
らランプ制御基板35に出力される。また、始動記憶表
示器18および普通図柄始動記憶表示器41の点灯個数
を示すランプ制御コマンドも主基板31からランプ制御
基板35に出力される。
FIG. 10 is a block diagram showing signal transmitting / receiving portions of the main board 31 and the lamp control board 35. In this embodiment, the point frame lamp 28a, the left frame lamp 28b, the right frame lamp 28c provided on the outside of the game area 7 and the decoration lamp 25 provided on the game board are turned on / off, and the prize ball lamp is provided. A lamp control command indicating turning on / off of 51 and the out-of-bulb lamp 52 is output from the main board 31 to the lamp control board 35. Further, a lamp control command indicating the number of lighting of the starting memory display 18 and the normal symbol starting memory display 41 is also output from the main board 31 to the lamp control board 35.

【0079】図10に示すように、ランプ制御に関する
ランプ制御コマンドは、基本回路53におけるI/Oポ
ート部57の出力ポート(出力ポート0,3)570,
573から出力される。出力ポート(出力ポート3)5
73は8ビットのデータを出力し、出力ポート570は
1ビットのINT信号を出力する。ランプ制御基板35
において、主基板31からの制御コマンドは、入力バッ
ファ回路355A,355Bを介してランプ制御用CP
U351に入力する。なお、ランプ制御用CPU351
がI/Oポートを内蔵していない場合には、入力バッフ
ァ回路355A,355Bとランプ制御用CPU351
との間に、I/Oポートが設けられる。
As shown in FIG. 10, the lamp control command relating to the lamp control is the output port (output port 0, 3) 570 of the I / O port unit 57 in the basic circuit 53.
It is output from 573. Output port (output port 3) 5
73 outputs 8-bit data, and the output port 570 outputs a 1-bit INT signal. Lamp control board 35
, The control command from the main board 31 is sent to the lamp control CP via the input buffer circuits 355A and 355B.
Input to U351. The lamp control CPU 351
Does not include an I / O port, the input buffer circuits 355A and 355B and the lamp control CPU 351.
An I / O port is provided between and.

【0080】ランプ制御基板35において、ランプ制御
用CPU351は、各制御コマンドに応じて定義されて
いる天枠ランプ28a、左枠ランプ28b、右枠ランプ
28c、装飾ランプ25の点灯/消灯パターンに従っ
て、天枠ランプ28a、左枠ランプ28b、右枠ランプ
28c、装飾ランプ25に対して点灯/消灯信号を出力
する。点灯/消灯信号は、天枠ランプ28a、左枠ラン
プ28b、右枠ランプ28c、装飾ランプ25に出力さ
れる。なお、点灯/消灯パターンは、ランプ制御用CP
U351の内蔵ROMまたは外付けROMに記憶されて
いる。
In the lamp control board 35, the lamp control CPU 351 follows the lighting / extinguishing patterns of the top frame lamp 28a, the left frame lamp 28b, the right frame lamp 28c, and the decoration lamp 25 defined according to each control command. A lighting / extinguishing signal is output to the top frame lamp 28a, the left frame lamp 28b, the right frame lamp 28c, and the decoration lamp 25. The lighting / extinguishing signal is output to the top frame lamp 28a, the left frame lamp 28b, the right frame lamp 28c, and the decoration lamp 25. In addition, the lighting / extinguishing pattern is the CP for lamp control
It is stored in the built-in ROM of U351 or the external ROM.

【0081】主基板31において、CPU56は、RA
M55の記憶内容に未払出の賞球残数があるときに賞球
ランプ51の点灯を指示する制御コマンドを出力し、遊
技盤裏面の払出球通路の上流に設置されている球切れス
イッチ187(図3参照)が遊技球を検出しなくなると
球切れランプ52の点灯を指示する制御コマンドを出力
する。ランプ制御基板35において、各制御コマンド
は、入力バッファ回路355A,355Bを介してラン
プ制御用CPU351に入力する。ランプ制御用CPU
351は、それらの制御コマンドに応じて、賞球ランプ
51および球切れランプ52を点灯/消灯する。なお、
点灯/消灯パターンは、ランプ制御用CPU351の内
蔵ROMまたは外付けROMに記憶されている。
On the main board 31, the CPU 56 controls the RA
When there is an unpaid remaining number of award balls in the stored contents of M55, a control command for instructing lighting of the award ball lamp 51 is output, and the out-of-ball switch 187 (which is installed upstream of the award ball passage on the back surface of the game board). When the game ball is not detected (see FIG. 3), a control command for instructing lighting of the out-of-ball lamp 52 is output. In the lamp control board 35, each control command is input to the lamp control CPU 351 via the input buffer circuits 355A and 355B. Lamp control CPU
351 turns on / off the prize ball lamp 51 and the out-of-ball lamp 52 according to these control commands. In addition,
The lighting / extinguishing pattern is stored in the built-in ROM or the external ROM of the lamp control CPU 351.

【0082】さらに、ランプ制御用CPU351は、制
御コマンドに応じて始動記憶表示器18および普通図柄
始動記憶表示器41に対して点灯/消灯信号を出力す
る。
Further, the lamp control CPU 351 outputs a lighting / extinguishing signal to the starting memory indicator 18 and the normal symbol starting memory indicator 41 in response to the control command.

【0083】入力バッファ回路355A,355Bとし
て、例えば、汎用のCMOS−ICである74HC54
0,74HC14が用いられる。入力バッファ回路35
5A,355Bは、主基板31からランプ制御基板35
へ向かう方向にのみ信号を通過させることができる。従
って、ランプ制御基板35側から主基板31側に信号が
伝わる余地はない。たとえ、ランプ制御基板35内の回
路に不正改造が加えられても、不正改造によって出力さ
れる信号がメイン基板31側に伝わることはない。な
お、入力バッファ回路355A,355Bの入力側にノ
イズフィルタを設けてもよい。
The input buffer circuits 355A and 355B are, for example, 74HC54 which is a general-purpose CMOS-IC.
0.74HC14 is used. Input buffer circuit 35
5A and 355B are the main board 31 and the lamp control board 35.
The signal can only be passed in the direction towards. Therefore, there is no room for signals to be transmitted from the lamp control board 35 side to the main board 31 side. Even if the circuit in the lamp control board 35 is tampered with, the signal output by the tampering is not transmitted to the main board 31 side. A noise filter may be provided on the input side of the input buffer circuits 355A and 355B.

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

【0085】図11は、電源基板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. 11 is a block diagram showing an example of the configuration 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.

【0086】電源基板910には、遊技機内の各電気部
品制御基板や機構部品への電力供給を実行または遮断す
るための電源スイッチ914が設けられている。トラン
ス911は、交流電源からの交流電圧を24Vに変換す
る。AC24V電圧は、コネクタ915に出力される。
また、整流回路912は、AC24Vから+30Vの直
流電圧を生成し、DC−DCコンバータ913およびコ
ネクタ915に出力する。DC−DCコンバータ913
は、1つまたは複数のコンバータIC920(図11で
は1つのみを示す。)を有し、VSLにもとづいて+21
V、+12Vおよび+5Vを生成してコネクタ915に
出力する。コンバータIC920の入力側には、比較的
大容量のコンデンサ923が接続されている。従って、
外部からの遊技機に対する電力供給が停止したときに、
+30V、+12V、+5V等の直流電圧は、比較的緩
やかに低下する。また、コネクタ915の入力側にも、
比較的大容量のコンデンサ924が接続されている。従
って、コネクタ915に出力される+30Vの直流電圧
は、他の直流電圧よりもさらに緩やかに低下する。この
結果、コンデンサ923,924は、後述する補助駆動
電源の役割を果たす。コネクタ915は例えば中継基板
に接続され、中継基板から各電気部品制御基板および機
構部品に必要な電圧の電力が供給される。
The power supply board 910 is provided with a power supply switch 914 for executing or cutting off power supply to each electric part control board and mechanical parts in the game machine. The transformer 911 converts the AC voltage from the AC power supply into 24V. The AC 24V voltage is output to the connector 915.
The rectifier circuit 912 also generates a DC voltage of + 30V from AC 24V and outputs the DC voltage to the DC-DC converter 913 and the connector 915. DC-DC converter 913
Has one or more converter ICs 920 (only one is shown in FIG. 11) and is +21 based on VSL.
V, + 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,
DC voltages such as + 30V, + 12V, and + 5V drop relatively slowly. Also, on the input side of the connector 915,
A relatively large-capacity capacitor 924 is connected. Therefore, the + 30V DC voltage output to the connector 915 drops more gently than other DC voltages. As a result, the capacitors 923 and 924 serve as an auxiliary drive power source, which will be 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.

【0087】ただし、電源基板910に各電気部品制御
基板に至る各コネクタを設け、電源基板910から、中
継基板を介さずにそれぞれの基板に至る各電圧を供給す
るようにしてもよい。また、図11には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 the relay board. Further, although one connector 915 is representatively shown in FIG. 11, the connector is provided for each electric component control board.

【0088】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.

【0089】なお、バックアップ電源として、+5V電
源から充電可能な電池を用いてもよい。電池を用いる場
合には、+5V電源から電力供給されない状態が所定時
間継続すると容量がなくなるような充電池が用いられ
る。また、上記のコンデンサ923,924の代わり
に、+30V電源から充電可能な電池を用いてもよい。
コンデンサ923の代わりに電池を用いる場合には、後
述する払出確認期間以上の期間、賞球カウントスイッチ
301Aや球貸しカウントスイッチ301Bに電力を供
給可能な充電池が用いられる。また、コンデンサ924
の代わりに電池を用いる場合には、後述する払出確認期
間以上の期間、振分ソレノイド310に電力を供給可能
な充電池が用いられる。なお、上記の電池は、充電機能
を有するものでなくてもよく、例えばニッカド電池、ア
ルカリ電池、マンガン電池などの電池が用いられる。
A battery that 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. Further, instead of the capacitors 923 and 924 described above, a battery that can be charged from a + 30V power source may be used.
When a battery is used instead of the capacitor 923, a rechargeable battery that can supply power to the prize ball count switch 301A and the ball lending count switch 301B for a period equal to or longer than a payout confirmation period described later is used. Also, the capacitor 924
When a battery is used instead of the rechargeable battery, a rechargeable battery that can supply power to the distribution solenoid 310 for a period equal to or longer than a payout confirmation period described later is used. The above-mentioned battery does not have to have a charging function and, for example, a battery such as a nicad battery, an alkaline battery, a manganese battery or the like is used.

【0090】また、電源基板910には、電源監視回路
としての電源監視用IC902が搭載されている。電源
監視用IC902は、VSL電圧を導入し、VSL電圧を監
視することによって遊技機への電力供給停止の発生を検
出する。具体的には、VSL電圧が所定値(この例では+
22V)以下になったら、電力供給の停止が生ずるとし
て電源断信号を出力する。従って、賞球カウントスイッ
チ301Aによる賞球の検出が有効に行われているとき
に電源供給停止時処理を開始することができる。従っ
て、電源供給停止時処理を開始したあとしばらくは補助
駆動電源にたよることなく賞球の検出が可能となり、補
助駆動電源としてのコンデンサ923の容量が少なくて
済む。なお、監視対象の電源電圧は、各電気部品制御基
板に搭載されている回路素子の電源電圧(この例では+
5V)よりも高い電圧であることが好ましい。この例で
は、交流から直流に変換された直後の電圧であるVSLが
用いられている。電源監視用IC902からの電源断信
号は、主基板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. Therefore, it is possible to start the power supply stop process when the prize ball count switch 301A is effectively detecting the prize ball. Therefore, the prize ball can be detected for a while after the power supply stop processing is started without depending on the auxiliary drive power supply, and the capacity of the capacitor 923 as the auxiliary drive power supply can be small. The power supply voltage to be monitored is the power supply voltage of the circuit element mounted on each electric component control board (in this example, +
It is preferable that the voltage is higher than 5 V). In this example, VSL, which is the voltage immediately after conversion from AC to DC, is used. The power-off signal from the power monitoring IC 902 is supplied to the main board 31, the payout control board 37, and the like.

【0091】電源監視用IC902が電力供給の停止を
検知するための所定値は、通常時の電圧より低いが、各
電気部品制御基板上のCPUが暫くの間動作しうる程度
の電圧である。また、電源監視用IC902が、CPU
等の回路素子を駆動するための電圧(この例では+5
V)よりも高く、また、交流から直流に変換された直後
の電圧を監視するように構成されているので、CPUが
必要とする電圧に対して監視範囲を広げることができ
る。従って、より精密な監視を行うことができる。
The predetermined value for the power supply monitoring IC 902 to detect the stop of the 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.

【0092】さらに、監視電圧として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.

【0093】また、監視電圧としての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 (+30 V) as the monitoring voltage starts to drop, the solenoid, the motor, etc. can be driven 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.

【0094】また、電源監視用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 circuit can supply a power-off signal to the plurality of electric part control boards. Even if there are any number of electrical component control boards that require a power-off signal, one power source monitoring means may be provided, so that even if each electrical component control means in each electrical component control board performs recovery control described below. , The cost of gaming machines does not rise so much.

【0095】なお、図11に示された構成では、電源監
視用IC902の検出信号(電源断信号)は、バッファ
回路918,919を介してそれぞれの電気部品制御基
板(例えば主基板31と払出制御基板37)に伝達され
るが、例えば、1つの検出信号を中継基板に伝達し、中
継基板から各電気部品制御基板に同じ信号を分配する構
成でもよい。また、電源断信号を必要とする基板数に応
じたバッファ回路を設けてもよい。さらに、主基板31
と払出制御基板37とに出力される電源断信号につい
て、電源断信号を出力することになる電源監視回路の監
視電圧を異ならせてもよい。
In the configuration shown in FIG. 11, the detection signal (power-off signal) of the power supply monitoring IC 902 is transmitted through the buffer circuits 918 and 919 to the respective electric component control boards (for example, the main board 31 and the payout control board). Although it is transmitted to the substrate 37), for example, one detection signal 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.

【0096】図11に示すように、電源基板910に
は、押しボタン構造のクリアスイッチ921が搭載され
ている。クリアスイッチ921が押下されるとローレベ
ル(オン状態)のクリアスイッチ信号が出力され、コネ
クタ915を介して主基板31等に送信される。また、
クリアスイッチ921が押下されていなければハイレベ
ル(オフ状態)の信号が出力される。
As shown in FIG. 11, a clear switch 921 having a push button structure is mounted on the power supply board 910. 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 915. Also,
If the clear switch 921 is not pressed, a high level (off state) signal is output.

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

【0098】この実施の形態では、クリアスイッチ92
1が電源基板910に搭載されているので、遊技盤6の
入れ替え等の場合に入れ替え後の遊技盤6に対して電源
基板910をそのまま使用しても、入れ替え後の遊技盤
6において、そのままで遊技状態復旧処理等を実行する
ことができる。すなわち、電源基板910の使い回しを
行うことができる。なお、電源基板910ではなく、別
の箇所にクリアスイッチ921が搭載される構成として
もよい。別の箇所としては、例えば、クリアスイッチ9
21が搭載されるスイッチ基板や、クリアスイッチ92
1と電源スイッチ914とが搭載されるターミナル基板
などが考えられる。
In this embodiment, the clear switch 92
Since 1 is mounted on the power board 910, even if the power board 910 is used as it is for the game board 6 after replacement when the game board 6 is replaced, etc., the game board 6 after replacement remains unchanged. It is possible to execute a game state restoration process and the like. That is, the power supply board 910 can be reused. Note that the clear switch 921 may be mounted at another location instead of the power supply board 910. As another place, for example, the clear switch 9
The switch board on which 21 is mounted and the clear switch 92
1 and a power switch 914 may be mounted on the terminal board.

【0099】電源基板910には、各基板にリセット信
号および復帰信号を供給するリセット管理回路940が
搭載されている。リセット管理回路940は、起動順序
制御手段の一実現例である。
A reset management circuit 940 for supplying a reset signal and a return signal to each board is mounted on the power supply board 910. The reset management circuit 940 is an implementation example of the boot order control means.

【0100】図13は、リセット管理回路940の構成
例を示すブロック図である。リセット管理回路940に
おいて、リセット回路65におけるリセットIC651
は、電源投入時に、外付けのコンデンサの容量で決まる
所定時間だけ出力をローレベルとし、所定時間が経過す
ると出力をハイレベルにする。すなわち、リセット信号
をハイレベルに立ち上げてCPU56を動作可能状態に
する。また、リセットIC651は、電源監視用IC9
02が監視する電源電圧と等しい電源電圧であるVSLの
電源電圧を監視して電圧値が所定値(電源監視回路が電
源断信号を出力する電源電圧値よりも低い値)以下にな
ると出力をローレベルにする。従って、CPU56およ
び払出制御用CPU371は、電源監視用IC902か
らの電源断信号に応じて所定の電力供給停止時処理を行
った後、システムリセットされる(すなわち、システム
の最初の状態に戻される)。
FIG. 13 is a block diagram showing a configuration example of the reset management circuit 940. In the reset management circuit 940, the reset IC 651 in the reset circuit 65
When the power is turned on, 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. Further, the reset IC 651 is a power monitoring IC 9
The power supply voltage of VSL, which is a power supply voltage equal to the power supply voltage monitored by 02, is monitored, and when the voltage value becomes equal to or lower than a predetermined value (a value lower than the power supply voltage value at which the power supply monitoring circuit outputs the power-off signal), the output is turned low To level. Therefore, the CPU 56 and the payout control CPU 371 perform system resetting (that is, return to the initial state of the system) after performing predetermined power supply stoppage processing in response to the power off signal from the power monitoring IC 902. .

【0101】図13に示すように、リセットIC651
に外付けされているコンデンサには、リセットIC65
1に監視電圧を導入する電源電圧ラインを分岐させたラ
インが導入されている。このコンデンサは、電力供給が
開始されたときに、リセットIC651に導入される監
視電圧がその所定値以上の値となることを遅延させるた
めに設けられている。従って、電源供給が開始される
と、リセットIC651に導入される電圧は、電源供給
が開始してから所定期間が経過したあとに、リセット信
号をハイレベルに立ち上げることとなる所定値に到達す
ることとなる。この所定期間は、コンデンサの容量によ
って決まり、容量を大きくすると期間を長くすることが
できる。
As shown in FIG. 13, the reset IC 651 is used.
The externally attached capacitor has a reset IC 65
1 is a line branched from the power supply voltage line for introducing the monitoring voltage. This capacitor is provided in order to delay that the monitoring voltage introduced to the reset IC 651 becomes a value equal to or higher than the predetermined value when power supply is started. Therefore, when the power supply is started, the voltage introduced to the reset IC 651 reaches a predetermined value that causes the reset signal to rise to a high level after a predetermined period has elapsed since the power supply was started. It will be. This predetermined period is determined by the capacity of the capacitor, and the larger the capacity, the longer the period can be.

【0102】リセットIC651の出力は、リセット信
号回路950における各回路941〜949を介して、
バッファ回路961〜964および遅延回路960に供
給される。遅延回路960の出力はバッファ回路965
に入力する。そして、バッファ回路961〜965が各
電気部品制御基板にリセット信号として供給される。従
って、リセットIC651の出力がハイレベルになる
と、各電気部品制御基板におけるCPUが動作可能状態
になる。
The output of the reset IC 651 is output through the circuits 941 to 949 in the reset signal circuit 950.
It is supplied to the buffer circuits 961 to 964 and the delay circuit 960. The output of the delay circuit 960 is the buffer circuit 965.
To enter. Then, the buffer circuits 961 to 965 are supplied as reset signals to the electric component control boards. Therefore, when the output of the reset IC 651 becomes high level, the CPU in each electric component control board becomes operable.

【0103】図13に示すように、リセット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の出力が、バッファ回路961〜
965を介して各CPUに供給されている。このような
構成によれば、電源投入時に、各CPUのリセット端子
に2回のリセット信号(ローレベル信号)が与えられる
ので、各CPUは、確実に動作を開始する。
As shown in FIG. 13, 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 the buffer circuits 961 to 961.
It is supplied to each CPU via 965. With such a configuration, since the reset signal (low level signal) is applied twice to the reset terminal of each CPU when the power is turned on, each CPU reliably starts its operation.

【0104】そして、例えば、電源監視回路の検出電圧
(電源断信号を出力することになる電圧)を+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.

【0105】なお、電源監視回路とシステムリセット回
路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.

【0106】この例では、電源監視手段が検出信号を出
力することになる検出条件は+30V電源電圧が+22
Vにまで低下したことであり、リセットIC651がリ
セットレベルであるローレベルを出力することになる条
件は+30V電源電圧が+9Vにまで低下したことにな
る。ただし、ここで用いられている電圧値は一例であっ
て、他の値を用いてもよい。
In this example, the detection condition for the power supply monitoring means to output a detection signal is + 30V when the power supply voltage is +22.
It means that the reset IC 651 outputs the low level which is the reset level because the power supply voltage has dropped to V and the + 30V power supply voltage has dropped to + 9V. However, the voltage value used here is an example, and another value may be used.

【0107】ただし、監視範囲が狭まるが、電源監視手
段およびリセットIC651の監視電圧として+5V電
源電圧を用いることも可能である。その場合にも、電源
監視回路の検出電圧は、リセットIC651の検出電圧
よりも高く設定される。
However, although the monitoring range is narrowed, it is also possible to use the + 5V power supply voltage as the monitoring voltage of the power supply monitoring means and the reset IC 651. Also in that case, the detection voltage of the power supply monitoring circuit is set higher than the detection voltage of the reset IC 651.

【0108】主基板31のCPU56および払出制御基
板37の払出制御用CPU371の駆動電源である+5
V電源から電力が供給されていない間、RAMの少なく
とも一部は、電源基板910から供給されるバックアッ
プ電源によってバックアップされ、遊技機に対する電源
が断しても内容は保存される。そして、電源が復旧する
と、リセット管理回路940からのリセット信号がハイ
レベルになるので、CPU56および払出制御用CPU
371は、通常の動作状態に復帰する。そのとき、必要
なデータがバックアップRAMに保存されているので、
停電等からの復旧時に停電発生時の遊技状態に復帰する
ことができる。
+5 which is the drive power source for the CPU 56 of the main board 31 and the payout control CPU 371 of the payout control board 37.
While power is not being supplied from the V power supply, at least part of the RAM is backed up by the backup power supply supplied from the power supply board 910, and the contents are saved even when the power supply to the gaming machine is cut off. Then, when the power is restored, the reset signal from the reset management circuit 940 becomes high level, so the CPU 56 and the payout control CPU
371 returns to the normal operating state. At that time, because the necessary data is stored in the backup RAM,
It is possible to return to the gaming state at the time of power failure at the time of recovery from power failure.

【0109】なお、図13には、電源投入時に各電気部
品制御基板のCPUのリセット端子に2回のリセット信
号(ローレベル信号)が与えられる構成が示されたが、
リセット信号の立ち上がりタイミングが1回しかなくて
も確実にリセット解除されるCPUを使用する場合に
は、符号941〜949で示された回路素子は不要であ
る。そのような場合などには、符号941〜949で示
された回路素子を設けない構成としてもよい。この場
合、リセットIC651の出力がそのままバッファ回路
961〜964および遅延回路960に接続される。
FIG. 13 shows a configuration in which the reset signal (low level signal) is applied twice to the reset terminal of the CPU of each electric component control board when the power is turned on.
When using a CPU that is surely released from reset even if the reset signal rises only once, the circuit elements indicated by reference numerals 941 to 949 are unnecessary. In such a case, the circuit elements denoted by reference numerals 941 to 949 may be omitted. In this case, the output of the reset IC 651 is directly connected to the buffer circuits 961 to 964 and the delay circuit 960.

【0110】また、上記の例では、電源基板910にリ
セット回路65が設けられ、主基板31や払出制御基板
37などの各基板にリセット信号や復帰信号を出力する
ようにしていたが、主基板31や払出制御基板37など
の各基板それぞれにリセット回路を設ける構成としても
よい。
In the above example, the reset circuit 65 is provided on the power board 910 to output the reset signal and the return signal to each board such as the main board 31 and the payout control board 37. A reset circuit may be provided on each of the substrates such as 31 and the payout control substrate 37.

【0111】この実施の形態では、電源投入時に、リセ
ット回路65におけるリセットIC651は、外付けの
コンデンサの容量で決まる所定時間だけ各電気部品制御
基板のCPUに供給しているリセット信号の立ち上げ遅
延させる。すなわち、リセットIC651の外付けのコ
ンデンサの容量を、所定の遅延時間を生成するような値
に選定すれば、外付けのコンデンサの容量で決まる所定
時間だけ出力がローレベルとなり、所定時間が経過する
と出力がハイレベルとなる。
In this embodiment, when the power is turned on, the reset IC 651 in the reset circuit 65 delays the rise of the reset signal supplied to the CPU of each electric component control board for a predetermined time determined by the capacitance of the external capacitor. Let That is, if the capacity of the external capacitor of the reset IC 651 is selected to a value that produces a predetermined delay time, the output becomes low level for a predetermined time determined by the capacity of the external capacitor, and when the predetermined time elapses. The output goes high.

【0112】従って、電源投入時に、リセット信号がハ
イレベルに立ち上がるタイミングを遅らせて、電源監視
回路からの電源断信号(NMI信号)がハイレベルに立
ち上がった後にリセット信号をハイレベルに立ち上げる
ようにすることができ、リセット状態が解除されたとき
に電源断信号が出力状態となっていて、電源供給が再開
して復旧しているときに電源断処理が実行されてしまう
ことを防止することができる。
Therefore, when the power is turned on, the timing at which the reset signal rises to the high level is delayed so that the reset signal rises to the high level after the power-off signal (NMI signal) from the power supply monitoring circuit rises to the high level. It is possible to prevent the power-off signal from being output when the reset state is released and the power-off process being executed when the power supply is restarted and restored. it can.

【0113】また、この実施の形態では、電源基板91
0から各電気部品制御基板のCPUにリセット信号が供
給されるときに、遅延回路960が、主基板31のCP
U56に対するリセット信号の立ち上げを遅延させる。
従って、電源投入時に、主基板31のCPU56が備え
るリセット端子の入力信号は、他の電気部品制御基板の
CPUに供給されるリセット信号が立ち上げられるとき
よりも遅く立ち上げられる。
Further, in this embodiment, the power supply board 91
When the reset signal is supplied from 0 to the CPU of each electric component control board, the delay circuit 960 causes the CP of the main board 31 to operate.
Delay the rise of the reset signal to U56.
Therefore, when the power is turned on, the input signal of the reset terminal included in the CPU 56 of the main board 31 rises later than when the reset signal supplied to the CPU of another electric component control board rises.

【0114】例えば、主基板31のCPU56が他の電
気部品制御基板に対して制御コマンドを出力する際に、
他の電気部品制御基板におけるCPUは既に立ち上がっ
ているので、制御コマンドは確実に受信側の電気部品制
御基板のCPUで受信される。
For example, when the CPU 56 of the main board 31 outputs a control command to another electric component control board,
Since the CPUs in the other electric component control boards have already started up, the control command is surely received by the CPU of the electric part control board on the receiving side.

【0115】さらに、電源基板910には、待機期間を
計測して復帰信号を出力する復帰信号出力手段の一例で
あるカウンタ971が搭載されている。カウンタ971
は、電源断信号がローレベルになってクリアが解ける
と、発振器943からのクロック信号をカウントする。
そして、カウントアップすると、Q出力として、ハイレ
ベルの1パルスを発生する。そのパルス信号は反転回路
972で論理反転され、バッファ回路973および遅延
回路974に入力する。遅延回路974は、入力信号を
所定期間遅延させてバッファ回路975に入力させる。
Further, the power supply board 910 is equipped with a counter 971 which is an example of a return signal output means for measuring a standby period and outputting a return signal. Counter 971
Counts the clock signal from the oscillator 943 when the power-off signal goes low and the clear is released.
Then, upon counting up, one high-level pulse is generated as the Q output. The pulse signal is logically inverted by the inverting circuit 972 and input to the buffer circuit 973 and the delay circuit 974. The delay circuit 974 delays the input signal for a predetermined period and inputs it to the buffer circuit 975.

【0116】バッファ回路973の出力は、払出制御基
板37への復帰信号となる。また、バッファ回路975
の出力は、主基板31への復帰信号となる。なお、バッ
ファ回路973,975は、払出制御基板37、主基板
31に設けられていてもよい。
The output of the buffer circuit 973 serves as a return signal to the payout control board 37. In addition, the buffer circuit 975
Output becomes a return signal to the main board 31. The buffer circuits 973 and 975 may be provided on the payout control board 37 and the main board 31.

【0117】図14は、主基板31におけるCPU56
周りの一構成例を示すブロック図である。図14に示す
ように、電源基板910の電源監視回路(電源監視手
段)からの電源断信号が、CPU56のマスク不能割込
端子(XNMI端子)に接続されている。上述したよう
に、電源監視回路は、遊技機が使用する各種直流電源の
うちのいずれかの電源の電圧を監視して電源電圧低下を
検出する回路である。この実施の形態では、VSLの電源
電圧を監視して電圧値が所定値以下になるとローレベル
の電源断信号を発生する。VSLは、遊技機における直流
電圧のうちで最大のものであり、この例では+30Vで
ある。従って、CPU56は、割込処理によって電源断
の発生を確認することができる。
FIG. 14 shows the CPU 56 in the main board 31.
It is a block diagram showing an example of the circumference. As shown in FIG. 14, 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 CPU 56. As described above, the power supply monitoring circuit is a circuit that monitors the voltage of one of the various DC power supplies used by the gaming machine and detects a power supply voltage drop. In this embodiment, the power supply voltage of VSL is monitored, and when the voltage value becomes equal to or lower than a predetermined value, a low level power-off signal is generated. VSL is the maximum DC voltage in the gaming machine, and is + 30V in this example. Therefore, the CPU 56 can confirm the occurrence of power failure by the interrupt processing.

【0118】また、図14に示すように、電源基板91
0からのリセット信号と復帰信号とはAND回路161
に入力され、AND回路161の出力がCPU56のリ
セット端子(リセット信号入力部)に入力される。
As shown in FIG. 14, the power supply board 91
The reset signal and the return signal from 0 are AND circuits 161
And the output of the AND circuit 161 is input to the reset terminal (reset signal input section) of the CPU 56.

【0119】図15は、カウンタ971の作用を説明す
るためのタイミング図である。図15(A)に示すよう
に、電源電圧が低下し、VSLの電圧値が電源断信号出力
レベル(この例では+22V)まで低下すると電源断信
号が発生する。具体的には、電源断信号がローレベルに
なる。すると、後述するように、主基板31のCPU3
1および払出制御用CPU371は、電力供給停止時処
理の実行を開始し、その処理が終了すると、何の制御も
しないループ状態(待機状態)に入る。
FIG. 15 is a timing chart for explaining the operation of counter 971. As shown in FIG. 15A, when the power supply voltage drops and the voltage value of VSL drops to the power cutoff signal output level (+ 22V in this example), a power cutoff signal is generated. Specifically, the power-off signal goes low. Then, as will be described later, the CPU 3 of the main board 31
1 and the payout control CPU 371 start execution of the power supply stop process, and when the process ends, enter the loop state (standby state) in which no control is performed.

【0120】カウンタ971は、電源断信号がローレベ
ルになるとカウントを開始するのであるが、カウントア
ップ値は、電源断信号がローレベルになってから、VSL
の電圧値がVcc生成可能電圧にまで低下する時間以上に
設定される。すなわち、少なくとも、電源電圧が、制御
動作が不能になる電圧にまで低下する時間以上に設定さ
れる。カウンタ971はVccを電源として動作するの
で、カウントアップ値は、カウンタ971の動作可能期
間に相当する値以上に設定される。従って、一般には、
カウンタ971がカウントアップして復帰信号が出力さ
れる前に、カウンタ971およびその他の回路部品は動
作しなくなる。
The counter 971 starts counting when the power-off signal goes low, but the count-up value is VSL after the power-off signal goes low.
Is set to be equal to or longer than the time required for the voltage value of 1 to drop to the voltage capable of generating Vcc. That is, at least the power supply voltage is set to be longer than or equal to the time for which the control operation is disabled. Since the counter 971 operates using Vcc as a power source, the count-up value is set to a value equal to or greater than the value corresponding to the operable period of the counter 971. Therefore, in general,
Before the counter 971 counts up and the return signal is output, the counter 971 and other circuit components do not operate.

【0121】電源の瞬断等が生ずると、図15(B)に
示すように、VSLの電圧レベルが短期間低下した後に復
旧する。VSLの電圧レベルが電源断信号出力レベル以下
になると、電源断信号がローレベルになって、電力供給
停止時処理が開始される。そして、CPU56および払
出制御用CPU371は電力供給停止時処理終了後にル
ープ状態に入る。何らの制御も行わないと、ループ処理
から抜けられないのであるが、この場合には、カウンタ
971がカウントアップして復帰信号が発生する。
When the power supply is momentarily cut off, as shown in FIG. 15B, the voltage level of VSL is reduced for a short period of time and then restored. When the voltage level of VSL becomes equal to or lower than the power-off signal output level, the power-off signal becomes low level and the power supply stop processing is started. Then, the CPU 56 and the payout control CPU 371 enter the loop state after the end of the power supply stop process. The loop processing cannot be exited without any control. In this case, the counter 971 counts up and a return signal is generated.

【0122】図7および図8に示されたように、主基板
31および払出制御基板371において、復帰信号は、
AND回路161,385を介して、CPU56および
払出制御用CPU371のリセット端子に入力される。
従って、CPU56および払出制御用CPU371には
システムリセットがかかる。その結果、CPU56およ
び払出制御用CPU371はループ状態から抜け出すこ
とができる。
As shown in FIGS. 7 and 8, in the main board 31 and the payout control board 371, the return signal is
It is input to the reset terminals of the CPU 56 and the payout control CPU 371 via the AND circuits 161 and 385.
Therefore, the system reset is applied to the CPU 56 and the payout control CPU 371. As a result, the CPU 56 and the payout control CPU 371 can get out of the loop state.

【0123】なお、図15(B)には、カウンタ971
のカウントアップ後に、直ちに復帰信号が出力される場
合が示されているが、図13に示されたように電源基板
910には遅延回路974があるので、主基板31のC
PU56に対する復帰信号の供給タイミングは、払出制
御用CPU371に対する復帰信号の供給タイミングよ
りも遅れる。すなわち、通常の電力供給開始時にリセッ
ト信号が与えられる場合と同様に、遊技制御手段のリセ
ット解除タイミングは、払出制御手段のリセット解除タ
イミングに対して遅れる。よって、復帰信号によって制
御動作が復旧する場合も、遊技制御手段は、他の電気部
品制御手段に対して、遅れて起動されることになる。
Note that the counter 971 is shown in FIG.
Although the case where the return signal is output immediately after the count-up is performed, the power supply board 910 has the delay circuit 974 as shown in FIG.
The supply timing of the return signal to the PU 56 is delayed from the supply timing of the return signal to the payout control CPU 371. That is, the reset release timing of the game control means is delayed with respect to the reset release timing of the payout control means, as in the case where the reset signal is given at the start of normal power supply. Therefore, even when the control operation is restored by the return signal, the game control means will be activated later than the other electric component control means.

【0124】図16および図17は、この実施の形態に
おける出力ポートの割り当てを示す説明図である。図1
6に示すように、出力ポート0は各電気部品制御基板に
送出される制御コマンドのINT信号の出力ポートであ
る。また、払出制御基板37に送出される払出制御コマ
ンドの8ビットのデータは出力ポート1から出力され、
図柄制御基板80に送出される表示制御コマンドの8ビ
ットのデータは出力ポート2から出力され、ランプ制御
基板35に送出されるランプ制御コマンドの8ビットの
データは出力ポート3から出力される。そして、図17
に示すように、音制御基板70に送出される音制御コマ
ンドの8ビットのデータは出力ポート4から出力され
る。
FIG. 16 and FIG. 17 are explanatory views showing the allocation of output ports in this embodiment. Figure 1
As shown in FIG. 6, the output port 0 is an output port for 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.

【0125】また、出力ポート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.

【0126】図17に示すように、払出制御基板37、
図柄制御基板80、ランプ制御基板35および音制御基
板70に対して出力される各INT信号(払出制御信号
INT、表示制御信号INT、ランプ制御信号INTお
よび音声制御信号INT)を出力する出力ポート(出力
ポート0)と、払出制御信号CD0〜CD7、表示制御
信号CD0〜CD7、ランプ制御信号CD0〜CD7お
よび音声制御信号CD0〜CD7を出力する出力ポート
(出力ポート1〜4)とは、別ポートである。
As shown in FIG. 17, 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.

【0127】従って、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 the INT signal is output, 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.

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

【0129】次に遊技機の動作について説明する。図1
9は、主基板31における遊技制御手段(CPU56お
よびROM,RAM等の周辺回路)が実行するメイン処
理を示すフローチャートである。遊技機に対して電源が
投入され、リセット端子の入力レベルがハイレベルにな
ると、CPU56は、ステップS1以降のメイン処理を
開始する。メイン処理において、CPU56は、まず、
必要な初期設定を行う。
Next, the operation of the gaming machine will be described. Figure 1
9 is a flowchart showing 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.

【0130】初期設定処理において、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 CTC (counter / timer) and PIO (parallel input / output port) which are built-in devices (built-in peripheral circuits) (step S5), the RAM is set to the accessible state (step S6).

【0131】この実施の形態で用いられる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.

【0132】この実施の形態で用いられている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.

【0133】割込モード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.

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

【0135】割込モード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 from the internal 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.

【0136】よって、割込モード2に設定されると、各
内蔵デバイスからの割込要求を容易に処理することが可
能になり、また、プログラムにおける任意の位置に割込
処理を設置することが可能になる。さらに、割込モード
1とは異なり、割込発生要因毎のそれぞれの割込処理を
用意しておくことも容易である。上述したように、この
実施の形態では、初期設定処理のステップS2におい
て、CPU56は割込モード2に設定される。
Therefore, when the interrupt mode 2 is set, it becomes possible to easily process the interrupt request from each built-in device, and the interrupt processing 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.

【0137】次いで、CPU56は、入力ポート1を介
して入力されるクリアスイッチ921の出力信号の状態
を1回だけ確認する(ステップS7)。その確認におい
てオンを検出した場合には、CPU56は、通常の初期
化処理を実行する(ステップS11〜ステップS1
5)。クリアスイッチ921がオンである場合(押下さ
れている場合)には、ローレベルのクリアスイッチ信号
が出力されている。なお、入力ポート1では、クリアス
イッチ信号のオン状態はハイレベルである(図18参
照)。また、例えば、遊技店員は、クリアスイッチ92
1をオン状態にしながら遊技機に対する電力供給を開始
することによって、容易に初期化処理を実行させること
ができる。すなわち、RAMクリア等を行うことができ
る。
Next, the CPU 56 confirms only once the state of the output signal of the clear switch 921 input through the input port 1 (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. 18). 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.

【0138】クリアスイッチ921がオンの状態でない
場合には、遊技機への電力供給が停止したときにバック
アップRAM領域のデータ保護処理(例えばパリティデ
ータの付加等の電力供給停止時処理)が行われたか否か
確認する(ステップS8)。この実施の形態では、電力
供給の停止が生じた場合には、バックアップRAM領域
のデータを保護するための処理が行われている。そのよ
うな保護処理が行われていた場合をバックアップありと
する。そのような保護処理が行われていないことを確認
したら、CPU56は初期化処理を実行する。
If the clear switch 921 is not in the ON state, the data protection processing of the backup RAM area (for example, processing when power supply is stopped 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.

【0139】この実施の形態では、バックアップRAM
領域にバックアップデータがあるか否かは、電力供給停
止時処理においてバックアップRAM領域に設定される
バックアップフラグの状態によって確認される。この例
では、図20に示すように、バックアップフラグ領域に
「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. 20, 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).

【0140】バックアップありを確認したら、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.

【0141】電力供給停止時処理において、上記の処理
と同様の処理によってチェックサムが算出され、チェッ
クサムはバックアップ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.

【0142】チェック結果が正常であれば、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.

【0143】このように、バックアップフラグとチェッ
クサム等のチェックデータとを用いてバックアップ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.

【0144】また、バックアップフラグの状態によって
「バックアップあり」が確認されなかった場合には、後
述する遊技状態復旧処理を行うことなく後述する初期化
処理を行うようにしているので、バックアップデータが
存在しないのにもかかわらず遊技状態復旧処理が実行さ
れてしまうことを防止することができ、初期化処理によ
って制御状態を初期状態に戻すことが可能となる。
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 restoration 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.

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

【0146】初期化処理では、CPU56は、まず、R
AMクリア処理を行う(ステップS11)。また、所定
の作業領域(例えば、普通図柄判定用乱数カウンタ、普
通図柄判定用バッファ、特別図柄左中右図柄バッファ、
特別図柄プロセスフラグ、払出コマンド格納ポインタ、
賞球中フラグ、球切れフラグ、払出停止フラグなど制御
状態に応じて選択的に処理を行うためのフラグ)に初期
値を設定する作業領域設定処理を行う(ステップS1
2)。
In the initialization process, 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).

【0147】さらに、CPU56は、所定の払出禁止条
件が成立しているか否かを判定し(ステップS13
a)、払出禁止条件が成立していなければ、球払出装置
97からの払出が可能であることを指示する払出許可状
態指定コマンド(以下、払出可能状態指定コマンドとい
う。)を払出制御基板37に対して送信する処理を行う
(ステップS13b)。なお、払出禁止条件が成立して
いれば、主基板31の制御状態を払出禁止状態に設定す
る。本例では、球切れフラグを球切れ状態を示す状態
(オン状態)とするとともに、満タンフラグを下皿満タ
ンを示す状態(オン状態)とすることで、主基板31の
制御状態を払出禁止状態に設定する。払出禁止条件は、
例えば球切れ状態となっている場合や下皿満タン状態と
なっている場合など、払い出すべき遊技球を払い出すこ
とができないおそれがある場合や遊技球を払い出すこと
が適当でない場合に成立する。従って、ステップS13
aでは、例えば、球切れスイッチ187による検出状態
の確認や、満タンスイッチ48による検出状態の確認が
行われる。なお、ステップS13aの判定処理が実行さ
れる段階では後述するタイマ割込の設定が行われていな
いため、ソフトウェアタイマによるウエイト処理などに
よって監視時間(例えば2ms)を作成し、後述するス
イッチの状態を監視する処理(ステップS150〜ステ
ップS159)と同様の処理を実行することで、その監
視時間毎に球切れスイッチ187や満タンスイッチ48
の状態を監視してスイッチがオンしたか否かを判定する
ようにすればよい。
Further, the CPU 56 determines whether or not a predetermined payout prohibition condition is satisfied (step S13).
a), if the payout prohibition condition is not satisfied, a payout permission state designation command (hereinafter referred to as a payable state designation command) for instructing that the payout from the ball payout device 97 is possible is given to the payout control board 37. A process of transmitting the same is performed (step S13b). If the payout prohibition condition is satisfied, the control state of the main board 31 is set to the payout prohibition state. In this example, the out-of-ball flag is set to the out-of-ball state (on state), and the full tank flag is set to the down-bottom full tank state (on state), so that the control state of the main board 31 is prohibited. Set to state. Withdrawal prohibition conditions are
For example, it is established when there is a possibility that the game ball that should be paid out cannot be paid out, or when it is not appropriate to pay out the game ball, such as when the ball is out or the bottom plate is full To do. Therefore, step S13
In a, for example, confirmation of the detection state by the out-of-ball switch 187 and confirmation of the detection state by the full tank switch 48 are performed. At the stage where the determination process of step S13a is executed, the timer interrupt described later is not set, so the monitoring time (for example, 2 ms) is created by the wait process by the software timer, and the state of the switch described later is set. By executing the same processing as the processing to be monitored (steps S150 to S159), the out-of-ball switch 187 and the full-tank switch 48 are monitored every monitoring time.
It is only necessary to monitor the state of and determine whether or not the switch is turned on.

【0148】また、CPU56は、他のサブ基板(ラン
プ制御基板35、音制御基板70、図柄制御基板80)
を初期化するための初期化コマンドを各サブ基板に送信
する処理を実行する(ステップS14)。初期化コマン
ドとして、可変表示装置9に表示される初期図柄を示す
コマンド(図柄制御基板80に対して)や賞球ランプ5
1および球切れランプ52の消灯を指示するコマンド
(ランプ制御基板35に対して)等がある。
Further, the CPU 56 is another sub board (lamp control board 35, sound control board 70, symbol control board 80).
A process of transmitting an initialization command for initializing the sub board to each sub-board is executed (step S14). As the initialization command, a command indicating the initial symbol displayed on the variable display device 9 (for the symbol control board 80) and the prize ball lamp 5
1 and a command (to the lamp control board 35) for instructing to turn off the out-of-bulb lamp 52.

【0149】初期化処理では、払出制御基板37に対し
て、払出禁止条件が成立していない場合に払出可能状態
指定コマンドが送信され、払出禁止条件が成立している
場合に払出禁止状態指定コマンド(以下、払出禁止状態
指定コマンドという。)は送信されない。仮に、遊技機
の状態が球払出装置97からの払出が可能でない状態
(払出禁止条件が成立している状態)であった場合であ
っても、払出制御基板37における初期化処理にて払出
禁止状態に設定されているはずなので問題はない。な
お、払出可能状態指定コマンドおよび他のサブ基板に対
する初期化コマンドの送信処理において、例えば、各コ
マンドが設定されているテーブル(ROM領域)のアド
レスをポインタにセットし、後述するコマンドセット処
理(図42参照)のような処理ルーチンをコールすれば
よい。
In the initialization processing, a payable state designation command is transmitted to the payout control board 37 when the payout prohibition condition is not satisfied, and is issued when the payout prohibition condition is satisfied. (Hereinafter, referred to as a payout prohibition state designation command.) Is not transmitted. Even if the state of the gaming machine is the state in which the payout from the ball payout device 97 is not possible (the state in which the payout prohibition condition is satisfied), the payout is prohibited by the initialization process in the payout control board 37. It should be set to the state, so there is no problem. In the process of transmitting the payable state designation command and the initialization command to other sub-boards, for example, the address of the table (ROM area) in which each command is set is set in the pointer, and the command setting process described later (Fig. 42)).

【0150】そして、2ms毎に定期的にタイマ割込が
かかるようにCPU56に設けられているCTCのレジ
スタの設定が行われる(ステップS15)。すなわち、
初期値として2msに相当する値が所定のレジスタ(時
間定数レジスタ)に設定される。
Then, the register of the CTC provided in the CPU 56 is set so that the timer interrupt is periodically applied 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).

【0151】初期化処理の実行(ステップ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.

【0152】なお、表示用乱数更新処理が実行されると
きには割込禁止状態とされるのは、表示用乱数更新処理
が後述するタイマ割込処理でも実行されることから、タ
イマ割込処理における処理と競合してしまうのを避ける
ためである。すなわち、ステップS17の処理中にタイ
マ割込が発生してタイマ割込処理中で表示用乱数を発生
するためのカウンタのカウント値を更新してしまったの
では、カウント値の連続性が損なわれる場合がある。し
かし、ステップS17の処理中では割込禁止状態にして
おけば、そのような不都合が生ずることはない。
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.

【0153】表示用乱数更新処理における更新値には、
例えば、リフレッシュレジスタ(Rレジスタ)によって
特定される値が用いられる。Rレジスタは、ダイナミッ
クRAMを用いる場合にリフレッシュカウンタとして使
用されるレジスタであり、CPU56は、そのようなR
レジスタを内蔵している。また、Rレジスタは、CPU
56が命令フェッチを行う毎にインクリメントされる。
この場合、CPU56は、変動パターン決定用乱数等を
更新する場合にRレジスタの値(1バイト)を参照し、
所定の上位ビットをマスクし、残りの下位ビットデータ
を更新値(表示用乱数を発生するためのカウンタのカウ
ント値に加算される値)として用いる。具体的には、左
図柄更新用の乱数が0〜11の範囲で更新される場合で
あって、加算される更新値として0〜7の範囲の数値が
用いられる場合には、左図柄更新用の乱数を更新すると
きに、Rレジスタの下位3ビットのデータを用いるよう
にする。Rレジスタの下位3ビットのデータによって、
0〜7のランダム値を得ることができるので、簡単な構
成でランダム値を更新値とすることができる。また、命
令フェッチのタイミングと表示用乱数更新処理の実行タ
イミングとは同期しないので、Rレジスタの下位ビット
を乱数の更新値として用いることにより、表示用乱数を
発生するためのカウンタのカウント値をランダムな値に
することができ、出現する表示図柄や変動パターンのラ
ンダム性を向上させることができる。また、Rレジスタ
の機能を利用するので、プログラム構成が単純化され、
機種変更などに柔軟に対応できるようになる。さらに、
上位ビットをマスクして使用するので、マスクする範囲
を変更することで、複数の更新範囲の乱数の更新に対応
できる。
The update value in the display random number update processing is
For example, the value specified by the refresh register (R register) is used. The R register is a register used as a refresh counter when the dynamic RAM is used, and the CPU 56 uses such R register.
It has a built-in register. The R register is the CPU
It is incremented each time 56 fetches an instruction.
In this case, the CPU 56 refers to the value (1 byte) of the R register when updating the random number for determining the fluctuation pattern and the like,
A predetermined upper bit is masked, and the remaining lower bit data is used as an updated value (value added to the count value of the counter for generating the display random number). Specifically, when the random number for updating the left symbol is updated in the range of 0 to 11, when the numerical value in the range of 0 to 7 is used as the updated value to be added, for the left symbol updating When updating the random number of, the lower 3 bits of data of the R register are used. Depending on the lower 3 bits of data in the R register,
Since a random value of 0 to 7 can be obtained, the random value can be used as the update value with a simple configuration. Further, since the instruction fetch timing and the display random number update processing execution timing are not synchronized, the count value of the counter for generating the display random number is randomized by using the lower bit of the R register as the update value of the random number. It can be set to any value, and it is possible to improve the randomness of the display pattern and the variation pattern that appear. Further, since the function of the R register is used, the program configuration is simplified,
It will be possible to flexibly respond to model changes. further,
Since the upper bits are masked and used, it is possible to deal with updating random numbers in a plurality of update ranges by changing the masked range.

【0154】図21は、遊技状態復旧処理の一例を示す
フローチャートである。遊技状態復旧処理において、C
PU56は、まず、スタックポインタの復帰処理を行う
(ステップS81)。スタックポインタの値は、後で詳
述する電力供給停止時処理において、所定のRAMエリ
ア(電源バックアップされている作業領域におけるスタ
ックポインタ退避バッファ)に退避している。よって、
ステップS81では、そのRAMエリアの値をスタック
ポインタに設定することによって復帰させる。具体的に
は、RAMエリアに退避しているスタック領域のアドレ
スを示すデータ(スタックアドレスデータ)がスタック
ポインタに設定される。なお、復帰されたスタックポイ
ンタが指す領域(すなわちスタック領域)には、電力供
給が停止したときのレジスタ値やプログラムカウンタ
(PC)の値が退避している。
FIG. 21 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. Specifically, data indicating the address of the stack area saved in the RAM area (stack address data) is set in the stack pointer. 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.

【0155】次いで、CPU56は、払出禁止状態であ
ったか否か確認する(ステップS82)。払出禁止状態
であったか否かは、電源バックアップされているRAM
エリアに保存されている所定の作業領域(例えば、普通
図柄判定用乱数カウンタ、普通図柄判定用バッファ、特
別図柄左中右図柄バッファ、特別図柄プロセスフラグ、
払出コマンド格納ポインタ、確変フラグ、賞球中フラ
グ、球切れフラグ、満タンフラグ、払出停止フラグな
ど)における払出状態データとしての払出停止フラグに
よって確認される。払出停止フラグは、球切れフラグま
たは満タンフラグのいずれか一方がオン状態となったと
きにオン状態となり、球切れフラグおよび満タンフラグ
の双方がオフしたときにオフ状態となる。払出禁止状態
であった場合には、主基板31の制御状態を払出禁止状
態に設定する。本例では、球切れフラグを球切れ状態を
示す状態(オン状態)とするとともに、満タンフラグを
下皿満タンを示す状態(オン状態)とすることで、主基
板31の制御状態を払出禁止状態に設定する。
Next, the CPU 56 confirms whether or not the payout is prohibited (step S82). Whether or not the payout is prohibited 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 probability change flag, the award ball flag, the out-of-ball flag, the full tank flag, the payout stop flag, etc.) is confirmed. The payout stop flag is turned on when either the out-of-ball flag or the full tank flag is turned on, and is turned off when both the out-of-ball flag and the full tank flag are turned off. If it is in the payout prohibition state, the control state of the main board 31 is set to the payout prohibition state. In this example, the out-of-ball flag is set to the out-of-ball state (on state), and the full tank flag is set to the down-bottom full tank state (on state), so that the control state of the main board 31 is prohibited. Set to state.

【0156】払出禁止状態でなかった場合には、払出制
御手段に対して払出が可能であることを指示する払出制
御コマンド(払出可能状態指定コマンド)に関するコマ
ンド送信テーブルをセットし(ステップS83)、コマ
ンドセット処理をコールする(ステップS84)。ステ
ップS83では、払出可能状態指定コマンドの払出制御
コマンドが格納されているコマンド送信テーブル(RO
M)の先頭アドレスが、コマンド送信テーブルのアドレ
スとして設定される。払出可能状態指定コマンドに関す
るコマンド送信テーブルには、後述するINTデータ、
払出制御コマンドの1バイト目のデータ、および払出制
御コマンドの2バイト目のデータが設定されている。な
お、ステップS84のコール命令によって、ステップS
81にて復帰されているスタックポインタがインクリメ
ントされ、そのスタックポインタが指すスタック領域
に、実行されていたプログラムのアドレスデータ(プロ
グラムアドレスデータ)が退避される。そして、コール
命令にもとづくコマンドセット処理を終えると、スタッ
クポインタが指しているスタック領域に退避されている
アドレスデータ(プログラムアドレスデータ)にもとづ
いて、コマンドセット処理をコールしたときのアドレス
にリターンする。
If it is not in the payout prohibition state, a command transmission table relating to a payout control command (payout possible state designation command) for instructing the payout control means that the payout is possible is set (step S83). A command set process is called (step S84). In step S83, the command transmission table (RO
The start address of M) is set as the address of the command transmission table. The command transmission table relating to the payable state designation command includes 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. In addition, according to the call instruction of step S84,
The stack pointer restored at 81 is incremented, and the address data (program address data) of the program being executed is saved in the stack area pointed to by the stack pointer. Then, when the command set processing based on the call instruction is completed, it returns to the address at the time of calling the command set processing based on the address data (program address data) saved in the stack area pointed to by the stack pointer.

【0157】なお、ステップS82にて払出禁止状態で
あった場合には払出の停止を指示する払出制御コマンド
(払出禁止状態指定コマンド)は送信されないが、払出
制御基板37における復旧処理(図50参照)にて払出
禁止状態に設定されているはずなので問題はない。
When the payout prohibition state is determined in step S82, the payout control command (payout prohibition state designation command) for instructing the stop of the payout is not transmitted, but the recovery process in the payout control board 37 (see FIG. 50). There should be no problem because it is supposed to be in the payout prohibition state in).

【0158】補給球の不足や余剰球受皿4の満タンにつ
いて払出制御手段は認識できないので、遊技制御手段か
ら通知しないと、停電等からの復旧時に、補給球の不足
や余剰球受皿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 ball 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, when the supply ball is insufficient or the surplus ball receiving tray 4 is not full, a payout control command instructing that the payout is possible in the game state recovery process is transmitted, and the payout control command is issued. Since the payout control means does not execute the payout processing unless it receives a message, the payout control means starts the payout processing for the game balls even if the supply balls are insufficient or the surplus ball receiving tray 4 is full. There is no end. The processing executed by the payout control means will be described later in detail.

【0159】次いで、CPU56は、電力供給が停止し
たときの可変表示装置9における特別図柄の表示状態に
応じて、その表示状態を復旧させるための表示制御コマ
ンドに関するコマンド送信テーブルをセットし(ステッ
プS85)、コマンドセット処理をコールする(ステッ
プS86)。ステップS85では、表示状態を復旧させ
るための表示制御コマンドが格納されているコマンド送
信テーブル(ROM)の先頭アドレスが、コマンド送信
テーブルのアドレスとして設定される。表示状態を復旧
させるための表示制御コマンドに関するコマンド送信テ
ーブルには、後述するINTデータ、払出制御コマンド
の1バイト目のデータ、および払出制御コマンドの2バ
イト目のデータが設定されている。
Then, the CPU 56 sets a command transmission table relating to a display control command for restoring the display state according to the display state of the special symbol on the variable display device 9 when the power supply is stopped (step S85). ), And a command set process is called (step S86). In step S85, the head address of the command transmission table (ROM) that stores the display control command for restoring the display state is set as the address of the command transmission table. In the command transmission table regarding the display control command for restoring the display state, INT data, the first byte data of the payout control command, and the second byte data of the payout control command are set, which will be described later.

【0160】ステップS85でセットされる表示制御コ
マンドには、復旧後に可変表示装置9に表示させる特別
図柄を指定する左中右の図柄指定コマンドが含まれる。
例えば電力供給が停止したときに特別図柄が変動中であ
った場合には、その変動後の最終停止図柄を指定する図
柄指定コマンドに関するコマンド送信テーブルがセット
され、また、例えば電力供給が停止したときに特別図柄
が停止中であった場合には、前回の図柄変動における最
終停止図柄を指定する図柄指定コマンドに関するコマン
ド送信テーブルがセットされる。表示制御用CPU10
1は、電力供給が開始されたあとに左中右の図柄指定コ
マンドを受信すると、図柄変動中の表示状態に復旧した
場合には、その図柄変動が終了したあと受信した図柄指
定コマンドに応じて確定図柄(最終停止図柄)を表示す
る。また、図柄停止中の表示状態に復旧した場合には、
所定の表示タイミングで受信した図柄指定コマンドに応
じた確定図柄(前回の図柄変動における確定図柄)を表
示する。上記のように、電力供給が開始された場合に、
可変表示装置9の表示状態を電源断前の状態から再開さ
せることができるようになる。
The display control commands set in step S85 include a symbol designating command for left, middle and right for designating a special symbol to be displayed on the variable display device 9 after restoration.
For example, if the special symbol is fluctuating when the power supply is stopped, the command transmission table for the symbol designating command that designates the final stop symbol after the fluctuation is set, and, for example, when the power supply is halted. If the special symbol is stopped, the command transmission table regarding the symbol designating command for designating the final stopped symbol in the previous symbol fluctuation is set. Display control CPU 10
1, when receiving the symbol designating command of the left middle right after the power supply is started, when the display state during symbol variation is restored, depending on the symbol designating command received after the symbol variation ends Display the finalized design (final stop design). In addition, when the display is restored while the symbols are stopped,
A fixed symbol (determined symbol in the last symbol change) corresponding to the symbol designating command received at a predetermined display timing is displayed. As mentioned above, when the power supply is started,
The display state of the variable display device 9 can be restarted from the state before the power supply was cut off.

【0161】また、ステップS85でセットされる表示
制御コマンドには、確変状態であることを図柄表示基板
80に通知するための表示制御コマンド(例えば確変状
態指定コマンド)が含まれる。例えば、バックアップさ
れていた確変フラグがオン状態であった場合には、ステ
ップS85にて確変状態であることを示す表示制御コマ
ンドに関するコマンド送信テーブルがセットされる。な
お、確変フラグは、高確率状態(大当りが発生しやすい
状態)に制御されているときにオン状態とされ、通常状
態(大当りが発生する確率が高確率でない状態)に制御
されているときはオフ状態とされるフラグであり、バッ
クアップRAM領域に記憶されている。表示制御用CP
U101は、確変状態指定コマンドを受信すると、確変
時の表示態様(例えば背景の色を確変時の色にする)で
表示するように、可変表示装置9の表示制御を行う。上
記のように、電力供給が開始された場合に、可変表示装
置9の表示状態を電源断前の状態から再開させることが
できるようになる。
Further, the display control command set in step S85 includes a display control command (for example, a probability variation state designation command) for notifying the symbol display board 80 of the probability variation state. For example, if the backed up probability variation flag is in the ON state, the command transmission table relating to the display control command indicating the probability variation state is set in step S85. The probability variation flag is turned on when being controlled to a high probability state (a state in which a big hit is likely to occur), and is set to a normal state (a state where the probability of a big hit is not a high probability). This flag is turned off and is stored in the backup RAM area. CP for display control
Upon receiving the probability variation state designation command, the U 101 performs display control of the variable display device 9 so as to display in the display mode at the time of the probability variation (for example, the background color is changed to the color at the time of the probability variation). As described above, when the power supply is started, the display state of the variable display device 9 can be restarted from the state before the power was turned off.

【0162】次に、CPU56は、2ms毎に定期的に
タイマ割込がかかるようにCPU56に設けられている
CTCのレジスタの設定を行う(ステップS87)。す
なわち、初期値として2msに相当する値が所定のレジ
スタ(時間定数レジスタ)に設定される。このように、
サブ基板に対して制御状態を復旧させるためのコマンド
を送信した直後にタイマ割込の設定を行うので、主基板
31とサブ基板とで同期をとることが容易となる。
Next, the CPU 56 sets the register of the CTC provided in the CPU 56 so that the timer interrupt is periodically applied every 2 ms (step S87). That is, a value corresponding to 2 ms as an initial value is set in a predetermined register (time constant register). in this way,
Since the timer interrupt is set immediately after transmitting the command for restoring the control state to the sub-board, it becomes easy to synchronize the main board 31 and the sub-board.

【0163】その後、CPU56は、バックアップフラ
グをクリアする(ステップS88)すなわち、前回の電
力供給停止時に所定の記憶保護処理が実行されたことを
示すフラグをリセットする。よって、制御状態の復旧後
に不必要な情報が残存しないようにすることができる。
また、スタック領域から各種レジスタの退避値を読み出
して、各種レジスタ(IXレジスタ、HLレジスタ、D
Eレジスタ、BCレジスタ)に設定する(ステップS8
9)。すなわち、レジスタ復元処理を行う。なお、各レ
ジスタが復元させる毎に、スタックポインタの値が減ら
される。すなわち、スタックポインタの値が、スタック
領域の1つ前のアドレスを指すように更新される。そし
て、パリティフラグがオンしていない場合には割込許可
状態にする(ステップS90,S91)。最後に、AF
レジスタ(アキュミュレータとフラグのレジスタ)をス
タック領域から復元する(ステップS92)。
After that, the CPU 56 clears the backup flag (step S88), that is, resets the flag indicating that a predetermined storage protection process has been 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 S8)
9). 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 S90 and S91). Finally, AF
The registers (accumulator and flag registers) are restored from the stack area (step S92).

【0164】そして、RET命令が実行される。RET
命令が実行されるときには、CPU56は、スタックポ
インタが指す領域に格納されているデータをプログラム
カウンタに設定することによってプログラムのリターン
動作を実現する。ただし、ここでのリターン先は、遊技
状態復旧処理をコールした部分ではない。なぜなら、ス
テップS81においてスタックポインタの復帰処理がな
され、ステップS92でレジスタの復元処理が終了した
後では、スタック領域を指すスタックポインタは、NM
Iによる電力供給停止時処理が開始されたときに実行さ
れていたプログラムのアドレスが退避している領域を指
している。すなわち、復帰されたスタックポインタが指
すスタック領域に格納されているリターンアドレスは、
プログラムにおける前回の電力供給停止時にNMIが発
生したアドレスである。従って、ステップS92の次の
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 S92 returns to the address where the NMI occurred when the power supply was stopped. That is, in this example, the recovery control is executed based on the address data (program address data) saved in the stack area.

【0165】上記のように、遊技状態を復旧させるため
の制御コマンドを送信する前に、スタックポインタを復
帰する構成としているので、コマンドを送信するための
処理(コマンドセット処理)をサブルーチンとすること
ができ、そのサブルーチンをコールすることで遊技状態
を復旧させるための制御コマンドの送信処理を実行する
ことができるようになる。
As described above, since the stack pointer is restored before transmitting the control command for restoring the game state, the process for transmitting the command (command set process) should be a subroutine. It is possible to perform the transmission process of the control command for restoring the game state by calling the subroutine.

【0166】スタックポインタを復帰する前の状態にお
いては、スタックポインタは電源投入時に設定される所
定の値(例えば0000(H)やFFFF(H))とな
っている。従って、スタックポインタを復帰することな
くサブルーチンのコール命令を行うと、スタックポイン
タの値が取り得る最高値(例えばFFFF(H))を指
していた場合には、コール命令にもとづくスタックポイ
ンタの内容のインクリメントを行うことができないとい
う不具合が発生し得る。また、スタックポインタがスタ
ック領域のアドレスを指しているとは限らない(ROM
54の領域を指している可能性もある)ので、プログラ
ムカウンタの内容のスタックを行うことができないとい
う不具合も発生し得る。さらに、コール命令にもとづい
てプログラムカウンタの内容をスタックすることによっ
て、RAM55にバックアップ記憶されているデータが
消去(上書きによる消去)されてしまうという不具合も
考えられる。
In the state before the stack pointer is restored, the stack pointer has a predetermined value (for example, 0000 (H) or FFFF (H)) set when the power is turned on. Therefore, if the call instruction of the subroutine is executed without returning the stack pointer, and if the value of the stack pointer is pointing to the maximum possible value (eg FFFF (H)), the contents of the stack pointer based on the call instruction are changed. A problem that the increment cannot be performed may occur. Also, the stack pointer does not always point to the address of the stack area (ROM
(There is a possibility that it is pointing to the area of 54)), so that the problem that the contents of the program counter cannot be stacked may occur. Further, by stacking the contents of the program counter on the basis of the call command, the data backed up and stored in the RAM 55 may be erased (erased by overwriting).

【0167】しかし、本例では、上述したようにコマン
ドを送信する処理を実行する前にスタックポインタを復
帰するようにしているので、サブルーチン処理によって
遊技状態を復旧させるための制御コマンドの送信処理を
実行することができる。従って、遊技制御に用いられる
プログラム容量を減らすことができ、ROM54の必要
容量を低減させることができる。また、CPU56が、
遊技状態復旧処理を効率よく行うことができるようにな
る。
However, in this example, since the stack pointer is restored before executing the processing for transmitting the command as described above, the transmission processing of the control command for restoring the game state by the subroutine processing is performed. Can be executed. Therefore, the program capacity used for game control can be reduced, and the required capacity of the ROM 54 can be reduced. In addition, the CPU 56
It becomes possible to efficiently perform the game state restoration processing.

【0168】タイマ割込が発生すると、CPU56は、
レジスタの退避処理(ステップS20)を行った後、図
22に示すステップS21〜S32の遊技制御処理を実
行する。ステップS20でのレジスタの退避処理では、
実行されていたプログラムのアドレスデータ(プログラ
ムアドレスデータ)をスタックポインタが指すスタック
領域に退避する処理も実行される。そして、遊技制御処
理を実行したあとのレジスタ復帰処理(ステップS3
3)にて、スタック領域に退避しているアドレスデータ
にもとづいて、タイマ割込が発生したときのアドレスに
復帰する。遊技制御処理において、CPU56は、ま
ず、スイッチ回路58を介して、ゲートスイッチ32
a、始動口スイッチ14a、カウントスイッチ23およ
び入賞口スイッチ29a,30a,33a,39a等の
スイッチの検出信号を入力し、それらの状態判定を行う
(スイッチ処理:ステップS21)。
When a timer interrupt occurs, the CPU 56
After performing the register save process (step S20), the game control process of steps S21 to S32 shown in FIG. 22 is executed. In the register saving processing in step S20,
A process of saving the address data (program address data) of the program being executed to the stack area pointed to by the stack pointer is also executed. Then, the register restoration process after executing the game control process (step S3
At 3), based on the address data saved in the stack area, the address at the time when the timer interrupt occurred is restored. In the game control process, the CPU 56 first causes the gate switch 32 via the switch circuit 58.
The detection signals of switches such as a, the starting port switch 14a, the count switch 23, and the winning port switches 29a, 30a, 33a, and 39a are input, and their states are determined (switch processing: step S21).

【0169】次いで、パチンコ遊技機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).

【0170】次に、遊技制御に用いられる大当り判定用
の乱数等の各判定用乱数を生成するための各カウンタの
カウント値を更新する処理を行う(ステップ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).

【0171】さらに、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.

【0172】次いで、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 a 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).

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

【0174】また、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.

【0175】そして、CPU56は、入賞口スイッチ2
9a,30a,33a,39aの検出信号にもとづく賞
球個数の設定などを行う賞球処理を実行する(ステップ
S32)。具体的には、入賞口スイッチ29a,30
a,33a,39aがオンしたことにもとづく入賞検出
に応じて、払出制御基板37に賞球個数を示す払出制御
コマンドを出力する。払出制御基板37に搭載されてい
る払出制御用CPU371は、賞球個数を示す払出制御
コマンドに応じて球払出装置97を駆動する。その後、
CPU56は、レジスタの内容を復帰させ(ステップS
33)、割込許可状態に設定する(ステップ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 CPU 56 restores the contents of the register (step S
33), and the interrupt permission state is set (step S34).

【0176】以上の制御によって、この実施の形態で
は、遊技制御処理は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.

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

【0178】電力供給停止時処理において、CPU56
は、AFレジスタ(アキュミュレータとフラグのレジス
タ)を所定のバックアップRAM領域に退避する(ステ
ップS451)。また、割込フラグをパリティフラグに
コピーする(ステップS452)。パリティフラグはバ
ックアップRAM領域に形成されている。また、BCレ
ジスタ、DEレジスタ、HLレジスタ、IXレジスタお
よびスタックポインタをバックアップRAM領域に退避
する(ステップS454〜S458)。なお、電源復旧
時には、退避された内容にもとづいてレジスタ内容が復
元され、パリティフラグの内容に応じて、割込許可状態
/禁止状態の内部設定がなされる。なお、S458では
スタックポインタが退避されるが、さらに詳しく言え
ば、スタックポインタに設定されているスタック領域の
アドレスを示すデータ(スタックアドレスデータ)がバ
ックアップRAM領域に退避される。
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. Although the stack pointer is saved in S458, more specifically, data indicating the address of the stack area set in the stack pointer (stack address data) is saved in the backup RAM area.

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

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

【0181】上記のように、各出力ポートがオフ状態に
なるので、保存される遊技状態と整合しない状況が発生
することは確実に防止される。つまり、パチンコ遊技機
のように可変入賞球装置を有している遊技機において、
実装の関係上、可変入賞球装置における可変入賞口の位
置と入賞を検出する入賞口スイッチの設置位置とを、あ
る程度離さざるを得ない。出力ポート、特に可変入賞球
装置を開放状態にするための信号が出力される出力ポー
トを直ちにオフ状態にしないと、電力供給停止時に、可
変入賞口に入賞したにもかかわらず、電力供給停止時処
理の実行が開始されて入賞口スイッチの検出がなされな
い状況が起こりうる。その場合、可変入賞口に入賞があ
ったことは保存されない。すなわち、実際に生じている
遊技状態(入賞があったこと)と保存される遊技状態と
が整合しない。しかし、この実施の形態では、出力ポー
トがクリアされて可変入賞球装置が閉じられるので、保
存される遊技状態と整合しない状況が発生することは確
実に防止される。
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.

【0182】また、電気部品の駆動が不能になる状態に
なる前に実行される電力供給停止時処理の際に、出力ポ
ートをクリアすることができるので、電気部品の駆動が
不能になる状態となる前に遊技制御手段によって制御さ
れる各電気部品を、適切な動作停止状態にすることがで
きる。例えば、開放中の大入賞口を閉成させ、また開放
中の可変入賞球装置15を閉成させるなど、電気部品に
ついての作動を停止させたあとに電気部品の駆動が不能
になる状態とすることができる。従って、適切な停止状
態で電力供給の復旧を待つことが可能となる。
In addition, since the output port can be cleared during the power supply stoppage processing 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.

【0183】さらに、電力供給停止時処理の際に、各電
気部品を動作停止状態にするので、各電気部品を駆動す
るために電力が費やされることがなくなり、また、出力
ポートからの信号出力に用いられる電流が遮断されるの
で、微量ではあるが電力消費を抑えることができる。
Further, since the operation of each electric component is stopped during the power supply stop process, no electric power is consumed to drive each electric component, and a 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.

【0184】さらに、この実施の形態では、所定期間
(以下、払出確認期間という)、賞球カウントスイッチ
301Aの検出信号をチェックする。そして、賞球カウ
ントスイッチ301Aがオンしたら総賞球数バッファの
内容を1減らす。
Further, in this embodiment, the detection signal of the prize ball count switch 301A is checked for a predetermined period (hereinafter referred to as the payout confirmation period). When the prize ball count switch 301A is turned on, the content of the total prize ball count buffer is decremented by one.

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

【0186】払出確認期間を計測するために、CPU5
6の内蔵タイマを用いてもよい。すなわち、スイッチ検
出処理開始時に、内蔵タイマに所定値(払出確認期間に
相当)を設定しておく。そして、スイッチ検出処理のル
ープが1回実行される毎に、内蔵タイマのカウント値を
チェックする。そして、カウント値が0になったら、払
出確認期間が終了したとする。内蔵タイマの値が0にな
ったことを検出するために内蔵タイマによる割込を用い
ることもできるが、この段階では制御内容(RAMに格
納されている各値など)を変化させないように、割込を
用いず、内蔵タイマのカウント値を読み出してチェック
するようなプログラム構成の方が好ましい。
In order to measure the payout confirmation period, the CPU 5
A built-in timer of 6 may be used. That is, a predetermined value (corresponding to the payout confirmation 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 payout confirmation period has ended. 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.

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

【0188】遊技制御手段において貸し球の払出検出を
行う場合にも、同様にして、払出確認期間が設定され
る。すなわち、遊技球が、球払出装置97から落下した
時点(例えば図5に示すスプロケット292の下方の球
通路293a,293bに送り出された時点)から、球
貸しカウントスイッチ301Bに到達するまでの時間以
上に設定される。従って、球払出装置97から球貸しカ
ウントスイッチ301Bまでの距離をLとすると、その
間の落下時間tは、やはりt=√(2L/g)(g:重
力加速度)になるので、払出確認期間はそれ以上に設定
される。この場合にも、払出確認期間の具体的な値は距
離Lの値や、落下時間tからどの程度余裕を持たせるか
によって異なるが、例えば100[ms]〜150[m
s]程度とされる。
Even when the game control means detects the payout of the loan ball, the payout confirmation period is set in the same manner. That is, from the time when the game ball falls from the ball payout device 97 (for example, when the game ball is delivered to the ball passages 293a and 293b below the sprocket 292 shown in FIG. 5) to the ball lending count switch 301B or more. Is set to. Therefore, if the distance from the ball payout device 97 to the ball lending count switch 301B is L, the fall time t during that time is still t = √ (2L / g) (g: gravity acceleration). It is set higher than that. Also in this case, the specific value of the payout confirmation period varies depending on the value of the distance L and how much margin is provided from the fall time t, but for example, 100 [ms] to 150 [m]
s].

【0189】なお、球払出装置97から賞球カウントス
イッチ301Aまでの距離と貸し球カウントスイッチ3
01Bまでの距離とが異なる場合には、球払出装置97
からの距離が離れているスイッチの距離にもとづいて払
出確認期間を定めるようにすればよい。
The distance from the ball payout device 97 to the prize ball count switch 301A and the loan ball count switch 3
If the distance to 01B is different, the ball payout device 97
The payout confirmation period may be determined based on the distance of the switch away from.

【0190】少なくとも、スイッチ検出処理が実行され
る払出確認期間では、賞球カウントスイッチ301Aが
遊技球を検出できる状態でなければならない。そこで、
この実施の形態では、図11に示されたように、電源基
板910におけるコンバータIC920の入力側に比較
的大容量の補助駆動電源としてのコンデンサ923が接
続されている。よって、遊技機に対する電力供給停止時
にも、ある程度の期間は+12V電源電圧がスイッチ駆
動可能な範囲に維持され、賞球カウントスイッチ301
Aが動作可能になる。その期間が、上記の払出確認期間
以上になるように、コンデンサ923の容量が決定され
る。
At least during the payout confirmation 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. 11, a relatively large-capacity capacitor 923 as an auxiliary drive power supply is connected to the input side of converter IC 920 in power supply substrate 910. 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 301
A becomes operational. The capacity of the capacitor 923 is determined so that the period is equal to or longer than the payout confirmation period.

【0191】なお、入力ポートおよび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.

【0192】上記のように、この例では、払出確認期間
計測用カウンタに初期値mが設定される(ステップS4
66)。また、ステップS467において、2ms計測
用カウンタに2msの時間に相当する初期値nが設定さ
れる。そして、2ms計測用カウンタの値が0になるま
で(ステップS468)、2ms計測用カウンタの値が
−1される(ステップS469)。
As described above, in this example, the payout confirmation period measuring counter is set to the initial value m (step S4).
66). Also, in step S467, the 2 ms measurement counter is set to the initial value n corresponding to the time of 2 ms. Then, the value of the 2 ms measurement counter is decremented by 1 until the value of the 2 ms measurement counter becomes 0 (step S468) (step S469).

【0193】2ms計測用カウンタの値が0になると、
賞球カウントスイッチ301Aの検出信号の入力チェッ
クが行われる。すなわち、後述するスイッチ処理および
スイッチチェック処理に類似した処理が行われる。具体
的には、入力ポート1に入力されているデータを入力す
る(ステップS470)。次いで、クリアデータ(0
0)をセットする(ステップS471)。また、ポート
入力データ、この場合には入力ポート1からの入力デー
タを「比較値」として設定する(ステップS472)。
さらに、賞球カウントスイッチ301Aのためのスイッ
チタイマのアドレスをポインタにセットする(ステップ
S473)。
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 S470). Then, clear data (0
0) is set (step S471). Further, the port input data, in this case, the input data from the input port 1 is set as the "comparison value" (step S472).
Further, the address of the switch timer for the prize ball count switch 301A is set in the pointer (step S473).

【0194】そして、ポインタ(スイッチタイマのアド
レスが設定されている)が指すスイッチタイマをロード
するとともに(ステップS474)、比較値を右(上位
ビットから下位ビットへの方向)にシフトする(ステッ
プS475)。比較値には入力ポート1のデータ設定さ
れている。そして、この場合には、賞球カウントスイッ
チ301Aの検出信号がキャリーフラグに押し出され
る。
Then, the switch timer pointed by the pointer (the address of the switch timer is set) is loaded (step S474), and the comparison value is shifted to the right (direction from the upper bit to the lower bit) (step S475). ). 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.

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

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

【0197】次いで、払出確認期間計測用カウンタの値
を−1し(ステップS485)、その値が0になってい
なければステップS467に戻る。
Next, the value of the payout confirmation period measuring counter is decremented by 1 (step S485), and if the value is not 0, the process returns to step S467.

【0198】以上の処理によって、払出確認期間内に賞
球カウントスイッチ301Aがオンしたら、総賞球数格
納バッファの値が−1される。バックアップRAMの内
容を保存するための処理は、このようなスイッチ検出処
理の後で行われるので、払出が完了した賞球について、
必ず総賞球数格納バッファが−1される。従って、遊技
球の払出に関して、保存される制御状態に矛盾が生じて
しまうことが防止される。また、スイッチ検出処理にお
いて、遊技機外部への賞球情報出力のための賞球情報出
力回数カウンタの演算も行われるので、外部に出力され
る賞球情報と実際の払出賞球数とが食い違ってしまうよ
うなこともない。
Through the above processing, when the prize ball count switch 301A is turned on within the payout confirmation period, the value of the total prize ball number storage buffer is decremented by one. Since the process for saving the contents of the backup RAM is performed after such a switch detection process,
The total prize ball number storage buffer is always decremented by one. 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.

【0199】また、上記のスイッチ検出処理では、検出
期間用カウンタを用いたタイマ処理が施されている。す
なわち、2ms毎に賞球カウントスイッチ301Aの検
出出力のチェックが行われ、2回連続してオン検出した
場合に、賞球カウントスイッチ301Aが確実にオンし
たと見なされる。すなわち、所定の遊技媒体検出判定期
間(電力供給停止時処理において、遊技媒体(ここでは
払い出された賞球)の検出の有無を判定するための期
間。本例では、2ms以上の期間)の前後に2回連続し
てオン検出した場合に、1個の賞球の払出が完了したと
見なされる。このように、本例では、遊技媒体検出判定
期間を、通常遊技媒体検出判定期間(電力供給停止時処
理での処理でない、通常の遊技状態において遊技媒体の
有無を判定するための期間。本例では、後述するスイッ
チオン判定値(図35参照)によって決定される2ms
以上の期間であって、後述する図33のステップS18
8の判断で用いられている。)と同じ期間としている。
従って、通常の制御と同一の条件の下で、賞球カウント
スイッチ301Aがオンしたか否かを判定することがで
きる。また、通常の制御と同一の条件の下、同一の処理
によって賞球カウントスイッチ301Aがオンしたか否
かを判定するので、電力供給停止時処理でのスイッチ検
出の処理モジュールと、通常の制御におけるスイッチ検
出の処理モジュール(図29の処理や図30の処理を含
む図22のステップS21の処理モジュール)を、共通
の処理モジュールとすることができる。すなわち、通常
の制御におけるスイッチ検出の処理モジュールを、電力
供給停止時処理でのスイッチ検出の際に利用することが
できる。なお、遊技媒体検出判定期間は、通常遊技媒体
検出判定期間と異なる期間としてもよい。上記のよう
に、2回連続してオン検出した場合に、賞球カウントス
イッチ301Aが確実にオンしたと見なされるようにし
ているため、誤ってスイッチオン検出がなされてしまう
ことが防止され、払い出された賞球を確実に検出するこ
とが可能となる。
Further, in the above switch detection processing, timer processing using a 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. 35) described later.
In the above period, step S18 of FIG.
It is used in the judgment of 8. ) 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. Further, it is determined whether or not the prize ball count switch 301A is turned on by the same processing under the same conditions as in the normal control, so that the switch detection processing module in the power supply stop processing and the normal control The switch detection processing module (the processing module of step S21 of FIG. 22 including the processing of FIG. 29 and the processing of FIG. 30) can be a common processing module. That is, the switch detection processing module in the normal control can be used for the switch detection in the power supply stop processing. The game medium detection determination period may be different from the normal game medium detection determination period. As described above, when the ON detection is performed twice consecutively, the prize ball count switch 301A is considered to be surely turned ON. Therefore, the switch ON detection is prevented from being erroneously performed, and the payout is prevented. It is possible to reliably detect the prize ball that has been put out.

【0200】なお、この実施の形態では、賞球カウント
スイッチ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 start winning opening switch, the V winning switch 22 related to the special winning opening, and the count switch. 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.

【0201】払出確認期間が経過すると(ステップS4
86)、すなわち、払出確認期間計測用カウンタの値が
0になると、バックアップあり指定値(この例では「5
5H」)をバックアップフラグにストアする(ステップ
S487)。バックアップフラグはバックアップRAM
領域に形成されている。次いで、パリティデータを作成
する(ステップS488〜S497)。すなわち、ま
ず、クリアデータ(00)をチェックサムデータエリア
にセットし(ステップS488)、チェックサム算出開
始アドレスをポインタにセットする(ステップS48
9)。また、チェックサム算出回数をセットする(ステ
ップS490)。
When the payout confirmation period elapses (step S4
86), that is, when the value of the payout confirmation period measuring counter becomes 0, the backup designated value (in this example, “5
5H ”) is stored in the backup flag (step S487). Backup flag is backup RAM
Is formed in the area. Next, parity data is created (steps S488 to S497). That is, first, clear data (00) is set in the checksum data area (step S488), and the checksum calculation start address is set in the pointer (step S48).
9). Also, the number of checksum calculations is set (step S490).

【0202】そして、チェックサムデータエリアの内容
とポインタが指すRAM領域の内容との排他的論理和を
演算する(ステップS491)。演算結果をチェックサ
ムデータエリアにストアするとともに(ステップS49
2)、ポインタの値を1増やし(ステップS493)、
チェックサム算出回数の値を1減算する(ステップS4
94)。ステップS491〜S494の処理が、チェッ
クサム算出回数の値が0になるまで繰り返される(ステ
ップS495)。
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 S491). The calculation result is stored in the checksum data area (step S49).
2), increment the pointer value by 1 (step S493),
The value of the checksum calculation count is subtracted by 1 (step S4
94). The processes of steps S491 to S494 are repeated until the value of the checksum calculation count becomes 0 (step S495).

【0203】チェックサム算出回数の値が0になった
ら、CPU56は、チェックサムデータエリアの内容の
各ビットの値を反転する(ステップS496)。そし
て、反転後のデータをチェックサムデータエリアにスト
アする(ステップS497)。このデータが、電源投入
時にチェックされるパリティデータとなる。次いで、R
AMアクセスレジスタにアクセス禁止値を設定する(ス
テップS498)。以後、内蔵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 S496). Then, the inverted data is stored in the checksum data area (step S497). 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 S498). After that, the built-in RAM 55 cannot be accessed.

【0204】そして、RAMアクセスレジスタにアクセ
ス禁止値を設定すると、CPU56は、待機状態(ルー
プ状態)に入る。従って、システムリセットされるま
で、何もしない状態になる。
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.

【0205】この実施の形態では、遊技制御処理におい
て用いられるデータが格納されるRAM領域は全て電源
バックアップされている。従って、その内容が正しく保
存されているか否かを示すチェックサムの生成処理、お
よびその内容を書き換えないようにするためのRAMア
クセス防止処理が、遊技状態を保存するための処理に相
当する。
In this embodiment, the RAM area in which the data used in the game control processing is stored is backed up by 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.

【0206】なお、この実施の形態では、NMIに応じ
て電力供給停止時処理が実行されたが、電源断信号をC
PU56のマスク可能端子に接続し、マスク可能割込処
理によって電力供給停止時処理を実行してもよい。ま
た、電源断信号を入力ポートに入力し、入力ポートのチ
ェック結果に応じて電力供給停止時処理を実行してもよ
い。
In this embodiment, the power supply stoppage process is executed according to the NMI.
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.

【0207】また、この実施の形態では、電源断信号に
応じて起動される処理の最初にレジスタの保存処理が行
われたが、スイッチ検出処理においてレジスタを使用し
ない場合には、スイッチ検出処理の実行後に、すなわ
ち、バックアップフラグの設定とチェックサムの算出の
処理の前にレジスタ保存処理を行うことができる。その
場合には、レジスタ保存処理、バックアップフラグ設定
処理、チェックサム算出処理および出力ポートのオフ設
定処理を電力供給停止時処理と見なすことができる。さ
らに、スイッチ検出処理において幾つかのレジスタを使
用する場合であっても、使用しないレジスタについて
は、バックアップフラグの設定とチェックサムの算出の
処理の前にレジスタ保存処理を行うことができる。
In this embodiment, the register saving process is performed at the beginning of the process activated 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.

【0208】なお、上記の例では、出力ポートのクリア
処理を、スイッチ検出処理の実行前(ステップS466
の前)に行っている。電力供給停止時処理の実行中で
は、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 S466).
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.

【0209】なお、上記の例において、電源が断するこ
とが検出された後に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 period corresponding to the above-mentioned payout confirmation period is a predetermined 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.

【0210】また、出力ポートのクリアによって大入賞
口が閉じた場合でも、大入賞口内に遊技球があることも
考えられるので、電源断信号に応じて実行されるスイッ
チ検出処理において、カウントスイッチ23の検出も行
うことが望ましい。上記の例外的な処理については、第
1種パチンコ遊技機においてのみならず、第2種パチン
コ遊技機や第3種パチンコ遊技機についても同様であ
る。
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 process 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.

【0211】図26は、遊技機への電力供給停止時の電
源電圧低下やNMI信号(=電源断信号:電力供給停止
時信号)の様子を示すタイミング図である。遊技機に対
する電力供給が停止すると、最も高い直流電源電圧であ
るVSLのうちの監視電圧(電源監視用IC902に入力
される電圧)の電圧値は徐々に低下する。そして、この
例では、+22Vにまで低下すると、電源基板910に
搭載されている電源監視用IC902から電源断信号が
出力される(ローレベルになる)。
FIG. 26 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).

【0212】電源断信号は、電気部品制御基板(この実
施の形態では主基板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 receive N signals.
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.

【0213】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.

【0214】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.

【0215】以上のように、この実施の形態では、電源
監視回路は、遊技機で使用される直流電圧のうちで最も
高い電源VSLの電圧を監視して、その電源の電圧が所定
値を下回ったら電圧低下信号(電源断検出信号)を発生
する。図26に示すように、電源断信号が出力されるタ
イミングでは、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. 26, 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.

【0216】なお、ここでは、電源監視回路は、遊技機
で使用される直流電圧のうちで最も高い電源VSLから分
岐された電圧を監視したが、電源断信号を発生するタイ
ミングが、IC駆動電圧で動作する電気部品制御手段が
所定の電力供給停止時処理を行うための動作時間が確保
されるようなタイミングであれば、監視対象電圧は、最
も高い電源VSLの電圧でなくてもよい。すなわち、少な
くともICやソレノイドの駆動電圧よりも高い電圧を監
視すれば、電気部品制御手段が所定の電力供給停止時処
理を行うための動作時間が確保されるようなタイミング
で電源断信号を発生することができる。この例では、ソ
レノイド等の駆動電圧として電源VSLから分岐された電
圧が用いられるが、監視対象電圧が供給されるラインと
は異なり、ソレノイド等に駆動電圧を供給するラインに
大容量のコンデンサ924が接続されているので、ソレ
ノイド等に対する駆動電圧の供給を継続することができ
る所定期間が確保されているタイミングで電源断信号を
発生することができる。
Here, the power supply monitoring circuit monitors the voltage branched from the highest power supply VSL among the DC voltage used in the gaming machine, but the timing of generating the power supply cutoff 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.

【0217】最も高い電源VSL以外の電圧を監視対象電
圧とする場合、上述したように、監視対象電圧は、電力
供給停止時のスイッチオン誤検出の防止も期待できる電
圧であることが好ましい。すなわち、遊技機の各種スイ
ッチに供給される電圧(スイッチ電圧:例えば賞球カウ
ントスイッチ301A、球貸しカウントスイッチ301
B)が+12Vであることから、+12V電源電圧が落
ち始める以前の段階で、電圧低下を検出できることが好
ましい。よって、少なくともスイッチ電圧よりも高い電
圧を監視することが好ましい。
When a voltage other than the highest power source VSL is used as the monitoring target voltage, it is preferable that the monitoring target voltage is a voltage that can be expected to prevent erroneous switch-on detection when power supply is stopped, as described above. That is, the voltage supplied to various switches of the gaming machine (switch voltage: for example, prize ball count switch 301A, ball lending count switch 301
Since B) 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.

【0218】図27は、払出検出手段からの検出信号の
入力処理が実行される様子の一例を示すタイミング図で
ある。この実施の形態では、電源断信号は、主基板31
および払出制御基板37に入力され、主基板31のCP
U56および払出制御用CPU371のNMI端子に入
力される。主基板31のCPU56は、マスク不能割込
処理によって、上述した電力供給停止時処理を実行す
る。
FIG. 27 is a timing chart showing an example of how the process of inputting the detection signal 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.

【0219】図27に示すように、電源断信号がオン
(この例ではハイレベルからローレベルに変化)するあ
たりで賞球払出が実行された場合、払出検出手段からの
検出信号の入力処理が実行される払出確認期間(検出維
持期間)内で賞球カウントスイッチ301Aがオンす
る。従って、電源断信号がオンするあたりで実行された
球払出についても、電力供給停止時処理が実行される際
に、総賞球数バッファに反映することができる。
As shown in FIG. 27, when the prize-ball payout is executed when the power-off signal turns on (in this example, changes from the high level to the low level), the input processing of the detection signal from the payout detection means is performed. The prize ball count switch 301A is turned on within the payout confirmation period (detection maintaining 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.

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

【0221】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.

【0222】なお、払出制御基板37における払出制御
用CPU371も、同様に電力供給停止時処理を行った
後にシステムリセット状態になる。
The payout control CPU 371 in the payout control board 37 also enters the system reset state after performing the power supply stop time process.

【0223】次に、メイン処理におけるスイッチ処理
(ステップS21)の具体例を説明する。この実施の形
態では、各スイッチの検出信号のオン状態が所定時間継
続すると、確かにスイッチがオンしたと判定されスイッ
チオンに対応した処理が開始される。所定時間を計測す
るために、スイッチタイマが用いられる。スイッチタイ
マは、バックアップRAM領域に形成された1バイトの
カウンタであり、検出信号がオン状態を示している場合
に2ms毎に+1される。図28に示すように、スイッ
チタイマは検出信号の数N(クリアスイッチ921の検
出信号を除く)だけ設けられている。この実施の形態で
はN=13である。また、RAM55において、各スイ
ッチタイマのアドレスは、入力ポートのビット配列順
(図18に示された上から下への順)と同じ順序で並ん
でいる。
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. 28, 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. Further, 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. 18).

【0224】図29は、遊技制御処理におけるステップ
S21のスイッチ処理の処理例を示すフローチャートで
ある。なお、スイッチ処理は、図22に示すように遊技
制御処理において最初に実行される。スイッチ処理にお
いて、CPU56は、まず、入力ポート0に入力されて
いるデータを入力する(ステップS101)。次いで、
処理数として「8」を設定し(ステップS102)、入
賞口スイッチ33aのためのスイッチタイマのアドレス
をポインタにセットする(ステップS103)。そし
て、スイッチチェック処理サブルーチンをコールする
(ステップS104)。
FIG. 29 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).

【0225】図30は、スイッチチェック処理サブルー
チンを示すフローチャートである。スイッチチェック処
理サブルーチンにおいて、CPU56は、ポート入力デ
ータ、この場合には入力ポート0からの入力データを
「比較値」として設定する(ステップS121)。ま
た、クリアデータ(00)をセットする(ステップS1
22)。そして、ポインタ(スイッチタイマのアドレス
が設定されている)が指すスイッチタイマをロードする
とともに(ステップS123)、比較値を右(上位ビッ
トから下位ビットへの方向)にシフトする(ステップS
124)。比較値には入力ポート0のデータ設定されて
いる。そして、この場合には、入賞口スイッチ33aの
検出信号がキャリーフラグに押し出される。
FIG. 30 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.

【0226】キャリーフラグの値が「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.

【0227】キャリーフラグの値が「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.

【0228】その後、CPU56は、ポインタ(スイッ
チタイマのアドレス)を1加算するとともに(ステップ
S130)、処理数を1減算する(ステップS13
1)。処理数が0になっていなければステップS122
に戻る。そして、ステップS122〜S132の処理が
繰り返される。
Thereafter, the CPU 56 increments the pointer (address of the switch timer) by 1 (step S130) and decrements the processing number by 1 (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.

【0229】ステップ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 switch detection signal 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.

【0230】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).

【0231】スイッチチェック処理サブルーチンでは、
上述した処理が実行されるので、ステップ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.

【0232】なお、この実施の形態では、遊技制御処理
が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.

【0233】図31〜図33は、遊技制御処理における
ステップS32の賞球処理の一例を示すフローチャート
である。この実施の形態では、賞球処理では、賞球払出
の対象となる入賞口スイッチ33a,39a,29a,
30a、カウントスイッチ23および始動口スイッチ1
4aが確実にオンしたか否か判定されるとともに、オン
したら賞球個数を示す払出制御コマンドが払出制御基板
37に送出されるように制御し、また、満タンスイッチ
48および球切れスイッチ187が確実にオンしたか否
か判定されるとともに、オンしたら所定の払出制御コマ
ンドが払出制御基板37に送出されるように制御する等
の処理が行われる。
31 to 33 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.

【0234】賞球処理において、CPU56は、入力判
定値テーブルのオフセットとして「1」を設定し(ステ
ップS150)、スイッチタイマのアドレスのオフセッ
トとして「9」を設定する(ステップS151)。入力
判定値テーブル(図35参照)のオフセット「1」は、
入力判定値テーブルの2番目のデータ「50」を使用す
ることを意味する。また、各スイッチタイマは、図18
に示された入力ポートのビット順と同順に並んでいるの
で、スイッチタイマのアドレスのオフセット「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 switch timer address (step S151). The offset “1” in the input determination value table (see FIG. 35) is
This means that the second data “50” in the input determination value table is used. Further, 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).

【0235】入力判定値テーブルとは、各スイッチにつ
いて、連続何回のオンが検出されたら確かにスイッチが
オンしたと判定するための判定値が設定されているRO
M領域である。入力判定値テーブルの構成例は図35に
示されている。図35に示すように、入力判定値テーブ
ルには、上から順に、すなわちアドレス値が小さい領域
から順に、「2」、「50」、「250」、「30」、
「250」、「1」の判定値が設定されている。また、
スイッチオンチェックルーチンでは、入力判定値テーブ
ルの先頭アドレスとオフセット値とで決まるアドレスに
設定されている判定値と、スイッチタイマの先頭アドレ
スとオフセット値とで決まるスイッチタイマの値とが比
較され、一致した場合には、例えばスイッチオンフラグ
がセットされる。
The input judgment value table is set with a judgment value for judging whether the switch is surely turned on when the number of times the switch is turned on is detected for each switch.
It is the M region. A configuration example of the input determination value table is shown in FIG. As shown in FIG. 35, 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.

【0236】スイッチオンチェックルーチンの一例が図
34に示されている。スイッチオンチェックルーチンに
おいて、満タンスイッチ48に対応するスイッチタイマ
の値が満タンスイッチオン判定値「50」に一致してい
ればスイッチオンフラグがセットされるので(ステップ
S153)、満タンフラグがセットされる(ステップS
154)。なお、図31には明示されていないが、満タ
ンスイッチ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 clearly shown in FIG. 31, when the value of the switch timer corresponding to the full tank switch 48 becomes 0, the full tank flag is reset.

【0237】また、CPU56は、入力判定値テーブル
のオフセットとして「2」を設定し(ステップS15
5)、スイッチタイマのアドレスのオフセットとして
「0A(H)」を設定する(ステップS156)。入力
判定値テーブルのオフセット「2」は、入力判定値テー
ブルの3番目のデータ「250」を使用することを意味
する。また、各スイッチタイマは、図18に示された入
力ポートのビット順と同順に並んでいるので、スイッチ
タイマのアドレスのオフセット「0A(H)」は球切れ
スイッチ187に対応したスイッチタイマが指定される
ことを意味する。そして、スイッチオンチェックルーチ
ンがコールされる(ステップS157)。
Further, the CPU 56 sets "2" as the offset of the input judgment value table (step S15).
5), "0A (H)" is set as the offset of the switch timer address (step S156). The offset “2” in the input determination value table means that the third data “250” 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. 18, the switch timer address offset “0A (H)” 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 S157).

【0238】スイッチオンチェックルーチンにおいて、
球切れスイッチ187に対応するスイッチタイマの値が
球切れスイッチオン判定値「250」に一致していれば
スイッチオンフラグがセットされるので(ステップS1
58)、球切れフラグがセットされる(ステップS15
9)。なお、図31には明示されていないが、球切れス
イッチ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).
58), the out-of-ball flag is set (step S15).
9). Although not shown in FIG. 31, 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.

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

【0240】いずれかがオン状態に変化したときには、
払出停止フラグをセットするとともに(ステップS16
2)、払出禁止状態指定コマンドに関するコマンド送信
テーブルをセットし(ステップS163)、コマンドセ
ット処理をコールする(ステップS164)。ステップ
S163では、払出禁止状態指定コマンドの払出制御コ
マンドが格納されているコマンド送信テーブル(RO
M)の先頭アドレスが、コマンド送信テーブルのアドレ
スとして設定される。払出禁止状態指定コマンドに関す
るコマンド送信テーブルには、後述するINTデータ、
払出制御コマンドの1バイト目のデータ、および払出制
御コマンドの2バイト目のデータが設定されている。な
お、ステップS161において、いずれか一方のフラグ
が既にオン状態であったときに他方のフラグがオン状態
になったときには、ステップS162〜ステップS16
4の処理は行われない。
[0240] When any of them changes to the ON state,
The payout stop flag is set (step S16).
2) The command transmission table relating to the payout prohibition state designation command is set (step S163), and the command setting process is called (step S164). In step S163, a command transmission table (RO that stores the payout control command of the payout prohibition state designation command).
The start address of M) is set as the address of the command transmission table. The command transmission table relating to the payout prohibition state designation command includes 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. In step S161, when one of the flags is already in the on state and the other flag is in the on state, steps S162 to S16.
The process of 4 is not performed.

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

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

【0243】さらに、CPU56は、入力判定値テーブ
ルのオフセットとして「0」を設定し(ステップS16
9)、スイッチタイマのアドレスのオフセットとして
「0」を設定する(ステップS170)。入力判定値テ
ーブルのオフセット「0」は、入力判定値テーブルの最
初のデータを使用することを意味する。また、各スイッ
チタイマは、図18に示された入力ポートのビット順と
同順に並んでいるので、スイッチタイマのアドレスのオ
フセット「0」は入賞口スイッチ33aに対応したスイ
ッチタイマが指定されることを意味する。また、繰り返
し数として「4」をセットする(ステップS171)。
そして、スイッチオンチェックルーチンがコールされる
(ステップS172)。
Further, the CPU 56 sets "0" as the offset of the input judgment value table (step S16).
9), "0" is set as the offset of the switch timer address (step S170). The offset “0” in the input determination value table means that the first data 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. 18, 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 S171).
Then, the switch-on check routine is called (step S172).

【0244】スイッチオンチェックルーチンにおいて、
CPU56は、入力判定値テーブル(図35参照)の先
頭アドレスを設定する(ステップ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. 35) (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).

【0245】次いで、CPU56は、スイッチタイマの
先頭アドレスを設定し(ステップS284)、そのアド
レスにオフセットを加算し(ステップS285)、加算
後のアドレスからスイッチタイマの値をロードする(ス
テップS286)。各スイッチタイマは、図18に示さ
れた入力ポートのビット順と同順に並んでいるので、ス
イッチに対応したスイッチタイマの値がロードされる。
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. 18, the value of the switch timer corresponding to the switch is loaded.

【0246】そして、CPU56は、ロードしたスイッ
チタイマの値とスイッチオン判定値とを比較する(ステ
ップS287)。それらが一致すれば、スイッチオンフ
ラグをセットする(ステップ228)。
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 228).

【0247】この場合には、スイッチオンチェックルー
チンにおいて、入賞口スイッチ33aに対応するスイッ
チタイマの値がスイッチオン判定値「2」に一致してい
ればスイッチオンフラグがセットされる(ステップS1
73)。そして、スイッチチェックオンルーチンは、ス
イッチタイマのアドレスのオフセットが更新されつつ
(ステップS178)、最初に設定された繰り返し数分
だけ実行されるので(ステップS176,S177)、
結局、入賞口スイッチ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 S1).
73). Then, the switch check-on routine is executed for the number of repetitions set initially (steps S176, S177) while the address offset of the switch timer is updated (step S178).
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”.

【0248】スイッチオンフラグがセットされたら、払
い出すべき賞球個数としての「10」をリングバッファ
に設定する(ステップS174)。そして、総賞球数格
納バッファの格納値(未払出数データ)に10を加算す
る(ステップS175)。なお、リングバッファにデー
タを書き込んだときには、書込ポインタをインクリメン
トし、リングバッファの最後の領域にデータを書き込ま
れたときには、書込ポインタを、リングバッファの最初
の領域を指すように更新する。
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 S174). Then, 10 is added to the value stored in the total prize ball number storage buffer (unpaid amount data) (step S175). 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.

【0249】総賞球数格納バッファは、払出制御手段に
対して指示した賞球個数の累積値(ただし、払い出しが
なされると減算される)が格納されるバッファであり、
バックアップ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.

【0250】次に、CPU56は、入力判定値テーブル
のオフセットとして「0」を設定し(ステップS17
9)、スイッチタイマのアドレスのオフセットとして
「5」を設定する(ステップS180)。入力判定値テ
ーブルのオフセット「0」は、入力判定値テーブルの最
初のデータを使用することを意味する。また、各スイッ
チタイマは、図18に示された入力ポートのビット順と
同順に並んでいるので、スイッチタイマのアドレスのオ
フセット「5」は始動口スイッチ14aに対応したスイ
ッチタイマが指定されることを意味する。そして、スイ
ッチオンチェックルーチンがコールされる(ステップS
181)。
Next, the CPU 56 sets "0" as the offset of the input judgment value table (step S17).
9), "5" is set as the offset of the switch timer address (step S180). 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. 18, the offset "5" of the address of the switch timer specifies the switch timer corresponding to the starting port switch 14a. Means Then, the switch-on check routine is called (step S
181).

【0251】スイッチオンチェックルーチンにおいて、
始動口スイッチ14aに対応するスイッチタイマの値が
スイッチオン判定値「2」に一致していればスイッチオ
ンフラグがセットされる(ステップS182)。スイッ
チオンフラグがセットされたら、払い出すべき賞球個数
としての「6」をリングバッファに設定する(ステップ
S183)。また、総賞球数格納バッファの格納値に6
を加算する(ステップS184)。
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 S182). 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 S183). In addition, the value stored in the total prize ball storage buffer is 6
Is added (step S184).

【0252】次いで、CPU56は、入力判定値テーブ
ルのオフセットとして「0」を設定し(ステップS18
5)、スイッチタイマのアドレスのオフセットとして
「6」を設定する(ステップS186)。入力判定値テ
ーブルのオフセット「0」は、入力判定値テーブルの最
初のデータを使用することを意味する。また、各スイッ
チタイマは、図18に示された入力ポートのビット順と
同順に並んでいるので、スイッチタイマのアドレスのオ
フセット「6」はカウントスイッチ23に対応したスイ
ッチタイマが指定されることを意味する。そして、スイ
ッチオンチェックルーチンがコールされる(ステップS
187)。
Next, the CPU 56 sets "0" as the offset of the input determination value table (step S18).
5), "6" is set as the offset of the switch timer address (step S186). 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. 18, 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
187).

【0253】スイッチオンチェックルーチンにおいて、
カウントスイッチ23に対応するスイッチタイマの値が
スイッチオン判定値「2」に一致していればスイッチオ
ンフラグがセットされる(ステップS188)。スイッ
チオンフラグがセットされたら、払い出すべき賞球個数
としての「15」をリングバッファに設定する(ステッ
プS189)。また、総賞球数格納バッファの格納値に
15を加算する(ステップS190)。
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 S188). 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 S189). In addition, 15 is added to the value stored in the total prize ball storage buffer (step S190).

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

【0255】ステップS194では、賞球個数に関する
払出制御コマンドが格納されているコマンド送信テーブ
ル(ROM)の先頭アドレスが、コマンド送信テーブル
のアドレスとして設定される。賞球個数に関するコマン
ド送信テーブルには、後述するINTデータ(01
(H))、払出制御コマンドの1バイト目のデータ(F
0(H))、および払出制御コマンドの2バイト目のデ
ータが設定されている。ただし、2バイト目のデータと
して「80(H)」が設定されている。
In step S194, the start 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.

【0256】以上のように、遊技制御手段から払出制御
基板37に賞球個数を指示する払出制御コマンドを出力
しようとするときに、賞球個数に関するコマンド送信テ
ーブルのアドレス設定と送信バッファの設定とが行われ
る。そして、コマンドセット処理によって、賞球個数に
関するコマンド送信テーブルと送信バッファの設定内容
とにもとづいて払出制御コマンドが払出制御基板37に
送出される。なお、ステップS191において、書込ポ
インタと読出ポインタとの差によってデータがあるか否
か確認することができるが、リングバッファ内の未処理
のデータ個数を示すカウンタを設け、カウント値によっ
てデータがあるか否か確認するようにしてもよい。
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 S191, it is possible to confirm whether or not there is data by the difference between the write pointer and the read pointer. You may confirm whether or not.

【0257】そして、総賞球数格納バッファの内容が0
でない場合、すなわち、まだ賞球残がある場合には、C
PU56は、賞球払出中フラグをオンする(ステップS
196,S197)。
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
196, S197).

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

【0259】なお、払出制御手段は、払出禁止状態指定
コマンドを受信すると、賞球としての球払出と球貸しと
しての球払出とをともに停止させる。また、払出可能状
態指定コマンドを受信すると、賞球としての球払出と球
貸しとしての球払出とをともに可能な状態とする。しか
し、遊技制御手段から払出制御手段に対して、賞球とし
ての球払出を停止または再開させる払出制御コマンド
と、球貸しとしての球払出を停止または再開させる払出
制御コマンドとを、別の制御コマンドとして送信するよ
うにしてもよい。
Upon receipt of the payout prohibition 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.

【0260】また、この実施の形態では、払出停止中で
あっても(ステップS160,S165)、ステップS
169〜S195の処理が実行される。すなわち、遊技
制御手段は、払出禁止状態であっても、賞球個数を指示
するための払出制御コマンドを送出することができる。
すなわち、賞球個数を指示するためのコマンドが、払出
禁止状態であっても払出制御手段に伝達され、払出禁止
状態が解除されたときに、早めに賞球払出を開始するこ
とができる。また、遊技制御手段において、払出禁止状
態における入賞にもとづく賞球個数を記憶するための大
きな記憶領域は必要とされない。
Further, in this embodiment, even when the payout is stopped (steps S160 and S165), the step S is performed.
The processing of 169 to S195 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 prohibited state.
That is, the command for instructing the number of prize balls is transmitted to the payout control means even in the payout prohibited state, and when the payout prohibited 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 prohibition state.

【0261】さらに、この実施の形態では、遊技媒体の
払出状況とは無関係に、ステップS169〜S195の
処理が実行される。すなわち、遊技制御手段は、前回ま
でに指定した賞球個数の払い出しが完了しているか否か
に関わらず、新たな賞球個数を指示するための払出制御
コマンドを送信することができる。よって、遊技制御手
段の払い出しに関する処理負担を軽減させることができ
るとともに、賞球の払出処理を迅速に行うことができ
る。
Further, in this embodiment, the processing of steps S169 to S195 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.

【0262】次に、遊技制御手段から各電気部品制御手
段に対する制御コマンドの送出方式について説明してお
く。遊技制御手段から他の電気部品制御基板(サブ基
板)に制御コマンドを出力しようとするときに、コマン
ド送信テーブルの先頭アドレスの設定が行われる。図3
6(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. 6A 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.

【0263】なお、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.

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

【0265】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 a lamp control command and a 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.

【0266】この実施の形態では、払出制御コマンドに
ついて、図36(C)に示すように、リングバッファお
よび送信バッファが用意されている。そして、賞球処理
において、賞球払出条件が成立すると、成立した条件に
応じた賞球個数が順次リングバッファに設定される。ま
た、賞球個数に関する払出制御コマンド送出する際に、
リングバッファから1個のデータが送信バッファに転送
される。なお、図36(C)に示す例では、リングバッ
ファには、12個分の払出制御コマンドに相当するデー
タが格納可能になっている。すなわち、12個のバッフ
ァがある。なお、リングバッファにおけるバッファの数
は、賞球を発生させる入賞口の数に対応した数であれば
よい。同時入賞が発生した場合でも、それぞれの入賞に
もとづく払出制御コマンドのデータの格納が可能だから
である。
In this embodiment, for the payout control command, a ring buffer and a transmission buffer are prepared as shown in FIG. 36 (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. 36C, 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.

【0267】図37は、主基板31から他の電気部品制
御基板に送出される制御コマンドのコマンド形態の一例
を示す説明図である。この実施の形態では、制御コマン
ドは2バイト構成であり、1バイト目はMODE(コマ
ンドの分類)を表し、2バイト目はEXT(コマンドの
種類)を表す。MODEデータの先頭ビット(ビット
7)は必ず「1」とされ、EXTデータの先頭ビット
(ビット7)は必ず「0」とされる。このように、電気
部品制御基板へのコマンドとなる制御コマンドは、複数
のデータで構成され、先頭ビットによってそれぞれを区
別可能な態様になっている。なお、図37に示されたコ
マンド形態は一例であって他のコマンド形態を用いても
よい。例えば、1バイトや3バイト以上で構成される制
御コマンドを用いてもよい。また、図37では払出制御
基板37に送出される払出制御コマンドを例示するが、
他の電気部品制御基板に送出される制御コマンドも同一
構成である。
FIG. 37 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. Note that the command form shown in FIG. 37 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. 37 exemplifies 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.

【0268】図38は、各電気部品制御手段に対する制
御コマンドを構成する8ビットの制御信号CD0〜CD
7とINT信号との関係を示すタイミング図である。図
38に示すように、MODEまたはEXTのデータが出
力ポート(出力ポート1〜出力ポート4のうちのいずれ
か)に出力されてから、Aで示される期間が経過する
と、CPU56は、データ出力を示す信号であるINT
信号をハイレベル(オンデータ)にする。また、そこか
らBで示される期間が経過するとINT信号をローレベ
ル(オフデータ)にする。さらに、次に送出すべきデー
タがある場合には、すなわち、MODEデータ送出後で
は、Cで示される期間をおいてから2バイト目のデータ
を出力ポートに送出する。2バイト目のデータに関し
て、A,Bの期間は、1バイト目の場合と同様である。
このように、取込信号はMODEおよびEXTのデータ
のそれぞれについて出力される。
FIG. 38 is an 8-bit control signal CD0-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. 38, when the period indicated by A has elapsed since the MODE or EXT data was output to the output port (any one of the output ports 1 to 4), the CPU 56 outputs the data. INT which is the 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.

【0269】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 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.

【0270】この実施の形態では、払出制御基板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.

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

【0272】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.

【0273】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 when a predetermined period of time has elapsed after executing the INT signal output process, but during the predetermined period (B and C periods), the 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.

【0274】図39は、払出制御コマンドの内容の一例
を示す説明図である。本例では、払出制御を実行するた
めに、複数種類の払出制御コマンドが用いられる。図3
9に示された例において、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. 39 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. 9, 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 prohibition state designation command) for instructing that the payout should be prohibited. 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.

【0275】払出制御手段は、主基板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.

【0276】なお、払出制御コマンドは、払出制御手段
が認識可能に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).

【0277】各電気部品制御基板への制御コマンドを、
対応する出力ポート(出力ポート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.

【0278】図40は、図柄制御基板80に送出される
表示制御コマンドの内容の一例を示す説明図である。図
40に示す例において、コマンド8000(H)〜80
XX(H)(X=4ビットの任意の値)は、特別図柄を
可変表示する可変表示装置9における特別図柄の変動パ
ターンを指定する表示制御コマンドである。なお、変動
パターンを指定するコマンドは変動開始指示も兼ねてい
る。
FIG. 40 is an explanatory diagram showing an example of the contents of the display control command sent to the symbol control board 80. In the example shown in FIG. 40, commands 8000 (H) -80
XX (H) (X = any value of 4 bits) is a display control command that specifies a variation pattern of the special symbol in the variable display device 9 that variably displays the special symbol. The command for designating the variation pattern also serves as a variation start instruction.

【0279】コマンド8F00(H)および8F01
(H)は、電源投入時に送出される特別図柄電源投入時
指定コマンド(初期表示態様コマンドの一例)および普
通図柄電源投入時指定コマンド(初期表示態様コマンド
の一例)である。初期表示態様コマンドは、電源供給開
始時に可変表示装置9に表示させる識別情報の態様(初
期表示態様)を指示するとともに、その初期表示態様の
表示を指示するためのコマンドである。具体的には、初
期表示態様コマンドは、例えば、初期表示態様を示すデ
ータはキャラクタROM86の所定の領域に保存されて
いること、およびキャラクタROM86の所定の領域か
ら初期表示態様を示すデータを読み出して可変表示装置
9に表示させることを指示するコマンドである。なお、
初期表示態様コマンドは、例えば、初期表示態様は
「7」、「8」、「9」の特別図柄であること、および
その初期表示態様を可変表示装置9に表示させることを
指示するコマンドであるとされていてもよい。なお、普
通図柄電源投入時指定コマンドは、表示制御手段が普通
図柄変動制御を行う場合に用いられ、普通図柄表示器1
0がランプ制御手段で制御される場合には、図柄制御基
板80には送出されない。表示制御手段は、特別図柄電
源投入時指定コマンドを受信すると、初期表示を行う制
御を開始する。
Commands 8F00 (H) and 8F01
(H) is a special symbol power-on designation command (an example of an initial display mode command) and a normal symbol power-on designation command (an example of an initial display mode command) that are sent out when the power is turned on. The initial display mode command is a command for instructing the mode (initial display mode) of the identification information to be displayed on the variable display device 9 at the start of power supply, and for instructing the display of the initial display mode. Specifically, the initial display mode command is, for example, that data indicating the initial display mode is stored in a predetermined area of the character ROM 86, and data indicating the initial display mode is read from the predetermined area of the character ROM 86. This is a command for instructing the variable display device 9 to display. In addition,
The initial display mode command is, for example, a command instructing that the initial display mode is a special symbol of “7”, “8”, and “9” and that the initial display mode is displayed on the variable display device 9. May be said. The normal symbol power-on time designation command is used when the display control means performs the normal symbol variation control, and the normal symbol display device 1
When 0 is controlled by the lamp control means, it is not sent to the symbol control board 80. When the display control means receives the special symbol power-on time designation command, it starts the control for initial display.

【0280】コマンド91XX(H)、92XX(H)
および93XX(H)は、特別図柄の左中右の停止図柄
を指定する表示制御コマンドである。また、コマンドA
000(H)は、特別図柄の可変表示の停止を指示する
表示制御コマンド(確定コマンド)である。
Commands 91XX (H), 92XX (H)
And 93XX (H) is a display control command for designating the left middle right stop symbol of the special symbol. Also, command A
000 (H) is a display control command (decision command) for instructing to stop the variable display of special symbols.

【0281】コマンドBXXX(H)は、大当り遊技開
始から大当り遊技終了までの間に送出される表示制御コ
マンドである。コマンドB1XX(H)は、大当り遊技
中における大入賞口の開放回数(ラウンド数)の表示を
指定するための表示制御コマンドである。コマンドB2
00(H)は、大当り遊技が開始されるときに、大当り
遊技の開始を示す表示を指定するための表示制御コマン
ドである。コマンドB2XX(H)(XX=01以上)
は、大当り遊技中における、大入賞口の開放前の表示
(例えば、これから実行されるラウンドが何ラウンド目
であるかを報知する表示)を指定するための表示制御コ
マンドである。コマンドB400(H)は、大当り遊技
中において、所定のタイミングで所定の回数(例えば各
ラウンド間に大当り図柄が表示されるようなタイミング
で、ラウンド数−1回)送出されるコマンドであり、大
当り図柄の表示を指定する表示制御コマンド(大当り図
柄表示コマンド)である。コマンドB500(H)は、
非特定大当り(非確変大当り)が終了したことを示す表
示を指定するための表示制御コマンドである。コマンド
B501(H)は、特定大当り(確変大当り)が終了し
たことを示す表示を指定するための表示制御コマンドで
ある。また、コマンドCXXX(H)は、特別図柄の変
動および大当り遊技に関わらない可変表示装置9の表示
状態に関する表示制御コマンドである。そして、コマン
ドD000(H)〜D400(H)は、普通図柄の変動
パターンに関する表示制御コマンドである。
The command BXXX (H) is a display control command sent from the start of the big hit game to the end of the big hit game. The command B1XX (H) is a display control command for designating the display of the number of times of opening the special winning opening (the number of rounds) during the big hit game. Command B2
00 (H) is a display control command for designating a display indicating the start of the big hit game when the big hit game is started. Command B2XX (H) (XX = 01 or more)
Is a display control command for designating a display before the opening of the special winning opening (for example, a display notifying what round the round to be executed is) during the big hit game. The command B400 (H) is a command to be transmitted a predetermined number of times (for example, a timing at which a big hit symbol is displayed during each round, the number of rounds-1 times) at a predetermined timing during a big hit game. It is a display control command (big hit symbol display command) for designating the display of symbols. Command B500 (H) is
It is a display control command for designating a display indicating that the non-specific big hit (indeterminate big hit) has ended. The command B501 (H) is a display control command for designating a display indicating that the specific big hit (probable variation big hit) has ended. Further, the command CXXX (H) is a display control command concerning the display state of the variable display device 9 which is not related to the variation of the special symbol and the big hit game. Then, the commands D000 (H) to D400 (H) are display control commands related to the variation pattern of the normal symbols.

【0282】図柄制御基板80の表示制御手段は、主基
板31の遊技制御手段から上述した表示制御コマンドを
受信すると図40に示された内容に応じて可変表示装置
9および普通図柄表示器10の表示状態を変更する。
When the display control means of the symbol control board 80 receives the above-mentioned display control command from the game control means of the main board 31, the variable display device 9 and the ordinary symbol display device 10 according to the contents shown in FIG. Change the display status.

【0283】図41は、遊技の制御を行う主基板31か
らランプ制御基板35に送出されるランプ制御コマンド
の内容の一例を示す説明図である。ランプ制御コマンド
もMODEとEXTの2バイト構成である。図41に示
す例において、コマンド80XX(X=4ビットの任意
の値)は、可変表示装置9における特別図柄の変動パタ
ーンに対応したランプ・LED表示制御パターンを指定
するランプ制御コマンドである。また、コマンドA0X
X(H)は、特別図柄の可変表示の停止時のランプ・L
ED表示制御パターンを指示するランプ制御コマンドで
あり、コマンドBXXX(H)は、大当り遊技開始から
大当り遊技終了までの間のランプ・LED表示制御パタ
ーンを指示するランプ制御コマンドである。そして、コ
マンド9001(H)は、客待ちデモンストレーション
時のランプ・LED表示制御パターンを指示するランプ
制御コマンドである。
FIG. 41 is an explanatory diagram showing an example of the contents of the lamp control command sent from the main board 31 for controlling the game to the lamp control board 35. The lamp control command also has a 2-byte structure of MODE and EXT. In the example shown in FIG. 41, the command 80XX (X = any value of 4 bits) is a lamp control command for designating a lamp / LED display control pattern corresponding to the variation pattern of the special symbol in the variable display device 9. Also, the command A0X
X (H) is the lamp / L when the variable display of special symbols is stopped
The ED display control pattern is a lamp control command, and the command BXXX (H) is a lamp / LED display control pattern instruction from the big hit game start to the big hit game end. The command 9001 (H) is a lamp control command for instructing the lamp / LED display control pattern at the customer waiting demonstration.

【0284】なお、コマンド8XXX(H)、9XXX
(H),AXXX(H)、BXXX(H)およびCXX
X(H)は、遊技進行状況に応じて遊技制御手段から送
出されるランプ制御コマンドである。ランプ制御手段
は、主基板31の遊技制御手段から上述したランプ制御
コマンドを受信すると図41に示された内容に応じてラ
ンプ・LEDの表示状態を変更する。なお、コマンド8
XXX(H)、9XXX(H),AXXX(H)、BX
XX(H)およびCXXX(H)は、表示制御コマンド
や音声制御コマンドと例えば共通の制御状態において共
通に用いられる。
It should be noted that the commands 8XXX (H), 9XXX
(H), AXXX (H), BXXX (H) and CXX
X (H) is a lamp control command sent from the game control means according to the game progress status. When the lamp control means receives the above-mentioned lamp control command from the game control means of the main board 31, it changes the display state of the lamp / LED according to the contents shown in FIG. In addition, command 8
XXX (H), 9XXX (H), AXXX (H), BX
XX (H) and CXXX (H) are commonly used with a display control command and a voice control command, for example, in a common control state.

【0285】コマンドE0XX(H)は、始動記憶表示
器18の点灯個数を示すランプ制御コマンドである。例
えば、ランプ制御手段は、始動記憶表示器18における
「XX(H)」で指定される個数の表示器を点灯状態と
する。また、コマンドE1XX(H)は、普通図柄始動
記憶表示器41の点灯個数を示すランプ制御コマンドで
ある。例えば、ランプ制御手段は、普通図柄始動記憶表
示器41における「XX(H)」で指定される個数の表
示器を点灯状態とする。すなわち、それらのコマンド
は、保留個数という情報を報知するために設けられてい
る発光体の制御を指示するコマンドである。なお、始動
記憶表示器18および普通図柄始動記憶表示器41の点
灯個数に関するコマンドが点灯個数の増減を示すように
構成されていてもよい。
The command E0XX (H) is a lamp control command indicating the number of lighting of the start memory indicator 18. For example, the lamp control means turns on the number of displays designated by “XX (H)” in the start memory display 18. Further, the command E1XX (H) is a lamp control command indicating the number of lights of the normal symbol starting memory display 41. For example, the lamp control means normally turns on the number of display devices designated by "XX (H)" in the symbol starting memory display device 41. That is, those commands are commands for instructing the control of the light-emitting body provided for notifying the information of the number of holdings. The command regarding the number of lighting of the starting memory display 18 and the normal symbol starting memory display 41 may be configured to indicate the increase or decrease of the number of lighting.

【0286】コマンドE200(H)およびE201
(H)は、賞球ランプ51の表示状態に関するランプ制
御コマンドであり、コマンドE300(H)およびE3
01(H)は、球切れランプ52の表示状態に関するラ
ンプ制御コマンドである。ランプ制御手段は、主基板3
1の遊技制御手段から「E201(H)」のランプ制御
コマンドを受信すると賞球ランプ51の表示状態を賞球
残がある場合としてあらかじめ定められた表示状態と
し、「E200(H)」のランプ制御コマンドを受信す
ると賞球ランプ51の表示状態を賞球残がない場合とし
てあらかじめ定められた表示状態とする。また、主基板
31の遊技制御手段から「E300(H)」のランプ制
御コマンドを受信すると球切れランプ52の表示状態を
球あり中の表示状態とし、「E301(H)」のランプ
制御コマンドを受信すると球切れランプ52の表示状態
を球切れ中の表示状態とする。すなわち、コマンドE2
00およびE201(H)は、未賞球の遊技球があるこ
とを遊技者等に報知するために設けられている発光体を
制御することを示すコマンドであり、コマンドE300
(H)およびE301(H)は、補給球が切れているこ
とを遊技者や遊技店員に報知するために設けられている
発光体を制御することを示すコマンドである。
Commands E200 (H) and E201
(H) is a lamp control command relating to the display state of the prize ball lamp 51, and includes commands E300 (H) and E3.
01 (H) is a lamp control command related to the display state of the out-of-bulb lamp 52. The lamp control means is the main board 3
When the lamp control command of "E201 (H)" is received from the game control means of No. 1, the display state of the prize ball lamp 51 is changed to a predetermined display state when there is a prize ball remaining, and the lamp of "E200 (H)" is displayed. When the control command is received, the display state of the prize ball lamp 51 is changed to a predetermined display state as when there is no prize ball remaining. When the lamp control command of "E300 (H)" is received from the game control means of the main board 31, the display state of the out-of-ball lamp 52 is changed to the display state with a ball, and the lamp control command of "E301 (H)" is issued. When it is received, the display state of the out-of-ball lamp 52 is changed to the in-bulb display state. That is, the command E2
00 and E201 (H) are commands indicating that a light emitting body provided for notifying a player or the like that there is a non-prize game ball, and a command E300.
(H) and E301 (H) are commands indicating that the light emitters provided for notifying the player or the game clerk that the supply ball has run out are controlled.

【0287】図42は、コマンドセット処理(ステップ
S164,S168,S195)の処理例を示すフロー
チャートである。コマンドセット処理は、コマンド出力
処理とINT信号出力処理とを含む処理である。コマン
ドセット処理において、CPU56は、まず、コマンド
送信テーブルのアドレス(送信信号指示手段としてのポ
インタの内容)をスタック等に退避する(ステップS3
31)。そして、ポインタが指していたコマンド送信テ
ーブルのINTデータを引数1にロードする(ステップ
S332)。引数1は、後述するコマンド送信処理に対
する入力情報になる。また、コマンド送信テーブルを指
すアドレスを+1する(ステップS333)。従って、
コマンド送信テーブルを指すアドレスは、コマンドデー
タ1のアドレスに一致する。
FIG. 42 is a flow chart showing a processing example of the command set processing (steps S164, S168, S195). 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.

【0288】そこで、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).

【0289】図43は、コマンド送信処理ルーチンを示
すフローチャートである。コマンド送信処理ルーチンに
おいて、CPU56は、引数1に設定されているデータ
すなわちINTデータを、比較値として決められている
ワークエリアに設定する(ステップS351)。なお、
コマンド送信中フラグは、コマンド送信処理中であるか
否かを示すフラグであって、RAM55の所定の領域に
記憶されている。次いで、CPU56は、送信回数=4
を、処理数として決められているワークエリアに設定す
る(ステップS352)。そして、払出制御信号を出力
するためのポート1のアドレスをIOアドレスにセット
する(ステップS353)。この実施の形態では、ポー
ト1のアドレスは、払出制御信号を出力するための出力
ポートのアドレスである。また、ポート2〜4のアドレ
スが、表示制御信号、ランプ制御信号、音声制御信号を
出力するための出力ポートのアドレスである。
FIG. 43 is a flow chart showing the command transmission processing routine. In the command transmission processing routine, the CPU 56 sets the data set in the argument 1, that is, the INT data, in the work area determined as the comparison value (step S351). In addition,
The command transmission flag is a flag indicating whether or not command transmission processing is in progress, and is stored in a predetermined area of the RAM 55. Next, the CPU 56 sends 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.

【0290】次に、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.

【0291】キャリービットが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 (that is, 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.

【0292】次いで、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.

【0293】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.

【0294】よって、キャリーフラグが「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.

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

【0296】次に、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.

【0297】次いで、CPU56は、ウェイトカウンタ
に所定値を設定し(ステップS362)、その値が0に
なるまで1ずつ減算する(ステップS363,S36
4)。この処理は、図38に示されたBの期間を設定す
るための処理である。ウェイトカウンタの値が0になる
と、クリアデータ(00)を設定して(ステップS36
5)、そのデータをポート0に出力する(ステップS3
66)。よって、INT信号はローレベルになる。ま
た、ウェイトカウンタに所定値を設定し(ステップS3
62)、その値が0になるまで1ずつ減算する(ステッ
プS368,S369)。この処理は、図38に示され
た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. Further, 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.

【0298】従って、ステップS367でウェイトカウ
ンタに設定される値は、Cの期間が、制御コマンド受信
対象となる全ての電気部品制御手段が確実にコマンド受
信処理を行うのに十分な期間になるような値である。ま
た、ウェイトカウンタに設定される値は、Cの期間が、
ステップS357〜S359の処理に要する時間(Aの
期間に相当)よりも長くなるような値である。なお、A
の期間をより長くしたい場合には、Aの期間を作成する
ためのウェイト処理(例えば、ウェイトカウンタに所定
値を設定し、ウェイトカウンタの値が0になるまで減算
を行う処理)を行う。
Therefore, the value set in the wait counter in step S367 is such 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.

【0299】以上のようにして、制御コマンドの1バイ
ト目のMODEデータが送出される。そこで、CPU5
6は、図42に示すステップS336で、コマンド送信
テーブルを指す値を1加算する。従って、3バイト目の
コマンドデータ2の領域が指定される。CPU56は、
指し示されたコマンドデータ2の内容を引数2にロード
する(ステップS337)。また、コマンドデータ2の
ビット7(ワークエリア参照ビット)の値が「0」であ
るか否か確認する(ステップS338)。0でなけれ
ば、送信バッファの内容を引数2にロードする(ステッ
プS339)。なお、ワークエリア参照ビットの値が
「1」であるときに拡張データを使用するように構成さ
れている場合には、コマンド拡張データアドレステーブ
ルの先頭アドレスをポインタにセットし、そのポインタ
にコマンドデータ2のビット6〜ビット0の値を加算し
てアドレスを算出する。そして、そのアドレスが指すエ
リアのデータを引数2にロードする。
As described above, the 1st byte MODE data of the control command is transmitted. Therefore, CPU5
42. In step S336 shown in FIG. 42, 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 S338). If not 0, the contents of the transmission buffer are loaded into the argument 2 (step S339). 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.

【0300】送信バッファには賞球個数を特定可能なデ
ータが設定されているので、引数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.

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

【0302】以上のようにして、2バイト構成の制御コ
マンド(払出制御コマンド、表示制御コマンド、ランプ
制御コマンド、音制御コマンド)が、対応する電気部品
制御手段に送信される。電気部品制御手段ではINT信
号の立ち上がりを検出すると制御コマンドの取り込み処
理を開始するのであるが、各電気部品制御手段でのコマ
ンド受信処理が完了したあとに終了するように設定され
るウエイト期間(ステップS367〜ステップS369
の処理によって特定される期間:Cの期間の一部)が経
過するまでは新たな信号を出力しないようにしているの
で、いずれの電気部品制御手段についても、取り込み処
理が完了する前に遊技制御手段からの新たな信号が信号
線に出力されることはない。すなわち、各電気部品制御
手段において、確実なコマンド受信処理が行われる。な
お、各電気部品制御手段は、INT信号の立ち下がりで
制御コマンドの取り込み処理を開始してもよい。また、
INT信号の極性を図37に示された場合と逆にしても
よい。
As described above, the 2-byte control command (payout control command, display control command, lamp control command, sound control command) 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. However, the wait period set to end after the command receiving process in each electric component control means (step S367 to step S369
Since a new signal is not output until the period specified by the process of (part of the period of C) elapses, for any electric component control means, the game control is performed before the capture process is completed. No new signal from the means is output to the signal line. That is, a reliable command reception process is performed in each electric component control means. It should be noted that each electric component control means may start the control command acquisition process at the fall of the INT signal. Also,
The polarity of the INT signal may be reversed from that shown in FIG.

【0303】また、この実施の形態では、賞球処理にお
いて、賞球払出条件が成立すると賞球個数を特定可能な
データが、同時に複数のデータを格納可能なリングバッ
ファに格納され、賞球個数を指定する払出制御コマンド
を送出する際に、読出ポインタが指しているリングバッ
ファの領域のデータが送信バッファに転送される。従っ
て、同時に複数の賞球払出条件の成立があっても、それ
らの条件成立にもとづく賞球個数を特定可能なデータが
リングバッファに保存されるので、各条件成立にもとづ
くコマンド出力処理は問題なく実行される。
Further, in this embodiment, in the award ball processing, when the award ball payout condition is satisfied, data capable of specifying the number of award balls is stored in the ring buffer capable of storing a plurality of data at the same time, and 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.

【0304】さらに、この実施の形態では、1回の賞球
処理内で払出禁止状態指定コマンドまたは払出可能状態
指定コマンドと賞球個数を示すコマンドとの双方を送出
することができる。すなわち、2ms毎に起動される1
回の制御期間内において、複数のコマンドを送出するこ
とができる。また、この実施の形態では、各制御手段へ
の制御コマンド(表示制御コマンド、ランプ制御コマン
ド、音制御コマンド、払出制御コマンド)毎に、それぞ
れ複数のリングバッファが用意されているので、例え
ば、表示制御コマンド、ランプ制御コマンドおよび音制
御コマンドのリングバッファに制御コマンドを特定可能
なデータが設定されている場合には、1回のコマンド制
御処理で複数の表示制御コマンド、ランプ制御コマンド
および音制御コマンドを送出するように構成することも
可能である。すなわち、同時に(遊技制御処理すなわち
2msタイマ割込処理の起動周期での意味)、複数の制
御コマンドを送出することができる。遊技演出の進行
上、それらの制御コマンドの送出タイミングは同時に発
生するので、このように構成されているのは便利であ
る。ただし、払出制御コマンドは、遊技演出の進行とは
無関係に発生するので、一般には、表示制御コマンド、
ランプ制御コマンドおよび音制御コマンドと同時に送出
されることはない。
Furthermore, in this embodiment, both the payout prohibition state designation command or the payout possible state designation command and the command indicating the number of prize balls can be sent in one prize 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.

【0305】図44は、賞球個数減算処理の一例を示す
フローチャートである。賞球個数減算処理において、C
PU56は、まず、総賞球数格納バッファの格納値をロ
ードする(ステップS381)。そして、格納値が0で
あるか否か確認する(ステップS382)。0であれば
処理を終了する。
FIG. 44 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.

【0306】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 load value and the ON determination value (in this case, "2") are compared (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).

【0307】また、賞球情報カウンタの値を+1する
(ステップS387)。そして、賞球情報カウンタの値
が10以上であれば(ステップS388)、賞球情報出
力カウンタの値を+1するとともに(ステップS38
9)、賞球情報カウンタの値を−10する(ステップS
390)。なお、賞球情報出力カウンタの値は、図22
に示された遊技制御処理における情報出力処理(ステッ
プS30)で参照され、その値が1以上であれば、賞球
信号(出力ポート5のビット7:図17参照)として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. 17).
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.

【0308】そして、総賞球数格納バッファの格納値が
0になったら(ステップS391)、賞球払出中フラグ
をクリアし(ステップS392)、賞球残数がないこと
を報知するために、ランプ制御コマンド用のコマンド送
信テーブルに賞球ランプ51の消灯を示すコマンドデー
タを設定した後(ステップS393)、ランプ制御コマ
ンドの送出処理を実行する(ステップS394)。
When the value stored in the total prize ball number storage buffer becomes 0 (step S391), the prize ball payout 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).

【0309】次に、遊技制御手段以外の電気部品制御手
段の例として、払出制御手段について説明する。図45
は、払出制御用CPU371周りの一構成例を示すブロ
ック図である。図45に示すように、電源基板910の
電源監視回路(電源監視手段)からの電源断信号が、バ
ッファ回路980を介して払出制御用CPU371のマ
スク不能割込端子(XNMI端子)に接続されている。
従って、払出制御用CPU371は、マスク不能割込処
理によって電源断の発生を確認することができる。ま
た、電源基板910からのリセット信号と復帰信号とは
AND回路385に入力され、AND回路385の出力
が払出制御用CPU371のリセット端子に入力され
る。
Next, the payout control means will be described as an example of the electric component control means other than the game control means. Figure 45
FIG. 3 is a block diagram showing a configuration example around a payout control CPU 371. As shown in FIG. 45, 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 980. There is.
Therefore, the payout control CPU 371 can confirm the occurrence of power failure by the non-maskable interrupt process. The reset signal and the return signal from the power supply board 910 are input to the AND circuit 385, and the output of the AND circuit 385 is input to the reset terminal of the payout control CPU 371.

【0310】払出制御用CPU371のCLK/TRG
2端子には、主基板31からのINT信号が接続されて
いる。CLK/TRG2端子にクロック信号が入力され
ると、払出制御用CPU371に内蔵されているタイマ
カウンタレジスタCLK/TRG2の値がダウンカウン
トされる。そして、レジスタ値が0になると割込が発生
する。従って、タイマカウンタレジスタCLK/TRG
2の初期値を「1」に設定しておけば、INT信号の入
力に応じて割込が発生することになる。なお、INT信
号とは、遊技制御手段から払出制御手段に対する払出制
御コマンドが送出されたことを意味する信号である。払
出制御用CPU371は、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. The INT signal is a signal that means that a payout control command has been sent from the game control means to the payout control means. The payout control CPU 371 starts the payout control command reception process by an interrupt generated in response to the input of the INT signal.

【0311】図46は、この実施の形態における出力ポ
ートの割り当てを示す説明図である。図46に示すよう
に、出力ポートC(アドレス00H)は、払出モータ2
89に出力される駆動信号等の出力ポートである。ま
た、出力ポートD(アドレス01H)は、7セグメント
LEDであるエラー表示LED374に出力される表示
制御信号の出力ポートである。そして、出力ポートE
(アドレス02H)は、振分ソレノイド310に出力さ
れる駆動信号、およびカードユニット50に対するEX
S信号とPRDY信号とを出力するための出力ポートで
ある。
FIG. 46 is an explanatory diagram showing output port allocation in this embodiment. As shown in FIG. 46, 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.

【0312】図47は、この実施の形態における入力ポ
ートのビット割り当てを示す説明図である。図47に示
すように、入力ポートA(アドレス06H)は、主基板
31から送出された払出制御コマンドの8ビットの払出
制御信号を取り込むための入力ポートである。また、入
力ポートB(アドレス07H)のビット0〜1には、そ
れぞれ、賞球カウントスイッチ301Aおよび球貸しカ
ウントスイッチ301Bの検出信号が入力される。ビッ
ト2〜5には、カードユニット50からのBRDY信
号、BRQ信号、VL信号およびクリアスイッチ921
の検出信号が入力される。
FIG. 47 is an explanatory diagram showing bit allocation of input ports in this embodiment. As shown in FIG. 47, the input port A (address 06H) is an input port for taking in 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.

【0313】図48は、払出制御手段(払出制御用CP
U371およびROM,RAM等の周辺回路)のメイン
処理を示すフローチャートである。メイン処理では、払
出制御用CPU371は、まず、必要な初期設定を行
う。すなわち、払出制御用CPU371は、まず、割込
禁止に設定する(ステップS701)。次に、割込モー
ドを割込モード2に設定し(ステップS702)、スタ
ックポインタにスタックポインタ指定アドレスを設定す
る(ステップS703)。また、払出制御用CPU37
1は、内蔵デバイスレジスタの初期化を行い(ステップ
S704)、CTCおよびPIOの初期化(ステップS
705)を行った後に、RAMをアクセス可能状態に設
定する(ステップS706)。
FIG. 48 is a 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).

【0314】この実施の形態では、内蔵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.

【0315】なお、タイマモードに設定されたチャネル
(この実施の形態ではチャネル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.

【0316】また、内蔵CTCのうちの他の一つのチャ
ネル(この実施の形態ではチャネル2)が、遊技制御手
段からの払出制御コマンド受信のための割込発生用のチ
ャネルとして用いられ、そのチャネルがカウンタモード
で使用される。従って、ステップS704の内蔵デバイ
スレジスタの設定処理およびステップS705の処理に
おいて、使用するチャネルをカウンタモードに設定する
ためのレジスタ設定、割込発生を許可するためのレジス
タ設定および割込ベクタを設定するためのレジスタ設定
が行われる。
Further, another one of the built-in CTCs (channel 2 in this embodiment) is used as an interrupt generation channel for receiving the 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.

【0317】カウンタモードに設定されたチャネル(チ
ャネル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.

【0318】この実施の形態では、払出制御用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.

【0319】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.

【0320】また、CTCのチャネル3(CH3)のカ
ウントアップにもとづく割込は、CPUの内部クロック
(システムクロック)をカウントダウンしてレジスタ値
が「0」になったら発生する割込であり、後述する2m
sタイマ割込として用いられる。具体的には、CPU3
71の動作クロックを分周したクロックがCTCに与え
られ、クロックの入力によってレジスタの値が減算さ
れ、レジスタの値が0になるとタイマ割込が発生する。
例えば、CH3のレジスタ値はシステムクロックの1/
256周期で減算される。分周したクロックにもとづい
て減算が行われるので、レジスタの初期値は大きくなら
ない。ステップS705において、CH3のレジスタに
は、初期値として2msに相当する値が設定される。
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. 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.

【0321】CTCのCH2のカウントアップにもとづ
く割込は、CH3のカウントアップにもとづく割込より
も優先順位が高い。従って、同時にカウントアップが生
じた場合に、CH2のカウントアップにもとづく割込、
すなわち、コマンド受信割込処理の実行契機となる割込
の方が優先される。
An interrupt based on CTC CH2 count-up has a higher priority than an interrupt based on CH3 count-up. 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.

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

【0323】なお、払出制御用CPU371も、主基板
31のCPU56と同様に、スイッチの検出信号のオン
判定を行う場合には、例えば、オン状態が少なくとも2
ms(2ms毎に起動される処理の1回目の処理におけ
る検出直前に検出信号がオンした場合)継続しないとス
イッチオンとは見なさないが、クリアスイッチ921の
オン検出の場合には、1回のオン判定でオン/オフが判
定される。すなわち、操作手段としてのクリアスイッチ
921が所定の操作状態であるか否かを払出制御用CP
U371が判定するための初期化要求検出判定期間は、
遊技媒体検出手段としての賞球カウントスイッチ等が遊
技媒体を検出したことを判定するための遊技媒体検出判
定期間とは異なる期間とされている。
Note that, like the CPU 56 of the main board 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.

【0324】クリアスイッチ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.

【0325】バックアップありを確認したら、払出制御
用CPU371は、バックアップRAM領域のデータチ
ェック(この例ではパリティチェック)を行う。不測の
停電等の電力供給の停止が生じた後に復旧した場合に
は、バックアップRAM領域のデータは保存されていた
はずであるから、チェック結果は正常になる。チェック
結果が正常でない場合には、内部状態を電力供給の停止
時の状態に戻すことができないので、不足の停電等から
の復旧時ではなく電源投入時に実行される初期化処理を
実行する。
When it is confirmed that there is a backup, the payout control CPU 371 performs a data check of the backup RAM area (parity check in this example). 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 executed when the power is turned on is executed instead of when the power is restored from an insufficient power failure.

【0326】チェック結果が正常であれば(ステップ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 at the time of stopping the power supply (step S710). Then, it returns to the address pointed to by the PC (program counter) stored in the backup RAM area.

【0327】初期化処理では、払出制御用CPU371
は、まず、RAMクリア処理を行う(ステップS71
1)。そして、2ms毎に定期的にタイマ割込がかかる
ように払出制御用CPU371に設けられているCTC
のレジスタの設定が行われる(ステップS712)。す
なわち、初期値として2msに相当する値が所定のレジ
スタ(時間定数レジスタ)に設定される。また、本例で
は、払出制御用CPU371は、初期状態として払出禁
止状態に設定する(ステップS713)。なお、払出禁
止状態に設定するときには、例えば払出モータ289の
駆動が停止されるとともに払出停止中であることを示す
内部フラグ(払出停止中フラグ)がセットされる。すな
わち、ステップS713では、払い出しが禁止された状
態であることを示すデータ(セットされた払出停止中フ
ラグ)を所定の記憶領域に記憶する処理が実行されてい
る。払出停止中フラグについては、あとで詳しく説明す
る。そして、初期設定処理のステップS701において
割込禁止とされているので、初期化処理を終える前に割
込が許可される(ステップS714)。
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). Further, in this example, the payout control CPU 371 sets the payout prohibition state as an initial state (step S713). When the payout prohibition state is set, for example, the driving of the payout motor 289 is stopped and an internal flag (payout stoppage flag) indicating that the payout is stopped is set. That is, in step S713, a process of storing data indicating that the payout is prohibited (a set payout suspension flag) in a predetermined storage area is executed. The payout suspension flag will be described in detail later. Since the interrupt is prohibited in step S701 of the initialization process, the interrupt is permitted before the initialization process is completed (step S714).

【0328】この実施の形態では、払出制御用CPU3
71の内蔵CTCが繰り返しタイマ割込を発生するよう
に設定される。この実施の形態では、繰り返し周期は2
msに設定される。そして、タイマ割込が発生すると、
図49に示すように、タイマ割込があったことを示すタ
イマ割込フラグがセットされる(ステップS792)。
そして、メイン処理において、タイマ割込フラグがセッ
トされたことが検出されたら(ステップS715)、タ
イマ割込フラグがリセットされるとともに(ステップ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. 49, 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 S715), the timer interrupt flag is reset (step S715).
751), payout control process (steps S751 to S76)
0) is executed.

【0329】なお、タイマ割込では、図49に示すよう
に、最初に割込許可状態に設定される(ステップS79
1)。よって、タイマ割込処理中では割込許可状態にな
り、INT信号の入力にもとづく払出制御コマンド受信
処理を優先して実行することができる。
In the timer interruption, as shown in FIG. 49, 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.

【0330】払出制御処理において、払出制御用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).

【0331】次に、払出制御用CPU371は、主基板
31から払出禁止状態指定コマンドを受信していたら払
出禁止状態に設定し、払出可能状態指定コマンドを受信
していたら払出禁止状態の解除を行う(払出禁止状態設
定処理:ステップS753)。また、受信した払出制御
コマンドを解析し、解析結果に応じた処理を実行する
(コマンド解析実行処理:ステップS754)。さら
に、プリペイドカードユニット制御処理を行う(ステッ
プS755)。
Next, the payout control CPU 371 sets the payout prohibited state when the payout prohibited state designation command is received from the main board 31, and releases the payout prohibited state when the payable state designation command is received. (Payout prohibited 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).

【0332】次いで、払出制御用CPU371は、球貸
し要求に応じて貸し球を払い出す制御を行う(ステップ
S756)。このとき、払出制御用CPU371は、振
分ソレノイド310によって球振分部材311を球貸し
側に設定する。
Next, the payout control CPU 371 controls the payout of the lent balls in response to the ball 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.

【0333】さらに、払出制御用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). .

【0334】なお、この実施の形態では、払出モータ2
89としてステッピングモータが用いられ、それらを制
御するために1−2相励磁方式が用いられる。従って、
具体的には、払出モータ制御処理において、8種類の励
磁パターンデータが繰り返し払出モータ289に出力さ
れる。また、この実施の形態では、各励磁パターンデー
タが4msずつ出力される。
Incidentally, 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.

【0335】次いで、エラー検出処理が行われ、その結
果に応じてエラー表示LED374に所定の表示を行う
(エラー処理:ステップS759)。また、遊技機外部
に出力される球貸し個数信号を出力する処理等を行う
(出力処理:ステップS760)。
Next, error detection processing is performed, and a 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).

【0336】なお、図46に示す出力ポートCは、払出
制御処理における払出モータ制御処理(ステップS75
8)でアクセスされる。また、出力ポートDは、払出制
御処理におけるエラー処理(ステップS759)でアク
セスされる。そして、出力ポートEは、払出制御処理に
おける球貸し制御処理(ステップS756)および賞球
制御処理(ステップS757)でアクセスされる。
The output port C shown in FIG. 46 has a 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.

【0337】図50は、ステップS710の払出状態復
旧処理の一例を示すフローチャートである。払出状態復
旧処理において、払出制御用CPU371は、まず、ス
タックポインタの復帰処理を行う(ステップS73
1)。スタックポインタの値は、後述する電力供給停止
時処理において、所定のRAMエリア(電源バックアッ
プされている)に退避している。よって、ステップS7
31では、そのRAMエリアの値をスタックポインタに
設定することによって復帰させる。なお、復帰されたス
タックポインタが指す領域(すなわちスタック領域)に
は、電力供給が停止したときのレジスタ値やプログラム
カウンタ(PC)の値が退避している。
FIG. 50 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.

【0338】次いで、払出制御用CPU371は、復旧
する払い出しに関する状態として、本例では払出禁止状
態に設定する(ステップS732)。なお、払出禁止状
態に設定するときには、例えば払出モータ289の駆動
が停止されるとともに払出停止中であることを示す内部
フラグ(払出停止中フラグ)がセットされる。すなわ
ち、ステップS732では、払い出しが禁止された状態
であることを示すデータ(セットされた払出停止中フラ
グ)を所定の記憶領域に記憶する処理が実行されてい
る。払出停止中フラグについては、あとで詳しく説明す
る。
Next, the payout control CPU 371 sets the payout prohibition state in this example as the state related to the payout to be restored (step S732). When the payout prohibition state is set, for example, the driving of the payout motor 289 is stopped and an internal flag (payout stoppage flag) indicating that the payout is stopped is set. That is, in step S732, a process of storing the data indicating that the payout is prohibited (the set payout suspension flag) in a predetermined storage area is executed. The payout suspension flag will be described in detail later.

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

【0340】そして、RET命令が実行されるのである
が、ここでのリターン先は、払出状態復旧処理をコール
した部分ではない。なぜなら、ステップS731におい
てスタックポインタの復帰処理がなされ、復帰されたス
タックポインタが指すスタック領域に格納されているリ
ターンアドレスは、プログラムにおける前回の電力供給
停止時にNMIが発生したアドレスである。従って、ス
テップS737の次の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 S737 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.

【0341】図51〜図53は、電源基板910からの
電源断信号に応じて実行されるマスク不能割込処理(N
MI処理:電力供給停止時処理)の処理例を示すフロー
チャートである。この例では、NMIに応じて電力供給
停止時処理が実行されるが、電源断信号を払出制御用C
PU371のマスク可能端子に接続し、マスク可能割込
処理によって電力供給停止時処理を実行してもよい。ま
た、電源断信号を入力ポートに入力し、入力ポートのチ
ェック結果に応じて電力供給停止時処理を実行してもよ
い。
51 to 53 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.

【0342】マスク不能割込処理において、払出制御用
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.

【0343】なお、本例では、払出モータ289とし
て、払出制御用CPU371からのパルス信号(駆動信
号)によって回転するステッピングモータが用いられて
いる。従って、払出モータ289に対するパルス信号の
出力が停止されることによって、球払出装置97の駆動
は停止する。
In this example, as the payout motor 289, a stepping motor that 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.

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

【0345】そして、IOポインタが指すアドレスにク
リアデータをセットするとともに(ステップS81
2)、IOポインタの値を1増やし(ステップS81
3)、処理数の値を1減算する(ステップS814)。
ステップS812〜S814の処理が、処理数の値が0
になるまで繰り返される(ステップS815)。その結
果、出力ポートCおよび出力ポートD(図46参照)に
クリアデータが設定される。図46に示すように、この
例では、「1」がオン状態であり、クリアデータである
「00」が各出力ポートにセットされるので、出力ポー
トCおよび出力ポートDの全てのポートがオフ状態にな
る。この例では、出力ポートEのクリア処理は実行され
ないので、振分ソレノイド310の出力ポートはオフ状
態とはされない。出力ポートEにおける振分ソレノイド
310の出力ポート以外の出力ポートについて、クリア
処理を行うようにしてもよい。
Then, the clear data is set to the address pointed to by the IO pointer (step S81).
2), the value of the IO pointer is incremented by 1 (step S81
3), 1 is subtracted from the value of the number of processes (step S814).
In the processes of steps S812 to S814, the value of the number of processes is 0.
Is repeated (step S815). As a result, clear data is set in the output port C and the output port D (see FIG. 46). As shown in FIG. 46, 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 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.

【0346】その後、この実施の形態では、所定期間
(以下、「払出確認期間」という)、払出検出手段とし
ての賞球カウントスイッチ301A(賞遊技媒体払出検
出手段に相当)および球貸しカウントスイッチ301B
(貸出遊技媒体払出検出手段に相当)の検出信号をチェ
ックする。そして、賞球カウントスイッチ301Aがオ
ンしたら総合個数記憶の内容を1減らす。また、球貸し
カウントスイッチ301Bがオンしたら貸し球個数記憶
の内容を1減らす。
Thereafter, in this embodiment, a prize ball count switch 301A (corresponding to prize game medium payout detection means) and a ball lending count switch 301B as payout detection means for a predetermined period (hereinafter referred to as "payout confirmation period").
The detection signal (corresponding to the rental game medium payout detection means) is checked. When the prize ball count switch 301A is turned on, the content of the total number memory is decremented by 1. When the ball lending count switch 301B is turned on, the content of the number of lent balls is reduced by one.

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

【0348】払出確認期間を計測するために、払出制御
用CPU371の内蔵タイマを用いてもよい。すなわ
ち、スイッチ検出処理開始時に、内蔵タイマに所定値
(払出確認期間に相当)を設定しておく。そして、スイ
ッチ検出処理のループが1回実行される毎に、内蔵タイ
マのカウント値をチェックする。そして、カウント値が
0になったら、払出確認期間が終了したとする。内蔵タ
イマの値が0になったことを検出するために内蔵タイマ
による割込を用いることもできるが、この段階では制御
内容(RAMに格納されている各値など)を変化させな
いように、割込を用いず、内蔵タイマのカウント値を読
み出してチェックするようなプログラム構成の方が好ま
しい。また、払出確認期間は、遊技球が、球払出装置9
7から落下した時点から、賞球カウントスイッチ301
Aまたは球貸しカウントスイッチ301Bに到達するま
での時間以上に設定される。
The built-in timer of the payout control CPU 371 may be used to measure the payout confirmation period. That is, a predetermined value (corresponding to the payout confirmation 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 payout confirmation period has ended. 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. Also, during the payout confirmation period, the game ball is the ball payout device 9
Award ball count switch 301 from the time of dropping from 7
It is set to be equal to or longer than the time required to reach A or the ball lending count switch 301B.

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

【0350】なお、入力ポートおよび払出制御用CPU
371も、コンバータIC920で作成される+5V電
源で駆動されるので、電力供給停止時にも、比較的長い
期間動作可能になっている。
The input port and the 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.

【0351】さらに、この実施の形態では、賞球路と貸
し球路とを切り換えるために振分ソレノイド310が用
いられている。よって、図11に示されたコンデンサ9
24の容量は、少なくとも上記の払出確認期間の間、振
分ソレノイド310を駆動できるような容量になってい
る。なお、コンデンサ924は、各電気部品に電力供給
を行うためのライン(コネクタ915の入力側のライ
ン)に接続されているが、電源断信号に応じて遊技制御
手段が他のソレノイド(大入賞口開閉用等)の駆動信号
をオフ状態にしているので、電源断信号発生後では、コ
ンデンサ924は、各ソレノイドのうちでは振分ソレノ
イド310のみを駆動できればよい。
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 payout confirmation 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 opening) in response to the power-off signal. Since the drive signals (for opening and closing, etc.) are in the OFF state, the capacitor 924 needs only to drive only the distribution solenoid 310 among the solenoids after the power-off signal is generated.

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

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

【0354】払出確認期間計測用カウンタの値が0にな
っていなければ、賞球カウントスイッチオン中であるか
否か確認する(ステップS819)。この確認は、後述
する賞球カウントスイッチON中フラグの状態を確認す
ることで行われる。賞球カウントスイッチON中フラグ
がセットされていれば、賞球カウントスイッチオン中で
あると判定し、検出期間用カウンタの値を1減らした後
(ステップS820)、検出期間用カウンタの値が0に
なったか否か確認する(ステップS821)。0になっ
ていれば、入力ポートを介して賞球カウントスイッチ3
01Aの検出信号を確認し(ステップS822)、オン
状態を示していれば、賞球カウントスイッチ301Aが
確実にオンしたとして、総合個数記憶の値を1減らす
(ステップS823)。
If the value of the payout confirmation period measuring counter is not 0, it is confirmed whether or not the prize ball count switch is on (step S819). 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 S820), and then the value of the detection period counter is set to 0. It is confirmed whether or not (step S821). If it is 0, prize ball count switch 3 via the input port
If the detection signal of 01A is confirmed (step S822) 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 memory is decremented by 1 (step S823).

【0355】ステップS819で、賞球カウントスイッ
チオン中でないこと(賞球カウントスイッチON中フラ
グがセットされていないこと)を確認したら、入力ポー
トを介して賞球カウントスイッチ301Aの検出信号を
確認し(ステップS824)、オン状態を示していれ
ば、賞球カウントスイッチON中フラグをセットすると
ともに(ステップS825)、検出期間用カウンタに初
期値nをセットする(ステップS826)。
In step S819, if it is confirmed 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 S824) If it is in the on state, the prize ball count switch ON flag is set (step S825), and the initial value n is set in the detection period counter (step S826).

【0356】以上の処理によって、払出確認期間内に賞
球カウントスイッチ301Aがオンしたら、総合個数記
憶の値が−1される。バックアップRAMの内容を保存
するための処理は、このようなスイッチ検出処理の後で
行われるので、払出が完了した賞球について、必ず総合
個数記憶が−1される。従って、遊技球の払出に関し
て、保存される制御状態に矛盾が生じてしまうことが防
止される。また、上記のスイッチ検出処理では、検出期
間用カウンタを用いたタイマ処理が施されている。すな
わち、一度賞球カウントスイッチ301Aのオンが検出
された後、所定時間(S817からS821に至りS8
17に戻るループにおける処理時間のn倍:遊技媒体検
出判定期間)の経過後にもオンが検出されないとスイッ
チオンと見なされない。つまり、最初のオン検出後、所
定の遊技媒体検出判定期間経過後にもオン検出した場合
に、1個の賞球の払出が完了したと見なされる。従っ
て、誤ってスイッチオン検出がなされてしまうことは防
止される。
As a result of the above processing, if the prize ball count switch 301A is turned on within the payout confirmation period, the value of the total number stored 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, a predetermined time (from S817 to S821, S8
If n is not detected even after elapse of n times the processing time in the loop returning to 17: game medium detection determination period), it is not considered to be switch on. In other words, after the first ON detection, when the ON detection is performed after the lapse of a predetermined game medium detection determination period, it is considered that one prize ball has been paid out. Therefore, erroneous switch-on detection can be prevented.

【0357】この場合、例えば、遊技媒体検出判定期間
がほぼ2msとなるようにnを設定すれば、遊技媒体検
出判定期間を通常遊技媒体検出判定期間(電力供給停止
時処理での処理でない、通常の遊技状態において遊技媒
体の有無を判定するための期間。本例では、後述する図
57における751cで賞球カウントスイッチオンフラ
グの値が2であることが確認されるまでの2ms以上の
期間)と同じ期間とすることが可能となる。このように
構成すれば、通常の制御とほぼ同一の条件で、賞球カウ
ントスイッチ301Aがオンしたか否かを判定すること
が可能となる。
In this case, for example, if n is set so that the game medium detection determination period becomes 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, the normal The period for determining the presence or absence of the game medium in the game state of. In this example, 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. 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.

【0358】なお、通常時のスイッチ処理(図48にお
けるステップS752)でも、誤検出防止用のタイマ処
理が施されている。よって、そのような通常時のスイッ
チ処理をコールするようにしてもよい。また、ここで
は、検出期間用カウンタを用いたタイマ処理が行われた
が、払出確認期間の計測の場合にCPU内蔵タイマを用
いてもよいのと同様、CPU内蔵タイマを用いてスイッ
チ検出処理におけるタイマ処理を実現してもよい。
In the normal switch process (step S752 in FIG. 48), 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 CPU built-in timer may be used in the case of measuring the payout confirmation period, as in the switch detection process. You may implement | achieve a timer process.

【0359】賞球カウントスイッチオン中でなく、か
つ、賞球カウントスイッチ301Aのオン状態が検出で
きない場合には、球貸しカウントスイッチ301Bにつ
いてスイッチ検出処理を行う。すなわち、払出制御用C
PU371は、球貸しカウントスイッチオン中であるか
否か確認する(ステップS827)。オン中であれば、
検出期間用カウンタの値を1減らした後(ステップS8
28)、検出期間用カウンタの値が0になったか否か確
認する(ステップS829)。0になっていれば、入力
ポートを介して球貸しカウントスイッチ301Bの検出
信号を確認し(ステップS830)、オン状態を示して
いれば、球貸しカウントスイッチ301Bが確実にオン
したとして、貸し球個数記憶の値を1減らす(ステップ
S831)。
When the prize ball count switch is not on and the prize ball count switch 301A cannot be detected to be in the ON state, 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 S827). If it's on,
After decrementing the detection period counter value by 1 (step S8)
28), it is confirmed whether or not the value of the detection period counter has become 0 (step S829). If it is 0, the detection signal of the ball lending count switch 301B is confirmed via the input port (step S830). The value stored in the number is reduced by 1 (step S831).

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

【0361】以上の処理によって、払出確認期間内に球
貸しカウントスイッチ301Bがオンしたら、貸し球個
数記憶の値が−1される。バックアップRAMの内容を
保存するための処理は、このようなスイッチ検出処理の
後で行われるので、払出が完了した貸し球について、必
ず貸し球個数記憶が−1される。従って、遊技球の払出
に関して、保存される制御状態に矛盾が生じてしまうこ
とが防止される。また、上記のスイッチ検出処理では、
検出期間用カウンタを用いたタイマ処理が施されてい
る。すなわち、球貸しカウントスイッチ301Bのオン
が所定時間(遊技媒体検出判定期間)以上継続しないと
スイッチオンと見なされない。つまり、賞球の払出検出
の場合と同様に、最初のオン検出後、所定の遊技媒体検
出判定期間経過後にもオン検出した場合に、1個の貸し
球の払出が完了したと見なされる。従って、誤ってスイ
ッチオン検出がなされてしまうことは防止される。
By the above processing, when the ball lending count switch 301B is turned on within the payout confirmation period, the value of the number of lent balls memorized is decremented by one. 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.

【0362】また、賞球の払出検出の場合と同様に、例
えば、遊技媒体検出判定期間がほぼ2msとなるように
nを設定すれば、遊技媒体検出判定期間を通常遊技媒体
検出判定期間(電力供給停止時処理での処理でない、通
常の遊技状態において遊技媒体の有無を判定するための
期間。本例では、図57における751hで球貸しカウ
ントスイッチオンフラグの値が2であることが確認され
るまでの2ms以上の期間)と同じ期間とすることが可
能となる。このように構成すれば、通常の制御とほぼ同
一の条件で、球貸しカウントスイッチ301Bがオンし
たか否かを判定することが可能となる。
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 at 751h in FIG. It is possible to set the same period as the period of 2 ms or more). According to this structure, it is possible to determine whether or not the ball lending count switch 301B is turned on under substantially the same conditions as in the normal control.

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

【0364】なお、この実施の形態では、払出制御処理
において用いられるデータが格納される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.

【0365】以上のように、この実施の形態では、停電
等の発生に応じて電源断信号が出力されたら、まず、球
払出装置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 confirmation period and the payout detection means are operated. The detection signal input process is executed, and then the 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.

【0366】すなわち、この実施の形態では、遊技機へ
の電力供給停止時に制御状態をバックアップ記憶手段に
保存するように構成した場合に、制御の矛盾等を生じさ
せないようにすることができる。
That is, in this embodiment, in the case where 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.

【0367】また、この実施の形態では、遊技媒体検出
手段が所定の遊技媒体検出判定期間の前後において2回
連続してオン検出した場合に、1個の賞球あるいは貸し
球の払出を完了したと見なすようにしたので、誤ってス
イッチオン検出がなされてしまうことを防止することが
できる。従って、電源断時における制御の適正化を図る
ことが可能となる。
Further, in this embodiment, when the game medium detecting means detects the ON state twice consecutively before and after the predetermined game medium detection determination 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.

【0368】上述したように、この例では、振分ソレノ
イド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.

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

【0370】この例では、電源の瞬断等に起因して電源
断信号が発生した場合には、電源電圧は平常時の値に復
旧し遊技機は制御可能な状態に戻る。そのような状況が
発生したときには、電源基板910から復帰信号が払出
基板37に供給される。復帰信号が入力されると、払出
制御用CPU371にリセットがかかる。従って、払出
制御用CPU371は、図48に示されたメイン処理の
実行を開始することができる。その際、電源断信号が出
力されたときに遊技状態が保存されているので、ステッ
プS710の処理で払出状態復旧処理が実行され、払出
制御は、電源断信号発生時の状態に戻り、その状態から
払出制御が続行される。
In this example, when a power-off signal is generated due to a momentary power-off or the like, the power-supply voltage is restored to the normal value and the gaming machine returns to a controllable state. When such a situation occurs, a return signal is supplied from the power supply board 910 to the payout board 37. When the return signal is input, the payout control CPU 371 is reset. Therefore, the payout control CPU 371 can start execution of the main processing shown in FIG. At that time, since the game state is saved when the power-off signal is output, the payout state recovery process is executed in the process of step S710, and the payout control returns to the state at the time of the power-off signal and the state The payout control is continued from.

【0371】なお、ここでは、賞球カウントスイッチ3
01Aまたは球貸しカウントスイッチ301Bの検出信
号がオン状態を示したらタイマ(検出期間用カウンタ)
をセットし、タイマがタイムアップしたときにも検出信
号がオン状態を示していたら、スイッチが確実にオンし
たと判定したが、主基板31のCPU56と同様に、2
msのタイマ(2ms計測用カウンタ)がタイムアップ
する毎に検出信号の判定を行うように構成してもよい。
Here, the prize ball count switch 3 is used.
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.

【0372】また、この実施の形態でも、電源断信号に
応じて起動される処理の最初にレジスタの保存処理が行
われたが、スイッチ検出処理においてレジスタを使用し
ない場合には、スイッチ検出処理の実行後に、すなわ
ち、バックアップフラグの設定とチェックサムの算出の
処理の前にレジスタ保存処理を行うことができる。その
場合には、レジスタ保存処理、バックアップフラグ設定
処理、チェックサム算出処理および出力ポートのオフ設
定処理を電力供給停止時処理と見なすことができる。さ
らに、スイッチ検出処理において幾つかのレジスタを使
用する場合であっても、使用しないレジスタについて
は、バックアップフラグの設定とチェックサムの算出の
処理の前にレジスタ保存処理を行うことができる。
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 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.

【0373】図54は、払出制御用CPU371が内蔵
するRAMの使用例を示す説明図である。この例では、
バックアップRAM領域に、総合個数記憶(例えば2バ
イト)と貸し球個数記憶とがそれぞれ形成されている。
総合個数記憶は、主基板31の側から指示された賞球払
出個数の総数を記憶するものである。貸し球個数記憶
は、未払出の球貸し個数を記憶するものである。なお、
バックアップRAM領域には、上記の遊技球の個数に関
する情報を記憶する領域に限られず、例えば、後述する
払出停止中フラグ、賞球経路エラーフラグなどのエラー
状態を示すフラグ、バックアップフラグなどの各種のフ
ラグを記憶する領域や、受信コマンドバッファなどの各
種のバッファなどを記憶する領域なども形成されてい
る。また、払出制御処理において用いられるデータが格
納されるRAM領域は全て電源バックアップされるよう
にしてもよい。
FIG. 54 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.

【0374】そして、払出制御用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 process (step S757), for example, the specified number of contents is stored in the total number memory. To increase. In addition, in the ball lending control process (step S756), the content is increased to 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.

【0375】従って、未払出の賞球個数と貸し球個数と
が、所定期間はその内容を保持可能なバックアップ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.

【0376】図55は、主基板31から受信した払出制
御コマンドを格納するための受信バッファの一構成例を
示す説明図である。この例では、2バイト構成の払出制
御コマンドを6個格納可能なリングバッファ形式の受信
バッファが用いられる。従って、受信バッファは、受信
コマンドバッファ1〜12の12バイトの領域で構成さ
れる。そして、受信したコマンドをどの領域に格納する
のかを示すコマンド受信個数カウンタが用いられる。コ
マンド受信個数カウンタは、0〜11の値をとる。
FIG. 55 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.

【0377】図56は、割込処理による払出制御コマン
ド受信処理を示すフローチャートである。主基板31か
らの払出制御用のINT信号は払出制御用CPU371
のCLK/TRG2端子に入力されている。よって、主
基板31からのINT信号が立ち上がると、払出制御用
CPU371に割込がかかり、図56に示す払出制御コ
マンドの受信処理が開始される。なお、払出制御用CP
U371は、割込が発生すると、ソフトウェアで割込許
可にしない限り、マスク可能割込がさらに生ずることは
ないような構造のCPUである。
FIG. 56 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. 56 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.

【0378】なお、ここでは払出制御手段のコマンド受
信処理について説明するが、表示制御手段、ランプ制御
手段および音制御手段でも、同様のコマンド受信処理が
実行されている。また、この実施の形態では、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.

【0379】すなわち、取込信号としてのパルス状(矩
形波状)のINT信号のレベル変化タイミング(エッ
ジ)で割込が発生するように構成すれば、エッジは立ち
上がりエッジであっても立ち下がりエッジであってもよ
い。いずれにせよ、取込信号としてのパルス状(矩形波
状)のINT信号のレベル変化タイミング(エッジ)で
割込が発生するように構成される。このようにすること
で、コマンドの取込が指示された段階でいち早くコマン
ド受信を行うことが可能になる。また、Aの期間(図3
8参照)が経過するまでINT信号の出力が待機される
ので、INT信号の出力時に、制御信号CD0〜CD7
のライン上のコマンドデータの出力状態は安定してい
る。よって、払出制御手段において、払出制御コマンド
は良好に受信される。
That is, if the interrupt is generated at the level change timing (edge) of the pulse (rectangular wave) 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 the time (see 8) has elapsed, the control signals CD0 to CD7 are output when the INT signal is output.
The output state of the command data on the line is stable. Therefore, the payout control command is properly received by the payout control means.

【0380】払出制御コマンドの受信処理において、払
出制御用CPU371は、まず、各レジスタをスタック
に退避する(ステップS850)。次いで、払出制御コ
マンドデータの入力に割り当てられている入力ポート3
72a(図8参照)からデータを読み込む(ステップS
851)。次いで、読み込んだデータが規則内のデータ
であるか否か確認する(ステップS851a)。規則内
のデータであるか否かは、受信したデータの構成や内容
が予め定められている規則に適合しているか否かを確認
することで行われる。例えば、受信したデータが、正規
のコマンドとはバイト数が異なるデータであった場合
や、データの内容が正規のコマンドではあり得ない内容
となっている場合などには、規則外のデータであると判
定される。読み込んだデータが規則内のデータであれ
ば、2バイト構成の払出制御コマンドのうちの1バイト
目であるか否か確認する(ステップS852)。1バイ
ト目であるか否かは、受信したコマンドの先頭ビットが
「1」であるか否かによって確認される。先頭ビットが
「1」であるのは、2バイト構成である払出制御コマン
ドのうちのMODEバイト(1バイト目)のはずである
(図37参照)。そこで、払出制御用CPU371は、
先頭ビットが「1」であれば、有効な1バイト目を受信
したとして、受信したコマンドを受信バッファ領域にお
けるコマンド受信個数カウンタが示す受信コマンドバッ
ファに格納する(ステップS853)。
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. 8) (step S
851). Then, it is confirmed whether or not the read data is within the rule (step S851a). Whether or not the data is within the rule is determined by checking whether or not the structure or content of the received data conforms to a predetermined rule. For example, when the received data has a different number of bytes from the regular command, or when the content of the data is a content that cannot be a regular command, the data is out of the rule. Is determined. If the read data is the data within the rule, it is confirmed whether or not it is the first byte of the payout control command having a 2-byte structure (step S852). Whether or not it is the first byte is confirmed by whether or not the first bit of the received command is "1". The first bit is "1" in the MODE byte (first byte) of the payout control command having a 2-byte structure (see FIG. 37). Therefore, the payout control CPU 371
If the first bit is "1", it is determined that the valid first byte has been received, and the received command is stored in the reception command buffer indicated by the command reception number counter in the reception buffer area (step S853).

【0381】払出制御コマンドのうちの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).

【0382】1バイト目を既に受信している場合には、
受信した1バイトのうちの先頭ビットが「0」であるか
否か確認する。そして、先頭ビットが「0」であれば、
有効な2バイト目を受信したとして、受信したコマンド
を、受信バッファ領域におけるコマンド受信個数カウン
タ+1が示す受信コマンドバッファに格納する(ステッ
プS855)。先頭ビットが「0」であるのは、2バイ
ト構成である払出制御コマンドのうちのEXTバイト
(2バイト目)のはずである(図37参照)。なお、ス
テップ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 is “0”, which is supposed to be the EXT byte (second byte) of the payout control command having a 2-byte structure (see FIG. 37). If the confirmation result in step S854 has already received the first byte, 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

【0383】ステップS855において、2バイト目の
コマンドデータを格納すると、コマンド受信個数カウン
タに2を加算する(ステップS856)。そして、コマ
ンド受信カウンタが12以上であるか否か確認し(ステ
ップS857)、12以上であればコマンド受信個数カ
ウンタをクリアする(ステップS858)。その後、退
避されていたレジスタを復帰し(ステップS859)、
最後に割込許可に設定する(ステップS860)。
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 S860).

【0384】コマンド受信割込処理中は割込禁止状態に
なっている。上述したように、2msタイマ割込処理中
は割込許可状態になっているので、2msタイマ割込中
にコマンド受信割込が発生した場合には、コマンド受信
割込処理が優先して実行される。また、コマンド受信割
込処理中に2msタイマ割込が発生しても、その割込処
理は待たされる。このように、この実施の形態では、主
基板31からのコマンド受信処理の処理優先度が高くな
っている。また、コマンド受信処理中には他の割込処理
が実行されないので、コマンド受信処理に要する最長時
間は決まる。コマンド受信処理中に他の割込処理が実行
可能であるように構成したのでは、コマンド受信処理に
要する最長の時間を見積もることは困難である。コマン
ド受信処理に要する最長時間が決まるので、遊技制御手
段のコマンド送出処理におけるCの期間(図38参照)
をどの程度にすればよいのかを正確に判断することがで
きる。さらに具体的には、コマンド受信処理に要する最
長時間が決まるので、ステップS367にてセットする
ウエイトカウンタの値をどの程度にすればよいのかを正
確に判断することができる。
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. 38)
Can be accurately determined. More specifically, since the maximum time required for command reception processing is determined, it is possible to accurately determine what the value of the weight counter set in step S367 should be.

【0385】また、払出制御コマンドは2バイト構成で
あって、1バイト目(MODE)と2バイト目(EX
T)とは、受信側で直ちに区別可能に構成されている。
すなわち、先頭ビットによって、MODEとしてのデー
タを受信したのかEXTとしてのデータを受信したのか
を、受信側において直ちに検出できる。よって、上述し
たように、適正なデータを受信したのか否かを容易に判
定することができる。
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.

【0386】図57は、ステップS752のスイッチ処
理の一例を示すフローチャートである。スイッチ処理に
おいて、払出制御用CPU371は、賞球カウントスイ
ッチ301Aがオン状態を示しているか否か確認する
(ステップS751a)。オン状態を示していれば、払
出制御用CPU371は、賞球カウントスイッチオンカ
ウンタを+1する(ステップS751b)。賞球カウン
トスイッチオンカウンタは、賞球カウントスイッチ30
1Aのオン状態を検出した回数を計数するためのカウン
タである。
FIG. 57 is a flow chart showing an example of the switch process of step S752. 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.

【0387】そして、賞球カウントスイッチオンカウン
タの値をチェックし(ステップ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: unpaid amount data) by -1. (Step S751d).

【0388】ステップS751aにおいて賞球カウント
スイッチ301Aがオン状態でないことが確認される
と、払出制御用CPU371は、賞球カウントスイッチ
オンカウンタをクリアする(ステップS751e)。そ
して、この実施の形態では、球貸しカウントスイッチ3
01Bがオン状態を示しているか否か確認する(ステッ
プS751f)。オン状態を示していれば、払出制御用
CPU371は、球貸しカウントスイッチオンカウンタ
を+1する(ステップS751g)。球貸しカウントス
イッチオンカウンタは、球貸しカウントスイッチ301
Bのオン状態を検出した回数を計数するためのカウンタ
である。
If it is confirmed in step S751a that the prize ball count switch 301A is not in the on state, 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.

【0389】そして、球貸しカウントスイッチオンカウ
ンタの値をチェックし(ステップ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:
The unpaid amount data) is decremented by 1 (step S751i).

【0390】ステップ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).

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

【0392】ステップS753bで受信コマンドが払出
禁止状態指定コマンドでないことを確認すると、受信し
た払出制御コマンドが払出可能状態指定コマンドである
か否かの確認を行う(ステップS753d)。払出可能
状態指定コマンドであれば、払出禁止状態を解除する
(ステップS753e)。
When it is confirmed in step S753b that the received command is not the payout prohibition 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 prohibited state is canceled (step S753e).

【0393】なお、払出禁止状態に設定するときには、
例えば払出モータ289の駆動が停止されるとともに払
出停止中であることを示す内部フラグ(払出停止中フラ
グ)がセットされる。また、払出禁止状態を解除すると
きには、払出モータ289の駆動が再開されるととも
に、払出停止中フラグがリセットされる。すなわち、ス
テップS753cでは、払い出しが禁止された状態であ
ることを示すデータ(セットされた払出停止中フラグ)
を所定の記憶領域に記憶する処理が実行されており、ス
テップS753eでは、払い出しが許可された状態であ
ることを示すデータ(リセットされた払出停止中フラ
グ)を所定の記憶領域に記憶する処理が実行されてい
る。
When setting the payout prohibition 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. Further, when the payout prohibition 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.

【0394】払出停止中フラグは、例えばバックアップ
RAM領域に格納されている。払出停止中フラグは、例
えばD0〜D7の各ビットから成る1バイト構成とされ
る。この場合、例えば、D0が「1」であれば払出禁止
状態が設定されている状態を示し、D1が「1」であれ
ば払出禁止状態が解除されている状態を示すようにすれ
ばよい。また、D2は、例えば、払出禁止状態が解除さ
れたあとの復帰待ち状態であることを示すために用いら
れる。なお、D3〜D7は、未使用領域とされる。
The discontinuation 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", the payout prohibition state is set, and if D1 is "1", the payout prohibition state is released. Further, D2 is used, for example, to indicate that it is in a waiting state for return after the payout prohibition state is released. Note that D3 to D7 are unused areas.

【0395】ここで、図58の処理における払出停止中
フラグの状態を具体的に説明する。ステップ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」であれば払出許可状態を示すようにし
てもよい)。
Here, the state of the payout suspension flag in the process of FIG. 58 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 payout is prohibited. Further, when D0 is “1” and D1 is “0”, it indicates that the payout permission state (the payout prohibition 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 prohibited state may be indicated if "0", and the payout permitted state may be indicated if D0 is "1".

【0396】払出禁止状態に設定された場合に、直ちに
払出モータ289を停止してもよいが、そのように制御
するのではなく、切りのよいところで払出モータ289
を停止するようにしてもよい。例えば、遊技球の払出を
25個単位で実行し、一単位の払出が完了した時点で払
出モータ289を停止するとともに、内部状態を払出禁
止状態に設定するようにしてもよい。上述したように、
球切れスイッチ187は、払出球通路に27〜28個程
度の遊技球が存在することを検出できるような位置に設
置されているので、主基板31の遊技制御手段が球切れ
を検出しても、その時点から少なくとも25個の払出は
可能である。従って、一単位の払出が完了した時点で払
出禁止状態にしても問題は生じない。また、一単位の区
切りで払出禁止状態とすれば、払出再開時の制御が容易
になる。
When the pay-out prohibited state is set, the pay-out motor 289 may be stopped immediately, but the pay-out motor 289 is not controlled in such a way, but 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 prohibited 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 prohibition state is set at the time when the payout of one unit is completed. Further, if the payout prohibition state is set for each unit, the control at the time of restarting the payout becomes easy.

【0397】図59は、ステップS754のコマンド解
析実行処理の一例を示すフローチャートである。コマン
ド解析実行処理において、払出制御用CPU371は、
受信バッファに受信コマンドがあるか否かの確認を行う
(ステップS754a)。受信コマンドがあれば、受信
した払出制御コマンドが賞球個数を指定するための払出
制御コマンドであるか否かの確認を行う(ステップS7
54b)。なお、払出制御用CPU371は、コマンド
指示手段としての読出ポインタが指す受信バッファ中の
アドレスに格納されている受信コマンドについてステッ
プS754bの判断を行う。また、その判断後、読出ポ
インタの値は+1される。読出ポインタが指すアドレス
が受信コマンドバッファ12(図55参照)のアドレス
を越えた場合には、読出ポインタの値は、受信コマンド
バッファ1を指すように更新される。
FIG. 59 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. 55), the value of the read pointer is updated to point to the reception command buffer 1.

【0398】受信した払出制御コマンドが賞球個数を指
定するための払出制御コマンドであれば、払出制御コマ
ンドで指示された個数を総合個数記憶に加算する(ステ
ップS754c)。すなわち、払出制御用CPU371
は、主基板31のCPU56から送られた払出制御コマ
ンドに含まれる賞球個数をバックアップRAM領域(総
合個数記憶)に記憶する。
If the received payout control command is the payout control command for designating the number of prize balls, the number designated by the payout control command is added to the total number memory (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).

【0399】なお、払出制御用CPU371は、必要な
らば、コマンド受信個数カウンタの減算や受信バッファ
における受信コマンドシフト処理を行う。また、払出禁
止状態設定処理およびコマンド解析実行処理が、読出ポ
インタの値と受信バッファにおける最新コマンド格納位
置とが一致するまで繰り返すように構成されていてもよ
い。例えば、読出ポインタの値と受信バッファにおける
最新コマンド格納位置との差が「3」であれば未処理の
受信済みコマンドが3つあることになるが、一致するま
で繰り返し処理が実行されることによって、未処理の受
信済みコマンドがなくなる。すなわち、受信バッファに
格納されている受信済みコマンドが、一度の処理で、全
て読み出されて処理される。
If necessary, the payout control CPU 371 performs the subtraction of the command reception number counter and the reception command shift processing in the reception buffer. Further, the payout prohibition state setting process and the command analysis execution process may be configured to 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.

【0400】図60および図61は、ステップS756
の球貸し制御処理の一例を示すフローチャートである。
なお、この実施の形態では、連続的な払出数の最大値を
貸し球の一単位(例えば25個)とするが、連続的な払
出数の最大値は他の数であってもよい。
60 and 61, 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.

【0401】球貸し制御処理において、払出制御用CP
U371は、球貸し停止中であるか否かを確認する(ス
テップS510)。停止中であれば、処理を終了する。
なお、球貸し停止中であるか否かは、図58に示された
払出禁止状態設定処理などにおいて設定される払出停止
中フラグがオンしているか否かによって確認される。
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 stopped is confirmed by whether or not the payout stopped flag which is set in the payout prohibition state setting process shown in FIG. 58 is turned on.

【0402】球貸し停止中でなければ、払出制御用CP
U371は、貸し球払出中であるか否かの確認を行い
(ステップS511)、貸し球払出中であれば図61に
示す球貸し中の処理に移行する。なお、貸し球払出中で
あるか否かは、後述する球貸し処理中フラグの状態によ
って判断される。貸し球払出中でなければ、賞球の払出
中であるか否か確認する(ステップS512)。賞球の
払出中であるか否は、後述する賞球処理中フラグの状態
によって判断される。
If the ball lending is not stopped, the payout control CP
The U371 confirms whether or not the lending of balls is in progress (step S511), and if the lending of balls is in progress, the process proceeds to the process of lending balls shown in FIG. 61. 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.

【0403】貸し球払出中でも賞球払出中でもなけれ
ば、払出制御用CPU371は、カードユニット50か
ら球貸し要求があったか否かを確認する(ステップS5
13)。要求があれば、球貸し処理中フラグをオンする
とともに(ステップS514)、25(球貸し一単位
数:ここでは100円分)をバックアップRAM領域の
貸し球個数記憶に設定する(ステップS515)。そし
て、払出制御用CPU371は、EXS信号をオンする
(ステップS516)。また、球払出装置97の下方の
球振分部材311を球貸し側に設定するために振分用ソ
レノイド310を駆動する(ステップS517)。さら
に、払出制御用CPU371は、25個の遊技球を払い
出すためのモータ回転時間を設定するか、または、モー
タ回転時間に応じた数の出力パルス数を決定する。そし
て、払出モータ289をオンして(ステップS51
8)、図61に示す球貸し中の処理に移行する。
If neither the lending ball is paying out nor the prize ball is paying 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.

【0404】なお、払出モータ289をオンするのは、
厳密には、カードユニット50が受付を認識したことを
示すためにBRQ信号をオフ状態にしてからである。ま
た、球貸し処理中フラグはバックアップRAM領域に設
定される。
Note that the payout motor 289 is turned on by
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.

【0405】図61は、払出制御用CPU371による
払出制御処理における球貸し中の処理を示すフローチャ
ートである。球貸し処理では、払出モータ289がオン
していなければオンする。なお、この実施の形態では、
ステップS751のスイッチ処理で、球貸しカウントス
イッチ301Bの検出信号による遊技球の払出がなされ
たか否かの確認を行うので、球貸し制御処理では貸し球
個数記憶の減算などは行われない。
FIG. 61 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.

【0406】球貸し制御処理において、払出制御用CP
U371は、貸し球通過待ち時間中であるか否かの確認
を行う(ステップS519)。貸し球通過待ち時間中で
なければ、貸し球の払出を行い(ステップS520)、
払出モータ289の駆動を終了すべきか(一単位の払出
動作が終了したか)否かの確認を行う(ステップS52
1)。具体的には、所定個数の払出に対応した回転が完
了したか否かを確認する。所定個数の払出に対応した回
転が完了した場合には、払出制御用CPU371は、払
出モータ289の駆動を停止し(ステップS522)、
貸し球通過待ち時間の設定を行う(ステップS52
3)。
In the ball lending control processing, the payout control CP
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).

【0407】ステップS519で貸し球通過待ち時間中
であれば、払出制御用CPU371は、貸し球通過待ち
時間が終了したか否かの確認を行う(ステップS52
4)。貸し球通過待ち時間は、最後の払出球が払出モー
タ289によって払い出されてから球貸しカウントスイ
ッチ301Bを通過するまでの時間である。貸し球通過
待ち時間の終了を確認すると、一単位の貸し球は全て払
い出された状態であるので、カードユニット50に対し
て次の球貸し要求の受付が可能になったことを示すため
にEXS信号をオフにする(ステップS525)。ま
た、振分ソレノイドをオフするとともに(ステップS5
26)、球貸し処理中フラグをオフする(ステップS5
27)。なお、貸し球通過待ち時間が経過するまでに最
後の払出球が球貸しカウントスイッチ301Bを通過し
なかった場合には、球貸し経路エラーとされる。また、
この実施の形態では、賞球も球貸しも同じ払出装置で行
われる。
[0407] If it is during 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.

【0408】なお、球貸し要求の受付を示す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.

【0409】貸し球個数記憶の内容は、遊技機への電力
供給が停止しても、所定期間電源基板910のバックア
ップ電源によって保存される。従って、所定期間中に電
力供給が復旧すると、払出制御用CPU371は、貸し
球個数記憶の内容にもとづいて球貸し処理を継続するこ
とができる。
The content of the number of rented 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.

【0410】図62および図63は、ステップS757
の賞球制御処理の一例を示すフローチャートである。な
お、この例では、連続的な払出数の最大値を貸し球の一
単位と同数(例えば25個)とするが、連続的な払出数
の最大値は他の数であってもよい。
62 and 63, 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.

【0411】賞球制御処理において、払出制御用CPU
371は、まず、賞球停止中であるか否かを確認する
(ステップS530)。停止中であれば、処理を終了す
る。なお、賞球停止中であるか否かは、図58に示され
た払出禁止状態設定処理などにおいて設定される払出停
止中フラグがオンしているか否かによって確認される。
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 ball is stopped is confirmed by whether or not the payout stopped flag set in the payout prohibited state setting process shown in FIG. 58 is turned on.

【0412】賞球停止中でなければ、払出制御用CPU
371は、貸し球払出中であるか否かの確認を行い(ス
テップS531)、貸し球払出中であれば処理を終了す
る。なお、貸し球払出中であるか否かは、球貸し処理中
フラグの状態によって判断される。貸し球払出中でなけ
れば、既に賞球払出処理が開始されているか否か、すな
わち賞球中であるか否か確認する(ステップS53
2)。賞球中であれば図63に示す賞球中の処理に移行
する。なお、賞球中であるか否かは、後述する賞球処理
中フラグの状態によって判断される。
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. In addition, whether or not the lent ball 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.

【0413】賞球払出中でなければ、払出制御用CPU
371は、総合個数記憶に格納されている賞球数(未払
出の賞球数)が0でないか否か確認する(ステップS5
34)。総合個数記憶に格納されている賞球数が0でな
ければ、賞球制御用CPU371は、賞球処理中フラグ
をオンし(ステップS535)、総合個数記憶の値が2
5以上であるか否か確認する(ステップS536)。な
お、賞球処理中フラグは、バックアップRAM領域に設
定される。
If the prize ball is 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.

【0414】総合個数記憶に格納されている賞球個数が
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.

【0415】総合個数記憶に格納されている賞球個数が
25以上でなければ、払出制御用CPU371は、総合
個数記憶に格納されている数に応じた遊技球を払い出す
まで払出モータ289を回転させるように駆動信号を出
力するために、全個数払出動作の設定を行う(ステップ
S538)。具体的には、遊技球を払い出すためのモー
タ回転時間を設定したり、モータ回転時間に応じた数の
出力パルス数を決定する。次いで、払出モータ289を
オンする(ステップS539)。なお、振分ソレノイド
はオフ状態であるから、球払出装置97の下方の球振分
部材は賞球側に設定されている。そして、図63に示す
賞球制御処理における賞球払出中の処理に移行する。
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.

【0416】図63は、払出制御用CPU371による
払出制御処理における賞球中の処理の一例を示すフロー
チャートである。賞球制御処理では、払出モータ289
がオンしていなければオンする。なお、この実施の形態
では、ステップS751のスイッチ処理で、賞球カウン
トスイッチ301Aの検出信号による遊技球の払出がな
されたか否かの確認を行うので、賞球制御処理では総合
個数記憶の減算などは行われない。
FIG. 63 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.

【0417】賞球中の処理において、払出制御用CPU
371は、賞球通過待ち時間中であるか否かの確認を行
う(ステップS540)。賞球通過待ち時間中でなけれ
ば、賞球払出を行い(ステップS541)、払出モータ
289の駆動を終了すべきか(25個または25個未満
の所定の個数の払出動作が終了したか)否かの確認を行
う(ステップS542)。具体的には、所定個数の払出
に対応した回転が完了したか否かを確認する。所定個数
の払出に対応した回転が完了した場合には、払出制御用
CPU371は、払出モータ289の駆動を停止し(ス
テップS543)、賞球通過待ち時間の設定を行う(ス
テップS544)。賞球通過待ち時間は、最後の払出球
が払出モータ289によって払い出されてから賞球カウ
ントスイッチ301Aを通過するまでの時間である。
In the process of winning a prize ball, the payout control CPU
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.

【0418】ステップ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.

【0419】なお、この実施の形態では、ステップ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.

【0420】総合個数記憶および貸し球個数記憶の内容
は、遊技機への電力供給が停止しても、所定期間電源基
板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.

【0421】なお、払出制御用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 calculated 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.

【0422】なお、この実施の形態では、払出制御手段
は、払出制御信号に関するINT信号が立ち上がったこ
とを検知して、例えば割込処理によって1バイトのデー
タの取り込み処理を開始する。そして、複数の払出制御
コマンドを格納可能な受信リングバッファ(この例では
受信バッファ)が設けられているので、払出制御コマン
ドを受信後、そのコマンドにもとづく制御が開始されな
いうちに次の払出制御コマンドを受信しても、そのコマ
ンドが、払出制御手段において受信されないということ
はない。
In this embodiment, the payout control means detects that the INT signal related 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.

【0423】払出制御手段において、払出禁止状態であ
っても割込処理は起動されるので、払出制御手段は、払
出停止中であっても、払出制御コマンドを受信すること
ができる。そして、払出停止中では受信した払出制御コ
マンドに応じた払出処理は停止しているのであるが、複
数の払出制御コマンドを格納可能な受信リングバッファ
が設けられているので、遊技制御手段から送出された払
出制御コマンドは、払出制御手段において消失してしま
うようなことはない。
In the payout control means, the interrupt process is activated even in the payout prohibited 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.

【0424】そして、払出制御手段において、送出コマ
ンドを受信リングバッファにおけるどの領域に格納する
のかを示すアドレス指示手段としてのコマンド受信個数
カウンタが用いられる。よって、どの領域を使用すれば
よいのかの判断は容易である。
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.

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

【0426】さらに、上記の実施の形態では、電源監視
手段が電源基板910に設けられ、システムリセットの
ための信号を発生する回路は電気部品制御基板に設けら
れたが、それらがともに電気部品制御基板に設けられて
いてもよい。
Further, in the above-described 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.

【0427】次に、この実施の形態の遊技機が、電力供
給が開始したあとに遊技球の払い出しを開始する際の処
理の例について説明する。図64は、電力供給開始時に
おけるCPU56による払出可能状態指定コマンドの送
信処理や払出制御用CPU371による球払出装置97
を用いた遊技球の払出処理などの処理タイミングの一例
を示すタイミングチャートである。なお、図64でも、
電源基板910に搭載されているシステムリセット回路
65におけるリセットIC651の外付けのコンデンサ
の容量と、電源監視用IC902の外付けのコンデンサ
の容量とを適切に選定することによって、電源監視用I
C902から出力される電源断信号がハイレベルに立ち
上がることとなる電圧値(この実施の形態では+22
V)にVSL電源電圧が到達した後に、リセット信号が立
ち上がる例が示されている。
Next, an example of processing when the gaming machine of this embodiment starts paying out game balls after power supply is started will be described. FIG. 64 is a ball payout device 97 by the payout control CPU 371 for transmitting the payable state designation command by the CPU 56 at the start of power supply.
It is a timing chart showing an example of a processing timing such as a payout process of a game ball using. In addition, also in FIG.
By appropriately selecting the capacity of the external capacitor of the reset IC 651 in the system reset circuit 65 mounted on the power supply board 910 and the capacity of the external capacitor of the power monitoring IC 902, the power monitoring I
The voltage value (+22 in this embodiment) that causes the power-off signal output from C902 to rise to a high level.
An example is shown in which the reset signal rises after the VSL power supply voltage reaches V).

【0428】遊技機に電源が投入され、VSL電源電圧が
上昇して所定値(この実施の形態では+9V)に到達す
ると、図64に示されたように、主基板31のCPU5
6は、他の電気部品制御基板のCPU(この実施の形態
では払出制御基板37の払出制御用CPU371)が動
作を開始し、遅延回路960によって遅延される時間が
経過したあとに動作を開始する。動作を開始すると、主
基板31のCPU56は、制御状態を復旧する場合に
は、復旧する払出に関する制御状態が払出禁止状態でな
ければ払出可能状態指定コマンドを送信する(ステップ
S83,ステップS84参照)。なお、初期化する場合
には、CPU56は、払出禁止条件が成立していなけれ
ば払出可能状態指定コマンドを送信する(ステップS1
3b参照)。
When the gaming machine is powered on and the VSL power supply voltage rises and reaches a predetermined value (+ 9V in this embodiment), the CPU 5 of the main board 31 is set as shown in FIG.
6 starts operation after the CPU of another electric component control board (in this embodiment, the payout control CPU 371 of the payout control board 37) starts its operation and the time delayed by the delay circuit 960 elapses. . When the operation is started, the CPU 56 of the main board 31 transmits a payable state designation command when the control state related to the payout to be restored is not the payout prohibited state when the control state is restored (see steps S83 and S84). . In the case of initialization, the CPU 56 transmits a payable state designation command if the payout prohibition condition is not satisfied (step S1).
See 3b).

【0429】主基板31のCPU56が払出制御基板3
7に対して払出可能状態指定コマンドを出力することが
できるということは、主基板31のCPU56が既に立
ち上がっていることを意味する。従って、主基板31の
CPU56は、賞球カウントスイッチ301Aの検出信
号を受信することができる状態となっている。
The CPU 56 of the main board 31 controls the payout control board 3
The fact that the payable state designation command can be output to 7 means that the CPU 56 of the main board 31 has already started up. Therefore, the CPU 56 of the main board 31 is ready to receive the detection signal of the prize ball count switch 301A.

【0430】払出可能状態指定コマンドを受信すると、
払出制御用CPU371は、初期設定における上述した
ステップS713あるいは復旧処理における上述したス
テップS732で設定していた払出禁止状態を解除し
(ステップS753e参照)、未払出の遊技球が存在す
る場合には球払出装置97を用いて遊技球の払出処理を
実行する。そして、払い出された遊技球が賞球カウント
スイッチ301Aで検出される。賞球カウントスイッチ
301Aの検出信号は、動作を開始しているCPU56
および払出制御用CPU371それぞれによって確実に
受信される。
Upon receipt of the payable state designation command,
The payout control CPU 371 cancels the payout prohibition state set in the above-described step S713 in the initial setting or the above-described step S732 in the recovery process (see step S753e), and if there is an unpaid gaming ball, it is a ball. The payout device 97 is used to execute a payout process for gaming balls. Then, the paid game balls are detected by the prize ball count switch 301A. The detection signal of the prize ball count switch 301A indicates that the CPU 56 which has started the operation.
And the payout control CPU 371, respectively.

【0431】図65は、上述した本例の遊技機における
特徴部分の構成を示すブロック図である。図65に示す
ように、本例の遊技機は、遊技者が所定の遊技を行うこ
とが可能な遊技機であって、遊技機に設けられた電気部
品802を制御するための電気部品制御手段801と、
遊技の進行を制御する遊技制御手段561と、遊技機へ
の電力供給が停止しても所定期間は記憶内容を保持する
ことが可能な変動データ記憶手段551と、遊技機で用
いられる所定の電源の状態を監視して、遊技機への電力
の供給停止にかかわる検出条件が成立した場合に検出信
号を出力する電源監視手段910aとを備え、遊技制御
手段561は、電気部品制御手段801にコマンドを送
信するためのコマンド送信プログラムを実行して遊技の
進行に応じたコマンドを送信するコマンド送信手段56
2を有し、電源監視手段910aからの検出信号に応じ
て制御状態を復旧させるために必要なデータを変動デー
タ記憶手段551に保存するための電力供給停止時処理
(ステップS450)と、変動データ記憶手段551に
保存されていた記憶内容にもとづいて制御状態を電力供
給が停止する前の状態に復旧させる復旧処理(ステップ
S100)を実行し、コマンド送信手段562は、復旧
処理(ステップS100)にてサブルーチンコールによ
って呼び出したコマンド送信プログラムを実行すること
で、電気部品制御手段801に電力供給が停止する前の
制御状態へ復旧するためのコマンドを送信する処理(ス
テップS562a)を実行し、変動データ記憶手段55
1は、サブルーチンコールがあったことに応じて、実行
されていた制御プログラムのアドレスに関連するプログ
ラムアドレスデータを退避させるスタック領域552を
含み、遊技制御手段561が、スタックポインタ563
により示されるアドレスによりスタック領域552に退
避されたデータのうち、次に読み出されるべきデータが
格納されているアドレスを特定し、電力供給停止時処理
(ステップS450)において、スタックポインタ56
3により示されるアドレスに関連するスタックアドレス
アドレスデータ552aを変動データ記憶手段551に
退避する処理(ステップS450a)を行い、復旧処理
(ステップS100)において、コマンド送信手段56
2が最初にコマンドを送信する前に、電力供給停止時処
理(ステップS450)にて変動データ記憶手段551
に退避したスタックアドレスデータ552aによって、
スタックポインタ563を設定する(ステップS100
a)ことを特徴とするものである。
FIG. 65 is a block diagram showing a structure of a characteristic part in the above-mentioned gaming machine of this example. As shown in FIG. 65, the gaming machine of this example is a gaming machine that allows a player to play a predetermined game, and an electric component control means for controlling an electric component 802 provided in the gaming machine. 801,
A game control means 561 for controlling the progress of the game, a variable data storage means 551 capable of retaining the stored contents for a predetermined period even if the power supply to the game machine is stopped, and a predetermined power source used in the game machine. And a power supply monitoring means 910a for outputting a detection signal when a detection condition relating to stop of supply of electric power to the gaming machine is satisfied, and the game control means 561 sends a command to the electric component control means 801. Command transmitting means 56 for transmitting a command according to the progress of the game by executing the command transmitting program for transmitting
2, the power supply stop processing (step S450) for storing the data necessary for restoring the control state in the fluctuation data storage means 551 according to the detection signal from the power supply monitoring means 910a, and the fluctuation data. Based on the stored contents stored in the storage unit 551, a restoration process (step S100) for restoring the control state to the state before the power supply is stopped is executed, and the command transmission unit 562 performs the restoration process (step S100). By executing the command transmission program called by the subroutine call, the process of transmitting a command for restoring the control state before the power supply is stopped to the electric component control means 801 (step S562a) is executed, and the variation data Storage means 55
1 includes a stack area 552 for saving the program address data related to the address of the control program being executed in response to the subroutine call, and the game control means 561 causes the stack pointer 563.
Among the data saved in the stack area 552 by the address indicated by, the address where the data to be read next is stored is specified, and in the power supply stop processing (step S450), the stack pointer 56
The stack address data 552a associated with the address indicated by 3 is saved in the variable data storage means 551 (step S450a), and the command transmission means 56 is executed in the restoration processing (step S100).
Before the second first transmits the command, the fluctuation data storage means 551 is processed in the power supply stop process (step S450).
The stack address data 552a saved in
Set the stack pointer 563 (step S100
It is characterized by a).

【0432】以上説明したように、遊技状態を復旧させ
るための制御コマンドを送信(ステップS83〜ステッ
プS86)する前に、スタックポインタを復帰(ステッ
プS81)する構成としているので、コマンドを送信す
るための処理(コマンドセット処理)をサブルーチンと
することができ、そのサブルーチンをコールすることで
遊技状態を復旧させるための制御コマンドの送信処理を
実行することができるようになる。従って、遊技制御に
用いられるプログラム容量を減らすことができ、ROM
54の必要容量を低減させることができる。また、CP
U56が、遊技状態復旧処理を効率よく実行することが
できる。すなわち、サブルーチンを利用した小容量のプ
ログラムによって遊技状態復旧処理が実行されるので、
遊技状態復旧処理がプログラム構成上無駄のない効率の
良い処理となるのである。
As described above, since the stack pointer is restored (step S81) before the control command for restoring the game state is transmitted (steps S83 to S86), the command is transmitted. The process (command set process) can be a subroutine, and by calling the subroutine, it becomes possible to execute the control command transmission process for restoring the game state. Therefore, the program capacity used for game control can be reduced, and the ROM
The required capacity of 54 can be reduced. Also, CP
U56 can efficiently execute the game state recovery process. That is, since the game state recovery process is executed by a small-capacity program that uses a subroutine,
The game state recovery process is an efficient process with no waste in terms of program configuration.

【0433】また、上述したように、復旧処理にて払出
可能状態指定コマンドを送信する場合に、サブルーチン
(ステップS84)を利用する構成としたので、遊技状
態復旧処理における払出可能状態指定コマンドの送信処
理を効率良く行うことができる。
As described above, when the payout possible state designating command is transmitted in the recovery process, the subroutine (step S84) is used. Therefore, the payout possible state designating command is transmitted in the game state recovery process. The processing can be performed efficiently.

【0434】また、上述したように、可変表示装置9の
表示状態を復旧させるための表示制御コマンドを送信す
る場合に、サブルーチン(ステップS86)を利用する
構成としたので、遊技状態復旧処理における表示状態を
復旧させるための表示制御コマンドの送信処理を効率良
く行うことができる。具体的には、遊技状態復旧処理に
て、サブルーチン(ステップS86)を用いて確定図柄
に関する情報を復旧させるための図柄指定コマンドを送
信するようにしたので、電源断前に表示制御手段が認識
していた確定図柄に関する情報の記憶状態を復旧させる
ための表示制御コマンドの送信処理を効率良く行うこと
ができる。また、遊技が再開されたときに確定図柄の関
する情報を遊技者に確実に報知することができる。ま
た、遊技状態復旧処理にて、サブルーチン(ステップS
86)を用いて確変状態に関する表示状態を復旧させる
ための確変状態復旧指定コマンドを送信するようにした
ので、電源断前における確変状態であることを示す表示
状態に復旧させるための表示制御コマンドの送信処理を
効率良く行うことができる。また、遊技が再開したとき
に確変状態であるか否かを遊技者に確実に報知すること
ができる。
Further, as described above, when the display control command for restoring the display state of the variable display device 9 is transmitted, the subroutine (step S86) is used, so that the display in the game state restoration process is performed. It is possible to efficiently perform the process of transmitting the display control command for restoring the state. Specifically, in the game state restoration process, a subroutine (step S86) is used to transmit a symbol designating command for restoring the information relating to the fixed symbol, so the display control means recognizes it before the power is turned off. It is possible to efficiently perform the transmission process of the display control command for restoring the stored state of the information regarding the fixed symbol that has been used. Further, when the game is restarted, it is possible to reliably inform the player of information relating to the fixed symbol. In the game state restoration process, a subroutine (step S
86) is used to send the probability variation state restoration specification command for recovering the display state related to the probability variation state, so that the display control command for restoring the display state indicating the probability variation state before power off is restored. The transmission process can be performed efficiently. Further, when the game is restarted, it is possible to surely inform the player whether or not the state is the probability change state.

【0435】また、上述したように、遊技状態復旧処理
にて、制御状態を復旧させるためのコマンドを送信する
処理を行った直後に、タイマ割込の設定(ステップS8
7)を行うように構成されているので、遊技制御手段と
他の電気部品制御手段との間で同期をとることが容易と
なる。
Further, as described above, in the game state restoration process, immediately after the process of transmitting the command for restoring the control state is performed, the timer interrupt is set (step S8).
Since it is configured to perform 7), it becomes easy to synchronize the game control means and the other electric component control means.

【0436】また、上述したように、電力供給停止時処
理(図23〜図25、図51〜図53参照)にて、検出
維持期間が経過するまでの間は、コンデンサ923,9
24に充電された電力を用いて、電源基板910が、賞
球カウントスイッチ301Aおよび球貸しカウントスイ
ッチ301Bを駆動可能な電力を供給するとともに、ソ
レノイド310が振分部材311の状態を保持するため
の駆動電力を供給し、遊技制御手段が賞球カウントスイ
ッチ301Aからの検出信号の入力処理(ステップS4
66〜ステップS486)を行い、払出制御手段(払出
制御用CPU371)が賞球カウントスイッチ301A
および球貸しカウントスイッチ301Bからの検出信号
の入力処理(ステップS816〜ステップS834)を
行う構成としたので、電力供給停止時処理にて、払い出
された景品遊技媒体(入賞領域への入賞にもとづいて景
品として払い出される遊技媒体)や貸出遊技媒体(遊技
者からの貸出要求に応じて貸し出される遊技媒体)を確
実に検出することができるようになる。すなわち、上述
した遊技機によれば、電力供給停止時処理にて払い出さ
れた遊技媒体の検出を確実に実行することができるの
で、遊技媒体の未払出数を正確に把握することができる
ようになる。
Further, as described above, the capacitors 923 and 9 are connected until the detection maintaining period elapses in the power supply stop process (see FIGS. 23 to 25 and 51 to 53).
The power supply board 910 supplies electric power capable of driving the prize ball count switch 301A and the ball lending count switch 301B by using the electric power charged in 24, and the solenoid 310 holds the state of the distribution member 311. Drive power is supplied, and the game control means inputs the detection signal from the prize ball count switch 301A (step S4).
66 to step S486), and the payout control means (payout control CPU 371) causes the prize ball count switch 301A.
Since the input processing of the detection signal from the ball lending count switch 301B (step S816 to step S834) is performed, the paid game game medium (based on the winning of the winning area in the power supply stop processing). It is possible to reliably detect a game medium to be paid out as a prize) and a lending game medium (a game medium to be lent out 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.

【0437】また、上述したように、検出維持期間が経
過するまでの間は、電源基板910が、ソレノイド31
0に対して振分部材311を駆動することが可能な電力
を供給する構成とされているので、通路切換手段として
のソレノイド310の駆動状態を電気的な構成によって
保持させることができる。上記のような構成とされてい
ることから、電源基板910は、検出維持期間が経過す
るまでの間、振分部材311の状態を維持させるための
電力を供給する作動状態保持手段として機能している。
また、上記のように構成されているので、検出維持期間
が経過するまでの間は振分部材311の状態が維持さ
れ、振分部材311が動作することがないので、振分部
材311と球通路293a,293b内の壁との間に遊
技球が挟まってしまうことを防止できる。
As described above, the power supply board 910 keeps the solenoid 31 until the detection maintaining period elapses.
Since the electric power that can drive the distribution member 311 is supplied to 0, the driving state of the solenoid 310 as the passage switching unit can be maintained by the electric configuration. With the above-described configuration, the power supply substrate 910 functions as an operating state holding unit that supplies electric power for maintaining the state of the distribution member 311 until the detection maintaining period elapses. There is.
Further, since the configuration is as described above, the state of the distribution member 311 is maintained until the detection maintaining period elapses, and the distribution member 311 does not operate. It is possible to prevent the game ball from being caught between the walls inside the passages 293a and 293b.

【0438】また、上述したように、停電等の発生に応
じて電源断信号が出力されたら、まず、球払出装置97
の駆動が停止された後、所定の検出維持期間、払出検出
手段(賞球カウントスイッチ301Aや球貸しカウント
スイッチ301B)からの検出信号の入力処理が実行さ
れ、その後、払出制御状態を保存するための処理が行わ
れる。従って、停電発生時に払出途中であった遊技球
も、バックアップRAMの保存内容に確実に反映され
る。よって、遊技機への電力供給停止時に制御状態をバ
ックアップ記憶手段に保存するように構成した場合に、
保存される制御状態と実際の制御状態との間に矛盾等を
生じさせないようにすることができる。
Also, as described above, when the power-off signal is output in response to the occurrence of a power failure or the like, first, the ball payout device 97
In order to save the payout control state after the driving of the is stopped, the detection signal is input from the payout detecting means (prize ball count switch 301A or ball lending count switch 301B) for a predetermined detection maintaining period. Is processed. Therefore, the game balls that were in the process of being paid out at the time of the power failure are surely 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 inconsistency between the saved control state and the actual control state.

【0439】また、上述したように、電源供給停止時処
理のあとの待機状態が継続して実行されているのにもか
かわらず電力供給が停止していない場合に、待機状態か
ら復帰させるための復帰信号をCPU56や払出制御用
CPU371に出力する構成としたので、復帰信号によ
って、CPU56や払出制御用CPU371を待機状態
から制御実行状態に復帰させることが可能になる。従っ
て、ごく短時間で復旧する電源の瞬断等が生じても制御
に支障を来すことがないようにすることができる。
Further, as described above, in the case where the power supply is not stopped even though the standby state after the power supply stop processing is continuously executed, the operation for recovering from the standby state is performed. Since the return signal is output to the CPU 56 and the payout control CPU 371, the return signal enables the CPU 56 and the payout control CPU 371 to return from the standby state to the control execution state. Therefore, it is possible to prevent the control from being disturbed even if the power supply is interrupted for a very short time.

【0440】すなわち、上述した実施の形態では、記憶
保持手段(例えばバックアップRAM)を有する遊技制
御手段および払出制御手段が電源断信号に応じて電力供
給停止時処理を行った後にシステムリセットを待つ待機
状態にあるときに、電源復旧に応じて復帰信号が出力さ
れると、遊技制御手段および払出制御手段は、プログラ
ムの最初部分から動作を再開する。その際、電力供給停
止時処理において保存された制御状態が復旧されるの
で、遊技者から見ると、何事もなかったかのように遊技
が続行される。
That is, in the above-described embodiment, the game control means and the payout control means having the storage holding means (for example, backup RAM) perform the power supply stop time processing in response to the power-off signal and wait for the system reset. When the return signal is output in response to the power restoration in the state, the game control means and the payout control means restart the operation from the first part of the program. At this time, the control state saved in the power supply stop process is restored, so that the game continues as if nothing happened to the player.

【0441】また、上述したように、復帰信号を出力可
能な手段(例えばカウンタ971等で構成される手段:
待機状態復帰手段の一例)が電源基板910に搭載され
る構成としたので、各制御基板毎に待機状態復帰手段を
設ける必要がなく、簡単な構成で待機状態から復帰させ
ることができるようになる。
Also, as described above, means capable of outputting a return signal (for example, means constituted by the counter 971 or the like:
Since the standby state returning unit is mounted on the power supply board 910, it is not necessary to provide the standby state returning unit for each control board, and the standby state can be restored with a simple configuration. .

【0442】さらに、上述したように、電気部品制御手
段は、電力供給が開始されたときに、電力供給停止時処
理において保存された制御状態が残っていても、操作手
段(クリアスイッチ921)が操作されている場合に
は、状態復旧処理を実行せず初期化処理を実行する。よ
って、遊技店員等が保存状態を容易にクリアすることが
でき、遊技店での遊技機運用上の利便性を向上させるこ
とが可能となる。
Further, as described above, when the electric component control means starts the electric power supply and the control state saved in the electric power supply stop processing remains, the operating means (clear switch 921) operates. If it is operated, the initialization process is executed without executing the state recovery process. Therefore, it is possible for a game shop employee or the like to easily clear the saved state, and it is possible to improve the convenience of operating the game machine in the game shop.

【0443】なお、上述した実施の形態では、遊技状態
復旧処理にて、サブルーチン(ステップS86)を用い
て確定図柄に関する情報を復旧させるための図柄指定コ
マンドや確変状態に関する表示状態を復旧させるための
確変状態復旧指定コマンドを送信するようにしていた
が、可変表示装置9の表示状態を復旧させるための他の
表示制御コマンドを送信する構成としてもよい。
In the embodiment described above, in the game state restoration process, a symbol designating command for restoring the information relating to the fixed symbol and the display state relating to the probability variation state are restored using the subroutine (step S86). Although the probability variation state restoration designation command is transmitted, other display control commands for restoring the display state of the variable display device 9 may be transmitted.

【0444】また、上述した実施の形態では、始動入賞
記憶数を始動記憶表示器18を用いて表示する構成とし
ていたが、可変表示装置9の表示領域で始動入賞記憶数
を表示するようにしてもよい。この場合、可変表示装置
9に、始動入賞口14に入った有効入賞球数すなわち始
動記憶数を表示する例えば4つの特別図柄始動記憶表示
エリア(始動記憶表示エリア)を設ける構成とし、有効
始動入賞がある毎に表示色を変化させる(例えば青色表
示から赤色表示に変化させる)始動記憶表示エリアを1
増やし、可変表示装置9の可変表示が開始される毎に表
示色が変化している始動記憶数表示エリアを1減らす
(すなわち表示色をもとに戻す)ようにすればよい。な
お、図柄表示エリアと始動記憶表示エリアとが区分けさ
れていても、始動記憶表示エリアを図柄表示エリアの一
部に設けるようにしてもよい。始動記憶表示エリアを図
柄表示エリアの一部に設けた場合には、可変表示中は始
動記憶数の表示を中断するようにすればよい。
Further, in the above-mentioned embodiment, the number of stored winning prizes is displayed by using the starting memory indicator 18. However, the number of stored winning prizes is displayed in the display area of the variable display device 9. Good. In this case, the variable display device 9 is provided with, for example, four special symbol starting memory display areas (starting memory display area) for displaying the number of effective winning balls that have entered the starting winning opening 14, that is, the starting memory number. Change the display color each time there is (for example, change from blue display to red display)
It is sufficient to increase the number and reduce the display area for starting memory number, in which the display color is changed each time the variable display of the variable display device 9 is started, by 1 (that is, the display color is returned to the original one). Even if the symbol display area and the starting memory display area are divided, the starting memory display area may be provided in a part of the symbol display area. When the start memory display area is provided in a part of the symbol display area, the display of the start memory number may be interrupted during the variable display.

【0445】また、上述した実施の形態では、始動入賞
記憶数の最大値を4としていたが、最大値はいくつであ
ってもよい。特に、可変表示装置9の表示領域で始動入
賞記憶数を表示する構成とした場合には、始動入賞記憶
数の最大値を大きい値としても、容易に対応することが
できる。
Further, in the above-mentioned embodiment, the maximum value of the number of memory for winning the winning prize is set to 4, but the maximum value may be any number. In particular, when the number of stored winning awards is displayed in the display area of the variable display device 9, even if the maximum value of the number of awarded winning winnings is set to a large value, it is possible to easily deal with it.

【0446】また、上述した実施の形態では、総合個数
記憶や貸し球個数記憶などをバックアップRAM領域に
記憶させるようにして、払出制御基板37において各種
のデータをバックアップする構成としていたが、払出制
御基板37では各種のデータをバックアップしない構成
とされていてもよい。この場合、主基板31で未払出の
賞球数および貸し球数をバックアップ記憶するようにし
て、電力供給が再開した場合に、主基板31から、未払
出の賞球数および貸し球数を示す払出制御コマンドを払
出制御基板37に向けて送信する構成とすればよい。上
記のように構成すれば、払出制御基板37が各種のデー
タのバックアップを行わない構成とされていても、電力
供給が再開したあとに、払出制御用CPU371が未払
出の賞球や貸し球の払出処理を行うことが可能となる。
Further, in the above-described embodiment, the total number memory, the number of lent balls, and the like are stored in the backup RAM area so that the payout control board 37 backs up various data. The substrate 37 may be configured not to back up various data. In this case, the number of unpaid prize balls and the number of lent balls are backed up and stored in the main board 31, and when the power supply is restarted, the number of unpaid prize balls and the number of lent balls are indicated from the main board 31. The payout control command may be transmitted to the payout control board 37. According to the above-mentioned configuration, even if the payout control board 37 is configured not to back up various data, the payout control CPU 371 detects the unpaid prize balls or loan balls after the power supply is restarted. It becomes possible to perform payout processing.

【0447】また、上述した実施の形態では、遊技状態
復旧処理にて、サブルーチン(ステップS84、ステッ
プS86)を用いて払出制御コマンドや表示制御コマン
ドを送信する構成としていたが、ランプやLEDなどの
発光体の制御状態を復旧させるためにランプ制御コマン
ドを送信するようにしてもよく、スピーカ27からの音
声出力状態を復旧させるために音制御コマンドを送信す
るようにしてもよい。、例えば、遊技状態復旧処理に
て、サブルーチンを用いて始動入賞記憶数ランプ指定コ
マンドを送信するようにして、始動記憶表示器18の表
示状態を復旧させるようにしてもよい。上記のようにす
れば、サブルーチンを用いて始動入賞記憶数ランプ指定
コマンドを送信するので、始動記憶表示器18の表示状
態を復旧させるためのランプ制御コマンドの送信処理を
効率良く行うことができる。また、遊技が再開されたと
きに遊技者に対して始動入賞記憶数を確実に報知するこ
とができるようになる。なお、始動記憶表示器18を表
示制御手段が制御する構成とする場合には、サブルーチ
ンを用いて表示制御コマンドとしての始動入賞記憶数ラ
ンプ指定コマンドを送信するようにすればよい。
Further, in the above-mentioned embodiment, the payout control command and the display control command are transmitted by using the subroutines (step S84, step S86) in the game state recovery processing, but the lamp, LED, etc. A lamp control command may be transmitted to restore the control state of the light emitter, and a sound control command may be transmitted to restore the voice output state from the speaker 27. For example, in the game state restoration process, the display state of the start memory indicator 18 may be restored by transmitting a start prize winning memory number lamp designation command using a subroutine. According to the above-mentioned configuration, since the starting prize winning memory number lamp designating command is transmitted using the subroutine, it is possible to efficiently perform the lamp control command transmitting process for restoring the display state of the starting memory indicator 18. Further, when the game is restarted, the player can be surely informed of the number of starting winning prizes stored. When the starting memory indicator 18 is configured to be controlled by the display control means, a subroutine may be used to send a starting winning memory number lamp designation command as a display control command.

【0448】また、上述した実施の形態では、払出制御
手段が、電力供給停止時処理において、賞球カウントス
イッチ301Aおよび球貸しカウントスイッチ301B
がオンしたか否かをそれぞれ確認する構成としていた
が、いずれか一方のスイッチの状態を確認する構成とし
てもよい。
Further, in the above-mentioned embodiment, the payout control means performs 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.

【0449】図66〜図68は、上記のようにいずれか
一方のスイッチの状態を確認する構成とする場合の電源
基板910からの電源断信号に応じて実行されるマスク
不能割込処理(NMI処理:電力供給停止時処理)の処
理例を示すフローチャートである。なお、上述した図5
1〜図53にて既に説明した処理等については詳細な説
明を省略する。
66 to 68 are 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 already described with reference to FIGS. 1 to 53 will be omitted.

【0450】マスク不能割込処理において、払出制御用
CPU371は、ステップS801〜ステップS808
の処理を行ったあと、ステップS809〜ステップS8
15に示した出力ポートクリア処理を行う。その後、こ
の実施の形態では、所定期間(検出維持期間)、賞球カ
ウントスイッチ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 S809 to step S8
The output port clear process shown in 15 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.

【0451】この例では、払出制御用CPU371は、
賞球処理中フラグがオンしているか否か確認し(ステッ
プS847)、オンしている場合には賞球処理中である
ため、賞球カウントスイッチ301Aによって賞球が検
出される可能性があると判定する。賞球処理中フラグが
オンでなければ、払出制御用CPU371は、球貸し処
理中フラグがオンしているか否か確認し(ステップS8
48)、オンしている場合には球貸し処理中であるた
め、球貸しカウントスイッチ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 S847). If the award ball processing flag is turned on, it means that the award ball processing 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).
48) 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.

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

【0453】ステップS847にて賞球処理中フラグが
オンであれば、払出制御用CPU371は、賞球カウン
トスイッチ301Aからの検出信号の入力処理(賞球カ
ウントスイッチ検出処理)を実行する。賞球カウントス
イッチ検出処理では、払出制御用CPU371は、ま
ず、払出確認期間計測用カウンタに、払出確認期間に対
応した値mを設定する(ステップS816)。そして、
払出制御用CPU371は、払出確認期間計測用カウン
タの値を−1し(ステップS817)、払出確認期間計
測用カウンタの値を確認する(ステップS818)。そ
の値が0であれば、賞球カウントスイッチ検出処理を終
了し、制御状態を保存するための処理である電力供給停
止時処理に移行する。
If the award ball processing flag is turned on in step S847, the payout control CPU 371 executes an input process of the detection signal from the award ball count switch 301A (award 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 the payout confirmation period in the payout confirmation period measurement counter (step S816). And
The payout control CPU 371 decrements the value of the payout confirmation period measurement counter by 1 (step S817), and confirms the value of the payout confirmation period measurement counter (step S818). 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.

【0454】払出確認期間計測用カウンタの値が0にな
っていなければ、上述した図54と同様にステップS8
19〜ステップS826の処理を行う。ただし、賞球カ
ウントスイッチ検出処理では、ステップS821にて検
出期間用カウンタの値が0になっていない場合、ステッ
プS824にて賞球カウントスイッチ301Aがオン状
態を示していない場合、ステップS826にて検出期間
用カウンタに初期値nをセットした場合のいずれの場合
でも、それらの処理のあとにステップS817の処理に
戻る。以上の処理によって、払出確認期間内に賞球カウ
ントスイッチ301Aがオンしたら、総合個数記憶の値
が−1される。
If the value of the payout confirmation period measuring counter is not 0, the same as in FIG. 54 described above, step S8.
The processing of 19 to step S826 is performed. However, in the prize ball count switch detection processing, if the value of the detection period counter is not 0 in step S821, if the prize ball count switch 301A does not indicate the ON state in step S824, in step S826. In any case where the detection period counter is set to the initial value n, the processing returns to step S817 after the processing. By the above processing, if the prize ball count switch 301A is turned on within the payout confirmation period, the value of the total number memory is decremented by one.

【0455】ステップS848にて球貸し処理中フラグ
がオンであれば、払出制御用CPU371は、球貸しカ
ウントスイッチ301Bからの検出信号の入力処理(球
貸しカウントスイッチ検出処理)を実行する。球貸しカ
ウントスイッチ検出処理では、払出制御用CPU371
は、まず、払出確認期間計測用カウンタに、払出確認期
間に対応した値mを設定する(ステップS816a)。
そして、払出制御用CPU371は、払出確認期間計測
用カウンタの値を−1し(ステップS817a)、払出
確認期間計測用カウンタの値を確認する(ステップS8
18a)。その値が0であれば、球貸しカウントスイッ
チ検出処理を終了し、制御状態を保存するための処理で
ある電力供給停止時処理に移行する。
If the ball lending processing in-progress flag is on in step S848, the payout control CPU 371 executes input processing of a detection signal from the ball lending count switch 301B (ball lending count switch detection processing). In the ball lending count switch detection processing, the payout control CPU 371
First, the payout confirmation period measuring counter is set to a value m corresponding to the payout confirmation period (step S816a).
Then, the payout control CPU 371 decrements the value of the payout confirmation period measurement counter by 1 (step S817a), and confirms the value of the payout confirmation period measurement counter (step S8).
18a). 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.

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

【0457】また、ステップS847とステップS84
8にて、賞球処理中フラグおよび球貸し処理中フラグが
ともにオンでなければ、賞球カウントスイッチ301A
と球貸しカウントスイッチ301Bのいずれもオンする
可能性がないので、払出制御用CPU371は、スイッ
チのチェックを行うことなく、上述した図53の処理と
同様のバックアップRAMの内容の保存などの処理(ス
テップS835〜ステップS846)を行ったあと待機
状態(ループ状態)に入る。
Also, steps S847 and S84.
If both the prize ball processing flag and the ball lending processing flag are not turned on at 8, the 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 processing such as saving the contents of the backup RAM similar to the processing of FIG. After performing steps S835 to S846, a standby state (loop state) is entered.

【0458】上記のように、遊技球が検出される可能性
がない場合には、賞球カウントスイッチ301Aおよび
球貸しカウントスイッチ301Bのいずれの検出状態も
確認しない構成としたので、無駄な処理を省略すること
ができ、電力供給停止時処理(図66〜図68)を迅速
に行うことができる。
As described above, when there is no possibility that a game ball is detected, neither the prize ball count switch 301A nor the ball lending count switch 301B is detected. This can be omitted, and the processing at the time of stopping the power supply (FIGS. 66 to 68) can be performed quickly.

【0459】また、上記のように、賞球カウントスイッ
チ301Aまたは球貸しカウントスイッチ301Bのう
ち、遊技球が検出される可能性のあるスイッチについて
のみ選択的に検出状態を確認する構成としたことで、無
駄な処理を省略することができる。また、図52に示し
たスイッチ検出処理のループ処理よりも、図66等に示
すスイッチ検出のループ処理の方が処理期間が短いの
で、たとえ所定時間計測用カウンタに設定する値が同じ
であっても、最終回のループ処理にて処理期間に差が出
るため、上記の構成とすることで電力供給停止時処理
(図66〜図68)を迅速に行うことができるようにな
る。従って、図51等に示した電力供給停止時処理が実
行される場合と比較して、コンデンサ923,924の
容量を小さくすることができる。
Further, as described above, among the prize ball count switch 301A or the ball lending count switch 301B, only the switch in which the game ball may be detected is selectively configured to check the detection state. Therefore, useless processing can be omitted. Further, since the processing period of the switch detection loop processing shown in FIG. 66 and the like is shorter than that of the switch detection processing loop processing shown in FIG. 52, 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, with the above configuration, the power supply stop processing (FIGS. 66 to 68) can be quickly performed. Therefore, the capacities of the capacitors 923 and 924 can be reduced as compared with the case where the power supply stop processing shown in FIG. 51 and the like is executed.

【0460】なお、上記の例では、賞球処理中フラグが
オンでない場合に、球貸し処理中フラグの状態を確認す
る構成としたが、賞球処理中フラグがオンでなければ直
ちに球貸しカウントスイッチ検出処理を実行する構成と
してもよい。また、賞球処理中フラグを確認することな
く球貸し処理中フラグの状態を確認する構成とし、球貸
し処理中フラグがオンでなければ直ちに賞球カウントス
イッチ検出処理を実行する構成としてもよい。このよう
に構成すれば、検出される可能性が残されているスイッ
チの状態を迅速に確認することができる。
In the above example, when the award ball processing flag is not on, the state of the ball lending processing flag is checked. However, if the award ball processing flag is not on, the ball lending count is immediately calculated. 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.

【0461】また、上記の例では、賞球カウントスイッ
チ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 checked. 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.

【0462】また、上述した各実施の形態では、ソレノ
イド310のオン/オフに応じて、振分部材311が球
貸し側/賞球側に遊技球が流下するように倒れる構成と
していたが、例えば、振分部材311が倒れる位置をモ
ータによって制御する構成とし、モータがオンする度に
球貸し側/賞球側に交互に振分部材311が倒れる構成
としてもよい。この構成では、振分部材311は、モー
タが新たにオンしない限り、現在の状態を継続して維持
することになる。よって、上記のように構成すること
で、電力供給停止時処理にて、モータの駆動電源の電圧
の状態とは無関係に、機械的な構造によって振分部材3
11の状態を維持しておくことができるようになる。な
お、上記の構成とした場合には、電力供給が開始したあ
との復旧処理あるいは初期化処理にて、振分部材311
の状態を初期状態(例えば、球貸し側に遊技球が流下す
る状態)に戻す処理を実行するようにすればよい。所定
の処理を行う度に球貸し側/賞球側に交互に振分部材3
11が倒れるようにすることができるものであれば、モ
ータ以外の部材(例えばラッチ式のソレノイドなど)を
用いるようにしてもよい。上記のように構成した場合に
は、振分部材311が倒れる位置を制御するモータが通
路切換手段として機能するとともに、モータからの駆動
信号がない限り現在の状態を維持可能な機構を有する振
分部材311が作動状態保持手段として機能することに
なる。また、振分部材311が有する球貸し側/賞球側
の状態を維持可能な機構が、検出維持期間が経過するま
での間、通路切換手段の状態を保持可能な保持機構とし
て機能することになる。
Further, in each of the above-mentioned embodiments, the distribution member 311 is arranged to fall 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 configuration may be such that the position where the distribution member 311 falls down is controlled by a motor, and the distribution member 311 alternates between the ball lending side and the prize ball side every 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, the distribution member 311 is subjected to the restoration process or the initialization process after the power supply is started.
It suffices to execute a process of returning the state of 1 to the initial state (for example, the state where the game ball flows down to the ball lending side). Each time a predetermined process is performed, the allocating member 3 is alternately switched to the ball lending side / prize ball side.
A member other than the motor (for example, a latch-type solenoid) may be used as long as 11 can be tilted. 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.

【0463】また、上記の各実施の形態では、遊技媒体
検出判定期間(検出期間用カウンタによって計測される
期間)がほぼ2msとなるようにn(ステップS826
やステップS834参照)を設定するようにしてもよい
旨の説明をしたが、例えばステップS817からステッ
プS817に戻るループ処理が2ms毎に実行されるよ
うに、ステップS817のあとに所定の遅延期間(2m
sから通常のループ処理にかかる期間を減算した期間)
が経過するまで遅延させる処理を行う構成としてもよ
い。遅延期間は、例えばソフトウェアタイマによって計
測されるようにすればよい。なお、ステップS817a
からステップS817aに戻るループ処理についても同
様である。また、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 S826).
Or step S834) may be set. However, for example, a predetermined delay period (step S817) may be set after step S817 so that the loop process of returning from step S817 to step S817 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 S817a
The same applies to the loop processing that returns from step S817a to step S817a. Further, the period may be other than 2 ms.

【0464】また、上記の各実施の形態では、電力供給
停止時処理において、遊技球が払い出されたか否かを監
視し、払い出された場合には未払出の遊技球数として記
憶している値を減算する処理(ステップS480、ステ
ップS823、ステップS831)を行っていたが、未
払出数の記憶値を減算する処理を行うことなく、賞球カ
ウントスイッチ301Aや球貸しカウントスイッチ30
1Bがオンしたか否かを確認し、その確認結果を電源バ
ックアップされているRAMに保存する構成としてもよ
い。この場合、電力供給が開始したあとの復旧処理(図
21、図50参照)において、電源バックアップされて
いるRAMの記憶内容にもとづいて電力供給停止時処理
の実行中に賞球カウントスイッチ301Aや球貸しカウ
ントスイッチ301Bがオンしていたことが確認された
場合に、未払出数の記憶値を減算する処理を行うように
すればよい。上記のように、電力供給停止時処理におい
て賞球カウントスイッチ301Aや球貸しカウントスイ
ッチ301Bがオンした場合に、未払出数を更新するこ
となく、その賞球カウントスイッチ301Aや球貸しカ
ウントスイッチ301Bからの検出信号の入力処理の結
果を保存して、復旧時に、保存されていた入力処理の結
果に応じて未払出数を更新する構成とすれば、電力供給
停止時処理にて未払出数として記憶している値(未払出
数データ)を変更する処理を行う必要がないので、電力
供給停止時処理にて未払出数データを変更する処理を行
う場合と比較して電力供給停止時処理を迅速に終えるこ
とができるようになり、電力供給が停止する前に未払出
の遊技球数を管理するために実行される処理をより確実
に完了させることができるようになる。
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 S480, step S823, step S831) was performed, the process of subtracting the stored value of the unpaid amount is not performed, and the prize ball count switch 301A and the ball lending count switch 30 are executed.
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. 21 and 50) 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 whose power is backed up. 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 prize ball count switch 301A or the ball lending count switch 301B is used 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 payments is updated according to the saved result of the input processing at the time of restoration, it is stored as the number of unpaid payments in the power supply stop processing. Since it is not necessary to perform the process to change the value (unpaid amount data), the power supply stop process is quicker than when the power supply stop process is executed to change the unpaid amount data. In order to be able to more reliably complete the processing executed to manage the number of unpaid gaming balls before the power supply is stopped. It made.

【0465】また、上記の各実施の形態では、球払出装
置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 sorting solenoid 31 is used.
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.

【0466】また、上記の各実施の形態では、電源基板
910からの復帰信号は、主基板31においてCPU5
6のリセット端子に入力されたが、I/Oポート部57
の入力ポートに入力されてもよい。
Further, in each of the above embodiments, the return signal from the power supply board 910 is sent to the CPU 5 on the main board 31.
6 was input to the reset terminal, but I / O port 57
May be input to the input port of.

【0467】このように構成される場合には、遊技制御
手段のマスク不能割込処理(電力供給停止時処理)にお
いて、図23〜図25に示されたステップS451〜S
498の処理の後のシステムリセットを待つ待機状態に
おいて、入力ポートを介して復帰信号のオンの検出が実
行されるようにし、復帰信号がオンになったら、図19
に示されたメイン処理のステップS1にジャンプするよ
うにすればよい。メイン処理の実行が開始されると、電
源断信号が出力されたときに遊技状態が保存されている
ので、ステップS10の処理で遊技状態復旧処理が実行
され、遊技制御は、電源断信号発生時の状態に戻り、そ
の状態から遊技制御が続行される。
In the case of such a configuration, in the non-maskable interrupt process (power supply stop process) of the game control means, steps S451 to S shown in FIGS.
In the standby state waiting for the system reset after the processing of 498, detection of ON of the return signal is executed through the input port, and when the return signal is turned ON, FIG.
The process may jump to step S1 of the main process shown in FIG. When the execution of the main process is started, the game state is stored when the power-off signal is output, so the game state restoration process is executed in the process of step S10, and the game control is performed when the power-off signal is generated. Returning to the state of, the game control is continued from that state.

【0468】なお、復帰信号は、例えば入力ポート1の
ビット5(図18参照)に入力される。また、この例で
は、復帰信号のオンが検出されると直ちにステップS1
にジャンプしたが、ノイズ除去等のために、複数回連続
したオンを検出したらステップS1にジャンプするよう
にしたり、オン検出後所定期間経過後にも再度オンが検
出されたらステップS1にジャンプするようにしてもよ
い。さらに、払出制御手段のマスク不能割込処理におい
ても、入力ポートに入力される復帰信号を検出するよう
にしてもよい。
The return signal is input to, for example, bit 5 of input port 1 (see FIG. 18). Further, in this example, immediately after the turn-on of the return signal is detected, the step S1 is performed.
However, in order to remove noise, etc., the CPU may jump to step S1 when a plurality of consecutive ONs are detected, or jump to step S1 when a ON is detected again after a predetermined period has elapsed after the ON detection. May be. Further, the return signal input to the input port may be detected also in the non-maskable interrupt process of the payout control means.

【0469】また、上記の各実施の形態では、復帰信号
は電源基板910で作成されたが、復帰信号を必要とす
る電気部品制御基板において作成されてもよい。すなわ
ち、待機状態復帰手段が、主基板31や払出制御基板3
7などの各制御基板にそれぞれ設けれられる構成として
もよい。復帰信号が各制御基板において作成される場合
に用いられる電源基板は、復帰信号を出力しない構成と
される。また、リセット管理回路は、図13に示された
回路構成から復帰信号生成部分を除いた構成とすればよ
い。
Further, in each of the above-mentioned embodiments, the return signal is created on the power supply board 910, but it may be created on the electric component control board which requires the return signal. That is, the standby state returning means is the main board 31 or the payout control board 3
It may be configured to be provided on each control board such as No. 7 and the like. The power supply board used when the return signal is generated in each control board is configured not to output the return signal. Further, the reset management circuit may have a configuration in which the return signal generating portion is removed from the circuit configuration shown in FIG.

【0470】図69は、電源基板において復帰信号が生
成されない場合の遊技制御手段のマスク不能割込処理
(電力供給停止時処理)の一例を示すフローチャートで
ある。図69に示すフローチャートは、図23〜図25
に示されたステップS451〜S498の処理に続いて
実行される。すなわち、この実施の形態では、RAMア
クセス禁止値が設定された後(ステップS498)、シ
ステムリセットを待つ待機状態において、まず、カウン
タの初期値Mが設定される(ステップS111)。そし
て、カウンタの値を1減算しつつ(ステップS11
2)、カウンタの値が0になったか否か確認する(ステ
ップS113)。
FIG. 69 is a flow chart showing an example of the non-maskable interrupt processing (power supply stop processing) of the game control means when the return signal is not generated in the power supply board. The flow chart shown in FIG. 69 is shown in FIGS.
Is executed subsequent to the processing of steps S451 to S498 shown in FIG. That is, in this embodiment, after the RAM access prohibition value is set (step S498), the initial value M of the counter is first set in the standby state waiting for the system reset (step S111). While subtracting 1 from the counter value (step S11
2) It is confirmed whether or not the value of the counter has become 0 (step S113).

【0471】そして、カウンタの値が0になったら、図
19に示されたメイン処理のステップS1にジャンプす
る。メイン処理の実行が開始されると、電源断信号が出
力されたときに遊技状態が保存されているので、ステッ
プS10の処理で遊技状態復旧処理が実行され、遊技制
御は、電源断信号発生時の状態に戻り、その状態から遊
技制御が続行される。
When the counter value becomes 0, the process jumps to step S1 of the main process shown in FIG. When the execution of the main process is started, the game state is stored when the power-off signal is output, so the game state restoration process is executed in the process of step S10, and the game control is performed when the power-off signal is generated. Returning to the state of, the game control is continued from that state.

【0472】カウンタに初期値Mが設定されてからカウ
ントアップ(=0になる)するまでの時間は、[ステッ
プS112およびS113の処理に要する時間]×Mで
あるが、Mの値は、電源断信号が発生してから、Vcc電
源で動作するCPU56が動作不能になるまでに時間よ
りも長い時間をカウントするように設定される。従っ
て、一般には、一般には、カウンタがカウントアップし
てステップS1にジャンプする前に、CPU56は動作
しなくなる。すなわち、ステップS1にジャンプするこ
とはない。
The time from setting the initial value M in the counter to counting up (= 0) is [time required for processing in steps S112 and S113] × M. It is set so as to count a time longer than the time from the generation of the disconnection signal until the CPU 56 operating with the Vcc power supply becomes inoperable. Therefore, in general, the CPU 56 does not operate before the counter counts up and jumps to step S1. That is, there is no jump to step S1.

【0473】しかし、電源の瞬断等が生ずると、電源電
圧レベルが短期間低下した後に復旧する。その場合に
も、VSLの電圧レベルが電源断信号出力レベル以下にな
ると、電源断信号がローレベルになって、電力供給停止
時処理が開始される。そして、CPU56は電力供給停
止時処理終了後ループ状態に入る。何らの制御も行わな
いと、ループ処理から抜けられないのであるが、この場
合には、カウンタがカウントアップしてメイン処理に復
帰することができる。
However, if a momentary power interruption occurs, the power supply voltage level is reduced for a short period of time and then restored. Also in that case, when the voltage level of VSL becomes equal to or lower than the power-off signal output level, the power-off signal becomes low level, and the power supply stoppage process is started. Then, the CPU 56 enters a loop state after the processing when the power supply is stopped is completed. Without any control, the loop processing cannot be exited. In this case, the counter can count up and return to the main processing.

【0474】すなわち、この実施の形態におけるカウン
タは、電源断信号に応じた処理における待機状態におい
て実行されるタイマ処理を行うためのソフトウェアタイ
マに相当する。そして、カウンタがカウントアップする
と、すなわち、タイマ処理によって所定期間の経過が計
測されると、復帰手段としてのCPU56が、待機状態
から遊技制御状態に復帰させる制御を行う。
That is, the counter in this embodiment corresponds to the software timer for performing the timer process executed in the standby state in the process according to the power-off signal. Then, when the counter counts up, that is, when the elapse of a predetermined period is measured by the timer processing, the CPU 56 as the returning means performs control for returning from the standby state to the game control state.

【0475】このような構成でも、電源の瞬断等に起因
して電源断信号が発生したにもかかわらず電源電圧が平
常時の値に復旧したときに、CPU56は、図19に示
されたメイン処理の実行を再開することができる。その
際、電源断信号が出力されたときに遊技状態が保存され
ているので、ステップS10の処理で遊技状態復旧処理
が実行され、遊技制御は、電源断信号発生時の状態に戻
り、その状態から遊技制御が続行される。
Even in such a configuration, when the power supply voltage is restored to the normal value even though the power supply cutoff signal is generated due to the momentary power cutoff or the like, the CPU 56 is shown in FIG. The execution of the main process can be resumed. At that time, since the game state is saved when the power-off signal is output, the game state restoration process is executed in the process of step S10, and the game control returns to the state at the time of the power-off signal, and the state The game control is continued from.

【0476】このような制御は、払出制御手段が実行す
ることも可能である。図70は、電源基板において復帰
信号が生成されない場合の払出制御手段のマスク不能割
込処理(電力供給停止時処理)の一例を示すフローチャ
ートである。図70に示すフローチャートは、図51〜
図53あるいは図66〜図68に示されたステップS8
01〜S846の処理に続いて実行される。すなわち、
この実施の形態では、RAMアクセス禁止値が設定され
た後(ステップS846)、システムリセットを待つ待
機状態において、まず、カウンタの初期値Mが設定され
る(ステップS921)。そして、カウンタの値を1減
算しつつ(ステップS922)、カウンタの値が0にな
ったか否か確認する(ステップS923)。
Such control can also be executed by the payout control means. FIG. 70 is a flowchart showing an example of the non-maskable interrupt process (power supply stop process) of the payout control means when the return signal is not generated in the power supply board. The flowchart shown in FIG.
Step S8 shown in FIG. 53 or FIGS. 66 to 68
It is executed following the processing of 01 to S846. That is,
In this embodiment, after the RAM access prohibition value is set (step S846), the initial value M of the counter is first set in the standby state waiting for the system reset (step S921). Then, while subtracting 1 from the counter value (step S922), it is confirmed whether or not the counter value has become 0 (step S923).

【0477】そして、カウンタの値が0になったら、図
48に示されたメイン処理のステップS701にジャン
プする。メイン処理の実行が開始されると、電源断信号
が出力されたときに制御状態が保存されているので、ス
テップS710の処理で払出状態復旧処理が実行され、
制御は電源断信号発生時の状態に戻り、その状態から払
出制御が続行される。
Then, when the value of the counter becomes 0, the process jumps to step S701 of the main process shown in FIG. When the execution of the main process is started, since the control state is saved when the power-off signal is output, the payout state restoration process is executed in the process of step S710,
The control returns to the state at the time of the power-off signal, and the payout control is continued from that state.

【0478】なお、主基板31のCPU56が扱うカウ
ントアップ値(図69におけるS111で設定される
M)は、払出制御用CPU371が扱うカウントアップ
値よりも大きい値であることが好ましい。CPU56が
扱うカウントアップ値の方が大きい値である場合には、
遊技制御手段よりも前に払出制御手段が再起動すること
になる。従って、払出制御手段が先に立ち上がって、遊
技制御手段からの払出制御コマンドを取りこぼすような
ことはない。
The count-up value handled by the CPU 56 of the main board 31 (M set in S111 in FIG. 69) is preferably larger than the count-up value handled by the payout control CPU 371. If the count-up value handled by the CPU 56 is larger,
The payout control means will be restarted before the game control means. Therefore, the payout control means does not stand up first and miss the payout control command from the game control means.

【0479】上記のように、電源基板において復帰信号
が生成されない場合にソフトウェアによってタイマ処理
を行うことによって待機状態から制御状態に戻ることが
できるが、タイマ処理は、ハードウェアによって実行さ
れてもよい。
As described above, when the return signal is not generated in the power supply board, it is possible to return from the standby state to the control state by performing timer processing by software, but the timer processing may be executed by hardware. .

【0480】図71は、電源基板において復帰信号が生
成されない場合にハードウェアによってタイマ処理を行
うような構成の一例を示すブロック図である。この例で
は、主基板31に、ウォッチドッグタイマとして機能す
るカウンタ(ウォッチドッグタイマ回路)162が設け
られる。ウォッチドッグタイマ回路162は、発振回路
164の出力パルスをカウントし、カウントアップする
と、Q出力としてハイレベルの1パルスを発生する。そ
のパルス信号は、反転回路163で論理反転され、復帰
信号としてAND回路161に入力される。AND回路
161は、リセット信号と復帰信号の論理積をとってC
PU56のリセット端子に供給する。なお、CPU56
からシステムクロックまたはその分周クロックを出力す
るように設定し、そのクロックを、ウォッチドッグタイ
マ回路162の入力クロック信号としてもよい。
FIG. 71 is a block diagram showing an example of a configuration in which the timer processing is performed by hardware when the return signal is not generated in the power supply board. In this example, the main board 31 is provided with a counter (watchdog timer circuit) 162 that functions as a watchdog timer. The watchdog timer circuit 162 counts the output pulses of the oscillation circuit 164, and when counting up, generates one high-level pulse as the Q output. The pulse signal is logically inverted by the inversion circuit 163 and input to the AND circuit 161 as a return signal. The AND circuit 161 calculates the logical product of the reset signal and the return signal to obtain C.
It is supplied to the reset terminal of the PU 56. The CPU 56
May be set to output a system clock or a divided clock thereof, and the clock may be used as an input clock signal of the watchdog timer circuit 162.

【0481】カウントアップ値は、電源断信号がローレ
ベルになってから、VSLの電圧値がVcc生成可能電圧に
まで低下する時間以上に設定される。ウォッチドッグタ
イマ回路162はVccを電源として動作するので、カウ
ントアップ値は、ウォッチドッグタイマ回路162の動
作可能期間に相当する値以上に設定される。従って、遊
技機への電力供給停止時には、一般には、ウォッチドッ
グタイマ回路162がカウントアップして復帰信号が出
力される前に、ウォッチドッグタイマ回路162および
その他の回路部品は動作しなくなる。
The count-up value is set to be equal to or longer than the time required for the voltage value of VSL to drop to the voltage at which Vcc can be generated after the power-off signal goes low. Since the watchdog timer circuit 162 operates using Vcc as a power source, the count-up value is set to a value equal to or greater than the operable period of the watchdog timer circuit 162. Therefore, when the power supply to the gaming machine is stopped, the watchdog timer circuit 162 and other circuit components generally do not operate before the watchdog timer circuit 162 counts up and the return signal is output.

【0482】なお、CPU56が遊技制御を行っている
ときには、定期的にクリアパルスがウォッチドッグタイ
マ回路162に与えられる。クリアパルスの出力周期
は、ウォッチドッグタイマ回路162がカウントアップ
するまでの時間よりも短い。従って、CPU56が、通
常の遊技制御を行っているときにウォッチドッグタイマ
回路162のQ出力にパルスが現れることはない。
When the CPU 56 is performing game control, a clear pulse is periodically given to the watchdog timer circuit 162. The output cycle of the clear pulse is shorter than the time until the watchdog timer circuit 162 counts up. Therefore, no pulse appears in the Q output of the watchdog timer circuit 162 while the CPU 56 is performing normal game control.

【0483】図72は、ウォッチドッグタイマ回路16
2が設けられた場合の遊技制御手段の2msタイマ割込
処理を示すフローチャートである。図72に示すよう
に、遊技制御処理(ステップS21〜S32a)内にお
いて、ウォッチドッグタイマクリア処理(ステップS3
2a)が実行される。従って、ウォッチドッグタイマク
リア処理は、2ms毎に実行される。
FIG. 72 shows the watchdog timer circuit 16
It is the flowchart which shows the 2ms timer interruption processing of the game control expedient when 2 is provided. As shown in FIG. 72, in the game control process (steps S21 to S32a), the watchdog timer clear process (step S3
2a) is executed. Therefore, the watchdog timer clear process is executed every 2 ms.

【0484】ウォッチドッグタイマクリア処理(ステッ
プS32a)では、ウォッチドッグタイマ回路162の
クリア端子に至る出力ポートに1パルスを出力する処理
が行われる。よって、遊技制御処理の実行中では、ウォ
ッチドッグタイマ回路162に定期的にクリアパルスが
与えられるので、カウントアップすることはない。
In the watchdog timer clear process (step S32a), a process of outputting one pulse to the output port reaching the clear terminal of the watchdog timer circuit 162 is performed. Therefore, during the execution of the game control process, the watchdog timer circuit 162 is periodically provided with a clear pulse, so that it does not count up.

【0485】遊技機に対する供給電圧が低下して電源断
信号が出力されると、図23〜図25に示されたような
マスク不能割込処理が開始される。その処理中ではウォ
ッチドッグタイマ回路162に対してクリアパルスは出
力されない。従って、電源電圧が復旧して、ウォッチド
ッグタイマ回路162がカウントアップするまで動作し
ているような場合には復帰信号が出力される。
When the supply voltage to the gaming machine is lowered and the power-off signal is output, the non-maskable interrupt processing as shown in FIGS. 23 to 25 is started. During the processing, the clear pulse is not output to the watchdog timer circuit 162. Therefore, when the power supply voltage is restored and the watchdog timer circuit 162 is operating until it counts up, the return signal is output.

【0486】図73は、上述したソフトウェアタイマ処
理またはウォッチドッグタイマ回路162によって復帰
信号が作成される場合の復帰信号の出力タイミング等を
示すタイミング図である。図73(A)は、遊技機に対
する電力供給が停止された場合の例である。ソフトウェ
アタイマ処理は電力供給停止時処理が終了して待機状態
になってから開始される。また、マスク不能割込処理で
はウォッチドッグタイマ回路162に対してクリアパル
スは出力されないので、ウォッチドッグタイマ回路16
は、実質的に、電力供給停止時処理の開始時から起動さ
れる。いずれの場合でも、タイムアップ値(カウントア
ップ値)は、電源電圧がVcc生成可能電圧値よりも小さ
くなるまでタイムアップしないように設定されているの
で、復帰信号が発生することはない。
FIG. 73 is a timing chart showing the output timing of the return signal when the return signal is generated by the software timer processing or the watchdog timer circuit 162 described above. FIG. 73A illustrates an example in which power supply to the game machine is stopped. The software timer process is started after the process at the time of power supply stop is completed and a standby state is set. Further, since the clear pulse is not output to the watchdog timer circuit 162 in the non-maskable interrupt processing, the watchdog timer circuit 16
Are substantially activated from the start of the power supply stop process. In either case, the time-up value (count-up value) is set so as not to time-up until the power supply voltage becomes smaller than the Vcc-producible voltage value, so that no return signal is generated.

【0487】電源の瞬断等が生ずると、図73(B)に
示すように、VSLの電圧レベルが短期間低下した後に復
旧する。その場合にも、VSLの電圧レベルが電源断信号
出力レベル以下になると、電源断信号がローレベルにな
って、電力供給停止時処理が開始される。そして、CP
U56は電力供給停止時処理終了後ループ状態に入る。
何らの制御も行わないと、ループ処理から抜けられない
のであるが、この場合には、ウォッチドッグタイマ回路
162がカウントアップして復帰信号が発生する。
When the power supply is momentarily cut off, as shown in FIG. 73 (B), the voltage level of VSL is reduced for a short period of time and then restored. Also in that case, when the voltage level of VSL becomes equal to or lower than the power-off signal output level, the power-off signal becomes low level, and the power supply stoppage process is started. And CP
U56 enters the loop state after the power supply stop process is completed.
Without any control, the loop processing cannot be exited. In this case, the watchdog timer circuit 162 counts up and a return signal is generated.

【0488】図71に示されたように、主基板31にお
いて、復帰信号は、AND回路161を介して、CPU
56のリセット端子に入力される。従って、CPU56
にはシステムリセットがかかる。その結果、CPU56
は待機状態から抜け出すことができる。
As shown in FIG. 71, in the main board 31, the return signal is sent to the CPU via the AND circuit 161.
It is input to the reset terminal 56. Therefore, the CPU 56
Requires a system reset. As a result, the CPU 56
Can get out of standby.

【0489】図74は、電源基板において復帰信号が生
成されない場合に払出制御基板37におけるハードウェ
アによってタイマ処理を行うような構成の一例を示すブ
ロック図である。この例では、払出制御基板37に、ウ
ォッチドッグタイマとして機能するカウンタ(ウォッチ
ドッグタイマ回路)386が設けられる。ウォッチドッ
グタイマ回路386は、発振回路388の出力パルスを
カウントし、カウントアップすると、Q出力としてハイ
レベルの1パルスを発生する。そのパルス信号は、反転
回路387で論理反転され、復帰信号としてAND回路
385に入力される。AND回路385は、リセット信
号と復帰信号の論理積をとってCPU56のリセット端
子に供給する。
FIG. 74 is a block diagram showing an example of a configuration in which the timer processing is performed by the hardware in the payout control board 37 when the return signal is not generated in the power supply board. In this example, the payout control board 37 is provided with a counter (watchdog timer circuit) 386 that functions as a watchdog timer. The watchdog timer circuit 386 counts the output pulses of the oscillation circuit 388, and when counting up, generates one high-level pulse as the Q output. The pulse signal is logically inverted by the inversion circuit 387 and input to the AND circuit 385 as a return signal. The AND circuit 385 calculates the logical product of the reset signal and the return signal and supplies the logical product to the reset terminal of the CPU 56.

【0490】カウントアップ値は、電源断信号がローレ
ベルになってから、VSLの電圧値がVcc生成可能電圧に
まで低下する時間以上に設定される。ウォッチドッグタ
イマ回路386はVccを電源として動作するので、カウ
ントアップ値は、ウォッチドッグタイマ回路386の動
作可能期間に相当する値以上に設定される。従って、一
般には、ウォッチドッグタイマ回路386がカウントア
ップして復帰信号が出力される前に、ウォッチドッグタ
イマ回路386およびその他の回路部品は動作しなくな
る。なお、払出制御用CPU371が払出制御を行って
いるときには、定期的にクリアパルスがウォッチドッグ
タイマ回路386に与えられる。クリアパルスの出力周
期は、ウォッチドッグタイマ回路386がカウントアッ
プするまでの時間よりも短い。従って、払出制御用CP
U371が、通常の遊技制御を行っているときにウォッ
チドッグタイマ回路3876のQ出力にパルスが現れる
ことはない。
The count-up value is set to be equal to or longer than the time required for the voltage value of VSL to drop to the voltage capable of generating Vcc after the power-off signal becomes low level. Since the watchdog timer circuit 386 operates using Vcc as a power supply, the count-up value is set to a value equal to or greater than the operable period of the watchdog timer circuit 386. Therefore, in general, the watchdog timer circuit 386 and other circuit components do not operate before the watchdog timer circuit 386 counts up and the return signal is output. When the payout control CPU 371 is performing payout control, a clear pulse is periodically given to the watchdog timer circuit 386. The output cycle of the clear pulse is shorter than the time until the watchdog timer circuit 386 counts up. Therefore, CP for payout control
No pulse appears in the Q output of the watchdog timer circuit 3876 when U371 is performing normal game control.

【0491】図75は、ウォッチドッグタイマ回路38
6が設けられた場合の払出制御手段のメイン処理の一部
を示すフローチャートである。図84に示す処理は、図
48に示されたステップS701〜S714の処理に続
いて実行される。この場合には、払出制御処理のループ
(ステップS715,S751〜S761)内におい
て、ウォッチドッグタイマクリア処理(ステップS76
1)が実行される。従って、ウォッチドッグタイマクリ
ア処理は、2ms毎に実行される。
FIG. 75 shows the watchdog timer circuit 38.
It is a flowchart which shows a part of main processing of the payout control means when 6 is provided. The process shown in FIG. 84 is executed subsequent to the processes of steps S701 to S714 shown in FIG. In this case, the watchdog timer clearing process (step S76) is executed in the payout control process loop (steps S715, S751 to S761).
1) is executed. Therefore, the watchdog timer clear process is executed every 2 ms.

【0492】ウォッチドッグタイマクリア処理(ステッ
プS761)では、ウォッチドッグタイマ回路386の
クリア端子に至る出力ポートに1パルスを出力する処理
が行われる。よって、払出制御処理の実行中では、ウォ
ッチドッグタイマ回路386に定期的にクリアパルスが
与えられるので、カウントアップすることはない。
In the watchdog timer clear process (step S761), a process of outputting one pulse to the output port reaching the clear terminal of the watchdog timer circuit 386 is performed. Therefore, since the clear pulse is periodically given to the watchdog timer circuit 386 during execution of the payout control process, it does not count up.

【0493】遊技機に対する供給電圧が低下して電源断
信号が出力されると、図51〜図53に示されたような
マスク不能割込処理が開始される。その処理中ではウォ
ッチドッグタイマ回路386に対してクリアパルスは出
力されない。従って、電源電圧が復旧して、ウォッチド
ッグタイマ回路386がカウントアップするまで動作し
ているような場合には復帰信号が出力される。
When the supply voltage to the gaming machine is lowered and the power-off signal is output, the non-maskable interrupt processing as shown in FIGS. 51 to 53 is started. During the processing, the clear pulse is not output to the watchdog timer circuit 386. Therefore, when the power supply voltage is restored and the watchdog timer circuit 386 is operating until it counts up, the return signal is output.

【0494】図74に示されたように、払出制御基板3
7において、復帰信号は、AND回路385を介して、
払出制御用CPU371のリセット端子に入力される。
従って、払出制御用CPU371にはシステムリセット
がかかる。その結果、払出制御用CPU371は待機状
態から抜け出すことができる。
As shown in FIG. 74, the payout control board 3
7, the return signal is sent via the AND circuit 385.
It is input to the reset terminal of the payout control CPU 371.
Therefore, the payout control CPU 371 is reset. As a result, the payout control CPU 371 can exit the standby state.

【0495】上記のように、主基板31および払出制御
基板37においてウォッチドッグタイマ回路162,3
86が設けられている場合には、ハードウェアによって
復帰信号を発生させることができる。しかも、電源電圧
が低下したときのみならず、何らかの理由で、CPU5
6または払出制御用CPU371の制御が無限ループに
入ってしまったような場合にも、ループ状態から抜け出
すことができる。
As described above, in the main board 31 and the payout control board 37, the watchdog timer circuits 162, 3 are provided.
If 86 is provided, the return signal can be generated by hardware. Moreover, not only when the power supply voltage drops, but for some reason, the CPU 5
6 or even when the control of the payout control CPU 371 enters an infinite loop, the loop state can be exited.

【0496】なお、主基板31のウォッチドッグタイマ
回路162のカウントアップ値は、払出制御基板37の
ウォッチドッグタイマ回路386のカウントアップ値よ
りも大きい値であることが好ましい。ウォッチドッグタ
イマ回路162のカウントアップ値の方が大きい値であ
る場合には、復帰信号は、遊技制御手段よりも前に払出
制御手段に対して供給される。従って、払出制御手段が
先に立ち上がって、遊技制御手段からの払出制御コマン
ドを取りこぼすようなことはない。
The count-up value of the watchdog timer circuit 162 of the main board 31 is preferably larger than the count-up value of the watchdog timer circuit 386 of the payout control board 37. If the count-up value of the watchdog timer circuit 162 is larger, the return signal is supplied to the payout control means before the game control means. Therefore, the payout control means does not stand up first and miss the payout control command from the game control means.

【0497】また、例えば主基板31のみにウォッチド
ッグタイマ回路162を設置し、ウォッチドッグタイマ
回路162による復帰信号をCPU56に供給するとと
もに、払出制御基板37に供給してもよい。そのように
構成した場合には、全体的な回路構成規模を小さくする
ことができる。また、そのように構成した場合には、払
出制御手段が先に立ち上がるように、ウォッチドッグタ
イマ回路162とCPU56のリセット端子との間に遅
延回路を置くことが好ましい。
Further, for example, the watchdog timer circuit 162 may be installed only on the main board 31, and the return signal from the watchdog timer circuit 162 may be supplied to the CPU 56 and the payout control board 37. With such a configuration, the overall circuit configuration scale can be reduced. Further, in the case of such a configuration, it is preferable to place a delay circuit between the watchdog timer circuit 162 and the reset terminal of the CPU 56 so that the payout control means can be activated first.

【0498】さらに、ウォッチドッグタイマ回路16
2,386による復帰信号をCPUのリセット端子に接
続するのではなく、入力ポートの入力するようにしても
よい。その場合には、電力供給停止時処理における待機
状態で入力ポートの監視が行われ、復帰信号がオンした
ことが検出されると、メイン処理の最初にジャンプす
る。さらに、ウォッチドッグタイマ回路162,386
による復帰信号をCPUのCTC端子に入力してもよ
い。その場合には、あらかじめ、復帰信号の入力に応じ
てCTC割込がかかるように設定される。また、待機状
態で割込許可に設定される。そして、CTC割込がかか
ると、メイン処理の最初にジャンプする。
Further, the watchdog timer circuit 16
The return signal of 2,386 may be input to the input port instead of being connected to the reset terminal of the CPU. In that case, the input port is monitored in the standby state in the power supply stop process, and when it is detected that the return signal is turned on, the process jumps to the beginning of the main process. Further, watchdog timer circuits 162 and 386
Alternatively, the return signal may be input to the CTC terminal of the CPU. In that case, the CTC interrupt is set in advance in accordance with the input of the return signal. Also, the interrupt permission is set in the standby state. Then, when the CTC interrupt is applied, the process jumps to the beginning of the main process.

【0499】また、上記の各実施の形態では、払出制御
基板37において、NMIに応じて電力供給停止時処理
が実行されたが、電源断信号を払出制御用CPU371
のマスク可能端子に接続し、マスク可能割込処理によっ
て電力供給停止時処理を実行してもよい。また、電源断
信号を入力ポートに入力し、入力ポートのチェック結果
に応じて電力供給停止時処理を実行してもよい。
Further, in each of the above-described embodiments, the process of stopping the power supply is executed in the payout control board 37 according to the NMI, but the power-off signal is sent to the payout control CPU 371.
It is also possible to connect to the maskable terminal and to execute the power supply stop process by the 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.

【0500】また、上記の各実施の形態では、各電気部
品制御手段に供給するリセット信号を発生する回路(リ
セット回路65)が電源基板910に1つ設けられる構
成としていたが、主基板31のCPU56に供給するリ
セット信号を発生する回路と、他の電気部品制御基板の
CPUに供給するリセット信号を発生する回路とを別個
に設ける構成としてもよい。
Further, in each of the above-described embodiments, one power supply board 910 is provided with a circuit (reset circuit 65) for generating a reset signal to be supplied to each electric component control means. A circuit for generating a reset signal to be supplied to the CPU 56 and a circuit for generating a reset signal to be supplied to the CPU of another electric component control board may be separately provided.

【0501】また、上述した実施の形態では、各電気部
品制御手段に供給するリセット信号を発生する回路(リ
セット回路65)が電源基板910に1つ設けられる構
成としていたが、各電気部品制御基板それぞれにリセッ
ト信号を発生する回路を設ける構成としてもよい。
Further, in the above-described embodiment, one circuit (reset circuit 65) for generating a reset signal to be supplied to each electric component control means is provided on the power supply substrate 910, but each electric component control substrate is provided. A circuit for generating a reset signal may be provided for each.

【0502】上記のように、システムリセット手段(リ
セット回路65)が、各電気部品制御手段が搭載される
各電気部品制御基板それぞれに搭載される構成とした場
合には、システムリセット手段の出力信号を伝送するケ
ーブル(システムリセット手段とCPUとを接続するケ
ーブル)を短くすることができ、ノイズの影響を受けに
くくすることができる。
As described above, when the system reset means (reset circuit 65) is mounted on each electric component control board on which each electric component control means is mounted, the output signal of the system reset means is output. The cable (the cable connecting the system resetting device and the CPU) for transmitting the signal can be shortened, and the influence of noise can be reduced.

【0503】また、上述した実施の形態では、電源供給
停止時処理においてコマンド出力ポートをクリアする構
成としていたが、出力ポートをクリアする前にコマンド
出力ポートの状態をRAMのバックアップ領域に保存す
る処理を行い、電源復旧処理においてコマンド出力ポー
トの状態を電源断前の状態に復旧する構成としてもよ
い。このように構成すれば、例えば出力ポートに制御コ
マンドを出力したものの、INT信号を出力する前に電
源供給が停止したような場合が発生しても、電源供給が
再開したあとに確実に送信先に制御コマンドを出力する
ことができるようになる。
In the above-described embodiment, the command output port is cleared in the power supply stop process, but the process of saving the state of the command output port in the RAM backup area before clearing the output port is performed. The power recovery processing may be performed to restore the state of the command output port to the state before the power was turned off. With this configuration, for example, even when the control command is output to the output port, but the power supply is stopped before the INT signal is output, the transmission destination can be reliably transmitted after the power supply is restarted. The control command can be output to.

【0504】また、上述した実施の形態では、電源監視
手段(例えば電源監視用IC902)は、電源電圧が所
定の値(例えば22V)となった場合に電源断信号を出
力する構成としているが、例えば、交流電源に関連する
交流波をデジタル変換したデジタル信号を監視し、その
デジタル信号が所定期間途切れた場合に電源断信号を出
力する構成としてもよい。
In the above-described embodiment, the power supply monitoring means (eg, power supply monitoring IC 902) outputs the power supply cutoff signal when the power supply voltage reaches a predetermined value (eg, 22V). For example, a configuration may be adopted in which a digital signal obtained by digitally converting an AC wave related to an AC power supply is monitored, and a power-off signal is output when the digital signal is interrupted for a predetermined period.

【0505】また、上述した各実施の形態では、制御コ
マンドがMODEデータとEXTデータとで構成されて
いたが、制御コマンドは3以上のデータによって構成さ
れていてもよく、1のデータによって構成されていても
よい。また、制御コマンドは、上述したように、2バイ
ト構成に限られない。
Further, in each of the above-described embodiments, the control command is composed of MODE data and EXT data, but the control command may be composed of three or more data, and is composed of one data. May be. Moreover, the control command is not limited to the 2-byte configuration as described above.

【0506】また、上述した各実施の形態では、INT
信号の受信に応じてコマンドの受信処理(図56参照)
が実行される構成としていたが、INT信号が用いられ
ることなくコマンド受信処理を実行する構成とされてい
てもよい。この場合、例えば、コマンド受信側の各電気
部品制御基板が、所定期間毎にコマンド入力ポート(例
えば、図47に示す入力ポートA)を監視するように
し、ポートの状態に応じてコマンド受信処理を実行する
構成とすればよい。
Also, in each of the above-mentioned embodiments, INT
Command reception processing in response to signal reception (see FIG. 56)
However, the command receiving process may be performed without using the INT signal. In this case, for example, each electric component control board on the command receiving side monitors the command input port (for example, the input port A shown in FIG. 47) every predetermined period, and the command receiving process is performed according to the state of the port. It may be configured to execute.

【0507】また、上述した各実施の形態では、コマン
ドを複数の信号線を用いて伝送する構成としていたが、
コマンドをシリアル信号によって構成し、1の信号線を
用いたシリアル伝送を行うように構成されていてもよ
い。
In each of the above-mentioned embodiments, the command is transmitted using a plurality of signal lines.
The command may be configured by a serial signal, and serial transmission may be performed using one signal line.

【0508】また、上記の各実施の形態では、遊技制御
以外の電気部品制御手段として、主として、電気部品と
しての球払出装置97等を制御する払出制御手段を例に
したが、本発明が適用される電気部品制御手段が、払出
制御手段以外の他の制御手段であるとしてもよい。
In each of the above embodiments, the payout control means for controlling the ball payout device 97 as an electric part is mainly used as the electric part control means other than the game control, but the present invention is applied. The electric component control means may be control means other than the payout control means.

【0509】また、上述した実施の形態では、遊技媒体
の払い出しが可能であるか否かを判定する払出状態判定
手段(遊技制御手段の一部)が払出可能でないことを検
出したら、原因の如何に関わらず、1種類の払出禁止状
態指定コマンド(すなわち、本例では、払出禁止状態指
定コマンドは、払い出しを禁止する複数種類の条件のう
ちのどの条件が成立した場合であっても、共通して用い
られるコマンドとされている。)が送信されるようにし
たが、原因別のコマンド(上述した例では、補給球の不
足を示すコマンドと下皿満タンを示すコマンド)に分け
て送信してもよい。この場合、払出状態判定手段がいず
れかの払出禁止条件が不成立となったことを検出した
ら、該当する払出禁止条件が解除されたことを示すコマ
ンド(例えば、補給球の不足の解消を示すコマンド、下
皿満タンの解消を示すコマンド)を送信するようにすれ
ばよい。上記の構成とする場合、払出制御手段は、払い
出しの禁止条件の原因別に設けられているコマンドのい
ずれかを受信した場合に払出制御の実行が不能な状態と
し、払い出しを禁止する複数種類の条件の全てが解除さ
れた場合(例えば、払出禁止条件別に設けられたそれぞ
れのフラグが全て条件不成立を示す状態となった場合)
に払出制御の実行が可能な状態とすればよい。
Further, in the above-mentioned embodiment, 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, the cause is determined. Regardless, one type of payout prohibition state designation command (that is, in the present example, the payout prohibition state designation command is common regardless of which of the plural types of conditions for prohibiting payout is satisfied). However, the command used for each cause is divided into commands for different causes (in the above example, a command for indicating a shortage of supply balls and a command for indicating a lower tank full). May be. In this case, when the payout state determination means detects that one of the payout prohibition conditions is not satisfied, a command indicating that the corresponding payout prohibition condition has been canceled (for example, a command indicating elimination of the shortage of the supply balls, A command indicating that the lower plate is full is to be transmitted. In the case of the above configuration, the payout control means disables the payout control when receiving one of the commands provided for each of the causes of the payout prohibition condition and prohibits the payout. Are all canceled (for example, when all the flags provided for each withdrawal prohibition condition are in a state where the condition is not satisfied)
Then, the payout control may be executed.

【0510】また、遊技球の払出が可能でない場合に、
遊技の継続を禁止するために遊技球の発射を禁止するこ
とを指示するコマンドを払出制御基板37に対して送信
してもよい。払出制御基板37に搭載された払出制御手
段は、遊技球の発射を禁止することを指示するコマンド
を受信したら、打球発射装置の駆動を停止する。また、
遊技球の払出が可能でない場合に、遊技制御手段が発射
制御手段に対して、直接、遊技球の発射を禁止すること
を指示する信号を与えてもよい。また、払出制御手段
は、払出禁止状態指定コマンドを受信した場合に、打球
発射装置の駆動を停止するようにしてもよい。
[0510] Also, when the payout of gaming balls is not possible,
In order to prohibit the continuation of the game, a command instructing to prohibit the launch of the game ball 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. Also,
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 hit ball launching device when the payout prohibition state designation command is received.

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

【0512】また、上記の各実施の形態では、払出手段
は球貸しも賞球払出も実行可能な構成であったが、球貸
しを行う機構と賞球払出を行う機構とが独立していても
本発明を適用することができる。その場合、球貸しを行
う機構と賞球払出を行う機構とが独立していても、払出
制御手段が両方の機構を制御するように構成されていれ
ば、上記の実施の形態のように、遊技制御手段が、複数
の景品払出禁止条件のうちいずれの条件が成立した場合
でも、払出手段における賞球払出を行う機構からの景品
としての遊技媒体の払い出しを禁止することを示す共通
の景品払出禁止状態指定コマンドを払出制御手段に対し
て送信し、複数の貸出禁止条件のうちいずれの条件が成
立した場合でも、払出手段における球貸しを行う機構か
らの遊技媒体の貸し出しを禁止することを示す共通の貸
出禁止状態指定コマンドを払出制御手段に対して送信す
るように構成することができる。
Further, in each of the above-mentioned embodiments, the payout means has a structure capable of executing both ball lending and prize ball payout, but the mechanism for lending a ball and the mechanism for paying out a prize ball are independent. The present invention can also be applied. In that case, even if the mechanism for performing the ball lending and the mechanism for performing the prize ball payout are independent, as long as the payout control means is configured to control both the mechanisms, as in the above embodiment, A common prize payout that indicates that the game control means prohibits the payout of game media as a prize from the mechanism for paying a prize ball in the payout means, when any of the plurality of prize payout prohibition conditions is satisfied. A prohibition state designation command is transmitted to the payout control means, and it is shown that, regardless of which of the plurality of lending prohibition conditions is satisfied, lending of the game medium from the mechanism for lending a ball in the payout means is prohibited. It can be configured to send a common lending prohibition state designation command to the payout control means.

【0513】また、上記の各実施の形態では、電力供給
停止時処理において、遊技球が払い出されたか否かを監
視し、払い出された場合には未払出の遊技球数として記
憶している値を減算する処理を行っていたが、未払出数
の記憶値を減算する処理を行うことなく、賞球カウント
スイッチ301Aや球貸しカウントスイッチ301Bが
オンしたか否かを確認し、その確認結果を電源バックア
ップされているRAMに保存する構成としてもよい。こ
の場合、電力供給が開始したときに、電源バックアップ
されているRAMの記憶内容にもとづいて、電力供給停
止時処理の実行中に賞球カウントスイッチ301Aや球
貸しカウントスイッチ301Bがオンしていたことが確
認された場合に、未払出数の記憶値を減算する処理を行
うようにすればよい。上記のように構成すれば、電力供
給停止時処理に未払出数として記憶している値を変更す
る処理を行う必要がないので、電力供給が停止する前に
未払出の遊技球数を管理するために実行される処理をよ
り確実に完了させることができるようになる。
Further, in each of the above-mentioned 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 was performed, it is confirmed whether the prize ball count switch 301A or the ball lending count switch 301B is turned on without performing the process of subtracting the stored value of the unpaid amount, and the confirmation is performed. The result may be stored in the RAM that is backed up by the power supply. In this case, when the power supply is started, the prize ball count switch 301A and the ball lending count switch 301B are turned on during the execution of the power supply stop process based on the stored contents of the RAM whose power is backed up. If it is confirmed, the process of subtracting the stored value of the unpaid amount may be performed. If configured as described above, it is not necessary to change the value stored as the unpaid number in the power supply stop process, so the number of unpaid gaming balls is managed before the power supply is stopped. Therefore, it becomes possible to more surely complete the processing executed.

【0514】また、上記の各実施の形態では、球切れ状
態や下皿満タン状態である場合に払出禁止条件が成立す
るものとしていたが、他の払い出しを行うことが好まし
くない場合や払い出しを行うことができない場合に払出
禁止条件が成立するようにしてもよい。例えば、ガラス
扉枠2が開状態となっているとき、カウントスイッチ短
絡信号が入力されているとき、VL信号の入力状態によ
りカードユニット50が未接続状態であることが確認さ
れているとき、賞球詰まりフラグがオンであるとき、あ
るいは貸し球詰まりフラグがオンであるときなどの場合
に、払出禁止条件が成立するように構成されていてもよ
い。
Further, in each of the above-mentioned embodiments, the payout prohibition condition is satisfied when the ball is out of stock or the lower plate is full, but when it is not desirable to pay other payouts or payout is made, The payout prohibition condition may be satisfied when the payment cannot be performed. For example, when the glass door frame 2 is in the open state, when the count switch short circuit signal is input, and when it is confirmed that the card unit 50 is not connected by the input state of the VL signal, The payout prohibition condition may be established when the ball clogging flag is on or when the lending ball clogging flag is on.

【0515】なお、上記の各実施の形態にて説明したよ
うに、待機状態復帰手段(電力供給停止時処理の後の待
機状態にて、遊技機への電力供給が停止しない場合に当
該待機状態から復帰させ復旧処理を実行可能(必ずしも
復旧処理を実行させる必要はなく、電気部品制御手段の
状態をリセットして待機状態から復帰させるようにすれ
ばよいことを意味する)にする手段。)は、複数の制御
手段(CPU56、払出制御用CPU371)を復帰さ
せる単一の手段による構成(復帰信号を出力可能な電源
基板910に備えられたカウンタ971による構成)
や、遊技制御手段および払出制御手段それぞれに設けら
れる構成(ウォッチドッグタイマにタイムアップにもと
づきシステムリセットする機能を有するCPU56や払
出制御用CPU371による構成)とした。しかし、上
記のような種類の異なる待機状態復帰手段を複数備える
構成としてもよい。この場合、複数の待機状態復帰手段
によって機能が重複してしまうため、不具合が生じてし
まう可能性があるので、種類の異なる複数の待機状態復
帰手段のうちいずれか一方を優先させて動作させ、他方
は補助的に動作させる構成とすることが望ましい。これ
により一方の待機状態復帰手段が何らかのトラブルによ
り機能が停止した場合であっても、制御手段(CPU5
6、払出制御用CPU371)は確実に待機状態から復
旧させることが可能となる。
As described in each of the above embodiments, the standby state returning means (the standby state when the power supply to the gaming machine is not stopped in the standby state after the power supply stop process) Means for making it possible to execute the recovery process by returning from the state (meaning that the recovery process does not necessarily have to be executed, and the state of the electric component control means may be reset to recover from the standby state). , Configuration by a single means for returning a plurality of control means (CPU 56, payout control CPU 371) (configuration by a counter 971 provided on a power supply board 910 capable of outputting a return signal)
Alternatively, the game control means and the payout control means are respectively provided (the CPU 56 having the function of resetting the system based on the time-up in the watchdog timer and the payout control CPU 371). However, it may be configured to include a plurality of standby state returning means of different types as described above. In this case, since the functions are duplicated by the plurality of standby state returning means, there is a possibility that a malfunction may occur, so that one of the plurality of standby state returning means of different types is operated with priority, It is desirable that the other one be configured to be operated auxiliary. As a result, even when the function of one of the standby state returning means is stopped due to some trouble, the control means (CPU 5
6. The payout control CPU 371) can surely recover from the standby state.

【0516】また、上述した各実施の形態では、待機状
態として無限ループを用いたが、これに限らず制御プロ
グラムの電力供給停止時処理の最後にHALT(ホール
ト)指令等を用いることで制御手段(CPU56、払出
制御用CPU371)の制御状態を待機状態(割込みを
受付可能な待機状態)としてもよい。この場合には、割
込端子への信号入力が有効になり、割込端子への信号入
力トリガに制御状態を復帰させることが可能になり、簡
単な構成で待機状態復帰手段を構成することができる。
Further, in each of the above-described embodiments, the infinite loop is used as the standby state, but the present invention is not limited to this, and by using the HALT (HALT) command or the like at the end of the power supply stop process of the control program, the control means is controlled. The control state of the (CPU 56, the payout control CPU 371) may be a standby state (a standby state in which an interrupt can be accepted). In this case, the signal input to the interrupt terminal becomes valid, and the control state can be restored by the signal input trigger to the interrupt terminal, and the standby state restoration means can be configured with a simple configuration. it can.

【0517】また、上述した各実施の形態において、R
AMにバックアップ電源を供給する手段は、制御手段
(CPU56、払出制御用CPU371)毎に設けられ
ている構成としてもよい。すなわち、バックアップRA
M領域を含むRAM毎に、バックアップ電源を供給する
手段が設けられていてもよい。また、そのような手段の
数や搭載位置(制御基板上、あるいは電源基板上に搭載
するか否か)は、どのように構成されていてもよい。
In each of the above embodiments, R
The means for supplying the backup power to the AM may be provided for each control means (CPU 56, payout control CPU 371). That is, backup RA
A means for supplying backup power may be provided for each RAM including the M area. Further, the number and mounting positions of such means (whether or not they are mounted on the control board or the power supply board) may be configured in any manner.

【0518】また、上述した各実施の形態では、賞球カ
ウントスイッチ301Aに対する電源基板910からの
電力供給は、主基板31を介してなされるが、払出制御
基板37を介してなされるようにしてもよい。また、電
源基板910から直接電力供給される構成とされていて
もよい。
Further, in each of the above-mentioned embodiments, the power supply from the power supply board 910 to the prize ball count switch 301A is performed through the main board 31, but is performed through the payout control board 37. Good. Further, the power may be directly supplied from the power supply board 910.

【0519】また、上述した各実施の形態では、球貸し
カウントスイッチ301Bに対する電源基板910から
の電力供給は、払出制御基板37を介してなされるが、
主基板31を介してなされるようにしてもよい(例え
ば、後述するように遊技制御手段に球貸しカウントスイ
ッチ301Bの検出信号が入力される場合)。また、電
源基板910から直接電力供給される構成とされていて
もよい。
Further, in each of the above-described embodiments, the power supply from the power supply board 910 to the ball lending count switch 301B is performed via the payout control board 37.
It may be performed via the main board 31 (for example, when the detection signal of the ball lending count switch 301B is input to the game control means as described later). Further, the power may be directly supplied from the power supply board 910.

【0520】また、上述した各実施の形態において、補
助電力供給手段は、電源監視手段からの検出信号が出力
された後、少なくとも賞球カウントスイッチ301Aお
よび球貸しカウントスイッチ301Bへの電源を供給す
るものであれば、賞球カウントスイッチ301Aおよび
球貸しカウントスイッチ301B以外のもの(入賞検出
スイッチなど)への電力をも供給するものであってもよ
く、賞球カウントスイッチ301Aおよび球貸しカウン
トスイッチ301Bのみに電力を供給するものであって
もよい。賞球カウントスイッチ301Aおよび球貸しカ
ウントスイッチ301Bのみに電力を供給するものであ
れば、補助電力供給手段の消費電力(充電容量)を小さ
くすることができる。
In each of the above embodiments, the auxiliary power supply means supplies power to at least the prize ball count switch 301A and the ball lending count switch 301B after the detection signal from the power supply monitoring means is output. As long as it is a prize ball count switch 301A and a ball lend count switch 301B, it may also supply power to something other than the prize ball count switch 301B (a prize detection switch, etc.). It may be one that supplies electric power only. If power is supplied only to the prize ball count switch 301A and the ball lending count switch 301B, the power consumption (charging capacity) of the auxiliary power supply means can be reduced.

【0521】また、上述した各実施の形態において、補
助電力供給手段は、各電気部品制御手段(CPU56、
払出制御用CPU371)毎に設けられていても良い。
Further, in each of the above-mentioned embodiments, the auxiliary power supply means is each electric component control means (CPU 56,
It may be provided for each payout control CPU 371).

【0522】また、上述した各実施の形態では、球貸し
カウントスイッチ301Bの検出信号は、払出制御手段
(払出制御基板37が備える払出制御用CPU371)
にのみ入力される構成としていたが、遊技制御手段(主
基板31が備えるCPU56)に入力される構成として
もよく、払出制御手段および遊技制御手段の双方に入力
される構成としてもよい。そして、遊技制御手段が、遊
技制御処理(具体的には上述したステップS21のスイ
ッチ処理)および電力供給停止時処理にて、球貸しカウ
ントスイッチ301Bの検出信号の入力処理を実行する
ように構成されていてもよい。この場合、遊技制御手段
のRAM55の電源バックアップ領域に、貸し球の未払
出数を示すデータを格納するバッファ(貸し球数格納バ
ッファ)を設けるようにし、電力供給停止時処理(図2
3〜図25)にて、上述したステップS467〜ステッ
プS486に示した賞球カウントスイッチ301Aの検
出信号の入力処理と同様の処理を、球貸しカウントスイ
ッチ301Bの検出信号の入力処理として実行するよう
にすればよい。また、遊技制御処理(例えばステップS
21に示したスイッチ処理)において、上述した賞球個
数減算処理(図44参照)と同様の処理を、貸し球個数
の減算処理として実行するようにすればよい。また、上
記の構成とする場合には、遊技制御手段が、上述した払
出制御手段におけるプリペイドカードユニット50との
信号のやりとりに関する処理を実行する機能を備えるよ
うにして、払出制御コマンドを用いて貸出要求があった
貸し球の数に関する情報を払出制御手段に向けて送信す
る処理を行うようにすればよい。なお、電力供給停止時
処理(図23〜図25)にて球貸しカウントスイッチ3
01Bの検出信号の入力処理を実行する場合には、ステ
ップS466のあとステップS487の前(例えばステ
ップS487の直前)に実行するようにすればよい。上
記のように構成すれば、遊技制御手段にて貸し球の個数
管理を実行することができるようになる。特に球貸しカ
ウントスイッチ301Bの検出信号を払出制御手段およ
び遊技制御手段の双方に入力する構成とした場合には、
遊技制御手段と払出制御手段双方で貸し球の個数管理を
実行することができるようになり、貸し球の個数管理を
より正確に行うことが可能となる。なお、上記のように
構成する場合には、遊技機に対する電力供給停止時にお
いて、少なくとも払出確認期間以上の期間は+12V電
源電圧がスイッチ駆動可能な範囲に維持され、球貸しカ
ウントスイッチ301B(あるいは賞球カウントスイッ
チ301Aおよび球貸しカウントスイッチ301B)が
動作可能となるように、コンデンサ923の容量が決定
されることは勿論である。
Further, in each of the above-described embodiments, the detection signal of the ball lending count switch 301B is the payout control means (the payout control CPU 371 provided in the payout control board 37).
Although it is configured to be input only to, it may be configured to be input to the game control means (CPU 56 included in the main board 31), or may be configured to be input to both the payout control means and the game control means. Then, the game control means is configured to execute the input process of the detection signal of the ball lending count switch 301B in the game control process (specifically, the switch process of step S21 described above) and the power supply stop time process. May be. In this case, in the power supply backup area of the RAM 55 of the game control means, a buffer for storing data indicating the number of unpaid spheres (loan sphere number storage buffer) is provided, and the power supply stop process (FIG. 2).
3 to 25), the same processing as the detection signal input processing of the prize ball count switch 301A shown in steps S467 to S486 described above is executed as the detection signal input processing of the ball lending count switch 301B. You can do this. Also, game control processing (eg, step S
21), the same process as the award ball number subtraction process (see FIG. 44) described above may be executed as a loan ball number subtraction process. Further, in the case of the above configuration, the game control means is provided with a function of executing processing relating to signal exchange with the prepaid card unit 50 in the above-mentioned payout control means, and is lent out using a payout control command. It suffices to perform processing for transmitting information regarding the requested number of lent balls to the payout control means. It should be noted that the ball lending count switch 3 is used in the power supply stop process (FIGS. 23 to 25)
When the input processing of the detection signal of 01B is executed, it may be executed after step S466 and before step S487 (for example, immediately before step S487). With the above configuration, the game control means can manage the number of lent balls. Especially when the detection signal of the ball lending count switch 301B is input to both the payout control means and the game control means,
Both the game control means and the payout control means can execute the management of the number of lent balls, and the management of the number of lent balls can be performed more accurately. In the case of the above configuration, when the power supply to the gaming machine is stopped, the + 12V power supply voltage is maintained in the switchable range for at least the payout confirmation period, and the ball lending count switch 301B (or the prize) Of course, the capacitance of the capacitor 923 is determined so that the ball count switch 301A and the ball lending count switch 301B) can be operated.

【0523】また、上述した各実施の形態において、電
力供給停止時処理でのスイッチ検出処理(例えば図2
4、図52に示す処理)の処理モジュールと、通常の制
御におけるスイッチ検出処理(図29の処理や図30の
処理を含む図22のステップS21の処理、図48のス
テップS752の処理)の処理モジュールとを共通の処
理モジュールとする(すなわち、共通のサブルーチンを
用いるようにする)ことができるが、この場合には、入
力処理(上記のスイッチ検出処理)にてスタックポイン
タの内容が書き換えられる。従って、共通モジュールを
用いる場合には、遊技制御手段においては、ステップS
458の処理をステップS487の処理の前に行うよう
にし、払出制御手段においては、ステップS808の処
理をステップS835の処理の前に行うようにすればよ
い。なお、電力供給停止時処理でのスイッチ検出処理の
処理モジュールと、通常の制御におけるスイッチ検出処
理の処理モジュールとを共通の処理モジュールとするこ
とは、上記のように球貸しカウントスイッチ301Bの
検出信号を遊技制御手段に入力する構成とした場合に
は、遊技制御手段が実行する球貸しカウントスイッチ3
01Bのスイッチ検出処理(検出信号の入力処理)に適
用することができる。
Further, in each of the above-mentioned embodiments, the switch detection process (eg, FIG.
No. 4, processing shown in FIG. 52) and processing of switch detection processing in normal control (processing of step S21 of FIG. 22 including processing of FIG. 29 and processing of FIG. 30, processing of step S752 of FIG. 48). The module and the module can be used as a common processing module (that is, a common subroutine is used). In this case, the contents of the stack pointer are rewritten in the input processing (switch detection processing described above). Therefore, in the case of using the common module, in the game control means, step S
The processing of step 458 may be performed before the processing of step S487, and the payout control means may perform the processing of step S808 before the processing of step S835. It should be noted that the processing module for the switch detection processing in the power supply stop processing and the processing module for the switch detection processing in the normal control are made to be a common processing module as described above by detecting the detection signal of the ball lending count switch 301B. When it is configured to input to the game control means, the ball lending count switch 3 executed by the game control means
This can be applied to the switch detection processing of 01B (detection signal input processing).

【0524】また、上述した実施の形態では、電力供給
が開始されたときにステップS713またはステップS
732にて払出停止中フラグをセットすることで払出禁
止状態とする構成としていたが、ステップS713また
はステップS732にて球払出装置97を制御するため
の制御信号が出力される出力ポート(図46に示す出力
ポートC)をクリアすることによって払出禁止状態をす
る構成としてもよい。
In the above-described embodiment, when the power supply is started, step S713 or step S713 is performed.
Although the payout suspension flag is set in 732 to set the payout prohibition state, the output port for outputting a control signal for controlling the ball payout device 97 in step S713 or step S732 (see FIG. 46). The payout prohibited state may be set by clearing the output port C) shown.

【0525】また、上述した実施の形態では、電源監視
手段(例えば電源監視用IC902)は、電源電圧が所
定の値(例えば22V)となった場合に電源断信号を出
力する構成としているが、例えば、交流電源(例えばA
C24V)に関連する交流波をデジタル変換したデジタ
ル信号を監視し、そのデジタル信号が所定期間途切れた
場合に電源断信号を出力する構成としてもよい。
In the above-described embodiment, the power supply monitoring means (for example, the power supply monitoring IC 902) outputs the power off signal when the power supply voltage reaches a predetermined value (for example, 22V). For example, an AC power source (for example, A
The AC signal related to C24V) may be digitally converted into a digital signal, and a power-off signal may be output when the digital signal is interrupted for a predetermined period.

【0526】また、上述した実施の形態では、電源監視
手段(例えば電源監視用IC902)が、電源電圧が所
定の値(例えば22V)となったことを検出した場合に
電源断時処理が実行され、さらに電源電圧が所定の値
(例えば9V)となったことを第2の電源監視手段(例
えば電源監視用IC902)が検出した場合にシステム
リセットされる構成としていたが、電源断時処理を開始
したあと所定期間の経過後に、自動的にシステムリセッ
トされるようにしてもよい。このように構成すれば、電
源電圧が所定の値(例えば22V)となったことが電源
監視手段(例えば電源監視用IC902)によって検出
された場合には、その後の第2の電源監視手段(例えば
電源監視用IC902)による検出がなされなかった場
合であっても、確実にシステムリセットすることができ
るようになる。
Further, in the above-described embodiment, the power-off processing is executed when the power supply monitoring means (eg, power supply monitoring IC 902) detects that the power supply voltage has reached a predetermined value (eg, 22V). Further, the system is configured to be reset when the second power supply monitoring means (for example, the power supply monitoring IC 902) detects that the power supply voltage has reached a predetermined value (for example, 9V). After that, the system may be automatically reset after a lapse of a predetermined period. According to this structure, when the power supply monitoring unit (for example, the power supply monitoring IC 902) detects that the power supply voltage has reached the predetermined value (for example, 22 V), the second power supply monitoring unit (for example, the second power supply monitoring unit) that follows is detected. Even if the detection by the power supply monitoring IC 902) is not made, the system can be surely reset.

【0527】また、上述した実施の形態では、電源基板
910からの電源断信号がマスク不能割込端子(XNM
I)に入力したことに応じて主基板31および払出制御
基板37にて電力供給停止時処理(図23〜図25、図
51〜図53)が実行される構成としていたが、払出制
御基板37のマスク不能割込端子に入力される電源断信
号を主基板31が出力する構成としてもよい。この場
合、CPU56は、電源基板910からの電源断信号が
マスク不能割込端子に入力したことに応じて、電力供給
停止時処理(図23〜図25)を開始するとともに、払
出制御基板37のマスク不能割込端子に向けて電源断信
号を出力する処理を行う。そして、払出制御用CPU3
71は、主基板31からの電源断信号がマスク不能割込
端子に入力すると、電力供給停止時処理(図51〜図5
3)を開始する。このように構成すれば、電源基板91
0の構成を簡略化することができる。なお、上記の構成
とした場合に、CPU56が、コマンドの送信中(図4
2、図43に示した処理の実行中)に電源断信号を受信
した場合には、コマンドの送信処理を完了したあとに、
払出制御基板37に向けて電源断信号を送信する処理を
実行するようにしてもよい。このように構成すれば、払
出制御基板37にて、コマンドの受信に関する処理を完
了したあとに電力供給停止時処理(図51〜図53)が
実行されるようにすることが可能となる。また、上記の
構成とした場合に、CPU56が、電源基板910から
の電源断信号がマスク不能割込端子に入力したことに応
じて、払出制御基板37に向けて電力供給停止時処理の
実行を指定する払出制御コマンドを送信するようにして
もよい。この場合、払出制御用CPU371は、電力供
給停止時処理の実行を指定する払出制御コマンドを受信
すると、電力供給停止時処理(図51〜図53)を開始
する。さらに、払出制御基板37以外の他のサブ基板
(図柄制御基板80、ランプ制御基板35、音制御基板
70)についても上記のような構成とするようにしても
よい。
Further, in the above-described embodiment, the power-off signal from the power supply board 910 causes the non-maskable interrupt terminal (XNM).
The power supply stop process (FIGS. 23 to 25 and 51 to 53) is executed by the main board 31 and the payout control board 37 in response to the input to I). Alternatively, the main board 31 may output a power-off signal input to the non-maskable interrupt terminal. In this case, the CPU 56 starts the power supply stop processing (FIGS. 23 to 25) in response to the power-off signal from the power supply board 910 being input to the non-maskable interrupt terminal, and also causes the payout control board 37 to operate. Performs processing to output a power-off signal to the non-maskable interrupt terminal. And the payout control CPU 3
When the power-off signal from the main board 31 is input to the non-maskable interrupt terminal 71, the processing 71 is performed when the power supply is stopped (see FIGS. 51 to 5).
3) is started. With this configuration, the power supply board 91
The configuration of 0 can be simplified. In the case of the above configuration, the CPU 56 transmits the command (see FIG. 4).
(2, while executing the processing shown in FIG. 43), when the power-off signal is received, after the command transmission processing is completed,
You may make it perform the process which transmits a power-off signal to the payout control board 37. According to this structure, the payout control board 37 can execute the power supply stop process (FIGS. 51 to 53) after the process related to the reception of the command is completed. Further, in the case of the above configuration, the CPU 56 executes the power supply stop time process toward the payout control board 37 in response to the power-off signal from the power supply board 910 being input to the non-maskable interrupt terminal. The designated payout control command may be transmitted. In this case, when the payout control CPU 371 receives the payout control command designating the execution of the power supply stoppage process, the power supply stoppage process (FIGS. 51 to 53) is started. Further, the sub-boards other than the payout control board 37 (the pattern control board 80, the lamp control board 35, the sound control board 70) may be configured as described above.

【0528】なお、上述した実施の形態において、「特
定遊技状態」とは、所定の遊技価値が付与された遊技者
にとって有利な状態を意味する。具体的には、「特定遊
技状態」は、例えば、例えば可変入賞球装置の状態が打
球が入賞しやすい遊技者にとって有利な状態(大当り遊
技状態)、遊技者にとって有利な状態となるための権利
が発生した状態、景品遊技媒体払出の条件が成立しやす
くなる状態などの、所定の遊技価値が付与された状態で
ある。
In the above-mentioned embodiment, the "specific game state" means a state advantageous to the player to whom a predetermined game value is given. Specifically, the "specific game state" is, for example, a state in which the state of the variable winning ball device is advantageous for a player who is likely to win a hit ball (big hit gaming state), and a right to be a state advantageous for the player. Is a state in which a predetermined game value is given, such as a state in which the game is generated, a state in which the prize game medium payout condition is easily established.

【0529】また、上述した実施の形態において、「特
別遊技状態」とは、大当りとなりやすい遊技者にとって
有利な状態を意味する。具体的には、「特別遊技状態」
は、例えば、特別図柄が大当り図柄で揃う確率が高確率
状態とされる確変状態、単位時間あたりの普通図柄の変
動回数が高められる時短状態、可変入賞球装置15の開
成期間や開成回数が高められる開放延長状態などの大当
りとなる確率が高められている高確率状態である。な
お、時短状態は、可変入賞球装置15の開放回数が高め
られていることから単位時間あたりの入賞回数が増加
し、単位時間あたりの特別図柄の可変表示回数が高めら
れるので、大当りとなる確率が高められている状態とい
える。また、同様に、開放延長状態は、可変入賞球装置
15の開成期間や開成回数が高められていることから単
位時間あたりの入賞回数が増加し、単位時間あたりの特
別図柄の可変表示回数が高められるので、大当りとなる
確率が高められている状態といえる。
Further, in the above-mentioned embodiment, the "special game state" means a state advantageous to the player who is prone to a big hit. Specifically, "special game state"
Is, for example, a probability variation state in which the probability that the special symbols are arranged in a big jackpot pattern is a high probability state, a time saving state in which the number of fluctuations of the ordinary symbol per unit time is increased, and an opening period and the number of times of opening the variable winning ball device 15 are increased. It is a high-probability state in which the probability of a big hit such as the extended extension state is increased. In the time saving state, since the number of times the variable winning ball device 15 is opened is increased, the number of winnings per unit time is increased, and the number of times the special symbol is variably displayed per unit time is increased. Can be said to have been raised. Similarly, in the extended open state, the number of winnings per unit time is increased because the opening period and the number of times of opening the variable winning ball device 15 are increased, and the number of times the special symbol is displayed variable per unit time is increased. Therefore, it can be said that the probability of being a big hit is increased.

【0530】上記の各実施の形態のパチンコ遊技機は、
主として、始動入賞にもとづいて可変表示部9に可変表
示される特別図柄の停止図柄が所定の図柄の組み合わせ
になると所定の遊技価値が遊技者に付与可能になる第1
種パチンコ遊技機であったが、始動入賞にもとづいて開
放する電動役物の所定領域への入賞があると所定の遊技
価値が遊技者に付与可能になる第2種パチンコ遊技機
や、始動入賞にもとづいて可変表示される図柄の停止図
柄が所定の図柄の組み合わせになると開放する所定の電
動役物への入賞があると所定の権利が発生または継続す
る第3種パチンコ遊技機であっても、本発明を適用でき
る。
The pachinko game machine of each of the above-mentioned 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.

【0531】さらに、遊技媒体が遊技球であるパチンコ
遊技機に限られず、スロット機等においても、遊技媒体
の払い出しを行う電気部品が備えられている場合には本
発明を適用することができる。
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 electric parts for paying out the game medium.

【0532】[0532]

【発明の効果】以上のように、請求項1記載の発明によ
れば、遊技機を、遊技制御手段が、電気部品制御手段に
コマンドを送信するためのコマンド送信プログラムを実
行して遊技の進行に応じたコマンドを送信するコマンド
送信手段を有し、電源監視手段からの検出信号に応じて
制御状態を復旧させるために必要なデータを変動データ
記憶手段に保存するための電力供給停止時処理と、変動
データ記憶手段に保存されていた記憶内容にもとづいて
制御状態を電力供給が停止する前の状態に復旧させる復
旧処理を実行し、コマンド送信手段が、復旧処理にてサ
ブルーチンコールによって呼び出したコマンド送信プロ
グラムを実行することで、電気部品制御手段に電力供給
が停止する前の制御状態へ復旧するためのコマンドを送
信する処理を実行し、変動データ記憶手段が、サブルー
チンコールがあったことに応じて、実行されていた制御
プログラムのアドレスに関連するプログラムアドレスデ
ータを退避させるスタック領域を含み、遊技制御手段
が、スタックポインタにより示されるアドレスによりス
タック領域に退避されたデータのうち、次に読み出され
るべきデータが格納されているアドレスを特定し、電力
供給停止時処理において、スタックポインタにより示さ
れるアドレスに関連するスタックアドレスデータを変動
データ記憶手段に退避する処理を行い、復旧処理におい
て、コマンド送信手段が最初にコマンドを送信する前
に、電力供給停止時処理にて変動データ記憶手段に退避
したスタックアドレスデータによって、スタックポイン
タを設定することを特徴としており、復旧処理における
コマンドを送信するための処理をサブルーチンによって
行うことができるようになるので、遊技状態を復旧させ
るための処理を実行するためのプログラムの容量を小さ
くすることができ、遊技状態を復旧させるための処理を
プログラム構成上効率良く実行することができるという
効果を有する。
As described above, according to the invention described in claim 1, the game control means executes the command transmission program for transmitting the command to the electric component control means, and the game progresses. And a power supply stop processing for storing data necessary for restoring the control state in the variable data storage means in response to a detection signal from the power supply monitoring means. , A command called by the command transmission means by a subroutine call in the restoration processing, which executes restoration processing for restoring the control state to the state before the power supply is stopped based on the stored contents stored in the fluctuation data storage means. By executing the transmission program, the process of transmitting a command to the electrical component control means to restore the control state before the power supply was stopped is executed. , The variable data storage means includes a stack area for saving the program address data related to the address of the control program being executed in response to the subroutine call, and the game control means has the address indicated by the stack pointer. Of the data saved in the stack area, the address where the data to be read next is stored is specified, and the stack address data related to the address indicated by the stack pointer is stored as the variable data in the process when the power supply is stopped. In the restoration process, the stack pointer is set by the stack address data saved in the variable data storage unit in the power supply stop process before the command transmission unit first sends the command in the restoration process. Is characterized by Since the process for transmitting the command in the process can be performed by the subroutine, the capacity of the program for executing the process for restoring the game state can be reduced, and the game state can be restored. This has the effect that the processing of can be efficiently executed in terms of the program configuration.

【0533】請求項2記載の発明では、遊技制御手段
が、電力供給が復帰し所定の復旧条件が成立した場合に
復旧処理を実行し、所定の復旧条件が不成立であった場
合には、変動データ記憶手段に保持されていた記憶内容
を初期化する初期化処理を実行する構成としたので、復
旧条件が成立している場合にのみ制御状態を復旧させる
ことができるようになる。
According to the second aspect of the invention, the game control means executes the restoration process when the power supply is restored and the predetermined restoration condition is satisfied, and when the predetermined restoration condition is not satisfied, the fluctuation occurs. Since the initialization processing for initializing the storage contents held in the data storage means is executed, the control state can be restored only when the restoration condition is satisfied.

【0534】請求項3記載の発明では、払出制御手段
が、電力供給が開始された場合に、遊技媒体の払い出し
を禁止する払出禁止状態に制御し、遊技制御手段からの
所定のコマンドの受信に応じて払出禁止状態を解除する
ように構成されているので、遊技制御手段が制御を開始
したことが確定したあとに払出禁止状態を解除すること
ができ、遊技制御手段が制御が可能な状態となるより先
に払出制御手段が払出処理を開始してしまうことを確実
に防止することができる。
According to the third aspect of the invention, the payout control means controls the payout prohibition state in which the payout of the game medium is prohibited when the power supply is started, and the predetermined command is received from the game control means. Since the payout prohibition state is released accordingly, the payout prohibition state can be released after it is confirmed that the game control means has started control, and the game control means can control the state. It is possible to reliably prevent the payout control means from starting the payout process before it happens.

【0535】請求項4記載の発明では、コマンド送信手
段が、復旧処理にて、遊技媒体の払い出しを禁止するか
許可するかを指定する払出状態指定コマンドを、払出制
御手段に対して送信し、払出制御手段が、払出状態指定
コマンドが、遊技媒体の払い出しを許可するものであっ
た場合に払出禁止状態を解除するように構成されている
ので、実際の遊技機の状態に応じて、払出制御手段の制
御状態を復旧させることができる。また、払出状態指定
コマンドを送信するための処理をサブルーチンによって
行うことができるようになる。
In the invention according to claim 4, the command transmitting means transmits to the payout control means a payout state designating command for designating whether to prohibit or permit the payout of the game medium in the recovery processing, Since the payout control means is configured to cancel the payout prohibition state when the payout state designation command permits the payout of the game medium, the payout control is performed according to the actual state of the gaming machine. The control state of the means can be restored. Further, the processing for transmitting the payout state designation command can be performed by the subroutine.

【0536】請求項5記載の発明では、遊技機への電力
供給の開始に関連して、遊技制御手段が遊技に関わる制
御が可能な状態になる時期を、電気部品制御手段が電気
部品の制御が可能な状態になる時期よりも遅い時期とな
るように規制する起動順序規制手段を備えたので、電力
供給開始時に遊技制御手段からのコマンドを受信する電
気部品制御手段がコマンドを確実に受信することができ
るという効果がある。
According to the fifth aspect of the invention, in connection with the start of the power supply to the gaming machine, the electric parts control means controls the electric parts at the time when the game control means becomes in a state where the control related to the game becomes possible. Since the starting order regulation means for regulating the time to be later than the time when the electric power supply is possible is provided, the electric component control means for receiving the command from the game control means at the start of the power supply surely receives the command. The effect is that you can.

【0537】請求項6記載の発明では、コマンド送信手
段が、復旧処理にて、始動入賞記憶数を指定する始動入
賞記憶数指定コマンドを、始動入賞記憶数表示制御手段
に対して送信するように構成されているので、始動入賞
記憶数指定コマンドを送信するための処理をサブルーチ
ンによって行うことができるようになる。また、遊技が
再開されたときに始動入賞記憶数を遊技者に対して確実
に報知することができる。
According to the sixth aspect of the present invention, the command transmitting means transmits the starting winning memory number designating command for designating the starting winning memory number to the starting winning memory number display control means in the restoration process. Since it is configured, it becomes possible to perform the processing for transmitting the command for specifying the number of memory for starting winning prizes by a subroutine. Further, when the game is restarted, the player can be surely notified of the number of memory for winning the winning prize for starting.

【0538】請求項7記載の発明では、コマンド送信手
段が、復旧処理にて、特別遊技状態であるか否かを指定
する特別遊技状態指定コマンドを、表示制御手段に対し
て送信するように構成されているので、特別遊技状態指
定コマンドを送信するための処理をサブルーチンによっ
て行うことができるようになる。また、遊技が再開され
たときに特別遊技状態であるか否かを遊技者に対して確
実に報知することができる。
In the invention according to claim 7, the command transmitting means is configured to transmit a special game state designation command for designating whether or not it is in the special game state to the display control means in the recovery processing. Therefore, the subroutine for transmitting the special game state designation command can be performed. Further, when the game is restarted, it can be surely notified to the player whether or not it is in the special game state.

【0539】請求項8記載の発明では、コマンド送信手
段が、復旧処理にて、電力供給の停止に関連した時期に
可変表示装置に表示させる識別情報の表示結果を指定す
る識別情報指定コマンドを、表示制御手段に対して送信
するように構成されているので、識別情報の表示結果に
関する情報を復旧させるための識別情報指定コマンドを
送信するための処理をサブルーチンによって行うことが
できるようになる。また、遊技が再開されたときに識別
情報の表示結果を遊技者に認識させることが可能とな
る。
[0539] In the invention of claim 8, the command transmitting means issues an identification information designating command for designating the display result of the identification information to be displayed on the variable display device at the time related to the stop of the power supply in the restoration process. Since it is configured to be transmitted to the display control means, it becomes possible to perform the processing for transmitting the identification information designation command for restoring the information regarding the display result of the identification information by the subroutine. Further, it becomes possible for the player to recognize the display result of the identification information when the game is restarted.

【0540】請求項9記載の発明では、遊技制御手段
が、所定期間毎に発生するタイマ割込に応じて所定の遊
技制御を行い、復旧処理にて、コマンド送信手段によっ
て電気部品制御手段に対してコマンドを送信したあと、
タイマ割込を所定期間毎に発生させるための設定を行う
ように構成されているので、遊技制御手段と電気部品制
御手段との間で同期をとることが容易となる。
According to the ninth aspect of the present invention, the game control means performs predetermined game control according to a timer interrupt that occurs at predetermined time intervals, and in the restoration process, the command transmission means instructs the electric component control means. After sending the command,
Since the setting is made to generate the timer interrupt every predetermined period, it becomes easy to synchronize the game control means and the electric component control means.

【0541】請求項10記載の発明では、遊技制御手段
が、電力供給停止時処理にて、変動データ記憶手段への
アクセスを禁止する処理を実行するように構成されてい
るので、電力供給停止時処理後に変動データ記憶手段の
内容が破壊されること等を防止することができる。
According to the tenth aspect of the present invention, the game control means is configured to execute the processing for prohibiting access to the variable data storage means in the power supply stop processing, so that the power supply is stopped. It is possible to prevent the contents of the fluctuation data storage means from being destroyed after the processing.

【0542】請求項11記載の発明では、遊技制御手段
が、電力供給停止時処理にて、出力ポートに対してクリ
ア信号を出力することによって出力信号をクリアするた
めの処理を行うように構成されているので、電力供給が
停止状態となる前に出力ポートがクリアされ、確実に出
力信号がクリアされる。
In the eleventh aspect of the present invention, the game control means is configured to perform processing for clearing the output signal by outputting a clear signal to the output port in the power supply stop processing. Therefore, the output port is cleared before the power supply is stopped, and the output signal is reliably cleared.

【図面の簡単な説明】[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 an exposed portion of a power supply board installed on the mechanism plate.

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

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

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

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

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

【図12】 クリアスイッチの他の構成例を示す説明図
である。
FIG. 12 is an explanatory diagram showing another configuration example of the clear switch.

【図13】 リセット管理回路の構成例を示すブロック
図である。
FIG. 13 is a block diagram showing a configuration example of a reset management circuit.

【図14】 CPU周りの一構成例を示すブロック図で
ある。
FIG. 14 is a block diagram showing an example of the configuration around a CPU.

【図15】 タイマ手段の一例であるカウンタの作用を
説明するためのタイミング図である。
FIG. 15 is a timing chart for explaining the operation of a counter which is an example of timer means.

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

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

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

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

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

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

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

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

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

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

【図26】 遊技機への電力供給停止時の電源低下やN
MI信号の様子を示すタイミング図である。
FIG. 26: 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.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

【図44】 賞球個数減算処理の一例を示すフローチャ
ートである。
FIG. 44 is a flowchart showing an example of a prize sphere number subtracting process.

【図45】 払出制御用CPU周りの一構成例を示すブ
ロック図である。
FIG. 45 is a block diagram showing a configuration example around a payout control CPU.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

【図64】 電力供給が開始したあとに払出処理が実行
されるタイミングの例を示すタイミングチャートであ
る。
FIG. 64 is a timing chart showing an example of the timing at which the payout process is executed after the power supply is started.

【図65】 遊技機の構成を示すブロック図である。FIG. 65 is a block diagram showing a configuration of a gaming machine.

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

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

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

【図69】 遊技制御手段における電力供給停止時処理
の他の例を示すフローチャートである。
69 is a flow chart showing another example of the power supply stop time process in the game control means. FIG.

【図70】 払出制御手段における電力供給停止時処理
の他の例を示すフローチャートである。
FIG. 70 is a flowchart showing another example of the power supply stoppage process in the payout control means.

【図71】 遊技制御手段の他の構成例の一部を示すブ
ロック図である。
71 is a block diagram showing a part of another configuration example of the game control means. FIG.

【図72】 主基板におけるCPUが実行する2msタ
イマ割込処理の他の例を示すフローチャートである。
72 is a flowchart showing another example of the 2 ms timer interrupt process executed by the CPU on the main board. FIG.

【図73】 ソフトウェアタイマおよびウォッチドッグ
タイマ回路の作用を説明するためのタイミング図であ
る。
FIG. 73 is a timing chart for explaining the operation of the software timer and watchdog timer circuit.

【図74】 払出制御手段の他の構成例の一部を示すブ
ロック図である。
FIG. 74 is a block diagram showing a part of another configuration example of the payout control means.

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

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

1 パチンコ遊技機 31 遊技制御基板(主基板) 37 払出制御基板 56 CPU 371 払出制御用CPU 910 電源基板 902 電源監視用IC(電源監視手段) 971 カウンタ 1 Pachinko machine 31 Game control board (main board) 37 Discharge control board 56 CPU 371 CPU for payout control 910 Power board 902 Power supply monitoring IC (power supply monitoring means) 971 counter

───────────────────────────────────────────────────── フロントページの続き (72)発明者 神林 康男 群馬県桐生市境野町6丁目460番地 株式 会社三共内 Fターム(参考) 2C088 BA02 BA13 BA21 BA28 BA32 BA37 BC58 BC70 EB56 EB58   ─────────────────────────────────────────────────── ─── Continued front page    (72) Inventor Yasuo Kambayashi             Gunma Prefecture Kiryu City Sakaino-cho 6-460 Stock             Company Sankyo F-term (reference) 2C088 BA02 BA13 BA21 BA28 BA32                       BA37 BC58 BC70 EB56 EB58

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】 遊技者が所定の遊技を行うことが可能な
遊技機であって、 遊技機に設けられた電気部品を制御するための電気部品
制御手段と、 遊技の進行を制御する遊技制御手段と、 遊技機への電力供給が停止しても所定期間は記憶内容を
保持することが可能な変動データ記憶手段と、 遊技機で用いられる所定の電源の状態を監視して、遊技
機への電力の供給停止にかかわる検出条件が成立した場
合に検出信号を出力する電源監視手段とを備え、 前記遊技制御手段は、前記電気部品制御手段にコマンド
を送信するためのコマンド送信プログラムを実行して遊
技の進行に応じたコマンドを送信するコマンド送信手段
を有し、 前記電源監視手段からの検出信号に応じて制御状態を復
旧させるために必要なデータを前記変動データ記憶手段
に保存するための電力供給停止時処理と、前記変動デー
タ記憶手段に保存されていた記憶内容にもとづいて制御
状態を電力供給が停止する前の状態に復旧させる復旧処
理を実行し、 前記コマンド送信手段は、前記復旧処理にてサブルーチ
ンコールによって呼び出した前記コマンド送信プログラ
ムを実行することで、前記電気部品制御手段に電力供給
が停止する前の制御状態へ復旧するためのコマンドを送
信する処理を実行し、 前記変動データ記憶手段は、サブルーチンコールがあっ
たことに応じて、実行されていた制御プログラムのアド
レスに関連するプログラムアドレスデータを退避させる
スタック領域を含み、 前記遊技制御手段は、スタックポインタにより示される
アドレスにより前記スタック領域に退避されたデータの
うち、次に読み出されるべきデータが格納されているア
ドレスを特定し、 前記電力供給停止時処理において、前記スタックポイン
タにより示されるアドレスに関連するスタックアドレス
データを前記変動データ記憶手段に退避する処理を行
い、 前記復旧処理において、前記コマンド送信手段が最初に
コマンドを送信する前に、前記電力供給停止時処理にて
前記変動データ記憶手段に退避した前記スタックアドレ
スデータによって、前記スタックポインタを設定するこ
とを特徴とする遊技機。
1. A gaming machine in which a player can play a predetermined game, wherein the electronic component control means for controlling electrical components provided in the gaming machine, and the game control for controlling the progress of the game. Means, a variable data storage means capable of retaining the stored contents for a predetermined period even if the power supply to the gaming machine is stopped, and a state of a predetermined power source used in the gaming machine are monitored to the gaming machine. And a power supply monitoring means for outputting a detection signal when a detection condition relating to the stop of the supply of electric power is satisfied, and the game control means executes a command transmission program for transmitting a command to the electric component control means. Has command transmission means for transmitting a command according to the progress of the game, and saves the data necessary for restoring the control state in accordance with the detection signal from the power supply monitoring means in the fluctuation data storage means And a restoration process for restoring the control state to the state before the power supply is stopped based on the stored contents stored in the fluctuation data storage means, and the command transmission means By executing the command transmission program called by a subroutine call in the restoration process, a process for transmitting a command for restoring the control state before the power supply is stopped to the electric component control means is executed, The variable data storage means includes a stack area for saving program address data related to the address of the control program being executed in response to a subroutine call, and the game control means is indicated by a stack pointer. Of the data saved in the stack area by address, the next read An address in which data to be stored is specified, and in the power supply stop process, a stack address data related to the address indicated by the stack pointer is saved in the variable data storage means, and the restoration process is performed. In the above, before the command transmitting means first transmits a command, the stack pointer is set by the stack address data saved in the fluctuation data storage means in the power supply stop processing. Machine.
【請求項2】 遊技制御手段は、電力供給が復帰し所定
の復旧条件が成立した場合に復旧処理を実行し、所定の
復旧条件が不成立であった場合には、前記変動データ記
憶手段に保持されていた記憶内容を初期化する初期化処
理を実行する請求項1記載の遊技機。
2. The game control means executes a restoration process when the power supply is restored and a predetermined restoration condition is satisfied, and when the predetermined restoration condition is not satisfied, the game control means holds it in the fluctuation data storage means. The gaming machine according to claim 1, which executes an initialization process for initializing the stored contents.
【請求項3】 電気部品制御手段は、遊技媒体の払い出
しを行う払出手段を制御する払出制御手段を含み、 前記払出制御手段は、電力供給が開始された場合に、遊
技媒体の払い出しを禁止する払出禁止状態に制御し、 遊技制御手段からの所定のコマンドの受信に応じて払出
禁止状態を解除する請求項1または請求項2記載の遊技
機。
3. The electric component control means includes a payout control means for controlling a payout means for paying out the game medium, and the payout control means prohibits the payout of the game medium when power supply is started. 3. The gaming machine according to claim 1, wherein the payout prohibited state is controlled, and the payout prohibited state is released in response to reception of a predetermined command from the game control means.
【請求項4】 コマンド送信手段は、復旧処理にて、遊
技媒体の払い出しを禁止するか許可するかを指定する払
出状態指定コマンドを、払出制御手段に対して送信し、 払出制御手段は、前記払出状態指定コマンドが、遊技媒
体の払い出しを許可するものであった場合に払出禁止状
態を解除する請求項3記載の遊技機。
4. The command transmitting means transmits a payout state designation command for designating whether to prohibit or permit payout of the game medium in the recovery processing, to the payout control means, and the payout control means The gaming machine according to claim 3, wherein the payout state designation command releases the payout prohibition state when the payout of the game medium is permitted.
【請求項5】 遊技機への電力供給の開始に関連して、
遊技制御手段が遊技に関わる制御が可能な状態になる時
期を、電気部品制御手段が電気部品の制御が可能な状態
になる時期よりも遅い時期となるように規制する起動順
序規制手段を備えた請求項1から請求項4のうちいずれ
かに記載の遊技機。
5. In connection with the start of power supply to the gaming machine,
The game control means is provided with a starting sequence regulation means for regulating the time when the control relating to the game becomes possible to be later than the time when the electric component control means becomes the state where the electric parts can be controlled. The gaming machine according to any one of claims 1 to 4.
【請求項6】 電気部品制御手段は、識別情報の可変表
示を行う可変表示装置を制御する表示制御手段と、前記
可変表示装置における識別情報の可変表示の保留回数を
示す始動入賞記憶数を表示する始動入賞記憶数表示手段
を制御する始動入賞記憶数表示制御手段とを含み、 コマンド送信手段は、復旧処理にて、始動入賞記憶数を
指定する始動入賞記憶数指定コマンドを、前記始動入賞
記憶数表示制御手段に対して送信する請求項1から請求
項5のうちいずれかに記載の遊技機。
6. The electric component control means displays a display control means for controlling a variable display device that variably displays identification information, and a start winning award storage number that indicates the number of times that the variable display of identification information is held on the variable display device. The starting prize winning memory number display control means for controlling the starting winning prize memory number display means, and the command transmitting means, in the restoration process, issues a starting winning prize memory number designating command for designating the starting winning prize memory number. The gaming machine according to any one of claims 1 to 5, which is transmitted to the number display control means.
【請求項7】 電気部品制御手段は、識別情報の可変表
示を行う可変表示装置を制御する表示制御手段を含み、 遊技機は、前記可変表示装置に表示される識別情報の表
示結果が特定の表示態様となったことを条件に遊技者に
とって有利な特定遊技状態に制御可能であるとともに、
前記識別情報が前記特定の表示態様となりやすい特別遊
技状態に制御可能であって、 コマンド送信手段は、復旧処理にて、前記特別遊技状態
であるか否かを指定する特別遊技状態指定コマンドを、
前記表示制御手段に対して送信する請求項1から請求項
5のうちいずれかに記載の遊技機。
7. The electric component control means includes display control means for controlling a variable display device that variably displays identification information, and the gaming machine has a specific display result of the identification information displayed on the variable display device. It is possible to control to a specific game state that is advantageous to the player on the condition that the display mode is set,
The identification information can be controlled to a special game state that is likely to be the specific display mode, and the command transmission means, in the restoration process, a special game state designation command for designating whether or not the special game state is,
The gaming machine according to any one of claims 1 to 5, which transmits to the display control means.
【請求項8】 電気部品制御手段は、識別情報の可変表
示を行う可変表示装置を制御する表示制御手段を含み、 コマンド送信手段は、復旧処理にて、電力供給の停止に
関連した時期に前記可変表示装置に表示させる識別情報
の表示結果を指定する識別情報指定コマンドを、前記表
示制御手段に対して送信する請求項1から請求項5のう
ちいずれかに記載の遊技機。
8. The electrical component control means includes a display control means for controlling a variable display device that variably displays identification information, and the command transmission means is a restoration process at a time related to stop of power supply. The gaming machine according to any one of claims 1 to 5, wherein an identification information designating command that designates a display result of the identification information to be displayed on the variable display device is transmitted to the display control means.
【請求項9】 遊技制御手段は、所定期間毎に発生する
タイマ割込に応じて所定の遊技制御を行い、 復旧処理にて、コマンド送信手段によって電気部品制御
手段に対してコマンドを送信したあと、前記タイマ割込
を所定期間毎に発生させるための設定を行う請求項1か
ら請求項8のうちいずれかに記載の遊技機。
9. The game control means performs predetermined game control according to a timer interrupt generated every predetermined period, and after the command transmission means transmits a command to the electric component control means in the recovery processing. The gaming machine according to any one of claims 1 to 8, wherein settings are made to generate the timer interrupt every predetermined period.
【請求項10】 遊技制御手段は、電力供給停止時処理
にて、変動データ記憶手段へのアクセスを禁止する処理
を実行する請求項1から請求項9のうちいずれかに記載
の遊技機。
10. The game machine according to claim 1, wherein the game control means executes processing for prohibiting access to the fluctuation data storage means in the power supply stop processing.
【請求項11】 遊技制御手段は、出力信号を出力する
ための出力ポートを備え、 前記遊技制御手段は、電力供給停止時処理にて、前記出
力ポートに対してクリア信号を出力することによって出
力信号をクリアするための処理を行う請求項1ないし請
求項10記載の遊技機。
11. The game control means includes an output port for outputting an output signal, and the game control means outputs a clear signal to the output port in a power supply stop process. The gaming machine according to claim 1, which performs processing for clearing a signal.
JP2001372061A 2001-12-05 2001-12-05 Game machine Expired - Fee Related JP3737424B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001372061A JP3737424B2 (en) 2001-12-05 2001-12-05 Game machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001372061A JP3737424B2 (en) 2001-12-05 2001-12-05 Game machine

Publications (3)

Publication Number Publication Date
JP2003169905A true JP2003169905A (en) 2003-06-17
JP2003169905A5 JP2003169905A5 (en) 2005-07-14
JP3737424B2 JP3737424B2 (en) 2006-01-18

Family

ID=19181013

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001372061A Expired - Fee Related JP3737424B2 (en) 2001-12-05 2001-12-05 Game machine

Country Status (1)

Country Link
JP (1) JP3737424B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010158260A (en) * 2008-12-09 2010-07-22 Sanyo Product Co Ltd Game machine
JP2016187622A (en) * 2016-07-08 2016-11-04 株式会社ソフイア Game machine
JP2017131775A (en) * 2017-05-15 2017-08-03 株式会社三洋物産 Game machine

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08802A (en) * 1994-06-21 1996-01-09 Sankyo Kk Pachinko machine
JPH1085421A (en) * 1996-09-17 1998-04-07 Sankyo Kk Game machine
JP2001087472A (en) * 1999-09-21 2001-04-03 Sankyo Kk Game machine
JP2001187255A (en) * 1999-12-28 2001-07-10 Sankyo Kk Game machine
JP2001204898A (en) * 2000-01-25 2001-07-31 Takao:Kk Game machine
JP2002000878A (en) * 2000-06-21 2002-01-08 Daiman:Kk Game machine

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08802A (en) * 1994-06-21 1996-01-09 Sankyo Kk Pachinko machine
JPH1085421A (en) * 1996-09-17 1998-04-07 Sankyo Kk Game machine
JP2001087472A (en) * 1999-09-21 2001-04-03 Sankyo Kk Game machine
JP2001187255A (en) * 1999-12-28 2001-07-10 Sankyo Kk Game machine
JP2001204898A (en) * 2000-01-25 2001-07-31 Takao:Kk Game machine
JP2002000878A (en) * 2000-06-21 2002-01-08 Daiman:Kk Game machine

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010158260A (en) * 2008-12-09 2010-07-22 Sanyo Product Co Ltd Game machine
JP2014147669A (en) * 2008-12-09 2014-08-21 Sanyo Product Co Ltd Game machine
JP2016187622A (en) * 2016-07-08 2016-11-04 株式会社ソフイア Game machine
JP2017131775A (en) * 2017-05-15 2017-08-03 株式会社三洋物産 Game machine

Also Published As

Publication number Publication date
JP3737424B2 (en) 2006-01-18

Similar Documents

Publication Publication Date Title
JP2003169908A (en) Game machine
JP2003190587A (en) Game machine
JP2003103025A (en) Game machine
JP2003169905A (en) Game machine
JP2003135784A (en) Game machine
JP2003111960A (en) Game machine
JP2003169906A (en) Game machine
JP3699041B2 (en) Game machine
JP2003159448A (en) Game machine
JP2003111957A (en) Game machine
JP2003169904A (en) Game machine
JP2003103024A (en) Game machine
JP2003135820A (en) Game machine
JP2003169907A (en) Game machine
JP3640634B2 (en) Game machine
JP2003117183A (en) Game machine
JP2003190538A (en) Game machine
JP2003154138A (en) Game machine
JP2003159449A (en) Game machine
JP2003164580A (en) Game machine
JP3699042B2 (en) Game machine
JP2003175168A (en) Game machine
JP3828409B2 (en) Game machine
JP2003135778A (en) Game machine
JP2003175167A (en) Game machine

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041124

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20041124

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20050105

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050111

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050419

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050615

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20051018

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20051026

R150 Certificate of patent or registration of utility model

Ref document number: 3737424

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20081104

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20111104

Year of fee payment: 6

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20111104

Year of fee payment: 6

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

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

Free format text: PAYMENT UNTIL: 20111104

Year of fee payment: 6

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20111104

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20111104

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20121104

Year of fee payment: 7

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20121104

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20131104

Year of fee payment: 8

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees