JP2011045773A - Game machine - Google Patents

Game machine Download PDF

Info

Publication number
JP2011045773A
JP2011045773A JP2010271576A JP2010271576A JP2011045773A JP 2011045773 A JP2011045773 A JP 2011045773A JP 2010271576 A JP2010271576 A JP 2010271576A JP 2010271576 A JP2010271576 A JP 2010271576A JP 2011045773 A JP2011045773 A JP 2011045773A
Authority
JP
Japan
Prior art keywords
control board
command
payout
prize ball
main control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2010271576A
Other languages
Japanese (ja)
Other versions
JP5263278B2 (en
Inventor
Makoto Hoya
誠 保谷
Takashi Nasu
隆 那須
Tetsuya Kato
哲也 加藤
Yuichi Kondo
裕一 近藤
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 JP2010271576A priority Critical patent/JP5263278B2/en
Publication of JP2011045773A publication Critical patent/JP2011045773A/en
Application granted granted Critical
Publication of JP5263278B2 publication Critical patent/JP5263278B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a game machine capable of backing up the putout residual number of valuable objects and matching the timing between the startup of a main control board and the putout of prize balls by a putout control board when power is supplied. <P>SOLUTION: The putout of prize balls not put out yet when the power is supplied again is executed after the main control board C is started and a prize ball putout permission command is transmitted from the main control board C to the putout control board H. Thus, even when the time needed for startup processing is different between the main control board C and the putout control board H, the timing is matched between the startup of the main control board C and the putout of the prize balls performed by the putout control board H. <P>COPYRIGHT: (C)2011,JPO&INPIT

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.

賞球の払い出しは、停電等の発生によってパチンコ機の電源が突然切断された場合にも行う必要がある。そこで、本願出願人は、賞球の払出残数をパチンコ機の電源が切断された後も保持して(バックアップして)、電源が再投入された後に未払い分の賞球を払い出すことを試みた。   It is necessary to pay out the prize ball even when the power of the pachinko machine is suddenly cut off due to a power failure or the like. Therefore, the applicant of the present invention holds (backs up) the number of payout balls remaining after the pachinko machine is turned off, and pays out unpaid prize balls after the power is turned on again. Tried.

パチンコ機の電源投入時には各制御基板でそれぞれ立ち上げ処理が実行される。よって、主制御基板の立ち上げと、払出制御基板による賞球の払い出しとのタイミングが合わない場合が生じことがある。
本発明は上述した問題点を解決するためになされたものであり、有価物体の払出残数をバックアップすると共に、電源入時において主制御基板の立ち上げと、払出制御基板による賞球の払い出しとのタイミングを合わせることができる遊技機を提供することを目的としている。
When the power of the pachinko machine is turned on, a startup process is executed on each control board. Therefore, there may be a case where the timing of starting up the main control board and the payout of prize balls by the payout control board do not match.
The present invention has been made to solve the above-described problems, and backs up the remaining payout of valuable objects, starts up the main control board when the power is turned on, and pays out the prize balls by the payout control board. The purpose is to provide a gaming machine that can match the timing of the game.

この目的を達成するために請求項1記載の遊技機は、遊技の制御を行う主制御手段と、前記主制御手段から送信されるコマンドに基づいて払出装置の制御を行い、電源断後も払出残数データを記憶可能な記憶手段を備えた払出制御手段と、を備え、前記主制御手段は、電源が投入された場合に実行される主立上げ時手段と、前記主立上げ時手段において特定コマンドを送信する手段と、複数の制御を行うことで前記遊技の制御を行う主遊技制御手段と、を備え、前記払出制御手段は、電源が投入された場合に行われる副立上げ時手段と、前記主制御手段から送信されるコマンドを受信可能なループ手段と、前記主制御手段から前記特定コマンドを受信した場合に、前記記憶手段で記憶された払出残数データに基づいて払出制御を行う手段と、を備え、前記主制御手段は、電源が投入された場合に、前記特定コマンドを送信する手段を含む前記主立上げ時手段を行った後に前記主遊技制御手段に移行し、前記払出制御手段は、電源が投入された場合に、前記副立上げ時手段を行って前記ループ手段に移行し、該ループ手段によるループ状態において、前記特定コマンドを受信した場合に前記記憶手段で記憶された払出残数データに基づいて払出制御を行い、前記払出装置を動作させて払出しを行う。   In order to achieve this object, the gaming machine according to claim 1 controls the payout device based on a main control means for controlling the game and a command transmitted from the main control means, and pays out even after the power is turned off. A payout control means having a storage means capable of storing remaining number data, wherein the main control means is a main start-up means executed when power is turned on, and the main start-up means Means for transmitting a specific command, and main game control means for controlling the game by performing a plurality of controls, wherein the payout control means is a sub-startup means that is performed when power is turned on And loop means capable of receiving a command transmitted from the main control means, and when receiving the specific command from the main control means, payout control is performed based on the payout remaining number data stored in the storage means. Means to do, The main control means, when the power is turned on, after performing the main start-up means including means for transmitting the specific command, the main control means shifts to the main game control means, the payout control means, When the power is turned on, the sub-startup means is performed to shift to the loop means, and the payout remaining number stored in the storage means when the specific command is received in the loop state by the loop means The payout control is performed based on the data, and the payout device is operated to perform payout.

本発明の遊技機によれば、遊技の制御を行う主制御手段と、前記主制御手段から送信されるコマンドに基づいて払出装置の制御を行い、電源断後も払出残数データを記憶可能な記憶手段を備えた払出制御手段と、を備え、前記主制御手段は、電源が投入された場合に実行される主立上げ時手段と、前記主立上げ時手段において特定コマンドを送信する手段と、複数の制御を行うことで前記遊技の制御を行う主遊技制御手段と、を備え、前記払出制御手段は、電源が投入された場合に行われる副立上げ時手段と、前記主制御手段から送信されるコマンドを受信可能なループ手段と、前記主制御手段から前記特定コマンドを受信した場合に、前記記憶手段で記憶された払出残数データに基づいて払出制御を行う手段と、を備え、前記主制御手段は、電源が投入された場合に、前記特定コマンドを送信する手段を含む前記主立上げ時手段を行った後に前記主遊技制御手段に移行し、前記払出制御手段は、電源が投入された場合に、前記副立上げ時手段を行って前記ループ手段に移行し、該ループ手段によるループ状態において、前記特定コマンドを受信した場合に前記記憶手段で記憶された払出残数データに基づいて払出制御を行い、前記払出装置を動作させて払出しを行う。よって、電源入時において主制御基板の立ち上げと、払出制御基板による賞球の払い出しとのタイミングを合わせることができるという効果がある。   According to the gaming machine of the present invention, the main control means for controlling the game and the payout device can be controlled based on the command transmitted from the main control means, and the remaining payout data can be stored even after the power is turned off. A payout control means including a storage means, wherein the main control means is a main start-up means executed when power is turned on, and a means for transmitting a specific command at the main start-up means. Main game control means for controlling the game by performing a plurality of controls, the payout control means from the sub-start-up means performed when the power is turned on, from the main control means Loop means capable of receiving a command to be transmitted, and means for performing payout control based on the payout remaining number data stored in the storage means when the specific command is received from the main control means, The main control means is When the power is turned on, after performing the main start-up means including the means for transmitting the specific command, the process proceeds to the main game control means, the payout control means, when the power is turned on, The sub-startup means is performed to shift to the loop means, and when the specific command is received in a loop state by the loop means, payout control is performed based on the payout remaining number data stored in the storage means. The payout device is operated to perform payout. Therefore, there is an effect that the timing of starting up the main control board and the payout of prize balls by the payout control board can be matched when the power is turned on.

本発明の一実施例であるパチンコ機の遊技盤の正面図である。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. 主制御基板及び払出制御基板で実行されるNMI割込処理のフローチャートである。It is a flowchart of the NMI interruption process performed with the main control board and the payout control board. 主制御基板で実行される立ち上げ処理のフローチャートである。It is a flowchart of the starting process performed with a main 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 starting process performed with a 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. パチンコ機の電源入時に主制御基板で実行される立ち上げ処理(復電処理)のフローチャートである。It is a flowchart of a start-up process (power recovery process) executed by the main control board when the pachinko machine is turned on. パチンコ機の電源入時に払出制御基板で実行される立ち上げ処理(復電処理)のフローチャートである。It is a flowchart of a start-up process (power recovery process) executed by the payout control board when the pachinko machine is turned on. 払出制御基板の立ち上げ処理(復電処理)の中で実行される復電時コマンド受信処理のフローチャートである。It is a flowchart of the command reception process at the time of a power recovery performed in the start-up process (power recovery process) of a payout control board.

以下、本発明の好ましい実施例について、添付図面を参照して説明する。本実施例では、遊技機の一例として弾球遊技機の一種であるパチンコ機、特に、第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 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 (LCD) display 3 for displaying symbols as a plurality of types of identification information is provided. The display screen of the LCD display 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 from right to left in the horizontal direction.

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 opening 5 is a predetermined time (for example, 30 seconds) so that the ball is a big hit and the ball is easy to win when the display result after the fluctuation of the LCD display 3 matches one of the predetermined symbol combinations. Open until seconds have passed or 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 in which the opening / closing operation can be performed is a state in which a predetermined game value is given (special game state). is there.

図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とが設けられると共に、バックアップ用のコンデンサ(電池)13xが接続されてバックアップ可能に構成されている。よって、RAM13の各値は、パチンコ機Pの電源が切断された場合にも保持(バックアップ)される。   The main control board C of the pachinko machine P includes an MPU 11 that is an arithmetic device, a ROM 12 that stores various control programs executed by the MPU 11 and fixed value data, and a RAM 13 that is used as a work memory. Yes. The programs shown in the flowcharts of FIGS. 3 to 5 are stored in the ROM 12 as a part of the control program. The RAM 13 is provided with a prize ball buffer 13a, a prize ball pointer 13b, a remaining prize ball number counter 13c, and a backup area 13d, and a backup capacitor (battery) 13x is connected to enable backup. Has been. Therefore, each value of the RAM 13 is retained (backed up) even when the power of the pachinko machine P is cut off.

賞球バッファ13aは、遊技領域1へ打ち込まれた球が普通入賞口2等へ入賞した場合に、払い出される賞球数を記憶するバッファである。払い出される賞球数は入賞した球毎に賞球バッファ13aへ記憶されるので、賞球バッファ13aは複数バイトで構成されている。賞球バッファ13aに記憶された賞球数のデータは、賞球コマンドとして払出制御基板Hへ送信されると、賞球バッファ13aから消去される。具体的には、0番目の賞球バッファ13aに記憶される賞球数を払出制御基板Hへ送信した後、1番目以降の賞球バッファ13aの値を小さいアドレス側へ順に1バイトずつシフトすることにより、0番目の賞球バッファ13aの値が消去される。   The winning ball buffer 13a is a buffer for storing the number of winning balls to be paid out when a ball that has been driven into the game area 1 wins the normal winning slot 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は、未払いの賞球数を記憶するカウンタであり、払出制御基板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 switch 22 detects the paid-out prize ball, “1” is subtracted. The value of the remaining prize ball number counter 13c is also used as the second byte data of the prize ball payout permission command.

ここで、賞球払出許可コマンドとは、バックアップが有効である場合の主制御基板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 ball number counter 33a, and calculates the number of unpaid prize balls before paying out the prize ball. The value of the remaining prize ball number counter 33a to be stored is matched with the remaining prize ball number counter 13c of the main control board C. Therefore, a prize ball over error that occurs when a prize ball is paid out exceeding the value of the remaining prize ball counter 13c stored in the main control board C, or a prize ball is paid out on the main control board C. It is possible to suppress the occurrence of a prize ball under error that occurs when the value of the remaining prize ball counter 13c stored is less than the value, and the game state can be smoothly restored after the power failure is eliminated.

なお、この賞球払出許可コマンドを、賞球コマンドの場合と同様に、1バイトで構成するようにしても良い。この場合には、主制御基板Cの残賞球数カウンタ13cの値は、賞球払出許可コマンドの値としてセットされないので、バックアップ後の立ち上げ処理において、主制御基板Cと払出制御基板Hとの残賞球数カウンタ13c,33aの値を一致させることはできない。   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.

バックアップエリア13dは、停電などの発生により電源が切断された場合、電源の再入時に、パチンコ機Pの状態を電源切断前の状態に復帰させるため、電源切断時(停電発生時を含む。以下、同様)のスタックポインタや、各レジスタ、I/O等の値を記憶しておくためのエリアである。このバックアップエリア13dへの書き込みは、NMI割込処理(図3参照)によって電源切断時に実行され、逆にバックアップエリア13dに書き込まれた各値の復帰は、電源入時(停電解消による電源入を含む。以下、同様)の復帰処理(復電処理)において実行される(図4のS21,S22参照)。   In the backup area 13d, 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 13d is executed when the power is turned off by the NMI interrupt process (see FIG. 3). Conversely, the restoration of each value written in the backup area 13d is performed when the power is turned on (the power is turned on by eliminating the power failure). In the following, the same is performed in the recovery process (power recovery process) (see S21 and S22 in FIG. 4).

これらMPU11、ROM12、RAM13は、アドレスバス及びデータバスで構成されるバスライン14を介して相互に接続されている。バスライン14は、また、入出力ポート15にも接続されている。入出力ポート15は、入力および出力が固定的なバッファ(インバータゲート)16,37を介して払出制御基板Hと接続されるほか、複数の普通入賞スイッチ17と、第1種始動口スイッチ18と、Vカウントスイッチ19と、10カウントスイッチ20と、賞球カウントスイッチ22と、クリアスイッチ23と、他の入出力装置25と、それぞれ接続されている。   The MPU 11, ROM 12, and RAM 13 are connected to each other via a bus line 14 constituted by an address bus and a data bus. The bus line 14 is also connected to the input / output port 15. The input / output port 15 is connected to the payout control board H via buffers (inverter gates) 16 and 37 whose inputs and outputs are fixed, a plurality of normal winning switches 17, a first type start port switch 18, and the like. The V count switch 19, 10 count switch 20, prize ball count switch 22, clear switch 23, and other input / output device 25 are connected to each other.

普通入賞スイッチ17は、遊技領域1内の複数の普通入賞口2へ入賞した球をそれぞれ検出するためのスイッチであり、各普通入賞口2の入口近傍に設けられている。第1種始動口スイッチ18は、図柄作動口(第1種始動口)4を通過した球を検出するためのスイッチであり、図柄作動口4の近傍に設けられている。普通入賞スイッチ17のいずれか又は第1種始動口スイッチ18によって球が検出されると、払出制御基板Hによって6個の賞球が払い出される。   The normal winning switch 17 is a switch for detecting each of the balls that have won the plurality of normal winning ports 2 in the game area 1, and is provided near the entrance of each of the normal winning ports 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 one of the normal winning switches 17 or the first type start port switch 18, six payout 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.

賞球カウントスイッチ22は、賞球払出用モータ21によって払い出された賞球を検出するためのスイッチであり、賞球払出用モータ21と共に賞球払出ユニットSに搭載されている。賞球払出用モータ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 in the prize ball payout unit S 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.

クリアスイッチ23は、主制御基板Cおよび払出制御基板Hの各RAM13,33にバックアップされるデータをクリアするためのスイッチであり、押しボタンタイプのスイッチで構成されている。このクリアスイッチ23が押下された状態でパチンコ機Pの電源が投入されると(停電解消による電源入を含む)、主制御基板Cおよび払出制御基板Hによって、RAM13,33のデータがそれぞれクリアされる(図4のS13:Yes,S16、図7のS73:Yes,S76参照)。   The clear switch 23 is a switch for clearing data backed up in the RAMs 13 and 33 of the main control board C and 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 23 is pressed (including power-on due to power failure cancellation), the data in the RAMs 13 and 33 are cleared by the main control board C and the payout control board H, respectively. (See S13 in FIG. 4: Yes, S16, S73 in FIG. 7: Yes, S76).

前記した通り主制御基板Cは、入力および出力が固定的なバッファ(インバータゲート)16,37を介して、払出制御基板Hと接続されている。このため主制御基板Cと払出制御基板Hとの間における賞球コマンド等の送受信は、主制御基板Cから払出制御基板Hへの一方向にのみ行われ、払出制御基板Hから主制御基板Cへ行うことはできない。なお、主制御基板Cと払出制御基板Hとは、8本のデータ線と1本のストローブ線とにより接続されており、ストローブ線のデータがアクティブになった時に、8本のデータ線上に出力されているデータが主制御基板Cから払出制御基板Hへコマンドとして送信される。このストローブ線は、払出制御基板Hの割込入力端子と入力ポートとにそれぞれ接続されている。よって、払出制御基板Hは、ストローブ信号のアクティブを、割込の発生とポート入力(ポートのデータを読み込むこと)との2つの手法によって認識することができる。   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. This strobe line is connected to an interrupt input terminal and an input port of the payout control board H, respectively. Therefore, the payout control board H can recognize the active strobe signal by two methods of generating an interrupt and inputting a port (reading port data).

払出制御基板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 MPU 31, which is an arithmetic unit, a ROM 32 storing a control program executed by the MPU 31, fixed value data, and a work memory. The RAM 33 is provided. 3 and 6 to 8 are stored in the ROM 32 as a part of the control program.

払出制御基板HのRAM33には、残賞球数カウンタ33aと、初期化フラグ33bと、賞球払出許可フラグ33cと、バックアップエリア33dとが設けられると共に、バックアップ用のコンデンサ(電池)33xが接続されてバックアップ可能に構成されている。よって、RAM33の各値は、パチンコ機Pの電源が切断された場合にも保持(バックアップ)される。   The RAM 33 of the payout control board H is provided with a remaining ball number counter 33a, an initialization flag 33b, a prize ball payout permission flag 33c, and a backup area 33d, and a backup capacitor (battery) 33x is connected. Has been configured to be backupable. Therefore, each value of the RAM 33 is retained (backed up) even when the power of the pachinko machine P is turned off.

残賞球数カウンタ33aは、前述した主制御基板Cの残賞球数カウンタ13cと同様に、未払いの賞球数を記憶するカウンタである。残賞球数カウンタ33aの値は、賞球コマンドによって主制御基板Cから払出制御基板Hへ賞球の払い出しが指示される毎に、その指示された賞球数が加算される。逆に、賞球カウントスイッチ22が払い出された賞球を検出する毎に「1」ずつ減算される。払出制御基板Hは、この残賞球数カウンタ33aの値が「0」になるまで、賞球払出用モータ21を動作させて賞球の払い出しを行うが、前記した通り、この残賞球数カウンタ33aの値はコンデンサ33xによってバックアップされるので、賞球の払い出し途中でパチンコ機Pの電源が切断された場合にも、そのパチンコ機Pの電源を再投入することにより、払出制御基板Hは、残りの賞球(未払い分の賞球)を正確に払い出すことができる。   The remaining prize ball number counter 33a is a counter that stores the number of unpaid prize balls in the same manner as the remaining prize ball number counter 13c of the main control board C described above. 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 capacitor 33x, even when the power of the pachinko machine P is cut off during the payout of the prize ball, the payout control board H is turned on by turning on the power of the pachinko machine P again. The remaining prize balls (unpaid prize balls) can be paid out accurately.

初期化フラグ33bは、払出制御基板Hが、主制御基板Cから送信される初期化コマンドを受信した場合にオンされるフラグである。初期化コマンドは、主制御基板Cの立ち上げ処理においてバックアップデータがクリアされた場合に送信されるコマンドであり(図4のS18参照)、払出制御基板Hに対して初期化の指示と賞球の払出許可とを与えるコマンドである。払出制御基板Hは、この初期化コマンドを受信すると、初期化フラグ33bをオンし、払出制御基板Hにおいても既に初期化処理(S75)が終了していれば、初期化フラグ33bをオフした後に(S80)、処理を各処理へ移行して、賞球の払い出しの可能な状態とする。一方、払出制御基板Hにおいてデータのバックアップが有効に行われている状態で初期化コマンドを受信した場合には、主制御基板Cに合わせて初期化処理(S87)を実行した後、各処理へ移行して、賞球の払い出しの可能な状態とする。なお、この場合、一旦オンされた初期化フラグ33bは、S87の初期化処理によってオフされる。   The initialization flag 33b is a flag that is turned on when the dispensing control board H receives an initialization command transmitted from the main control board C. The initialization command is a command transmitted when the backup data is cleared in the startup process of the main control board C (see S18 in FIG. 4), and the initialization command and the prize ball are given to the payout control board H. This is a command for giving a payout permission. Upon receiving this initialization command, the payout control board H turns on the initialization flag 33b. If the initialization process (S75) has already been completed in the payout control board H, the payout control board H turns off the initialization flag 33b. (S80), the processing is shifted to each processing, and the award ball can be paid out. On the other hand, when the initialization command is received in a state where the data backup is effectively performed in the payout control board H, the initialization process (S87) is executed in accordance with the main control board C, and then each process is performed. Transition to a state where award balls can be paid out. In this case, the initialization flag 33b once turned on is turned off by the initialization process of S87.

賞球払出許可フラグ33cは、払出制御基板Hが、主制御基板Cから送信される賞球払出許可コマンドを受信した場合にオンされるフラグであり、賞球の払い出しの許可を指示するためのフラグである。前述した通り、払出制御基板Hは、賞球払出許可コマンドを受信すると、賞球の払出許可を記憶するべく賞球払出許可フラグ33cをオンすると共に(S65)、賞球払出許可コマンドの2バイト目のデータを残賞球数カウンタ33aへ書き込んで(S64)、その残賞球数カウンタ33aの値を、主制御基板Cの残賞球数カウンタ13cの値と一致させる。賞球払出許可フラグ33cがオンされると、払出制御基板Hは立ち上げ処理を終了して、その賞球払出許可フラグ33cをオフした後に(S80,S88)、処理を各処理へ移行して、賞球の払い出しの可能な状態とする。   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 ball counter 33a (S64), and the value of the remaining winning ball counter 33a is made to coincide with the value of the remaining winning ball counter 13c of the main control board C. When the prize ball payout permission flag 33c is turned on, the payout control board H ends the start-up process, and after turning off the prize ball payout permission flag 33c (S80, S88), the process proceeds to each process. The award ball can be paid out.

バックアップエリア33dは、前述した主制御基板Cのバックアップエリア13dと同様に、停電などの発生により電源が切断された場合、電源の再入時に、パチンコ機Pの状態を電源切断前の状態に復帰させるため、電源切断時(停電発生時を含む。以下、同様)のスタックポインタや、各レジスタ、I/O等の値を記憶しておくためのエリアである。このバックアップエリア33dへの書き込みは、NMI割込処理(図3参照)によって電源切断時に実行され、逆にバックアップエリア33dに書き込まれた各値の復帰は、電源入時(停電解消による電源入を含む。以下、同様)の復帰処理(復電処理)において実行される(図7のS82,S83参照)。   Similarly to the backup area 13d 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 33d 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 33d is executed when the power is turned off by the NMI interrupt process (see FIG. 3). Conversely, each value written to the backup area 33d is restored when the power is turned on (the power is turned on by eliminating the power failure). In the following, the same processing is performed (refer to S82 and S83 in FIG. 7).

これらMPU31、ROM32及びRAM33は、アドレスバス及びデータバスで構成されるバスライン35により互いに接続されている。バスライン35は、また、入出力ポート36にも接続されている。入出力ポート36は、前述した入力および出力が固定的なバッファ(インバータゲート)16,37を介して主制御基板Cと接続されるほか、賞球払出ユニットSの賞球払出用モータ21および賞球カウントスイッチ22と、クリアスイッチ23と、他の入出力装置40とにそれぞれ接続されている。   The MPU 31, ROM 32, and RAM 33 are connected to each other by a bus line 35 that includes an address bus and a data bus. The bus line 35 is also connected to an input / output port 36. The input / output port 36 is connected to the main control board C via the buffers (inverter gates) 16 and 37 whose inputs and outputs described above are fixed, as well as the prize ball payout motor 21 and the prize of the prize ball payout unit S. The ball count switch 22, the clear switch 23, and other input / output devices 40 are respectively connected.

次に、図3から図8に示すフローチャートを参照して、主制御基板C及び払出制御基板Hで行われる各処理について説明する。図3は、停電の発生等によるパチンコ機Pの電源断時に、主制御基板C及び払出制御基板Hで、それぞれ別々に実行されるNMI割込処理のフローチャートである。このNMI割込処理により、停電の発生等による電源断時の主制御基板C及び払出制御基板Hの状態がそれぞれのバックアップエリア13d,33dに記憶される。なお、NMI割込処理は、主制御基板CのROM12と払出制御基板HのROM32とに、それぞれ別々に搭載される処理であるが、フローチャートの表記上、同様に表すことができるので、図3にまとめて図示している。   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 the NMI 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 NMI interruption process, 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 13d and 33d. Note that the NMI interrupt process is a process that is separately mounted on the ROM 12 of the main control board C and the ROM 32 of the payout control board H, but can be represented in the same manner in the notation of the flowchart. Are summarized in the figure.

停電の発生等によりパチンコ機Pの電源が断されると、図示しない停電信号が主制御基板C及び払出制御基板HのMPU11,31のNMI(Non Maskable Interrupt)端子へそれぞれ出力される。各MPU11,31は、NMI端子に停電信号が入力されると、それぞれ実行中の制御を中断して、図3のNMI割込処理を開始する。停電信号が出力された後所定時間は、主制御基板C及び払出制御基板Hの処理が実行可能に電力供給されており、この所定時間内に、図3のNMI割込処理が実行される。   When the power of the pachinko machine P is cut off due to the occurrence of a power failure, a power failure signal (not shown) is output to the NMI (Non Maskable Interrupt) terminals of the MPUs 11 and 31 of the main control board C and the payout control board H, respectively. When a power failure signal is input to the NMI terminal, each of the MPUs 11 and 31 interrupts the control being executed and starts the NMI interrupt process of FIG. For a predetermined time after the power failure signal is output, power is supplied so that the processing of the main control board C and the payout control board H can be executed, and the NMI interrupt processing of FIG. 3 is executed within this predetermined time.

NMI割込処理では、まず、スタックポインタの値をバックアップエリア13d,33dへ書き込み(S1)、更に、各レジスタおよびI/O等の値をバックアップエリア13d,33dへ書き込んで(S2)、停電の発生等による電源断時の状態を記憶する。その後、主制御基板C及び払出制御基板Hに応じてそれぞれ異なるその他停電処理を実行し(S3)、その後は、電源が完全に断して処理が実行できなくなるまで、処理をループする。   In the NMI interrupt processing, first, the stack pointer value is written to the backup areas 13d and 33d (S1), and further, the values of each register and I / O are written to the backup areas 13d and 33d (S2). The state at the time of power-off due to occurrence 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 (S3), and then the process is looped until the power supply is completely cut off and the process cannot be executed.

図4は、パチンコ機Pの電源入時に主制御基板Cで実行される立ち上げ処理(復電処理)のフローチャートである。この処理では、バックアップが有効であれば、バックアップエリア13dに記憶された各データを元の状態に戻し、遊技の制御を電源が断される前の状態から続行する。一方、バックアップが有効でなかったり、或いは、バックアップが有効であっても電源入時にクリアスイッチ23が押下された場合には、初期化処理を実行する。   FIG. 4 is a flowchart of start-up processing (power recovery processing) executed by the main control board C when the power of the pachinko machine P is turned on. In this process, if the backup is valid, each data stored in the backup area 13d 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 clear switch 23 is pressed when the power is turned on even if the backup is valid, an initialization process is executed.

まず、割込を禁止し(S11)、次に、本来のスタック領域にスタックされているデータを壊さないために、仮のスタックポインタを設定する(S12)。クリアスイッチ23がオンされているか否かを確認し(S13)、オンされていれば(S13:Yes)、処理をS15へ移行して初期化処理を実行する。クリアスイッチ23がオンされていなければ(S13:No)、バックアップが有効であるか否かを確認する(S14)。この確認は、RAM13の所定のエリアに書き込まれたキーワードが正しく記憶されているか否かにより判断する。キーワードが正しく記憶されていればバックアップは有効であり、逆に、キーワードが正しくなければバックアップデータは破壊されているので、そのバックアップは有効ではない。バックアップが有効であれば(S14:Yes)、処理をS21へ移行して、主制御基板Cの各状態を電源の断前の状態に復帰させる。一方、バックアップが有効でなければ(S14:No)、処理をS15へ移行して初期化処理を実行する。   First, interrupts are prohibited (S11), and then a temporary stack pointer is set so as not to destroy the data stacked in the original stack area (S12). It is confirmed whether or not the clear switch 23 is turned on (S13). If the clear switch 23 is turned on (S13: Yes), the process proceeds to S15 and the initialization process is executed. If the clear switch 23 is not turned on (S13: No), it is confirmed whether the backup is valid (S14). 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 (S14: Yes), the process proceeds to S21, 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 (S14: No), the process proceeds to S15 and the initialization process is executed.

S15の処理からの初期化処理では、まず、正規のスタックポインタを設定し、スタックの内容を整えた後(S15)、RAMクリア及び初期化処理を実行して(S16)、RAM13及びI/O等の各値を初期化する。その後、割込を許可し(S17)、その割込を使って初期化コマンドを払出制御基板Hへ送信して(S18)、主制御基板Cで初期化処理が実行されたことを払出制御基板Hへ報せる。払出制御基板Hは、主制御基板Cに比べて処理が軽いので、主制御基板Cより先に立ち上げ処理(復電処理)が終了する。よって、払出制御基板Hは、主制御基板Cから送信される初期化コマンドを確実に受信することができる。主制御基板Cは、初期化コマンドの送信後、その初期化コマンドを受信した払出制御基板Hが初期化処理を完了するために充分な時間をウエイトするためにウエイト処理を実行して(S19)、次の処理への移行を所定時間待機する。ウエイト処理の実行後は、払出制御基板Hも確実に立ち上がっているので、処理をS20の各処理へ移行して、遊技の制御を開始する。   In the initialization process from the process of S15, first, a normal stack pointer is set, the contents of the stack are adjusted (S15), the RAM clearing and initialization process is executed (S16), the RAM 13 and the I / O Initialize each value such as. Thereafter, the interruption is permitted (S17), an initialization command is transmitted to the payout control board H using the interrupt (S18), and the payout control board indicates that the initialization process has been executed on the main control board C. Tell H. Since the payout control board H is lighter in processing than the main control board C, the start-up process (recovery 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 transmitting the initialization command, the main control board C executes a wait process so that the payout control board H that has received the initialization command waits for a sufficient time to complete the initialization process (S19). , And wait for a predetermined time to shift to the next processing. After the execution of the wait process, the payout control board H has also risen reliably, so the process shifts to each process of S20 and game control is started.

S21からの復帰処理(復電処理)では、まず、バックアップエリア13dへ退避した各レジスタやI/O等のデータをそのバックアップエリア13dから読み出して、これら各データを元のレジスタやI/O等へ書き込む(S21)。更に、バックアップエリア13dからスタックポインタの値を読み出して、これをスタックポインタへ書き込み、電源断前(停電前)の状態、即ちNMI割込発生前の状態に戻す(S22)。その後、割込を許可し(S23)、残賞球数カウンタ13cの値を賞球払出許可コマンドの2バイト目のデータとしてセットし、許可した割込を使って、その賞球払出許可コマンドを払出制御基板Hへ送信する(S24)。払出制御基板Hは、この賞球払出許可コマンドを受信することにより、賞球の払い出しが可能になる。その後、NMI割込をリターンし、処理を電源断前に実行していたところへ戻して、制御を電源断前の状態から続行する。   In the return processing (recovery processing) from S21, first, data such as each register and I / O saved in the backup area 13d is read from the backup area 13d, and each of these data is restored to the original register, I / O, etc. (S21). Further, the value of the stack pointer is read from the backup area 13d and written to the stack pointer to return to the state before power interruption (before power failure), that is, the state before the occurrence of NMI interruption (S22). Thereafter, the interruption is permitted (S23), the value of the remaining ball counter 13c is set as the second byte data of the prize ball payout permission command, and the prize ball payout permission command is set using the permitted interrupt. It transmits to the payout control board H (S24). When the payout control board H receives the prize ball payout permission command, the payout ball can be paid out. Thereafter, the NMI interrupt is returned, the processing is returned to the place where it was executed before the power was turned off, and the control is continued from the state before the power was turned off.

図5は、主制御基板Cの各処理(S20)の中で実行される賞球処理のフローチャートである。賞球処理は、普通入賞口2や第1種始動口4或いは大入賞口5へ入賞した打球を検出する入賞検出処理と(S30)、賞球コマンドを払出制御基板Hへ送信する賞球コマンド送信処理と(S40)、払出制御基板Hによって払い出された賞球を検出する賞球検出処理(S50)との3つの処理によって構成されている。   FIG. 5 is a flowchart of the prize ball process executed in each process (S20) of the main control board C. The winning ball process includes a winning detection process for detecting a hit ball that has won the normal winning slot 2, the first type starting port 4 or the big winning slot 5 (S30), and a winning ball command for transmitting a winning ball command to the payout control board H. The process consists of three processes: a transmission process (S40) and a prize ball detection process (S50) for detecting a prize ball paid out by the payout control board H.

入賞検出処理(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 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), “6” is set to the value-th prize ball buffer 13a of the prize ball pointer 13b in order to pay out six prize balls. 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 a ball is not 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 a prize ball command transmission process of S40 is performed. Migrate to

賞球コマンド送信処理(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 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 0th prize ball buffer 13a, which is the prize ball number data transmitted by the prize ball command, is added to the remaining prize ball counter 13c (S43). Then, the value of the first and subsequent prize ball buffers 13a is shifted one byte at a time toward the smaller address side (S44), the value of the prize ball buffer 13a is updated, and the value of the transmitted 0th prize ball buffer 13a is updated. Further, “1” is subtracted from the value of the prize ball pointer 13b (S45). On the other hand, in the process of S41, if the value of the prize ball pointer 13b is “0” (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, the prize ball command transmission process (S40) is terminated, and the process proceeds to a prize ball detection process of S50.

賞球検出処理(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 ball count switch 22 is turned on (S51). If it is detected that the prize ball count switch 22 is turned on (S51: Yes), it means that one prize ball has been paid out, so the value of the remaining prize ball counter 13c is confirmed (S52), If “0” is not “0” (S52: No), “1” is subtracted from the value of the remaining winning ball counter 13c corresponding to the paid-out winning ball (S53). On the other hand, if the turn-on of the winning ball count switch 22 is not detected (S51: No), the winning ball is not paid out, and even if the turning-on of the winning ball count switch 22 is detected, the remaining winning ball number counter If the value of 13c is “0” (S51: Yes, S52: Yes), the value of the remaining prize ball number counter 13c cannot be subtracted, so the process of S53 is skipped and a prize ball detection process (S50). ) Ends. 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.

コマンド受信処理では、まず、受信したコマンドが初期化コマンドであるか否かを判断する(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 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 payout permission command (S63). If the received command is a winning ball payout permission command (S63: Yes), a value indicated as the second byte data of the winning ball payout permission command is written to the remaining ball number counter 33a (S64). The value of the ball counter 33a is made to coincide with the value of the remaining prize ball counter 13c of the main control board C. Further, in order to store the reception of the winning ball payout permission command, the winning ball payout permission flag 33c is turned on (S65), and the command receiving process is terminated.

受信したコマンドが、初期化コマンドでも賞球払出許可コマンドでもなければ(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 ball number counter 33a (S67). End the process. On the other hand, if the received command is not a prize ball command (S66: No), processing according to the received command is executed (S68), and this command reception processing is terminated.

図7は、パチンコ機Pの電源入時に払出制御基板Hで実行される立ち上げ処理(復電処理)のフローチャートである。この処理では、バックアップが有効であれば、バックアップエリア33dに記憶された各データを元の状態に戻し、賞球の払出制御を電源が断される前の状態から続行する。一方、バックアップが有効でなかったり、或いは、バックアップが有効であっても電源入時にクリアスイッチ23が押下された場合には、初期化処理を実行する。   FIG. 7 is a flowchart of start-up processing (power recovery 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 33d 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 clear switch 23 is pressed when the power is turned on even if the backup is valid, an initialization process is executed.

まず、割込を禁止し(S71)、次に、本来のスタック領域にスタックされているデータを壊さないために、仮のスタックポインタを設定する(S72)。クリアスイッチ23がオンされているか否かを確認し(S73)、オンされていれば(S73:Yes)、処理をS75へ移行して初期化処理を実行する。クリアスイッチ23がオンされていなければ(S73:No)、バックアップが有効であるか否かを確認する(S74)。この確認は、RAM33の所定のエリアに書き込まれたキーワードが正しく記憶されているか否かにより判断する。キーワードが正しく記憶されていればバックアップは有効であり、逆に、キーワードが正しくなければバックアップデータは破壊されているので、そのバックアップは有効ではない。バックアップが有効であれば(S74:Yes)、処理をS82へ移行して、払出制御基板Hの各状態を電源の断前の状態に復帰させる。一方、バックアップが有効でなければ(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 clear switch 23 is turned on (S73). If it is turned on (S73: Yes), the process proceeds to S75, and the initialization process is executed. If the clear switch 23 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 S82, and each state of the payout control board H is returned to the state before the power is turned off. On the other hand, if the backup is not valid (S74: No), the process proceeds to S75 and the initialization process is executed.

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)、払出制御基板Hのメイン処理となる各処理を実行する(S81)。図8の賞球払出処理は、この各処理(S81)の中で実行されるので、払出制御基板Hによる賞球の払い出しは、初期化フラグ33bまたは賞球払出許可フラグ33cのいずれかがオンされるまで待機されることになる。   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 RAM 33 and I / O Initialize each value such as. Thereafter, interrupts are permitted (S77), and the above-described command reception process of FIG. 6 can be executed. After permitting the interrupt, the process loops until either the initialization flag 33b or the prize ball payout permission flag 33c is turned on in order to wait for the prize ball payout permission from the main control board C (S78: No). , S79: No). If either the initialization flag 33b or the prize ball payout permission flag 33c is turned on (S78: Yes or S79: Yes), it means that the main control board C has given out the prize ball payout permission. Therefore, in such a case, in preparation for the next power-off, both the initialization flag 33b and the prize ball payout permission flag 33c are turned off (S80), and then each process as the main process of the payout control board H is executed (S80). S81). Since the prize ball payout process of FIG. 8 is executed in each process (S81), either the initialization flag 33b or the prize ball payout permission flag 33c is turned on for the payout of the prize ball by the payout control board H. It will wait until it is done.

なお、主制御基板Cから送信される初期化コマンドを受信して初期化フラグ33bがオンされた場合であっても(S78:Yes)、処理をS80へ移行するので、RAMクリア及び初期化処理(S76)を重複して実行することがない。   Even when the initialization command transmitted from the main control board C is received and the initialization flag 33b is turned on (S78: Yes), the process proceeds to S80, so that the RAM clear and initialization process is performed. (S76) is not executed repeatedly.

S82からの復帰処理では、まず、バックアップエリア33dへ退避した各レジスタやI/O等のデータをそのバックアップエリア33dから読み出して、これら各データを元のレジスタやI/O等へ書き込む(S82)。更に、バックアップエリア33dからスタックポインタの値を読み出して、これをスタックポインタへ書き込み、電源断前(停電前)の状態、即ちNMI割込発生前の状態に戻す(S83)。その後、割込を許可して(S84)、図6のコマンド受信処理を実行可能とする。割込の許可後は、主制御基板Cからの賞球の払出許可をウエイトするべく、初期化フラグ33b又は賞球払出許可フラグ33cのいずれかがオンされるまで処理をループする(S85:No,S86:No)。   In the return processing from S82, first, data such as each register and I / O saved in the backup area 33d is read from the backup area 33d, and these data are written in the original register and I / O (S82). . Further, the value of the stack pointer is read from the backup area 33d and written to the stack pointer to return to the state before the power interruption (before the power failure), that is, the state before the occurrence of the NMI interrupt (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 initialization flag 33b or the prize ball payout permission flag 33c is turned on in order to wait for the prize ball payout permission from the main control board C (S85: No). , S86: No).

賞球払出許可フラグ33cがオンされれば(S85:Yes)、主制御基板Cから賞球の払出許可が出されたということである。よって、かかる場合には、次の電源断に備えて、賞球払出許可フラグ33cをオフした後(S88)、NMI割込をリターンし、処理を電源断前に実行していたところへ戻して、制御を電源断前の状態から続行する。これにより賞球の払い出しが可能となる。   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 (S88), the NMI interrupt is returned, and the process is returned to the place where it was executed before the power-off. Continue control from the state before the power was turned off. This makes it possible to pay out the winning ball.

一方、初期化フラグ33bがオンされれば(S85:No,S86:Yes)、主制御基板Cから初期化コマンドが送信されたということである。よって、かかる場合には、RAMクリア及び初期化処理を実行して(S87)、払出制御基板Hを初期化した後、払出制御基板Hのメイン処理となる各処理を実行する(S81)。図8の賞球払出処理は、この各処理(S81)の中で実行されるので、払出制御基板Hによる賞球の払い出しは、初期化フラグ33bがオンされるまで待機されることになる。   On the other hand, if the initialization flag 33b is turned on (S85: No, S86: Yes), it means that the initialization command is transmitted from the main control board C. Therefore, in such a case, the RAM clearing and initialization process is executed (S87), the payout control board H is initialized, and then the main process of the payout control board H is executed (S81). Since the prize ball payout process of FIG. 8 is executed in each process (S81), the payout of the prize ball by the payout control board H is on standby until the initialization flag 33b is turned on.

なお、図4で説明した通り、主制御基板Cは初期化コマンドの送信後、ウエイト処理(S19)を実行しその後の処理の実行を所定時間待機するので、払出制御基板HによるRAMクリア及び初期化処理(S87)の実行中に、主制御基板Cから新たなコマンドが送信されることはない。よって、払出制御基板Hは、かかる場合にも遊技の払出制御を正常に行うことができるのである。   As described with reference to FIG. 4, the main control board C executes the wait process (S19) after transmission of 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.

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

S93の処理において、賞球カウントスイッチ22のオンが検出されれば(S93:Yes)、賞球の払い出しが行われたということである。よって、かかる場合には、残賞球数カウンタ33aの値を確認し(S94)、その値が「0」でなければ(S94:No)、払い出された賞球に対応して残賞球数カウンタ33aの値を「1」減算し(S95)、この賞球払出処理を終了する。一方、賞球カウントスイッチ22のオンが検出されない場合や(S93:No)、賞球カウントスイッチ22のオンが検出されても(S93:Yes)、残賞球数カウンタ33aの値が「0」であれば(S94:Yes)、S95の処理をスキップして、この賞球払出処理を終了する。   If it is detected in the process of S93 that the prize ball count switch 22 is turned on (S93: 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 (S94), and if the value is not "0" (S94: No), the remaining prize ball corresponding to the paid-out prize ball. The value of the number counter 33a is decremented by “1” (S95), and this prize ball payout process is terminated. On the other hand, if the prize ball count switch 22 is not detected to be on (S93: No), or the prize ball count switch 22 is detected to be on (S93: Yes), the value of the remaining prize ball number counter 33a is “0”. If so (S94: Yes), the process of S95 is skipped and this prize ball payout process is terminated.

以上説明したように、本実施例のパチンコ機Pによれば、賞球の払出残数を記憶する主制御基板Cおよび払出制御基板Hの残賞球数カウンタ13c,33aの値は、バックアップ用のコンデンサ13x,33xによって、それぞれパチンコ機Pの電源が切断された後も保持される。よって、停電などの発生によってパチンコ機Pの電源が突然切断された場合にも、未払いの賞球数を記憶して、パチンコ機Pの電源が再投入された後に、それらを確実に払い出すことができる。   As described above, according to the pachinko machine P of the present embodiment, the values of the remaining award ball counters 13c and 33a of the main control board C and the payout control board H that store the award ball payout remaining numbers are used for backup. The capacitors 13x and 33x hold the pachinko machine P after the power is turned off. Therefore, even if the power supply of the pachinko machine P is suddenly cut off due to the occurrence of a power failure or the like, the number of unpaid prize balls is memorized, and after the power of the pachinko machine P is turned on again, it should be paid out reliably Can do.

しかも、かかる未払い分の賞球の払い出しは、主制御基板Cから払出制御基板Hへ初期化コマンド又は賞球払出許可コマンドのいずれかが送信された後に行われる。よって、主制御基板Cと払出制御基板Hとの立ち上げ処理(復電処理)に要する時間が異なっても、払出制御基板Hによって行われる賞球の払い出しを、主制御基板C及び払出制御基板Hの双方で確実に検出することができる。   Moreover, the payout of unpaid prize balls is performed after either the initialization command or the prize ball payout permission command is transmitted from the main control board C to the payout control board H. Therefore, even when the time required for the start-up process (recovery process) between the main control board C and the payout control board H is different, the main control board C and the payout control board are used for paying out the prize balls performed by the payout control board H. It is possible to reliably detect both of H.

また、主制御基板Cは、賞球払出許可コマンドの2バイト目のデータとして残賞球数カウンタ13cの値をセットして送信し、払出制御基板は、その2バイト目のデータを自身の残賞球数カウンタ33aの値として書き換えるので、電源の再入時に、両制御基板C,Hの残賞球数カウンタ13c,33aの値を一致させることができる。よって、両制御基板C,Hの残賞球数カウンタ13c,33aの値が不一致である場合に生じる賞球オーバーエラーや賞球アンダーエラーの発生を抑制して、電源再入後の遊技を円滑に開始させることができる。更に、主制御基板Cは、自己のバックアップが有効でない場合には、RAMクリア及び初期化処理(S16)を実行し、その後、払出制御基板Hへ初期化コマンドを送信する。払出制御基板Hでは、この初期化コマンドを受信すると、同様に、RAMクリア及び初期化処理(S87)を実行する。よって、バックアップが有効でない場合の電源の再入時においても、両制御基板C,Hの残賞球数カウンタ13c,33aの値を「0」に一致させて、遊技を円滑に開始させることができるのである。   Further, the main control board C sets and transmits the value of the remaining ball number counter 13c as the second byte data of the winning ball payout permission command, and the payout control board transmits the second byte data of its own remaining byte. Since the value is rewritten as the value of the winning ball counter 33a, the values of the remaining winning ball counters 13c and 33a of both control boards C and H can be made coincident when the power is turned on again. Therefore, the occurrence of a prize ball over error or a prize ball under error that occurs when the values of the remaining prize ball counters 13c and 33a of both control boards C and H do not coincide with each other, and the game after the power is turned on again is smooth. Can be started. Further, when the backup of the main control board C is not valid, the main control board C executes the RAM clearing and initialization process (S16), and then transmits an initialization command to the payout control board H. When the payout control board H receives this initialization command, the RAM clear and initialization process (S87) is similarly executed. Therefore, even when the power is turned on again when the backup is not effective, the values of the remaining winning ball counters 13c and 33a of both the control boards C and H can be made equal to “0” to start the game smoothly. It can be done.

次に、図9から図12を参照して、第2実施例について説明する。第2実施例は、前記した第1実施例と同様に、払出制御基板Hの復電処理(停電解消後の立ち上げ処理)において、未払いの賞球の払い出しを待機するものである。賞球の払い出しの待機は、第1実施例では、払出制御基板Hが賞球払出許可コマンドまたは初期化コマンドの受信を待機することによりなされたが、第2実施例では、初期化コマンドの他に、パチンコ機Pの状態を示すコマンドである「タンク球無し状態コマンド」或いは「タンク球無し状態解除コマンド」や、「下皿満タン状態コマンド」或いは「下皿満タン状態解除コマンド」の受信を、払出制御基板Hが待機することによりなされる。また、前記した第1実施例では、賞球払出許可コマンドまたは初期化コマンドはいずれも主制御基板Cから割込処理によって送信され、払出制御基板Hの割込処理で受信された。これに対し、第2実施例では、各コマンドは主制御基板Cの復電処理のメイン処理で送信され、払出制御基板Hの復電処理のメイン処理で受信される。   Next, a second embodiment will be described with reference to FIGS. In the second embodiment, in the same way as the first embodiment described above, the payout control board H waits for the payout of unpaid prize balls in the power recovery process (start-up process after the power failure is canceled). In the first embodiment, the waiting for payout of the winning ball is made by waiting for the payout control board H to receive the winning ball payout permission command or the initialization command. In the second embodiment, in addition to the initialization command, In addition, a “tank ball no state command” or “tank ball no state release command”, “lower pan full state command” or “lower pan full state release command” which is a command indicating the state of the pachinko machine P is received. Is performed when the payout control board H waits. In the first embodiment described above, both the prize ball payout permission command and the initialization command are transmitted from the main control board C by the interrupt process and received by the interrupt process of the payout control board H. On the other hand, in the second embodiment, each command is transmitted in the main process of the power recovery process of the main control board C, and is received in the main process of the power recovery process of the payout control board H.

なお、「タンク球無し状態コマンド」は、払い出される賞球や貸し球を貯留する貯留タンク(図示せず)に球が貯留されていない(不足する)状態を示すコマンドであり、逆に、「タンク球無し状態解除コマンド」は、該貯留タンクに球が充分に貯留されていることを示すコマンドである。また、「下皿満タン状態コマンド」は、払い出された賞球を貯留する下皿(図示せず)が満タン状態であることを示すコマンドであり、逆に、「下皿満タン状態解除コマンド」は、該下皿が満タンでないことを示すためのコマンドである。これらのコマンドは、いずれも1バイトで構成されている。以下、前記した第1実施例と同一の部分には同一の符号を付してその説明を省略する。   The “no tank ball state command” is a command indicating a state in which no balls are stored (insufficient) in a storage tank (not shown) for storing awarded balls or lending balls to be paid out. The “no tank ball state release command” is a command indicating that the ball is sufficiently stored in the storage tank. Further, the “lower plate full state command” is a command indicating that the lower plate (not shown) for storing the paid-out prize balls is in a full state. The “cancel command” is a command for indicating that the lower pan is not full. Each of these commands is composed of 1 byte. Hereinafter, 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の電気的構成を示したブロック図であり、特に、パチンコ機Pの遊技内容の制御を行う主制御基板Cと、賞球や貸し球の払出制御を行う払出制御基板Hとの電気的構成を示したブロック図である。この第2実施例のブロック図には、前記した第1実施例のブロック図(図2)に対して、主制御基板Cへ信号を出力するスイッチとしてタンク球切スイッチ26と下皿満タンスイッチ27とが追加され、払出制御基板HのRAM33に、タンク球無しフラグ33eと下皿満タンフラグ33fとが追加され、賞球払出許可フラグ33cが削除されている。なお、当然のことながら、タンク球切スイッチ26及び下皿満タンスイッチ27は、第1実施例のパチンコ機Pも有するスイッチであり、図2では、他の入出力装置25に含めて記載されている。第2実施例では、説明を容易にするために、これらのスイッチ26,27を表記している。   FIG. 9 is a block diagram showing an electrical configuration of the pachinko machine P according to the second embodiment, and in particular, a main control board C that controls the game contents of the pachinko machine P, and payout control of prize balls and rental balls. FIG. 6 is a block diagram showing an electrical configuration with a payout control board H for performing The block diagram of the second embodiment is different from the block diagram of the first embodiment (FIG. 2) in that the tank ball switch 26 and the lower pan full switch are used as switches for outputting signals to the main control board C. 27, a tank ball no flag 33e and a lower pan full flag 33f are added to the RAM 33 of the payout control board H, and the prize ball payout permission flag 33c is deleted. As a matter of course, the tank ball switch 26 and the lower pan full switch 27 are switches that also have the pachinko machine P of the first embodiment, and are included in the other input / output device 25 in FIG. ing. In the second embodiment, these switches 26 and 27 are shown for ease of explanation.

タンク球切スイッチ26は、払出制御基板Hによって払い出される賞球や貸し球を貯留する貯留タンク(図示せず)に、球が貯留されているか否かを検出するためのスイッチである。下皿満タンスイッチ27は、パチンコ機Pの下皿(図示せず)が球で一杯になっているか否かを検出するためのスイッチである。両スイッチ26,27の検出信号は、入出力ポート15を介して、主制御基板CのMPU11によって読み込まれる。MPU11は、貯留タンクに球が無ければ「タンク球無し状態コマンド」を、逆に、貯留タンクに球があれば「タンク球無し状態解除コマンド」を、それぞれ払出制御基板Hへ送信する。また、MPU11は、下皿が満タンであれば「下皿満タン状態コマンド」を、逆に、下皿が満タンで無ければ「下皿満タン状態解除コマンド」を、それぞれ払出制御基板Hへ送信する。払出制御基板Hは、「タンク球無し状態コマンド」或いは「下皿満タン状態コマンド」のいずれかを受信した場合には、そのコマンドの解除コマンドを受信するまでの間、賞球および貸し球の払い出し動作を中止する。   The tank ball cut switch 26 is a switch for detecting whether or not a ball is stored in a storage tank (not shown) that stores a prize ball or a rental ball paid out by the payout control board H. The lower pan full switch 27 is a switch for detecting whether or not the lower pan (not shown) of the pachinko machine P is filled with balls. The detection signals of both switches 26 and 27 are read by the MPU 11 of the main control board C via the input / output port 15. The MPU 11 transmits a “no tank ball state command” to the payout control board H if there is no ball in the storage tank, and conversely, if there is a ball in the storage tank, the MPU 11 transmits a “no tank ball state release command”. Also, the MPU 11 issues a “lower pan full state command” if the lower pan is full, and conversely, if the lower pan is not full, a “lower pan full state release command”, respectively. Send to. When the payout control board H receives either the “no tank ball state command” or the “bottom pan full state command”, the payout control board H receives the award ball and the lending ball until the command cancel command is received. Cancels the payout operation.

払出制御基板HのRAM33のタンク球無しフラグ33eは、貯留タンクに球があるか否かの状態を記憶するためのフラグである。主制御基板Cから送信される「タンク球無し状態コマンド」を受信した場合にオンされ、逆に、「タンク球無し状態解除コマンド」を受信した場合にオフされる。下皿満タンフラグ33fは、下皿が満タンであるか否かの状態を記憶するためのフラグである。主制御基板Cから送信される「下皿満タン状態コマンド」を受信した場合にオンされ、逆に、「下皿満タン状態解除コマンド」を受信した場合にオフされる。タンク球無しフラグ33eまたは下皿満タンフラグ33fのいずれかがオンされている場合には、賞球および貸し球の払い出しが中止される。   The tank ball no flag 33e in the RAM 33 of the payout control board H is a flag for storing the state of whether or not there is a ball in the storage tank. It is turned on when the “tank ball absence state command” transmitted from the main control board C is received, and conversely, it is turned off when the “tank ball absence state release command” is received. The lower pan full flag 33f is a flag for storing a state of whether or not the lower pan is full. It is turned on when a “lower pan full state command” transmitted from the main control board C is received, and is turned off when a “lower pan full state release command” is received. When either the tank ball no flag 33e or the lower pan full flag 33f is on, the payout of the winning ball and the rental ball is stopped.

次に、図10から図12を参照して、第2実施例のパチンコ機Pの動作を説明する。図10は、パチンコ機Pの電源入時に主制御基板Cで実行される立ち上げ処理(復電処理)のフローチャートである。この処理では、バックアップが有効であれば、バックアップエリア13dに記憶された各データを元の状態に戻し、遊技の制御を電源が断される前の状態から続行する。一方、バックアップが有効でなかったり、或いは、バックアップが有効であっても電源入時にクリアスイッチ23が押下された場合には、初期化処理を実行する。   Next, the operation of the pachinko machine P according to the second embodiment will be described with reference to FIGS. FIG. 10 is a flowchart of start-up processing (power recovery processing) executed by the main control board C when the pachinko machine P is powered on. In this process, if the backup is valid, each data stored in the backup area 13d 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 clear switch 23 is pressed when the power is turned on even if the backup is valid, an initialization process is executed.

S11からS14までの処理は、第1実施例と同様であるので、その説明は省略する。S15の処理からの初期化処理では、まず、正規のスタックポインタを設定し、スタックの内容を整えた後(S15)、RAMクリア及び初期化処理を実行して(S16)、RAM13及びI/O等の各値を初期化する。その後、割込禁止状態のまま、図10のメイン処理により初期化コマンドを払出制御基板Hへ送信し(S107)、主制御基板Cで初期化処理が実行されたことを払出制御基板Hへ報せる。払出制御基板Hは、主制御基板Cに比べて処理が軽いので、主制御基板Cより先に立ち上げ処理(復電処理)が終了する。よって、払出制御基板Hは、主制御基板Cから送信される初期化コマンドを確実に受信することができる。主制御基板Cは、初期化コマンドの送信後、その初期化コマンドを受信した払出制御基板Hが初期化処理を完了するために充分な時間をウエイトするためにウエイト処理を実行して(S108)、次の処理への移行を所定時間待機する。ウエイト処理の実行後は、払出制御基板Hも確実に立ち上がっているので、割込を許可し(S109)、処理をS110の各処理へ移行して、遊技の制御を開始する。   Since the processing from S11 to S14 is the same as that of the first embodiment, the description thereof is omitted. In the initialization process from the process of S15, first, a normal stack pointer is set, the contents of the stack are adjusted (S15), the RAM clearing and initialization process is executed (S16), the RAM 13 and the I / O Initialize each value such as. Thereafter, in the interrupt disabled state, an initialization command is transmitted to the payout control board H by the main process of FIG. 10 (S107), and the fact that the initialization process has been executed by the main control board C is reported to the payout control board H. Make it. Since the payout control board H is lighter in processing than the main control board C, the start-up process (recovery 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 transmitting the initialization command, the main control board C executes a wait process so that the payout control board H that has received the initialization command waits for a sufficient time to complete the initialization process (S108). , And wait for a predetermined time to shift to the next processing. After the execution of the wait process, the payout control board H is also surely started up. Therefore, an interruption is permitted (S109), the process is shifted to each process of S110, and the game control is started.

バックアップが有効であれば(S14:Yes)、処理をS111へ移行して、主制御基板Cの各状態を電源の断前の状態に復帰させる。S111からの復帰処理(復電処理)では、まず、タンク球切スイッチ26の信号を読んで、貯留タンクに球があるか否かを検出する。貯留タンクに球が無ければ(S111:Yes)、タンク球無し状態コマンドを払出制御基板Hへ送信し(S112)、逆に、貯留タンクに球があれば(S111:No)、タンク球無し状態解除コマンドを払出制御基板Hへ送信する(S113)。次に、下皿満タンスイッチ27の信号を読んで、下皿が満タンであるか否かを検出する。下皿が満タンであれば(S114:Yes)、下皿満タン状態コマンドを払出制御基板Hへ送信し(S115)、逆に、下皿が満タンでなければ(S114:No)、下皿満タン状態解除コマンドを払出制御基板Hへ送信する(S116)。   If the backup is valid (S14: Yes), the process proceeds to S111, and each state of the main control board C is returned to the state before the power is turned off. In the return process (recovery process) from S111, first, a signal from the tank ball switch 26 is read to detect whether or not there is a ball in the storage tank. If there is no ball in the storage tank (S111: Yes), a tank ball no state command is transmitted to the payout control board H (S112). Conversely, if there is a ball in the storage tank (S111: No), there is no tank ball state. A cancel command is transmitted to the payout control board H (S113). Next, the signal of the lower pan full switch 27 is read to detect whether the lower pan is full. If the lower pan is full (S114: Yes), a lower pan full state command is transmitted to the dispensing control board H (S115). Conversely, if the lower pan is not full (S114: No), A dish full state release command is transmitted to the dispensing control board H (S116).

S111からS116の各処理によりコマンドを送信した後、バックアップエリア13dへ退避した各レジスタやI/O等のデータをそのバックアップエリア13dから読み出して、これら各データを元のレジスタやI/O等へ書き込む(S117)。更に、バックアップエリア13dからスタックポインタの値を読み出して、これをスタックポインタへ書き込み、電源断前(停電前)の状態、即ちNMI割込発生前の状態に戻す(S118)。同様に、割込状態についても、停電発生時に実行される図3の処理で記憶しておいた電源断前(停電前)の状態、即ちNMI割込発生前の状態に戻す(S119)。その後、NMI割込をリターンして、処理を電源断前に実行していたところへ戻して、制御を電源断前の状態から続行する。   After the command is transmitted by each processing from S111 to S116, the data of each register and I / O saved in the backup area 13d is read from the backup area 13d, and these data are transferred to the original register and I / O. Write (S117). Further, the value of the stack pointer is read from the backup area 13d and written to the stack pointer to return to the state before the power interruption (before the power failure), that is, the state before the occurrence of the NMI interrupt (S118). Similarly, the interrupt state is returned to the state before the power interruption (before the power failure) stored in the processing of FIG. 3 executed at the time of the power failure, that is, the state before the NMI interrupt is generated (S119). Thereafter, the NMI interrupt is returned to return to the place where the process was executed before the power was turned off, and the control is continued from the state before the power was turned off.

図11は、パチンコ機Pの電源入時に払出制御基板Hで実行される立ち上げ処理(復電処理)のフローチャートである。この処理では、バックアップが有効であれば、バックアップエリア33dに記憶された各データを元の状態に戻し、賞球の払出制御を電源が断される前の状態から続行する。一方、バックアップが有効でなかったり、或いは、バックアップが有効であっても電源入時にクリアスイッチ23が押下された場合には、初期化処理を実行する。   FIG. 11 is a flowchart of start-up processing (power recovery processing) executed by the payout control board H when the pachinko machine P is turned on. In this process, if the backup is valid, each data stored in the backup area 33d 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 clear switch 23 is pressed when the power is turned on even if the backup is valid, an initialization process is executed.

S71からS74までの処理は、第1実施例と同様であるので、その説明は省略する。S75の処理からの初期化処理では、まず、正規のスタックポインタを設定し、スタックの内容を整えた後(S75)、RAMクリア及び初期化処理を実行して(S76)、RAM33及びI/O等の各値を初期化する。その後、割込禁止状態のままで、図12に示す復電時コマンド受信処理(S131)を実行する。後述するように、復電時コマンド受信処理(S131)で初期化コマンドが受信されると初期化フラグ33bがオンされるので(S152)、次の電源断に備えて、この初期化フラグ33bをオフした後(S132)、割込を許可して(S133)、各処理へ移行する(S134)。図8に示す賞球払出処理は、この各処理(S134)の中で実行されるので、払出制御基板Hによる賞球の払い出しは、復電時コマンド受信処理(S131)が終了するまで待機される。   Since the processing from S71 to S74 is the same as that in the first embodiment, the description thereof is omitted. 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 RAM 33 and I / O Initialize each value such as. After that, the power recovery command reception process (S131) shown in FIG. As will be described later, when the initialization command is received in the power recovery command reception process (S131), the initialization flag 33b is turned on (S152), so that the initialization flag 33b is set in preparation for the next power-off. After turning off (S132), the interrupt is permitted (S133), and the process proceeds to each process (S134). Since the prize ball payout process shown in FIG. 8 is executed in each process (S134), the payout of the prize ball by the payout control board H is waited until the command receiving process at power recovery (S131) is completed. The

なお、復電時コマンド受信処理(S131)の中で、主制御基板Cから送信される初期化コマンドを受信した場合にも、その後は、割込を許可して(S133)、各処理(S134)へ移行するので、RAMクリア及び初期化処理(S76)を重複して実行することがない。   Even when the initialization command transmitted from the main control board C is received during the power recovery command reception process (S131), after that, the interrupt is permitted (S133) and each process (S134). ), The RAM clear and initialization process (S76) is not executed repeatedly.

バックアップが有効であれば(S74:Yes)、処理をS141へ移行して、払出制御基板Hの各状態を電源の断前の状態に復帰させる。S141からの復帰処理では、まず、割込禁止状態のまま、図12に示す復電時コマンド受信処理を実行する(S141)。後述するように、復電時コマンド受信処理で初期化コマンドが受信されると、初期化フラグ33bがオンされる(S152)。よって、復電時コマンド受信処理の実行後に、初期化フラグ33bがオンされていれば(S142:Yes)、初期化コマンドを受信したということであるので、RAMクリア及び初期化処理を実行して(S143)、RAM33及びI/O等の各値を初期化する。なお、S152の処理でオンされた初期化フラグ33bは、RAMクリア及び初期化処理(S143)によりオフされる。その後は、割込を許可して(S133)、処理を各処理へ移行する(S134)。前述したように、図8に示す賞球払出処理は、この各処理(S134)の中で実行されるので、払出制御基板Hによる賞球の払い出しは、復電時コマンド受信処理(S131)が終了するまで待機される。   If the backup is valid (S74: Yes), the process proceeds to S141, and each state of the payout control board H is returned to the state before the power is turned off. In the return process from S141, first, the power recovery command reception process shown in FIG. 12 is executed in the interrupt disabled state (S141). As will be described later, when the initialization command is received in the power recovery command reception process, the initialization flag 33b is turned on (S152). Therefore, if the initialization flag 33b is turned on after execution of the power recovery command reception process (S142: Yes), it means that the initialization command has been received, so the RAM clear and initialization process are executed. (S143) The RAM 33, I / O and other values are initialized. Note that the initialization flag 33b turned on in the processing of S152 is turned off by the RAM clearing and initialization processing (S143). Thereafter, interrupts are permitted (S133), and the process proceeds to each process (S134). As described above, the prize ball payout process shown in FIG. 8 is executed in each process (S134). Therefore, the payout control board H pays out the prize ball by the power recovery command reception process (S131). Wait until finished.

なお、図10で説明した通り、主制御基板Cは初期化コマンドの送信後、ウエイト処理(S108)を実行しその後の処理の実行を所定時間待機するので、払出制御基板HによるRAMクリア及び初期化処理(S143)の実行中に、主制御基板Cから新たなコマンドが送信されることはない。よって、払出制御基板Hは、かかる場合にも遊技の払出制御を正常に行うことができる。   As described with reference to FIG. 10, the main control board C executes the wait process (S108) after transmission of 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 (S143). Therefore, the payout control board H can normally perform the payout control of the game even in such a case.

一方、S141の復電時コマンド受信処理の実行後、初期化フラグ33bがオンされていなければ(S142:No)、初期化コマンドは受信されず、タンク球無し状態コマンド又はタンク球無し状態解除コマンドおよび下皿満タン状態コマンド又は下皿満タン状態解除コマンドが受信されたということである。これらのコマンドは、後述するように、賞球の払出許可コマンドとしての機能を有するコマンドである。よって、かかる場合には、バックアップエリア33dへ退避した各レジスタやI/O等のデータをそのバックアップエリア33dから読み出して、これら各データを元のレジスタやI/O等へ書き込み(S145)、更に、バックアップエリア33dからスタックポインタの値を読み出して、これをスタックポインタへ書き込んで(S146)、電源断前(停電前)の状態、即ちNMI割込発生前の状態に戻す。同様に、割込状態についても、停電発生時に実行される図3の処理で記憶しておいた電源断前(停電前)の状態、即ちNMI割込発生前の状態に戻す(S147)。その後、NMI割込をリターンし、処理を電源断前に実行していたところへ戻して、制御を電源断前の状態から続行する。この場合、制御は各処理(S134)の中のいずれかの処理へリターンするので、これにより賞球の払い出しが可能となる。   On the other hand, if the initialization flag 33b is not turned on after execution of the power recovery command reception process in S141 (S142: No), the initialization command is not received and the tank ball no state command or the tank ball no state release command is received. And a lower pan full state command or a lower pan full state release command has been received. As will be described later, these commands are commands having a function as a prize ball payout permission command. Therefore, in such a case, data such as each register and I / O saved in the backup area 33d is read from the backup area 33d, and each data is written to the original register and I / O (S145). Then, the value of the stack pointer is read from the backup area 33d and written to the stack pointer (S146) to return to the state before the power interruption (before the power failure), that is, the state before the occurrence of the NMI interruption. Similarly, the interrupt state is returned to the state before the power interruption (before the power failure) stored in the process of FIG. 3 executed at the time of the power failure, that is, the state before the NMI interrupt is generated (S147). Thereafter, the NMI interrupt is returned, the processing is returned to the place where it was executed before the power was turned off, and the control is continued from the state before the power was turned off. In this case, the control returns to one of the processes (S134), so that the winning ball can be paid out.

図12は、払出制御基板Hの立ち上げ処理(復電処理)の中で実行される復電時コマンド受信処理のフローチャートである。復電時コマンド受信処理(S131,S141)は、割込禁止状態で復電処理の中で実行される。前述したように、主制御基板Cと払出制御基板Hとは、8本のデータ線と1本のストローブ線とにより接続されており、ストローブ線のデータがアクティブになった時に、8本のデータ線上に出力されているデータが主制御基板Cから払出制御基板Hへコマンドとして送信されるが、ストローブ線は、払出制御基板Hの割込入力端子と入力ポートとにそれぞれ接続されているので、割込が禁止された状態であっても、ストローブ線の状態をポート入力(データ読込)することによりストローブ信号のアクティブを検出して、主制御基板Cから送信されるコマンドを受信することができる。この復電時コマンド受信処理では、かかるストローブ信号をポート入力(データ読込)することにより、割込禁止状態で各コマンド受信している。   FIG. 12 is a flowchart of a power recovery command reception process executed in the start-up process (power recovery process) of the payout control board H. The power recovery command reception process (S131, S141) is executed in the power recovery process in the interrupt disabled state. As described above, 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 eight data lines are connected. The data output on the line is transmitted as a command from the main control board C to the payout control board H, but the strobe line is connected to the interrupt input terminal and the input port of the payout control board H, respectively. Even when interrupts are prohibited, it is possible to detect the strobe signal active by inputting the port of the strobe line (data reading) and receive a command transmitted from the main control board C. . In this power recovery command reception processing, each command is received in an interrupt disabled state by inputting the strobe signal into the port (reading data).

図11に示すように、主制御基板Cの立ち上げ処理において払出制御基板Hへ送信されるのは、初期化コマンド、タンク球無し状態コマンド又はタンク球無し状態解除コマンド、および下皿満タン状態コマンド又は下皿満タン状態解除コマンドである。このうち最初に送信されるのは、初期化コマンド、タンク球無し状態コマンド又はタンク球無し状態解除コマンドの3コマンドのうちのいずれかである。よって、図12に示す復電時コマンド受信処理では、まず、この3コマンドのいずれの受信を待機する(S151:No,S153:No,S154:No)。   As shown in FIG. 11, in the start-up process of the main control board C, what is transmitted to the payout control board H is an initialization command, a tank ball no state command or a tank ball no state release command, and a lower pan full state Command or lower pan full state release command. Of these commands, the first command to be transmitted is one of three commands: an initialization command, a tank ball no state command, or a tank ball no state release command. Therefore, in the power recovery command reception process shown in FIG. 12, first, reception of any of these three commands is waited (S151: No, S153: No, S154: No).

初期化コマンドを受信した場合には(S151:Yes)、初期化フラグ33bをオンして(S152)、この処理を終了する。すると、図11を参照して説明したように、RAMクリア及び初期化処理が実行されていなければ、これが実行され(S143)、RAM33及びI/O等の各値が初期化される。その後、割込が許可されて(S133)、各処理へ移行し(S134)、賞球や貸し球の払い出しが可能な状態となる。このようにかかる場合には、初期化コマンドが賞球の払い出しを許可するコマンドとなり、払出制御基板Hは、初期化コマンドを受信するまで、賞球や貸し球の払い出しを待機するのである。   When the initialization command is received (S151: Yes), the initialization flag 33b is turned on (S152), and this process is terminated. Then, as described with reference to FIG. 11, if the RAM clearing and initialization processing is not executed, this is executed (S143), and the values of the RAM 33 and I / O are initialized. Thereafter, the interruption is permitted (S133), the process proceeds to each process (S134), and it becomes possible to pay out a winning ball or a rental ball. In such a case, the initialization command becomes a command for permitting the payout of the prize ball, and the payout control board H waits for the payout of the prize ball or the rental ball until the initialization command is received.

一方、3コマンドのうちタンク球無し状態コマンドを受信した場合には(S153:Yes)、タンク球無しフラグ33eをオンし(S156)、逆に、タンク球無し状態解除コマンドを受信した場合には(S154:Yes)、タンク球無しフラグ33eをオフする(S155)。次に、下皿満タン状態コマンド又は下皿満タン状態解除コマンドの受信を待機し(S157:No,S158:No)、下皿満タン状態コマンドを受信した場合には(S157:Yes)、下皿満タンフラグ33fをオンし(S160)、逆に、下皿満タン状態解除コマンドを受信した場合には(S158:Yes)、下皿満タンフラグ33fをオフして(S159)、この復電時コマンド受信処理を終了する。   On the other hand, if a tank ball no-status command is received (S153: Yes), the tank ball no-flag flag 33e is turned on (S156). Conversely, if a tank ball no-status release command is received, (S154: Yes), the tank ball absence flag 33e is turned off (S155). Next, it waits for reception of a lower pan full state command or a lower pan full state release command (S157: No, S158: No), and when a lower pan full state command is received (S157: Yes), The lower pan full flag 33f is turned on (S160). Conversely, when the lower pan full tank state release command is received (S158: Yes), the lower pan full flag 33f is turned off (S159). End the time command reception process.

図11を参照して説明したように、復電時コマンド受信処理の実行後は、各レジスタ、メモリ、I/O、スタックポインタ、割込状態などの値や状態を停電発生前の状態に戻して、停電発生時のアドレスへNMIリターンする(S145〜S147)。よって、かかる場合には、タンク球無し状態コマンド又はタンク球無し状態解除コマンド、および下皿満タン状態コマンド又は下皿満タン状態解除コマンドが、即ち、パチンコ機Pの状態を示すコマンドが賞球の払い出しを許可するコマンドとなり、払出制御基板Hは、これらのコマンドを受信するまで、賞球や貸し球の払い出しを待機するのである。   As described with reference to FIG. 11, after execution of the power recovery command reception process, the values and states of each register, memory, I / O, stack pointer, interrupt state, etc. are returned to the state before the occurrence of the power failure. The NMI returns to the address at the time of the power failure (S145 to S147). Therefore, in such a case, a tank ball no state command or a tank ball no state release command, and a lower pan full state command or a lower pan full state release command, that is, a command indicating the state of the pachinko machine P is a prize ball. The payout control board H waits for the payout of prize balls and rental balls until these commands are received.

以上説明したように、第2実施例のパチンコ機Pによれば、賞球の払出残数を記憶する主制御基板Cおよび払出制御基板Hの残賞球数カウンタ13c,33aの値は、バックアップ用のコンデンサ13x,33xによって、それぞれパチンコ機Pの電源が切断された後も保持されると共に、未払い分の賞球の払い出しは、主制御基板Cから払出制御基板Hへ初期化コマンド、又は、タンク球無し状態コマンド若しくはタンク球無し状態解除コマンドおよび下皿満タン状態コマンド若しくは下皿満タン状態解除コマンドが送信された後に行われる。よって、主制御基板Cと払出制御基板Hとの立ち上げ処理(復電処理)に要する時間が異なっても、払出制御基板Hによって行われる賞球の払い出しを、主制御基板C及び払出制御基板Hの双方で確実に検出することができる。   As described above, according to the pachinko machine P of the second embodiment, the values of the remaining prize ball counters 13c and 33a of the main control board C and the payout control board H that store the number of remaining prize balls are backed up. Are retained after the power of the pachinko machine P is turned off by the capacitors 13x and 33x, respectively, and the payout of unpaid prize balls is an initialization command from the main control board C to the payout control board H, or This is performed after a tank ball no state command or a tank ball no state release command and a lower pan full state command or a lower pan full state release command are transmitted. Therefore, even when the time required for the start-up process (recovery process) between the main control board C and the payout control board H is different, the main control board C and the payout control board are used for paying out the prize balls performed by the payout control board H. It is possible to reliably detect both of H.

しかも、かかる賞球や貸し球の払い出しの待機は、払出制御基板Hの復電処理の中で行われるので、払い出しの待機を復電処理の終了後NMI割込をリターンした後の各処理の中で行う場合に比べて、確実に待機させることができる。即ち、NMI割込をリターンすると(図7,図11参照)、停電発生時のアドレスへ制御が戻されるが、戻された先の制御が、図8のS92の処理のように、まさに賞球を払い出す直前の処理である場合には、例え賞球の払い出しを待機させる処理を各処理(S81,S134)の中に設けていても、1個の賞球が払い出されてしまう。このとき主制御基板Cが立ち上がっていなければ、その払い出された賞球を検出することはできない。これに対し、第1および第2実施例では、賞球や貸し球の払い出しの待機を、払出制御基板Hの復電処理の中で行っているので、賞球の払い出し処理を実行する直前に停電が発生した場合であっても、即ち、NMI割込のリターン先のアドレスが、まさに賞球を払い出す直前の処理である場合にも、かかる処理を主制御基板Cの立ち上げ後に実行させることができる。よって、停電解消後に払出制御基板Hによって行われる賞球の払い出しを、主制御基板C及び払出制御基板Hの双方が確実に立ち上がるまで待機させて、かかる払い出しを両制御基板C,Hに確実に検出させることができる。   Moreover, since the waiting for the payout of the winning ball or the lending ball is performed during the power recovery process of the payout control board H, each process after the NMI interrupt is returned after the power recovery process is completed. Compared with the case where it performs in, it can be made to wait reliably. That is, when the NMI interrupt is returned (see FIGS. 7 and 11), the control is returned to the address at the time of the power failure, but the returned control is exactly the prize ball as in the process of S92 of FIG. Is a process immediately before paying out, even if a process of waiting for the payout of the prize ball is provided in each process (S81, S134), one prize ball will be paid out. At this time, if the main control board C is not raised, the paid-out prize ball cannot be detected. On the other hand, in the first and second embodiments, the waiting for payout of the winning ball or the lending ball is performed during the power recovery process of the payout control board H, so that the winning ball payout process is performed immediately before the payout processing. Even when a power failure occurs, that is, when the return address of the NMI interrupt is just the process immediately before paying out the prize ball, the process is executed after the main control board C is started up. be able to. Therefore, the payout of the prize ball performed by the payout control board H after the power failure is canceled is waited until both the main control board C and the payout control board H are surely started up, and the payout is surely made to both the control boards C and H. Can be detected.

また、第2実施例では、賞球の払い出しを許可するコマンドとして、初期化コマンドの他に、パチンコ機Pの状態を示す、タンク球無し状態コマンド又はタンク球無し状態解除コマンド、および、下皿満タン状態コマンド又は下皿満タン状態解除コマンドを用いた。パチンコ機Pの状態は、停電発生前と停電解消後とで変化し得るので、停電解消後に、停電発生前のパチンコ機Pの状態のままで制御を再開すると、パチンコ機Pの動作に異常を来す場合がある。例えば、停電発生前は貯留タンクに球があっても、停電解消後に貯留タンクが空になっている場合に、払出制御基板Hが貯留タンクの球無しを認識せずに払い出しを行うと、賞球払出用モータ21をいくら駆動しても賞球が払い出されないので、該モータ21が回りっぱなしになってしまう。同様に、停電発生前は下皿が満タンになっていなくても、停電解消後に下皿が満タンになっている場合に、払出制御基板Hが下皿満タンを認識せずに払い出しを行うと、払い出された賞球が賞球の払出路に詰まってしまい、詰まった賞球が賞球払出用モータ21の位置にまで達すると、該モータ21の破損を招いてしまう。   In the second embodiment, as a command for permitting the payout of the prize ball, in addition to the initialization command, a tank ball no state command or a tank ball no state release command indicating the state of the pachinko machine P, and a lower plate A full tank state command or a lower pan full state command was used. Since the state of the pachinko machine P can change between before and after the power failure occurs, if the control is resumed in the state of the pachinko machine P before the occurrence of the power failure after the power failure, the operation of the pachinko machine P will be abnormal. May come. For example, even if there is a ball in the storage tank before the outage, and the storage tank is empty after the power outage is resolved, the payout control board H makes a payout without recognizing that there is no ball in the storage tank. The prize ball is not paid out no matter how much the ball payout motor 21 is driven, so that the motor 21 remains running. Similarly, even if the lower plate is not full before the power failure occurs, if the lower plate is full after the power failure is resolved, the payout control board H does not recognize that the lower plate is full. If it does so, the paid-out prize balls will be jammed in the prize ball payout path, and if the jammed prize balls reach the position of the prize ball payout motor 21, the motor 21 will be damaged.

これに対し、第2実施例では、賞球の払い出しを許可するコマンドとして、パチンコ機Pの状態を示す、タンク球無し状態コマンド又はタンク球無し状態解除コマンド、および、下皿満タン状態コマンド又は下皿満タン状態解除コマンドを用い、かかるコマンドによって示されたパチンコ機Pの状態をタンク球無しフラグ33eおよび下皿満タンフラグ33fに記憶している。タンク球無しフラグ33eおよび下皿満タンフラグ33fの各フラグ状態は、図11のS145及びS146の各処理が実行されても壊されず保持されるように構成されている。即ち、これらのフラグ33e,33fはバックアップの対象から除外されている。よって、パチンコ機Pの状態が、停電発生時と停電解消後とで異なっていても、復電処理において認識した正しい状態で、パチンコ機Pを始動させることができる。即ち、第2実施例では、パチンコ機Pの状態を示すコマンドを、賞球の払い出しを許可するコマンドとして兼用することにより、かかる効果を達成しているのである。   On the other hand, in the second embodiment, as the command for permitting the payout of the prize ball, the tank ball no state command or the tank ball no state release command indicating the state of the pachinko machine P, and the lower pan full state command or Using the lower pan full state release command, the state of the pachinko machine P indicated by the command is stored in the tank ball no flag 33e and the lower pan full flag 33f. The flag states of the tank ball absence flag 33e and the lower pan full flag 33f are configured to be maintained without being broken even when the processes of S145 and S146 of FIG. 11 are executed. That is, these flags 33e and 33f are excluded from backup targets. Therefore, even if the state of the pachinko machine P is different between when the power failure occurs and after the power failure is resolved, the pachinko machine P can be started in the correct state recognized in the power recovery process. That is, in the second embodiment, this effect is achieved by using the command indicating the state of the pachinko machine P as a command for permitting the payout of the winning ball.

なお、当然のことながら、第2実施例においても、タンク球無し状態コマンド又はタンク球無し状態解除コマンド、および、下皿満タン状態コマンド又は下皿満タン状態解除コマンドに代えて、賞球払出許可コマンドを用いるようにしても良い。また、電源投入時における初期化時に、初期化コマンドに代えて、パチンコ機Pの状態を示す、タンク球無し状態コマンド又はタンク球無し状態解除コマンド、および、下皿満タン状態コマンド又は下皿満タン状態解除コマンドを用いるようにしても良い。   As a matter of course, also in the second embodiment, in place of the tank ball no state command or the tank ball no state release command, and the lower pan full state command or the lower pan full state release command, You may make it use a permission command. In addition, at the time of initialization at power-on, instead of the initialization command, a tank ball no state command or a tank ball no state release command, a lower pan full state command, or a lower pan full command indicating the state of the pachinko machine P A tongue state release command may be used.

更に、第2実施例では、主制御基板Cは割込を禁止した状態で賞球の払い出しを許可するための各コマンドを送信しており(S107,S111〜S116)、払出制御基板Hもまた割込を禁止した状態で賞球の払い出しを許可するための各コマンドを受信している(S131,S141)。このように両制御基板C,Hは割込を禁止した状態で復電処理を完了するように構成されているので、スタック内容の復帰のソフト制御をより容易に行うことができる。   Furthermore, in the second embodiment, the main control board C transmits each command for permitting the payout of prize balls in a state where interruption is prohibited (S107, S111 to S116), and the payout control board H is also used. Each command for permitting the payout of prize balls in a state where interruption is prohibited is received (S131, S141). As described above, since both control boards C and H are configured to complete the power recovery process in a state where interrupts are prohibited, it is possible to more easily perform the soft control of returning the stack contents.

なお、上記実施例において、請求項1記載の主制御手段が備える主立上げ時手段としては、図4に示すS11〜S14の各処理と、S14のYes分岐と、S21〜S24の各処理とが該当し、同じく主制御手段が備える特定コマンドを送信する手段としては、同図に示すS24の処理が該当し、同じく主制御手段が備える主遊技制御手段としては、同図に示すS20の処理が該当する。また、請求項1記載の払出制御手段が備える副立上げ時手段としては、図7に示すS71〜S74の各処理と、S74のYes分岐と、S82〜S84の各処理とが該当し、同じく払出制御手段が備えるループ手段としては、同図に示すS85,S86の各処理が該当し、同じく払出制御手段が備える払出制御を行う手段としては、同図に示すS85の処理と、S85のYes分岐と、S88の処理と、図8に示す賞球払出処理とが該当する。   In addition, in the said Example, as the main starting time means with which the main control means of Claim 1 is provided, each process of S11-S14 shown in FIG. 4, Yes branch of S14, and each process of S21-S24, The process of S24 shown in the figure corresponds to the means for transmitting the specific command included in the main control means, and the process of S20 shown in the figure is the main game control means included in the main control means. Is applicable. Further, the sub-start-up time means included in the payout control means according to claim 1 includes the processes of S71 to S74, the Yes branch of S74, and the processes of S82 to S84 shown in FIG. The loop means provided in the payout control means corresponds to the processes of S85 and S86 shown in the figure, and the means for performing the payout control provided in the payout control means also includes the process of S85 shown in the figure and Yes in S85. The branch, the process of S88, and the prize ball payout process shown 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.

例えば、上記実施例では、主制御基板Cのバックアップが有効でない場合には、主制御基板Cは、自己の初期化処理の実行後、初期化コマンドを払出制御基板Hへ送信したが、この初期化コマンドに代えて、2バイト目のデータに「0」をセットした賞球払出許可コマンドを送信するようにしても良い。払出制御基板Hは、2バイト目に「0」がセットされた賞球払出許可コマンドを受信すると、自身の残賞球数カウンタ33aの値を「0」とするので、電源再入時における賞球の払い出しをクリアすることができるからである。   For example, in the above embodiment, when the backup of the main control board C is not effective, the main control board C transmits an initialization command to the payout control board H after executing its own initialization process. Instead of the change command, a prize ball payout permission command in which “0” is set in the second byte data may be transmitted. When the payout control board H receives a prize ball payout permission command in which “0” is set in the second byte, it sets the value of its remaining prize ball number counter 33a to “0”. This is because the payout of the ball can be cleared.

また、2バイトで構成された賞球払出許可コマンドを、1バイトで構成し、即ち、残賞球数カウンタ13cの値がセットされた2バイト目のデータを除いて賞球払出許可コマンドを1バイトで構成し、その賞球払出許可コマンドでは、単に賞球の払い出しのみを指示するようにしても良い。更に、主制御基板Cの立ち上げ処理の終了を示すコマンドを設けて、そのコマンドにより、払出制御基板Hに対して、賞球の払い出しを許可するようにしても良い。かかるコマンドは、必ずしも1のコマンドである必要はなく、2以上のコマンドで賞球の払い出しを許可するようにしても良い。   Also, the winning ball payout permission command composed of 2 bytes is composed of 1 byte, that is, the winning ball payout permission command is set to 1 except for the second byte data in which the value of the remaining winning ball counter 13c is set. It may be constituted by a byte, and the prize ball payout permission command may instruct only the payout of prize balls. Furthermore, a command indicating the end of the start-up process of the main control board C may be provided, and the payout control board H may be permitted to pay out a prize ball by the command. Such a command does not necessarily have to be one command, and the payout of prize balls may be permitted with two or more commands.

また、主制御基板Cでは、自身の立ち上げ処理の終了後にパチンコ機Pの状態を示すコマンドを払出制御基板Hへ送信するように構成し、払出制御基板Hでは、主制御基板Cから送信される何らかのコマンドを受信するまで賞球の払い出しを待機するように構成しても良い。電源断前と電源入後とではパチンコ機Pの状態は必ずしも同じではない。電源断前には賞球の払い出しが可能で合ったにも拘わらず、電源の再入後には、例えば、払い出される賞球を貯留するタンクの球が不足して空切れ状態となっている場合もあり、その場合には賞球の払い出しを行うことはできない。そこで、主制御基板Cの立ち上げ後、パチンコ機Pの状態を示すコマンドを払出制御基板Hへ送信し、払出制御基板Hでは、そのコマンドを受信した後でなければ賞球の払い出しを行うことができないように構成するのである。なお、パチンコ機Pの状態を示すコマンドの中には、賞球の払い出しを止めておくコマンドもあるので、電源再入後のパチンコ機Pの状態が賞球の払い出しを行うことができない場合には、かかる賞球の払い出しを止めておくコマンドが送信されて、払出制御基板Hによる賞球の払い出しが更に待機される。   In addition, 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 of the main control board C is completed, and the payout control board H is transmitted from the main control board C. It may be configured to wait for award ball payout until receiving a certain command. 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 that the state of the pachinko machine P after the power is turned on cannot pay out the prize ball. The 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.

本発明を上記実施例とは異なるタイプのパチンコ機等に実施しても良い。例えば、一度大当たりすると、それを含めて複数回(例えば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 that raises the expected value of the big hit until a big hit state occurs (for example, two times or three times) including that (for example, two-time rights, three-time rights 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, 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 main control means cancels the waiting for payout of the valuable object by the payout control means to the payout control means as the predetermined instruction in the power recovery process executed when the power is turned on. 1. A gaming machine 1 that transmits a command. The power recovery process is a power failure recovery process that is executed after the power failure has occurred and the power failure has been resolved.

遊技機1において、前記主制御手段は、前記有価物体の払い出しの待機を解除するコマンドを、割込を禁止した状態で前記復電処理の中で送信するものであることを特徴とする遊技機2。有価物体の払い出しの待機を解除するコマンドを、割込を禁止した状態で復電処理の中で送信するので、停電時処理でスタック等に退避したデータのソフト制御による復帰を容易に行うことができる。   In the gaming machine 1, the main control means transmits a command for canceling the waiting for payout of the valuable object in the power recovery process in a state where interruption is prohibited. 2. Since the command to cancel the waiting for the dispensing of valuable objects is sent during the power recovery process with interrupts disabled, it is possible to easily restore the data saved to the stack etc. during power failure processing by software control. it can.

遊技機1において、前記主制御手段は、前記有価物体の払い出しの待機を解除するコマンドを、前記復電処理の中で、停電発生時にバックアップしたデータの復帰処理の前に送信するものであることを特徴とする遊技機3。かかる構成により、バックアップデータの復帰後、直ちに停電発生時のアドレスへ処理を戻すことができ、復電処理を円滑に行うことができる。   In the gaming machine 1, the main control means transmits a command for canceling the waiting for payout of the valuable object before the restoration process of the data backed up when a power failure occurs during the power recovery process. A gaming machine 3 characterized by With such a configuration, it is possible to return the processing to the address at the time of the power failure immediately after the backup data is restored, and the power recovery processing can be performed smoothly.

請求項1記載の遊技機または遊技機1から3のいずれかにおいて、前記主制御手段は、電源入時における遊技機の状態を示すコマンドを、前記払出制御手段による有価物体の払い出しの待機を解除する前記所定の指示として送信するものであることを特徴とする遊技機4。かかる遊技機の状態を示すコマンドとしては、例えば、払い出される賞球を貯留する貯留タンクに球が貯留されているか否かを示す「タンク球無し状態コマンド」或いは「タンク球無し状態解除コマンド」や、下皿の状態を示す「下皿満タン状態コマンド」或いは「下皿満タン状態解除コマンド」が例示される。このように遊技機の状態を示すコマンドを、有価物体の払い出しの待機を解除する所定の指示として用いることにより、停電解消後の遊技機を正常に動作させることができる。例えば、停電の発生前は貯留タンクに球があっても、停電解消時には貯留タンクが空になっている場合がある。同様に、停電の発生前は下皿が満タンでなくても、停電解消時には下皿が満タンになっている場合がある。停電解消後、遊技機が停電発生前の状態に戻ると、貯留タンクが空であったり下皿が満タンであるにも拘わらず、それを認識できずに賞球や貸し球の払い出しを行ってしまい、不都合が生じる。しかし、遊技機4によれば、遊技機の状態を示すコマンドを有価物体の払い出しの待機を解除する所定の指示として用いているので、停電解消後の遊技機の状態を払出制御手段に正常に認識させて、遊技機を正常に動作させることができるのである。なお、遊技機の状態を示すコマンドの中の特に、賞球の払い出し状態に拘わるコマンドや、賞球の払い出しの可不可に影響を与えるコマンド等を、払出制御手段による有価物体の払い出しの待機を解除する所定の指示として送信するようにしても良い。   4. The gaming machine according to claim 1, wherein the main control means cancels the waiting for payout of a valuable object by the payout control means, with a command indicating the state of the gaming machine when the power is turned on. A gaming machine 4 which is transmitted as the predetermined instruction. As a command indicating the state of the gaming machine, for example, a “no tank ball state command” or a “no tank ball state release command” indicating whether or not a ball is stored in a storage tank that stores a prize ball to be paid out, The “lower pan full state command” or “lower pan full state release command” indicating the state of the lower pan is exemplified. In this way, by using the command indicating the state of the gaming machine as a predetermined instruction for canceling the standby for paying out the valuable object, the gaming machine after the cancellation of the power failure can be normally operated. For example, even if there is a ball in the storage tank before the occurrence of a power failure, the storage tank may be empty when the power failure is resolved. Similarly, even if the lower plate is not full before the occurrence of a power failure, the lower plate may be full when the power failure is resolved. After the power failure is resolved, when the gaming machine returns to the state before the power failure occurred, the award and rental balls are paid out without being able to recognize that the storage tank is empty or the bottom plate is full. Will cause inconvenience. However, according to the gaming machine 4, the command indicating the state of the gaming machine is used as a predetermined instruction for canceling the waiting for payout of the valuable object, so that the state of the gaming machine after the power failure is resolved is normally displayed in the payout control means. It is possible to recognize and operate the gaming machine normally. Of the commands indicating the state of the gaming machine, in particular, commands relating to the award ball payout state, commands affecting the availability of award ball payout, etc. It may be transmitted as a predetermined instruction to cancel.

遊技機4において、前記有価物体の払い出しの待機を解除する前記所定の指示として前記主制御手段から送信された遊技機の状態を示すコマンドにより指示される遊技機の状態を、前記払出制御手段は復電処理の後も継続して記憶するものであることを特徴とする遊技機5。払出制御手段において、かかるコマンドにより指示される遊技機の状態は、バックアップされているか否かに拘わらず、復電後の遊技機の状態として用いられる。   In the gaming machine 4, the payout control means indicates the state of the gaming machine indicated by the command indicating the state of the gaming machine transmitted from the main control means as the predetermined instruction for releasing the waiting for payout of the valuable object. The gaming machine 5 is characterized in that it is continuously stored after the power recovery process. In the payout control means, the state of the gaming machine instructed by such a command is used as the state of the gaming machine after power recovery regardless of whether it is backed up.

遊技機1から5のいずれかにおいて、前記払出制御手段は、前記主制御手段から送信される有価物体の払い出しの待機を解除するコマンドを、割込を禁止した状態で前記復電処理の中で受信するものであることを特徴とする遊技機6。有価物体の払い出しの待機を解除するコマンドを、割込を禁止した状態で復電処理の中で受信するので、停電時処理でスタック等に退避したデータのソフト制御による復帰を容易に行うことができる。   In any of the gaming machines 1 to 5, the payout control means sends a command for canceling the waiting for payout of the valuable object transmitted from the main control means in the power recovery process in a state where interruption is prohibited. A gaming machine 6 that is to be received. Since the command to cancel the waiting for the dispensing of a valuable object is received in the power recovery process with interrupts disabled, the data saved in the stack etc. during power failure processing can be easily restored by software control. it can.

遊技機1から5のいずれかにおいて、前記払出制御手段は、前記有価物体の払い出しの待機を解除するコマンドを、前記復電処理の中で、停電発生時にバックアップしたデータの復帰処理の前に受信するものであることを特徴とする遊技機7。かかる構成により、バックアップデータの復帰後、直ちに停電発生時のアドレスへ処理を戻すことができ、復電処理を円滑に行うことができる。   In any of the gaming machines 1 to 5, the payout control means receives a command for canceling the waiting for payout of the valuable object before the return processing of the data backed up when a power failure occurs during the power recovery process. A gaming machine 7 that is characterized by With such a configuration, it is possible to return the processing to the address at the time of the power failure immediately after the backup data is restored, and the power recovery processing can be performed smoothly.

請求項1記載の遊技機または遊技機1から7のいずれかにおいて、前記主制御手段は、有価物体の払出残数を記憶する主残数記憶手段と、その主残数記憶手段の内容を電源の切断後においても保持する主バックアップ手段と、その主バックアップ手段による前記主残数記憶手段のバックアップが正常に行われなかった場合の電源入時に前記主制御手段の初期化処理を実行する主初期化手段と、その主初期化手段による初期化処理の実行後に前記所定の指示として前記払出制御手段による有価物体の払い出しの待機を解除する初期化コマンドを送信する初期化コマンド送信手段とを備えていることを特徴とする遊技機8。   4. The gaming machine according to claim 1, wherein the main control means is a main remaining number storage means for storing a payout remaining number of valuable objects, and the contents of the main remaining number storage means are supplied with power. Main backup means that retains the main control means even after disconnection, and main initialization means that executes initialization processing of the main control means when the power is turned on when the main remaining number storage means is not backed up normally by the main backup means And an initialization command transmission means for transmitting an initialization command for canceling the waiting for payout of the valuable object by the payout control means as the predetermined instruction after execution of the initialization process by the main initialization means. A gaming machine 8 characterized by

遊技機8において、前記払出制御手段は、前記主制御手段の初期化コマンド送信手段により送信される初期化コマンドを受信した場合には、その払出制御手段の初期化処理を実行して前記残数記憶手段の内容をクリアするものであることを特徴とする遊技機9。   In the gaming machine 8, when the payout control means receives an initialization command transmitted by the initialization command transmission means of the main control means, the payout control means executes an initialization process of the payout control means to execute the remaining number A gaming machine 9 characterized by clearing the contents of the storage means.

遊技機8又は9において、前記主制御手段は、前記初期化コマンド送信手段により初期化コマンドを送信した場合には、前記払出制御手段への指示を前記初期化コマンドの送信後所定時間待機するものであることを特徴とする遊技機10。初期化コマンドの送信後、主制御手段から払出制御手段への指示が所定時間待機されるので、払出制御手段の初期化処理の実行中に主制御手段から指示を受けることはない。よって、払出制御手段は主制御手段からの指示を確実に受信することができる。   In the gaming machine 8 or 9, when the initialization command is transmitted by the initialization command transmission unit, the main control unit waits for a predetermined time after transmitting the initialization command to the payout control unit A gaming machine 10 that is characterized by the following. Since the instruction from the main control means to the payout control means waits for a predetermined time after the initialization command is transmitted, no instruction is received from the main control means during the execution of the payout control means initialization process. Therefore, the payout control means can reliably receive the instruction from the main control means.

遊技機8から10のいずれかにおいて、前記主残数記憶手段および残数記憶手段の内容をクリアするクリア手段を備えていることを特徴とする遊技機11。クリア手段としては、例えば主制御手段にクリア信号を出力するクリアスイッチが例示される。なお、このクリアスイッチから出力されるクリア信号を主制御手段のみならず払出制御手段へ出力するようにしても良い。また、クリアスイッチが所定条件下で押下された場合にのみ、主制御手段および払出制御手段を初期化して、主残数記憶手段および残数記憶手段の内容をクリアするように構成しても良い。   Any one of the gaming machines 8 to 10, further comprising a clear means for clearing the contents of the main remaining number storage means and the remaining number storage means. Examples of the clearing unit include a clear switch that outputs a clear signal to the main control unit. The clear signal output from the clear switch may be output not only to the main control means but also to the payout control means. Further, only when the clear switch is pressed under a predetermined condition, the main control means and the payout control means may be initialized to clear the contents of the main remaining number storage means and the remaining number storage means. .

請求項1記載の遊技機または遊技機1から11のいずれかにおいて、前記主制御手段と払出制御手段との送受信を、その主制御手段から払出制御手段への一方向にのみ可能とする一方向手段を備えていることを特徴とする遊技機12。   The game machine according to claim 1 or any one of the gaming machines 1 to 11, wherein transmission / reception between the main control means and the payout control means is possible only in one direction from the main control means to the payout control means. A gaming machine 12 comprising means.

請求項1記載の遊技機または遊技機1から12のいずれかにおいて、前記遊技機はパチンコ機であることを特徴とする遊技機13。中でも、パチンコ機の基本構成としては操作ハンドルを備え、その操作ハンドルの操作に応じて球を所定の遊技領域へ発射し、球が遊技領域内の所定の位置に配設された作動口に入賞(又は作動口を通過)することを必要条件として、表示装置において変動表示されている識別情報が所定時間後に確定停止されるものが挙げられる。また、特別遊技状態の発生時には、遊技領域内の所定の位置に配設された可変入賞装置(特定入賞口)が所定の態様で開放されて球を入賞可能とし、その入賞個数に応じた有価価値(景品球のみならず、磁気カードへ書き込まれるデータ等も含む)が付与されるものが挙げられる。   The gaming machine 13 according to claim 1, 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から12のいずれかにおいて、前記遊技機はスロットマシンであることを特徴とする遊技機14。中でも、スロットマシンの基本構成としては、「複数の識別情報からなる識別情報列を変動表示した後に識別情報を確定表示する可変表示手段を備え、始動用操作手段(例えば操作レバー)の操作に起因して、或いは、所定時間経過することにより、識別情報の変動が停止され、その停止時の確定識別情報が特定識別情報であることを必要条件として、遊技者に有利な特別遊技状態を発生させる特別遊技状態発生手段とを備えた遊技機」となる。この場合、遊技媒体はコイン、メダル等が代表例として挙げられる。   The gaming machine 14 according to any one of claims 1 to 12, 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から12のいずれかにおいて、前記遊技機はパチンコ機とスロットマシンとを融合させたものであることを特徴とする遊技機15。中でも、融合させた遊技機の基本構成としては、「複数の識別情報からなる識別情報列を変動表示した後に識別情報を確定表示する可変表示手段を備え、始動用操作手段(例えば操作レバー)の操作に起因して識別情報の変動が開始され、停止用操作手段(例えばストップボタン)の操作に起因して、或いは、所定時間経過することにより、識別情報の変動が停止され、その停止時の確定識別情報が特定識別情報であることを必要条件として、遊技者に有利な特別遊技状態を発生させる特別遊技状態発生手段とを備え、遊技媒体として球を使用すると共に、前記識別情報の変動開始に際しては所定数の球を必要とし、特別遊技状態の発生に際しては多くの球が払い出されるように構成されている遊技機」となる。   The gaming machine 15 according to claim 1, wherein the gaming machine is a fusion of a pachinko machine and a slot machine. Among them, the basic configuration of the merged gaming machine includes “a variable display means for confirming and displaying the identification information after variably displaying an identification information string composed of a plurality of identification information, and a starting operation means (for example, an operation lever). The variation of the identification information is started due to the operation, and the variation 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 such that a predetermined number of balls are required and a large number of balls are paid out when a special gaming state occurs.

21 賞球払出用モータ(払出装置)
33 払出制御基板のRAM(記憶手段)
33a 払出制御基板の残賞球数カウンタ(記憶手段の一部)
33x 払出制御基板のバックアップ用コンデンサ(記憶手段の一部)
C 主制御基板(主制御手段)
H 払出制御基板(払出制御手段)
P パチンコ機(遊技機)
S11〜S14,S14:Yes,S21〜S24 主立上げ時手段
S20 主遊技制御手段
S24 特定コマンドを送信する手段
S71〜S74,S74:Yes,S82〜S84 副立上げ時手段
S85,S86 ループ手段
S85,S85:Yes,S88 払出制御を行う手段の一部
21 Prize ball payout motor (payout device)
33 RAM (storage means) of payout control board
33a Payout control board remaining prize ball number counter (part of storage means)
33x Discharge control board backup capacitor (part of storage means)
C Main control board (Main control means)
H Dispensing control board (dispensing control means)
P Pachinko machine (game machine)
S11 to S14, S14: Yes, S21 to S24 Main start-up means S20 Main game control means S24 Means for transmitting specific commands S71 to S74, S74: Yes, S82 to S84 Sub-startup means S85, S86 Loop means S85 , S85: Yes, S88 Part of means for performing payout control

Claims (1)

遊技の制御を行う主制御手段と、前記主制御手段から送信されるコマンドに基づいて払出装置の制御を行い、電源断後も払出残数データを記憶可能な記憶手段を備えた払出制御手段と、を備えた遊技機において、
前記主制御手段は、
電源が投入された場合に実行される主立上げ時手段と、
前記主立上げ時手段において特定コマンドを送信する手段と、
複数の制御を行うことで前記遊技の制御を行う主遊技制御手段と、を備え、
前記払出制御手段は、
電源が投入された場合に行われる副立上げ時手段と、
前記主制御手段から送信されるコマンドを受信可能なループ手段と、
前記主制御手段から前記特定コマンドを受信した場合に、前記記憶手段で記憶された払出残数データに基づいて払出制御を行う手段と、を備え、
前記主制御手段は、
電源が投入された場合に、前記特定コマンドを送信する手段を含む前記主立上げ時手段を行った後に前記主遊技制御手段に移行し、
前記払出制御手段は、
電源が投入された場合に、前記副立上げ時手段を行って前記ループ手段に移行し、
該ループ手段によるループ状態において、前記特定コマンドを受信した場合に前記記憶手段で記憶された払出残数データに基づいて払出制御を行い、前記払出装置を動作させて払出しを行うことを特徴とする遊技機。
Main control means for controlling the game, and payout control means for controlling the payout device based on a command transmitted from the main control means, and having a storage means capable of storing the payout remaining number data even after the power is turned off. In a gaming machine equipped with
The main control means includes
Main start-up means to be executed when the power is turned on;
Means for transmitting a specific command in the main start-up means;
A main game control means for controlling the game by performing a plurality of controls,
The payout control means includes
Sub-startup means to be performed when the power is turned on,
Loop means capable of receiving a command transmitted from the main control means;
Means for performing payout control based on the payout remaining number data stored in the storage means when the specific command is received from the main control means,
The main control means includes
When the power is turned on, after performing the main start-up means including means for transmitting the specific command, the process shifts to the main game control means,
The payout control means includes
When the power is turned on, the sub-startup means is performed to move to the loop means,
In a loop state by the loop means, when the specific command is received, payout control is performed based on the payout remaining number data stored in the storage means, and the payout device is operated to perform payout. Gaming machine.
JP2010271576A 2000-10-12 2010-12-06 Game machine Expired - Fee Related JP5263278B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010271576A JP5263278B2 (en) 2000-10-12 2010-12-06 Game machine

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2000312590 2000-10-12
JP2000312590 2000-10-12
JP2010271576A JP5263278B2 (en) 2000-10-12 2010-12-06 Game machine

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2001049830A Division JP2002186747A (en) 2000-10-12 2001-02-26 Game machine

Publications (2)

Publication Number Publication Date
JP2011045773A true JP2011045773A (en) 2011-03-10
JP5263278B2 JP5263278B2 (en) 2013-08-14

Family

ID=43829698

Family Applications (2)

Application Number Title Priority Date Filing Date
JP2010267552A Expired - Lifetime JP5170220B2 (en) 2000-10-12 2010-11-30 Game machine
JP2010271576A Expired - Fee Related JP5263278B2 (en) 2000-10-12 2010-12-06 Game machine

Family Applications Before (1)

Application Number Title Priority Date Filing Date
JP2010267552A Expired - Lifetime JP5170220B2 (en) 2000-10-12 2010-11-30 Game machine

Country Status (1)

Country Link
JP (2) JP5170220B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016087202A (en) * 2014-11-07 2016-05-23 サミー株式会社 Pachinko game machine
JP2016087201A (en) * 2014-11-07 2016-05-23 サミー株式会社 Pachinko game machine
JP2016087203A (en) * 2014-11-07 2016-05-23 サミー株式会社 Pachinko game machine
JP6839959B2 (en) * 2016-10-27 2021-03-10 株式会社藤商事 Game machine

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0450035B2 (en) * 1983-09-09 1992-08-13 Omron Tateisi Electronics Co
JP2000210444A (en) * 1999-01-25 2000-08-02 Sankyo Kk Game machine
JP2000262698A (en) * 1999-03-12 2000-09-26 Sophia Co Ltd Game machine
JP2001212338A (en) * 2000-03-08 2001-08-07 Toyomaru Industry Co Ltd Game machine
JP2002085792A (en) * 2000-09-13 2002-03-26 Sankyo Kk Game machine
JP4479859B2 (en) * 2009-11-26 2010-06-09 株式会社三洋物産 Game machine

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0450035B2 (en) * 1983-09-09 1992-08-13 Omron Tateisi Electronics Co
JP2000210444A (en) * 1999-01-25 2000-08-02 Sankyo Kk Game machine
JP2000262698A (en) * 1999-03-12 2000-09-26 Sophia Co Ltd Game machine
JP2001212338A (en) * 2000-03-08 2001-08-07 Toyomaru Industry Co Ltd Game machine
JP2002085792A (en) * 2000-09-13 2002-03-26 Sankyo Kk Game machine
JP4479859B2 (en) * 2009-11-26 2010-06-09 株式会社三洋物産 Game machine

Also Published As

Publication number Publication date
JP5263278B2 (en) 2013-08-14
JP5170220B2 (en) 2013-03-27
JP2011041847A (en) 2011-03-03

Similar Documents

Publication Publication Date Title
JP4706114B2 (en) Game machine
JP5083385B2 (en) Game machine
JP5170220B2 (en) Game machine
JP2002186747A (en) Game machine
JP4321642B2 (en) Game machine
JP4023322B2 (en) Game machine
JP2002119710A (en) Game machine
JP2007289770A (en) Game machine
JP2011072823A (en) Game machine
JP4103380B2 (en) Game machine
JP4479859B2 (en) Game machine
JP4135710B2 (en) Game machine
JP4174966B2 (en) Game machine
JP4492685B2 (en) Slot machine
JP4792630B2 (en) Game machine
JP6187637B2 (en) Game machine
JP5987925B2 (en) Game machine
JP5585568B2 (en) Game machine
JP4379514B2 (en) Game machine
JP2005087768A5 (en)
JP4665958B2 (en) Game machine
JP4320685B2 (en) Game machine
JP4428438B2 (en) Game machine
JP5093305B2 (en) Game machine
JP4631895B2 (en) Game machine

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20101228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120626

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120827

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130415

R150 Certificate of patent or registration of utility model

Ref document number: 5263278

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees