JP2003175165A - Game machine - Google Patents

Game machine

Info

Publication number
JP2003175165A
JP2003175165A JP2001375075A JP2001375075A JP2003175165A JP 2003175165 A JP2003175165 A JP 2003175165A JP 2001375075 A JP2001375075 A JP 2001375075A JP 2001375075 A JP2001375075 A JP 2001375075A JP 2003175165 A JP2003175165 A JP 2003175165A
Authority
JP
Japan
Prior art keywords
command
power supply
game
payout
control means
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.)
Withdrawn
Application number
JP2001375075A
Other languages
Japanese (ja)
Inventor
Shohachi Ugawa
詔八 鵜川
Rinei Iizuka
林永 飯塚
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 JP2001375075A priority Critical patent/JP2003175165A/en
Publication of JP2003175165A publication Critical patent/JP2003175165A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Pinball Game Machines (AREA)
  • Display Devices Of Pinball Game Machines (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To unerringly prevent a failure in capturing a command in an electrical part control means receiving a command from a game control means. <P>SOLUTION: A power cutoff signal outputted by a power monitoring IC 902 loaded on a power board 910 is inputted to a nonmaskable interrupt terminal of a CPU 56 loaded on a main board 31. The CPU 56 operates in accordance with a program stored in a ROM and performs a power supply stoppage process and outputs a power cutoff signal to a putting-out control board 37 when recognizing input of the power cutoff signal from the power board 910. In the putting- out control board 37, a power cutoff signal is inputted to the nonmaskable interrupt terminal of a putting-out control CPU 371 operating in accordance with the program stored in the ROM. The putting-out control CPU 371 executes a subsidiary side power supply stoppage process when recognizing input of the power cutoff signal from the main board 31. <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 game value means that the state of the variable winning ball device provided in the game area of the gaming machine is advantageous for a player who easily wins a game ball, or an advantageous state for the player. To generate the right to become, and to be in a state where the conditions for paying out prize balls are easily established.

【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 game balls are easy to win is entered.
Then, in each opening period, a predetermined number (for example, 10)
If there is a prize in the prize hole, the prize hole will be 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】賞球払出の制御を行う払出制御手段が、遊
技制御手段が搭載されている主基板とは別の払出制御基
板に搭載されている場合、遊技の進行は主基板に搭載さ
れた遊技制御手段によって制御されるので、入賞にもと
づく賞球個数は、遊技制御手段によって決定され、賞球
個数を示すコマンドが払出制御基板に送信される。一
方、遊技媒体の貸し出しは、遊技の進行とは無関係であ
るから、一般に、遊技制御手段を介さず払出制御手段に
よって制御される。
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 a command indicating the number of prize balls is transmitted to the payout control board. On the other hand, the lending of the game medium is unrelated to the progress of the game, and thus is generally controlled by the payout control means, not through the game control means.

【0007】また、遊技機には、遊技制御手段や払出制
御手段の他に種々の制御手段が搭載されている。そし
て、遊技の進行を制御する遊技制御手段は、遊技状況に
応じて動作指示を示す各コマンドを、各制御基板に搭載
された各制御手段に送信する。以下、遊技制御手段その
他の制御手段を電気部品制御手段といい、電気部品制御
手段が搭載された基板を電気部品制御基板ということが
ある。
Further, the game machine is equipped with various control means in addition to the game control means and payout 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.

【0008】[0008]

【発明が解決しようとする課題】以上のように、遊技機
には、遊技制御手段を初めとする種々の電気部品制御手
段が搭載されている。一般に、各電気部品制御手段はマ
イクロコンピュータを含んだ構成とされる。そのような
電気部品制御手段は、一般に、電源電圧が立ち上がると
初期化処理を行い初期状態から制御を開始する。する
と、停電等の不測の電源断が生じ、その後、電源復旧す
ると初期状態に戻ってしまうので、遊技者が得た遊技価
値等が消滅してしまう等の問題が生ずることがある。そ
のような問題が生じないようにするには、遊技制御手段
およびその他の電気部品制御手段において、電源電圧値
の低下に伴なって発生される所定の信号(電源断信号と
いう。)に応じて制御を中断し、そのときの制御状態
を、遊技機に対する電力供給停止中でも電源バックアッ
プされている記憶手段(バックアップ記憶手段)に保存
し、電力供給が完全に停止するのを待つように制御すれ
ばよい。そのような遊技機は、記憶手段に遊技状態が保
存されている状態で電力供給が再開されたら、保存され
ている制御状態にもとづいて遊技を再開するので、遊技
者に不利益が与えられることが防止される。
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 means and the other electric component control means respond to a predetermined signal (referred to as a power-off signal) that is generated as the power supply voltage value decreases. If the control is interrupted and the control state at that time is saved in the storage means (backup storage means) whose power is backed up even when the power supply to the gaming machine is stopped, it is controlled to wait until the power supply is completely stopped. Good. 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.

【0009】ところが、遊技制御手段から他の電気部品
制御手段に対してコマンドを送信しているときに電源断
信号が発生すると、遊技制御手段と他の電気部品制御手
段において、コマンドの送受信処理が中断される。そし
て、電力供給が再開するとコマンドの送受信処理が再開
されるのであるが、再開の仕方が適切でないと、コマン
ド受信側の電気部品制御手段において、コマンドを二重
に受信したり取りこぼしたりする可能性がある。
However, when a power-off signal is generated while transmitting a command from the game control means to the other electric component control means, the command control transmission / reception processing is performed in the game control means and the other electric component control means. Suspended. Then, when the power supply is restarted, the command transmission / reception process is restarted. However, if the restarting method is not appropriate, there is a possibility that the command receiving side electric component control means may double receive or drop the command. There is.

【0010】例えば、電源断信号が発生した時点が、コ
マンド送受信シーケンスの最後の段階であるが完了はし
ていないような場合に、コマンドを二重に受信してしま
う可能性がある。つまり、電力供給が再開したときにコ
マンドを最初から送り直すように構成されている場合に
は、コマンド受信側の電気部品制御手段において、電力
供給が停止する直前にコマンドを受信できているにもか
かわらず、遊技制御手段が同じコマンドを再度送ってし
まう状況が生じうる。また、電源断信号が発生した時点
がコマンド送受信シーケンスの最後の段階であれば電力
供給が再開したときにコマンドを送り直さないように構
成されている場合には、電力供給が停止する前に実はコ
マンド受信側の電気部品制御手段においてコマンドが受
信されていないという状況が生じうる。そのような状況
が生じた場合には、コマンド受信側の電気部品制御手段
において、コマンドを取りこぼしてしまうことになる。
このような不都合は、遊技制御手段およびその他の電気
部品制御手段において、電源断信号に応じて、それぞれ
独立して制御を終結させるための処理を行っていること
に起因して生ずる。
For example, when the power-off signal is generated at the last stage of the command transmission / reception sequence but is not completed, there is a possibility that the command is received twice. That is, when the command is retransmitted from the beginning when the power supply is restarted, the command receiving side electrical component control means can receive the command immediately before the power supply is stopped. Regardless, a situation may occur in which the game control means sends the same command again. If the power-off signal is generated at the final stage of the command transmission / reception sequence, and if the command is not retransmitted when the power supply is restarted, the power is actually supplied before the power supply is stopped. A situation may occur in which the command is not received by the electric component control means on the command receiving side. If such a situation occurs, the command will be missed by the electric component control means on the command receiving side.
Such an inconvenience occurs because the game control means and the other electric component control means perform the processing for individually ending the control in response to the power-off signal.

【0011】そこで、本発明は、遊技機への電力供給が
停止する際に、遊技制御手段の管理の元で電気部品制御
手段に制御を終結させるための処理を実行させることが
できる遊技機を提供することを目的とする。
Therefore, the present invention provides a gaming machine capable of causing the electric part control means to execute a process for ending the control under the control of the game control means when the power supply to the gaming machine is stopped. The purpose is to provide.

【0012】[0012]

【課題を解決するための手段】本発明による遊技機は、
遊技者が所定の遊技を行うことが可能な遊技機であっ
て、遊技の進行を制御する遊技制御手段(例えばCPU
56等)と、遊技機に設けられた電気部品(例えば球払
出装置97)を制御するための電気部品制御手段(例え
ば払出制御用CPU371等)と、遊技機で用いられる
所定の電源の状態を監視して、遊技機への電力の供給停
止に関わる検出条件が成立した場合に検出信号(例えば
電源断信号)を出力する電源監視手段(例えば電源監視
用IC902)とを備え、遊技制御手段が、遊技機への
電力供給が停止しても所定期間は記憶内容を保持するこ
とが可能な変動データ記憶手段(例えば電源バックアッ
プされたRAM55)を備え、電源監視手段からの検出
信号に応じて、制御状態を復旧させるために必要なデー
タ(レジスタの内容等)を変動データ記憶手段に保存す
るための電力供給停止時処理(例えばステップS450
〜S499の処理)を実行するとともに電力の供給停止
に関わる検出条件が成立したことを示す条件成立信号
(例えば電源断信号や電源断コマンド)を電気部品制御
手段に送信し、電気部品制御手段が、遊技制御手段から
条件成立信号を受信したことを条件に、制御を終結させ
るための処理としてのサブ側電力供給停止時処理(例え
ばステップ801〜S847の処理)を実行することを
特徴とする。
A gaming machine according to the present invention comprises:
A game machine that allows a player to play a predetermined game, and game control means (for example, a CPU) that controls the progress of the game.
56, etc.), an electric part control means (for example, a payout control CPU 371, etc.) for controlling electric parts (for example, a ball payout device 97) provided in the gaming machine, and a state of a predetermined power source used in the gaming machine. The game control means is provided with a power supply monitoring means (for example, a power supply monitoring IC 902) that monitors and outputs a detection signal (for example, a power supply disconnection signal) when a detection condition related to the stop of supply of electric power to the gaming machine is satisfied. , Equipped with a variable data storage means (for example, RAM55 with power source backup) capable of holding the stored contents for a predetermined period even when the power supply to the gaming machine is stopped, according to a detection signal from the power source monitoring means, Power supply stop processing (eg, step S450) for storing data (register contents, etc.) necessary to restore the control state in the fluctuation data storage means.
(From S499 to S499), a condition satisfaction signal (for example, a power-off signal or a power-off command) indicating that the detection condition related to the stop of power supply is satisfied is transmitted to the electric component control means, and the electric component control means On the condition that a condition satisfaction signal is received from the game control means, a sub-side power supply stop process (for example, a process of steps 801 to S847) as a process for ending the control is executed.

【0013】電気部品制御手段が、サブ側電力供給停止
時処理にて、電気部品の駆動を停止させる処理(例えば
ステップS810〜S815の処理)を行うように構成
されていてもよい。
The electrical component control means may be configured to perform the process of stopping the driving of the electrical component (for example, the process of steps S810 to S815) in the sub power supply stop process.

【0014】遊技制御手段が、電源監視手段による検出
信号が出力されたにもかかわらず、遊技機への電力供給
が停止しない場合に、変動データ記憶手段の記憶内容に
もとづいて制御状態を電力供給停止前の状態に復帰させ
る復旧処理(例えば復帰信号にもとづいて実行されるス
テップS81〜S93の処理)を実行するように構成さ
れていてもよい。
When the game control means does not stop the power supply to the gaming machine despite the detection signal output from the power supply monitoring means, the control state is supplied with power based on the stored contents of the fluctuation data storage means. The recovery process of returning to the state before the stop (for example, the processes of steps S81 to S93 executed based on the return signal) may be executed.

【0015】電気部品制御手段が、遊技機への電力供給
が停止しても所定期間は記憶内容を保持することが可能
なサブ側変動データ記憶手段(例えば電源バックアップ
されたRAM)を備え、サブ側電力供給停止時処理に
て、制御状態を復旧させるために必要なデータをサブ側
変動データ記憶手段に保存するための処理(例えばステ
ップ801〜S847の処理)を行うように構成されて
いてもよい。
The electric component control means is provided with a sub-side fluctuation data storage means (for example, a RAM whose power source is backed up) capable of holding the stored contents for a predetermined period even if the power supply to the gaming machine is stopped, Even when configured to perform the processing for saving the data necessary for restoring the control state in the sub-side variation data storage means (for example, the processing of steps 801 to S847) in the processing for stopping the side power supply Good.

【0016】遊技制御手段が、遊技の進行に応じたコマ
ンドを電気部品制御手段に送信するコマンド送信手段
(例えば遊技制御手段のうちステップS331〜S34
0およびS350〜S371を実行する部分)を有し、
サブ側変動データ記憶手段が遊技制御手段から受信した
コマンドを特定するデータ(コマンドそのもの、または
コマンドを変換したデータ)を記憶可能(例えば受信コ
マンドバッファに記憶)であり、遊技制御手段が、コマ
ンド送信手段によるコマンドの送信中に電源監視手段か
らの検出信号を受けた場合には、コマンドの送信終了後
に(例えばステップS451においてコマンド送信中フ
ラグがリセットされた後に)電気部品制御手段に対して
条件成立信号を送信する(例えばステップS458のス
テップの処理)ように構成されていてもよい。
The game control means transmits command to the electric component control means according to the progress of the game (for example, steps S331 to S34 of the game control means).
0 and S350 to S371)),
The sub-side fluctuation data storage means can store data (command itself or data obtained by converting the command) specifying the command received from the game control means (for example, stored in the reception command buffer), and the game control means transmits the command. When the detection signal from the power supply monitoring means is received during the transmission of the command by the means, the condition is satisfied for the electric component control means after the completion of the transmission of the command (for example, after the command transmission flag is reset in step S451). It may be configured to transmit a signal (for example, the process of step S458).

【0017】遊技制御手段が、コマンド送信手段による
コマンドの送信中に電源監視手段からの検出信号を受け
た場合には、コマンドの送信終了後に電力供給停止時処
理(例えばコマンド送信中フラグがオフ状態でのステッ
プS450〜S499の処理)を実行し、電力供給停止
時処理にて条件成立信号を送信する(例えばステップS
458のステップの処理)ように構成されていてもよ
い。
When the game control means receives the detection signal from the power source monitoring means during the command transmission by the command transmission means, the power supply stop processing after the command transmission is completed (for example, the command transmission flag is in the off state). The process of steps S450 to S499 in step S450 is executed, and the condition satisfaction signal is transmitted in the process when the power supply is stopped (for example, step S).
Processing of step 458).

【0018】電気部品制御手段はマイクロコンピュータ
(例えば払出制御用CPU371)を含み、遊技制御手
段からの条件成立信号がマイクロコンピュータのマスク
不能割込端子に入力され、電気部品制御手段が、マスク
不能割込処理(例えばステップS450〜S499の処
理)でサブ側電力供給停止時処理を実行するように構成
されていてもよい。
The electrical component control means includes a microcomputer (for example, CPU 371 for payout control), a condition satisfaction signal from the game control means is input to the unmaskable interrupt terminal of the microcomputer, and the electrical component control means causes the unmaskable interrupt. It may be configured to execute the sub-side power supply stop process in the plug-in process (for example, the processes of steps S450 to S499).

【0019】[0019]

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

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

【0021】図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 supply tray 3 and a ball hitting handle (operation knob) 5 for launching the game ball. A game board 6 is detachably attached to the back surface of the glass door frame 2. 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.

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

【0023】可変入賞球装置15の下部には、特定遊技
状態(大当り状態)においてソレノイド21によって開
状態とされる開閉板20が設けられている。開閉板20
は大入賞口を開閉する手段である。開閉板20から遊技
盤6の背面に導かれた入賞球のうち一方(V入賞領域)
に入った入賞球はV入賞スイッチ22で検出され、開閉
板20からの入賞球はカウントスイッチ23で検出され
る。遊技盤6の背面には、大入賞口内の経路を切り換え
るためのソレノイド21Aも設けられている。また、可
変表示装置9の下部には、始動入賞口14に入った有効
入賞球数すなわち始動記憶数を表示する4つのLEDに
よる特別図柄始動記憶表示器(以下、始動記憶表示器と
いう。)18が設けられている。有効始動入賞がある毎
に、始動記憶表示器18は点灯するLEDを1増やす。
そして、可変表示装置9の可変表示が開始される毎に、
点灯するLEDを1減らす。なお、始動記憶表示器18
を設けず、可変表示装置9において始動記憶数を表示す
るようにしてもよい。
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. The start memory indicator 18
Alternatively, the variable display device 9 may display the number of starting memories.

【0024】ゲート32に遊技球が入賞しゲートスイッ
チ32aで検出されると、普通図柄表示器10の表示の
可変表示が開始される。この実施の形態では、左右のラ
ンプ(点灯時に図柄が視認可能になる)が交互に点灯す
ることによって可変表示が行われ、例えば、可変表示の
終了時に右側のランプが点灯すれば当たりとなる。そし
て、普通図柄表示器10における停止図柄が所定の図柄
(当り図柄)である場合に、可変入賞球装置15が所定
回数、所定時間だけ開状態になる。普通図柄表示器10
の近傍には、ゲート32に入った入賞球数(普通図柄始
動記憶数)を表示する4つのLEDによる表示部を有す
る普通図柄始動記憶表示器41が設けられている。ゲー
ト32への入賞がある毎に、普通図柄始動記憶表示器4
1は点灯するLEDを1増やす。そして、普通図柄表示
器10の可変表示が開始される毎に、点灯するLEDを
1減らす。なお、普通図柄始動記憶表示器41を設け
ず、可変表示装置9において普通図柄始動記憶数を表示
するようにしてもよい。
When the game ball wins the gate 32 and is detected by the gate switch 32a, the variable display of the display on 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
In the vicinity of, there is provided a normal symbol starting memory indicator 41 having a display unit of four LEDs for displaying the number of winning balls (normal symbol starting memory number) which has entered the gate 32. Every time there is a prize in the gate 32, the normal symbol starting memory display 4
1 increases the number of lit LEDs by 1. 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. The normal symbol starting memory display 41 may not be provided, and the normal symbol starting memory number may be displayed on the variable display device 9.

【0025】遊技盤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および右枠ランプ2
8cが設けられている。さらに、遊技領域7における各
構造物(大入賞口等)の周囲には装飾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 an outlet 26 that absorbs a game ball that has not won is provided in the lower part. 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 2
8c is provided. Further, a decorative LED is installed around each structure (a special winning opening, etc.) in the game area 7.

【0026】そして、この例では、左枠ランプ28bの
近傍に、賞球残数があるときに点灯する賞球ランプ51
が設けられ、天枠ランプ28aの近傍に、補給球が切れ
たときに点灯する球切れランプ52が設けられている。
さらに、図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.
Further, FIG. 1 also shows a card unit 50 which is installed adjacent to the pachinko gaming machine 1 and enables a ball lending by inserting a prepaid card.

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

【0028】打球発射装置から発射された遊技球は、打
球レールを通って遊技領域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 comes down from the game area 7. When the game ball enters 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.

【0029】可変表示装置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 certain time has elapsed or a predetermined number (for example, 10) of game balls are won. And
When the game ball enters the V winning area and is detected by the V winning switch 22 while the opening / closing plate 20 is open, the continuation right is generated and the opening / closing plate 20 is opened again. The continuation right can be generated a predetermined number of times (for example, 15 rounds).

【0030】停止時の可変表示装置9における特別図柄
の組み合わせが確率変動を伴う大当り図柄(確変図柄)
の組み合わせである場合には、次に大当りとなる確率が
高くなる。すなわち、確変状態という遊技者にとってさ
らに有利な状態となる。
A combination of special symbols in the variable display device 9 at the time of stop is a big hit symbol with a 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.

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

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

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

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

【0035】貯留タンク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.

