JP4492685B2 - Slot machine - Google Patents

Slot machine Download PDF

Info

Publication number
JP4492685B2
JP4492685B2 JP2007308888A JP2007308888A JP4492685B2 JP 4492685 B2 JP4492685 B2 JP 4492685B2 JP 2007308888 A JP2007308888 A JP 2007308888A JP 2007308888 A JP2007308888 A JP 2007308888A JP 4492685 B2 JP4492685 B2 JP 4492685B2
Authority
JP
Japan
Prior art keywords
power failure
control board
game
power
executed
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
JP2007308888A
Other languages
Japanese (ja)
Other versions
JP2008062109A (en
JP2008062109A5 (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.)
Sanyo Bussan Co Ltd
Original Assignee
Sanyo Bussan 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 Sanyo Bussan Co Ltd filed Critical Sanyo Bussan Co Ltd
Priority to JP2007308888A priority Critical patent/JP4492685B2/en
Publication of JP2008062109A publication Critical patent/JP2008062109A/en
Publication of JP2008062109A5 publication Critical patent/JP2008062109A5/ja
Application granted granted Critical
Publication of JP4492685B2 publication Critical patent/JP4492685B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Description

本発明は、スロットマシンに関するものである。 The present invention relates to a slot machine .

技の制御は、主に主制御基板により行われる。この主制御基板には、コインの払い出し制御を行う払出制御基板や、柄の変動表示等の表示制御を行う表示用制御基板などが接続されている。これら各制御基板の制御は、主制御基板から各制御基板へ送信されるコマンドに基づいて行われる。 Control of Yu technique is mainly performed by the main control board. The main control board, and dispensing control board paid out control of coins, such as the display control board for controlling the display of the variable display, etc. FIG handle is connected. These control boards are controlled based on commands transmitted from the main control board to the control boards.

ここで、各制御基板がそれぞれの制御を行うためには、駆動電圧の供給を必要とし、電源が突然切断されて停電が発生すると進行中の状態がクリアされてしまう。このため、停電が発生した場合には、停電前の状態に応じたデータを保持(バックアップ)する停電処理が行われ、停電解消時には、停電処理によってバックアップしたデータを使用して停電発生前の状復帰させる。 Here, because each control board performs each control requires a supply of the driving voltage, the state of progress will be cleared when power is suddenly disconnected power failure occurs. Therefore, if a power failure occurs, is performed at power failure processing for holding data corresponding to before the power failure state (backup) at the time of power failure persists, the power failure using the data backed up by a power failure during processing Ru is returned to the previous state.

しかしながら、瞬時の停電や、ノイズ等により信号が誤って入力された場合等の一時的な停電の発生時には、停電処理がスムーズな遊技の進行を妨げてしまうおそれがあるという問題点があった。 However, a power outage or when Shun, in the event of a temporary power failure when such input signal is erroneously due to noise or the like, there is a problem that there is a risk that the power failure processing will interfere with the progress of the smooth game It was.

本発明は上記例示した問題点等を解決するためになされたものであり、より円滑に遊技を進行させることができるスロットマシンを提供することを目的としている。 The present invention has been made to solve the above-described problems and the like, and an object thereof is to provide a slot machine capable of proceeding with a game more smoothly.

この目的を達成するために請求項1記載のスロットマシンは、複数の図柄からなる図柄列を変動表示した後に図柄を確定表示する可変表示手段を備え、始動用操作手段の操作に起因して図柄の変動が開始され、停止用操作手段の操作に起因して、或いは、所定時間経過することにより、図柄の変動が停止され、その停止時の確定図柄が特定図柄である場合に、遊技者に有利な特別遊技状態を発生させるものであって、該スロットマシンは、主制御手段と、主制御手段からの制御信号に基づいて遊技部材を制御するサブ制御手段と、からなる制御手段と、スロットマシンに供給される電圧が0Vよりも高い所定電圧まで低下した場合に停電の発生と判定して停電信号を出力する停電監視手段と、を備え、前記制御手段を構成する前記主制御手段と前記サブ制御手段とは、それぞれ電源断後もデータを保持可能な記憶手段を備えると共に、該記憶手段の前記データを書換え可能であり、前記停電監視手段が出力する前記停電信号は、前記停電信号が前記制御手段にとって割込禁止が不能な割込として入力されるよう、前記主制御手段及びサブ制御手段の割込禁止不能割込端子に入力されるものであり、前記主制御手段及びサブ制御手段が実行する処理手段として、繰り返し所定の制御を行う遊技制御処理手段と、前記停電信号が入力されることに基づいて実行され、前記記憶手段に停電発生情報を記憶するための停電信号割込処理手段と、前記遊技制御処理手段の特定個所で実行される処理手段であって、前記記憶手段に前記停電発生情報が記憶されているか否かを判定するための停電情報判定処理手段と、前記記憶手段に前記データを記憶する停電時処理手段と、を備え、前記制御手段は、前記遊技制御処理手段を実行中に前記停電信号が入力されることにより、前記停電信号割込処理手段を実行して前記記憶手段に前記停電発生情報を記憶して前記遊技制御処理手段に復帰し、該遊技制御処理手段の前記停電情報判定処理手段で前記停電発生情報が記憶されていると判定された場合は前記停電時処理手段を実行し、停電が解消した場合に、前記停電時処理手段の実行前の遊技状態から遊技の制御を再開する。 To achieve this object, the slot machine according to claim 1 is provided with variable display means for confirming and displaying a symbol after a symbol string composed of a plurality of symbols is variably displayed, and the symbol resulting from the operation of the starting operation means. When the change of the symbol is started and the change of the symbol is stopped due to the operation of the operation means for stoppage or when a predetermined time elapses, and the confirmed symbol at the time of the stop is a specific symbol, the player is An advantageous special gaming state is generated, the slot machine comprising: a control means comprising a main control means; a sub-control means for controlling a gaming member based on a control signal from the main control means; and a slot It said main control means voltage supplied to the machine and a power failure monitoring means for outputting a determination to power failure signal and power failure when lowered to a predetermined high voltage than 0V, thereby constituting the control means The sub-control means includes storage means that can retain data even after power is turned off, and the data in the storage means can be rewritten, and the power failure signal output by the power failure monitoring means is the power failure signal. Is input to an interrupt disable disable interrupt terminal of the main control means and the sub control means so that the interrupt is disabled for the control means, and the main control means and the sub control As a processing means executed by the means, a game control processing means for repeatedly performing predetermined control, and a power failure signal interrupt for storing power failure occurrence information in the storage means, executed based on the input of the power failure signal A power failure for determining whether or not the power failure occurrence information is stored in the storage means, the processing means and a processing means executed at a specific location of the game control processing means A power failure processing means for storing the data in the storage means, and the control means receives the power failure signal while the game control processing means is being executed. Signal interruption processing means is executed to store the power outage occurrence information in the storage means and return to the game control processing means, and the power outage occurrence information is stored in the power outage information determination processing means of the game control processing means. When it is determined that the power failure is detected, the power failure processing means is executed. When the power failure is resolved, the game control is resumed from the gaming state before the power failure processing means is executed.

本発明のスロットマシンによれば、電源断前に停電が解消する一時的な停電が発生した場合やノイズ等により信号が誤って入力された場合でも遊技をスムーズに再開させることができ、より円滑に遊技を進行させることができるという効果がある。 According to the slot machine of the present invention, a game can be resumed smoothly even when a temporary power failure that eliminates the power failure occurs before the power is turned off, or when a signal is erroneously input due to noise or the like. There is an effect that the game can be advanced.

以下、本発明の好ましい実施例について、添付図面を参照して説明する。本実施例では、遊技機の一例として弾球遊技機の一種であるパチンコ機、特に、第1種パチンコ遊技機を用いて説明する。なお、本発明を第3種パチンコ遊技機や他の遊技機に用いることは、当然に可能である。   Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings. In this embodiment, a pachinko machine that is a kind of a ball game machine, in particular, a first type pachinko game machine will be described as an example of the game machine. Note that it is naturally possible to use the present invention for the third kind pachinko gaming machine and other gaming machines.

図1は、本実施例のパチンコ機Pの遊技盤の正面図である。遊技盤1の周囲には、球が入賞することにより5個から15個の球が払い出される複数の入賞口2が設けられている。また、遊技盤1の中央には、複数種類の識別情報としての図柄などを表示する液晶ディスプレイ(以下単に「LCD」と称す)3が設けられている。このLCD3の表示画面は横方向に3分割されており、3分割された各表示領域において、それぞれ上から下へ縦方向にスクロールしながら図柄の変動表示が行われる。   FIG. 1 is a front view of a game board of a pachinko machine P according to the present embodiment. Around the game board 1, there are provided a plurality of winning holes 2 through which five to fifteen balls are paid out when a ball wins. In the center of the game board 1, a liquid crystal display (hereinafter simply referred to as “LCD”) 3 for displaying symbols as a plurality of types of identification information is provided. The display screen of the LCD 3 is divided into three in the horizontal direction. In each of the three divided display areas, the symbols are displayed in a variable manner while scrolling in the vertical direction from top to bottom.

LCD3の下方には、図柄作動口(第1種始動口)4が設けられており、球がこの図柄作動口4に入賞することにより、前記したLCD3の変動表示が開始される。図柄作動口4の下方には、特定入賞口(大入賞口)5が設けられている。この特定入賞口5は、LCD3の変動後の表示結果が予め定められた図柄の組み合わせの1つと一致する場合に、大当たりとなって、球が入賞しやすいように所定時間(例えば、30秒経過するまで、或いは、球が10個入賞するまで)開放される入賞口である。   Below the LCD 3, a symbol operating port (first type starting port) 4 is provided, and when the ball wins the symbol operating port 4, the above-described variation display of the LCD 3 is started. Below the symbol operating port 4, a specific winning port (large winning port) 5 is provided. This specific winning opening 5 is a big hit when the display result after the fluctuation of the LCD 3 coincides with one of the predetermined symbol combinations, and a predetermined time (for example, 30 seconds elapses) so that the ball is easy to win. (Or until 10 balls have been won).

この特定入賞口5内には、Vゾーン5aが設けられており、特定入賞口5の開放中に、球がVゾーン5a内を通過すると、継続権が成立して、特定入賞口5の閉鎖後、再度、その特定入賞口5が所定時間(又は、特定入賞口5に球が所定個数入賞するまで)開放される。この特定入賞口5の開閉動作は、最高で16回(16ラウンド)繰り返し可能にされており、開閉動作の行われ得る状態が、いわゆる所定の遊技価値が付与された状態(特別遊技状態)である。   A V zone 5a is provided in the specific winning opening 5, and when the ball passes through the V zone 5a while the specific winning opening 5 is opened, a continuation right is established and the specific winning opening 5 is closed. Thereafter, the specific winning opening 5 is opened again for a predetermined time (or until a predetermined number of balls win the specific winning opening 5). The opening / closing operation of the specific winning opening 5 can be repeated up to 16 times (16 rounds), and the state where the opening / closing operation can be performed is a state where a predetermined game value is given (special game state). is there.

なお、第3種パチンコ遊技機において所定の遊技価値が付与された状態(特別遊技状態)とは、LCD3の変動後の表示結果が予め定められた図柄の組み合わせの1つと一致する場合に、特定入賞口が所定時間開放されることをいう。この特定入賞口の開放中に、球がその特定入賞口内へ入賞すると、特定入賞口とは別に設けられた大入賞口が所定時間、所定回数開放される。   Note that a state in which a predetermined game value is given (special game state) in the third type pachinko gaming machine is specified when the display result after the fluctuation of the LCD 3 matches one of predetermined symbol combinations. It means that the winning opening is opened for a predetermined time. When the ball wins into the specific winning opening while the specific winning opening is opened, a large winning opening provided separately from the specific winning opening is opened a predetermined number of times for a predetermined time.

図2は、パチンコ機Pの電気的構成を示したブロック図であり、特に、パチンコ機Pの遊技内容の制御を行う主制御基板Cと、賞球や貸球の払出制御を行う払出制御基板Hとの電気的構成を示したブロック図である。   FIG. 2 is a block diagram showing the electrical configuration of the pachinko machine P, and in particular, a main control board C that controls the game content of the pachinko machine P, and a payout control board that performs payout control of prize balls and balls. It is the block diagram which showed the electric constitution with H.

パチンコ機Pの主制御基板Cには、演算装置である1チップマイコンとしてのMPU11が搭載されている。このMPU11には、MPU11により実行される各種の制御プログラムや固定値データを記憶したROM12と、そのROM12内に記憶される制御プログラムの実行に当たって各種のデータ等を一時的に記憶するためのメモリであるRAM13と、割込回路やタイマ回路、データ送受信回路などの各種回路が内蔵されている。図3から図5に示すフローチャートのプログラムは、制御プログラムの一部としてROM12内に記憶されている。   On the main control board C of the pachinko machine P, an MPU 11 as a one-chip microcomputer which is an arithmetic unit is mounted. The MPU 11 includes a ROM 12 storing various control programs executed by the MPU 11 and fixed value data, and a memory for temporarily storing various data and the like when executing the control program stored in the ROM 12. A certain RAM 13 and various circuits such as an interrupt circuit, a timer circuit, and a data transmission / reception circuit are incorporated. The programs of the flowcharts shown in FIGS. 3 to 5 are stored in the ROM 12 as a part of the control program.

主制御基板CのRAM13は、賞球バッファ13aと、賞球ポインタ13bと、バックアップエリア13cとを備えている。また、RAM13には、パチンコ機Pの電源のオフ後においても、電源基板50からバックアップ電圧が供給されており、データを保持(バックアップ)できるように構成されている。   The RAM 13 of the main control board C includes a prize ball buffer 13a, a prize ball pointer 13b, and a backup area 13c. Further, the RAM 13 is configured so that the backup voltage is supplied from the power supply board 50 even after the pachinko machine P is turned off, and data can be held (backed up).

賞球バッファ13aは、遊技盤1の遊技領域へ打ち込まれた球が入賞口2等へ入賞した場合に、払い出される賞球数を記憶するバッファである。払い出される賞球数は入賞した球毎に賞球バッファ13aへ記憶されるので、賞球バッファ13aは複数バイトで構成されている。賞球バッファ13aに記憶された賞球数のデータは、賞球コマンドとして払出制御基板Hへ送信されると、賞球バッファ13aから消去される。具体的には、0番目の賞球バッファ13aに記憶される賞球数を払出制御基板Hへ送信した後、1番目以降の賞球バッファ13aの値を小さいアドレス側へ順に1バイトずつシフトすることにより、0番目の賞球バッファ13aの値が消去される。   The prize ball buffer 13a is a buffer for storing the number of prize balls to be paid out when a ball driven into the game area of the game board 1 wins the prize opening 2 or the like. Since the number of winning balls to be paid out is stored in the winning ball buffer 13a for each winning ball, the winning ball buffer 13a is composed of a plurality of bytes. When the prize ball data stored in the prize ball buffer 13a is transmitted to the payout control board H as a prize ball command, it is erased from the prize ball buffer 13a. Specifically, after the number of prize balls stored in the 0th prize ball buffer 13a is transmitted to the payout control board H, the values of the 1st and later prize ball buffers 13a are sequentially shifted to the smaller address side by 1 byte. As a result, the value of the 0th prize ball buffer 13a is erased.

ここで、賞球コマンドとは、払い出される賞球数を払出制御基板Hへ指示するためのコマンドであり、2バイトで構成されている。賞球コマンドの1バイト目のデータは、そのコマンドが賞球コマンドであることを示すためのデータ(例えば「A0H」)とされており、また、2バイト目のデータは払い出される賞球数を示すデータとされている。1回の入賞に対する最大の賞球数は15球であるので、その最大賞球数に対応した「01H」〜「0FH」の15種類のデータが賞球コマンドの2バイト目のデータとされている。   Here, the prize ball command is a command for instructing the payout control board H of the number of prize balls to be paid out, and is composed of 2 bytes. The first byte data of the prize ball command is data (for example, “A0H”) indicating that the command is a prize ball command, and the second byte data indicates the number of prize balls to be paid out. The data is shown. Since the maximum number of winning balls for one winning is 15 balls, 15 types of data “01H” to “0FH” corresponding to the maximum number of winning balls are used as the second byte data of the winning ball command. Yes.

なお、賞球コマンドは1バイトで構成するようにしても良い。前記した通り、1回の入賞に対する最大の賞球数は15球であるので、賞球コマンドを1バイトで構成する場合には、その最大賞球数に対応した「01H」〜「0FH」の15種類のデータを賞球コマンドとする。即ち、1バイトで構成されるコマンドの上位4ビットが「0」の場合に賞球コマンドとするのである。   The prize ball command may be composed of 1 byte. As described above, since the maximum number of winning balls for one winning is 15 balls, when the winning ball command is composed of 1 byte, “01H” to “0FH” corresponding to the maximum winning ball number. Fifteen types of data are used as prize ball commands. In other words, when the upper 4 bits of a command composed of 1 byte are “0”, a winning ball command is set.

賞球ポインタ13bは、賞球数を記憶させる賞球バッファ13aの位置を示すポインタであり、払い出される賞球数は、賞球ポインタ13bの値番目の賞球バッファ13aへ記憶される。この賞球ポインタ13bの値は、賞球バッファ13aへ賞球数を書き込むことにより「1」加算され、逆に、0番目の賞球バッファ13aの値が払出制御基板Hへ送信されることにより「1」減算される。   The prize ball pointer 13b is a pointer indicating the position of the prize ball buffer 13a for storing the number of prize balls, and the number of prize balls to be paid out is stored in the value-th prize ball buffer 13a of the prize ball pointer 13b. The value of the prize ball pointer 13b is incremented by "1" by writing the number of prize balls in the prize ball buffer 13a, and conversely, the value of the 0th prize ball buffer 13a is transmitted to the payout control board H. “1” is subtracted.

バックアップエリア13cは、停電などの発生により電源が切断された場合、電源の再入時に、パチンコ機Pの状態を電源切断前の状態に復帰させるため、電源切断時(停電発生時を含む。以下、同様)のスタックポインタや、各レジスタ、I/O等の値を記憶しておくためのエリアである。このバックアップエリア13cへの書き込みは、メイン処理の中で実行されるバックアップ処理によって電源切断時に実行され、逆にバックアップエリア13cに書き込まれた各値の復帰は、電源入時(停電解消による電源入を含む。以下、同様)に実行される(図3参照)。   In the backup area 13c, when the power is cut off due to the occurrence of a power failure or the like, the power of the pachinko machine P is restored to the state before the power is turned off when the power is turned on again. This is an area for storing stack pointers, values of registers, I / O, and the like. The writing to the backup area 13c is executed when the power is turned off by the backup process executed in the main process. Conversely, the restoration of each value written to the backup area 13c is performed when the power is turned on (the power is turned on by eliminating the power failure). The same applies hereinafter (see FIG. 3).

かかるROM12およびRAM13を内蔵したMPU11は入出力ポート15と接続されており、入出力ポート15は、賞球払出用モータ21によって賞球や貸球の払出制御を行う払出制御基板Hと接続されるほか、複数の普通入賞スイッチ17と、第1種始動口スイッチ18と、Vカウントスイッチ19と、10カウントスイッチ20と、他の入出力装置25と、電源基板50に設けられた停電監視回路50b及びクリアスイッチ50cと、それぞれ接続されている。   The MPU 11 incorporating the ROM 12 and the RAM 13 is connected to an input / output port 15, and the input / output port 15 is connected to a payout control board H that performs payout control of prize balls and balls by a prize ball payout motor 21. In addition, a plurality of normal winning switches 17, a first type start port switch 18, a V count switch 19, a 10 count switch 20, another input / output device 25, and a power failure monitoring circuit 50b provided on the power supply board 50. And the clear switch 50c.

普通入賞スイッチ17は、遊技盤1に設けられた複数の入賞口2へ入賞した球をそれぞれ検出するためのスイッチであり、各入賞口2の入口近傍に設けられている。第1種始動口スイッチ18は、図柄作動口(第1種始動口)4を通過した球を検出するためのスイッチであり、図柄作動口4の近傍に設けられている。普通入賞スイッチ17のいずれか又は第1種始動口スイッチ18によって球が検出されると、払出制御基板Hによって5個の賞球が払い出される。   The normal winning switch 17 is a switch for detecting a ball that has won a plurality of winning holes 2 provided on the game board 1, and is provided near the entrance of each winning hole 2. The first type starting port switch 18 is a switch for detecting a sphere that has passed through the symbol operating port (first type starting port) 4, and is provided in the vicinity of the symbol operating port 4. When a ball is detected by any of the normal winning switches 17 or the first type start port switch 18, five paying balls are paid out by the payout control board H.

Vカウントスイッチ19は、特定入賞口5内のVゾーン5aへ入賞した球を検出するためのスイッチであり、また、10カウントスイッチ20は、特定入賞口5内のVゾーン5a以外へ入賞した球を検出するためのスイッチである。Vカウントスイッチ19又は10カウントスイッチ20により球が検出されると、払出制御基板Hによって15個の賞球が払い出される。   The V count switch 19 is a switch for detecting a ball won in the V zone 5 a in the specific winning opening 5, and the 10 count switch 20 is a ball won in a place other than the V zone 5 a in the specific winning opening 5. It is a switch for detecting. When a ball is detected by the V count switch 19 or the 10 count switch 20, 15 prize balls are paid out by the payout control board H.

ここで、主制御基板Cと払出制御基板Hとは、複数本のデータ線を介して互いの入出力ポート15,35が接続されている。このため、主制御基板Cと払出制御基板Hとの間における賞球コマンド等の送受信は、主制御基板Cから払出制御基板Hへの一方向に行われるだけでなく、払出制御基板Hから主制御基板Cへも行われる。   Here, the input / output ports 15 and 35 are connected to the main control board C and the payout control board H via a plurality of data lines. Therefore, transmission / reception of a prize ball command or the like between the main control board C and the payout control board H is not only performed in one direction from the main control board C to the payout control board H, but also from the payout control board H to the main control board H. This is also performed on the control board C.

払出制御基板Hは賞球や貸球の払出制御を行うものであり、演算装置であるMPU31が搭載されている。このMPU31には、MPU31により実行される制御プログラムや固定値データ等を記憶したROM32と、ワークメモリ等として使用されるRAM33とを備えている。図4及び図6から図8に示すフローチャートのプログラムは、制御プログラムの一部としてROM32内に記憶されている。   The payout control board H performs payout control of prize balls and rental balls, and is equipped with an MPU 31 that is an arithmetic unit. The MPU 31 includes a ROM 32 that stores a control program executed by the MPU 31, fixed value data, and the like, and a RAM 33 that is used as a work memory or the like. The programs of the flowcharts shown in FIGS. 4 and 6 to 8 are stored in the ROM 32 as a part of the control program.

払出制御基板HのRAM33は、残賞球数カウンタ33aと、初期化フラグ33bと、バックアップエリア33cとを備えている。また、RAM33には、パチンコ機Pの電源のオフ後においても、電源基板50からバックアップ電圧が供給されており、データを保持(バックアップ)できるように構成されている。   The RAM 33 of the payout control board H includes a remaining ball number counter 33a, an initialization flag 33b, and a backup area 33c. Further, the RAM 33 is configured so that the backup voltage is supplied from the power supply board 50 even after the power of the pachinko machine P is turned off, and data can be retained (backed up).

残賞球数カウンタ33aは、未払いの賞球数を記憶するカウンタである。残賞球数カウンタ33aの値は、賞球コマンドによって主制御基板Cから払出制御基板Hへ賞球の払い出しが指示される毎に、その指示された賞球数が加算される。逆に、賞球カウントスイッチ22が払い出された賞球を検出する毎に「1」ずつ減算される。払出制御基板Hは、この残賞球数カウンタ33aの値が「0」になるまで、賞球払出用モータ21を動作させて賞球の払い出しを行うが、前記した通り、この残賞球数カウンタ33aの値は電源基板50から供給されるバックアップ電圧によりバックアップされるので、賞球の払い出し途中でパチンコ機Pの電源が切断された場合にも、そのパチンコ機Pの電源を再投入することにより、払出制御基板Hは、残りの賞球(未払い分の賞球)を正確に払い出すことができる。   The remaining prize ball counter 33a is a counter for storing the number of unpaid prize balls. The value of the remaining prize ball number counter 33a is incremented every time the prize ball is instructed from the main control board C to the payout control board H by the prize ball command. On the contrary, every time the prize ball count switch 22 detects the paid out prize ball, “1” is subtracted. The payout control board H operates the award ball payout motor 21 to pay out the award balls until the value of the remaining award ball number counter 33a reaches “0”. Since the value of the counter 33a is backed up by the backup voltage supplied from the power supply board 50, even if the power of the pachinko machine P is cut off during the payout of the prize ball, the power of the pachinko machine P must be turned on again. Thus, the payout control board H can accurately pay out the remaining prize balls (unpaid prize balls).

初期化フラグ33bは、主制御基板Cから送信される初期化コマンドを払出制御基板Hが受信した場合にオンされるフラグである。初期化コマンドは、主制御基板Cの立ち上げ処理が終了した場合に送信されるコマンドであり(図3、S9参照)、払出制御基板Hに対して賞球の払い出しや球の発射の開始許可を与えるためのコマンドである。払出制御基板Hは、立ち上げ時に行われる処理が主制御基板Cに比べて少なく、主制御基板Cが遊技の制御を開始可能となる前に賞球の払い出しや球の発射準備が完了する。しかし、主制御基板Cが遊技の制御を開始する前に払出制御基板Hが遊技の制御を開始してしまうと、主制御基板Cに賞球の払い出しが検出されない等の問題が生じるので、主制御基板Cが遊技の制御を開始可能となるまで払出制御基板Hは制御の開始を待機する。払出制御基板Hが初期化コマンドを受信して初期化フラグ33bがオンされると、主制御基板Cが立ち上げ処理を終えて遊技の制御が開始されたことを払出制御基板Hが認識し、払出制御基板Hは、初期化フラグ33bをオフして遊技の制御を開始する(図7参照)。   The initialization flag 33b is a flag that is turned on when the payout control board H receives an initialization command transmitted from the main control board C. The initialization command is a command that is transmitted when the start-up process of the main control board C is completed (see S9 in FIG. 3), and the payout control board H is permitted to start paying out a prize ball and launching a ball. Is a command to give The payout control board H requires less processing than the main control board C at the time of start-up, and the main control board C completes the payout of the winning ball and the preparation for launching the ball before the game control can be started. However, if the payout control board H starts to control the game before the main control board C starts to control the game, problems such as the detection of the payout of the prize ball on the main control board C occur. The payout control board H waits for the start of control until the control board C can start controlling the game. When the payout control board H receives the initialization command and the initialization flag 33b is turned on, the payout control board H recognizes that the main control board C finishes the start-up process and the game control is started, The payout control board H turns off the initialization flag 33b and starts control of the game (see FIG. 7).

バックアップエリア33cは、前述した主制御基板Cのバックアップエリア13cと同様に、停電などの発生により電源が切断された場合、電源の再入時に、パチンコ機Pの状態を電源切断前の状態に復帰させるため、電源切断時のスタックポインタや、各レジスタ、I/O等の値を記憶しておくためのエリアである。このバックアップエリア33cへの書き込みは、メイン処理の中で実行されるバックアップ処理によって電源切断時に実行され、逆にバックアップエリア33cに書き込まれた各値の復帰は、電源入時に実行される(図7参照)。   Similarly to the backup area 13c of the main control board C described above, when the power is cut off due to a power failure or the like, the backup area 33c returns the pachinko machine P to the state before the power is turned off when the power is turned on again. This is an area for storing values such as a stack pointer at the time of power-off, each register, and I / O. The writing to the backup area 33c is executed when the power is turned off by the backup process executed in the main process, and the return of each value written to the backup area 33c is executed when the power is turned on (FIG. 7). reference).

