JP4850974B2 - Game machine - Google Patents

Game machine Download PDF

Info

Publication number
JP4850974B2
JP4850974B2 JP2011021743A JP2011021743A JP4850974B2 JP 4850974 B2 JP4850974 B2 JP 4850974B2 JP 2011021743 A JP2011021743 A JP 2011021743A JP 2011021743 A JP2011021743 A JP 2011021743A JP 4850974 B2 JP4850974 B2 JP 4850974B2
Authority
JP
Japan
Prior art keywords
command
value
game
power supply
cpu
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP2011021743A
Other languages
Japanese (ja)
Other versions
JP2011083650A (en
Inventor
詔八 鵜川
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 JP2011021743A priority Critical patent/JP4850974B2/en
Publication of JP2011083650A publication Critical patent/JP2011083650A/en
Application granted granted Critical
Publication of JP4850974B2 publication Critical patent/JP4850974B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Description

本発明は、遊技者が所定の遊技を行い、特定の条件の成立に応じて遊技者に所定の遊技価値を付与可能なパチンコ遊技機やスロットマシン等の遊技機に関する。   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 and give a predetermined gaming value to the player in accordance with the establishment of a specific condition.

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

特別図柄を表示する可変表示装置の表示結果があらかじめ定められた特定の表示態様の組合せとなることを、通常、「大当り」という。なお、遊技価値とは、遊技機の遊技領域に設けられた可変入賞球装置の状態が打球が入賞しやすい遊技者にとって有利な状態になることや、遊技者にとって有利な状態となるための権利を発生させたりすることである。   That the display result of the variable display device that displays the special symbol is a combination of a predetermined display mode is usually referred to as “big hit”. Note that the game value is the right that the state of the variable winning ball device provided in the gaming area of the gaming machine is advantageous for a player who is likely to win a ball, or the advantageous state for a player. It is to generate.

大当りが発生すると、例えば、大入賞口が所定回数開放して打球が入賞しやすい大当り遊技状態に移行する。そして、各開放期間において、所定個(例えば10個)の大入賞口への入賞があると大入賞口は閉成する。そして、大入賞口の開放回数は、所定回数(例えば16ラウンド)に固定されている。なお、各開放について開放時間(例えば29.5秒)が決められ、入賞数が所定個に達しなくても開放時間が経過すると大入賞口は閉成する。また、大入賞口が閉成した時点で所定の条件(例えば、大入賞口内に設けられているVゾーンへの入賞)が成立していない場合には、大当り遊技状態は終了する。   When the big hit occurs, for example, the big winning opening is opened a predetermined number of times, and the game shifts to a big hit gaming state where the hit ball is easy to win. And in each open period, if there is a prize for a predetermined number (for example, 10) of the big prize opening, the big prize opening is closed. And 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 even if the number of winnings does not reach a predetermined number, the big winning opening is closed when the opening time elapses. Further, when a predetermined condition (for example, winning in the V zone provided in the big prize opening) is not established at the time when the big prize opening is closed, the big hit gaming state is ended.

そして、遊技球が遊技盤に設けられている入賞口に遊技球が入賞すると、あらかじめ決められている個数の賞球払出が行われる。遊技の進行は主基板に搭載された遊技制御手段によって制御されるので、入賞にもとづく賞球個数は、遊技制御手段によって決定され、景品としての遊技球を払い出す払出機構を制御する払出制御手段に送信される。なお、以下、遊技制御手段およびその他の制御手段を、それぞれ電気部品制御手段と呼ぶことがある。また、電気部品とは、遊技機に設けられている部品(機構部品や回路等)であって、電気的に動作するものである。   When a game ball wins a winning opening provided on the game board, a predetermined number of prize balls are paid out. Since the progress of the game is controlled by the game control means mounted on the main board, the number of prize balls based on the winning is determined by the game control means, and the payout control means for controlling the payout mechanism for paying out the game balls as prizes. Sent to. Hereinafter, the game control means and the other control means may be referred to as electrical component control means, respectively. An electrical component is a component (such as a mechanism component or a circuit) provided in a gaming machine and operates electrically.

遊技機には、遊技制御手段を初めとする種々の電気部品制御手段が搭載されているが、一般に、各電気部品制御手段はマイクロコンピュータで構成される。すなわち、ROM等にプログラムが格納され、制御上一時的に発生するデータや制御進行に伴って変化するデータがRAMに格納される。すると、遊技機に停電等による電源断状態が発生すると、RAM内のデータは失われてしまう。よって、停電等からの復旧時には、最初の状態(例えば、遊技店においてその日最初に遊技機に電源投入されたときの状態)に戻さざるを得ないので、遊技者に不利益がもたらされる可能性がある。例えば、大当り遊技中において電源断が発生し遊技機が最初の状態に戻ってしまうのでは、遊技者は大当りの発生にもとづく利益を享受することができなくなってしまう。   Various electrical component control means including game control means are mounted on the gaming machine, but each electrical component control means is generally constituted by a microcomputer. That is, a program is stored in a ROM or the like, and data temporarily generated for control or data that changes as control proceeds is stored in the RAM. Then, when the power-off state due to a power failure or the like occurs in the gaming machine, the data in the RAM is lost. Therefore, when recovering from a power outage or the like, the player must return to the initial state (for example, the state when the game machine was first turned on at the game store for the first time in the day), which may cause a disadvantage to the player. There is. For example, if a power failure occurs during a big hit game and the gaming machine returns to the initial state, the player cannot enjoy the profit based on the occurrence of the big hit.

そのような事態を回避するには、停電等の不測の電力供給の停止が生じたときに、遊技制御手段において、必要なデータを電源バックアップされたバックアップRAMに保存し、電源が復旧したときに保存されていたデータを復元して遊技状態を復元し遊技を再開させればよい。一般に、バックアップRAMが設けられている場合には、電力供給が停止することを検出する検出回路が設けられ、検出回路からの信号(電源断信号と呼ぶことにする。)を割込信号としてマイクロコンピュータの割込端子に入力し、マイクロコンピュータは、割込によって電力供給の停止を検知して必要なデータをバックアップRAMに保存する処理を実行する。バックアップRAMに保存される必要なデータには遊技状態を復元するための情報が含まれるのであるから、プログラムカウンタの値やレジスタの値等がスタック領域に保存されるのが一般的である。バックアップRAMに必要なデータを保存するための処理は、電力供給の停止に伴う電源電圧の低下時に、電源電圧がマイクロコンピュータが動作可能な電圧にある間に実行され、バックアップRAMに必要なデータを保存するための処理の実行が完了した後、電源電圧は、マイクロコンピュータが動作し得ない電圧にまで低下した後に0になる。   In order to avoid such a situation, when an unexpected power supply stop such as a power failure occurs, the game control means stores necessary data in a backup RAM backed up and when the power is restored. The stored data may be restored to restore the gaming state and resume the game. In general, when a backup RAM is provided, a detection circuit that detects that power supply is stopped is provided, and a signal from the detection circuit (referred to as a power-off signal) is used as an interrupt signal. Input to the interrupt terminal of the computer, the microcomputer detects the stop of the power supply by the interrupt and executes a process of storing necessary data in the backup RAM. Since the necessary data stored in the backup RAM includes information for restoring the game state, the value of the program counter, the value of the register, and the like are generally stored in the stack area. The processing for storing the data necessary for the backup RAM is executed while the power supply voltage is at a voltage at which the microcomputer can operate when the power supply voltage decreases due to the stop of the power supply. After the execution of the process for saving is completed, the power supply voltage becomes 0 after being lowered to a voltage at which the microcomputer cannot operate.

上記のように構成された遊技機において、電力供給が停止する場合に、電源電圧の値が不安定になるので、電源断信号が連続的に発生するおそれがある。電源断信号が連続的に発生すると、マイクロコンピュータに対して連続的に割込が発生するので、必要なデータをバックアップRAMに保存する処理が確実になされなくなってしまう。そのために、電源断信号が連続的に発生することを防止するための手段(具体的には回路等)が検出回路の側に設けられていることもある。   In the gaming machine configured as described above, when the power supply is stopped, the value of the power supply voltage becomes unstable, and thus there is a possibility that the power-off signal is continuously generated. If the power-off signal is continuously generated, the microcomputer is continuously interrupted, so that the process of saving necessary data in the backup RAM cannot be surely performed. Therefore, means (specifically, a circuit or the like) for preventing the power-off signal from being continuously generated may be provided on the detection circuit side.

しかし、電力供給の停止が生ずる訳ではないにも関わらず、検出回路の側からマイクロコンピュータの割込端子に至る信号線において電源断信号が連続的に入力されると、スタック領域のサイズには限界があるにもかかわらず、繰り返し割込処理が実行されることによってスタック領域へのデータ保存が繰り返され、遂にはスタックオーバーフローが生じてしまう。その結果、スタックオーバーフローに起因してRAM領域の内容が破壊されてしまうことによりプログラム暴走が生じたことにもとづいて、ウォッチドッグタイマのタイムアップ等が生じてマイクロコンピュータにリセットがかかり、RAM領域の内容が初期化される。   However, even if the power supply is not stopped, if the power-off signal is continuously input from the detection circuit side to the interrupt terminal of the microcomputer, the size of the stack area is reduced. Despite the limitations, the repeated interruption process repeatedly saves data in the stack area and eventually causes a stack overflow. As a result, program runaway occurs due to the contents of the RAM area being destroyed due to the stack overflow, and the watchdog timer is timed up, and the microcomputer is reset. The contents are initialized.

また、電力供給の停止が生ずる訳ではないにも関わらず、検出回路の側からマイクロコンピュータのリセット端子に至る信号線においてリセット信号が入力されると、強制的にマイクロコンピュータにリセットがかかり、RAM領域の内容が初期化される。   Even if the power supply is not stopped, if a reset signal is input in the signal line from the detection circuit side to the reset terminal of the microcomputer, the microcomputer is forcibly reset, and the RAM The contents of the area are initialized.

上述した大当りを発生させるか否かは、一般に、所定のタイミング(例えば始動入賞の発生時すなわち始動入賞信号の入力時)において、RAM領域に形成された乱数発生用カウンタのカウント値があらかじめ決められた大当り判定値に一致するか否かによって決定される。上述したように、電源断信号が連続的に入力されたりリセット信号が入力されたりすると、システムリセットがかかり、初期化処理でRAMの内容が初期化されるので、大当りを発生させるか否かを決定するための乱数発生用カウンタのカウント値も初期化される(0に戻される。)。すると、カウント値が0から歩進を開始するので、カウント値があらかじめ決められた大当り判定値に一致するタイミングを容易に把握できてしまう。   Whether or not to generate the above-mentioned big hit is generally determined in advance at a predetermined timing (for example, when a start prize is generated, that is, when a start prize signal is input), the count value of a random number generation counter formed in the RAM area is determined in advance. It is determined by whether or not it matches the jackpot determination value. As described above, if a power-off signal is continuously input or a reset signal is input, the system is reset and the contents of the RAM are initialized by the initialization process. The count value of the random number generation counter for determination is also initialized (returned to 0). Then, since the count value starts incrementing from 0, the timing at which the count value matches a predetermined jackpot determination value can be easily grasped.

つまり、不正基板等の不正手段を遊技機に搭載し、不正手段からマイクロコンピュータに対して電源断信号(割込信号)を連続的に入力させたりリセット信号を入力させたりするとともに、乱数発生用カウンタのカウント値が大当り判定値に一致するようなタイミングで、マイクロコンピュータが搭載されている遊技制御基板に対して不正に始動入賞信号を送り込むことによって、不正に大当りを生じさせることが可能になってしまう。   In other words, fraudulent means such as fraudulent boards are mounted on a gaming machine, and a power-off signal (interrupt signal) is continuously input to the microcomputer from the fraudulent means or a reset signal is input, and a random number is generated. By illegally sending a start winning signal to the game control board on which the microcomputer is mounted at a timing at which the count value of the counter coincides with the jackpot determination value, it is possible to cause a jackpot illegally. End up.

また、RAMの全ての領域がバックアップRAMになっている場合、バックアップRAMに供給される電源を不正行為によってオフし、RAMの内容を初期化するような不正行為が行われた場合には、やはり、乱数発生用カウンタのカウント値も初期化される(0に戻される。)。その場合にも、カウント値が0から歩進を開始するので、カウント値があらかじめ決められた大当り判定値に一致するタイミングを容易に把握できてしまう。   In addition, when all areas of the RAM are backup RAMs, if a fraudulent act is performed in which the power supplied to the backup RAM is turned off by fraud and the contents of the RAM are initialized, The count value of the random number generation counter is also initialized (returned to 0). Even in that case, since the count starts from 0, it is possible to easily grasp the timing at which the count value matches the predetermined jackpot determination value.

そこで、本発明は、正に割込信号やリセット信号を送り込む等の不正行為が行われても、そのことを容易に検知することができる遊技機を提供することを目的とする。 The present invention, be made fraud such as feeding the non positively interrupt signal and a reset signal, and an object thereof is to provide a gaming machine which can be easily detected it.

本発明による遊技機は、遊技者が所定の遊技を行い、特定の条件の成立に応じて遊技者に所定の遊技価値を付与可能な遊技機であって、遊技の進行を制御する遊技制御手段(例えばCPU56を含む遊技制御手段)と、遊技制御手段から出力されるコマンドにもとづいて演出装置の制御を行う演出制御手段と、遊技の進行に応じて変動するデータを記憶する変動データ記憶手段(例えばRAM55)と、遊技機への電力供給が停止しても所定期間は変動データ記憶手段の記憶内容を保持することが可能な記憶保持手段(例えばバックアップ電源)と、定電位の電源の出力電圧を監視し検出条件が成立した場合に検出信号(例えば電源断信号)を出力する電源監視手段(例えば電源監視用IC902)と、操作に応じて操作信号を出力する操作手段とを備え、遊技制御手段が、電源監視手段から検出信号出力されたときに、制御状態の復旧に必要なデータを変動データ記憶手段に保持させるための電力供給停止時処理(例えばステップS451〜S499およびステップS171,S172)を実行可能であり、遊技機への電力供給が開始された場合に、操作手段からの操作信号が入力されているときに変動データ記憶手段の記憶内容を初期化し、操作手段からの操作信号が入力されていないときに、所定の条件(例えばステップS7〜S9で判定される条件)の成立にもとづいて、変動データ記憶手段の記憶内容を初期化する初期化処理(例えばステップS183〜S190)と変動データ記憶手段の記憶内容にもとづいて制御状態を復旧する復旧処理(例えばステップS80〜S95)とのうちいずれか一方を実行可能であって、初期化処理実行場合には、該初期化処理の実行を示す初期化報知コマンドを演出制御手段に出力し、演出制御手段は、初期化報知コマンドを入力したことにもとづいて演出装置により初期化処理の実行を示す初期化報知を実行し、初期化報知を実行しているときに遊技制御手段から所定の制御の実行を示すコマンドを受信した場合には当該コマンドを無効にすることを特徴とする。
そのような構成によれば、不正に割込信号やリセット信号を送り込む等の不正行為が行われても、そのことを容易に検知することができる効果がある。
The gaming machine according to the present invention is a gaming machine capable of giving a predetermined gaming value to a player in accordance with the establishment of a specific condition by the player playing a predetermined game , and controlling the progress of the game (For example, game control means including the CPU 56), effect control means for controlling the effect device based on a command output from the game control means, and variation data storage means for storing data that varies in accordance with the progress of the game ( for example RAM 55) and, a storage retaining means capable of retaining stored contents in a predetermined period fluctuation data storage means even if the power supply is stopped to the gaming machine (e.g., a backup power supply), the power of Jo Tokoro potential output voltage as the power supply monitoring means for outputting a detection signal when the monitor detects condition is satisfied (e.g., power-off signal) (for example, the power supply monitoring IC902), Misao which outputs an operation signal in accordance with the operation And means, the game control means, when the detection signal from the power supply monitoring means is outputted, the power supply stop process (e.g. step to make holding the variation data storage means data necessary to recover the control state S451 ˜S499 and steps S171, S172) can be executed, and when the power supply to the gaming machine is started , the stored contents of the variation data storage means are initialized when the operation signal is input from the operation means When the operation signal from the operation means is not input , an initialization process for initializing the stored contents of the variation data storage means based on the establishment of a predetermined condition (for example , the condition determined in steps S7 to S9). Recovery processing (for example, step S80) that recovers the control state based on (for example, steps S183 to S190) and the contents stored in the fluctuation data storage means S95) A capable of executing either one of the, in the case of execution of the initialization process, outputs to effect control means initialization notification command indicating execution of the initialization process, the performance control unit, A command indicating the execution of a predetermined control from the game control means when executing the initialization notification indicating the execution of the initialization process by the effect device based on the input of the initialization notification command and executing the initialization notification If the command is received, the command is invalidated .
According to such a configuration, even if an illegal act such as sending an interrupt signal or a reset signal is performed illegally, this can be easily detected .

パチンコ遊技機を正面からみた正面図である。It is the front view which looked at the pachinko game machine from the front. ガラス扉枠を取り外した状態での遊技盤の前面を示す正面図である。It is a front view which shows the front surface of the game board in the state which removed the glass door frame. 遊技機を裏面から見た背面図である。It is the rear view which looked at the gaming machine from the back. 各種部材が取り付けられた機構板を遊技機背面側から見た背面図である。It is the rear view which looked at the mechanism board to which various members were attached from the game machine back side. 球払出装置の構成例を示す分解斜視図である。It is a disassembled perspective view which shows the structural example of a ball dispensing apparatus. 遊技盤に設置されているスイッチ基板の部分を示す正面図である。It is a front view which shows the part of the switch board installed in the game board. クリアスイッチの構成の一例を示す構成図である。It is a block diagram which shows an example of a structure of a clear switch. 遊技制御基板(主基板)の回路構成例を示すブロック図である。It is a block diagram which shows the circuit structural example of a game control board (main board). 図柄制御基板の回路構成例を示すブロック図である。It is a block diagram which shows the circuit structural example of a symbol control board. ランプ制御基板内の回路構成を示すブロック図である。It is a block diagram which shows the circuit structure in a lamp control board. 音制御基板内の回路構成を示すブロック図である。It is a block diagram which shows the circuit structure in a sound control board. 払出制御基板の回路構成例を示すブロック図である。It is a block diagram which shows the circuit structural example of a payout control board. 電源基板の回路構成例を示すブロック図である。It is a block diagram which shows the circuit structural example of a power supply board. 電源監視および電源バックアップのためのCPU周りの一構成例を示すブロック図である。It is a block diagram which shows one structural example of CPU periphery for a power supply monitoring and a power supply backup. 大当りとするか否かを決定するための乱数を生成するカウンタの初期値をランダムにするための構成例を示すブロック図である。It is a block diagram which shows the structural example for randomizing the initial value of the counter which produces | generates the random number for determining whether it is a big hit. 出力ポートのビット割り当ての一例を示す説明図である。It is explanatory drawing which shows an example of the bit allocation of an output port. 出力ポートのビット割り当ての一例を示す説明図である。It is explanatory drawing which shows an example of the bit allocation of an output port. 入力ポートのビット割り当ての一例を示す説明図である。It is explanatory drawing which shows an example of the bit allocation of an input port. 主基板におけるCPUが実行するメイン処理を示すフローチャートである。It is a flowchart which shows the main process which CPU in a main board | substrate performs. 遊技状態復旧処理を示すフローチャートである。It is a flowchart which shows a game state restoration process. 2msタイマ割込処理を示すフローチャートである。It is a flowchart which shows a 2 ms timer interruption process. 特別図柄プロセス処理を示すフローチャートである。It is a flowchart which shows a special symbol process process. 始動入賞記憶処理を示すフローチャートである。It is a flowchart which shows a start winning memory | storage process. 可変表示の停止図柄を決定する処理およびリーチ種類を決定する処理を示すフローチャートである。It is a flowchart which shows the process which determines the stop symbol of variable display, and the process which determines a reach kind. 大当りとするか否かを決定する処理を示すフローチャートである。It is a flowchart which shows the process which determines whether it is a big hit. 乱数の一例を示す説明図である。It is explanatory drawing which shows an example of a random number. 判定用乱数更新処理を示すフローチャートである。It is a flowchart which shows the random number update process for determination. 判定用乱数更新処理を示すフローチャートである。It is a flowchart which shows the random number update process for determination. 初期値用乱数更新処理を示すフローチャートである。It is a flowchart which shows the random number update process for initial values. 表示用乱数更新処理を示すフローチャートである。It is a flowchart which shows the random number update process for a display. ランダム1を生成するためのカウンタのカウント値の一例を示す説明図である。It is explanatory drawing which shows an example of the count value of the counter for producing | generating random 1. FIG. 制御コマンドのコマンド形態の一例を示す説明図である。It is explanatory drawing which shows an example of the command form of a control command. 制御コマンドを構成する8ビットの制御信号とINT信号との関係を示すタイミング図である。It is a timing diagram showing the relationship between an 8-bit control signal and an INT signal constituting a control command. 表示制御コマンドの内容の一例を示す説明図である。It is explanatory drawing which shows an example of the content of a display control command. ランプ制御コマンドの内容の一例を示す説明図である。It is explanatory drawing which shows an example of the content of a lamp control command. 音制御コマンドの内容の一例を示す説明図である。It is explanatory drawing which shows an example of the content of a sound control command. コマンド送信テーブルの一構成例を示す説明図である。It is explanatory drawing which shows the example of 1 structure of a command transmission table. コマンドデータ2の一構成例および他の構成例を示す説明図である。It is explanatory drawing which shows one structural example of the command data 2, and another structural example. INTデータの一構成例を示す説明図である。It is explanatory drawing which shows the example of 1 structure of INT data. コマンド送信テーブルの一構成例を示す説明図である。It is explanatory drawing which shows the example of 1 structure of a command transmission table. コマンド制御処理を示すフローチャートである。It is a flowchart which shows a command control process. コマンド送信処理ルーチンを示すフローチャートである。It is a flowchart which shows a command transmission process routine. マスク不能割込処理(電力供給停止時処理)を示すフローチャートである。It is a flowchart which shows an unmaskable interruption process (process at the time of an electric power supply stop). マスク不能割込処理(電力供給停止時処理)を示すフローチャートである。It is a flowchart which shows an unmaskable interruption process (process at the time of an electric power supply stop). マスク不能割込処理(電力供給停止時処理)を示すフローチャートである。It is a flowchart which shows an unmaskable interruption process (process at the time of an electric power supply stop). RAMのアドレスマップを示す説明図である。It is explanatory drawing which shows the address map of RAM. チェックサム作成方法の一例を説明するための説明図である。It is explanatory drawing for demonstrating an example of the checksum production method. 遊技機への電力供給停止時の電源低下やNMI信号の様子を示すタイミング図である。It is a timing diagram which shows the mode of the power supply fall and NMI signal at the time of the electric power supply stop to a game machine. 表示制御用CPUが実行するメイン処理を示すフローチャートである。It is a flowchart which shows the main process which CPU for display control performs. 表示制御用CPUが実行するタイマ割込処理を示すフローチャートである。It is a flowchart which shows the timer interruption process which CPU for display control performs. コマンド受信バッファの構成を示す説明図である。It is explanatory drawing which shows the structure of a command reception buffer. コマンド受信割込処理を示すフローチャートである。It is a flowchart which shows a command reception interruption process. コマンド解析処理を示すフローチャートである。It is a flowchart which shows a command analysis process. ランプ制御用CPUが実行するメイン処理を示すフローチャートである。It is a flowchart which shows the main process which CPU for lamp control performs. ランプ制御用CPUが実行するタイマ割込処理を示すフローチャートである。It is a flowchart which shows the timer interruption process which CPU for lamp control performs. 音制御用CPUが実行するメイン処理を示すフローチャートである。It is a flowchart which shows the main process which CPU for sound control performs. 音制御用CPUが実行するタイマ割込処理を示すフローチャートである。It is a flowchart which shows the timer interruption process which CPU for sound control performs. 本発明の他の実施の形態におけるランダム1生成用カウンタの初期値をランダムにするための構成例を示すブロック図である。It is a block diagram which shows the structural example for making the initial value of the random 1 production | generation counter in other embodiment of this invention random. 本発明の他の実施の形態におけるメイン処理を示すフローチャートである。It is a flowchart which shows the main process in other embodiment of this invention. ランダム1を生成するためのカウンタのカウント値の他の例を示す説明図である。It is explanatory drawing which shows the other example of the count value of the counter for producing | generating random 1. FIG. システムリセット回路を利用してウォッチドッグタイマによる監視を行う場合のCPUおよびそれに接続される主要な構成要素を示すブロック図である。FIG. 3 is a block diagram showing a CPU and main components connected thereto when monitoring by a watchdog timer using a system reset circuit.

実施の形態1.
以下、本発明の一実施形態を図面を参照して説明する。まず、遊技機の一例であるパチンコ遊技機の全体の構成について説明する。図1はパチンコ遊技機を正面からみた正面図、図2は遊技盤の前面を示す正面図である。
Embodiment 1 FIG.
Hereinafter, an embodiment of the present invention will be described with reference to the drawings. First, the overall configuration of a pachinko gaming machine that is an example of a gaming machine will be described. FIG. 1 is a front view of a pachinko gaming machine as viewed from the front, and FIG. 2 is a front view showing the front of the game board.

パチンコ遊技機1は、縦長の方形状に形成された外枠(図示せず)と、外枠の内側に開閉可能に取り付けられた遊技枠とで構成される。また、パチンコ遊技機1は、遊技枠に開閉可能に設けられている額縁状に形成されたガラス扉枠2を有する。遊技枠は、外枠に対して開閉自在に設置される前面枠(図示せず)と、機構部品等が取り付けられる機構板と、それらに取り付けられる種々の部品(後述する遊技盤を除く。)とを含む構造体である。   The pachinko gaming machine 1 includes 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 opened and closed. Further, the pachinko gaming machine 1 has a glass door frame 2 formed in a frame shape that is provided in the game frame so as to be opened and closed. 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 mechanism parts and the like are attached, and various parts attached to them (excluding game boards described later). Is a structure including

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

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

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

ゲート32に遊技球が入賞しゲートスイッチ32aで検出されると、普通図柄始動記憶が上限に達していなければ、所定の乱数値が抽出される。そして、普通図柄表示器10において表示状態が変化する可変表示を開始できる状態であれば、普通図柄表示器10の表示の可変表示が開始される。普通図柄表示器10において表示状態が変化する可変表示を開始できる状態でなければ、普通図柄始動記憶の値が1増やされる。普通図柄表示器10の近傍には、普通図柄始動記憶数を表示する4つのLEDによる表示部を有する普通図柄始動記憶表示器41が設けられている。ゲート32への入賞がある毎に、普通図柄始動記憶表示器41は点灯するLEDを1増やす。そして、普通図柄表示器10の可変表示が開始される毎に、点灯するLEDを1減らす。   When a game ball wins the gate 32 and is detected by the gate switch 32a, a predetermined random number value is extracted if the normal symbol start memory has not reached the upper limit. And if it is a state which can start the variable display in which a display state changes in the normal symbol display 10, the variable display of the display of the normal symbol display 10 will be started. If the normal symbol display 10 is not ready to start variable display whose display state changes, the value of the normal symbol start memory is incremented by one. In the vicinity of the normal symbol display 10, a normal symbol start memory display 41 having a display unit with four LEDs for displaying the number of normal symbol start memories is provided. Each time there is a prize at the gate 32, the normal symbol start memory display 41 increases the number of LEDs to be turned on by one. Each time the variable display on the normal symbol display 10 is started, the number of LEDs to be lit is reduced by one.

この実施の形態では、左右のランプ(点灯時に図柄が視認可能になる)が交互に点灯することによって可変表示が行われ、可変表示は所定時間(例えば29秒)継続する。そして、可変表示の終了時に左側のランプが点灯すれば当りとなる。当りとするか否かは、ゲート32に遊技球が入賞したときに抽出された乱数の値が所定の当り判定値と一致したか否かによって決定される。普通図柄表示器10における可変表示の表示結果が当りである場合に、可変入賞球装置15が所定回数、所定時間だけ開状態になって遊技球が入賞しやすい状態になる。すなわち、可変入賞球装置15の状態は、普通図柄の停止図柄が当り図柄である場合に、遊技者にとって不利な状態から有利な状態に変化する。   In this embodiment, the left and right lamps (designs can be visually recognized when lit) are alternately lit to perform variable display, and the variable display continues for a predetermined time (for example, 29 seconds). If the left lamp is turned on at the end of the variable display, it is a win. Whether or not to win is determined by whether or not the value of the random number extracted when the game ball wins the gate 32 matches a predetermined hit determination value. When the display result of the variable display on the normal symbol display 10 is a win, the variable winning ball apparatus 15 is opened for a predetermined number of times for a predetermined time so that the game ball is likely to win. That is, the state of the variable winning ball device 15 changes from a disadvantageous state to a player's advantageous state when the normal symbol is a winning symbol.

さらに、確変状態では、普通図柄表示器10における停止図柄が当り図柄になる確率が高められるとともに、可変入賞球装置15の開放時間と開放回数とのうちの一方または双方が高められ、遊技者にとってさらに有利になる。また、確変状態等の所定の状態では、普通図柄表示器10における可変表示期間(変動時間)が短縮されることによって、遊技者にとってさらに有利になるようにしてもよい。   Further, in the probability variation state, the probability that the stop symbol in the normal symbol display 10 becomes a winning symbol is increased, and one or both of the opening time and the number of times of opening of the variable winning ball device 15 are increased. It becomes even more advantageous. Further, in a predetermined state such as a probability change state, the variable display period (fluctuation time) in the normal symbol display 10 may be shortened, which may be more advantageous for the player.

遊技盤6には、複数の入賞口29,30,33,39が設けられ、遊技球の入賞口29,30,33への入賞は、それぞれ入賞口スイッチ29a,30a,33a,39aによって検出される。遊技領域7の左右周辺には、遊技中に点滅表示される装飾ランプ25が設けられ、下部には、入賞しなかった打球を吸収するアウト口26がある。また、遊技領域7の外側の左右上部には、効果音を発する2つのスピーカ27が設けられている。遊技領域7の外周には、天枠ランプ28a、左枠ランプ28bおよび右枠ランプ28cが設けられている。さらに、遊技領域7における各構造物(大入賞口等)の周囲には装飾LEDが設置されている。天枠ランプ28a、左枠ランプ28bおよび右枠ランプ28cおよび装飾用LEDは、遊技機に設けられている装飾発光体の一例である。   The gaming board 6 is provided with a plurality of winning holes 29, 30, 33, 39, and winning of the game balls to the winning holes 29, 30, 33 is detected by winning hole switches 29a, 30a, 33a, 39a, respectively. The Decorative lamps 25 blinking during the game are provided around the left and right sides of the game area 7, and an outlet 26 for absorbing a hit ball that has not won a prize is provided below. Two speakers 27 that emit sound effects are provided on the left and right upper portions outside the game area 7. A top frame lamp 28a, a left frame lamp 28b, and a right frame lamp 28c are provided on the outer periphery of the game area 7. Further, a decoration LED is installed around each structure (such as a big prize opening) in the game area 7. The top frame lamp 28a, the left frame lamp 28b, the right frame lamp 28c, and the decorative LED are examples of a decorative light emitter provided in the gaming machine.

そして、この例では、左枠ランプ28bの近傍に、賞球残数があるときに点灯する賞球ランプ51が設けられ、天枠ランプ28aの近傍に、補給球が切れたときに点灯する球切れランプ52が設けられている。さらに、図1には、パチンコ遊技機1に隣接して設置され、プリペイドカードが挿入されることによって球貸しを可能にするカードユニット50も示されている。なお、プリペイドカードとしての磁気カードに限らず、ICカード等の他の記録媒体を用いることもできる。記録媒体の形状についても、名刺大の薄型のカード形状に限らず、ICコインなど種々の形状のものを使用することができる。   In this example, a prize ball lamp 51 that is turned on when there is a remaining number of prize balls is provided in the vicinity of the left frame lamp 28b, and a ball that is turned on in the vicinity of the top frame lamp 28a when the supply ball is cut. A cut lamp 52 is provided. Further, FIG. 1 also shows a card unit 50 that is installed adjacent to the pachinko gaming machine 1 and enables lending of a ball by inserting a prepaid card. In addition, not only the magnetic card as a prepaid card but other recording media, such as an IC card, can also be used. The shape of the recording medium is not limited to the thin card shape of a business card, and various shapes such as IC coins can be used.

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

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

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

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

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

図3に示すように、遊技機裏面側では、可変表示装置9を制御する図柄制御基板80を含む可変表示制御ユニット49、遊技制御用マイクロコンピュータ等が搭載された遊技制御基板(主基板)31が設置されている。また、球払出制御を行う払出制御用マイクロコンピュータ等が搭載された払出制御基板37が設置されている。さらに、遊技盤6に設けられている各種装飾LED、特別図柄始動記憶表示器(始動記憶表示器)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 gaming machine, a game control board (main board) 31 on which a variable display control unit 49 including a symbol control board 80 for controlling the variable display device 9, a game control microcomputer, and the like are mounted. Is installed. In addition, a payout control board 37 on which a payout control microcomputer for performing ball payout control is mounted is installed. Further, various decoration LEDs provided on the game board 6, special symbol start memory display (start memory display) 18, normal symbol start memory display 41, decoration lamp 25, ceiling frame lamp provided on the frame side. 28a, a left frame lamp 28b, a right frame lamp 28c, a lamp control board 35 on which lamp control means for controlling the lighting of the prize ball lamp 51 and the out-of-ball lamp 52 are mounted, and a sound control means for controlling sound generation from the speaker 27. An onboard sound control board 70 is also provided. Further, a power supply board 910 and a launch control board 91 are provided as power supply boards on which power supply circuits for generating DC30V, DC21V, DC12V, and DC5V are mounted.

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

さらに、各基板(主基板31や払出制御基板37等)に含まれる変動データ記憶手段(例えば、RAM)内のデータのうち、バックアップ電源等の記憶保持手段によって保持されているバックアップデータをクリアするための初期化操作手段としてのクリアスイッチ921が搭載されたスイッチ基板190が設けられている。スイッチ基板190には、クリアスイッチ921と、主基板31等の他の基板と接続されるコネクタ922が設けられている。   Further, the backup data held by the storage holding means such as a backup power source is cleared from the data in the fluctuation data storage means (for example, RAM) included in each board (main board 31 and payout control board 37 etc.). A switch board 190 on which a clear switch 921 is mounted as an initialization operation means is provided. The switch board 190 is provided with a clear switch 921 and a connector 922 connected to another board such as the main board 31.

貯留タンク38に貯留された遊技球は誘導レール39を通り、図4に示されるように、カーブ樋186を経て賞球ケース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, reach the ball payout device covered with the prize ball case 40A through the curve rod 186. A ball break switch 187 as a game medium break detection means is provided on the upper part of the ball payout device. When the ball break switch 187 detects a ball break, the dispensing operation of the ball dispensing device stops. The ball break switch 187 is a switch for detecting the presence or absence of a game ball in the game ball passage. In the vicinity of the head). When the ball break detection switch 167 detects the shortage of game balls, the game machine is replenished to the game machine from the supply mechanism provided on the gaming machine installation island.

なお、球切れスイッチ187は、球払出装置に至る払出球通路に27〜28個程度の遊技球が存在することを検出できるような位置に係止されている。すなわち、球切れスイッチ187は、賞球の一単位の最大払出量(この実施の形態では15個)および球貸しの一単位の最大払出量(この実施の形態では100円:25個)以上が確保されていることが確認できるような位置に設置されている。   The ball break switch 187 is locked at a position where it can be detected that about 27 to 28 game balls are present in the payout ball passage leading to the ball payout device. That is, the ball break switch 187 has a maximum payout amount per unit of prize balls (15 in this embodiment) and a maximum payout amount per unit of ball lending (100 yen: 25 in this embodiment). It is installed in a position where it can be confirmed that it is secured.

球払出装置から払い出された遊技球は、連絡口45を通ってパチンコ遊技機1の前面に設けられている打球供給皿3に誘導される。連絡口45の側方には、パチンコ遊技機1の前面に設けられている余剰球受皿4に連通する余剰球通路46が形成されている。   The game ball paid out from the ball payout device is guided to the hitting ball supply tray 3 provided on the front surface of the pachinko gaming machine 1 through the connection port 45. A surplus ball passage 46 communicating with the surplus ball receiving tray 4 provided on the front surface of the pachinko gaming machine 1 is formed on the side of the communication port 45.

入賞にもとづく景品としての遊技球や球貸し要求にもとづく遊技球が多数払い出されて打球供給皿3が満杯になり、ついには遊技球が連絡口45に到達した後さらに遊技球が払い出されると、遊技球は、余剰球通路46を経て余剰球受皿4に導かれる。さらに遊技球が払い出されると、感知レバー47が貯留状態検出手段としての満タンスイッチ48を押圧して、貯留状態検出手段としての満タンスイッチ48がオンする。その状態では、球払出装置内の払出モータの回転が停止して球払出装置の動作が停止するとともに発射装置の駆動も停止する。   A large number of game balls as prizes based on winning prizes and game balls based on ball lending requests are paid out and the hitting ball supply tray 3 becomes full, and finally game balls are paid out after the game balls reach the contact port 45. 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 this state, the rotation of the payout motor in the ball payout device stops, the operation of the ball payout device stops, and the drive of the launching device also stops.

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

図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 configuration example of the ball dispensing device 97. In this example, a ball payout device 97 is formed inside three cases 140, 141, 142 as the prize ball case 40A. The upper portions of the cases 140 and 141 are provided with holes 170 and 171 communicating with the lower ball passage of the ball break switch 187, and the game balls flow into the ball dispensing device 97 through the holes 170 and 171.

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

球通路293には遊技球の流下路を切り替えるための振分部材311が設けられている。振分部材311はソレノイド310によって駆動され、賞球払出時には、球通路293における一方の流下路を遊技球が流下するように倒れ、球貸し時には球通路293における他方の流下路を遊技球が流下するように倒れる。なお、払出モータ289およびソレノイド310は、払出制御基板37に搭載されている払出制御用CPUによって制御される。また、払出制御用CPUは、主基板31に搭載されている遊技制御用のCPUからの指令に応じて払出モータ289およびソレノイド310を制御する。   The ball passage 293 is provided with a sorting member 311 for switching the flow path of the game balls. The distribution member 311 is driven by the solenoid 310, and when the prize ball is paid out, the game ball falls down so that the game ball flows down one flow path in the ball passage 293. To fall down. The payout motor 289 and the solenoid 310 are controlled by a payout control CPU mounted on the payout control board 37. The payout control CPU controls the payout motor 289 and the solenoid 310 in accordance with a command from the game control CPU mounted on the main board 31.

賞球払出時に選択される流下路の下方には球払出装置によって払い出された遊技球を検出する払出検出手段としての賞球センサ(賞球カウントスイッチ)301Aが設けられ、球貸し時に選択される流下路の下方には球払出装置によって払い出された遊技球を検出する球貸しセンサ(球貸しカウントスイッチ)301Bが設けられている。賞球カウントスイッチ301Aの検出信号と球貸しカウントスイッチ301Bの検出信号は払出制御基板37の払出制御用CPUに入力される。払出制御用CPUは、それらの検出信号にもとづいて、実際に払い出された遊技球の個数を計数する。   A prize ball sensor (prize ball count switch) 301A as a payout detection means for detecting a game ball paid out by the ball payout device is provided below the flow path selected at the time of paying out the winning ball. A ball lending sensor (ball lending count switch) 301B for detecting a game ball dispensed by the ball dispensing device is provided below the downflow path. The detection signal of the winning 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 these detection signals.

なお、ギア291の周辺部には、払出モータ位置センサ296を形成する複数の突起部295が形成されている。突起部295は、ギア291の回転すなわち払出モータ289の回転に伴って発光体(図示せず)からの光を、払出モータ位置センサの受光部(図示せず)に対して透過させたり遮蔽したりする。払出制御用CPUは、受光部からの検出信号によって払出モータ289の位置を認識することができる。   A plurality of protrusions 295 that form the payout motor position sensor 296 are formed on the periphery of the gear 291. The protrusion 295 transmits or blocks light from the light emitter (not shown) to the light receiving part (not shown) of the payout motor position sensor as the gear 291 rotates, that is, the payout motor 289 rotates. Or The payout control CPU can recognize the position of the payout motor 289 from the detection signal from the light receiving unit.

また、この実施の形態では、払出手段としての球払出装置97は球貸しも賞球払出も実行可能な構成であるが、球貸しを行う機構と賞球払出を行う機構とが独立していても本発明を適用することができる。球貸しを行う機構と賞球払出を行う機構とが独立している場合には、賞球払出と球貸しとを同時実行可能なので、遊技球の相対的な払出速度を速くすることができる。また、遊技球の流下路を切り替えるための振分部材311およびソレノイド310は不要である。さらに、払出手段として、例えば、モータが正転すると賞球払出が行われモータが逆転すると球貸しが行われるような構造のものなど、他の構造のものを用いることもできる。   In this embodiment, the ball payout device 97 as the payout means is configured to execute both ball lending and prize ball payout, but the mechanism for lending the ball and the mechanism for paying the prize ball are independent. The present invention can also be applied. When the ball lending mechanism and the prize ball paying mechanism are independent, the winning ball payout and the ball lending can be executed simultaneously, so that the relative payout speed of the game balls can be increased. Further, the sorting member 311 and the solenoid 310 for switching the flow path of the game ball are not necessary. Further, as the payout means, for example, a structure having a structure in which a prize ball is paid out when the motor rotates forward and a ball is lent out when the motor reverses can be used.

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

図7は、スイッチ基板190に搭載されたクリアスイッチ921の構成の一例を示す構成図である。図7(A)には、押しボタン構造のクリアスイッチ921が示されている。クリアスイッチ921が押下されるとローレベル(オン状態)のクリアスイッチ信号(操作信号)が出力され、コネクタ922を介して主基板31および払出制御基板37等に出力される。すなわち、クリアスイッチ921から主基板31および払出制御基板37等に出力される操作信号がオン状態になる。また、クリアスイッチ921が押下されていなければハイレベル(オフ状態)の信号が出力される。なお、この実施の形態では、クリアスイッチ信号は少なくとも主基板31および払出制御基板37に出力されるので、コネクタ922として、主基板31へのクリアスイッチ信号を出力するためのコネクタと、払出制御基板37へのクリアスイッチ信号を出力するためのコネクタとを別個に設けてもよい。   FIG. 7 is a configuration diagram showing an example of the configuration of the clear switch 921 mounted on the switch board 190. FIG. 7A shows a clear switch 921 having a push button structure. When the clear switch 921 is pressed, a clear switch signal (operation signal) at a low level (ON state) is output, and is output to the main board 31 and the payout control board 37 via the connector 922. That is, the operation signal output from the clear switch 921 to the main board 31 and the payout control board 37 is turned on. If the clear switch 921 is not pressed, a high level (off state) signal is output. In this embodiment, since the clear switch signal is output to at least the main board 31 and the payout control board 37, a connector for outputting the clear switch signal to the main board 31 as the connector 922, and the payout control board A connector for outputting a clear switch signal to 37 may be provided separately.

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

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

また、クリアスイッチ921は、遊技盤6の側に設置されていてもよいが、遊技枠側に設置されていてもよい。   Also, the clear switch 921 may be installed on the game board 6 side, but may be installed on the game frame side.

図8は、主基板31における回路構成の一例を示すブロック図である。なお、図8には、払出制御基板37、ランプ制御基板35、音制御基板70、発射制御基板91および図柄制御基板80も示されている。主基板31には、プログラムに従ってパチンコ遊技機1を制御する基本回路53と、ゲートスイッチ32a、始動口スイッチ14a、V入賞スイッチ22、カウントスイッチ23、入賞口スイッチ29a,30a,33a,39a、満タンスイッチ48、球切れスイッチ187、賞球カウントスイッチ301Aおよびクリアスイッチ921からの信号を基本回路53に与えるスイッチ回路58と、可変入賞球装置15を開閉するソレノイド16、開閉板20を開閉するソレノイド21および大入賞口内の経路を切り換えるためのソレノイド21Aを基本回路53からの指令に従って駆動するソレノイド回路59とが搭載されている。   FIG. 8 is a block diagram illustrating an example of a circuit configuration in the main board 31. 8 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. The main board 31 includes a basic circuit 53 for controlling the pachinko gaming machine 1 according to a program, a gate switch 32a, a start port switch 14a, a V winning switch 22, a count switch 23, winning port switches 29a, 30a, 33a, 39a, A switch circuit 58 for supplying signals from the tongue switch 48, the ball break switch 187, the prize ball count switch 301A and the clear switch 921 to the basic circuit 53, a solenoid 16 for opening and closing the variable winning ball apparatus 15, and a solenoid for opening and closing the opening and closing plate 20. 21 and a solenoid circuit 59 for driving a solenoid 21A for switching a route in the special winning opening in accordance with a command from the basic circuit 53 is mounted.

なお、図8には示されていないが、カウントスイッチ短絡信号もスイッチ回路58を介して基本回路53に伝達される。また、ゲートスイッチ32a、始動口スイッチ14a、V入賞スイッチ22、カウントスイッチ23、入賞口スイッチ29a,30a,33a,39a、満タンスイッチ48、球切れスイッチ187、賞球カウントスイッチ301A等のスイッチは、センサと称されているものでもよい。すなわち、遊技球を検出できる遊技媒体検出手段(この例では遊技球検出手段)であれば、その名称を問わない。スイッチと称されているものがセンサと称されているもの等でもよいこと、すなわち、スイッチが遊技媒体検出手段の一例であることは、他の実施の形態でも同様である。   Although not shown in FIG. 8, the count switch short circuit signal is also transmitted to the basic circuit 53 via the switch circuit 58. Further, the gate switch 32a, the start port switch 14a, the V winning switch 22, the count switch 23, the winning port switches 29a, 30a, 33a, 39a, the full switch 48, the ball running switch 187, the winning ball count switch 301A, etc. Also, what is called a sensor may be used. That is, the name of the game medium detection means is not limited as long as it is a game medium detection means (game ball detection means in this example) that can detect a game ball. What is called a switch may be what is called a sensor, that is, that the switch is an example of a game medium detecting unit, as in other embodiments.

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

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

また、RAM(CPU内蔵RAMであってもよい。)55の少なくとも一部が、電源基板910において作成されるバックアップ電源よってバックアップされているバックアップRAMである。すなわち、遊技機に対する電力供給が停止しても、所定期間は、RAM55の少なくとも一部の内容は保存される。ただし、この実施の形態では、RAMの全てがバックアップ電源によってバックアップされている。   Further, at least a part of the RAM 55 (may be a CPU built-in RAM) 55 is a backup RAM that is backed up by a backup power source 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 55 is stored for a predetermined period. However, in this embodiment, all of the RAM is backed up by a backup power source.

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

この実施の形態では、ランプ制御基板35に搭載されているランプ制御手段が、遊技盤に設けられている始動記憶表示器18、普通図柄始動記憶表示器41および装飾ランプ25の表示制御を行うとともに、枠側に設けられている天枠ランプ28a、左枠ランプ28b、右枠ランプ28c、賞球ランプ51および球切れランプ52の表示制御を行う。なお、各ランプはLEDその他の種類の発光体でもよく、この実施の形態および他の実施の形態で用いられているLEDも他の種類の発光体でもよい。すなわち、ランプやLEDは発光体の一例である。また、特別図柄を可変表示する可変表示装置9および普通図柄を可変表示する普通図柄表示器10の表示制御は、図柄制御基板80に搭載されている表示制御手段によって行われる。   In this embodiment, the lamp control means mounted on the lamp control board 35 performs display control of the start memory display 18, the normal symbol start memory display 41 and the decoration lamp 25 provided on the game board. The 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 ball-out lamp 52 provided on the frame side is performed. Each lamp may be an LED or other types of light emitters, and the LEDs used in this embodiment and other embodiments may be other types of light emitters. That is, a lamp or LED is an example of a light emitter. In addition, display control of the variable display device 9 for variably displaying the special symbol and the normal symbol display 10 for variably displaying the normal symbol is performed by display control means mounted on the symbol control board 80.

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

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

そして、表示制御用CPU101は、受信した表示制御コマンドに従って、LCD82に表示される画面の表示制御を行う。具体的には、表示制御コマンドに応じた指令をVDP103に与える。VDP103は、キャラクタROM86から必要なデータを読み出す。VDP103は、入力したデータに従ってLCD82に表示するための画像データを生成し、R,G,B信号および同期信号をLCD82に出力する。   Then, the display control CPU 101 performs display control of the screen displayed on the LCD 82 in accordance with the received display control command. Specifically, a command corresponding to the display control command is given to the VDP 103. The VDP 103 reads out necessary data from the character ROM 86. The VDP 103 generates image data to be displayed on the LCD 82 according to the input data, and outputs R, G, B signals and a synchronization signal to the LCD 82.

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

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

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

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

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

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

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

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

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

図11は、主基板31における音制御コマンドの信号送信部分および音制御基板70の構成例を示すブロック図である。この実施の形態では、遊技進行に応じて、遊技領域7の外側に設けられているスピーカ27の音出力を指示するための音制御コマンドが、主基板31から音制御基板70に出力される。   FIG. 11 is a block diagram showing a configuration example of the sound control command signal transmitting portion of the main board 31 and the sound control board 70. In this embodiment, a sound control command for instructing the sound output of the speaker 27 provided outside the game area 7 is output from the main board 31 to the sound control board 70 as the game progresses.

図11に示すように、音制御コマンドは、基本回路53におけるI/Oポート部57の出力ポート(出力ポート0,4)570,574から出力される。出力ポート(出力ポート4)574からは8ビットのデータが出力され、出力ポート570からは1ビットのINT信号が出力される。音制御基板70において、主基板31からの各信号は、入力バッファ回路705A,705Bを介して音制御用CPU701に入力する。なお、音制御用CPU701がI/Oポートを内蔵していない場合には、入力バッファ回路705A,705Bと音制御用CPU701との間に、I/Oポートが設けられる。   As shown in FIG. 11, the sound control command is output from the output ports (output ports 0 and 4) 570 and 574 of the I / O port unit 57 in the basic circuit 53. The output port (output port 4) 574 outputs 8-bit data, and the output port 570 outputs a 1-bit INT signal. In the sound control board 70, each signal from the main board 31 is input to the sound control CPU 701 via the input buffer circuits 705A and 705B. When the sound control CPU 701 does not have an I / O port, an I / O port is provided between the input buffer circuits 705A and 705B and the sound control CPU 701.

そして、例えばディジタルシグナルプロセッサによる音声合成回路702は、音制御用CPU701の指示に応じた音声や効果音を発生し音量切替回路703に出力する。音量切替回路703は、音制御用CPU701の出力レベルを、設定されている音量に応じたレベルにして音量増幅回路704に出力する。音量増幅回路704は、増幅した音信号をスピーカ27に出力する。   Then, for example, a voice synthesis circuit 702 using a digital signal processor generates voice and sound effects according to instructions from the sound control CPU 701 and outputs them to the volume switching circuit 703. The volume switching circuit 703 sets the output level of the sound control CPU 701 to a level corresponding to the set volume and outputs it to the volume amplification circuit 704. The volume amplification circuit 704 outputs the amplified sound signal to the speaker 27.

入力バッファ回路705A,705Bとして、例えば、汎用のCMOS−ICである74HC540,74HC14が用いられる。入力バッファ回路705A,705Bは、主基板31から音制御基板70へ向かう方向にのみ信号を通過させることができる。よって、音制御基板70側から主基板31側に信号が伝わる余地はない。従って、音制御基板70内の回路に不正改造が加えられても、不正改造によって出力される信号が主基板31側に伝わることはない。なお、入力バッファ回路705A,705Bの入力側にノイズフィルタを設けてもよい。   As the input buffer circuits 705A and 705B, for example, 74HC540 and 74HC14, which are general-purpose CMOS-ICs, are used. The input buffer circuits 705A and 705B can pass signals only in the direction from the main board 31 toward the sound control board 70. Therefore, there is no room for signals to be transmitted from the sound control board 70 side to the main board 31 side. Therefore, even if unauthorized modification is added to the circuit in the sound control board 70, a signal output by the unauthorized modification is not transmitted to the main board 31 side. A noise filter may be provided on the input side of the input buffer circuits 705A and 705B.

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

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

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

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

入賞があると、払出制御基板37には、主基板31の出力ポート(ポート0,1)570,571から賞球個数を示す払出制御コマンドが入力される。出力ポート(出力ポート1)571は8ビットのデータを出力し、出力ポート570は1ビットのINT信号を出力する。賞球個数を示す払出制御コマンドは、入力バッファ回路373Aを介してI/Oポート372aに入力される。INT信号は、入力バッファ回路373Bを介して払出制御用CPU371の割込端子に入力されている。払出制御用CPU371は、I/Oポート372aを介して払出制御コマンドを入力し、払出制御コマンドに応じて球払出装置97を駆動して賞球払出を行う。なお、この実施の形態では、払出制御用CPU371は、1チップマイクロコンピュータであり、少なくともRAMが内蔵されている。   When there is a winning, a payout control command indicating the number of winning balls is input to the payout control board 37 from the output ports (ports 0, 1) 570, 571 of the main board 31. The output port (output port 1) 571 outputs 8-bit data, and the output port 570 outputs a 1-bit INT signal. A payout control command indicating the number of winning 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 inputs a payout control command via the I / O port 372a, and drives the ball payout device 97 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 incorporates at least a RAM.

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

払出制御用CPU371は、出力ポート372cを介して、貸し球数を示す球貸し個数信号をターミナル基板160に出力する。さらに、出力ポート372dを介して、エラー表示用LED374にエラー信号を出力する。   The payout control CPU 371 outputs a ball lending number signal indicating the number of lending balls to the terminal board 160 via the output port 372c. Further, an error signal is output to the error display LED 374 via the output port 372d.

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

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

残高表示基板74からカードユニット50には、遊技者の操作に応じて、球貸しスイッチ信号および返却スイッチ信号が払出制御基板37を介して与えられる。また、カードユニット50から残高表示基板74には、プリペイドカードの残高を示すカード残高表示信号および球貸し可表示信号が払出制御基板37を介して与えられる。カードユニット50と払出制御基板37の間では、接続信号(VL信号)、ユニット操作信号(BRDY信号)、球貸し要求信号(BRQ信号)、球貸し完了信号(EXS信号)およびパチンコ機動作信号(PRDY信号)が入力ポート372bおよび出力ポート372eを介してやりとりされる。   A ball lending switch signal and a return switch signal are given from the balance display board 74 to the card unit 50 via the payout control board 37 in accordance with the player's operation. Further, a card balance display signal indicating a prepaid card balance and a ball lending display signal are given to the balance display board 74 from the card unit 50 via the payout control board 37. 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 (BRQ signal), a ball lending completion signal (EXS signal) and a pachinko machine operation signal ( PRDY signal) is exchanged via the input port 372b and the output port 372e.

パチンコ遊技機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. The card unit control microcomputer outputs a VL signal. The payout control CPU 371 determines the connected / unconnected state based on the input state of the VL signal. When a card is received in the card unit 50, the ball lending switch is operated and a ball lending switch signal is input, the card unit control microcomputer outputs a BRDY signal to the payout control board 37. When a predetermined delay time elapses from this point, the card unit control microcomputer outputs a BRQ signal to the payout control board 37.

そして、払出制御基板37の払出制御用CPU371は、カードユニット50に対するEXS信号を立ち上げ、カードユニット50からのBRQ信号の立ち下がりを検出すると、払出モータ289を駆動し、所定個の貸し球を遊技者に払い出す。このとき、振分ソレノイド310は駆動状態とされている。すなわち、球振分部材311を球貸し側に向ける。そして、払出が完了したら、払出制御用CPU371は、カードユニット50に対するEXS信号を立ち下げる。その後、カードユニット50からのBRDY信号がオン状態でなければ、賞球払出制御を実行する。   Then, the payout control CPU 371 of the payout control board 37 raises the EXS signal to the card unit 50, and when detecting the fall of the BRQ signal from the card unit 50, drives the payout motor 289 to draw a predetermined number of rental balls. Pay to the player. At this time, the sorting 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 EXS signal to the card unit 50 to fall. Thereafter, if the BRDY signal from the card unit 50 is not on, prize ball payout control is executed.

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

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

なお、この実施の形態では、カードユニット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 may be integrated with the gaming machine. . Further, the present invention can be applied even in the case where game balls corresponding to the amount of money are lent out in accordance with coin insertion.

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

トランス911は、交流電源からの交流電圧を24Vに変換する。AC24V電圧は、コネクタ915に出力される。また、整流回路912は、AC24Vから+30Vの直流電圧を生成し、DC−DCコンバータ913およびコネクタ915に出力する。DC−DCコンバータ913は、1つまたは複数のコンバータIC924(図13では1つのみを示す。)を有し、VSLにもとづいて+21V、+12Vおよび+5Vを生成してコネクタ915に出力する。コンバータIC924の入力側には、比較的大容量のコンデンサ923が接続されている。従って、外部からの遊技機に対する電力供給が停止したときに、+30V、+12V、+5V等の直流電圧は、比較的緩やかに低下する。コネクタ915は例えば中継基板に接続され、中継基板から各電気部品制御基板および機構部品に必要な電圧の電力が供給される。   The transformer 911 converts AC voltage from the AC power source into 24V. The AC 24V voltage is output to the connector 915. The rectifier circuit 912 also generates a DC voltage of +30 V from AC 24 V and outputs it to the DC-DC converter 913 and the connector 915. The DC-DC converter 913 has one or a plurality of converter ICs 924 (only one is shown in FIG. 13), generates + 21V, + 12V, and + 5V based on VSL and outputs them to the connector 915. A relatively large capacitor 923 is connected to the input side of the converter IC 924. Accordingly, when the power supply to the gaming machine from the outside is stopped, the DC voltage such as + 30V, + 12V, + 5V, etc., decreases relatively slowly. The connector 915 is connected to, for example, a relay board, and power of a voltage necessary for each electric component control board and the mechanism component is supplied from the relay board.

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

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

また、電源基板910には、電源監視回路(電源監視手段)としての電源監視用IC902が搭載されている。電源監視用IC902は、VSL電圧を導入し、VSL電圧を監視することによって遊技機への電力供給停止の発生を検出する。具体的には、VSL電圧が所定値(この例では+22V)以下になったら、電力供給の停止が生ずるとして電源断信号を出力する。なお、監視対象の電源電圧は、各電気部品制御基板に搭載されている回路素子の電源電圧(この例では+5V)よりも高い電圧であることが好ましい。この例では、交流から直流に変換された直後の電圧であるVSLが用いられている。電源監視用IC902からの電源断信号は、主基板31や払出制御基板37等に供給される。   The power supply board 910 is mounted with a power monitoring IC 902 as a power monitoring circuit (power monitoring means). The power 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, when the VSL voltage becomes equal to or lower than a predetermined value (+22 V in this example), a power-off signal is output because power supply is stopped. 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 a voltage immediately after being converted from AC to DC, is used. A power-off signal from the power monitoring IC 902 is supplied to the main board 31, the payout control board 37, and the like.

電源監視用IC902が電力供給の停止を検知するための所定値は、通常時の電圧より低いが、各電気部品制御基板上のCPUが暫くの間動作しうる程度の電圧である。また、電源監視用IC902が、CPU等の回路素子を駆動するための電圧(この例では+5V)よりも高く、また、交流から直流に変換された直後の電圧を監視するように構成されているので、CPUが必要とする電圧に対して監視範囲を広げることができる。従って、より精密な監視を行うことができる。さらに、監視電圧としてVSL(+30V)を用いる場合には、遊技機の各種スイッチに供給される電圧が+12Vであることから、電源瞬断時のスイッチオン誤検出の防止も期待できる。すなわち、+30V電源の電圧を監視すると、+30V作成の以降に作られる+12Vが落ち始める以前の段階でそれの低下を検出できる。   The predetermined value for the power monitoring IC 902 to detect the stop of power supply is lower than the normal voltage, but is a voltage that allows the CPU on each electrical component control board to operate for a while. Further, the power monitoring IC 902 is configured to monitor a voltage that is higher than a voltage for driving a circuit element such as a CPU (+5 V in this example) and immediately after being converted from AC to DC. Therefore, the monitoring range can be expanded for the voltage required by the CPU. Therefore, more precise monitoring can be performed. Furthermore, when VSL (+ 30V) is used as the monitoring voltage, the voltage supplied to the various switches of the gaming machine is + 12V, so that it can be expected to prevent erroneous switch-on detection at the time of instantaneous power interruption. In other words, when the voltage of the + 30V power supply is monitored, it is possible to detect a decrease in the level before + 12V created after the creation of + 30V starts to drop.

+12V電源の電圧が低下するとスイッチ出力がオン状態を呈するようになるが、+12Vより早く低下する+30V電源電圧を監視して電力供給の停止を認識すれば、スイッチ出力がオン状態を呈する前に電力供給回復待ちの状態に入ってスイッチ出力を検出しない状態となることができる。   When the voltage of the + 12V power supply decreases, the switch output becomes on. However, if the power supply voltage is monitored by monitoring the + 30V power supply voltage, which decreases faster than + 12V, and the power supply is stopped, the switch output is turned on. It is possible to enter a supply recovery waiting state and not detect the switch output.

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

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

図14は、主基板31におけるCPU56周りの一構成例を示すブロック図である。図14に示すように、電源基板910の電源監視回路からの電源断信号がバッファ回路900を介して、CPU56のマスク不能割込端子(XNMI端子)に接続されている。従って、CPU56は、マスク不能割込(NMI)処理によって遊技機への電力供給の停止の発生を確認することができる。また、電源断信号は、判定回路950にも入力されている。バッファ回路900から出力される信号は電源監視回路910からの検出信号と実質的に変わらないので(増幅を受けたのみ)、以下、バッファ回路900から出力される信号を検出信号またはNMI信号と呼ぶことがある。なお、CPU56は、XNMI端子の入力信号がローレベルになると、立ち下がりエッジで割込を受け付ける。   FIG. 14 is a block diagram illustrating a configuration example around the CPU 56 in the main board 31. As shown in FIG. 14, the power-off signal from the power supply monitoring circuit of the power supply board 910 is connected to the non-maskable interrupt terminal (XNMI terminal) of the CPU 56 via the buffer circuit 900. Therefore, the CPU 56 can confirm the occurrence of the stop of power supply to the gaming machine by the non-maskable interrupt (NMI) process. The power-off signal is also input to the determination circuit 950. Since the signal output from the buffer circuit 900 is not substantially different from the detection signal from the power supply monitoring circuit 910 (only amplified), hereinafter, the signal output from the buffer circuit 900 is referred to as a detection signal or an NMI signal. Sometimes. Note that the CPU 56 accepts an interrupt at the falling edge when the input signal of the XNMI terminal becomes low level.

図14には、システムリセット回路65も示されている。リセットIC651は、電源投入時に、外付けのコンデンサの容量で決まる所定時間だけ出力をローレベルとし、所定時間が経過すると出力をハイレベルにする。すなわち、制御手段の動作を初期化するための信号であるリセット信号(システムリセット信号)をハイレベルに立ち上げてCPU56を動作可能状態にする。また、リセットIC651は、電源基板910の電源監視回路が監視する電源電圧と等しい電源電圧であるVSLの電源電圧を監視して電圧値が所定値(電源監視回路が電源断信号を出力する電源電圧値よりも低い値)以下になると出力をローレベルにする。従って、CPU56は、電源監視回路からの電源断信号に応じて所定の電力供給停止時処理を行った後、システムリセットされる。なお、システムリセットとは、CPU56の全ての内蔵デバイスも含めてリセットされるようなリセットの態様である。   FIG. 14 also shows a system reset circuit 65. When the power is turned on, the reset IC 651 sets the output to a low level for a predetermined time determined by the capacity of the external capacitor, and sets the output to a high level when the predetermined time has elapsed. That is, a reset signal (system reset signal) that is a signal for initializing the operation of the control means is raised to a high level to make the CPU 56 operable. The reset IC 651 monitors the power supply voltage of VSL, which is the power supply voltage equal to the power supply voltage monitored by the power supply monitoring circuit of the power supply board 910, and the voltage value is a predetermined value (the power supply voltage at which the power supply monitoring circuit outputs a power-off signal). When the value is lower than the value, the output is set to low level. Accordingly, the CPU 56 performs a predetermined power supply stop process in response to the power-off signal from the power supply monitoring circuit, and then the system is reset. The system reset is a reset mode in which all the devices included in the CPU 56 are reset.

図14に示すように、リセットIC651からのリセット信号は、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回のリセット信号(ローレベル信号)が与えられるので、CPU56は、確実に動作を開始する。   As shown in FIG. 14, the reset signal from the reset IC 651 is input to the NAND circuit 947 and also input to the clear terminal of the counter IC 941 via the inverting circuit (NOT circuit) 944. The counter IC 941 counts the clock signal from the oscillator 943 when the input to the clear terminal becomes low level. 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 at a high level, and the Q output is input to an OR 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 as a reset signal. According to such a configuration, since the reset signal (low level signal) is given twice to the reset terminal of the CPU 56 when the power is turned on, the CPU 56 surely starts operation.

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

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

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

また、リセット信号は判定回路950にも入力されている。判定回路950は、NMI信号とリセット信号を入力し、CPU56の入力ポートに対して判定信号を出力する回路である。具体的には、判定回路950は、NMI信号が入力されてから所定期間内にリセット信号がローレベルにならないような場合に判定信号を制御手段に出力する。NMI信号が入力されてから所定期間内にリセット信号がローレベルにならないような場合には、不正にNMI信号が入力されたと判定することができる。   The reset signal is also input to the determination circuit 950. The determination circuit 950 is a circuit that inputs an NMI signal and a reset signal and outputs a determination signal to the input port of the CPU 56. Specifically, the determination circuit 950 outputs a determination signal to the control means when the reset signal does not become low level within a predetermined period after the NMI signal is input. When the reset signal does not become low level within a predetermined period after the NMI signal is input, it can be determined that the NMI signal has been input illegally.

なお、この実施の形態で用いられるCPU56は、I/Oポート(PIO)およびタイマ/カウンタ回路(CTC)も内蔵している。   The CPU 56 used in this embodiment also includes an I / O port (PIO) and a timer / counter circuit (CTC).

また、CPU56のクロック入力端子(EXTAL1端子)には、クロック信号を発生する第1発振回路(OSC1)92が接続されている。CPU56は、第1発振回路92からのクロック信号を、必要に応じて分周して内部クロックとして使用する。   A first oscillation circuit (OSC1) 92 that generates a clock signal is connected to the clock input terminal (EXTAL1 terminal) of the CPU 56. The CPU 56 divides the clock signal from the first oscillation circuit 92 as necessary and uses it as an internal clock.

この実施の形態で用いられているシステムリセット回路65は、電源電圧のみに関連してシステムリセット信号を出力する(ローレベルにした後ハイレベルにする)が、CPU56から出力ポートを介して定期的に信号を出力するようにして、その信号が所定期間出力されなかったときにもシステムリセット信号を出力する(一旦ローレベルにする)ように構成されていてもよい。すなわち、システムリセット回路65は、ウォッチドッグ回路を含んでいてもよい。また、この実施の形態では、システムリセット回路65は主基板31に搭載されているので、システムリセット信号は主基板31に外部に現れず、システムリセット信号に対して不正行為が行われる可能性が低減する。   The system reset circuit 65 used in this embodiment outputs a system reset signal related to only the power supply voltage (set to low level and then set to high level), but periodically from the CPU 56 via the output port. The system reset signal may be output even when the signal is not output for a predetermined period of time. That is, the system reset circuit 65 may include a watch dog circuit. In this embodiment, since the system reset circuit 65 is mounted on the main board 31, the system reset signal does not appear outside on the main board 31, and there is a possibility that fraudulent acts may be performed on the system reset signal. To reduce.

図15は、主基板31において、大当りとするか否かを決定するための乱数を生成するカウンタ(この実施の形態では、後述するランダム1生成用カウンタ)の初期値(初期化処理で設定される初期値)をランダムにするための構成例を示すブロック図である。図15に示す例では、第2発振回路(OSC2)930が発生するクロック信号をカウントするカウンタ931と、カウンタ931のカウント値をラッチするラッチ回路932とが設けられている。主基板31には、遊技機への電力供給停止時でも電力を供給可能なコンデンサや電池等による数値保持手段としてのバックアップ電源933が設けられ、第2発振回路930、カウンタ931およびラッチ回路932は、バックアップ電源933の電力によって動作する。なお、カウンタ931およびラッチ回路932は計数手段(第2数値更新手段)を構成する。また、ラッチ回路932は数値出力手段の一例である。   FIG. 15 shows an initial value (set in the initialization process) of a counter (in this embodiment, a random 1 generation counter, which will be described later) that generates a random number for determining whether or not to make a big hit on the main board 31. It is a block diagram which shows the example of a structure for randomizing (initial value) to be random. In the example shown in FIG. 15, a counter 931 that counts a clock signal generated by the second oscillation circuit (OSC2) 930 and a latch circuit 932 that latches the count value of the counter 931 are provided. The main board 31 is provided with a backup power source 933 as a numerical value holding means such as a capacitor or a battery that can supply power even when power supply to the gaming machine is stopped, and the second oscillation circuit 930, the counter 931, and the latch circuit 932 are provided. The power supply of the backup power source 933 operates. The counter 931 and the latch circuit 932 constitute counting means (second numerical value updating means). The latch circuit 932 is an example of numerical value output means.

バックアップ電源933は、この実施の形態のように、主基板31に搭載されていることが好ましい。遊技制御手段が搭載されている主基板31は、遊技機裏面において容易に取り外すことができず、また、取り外し履歴がわかるようなカバーで覆われているので、不正行為を受けにくい。よって、主基板31にバックアップ電源933が搭載されていれば、バックアップ電源933を強制的に断させてしまうような不正行為を防止できる可能性が高まる。   The backup power source 933 is preferably mounted on the main board 31 as in this embodiment. The main board 31 on which the game control means is mounted cannot be easily removed on the back side of the gaming machine, and is covered with a cover that shows the removal history, so that it is difficult to receive fraud. Therefore, if the backup power source 933 is mounted on the main board 31, there is a high possibility that an illegal act that forcibly turns off the backup power source 933 can be prevented.

ラッチ回路932には、CPU56が出力ポート576を介して出力するラッチ信号が供給され、ラッチ回路932は、ラッチ信号の立ち上がりで、カウンタ931のカウント値をラッチする。なお、ラッチ回路932は、ラッチ信号の立ち下がりでカウンタ931のカウント値をラッチしてもよい。ラッチ回路932がラッチしているデータは、入力ポート582を介してCPU56に入力される。なお、この実施の形態では、カウンタ931は8ビットバイナリカウンタであり、ラッチ回路932から8ビットのデータが入力ポート582に入力される。まあ、カウンタ931のカウント値は0〜FF(H)を循環する。すなわち、カウンタ931はフリーランカウンタである。   A latch signal output from the CPU 56 via the output port 576 is supplied to the latch circuit 932. The latch circuit 932 latches the count value of the counter 931 at the rising edge of the latch signal. Note that the latch circuit 932 may latch the count value of the counter 931 at the falling edge of the latch signal. The data latched by the latch circuit 932 is input to the CPU 56 via the input port 582. In this embodiment, the counter 931 is an 8-bit binary counter, and 8-bit data is input from the latch circuit 932 to the input port 582. Well, the count value of the counter 931 circulates from 0 to FF (H). That is, the counter 931 is a free run counter.

遊技機への電力供給が停止しても、第2発振回路930、カウンタ931およびラッチ回路932にはバックアップ電源933から電力が供給されている。従って、カウンタ931は、遊技機への電力供給が停止しても第2発振回路930からのクロック信号をカウントしている。従って、遊技機への電力供給が再開されたときに、カウンタ931のカウント値は不定である。後述するように、遊技機への電力供給が再開され初期化処理が実行されると、ラッチ信号が出力されるのであるが、カウンタ931のカウント値は不定であるから、ラッチ回路932がラッチして入力ポート582に出力するデータも不定である。   Even when power supply to the gaming machine is stopped, power is supplied from the backup power source 933 to the second oscillation circuit 930, the counter 931, and the latch circuit 932. Therefore, the counter 931 counts the clock signal from the second oscillation circuit 930 even when the power supply to the gaming machine is stopped. Therefore, when the power supply to the gaming machine is resumed, the count value of the counter 931 is indefinite. As will be described later, when the power supply to the gaming machine is resumed and the initialization process is executed, a latch signal is output. However, since the count value of the counter 931 is indefinite, the latch circuit 932 latches. The data output to the input port 582 is also undefined.

なお、遊技機への電力供給が再開された後、初期化処理においてラッチ信号が出力されるで、ラッチ回路932にはバックアップ電源933から電力が供給されなくてもよい。   Note that after the supply of power to the gaming machine is resumed, a latch signal is output in the initialization process, so that power may not be supplied from the backup power source 933 to the latch circuit 932.

また、ラッチ回路932のみにバックアップ電源933から電力が供給され、例えば、後述する電力供給停止時処理(遊技機への電力供給が停止するときに実行される処理)においてCPU56がラッチ信号を出力するようにしてもよい。すると、ラッチ回路932は、遊技機への電力供給が停止する直前のカウンタ931のカウント値をラッチし、遊技機への電力供給が停止しているときにも、その値を保持している。そして、遊技機への電力供給が再開され初期化処理が実行されると、CPU56は、ラッチ回路932が保持しているデータを入力ポート582を介して入力する。電力供給停止直前のカウンタ931のカウント値は不定であるから、遊技機への電力供給が再開されたときに入力ポート582を介して入力されるデータも不定である。なお、この場合には、CPU56は、初期化処理においてラッチ信号を出力しない(出力するとラッチ回路932が保持しているデータがそのときのカウンタ931のカウント値で更新されてしまうので)。   In addition, power is supplied from the backup power source 933 only to the latch circuit 932. For example, the CPU 56 outputs a latch signal in a power supply stop process (a process executed when power supply to the gaming machine is stopped), which will be described later. You may do it. Then, the latch circuit 932 latches the count value of the counter 931 immediately before the power supply to the gaming machine is stopped, and holds the value even when the power supply to the gaming machine is stopped. When the power supply to the gaming machine is resumed and the initialization process is executed, the CPU 56 inputs the data held in the latch circuit 932 via the input port 582. Since the count value of the counter 931 immediately before the power supply is stopped is undefined, the data input via the input port 582 when the power supply to the gaming machine is resumed is also undefined. In this case, the CPU 56 does not output a latch signal in the initialization process (because if it is output, the data held in the latch circuit 932 is updated with the count value of the counter 931 at that time).

さらに、第2発振回路930はその発振周波数が、第1発振回路92の発振周波数とは異なるものである。また、第1発振回路92の発振周波数と第2発振回路930の発振周波数とのうちのいずれかの発振周波数が他方の発振周波数の整数倍にもなっていない。CPU56は、第1発振回路92の発振周波数にもとづいて動作するので、CPU56が内部で(ソフトウェア的に)生成しているカウンタの歩進は、第2発振回路930の発振周波数にもとづいて動作するカウンタ931のカウント値の歩進とは同期しない。なお、CPU56が内部で生成しているカウンタには、例えば、大当りを発生させるか否かを決定するための乱数を生成するカウンタがある。   Furthermore, the oscillation frequency of the second oscillation circuit 930 is different from the oscillation frequency of the first oscillation circuit 92. In addition, one of the oscillation frequency of the first oscillation circuit 92 and the oscillation frequency of the second oscillation circuit 930 is not an integral multiple of the other oscillation frequency. Since the CPU 56 operates based on the oscillation frequency of the first oscillation circuit 92, the increment of the counter generated internally (in software) by the CPU 56 operates based on the oscillation frequency of the second oscillation circuit 930. It is not synchronized with the increment of the count value of the counter 931. The counter generated internally by the CPU 56 includes, for example, a counter that generates a random number for determining whether or not to generate a big hit.

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

また、出力ポート5から、情報出力回路64を介して情報端子板34やターミナル基板160に至る各種情報出力用信号すなわち制御に関わる情報の出力データが出力される。そして、出力ポート6から、可変入賞球装置15を開閉するためのソレノイド16、大入賞口の開閉板20を開閉するためのソレノイド21、および大入賞口内の経路を切り換えるためのソレノイド21Aに対する駆動信号が出力される。さらに、出力ポート6から、初期化処理を実行したことを遊技店員等に報知するための信号である初期化信号や、図15に示されたラッチ回路932に与えられるラッチ信号も出力される。   Further, various information output signals from the output port 5 to the information terminal board 34 and the terminal board 160 through the information output circuit 64, that is, output data of information related to control are output. Then, a drive signal from the output port 6 to the solenoid 16 for opening and closing the variable winning ball device 15, the solenoid 21 for opening and closing the opening / closing plate 20 of the big winning opening, and the solenoid 21A for switching the path in the big winning opening. Is output. Further, the output port 6 also outputs an initialization signal that is a signal for notifying a game shop clerk that the initialization process has been executed, and a latch signal that is given to the latch circuit 932 shown in FIG.

図16および図17に示すように、払出制御基板37、図柄制御基板80、ランプ制御基板35および音制御基板70に対して出力される各INT信号(払出制御信号INT、表示制御信号INT、ランプ制御信号INTおよび音制御信号INT)を出力する出力ポート(出力ポート0)と、払出制御信号CD0〜CD7、表示制御信号CD0〜CD7、ランプ制御信号CD0〜CD7および音声制御信号CD0〜CD7を出力する出力ポート(出力ポート1〜4)とは、別ポートである。   As shown in FIGS. 16 and 17, each INT signal (payout control signal INT, display control signal INT, lamp) output to the payout control board 37, the symbol control board 80, the lamp control board 35 and the sound control board 70 is displayed. Output port (output port 0) that outputs control signal INT and sound control signal INT), output control signals CD0 to CD7, display control signals CD0 to CD7, ramp control signals CD0 to CD7, and audio control signals CD0 to CD7 The output ports (output ports 1 to 4) to be performed are different ports.

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

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

さらに、入力ポート2は、図15に示された入力ポート582に相当するものであり、ラッチ回路932が出力するデータが入力される。以下、ラッチ回路932が出力するデータを判定用乱数初期値という。   Further, the input port 2 corresponds to the input port 582 shown in FIG. 15, and the data output from the latch circuit 932 is input. Hereinafter, the data output from the latch circuit 932 is referred to as a determination random number initial value.

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

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

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

この実施の形態で用いられているCPU56には、マスク可能な割込のモードとして以下の3種類のモードが用意されている。なお、マスク可能な割込が発生すると、CPU56は、自動的に割込禁止状態に設定するとともに、プログラムカウンタの内容をスタックにセーブする。   The CPU 56 used in this embodiment is provided with the following three modes as 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.

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

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

割込モード2:CPU56の特定レジスタ(Iレジスタ)の値(1バイト)と内蔵デバイスが出力する割込ベクタ(1バイト:最下位ビット0)から合成されるアドレスが、割込番地を示すモードである。すなわち、割込番地は、上位アドレスが特定レジスタの値とされ下位アドレスが割込ベクタとされた2バイトで示されるアドレスである。従って、任意の(飛び飛びではあるが)偶数番地に割込処理を設置することができる。各内蔵デバイスは割込要求を行うときに割込ベクタを送出する機能を有している。   Interrupt mode 2: A mode in which 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 indicates the interrupt address It is. 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, an interrupt process can be set at an arbitrary address (although it is skipped). Each built-in device has a function of sending an interrupt vector when making an interrupt request.

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

次いで、CPU56は、入力ポート1を介して入力されるクリアスイッチ921の出力信号の状態を1回だけ確認する(ステップS7)。その確認においてオンを検出した場合には、CPU56は、通常の初期化処理を実行する(ステップS181〜ステップS190)。クリアスイッチ921がオンである場合(押下されている場合)には、ローレベルのクリアスイッチ信号が出力されている。なお、入力ポート1では、クリアスイッチ信号のオン状態はハイレベルである(図15参照)。また、例えば、遊技店員は、クリアスイッチ921をオン状態にしながら遊技機に対する電力供給を開始することによって、容易に初期化処理を実行させることができる。すなわち、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). When the on-state is detected in the confirmation, the CPU 56 executes normal initialization processing (steps S181 to S190). When the clear switch 921 is on (when pressed), a low-level clear switch signal is output. In the input port 1, the clear switch signal is in the high level (see FIG. 15). Further, for example, the game store clerk can easily execute the initialization process by starting the power supply to the gaming machine while the clear switch 921 is turned on. That is, RAM clear or the like can be performed.

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

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

バックアップありを確認したら、CPU56は、バックアップRAM領域のデータチェック(この例ではパリティチェック)を行う(ステップS9)。この実施の形態では、クリアデータ(00)をチェックサムデータエリアにセットし、チェックサム算出開始アドレスをポインタにセットする。また、チェックサムの対象となるデータ数に対応するチェックサム算出回数をセットする。そして、チェックサムデータエリアの内容とポインタが指すRAM領域の内容との排他的論理和を演算する。演算結果をチェックサムデータエリアにストアするとともに、ポインタの値を1増やし、チェックサム算出回数の値を1減算する。以上の処理が、チェックサム算出回数の値が0になるまで繰り返される。チェックサム算出回数の値が0になったら、CPU56は、チェックサムデータエリアの内容の各ビットの値を反転し、反転後のデータをチェックサムとする。   After confirming that there is a backup, the CPU 56 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. Also, the number of checksum calculations corresponding to the number of data to be checksum is set. 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. 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 processing is repeated until the value of the checksum calculation count becomes zero. When the value of the checksum calculation count reaches 0, the CPU 56 inverts the value of each bit of the contents of the checksum data area and uses the inverted data as the checksum.

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

チェック結果が正常であれば、CPU56は、遊技制御手段の内部状態と表示制御手段等の電気部品制御手段の制御状態を電力供給停止時の状態に戻すための遊技状態復旧処理を行う(ステップS10)。そして、バックアップRAM領域に保存されていたPC(プログラムカウンタ)の退避値がPCに設定され、そのアドレスに復帰する。   If the check result is normal, the CPU 56 performs a game state restoration 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 is stopped (step S10). ). Then, the saved value of the PC (program counter) stored in the backup RAM area is set in the PC, and the address is restored.

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

初期化処理では、CPU56は、まず、RAMクリア処理を行う(ステップS181)。また、所定の作業領域(例えば、判定用乱数カウンタ、表示用乱数カウンタ、初期値用乱数カウンタ、普通図柄判定用バッファ、特別図柄左中右図柄バッファ、特別図柄プロセスフラグ、払出コマンド格納ポインタ、賞球中フラグ、球切れフラグ、払出停止フラグなど制御状態に応じて選択的に処理を行うためのフラグ)に初期値を設定する作業領域設定処理を行う(ステップS182)。   In the initialization process, the CPU 56 first performs a RAM clear process (step S181). In addition, a predetermined work area (for example, determination random number counter, display random number counter, initial value random number counter, normal symbol determination buffer, special symbol left middle right symbol buffer, special symbol process flag, payout command storage pointer, award A work area setting process for setting an initial value to a flag for selectively performing processing according to the control state, such as a ball flag, a ball break flag, and a payout stop flag is performed (step S182).

次いで、CPU56は、例えば情報出力回路64を介して、ホールコンピュータなどの外部装置に向けて初期化信号を出力する(ステップS183)。初期化信号は、起動時に初期化処理を実行したことを遊技店員等に報知するための信号である。従って、ホールコンピュータなどの外部装置は、初期化信号を受信すると、音・ランプ・表示などによって初期化処理が実行されたことを報知する処理を行う。また、球払出装置97からの払出が可能であることを指示する払出許可状態指定コマンド(以下、払出可能状態指定コマンドという。)を払出制御基板37に対して送信する処理を行う(ステップS184)。   Next, the CPU 56 outputs an initialization signal to an external device such as a hall computer via the information output circuit 64, for example (step S183). The initialization signal is a signal for informing a game clerk and the like that the initialization process has been executed at the time of activation. Accordingly, when receiving an initialization signal, an external device such as a hall computer performs a process of notifying that the initialization process has been executed by sound, lamp, display, or the like. Further, a process of transmitting a payout permission state designation command (hereinafter referred to as a payout enable state designation command) instructing that payout from the ball payout device 97 is possible to the payout control board 37 is performed (step S184). .

また、各サブ基板(払出制御基板37、ランプ制御基板35、音制御基板70、図柄制御基板80)を初期化するための初期化コマンドを各サブ基板に送信する処理を実行する(ステップS185)。初期化コマンドとして、可変表示装置9に表示される初期図柄を示すコマンド(図柄制御基板80に対して)や賞球ランプ51および球切れランプ52の消灯を指示するコマンド(ランプ制御基板35に対して)等がある。なお、この実施の形態では、ステップS184で払出可能状態指定コマンドが送信されるため、ステップS185では払出制御基板37に対する制御コマンドは送信されない。さらに、CPU56は、初期化処理の実行の報知を指定する初期化報知コマンドを図柄制御基板80に対して送信する処理を行う(ステップS186)。この実施の形態では、初期化報知コマンドとして、大当り開始時表示コマンド(図39参照)が用いられる。なお、初期化処理の実行の報知制御がランプ制御手段や音制御手段において実行される場合には、ステップS186で、ランプ制御基板35や音制御基板70に対して初期化報知コマンドを送信する。この場合、ランプ制御基板35に送信する初期化報知コマンドとして、例えば大当り開始時ランプ指定コマンド(図40参照)が用いられる。また、音制御基板70に送信する初期化報知コマンドとして、例えば大当り開始時音指定コマンド(図41参照)が用いられる。   Also, a process of transmitting an initialization command for initializing each sub board (dispensing control board 37, lamp control board 35, sound control board 70, symbol control board 80) to each sub board is executed (step S185). . As an initialization command, a command indicating the initial symbol displayed on the variable display device 9 (for the symbol control board 80) and a command for instructing the extinction of the prize ball lamp 51 and the ball-out lamp 52 (to the lamp control board 35) Etc). In this embodiment, since a payout enable state designation command is transmitted in step S184, a control command for the payout control board 37 is not transmitted in step S185. Further, the CPU 56 performs a process of transmitting an initialization notification command designating notification of execution of the initialization process to the symbol control board 80 (step S186). In this embodiment, a big hit start display command (see FIG. 39) is used as the initialization notification command. When the notification control for executing the initialization process is executed in the lamp control unit or the sound control unit, an initialization notification command is transmitted to the lamp control board 35 and the sound control board 70 in step S186. In this case, for example, a big hit start lamp designation command (see FIG. 40) is used as the initialization notification command transmitted to the lamp control board 35. As the initialization notification command to be transmitted to the sound control board 70, for example, a big hit start sound designation command (see FIG. 41) is used.

初期化処理では、払出制御基板37に対して常に払出可能状態指定コマンドが送信される。仮に、遊技機の状態が球払出装置97からの払出が可能でない状態であったとしても、直後に実行される遊技制御処理において、その旨が検出され、払出が可能でない状態であることを指示する払出禁止状態指定コマンド(以下、払出停止状態指定コマンドという。)が送信されるので問題はない。   In the initialization process, a payout enable state designation command is always transmitted to the payout control board 37. Even if the state of the gaming machine is a state in which a payout from the ball payout device 97 is not possible, the fact is detected in the game control process executed immediately after that and an instruction is given that the payout is not possible. There is no problem because a withdrawal prohibition state designation command to be sent (hereinafter referred to as a withdrawal stop state designation command) is transmitted.

さらに、CPU56は、ラッチ信号を出力する(ステップS187)。ステップS187では、例えば、ラッチ信号として1パルスの信号を出力する。ラッチ信号は、出力ポート576からラッチ回路932に与えられる(図15参照)。ラッチ回路932は、ラッチ信号が入力されると、カウンタ931のカウント値を入力してラッチする。CPU56は、ラッチ回路932でラッチされた判定用乱数初期値としてのデータを入力ポート582を介して入力する(ステップS188)。そして、入力した値を、大当り判定用乱数を生成するためのランダム1生成用カウンタにセットする(ステップS189)。すなわち、遊技制御手段は、第2数値更新手段の数値にもとづいて第1数値更新手段の更新を開始する数値を決定する。なお、入力ポート582を介して入力した値をそのままランダム1生成用カウンタにセットするのではなく、入力した値に何らかの演算(加工)を施した値をランダム1生成用カウンタにセットしてもよい。   Further, the CPU 56 outputs a latch signal (step S187). In step S187, for example, a one-pulse signal is output as a latch signal. The latch signal is supplied from the output port 576 to the latch circuit 932 (see FIG. 15). When the latch signal is input, the latch circuit 932 inputs the count value of the counter 931 and latches it. The CPU 56 inputs data as a determination random number initial value latched by the latch circuit 932 via the input port 582 (step S188). Then, the input value is set in a random 1 generation counter for generating a big hit determination random number (step S189). That is, the game control means determines a numerical value for starting the update of the first numerical value updating means based on the numerical value of the second numerical value updating means. Instead of setting the value input via the input port 582 as it is in the random 1 generation counter, a value obtained by performing some operation (processing) on the input value may be set in the random 1 generation counter. .

上述したように、ラッチ回路932でラッチされているデータは、ハードウェアによるカウンタ931が、CPU56の動作周波数を決める第1発振回路92からのクロック信号とは同期しないクロック信号を出力する第2発振回路930からのクロック信号をカウントした値であって不定な値である。従って、初期化処理におけるステップS189でランダム1生成用カウンタにセットされる値(初期値)も不定な値になる。   As described above, the data latched by the latch circuit 932 is the second oscillation in which the hardware counter 931 outputs a clock signal that is not synchronized with the clock signal from the first oscillation circuit 92 that determines the operating frequency of the CPU 56. A value obtained by counting the clock signals from the circuit 930 is an indefinite value. Accordingly, the value (initial value) set in the random 1 generation counter in step S189 in the initialization process is also an indefinite value.

なお、ラッチ回路932のみにバックアップ電源933から電力が供給され、例えば電力供給停止時処理においてCPU56がラッチ信号を出力するように構成されている場合には、CPU56は、ステップS187の処理を実行せずに、ステップS188およびS189の処理を行う。電力供給停止直前のカウンタ931のカウント値は不定であるから、遊技機への電力供給が再開されたときに入力ポート582を介して入力されるデータも不定であって、ステップS189でランダム1生成用カウンタにセットされる値(初期値)も不定な値になる。   In addition, when power is supplied from the backup power source 933 only to the latch circuit 932 and, for example, the CPU 56 is configured to output a latch signal in the power supply stop process, the CPU 56 executes the process of step S187. Instead, the processes of steps S188 and S189 are performed. Since the count value of the counter 931 immediately before the power supply stop is indeterminate, the data input via the input port 582 when the power supply to the gaming machine is resumed is also indeterminate, and random 1 is generated in step S189. The value (initial value) set in the counter is also indefinite.

また、カウンタ931のカウント値の最大値(更新上限値)は、ランダム1生成用カウンタのカウント値の最大値(更新上限値;この実施の形態では316)と同じであるように、カウンタ931が構成されていることが好ましい。そのように構成した場合には、ラッチ回路932から入力した値を、そのままランダム1生成用カウンタにセットすることができる。しかし、この実施の形態のように、カウンタ931を8ビットバイナリカウンタで構成した場合には最大値は256であるから、ステップS189では、CPU56は、ラッチ回路932から入力した値を、ランダム1生成用カウンタの下位8ビットにセットする。   Further, the counter 931 has a maximum count value (update upper limit value) that is the same as the maximum value of the random 1 generation counter (update upper limit value; 316 in this embodiment). It is preferable to be configured. In such a configuration, the value input from the latch circuit 932 can be set in the random 1 generation counter as it is. However, when the counter 931 is configured with an 8-bit binary counter as in this embodiment, the maximum value is 256. Therefore, in step S189, the CPU 56 generates one random value generated from the latch circuit 932. Set to the lower 8 bits of the counter.

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

この実施の形態では、CPU56がクリアスイッチ921がオンであることを検出した場合には、バックアップRAMにデータが保存されているか否かに関わらず初期化処理(ステップS181〜S190)が実行されるので、遊技店の側で強制的に遊技制御手段を初期化することができる。すなわち、ソフトウェア的に遊技制御手段の初期化が実現される。また、クリアスイッチ921がオンでなくても、バックアップフラグとチェックサム等のチェックデータとを用いてソフトウェア的に遊技制御手段の初期化を行うことができるので、電力供給が復旧したときに、誤った遊技状態が復元されてしまうことが防止される。   In this embodiment, when the CPU 56 detects that the clear switch 921 is on, the initialization process (steps S181 to S190) is executed regardless of whether data is stored in the backup RAM. Therefore, the game control means can be forcibly initialized on the game store side. That is, initialization of the game control means is realized in software. Even if the clear switch 921 is not turned on, the game control means can be initialized by software using the backup flag and check data such as a checksum. It is prevented that the gaming state is restored.

また、クリアスイッチ921がオンであることを検出しない場合に、バックアップRAMにデータが正しく保存されていないことを確認したら、CPU56は、初期化処理(ステップS181〜S190)を実行する。従って、CPU56は、初期化操作手段に対する操作がなされなくても、所定の初期化条件が成立した場合には、変動データ記憶手段の記憶内容を初期化する。   Further, when it is not detected that the clear switch 921 is turned on, if it is confirmed that the data is not correctly stored in the backup RAM, the CPU 56 executes initialization processing (steps S181 to S190). Therefore, the CPU 56 initializes the stored contents of the variation data storage means when a predetermined initialization condition is satisfied even if the operation to the initialization operation means is not performed.

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

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

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

次いで、CPU56は、スタックオーバフローとなっているか否か確認する(ステップS81)。この実施の形態では、RAM55に設けられたスタック領域に、所定のデータ量を越えるデータが格納された状態となっているか否か確認する。この実施の形態では、CPU56は、復旧されたスタックポインタの値が、許容されている範囲を越えている場合に、スタックオーバフローであると判定する。スタックオーバフローであれば、CPU56は、遊技状態復旧処理を中止して、スタックポインタにスタックポインタ指定アドレスを設定したあと(ステップS81a:上述したステップS3と同様の処理)、初期化処理(ステップS181〜ステップS190)を実行する。   Next, the CPU 56 checks whether or not a stack overflow has occurred (step S81). In this embodiment, it is confirmed whether or not data exceeding a predetermined amount of data is stored in the stack area provided in the RAM 55. In this embodiment, the CPU 56 determines that the stack overflows when the recovered stack pointer value exceeds the allowable range. If it is a stack overflow, the CPU 56 stops the game state recovery process and sets the stack pointer designation address in the stack pointer (step S81a: the same process as step S3 described above), and then the initialization process (steps S181 to S181). Step S190) is executed.

スタックオーバフローでなければ、CPU56は、払出停止状態であったか否か確認する(ステップS82)。払出停止状態であったか否かは、電源バックアップされているRAMエリアに保存されている所定の作業領域(例えば、普通図柄判定用乱数カウンタ、普通図柄判定用バッファ、特別図柄左中右図柄バッファ、特別図柄プロセスフラグ、払出コマンド格納ポインタ、賞球中フラグ、球切れフラグ、払出停止フラグなど)における払出状態データとしての払出停止フラグによって確認される。払出停止状態であった場合には、払出制御基板37に搭載されている払出制御手段に対して、払出の停止を指示する払出制御コマンド(払出停止状態指定コマンド)を送信する(ステップS83)。払出停止状態でなかった場合には、払出制御手段に対して払出が可能であることを指示する払出制御コマンド(払出可能状態指定コマンド)を送信する(ステップS84)。   If it is not a stack overflow, the CPU 56 checks whether or not the payout has been stopped (step S82). Whether or not the payout is stopped is determined according to 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, This is confirmed by a payout stop flag as payout state data in a symbol process flag, a payout command storage pointer, a winning ball flag, a ball runout flag, a payout stop flag, etc. If it is in the payout stop state, a payout control command (payout stop state designation command) for instructing the payout stop is transmitted to the payout control means mounted on the payout control board 37 (step S83). If it is not in the payout stop state, a payout control command (payable state designation command) for instructing that payout is possible is sent to the payout control means (step S84).

補給球の不足や余剰球受皿4の満タンについて払出制御手段は認識できないので、遊技制御手段から通知しないと、停電等からの復旧時に、補給球の不足や余剰球受皿4の満タンであるにもかかわらず遊技球の払出処理を開始してしまうおそれがある。しかし、この実施の形態では、遊技状態復旧処理において、払出の停止を指示する払出制御コマンドまたは払出が可能であること指示する払出制御コマンドが送信されるので、払出制御手段が、補給球の不足や余剰球受皿4の満タンであるにもかかわらず遊技球の払出処理を開始してしまうことはない。   Since the payout control means cannot recognize the shortage of supply balls or the full tank of the surplus ball receiving tray 4, if there is no notification from the game control means, the supply ball shortage or the surplus ball receiving tray 4 is full when recovering from a power failure or the like. Nevertheless, there is a risk of starting the game ball payout process. However, in this embodiment, in the game state recovery process, a payout control command for instructing stoppage of payout or a payout control command for instructing that payout is possible is transmitted. Even though the surplus ball receiving tray 4 is full, the game ball payout process is not started.

なお、ここでは、遊技媒体の払い出しが可能であるか否かを判定する払出状態判定手段(遊技制御手段の一部)が払出可能でないことを検出したら、原因の如何に関わらず、1種類の払出停止状態指定コマンドが送信されるようにしたが、原因別のコマンド(この例では、補給球の不足を示すコマンドと下皿満タンを示すコマンド)に分けて送信してもよい。さらに、遊技球の払出が可能でない場合に、遊技の継続を禁止するために遊技球の発射を禁止することを指示するコマンドを払出制御基板37に対して送信してもよい。払出制御基板37に搭載された払出制御手段は、遊技球の発射を禁止することを指示するコマンドを受信したら、打球発射装置の駆動を停止する。また、遊技球の払出が可能でない場合に、遊技制御手段が発射制御手段に対して、直接、遊技球の発射を禁止することを指示する信号を与えてもよい。また、払出制御手段は、払出停止状態指定コマンドを受信した場合に、打球発射装置の駆動を停止するようにしてもよい。   Here, when the payout state determination means (a part of the game control means) for determining whether or not the game medium can be paid out detects that the payout is not possible, one type of the game medium is determined regardless of the cause. The payout stop state designation command is transmitted. However, the command may be transmitted separately for each cause (in this example, a command indicating a shortage of supply balls and a command indicating a lower pan full). Further, when the game ball cannot be paid out, a command instructing to prohibit the release of the game ball may be transmitted to the payout control board 37 in order to prohibit the continuation of the game. When the payout control means mounted on the payout control board 37 receives a command instructing prohibition of the game ball, the drive of the hitting ball launching device is stopped. In addition, when the game ball cannot be paid out, the game control means may give a signal instructing the launch control means to prohibit the launch of the game ball directly. Further, the payout control means may stop driving the ball striking device when a payout stop state designation command is received.

次いで、CPU56は、電力供給が停止したときに可変表示装置9において特別図柄変動中であったか否か確認する(ステップS85)。電力供給が停止したときに特別図柄変動中であったか否かは、例えば電源バックアップされているRAMエリアに格納されている特別図柄プロセスフラグの値等によって確認することができる。特別図柄変動中であった場合には、図柄制御基板80に搭載されている表示制御手段に対して、特別図柄停電復旧コマンドおよび左右中の図柄を指定する表示制御コマンドを送信する(ステップS86,S87)。ここで、表示制御コマンドで指定される左右中の図柄は、電力供給が停止したときに行われていた特別図柄変動で停止表示されるはずであった図柄である。   Next, the CPU 56 checks whether or not the special display is changing in the variable display device 9 when the power supply is stopped (step S85). Whether or not the special symbol is changing when the power supply is stopped can be confirmed by, for example, the value of the special symbol process flag stored in the RAM area where the power is backed up. If the special symbol is changing, a special symbol power failure recovery command and a display control command for designating the left and right symbols are transmitted to the display control means mounted on the symbol control board 80 (step S86, S87). Here, the left and right symbols designated by the display control command are symbols that should have been stopped and displayed due to the special symbol fluctuation that was performed when the power supply was stopped.

表示制御手段は、特別図柄停電復旧コマンドを受信すると、所定の報知処理を行う。例えば、可変表示装置9に停電が生じた旨の表示を行う。電源バックアップされていた各種情報にもとづいて、遊技状態が電力供給停止前の状態に戻るのであるが、その後、特別図柄の変動期間が終了すると、遊技制御手段は表示制御手段に対して確定コマンドを送信する。表示制御手段は、確定コマンドを受信したことにもとづいて、次の特別図柄の変動を行える状態になる。   When receiving the special symbol power failure recovery command, the display control means performs a predetermined notification process. For example, the variable display device 9 displays that a power failure has occurred. Based on the various information that was backed up, the gaming state returns to the state prior to the stop of power supply.After that, when the special symbol change period ends, the gaming control means issues a confirmation command to the display control means. Send. Based on the receipt of the confirmation command, the display control means is in a state where the next special symbol can be changed.

特別図柄変動中でなかった場合には、CPU56は、表示制御手段に対して、左右中の図柄を指定する表示制御コマンド、確定コマンドおよび客待ちデモコマンドを送信する処理を行う(ステップS88〜S90)。表示制御コマンドで指定される左右中の図柄は、電力供給が停止したときに可変表示装置9において表示されていた図柄である。   If the special symbol is not changing, the CPU 56 performs processing for transmitting a display control command for designating the left and right middle symbols, a confirmation command, and a customer waiting demo command to the display control means (steps S88 to S90). ). The left and right symbols designated by the display control command are the symbols displayed on the variable display device 9 when the power supply is stopped.

表示制御手段は、確定コマンドを受信すると、左右中の図柄を指定する表示制御コマンドで指定された特別図柄を可変表示装置9に表示させる制御を行う。また、客待ちデモコマンドを受信すると、可変表示装置9の背景等の表示状態を待機状態の表示状態にする制御を行う。   When the display control means receives the confirmation command, the display control means controls the variable display device 9 to display the special symbol designated by the display control command for designating the left and right middle symbols. Further, when the customer waiting demonstration command is received, control is performed so that the display state of the variable display device 9 such as the background is set to the standby display state.

その後、CPU56は、バックアップフラグをクリアする(ステップS91)すなわち、前回の電力供給停止時に所定の記憶保護処理が実行されたことを示すフラグをリセットする。また、スタック領域から各種レジスタの退避値を読み出して、各種レジスタに設定する(ステップS92)。すなわち、レジスタ復元処理を行う。そして、パリティフラグがオンしていない場合には割込許可状態にする(ステップS93,S94)。最後に、AFレジスタ(アキュミュレータとフラグのレジスタ)をスタック領域から復元する(ステップS95)。   Thereafter, the CPU 56 clears the backup flag (step S91), that is, resets a flag indicating that a predetermined storage protection process has been executed when the previous power supply was stopped. Also, the saved values of the various registers are read from the stack area and set in the various registers (step S92). That is, register restoration processing is performed. If the parity flag is not turned on, an interrupt permission state is set (steps S93 and S94). Finally, the AF register (accumulator and flag register) is restored from the stack area (step S95).

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

遊技状態復旧処理が実行されたときには、ステップS8およびステップS9のチェック結果が「Y」であったので、遊技機への電力供給が停止しても記憶内容が記憶保持手段(この例ではバックアップ電源)によって保存される変動データ記憶手段としてのRAMの内容が、遊技機への電力供給停止直前の内容のまま保存されていたことを意味する。従って、大当りとするか否かを決定するための乱数を生成するカウンタのカウント値も保存されていたことになる。よって、CPU56は、保存されていたカウント値からカウンタの歩進を再開することができる。すなわち、遊技制御手段は、遊技状態復旧処理を実行する場合には、電源バックアップされたRAM55に保存されているランダム1生成用カウンタのカウント値(変動データ記憶手段に記憶されている第1数値更新手段の更新値に相当)から、ランダム1生成用カウンタのカウント値の更新を開始することができる。   When the game state restoration process is executed, the check results in step S8 and step S9 are “Y”, so that the stored content is stored in the memory holding means (in this example, the backup power supply even if the power supply to the gaming machine is stopped) This means that the content of the RAM serving as the variation data storage means stored in (1) is stored as it was immediately before the power supply to the gaming machine was stopped. Therefore, the count value of the counter that generates a random number for determining whether or not to win is stored. Therefore, the CPU 56 can restart the increment of the counter from the stored count value. That is, when the game control means executes the game state restoration process, the count value of the random 1 generation counter stored in the power-backed RAM 55 (first numerical value update stored in the fluctuation data storage means) Update of the count value of the random 1 generation counter can be started.

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

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

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

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

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

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

また、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). The solenoid circuit 59 drives the solenoids 16, 21, and 21A in response to a drive command 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. To do.

そして、CPU56は、始動口スイッチ14a、入賞口スイッチ29a,30a,33a,39aおよびカウントスイッチ23の検出信号にもとづく賞球個数の設定などを行う賞球処理を実行する(ステップS32)。具体的には、始動口スイッチ14a、入賞口スイッチ29a,30a,33a,39aおよびカウントスイッチ23がオンしたことにもとづく入賞検出に応じて、払出制御基板37に賞球個数を示す払出制御コマンドを出力する。払出制御基板37に搭載されている払出制御用CPU371は、賞球個数を示す払出制御コマンドに応じて球払出装置97を駆動する。   Then, the CPU 56 executes prize ball processing for setting the number of prize balls based on detection signals from the start opening switch 14a, the prize opening switches 29a, 30a, 33a, 39a and the count switch 23 (step S32). Specifically, a payout control command indicating the number of winning balls is given to the payout control board 37 in response to detection of winning based on the start opening switch 14a, winning opening switches 29a, 30a, 33a, 39a and the count switch 23 being turned on. Output. The payout control CPU 371 mounted on the payout control board 37 drives the ball payout device 97 according to a payout control command indicating the number of prize balls.

さらに、始動口スイッチ14aへの遊技球の入賞にもとづいて始動入賞記憶を増加させるための制御を行う(始動入賞記憶処理:ステップS33)。その後、レジスタの内容を復帰させ(ステップS34)、割込許可状態に設定する(ステップS35)。   Further, control for increasing the start winning memory is performed based on the winning of the game ball to the start port switch 14a (start winning memory processing: step S33). Thereafter, the contents of the register are restored (step S34), and the interrupt permission state is set (step S35).

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

図22は、CPU56が実行する特別図柄プロセス処理のプログラムの一例を示すフローチャートである。図22に示す特別図柄プロセス処理は、図21のフローチャートにおけるステップS26の具体的な処理である。CPU56は、特別図柄プロセス処理を行う際に、変動短縮タイマ減算処理(ステップS310)を行った後に、内部状態(この例では特別図柄プロセスフラグ)に応じて、ステップS300〜S309のうちのいずれかの処理を行う。   FIG. 22 is a flowchart illustrating an example of a special symbol process processing program executed by the CPU 56. The special symbol process shown in FIG. 22 is a specific process of step S26 in the flowchart of FIG. When performing the special symbol process, the CPU 56 performs any one of steps S300 to S309 according to the internal state (in this example, the special symbol process flag) after performing the variable shortening timer subtraction process (step S310). Perform the process.

変動短縮タイマ減算処理は、始動記憶(始動口スイッチ14aがオンしたことの記憶)の記憶可能最大数に対応した個数設けられている変動短縮タイマを減算する処理である。そして、後述する特別図柄大当り判定処理(ステップS301)において、例えば、変動短縮タイマの値が0になっていて、かつ、低確率状態(通常状態)では始動記憶数が始動記憶の最大値、確変状態では始動記憶数が「2」以上であれば、図柄の変動パターンとして変動時間が短縮されたパターンを用いることに決定される。また、始動口スイッチ通過確認処理は、始動口スイッチ14aがオンしたときに所定の各乱数値を取得して記憶する処理である。   The variation shortening timer subtraction process is a process of subtracting the number of variation shortening timers corresponding to the maximum number that can be stored in the start memory (the memory that the start port switch 14a is turned on). In a special symbol jackpot determination process (step S301), which will be described later, for example, when the value of the fluctuation shortening timer is 0 and the low probability state (normal state), the starting memory number is the maximum value of the starting memory, and the probability variation. In the state, if the number of starting memories is “2” or more, it is determined to use a pattern with a shortened variation time as a symbol variation pattern. The start port switch passage confirmation process is a process for acquiring and storing predetermined random numbers when the start port switch 14a is turned on.

ステップS300〜S309において、以下のような処理が行われる。   In steps S300 to S309, the following processing is performed.

特別図柄通常処理(ステップS300):始動記憶数を確認し、始動記憶数が0でなければ、ステップS301に移行するように特別図柄プロセスフラグの値を変更する。   Special symbol normal processing (step S300): The starting memory number is confirmed. If the starting memory number is not 0, the value of the special symbol process flag is changed so as to proceed to step S301.

特別図柄大当り判定処理(ステップS301):始動入賞があったときに記憶された各種乱数を格納するバッファ等の内容をシフトする。シフトの結果、押し出されたバッファの内容にもとづいて大当りとするか否かを決定する。なお、バッファは、始動入賞の記憶可能最大数だけ用意されている。また、シフトによって押し出されたバッファの内容は、最も前に生じた始動入賞に応じた内容である。そして、大当りとすることに決定した場合には、大当りフラグをセットする。その後、ステップS302に移行するように特別図柄プロセスフラグの値を変更する。   Special symbol jackpot determination process (step S301): The contents of a buffer or the like for storing various random numbers stored when a start win is received are shifted. As a result of the shift, it is determined whether or not to make a big hit based on the contents of the pushed-out buffer. Note that the maximum number of buffers that can be stored for start winnings is prepared. Further, the content of the buffer pushed out by the shift is the content corresponding to the start winning that occurred most recently. If it is decided to win, the big hit flag is set. Thereafter, the value of the special symbol process flag is changed so as to proceed to step S302.

停止図柄設定処理(ステップS302):特別図柄の可変表示の表示結果である左右中図柄の停止図柄を決定する。そして、ステップS303に移行するように特別図柄プロセスフラグの値を変更する。   Stop symbol setting process (step S302): The stop symbol of the left and right middle symbols, which is the display result of the variable symbol variable display, is determined. Then, the value of the special symbol process flag is changed so as to proceed to step S303.

変動パターン設定処理(ステップS303):特別図柄の可変表示のパターンすなわち可変表示パターン(変動パターン)を決定する。そして、決定された変動パターンおよび停止図柄等を通知するための表示制御コマンドを図柄制御基板80等に対して出力するための処理を行う。その後、ステップS304に移行するように特別図柄プロセスフラグの値を変更する。   Fluctuation pattern setting process (step S303): A special symbol variable display pattern, that is, a variable display pattern (variation pattern) is determined. Then, a process for outputting a display control command for notifying the determined variation pattern and stop symbol to the symbol control board 80 or the like is performed. Thereafter, the value of the special symbol process flag is changed so as to proceed to step S304.

特別図柄変動処理(ステップS304):変動パターンに応じて決められている変動時間が経過したか否か確認する。経過していれば、ステップS305に移行するように特別図柄プロセスフラグの値を変更する。   Special symbol variation processing (step S304): It is confirmed whether or not the variation time determined according to the variation pattern has elapsed. If it has elapsed, the value of the special symbol process flag is changed so as to proceed to step S305.

特別図柄図柄停止処理(ステップS305):一定時間(例えば1.000秒)が経過した後、大当りとすることに決定されている場合には、ステップS306に移行するように特別図柄プロセスフラグの値を変更する。そうでなければ、ステップS300に移行するように特別図柄プロセスフラグの値を変更する。   Special symbol stop process (step S305): When a predetermined time (for example, 1.000 seconds) has passed and it has been decided to win, the value of the special symbol process flag is shifted to step S306. To change. Otherwise, the value of the special symbol process flag is changed so as to proceed to step S300.

大入賞口開放前処理(ステップS306):大入賞口を開放する制御を開始する。具体的には、カウンタやフラグを初期化するとともに、ソレノイド54を駆動して大入賞口を開放する。そして、ステップS307に移行するように特別図柄プロセスフラグの値を変更する。   Preliminary winning opening opening process (step S306): Control for opening the large winning opening is started. Specifically, the counter and flag are initialized, and the solenoid 54 is driven to open the special winning opening. Then, the value of the special symbol process flag is changed so as to proceed to step S307.

大入賞口開放中処理(ステップS307):大入賞口の閉成条件の成立を確認する処理等を行う。大入賞口の閉成条件が成立したら、ステップS308に移行するように特別図柄プロセスフラグの値を変更する。   Processing for opening a special winning opening (step S307): A process for confirming the closing condition of the special winning opening is performed. If the closing condition for the big prize opening is satisfied, the value of the special symbol process flag is changed so as to proceed to step S308.

特定領域有効時間処理(ステップS308):V入賞スイッチ22の通過の有無を監視して、大当り遊技状態継続条件の成立を確認する処理を行う。大当り遊技状態継続の条件が成立し、かつ、まだ残りラウンドがある場合には、ステップS307に移行するように特別図柄プロセスフラグの値を変更する。また、所定の有効時間内に大当り遊技状態継続条件が成立しなかった場合、または、全てのラウンドを終えた場合には、ステップS309に移行するように特別図柄プロセスフラグの値を変更する。   Specific area valid time process (step S308): The presence / absence of passing of the V winning switch 22 is monitored, and the process of confirming that the big hit gaming state continuation condition is satisfied is performed. If the condition for continuation of the big hit gaming state is satisfied and there are still remaining rounds, the value of the special symbol process flag is changed so as to proceed to step S307. Further, when the big hit gaming state continuation condition is not satisfied within the predetermined effective time, or when all rounds are finished, the value of the special symbol process flag is changed so as to proceed to step S309.

大当り終了処理(ステップS309):大当り遊技状態が終了したことを遊技者に報知するための表示をランプ制御手段等に行わせる制御を行う。そして、ステップS300に移行するように特別図柄プロセスフラグの値を変更する。   Big hit end processing (step S309): Control is performed to cause the lamp control means or the like to display to notify the player that the big hit gaming state has ended. Then, the value of the special symbol process flag is changed so as to proceed to step S300.

図23は、図21に示された遊技制御処理における始動入賞記憶処理(ステップS33)のうち特別図柄始動入賞記憶に関わる部分を示すフローチャートである。打球が遊技盤6に設けられている始動入賞口14に入賞すると、始動口スイッチ14aがオンする。CPU56は、スイッチ回路58および入力ポート578を介して始動口スイッチ14aがオンしたことを判定すると(ステップS41)、始動記憶数が上限値(この例では4)に達しているかどうか確認する(ステップS42)。始動記憶数が上限値に達していなければ、始動記憶数を1増やし(ステップS43)、大当り判定用乱数等の各乱数の値を抽出する。そして、それらを始動記憶数の値に対応した乱数値格納エリアに格納する(ステップS44)。始動記憶数が上限値に達している場合には、始動記憶数を増やす処理を行わない。   FIG. 23 is a flowchart showing a part related to special symbol start winning memory in the starting winning memory process (step S33) in the game control process shown in FIG. When the hit ball wins the start winning opening 14 provided in the game board 6, the start opening switch 14a is turned on. When the CPU 56 determines that the start port switch 14a is turned on via the switch circuit 58 and the input port 578 (step S41), the CPU 56 checks whether or not the start memory number has reached the upper limit value (4 in this example) (step S41). S42). If the starting memory number has not reached the upper limit value, the starting memory number is increased by 1 (step S43), and the value of each random number such as a big hit determination random number is extracted. Then, they are stored in a random value storage area corresponding to the value of the starting memory number (step S44). When the starting memory number has reached the upper limit value, the process for increasing the starting memory number is not performed.

そして、CPU56は、可変表示装置9において図柄(特別図柄)の可変表示(変動)を開始できる状態にあるか否かを確認する(ステップS45)。例えば、特別図柄プロセスフラグがステップS300の通常処理に対応した値である場合に、特別図柄の可変表示を開始できる状態にあると判断する。特別図柄の可変表示を開始できる状態でなければ、ランプ制御基板35に、始動記憶表示器18の表示数(点灯しているLED数)を1増やすためのランプ制御コマンドを送信するための制御を行う(ステップS46)。   Then, the CPU 56 checks whether or not the variable display device 9 can start variable display (variation) of the symbol (special symbol) (step S45). For example, when the special symbol process flag has a value corresponding to the normal process in step S300, it is determined that the special symbol variable display can be started. If the special symbol variable display cannot be started, the lamp control board 35 is controlled to transmit a lamp control command for increasing the display number of the start memory display 18 (the number of lit LEDs) by one. This is performed (step S46).

CPU56は、ステップS25の特別図柄プロセス処理において、図24に示すように始動記憶数の値を確認する(ステップS51)。始動記憶数が0でなければ、始動記憶;1(1番目の始動記憶)に対応する乱数値格納エリアに格納されている値を読み出すとともに(ステップS52)、始動記憶数の値を1減らし、かつ、各乱数値格納エリアの値をシフトする(ステップS53)。すなわち、始動記憶;n(n=2,・・・,4)に対応する乱数値格納エリアに格納されている各値を、始動記憶:n−1に対応する乱数値格納エリアに格納する。なお、そのときの始動記憶数に対応した乱数値格納エリアの内容をクリアする。例えば、始動記憶数が4であった場合には、始動記憶;4に対応した特別図柄乱数値格納エリアの内容をクリアする。   In the special symbol process of step S25, the CPU 56 checks the value of the start memory number as shown in FIG. 24 (step S51). If the starting memory number is not 0, the value stored in the random number storage area corresponding to the starting memory; 1 (first starting memory) is read (step S52), and the value of the starting memory number is decreased by 1, And the value of each random value storage area is shifted (step S53). That is, each value stored in the random number value storage area corresponding to the start memory; n (n = 2,..., 4) is stored in the random number value storage area corresponding to the start memory: n−1. Note that the contents of the random number storage area corresponding to the start memory number at that time are cleared. For example, when the start memory number is 4, the contents of the special symbol random number storage area corresponding to the start memory; 4 are cleared.

また、始動記憶数が1減らされたので、新たな始動記憶数をランプ制御手段に通知するために、始動記憶数指定コマンドの送出要求のための処理を行う(ステップS65)。   Further, since the starting memory number is decremented by 1, processing for sending a starting memory number designation command is performed in order to notify the lamp control means of the new starting memory number (step S65).

そして、CPU56は、ステップS52で読み出した値、すなわち抽出されている大当り判定用乱数(特別図柄判定用乱数)の値にもとづいて当り/はずれを決定する(ステップS54)。ここでは、大当り判定用乱数は0〜316の範囲の値をとることにする。そして、図25に示すように、通常状態では、例えばその値が「3」である場合に「大当り」と決定し、それ以外の値である場合には「はずれ」と決定する。また、高確率状態(確変状態)では、例えばその値が「3」,「7」,「79」,「103」,「107」のいずれかである場合に「大当り」と決定し、それ以外の値である場合には「はずれ」と決定する。   Then, the CPU 56 determines the winning / losing based on the value read in step S52, that is, the value of the extracted jackpot determination random number (special symbol determination random number) (step S54). Here, the jackpot determination random number takes a value in the range of 0 to 316. Then, as shown in FIG. 25, in the normal state, for example, when the value is “3”, it is determined as “big hit”, and when it is other than that, it is determined as “out”. Further, in the high probability state (probability variation state), for example, when the value is any of “3”, “7”, “79”, “103”, “107”, it is determined as “big hit”, otherwise If it is the value of, it is determined as “out of”.

図26は、各乱数を示す説明図である。各乱数は、以下のように使用される。
(1)ランダム1:大当りを発生させるか否か決定する(大当り判定用)
(2)ランダム2−1〜2−3:特別図柄の左右中のはずれ図柄決定用(特別図柄左右中)
(3)ランダム3:大当りを発生させる特別図柄の組合せを決定する(大当り図柄決定用)
(4)ランダム4:特別図柄の変動パターンを決定する(変動パターン決定用)
(5)ランダム5:普通図柄にもとづく当りを発生させるか否か決定する(普通図柄当り判定用)
(6)ランダム6:ランダム1の初期値を決定する(ランダム1初期値決定用)
(7)ランダム7:ランダム5の初期値を決定する(ランダム5初期値決定用)
FIG. 26 is an explanatory diagram showing each random number. Each random number is used as follows.
(1) Random 1: Decide whether or not to generate a big hit (for big hit judgment)
(2) Random 2-1 to 2-3: For determining the off-right symbol in the left and right of the special symbol (special symbol right and left)
(3) Random 3: Determines the combination of special symbols that generate a big hit (for determining big hit symbols)
(4) Random 4: Determine the variation pattern of the special symbol (for variation pattern determination)
(5) Random 5: Determines whether or not to generate a hit based on a normal symbol (for normal symbol hit determination)
(6) Random 6: Determine the initial value of random 1 (for determining the random 1 initial value)
(7) Random 7: Determine the initial value of random 5 (for determining the random 5 initial value)

なお、図21に示された遊技制御処理におけるステップS23では、CPU56は、(1)の大当り判定用乱数、(3)の大当り図柄決定用乱数、および(5)の普通図柄当り判定用乱数を生成するためのカウンタのカウントアップ(1加算)を行う。すなわち、それらが判定用乱数であり、それら以外の乱数が表示用乱数または初期値用乱数である。なお、遊技効果を高めるために、上記(1)〜(7)の乱数以外の普通図柄に関する乱数等も用いられている。   In step S23 in the game control process shown in FIG. 21, the CPU 56 obtains (1) big hit determination random number, (3) big hit symbol determination random number, and (5) normal symbol determination random number. The counter for generating is incremented (added by 1). That is, they are determination random numbers, and other random numbers are display random numbers or initial value random numbers. In order to enhance the game effect, random numbers related to ordinary symbols other than the random numbers (1) to (7) are also used.

図24に示すステップS54において、大当りと判定されたときには、大当り図柄用乱数(ランダム3)の値に従って大当り図柄を決定する(ステップS55)。この実施の形態では、ランダム3の値に応じた大当り図柄テーブルに設定されている図柄番号の各図柄が、大当り図柄として決定される。大当り図柄テーブルには、複数種類の大当り図柄の組み合わせのそれぞれに対応した左右中の図柄番号が設定されている。また、変動パターン決定用乱数(ランダム4)を抽出し、ランダム4の値にもとづいて特別図柄の変動パターンを決定する(ステップS56)。   In step S54 shown in FIG. 24, when it is determined that the jackpot is a jackpot symbol is determined according to the value of the jackpot symbol random number (random 3) (step S55). In this embodiment, each symbol of the symbol number set in the jackpot symbol table corresponding to the value of random 3 is determined as a jackpot symbol. In the jackpot symbol table, left and right symbol numbers corresponding to combinations of a plurality of types of jackpot symbols are set. Further, the random number for determining the variation pattern (random 4) is extracted, and the variation pattern of the special symbol is determined based on the random 4 value (step S56).

はずれと判定された場合には、CPU56は、大当りとしない場合の停止図柄の決定を行う。この実施の形態では、ステップS52で読み出した値、すなわち抽出されているランダム2−1の値に従って左図柄を決定する(ステップS57)。また、ランダム2−2の値に従って中図柄を決定する(ステップS58)。そして、ランダム2−3の値に従って右図柄を決定する(ステップS59)。ここで、決定された中図柄が左右図柄と一致した場合には、中図柄に対応した乱数の値に1加算した値に対応する図柄を中図柄の停止図柄として、大当り図柄と一致しないようにする。   When it is determined that there is a loss, the CPU 56 determines a stop symbol when it is not a big hit. In this embodiment, the left symbol is determined according to the value read in step S52, that is, the extracted random 2-1 value (step S57). Further, the medium symbol is determined according to the value of random 2-2 (step S58). Then, the right symbol is determined according to the random 2-3 value (step S59). Here, if the determined middle symbol matches the left and right symbols, the symbol corresponding to the value obtained by adding 1 to the random number corresponding to the middle symbol is set as the stop symbol of the middle symbol so that it does not match the jackpot symbol. To do.

さらに、CPU56は、リーチすることに決定されたか否か(左右の停止図柄が揃っているか否か)を確認し(ステップS60)、リーチすることに決定されている場合には、変動パターン決定用乱数(ランダム4)の値を抽出し、ランダム4にもとづいて図柄の変動パターンを決定する(ステップS61)。   Further, the CPU 56 confirms whether or not it is determined to reach (whether or not the left and right stop symbols are aligned) (step S60). A random number (random 4) value is extracted, and a symbol variation pattern is determined based on random 4 (step S61).

リーチすることに決定されていない場合には、確変状態か否かを確認する(ステップS62)。確変状態であれば変動パターンをはずれ時短縮変動パターンとすることに決定する(ステップS63)。確変状態でなければ変動パターンをはずれ時の通常変動パターンとすることに決定する(ステップS64)。なお、はずれ時短縮変動パターンは、左右中の図柄の変動時間が例えば4.0秒という通常変動パターンよりも変動期間が短い変動パターンである。   If it is not decided to reach, it is confirmed whether or not it is in the probability variation state (step S62). If it is in the probability variation state, the variation pattern is determined to be the off-time variation variation pattern (step S63). If it is not the probability variation state, the variation pattern is determined to be the normal variation pattern at the time of detachment (step S64). In addition, the fluctuation pattern shortened at the time of detachment is a fluctuation pattern in which the fluctuation period is shorter than the normal fluctuation pattern in which the fluctuation time of the left and right symbols is 4.0 seconds, for example.

以上のようにして、始動入賞にもとづく図柄の変動態様を、リーチ態様とするか、はずれ態様とするか決定され、それぞれの停止図柄の組合せが決定される。すなわち、特別図柄の変動態様として、リーチ演出を行うのか行わないのかが決定されるとともに停止図柄の組合せが決定される。   As described above, it is determined whether the pattern variation mode based on the start winning is the reach mode or the off mode, and the combination of the respective stop symbols is determined. That is, as a variation pattern of the special symbol, it is determined whether or not the reach effect is performed, and the combination of the stop symbols is determined.

なお、図24に示された処理は、図22に示された特別図柄プロセス処理におけるステップS301〜S303の処理をまとめて示した場合の処理に相当する。また、この実施の形態では、左右中図柄の停止図柄が揃った場合に大当りが発生する。左右図柄のみが揃った場合にリーチとなる。   The process shown in FIG. 24 corresponds to the process in the case where the processes of steps S301 to S303 in the special symbol process shown in FIG. 22 are collectively shown. In this embodiment, a big hit occurs when the left and right middle symbols are aligned. Reach when only left and right symbols are available.

図27および図28は、図21に示された遊技制御処理で実行される判定用乱数更新処理(ステップS23)の一例を示すフローチャートである。判定用乱数更新処理において、CPU56は、ランダム1(大当り判定用乱数)を生成するためのカウンタ(ランダム1生成用カウンタ)のカウント値を+1する(ステップS101)。そして、ランダム1を生成するためのカウンタのカウント値が(最大値+1)以上になっている場合には(ステップS102)、値を0に戻す(ステップS103)。なお、この実施の形態では、(最大値+1)は317である。また、所定のタイミングでランダム1を生成するためのカウンタ(ランダム1生成用カウンタ)から読み出された値が、抽出されたランダム1(大当り判定用乱数)である。同様に、他のランダム2等を生成するためのカウンタから読み出された値が、抽出されたランダム2等である。以下、ランダムn(n:1,2,・・・)を生成するためのカウンタをランダムn生成用カウンタということがある。   27 and 28 are flowcharts showing an example of the determination random number update process (step S23) executed in the game control process shown in FIG. In the determination random number update process, the CPU 56 increments the count value of a counter (random 1 generation counter) for generating random 1 (big hit determination random number) (step S101). When the count value of the counter for generating random 1 is equal to or greater than (maximum value + 1) (step S102), the value is returned to 0 (step S103). In this embodiment, (maximum value + 1) is 317. A value read from a counter (random 1 generation counter) for generating random 1 at a predetermined timing is the extracted random 1 (big hit determination random number). Similarly, the value read from the counter for generating other random 2 etc. is the extracted random 2 etc. Hereinafter, a counter for generating random n (n: 1, 2,...) May be referred to as a random n generating counter.

次いで、CPU56は、ランダム1生成用カウンタのカウント値が初期値としてランダム1用初期値バッファに保存されている値と一致したか否か確認する(ステップS104)。一致していなければ、カウント値はそのままである。一致していた場合には、ランダム6(ランダム1初期値決定用乱数)を抽出する(ステップS105)。すなわち、ランダム6を生成するためのカウンタ(ランダム6生成用カウンタ)のカウント値を入力する。そして、抽出された値を初期値としてランダム1用初期値バッファに保存するとともに(ステップS106)、抽出された値を、ランダム1を生成するためのカウンタに設定する(ステップS107)。よって、この時点で、ランダム1を生成するためのカウンタ(ランダム1生成用カウンタ)の初期値が変更される。   Next, the CPU 56 checks whether or not the count value of the random 1 generation counter matches the value stored in the random 1 initial value buffer as an initial value (step S104). If they do not match, the count value remains unchanged. If they match, random 6 (random 1 initial value determination random number) is extracted (step S105). That is, a count value of a counter for generating random 6 (random 6 generation counter) is input. Then, the extracted value is stored as an initial value in the initial value buffer for random 1 (step S106), and the extracted value is set in a counter for generating random 1 (step S107). Therefore, at this time, the initial value of the counter for generating random 1 (random 1 generating counter) is changed.

次に、ランダム3(大当り図柄決定用乱数)を生成するためのカウンタ(ランダム3生成用カウンタ)のカウント値を+1する(ステップS108)。ランダム3生成用カウンタのカウント値が(最大値+1)以上になっている場合には(ステップS109)、カウント値を0に戻す(ステップS110)。なお、この実施の形態では、(最大値+1)は12である。   Next, +1 is added to the count value of a counter (random 3 generation counter) for generating random 3 (a big hit symbol determination random number) (step S108). When the count value of the random 3 generation counter is equal to or greater than (maximum value + 1) (step S109), the count value is returned to 0 (step S110). In this embodiment, (maximum value + 1) is 12.

また、ランダム5(普通図柄当り判定用乱数)を生成するためのカウンタ(ランダム5生成用カウンタ)のカウント値を+1する(ステップS121)。ランダム5を生成するためのカウンタのカウント値が(最大値+1)以上になっている場合には(ステップS122)、カウント値を3に戻す(ステップS123)。なお、この実施の形態では、(最大値+1)は14である。   Also, the count value of a counter (random 5 generation counter) for generating random 5 (normal random number for determination per symbol) is incremented by 1 (step S121). When the count value of the counter for generating random 5 is equal to or greater than (maximum value + 1) (step S122), the count value is returned to 3 (step S123). In this embodiment, (maximum value + 1) is 14.

そして、CPU56は、ランダム5生成用カウンタのカウント値が初期値としてランダム5用初期値バッファに保存されている値と一致したか否か確認する(ステップS124)。一致していなければ、カウント値はそのままである。一致していた場合には、ランダム7(ランダム5初期値決定用乱数)を抽出する(ステップS125)。すなわち、ランダム7を生成するためのカウンタ(ランダム7生成用カウンタ)のカウント値を入力する。そして、抽出された値を初期値としてランダム5用初期値バッファに保存するとともに(ステップS126)、抽出された値を、ランダム5生成用カウンタに設定する(ステップS127)。よって、この時点で、ランダム5生成用カウンタの初期値が変更される。なお、遊技機に電源が投入されたときに初期値として「3」がランダム5を生成するためのカウンタに設定されるが、バックアップRAMにランダム5の値が保存されていた場合には電源投入時に保存値に戻される。また、ランダム5用初期値バッファもバックアップRAMに形成される。   Then, the CPU 56 checks whether or not the count value of the random 5 generation counter matches the value stored in the random 5 initial value buffer as an initial value (step S124). If they do not match, the count value remains unchanged. If they match, random 7 (random 5 initial value determination random number) is extracted (step S125). That is, the count value of a counter for generating random 7 (random 7 generation counter) is input. The extracted value is stored as an initial value in the random 5 initial value buffer (step S126), and the extracted value is set in the random 5 generation counter (step S127). Therefore, at this time, the initial value of the random 5 generation counter is changed. When the game machine is turned on, “3” is set as an initial value to the counter for generating random 5, but if the value of random 5 is stored in the backup RAM, the power is turned on. Sometimes restored to saved value. A random 5 initial value buffer is also formed in the backup RAM.

図29は、図21に示された遊技制御処理において1回実行されるとともに(ステップS25)、図19に示されたメイン処理における割込余り時間(遊技制御処理終了後、次回の2msタイマ割込が発生するまでの時間)で繰り返し実行される(ステップS18)初期値用乱数更新処理の一例を示すフローチャートである。   FIG. 29 is executed once in the game control process shown in FIG. 21 (step S25), and the interrupt surplus time in the main process shown in FIG. It is a flowchart showing an example of an initial value random number update process (step S18) that is repeatedly executed at a time until the occurrence of the error.

初期値用乱数更新処理において、CPU56は、ランダム6(ランダム1初期値決定用乱数)を生成するためのカウンタ(ランダム6生成用カウンタ)のカウント値を+1する(ステップS131)。ランダム6生成用カウンタのカウント値が(最大値+1)以上になっている場合には(ステップS132)、カウント値を0に戻す(ステップS133)。なお、(最大値+1)は、ランダム1の場合と同様に317である。   In the initial value random number update process, the CPU 56 increments the count value of the counter (random 6 generation counter) for generating random 6 (random 1 initial value determination random number) (step S131). If the count value of the random 6 generation counter is equal to or greater than (maximum value + 1) (step S132), the count value is returned to 0 (step S133). Note that (maximum value + 1) is 317 as in the case of random 1.

また、ランダム7生成用カウンタのカウント値を+1する(ステップS134)。ランダム7生成用カウンタのカウント値が(最大値+1)以上になっている場合には(ステップS135)、カウント値を3に戻す(ステップS136)。なお、(最大値+1)は、ランダム5の場合と同様に14である。   Also, the count value of the random 7 generation counter is incremented by 1 (step S134). If the count value of the random 7 generation counter is equal to or greater than (maximum value + 1) (step S135), the count value is returned to 3 (step S136). Note that (maximum value + 1) is 14 as in the case of random 5.

図30は、図21に示された遊技制御処理において1回実行されるとともに(ステップS24)、図19に示されたメイン処理における割込余り時間で繰り返し実行される(ステップS17)表示用乱数更新処理の一例を示すフローチャートである。   FIG. 30 is executed once in the game control process shown in FIG. 21 (step S24), and is repeatedly executed in the surplus interruption time in the main process shown in FIG. 19 (step S17). It is a flowchart which shows an example of an update process.

表示用乱数更新処理において、CPU56は、ランダム4(変動パターン決定用乱数)を生成するためのカウンタ(ランダム4生成用カウンタ)のカウント値を+3する(ステップS151)。ランダム4生成用カウンタのカウント値が251以上になっている場合には(ステップS152)、ランダム4生成用カウンタのカウント値を251減らす(ステップS153)。   In the display random number update process, the CPU 56 increments the count value of the counter (random 4 generation counter) for generating random 4 (variation pattern determining random number) (step S151). When the count value of the random 4 generation counter is 251 or more (step S152), the count value of the random 4 generation counter is decreased by 251 (step S153).

なお、この実施の形態では、ランダム4の最大値は250であるが、ランダム4生成用カウンタのカウント値は3ずつ増えていくので、値が0から始まった場合には、249になった後には252になる。すると、251減らすと、その値は1になる。また、値が1から始まった場合には、250になった後に253になる。すると、251減らすと、その値は2になる。また、値が2から始まった場合には、248になった後に251になる。すると、251減らすと、その値は0になる。すなわち、ランダム4の値の初期値(最大値を越えて値が戻された後の値)も、ある程度ランダムになっている。   In this embodiment, the maximum value of random 4 is 250, but the count value of the random 4 generation counter is incremented by 3. Therefore, if the value starts from 0, it will be 249. Becomes 252. Then, when 251 is decreased, the value becomes 1. When the value starts from 1, it becomes 253 after it becomes 250. Then, when 251 is reduced, the value becomes 2. When the value starts from 2, it becomes 251 after becoming 248. Then, when 251 is decreased, the value becomes 0. That is, the initial value of the random 4 value (the value after the value is returned beyond the maximum value) is also somewhat random.

次に、ランダム2−1(左のはずれ図柄決定用乱数)を生成するためのカウンタ(ランダム2−1生成用カウンタ)のカウント値を+1する(ステップS154)。ランダム2−1生成用カウンタのカウント値が(最大値+1)以上になっている場合には(ステップS155)、カウント値を0に戻す(ステップS156)。なお、この実施の形態では、(最大値+1)は12である。   Next, +1 is added to the count value of a counter (random 2-1 generation counter) for generating random 2-1 (left off symbol determination random number) (step S154). When the count value of the random 2-1 generation counter is equal to or greater than (maximum value + 1) (step S155), the count value is returned to 0 (step S156). In this embodiment, (maximum value + 1) is 12.

ランダム2−1生成用カウンタのカウント値が(最大値+1)以上になって値が0に戻された場合、すなわち桁上げが生じた場合には、ランダム2−2(中のはずれ図柄決定用乱数)を生成するためのカウンタ(ランダム2−2生成用カウンタ)のカウント値を+1する(ステップS157)。ランダム2−2生成用カウンタのカウント値が(最大値+1)以上になっている場合には(ステップS158)、カウント値を0に戻す(ステップS159)。なお、この実施の形態では、(最大値+1)は12である。   When the count value of the random 2-1 generation counter becomes (maximum value +1) or more and the value is returned to 0, that is, when a carry occurs, random 2-2 (for determining the out of symbol) The count value of a counter (random 2-2 generation counter) for generating (random number) is incremented by 1 (step S157). When the count value of the random 2-2 generation counter is equal to or greater than (maximum value + 1) (step S158), the count value is returned to 0 (step S159). In this embodiment, (maximum value + 1) is 12.

ランダム2−2生成用カウンタのカウント値が(最大値+1)以上になって値が0に戻された場合、すなわち桁上げが生じた場合には、ランダム2−3(右のはずれ図柄決定用乱数)を生成するためのカウンタ(ランダム2−3生成用カウンタ)のカウント値を+1する(ステップS160)。ランダム2−3生成用カウンタのカウント値が(最大値+1)以上になっている場合には(ステップS161)、カウント値を0に戻す(ステップS162)。なお、この実施の形態では、(最大値+1)は12である。   When the count value of the random 2-2 generation counter becomes (maximum value +1) or more and the value is returned to 0, that is, when a carry occurs, random 2-3 (for determining the right off symbol) The counter value for generating (random number) (random 2-3 generation counter) is incremented by 1 (step S160). When the count value of the random 2-3 generation counter is (maximum value + 1) or more (step S161), the count value is returned to 0 (step S162). In this embodiment, (maximum value + 1) is 12.

図31は、図27および図28に示された判定用乱数更新処理によって変化するランダム1(大当り判定用乱数)を生成するためのカウンタ(ランダム1生成用カウンタ)の値の一例を示す説明図である。遊技機への電力供給が開始され初期化処理が実行されたときには、ランダム1生成用カウンタの最初の値は、ラッチ回路932を介して入力したカウンタ931のカウント値(不定な値)になっている。また、最初はランダム1用初期値バッファに「0」が設定されているので、ランダム1生成用カウンタのカウント値が「316」まで進み、そこで+1されて値が0に戻ると(ステップS101,S102,S103)、ステップS104の処理でランダム1生成用カウンタのカウント値が初期値と一致したことが検出される。すると、ステップS105の処理でランダム6(ランダム1初期値決定用乱数)が抽出される。なお、この時点は、図31においてAで示されている。   FIG. 31 is an explanatory diagram illustrating an example of a value of a counter (random 1 generation counter) for generating random 1 (big hit determination random number) that is changed by the determination random number update process illustrated in FIGS. 27 and 28. It is. When the power supply to the gaming machine is started and the initialization process is executed, the initial value of the random 1 generation counter becomes the count value (undefined value) of the counter 931 input via the latch circuit 932. Yes. Also, since “0” is initially set in the random 1 initial value buffer, the count value of the random 1 generation counter advances to “316”, and is incremented by 1 to return to 0 (step S101, (S102, S103) and the processing of step S104, it is detected that the count value of the random 1 generation counter matches the initial value. Then, random 6 (random 1 initial value determination random number) is extracted in the process of step S105. This time point is indicated by A in FIG.

ここで、その時点のランダム6生成用カウンタのカウント値が「19」であったとする。すると、ランダム6として「19」が抽出され、その値が保存されるとともに(ステップS106)、ランダム1生成用カウンタにその値が設定される。従って、この時点から、ランダム1を生成するためのカウンタは、初期値「19」から歩進することになる。   Here, it is assumed that the count value of the random 6 generation counter at that time is “19”. Then, “19” is extracted as random 6, the value is stored (step S106), and the value is set in the random 1 generation counter. Therefore, from this time point, the counter for generating random 1 advances from the initial value “19”.

ランダム1生成用カウンタのカウント値が歩進して「19」になると、ステップS104の処理でカウント値が初期値と一致したことが検出される。すると、ステップS105の処理でランダム6が抽出される。なお、この時点は、図31においてBで示されている。その時点のランダム6生成用カウンタのカウント値が「195」であったとする。すると、ランダム6として「195」が抽出され、その値が保存されるとともに(ステップS106)、ランダム1生成用カウンタにその値が設定される。従って、この時点から、ランダム1生成用カウンタは、初期値「195」から歩進する。   When the count value of the random 1 generation counter advances to “19”, it is detected in step S104 that the count value matches the initial value. Then, random 6 is extracted by the process of step S105. This time point is indicated by B in FIG. Assume that the count value of the random 6 generation counter at that time is “195”. Then, “195” is extracted as random 6, the value is stored (step S106), and the value is set in the random 1 generation counter. Therefore, from this point, the random 1 generation counter advances from the initial value “195”.

そして、ランダム1生成用カウンタの値が歩進して「195」になると、ステップS104の処理でカウント値が初期値と一致したことが検出される。すると、ステップS105の処理でランダム6が抽出される。なお、この時点は、図31においてCで示されている。その時点のランダム6生成用カウンタのカウント値が「n」であったとする。すると、ランダム6として「n」が抽出され、その値が保存されるとともに(ステップS106)、ランダム1生成用カウンタにその値が設定される。従って、この時点から、ランダム1生成用カウンタは、初期値「n」から歩進する。なお、図31において、星印(☆)は、カウント値が「3(低確率時の大当り判定値)」となる位置を示している。   When the value of the random 1 generation counter advances to “195”, it is detected in step S104 that the count value matches the initial value. Then, random 6 is extracted by the process of step S105. This time point is indicated by C in FIG. Assume that the count value of the random 6 generation counter at that time is “n”. Then, “n” is extracted as random 6, the value is stored (step S106), and the value is set in the random 1 generation counter. Therefore, from this point, the random 1 generation counter advances from the initial value “n”. In FIG. 31, an asterisk (☆) indicates a position where the count value is “3 (big hit determination value at low probability)”.

以上のように、ランダム1生成用カウンタには、初期化処理においてランダムな値が設定される。すなわち、遊技制御手段は、初期化処理を実行する場合には、特定遊技状態(この例では大当り遊技状態)とするか否かを決定するための数値を更新する判定用数値更新手段(第1数値更新手段)としてのランダム1生成用カウンタの更新を、計数手段(この例ではカウンタ931およびラッチ回路932)の計数値、すなわち第2数値更新手段の数値にもとづいて開始する。よって、ランダム1生成用カウンタのカウントの1周目(最初に最大値316を越えるまで)で、カウント値が大当り判定値と一致するタイミングを検出することは困難である。   As described above, the random 1 generation counter is set to a random value in the initialization process. That is, when executing the initialization process, the game control means updates the numerical value for determining whether or not to enter a specific gaming state (in this example, a big hit gaming state). The update of the random 1 generating counter as the numerical value updating means) is started based on the count value of the counting means (in this example, the counter 931 and the latch circuit 932), that is, the numerical value of the second numerical value updating means. Therefore, it is difficult to detect the timing at which the count value coincides with the big hit determination value in the first round of the count of the random 1 generation counter (until the maximum value 316 is initially exceeded).

また、その後、ランダム1生成用カウンタのカウント値が1周(317カウント)する度に、ランダム6生成用カウンタからの抽出値にもとづいて、ランダム1生成用カウンタのカウント値として新たな初期値が設定され、以後、カウンタはその値から歩進していく。すなわち、遊技制御手段は、第1数値更新手段としての判定用数値更新手段の更新を計数手段の計数値(第2数値更新手段の数値)にもとづいて開始した後では、遊技制御処理中で更新する初期値用数値更新手段としてのランダム6生成用カウンタの数値(カウント値)を用いてランダム1生成用カウンタの初期値を更新する。ランダム1生成用カウンタの初期値を決定するためのカウンタ(ランダム6生成用カウンタ)は、CPU56が実行する遊技制御処理の余り時間(遊技制御処理が終了してから次に2msタイマ割込が発生するまでの時間)でカウントアップされている。そして、その余り時間は、遊技の進行状況に応じて異なるので、ランダムな期間になっている。その結果、生成されるランダム6の値もランダムな値になるので、大当り判定用カウンタの初期値もランダムに変化する。   Thereafter, each time the count value of the random 1 generation counter makes one round (317 counts), a new initial value is generated as the count value of the random 1 generation counter based on the extracted value from the random 6 generation counter. After that, the counter advances from that value. That is, the game control means updates the game control process after starting the updating of the determination numerical value update means as the first numerical value update means based on the count value of the counting means (the numerical value of the second numerical value update means). The initial value of the random 1 generation counter is updated using the numerical value (count value) of the random 6 generation counter as the initial value numerical value updating means. The counter for determining the initial value of the random 1 generation counter (random 6 generation counter) is an extra time for the game control process executed by the CPU 56 (the next 2 ms timer interrupt occurs after the game control process is completed) The time is counted up. The extra time varies depending on the progress of the game, and is a random period. As a result, since the generated random 6 value is also a random value, the initial value of the jackpot determination counter also changes randomly.

つまり、大当り判定用カウンタとしてのランダム1生成用カウンタのカウントの1周目ではハードウェア回路のカウント値にもとづいてランダムな初期値が設定されるとともに、その後、ランダム1生成用カウンタのカウント値が1周する度に、ランダム1生成用カウンタは、ソフトウェアによるカウンタのカウント値のもとづくランダムな初期値からあらためてカウンタの歩進が始まる。すると、不正基板が主基板31に接続され、主基板31から出力される信号にもとづいて大当り判定用カウント値更新タイミングが認識されたとしても、ランダム1生成用カウンタのカウント値が大当り判定値になるタイミングをねらって不正な始動入賞信号を主基板31に送り込むことは困難になる。この実施の形態によれば、図31に星印で示されたように、ランダム1生成用カウンタのカウント値が大当り判定値になるタイミングに規則性はなくランダムになっているからである。   That is, a random initial value is set based on the count value of the hardware circuit in the first round of the count of the random 1 generation counter as the big hit determination counter, and thereafter the count value of the random 1 generation counter is Every time one round is made, the random 1 generation counter starts incrementing from a random initial value based on the count value of the counter by software. Then, even if the illegal board is connected to the main board 31 and the big hit determination count value update timing is recognized based on the signal output from the main board 31, the count value of the random 1 generation counter becomes the big hit determination value. It is difficult to send an incorrect start winning signal to the main board 31 at the timing. This is because, according to this embodiment, as indicated by an asterisk in FIG. 31, the timing at which the count value of the random 1 generation counter becomes the big hit determination value has no regularity and is random.

次に、遊技制御手段から各電気部品制御基板に送信されるコマンドについて説明する。図32は、主基板31から、ランプ制御基板35、払出制御基板37、音制御基板70および図柄制御基板80に送信される制御コマンド(ランプ制御コマンド、音制御コマンド、表示制御コマンドおよび払出制御コマンド)のコマンド形態の一例を示す説明図である。この実施の形態では、制御コマンドのコマンドデータは2バイト構成であり、1バイト目はMODE(コマンドの種類)を表し、2バイト目はEXT(具体的指示内容)を表す。MODEデータの先頭ビット(ビット7)は必ず「1」とされ、EXTデータの先頭ビット(ビット7)は必ず「0」とされる。このように、ランプ制御基板35、払出制御基板37、音制御基板70および図柄制御基板80に送信される制御コマンドは、複数のコマンドデータで構成され、先頭ビットによってそれぞれを区別可能な態様になっている。なお、図32に示されたコマンド形態は一例であって他のコマンド形態を用いてもよい。例えば、1バイトや3バイト以上で構成される制御コマンドを用いてもよい。   Next, a command transmitted from the game control means to each electric component control board will be described. 32 shows control commands (lamp control command, sound control command, display control command, and payout control command) transmitted from the main board 31 to the lamp control board 35, the payout control board 37, the sound control board 70, and the symbol control board 80. ) Is an explanatory diagram showing an example of a command form. In this embodiment, the command data of the control command has a 2-byte configuration, the first byte represents MODE (command type), and the second byte represents EXT (specific instruction content). 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 commands transmitted to the lamp control board 35, the payout control board 37, the sound control board 70, and the symbol control board 80 are composed of a plurality of command data, and can be distinguished from each other by the first bit. ing. Note that the command form shown in FIG. 32 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.

図33に示すように、制御コマンドは、8ビットの制御信号CD0〜CD7(コマンドデータ)とINT信号(取込信号)とで構成される。ランプ制御基板35、払出制御基板37、音制御基板70および図柄制御基板80に搭載されているランプ制御手段、払出制御手段、音制御手段および表示制御手段は、INT信号が立ち上がったことを検知して、割込処理によって1バイトのデータの取り込み処理を開始する。   As shown in FIG. 33, the control command includes 8-bit control signals CD0 to CD7 (command data) and an INT signal (capture signal). The lamp control means, payout control means, sound control means, and display control means mounted on the lamp control board 35, the payout control board 37, the sound control board 70, and the symbol control board 80 detect that the INT signal has risen. Then, the 1 byte data capturing process is started by the interrupt process.

図34は、図柄制御基板80に送出される表示制御コマンドの内容の一例を示す説明図である。表示制御コマンドはMODEとEXTの2バイト構成である。図21に示す例において、コマンド8000(H)〜8031(H)は、特別図柄の変動パターンを指定する表示制御コマンドである。なお、変動パターンを指定するコマンド(変動パターン指定コマンド)は変動開始指示も兼ねている。   FIG. 34 is an explanatory diagram showing an example of the content of a display control command sent to the symbol control board 80. The display control command has a 2-byte structure of MODE and EXT. In the example shown in FIG. 21, commands 8000 (H) to 8031 (H) are display control commands for designating a special symbol variation pattern. Note that a command for specifying a variation pattern (variation pattern designation command) also serves as a variation start instruction.

コマンド88XX(H)(X=4ビットの任意の値)は、普通図柄の変動パターンに関する表示制御コマンドである。コマンド89XX(H)は、普通図柄の停止図柄を指定する表示制御コマンドである。コマンド8AXX(H)(X=4ビットの任意の値)は、普通図柄の可変表示の停止を指示する表示制御コマンドである。   The command 88XX (H) (X = any value of 4 bits) is a display control command related to a normal symbol variation pattern. The command 89XX (H) is a display control command for designating a normal symbol stop symbol. Command 8AXX (H) (X = any value of 4 bits) is a display control command for instructing stop of variable symbol normal display.

コマンド91XX(H)、92XX(H)および93XX(H)は、特別図柄の左中右の停止図柄を指定する表示制御コマンドである。また、コマンドA0XX(H)は、特別図柄の可変表示の停止を指示する表示制御コマンドである。コマンドBXXX(H)は、大当り遊技開始から大当り遊技終了までの間に送出される表示制御コマンドである。   Commands 91XX (H), 92XX (H), and 93XX (H) are display control commands for designating a left middle right stop symbol of a special symbol. Command A0XX (H) is a display control command for instructing stop of variable symbol special display. The command BXXX (H) is a display control command that is sent from the start of the big hit game to the end of the big hit game.

コマンドC000(H)は、特別図柄の変動および大当り遊技に関わらない表示状態に関する表示制御コマンドである。   The command C000 (H) is a display control command related to a display state that is not related to special symbol fluctuations and jackpot games.

図柄制御基板80の表示制御手段は、主基板31の遊技制御手段から上述した表示制御コマンドを受信すると図34に示された内容に応じて可変表示部装置9における表示領域150の表示状態を変更する制御を行う。   When the display control means of the symbol control board 80 receives the above-described display control command from the game control means of the main board 31, the display state of the display area 150 in the variable display device 9 is changed according to the contents shown in FIG. Control.

図35は、主基板31からランプ制御基板35に送出されるランプ制御コマンドの内容の一例を示す説明図である。ランプ制御コマンドもMODEとEXTの2バイト構成である。図35に示す例において、コマンド8000(H)〜8031(H)は、特別図柄の変動パターンに対応したランプ・LED(遊技機に設けられている各発光体)の制御パターンを指定するランプ制御コマンドである。また、コマンドA0XX(H)(X=4ビットの任意の値)は、特別図柄の可変表示の停止時のランプ・LEDの制御パターンを指示するランプ制御コマンドである。コマンドBXXX(H)は、大当り遊技開始から大当り遊技終了までの間のランプ・LEDの制御パターンを指示するランプ制御コマンドである。そして、コマンドC000は、客待ちデモンストレーション時のランプ・LEDの制御パターンを指示するランプ制御コマンドである。   FIG. 35 is an explanatory diagram showing an example of the contents of a lamp control command sent from the main board 31 to the lamp control board 35. The lamp control command also has a 2-byte configuration of MODE and EXT. In the example shown in FIG. 35, commands 8000 (H) to 8031 (H) are lamp controls that specify control patterns of lamps and LEDs (each light emitter provided in the gaming machine) corresponding to the variation pattern of the special symbol. It is a command. The command A0XX (H) (X = any value of 4 bits) is a lamp control command for instructing a lamp / LED control pattern when the variable symbol special display is stopped. The command BXXX (H) is a lamp control command for instructing a lamp / LED control pattern from the start of the jackpot game to the end of the jackpot game. The command C000 is a lamp control command for instructing a lamp / LED control pattern during a customer waiting demonstration.

なお、コマンド8XXX(H)、AXXX(H)、BXXX(H)およびCXXX(H)は、遊技進行状況に応じて遊技制御手段から送出されるランプ制御コマンド、すなわち遊技状態を報知することを指示するランプ制御コマンドである。ランプ制御手段は、主基板31の遊技制御手段から上述したランプ制御コマンドを受信すると図35に示された内容に応じてランプ・LEDの表示状態(点灯、消灯および点滅)を変更する。   Note that the commands 8XXX (H), AXXX (H), BXXX (H), and CXXX (H) are instructions to notify the ramp control command sent from the game control means according to the game progress status, that is, the game state. This is the lamp control command to be performed. When the lamp control means receives the above-described lamp control command from the game control means of the main board 31, the lamp / LED display state (lighted, turned off, and blinking) is changed according to the contents shown in FIG.

この実施の形態では、ランプ制御手段は、遊技状態を報知することを指示するランプ制御コマンドを受信すると、装飾ランプ25、天枠ランプ28aおよび左右枠ランプ28b,28cのうちの一部または全部を用いて、遊技状態を報知するための点灯/消灯制御を行う。なお、装飾ランプ25、天枠ランプ28aおよび左右枠ランプ28b,28cは、それぞれ、複数の発光体の集まりで構成されていてもよく、その場合、装飾ランプ25、天枠ランプ28aおよび左右枠ランプ28b,28cのうちの一部を用いて遊技状態を報知するということは、例えば、装飾ランプ25を構成する複数の発光体のうちの一部を用いてもよいということも意味する。   In this embodiment, when the lamp control means receives a lamp control command instructing to notify the gaming state, a part or all of the decorative lamp 25, the top frame lamp 28a, and the left and right frame lamps 28b, 28c are received. Use to perform lighting / extinguishing control for notifying the gaming state. Note that the decorative lamp 25, the top frame lamp 28a, and the left and right frame lamps 28b and 28c may each be formed of a collection of a plurality of light emitters. In this case, the decorative lamp 25, the top frame lamp 28a, and the left and right frame lamps. Notifying the gaming state using a part of 28b and 28c also means that a part of a plurality of light emitters constituting the decorative lamp 25 may be used, for example.

コマンドE0XX(H)は、始動記憶数(特別図柄始動記憶数)を示すランプ制御コマンドである。ランプ制御手段は、「XX(H)」で指定される数を遊技者が認識できるように始動記憶表示器18に特別図柄始動記憶数に関する情報を表示する。また、コマンドE1XX(H)は、普通図柄始動記憶数を示すランプ制御コマンドである。ランプ制御手段は、「XX(H)」で指定される数を遊技者が認識できるように普通図柄始動記憶表示器41に普通図柄始動記憶数に関する情報を表示する。   Command E0XX (H) is a lamp control command indicating the starting memory number (special symbol starting memory number). The lamp control means displays information related to the special symbol start memory number on the start memory display 18 so that the player can recognize the number designated by “XX (H)”. The command E1XX (H) is a lamp control command indicating the normal symbol start memory number. The lamp control means displays information related to the normal symbol start memory number on the normal symbol start memory display 41 so that the player can recognize the number designated by “XX (H)”.

コマンドE200(H)およびE201(H)は、賞球ランプ51の表示状態に関するランプ制御コマンドであり、コマンドE300(H)およびE301(H)は、球切れランプ52の表示状態に関するランプ制御コマンドである。ランプ制御手段は、主基板31の遊技制御手段から「E201(H)」のランプ制御コマンドを受信すると賞球ランプ51の表示状態を賞球残がある場合としてあらかじめ定められた表示状態とし、「E200(H)」のランプ制御コマンドを受信すると賞球ランプ51の表示状態を賞球残がない場合としてあらかじめ定められた表示状態とする。   Commands E200 (H) and E201 (H) are lamp control commands related to the display state of the prize ball lamp 51, and commands E300 (H) and E301 (H) are lamp control commands related to the display state of the ball-out lamp 52. is there. When the lamp control means receives the lamp control command of “E201 (H)” from the game control means of the main board 31, the display state of the prize ball lamp 51 is changed to a display state determined in advance as a case where there is a prize ball remaining. When the lamp control command of “E200 (H)” is received, the display state of the prize ball lamp 51 is set to a display state that is determined in advance as a case where no prize ball remains.

また、主基板31の遊技制御手段から「E300(H)」のランプ制御コマンドを受信すると球切れランプ52の表示状態を球あり中の表示状態とし、「E301(H)」のランプ制御コマンドを受信すると球切れランプ52の表示状態を球切れ中の表示状態とする。すなわち、コマンドE200(H)およびE201(H)は、未賞球の遊技球があることを遊技者等に報知するために設けられている発光体を制御することを示すコマンドであり、コマンドE300(H)およびE301(H)は、補給球が切れていることを遊技者や遊技店員に報知するために設けられている発光体を制御することを示すコマンドである。   When the lamp control command “E300 (H)” is received from the game control means of the main board 31, the display state of the ball break lamp 52 is changed to the display state with a ball, and the lamp control command “E301 (H)” is When received, the display state of the ball-out lamp 52 is changed to the display state during the ball-out. That is, the commands E200 (H) and E201 (H) are commands indicating control of a light emitter provided to notify a player or the like that there is an unawarded game ball. (H) and E301 (H) are commands indicating control of a light emitter provided to notify a player or game clerk that the supply ball is out.

コマンド「E500(H)」は、遊技制御手段が不正行為を検知したときに遊技制御手段から送信される不正報知ランプ指定のランプ制御コマンドである。ランプ制御手段は、不正報知ランプ指定のランプ制御コマンドを受信すると、不正報知の態様としてあらかじめ決められた態様でランプ・LEDを点灯制御する。例えば、全てのランプ・LEDを所定の周期で点滅させる。あるいは、不正報知用の発光手段を特に設け、その発光手段を点灯させるようにしてもよい。   The command “E500 (H)” is a lamp control command designated by the fraud notification lamp transmitted from the game control means when the game control means detects an illegal act. When receiving the lamp control command designated by the fraud notification lamp, the lamp control means controls the lighting of the lamp / LED in a manner predetermined as the manner of fraud notification. For example, all the lamps / LEDs are blinked at a predetermined cycle. Alternatively, a light emitting means for fraud notification may be provided, and the light emitting means may be turned on.

図36は、音制御基板70に送出される音制御コマンドの内容の一例を示す説明図である。音制御コマンドもMODEとEXTの2バイト構成である。図36に示す例において、コマンド8XXX(H)(X=4ビットの任意の値)は、特別図柄の変動期間における音発生パターンを指定する音制御コマンドである。なお、コマンド8000(H)〜8031(H)は、特別図柄の変動パターンに対応した音発生パターンを指定する音制御コマンドである。コマンドBXXX(H)(X=4ビットの任意の値)は、大当り遊技開始から大当り遊技終了までの間における音発生パターンを指定する音制御コマンドである。その他のコマンドは、特別図柄の変動および大当り遊技に関わらない音制御コマンドである。音制御基板70の音制御手段は、主基板31の遊技制御手段から上述した音制御コマンドを受信すると図36に示された内容に応じて音出力状態を変更する。   FIG. 36 is an explanatory diagram showing an example of the contents of a sound control command sent to the sound control board 70. The sound control command also has a 2-byte structure of MODE and EXT. In the example shown in FIG. 36, the command 8XXX (H) (X = any value of 4 bits) is a sound control command for designating a sound generation pattern during a special symbol variation period. Commands 8000 (H) to 8031 (H) are sound control commands for designating sound generation patterns corresponding to the variation patterns of special symbols. The command BXXX (H) (X = any value of 4 bits) is a sound control command for designating a sound generation pattern from the start of the big hit game to the end of the big hit game. The other commands are sound control commands that are not related to special symbol changes and jackpot games. When the sound control means of the sound control board 70 receives the above-described sound control command from the game control means of the main board 31, the sound output state is changed according to the contents shown in FIG.

コマンド「E500(H)」は、遊技制御手段が不正行為を検知したときに遊技制御手段から送信される不正報知音指定の音制御コマンドである。音制御手段は、不正報知音指定の音制御コマンドを受信すると、不正報知の態様としてあらかじめ決められた態様でスピーカ27から音出力する制御を行う。   The command “E500 (H)” is a sound control command for designating a fraud notification sound transmitted from the game control means when the game control means detects an illegal act. When the sound control means receives the sound control command for specifying the unauthorized notification sound, the sound control means performs control to output the sound from the speaker 27 in a predetermined manner as the unauthorized notification mode.

主基板31の遊技制御手段から各サブ基板(ランプ制御基板35、払出制御基板37、音制御基板70、図柄制御基板80)に制御コマンドを出力しようとするときに、コマンド送信テーブルの設定が行われる。あるいは、ROM54に形成されているコマンド送信テーブルのアドレス指定が行われる。図37は、コマンド送信テーブルの一構成例を示す説明図である。1つのコマンド送信テーブルは3バイトで構成され、1バイト目には後述するINTデータが設定される。また、2バイト目のコマンドデータ1には、制御コマンドの1バイト目のMODEデータが設定される。そして、3バイト目のコマンドデータ2には、制御コマンドの2バイト目のEXTデータが設定される。   When a control command is to be output from the game control means of the main board 31 to each sub-board (lamp control board 35, payout control board 37, sound control board 70, symbol control board 80), the command transmission table is set. Is called. Alternatively, addressing of a command transmission table formed in the ROM 54 is performed. FIG. 37 is an explanatory diagram of a configuration example of the command transmission table. One command transmission table is composed of 3 bytes, and INT data described later is set in the first byte. In the command data 1 of the second byte, MODE data of the first byte of the control command is set. Then, in the command data 2 of the third byte, the EXT data of the second byte of the control command is set.

なお、EXTデータそのものがコマンドデータ2の領域に設定されてもよいが、コマンドデータ2には、EXTデータが格納されているテーブル(ROM54に形成される。)のアドレスを指定するためのデータ(バッファ指定データ)が設定されるようにしてもよい。この実施の形態では、図38(A)に示すように、コマンドデータ2のビット7(ワークエリア参照ビット)が0であれば、コマンドデータ2にEXTデータそのものが設定されていることを示す。なお、そのようなEXTデータはビット7が0であるデータである。また、図38(B)に示すように、ワークエリア参照ビットが1であれば、他の7ビットが、EXTデータが格納されているテーブルのアドレスを指定するためのオフセットであることを示す。なお、図38(B)に示す例では、ビット4〜ビット0が使用されているので、32種類のバッファを指定することが可能である。また、32種類のバッファには、例えば特別図柄変動パターンバッファ、特別図柄左図柄バッファ、特別図柄中図柄バッファ、特別図柄右図柄バッファなどが含まれる。   Although the EXT data itself may be set in the area of the command data 2, the command data 2 includes data (designated in the ROM 54) for designating the address of the table (formed in the ROM 54). Buffer designation data) may be set. In this embodiment, as shown in FIG. 38A, if bit 7 (work area reference bit) of command data 2 is 0, it indicates that EXT data itself is set in command data 2. Such EXT data is data in which bit 7 is 0. Also, as shown in FIG. 38B, if the work area reference bit is 1, it indicates that the other 7 bits are an offset for designating the address of the table storing the EXT data. In the example shown in FIG. 38B, since bits 4 to 0 are used, 32 types of buffers can be designated. The 32 types of buffers include, for example, a special symbol variation pattern buffer, a special symbol left symbol buffer, a special symbol middle symbol buffer, and a special symbol right symbol buffer.

図39はINTデータの一構成例を示す説明図である。INTデータにおけるビット0は、払出制御基板37に払出制御コマンドを送出すべきか否かを示す。ビット0が「1」であるならば、払出制御コマンドを送出すべきことを示す。従って、CPU56は、例えば賞球処理(遊技制御処理のステップS32)において、INTデータに「01(H)」を設定する。   FIG. 39 is an explanatory diagram showing a configuration example of INT data. Bit 0 in the 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 a payout control command should be sent. Accordingly, the CPU 56 sets “01 (H)” in the INT data, for example, in the prize ball process (game control process step S32).

また、INTデータにおけるビット1は、図柄制御基板80に表示制御コマンドを送出すべきか否かを示す。ビット1が「1」であるならば、表示制御コマンドを送出すべきことを示す。従って、CPU56は、例えば特別図柄プロセス処理や普通図柄プロセス処理(遊技制御処理のステップS26やS27)において、INTデータに「02(H)」を設定する。   Bit 1 in the INT data indicates whether a display control command should be sent to the symbol control board 80. If bit 1 is “1”, it indicates that a display control command should be sent. Accordingly, the CPU 56 sets “02 (H)” in the INT data, for example, in the special symbol process or the normal symbol process (game control process steps S26 and S27).

INTデータのビット2,3は、それぞれ、ランプ制御コマンド、音制御コマンドを送出すべきか否かを示すビットであり、CPU56は、それらのコマンドを送出すべきタイミングになったら、特別図柄プロセス処理等で、ポインタ(例えば、特別図柄コマンド送信ポインタ)が指しているコマンド送信テーブルに、INTデータ、コマンドデータ1およびコマンドデータ2を設定する。それらのコマンドを送出するときには、INTデータの該当ビットが「1」に設定され、コマンドデータ1およびコマンドデータ2にMODEデータおよびEXTデータが設定される。   Bits 2 and 3 of the INT data are bits indicating whether or not a lamp control command and a sound control command should be sent, respectively, and the CPU 56 performs special symbol process processing when it is time to send those commands. Etc., INT data, command data 1 and command data 2 are set in the command transmission table pointed to by the pointer (for example, special symbol command transmission pointer). When these commands are transmitted, the corresponding bit of the INT data is set to “1”, and MODE data and EXT data are set to the command data 1 and the command data 2.

この実施の形態では、各制御コマンドについて、それぞれ複数のコマンド送信テーブルが用意され、使用すべきコマンド送信テーブルはコマンド送信前に設定される。あるいは、ROM54に形成されているコマンド送信テーブルのアドレス指定が行われる。また、複数のコマンド送信テーブルを1つのテーブルに設定してもよい。例えば、図40に示すように、複数の表示制御コマンドを格納することが可能な複数のコマンド送信テーブルを含む1個のテーブルが用意されている。CPU56は、例えば、コマンド制御処理において、ポインタが差しているコマンド送信テーブルから、INTデータ、コマンドデータ1およびコマンドデータ2を読み出し、表示制御コマンドを送信する。そして、ポインタを更新する。その後、ポインタが指定するコマンド送信テーブルが終了コードを示すまで、表示制御コマンドの送信処理を繰り返す。なお、各制御コマンドについて用意されるテーブルの一部(例えば、払出制御基板37に対する払出個数指定コマンドが設定されるテーブル)を、リングバッファ形式に構成するようにしてもよい。   In this embodiment, a plurality of command transmission tables are prepared for each control command, and the command transmission table to be used is set before command transmission. Alternatively, addressing of a command transmission table formed in the ROM 54 is performed. A plurality of command transmission tables may be set as one table. For example, as shown in FIG. 40, one table including a plurality of command transmission tables capable of storing a plurality of display control commands is prepared. For example, in the command control process, the CPU 56 reads INT data, command data 1 and command data 2 from the command transmission table pointed to by the pointer, and transmits a display control command. Then, the pointer is updated. Thereafter, the display control command transmission process is repeated until the command transmission table designated by the pointer indicates the end code. A part of a table prepared for each control command (for example, a table in which a payout number designation command for the payout control board 37 is set) may be configured in a ring buffer format.

図41は、図21に示す遊技制御処理におけるコマンド制御処理の処理例を示すフローチャートである。コマンド制御処理は、コマンド出力処理とINT信号出力処理とを含む処理である。コマンド制御処理において、CPU56は、まず、コマンド送信テーブルのアドレスをスタック等に退避する(ステップS331)。そして、ポインタが指していたコマンド送信テーブルのINTデータを引数1にロードする(ステップS332)。引数1は、後述するコマンド送信処理に対する入力情報になる。また、コマンド送信テーブルを指すアドレスを+1する(ステップS333)。従って、コマンド送信テーブルを指すアドレスは、コマンドデータ1のアドレスに一致する。なお、表示制御コマンドは例えば図37に示されたコマンド送信テーブルに設定されている。   FIG. 41 is a flowchart showing an example of command control processing in the game control processing shown in FIG. The command control process is a process including a command output process and an INT signal output process. In the command control process, the CPU 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). The argument 1 is input information for a command transmission process to be described later. Also, the address indicating the command transmission table is incremented by 1 (step S333). Therefore, the address indicating the command transmission table matches the address of the command data 1. The display control command is set in, for example, the command transmission table shown in FIG.

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

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

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

キャリービットが1になった場合には、引数2に設定されているデータ、この場合にはコマンドデータ1(すなわちMODEデータ)を、IOアドレスとして設定されているアドレスに出力する(ステップS356)。2回目のシフト処理が行われたときにはIOアドレスにポート2のアドレスが設定されているので、そのときに、表示制御コマンドのMODEデータがポート2に出力される。   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 S 356). When the second shift process is performed, the port 2 address is set as the IO address. At this time, the MODE data of the display control command is output to the port 2.

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

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

よって、キャリーフラグが「1」になったときには、対応する出力ポート(ポート1〜ポート4)に制御コマンドが送出される。すなわち、1つの共通モジュールで、各サブ基板の制御手段に対する制御コマンドの送出処理を行うことができる。   Therefore, when the carry flag becomes “1”, a control command is sent to the corresponding output port (port 1 to port 4). That is, a single common module can perform control command transmission processing to the control means of each sub-board.

また、このように、シフト処理のみによってどの各サブ基板の制御手段に対して制御コマンドを出力すべきかが判定されるので、いずれの制御手段に対して制御コマンドを出力すべきか判定する処理が簡略化されている。   In addition, as described above, since it is determined to which control means of each sub-board should the control command be output only by the shift process, the process for determining which control means should be output of the control command is simplified. It has become.

次に、CPU56は、シフト処理開始前のINTデータが格納されている引数1の内容を読み出し(ステップS360)、読み出したデータをポート0に出力する(ステップS361)。この実施の形態では、ポート0のアドレスは、各制御信号についてのINT信号を出力するためのポートであり、ポート0のビット0〜4が、それぞれ、払出制御INT信号、表示制御INT信号、ランプ制御INT信号、音制御INT信号を出力するためのポートである。INTデータでは、ステップS351〜S359の処理で出力された制御コマンド(払出制御コマンド、表示制御コマンド、ランプ制御コマンド、音制御コマンド)に応じたINT信号の出力ビットに対応したビットが「1」になっている。従って、ポート1〜ポート4のいずれかに出力された制御コマンド(払出制御コマンド、表示制御コマンド、ランプ制御コマンド、音制御コマンド)に対応したINT信号がオフ状態(ローレベル)になる。   Next, the CPU 56 reads the content of the argument 1 in which the INT data before the start of the shift process is stored (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 an INT signal for each control signal, and bits 0 to 4 of port 0 are a payout control INT signal, a display control INT signal, and a ramp, respectively. This is a port for outputting a 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 is “1”. It 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 is turned off (low level).

次いで、CPU56は、ウェイトカウンタに所定値を設定し(ステップS362)、その値が0になるまで1ずつ減算する(ステップS363,S364)。ウェイトカウンタの値が0になると、クリアデータ(00)を設定して(ステップS365)、そのデータをポート0に出力する(ステップS366)。よって、INT信号はオフ状態になる。そして、ウェイトカウンタに所定値を設定し(ステップS362)、その値が0になるまで1ずつ減算する(ステップS368,S369)。   Next, the CPU 56 sets a predetermined value in the wait counter (step S362), and subtracts one by one until the value becomes 0 (steps S363 and S364). 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 is turned off. Then, a predetermined value is set in the wait counter (step S362), and 1 is subtracted one by one until the value becomes 0 (steps S368 and S369).

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

コマンド拡張データアドレステーブルには、各サブ基板の制御手段に送出されうるEXTデータが順次設定されている。よって、以上の処理によって、ワークエリア参照ビットの値が「1」であれば、コマンドデータ2の内容に応じたコマンド拡張データアドレステーブル内のEXTデータが引数2にロードされ、ワークエリア参照ビットの値が「0」であれば、コマンドデータ2の内容がそのまま引数2にロードされる。なお、コマンド拡張データアドレステーブルからEXTデータが読み出される場合でも、そのデータのビット7は「0」である。   In the command extension data address table, EXT data that can be sent to the control means of each sub-board is sequentially set. Therefore, if the value of the work area reference bit is “1” by the above processing, the EXT data in the command extended data address table corresponding to the contents of the command data 2 is loaded into the argument 2 and the work area reference bit If the value is “0”, the contents of the command data 2 are loaded into the argument 2 as they are. Even when EXT data is read from the command extension data address table, bit 7 of the data is “0”.

次に、CPU56は、コマンド送信処理ルーチンをコールする(ステップS342)。従って、MODEデータの送出の場合と同様のタイミングでEXTデータが送出される。その後、CPU56は、コマンド送信テーブルのアドレスを復帰し(ステップS343)、コマンド送信テーブルを指す読出ポインタの値を更新する(ステップS344)。そして、さらに送出すべきコマンドがあれば(ステップS345)、ステップS331に戻る。   Next, the CPU 56 calls a command transmission processing routine (step S342). Therefore, the EXT data is transmitted at the same timing as the transmission of MODE data. Thereafter, the CPU 56 restores the address of the command transmission table (step S343) and updates the value of the read pointer indicating the command transmission table (step S344). If there are more commands to be sent (step S345), the process returns to step S331.

以上のようにして、2バイト構成の制御コマンド(払出制御コマンド、表示制御コマンド、ランプ制御コマンド、音制御コマンド)が、対応する各サブ基板の制御手段に送信される。各サブ基板の制御手段ではINT信号のレベル変化を検出すると制御コマンドの取り込み処理を開始するのであるが、いずれの制御手段についても、取り込み処理が完了する前に遊技制御手段からの新たな信号が信号線に出力されることはない。すなわち、表示制御手段等の各制御手段において、確実なコマンド受信処理が行われる。なお、INT信号の極性を図33に示された場合と逆にしてもよい。   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 control means of each corresponding sub-board. When the control means of each sub-board detects a change in the level of the INT signal, the control command capturing process is started. For any control means, a new signal from the game control means is received before the capturing process is completed. It is not output to the signal line. That is, reliable command reception processing is performed in each control means such as a display control means. The polarity of the INT signal may be reversed from that shown in FIG.

図43〜図45は、電源基板910からの電源断信号に応じて実行されるマスク不能割込処理(電力供給停止時処理)の処理例を示すフローチャートである。CPU56のXNMI端子にハイレベルからローレベルへの変化が生じてマスク不能割込が発生すると、CPU56に内蔵されている割込制御機構は、マスク不能割込発生時に実行されていたプログラムのアドレス(具体的には実行完了後の次のアドレス)を、スタックポインタが指すスタック領域に退避させるとともに、スタックポインタの値を増やす。すなわち、スタックポインタの値がスタック領域の次のアドレスを指すように更新する。なお、この実施の形態では、XNMI端子にハイレベルからローレベルへの変化が生ずると割込が生ずるが、他の態様のレベル変化に応じて割込が発生するマイクロコンピュータを用いても、以下のような制御を実行することができる。   43 to 45 are flowcharts showing a processing example of a non-maskable interrupt process (power supply stop process) executed in response to a power-off signal from the power supply board 910. When a non-maskable interrupt occurs when the XNMI terminal of the CPU 56 changes from a high level to a low level, the interrupt control mechanism built in the CPU 56 causes the address of the program being executed when the non-maskable interrupt occurs ( Specifically, the next address after completion of execution is saved in the stack area pointed to by the stack pointer, and the value of the stack pointer is increased. That is, the stack pointer value is updated to point to the next address in the stack area. In this embodiment, an interrupt occurs when a change from the high level to the low level occurs at the XNMI terminal. However, even if a microcomputer that generates an interrupt in response to a level change in another aspect is used, Such control can be executed.

電力供給停止時処理において、CPU56は、AFレジスタ(アキュミュレータとフラグのレジスタ)をバックアップRAM領域のスタック領域に退避させる(ステップS451)。また、割込フラグをパリティフラグにコピーする(ステップS452)。パリティフラグはバックアップRAM領域に形成されている。割込フラグは、割込許可状態であるのか割込禁止状態であるのかを示すフラグであって、CPU56が内蔵する制御レジスタ中にある。割込フラグのオン状態が割込禁止状態であることを示す。上述したように、パリティフラグは遊技状態復旧処理で参照される。そして、遊技状態復旧処理において、パリティフラグがオン状態であれば、割込許可状態には設定されない。   In the power supply stop process, the CPU 56 saves the AF register (accumulator and flag register) in the stack area of the backup RAM area (step S451). Further, the interrupt flag is copied to the parity flag (step S452). The parity flag is formed in the backup RAM area. The interrupt flag is a flag indicating whether the interrupt is permitted or the interrupt prohibited state, and is in a control register built in the CPU 56. The on state of the interrupt flag indicates that the interrupt is prohibited. As described above, the parity flag is referred to in the gaming state restoration process. In the gaming state recovery process, if the parity flag is on, the interrupt permission state is not set.

また、BCレジスタ、DEレジスタ、HLレジスタ、IXレジスタおよびスタックポインタをバックアップRAM領域のスタック領域に退避させる(ステップS454〜S458)。なお、ステップS451〜S458の処理は、電源監視手段の検出信号に応じて制御状態を復旧させるために必要なデータを変動データ記憶手段に保存させるためのデータ退避処理に相当する。   Also, the BC register, DE register, HL register, IX register, and stack pointer are saved in the stack area of the backup RAM area (steps S454 to S458). Note that the processing in steps S451 to S458 corresponds to data saving processing for saving the data necessary for restoring the control state in the fluctuation data storage means in accordance with the detection signal of the power supply monitoring means.

次いで、この実施の形態では、所定期間(入力監視時間の間)、賞球カウントスイッチ301Aの検出信号をチェックする。そして、賞球カウントスイッチ301Aがオンしたら総賞球数バッファの内容を1減らす。総賞球数バッファとは、RAM55における未払出賞球個数を記憶する領域であり、入賞に応じて払出制御基板37に対して賞球個数を示す払出制御コマンドを送信すると加算され、賞球カウントスイッチ301Aの検出信号にもとづいて減算されるデータが設定されている。   Next, in this embodiment, the detection signal of the prize ball count switch 301A is checked for a predetermined period (during the input monitoring time). When the prize ball count switch 301A is turned on, the content of the total prize ball number buffer is reduced by one. The total prize-ball number buffer is an area for storing the number of unpaid prize balls in the RAM 55, and is added when a payout control command indicating the number of prize balls is transmitted to the payout control board 37 in response to winning, and the prize ball count is increased. Data to be subtracted based on the detection signal of the switch 301A is set.

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

入力監視時間を計測するために、CPU56の内蔵タイマを用いてもよい。すなわち、スイッチ検出処理開始時に、内蔵タイマに所定値(入力監視時間に相当)を設定しておく。そして、スイッチ検出処理のループが1回実行される毎に、内蔵タイマのカウント値をチェックする。そして、カウント値が0になったら、入力監視時間が終了したとする。内蔵タイマの値が0になったことを検出するために内蔵タイマによる割込を用いることもできるが、この段階では制御内容(RAMに格納されている各値など)を変化させないように、割込を用いず、内蔵タイマのカウント値を読み出してチェックするようなプログラム構成の方が好ましい。   In order to measure the input monitoring time, a built-in timer of the CPU 56 may be used. That is, a predetermined value (corresponding to the input monitoring time) is set in the built-in timer at the start of the switch detection process. Each time the switch detection processing loop is executed once, the count value of the built-in timer is checked. Then, when the count value becomes 0, it is assumed that the input monitoring time has ended. An interrupt by the internal timer can be used to detect that the value of the internal timer has reached 0, but at this stage, the control content (such as each value stored in the RAM) should not be changed. A program configuration is preferred in which the count value of the built-in timer is read and checked instead of using a program.

また、入力監視時間は、遊技球が、球払出装置97から落下した時点から、賞球カウントスイッチ301Aに到達するまでの時間以上に設定される。球払出装置97から賞球カウントスイッチ301Aまでの距離をLとすると、その間の落下時間tは、t=√(2L/g)(g:重力加速度)になるので、入力監視時間は、それ以上に設定される。なお、図5に例示した球払出装置97を用いる場合には、Lは、スプロケット292の凹部から遊技球が落下する位置から賞球カウントスイッチ301Aの位置までの距離に相当する。以上のように、入力監視時間は、払出手段から遊技媒体が払い出されてから払出検出手段で検出されるまでの時間以上の時間に設定される   Also, the input monitoring time is set to be equal to or longer than the time from when the game ball falls from the ball payout device 97 until it reaches the prize ball count switch 301A. If 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: gravitational acceleration), so the input monitoring time is longer than that. Set to When the ball payout device 97 illustrated in FIG. 5 is used, L corresponds to the distance from the position where the game ball falls from the recess of the sprocket 292 to the position of the prize ball count switch 301A. As described above, the input monitoring time is set to a time longer than the time from when the game medium is paid out from the payout means until it is detected by the payout detection means.

少なくとも、スイッチ検出処理が実行される入力監視時間では、賞球カウントスイッチ301Aが遊技球を検出できる状態でなければならない。従って、図13に示されたように、電源基板910におけるコンバータIC924の入力側に比較的大容量の補助駆動電源としてのコンデンサ923が接続されている。よって、遊技機に対する電力供給停止時にも、ある程度の期間は+12V電源電圧がスイッチ駆動可能な範囲に維持され、賞球カウントスイッチ301Aが動作可能になる。その期間が、上記の入力監視処理が完了するまでの時間以上になるように、コンデンサの容量が決定される。   At least during the input monitoring time when the switch detection process is executed, the prize ball count switch 301A must be in a state where it can detect the game ball. Therefore, as shown in FIG. 13, a capacitor 923 serving as a relatively large capacity auxiliary drive power supply is connected to the input side of the converter IC 924 in the power supply substrate 910. Therefore, even when the power supply to the gaming machine is stopped, the + 12V power supply voltage is maintained in a range in which the switch can be driven for a certain period, and the winning ball count switch 301A becomes operable. The capacitance of the capacitor is determined so that the period is equal to or longer than the time until the input monitoring process is completed.

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

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

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

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

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

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

次いで、入力監視時間計測用カウンタの値を−1し(ステップS479)、その値が0になっていなければステップS461に戻る。   Next, the value of the input monitoring time measurement counter is decremented by -1 (step S479). If the value is not 0, the process returns to step S461.

以上の処理によって、入力監視時間内に賞球カウントスイッチ301Aがオンしたら、総賞球数格納バッファの値が−1される。バックアップRAMの内容を保存するための処理は、このようなスイッチ検出処理の後で行われるので、払出が完了した賞球について、必ず総賞球数格納バッファが−1される。従って、遊技球の払出に関して、保存される制御状態に矛盾が生じてしまうことが防止される。また、上記のスイッチ検出処理では、検出期間用カウンタを用いたタイマ処理が施されている。すなわち、2ms毎に賞球カウントスイッチ301Aの検出出力のチェックが行われ、2回連続してオン検出した場合に、賞球カウントスイッチ301Aが確実にオンしたと見なされる。従って、誤ってスイッチオン検出がなされてしまうことは防止される。また、スイッチ検出処理において、遊技機外部への賞球情報出力のための賞球情報出力回数カウンタの演算も行われるので、外部に出力される賞球情報と実際の払出賞球数とが食い違ってしまうようなこともない。   If the prize ball count switch 301A is turned on within the input monitoring time by the above processing, the value of the total prize ball number storage buffer is decremented by one. Since the processing for saving the contents of the backup RAM is performed after such switch detection processing, the total winning ball number storage buffer is always decremented by 1 for winning balls that have been paid out. Therefore, it is possible to prevent a contradiction in the stored control state with respect to the game ball payout. In the above switch detection process, a timer process using a detection period counter is performed. That is, the detection output of the prize ball count switch 301A is checked every 2 ms, and it is considered that the prize ball count switch 301A is reliably turned on when it is detected to be turned on twice in succession. Therefore, erroneous switch-on detection is prevented. In addition, in the switch detection process, the calculation of a prize ball information output number counter for outputting prize ball information to the outside of the gaming machine is also performed, so the prize ball information output to the outside and the actual number of paid-out prize balls are different. There is no such thing.

ここでは、電力供給停止時処理において入力監視時間(球払出装置97から落下した時点から、賞球カウントスイッチ301Aに到達するまでの時間以上の所定時間)だけ入力監視処理を実行したが、さらに、長時間にわたって入力監視処理を実行してもよい。例えば、電力供給が完全に停止するまで入力監視処理を継続してもよい。   Here, the input monitoring process is executed only for the input monitoring time (predetermined time more than the time from when the ball is dropped from the ball payout device 97 until it reaches the prize ball count switch 301A) in the power supply stop process. The input monitoring process may be executed for a long time. For example, the input monitoring process may be continued until the power supply is completely stopped.

なお、払出制御基板37に搭載されている払出制御手段も、電源断信号に応じて電力供給停止時処理を実行する。そして、電力供給停止時処理において早い段階で(少なくとも遊技制御手段における電力供給停止時処理おいて入力監視処理が開始される前の段階で)、払出モータ289の駆動を停止させている。   The payout control means mounted on the payout control board 37 also executes power supply stop processing according to the power-off signal. The driving of the payout motor 289 is stopped at an early stage in the power supply stop process (at least before the input monitoring process is started in the power supply stop process in the game control means).

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

入力監視時間が経過すると(ステップS480)、すなわち、入力監視時間計測用カウンタの値が0になると、バックアップあり指定値(この例では「55(H)」)をバックアップフラグにストアする(ステップS481)。バックアップフラグはバックアップRAM領域に形成されている。次いで、パリティデータを作成する(ステップS482〜S491)。すなわち、まず、クリアデータ(00)をチェックサムデータエリアにセットし(ステップS482)、チェックサム算出開始アドレスをポインタにセットする(ステップS483)。また、チェックサム算出回数をセットする(ステップS484)。   When the input monitoring time elapses (step S480), that is, when the value of the input monitoring time measurement counter becomes 0, the backup specified value ("55 (H)" in this example) is stored in the backup flag (step S481). ). The backup flag is formed in the backup RAM area. Next, parity data is created (steps S482 to S491). That is, first, the clear data (00) is set in the checksum data area (step S482), and the checksum calculation start address is set in the pointer (step S483). Also, the number of checksum calculations is set (step S484).

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

チェックサム算出回数の値が0になったら、CPU56は、チェックサムデータエリアの内容の各ビットの値を反転する(ステップS490)。そして、反転後のデータをチェックサムデータエリアにストアする(ステップS491)。このデータが、電源投入時にチェックされるパリティデータとなる。次いで、RAMアクセスレジスタにアクセス禁止値を設定する(ステップS492)。以後、内蔵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 S490). Then, the inverted data is stored in the checksum data area (step S491). This data becomes parity data to be checked when the power is turned on. Next, an access prohibition value is set in the RAM access register (step S492). Thereafter, the built-in RAM 55 cannot be accessed.

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

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

そして、入力ポートに入力されている判定回路950からの判定信号を確認し判定信号がオン状態(例えばハイレベル)であれば(ステップS171)、不正報知コマンド(ランプ制御コマンドあるいは音制御コマンド、または双方)を送信するための処理を行う(ステップS172)。   If the determination signal from the determination circuit 950 input to the input port is confirmed and the determination signal is on (eg, high level) (step S171), an unauthorized notification command (lamp control command or sound control command, or The processing for transmitting (both) is performed (step S172).

なお、この段階では、RAMアクセス禁止状態に設定されているので、ランプ制御コマンドや音制御コマンドを送信するための処理では、CPU56は、例えば、レジスタに所定のデータ(ランプ制御コマンドや音制御コマンドを構成する2バイトのコマンドデータのうちの1バイト)をセットし、レジスタの値を直接出力ポートに出力する。また、INT信号のオン期間(図33参照)を作成するために、例えば、レジスタに所定値をセットし、0になるまで減算する処理を繰り返すことによって、その期間を作成する。そして、そのような処理を、不正報知コマンドを構成するMODEデータとEXTデータについて実行する。   At this stage, since the RAM access prohibited state is set, in the process for transmitting the lamp control command and the sound control command, the CPU 56, for example, stores predetermined data (lamp control command and sound control command in the register). 1 byte of the command data of 2 bytes constituting 1) is set, and the value of the register is directly output to the output port. Further, in order to create an ON period (see FIG. 33) of the INT signal, for example, a predetermined value is set in the register and the process of subtracting until 0 is repeated, thereby creating the period. Such processing is executed for the MODE data and the EXT data constituting the fraud notification command.

その後、CPU56は、待機状態(ループ状態)に入る。従って、システムリセットされるまで、何もしない状態になる。   Thereafter, the CPU 56 enters a standby state (loop state). Therefore, nothing is done until the system is reset.

この実施の形態では、遊技状態を保存するための処理(この例では、チェックサムの生成およびRAMアクセス防止)が実行された後、各出力ポートは直ちにオフ状態になる。なお、この実施の形態では、遊技制御処理において用いられるデータが格納されるRAM領域は全て電源バックアップされている。従って、その内容が正しく保存されているか否かを示すチェックサムの生成処理、およびその内容を書き換えないようにするためのRAMアクセス防止処理が、遊技状態を保存するための処理に相当する。   In this embodiment, after the processing for saving the gaming state (in this example, checksum generation and RAM access prevention) is executed, each output port is immediately turned off. In this embodiment, the RAM area in which data used in the game control process is stored is all backed up. Therefore, the checksum generation process indicating whether or not the contents are correctly stored and the RAM access prevention process for preventing the contents from being rewritten correspond to the process for storing the gaming state.

遊技状態を保存するための処理が実行された後、直ちに各出力ポートがオフ状態になるので、保存される遊技状態と整合しない状況が発生することは確実に防止される。図43〜図45に示す処理が実行されるときには、遊技機に対する電源供給が停止するので、電気部品に印加される電圧が低下していく。そして、印加電圧が駆動可能電圧を下回った時点で電気部品の駆動は停止する。従って、遊技機に対する電力供給停止時には、短時間の遅れはあるものの電気部品の駆動は停止する。   Since each output port is turned off immediately after the processing for saving the gaming state is executed, it is reliably prevented that a situation that does not match the saved gaming state occurs. When the processes shown in FIGS. 43 to 45 are executed, the power supply to the gaming machine is stopped, so that the voltage applied to the electrical components decreases. When the applied voltage falls below the drivable voltage, the driving of the electrical component is stopped. Therefore, when the power supply to the gaming machine is stopped, the driving of the electrical components is stopped although there is a short delay.

ところが、この実施の形態のような出力ポートに対するクリア処理を行わないと、遊技状態が保存された後、電力供給が停止するのを遊技制御手段が待っている間に可変入賞球装置15にさらに入賞してしまうこともある。そのような場合、電力供給再開時には保存されている遊技状態が復帰されるので保存時の始動入賞記憶数が始動記憶表示器18に表示される。すると、遊技者から見ると、始動入賞の保留記憶値が少なくなってしまっているように見え、トラブルが発生しかねない。しかし、この実施の形態では、そのようなトラブルが生ずる可能がなくなる。   However, if the clear process for the output port as in this embodiment is not performed, the variable winning ball device 15 is further added while the game control means waits for the power supply to stop after the game state is saved. You may win a prize. In such a case, when the power supply is resumed, the saved gaming state is restored, so that the starting winning memory number at the time of saving is displayed on the starting memory display 18. Then, from the viewpoint of the player, it seems that the stored value of the start winning prize has been reduced, which may cause trouble. However, in this embodiment, there is no possibility of such a trouble occurring.

また、遊技状態が保存された後に、可変入賞球装置としての大入賞口への入賞が発生する場合もあり得る。そのような場合、遊技者が認識している入賞個数と、電力供給復帰時に、保存されていた遊技状態にもとづいて表示部に表示される入賞個数とが食い違ってトラブルが生ずる可能性もある。しかし、この実施の形態では、そのようなトラブルが生ずる可能がなくなる。   In addition, after the game state is stored, there may be a case where a winning in a big winning opening as a variable winning ball apparatus occurs. In such a case, there is a possibility that a trouble may occur due to a difference between the number of winnings recognized by the player and the number of winnings displayed on the display unit based on the stored gaming state when power supply is restored. However, in this embodiment, there is no possibility of such a trouble occurring.

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

なお、出力ポートのクリア処理を、スイッチ検出処理の実行前(ステップS460の前)に行ってもよい。電力供給停止時処理の実行中では、CPU56やスイッチ類はコンデンサの充電電力等で駆動されることになる。出力ポートのクリア処理をスイッチ検出処理の実行前に行った場合には、大入賞口や可変入賞装置等がソレノイド等の電気部品で駆動されるように構成されていても、それらが駆動されることはなく、コンデンサの充電電力等を電力供給停止時処理のために効果的に使用することができる。   The output port clear process may be performed before the switch detection process is executed (before step S460). During execution of the power supply stop process, the CPU 56 and switches are driven by the charging power of the capacitor. When the output port clear process is performed before the switch detection process is executed, even if the big prize opening, variable prize winning device, etc. are configured to be driven by electrical components such as solenoids, they are driven. In other words, the charging power of the capacitor can be effectively used for the power supply stop process.

ただし、電源が断することが検出された後にV入賞スイッチ22を検出する場合には、ソレノイド21(大入賞口をV入賞スイッチに誘導するための部材を動作させるもの)の出力ポートについては、スイッチ検出処理の実行後にクリアする。そのようにすれば、継続権発生の条件であるV入賞をしていない状態で停電が発生した場合、停電発生直前に大入賞口に入った遊技球をV入賞スイッチ22の側に誘導することができる。従って、不当な継続権の消滅を防止することができる。この場合、電源が保持される期間は、大入賞口に入賞した遊技球がV入賞スイッチ22に到達するまでの時間以上の期間である。なお、ラッチ式のソレノイドを用いた場合には、出力ポートのクリア処理は不要である。   However, in the case where the V winning switch 22 is detected after it is detected that the power is cut off, the output port of the solenoid 21 (which operates the member for guiding the large winning opening to the V winning switch) Clear after switch detection processing. In such a case, when a power failure occurs in a state where the V winning, which is a condition for generating the continuation right, is not generated, the game ball that has entered the big winning opening just before the power failure occurs is guided to the V winning switch 22 side. Can do. Therefore, it is possible to prevent the lapse of the unjust right to continue. In this case, the period during which the power is held is a period longer than the time until the game ball that has won the grand prize opening reaches the V winning switch 22. When a latch type solenoid is used, the output port clear process is not necessary.

また、出力ポートのクリアによって大入賞口が閉じた場合でも、大入賞口内に遊技球があることも考えられるので、電源断信号に応じて実行されるスイッチ検出処理において、カウントスイッチ23の検出も行うことが望ましい。上記の出力ポートのクリア処理をスイッチ検出処理前に行ってもよいこと、および、上記の例外的な処理については、第1種パチンコ遊技機においてのみならず、第2種パチンコ遊技機や第3種パチンコ遊技機についても同様である。   In addition, even when the big prize opening is closed by clearing the output port, there is a possibility that there is a game ball in the big prize opening. Therefore, in the switch detection process executed in response to the power-off signal, the count switch 23 is also detected. It is desirable to do. The output port clearing process may be performed before the switch detection process, and the above exceptional process is not limited to the first type pachinko gaming machine but the second type pachinko gaming machine or the third type. The same applies to seed pachinko machines.

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

図46は、この実施の形態におけるRAM領域のアドレスマップを示す説明図である。図46に示すように、RAM領域の先頭はバックアップフラグの領域に割り当てられている。そして、最後部にチェックサムバッファの領域が割り当てられている。なお、バックアップフラグからチェックサムバッファまでの領域が作業領域に相当し、チェックサムバッファ以降の領域にスタック領域が設定されている。また、この実施の形態では、RAM領域の全てが電源バックアップされている。   FIG. 46 is an explanatory diagram showing an address map of the RAM area in this embodiment. As shown in FIG. 46, the head of the RAM area is assigned to the backup flag area. A checksum buffer area is allocated at the end. An area from the backup flag to the checksum buffer corresponds to a work area, and a stack area is set in an area after the checksum buffer. In this embodiment, the entire RAM area is backed up.

図47は、チェックサム作成方法の一例を説明するための説明図である。ただし、図47に示す例では、簡単のために、バックアップRAM領域のデータのサイズを3バイトとする。電源電圧低下にもとづく電力供給停止時処理において、図47に示すように、チェックサムデータとして初期データ(この例では00(H))が設定される。次に、「00(H)」と「F0(H)」の排他的論理和がとられ、その結果と「16(H)」の排他的論理和がとられる。さらに、その結果と「DF(H)」の排他的論理和がとられる。そして、その結果(この例では「39(H)」)を論理反転して得られた値(この例では「C6(H)」)がチェックサムバッファに設定される。   FIG. 47 is an explanatory diagram for explaining an example of a checksum creation method. However, in the example shown in FIG. 47, for the sake of simplicity, the size of data in the backup RAM area is 3 bytes. In the power supply stop process based on the power supply voltage drop, as shown in FIG. 47, initial data (00 (H) in this example) is set as the checksum data. Next, an exclusive OR of “00 (H)” and “F0 (H)” is taken, and an exclusive OR of “16 (H)” is taken with the result. Further, an exclusive OR of the result and “DF (H)” is taken. Then, a value (“C6 (H)” in this example) obtained by logically inverting the result (“39 (H)” in this example) is set in the checksum buffer.

なお、図47では、説明を容易にするために、論理反転前のデータ「39(H)」がチェックサムバッファに格納されている様子が示されている。なお、初期データとしての00(H)はステップS460で設定されるチェックサムデータに対するクリアデータに応じた値であるが、実際には、00(H)との排他的論理和は演算前と後とで値が変わらないので、00(H)との排他的論理和演算を行わなくてもよい。   FIG. 47 shows a state where the data “39 (H)” before the logic inversion is stored in the checksum buffer for easy explanation. Note that 00 (H) as the initial data is a value corresponding to the clear data for the checksum data set in step S460, but in actuality, exclusive OR with 00 (H) is before and after the operation. And the value does not change, it is not necessary to perform an exclusive OR operation with 00 (H).

この実施の形態では、チェックサムバッファは、バックアップRAM領域(変動データ記憶手段)の最後のアドレスに格納されている。従って、例えば、チェックサム作成方法のプログラムに誤りがないかどうか確認する際に、容易にその確認を行うことができる。RAM領域の最終アドレスの値が正しいか否か確認すればよいからである。また、この実施の形態では、チェックサム算出開始アドレスはバックアップフラグが設定されるアドレスであり、チェックサム算出最終アドレスは賞球制御用フラグ・バッファのうちの最後のアドレスである(図46参照)。従って、賞球制御用フラグ・バッファの後、すなわち、バックアップRAM領域の最後のアドレスをチェックサムバッファの領域にすれば、RAM領域において無駄が生ずることはない。   In this embodiment, the checksum buffer is stored at the last address of the backup RAM area (variable data storage means). Therefore, for example, when checking whether there is an error in the program of the checksum creation method, it is possible to easily check it. This is because it is sufficient to confirm whether or not the value of the final address in the RAM area is correct. In this embodiment, the checksum calculation start address is an address where a backup flag is set, and the checksum calculation final address is the last address in the prize ball control flag buffer (see FIG. 46). . Therefore, if the last address in the backup RAM area is used as the checksum buffer area after the prize ball control flag buffer, there is no waste in the RAM area.

なお、確認のしやすさやRAM領域の無駄防止を考慮すると、バックアップRAM領域の最初のアドレスをチェックサムバッファの領域にしてもよい。   In consideration of ease of confirmation and prevention of waste of the RAM area, the first address of the backup RAM area may be used as the checksum buffer area.

また、遊技機への電力供給開始時にはパリティチェックOKか否かの判断が行われるが(図19におけるステップS9)、その判断では、電力供給停止時処理におけるパリティデータの作成処理(ステップS482〜S491)と同様の処理が行われ、処理結果すなわち演算結果がチェックサムバッファの内容と一致したらパリティチェックOKと判定される。   Further, at the start of power supply to the gaming machine, it is determined whether or not the parity check is OK (step S9 in FIG. 19). In this determination, the parity data creation process (steps S482 to S491) in the power supply stop process is performed. ) Is performed, and if the processing result, that is, the operation result matches the contents of the checksum buffer, it is determined that the parity check is OK.

なお、ここでは、バックアップRAM領域の最後または最初のアドレスをチェックサムバッファの領域にしたが、バックアップRAM領域の中途の領域にチェックサムバッファの領域を割り当ててもよい。また、この実施の形態では、作業領域のデータにもとづいてチェックサムが生成されているが、スタック領域のデータも含めてチェックサムを生成するようにしてもよい。   Although the last or first address of the backup RAM area is used as the checksum buffer area here, the checksum buffer area may be allocated to an intermediate area of the backup RAM area. In this embodiment, the checksum is generated based on the work area data. However, the checksum may be generated including the stack area data.

さらに、この実施の形態では、電力供給開始時に、電力供給停止時処理における処理と同じ処理によってチェックサムを生成し、生成されたチェックサムとバックアップRAMに保存されていたチェックサムとを比較したが、他の方法を用いてもよい。例えば、バックアップRAMに保存されていたチェックサムを初期値として、電力供給停止時処理において演算対象となった各データについて演算を行い、演算結果が所定値(例えば00(H))と一致したらパリティチェックOKと判定するようにしてもよい。また、パリティチェックのためのチェックデータはチェックサムに限られず、バックアップRAMの内容が正当に保存されているかを判定できるものであれば、他のチェックデータを用いてもよい。   Further, in this embodiment, at the start of power supply, a checksum is generated by the same process as the process at the time of power supply stop, and the generated checksum is compared with the checksum stored in the backup RAM. Other methods may be used. For example, using the checksum stored in the backup RAM as an initial value, the calculation is performed for each data that is a calculation target in the power supply stop process, and if the calculation result matches a predetermined value (for example, 00 (H)), the parity is You may make it determine with check OK. The check data for the parity check is not limited to the checksum, and other check data may be used as long as it can be determined whether the contents of the backup RAM are properly stored.

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

電源断信号は、電気部品制御基板(この実施の形態では主基板31および払出制御基板37)に導入され、CPU56および払出制御用CPU371のNMI端子に入力される。CPU56および払出制御用CPU371は、NMI処理によって、所定の電力供給停止時処理を実行する。   The power-off signal is introduced into the electrical component control board (in this embodiment, the main board 31 and the payout control board 37) and input to the NMI terminals of the CPU 56 and the payout control CPU 371. The CPU 56 and the payout control CPU 371 execute predetermined power supply stop processing by NMI processing.

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

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

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

なお、ここでは、電源監視回路は、遊技機で使用される直流電圧のうちで最も高い電源VSLの電圧を監視したが、電源断信号を発生するタイミングが、IC駆動電圧で動作する電気部品制御手段が所定の電力供給停止時処理を行うための動作時間が確保されるようなタイミングであれば、監視対象電圧は、最も高い電源VSLの電圧でなくてもよい。すなわち、少なくともIC駆動電圧よりも高い電圧を監視すれば、電気部品制御手段が所定の電力供給停止時処理を行うための動作時間が確保されるようなタイミングで電源断信号を発生することができる。   In this case, the power supply monitoring circuit monitors the voltage of the highest power supply VSL among the DC voltages used in the gaming machine, but the timing for generating the power-off signal is the electrical component control that operates with the IC drive voltage. The monitoring target voltage may not be the highest voltage of the power source VSL as long as the operation time for the means to perform the predetermined power supply stop process is ensured. That is, if at least a voltage higher than the IC drive voltage is monitored, the power-off signal can be generated at such a timing that the operation time for the electrical component control means to perform the predetermined power supply stop process is secured. .

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

次に、表示制御用CPU101を含む表示制御手段について説明する。図49は、表示制御用CPU101が実行するメイン処理を示すフローチャートである。メイン処理では、まず、RAM領域のクリアや各種初期値の設定、また表示制御の起動間隔を決めるための2msタイマの初期設定等を行うための初期化処理が行われる(ステップS701)。その後、この実施の形態では、表示制御用CPU101は、タイマ割込フラグの監視(ステップS703)の確認を行うループ処理に移行する。なお、ループ内では所定の乱数を発生するためのカウンタを更新する処理も行われる(ステップS702)。そして、図50に示すように、タイマ割込が発生すると、表示制御用CPU101は、タイマ割込フラグをセットする(ステップS715)。メイン処理において、タイマ割込フラグがセットされていたら、表示制御用CPU101は、そのフラグをクリアし(ステップS704)、以下の可変表示制御処理を実行する。   Next, display control means including the display control CPU 101 will be described. FIG. 49 is a flowchart illustrating main processing executed by the display control CPU 101. In the main process, an initialization process is first performed for clearing the RAM area, setting various initial values, and initializing a 2 ms timer for determining the display control activation interval (step S701). Thereafter, in this embodiment, the display control CPU 101 shifts to a loop process for monitoring the timer interrupt flag (step S703). In the loop, a process for updating a counter for generating a predetermined random number is also performed (step S702). As shown in FIG. 50, when a timer interrupt occurs, the display control CPU 101 sets a timer interrupt flag (step S715). If the timer interrupt flag is set in the main process, the display control CPU 101 clears the flag (step S704) and executes the following variable display control process.

なお、この実施の形態では、タイマ割込は2ms毎にかかるとする。すなわち、可変表示制御処理は、2ms毎に起動される。また、この実施の形態では、タイマ割込処理ではフラグセットのみがなされ、具体的な可変表示制御処理はメイン処理において実行されるが、タイマ割込処理で可変表示制御処理を実行してもよい。   In this embodiment, it is assumed that the timer interrupt takes every 2 ms. That is, the variable display control process is started every 2 ms. In this embodiment, only the flag is set in the timer interrupt process, and the specific variable display control process is executed in the main process. However, the variable display control process may be executed in the timer interrupt process. .

可変表示制御処理において、表示制御用CPU101は、まず、受信した表示制御コマンドを解析する(コマンド解析実行処理:ステップS705)。次いで、初期化報知コマンドを受信しているか否か確認する(ステップS706)。具体的には、初期化報知コマンドに対応するコマンド受信フラグがセットされているか否か確認する。初期化報知コマンドを受信していれば、初期化処理の実行を報知するための初期化報知を開始する(ステップS707)。この例では、初期化報知として、可変表示装置9に、例えば「初期化処理実行中!」などの文字や図形などによって構成される初期化報知画面を表示する。初期化報知画面は、初期化処理の実行を報知するための画面であり、初期化報知画面を示すデータは、例えばキャラクタROM86に格納されている。また、表示制御用CPU101は、初期化報知中フラグをオンするとともに(ステップS708)、初期化報知期間タイマを設定する(ステップS709)。初期化報知中フラグは、初期化報知の実行中であるか否かを確認するためのフラグであり、表示制御基板80が備えるRAMに保存されている。初期化報知期間タイマは、初期化報知の実行期間を計測するためのタイマである。初期化報知の実行期間は、報知を確実とするために比較的長い期間(例えば5分)が設定される。   In the variable display control process, the display control CPU 101 first analyzes the received display control command (command analysis execution process: step S705). Next, it is confirmed whether or not an initialization notification command has been received (step S706). Specifically, it is confirmed whether or not a command reception flag corresponding to the initialization notification command is set. If the initialization notification command has been received, the initialization notification for notifying the execution of the initialization process is started (step S707). In this example, as the initialization notification, the variable notification device 9 displays an initialization notification screen composed of characters and figures such as “Initialization process in progress!”. The initialization notification screen is a screen for notifying the execution of the initialization process, and data indicating the initialization notification screen is stored in, for example, the character ROM 86. The display control CPU 101 turns on the initialization notification flag (step S708) and sets an initialization notification period timer (step S709). The initialization notification in progress flag is a flag for confirming whether or not the initialization notification is being executed, and is stored in a RAM provided in the display control board 80. The initialization notification period timer is a timer for measuring the execution period of the initialization notification. The initialization notification execution period is set to a relatively long period (for example, 5 minutes) in order to ensure notification.

次いで、表示制御用CPU101は、初期化報知中フラグがオン状態であるか否か確認する(ステップS710)。初期化報知中フラグがオン状態であれば、初期化報知期間タイマがタイムアウトしているか否か確認し(ステップS711)、タイムアウトしていれば、初期化報知中フラグをオフするとともに(ステップS712)、可変表示装置9での初期化報知画面の表示を終了する(ステップS713)。   Next, the display control CPU 101 checks whether or not the initialization notification flag is on (step S710). If the initialization notification flag is on, it is checked whether or not the initialization notification period timer has timed out (step S711). If it has timed out, the initialization notification flag is turned off (step S712). Then, the display of the initialization notification screen on the variable display device 9 is terminated (step S713).

さらに、表示制御用CPU101は、表示制御プロセス処理を行う(ステップS714)。表示制御プロセス処理では、制御状態に応じた各プロセスのうち、現在の制御状態に対応したプロセスを選択して実行する。その後、ステップS702に戻る。   Further, the display control CPU 101 performs display control process processing (step S714). In the display control process process, a process corresponding to the current control state is selected and executed from among the processes corresponding to the control state. Thereafter, the process returns to step S702.

次に、主基板31からの表示制御コマンド受信処理について説明する。図51は、主基板31から受信した表示制御コマンドを格納するためのコマンド受信バッファの一構成例を示す説明図である。この例では、2バイト構成の表示制御コマンドを6個格納可能なリングバッファ形式のコマンド受信バッファが用いられる。従って、コマンド受信バッファは、受信コマンドバッファ1〜12の12バイトの領域で構成される。そして、受信したコマンドをどの領域に格納するのかを示すコマンド受信個数カウンタが用いられる。コマンド受信個数カウンタは、0〜11の値をとる。なお、必ずしもリングバッファ形式でなくてもよく、例えば、図柄指定コマンド格納領域を3個(2×3=6バイトのコマンド受信バッファ)、それ以外の変動パターン指定などのコマンド格納領域を1個(2×1=2バイトのコマンド受信バッファ)のようなバッファ構成としてもよい。音制御手段や、ランプ制御手段においても同様に、リングバッファ形式でないバッファ形式としてもよい。この場合、表示制御手段、音制御手段、ランプ制御手段は、変動パターンなどの格納領域に格納される最新のコマンドにもとづいて制御される。これにより、主基板31からの指示に迅速に対応することができる。   Next, display control command reception processing from the main board 31 will be described. FIG. 51 is an explanatory diagram showing a configuration example of a command reception buffer for storing a display control command received from the main board 31. In this example, a command reception buffer of a ring buffer format capable of storing six display control commands having a 2-byte configuration is used. Therefore, the command reception buffer is configured by a 12-byte area of reception command buffers 1 to 12. A command reception number counter indicating in which area the received command is stored is used. The command reception number counter takes a value from 0 to 11. It is not always necessary to use the ring buffer format. For example, three symbol designating command storage areas (2 × 3 = 6 byte command receiving buffer) and other command storing areas for designating other fluctuation patterns ( (2 × 1 = 2-byte command reception buffer). Similarly, the sound control means and the lamp control means may have a buffer format other than the ring buffer format. In this case, the display control means, the sound control means, and the lamp control means are controlled based on the latest command stored in the storage area such as the variation pattern. Thereby, it is possible to quickly respond to an instruction from the main board 31.

図52は、割込処理による表示制御コマンド受信処理を示すフローチャートである。主基板31からの表示制御用のINT信号は表示制御用CPU101の割込端子に入力されている。例えば、主基板31からのINT信号がオン状態になると、表示制御用CPU101において割込がかかる。そして、図52に示す表示制御コマンドの受信処理が開始される。   FIG. 52 is a flowchart showing display control command reception processing by interrupt processing. An INT signal for display control from the main board 31 is input to an interrupt terminal of the CPU 101 for display control. For example, when the INT signal from the main board 31 is turned on, the display control CPU 101 is interrupted. Then, the display control command reception process shown in FIG. 52 is started.

表示制御コマンドの受信処理において、表示制御用CPU101は、まず、各レジスタをスタックに退避する(ステップS670)。なお、割込が発生すると表示制御用CPU101は自動的に割込禁止状態に設定するが、自動的に割込禁止状態にならないCPUを用いている場合には、ステップS670の処理の実行前に割込禁止命令(DI命令)を発行することが好ましい。次いで、表示制御コマンドデータの入力に割り当てられている入力ポートからデータを読み込む(ステップS671)。そして、2バイト構成の表示制御コマンドのうちの1バイト目であるか否か確認する(ステップS672)。   In the display control command reception process, the display control CPU 101 first saves each register to the stack (step S670). When an interrupt occurs, the display control CPU 101 automatically sets the interrupt prohibited state. However, if a CPU that does not automatically enter the interrupt prohibited state is used, before executing the process of step S670. It is preferable to issue an interrupt prohibition instruction (DI instruction). Next, data is read from an input port assigned to input of display control command data (step S671). And it is confirmed whether it is the 1st byte of the display control command of 2 bytes composition (Step S672).

1バイト目であるか否かは、受信したコマンドの先頭ビットが「1」であるか否かによって確認される。先頭ビットが「1」であるのは、2バイト構成である表示制御コマンドのうちのMODEデータ(1バイト目)のはずである(図32参照)。そこで、表示制御用CPU101は、先頭ビットが「1」であれば、有効な1バイト目を受信したとして、受信したコマンドを受信バッファ領域におけるコマンド受信個数カウンタが示す受信コマンドバッファに格納する(ステップS673)。   Whether or not it is the first byte is confirmed by whether or not the first bit of the received command is “1”. The first bit of “1” is supposed to be MODE data (first byte) in the display control command having a 2-byte configuration (see FIG. 32). Therefore, if the first bit is “1”, the display control CPU 101 stores the received command in the reception command buffer indicated by the command reception number counter in the reception buffer area, assuming that the first valid byte has been received (step S1). S673).

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

1バイト目を既に受信している場合には、受信した1バイトのうちの先頭ビットが「0」であるか否か確認する。そして、先頭ビットが「0」であれば、有効な2バイト目を受信したとして、受信したコマンドを、受信バッファ領域におけるコマンド受信個数カウンタ+1が示す受信コマンドバッファに格納する(ステップS675)。先頭ビットが「0」であるのは、2バイト構成である表示制御コマンドのうちのEXTデータ(2バイト目)のはずである(図32参照)。なお、ステップS674における確認結果が1バイト目を既に受信したである場合には、2バイト目として受信したデータのうちの先頭ビットが「0」でなければ処理を終了する。   If the first byte has already been received, it is confirmed whether or not the first bit of the received 1 byte is “0”. If the first bit is “0”, it is determined that a valid second byte has been received, and the received command is stored in the reception command buffer indicated by the command reception number counter + 1 in the reception buffer area (step S675). The first bit of “0” is supposed to be EXT data (second byte) in the display control command having a 2-byte configuration (see FIG. 32). If the confirmation result in step S674 indicates that the first byte has already been received, the process ends unless the first bit of the data received as the second byte is “0”.

ステップS675において、2バイト目のコマンドデータを格納すると、コマンド受信個数カウンタに2を加算する(ステップS676)。そして、コマンド受信カウンタが12以上であるか否か確認し(ステップS677)、12以上であればコマンド受信個数カウンタをクリアする(ステップS678)。その後、退避されていたレジスタを復帰し(ステップS679)、割込許可に設定する(ステップS680)。   In step S675, when the command data of the second byte is stored, 2 is added to the command reception number counter (step S676). Then, it is confirmed whether or not the command reception counter is 12 or more (step S677), and if it is 12 or more, the command reception number counter is cleared (step S678). Thereafter, the saved register is restored (step S679), and interrupt permission is set (step S680).

表示制御コマンドは2バイト構成であって、1バイト目(MODE)と2バイト目(EXT)とは、受信側で直ちに区別可能に構成されている。すなわち、先頭ビットによって、MODEとしてのデータを受信したのかEXTとしてのデータを受信したのかを、受信側において直ちに検出できる。よって、上述したように、適正なデータを受信したのか否かを容易に判定することができる。なお、このことは、払出制御コマンド、ランプ制御コマンドおよび音制御コマンドについても同様である。   The display control command has a two-byte configuration, and the first byte (MODE) and the second byte (EXT) are configured to be immediately distinguishable on the receiving side. In other words, the reception side can immediately detect whether the data as MODE or the data as EXT has been received by the first bit. Therefore, as described above, it can be easily determined whether or not appropriate data has been received. This also applies to the payout control command, the lamp control command, and the sound control command.

図53は、コマンド解析処理(ステップS705)の具体例を示すフローチャートである。主基板31から受信された表示制御コマンドは受信コマンドバッファに格納されるが、コマンド解析処理では、受信コマンドバッファに格納されているコマンドの内容が確認される。   FIG. 53 is a flowchart illustrating a specific example of command analysis processing (step S705). The display control command received from the main board 31 is stored in the reception command buffer. In the command analysis process, the contents of the command stored in the reception command buffer are confirmed.

コマンド解析処理において、表示制御用CPU101は、まず、コマンド受信バッファに受信コマンドが格納されているか否か確認する(ステップS681)。格納されているか否かは、コマンド受信カウンタの値と読出ポインタとを比較することによって判定される。両者が一致している場合が、受信コマンドが格納されていない場合である。コマンド受信バッファに受信コマンドが格納されている場合には、表示制御用CPU101は、初期化処理中フラグがオン状態であるか確認する(ステップS682)。初期化処理中フラグがオン状態であれば、コマンド受信バッファに格納されている受信コマンドをクリアする(ステップS683)。すなわち、表示制御用CPU101は、初期化報知の実行中には、受信コマンドにもとづく処理を実行しない。なお、受信コマンドをクリアしたら読出ポインタの値を+1しておく。また、初期化処理中フラグがオフ状態であれば、表示制御用CPU101は、コマンド受信バッファから受信コマンドを読み出す(ステップS684)。なお、読み出したら読出ポインタの値を+1しておく。   In the command analysis process, the display control CPU 101 first checks whether or not a reception command is stored in the command reception buffer (step S681). Whether it is stored or not is determined by comparing the value of the command reception counter with the read pointer. The case where both match is the case where the received command is not stored. When the reception command is stored in the command reception buffer, the display control CPU 101 confirms whether or not the initialization processing flag is on (step S682). If the initialization processing flag is on, the reception command stored in the command reception buffer is cleared (step S683). In other words, the display control CPU 101 does not execute processing based on the received command while the initialization notification is being executed. When the received command is cleared, the value of the read pointer is incremented by one. If the initialization processing flag is off, the display control CPU 101 reads the received command from the command reception buffer (step S684). When read, the value of the read pointer is incremented by one.

読み出した受信コマンドが左図柄指定コマンドであれば(ステップS685)、そのコマンドのEXTデータを左停止図柄格納エリアに格納し(ステップS686)、対応する有効フラグをセットする(ステップS687)。なお、左図柄指定コマンドであるか否かは、2バイトの表示制御コマンドのうちの1バイト目(MODEデータ)によって直ちに認識できる。   If the received received command is a left symbol designation command (step S685), the EXT data of the command is stored in the left stop symbol storage area (step S686), and the corresponding valid flag is set (step S687). Whether or not it is a left symbol designation command can be immediately recognized by the first byte (MODE data) of the 2-byte display control command.

読み出した受信コマンドが中図柄指定コマンドであれば(ステップS688)、表示制御用CPU101は、そのコマンドのEXTデータを中停止図柄格納エリアに格納し(ステップS689)、対応する有効フラグをセットする(ステップS690)。読み出した受信コマンドが右図柄指定コマンドであれば(ステップS691)、そのコマンドのEXTデータを右停止図柄格納エリアに格納し(ステップS692)、対応する有効フラグをセットする(ステップS693)。なお、左中右停止図柄格納エリアは、表示制御基板80が備える例えばRAMに設けられている。   If the received received command is a middle symbol designation command (step S688), the display control CPU 101 stores the EXT data of the command in the middle stop symbol storage area (step S689) and sets the corresponding valid flag (step S689). Step S690). If the received received command is a right symbol designation command (step S691), the EXT data of the command is stored in the right stop symbol storage area (step S692), and the corresponding valid flag is set (step S693). The left middle right stop symbol storage area is provided in, for example, a RAM provided in the display control board 80.

読み出した受信コマンドが変動パターンコマンドであれば(ステップS694)、表示制御用CPU101は、そのコマンドのEXTデータを変動パターン格納エリアに格納し(ステップS695)、変動パターン受信フラグをセットする(ステップS696)。なお、変動パターン格納エリアは、表示制御基板80が備える例えばRAMに設けられている。   If the received reception command is a variation pattern command (step S694), the display control CPU 101 stores the EXT data of the command in the variation pattern storage area (step S695) and sets the variation pattern reception flag (step S696). ). The variation pattern storage area is provided in, for example, a RAM provided in the display control board 80.

読み出した受信コマンドが初期化報知コマンドであれば(ステップS697)、表示制御用CPU101は、初期化報知受信フラグをセットする(ステップS698)。なお、この実施の形態では、初期化報知コマンドとして、大当り開始時表示コマンドを用いているため、受信コマンドが初期化報知コマンドとして送信されてきたコマンドであるか否かを確認する必要がある。この場合、例えば、遊技機への電力供給が開始されたあとであって、変動パターンコマンドを受信する前に、大当り開始時表示コマンドを受信した場合には、初期化報知コマンドを受信したものと判定するようにすればよい。なお、遊技機への電力供給が開始されたあとの所定期間が経過する前に大当り開始時表示コマンドを受信した場合に初期化報知コマンドを受信したものとするなど、他の方法によって確認するようにしてもよい。   If the read reception command is an initialization notification command (step S697), the display control CPU 101 sets an initialization notification reception flag (step S698). In this embodiment, since the jackpot start display command is used as the initialization notification command, it is necessary to confirm whether or not the received command is a command transmitted as the initialization notification command. In this case, for example, after the start of power supply to the gaming machine and before receiving the variation pattern command, if the big hit start display command is received, the initialization notification command is received. It may be determined. It should be noted that other methods may be used such as confirmation that an initialization notification command has been received when a jackpot start display command is received before a predetermined period of time has elapsed after power supply to the gaming machine has started. It may be.

そして、ステップS684で読み出した受信コマンドがその他の表示制御コマンドである場合には、受信コマンドに対応するフラグをセットする(ステップS699)。   If the received command read in step S684 is another display control command, a flag corresponding to the received command is set (step S699).

以上説明したように、初期化処理を実行する場合には、可変表示装置9で初期化報知を行う構成としたので、遊技制御手段に不正に信号を送り込むような不正行為が行われても、そのような不正行為を容易に発見することができるとともに、不正行為者が報知に気付いて直ちに離席したような場合でも、再度の不正行為を実行しづらくするという効果がある。初期化処理は、遊技店の営業中において、停電からの復旧時でもない限り実行されることは考えにくい。それにもかかわらず、初期化処理が実行されているということは、スタックオーバーフローを発生させたり遊技制御手段にリセット信号を入力させるなどの不正行為によってシステムリセットされた可能性が高い。従って、停電復旧時でも遊技店員による初期化操作がなされたわけでもないのに、遊技店の営業時間中に初期化報知がなされている場合には、不正行為(RAMをクリアさせて初期状態とするなどの行為)が行われたものと判断することができ、その後の不正行為(大当りを発生させるなどの行為)を未然に防ぐことができる。   As described above, when the initialization process is executed, the variable display device 9 is configured to perform the initialization notification. Therefore, even if an illegal act such as illegally sending a signal to the game control means is performed, Such an illegal act can be easily detected, and even when the fraudster notices the notification and immediately leaves his / her seat, there is an effect that it is difficult to execute the illegal act again. It is unlikely that the initialization process will be executed unless the amusement store is in operation, even when it is restored from a power failure. Nevertheless, the fact that the initialization process is being executed is highly likely that the system has been reset by an illegal act such as causing a stack overflow or inputting a reset signal to the game control means. Therefore, when the initialization operation is not performed by the game shop clerk even when the power failure is restored, but the initialization notification is given during the business hours of the game shop, an illegal act (clearing the RAM to the initial state) It is possible to determine that an act or the like has been performed, and to prevent subsequent fraudulent acts (acts such as generating jackpots).

また、上述したように、遊技制御手段(CPU56)が、初期化報知を行うことを示す初期化報知コマンドを表示制御手段(表示制御用CPU101)に送信し、表示制御手段が初期化報知のための処理を実行するように構成したので、遊技制御手段における初期化報知を行うための処理負担が軽減される。   Further, as described above, the game control means (CPU 56) transmits an initialization notification command indicating that the initialization notification is performed to the display control means (display control CPU 101), and the display control means is for the initialization notification. Since the above processing is executed, the processing load for performing the initialization notification in the game control means is reduced.

また、上述したように、初期化報知を所定期間(初期化報知期間タイマに設定される期間であって、例えば5分などのあらかじめ定められた期間)継続的に実行する構成としたので、不正行為の発見を容易とすることができる。   In addition, as described above, the initialization notification is continuously executed for a predetermined period (a period set in the initialization notification period timer, for example, a predetermined period such as 5 minutes). Discovery of actions can be facilitated.

また、上述したように、表示制御手段が、初期化報知の実行中に新たにコマンドを受信した場合でも、新たに受信したコマンドにもとづく制御を実行しない構成としたので、初期化報知を優先的に行うことができ、たとえ不正にコマンドが送信されたとしても、そのコマンドにもとづく処理が実行されず初期化報知が継続されるので、不正に送信されたコマンドにもとづいて報知が停止されてしまうことを防止することができる。   In addition, as described above, even when the display control unit receives a new command during the execution of the initialization notification, the display control unit is configured not to execute the control based on the newly received command. Even if a command is transmitted illegally, the process based on the command is not executed and the initialization notification is continued, so that the notification is stopped based on the command transmitted illegally. This can be prevented.

また、上述したように、初期化報知の指定を行う初期化報知コマンドとして、大当り開始時表示コマンドを用いる構成としたので、初期化報知を妨害するような不正行為が行われても、その不正行為を容易に発見することができる。すなわち、初期化報知コマンドを不正にマスクして、初期化報知コマンドによる指定を不正に不能とした場合には、大当り開始時表示コマンドも同時にマスクされたことになるので、大当り遊技が開始されたときに大当り開始時表示がなされないことになる。このように、初期化報知コマンドを不正にマスクした場合には、通常の遊技に影響を及ぼすことになる。従って、初期化報知コマンドによる指定を不正に不能としたことを容易に発見することができる。   In addition, as described above, since the configuration is made using the jackpot start display command as the initialization notification command for specifying the initialization notification, even if an illegal act that interferes with the initialization notification is performed, Acts can be easily discovered. That is, if the initialization notification command is illegally masked and the specification by the initialization notification command is illegally disabled, the jackpot start display command is also masked at the same time, so the jackpot game is started. Sometimes the big hit start will not be displayed. As described above, when the initialization notification command is illegally masked, the normal game is affected. Therefore, it can be easily found that the designation by the initialization notification command is illegally disabled.

なお、初期化報知の指定を行う初期化報知コマンドとして、他の既存のコマンドを用いる構成としてもよい。その場合にも、初期化報知コマンドを不正にマスクした場合には、通常の遊技に影響を及ぼすことになるので、不正行為を容易に発見することができる。この場合、初期化報知コマンドとして、大当り遊技に関するコマンド(例えば、大入賞口開放時表示コマンド、大入賞口開放時表示コマンド、大当り終了表示コマンドなど)などの比較的目立つ演出を指定するコマンドを用いるようにすれば、不正行為をより容易に発見することができる。   Note that another existing command may be used as an initialization notification command for specifying initialization notification. Even in this case, if the initialization notification command is illegally masked, it will affect the normal game, so that illegal acts can be easily detected. In this case, as an initialization notification command, a command that designates a relatively conspicuous effect such as a command related to a jackpot game (for example, a display command when the big winning opening is opened, a display command when the big winning opening is opened, a big winning end display command, or the like) is used. By doing so, cheating can be detected more easily.

また、初期化報知の指定を行う初期化報知コマンドとして、他の既存のコマンドとは異なる専用のコマンドを用いる構成としてもよい。このように構成すれば、初期化報知コマンドを受信した場合に、表示制御手段が、共通に用いられている他のコマンドとして送信されたのであるか初期化報知の指定を行うコマンドとして送信されてきたのかを確認することなく、初期化報知の指定を行うコマンドであることを直ちに把握することができるようになる。   In addition, a dedicated command different from other existing commands may be used as the initialization notification command for specifying initialization notification. With this configuration, when the initialization notification command is received, the display control means has been transmitted as a command for designating initialization notification as to whether it has been transmitted as another commonly used command. It is possible to immediately recognize that the command is for specifying the initialization notification without confirming whether the command has been received.

また、上述したように、遊技制御手段(CPU56)が、初期化処理中であることを示す初期化信号を遊技機外部に出力する構成としたので、遊技店側などにおいて初期化処理中であることを認識可能とすることができる。よって、実際には電力供給が停止していないにも関わらず初期化処理中であることを示す信号が遊技機から出力された場合には不正行為がなされたと判断することができ、不正行為者が不正行為を行った遊技機から離れた場所で容易に不正行為を発見することができるようになる。   In addition, as described above, the game control means (CPU 56) is configured to output an initialization signal indicating that initialization processing is being performed to the outside of the gaming machine, so that the game store side or the like is performing initialization processing. Can be recognized. Therefore, if a signal indicating that the initialization process is being performed despite the fact that the power supply has not actually stopped is output from the gaming machine, it can be determined that fraud has occurred, Will be able to easily discover fraudulent activity away from the gaming machine that has committed fraud.

なお、遊技制御手段(CPU56)が、電力供給停止時処理中であることを示す信号を遊技機外部に出力するようにしてもよい。例えば、情報出力信号としてホールコンピュータ等に出力する。電力供給停止時処理中であることを示す信号をホールコンピュータ等に出力するようにした場合には、遊技店側で電力供給停止時処理中であることが認識可能になる。よって、実際には電力供給が停止していないにも関わらず電力供給停止時処理中であることを示す信号が遊技機から出力された場合には不正行為がなされたと判断することができる。   Note that the game control means (CPU 56) may output a signal indicating that power supply stop processing is being performed to the outside of the gaming machine. For example, the information output signal is output to a hall computer or the like. When a signal indicating that processing is being performed when power supply is stopped is output to the hall computer or the like, it is possible for the amusement shop to recognize that processing when power supply is stopped. Therefore, when a signal indicating that the power supply stop process is being performed is output from the gaming machine even though the power supply has not actually stopped, it can be determined that an illegal act has been performed.

このように、遊技店側で遊技機が初期化処理中または電力供給停止時処理中であることを認識可能に構成した場合には、遊技店側において、不正行為が発覚していることを不正行為者が気付かないうちに、不正行為を行っている者を特定することができる。   In this way, if the amusement store is configured so that it can recognize that the gaming machine is in the initialization process or in the process of stopping power supply, the amusement store will illegally detect that an illegal act has been detected. It is possible to identify a person who is cheating without the agent being aware.

なお、上述した実施の形態では、可変表示装置9で初期化報知を行うことによって初期化処理の実行を報知する構成としていたが、可変表示装置9以外の表示手段(例えば、初期化報知用の専用の表示装置)によって報知する構成としてもよい。また、初期化報知を、例えばランプや音などによって報知する構成としてもよい。   In the above-described embodiment, the variable display device 9 is configured to notify the execution of the initialization process by performing the initialization notification. However, display means other than the variable display device 9 (for example, for initialization notification) It is good also as a structure alert | reported by a display apparatus for exclusive use. Moreover, it is good also as a structure which alert | reports initialization notification by a lamp | ramp, a sound, etc., for example.

次に、初期化報知をランプやLEDなどの発光体によって報知する構成について説明する。ここでは、電気部品制御手段の一例であり、ランプ制御基板35に搭載されたランプ制御用CPU351を含む発光体制御手段としてのランプ制御手段の動作を説明する。   Next, a configuration in which initialization notification is notified by a light emitter such as a lamp or LED will be described. Here, the operation of the lamp control means, which is an example of the electrical component control means, and serves as the light emitter control means including the lamp control CPU 351 mounted on the lamp control board 35 will be described.

図54は、ランプ制御用CPU351が実行するメイン処理を示すフローチャートである。ランプ制御用CPU351は、メイン処理において、まず、レジスタ、ワークエリアを含むRAMおよび出力ポート等を初期化する初期化処理を実行する(ステップS441)。その後、この実施の形態では、ランプ制御用CPU351は、タイマ割込フラグの監視(ステップS443)の確認を行うループ処理に移行する。なお、ループ内では所定の乱数を発生するためのカウンタを更新する処理も行われる(ステップS442)。そして、図55に示すように、タイマ割込が発生すると、ランプ制御用CPU351は、タイマ割込フラグをセットする(ステップS457)。メイン処理において、タイマ割込フラグがセットされていたら、ランプ制御用CPU351は、そのフラグをクリアし(ステップS444)、以下のランプ制御処理を実行する。   FIG. 54 is a flowchart showing main processing executed by the lamp control CPU 351. In the main process, the lamp control CPU 351 first executes an initialization process for initializing a register, a RAM including a work area, an output port, and the like (step S441). Thereafter, in this embodiment, the lamp control CPU 351 proceeds to a loop process for checking the timer interrupt flag (step S443). In the loop, a process for updating a counter for generating a predetermined random number is also performed (step S442). As shown in FIG. 55, when a timer interrupt occurs, the lamp control CPU 351 sets a timer interrupt flag (step S457). If the timer interrupt flag is set in the main process, the lamp control CPU 351 clears the flag (step S444) and executes the following lamp control process.

なお、この実施の形態では、タイマ割込は2ms毎にかかるとする。すなわち、ランプ制御処理は、2ms毎に起動される。また、この実施の形態では、タイマ割込処理ではフラグセットのみがなされ、具体的なランプ制御処理はメイン処理において実行されるが、タイマ割込処理でランプ制御処理を実行してもよい。   In this embodiment, it is assumed that the timer interrupt takes every 2 ms. That is, the lamp control process is started every 2 ms. In this embodiment, only the flag is set in the timer interrupt process, and the specific lamp control process is executed in the main process, but the lamp control process may be executed in the timer interrupt process.

ランプ制御処理において、ランプ制御用CPU351は、まず、主基板31からランプ制御コマンドを受信したか否かの確認を行う(ステップS445:コマンド認識処理)。次いで、初期化報知コマンドを受信しているか否か確認する(ステップS446)。具体的には、初期化報知コマンドに対応するコマンド受信フラグがセットされているか否か確認する。ここでは、初期化報知コマンドとして、例えば大当り開始時ランプ指定コマンド(図35参照)が用いられる。初期化報知コマンドを受信していれば、初期化処理の実行を報知するための初期化報知を開始する(ステップS447)。この例では、初期化報知として、ランプ制御基板35が制御する発光体を点灯させたり点滅させたりする処理を行う。また、ランプ制御用CPU351は、初期化報知中フラグをオンするとともに(ステップS448)、初期化報知期間タイマを設定する(ステップS449)。初期化報知中フラグは、初期化報知の実行中であるか否かを確認するためのフラグであり、ランプ制御基板35が備えるRAMに保存されている。初期化報知期間タイマは、初期化報知の実行期間を計測するためのタイマである。初期化報知の実行期間は、報知を確実とするために比較的長い期間(例えば5分)が設定される。   In the lamp control process, the lamp control CPU 351 first checks whether a lamp control command has been received from the main board 31 (step S445: command recognition process). Next, it is confirmed whether or not an initialization notification command has been received (step S446). Specifically, it is confirmed whether or not a command reception flag corresponding to the initialization notification command is set. Here, for example, a big hit start lamp designation command (see FIG. 35) is used as the initialization notification command. If the initialization notification command has been received, the initialization notification for notifying the execution of the initialization process is started (step S447). In this example, as initialization notification, a process of turning on or blinking the light emitter controlled by the lamp control board 35 is performed. The lamp control CPU 351 turns on the initialization notification flag (step S448) and sets an initialization notification period timer (step S449). The initialization notification flag is a flag for confirming whether or not the initialization notification is being executed, and is stored in a RAM provided in the lamp control board 35. The initialization notification period timer is a timer for measuring the execution period of the initialization notification. The initialization notification execution period is set to a relatively long period (for example, 5 minutes) in order to ensure notification.

次いで、ランプ制御用CPU351は、初期化報知中フラグがオン状態であるか否か確認する(ステップS450)。初期化報知中フラグがオン状態であれば、初期化報知期間タイマがタイムアウトしているか否か確認し(ステップS451)、タイムアウトしていれば、初期化報知中フラグをオフするとともに(ステップS452)、発光体を用いた初期化報知の実行を終了する(ステップS453)。   Next, the lamp control CPU 351 confirms whether or not the initialization notification flag is on (step S450). If the initialization notification flag is on, it is checked whether the initialization notification period timer has timed out (step S451), and if it has timed out, the initialization notification flag is turned off (step S452). Then, the execution of the initialization notification using the light emitter is terminated (step S453).

さらに、ランプ制御用CPU351は、受信したランプ制御コマンドに応じて、使用するランプデータを変更する等の処理であるコマンド実行処理を行う(ステップS454)。なお、主基板31からのランプ制御コマンドは、INT信号の入力に応じて起動される割込処理で取り込まれ、RAMに形成されている入力バッファに格納される。その後、この実施の形態では、ランプ制御用CPU351は、ランププロセス更新処理およびポート出力処理を行う(ステップS455,S456)。その後、ステップS442に戻る。   Further, the lamp control CPU 351 performs a command execution process such as a process of changing lamp data to be used in accordance with the received lamp control command (step S454). The lamp control command from the main board 31 is taken in by an interrupt process activated in response to the input of the INT signal and stored in an input buffer formed in the RAM. Thereafter, in this embodiment, the lamp control CPU 351 performs lamp process update processing and port output processing (steps S455 and S456). Thereafter, the process returns to step S442.

この実施の形態では、遊技の進行に応じて点滅制御されるランプ・LEDの点灯パターンは、ROMに格納されているランプデータに応じて制御される。ランプデータは、制御パターンの種類毎に用意されている(特別図柄の変動中のランプ・LEDによる演出パターンを指定する制御コマンドおよび遊技進行状況に応じて遊技制御手段から送出されるその他の遊技演出に関する制御コマンド毎に用意されている)。ランプデータには、ランプ・LEDを点灯または消灯することを示すデータ、および点灯または消灯の期間(プロセスタイマ値)を示すデータが設定されている。すなわち、制御用データ領域には、発光体の点灯パターンを示すデータが格納されている。   In this embodiment, the lighting pattern of the lamp / LED that is controlled to blink according to the progress of the game is controlled according to the lamp data stored in the ROM. Ramp data is prepared for each type of control pattern (control commands that specify an effect pattern by lamps and LEDs during the change of special symbols, and other game effects sent from the game control means according to the game progress status. Prepared for each control command). In the lamp data, data indicating that the lamp / LED is turned on or off and data indicating a lighting or extinguishing period (process timer value) are set. That is, data indicating the lighting pattern of the light emitter is stored in the control data area.

ランププロセス更新処理では、タイマ状態保存領域に保存されている演出タイマの値にもとづいて、プロセスタイマがタイムアウトしたか否かを判定する。具体的には、タイマ状態保存領域に保存されている演出タイマの値に、ランプ・LEDを消灯または点灯させることが設定されているデータに応じたプロセスタイマ値を、そのデータにもとづく演出を開始するときに加算し、プロセス終了判定値を算出してRAMの所定の領域に保存しておく。なお、演出タイマはタイマ割込処理で更新される。そして、演出タイマの値と、算出されているプロセス終了判定値とが一致するか否かを確認して、一致している場合にはプロセスタイマがタイムアウトしたものと判定する。プロセスタイマがタイムアウトしたと判定された場合には、ランプデータにおける次のアドレスに設定されているデータに応じてランプ・LEDを消灯または点灯させることに決定されるとともに、その決定結果に応じたプロセスタイマ値を、演出タイマの値に加算して新たなプロセス終了判定値が算出されて保存される。新たなプロセス終了判定値が設定されたときには点灯/消灯の切替がなされたときであるから、ポート出力処理において、ランプ・LEDを点灯または消灯のためのデータが該当する出力ポートに出力される。   In the lamp process update process, it is determined whether or not the process timer has timed out based on the value of the effect timer stored in the timer state storage area. Specifically, the process timer value corresponding to the data set to turn off or turn on the lamp / LED is added to the value of the effect timer stored in the timer state storage area, and the effect based on the data is started. The process end determination value is calculated and stored in a predetermined area of the RAM. The effect timer is updated by timer interruption processing. Then, it is checked whether or not the value of the effect timer matches the calculated process end determination value. If they match, it is determined that the process timer has timed out. If it is determined that the process timer has timed out, it is decided to turn off or turn on the lamp / LED according to the data set at the next address in the lamp data, and the process according to the decision result The timer value is added to the value of the production timer, and a new process end determination value is calculated and stored. When a new process end determination value is set, it is a time of switching on / off, so that data for turning on / off the lamp / LED is output to the corresponding output port in the port output processing.

以上のように、初期化処理を実行する場合に、発光体を用いて初期化報知を行う構成にした場合についても、可変表示装置9で報知する場合と同様に、遊技制御手段に不正に信号を送り込むような不正行為が行われても、そのような不正行為を容易に発見することができるとともに、不正行為者が報知に気付いて直ちに離席したような場合でも、再度の不正行為を実行しづらくするという効果がある。また、不正行為(RAMをクリアさせて初期状態とするなどの行為)が行われたことを容易に発見することができるので、その後の不正行為(大当りを発生させるなどの行為)を未然に防ぐことができる。   As described above, when the initialization process is executed, even when the initialization notification is made using the illuminant, the signal is illegally transmitted to the game control means as in the case of the notification by the variable display device 9. Even if a fraudulent act such as sending a message is made, such a fraudulent act can be easily detected, and even if the fraudulent notices the notification and immediately leaves the office, the fraudulent act is performed again. It has the effect of making it difficult. Moreover, since it is possible to easily find out that a fraudulent act (an act such as clearing the RAM to the initial state) has been performed, subsequent fraudulent acts (acts such as generating a big hit) are prevented in advance. be able to.

次に、初期化報知をスピーカなどの音声出力装置によって報知する構成について説明する。ここでは、電気部品制御手段の一例であり、音制御基板70に搭載された音制御用CPU701を含む音制御手段の動作を説明する。   Next, a configuration in which initialization notification is notified by an audio output device such as a speaker will be described. Here, the operation of the sound control means including the sound control CPU 701 mounted on the sound control board 70 will be described as an example of the electrical component control means.

図56は、音制御用CPU701が実行するメイン処理を示すフローチャートである。音制御用CPU701は、メイン処理において、まず、レジスタ、ワークエリアを含むRAMおよび出力ポート等を初期化する初期化処理を実行する(ステップS471)。その後、この実施の形態では、音制御用CPU701は、タイマ割込フラグの監視(ステップS473)の確認を行うループ処理に移行する。なお、ループ内では所定の乱数を発生するためのカウンタを更新する処理も行われる(ステップS472)。そして、図57に示すように、タイマ割込が発生すると、音制御用CPU701は、タイマ割込フラグをセットする(ステップS487)。メイン処理において、タイマ割込フラグがセットされていたら、音制御用CPU701は、そのフラグをクリアし(ステップS474)、以下の音制御処理を実行する。   FIG. 56 is a flowchart showing main processing executed by the sound control CPU 701. In the main process, the sound control CPU 701 first executes an initialization process for initializing a register, a RAM including a work area, an output port, and the like (step S471). Thereafter, in this embodiment, the sound control CPU 701 proceeds to a loop process for checking the timer interrupt flag (step S473). In the loop, a process for updating a counter for generating a predetermined random number is also performed (step S472). As shown in FIG. 57, when a timer interrupt occurs, the sound control CPU 701 sets a timer interrupt flag (step S487). If the timer interrupt flag is set in the main process, the sound control CPU 701 clears the flag (step S474) and executes the following sound control process.

なお、この実施の形態では、タイマ割込は2ms毎にかかるとする。すなわち、音制御処理は、2ms毎に起動される。また、この実施の形態では、タイマ割込処理ではフラグセットのみがなされ、具体的な音制御処理はメイン処理において実行されるが、タイマ割込処理で音制御処理を実行してもよい。   In this embodiment, it is assumed that the timer interrupt takes every 2 ms. That is, the sound control process is started every 2 ms. In this embodiment, only the flag is set in the timer interrupt process, and the specific sound control process is executed in the main process, but the sound control process may be executed in the timer interrupt process.

音制御処理において、音制御用CPU701は、まず、主基板31から音制御コマンドを受信したか否かの確認を行う(ステップS475:コマンド認識処理)。次いで、初期化報知コマンドを受信しているか否か確認する(ステップS476)。具体的には、初期化報知コマンドに対応するコマンド受信フラグがセットされているか否か確認する。ここでは、初期化報知コマンドとして、例えば大当り開始時音指定コマンド(図36参照)が用いられる。初期化報知コマンドを受信していれば、初期化処理の実行を報知するための初期化報知を開始する(ステップS477)。この例では、初期化報知として、音制御基板70が制御するスピーカ27を用いて所定の音出力処理を行う。また、音制御用CPU701は、初期化報知中フラグをオンするとともに(ステップS478)、初期化報知期間タイマを設定する(ステップS479)。初期化報知中フラグは、初期化報知の実行中であるか否かを確認するためのフラグであり、音制御基板70が備えるRAMに保存されている。初期化報知期間タイマは、初期化報知の実行期間を計測するためのタイマである。初期化報知の実行期間は、報知を確実とするために比較的長い期間(例えば5分)が設定される。   In the sound control process, the sound control CPU 701 first checks whether or not a sound control command has been received from the main board 31 (step S475: command recognition process). Next, it is confirmed whether or not an initialization notification command has been received (step S476). Specifically, it is confirmed whether or not a command reception flag corresponding to the initialization notification command is set. Here, for example, a jackpot start sound designation command (see FIG. 36) is used as the initialization notification command. If the initialization notification command has been received, the initialization notification for notifying the execution of the initialization process is started (step S477). In this example, as the initialization notification, a predetermined sound output process is performed using the speaker 27 controlled by the sound control board 70. Further, the sound control CPU 701 turns on the initialization notification flag (step S478) and sets an initialization notification period timer (step S479). The initialization notification flag is a flag for confirming whether or not the initialization notification is being executed, and is stored in the RAM provided in the sound control board 70. The initialization notification period timer is a timer for measuring the execution period of the initialization notification. The initialization notification execution period is set to a relatively long period (for example, 5 minutes) in order to ensure notification.

次いで、音制御用CPU701は、初期化報知中フラグがオン状態であるか否か確認する(ステップS480)。初期化報知中フラグがオン状態であれば、初期化報知期間タイマがタイムアウトしているか否か確認し(ステップS481)、タイムアウトしていれば、初期化報知中フラグをオフするとともに(ステップS482)、音出力手段(スピーカ27)を用いた初期化報知の実行を終了する(ステップS483)。   Next, the sound control CPU 701 confirms whether or not the initialization notification flag is on (step S480). If the initialization notification flag is on, it is checked whether the initialization notification period timer has timed out (step S481), and if it has timed out, the initialization notification flag is turned off (step S482). Then, the initialization notification using the sound output means (speaker 27) is terminated (step S483).

さらに、音制御用CPU701は、受信した音制御コマンドに応じて、使用する音声データを変更する等の処理であるコマンド実行処理を行う(ステップS484)。なお、主基板31からの音制御コマンドは、INT信号の入力に応じて起動される割込処理で取り込まれ、RAMに形成されている入力バッファに格納される。その後、この実施の形態では、音制御用CPU701は、音声プロセス更新処理およびポート出力処理を行う(ステップS485,S486)。その後、ステップS472に戻る。   Furthermore, the sound control CPU 701 performs a command execution process, which is a process of changing sound data to be used, in accordance with the received sound control command (step S484). Note that the sound control command from the main board 31 is captured by an interrupt process activated in response to the input of the INT signal, and stored in an input buffer formed in the RAM. Thereafter, in this embodiment, the sound control CPU 701 performs a sound process update process and a port output process (steps S485 and S486). Thereafter, the process returns to step S472.

この実施の形態では、遊技の進行に応じてスピーカ27から出力される音声パターンは、ROMに格納されている音声データに応じて制御される。音声データは、制御パターンの種類毎に用意されている(特別図柄の変動中の音声出力手段による演出パターンを指定する制御コマンドおよび遊技進行状況に応じて遊技制御手段から送出されるその他の遊技演出に関する制御コマンド毎に用意されている)。   In this embodiment, the sound pattern output from the speaker 27 in accordance with the progress of the game is controlled according to the sound data stored in the ROM. Audio data is prepared for each type of control pattern (a control command for specifying an effect pattern by the sound output means during the change of the special symbol and other game effects sent from the game control means according to the game progress status) Prepared for each control command).

また、音声合成回路702は、転送リクエスト信号(SIRQ)、シリアルクロック信号(SICK)、シリアルデータ信号(SI)および転送終了信号(SRDY)によって制御される。音声合成回路702は、SIRQがローレベルになると、SICKに同期してSIを1ビットずつ取り込み、SRDYがローレベルになるとそれまでに受信した各SIからなるデータを1つの音声再生用データと解釈する。   The voice synthesis circuit 702 is controlled by a transfer request signal (SIRQ), a serial clock signal (SICK), a serial data signal (SI), and a transfer end signal (SRDY). When the SIRQ goes low, the speech synthesis circuit 702 takes in SI one bit at a time in synchronization with SICK, and when SRDY goes low, interprets the data composed of the SIs received so far as one voice playback data. To do.

各音声データには、音声合成回路702に出力されるシリアルデータ信号に応じたデータ、およびそのデータに応じて発生される音声の継続期間(プロセスタイマ値)を示すデータが設定されている。すなわち、制御用データには、音発生手段(この例ではスピーカ27)からの出力パターンを示すデータが格納されている。   In each audio data, data corresponding to the serial data signal output to the audio synthesis circuit 702 and data indicating the duration (process timer value) of the audio generated according to the data are set. That is, the control data stores data indicating the output pattern from the sound generating means (the speaker 27 in this example).

音声プロセス更新処理では、プロセスタイマ値に応じた値が初期設定されたタイマの値の減算処理が行われ、そのタイマがタイムアウトすると、音声データにおける次のアドレスに設定されているデータに応じて出力音声に変更することが決定されるとともに、その決定結果に応じたプロセスタイマ値がタイマに設定される。また、プロセスタイマ値がタイマに設定されたときには出力音声の切替がなされたときであるから、ポート出力処理(ステップS486)において、音声合成回路702にデータを出力するための出力ポートを介して、音声合成回路702に、新たな出力音声に対応したデータが出力される。   In the audio process update process, the value of the timer corresponding to the process timer value is initially subtracted, and when the timer times out, it is output according to the data set at the next address in the audio data It is determined to change to voice, and a process timer value corresponding to the determination result is set in the timer. In addition, since the output voice is switched when the process timer value is set in the timer, in the port output process (step S486), via the output port for outputting data to the voice synthesis circuit 702, Data corresponding to the new output voice is output to the voice synthesis circuit 702.

音声プロセス更新処理では、タイマ状態保存領域に保存されている演出タイマの値にもとづいて、プロセスタイマがタイムアウトしたか否かを判定する。具体的には、演出タイマの値に、スピーカ27に音声出力させることが設定されているデータに応じたプロセスタイマ値を、そのデータにもとづく演出を開始するときに加算し、プロセス終了判定値を算出してRAMの所定の領域に保存しておく。なお、演出タイマはタイマ割込処理で更新される。そして、タイマ状態保存領域に保存されている演出タイマの値と、算出されているプロセス終了判定値とが一致するか否かを確認して、一致している場合にはプロセスタイマがタイムアウトしたものと判定する。プロセスタイマがタイムアウトしたと判定された場合には、音声データにおける次のアドレスに設定されているデータに応じて音声出力を行うことに決定されるとともに、その決定結果に応じたプロセスタイマ値を演出タイマの値に加算して新たなプロセス終了判定値が算出されて保存される。新たなプロセス終了判定値が設定されたときには出力音声の切替がなされたときであるから、ポート出力処理(ステップS486)において、音声合成回路702にデータを出力するための出力ポートを介して、音声合成回路702に、新たな出力音声に対応したデータが出力される。   In the audio process update process, it is determined whether or not the process timer has timed out based on the value of the effect timer stored in the timer state storage area. Specifically, the process timer value corresponding to the data set to be output by the speaker 27 is added to the value of the effect timer when starting the effect based on the data, and the process end determination value is set. Calculated and stored in a predetermined area of the RAM. The effect timer is updated by timer interruption processing. Then, it is checked whether or not the value of the production timer stored in the timer state storage area matches the calculated process end judgment value. If they match, the process timer has timed out Is determined. When it is determined that the process timer has timed out, it is determined to output audio according to the data set at the next address in the audio data, and the process timer value corresponding to the determination result is produced. A new process end determination value is calculated and added to the timer value and stored. When a new process end determination value is set, the output voice is switched. Therefore, in the port output process (step S486), the voice is sent via the output port for outputting data to the voice synthesis circuit 702. Data corresponding to the new output sound is output to the synthesis circuit 702.

具体的には、音制御用CPU701は、ポート出力処理において、SIRQをオン(ローレベル)にして、ROM(音声コマンドデータ領域)から読み出したデータ(音声コマンド)をSICKに同期してSIとして出力し、出力が完了したらSRDYをローレベルにする。音声合成回路702は、SIによってデータを受信すると、受信したデータに応じた音声を発生する。   Specifically, in the port output process, the sound control CPU 701 turns on SIRQ (low level) and outputs data (voice command) read from ROM (voice command data area) as SI in synchronization with SICK. When the output is completed, SRDY is set to a low level. When the voice synthesis circuit 702 receives data by SI, the voice synthesis circuit 702 generates voice corresponding to the received data.

以上のように、初期化処理を実行する場合に、音出力手段を用いて初期化報知を行う構成とした場合についても、可変表示装置9で報知する場合と同様に、遊技制御手段に不正に信号を送り込むような不正行為が行われても、そのような不正行為を容易に発見することができるとともに、不正行為者が報知に気付いて直ちに離席したような場合でも、再度の不正行為を実行しづらくするという効果がある。また、不正行為(RAMをクリアさせて初期状態とするなどの行為)が行われたことを容易に発見することができるので、その後の不正行為(大当りを発生させるなどの行為)を未然に防ぐことができる。   As described above, when the initialization process is executed, the case where the initialization notification is performed using the sound output unit is also illegally transmitted to the game control unit in the same manner as in the case of the notification by the variable display device 9. Even if a fraudulent act such as sending a signal is performed, such a fraudulent activity can be easily detected, and even if the fraudulent person notices the notification and immediately leaves his / her seat, This has the effect of making it difficult to execute. Moreover, since it is possible to easily find out that a fraudulent act (an act such as clearing the RAM to the initial state) has been performed, subsequent fraudulent acts (acts such as generating a big hit) are prevented in advance. be able to.

上述したように、この実施の形態では、遊技機は、遊技に関わる制御を行う遊技制御手段と、遊技機への電力供給が停止しても所定期間は記憶内容を保持することが可能なバックアップRAMとが搭載された主基板31と、所定電位の電源の出力電圧を監視し検出条件が成立した場合に検出信号を出力する電源監視手段(この実施の形態では電源監視用IC902)と、遊技者に所定の遊技価値を付与するか否かの判定に用いられる判定用の数値を所定の数値範囲内で更新する判定用数値更新手段(この実施の形態ではランダム1生成用カウンタ)とを備え、主基板31には、遊技制御手段の動作に用いられる発振信号を発生する第1発振回路92と、前記第1発振回路92とは別に構成され所定の発振信号を発生する第2発振回路930と、第2発振回路930の発振信号を計数する計数手段(この実施の形態ではカウンタ931)とが搭載され、遊技制御手段は、電源監視手段からの検出信号の出力に関連して、制御状態の復旧に必要なデータをバックアップRAMに退避させる処理を含む電力供給停止時処理を実行可能であり、遊技機への電力供給が開始された場合に、所定の条件に応じて、制御状態を初期化する初期化処理またはバックアップRAMの記憶内容にもとづいて制御状態を復旧する復旧処理のいずれか一方を実行可能であって、初期化処理を実行する場合には、計数手段の計数値にもとづいて判定用数値更新手段の更新を開始するように構成されている。なお、所定の条件とは、例えば、電力供給が開始されたときにバックアップRAMの記憶内容が電力供給が停止したときの状態のまま保存されていたことである。   As described above, in this embodiment, the gaming machine has a game control means for performing control related to the game, and a backup capable of retaining the stored contents for a predetermined period even when power supply to the gaming machine is stopped. A main board 31 on which a RAM is mounted; power supply monitoring means (monitoring power supply IC 902 in this embodiment) for monitoring the output voltage of a power supply of a predetermined potential and outputting a detection signal when a detection condition is satisfied; And a determination numerical value updating means (in this embodiment, a random 1 generation counter) for updating a determination numerical value used for determining whether or not to give a predetermined game value to a person within a predetermined numerical value range. The main board 31 includes a first oscillation circuit 92 that generates an oscillation signal used for the operation of the game control means, and a second oscillation circuit 930 that is configured separately from the first oscillation circuit 92 and generates a predetermined oscillation signal. When Counting means (counter 931 in this embodiment) for counting the oscillation signal of the second oscillation circuit 930 is mounted, and the game control means restores the control state in relation to the output of the detection signal from the power supply monitoring means. It is possible to execute a power supply stop process including a process for saving data necessary for backup to the backup RAM, and initialize the control state according to a predetermined condition when power supply to the gaming machine is started. Either the initialization process or the restoration process that restores the control state based on the stored contents of the backup RAM can be executed. When the initialization process is executed, it is determined based on the count value of the counting means. It is configured to start updating the numerical value updating means. The predetermined condition is, for example, that the stored contents of the backup RAM are stored in the state when the power supply is stopped when the power supply is started.

また、遊技制御手段が実行する遊技制御処理において所定の数値範囲内で数値を更新する初期値用数値更新手段(この実施の形態ではランダム6生成用カウンタ)を備え、遊技制御手段は、計数手段の計数値にもとづいて判定用数値更新手段の更新を開始した後では、初期値用数値更新手段の数値を用いて初期値を更新する。   In addition, the game control means includes initial value numerical value updating means (in this embodiment, a random 6 generation counter) for updating a numerical value within a predetermined numerical value range in the game control processing executed by the game control means. After the updating of the determination numerical value updating means is started based on the count value, the initial value is updated using the numerical value of the initial value numerical value updating means.

具体的には、CPU56は、遊技制御プログラムに従って、大当り判定用乱数を生成するためのカウンタ(上記の例ではランダム1生成用カウンタ)を、初期化処理(図19に示すステップS101)においてカウンタ931のカウント値にもとづいて不定値に初期化し、ランダム1生成用カウンタのカウント値が最大値になると初期値用乱数の値にもとづいて新たな初期値(0〜316のいずれか:図26参照)を設定する。よって、初期化後の1周目においては、大当り判定用乱数を生成するためのカウンタのカウント値があらかじめ決められた大当り判定値に一致するタイミングを把握することは困難である。   Specifically, in accordance with the game control program, the CPU 56 generates a counter (931 in the above example) for generating a big hit determination random number in the initialization process (step S101 shown in FIG. 19). Is initialized to an indefinite value based on the count value of the random number, and when the count value of the random 1 generation counter reaches the maximum value, a new initial value is set based on the value of the random number for initial value (any of 0 to 316: see FIG. 26). Set. Therefore, in the first round after initialization, it is difficult to grasp the timing at which the count value of the counter for generating the jackpot determination random number matches the predetermined jackpot determination value.

また、計数手段の計数値は、遊技機への電力供給が停止しても保存される。すなわち、遊技機への電力供給が停止しても初期化されない。よって、遊技機への電力供給停止に関連した不正行為をより受けにくくすることができる。   Further, the count value of the counting means is stored even if the power supply to the gaming machine is stopped. That is, even if the power supply to the gaming machine is stopped, it is not initialized. Therefore, it is possible to make it more difficult to receive fraud related to the stop of power supply to the gaming machine.

さらに、遊技制御手段は、復旧処理を実行する場合には、特定の値はなっていないバックアップRAMに記憶されている判定用数値更新手段の更新値にもとづいて更新を開始する。   Further, when executing the restoration process, the game control means starts updating based on the update value of the determination numerical value update means stored in the backup RAM that is not a specific value.

なお、大当り判定用乱数を生成するためのカウンタの更新が初期化処理後の1周目であるときには、たとえ始動入賞があったとしても、例えば上述したステップS44で大当り判定用乱数を抽出しないで他のはずれ値を用いるようにしたり、ステップS54で常にはずれと判断するなどのようにして、大当り判定用乱数にもとづく抽選を行わないように構成してもよい。このように構成すれば、初期化処理において大当り判定用乱数を生成するためのカウンタの初期値を不定値にしなくても、大当り判定用乱数の初期値を特定できなくなるので、大当り判定用乱数の更新が初期化後の1周目であるときであっても、不正行為によって大当り判定値を狙われてしまうことを防止することができる。   Note that when the counter for generating the big hit determination random number is the first round after the initialization process, even if there is a start win, for example, the big hit determination random number is not extracted in step S44 described above. Another lottery value may be used, or a lottery based on the big hit determination random number may not be performed, for example, it is always judged as a miss in step S54. With this configuration, even if the initial value of the counter for generating the jackpot determination random number in the initialization process is not indefinite, the initial value of the jackpot determination random number cannot be specified. Even when the update is the first round after the initialization, it is possible to prevent the jackpot determination value from being targeted by an illegal act.

また、上記の実施の形態では、大当り判定用乱数を生成するためのカウンタ以外の判定用乱数や初期値決定用乱数を生成するためのカウンタは、初期化処理(図19に示すステップS101)において0に初期化されたが、初期化処理においてカウンタの値を0に初期化しないようにしてもよい。そのようにすれば、初期化処理が実行されても各カウンタの初期値がばらつくので、不正行為によって大当り判定値を狙われてしまうことを防止することができる。   In the above embodiment, the counter for generating the determination random number and the initial value determining random number other than the counter for generating the big hit determination random number is used in the initialization process (step S101 shown in FIG. 19). Although initialized to 0, the counter value may not be initialized to 0 in the initialization process. By doing so, even if the initialization process is executed, the initial value of each counter varies, so that it is possible to prevent the jackpot determination value from being targeted by fraud.

例えば、システムリセット回路65に相当する回路(リセット回路とする。)が、主基板31ではなく電源源基板910等の主基板31の外部の基板に設けられ、そのリセット回路からシステムリセット信号を主基板31に入力しているような構成では、基板間で、上述したような不正行為がなされる可能性がある。すなわち、基板間のケーブルに、主基板31に対して不正にシステムリセット信号を入力させるような不正回路が接続されて不正行為がなされる可能性がある。主基板31のCPU56に対して不正にシステムリセット信号が入力された場合には、遊技機に対して電力供給が開始された場合と同様に制御状態が初期状態に戻る。すなわち、CPU56は、図9に示されたメイン処理を最初から実行する状態になる。この場合、電力供給停止時処理は実行されていないので、遊技状態復旧処理(図19におけるステップS10)は実行されず、CPU56は初期化処理を実行する。   For example, a circuit corresponding to the system reset circuit 65 (referred to as a reset circuit) is provided not on the main board 31 but on a board outside the main board 31 such as the power source board 910, and the system reset signal is sent from the reset circuit to the main board 31. In the configuration in which the signals are input to the substrates 31, there is a possibility that the illegal acts as described above are performed between the substrates. In other words, there is a possibility that an illegal circuit that causes a system reset signal to be illegally input to the main board 31 is connected to the cable between the boards and the illegal action is performed. When a system reset signal is illegally input to the CPU 56 of the main board 31, the control state returns to the initial state as in the case where power supply to the gaming machine is started. That is, the CPU 56 enters a state in which the main process shown in FIG. 9 is executed from the beginning. In this case, since the power supply stop process is not executed, the gaming state restoration process (step S10 in FIG. 19) is not executed, and the CPU 56 executes the initialization process.

初期化処理において、判定用乱数を生成するためのカウンタのカウント値を0に初期化すると、不正にシステムリセット信号を入力させた時点から、大当り判定用乱数(ランダム1)を生成するためのカウンタのカウント値が大当り判定値に一致するタイミングを予測することが容易になってしまう。そして、不正行為者は、そのタイミングで始動入賞が生じたような不正信号を主基板31に送り込むことによって、不正に大当りを生じさせてしまう。   In the initialization process, when the count value of the counter for generating the determination random number is initialized to 0, the counter for generating the big hit determination random number (random 1) from the time when the system reset signal is illegally input This makes it easy to predict the timing at which the count value matches the jackpot determination value. The fraudulent person illegally generates a big hit by sending an illegal signal that causes a start prize at that timing to the main board 31.

しかし、上述したように、初期化処理において、判定用乱数を生成するためのカウンタのカウント値を不定値に初期化しておくか、判定用乱数の更新が1周目である場合には大当り抽選を行わないようにしておけば、そのような不正行為を防止することができる。そして、電力供給停止時処理が実行された後、電力供給が復旧して遊技状態復旧処理が実行される場合には、遊技状態復旧処理において、CPU56は、バックアップRAMに保存されているカウント値からカウンタの歩進を再開する。   However, as described above, in the initialization process, the count value of the counter for generating the determination random number is initialized to an indefinite value, or when the determination random number is updated in the first round, the big hit lottery If it is not performed, such illegal acts can be prevented. Then, after the power supply stop process is executed, when the power supply is restored and the game state recovery process is executed, in the game state recovery process, the CPU 56 determines from the count value stored in the backup RAM. Resume counter stepping.

また、初期化処理において、大当り判定用乱数を生成するためのカウンタの更新が1周目である場合には大当り抽選を行わないようにしておけば、不正にシステムリセット信号が入力されたことによって制御状態が初期状態に戻っても、すぐに1周目の更新を終え、判定用乱数を生成するためのカウンタのカウント値は、初期値決定用乱数を生成するためのカウンタのカウント値によって更新されるようになるので、ランダム1を生成するためのカウンタのカウント値が大当り判定値に一致するタイミングを予測することが困難になる。そして、電力供給停止時処理が実行された後、電力供給が復旧して遊技状態復旧処理が実行される場合には、遊技状態復旧処理において、CPU56は、バックアップRAMに保存されているカウント値から、初期値決定用乱数を生成するためのカウンタの歩進を再開する。   Also, in the initialization process, if the counter update for generating the big hit determination random number is the first round, if the big hit lottery is not performed, the system reset signal is input incorrectly. Even if the control state returns to the initial state, the update of the first cycle is completed immediately, and the count value of the counter for generating the determination random number is updated by the counter value for generating the initial value determining random number. As a result, it becomes difficult to predict the timing when the count value of the counter for generating random 1 matches the jackpot determination value. Then, after the power supply stop process is executed, when the power supply is restored and the game state recovery process is executed, in the game state recovery process, the CPU 56 determines from the count value stored in the backup RAM. The stepping of the counter for generating the initial value determining random number is resumed.

また、判定用乱数を生成するためのカウンタおよび初期値決定用乱数を生成するためのカウンタとは別に、ソフトウェアによる無限カウンタ(例えば、タイマ割込処理で常に更新される)を設け、初期化処理において、無限カウンタのカウント値を、初期値としてランダム1を生成するためのカウンタに設定するようにしてもよい。そのようにしても、ランダム1生成用カウンタのカウント値が大当り判定値に一致するタイミングを予測することが困難になる。なお、無限カウンタは例えば2バイトで構成されるが、初期化処理において、例えば無限カウンタの下位8ビットの値が、ランダム1生成用カウンタに設定される。   In addition to a counter for generating a random number for determination and a counter for generating a random number for determining an initial value, an infinite counter by software (for example, constantly updated by timer interrupt processing) is provided to perform initialization processing. The count value of the infinite counter may be set to a counter for generating random 1 as an initial value. Even in such a case, it becomes difficult to predict the timing when the count value of the random 1 generation counter matches the jackpot determination value. The infinite counter is composed of, for example, 2 bytes. In the initialization process, for example, the lower 8 bits of the infinite counter are set in the random 1 generation counter.

上記のように、大当り判定用乱数の初期値を不定値にすることによってばらつきをもたせたり、大当り判定用乱数の更新が1周目であるときには大当り抽選を行わないようにした場合には、上述したスタックオーバーフローを発生させる不正行為や、リセット信号を強制的に入力させる不正行為の他、例えば遊技機に供給される制御電源(5V)やバックアップ電源を切ることによってRAMクリアする不正行為が行われた場合であっても、そのような不正行為によって大当りが発生してしまうことを防止することができる。   As described above, when the initial value of the big hit determination random number is set to an indefinite value, or when the big hit determination random number is updated in the first round, the big hit lottery is not performed. In addition to an illegal act that causes a stack overflow or an illegal act that forcibly inputs a reset signal, for example, an illegal act that clears the RAM by turning off the control power (5V) or backup power supplied to the gaming machine is performed. Even in such a case, it is possible to prevent a big hit from occurring due to such an illegal act.

実施の形態2.
実施の形態1では、カウンタ931等がバックアップ電源933によって電源バックアップされ、遊技機に対する電力供給が停止してもカウントを継続することによって、遊技機に対して電力供給が再開されたときに、カウンタ931のカウント値を不定にした。そして、遊技機に対して電力供給が再開されたときに、カウンタ931のカウント値をランダム1生成用カウンタに設定することによって、ランダム1生成用カウンタの初期値(初期化処理で設定される初期値)を不定にした。しかし、ハードウェア回路を用いてランダム1生成用カウンタの初期値をランダムにするのであれば、他の実施の形態を用いてもよい。
Embodiment 2. FIG.
In the first embodiment, the counter 931 and the like are backed up by the backup power source 933, and when the power supply to the gaming machine is resumed by continuing counting even if the power supply to the gaming machine is stopped, the counter The count value of 931 was undefined. Then, when power supply to the gaming machine is resumed, the count value of the counter 931 is set in the random 1 generation counter, thereby setting the initial value of the random 1 generation counter (the initial value set in the initialization process). Value) was undefined. However, other embodiments may be used as long as the initial value of the random 1 generation counter is randomized using a hardware circuit.

図58は、本発明の他の実施の形態におけるランダム1生成用カウンタの初期値をランダムにするための構成例を示すブロック図である。この実施の形態では、主基板31において、CPU56の外部に、主基板31への電力供給が停止しても所定期間は記憶内容を保持可能な第2変動データ記憶手段としてのRAM934が搭載され、RAM934は、バックアップ電源933で電源バックアップされている。従って、遊技機に対する電力供給停止時でも、RAM934の内容は保存されている。なお、CPU56に内蔵され、電源基板910に搭載されているバックアップ電源(この例ではコンデンサ923)で電源バックアップされるRAMが、遊技機への電力供給が停止しても記憶内容を保持可能な第1変動データ記憶手段に相当する。   FIG. 58 is a block diagram showing a configuration example for randomizing the initial value of the random 1 generation counter according to another embodiment of the present invention. In this embodiment, on the main board 31, a RAM 934 is mounted outside the CPU 56 as second variation data storage means that can hold the stored contents for a predetermined period even when power supply to the main board 31 is stopped. The RAM 934 is backed up by a backup power source 933. Therefore, the contents of the RAM 934 are saved even when the power supply to the gaming machine is stopped. Note that the RAM built in the CPU 56 and backed up by a backup power source (in this example, the capacitor 923) mounted on the power supply board 910 can retain the stored contents even if the power supply to the gaming machine is stopped. It corresponds to one variation data storage means.

図59は、この実施の形態において、CPU56が実行するメイン処理を示すフローチャートである。図59に示すように、初期化処理(ステップS181〜S193およびS190)では、CPU56は、RAMクリア処理を行う(ステップS181)。また、所定の作業領域に初期値を設定する作業領域設定処理を行う(ステップS182)。   FIG. 59 is a flowchart showing main processing executed by the CPU 56 in this embodiment. As shown in FIG. 59, in the initialization process (steps S181 to S193 and S190), the CPU 56 performs a RAM clear process (step S181). Also, a work area setting process for setting an initial value in a predetermined work area is performed (step S182).

次いで、CPU56は、例えば情報出力回路64を介して、ホールコンピュータなどの外部装置に向けて初期化信号を出力する(ステップS183)。また、球払出装置97からの払出が可能であることを指示する払出許可状態指定コマンドを払出制御基板37に対して送信する処理を行う(ステップS184)。   Next, the CPU 56 outputs an initialization signal to an external device such as a hall computer via the information output circuit 64, for example (step S183). Further, a process of transmitting a payout permission state designation command instructing that payout from the ball payout device 97 is possible to the payout control board 37 is performed (step S184).

また、各サブ基板を初期化するための初期化コマンドを各サブ基板に送信する処理を実行する(ステップS185)。初期化コマンドとして、可変表示装置9に表示される初期図柄を示すコマンド(図柄制御基板80に対して)や賞球ランプ51および球切れランプ52の消灯を指示するコマンド(ランプ制御基板35に対して)等がある。さらに、CPU56は、初期化処理の実行の報知を指定する初期化報知コマンドを図柄制御基板80に対して送信する処理を行う(ステップS186)。この実施の形態では、初期化報知コマンドとして、大当り開始時表示コマンド(図39参照)が用いられる。初期化処理の実行の報知制御がランプ制御手段や音制御手段において実行される場合には、ステップS186で、ランプ制御基板35や音制御基板70に対して初期化報知コマンドを送信する。この場合、ランプ制御基板35に送信する初期化報知コマンドとして、例えば大当り開始時ランプ指定コマンド(図40参照)が用いられる。また、音制御基板70に送信する初期化報知コマンドとして、例えば大当り開始時音指定コマンド(図41参照)が用いられる。   Further, a process of transmitting an initialization command for initializing each sub board to each sub board is executed (step S185). As an initialization command, a command indicating the initial symbol displayed on the variable display device 9 (for the symbol control board 80) and a command for instructing the extinction of the prize ball lamp 51 and the ball-out lamp 52 (to the lamp control board 35) Etc). Further, the CPU 56 performs a process of transmitting an initialization notification command designating notification of execution of the initialization process to the symbol control board 80 (step S186). In this embodiment, a big hit start display command (see FIG. 39) is used as the initialization notification command. When the notification control for executing the initialization process is executed by the lamp control unit or the sound control unit, an initialization notification command is transmitted to the lamp control board 35 and the sound control board 70 in step S186. In this case, for example, a big hit start lamp designation command (see FIG. 40) is used as the initialization notification command transmitted to the lamp control board 35. As the initialization notification command to be transmitted to the sound control board 70, for example, a big hit start sound designation command (see FIG. 41) is used.

さらに、CPU56は、判定用乱数初期値とおよび初期値用乱数初期値をRAM934から入力する(ステップS191,S192)。そして、入力した判定用乱数初期値を、大当り判定用乱数を生成するためのランダム1生成用カウンタにセットするとともに、入力した初期値用乱数初期値をランダム1用初期値バッファ(図27に示されたステップS104でランダム1生成用カウンタのカウント値と比較される値)にセットする(ステップS193)。   Further, the CPU 56 inputs the determination random number initial value and the initial random number initial value from the RAM 934 (steps S191 and S192). Then, the input initial random number for determination is set in a random 1 generation counter for generating a big hit determination random number, and the input initial random number initial value is stored in a random 1 initial value buffer (shown in FIG. 27). In step S104, the value is compared with the count value of the random 1 generation counter) (step S193).

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

なお、図58に示された構成および図59に示されたメイン処理における初期化処理以外の構成および処理は、実施の形態1の場合と同様である。   The configuration and processing other than the configuration shown in FIG. 58 and the initialization processing in the main processing shown in FIG. 59 are the same as those in the first embodiment.

CPU56は、RAM934に、例えば定期的(1秒毎等)に、そのときのランダム1生成用カウンタのカウント値を判定用乱数初期値として書き込み、ランダム6生成用カウンタのカウント値を初期値用乱数初期値として書き込む。定期的でなくても、何かの事象の発生を契機としてRAM934に書き込んでもよい。例えば、可変表示装置9において可変表示が開始されたときや、可変表示装置における可変表示が終了したときや、特定の入賞口に遊技球の入賞があったときなどを契機として、判定用乱数初期値および初期値用乱数初期値を書き込む。なお、ここで例示した契機は単なる例であって、遊技進行中に生じうる他の事象の発生を契機としてもよい。   The CPU 56 writes the count value of the random 1 generation counter at that time as a determination random number initial value into the RAM 934, for example periodically (every second), and the random 6 generation counter count value is the initial value random number. Write as initial value. Even if it is not periodic, it may be written in the RAM 934 when an event occurs. For example, when the variable display on the variable display device 9 is started, when the variable display on the variable display device is finished, or when a game ball is won at a specific winning opening, etc. Write initial value and random number for initial value. In addition, the opportunity illustrated here is only an example, Comprising: It is good also considering generation | occurrence | production of the other event which may arise during game progress as an opportunity.

また、この実施の形態では、何かの事象の発生を契機としてRAM934に判定用乱数初期値および初期値用乱数初期値を書き込み、初期化処理において、RAM934に保存されている判定用乱数初期値および初期値用乱数初期値をランダム1生成用カウンタおよびランダム6生成用カウンタにセットするようにしたが、何かの事象の発生を契機としてRAM934に判定用乱数初期値のみを書き込んでRAM934に判定用乱数初期値のみが保存されるようにして、初期化処理において、RAM934に保存されている判定用乱数初期値をランダム1生成用カウンタにセットするようにしてもよい。   Further, in this embodiment, when a certain event occurs, the determination random number initial value and the initial random number initial value are written in the RAM 934, and the initial determination random number stored in the RAM 934 in the initialization process. The initial random number for initial value is set in the random 1 generation counter and the random 6 generation counter. However, when an event occurs, only the initial random number for determination is written in the RAM 934 and the determination is made in the RAM 934. Only the random number initial value for use may be stored, and in the initialization process, the determination random number initial value stored in the RAM 934 may be set in the random 1 generation counter.

さらに、この実施の形態では、遊技機への電力供給が停止しても記憶内容を保持可能な第2変動データ記憶手段としてバックアップ電源933で電源バックアップされるRAM934を例示したが、第2変動データ記憶手段として、EEPROMやフラッシュROM等の、他のランダムアクセス可能な不揮発性メモリを使用してもよい。バックアップ電源933で電源バックアップされるRAM934を用いる場合には、バックアップ電源933は、この実施の形態のように、主基板31に搭載されていることが好ましい。遊技制御手段が搭載されている主基板31は、遊技機裏面において容易に取り外すことができず、また、取り外し履歴がわかるようなカバーで覆われているので、不正行為を受けにくいからである。   Furthermore, in this embodiment, the RAM 934 that is backed up by the backup power source 933 is exemplified as the second variable data storage means that can retain the stored contents even if the power supply to the gaming machine is stopped. Other random accessible non-volatile memories such as EEPROM and flash ROM may be used as the storage means. When the RAM 934 that is backed up by the backup power source 933 is used, the backup power source 933 is preferably mounted on the main board 31 as in this embodiment. This is because the main board 31 on which the game control means is mounted cannot be easily removed on the back side of the gaming machine and is covered with a cover that can show the removal history, so that it is difficult to receive fraud.

図60は、図27および図28に示された判定用乱数更新処理によって変化するランダム1(大当り判定用乱数)を生成するためのカウンタ(ランダム1生成用カウンタ)の値の一例を示す説明図である。遊技機への電力供給が開始され初期化処理が実行されたときには、ランダム1生成用カウンタの最初の値はRAM934から読み出された値(不定な値)になっている。また、ランダム1生成用カウンタのカウント値がランダム1用初期値バッファの保存値と一致したことが、ステップS104の処理で検出されると、ステップS105の処理でランダム6(ランダム1初期値決定用乱数)が抽出されるとともに、ランダム1生成用カウンタのカウント値が更新される。なお、この時点は、図60においてAで示されている。以降の動作は、実施の形態1の場合(図31参照)と同様である。   FIG. 60 is an explanatory diagram showing an example of the value of a counter (random 1 generation counter) for generating random 1 (big hit determination random number) that changes by the determination random number update processing shown in FIGS. 27 and 28. It is. When power supply to the gaming machine is started and initialization processing is executed, the initial value of the random 1 generation counter is a value read from the RAM 934 (an indefinite value). Further, when it is detected in the process of step S104 that the count value of the random 1 generation counter matches the stored value of the random 1 initial value buffer, the process of step S105 performs random 6 (for determining the random 1 initial value). Random number) is extracted, and the count value of the random 1 generation counter is updated. This time point is indicated by A in FIG. Subsequent operations are the same as those in the first embodiment (see FIG. 31).

以上に説明したように、この実施の形態では、遊技機は、遊技に関わる制御を行う遊技制御手段と、遊技の進行に応じて変動するデータを記憶するための変動データ記憶手段とが搭載された主基板31と、所定電位の電源の出力電圧を監視し検出条件が成立した場合に検出信号を出力する電源監視手段(この実施の形態では電源監視用IC902)と、遊技者に所定の遊技価値を付与するか否かの判定に用いられる判定用の数値を所定の数値範囲内で更新する判定用数値更新手段(この実施の形態ではランダム1生成用カウンタ)とを備え、変動データ記憶手段は、遊技機への電力供給が停止しても所定期間は記憶内容を保持することが可能なバックアップRAM(CPU56に内蔵されたRAM)と、そのバックアップRAMと別個に設けられ遊技機への電力供給が停止しても所定期間は記憶内容を保持することが可能なRAM934とを含み、遊技制御手段は、電源監視手段からの検出信号の出力に関連して、制御状態の復旧に必要なデータをバックアップRAMに退避させる処理を含む電力供給停止時処理を実行可能であり、遊技機への電力供給が開始された場合に、所定の条件に応じて、バックアップRAMの内容を初期化する初期化処理またはバックアップRAMの記憶内容にもとづいて制御状態を復旧する復旧処理のいずれか一方を実行可能であって、初期化処理を実行する場合には、RAM934の記憶内容にもとづいて判定用数値更新手段の更新を開始する。   As described above, in this embodiment, the gaming machine is equipped with a game control means for performing control related to the game and a fluctuation data storage means for storing data that fluctuates according to the progress of the game. Main board 31, power supply monitoring means (power supply monitoring IC 902 in this embodiment) for monitoring the output voltage of the power supply of a predetermined potential and outputting a detection signal when a detection condition is satisfied, and a predetermined game for the player Fluctuation data storage means, comprising: a determination numerical value update means (in this embodiment, a random 1 generation counter) that updates a determination numerical value used for determining whether or not to add value within a predetermined numerical value range Is provided separately from a backup RAM (RAM built in the CPU 56) that can retain the stored contents for a predetermined period even when power supply to the gaming machine is stopped, and the backup RAM. A RAM 934 capable of retaining the stored contents for a predetermined period even when the power supply to the gaming machine is stopped, and the game control means controls the control state in relation to the output of the detection signal from the power supply monitoring means. When the supply of power to the gaming machine is started, the contents of the backup RAM can be executed when the power supply to the gaming machine is started. Can be executed based on the stored contents of the RAM 934 when the initialization process is executed. The update of the judgment numerical value updating means is started.

また、遊技制御手段は、定期的に、または所定の事象の発生を契機として、遊技機への電力供給が停止しても記憶内容を保持可能なRAM934に判定用乱数初期値を書き込む。すると、遊技機への電力供給が停止するときのRAM934に記憶されている判定用乱数初期値は不定な値である。その結果、遊技機への電力供給が再開されたときに初期化処理が実行される場合には、不定値である判定用乱数初期値が判定用数値更新手段に初期値として設定されるので、判定用数値更新手段の更新値(この実施の形態ではランダム生成用カウンタのカウント値)が遊技者に所定の遊技価値を付与することにする所定値(この実施の形態では大当り判定値)と一致するタイミングは不定になり、そのようなタイミングを狙った不正行為を防止することができる。   In addition, the game control means writes the random number initial value for determination to the RAM 934 that can retain the stored contents even when power supply to the game machine is stopped periodically or triggered by the occurrence of a predetermined event. Then, the determination random number initial value stored in the RAM 934 when the power supply to the gaming machine is stopped is an indefinite value. As a result, when the initialization process is executed when the power supply to the gaming machine is resumed, the determination random number initial value that is an indefinite value is set as the initial value in the determination numerical value updating means. The update value of the determination numerical value updating means (in this embodiment, the count value of the random generation counter) matches the predetermined value (in this embodiment, the jackpot determination value) that gives the player a predetermined game value. The timing to do so is indefinite, and fraudulent acts aimed at such timing can be prevented.

なお、上記の各実施の形態では、大当りとするか否かを決定する乱数を生成するためのランダム1生成用カウンタはRAMに形成されたが、CPU56のレジスタを用いてランダム1生成用カウンタを形成してもよい。例えば、IXレジスタをランダム1生成用カウンタとして使用してもよい。その場合、ランダム1生成用カウンタとして使用されるレジスタは、他の用途には使用されない。   In each of the above embodiments, the random 1 generation counter for generating a random number for determining whether or not to win is formed in the RAM. However, the random 1 generation counter is set using a register of the CPU 56. It may be formed. For example, the IX register may be used as a random 1 generation counter. In this case, the register used as the random 1 generation counter is not used for other purposes.

また、上記の各実施の形態では、遊技機に供給される制御電源(5V)やバックアップ電源を切ることによってRAMクリアする不正行為が行われた場合であっても、初期化報知が行われるので、そのような不正行為を容易に発見することができる。   Further, in each of the above embodiments, even if an illegal act of clearing the RAM is performed by turning off the control power (5V) or backup power supplied to the gaming machine, the initialization notification is performed. , Such fraud can be easily detected.

また、上記の各実施の形態では、表示制御用CPU101、ランプ制御用CPU351、あるいは音制御用CPU701の制御によって初期化報知を行う構成としていたが、CPU56が表示器などを制御して初期化報知を行う構成としてもよい。   In each of the above-described embodiments, the initialization notification is performed under the control of the display control CPU 101, the lamp control CPU 351, or the sound control CPU 701. However, the CPU 56 controls the display and the like to perform the initialization notification. It is good also as composition which performs.

なお、上記の各実施の形態において、スタックされるデータがRAM55に設けられたスタック領域の記憶容量を越えてしまった場合には、作業領域(スタック領域以外のRAM領域)のデータ領域にまでスタックされるデータがスタック領域から溢れて(オーバーフローして)、プログラムが暴走することが考えられる。例えば、プログラム上のある命令(オペコード)により指定されたデータの格納先のアドレスが、スタック領域から溢れたデータにより書き換えられた結果、誤ったアドレスにジャンプし、その後暴走してしまう。そのような場合には、ウォッチドッグタイマのタイムアウト等に起因して、電力供給の停止や再開がされない場合であっても、プログラムが先頭アドレスから開始される。この場合には、NMI処理(電力供給停止時処理)で実行されるはずのバックアップフラグのセットやチェックサムデータのセットがなされていないので、ステップS8,S9の処理によって初期化処理が実行される。   In each of the above embodiments, when the data to be stacked exceeds the storage capacity of the stack area provided in the RAM 55, the data is stacked up to the data area of the work area (RAM area other than the stack area). It is conceivable that the program overflows from the stack area (overflows) and the program runs out of control. For example, as a result of rewriting the data storage destination address specified by a certain instruction (opcode) on the program with data overflowing from the stack area, the program jumps to an incorrect address and then runs away. In such a case, the program is started from the top address even if the power supply is not stopped or restarted due to a timeout of the watchdog timer or the like. In this case, since the backup flag and checksum data that should be executed in the NMI processing (power supply stop processing) are not set, the initialization processing is executed by the processing in steps S8 and S9. .

遊技制御手段の動作状態が所定期間停止状態となった場合に遊技制御手段の動作状態を初期化する初期化手段としてのウォッチドッグタイマによる監視は、CPU56に内蔵されているウォッチドッグ機能を用いてもよいが、システムリセット回路65を利用してもよい。図61は、システムリセット回路65を利用してウォッチドッグタイマによる監視を行う場合の主基板31に搭載されているCPU56およびそれに接続される主要な構成要素を示すブロック図である。リセットIC652を有するシステムリセット回路65からのリセット信号は、CPU56のリセット端子に入力されている。リセットIC652は、電力供給が開始されると、所定の期間(外付けされているコンデンサと内蔵抵抗とによって決まる時間)だけリセット信号のレベルをローレベル(リセットレベル)とし、その期間が経過するとリセット信号のレベルをハイレベルにする。CPU56はリセット信号がハイレベルになると動作可能状態になる。また、図61に示す例では、リセットIC652のCK端子にはCPU56の出力ポートから、ある時間間隔で信号が供給される。その信号が途絶えて所定期間(ウォッチドッグタイマのタイムアウト時間)以上信号の入力がない状態になると、リセットIC652は、リセット信号のレベルを一旦リセットレベル(ローレベル)にした後、非リセットレベル(ハイレベル)に戻す。よって、CPU56は、そのようなリセット信号にもとづいて初期化処理を実行する状態になる。なお、ウォッチドッグタイマ回路はシステムリセット回路65を利用したものではなく独立して設けられていてもよいし、基板外に設けられていてもよい。   Monitoring by a watchdog timer as an initialization means for initializing the operation state of the game control means when the operation state of the game control means has been stopped for a predetermined period of time uses a watchdog function built in the CPU 56. Alternatively, the system reset circuit 65 may be used. FIG. 61 is a block diagram showing the CPU 56 mounted on the main board 31 and the main components connected to it when monitoring by the watchdog timer using the system reset circuit 65. A reset signal from the system reset circuit 65 having the reset IC 652 is input to the reset terminal of the CPU 56. When the power supply is started, the reset IC 652 sets the level of the reset signal to a low level (reset level) for a predetermined period (a time determined by an external capacitor and a built-in resistor), and resets when the period elapses. Set the signal level to high. The CPU 56 becomes operable when the reset signal becomes high level. In the example shown in FIG. 61, a signal is supplied to the CK terminal of the reset IC 652 from the output port of the CPU 56 at a certain time interval. When the signal is interrupted and no signal is input for a predetermined period (watchdog timer time-out period), the reset IC 652 once sets the reset signal level to the reset level (low level) and then the non-reset level (high level). Level). Therefore, the CPU 56 enters a state for executing the initialization process based on such a reset signal. Note that the watchdog timer circuit does not use the system reset circuit 65 but may be provided independently or may be provided outside the substrate.

図61に示す例では、遊技制御手段から出力される信号が所定期間入力されなかった場合に遊技制御手段に信号(一旦リセットレベルになった後、非リセットレベルなる信号)を出力する監視回路は、システムリセット回路65で実現されている。   In the example shown in FIG. 61, when the signal output from the game control means is not input for a predetermined period, the monitoring circuit that outputs a signal (a signal that once becomes a reset level and then becomes a non-reset level) to the game control means This is realized by a system reset circuit 65.

また、上記の各実施の形態では、遊技制御手段(CPU56)が、電力供給停止時処理中であることを示すコマンドを出力し、表示制御手段(表示制御用CPU101)が電力供給停止時処理の実行を示す報知制御を行う構成であったが、他のサブ基板35,70において電力供給停止時処理の実行を示す報知制御が行われる構成にしてもよい。なお、電力供給停止時処理の実行を示す報知を行う場合には、遊技機への電力供給が停止されるまで報知を継続して行うことが望ましい。スタックオーバーフローを発生させたり、リセット信号をCPU56に不正に入力させたりする不正行為が行われた場合には、主基板31が初期化された場合であっても電力が継続して供給されるので、サブ基板35,70,80では電力供給停止時処理の実行を示す報知を継続して行うことができる。従って、不正行為を容易に発見することができるようになる。   In each of the above embodiments, the game control means (CPU 56) outputs a command indicating that the power supply stop process is in progress, and the display control means (display control CPU 101) performs the power supply stop process. The notification control indicating the execution is performed, but the notification control indicating the execution of the power supply stop process may be performed in the other sub-boards 35 and 70. Note that in the case where notification indicating the execution of the power supply stop process is performed, it is desirable to continue the notification until the power supply to the gaming machine is stopped. If an illegal act of causing a stack overflow or illegally inputting a reset signal to the CPU 56 is performed, power is continuously supplied even when the main board 31 is initialized. In the sub-boards 35, 70, and 80, notification indicating the execution of the power supply stop process can be continuously performed. Therefore, it becomes possible to easily find fraud.

また、上記の実施の形態では、電源断信号(NMI信号)がマスク不能割込端子に入力されたが、マスク可能割込端子に入力するようにしてもよく、入力ポートに入力するようにしてもよい。入力ポートに入力される場合には、遊技制御手段は、ポートチェックの結果電源断信号がオン状態であれば、上述したマスク不能割込処理に相当する処理を実行する。   In the above embodiment, the power-off signal (NMI signal) is input to the non-maskable interrupt terminal, but may be input to the maskable interrupt terminal or input to the input port. Also good. When input to the input port, the game control means executes processing corresponding to the non-maskable interrupt processing described above if the power-off signal is on as a result of the port check.

なお、上記の実施の形態では、電源監視手段は電源基板910に搭載されていたが、主基板31以外の他の基板や、遊技機における他の箇所に設定されていてもよい。また、システムリセット手段は主基板31に搭載されていたが、電源基板910等の他の基板に搭載されていてもよい。   In the above-described embodiment, the power supply monitoring unit is mounted on the power supply board 910. However, the power supply monitoring means may be set on a board other than the main board 31 or in another place in the gaming machine. In addition, the system reset unit is mounted on the main board 31, but may be mounted on another board such as the power board 910.

また、上記の実施の形態では、表示制御用CPU101、ランプ制御用CPU351、あるいは音制御用CPU701が、初期化報知の実行期間中は受信コマンドを廃棄して、そのコマンドにもとづく制御を実行しない構成にしていたが、初期化報知の実行期間中に受信したコマンドを記憶保持しておき、初期化報知の終了後に記憶保持しているコマンドにもとづく制御を実行する構成にしてもよい。   In the above embodiment, the display control CPU 101, the lamp control CPU 351, or the sound control CPU 701 discards the received command during the initialization notification execution period, and does not execute the control based on the command. However, the command received during the initialization notification execution period may be stored and held, and control based on the command stored and held after the completion of the initialization notification may be executed.

なお、上記の実施の形態では、バックアップRAMに電力を供給するバックアップ電源が電源基板910において作成される構成であったが、バックアップ電源は、主基板31において作成されるようにしてもよい。さらに、遊技機に設けられている他の基板にバックアップ電源が設けられていてもよい。例えば、他の電気部品制御基板35,70,80が電源バックアップ可能な構成とされている場合に、その電気部品制御基板35,70,80においてバックアップ電源を作成するように構成してもよい。また、いずれかの基板上ではなく基板外に設けられていてもよい。   In the above-described embodiment, the backup power supply for supplying power to the backup RAM is created on the power supply board 910. However, the backup power supply may be created on the main board 31. Further, a backup power source may be provided on another board provided in the gaming machine. For example, when another electrical component control board 35, 70, 80 is configured to be able to back up power, the electrical power supply control board 35, 70, 80 may be configured to create a backup power source. Further, it may be provided outside the substrate instead of on any substrate.

なお、上記の各実施の形態において、「特定遊技状態」とは、所定の遊技価値が付与された遊技者にとって有利な状態を意味する。具体的には、「特定遊技状態」は、例えば、例えば可変入賞球装置の状態が打球が入賞しやすい遊技者にとって有利な状態(大当り遊技状態)、遊技者にとって有利な状態となるための権利が発生した状態、景品遊技媒体払出の条件が成立しやすくなる状態、遊技者に対して得点を付与するための条件が成立しやすくなる状態などの、所定の遊技価値が付与された状態である。   In each of the above embodiments, the “specific game state” means a state that is advantageous for a player who is given a predetermined game value. Specifically, the “specific game state” is, for example, a right for a variable winning ball apparatus to be in a state advantageous to a player who easily hits a ball (a big hit gaming state) or a state advantageous to a player. A state in which a predetermined game value has been given, such as a state in which a condition has occurred, a condition in which a prize game medium payout condition is easily established, or a condition in which a score is awarded to a player is easily established. .

また、上記の各実施の形態では、所定条件の成立に応じて遊技者に所定の遊技価値を付与可能であり、具体的には、特定の条件が成立した場合に遊技者にとって有利な特定遊技状態に制御可能であり、遊技制御手段が、報知処理で、特定遊技状態の発生に関連して送出されるコマンド(例えば大当り開始時表示コマンド)を、報知を行うことを示すコマンドとして電気部品制御手段に送出するように構成された遊技機が構成されているが、所定条件としての「特定の条件」とは、遊技機の制御状態を特定遊技状態とするための条件を意味する。従って、特定の条件が成立すると、遊技機の制御状態が特定遊技状態となる。具体的には、「特定の条件」とは、例えば、「複数種類の識別情報(例えば、図柄、絵柄、数値など)を可変表示(例えば、スクロール表示、コマ送り表示、切替え表示など)可能な可変表示装置(例えば、液晶表示装置、ドットマトリクス表示器、セグメント表示器、ドラム式の表示器など)を備える構成とされ、可変表示装置における識別情報の表示結果が特定の表示結果(例えば、全てが同一の識別情報となる表示結果。具体的には、例えば左中右の識別情報が全て「1」となる表示結果。)となった場合に成立する条件とされる。また、例えば、「特定の条件」とは、遊技領域における特定の領域に設けられた球検出手段(例えば、フォトセンサ、近接スイッチなど)により遊技球が検出された場合に成立する条件としてもよい。例えば、特定入賞口等の特定入賞領域への遊技球の入賞(通過や検出)に応じて遊技者に所定の遊技価値を付与するように構成してもよい。そして、特定の条件の成立に応じて遊技者に付与される遊技価値は、遊技機に設けられている始動口に遊技球が入賞したことにもとづいて遊技者にとってさらに有利な状態を生起させる権利発生状態のようなものであってもよい。   In each of the above embodiments, a predetermined game value can be given to a player according to the establishment of a predetermined condition. Specifically, a specific game advantageous to the player when a specific condition is satisfied. Electric parts control that is controllable to a state and in which the game control means sends a command (for example, a big hit start display command) sent in association with the occurrence of a specific gaming state in the notification process as a command indicating notification Although the gaming machine is configured to be sent to the means, the “specific condition” as the predetermined condition means a condition for setting the control state of the gaming machine to the specific gaming state. Therefore, when a specific condition is satisfied, the control state of the gaming machine becomes the specific game state. Specifically, the “specific condition” is, for example, “variable display (for example, scroll display, frame advance display, switching display, etc.) of multiple types of identification information (for example, symbols, pictures, numerical values, etc.) is possible. The display device includes a variable display device (for example, a liquid crystal display device, a dot matrix display device, a segment display device, a drum display device, etc.), and the display result of identification information in the variable display device is a specific display result (for example, all Is a display result in which the identification information is the same. Specifically, for example, a display result in which the identification information on the left middle right is all “1”.) Further, for example, the “specific condition” may be a condition that is satisfied when a game ball is detected by a ball detection means (for example, a photo sensor, a proximity switch, etc.) provided in a specific area in the game area. . For example, a predetermined game value may be given to a player in accordance with the winning (passing or detection) of a game ball in a specific winning area such as a specific winning opening. The game value given to the player in response to the establishment of a specific condition is the right to cause a more advantageous state for the player based on the winning of the game ball at the start opening provided in the gaming machine. It may be a state of occurrence.

また、遊技者に所定の遊技価値を付与する条件となる特定の条件を、所定の乱数(例えば大当り決定用乱数)の値として特定の値(例えば大当り判定値)が抽出されたこととしてもよい。   In addition, a specific condition (for example, a big hit determination value) may be extracted as a specific random number (for example, a big hit determination random number) as a specific condition that is a condition for giving a predetermined game value to a player. .

なお、上記の各実施の形態のパチンコ遊技機1は、主として、始動入賞にもとづいて可変表示装置9に可変表示される特別図柄の停止図柄が所定の図柄の組み合わせになると所定の遊技価値が遊技者に付与可能になる第1種パチンコ遊技機であったが、始動入賞にもとづいて開放する電動役物の所定領域への入賞があると所定の遊技価値が遊技者に付与可能になる第2種パチンコ遊技機や、始動入賞にもとづいて可変表示される図柄の停止図柄が所定の図柄の組み合わせになると開放する所定の電動役物への入賞があると所定の権利が発生または継続する第3種パチンコ遊技機であっても、本発明を適用できる。また、パチンコ遊技機に限られず、乱数にもとづいて遊技者に有利な状態になるスロットマシン等にも本発明を適用することができる。   Note that the pachinko gaming machine 1 of each of the above embodiments mainly has a predetermined game value when the stop symbol of the special symbol variably displayed on the variable display device 9 based on the start winning is a combination of the predetermined symbols. The first type pachinko gaming machine that can be given to a player, but if there is a winning in a predetermined area of an electric accessory that is released based on a start winning, a second gaming value can be given to the player When a winning is given to a predetermined electric game that is released when a stop symbol of a symbol variably displayed based on a seed pachinko gaming machine or a start winning combination becomes a predetermined symbol combination, a predetermined right is generated or continued. The present invention can be applied even to a seed pachinko gaming machine. Further, the present invention can be applied not only to a pachinko gaming machine but also to a slot machine or the like that is advantageous to the player based on random numbers.

なお、上記の実施の形態では、以下のような遊技機も開示されている。   In the above embodiment, the following gaming machines are also disclosed.

(1)制御手段が、復旧処理を実行する場合には、変動データ記憶手段に記憶されている第1数値更新手段の更新値(例えば電源バックアップされたRAM55に保存されているランダム1生成用カウンタのカウント値)から更新を開始するように構成されている遊技機。
そのような構成によれば、変動データ記憶手段に記憶されている第1数値更新手段の更新値から数値の更新が開始され、不正に大当りを生じさせることを困難にすることができる。
(1) When the control means executes the recovery process, the update value of the first numerical value update means stored in the fluctuation data storage means (for example, a random 1 generation counter stored in the power-backed RAM 55) Game machines that are configured to start updating from the count value.
According to such a configuration, updating of the numerical value is started from the update value of the first numerical value updating means stored in the fluctuation data storage means, and it is possible to make it difficult to illegally generate a big hit.

(2)第2数値更新手段の数値を遊技機への電力供給が停止しても保持するための数値保持手段(例えばバックアップ電源933による)が設けられた遊技機。
そのような構成によれば、遊技機への電力供給開始時の数値は一定にならず、初期化処理の実行によって第1数値更新手段の初期値をランダムにすることができる。
(2) A gaming machine provided with numerical value holding means (for example, by a backup power source 933) for holding the numerical value of the second numerical value updating means even when power supply to the gaming machine is stopped.
According to such a configuration, the numerical value at the start of power supply to the gaming machine is not constant, and the initial value of the first numerical value updating means can be made random by executing the initialization process.

(3)制御手段からの要求信号(例えば出力ポート576から出力されるラッチ信号)に応じて第2数値更新手段の数値を制御手段に出力する数値出力手段(例えばラッチ回路932)が設けられた遊技機。
そのような構成によれば、制御手段が第2数値更新手段の数値を必要とするときに確実に数値を入力することができる。
(3) A numerical value output means (for example, a latch circuit 932) is provided for outputting the numerical value of the second numerical value updating means to the control means in response to a request signal from the control means (for example, a latch signal output from the output port 576). Gaming machine.
According to such a configuration, a numerical value can be reliably input when the control means needs the numerical value of the second numerical value updating means.

(4)制御手段の動作を初期化するための信号(例えばシステムリセット信号)を発生させるシステムリセット手段(例えばシステムリセット回路65)が制御基板に搭載されている遊技機。
そのような構成によれば、制御手段の動作を初期化するための信号に対する不正行為を防止することができる。
(4) A gaming machine in which system reset means (eg, system reset circuit 65) for generating a signal (eg, system reset signal) for initializing the operation of the control means is mounted on the control board.
According to such a configuration, it is possible to prevent an illegal act on the signal for initializing the operation of the control means.

(5)第1発振手段の発振周波数と第2発振手段の発振周波数とは異なっている遊技機。
そのような構成によれば、初期化処理で設定される第1数値更新手段の更新開始値をよりランダムにすることができる。
(5) A gaming machine in which the oscillation frequency of the first oscillation means and the oscillation frequency of the second oscillation means are different.
According to such a configuration, the update start value of the first numerical value update means set in the initialization process can be made more random.

(6)第1数値更新手段の更新上限値(例えばランダム1生成用カウンタのカウント値の最大値)と第2数値更新手段の更新上限値(例えばカウンタ931のカウント値の最大値)とは同じである遊技機。
そのような構成によれば、第2数値更新手段の数値をそのまま第1数値更新手段の更新開始値に設定することができる。
(6) The update upper limit value of the first numerical value updating means (for example, the maximum value of the count value of the random 1 generation counter) and the update upper limit value of the second numerical value update means (for example, the maximum value of the count value of the counter 931) are the same. Is a gaming machine.
According to such a configuration, the numerical value of the second numerical value updating means can be set as the update start value of the first numerical value updating means as it is.

(7)制御手段が実行する処理(例えば遊技制御処理:ステップS21〜S33)において第1数値更新手段の初期値を決定するための数値を所定の数値範囲内で更新する初期値用数値更新手段(例えばランダム6生成用カウンタ)を備え、制御手段が、初期化処理(例えばS181〜S190)を実行し第2数値更新手段の数値にもとづいて第1数値更新手段の更新を開始する数値を決定し第1数値更新手段の数値の更新を開始した後では、初期値用数値更新手段の数値を用いて初期値を更新する(例えばステップS107)ように構成されている遊技機。
そのような構成によれば、初期化処理実行後の第1数値更新手段の初期値をランダムにするための処理の負担を軽くすることができる。
(7) Initial value numerical value updating means for updating a numerical value for determining an initial value of the first numerical value updating means within a predetermined numerical value range in processing executed by the control means (for example, game control processing: steps S21 to S33). (For example, a random 6 generation counter), and the control means executes initialization processing (for example, S181 to S190), and determines a numerical value for starting the update of the first numerical value updating means based on the numerical value of the second numerical value updating means. Then, after starting the updating of the numerical value of the first numerical value updating means, the gaming machine is configured to update the initial value using the numerical value of the initial value numerical value updating means (for example, step S107).
According to such a configuration, it is possible to reduce the burden of processing for making the initial value of the first numerical value updating means after execution of initialization processing random.

(8)遊技者が所定の遊技を行い、特定の条件の成立に応じて遊技者に所定の遊技価値を付与可能な遊技機であって、遊技に関わる制御を行う制御手段(例えばCPU56を含む遊技制御手段)と遊技の進行に応じて変動するデータを記憶するための変動データ記憶手段とが搭載された制御基板(例えば主基板31)と、所定電位の電源の出力電圧を監視し検出条件が成立した場合に検出信号(例えば電源断信号)を出力する電源監視手段(例えば電源監視用IC902)と、制御手段が実行する処理(例えば遊技制御処理:ステップS21〜S33)において遊技者に所定の遊技価値を付与するか否かの判定に用いられる判定用の数値を所定の数値範囲内で更新する判定用数値更新手段(例えばランダム1生成用カウンタ)とを備え、変動データ記憶手段が、遊技機への電力供給が停止しても所定期間は記憶内容を保持することが可能な第1変動データ記憶手段(例えば電源バックアップされたRAM55)と、第1変動データ記憶手段と別個に設けられ制御基板への電力供給が停止しても所定期間は記憶内容を保持することが可能な第2変動データ記憶手段(例えば電源バックアップされたRAM934やEEPROM等)とを含み、制御手段が、電源監視手段からの検出信号の出力に関連して、制御状態の復旧に必要なデータを第1変動データ記憶手段に退避させる電力供給停止時処理(例えばステップS451〜S499およびステップS171,S172)を実行可能であり、遊技機への電力供給が開始された場合に、所定の条件(例えばステップS7〜S9で判定される条件)の成立にもとづいて、第1変動データ記憶手段の内容を初期化する初期化処理(例えばステップS183〜S193)と第1変動データ記憶手段の記憶内容にもとづいて制御状態を復旧する復旧処理(例えばステップS80〜S95)とのうちいずれか一方を実行可能であって、初期化処理を実行する場合には、第2変動データ記憶手段の記憶内容にもとづいて判定用数値更新手段の更新を開始する(例えばステップS193)ことを特徴とする遊技機。
そのような構成によれば、初期化処理実行後の判定用数値更新手段の更新開始値がランダムになって、第1変動データ記憶手段の記憶内容を初期化させることによって不正に大当りを生じさせることを困難にすることができる。
(8) A gaming machine in which a player plays a predetermined game and can give a predetermined game value to the player in accordance with the establishment of a specific condition, and includes control means (for example, including a CPU 56) that controls the game. A control board (for example, main board 31) on which a game control means) and a fluctuation data storage means for storing data that fluctuates according to the progress of the game, and an output voltage of a power source of a predetermined potential are monitored and detected conditions When the above is established, the power supply monitoring means (for example, the power supply monitoring IC 902) that outputs a detection signal (for example, power-off signal) and the process executed by the control means (for example, game control processing: steps S21 to S33) And a determination numerical value updating means (for example, a random 1 generation counter) that updates a determination numerical value used for determining whether or not to give the game value within a predetermined numerical range. A first fluctuation data storage means (for example, a RAM 55 backed up by a power source) capable of retaining the stored contents for a predetermined period even when power supply to the gaming machine is stopped; A second variation data storage means (for example, a power-backed-up RAM 934 or EEPROM) that is provided separately from the means and can retain the stored contents for a predetermined period even when the power supply to the control board is stopped. In connection with the output of the detection signal from the power supply monitoring means, the control means saves data necessary for restoration of the control state in the first fluctuation data storage means (for example, steps S451 to S499 and step S171). , S172) can be executed, and when power supply to the gaming machine is started, a predetermined condition (for example, determined in steps S7 to S9) is determined. Initialization process (for example, steps S183 to S193) for initializing the contents of the first fluctuation data storage means based on the establishment of the condition) and a recovery process for restoring the control state based on the storage contents of the first fluctuation data storage means (For example, steps S80 to S95) can be executed, and when the initialization process is executed, the determination numerical value updating means is updated based on the stored contents of the second variation data storage means. A gaming machine characterized by starting (for example, step S193).
According to such a configuration, the update start value of the determination numerical value updating means after execution of the initialization process becomes random, and the stored contents of the first variation data storage means are initialized, thereby causing an illegal big hit. Can make it difficult.

(9)制御手段の動作状態が所定期間停止状態となった場合に制御手段の動作状態を初期化する初期化手段(例えばウォッチドッグタイマ回路)を備えている遊技機。
そのような構成によれば、異常な状態のまま制御が続行されてしまうことを防止することができる。
(9) A gaming machine provided with initialization means (for example, a watchdog timer circuit) for initializing the operation state of the control means when the operation state of the control means has been stopped for a predetermined period.
According to such a configuration, it is possible to prevent the control from continuing in an abnormal state.

1 パチンコ遊技機
31 主基板(遊技制御基板)
35 ランプ制御基板
55 RAM(第1変動データ記憶手段)
56 CPU
70 音制御基板
80 図柄制御基板
92 第1発振回路
902 電源監視用IC(電源監視手段)
910 電源基板
916 コンデンサ(バックアップ電源)
930 第2発振回路
931 カウンタ
932 ラッチ回路
933 バックアップ電源
934 RAM(第2データ記憶手段)
950 判定回路
1 Pachinko machine 31 Main board (game control board)
35 Lamp control board 55 RAM (first variation data storage means)
56 CPU
70 Sound Control Board 80 Symbol Control Board 92 First Oscillation Circuit 902 Power Supply Monitoring IC (Power Supply Monitoring Means)
910 Power supply board 916 Capacitor (backup power supply)
930 Second oscillation circuit 931 Counter 932 Latch circuit 933 Backup power supply 934 RAM (second data storage means)
950 judgment circuit

Claims (1)

遊技者が所定の遊技を行い、特定の条件の成立に応じて遊技者に所定の遊技価値を付与可能な遊技機であって、
遊技の進行を制御する遊技制御手段と、
前記遊技制御手段から出力されるコマンドにもとづいて演出装置の制御を行う演出制御手段と、
遊技の進行に応じて変動するデータを記憶する変動データ記憶手段と、
遊技機への電力供給が停止しても所定期間は前記変動データ記憶手段の記憶内容を保持することが可能な記憶保持手段と、
定電位の電源の出力電圧を監視し検出条件が成立した場合に検出信号を出力する電源監視手段と、
操作に応じて操作信号を出力する操作手段とを備え、
前記遊技制御手段は、
前記電源監視手段から前記検出信号出力されたときに、制御状態の復旧に必要なデータを前記変動データ記憶手段に保持させるための電力供給停止時処理を実行可能であり、
遊技機への電力供給が開始された場合に、前記操作手段からの操作信号が入力されているときに前記変動データ記憶手段の記憶内容を初期化し、前記操作手段からの操作信号が入力されていないときに、所定の条件の成立にもとづいて、前記変動データ記憶手段の記憶内容を初期化する初期化処理と前記変動データ記憶手段の記憶内容にもとづいて制御状態を復旧する復旧処理とのうちいずれか一方を実行可能であって、
前記初期化処理実行場合には、該初期化処理の実行を示す初期化報知コマンドを前記演出制御手段に出力し、
前記演出制御手段は、
前記初期化報知コマンドを入力したことにもとづいて前記演出装置により前記初期化処理の実行を示す初期化報知を実行し、
前記初期化報知を実行しているときに前記遊技制御手段から所定の制御の実行を示すコマンドを受信した場合には当該コマンドを無効にする
ことを特徴とする遊技機。
A gaming machine in which a player plays a predetermined game and can give a predetermined game value to the player when a specific condition is established,
Game control means for controlling the progress of the game ;
Effect control means for controlling the effect device based on a command output from the game control means;
Fluctuating data storage means for storing data that fluctuates according to the progress of the game;
Storage holding means capable of holding the storage contents of the variation data storage means for a predetermined period even when power supply to the gaming machine is stopped;
A power supply monitoring means for outputting a detection signal when the Tokoro constant potential monitoring detects conditions the output voltage of the power supply is established,
An operation means for outputting an operation signal according to the operation ,
The game control means includes
Wherein when the detection signal from the power supply monitoring means it is output, a data necessary for restoration of the control state capable of executing power supply stop process to make holding the variation data storage means,
When power supply to the gaming machine is started, when the operation signal from the operation means is input, the storage contents of the variation data storage means are initialized, and the operation signal from the operation means is input. An initialization process for initializing the storage contents of the fluctuation data storage means based on the establishment of a predetermined condition, and a recovery process for restoring the control state based on the storage contents of the fluctuation data storage means You can do either one,
In the case of execution of the initialization process, an initialization notification command indicating the execution of the initialization process is output to the effect control means,
The production control means includes
Based on the input of the initialization notification command, the presentation device performs initialization notification indicating execution of the initialization process,
When a command indicating execution of predetermined control is received from the game control means while the initialization notification is being executed, the command is invalidated .
JP2011021743A 2011-02-03 2011-02-03 Game machine Expired - Lifetime JP4850974B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011021743A JP4850974B2 (en) 2011-02-03 2011-02-03 Game machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011021743A JP4850974B2 (en) 2011-02-03 2011-02-03 Game machine

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2001280662A Division JP4794779B2 (en) 2001-09-14 2001-09-14 Game machine

Publications (2)

Publication Number Publication Date
JP2011083650A JP2011083650A (en) 2011-04-28
JP4850974B2 true JP4850974B2 (en) 2012-01-11

Family

ID=44077021

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011021743A Expired - Lifetime JP4850974B2 (en) 2011-02-03 2011-02-03 Game machine

Country Status (1)

Country Link
JP (1) JP4850974B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5643975B2 (en) * 2012-03-21 2014-12-24 株式会社ソフイア Game machine
JP5844221B2 (en) * 2012-06-06 2016-01-13 株式会社三共 Game machine

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3976940B2 (en) * 1999-04-12 2007-09-19 株式会社三共 Game machine
JP2001120815A (en) * 1999-10-29 2001-05-08 Toyomaru Industry Co Ltd Game machine
JP2003103022A (en) * 2001-07-27 2003-04-08 Sanyo Product Co Ltd Game machine

Also Published As

Publication number Publication date
JP2011083650A (en) 2011-04-28

Similar Documents

Publication Publication Date Title
JP3768419B2 (en) Game machine
JP4794779B2 (en) Game machine
JP2004081465A (en) Game machine
JP4338833B2 (en) Game machine
JP3907931B2 (en) Game machine
JP3686037B2 (en) Game machine
JP3865976B2 (en) Game machine
JP4031018B2 (en) Game machine
JP3833438B2 (en) Game machine
JP4850974B2 (en) Game machine
JP4658177B2 (en) Game machine
JP3755637B2 (en) Game machine
JP2001178890A (en) Game machine
JP2003325909A (en) Game machine
JP4795476B2 (en) Game machine
JP2003033544A (en) Game machine
JP3647778B2 (en) Game machine
JP3907929B2 (en) Game machine
JP4347379B2 (en) Game machine
JP3792476B2 (en) Game machine
JP4338832B2 (en) Game machine
JP4652458B2 (en) Game machine
JP4226611B2 (en) Game machine
JP2003024606A (en) Game machine
JP4031017B2 (en) Game machine

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110719

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110916

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20111011

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111019

R150 Certificate of patent or registration of utility model

Ref document number: 4850974

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20141028

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term