【0036】入賞にもとづく景品としての遊技球や球貸
し要求にもとづく遊技球が多数払い出されて打球供給皿
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, the batting ball supply plate 3 becomes full, and finally the game balls reach the contact port 45 and further game balls are delivered. 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.

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

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

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

【0040】球通路(遊技媒体払出通路の一例)293
a,293bには遊技球の流下路を切り替えるための振
分部材311が設けられている。振分部材311は振分
ソレノイド310によって駆動され、賞球払出時には、
球通路293a,293bにおける一方の流下路(球通
路293a:景品遊技媒体通路の一例)を遊技球が流下
するように倒れ、球貸し時には球通路293a,293
bにおける他方の流下路(球通路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 distribution solenoid 310, and when paying out the prize balls,
The game balls fall down one of the flow paths (ball path 293a: an example of a prize game medium path) in the ball paths 293a and 293b, and when the ball is lent, the ball paths 293a and 293 are provided.
The game ball falls down in the other flow-down path (ball passage 293b: an example of a lending game medium passage) in b. The payout motor 289 and the distribution solenoid 310 are
It is controlled by a payout control CPU mounted on the payout control board 37. Further, the payout control CPU controls the payout motor 289 and the distribution solenoid 310 in accordance with a command from the game control CPU mounted on the main board 31.

【0041】賞球払出時に選択される流下路の下方には
球払出装置によって払い出された遊技球を検出する賞球
センサ(賞球カウントスイッチ)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 the 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.

【0042】なお、ギア291の周辺部には、払出モー
タ位置センサを形成する突起部が形成されている。突起
部は、ギア291の回転すなわち払出モータ289の回
転に伴って発光体(図示せず)からの光を、払出モータ
位置センサの受光部(図示せず)に対して透過させたり
遮蔽したりする。払出制御用CPUは、受光部からの検
出信号によって払出モータ289の位置を認識すること
ができる。
In addition, a protrusion forming a payout motor position sensor is formed around the gear 291. 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.

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

【0044】図6は、主基板31における回路構成の一
例を示すブロック図である。なお、図6には、払出制御
基板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. 6 is a block diagram showing an example of the circuit configuration of the main board 31. Note that FIG. 6 also shows a payout control board 37, a lamp control board 35, a sound control board 70, a launch control board 91, and a 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.

【0045】なお、図6には示されていないが、カウン
トスイッチ短絡信号もスイッチ回路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. 6, 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.

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

【0047】基本回路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 an 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.

【0048】また、RAM(CPU内蔵RAMであって
もよい。)55の一部または全部が、電源基板910に
おいて作成されるバックアップ電源によってバックアッ
プされているバックアップRAM(電源バックアップさ
れているRAMすなわち電力供給停止時にも記憶内容保
持状態となりうる変動データ記憶手段)である。すなわ
ち、遊技機に対する電力供給が停止しても、所定期間
は、RAM55の一部または全部の内容は保存される。
A backup RAM (RAM whose power is backed up, that is, electric power) in which a part or all of the RAM (which may be a RAM with a built-in CPU) 55 is backed up by a backup power supply created in the power supply board 910. This is a fluctuating data storage means that can be in a storage content holding state even when the supply is stopped. That is, even if the power supply to the gaming machine is stopped, part or all of the contents of the RAM 55 are saved for a predetermined period.

【0049】この実施の形態では、電源基板910から
主基板31に対して、ローアクティブの電源断信号が入
力される。電源断信号は、CPU56のマスク不能割込
(NMI)端子に入力される。また、主基板31に電源
断信号が入力されると、主基板31に搭載されている遊
技制御手段は、払出制御基板37に対して電源断信号を
出力する。
In this embodiment, a low active power-off signal is input from the power supply board 910 to the main board 31. The power-off signal is input to the non-maskable interrupt (NMI) terminal of the CPU 56. Further, when the power-off signal is input to the main board 31, the game control means mounted on the main board 31 outputs the power-off signal to the payout control board 37.

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

【0051】なお、この実施の形態では、ランプ制御基
板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. Display control is performed, and 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.

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

【0053】主基板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.

【0054】さらに、賞球カウントスイッチ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 board 72 and the relay board 71, and the payout control is also 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.

【0055】入賞があると、払出制御基板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.

【0056】また、主基板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.

【0057】払出制御用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.

【0058】さらに、払出制御基板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.

【0059】カードユニット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.

【0060】残高表示基板74からカードユニット50
には、遊技者の操作に応じて、球貸しスイッチ信号およ
び返却スイッチ信号が払出制御基板37を介して与えら
れる。また、カードユニット50から残高表示基板74
には、プリペイドカードの残高を示すカード残高表示信
号および球貸し可表示信号が払出制御基板37を介して
与えられる。このように、残高表示基板74とカードユ
ニット50は、直接接続されることなく、払出制御基板
37を介して接続されている。カードユニット50と払
出制御基板37の間では、接続信号(VL信号)、ユニ
ット操作信号(BRDY信号)、球貸し要求信号(BR
Q信号)、球貸し完了信号(EXS信号)およびパチン
コ機動作信号(PRDY信号)が入力ポート372bお
よび出力ポート372eを介してやりとりされる。な
お、カードユニット50と払出制御基板37の間には、
図示しないインタフェース基板が介在している。カード
ユニット50と払出制御基板37の間で、接続信号(V
L信号)等の信号はインタフェース基板を介してやりと
りされる。そして、残高表示基板74とインタフェース
基板との間で、信号が直接やりとりされることはない。
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. Between the card unit 50 and the payout control board 37, a connection signal (V
Signals such as L signal) are exchanged via the interface board. Further, signals are not directly exchanged between the balance display board 74 and the interface board.

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

【0062】そして、払出制御基板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.

【0063】以上のように、カードユニット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.

【0064】この実施の形態では、主基板31から払出
制御基板37に対して電源断信号が入力される。電源断
信号は、払出制御用CPU371のマスク不能割込(割
込禁止にできない割込、以下、NMIともいう。)端子
に入力される。さらに、払出制御基板37に存在するR
AM(変動データ記憶手段:CPU内蔵RAMであって
もよい。)の少なくとも一部は、電源基板910におい
て作成されるバックアップ電源によって、バックアップ
されている。すなわち、遊技機に対する電力供給が停止
しても、所定期間は、RAMの少なくとも一部の内容は
保存される。
In this embodiment, a power-off signal is input from the main board 31 to the payout control board 37. The power-off signal is input to the non-maskable interrupt (interrupt that cannot be disabled, hereinafter also referred to as NMI) terminal of the payout control CPU 371. Further, R existing on the payout control board 37
At least a part of AM (variable data storage unit: may be RAM with built-in CPU) is backed up by a backup power supply created in the power supply board 910. That is, even if the power supply to the gaming machine is stopped, at least a part of the contents of the RAM is saved for a predetermined period.

【0065】なお、この実施の形態では、カードユニッ
ト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.

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

【0067】電源基板910には、遊技機内の各電気部
品制御基板や機構部品への電力供給を実行または遮断す
るための電源スイッチ914が設けられている。トラン
ス911は、交流電源からの交流電圧を24Vに変換す
る。AC24V電圧は、コネクタ915に出力される。
また、整流回路912は、AC24Vから+30Vの直
流電圧を生成し、DC−DCコンバータ913およびコ
ネクタ915に出力する。DC−DCコンバータ913
は、1つまたは複数のコンバータIC920(図8では
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. 8) 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.

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

【0069】DC−DCコンバータ913からの+5V
ラインは分岐してバックアップ+5Vラインを形成す
る。バックアップ+5Vラインとグラウンドレベルとの
間には大容量のコンデンサ916が接続されている。コ
ンデンサ916は、遊技機に対する電力供給が停止した
ときの電気部品制御基板のバックアップRAMに対して
記憶状態を保持できるように電力を供給するバックアッ
プ電源となる。また、+5Vラインとバックアップ+5
Vラインとの間に、逆流防止用のダイオード917が挿
入される。なお、この実施の形態では、バックアップ用
の+5Vは、主基板31および払出制御基板37に供給
される。
+ 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 serves as a backup power source that supplies power to the backup RAM of the electric component control board when the power supply to the gaming machine is stopped so that the memory state can be maintained. Also, + 5V line and backup +5
A diode 917 for preventing backflow is inserted between the V line and the V line. In this embodiment, + 5V for backup is supplied to the main board 31 and the payout control board 37.

【0070】なお、バックアップ電源として、+5V電
源から充電可能な電池を用いてもよい。電池を用いる場
合には、+5V電源から電力供給されない状態が所定時
間継続すると容量がなくなるような充電池が用いられ
る。また、上記のコンデンサ923,924の代わり
に、+30V電源から充電可能な電池を用いてもよい。
コンデンサ923の代わりに電池を用いる場合には、後
述する払出確認期間以上の期間、賞球カウントスイッチ
301Aや球貸しカウントスイッチ301Bに電力を供
給可能な充電池が用いられる。また、コンデンサ924
の代わりに電池を用いる場合には、後述する払出確認期
間以上の期間、振分ソレノイド310に電力を供給可能
な充電池が用いられる。なお、上記の電池は、充電機能
を有するものでなくてもよく、例えばニッカド電池、ア
ルカリ電池、マンガン電池などの電池を用いることもで
きる。
A battery which can be charged from a + 5V power source may be used as the backup power source. When a battery is used, a rechargeable battery is used which loses its capacity when the power is not supplied from the + 5V power source for a predetermined time. 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 a battery such as a nicad battery, an alkaline battery, a manganese battery, or the like can be used.

【0071】また、電源基板910には、電源監視回路
としての電源監視用IC902が搭載されている。電源
監視用IC902は、VSL電圧を導入し、VSL電圧を監
視することによって遊技機への電力供給停止の発生を検
出する。具体的には、VSL電圧が所定値(この例では+
22V)以下になったら、電力供給の停止が生ずるとし
て電源断信号を出力する(具体的にはローレベルにす
る。)。なお、監視対象の電源電圧は、各電気部品制御
基板に搭載されている回路素子の電源電圧(この例では
+5V)よりも高い電圧であることが好ましい。この例
では、交流から直流に変換された直後の電圧であるVSL
が用いられている。電源監視用IC902からの電源断
信号は主基板31に供給される。
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 will be stopped, and a power-off signal is output (specifically, set to low level). The power supply voltage to be monitored is preferably higher than the power supply voltage (+5 V in this example) of the circuit element mounted on each electric component control board. In this example, VSL, which is the voltage immediately after conversion from AC to DC
Is used. A power-off signal from the power monitoring IC 902 is supplied to the main board 31.

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

【0073】さらに、監視電圧としてVSL(+30V)
を用いる場合には、遊技機の各種スイッチに供給される
電圧が+12Vであることから、電源瞬断時のスイッチ
オン誤検出の防止も期待できる。すなわち、+30V電
源の電圧を監視すると、+30V作成の以降に作られる
+12Vが落ち始める以前の段階でそれの低下を検出で
きる。+12V電源の電圧が低下するとスイッチ出力が
オン状態を呈するようになるが、+12Vより早く低下
する+30V電源電圧を監視して電力供給の停止を認識
すれば、スイッチ出力がオン状態を呈する前に電源復旧
待ちの状態に入ってスイッチ出力を検出しない状態とな
ることができる。
Furthermore, 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.

【0074】また、監視電圧としての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.

【0075】なお、電源監視用IC902は、主基板3
1に搭載されていてもよい。
The power supply monitoring IC 902 is the main board 3
1 may be mounted.

【0076】図8に示すように、電源基板910には、
押しボタン構造のクリアスイッチ921が搭載されてい
る。クリアスイッチ921が押下されるとローレベル
(オン状態)のクリアスイッチ信号が出力され、コネク
タ915を介して主基板31等に送信される。また、ク
リアスイッチ921が押下されていなければハイレベル
(オフ状態)の信号が出力される。なお、この実施の形
態では、オン状態のクリア信号が出力される場合が、操
作手段としてのクリアスイッチ921から操作信号が出
力される状態である。なお、クリアスイッチ921が、
押しボタン構造以外の他の構成とされていてもよい。
As shown in FIG. 8, the power supply board 910 includes
A clear switch 921 having a push button structure is mounted. 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. If the clear switch 921 is not pressed, a high level (off state) signal is output. In this embodiment, when the clear signal in the ON state is output, the operation signal is output from the clear switch 921 as the operation unit. The clear switch 921
It may have a configuration other than the push button structure.

【0077】この実施の形態では、クリアスイッチ92
1が電源基板910に搭載されているので、遊技盤6の
入れ替え等の場合に入れ替え後の遊技盤6に対して電源
基板910をそのまま使用しても、入れ替え後の遊技盤
6において、そのままで遊技状態復旧処理等を実行する
ことができる。すなわち、電源基板910の使い回しを
行うことができる。なお、電源基板910ではなく、例
えばスイッチ基板などの他の基板にクリアスイッチ92
1が搭載される構成にしてもよい。
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 92 may be provided on another board such as a switch board instead of the power board 910.
1 may be mounted.

【0078】電源基板910には、各基板に復帰信号を
供給する復帰信号作成回路970が搭載されている。復
帰信号は、バッファ回路961を介して主基板31に出
力され、バッファ回路962を介して払出制御基板37
に出力される。
The power supply board 910 is equipped with a return signal generating circuit 970 for supplying a return signal to each board. The return signal is output to the main board 31 via the buffer circuit 961 and is output to the payout control board 37 via the buffer circuit 962.
Is output to.

【0079】図9は、復帰信号作成回路970の構成例
を示すブロック図である。復帰信号作成回路970は、
待機期間を計測して復帰信号を出力する復帰信号出力手
段の一例であるカウンタ971を含む。カウンタ971
は、電源断信号がローレベルになってクリアが解ける
と、発振器975からのクロック信号をカウントする。
そして、カウントアップすると、Q出力として、ハイレ
ベルの1パルスを発生する。そのパルス信号は反転回路
972で論理反転され、バッファ回路973およびバッ
ファ回路974に入力する。バッファ回路973の出力
は復帰信号として払出制御基板37に供給され、バッフ
ァ回路974の出力は復帰信号として主基板31に供給
される。
FIG. 9 is a block diagram showing a configuration example of the return signal generation circuit 970. The return signal generation circuit 970 is
It includes a counter 971 which is an example of a return signal output means for measuring the standby period and outputting a return signal. Counter 971
Counts the clock signal from the oscillator 975 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 inversion circuit 972 and input to the buffer circuit 973 and the buffer circuit 974. The output of the buffer circuit 973 is supplied to the payout control board 37 as a return signal, and the output of the buffer circuit 974 is supplied to the main board 31 as a return signal.

【0080】なお、この実施の形態では、電源基板91
0に復帰信号作成回路970が設けられ、主基板31や
払出制御基板37に復帰信号を出力するようにしていた
が、主基板31や払出制御基板37のそれぞれに復帰信
号作成回路を設けるようにしてもよい。
In this embodiment, the power supply board 91
Although the return signal generation circuit 970 is provided in 0 to output the return signal to the main board 31 and the payout control board 37, the return signal generation circuit is provided in each of the main board 31 and the payout control board 37. May be.

【0081】図10は、主基板31におけるCPU56
周りの一構成例を示すブロック図である。図10に示す
ように、電源基板910の電源監視回路(電源監視手
段)からの電源断信号が、CPU56のマスク不能割込
端子(XNMI端子)に接続されている。従って、CP
U56は、マスク不能割込処理によって電源断の発生を
確認することができる。
FIG. 10 shows the CPU 56 in the main board 31.
It is a block diagram showing an example of the circumference. As shown in FIG. 10, 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. Therefore, CP
U56 can confirm the occurrence of power failure by the non-maskable interrupt process.

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

【0083】図10に示すように、リセットIC651
Aからのリセット信号は、NAND回路947に入力さ
れるとともに、反転回路(NOT回路)944を介して
カウンタIC941のクリア端子に入力される。カウン
タIC941は、クリア端子への入力がローレベルにな
ると、発振器943からのクロック信号をカウントす
る。そして、カウンタIC941のQ5出力がNOT回
路945,946を介してNAND回路947に入力さ
れる。また、カウンタIC941のQ6出力は、フリッ
プフロップ(FF)942のクロック端子に入力され
る。フリップフロップ942のD入力はハイレベルに固
定され、Q出力は論理和回路(OR回路)949に入力
される。OR回路949の他方の入力には、NAND回
路947の出力がNOT回路948を介して導入され
る。そして、OR回路949の出力がCPU56のリセ
ット端子に接続されている。このような構成によれば、
電源投入時に、CPU56のリセット端子に2回のリセ
ット信号(ローレベル信号)が与えられるので、CPU
56は、確実に動作を開始する。
As shown in FIG. 10, the reset IC 651 is used.
The reset signal from A is input to the NAND circuit 947 and also to the clear terminal of the counter IC 941 via the inversion 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 input to the NAND circuit 947 via the NOT circuits 945 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 output of the NAND circuit 947 is introduced into the other input of the OR circuit 949 via the NOT circuit 948. The output of the OR circuit 949 is connected to the reset terminal of the CPU 56. According to such a configuration,
When the power is turned on, a reset signal (low level signal) is given twice to the reset terminal of the CPU 56.
56 reliably starts operation.

【0084】そして、例えば、電源基板910に搭載さ
れている電源監視回路の検出電圧(電源断信号を出力す
ることになる電圧)を+22Vとし、リセット信号をロ
ーレベルにするための検出電圧を+9Vとする。そのよ
うに構成した場合には、電源監視回路とシステムリセッ
ト回路65Aとが、同一の電源VSLの電圧を監視するの
で、電圧監視回路が電源断信号を出力するタイミングと
システムリセット回路65Aがシステムリセット信号を
出力するタイミングの差を所望の所定期間に確実に設定
することができる。所望の所定期間とは、電源監視回路
からの電源断信号に応じて電力供給停止時処理を開始し
てから電力供給停止時処理が確実に完了するまでの期間
である。なお、電源監視回路とシステムリセット回路6
5Aとが監視する電源の電圧は異なっていてもよい。
Then, for example, the detection voltage of the power supply monitoring circuit mounted on the power supply board 910 (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 + 9V. And In such a configuration, since the power supply monitoring circuit and the system reset circuit 65A monitor the voltage of the same power supply VSL, the timing at which the voltage monitoring circuit outputs the power-off signal and the system reset circuit 65A reset the system. It is possible to reliably set the difference between the timings of outputting the signals in 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. The power supply monitoring circuit and the system reset circuit 6
The voltage of the power supply monitored by 5A may be different.

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

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

【0087】また、図10に示すように、電源基板91
0からの復帰信号と、システムリセット回路65Aから
のリセット信号(具体的にはAND回路949の出力)
とはAND回路161に入力され、AND回路161の
出力がCPU56のリセット端子(リセット信号入力
部)に入力される。
In addition, as shown in FIG.
Return signal from 0 and reset signal from system reset circuit 65A (specifically, output of AND circuit 949)
Is input to the AND circuit 161, and the output of the AND circuit 161 is input to the reset terminal (reset signal input section) of the CPU 56.

【0088】電源の瞬断等が生ずると、VSLの電圧レベ
ルが短期間低下した後に復旧する。VSLの電圧レベルが
電源断信号出力レベル以下になると、電源断信号がロー
レベルになって、電力供給停止時処理が開始される。そ
して、CPU56および払出制御用CPU371は電力
供給停止時処理終了後にループ状態に入る。何らの制御
も行わないと、ループ処理から抜けられないのである
が、この場合には、復帰信号作成回路970におけるカ
ウンタ971(図8,図9参照)がカウントアップして
復帰信号が発生する。
When the power supply is momentarily cut off, the voltage level of VSL is lowered 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. If no control is performed, the loop processing cannot be exited. In this case, the counter 971 (see FIGS. 8 and 9) in the return signal generation circuit 970 counts up and a return signal is generated.

【0089】主基板31において、復帰信号は、AND
回路161を介して、CPU56のリセット端子に入力
される。従って、CPU56にはシステムリセットがか
かる。その結果、CPU56はループ状態から抜け出す
ことができる。そして、CPU56は、メイン処理(図
14に示すS1以降の処理)を実行開始するのである
が、電力供給停止時処理によって遊技制御状態を復帰さ
せるために必要なデータがバックアップRAMに保存さ
れているので、電力供給停止前の状態に復帰させる復旧
処理すなわち遊技状態復旧処理(ステップS10)が実
行される。
On the main board 31, the return signal is AND
It is input to the reset terminal of the CPU 56 via the circuit 161. Therefore, the CPU 56 is reset. As a result, the CPU 56 can get out of the loop state. Then, the CPU 56 starts execution of the main processing (processing after S1 shown in FIG. 14), but the data required to restore the game control state by the processing when the power supply is stopped is stored in the backup RAM. Therefore, the recovery process for returning to the state before the power supply is stopped, that is, the game state recovery process (step S10) is executed.

【0090】また、後述するように、払出制御基板37
1において、復帰信号は、AND回路385を介して、
払出制御用CPU371のリセット端子に入力される
(図26参照)。従って、払出制御用CPU371には
システムリセットがかかる。その結果、払出制御用CP
U371はループ状態から抜け出すことができる。
As will be described later, the payout control board 37
1, the return signal is sent via the AND circuit 385.
It is input to the reset terminal of the payout control CPU 371 (see FIG. 26). Therefore, the payout control CPU 371 is reset. As a result, CP for payout control
U371 can get out of the loop.

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

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

【0093】さらに、出力ポート6から、電力の供給停
止に関わる検出条件が成立したことを示す条件成立信号
としての電源断信号が出力される。
Further, the output port 6 outputs a power-off signal as a condition fulfillment signal indicating that the detection condition relating to the stop of the power supply is fulfilled.

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

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

【0096】初期設定処理において、CPU56は、ま
ず、割込禁止に設定する(ステップS1)。次に、割込
モードを割込モード2に設定し(ステップS2)、スタ
ックポインタにスタック領域の先頭アドレスを設定する
(ステップS3)。そして、内蔵デバイスレジスタの初
期化を行う(ステップS4)。また、内蔵デバイス(内
蔵周辺回路)であるCTC(カウンタ/タイマ)および
PIO(パラレル入出力ポート)の初期化(ステップS
5)を行った後、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 top address of the stack area is set to the stack pointer (step S3). Then, the built-in device register is initialized (step S4). Further, initialization of CTC (counter / timer) and PIO (parallel input / output port) which are built-in devices (built-in peripheral circuits) (step S
After performing 5), the RAM is set to the accessible state (step S6).

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

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

【0099】割込モード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 an RST instruction (1 byte) or a 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.

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

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

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

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

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

【0105】この実施の形態では、バックアップRAM
領域にバックアップデータがあるか否かは、電力供給停
止時処理においてバックアップRAM領域に設定される
バックアップフラグの状態によって確認される。例え
ば、バックアップフラグ領域に「55H」が設定されて
いればバックアップあり(オン状態)を意味し、「55
H」以外の値が設定されていればバックアップなし(オ
フ状態)を意味する。
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. For example, if "55H" is set in the backup flag area, it means that there is backup (on state), and "55H"
If a value other than "H" is set, it means that there is no backup (off state).

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

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

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

【0109】なお、操作手段から操作信号が出力された
場合には、複数の復旧条件に関わらず初期化処理を実行
する(ステップS7)。また、この実施の形態では、バ
ックアップフラグとチェックデータとの双方を用いてバ
ックアップRAM領域のデータが保存されているか否か
を確認しているが、いずれか一方のみを用いてもよい。
すなわち、バックアップフラグとチェックデータとのい
ずれかを、状態復旧処理を実行するための契機としても
よい。
When the operation signal is output from the operation means, the initialization process is executed regardless of a plurality of restoration conditions (step S7). Further, 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.

【0110】初期化処理では、CPU56は、まず、R
AMクリア処理を行う(ステップS11)。なお、RA
Mの全領域を初期化せず、所定のデータ(例えば大当り
判定用乱数を生成するためのカウンタのカウント値のデ
ータ)をそのままにしてもよい。例えば、大当り判定用
乱数を生成するためのカウンタのカウント値のデータを
そのままにした場合には、不正な手段によって初期化処
理が実行される状態になったとしても、大当り判定用乱
数を生成するためのカウンタのカウント値が大当り判定
値に一致するタイミングを狙うことは困難である。ま
た、所定の作業領域(例えば、普通図柄判定用乱数カウ
ンタ、普通図柄判定用バッファ、特別図柄左中右図柄バ
ッファ、特別図柄プロセスフラグ、払出コマンド格納ポ
インタ、賞球中フラグ、球切れフラグ、払出停止フラグ
など制御状態に応じて選択的に処理を行うためのフラ
グ)に初期値を設定する作業領域設定処理を行う(ステ
ップS12)。
In the initialization processing, the CPU 56 first executes R
AM clear processing is performed (step S11). RA
The predetermined data (for example, the data of the count value of the counter for generating the big hit determination random number) may be left as it is without initializing the entire area of M. For example, when the data of the count value of the counter for generating the big hit determination random number is left as it is, the big hit determination random number is generated even if the initialization process is executed by an unauthorized means. It is difficult to aim at a timing when the count value of the counter coincides with the jackpot determination value. Further, a predetermined work area (for example, a normal symbol determination random number counter, a normal symbol determination buffer, a special symbol left middle right symbol buffer, a special symbol process flag, a payout command storage pointer, an award ball flag, a ball out flag, a payout. Work area setting processing for setting an initial value to a flag such as a stop flag for selectively performing processing according to the control state is performed (step S12).

【0111】さらに、CPU56は、所定の払出禁止条
件が成立しているか否かを判定し(ステップS13
a)、払出禁止条件が成立していなければ、球払出装置
97からの払出が可能であることを指示する払出許可状
態指定コマンド(以下、払出可能状態指定コマンドとい
う。)を払出制御基板37に対して送信する処理を行う
(ステップS13b)。なお、払出禁止条件が成立して
いれば、遊技制御手段の制御状態を払出禁止状態に設定
する。
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 game control means is set to the payout prohibition state.

【0112】この実施の形態では、球切れフラグを球切
れ状態を示す状態(オン状態)とするとともに、満タン
フラグを下皿満タンを示す状態(オン状態)とすること
で、主基板31の制御状態を払出禁止状態に設定する。
払出禁止条件は、例えば球切れ状態となっている場合や
下皿満タン状態となっている場合など、払い出すべき遊
技球を払い出すことができないおそれがある場合や遊技
球を払い出すことが適当でない場合に成立する。従っ
て、ステップS13aでは、例えば、球切れスイッチ1
87による検出状態の確認や、満タンスイッチ48によ
る検出状態の確認が行われる。
In this embodiment, the out-of-ball flag is set to the out-of-ball state (ON state) and the full tank flag is set to the lower-dish full state (ON state), so that the main substrate 31 Set the control state to the payout prohibition state.
The payout prohibition condition is, for example, when the ball is out of stock or when the bottom plate is full, and there is a possibility that the game ball to be paid out cannot be paid out or the game ball is paid out. Applies if not appropriate. Therefore, in step S13a, for example, the out-of-ball switch 1
The confirmation of the detection state by 87 and the confirmation of the detection state by the full tank switch 48 are performed.

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

【0114】初期化処理では、払出制御基板37に対し
て、払出禁止条件が成立していない場合に払出可能状態
指定コマンドが送信され、払出禁止条件が成立している
場合に払出禁止状態指定コマンドは送信されない。仮
に、遊技機の状態が球払出装置97からの払出が可能で
ない状態(払出禁止条件が成立している状態)であった
場合であっても、払出制御基板37における初期化処理
において払出禁止状態に設定されているはずなので問題
はない。なお、払出可能状態指定コマンドおよび他のサ
ブ基板に対する初期化コマンドの送信処理において、例
えば、各コマンドが設定されているテーブル(ROM領
域)のアドレスをポインタにセットし、後述するコマン
ドセット処理(図21参照)のような処理ルーチンをコ
ールすればよい。
In the initialization processing, a payout possible state designation command is transmitted to the payout control board 37 when the payout prohibition condition is not satisfied, and a payout prohibition state designation command is sent when the payout prohibition condition is satisfied. Is not sent. Even if the state of the gaming machine is a state in which the payout from the ball payout device 97 is not possible (a state in which the payout prohibition condition is satisfied), the payout prohibition state in the initialization process in the payout control board 37. It should be set to, 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 (see FIG. 21)).

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

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

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

【0118】図15は、遊技状態復旧処理の一例を示す
フローチャートである。遊技状態復旧処理において、C
PU56は、まず、スタックポインタの復帰処理を行う
(ステップS81)。スタックポインタの値は、後で詳
述する電力供給停止時処理において、所定のRAMエリ
ア(電源バックアップされている作業領域におけるスタ
ックポインタ退避バッファ)に退避している。よって、
ステップS81では、そのRAMエリアの値をスタック
ポインタに設定することによって復帰させる。なお、復
帰されたスタックポインタが指す領域(すなわちサブル
ーチンを呼び出した際の戻りアドレス等を保存するスタ
ック領域における読み出し先:具体的にはそこから複数
の領域)には、電力供給が停止したときのレジスタ値や
プログラムカウンタ(PC)の値が退避している。
FIG. 15 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. Note that the area pointed to by the restored stack pointer (that is, the read destination in the stack area that stores the return address etc. when the subroutine is called: more specifically, a plurality of areas after that) is the area when the power supply is stopped. Register values and program counter (PC) values are saved.

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

【0120】また、バックアップRAMに保存されてい
た賞球カウント値を総賞球数格納バッファおよび遊技機
外部への賞球情報出力のための賞球情報カウンタに反映
する(ステップS84)。賞球カウント値は、後述する
電力供給停止時処理において検出された払出球の数に相
当する。ステップS84では、CPU56は、賞球カウ
ント値を総賞球数格納バッファの格納値から減算すると
ともに、賞球カウント値を賞球情報カウンタのカウント
値に加算する処理を行う。そして、賞球カウント値をク
リアする。
Further, the prize ball count value stored in the backup RAM is reflected in the total prize ball number storage buffer and the prize ball information counter for outputting the prize ball information to the outside of the gaming machine (step S84). The prize ball count value corresponds to the number of payout balls detected in the power supply stoppage process described later. In step S84, the CPU 56 performs processing of subtracting the prize ball count value from the value stored in the total prize ball number storage buffer and adding the prize ball count value to the count value of the prize ball information counter. Then, the prize ball count value is cleared.

【0121】次に、CPU56は、無条件に、払出制御
手段に対して払出が可能であることを指示する払出制御
コマンド(払出可能状態指定コマンド)を送信する(ス
テップS85)。
Next, the CPU 56 unconditionally transmits a payout control command (payable state designation command) to the payout control means to instruct that the payout is possible (step S85).

【0122】払出制御手段は、電力供給が復旧した場合
に、遊技制御手段から必ず払出制御コマンドを受信する
ので、遊技制御手段が正常に立ち上がったことを直ちに
認識することができる。また、実際には、補給球の不足
や余剰球受皿4が満タンであったとしても、賞球処理に
おいて払出禁止状態指定コマンドが払出制御手段に対し
て送信されるので、補給球の不足や余剰球受皿4が満タ
ンであるにも関わらず、払出制御が続行されてしまうよ
うなことはない。また、払出可能状態指定コマンドの送
信に代えて、電力供給停止前に最後に送信した払出制御
コマンドを送信するようにしてもよい。さらに、賞球個
数を指定するための払出制御コマンドを送信するように
してもよい。その場合、払出制御手段も、制御状態復旧
処理を行っているのであるが、制御状態復旧処理を行っ
た後、所定時間内に受信した払出制御コマンドで指定さ
れる内容を無視する等の制御を行う。
Since the payout control means always receives the payout control command from the game control means when the power supply is restored, it is possible to immediately recognize that the game control means has normally started up. In reality, even if the supply ball shortage or the surplus ball receiving tray 4 is full, the payout prohibition state designation command is transmitted to the payout control means in the prize ball processing, so that the supply ball shortage or Even if the surplus ball tray 4 is full, the payout control will not be continued. Further, instead of sending the payable state designation command, the payout control command transmitted last before the power supply is stopped may be sent. Further, a payout control command for designating the number of prize balls may be transmitted. In that case, the payout control means is also performing the control state restoration process, but after performing the control state restoration process, control such as ignoring the contents specified by the payout control command received within the predetermined time To do.

【0123】なお、この実施の形態では、遊技制御手段
は、復旧コマンドとして払出可能状態指定コマンドを無
条件に送信するようにしたが、遊技球の払出が可能な状
態であるか否かを確認し、可能な状態であれば復旧コマ
ンドとして払出可能状態指定コマンドを送信し、不可能
な状態であれば、復旧コマンドとして払出禁止状態指定
コマンドを送信するようにしてもよい。遊技球の払出が
可能でない状態は、例えば、補給球の不足や余剰球受皿
4が満タンである状態である。そして、復旧コマンドと
して払出禁止状態指定コマンドを送信した場合には、遊
技状態復旧処理が終了した後に実行される遊技制御処理
において遊技球の払出が可能な状態になったときに、遊
技制御手段は、払出可能状態指定コマンドを送信する。
In this embodiment, the game control means unconditionally transmits a payout possible state designation command as a recovery command, but it is confirmed whether or not the game balls can be paid out. However, if it is possible, the payout possible state designation command may be transmitted as a recovery command, and if it is not possible, the payout prohibition state designation command may be transmitted as a recovery command. The state in which the gaming balls cannot be paid out is, for example, a state in which the supply balls are insufficient or the surplus ball tray 4 is full. When the payout prohibition state designation command is transmitted as the recovery command, when the game balls are ready to be paid out in the game control process executed after the game state recovery process is finished, the game control means is , Send the payable state designation command.

【0124】遊技状態復旧処理において、復旧コマンド
を送信する前に遊技球の払出が可能な状態であるか否か
を確認するようにしても、払出制御手段は、電力供給が
復旧した場合に、遊技制御手段から必ず復旧コマンドを
受信するので、遊技制御手段が正常に立ち上がったこと
を直ちに認識することができる。従って、電力供給開始
が復旧したときに、遊技制御手段と払出制御手段とが同
時に立ち上がるように構成されていても、払出制御手段
による払出制御は、遊技制御手段による制御(例えば、
遊技球の払い出しに関する監視制御)と同期する。
In the game state restoration processing, even if it is confirmed whether or not the game balls can be paid out before the restoration command is transmitted, the payout control means, when the power supply is restored, Since the recovery command is always received from the game control means, it is possible to immediately recognize that the game control means has normally started up. Therefore, even when the game control means and the payout control means are configured to start at the same time when the power supply start is restored, the payout control by the payout control means is controlled by the game control means (for example,
It is synchronized with the game ball payout monitoring control).

【0125】その後、2ms毎にタイマ割込がかかるよ
うにタイマ割込の設定を行う(ステップS86)。ま
た、CPU56は、バックアップフラグをクリアする
(ステップS87)すなわち、前回の電力供給停止時に
所定の記憶保護処理が実行されたことを示すフラグをリ
セットする。よって、制御状態の復旧後に不必要な情報
が残存しないようにすることができる。
After that, the timer interruption is set so that the timer interruption occurs every 2 ms (step S86). Further, the CPU 56 clears the backup flag (step S87), that is, resets the flag indicating that the 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.

【0126】さらに、スタック領域から各種レジスタの
退避値を読み出して、各種レジスタ(IXレジスタ、H
Lレジスタ、DEレジスタ、BCレジスタ)に設定する
(ステップS88)。すなわち、レジスタ復帰処理を行
う。なお、各レジスタが復旧される毎に、スタックポイ
ンタの値が減らされる。すなわち、スタックポインタの
値が、スタック領域の1つ前のアドレスを指すように更
新される。また、スタック領域からパリティフラグを復
帰させ、その内容に従って割込フラグを復帰させる(ス
テップS89)。割込フラグは、CPU56の内部フラ
グであり、割込許可状態にあるのか禁止状態にあるのか
が示されている。
Further, the saved values of various registers are read from the stack area, and various registers (IX register, H
The L register, the DE register, and the BC register) are set (step S88). 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. Also, the parity flag is restored from the stack area, and the interrupt flag is restored according to the contents (step S89). The interrupt flag is an internal flag of the CPU 56, and indicates whether the interrupt flag is in the interrupt enable state or the interrupt state.

【0127】次いで、そして、パリティフラグがオンし
ていない場合には割込許可状態にする(ステップS9
1,S92)。最後に、AFレジスタ(アキュミュレー
タとフラグのレジスタ)をスタック領域から復帰させる
(ステップS93)。
Then, when the parity flag is not turned on, the interrupt enable state is set (step S9).
1, S92). Finally, the AF register (accumulator and flag register) is restored from the stack area (step S93).

【0128】そして、RET命令が実行される。RET
命令が実行されるときには、CPU56は、スタックポ
インタが指す領域に格納されているデータをプログラム
カウンタに設定することによってプログラムのリターン
動作を実現する。ただし、ここでのリターン先は、遊技
状態復旧処理をコールした部分ではない。なぜなら、ス
テップS81においてスタックポインタの復帰処理がな
され、ステップS89でレジスタの復帰処理が終了した
後では、スタック領域を指すスタックポインタは、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 S89, 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.

【0129】以上のように、この実施の形態では、スタ
ック領域に退避されていたアドレスデータ(プログラム
アドレスデータ)にもとづいて遊技制御が再開される。
As described above, in this embodiment, the game control is restarted based on the address data (program address data) saved in the stack area.

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

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

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

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

【0134】次いで、CPU56は、特別図柄に関する
表示制御コマンドをRAM55の所定の領域に設定して
表示制御コマンドを送出する処理を行う(特別図柄コマ
ンド制御処理:ステップS28)。また、普通図柄に関
する表示制御コマンドをRAM55の所定の領域に設定
して表示制御コマンドを送出する処理を行う(普通図柄
コマンド制御処理:ステップS29)。
Next, the CPU 56 performs a process of sending a display control command by setting a display control command relating to a special symbol in a predetermined area of the RAM 55 (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).

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

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

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

【0138】以上の制御によって、この実施の形態で
は、遊技制御処理は2ms毎に起動されることになる。
なお、この実施の形態では、タイマ割込処理で遊技制御
処理が実行されているが、タイマ割込処理では例えば割
込が発生したことを示すフラグのセットのみがなされ、
遊技制御処理はメイン処理において実行されるようにし
てもよい。
By 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.

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

【0140】なお、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 command data 2 area, 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.

【0141】図17(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. 17B 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.

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

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

【0144】図19は、制御コマンドは、8ビットの制
御信号CD0〜CD7(コマンドデータ)とINT信号
(取込信号)とで構成される。払出制御基板37および
図柄制御基板80に搭載されている払出制御手段および
表示制御手段は、INT信号が立ち上がったことを検知
して、割込処理によって1バイトのデータの取り込み処
理を開始する。
In FIG. 19, the control command is composed of 8-bit control signals CD0 to CD7 (command data) and an INT signal (acquisition signal). The payout control means and the display control means mounted on the payout control board 37 and the pattern control board 80 detect that the INT signal has risen, and start the processing of fetching 1-byte data by the interrupt processing.

【0145】なお、制御コマンドは、電気部品制御手段
が認識可能に1回だけ送出される。認識可能とは、この
例では、INT信号のレベルが変化することであり、認
識可能に1回だけ送出されるとは、例えば表示制御信号
の1バイト目および2バイト目のそれぞれに応じてIN
T信号が1回だけパルス状(矩形波状)に出力されるこ
とである。各電気部品制御手段は、INT信号が立ち上
がったことを検知して、例えば割込処理によって1バイ
トのデータの取り込み処理を開始する。
The control command is sent only once so that the electric component control means can recognize it. In this example, “recognizable” means that the level of the INT signal changes, and “recognitionally transmitted only once” means that, for example, the IN signal is sent in response to the first byte and the second byte of the display control signal.
That is, the T signal is output once as a pulse (rectangular wave). Each electric component control means detects that the INT signal has risen, and starts the process of fetching 1-byte data by, for example, an interrupt process.

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

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

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

【0149】図21は、コマンドセット処理の処理例を
示すフローチャートである。コマンドセット処理は、コ
マンド出力処理とINT信号出力処理とを含む処理であ
り、他の電気部品制御手段に制御コマンドを送信すると
きに実行される。コマンドセット処理において、CPU
56は、まず、コマンド送信テーブルのアドレスをスタ
ック等に退避する(ステップS331)。そして、ポイ
ンタが指していたコマンド送信テーブルのINTデータ
を引数1にロードする(ステップS332)。引数1
は、後述するコマンド送信処理に対する入力情報にな
る。また、コマンド送信テーブルを指すアドレスを+1
する(ステップS333)。従って、コマンド送信テー
ブルを指すアドレスは、コマンドデータ1のアドレスに
一致する。
FIG. 21 is a flow chart showing a processing example of the command set processing. The command set process is a process including a command output process and an INT signal output process, and is executed when a control command is transmitted to another electric component control means. CPU in command set processing
56 first saves the address of the command transmission table to the stack or the like (step S331). Then, the INT data of the command transmission table pointed to by the pointer is loaded into the argument 1 (step S332). Argument 1
Is input information for a command transmission process described later. In addition, the address that points to the command transmission table is +1
Yes (step S333). Therefore, the address indicating the command transmission table matches the address of the command data 1.

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

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

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

【0153】キャリービットが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.

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

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

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

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

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

【0159】次いで、CPU56は、ウェイトカウンタ
に所定値を設定し(ステップS362)、その値が0に
なるまで1ずつ減算する(ステップS363,S36
4)。ウェイトカウンタの値が0になると、クリアデー
タ(00)を設定して(ステップS365)、そのデー
タをポート0に出力する(ステップS366)。よっ
て、INT信号はローレベルになる。また、ウェイトカ
ウンタに所定値を設定し(ステップS362)、その値
が0になるまで1ずつ減算する(ステップS368,S
369)。そして、ウェイトカウンタの値が0になると
(ステップS369のY)、CPU56は、コマンド送
信中フラグをオフする(ステップS370)。
Next, the CPU 56 sets a predetermined value in the wait counter (step S362), and subtracts 1 by 1 until the value becomes 0 (steps S363, S36).
4). When the value of the wait counter becomes 0, clear data (00) is set (step S365) and the data is output to port 0 (step S366). Therefore, the INT signal becomes low level. Also, a predetermined value is set in the wait counter (step S362), and 1 is subtracted until the value becomes 0 (steps S368, S).
369). When the value of the wait counter becomes 0 (Y in step S369), the CPU 56 turns off the command transmission flag (step S370).