これらROM32およびRAM33を内蔵したMPU31は入出力ポート35と接続されており、その入出力ポート35は、前述した主制御基板Cと接続されるほか、賞球払出用モータ21と、賞球カウントスイッチ22と、他の入出力装置25と、電源基板50に設けられた停電監視回路50b及びクリアスイッチ50cと、それぞれ接続されている。   The MPU 31 incorporating these ROM 32 and RAM 33 is connected to an input / output port 35. The input / output port 35 is connected to the main control board C described above, as well as a prize ball payout motor 21 and a prize ball count switch. 22, another input / output device 25, and a power failure monitoring circuit 50 b and a clear switch 50 c provided on the power supply substrate 50, respectively.

賞球カウントスイッチ22は、賞球払出用モータ21によって払い出された賞球を検出するためのスイッチであり、賞球払出用モータ21と共に賞球払出ユニットに搭載されている。賞球払出用モータ21は賞球を払い出すためのモータであり、賞球払出用モータ21の駆動は、払出制御基板Hによって制御される。   The prize ball count switch 22 is a switch for detecting a prize ball paid out by the prize ball payout motor 21, and is mounted on the prize ball payout unit together with the prize ball payout motor 21. The winning ball payout motor 21 is a motor for paying out a winning ball, and the driving of the winning ball payout motor 21 is controlled by the payout control board H.

