JP2005349229A - Game machine - Google Patents

Game machine Download PDF

Info

Publication number
JP2005349229A
JP2005349229A JP2005258139A JP2005258139A JP2005349229A JP 2005349229 A JP2005349229 A JP 2005349229A JP 2005258139 A JP2005258139 A JP 2005258139A JP 2005258139 A JP2005258139 A JP 2005258139A JP 2005349229 A JP2005349229 A JP 2005349229A
Authority
JP
Japan
Prior art keywords
ball
payout
switch
state
game medium
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
JP2005258139A
Other languages
Japanese (ja)
Other versions
JP2005349229A5 (en
JP3893400B2 (en
Inventor
Shohachi Ugawa
詔八 鵜川
Takayuki Ishikawa
貴之 石川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sankyo Co Ltd
Original Assignee
Sankyo Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sankyo Co Ltd filed Critical Sankyo Co Ltd
Priority to JP2005258139A priority Critical patent/JP3893400B2/en
Publication of JP2005349229A publication Critical patent/JP2005349229A/en
Publication of JP2005349229A5 publication Critical patent/JP2005349229A5/ja
Application granted granted Critical
Publication of JP3893400B2 publication Critical patent/JP3893400B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Pinball Game Machines (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To set the respective time of judging the detection output of the game media by many kinds of game medium detection means appropriately according to the applications of the individual game medium detection means. <P>SOLUTION: With the prize winning detection switch, the prize winning detection processing is executed when the detection signal is determined to be outputted twice by the judgment of the detection signal made at an interval of 2 ms. With the ball exhaustion switch, the ball exhaustion detection processing is executed when the detection signal is determined to be outputted 30 times by the judgment of the detection signal made at an interval of 2 ms. With the filling detection switch, the filling detection processing is executed when the detection signal is determined to be outputted 50 times by the judgment of the detection signal made at an interval of 2 ms. The detection signal is inputted from a single power source monitoring means into the microcomputer for the game control and the microcomputer for the put-out control to forbid the access to the RAM according to the detection signal. When the power source is returned from its interruption with the data held in the RAM, the control system is restored just back to the moment of the outbreak of the power source interruption based on the data held in the RAM. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、パチンコ遊技機やコイン遊技機あるいはスロットマシンなどで代表される遊技機に関する。詳しくは、遊技媒体を検出する遊技媒体検出手段を備えた遊技機に関する。   The present invention relates to a gaming machine represented by a pachinko gaming machine, a coin gaming machine, a slot machine, or the like. Specifically, the present invention relates to a gaming machine provided with a game medium detecting means for detecting a game medium.

この種の遊技機として従来から一般的に知られているものに、たとえば、パチンコ遊技機、コイン遊技機またはスロットマシン等のように、遊技媒体を検出する遊技媒体検出手段の一例として、入賞領域に遊技媒体が入賞したことを検出する入賞検出スイッチを備えたものがある。   As an example of a game medium detecting means for detecting a game medium, such as a pachinko game machine, a coin game machine, or a slot machine, a prize area is conventionally known as this type of game machine. Some of them have a winning detection switch for detecting that a game medium has won.

そして、たとえば、パチンコ遊技機においては、入賞口に入賞したパチンコ球の通過を入賞検出スイッチにより検出する。その後、入賞検出スイッチにより得られた検出信号が遊技を制御する遊技制御手段に送信され、遊技制御手段において景品球の払出しの制御を行なっている。また、景品球が遊技球タンクまたは誘導樋に無いことを検出する球切れスイッチおよび景品球が余剰球受皿に満タンになったことを検出する満タンスイッチにおいては、球切れ状態および満タン状態を検出することで、球切れ検出信号および満タン検出信号が遊技制御手段に送信される。それにより、遊技制御手段においては、警報を発するための制御または払出しを停止するための制御等が行なわれている。   For example, in a pachinko gaming machine, the passage of a pachinko ball that has won a prize opening is detected by a winning detection switch. Thereafter, the detection signal obtained by the winning detection switch is transmitted to the game control means for controlling the game, and the game control means controls the payout of the prize ball. In addition, in the ball break switch that detects that the prize ball is not in the game ball tank or the guide rod and the full tank switch that detects that the prize ball is full in the surplus ball tray, By detecting this, a ball break detection signal and a full tank detection signal are transmitted to the game control means. Thereby, in the game control means, control for issuing an alarm or control for stopping payout is performed.

上記のパチンコ遊技機においては、パチンコ球の一瞬の通過を検出する入賞検出スイッチが発する検出信号と、パチンコ球の所定の期間の貯留状態を検出する球切れ検出スイッチまたは満タン検出スイッチが出力する検出信号との関係において、検出信号の有無をチェックする検出時間を同一にしていていたため、以下のような問題があった。   In the pachinko gaming machine described above, a detection signal generated by a winning detection switch that detects a momentary passage of a pachinko ball, and a ball breakage detection switch or a full tank detection switch that detects a storage state of the pachinko ball for a predetermined period are output. In relation to the detection signal, the detection time for checking the presence / absence of the detection signal is set to be the same, which causes the following problems.

上記のパチンコ遊技機においては、入賞検出スイッチの検出出力の検出時間に、球切れ検出スイッチまたは満タン検出スイッチの検出出力の検出時間を合わせると、球切れ検出スイッチまたは満タン検出スイッチは一瞬でもスイッチがOFFまたはONすると球切れまたは満タンを検出してしまう。その結果、誘導樋または余剰球受皿において貯留されているパチンコ球の状態がわずかに変化するだけでも、球切れスイッチまたは満タンスイッチはON−OFFするため、球切れまたは満タンを報知する必要がない場合において誤って警報を出すこと、または、景品球の払出を停止する必要が無い場合において景品球の払出を停止することがあった。   In the above pachinko gaming machine, if the detection time of the detection output of the winning detection switch is combined with the detection time of the detection output of the ball break detection switch or the full tank detection switch, the ball break detection switch or the full tank detection switch can be When the switch is turned OFF or ON, it is detected that the ball has run out or is full. As a result, even if the state of the pachinko ball stored in the guide rod or surplus ball tray is slightly changed, the ball break switch or full tank switch is turned on and off, so it is necessary to notify the ball break or full tank. In some cases, an alarm is mistakenly issued, or in the case where it is not necessary to stop the payout of the prize sphere, the payout of the prize sphere may be stopped.

また、球切れ検出スイッチおよび満タン検出スイッチの検出時間に、入賞検出スイッチの検出時間をあわせると、パチンコ球が入賞検出スイッチを通過してから所定の時間が経過しないとパチンコ球の検出信号が出力されないため、パチンコ球が入賞口に入賞してから景品球が払出されるまでに時間がかかり、遊技者に不満を生じさせることになっていた。   In addition, if the detection time of the winning detection switch is combined with the detection time of the ball break detection switch and the full tank detection switch, the pachinko ball detection signal will be output if a predetermined time has not passed since the pachinko ball passed the winning detection switch. Since it is not output, it takes time until the prize ball is paid out after the pachinko ball wins the winning opening, which causes the player to be dissatisfied.

この発明は上述の問題に鑑みてなされたものであって、複数種類の遊技媒体検出手段の遊技媒体の検出出力の判定時間が、それぞれの遊技媒体検出手段の用途に応じた適当な判定時間に設定された遊技機を提供することである。   The present invention has been made in view of the above-described problems, and the determination time of the game medium detection output of the plurality of types of game medium detection means is set to an appropriate determination time according to the use of each game medium detection means. It is to provide a set gaming machine.

請求項1に記載の本発明は、供給された電力により動作する複数の電気部品と、
該複数の電気部品それぞれを制御するための処理を行なうとともに、バックアップ電源により遊技機に対する電力供給が停止してもデータが保持されるRAMを有し、電力供給開始時に前記RAMの保持データに基づいて制御を再開させることが可能な、第1の電気部品制御マイクロコンピュータおよび第2の電気部品制御マイクロコンピュータと、
前記遊技媒体を検出したときに遊技媒体検出信号を前記第1の電気部品制御マイクロコンピュータに出力する遊技媒体検出手段と、
該遊技媒体検出手段から前記遊技媒体検出信号が第1の所定期間出力されたことに応じて遊技媒体の払出に関連した処理を実行する遊技媒体検出判定手段と、
払出すための遊技媒体が欠乏した状態を検出して前記遊技媒体の払出の可否を判定するために用いられる信号を前記第1の電気部品制御マイクロコンピュータに出力する遊技媒体欠乏状態検出手段と、
払出された後に貯留される遊技媒体の貯留状態が満タンになったことを検出して前記遊技媒体の払出の可否を判定するために用いられる信号を前記第1の電気部品制御マイクロコンピュータに出力する遊技媒体満タン状態検出手段と、
前記遊技媒体欠乏状態検出手段が出力する信号および前記遊技媒体満タン状態検出手段が出力する信号に基づき、払出が不能であるか否かを判定する払出不能判定手段と、
供給された電力を整流し複数の電圧を生成する電圧生成手段と、
該電圧生成手段により整流された電力の電圧を監視し、予め定められた検出電圧に低下したときに検出信号を出力する電源監視手段とを含み、
前記第1の電気部品制御マイクロコンピュータと前記第2の電気部品制御マイクロコンピュータとは、共に、
単一の前記電源監視手段から前記検出信号が入力されるとともに、該検出信号に応じて、電力供給が停止してもデータが保持されている前記RAMへのアクセスを禁止するRAMアクセス禁止処理を行なう電力供給停止時処理を実行し、かつ、
前記RAMがデータを保持している状態で電源断状態から電源が復帰したときに、前記RAMの保持データに基づいて、前記電源断状態発生時点の制御状態に復帰させる復帰時処理を行ない、
前記払出不能判定手段は、前記遊技媒体欠乏状態検出手段が出力する払出の不能を示す信号を前記第1の所定期間よりも長い第2の所定期間出力したとき、または、前記遊技媒体満タン状態検出手段が出力する払出の不能を示す信号を前記第1の所定期間よりも長い第3の所定期間出力したときに、前記遊技媒体の払出が不能である旨の判定をするとともに、前記遊技媒体の払出を不能とするための処理を実行する。
The present invention according to claim 1 includes a plurality of electrical components that operate with supplied power,
The RAM has a RAM that performs processing for controlling each of the plurality of electrical components and that retains data even when power supply to the gaming machine is stopped by a backup power supply. Based on the retained data in the RAM when power supply is started A first electric component control microcomputer and a second electric component control microcomputer capable of resuming the control;
Game medium detection means for outputting a game medium detection signal to the first electric component control microcomputer when the game medium is detected;
Game medium detection determining means for executing processing related to payout of game media in response to the game medium detection signal being output from the game medium detection means for a first predetermined period;
Game medium deficiency state detection means for detecting a state in which a game medium for payout is deficient and outputting a signal used to determine whether or not the game medium can be paid out to the first electric component control microcomputer;
A signal used to determine whether or not the game medium can be paid out is detected and output to the first electrical component control microcomputer by detecting that the storage state of the game medium stored after the payout is full. A game medium full state detection means for
Based on the signal output from the game medium deficiency state detection means and the signal output from the game medium full state detection means, it is determined whether or not payout is impossible.
Voltage generating means for rectifying supplied power and generating a plurality of voltages;
Power supply monitoring means for monitoring the voltage of the power rectified by the voltage generating means and outputting a detection signal when the voltage is reduced to a predetermined detection voltage;
Both the first electrical component control microcomputer and the second electrical component control microcomputer are:
The detection signal is input from a single power supply monitoring means, and in response to the detection signal, a RAM access prohibiting process for prohibiting access to the RAM holding data even when power supply is stopped. Execute the power supply stop process to be performed, and
When the power is restored from the power-off state in a state where the RAM holds data, a process at the time of returning to the control state at the time of occurrence of the power-off state is performed based on the data held in the RAM,
The payout impossibility determining means outputs a signal indicating the payout impossibility outputted by the game medium deficiency state detecting means for a second predetermined period longer than the first predetermined period, or the game medium full state When the signal indicating the inability to pay out output from the detecting means is output for a third predetermined period longer than the first predetermined period, it is determined that the game medium cannot be paid out, and the game medium The process for making the payout impossible is executed.

請求項2に記載の本発明は、請求項1に記載の発明の構成に加えて、前記払出不能判定手段は、前記遊技媒体欠乏状態検出手段が第1の所定期間よりも長い第4の所定期間連続して遊技媒体の払出が不能であることを示す信号を出力しないことを条件に、前記遊技媒体の払出の停止を解除するための処理を実行する。   According to a second aspect of the present invention, in addition to the configuration of the first aspect of the invention, the payout impossibility determining means has a fourth predetermined condition in which the game medium deficiency state detecting means is longer than the first predetermined period. On the condition that a signal indicating that the game medium cannot be paid out is not output continuously for a period of time, a process for canceling the stop of the game medium payout is executed.

[作用]
請求項1に記載の本発明によれば、以下の作用が生じる。バックアップ電源により遊技機に対する電力供給が停止してもデータが保持されるRAMを有する第1の電気部品制御マイクロコンピュータおよび第2の電気部品制御マイクロコンピュータの働きにより、供給された電力により動作する複数の電気部品それぞれを制御するための処理が行なわれるとともに、電力供給開始時に前記RAMの保持データに基づいて制御を再開させることが可能となる。遊技媒体検出手段の働きにより、前記遊技媒体を検出したときに遊技媒体検出信号が前記第1の電気部品制御マイクロコンピュータに出力される。遊技媒体検出判定手段の働きにより、遊技媒体検出手段から前記遊技媒体検出信号が第1の所定期間出力されたことに応じて遊技媒体の払出に関連した処理が実行される。遊技媒体欠乏状態検出手段の働きにより、払出すための遊技媒体が欠乏した状態を検出して前記遊技媒体の払出の可否を判定するために用いられる信号が前記第1の電気部品制御マイクロコンピュータに出力される。遊技媒体満タン状態検出手段の働きにより、払出された後に貯留される遊技媒体の貯留状態が満タンになったことが検出されて前記遊技媒体の払出の可否を判定するために用いられる信号が前記第1の電気部品制御マイクロコンピュータに出力される。払出不能判定手段の働きにより、前記遊技媒体欠乏状態検出手段が出力する信号および前記遊技媒体満タン状態検出手段が出力する信号に基づき、払出が不能であるか否かが判定される。電圧生成手段により、供給された電力が整流されて複数の電圧が生成される。電源監視手段の働きにより、電圧生成手段により整流された電力の電圧が監視され、予め定められた検出電圧に低下したときに検出信号が出力される。
[Action]
According to the first aspect of the present invention, the following effects occur. Even if the power supply to the gaming machine is stopped by the backup power supply, a plurality of units that operate with the supplied power by the functions of the first electric component control microcomputer and the second electric component control microcomputer having the RAM that retains data. Processing for controlling each of the electrical components is performed, and control can be resumed based on the data held in the RAM when power supply is started. A game medium detection signal is output to the first electric component control microcomputer when the game medium is detected by the action of the game medium detection means. By the operation of the game medium detection determination means, processing related to the payout of the game medium is executed in response to the game medium detection signal being output from the game medium detection means for the first predetermined period. A signal used to detect whether or not the game medium is to be paid out by detecting the lack of game media to be paid out by the action of the game medium deficiency state detection means is sent to the first electric component control microcomputer. Is output. A signal used to determine whether or not the game medium is paid out when it is detected that the storage state of the game medium stored after being paid out is full by the action of the game medium full tank state detection means. The data is output to the first electric component control microcomputer. Based on the signal output from the gaming medium deficiency state detecting means and the signal output from the gaming medium full state detecting means, it is determined by the function of the payout impossible determining means whether or not payout is impossible. The supplied power is rectified by the voltage generating means to generate a plurality of voltages. The voltage of the power rectified by the voltage generation means is monitored by the function of the power supply monitoring means, and a detection signal is output when the voltage drops to a predetermined detection voltage.

前記第1の電気部品制御マイクロコンピュータと前記第2の電気部品制御マイクロコンピュータとは、共に、単一の前記電源監視手段から前記検出信号が入力されるとともに、該検出信号に応じて、電力供給が停止してもデータが保持されている前記RAMへのアクセスを禁止するRAMアクセス禁止処理を行なう電力供給停止時処理を実行し、かつ、前記RAMがデータを保持している状態で電源断状態から電源が復帰したときに、前記RAMの保持データに基づいて、前記電源断状態発生時点の制御状態に復帰させる復帰時処理を行なう。前記払出不能判定手段は、前記遊技媒体欠乏状態検出手段が出力する払出の不能を示す信号を前記第1の所定期間よりも長い第2の所定期間出力したとき、または、前記遊技媒体満タン状態検出手段が出力する払出の不能を示す信号を前記第1の所定期間よりも長い第3の所定期間出力したときに、前記遊技媒体の払出が不能である旨の判定をするとともに、前記遊技媒体の払出を不能とするための処理を実行する。   The first electric component control microcomputer and the second electric component control microcomputer both receive the detection signal from a single power supply monitoring unit and supply power in accordance with the detection signal. Executes a power access stop process that performs a RAM access prohibition process that prohibits access to the RAM in which data is retained even if the power is stopped, and the power is cut off while the RAM retains data When the power is restored from the power supply, a process at the time of returning to the control state at the time when the power-off state occurs is performed based on the data held in the RAM. The payout impossibility determining means outputs a signal indicating the payout impossibility outputted by the game medium deficiency state detecting means for a second predetermined period longer than the first predetermined period, or the game medium full state When the signal indicating the inability to pay out output from the detecting means is output for a third predetermined period longer than the first predetermined period, it is determined that the game medium cannot be paid out, and the game medium The process for making the payout impossible is executed.

請求項2に記載の本発明によれば、請求項1に記載の発明の作用に加えて、前記払出不能判定手段の働きにより、前記遊技媒体欠乏状態検出手段が第1の所定期間よりも長い第4の所定期間連続して遊技媒体の払出が不能であることを示す信号を出力しないことを条件に、前記遊技媒体の払出の停止を解除するための処理が実行される。   According to the second aspect of the present invention, in addition to the action of the first aspect of the invention, the game medium deficiency state detecting means is longer than the first predetermined period by the action of the payout impossibility determining means. On the condition that a signal indicating that the game medium cannot be paid out is not output continuously for the fourth predetermined period, a process for canceling the stop of the game medium payout is executed.

以下、本発明の一実施の形態を図面を参照して説明する。
まず、遊技機の一例であるパチンコ遊技機の全体構成について説明する。図1はパチンコ遊技機1を正面から正面図、図2はパチンコ遊技機1の内部構造を示す全体背面図、図3はパチンコ遊技機1の遊技盤を背面から見た背面図である。なお、以下の実施の形態では、パチンコ遊技機を例に説明を行なうが、本発明による遊技機はパチンコ遊技機に限られず、コイン遊技機等であってもよい。また、画像式の遊技機やスロット機にも適用することができる。
Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
First, an overall configuration of a pachinko gaming machine that is an example of a gaming machine will be described. 1 is a front view of the pachinko gaming machine 1 from the front, FIG. 2 is an overall rear view showing the internal structure of the pachinko gaming machine 1, and FIG. 3 is a rear view of the gaming board of the pachinko gaming machine 1 as seen from the back. In the following embodiments, a pachinko gaming machine will be described as an example. However, the gaming machine according to the present invention is not limited to a pachinko gaming machine, and may be a coin gaming machine or the like. It can also be applied to image-type gaming machines and slot machines.

図1に示すように、パチンコ遊技機1は、額縁状に形成されたガラス扉枠2を有する。ガラス扉枠2の下部表面には打球供給皿3がある。打球供給皿3の下部には、打球供給皿3から溢れた貯留球を貯留する余剰球受皿4と打球を発射する打球操作ハンドル(操作ノブ)5が設けられている。ガラス扉枠2の後方には、遊技盤6が着脱可能に取付けられている。また、遊技盤6の前面には遊技領域7が設けられている。   As shown in FIG. 1, the pachinko gaming machine 1 has a glass door frame 2 formed in a frame shape. On the lower surface of the glass door frame 2 is a hitting ball supply tray 3. Under the hitting ball supply tray 3, there are provided an extra ball receiving tray 4 for storing the stored balls overflowing from the hitting ball supply tray 3 and a hitting operation handle (operation knob) 5 for firing the hitting ball. A game board 6 is detachably attached to the rear of the glass door frame 2. A game area 7 is provided in front of the game board 6.

遊技領域7の中央付近には、複数種類の図柄を可変表示するための可変表示部9と7セグメントLEDによる可変表示器10とを含む可変表示装置8が設けられている。また、可変表示器10の下部には、4個のLEDからなる通過記憶表示器(普通図柄用記憶表示器)41が設けられている。この実施の形態では、可変表示部9には、「左」、「中」、「右」の3つの図柄表示エリアがある。可変表示装置8の側部には、打球を導く通過ゲート11が設けられている。通過ゲート11を通過する打球は、球出口13を経て始動入賞口14の方に導かれる。通過ゲート11と球出口13との間の通路には、通過ゲート11を通過した打球を検出するゲートスイッチ12がある。また、始動入賞口14に入った入賞球は、遊技盤6の背面に導かれ、始動口スイッチ17によって検出される。また、始動入賞口14の下部には開閉動作を行なう可変入賞球装置15が設けられている。可変入賞球装置15は、ソレノイド16によって開状態とされる。   Near the center of the game area 7, there is provided a variable display device 8 including a variable display unit 9 for variably displaying a plurality of types of symbols and a variable display 10 using 7 segment LEDs. Further, a passage memory display (ordinary symbol memory display) 41 composed of four LEDs is provided below the variable display 10. In this embodiment, the variable display section 9 has three symbol display areas of “left”, “middle”, and “right”. A passing gate 11 for guiding a hit ball is provided on the side of the variable display device 8. The hit ball passing through the passing gate 11 is guided to the start winning opening 14 through the ball outlet 13. In the path between the passing gate 11 and the ball outlet 13, there is a gate switch 12 that detects a hit ball that has passed through the passing gate 11. The winning ball that has entered the start winning opening 14 is guided to the back of the game board 6 and detected by the start opening switch 17. A variable winning ball device 15 that opens and closes is provided below the start winning opening 14. The variable winning ball device 15 is opened by a solenoid 16.

可変入賞球装置15の下部には、特定遊技状態(大当り状態)においてソレノイド21によって開状態とされる開閉板20が設けられている。この実施の形態では、開閉板20が大入賞口を開閉する手段である。開閉板20から遊技盤6の背面に導かれた入賞球のうち一方(Vゾーン)に入った入賞球はVカウントスイッチ22で検出される。また、開閉板20からの入賞球はカウントスイッチ23で検出される。可変表示装置8の下部には、始動入賞口14に入った入賞球数を表示する4個の表示部を有する始動入賞記憶表示器18が設けられている。この例では、4個を上限として、入賞がある毎に、始動入賞記憶表示器18は点灯している表示部を1つずつ増やす。そして、可変表示部9の可変表示が開始される毎に、点灯している表示部を1ずつ減らす。   An open / close plate 20 that is opened by a solenoid 21 in a specific gaming state (big hit state) is provided below the variable winning ball device 15. In this embodiment, the opening / closing plate 20 is a means for opening and closing the special winning opening. Of the winning balls guided from the opening / closing plate 20 to the back of the game board 6, the winning ball entering one (V zone) is detected by the V count switch 22. A winning ball from the opening / closing plate 20 is detected by the count switch 23. At the bottom of the variable display device 8, a start winning memory display 18 having four display units for displaying the number of winning balls that have entered the start winning opening 14 is provided. In this example, with a maximum of four, every time there is a winning, the start winning memory display 18 increases the number of lit display units one by one. Then, every time the variable display of the variable display unit 9 is started, the lit display unit is decreased by one.

遊技盤6には、複数の入賞口19,24が設けられ、遊技球の入賞口19,24への入賞は入賞口スイッチ19a,24aによって検出される。遊技領域7の左右周辺には、遊技中に点灯表示される装飾ランプ25が設けられ、下部には、入賞しなかった打球を吸収するアウト口26がある。また、遊技領域7の外側の左右上部には、効果音を発する2つのスピーカ27が設けられている。遊技領域7の外周には、遊技効果LED28aおよび遊技効果ランプ28b,28cが設けられている。   The game board 6 is provided with a plurality of winning openings 19, 24, and winning of the game balls to the winning openings 19, 24 is detected by winning opening switches 19a, 24a. Decorative lamps 25 that are lit and displayed during the game are provided around the left and right sides of the game area 7, and an out mouth 26 that absorbs a hit ball that has not won a prize is provided below. Two speakers 27 that emit sound effects are provided on the left and right upper portions outside the game area 7. On the outer periphery of the game area 7, a game effect LED 28a and game effect lamps 28b and 28c are provided.

そして、この例では、一方のスピーカ27の近傍に、景品球払出時に点灯する賞球ランプ51が設けられ、他方のスピーカ27の近傍に、補給球が切れたときに点灯する球切れランプ52が設けられている。さらに、図1には、パチンコ遊技機1に隣接して設置され、プリペイドカードが挿入されることによって球貸を可能にするカードユニット50も示されている。   In this example, a prize ball lamp 51 that is lit when a prize ball is paid out is provided in the vicinity of one speaker 27, and a ball break lamp 52 that is lit when a supply ball is cut out in the vicinity of the other speaker 27. Is provided. Further, FIG. 1 also shows a card unit 50 that is installed adjacent to the pachinko gaming machine 1 and enables a ball rental by inserting a prepaid card.

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

打球発射装置から発射された打球は、打球レールを通って遊技領域7に入り、その後、遊技領域7を下りてくる。打球が通過ゲート11を通ってゲートスイッチ12で検出されると、可変表示器10の表示装置が連続的に変化する状態になる。また、打球が始動入賞口14に入り始動入賞口スイッチ17で検出されると、図柄の変動を開始できる状態であれば、可変表示部9内の図柄回転を始める。図柄の変動を開始できる状態でなければ、始動入賞記憶を1増やす。   The hit ball fired from the hit ball launching device enters the game area 7 through the hit ball rail, and then descends the game area 7. When the hit ball is detected by the gate switch 12 through the passing gate 11, the display device of the variable display 10 is continuously changed. Further, when the hit ball enters the start winning port 14 and is detected by the start winning port switch 17, the symbol in the variable display portion 9 starts to rotate if the variation of the symbol can be started. If it is not in a state where the change of the symbol can be started, the start winning memory is increased by one.

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

停止時の可変表示部9内の画像の組合せが確率変動を伴う大当り図柄の組合せである場合には、次に大当りとなる確率が高くなる。すなわち高確率状態という遊技者にとってさらに有利な状態となる。また、可変表示器10における停止図柄が所定の図柄(当り図柄)である場合に、可変入賞球装置15が所定時間だけ開状態になる。さらに、高確率状態では、可変表示器10における停止図柄が当り図柄になる確率が高められるとともに、可変入賞球装置15の開放時間と開放回数が高められる。   When the combination of images in the variable display section 9 at the time of stop is a combination of jackpot symbols with probability fluctuations, the probability of the next jackpot increases. That is, it becomes a more advantageous state for the player in a high probability state. Further, when the stop symbol on the variable display 10 is a predetermined symbol (winning symbol), the variable winning ball device 15 is opened for a predetermined time. Further, in the high probability state, the probability that the stop symbol in the variable display 10 becomes a winning symbol is increased, and the opening time and the number of times of opening of the variable winning ball device 15 are increased.

次に、パチンコ遊技機1の裏面の構造について図2を参照して説明する。
可変表示装置8の背面では、図2に示すように、機構盤36の上部に遊技機タンク38が設けられ、パチンコ遊技機1が遊技機設置島に設置された状態でその上方から遊技球が遊技球タンク38に供給される。遊技球供給タンク38内の遊技球は、誘導樋39を通って球払出装置97に至る。
Next, the structure of the back surface of the pachinko gaming machine 1 will be described with reference to FIG.
On the back surface of the variable display device 8, as shown in FIG. 2, a gaming machine tank 38 is provided above the mechanism board 36, and the pachinko gaming machine 1 is installed on the gaming machine installation island so that a gaming ball can be seen from above. It is supplied to the game ball tank 38. The game balls in the game ball supply tank 38 reach the ball payout device 97 through the guide rod 39.

機構盤36には、中継基板30を介して可変表示部9を制御する可変表示制御ユニット29、基板ケース32に覆われ遊技制御用マイクロコンピュータ等が搭載された遊技制御基板(主基板)31、可変表示制御ユニット29と遊技制御基板31との間の信号を中継するための中継基板33、および、景品球などの払出制御を行なう払出制御用マイクロコンピュータなどが搭載された払出制御基板37が設置されている。さらに、機構盤36の下部には、モータの回転力を利用して打球を遊技領域7に発射する打球発射装置34と、遊技効果ランプ・LED28a,28b,28c、賞球ランプ51および球切れランプ52に信号を送るためのランプ制御基板35が設置されている。   The mechanism panel 36 includes a variable display control unit 29 that controls the variable display unit 9 via the relay board 30, a game control board (main board) 31 that is covered with a board case 32 and mounted with a game control microcomputer, A relay board 33 for relaying signals between the variable display control unit 29 and the game control board 31, and a payout control board 37 on which a payout control microcomputer for performing payout control of prize balls and the like is mounted. Has been. Further, at the lower part of the mechanism board 36, a ball launching device 34 for launching a hit ball to the game area 7 using the rotational force of the motor, game effect lamps / LEDs 28a, 28b, 28c, a prize ball lamp 51 and a ball break lamp A lamp control board 35 for sending a signal to 52 is installed.

また、図3はパチンコ遊技機1の機構盤を背面から見た背面図である。誘導樋39を通った遊技球は、図3に示されるように、球切れ検出器187a,187bを通過して供給樋186a,186bを経て球払出装置97に至る。球払出装置97から払出された遊技球は、連絡口45を通ってパチンコ遊技機1の前面に設けられている打球供給皿3に供給される。連絡口45の側方には、パチンコ遊技機1の前面に設けられている余剰球受皿4に連通する余剰球通路46が掲載されている。入賞に基づく景品球が多数払出されて打球供給皿3が満杯になり、ついには遊技球が連絡口45に到達した後さらに遊技球が払出されると、遊技球が、余剰球通路46を経て余剰球受皿4に導かれる。さらに遊技球が払出されると、感知レバー47が満タンスイッチ48を押圧して満タンスイッチ48がオンする。この状態では、球払出装置97内のステッピングモータの回転が停止して球払出装置97の動作が停止するとともに、必要に応じて打球発射装置34の駆動も停止する。なお、この実施の形態では、電気的駆動源の駆動によって遊技球を払出す球払出装置として、ステッピングモータの回転によって遊技球が払出される球払出装置97を例示するが、その他の駆動源によって遊技球を送出す構造の球払出装置を用いてもよいし、電気的駆動源の駆動によってストッパを外し遊技球の自重によって払出がなされる構造の球払出装置を用いてもよい。   FIG. 3 is a rear view of the mechanism board of the pachinko gaming machine 1 as seen from the back. As shown in FIG. 3, the game ball that has passed through the guide rod 39 passes through the ball break detectors 187a and 187b and reaches the ball dispensing device 97 through the supply rods 186a and 186b. The game balls paid out from the ball payout device 97 are supplied to the hitting ball supply tray 3 provided on the front surface of the pachinko gaming machine 1 through the connection port 45. A surplus ball passage 46 communicating with the surplus ball receiving tray 4 provided on the front surface of the pachinko gaming machine 1 is posted on the side of the communication port 45. A lot of premium balls based on the winnings are paid out and the hitting ball supply tray 3 is filled. Finally, when the game balls reach the contact port 45 and further game balls are paid out, the game balls pass through the surplus ball passage 46. It is guided to the surplus ball receiving tray 4. When the game ball is further paid out, the sensing lever 47 presses the full tank switch 48 and the full tank switch 48 is turned on. In this state, the rotation of the stepping motor in the ball dispensing device 97 is stopped, the operation of the ball dispensing device 97 is stopped, and the driving of the hitting ball launching device 34 is stopped as necessary. In this embodiment, a ball payout device 97 for paying out game balls by rotation of a stepping motor is illustrated as a ball payout device for paying out game balls by driving an electric drive source. A ball payout device having a structure for delivering a game ball may be used, or a ball payout device having a structure in which a stopper is removed by driving of an electric drive source and payout is performed by the weight of the game ball may be used.

賞球払出制御を行なうために、入賞口スイッチ19a,24a、始動口スイッチ17およびVカウントスイッチ22からの信号が、主基板31に送られる。主基板31のCPU56は、始動口スイッチ17がオンすると6個の賞球払出に対応した入賞が発生したことを知る。また、カウントスイッチ23がオンすると15個の賞球払出に対応した入賞が発生したことを知る。そして、入賞口スイッチがオンすると10個の賞球払出に対応した入賞が発生したことを知る。なお、この実施の形態では、たとえば、入賞口24に入賞した遊技球は、入賞口24からの入賞球流路に設けられている入賞口スイッチ24aで検出され、入賞口19に入賞した遊技球は、入賞口19からの入賞球流路に設けられている入賞口スイッチ19aで検出される。すなわち、遊技領域に設けられた入賞口の全てに対応してそれぞれ入賞球を検出するためのスイッチが設けられている。   In order to perform the prize ball payout control, signals from the winning opening switches 19a and 24a, the start opening switch 17 and the V count switch 22 are sent to the main board 31. The CPU 56 of the main board 31 knows that a winning corresponding to six prize ball payout has occurred when the start port switch 17 is turned on. Further, when the count switch 23 is turned on, it is known that a winning corresponding to 15 prize ball payouts has occurred. Then, when the winning opening switch is turned on, it is known that a winning corresponding to ten winning ball payouts has occurred. In this embodiment, for example, a game ball won in the winning opening 24 is detected by a winning opening switch 24a provided in the winning ball flow path from the winning opening 24 and won in the winning opening 19. Is detected by a winning port switch 19a provided in a winning ball flow path from the winning port 19. That is, a switch for detecting a winning ball is provided corresponding to all of the winning holes provided in the game area.

図4は、主基板31における回路構成の一例を示すブロック図である。なお、図4には、払出制御基板37、ランプ制御基板35、音声制御基板70、発射制御基板91および表示制御基板80が示されている。主基板31には、プログラムに従ってパチンコ遊技機1を制御する基本回路53と、ゲートスイッチ12、始動口スイッチ17、Vカウントスイッチ22、カウントスイッチ23および入賞口スイッチ19a,24aからの信号を基本回路に与えるスイッチ回路58と、該入賞球装置15を開閉するソレノイド16および開閉板20を開閉するソレノイド21を基本回路53からの指令に従って駆動するソレノイド回路59とが搭載されている。   FIG. 4 is a block diagram illustrating an example of a circuit configuration in the main board 31. 4 shows a payout control board 37, a lamp control board 35, a sound control board 70, a launch control board 91, and a display control board 80. On the main board 31, the basic circuit 53 for controlling the pachinko gaming machine 1 according to the program and the signals from the gate switch 12, the start port switch 17, the V count switch 22, the count switch 23 and the winning port switches 19a and 24a are the basic circuit. And a solenoid circuit 59 for driving the solenoid 16 for opening / closing the winning ball apparatus 15 and the solenoid 21 for opening / closing the opening / closing plate 20 in accordance with a command from the basic circuit 53.

また、基本回路53から与えられるデータに従って、大当りの発生を示す大当り情報、可変表示部9の画像表示開始に利用された始動入賞球の個数を示す有効始動情報確率変動が生じたことを示す確変情報とをホール管理コンピュータ等のホストコンピュータに対して出力する情報出力回路64を含む。   Further, according to the data supplied from the basic circuit 53, the jackpot information indicating the occurrence of the jackpot, the probability change indicating that the effective start information probability variation indicating the number of start winning balls used for starting the image display of the variable display unit 9 has occurred. An information output circuit 64 that outputs information to a host computer such as a hall management computer is included.

基本回路53は、ゲーム制御用のプログラム等を記憶するROM54、ワークメモリとして使用される記憶手段の一例であるRAM55、制御用プログラムに従って制御動作を行なうCPU56およびI/Oポート部57を含む。この実施の形態ではROM54,RAM55はCPU56に搭載されている。すなわち、CPU56は、1チップマイクロコンピュータである。なお、1チップマイクロコンピュータは、少なくともRAM55が内蔵されていればよく、ROM54およびI/Oポート部57は外付けであっても内蔵されていてもよい。また、I/Oポート部57は、マイクロコンピュータにおける情報入出力可能な端子である。   The basic circuit 53 includes a ROM 54 that stores a game control program and the like, a RAM 55 that is an example of storage means used as a work memory, a CPU 56 that performs a control operation according to the control program, and an I / O port unit 57. In this embodiment, the ROM 54 and RAM 55 are mounted on the CPU 56. That is, the CPU 56 is a one-chip microcomputer. The one-chip microcomputer only needs to incorporate at least the RAM 55, and the ROM 54 and the I / O port unit 57 may be externally attached or built-in. The I / O port unit 57 is a terminal capable of inputting and outputting information in the microcomputer.

さらに、主基板31には、電源投入時に基本回路53をリセットするためのシステムリセット回路65と、基本回路53から与えられるアドレス信号をデコードしてI/Oポート部57のうちいずれかのI/Oポート部を選択するための信号を出力するアドレスデコード回路67とが設けられている。なお、球払出装置97から主基板31に入力されるスイッチ情報もあるが、図4においてはそれらは省略されている。   Further, the main board 31 has a system reset circuit 65 for resetting the basic circuit 53 when the power is turned on, and decodes an address signal given from the basic circuit 53 to either I / O port unit 57. An address decode circuit 67 for outputting a signal for selecting the O port unit is provided. Note that there is switch information input to the main board 31 from the ball dispensing device 97, but these are omitted in FIG.

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

なお、この実施の形態では、ランプ制御基板35に搭載されているランプ制御手段が、遊技盤に設けられている始動記憶表示器18、ゲート通過記憶表示器41および装飾ランプ25の表示制御を行なうとともに、枠側に設けられている遊技効果ランプ・LED28a,28b,28c、賞球ランプ51および球切れランプ52の表示制御を行なう。ここで、ランプ制御手段は発光体制御手段の一例である。また、特別図柄を可変表示する可変表示部9および普通図柄を可変表示する可変表示器10の表示制御は、図柄制御基板80に搭載されている図柄制御手段によって行なわれる。   In this embodiment, the lamp control means mounted on the lamp control board 35 controls the display of the start memory display 18, the gate passing memory display 41 and the decoration lamp 25 provided on the game board. At the same time, display control of the game effect lamps / LEDs 28a, 28b, 28c, the prize ball lamp 51 and the ball-out lamp 52 provided on the frame side is performed. Here, the lamp control means is an example of a light emitter control means. The display control of the variable display unit 9 for variably displaying the special symbol and the variable display 10 for variably displaying the normal symbol is performed by the symbol control means mounted on the symbol control board 80.

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

球切れ検出スイッチ167および球切れスイッチ187(187a,187b)からの検出信号は、中継基板72および中継基板71を介して主基板31のI/Oポート57に入力される。なお、球切れ検出スイッチ167は、直接球切れ情報を外部出力するものでもよい。球切れ検出スイッチ167は遊技球タンク38内の補給球の不足を検出するスイッチであり、球切れスイッチ187は、遊技球通路内の遊技球の有無を検出するスイッチである。   Detection signals from the ball break detection switch 167 and the ball break switch 187 (187a, 187b) are input to the I / O port 57 of the main board 31 via the relay board 72 and the relay board 71. The ball break detection switch 167 may directly output the ball break information to the outside. The ball break detection switch 167 is a switch for detecting the shortage of supply balls in the game ball tank 38, and the ball break switch 187 is a switch for detecting the presence or absence of a game ball in the game ball passage.

主基板31のCPU56は、球切れ検出スイッチ167または球切れスイッチ187からの検出信号が球切れ状態を示しているか、または、満タンスイッチ48からの検出信号が満タン状態を示していると、球貸し禁止を指示する払出制御コマンドを送出する。球貸し禁止を指示する払出制御コマンドを受信すると、払出制御基板37の払出制御用CPU371は、球貸処理を停止する。   When the detection signal from the ball break detection switch 167 or the ball break switch 187 indicates a broken ball state or the detection signal from the full tank switch 48 indicates a full tank state, A payout control command for instructing ball lending prohibition is sent out. When a payout control command for instructing prohibition of ball lending is received, the payout control CPU 371 of the payout control board 37 stops the ball lending process.

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

そのため、玉払出装置97の内部には、入賞に基づく景品球が通過する賞球通路と貸球が通過する球貸通路とが設けられている。賞球通路には入賞に基づく景品球が払い出されたことを検出する賞球カウントスイッチ301Aが設けられ、球貸通路には貸球が払出されたことを検出すると球貸カウントスイッチ301Bが設けらている。そして、振分ソレノイドによって駆動される振分部材によって、1つの払出モータによって払出された遊技球が賞球通路を通過するかまたは球貸通路を通過する。それにより、賞球と貸球とが別個にカウントされる。なお、本実施の形態においては、1つの払出モータによって払出された遊技球を振分け部材によって振分けることにより賞球と貸球とを検出するようにしたが、振分部材を設けずに、賞球用の払出機構と球貸用の払出機構とを別個に設け、それぞれの機構内に設けられた検出スイッチにより賞球と貸球とを検出するような遊技機であってもよい。   Therefore, inside the ball payout device 97, there are provided a prize ball passage through which a prize ball based on a prize passes and a ball rental passage through which a ball passes. The prize ball passage is provided with a prize ball count switch 301A for detecting that a prize ball based on a prize has been paid out, and the ball rental passage switch is provided with a ball rental count switch 301B when it is detected that a ball has been paid out. I have. And the game ball paid out by one payout motor passes the prize ball passage or passes the ball rental passage by the sorting member driven by the sorting solenoid. Thereby, the winning ball and the rental ball are counted separately. In the present embodiment, the game balls paid out by one payout motor are distributed by the distribution member to detect the prize balls and the rental balls. A gaming machine in which a payout mechanism for balls and a payout mechanism for ball rental are separately provided, and a prize ball and a rental ball are detected by a detection switch provided in each mechanism may be used.

入賞があると、払出制御基板37には、主基板31の出力ポート(ポートG,H)577,578から賞球個数を示す払出制御コマンドが入力される。出力ポート577は8ビットのデータを出力し、出力ポート578は1ビットのストローブ信号(INT信号)を出力する。賞球個数を示す払出制御コマンドは、入力バッファ回路373を介してI/Oポート372aに入力される。払出制御用CPU371は、I/Oポート372aを介して払出制御コマンドを入力し、払出制御コマンドに応じて球払出装置97を駆動して供給払出を行なう。   When there is a winning, a payout control command indicating the number of winning balls is input to the payout control board 37 from the output ports (ports G and H) 577 and 578 of the main board 31. The output port 577 outputs 8-bit data, and the output port 578 outputs a 1-bit strobe signal (INT signal). A payout control command indicating the number of winning balls is input to the I / O port 372a via the input buffer circuit 373. The payout control CPU 371 inputs a payout control command via the I / O port 372a, and drives the ball payout device 97 according to the payout control command to perform supply payout.

なお、この実施の形態では、払出制御用CPU371は、1チップマイクロコンピュータであり、少なくともRAMが内蔵されている。   In this embodiment, the payout control CPU 371 is a one-chip microcomputer and incorporates at least a RAM.

払出制御用CPU371は、出力ポート372gを介して、貸球数を示す球貸個数信号をターミナル基板160に出力し、ブザー駆動信号をブザー基板75入出力する。ブザー基板75にはブザーが搭載されている。さらに、出力ポート372eを介してエラー表示用LED374にエラー信号を出力する。   The payout control CPU 371 outputs a ball lending number signal indicating the number of lending balls to the terminal board 160 via the output port 372g, and inputs / outputs a buzzer driving signal to the buzzer board 75. A buzzer is mounted on the buzzer substrate 75. Further, an error signal is output to the error display LED 374 via the output port 372e.

さらに、払出制御基板37の入力ポート372bには、中継基板72を介して、賞球カウントスイッチ301Aからの検出信号が入力される。払出制御基板37からの払出モータ289への駆動信号は、出力ポート372cおよび中継基板72を介して球払出装置97の払出機構部分における払出モータ289に伝えられる。   Further, a detection signal from the prize ball count switch 301 </ b> A is input to the input port 372 b of the payout control board 37 via the relay board 72. A drive signal from the payout control board 37 to the payout motor 289 is transmitted to the payout motor 289 in the payout mechanism portion of the ball payout device 97 via the output port 372c and the relay board 72.

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

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

パチンコ遊技機1の電源が投入されると、払出制御基板37の払出制御用CPU371は、カードユニット50にPRDY信号を出力する。また、カードユニット制御用マイクロコンピュータは、VL信号を出力する。払出制御用CPU371は、VL信号の入力状態により接続状態/未接続状態を判定する。カードユニット50においてカードが受付けられ、球貸スイッチが操作され球貸スイッチ信号が入力されると、カードユニット制御用マイクロコンピュータは、払出制御基板37にBRDY信号を出力する。この時点から所定の遅延時間が経過すると、カードユニット制御マイクロコンピュータは、払出制御基板37にBRQ信号を出力する。そして、払出制御基板37の払出制御用CPU371は、カードユニット50に対するEXS信号を立上げ、カードユニット50からのBRQ信号の立下がりを検出すると、払出モータ289を駆動し、所定個数の貸球を遊技者に払出す。このとき、振分用ソレノイド310を駆動している。すなわち、球振分部材311を球貸側に向ける。そして、払出が完了したら、払出制御用CPU371は、カードユニット50に対するEXS信号を立下げる。その後、カードユニット50からのBRDY信号がオン状態でなければ、賞球払出制御を実行する。   When the power of the pachinko gaming machine 1 is turned on, the payout control CPU 371 of the payout control board 37 outputs a PRDY signal to the card unit 50. The card unit control microcomputer outputs a VL signal. The payout control CPU 371 determines the connected / unconnected state based on the input state of the VL signal. When a card is received in the card unit 50, the ball lending switch is operated and a ball lending switch signal is input, the card unit control microcomputer outputs a BRDY signal to the payout control board 37. When a predetermined delay time elapses from this point, the card unit control microcomputer outputs a BRQ signal to the payout control board 37. Then, the payout control CPU 371 of the payout control board 37 raises the EXS signal for the card unit 50 and, when detecting the fall of the BRQ signal from the card unit 50, drives the payout motor 289 to give a predetermined number of balls. Pay to the player. At this time, the sorting solenoid 310 is driven. That is, the ball distribution member 311 is directed to the ball lending side. When the payout is completed, the payout control CPU 371 causes the EXS signal to the card unit 50 to fall. Thereafter, if the BRDY signal from the card unit 50 is not on, prize ball payout control is executed.

以上のように、カードユニット50からの信号はすべて払出制御基板37に入力される構成になっている。したがって、球貸制御に関して、カードユニット50から主基板31に信号が入力されることはなく、主基板31の基本回路53にカードユニット50の側から不正に信号が入力される余地はない。なお、主基板31および払出制御基板37には、ソレノイドおよびモータやランプを駆動するためのドライバ回路が搭載されているが、図5では、それらの回路は省略されている。   As described above, all the signals from the card unit 50 are input to the payout control board 37. Therefore, with respect to the ball lending control, no signal is input from the card unit 50 to the main board 31, and there is no room for an illegal signal input from the card unit 50 side to the basic circuit 53 of the main board 31. The main board 31 and the payout control board 37 are mounted with driver circuits for driving solenoids, motors and lamps, but these circuits are omitted in FIG.

なお、この実施の形態ではカードユニット50が設けられている場合を例にするが、コイン投入に応じてその金額に応じた遊技球を貸出す場合にも本発明を適用できる。また、この実施の形態では遊技球を貸出す場合を例にしているが、得点に加算されるものであっても本発明を適用できる。   In this embodiment, the case where the card unit 50 is provided is taken as an example, but the present invention can also be applied to the case where a game ball corresponding to the amount of money is lent according to coin insertion. In this embodiment, a case where a game ball is lent is taken as an example, but the present invention can be applied even if it is added to the score.

この実施の形態では、主基板31および払出制御基板37におけるRAMは、バックアップ電源でバックアップされている。すなわち、遊技球に対する電力供給が停止しても、所定期間はRAMの内容が保存される。そして、各CPUは、電源電圧の低下を検出すると、所定の処理を行なった後に電源復旧待ちの状態になる。また、電源投入時に、各CPUは、RAMにデータが保存されている場合には、保存データに基づいて電源断前の状態を復元する。   In this embodiment, the RAM in the main board 31 and the payout control board 37 is backed up by a backup power source. That is, even if the power supply to the game ball is stopped, the contents of the RAM are stored for a predetermined period. When each CPU detects a drop in the power supply voltage, it performs a predetermined process and waits for power recovery. When the power is turned on, each CPU restores the state before the power is turned off based on the stored data when the data is stored in the RAM.

図6は、電源監視および電源バックアップのためのCPU56周りの一構成例を示すブロック図である。図6に示すように、第1の電源監視回路(電源監視手段、または、第1の電源監視手段)からの電圧低下信号が、CPU56のマスク不能割込端子(NMI端子)に接続されている。第1の電源監視回路は、遊技機が使用する各種直流電流のうちいずれかの電源の電圧を監視して電源電圧低下を検出する回路である。この実施形態では、第1の電源監視回路は、VSLの電源電圧を監視して、その電圧値が所定値以下になるとローレベルの電圧低下信号を発生する。電源電圧VSLは、遊技機で使用される直流電圧のうちで最大のものであってこの例では、+30Vである。したがって、CPU56は、割込処理によって電源断、または、電源低下の発生を確認することができる。なお、この実施の形態では、第1の電源監視回路は、後述する電源基板に搭載されている。   FIG. 6 is a block diagram showing a configuration example around the CPU 56 for power supply monitoring and power supply backup. As shown in FIG. 6, the voltage drop signal from the first power supply monitoring circuit (power supply monitoring means or first power supply monitoring means) is connected to the non-maskable interrupt terminal (NMI terminal) of the CPU 56. . The first power supply monitoring circuit is a circuit that monitors a power supply voltage of various DC currents used by the gaming machine and detects a power supply voltage drop. In this embodiment, the first power supply monitoring circuit monitors the power supply voltage of VSL, and generates a low-level voltage drop signal when the voltage value falls below a predetermined value. The power supply voltage VSL is the largest DC voltage used in the gaming machine, and in this example, is + 30V. Therefore, the CPU 56 can confirm the occurrence of power interruption or power supply drop by interrupt processing. In this embodiment, the first power supply monitoring circuit is mounted on a power supply board described later.

図6には、システムリセット回路65も示されているが、この実施の形態では、システムリセット回路65は、第2の電源監視回路(第2の電源監視手段)も兼ねている。すなわち、リセットIC651は、電源投入時に、外付けのコンデンサと容量で決まる所定時間だけ出力をローレベルとし、所定時間が経過すると出力をハイレベルにする。すなわち、リセット信号をハイレベルに立上げてCPU56を動作可能状態にする。また、リセットIC651は、第1の電源監視回路が監視する電源電圧と等しい電源電圧である電源電圧VSLを監視して、電圧値が所定値(第1の電源監視回路が電圧低下信号を出力する電源電圧値よりも低い値)以下になるとローレベルの電圧低下信号を発生する。したがって、CPU56は、第1の電源監視回路からの電圧低下信号に応じて所定の電力供給停止時処理を行なった後、システムリセットされる。なお、この実施の形態では、リセット信号と第2の電源監視回路からの電圧低下信号とは同一の信号である。   Although the system reset circuit 65 is also shown in FIG. 6, in this embodiment, the system reset circuit 65 also serves as a second power supply monitoring circuit (second power supply monitoring means). That is, when the power is turned on, the reset IC 651 sets the output to the low level for a predetermined time determined by the external capacitor and the capacitance, and sets the output to the high level when the predetermined time elapses. That is, the reset signal is raised to a high level to make the CPU 56 operable. The reset IC 651 monitors the power supply voltage VSL, which is the same as the power supply voltage monitored by the first power supply monitoring circuit, and the voltage value is a predetermined value (the first power supply monitoring circuit outputs a voltage drop signal). When the voltage is lower than the power supply voltage value), a low level voltage drop signal is generated. Therefore, the CPU 56 resets the system after performing a predetermined power supply stop process in response to the voltage drop signal from the first power supply monitoring circuit. In this embodiment, the reset signal and the voltage drop signal from the second power supply monitoring circuit are the same signal.

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

そして、たとえば、第1の電源監視回路の検出電圧(電圧低下信号を出力することになる電圧)を+22Vとし、第2の電源監視回路の検出電圧を+9Vとする。そのように構成した場合には、第1の電源監視回路と第2の電源監視回路とは、同一の電源の電圧VSLを監視するので、第1の電源監視回路が電圧低下信号を出力するタイミングと第2の電圧監視回路が電圧低下信号を出力するタイミングとの差を所望の所定時間に確実に設定することができる。所望の所定時間とは、第1の電源監視回路から発せられた電圧低下信号に応じて電力供給停止時処理を開始してから電力供給停止時処理が確実に完了するまでの期間である。   For example, the detection voltage of the first power supply monitoring circuit (the voltage that outputs the voltage drop signal) is set to + 22V, and the detection voltage of the second power supply monitoring circuit is set to + 9V. In such a configuration, since the first power supply monitoring circuit and the second power supply monitoring circuit monitor the voltage VSL of the same power supply, the timing at which the first power supply monitoring circuit outputs the voltage drop signal. And the timing at which the second voltage monitoring circuit outputs the voltage drop signal can be reliably set to a desired predetermined time. The desired predetermined time is a period from when the power supply stop process is started in response to the voltage drop signal generated from the first power supply monitoring circuit until the power supply stop process is reliably completed.

この例では、第1の電源監視手段が検出信号を出力することになる第1検出条件は+30V電源電圧が+22Vにまで低下したことであり、第2の電源監視手段が検出信号を出力することになる第2検出条件は+30V電源電圧が+9Vにまで低下したことにである。ただし、ここで用いられている電圧値は一例であって、他の値を用いてもよい。   In this example, the first detection condition for the first power supply monitoring means to output the detection signal is that the + 30V power supply voltage has dropped to + 22V, and the second power supply monitoring means outputs the detection signal. The second detection condition is that the + 30V power supply voltage has dropped to + 9V. However, the voltage value used here is an example, and other values may be used.

ただし、監視範囲が狭まるが、第1の電圧監視回路および第2の電圧監視回路それぞれの監視電圧として+5V電源電圧を用いることも可能である。その場合にも、第1の電圧監視回路の検出電圧は、第2の電圧監視回路の検出電圧よりも高く設定される。   However, although the monitoring range is narrowed, it is also possible to use the + 5V power supply voltage as the monitoring voltage of each of the first voltage monitoring circuit and the second voltage monitoring circuit. Also in that case, the detection voltage of the first voltage monitoring circuit is set higher than the detection voltage of the second voltage monitoring circuit.

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

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

図7は、遊技機の電源基板910の一構成例を示すブロック図である。電源基板910は、主基板31、表示制御基板80、音声制御基板70、ランプ制御基板35および払出制御基板37等の電気部品制御基板と独立して設置され、遊技機内の各電気部品制御基板および機構部品が使用する電圧を生成する。この例では、AC24V、DC+30V(VSL)、DC+21V、DC+12V(VDD)およびDC+5V(Vcc)を生成する。また、バックアップ電源となるコンデンサ916は、DC+5V(VBB)すなわち各基板上のIC等を駆動する電源のラインから充電される。   FIG. 7 is a block diagram illustrating a configuration example of the power supply board 910 of the gaming machine. The power supply board 910 is installed independently of the electric component control boards such as the main board 31, the display control board 80, the voice control board 70, the lamp control board 35, and the payout control board 37, and each electric component control board in the gaming machine and Generates voltage used by mechanical components. In this example, AC24V, DC + 30V (VSL), DC + 21V, DC + 12V (VDD) and DC + 5V (Vcc) are generated. A capacitor 916 serving as a backup power source is charged from a line of power source for driving DC + 5V (VBB), that is, an IC or the like on each substrate.

トランス911は、交流電源からの交流電圧を24Vに変換する。AC24V電圧は、コネクタ915に出力される。また、整流回路912は、AC24Vから+30Vの直流電圧を生成し、DC−DCコンバータ913およびコネクタ915に出力する。DC−DCコンバータ913は、+21V、+12Vおよび+5Vを生成してコネクタ915に出力する。コネクタ915はたとえば中継基板に接続されて中継基板から各電気部品制御基板および機構部品に必要な電圧の電力が供給される。なお、トランス911の入力側には、遊技機に対する電源供給を停止したり開始したりするための電源スイッチが設置されている。   The transformer 911 converts AC voltage from the AC power source into 24V. The AC 24V voltage is output to the connector 915. The rectifier circuit 912 also generates a DC voltage of +30 V from AC 24 V and outputs it to the DC-DC converter 913 and the connector 915. The DC-DC converter 913 generates + 21V, + 12V, and + 5V and outputs them to the connector 915. The connector 915 is connected to, for example, a relay board, and power of a voltage necessary for each electrical component control board and the mechanism component is supplied from the relay board. Note that a power switch for stopping or starting the power supply to the gaming machine is installed on the input side of the transformer 911.

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

なお、バックアップ電源として、+5V電源から充電可能な電池を用いてもよい。電池を用いる場合には、+5V電源から電力供給されない状態が所定時間継続すると容量がなくなるような充電池が用いられる。   A battery that can be charged from a + 5V power supply may be used as the backup power supply. In the case of using a battery, a rechargeable battery is used in which the capacity disappears when a state in which no power is supplied from the +5 V power source continues for a predetermined time.

また、電源基板910には、上述した第1の電源監視回路を構成する電源監視用IC902が搭載されている。電源監視用IC902は、電源電圧VSLを導入し、電源電圧VSLを監視することによって電源断の発生を検出する。具体的には、電源電圧VSLが所定値(この例では+22V)以下になると、電源断または電圧低下が生ずるとして電圧低下信号を出力する。なお、監視対象の電源電圧は、各電気部品制御基板に搭載されている回路素子の電源電圧(この例では+5V)よりも高い電圧であることが好ましい。この例では、交流から直流に変換された直後の電圧VSL(+30V)が用いられている。電源監視用IC902からの電圧低下信号は、主基板31や払出制御基板37等の各種制御基板に供給される。   The power supply board 910 is mounted with a power monitoring IC 902 that constitutes the first power monitoring circuit described above. The power monitoring IC 902 detects the occurrence of power interruption by introducing the power supply voltage VSL and monitoring the power supply voltage VSL. Specifically, when the power supply voltage VSL becomes equal to or lower than a predetermined value (+22 V in this example), a voltage drop signal is output because the power supply is cut off or the voltage drops. The power supply voltage to be monitored is preferably higher than the power supply voltage (+5 V in this example) of the circuit element mounted on each electric component control board. In this example, a voltage VSL (+30 V) immediately after being converted from AC to DC is used. A voltage drop signal from the power monitoring IC 902 is supplied to various control boards such as the main board 31 and the payout control board 37.

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

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

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

次に、遊技機の動作について説明する。
図8は、主基板31におけるCPU56が実行するメイン処理を示すフローチャートである。遊技機に対する電源が投入されると、メイン処理において、CPU56は、まず、必要な初期設定を行なう(ステップS1)。
Next, the operation of the gaming machine will be described.
FIG. 8 is a flowchart showing main processing executed by the CPU 56 on the main board 31. When the power to the gaming machine is turned on, in the main process, the CPU 56 first performs necessary initial settings (step S1).

そして、電源断時にバックアップRAM領域のデータを保護するための処理(本例ではパリティデータの負荷等の停電発生NMI処理)が行なわれた否かの確認を行なう(ステップS2)。不測の電源断が生じた場合には、後述するようにバックアップRAM領域のデータを保護するための処理が行なわれている。そのような保護処理が行なわれていた場合をバックアップありとする。バックアップなしという確認結果であれば、初期処理を実行する(ステップS2,S3)。なお、本例では、バックアップRAM領域にバックアップデータがあるか否かは、電源断時にバックアップRAM領域に設定されるバックアップフラグの状態によって確認する。本例では、バックアップフラグ領域に「55H」が設定されていればバックアップあり(オン状態)を意味し、「55H」以外の値が設定されていればバックアップなし(オフ状態)を意味する。   Then, it is confirmed whether or not processing for protecting data in the backup RAM area at the time of power-off (in this example, NMI processing for generating a power failure such as a parity data load) has been performed (step S2). When an unexpected power interruption occurs, processing for protecting data in the backup RAM area is performed as will be described later. When such protection processing is performed, it is assumed that there is a backup. If the confirmation result indicates that there is no backup, initial processing is executed (steps S2 and S3). In this example, whether or not there is backup data in the backup RAM area is confirmed by the state of the backup flag set in the backup RAM area when the power is turned off. In this example, if “55H” is set in the backup flag area, it means that there is a backup (ON state), and if a value other than “55H” is set, it means that there is no backup (OFF state).

バックアップRAM領域にバックアップデータがある場合には、この実施の形態では、CPU56は、バックアップRAM領域のデータチェック(この例ではパリティチェック)を行なう(ステップS4)。不測の電源断が生じた後に復旧した場合には、バックアップRAM領域のデータが保存されていたはずであるから、チェック結果は正常になる。チェック結果が正常でない場合は、内部状態を電源断時の状態に戻すことができないので、停電復旧時でない電源投入時に実行される初期化処理を実行する(ステップS5,S3)。   If there is backup data in the backup RAM area, in this embodiment, the CPU 56 performs a data check of the backup RAM area (parity check in this example) (step S4). If the data is recovered after an unexpected power failure, the data in the backup RAM area should have been saved, so the check result is normal. If the check result is not normal, the internal state cannot be returned to the state when the power is cut off, and therefore an initialization process that is executed when the power is turned on not when the power failure is restored is executed (steps S5 and S3).

チェック結果が正常であれば、CPU56は、内部状態を電源断時の状態に戻すための遊技状態復旧処理を行なう(ステップS6)。したがって本例では、図9に示すように、バックアップフラグの値が「55H」に設定されており、かつ、チェック結果が正常である場合に、ステップS6の遊技状態復旧処理に移行する。そして、バックアップRAM領域に保存されていたPC(プログラムカウンタ)の指すアドレスに復帰する(ステップS7)。   If the check result is normal, the CPU 56 performs a game state recovery process for returning the internal state to the state at the time of power-off (step S6). Therefore, in this example, as shown in FIG. 9, when the value of the backup flag is set to “55H” and the check result is normal, the process proceeds to the gaming state recovery process in step S6. Then, it returns to the address indicated by the PC (program counter) stored in the backup RAM area (step S7).

通常の初期化処理の実行(ステップS2,S3)を終えると、CPU56により実行されるメイン処理はタイマ割込フラグの監視(ステップS9)の確認が行なわれるループ処理に移行する。なお、ループ内では、表示用乱数更新処理(ステップS8)も実行される。   When the normal initialization process (steps S2 and S3) is finished, the main process executed by the CPU 56 shifts to a loop process in which the timer interrupt flag is monitored (step S9). In the loop, display random number update processing (step S8) is also executed.

なお、この実施の形態では、ステップS2でバックアップデータの有無を確認した後、バックアップデータが存在する場合にステップS4でバックアップ領域のチェックを行なうようにしていたが、逆に、バックアップ領域のチェック結果が正常であったことを確認した後、バックアップデータの有無の確認を行なうようにしてもよい。また、バックアップデータの有無の確認、または、バックアップ領域のチェックのいずれか一方の確認を行なうことで、停電復旧処理を実行するか否かを判別する構成としてもよい。   In this embodiment, after the presence or absence of backup data is confirmed in step S2, the backup area is checked in step S4 if backup data exists. Conversely, the backup area check result After confirming that the data is normal, the presence or absence of backup data may be confirmed. Further, it may be configured to determine whether or not to execute the power failure recovery processing by confirming either one of the presence / absence of backup data or the confirmation of the backup area.

通常の初期化処理では、図10に示すように、RAMのクリア処理が行なわれる(ステップS3a)。次いで、作業領域初期設定テーブルのアドレス値に基づいて、所定の作業領域(たとえば、普通図柄判定用乱数カウンタ、普通図柄判定用バッファ、特別図柄左中右図柄バッファ、払出コマンド格納ポインタなど)に初期値を設定する初期値設定処理(ステップS3b)が行なわれる。そして、2ms毎に定期的にタイマ割込がかかるようにCPU56に設けられているタイマレジスタの初期設定(タイムアウトが2msであることと、繰返しタイマが動作する設定)が行なわれる(ステップS3c)。すなわち、ステップS3cで、タイマ割込を能動化する処理と、タイマ割込インターバルを設定する処理とが実行される。そして、初期設定処理(ステップS1)において割込禁止(図12参照)とされているため、初期化処理を終える前に割込が許可される(ステップS3d)。   In the normal initialization process, as shown in FIG. 10, a RAM clear process is performed (step S3a). Next, based on the address value of the work area initial setting table, it is initialized to a predetermined work area (for example, a normal symbol determination random number counter, a normal symbol determination buffer, a special symbol left middle right symbol buffer, a payout command storage pointer, etc.) Initial value setting processing (step S3b) for setting a value is performed. Then, initialization of a timer register provided in the CPU 56 (setting that the timeout is 2 ms and the repeated timer operates) is performed so that a timer interrupt is periodically generated every 2 ms (step S3c). That is, in step S3c, a process for activating a timer interrupt and a process for setting a timer interrupt interval are executed. Since the interruption is prohibited (see FIG. 12) in the initial setting process (step S1), the interruption is permitted before the initialization process is completed (step S3d).

したがって、この実施の形態では、CPU56の内部タイマが繰返しタイマ割込を発生するように設定される。この実施の形態では、繰返し周期は2msに設定される。そして、図11に示すように、タイマ割込が発生すると、CPU56は、タイマ割込フラグを設定する(ステップS12)。   Therefore, in this embodiment, the internal timer of the CPU 56 is set so as to repeatedly generate a timer interrupt. In this embodiment, the repetition period is set to 2 ms. Then, as shown in FIG. 11, when a timer interrupt occurs, the CPU 56 sets a timer interrupt flag (step S12).

CPU56は、ステップS9において、タイマ割込フラグがセットされたことを検出すると、タイマ割込フラグをリセットするとともに(ステップS10)、遊技制御処理を実行する(ステップS11)。以上の制御によって、この実施の形態では、遊技制御処理は2ms毎に起動されることになる。なお、この実施の形態ではタイマ割込処理はフラグセットのみがなされ、遊技制御処理はメイン処理において実行されるが、タイマ割込処理での遊技制御処理を実行してもよい。   When detecting that the timer interrupt flag is set in step S9, the CPU 56 resets the timer interrupt flag (step S10) and executes a game control process (step S11). With the above control, in this embodiment, the game control process is started every 2 ms. In this embodiment, only the flag is set for the timer interrupt process, and the game control process is executed in the main process, but the game control process in the timer interrupt process may be executed.

上述したように、バックアップデータの有無により電源断時の状態に復旧するか否かの判別を行なうようにしたことで、停電後の電源復旧時などにおいて電源投入されたときに、バックアップデータ記憶領域の内容に応じて電源断時の状態に復旧させるか否かの判別を行なうことができる。したがって、バックアップデータに基づく制御を実現することができるとともに、不必要な復旧処理の実行を防止することができる。   As described above, the backup data storage area when the power is turned on at the time of power restoration after a power failure, etc., by determining whether or not to restore to the power-off state depending on the presence or absence of backup data It is possible to determine whether or not to restore the power-off state according to the contents of. Therefore, it is possible to realize control based on the backup data and to prevent unnecessary recovery processing from being executed.

また、バックアップデータの状態により電源断時の状態に復旧するか否かの判別を行なうようにしたことで、停電後の電源復旧時などにおいて電源投入されたときに、バックアップデータ記憶領域の内容の状態に応じて電源断時の状態に復旧されるか否かの判別を行なうことができる。したがって、正常なバックアップデータに基づく制御を実現することができるとともに、異常が発生しているバックアップデータに基づく復旧処理の実行を防止することができる。   In addition, by determining whether or not to restore to the power-off state depending on the status of the backup data, the contents of the backup data storage area will be stored when the power is turned on when the power is restored after a power failure. It is possible to determine whether or not the state is restored to the state at the time of power-off according to the state. Therefore, it is possible to realize control based on normal backup data and to prevent execution of recovery processing based on backup data in which an abnormality has occurred.

図12は、ステップS1の初期設定処理を示すフローチャートである。初期設定処理において、CPU56は、まず、割込禁止に設定する(ステップS1a)。割込禁止に設定すると、CPU56は、割込モードを割込モード2に設定し(ステップS1b)、スタックポインタにスタックポインタ指定アドレスを設定する(ステップS1c)。そして、CPU56は、内蔵デバイスレジスタの初期化(ステップS1d)、前述の割込モード2に設定することにより使用が可能となるCTC(カウンタ/タイマ)およびPIO(パラレル入出力ポート)の初期化(ステップS1e)を行なった後、電源断時にRAMの内容を保護するためにRAMへのアクセスを不能としているため、RAMをアクセス可能状態に設定する(ステップS1f)。   FIG. 12 is a flowchart showing the initial setting process in step S1. In the initial setting process, the CPU 56 first sets the interrupt prohibition (step S1a). When the interrupt is prohibited, the CPU 56 sets the interrupt mode to the interrupt mode 2 (step S1b), and sets the stack pointer designation address in the stack pointer (step S1c). Then, the CPU 56 initializes the built-in device register (step S1d), initializes the CTC (counter / timer) and PIO (parallel input / output port) that can be used by setting the above-described interrupt mode 2 ( After performing step S1e), access to the RAM is disabled in order to protect the contents of the RAM when the power is turned off, so the RAM is set to an accessible state (step S1f).

なお、初期設定処理において設定され得るINT信号の入力により割込が許可されるマスカブル割込の割込モードには、以下の3種類のモードがある。   Note that there are the following three types of maskable interrupt modes that are allowed to be interrupted by the input of an INT signal that can be set in the initial setting process.

割込モード0:リセット時に設定されるモードであって、1バイトのCALL命令であるRST命令により割込元から指定されたアドレス(00(H)〜38(H))が、割込処理プログラムのスタートアドレスを示すモードである。   Interrupt mode 0: This mode is set at reset, and the address (00 (H) to 38 (H)) specified from the interrupt source by the RST instruction which is a 1-byte CALL instruction is an interrupt processing program. This is a mode indicating the start address.

割込みモード1:割込処理プログラムのスタートアドレス(38(H))が予め定められているモードである。   Interrupt mode 1: This is a mode in which the start address (38 (H)) of the interrupt processing program is predetermined.

割込みモード2:CPU56の特定レジスタの値(1バイト)と内蔵デバイスが出力する割込ベクター(1バイト:最大ビット0)から構成されるアドレスが、割込番地を示すものである。すなわち割込番地は、上位アドレスが特定レジスタの値とされ、下位アドレスが割込ベクターとされた2バイトで示されるアドレスである。   Interrupt mode 2: The address constituted by the value of the specific register (1 byte) of the CPU 56 and the interrupt vector (1 byte: maximum bit 0) output from the built-in device indicates the interrupt address. That is, the interrupt address is an address indicated by 2 bytes in which the upper address is the value of the specific register and the lower address is an interrupt vector.

図13は、ステップS11の遊技制御処理を示すフローチャートである。遊技制御処理において、CPU56は、まず、スイッチ回路58を介して、ゲートセンサ12、始動口センサ17、カウントセンサ23および入賞口スイッチ19a,24aの状態を入力し、各入賞口や入賞装置に対する入賞があったか否かを判別する(スイッチ処理:ステップS21)。   FIG. 13 is a flowchart showing the game control process of step S11. In the game control process, the CPU 56 first inputs the states of the gate sensor 12, the start port sensor 17, the count sensor 23, and the winning port switches 19a and 24a via the switch circuit 58, and wins each winning port and winning device. Is determined (switching process: step S21).

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

次に、遊技制御に用いられる大当り判定用乱数等の各判定用乱数を示す各カウンタを更新する処理を行なう(ステップS23)。CPU56は、さらに、停止図柄の種類を決定する乱数等の表示用乱数を更新する処理を行なう(ステップS24)。   Next, a process of updating each counter indicating each determination random number such as a big hit determination random number used for game control is performed (step S23). The CPU 56 further performs a process of updating a display random number such as a random number for determining the type of stop symbol (step S24).

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

また、CPU56は、表示制御基板80に送り出される特別図柄制御コマンドや普通図柄信号コマンドをRAM55の所定の領域に設定する処理を行なった後に、特別図柄制御コマンドや普通図柄制御コマンドを出力する処理を行なう(特別図柄コマンド制御処理:ステップS27,普通図柄コマンド制御処理:ステップS28)。   Further, the CPU 56 performs a process of setting the special symbol control command and the normal symbol signal command sent to the display control board 80 in a predetermined area of the RAM 55 and then outputting the special symbol control command and the normal symbol control command. Performed (special symbol command control processing: step S27, normal symbol command control processing: step S28).

次いで、CPU56は、各種出力データの格納領域の内容を各出力ポートに出力する処理を行なう(データ出力処理:ステップS29)。なお、CPU56は、たとえばホール管理用コンピュータに出力される大当り情報、始動情報、確率変動情報などの出力データを格納領域に設定する出力データ設定処理などの他の処理も行なう。   Next, the CPU 56 performs a process of outputting the contents of the storage area for various output data to each output port (data output process: step S29). The CPU 56 also performs other processing such as output data setting processing for setting output data such as jackpot information, start information, probability variation information, etc. output to the hall management computer in the storage area.

また、CPU56は、所定の条件が成立したときにソレノイド回路59に駆動指令を行なう(ステップS30)。ソレノイド回路59は、駆動指令に応じてソレノイド16,21を駆動し、可変入賞球装置19または開閉板22を開状態または閉状態とする。また、CPU56は、たとえば入賞口24等の各入賞口の検出に基づく賞球数の設定などを行なう(ステップS31)。すなわち、所定の条件が成立すると払出制御基板37に払出制御コマンドを出力する。払出制御基板37に搭載されている払出制御用CPU371は、払出制御コマンドに応じて球払出装置97を駆動する。   CPU 56 issues a drive command to solenoid circuit 59 when a predetermined condition is satisfied (step S30). The solenoid circuit 59 drives the solenoids 16 and 21 in response to the drive command, thereby opening or closing the variable winning ball apparatus 19 or the opening / closing plate 22. Further, the CPU 56 sets the number of winning balls based on detection of each winning opening such as the winning opening 24, for example (step S31). That is, when a predetermined condition is satisfied, a payout control command is output to the payout control board 37. The payout control CPU 371 mounted on the payout control board 37 drives the ball payout device 97 according to the payout control command.

以上のように、メイン処理には遊技制御処理に移行すべきか否かを判別する処理が含まれ、CPU56の内部タイマが定期的に発生するタイマ割込に基づくタイマ割込処理で、遊技制御処理に移行すべきか否かを判別するためのフラグがセットされるので、遊技制御処理のすべてが確実に実行される。つまり、遊技制御処理のすべてが実行されるまでは、次回の遊技制御処理に移行すべきか否かの判定が行なわれないので、遊技制御処理中のすべての各処理が実行を完了することは保証されている。   As described above, the main process includes a process for determining whether or not to shift to the game control process, and the game control process is a timer interrupt process based on a timer interrupt periodically generated by the internal timer of the CPU 56. Since the flag for determining whether or not to shift to is set, all of the game control processing is executed reliably. In other words, until all the game control processes are executed, it is not determined whether or not to shift to the next game control process, so it is guaranteed that all the processes in the game control process are completed. Has been.

従来の一般的な遊技制御処理は、定期的に発生する外部割込によって、強制的に最初の状態に戻されていた。図13に示された例に則して説明すると、たとえば、ステップS31の処理中であっても、強制的にステップS21の処理に戻されていた。つまり、遊技制御処理中のすべての各処理が実行を完了する前に、次回の遊技制御処理が開始されてしまう可能性があった。   Conventional general game control processing is forcibly returned to the initial state by an external interrupt that occurs periodically. If it demonstrates in accordance with the example shown by FIG. 13, for example, even if it was during the process of step S31, it was forcibly returned to the process of step S21. That is, there is a possibility that the next game control process may be started before all the processes in the game control process have completed execution.

なお、ここでは、主基板31のCPU56が実行する遊技制御処理は、CPU56の内部タイマの定期的に発生するタイマ割込に基づくタイマ割込処理でセットされるフラグに応じて実行されたが、定期的に(たとえば2ms毎)信号を発生するハードウェア回路を設け、その回路からの信号をCPU56の外部割込端子に導入し、割込信号によって遊技制御処理に移行すべきか否かを判定するためのフラグをセットするようにしてもよい。   Here, the game control process executed by the CPU 56 of the main board 31 is executed according to the flag set in the timer interrupt process based on the timer interrupt periodically generated by the internal timer of the CPU 56. A hardware circuit that generates a signal periodically (for example, every 2 ms) is provided, and a signal from the circuit is introduced into an external interrupt terminal of the CPU 56, and it is determined whether or not to shift to a game control process by the interrupt signal. A flag may be set for this purpose.

そのように構成した場合にも、遊技制御処理のすべてが実行されるまでは、フラグの判定が行なわれないので、遊技制御処理の中のすべての各処理が実行を完了することが保証される。   Even in such a configuration, the determination of the flag is not performed until all of the game control processes are executed, so that it is guaranteed that all the processes in the game control processes are completed. .

図14は、電源基板910の電源監視回路からの電圧変化信号に基づくNMIに応じて実行される停電発生NMI処理の一例を示すフローチャートである。停電発生NMI処理において、CPU56は、まず、停電時などの電源断時直前の割込許可/禁止状態をバックアップするために、割込禁止フラグの内容をパリティフラグに格納する(ステップS41)。次いで、割込禁止に設定する(ステップS42)。停電発生NMI処理では、RAM内容の保存を確実にするためにチェックサムの生成処理を行なう。その処理中に他の割込処理が行なわれたのではチェックサムの生成処理が完了しないうちにCPUが動作し得ない電圧にまで低下してしまうことが考えられるので、まず、他の割込が生じないような設定がなされる。なお、停電発生NMI処理におけるステップS44〜S50は、電力供給停止処理の一例である。   FIG. 14 is a flowchart showing an example of a power failure occurrence NMI process executed in response to the NMI based on the voltage change signal from the power supply monitoring circuit of the power supply board 910. In the power failure occurrence NMI process, the CPU 56 first stores the contents of the interrupt prohibition flag in the parity flag in order to back up the interrupt permission / prohibition state immediately before the power failure such as a power failure (step S41). Next, interrupt prohibition is set (step S42). In the power failure occurrence NMI processing, checksum generation processing is performed to ensure the storage of the RAM contents. If another interrupt process is performed during that process, it is possible that the CPU will not be able to operate before the checksum generation process is completed. Setting is made so as not to occur. Note that steps S44 to S50 in the power failure occurrence NMI process are an example of the power supply stop process.

また、割込処理中では他の割込がかからないような仕様のCPUを用いている場合には、ステップS42の処理は不要である。   Further, when a CPU having a specification that does not cause other interrupts during the interrupt process is used, the process of step S42 is not necessary.

次いで、CPU56は、バックアップフラグが既にセットされているか否か確認する(ステップS43)。バックアップフラグが既にセットされていれば、以後の処理を行なわない。バックアップセットがセットされていなければ、以下の電力供給停止時処理を実行する。すなわち、ステップS44からステップS55の処理を実行する。   Next, the CPU 56 checks whether or not the backup flag has already been set (step S43). If the backup flag is already set, no further processing is performed. If the backup set is not set, the following power supply stop process is executed. That is, the processing from step S44 to step S55 is executed.

まず、各レジスタの内容をバックアップRAM領域に格納するステップS44)。その後、バックアップフラグをセットする(ステップS45)。そしてバックアップRAM領域のバックアップチェックデータ領域に適当な初期値を設定し(ステップS46)、初期値およびバックアップRAM領域のデータについて順次排他的論理和をとった後反転し(ステップS47)、最終的な演算値をバックアップパリティデータ領域に設定する(ステップS48)。また、RAMアクセス禁止状態にする(ステップS49)。さらに、すべての出力ポートをオフ状態にする(ステップS50)。電源電圧が低下しているときには、各種信号線のレベルが不安定になってRAM内容が化ける可能性があるが、このようにRAMアクセス禁止状態にしておけば、バックアップRAM内のデータが化けることはない。   First, the contents of each register are stored in the backup RAM area (step S44). Thereafter, a backup flag is set (step S45). Then, an appropriate initial value is set in the backup check data area of the backup RAM area (step S46), the initial value and the data in the backup RAM area are sequentially exclusive-ORed and then inverted (step S47), and finally The calculated value is set in the backup parity data area (step S48). Further, the RAM access is prohibited (step S49). Further, all output ports are turned off (step S50). When the power supply voltage is lowered, the level of various signal lines may become unstable and the contents of the RAM may be changed. If the RAM access is prohibited in this way, the data in the backup RAM will be changed. There is no.

続いて、CPU56は、ループ処理に入る。すなわち何らの処理もしない状態になる。したがって、図6に示されたリセットIC651からのシステムリセット信号によって外部から動作禁止状態にされる前に、内部的に動作停止状態になる。よって、電源断時に確実にCPU56は動作停止する。その結果、上述したRAMアクセス禁止の制御および動作停止制御によって、電源電圧が低下することに伴って生じる可能性がある異常動作に起因するRAMの内容破壊等を確実に防止することができる。   Subsequently, the CPU 56 enters a loop process. That is, no processing is performed. Therefore, the operation is internally stopped before the operation is disabled by the system reset signal from the reset IC 651 shown in FIG. Therefore, the CPU 56 reliably stops operation when the power is turned off. As a result, the RAM access prohibition control and the operation stop control described above can reliably prevent the RAM contents from being destroyed due to an abnormal operation that may occur as the power supply voltage decreases.

なお、この実施の形態では、停電発生NMI処理では最終部でプログラムをループ状態にしたが、ホールト(HALT)命令を発行するように構成してもよい。   In this embodiment, in the power failure occurrence NMI processing, the program is looped at the final part, but a halt (HALT) instruction may be issued.

また、レジスタの内容をRAM領域に格納した後にセットされるバックアップフラグは、上述したように、電源投入時において復旧すべきバックアップデータがあるか否か(停電からの復旧か否か)を判断する際に使用される。また、ステップS41からS50の処理は、CPU56がシステムリセット回路65からのシステムリセット信号を受ける前に完了する。換言すれば、システムリセット回路65からのシステムリセット信号を受ける前に完了するように、電圧監視回路の検出電圧の設定が行なわれている。   Further, as described above, the backup flag that is set after the register contents are stored in the RAM area determines whether or not there is backup data to be restored when the power is turned on (whether or not it is restored from a power failure). Used when. Further, the processing of steps S41 to S50 is completed before the CPU 56 receives the system reset signal from the system reset circuit 65. In other words, the detection voltage of the voltage monitoring circuit is set so as to be completed before receiving the system reset signal from the system reset circuit 65.

この実施の形態では電力供給停止時処理開始時に、バックアップフラグの確認が行なわれる。そして、バックアップフラグが既に設定されている場合は電力供給停止時処理を実行しない。上述したように、バックアップフラグは、必要なデータのバックアップが完了し、その後電力供給停止時処理が完了したことを示すフラグである。したがって、たとえばリセット待ちのループ状態でなんらかの原因で再度NMIが発生したとしても、電力供給停止時処理が重複して実行されてしまうようなことはない。   In this embodiment, the backup flag is confirmed at the start of the power supply stop process. If the backup flag is already set, the power supply stop process is not executed. As described above, the backup flag is a flag indicating that the backup of necessary data has been completed and the power supply stop process has been completed thereafter. Therefore, for example, even if NMI occurs again for some reason in a loop waiting for resetting, the power supply stop process is not executed repeatedly.

ただし、割込処理中では他の割込が入らないような仕様のCPUを用いている場合には、ステップS43の判断は不要である。   However, if a CPU with a specification that does not allow other interrupts during interrupt processing is used, the determination in step S43 is not necessary.

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

電源が再投入されたときには、停電復旧処理においてパリティ診断が行なわれる。バックアップ領域の全データがそのまま保存されていれば、電源再投入時に、図15に示すようなデータがバックアップ領域に設定されている。   When the power is turned on again, a parity diagnosis is performed in the power failure recovery process. If all the data in the backup area is stored as it is, data as shown in FIG. 15 is set in the backup area when the power is turned on again.

ステップS4(図8に示すバックアップ領域パリティ診断)の処理において、CPU56は、停電発生NMI処理にて実行された処理と同様の処理を行なう。すなわち、バックアップチェックデータ領域に、初期データ(この例では00H)が設定され、「00H」と「F0H」との排他的論理和がとられ、その結果と「16H」との排他的論理和がとられる。さらに、その結果と「DFH」との排他的論理和がとられる。そして、その結果(この例では「39H」)を反転した最終演算結果を得る。バックアップ領域の全データがそのまま保存されていれば、最終的な演算結果は、「C6H」、すなわち、バックアップチェックデータ領域に設定されているデータと一致する。バックアップRAM領域内のデータにビット誤りが生じていた場合には、最終的な演算結果は「C6H」にはならない。   In the process of step S4 (backup area parity diagnosis shown in FIG. 8), the CPU 56 performs the same process as the process executed in the power failure occurrence NMI process. That is, initial data (00H in this example) is set in the backup check data area, an exclusive OR of “00H” and “F0H” is taken, and an exclusive OR of the result and “16H” is obtained. Be taken. Further, an exclusive OR of the result and “DFH” is taken. Then, a final calculation result obtained by inverting the result (“39H” in this example) is obtained. If all the data in the backup area is stored as it is, the final calculation result coincides with “C6H”, that is, the data set in the backup check data area. If a bit error has occurred in the data in the backup RAM area, the final calculation result is not “C6H”.

よって、CPU56は、最終的な演算結果とバックアップチェックデータ領域に設定されているデータとを比較して、一致すればパリティ診断正常とする。一致しなければパリティ診断異常とする。   Therefore, the CPU 56 compares the final calculation result with the data set in the backup check data area, and if they match, the parity diagnosis is normal. If they do not match, the parity diagnosis is abnormal.

以上のように、この実施の形態では、遊技制御手段には、遊技機の電源が断になっても、所定期間電源バックアップされる記憶手段(この例ではバックアップRAM)が設けられ、電源投入時に、CPU56(具体的にはCPU56が実行するプログラム)は、記憶手段がバックアップ状態にあればバックアップデータに基づいて遊技状態を回復させる遊技状態復旧処理(ステップS6)を行なうように構成されている。   As described above, in this embodiment, the game control means is provided with a storage means (in this example, a backup RAM) that is backed up for a predetermined period even when the power of the gaming machine is cut off. The CPU 56 (specifically, a program executed by the CPU 56) is configured to perform a game state recovery process (step S6) for recovering the game state based on the backup data if the storage means is in the backup state.

この実施の形態では、図7に示されたように電源基板910に電源監視回路が搭載され、図6に示されるように主基板31にシステムリセット回路65が搭載されている。そして、電源電圧が低下していくときに、システムリセット回路65がローレベルのシステムリセット信号を発生する時期は、電源監視回路(この例では電源監視用IC902)がローレベルのNMI割込信号を発生する時期よりも遅くなるように設定されている。さらに、システムリセット回路65からのローレベルのシステムリセット信号は、CPU56のリセット端子に入力されている。   In this embodiment, a power supply monitoring circuit is mounted on the power supply board 910 as shown in FIG. 7, and a system reset circuit 65 is mounted on the main board 31 as shown in FIG. When the power supply voltage is lowered, the system reset circuit 65 generates a low level system reset signal when the power supply monitoring circuit (in this example, the power monitoring IC 902) outputs a low level NMI interrupt signal. It is set to be later than the time of occurrence. Further, a low level system reset signal from the system reset circuit 65 is input to the reset terminal of the CPU 56.

すると、CPU56は、電源監視手段(電源監視用IC902)からの電圧低下信号に基づいて停電発生処理(電力供給停止時処理)を実行した後にループ状態に入るのであるが、ループ状態において、リセット状態に入ることになる。すなわち、CPU56の動作が完全に停止する。+5V電源電圧値で以下においては、CPU56の正常な動作が担保できない(すなわち、動作の管理ができない状態が発生する)が、CPU56は正常に動作できる電源が供給されている状態でリセット状態になるので、不定データに基づいて異常動作をしてしまうことは防止される。   Then, the CPU 56 enters the loop state after executing the power failure generation processing (processing when the power supply is stopped) based on the voltage drop signal from the power monitoring means (power monitoring IC 902). Will enter. That is, the operation of the CPU 56 is completely stopped. With the + 5V power supply voltage value below, normal operation of the CPU 56 cannot be ensured (that is, a state in which the operation cannot be managed occurs), but the CPU 56 is in a reset state when power that can operate normally is supplied. Therefore, it is possible to prevent abnormal operation based on indefinite data.

このように、この実施の形態では、CPU56が、電源監視回路からの検出出力の入力に応じてループ状態に入るとともに、システムリセット回路65からの検出信号の入力に応じてシステムリセットされるように構成されている。したがって、電源断時に確実なデータ保存が行なわれ、遊技者に不利益がもたらされることが防止される。   Thus, in this embodiment, the CPU 56 enters a loop state in accordance with the input of the detection output from the power supply monitoring circuit, and is reset in accordance with the input of the detection signal from the system reset circuit 65. It is configured. Therefore, reliable data storage is performed when the power is turned off, and a disadvantage to the player is prevented.

なお、この実施の形態では、電源監視用IC902とシステムリセット回路65とは、同一の電源電圧を監視しているが、異なる電源電圧を監視してもよい。たとえば、電源基板910の電源監視回路が+30V電源電圧を監視し、システムリセット回路65が+5V電源電圧を監視してもよい。そして、システムリセット回路65がローレベルのシステムリセット信号を発生するタイミングは、電源監視回路がNMI割込信号を発生するタイミングに対して遅くなるように、システムリセット回路65のしきい値レベル(システムリセット信号を発生する電圧レベル)が設定される。たとえば、しきい値は4.25Vである。4.25Vは、CPU56が動作する通常の電圧値より低いが、CPU56がしばらくの間動作し得る程度の電圧である。なお、システムリセット回路65に設けられた遅延手段の遅延時間(本例では、コンデンサの容量)を調整して、システムリセット回路65がローレベルのシステムリセット信号を発生するタイミングを電源監視回路がNMI割込信号を発生するタイミングに対して遅らせるようにしてもよい。   In this embodiment, the power monitoring IC 902 and the system reset circuit 65 monitor the same power supply voltage, but may monitor different power supply voltages. For example, the power supply monitoring circuit on the power supply board 910 may monitor the + 30V power supply voltage, and the system reset circuit 65 may monitor the + 5V power supply voltage. The timing at which the system reset circuit 65 generates a low-level system reset signal is later than the timing at which the power supply monitoring circuit generates the NMI interrupt signal. The voltage level for generating the reset signal is set. For example, the threshold is 4.25V. 4.25 V is lower than the normal voltage value at which the CPU 56 operates, but is a voltage that allows the CPU 56 to operate for a while. The power monitoring circuit adjusts the delay time of the delay means provided in the system reset circuit 65 (in this example, the capacitance of the capacitor) so that the system reset circuit 65 generates a low-level system reset signal. You may make it delay with respect to the timing which generate | occur | produces an interruption signal.

また、上記の実施の形態では、CPU56は、マスク不能割込端子(NMI端子)を介して電源基板からのNMI割込信号(電源監視手段からのNMI割込信号)を検知したが、NMI割込信号をマスク可能割込端子(IRQ端子)に導入してもよい。その場合には、割込処理(IRQ処理)で電力供給停止時処理が実行される。また、入力ポートを介して電源基板910からのNMI割込信号を検知してもよい。その場合には、メイン処理において入力ポートの監視が行なわれる。   In the above embodiment, the CPU 56 detects the NMI interrupt signal (NMI interrupt signal from the power monitoring means) from the power supply board via the non-maskable interrupt terminal (NMI terminal). An interrupt signal may be introduced to a maskable interrupt terminal (IRQ terminal). In that case, a power supply stop process is executed in the interrupt process (IRQ process). Further, an NMI interrupt signal from the power supply board 910 may be detected via the input port. In that case, the input port is monitored in the main process.

また、NMI割込信号に代えてIRQ端子を介して電源基板910からの割込信号を検知する場合に、メイン処理のステップS10における遊技制御処理の開始時にIRQ割込マスクをセットし、遊技制御処理の終了時にIRQ割込マスクを解除するようにしてもよい。そのようにすれば、遊技制御処理の開始前および終了後に割込がかかることになって、遊技制御処理が途中で中断されることはない。したがって、払出制御コマンドを払出制御基板37に送り出しているときなどに、コマンド送り出しが中断されてしまうようなことはない。よって、停電が発生するようなときでも払出制御コマンド等が確実に送り出しを完了する。   Further, when an interrupt signal from the power supply board 910 is detected via the IRQ terminal instead of the NMI interrupt signal, the IRQ interrupt mask is set at the start of the game control process in step S10 of the main process, and the game control The IRQ interrupt mask may be canceled at the end of processing. By doing so, an interruption is applied before and after the start of the game control process, and the game control process is not interrupted in the middle. Accordingly, when the payout control command is sent to the payout control board 37, the command sending is not interrupted. Therefore, even when a power failure occurs, the payout control command and the like are surely completed.

また、この実施の形態では、停電発生処理(電力供給停止時処理)において、既にデータがバックアップされ電力供給停止時処理が既に実行されたことを示すバックアップフラグがセットアップされている場合には、電力供給停止時処理を実行しないように構成されている。電源がダウンする過程では、再度NMIが発生する可能性がある。すると、電源発生処理においてバックアップフラグの確認を行なわない場合には、再度発生したNMIによって再度電力供給停止時処理が実行される。最初に実行された電力供給停止時処理では、レジスタの内容をバックアップRAMに格納する処理が行なわれる(図14におけるステップS44参照)。最初に実行された正規の電力供給停止時処理後のリセット待ちの状態では、電源電圧は徐々に低下していくので、レジスタの内容が破壊される可能もある。すなわち、レジスタ値は、電源断が検出されたときの状態(最初にNMIが発生したとき)から変化している可能性がある。そのような状態で再度電力供給停止時処理が実行されると、電源断が検出されたときの状態のレジスタ値とは異なる値がバックアップRAMに格納されてしまう。すると、電源復旧時に実行される電源復旧処理において、電源断が検出されたときの状態のレジスタ値とは異なる値がレジスタに復旧されてしまう。その結果電源断時の遊技状態とは異なる遊技状態が再現されてしまう可能性が生ずる。   In this embodiment, in the power failure occurrence process (power supply stop process), when the backup flag indicating that the data has already been backed up and the power supply stop process has already been executed is set up, The supply stop process is not executed. In the process of powering down, NMI may occur again. Then, when the backup flag is not confirmed in the power generation process, the power supply stop process is executed again by the NMI that is generated again. In the first power supply stop process, the contents of the register are stored in the backup RAM (see step S44 in FIG. 14). In a state of waiting for reset after the first process of stopping the normal power supply that is executed first, the power supply voltage gradually decreases, so that the contents of the register may be destroyed. That is, there is a possibility that the register value has changed from the state at the time when the power interruption is detected (when NMI first occurs). If the power supply stop process is executed again in such a state, a value different from the register value in the state when the power supply is detected is stored in the backup RAM. Then, in the power recovery process executed at the time of power recovery, a value different from the register value in the state at the time when the power interruption is detected is restored to the register. As a result, there is a possibility that a gaming state different from the gaming state when the power is turned off is reproduced.

以下、遊技状態復旧処理について説明する。
図16は、図8のステップS6に示された遊技状態復旧処理の一例を示すフローチャートである。この例では、CPU56は、バックアップRAMに保存されていた値を各レジスタに復元する(ステップS61)。そして、バックアップRAMに保存されていたデータに基づいて停電時の遊技状態を確認して復旧させる。すなわちバックアップRAMに保存されていたデータに基づいて、ソレノイド回路59を介してソレノイド16,21を駆動し、たとえば始動入賞口24等や開閉板22の開閉状態の復旧を行なう(ステップS62,S63)。また、電源断中でも駆動されていた特別図柄プロセスフラグおよび普通図柄プロセスフラグの値に応じて、電源断時の特別図柄プロセス処理の進行状況および普通図柄プロセス処理の進行状況に対応した制御コマンドを、表示制御基板80、ランプ制御基板35および音声制御基板70に送り出す(ステップS63)。
Hereinafter, the gaming state restoration process will be described.
FIG. 16 is a flowchart showing an example of the gaming state recovery process shown in step S6 of FIG. In this example, the CPU 56 restores the value stored in the backup RAM to each register (step S61). And based on the data preserve | saved at backup RAM, the game state at the time of a power failure is confirmed and it is made to recover. That is, based on the data stored in the backup RAM, the solenoids 16 and 21 are driven via the solenoid circuit 59 to restore the open / closed state of the start winning opening 24 and the open / close plate 22, for example (steps S62 and S63). . In addition, according to the value of the special symbol process flag and the normal symbol process flag that were driven even when the power was turned off, the control commands corresponding to the progress status of the special symbol process processing and the progress status of the normal symbol process processing at the time of power off, This is sent to the display control board 80, the lamp control board 35, and the voice control board 70 (step S63).

以上のように、遊技状態復旧処理では、復元された内部状態に応じて、各種電気部品の状態復元が行なわれるとともに、表示制御基板80、ランプ制御基板35および音声制御基板70に対して、制御状態を電源断時の状態に戻すための制御コマンド(電源断時の制御状態を処理するための制御コマンド)が送り出される。そのような制御コマンドが、一般に、電源断前に最後に送り出された1つまたは複数の制御コマンドである。   As described above, in the game state restoration process, the state of various electrical components is restored according to the restored internal state, and the display control board 80, the lamp control board 35, and the voice control board 70 are controlled. A control command for returning the state to the state at the time of power-off (control command for processing the control state at the time of power-off) is sent out. Such control commands are typically one or more control commands that were last sent out before the power was turned off.

その結果、この実施の形態では、遊技状態復旧処理によって、以下のような状態復旧が可能である。始動入賞口14および大入賞口(開閉板)22の状態が復元される。表示制御手段によって制御される普通図柄の表示状態(可変表示器10の表示状態)は、電源断時に変動中であった場合を除いて復元される。表示制御手段によって制御される特別図柄の表示状態(可変表示部9の表示状態)は、電源断時に変動中であった場合を除いて復元される。さらに、可変表示部9に表示される背景やキャラクタは、特別図柄変動中および大当り遊技中であった場合を除いて復元される。   As a result, in this embodiment, the following state recovery is possible by the game state recovery process. The states of the start winning opening 14 and the big winning opening (opening / closing plate) 22 are restored. The display state of the normal symbol (display state of the variable display 10) controlled by the display control means is restored except when it is changing at the time of power-off. The display state of the special symbol controlled by the display control means (display state of the variable display unit 9) is restored except when it is changing when the power is turned off. Further, the background and characters displayed on the variable display unit 9 are restored except when the special symbol is changing and the big hit game is being played.

特別図柄の変動中に電源断となった場合には、可変表示パターンの変動時間(たとえば10秒)および既に実行した時間(たとえば4秒)の情報がバックアップされる。そして、主基板31は、普及時に、表示パターンを示す表示制御コマンドおよび停止図柄を示す表示制御コマンドを表示制御基板80に出力し、残り時間(上述の例では6秒)経過後に、図柄を停止させるため表示制御コマンドを出力する。したがって、特別図柄の表示状態は、電源断時に特別図柄の変動中であった場合には、復旧時に、表示されていない残りの時間(上述の例では6秒)につき可変表示が実行される。なお、復旧時に表示制御基板80に対して出力される表示パターンを示す表示制御コマンドは、電源断前に出力された表示パターンを示す表示制御コマンドと同じものであってもよいが、「停電復旧中です」のような画像表示をさせるためのコマンドとしてもよい。この場合、「電源復旧中です」の表示は、残り時間(上述の例では6秒)表示される。なお、特別図柄の変動中に電源断となった場合の、普通図柄の表示状態に基づいても、上述と同様の制御が行なわれる。   When the power is cut off during the change of the special symbol, the information of the change time (for example, 10 seconds) of the variable display pattern and the already executed time (for example, 4 seconds) is backed up. Then, the main board 31 outputs a display control command indicating a display pattern and a display control command indicating a stop pattern to the display control board 80 at the time of spreading, and stops the pattern after the remaining time (6 seconds in the above example) has elapsed. Output a display control command. Therefore, if the special symbol display state is changing when the power is cut off, the variable symbol display is executed for the remaining time (6 seconds in the above example) that is not displayed at the time of recovery. The display control command indicating the display pattern output to the display control board 80 at the time of recovery may be the same as the display control command indicating the display pattern output before the power is turned off. It may be a command for displaying an image such as “Now”. In this case, the display “recovering power” is displayed for the remaining time (6 seconds in the above example). It should be noted that the same control as described above is performed based on the display state of the normal symbol when the power is cut off during the variation of the special symbol.

なお、大当り遊技中に電源断となった場合にも、上述した特別図柄の変動中に電源断となった場合と同様に、ラウンド中あるいはラウンド間のインターバルの残り時間について、復旧時に、表示、音、ランプ、ソレノイド16,21などを制御するが、主基板31は、表示制御基板80に対して電源断前に出力した確定時の図柄(停止図柄)を指定する表示制御コマンドを出力する。   Even if the power is cut off during the big hit game, the remaining time of the interval during the round or between rounds is displayed at the time of recovery, as in the case of the power off during the special symbol change described above. The main board 31 outputs to the display control board 80 a display control command for designating a final design (stopped pattern) output before power-off.

これにより、ラウンド中あるいはラウンド間の大当り図柄による演出が可能となり(大当り図柄で大当り演出する機種について)、また、大当り終了後の変動開始時に表示する図柄も表示制御基板80が認識することができる。   As a result, it is possible to produce a jackpot symbol during a round or between rounds (for models that produce a jackpot symbol with a jackpot symbol), and the display control board 80 can also recognize a symbol displayed at the start of fluctuation after the jackpot ends. .

ランプ制御手段が制御する装飾ランプ25、始動記憶表示器18、ゲート通過記憶表示器41、賞球ランプ51および球切れランプ52の表示状態が復旧される。遊技効果ランプ・LED28a,28b,28cの表示状態は、特別図柄変動中および大当り遊技中であった場合を除いて復元される。ただし、電源断時に大当り遊技中であった場合には、各制御区間の最初の状態に復元可能である。各制御区間とは、たとえば、大当り開始保持状態、大入賞開放前状態、大入賞口開放中状態、大当り終了報知状態である。なお、特別図柄変動中に電源断となった後復旧した場合には、上述した可変表示部9や可変表示装置10の表示制御と同様に、残り時間分だけ遊技効果ランプ・LED28a,28b,28cの表示状態を制御するようにしてもよいが、消灯または停電復旧時特有のパターンで点灯・点滅するようにしてもよい。   The display states of the decorative lamp 25, the start memory display 18, the gate passing memory display 41, the prize ball lamp 51, and the ball break lamp 52 controlled by the lamp control means are restored. The display state of the game effect lamps / LEDs 28a, 28b, and 28c is restored except when the special symbol is changing and the big hit game is being played. However, if the game is a big hit game when the power is turned off, it can be restored to the initial state of each control section. Each control section is, for example, a jackpot start holding state, a state before the big winning opening, a state where the big winning opening is being opened, or a big hit end notification state. In the case of recovery after the power is cut off during the special symbol fluctuation, the game effect lamps / LEDs 28a, 28b, 28c are left for the remaining time as in the display control of the variable display unit 9 and the variable display device 10 described above. The display state may be controlled, but it may be turned on / flashing in a pattern peculiar to turning off or recovering from a power failure.

音声制御手段が制御する音声発生状態は、特別図柄変動中および大当り遊技中であった場合を除いて復元される。ただし、電源断時に大当り遊技中であった場合には、各制御区間の最初の状態に復元可能である。なお、特別図柄変動中に電源断となった後復旧した場合には、上述した可変表示部9や可変表示装置10の表示制御と同様に、残り時間分だけ音声発生状態を制御するようにしてもよいが、無音または停電復旧時特有の音声パターン(たとえば「停電復旧中です」との音声)を出力するようにしてもよい。   The sound generation state controlled by the sound control means is restored except when the special symbol is changing and the big hit game is being played. However, if the game is a big hit game when the power is turned off, it can be restored to the initial state of each control section. When the power is cut off during the special symbol fluctuation, the sound generation state is controlled for the remaining time as in the display control of the variable display unit 9 and the variable display device 10 described above. However, it is also possible to output a sound pattern peculiar to silence or power recovery (for example, “sound recovery from power out”).

なお、この実施の形態では、電源断からの復旧時に、主基板31の遊技制御手段から表示制御手段、ランプ制御手段および音声制御手段に対して状態復元のための制御コマンドが送り出されるが、表示制御手段、ランプ制御手段および音声制御手段が電源バックアップされる場合には、主基板31からの制御コマンドを用いることなく、表示制御手段、ランプ制御手段および音声制御手段が独自に制御状態を復旧するように構成してもよい。   In this embodiment, the control command for restoring the state is sent from the game control means of the main board 31 to the display control means, the lamp control means and the sound control means at the time of recovery from the power interruption. When the control means, the lamp control means, and the sound control means are backed up, the display control means, the lamp control means, and the sound control means independently recover the control state without using a control command from the main board 31. You may comprise as follows.

また、後述するように、払出制御基板37に搭載されている払出制御手段は、電源バックアップされているので、電源断からの復旧時に、賞球払出状態および球貸制御状態は、電源断時の状態に復旧する。この実施の形態では、発射制御基板は払出制御基板に接続されているので、発射制御基板91における制御状態も同様に復元される。   Further, as will be described later, since the payout control means mounted on the payout control board 37 is backed up by the power source, the winning ball payout state and the ball lending control state are the same as those at the time of the power cut off when the power supply is restored. Restore to the state. In this embodiment, since the launch control board is connected to the payout control board, the control state on the launch control board 91 is similarly restored.

遊技状態を電源断時の状態に復旧させると、この実施の形態では、CPU56は、前回の電源断時の割込許可/禁止状態を復帰させるため、バックアップRAMに保存されていたパリティフラグの値を確認する(ステップS64)。パリティフラグがクリアであれば、割込許可設定を行なう(ステップS65)。一方、パリティフラグがオンであれば、そのまま(ステップS1aで設定された割込禁止状態のまま)遊技状態復旧処理を終える。   When the gaming state is restored to the power-off state, in this embodiment, the CPU 56 returns the interrupt permission / prohibition state at the time of the previous power-off to store the value of the parity flag stored in the backup RAM. Is confirmed (step S64). If the parity flag is clear, interrupt permission is set (step S65). On the other hand, if the parity flag is on, the gaming state restoration process is finished as it is (while keeping the interrupt disabled state set in step S1a).

なお、ここでは、遊技状態復旧処理が終了するとメイン処理にリターンするように遊技状態復旧処理プログラムが構成されているが、電力供給停止時処理において保存されているスタックポインタが指すスタックエリア(バックアップRAM領域にある)に記憶されているアドレス(電源断時のNMI割込発生時に実行されていたアドレス)に戻るようにしてもよい。   Here, the gaming state restoration processing program is configured to return to the main processing when the gaming state restoration processing ends, but the stack area (backup RAM) pointed to by the stack pointer stored in the power supply stop processing It is also possible to return to the address stored in the area) (the address that was executed when the NMI interrupt occurred when the power was turned off).