【0160】以上のようにして、制御コマンドの1バイ
ト目のMODEデータが送出される。そこで、CPU5
6は、図21に示すステップ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
6, in step S336 shown in FIG. 21, 1 is added 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.

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

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

【0163】以上のようにして、2バイト構成の制御コ
マンド(払出制御コマンド、表示制御コマンド、ランプ
制御コマンド、音制御コマンド)が、対応する電気部品
制御手段に送信される。電気部品制御手段ではINT信
号の立ち上がりを検出すると制御コマンドの取り込み処
理を開始する。なお、各電気部品制御手段は、INT信
号の立ち下がりで制御コマンドの取り込み処理を開始し
てもよい。また、INT信号の極性を図19に示された
場合と逆にしてもよい。
As described above, the control command (payout control command, display control command, lamp control command, sound control command) having a 2-byte structure is transmitted to the corresponding electric component control means. When the rising edge of the INT signal is detected, the electric component control means starts the control command fetching process. 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.

【0164】また、図22に示すように、コマンド送信
処理の最後で、CPU56は、電源断フラグがオンして
いるか否か確認する(ステップS371)。この実施の
形態では、NMIがかかったことに起因して実行される
NMI処理(マスク不能割込処理)において、NMIが
かかった時点がコマンド送信処理の実行中であることが
検出されると、NMIがかかったことを示す電源断フラ
グをセットするとともに、コマンド送信処理を続行す
る。従って、コマンド送信処理が終了したときに、電源
断フラグがセットされている場合には、後述するステッ
プS450に戻る。
Further, as shown in FIG. 22, at the end of the command transmission process, the CPU 56 confirms whether the power-off flag is on (step S371). In this embodiment, in the NMI processing (non-maskable interrupt processing) executed due to the NMI, when it is detected that the command transmission processing is being executed at the time when the NMI is applied, The power-off flag indicating that NMI is applied is set, and the command transmission process is continued. Therefore, when the power-off flag is set when the command transmission process ends, the process returns to step S450 described below.

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