電源基板50は、パチンコ機Pの各部に電力を供給するための電源部50aと、停電監視回路50bと、クリアスイッチ50cとを備えている。停電監視回路50bは、停電等の発生による電源断時に、主制御基板C及び払出制御基板Hへ停電信号51を出力するための回路である。この停電監視回路50bは、電源部50aから出力される最も大きい電圧である直流安定24ボルトの電圧を監視し、その電圧が22ボルト以上であればハイの信号を主制御基板C及び払出制御基板Hの入出力ポート15,35へ出力する。   The power supply board 50 includes a power supply unit 50a for supplying power to each unit of the pachinko machine P, a power failure monitoring circuit 50b, and a clear switch 50c. The power failure monitoring circuit 50b is a circuit for outputting a power failure signal 51 to the main control board C and the payout control board H when the power is cut off due to the occurrence of a power failure or the like. This power failure monitoring circuit 50b monitors the DC stable voltage of 24 volts, which is the largest voltage output from the power supply unit 50a. If the voltage is 22 volts or higher, a high signal is sent to the main control board C and the payout control board. Output to H input / output ports 15 and 35.

また、停電監視回路50bは、電源部50aから出力される電圧が22ボルト未満になった場合に停電の発生と判断して、停電信号51の出力をハイからロウに切り替える。主制御基板C及び払出制御基板Hは、入出力ポート15,35から入力される停電信号51をメイン処理で監視し、停電信号51がロウとなった場合に停電の発生と認識して、遊技状態に基づいたデータをバックアップエリア13c,33cに書き込むバックアップ処理(図4参照)を実行する。また、停電信号51の出力がロウからハイに切り替わった場合には、主制御基板C及び払出制御基板Hは、停電が解消したことを認識して、バックアップ処理の実行前又は実行後に、処理を停電前の処理に移行して遊技の制御を再開する。なお、電源部50aは、直流安定24ボルトの電圧が22ボルト未満になった後においても、かかる停電時の処理の実行に充分な時間の間、制御系の駆動電圧である5ボルトの出力を正常値に維持するように構成されており、主制御基板C及び払出制御基板Hは、停電時の処理を確実に実行することができる。   The power failure monitoring circuit 50b determines that a power failure has occurred when the voltage output from the power supply unit 50a is less than 22 volts, and switches the output of the power failure signal 51 from high to low. The main control board C and the payout control board H monitor the power failure signal 51 input from the input / output ports 15 and 35 by the main processing, and recognize that a power failure has occurred when the power failure signal 51 goes low, A backup process (see FIG. 4) for writing data based on the state to the backup areas 13c and 33c is executed. Further, when the output of the power failure signal 51 is switched from low to high, the main control board C and the payout control board H recognize that the power failure has been resolved, and perform the process before or after the execution of the backup process. Shift to the pre-power failure process and resume game control. Note that the power supply unit 50a outputs an output of 5 volts, which is the drive voltage of the control system, for a time sufficient to execute the process at the time of the power failure even after the DC stable voltage of 24 volts becomes less than 22 volts. The main control board C and the payout control board H are configured to be maintained at normal values, and can reliably execute the processing at the time of power failure.

ここで、本実施例のパチンコ機Pにおいては、停電監視回路50bから出力される停電信号51は、停電の発生後、停電が解消するまで継続してロウのままとされ、各制御基板C,Hの入出力ポート15,35へ出力される。このため、主制御基板C及び払出制御基板Hは、制御の中で都合の良いタイミングにおいて停電信号51の状態を確認して停電処理を開始する契機とすることができると共に、複数回にわたって停電信号51の状態を確認することができる。よって、バックアップ処理(図4参照)の途中で停電が解消するような瞬時の停電や、ノイズ等による誤った信号入力に基づいた停電等の発生時には、バックアップ処理を行った後に再度停電信号51を確認し、停電信号51がハイとなって停電が解消していれば、通常の遊技の制御を再開させることができる。   Here, in the pachinko machine P of the present embodiment, the power failure signal 51 output from the power failure monitoring circuit 50b is continuously kept low until the power failure is resolved after the occurrence of the power failure. It is output to the input / output ports 15 and 35 of H. For this reason, the main control board C and the payout control board H can be used as an opportunity to check the state of the power failure signal 51 at a convenient timing in the control and start the power failure processing, and to perform the power failure signal multiple times. The state of 51 can be confirmed. Therefore, in the event of an instantaneous power outage that eliminates the power outage during the backup process (see FIG. 4) or a power outage based on an erroneous signal input due to noise or the like, the power outage signal 51 is set again after performing the backup process. If the power failure signal 51 is confirmed to be high and the power failure has been resolved, normal game control can be resumed.

クリアスイッチ50cは、主制御基板CのRAM13および払出制御基板HのRAM33にバックアップされるデータをクリアするためのスイッチであり、押しボタンタイプのスイッチで構成されている。このクリアスイッチ50cが押下された状態でパチンコ機Pの電源が投入されると(停電解消による電源入を含む)、主制御基板Cおよび払出制御基板Hによって、それぞれのRAM13,33のデータがクリアされる。   The clear switch 50c is a switch for clearing data backed up in the RAM 13 of the main control board C and the RAM 33 of the payout control board H, and is configured as a push button type switch. When the power of the pachinko machine P is turned on while the clear switch 50c is pressed (including power-on due to power failure cancellation), the data in the RAMs 13 and 33 is cleared by the main control board C and the payout control board H. Is done.

次に、図3から図8に示すフローチャートを参照して、主制御基板C及び払出制御基板Hで行われる各処理について説明する。図3は、パチンコ機Pの主制御基板Cにおいて実行されるメイン処理のフローチャートである。パチンコ機Pの主な制御は、このメイン処理によって実行される。   Next, each process performed in the main control board C and the payout control board H will be described with reference to the flowcharts shown in FIGS. FIG. 3 is a flowchart of a main process executed on the main control board C of the pachinko machine P. The main control of the pachinko machine P is executed by this main process.

メイン処理では、まず、割込を禁止する(S1)。次に、スタックポインタを設定し(S2)、クリアスイッチ50cがオンされているか否かを確認する(S3)。クリアスイッチ50cがオンされていなければ(S3:No)、バックアップが有効であるか否かを確認する(S4)。この確認は、RAM13の所定のエリアに書き込まれたキーワードが正しく記憶されているか否かにより判断する。キーワードが正しく記憶されていればバックアップは有効であり、逆に、キーワードが正しくなければバックアップデータは破壊されているので、そのバックアップは有効ではない。バックアップが有効であれば(S4:Yes)、処理をS6へ移行して、主制御基板Cの各状態を電源断前の状態に復帰させる。一方、バックアップが有効でなかったり(S4:No)、或いはクリアスイッチ50cがオンされていれば(S3:Yes)、RAMクリア及び初期化処理を実行して(S5)、RAM13及びI/O等の各値を初期化し、処理をS8へ移行する。なお、S5の初期化処理においてはタイマ割込の設定も行われる。このタイマ割込としては、初期化コマンドや賞球コマンド等の制御用コマンドを払出制御基板Dへ送信するためのストローブ信号を発生させるタイマ割込などがある。   In the main process, interrupts are first prohibited (S1). Next, a stack pointer is set (S2), and it is confirmed whether or not the clear switch 50c is turned on (S3). If the clear switch 50c is not turned on (S3: No), it is confirmed whether the backup is valid (S4). This confirmation is determined by whether or not the keyword written in a predetermined area of the RAM 13 is correctly stored. If the keyword is stored correctly, the backup is valid. On the other hand, if the keyword is not correct, the backup data is destroyed, so the backup is not valid. If the backup is valid (S4: Yes), the process proceeds to S6, and each state of the main control board C is returned to the state before the power is turned off. On the other hand, if the backup is not valid (S4: No) or the clear switch 50c is turned on (S3: Yes), RAM clear and initialization processing is executed (S5), and the RAM 13 and I / O, etc. Are initialized, and the process proceeds to S8. In the initialization process of S5, a timer interrupt is also set. Examples of the timer interrupt include a timer interrupt that generates a strobe signal for transmitting a control command such as an initialization command or a prize ball command to the payout control board D.

S6からの復電処理では、まず、バックアップエリア13cからスタックポインタの値を読み出して、これをスタックポインタへ書き込み、電源断前(停電前)の状態に戻す(S6)。次に、バックアップエリア13cへ退避した各レジスタやI/O等のデータをそのバックアップエリア13cから読み出して、これら各データを元のレジスタやI/O等へ書き込み(S7)、処理をS8へ移行する。S6及びS7の処理により、主制御基板Cにおける遊技の制御が電源断前の状態に復帰される。   In the power recovery process from S6, first, the value of the stack pointer is read from the backup area 13c, and this value is written to the stack pointer to return to the state before the power interruption (before power failure) (S6). Next, the data of each register and I / O saved in the backup area 13c is read from the backup area 13c, the data is written to the original register and I / O (S7), and the process proceeds to S8. To do. By the processes of S6 and S7, the game control on the main control board C is restored to the state before the power is turned off.

S8からの処理では、割込を許可状態にし(S8)、その割込を使って初期化コマンドを払出制御基板Hへ送信して(S9)、主制御基板Cで初期化処理が実行されたことを払出制御基板Hへ報せる。払出制御基板Hは、主制御基板Cに比べて処理が軽いので、主制御基板Cより先に立ち上げ処理が終了する。よって、払出制御基板Hは、主制御基板Cから送信される初期化コマンドを確実に受信することができる。初期化コマンドの送信後には、処理をS10へ移行して、遊技の制御を開始する。なお、主制御基板よりも立ち上げに時間がかかる制御基板がある場合には、処理をS10へ移行する前に所定時間をウェイトするウェイト処理を実行しても良い。主制御基板Cから送信される遊技の制御を行うためのコマンドを各制御基板が受信可能となる前に、主制御基板Cからコマンドが送信されることを防止することができる。   In the process from S8, the interrupt is permitted (S8), and an initialization command is transmitted to the payout control board H using the interrupt (S9), and the initialization process is executed on the main control board C. This can be reported to the payout control board H. Since the payout control board H is lighter in processing than the main control board C, the start-up process ends before the main control board C. Therefore, the payout control board H can reliably receive the initialization command transmitted from the main control board C. After transmission of the initialization command, the process proceeds to S10 and game control is started. If there is a control board that takes longer to start than the main control board, a wait process that waits for a predetermined time may be executed before the process proceeds to S10. It is possible to prevent a command from being transmitted from the main control board C before each control board can receive a command for controlling a game transmitted from the main control board C.

S10の処理では、停電信号51がハイであるか否かを確認し(S10)、ハイであれば(S10:Yes)、未だ停電は発生していないので、パチンコ機Pの遊技の制御を行う各処理を実行する(S11)。図5に示す賞球処理をはじめ、パチンコ機Pの遊技の各制御は、この各処理(S11)の中で実行される。S11の処理の後には、前回のS10の処理の実行からの経過時間を確認する(S12)。確認の結果、前回のS10の処理の開始から所定時間(本実施例においては2ms)経過していなければ(S12:No)、処理の移行を待機して再度経過時間を確認する。前回のS10の処理の開始から2ms経過すると(S12:Yes)、処理をS10へ移行する。   In the process of S10, it is confirmed whether or not the power failure signal 51 is high (S10). If the power failure signal 51 is high (S10: Yes), since the power failure has not yet occurred, the game of the pachinko machine P is controlled. Each process is executed (S11). Each control of the game of the pachinko machine P including the prize ball process shown in FIG. 5 is executed in each process (S11). After the process of S11, the elapsed time from the previous execution of the process of S10 is confirmed (S12). As a result of the confirmation, if the predetermined time (2 ms in the present embodiment) has not elapsed since the start of the previous processing of S10 (S12: No), the elapsed time is confirmed again after waiting for the transition of the processing. When 2 ms elapses from the start of the previous process of S10 (S12: Yes), the process proceeds to S10.

一方、S10の処理において、停電信号51がハイでなければ(S10:No)、停電の発生等により電源が断された可能性がある。この場合には、所定時間をウェイトするウェイト処理を実行し(S13)、その後、停電の発生か、それともノイズ等による誤った停電信号51の入力であるかを再確認するために停電信号51がハイであるか否かを再度確認する(S14)。なお、S13のウェイト処理は、ノイズによる誤った停電信号51が入力された場合を考慮してノイズの影響を取り除くように所定時間処理を待機させるものである。   On the other hand, if the power failure signal 51 is not high in the process of S10 (S10: No), the power may have been cut off due to the occurrence of a power failure or the like. In this case, wait processing for waiting for a predetermined time is executed (S13), and then the power failure signal 51 is reconfirmed to confirm whether a power failure has occurred or whether the power failure signal 51 is erroneously input due to noise or the like. It is confirmed again whether it is high (S14). Note that the wait process of S13 waits for a predetermined time process so as to remove the influence of noise in consideration of the case where an erroneous power failure signal 51 due to noise is input.

S14の確認の結果、停電信号51がハイであれば(S14:Yes)、瞬時の停電やノイズ等による停電の発生であって、停電が解消しているので、処理をS11の各処理へ移行して遊技の制御を再開する。このように、S10の処理で停電か否かを確認した後に、再度S14の処理で停電中であるか否かを確認するので、ノイズ等による誤った停電信号51の発生や瞬時に停電が解消する場合には、速やかに遊技の制御を再開することができる。なお、S14の処理において停電信号51の確認を行う回数は、必ずしも1回だけとする必要は無い。停電が発生した後、制御系の駆動電圧が低下して制御不能となる前にS16の処理で実行されるバックアップ処理を行うのに十分な時間があれば、確認回数を増やしても良い。多数回の確認に基づいて停電であるか否かを判断することで、より正確な判断を行うことができる。   As a result of the confirmation in S14, if the power failure signal 51 is high (S14: Yes), the power failure has occurred due to an instantaneous power failure or noise, and the power failure has been resolved. The game control is resumed. Thus, after confirming whether or not there is a power outage in the process of S10, it is confirmed again whether or not a power outage is occurring in the process of S14, so that an erroneous power outage signal 51 due to noise or the like is instantly eliminated. In this case, the game control can be resumed promptly. Note that the number of times that the power failure signal 51 is confirmed in the process of S14 is not necessarily limited to one. If there is sufficient time to perform the backup process executed in the process of S16 after the power failure occurs and before the control system drive voltage decreases and becomes uncontrollable, the number of confirmations may be increased. A more accurate determination can be made by determining whether or not there is a power outage based on many confirmations.