上述したように、初期設定処理を開始した後、復旧処理を終える前まで、または初期化処理を終える前までの間は、割込禁止状態とする構成としたことで、割込により処理が中断されることを防止することができるため、初期設定、バックアップデータ記憶領域の内容に応じて行なわれる電源断時の状態に復旧させるか否かの判別、および復旧処理(または初期化処理)を確実に完了させることができる。なお、上記のように復旧処理を終える前まで割込禁止状態とする構成とした場合であっても、電源断時の割込禁止/許可状態をパリティフラグによりバックアップしているため、復旧処理において電源断時の割込禁止/許可状態を確実に復旧することができる。   As described above, the process is interrupted due to the interrupt disabled state between the start of the initial setting process and before the restoration process or before the initialization process is completed. Therefore, the initial setting, determination of whether or not to restore the power-off state according to the contents of the backup data storage area, and recovery processing (or initialization processing) are ensured. Can be completed. Even in the case of the configuration in which the interrupt is disabled until the completion of the recovery processing as described above, the interrupt disabled / permitted state at the time of power-off is backed up by the parity flag. The interrupt disabled / permitted state when the power is turned off can be reliably recovered.

なお、上記の実施の形態では、遊技制御手段において、データ保存処理および復旧処理が行なわれる場合について説明したが、払出制御手段、音声制御手段、ランプ制御手段および表示制御手段におけるRAMの一部も電源バックアップされ、払出制御手段、表示制御手段、音声制御手段およびランプ制御手段も、上述したような処理を行なってもよい。ただし、払出制御手段、表示制御手段、音声制御手段およびランプ制御手段は、復旧時にコマンド送出処理を行なう必要はない。   In the above embodiment, the case where the data storage process and the restoration process are performed in the game control means has been described. However, part of the RAM in the payout control means, the voice control means, the lamp control means, and the display control means is also included. The power supply is backed up, and the payout control means, the display control means, the sound control means, and the lamp control means may perform the processing as described above. However, the payout control means, the display control means, the sound control means, and the lamp control means do not need to perform command transmission processing at the time of recovery.