【0166】電力供給停止時処理において、CPU56
は、AFレジスタ(アキュミュレータとフラグのレジス
タ)を所定のバックアップRAM領域(具体的にはスタ
ック領域)に退避する(ステップS450)。次いで、
コマンド送信中フラグがオンしているか否か確認する
(ステップS451)。なお、アキュミュレータ(Aレ
ジスタ)の内容は既に退避しているので、ステップS4
51の処理を実行するときにアキュミュレータを使用す
ることができる。上述したように、コマンド送信中フラ
グは、コマンド送信処理に実行中にセット状態になって
いる。コマンド送信中フラグがオンしている場合には、
電源断フラグをセットするとともに(ステップS47
1)、スタック領域からマスク不能割込発生時に実行さ
れていたプログラムのアドレスを取得してそのアドレス
にジャンプする(ステップS472,S473)。
In the power supply stop processing, the CPU 56
Saves the AF register (accumulator and flag register) to a predetermined backup RAM area (specifically, stack area) (step S450). Then
It is confirmed whether or not the command transmitting flag is turned on (step S451). Since the contents of the accumulator (A register) have already been saved, step S4
An accumulator can be used when performing the process of 51. As described above, the command transmission flag is set during execution of the command transmission process. If the command sending flag is on,
The power-off flag is set (step S47)
1) The address of the program being executed when the non-maskable interrupt occurs is acquired from the stack area and jumps to the address (steps S472 and S473).

【0167】そして、上述したように、コマンド送信処
理が終了すると、ステップS450に戻る。コマンド送
信処理が終了したときにはコマンド送信中フラグはリセ
ットされているので、コマンド送信処理の終了後にステ
ップS450に戻ったときにはステップS452以降の
処理が実行される。なお、マスク不能割込発生時にコマ
ンド送信処理が実行されていない場合には、ステップS
450から直ちにステップS452の処理に移行する。
Then, as described above, when the command transmission process ends, the process returns to step S450. Since the command transmission flag is reset when the command transmission process is completed, when the process returns to step S450 after the command transmission process is completed, the processes of step S452 and subsequent steps are executed. If the command transmission process is not executed when the non-maskable interrupt occurs, the step S
Immediately after 450, the process proceeds to step S452.

【0168】ステップS451,S471,S472お
よびジャンプ処理(ステップS473)によって、コマ
ンド送信処理中にマスク不能割込が発生した場合には、
コマンド送信処理を終了させてから、電力供給停止時処
理(ステップS450以降の処理)が実行される。従っ
て、コマンド送信処理は中断されることなく最後まで実
行される。よって、コマンド受信側の電気部品制御手段
においてコマンドの取りこぼしが生ずることが確実に防
止される。なお、コマンド送信処理が終了したら再びス
テップS450の処理を実行するのは、電力供給停止時
処理以外の処理での最後のAFレジスタのデータを退避
させるためである。
If a non-maskable interrupt occurs during the command transmission process by steps S451, S471, S472 and the jump process (step S473),
After the command transmission process is completed, the power supply stop process (process after step S450) is executed. Therefore, the command transmission process is executed to the end without interruption. Therefore, it is possible to reliably prevent a command from being missed in the command-receiving-side electric component control means. It should be noted that the reason why the process of step S450 is executed again after the command transmission process is completed is to save the last AF register data in processes other than the power supply stop process.

【0169】CPU56は、ステップS452におい
て、割込フラグをパリティフラグにコピーし、その内容
をスタック領域に退避する(ステップS453)。ま
た、BCレジスタ、DEレジスタ、HLレジスタおよび
IXレジスタをスタック領域に退避する(ステップS4
54〜S457)。なお、電源復旧時には、退避された
内容にもとづいてレジスタ内容が復帰され、パリティフ
ラグの内容に応じて、割込許可状態/禁止状態の内部設
定がなされる。
In step S452, the CPU 56 copies the interrupt flag into the parity flag and saves the contents in the stack area (step S453). The BC register, DE register, HL register, and IX register are saved in the stack area (step S4).
54-S457). 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.

【0170】次いで、CPU56は、払出制御基板37
に対して電源断信号を出力する(ステップS458)。
具体的には、出力ポート6のビット3を1にする。図7
に示すように、出力ポートから出力される電源断信号
は、主基板31において論理反転され、信号線によって
払出制御基板37に伝達され、払出制御基板37におい
て、払出制御用CPU371のマスク不能割込端子に入
力される。
Next, the CPU 56 causes the payout control board 37.
A power-off signal is output to (step S458).
Specifically, bit 3 of output port 6 is set to 1. Figure 7
As shown in FIG. 5, the power-off signal output from the output port is logically inverted in the main board 31 and transmitted to the payout control board 37 by a signal line, and in the payout control board 37, the non-maskable interrupt of the payout control CPU 371. Input to the terminal.

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

【0172】そして、IOポインタが指すアドレスにク
リアデータをセットするとともに(ステップS46
2)、IOポインタの値を1増やし(ステップS46
3)、処理数の値を1減算する(ステップS464)。
ステップS462〜S464の処理が、処理数の値が0
になるまで繰り返される(ステップS465)。その結
果、全ての出力ポート0〜6(図12および図13参
照)にクリアデータが設定される。図12および図13
に示すように、この例では、「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 in all output ports 0 to 6 (see FIGS. 12 and 13). 12 and 13
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.

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

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

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

【0176】さらに、この実施の形態では、所定期間
(以下、払出確認期間という)、賞球カウントスイッチ
301Aの検出信号をチェックする。そして、賞球カウ
ントスイッチ301Aがオンしたら賞球カウント値を1
増やす(ステップS466〜S468,S480〜S4
82)。
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 prize ball count value is set to 1
Increase (steps S466 to S468, S480 to S4
82).

【0177】なお、この実施の形態では、払出確認期間
を計測するために、払出確認期間計測用カウンタが用い
られる。払出確認期間計測用カウンタの値は、初期値m
から、スイッチ検出処理のループ(S467から始まっ
て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 this, it is assumed that the switch detection processing loop (loop starting from S467 and returning to S467) is decremented by 1 every time the value becomes 0, and the payout confirmation period ends. 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.

【0178】払出確認期間を計測するために、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.

【0179】また、払出確認期間は、遊技球が、球払出
装置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 it 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].

【0180】少なくとも、スイッチ検出処理が実行され
る払出確認期間では、賞球カウントスイッチ301Aが
遊技球を検出できる状態でなければならない。そこで、
この実施の形態では、図8に示されたように、電源基板
910におけるコンバータIC920の入力側に比較的
大容量の補助駆動電源としてのコンデンサ923が接続
されている。よって、遊技機に対する電力供給停止時に
も、ある程度の期間は+12V電源電圧がスイッチ駆動
可能な範囲に維持され、賞球カウントスイッチ301A
が動作可能になる。その期間が、上記の払出確認期間以
上になるように、コンデンサ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. 8, 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 the switchable range for a certain period of time, and the prize ball count switch 301A.
Becomes operational. The capacity of the capacitor 923 is determined so that the period is equal to or longer than the payout confirmation period.

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

【0182】ステップS466〜S482の処理によっ
て、払出確認期間内に賞球カウントスイッチ301Aが
オンしたら、賞球カウント値が+1される。バックアッ
プRAMの内容を保存するための処理は、このようなス
イッチ検出処理の後で行われるので、払出が完了した賞
球について、必ず賞球カウント値が+1される。遊技機
への電力供給が停止し、その後、復旧すると、遊技状態
復旧処理におけるステップS84において(図15参
照)、CPU56は、賞球カウント値を総賞球数格納バ
ッファの格納値から減算するとともに、賞球カウント値
を賞球情報カウンタのカウント値に加算する処理を行
う。従って、遊技球の払出に関して、保存される制御状
態に矛盾が生じてしまうことが防止される。すなわち、
実際には払い出された遊技球が未検出とされてしまうよ
うなことはない。
By the processing of steps S466 to S482, if the prize ball count switch 301A is turned on within the payout confirmation period, the prize ball count value is incremented by one. Since the process for storing the contents of the backup RAM is performed after such a switch detection process, the prize ball count value is always incremented by 1 for the prize balls that have been paid out. When the power supply to the gaming machine is stopped and then restored, in step S84 of the gaming state restoration processing (see FIG. 15), the CPU 56 subtracts the prize ball count value from the value stored in the total prize ball number storage buffer and , A process of adding the prize ball count value to the count value of the prize ball information counter. Therefore, regarding the payout of the game balls, it is possible to prevent the stored control state from being inconsistent. That is,
Actually, the game balls paid out are not undetected.

【0183】なお、この実施の形態では、電力供給停止
時処理では賞球カウント値の加算処理が行われるが、賞
球カウントスイッチ301Aがオンしたら、総賞球数格
納バッファの格納値を−1するとともに、賞球情報カウ
ンタのカウント値を+1するようにしてもよい。そのよ
うに構成した場合には、遊技状態復旧処理におけるステ
ップS84の処理は不要である。
In this embodiment, the prize ball count value addition process is performed in the power supply stop process, but when the prize ball count switch 301A is turned on, the stored value of the total prize ball number storage buffer is set to -1. At the same time, the count value of the prize ball information counter may be incremented by one. In such a case, the process of step S84 in the game state recovery process is unnecessary.

【0184】払出確認期間が経過すると(ステップS4
86)、すなわち、払出確認期間計測用カウンタの値が
0になると、バックアップあり指定値(この例では「5
5H」)をバックアップフラグにストアする(ステップ
S487)。バックアップフラグはバックアップRAM
領域に形成されている。次いで、パリティデータを作成
する(ステップS488〜S497)。すなわち、ま
ず、クリアデータ(00)をチェックサムデータエリア
にセットし(ステップS488)、チェックサム算出開
始アドレスをポインタにセットする(ステップS48
9)。また、チェックサム算出回数をセットする(ステ
ップS490)。
When the payout confirmation period has elapsed (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).

【0185】そして、チェックサムデータエリアの内容
とポインタが指す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).

【0186】チェックサム算出回数の値が0になった
ら、CPU56は、チェックサムデータエリアの内容の
各ビットの値を反転する(ステップS496)。そし
て、反転後のデータをチェックサムデータエリアにスト
アする(ステップS497)。このデータが、電源投入
時にチェックされるパリティデータとなる。次いで、ス
タックポインタの内容をバックアップRAM領域に退避
した後(ステップS498)、RAMアクセスレジスタ
にアクセス禁止値を設定する(ステップS499)。以
後、内蔵RAM55のアクセスができなくなる。
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 (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. Next, after the contents of the stack pointer are saved in the backup RAM area (step S498), the access prohibition value is set in the RAM access register (step S499). After that, the built-in RAM 55 cannot be accessed.

【0187】そして、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.

【0188】また、上記の例では、出力ポートのクリア
処理を、スイッチ検出処理の実行前(ステップ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.

【0189】なお、上記の例において、電源が断するこ
とが検出された後に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). It is preferable to clear the output port of the device (1) after the execution of the switch detection processing. 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, the game ball that has entered the special winning opening immediately before the power outage is placed in the V winning switch 22.
Can be guided to the side. 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.

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

【0191】次に、払出制御手段の動作について説明す
る。図26は、払出制御用CPU371周りの一構成例
を示すブロック図である。図26に示すように、主基板
31からの電源断信号が、バッファ回路980を介して
払出制御用CPU371のマスク不能割込端子(XNM
I端子)に接続されている。従って、払出制御用CPU
371は、マスク不能割込処理によって電源断の発生を
確認することができる。
Next, the operation of the payout control means will be described. FIG. 26 is a block diagram showing a configuration example around the payout control CPU 371. As shown in FIG. 26, a power-off signal from the main board 31 causes a non-maskable interrupt terminal (XNM) of the payout control CPU 371 via a buffer circuit 980.
I terminal). Therefore, the payout control CPU
The 371 can confirm the occurrence of power failure by the non-maskable interrupt process.

【0192】この実施の形態では、システムリセット回
路65BにおけるリセットIC651Bは、電源投入時
に、外付けのコンデンサに容量で決まる所定時間だけ出
力をローレベルとし、所定時間が経過すると出力をハイ
レベルにする。また、リセットIC651Bは、VSLの
電源電圧を監視して電圧値が所定値(例えば+9V)以
下になると出力をローレベルにする。従って、遊技機へ
の電力供給停止時には、リセットIC651Bからの信
号がローレベルになることによって払出制御用CPU3
71がシステムリセットされる。
In this embodiment, the reset IC 651B in the system reset circuit 65B sets the output to the low level for a predetermined time determined by the capacity of the external capacitor when the power is turned on, and sets the output to the high level after the predetermined time elapses. . Further, the reset IC 651B monitors the power supply voltage of VSL and sets the output to the low level when the voltage value becomes a predetermined value (for example, + 9V) or less. Therefore, when the power supply to the gaming machine is stopped, the signal from the reset IC 651B becomes low level, so that the payout control CPU 3
71 is system reset.

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

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

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

【0196】また、電源基板910からの復帰信号と、
システムリセット回路65Bからのリセット信号とはA
ND回路385に入力され、AND回路385の出力が
払出制御用CPU371のリセット端子に入力される。
払出制御用CPU371が電力供給停止時処理を行って
ループ状態(待機状態)にあるときに復帰信号が出力さ
れると、払出制御用CPU371にはシステムリセット
がかかる。その結果、払出制御用CPU371はループ
状態から抜け出すことができる。そして、必要なデータ
がバックアップされているので、停電発生時の払出制御
状態に復旧させることができる。
In addition, a return signal from the power supply board 910,
What is the reset signal from the system reset circuit 65B?
It is input to the ND circuit 385, and the output of the AND circuit 385 is input to the reset terminal of the payout control CPU 371.
When the return signal is output when the payout control CPU 371 performs the power supply stoppage process and is in the loop state (standby state), the payout control CPU 371 is reset. As a result, the payout control CPU 371 can get out of the loop state. Since necessary data is backed up, it is possible to restore the payout control state at the time of power failure.

【0197】払出制御用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.

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