S14の処理において、停電信号51がハイでなければ(S14:No)、停電の状態が継続しているので、割込を禁止し(S15)、停電解消後の復帰処理(S6,S7)に備えて図4に示すバックアップ処理(S16)を実行する。ここで、図4のフローチャートを参照してバックアップ処理について説明する。   In the process of S14, if the power failure signal 51 is not high (S14: No), the power failure state continues, so interrupts are prohibited (S15) and the recovery process after the power failure is resolved (S6, S7). The backup process (S16) shown in FIG. 4 is executed. Here, the backup process will be described with reference to the flowchart of FIG.

図4は、停電の発生等によるパチンコ機Pの電源断時に、主制御基板C及び払出制御基板Hでそれぞれ別々に実行されるバックアップ処理のフローチャートである。このバックアップ処理により、停電の発生等による電源断時の主制御基板C及び払出制御基板Hの状態がバックアップエリア13c,33cに記憶される。なお、払出制御基板Hで行われるバックアップ処理は、主制御基板Cで行われるバックアップ処理(S16)と完全に同一ではないものの、フローチャートとしては同一であるので同一の番号を付して説明する。   FIG. 4 is a flowchart of backup processing executed separately on the main control board C and the payout control board H when the power of the pachinko machine P is cut off due to the occurrence of a power failure or the like. By this backup processing, the states of the main control board C and the payout control board H when the power is cut off due to the occurrence of a power failure or the like are stored in the backup areas 13c and 33c. Note that the backup process performed on the payout control board H is not completely the same as the backup process (S16) performed on the main control board C, but is the same as the flowchart and will be described with the same numbers.

バックアップ処理(S16)では、まず、各レジスタおよびI/O等の値をスタックエリアへ書き込み(S51)、次に、スタックポインタの値をバックアップエリア13c,33cへ書き込んで退避する(S52)。更に、停電発生情報をバックアップエリア13c,33cへ書き込んで(S53)、停電の発生等による電源断時の状態を記憶する。その後、その他停電処理を実行して(S54)、バックアップ処理を終了する。   In the backup process (S16), first, the values of each register and I / O are written to the stack area (S51), and then the values of the stack pointer are written to the backup areas 13c and 33c and saved (S52). Further, the power failure occurrence information is written in the backup areas 13c and 33c (S53), and the state at the time of power failure due to the occurrence of the power failure is stored. Thereafter, other power failure processing is executed (S54), and the backup processing is terminated.

図3のフローチャートに戻って説明する。S17からの処理では、停電信号51がハイであるか否かを確認し(S17)、停電信号51がハイでなければ(S17:No)、ウェイト処理を実行した後に(S18)、処理をS17へ戻して再度停電信号51の確認を行う(S17)。S17及びS18の処理は、駆動電圧が5ボルト未満となって制御が不能となるか、又は、停電が解消するまで繰り返し実行される。   Returning to the flowchart of FIG. In the processing from S17, it is confirmed whether or not the power failure signal 51 is high (S17). If the power failure signal 51 is not high (S17: No), the wait processing is executed (S18), and then the processing is performed in S17. Then, the power failure signal 51 is confirmed again (S17). The processes of S17 and S18 are repeatedly executed until the drive voltage becomes less than 5 volts and control becomes impossible or the power failure is resolved.

S17の処理において、停電信号51がハイであれば(S17:Yes)、停電が解消したということなので、バックアップエリア13cからスタックポインタの値を読み出して、S16のバックアップ処理を実行する前の状態に戻し(S19)、バックアップエリア13cに書き込まれた停電前の遊技状態に関する遊技情報をクリアする(S20)。更に、割込を許可状態にして(S21)、処理をS11へ移行し、停電前の遊技状態から遊技の制御を続行する。   In the process of S17, if the power failure signal 51 is high (S17: Yes), it means that the power failure has been resolved, so the value of the stack pointer is read from the backup area 13c and the state before executing the backup process of S16. Return (S19), the game information regarding the game state before the power failure written in the backup area 13c is cleared (S20). Furthermore, the interruption is permitted (S21), the process proceeds to S11, and the game control is continued from the game state before the power failure.

ここで、従来のパチンコ機は、停電処理の途中で停電が解消するような瞬時の停電や、ノイズ等による誤った信号入力に基づいた停電等を検出した場合にバックアップ処理が行われると、駆動電圧がダウンする前に電源断の待機状態となってしまい、一旦電源を断してバックアップされたデータを復帰させる処理をしなければ停電前の遊技状態に復帰させることができなかった。   Here, the conventional pachinko machine is driven when backup processing is performed when an instantaneous power outage that eliminates the power outage during the power outage processing or a power outage based on erroneous signal input due to noise or the like is detected. Before the voltage went down, the power-off standby state was entered, and it was not possible to restore the gaming state before the power failure unless the power was cut off and the backed up data was restored.

これに対し、本実施例のパチンコ機Pは、主制御基板Cのメイン処理では、入出力ポート15に入力される停電信号51がハイであって停電の発生が確認された後、停電が解消したか否かを確認する。停電が解消したと判断された場合には、遊技の制御が行われる各処理(S11)へ処理を移行して遊技の制御が再開される。よって、1回の停電信号51の入力に基づいて停電の発生と判断してバックアップ処理を実行する場合に比べて、誤った停電信号51の入力による停電や瞬時に電源断が解消する短期の停電に対して遊技の制御を速やかに再開させることができ、ノイズに強い制御を行うことができる。また、バックアップ処理(S16)によってバックアップエリア13cへ遊技情報が書き込まれた後にも、停電が解消したか否かの確認が行われるので、遊技情報をバックアップエリア13cへ優先して退避させることができると共に、その退避後に停電が解消した場合には遊技の制御を確実に再開させることができる。   On the other hand, in the pachinko machine P of this embodiment, in the main process of the main control board C, the power failure is resolved after the power failure signal 51 input to the input / output port 15 is high and the occurrence of the power failure is confirmed. Confirm whether or not. If it is determined that the power failure has been resolved, the process is transferred to each process (S11) in which the game control is performed, and the game control is resumed. Therefore, compared to the case where a power failure occurs based on the input of one power failure signal 51 and backup processing is executed, a power failure due to an erroneous power failure signal 51 input or a short-time power failure that instantly eliminates power failure Therefore, the game control can be resumed quickly, and control resistant to noise can be performed. Further, even after the game information is written in the backup area 13c by the backup process (S16), it is confirmed whether or not the power failure has been resolved, so that the game information can be preferentially saved to the backup area 13c. At the same time, when the power failure is resolved after the retreat, the game control can be reliably resumed.

更に、S10の処理において入出力ポート15に入力される停電信号51が確認され、その確認結果に基づいてバックアップ処理(S16)等へ処理が移行するので、各処理(S11)の実行途中でバックアップ処理(S16)が割り込まれることがない。従来のパチンコ機では、割込の禁止設定が不能な割込処理でバックアップ処理を実行していたが、停電発生の時期は特定できないのでバックアップ処理が割り込んで実行されていた。このため、バックアップ処理がいつ実行されても支障がないように遊技の制御を行うための各処理やバックアップ処理等をプログラムする必要があり、プログラムが煩雑になって大容量化していた。しかし、パチンコ機Pによれば、停電中に停電信号51が入出力ポート15へ継続して入力されるので、メイン処理の一部として予め定めた処理(S10)で停電が発生したか否かを確認し、停電の発生時にはバックアップ処理(S16)等へ処理を移行することができる。よって、バックアップ処理(S16)の実行時期を特定してプログラムを簡略化することができると共にプログラムの小容量化を図ることができる。   Further, the power failure signal 51 input to the input / output port 15 is confirmed in the process of S10, and the process proceeds to the backup process (S16) based on the confirmation result. Therefore, the backup is performed during the execution of each process (S11). The process (S16) is not interrupted. In the conventional pachinko machine, the backup process is executed by an interrupt process in which the prohibition setting of the interrupt is impossible. However, the backup process is interrupted and executed because the timing of the occurrence of the power failure cannot be specified. Therefore, it is necessary to program each process for controlling the game and the backup process so that there is no problem when the backup process is executed, and the program becomes complicated and the capacity is increased. However, according to the pachinko machine P, since the power failure signal 51 is continuously input to the input / output port 15 during a power failure, whether or not a power failure has occurred in a predetermined process (S10) as part of the main process. If a power failure occurs, the process can be shifted to the backup process (S16). Therefore, it is possible to simplify the program by specifying the execution time of the backup process (S16) and to reduce the capacity of the program.

図5は、主制御基板Cの各処理(図3、S11参照)の中で実行される賞球処理のフローチャートである。賞球処理は、入賞口2や第1種始動口4或いは特定入賞口5へ入賞した球を検出する入賞検出処理(S30)と、賞球コマンドを払出制御基板Hへ送信する賞球コマンド送信処理(S40)との2つの処理によって構成されている。   FIG. 5 is a flowchart of the prize ball process executed in each process of the main control board C (see S11 in FIG. 3). The winning ball process includes a winning detection process (S30) for detecting a winning ball in the winning slot 2, the first type starting port 4 or the specific winning slot 5, and a winning ball command transmission for transmitting a winning ball command to the payout control board H. The process is composed of two processes (S40).

入賞検出処理(S30)では、まず、いずれかの普通入賞スイッチ17又は第1種始動口スイッチ18により、球が検出された否かを確認する(S31)。いずれかのスイッチ17,18によって球が検出された場合には(S31:Yes)、5個の賞球を払い出すために、賞球ポインタ13bの値番目の賞球バッファ13aへ「5」を書き込み(S32)、賞球ポインタ13bの値を「1」加算する(S33)。一方、いずれのスイッチ17,18によっても球が検出されていない場合には(S31:No)、S32およびS33の処理をスキップして、処理をS34へ移行する。   In the winning detection process (S30), first, it is confirmed whether or not a ball is detected by any of the normal winning switch 17 or the first type start port switch 18 (S31). When a ball is detected by any of the switches 17 and 18 (S31: Yes), in order to pay out five prize balls, “5” is given to the value-th prize ball buffer 13a of the prize ball pointer 13b. Write (S32) and add "1" to the value of the prize ball pointer 13b (S33). On the other hand, when a sphere is not detected by any of the switches 17 and 18 (S31: No), the process of S32 and S33 is skipped, and the process proceeds to S34.

S34の処理では、Vカウントスイッチ19又は10カウントスイッチ20により球が検出された否かを確認する(S34)。いずれかのスイッチ19,20によって球が検出された場合には(S34:Yes)、15個の賞球を払い出すために、賞球ポインタ13bの値番目の賞球バッファ13aへ「15」を書き込み(S35)、賞球ポインタ13bの値を「1」加算する(S36)。一方、いずれのスイッチ19,20によっても球が検出されていない場合には(S34:No)、S35およびS36の処理をスキップして、入賞検出処理(S30)を終了し、処理をS40の賞球コマンド送信処理へ移行する。   In the process of S34, it is confirmed whether or not a sphere is detected by the V count switch 19 or the 10 count switch 20 (S34). When a ball is detected by any of the switches 19 and 20 (S34: Yes), “15” is set to the value-th prize ball buffer 13a of the prize ball pointer 13b in order to pay out 15 prize balls. Write (S35), and add "1" to the value of the prize ball pointer 13b (S36). On the other hand, if no ball is detected by any of the switches 19 and 20 (S34: No), the process of S35 and S36 is skipped, the winning detection process (S30) is terminated, and the process is awarded in S40. The process proceeds to the sphere command transmission process.

賞球コマンド送信処理(S40)では、まず、賞球ポインタ13bの値が「0」であるか否かを調べる(S41)。賞球ポインタ13bの値が「0」でなければ(S41:No)、払い出すべき賞球数のデータが賞球バッファ13aに記憶されているということなので、0番目の賞球バッファ13aの値を賞球コマンドの2バイト目のデータとしてセットし、その賞球コマンドを払出制御基板Hへ送信する(S42)。賞球コマンドの送信後は、1番目以降の賞球バッファ13aの値を小さいアドレス側へ順に1バイトずつシフトして(S43)、賞球バッファ13aの値を更新すると共に、送信した0番目の賞球バッファ13aの値を消去し、更に、賞球ポインタ13bの値を「1」減算する(S44)。一方、S41の処理において、賞球ポインタ13bの値が「0」であれば(S41:Yes)、払い出すべき賞球数のデータは賞球バッファ13aに記憶されていないので、S42〜S44の各処理をスキップして、賞球コマンド送信処理(S40)を終了する。これにより、図5の賞球処理が終了する。   In the prize ball command transmission process (S40), it is first checked whether or not the value of the prize ball pointer 13b is "0" (S41). If the value of the prize ball pointer 13b is not “0” (S41: No), it means that the prize ball data to be paid out is stored in the prize ball buffer 13a, and therefore the value of the 0th prize ball buffer 13a. Is set as the second byte data of the prize ball command, and the prize ball command is transmitted to the payout control board H (S42). After the prize ball command is transmitted, the value of the first and subsequent prize ball buffers 13a is shifted one byte at a time to the smaller address side (S43), the value of the prize ball buffer 13a is updated, and the transmitted zeroth The value of the prize ball buffer 13a is erased, and the value of the prize ball pointer 13b is subtracted by “1” (S44). On the other hand, if the value of the prize ball pointer 13b is “0” in the process of S41 (S41: Yes), the data of the number of prize balls to be paid out is not stored in the prize ball buffer 13a. Each process is skipped, and the prize ball command transmission process (S40) is terminated. Thereby, the prize ball processing of FIG. 5 ends.

次に、図6から図8を参照して、払出制御基板Hで行われる各処理について説明する。図6は、払出制御基板Hの割込処理で実行されるコマンド受信処理のフローチャートである。主制御基板Cから送信されたコマンドを払出制御基板Hが受信すると、その度に割込が発生し、このコマンド受信処理が実行される。なお、このコマンド受信処理を実行する割込は、割込の禁止設定ができないノンマスカブル割込ではなく、割込の禁止設定が可能な割込である。   Next, each process performed on the payout control board H will be described with reference to FIGS. FIG. 6 is a flowchart of command reception processing executed in the interruption processing of the payout control board H. When the payout control board H receives a command transmitted from the main control board C, an interrupt is generated each time, and this command reception process is executed. Note that the interrupt for executing this command reception processing is not a non-maskable interrupt that cannot be set for interrupt prohibition, but an interrupt that can be set for interrupt prohibition.