図17は、払出制御コマンドのコマンド形態の一例を示す説明図である。この実施の形態では、払出制御コマンドは2バイト構成であり、1バイト目はMODE(コマンドの分類)を表わし、2バイト目はEXT(コマンドの種類)を示す。なお、図17に示されたコマンド形態は一例であって、他のコマンド形態を用いてもよい。   FIG. 17 is an explanatory diagram showing an example of a command form of the payout control command. In this embodiment, the payout control command has a 2-byte structure, the first byte represents MODE (command classification), and the second byte represents EXT (command type). Note that the command form shown in FIG. 17 is an example, and other command forms may be used.

図18は、払出制御コマンドの内容の一例を示す説明図である。図18に示された例において、コマンドFF00(H)は、払出可能状態を指定する払出制御コマンドである。コマンドFF01(H)は、払出停止状態を指定する払出制御コマンドである。また、コマンドF0XX(H)は、賞球個数を指定する払出制御コマンドである。2バイト目の「XX」が払出個数を示す。   FIG. 18 is an explanatory diagram showing an example of the contents of the payout control command. In the example shown in FIG. 18, the command FF00 (H) is a payout control command for designating a payout enabled state. Command FF01 (H) is a payout control command for designating a payout stop state. Command F0XX (H) is a payout control command for designating the number of winning balls. “XX” in the second byte indicates the number of payouts.