【0199】図28は、この実施の形態における入力ポ
ートのビット割り当てを示す説明図である。図28に示
すように、入力ポートA(アドレス06H)は、主基板
31から送出された払出制御コマンドの8ビットの払出
制御信号を取り込むための入力ポートである。また、入
力ポートB(アドレス07H)のビット0〜1には、そ
れぞれ、賞球カウントスイッチ301Aおよび球貸しカ
ウントスイッチ301Bの検出信号が入力される。ビッ
ト2〜5には、カードユニット50からのBRDY信
号、BRQ信号、VL信号およびクリアスイッチ921
の検出信号が入力される。このように、クリアスイッチ
921の検出信号すなわち操作手段の操作入力は、遊技
球を検出するためのスイッチの検出信号が入力される入
力ポート(8ビット構成の入力部)と同一の入力ポート
におけるビット(入力ポート回路)に入力されている。
FIG. 28 is an explanatory diagram showing bit allocation of input ports in this embodiment. As shown in FIG. 28, 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. In this way, the detection signal of the clear switch 921, that is, the operation input of the operating means is a bit at the same input port as the input port (the input unit having the 8-bit configuration) to which the detection signal of the switch for detecting the game ball is input. (Input port circuit).

【0200】図29は、払出制御手段(払出制御用CP
U371およびROM,RAM等の周辺回路)のメイン
処理を示すフローチャートである。メイン処理では、払
出制御用CPU371は、まず、必要な初期設定を行
う。すなわち、払出制御用CPU371は、まず、割込
禁止に設定する(ステップS701)。次に、割込モー
ドを割込モード2に設定し(ステップS702)、スタ
ックポインタにスタック領域の先頭アドレスを設定する
(ステップS703)。また、払出制御用CPU371
は、内蔵デバイスレジスタの初期化を行い(ステップS
704)、CTCおよびPIOの初期化(ステップS7
05)を行った後に、RAMをアクセス可能状態に設定
する(ステップS706)。
FIG. 29 shows the 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 top address of the stack area is set to the stack pointer (step S703). Further, the payout control CPU 371
Initializes the internal device register (step S
704), initialization of CTC and PIO (step S7
After performing 05), the RAM is set to the accessible state (step S706).

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

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

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

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

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

【0206】CTCのチャネル2(CH2)のカウント
アップにもとづく割込は、上述したタイマカウンタレジ
スタCLK/TRG2の値が「0」になったときに発生
する割込である。従って、例えばステップS705にお
いて、特定レジスタとしてのタイマカウンタレジスタC
LK/TRG2に初期値「1」が設定される。さらに、
CLK/TRG2端子に入力される信号の立ち上がりま
たは立ち下がりで特定レジスタとしてのタイマカウンタ
レジスタCLK/TRG2のカウント値が−1されるの
であるが、所定の特定レジスタの設定によって、立ち上
がり/立ち下がりの選択を行うことができる。この実施
の形態では、CLK/TRG2端子に入力される信号の
立ち上がりで、タイマカウンタレジスタCLK/TRG
2のカウント値が−1されるような設定が行われる。
The interruption based on the count-up of the channel 2 (CH2) of the CTC is an interruption which 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.

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

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

【0209】次いで、払出制御用CPU371は、入力
ポートB(図28参照)を介して入力されるクリアスイ
ッチ921の出力信号の状態を1回だけ確認する(ステ
ップS707)。その確認においてオンを検出した場合
には、払出制御用CPU371は、通常の初期化処理を
実行する(ステップS711〜ステップS714)。ク
リアスイッチ921がオンである場合(押下されている
場合)には、ローレベルのクリアスイッチ信号が出力さ
れている。なお、入力ポート372では、クリアスイッ
チ信号のオン状態はハイレベルである。また、例えば、
遊技店員は、クリアスイッチ921をオン状態にしなが
ら遊技機に対する電力供給を開始する(例えば電源スイ
ッチ914をオンする)ことによって、容易に初期化処
理を実行させることができる。すなわち、RAMクリア
等を行うことができる。
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. 28) 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. Also, for example,
The game store staff can easily execute the initialization process by starting power supply to the gaming machine (for example, turning on the power switch 914) while turning on the clear switch 921. That is, the RAM clear or the like can be performed.

【0210】なお、払出制御用CPU371も、主基板
31のCPU56と同様に、スイッチの検出信号のオン
判定を行う場合には、例えば、オン状態が少なくとも2
ms(2ms毎に起動される処理の1回目の処理におけ
る検出直前に検出信号がオンした場合)継続しないとス
イッチオンとは見なさないが、クリアスイッチ921の
オン検出の場合には、1回のオン判定でオン/オフが判
定される。
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 it is determined whether the switch detection signal is ON.
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.

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

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

【0213】チェック結果が正常であれば(ステップ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.

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

【0215】なお、払出禁止状態に設定するときには、
払出制御用CPU371は、例えば払出モータ289の
駆動を停止する制御を行うとともに払出禁止状態である
ことを示す内部フラグ(払出停止中フラグ)をセットす
る。すなわち、ステップS713では、払い出しが禁止
された状態であることを示すデータ(セットされた払出
停止中フラグ)を所定の記憶領域に記憶する処理が実行
されている。そして、初期設定処理のステップS701
において割込禁止とされているので、初期化処理を終え
る前に割込が許可される(ステップS714)。なお、
払出停止中フラグは、遊技制御手段から払出可能状態指
定コマンドを受信したことを条件としてリセットされ
る。
When setting the pay-out prohibited state,
The payout control CPU 371 controls, for example, driving of the payout motor 289, and sets an internal flag (payout stopped flag) indicating that the payout is prohibited. 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. Then, step S701 of the initialization process.
Since the interrupt is prohibited in (1), the interrupt is permitted before finishing the initialization process (step S714). In addition,
The payout suspension flag is reset on condition that the payable state designation command is received from the game control means.

【0216】この実施の形態では、払出制御用CPU3
71の内蔵CTCが繰り返しタイマ割込を発生するよう
に設定される。この実施の形態では、繰り返し周期は2
msに設定される。そして、タイマ割込が発生すると、
図30に示すように、タイマ割込があったことを示すタ
イマ割込フラグがセットされる(ステップ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. 30, a timer interrupt flag indicating that a timer interrupt has occurred 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.

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

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

【0219】次に、払出制御用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).

【0220】次いで、払出制御用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.

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

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

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

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

【0225】図31は、ステップS710の払出状態復
旧処理の一例を示すフローチャートである。払出状態復
旧処理において、払出制御用CPU371は、まず、ス
タックポインタの復帰処理を行う(ステップS73
1)。スタックポインタの値は、後述する電力供給停止
時処理において、所定のRAMエリア(電源バックアッ
プされているバックアップRAM領域)に退避してい
る。よって、ステップS731では、そのRAMエリア
の値をスタックポインタに設定することによって復帰さ
せる。なお、復帰されたスタックポインタが指す領域
(すなわちスタック領域における読み出し先:具体的に
はそこから複数の領域)には、電力供給が停止したとき
のレジスタ値やプログラムカウンタ(PC)の値が退避
している。
FIG. 31 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 (backup RAM area whose power is backed up) in a power supply stoppage process described later. Therefore, in step S731, the value of the RAM area is set in the stack pointer to restore the value. In the area pointed to by the restored stack pointer (that is, the read destination in the stack area: more specifically, a plurality of areas from the read area), the register value and the program counter (PC) value when power supply is stopped are saved. is doing.

【0226】次いで、払出制御用CPU371は、復旧
する払い出しに関する状態として、この実施の形態では
払出禁止状態に設定する(ステップS732)。なお、
払出禁止状態に設定するときには、払出制御用CPU3
71は、例えば払出モータ289の駆動を停止する制御
を行うとともに払出禁止状態であることを示す内部フラ
グ(払出停止中フラグ)をセットする。すなわち、ステ
ップS732では、払い出しが禁止された状態であるこ
とを示すデータ(セットされた払出停止中フラグ)を所
定の記憶領域に記憶する処理が実行されている。
Next, the payout control CPU 371 sets the payout prohibition state in this embodiment as a state related to the payout to be restored (step S732). In addition,
When setting the payout prohibition state, the payout control CPU 3
71 performs, for example, control to stop driving of the payout motor 289, and sets an internal flag (payout stopped flag) indicating that the payout is prohibited. 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.

【0227】なお、復旧コマンドとしての払出可能状態
指定コマンドまたは払出禁止状態指定コマンドは、後述
するコマンド受信割込によって受信され、実際には、払
出状態復旧処理が終了後、払出制御処理(図29におけ
るステップS751〜S760)におけるステップS7
53(図35参照)において解析され、払出禁止状態が
解除される(払出可能状態指定コマンドを受信した場
合)。すなわち、ステップS753において、払出停止
中フラグがリセットされる。
The payout possible state designating command or the payout prohibiting state designating command as a recovery command is received by a command reception interrupt described later, and in reality, after the payout state recovery process is completed, the payout control process (FIG. 29) is executed. Steps S751 to S760)
53 (see FIG. 35), the payout prohibition state is canceled (when the payable state designation command is received). That is, in step S753, the payout suspension flag is reset.

【0228】次いで、バックアップRAMに保存されて
いた賞球カウント値を総合個数記憶に反映する(ステッ
プS733)。賞球カウント値は、後述する電力供給停
止時処理において検出された賞球払出球の数に相当す
る。ステップS733では、払出制御用CPU371
は、賞球カウント値を総合個数記憶の記憶値から減算す
る処理を行う。そして、賞球カウント値をクリアする。
また、バックアップRAMに保存されていた貸球カウン
ト値を貸し球個数記憶に反映する(ステップS73
4)。貸球カウント値は、後述する電力供給停止時処理
において検出された球貸し払出球の数に相当する。ステ
ップS734では、払出制御用CPU371は、貸球カ
ウント値を貸し球個数記憶の記憶値から減算する処理を
行う。そして、貸球カウント値をクリアする。
Next, the prize ball count value stored in the backup RAM is reflected in the total number memory (step S733). The prize ball count value corresponds to the number of prize ball payout balls detected in the power supply stoppage process described later. In step S733, payout control CPU 371
Performs a process of subtracting the prize ball count value from the stored value in the total number memory. Then, the prize ball count value is cleared.
In addition, the lent ball count value stored in the backup RAM is reflected in the lent ball number storage (step S73).
4). The ball lending count value corresponds to the number of ball lending and paying balls detected in the power supply stoppage process described later. In step S734, the payout control CPU 371 performs a process of subtracting the lent ball count value from the stored value of the lent ball number storage. Then, the rental ball count value is cleared.

【0229】その後、2ms毎にタイマ割込がかかるよ
うにタイマ割込の設定を行う(ステップS735)。ま
た、払出制御用CPU371は、バックアップフラグを
クリアする(ステップS736)すなわち、前回の電力
供給停止時に所定の記憶保護処理が実行されたことを示
すフラグをリセットする。
Thereafter, the timer interrupt is set so that the timer interrupt is taken every 2 ms (step S735). Further, the payout control CPU 371 clears the backup flag (step S736), that is, resets the flag indicating that a predetermined storage protection process has been executed at the previous power supply stop.

【0230】さらに、スタック領域から各種レジスタの
退避値を読み出して、各種レジスタ(IXレジスタ、H
Lレジスタ、DEレジスタ、BCレジスタ)に設定する
(ステップS737)。すなわち、レジスタ復帰処理を
行う。なお、各レジスタを復帰させる毎に、スタックポ
インタの値が減らされる。すなわち、スタックポインタ
の値が、スタック領域の1つ前のアドレスを指すように
更新される。また、スタック領域からパリティフラグを
復帰させ、その内容に従って割込フラグを復帰させる
(ステップS738)。割込フラグは、払出制御用CP
U371の内部フラグであり、割込許可状態にあるのか
禁止状態にあるのかが示されている。
Further, the saved values of the various registers are read from the stack area, and the various registers (IX register, H
The L register, the DE register, and the BC register) are set (step S737). 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. Also, the parity flag is restored from the stack area, and the interrupt flag is restored according to the contents (step S738). Interrupt flag is CP for payout control
It is an internal flag of U371 and indicates whether it is in the interrupt permission state or the prohibition state.

【0231】また、パリティフラグがオン状態になって
いなければ割込許可状態にする(ステップS739,S
740)。最後に、AFレジスタ(アキュミュレータと
フラグのレジスタ)をスタック領域から復帰させる(ス
テップS741)。
If the parity flag is not turned on, the interrupt enabled state is set (steps S739, S).
740). Finally, the AF register (register for accumulator and flag) is restored from the stack area (step S741).

【0232】そして、RET命令が実行されるのである
が、ここでのリターン先は、払出状態復旧処理をコール
した部分ではない。なぜなら、ステップS731におい
てスタックポインタの復帰処理がなされ、復帰されたス
タックポインタが指すスタック領域に格納されているリ
ターンアドレスは、プログラムにおける前回の電力供給
停止時にNMIが発生したアドレスである。従って、ス
テップS740の次のRET命令によって、電力供給停
止時にNMIが発生したアドレスにリターンする。すな
わち、スタック領域に退避されていたアドレスにもとづ
いて払出制御が再開される。
Then, the RET instruction is executed, but the return destination here is not the part 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 S740 returns to the address where the NMI occurred when the power supply was stopped. That is, the payout control is restarted based on the address saved in the stack area.

【0233】図32は、払出制御用CPU371が内蔵
するRAMの使用例を示す説明図である。この例では、
バックアップRAM領域(サブ側変動データ記憶手段)
に、総合個数記憶(例えば2バイト)と貸し球個数記憶
とがそれぞれ形成されている。総合個数記憶は、主基板
31の側から指示された賞球払出個数の総数を記憶する
ものである。貸し球個数記憶は、未払出の球貸し個数を
記憶するものである。なお、バックアップRAM領域に
は、上記の遊技球の個数に関する情報を記憶する領域に
限られず、例えば、後述する払出停止中フラグ、賞球経
路エラーフラグなどのエラー状態を示すフラグ、バック
アップフラグなどの各種のフラグを記憶する領域や、受
信コマンドバッファなどの各種のバッファなどを記憶す
る領域なども形成されている。また、払出制御処理にお
いて用いられるデータが格納されるRAM領域は全て電
源バックアップされるようにしてもよい。
FIG. 32 is an explanatory diagram showing a usage example of the RAM incorporated in the payout control CPU 371. In this example,
Backup RAM area (sub side fluctuation data storage means)
In addition, a total number memory (for example, 2 bytes) and a loan 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. It should be noted that the backup RAM area is not limited to the area for storing the information on the number of game balls described above. An area for storing various 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.

【0234】そして、払出制御用CPU371は、例え
ば、賞球制御処理(ステップS757)において、遊技
制御手段から賞球個数を示す払出制御コマンドを受信す
ると、指示された個数分だけ総合個数記憶に内容を増加
する。また、球貸し制御処理(ステップS756)にお
いて、カードユニット50から球貸し要求の信号を受信
する毎に1単位(例えば25個)の個数分だけ貸し球個
数記憶に内容を増加する。さらに、払出制御用CPU3
71は、賞球制御処理において賞球カウントスイッチ3
01Aが1個の賞球払出を検出すると総合個数記憶の値
を1減らし、球貸し制御処理において球貸しカウントス
イッチ301Bが1個の貸し球払出を検出すると貸し球
個数記憶の値を1減らす。
Then, when the payout control CPU 371 receives a payout control command indicating the number of prize balls from the game control means in the prize ball control processing (step S757), for example, the specified number 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.

【0235】従って、未払出の賞球個数と貸し球個数と
が、所定期間はその内容を保持可能なバックアップRA
M領域に記憶されることになる。よって、停電等の不測
の電力供給停止が生じても、所定期間内に電力供給が復
旧すれば、バックアップRAM領域の記憶内容にもとづ
いて賞球処理および球貸し処理を再開することができ
る。すなわち、遊技機への電力供給が停止しても、電力
供給が再開すれば、電力供給停止時の未払出の賞球個数
と貸し球個数とにもとづいて払い出しが行われ、遊技者
に与えられる不利益を低減することができる。
Therefore, the number of unpaid prize balls and the number of loanable balls are backup RAs capable of holding the 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.

【0236】図33は、主基板31から受信した払出制
御コマンドを格納するための受信バッファの一構成例を
示す説明図である。この例では、2バイト構成の払出制
御コマンドを6個格納可能なリングバッファ形式の受信
バッファが用いられる。従って、受信バッファは、受信
コマンドバッファ1〜12の12バイトの領域で構成さ
れる。そして、受信したコマンドをどの領域に格納する
のかを示すコマンド受信個数カウンタが用いられる。コ
マンド受信個数カウンタは、0〜11の値をとる。受信
バッファはバックアップRAMに形成されているので、
サブ側変動データ記憶手段は、遊技制御手段から受信し
たコマンドを特定可能なデータを記憶可能に構成されて
いることになる。
FIG. 33 is an explanatory diagram showing a configuration example of a receiving 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. Since the receive buffer is formed in the backup RAM,
The sub-side fluctuation data storage means is configured to be able to store data that can specify the command received from the game control means.

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

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

【0239】すなわち、取込信号としてのパルス状(矩
形波状)のINT信号のレベル変化タイミング(エッ
ジ)で割込が発生するように構成すれば、エッジは立ち
上がりエッジであっても立ち下がりエッジであってもよ
い。いずれにせよ、取込信号としてのパルス状(矩形波
状)のINT信号のレベル変化タイミング(エッジ)で
割込が発生するように構成される。このようにすること
で、コマンドの取込が指示された段階でいち早くコマン
ド受信を行うことが可能になる。また、Aの期間(図1
9参照)が経過するまで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, period A (Fig. 1
Since the output of the INT signal is waited until (step 9) 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.

【0240】払出制御コマンドの受信処理において、払
出制御用CPU371は、まず、各レジスタをスタック
に退避する(ステップS850)。次いで、払出制御コ
マンドデータの入力に割り当てられている入力ポート3
72a(図7参照)からデータを読み込む(ステップS
851)。次いで、読み込んだデータが規則内のデータ
であるか否か確認する(ステップS851a)。規則内
のデータであるか否かは、受信したデータの構成や内容
が予め定められている規則に適合しているか否かを確認
することで行われる。例えば、受信したデータが、正規
のコマンドとはバイト数が異なるデータであった場合
や、データの内容が正規のコマンドではあり得ない内容
となっている場合などには、規則外のデータであると判
定される。読み込んだデータが規則内のデータであれ
ば、2バイト構成の払出制御コマンドのうちの1バイト
目であるか否か確認する(ステップS852)。1バイ
ト目であるか否かは、受信したコマンドの先頭ビットが
「1」であるか否かによって確認される。先頭ビットが
「1」であるのは、2バイト構成である払出制御コマン
ドのうちのMODEバイト(1バイト目)のはずである
(図18参照)。そこで、払出制御用CPU371は、
先頭ビットが「1」であれば、有効な1バイト目を受信
したとして、受信したコマンドを受信バッファ領域にお
けるコマンド受信個数カウンタが示す受信コマンドバッ
ファに格納する(ステップS853)。
In the payout control command receiving process, 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. 7) (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 head bit is "1" in the MODE byte (first byte) of the payout control command having a 2-byte structure (see FIG. 18). 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).

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

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

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

【0244】コマンド受信割込処理中は割込禁止状態に
なっている。上述したように、2msタイマ割込処理中
は割込許可状態になっているので、2msタイマ割込中
にコマンド受信割込が発生した場合には、コマンド受信
割込処理が優先して実行される。また、コマンド受信割
込処理中に2msタイマ割込が発生しても、その割込処
理は待たされる。このように、この実施の形態では、主
基板31からのコマンド受信処理の処理優先度が高くな
っている。
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.

【0245】また、払出制御コマンドは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.

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

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