コマンド受信処理では、まず、受信したコマンドが初期化コマンドであるか否かを判断する(S61)。そのコマンドが初期化コマンドであれば(S61:Yes)、その初期化コマンドの受信を記憶するべく、初期化フラグ33bをオンして(S62)、このコマンド受信処理を終了する。一方、受信したコマンドが初期化コマンドでなければ(S61:No)、そのコマンドが賞球コマンドであるか否かを判断する(S63)。受信したコマンドが賞球コマンドであれば(S63:Yes)、その賞球コマンドの2バイト目のデータとして指示される賞球数を残賞球数カウンタ33aへ加算し(S64)、このコマンド受信処理を終了する。一方、受信したコマンドが賞球コマンドでもない場合には(S63:No)、受信したコマンドに応じた処理を実行して(S65)、このコマンド受信処理を終了する。   In the command reception process, first, it is determined whether or not the received command is an initialization command (S61). If the command is an initialization command (S61: Yes), the initialization flag 33b is turned on to store the reception of the initialization command (S62), and the command reception process is terminated. On the other hand, if the received command is not an initialization command (S61: No), it is determined whether or not the command is a prize ball command (S63). If the received command is a prize ball command (S63: Yes), the number of prize balls designated as the second byte data of the prize ball command is added to the remaining prize ball number counter 33a (S64). The process ends. On the other hand, if the received command is not a prize ball command (S63: No), a process corresponding to the received command is executed (S65), and the command receiving process is terminated.

図7は、パチンコ機Pの払出制御基板Hにおいて実行されるメイン処理のフローチャートである。払出制御基板Hのメイン処理では、まず、割込を禁止する(S71)。次に、スタックポインタを設定し(S72)、クリアスイッチ50cがオンされているか否かを確認する(S73)。クリアスイッチ50cがオンされていなければ(S73:No)、バックアップが有効であるか否かを確認する(S74)。この確認は、RAM33の所定のエリアに書き込まれたキーワードが正しく記憶されているか否かにより判断する。キーワードが正しく記憶されていればバックアップは有効であり、逆に、キーワードが正しくなければバックアップデータは破壊されているので、そのバックアップは有効ではない。バックアップが有効であれば(S74:Yes)、処理をS76へ移行して、払出制御基板Hの各状態を電源断前の状態に復帰させる。一方、バックアップが有効でなかったり(S74:No)、或いはクリアスイッチ50cがオンされていれば(S73:Yes)、RAMクリア及び初期化処理を実行して(S75)、RAM33及びI/O等の各値を初期化し、処理をS78へ移行する。なお、S75の初期化処理においてはタイマ割込の設定も行われる。   FIG. 7 is a flowchart of a main process executed on the payout control board H of the pachinko machine P. In the main process of the payout control board H, interrupts are first prohibited (S71). Next, a stack pointer is set (S72), and it is confirmed whether or not the clear switch 50c is turned on (S73). If the clear switch 50c is not turned on (S73: No), it is confirmed whether the backup is valid (S74). This confirmation is determined by whether or not the keyword written in the predetermined area of the RAM 33 is correctly stored. If the keyword is stored correctly, the backup is valid. On the other hand, if the keyword is not correct, the backup data is destroyed, so the backup is not valid. If the backup is valid (S74: Yes), the process proceeds to S76, and each state of the payout control board H is returned to the state before the power-off. On the other hand, if the backup is not valid (S74: No) or the clear switch 50c is turned on (S73: Yes), RAM clear and initialization processing is executed (S75), and the RAM 33, I / O, etc. Each value is initialized, and the process proceeds to S78. In the initialization process of S75, a timer interrupt is also set.

S76からの復電処理では、まず、バックアップエリア33cからスタックポインタの値を読み出して、これをスタックポインタへ書き込み、電源断前(停電前)の状態に戻す(S76)。次に、バックアップエリア33cへ退避した各レジスタやI/O等のデータをそのバックアップエリア33cから読み出して、これら各データを元のレジスタやI/O等へ書き込み(S77)、処理をS78へ移行する。この結果、払出制御基板Hにおける遊技の制御が電源断前の状態に復帰される。   In the power recovery process from S76, first, the value of the stack pointer is read from the backup area 33c, and this value is written to the stack pointer to return to the state before the power interruption (before power failure) (S76). Next, each register and I / O data saved in the backup area 33c is read from the backup area 33c, and each data is written to the original register and I / O (S77), and the process proceeds to S78. To do. As a result, the game control on the payout control board H is restored to the state before the power is turned off.

S78からの処理では、割込を許可状態にして(S78)、前述した図6のコマンド受信処理を実行可能とし、初期化フラグ33bがオンされたか否かを確認する(S79)。初期化フラグ33bがオンされていなければ(S79:No)、主制御基板Cの立ち上げ処理が終了した場合に送信される初期化コマンドを受信していないということなので、S79の処理を繰り返し実行して待機する。S79の処理において初期化フラグ33bがオンされると(S79:Yes)、主制御基板Cの立ち上げ処理が終了するので、初期化フラグ33bをオフして(S80)、処理をS81へ移行する。   In the process from S78, the interrupt is permitted (S78), the above-described command reception process of FIG. 6 is made executable, and it is confirmed whether or not the initialization flag 33b is turned on (S79). If the initialization flag 33b is not turned on (S79: No), it means that the initialization command transmitted when the startup process of the main control board C is completed is not received, so the process of S79 is repeatedly executed. And wait. When the initialization flag 33b is turned on in the process of S79 (S79: Yes), the startup process of the main control board C is completed, so the initialization flag 33b is turned off (S80), and the process proceeds to S81. .

S81の処理では、停電信号51がハイであるか否かを確認し(S81)、ハイであれば(S81:Yes)、未だ停電は発生していないので、パチンコ機Pの遊技の制御を行う各処理を実行する(S82)。後述する図8の賞球払出処理をはじめとする払出制御基板Hの制御は、割込処理を除いて、この各処理(S82)の中で実行される。S82の処理の後には、前回のS81の処理の実行からの経過時間を確認する(S83)。確認の結果、前回のS81の処理の開始から所定時間(本実施例においては2ms)経過していなければ(S83:No)、処理の移行を待機して再度経過時間を確認する。前回のS81の処理の開始から2ms経過すると(S83:Yes)、処理をS81へ移行する。   In the process of S81, it is confirmed whether or not the power failure signal 51 is high (S81). If the power failure signal 51 is high (S81: Yes), since the power failure has not yet occurred, the game of the pachinko machine P is controlled. Each process is executed (S82). Control of the payout control board H including a prize ball payout process of FIG. 8 to be described later is executed in each process (S82) except for the interrupt process. After the process of S82, the elapsed time from the previous execution of the process of S81 is confirmed (S83). As a result of the confirmation, if the predetermined time (2 ms in the present embodiment) has not elapsed since the start of the previous processing of S81 (S83: No), the elapsed time is confirmed again after waiting for the transition of the processing. When 2 ms elapses from the start of the previous process of S81 (S83: Yes), the process proceeds to S81.

一方、S81の処理において、停電信号51がハイでなければ(S81:No)、停電の発生等により電源が断された可能性がある。この場合には、所定時間をウェイトするウェイト処理を実行し(S84)、その後、停電の発生か、それともノイズ等による誤った停電信号51の入力であるかを再確認するために停電信号51がハイであるか否かを再度確認する(S85)。なお、S84のウェイト処理は、ノイズによる誤った停電信号51が入力された場合を考慮してノイズの影響を取り除くように所定時間処理を待機させるものである。   On the other hand, if the power failure signal 51 is not high in the process of S81 (S81: No), the power may have been cut off due to the occurrence of a power failure or the like. In this case, a wait process for waiting for a predetermined time is executed (S84), and then a power failure signal 51 is generated in order to reconfirm whether a power failure has occurred or whether an erroneous power failure signal 51 is input due to noise or the like. It is confirmed again whether it is high (S85). Note that the wait process in S84 waits for a predetermined time process so as to remove the influence of noise in consideration of the case where an erroneous power failure signal 51 due to noise is input.

S85の確認の結果、停電信号51がハイであれば(S85:Yes)、瞬時の停電やノイズ等による停電の発生であって停電が解消しているので、処理をS82の各処理へ移行して払出制御基板Hによる遊技の制御を再開する。主制御基板Cの制御と同様に、S81の処理で停電か否かを確認をした後に、再度S85の処理で停電中であるか否かを確認するので、ノイズ等による誤った停電信号51の発生や瞬時に停電が解消する場合には、速やかに遊技の制御を再開することができる。なお、S85の処理において停電信号51の確認を行う回数は、必ずしも1回だけとする必要は無い。停電が発生した後、制御系の駆動電圧が低下して制御不能となる前にS16のバックアップ処理を行うのに十分な時間がある場合には、確認回数を増やしても良い。多数回の確認に基づいて停電であるか否かを判断することで、より正確な判断を行うことができる。   If the power failure signal 51 is high as a result of the confirmation in S85 (S85: Yes), the power failure has occurred due to an instantaneous power failure or noise, and the power failure has been resolved. Therefore, the processing is shifted to each processing in S82. The game control by the payout control board H is resumed. Similar to the control of the main control board C, after confirming whether or not there is a power outage in the process of S81, it is confirmed again whether or not a power outage is occurring in the process of S85. In the event that a power outage is eliminated or instantaneously, the game control can be resumed promptly. Note that the number of times that the power failure signal 51 is confirmed in the processing of S85 is not necessarily limited to one. If there is sufficient time to perform the backup process of S16 after the power failure occurs and before the control system drive voltage drops and becomes uncontrollable, the number of confirmations may be increased. A more accurate determination can be made by determining whether or not there is a power outage based on many confirmations.

S85の処理において停電信号51がハイでなければ(S85:No)、停電の状態が継続しているので、割込を禁止し(S86)、停電解消後の復帰処理(S76,S77)に備えて図4に示すバックアップ処理(S16)を実行する。   If the power failure signal 51 is not high in the processing of S85 (S85: No), the power failure state continues, so interrupts are prohibited (S86), and the recovery processing after the power failure is resolved (S76, S77). Then, the backup process (S16) shown in FIG. 4 is executed.

S87からの処理では、停電信号51がハイであるか否かを確認し(S87)、停電信号51がハイでなければ(S87:No)、ウェイト処理を実行した後に(S88)、処理をS87へ戻して再度停電信号51の確認を行う(S87)。S87及びS88の処理は、駆動電圧が5ボルト未満となって制御が不能となるか、又は、停電が解消するまで繰り返し実行される。   In the processing from S87, it is confirmed whether or not the power failure signal 51 is high (S87). If the power failure signal 51 is not high (S87: No), the wait processing is executed (S88), and then the processing is performed in S87. Then, the power failure signal 51 is confirmed again (S87). The processes of S87 and S88 are repeatedly executed until the drive voltage becomes less than 5 volts and control becomes impossible or the power failure is eliminated.

S87の処理において、停電信号51がハイであれば(S87:Yes)、停電が解消したということなので、バックアップエリア33cからスタックポインタの値を読み出して、S16のバックアップ処理を実行する前の状態に戻し(S89)、バックアップエリア33cに書き込まれた停電前の遊技状態に関する遊技情報をクリアする(S90)。更に、割込を許可状態にして(S91)、処理をS82へ移行し、停電前の遊技状態から遊技の制御を続行する。   In the process of S87, if the power failure signal 51 is high (S87: Yes), it means that the power failure has been resolved, so the value of the stack pointer is read from the backup area 33c and the state before executing the backup process of S16. Return (S89), the game information regarding the game state before the power failure written in the backup area 33c is cleared (S90). Furthermore, the interruption is permitted (S91), the process proceeds to S82, and the game control is continued from the game state before the power failure.

このように、払出制御基板Hのメイン処理では、停電信号51がハイであることが確認された後、再度停電が解消したか否かを確認するので、1回の停電信号51の入力に基づいて停電の発生と判断してバックアップ処理を実行する場合に比べて、誤った停電信号51の入力による停電や瞬時に電源断が解消する短期の停電に対して遊技の制御を速やかに再開させることができる。また、バックアップ処理(S16)によってバックアップエリア33cへ遊技情報が書き込まれた後にも、停電が解消したか否かの確認が行われるので、遊技情報をバックアップエリア33cへ優先して退避させることができると共に、その退避後に停電が解消した場合には遊技の制御を確実に再開させることができる。   Thus, in the main process of the payout control board H, after confirming that the power failure signal 51 is high, it is confirmed again whether or not the power failure has been resolved. Therefore, based on a single power failure signal 51 input. Compared to the case where a power failure occurs and backup processing is executed, the game control is promptly resumed for a power failure caused by an incorrect power failure signal 51 input or a short-term power failure that instantly eliminates power failure. Can do. Further, even after the game information is written in the backup area 33c by the backup process (S16), it is confirmed whether or not the power failure has been resolved, so that the game information can be preferentially saved to the backup area 33c. At the same time, when the power failure is resolved after the retreat, the game control can be reliably resumed.

図8は、払出制御基板Hの各処理(S82)の中で実行される賞球払出処理のフローチャートである。この賞球払出処理により、賞球の払い出しと、払い出された賞球の検出とが行われる。賞球払出処理では、まず、残賞球数カウンタ33aの値を調べ(S101)、その値が「0」でなければ(S101:No)、未払いの賞球が残っているので、賞球払出用モータ21を駆動して賞球を1個払い出す(S102)。一方、残賞球数カウンタ33aの値が「0」であれば(S101:Yes)、未払いの賞球は残っていないので、S102の賞球の払い出し処理をスキップする。   FIG. 8 is a flowchart of the winning ball payout process executed in each process (S82) of the payout control board H. With the prize ball payout process, the prize balls are paid out and the prize balls that have been paid out are detected. In the prize ball payout process, first, the value of the remaining prize ball number counter 33a is checked (S101). If the value is not "0" (S101: No), an unpaid prize ball remains, so a prize ball is paid out. The motor 21 is driven to pay out one prize ball (S102). On the other hand, if the value of the remaining prize ball counter 33a is “0” (S101: Yes), there is no unpaid prize ball remaining, so the prize ball payout process in S102 is skipped.

S103の処理では、賞球カウントスイッチ22がオンされたか否かを確認する(S103)。確認の結果、賞球カウントスイッチ22のオンが検出されれば(S103:Yes)、賞球の払い出しが行われたということである。よって、かかる場合には、残賞球数カウンタ33aの値を確認し(S104)、その値が「0」でなければ(S104:No)、払い出された賞球に対応して残賞球数カウンタ33aの値を「1」減算し(S105)、この賞球払出処理を終了する。一方、賞球カウントスイッチ22のオンが検出されない場合や(S103:No)、賞球カウントスイッチ22のオンが検出されても(S103:Yes)、残賞球数カウンタ33aの値が「0」であれば(S104:Yes)、S105の処理をスキップして、この賞球払出処理を終了する。   In the process of S103, it is confirmed whether or not the prize ball count switch 22 is turned on (S103). As a result of the confirmation, if it is detected that the prize ball count switch 22 is turned on (S103: Yes), it means that the prize ball has been paid out. Therefore, in such a case, the value of the remaining prize ball counter 33a is confirmed (S104), and if the value is not “0” (S104: No), the remaining prize ball corresponding to the paid-out prize ball. The value of the number counter 33a is decremented by “1” (S105), and this prize ball payout process is terminated. On the other hand, if the prize ball count switch 22 is not turned on (S103: No) or the prize ball count switch 22 is turned on (S103: Yes), the value of the remaining prize ball counter 33a is “0”. If so (S104: Yes), the process of S105 is skipped and this prize ball payout process is terminated.