払出制御手段は、主基板31の遊技制御手段からFF01(H)の払出制御コマンドを受信すると賞球払出および球貸を停止する状態となり、FF00(H)の払出制御のコマンドを受信すると賞球払出および球貸ができる状態となる。また、賞球個数を指定する払出制御コマンドを受信すると、受信したコマンドで指定された個数に応じた賞球払出制御を行なう。   When the payout control means receives the FF01 (H) payout control command from the game control means of the main board 31, the payout payout and ball lending are stopped, and when the FF00 (H) payout control command is received, the prize ball A state where the payout and the ball lending are possible. When a payout control command for designating the number of prize balls is received, prize ball payout control is performed according to the number designated by the received command.

図19は、払出制御コマンドの送出形態の一例を示すタイミング図である。この実施の形態では、払出制御コマンドは2バイト構成であり、たとえば、図19に示されるように、払出制御信号の1バイト目および2バイト目が出力されているときに、それぞれINT信号がオン(この例ではローレベル)になる。INT信号のオンの期間はたとえば1μs以上であり、1バイト目と2バイト目との間にはたとえば10μs以上の期間があけられる。なお、払出制御コマンドは、1バイト構成としてもよい。   FIG. 19 is a timing chart showing an example of a delivery form of the payout control command. In this embodiment, the payout control command has a 2-byte structure. For example, as shown in FIG. 19, when the first byte and the second byte of the payout control signal are output, the INT signal is turned on. (Low level in this example). The ON period of the INT signal is, for example, 1 μs or longer, and a period of, for example, 10 μs or longer is provided between the first byte and the second byte. The payout control command may have a 1-byte configuration.

なお、払出制御コマンドは、払出制御手段が認識可能に1回だけ送り出される。認識可能とは、この例では、INT信号がオン状態となることであり、認識可能に1回だけ送り出されるとは、この例では、払出制御信号の1バイト目および2バイト目のそれぞれに応じてINT信号が1回だけオン状態になることである。   The payout control command is sent out only once so that the payout control means can recognize it. In this example, “recognizable” means that the INT signal is turned on, and in this example, it is sent out only once in a recognizable manner, depending on the first and second bytes of the payout control signal. That is, the INT signal is turned on only once.

なお、図20に示すように、払出制御コマンドを1バイト構成としてもよい。その場合、8ビットの払出制御信号CD0〜CD7よって払出制御コマンドが出力される。そして、払出制御信号が出力されているときに、INT信号がオン(この例ではローレベル)になる。INT信号のオン期間はたとえば1μs以上である。払出制御手段には、INT信号に応じた割込処理によって払出制御信号CD0〜CD7が入力される。   As shown in FIG. 20, the payout control command may have a 1-byte configuration. In this case, a payout control command is output by the 8-bit payout control signals CD0 to CD7. When the payout control signal is output, the INT signal is turned on (low level in this example). The ON period of the INT signal is 1 μs or more, for example. To the payout control means, payout control signals CD0 to CD7 are input by interrupt processing according to the INT signal.

次に、遊技制御手段以外の電気部品制御手段においてデータ保存処理および復旧処理が行なわれる場合の例として、払出制御手段においてデータ保存や復旧が行なわれる場合について説明する。   Next, as an example of the case where the data storage process and the recovery process are performed in the electrical component control means other than the game control means, a case where the payout control means performs the data storage and recovery will be described.

図21は、払出制御用CPU371まわりの一構成例を示すブロック図である。図21に示すように、第1の電源監視回路(第1の電源監視手段)からの電圧低下信号が、バッファ回路960を介して払出制御用CPU371のマスク不能割込端子(XNMI端子)に接続されている。第1の電源監視回路は、遊技機が使用する各種直流電源のうちいずれかの電源の電圧を監視して、電源電圧低下を検出する回路である。この実施の形態では、VSLの電源電圧を監視して電圧値が所定値以下になるとローレベルの電圧低下信号を発生する。電圧VSLは、遊技機で使用される直流電圧のうち最大のものであり、この例では+30Vである。したがって、払出制御用CPU371は、割込処理によって電源断の発生を確認することができる。   FIG. 21 is a block diagram illustrating a configuration example around the payout control CPU 371. As shown in FIG. 21, the voltage drop signal from the first power supply monitoring circuit (first power supply monitoring means) is connected to the non-maskable interrupt terminal (XNMI terminal) of the payout control CPU 371 via the buffer circuit 960. Has been. The first power supply monitoring circuit is a circuit that detects a power supply voltage drop by monitoring the voltage of any of the various DC power supplies used by the gaming machine. In this embodiment, the power supply voltage of VSL is monitored, and a low level voltage drop signal is generated when the voltage value falls below a predetermined value. The voltage VSL is the maximum DC voltage used in the gaming machine, and is +30 V in this example. Therefore, the payout control CPU 371 can confirm the occurrence of power interruption by the interrupt process.

払出制御用CPU371のCLK/TRG2端子には、主基板31からのINT信号が接続されている。CLK/TRG2端子にクロック信号が入力されると、払出制御用CPU371に内蔵されているタイムカウンタレジスタCLK/TRG2の値がダウンカウントされる。そして、レジスタ値が0になると割込が発生する。したがって、タイマカウンタレジスタCLK/TRG2の初期値を「1」に設定しておけば、INT信号の入力に応じて割込が発生することになる。   The INT signal from the main board 31 is connected to the CLK / TRG2 terminal of the payout control CPU 371. When a clock signal is input to the CLK / TRG2 terminal, the value of the time counter register CLK / TRG2 built in the payout control CPU 371 is down-counted. When the register value becomes 0, an interrupt occurs. Therefore, if the initial value of the timer counter register CLK / TRG2 is set to “1”, an interrupt is generated according to the input of the INT signal.

払出制御基板37には、システムリセット回路975も搭載されているが、この実施の形態では、システムリセット回路975は、第2の電源監視回路(第2の電源監視手段)も兼ねている。すなわち、リセットIC976は、電源投入時に、コンデンサ容量で決る所定時間だけ出力をローレベルとし、所定時間が経過すると出力をハイレベルにする。また、リセットIC976は、電源基板910に搭載されている第1の電源監視回路が監視する電源電圧と等しい電源電圧である電圧VSLを監視して電圧値が所定値(たとえば+9V)以下になるとローレベルを電圧低下信号を発生する。したがって、電源断時には、リセットIC976からの電圧低下信号がローレベルになることによって払出制御用CPU371がシステムリセットされる。なお、図21に示すように、電圧低下信号はリセット信号と同じ出力信号である。   Although a system reset circuit 975 is also mounted on the payout control board 37, in this embodiment, the system reset circuit 975 also serves as a second power supply monitoring circuit (second power supply monitoring means). That is, when the power is turned on, the reset IC 976 sets the output to the low level for a predetermined time determined by the capacitor capacity, and sets the output to the high level when the predetermined time elapses. Further, the reset IC 976 monitors the voltage VSL, which is the power supply voltage equal to the power supply voltage monitored by the first power supply monitoring circuit mounted on the power supply board 910, and goes low when the voltage value falls below a predetermined value (for example, + 9V). Generate a voltage drop signal to level. Therefore, when the power is turned off, the payout control CPU 371 is system-reset by the voltage drop signal from the reset IC 976 becoming a low level. As shown in FIG. 21, the voltage drop signal is the same output signal as the reset signal.

リセットIC976が電源断を検知するための所定値は、通常時の電圧より低いが、払出制御用のCPU371がしばらくの間動作し得る程度の電圧である。また、リセットIC976が、払出制御用CPU371が必要とする電圧(この例では+5V)よりも高い電圧を監視するように構成されているので、払出制御用CPU371が必要とする電圧に対して監視範囲を広げることができる。したがって、より精密な監視を行なうことができる。   The predetermined value for the reset IC 976 to detect power-off is lower than the normal voltage, but is a voltage at which the CPU 371 for payout control can operate for a while. Further, since the reset IC 976 is configured to monitor a voltage higher than the voltage required by the payout control CPU 371 (in this example, +5 V), the monitoring range for the voltage required by the payout control CPU 371 is set. Can be spread. Therefore, more precise monitoring can be performed.

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

以上のように、この実施の形態では、電源基板910に搭載されている第1の電源監視回路が、遊技機で使用される直流電圧のうちで最も高い電源VSLの電圧を監視して、その電源の電圧が所定値を下回ったら電圧低下信号(電源断検出信号)を発生する。電源断検出信号から出力されるタイミングでは、IC駆動電圧は、まだ各種回路素子を十分駆動できる電圧になっている。したがって、IC駆動電圧で動作する払出制御基板37の払出制御用CPU371が所定の電力供給停止時処理を行なうための動作時間が確保されている。   As described above, in this embodiment, the first power supply monitoring circuit mounted on the power supply board 910 monitors the voltage of the highest power supply VSL among the DC voltages used in the gaming machine, and When the voltage of the power source falls below a predetermined value, a voltage drop signal (power failure detection signal) is generated. At the timing output from the power-off detection signal, the IC drive voltage is still a voltage that can sufficiently drive various circuit elements. Therefore, an operation time is secured for the payout control CPU 371 of the payout control board 37 that operates at the IC drive voltage to perform a predetermined power supply stop process.

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

その場合、上述したように監視対象電圧は、賞球カウントスイッチ301A等の遊技機の各種スイッチに供給される電圧が+12Vであることから、電源断時のスイッチオン誤検出の防止も期待できる電圧であることは好ましい。すなわち、スイッチに供給される電圧(スイッチ電圧)である+12V電源電圧が落ち始める以前の段階で、電圧低下を検出することが好ましい。よって、少なくともスイッチ電圧よりも高い電圧を監視することが望ましい。   In this case, as described above, the voltage to be monitored is a voltage that can be expected to prevent erroneous switch-on detection when the power is cut off because the voltage supplied to various switches of the gaming machine such as the prize ball count switch 301A is + 12V. It is preferable. That is, it is preferable to detect a voltage drop at a stage before the +12 V power supply voltage, which is a voltage supplied to the switch (switch voltage) starts to drop. Therefore, it is desirable to monitor a voltage higher than at least the switch voltage.

なお、図21に示された構成では、システムリセット回路975は、電源投入時に、コンデンサの容量で決る期間のローレベルを出力し、その後ハイレベルを出力する。すなわち、リセット回路タイミングは1回だけである。しかし、図6に示された主基板31の場合と同様に、複数回のリセット回路タイミングが発生するような回路構成を用いてもよい。   In the configuration shown in FIG. 21, the system reset circuit 975 outputs a low level during a period determined by the capacitance of the capacitor when power is turned on, and then outputs a high level. That is, the reset circuit timing is only once. However, as in the case of the main board 31 shown in FIG. 6, a circuit configuration that generates a plurality of reset circuit timings may be used.

図22は、払出制御用CPU371のメイン処理を示すフローチャートである。メイン処理では、払出制御用CPU371は、まず、必要な初期設定を行なう(ステップS701)。   FIG. 22 is a flowchart showing main processing of the payout control CPU 371. In the main process, the payout control CPU 371 first performs necessary initial settings (step S701).

図23は、ステップS701の初期設定処理を示すフローチャートである。初期設定処理において、払出制御用CPU371は、まず、割込禁止に設定する(ステップS701a)。次に、払出制御用CPU371は、割込モードを割込モード2に設定し(ステップS701b)、スタックポインタにスタックポインタ指定アドレスを設定する(ステップS701c)。また、払出制御用CPU371は、内蔵デバイスレジスタの初期化(ステップS701d)、CTC(カウンタ/タイマ)およびPIO(パラレル入出力ポート)の初期化(ステップS701e)を行なった後、RAMをアクセス可能状態に設定する(ステップS701f)。   FIG. 23 is a flowchart showing the initial setting process in step S701. In the initial setting process, the payout control CPU 371 first sets the interrupt prohibition (step S701a). Next, the payout control CPU 371 sets the interrupt mode to interrupt mode 2 (step S701b), and sets the stack pointer designation address in the stack pointer (step S701c). The payout control CPU 371 initializes the built-in device register (step S701d), initializes the CTC (counter / timer), and PIO (parallel input / output port) (step S701e), and then can access the RAM. (Step S701f).

この実施の形態では、タイマ/カウンタ割込としてCH2,CH3のカウントアップに基づく割込を使用する。CH2のカウントアップに基づく割込は、上述したタイマカウンタレジスタCLK/TRG2の値が「0」になったときに発生する割込である。したがって、ステップS701eにおいて、タイマカウンタレジスタCLK/TRG2に初期値「1」が設定される。また、CH3のカウントアップに基づく割込は、CPUの内部クロックをカウントダウンしてレジスタ値が「0」になったら発生する割込であり、後述する2msタイマ割込として用いられる。具体的には、CH3のレジスタ値はシステムクロックの1/256周期で減算される。ステップS701eにおいて、CH3のレジスタには、初期値として2msに相当する値が設定される。なお、CH2に関する割込番地は0074Hであり、CH3に関する割込番地は0076Hである。   In this embodiment, an interrupt based on counting up of CH2 and CH3 is used as a timer / counter interrupt. The interrupt based on the count-up of CH2 is an interrupt that occurs when the value of the timer counter register CLK / TRG2 described above becomes “0”. Accordingly, in step S701e, the initial value “1” is set in the timer counter register CLK / TRG2. The interrupt based on the CH3 count-up is an interrupt that occurs when the internal clock of the CPU is counted down and the register value becomes “0”, and is used as a 2 ms timer interrupt described later. Specifically, the register value of CH3 is subtracted at 1/256 period of the system clock. In step S701e, the CH3 register is set to a value corresponding to 2 ms as an initial value. The interrupt address related to CH2 is 0074H, and the interrupt address related to CH3 is 0076H.

そして、払出制御用CPU371は、払出制御用のバックアップRAM領域にバックアップデータが存在しているか否かの確認を行なう(ステップS702)。すなわち、たとえば、バックアップRAM領域に形成されている後述する総合個数記憶または貸球個数記憶(図26参照)を確認して、未払出の賞球個数および貸球個数に関するバックアップデータがないかどうかを確認する。不測の電源断が生じた場合には、多くの場合何らかのデータがバックアップRAM領域に保存されており、バックアップRAM領域のデータは保存されていたはずであるから、後に復旧した場合の確認結果の多くはバックアップデータありとなる。バックアップなしという確認結果であれば、前回の電源オフ時に未払出の遊技球がなかったことになり、内部状態を電源断時の状態に戻す必要がないので、停電復旧時でない電源投入時に実行される初期化処理を実行する(ステップS702,S703)。なお、本例では、バックアップRAM領域にバックアップデータが存在しているか否かは、電源断時にバックアップRAM領域に設定されるバックアップフラグによって確認する。   Then, the payout control CPU 371 checks whether backup data exists in the payout control backup RAM area (step S702). That is, for example, a later-described total number storage or rented number storage (see FIG. 26) formed in the backup RAM area is checked to determine whether there is backup data relating to the number of unpaid prize balls and the number of rented balls. Confirm. In the event of an unexpected power loss, in many cases, some data is stored in the backup RAM area, and the data in the backup RAM area should have been stored. Will have backup data. If the confirmation result indicates that there is no backup, it means that there was no unpaid game ball when the power was turned off the last time, and it is not necessary to return the internal state to the state when the power was cut off. Initialization processing is executed (steps S702 and S703). In this example, whether backup data exists in the backup RAM area is confirmed by a backup flag set in the backup RAM area when the power is turned off.

バックアップRAM領域にバックアップデータが存在している場合には、この実施の形態では、払出制御用CPU371は、バックアップRAM領域のデータチェック(この例ではパリティチェック)を行なう(ステップS704)。不測の電源断が生じた後に復旧した場合には、バックアップRAM領域のデータは保存されていたはずであるから、チェック結果は正常になる。チェック結果が正常でない場合には、内部状態を電源断時の状態に戻すことができないので、停電復旧時でない電源投入時に実行される初期化処理を実行する(ステップS705,S703)。   When backup data exists in the backup RAM area, in this embodiment, the payout control CPU 371 performs data check (parity check in this example) of the backup RAM area (step S704). In the case of recovery after an unexpected power failure, the data in the backup RAM area should have been saved, so the check result is normal. If the check result is not normal, the internal state cannot be returned to the state at the time of power-off, and therefore an initialization process that is executed at the time of power-on not at the time of power failure recovery is executed (steps S705 and S703).

チェック結果が正常であれば、払出制御用CPU371は、内部状態を電源断時の状態に戻すための払出状態復旧処理を行なう(ステップS706)。そして、バックアップRAM領域に保存されていたPC(プログラムカウンタ)の指すアドレスに復帰する(ステップS707)。   If the check result is normal, the payout control CPU 371 performs a payout state recovery process for returning the internal state to the state when the power is turned off (step S706). Then, it returns to the address indicated by the PC (program counter) stored in the backup RAM area (step S707).

通常の初期化処理の実行(ステップS703)を得ると、払出制御用CPU371により実行されるメイン処理は、タイマ割込フラグの開始(ステップS708)の確認が行なわれるグループ処理に移行する。   When the normal initialization process is executed (step S703), the main process executed by the payout control CPU 371 shifts to the group process in which the start of the timer interrupt flag is confirmed (step S708).

なお、この実施の形態では、ステップS702でバックアップデータの有無を確認した後、バックアップデータが存在する場合にステップS704でバックアップ領域のチェックを行なうようにしていたが、逆に、バックアップ領域のチェック結果が正常であったことを確認した後、バックアップデータの有無の確認を行なうようにしてもよい。また、バックアップデータの有無の確認、または、バックアップ領域のチェックのいずれかの一方の確認を行なうことで、停電復旧処理を実行するか否かを判断するようにしてもよい。   In this embodiment, after the presence or absence of backup data is confirmed in step S702, the backup area is checked in step S704 when backup data exists. Conversely, the check result of the backup area After confirming that the data is normal, the presence or absence of backup data may be confirmed. Further, it may be determined whether or not to execute the power failure recovery process by confirming one of the confirmation of the presence / absence of backup data and the check of the backup area.

また、たとえば停電復旧処理を実行するか否かを判断する場合のパリティチェック(ステップS704)の際などに、すなわち、遊技状態を復旧するか否かを判断する際に、保存されていたRAMデータにおける払出遊技球数データ等によって、遊技機が払出待機状態(払出途中でない状態)であることが確認されたら、払出状態復旧処理を行なわずに初期化処理を実行するようにしてもよい。   Further, for example, in the parity check (step S704) when determining whether or not to execute the power failure recovery processing, that is, when determining whether or not to restore the gaming state, the stored RAM data If the game machine is confirmed to be in a payout standby state (a state that is not in the middle of payout) based on the payout game ball number data or the like, the initialization process may be executed without performing the payout state recovery process.

通常の初期化処理では、図24に示すように、レジスタおよびRAMのクリア処理(ステップS901)が行なわれる(ステップS902)。そして、初期設定処理(ステップS701a)において割込禁止とされているので、初期化処理を終える前に割込が許可される(ステップS903)。   In the normal initialization process, as shown in FIG. 24, a register and RAM clear process (step S901) is performed (step S902). Since the interruption is prohibited in the initial setting process (step S701a), the interruption is permitted before the initialization process is completed (step S903).

この実施の形態では、払出制御用CPU371の内部タイマ(CH3)が繰返しタイマ割込を発生するように設定される。また、繰返し周期は2msに設定される。そして、図25に示すように、タイマ割込が発生すると、払出制御用CPU371は、タイマ割込フラグをセットする(ステップS711)。なお、2msタイマ割込処理において、必要ならば、CH3のレジスタに対して初期値再設定が行なわれる。   In this embodiment, the internal timer (CH3) of the payout control CPU 371 is set to repeatedly generate a timer interrupt. The repetition period is set to 2 ms. Then, as shown in FIG. 25, when a timer interrupt occurs, the payout control CPU 371 sets a timer interrupt flag (step S711). In the 2 ms timer interrupt process, if necessary, the initial value is reset for the CH3 register.

払出制御用CPU371は、ステップS708において、タイマ割込フラグがセットされことを検出すると、タイマ割込フラグをリセットするとともに(ステップS709)、払出制御処理を実行する(ステップS710)。以上の制御によって、この実施の形態では、払出制御処理は2ms毎に起動されることになる。なお、この実施の形態では、タイマ割込処理ではフラグセットのみがなされ、払出制御処理ではメイン処理において実行されるが、タイマ割込処理で払出制御処理を実行してもよい。   When detecting that the timer interrupt flag is set in step S708, the payout control CPU 371 resets the timer interrupt flag (step S709) and executes a payout control process (step S710). With the above control, in this embodiment, the payout control process is started every 2 ms. In this embodiment, only the flag is set in the timer interrupt process, and the main process is executed in the payout control process. However, the payout control process may be executed in the timer interrupt process.

払出制御用CPU371は、電源投入時に、バックアップRAM領域のデータを確認するだけで、通常の初期設定処理を行なうのか払出中の状態を復元するのかを決定できる。すなわち、簡単な判断によって、未払出の遊技球について払出処理再開を行なうことができる。   The payout control CPU 371 can determine whether to perform normal initial setting processing or restore the payout state by simply checking the data in the backup RAM area when the power is turned on. That is, the payout process can be resumed for the unpaid game balls by simple determination.

また、本例では、払出制御用CPU371も、主基板31のCPU56と同様に、パリティチェックによって記憶内容保存の確実化を図っている。   In this example, the payout control CPU 371 also ensures the storage of stored contents by parity check, like the CPU 56 of the main board 31.

以上説明したように、バックアップデータの有無により電源断時の払出状態に復旧するか否かの判断を行なうようにしたことで、停電後の電源復旧時などにおいて電源投入されたときに、バックアップデータ記憶領域の内容に応じて電源断時の状態に復旧させるか否かの判断を行なうことができる。したがってバックアップデータに基づく制御を実現することができるとともに、不必要な復旧処理の実行を防止することができる。   As described above, the backup data is restored when the power is turned on when the power is restored after a power failure, etc. It is possible to determine whether or not to restore the power-off state according to the contents of the storage area. Therefore, control based on the backup data can be realized, and unnecessary execution of recovery processing can be prevented.

また、上述したように、バックアップデータの状態により電源断時の払出状態に復旧するか否かの判断を行なうようにしたことで、停電後の電源復旧時などにおいて電源投入されたときに、バックアップデータ記憶領域の内容の状態に応じて電源断時の状態に復旧させるか否かの判断を行なうことができる。したがって正常なバックアップデータに基づく制御を実現することができるとともに、異常が発生したバックアップデータに基づく復旧処理の実行を防止することができる。   In addition, as described above, by determining whether or not to return to the payout state when the power is cut off according to the backup data status, the backup is performed when the power is turned on when the power is restored after a power failure. It can be determined whether or not to restore the power-off state according to the state of the contents of the data storage area. Therefore, it is possible to realize control based on normal backup data and to prevent execution of recovery processing based on backup data in which an abnormality has occurred.

図26は、払出制御用CPU371が内蔵するRAMの使用例を示す説明図である。この例では、バックアップRAM領域に総合個数記憶(たとえば2バイト)および貸球個数記憶が形成されている。総合個数記憶は、主基板31の側から指示された払出個数の挿通を記憶するものである。貸球個数記憶は、未払出の球貸個数を記憶するものである。   FIG. 26 is an explanatory diagram showing an example of use of the RAM built in the payout control CPU 371. In this example, a total number storage (for example, 2 bytes) and a rented number storage are formed in the backup RAM area. The total number storage stores insertion of the payout number instructed from the main board 31 side. The number of rented balls stores the number of balls that have not been paid out.

図27は、割込処理による払出制御コマンド受信処理を示すフローチャートである。主基板31からの払出制御用のINT信号は払出制御用CPU371のCLK/TRG2端子に入力される。よって、主基板31からのINT信号がオン状態になると、払出制御用CPU371に割込がかかり、図27に示す払出制御コマンドの受信処理が開始される。この実施の形態では、受信した払出制御コマンドを格納するための12バイトの確定コマンドバッファ領域が設けられている。 そして、受信した払出制御コマンドの格納位置を示すためにコマンド受信個数カウンタが用いられる。なお、払出コマンドは、2バイト構成であるから、実質的には6個の払出制御コマンドの確定コマンドバッファ領域に格納可能である。   FIG. 27 is a flowchart showing a payout control command receiving process by an interrupt process. The payout control INT signal from the main board 31 is input to the CLK / TRG2 terminal of the payout control CPU 371. Therefore, when the INT signal from the main board 31 is turned on, the payout control CPU 371 is interrupted, and the payout control command receiving process shown in FIG. 27 is started. In this embodiment, a 12-byte fixed command buffer area for storing the received payout control command is provided. A command reception number counter is used to indicate the storage position of the received payout control command. Since the payout command has a 2-byte structure, it can be practically stored in the confirmed command buffer area of six payout control commands.

払出制御コマンドの受信処理において、払出制御用CPU371が、まず、払出制御コマンドデータの入力に割当てられている入力ポート372aからデータを読込む(ステップS851)。そして、2バイト構成の払出制御コマンドのうちの1バイト目であるか否かを確認する(ステップS852)。1バイト目であるか否かは、受信したコマンドの先頭ビットが「1」であるか否かで判断できる。先頭ビットが「1」であるのは、2バイト構成の払出制御コマンドのうちMODEバイト(1バイト目)のはずである(図17参照)。先頭ビットが「1」であれば、有効な1バイト目を保持し主として、受信したコマンドを確定コマンドバッファ領域におけるコマンド受信個数カウンタが示す確定コマンドバッファに格納する(ステップS853)。   In the payout control command reception process, the payout control CPU 371 first reads data from the input port 372a assigned to the input of payout control command data (step S851). Then, it is confirmed whether or not it is the first byte of the 2-byte payout control command (step S852). Whether or not it is the first byte can be determined by whether or not the first bit of the received command is “1”. The first bit is “1”, which should be the MODE byte (first byte) in the 2-byte payout control command (see FIG. 17). If the first bit is “1”, the effective first byte is held and the received command is mainly stored in the confirmed command buffer indicated by the command reception number counter in the confirmed command buffer area (step S853).

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

次に、2バイト目を既に受信している場合には、受信した1バイトのうちの先頭ビットが「0」であるか否かを確認する。そして、先頭ビットが「0」であれば、有効な2バイト目を受信したとして、受信したコマンドを、確定コマンドバッファ領域におけるコマンド受信個数カウンタ+1が示す確定コマンドバッファに格納する(ステップS855)。先頭ビットが「0」であるのは、2バイト構成の払出制御コマンドのうちEXTバイト(2バイト目)のはずである(図17参照)。なお、ステップS854の判別において、受信した1バイトのうちの先頭ビットが「0」でなければ、処理を終了する。   Next, when the second byte has already been received, it is confirmed whether or not the first bit of the received 1 byte is “0”. If the first bit is “0”, it is determined that the valid second byte has been received, and the received command is stored in the confirmed command buffer indicated by the command reception number counter + 1 in the confirmed command buffer area (step S855). The leading bit is “0”, which should be the EXT byte (second byte) of the 2-byte payout control command (see FIG. 17). If it is determined in step S854 that the first bit of the received 1 byte is not “0”, the process ends.

ステップS855において、2バイト目のコマンドデータを格納すると、コマンド受信個数カウンタに2を加算する(ステップS856)。そして、コマンド受信カウンタが12以上であるか否かを確認し(ステップS857)、12以上であればコマンド受信個数カウンタをクリアする(ステップS858)。   When the second byte of command data is stored in step S855, 2 is added to the command reception number counter (step S856). Then, it is confirmed whether or not the command reception counter is 12 or more (step S857). If it is 12 or more, the command reception number counter is cleared (step S858).

図28は、ステップS710の払出制御処理を示すフローチャートである。払出制御処理において払出制御用CPU371は、まず、中継基板72を介して入力ポート372bに入力される賞球カウントスイッチ301A、球貸カウントスイッチ301Bがオンしたか否かを判定する(スイッチ:ステップS751)。   FIG. 28 is a flowchart showing the payout control process in step S710. In the payout control process, the payout control CPU 371 first determines whether or not the prize ball count switch 301A and the ball lending count switch 301B input to the input port 372b via the relay board 72 are turned on (switch: step S751). ).

次に、払出制御用CPU371は、センサ(たとえば、払出モータ289の間点数を検出するモータ位置センサ)からの信号入力状態を確認してセンサの状態判定などを行なう(入力判定処理:ステップS752)。払出制御用CPU371は、さらに、受信した払出制御コマンドを解析し、解析結果に応じた処理を実行する(コマンド解析実行処理:ステップS753)。   Next, the payout control CPU 371 confirms a signal input state from a sensor (for example, a motor position sensor that detects a score between the payout motors 289) and performs sensor state determination or the like (input determination processing: step S752). . The payout control CPU 371 further analyzes the received payout control command and executes a process according to the analysis result (command analysis execution process: step S753).

次いで、払出制御用CPU371は、主基板31より受信した払出停止指示コマンドに応じて払出停止状態に設定し、あるいは受信した払出開始指示コマンドに応じて払出停止状態の解除を行なう(ステップS754)。また、プリペードカードユニット制御処理を行なう(ステップS755)。   Next, the payout control CPU 371 sets the payout stop state according to the payout stop instruction command received from the main board 31, or cancels the payout stop state according to the received payout start instruction command (step S754). Further, a prepaid card unit control process is performed (step S755).

また、払出制御用CPU371は、球貸要求に応じて貸球を払出す制御を行なう(ステップS756)。さらに、払出制御用CPU371は、総合個数記憶に格納された個数の賞球を払出す賞球制御処理を行なう(ステップS757)。そして、払出制御用CPU371は、出力ポート372cおよび中継基板72を介して球払出装置97の払出機構部分における払出モータ289に向けて駆動信号を出力し、ステップS756の球貸制御処理またはステップS757の賞球制御処理で設定された回転数分払出モータ289を介して払出モータ制御処理を行なう(ステップS758)。   Further, the payout control CPU 371 performs control for paying out a ball in response to a ball rental request (step S756). Further, the payout control CPU 371 performs a prize ball control process for paying out the number of prize balls stored in the total number memory (step S757). Then, the payout control CPU 371 outputs a drive signal to the payout motor 289 in the payout mechanism portion of the ball payout device 97 via the output port 372c and the relay board 72, and the ball lending control process in step S756 or the step S757. The payout motor control process is performed via the payout motor 289 for the number of revolutions set in the prize ball control process (step S758).

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

次いで、エラー検出処理が行なわれ、その結果に応じてエラー表示LED374に所定の表示が行なわれる(エラー:ステップS759)。検出されるエラーとしては、たとえば、次の8種類がある。   Next, an error detection process is performed, and a predetermined display is performed on the error display LED 374 according to the result (error: step S759). For example, the following eight types of errors are detected.

賞球径路エラー:賞球払出動作終了したとき、または、払出モータ289が1回転したときに賞球カウントスイッチ301Aが1個も遊技球の通過を検出しなかった場合、エラー表示LED374に「0」が表示される。   Prize ball path error: When the prize ball payout operation is completed, or when the prize ball count switch 301A does not detect any passing of the game ball when the payout motor 289 makes one rotation, the error display LED 374 indicates “0”. Is displayed.

球貸径路エラー:球貸の払出動作終了後において、または、払出モータ289が1回転したときに球貸カウントスイッチ301Bが1個も遊技球の通過を検出しなかった場合、エラー表示LED374に「1」が表示される。   Ball lending path error: After the ball lending payout operation is completed, or when the ball lending count switch 301B does not detect the passing of any game ball when the payout motor 289 rotates once, the error display LED 374 indicates “ 1 "is displayed.

賞球カウントスイッチ球詰まりエラー:賞球カウントスイッチ301Aが0.5秒以上オンを検出したとき。エラー表示LED374に「2」が表示される。   Prize ball count switch ball clogging error: Prize ball count switch 301A detects ON for 0.5 seconds or more. “2” is displayed on the error display LED 374.

球貸カウントスイッチ球詰まりエラー:球貸カウントスイッチ301Bが0.5秒以上オンを検出した場合、エラー表示LED374に「3」が表示される。   Ball lending count switch ball clogging error: When the ball lending count switch 301B detects ON for 0.5 seconds or more, “3” is displayed on the error display LED 374.

払出モータ球噛みエラー:払出モータ289が正常に回転しないとき、具体的には、払出モータ位置センサのオンが所定期間以上継続したり、オフが所定期間以上継続した場合、エラー表示LED374に「4」が表示される。なお、払出モータ球噛みエラーが生じた場合には、払出制御用CPU371は、50msの基準励磁層の出力を行なった後、1−2層励磁の励磁パターンデータのうちの4種類の励磁パターンデータを8ms毎に出力することによる払出モータ289の逆回転と正回転とを繰返す。   Payout motor ball biting error: When the payout motor 289 does not rotate normally, specifically, when the payout motor position sensor has been turned on for a predetermined period or longer and has been turned off for a predetermined period, the error display LED 374 indicates “4”. Is displayed. When a payout motor ball biting error occurs, the payout control CPU 371 outputs the reference excitation layer for 50 ms, and then outputs four types of excitation pattern data among the excitation pattern data for 1-2 layer excitation. Is output every 8 ms, and the reverse rotation and forward rotation of the payout motor 289 are repeated.