【0248】なお、払出禁止状態に設定するときには、
払出制御用CPU371は、例えば払出モータ289の
駆動を停止する制御を行うとともに払出禁止状態である
ことを示す内部フラグ(払出停止中フラグ)をセットす
る。また、払出禁止状態を解除するときには、払出モー
タ289の駆動を再開するとともに、払出停止中フラグ
をリセットする。すなわち、ステップS753cでは、
払い出しが禁止された状態であることを示すデータ(セ
ットされた払出停止中フラグ)を所定の記憶領域に記憶
する処理が実行され、ステップS753eでは、払い出
しが許可された状態であることを示すデータ(リセット
された払出停止中フラグ)を所定の記憶領域に記憶する
処理が実行されている。
When setting the payout prohibition state,
The payout control CPU 371 controls, for example, driving of the payout motor 289, and sets an internal flag (payout stopped flag) indicating that the payout is prohibited. 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,
A process of storing data indicating that the payout is in a prohibited state (a set payout suspension flag) in a predetermined storage area is executed, and in step S753e, data indicating that the payout is permitted. A process of storing the (reset payout suspended flag) in a predetermined storage area is executed.

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

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

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

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

【0253】図37〜図39は、主基板31からの電源
断信号に応じて実行されるマスク不能割込処理(NMI
処理:サブ側電力供給停止時処理)の処理例を示すフロ
ーチャートである。
37 to 39 are non-maskable interrupt processing (NMI) executed in response to a power-off signal from the main board 31.
(Processing: processing on sub-side power supply stop) is a flowchart showing a processing example.

【0254】マスク不能割込処理において、払出制御用
CPU371は、AFレジスタを所定のバックアップR
AM領域(具体的にはスタック領域)に退避する(ステ
ップS801)。また、割込フラグをパリティフラグに
コピーし(ステップS802)、その内容をスタック領
域に退避する(ステップS803)。割込フラグは、払
出制御用CPU371の内部フラグであり、割込許可状
態にあるのか禁止状態にあるのかが示されている。ま
た、BCレジスタ、DEレジスタ、HLレジスタおよび
IXレジスタをスタック領域に退避する(ステップS8
04〜807)。なお、電源復旧時には、退避された内
容にもとづいてレジスタ内容が復帰され、パリティフラ
グの内容に応じて、割込許可状態/禁止状態の内部設定
がなされる。
In the non-maskable interrupt process, the payout control CPU 371 sets the AF register to a predetermined backup R.
The data is saved in the AM area (specifically, the stack area) (step S801). Further, the interrupt flag is copied to the parity flag (step S802), and the contents are saved in the stack area (step S803). The interruption flag is an internal flag of the payout control CPU 371 and indicates whether the interruption permission state or the prohibition state is set. The BC register, DE register, HL register, and IX register are saved in the stack area (step S8).
04-807). 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.

【0255】次いで、払出制御用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.

【0256】そして、IOポインタが指すアドレスにク
リアデータをセットするとともに(ステップS81
2)、IOポインタの値を1増やし(ステップS81
3)、処理数の値を1減算する(ステップS814)。
ステップS812〜S814の処理が、処理数の値が0
になるまで繰り返される(ステップS815)。その結
果、出力ポートCおよび出力ポートD(図27参照)に
クリアデータが設定される。図27に示すように、この
例では、「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. 27). As shown in FIG. 27, in this example, "1" is in the ON state and clear data "00" is set in each output port, so that all of 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. The clearing process may be performed on the output ports other than the output port of the distribution solenoid 310 in the output port E.

【0257】また、この実施の形態では、払出モータ2
89として、払出制御用CPU371からのパルス信号
(駆動信号)によって回転するステッピングモータが用
いられている。従って、払出モータ289に対するパル
ス信号の出力が停止されることによって、球払出装置9
7の駆動は停止する。このように、払出制御手段は、サ
ブ側電力供給停止時処理において電気部品の駆動を停止
させる処理を行う。従って、電力供給が停止するときに
電源電圧が不安定になっても電気部品が誤動作してしま
うようなことは防止される。
Further, in this embodiment, the payout motor 2
As 89, a stepping motor that is rotated by a pulse signal (drive signal) from the payout control CPU 371 is used. Therefore, by stopping the output of the pulse signal to the payout motor 289, the ball payout device 9
The driving of 7 is stopped. As described above, the payout control means performs the process of stopping the driving of the electric component in the sub-side power supply stop process. Therefore, even if the power supply voltage becomes unstable when the power supply is stopped, it is possible to prevent the electric components from malfunctioning.

【0258】その後、この実施の形態では、所定期間
(以下、「払出確認期間」という)、払出検出手段とし
ての賞球カウントスイッチ301A(景品遊技媒体検出
手段)および球貸しカウントスイッチ301B(貸出遊
技媒体検出手段)の検出信号をチェックする。そして、
賞球カウントスイッチ301Aがオンしたら賞球カウン
ト値を1増やす。また、球貸しカウントスイッチ301
Bがオンしたら貸球カウント値を1増やす(ステップS
816〜S824)。
After that, in this embodiment, the prize ball count switch 301A (prize game medium detection means) and the ball lending count switch 301B (lending game) for a predetermined period (hereinafter referred to as "payout confirmation period") as payout detection means. Check the detection signal of the medium detecting means). And
When the prize ball count switch 301A is turned on, the prize ball count value is incremented by 1. Also, ball lending count switch 301
When B is turned on, the ball rental count value is incremented by 1 (step S
816-S824).

【0259】払出確認期間を計測するために、払出制御
用CPU371の内蔵タイマを用いてもよい。すなわ
ち、スイッチ検出処理開始時に、内蔵タイマに所定値を
設定しておく。そして、スイッチ検出処理のループが1
回実行される毎に、内蔵タイマのカウント値をチェック
する。そして、カウント値が0になったら、払出確認期
間が終了したとする。内蔵タイマの値が0になったこと
を検出するために内蔵タイマによる割込を用いることも
できるが、この段階では制御内容(RAMに格納されて
いる各値など)を変化させないように、割込を用いず、
内蔵タイマのカウント値を読み出してチェックするよう
なプログラム構成の方が好ましい。また、払出確認期間
は、遊技球が、球払出装置97から落下した時点から、
賞球カウントスイッチ301Aまたは球貸しカウントス
イッチ301Bに到達するまでの時間以上に設定され
る。
A built-in timer of the payout control CPU 371 may be used to measure the payout confirmation period. That is, a predetermined value is set in the built-in timer at the start of the switch detection process. And the loop of the switch detection process is 1
Every time it is executed, the count value of the built-in timer is checked. Then, when the count value becomes 0, it is assumed that the 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, but at this stage, the interrupt is made so as not to change the control contents (each value stored in RAM). Without inclusion,
It is preferable to have a program configuration in which the count value of the built-in timer is read and checked. Further, during the payout confirmation period, from the time when the game ball falls from the ball payout device 97,
The time is set to be longer than the time required to reach the prize ball count switch 301A or the ball lending count switch 301B.

【0260】この実施の形態では、賞球路と貸し球路と
を切り換えるために振分ソレノイド310が用いられて
いる。よって、図8に示されたコンデンサ924の容量
は、少なくとも上記の払出確認期間の間、振分ソレノイ
ド310を駆動できるような容量になっている。なお、
コンデンサ924は、各電気部品に電力供給を行うため
のライン(コネクタ915の入力側のライン)に接続さ
れているが、電源断信号に応じて遊技制御手段が他のソ
レノイド(大入賞口開閉用等)の駆動信号をオフ状態に
しているので、電源断信号発生後では、コンデンサ92
4は、各ソレノイドのうちでは振分ソレノイド310の
みを駆動できればよい。
In this embodiment, the distribution solenoid 310 is used to switch between the winning ball path and the lending ball path. Therefore, the capacity of the capacitor 924 shown in FIG. 8 is such that the distribution solenoid 310 can be driven at least during the payout confirmation period. In addition,
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 (for opening and closing the special winning opening) in response to a power-off signal. Since the driving signal of (), etc. is turned off, after the power-off signal is generated, the capacitor 92
4 is required to drive only the distribution solenoid 310 among the solenoids.

【0261】なお、この実施の形態で用いられているコ
ンデンサ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.

【0262】ステップS816〜S824の処理によっ
て、払出確認期間内に賞球カウントスイッチ301Aお
よび球貸しカウントスイッチ301Bがオンしたら、賞
球カウント値および貸球カウント値が+1される。バッ
クアップRAMの内容を保存するための処理は、このよ
うなスイッチ検出処理の後で行われるので、払出が完了
した遊技球について、必ず賞球カウント値または貸球カ
ウント値が+1される。遊技機への電力供給が停止し、
その後、復旧すると、遊技状態復旧処理におけるステッ
プS733において(図31参照)、払出制御用CPU
371は、賞球カウント値を総合個数記憶の記憶値から
減算する。また、貸球カウント値を貸し球個数記憶の記
憶値から減算する。従って、遊技球の払出に関して、保
存される制御状態に矛盾が生じてしまうことが防止され
る。
When the prize ball count switch 301A and the ball lending count switch 301B are turned on within the payout confirmation period by the processing of steps S816 to S824, the prize ball count value and the ball lending count value are incremented by one. Since the process for saving the contents of the backup RAM is performed after such a switch detection process, the prize ball count value or the ball lending count value is always incremented by 1 for the game ball that has been paid out. The power supply to the gaming machine was stopped,
After that, when the game state is restored, in step S733 in the game state restoration process (see FIG. 31), the payout control CPU
371 subtracts the prize ball count value from the stored value in the total number memory. Further, the lent ball count value is subtracted from the stored value of the lent ball number storage. Therefore, regarding the payout of the game balls, it is possible to prevent the stored control state from being inconsistent.

【0263】払出確認期間が経過すると(ステップS8
30)、払出制御用CPU371は、バックアップあり
指定値(この例では「55H」)をバックアップフラグ
にストアする(ステップS835)。バックアップフラ
グはバックアップRAM領域に形成されている。次い
で、主基板31のCPU56の処理と同様の処理を行っ
てパリティデータを作成しバックアップRAM領域に保
存する(ステップS836〜S845)。そして、スタ
ックポインタの内容をバックアップRAM領域に退避し
た後(ステップS846)、RAMアクセスレジスタに
アクセス禁止値を設定する(ステップS847)。以
後、内蔵RAMのアクセスができなくなる。
When the payout confirmation period has elapsed (step S8)
30), 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). Then, after the contents of the stack pointer are saved in the backup RAM area (step S846), an access prohibition value is set in the RAM access register (step S847). After that, the built-in RAM cannot be accessed.

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

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

【0266】図40は、第1の実施の形態(実施の形態
1)の概要を示す概念図である。図40に示すように、
主基板31および払出制御基板37において、RAM
は、電源基板910に搭載されているバックアップ電源
によって電源バックアップされている。また、電源基板
910に搭載されている電源監視用IC902が出力す
る電源断信号は、主基板31に搭載されているCPU5
6のマスク不能割込端子に入力される。ROMに格納さ
れているプログラムに従って動作するCPU56は、電
源基板910から電断信号が入力されたことを認識する
と、払出制御基板37に対して電源断信号を出力すると
ともに電力供給停止時処理を実行する。払出制御基板3
7において、電源断信号は、ROMに格納されているプ
ログラムに従って動作する払出制御用CPU371のマ
スク不能割込端子に入力される。払出制御用CPU37
1は、主基板31から電断信号が入力されたことを認識
するとサブ側電力供給停止時処理を実行する。
FIG. 40 is a conceptual diagram showing an outline of the first embodiment (Embodiment 1). As shown in FIG. 40,
RAM in the main board 31 and the payout control board 37
Are backed up by a backup power supply mounted on the power supply board 910. Further, the power-off signal output from the power supply monitoring IC 902 mounted on the power supply board 910 is the CPU 5 mounted on the main board 31.
6 is input to the non-maskable interrupt terminal. When the CPU 56 operating according to the program stored in the ROM recognizes that the power cutoff signal is input from the power supply board 910, the CPU 56 outputs the power cutoff signal to the payout control board 37 and executes the power supply stop time process. To do. Discharge control board 3
In 7, the power-off signal is input to the non-maskable interrupt terminal of the payout control CPU 371 that operates according to the program stored in the ROM. CPU 37 for payout control
1 recognizes that the power interruption signal is input from the main board 31, and executes the sub power supply stop time process.

【0267】なお、この実施の形態では、マスク不能割
込に応じて電力供給停止時処理が実行されたが、電源断
信号をCPU56のマスク可能端子に接続し、マスク可
能割込処理によって電力供給停止時処理を実行してもよ
い。また、電源断信号を入力ポートに入力し、入力ポー
トのチェック結果に応じて電力供給停止時処理を実行し
てもよい。また、払出制御基板37においても主基板3
1からの電源断信号を払出制御用CPU371のマスク
可能端子に接続し、マスク可能割込処理によってサブ側
電力供給停止時処理を実行してもよい。また、電源断信
号を入力ポートに入力し、入力ポートのチェック結果に
応じてサブ側電力供給停止時処理を実行してもよい。
In this embodiment, the power supply stop process is executed in response to the non-maskable interrupt, but the power-off signal is connected to the maskable terminal of the CPU 56 to supply the power by the maskable interrupt process. You may perform a process at the time of a stop. 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. Further, also in the payout control board 37, the main board 3
It is also possible to connect the power-off signal from No. 1 to the maskable terminal of the payout control CPU 371 and execute the sub-side power supply stop process by the maskable interrupt process. Further, a power-off signal may be input to the input port, and the sub-side power supply stop process may be executed according to the check result of the input port.

【0268】図41は、遊技制御手段と電気部品制御手
段(例えば払出制御手段)との間でコマンド送受信処理
が実行されているときに電源基板910から電源断信号
が出力された場合の遊技制御手段および払出制御手段の
動作を示すタイミング図である。電源基板910から電
源断信号が出力されたときに、遊技制御手段がコマンド
送信処理を行っている(その間、払出制御手段ではコマ
ンド受信処理を行っている)場合には、コマンド送信処
理を完了させてから電力供給停止時処理を実行する(図
23におけるステップS451,S471〜S473参
照)。そして、電力供給停止時処理を開始したら、払出
制御基板37に対して電源断信号を出力する。払出制御
手段は、遊技制御手段から電源断信号を受けたら電力供
給停止時処理(サブ側電力供給停止時処理)を開始す
る。このような制御によって、遊技制御手段から払出制
御手段へのコマンドが確実に転送され、払出制御手段
は、コマンドを取りこぼすことなく確実に受信すること
ができる。
FIG. 41 is a game control in the case where a power-off signal is output from the power supply board 910 while command transmission / reception processing is being executed between the game control means and the electric component control means (for example, payout control means). It is a timing diagram which shows operation | movement of a means and a payout control means. When the power supply cutoff signal is output from the power supply board 910, if the game control means is performing command transmission processing (during that time, the payout control means is performing command reception processing), the command transmission processing is completed. Then, the power supply stop process is executed (see steps S451 and S471 to S473 in FIG. 23). Then, when the power supply stop processing is started, a power-off signal is output to the payout control board 37. When the payout control means receives the power-off signal from the game control means, it starts the power supply stop processing (sub-side power supply stop processing). By such control, the command from the game control means to the payout control means is surely transferred, and the payout control means can receive the command without fail.

【0269】なお、この実施の形態では、MODEデー
タまたはEXTデータを送信しているときに電源基板9
10から電源断信号が出力されると、遊技制御手段は、
MODEデータまたはEXTデータを送信するためのコ
マンド送信処理(図22参照)を完了させてから電力供
給停止時処理を開始するように構成されているが、電源
基板910から電源断信号が出力されると、MODEデ
ータとEXTデータとからなる払出制御コマンドの全体
の送信を完了させてから電力供給停止時処理を開始する
ように構成してもよい。そのように構成する場合には、
図21に示されたコマンドセット処理の実行中にコマン
ド送信中フラグがセットされているようにすればよい。
In this embodiment, the power supply board 9 is used when MODE data or EXT data is being transmitted.
When the power-off signal is output from 10, the game control means,
Although the power supply stop signal is output from the power supply substrate 910, the power supply stop signal is output after the command transmission process (see FIG. 22) for transmitting the MODE data or the EXT data is completed. Alternatively, the power supply stop process may be started after the entire transmission of the payout control command including MODE data and EXT data is completed. If so configured,
The command transmitting flag may be set during the execution of the command setting process shown in FIG.

【0270】実施の形態2.第1の実施の形態では、主
基板31から払出制御基板37に対して1本の信号によ
って電源断信号が伝達されたが、図42に示すように、
電源断信号は、コマンドによって主基板31から払出制
御基板37に対して伝達されるようにしてもよい。電源
断信号をコマンドで伝達する場合には、遊技制御手段
は、電力供給停止時処理のステップS458(図23参
照)において、電源断信号として定められた払出制御コ
マンド(電源断コマンド)を払出制御基板37に対して
送信する。なお、電源断コマンドは、図20に示された
払出制御コマンドに追加される。例えば、電源断コマン
ドとしてF100(H)を追加する。
Embodiment 2. In the first embodiment, the power-off signal is transmitted from the main board 31 to the payout control board 37 by one signal, but as shown in FIG.
The power-off signal may be transmitted from the main board 31 to the payout control board 37 by a command. When transmitting the power-off signal by a command, the game control means pays out a pay-out control command (power-off command) defined as the power-off signal in step S458 (see FIG. 23) of the power supply stop process. It transmits to the substrate 37. The power-off command is added to the payout control command shown in FIG. For example, F100 (H) is added as a power-off command.

【0271】そして、払出制御手段は、図43に示すよ
うに、例えばコマンド解析処理において、電源断信号と
して定められた払出制御コマンドを受信したことを認識
すると、サブ側電力供給停止時処理(ステップS801
以降の処理)を開始する。
Then, as shown in FIG. 43, when the payout control means recognizes that the payout control command defined as the power-off signal is received in the command analysis process, the sub-side power supply stop process (step S801
Subsequent processing) is started.

【0272】なお、上記の各実施の形態では、コマンド
を受信する側の電気部品制御手段として払出制御手段を
例にしたが、他の電気部品制御手段(表示制御手段、ラ
ンプ制御手段、音制御手段)も、払出制御手段と同様
に、遊技制御手段から電源断信号を受信したことを条件
に、すなわち遊技制御手段の管理の元で、制御を終結さ
せるための処理であるサブ側電力供給停止時処理を実行
するように構成することができる。従って、払出制御手
段と同様に、コマンドを取りこぼすことなく確実に受信
できるようにすることができ、電力供給の停止時と電力
供給の復旧時とで制御の連続性に不都合を生じさせない
ようにすることができる。
In each of the above-mentioned embodiments, the payout control means is taken as an example of the electric part control means on the command receiving side, but other electric part control means (display control means, lamp control means, sound control). Similarly to the payout control means, on the condition that the power-off signal is received from the game control means, that is, under the control of the game control means, the sub-side power supply stop is a process for ending the control. It can be configured to perform temporal processing. Therefore, similarly to the payout control means, it is possible to ensure that the command can be received without being missed, and to avoid inconvenience in control continuity between when the power supply is stopped and when the power supply is restored. can do.

【0273】また、上述した各実施の形態では、待機状
態として無限ループを用いたが、これに限らず制御プロ
グラムの電力供給停止時処理の最後に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 processing 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.

【0274】また、上述した各実施の形態において、R
AMにバックアップ電源を供給する手段は、制御手段
(CPU56、払出制御用CPU371)毎に設けられ
ている構成としてもよい。すなわち、バックアップRA
M領域を含むRAM毎に、バックアップ電源を供給する
手段が設けられていてもよい。また、そのような手段の
数や搭載位置(制御基板上、あるいは電源基板上に搭載
するか否か)は、どのように構成されていてもよい。
In each of the above-mentioned 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.