ここで、従来、停電発生時に割込処理を使用してバックアップ処理を実行するパチンコ機があるが、この種のパチンコ機においては、カウンタの値の更新中にバックアップ処理が実行されることがある。このため、更新途中のデータを退避させることを想定したバックアップ処理のプログラムを作成する必要があり、又、処理の進行状況などもバックアップしなければならず、プログラムが複雑化すると共にバックアップする記憶容量が大型化する要因となっていた。しかし、本実施例のパチンコ機Pによれば、停電が発生した場合には、図7に示すメイン処理の中で実行されるバックアップ処理(S16)によってデータのバックアップが行われる。このため、残賞球数カウンタ33a等の更新途中でバックアップ処理が行われることがなく、更新を終えた残賞球数カウンタ33aの値等をバックアップエリア33cに退避させれば良い。よって、バックアップ処理(S16)及び復帰処理(S76,S77)などのプログラムを簡略化することができると共にバックアップに必要な記憶容量を小さくすることができる。   Here, conventionally, there is a pachinko machine that executes a backup process by using an interrupt process when a power failure occurs. In this type of pachinko machine, the backup process may be executed while the counter value is being updated. . For this reason, it is necessary to create a backup processing program that assumes that data being updated is saved, and the progress of the processing must be backed up. Was the cause of the increase in size. However, according to the pachinko machine P of the present embodiment, when a power failure occurs, data is backed up by the backup process (S16) executed in the main process shown in FIG. For this reason, backup processing is not performed during the update of the remaining prize ball number counter 33a and the like, and the value of the remaining ball number counter 33a that has been updated may be saved in the backup area 33c. Therefore, programs such as the backup process (S16) and the return process (S76, S77) can be simplified and the storage capacity required for backup can be reduced.

次に、図9から図12を参照して、第2実施例について説明する。前記した第1実施例では、電源基板50の停電監視回路50bから出力される停電信号51を主制御基板C及び払出制御基板Hの入出力ポート15,35にそれぞれ入力し、各制御基板C,Hで行われるメイン処理で停電の発生を検出していた。   Next, a second embodiment will be described with reference to FIGS. In the first embodiment described above, the power failure signal 51 output from the power failure monitoring circuit 50b of the power supply board 50 is input to the input / output ports 15 and 35 of the main control board C and the payout control board H, respectively. The occurrence of a power failure was detected in the main processing performed at H.

これに対し、第2実施例では、主制御基板C及び払出制御基板HのMPU61,71に停電フラグ63d,73dをそれぞれ設けて、停電の発生時には、電源基板80の停電監視回路80bから停電発生信号81を各MPU61,71のNMI(Non Maskable
Interrupt)端子(ノンマスカブル割込端子)に入力し、NMI割込処理によって停電フラグ63d,73dをオンする(図10参照)。停電フラグ63d,73dの状態は、各制御基板C,Hで行われるメイン処理(図11及び図12参照)において定期的に確認し、停電フラグ63d,73dがオンされて停電の発生が検出された場合には、入出力ポート15,35に入力される停電信号51を確認して停電の発生であるか否かを判定する。以下、第2実施例の説明にあたり、前記した第1実施例と同一の部分には同一の符号を付してその説明を省略する。
In contrast, in the second embodiment, power failure flags 63d and 73d are provided in the MPUs 61 and 71 of the main control board C and the payout control board H, respectively, and a power failure occurs from the power failure monitoring circuit 80b of the power supply board 80 when a power failure occurs. The signal 81 is sent to the NMI (Non Maskable) of each MPU 61, 71.
Interrupt) terminal (non-maskable interrupt terminal), and the power failure flags 63d and 73d are turned on by NMI interrupt processing (see FIG. 10). The states of the power failure flags 63d and 73d are periodically checked in the main processing (see FIGS. 11 and 12) performed on the control boards C and H, and the power failure flags 63d and 73d are turned on to detect the occurrence of a power failure. If a power failure occurs, the power failure signal 51 input to the input / output ports 15 and 35 is confirmed to determine whether or not a power failure has occurred. Hereinafter, in the description of the second embodiment, the same parts as those in the first embodiment are denoted by the same reference numerals, and the description thereof is omitted.

図9は、第2実施例におけるパチンコ機Pの電気的構成を示したブロック図である。主制御基板CのMPU61には、そのRAM63に停電フラグ63dが設けられている。停電フラグ63dは、停電等の発生による電源断を報せるためのフラグである。停電等が発生して電源が断され、電源基板80の停電監視回路80bから出力される停電発生信号81がMPU61のNMI端子へ入力されると、MPU61によって図10(a)に示すNMI割込処理が実行され、停電フラグ63dがオンされる。停電フラグ63dがオンされると、主制御基板Cのメイン処理で停電の発生が確認され(図11参照)、遊技の状態を示す各データの退避などを行うバックアップ処理(図11、S16参照)等へ処理が移行する。   FIG. 9 is a block diagram showing an electrical configuration of the pachinko machine P in the second embodiment. The MPU 61 of the main control board C is provided with a power failure flag 63 d in its RAM 63. The power failure flag 63d is a flag for reporting a power failure due to the occurrence of a power failure or the like. When a power failure occurs, the power is cut off, and a power failure occurrence signal 81 output from the power failure monitoring circuit 80b of the power supply board 80 is input to the NMI terminal of the MPU 61, the MPI 61 causes the NMI interrupt shown in FIG. The process is executed and the power failure flag 63d is turned on. When the power failure flag 63d is turned on, the occurrence of a power failure is confirmed in the main processing of the main control board C (see FIG. 11), and backup processing for saving each data indicating the game state (see FIG. 11, S16). The processing shifts to etc.

払出制御基板HのMPU71には、前述した主制御基板CのMPU61と同様に、そのRAM73に停電フラグ73dが設けられている。停電フラグ73dも、停電等の発生による電源断を報せるためのフラグであり、電源基板80の停電監視回路80bから出力される停電発生信号81がMPU71のNMI端子へ入力されると、MPU71によって、図10(b)に示すNMI割込処理が実行され、停電フラグ73dがオンされる。停電フラグ73dがオンされると、払出制御基板Hのメイン処理で停電の発生が確認され(図12参照)、遊技の状態を示す各データの退避などを行うバックアップ処理(図12、S16参照)等へ処理が移行する。   Similarly to the MPU 61 of the main control board C described above, the MPU 71 of the payout control board H is provided with a power failure flag 73d in its RAM 73. The power failure flag 73d is also a flag for reporting a power failure due to the occurrence of a power failure or the like. When the power failure occurrence signal 81 output from the power failure monitoring circuit 80b of the power supply board 80 is input to the NMI terminal of the MPU 71, the MPU 71 The NMI interruption process shown in FIG. 10B is executed, and the power failure flag 73d is turned on. When the power failure flag 73d is turned on, the occurrence of a power failure is confirmed in the main processing of the payout control board H (see FIG. 12), and backup processing for saving each data indicating the game state (see FIG. 12, S16). The processing shifts to etc.

電源基板80は、第1実施例の電源基板50と同様に、電源部50aと、停電監視回路80bと、クリアスイッチ50cとを備えている。電源部50a及びクリアスイッチ50cの構成は第1実施例の電源基板50と同一であり、停電監視回路80bの構成が第1実施例の停電監視回路50bとは異なっている。停電監視回路80bは、主制御基板C及び払出制御基板Hに停電信号51を出力すると共に、各制御基板C,HのMPU61,71のNMI端子に停電発生信号81を出力するものである。停電監視回路80bから出力される停電発生信号81が各MPU61,71に入力されると、図10(a)及び図10(b)に示すNMI割込処理が実行され、各MPU61,71のRAM63,73にそれぞれ設けられた停電フラグ63d,73dがオンとなる。   Similar to the power supply board 50 of the first embodiment, the power supply board 80 includes a power supply unit 50a, a power failure monitoring circuit 80b, and a clear switch 50c. The configuration of the power supply unit 50a and the clear switch 50c is the same as that of the power supply board 50 of the first embodiment, and the configuration of the power failure monitoring circuit 80b is different from that of the power failure monitoring circuit 50b of the first embodiment. The power failure monitoring circuit 80b outputs a power failure signal 51 to the main control board C and the payout control board H, and outputs a power failure occurrence signal 81 to the NMI terminals of the MPUs 61 and 71 of the control boards C and H. When the power failure occurrence signal 81 output from the power failure monitoring circuit 80b is input to each of the MPUs 61 and 71, the NMI interrupt processing shown in FIGS. 10A and 10B is executed, and the RAM 63 of each MPU 61 and 71 is executed. , 73 are turned on.

図10(a)は、停電の発生により停電監視回路80bから停電発生信号81が出力された場合に主制御基板Cで、図10(b)は払出制御基板Hで、それぞれ別々に実行されるNMI割込処理のフローチャートである。   10A is executed by the main control board C when a power failure occurrence signal 81 is output from the power failure monitoring circuit 80b due to the occurrence of a power failure, and FIG. 10B is executed separately by the payout control board H. It is a flowchart of a NMI interruption process.

まず、主制御基板Cで実行される図10(a)のNMI割込処理では、NMI割込発生時に、後述する図11のS122又はS14からS21に示す主制御基板Cの停電時処理を実行中であるか否かを確認する(S111)。停電時処理を実行中でなければ(S111:No)、停電フラグ63dをオンする(S112)。逆に、停電時処理を実行中であれば(S111:Yes)、S112の処理をスキップして、このNMI割込処理を終了する。なお、NMI割込発生時における実行中の処理の確認は、NMI割込発生時にスタックに退避されたアドレスをチェックすることにより行われる。   First, in the NMI interrupt process of FIG. 10A executed by the main control board C, when an NMI interrupt occurs, the main control board C process shown in S122 or S14 to S21 of FIG. It is confirmed whether it is in the middle (S111). If the power failure process is not being executed (S111: No), the power failure flag 63d is turned on (S112). Conversely, if the power failure process is being executed (S111: Yes), the process of S112 is skipped and the NMI interrupt process is terminated. Note that the processing being executed when an NMI interrupt occurs is checked by checking the address saved in the stack when the NMI interrupt occurs.

同様に、払出制御基板Hで実行される図10(b)のNMI割込処理では、NMI割込発生時に、後述する図12のS132又はS85からS91に示す停電時処理を実行中であるか否かを確認する(S113)。停電時処理を実行中でなければ(S113:No)、停電フラグ33dをオンし(S114)、逆に、実行中であれば(S113:Yes)、S114の処理をスキップして、このNMI割込処理を終了する。   Similarly, in the NMI interrupt process of FIG. 10B executed by the payout control board H, is a power failure process shown in S132 or S85 to S91 of FIG. 12 described later executed when an NMI interrupt occurs? It is confirmed whether or not (S113). If the power failure process is not being executed (S113: No), the power failure flag 33d is turned on (S114). Conversely, if it is being executed (S113: Yes), the process of S114 is skipped and this NMI allocation is performed. Finish the process.

図11は、第2実施例におけるパチンコ機Pの主制御基板Cにおいて実行されるメイン処理のフローチャートである。この処理では、図3に示す第1実施例のメイン処理に対して、S121及びS122の処理の部分が変更されている。   FIG. 11 is a flowchart of a main process executed on the main control board C of the pachinko machine P in the second embodiment. In this process, the processes of S121 and S122 are changed with respect to the main process of the first embodiment shown in FIG.

このメイン処理では、S9の処理で初期化コマンドを払出制御基板Hへ送信した後、停電フラグ63dがオンされているか否かを確認する(S121)。停電フラグ63dがオンされていなければ(S121:No)、遊技の制御を行う各処理を実行する(S11)。S11の処理後、前回のS121の処理開始からの経過時間を確認し(S12)、2ms経過していなければ(S12:No)、繰り返し時間の経過を確認する。前回のS121の処理の開始から2ms経過した場合には(S12:Yes)、S121からの処理を再開する。   In this main process, after the initialization command is transmitted to the payout control board H in the process of S9, it is confirmed whether or not the power failure flag 63d is turned on (S121). If the power failure flag 63d is not turned on (S121: No), each process for controlling the game is executed (S11). After the processing of S11, the elapsed time from the start of the previous processing of S121 is confirmed (S12). If 2 ms has not elapsed (S12: No), the elapsed time is confirmed. When 2 ms has elapsed from the start of the previous processing of S121 (S12: Yes), the processing from S121 is resumed.

S121の処理において停電フラグ63dがオンされていれば(S121:Yes)、主制御基板CのMPU61のNMI端子に停電発生信号81が入力されているので、停電フラグ63dをオフして(S122)、処理をS14へ移行する。ここで、図3に示す第1実施例のメイン処理では、S14の処理を行う前にノイズの影響を除去するためのウェイト処理(S13)を実行したが、第2実施例のメイン処理では、停電発生信号81は、S11又はS12の処理の実行中に主制御基板CのMPU61に入力され、その入力があった時からS14の処理に至る迄に時間が経過しているので、S121の処理をした後にウェイト処理を設けなくてもノイズの影響を除去することができる。よって、停電の解消を確認するS14の処理を即座に実行することができ、停電解消の確認やバックアップ処理(S16)をより早く実行することができる。   If the power failure flag 63d is turned on in the processing of S121 (S121: Yes), since the power failure occurrence signal 81 is input to the NMI terminal of the MPU 61 of the main control board C, the power failure flag 63d is turned off (S122). The process proceeds to S14. Here, in the main process of the first embodiment shown in FIG. 3, the weight process (S13) for removing the influence of noise is performed before the process of S14 is performed. However, in the main process of the second embodiment, The power failure occurrence signal 81 is input to the MPU 61 of the main control board C during the execution of the process of S11 or S12, and since time has elapsed from the input to the process of S14, the process of S121 is performed. It is possible to eliminate the influence of noise without providing a wait process after the operation. Therefore, the process of S14 for confirming the cancellation of the power failure can be immediately executed, and the confirmation of the power failure cancellation and the backup process (S16) can be performed earlier.

