JP2010046520A - Game machine - Google Patents
Game machine Download PDFInfo
- Publication number
- JP2010046520A JP2010046520A JP2009268263A JP2009268263A JP2010046520A JP 2010046520 A JP2010046520 A JP 2010046520A JP 2009268263 A JP2009268263 A JP 2009268263A JP 2009268263 A JP2009268263 A JP 2009268263A JP 2010046520 A JP2010046520 A JP 2010046520A
- Authority
- JP
- Japan
- Prior art keywords
- power failure
- control board
- prize ball
- 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.)
- Granted
Links
Images
Landscapes
- Pinball Game Machines (AREA)
Abstract
Description
本発明は、パチンコ機やスロットマシンに代表される遊技機に関するものである。 The present invention relates to gaming machines represented by pachinko machines and slot machines.
パチンコ機の遊技の制御は、主に主制御基板により行われる。この主制御基板には、賞球や貸し球の払い出し制御を行う払出制御基板や、効果音の出力制御を行う効果音制御基板、図柄の変動表示等の表示制御を行う表示用制御基板などが接続されている。これら各制御基板の制御は、主制御基板から各制御基板へ一方向に送信されるコマンドにより行われる。 Control of pachinko machine games is mainly performed by the main control board. The main control board includes a payout control board that performs payout control of prize balls and rental balls, a sound effect control board that performs output control of sound effects, and a display control board that performs display control such as symbol variation display. It is connected. The control of each control board is performed by a command transmitted from the main control board to each control board in one direction.
賞球の払い出しは、停電等の発生によってパチンコ機の電源が突然切断された場合にも確実に行う必要がある。そこで、本願出願人は、賞球の払出残数を記憶する主制御基板および払出制御基板のデータをパチンコ機の電源が切断された後も保持して(バックアップして)、電源が再投入された後に未払い分の賞球を払い出すことを試みた。 The payout of the prize ball must be surely performed even when the power of the pachinko machine is suddenly cut off due to the occurrence of a power failure or the like. Therefore, the applicant of the present application retains (backs up) the data of the main control board and the payout control board for storing the number of payout balls remaining after the pachinko machine is turned off, and the power is turned on again. After that, he tried to pay out unpaid prize balls.
また、停電の発生時にデータをバックアップして、そのデータを停電の解消後に復帰するためには、停電の発生時に、遊技の各状態を退避するための停電時処理を実行する必要がある。かかる停電時処理は、制御系の駆動電圧がダウンするまでの僅かな時間に完了する必要があるので、停電の発生後、直ちに停電時処理を実行できるように構成することが好ましい。そこで、本願出願人は、停電の発生を検出する停電監視回路を設け、停電の発生時にその停電監視回路から出力される停電信号を、割込の禁止設定ができないノンマスカブル割込端子に入力し、そのノンマスカブル割込によって停電時処理を実行することを試みた。 In addition, in order to back up data when a power failure occurs and to restore the data after the power failure is resolved, it is necessary to execute a power failure process for saving each state of the game when the power failure occurs. Since the power failure process needs to be completed in a short time until the drive voltage of the control system decreases, it is preferable that the power failure process can be executed immediately after the power failure occurs. Therefore, the applicant of the present application is provided with a power failure monitoring circuit that detects the occurrence of a power failure, and inputs a power failure signal output from the power failure monitoring circuit when a power failure occurs, to a non-maskable interrupt terminal that cannot be set to prohibit interruption, The non-maskable interrupt tried to execute the power outage process.
しかしながら、停電時処理をノンマスカブル割込で行う場合、停電はいつ発生するのか分からないので、停電時処理がいつ実行されても支障のないように、メイン処理や他の割込処理をプログラムしなければならず、その結果、プログラムが煩雑になると共に大容量化してしまうという問題点がある。 However, when power failure processing is performed with non-maskable interrupts, it is not known when a power failure occurs, so the main processing and other interrupt processing must be programmed so that there is no problem when the power failure processing is executed. As a result, there is a problem that the program becomes complicated and the capacity increases.
例えば、データの更新を行う場合には、通常、そのデータの更新とその更新の完了の記憶とをする必要がある。しかし、停電時処理をノンマスカブル割込で行うと、データの更新後であってその更新の完了の記憶前に停電時処理が実行される場合があり、かかる場合には、停電解消後の復帰処理において、データの更新の完了が記憶されていないので、既に更新されているデータを再度更新することになり、プログラムが暴走する。このため、停電時処理をノンマスカブル割込で行う場合、データの更新後であってその更新の完了の記憶前に停電時処理が実行された場合には、停電解消後の復帰処理において、データの再更新を行わないようにプログラムする必要があり、その結果、プログラムが煩雑になると共に大容量化してしまうのである。データの更新を行う場合に限られず、このようなケースは、プログラム中に多々存在する。
本発明は上述した問題点を解決するためになされたものであり、停電時退避手段の実行タイミングを考慮することなく、メイン処理や割込処理をプログラムすることができる遊技機を提供することを目的としている。
For example, when updating data, it is usually necessary to update the data and store the completion of the update. However, if non-maskable interrupt processing is performed during a power failure, the power failure processing may be executed after the data is updated and before the completion of the update is stored. Since the completion of the data update is not stored, the data already updated is updated again, and the program runs out of control. For this reason, when performing power failure processing with non-maskable interrupts, if the power failure processing is performed after the data update and before storing the completion of the update, It is necessary to program so as not to perform re-updating. As a result, the program becomes complicated and the capacity increases. Such cases are not limited to the case of updating data, and there are many cases in the program.
The present invention has been made to solve the above-described problems, and provides a gaming machine capable of programming main processing and interrupt processing without considering the execution timing of the save means at the time of power failure. It is aimed.
この目的を達成するために請求項1記載の遊技機は、電源断後もデータを保持するバックアップ記憶手段と、停電発生時に停電信号を出力する停電監視手段と、その停電監視手段から停電信号が出力された場合に、進行中の遊技状態を示すデータを前記バックアップ記憶手段へ退避する停電時退避手段と、停電解消時にその停電時退避手段によって前記バックアップ記憶手段へ退避されたデータを読み出して復帰する停電時復帰手段と、前記停電時退避手段の実行タイミングを規制する実行タイミング規制手段とを備えている。
この請求項1記載の遊技機によれば、停電が発生すると、停電監視手段から停電信号が出力され、その停電信号に基づいて、停電時退避手段により進行中の遊技状態を示すデータがバックアップ記憶手段へ退避され、電源の断後も保持される。その後、停電が解消すると、停電時復帰手段によって、停電時退避手段によりバックアップ記憶手段へ退避されたデータが読み出されて復帰される。ここで、停電時退避手段の実行は、実行タイミング規制手段によって規制されるので、停電時退避手段は、他の制御に支障を来すことのない好適なタイミングで実行される。
In order to achieve this object, the gaming machine according to claim 1 includes a backup storage means for retaining data even after the power is cut off, a power failure monitoring means for outputting a power failure signal when a power failure occurs, and a power failure signal from the power failure monitoring means. When the data is output, the data indicating the game state in progress is saved to the backup storage means, and the data saved in the backup storage means is read and restored by the power saving means when the power failure is resolved. Recovery means for performing a power failure, and execution timing regulation means for regulating the execution timing of the power saving means.
According to the gaming machine of claim 1, when a power failure occurs, a power failure signal is output from the power failure monitoring means, and based on the power failure signal, data indicating the gaming state in progress by the power failure saving means is stored in the backup storage. It is retracted to the means and retained even after the power is turned off. Thereafter, when the power failure is resolved, the data saved in the backup storage means by the power saving means is read and restored by the power failure restoration means. Here, the execution of the power saving means during power failure is regulated by the execution timing regulation means, so the power saving means is executed at a suitable timing that does not interfere with other controls.
本発明の遊技機によれば、停電時退避手段は、停電の発生時に、進行中の遊技状態を示すデータをバックアップ記憶手段へ退避するためのものであるが、この停電時退避手段は、実行タイミング規制手段によってその実行タイミングが規制され、他の制御に支障を来すことのない好適なタイミングで実行される。よって、停電時退避手段の実行タイミングを考慮することなく、メイン処理や割込処理をプログラムすることができるので、その分、プログラムを簡略化できると共に、そのプログラムの小容量化を図ることができるという効果がある。 According to the gaming machine of the present invention, the power saving means is for saving data indicating the game state in progress to the backup storage means when a power failure occurs. The execution timing is regulated by the timing regulating means, and the timing is executed at a suitable timing that does not interfere with other controls. Therefore, since the main process and the interrupt process can be programmed without considering the execution timing of the power saving means at the time of a power failure, the program can be simplified and the capacity of the program can be reduced accordingly. There is an effect.
以下、本発明の好ましい実施例について、添付図面を参照して説明する。本実施例では、遊技機の一例として弾球遊技機の一種であるパチンコ機、特に、第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. Of course, the present invention can be used for other gaming machines such as a third-class pachinko gaming machine, a coin gaming machine, and a slot machine.
図1は、本実施例のパチンコ機Pの遊技盤の正面図である。遊技盤1の周囲には、球が入賞することにより5個から15個の球が払い出される複数の入賞口2が設けられている。また、遊技盤1の中央には、複数種類の識別情報としての図柄などを表示する液晶(LCD)ディスプレイ3が設けられている。このLCDディスプレイ3の表示画面は横方向に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
LCDディスプレイ3の下方には、図柄作動口(第1種始動口)4が設けられ、球がこの図柄作動口4を通過することにより、前記したLCDディスプレイ3の変動表示が開始される。図柄作動口4の下方には、特定入賞口(大入賞口)5が設けられている。この特定入賞口5は、LCDディスプレイ3の変動後の表示結果が予め定められた図柄の組み合わせの1つと一致する場合に、大当たりとなって、球が入賞しやすいように所定時間(例えば、30秒経過するまで、あるいは、球が10個入賞するまで)開放される。
Below the LCD display 3, a symbol operating port (first type starting port) 4 is provided, and when the sphere passes through the symbol operating port 4, the above-described variation display of the LCD display 3 is started. Below the symbol operating port 4, a specific winning port (large winning port) 5 is provided. The specific winning
この特定入賞口5内には、Vゾーン5aが設けられており、特定入賞口5の開放中に、球がVゾーン5a内を通過すると、継続権が成立して、特定入賞口5の閉鎖後、再度、その特定入賞口5が所定時間(又は、特定入賞口5に球が所定個数入賞するまで)開放される。この特定入賞口5の開閉動作は、最高で16回(16ラウンド)繰り返し可能にされており、開閉動作の行われ得る状態が、いわゆる所定の遊技価値の付与された状態(特別遊技状態)である。
A V
図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 contents of the pachinko machine P, and a payout control board that performs payout control of prize balls and rental balls. It is the block diagram which showed the electric constitution with H.
パチンコ機Pの主制御基板Cは、演算装置であるMPU11と、そのMPU11により実行される各種の制御プログラムや固定値データ等を記憶したROM12と、ワークメモリ等として使用されるRAM13とを備えている。図3から図5のフローチャートに示すプログラムは、制御プログラムの一部としてROM12内に記憶されている。またRAM13には、賞球バッファ13aと、賞球ポインタ13bと、残賞球数カウンタ13cと、停電フラグ13dと、バックアップエリア13eとが設けられると共に、バックアップ用の充電池13xが接続されてバックアップ可能に構成されている。このバックアップ用の充電池13xにより、RAM13の各値は、パチンコ機Pの電源が切断された場合にも保持(バックアップ)される。
The main control board C of the pachinko machine P includes an
賞球バッファ13aは、遊技領域1へ打ち込まれた球が普通入賞口2等へ入賞した場合に、払い出される賞球数を記憶するバッファである。払い出される賞球数は入賞した球毎に賞球バッファ13aへ記憶されるので、賞球バッファ13aは複数バイトで構成されている。賞球バッファ13aに記憶された賞球数のデータは、賞球コマンドとして払出制御基板Hへ送信されると、賞球バッファ13aから消去される。具体的には、0番目の賞球バッファ13aに記憶される賞球数を払出制御基板Hへ送信した後、1番目以降の賞球バッファ13aの値を小さいアドレス側へ順に1バイトずつシフトすることにより、0番目の賞球バッファ13aの値が消去される。
The winning
ここで、賞球コマンドとは、払い出される賞球数を払出制御基板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
残賞球数カウンタ13cは、未払いの賞球数を記憶するカウンタであり、払出制御基板Hによって払い出される賞球数を主制御基板Cで管理するためのカウンタである。残賞球数カウンタ13cの値は、主制御基板Cが払出制御基板Hへ賞球の払い出しを指示する毎に、その指示した数が加算され、逆に、払出制御基板Hによって賞球の払い出しが行われて、その払い出された賞球を賞球カウントスイッチ22が検出する毎に「1」ずつ減算される。この残賞球数カウンタ13cの値は、賞球払出許可コマンドの2バイト目のデータとしても使用される。
The remaining prize ball number counter 13c is a counter for storing the number of unpaid prize balls, and is a counter for managing the number of prize balls to be paid out by the payout control board H on the main control board C. Each time the main control board C instructs the payout control board H to pay out the prize ball, the value of the remaining prize ball counter 13c is incremented, and conversely, the payout control board H pays out the prize ball. Each time the award ball count
ここで、賞球払出許可コマンドとは、バックアップが有効である場合の主制御基板Cの立ち上げ処理の最後に、主制御基板Cから払出制御基板Hへ送信されるコマンドである。この賞球払出許可コマンドにより、立ち上げ処理終了後の払出制御基板Hに対して、賞球の払い出しの許可が指示される。賞球払出許可コマンドは、2バイトで構成されている。1バイト目のデータは、そのコマンドが賞球払出許可コマンドであることを示すためのデータ(例えば「A1H」)とされており、また、2バイト目のデータは未払いの賞球数を示すデータとされている。具体的には、この2バイト目のデータとして、残賞球数カウンタ13cの値がセットされる。 Here, the winning ball payout permission command is a command transmitted from the main control board C to the payout control board H at the end of the startup process of the main control board C when the backup is valid. This prize ball payout permission command instructs the payout control board H after the start-up process to be permitted to pay out prize balls. The prize ball payout permission command is composed of 2 bytes. The first byte data is data (for example, “A1H”) indicating that the command is a prize ball payout permission command, and the second byte data is data indicating the number of unpaid prize balls. It is said that. Specifically, the value of the remaining winning ball number counter 13c is set as the second byte data.
払出制御基板Hは、賞球払出許可コマンドを受信すると、2バイト目のデータを読み出して、これを残賞球数カウンタ33aに書き込み、賞球の払い出しを行う前に、未払いの賞球数を記憶する残賞球数カウンタ33aの値を主制御基板Cの残賞球数カウンタ13cと一致させている。よって、主制御基板Cで記憶する残賞球数カウンタ13cの値を超えて賞球の払い出しが行われた場合に発生する賞球オーバーエラーや、逆に賞球の払い出しが主制御基板Cで記憶する残賞球数カウンタ13cの値に満たない場合に発生する賞球アンダーエラーの発生を抑制することができ、停電解消後における遊技状態の復帰をスムースに行うことができる。
When the payout control board H receives the prize ball payout permission command, it reads out the second byte of data, writes it into the remaining prize
なお、この賞球払出許可コマンドを、賞球コマンドの場合と同様に、1バイトで構成するようにしても良い。この場合には、主制御基板Cの残賞球数カウンタ13cの値は、賞球払出許可コマンドの値としてセットされないので、バックアップ後の立ち上げ処理において、主制御基板Cと払出制御基板Hとの残賞球数カウンタ13c,33aの値を一致させることはできない。また、主制御基板Cでは、賞球払出許可コマンドに代えて、自身の立ち上げ処理の終了後にパチンコ機Pの状態を示すコマンドを払出制御基板Hへ送信するように構成し、払出制御基板Hでは、主制御基板Cから送信される何らかのコマンドを受信するまで賞球の払い出しを待機するように構成しても良い。電源断前と電源入後とではパチンコ機Pの状態は必ずしも同じではない。電源断前には賞球の払い出しが可能で合ったにも拘わらず、電源の再入後には、例えば、払い出される賞球を貯留するタンクの球が不足して空切れ状態となっている場合もあり、その場合には賞球の払い出しを行うことはできない。そこで、主制御基板Cの立ち上げ後、パチンコ機Pの状態を示すコマンドを払出制御基板Hへ送信し、払出制御基板Hでは、そのコマンドを受信した後でなければ賞球の払い出しを行うことができないように構成するのである。パチンコ機Pの状態を示すコマンドの中には、賞球の払い出しを止めておくコマンドもあるので、電源再入後のパチンコ機Pの状態が賞球の払い出しを行うことができない場合には、かかる賞球の払い出しを止めておくコマンドが送信されて、払出制御基板Hによる賞球の払い出しが更に待機される。 The prize ball payout permission command may be composed of 1 byte as in the case of the prize ball command. In this case, the value of the remaining prize ball counter 13c of the main control board C is not set as the value of the prize ball payout permission command. Therefore, in the start-up process after backup, the main control board C and the payout control board H The remaining ball counters 13c and 33a cannot be matched. Further, the main control board C is configured to transmit a command indicating the state of the pachinko machine P to the payout control board H after the start-up process is completed, instead of the prize ball payout permission command. Then, it may be configured to wait for the payout of the winning ball until a command transmitted from the main control board C is received. The state of the pachinko machine P is not necessarily the same before the power is turned off and after the power is turned on. Despite the fact that prize balls can be paid out before the power is turned off, after the power is turned on again, for example, there are not enough tank balls to store the prize balls to be paid out. In that case, the prize ball cannot be paid out. Therefore, after starting up the main control board C, a command indicating the state of the pachinko machine P is transmitted to the payout control board H, and the payout control board H pays out the winning ball only after receiving the command. It is configured not to be able to. Some commands indicating the state of the pachinko machine P stop the payout of the prize ball, so if the state of the pachinko machine P after the power is turned on cannot pay out the prize ball, A command for stopping the payout of the prize ball is transmitted, and the payout of the prize ball by the payout control board H is further waited.
停電フラグ13dは、停電等の発生による電源断を報せるためのフラグである。停電等が発生して電源が断されると、後述する停電監視回路50からMPU11のNMI(Non Maskable Interrupt)端子(ノンマスカブル割込端子)へ、停電信号51が出力される。すると、MPU11によって、図3に示すNMI(ノンマスカブル)割込処理が実行され、停電フラグ13dがオンされる。停電フラグ13dがオンされると、主制御基板Cのメイン処理(図4参照)によって、遊技の状態を示す各データの退避などを行う停電時処理が実行される(S20〜S24)。なお、NMI割込処理で一旦オンされた停電フラグ13dは、停電時処理にてオフされるので(S21)、停電解消後における立ち上げ処理を、停電フラグ13dをオフした状態で開始することができる。
The power failure flag 13d is a flag for reporting a power failure due to the occurrence of a power failure or the like. When a power failure or the like occurs and the power is cut off, a power failure signal 51 is output from a power
バックアップエリア13eは、停電などの発生により電源が切断された場合、電源の再入時に、パチンコ機Pの状態を電源切断前の状態に復帰させるため、電源切断時(停電発生時を含む。以下、同様)のスタックポインタや、各レジスタ、I/O等の値を記憶しておくためのエリアである。このバックアップエリア13eへの書き込みは、停電フラグ13dのオン時(電源断時)に停電時処理の中で実行され(図4のS22〜S24参照)、逆にバックアップエリア13eに書き込まれた各値の復帰は、電源入時(停電解消による電源入を含む。以下、同様)の初期化処理の中で実行される(図4のS14,S15参照)。 In the backup area 13e, 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 13e is executed in the power failure process when the power failure flag 13d is on (when the power is cut off) (see S22 to S24 in FIG. 4), and each value written to the backup area 13e is reversed. Is performed in the initialization process at the time of power-on (including power-on due to power failure cancellation, the same applies hereinafter) (see S14 and S15 in FIG. 4).
これらMPU11、ROM12、RAM13は、アドレスバス及びデータバスで構成されるバスライン14を介して相互に接続されている。バスライン14は、また、入出力ポート15にも接続されている。入出力ポート15は、入力および出力が固定的なバッファ(インバータゲート)16,37を介して払出制御基板Hと接続されるほか、複数の普通入賞スイッチ17と、第1種始動口スイッチ18と、Vカウントスイッチ19と、10カウントスイッチ20と、賞球カウントスイッチ22と、クリアスイッチ23と、他の入出力装置25と、それぞれ接続されている。
The
普通入賞スイッチ17は、遊技領域1内の複数の普通入賞口2へ入賞した球をそれぞれ検出するためのスイッチであり、各普通入賞口2の入口近傍に設けられている。第1種始動口スイッチ18は、図柄作動口(第1種始動口)4を通過した球を検出するためのスイッチであり、図柄作動口4の近傍に設けられている。普通入賞スイッチ17のいずれか又は第1種始動口スイッチ18によって球が検出されると、払出制御基板Hによって6個の賞球が払い出される。
The
Vカウントスイッチ19は、特定入賞口5内のVゾーン5aへ入賞した球を検出するためのスイッチであり、また、10カウントスイッチ20は、特定入賞口5内のVゾーン5a以外へ入賞した球を検出するためのスイッチである。Vカウントスイッチ19又は10カウントスイッチ20により球が検出されると、払出制御基板Hによって15個の賞球が払い出される。
The
賞球カウントスイッチ22は、賞球払出用モータ21によって払い出された賞球を検出するためのスイッチであり、賞球払出用モータ21と共に賞球払出ユニットSに搭載されている。賞球払出用モータ21は賞球を払い出すためのモータであり、この賞球払出用モータ21の駆動は、払出制御基板Hによって制御される。
The prize
クリアスイッチ23は、主制御基板Cおよび払出制御基板Hの各RAM13,33にバックアップされるデータをクリアするためのスイッチであり、押しボタンタイプのスイッチで構成されている。このクリアスイッチ23が押下された状態でパチンコ機Pの電源が投入されると(停電解消による電源入を含む)、主制御基板Cおよび払出制御基板Hによって、RAM13,33のデータがそれぞれクリアされる(図4のS7:Yes,S10、図7のS73:Yes,S76参照)。
The
前記した通り主制御基板Cは、入力および出力が固定的なバッファ(インバータゲート)16,37を介して、払出制御基板Hと接続されている。このため主制御基板Cと払出制御基板Hとの間における賞球コマンド等の送受信は、主制御基板Cから払出制御基板Hへの一方向にのみ行われ、払出制御基板Hから主制御基板Cへ行うことはできない。なお、主制御基板Cと払出制御基板Hとは、8本のデータ線と1本のストローブ線とにより接続されており、ストローブ線のデータがアクティブになった時に、8本のデータ線上に出力されているデータが主制御基板Cから払出制御基板Hへコマンドとして送信される。 As described above, the main control board C is connected to the payout control board H via the buffers (inverter gates) 16 and 37 whose inputs and outputs are fixed. Therefore, transmission / reception of a prize ball command or the like between the main control board C and the payout control board H is performed only in one direction from the main control board C to the payout control board H, and the payout control board H to the main control board C. Can not be done. The main control board C and the payout control board H are connected by eight data lines and one strobe line, and when the data on the strobe line becomes active, the data is output onto the eight data lines. The transmitted data is transmitted from the main control board C to the payout control board H as a command.
払出制御基板Hは賞球や貸し球の払出制御を行うものであり、演算装置であるMPU31と、そのMPU31により実行される制御プログラムや固定値データ等を記憶したROM32と、ワークメモリ等として使用されるRAM33とを備えている。図3及び図6から図8に示すフローチャートのプログラムは、制御プログラムの一部としてROM32内に記憶されている。
The payout control board H performs payout control of prize balls and lending balls, and is used as an
払出制御基板HのRAM33には、残賞球数カウンタ33aと、初期化フラグ33bと、賞球払出許可フラグ33cと、停電フラグ33dと、バックアップエリア33eとが設けられると共に、バックアップ用の充電池33xが接続されてバックアップ可能に構成されている。このバックアップ用の充電池33xにより、RAM33の各値は、パチンコ機Pの電源が切断された場合にも保持(バックアップ)されるのである。
The
残賞球数カウンタ33aは、前述した主制御基板Cの残賞球数カウンタ13cと同様に、未払いの賞球数を記憶するカウンタである。残賞球数カウンタ33aの値は、賞球コマンドによって主制御基板Cから払出制御基板Hへ賞球の払い出しが指示される毎に、その指示された賞球数が加算される。逆に、賞球カウントスイッチ22が払い出された賞球を検出する毎に「1」ずつ減算される。払出制御基板Hは、この残賞球数カウンタ33aの値が「0」になるまで、賞球払出用モータ21を動作させて賞球の払い出しを行うが、前記した通り、この残賞球数カウンタ33aの値は充電池33xによってバックアップされるので、賞球の払い出し途中でパチンコ機Pの電源が切断された場合にも、そのパチンコ機Pの電源を再投入することにより、払出制御基板Hは、残りの賞球(未払い分の賞球)を正確に払い出すことができる。
The remaining prize
初期化フラグ33bは、払出制御基板Hが、主制御基板Cから送信される初期化コマンドを受信した場合にオンされるフラグである。初期化コマンドは、主制御基板Cの立ち上げ処理においてバックアップデータがクリアされた場合に送信されるコマンドであり(図4のS12参照)、払出制御基板Hに対して初期化の指示と賞球の払出許可とを与えるコマンドである。払出制御基板Hは、この初期化コマンドを受信すると、初期化フラグ33bをオンし、払出制御基板Hにおいても既に初期化処理(S76)が終了していれば、初期化フラグ33bをオフした後に(S80)、処理を各処理(S89)へ移行して、賞球の払い出しの可能な状態とする。一方、払出制御基板Hにおいてデータのバックアップが有効に行われている状態で初期化コマンドを受信した場合には、主制御基板Cに合わせて初期化処理(S87)を実行した後、処理を各処理(S89)へ移行して、賞球の払い出しの可能な状態とする。なお、この場合、一旦オンされた初期化フラグ33bは、S87の初期化処理によってオフされる。
The
賞球払出許可フラグ33cは、払出制御基板Hが、主制御基板Cから送信される賞球払出許可コマンドを受信した場合にオンされるフラグであり、賞球の払い出しの許可を指示するためのフラグである。前述した通り、払出制御基板Hは、賞球払出許可コマンドを受信すると、賞球の払出許可を記憶するべく賞球払出許可フラグ33cをオンすると共に(S65)、賞球払出許可コマンドの2バイト目のデータを残賞球数カウンタ33aへ書き込んで(S64)、その残賞球数カウンタ33aの値を、主制御基板Cの残賞球数カウンタ13cの値と一致させる。賞球払出許可フラグ33cがオンされると、払出制御基板Hは立ち上げ処理を終了して、その賞球払出許可フラグ33cをオフした後に(S80,S87)、処理を各処理(S89)へ移行して、賞球の払い出しの可能な状態とする。
The prize ball payout permission flag 33c is a flag that is turned on when the payout control board H receives a prize ball payout permission command transmitted from the main control board C, and is used to instruct permission for payout of prize balls. Flag. As described above, when receiving the prize ball payout permission command, the payout control board H turns on the prize ball payout permission flag 33c in order to store the prize ball payout permission (S65) and 2 bytes of the prize ball payout permission command. The eye data is written to the remaining winning
停電フラグ33dは、前述した主制御基板Cの停電フラグ13dと同様に、停電等の発生による電源断を報せるためのフラグである。停電等が発生して電源が断されると、後述する停電監視回路50から払出制御基板HのMPU31のNMI(Non Maskable Interrupt)端子(ノンマスカブル割込端子)へ、停電信号51が出力される。すると、MPU31によって、図3に示すNMI(ノンマスカブル)割込処理が実行され、停電フラグ33dがオンされる。停電フラグ33dがオンされると、払出制御基板Hのメイン処理(図7参照)によって、払い出しの状態を示す各データの退避などを行う停電時処理が実行される(S90〜S94)。なお、NMI割込処理で一旦オンされた停電フラグ33dは、停電時処理にてオフされるので(S91)、停電解消後における払出制御基板Hの立ち上げ処理を、停電フラグ33dをオフした状態で開始することができる。
Similarly to the power failure flag 13d of the main control board C described above, the power failure flag 33d is a flag for reporting a power failure due to the occurrence of a power failure or the like. When a power failure or the like occurs and the power is cut off, a power failure signal 51 is output from a power
バックアップエリア33eは、前述した主制御基板Cのバックアップエリア13eと同様に、停電などの発生により電源が切断された場合、電源の再入時に、パチンコ機Pの状態を電源切断前の状態に復帰させるため、電源切断時(停電発生時を含む。以下、同様)のスタックポインタや、各レジスタ、I/O等の値を記憶しておくためのエリアである。このバックアップエリア33eへの書き込みは、停電フラグ33dのオン時(電源断時)に停電時処理の中で実行され(図7のS92〜S94参照)、逆にバックアップエリア33eに書き込まれた各値の復帰は、電源入時(停電解消による電源入を含む。以下、同様)の初期化処理の中で実行される(図7のS82,S83参照)。 As with the backup area 13e 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 33e returns the state of the pachinko machine P to the state before the power is turned off when the power is turned on again. Therefore, it is an area for storing a stack pointer at the time of power-off (including when a power failure occurs, the same applies hereinafter), values of registers, I / O, and the like. The writing to the backup area 33e is executed in the power failure process when the power failure flag 33d is on (when the power is cut off) (see S92 to S94 in FIG. 7), and each value written to the backup area 33e is reversed. Is executed in the initialization process at the time of power-on (including power-on due to power failure cancellation, the same applies hereinafter) (see S82 and S83 in FIG. 7).
これらMPU31、ROM32及びRAM33は、アドレスバス及びデータバスで構成されるバスライン35により互いに接続されている。バスライン35は、また、入出力ポート36にも接続されている。入出力ポート36は、前述した入力および出力が固定的なバッファ(インバータゲート)16,37を介して主制御基板Cと接続されるほか、賞球払出ユニットSの賞球払出用モータ21および賞球カウントスイッチ22と、クリアスイッチ23と、他の入出力装置40とにそれぞれ接続されている。
The
停電監視回路50は、停電等の発生による電源断時に、主制御基板C及び払出制御基板Hの各MPU11,31のNMI端子へ停電信号51を出力するための回路である。この停電監視回路50は、電源ユニット(図示せず)に搭載されており、その電源ユニットから出力される最も大きい電圧である直流安定24ボルトの電圧を監視し、この電圧が22ボルト未満になった場合に停電(電源断)の発生と判断して、停電信号51を出力するように構成されている。この停電信号51の出力によって、主制御基板C及び払出制御基板Hは、停電の発生を認識し、停電時処理(図4のS20〜S24,図7のS90〜S94)を実行する。なお、電源ユニットは、直流安定24ボルトの電圧が22ボルト未満になった後においても、停電時処理の実行に充分な時間の間(停電時処理の好適な実行タイミングの待ち時間を含む)、制御系の駆動電圧である5ボルトの出力を正常値に維持するように構成されているので、主制御基板C及び払出制御基板Hは、停電時処理を正常に実行することができるのである。
The power
次に、図3から図8に示すフローチャートを参照して、主制御基板C及び払出制御基板Hで行われる各処理について説明する。図3(a)は、停電の発生等により停電監視回路50から停電信号51が出力された場合に主制御基板Cで、図3(b)は払出制御基板Hで、それぞれ別々に実行されるNMI割込処理のフローチャートである。
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. 3A is executed by the main control board C when the power
まず、主制御基板Cで実行される図3(a)のNMI割込処理では、NMI割込発生時に、S21からS24(S24の処理後のループも含む)の停電時処理(図4参照)を実行中であるか否かを確認する(S1)。S21からS24の処理を実行中でなければ(S1:No)、停電フラグ13dをオンし(S2)、逆に、実行中であれば(S1:Yes)、S2の処理をスキップして、このNMI割込処理を終了する。なお、NMI割込発生時における実行中の処理の確認は、NMI割込発生時にスタックに退避されたアドレスをチェックすることにより行う。 First, in the NMI interrupt process of FIG. 3A executed by the main control board C, when an NMI interrupt occurs, the process at power failure from S21 to S24 (including the loop after the process of S24) (see FIG. 4). Is checked (S1). If the process from S21 to S24 is not being executed (S1: No), the power failure flag 13d is turned on (S2). Conversely, if it is being executed (S1: Yes), the process of S2 is skipped, and this The NMI interrupt process is terminated. Note that the process being executed when an NMI interrupt occurs is checked by checking the address saved in the stack when the NMI interrupt occurs.
同様に、払出制御基板Hで実行される図3(b)のNMI割込処理では、NMI割込発生時に、S91からS94(S94の処理後のループも含む)の停電時処理(図7参照)を実行中であるか否かを確認する(S3)。S91からS94の処理を実行中でなければ(S3:No)、停電フラグ33dをオンし(S4)、逆に、実行中であれば(S3:Yes)、S4の処理をスキップして、このNMI割込処理を終了する。 Similarly, in the NMI interrupt process of FIG. 3B executed by the payout control board H, when an NMI interrupt occurs, the process at the time of power failure from S91 to S94 (including the loop after the process of S94) (see FIG. 7). ) Is being executed (S3). If the processing from S91 to S94 is not being executed (S3: No), the power failure flag 33d is turned on (S4). Conversely, if it is being executed (S3: Yes), the processing of S4 is skipped, and this The NMI interrupt process is terminated.
このように、停電フラグ13d,33dは、停電時処理(S21〜S24,S91〜S94)の実行中以外にNMI割込処理が実行された場合に限ってオンされるので、即ち、停電時処理の実行中にNMI割込処理が実行された場合には、停電フラグ13d,33dはオンされないので、停電監視回路50からの停電信号51の出力が乱れてNMI割込処理が多重に発生する場合にも、パチンコ機Pを停電解消後に正常に復帰させることができる。S21又はS91の処理により停電フラグ13d,33dがオフされた後は、停電の復帰等により電源が投入されてS5又はS71の処理が開始されるまで、停電フラグ13d,33dはオンされないからである。即ち、停電解消後のS5又はS7からの復帰処理を停電フラグ13d,33がオフされた状態で開始することができるので、停電が発生していないにも拘わらず(NMI割込処理が実行されていないにも拘わらず)、電源投入後に停電時処理(S20〜S24,S90〜S94)を実行してしまうことがないのである。
As described above, the power failure flags 13d and 33d are turned on only when the NMI interrupt processing is executed other than during the power failure processing (S21 to S24, S91 to S94). When the NMI interrupt processing is executed during the execution of the power failure, the power failure flags 13d and 33d are not turned on, so that the output of the power failure signal 51 from the power
図4は、パチンコ機Pの電源入時に主制御基板Cで実行される立ち上げ処理のフローチャートである。この処理では、バックアップが有効であれば、バックアップエリア13eに記憶された各データを元の状態に戻し、遊技の制御を電源が断される前の状態から続行する。一方、バックアップが有効でなかったり、或いは、バックアップが有効であっても電源入時にクリアスイッチ23が押下された場合には、初期化処理を実行する。
FIG. 4 is a flowchart of start-up processing executed on the main control board C when the pachinko machine P is turned on. In this process, if the backup is valid, each data stored in the backup area 13e is returned to the original state, and the game control is continued from the state before the power is turned off. On the other hand, if the backup is not valid, or if the
まず、割込を禁止し(S5)、次に、本来のスタック領域にスタックされているデータを壊さないために、仮のスタックポインタを設定する(S6)。クリアスイッチ23がオンされているか否かを確認し(S7)、オンされていれば(S7:Yes)、処理をS9へ移行して初期化処理を実行する。クリアスイッチ23がオンされていなければ(S7:No)、バックアップが有効であるか否かを確認する(S8)。この確認は、RAM13の所定のエリアに書き込まれたキーワードが正しく記憶されているか否かにより判断する。キーワードが正しく記憶されていればバックアップは有効であり、逆に、キーワードが正しくなければバックアップデータは破壊されているので、そのバックアップは有効ではない。バックアップが有効であれば(S8:Yes)、処理をS14へ移行して、主制御基板Cの各状態を電源の断前の状態に復帰させる。一方、バックアップが有効でなければ(S8:No)、処理をS9へ移行して初期化処理を実行する。
First, interrupts are prohibited (S5), and then a temporary stack pointer is set so as not to destroy the data stacked in the original stack area (S6). It is confirmed whether or not the
S9の処理からの初期化処理では、まず、正規のスタックポインタを設定し、スタックの内容を整えた後(S9)、RAMクリア及び初期化処理を実行して(S10)、RAM13及びI/O等の各値を初期化する。その後、割込を許可し(S11)、その割込を使って初期化コマンドを払出制御基板Hへ送信して(S12)、主制御基板Cで初期化処理が実行されたことを払出制御基板Hへ報せる。払出制御基板Hは、主制御基板Cに比べて処理が軽いので、主制御基板Cより先に立ち上げ処理が終了する。よって、払出制御基板Hは、主制御基板Cから送信される初期化コマンドを確実に受信することができる。主制御基板Cは、初期化コマンドの送信後、その初期化コマンドを受信した払出制御基板Hが初期化処理を完了するために充分な時間をウエイトするためにウエイト処理を実行して(S13)、次の処理への移行を所定時間待機する。ウエイト処理の実行後は、払出制御基板Hも確実に立ち上がっているので、処理をS18へ移行して、遊技の制御を開始する。
In the initialization process from the process of S9, first, a normal stack pointer is set, the contents of the stack are arranged (S9), RAM clearing and initialization process are executed (S10), and the
S14からの復帰処理では、まず、バックアップエリア13eへ退避した各レジスタやI/O等のデータをそのバックアップエリア13eから読み出して、これら各データを元のレジスタやI/O等へ書き込む(S14)。更に、バックアップエリア13eからスタックポインタの値を読み出して、これをスタックポインタへ書き込み、電源断前(停電前)の状態に戻す(S15)。その後、割込を許可し(S16)、残賞球数カウンタ13cの値を賞球払出許可コマンドの2バイト目のデータとしてセットし、許可した割込を使って、その賞球払出許可コマンドを払出制御基板Hへ送信する(S17)。払出制御基板Hは、この賞球払出許可コマンドを受信することにより、賞球の払い出しが可能になる。その後は、処理をS18へ移行し、このS18の処理の後に実行される各処理(S19)によって、電源断により中断されていた遊技の制御を、電源断前の状態から続行する。 In the return processing from S14, first, data such as each register and I / O saved in the backup area 13e is read from the backup area 13e, and these data are written to the original register and I / O (S14). . Further, the value of the stack pointer is read from the backup area 13e, written to the stack pointer, and returned to the state before the power is cut off (before power failure) (S15). Thereafter, an interrupt is permitted (S16), the value of the remaining ball counter 13c is set as the second byte data of the winning ball payout permission command, and the winning ball payout permission command is set using the permitted interrupt. It transmits to the payout control board H (S17). When the payout control board H receives the prize ball payout permission command, the payout ball can be paid out. Thereafter, the process proceeds to S18, and the control of the game that was interrupted due to the power-off is continued from the state before the power-off by each process (S19) executed after the process of S18.
S18の処理では、停電フラグ13dがオンされているか否かを確認し(S18)、オンされていなければ(S18:No)、未だ停電は発生していないので、主制御基板Cのメイン処理となる各処理を実行して(S19)、パチンコ機Pの遊技の制御を行う。図5に示す賞球処理をはじめ、パチンコ機Pの遊技の各制御は、この各処理(S19)の中で実行される。 In the process of S18, it is confirmed whether or not the power failure flag 13d is turned on (S18). If it is not turned on (S18: No), a power failure has not yet occurred. Each process is executed (S19), and the game of the pachinko machine P is controlled. Each control of the game of the pachinko machine P including the prize ball process shown in FIG. 5 is executed in each process (S19).
S18の処理において、停電フラグ13dがオンされていれば(S18:Yes)、既に停電の発生等により電源が断されたということである。よって、かかる場合には、まず、割込を禁止して(S20)、各割込処理の進行をストップする。次に、停電解消後の復帰処理(S14,S15)に備えて、停電フラグ13dをオフし(S21)、更に、スタックポインタの値をバックアップエリア13eへ書き込み(S22)、各レジスタおよびI/O等の値をバックアップエリア13eへ書き込んで(S23)、停電の発生等による電源断時の状態を記憶する。更に、その他停電処理を実行し(S24)、その後は、制御系の駆動電圧がダウンして処理が実行できなくなるまで、処理をループする。 In the process of S18, if the power failure flag 13d is turned on (S18: Yes), it means that the power has already been cut off due to the occurrence of a power failure or the like. Therefore, in such a case, interrupts are first prohibited (S20), and the progress of each interrupt process is stopped. Next, the power failure flag 13d is turned off (S21), and the value of the stack pointer is written to the backup area 13e (S22) in preparation for the recovery processing (S14, S15) after the power failure is eliminated. Are written in the backup area 13e (S23), and the state when the power is cut off due to the occurrence of a power failure or the like is stored. Further, another power failure process is executed (S24), and thereafter, the process is looped until the drive voltage of the control system decreases and the process cannot be executed.
このように停電の発生等による電源断時には、その電源断を割込の禁止設定をすることができないノンマスカブル割込(図3)で即座に認識し、そのノンマスカブル割込で停電の発生を報せる停電フラグ13dのオンのみをする。そして、停電時処理(S20〜S24)は、停電フラグ13dがオンされている場合に、メイン処理(図4)において実行するように構成している。よって、パチンコ機Pの遊技の制御を行う各処理(S19)の実行途中で、かかる停電時処理を実行することがない。即ち、停電時処理を、他の制御に支障を来すことのない好適なタイミングで実行することができるのである。これにより、制御プログラムの簡略化と小容量化とを実現することができる。 In this way, when the power is cut off due to the occurrence of a power failure, it is immediately recognized by the non-maskable interrupt (Fig. 3) that cannot be set to prohibit the interruption, and the occurrence of the power failure can be reported by the non-maskable interrupt. Only the power failure flag 13d is turned on. And the process at the time of a power failure (S20-S24) is comprised so that it may be performed in a main process (FIG. 4), when the power failure flag 13d is turned on. Therefore, the power outage process is not executed during the execution of each process (S19) for controlling the game of the pachinko machine P. That is, the power failure process can be executed at a suitable timing that does not interfere with other controls. Thereby, simplification of the control program and reduction in capacity can be realized.
図5は、主制御基板Cの各処理(図4のS19)の中で実行される賞球処理のフローチャートである。賞球処理は、普通入賞口2や第1種始動口4或いは大入賞口5へ入賞した球を検出する入賞検出処理と(S30)、賞球コマンドを払出制御基板Hへ送信する賞球コマンド送信処理と(S40)、払出制御基板Hによって払い出された賞球を検出する賞球検出処理(S50)との3つの処理によって構成されている。
FIG. 5 is a flowchart of the winning ball process executed in each process (S19 in FIG. 4) of the main control board C. The winning ball process includes a winning detection process for detecting a winning ball in the
入賞検出処理(S30)では、まず、いずれかの普通入賞スイッチ17又は第1種始動口スイッチ18により、球が検出された否かを確認する(S31)。いずれかのスイッチ17,18によって球が検出された場合には(S31:Yes)、6個の賞球を払い出すために、賞球ポインタ13bの値番目の賞球バッファ13aへ「6」を書き込み(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
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
賞球コマンド送信処理(S40)では、まず、賞球ポインタ13bの値が「0」であるか否かを調べる(S41)。賞球ポインタ13bの値が「0」でなければ(S41:No)、払い出すべき賞球数のデータが賞球バッファ13aに記憶されているということなので、0番目の賞球バッファ13aの値を賞球コマンドの2バイト目のデータとしてセットし、その賞球コマンドを払出制御基板Hへ送信する(S42)。賞球コマンドの送信後は、その賞球コマンドによって送信した賞球数データである、0番目の賞球バッファ13aの値を残賞球数カウンタ13cへ加算する(S43)。そして、1番目以降の賞球バッファ13aの値を小さいアドレス側へ順に1バイトずつシフトして(S44)、賞球バッファ13aの値を更新すると共に、送信した0番目の賞球バッファ13aの値を消去し、更に、賞球ポインタ13bの値を「1」減算する(S45)。一方、S41の処理において、賞球ポインタ13bの値が「0」であれば(S41:Yes)、払い出すべき賞球数のデータは賞球バッファ13aに記憶されていないので、S42〜S45の各処理をスキップして、賞球コマンド送信処理(S40)を終了し、S50の賞球検出処理へ移行する。
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
賞球検出処理(S50)では、まず、賞球カウントスイッチ22がオンされたか否かを判断する(S51)。賞球カウントスイッチ22のオンが検出された場合には(S51:Yes)、賞球が1個払い出されたということなので、残賞球数カウンタ13cの値を確認し(S52)、その値が「0」でなければ(S52:No)、払い出された賞球に対応して残賞球数カウンタ13cの値を「1」減算する(S53)。一方、賞球カウントスイッチ22のオンが検出されない場合には(S51:No)、賞球は払い出されていないので、また、賞球カウントスイッチ22のオンが検出されても残賞球数カウンタ13cの値が「0」であれば(S51:Yes,S52:Yes)、残賞球数カウンタ13cの値を減算することはできないので、S53の処理をスキップして、賞球検出処理(S50)を終了する。これにより、図5の賞球処理が終了する。
In the prize ball detection process (S50), it is first determined whether or not the prize
次に、図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)、残賞球数カウンタ33aの値を主制御基板Cの残賞球数カウンタ13cの値と一致させる。更に、この賞球払出許可コマンドの受信を記憶するべく、賞球払出許可フラグ33cをオンして(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
受信したコマンドが、初期化コマンドでも賞球払出許可コマンドでもなければ(S61:No,S63:No)、そのコマンドが賞球コマンドであるか否かを判断する(S66)。受信したコマンドが賞球コマンドであれば(S66:Yes)、その賞球コマンドの2バイト目のデータとして指示される賞球数を残賞球数カウンタ33aへ加算し(S67)、このコマンド受信処理を終了する。一方、受信したコマンドが賞球コマンドでもない場合には(S66:No)、受信したコマンドに応じた処理を実行して(S68)、このコマンド受信処理を終了する。
If the received command is neither an initialization command nor a prize ball payout permission command (S61: No, S63: No), it is determined whether or not the command is a prize ball command (S66). If the received command is a prize ball command (S66: Yes), the number of prize balls designated as the second byte data of the prize ball command is added to the remaining prize
図7は、パチンコ機Pの電源入時に払出制御基板Hで実行される立ち上げ処理のフローチャートである。この処理では、バックアップが有効であれば、バックアップエリア33eに記憶された各データを元の状態に戻し、賞球の払出制御を電源が断される前の状態から続行する。一方、バックアップが有効でなかったり、或いは、バックアップが有効であっても電源入時にクリアスイッチ23が押下された場合には、初期化処理を実行する。
FIG. 7 is a flowchart of start-up processing executed by the payout control board H when the pachinko machine P is powered on. In this process, if the backup is valid, each data stored in the backup area 33e is returned to the original state, and the prize ball payout control is continued from the state before the power is turned off. On the other hand, if the backup is not valid, or if the
まず、割込を禁止し(S71)、次に、本来のスタック領域にスタックされているデータを壊さないために、仮のスタックポインタを設定する(S72)。クリアスイッチ23がオンされているか否かを確認し(S73)、オンされていれば(S73:Yes)、処理をS75へ移行して初期化処理を実行する。クリアスイッチ23がオンされていなければ(S73:No)、バックアップが有効であるか否かを確認する(S74)。この確認は、RAM33の所定のエリアに書き込まれたキーワードが正しく記憶されているか否かにより判断する。キーワードが正しく記憶されていればバックアップは有効であり、逆に、キーワードが正しくなければバックアップデータは破壊されているので、そのバックアップは有効ではない。バックアップが有効であれば(S74:Yes)、処理をS82へ移行して、主制御基板Cの各状態を電源の断前の状態に復帰させる。一方、バックアップが有効でなければ(S74:No)、処理をS75へ移行して初期化処理を実行する。
First, interrupts are prohibited (S71), and then a temporary stack pointer is set so as not to destroy the data stacked in the original stack area (S72). It is confirmed whether or not the
S75の処理からの初期化処理では、まず、正規のスタックポインタを設定し、スタックの内容を整えた後(S75)、RAMクリア及び初期化処理を実行して(S76)、RAM33及びI/O等の各値を初期化する。その後、割込を許可して(S77)、前述した図6のコマンド受信処理を実行可能とする。割込の許可後は、主制御基板Cからの賞球の払出許可をウエイトするべく、初期化フラグ33b又は賞球払出許可フラグ33cのいずれかがオンされるまで処理をループする(S78:No,S79:No)。初期化フラグ33b又は賞球払出許可フラグ33cのいずれかがオンされれば(S78:Yes又はS79:Yes)、主制御基板Cから賞球の払出許可が出されたということである。よって、かかる場合には、次の電源断に備えて、初期化フラグ33b及び賞球払出許可フラグ33cを共にオフした後(S80)、処理をS88へ移行する。
In the initialization process from the process of S75, first, a normal stack pointer is set, the contents of the stack are arranged (S75), RAM clearing and initialization process are executed (S76), and the
S82からの復帰処理では、まず、バックアップエリア33eへ退避した各レジスタやI/O等のデータをそのバックアップエリア33eから読み出して、これら各データを元のレジスタやI/O等へ書き込む(S82)。更に、バックアップエリア33eからスタックポインタの値を読み出して、これをスタックポインタへ書き込み、電源断前(停電前)の状態に戻す(S83)。その後、割込を許可して(S84)、図6のコマンド受信処理を実行可能とする。割込の許可後は、主制御基板Cからの賞球の払出許可をウエイトするべく、初期化フラグ33b又は賞球払出許可フラグ33cのいずれかがオンされるまで処理をループする(S85:No,S86:No)。
In the return processing from S82, first, data of each register and I / O saved in the backup area 33e is read from the backup area 33e, and these data are written to the original register and I / O (S82). . Further, the value of the stack pointer is read from the backup area 33e and written to the stack pointer to return to the state before the power is turned off (before the power failure) (S83). Thereafter, the interrupt is permitted (S84), and the command reception process of FIG. 6 can be executed. After permitting the interruption, the process loops until either the
賞球払出許可フラグ33cがオンされれば(S85:Yes)、主制御基板Cから賞球の払出許可が出されたということである。よって、かかる場合には、次の電源断に備えて、賞球払出許可フラグ33cをオフした後(S80)、処理をS88へ移行する。このS88の処理の後に実行される各処理(S89)によって、電源断により中断されていた制御を電源断前の状態から続行する。これにより、賞球の払い出しが可能となる。 If the winning ball payout permission flag 33c is turned on (S85: Yes), it means that the payout of the winning ball has been issued from the main control board C. Therefore, in such a case, in preparation for the next power-off, the prize ball payout permission flag 33c is turned off (S80), and then the process proceeds to S88. By each process (S89) executed after the process of S88, the control interrupted by the power-off is continued from the state before the power-off. As a result, the award ball can be paid out.
一方、初期化フラグ33bがオンされれば(S85:No,S86:Yes)、主制御基板Cから初期化コマンドが送信されたということである。よって、かかる場合には、RAMクリア及び初期化処理を実行して(S87)、払出制御基板Hを初期化した後、処理をS88へ移行する。図8の賞球払出処理は、このS88の処理の後の各処理(S89)の中で実行されるので、払出制御基板Hによる賞球の払い出しは、初期化フラグ33bがオンされるまで待機されることになる。
On the other hand, if the
なお、図4で説明した通り、主制御基板Cは初期化コマンドの送信後、ウエイト処理(S13)を実行しその後の処理の実行を所定時間待機するので、払出制御基板HによるRAMクリア及び初期化処理(S87)の実行中に、主制御基板Cから新たなコマンドが送信されることはない。よって、払出制御基板Hは、かかる場合にも遊技の払出制御を正常に行うことができるのである。 As described with reference to FIG. 4, the main control board C executes the wait process (S13) after transmitting the initialization command, and waits for the execution of the subsequent process for a predetermined time. A new command is not transmitted from the main control board C during the execution of the conversion process (S87). Therefore, the payout control board H can normally perform the payout control of the game even in such a case.
S88の処理では、停電フラグ33dがオンされているか否かを確認し(S88)、オンされていなければ(S88:No)、未だ停電は発生していないので、払出制御基板Hのメイン処理となる各処理を実行して(S89)、賞球又は貸し球の払出制御を行う。後述する図8の賞球払出処理をはじめ、払出制御基板Hの各制御は、割込処理を除いて、この各処理(S89)の中で実行される。 In the process of S88, it is confirmed whether or not the power failure flag 33d is turned on (S88). If it is not turned on (S88: No), a power failure has not yet occurred. Each process is executed (S89), and payout control of prize balls or rental balls is performed. Each control of the payout control board H, including a prize ball payout process in FIG. 8 described later, is executed in each process (S89) except for the interrupt process.
S88の処理において、停電フラグ33dがオンされていれば(S88:Yes)、既に停電の発生等により電源が断されたということである。よって、かかる場合には、まず、割込を禁止して(S90)、各割込処理の進行をストップする。この割込の禁止により、図6のコマンド受信処理の新たな実行も禁止される。次に、停電解消後の復帰処理(S82,S83)に備えて、停電フラグ33dをオフし(S91)、更に、スタックポインタの値をバックアップエリア33eへ書き込み(S92)、各レジスタおよびI/O等の値をバックアップエリア33eへ書き込んで(S93)、停電の発生等による電源断時の状態を記憶する。更に、その他停電処理を実行し(S94)、その後は、制御系の駆動電圧がダウンして処理が実行できなくなるまで、処理をループする。 In the process of S88, if the power failure flag 33d is turned on (S88: Yes), this means that the power has already been cut off due to the occurrence of a power failure or the like. Therefore, in such a case, interrupts are first prohibited (S90), and the progress of each interrupt process is stopped. By prohibiting this interrupt, new execution of the command reception process of FIG. 6 is also prohibited. Next, the power failure flag 33d is turned off (S91), and the value of the stack pointer is written to the backup area 33e (S92) in preparation for the recovery processing (S82, S83) after the power failure is eliminated. Are written in the backup area 33e (S93), and the state when the power is cut off due to the occurrence of a power failure or the like is stored. Furthermore, another power failure process is executed (S94), and thereafter, the process is looped until the drive voltage of the control system decreases and the process cannot be executed.
このように停電の発生等による電源断時には、その電源断を割込の禁止設定をすることができないノンマスカブル割込(図3)で即座に認識し、そのノンマスカブル割込で停電の発生を報せる停電フラグ33dのオンのみをする。そして、停電時処理(S90〜S94)は、停電フラグ33dがオンされている場合に、メイン処理(図7)において実行するように構成している。よって、賞球や貸し球の払出制御を行う各処理(S89)の実行途中で、かかる停電時処理を実行することがない。即ち、停電時処理を、他の制御に支障を来すことのない好適なタイミングで実行することができるので、制御プログラムの簡略化と小容量化とを実現することができるのである。 In this way, when the power is cut off due to the occurrence of a power failure, it is immediately recognized by the non-maskable interrupt (Fig. 3) that cannot be set to prohibit the interruption, and the occurrence of the power failure can be reported by the non-maskable interrupt. Only the power failure flag 33d is turned on. The power failure process (S90 to S94) is configured to be executed in the main process (FIG. 7) when the power failure flag 33d is turned on. Therefore, the power outage process is not executed during the execution of each process (S89) for performing the payout control of the winning ball or the rental ball. That is, the power failure process can be executed at a suitable timing that does not interfere with other controls, so that the control program can be simplified and the capacity can be reduced.
図8は、払出制御基板Hの各処理(S89)の中で実行される賞球払出処理のフローチャートである。この賞球払出処理により、賞球の払い出しと、払い出された賞球の検出とが行われる。賞球払出処理では、まず、残賞球数カウンタ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 (S89) 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
S103の処理において、賞球カウントスイッチ22でオンが検出されれば(S103:Yes)、賞球の払い出しが行われたということである。よって、かかる場合には、残賞球数カウンタ33aの値を確認し(S104)、その値が「0」でなければ(S104:No)、払い出された賞球に対応して残賞球数カウンタ33aの値を「1」減算し(S105)、この賞球払出処理を終了する。一方、賞球カウントスイッチ22のオンが検出されない場合や(S103:No)、賞球カウントスイッチ22のオンが検出されても(S103:Yes)、残賞球数カウンタ33aの値が「0」であれば(S104:Yes)、S105の処理をスキップして、この賞球払出処理を終了する。
If the prize
以上説明したように、本実施例のパチンコ機Pによれば、停電の発生等による電源断時には、その電源断を割込の禁止設定をすることができないノンマスカブル割込(図3)で即座に認識し、そのノンマスカブル割込で停電の発生を報せる停電フラグ13d,33dのオンのみをする。そして、停電時処理(図4のS20〜S24,図7のS90〜S94)は、停電フラグ13d,33dがオンされている場合に、メイン処理(図4,図7)において実行するように構成している。よって、各処理(S19,S89)の実行途中で、かかる停電時処理を実行することがない。即ち、停電時処理を、他の制御に支障を来すことのない好適なタイミングで実行することができるので、制御プログラムの簡略化と小容量化とを実現することができるのである。 As described above, according to the pachinko machine P of the present embodiment, when the power is cut off due to the occurrence of a power failure or the like, the non-maskable interrupt (FIG. 3) in which the power cut cannot be prohibited is set immediately. Recognizing and only turning on the power failure flags 13d and 33d for reporting the occurrence of a power failure by the non-maskable interrupt. The power failure process (S20 to S24 in FIG. 4 and S90 to S94 in FIG. 7) is configured to be executed in the main process (FIGS. 4 and 7) when the power failure flags 13d and 33d are turned on. is doing. Therefore, such a power failure process is not executed during the execution of each process (S19, S89). That is, the power failure process can be executed at a suitable timing that does not interfere with other controls, so that the control program can be simplified and the capacity can be reduced.
なお、図4及び図7における停電時処理(S20〜S24,S90〜S94)を、好適なタイミングを見計らって、それぞれ各処理(S19,S89)の中で実行するようにしても良い。 Note that the power failure process (S20 to S24, S90 to S94) in FIGS. 4 and 7 may be executed in each process (S19, S89) at an appropriate timing.
次に、図9から図12を参照して、第2実施例について説明する。前記した第1実施例では、停電監視回路50から出力される停電信号51を、各MPU11,31のNMI割込端子にそれぞれ入力し、NMI割込処理(図3)によって、停電フラグ13d,33dをオンし、その停電フラグ13d,33dがオンされている場合に、メイン処理の好適なタイミングで、停電時における各データの退避処理である停電時処理(S20〜S24,S90〜S94)を実行するようにしていた。
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
これに対し、第2実施例では、NMI割込を使用せず、停電監視回路50から出力される停電信号51を、各MPU11,31の外部割込端子(INT割込端子)にそれぞれ入力し、割込の禁止設定が可能なINT割込処理(図9)によって、停電時における各データの退避処理である停電時処理(S201〜S204)を実行するようにしている。INT割込は、NMI割込と異なり、割込の禁止設定が可能であるので、停電時処理の実行に不適な場合には割込を禁止することにより、その停電時処理の実行を規制することができる。よって、停電時処理を、他の制御に支障を来すことのない好適なタイミングで実行することができるので、制御プログラムの簡略化と小容量化とを実現することができる。
On the other hand, in the second embodiment, the power failure signal 51 output from the power
なお、停電監視回路50から出力される停電信号51がオンオフを繰り返してふらつくと、NMI割込の場合には、割込の禁止設定ができないので、そのNMI割込が多重に発生して、スタックオーバーが発生するなど制御に支障を来すことがある。しかし、INT割込の場合には、割込の禁止設定ができるので、多重割込の発生を防止することができる。よって、INT割込の場合には、多重割込の対策プログラムを必要とせず、その分、制御プログラムの簡略化と小容量化とを図ることができる。
Note that if the power failure signal 51 output from the power
第2実施例の説明にあたり、前記した第1実施例と同一の部分には同一の符号を付してその説明を省略する。 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は、停電の発生等によるパチンコ機Pの電源断時に、主制御基板C及び払出制御基板Hで、それぞれ別々に実行されるINT割込処理のフローチャートである。このINT割込処理により、停電の発生等による電源断時の主制御基板C及び払出制御基板Hの状態がそれぞれのバックアップエリア13e,33eに記憶される。なお、INT割込処理は、主制御基板CのROM12と払出制御基板HのROM32とに、それぞれ別々に搭載される処理であるが、フローチャートの表記上、同様に表すことができるので、図9にまとめて図示している。
FIG. 9 is a flowchart of an INT interrupt process 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 INT interrupt 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 respective backup areas 13e and 33e. Note that the INT interrupt process is a process that is separately mounted on the
停電の発生等によりパチンコ機Pの電源が断されると、停電監視回路50から停電信号51が主制御基板C及び払出制御基板Hの各MPU11,31のINT割込端子へそれぞれ出力される。各MPU11,31は、INT割込端子に停電信号51が入力されると、割込が許可されていれば即座に、割込が禁止されていれば許可されるタイミングで、それぞれ実行中の制御を中断して、INT割込処理を開始する。停電信号51が出力された後所定時間は、主制御基板C及び払出制御基板Hの処理が実行できるように、図示しない電源回路から電力供給されており、この所定時間内に、INT割込処理が実行される。
When the power of the pachinko machine P is cut off due to the occurrence of a power failure or the like, a power failure signal 51 is output from the power
INT割込処理では、まず、多重割込の発生を防止するべく、割込を禁止し(S201)、次に、スタックポインタの値をバックアップエリア13e,33eへ書き込み(S202)、更に、各レジスタおよびI/O等の値をバックアップエリア13e,33eへ書き込んで(S203)、停電の発生等による電源断時の状態を記憶する。その後、主制御基板C及び払出制御基板Hに応じてそれぞれ異なるその他停電処理を実行し(S204)、その後は、電源が完全に断して処理が実行できなくなるまで、処理をループする。なお、INT割込の発生により割込が自動的に禁止されるMPUを用いる場合には、S201の割込禁止処理を省略する。 In the INT interrupt processing, first, interrupts are prohibited to prevent the occurrence of multiple interrupts (S201), and then the values of the stack pointers are written to the backup areas 13e and 33e (S202). And values such as I / O are written in the backup areas 13e and 33e (S203), and the state at the time of power-off due to the occurrence of a power failure or the like is stored. Thereafter, another power failure process that differs depending on the main control board C and the payout control board H is executed (S204), and thereafter, the process is looped until the power supply is completely cut off and the process cannot be executed. If an MPU whose interrupt is automatically prohibited by the occurrence of an INT interrupt is used, the interrupt prohibiting process in S201 is omitted.
図10は、パチンコ機Pの電源入時に主制御基板Cで実行される第2実施例の立ち上げ処理のフローチャートであり、また、図11は、パチンコ機Pの電源入時に払出制御基板Hで実行される第2実施例の立ち上げ処理のフローチャートである。これらの処理では、バックアップが有効であれば、バックアップエリア13e,33eに記憶された各データを元の状態に戻し、制御を電源が断される前の状態から続行する。一方、バックアップが有効でなかったり、或いは、バックアップが有効であっても電源入時にクリアスイッチ23が押下された場合には、初期化処理を実行する。制御内容は、前記した第1実施例と同様であるので、その説明は省略する。なお、図10の主制御基板Cの処理では、S13及びS17の処理の終了後に、主制御基板Cのメイン処理となる各処理(S19)が実行され、図11の払出制御基板Hの処理では、S80及びS87の処理の終了後に、払出制御基板Hのメイン処理となる各処理(S89)が実行される。
FIG. 10 is a flowchart of the start-up process of the second embodiment executed by the main control board C when the pachinko machine P is turned on. FIG. 11 shows the payout control board H when the pachinko machine P is turned on. It is a flowchart of the starting process of 2nd Example performed. In these processes, if the backup is valid, each data stored in the backup areas 13e and 33e is returned to the original state, and the control is continued from the state before the power is turned off. On the other hand, if the backup is not valid, or if the
図12は、主制御基板C及び払出制御基板Hのメイン処理で、それぞれ別々に実行される各処理(S19,S89)のフローチャートである。なお、この各処理(S19,S89)は、主制御基板CのROM12と払出制御基板HのROM32とに、それぞれ別々に搭載されているが、図9の場合と同様に、フローチャートの表記上、同様に表すことができるので、図12にまとめて図示している。
FIG. 12 is a flowchart of each process (S19, S89) executed separately in the main process of the main control board C and the payout control board H. Each process (S19, S89) is mounted separately on the
各処理(S19,S89)では、まず、割込を禁止し(S211)、S201〜S204の停電時処理を処理の途中で実行できない処理を実行する(S212)。その後、割込を許可し(S213)、かかる停電時処理を処理の途中で実行できる処理を実行する(S214)。更に、割込を禁止し(S215)、停電時処理を処理の途中で実行できない処理を実行する(S216)。・・・その後、割込を許可し(S217)、停電時処理を処理の途中で実行できる処理を実行する(S218)。 In each process (S19, S89), first, interrupts are prohibited (S211), and a process that cannot be executed during a power failure in S201 to S204 is executed (S212). After that, the interruption is permitted (S213), and a process capable of executing the power failure process in the middle of the process is executed (S214). Further, interrupts are prohibited (S215), and processing that cannot be executed during power failure is executed (S216). ... After that, the interruption is permitted (S217), and a process capable of executing the power failure process in the middle of the process is executed (S218).
このように各処理(S19,S89)では、S201〜S204の停電時処理を、処理の途中で実行できない処理を実行する場合には、前もって割込を禁止し、一方、かかる停電時処理を処理の途中で実行できる処理を実行する場合には、前もって割込を許可している。これにより、停電時処理の実行に好適なタイミングでのみ、その停電時処理を実行し、逆に、停電時処理の実行に都合の悪いタイミングでは、その停電時処理の実行を規制することができるので、制御プログラムを簡略化された小容量のプログラムとすることができるのである。 As described above, in each process (S19, S89), when executing a process that cannot be executed in the middle of the process in S201 to S204, interrupting is prohibited in advance, and on the other hand, the process during a power failure is processed. When executing a process that can be executed during the process, interrupts are permitted in advance. As a result, the process at the time of power failure can be executed only at the timing suitable for the process at the time of power failure, and conversely, the execution of the process at the time of power failure can be regulated at a timing that is not convenient for the process at the time of power failure. Therefore, the control program can be a simplified small-capacity program.
なお、上記実施例において、請求項1記載の停電時退避手段としては、図4のS20〜S24の各処理、図7のS90〜S94の各処理、及び図9のS201〜S204の各処理がそれぞれ該当する。ここで、停電時退避手段は、請求項1に「停電監視手段から停電信号が出力された場合に、進行中の遊技状態を示すデータを前記バックアップ記憶手段へ退避する」とあるが、本実施例のように、RAM13,33がバックアップ記憶手段に該当する場合には、RAM13,33内のデータは退避する必要がないので、かかる場合には、スタックポインタやI/Oのデータ等が停電時退避手段によってバックアップ記憶手段へ退避される。
In the embodiment described above, the power saving means according to claim 1 includes the processes in S20 to S24 in FIG. 4, the processes in S90 to S94 in FIG. 7, and the processes in S201 to S204 in FIG. Each is applicable. Here, the means for saving during a power failure is described in claim 1 as “when the power failure signal is output from the power failure monitoring means, data indicating the game state in progress is saved to the backup storage means”. As in the example, when the
また、停電時復帰手段としては、図4及び図10のS14,S15の各処理、並びに、図7及び図11のS82,S83の各処理がそれぞれ該当する。更に、実行タイミング規制手段としては、図4のS18の処理、図7のS88の処理、及び図12のS211,S215の各処理がそれぞれ該当する。 Further, as power failure recovery means, the processes of S14 and S15 in FIGS. 4 and 10 and the processes of S82 and S83 in FIGS. Furthermore, the execution timing regulation means corresponds to the process of S18 in FIG. 4, the process of S88 in FIG. 7, and the processes of S211 and S215 in FIG.
以上、実施例に基づき本発明を説明したが、本発明は上記実施例に何ら限定されるものではなく、本発明の趣旨を逸脱しない範囲内で種々の改良変形が可能であることは容易に推察できるものである。 The present invention has been described based on the embodiments. However, the present invention is not limited to the above-described embodiments, and various improvements and modifications can be easily made without departing from the spirit of the present invention. It can be guessed.
例えば、上記各実施例では、RAM13,33は、いずれも不揮発性のメモリであるスタティックRAMにより構成され、電源の断時には、これらのRAM13,33に、バックアップ用の充電池13x,33xによってバックアップ電圧を供給し、RAM13,33の各内容を保持(バックアップ)するように構成した。しかし、これに代えて、RAM13,33をEEPROMやフラッシュメモリなどのバックアップ電圧を加えなくても内容を保持できるメモリによって構成し、バックアップ用の充電池13x,33xを除くようにしても良い。また、第1実施例のNMI割込処理を、割込の禁止設定が可能な他の割込処理(例えば、INT割込処理)により実行するようにしても良い。
For example, in each of the above-described embodiments, the
本発明を上記実施例とは異なるタイプのパチンコ機等に実施しても良い。例えば、一度大当たりすると、それを含めて複数回(例えば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 on the condition that a ball is awarded in a predetermined area. Further, in addition to the pachinko machine, the game machine may be implemented as various game machines such as an alepatchi, a sparrow ball, a slot machine, a game machine in which a so-called pachinko machine and a slot machine are integrated.
なお、スロットマシンは、例えばコインを投入して図柄有効ラインを決定させた状態で操作レバーを操作することにより図柄が変動され、ストップボタンを操作することにより図柄が停止されて確定される周知のものである。従って、スロットマシンの基本概念としては、「複数の識別情報からなる識別情報列を変動表示した後に識別情報を確定表示する可変表示手段を備え、始動用操作手段(例えば操作レバー)の操作に起因して識別情報の変動が開始され、停止用操作手段(例えばストップボタン)の操作に起因して、或いは、所定時間経過することにより、識別情報の変動が停止され、その停止時の確定識別情報が特定識別情報であることを必要条件として、遊技者に有利な特別遊技状態を発生させる特別遊技状態発生手段とを備えたスロットマシン」となり、この場合、遊技媒体はコイン、メダル等が代表例として挙げられる。 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 it is provided with variable display means for confirming and displaying the identification information after variably displaying the identification information string composed of a plurality of identification information, and resulting from the operation of the starting operation means (for example, the operation lever). Then, the change of the identification information is started, and the change of the identification information is stopped due to the operation of the operation means for stop (for example, the stop button) or after the lapse of a predetermined time, and the fixed identification information at the time of the stop Is a slot machine provided with special game state generating means for generating a special game state advantageous to the player on the condition that the specific identification information is a necessary condition. In this case, coins, medals, etc. are representative examples of game media As mentioned.
また、パチンコ機とスロットマシンとが融合した遊技機の具体例としては、複数の図柄からなる図柄列を変動表示した後に図柄を確定表示する可変表示手段を備えており、球打出用のハンドルを備えていないものが挙げられる。この場合、所定の操作(ボタン操作)に基づく所定量の球の投入の後、例えば操作レバーの操作に起因して図柄の変動が開始され、例えばストップボタンの操作に起因して、或いは、所定時間経過することにより、図柄の変動が停止され、その停止時の確定図柄がいわゆる大当たり図柄であることを必要条件として遊技者に有利な大当たり状態が発生させられ、遊技者には、下部の受皿に多量の球が払い出されるものである。 In addition, as a specific example of a gaming machine in which a pachinko machine and a slot machine are integrated, a variable display means for displaying a symbol after a symbol string composed of a plurality of symbols is displayed, 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.
以下に本発明の変形例を示す。請求項1記載の遊技機において、前記実行タイミング規制手段は、前記停電監視手段から停電信号が出力された場合に発生する割込であって、割込の禁止設定が不可能なノンマスカブル割込と、そのノンマスカブル割込の実行により停電の発生を指示する停電発生指示手段とを備えており、その停電発生指示手段により停電の発生が指示された場合に、前記ノンマスカブル割込以外の他の処理によって前記停電時退避手段を実行させるものであることを特徴とする遊技機1。停電の発生時には、割込の禁止設定が不可能なノンマスカブル割込によって停電の発生のみを記憶し、その停電の発生が記憶されている場合に、ノンマスカブル割込以外の他の処理によって、停電時退避手段が実行される。よって、ノンマスカブル割込により停電の発生を即座に認識できると共に、停電時の退避処理を制御上の都合の良いタイミングで実行することができる。なお、停電発生指示手段としては、ノンマスカブル割込処理の中でオンされる停電フラグなどが例示される。 The modification of this invention is shown below. 2. The gaming machine according to claim 1, wherein the execution timing regulation unit is an interrupt that occurs when a power failure signal is output from the power failure monitoring unit, and a non-maskable interrupt that cannot be prohibited from being interrupted. And a power failure occurrence instructing means for instructing the occurrence of a power failure by executing the non-maskable interrupt, and when the occurrence of a power failure is instructed by the power failure occurrence instructing means, by other processing other than the non-maskable interrupt A gaming machine (1) characterized in that the power saving means is executed during a power failure. When a power failure occurs, only the occurrence of a power failure is memorized by a non-maskable interrupt that cannot be set to prohibit interrupts. The evacuation means is executed. Therefore, the occurrence of a power failure can be immediately recognized by a non-maskable interrupt, and the save process at the time of a power failure can be executed at a convenient timing in terms of control. The power failure occurrence instruction means is exemplified by a power failure flag that is turned on during the non-maskable interrupt processing.
遊技機1において、前記停電発生指示手段により停電の発生が指示された場合に、前記停電時退避手段を少なくとも実行可能な状態にした後(前記停電時退避手段の実行中又は実行後を含む)、その停電発生指示手段の停電の発生の指示を解除する停電指示解除手段と、その停電指示解除手段の実行後に前記ノンマスカブル割込が実行された場合に前記停電発生指示手段による停電の発生の指示を禁止する停電指示禁止手段とを備えていることを特徴とする遊技機2。停電解消時における停電時復帰手段を、停電発生指示手段による停電の発生の指示を解除した状態で実行することができるので、復帰後の処理を正常に実行することができるのである。
In the gaming machine 1, when the occurrence of a power outage is instructed by the power outage generation instructing means, after the power outage saving means is at least executable (including during or after execution of the power outage saving means) A power failure instruction canceling means for canceling a power failure occurrence instruction of the power failure occurrence instructing means, and an instruction for the occurrence of a power failure by the power failure occurrence instructing means when the non-maskable interrupt is executed after the power failure instruction releasing means is executed. A
遊技機1又は2において、前記停電時退避手段を実行する他の処理は、メイン処理または割込の禁止設定が可能な割込処理であることを特徴とする遊技機3。よって、停電時退避手段の実行に都合の悪いタイミングにおいては、その実行を禁止することができるので(待機させることができるので)、簡略化された小容量のプログラムとすることができる。
In the
請求項1記載の遊技機において、前記停電時退避手段は、前記停電監視手段から停電信号が出力された場合に発生する割込であって、割込の禁止設定が可能な割込により実行されるものであり、前記実行タイミング規制手段は、前記停電時退避手段の実行に不適なタイミングにおいては前記割込を禁止する一方、前記停電時退避手段の実行に好適なタイミングにおいては前記割込を許可するものであることを特徴とする遊技機4。よって、停電時の退避処理を制御上の都合の良いタイミングで実行することができる。 2. The gaming machine according to claim 1, wherein the power failure saving means is an interrupt that occurs when a power failure signal is output from the power failure monitoring means, and is executed by an interrupt that can be set to prohibit the interruption. The execution timing regulation means prohibits the interrupt at a timing inappropriate for execution of the power failure save means, while the execution timing restriction means disables the interrupt at a timing suitable for execution of the power failure save means. A gaming machine 4 that is permitted. Therefore, the saving process at the time of a power failure can be executed at a timing convenient for control.
請求項1記載の遊技機又は遊技機1から4のいずれかに記載の遊技機において、前記停電監視手段による停電信号の出力から、前記実行タイミング規制手段により前記停電時退避手段の実行が最も遅らされた場合における前記停電時退避手段の実行に充分な時間、制御系の駆動電圧を有効な状態に維持する電源手段を備えていることを特徴とする遊技機5。停電時退避手段の実行が最も遅れた場合においても、電源手段により、制御系の駆動電圧はその停電時退避手段の実行に充分な時間有効な状態に維持される。よって、停電時の退避処理を制御上の都合の良いタイミングの到来を待って実行することができる。
The gaming machine according to claim 1, or the gaming machine according to any one of claims 1 to 4, wherein execution of said power saving means during power failure is most delayed by said execution timing regulating means from output of a power failure signal by said power failure monitoring means. The
請求項1記載の遊技機又は遊技機1から5のいずれかに記載の遊技機において、前記停電時退避手段は、スタックポインタ、レジスタ或いはI/Oの値を前記バックアップ記憶手段へ退避するものであることを特徴とする遊技機6。 6. The gaming machine according to claim 1, or the gaming machine according to any one of claims 1 to 5, wherein the power saving means saves a stack pointer, a register or an I / O value to the backup storage means. A gaming machine 6 characterized by being.
請求項1記載の遊技機又は遊技機1から6のいずれかに記載の遊技機において、遊技の制御を行う主制御基板と、その主制御基板から送信される制御コマンドに基づいて有価物体の払出制御を行う払出制御基板とを備えており、前記バックアップ記憶手段と、前記停電時退避手段と、前記停電時復帰手段と、前記実行タイミング規制手段とは、前記主制御基板および払出制御基板にそれぞれ設けられていることを特徴とする遊技機7。停電の発生時に主制御基板および払出制御基板の遊技状態をバックアップして、これを停電の解消後に復帰することができるので、停電等の発生により電源が断されても、払出制御基板により有価物体を確実に払い出すことができる。
7. A gaming machine according to claim 1, or a gaming machine according to claim 1, wherein a main control board that controls the game and a payout of a valuable object based on a control command transmitted from the main control board. A payout control board for performing control, and the backup storage means, the power outage saving means, the power outage recovery means, and the execution timing regulating means are respectively provided in the main control board and the payout control board. A
遊技機7において、前記主制御基板と払出制御基板との送受信は、前記主制御基板から払出制御基板への一方向に行われることを特徴とする遊技機8。
In the
請求項1記載の遊技機または遊技機1から8のいずれかにおいて、前記遊技機はパチンコ機であることを特徴とする遊技機9。中でも、パチンコ機の基本構成としては操作ハンドルを備え、その操作ハンドルの操作に応じて球を所定の遊技領域へ発射し、球が遊技領域内の所定の位置に配設された作動口に入賞(又は作動口を通過)することを必要条件として、表示装置において変動表示されている識別情報が所定時間後に確定停止されるものが挙げられる。また、特別遊技状態の発生時には、遊技領域内の所定の位置に配設された可変入賞装置(特定入賞口)が所定の態様で開放されて球を入賞可能とし、その入賞個数に応じた有価価値(景品球のみならず、磁気カードへ書き込まれるデータ等も含む)が付与されるものが挙げられる。 The gaming machine 9 according to any one of claims 1 to 8, wherein the gaming machine is a pachinko machine. Above all, the basic configuration of a pachinko machine is equipped with an operation handle, and in response to the operation of the operation handle, a ball is launched into a predetermined game area, and the ball is awarded to an operating port arranged at a predetermined position in the game area. As a necessary condition (or passing through the working port), the identification information variably displayed on the display device is confirmed and stopped after a predetermined time. In addition, when a special gaming state occurs, a variable winning device (specific winning opening) disposed at a predetermined position in the gaming area is opened in a predetermined manner so that a ball can be won, and a value corresponding to the number of winnings is obtained. Examples include those to which values (including data written on magnetic cards as well as premium balls) are given.
請求項1記載の遊技機または遊技機1から8のいずれかにおいて、前記遊技機はスロットマシンであることを特徴とする遊技機10。中でも、スロットマシンの基本構成としては、「複数の識別情報からなる識別情報列を変動表示した後に識別情報を確定表示する可変表示手段を備え、始動用操作手段(例えば操作レバー)の操作に起因して、或いは、所定時間経過することにより、識別情報の変動が停止され、その停止時の確定識別情報が特定識別情報であることを必要条件として、遊技者に有利な特別遊技状態を発生させる特別遊技状態発生手段とを備えた遊技機」となる。この場合、遊技媒体はコイン、メダル等が代表例として挙げられる。 The gaming machine 10 according to claim 1, wherein the gaming machine is a slot machine. Above all, the basic configuration of the slot machine is “variable display means for confirming and displaying the identification information after variably displaying the identification information string composed of a plurality of identification information, and resulting from the operation of the starting operation means (for example, the operation lever). Alternatively, when a predetermined time elapses, the variation of the identification information is stopped, and a special gaming state advantageous to the player is generated on the condition that the fixed identification information at the time of the stop is the specific identification information. A gaming machine provided with a special gaming state generating means. In this case, examples of the game media include coins and medals.
請求項1記載の遊技機または遊技機1から8のいずれかにおいて、前記遊技機はパチンコ機とスロットマシンとを融合させたものであることを特徴とする遊技機11。中でも、融合させた遊技機の基本構成としては、「複数の識別情報からなる識別情報列を変動表示した後に識別情報を確定表示する可変表示手段を備え、始動用操作手段(例えば操作レバー)の操作に起因して識別情報の変動が開始され、停止用操作手段(例えばストップボタン)の操作に起因して、或いは、所定時間経過することにより、識別情報の変動が停止され、その停止時の確定識別情報が特定識別情報であることを必要条件として、遊技者に有利な特別遊技状態を発生させる特別遊技状態発生手段とを備え、遊技媒体として球を使用すると共に、前記識別情報の変動開始に際しては所定数の球を必要とし、特別遊技状態の発生に際しては多くの球が払い出されるように構成されている遊技機」となる。 The gaming machine according to claim 1 or any one of the gaming machines 1 to 8, wherein the gaming machine is a fusion of a pachinko machine and a slot machine. Among them, the basic configuration of the fused gaming machine is “equipped with variable display means for confirming and displaying the identification information after variably displaying the identification information string composed of a plurality of identification information, and for starting operation means (for example, an operation lever). The fluctuation of the identification information is started due to the operation, and the fluctuation of the identification information is stopped due to the operation of the operation means for stop (for example, the stop button) or after a predetermined time elapses. Special game state generating means for generating a special game state advantageous to the player on the condition that the confirmed identification information is the specific identification information, and using a ball as a game medium and starting to change the identification information In this case, the game machine is configured to require a predetermined number of balls and to be paid out when a special gaming state occurs.
11 主制御基板のMPU
13 主制御基板のRAM(バックアップ記憶手段)
13d 停電フラグ
13e バックアップエリア
13x 主制御基板のバックアップ用の充電池
31 払出制御基板のMPU
33 払出制御基板のRAM(バックアップ記憶手段)
33d 停電フラグ
33e バックアップエリア
33x 払出制御基板のバックアップ用の充電池(バックアップ手段)
50 停電監視回路(停電監視手段)
51 停電信号
C 主制御基板
H 払出制御基板
P パチンコ機(遊技機)
11 MPU of main control board
13 RAM of main control board (backup storage means)
13d Power failure flag
33 RAM of the payout control board (backup storage means)
33d Power failure flag
50 Power failure monitoring circuit (power failure monitoring means)
51 Power failure signal C Main control board H Discharge control board P Pachinko machine (game machine)
Claims (1)
停電発生時に停電信号を出力する停電監視手段と、
その停電監視手段から停電信号が出力された場合に、進行中の遊技状態を示すデータを前記バックアップ記憶手段へ退避する停電時退避手段と、
停電解消時にその停電時退避手段によって前記バックアップ記憶手段へ退避されたデータを読み出して復帰する停電時復帰手段と、
前記停電時退避手段の実行タイミングを規制する実行タイミング規制手段とを備えていることを特徴とする遊技機。 Backup storage means to retain data even after the power is turned off;
A power failure monitoring means for outputting a power failure signal when a power failure occurs,
When a power outage signal is output from the power outage monitoring means, a power outage saving means for evacuating data indicating an ongoing gaming state to the backup storage means,
A power failure recovery means that reads and restores the data saved in the backup storage means by the power failure save means when the power failure is resolved;
A game machine comprising: an execution timing regulating means for regulating the execution timing of the power saving means during power failure.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009268263A JP4479859B2 (en) | 2009-11-26 | 2009-11-26 | Game machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009268263A JP4479859B2 (en) | 2009-11-26 | 2009-11-26 | Game machine |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007267767A Division JP4631895B2 (en) | 2007-10-15 | 2007-10-15 | Game machine |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2010046520A true JP2010046520A (en) | 2010-03-04 |
JP4479859B2 JP4479859B2 (en) | 2010-06-09 |
Family
ID=42064087
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2009268263A Expired - Lifetime JP4479859B2 (en) | 2009-11-26 | 2009-11-26 | Game machine |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4479859B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5170220B2 (en) * | 2000-10-12 | 2013-03-27 | 株式会社三洋物産 | Game machine |
JP5083385B2 (en) * | 2010-07-26 | 2012-11-28 | 株式会社三洋物産 | Game machine |
-
2009
- 2009-11-26 JP JP2009268263A patent/JP4479859B2/en not_active Expired - Lifetime
Also Published As
Publication number | Publication date |
---|---|
JP4479859B2 (en) | 2010-06-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5083385B2 (en) | Game machine | |
JP5170220B2 (en) | Game machine | |
JP4479859B2 (en) | Game machine | |
JP4321642B2 (en) | Game machine | |
JP2012148163A (en) | Game machine | |
JP4135710B2 (en) | Game machine | |
JP4023322B2 (en) | Game machine | |
JP4174966B2 (en) | Game machine | |
JP2002119710A (en) | Game machine | |
JP2005087768A5 (en) | ||
JP4479858B2 (en) | Game machine | |
JP4631895B2 (en) | Game machine | |
JP5093305B2 (en) | Game machine | |
JP4103380B2 (en) | Game machine | |
JP2016047288A (en) | Game machine | |
JP2014147705A (en) | Game machine | |
JP6187637B2 (en) | Game machine | |
JP4492685B2 (en) | Slot machine | |
JP5987925B2 (en) | Game machine | |
JP2002153604A5 (en) | ||
JP4792630B2 (en) | Game machine | |
JP5585568B2 (en) | Game machine | |
JP2010259840A (en) | Game machine | |
JP4665958B2 (en) | Game machine | |
JP4428438B2 (en) | Game machine |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20091225 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20091225 |
|
A871 | Explanation of circumstances concerning accelerated examination |
Free format text: JAPANESE INTERMEDIATE CODE: A871 Effective date: 20091225 |
|
TRDD | Decision of grant or rejection written | ||
A975 | Report on accelerated examination |
Free format text: JAPANESE INTERMEDIATE CODE: A971005 Effective date: 20100217 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20100223 |
|
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: 20100308 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130326 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 Ref document number: 4479859 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20160326 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 |