【0275】実施の形態3.上記の各実施の形態では、
払出制御手段はバックアップRAMを含んでいたが、払
出制御基板37においてRAMが電源バックアップされ
ないように構成される場合にも、本発明を適用すること
ができる。図44は、払出制御基板37においてRAM
が電源バックアップされない場合の構成例を示す概念図
である。図44に示すように、電源基板910に搭載さ
れているバックアップ電源は、主基板31におけるRA
Mのみを電源バックアップする。
Embodiment 3. FIG. In each of the above embodiments,
Although the payout control means includes a backup RAM, the present invention can be applied to a case where the payout control board 37 is configured so that the RAM is not backed up by power. FIG. 44 shows a RAM in the payout control board 37.
FIG. 3 is a conceptual diagram showing a configuration example when the power is not backed up. As shown in FIG. 44, the backup power supply mounted on the power supply board 910 is the RA on the main board 31.
Power up only M.

【0276】また、この実施の形態では、主基板31に
おける遊技制御手段は、払出制御基板37における払出
制御手段と、応答を取りながら払出制御コマンドを送信
する。さらに、払出制御手段から遊技制御手段に対して
もコマンドを送信する。以下、払出制御手段から遊技制
御手段に対するコマンドをレスポンスと呼ぶ。
Further, in this embodiment, the game control means on the main board 31 sends a payout control command while receiving a response from the payout control means on the payout control board 37. Further, the payout control means also sends a command to the game control means. Hereinafter, a command from the payout control means to the game control means is called a response.

【0277】図45は、払出制御基板37に送信される
払出制御コマンドの送信形態を示すタイミング図であ
る。遊技制御手段は、払出制御コマンドを送信するとき
に、図45に示すように、コマンドデータ(MODEデ
ータまたはEXTデータ)を出力ポートに設定し、ST
B信号をオン(ローレベル)にする。払出制御基板37
における払出制御手段は、STB信号がオン状態になっ
たことを検出すると、入力ポートを介してコマンドデー
タを入力するとともに、受信完了を伝えるためにACK
信号をオン(ローレベル)にする。
FIG. 45 is a timing chart showing a transmission form of the payout control command transmitted to the payout control board 37. When transmitting the payout control command, the game control means sets the command data (MODE data or EXT data) to the output port as shown in FIG. 45, and ST
The B signal is turned on (low level). Discharge control board 37
When detecting that the STB signal has been turned on, the payout control means in (1) inputs command data through the input port and sends an ACK to notify the completion of reception.
Turn the signal on (low level).

【0278】遊技制御手段は、ACK信号がオン状態に
なったことを確認したら、STB信号をオフにする。払
出制御手段は、STB信号がオフ状態になったことを確
認したら、ACK信号をオフにする。以上のようにし
て、1バイトのコマンドデータの送受信が実現される。
なお、2バイト構成の払出制御コマンドの2バイト目
も、1バイト目と同様に送受信される。
After confirming that the ACK signal has been turned on, the game control means turns off the STB signal. After confirming that the STB signal has been turned off, the payout control means turns off the ACK signal. As described above, transmission / reception of 1-byte command data is realized.
The second byte of the payout control command having a 2-byte structure is also transmitted / received in the same manner as the first byte.

【0279】この実施の形態では、図45に示すような
形態で払出制御コマンドが送受信されるが、図45に示
された形態は一例であって、払出制御手段に向けてコマ
ンドデータが送信され、払出制御手段がコマンドデータ
を受信したことを示す応答としての情報を遊技制御手段
に対して送信するのであれば、すなわち双方向通信によ
ってコマンドデータを送受信するのであれば、いかなる
形態で払出制御コマンドが送受信されてもよい。例え
ば、ACK信号に代えて受信完了を示すコマンドを遊技
制御手段に送信するようにしてもよい。また、この実施
の形態では、図20に示された払出制御コマンドを用い
るのでコマンドデータは2バイト構成であるが、1バイ
ト構成でも3バイト以上の構成でもよいし、パラレル送
受信(この例では8ビットパラレル)に限らず、シリア
ル送受信によってもよい。
In this embodiment, the payout control command is transmitted and received in the form as shown in FIG. 45, but the form shown in FIG. 45 is an example, and the command data is sent to the payout control means. If the payout control means transmits information as a response indicating that the command data has been received to the game control means, that is, if the command data is transmitted and received by bidirectional communication, the payout control command in any form May be transmitted and received. For example, instead of the ACK signal, a command indicating completion of reception may be transmitted to the game control means. Further, in this embodiment, since the payout control command shown in FIG. 20 is used, the command data has a 2-byte structure. However, the command data may have a 1-byte structure or a 3-byte or more structure, or parallel transmission / reception (8 Not limited to (bit parallel), serial transmission / reception may be used.

【0280】図46は、図45に示す形態で払出制御コ
マンドを送信する場合の遊技制御手段が実行するコマン
ド送信処理(コマンド送信ルーチン)を示すフローチャ
ートである。コマンド送信ルーチンにおいて、遊技制御
手段におけるCPU56は、出力先として指定されてい
る出力ポート(払出制御コマンドのコマンドデータを出
力する出力ポート)に、出力データを設定する(ステッ
プS651)。そして、STB信号をオンする(ステッ
プS652)。
FIG. 46 is a flow chart showing the command transmission processing (command transmission routine) executed by the game control means when the payout control command is transmitted in the form shown in FIG. In the command transmission routine, the CPU 56 in the game control means sets the output data to the output port designated as the output destination (the output port that outputs the command data of the payout control command) (step S651). Then, the STB signal is turned on (step S652).

【0281】次いで、ACK信号がオン状態になるのを
監視するための監視回数カウンタにMをセットする(ス
テップS653)。Mの値は、払出制御手段がSTB信
号に応答してACK信号をオンするまでの処理時間に余
裕を持たせた値に相当する。そして、監視回数カウンタ
の値をデクリメントしつつACK信号の状態を確認する
(ステップS654,S655)。
Then, M is set to the monitoring number counter for monitoring that the ACK signal is turned on (step S653). The value of M corresponds to a value with a margin in the processing time until the payout control means turns on the ACK signal in response to the STB signal. Then, the state of the ACK signal is confirmed while decrementing the value of the monitoring number counter (steps S654 and S655).

【0282】ACK信号がオン状態になる前に監視回数
カウンタの値が0になったら(ステップS656)、戻
りコードとして「異常」を示す値をセットして(ステッ
プS657)、処理を終了する。なお、戻りコードと
は、コマンド送信ルーチンを呼び出す側で異常監視を行
っている場合の異常/正常を示すデータとして用いられ
る。
If the value of the monitoring number counter becomes 0 before the ACK signal is turned on (step S656), a value indicating "abnormal" is set as the return code (step S657), and the process is terminated. The return code is used as data indicating abnormality / normality when abnormality is monitored on the side that calls the command transmission routine.

【0283】監視回数カウンタの値が0になる前にAC
K信号がオン状態になったら、STB信号をオフする
(ステップS661)。そして、ACK信号がオフ状態
になるのを監視するための監視回数カウンタにM(ステ
ップS653で用いられる値と異なっていてもよい)を
セットする(ステップS662)。次いで、監視回数カ
ウンタの値をデクリメントしつつACK信号の状態を確
認する(ステップS634,S664)。ACK信号が
オフ状態になる前に監視回数カウンタの値が0になった
ら(ステップS665)、戻りコードとして「異常」を
示す値をセットして(ステップS666)、処理を終了
する。監視回数カウンタの値が0になる前にACK信号
がオフ状態になったら、戻りコードとして「正常」を示
す値をセットして(ステップS667)、処理を終了す
る。
Before the value of the monitoring counter reaches 0, AC
When the K signal is turned on, the STB signal is turned off (step S661). Then, M (which may be different from the value used in step S653) is set in the monitoring number counter for monitoring that the ACK signal is turned off (step S662). Then, the state of the ACK signal is confirmed while decrementing the value of the monitoring counter (steps S634 and S664). If the value of the monitoring number counter becomes 0 before the ACK signal is turned off (step S665), a value indicating "abnormal" is set as the return code (step S666), and the process is ended. If the ACK signal is turned off before the value of the monitoring number counter becomes 0, a value indicating "normal" is set as the return code (step S667), and the process ends.

【0284】以上のようなコマンド送信ルーチンによっ
て、図45に示された1バイト分のコマンドデータの送
受信が完了する。なお、図22に示された第1の実施の
形態でのコマンド送信処理と同様に、コマンド送信ルー
チンが実行されているときにはコマンド送信中フラグが
セット状態とされ、コマンド送信ルーチンの最後で電源
断フラグの監視(ステップS371)が行われるのであ
るが、図46では記載省略されている。
By the command transmission routine as described above, the transmission / reception of the command data for 1 byte shown in FIG. 45 is completed. Note that, similar to the command transmission process in the first embodiment shown in FIG. 22, the command transmission flag is set when the command transmission routine is being executed, and the power is turned off at the end of the command transmission routine. Although the flag is monitored (step S371), it is omitted in FIG.

【0285】遊技制御手段から出力されるSTB信号
は、払出制御基板37において、払出制御用CPU37
1の割込端子に入力される。そして、払出制御手段は、
割込処理によってSTB信号が入力されたことを認識す
る。図47は、STB信号にもとづいて発生する割込に
よって起動されるコマンド受信割込処理を示すフローチ
ャートである。コマンド受信割込処理において、払出制
御用CPU371は、コマンド受信フラグをセットする
(ステップS452)。
The STB signal output from the game control means is, in the payout control board 37, the payout control CPU 37.
Input to 1 interrupt terminal. And the payout control means
It is recognized that the STB signal has been input by the interrupt processing. FIG. 47 is a flowchart showing a command reception interrupt process activated by an interrupt generated based on the STB signal. In the command reception interrupt process, the payout control CPU 371 sets a command reception flag (step S452).

【0286】図48は、コマンド受信処理を示すフロー
チャートである。図45に示された形態でコマンド送受
信が行われる場合には、図29に示されたメイン処理に
おける払出制御処理(ステップS752〜S760)に
コマンド受信処理が挿入される。コマンド受信割込処理
において、払出制御用CPU371は、コマンド受信フ
ラグがセットされているか否か確認する(ステップS4
71)。セットされていなければ処理を終了する。コマ
ンド受信フラグがセットされている場合には、コマンド
受信フラグをリセットし(ステップS471)、入力ポ
ートを介してSTB信号が確かにオン状態であるか否か
確認する(ステップS473)。STB信号がオン状態
でなければ処理を終了する。
FIG. 48 is a flow chart showing the command receiving process. When the command transmission / reception is performed in the form shown in FIG. 45, the command reception process is inserted into the payout control process (steps S752 to S760) in the main process shown in FIG. In the command reception interrupt process, the payout control CPU 371 confirms whether or not the command reception flag is set (step S4).
71). If not set, the process ends. If the command reception flag is set, the command reception flag is reset (step S471), and it is confirmed whether the STB signal is indeed in the ON state via the input port (step S473). If the STB signal is not on, the process ends.

【0287】STB信号がオン状態であれば、入力ポー
トを介して払出制御コマンド(具体的には2バイトのコ
マンドデータのうちの1バイト)を入力し、RAMに形
成されているコマンド受信バッファに格納する(ステッ
プS474)。そして、ACK信号をオン状態にする
(ステップS475)。次いで、STB信号がオフ状態
になったら(ステップS476)、ACK信号をオフ状
態にする(ステップS477)。
If the STB signal is in the ON state, a payout control command (specifically, 1 byte out of 2 bytes of command data) is input through the input port to the command receiving buffer formed in the RAM. It is stored (step S474). Then, the ACK signal is turned on (step S475). Next, when the STB signal is turned off (step S476), the ACK signal is turned off (step S477).

【0288】以上のような処理によって、図45に示さ
れた制御コマンド送受信形態が実現され、受信した払出
制御コマンドが受信バッファに格納される。なお、この
実施の形態では、払出制御コマンドは2バイト構成であ
るから、実際には、2回STB信号にもとづく割込が発
生して、ステップS472〜S477の処理が2回実行
されると、1つの払出制御コマンドがコマンド受信バッ
ファに格納されたことになる。また、この実施の形態で
は、コマンド受信割込処理ではコマンド受信フラグのセ
ットのみがなされ、受信処理は割込処理外のコマンド受
信処理で行われたが、コマンド受信割込において、コマ
ンド受信処理も行うように構成してもよい。
The control command transmission / reception mode shown in FIG. 45 is realized by the above processing, and the received payout control command is stored in the reception buffer. In this embodiment, since the payout control command has a 2-byte structure, in reality, if an interrupt based on the STB signal occurs twice and the processes of steps S472 to S477 are executed twice, This means that one payout control command is stored in the command reception buffer. Further, in this embodiment, only the command reception flag is set in the command reception interrupt process, and the reception process is performed by the command reception process other than the interrupt process, but the command reception process is also performed in the command reception interrupt. It may be configured to do so.

【0289】この実施の形態では、電源断信号やその他
の払出制御コマンドは、図45に示された送受信形態
で、主基板31から払出制御基板37に対して送信され
る。
In this embodiment, the power-off signal and other payout control commands are transmitted from the main board 31 to the payout control board 37 in the transmission / reception mode shown in FIG.

【0290】さらに、図44に示されたように、払出制
御手段から遊技制御手段に対してレスポンスを送信する
ことができる。レスポンスの送受信の仕方は図45〜図
48に示された払出制御コマンドの送受信の場合と同様
に実現することができる。すなわち、CPU56は、割
込処理によって払出制御基板37からSTB信号(ST
BB信号とする。)が入力されたことを認識でき、AC
K信号(ACKB信号とする。)を払出制御基板37に
対して返送する。
Further, as shown in FIG. 44, the payout control means can send a response to the game control means. The method of transmitting / receiving the response can be realized in the same manner as the case of transmitting / receiving the payout control command shown in FIGS. 45 to 48. That is, the CPU 56 causes the payout control board 37 to output the STB signal (ST
The BB signal. ) Is recognized, AC
The K signal (referred to as the ACKB signal) is returned to the payout control board 37.

【0291】この実施の形態では、払出制御手段は、バ
ックアップRAMを有していないので、例えば、主基板
31から電源断信号が入力されたことにもとづいて実行
される電力供給停止時処理(制御を終結させるための処
理)は、払出制御手段は、未払出の球貸し個数(図32
に示された貸し球個数記憶:ただし、電源バックアップ
されていない)をレスポンスとして主基板31に送信す
る処理等を含む処理となる。遊技制御手段は、受信した
レスポンスに含まれる未払出の球貸し個数をバックアッ
プRAMに格納する。また、遊技制御手段は、遊技状態
復旧処理において、バックアップRAMに未払出の球貸
し個数が保存されていることを確認したら、未払出の球
貸し個数を払出制御コマンドによって払出制御基板37
に対して送信する。払出制御手段は、受信した払出制御
コマンドに含まれる未払出の球貸し個数を貸し球個数記
憶に格納する。
In this embodiment, the payout control means does not have a backup RAM. Therefore, for example, the power supply stop process (control) executed based on the input of the power-off signal from the main board 31. 32), the payout control means sets the number of unpaid balls to be rented (see FIG. 32).
The storage of the number of rented balls shown in (: No power backup) is sent to the main board 31 as a response. The game control means stores the unpaid ball lending number included in the received response in the backup RAM. Further, the game control means, in the game state recovery processing, when it is confirmed that the number of unpaid balls to be rented is stored in the backup RAM, the number of unpaid balls to be lent is paid out by the payout control command 37
Send to. The payout control means stores the unpaid number of lent balls included in the received payout control command in the lent ball number storage.

【0292】従って、主基板31から電源断信号が入力
されたことにもとづいて実行される未払出の球貸し個数
をレスポンスとして主基板31に送信する処理は、制御
状態を復旧させるために必要なデータを保存するための
サブ側電力供給停止時処理に相当する。ただし、保存先
は遊技制御手段が有するバックアップRAMである。な
お、未払出の球貸し個数を示すレスポンスや払出制御コ
マンドは、図20に示された払出制御コマンドに追加さ
れる。例えば、未払出の球貸し個数を示す払出制御コマ
ンドおよびレスポンスとして、F2XX(H)を追加す
る。
Therefore, the processing of transmitting the unpaid ball lending number to the main board 31 as a response, which is executed based on the input of the power-off signal from the main board 31, is necessary for restoring the control state. This corresponds to the sub power supply stop processing for saving data. However, the save destination is the backup RAM included in the game control means. The response indicating the number of unpaid balls and the payout control command are added to the payout control command shown in FIG. For example, F2XX (H) is added as a payout control command and response indicating the number of unpaid balls to be lent.

【0293】なお、この実施の形態では、遊技制御手段
は、電源基板910から電源断信号が入力されたときに
払出制御コマンドの送信中であった場合には、送信を中
断してもよい。払出制御手段はバックアップRAMを有
していないので、電力供給が停止すると受信したコマン
ドが消滅してしまうからである。そして、遊技制御手段
は、電力供給が復旧すると、電力供給停止時に送信中で
あったコマンドを最初から送り直す。
In this embodiment, the game control means may interrupt the transmission when the payout control command is being transmitted when the power-off signal is input from the power supply board 910. This is because the payout control means does not have a backup RAM, so that the received command disappears when the power supply is stopped. Then, when the power supply is restored, the game control means resends the command that was being transmitted when the power supply was stopped.

【0294】また、電源断信号は、主基板31から払出
制御基板37に対して払出制御コマンド(具体的には電
源断コマンド)として送信されるように構成してもよい
が、第1の実施の形態と同様に、1本の信号として主基
板31から送信され、払出制御用CPU371のマスク
不能割込端子に入力されるようにしてもよい。
The power-off signal may be transmitted as a payout control command (specifically, a power-off command) from the main board 31 to the payout control board 37, but the first embodiment is also possible. In the same manner as in the above embodiment, one signal may be transmitted from the main board 31 and input to the non-maskable interrupt terminal of the payout control CPU 371.

【0295】上述した各実施の形態では、賞球カウント
スイッチ301Aに対する電源基板910からの電力供
給は、主基板31を介してなされるが、払出制御基板3
7を介してなされるようにしてもよい。また、電源基板
910から直接電力供給される構成とされていてもよ
い。
In each of the above-described 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 the payout control board 3
It may be done via 7. Further, the power may be directly supplied from the power supply board 910.

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

【0297】また、上述した各実施の形態では、球貸し
カウントスイッチ301Bの検出信号は、払出制御手段
(払出制御基板37が備える払出制御用CPU371)
にのみ入力される構成としていたが、遊技制御手段(主
基板31が備えるCPU56)に入力される構成として
もよく、払出制御手段および遊技制御手段の双方に入力
される構成としてもよい。そして、遊技制御手段が、遊
技制御処理(具体的には上述したステップS21のスイ
ッチ処理)および電力供給停止時処理において、球貸し
カウントスイッチ301Bの検出信号の入力処理(球貸
しカウントスイッチ検出処理)を実行するように構成さ
れていてもよい。この場合、遊技制御手段のRAM55
の電源バックアップ領域に、貸し球の未払出数を示すデ
ータを格納するバッファ(貸し球数格納バッファ)を設
けるようにし、電力供給停止時処理で、賞球カウントス
イッチ301Aの検出信号の入力処理(賞球カウントス
イッチ検出処理)と同様の処理を、球貸しカウントスイ
ッチ検出処理として実行するようにすればよい。また、
遊技制御処理において、上述した賞球個数減算処理(図
34参照)と同様の処理を、貸し球個数の減算処理とし
て実行するようにすればよい。そのように構成する場合
には、遊技制御手段が、払出制御手段におけるプリペイ
ドカードユニット50との信号のやりとりに関する処理
を実行する機能を備えるようにして、払出制御コマンド
を用いて貸出要求があった貸し球の数に関する情報を払
出制御手段に向けて送信する処理を行うようにすればよ
い。そして、そのように構成する場合には、払出制御手
段が実行する制御を終結させるための処理としてのサブ
側電力供給停止時処理は、主として、球払出装置97等
の電気部品の駆動を停止させる処理となる。
In each of the above-mentioned 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 inputs the detection signal of the ball lending count switch 301B (ball lending count switch detection process) in the game control process (specifically, the switch process of step S21 described above) and the power supply stop process. May be configured to perform. In this case, RAM55 of game control means
A buffer for storing data indicating the number of unpaid spheres (loan sphere number storage buffer) is provided in the power supply backup area of, and the process of inputting the detection signal of the prize ball count switch 301A is performed during the power supply stop process ( A process similar to the prize ball count switch detection process) may be executed as a ball lending count switch detection process. Also,
In the game control process, the same process as the award ball number subtraction process (see FIG. 34) described above may be executed as a subtraction process of the number of lent balls. In such a 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 payout control means, and there is a lending request using the payout control command. It suffices to perform a process of transmitting information regarding the number of lent balls to the payout control means. Then, in the case of such a configuration, the sub-side power supply stop time process as a process for ending the control executed by the payout control means mainly stops the driving of electric components such as the ball payout device 97. It becomes processing.