S14からの処理では、停電信号51がハイであるか否かを確認し(S14)、停電信号51がハイであって停電の解消が確認されれば(S14:Yes)、遊技の制御を行う各処理(S11)へ処理を移行する。一方、停電の続行が確認されれば(S14:No)、バックアップ処理(S16)を実行して電源断を待機する。なお、S122及びS14からS21の処理(停電時処理)の実行中は、NMI割込処理により停電フラグ63dがオンされることはない(図10(a)参照)。   In the processing from S14, it is confirmed whether or not the power failure signal 51 is high (S14), and if the power failure signal 51 is high and the cancellation of the power failure is confirmed (S14: Yes), the game is controlled. The process proceeds to each process (S11). On the other hand, if the continuation of the power failure is confirmed (S14: No), the backup process (S16) is executed to wait for the power-off. Note that the power failure flag 63d is not turned on by the NMI interrupt processing during the processing of S122 and S14 to S21 (processing at power failure) (see FIG. 10A).

図12は、第2実施例におけるパチンコ機Pの払出制御基板Hにおいて実行されるメイン処理のフローチャートである。この処理では、図7に示す第1実施例のメイン処理に対して、S131及びS132の処理の部分が変更されている。   FIG. 12 is a flowchart of the main process executed on the payout control board H of the pachinko machine P in the second embodiment. In this process, the processing part of S131 and S132 is changed with respect to the main process of the first embodiment shown in FIG.

S80の処理で初期化フラグ33bをオフした後、停電フラグ73dがオンされているか否かを確認する(S131)。停電フラグ73dがオンされていなければ(S131:No)、払出制御基板Hにおける遊技の制御を行う各処理を実行する(S82)。S82の処理後、前回のS131の処理開始からの経過時間を確認し(S83)、2ms経過していなければ(S83:No)、繰り返し時間の経過を確認する。前回のS131の処理の開始から2ms経過した場合には(S83:Yes)、S131からの処理を再開する。   After the initialization flag 33b is turned off in the process of S80, it is confirmed whether or not the power failure flag 73d is turned on (S131). If the power failure flag 73d is not turned on (S131: No), each process for controlling the game on the payout control board H is executed (S82). After the process of S82, the elapsed time from the start of the previous process of S131 is confirmed (S83). If 2 ms has not elapsed (S83: No), the elapsed time is confirmed. When 2 ms has elapsed from the start of the previous processing of S131 (S83: Yes), the processing from S131 is resumed.

S131の処理において停電フラグ73dがオンされていれば(S131:Yes)、払出制御基板HのMPU71のNMI端子に停電発生信号81が入力されているので、停電フラグ73dをオフして(S132)、処理をS85へ移行する。ここで、主制御基板Cのメイン処理と同様に、第1実施例のメイン処理ではS85の処理を行う前にノイズの影響を除去するためのウェイト処理(S84)を実行したが、第2実施例のメイン処理では、払出制御基板HのMPU71に停電発生信号81が入力された時からS85の処理に至る迄に時間が経過しているので、S131の処理をした後にウェイト処理を設けなくてもノイズの影響を除去することができる。よって、停電の解消を確認するS85の処理を即座に実行することができ、停電解消の確認やバックアップ処理(S16)をより早く実行することができる。   If the power failure flag 73d is turned on in the process of S131 (S131: Yes), the power failure occurrence signal 81 is input to the NMI terminal of the MPU 71 of the payout control board H, so the power failure flag 73d is turned off (S132). The process proceeds to S85. Here, as in the main process of the main control board C, in the main process of the first embodiment, the weight process (S84) for removing the influence of noise is performed before the process of S85 is performed. In the main process of the example, since time has elapsed from when the power failure occurrence signal 81 is input to the MPU 71 of the payout control board H to the process of S85, the wait process is not provided after the process of S131. Even noise effects can be removed. Therefore, the process of S85 for confirming the cancellation of the power failure can be immediately executed, and the confirmation of the power failure cancellation and the backup process (S16) can be performed earlier.

S85からの処理では、停電信号51がハイであるか否かを確認し(S85)、停電信号51がハイであって停電の解消が確認されれば(S85:Yes)、遊技の制御を行う各処理(S82)へ処理を移行する。一方、停電の続行が確認されれば(S85:No)、バックアップ処理(S16)を実行して電源断を待機する。なお、S132及びS85からS91の処理(停電時処理)の実行中は、NMI割込処理により停電フラグ73dがオンされることは無い(図10(b)参照)。   In the processing from S85, it is confirmed whether or not the power failure signal 51 is high (S85), and if the power failure signal 51 is high and the cancellation of the power failure is confirmed (S85: Yes), the game is controlled. The process proceeds to each process (S82). On the other hand, if the continuation of the power failure is confirmed (S85: No), the backup process (S16) is executed to wait for the power-off. Note that during the execution of the processing from S132 and S85 to S91 (processing at power failure), the power failure flag 73d is not turned on by the NMI interrupt processing (see FIG. 10B).

以上説明したように、停電フラグ63d,73dは、各制御基板C,Hの停電時処理の実行中以外にNMI割込処理が実行された場合に限ってオンされる。即ち、停電時処理の実行中に停電発生信号81が各制御基板C,HのMPU61,71に入力されても停電フラグ63d,73dがオンされないので、停電監視回路80bからの停電発生信号81の出力が乱れてNMI割込処理が多重に発生しても、停電時処理の途中で停電フラグ63d,73dがオンされることがない。よって、停電時処理の途中で停電が解消したと判定され、遊技の制御が行われる各処理(S11,S82)に戻る際には、停電フラグ63d,73dを確実にオフの状態とすることができ、停電が解消したと判定された後に誤って停電時処理に戻ってしまうことを防止することができる。   As described above, the power failure flags 63d and 73d are turned on only when the NMI interrupt processing is executed in addition to the processing during power failure of the control boards C and H. That is, even if the power failure occurrence signal 81 is input to the MPUs 61 and 71 of the control boards C and H during the power failure processing, the power failure flags 63d and 73d are not turned on. Even if the output is disturbed and multiple NMI interrupt processes occur, the power failure flags 63d and 73d are not turned on during the power failure process. Therefore, when it is determined that the power failure has been resolved in the middle of the power failure process, and when returning to each process (S11, S82) in which the game is controlled, the power failure flags 63d and 73d must be surely turned off. It is possible to prevent returning to the power failure process by mistake after it is determined that the power failure has been resolved.

また、停電フラグ63d,73dがオフである場合には、各制御基板C,Hのメイン処理において入出力ポート15,35の停電信号51の状態をわざわざ確認する必要は無く、停電フラグ63d,73dの状態のみを確認すれば良い。停電の発生が検出された場合にのみ入出力ポート15,35に入力される停電信号51を確認すれば良く、簡易な制御で通常の処理を行うことができる。   When the power failure flags 63d and 73d are off, it is not necessary to check the state of the power failure signal 51 of the input / output ports 15 and 35 in the main processing of the control boards C and H, and the power failure flags 63d and 73d. It is only necessary to confirm the state of. Only when the occurrence of a power failure is detected, the power failure signal 51 input to the input / output ports 15 and 35 may be confirmed, and normal processing can be performed with simple control.

なお、上記実施例において、請求項1記載の主制御手段が実行する遊技制御処理手段としては、図11のS121,S11,S12の処理が該当し、主制御手段が実行する停電信号割込処理手段としては、図10(a)に示すNMI処理が該当し、主制御手段が実行する停電情報判定処理手段としては、図11のS121の処理が該当し、主制御手段が実行する停電時処理手段としては、図11のS16の処理(図4に示すバックアップ処理)が該当する。また、請求項1記載のサブ制御手段が実行する遊技制御処理手段としては、図12のS131,S82,S83の処理が該当し、サブ制御手段が実行する停電信号割込処理手段としては、図10(b)に示すNMI処理が該当し、サブ制御手段が実行する停電情報判定処理手段としては、図12のS131の処理が該当し、サブ制御手段が実行する停電時処理手段としては、図12のS16の処理(図4に示すバックアップ処理)が該当する。 In the above embodiment, the game control processing means executed by the main control means according to claim 1 corresponds to the processing of S121, S11, S12 of FIG. 11, and the power failure signal interrupt processing executed by the main control means. The means corresponds to the NMI process shown in FIG. 10A, and the power failure information determination processing means executed by the main control means corresponds to the process of S121 in FIG. 11, and the power failure process executed by the main control means. The means corresponds to the processing of S16 in FIG. 11 (backup processing shown in FIG. 4). Further, the game control processing means executed by the sub-control means according to claim 1 corresponds to the processes of S131, S82, and S83 in FIG. 12, and the power failure signal interrupt processing means executed by the sub-control means is illustrated in FIG. The power failure information determination processing means executed by the sub-control means corresponds to the NMI processing shown in FIG. 10B, and the processing of S131 of FIG. 12 corresponds to the power failure information processing means executed by the sub-control means. 12 corresponds to the process of S16 (the backup process shown in FIG. 4).

以上、実施例に基づき本発明を説明したが、本発明は上記実施例に何ら限定されるものではなく、本発明の趣旨を逸脱しない範囲内で種々の変形改良が可能であることは容易に推察できるものである。   The present invention has been described based on the embodiments. However, the present invention is not limited to the above embodiments, and various modifications can be easily made without departing from the spirit of the present invention. It can be guessed.

例えば、上記各実施例では、駆動電圧が22ボルト未満となって停電が発生した後、制御系の駆動電圧が5ボルト未満となって電源断となる前に停電が解消した場合、主制御基板C及び払出制御基板Hは、停電発生前の状態と同一の状態から遊技の制御を再開した。しかしながら、必ずしも停電発生前の状態と同一の状態にして遊技の制御を再開させる必要は無く、例えば、未払いの賞球数のみや大当たりの状態のみをバックアップさせる等、バックアップするデータを限定し、一部の状態のみを復帰させて遊技の制御を再開させても良い。バックアップの必要なデータを限定することによって、バックアップ処理等のプログラムを簡略化できると共に、バックアップをするデータの退避やバックアップされたデータの復帰をより迅速に行うことができる。   For example, in each of the above embodiments, when a power failure occurs when the drive voltage is less than 22 volts and the power failure occurs before the drive voltage of the control system becomes less than 5 volts and the power is cut off, the main control board C and the payout control board H resumed the control of the game from the same state as before the occurrence of the power failure. However, it is not always necessary to restart the game control in the same state as before the occurrence of the power outage.For example, only the number of unpaid award balls or the state of the big win is backed up. Only the state of the game unit may be restored to resume the game control. By limiting the data that needs to be backed up, it is possible to simplify a program such as a backup process, and it is possible to more quickly save the data to be backed up and restore the backed up data.

また、上記各実施例では、各制御基板C,Hのメイン処理においてバックアップ処理(S16)を実行後、電源断前に停電が解消した場合には、バックアップエリア13c,33cからスタックポインタの値を読み出して遊技の状態を復帰させ、且つ、バックアップエリア13c,33cに書き込まれた遊技情報をクリアする処理を行って遊技の制御を再開させた。しかし、必ずしもこれらの処理を設けて遊技の制御を再開させる必要はなく、電源入時に実行されるバックアップデータの復帰処理と同一の復帰処理を使用して遊技状態を復帰させても良い。つまり、停電の発生後、電源断前に停電が解消した場合には、図3、図7、図11及び図12に示す各制御基板C,Hのメイン処理を先頭から実行して、遊技状態を復帰させても良い。電源断前に停電が解消した場合と、電源断後に停電が解消した場合とで復帰処理をそれぞれ設けることなく、同一の復帰処理を使用して遊技状態を復帰させることができる。よって、従来のバックアップ処理を行うプログラムに対する変更を抑制しつつ、停電発生前の遊技状態から遊技の制御を再開させることができる。   In each of the above embodiments, when the power failure is resolved before the power is turned off after the backup process (S16) is executed in the main process of the control boards C and H, the value of the stack pointer is obtained from the backup areas 13c and 33c. The game state was read out to restore the game state, and the game information written in the backup areas 13c and 33c was cleared to resume the game control. However, it is not always necessary to resume the control of the game by providing these processes, and the game state may be restored by using the same restoration process as the backup data restoration process executed when the power is turned on. That is, when the power failure is resolved after the occurrence of the power failure and before the power supply is cut off, the main process of each control board C, H shown in FIGS. 3, 7, 11, and 12 is executed from the top, and the gaming state May be restored. The game state can be restored using the same restoration process without providing a restoration process for each of the case where the power failure is resolved before the power is turned off and the case where the power failure is resolved after the power is turned off. Therefore, it is possible to resume the control of the game from the game state before the occurrence of the power failure while suppressing the change to the program for performing the conventional backup process.

また、上記各実施例では、各制御基板C,Hのメイン処理において停電が発生したことが確認された場合には、各制御基板C,Hにおける遊技の制御を完全に停止し、停電時の処理のみを実行するように構成したが、必ずしも遊技の制御を完全停止させる必要はなく、停電時の処理中にも少しずつ遊技の制御を進行させても良い。   Also, in each of the above embodiments, when it is confirmed that a power failure has occurred in the main processing of each control board C, H, the game control on each control board C, H is completely stopped, Although only the processing is executed, it is not always necessary to completely stop the control of the game, and the control of the game may be advanced little by little during the processing at the time of power failure.

また、上記各実施例では、各制御基板C,Hのメイン処理において停電の発生が確認された後、停電信号51がハイとなって停電が解消したことが1度でも確認されれば処理を各処理(S11,S82)へ遷移させて遊技の制御を再開した。しかし、必ずしも1回の停電信号51の確認に基づいて遊技の制御を再開させる必要はなく、停電信号51を所定回数(例えば5回)連続して確認し、全ての確認結果が停電解消を示すものである場合に停電が解消したと判断しても良い。停電が解消した場合には、停電監視回路50bから各制御基板C,Hの入出力ポート15,35へハイの信号が継続して入力されるので、停電が解消したか否かを複数回の判断に基づいて判定することができ、停電解消を誤まって判定することを防止することができる。   Further, in each of the above embodiments, after the occurrence of a power failure is confirmed in the main processing of each control board C, H, the processing is performed once it is confirmed that the power failure signal 51 becomes high and the power failure has been resolved. Transition to each process (S11, S82) and the game control was resumed. However, it is not always necessary to restart the game control based on one confirmation of the power failure signal 51. The power failure signal 51 is continuously confirmed a predetermined number of times (for example, five times), and all confirmation results indicate that the power failure has been resolved. If it is, it may be determined that the power failure has been resolved. When the power failure is resolved, a high signal is continuously input from the power failure monitoring circuit 50b to the input / output ports 15 and 35 of the control boards C and H. It is possible to make a determination based on the determination, and it is possible to prevent erroneous determination of power failure cancellation.