プリペードカードユニット未接続エラー:VL信号のオフが検出されたとき、エラー表示LED374に「5」が表示される。   Prepaid card unit unconnected error: When the VL signal is detected to be off, “5” is displayed on the error display LED 374.

プリペードカードユニット通信エラー:規定のタイミング以外でプリペードカードユニット50から信号を出力されたことを検出したとき、エラー表示LED374に「6」が表示される。   Prepaid card unit communication error: When it is detected that a signal is output from the prepaid card unit 50 at a timing other than the prescribed timing, “6” is displayed on the error display LED 374.

払出停止状態:主基板31から払出停止を示す払出制御コマンドを受信したとき、エラー表示LED374に「7」が表示される。なお、主基板31から払出開始を示す払出制御コマンドを受信したときには、その時点から2002ms後に、払出停止状態から払出開始状態に復旧する。   Discharge stop state: When a payout control command indicating a payout stop is received from the main board 31, “7” is displayed on the error display LED 374. When a payout control command indicating a payout start is received from the main board 31, the payout stop state is restored to the payout start state after 2002 ms.

外部接続端子(図示せず)から出力する情報信号を制御する処理を行なう(出力処理:ステップS760)。なお、情報信号は、貸球の払出1単位(たとえば25個)毎に所定時間オンとなり、続いて所定時間オフを出力する信号である。   Processing for controlling an information signal output from an external connection terminal (not shown) is performed (output processing: step S760). The information signal is a signal that is turned on for a predetermined time for each unit of lending (for example, 25 balls) and subsequently outputs OFF for a predetermined time.

図29は、ステップS751のスイッチ処理の一例を示すフローチャートである。スイッチ処理において、払出制御用CPU371は、賞球カウントスイッチ301Aがオンした状態を示しているか否かを確認する(ステップS751a)。オン状態を示していれば、払出制御用CPU371は、賞球カウントスイッチオンカウンタを+1する(ステップS751b)。賞球カウントスイッチオンカウンタは、賞球カウントスイッチ301Aのオンの状態を検出した回数を計数するためのカウンタである。   FIG. 29 is a flowchart illustrating an example of the switch processing in step S751. In the switch process, the payout control CPU 371 checks whether or not the prize ball count switch 301A indicates a turned-on state (step S751a). If the on state is indicated, the payout control CPU 371 increments the prize ball count switch on counter by 1 (step S751b). The prize ball count switch on counter is a counter for counting the number of times the prize ball count switch 301A is turned on.

そして、賞球カウントスイッチオンカウンタの値をチェックし(ステップS751c)、その値が2になっていれば、1個賞球の払出が行なわれたと判断する。1個の賞球の払出が行なわれた判断した場合には、払出制御用CPU371は、賞球未払出カウンタ(総合個数記憶に格納されている賞球数を)を−1する(ステップS751d)。   Then, the value of the prize ball count switch-on counter is checked (step S751c). If the value is 2, it is determined that one prize ball has been paid out. If it is determined that one prize ball has been paid out, the payout control CPU 371 decrements the prize ball non-payout counter (the number of prize balls stored in the total number memory) by -1 (step S751d). .

ステップS751aにおいて賞球カウントスイッチ301Aがオン状態でないことが確認されると、払出制御用CPU371は、賞球カウントスイッチオンカウンタをクリアする(ステップS751e)。そして、この実施の形態では、球貸カウントスイッチ301Bがオン状態を示しているか否かを確認する(ステップS751f)。オン状態を示していれば、払出制御用CPU371は、球貸カウントスイッチオンカウンタを+1する(ステップS751g)。球貸カウントスイッチオンカウンタは、球貸カウントスイッチ301Bのオン状態を検出した回数を計数するためのカウンタである。   When it is confirmed in step S751a that the prize ball count switch 301A is not in the on state, the payout control CPU 371 clears the prize ball count switch on counter (step S751e). In this embodiment, it is confirmed whether or not the ball lending count switch 301B indicates the on state (step S751f). If the on state is indicated, the payout control CPU 371 increments the ball rental count switch on counter by 1 (step S751g). The ball lending count switch on counter is a counter for counting the number of times the ball lending count switch 301B is turned on.

そして、球貸カウントスイッチオンカウンタの値をチェックし(ステップS751h)、その値が2になっていれば、1個の球貸の払出が行なわれたと判断する。1個の球貸の払出が行なわれたと判断した場合には、払出制御用CPU371は、貸し球未払出個数カウンタ(球球個数記憶に格納されている球球数)を−1する(ステップS751i)。   Then, the value of the ball lending count switch-on counter is checked (step S751h). If the value is 2, it is determined that one ball lending has been paid out. When it is determined that one ball lending has been paid out, the payout control CPU 371 decrements a lending ball unpaid-out number counter (the number of spheres stored in the sphere number memory) by −1 (step S751i). ).

ステップS751fにおいて球貸カウントスイッチ301Bがオン状態でないことが確認されると、払出制御用CPU371は、球貸カウントスイッチオンカウンタをクリアする(ステップS751j)。   When it is confirmed in step S751f that the ball lending count switch 301B is not in the on state, the payout control CPU 371 clears the ball lending count switch on counter (step S751j).

図30は、ステップS753のコマンド解析実行処理の一例を示すフローチャートである。コマンド解析実行処理において、払出制御用CPU371は、確定コマンドバッファ領域中に受信コマンドがあるか否かの確認を行なう(ステップS753a)。受信コマンドがあれば、受信した払出制御コマンドが払出個数指示コマンドであるか否かの確認を行なう(ステップS753b)。なお、確定コマンドバッファ領域中に複数の受信コマンドがある場合には、受信した払出制御コマンドが払出個数指示コマンドであるか否かの確認は、最も前に受信された受信コマンドについて行なわれる。   FIG. 30 is a flowchart illustrating an example of the command analysis execution process in step S753. In the command analysis execution process, the payout control CPU 371 checks whether or not there is a received command in the confirmed command buffer area (step S753a). If there is a received command, it is checked whether or not the received payout control command is a payout number instruction command (step S753b). When there are a plurality of received commands in the fixed command buffer area, whether or not the received payout control command is a payout number instruction command is checked for the most recently received received command.

受信した払出制御コマンドが払出個数指示コマンドであれば、払出個数指示コマンドで受信された個数を総合個数記憶に加算する(ステップS753c)。すなわち、払出制御用CPU371は、主基板31のCPU56から送り出された払出個数指示コマンドに含まれる賞球数バックアップRAM領域(総合個数記憶)に記録する。   If the received payout control command is a payout number instruction command, the number received by the payout number instruction command is added to the total number memory (step S753c). That is, the payout control CPU 371 records in the award ball number backup RAM area (total number memory) included in the payout number instruction command sent from the CPU 56 of the main board 31.

なお、払出制御用CPU371は、必要ならば、コマンド受信個数カウンタの減算や確定コマンドバッファ領域における受信コマンドシフト処理を行なう。   The payout control CPU 371 performs subtraction of the command reception number counter and reception command shift processing in the confirmed command buffer area, if necessary.

図31は、ステップS754の払出停止状態設定処理の一例を示すフローチャートである。払出停止状態設定処理において、払出制御用CPU371は、確定コマンドバッファ領域中に受信コマンドがあるか否かの確認を行なう(ステップS754a)。確定コマンドバッファ領域中に受信コマンドがあれば、受信した払出制御コマンドが払出停止指示コマンドであるか否かの確認を行なう(ステップS754b)。払出停止指示コマンドであれば、払出制御用CPU371は、払出停止状態に設定する(ステップS754c)。   FIG. 31 is a flowchart illustrating an example of the payout stop state setting process in step S754. In the payout stop state setting process, the payout control CPU 371 checks whether or not there is a received command in the confirmed command buffer area (step S754a). If there is a received command in the confirmed command buffer area, it is checked whether or not the received payout control command is a payout stop instruction command (step S754b). If it is a payout stop instruction command, the payout control CPU 371 sets the payout stop state (step S754c).

ステップS754bで受信コマンドが払出停止指示コマンドでないことを確認すると、受信した払出制御コマンドが払出開始指示コマンドであるか否かの確認を行なう(ステップS754d)。払出開始指示コマンドであれば、払出停止状態を解除する(ステップS754e)。   If it is confirmed in step S754b that the received command is not a payout stop instruction command, it is checked whether or not the received payout control command is a payout start instruction command (step S754d). If it is a payout start instruction command, the payout stop state is canceled (step S754e).

図32は、ステップS755のプリペードカードユニット制御処理の一例を示すフローチャートである。プリペードカードユニット制御処理において、払出制御用CPU371は、カードユニット制御用マイクロコンピュータにより入力されるVL信号を検知したか否かを確認する(ステップS755a)。VL信号を検知していなければ、VL信号非検知カウンタを+1する(ステップS755b)。また、払出制御用CPU371は、VL信号非検知カウンタの値が本例では125であるか否かを確認する(ステップS755c)。VL信号非検知カウンタの値が125であれば、払出制御用CPU371は、発射制御基板91への発射制御信号出力を停止して、駆動モータ94を停止させる(ステップS755d)。   FIG. 32 is a flowchart showing an example of the prepaid card unit control process in step S755. In the prepaid card unit control process, the payout control CPU 371 checks whether or not a VL signal input by the card unit control microcomputer has been detected (step S755a). If the VL signal is not detected, the VL signal non-detection counter is incremented by 1 (step S755b). Further, the payout control CPU 371 checks whether or not the value of the VL signal non-detection counter is 125 in this example (step S755c). If the value of the VL signal non-detection counter is 125, the payout control CPU 371 stops the emission control signal output to the emission control board 91 and stops the drive motor 94 (step S755d).

以上の処理によって、125回(2ms×125=250ms)継続してVL信号のオフが検出されたら、球発射禁止状態に設定される。   If the VL signal is detected to be off 125 times (2 ms × 125 = 250 ms) continuously by the above processing, the ball firing prohibited state is set.

ステップS755aにおいてVL信号を検知していれば、払出制御用CPU371は、VL信号非検知カウンタをクリアする(ステップS755e)。そして、払出制御用CPU371は、発射制御信号出力を停止していれば(ステップS755f)、発射制御基板91への発射制御信号出力を開始して駆動モータ94を動作可能状態にする(ステップS755g)。   If the VL signal is detected in step S755a, the payout control CPU 371 clears the VL signal non-detection counter (step S755e). If the discharge control CPU 371 stops outputting the firing control signal (step S755f), the payout control CPU 371 starts outputting the firing control signal to the firing control board 91 to enable the drive motor 94 (step S755g). .

図33および図34は、ステップおよびと756の球貸制御処理の一例を示すフローチャートである。なお、この例では、連続的な払出数の最大値を貸球の1単位(本例では25個)としているが、他の数であってもよい。   FIG. 33 and FIG. 34 are flowcharts showing an example of the step 756 and the ball lending control process. In this example, the maximum number of consecutive payouts is set as one unit of rental balls (25 in this example), but other numbers may be used.

球貸し制御処理において、払出制御用CPU371は、球払出中であるか否かの確認を行ない(ステップS511)、球払出中であれば図34に示す球貸中の処理に移行する。なお、この確認は、後述する球貸処理中フラグの状態のように判断される。貸球払出中でなければ、賞球の払出中であるか否かの確認をする(ステップS512)。この確認は、後述する賞球処理中フラグの状態により判断される。   In the ball lending control process, the payout control CPU 371 checks whether or not the ball is being paid out (step S511). If the ball is being paid out, the process proceeds to the ball lending process shown in FIG. This confirmation is judged as in the state of a ball lending process flag which will be described later. If the ball is not being paid out, it is confirmed whether or not the prize ball is being paid out (step S512). This confirmation is determined based on the state of a prize ball processing flag to be described later.

貸球払出中でも賞球払出中でもなければ、払出制御用CPU371は、カードユニット50から球貸要求があったか否かを確認し(ステップS513)、要求があれば、球貸処理中フラグをオンするとともに(ステップS514)、25(貸球1単位数:ここでは100円分)をバックアップRAM領域の貸し球個数記憶に設定する(ステップS515)。そして、払出制御用CPU371は、EXS信号をオンする(ステップS516)。そして、球払出装置97の下方の球振分部材311を球貸側に設定するために振分用ソレノイド310を駆動する(ステップS517)。また、払出モータ289をオンして(ステップS518)、図34に示す球貸処理に移行する。   If the ball lending is not being paid out or the prize ball is not being paid out, the payout control CPU 371 checks whether or not there is a ball lending request from the card unit 50 (step S513), and if there is a request, turns on the ball lending processing flag. (Step S514), 25 (the number of units of rented balls: 100 yen here) is set in the number of rented balls stored in the backup RAM area (Step S515). Then, the payout control CPU 371 turns on the EXS signal (step S516). Then, in order to set the ball distribution member 311 below the ball dispensing device 97 to the ball lending side, the distribution solenoid 310 is driven (step S517). Also, the payout motor 289 is turned on (step S518), and the process proceeds to the ball lending process shown in FIG.

なお、払出モータ289がオンするのは、厳密には、カードユニット50が受付を認識したことを示すためにBRQ信号をOFFとしてからである。なお、球貸処理中フラグがバッファRAM領域に設定される。   Strictly speaking, the payout motor 289 is turned on after the BRQ signal is turned off to indicate that the card unit 50 has recognized acceptance. A ball lending process flag is set in the buffer RAM area.

図34は、払出制御用CPU371による払出制御処理における球貸中の処理を示すフローチャートである。球貸処理では、払出モータ289がオンしていなければオンする。なお、この実施の形態では、ステップS751のスイッチ処理で、球貸カウントスイッチ301Bの検出出力による遊技球の払出がなされたか否かの確認を行なうため、球貸制御処理では、貸球個数記憶の減算などは行なわれない。球貸制御処理において、払出制御用CPU371は、貸球通過待ち時間中であるか否かの確認を行なう(ステップS519)。貸球通過待ち時間中でなければ、貸球の払出を行ない(ステップS520)、払出モータ289の駆動を終了すべきか(1単位の払出動作が終了したか)否かの確認を行なう(ステップS521)。具体的には、所定個数の払出に対応した回転が完了したか否かを確認する。所定個数の払出に対応した回転は、払出モータ位置センサの出力によって監視される。所定個数の払出に対応した回転が完了した場合には、払出制御用CPU371は、払出モータ289の駆動を停止し(ステップS522)、貸球通過待ち時間の設定を行なう(ステップS523)。   FIG. 34 is a flowchart showing a ball lending process in the payout control process by the payout control CPU 371. In the ball lending process, if the payout motor 289 is not turned on, it is turned on. In this embodiment, in the switch processing of step S751, it is confirmed whether or not a game ball has been paid out based on the detection output of the ball rental count switch 301B. No subtraction is performed. In the ball lending control process, the payout control CPU 371 checks whether or not it is during the ball lending passage waiting time (step S519). If it is not during the lending pass waiting time, lending of the lending is performed (step S520), and it is confirmed whether or not the driving of the dispensing motor 289 should be terminated (whether one unit of dispensing operation has been completed) (step S521). ). Specifically, it is confirmed whether or not the rotation corresponding to the predetermined number of payouts has been completed. The rotation corresponding to the predetermined number of payouts is monitored by the output of the payout motor position sensor. When the rotation corresponding to the predetermined number of payouts is completed, the payout control CPU 371 stops driving the payout motor 289 (step S522) and sets the lending pass waiting time (step S523).

なお、ステップS520の球貸処理では、払出モータ位置センサのオンとオフとがタイマ監視されるが、所定時間以上のオン状態またはオフ状態が継続したら、払出制御用CPU371は、払出モータ球噛みエラーが生じたと判断する。   In the ball lending process in step S520, the on / off state of the payout motor position sensor is monitored by a timer. However, if the on state or the off state continues for a predetermined time or longer, the payout control CPU 371 issues a payout motor ball bit error. Is determined to have occurred.

ステップS519で貸球通過待ち時間中であれば、払出制御用CPU371は、貸球通過待ち時間が終了したか否かの確認を行なう(ステップS524)。貸球通過待ち時間は、最後の払出球が払出モータ289によって払出されてから球貸カウントスイッチ301Bを通過するまでの時間である。貸球通過待ち時間の終了を確認すると、1単位の貸球はすべて払出された状態であるので、カードユニット50に対して次の球貸要求の受付が可能になったことを示すためにEXS信号をオフにする(ステップS524)。また、振分ソレノイドをオフするとともに(ステップS525)、払出モータ289をオフして(ステップS526)、さらに球貸処理中フラグをオンする(ステップS527)。なお、貸球通過待ち時間が経過するまでに最後の払出球が球貸カウントスイッチ301Bを通過しなかった場合には、球貸径路エラーとされる。また、この実施の形態では、賞球も球貸も同じ払出装置で行なわれる。   If it is during the lending pass waiting time in step S519, the payout control CPU 371 checks whether or not the lending pass waiting time has ended (step S524). The ball rental passage waiting time is the time from when the last payout ball is paid out by the payout motor 289 until it passes through the ball rental count switch 301B. Upon confirming the end of the ball rental passage waiting time, one unit of the ball has been paid out, so that the card unit 50 can receive the next ball rental request, and EXS The signal is turned off (step S524). Further, the distribution solenoid is turned off (step S525), the payout motor 289 is turned off (step S526), and the ball lending process flag is turned on (step S527). If the last payout ball does not pass the ball lending count switch 301B by the time the ball lending passage waiting time elapses, a ball lending path error is determined. In this embodiment, the winning ball and the ball lending are performed by the same payout device.

なお、球貸要求の受付をEXS信号をオフした後、所定時間内に再び球貸要求信号であるBRQ信号がオンしたら、振分ソレノイドおよび払出モータをオフせずに球貸処理を実行するようにしてもよい。すなわち、所定単位(この例では100円単位)毎に球貸処理が行なわれるのではなく、球貸処理を連続して実行するように構成することもできる。   After turning off the EXS signal to accept the ball rental request, if the BRQ signal, which is the ball rental request signal, is turned on again within a predetermined time, the ball rental process is executed without turning off the sorting solenoid and the dispensing motor. It may be. That is, the ball lending process is not performed every predetermined unit (100 yen unit in this example), but the ball lending process can be executed continuously.

貸球個数記憶の内容は、遊技機の電源が断しても、所定期間電源基板910のバックアップ電源によって保存される。したがって、所定期間中に電源が回復すると、払出制御用CPU371は、貸球個数記憶の内容に基づいて球貸処理を継続することができる。   The content of the number of rented balls is stored by the backup power source of the power supply board 910 for a predetermined period even if the gaming machine is powered off. Therefore, when the power is restored during the predetermined period, the payout control CPU 371 can continue the ball lending process based on the content of the number of balls lent.

図35および図36は、ステップ757の賞球制御処理の一例を示すフローチャートである。なお、この例では、連続的な払出数の最大値を貸球の1単位と同数(本例では25個)としているが、他の数であってもよい。   FIG. 35 and FIG. 36 are flowcharts showing an example of the prize ball control process in step 757. In this example, the maximum number of consecutive payouts is the same as one unit of rental balls (25 in this example), but other numbers may be used.

賞球制御処理において、払出制御用CPU371は、貸球払出中であるか否かの確認を行なう(ステップS531)。なお、この確認は、球貸処理中フラグの状態により判断される。貸球払出中でなければ賞球の払出中であるか否かを確認し(ステップS532)、賞球の払出中であれば図36に示す賞球中の処理に移行する。この確認は、後述する賞球処理中フラグの状態により判断される。   In the prize ball control process, the payout control CPU 371 checks whether or not the rental ball is being paid out (step S531). This confirmation is determined by the state of the ball lending process flag. If the ball is not paid out, it is confirmed whether or not the prize ball is being paid out (step S532). If the prize ball is being paid out, the process proceeds to the process in the prize ball shown in FIG. This confirmation is determined based on the state of a prize ball processing flag to be described later.

貸球払出中でも賞球払出中でもなければ、払出制御用CPU371は、カードユニット50からの球貸準備要求があるか否かの確認を行なう(ステップS533)。なお、この確認は、払出制御用CPU371により、カードユニット50から入力されるPRDY信号のオン(要求あり)またはオフ(要求なし)を確認することにより行なわれる。   If the ball is not paid out or the prize ball is not paid out, the payout control CPU 371 checks whether or not there is a ball lending preparation request from the card unit 50 (step S533). This confirmation is performed by the payout control CPU 371 confirming whether the PRDY signal input from the card unit 50 is on (requested) or off (no request).

カードユニット50からの球貸準備要求がなければ、払出制御用CPU371は、総合個数記憶に格納されている賞球数(未払出の賞球数)が0でないか否かの確認を行なう(ステップS533)。総合個数記憶に格納されている賞球数が0でなければ、賞球制御用CPU371は、賞球処理中フラグをオンし(ステップS535)、総合個数記憶の値が本例では25以上であるか否かの確認を行なう(ステップS536)。なお、賞球処理中フラグは、バックアップRAM領域に設定される。   If there is no ball lending preparation request from the card unit 50, the payout control CPU 371 checks whether or not the number of award balls (the number of unpaid award balls) stored in the total number memory is 0 (step). S533). If the number of prize balls stored in the total number memory is not zero, the prize ball control CPU 371 turns on a prize ball processing flag (step S535), and the value of the total number memory is 25 or more in this example. It is confirmed whether or not (step S536). The prize ball processing flag is set in the backup RAM area.

総合個数記憶に格納されている賞球数が25以上であると、払出制御用CPU371は、25個分の賞球を払出すまで払出モータ289を回転させるよう駆動信号出力するために、25個払出動作の設定を行なう(ステップS537)。一方、総合個数記憶に格納されている賞球数が25以上でなければ、払出制御用CPU371は、総合個数記憶に格納されているすべての遊技球を払出すまで払出モータ289を回転させるよう駆動信号出力するために、全個数払出動作の設定を行なう(ステップS538)。そして、ステップS537またはステップS538での設定に従って払出モータ289をオンする(ステップS538)。なお、振分ソレノイドはオフ状態であるため、球払出装置97の下方の球振分部材は賞球側に設定されている。そして、図36に示す賞球制御処理における賞球払出中の処理に移行する。   If the number of prize balls stored in the total number memory is 25 or more, the payout control CPU 371 outputs 25 driving signals to rotate the payout motor 289 until 25 prize balls are paid out. The payout operation is set (step S537). On the other hand, if the number of prize balls stored in the total number memory is not 25 or more, the payout control CPU 371 drives to rotate the payout motor 289 until all the game balls stored in the total number memory are paid out. In order to output a signal, the total number dispensing operation is set (step S538). Then, the payout motor 289 is turned on according to the setting in step S537 or step S538 (step S538). Since the sorting solenoid is in the off state, the ball sorting member below the ball dispensing device 97 is set to the prize ball side. Then, the process proceeds to a process during payout of prize balls in the prize ball control process shown in FIG.