【0298】そのように構成すれば、遊技制御手段にて
貸し球の個数管理を実行することができるようになる。
特に球貸しカウントスイッチ301Bの検出信号を払出
制御手段および遊技制御手段の双方に入力する構成とし
た場合には、遊技制御手段と払出制御手段双方で貸し球
の個数管理を実行することができるようになり、貸し球
の個数管理をより正確に行うことが可能となる。
With this arrangement, the game control means can manage the number of lent balls.
In particular, when the detection signal of the ball lending count switch 301B is configured to be 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 loan balls. Therefore, it becomes possible to manage the number of lent balls more accurately.

【0299】また、上記の各実施の形態では、電源監視
手段(例えば電源監視用IC902)は、電源電圧が所
定の値(例えば22V)となった場合に電源断信号を出
力する構成としているが、例えば、交流電源(例えばA
C24V)に関連する交流波をデジタル変換したデジタ
ル信号を監視し、そのデジタル信号が所定期間途切れた
場合に電源断信号を出力する構成としてもよい。
In each of the above-mentioned embodiments, the power supply monitoring means (eg, power supply monitoring IC 902) outputs the power-off signal when the power supply voltage reaches a predetermined value (eg, 22V). , For example, AC power supply (eg 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.

【0300】また、上記の各実施の形態では、電源監視
手段(例えば電源監視用IC902)が、電源電圧が所
定の値(例えば22V)となったことを検出した場合に
電源断時処理が実行され、さらに電源電圧が所定の値
(例えば9V)となったことをシステムリセット手段
(例えばシステムリセット回路65)が検出した場合に
システムリセットされる構成としていたが、電源断時処
理を開始したあと所定期間の経過後に、自動的にシステ
ムリセットされるようにしてもよい。このように構成す
れば、電源電圧が所定の値(例えば22V)となったこ
とが電源監視手段によって検出された場合には、その後
システムリセット手段による検出がなされなかった場合
であっても、確実にシステムリセットすることができる
ようになる。
Further, in each of the above embodiments, the power-off processing is executed when the 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, 22V). The system is reset when the system reset means (for example, the system reset circuit 65) detects that the power supply voltage reaches a predetermined value (for example, 9 V). However, after the power-off processing is started, The system may be automatically reset after a lapse of a predetermined period. According to this structure, when the power supply monitoring means detects that the power supply voltage has reached a predetermined value (for example, 22V), the system reset means does not detect the power supply voltage thereafter. You will be able to reset the system.

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

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

【0303】[0303]

【発明の効果】以上のように、請求項1記載の発明で
は、遊技機を、遊技制御手段が、電源監視手段からの検
出信号に応じて、制御状態を復旧させるために必要なデ
ータを変動データ記憶手段に保存するための電力供給停
止時処理を実行するとともに電力の供給停止に関わる検
出条件が成立したことを示す条件成立信号を電気部品制
御手段に送信し、電気部品制御手段が、遊技制御手段か
ら条件成立信号を受信したことを条件に、制御を終結さ
せるためのサブ側電力供給停止時処理を実行するように
構成したので、遊技機への電力供給が停止する際に、遊
技制御手段の管理の元で電気部品制御手段に制御を終結
させるための処理を実行させることができ、電力供給の
停止時と電力供給の復旧時とで制御の連続性に不都合を
生じさせないようにすることができる。
As described above, according to the first aspect of the invention, in the gaming machine, the game control means changes the data necessary for restoring the control state according to the detection signal from the power supply monitoring means. The power supply stop processing for saving in the data storage means is executed, and a condition satisfaction signal indicating that the detection condition related to the power supply stop is satisfied is transmitted to the electric component control means, and the electric component control means plays the game. Since the sub-side power supply stop process for terminating the control is executed on condition that the condition satisfaction signal is received from the control means, when the power supply to the gaming machine is stopped, the game control is performed. It is possible to cause the electric component control means to execute a process for ending the control under the control of the means, so as not to cause an inconvenience in the continuity of the control when the power supply is stopped and when the power supply is restored. Rukoto can.

【0304】請求項2記載の発明では、電気部品制御手
段が、サブ側電力供給停止時処理にて、電気部品の駆動
を停止させる処理を行うように構成されているので、電
力供給が停止するときに電気部品が誤動作してしまうよ
うなことは防止される。
According to the second aspect of the present invention, since the electric component control means is configured to perform the process of stopping the driving of the electric component in the sub-side electric power supply stop process, the electric power supply is stopped. Occasionally, the electrical components are prevented from malfunctioning.

【0305】請求項3記載の発明では、遊技制御手段
が、電源監視手段による検出信号が出力されたにもかか
わらず、遊技機への電力供給が停止しない場合に、変動
データ記憶手段の記憶内容にもとづいて制御状態を電力
供給停止前の状態に復帰させる復旧処理を実行するよう
に構成されているので、ごく短時間で復旧する電源の瞬
断等が生じても制御に支障を来すことがない。
According to the third aspect of the invention, when the game control means outputs the detection signal by the power source monitoring means, but the power supply to the gaming machine is not stopped, the stored contents of the fluctuation data storage means Based on this, it is configured to execute the restoration process to restore the control state to the state before the power supply was stopped.Therefore, even if there is a momentary interruption of the power supply that restores in a very short time, the control will be hindered. There is no.

【0306】請求項4記載の発明では、電気部品制御手
段が、遊技機への電力供給が停止しても所定期間は記憶
内容を保持することが可能なサブ側変動データ記憶手段
を備え、サブ側電力供給停止時処理にて、制御状態を復
旧させるために必要なデータをサブ側変動データ記憶手
段に保存するための処理を行うように構成されているの
で、電気部品制御手段においても電力供給が復旧したと
きに容易に制御状態を電力供給停止前の状態に戻すこと
ができる。
According to the fourth aspect of the invention, the electric component control means is provided with sub-side fluctuation data storage means capable of holding the stored contents for a predetermined period even if the power supply to the gaming machine is stopped. Since the processing for storing the data necessary for restoring the control state in the sub-side fluctuation data storage means is performed in the side power supply stop processing, the electric component control means also supplies power. When the power is restored, the control state can be easily returned to the state before the power supply was stopped.

【0307】請求項5記載の発明では、サブ側変動デー
タ記憶手段が遊技制御手段から受信したコマンドを特定
するデータを記憶可能であり、遊技制御手段が、コマン
ド送信手段によるコマンドの送信中に電源監視手段から
の検出信号を受けた場合には、コマンドの送信終了後に
電気部品制御手段に対して条件成立信号を送信するよう
に構成されているので、コマンド送信途中で送信が中断
されることはなく、電気部品制御手段において遊技制御
手段からのコマンドの取りこぼしを確実に防止すること
ができる。
In the invention of claim 5, the sub-side fluctuation data storage means can store the data for specifying the command received from the game control means, and the game control means supplies the power during the command transmission by the command transmission means. When the detection signal from the monitoring means is received, the condition establishment signal is transmitted to the electric component control means after the command transmission is completed, so that the transmission is not interrupted during the command transmission. Without, it is possible to reliably prevent the electric parts control means from missing the command from the game control means.

【0308】請求項6記載の発明では、遊技制御手段
が、コマンド送信手段によるコマンドの送信中に電源監
視手段からの検出信号を受けた場合には、コマンドの送
信終了後に電力供給停止時処理を実行し、電力供給停止
時処理にて条件成立信号を送信するように構成されてい
るので、コマンド送信が確実に終了し、電気部品制御手
段において遊技制御手段からのコマンドの取りこぼしを
確実に防止することができる。
In the invention according to claim 6, when the game control means receives the detection signal from the power source monitoring means during the command transmission by the command transmitting means, the power supply stop processing is performed after the command transmission is completed. Since it is configured to execute and transmit the condition satisfaction signal in the power supply stop process, the command transmission is surely ended, and the electric component control means is surely prevented from missing the command from the game control means. be able to.

【0309】請求項7記載の発明では、遊技制御手段か
らの条件成立信号がマイクロコンピュータのマスク不能
割込端子に入力され、電気部品制御手段が、マスク不能
割込処理でサブ側電力供給停止時処理を実行するように
構成されているので、電力供給が停止するときに早めに
サブ側電力供給停止時処理を実行開始することができ
る。
According to the seventh aspect of the invention, the condition satisfaction signal from the game control means is input to the non-maskable interrupt terminal of the microcomputer, and the electric component control means stops the power supply on the sub side by the non-maskable interrupt processing. Since the processing is executed, the sub-side power supply stop processing can be started earlier when the power supply is stopped.

【図面の簡単な説明】[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 block diagram showing a circuit configuration example of a game control board (main board).

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

【図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】 払出制御用CPU周りの一構成例を示すブ
ロック図である。
FIG. 26 is a block diagram showing a configuration example around a payout control CPU.

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

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

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

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

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

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

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

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

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

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

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

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

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

【図40】 第1の実施の形態の概要を示す概念図であ
る。
FIG. 40 is a conceptual diagram showing an outline of the first embodiment.

【図41】 電源基板から電源断信号が出力された場合
の遊技制御手段および払出制御手段の動作を示すタイミ
ング図である。
FIG. 41 is a timing chart showing the operations of the game control means and the payout control means when a power-off signal is output from the power supply board.

【図42】 第2の実施の形態の概要を示す概念図であ
る。
FIG. 42 is a conceptual diagram showing an outline of the second embodiment.

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

【図44】 第3の実施の形態の概要を示す概念図であ
る。
FIG. 44 is a conceptual diagram showing the outline of the third embodiment.

【図45】 払出制御コマンドの送信形態を示すタイミ
ング図である。
FIG. 45 is a timing diagram showing a transmission form of a payout control command.

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

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

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

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

1 パチンコ遊技機 31 遊技制御基板(主基板) 37 払出制御基板 56 CPU 97 球払出装置 301A 賞球カウントスイッチ 301B 球貸しカウントスイッチ 371 払出制御用CPU 910 電源基板 902 電源監視用IC(電源監視手段) 1 Pachinko machine 31 Game control board (main board) 37 Discharge control board 56 CPU 97 Ball dispensing device 301A prize ball count switch 301B ball lending count switch 371 CPU for payout control 910 Power board 902 Power supply monitoring IC (power supply monitoring means)

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 遊技者が所定の遊技を行うことが可能な
遊技機であって、 遊技の進行を制御する遊技制御手段と、 遊技機に設けられた電気部品を制御するための電気部品
制御手段と、 遊技機で用いられる所定の電源の状態を監視して、遊技
機への電力の供給停止に関わる検出条件が成立した場合
に検出信号を出力する電源監視手段とを備え、 前記遊技制御手段は、 遊技機への電力供給が停止しても所定期間は記憶内容を
保持することが可能な変動データ記憶手段を備え、 前記電源監視手段からの検出信号に応じて、制御状態を
復旧させるために必要なデータを前記変動データ記憶手
段に保存するための電力供給停止時処理を実行するとと
もに、電力の供給停止に関わる検出条件が成立したこと
を示す条件成立信号を前記電気部品制御手段に送信し、 前記電気部品制御手段は、 前記遊技制御手段から前記条件成立信号を受信したこと
を条件に、制御を終結させるための処理としてのサブ側
電力供給停止時処理を実行することを特徴とする遊技
機。
1. A game machine that allows a player to play a predetermined game, and game control means for controlling progress of the game, and electric part control for controlling electric parts provided in the game machine. Means, and a power supply monitoring means for monitoring a state of a predetermined power source used in the gaming machine and outputting a detection signal when a detection condition relating to stop of supply of electric power to the gaming machine is satisfied, the game control The means includes 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 restores the control state in response to a detection signal from the power supply monitoring means. In order to save the data necessary for this in the fluctuation data storage means, a power supply stop time process is executed, and a condition satisfaction signal indicating that the detection condition related to the power supply stop is satisfied is sent to the electric component control means. And transmitting the electric component control means, on the condition that the condition satisfaction signal is received from the game control means, executes a sub-side power supply stop time process as a process for ending the control, A gaming machine to do.
【請求項2】 電気部品制御手段は、サブ側電力供給停
止時処理にて、電気部品の駆動を停止させる処理を行う
請求項1記載の遊技機。
2. The gaming machine according to claim 1, wherein the electric component control means performs a process of stopping the driving of the electric component in the sub-side power supply stop process.
【請求項3】 遊技制御手段は、電源監視手段による検
出信号が出力されたにもかかわらず、遊技機への電力供
給が停止しない場合に、変動データ記憶手段の記憶内容
にもとづいて制御状態を電力供給停止前の状態に復帰さ
せる復旧処理を実行する請求項1または請求項2記載の
遊技機。
3. The game control means sets the control state based on the stored contents of the fluctuation data storage means when the power supply to the gaming machine is not stopped even though the detection signal by the power supply monitoring means is output. The gaming machine according to claim 1 or 2, which executes a recovery process for returning to a state before the power supply is stopped.
【請求項4】 電気部品制御手段は、遊技機への電力供
給が停止しても所定期間は記憶内容を保持することが可
能なサブ側変動データ記憶手段を備え、サブ側電力供給
停止時処理にて、制御状態を復旧させるために必要なデ
ータを前記サブ側変動データ記憶手段に保存するための
処理を行う請求項1から請求項3のうちのいずれかに記
載の遊技機。
4. The electric component control means includes sub-side fluctuation data storage means capable of holding the stored contents for a predetermined period even when the power supply to the gaming machine is stopped, and the sub-side power supply stop processing 4. The gaming machine according to any one of claims 1 to 3, wherein processing for storing data necessary for restoring the control state in the sub-side variation data storage means is performed.
【請求項5】 遊技制御手段は、遊技の進行に応じたコ
マンドを電気部品制御手段に送信するコマンド送信手段
を有し、 サブ側変動データ記憶手段は、前記遊技制御手段から受
信したコマンドを特定するデータを記憶可能であり、 前記遊技制御手段は、 前記コマンド送信手段によるコマンドの送信中に電源監
視手段からの検出信号を受けた場合には、当該コマンド
の送信終了後に前記電気部品制御手段に対して条件成立
信号を送信する請求項4記載の遊技機。
5. The game control means has a command transmission means for transmitting a command according to the progress of the game to the electric component control means, and the sub-side fluctuation data storage means specifies the command received from the game control means. When the game control means receives a detection signal from the power supply monitoring means during the command transmission by the command transmission means, the game control means controls the electric component control means after the transmission of the command is completed. The game machine according to claim 4, wherein a condition satisfaction signal is transmitted to the game machine.
【請求項6】 遊技制御手段は、コマンド送信手段によ
るコマンドの送信中に電源監視手段からの検出信号を受
けた場合には、当該コマンドの送信終了後に電力供給停
止時処理を実行し、電力供給停止時処理にて条件成立信
号を送信する請求項5記載の遊技機。
6. The game control means, when receiving the detection signal from the power source monitoring means during the transmission of the command by the command transmitting means, executes the power supply stop time process after the transmission of the command, and supplies the power. The gaming machine according to claim 5, wherein a condition satisfaction signal is transmitted in the stop time process.
【請求項7】 電気部品制御手段はマイクロコンピュー
タを含み、 遊技制御手段からの条件成立信号は、前記マイクロコン
ピュータのマスク不能割込端子に入力され、 前記電気部品制御手段は、マスク不能割込処理でサブ側
電力供給停止時処理を実行する請求項1から請求項6の
うちのいずれかに記載の遊技機。
7. The electric component control means includes a microcomputer, a condition satisfaction signal from the game control means is input to a non-maskable interrupt terminal of the microcomputer, and the electric component control means, non-maskable interrupt processing. 7. The gaming machine according to claim 1, wherein the sub-side power supply stop processing is executed by.
JP2001375075A 2001-12-07 2001-12-07 Game machine Withdrawn JP2003175165A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001375075A JP2003175165A (en) 2001-12-07 2001-12-07 Game machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001375075A JP2003175165A (en) 2001-12-07 2001-12-07 Game machine

Publications (1)

Publication Number Publication Date
JP2003175165A true JP2003175165A (en) 2003-06-24

Family

ID=19183507

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001375075A Withdrawn JP2003175165A (en) 2001-12-07 2001-12-07 Game machine

Country Status (1)

Country Link
JP (1) JP2003175165A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006000293A (en) * 2004-06-16 2006-01-05 Takao:Kk Pinball game machine
JP2006180980A (en) * 2004-12-27 2006-07-13 Sanyo Product Co Ltd Game machine
JP2007014660A (en) * 2005-07-11 2007-01-25 Sanyo Product Co Ltd Game machine
JP2012120551A (en) * 2010-12-04 2012-06-28 Heiwa Corp Game machine
JP2013081506A (en) * 2011-10-06 2013-05-09 Sophia Co Ltd Game machine
JP2015033614A (en) * 2014-10-03 2015-02-19 株式会社平和 Game machine
JP2015097838A (en) * 2015-02-24 2015-05-28 株式会社ソフイア Game machine

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006000293A (en) * 2004-06-16 2006-01-05 Takao:Kk Pinball game machine
JP4734493B2 (en) * 2004-06-16 2011-07-27 株式会社高尾 Bullet ball machine
JP2006180980A (en) * 2004-12-27 2006-07-13 Sanyo Product Co Ltd Game machine
JP2007014660A (en) * 2005-07-11 2007-01-25 Sanyo Product Co Ltd Game machine
JP2012120551A (en) * 2010-12-04 2012-06-28 Heiwa Corp Game machine
JP2013081506A (en) * 2011-10-06 2013-05-09 Sophia Co Ltd Game machine
JP2015033614A (en) * 2014-10-03 2015-02-19 株式会社平和 Game machine
JP2015097838A (en) * 2015-02-24 2015-05-28 株式会社ソフイア Game machine

Similar Documents

Publication Publication Date Title
JP3907926B2 (en) Game machine
JP2003175165A (en) Game machine
JP3857131B2 (en) Game machine
JP3798286B2 (en) Game machine
JP3907929B2 (en) Game machine
JP3676290B2 (en) Game machine
JP3699041B2 (en) Game machine
JP2003169908A (en) Game machine
JP3857133B2 (en) Game machine
JP3621672B2 (en) Game machine
JP3640634B2 (en) Game machine
JP3640636B2 (en) Game machine
JP2003103024A (en) Game machine
JP2003159448A (en) Game machine
JP3699029B2 (en) Game machine
JP3907927B2 (en) Game machine
JP3699042B2 (en) Game machine
JP3640635B2 (en) Game machine
JP2003169905A (en) Game machine
JP3621670B2 (en) Game machine
JP2003111957A (en) Game machine
JP2003225433A (en) Game machine
JP3621671B2 (en) Game machine
JP3699031B2 (en) Game machine
JP3857132B2 (en) Game machine

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041203

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20051202

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20060123

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20080425