また、上記第2実施例では、停電発生信号81が各制御基板C,Hに入力されても、図11のS121及び図12のS131の処理で停電フラグ63d,73dのオンが確認されるまでは、各制御基板C,Hのメイン処理において同一の処理を行っていた。しかし、停電フラグ63d,73dがオンされた場合には、より早くバックアップ処理(S16)を行うことができるように、他の処理を短縮するように制御しても良い。例えば、停電フラグ63d,73dがオンである場合には、時間経過を確認する図11のS12及び図12のS83の処理をスキップさせる処理を設けても良い。停電の発生後、制御系の駆動電圧が、制御を実行不能な5ボルト未満になるまでの時間は限られているが、バックアップ処理(S16)をより早く実行することで、確実にデータのバックアップを行うことができる。   Further, in the second embodiment, even if the power failure occurrence signal 81 is input to the control boards C and H, the power failure flags 63d and 73d are confirmed to be turned on in the processing of S121 of FIG. 11 and S131 of FIG. The same processing is performed in the main processing of the control boards C and H. However, when the power failure flags 63d and 73d are turned on, it may be controlled to shorten other processes so that the backup process (S16) can be performed earlier. For example, when the power failure flags 63d and 73d are on, processing for skipping the processing of S12 of FIG. 11 and S83 of FIG. After the occurrence of a power failure, the time until the drive voltage of the control system becomes less than 5 volts at which control cannot be performed is limited. However, the backup process (S16) can be executed earlier to ensure data backup. It can be performed.

本発明を上記実施例とは異なるタイプのパチンコ機等に実施しても良い。例えば、一度大当たりすると、それを含めて複数回(例えば2回、3回)大当たり状態が発生するまで、大当たり期待値が高められるようなパチンコ機(通称、2回権利物、3回権利物と称される)として実施しても良い。また、大当たり図柄が表示された後に、所定の領域に球を入賞させることを必要条件として特別遊技状態となるパチンコ機として実施しても良い。更に、パチンコ機以外にも、アレパチ、雀球、いわゆるパチンコ機とスロットマシンとが融合した遊技機などの各種遊技機として実施するようにしても良い。   You may implement this invention in the pachinko machine etc. of a different type from the said Example. For example, once a big hit, a pachinko machine (commonly known as a two-time right, a three-time right, etc.) that increases the expected value of the big hit until a big hit state occurs (for example, twice or three times). May also be implemented. Moreover, after the jackpot symbol is displayed, it may be implemented as a pachinko machine that enters a special game state under the condition that a ball is awarded in a predetermined area. Further, in addition to the pachinko machine, various game machines such as an alepacchi, a sparrow ball, a game machine in which a so-called pachinko machine and a slot machine are fused may be used.

なお、スロットマシンは、例えばコインを投入して図柄有効ラインを決定させた状態で操作レバーを操作することにより図柄が変動され、ストップボタンを操作することにより図柄が停止されて確定される周知のものである。従って、スロットマシンの基本概念としては、「複数の図柄からなる図柄列を変動表示した後に図柄を確定表示する可変表示手段を備え、始動用操作手段(例えば操作レバー)の操作に起因して図柄の変動が開始され、停止用操作手段(例えばストップボタン)の操作に起因して、或いは、所定時間経過することにより、図柄の変動が停止され、その停止時の確定図柄が特定図柄であることを必要条件として、遊技者に有利な特別遊技状態を発生させる特別遊技状態発生手段とを備えたスロットマシン」となり、この場合、遊技媒体はコイン、メダル等が代表例として挙げられる。   In the slot machine, for example, a symbol is changed by operating a control lever in a state where a symbol effective line is determined by inserting coins, and a symbol is stopped and confirmed by operating a stop button. Is. Therefore, the basic concept of the slot machine is that “a variable display means for confirming and displaying a symbol after a symbol string composed of a plurality of symbols is displayed in a variable manner, and the symbol resulting from the operation of the starting operation means (for example, an operating lever). The change of the symbol is stopped due to the operation of the operation means for stopping (for example, the stop button) or after a predetermined time has elapsed, and the fixed symbol at the time of the stop is a specific symbol Is a slot machine provided with a special game state generating means for generating a special game state advantageous to the player. In this case, the game medium is typically a coin, a medal or the like.

なお、パチンコ機とスロットマシンとが融合した遊技機の具体例としては、複数の図柄からなる図柄列を変動表示した後に図柄を確定表示する可変表示手段を備えており、球打出用のハンドルを備えていないものが挙げられる。この場合、所定の操作(ボタン操作)に基づく所定量の球の投入の後、例えば操作レバーの操作に起因して図柄の変動が開始され、例えばストップボタンの操作に起因して、或いは、所定時間経過することにより、図柄の変動が停止され、その停止時の確定図柄がいわゆる大当たり図柄であることを必要条件として遊技者に有利な大当たり状態が発生させられ、遊技者には、下部の受皿に多量の球が払い出されるものである。   In addition, as a specific example of a gaming machine in which a pachinko machine and a slot machine are fused, a variable display means for displaying a fixed symbol after a variable symbol row consisting of a plurality of symbols is provided, and a handle for launching a ball is provided. What is not provided. In this case, after throwing a predetermined amount of spheres based on a predetermined operation (button operation), for example, the change of the symbol is started due to the operation of the operation lever, for example, due to the operation of the stop button, or With the passage of time, the fluctuation of the symbol is stopped, and a jackpot state advantageous to the player is generated on the condition that the confirmed symbol at the time of stoppage is a so-called jackpot symbol. A lot of balls are paid out.

本発明の一実施例であるパチンコ機の遊技盤の正面図である。It is a front view of the game board of the pachinko machine which is one Example of this invention. パチンコ機の電気的構成を示したブロック図である。It is the block diagram which showed the electrical structure of the pachinko machine. 主制御基板で実行されるメイン処理のフローチャートである。It is a flowchart of the main process performed with the main control board. 主制御基板及び払出制御基板でそれぞれ別々に実行されるバックアップ処理のフローチャートである。It is a flowchart of the backup process performed separately by the main control board and the payout control board. 主制御基板で実行される賞球処理のフローチャートである。It is a flowchart of prize ball processing performed with a main control board. 払出制御基板の受信割込処理で実行されるコマンド受信処理のフローチャートである。It is a flowchart of the command reception process performed by the reception interruption process of a payout control board. 払出制御基板で実行されるメイン処理のフローチャートである。It is a flowchart of the main process performed by the payout control board. 払出制御基板で実行される賞球払出処理のフローチャートである。It is a flowchart of a prize ball payout process executed by a payout control board. 第2実施例のパチンコ機の電気的構成を示したブロック図である。It is the block diagram which showed the electrical structure of the pachinko machine of 2nd Example. (a)は第2実施例の主制御基板で実行されるNMI割込処理のフローチャートであり、(b)は第2実施例の払出制御基板で実行されるNMI割込処理のフローチャートである。(A) is a flowchart of the NMI interrupt process executed by the main control board of the second embodiment, and (b) is a flowchart of the NMI interrupt process executed by the payout control board of the second embodiment. 第2実施例の主制御基板で実行されるメイン処理のフローチャートである。It is a flowchart of the main process performed with the main control board of 2nd Example. 第2実施例の払出制御基板で実行されるメイン処理のフローチャートである。It is a flowchart of the main process performed with the payout control board of 2nd Example.

符号の説明Explanation of symbols

63 RAM(記憶手段)
73 RAM(記憶手段)
80b 停電監視回路(停電監視手段)
81 停電発生信号(停電信号)
C 主制御基板(制御手段の一部、主制御手段
H 払出制御基板(制御手段の一部、サブ制御手段)
63 RAM (storage means)
73 RAM (storage means)
80b power failure monitoring circuit (power failure monitoring means)
81 Power failure signal (power failure signal)
C Main control board (part of control means, main control means )
H Discharge control board (part of control means, sub-control means)

Claims (1)

複数の図柄からなる図柄列を変動表示した後に図柄を確定表示する可変表示手段を備え、始動用操作手段の操作に起因して図柄の変動が開始され、停止用操作手段の操作に起因して、或いは、所定時間経過することにより、図柄の変動が停止され、その停止時の確定図柄が特定図柄である場合に、遊技者に有利な特別遊技状態を発生させるスロットマシンであって、
該スロットマシンは、
主制御手段と、主制御手段からの制御信号に基づいて遊技部材を制御するサブ制御手段と、からなる制御手段と、
スロットマシンに供給される電圧が0Vよりも高い所定電圧まで低下した場合に停電の発生と判定して停電信号を出力する停電監視手段と、を備え
前記制御手段を構成する前記主制御手段と前記サブ制御手段とは、それぞれ電源断後もデータを保持可能な記憶手段を備えると共に、該記憶手段の前記データを書換え可能であり、
前記停電監視手段が出力する前記停電信号は、前記停電信号が前記制御手段にとって割込禁止が不能な割込として入力されるよう、前記主制御手段及びサブ制御手段の割込禁止不能割込端子に入力されるものであり、
前記主制御手段及びサブ制御手段が実行する処理手段として、
繰り返し所定の制御を行う遊技制御処理手段と、
前記停電信号が入力されることに基づいて実行され、前記記憶手段に停電発生情報を記憶するための停電信号割込処理手段と、
前記遊技制御処理手段の特定個所で実行される処理手段であって、前記記憶手段に前記停電発生情報が記憶されているか否かを判定するための停電情報判定処理手段と、
前記記憶手段に前記データを記憶する停電時処理手段と、を備え、
前記制御手段は、前記遊技制御処理手段を実行中に前記停電信号が入力されることにより、前記停電信号割込処理手段を実行して前記記憶手段に前記停電発生情報を記憶して前記遊技制御処理手段に復帰し、
該遊技制御処理手段の前記停電情報判定処理手段で前記停電発生情報が記憶されていると判定された場合は前記停電時処理手段を実行し、
停電が解消した場合に、前記停電時処理手段の実行前の遊技状態から遊技の制御を再開することを特徴とするスロットマシン。
Variable display means for confirming and displaying a symbol after a symbol string composed of a plurality of symbols is variably displayed, the variation of the symbol is started due to the operation of the start operation means, and the change due to the operation of the stop operation means Or a slot machine that generates a special gaming state advantageous to the player when the change of the symbol is stopped after a predetermined time has elapsed and the fixed symbol at the time of the stop is a specific symbol,
The slot machine
Control means comprising: main control means; and sub-control means for controlling the gaming member based on a control signal from the main control means ;
A power failure monitoring means for determining that a power failure has occurred and outputting a power failure signal when the voltage supplied to the slot machine drops to a predetermined voltage higher than 0V ,
The main control means and the sub-control means constituting the control means each include a storage means capable of holding data even after power is turned off, and the data in the storage means can be rewritten,
The power outage signal output by the power outage monitoring means is such that the power outage signal is input as an interrupt that cannot be interrupted for the control means, and an interrupt disable disable interrupt terminal of the main control means and the sub control means. Is entered in
As processing means executed by the main control means and sub-control means,
Game control processing means for repeatedly performing predetermined control;
A power failure signal interrupt processing means for storing power failure occurrence information in the storage means, executed based on the power failure signal being input;
Power failure information determination processing means for determining whether or not the power failure occurrence information is stored in the storage means, processing means executed at a specific location of the game control processing means,
A power failure processing means for storing the data in the storage means,
The control means executes the power failure signal interrupt processing means and stores the power failure occurrence information in the storage means when the power failure signal is inputted during execution of the game control processing means, and the game control Return to the processing means,
If it is determined by the power failure information determination processing means of the game control processing means that the power failure occurrence information is stored, the power failure processing means is executed,
A slot machine, wherein when a power failure is resolved, the control of the game is resumed from the game state before the execution of the power failure processing means.
JP2007308888A 2007-11-29 2007-11-29 Slot machine Expired - Lifetime JP4492685B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007308888A JP4492685B2 (en) 2007-11-29 2007-11-29 Slot machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007308888A JP4492685B2 (en) 2007-11-29 2007-11-29 Slot machine

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2007208918A Division JP4321642B2 (en) 2007-08-10 2007-08-10 Game machine

Publications (3)

Publication Number Publication Date
JP2008062109A JP2008062109A (en) 2008-03-21
JP2008062109A5 JP2008062109A5 (en) 2010-01-07
JP4492685B2 true JP4492685B2 (en) 2010-06-30

Family

ID=39285278

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007308888A Expired - Lifetime JP4492685B2 (en) 2007-11-29 2007-11-29 Slot machine

Country Status (1)

Country Link
JP (1) JP4492685B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6041446B2 (en) * 2014-06-30 2016-12-07 サミー株式会社 Game machine

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001198267A (en) * 2000-01-18 2001-07-24 Maruhon Ind Co Ltd Pachinko machine
JP2001310067A (en) * 2000-04-28 2001-11-06 Sankyo Kk Game machine
JP4321642B2 (en) * 2007-08-10 2009-08-26 株式会社三洋物産 Game machine

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001198267A (en) * 2000-01-18 2001-07-24 Maruhon Ind Co Ltd Pachinko machine
JP2001310067A (en) * 2000-04-28 2001-11-06 Sankyo Kk Game machine
JP4321642B2 (en) * 2007-08-10 2009-08-26 株式会社三洋物産 Game machine

Also Published As

Publication number Publication date
JP2008062109A (en) 2008-03-21

Similar Documents

Publication Publication Date Title
JP4656110B2 (en) Game machine
JP4321642B2 (en) Game machine
JP2010264284A (en) Game machine
JP4023322B2 (en) Game machine
JP5170220B2 (en) Game machine
JP4577337B2 (en) Game machine
JP4492685B2 (en) Slot machine
JP4428438B2 (en) Game machine
JP4379514B2 (en) Game machine
JP4428439B2 (en) Game machine
JP4103380B2 (en) Game machine
JP4320685B2 (en) Game machine
JP4665958B2 (en) Game machine
JP2003230742A (en) Game machine
JP4135710B2 (en) Game machine
JP2010046520A (en) Game machine
JP4174966B2 (en) Game machine
JP6187637B2 (en) Game machine
JP2008062112A (en) Game machine
JP2008062110A (en) Game machine
JP2008062113A (en) Game machine
JP5987925B2 (en) Game machine
JP2010227620A (en) Game machine
JP5585568B2 (en) Game machine
JP4792630B2 (en) Game machine

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091117

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20091117

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20091208

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A132

Effective date: 20091215

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100212

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: 20100316

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: 20100329

R150 Certificate of patent or registration of utility model

Ref document number: 4492685

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: 20130416

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130416

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20160416

Year of fee payment: 6

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