図36は、払出制御用CPU371により払出制御処理における賞球中の処理の一例を示すフローチャートである。賞球制御処理では、払出モータ289がオンしていなければオンする。なお、この実施の形態では、ステップS751のスイッチ処理で、賞球カウントスイッチ301Aの検出出力による遊技球の払出がなされたか否かの確認を行なうため、賞球制御処理では総合個数記憶の減算などは行なわれない。賞球中の処理において、払出制御用CPU371は、賞球通過待ち時間中であるか否かの確認を行なう(ステップS540)。賞球通過待ち時間中でなければ、賞球払出を行ない(ステップS541)、払出モータ289の駆動を終了すべきか(本例では25個または25個未満の所定個数の払出動作が終了したか否かの確認を行なう(ステップS542)。具体的には、所定個数の払出に対応した回転が完了したか否かを確認する。所定個数の払出に対応した回転は、払出モータ位置センサの出力によって監視される。所定個数の払出に対応した回転が完了した場合には、払出制御用CPU371は、払出モータ289の駆動を停止し(ステップS543)、賞球通過待ち時間の設定を行なう(ステップS542)。賞球通過待ち時間は、最後の払出球が払出モータ289によって払出されてから賞球カウントスイッチ301Aを通過するまでの時間である。   FIG. 36 is a flowchart illustrating an example of a process during a prize ball in the payout control process by the payout control CPU 371. In the winning ball control process, if the payout motor 289 is not turned on, it is turned on. In this embodiment, in the switch process of step S751, it is confirmed whether or not a game ball has been paid out based on the detection output of the prize ball count switch 301A. Is not done. In the process during the winning ball, the payout control CPU 371 checks whether or not it is during the winning ball passage waiting time (step S540). If it is not during the waiting time for passing the prize ball, the prize ball is paid out (step S541), whether the driving of the payout motor 289 should be terminated (in this example, whether a predetermined number of payout operations of 25 or less than 25 have been completed) Specifically, it is checked whether or not the rotation corresponding to the predetermined number of payouts has been completed, and the rotation corresponding to the predetermined number of payouts is determined by the output of the payout motor position sensor. When the rotation corresponding to the predetermined number of payouts is completed, the payout control CPU 371 stops driving the payout motor 289 (step S543) and sets the award ball passage waiting time (step S542). The award ball passing waiting time is the time from when the last payout ball is paid out by the payout motor 289 until it passes through the prize ball count switch 301A.

一方、ステップS540を見て賞球通過待ち時間中であれば、払出制御用CPU371は、賞球通過待ち時間が終了したか否かの確認を行なう(ステップS544)。貸球通過待ち時間の終了を確認すると、ステップS537またはステップS538で設定された賞球がすべて払出された状態であるので、払出モータ289をオフするとともに(ステップS544)、賞球処理中フラグをオンする(ステップS546)。なお、賞球通過待ち時間が経過するまでに最後の払出球が賞球カウントスイッチ301Aを通過しなかった場合には、賞球径路エラーとされる。   On the other hand, if it is during the winning ball passage waiting time as seen in step S540, the payout control CPU 371 checks whether or not the winning ball passage waiting time has ended (step S544). When the completion of the lending pass waiting time is confirmed, all the prize balls set in step S537 or step S538 have been paid out, so the payout motor 289 is turned off (step S544) and the prize ball processing flag is set. Turns on (step S546). Note that if the last payout ball does not pass the prize ball count switch 301A before the prize ball passage waiting time elapses, a prize ball path error is determined.

また、この実施の形態では、ステップS511、ステップS531の判断によって球貸が賞球処理よりも優先されることになるが、賞球処理が球貸に優先されるようにしてもよい。   Further, in this embodiment, the ball rental is prioritized over the prize ball processing according to the determinations in steps S511 and S531, but the prize ball processing may be prioritized over the ball rental.

総合個数記憶および貸球個数記憶の内容は、遊技機の電源が断しても、所定期間電源基板910のバックアップ電源によって保存される。したがって、所定期間中に電源が回復すると、払出制御用CPU371は、総合個数記憶の内容に基づいて払出処理を継続することができる。   The contents of the total number storage and the rented number storage are stored by the backup power source of the power supply board 910 for a predetermined period even if the power of the gaming machine is cut off. Therefore, when the power is restored during the predetermined period, the payout control CPU 371 can continue the payout process based on the contents of the total number storage.

なお、払出制御用CPU371は、主基板31から指示された賞球個数を賞球個数記憶で総数として管理したが、賞球数毎(たとえば、15個、10個、5個)に管理してもよい。たとえば、賞球数毎に対応した個数カウンタを設け、払出個数指定コマンドを受信すると、そのコマンドで指定された個数に対応する個数カウンタを+1する。そして、個数カウンタに対応した賞球払出が行なわれると、その個数カウンタを−1する(この場合、払出制御処理にて減算処理を行なうようにする)。その場合にも、各個数カウンタはバックアップRAM領域に形成される。よって、遊技機の電源が断しても、所定期間中に電源を回復すれば、払出制御用CPU371は、各個数カウンタの内容に基づいて賞球払出処理を継続することができる。   The payout control CPU 371 manages the number of prize balls instructed from the main board 31 as the total number in the prize ball number storage, but manages the prize balls for each prize ball number (for example, 15, 10, 5). Also good. For example, a number counter corresponding to the number of winning balls is provided, and when a payout number designation command is received, the number counter corresponding to the number designated by the command is incremented by one. When the prize ball payout corresponding to the number counter is performed, the number counter is decremented by 1 (in this case, the subtraction process is performed in the payout control process). Also in that case, each number counter is formed in the backup RAM area. Therefore, even if the power of the gaming machine is cut off, if the power is restored during a predetermined period, the payout control CPU 371 can continue the prize ball payout process based on the contents of each number counter.

図37は、電源基板910の電源監視回路から電圧変化信号に基づくNMIに応じて実行される停電発生NMIの処理の一例を示すフローチャートである。なお、この実施の形態では、NMI割込番地は0066Hである。停電発生NMI処理において、払出制御用CPU371は、まず、割込禁止フラグの内容をパリティフラグに格納する(ステップS801)。次いで、割込禁止に設定する(ステップS802)。停電発生NMI処理では、本例では主基板31において実行された処理と同様に、RAM内容の保存を確実にするためのチェックサムの生成処理を行なう。その処理中に他の割込処理が行なわれたのではチェックサムの生成処理が完了しないうちの払出制御用CPU371が動作し得ない電圧にまで低下してしまうことも考えられるので、まず、他の割込が生じないような設定がなされる。なお、停電発生NMI処理におけるステップS804〜S810は、電力供給停止時の処理の一例である。   FIG. 37 is a flowchart illustrating an example of a power failure occurrence NMI process executed in response to the NMI based on the voltage change signal from the power supply monitoring circuit of the power supply board 910. In this embodiment, the NMI interrupt address is 0066H. In the power failure occurrence NMI process, the payout control CPU 371 first stores the contents of the interrupt prohibition flag in the parity flag (step S801). Next, interrupt prohibition is set (step S802). In the power failure occurrence NMI process, in this example, a checksum generation process for ensuring the storage of the RAM contents is performed as in the process executed on the main board 31. If another interrupt process is performed during the process, the payout control CPU 371 may not be able to operate before the checksum generation process is completed. Is set so that no interruption occurs. Note that steps S804 to S810 in the power failure occurrence NMI processing are an example of processing when power supply is stopped.

なお、割込処理中では他の割込がかからないような仕様のCPUを用いている場合には、ステップS802の処理は不要である。   Note that the processing in step S802 is not necessary when a CPU having a specification that does not cause other interrupts during the interrupt processing is used.

次いで、払出制御用CPU371は、バックアップフラグが既にセットされているか否かを確認する(ステップS803)。バックアップフラグが既にセットされていれば、以後の処理を行なわない。バックアップフラグがセットされていなければ、以下の電力供給停止時処理を実行する。すなわち、ステップS804からステップS810の処理を実行する。   Next, the payout control CPU 371 checks whether or not the backup flag has already been set (step S803). If the backup flag is already set, no further processing is performed. If the backup flag is not set, the following power supply stop process is executed. That is, the processing from step S804 to step S810 is executed.

まず、各レジスタの内容をバックアップRAM領域に格納する(ステップS804)。その後、バックアップフラグをセットする(ステップS805)。そして、バックアップRAM領域のバックアップチェックデータ領域に適当な初期値を設定し(ステップS806)、初期値およびバックアップRAM領域のデータについて順次排他的論理和をとった後判定し(ステップS807)、最終的な演算値をバックアップパリティデータ領域に設定する(ステップS808)。また、RAMアクセス禁止状態にする(ステップS809)。さらに、すべての出力ポートをオフ状態にする(ステップS810)。電源電圧が低下していくときには、各種信号線のレベルが不安定になってRAM内容が化ける可能性があるが、このようにRAMアクセス禁止状態にしておけば、バックアップRAM内のデータが化けることはない。   First, the contents of each register are stored in the backup RAM area (step S804). Thereafter, a backup flag is set (step S805). Then, an appropriate initial value is set in the backup check data area of the backup RAM area (step S806), and after the exclusive OR is sequentially obtained for the initial value and the data in the backup RAM area, the determination is made (step S807). The calculated value is set in the backup parity data area (step S808). In addition, the RAM access is prohibited (step S809). Further, all output ports are turned off (step S810). When the power supply voltage is lowered, the level of various signal lines may become unstable and the contents of the RAM may be altered, but if the RAM access is prohibited in this manner, the data in the backup RAM will be altered. There is no.

次いで、払出制御用CPU371は、ループ処理に入る。すなわち何らの処理もしない状態になる。したがって、図21に示されたリセットIC976からのシステムリセット信号によって外部から動作禁止状態にされる前に、内部的に動作停止状態になる。よって、電源断時に確実に払出制御用CPU371は動作を停止する。その結果、上述したRAMアクセス禁止の制御および動作停止制御によって、電源電圧が低下していくことに伴って生ずる可能性がある異常動作に起因するRAMの内容破壊等を確実に防止することができる。   Next, the payout control CPU 371 enters a loop process. That is, no processing is performed. Therefore, the operation is internally stopped before the operation is disabled from the outside by the system reset signal from the reset IC 976 shown in FIG. Therefore, the payout control CPU 371 reliably stops its operation when the power is turned off. As a result, the RAM access prohibition control and the operation stop control described above can reliably prevent the RAM contents from being destroyed due to an abnormal operation that may occur as the power supply voltage decreases. .

なお、この実施の形態では、停電発生NMI処理では、最終部でプログラムをループ状態にしたが、ホールト(HALT)命令を発行するように構成してもよい。   In this embodiment, in the power failure occurrence NMI process, the program is looped at the last part, but a halt (HALT) instruction may be issued.

また、レジスタの内容をRAM領域に格納した後にセットされるバックアップフラグは、上述したように電源投入時において復旧すべきバックアップデータがあるか否か(停電からの復旧か否か)を判断する際に使用される。また、ステップS801からS810の処理は、払出制御用CPU371がシステムリセット回路975からのシステムリセット信号を受ける前に完了する。換言すれば、システムリセット回路975からのシステムリセット信号を受ける前に完了するように、電圧監視回路の検出電圧の設定が行なわれている。   The backup flag set after the register contents are stored in the RAM area is used to determine whether there is backup data to be restored when the power is turned on as described above (whether it is restoration from a power failure). Used for. Further, the processing of steps S801 to S810 is completed before the payout control CPU 371 receives the system reset signal from the system reset circuit 975. In other words, the detection voltage of the voltage monitoring circuit is set so as to be completed before the system reset signal from the system reset circuit 975 is received.

この実施の形態では、電力供給停止時処理開始時に、バックアップフラグの確認が行なわれる。そして、バックアップフラグが既にセットされている場合には電力供給停止時処理を実行しない。上述したように、バックアップフラグは、必要なデータのバックアップが完了し、その後電力供給停止時処理が完了したことを示すフラグである。したがって、たとえば、リセット待ちのループ状態で何らかの原因でサイドNMIが発生したとしても電力供給停止時処理が重複して実行されてしまうようなことはない。   In this embodiment, the backup flag is confirmed at the start of the power supply stop process. If the backup flag is already set, the power supply stop process is not executed. As described above, the backup flag is a flag indicating that the backup of necessary data has been completed and the power supply stop process has been completed thereafter. Therefore, for example, even if a side NMI occurs for some reason in a loop waiting for resetting, the power supply stop process is not repeatedly executed.

ただし、割込処理中では他の割込がかからないような仕様のCPUを用いている場合には、ステップS803の判断は不要である。   However, if a CPU with a specification that does not cause other interrupts during interrupt processing is used, the determination in step S803 is not necessary.

また、この実施の形態では、払出制御用CPU371は、マスク不能外部割込端子(NMI端子)を介して電源基板からのNMI割込信号(電源監視手段からのNMI割込信号)を検知したが、NMI割込信号をマスク可能割込端子(IRQ端子)に導入してもよい。その場合には、IRQ処理によって、図37に示された停電発生NMI処理が実行される。また、入力ポートを介してNMI割込信号を検知してもよい。その場合には、払出制御用CPU371が実行するメイン処理において、入力ポートの監視が行なわれる。   In this embodiment, the payout control CPU 371 detects the NMI interrupt signal from the power supply board (NMI interrupt signal from the power supply monitoring means) via the non-maskable external interrupt terminal (NMI terminal). The NMI interrupt signal may be introduced to the maskable interrupt terminal (IRQ terminal). In that case, the power failure occurrence NMI process shown in FIG. 37 is executed by the IRQ process. Further, an NMI interrupt signal may be detected via the input port. In that case, the input port is monitored in the main process executed by the payout control CPU 371.

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

電源が再投入されたときには、停電復旧処理においてパリティ診断が行なわれる。バックアップ領域の全データがそのまま保存されていれば、電源再投入時に、図38に示すようなデータがバックアップ領域に設定されている。   When the power is turned on again, a parity diagnosis is performed in the power failure recovery process. If all data in the backup area is stored as it is, data as shown in FIG. 38 is set in the backup area when the power is turned on again.

ステップS704の処理において、払出制御用CPU371は、図37のステップS806およびステップS807にて実行された処理と同様の処理を行なう。すなわち、バックアップチェックデータ領域に、初期データ(この例では00H)が設定され、「00H」と「F0H」との排他的論理和がとられ、その結果と「16H」との排他的論理和がとられる。さらに、その結果と「DFH」との排他的論理和がとられる。そして、その結果(この例では「39H」)を反転した最終演算結果を得る。バックアップ領域の全データがそのまま保存されていれば、最終的な演算結果は、「C6H」、すなわち、バックアップチェックデータ領域に設定されているデータと一致する。バックアップRAM領域内のデータにビット誤りが生じた場合には、最終的な演算結果は「C6H」にならない。   In the process of step S704, the payout control CPU 371 performs the same process as the process executed in steps S806 and S807 of FIG. That is, initial data (00H in this example) is set in the backup check data area, an exclusive OR of “00H” and “F0H” is taken, and an exclusive OR of the result and “16H” is obtained. Be taken. Further, an exclusive OR of the result and “DFH” is taken. Then, a final calculation result obtained by inverting the result (“39H” in this example) is obtained. If all the data in the backup area is stored as it is, the final calculation result coincides with “C6H”, that is, the data set in the backup check data area. When a bit error occurs in the data in the backup RAM area, the final calculation result is not “C6H”.

よって、払出制御用CPU371は、最終的な演算結果とバックアップチェックデータ領域に設定されているデータとを比較して、一致すればパリティ診断正常とする。一致しなければパリティ診断異常とする。   Therefore, the payout control CPU 371 compares the final calculation result with the data set in the backup check data area, and if they match, the parity diagnosis is normal. If they do not match, the parity diagnosis is abnormal.

以上のように、この実施の形態では、払出制御手段には、遊技機の電源が断しても、所定期間電源バックアップされる記憶手段(この例ではバックアップRAM)が設けられ、電源投入時に、払出制御用CPU371(具体的には払出制御用CPU371が実行するプログラム)は、記憶手段がバックアップ状態にあればバックアップデータに基づいて払出状態を回復させる払出状態復旧処理(ステップS706)を行なうように構成される。   As described above, in this embodiment, the payout control means is provided with a storage means (in this example, a backup RAM) that is backed up for a predetermined period of time even when the gaming machine is turned off. The payout control CPU 371 (specifically, a program executed by the payout control CPU 371) performs a payout state recovery process (step S706) for recovering the payout state based on the backup data if the storage means is in the backup state. Composed.

以下、払出復旧処理について説明する。
図39は、図22のステップS706に示された払出状態復旧処理の一例を示すフローチャートである。この例では、払出制御用CPU371は、バックアップRAMに保存されていた値をレジスタに復元する(ステップS861)。そして、バックアップRAMに保存されていたデータに基づいて停電時の払出状態を復旧するための処理を行なう。たとえば、賞球中処理中フラグのセット等を行なう。
The payout recovery process will be described below.
FIG. 39 is a flowchart showing an example of the payout state restoration process shown in step S706 of FIG. In this example, the payout control CPU 371 restores the value stored in the backup RAM to the register (step S861). And the process for recovering the payout state at the time of power failure is performed based on the data stored in the backup RAM. For example, an award ball processing flag is set.

払出状態を復帰させると、この実施の形態では、払出制御用CPU371は、前回の電源断時の割込許可/禁止状態を復帰させるため、バックアップRAMに保存されていたパリティフラグの値を確認する(ステップS862)。パリティフラグがクリアであれば、割込許可設定を行なう(ステップS863)。一方、パリティフラグがオンであれば、そのまま(ステップS701aで設定された割込禁止状態のまま)払出状態復旧処理を終える。   When the payout state is restored, in this embodiment, the payout control CPU 371 checks the value of the parity flag stored in the backup RAM in order to restore the interrupt permission / prohibition state at the previous power-off. (Step S862). If the parity flag is clear, interrupt permission is set (step S863). On the other hand, if the parity flag is on, the payout state recovery process is finished as it is (while keeping the interrupt disabled state set in step S701a).

なお、ここでは、払出状態復旧処理が終了すると払出制御メイン処理にリターンするように払出状態復旧処理プログラムが構成されているが、電力供給停止時処理において保存されているスタックポインタから出すスタックエリア(バックアップRAM領域にある)に記憶されているアドレス(電源断時のNMI割込発生時に実行されていたアドレス)に戻るようにしてもよい。   Here, the payout state recovery processing program is configured to return to the payout control main process when the payout state recovery process ends, but the stack area (from the stack pointer stored in the power supply stop process) It is also possible to return to the address stored in the backup RAM area (the address that was executed when the NMI interrupt occurred when the power was turned off).

上述したように、初期設定処理を開始した後、払出状態復旧処理を終える前まで、または、初期化処理を終える前までは、割込禁止状態とする構成としたことで、割込により処理が中断されることを防止することができるため、初期設定、バックアップデータ記憶領域の内容に応じて行なわれる電源断時の払出状態に復旧させるか否かの判断、および復旧処理(または初期化処理)を確実に完了させることができる。なお、上記のように復旧処理を終える前まで割込禁止状態とする構成とした場合であっても、電源断時の割込禁止/許可状態はパリティフラグによりバックアップしているため、復旧処理において電源断時の割込禁止/許可状態を確実に復旧させることができる。   As described above, after starting the initial setting process, until the end of the payout state recovery process, or before the end of the initialization process, the interrupt disabled state allows the processing by the interrupt. Since it can be prevented from being interrupted, initial setting, determination of whether or not to restore the payout state at the time of power-off performed according to the contents of the backup data storage area, and recovery processing (or initialization processing) Can be completed reliably. Even if it is configured to be in an interrupt disabled state until the recovery process is completed as described above, the interrupt disabled / permitted state at the time of power-off is backed up by the parity flag. It is possible to reliably restore the interrupt disabled / permitted state when the power is turned off.

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

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

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

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

リセットIC976が電源断を検知するための所定値は、CPU371を動作させる通常時の電圧より低いが、払出制御用CPU371がしばらくの間動作し得る程度の電圧である。また、リセットIC976が払出制御用CPU371が必要とする電圧(この例では+5V)よりも高い電圧を監視するように監視されているので、払出制御用CPU371が必要とする電圧に対して監視範囲を広げることができる。したがってより精密な監視を行なうことができる。   The predetermined value for the reset IC 976 to detect the power-off is lower than the normal voltage for operating the CPU 371, but is a voltage that allows the payout control CPU 371 to operate for a while. Further, since the reset IC 976 is monitored so as to monitor a voltage higher than the voltage required by the payout control CPU 371 (in this example, +5 V), a monitoring range is set for the voltage required by the payout control CPU 371. Can be spread. Therefore, more precise monitoring can be performed.

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

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

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

ただし、監視範囲が狭まるが、電圧監視回路および他の電圧監視回路の監視電圧として+5V電源電圧を用いることも可能である。その場合にも、電圧監視回路の検出電位は、他の電圧監視回路の検出電位よりも高く設定されている。   However, although the monitoring range is narrowed, it is also possible to use the + 5V power supply voltage as the monitoring voltage of the voltage monitoring circuit and other voltage monitoring circuits. Even in this case, the detection potential of the voltage monitoring circuit is set higher than the detection potentials of the other voltage monitoring circuits.

以上説明したようにバックアップデータの有無により電源断時の状態に復旧するか否かの判別を行なうようにしたことで、停電後の電源復旧時などにおいて電源投入されたときに、バックアップデータ記憶領域の内容に応じて電源断時のデータに復旧されるか否かの判断を行なうことができる。したがって、バックアップデータに基づく制御を実現することができるとともに、不必要な復旧処理の実行を防止することができる。   As described above, the backup data storage area can be used when the power is turned on when the power is restored after a power failure, etc. It can be determined whether or not the data at the time of power-off is restored according to the contents of. Therefore, it is possible to realize control based on the backup data and to prevent unnecessary recovery processing from being executed.

また、上述したようにバックアップデータの状態により電源断時の状態に復旧するか否かの判断を行なうようにしたことで、停電後の電源復旧時などにおいて電源投入されたときに、バックアップデータ記憶領域の内容のデータに応じて電源断時の状態に復旧させるか否かの判断を行なうことができる。したがって、正常なバックアップデータに基づく制御を実現することができるとともに、異常が発生したバックアップデータに基づく復旧処理の実行を防止することができる。   In addition, as described above, it is determined whether or not to restore the power-off state depending on the state of the backup data, so that when the power is turned on when the power is restored after a power failure, the backup data is stored. It can be determined whether or not to restore the power-off state according to the data of the contents of the area. Therefore, control based on normal backup data can be realized and execution of recovery processing based on backup data in which an abnormality has occurred can be prevented.

また、上述したように初期設定処理を開始した後、復旧処理を終える前まで、また初期処理を終える前までの値(初期準備処理の間は、)は、割込禁止状態とする構成としたことで、割込により処理が中断されることを防止することができるため、初期設定、バックアップデータ記憶領域内の内容に応じて行なわれる電源断時の状態に復旧されるか否かの判断、および復旧処理(または初期化処理)を確実に完了させることができる。なお、上記のような復旧処理を終える前まで割込禁止状態とする構成とした場合であっても、電源断時の割込禁止/許可状態をパリティフラグによりバックアップしているため、復旧処理において電源断時の割込禁止/許可状態を確実に復旧させることができる。この場合、上記初期準備処理において含まれる処理は一例であり、初期準備処理はたとえば、初期設定処理を監視した後バックアップデータに基づく復旧を行なうか否かを決定するまでの間の処理など、上述した処理の一部であってもよい。   Further, as described above, the values before starting the initial setting process and before finishing the recovery process and before finishing the initial process (during the initial preparation process) are set to be in an interrupt disabled state. Therefore, it is possible to prevent the processing from being interrupted by an interrupt, so that it is determined whether or not to restore to the power-off state that is performed according to the contents in the initial setting and the backup data storage area, In addition, the recovery process (or initialization process) can be reliably completed. Even in the case of a configuration in which the interrupt is disabled until the above recovery processing is completed, the interrupt disabled / permitted state at the time of power-off is backed up by a parity flag. It is possible to reliably restore the interrupt disabled / permitted state when the power is turned off. In this case, the process included in the initial preparation process is an example, and the initial preparation process is, for example, the process from monitoring the initial setting process to determining whether to perform recovery based on the backup data. It may be a part of the processed.

なお、上述した各実施の形態では、電源監視手段は、電源基板および電気部品制御基板のいずれかに設置されたが、どこに設置されていてもよく、遊技機の構造上の都合に応じて任意位置に設置することができる。   In each of the embodiments described above, the power supply monitoring means is installed on either the power supply board or the electrical component control board. However, it may be installed anywhere, and is optional according to the structural convenience of the gaming machine. Can be installed in position.

そして、上記の各実施の形態では、記憶手段としてRAMを用いた場合を示したが、記憶手段として、電気的に書換が可能な記憶手段であればRAM以外のものを用いてもよい。   In each of the above-described embodiments, the RAM is used as the storage unit. However, as the storage unit, a storage unit other than the RAM may be used as long as it is an electrically rewritable storage unit.

また、上述した各実施の形態では、遊技制御手段以外の他の電気部品制御手段として払出制御手段を示したが、表示制御手段、音声制御手段およびランプ制御手段についても、上述した制御を行なうように構成してもよい。   In each of the above-described embodiments, the payout control means is shown as an electric component control means other than the game control means. However, the display control means, the sound control means, and the lamp control means are also controlled as described above. You may comprise.

また、上述実施の形態では、電源監視回路は、電源基板910に設けられたが、電源監視回路は、主基板31や払出基板37の電気部品制御基板に設けられていてもよい。なお、電源回路が搭載された電気部品制御基板が構成される場合には、電源基板には、電源監視回路が搭載されない。   In the above-described embodiment, the power supply monitoring circuit is provided on the power supply board 910, but the power supply monitoring circuit may be provided on the electrical component control board of the main board 31 or the payout board 37. When an electric component control board on which a power supply circuit is mounted is configured, a power supply monitoring circuit is not mounted on the power supply board.

上記の各実施の形態のパチンコ遊技機1は、始動入賞に基づいて可変表示部9に可変表示される特別図柄の停止図柄が所定の図柄に組合せとなると所定の遊技価値が遊技者に付与可能になる第1種パチンコ遊技機であったが、始動入賞に基づいて開放する電動役物の所定領域への入賞があると所定遊技価値が遊技者に付与可能になる第2種パチンコ遊技機や、始動入賞に基づいて可変表示される図柄の停止図柄が所定の図柄の組合せになると開放する所定電動役物への入賞があると所定の権利が発生または継続する第3種パチンコ遊技機であっても、本発明を適用できる。   The pachinko gaming machine 1 of each of the above embodiments can give a predetermined game value to a player when a special symbol stop symbol variably displayed on the variable display unit 9 is combined with a predetermined symbol based on a start winning prize. The first type pachinko gaming machine that becomes the type, the second type pachinko gaming machine that can be given a predetermined gaming value to the player if there is a prize in a predetermined area of the electric game that is released based on the starting prize This is a type 3 pachinko gaming machine in which a predetermined right is generated or continued when a winning is given to a predetermined electric accessory that is released when a symbol of a symbol variably displayed based on a start winning is a combination of predetermined symbols. However, the present invention can be applied.

さらに、パチンコ遊技機にとらわれず、スロット遊技機等においても、電源投入による電源断時に電源断直前のデータをバックアップRAM等に保存し、電源復旧時に保存データに基づく制御再開処理を行なうように構成されている場合などには本発明を適用することができる。たとえば、スロット遊技機に適用した場合には、内部フラグ(ビッグ、レギュラー、小役などのフラグ)やビッグ中などの状態を復旧させることができる。   Furthermore, it is possible to save data immediately before power-off in a backup RAM, etc., even in slot games, etc., regardless of pachinko machines, and to perform control restart processing based on the saved data when power is restored The present invention can be applied to such cases. For example, when it is applied to a slot game machine, it is possible to recover the state of an internal flag (big, regular, small role, etc.) or big medium.

上記電力監視手段は、電圧の所定の値以下になったときに信号を送り出すようにしたが、電圧が所定の値以上になったときに信号を出力するようにしてもよい。それにより、IC等の電気回路の損傷を防止できるとともに、消費電力の無駄を防止するようなことも可能となる。   The power monitoring means sends out a signal when the voltage becomes a predetermined value or less, but may output a signal when the voltage becomes a predetermined value or more. Accordingly, it is possible to prevent damage to electric circuits such as ICs and to prevent waste of power consumption.

次に、図41を用いてスイッチ入力を説明する。パチンコ遊技機1に設けられているスイッチは、遊技球の通過を検知するためのスイッチ、賞球を検知するためのスイッチ、遊技球の状態を検知するためのスイッチに分類される。遊技球の通過を検知するためのスイッチとしては、入賞口スイッチ24a(左袖入賞口スイッチ,右袖入賞口スイッチ)、入賞口スイッチ19a(左落し入賞口スイッチ,右落し入賞口スイッチ)、始動口スイッチ17(第1種始動口スイッチ)、カウントスイッチ23、Vカウントスイッチ22(特定領域スイッチ)、ゲートスイッチ12が設けられている。賞球を検知するためのスイッチとしては、賞球個数カウントスイッチ301A,301Bが設けられている。遊技球の状態を検知するためのスイッチとしては、満タンスイッチ48、球切れ検出スイッチ167、球切れスイッチ187a,187bが設けられている。   Next, switch input will be described with reference to FIG. The switches provided in the pachinko gaming machine 1 are classified into switches for detecting the passage of game balls, switches for detecting prize balls, and switches for detecting the state of game balls. As a switch for detecting the passing of the game ball, a winning opening switch 24a (left sleeve winning opening switch, right sleeve winning opening switch), a winning opening switch 19a (left falling winning opening switch, right falling winning opening switch), start A mouth switch 17 (first type start mouth switch), a count switch 23, a V count switch 22 (specific area switch), and a gate switch 12 are provided. As switches for detecting a prize ball, prize ball number counting switches 301A and 301B are provided. As switches for detecting the state of the game ball, a full tank switch 48, a ball break detection switch 167, and ball break switches 187a and 187b are provided.

まず、図41を用いて、始動口スイッチ17(第1種始動口スイッチ)について説明する。始動口スイッチ17(第1種始動口スイッチ)は、スイッチチェック処理で2回連続通過信号を検知した場合にオンと判定される、図41に示すような処理が行なわれる。それにより、特別図柄の変動に使用する乱数等を入賞記憶数に対応したバッファに格納する処理が行なわれる。また、第1種始動口入賞記憶カウンタが更新(+1)され、賞球コマンド格納バッファに賞球個数コマンド(5個)が格納され、普通電動役物の作動中のみ、普通電動役物入賞個数カウンタを更新(+1)する処理がなされる。   First, the start port switch 17 (first type start port switch) will be described with reference to FIG. The start port switch 17 (the first type start port switch) is subjected to processing as shown in FIG. 41, which is determined to be on when a continuous passage signal is detected twice in the switch check processing. As a result, a process of storing a random number or the like used to change the special symbol in a buffer corresponding to the number of winning prizes is performed. In addition, the first type start opening prize storage counter is updated (+1), and the prize ball command storage buffer stores the prize ball number command (5). Processing to update (+1) the counter is performed.

次に、図42を用いて、カウントスイッチ23について説明する。カウントスイッチ23は、スイッチチェック処理で2回連続通過信号を検知した場合にオンと判定される。大入賞口が開口、すなわち、開閉板20の開放中のみ可変入賞球個数カウンタを更新(+1)する処理がなされ、賞球コマンド格納バッファに賞球個数コマンド(15個)を格納する処理がなされる。   Next, the count switch 23 will be described with reference to FIG. The count switch 23 is determined to be on when a continuous pass signal is detected twice in the switch check process. The variable winning ball number counter is updated (+1) only when the big winning opening is open, that is, when the opening / closing plate 20 is opened, and the processing of storing the winning ball number command (15) in the winning ball command storage buffer is performed. The

次に、図43を用いて、Vカウントスイッチ22(特定領域スイッチ)について説明する。Vカウントスイッチ22(特定領域スイッチ)は、スイッチチェック処理で2回連続通過信号を検知した場合にオンと判定される。特定領域の有効時間中のみスイッチ通過フラグに遊技球の特定領域通過を設定する処理がなされる。   Next, the V count switch 22 (specific area switch) will be described with reference to FIG. The V count switch 22 (specific area switch) is determined to be turned on when a continuous pass signal is detected twice in the switch check process. Only during the effective time of the specific area, processing for setting the specific area of the game ball in the switch passage flag is performed.

次に、図44を用いて、ゲートスイッチ12を説明する。ゲートスイッチ12は、スイッチチェック処理で2回連続通過信号を検知した場合にオンと判定される。それにより、普通図柄判定用乱数カウンタが抽出されて通過記憶数に応じた普通図柄判定用バッファに格納される。また、ゲート通過記憶カウンタを更新(+1)する処理がなされる。   Next, the gate switch 12 will be described with reference to FIG. The gate switch 12 is determined to be on when a continuous pass signal is detected twice in the switch check process. As a result, the normal symbol determination random number counter is extracted and stored in the normal symbol determination buffer corresponding to the number of stored passages. Further, a process of updating (+1) the gate passage storage counter is performed.

次に、図45を用いて、入賞口スイッチ24a(左袖入賞口スイッチ,右袖入賞口スイッチ)、入賞口スイッチ19a(左落し入賞口スイッチ,右落し入賞口スイッチ)について説明する。入賞口スイッチ24a(左袖入賞口スイッチ、右袖入賞口スイッチ)および入賞口スイッチ19a(左落し入賞口スイッチ,右落し入賞口スイッチ)は、それぞれスイッチチェック処理で2回連続通過信号を検知した場合にオンと判定される。それにより、賞球コマンド格納バッファに賞球個数コマンド(10個)が格納される。   Next, with reference to FIG. 45, the winning opening switch 24a (left sleeve winning opening switch, right sleeve winning opening switch) and winning opening switch 19a (left falling winning opening switch, right falling winning opening switch) will be described. The winning opening switch 24a (left sleeve winning opening switch, right sleeve winning opening switch) and winning opening switch 19a (left falling winning opening switch, right falling winning opening switch) each detected a continuous passing signal twice in the switch check process. Is determined to be on. As a result, the prize ball number command (10) is stored in the prize ball command storage buffer.

次に、図46を用いて、賞球個数カウントスイッチ301A,301Bについて説明する。賞球個数カウントスイッチ301A,301Bは、スイッチチェック処理で2回連続通過信号を検知した場合にオンと判定される。それにより、総賞球数格納バッファを1減算する処理がなされる。   Next, the winning ball number counting switches 301A and 301B will be described with reference to FIG. The award ball count switches 301A and 301B are determined to be turned on when a continuous pass signal is detected twice in the switch check process. Thereby, a process of subtracting 1 from the total number of winning balls storage buffer is performed.

次に、図47を用いて、満タンスイッチ48について説明する。満タンスイッチ48は、スイッチチェック処理で50回連続オン信号を検知した場合にオンと判定され、すなわち、余剰球受皿4が満タンであると判定され、1回でもオフ信号を検出した場合はオフと判定されるすなわち、余剰球受皿4が満タンでないと判定される。それにより、オンと判定された場合は払出停止コマンドが送信され、オフと判定された場合は払出停止解除コマンドが送信される。   Next, the full switch 48 will be described with reference to FIG. The full tank switch 48 is determined to be on when the continuous on signal is detected 50 times in the switch check process, that is, when the surplus ball receiving tray 4 is determined to be full and the off signal is detected even once. It is determined to be off, that is, it is determined that the surplus ball tray 4 is not full. Thereby, a payout stop command is transmitted when it is determined to be on, and a payout stop cancel command is transmitted when it is determined to be off.

次に、図48を用いて、球切れスイッチ167または球切れ検出機187a,187bについて説明する。球切れスイッチ167または球切れ検出機187a,187bは、スイッチチェック処理で250回連続オン信号を検知した場合にオンと判定され、30回連続オフ信号を検出した場合はオフと判定される。それにより、オン、すなわち、球切れ解消と判定された場合は払出停止解除コマンドが送信され、オフ、すなわち、球切れと判定された場合は払出停止コマンドが送信される。   Next, the ball break switch 167 or the ball break detectors 187a and 187b will be described with reference to FIG. The ball break switch 167 or the ball break detectors 187a and 187b are determined to be turned on when the switch check process detects 250 consecutive on signals, and are determined to be turned off when 30 consecutive turn off signals are detected. As a result, when it is determined that the ball is out, that is, when it is determined that the ball has been released, a payout stop cancel command is transmitted.

次に、図49および図50を用いて、主基板31で行われる処理のフローチャートを説明する。まず、図49を用いて、満タンチェック処理について説明する。満タンチェック処理においては、まず、満タンスイッチタイマのアドレスをポインタにセットする(SX269)。次に、満タンオフ指定値(00H)をセットする(SX270)。次に、ポインタの指す満タンスイッチタイマをロードする(SX271)。次に、満タンスイッチタイマと満タンスイッチオン判定値(50)とを比較する(SX272)。すなわち、満タンスイッチタイマの値<満タンスイッチオン判定値(50)を判別し、YESと判定されれば一旦満タンチェック処理を終了しから再び満タンチェック処理を繰り返すが、NOと判定されれば満タンオン指定値(01H)をセット(SX274)してから満タンチェック処理を終了する(SX273)。   Next, a flowchart of processing performed on the main substrate 31 will be described with reference to FIGS. 49 and 50. First, the full tank check process will be described with reference to FIG. In the full tank check process, first, the address of the full tank switch timer is set in the pointer (SX269). Next, a full tank off designation value (00H) is set (SX270). Next, the full switch timer pointed to by the pointer is loaded (SX271). Next, the full tank switch timer and the full tank switch on determination value (50) are compared (SX272). That is, the value of the full-tan switch timer <the full-tan switch on determination value (50) is discriminated, and if it is determined as YES, the full-tank check process is once ended and the full-tank check process is repeated again, but it is determined as NO. If this is the case, the full tank ON designated value (01H) is set (SX274), and then the full tank check process is terminated (SX273).

次に、図50を用いて球切れチェック処理を説明する。球切れチェック処理においては、まず、SX107で球切れスイッチタイマをロードする。球切れスイッチタイマは、球切れスイッチ187が「1」を連続して検出した回数(球有りを検出している期間)が格納される。なお、この「1」を連続して検出した回数、すなわち、1カウントは2msに相当する。球切れ検出スイッチ187が球有りを検出している場合には、SX108で、球切れスイッチタイマが「0」以外となっているため、SX116に進み、球切れスイッチオフ判定値(30)を球切れ解除スイッチタイマに設定する。球切れ解除スイッチタイマは、球切れスイッチ187のオフ検出により球切れのオフを認識するまでの回数(すなわち、球切れスイッチ187が球無しを検出している期間)が格納されている。なお、この回数、すなわち、1カウントは2msに相当する。SX117では、、球切れスイッチタイマのカウント値が「250」に達しているか否か(すなわち、球切れスイッチ187の球有り検出により、球有りと判定する期間が経過しているか否か)が判定され、「250」以外の値であればこの処理を終了する。また、球切れカウンタのカウント値が「250」でれば、球切れ検出期間の経過に基づき球有りと判定してSX119に進み、球切れフラグの状態を参照する。SX120で球切れフラグが「0」(すなわち、球有りと判定されている状態)である場合には、球切れチェック処理を終了する。球切れフラグが「0」以外(すなわち、球切れ状態であったが、球有りの検出により解消されたと判定した場合)であればSX121に進み、球切れフラグに「0」を設定し、SX122で球切れ解除のランプコマンドをランプ制御基板35に出力するための処理がなされる(SX122)。また、主基板31が払出を停止するためのコマンドを賞球球貸基板37(払出制御基板)に出力するための処理も行なわれる(SX123)。   Next, the ball break check process will be described with reference to FIG. In the ball-out check process, first, a ball-out switch timer is loaded at SX107. The ball break switch timer stores the number of times the ball break switch 187 has continuously detected “1” (a period during which a ball is detected). The number of times this “1” is detected continuously, that is, one count corresponds to 2 ms. If the ball break detection switch 187 detects the presence of a ball, since the ball break switch timer is other than “0” in SX108, the process proceeds to SX116, and the ball break switch off determination value (30) is set as the ball break switch. Set to the break release switch timer. The ball break release switch timer stores the number of times until the ball break switch 187 detects the ball break off by detecting the ball break switch 187 being turned off (that is, the period during which the ball break switch 187 detects no ball). This number of times, that is, 1 count corresponds to 2 ms. In SX117, it is determined whether or not the count value of the ball break switch timer has reached “250” (that is, whether or not a period for determining whether there is a ball has passed due to the ball break switch 187 being detected as having a ball). If the value is other than “250”, the process is terminated. If the count value of the ball breakage counter is “250”, it is determined that there is a ball based on the passage of the ball breakage detection period, and the process proceeds to SX119 to refer to the state of the ball breakage flag. If the ball break flag is “0” in SX120 (that is, it is determined that there is a ball), the ball break check process is terminated. If the ball break flag is other than “0” (that is, if it is determined that the ball has been broken but has been resolved by the presence of a ball), the process proceeds to SX121, the ball break flag is set to “0”, and SX122 Then, a process for outputting a lamp command for releasing the ball break to the lamp control board 35 is performed (SX122). Also, a process for outputting a command for the main board 31 to stop paying out to the winning ball rental board 37 (payout control board) is performed (SX123).

また、球切れスイッチ187が球無しを検出している場合には、球切れスイッチタイマに「0」が設定されているため、SX108において、球切れスイッチタイマが「0」であると判断され、SX109に進み、球切れフラグの状態が参照される。球切れフラグが「1」(すなわち、球切れスイッチ187が球切れを検出していて、さらに球切れであると判定されている状態)であれば、球切れチェック処理を終了する。球切れフラグが「0」(すなわち、球切れスイッチ187が球切れを検出しているが、未だ球切れであると判定していない状態)である場合には、SX111に進み、球切れ解除スイッチタイマを「1」減算する。球切れスイッチタイマにはSX116で「30」が設定されており、この値から「1」づつ減算する。減算の結果、SX112において球切れ解除スイッチタイマが「0」でない場合(すなわち、球切れスイッチ187により球切れを検出しているが未だ球切れ発生と判定する検出期間に達していない状態)には、SX113に進み、球切れフラグに球切れ発生を示すための球切れオン指定値(01H)が設定され、SX114で球切れ中であることを示すための球切れランプコマンドを主基板31からランプ制御基板35に送信するための処理がなされる。また、主基板31から賞球球貸基板(払出制御基板)37に払出停止を示すためのコマンドを送信するための処理も行なわれる。   When the ball break switch 187 detects that there is no ball, since the ball break switch timer is set to “0”, it is determined in SX108 that the ball break switch timer is “0”. Proceeding to SX109, the state of the ball break flag is referred. If the ball break flag is “1” (that is, a state where the ball break switch 187 has detected a ball break and is further determined to be a ball break), the ball break check process ends. If the ball break flag is “0” (that is, the ball break switch 187 has detected a ball break, but has not yet determined that the ball has run out), the process proceeds to SX111 and the ball break release switch Subtract 1 from the timer. In the ball break switch timer, “30” is set in SX116, and “1” is subtracted from this value. As a result of the subtraction, if the ball break release switch timer is not “0” in SX112 (that is, the ball break switch 187 has detected a ball break but has not yet reached the detection period for determining that a ball break has occurred). Then, the process proceeds to SX113, and a ball break on designation value (01H) for indicating the occurrence of a ball break is set in the ball break flag, and a ball break lamp command for indicating that a ball is being cut is issued from the main board 31 in SX114. Processing for transmitting to the control board 35 is performed. Further, processing for transmitting a command for indicating a payout stop from the main board 31 to the winning ball rental board (payout control board) 37 is also performed.

次に、図51〜図67を用いて、主基板31が行なう処理の詳細について説明する。
次に、図51を用いて、エラー処理について説明する。エラー処理においては、まず、エラーフラグのアドレスをポインタにセットする(SX132)。次に、ポインタの指すエラーフラグのカウントスイッチ断線エラービット位置(0)をクリアする(SX133)。次に、ポインタの指すエラーフラグのカウントスイッチ短絡エラービット位置(1)をクリアする(SX134)。次に、カウントスイッチタイマをロードする(SX135)。
Next, details of processing performed by the main substrate 31 will be described with reference to FIGS.
Next, error processing will be described with reference to FIG. In error processing, first, the address of the error flag is set in the pointer (SX132). Next, the count switch disconnection error bit position (0) of the error flag indicated by the pointer is cleared (SX133). Next, the count switch short-circuit error bit position (1) of the error flag indicated by the pointer is cleared (SX134). Next, the count switch timer is loaded (SX135).

次に、カウントスイッチタイマ(カウントスイッチ23が「1」(球の通過)を連続して検出した回数をカウントするタイマ)とカウントスイッチ断線エラー判定値(250)とを比較する(SX136)。カウントスイッチタイマとカウントスイッチ断線エラー判定値(250)との大小関係が判別され(SX137)、カウントスイッチタイマがカウントスイッチ断線エラー判定値(250)よりも小さければSX139に進み、カウントスイッチ短絡監視タイマ(カウントスイッチの短絡を連続して検出した回数をカウントするタイマ)をロードするが、カウントスイッチタイマがカウントスイッチ断線エラー判定値(250)よりも大きければ、SX138に進み、ポインタの指すエラーフラグのカウントスイッチ断線エラービット位置(0)をセットしてから、SX139に進む。   Next, the count switch timer (the timer that counts the number of times that the count switch 23 continuously detects “1” (pass of sphere)) is compared with the count switch disconnection error determination value (250) (SX136). The magnitude relationship between the count switch timer and the count switch disconnection error determination value (250) is determined (SX137). If the count switch timer is smaller than the count switch disconnection error determination value (250), the process proceeds to SX139, and the count switch short circuit monitoring timer (Timer that counts the number of times that the short circuit of the count switch has been detected continuously) is loaded. If the count switch timer is greater than the count switch disconnection error determination value (250), the process proceeds to SX138, and the error flag indicated by the pointer is set. After setting the count switch disconnection error bit position (0), the process proceeds to SX139.

次に、カウントスイッチ短絡開始タイマとカウントスイッチ短絡エラー判定値(1)とを比較する(SX140)。カウントスイッチ短絡監視タイマがカウントスイッチ短絡エラー判定値(1)よりも大きいか小さいかが判別され、カウントスイッチ短絡監視タイマがカウントスイッチ短絡エラー判定値(1)よりも大きければ、クリアデータ(00H)をセットする(SX142)。次に、クリアデータ(00H)をカウントスイッチタイマにストアする(SX143)。次に、ポインタの指すエラーフラグのカウントスイッチ短絡エラービット位置(1)をセットする(SX144)。   Next, the count switch short circuit start timer is compared with the count switch short circuit error determination value (1) (SX140). It is determined whether the count switch short circuit monitoring timer is larger or smaller than the count switch short circuit error determination value (1). If the count switch short circuit monitoring timer is larger than the count switch short circuit error determination value (1), the clear data (00H) Is set (SX142). Next, the clear data (00H) is stored in the count switch timer (SX143). Next, the count switch short-circuit error bit position (1) of the error flag indicated by the pointer is set (SX144).

また、SX141において、カウントスイッチ短絡監視タイマの値がカウントスイッチ短絡エラー判定値(1)よりも小さければ、SX142〜SX144までの処理を行なわずにSX145に進み、ポインタの指すエラーフラグをロードする。次に、エラーフラグの状態をフラグレジスタに反映する(SX146)。   In SX141, if the value of the count switch short circuit monitoring timer is smaller than the count switch short circuit error determination value (1), the process proceeds to SX145 without performing the processes from SX142 to SX144, and the error flag indicated by the pointer is loaded. Next, the state of the error flag is reflected in the flag register (SX146).

次に、エラー未検出か否かが判別される(SX147)。SX147においてYESであれば図53に示すSX151に進むが、SX147において、エラー未検出でなければ、遊技状態ランプバッファがエラーランプ(03H)と等しいかどうかが判別され、等しければエラー処理を処理を終了するが、等しくなければSX149に進み、エラーランプ(03H)をセットする。その後、SX150においてコマンドセット処理を行なってからエラー処理を終了する。エラーランプ(03H)を設定することで遊技領域7に設けられたランプがエラー時の態様で点灯する。   Next, it is determined whether or not an error has not been detected (SX147). If YES in SX147, the process proceeds to SX151 shown in FIG. 53. However, if no error is detected in SX147, it is determined whether or not the gaming state lamp buffer is equal to the error lamp (03H). If not, the process proceeds to SX149, and an error lamp (03H) is set. Thereafter, the command processing is performed at SX150, and then the error processing is terminated. By setting the error lamp (03H), the lamp provided in the game area 7 is turned on in an error mode.

次に、図52を用いて、図51のSX147において、YESと判定された場合の処理について説明する。SX151においては遊技状態ランプバッファ≠エラーランプ(03H)を判別する。SX151においてYESであればエラー処理を最初から繰り返し、SX151においてNOであればSX152に進みエラーランプ解除をセットする。その後、SX153においてコマンドセット処理がなされてからエラー処理を終了する。   Next, with reference to FIG. 52, a process when it is determined YES in SX147 of FIG. 51 will be described. In SX151, it is determined whether the game state lamp buffer ≠ error lamp (03H). If YES in SX151, the error process is repeated from the beginning. If NO in SX151, the process proceeds to SX152, and the error ramp cancellation is set. Thereafter, after the command set process is performed in SX153, the error process is terminated.

なお、アドレス07Hに対応するビット、データ内容、方向、論理および状態は図53に示すようになっている。   Note that the bit, data content, direction, logic, and state corresponding to the address 07H are as shown in FIG.

次に、図54を用いて、特別図柄プロセス処理を説明する。特別図柄プロセス処理においては、まず、エラーが発生したか否かが判別される(SX154)。エラーが発生していれば、特別図柄プロセス処理を終了するが、エラーが発生していなければSX155に進み、変動短縮タイマ減算処理を行なう。次に、始動口スイッチ17(第1種始動口スイッチ)タイマ(始動口スイッチ17が「1」(球の検出)を連続して検出した回数をカウントするタイマ)をロードする(SX156)。次に、SX157において始動口スイッチ17(第1種始動口スイッチ)タイマとスイッチオン判定値(2)とを比較する。   Next, the special symbol process will be described with reference to FIG. In the special symbol process, it is first determined whether or not an error has occurred (SX154). If an error has occurred, the special symbol process is terminated. If an error has not occurred, the process proceeds to SX155, and the fluctuation shortening timer subtraction process is performed. Next, a start port switch 17 (first type start port switch) timer (a timer that counts the number of times the start port switch 17 continuously detects “1” (detection of a sphere)) is loaded (SX156). Next, in SX157, the start port switch 17 (first type start port switch) timer and the switch-on determination value (2) are compared.

始動口スイッチ17(第1種始動口スイッチ)タイマ=スイッチオン判定値(2)であるか否かが判別され(SX158)、YESであればSX159に進み第1種始動口スイッチ通過処理がなされるが、SX158においてNOであれば、SX159の処理を行なわずSX160に進み特別図柄プロセスコードを決定する。   It is determined whether or not the start port switch 17 (first type start port switch) timer = switch-on determination value (2) (SX158). If YES, the process proceeds to SX159 and the first type start port switch passing process is performed. However, if NO in SX158, the process proceeds to SX160 without performing the process of SX159, and the special symbol process code is determined.

次に、図55に示すSX161〜SX170に示される処理のいずれか1つを行なう。SX161においては特別図柄通常処理がなされ、SX162においては特別図柄大当り判定処理がなされ、SX163においては、特別図柄停止図柄設定処理がなされ、SX164においては変動パターン設定処理がなされ、SX165においては特別図柄変動処理がなされ、SX166においては特別図柄停止処理がなされ、SX167においては大入賞口開放前処理がなされ、SX168においては大入賞口開放中処理がなされ、SX169においては、特定領域有効時間処理がなされ、SX170においては大当り終了処理がなされる。いずれの処理においても処理が終了した後は特別図柄プロセス処理を終了する。   Next, any one of the processes shown in SX161 to SX170 shown in FIG. 55 is performed. In SX161, special symbol normal processing is performed, in SX162, special symbol jackpot determination processing is performed, in SX163, special symbol stop symbol setting processing is performed, in SX164, variation pattern setting processing is performed, and in SX165, special symbol variation is performed. In SX166, a special symbol stop process is performed. In SX167, a pre-opening process for a special winning opening is performed. In SX168, a process for opening a large winning opening is performed. In SX169, a specific area effective time process is performed. In SX170, the big hit end processing is performed. In any process, after the process is finished, the special symbol process process is finished.

次に、図56を用いて、普通図柄プロセス処理を説明する。普通図柄プロセス処理においては、まず、エラーが発生したか否かが判別され(SX171)、YESであれば普通図柄プロセス処理を終了するが、NOであればSX172に進み、ゲートスイッチタイマ(ゲートスイッチ12が「1」(球の検出)を連続して検出した回数をカウントするタイマ)をロードする。次に、SX173においてゲートスイッチ12タイマとスイッチオン判定値(2)とを比較する。ゲートスイッチ12タイマ=スイッチオン判定値(2)であるか否かが判別され(SX174)、YESであればSX175においてゲートスイッチ通過処理がなされ、NOであればSX175の処理を行なわずSX176に進み普通図柄プロセスコードを設定する。   Next, the normal symbol process will be described with reference to FIG. In the normal symbol process, it is first determined whether or not an error has occurred (SX171). If YES, the normal symbol process ends. If NO, the process proceeds to SX172, where the gate switch timer (gate switch 12 is loaded with a timer that counts the number of times “1” (detection of a sphere) is detected continuously. Next, in SX173, the gate switch 12 timer is compared with the switch-on determination value (2). It is determined whether or not the gate switch 12 timer = switch-on determination value (2) (SX174). If YES, the gate switch passage process is performed in SX175. If NO, the process proceeds to SX176 without performing the process in SX175. Set the normal symbol process code.

次に、SX177においては普通図柄通常処理が行なわれ、SX178においては普通図柄判定処理が行なわれ、SX179においては普通図柄変動処理が行なわれ、SX180においては普通図柄停止処理が行なわれ、SX181においては普通電動役物作動処理が行なわれる。SX177〜SX181のそれぞれの処理においては、いずれか1の処理が選択して行なわれ、それぞれの処理が終了すれば普通図柄プロセス処理が最初から繰り返される。   Next, normal symbol normal processing is performed at SX177, normal symbol determination processing is performed at SX178, normal symbol variation processing is performed at SX179, normal symbol stop processing is performed at SX180, and SX181. Ordinary electric accessory operation processing is performed. In each of the processes SX177 to SX181, any one process is selected and performed, and when each process is completed, the normal symbol process is repeated from the beginning.

次に、図57を用いて、情報出力処理を説明する。情報出力処理においては、まず、情報バッファに初期値(00H)をセットする(SX182)。次に、始動口情報記憶カウンタのアドレスをセットする(SX183)。次に、始動口スイッチ17(第1種始動口スイッチ)タイマをロードする(SX184)。次に、始動口スイッチ17(第1種始動口スイッチ)タイマとスイッチオン判定値(2)とを比較する(SX185)。始動口スイッチ17(第1種始動口スイッチ)タイマがスイッチオン判定値(2)と異なるか否かが判別され(SX186)、NOであれば始動口情報記憶カウンタを1加算する(SX187)。次に、SX188において最大値(FFH)を超えたか否かが判別され、YESであればSX189に進み始動口情報記憶カウンタを1減算する。   Next, the information output process will be described with reference to FIG. In the information output process, first, an initial value (00H) is set in the information buffer (SX182). Next, the address of the start port information storage counter is set (SX183). Next, the start port switch 17 (first type start port switch) timer is loaded (SX184). Next, the start port switch 17 (first type start port switch) timer is compared with the switch-on determination value (2) (SX185). It is determined whether or not the start port switch 17 (first type start port switch) timer is different from the switch-on determination value (2) (SX186). If NO, the start port information storage counter is incremented by 1 (SX187). Next, in SX188, it is determined whether or not the maximum value (FFH) is exceeded. If YES, the process proceeds to SX189 and 1 is subtracted from the start port information storage counter.

また、SX186においてYESであればSX187、SX188およびSX189の処理を行なわずにSX190に進む。また、SX188においてもNOと判別された場合にはSX189の処理を行なわずSX190に進む。SX190においては始動口情報記憶タイマLOWと始動口情報記憶タイマHIをロードする。次に、ゼロフラグ=0であるか否かが判別され(SX191)、NOであればSX192に進みポインタの指す始動口情報記憶カウンタをロードする。次に、始動口情報記憶カウンタの状態をフラグレジスタに反映する(SX193)。   If YES in SX186, the process proceeds to SX190 without performing the processes of SX187, SX188, and SX189. If NO in SX188, the process proceeds to SX190 without performing the process of SX189. In SX190, the start port information storage timer LOW and the start port information storage timer HI are loaded. Next, it is determined whether or not zero flag = 0 (SX191). If NO, the process proceeds to SX192, and the starting port information storage counter pointed to by the pointer is loaded. Next, the state of the start port information storage counter is reflected in the flag register (SX193).

次に、ゼロフラグが「1」か否かが判別され(SX194)、YESであればSX206に進むが、NOであればSX195に進む。SX195においては、ポインタの指す始動口情報記憶カウンタを1減算する。次に、始動口情報動作時間(FAFAH)をセットする(SX196)。次に、SX197に進み始動口情報記憶タイマHIを比較値にセットする。   Next, it is determined whether or not the zero flag is “1” (SX194). If YES, the process proceeds to SX206, but if NO, the process proceeds to SX195. In SX195, 1 is subtracted from the start port information storage counter pointed to by the pointer. Next, the start port information operating time (FAFAH) is set (SX196). Next, proceeding to SX197, the start port information storage timer HI is set to a comparison value.

また、SX191においてYESと判定された場合にはSX197に進み始動口情報記憶タイマHIを比較値にセットする。次に、ゼロフラグが1か否かが判別され(SX198)、NOであれば比較値を1減算する(SX199)。次に、比較値を始動口情報記憶タイマHIにセットする(SX200)。次に、情報バッファの始動口情報出力ビット位置(0)をセットする(SX201)。また、SX198においてYESと判定された場合には、始動口情報記憶タイマLOWを比較値にセットする(SX202)。次に、比較値を1減算する(SX203)。次に、比較値を始動口情報記憶タイマLOWにセットする(SX204)。SX201またはSX204の処理が終了した後は、SX205に進み、始動口情報記憶タイマをストアする。   On the other hand, if YES is determined in SX191, the process proceeds to SX197, and the start port information storage timer HI is set to a comparison value. Next, it is determined whether or not the zero flag is 1 (SX198). If NO, 1 is subtracted from the comparison value (SX199). Next, the comparison value is set in the start port information storage timer HI (SX200). Next, the start port information output bit position (0) of the information buffer is set (SX201). If YES in SX198, the start port information storage timer LOW is set to a comparison value (SX202). Next, 1 is subtracted from the comparison value (SX203). Next, the comparison value is set in the start port information storage timer LOW (SX204). After the process of SX201 or SX204 is completed, the process proceeds to SX205, and the start port information storage timer is stored.

次に、ポインタを1加算する(SX206)。ポインタの指す特別図柄停止情報タイマをロードする(SX207)。次に、特別図柄停止情報タイマの状態をフラグレジスタに反映する(SX208)。次に、図58のSX209に進み、ゼロフラグが「1」か否かが判別される。SX209においてNOであれば、ポインタの指す特別図柄停止情報タイマを1減算する。次に、情報バッファの図柄確定回数1出力ビット位置(1)をセットする(SX211)。また、SX209においてYESと判別された場合には、SX210およびSX211の処理を行なわずにSX212に進む。SX212においてポインタを1加算する。次に、ポインタの指す普通図柄停止情報タイマをロードする(SX213)。   Next, 1 is added to the pointer (SX206). The special symbol stop information timer pointed to by the pointer is loaded (SX207). Next, the state of the special symbol stop information timer is reflected in the flag register (SX208). Next, the process proceeds to SX209 in FIG. 58, where it is determined whether or not the zero flag is “1”. If NO in SX209, the special symbol stop information timer indicated by the pointer is decremented by 1. Next, the design buffer count 1 output bit position (1) of the information buffer is set (SX211). If YES is determined in SX209, the process proceeds to SX212 without performing the processes in SX210 and SX211. In SX212, 1 is added to the pointer. Next, the normal symbol stop information timer pointed to by the pointer is loaded (SX213).

次に、普通図柄停止情報タイマの状態をフラグレジスタに反映する(SX214)。次に、ゼロフラグが「1」か否かが判別され(SX215)、NOであればポインタの指す普通図柄停止情報タイマを1減算する(SX216)。次に、SX217において、情報バッファの図柄確定回数2出力ビット位置(5)をセットする(SX217)。また、SX215においてYESと判別された場合にはSX216およびSX217を行なわずにSX218に進みポインタを1加算する。次に、ポインタの指す大当り中情報バッファをセットバッファにロードする(SX219)。   Next, the state of the normal symbol stop information timer is reflected in the flag register (SX214). Next, it is determined whether or not the zero flag is “1” (SX215). If NO, the normal symbol stop information timer indicated by the pointer is decremented by 1 (SX216). Next, in SX217, the symbol determination number 2 output bit position (5) of the information buffer is set (SX217). If YES is determined in SX215, the process proceeds to SX218 without performing SX216 and SX217, and the pointer is incremented by one. Next, the big hit information buffer pointed to by the pointer is loaded into the set buffer (SX219).

次に、セットバッファと情報バッファとの論理和をとる(SX220)。次に、セットバッファを情報バッファにセットする(SX221)。次に、状態チェック処理を行なう(SX222)。次に、ゼロフラグが「0」か否かが判別され(SX223)、「0」でなければSX224に進み、情報バッファをセットバッファにセットする。次に、SX225に進みセットバッファと確率変動出力ビットおよび大当り2出力ビットの論理和をとる。次に、セットバッファを情報バッファにセットする(SX226)。   Next, the logical sum of the set buffer and the information buffer is taken (SX220). Next, the set buffer is set in the information buffer (SX221). Next, a state check process is performed (SX222). Next, it is determined whether or not the zero flag is “0” (SX223). If it is not “0”, the process proceeds to SX224, and the information buffer is set in the set buffer. Next, the process proceeds to SX225, and a logical sum of the set buffer, the probability variation output bit, and the jackpot two output bits is obtained. Next, the set buffer is set in the information buffer (SX226).

また、SX223においてYESと判別された場合にはSX224、SX225、SX226の処理を行なわずにSX227に進み、ポインタを1加算する。次に、ポインタの指す普通電動役物作動情報バッファをセットバッファにロードする(SX228)。次に、セットバッファと情報バッファとの論理和をとる(SX229)。次に、セットバッファを情報バッファにセットする(SX230)。次に、賞球カウントスイッチタイマをロードする(SX231)。次に、賞球カウントスイッチタイマとスイッチオン判定値(2)とを比較する(SX232)。   If YES is determined in SX223, the process proceeds to SX227 without performing the processes of SX224, SX225, and SX226, and the pointer is incremented by one. Next, the ordinary electric accessory operation information buffer pointed to by the pointer is loaded into the set buffer (SX228). Next, the logical sum of the set buffer and the information buffer is taken (SX229). Next, the set buffer is set in the information buffer (SX230). Next, a prize ball count switch timer is loaded (SX231). Next, the prize ball count switch timer and the switch-on determination value (2) are compared (SX232).

次に、賞球カウントスイッチタイマとスイッチオン判定値(2)とが異なるか否かが判別され、異なれば後述する図59のSX243に進むが、賞球カウントスイッチタイマとスイッチオン判定値(2)とが同一であれば、SX234に進み賞球個数情報カウンタをロードする。次に、賞球個数情報カウンタを1加算する(SX235)。次に、賞球個数情報カウンタと「10」とを比較する(SX236)。次に、賞球個数情報カウンタが「10」より小さいか否かが判別され(SX237)、NOであればSX238に進み賞球情報カウンタをロードする。次に、賞球情報カウンタを1加算する(SX239)。次に、賞球情報カウンタをストアする(SX240)。次に、クリアデータ(00H)をセットする(SX241)。   Next, it is determined whether or not the prize ball count switch timer is different from the switch-on determination value (2). If they are different, the process proceeds to SX243 in FIG. ) Is the same, proceed to SX234 and load the prize ball number information counter. Next, 1 is added to the prize ball number information counter (SX235). Next, the prize ball number information counter is compared with “10” (SX236). Next, it is determined whether or not the prize ball number information counter is smaller than “10” (SX237). If NO, the process proceeds to SX238 and the prize ball information counter is loaded. Next, 1 is added to the prize ball information counter (SX239). Next, a prize ball information counter is stored (SX240). Next, clear data (00H) is set (SX241).

次に、SX242に進むが、SX237においてYESと判別されれば、SX238〜SX241の処理を行なわずにSX242にて、賞球個数情報カウンタをストアする。次に、図59のSX243に進み、賞球情報タイマをロードする。次に、賞球情報タイマの状態フラグをレジスタに反映する(SX244)。次に、ゼロフラグが「0」か否かが判別され(SX245)、NOであればSX246に進み賞球情報カウンタをロードする。次に、賞球情報カウンタの状態をフラグレジスタに反映する(SX247)。次に、ゼロフラグが「1」か否かが判別され(SX248)、NOであればSX249に進み、賞球情報カウンタを1減算する。   Next, the process proceeds to SX242. If YES is determined in SX237, the prize ball number information counter is stored in SX242 without performing the processes of SX238 to SX241. Next, proceeding to SX243 in FIG. 59, the prize ball information timer is loaded. Next, the status flag of the prize ball information timer is reflected in the register (SX244). Next, it is determined whether or not the zero flag is “0” (SX245). If NO, the process proceeds to SX246, and a prize ball information counter is loaded. Next, the state of the prize ball information counter is reflected in the flag register (SX247). Next, it is determined whether or not the zero flag is “1” (SX248). If NO, the process proceeds to SX249, and the prize ball information counter is decremented by 1.

次に、賞球情報カウンタをストアする(SX250)。次に、賞球情報動作時間(100)をセットする。次に、SX252に進むが、SX245においてYESと判別された場合にはSX246〜SX251の処理を行なわずにSX252に進み、賞球情報タイマと賞球情報オン出力判定値(51)とを比較する。次に、SX253に進み賞球情報タイマと賞球情報オン出力判定値(51)との大小関係が判別され、賞球情報タイマの方が大きければ、SX254に進み情報バッファの賞球情報出力ビット位置をセットする。   Next, a prize ball information counter is stored (SX250). Next, a prize ball information operating time (100) is set. Next, the process proceeds to SX252. If YES is determined in SX245, the process proceeds to SX252 without performing the processes of SX246 to SX251, and the prize ball information timer is compared with the prize ball information on output determination value (51). . Next, the process proceeds to SX253, and the magnitude relationship between the prize ball information timer and the prize ball information ON output determination value (51) is determined. If the prize ball information timer is larger, the process proceeds to SX254, and the prize ball information output bit of the information buffer. Set the position.

次に、SX254に進むが、SX253において、賞球情報タイマの方が小さければ、SX254の処理を行なわずにSX255に進み賞球情報タイマを1減算する。次に、賞球情報タイマをストアする(SX256)。次に、SX257に進むが、SX248においてYESと判別された場合には、SX249〜SX256の処理を行なわずにSX257に進み、賞球バッファを出力値にセットする。次に、出力値ポート5に出力した(SX258)後、出力情報処理を終了する。   Next, the process proceeds to SX254. If the prize ball information timer is smaller in SX253, the process proceeds to SX255 without performing the process of SX254, and 1 is subtracted from the prize ball information timer. Next, a prize ball information timer is stored (SX256). Next, the process proceeds to SX257. If YES is determined in SX248, the process proceeds to SX257 without performing the processes of SX249 to SX256, and the prize ball buffer is set to the output value. Next, after outputting to the output value port 5 (SX258), the output information processing is terminated.

次に、図60を用いて、賞球個数コマンド格納処理を説明する。賞球個数コマンド格納処理においては、まず、賞球コマンドテーブルのアドレスをコマンドポインタにセットする(SX277)。次に、入賞口スイッチ17(左袖入賞口スイッチ)タイマのアドレススイッチをチェックポインタにセットする(SX278)。次に、6を処理数にセットする(SX279)。次に、チェックポインタの指すスイッチタイマをロードする(SX280)。次に、スイッチタイマとスイッチオン判定値(02H)とを比較する(SX281)。   Next, the winning ball number command storing process will be described with reference to FIG. In the winning ball number command storing process, first, the address of the winning ball command table is set in the command pointer (SX277). Next, the address switch of the winning opening switch 17 (left sleeve winning opening switch) timer is set to the check pointer (SX278). Next, 6 is set as the number of processes (SX279). Next, the switch timer pointed to by the check pointer is loaded (SX280). Next, the switch timer and the switch-on determination value (02H) are compared (SX281).

次に、スイッチタイマがスイッチオン判定値(02H)と異なるか否かが判別され(SX282)、異なっていなければSX283に進み、コマンドポインタの指す賞球払出コマンドをセットする。次に、賞球払出コマンドを格納ポインタの指す賞球コマンド格納バッファにストアする(SX284)。次に、賞球コマンド格納バッファは最終バッファか否かが判別され、最終バッファであればSX286に進み賞球コマンド格納バッファ1をセットする。   Next, it is determined whether or not the switch timer is different from the switch-on determination value (02H) (SX282). If not, the process proceeds to SX283, and a prize ball payout command indicated by the command pointer is set. Next, a prize ball payout command is stored in the prize ball command storage buffer pointed to by the storage pointer (SX284). Next, it is determined whether or not the prize ball command storage buffer is the final buffer. If it is the final buffer, the process proceeds to SX286 and the prize ball command storage buffer 1 is set.

また、SX285においてNOであればSX286の処理を行なわずにSX287に進むが、SX282においても、YESであればSX283〜SX286の処理を行なわずにSX287に進む。次に、SX287においては、チェックポインタを1加算する。次に、コマンドポインタを1加算する(SX288)。次に、処理数を1減算し、処理数が「0」であるか否かが判別され、「0」でなければSX280に戻りSX280〜SX287の処理を繰返すが、SX289において処理数が「0」であれば賞球個数コマンド格納処理を終了する。   If NO in SX285, the process proceeds to SX287 without performing the process in SX286, but if YES in SX282, the process proceeds to SX287 without performing the processes in SX283 to SX286. Next, in SX287, 1 is added to the check pointer. Next, 1 is added to the command pointer (SX288). Next, 1 is subtracted from the number of processes, and it is determined whether or not the number of processes is “0”. If it is not “0”, the process returns to SX280 and repeats the processes of SX280 to SX287, but the number of processes is “0” in SX289. ", The prize ball number command storage process is terminated.

次に、図61を用いて、賞球個数減算処理を説明する。賞球個数減算処理においては、まず、賞球個数格納バッファを総賞球数にロードする(SX290)。次に、ゼロフラグが「1」か否かが判別されYESであれば賞球個数減算処理を終了するが、SX291においてNOであればSX292に進み、賞球カウントスイッチ301Aタイマをロードする(SX292)。次に、賞球カウントスイッチ301Aタイマとスイッチオン判定値(2)とを比較する(SX293)。   Next, the winning ball number subtraction process will be described with reference to FIG. In the winning ball number subtraction process, first, the winning ball number storage buffer is loaded to the total number of winning balls (SX290). Next, it is determined whether or not the zero flag is “1”. If YES, the prize ball number subtraction process is terminated. If NO in SX291, the process proceeds to SX292, and the prize ball count switch 301A timer is loaded (SX292). . Next, the prize ball count switch 301A timer is compared with the switch-on determination value (2) (SX293).

次に、賞球カウントスイッチ301Aタイマがスイッチオン判定値(2)と異なるか否かが判別され(SX294)、異なっていれば賞球個数減算処理を終了するが、賞球カウントスイッチ301Aタイマがスイッチオン判定値(2)と異なっていなければSX295に進み賞球数を1減算する。   Next, it is determined whether or not the prize ball count switch 301A timer is different from the switch-on determination value (2) (SX294). If the prize ball count switch 301A timer is different, the prize ball number subtraction process is terminated. If it is not different from the switch-on determination value (2), the process proceeds to SX295 and 1 is subtracted from the number of prize balls.

次に、総賞球数を総賞球数格納バッファにストアする(SX296)。次に、ゼロフラグが「0」か否かが判別され(SX297)、YESであれば賞球個数減算処理を終了するが、NOであればSX298に進みクリアデータ(00H)をセットする。次に、クリアデータ(00H)を賞球フラグにストアする(SX299)。次に、賞球ランプコマンド送信テーブルのアドレスをポインタにセットする(SX300)。次に、コマンドセット処理を行なった(SX301)後、賞球個数コマンド減算処理を終了する。   Next, the total number of winning balls is stored in the total winning ball number storage buffer (SX296). Next, it is determined whether or not the zero flag is “0” (SX297). If YES, the winning ball number subtraction process is terminated. If NO, the process proceeds to SX298 and clear data (00H) is set. Next, the clear data (00H) is stored in the prize ball flag (SX299). Next, the address of the prize ball lamp command transmission table is set in the pointer (SX300). Next, after the command set process is performed (SX301), the winning ball number command subtraction process is terminated.

次に、図62を用いて、スイッチ処理について説明する。スイッチ処理においては、まず、入力ポートに「0」を入力する(SX124)。次に、スイッチチェック数(8)をセットする(SX125)。次に、入賞口24(左袖入賞口)スイッチタイマのアドレスをポインタにセットする(SX126)。次に、スイッチチェック処理を行なう(SX127)。次に、入力ポート1を入力する(SX128)。次に、スイッチチェック数(4)をセットする(SX129)。次に、賞球カウントスイッチ301Aタイマのアドレスをポインタにセットする(SX130)。次に、スイッチチェック処理を行なった(SX131)後、スイッチ処理を終了する。   Next, the switch process will be described with reference to FIG. In the switch process, first, “0” is input to the input port (SX124). Next, the number of switch checks (8) is set (SX125). Next, the address of the winning opening 24 (left sleeve winning opening) switch timer is set in the pointer (SX126). Next, a switch check process is performed (SX127). Next, the input port 1 is input (SX128). Next, the number of switch checks (4) is set (SX129). Next, the address of the prize ball count switch 301A timer is set in the pointer (SX130). Next, after performing a switch check process (SX131), the switch process is terminated.

なお、図62において説明した入力ポート0および入力ポート1のそれぞれのビットに対応するデータ内容、方向、論理および状態は図63に示すようになっている。   The data contents, directions, logics, and states corresponding to the respective bits of input port 0 and input port 1 described in FIG. 62 are as shown in FIG.

次に、図64を用いて、スイッチチェック処理を説明する。スイッチチェック処理においては、まず、ポート入力データを比較値にセットする(SX259)。次に、クリアデータ(00H)をセットする(SX260)。次に、比較値を右にシフトする(SX261)。次に、キャリフラグが「0」か否かが判別され(SX262)、NOであればSX263に進みスイッチタイマのアドレスが指すスイッチタイマをロードする(SX263)。   Next, the switch check process will be described with reference to FIG. In the switch check process, first, port input data is set to a comparison value (SX259). Next, clear data (00H) is set (SX260). Next, the comparison value is shifted to the right (SX261). Next, it is determined whether or not the carry flag is “0” (SX262). If NO, the process proceeds to SX263, and the switch timer indicated by the address of the switch timer is loaded (SX263).

次に、スイッチタイマを1減算する(SX264)。次に、スイッチフラグが「0」か否かが判別され、「0」であればSX267に進むが、「0」でなければSX266においてスイッチタイマをスイッチタイマのアドレスにストアしてからSX267に進む。SX267においてはスイッチタイマのアドレスを1加算する。次に、処理数を1減算し、処理数が「0」か否かが判別され(SX268)、「0」であればスイッチチェック処理を終了するが、「0」でなければSX260に戻りSX261〜SX268の処理が再び行なわれる。   Next, 1 is subtracted from the switch timer (SX264). Next, it is determined whether or not the switch flag is “0”. If “0”, the process proceeds to SX 267, but if not “0”, the switch timer is stored in the address of the switch timer in SX 266 and then proceeds to SX 267. . In SX267, 1 is added to the address of the switch timer. Next, 1 is subtracted from the number of processes, and it is determined whether or not the number of processes is “0” (SX268). If “0”, the switch check process is terminated, but if it is not “0”, the process returns to SX260 and returns to SX261. The processes of .about.SX268 are performed again.

次に、図65を用いて、カウントスイッチ作動処理を説明する。カウントスイッチ作動処理においては、まず、カウントスイッチ23タイマをロードする(SX302)。次に、カウントスイッチ23タイマとスイッチオン判定値(2)とを比較する(SX303)。次に、カウントスイッチ23タイマとスイッチオン判定値(2)とが異なるか否かが判別され(SX304)、異なっていればカウントスイッチ作動処理を終了するが、異なっていなければSX305に進み大入賞口入賞個数カウンタを1加算する(SX305)。   Next, the count switch operation process will be described with reference to FIG. In the count switch operation process, first, the count switch 23 timer is loaded (SX302). Next, the count switch 23 timer is compared with the switch-on determination value (2) (SX303). Next, it is determined whether or not the count switch 23 timer is different from the switch-on determination value (2) (SX304). If they are different, the count switch operation processing is terminated. The winning prize counter is incremented by 1 (SX305).

次に、大入賞口入賞個数カウンタと大入賞口入賞個数最大値(10)とを比較する(SX306)。次に、大入賞口個数カウンタが大入賞口入賞個数最大値(10)よりも小さいか否かが判別され(SX307)、NOであればSX308に進みクリアデータ(0000H)をセットする。次に、クリアデータ(0000H)を特別図柄プロセスタイマにストアし処理を終了するが、SX307においてYESと判別された場合には、SX310に進みカウント入賞コマンド送信テーブルのアドレスをポインタにセットする(SX310)。次に、コマンドセット処理を行なう(SX311)ことによりカウントスイッチ作動処理を終了する。   Next, the special winning opening winning number counter is compared with the large winning opening winning number maximum value (10) (SX306). Next, it is determined whether or not the special winning opening number counter is smaller than the maximum winning prize number (10) (SX307). If NO, the process proceeds to SX308 and clear data (0000H) is set. Next, the clear data (0000H) is stored in the special symbol process timer and the process is terminated. If YES is determined in SX307, the process proceeds to SX310, and the address of the count winning command transmission table is set in the pointer (SX310). ). Next, the command switch process is performed (SX311), thereby terminating the count switch operation process.

次に、図66を用いて、普通電動役物入賞カウント処理を説明する。普通電動役物入賞カウント処理においては、まず、第1種始動口スイッチ(始動口スイッチ17)タイマをロードする(SX312)。次に、始動口スイッチ(第1種始動口スイッチ)タイマとスイッチオン判定値(2)とを比較する(SX313)。始動口スイッチ17(第1種始動口スイッチ)タイマがスイッチオン判定値(2)と異なるか否かが判別され(SX314)、異なっていれば普通電動役物入賞カウント処理を終了するが、異なっていなければSX315に進み普通電動役物入賞個数カウンタを1加算する。   Next, with reference to FIG. 66, the ordinary electric accessory winning count process will be described. In the ordinary electric accessory winning count process, first, a first type start port switch (start port switch 17) timer is loaded (SX312). Next, the start port switch (first type start port switch) timer and the switch-on determination value (2) are compared (SX313). It is determined whether or not the start port switch 17 (first type start port switch) timer is different from the switch-on determination value (2) (SX314). If not, the process proceeds to SX315, and 1 is added to the counter for the number of winnings for the ordinary electric accessory.

次に、普通電動役物入賞個数カウンタと普通電動役物入賞個数最大値(8)とを比較する(SX316)。普通電動役物入賞個数カウンタが普通電動役物入賞個数最大値(8)よりも小さいか否かが判別され(SX317)、小さければ普通電動役物入賞カウント処理を繰り返すが、小さくなければSX319に進みクリアデータ(0000H)をセットする。次に、クリアデータ(0000H)をセットする。これにより、始動口15に設けられた普通電動役物の作動が終了する。次に、クリアデータ(0000H)を普通図柄プロセスタイマにストアする(SX320)。その普通電動役物入賞カウント処理を終了する。   Next, the ordinary electric accessory winning number counter is compared with the ordinary electric accessory winning number maximum value (8) (SX316). It is determined whether or not the ordinary electric accessory winning number counter is smaller than the ordinary electric accessory winning number maximum value (8) (SX317). If it is smaller, the ordinary electric accessory winning count process is repeated, but if not smaller, the process proceeds to SX319. Advance clear data (0000H) is set. Next, clear data (0000H) is set. As a result, the operation of the ordinary electric accessory provided at the start port 15 ends. Next, the clear data (0000H) is stored in the normal symbol process timer (SX320). The ordinary electric accessory winning count process is terminated.

次に、図67に基づいて、特定領域スイッチ(Vカウントスイッチ22)通過チェック処理を説明する。Vカウントスイッチ22(特定領域スイッチ)通過チェック処理においては、まず、Vカウントスイッチ22(特定領域スイッチ)タイマのアドレスをポインタにセットする(SX321)。次に、Vカウントスイッチ(特定領域スイッチ)タイマとスイッチオン判定値(2)とを比較する(SX322)。Vカウントスイッチ22(特定領域スイッチ)タイマがスイッチオン判定値(2)と異なるか否かが判別され、異なっていればVカウントスイッチ22(特定領域スイッチ)通過チェック処理を終了するが、異なっていなければSX324に進み特定領域通過フラグをロードする(SX324)。   Next, the specific area switch (V count switch 22) passage check process will be described with reference to FIG. In the V count switch 22 (specific area switch) passage check process, first, the address of the V count switch 22 (specific area switch) timer is set in the pointer (SX321). Next, the V count switch (specific area switch) timer is compared with the switch-on determination value (2) (SX322). It is determined whether or not the V count switch 22 (specific area switch) timer is different from the switch-on determination value (2). If the timer is different, the V count switch 22 (specific area switch) passage check process is terminated. If not, the process proceeds to SX324 and a specific area passing flag is loaded (SX324).

次に、特定領域通過フラグとVカウントスイッチ22(特定領域スイッチ)通過有り指定値(02H)とを比較する(SX325)。次に、特定領域通過フラグが特定領域スイッチ通過有り指定値(02H)と同一か否かが判別され同一であればVカウントスイッチ22(特定領域スイッチ)通過チェック処理を終了するが、同一でなければSX327へ進み、Vカウントスイッチ22(特定領域スイッチ)通過有り指定値(01H)をポインタの指す特定領域通過フラグにストアする。次に、ポート6バッファをロードする(SX328)。次に、大入賞口内誘導板ソレノイド出力ビットをクリアする(SX329)。次に、ポート6バッファにストアした(SX330)後、Vカウントスイッチ22(特定領域スイッチ)通過チェック処理を終了する。   Next, the specific area passing flag is compared with the V count switch 22 (specific area switch) passing specified value (02H) (SX325). Next, it is determined whether or not the specific area passing flag is the same as the specific area switch passing specified value (02H). If it is the same, the V count switch 22 (specific area switch) passing check process is terminated. In step 327, the V count switch 22 (specific area switch) passing specified value (01H) is stored in the specific area passing flag indicated by the pointer. Next, the port 6 buffer is loaded (SX328). Next, the special winning opening guide plate solenoid output bit is cleared (SX329). Next, after storing in the port 6 buffer (SX330), the V count switch 22 (specific area switch) passage check process is terminated.

上記のような本実施の形態のパチンコ遊技機によれば、以下のような効果がある。満タンスイッチ48の検出信号の出力の判定においては、50回連続して検出有りと判定されれば(図49のSX273においてYES)、満タン状態であるとみなして、満タンオン指定値(01H)をセットし、球切れ検出スイッチ167または球切れスイッチ187a,187bの検出信号の出力の判定においては、250回連続して検出有りと判定されれば(図50のSX118においてNO)、球切れ状態であるとみなして、球切れフラグをロードする。   The pachinko gaming machine according to the present embodiment as described above has the following effects. In the determination of the output of the detection signal of the full tank switch 48, if it is determined that there is detection for 50 consecutive times (YES in SX273 in FIG. 49), it is considered that the full tank is in a full state, and the full tank on designated value (01H ) Is set, and in the determination of the detection signal output of the ball break detection switch 167 or the ball break switches 187a and 187b, if it is determined that there is detection for 250 consecutive times (NO in SX118 in FIG. 50), the ball breaks Assuming it is in a state, load the ball-out flag.

そのため、遊技球タンク38、誘導樋39または余剰球受皿4において貯留されているパチンコ球の状態がわずかに変化するだけでもON−OFFを繰返してしまうことがある球切れ検出スイッチ167、球切れスイッチ187または満タンスイッチ48に、500ms,100ms,60msのような一瞬の遊技球の移動のようなものではなく比較的長い時間において検出信号の出力があった場合にその後の処理を開始させることができる。その結果、球切れまたは満タンを報知する処理を行なう場合に、短い一瞬の検出信号の出力によって誤って警報を出してしまうことを防止することができる。   Therefore, a ball breakage detection switch 167, a ball breakage switch, which may be repeatedly turned on and off even if the state of the pachinko balls stored in the game ball tank 38, the guide basket 39 or the surplus ball tray 4 slightly changes. If the detection signal is output in a relatively long time rather than the instantaneous movement of the game ball such as 500 ms, 100 ms, or 60 ms, the subsequent processing is started in the 187 or full switch 48. it can. As a result, it is possible to prevent an alarm from being erroneously issued due to a short instantaneous output of a detection signal when performing processing for notifying a ball break or full.

また、カウントスイッチ23は、検出信号の検出出力が250回検出有りと判定された場合(図51のSX137においてNO)に、断線エラーが発生していると判みなし、検出信号の検出出力が1回検出有りと判定された場合(図51のSX141においてNO)に、短絡エラーが発生しているとみなし、また、検出信号の検出出力が2回検出有りとなった場合(図65のSX304においてNO)に、大入賞個数カウンタを1加算する。   Further, the count switch 23 determines that a disconnection error has occurred when the detection output of the detection signal is determined to be detected 250 times (NO in SX137 of FIG. 51), and the detection output of the detection signal is 1. If it is determined that the detection has been detected (NO in SX141 in FIG. 51), it is considered that a short circuit error has occurred, and if the detection output of the detection signal has been detected twice (in SX304 in FIG. 65). NO) is incremented by 1 for the winning prize counter.

そのため、カウントスイッチ23による遊技球の検出では、断線エラー検出にエラーおいては、一瞬の検出出力によって断線エラーを誤報知してしまうような不都合を防止しながら、短絡エラーにおいては、一瞬の検出によって短絡に対する処置をとることができ、また、大入賞があれば一瞬にして大入賞に対応した球の払出を行なうことができる。   For this reason, in the detection of the game ball by the count switch 23, in the case of an error in the disconnection error detection, while preventing the inconvenience of erroneously reporting the disconnection error by the instantaneous detection output, in the case of a short circuit error, the instantaneous detection Can take measures against a short circuit, and if there is a big prize, a ball corresponding to the big prize can be paid out in an instant.

また、始動口に入賞した遊技球の入賞を検出する始動口スイッチ17においては、検出信号の検出出力が2回検出有りと判定された場合、すなわち、図54のSX158においてYESの場合には、始動入賞があったとみなして第1種始動口通過処理を開始し、また、図57のSX186においてNOの場合には、始動記憶カウンタを1加算し、さらに、図66のSX314においてNOの場合には、普通電動役物入賞個数カウンタを1加算する。   In addition, in the start port switch 17 that detects the winning of the game ball won in the start port, when the detection output of the detection signal is determined to be detected twice, that is, in the case of YES in SX158 of FIG. 54, The first type start port passage processing is started assuming that there has been a start prize, and if NO in SX186 in FIG. 57, the start storage counter is incremented by 1, and if NO in SX314 in FIG. 66, Adds 1 to the counter counter for the number of winnings for the ordinary electric accessory.

このように、始動口に入賞した入賞球を検出する始動口スイッチ17の検出においては、2msごとに検出信号を判定する処理において2回連続して検出有りと判定されれば、すなわち、2msというわずかの間でも検出出力があれば、入賞検出に基づく処理が開始されるため、入賞検出に基づく処理の遅れによって遊技者に不満を生じさせることを防止することができる。   As described above, in the detection of the start port switch 17 that detects a winning ball won at the start port, if it is determined that there is detection twice in the process of determining the detection signal every 2 ms, that is, 2 ms. If there is a detection output even for a short time, processing based on winning detection is started, so that it is possible to prevent the player from being dissatisfied due to a delay in processing based on winning detection.

また、ゲートスイッチ12においても、検出信号の検出出力が2回検出有りと判定された場合(図56のSX174においてYES)に、すなわち、2msというわずかの間でも検出出力があれば、遊技球がゲートを通過したとみなしてゲートスイッチ通過処理を行なうため、ゲート通過に基づく処理の遅れによって遊技者に不満を生じされることを防止することができる。   Also in the gate switch 12, if it is determined that the detection output of the detection signal is detected twice (YES in SX174 in FIG. 56), that is, if there is a detection output even for a short period of 2 ms, the game ball is Since it is assumed that the gate has been passed and the gate switch passage processing is performed, it is possible to prevent the player from being dissatisfied due to a delay in processing based on the gate passage.

また、賞球カウントスイッチ301Aは、検出信号の検出出力が2回検出有りと判定された場合に、図58のSX233においてNOであれば、賞球個数カウンタをロードし、図61のSX294においてNOであれば、総賞球数を1減算する。   If the detection output of the detection signal is determined to be detected twice if NO in SX233 in FIG. 58, the prize ball count switch 301A loads the prize ball counter, and NO in SX294 in FIG. If so, 1 is subtracted from the total number of winning balls.

それにより、賞球情報となる賞球個数を即座に計算できるとともに、メモリ内の総賞球数を即座に減算するため、全ての賞球が払出されれば払出モータの回転を即座に停止することができる。   As a result, the number of prize balls used as prize ball information can be calculated immediately, and the total number of prize balls in the memory is immediately subtracted. Therefore, when all prize balls are paid out, the rotation of the payout motor is immediately stopped. be able to.

また、入賞口スイッチ19a,24aは、検出信号の検出出力が2回検出有りと判定された場合(図60のSX282においてNO)、払出コマンドをセットするため、入賞後即座に景品球が払出される処理に入ることによって、景品球の払出の遅れを原因として遊技者に不満を抱かせることを防止できる。   In addition, when it is determined that the detection output of the detection signal has been detected twice (NO in SX282 in FIG. 60), the prize opening switches 19a and 24a set the payout command so that the prize ball is paid out immediately after winning. By entering the process, it is possible to prevent the player from being dissatisfied due to the delay in paying out the prize balls.

さらに、Vカウントスイッチ22においても、検出信号の検出出力が2回検出有りと判定された場合(図67のSX323においてNO)に、特定領域フラグをロードするため、V入賞があれば即座にV入賞後の処理を行なうため、開閉板20の開成の遅れにより遊技者に不満を生じさせることを防止することができる。   Further, the V count switch 22 also loads the specific area flag when it is determined that the detection output of the detection signal is detected twice (NO in SX323 in FIG. 67). Since the process after winning is performed, it is possible to prevent the player from being dissatisfied due to the delay in opening the opening / closing plate 20.

課題を解決するための手段の具体例Specific examples of means for solving the problem

(1) パチンコ球により、遊技に用いる遊技媒体が構成されている。ゲートスイッチ12、始動口スイッチ17、カウントスイッチ23、Vカウントスイッチ22、入賞口スイッチ19a,24a、入賞検出スイッチ99、球切れ検出ッチ167,球切れスイッチ187a,187bまたは満タンスイッチ48、賞球カウントスイッチ301Aまたは球貸しカウントスイッチ301Bにより、前記遊技媒体を検出した場合に遊技媒体検出信号を出力する遊技媒体検出手段が構成されている。SX158,SX174,SX186,SX233,SX282,SX294,SX304,SX314,SX323により、前記遊技媒体検出信号が第1の所定期間(たとえば、2ms)出力されたことに応じて遊技媒体の払出に関連した処理を実行する遊技媒体検出判定手段が構成されている。図49のSX273,図50のSX108、前記遊技媒体の払出の可否を判定するために用いられる信号を出力する払出可否状態検出手段が構成されている。図49のSX273,図50のSX118により、該払出可否状態検出手段が出力する信号に基づき、払出が不能であるか否かを判定する払出不能判定手段が構成されている。前記払出不能判定手段は、前記払出可否状態検出手段が出力する払出の不能を示す信号を前記第1の所定期間よりも長い第2の所定期間(たとえば、500ms,100ms)検出した場合に、前記遊技媒体の払出が不能である旨の判定をするとともに、前記遊技媒体の払出を不能とするための処理を実行する(SX274,SX118,SX120,SX112,SX121〜SX123S)。   (1) A pachinko ball constitutes a game medium used for the game. Gate switch 12, start port switch 17, count switch 23, V count switch 22, winning port switch 19a, 24a, winning detection switch 99, out of ball detection switch 167, out of ball switch 187a, 187b or full switch 48, award The ball count switch 301A or the ball lending count switch 301B constitutes game medium detection means for outputting a game medium detection signal when the game medium is detected. SX158, SX174, SX186, SX233, SX282, SX294, SX304, SX314, SX323, processing related to payout of game media in response to the output of the game media detection signal for a first predetermined period (for example, 2 ms) The game medium detection determination means for executing is configured. SX273 in FIG. 49, SX108 in FIG. 50, payout availability state detecting means for outputting a signal used for determining whether or not the game medium can be paid out is configured. 49 and SX118 in FIG. 50 constitute payout impossibility determining means for determining whether or not payout is impossible based on a signal output from the payable / impossible state detecting means. The payout impossible determining means detects the signal indicating the payout impossible output from the payable / impossible state detecting means when a second predetermined period (for example, 500 ms, 100 ms) longer than the first predetermined period, A determination is made that the game medium cannot be paid out, and a process for making the game medium payout impossible is executed (SX274, SX118, SX120, SX112, SX121 to SX123S).

(2) 前記遊技媒体の払出に関連した処理は、前記遊技媒体の払出数量を指定する情報(図18の賞球個数を指定する払出制御コマンドF0XX(H))を出力するための処理を含んでいる。   (2) The processing related to payout of the game medium includes processing for outputting information (payout control command F0XX (H) specifying the number of prize balls in FIG. 18) specifying the payout amount of the game medium. It is out.

(3) 前記遊技媒体の払出を不能とする処理は、前記遊技媒体の払出の停止を指令する情報(図18の払出可能状態を指定する払出制御コマンドFF00(H))を出力するための処理を含んでいる。   (3) The process for disabling the game medium payout is a process for outputting information (payout control command FF00 (H) for designating a payout enable state in FIG. 18) for commanding stop of the game medium payout. Is included.

(4) 可変入賞球装置19または始動電動役物15により、遊技者にとって有利な第1の状態と遊技者にとって不利な第2の状態とに制御可能な可変入賞球装置が構成されている。前記遊技媒体検出手段は、遊技者にとって有利な第1の状態(たとえば、開閉板20の開放状態)と遊技者にとって不利な第2の状態(通常状態)とに制御可能な可変入賞球装置に入賞した遊技媒体の通過を検出する。   (4) The variable winning ball apparatus 19 or the starting electric accessory 15 constitutes a variable winning ball apparatus that can be controlled in a first state advantageous to the player and a second state unfavorable to the player. The game medium detection means is a variable winning ball apparatus that can be controlled in a first state advantageous to the player (for example, an open state of the opening / closing plate 20) and a second state unfavorable to the player (normal state). The passage of the winning game medium is detected.

(5) 球切れ検出スイッチ187により、払出すための遊技媒体の状態を検出する遊状態検出手段が構成されている(遊技球タンク38、誘導樋39における球切れ状態を検出する)。前記払出可否状態検出手段は、前記第1遊技媒体状態検出手段による前記遊技媒体の状態の検出に基づいて前記遊技媒体の払出が不能である旨の判定を行なう(図50のSX113〜SX115)。   (5) The ball break detection switch 187 constitutes a game state detection means for detecting the state of the game medium to be paid out (detects a ball break state in the game ball tank 38 and the guide basket 39). The payout availability state detecting means determines that the game medium cannot be paid out based on detection of the state of the game medium by the first game medium state detecting means (SX113 to SX115 in FIG. 50).

(6) 前記払出不能判定手段は、前記遊技媒体状態検出手段が第1の所定時間よりも長い第3の所定時間(250回×2ms)連続して遊技媒体の払出が不能であることを示す信号を出力しない場合に、前記遊技媒体の払出の停止を解除するための処理を実行する(SX108,SX118,SX120,SX123)(球払出停止コマンド出力処理)。   (6) The payout impossibility determining means indicates that the game medium state detecting means is unable to pay out the game medium continuously for a third predetermined time (250 times × 2 ms) longer than the first predetermined time. When no signal is output, processing for canceling the stop of payout of the game medium is executed (SX108, SX118, SX120, SX123) (ball payout stop command output processing).

(7) 満タン検出スイッチ48により、払出された後に貯留される遊技媒体の貯留状態を検出する第2遊技媒体状態検出手段が構成されている(余剰球受皿4の満タン状態を検出する)。前記払不能判定手段は前記第2遊技媒体状態検出手段による前記遊技媒体の貯留状態の検出に基づいて前記遊技媒体の払出が不能である旨の判定を行なう(図49のSX273)。   (7) The second game medium state detecting means for detecting the storage state of the game medium stored after being paid out is constituted by the full tank detection switch 48 (detects the full tank state of the surplus ball receiving tray 4). . The non-payable determination means determines that the game medium cannot be paid out based on detection of the storage state of the game medium by the second game medium state detection means (SX273 in FIG. 49).

(8) 前記払出不能判定手段は、前記第2遊技媒体状態検出手段が遊技媒体の払出が不能であることを示す信号を出力しない場合には(SX273においてYES)、前記遊技媒体の払出の停止を解除するための処理を実行する(SX270)。   (8) When the second game medium state detection means does not output a signal indicating that the game medium cannot be paid out (YES in SX273), the payout impossibility determining means stops the payout of the game medium. A process for canceling is executed (SX270).

(9) 主基板31により、遊技を制御する遊技制御手段が構成されている。賞球球貸基板37により、前記遊技制御手段から送信された信号に基づいて遊技媒体の払出を制御する遊技媒体払出制御手段が構成されている。前記払出可否状態検出手段が出力する信号は遊技制御手段に入力される。   (9) The main board 31 constitutes game control means for controlling the game. The game ball payout control means for controlling the payout of the game medium based on the signal transmitted from the game control means is constituted by the winning ball lending board 37. A signal output from the payout availability state detection means is input to the game control means.

(10) 前記遊技媒体検出手段は、遊技価値として付与された遊技媒体を検出し(賞球カウントスイッチ301AがON)、前記遊技媒体検出手段が出力する信号は、前記遊技制御手段および払出制御手段の双方に入力される。   (10) The game medium detection means detects a game medium given as a game value (the prize ball count switch 301A is ON), and the signals output by the game medium detection means are the game control means and the payout control means. Are input to both.

(11) コンデンサ916により、遊技機に供給される電源が断たれた場合において(停電時)、前記遊技媒体検出信号が前記第1の所定期間出力されたことに応じて付与される遊技媒体の数量に関わる記憶内容を保持する記憶内容保持手段が構成されている。   (11) When the power supplied to the gaming machine is cut off by the capacitor 916 (at the time of a power failure), the gaming medium to be given in response to the gaming medium detection signal being output for the first predetermined period Storage content holding means for holding the storage content related to the quantity is configured.

なお、今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなく特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。   The embodiment disclosed this time should be considered as illustrative in all points and not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the description above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.

課題を解決するための手段の具体例の効果Effects of specific examples of means for solving the problem

請求項1に記載の本発明によれば、以下の効果がある。本発明によれば、払出不能判定手段は、遊技媒体欠乏状態検出手段が出力する払出の不能を示す信号を第1の所定期間よりも長い第2の所定期間出力したとき、または、遊技媒体満タン状態検出手段が出力する払出の不能を示す信号を第1の所定期間よりも長い第3の所定期間出力したときに、遊技媒体の払出が不能である旨の判定をするとともに、遊技媒体の払出を不能とするための処理を実行する。そのため、第1の所定期間、第2の所定期間および第3の所定期間を、用途に応じた適当な期間に設定すれば、それぞれの用途に応じた適切な検出期間による遊技媒体の検出が可能となり、具体的に以下のような効果がある。   According to the first aspect of the present invention, the following effects can be obtained. According to the present invention, the payout impossibility determining means outputs a signal indicating that payout is impossible, outputted from the game medium deficiency state detecting means, for a second predetermined period longer than the first predetermined period, or when the game medium is full. When the signal indicating the inability to pay out is output from the tongue state detecting means for a third predetermined period longer than the first predetermined period, it is determined that the game medium cannot be paid out, and A process for making the payout impossible is executed. Therefore, if the first predetermined period, the second predetermined period, and the third predetermined period are set to appropriate periods according to the use, it is possible to detect the game medium with an appropriate detection period according to each use. Specifically, there are the following effects.

すなわち、たとえば、遊技媒体の状態がわずかに変化するだけで遊技媒体欠乏状態検出手段が払出すための遊技媒体が欠乏したと誤検出する不都合、および、遊技媒体満タン状態検出手段が遊技媒体の貯留状態が満タンになったと誤検出する不都合を、防止することができる。   That is, for example, the inconvenience of erroneously detecting that the game medium deficient state detecting means is insufficient for the game medium deficiency detecting means to be paid out only by a slight change in the state of the game medium, and the game medium full state detecting means are The inconvenience of erroneously detecting that the storage state is full can be prevented.

また、たとえば、遊技媒体検出手段から遊技媒体検出信号が第2の所定期間や第3の所定期間よりも短い第1の所定期間出力されたことに応じて遊技媒体の払出に関連した処理が実行され、遊技媒体が遊技媒体検出手段により検出されてから即座に遊技媒体が払出されるため、遊技者に不満を生じさせることを防止することができる。   In addition, for example, processing related to payout of the game medium is executed in response to the game medium detection signal being output from the game medium detection means for the first predetermined period shorter than the second predetermined period or the third predetermined period. Then, since the game medium is paid out immediately after the game medium is detected by the game medium detecting means, it is possible to prevent the player from being dissatisfied.

また、払出不能判定手段は、遊技媒体欠乏状態検出手段が出力する信号に基づき、払出が不能であるか否かの判定を行なう。そのため、払出すための遊技媒体が欠乏して払出が不能となっているにも関わらず払出しが実行されることが防止される。   Further, the payout impossibility determining means determines whether or not payout is impossible based on a signal output from the game medium deficiency state detecting means. Therefore, it is possible to prevent the payout from being executed even though the game media for payout is insufficient and payout is impossible.

さらに、払出不能判定手段は、遊技媒体満タン状態検出手段が出力する信号に基づき、払出が不能であるか否かの判定を行なう。そのため、払出された遊技媒体の貯留状態に基づいて払出が不能となっているにも関わらず払出しが実行されることが防止される。   Further, the payout impossibility determining means determines whether or not payout is impossible based on a signal output from the game medium full state detecting means. Therefore, the payout is prevented from being executed even though the payout is impossible based on the storage state of the paid game media.

請求項2に記載の本発明によれば、請求項1に記載の発明の効果に加えて、以下のような効果がある。遊技媒体欠乏状態検出手段が第1の所定期間よりも長い第4の所定期間連続して遊技媒体の払出が不能であることを示す信号を出力しないことを条件に、遊技媒体の払出の停止を解除するための処理が実行される。そのため、払出が停止された後、第4の所定期間連続して払出すための遊技媒体が欠乏した状態でなかったことを条件に次の払出が再開される。   According to the second aspect of the present invention, in addition to the effect of the first aspect of the invention, the following effects can be obtained. On the condition that the game medium deficiency state detecting means does not output a signal indicating that the game medium cannot be paid out continuously for a fourth predetermined period longer than the first predetermined period, the stop of the game medium payout is stopped. Processing for canceling is executed. Therefore, after the payout is stopped, the next payout is resumed on the condition that the game medium for paying out continuously for the fourth predetermined period is not in a deficient state.

パチンコ遊技機の正面図である。It is a front view of a pachinko gaming machine. パチンコ遊技機の背面図である。It is a rear view of a pachinko gaming machine. 機構盤周辺の構成を示す遊技機の背面図である。It is a rear view of the gaming machine showing the configuration around the mechanism board. 主基板と関連する部分のブロック図である。It is a block diagram of the part relevant to a main board | substrate. 払出基板と関連する部分のブロック図である。It is a block diagram of the part relevant to the payout board | substrate. 主基板のCPUを説明するための図である。It is a figure for demonstrating CPU of a main board | substrate. 電源基板内部の構造を説明するための図である。It is a figure for demonstrating the structure inside a power supply board. メイン処理を説明するためのフローチャートである。It is a flowchart for demonstrating a main process. 遊技状態復旧処理を実行するか否かの決定方法の例を示す説明図である。It is explanatory drawing which shows the example of the determination method of whether to perform a game state restoration process. 初期化処理の例を示すフローチャートである。It is a flowchart which shows the example of an initialization process. 2msタイマ割込処理の例を示すフローチャートである。It is a flowchart which shows the example of a 2ms timer interruption process. 初期設定処理の例を示すフローチャートである。It is a flowchart which shows the example of an initialization process. 遊技制御処理の例を示すフローチャートである。It is a flowchart which shows the example of a game control process. 停電発生NMI処理の例を示すフローチャートである。It is a flowchart which shows the example of a power failure generation | occurrence | production NMI process. バックアップパリティデータ作成方法の例を説明するための説明図である。It is explanatory drawing for demonstrating the example of the backup parity data creation method. 遊技状態復旧処理の例を示すフローチャートである。It is a flowchart which shows the example of a game state restoration process. 払出制御コマンドのコマンド形態の一例を示す説明図である。It is explanatory drawing which shows an example of the command form of a payout control command. 払出コマンドの内容の一例を示す説明図である。It is explanatory drawing which shows an example of the content of the payout command. 払出制御コマンドの送出形態の他の例を示すタイミング図である。It is a timing diagram which shows the other example of the sending form of a payout control command. 払出制御コマンドの送出形態の一例を示すタイミング図である。It is a timing diagram which shows an example of the delivery form of a payout control command. 電源監視および電源バックアップのための払出制御用CPU周りの一構成例を示すブロック図である。It is a block diagram which shows the example of 1 structure around the payout control CPU for power supply monitoring and power supply backup. 払出制御用CPUが実行するメイン処理の例を示すフローチャートである。It is a flowchart which shows the example of the main process which CPU for payout control performs. 払出制御用CPUの初期設定処理の一例を示すフローチャートである。It is a flowchart which shows an example of the initial setting process of payout control CPU. 払出制御用CPUの初期化処理の一例を示すフローチャートである。It is a flowchart which shows an example of the initialization process of CPU for payout control. 払出制御用CPUのタイマ割込みを説明するためのフローチャートである。It is a flowchart for demonstrating the timer interruption of CPU for payout control. 払出制御手段におけるRAMの一構成例を示す説明図である。It is explanatory drawing which shows the example of 1 structure of RAM in the payout control means. 払出制御用CPUのコマンド受信処理の例を示すフローチャートである。It is a flowchart which shows the example of the command reception processing of CPU for payout control. 払出制御用CPUが実行する払出制御処理の例を示すフローチャートである。It is a flowchart which shows the example of the payout control process which CPU for payout control performs. スイッチ処理の例を示すフローチャートである。It is a flowchart which shows the example of a switch process. コマンド解析実行処理の例を示すフローチャートである。It is a flowchart which shows the example of a command analysis execution process. 払出停止状態設定処理の例を示すフローチャートである。It is a flowchart which shows the example of a payout stop state setting process. プリペードカードユニット制御処理の例を示すフローチャートである。It is a flowchart which shows the example of a prepaid card unit control process. 球貸制御処理の例を示すフローチャートである。It is a flowchart which shows the example of a ball | bending rental control process. 球貸制御処理の例を示すフローチャートである。It is a flowchart which shows the example of a ball | bending rental control process. 賞球制御処理の例を示すフローチャートである。It is a flowchart which shows the example of a prize ball control process. 賞球制御処理の例を示すフローチャートである。It is a flowchart which shows the example of a prize ball control process. 払出制御用CPUが実行する停電発生NMI処理の例を示すフローチャートである。It is a flowchart which shows the example of the power failure generation | occurrence | production NMI process which CPU for payout control performs. バックアップパリティデータ作成方法の例を説明するための説明図であるIt is explanatory drawing for demonstrating the example of the backup parity data creation method 払出制御用CPUが実行する払出復旧処理の例を示すフローチャートである。It is a flowchart which shows the example of the payout restoration process which CPU for payout control performs. 遊技機の電源断時の電源低下やNMI信号の様子の例を示すタイミング図である。It is a timing diagram which shows the example of the power supply fall at the time of the power failure of a game machine, or the mode of an NMI signal. 始動口(第1種始動口)スイッチの検出方法を説明するための図である。It is a figure for demonstrating the detection method of a start port (1st type start port) switch. カウントスイッチの検出方法を説明するための図である。It is a figure for demonstrating the detection method of a count switch. Vカウントスイッチ(特定領域スイッチ)の検出方法を説明するための図である。It is a figure for demonstrating the detection method of V count switch (specific area switch). ゲートスイッチの検出方法を説明するための図である。It is a figure for demonstrating the detection method of a gate switch. 入賞口スイッチ(左袖入賞口スイッチ、右袖入賞口スイッチ、左落とし入賞口スイッチ、右落とし入賞口スイッチ)の検出方法を説明するための図である。It is a figure for demonstrating the detection method of a winning opening switch (a left sleeve winning opening switch, a right sleeve winning opening switch, a left dropping winning opening switch, a right dropping winning opening switch). 賞球個数カウントスイッチの検出方法を説明するための図である。It is a figure for demonstrating the detection method of a prize ball number count switch. 満タン検出スイッチの検出方法を説明するための図である。It is a figure for demonstrating the detection method of a full tank detection switch. 球切れ検出スイッチの検出方法を説明するための図である。It is a figure for demonstrating the detection method of a ball break detection switch. 満タンチェック処理を説明するためのフローチャートである。It is a flowchart for demonstrating a full tank check process. 球切れチェック処理を説明するためのフローチャートである。It is a flowchart for demonstrating a ball break check process. エラー処理を説明するためのフローチャートである。It is a flowchart for demonstrating an error process. エラー処理を説明するためのフローチャートである。It is a flowchart for demonstrating an error process. アドレス07Hのビット、データ内容、方向、論理および状態を示す図である。It is a figure which shows the bit of the address 07H, data content, direction, logic, and a state. 特別図柄プロセス処理を説明するためのフローチャートである。It is a flowchart for demonstrating special symbol process processing. 特別図柄プロセス処理を説明するためのフローチャートである。It is a flowchart for demonstrating special symbol process processing. 普通図柄プロセス処理を説明するためのフローチャートである。It is a flowchart for demonstrating normal symbol process processing. 情報出力処理を説明するためのフローチャートである。It is a flowchart for demonstrating an information output process. 情報出力処理を説明するためのフローチャートである。It is a flowchart for demonstrating an information output process. 情報出力処理を説明するためのフローチャートである。It is a flowchart for demonstrating an information output process. 賞球個数コマンド格納処理を説明するためのフローチャートである。It is a flow chart for explaining prize ball number command storage processing. 賞球個数減算処理を説明するためのフローチャートである。It is a flow chart for explaining prize ball number subtraction processing. スイッチ処理を説明するためのフローチャートである。It is a flowchart for demonstrating a switch process. 入力ポート0および入力ポート1のそれぞれに対応するビット、データ内容、方向、論理および状態を説明すための図である。It is a figure for demonstrating the bit corresponding to each of the input port 0 and the input port 1, data content, a direction, a logic, and a state. スイッチチェック処理を説明するためのフローチャートである。It is a flowchart for demonstrating a switch check process. カウントスイッチ作動処理を説明するためのフローチャートである。It is a flowchart for demonstrating a count switch action | operation process. 普通電動役物入賞カウント処理を説明するためのフローチャートである。It is a flowchart for demonstrating a normal electric accessory winning prize count process. 特定領域スイッチ通過チェック処理を説明するためのフローチャートである。It is a flowchart for demonstrating a specific area switch passage check process.

符号の説明Explanation of symbols

11 通過ゲート、12 ゲートスイッチ、14 始動口、15 始動電動役物、17 始動口スイッチ、19 可変入賞球装置、22 Vカウントスイッチ、23 カウントスイッチ、19a,24a 入賞口スイッチ、38 遊技球タンク、39 誘導樋、48 満タンスイッチ、99 入賞検出スイッチ、301A 賞球カウントスイッチ、167 球切れ検出スイッチ、187a,187b 球切れスイッチ。   DESCRIPTION OF SYMBOLS 11 Pass gate, 12 Gate switch, 14 Start opening, 15 Start electric member, 17 Start opening switch, 19 Variable winning ball apparatus, 22 V count switch, 23 Count switch, 19a, 24a Winning opening switch, 38 Game ball tank, 39 guide rod, 48 full switch, 99 winning detection switch, 301A prize ball count switch, 167 out of ball detection switch, 187a, 187b out of ball switch.

Claims (2)

供給された電力により動作する複数の電気部品と、
該複数の電気部品それぞれを制御するための処理を行なうとともに、バックアップ電源により遊技機に対する電力供給が停止してもデータが保持されるRAMを有し、電力供給開始時に前記RAMの保持データに基づいて制御を再開させることが可能な、第1の電気部品制御マイクロコンピュータおよび第2の電気部品制御マイクロコンピュータと、
前記遊技媒体を検出したときに遊技媒体検出信号を前記第1の電気部品制御マイクロコンピュータに出力する遊技媒体検出手段と、
該遊技媒体検出手段から前記遊技媒体検出信号が第1の所定期間出力されたことに応じて遊技媒体の払出に関連した処理を実行する遊技媒体検出判定手段と、
払出すための遊技媒体が欠乏した状態を検出して前記遊技媒体の払出の可否を判定するために用いられる信号を前記第1の電気部品制御マイクロコンピュータに出力する遊技媒体欠乏状態検出手段と、
払出された後に貯留される遊技媒体の貯留状態が満タンになったことを検出して前記遊技媒体の払出の可否を判定するために用いられる信号を前記第1の電気部品制御マイクロコンピュータに出力する遊技媒体満タン状態検出手段と、
前記遊技媒体欠乏状態検出手段が出力する信号および前記遊技媒体満タン状態検出手段が出力する信号に基づき、払出が不能であるか否かを判定する払出不能判定手段と、
供給された電力を整流し複数の電圧を生成する電圧生成手段と、
該電圧生成手段により整流された電力の電圧を監視し、予め定められた検出電圧に低下したときに検出信号を出力する電源監視手段とを含み、
前記第1の電気部品制御マイクロコンピュータと前記第2の電気部品制御マイクロコンピュータとは、共に、
単一の前記電源監視手段から前記検出信号が入力されるとともに、該検出信号に応じて、電力供給が停止してもデータが保持されている前記RAMへのアクセスを禁止するRAMアクセス禁止処理を行なう電力供給停止時処理を実行し、かつ、
前記RAMがデータを保持している状態で電源断状態から電源が復帰したときに、前記RAMの保持データに基づいて、前記電源断状態発生時点の制御状態に復帰させる復帰時処理を行ない、
前記払出不能判定手段は、前記遊技媒体欠乏状態検出手段が出力する払出の不能を示す信号を前記第1の所定期間よりも長い第2の所定期間出力したとき、または、前記遊技媒体満タン状態検出手段が出力する払出の不能を示す信号を前記第1の所定期間よりも長い第3の所定期間出力したときに、前記遊技媒体の払出が不能である旨の判定をするとともに、前記遊技媒体の払出を不能とするための処理を実行する、遊技機。
A plurality of electrical components that operate with the supplied power;
The RAM has a RAM that performs processing for controlling each of the plurality of electrical components and that retains data even when power supply to the gaming machine is stopped by a backup power supply. Based on the retained data in the RAM when power supply is started A first electric component control microcomputer and a second electric component control microcomputer capable of resuming the control;
Game medium detection means for outputting a game medium detection signal to the first electric component control microcomputer when the game medium is detected;
Game medium detection determining means for executing processing related to payout of game media in response to the game medium detection signal being output from the game medium detection means for a first predetermined period;
Game medium deficiency state detection means for detecting a state in which a game medium for payout is deficient and outputting a signal used to determine whether or not the game medium can be paid out to the first electric component control microcomputer;
A signal used to determine whether or not the game medium can be paid out is detected and output to the first electrical component control microcomputer by detecting that the storage state of the game medium stored after the payout is full. A game medium full state detection means for
Based on the signal output from the game medium deficiency state detection means and the signal output from the game medium full state detection means, it is determined whether or not payout is impossible.
Voltage generating means for rectifying supplied power and generating a plurality of voltages;
Power supply monitoring means for monitoring the voltage of the power rectified by the voltage generating means and outputting a detection signal when the voltage is reduced to a predetermined detection voltage;
Both the first electrical component control microcomputer and the second electrical component control microcomputer are:
The detection signal is input from a single power supply monitoring means, and in response to the detection signal, a RAM access prohibiting process for prohibiting access to the RAM holding data even when power supply is stopped. Execute the power supply stop process to be performed, and
When the power is restored from the power-off state in a state where the RAM holds data, a process at the time of returning to the control state at the time of occurrence of the power-off state is performed based on the data held in the RAM,
The payout impossibility determining means outputs a signal indicating the payout impossibility outputted by the game medium deficiency state detecting means for a second predetermined period longer than the first predetermined period, or the game medium full state When the signal indicating the inability to pay out output from the detecting means is output for a third predetermined period longer than the first predetermined period, it is determined that the game medium cannot be paid out, and the game medium A game machine that executes a process for disabling the payout.
前記払出不能判定手段は、前記遊技媒体欠乏状態検出手段が第1の所定期間よりも長い第4の所定期間連続して遊技媒体の払出が不能であることを示す信号を出力しないことを条件に、前記遊技媒体の払出の停止を解除するための処理を実行する、請求項1に記載の遊技機。 The payout impossibility determining means is provided on condition that the game medium deficiency state detecting means does not output a signal indicating that the game medium cannot be paid out continuously for a fourth predetermined period longer than the first predetermined period. The gaming machine according to claim 1, wherein processing for canceling the stop of payout of the game medium is executed.
JP2005258139A 2005-09-06 2005-09-06 Game machine Expired - Fee Related JP3893400B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005258139A JP3893400B2 (en) 2005-09-06 2005-09-06 Game machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005258139A JP3893400B2 (en) 2005-09-06 2005-09-06 Game machine

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2000108654A Division JP3772069B2 (en) 2000-04-10 2000-04-10 Game machine

Publications (3)

Publication Number Publication Date
JP2005349229A true JP2005349229A (en) 2005-12-22
JP2005349229A5 JP2005349229A5 (en) 2006-12-14
JP3893400B2 JP3893400B2 (en) 2007-03-14

Family

ID=35584127

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005258139A Expired - Fee Related JP3893400B2 (en) 2005-09-06 2005-09-06 Game machine

Country Status (1)

Country Link
JP (1) JP3893400B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017086882A (en) * 2016-10-11 2017-05-25 京楽産業.株式会社 Game machine
JP2017086880A (en) * 2016-10-11 2017-05-25 京楽産業.株式会社 Game machine
JP2017086884A (en) * 2016-10-11 2017-05-25 京楽産業.株式会社 Game machine

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017086882A (en) * 2016-10-11 2017-05-25 京楽産業.株式会社 Game machine
JP2017086880A (en) * 2016-10-11 2017-05-25 京楽産業.株式会社 Game machine
JP2017086884A (en) * 2016-10-11 2017-05-25 京楽産業.株式会社 Game machine

Also Published As

Publication number Publication date
JP3893400B2 (en) 2007-03-14

Similar Documents

Publication Publication Date Title
JP3583339B2 (en) Gaming machine
JP4156149B2 (en) Game machine
JP2001276373A (en) Game machine
JP3772069B2 (en) Game machine
JP2003230719A (en) Game machine
JP3893400B2 (en) Game machine
JP3856613B2 (en) Game machine
JP3583336B2 (en) Gaming machine
JP3558942B2 (en) Gaming machine
JP2003225434A (en) Game machine
JP3583327B2 (en) Gaming machine
JP3546163B2 (en) Gaming machine
JP2003230720A (en) Game machine
JP3893399B2 (en) Game machine
JP3857131B2 (en) Game machine
JP3588026B2 (en) Gaming machine
JP4762958B2 (en) Game machine
JP3857133B2 (en) Game machine
JP2003225433A (en) Game machine
JP4554650B2 (en) Game machine
JP4763070B2 (en) Game machine
JP2010069333A (en) Game machine
JP4763071B2 (en) Game machine
JP4763069B2 (en) Game machine
JP3857132B2 (en) Game machine

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050906

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061027

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20061027

TRDD Decision of grant or rejection written
A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20061127

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20061205

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20061211

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 3893400

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

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

Free format text: PAYMENT UNTIL: 20091215

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20091215

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20091215

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20101215

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20101215

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20111215

Year of fee payment: 5

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20111215

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20121215

Year of fee payment: 6

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20121215

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20131215

Year of fee payment: 7

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees