JP2001347013A - Game machine - Google Patents

Game machine

Info

Publication number
JP2001347013A
JP2001347013A JP2000174322A JP2000174322A JP2001347013A JP 2001347013 A JP2001347013 A JP 2001347013A JP 2000174322 A JP2000174322 A JP 2000174322A JP 2000174322 A JP2000174322 A JP 2000174322A JP 2001347013 A JP2001347013 A JP 2001347013A
Authority
JP
Japan
Prior art keywords
ball
command
interrupt
payout control
payout
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.)
Withdrawn
Application number
JP2000174322A
Other languages
Japanese (ja)
Inventor
Shohachi Ugawa
詔八 鵜川
Yasuo Kanbayashi
康男 神林
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 JP2000174322A priority Critical patent/JP2001347013A/en
Publication of JP2001347013A publication Critical patent/JP2001347013A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a game machine allowing a delivering control means to regularly surely execute delivering control processing and surely receive the command from a game control means. SOLUTION: When a timer interruption is generated, a delivering control CPU sets a timer interruption flag. When the delivering control CPU detects the set of the timer interruption flag, it resets the timer interruption flag and executes the delivering control processing. When the timer interruption is performed every 2 ms, the delivering control processing is started every 2 ms.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、遊技者の操作に応
じて遊技が行われるパチンコ遊技機、コイン遊技機、ス
ロット機等の遊技機に関し、特に、遊技盤における遊技
領域において遊技者の操作に応じて遊技が行われる遊技
機に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a game machine such as a pachinko game machine, a coin game machine, a slot machine, etc., in which a game is played in accordance with a player's operation. A gaming machine in which a game is played in accordance with a game machine.

【0002】[0002]

【従来の技術】遊技機の一例として、遊技球などの遊技
媒体を発射装置によって遊技領域に発射し、遊技領域に
設けられている入賞口などの入賞領域に遊技媒体が入賞
すると、所定個の賞球が遊技者に払い出されるものがあ
る。さらに、表示状態が変化可能な可変表示部が設けら
れ、可変表示部の表示結果があらかじめ定められた特定
の表示態様となった場合に所定の遊技価値を遊技者に与
えるように構成されたものがある。
2. Description of the Related Art As an example of a gaming machine, when a game medium such as a game ball is fired into a game area by a launching device, and a game medium wins a winning area such as a winning opening provided in the game area, a predetermined number of game media are played. Some prize balls are paid out to players. Further, a variable display unit whose display state can be changed is provided, and when a display result of the variable display unit becomes a predetermined specific display mode, a predetermined game value is provided to the player. There is.

【0003】遊技価値とは、遊技機の遊技領域に設けら
れた可変入賞球装置の状態が打球が入賞しやすい遊技者
にとって有利な状態になることや、遊技者にとって有利
な状態となるための権利を発生させたりすることや、景
品遊技媒体払出の条件が成立しやすくなる状態になるこ
とことである。また、入賞等の所定の条件成立に応じて
所定量の遊技球やコインが付与されたり得点が加算され
たりする場合に、それらを有価価値または価値と呼ぶこ
とにする。
[0003] The game value means that the state of the variable winning ball device provided in the game area of the gaming machine is in a state that is advantageous for a player who is likely to win a hit ball, or is in a state that is advantageous for the player. Rights, or a condition in which conditions for paying out prize game media are easily established. Further, when a predetermined amount of game balls or coins are awarded or points are added in accordance with establishment of a predetermined condition such as winning, the value is referred to as a value or a value.

【0004】パチンコ遊技機では、特別図柄を表示する
可変表示部の表示結果があらかじめ定められた特定の表
示態様の組合せとなることを、通常、「大当り」とい
う。大当りが発生すると、例えば、大入賞口が所定回数
開放して打球が入賞しやすい大当り遊技状態に移行す
る。そして、各開放期間において、所定個(例えば10
個)の大入賞口への入賞があると大入賞口は閉成する。
そして、大入賞口の開放回数は、所定回数(例えば16
ラウンド)に固定されている。なお、各開放について開
放時間(例えば29.5秒)が決められ、入賞数が所定
個に達しなくても開放時間が経過すると大入賞口は閉成
する。また、大入賞口が閉成した時点で所定の条件(例
えば、大入賞口内に設けられているVゾーンへの入賞)
が成立していない場合には、大当り遊技状態は終了す
る。
In a pachinko gaming machine, when a display result of a variable display section for displaying a special symbol is a combination of a predetermined specific display mode, it is generally called a "big hit". When a big hit occurs, for example, the big winning opening is opened a predetermined number of times, and the state shifts to a big hit game state in which a hit ball is easy to win. In each open period, a predetermined number (for example, 10
) Will be closed when there is a prize in the special winning opening.
The number of opening of the special winning opening is a predetermined number (for example, 16
Round). An opening time (for example, 29.5 seconds) is determined for each opening, and if the opening time elapses even if the number of winnings does not reach a predetermined number, the winning opening is closed. Further, at the time when the special winning opening is closed, predetermined conditions (for example, winning in the V zone provided in the special winning opening)
Is not established, the big hit gaming state ends.

【0005】また、「大当り」の組合せ以外の表示態様
の組合せのうち、複数の可変表示部の表示結果のうちの
一部が未だに導出表示されていない段階において、既に
確定的な、または一時的な表示結果が導出表示されてい
る可変表示部の表示態様が特定の表示態様の組合せとな
る表示条件を満たしている状態を「リーチ」という。そ
して、可変表示部に可変表示される識別情報の表示結果
が「大当り」となる条件を満たさない場合には「はず
れ」となり、可変表示状態は終了する。遊技者は、大当
りをいかにして発生させるかを楽しみつつ遊技を行う。
[0005] Further, among the combinations of display modes other than the combination of "big hits", when a part of the display results of the plurality of variable display portions is not yet derived and displayed, it is already definite or temporary. A state in which the display mode of the variable display unit on which the various display results are derived and displayed satisfies the display condition that is a combination of the specific display modes is referred to as “reach”. If the display result of the identification information variably displayed on the variable display unit does not satisfy the condition of "big hit", the result is "missing" and the variable display state ends. A player plays a game while enjoying how to generate a big hit.

【0006】そして、遊技球が遊技盤に設けられている
入賞口に遊技球が入賞すると、あらかじめ決められてい
る個数の賞球払出が行われる。遊技の進行は主基板に搭
載された遊技制御手段によって制御されるので、入賞に
もとづく賞球個数は、遊技制御手段によって決定され、
払出制御手段を搭載した払出制御基板に送信される。な
お、以下、遊技制御手段以外の制御手段を、それぞれ電
気部品制御手段と呼ぶことがある。
When a game ball wins a winning opening provided on the game board, a predetermined number of award balls are paid out. Since the progress of the game is controlled by the game control means mounted on the main board, the number of winning balls based on the winning is determined by the game control means,
It is transmitted to a payout control board equipped with a payout control means. Hereinafter, control means other than the game control means may be referred to as electric component control means.

【0007】パチンコ遊技機等の遊技機では、払出制御
はソフトウェアで実現され、払出制御プログラムを実行
するマイクロコンピュータに所定時間間隔(例えば2m
s毎)でハードウェア的にリセットをかけ、定期的に払
出制御プログラムが再起動されるように構成されること
が多い。
In a gaming machine such as a pachinko gaming machine, the payout control is realized by software, and a microcomputer that executes the payout control program is provided with a predetermined time interval (for example, 2 m).
In most cases, the payout control program is reset by hardware at (s) and the payout control program is periodically restarted.

【0008】[0008]

【発明が解決しようとする課題】すると、マイクロコン
ピュータが払出制御途中であっても例えば2msが経過
すると払出制御プログラムが再起動されてしまう。つま
り、払出制御処理が全て実行し終わらないうちに払出制
御プログラムが再起動されてしまう可能性がある。払出
制御処理が全て実行し終わらないうちに払出制御プログ
ラムが再起動された場合には再起動後にあらためて実行
される払出制御プログラムによって払出制御処理が実行
されるので制御上の問題はないが、処理が遅れるという
問題がある。
Then, even if the microcomputer is in the middle of the payout control, the payout control program is restarted after 2 ms, for example. In other words, there is a possibility that the payout control program will be restarted before all the payout control processes are completed. If the payout control program is restarted before all the payout control processes have been completed, the payout control program is executed again by the payout control program executed after the restart, so there is no control problem. There is a problem that is delayed.

【0009】また、遊技制御手段とは別体に払出制御手
段等の電気部品制御手段が設けられている場合には、遊
技制御手段から各電気部品制御手段に制御コマンドを送
信しなければならない。各電気部品制御手段は受信した
制御コマンドにもとづく種々の処理を行うのであるが、
制御コマンドは遊技制御手段の処理にもとづいて発生す
るので、遊技制御手段とは独立して動作している電気部
品制御手段の処理実行中のどの段階でも制御コマンドが
送出されうる。すなわち、決まったタイミングで制御コ
マンドが送出されてくるというのではなく、電気部品制
御手段の動作中に突然に制御コマンドが送出されてく
る。制御コマンドの受信を誤ると電気部品制御手段が本
来行わなければならない制御に支障を来すので、各電気
部品制御手段は、遊技制御手段から制御コマンドを確実
に受信する必要がある。
[0009] When an electric component control means such as a payout control means is provided separately from the game control means, a control command must be transmitted from the game control means to each electric component control means. Each electric component control means performs various processing based on the received control command.
Since the control command is generated based on the processing of the game control means, the control command can be transmitted at any stage during the processing of the electric component control means operating independently of the game control means. That is, the control command is not sent out at a fixed timing, but the control command is sent out suddenly during the operation of the electric component control means. If the control command is erroneously received, it will hinder the control that must be performed by the electric component control means. Therefore, each electric component control means must reliably receive the control command from the game control means.

【0010】そこで、本発明は、遊技者に対する価値付
与制御を行う払出制御手段が常に確実に払出制御処理を
実行できるとともに、確実に遊技制御手段からのコマン
ドを受信することができる遊技機を提供することを目的
とする。
Therefore, the present invention provides a gaming machine in which payout control means for performing value control for a player can always reliably execute payout control processing and can receive commands from the game control means reliably. The purpose is to do.

【0011】[0011]

【課題を解決するための手段】本発明による遊技機は、
遊技者が所定の遊技を行うことが可能な遊技機であっ
て、遊技の進行を制御する遊技制御手段と、遊技制御手
段からのコマンドに応じて遊技媒体を払い出す払出制御
処理を行う払出制御手段とを含み、払出制御手段が、払
出制御処理を定期的なタイマ割込の発生に応じて実行す
るとともに、遊技制御手段から送出されるコマンドを取
り込むコマンド取込処理を所定の割込の発生に応じて実
行することを特徴とする。
A gaming machine according to the present invention comprises:
A gaming machine in which a player can perform a predetermined game, a game control means for controlling the progress of the game, and a payout control for performing a payout control process for paying out a game medium in accordance with a command from the game control means. Means for performing a payout control process in response to the occurrence of a periodic timer interrupt, and executing a command capture process for capturing a command transmitted from the game control means when a predetermined interrupt is generated. It is characterized in that it is executed according to.

【0012】タイマ割込が、所定レジスタの値が特定値
になることによって発生するように構成されていてもよ
い。
[0012] The timer interrupt may be generated when the value of a predetermined register becomes a specific value.

【0013】その場合、払出制御手段が、初期設定で所
定レジスタの初期値を設定するように構成されていても
よい。
In this case, the payout control means may be configured to set an initial value of the predetermined register in the initial setting.

【0014】タイマ割込処理では、払出制御処理の実行
を示す設定が行われるように構成されていてもよい。
In the timer interrupt processing, a setting indicating execution of the payout control processing may be performed.

【0015】コマンド取込処理を実行するための所定の
割込が、第2の所定レジスタの値が特定値になることに
応じて発生するように構成されていてもよい。
[0015] The predetermined interrupt for executing the command fetch process may be configured to occur in response to the value of the second predetermined register becoming a specific value.

【0016】コマンド取込処理を行うための所定の割込
は、タイマ割込よりも優先されることが好ましい。
It is preferable that the predetermined interrupt for performing the command fetch process has priority over the timer interrupt.

【0017】コマンド取込処理中は他のマスク可能割込
が禁止され、コマンド取込処理が終了するまで割込許可
はなされないことが好ましい。
It is preferable that other maskable interrupts are prohibited during the command fetch process, and that the interrupt is not permitted until the command fetch process is completed.

【0018】コマンド取込処理を行うための所定の割込
が、実行中のタイマ割込処理を中断して発生可能である
ように構成されていてもよい。
The predetermined interrupt for performing the command fetch process may be configured to be generated by interrupting the timer interrupt process being executed.

【0019】払出制御手段が、それぞれ割込を発生可能
な複数の割込発生部を含み、各割込発生部の優先順位が
設定され、コマンド取込処理を実行するための所定の割
込を発生する割込発生部は、タイマ割込を発生する割込
発生部よりも優先順位が高い割込発生部に設定されるこ
とが好ましい。
The payout control means includes a plurality of interrupt generating units each capable of generating an interrupt, the priority of each interrupt generating unit is set, and a predetermined interrupt for executing a command fetch process is issued. It is preferable that the interrupt generating unit that generates the interrupt is set to an interrupt generating unit having a higher priority than the interrupt generating unit that generates the timer interrupt.

【0020】[0020]

【発明の実施の形態】以下、本発明の一実施形態を図面
を参照して説明する。まず、遊技機の一例であるパチン
コ遊技機の全体の構成について説明する。図1はパチン
コ遊技機1を正面からみた正面図、図2はパチンコ遊技
機1の内部構造を示す全体背面図、図3はパチンコ遊技
機1の機構板を背面からみた背面図である。なお、以下
の実施の形態では、パチンコ遊技機を例に説明を行う
が、本発明による遊技機はパチンコ遊技機に限られず、
例えばコイン遊技機等であってもよい。また、画像式の
遊技機やスロット機に適用することもできる。
An embodiment of the present invention will be described below with reference to the drawings. First, the overall configuration of a pachinko gaming machine, which is an example of a gaming machine, will be described. 1 is a front view of the pachinko gaming machine 1 as viewed 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 mechanical board of the pachinko gaming machine 1 as viewed from the back. In the following embodiments, a description will be given of a pachinko gaming machine as an example, but the gaming machine according to the present invention is not limited to a pachinko gaming machine,
For example, a coin gaming machine or the like may be used. Further, the present invention can be applied to an image-type gaming machine or a slot machine.

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

【0022】遊技領域7の中央付近には、複数種類の図
柄を可変表示するための可変表示部9と7セグメントL
EDによる可変表示器10とを含む可変表示装置8が設
けられている。また、可変表示器10の下部には、4個
のLEDからなる通過記憶表示器(普通図柄用記憶表示
器)41が設けられている。この実施の形態では、可変
表示部9には、「左」、「中」、「右」の3つの図柄表
示エリアがある。可変表示装置8の側部には、打球を導
く通過ゲート11が設けられている。通過ゲート11を
通過した打球は、球出口13を経て始動入賞口14の方
に導かれる。通過ゲート11と球出口13との間の通路
には、通過ゲート11を通過した打球を検出するゲート
スイッチ12がある。また、始動入賞口14に入った入
賞球は、遊技盤6の背面に導かれ、始動口スイッチ17
によって検出される。また、始動入賞口14の下部には
開閉動作を行う可変入賞球装置15が設けられている。
可変入賞球装置15は、ソレノイド16によって開状態
とされる。
In the vicinity of the center of the game area 7, a variable display section 9 for variably displaying a plurality of types of symbols and a 7-segment L
A variable display device 8 including a variable display 10 using an ED is provided. In addition, a pass storage display (ordinary symbol storage display) 41 including 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”. On the side of the variable display device 8, a passing gate 11 for guiding a hit ball is provided. The hit ball that has passed through the passing gate 11 is guided to the starting winning opening 14 via the ball exit 13. In the passage between the passage gate 11 and the ball exit 13, there is a gate switch 12 for detecting a hit ball passing through the passage gate 11. The winning ball that has entered the starting winning port 14 is guided to the back of the game board 6 and is turned on by the starting port switch 17.
Is detected by In addition, a variable winning ball device 15 that performs opening and closing operations is provided below the starting winning port 14.
The variable winning ball device 15 is opened by the solenoid 16.

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

【0024】遊技盤6には、複数の入賞口19,24が
設けられ、遊技球のそれぞれの入賞口19,24への入
賞は、対応して設けられている入賞口スイッチ19a,
24aによって検出される。遊技領域7の左右周辺に
は、遊技中に点滅表示される装飾ランプ25が設けら
れ、下部には、入賞しなかった打球を吸収するアウト口
26がある。また、遊技領域7の外側の左右上部には、
効果音を発する2つのスピーカ27が設けられている。
遊技領域7の外周には、遊技効果LED28aおよび遊
技効果ランプ28b,28cが設けられている。
The gaming board 6 is provided with a plurality of winning ports 19 and 24, and the winning of the game balls into the respective winning ports 19 and 24 is determined by setting the corresponding winning port switches 19a and 19a.
24a. At the left and right sides of the game area 7, there are provided decorative lamps 25 which are displayed blinking during the game, and at the lower part there is an out port 26 for absorbing hit balls which have not won. Also, on the upper left and right sides outside the game area 7,
Two speakers 27 that emit sound effects are provided.
A game effect LED 28a and game effect lamps 28b and 28c are provided on the outer periphery of the game area 7.

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

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

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

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

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

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

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

【0032】また、図3はパチンコ遊技機1の機構板を
背面からみた背面図である。球貯留タンク38に貯留さ
れた玉は誘導樋39を通り、図3に示されるように、球
切れ検出器(球切れスイッチ)187a,187bを通
過して球供給樋186a,186bを経て球払出装置9
7に至る。球切れスイッチ187a,187bは遊技球
通路内の遊技球の有無を検出するスイッチであるが、球
タンク38内の補給球の不足を検出する球切れ検出スイ
ッチ167も設けられている。球払出装置97から払い
出された遊技球は、連絡口45を通ってパチンコ遊技機
1の前面に設けられている打球供給皿3に供給される。
連絡口45の側方には、パチンコ遊技機1の前面に設け
られている余剰玉受皿4に連通する余剰玉通路46が形
成されている。入賞にもとづく景品球が多数払い出され
て打球供給皿3が満杯になり、ついには遊技球が連絡口
45に到達した後さらに遊技球が払い出されると遊技球
は、余剰玉通路46を経て余剰玉受皿4に導かれる。さ
らに遊技球が払い出されると、感知レバー47が満タン
スイッチ48を押圧して満タンスイッチ48がオンす
る。その状態では、球払出装置97内のステッピングモ
ータの回転が停止して球払出装置97の動作が停止する
とともに打球発射装置34の駆動も停止する。
FIG. 3 is a rear view of the mechanical plate of the pachinko gaming machine 1 as viewed from the rear. The balls stored in the ball storage tank 38 pass through the guide gutter 39, pass through the ball cut detectors (ball cut switches) 187a and 187b, and are dispensed through the ball supply gutters 186a and 186b, as shown in FIG. Device 9
Reaches 7. The ball-out switches 187a and 187b are switches for detecting the presence or absence of a game ball in the game-ball passage, and a ball-out detection switch 167 for detecting a shortage of replenishment balls in the ball tank 38 is also provided. The game balls paid out from the ball payout device 97 are supplied to the hit ball supply tray 3 provided on the front surface of the pachinko gaming machine 1 through the communication port 45.
On the side of the communication port 45, an excess ball passage 46 communicating with the excess ball tray 4 provided on the front of the pachinko gaming machine 1 is formed. A large number of prize balls are paid out based on the prize, and the hitting ball supply tray 3 becomes full. Finally, after the game balls reach the contact port 45, the game balls are further paid out. It is led to the ball tray 4. When the game balls are further paid out, the sensing lever 47 presses the full tank switch 48 and the full tank switch 48 is turned on. In that state, the rotation of the stepping motor in the ball discharging device 97 stops, the operation of the ball discharging device 97 stops, and the driving of the hit ball firing device 34 also stops.

【0033】次に、機構板36に設置されている中間ベ
ースユニットの構成について説明する。中間ベースユニ
ットには、球供給樋186a,186bや球払出装置9
7が設置される。図4に示すように、中間ベースユニッ
トの上下には連結凹突部182が形成されている。連結
凹突部182は、中間ベースユニットと機構板36の上
部ベースユニットおよび下部ベースユニットを連結固定
するものである。
Next, the structure of the intermediate base unit installed on the mechanism plate 36 will be described. The intermediate base unit includes the ball supply gutters 186a and 186b and the ball discharging device 9
7 is installed. As shown in FIG. 4, connecting concave protrusions 182 are formed on the upper and lower sides of the intermediate base unit. The connection concave projection 182 connects and fixes the intermediate base unit and the upper base unit and the lower base unit of the mechanism plate 36.

【0034】中間ベースユニットの上部には通路体18
4が固定されている。そして、通路体184の下部に球
払出装置97が固定されている。通路体184は、カー
ブ樋174(図3参照)によって流下方向を左右方向に
変換された2列の遊技球を流下させる払出球通路186
a,186bを有する。払出球通路186a,186b
の上流側には、球切れスイッチ187a,187bが設
置されている。球切れスイッチ187a,187bは、
払出球通路186a,186b内の遊技球の有無を検出
するものであって、球切れスイッチ187a,187b
が遊技球を検出しなくなると球払出装置97における払
出モータ(図4において図示せず)の回転を停止して球
払出が不動化される。
A passage 18 is provided above the intermediate base unit.
4 is fixed. The ball dispensing device 97 is fixed to a lower portion of the passage body 184. The passage body 184 is a payout ball passage 186 that allows two rows of game balls whose flow direction has been changed left and right by the curve gutter 174 (see FIG. 3) to flow down.
a, 186b. Dispensing ball passages 186a, 186b
On the upstream side of the ball, ball breaking switches 187a and 187b are provided. The ball out switches 187a and 187b
It detects the presence or absence of a game ball in the payout ball passages 186a and 186b, and detects a ball out switch 187a or 187b.
Stops detecting the game ball, the rotation of the payout motor (not shown in FIG. 4) in the ball payout device 97 is stopped, and the ball payout is immobilized.

【0035】なお、球切れスイッチ187a,187b
は、払出球通路186a,186bに27〜28個程度
の遊技球が存在することを検出できるような位置に係止
片188によって係止されている。すなわち、球切れス
イッチ187a,187bは、賞球の一単位の最大払出
量(この実施の形態では15個)および球貸しの一単位
の最大払出量(この実施の形態では100円:25個)
以上が確保されていることが確認できるような位置に設
置されている。
Note that the ball out switches 187a, 187b
Is locked by a locking piece 188 at a position where it can be detected that about 27 to 28 game balls exist in the payout ball paths 186a and 186b. That is, the out-of-ball switches 187a and 187b are the maximum payout amount of one unit of the prize ball (15 in this embodiment) and the maximum payout amount of one unit of the ball lending (100 yen: 25 in this embodiment).
It is installed in a position where it can be confirmed that the above is secured.

【0036】通路体184の中央部は、内部を流下する
遊技球の球圧を弱めるように、左右に湾曲する形状に形
成されている。そして、払出球通路186a,186b
の間に止め穴189が形成されている。止め穴189の
裏面は中間ベースユニットに設けられている取付ボスが
はめ込まれる。その状態で止めねじがねじ止めされて、
通路体184は中間ベースユニットに固定される。な
お、ねじ止めされる前に、中間ベースユニットに設けら
れている係止突片185によって通路体184の位置合
わせを行えるようになっている。
The central portion of the passage body 184 is formed in a shape that bends left and right so as to reduce the ball pressure of the game ball flowing down inside. And the payout ball passages 186a, 186b
A stop hole 189 is formed therebetween. The mounting boss provided on the intermediate base unit is fitted into the back surface of the stop hole 189. The set screw is screwed in that state,
The passage body 184 is fixed to the intermediate base unit. Before being screwed, the positioning of the passage body 184 can be performed by a locking projection 185 provided on the intermediate base unit.

【0037】通路体184の下方には、球払出装置97
に遊技球を供給するとともに故障時等には球払出装置9
7への遊技球の供給を停止する球止め装置190が設け
られている。球止め装置190の下方に設置される球払
出装置97は、直方体状のケース198の内部に収納さ
れている。ケース198の左右4箇所には突部が設けら
れている。各突部が中間ベースユニットに設けられてい
る位置決め突片に係った状態で、中間ベースユニットの
下部に設けられている弾性係合片にケース198の下端
がはめ込まれる。
Below the passage body 184, a ball payout device 97 is provided.
To supply the game balls to the ball, and in the event of failure, the ball payout device 9
A ball stopping device 190 for stopping the supply of game balls to the game ball 7 is provided. The ball dispensing device 97 installed below the ball stopping device 190 is housed inside a rectangular parallelepiped case 198. Protrusions are provided at four places on the left and right of the case 198. The lower end of the case 198 is fitted into an elastic engagement piece provided at a lower portion of the intermediate base unit with each projection being related to a positioning projection provided on the intermediate base unit.

【0038】図5は球払出装置97の分解斜視図であ
る。球払出装置97の構成および作用について図5を参
照して説明する。この実施形態における球払出装置97
は、ステッピングモータ(払出モータ)289がスクリ
ュー288を回転させることによりパチンコ玉を1個ず
つ払い出す。なお、球払出装置97は、入賞にもとづく
景品球だけでなく、貸し出すべき遊技球も払い出す。
FIG. 5 is an exploded perspective view of the ball payout device 97. The configuration and operation of the ball payout device 97 will be described with reference to FIG. Ball payout device 97 in this embodiment
, A stepping motor (payout motor) 289 rotates a screw 288 to pay out pachinko balls one by one. The ball payout device 97 pays out not only premium balls based on winnings but also game balls to be lent.

【0039】図5に示すように、球払出装置97は、2
つのケース198a,198bを有する。それぞれのケ
ース198a,198bの左右2箇所に、球払出装置9
7の設置位置上部に設けられた位置決め突片に当接され
る係合突部280が設けられている。また、それぞれの
ケース198a,198bには、球供給路281a,2
81bが形成されている。球供給路281a,281b
は湾曲面282a,282bを有し、湾曲面282a,
282bの終端の下方には、球送り水平路284a,2
84bが形成されている。さらに、球送り水平路284
a,284bの終端に球排出路283a,283bが形
成されている。
As shown in FIG. 5, the ball payout device 97
There are two cases 198a and 198b. The ball dispensing device 9 is provided at two places on the left and right of each case 198a, 198b.
7 is provided with an engagement projection 280 that is in contact with a positioning projection provided at the upper part of the installation position. In each case 198a, 198b, a ball supply path 281a,
81b are formed. Ball supply path 281a, 281b
Has curved surfaces 282a and 282b, and has curved surfaces 282a and 282b.
Below the end of 282b, there is a ball feed horizontal path 284a, 2
84b are formed. In addition, ball feed horizontal path 284
Ball discharge passages 283a and 283b are formed at the ends of a and 284b.

【0040】球供給路281a,281b、球送り水平
路284a,284b、球排出路283a,283b
は、ケース198a,198bをそれぞれ前後に区画す
る区画壁295a,295bの前方に形成されている。
また、区画壁295a,295bの前方において、玉圧
緩衝部材285がケース198a,198b間に挟み込
まれる。玉圧緩衝部材285は、球払出装置97に供給
される玉を左右側方に振り分けて球供給路281a,2
81bに誘導する。
The ball supply paths 281a and 281b, the ball feed horizontal paths 284a and 284b, and the ball discharge paths 283a and 283b.
Are formed in front of partition walls 295a and 295b that partition the cases 198a and 198b forward and backward, respectively.
Further, in front of the partition walls 295a and 295b, a ball pressure buffering member 285 is sandwiched between the cases 198a and 198b. The ball pressure buffering member 285 distributes the ball supplied to the ball payout device 97 to the left and right sides and the ball supply paths 281a, 281.
81b.

【0041】また、玉圧緩衝部材285の下部には、発
光素子(LED)286と受光素子(図示せず)とによ
る払出モータ位置センサが設けられている。発光素子2
86と受光素子とは、所定の間隔をあけて設けられてい
る。そして、この間隔内に、スクリュー288の先端が
挿入されるようになっている。なお、玉圧緩衝部材28
5は、ケース198a,198bが張り合わされたとき
に、完全にその内部に収納固定される。
A payout motor position sensor including a light emitting element (LED) 286 and a light receiving element (not shown) is provided below the ball pressure buffering member 285. Light emitting element 2
86 and the light receiving element are provided at a predetermined interval. The distal end of the screw 288 is inserted into the space. The ball pressure buffering member 28
When the cases 198a and 198b are attached to each other, the case 5 is completely stored and fixed therein.

【0042】球送り水平路284a,284bには、払
出モータ289によって回転させられるスクリュー28
8が配置されている。払出モータ289はモータ固定板
290に固定され、モータ固定板290は、区画壁29
5a,295bの後方に形成される固定溝291a,2
91bにはめ込まれる。その状態で払出モータ289の
モータ軸が区画壁295a,295bの前方に突出する
ので、その突出の前方にスクリュー288が固定され
る。スクリュー288の外周には、払出モータ289の
回転によって球送り水平路284a,284bに載置さ
れた遊技球を前方に移動させるための螺旋突起288a
が設けられている。
The ball feed horizontal paths 284a and 284b have a screw 28 rotated by a payout motor 289.
8 are arranged. The payout motor 289 is fixed to the motor fixing plate 290, and the motor fixing plate 290 is
Fixing grooves 291a, 2 formed behind 5a, 295b
Fits into 91b. In this state, the motor shaft of the dispensing motor 289 projects forward of the partition walls 295a, 295b, so that the screw 288 is fixed forward of the projection. On the outer periphery of the screw 288, a spiral protrusion 288a for moving the game ball placed on the ball feed horizontal path 284a, 284b forward by the rotation of the payout motor 289.
Is provided.

【0043】そして、スクリュー288の先端には、発
光素子286を収納するように凹部が形成され、その凹
部の外周には、2つの切欠部292が互いに180度離
れて形成されている。従って、スクリュー288が1回
転する間に、発光素子286からの光は、切欠部292
を介して受光素子で2回検出される。
A recess is formed at the tip of the screw 288 so as to house the light emitting element 286, and two notches 292 are formed 180 degrees apart from each other on the outer periphery of the recess. Therefore, while the screw 288 makes one rotation, the light from the light emitting element 286 is
Is detected twice by the light receiving element via the.

【0044】つまり、発光素子286と受光素子とによ
る払出モータ位置センサは、スクリュー288を定位置
で停止するためのものであり、かつ、払出動作が行われ
た旨を検出するものである。なお、発光素子286、受
光素子および払出モータ289からの配線は、まとめら
れてケース198a,198bの後部下方に形成された
引出穴から外部に引き出されコネクタに結線される。
That is, the dispensing motor position sensor including the light emitting element 286 and the light receiving element is for stopping the screw 288 at a fixed position and detecting that the dispensing operation has been performed. The wires from the light emitting element 286, the light receiving element, and the payout motor 289 are collectively pulled out to the outside through drawout holes formed below the rear portions of the cases 198a, 198b, and connected to the connector.

【0045】遊技球が球送り水平路284a,284b
に載置された状態において、払出モータ289が回転す
ると、スクリュー288の螺旋突起288aによって、
遊技球は、球送り水平路284a,284b上を前方に
向かって移動する。そして、遂には、球送り水平路28
4a,284bの終端から球排出路283a,283b
に落下する。このとき、左右の球送り水平路284a,
284bからの落下は交互に行われる。すなわち、スク
リュー288が半回転する毎に一方から1個の遊技球が
落下する。従って、1個の遊技球が落下する毎に、発光
素子286からの光が受光素子によって検出される。
The game balls are moved horizontally by ball 284a, 284b.
When the payout motor 289 rotates in a state where the screw 288 is placed on the
The game ball moves forward on the ball feeding horizontal paths 284a and 284b. And finally, ball feed horizontal path 28
4a, 284b from the end of the ball discharge path 283a, 283b
To fall. At this time, the left and right ball feed horizontal paths 284a,
The drop from 284b is performed alternately. That is, every time the screw 288 makes a half turn, one game ball falls from one side. Therefore, every time one game ball falls, light from the light emitting element 286 is detected by the light receiving element.

【0046】図4に示すように、球払出装置97の下方
には、球振分部材311が設けられている。球振分部材
311は、振分用ソレノイド310によって駆動され
る。例えば、ソレノイド310のオン時には、球振分部
材311は右側に倒れ、オフ時には左側に倒れる。振分
用ソレノイド310の下方には、近接スイッチによる賞
球カウントスイッチ301Aおよび球貸しカウントスイ
ッチ301Bが設けられている。入賞にもとづく賞球時
には、球振分部材311は右側に倒れ、球排出路283
a,283bからの玉はともに賞球カウントスイッチ3
01Aを通過する。また、球貸し時には、球振分部材3
11は左側に倒れ、球排出路283a,283bからの
玉はともに球貸しカウントスイッチ301Bを通過す
る。従って、球払出装置97は、賞球時と球貸し時とで
払出流下路を切り替えて、所定数の遊技媒体の払出を行
うことができる。
As shown in FIG. 4, a ball distribution member 311 is provided below the ball payout device 97. The ball distribution member 311 is driven by the distribution solenoid 310. For example, when the solenoid 310 is on, the ball sorting member 311 falls to the right, and when it is off, it falls to the left. Below the distribution solenoid 310, a prize ball count switch 301A and a ball lending count switch 301B are provided by proximity switches. At the time of the prize ball based on the winning, the ball sorting member 311 falls to the right side and the ball discharge path 283
The balls from a and 283b are both prize ball count switches 3.
Pass through 01A. Also, when lending a ball, the ball distribution member 3
The ball 11 from the ball discharge paths 283a and 283b both passes through the ball lending count switch 301B. Accordingly, the ball payout device 97 can switch the payout flow path between the time of winning a ball and the time of lending a ball, and can pay out a predetermined number of game media.

【0047】このように、球振分部材311を設けるこ
とによって、2条の玉流路を落下してきた玉は、賞球カ
ウントスイッチ301Aと球貸しカウントスイッチ30
1Bとのうちのいずれか一方しか通過しない。従って、
賞球であるのか球貸しであるのかの判断をすることな
く、賞球カウントスイッチ301Aと球貸しカウントス
イッチ301Bの検出出力から、直ちに賞球数または球
貸し数を把握することができる。
As described above, by providing the ball distribution member 311, the balls that have fallen in the two ball passages can receive the prize ball count switch 301 A and the ball lending count switch 30.
1B. Therefore,
The number of prize balls or the number of ball lending can be immediately grasped from the detection output of the prize ball counting switch 301A and the ball lending count switch 301B without determining whether the ball is a prize ball or a ball lending.

【0048】なお、この実施の形態では、電気的駆動源
の駆動によって遊技球を払い出す球払出装置として、ス
テッピングモータの回転によって遊技球が払い出される
球払出装置97を用いることにするが、その他の駆動源
によって遊技球を送り出す構造の球払出装置を用いても
よいし、電気的駆動源の駆動によってストッパを外し遊
技球の自重によって払い出しがなされる構造の球払出装
置を用いてもよい。また、ここでは、球振分部材311
によって賞球時の球払出経路と球貸し時の球払出経路と
を切り替える機構を使用するが、賞球時の球払出機構と
球貸し時の球払出機構とが独立して設けられている構成
を用いてもよい。
In this embodiment, a ball payout device 97 that pays out game balls by rotation of a stepping motor is used as a ball payout device that pays out game balls by driving an electric drive source. A ball payout device having a structure in which a game ball is sent out by a driving source of the above may be used, or a ball payout device having a structure in which a stopper is removed by driving an electric drive source to pay out the game ball by its own weight may be used. Also, here, the ball sorting member 311
A mechanism for switching between a ball payout path when winning a prize ball and a ball payout path when lending a ball is used, but a configuration in which a ball payout mechanism when awarding a ball and a ball payout mechanism when lending a ball are provided independently. May be used.

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

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

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

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

【0053】遊技球を打撃して発射する打球発射装置は
発射制御基板91上の回路によって制御される駆動モー
タ94で駆動される。そして、駆動モータ94の駆動力
は、操作ノブ5の操作量に従って調整される。すなわ
ち、発射制御基板91上の回路によって、操作ノブ5の
操作量に応じた速度で打球が発射されるように制御され
る。
A hit ball launching device that hits and fires a game ball is driven by a drive motor 94 controlled by a circuit on a launch control board 91. Then, the driving force of the driving 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.

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

【0055】図7は、払出制御基板37および球払出装
置97の構成要素などの払出に関連する構成要素を示す
ブロック図である。図7に示すように、満タンスイッチ
48からの検出信号は、中継基板71を介して主基板3
1のI/Oポート57に入力される。満タンスイッチ4
8は、余剰球受皿4の満タンを検出するスイッチであ
る。また、球切れスイッチ187(187a,187
b)からの検出信号も、中継基板72および中継基板7
1を介して主基板31のI/Oポート57に入力され
る。
FIG. 7 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. 7, the detection signal from the full tank switch 48 is transmitted to the main board 3 via the relay board 71.
1 is input to the I / O port 57. Full tank switch 4
Reference numeral 8 denotes a switch for detecting whether the surplus ball tray 4 is full. In addition, the ball out switch 187 (187a, 187)
The detection signal from b) is also used for the relay board 72 and the relay board 7.
1 is input to the I / O port 57 of the main board 31.

【0056】主基板31のCPU56は、球切れスイッ
チ187からの検出信号が球切れ状態を示しているか、
または、満タンスイッチ48からの検出信号が満タン状
態を示していると、払出禁止を指示する払出制御コマン
ドを送出する。払出禁止を指示する払出制御コマンドを
受信すると、払出制御基板37の払出制御用CPU37
1は球払出処理を停止する。
The CPU 56 of the main board 31 checks whether the detection signal from the ball out switch 187 indicates that the ball is out.
Alternatively, when the detection signal from the full tank switch 48 indicates the full tank state, a payout control command to instruct payout prohibition is transmitted. When receiving the payout control command instructing the payout prohibition, the payout control CPU 37 of the payout control board 37
1 stops the ball payout process.

【0057】さらに、賞球カウントスイッチ301Aか
らの検出信号も、中継基板72および中継基板71を介
して主基板31のI/Oポート57に入力される。賞球
カウントスイッチ301Aは、球払出装置97の払出機
構部分に設けられ、実際に払い出された賞球払出球を検
出する。
Further, a detection signal from the award ball count switch 301A is 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 is provided in the payout mechanism of the ball payout device 97, and detects a prize ball payout ball actually paid out.

【0058】入賞があると、払出制御基板37には、主
基板31の出力ポート(ポート0,1)570,571
から賞球個数を示す払出制御コマンドが入力される。出
力ポート(出力ポート1)571は8ビットのデータを
出力し、出力ポート570は1ビットのストローブ信号
(INT信号)を出力する。賞球個数を示す払出制御コ
マンドは、入力バッファ回路373Aを介してI/Oポ
ート372aに入力される。INT信号は、入力バッフ
ァ回路373Bを介して払出制御用CPU371の割込
端子に入力されている。払出制御用CPU371は、I
/Oポート372aを介して払出制御コマンドを入力
し、払出制御コマンドに応じて球払出装置97を駆動し
て賞球払出を行う。なお、この実施の形態では、払出制
御用CPU371は、1チップマイクロコンピュータで
あり、少なくともRAMが内蔵されている。
When there is a prize, the payout control board 37 has output ports (ports 0, 1) 570, 571 of the main board 31.
, A payout control command indicating the number of winning balls is input. The output port (output port 1) 571 outputs 8-bit data, and the output port 570 outputs a 1-bit strobe signal (INT signal). The payout control command indicating the number of winning balls is input to the I / O port 372a via the input buffer circuit 373A. The INT signal is input to the interrupt terminal of the payout control CPU 371 via the input buffer circuit 373B. The payout control CPU 371
A payout control command is input via the / O port 372a, and the ball payout device 97 is driven in accordance with the payout control command to perform award ball payout. In this embodiment, the payout control CPU 371 is a one-chip microcomputer and has at least a RAM.

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

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

【0061】さらに、払出制御基板37の入力ポート3
72bには、中継基板72を介して、賞球カウントスイ
ッチ301Aおよび球貸しカウントスイッチ301Bか
らの検出信号が入力される。球貸しカウントスイッチ3
01Bは、球払出装置97の払出機構部分に設けられ、
実際に払い出された貸し球を検出する。払出制御基板3
7からの払出モータ289への駆動信号は、出力ポート
372cおよび中継基板72を介して球払出装置97の
払出機構部分における払出モータ289に伝えられる。
Further, the input port 3 of the payout control board 37
Detection signals from the winning ball count switch 301A and the ball lending count switch 301B are input to the relay board 72b via the relay board 72. Ball rental count switch 3
01B is provided in the payout mechanism portion of the ball payout device 97,
Detects the actual loaned ball. Dispensing control board 3
7 is transmitted to the payout motor 289 in the payout mechanism of the ball payout device 97 via the output port 372c and the relay board 72.

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

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

【0064】パチンコ遊技機1の電源が投入されると、
払出制御基板37の払出制御用CPU371は、カード
ユニット50にPRDY信号を出力する。また、カード
ユニット制御用マイクロコンピュータは、VL信号を出
力する。払出制御用CPU371は、VL信号の入力状
態により接続状態/未接続状態を判定する。カードユニ
ット50においてカードが受け付けられ、球貸しスイッ
チが操作され球貸しスイッチ信号が入力されると、カー
ドユニット制御用マイクロコンピュータは、払出制御基
板37にBRDY信号を出力する。この時点から所定の
遅延時間が経過すると、カードユニット制御用マイクロ
コンピュータは、払出制御基板37にBRQ信号を出力
する。そして、払出制御基板37の払出制御用CPU3
71は、カードユニット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 connection state / non-connection state based on the input state of the VL signal. When the card is accepted in the card unit 50 and the ball lending switch is operated to input a ball lending switch signal, the microcomputer for controlling the card unit outputs a BRDY signal to the payout control board 37. When a predetermined delay time has elapsed from this point, the microcomputer for controlling the card unit outputs a BRQ signal to the payout control board 37. The payout control CPU 3 of the payout control board 37
When the EXS signal to the card unit 50 rises and the fall of the BRQ signal from the card unit 50 is detected, the payout motor 289 drives the payout motor 289 to pay out a predetermined number of loaned balls to the player. At this time, the distribution solenoid 310 is in a driving state. That is, the ball distribution member 311 is directed to the ball lending side. When the payout is completed, the payout control CPU 371 causes the EXS signal to the card unit 50 to fall. Thereafter, if the BRDY signal from the card unit 50 is not in the ON state, the winning ball payout control is executed.

【0065】以上のように、カードユニット50からの
信号は全て払出制御基板37に入力される構成になって
いる。従って、球貸し制御に関して、カードユニット5
0から主基板31に信号が入力されることはなく、主基
板31の基本回路53にカードユニット50の側から不
正に信号が入力される余地はない。
As described above, all signals from the card unit 50 are input to the payout control board 37. Therefore, regarding the ball lending control, the card unit 5
No signal is input from 0 to the main board 31, and there is no room for a signal to be incorrectly input from the card unit 50 side to the basic circuit 53 of the main board 31.

【0066】なお、この実施の形態では、カードユニッ
ト50が遊技機とは別体として遊技機に隣接して設置さ
れている場合を例にするが、カードユニット50は遊技
機と一体化されていてもよい。また、コイン投入に応じ
てその金額に応じた遊技球を遊技機が貸し出すように構
成した場合でも本発明を適用できる。
In this embodiment, the case where the card unit 50 is installed separately from the gaming machine and adjacent to the gaming machine is described as an example, but the card unit 50 is integrated with the gaming machine. You may. Also, the present invention can be applied to a case where a gaming machine rents a game ball corresponding to the amount of money when a coin is inserted.

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

【0068】また、払出制御基板37とその他の電気部
品制御基板(表示制御基板80、ランプ制御基板35お
よび音声制御基板70)にコマンドを送出するために、
主基板31の出力ポート(出力ポート0)570からI
NT信号が各電気部品制御基板に出力される。この場
合、例えば、出力ポート570は8ビット構成であっ
て、ビット0が払出制御基板37へのINT信号、ビッ
ト1が表示制御基板80へのINT信号、ビット2がラ
ンプ制御基板35へのINT信号、ビット3が音声制御
基板70へのINT信号の出力用に用いられる。
In order to send commands to the payout control board 37 and other electric component control boards (display control board 80, lamp control board 35, and voice control board 70),
Output port (output port 0) 570 to I of main board 31
The NT signal is output to each electric component control board. In this case, for example, the output port 570 has an 8-bit configuration, where bit 0 is an INT signal to the payout control board 37, bit 1 is an INT signal to the display control board 80, and bit 2 is an INT signal to the lamp control board 35. The signal, bit 3, is used for outputting the INT signal to the voice control board 70.

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

【0070】図8には、システムリセット回路65も示
されている。リセットIC651は、電源投入時に、外
付けのコンデンサの容量で決まる所定時間だけ出力をロ
ーレベルとし、所定時間が経過すると出力をハイレベル
にする。すなわち、リセット信号をハイレベルに立ち上
げてCPU56を動作可能状態にする。また、リセット
IC651は、電源監視回路が監視する電源電圧と等し
い電源電圧であるVSLの電源電圧を監視して電圧値が所
定値(電源監視回路が電源断信号を出力する電源電圧値
よりも低い値)以下になると出力をローレベルにする。
従って、CPU56は、電源監視回路からの電源断信号
に応じて所定の電力供給停止時処理を行った後、システ
ムリセットされる。
FIG. 8 also shows a system reset circuit 65. The reset IC 651 sets the output to a low level for a predetermined time determined by the capacity of an external capacitor when the power is turned on, and sets the output to a high level after a predetermined time has elapsed. 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 power supply voltage as the power supply voltage monitored by the power supply monitoring circuit, and determines that the voltage value is a predetermined value (lower than the power supply voltage value at which the power supply monitoring circuit outputs a power-off signal) Value), the output goes low.
Therefore, the CPU 56 performs a predetermined power supply stop processing in response to a power-off signal from the power supply monitoring circuit, and then performs a system reset.

【0071】図8に示すように、リセットIC651か
らのリセット信号は、NAND回路947に入力される
とともに、反転回路(NOT回路)944を介してカウ
ンタIC941のクリア端子に入力される。カウンタI
C941は、クリア端子への入力がローレベルになる
と、発振器943からのクロック信号をカウントする。
そして、カウンタIC941のQ5出力がNOT回路9
45,946を介してNAND回路947に入力され
る。また、カウンタIC941のQ6出力は、フリップ
フロップ(FF)942のクロック端子に入力される。
フリップフロップ942のD入力はハイレベルに固定さ
れ、Q出力は論理和回路(OR回路)949に入力され
る。OR回路949の他方の入力には、NAND回路9
47の出力がNOT回路948を介して導入される。そ
して、OR回路949の出力がCPU56のリセット端
子に接続されている。このような構成によれば、電源投
入時に、CPU56のリセット端子に2回のリセット信
号(ローレベル信号)が与えられるので、CPU56
は、確実に動作を開始する。
As shown in FIG. 8, the reset signal from the reset IC 651 is input to the NAND circuit 947 and also to the clear terminal of the counter IC 941 via the inverting circuit (NOT circuit) 944. Counter I
When the input to the clear terminal goes low, the C941 counts the clock signal from the oscillator 943.
The Q5 output of the counter IC 941 is output to the NOT circuit 9
45, 946 and input to the NAND circuit 947. The Q6 output of the counter IC 941 is input to a clock terminal of a 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 other input of the OR circuit 949 is connected to the NAND circuit 9.
The output of 47 is introduced via 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, two reset signals (low-level signals) are supplied to the reset terminal of the CPU 56 when the power is turned on.
Starts operation reliably.

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

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

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

【0075】この実施の形態で用いられるCPU56
は、I/Oポート(PIO)およびタイマ/カウンタ回
路(CTC)も内蔵している。PIOは、PB0〜PB
3の4ビットおよびPA0〜PA7の1バイトのポート
を有する。PB0〜PB3およびPA0〜PA7のポー
トは、入力/出力いずれにも設定できる。ただし、この
実施の形態では内蔵PIOを使用しない。その場合に
は、例えば、全ポートを入力モードとして、全ポートを
グラウンドレベルに接続する。なお、電源投入時に、P
IOは自動的に入力モードに設定される。
CPU 56 used in this embodiment
Incorporates an I / O port (PIO) and a timer / counter circuit (CTC). PIO is PB0-PB
It has a port of 3 4 bits and 1 byte of PA0 to PA7. The ports PB0 to PB3 and PA0 to PA7 can be set for both input and output. However, in this embodiment, no built-in PIO is used. In that case, for example, all ports are set to the input mode, and all ports are connected to the ground level. When power is turned on, P
IO is automatically set to input mode.

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

【0077】トランス911は、交流電源からの交流電
圧を24Vに変換する。AC24V電圧は、コネクタ9
15に出力される。また、整流回路912は、AC24
Vから+30Vの直流電圧を生成し、DC−DCコンバ
ータ913およびコネクタ915に出力する。DC−D
Cコンバータ913は、+22V、+12Vおよび+5
Vを生成してコネクタ915に出力する。コネクタ91
5は例えば中継基板に接続され、中継基板から各電気部
品制御基板および機構部品に必要な電圧の電力が供給さ
れる。なお、トランス911の入力側には、遊技機に対
する電源供給を停止したり開始させたりするための電源
スイッチ918が設置されている。
The transformer 911 converts an AC voltage from an AC power supply to 24V. AC 24V voltage is applied to connector 9
15 is output. Further, the rectifier circuit 912 includes an AC24
A DC voltage of +30 V is generated from V and output to the DC-DC converter 913 and the connector 915. DC-D
The C converter 913 has + 22V, + 12V and + 5V.
V is generated and output to the connector 915. Connector 91
5 is connected to, for example, a relay board, from which electric power of a voltage required for each electric component control board and mechanism components is supplied. A power switch 918 for stopping and starting power supply to the gaming machine is provided on the input side of the transformer 911.

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

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

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

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

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

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

【0084】次に遊技機の動作について説明する。図1
0は、主基板31におけるCPU56が実行するメイン
処理を示すフローチャートである。遊技機に対する電源
が投入されると、メイン処理において、CPU56は、
まず、必要な初期設定を行う(ステップS1)。
Next, the operation of the gaming machine will be described. FIG.
0 is a flowchart showing a main process 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, necessary initial settings are performed (step S1).

【0085】そして、電源断時にバックアップRAM領
域のデータ保護処理(例えばパリティデータの付加等の
停電発生NMI処理)が行われたか否か確認する(ステ
ップS2)。この実施の形態では、不測の電源断が生じ
た場合には、バックアップRAM領域のデータを保護す
るための処理が行われている。そのような保護処理が行
われていた場合をバックアップありとする。バックアッ
プなしを確認したら、CPU56は初期化処理を実行す
る(ステップS2,S3)。なお、この実施の形態で
は、バックアップRAM領域にバックアップデータがあ
るか否かは、電源断時にバックアップRAM領域に設定
されるバックアップフラグの状態によって確認される。
例えば、バックアップフラグ領域に「55H」が設定さ
れていればバックアップあり(オン状態)を意味し、
「55H」以外の値が設定されていればバックアップな
し(オフ状態)を意味する。バックアップフラグ領域に
設定されている「55H」は、停電発生NMI処理にお
いてバックアップRAM領域のデータ保護処理が完了し
たときに設定されたデータであり、バックアップRAM
領域のデータにもとづくパリティコードである。
Then, it is confirmed whether or not the data protection processing of the backup RAM area (for example, the power failure occurrence NMI processing such as the addition of parity data) has been performed when the power is turned off (step S2). In this embodiment, when an unexpected power failure occurs, a process for protecting data in the backup RAM area is performed. The case where such protection processing has been performed is regarded as backup. After confirming that there is no backup, the CPU 56 executes an initialization process (steps S2 and S3). In this embodiment, whether or not there is backup data in the backup RAM area is confirmed by the state of the backup flag set in the backup RAM area when the power is turned off.
For example, if "55H" is set in the backup flag area, it means that there is a backup (on state),
If a value other than “55H” is set, it means that there is no backup (off state). “55H” set in the backup flag area is data set when the data protection processing of the backup RAM area is completed in the power failure occurrence NMI processing.
This is a parity code based on the data of the area.

【0086】バックアップRAM領域にバックアップデ
ータがある場合には、CPU56は、バックアップRA
M領域のデータチェック(例えばパリティチェック)を
行う(ステップS4)。不測の電源断が生じた後に復旧
した場合には、バックアップRAM領域のデータは保存
されていたはずであるから、チェック結果は正常にな
る。チェック結果が正常でない場合には、内部状態を電
源断時の状態に戻すことができないので、停電復旧時で
ない電源投入時に実行される初期化処理を実行する(ス
テップS5,S3)。
If the backup data exists in the backup RAM area, the CPU 56
A data check (for example, a parity check) of the M area is performed (step S4). If the power is restored after an unexpected power failure, the data in the backup RAM area should have been saved, and the check result becomes normal. If the check result is not normal, since the internal state cannot be returned to the state at the time of power-off, the initialization processing executed at the time of power-on, not at the time of restoration from power failure, is executed (steps S5 and S3).

【0087】チェック結果が正常であれば、CPU56
は、内部状態を電源断時の状態に戻すための遊技状態復
旧処理を行う(ステップS6)。図11に示すように、
バックアップフラグの値が「55H」に設定され、か
つ、チェック結果が正常である場合に、ステップS6の
遊技状態復旧処理が実行される。そして、バックアップ
RAM領域に保存されていたPC(プログラムカウン
タ)の退避値がPCに設定され、そのアドレスに復帰す
る(ステップS7)。
If the check result is normal, the CPU 56
Performs a game state restoring process for returning the internal state to the state when the power is turned off (step S6). As shown in FIG.
When the value of the backup flag is set to “55H” and the check result is normal, the game state restoring process of step S6 is executed. Then, the saved value of the PC (program counter) stored in the backup RAM area is set in the PC, and the program returns to the address (step S7).

【0088】通常の初期化処理の実行(ステップS3)
が完了すると、メイン処理で、タイマ割込フラグの監視
(ステップS9)の確認が行われるループ処理に移行す
る。なお、ループ内では、表示用乱数更新処理(ステッ
プS8)も実行される。
Execution of normal initialization processing (step S3)
Is completed, the process shifts to a loop process in which the monitoring of the timer interrupt flag (step S9) is confirmed in the main process. In the loop, a display random number update process (step S8) is also performed.

【0089】なお、この実施の形態では、ステップS2
でバックアップデータの有無が確認された後、バックア
ップデータが存在する場合にステップS4でバックアッ
プ領域のチェックが行われたが、逆に、バックアップ領
域のチェック結果が正常であったことが確認された後、
バックアップデータの有無の確認を行うようにしてもよ
い。また、バックアップデータの有無の確認、またはバ
ックアップ領域のチェックの何れか一方の確認を行うこ
とによって、停電復旧処理を実行するか否かを判定して
もよい。
In this embodiment, step S2
The backup area is checked in step S4 after the backup data is checked in step S4 if the backup data exists. However, after the backup area check result is confirmed to be normal in step S4. ,
The presence or absence of backup data may be confirmed. Alternatively, whether to execute the power failure recovery process may be determined by confirming whether there is backup data or checking the backup area.

【0090】また、例えば停電復旧処理を実行するか否
か判断する場合のパリティチェック(ステップS4)の
際に、すなわち、遊技状態を復旧するか否か判断する際
に、保存されていたRAMデータにおける特別プロセス
フラグ等や始動入賞記憶数データによって、遊技機が遊
技待機状態(図柄変動中でなく、大当り遊技中でなく、
確変中でなく、また、始動入賞記憶がない状態)である
ことが確認されたら、遊技状態復旧処理を行わずに初期
化処理を実行するようにしてもよい。
For example, at the time of the parity check (step S4) when determining whether or not to execute the power failure recovery processing, that is, when determining whether or not to recover the gaming state, the RAM data stored at the time of the parity check is determined. According to the special process flag, etc. and the data of the number of memorized start winnings in the game machine, the game machine is in the game standby state (the symbol is not fluctuating,
If it is confirmed that the game is not being changed reliably and that there is no start winning memory, the initialization process may be executed without performing the game state restoration process.

【0091】図12は、ステップS1の初期設定処理を
示すフローチャートである。初期設定処理において、C
PU56は、まず、割込禁止に設定する(ステップS1
a)。割込禁止に設定すると、CPU56は、割込モー
ドを割込モード2に設定し(ステップS1b)、スタッ
クポインタにスタックポインタ指定アドレスを設定する
(ステップS1c)。そして、CPU56は、内蔵デバ
イスレジスタの初期化を行う(ステップS1d)。ま
た、内蔵デバイス(内蔵周辺回路)であるCTC(カウ
ンタ/タイマ)およびPIO(パラレル入出力ポート)
の初期化(ステップS1e)を行った後、RAMをアク
セス可能状態に設定する(ステップS1f)。
FIG. 12 is a flowchart showing the initial setting process in step S1. In the initial setting process, C
The PU 56 first sets interrupt prohibition (step S1).
a). When the interrupt is set to be prohibited, the CPU 56 sets the interrupt mode to the interrupt mode 2 (step S1b), and sets the stack pointer designated address to the stack pointer (step S1c). Then, the CPU 56 initializes the built-in device register (step S1d). In addition, CTC (counter / timer) and PIO (parallel input / output port) which are built-in devices (built-in peripheral circuits)
Is initialized (step S1e), and the RAM is set in an accessible state (step S1f).

【0092】この実施の形態で用いられているCPU5
6には、マスク可能な割込(INT)のモードとして以
下の3種類のモードが用意されている。なお、マスク可
能な割込が発生すると、CPU56は、自動的に割込禁
止状態に設定するとともに、プログラムカウンタの内容
をスタックにセーブする。
CPU 5 used in this embodiment
6 has the following three types of modes as maskable interrupt (INT) modes. When an interrupt that can be masked occurs, the CPU 56 automatically sets the interrupt disabled state and saves the contents of the program counter on the stack.

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

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

【0095】割込モード2:CPU56の特定レジスタ
(Iレジスタ)の値(1バイト)と内蔵デバイスが出力
する割込ベクタ(1バイト:最下位ビット0)から合成
されるアドレスが、割込番地を示すモードである。すな
わち、割込番地は、上位アドレスが特定レジスタの値と
され下位アドレスが割込ベクタとされた2バイトで示さ
れるアドレスである。従って、任意の(飛び飛びではあ
るが)偶数番地に割込処理を設置することができる。各
内蔵デバイスは割込要求を行うときに割込ベクタを送出
する機能を有している。
Interrupt mode 2: The address synthesized from the value (1 byte) of the specific register (I register) of the CPU 56 and the interrupt vector (1 byte: least significant bit 0) output from the built-in device is the interrupt address. Mode. That is, the interrupt address is an address indicated by 2 bytes in which the upper address is the value of the specific register and the lower address is the interrupt vector. Therefore, an interrupt process can be set at an arbitrary (albeit skipped) even address. Each built-in device has a function of sending an interrupt vector when making an interrupt request.

【0096】よって、割込モード2に設定されると、各
内蔵デバイスからの割込要求を容易に処理することが可
能になり、また、プログラムにおける任意の位置に割込
処理を設置することが可能になる。さらに、割込モード
1とは異なり、割込発生要因毎のそれぞれの割込処理を
用意しておくことも容易である。上述したように、この
実施の形態では、初期設定処理のステップS1bにおい
て、CPU56は割込モード2に設定される。
Therefore, when the interrupt mode 2 is set, it is possible to easily process an interrupt request from each built-in device, and it is possible to set an interrupt process at an arbitrary position in a program. Will be possible. Further, unlike the interrupt mode 1, it is easy to prepare an interrupt process for each interrupt occurrence factor. As described above, in this embodiment, the CPU 56 is set to the interrupt mode 2 in step S1b of the initial setting process.

【0097】図13は、通常の初期化処理(ステップS
3)の処理を示すフローチャートである。図13に示す
ように、初期化処理では、RAMのクリア処理が行われ
る(ステップS3a)。次いで、作業領域初期設定テー
ブルのアドレス値にもとづいて、所定の作業領域(例え
ば、普通図柄判定用乱数カウンタ、普通図柄判定用バッ
ファ、特別図柄左中右図柄バッファ、払出コマンド格納
ポインタなど)に初期値を設定する初期値設定処理(ス
テップS3b)が行われる。そして、2ms毎に定期的
にタイマ割込がかかるようにCPU56に設けられてい
るCTCのレジスタの設定が行われる(ステップS3
c)。すなわち、初期値として2msに相当する値が所
定のレジスタ(時間定数レジスタ)に設定される。そし
て、初期設定処理(ステップS1)において割込禁止
(図12参照)とされているので、初期化処理を終える
前に割込が許可される(ステップS3d)。
FIG. 13 shows a normal initialization process (step S
It is a flowchart which shows the process of 3). As shown in FIG. 13, in the initialization process, the RAM is cleared (step S3a). Then, based on the address value of the work area initial setting table, 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.) is initialized. An initial value setting process for setting a value (step S3b) is performed. Then, the register of the CTC provided in the CPU 56 is set so that the timer is interrupted periodically every 2 ms (step S3).
c). That is, a value corresponding to 2 ms is set in a predetermined register (time constant register) as an initial value. Since the interrupt is prohibited (see FIG. 12) in the initial setting process (step S1), the interrupt is permitted before the initialization process is completed (step S3d).

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

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

【0100】以上に説明したように、この実施の形態で
は、CTCやPIOを内蔵するCPU56に対して、初
期設定処理で割込モード2が設定される。従って、内蔵
CTCを用いた定期的なタイマ割込処理を容易に実現で
きる。また、タイマ割込処理をプログラム上の任意の位
置に設置できる。また、内蔵PIOを用いたスイッチ検
出処理等を容易に割込処理で実現できる。その結果、プ
ログラム構成が簡略化され、プログラム開発工数が低減
する等の効果を得ることができる。
As described above, in this embodiment, the interrupt mode 2 is set in the CPU 56 having a built-in CTC or PIO in the initial setting process. Accordingly, a periodic timer interrupt process using the built-in CTC can be easily realized. Further, the timer interrupt processing can be set at an arbitrary position on the program. Further, switch detection processing using the built-in PIO can be easily realized by interruption processing. As a result, effects such as simplification of the program configuration and reduction in the number of program development steps can be obtained.

【0101】また、この実施の形態では、バックアップ
データの有無により電源断時の状態に復旧するか否かの
判断を行う。従って、停電後の電源復旧時などにおいて
電源投入された時に、バックアップデータ記憶領域の内
容に応じて電源断時の状態に復旧させるか否かの判断を
行うことができる。
In this embodiment, it is determined whether or not the power is restored to the power-off state based on the presence or absence of backup data. Therefore, when the power is turned on, for example, when the power is restored after a power failure, it is possible to determine whether or not to restore the state at the time of the power failure according to the contents of the backup data storage area.

【0102】さらに、バックアップデータの状態によっ
て電源断時の状態に復旧するか否かの判断が行われるの
で、停電後の電源復旧時などにおいて電源投入されたと
きに、バックアップデータ記憶領域の内容の状態に応じ
て電源断時の状態に復旧させるか否かの判断を行うこと
ができる。
Further, since it is determined whether or not the power is restored to the power-off state according to the state of the backup data, when the power is turned on at the time of power restoration after a power failure, the contents of the backup data storage area are restored. It is possible to determine whether to restore the power-off state according to the state.

【0103】図15は、メイン処理におけるステップS
11の遊技制御処理を示すフローチャートである。遊技
制御処理において、CPU56は、まず、スイッチ回路
58を介して、ゲートセンサ12、始動口センサ17、
カウントセンサ23および入賞口スイッチ19a,24
aの状態を入力し、各入賞口や入賞装置に対する入賞が
あったか否か判定する(スイッチ処理:ステップS2
1)。
FIG. 15 shows a step S in the main processing.
It is a flowchart which shows the game control process of No. 11. In the game control process, the CPU 56 firstly controls the gate sensor 12, the starting port sensor 17,
Count sensor 23 and winning opening switches 19a, 24
The state of “a” is input, and it is determined whether or not there is a prize for each winning port or prize device (switch processing: step S2)
1).

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

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

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

【0107】また、CPU56は、払出制御基板37等
に送出される制御コマンドをRAM55の所定の領域に
設定して制御コマンドを送出する処理を行う(コマンド
制御処理:ステップS27)。
The CPU 56 performs a process of setting a control command sent to the payout control board 37 or the like in a predetermined area of the RAM 55 and sending the control command (command control process: step S27).

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

【0109】また、CPU56は、所定の条件が成立し
たときにソレノイド回路59に駆動指令を行う(ステッ
プS30)。ソレノイド回路59は、駆動指令に応じて
ソレノイド16,21を駆動し、可変入賞球装置15ま
たは開閉板20を開状態または閉状態とする。
The CPU 56 issues a drive command to the 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, and brings the variable winning ball device 15 or the open / close plate 20 into an open state or a closed state.

【0110】また、CPU56は、各入賞口への入賞を
検出するためのスイッチ17,23,19a,24aの
検出出力にもとづく賞球数の設定などを行う(ステップ
S31)。具体的には、入賞検出に応じて払出制御基板
37に払出制御コマンドを出力する。払出制御基板37
に搭載されている払出制御用CPU371は、払出制御
コマンドに応じて球払出装置97を駆動する。
The CPU 56 also sets the number of prize balls based on the detection output of the switches 17, 23, 19a, 24a for detecting a winning in each winning opening (step S31). Specifically, a payout control command is output to the payout control board 37 in response to the winning detection. Dispensing control board 37
The payout control CPU 371 mounted on the device drives the ball payout device 97 in accordance with the payout control command.

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

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

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

【0114】図16は、主基板31から払出制御基板3
7に送出される払出制御コマンドのコマンド形態の一例
を示す説明図である。この実施の形態では、払出制御コ
マンドは2バイト構成であり、1バイト目はMODE
(コマンドの分類)を表し、2バイト目はEXT(コマ
ンドの種類)を表す。MODEデータの先頭ビット(ビ
ット7)は必ず「1」とされ、EXTデータの先頭ビッ
ト(ビット7)は必ず「0」とされる。また、他の電気
部品制御基板への制御コマンドも、払出制御コマンドと
同様に2バイト構成とされる。なお、図16に示すコマ
ンド形態は一例であって他のコマンド形態を用いてもよ
い。
FIG. 16 shows a state in which the main board 31 controls the payout control board 3.
FIG. 9 is an explanatory diagram showing an example of a command form of a payout control command sent to the control unit 7; In this embodiment, the payout control command has a 2-byte configuration, and the first byte is MODE.
(Command classification), and the second byte indicates EXT (command type). The first bit (bit 7) of MODE data is always "1", and the first bit (bit 7) of EXT data is always "0". Also, the control commands to the other electrical component control boards have a 2-byte configuration, like the payout control commands. The command form shown in FIG. 16 is an example, and another command form may be used.

【0115】図17は、各電気部品制御手段に対する制
御コマンドを構成する8ビットの制御信号(この場合に
は払出制御信号)とINT信号(この場合には払出制御
信号INT)との関係を示すタイミング図である。図1
7に示すように、MODEまたはEXTのデータが出力
ポート(払出制御信号の場合にはポート1)に出力され
てから、Aで示される期間が経過すると、CPU56
は、データ出力を示す信号であるINT信号をオン状態
にする。また、そこからBで示される期間が経過すると
INT信号をオフ状態にする。さらに、次に送出すべき
データがある場合には、すなわち、MODEデータ送出
後では、Cで示される期間をおいてから2バイト目のデ
ータを出力ポートに送出する。2バイト目のデータに関
して、A,Bの期間は、1バイト目の場合と同様であ
る。
FIG. 17 shows the relationship between an 8-bit control signal (in this case, a payout control signal) and an INT signal (in this case, a payout control signal INT) which constitute a control command for each electric component control means. It is a timing chart. FIG.
As shown in FIG. 7, when the period indicated by A elapses after the MODE or EXT data is output to the output port (port 1 in the case of the payout control signal), the CPU 56
Turns on an INT signal which is a signal indicating data output. When the period indicated by B has elapsed therefrom, the INT signal is turned off. Further, when there is data to be transmitted next, that is, after the MODE data is transmitted, the data of the second byte is transmitted to the output port after a period indicated by C. Regarding the data of the second byte, the periods of A and B are the same as the case of the first byte.

【0116】Aの期間は、CPU56が、コマンドの送
出準備の期間すなわちバッファに送出コマンドを設定す
る処理に要する期間であるとともに、制御信号線(払出
制御信号の場合には払出制御信号線)におけるデータの
安定化のための期間である。また、Bの期間は、INT
信号安定化のための期間である。そして、Cの期間は、
電気部品制御手段(払出制御信号の場合には払出制御手
段)が確実にデータを取り込めるように設定されている
期間である。Cの期間では、信号線上のデータは変化し
ない。すなわち、Cの期間が経過するまでデータ出力が
維持される。
The period A is a period for the CPU 56 to prepare for sending a command, that is, a period required for processing for setting a send command in the buffer, and also to a control signal line (a payout control signal line in the case of a payout control signal). This is the period for data stabilization. The period of B is INT
This is a period for signal stabilization. And the period of C is
This is a period in which the electric component control means (the payout control means in the case of the payout control signal) is set so as to be able to reliably take in data. In the period C, the data on the signal line does not change. That is, the data output is maintained until the period C elapses.

【0117】後述するように、この実施の形態では、払
出制御基板37への払出制御コマンド、表示制御基板8
0への表示制御コマンド、ランプ制御基板35へのラン
プ制御コマンドおよび音声制御基板70への音声制御コ
マンドは、同一のルーチン(共通モジュール)を用いて
送出される。そこで、Cの期間すなわち1バイト目に関
するINT信号がオフ状態になってから2バイト目のデ
ータが送出開始されるまでの期間は、コマンド受信処理
に最も時間がかかる電気部品制御手段における受信処理
時間よりも長くなるように設定される。
As described later, in this embodiment, a payout control command to the payout control board 37, the display control board 8
The display control command to 0, the lamp control command to the lamp control board 35, and the voice control command to the voice control board 70 are transmitted using the same routine (common module). Therefore, the period of C, that is, the period from when the INT signal relating to the first byte is turned off to when the transmission of the second byte data is started, is the reception processing time in the electric component control means which takes the longest time for the command reception processing It is set to be longer than

【0118】なお、各電気部品制御手段は、INT信号
がオン状態(ハイレベル)からオフ状態(ローレベル)
になったことを検知して、例えば割込処理によって1バ
イトのデータの取り込み処理を開始する。
In each electric component control means, the INT signal is changed from the on state (high level) to the off state (low level).
Is detected, the process of capturing 1-byte data is started by, for example, an interrupt process.

【0119】Cの期間が、コマンド受信処理に最も時間
がかかる電気部品制御手段における受信処理時間よりも
長いので、遊技制御手段が、各電気部品制御手段に対す
るコマンド送出処理を共通モジュールで制御しても、い
ずれの電気部品制御手段でも遊技制御手段からの制御コ
マンドを確実に受信することができる。
Since the period C is longer than the reception processing time of the electric component control means which takes the longest time for the command reception processing, the game control means controls the command transmission processing for each electric component control means by the common module. Also, any of the electric component control means can reliably receive the control command from the game control means.

【0120】この実施の形態では、CPU56は、(1
1.776/2)MHzのシステムクロックで動作して
いる。そして、具体的には、Aの期間に138ステート
(1ステート=[2/11.776]μs)かけ、Bの
期間に82ステートかけ、Cの期間に251ステートか
けている。従って、Cの期間はAの期間よりも長い。す
なわち、CPU56は、INT信号出力処理を実行した
後に所定期間が経過すると次のデータを送出できる状態
になるが、その所定期間(Cの期間)は、INT信号出
力処理の前にデータを送出してからINT信号を出力開
始するまでの期間(Aの期間)よりも長い。上述したよ
うに、Aの期間はコマンドの信号線における安定化期間
であり、Cの期間は受信側がデータを取り込むのに要す
る時間を確保するための期間である。従って、Aの期間
をCの期間よりも短くすることによって、受信側の電気
部品制御手段が確実にコマンドを受信できる状態になる
という効果を得ることができるとともに、1つのコマン
ドの送出完了に要する期間が短縮される効果もある。
In this embodiment, the CPU 56 sets (1
1.776 / 2) MHz. Specifically, 138 states (1 state = [2 / 11.776] μs) are applied in the period A, 82 states are applied in the period B, and 251 states are applied in the period C. Therefore, the period of C is longer than the period of A. That is, the CPU 56 is ready to transmit the next data after a predetermined period has elapsed after executing the INT signal output processing, but during the predetermined period (period C), the CPU 56 transmits data before the INT signal output processing. It is longer than the period (period A) from when the output of the INT signal is started. As described above, the period A is a stabilization period of the command signal line, and the period C is a period for securing the time required for the receiving side to capture data. Therefore, by making the period A shorter than the period C, it is possible to obtain the effect that the receiving-side electric component control means can reliably receive the command, and it is necessary to complete the transmission of one command. There is also an effect that the period is shortened.

【0121】図18は、払出制御コマンドの内容の一例
を示す説明図である。図18に示す例において、MOD
E=FF(H),EXT=00(H)のコマンドFF0
0(H)は、払出可能状態を指定する払出制御コマンド
である。MODE=FF(H),EXT=01(H)の
コマンドFF01(H)は、払出停止状態を指定する払
出制御コマンドである。また、MODE=F0(H)の
コマンドF0XX(H)は、賞球個数を指定する払出制
御コマンドである。EXTである「XX」が払出個数を
示す。
FIG. 18 is an explanatory diagram showing an example of the content of the payout control command. In the example shown in FIG.
Command FF0 of E = FF (H) and EXT = 00 (H)
0 (H) is a payout control command for specifying a payable state. A command FF01 (H) of MODE = FF (H) and EXT = 01 (H) is a payout control command for specifying a payout stop state. The command F0XX (H) of MODE = F0 (H) is a payout control command for specifying the number of winning balls. "XX" which is EXT indicates the number of payouts.

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

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

【0124】また、1つのコマンド(指令情報)は2バ
イト構成であるから、ノイズの影響を低減することがで
きる。すなわち、1つのコマンドが1バイトのコマンド
データで構成されている場合には、ノイズの影響でデー
タ化けが生じてもそのまま受信され、誤った制御がなさ
れてしまうおそれがあるが、2バイト構成であれば、双
方がともに正しく受信された場合に初めて、コマンドに
もとづく制御が開始されるので、1バイト構成の場合に
比べて誤動作の可能性を低減することができる。
Further, since one command (command information) has a 2-byte structure, the influence of noise can be reduced. In other words, when one command is composed of one byte of command data, even if data is garbled due to noise, it may be received as it is and erroneous control may be performed. If so, the control based on the command is started only when both are correctly received, so that the possibility of malfunction can be reduced as compared with the case of the 1-byte configuration.

【0125】図19は、図15に示された遊技制御処理
におけるスイッチ処理(ステップS21)の賞球制御に
関連する部分を示すフローチャートである。スイッチ処
理において、CPU56は、球切れスイッチ187によ
って球切れを検出すると球切れ状態フラグをセットする
(ステップS121,S122)。また、球切れスイッ
チ187によって球切れでないことを検出すると球切れ
状態フラグをリセットする(ステップS121,S12
3)。
FIG. 19 is a flowchart showing a portion related to the winning ball control of the switch process (step S21) in the game control process shown in FIG. In the switch processing, the CPU 56 sets an out-of-ball state flag when the out-of-ball switch is detected by the out-of-ball switch 187 (steps S121 and S122). When it is detected that the ball is not out of ball by the out-of-ball switch 187, the out-of-ball flag is reset (steps S121 and S12).
3).

【0126】次いで、満タンスイッチ48によって下皿
満タンを検出すると満タンフラグをセットする(ステッ
プS124,S125)。また、満タンスイッチ48に
よって下皿満タンでないことを検出すると満タンフラグ
をリセットする(ステップS124,S126)。
Next, when the lower tray full level is detected by the full level switch 48, a full level flag is set (steps S124 and S125). When it is detected that the lower plate is not full by the full tank switch 48, the full tank flag is reset (steps S124 and S126).

【0127】さらに、カウントスイッチ23がオンした
ことを検出すると、15個カウンタを+1し(ステップ
S131,S132)、入賞口スイッチ19a,24a
のいずれかがオンしたことを検出すると、10個カウン
タを+1し(ステップS133,S134)、始動口ス
イッチ17がオンしたことを検出すると6個カウンタを
+1する(ステップS135,S136)。
Further, when it is detected that the count switch 23 is turned on, the 15 counter is incremented by 1 (steps S131 and S132), and the winning opening switches 19a and 24a are set.
Is detected, the ten counters are incremented by one (steps S133 and S134). When the start port switch 17 is detected to be on, the six counters are incremented by one (steps S135 and S136).

【0128】なお、この実施の形態では、大入賞口を経
た入賞については15個の賞球を払い出し、始動入賞口
14を経た入賞については6個の賞球を払い出し、その
他の入賞口19,24および入賞球装置を経た入賞につ
いては10個の賞球を払い出すとする。15個カウンタ
は大入賞口への入賞数を計数するためのカウンタであ
り、10個カウンタは普通入賞口への入賞数を計数する
ためのカウンタであり、6個カウンタは始動入賞口への
入賞数を計数するためのカウンタである。
In this embodiment, 15 prize balls are paid out for a prize passing through the special winning opening, and 6 prize balls are paid out for a prize passing through the starting winning opening 14. It is assumed that 10 prize balls are paid out for the prize through the prize ball device and the prize ball device. The 15 counter is a counter for counting the number of winnings to the special winning opening, the 10 counter is a counter for counting the number of winnings to the normal winning opening, and the 6 counter is a winning for the starting winning opening. This is a counter for counting the number.

【0129】図20は、図15に示された遊技制御処理
における入賞球信号処理(ステップS31)の一例を示
すフローチャートである。この例では、入賞球信号処理
において、CPU56は、まず、払出停止状態であるか
否か確認する(ステップS201)。払出停止状態は、
払出制御基板37に対して払出停止状態指定のコマンド
を送出した後の状態である。払出停止状態でなければ、
上述した球切れ状態フラグまたは満タンフラグがオンに
なったか否かを確認する(ステップS202)。
FIG. 20 is a flowchart showing an example of the winning ball signal processing (step S31) in the game control processing shown in FIG. In this example, in the winning ball signal processing, the CPU 56 first checks whether or not the payout is stopped (step S201). The withdrawal stop state is
This is the state after the command to specify the payout stop state is sent to the payout control board 37. If you are not in the withdrawal state,
It is confirmed whether or not the above-mentioned ball-out state flag or full tank flag has been turned on (step S202).

【0130】いずれかがオン状態に変化したときには、
払出停止状態指定に関するコマンド送信テーブルの設定
を行う(ステップS203)。コマンド送信テーブルに
ついては後で詳しく説明する。なお、ステップS202
において、いずれか一方のフラグが既にオン状態であっ
たときに他方のフラグがオン状態になったときには、コ
マンド送信テーブルの設定(ステップS203)は行わ
れない。
When either of them changes to the ON state,
The command transmission table for the payout stop state designation is set (step S203). The command transmission table will be described later in detail. Step S202
In, when one of the flags is already in the ON state and the other flag is in the ON state, the command transmission table is not set (step S203).

【0131】また、払出停止状態であれば、球切れ状態
フラグおよび満タンフラグがともにオフ状態になったか
否かを確認する(ステップS204)。ともにオフ状態
となったときには、払出停止解除指定に関するコマンド
送信テーブルの設定を行う(ステップS205)。
If the payout is stopped, it is checked whether both the out-of-ball state flag and the full tank flag have been turned off (step S204). When both are turned off, a command transmission table relating to the payout stop release designation is set (step S205).

【0132】次いで、CPU56は、入賞に応じた賞球
個数に関する払出制御コマンドをコマンド送信テーブル
に設定する制御を行う。まず、15個カウンタの値をチ
ェックする(ステップS211)。上述したように、1
5個カウンタは、遊技球が大入賞口に入賞してカウント
スイッチ23がオンするとカウントアップされる。15
個カウンタの値が0でない場合には、15個の賞球個数
指示に関するコマンド送信テーブルの設定を行う(ステ
ップS212)。また、15個カウンタの値を−1する
(ステップS213)。
Next, the CPU 56 controls to set a payout control command relating to the number of winning balls according to the winning in the command transmission table. First, the values of the 15 counters are checked (step S211). As mentioned above, 1
The five counters are counted up when the game ball wins the big winning opening and the count switch 23 is turned on. Fifteen
If the value of the number counter is not 0, a command transmission table relating to the fifteen winning ball number instructions is set (step S212). Further, the value of the 15 counters is decremented by one (step S213).

【0133】15個カウンタの値が0であれば、10個
カウンタの値をチェックする(ステップS215)。上
述したように、10個カウンタは、遊技球が入賞口に入
賞して入賞口スイッチ19a,24aがオンするとカウ
ントアップされる。10個カウンタの値が0でない場合
には、10個の賞球個数指示に関するコマンド送信テー
ブルの設定を行う(ステップS216)。また、15個
カウンタの値を−1する(ステップS217)。
If the value of the 15 counter is 0, the value of the 10 counter is checked (step S215). As described above, the ten counters are counted up when a game ball wins a winning opening and the winning opening switches 19a and 24a are turned on. If the value of the ten counter is not 0, the command transmission table for the ten winning ball number instructions is set (step S216). Further, the value of the 15 counter is decremented by one (step S217).

【0134】10個カウンタの値が0であれば、6個カ
ウンタの値をチェックする(ステップS221)。上述
したように、6個カウンタは、遊技球が始動入賞口に入
賞して始動口スイッチ17がオンするとカウントアップ
される。6個カウンタの値が0でない場合には、6個の
賞球個数指示に関するコマンド送信テーブルの設定を行
う(ステップS222)。また、6個カウンタの値を−
1する(ステップS223)。
If the value of the ten counter is 0, the value of the six counter is checked (step S221). As described above, the six counters are counted up when the game ball wins the starting winning port and the starting port switch 17 is turned on. If the value of the six counter is not 0, the command transmission table for the six winning ball number instructions is set (step S222). Also, the value of the six counters is-
1 (step S223).

【0135】以上にようにして、遊技制御手段から払出
制御基板37に払出制御コマンドを出力しようとすると
きに、コマンド送信テーブルの設定が行われる。図21
(A)は、コマンド送信テーブルの一構成例を示す説明
図である。1つのコマンド送信テーブルは3バイトで構
成され、1バイト目にはINTデータが設定される。ま
た、2バイト目のコマンドデータ1には、払出制御コマ
ンドの1バイト目のMODEデータが設定される。そし
て、3バイト目のコマンドデータ2には、払出制御コマ
ンドの2バイト目のEXTデータが設定される。
As described above, when the payout control command is output from the game control means to the payout control board 37, the command transmission table is set. FIG.
(A) is an explanatory view showing a configuration example of a command transmission table. One command transmission table is composed of three bytes, and INT data is set in the first byte. In the command data 1 of the second byte, MODE data of the first byte of the payout control command is set. In the command data 2 of the third byte, EXT data of the second byte of the payout control command is set.

【0136】なお、EXTデータそのものがコマンドデ
ータ2の領域に設定されてもよいが、コマンドデータ2
には、EXTデータが格納されているテーブルのアドレ
スを指定するためのデータが設定されるようにしてもよ
い。この実施の形態では、コマンドデータ2のビット7
(ワークエリア参照ビット)が0あれば、コマンドデー
タ2にEXTデータそのものが設定されていることを示
す。なお、そのようなEXTデータはビット7が0であ
るデータである。また、ワークエリア参照ビットが1あ
れば、他の7ビットが、EXTデータが格納されている
テーブルのアドレスを指定するためのオフセットである
ことを示す。
Although the EXT data itself may be set in the command data 2 area, the command data 2
May be set to data for specifying an address of a table in which EXT data is stored. In this embodiment, bit 7 of command data 2
If (work area reference bit) is 0, it indicates that the EXT data itself is set in the command data 2. Such EXT data is data in which bit 7 is 0. If the work area reference bit is 1, the other 7 bits indicate an offset for specifying an address of a table in which EXT data is stored.

【0137】この実施の形態では複数のコマンド送信テ
ーブルが用意され、使用すべきコマンド送信テーブルは
ポインタで指定される。また、複数のコマンド送信テー
ブルはリングバッファとして使用される。従って、CP
U56は、入賞球信号処理において、書込ポインタが指
しているコマンド送信テーブルに、INTデータ、コマ
ンドデータ1およびコマンドデータ2を設定する。そし
て、書込ポインタの値を更新する。1つのコマンド送信
テーブルは3バイト構成であるから、具体的には、書込
ポインタ値は+3される。
In this embodiment, a plurality of command transmission tables are prepared, and the command transmission table to be used is specified by a pointer. Also, a plurality of command transmission tables are used as a ring buffer. Therefore, CP
U56 sets the INT data, the command data 1 and the command data 2 in the command transmission table pointed to by the write pointer in the winning ball signal processing. Then, the value of the write pointer is updated. Since one command transmission table has a 3-byte configuration, specifically, the write pointer value is +3.

【0138】なお、図20に示す処理では、1回の処理
について1つの払出制御コマンドに関するコマンド送信
テーブル設定処理しか行われないが、複数のコマンド送
信テーブルが設けられているので、複数のコマンド送信
テーブル設定処理を行うように構成してもよい。例え
ば、複数の入賞が15個カウンタ、10個カウンタおよ
び6個カウンタに記憶されている場合に、1回の入賞球
信号処理で、複数のコマンド送信テーブル設定処理を行
ってもよい。
In the process shown in FIG. 20, only one command transmission table setting process for one payout control command is performed in one process. However, since a plurality of command transmission tables are provided, a plurality of command transmission tables are provided. You may comprise so that a table setting process may be performed. For example, when a plurality of winnings are stored in the 15 counter, the 10 counter, and the 6 counter, a plurality of command transmission table setting processes may be performed by one winning ball signal processing.

【0139】また、ここでは、払出制御コマンドについ
て説明するが、表示制御コマンド、ランプ制御コマンド
および音声制御コマンドを送出するときにも、図21
(A)に示すようなコマンド送信テーブルに、INTデ
ータ、コマンドデータ1およびコマンドデータ2が設定
される。その際にも、書込ポインタが指しているコマン
ド送信テーブルに、INTデータ、コマンドデータ1お
よびコマンドデータ2が設定される。
Although the payout control command is described here, the display control command, the lamp control command, and the voice control command are also transmitted when the display control command, the lamp control command, and the voice control command are transmitted.
INT data, command data 1 and command data 2 are set in a command transmission table as shown in FIG. At that time, the INT data, the command data 1 and the command data 2 are set in the command transmission table pointed to by the write pointer.

【0140】図21(B)INTデータの一構成例を示
す説明図である。INTデータにおけるビット0は、払
出制御基板37に払出制御コマンドを送出すべきか否か
を示す。ビット0が「1」であるならば、払出制御コマ
ンドを送出すべきことを示す。従って、CPU56は、
入賞球信号処理において、INTデータに「01
(H)」を設定する。
FIG. 21B is an explanatory diagram showing an example of the configuration of INT data. Bit 0 in the INT data indicates whether or not a payout control command should be sent to the payout control board 37. If bit 0 is "1", it indicates that a payout control command should be sent. Therefore, the CPU 56
In the winning ball signal processing, "01" is added to the INT data.
(H) ”is set.

【0141】なお、INTデータのビット1,2,3
は、それぞれ、表示制御コマンド、ランプ制御コマン
ド、音声制御コマンドを送出すべきか否かを示すビット
であり、CPU56は、それらのコマンドを送出すべき
タイミングになったら、特別図柄プロセス処理等で、ポ
インタが指しているコマンド送信テーブルに、INTデ
ータ、コマンドデータ1およびコマンドデータ2を設定
する。それらのコマンドを送出するときには、INTデ
ータの該当ビットが「1」に設定され、コマンドデータ
1およびコマンドデータ2にMODEデータおよびEX
Tデータが設定される。
The bits 1, 2, 3 of the INT data
Are bits indicating whether or not to transmit a display control command, a lamp control command, and a voice control command, respectively. When it is time to transmit those commands, the CPU 56 performs special symbol process processing or the like. The INT data, command data 1 and command data 2 are set in the command transmission table indicated by the pointer. When these commands are transmitted, the corresponding bit of the INT data is set to "1", and MODE data and EX data are added to command data 1 and command data 2.
T data is set.

【0142】図22は、図15に示された遊技制御処理
におけるコマンド制御処理(ステップS27)の処理例
を示すフローチャートである。コマンド制御処理は、コ
マンド出力処理とINT信号出力処理とを含む処理であ
る。コマンド制御処理において、CPU56は、まず、
コマンド送信テーブルのアドレス(読出ポインタの内
容)をスタック等に退避する(ステップS231)。そ
して、読出ポインタが指していたコマンド送信テーブル
のINTデータを引数1にロードする(ステップS23
2)。引数1は、後述するコマンド送信処理に対する入
力情報になる。また、コマンド送信テーブルを指すアド
レスを+1する(ステップS233)。従って、コマン
ド送信テーブルを指すアドレスは、コマンドデータ1の
アドレスに一致する。
FIG. 22 is a flowchart showing an example of a command control process (step S27) in the game control process shown in FIG. The command control process is a process including a command output process and an INT signal output process. In the command control process, the CPU 56 first
The address of the command transmission table (contents of the read pointer) is saved in a stack or the like (step S231). Then, the INT data of the command transmission table pointed to by the read pointer is loaded into the argument 1 (step S23).
2). Argument 1 is input information for a command transmission process described later. Further, the address indicating the command transmission table is incremented by 1 (step S233). Therefore, the address indicating the command transmission table matches the address of the command data 1.

【0143】そこで、CPU56は、コマンドデータ1
を読み出して引数2に設定する(ステップS234)。
引数2も、後述するコマンド送信処理に対する入力情報
になる。そして、コマンド送信処理ルーチンをコールす
る(ステップS235)。
Therefore, the CPU 56 sets the command data 1
Is read and set as argument 2 (step S234).
The argument 2 also becomes input information for a command transmission process described later. Then, a command transmission processing routine is called (step S235).

【0144】図23は、コマンド送信ルーチンを示すフ
ローチャートである。コマンド送信ルーチンにおいて、
CPU56は、まず、引数1に設定されているデータす
なわちINTデータを、比較値として決められているワ
ークエリアに設定する(ステップS251)。次いで、
送信回数=4を、処理数として決められているワークエ
リアに設定する(ステップS252)。そして、払出制
御信号を出力するためのポート1(出力ポート571)
のアドレスをIOアドレスにセットする(ステップS2
53)。
FIG. 23 is a flowchart showing a command transmission routine. In the command transmission routine,
First, the CPU 56 sets the data set in the argument 1, that is, the INT data, in the work area determined as the comparison value (step S <b> 251). Then
The number of transmissions = 4 is set in the work area determined as the number of processes (step S252). Then, port 1 for outputting the payout control signal (output port 571)
Is set to the IO address (step S2).
53).

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

【0146】キャリービットが1になった場合には、引
数2に設定されているデータ、この場合にはコマンドデ
ータ1(すなわちMODEデータ)を、IOアドレスと
して設定されているアドレスに出力する(ステップS2
56)。最初のシフト処理が行われたときにはIOアド
レスにポート1(出力ポート571)のアドレスが設定
されているので、結局、払出制御コマンドのMODEデ
ータがポート1に出力される。
When the carry bit becomes 1, the data set in the argument 2, in this case, the command data 1 (ie, MODE data) is output to the address set as the IO address (step S2
56). When the first shift processing is performed, since the address of port 1 (output port 571) is set in the IO address, MODE data of the payout control command is output to port 1 after all.

【0147】次いで、CPU56は、IOアドレスを1
加算するとともに(ステップS257)、処理数を1減
算する(ステップS258)。加算前にポート1を示し
ていた場合には、IOアドレスに対する加算処理によっ
て、IOアドレスにはポート2(出力ポート572)の
アドレスが設定される。ポート2(出力ポート572)
は、表示制御コマンドを出力するためのポートである。
そして、CPU56は、処理数の値を確認し(ステップ
S259)、値が0になっていなければ、ステップS2
54に戻る。ステップS254で再度シフト処理が行わ
れる。
Next, the CPU 56 sets the IO address to 1
While adding (step S257), 1 is subtracted from the number of processes (step S258). If port 1 is indicated before the addition, the address of port 2 (output port 572) is set as the IO address by the addition processing for the IO address. Port 2 (output port 572)
Is a port for outputting a display control command.
Then, the CPU 56 checks the value of the number of processes (step S259). If the value is not 0, the process proceeds to step S2.
Return to 54. The shift process is performed again in step S254.

【0148】2回目のシフト処理ではINTデータにお
けるビット1の値が押し出され、ビット1の値に応じて
キャリーフラグが「1」または「0」になる。従って、
表示制御コマンドを送出すべきことが指定されているか
否かのチェックが行われる。同様に、3回目および4回
目のシフト処理によって、ランプ制御コマンドおよび音
声制御コマンドを送出すべきことが指定されているか否
かのチェックが行われる。このように、それぞれのシフ
ト処理が行われるときに、IOアドレスには、シフト処
理によってチェックされるコマンド(払出制御コマン
ド、表示制御コマンド、ランプ制御コマンド、音声制御
コマンド)に対応したIOアドレスが設定されている。
よって、キャリーフラグが「1」になったときには、対
応する出力ポート(ポート1〜ポート4)に制御コマン
ドが送出される。すなわち、1つの共通モジュールで、
各電気部品制御手段に対する制御コマンドの送出処理を
行うことができる。
In the second shift processing, the value of bit 1 in the INT data is pushed out, and the carry flag becomes "1" or "0" according to the value of bit 1. Therefore,
A check is made as to whether it is specified that a display control command should be sent. Similarly, in the third and fourth shift processes, it is checked whether or not it is specified that the ramp control command and the voice control command should be transmitted. As described above, when each shift process is performed, the IO address corresponding to the command (payout control command, display control command, lamp control command, voice control command) set by the shift process is set in the IO address. Have been.
Therefore, when the carry flag becomes "1", a control command is sent to the corresponding output port (port 1 to port 4). That is, with one common module,
Transmission processing of a control command to each electric component control means can be performed.

【0149】また、このように、シフト処理のみによっ
てどの電気部品制御手段に対して制御コマンドを出力す
べきかが判定されるので、いずれの電気部品制御手段に
対して制御コマンドを出力すべきか判定する処理が簡略
化されている。
In this way, since it is determined which control control unit should output the control command by only the shift processing, it is determined which control control unit should output the control command. Processing has been simplified.

【0150】次に、CPU56は、シフト処理開始前の
INTデータが格納されている引数1の内容を読み出し
(ステップS260)、読み出したデータをポート0
(出力ポート570)に出力する(ステップS26
1)。INTデータでは、ステップS251〜S259
の処理で出力された制御コマンド(払出制御コマンド、
表示制御コマンド、ランプ制御コマンド、音声制御コマ
ンド)に応じたINT信号の出力ビットに対応したビッ
トが「1」になっている。従って、ポート1〜ポート4
のいずれかに出力された制御コマンド(払出制御コマン
ド、表示制御コマンド、ランプ制御コマンド、音声制御
コマンド)に対応したINT信号がオン状態になる。
Next, the CPU 56 reads the contents of the argument 1 in which the INT data before the start of the shift processing is stored (step S260), and transfers the read data to the port 0.
(Output port 570) (step S26).
1). For the INT data, steps S251 to S259
Control commands (payout control commands,
The bit corresponding to the output bit of the INT signal according to the display control command, the lamp control command, and the voice control command is “1”. Therefore, port 1 to port 4
The INT signal corresponding to the control command (payout control command, display control command, lamp control command, voice control command) output to any of the above is turned on.

【0151】次いで、CPU56は、ウェイトカウンタ
に所定値を設定し(ステップS262)、その値が0に
なるまで1ずつ減算する(ステップS263,S26
4)。この処理は、図17に示されたBの期間を設定す
るための処理である。ウェイトカウンタの値が0になる
と、クリアデータ(00)を設定して(ステップS26
5)、そのデータをポート0に出力する(ステップS2
66)。よって、INT信号はオフ状態になる。そし
て、ウェイトカウンタに所定値を設定し(ステップS2
62)、その値が0になるまで1ずつ減算する(ステッ
プS268,S269)。この処理は、図17に示され
たCの期間を設定するための処理である。
Next, the CPU 56 sets a predetermined value in the weight counter (step S262), and decrements by one until the value becomes 0 (steps S263, S26).
4). This process is a process for setting the period B shown in FIG. When the value of the wait counter becomes 0, clear data (00) is set (step S26).
5), and outputs the data to port 0 (step S2)
66). Therefore, the INT signal is turned off. Then, a predetermined value is set in the weight counter (step S2).
62), and decrement by 1 until the value becomes 0 (steps S268 and S269). This process is a process for setting the period C shown in FIG.

【0152】従って、ステップS267でウェイトカウ
ンタに設定される値は、Cの期間が、制御コマンド受信
対象となる全ての電気部品制御手段が確実にコマンド受
信処理を行うのに十分な期間になるような値である。ま
た、ウェイトカウンタに設定される値は、Cの期間が、
ステップS251〜S259の処理に要する時間よりも
長くなるような値である。
Therefore, the value set in the wait counter in step S267 is such that the period of C is a period sufficient for all the electric component control means to receive the control command to reliably perform the command receiving process. Value. The value set in the wait counter is such that the period of C is
This value is longer than the time required for the processing in steps S251 to S259.

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

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

【0155】次に、CPU56は、コマンド送信ルーチ
ンをコールする(ステップS242)。従って、MOD
Eデータの送出の場合と同様のタイミングでEXTデー
タが送出される。その後、CPU56は、コマンド送信
テーブルのアドレスを復帰し(ステップS243)、コ
マンド送信テーブルを指す読出ポインタの値を更新する
(ステップS244)。1つのコマンド送信テーブルは
3バイト構成であるから、具体的には、読出ポインタの
値は+3される。
Next, the CPU 56 calls a command transmission routine (step S242). Therefore, MOD
The EXT data is transmitted at the same timing as the transmission of the E data. Thereafter, the CPU 56 restores the address of the command transmission table (step S243), and updates the value of the read pointer pointing to the command transmission table (step S244). Since one command transmission table has a 3-byte configuration, specifically, the value of the read pointer is +3.

【0156】以上のようにして、2バイト構成の制御コ
マンド(払出制御コマンド、表示制御コマンド、ランプ
制御コマンド、音声制御コマンド)が、対応する電気部
品制御手段に送信される。電気部品制御手段ではINT
信号の立ち下がりを検出すると制御コマンドの取り込み
処理を開始するのであるが、いずれの電気部品制御手段
についても、取り込み処理が完了する前に遊技制御手段
からの新たな信号が信号線に出力されることはない。す
なわち、各電気部品制御手段において、確実なコマンド
受信処理が行われる。なお、各電気部品制御手段は、I
NT信号の立ち上がりで制御コマンドの取り込み処理を
開始してもよい。また、INT信号の極性を図17に示
された場合と逆にしてもよい。
As described above, the 2-byte control command (dispensing control command, display control command, lamp control command, voice control command) is transmitted to the corresponding electric component control means. INT in the electrical component control means
When the falling of the signal is detected, the control command fetching process is started. Regardless of the electric component control means, a new signal from the game control means is output to the signal line before the fetching process is completed. Never. That is, a reliable command receiving process is performed in each electric component control unit. In addition, each electric component control means is I
The control command fetch process may be started at the rise of the NT signal. Further, the polarity of the INT signal may be reversed from that shown in FIG.

【0157】また、この実施の形態では、複数のコマン
ド送信テーブルがリングバッファとして用いられ、図2
2に示すコマンド制御処理では、読出ポインタが指して
いるコマンド送信テーブルを対象としてコマンド出力制
御が行われ、コマンド送信テーブルにデータを設定する
処理、例えば、図20に示す入賞球信号処理では、書込
ポインタが指すコマンド送信テーブルを対象としてコマ
ンド設定処理が行われる。従って、同時に複数のコマン
ド送出要求が発生しても、それらの要求にもとづくコマ
ンド出力処理は問題なく実行される。
In this embodiment, a plurality of command transmission tables are used as a ring buffer.
In the command control process shown in FIG. 2, command output control is performed on the command transmission table pointed to by the read pointer, and in the process of setting data in the command transmission table, for example, in the winning sphere signal process shown in FIG. The command setting process is performed on the command transmission table indicated by the embedded pointer. Therefore, even if a plurality of command transmission requests occur at the same time, the command output process based on those requests is executed without any problem.

【0158】次に、払出制御手段の動作について説明す
る。図24は、払出制御用CPU371周りの一構成例
を示すブロック図である。図24に示すように、電源基
板910の電源監視回路(電源監視手段)からの電源断
信号(電圧低下信号)が、バッファ回路960を介して
払出制御用CPU371のマスク不能割込端子(XNM
I端子)に接続されている。電源監視回路は、遊技機が
使用する各種直流電源のうちのいずれかの電源の電圧を
監視して電源電圧低下を検出する回路である。この実施
の形態では、VSLの電源電圧を監視して電圧値が所定値
以下になるとローレベルの電源断信号を発生する。VSL
は、遊技機で使用される直流電圧のうちで最大のもので
あり、この例では+30Vである。従って、払出制御用
CPU371は、割込処理によって電源断の発生を確認
することができる。
Next, the operation of the payout control means will be described. FIG. 24 is a block diagram illustrating a configuration example around the payout control CPU 371. As shown in FIG. 24, a power supply cutoff signal (voltage drop signal) from a power supply monitoring circuit (power supply monitoring means) of the power supply board 910 receives a non-maskable interrupt terminal (XNM) of the payout control CPU 371 via the buffer circuit 960.
I terminal). The power supply monitoring circuit is a circuit that monitors a voltage of any one of various DC power supplies used by the gaming machine and detects a power supply voltage drop. In this embodiment, the power supply voltage of VSL is monitored, and when the voltage value becomes equal to or lower than a predetermined value, a low-level power-off signal is generated. VSL
Is the largest DC voltage used in gaming machines, and is +30 V in this example. Therefore, the payout control CPU 371 can confirm the occurrence of power interruption by the interrupt processing.

【0159】この実施の形態で用いられる払出制御用C
PU371も、主基板31のCPU56と同様に、PI
OおよびCTCを内蔵している。ただし、この実施の形
態では内蔵PIOを使用しない。その場合には、例え
ば、全ポートを入力モードとして、全ポートをグラウン
ドレベルに接続する。
Dispensing control C used in this embodiment
The PU 371 also has a PI like the CPU 56 of the main board 31.
O and CTC are built in. However, in this embodiment, no built-in PIO is used. In that case, for example, all ports are set to the input mode, and all ports are connected to the ground level.

【0160】また、主基板31のCPU56と同様に、
払出制御用CPU371も、割込モード0〜2のいずれ
かに設定可能であり、CTCは、以下に説明するような
タイマモードまたはカウンタモードで動作可能である。
また、CTCは4つのチャネルを有している。具体的に
は、4個のタイマカウンタレジスタCLK/TRG0〜
3(チャネル0〜3のカウンタ)を有する。動作モード
は、チャネル毎に設定可能である。
Also, similarly to the CPU 56 of the main board 31,
The payout control CPU 371 can also be set to any of the interrupt modes 0 to 2, and the CTC can operate in a timer mode or a counter mode as described below.
Also, CTC has four channels. Specifically, four timer counter registers CLK / TRG0 to
3 (counters for channels 0 to 3). The operation mode can be set for each channel.

【0161】各タイマカウンタレジスタCLK/TRG
0〜3の値は、対応するCLK/TRG端子に入力され
るクロック信号に応じてカウントダウンされ、カウント
値が0になると割込を発生することができる。従って、
CTCのチャネル0〜3は、それぞれ割込発生部となる
ことができる。チャネル0の優先順位が最も高く、以
下、順次優先順位が下がる。すなわち、複数のタイマカ
ウンタレジスタCLK/TRGのカウント値が同時に0
になった場合には、番号が小さいチャネルが優先され、
それらのチャネルが割込を発生するように設定されてい
れば、番号が小さいチャネルからの割込が先に受け付け
られる。
Each timer counter register CLK / TRG
The values of 0 to 3 are counted down according to the clock signal input to the corresponding CLK / TRG terminal, and when the count value becomes 0, an interrupt can be generated. Therefore,
Each of the channels 0 to 3 of the CTC can be an interrupt generation unit. The priority of the channel 0 is the highest, and then the priority sequentially decreases. That is, the count values of the plurality of timer counter registers CLK / TRG are simultaneously set to 0.
, The channel with the lower number has priority,
If those channels are set to generate an interrupt, an interrupt from a channel with a lower number is accepted first.

【0162】この実施の形態では、内蔵CTCのチャネ
ル3がタイマモードで使用され、チャネル2がカウンタ
モードで使用される。また、チャネル3はタイマ割込の
発生源として使用され、チャネル2は払出制御コマンド
受信用として使用される。
In this embodiment, channel 3 of the built-in CTC is used in the timer mode, and channel 2 is used in the counter mode. Channel 3 is used as a timer interrupt source, and channel 2 is used for receiving a payout control command.

【0163】カウンタモード:払出制御用CPU371
のCLK/TRG端子にクロック信号の立上がりまたは
立下がりが入力されるとカウント値を−1する。そのチ
ャネルに対して割込発生許可が設定されている場合に
は、カウント値が0になると割込を発生するとともに、
初期値をカウンタに再ロードする。また、割込ベクタの
設定がなされていれば、カウント値が0になったとき
に、内部データバス上に割込ベクタを送出する。
Counter mode: payout control CPU 371
When the rising or falling edge of the clock signal is input to the CLK / TRG terminal, the count value is decremented by one. If interrupt generation permission is set for the channel, an interrupt is generated when the count value reaches 0,
Reload the initial value into the counter. If the interrupt vector has been set, the interrupt vector is sent out on the internal data bus when the count value becomes zero.

【0164】タイマモード:システムクロック(内部ク
ロック)を1/16分周または1/256分周したクロ
ック信号にもとづいてカウント値を−1する。そのチャ
ネルに対して割込発生許可が設定されている場合には、
カウント値が0になると割込を発生するとともに、初期
値をカウンタに再ロードする。また、割込ベクタの設定
がなされていれば、カウント値が0になったときに、内
部データバス上に割込ベクタを送出する。
Timer mode: The count value is decremented by one based on a clock signal obtained by dividing the system clock (internal clock) by 1/16 or 1/256. If interrupt generation permission is set for that channel,
When the count value becomes 0, an interrupt is generated, and the initial value is reloaded into the counter. If the interrupt vector has been set, the interrupt vector is sent out on the internal data bus when the count value becomes zero.

【0165】払出制御用CPU371のCLK/TRG
2端子には、主基板31からのINT信号(払出制御信
号INT)が接続されている。CLK/TRG2端子に
クロック信号が入力されると、払出制御用CPU371
に内蔵されているタイマカウンタレジスタCLK/TR
G2(CTCのチャネル2のカウンタ)の値がダウンカ
ウントされる。そして、レジスタ値が0になると割込が
発生する。従って、図25に示すように、タイマカウン
タレジスタCLK/TRG2の初期値を「1」に設定し
ておけば、INT信号の入力に応じてレジスタ値が0に
なって割込が発生することになる。
CLK / TRG of payout control CPU 371
An INT signal (payout control signal INT) from the main board 31 is connected to the two terminals. When a clock signal is input to the CLK / TRG2 terminal, the payout control CPU 371
Timer / counter register CLK / TR built in
The value of G2 (CTC channel 2 counter) is down-counted. When the register value becomes 0, an interrupt occurs. Therefore, as shown in FIG. 25, if the initial value of the timer counter register CLK / TRG2 is set to “1”, the register value becomes 0 in response to the input of the INT signal and an interrupt occurs. Become.

【0166】払出制御基板37には、システムリセット
回路975も搭載されている。リセットIC976は、
電源投入時に、外付けのコンデンサに容量で決まる所定
時間だけ出力をローレベルとし、所定時間が経過すると
出力をハイレベルにする。また、リセットIC976
は、電源基板910に搭載されている電源監視回路が監
視する電源電圧と等しい電源電圧であるVSLの電源電圧
を監視して電圧値が所定値(例えば+9V)以下になる
と出力をローレベルにする。従って、電源断時には、リ
セットIC976からの電圧低下信号がローレベルにな
ることによって払出制御用CPU371がシステムリセ
ットされる。
The payout control board 37 also has a system reset circuit 975 mounted thereon. Reset IC 976
When the power is turned on, the output is set to the low level for a predetermined time determined by the capacity of the external capacitor, and the output is set to the high level after the predetermined time has elapsed. Also, reset IC 976
Monitors the power supply voltage of VSL, which is the same power supply voltage as the power supply voltage monitored by the power supply monitoring circuit mounted on the power supply board 910, and sets the output to a low level when the voltage value falls below a predetermined value (for example, + 9V). . Therefore, when the power is turned off, the voltage drop signal from the reset IC 976 becomes low level, so that the payout control CPU 371 is reset.

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

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

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

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

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

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

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

【0174】図27は、ステップS701の初期設定処
理を示すフローチャートである。初期設定処理におい
て、払出制御用CPU371は、まず、割込禁止に設定
する(ステップS701a)。次に、払出制御用CPU
371は、割込モードを割込モード2に設定し(ステッ
プS701b)、スタックポインタにスタックポインタ
指定アドレスを設定する(ステップS701c)。ま
た、払出制御用CPU371は、内蔵デバイスレジスタ
の初期化を行い(ステップS701d)、CTCおよび
PIOの初期化(ステップS701e)を行った後に、
RAMをアクセス可能状態に設定する(ステップS70
1f)。
FIG. 27 is a flowchart showing the initial setting process in step S701. In the initial setting process, the payout control CPU 371 first sets interrupt prohibition (step S701a). Next, the payout control CPU
The control unit 371 sets the interrupt mode to the interrupt mode 2 (step S701b), and sets a stack pointer designation address in the stack pointer (step S701c). Further, the payout control CPU 371 initializes the built-in device register (step S701d), and after initializing CTC and PIO (step S701e),
The RAM is set in an accessible state (step S70)
1f).

【0175】この実施の形態では、内蔵CTCのうちの
一つのチャネルがタイマモードで使用される。従って、
ステップS701dの内蔵デバイスレジスタの設定処理
およびステップS701eの処理において、使用するチ
ャネルをタイマモードに設定するためのレジスタ設定、
割込発生を許可するためのレジスタ設定および割込ベク
タを設定するためのレジスタ設定が行われる。そして、
そのチャネルによる割込が上述したタイマ割込として用
いられる。なお、タイマ割込を例えば2ms毎に発生さ
せたい場合は、初期値として2msに相当する値が所定
のレジスタ(時間定数レジスタ)に設定される。
In this embodiment, one channel of the built-in CTC is used in the timer mode. Therefore,
In the internal device register setting process of step S701d and the process of step S701e, register setting for setting the channel to be used to the timer mode;
Register setting for permitting interrupt generation and register setting for setting an interrupt vector are performed. And
The interrupt by the channel is used as the timer interrupt described above. If a timer interrupt is to be generated every 2 ms, for example, a value corresponding to 2 ms is set in a predetermined register (time constant register) as an initial value.

【0176】なお、タイマモードに設定されたチャネル
(この実施の形態ではチャネル3)に設定される割込ベ
クタは、タイマ割込処理の先頭番地に相当するものであ
る。具体的は、Iレジスタに設定された値と割込ベクタ
とでタイマ割込処理の先頭番地が特定される。タイマ割
込処理ではタイマ割込フラグがセットされ、メイン処理
でタイマ割込フラグがセットされていることが検知され
ると、払出制御処理が実行される。すなわち、タイマ割
込処理では、払出制御処理を実行するための設定がなさ
れる。
The interrupt vector set for the channel set in the timer mode (channel 3 in this embodiment) corresponds to the start address of the timer interrupt processing. Specifically, the start address of the timer interrupt processing is specified by the value set in the I register and the interrupt vector. In the timer interrupt process, the timer interrupt flag is set, and when it is detected in the main process that the timer interrupt flag is set, the payout control process is executed. That is, in the timer interrupt process, a setting for executing the payout control process is made.

【0177】また、内蔵CTCのうちの他の一つのチャ
ネル(この実施の形態ではチャネル2)が、遊技制御手
段からの払出制御コマンド受信のための割込発生用のチ
ャネルとして用いられ、そのチャネルがカウンタモード
で使用される。従って、ステップS701dの内蔵デバ
イスレジスタの設定処理およびステップS701eの処
理において、使用するチャネルをカウンタモードに設定
するためのレジスタ設定、割込発生を許可するためのレ
ジスタ設定および割込ベクタを設定するためのレジスタ
設定が行われる。
Another one of the built-in CTCs (channel 2 in this embodiment) is used as an interrupt generation channel for receiving a payout control command from the game control means. Is used in the counter mode. Therefore, in the internal device register setting process of step S701d and the process of step S701e, the register setting for setting the channel to be used to the counter mode, the register setting for permitting the occurrence of interrupt, and the interrupt vector are set. Is set.

【0178】カウンタモードに設定されたチャネル(チ
ャネル2)に設定される割込ベクタは、後述するコマン
ド受信割込処理の先頭番地に相当するものである。具体
的は、Iレジスタに設定された値と割込ベクタとでコマ
ンド受信割込処理の先頭番地が特定される。
The interrupt vector set for the channel (channel 2) set to the counter mode corresponds to the start address of the command reception interrupt process described later. Specifically, the start address of the command reception interrupt processing is specified by the value set in the I register and the interrupt vector.

【0179】この実施の形態では、払出制御用CPU3
71でも割込モード2が設定される。従って、内蔵CT
Cのカウントアップにもとづく割込処理を使用すること
ができる。また、CTCが送出した割込ベクタに応じた
割込処理開始番地を設定することができる。
In this embodiment, the payout control CPU 3
At 71, the interrupt mode 2 is set. Therefore, the built-in CT
An interrupt process based on the count-up of C can be used. Further, it is possible to set an interrupt processing start address according to the interrupt vector transmitted by the CTC.

【0180】CTCのチャネル2(CH2)のカウント
アップにもとづく割込は、上述したタイマカウンタレジ
スタCLK/TRG2の値が「0」になったときに発生
する割込である。従って、例えばステップS701eに
おいて、特定レジスタとしてのタイマカウンタレジスタ
CLK/TRG2に初期値「1」が設定される。また、
CTCのチャネル3(CH3)のカウントアップにもと
づく割込は、CPUの内部クロック(システムクロッ
ク)をカウントダウンしてレジスタ値が「0」になった
ら発生する割込であり、後述する2msタイマ割込とし
て用いられる。具体的には、CH3のレジスタ値はシス
テムクロックの1/256周期で減算される。ステップ
S701eにおいて、CH3のレジスタには、初期値と
して2msに相当する値が設定される。なお、この実施
の形態では、CH2に関する割込番地は0074Hであ
り、CH3に関する割込番地は0076Hである。
The interrupt based on the count up of the channel 2 (CH2) of the CTC is an interrupt generated when the value of the timer counter register CLK / TRG2 becomes "0". Therefore, for example, in step S701e, the initial value “1” is set in the timer counter register CLK / TRG2 as the specific register. Also,
The interrupt based on the count up of the channel 3 (CH3) of the CTC is an interrupt generated when the register value becomes “0” after counting down the internal clock (system clock) of the CPU, and a 2 ms timer interrupt described later. Used as Specifically, the register value of CH3 is subtracted in 1/256 cycle of the system clock. In step S701e, a value corresponding to 2 ms is set as an initial value in the register of CH3. In this embodiment, the interrupt address for CH2 is 0074H, and the interrupt address for CH3 is 0076H.

【0181】上述したように、CTCのCH2のカウン
トアップにもとづく割込は、CH3のカウントアップに
もとづく割込よりも優先順位が高い。従って、同時にカ
ウントアップが生じた場合に、CH2のカウントアップ
にもとづく割込、すなわち、後述するコマンド受信割込
処理の実行契機となる割込の方が優先される。
As described above, the interrupt based on the count-up of CH2 of CTC has a higher priority than the interrupt based on the count-up of CH3. Therefore, when the count-up occurs at the same time, an interrupt based on the count-up of CH2, that is, an interrupt that triggers execution of a command reception interrupt process described later has priority.

【0182】そして、払出制御用CPU371は、払出
制御用のバックアップRAM領域にバックアップデータ
が存在しているか否かの確認を行う(ステップS70
2)。すなわち、例えば、主基板31のCPU56の処
理と同様に、電源断時にセットされるバックアップフラ
グがセット状態になっているか否かによって、バックア
ップデータが存在しているか否か確認する。バックアッ
プフラグがセット状態になっている場合には、バックア
ップデータありと判断する。バックアップデータなしと
判断された場合には、前回の電源オフ時に未払出の遊技
球がなかったことになり、内部状態を電源断時の状態に
戻す必要がない。従って、払出制御用CPU371は、
停電復旧時でない電源投入時に実行される初期化処理を
実行する(ステップS702,S703)。
Then, the payout control CPU 371 checks whether backup data exists in the payout control backup RAM area (step S70).
2). That is, for example, similarly to the processing of the CPU 56 of the main board 31, it is determined whether or not backup data exists by determining whether or not a backup flag that is set when the power is turned off is in a set state. If the backup flag is set, it is determined that there is backup data. If it is determined that there is no backup data, it means that there was no unpaid game ball when the power was last turned off, and there is no need to return the internal state to the state when the power was turned off. Accordingly, the payout control CPU 371
An initialization process that is performed when the power is turned on, not when the power is restored, is executed (steps S702 and S703).

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

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

【0185】通常の初期化処理の実行(ステップS70
3)を終えると、払出制御用CPU371により実行さ
れるメイン処理は、タイマ割込フラグの監視(ステップ
S708)の確認が行われるループ処理に移行する。
Execution of normal initialization processing (step S70)
After 3), the main process executed by the payout control CPU 371 shifts to a loop process in which the timer interrupt flag is monitored (step S708).

【0186】なお、この実施の形態では、ステップS7
02でバックアップデータの有無が確認された後、バッ
クアップデータが存在する場合にステップS704でバ
ックアップ領域のチェックが行われたが、逆に、バック
アップ領域のチェック結果が正常であったことが確認さ
れた後に、バックアップデータの有無の確認が行われる
ようにしてもよい。また、バックアップデータの有無の
確認、またはバックアップ領域のチェックの何れか一方
を確認することによって、停電復旧処理を実行するか否
かを判断するように構成してもよい。
In the present embodiment, step S7
02, the presence or absence of backup data is checked, and if backup data exists, the backup area is checked in step S704. Conversely, it is confirmed that the backup area check result is normal. The confirmation of the presence or absence of the backup data may be performed later. Further, it may be configured to determine whether or not to execute the power failure recovery process by confirming whether or not there is backup data or checking the backup area.

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

【0188】通常の初期化処理では、図28に示すよう
に、レジスタおよびRAMのクリア処理(ステップS9
01)が行われ、所定の初期値の設定が行われる(ステ
ップS902)。そして、初期設定処理(ステップS7
01a)において割込禁止とされているので、初期化処
理を終える前に割込が許可される(ステップS90
3)。
In the normal initialization process, as shown in FIG. 28, the register and RAM are cleared (step S9).
01) is performed, and a predetermined initial value is set (step S902). Then, the initial setting process (step S7)
01a), the interrupt is prohibited, so the interrupt is permitted before the initialization process is completed (step S90).
3).

【0189】この実施の形態では、払出制御用CPU3
71のCTCのCH3が繰り返しタイマ割込を発生する
ように設定される。また、繰り返し周期は2msに設定
される。そして、図29に示すように、タイマ割込が発
生すると、払出制御用CPU371は、タイマ割込フラ
グをセットする(ステップS721)。なお、図29に
は割込を許可することも明示されているが(ステップS
720)、2msタイマ割込処理では、最初に割込許可
状態に設定される。すなわち、2msタイマ割込処理中
には割込許可状態になっている。
In this embodiment, the payout control CPU 3
CH3 71 is set to repeatedly generate a timer interrupt. The repetition period is set to 2 ms. Then, as shown in FIG. 29, when a timer interrupt occurs, the payout control CPU 371 sets a timer interrupt flag (step S721). FIG. 29 also clearly indicates that the interrupt is permitted (step S
720) In the 2 ms timer interrupt processing, the interrupt is first set to the interrupt permission state. That is, the interrupt is permitted during the 2 ms timer interrupt process.

【0190】払出制御用CPU371は、ステップS7
08において、タイマ割込フラグがセットされたことを
検出すると、タイマ割込フラグをリセットするとともに
(ステップS709)、払出制御処理を実行する(ステ
ップS710)。以上の制御によって、この実施の形態
では、払出制御処理は2ms毎に起動されることにな
る。
The payout control CPU 371 proceeds to step S7.
If it is detected at 08 that the timer interrupt flag has been set, the timer interrupt flag is reset (step S709), and a payout control process is executed (step S710). According to the above control, in this embodiment, the payout control process is started every 2 ms.

【0191】以上のように、メイン処理には払出制御処
理に移行すべきか否かを判定する処理が含まれ、払出制
御用CPU371の内部タイマが定期的に発生するタイ
マ割込にもとづくタイマ割込処理で払出制御処理に移行
すべきか否かを判定するためのフラグがセットされるの
で、払出制御処理の全てが確実に実行される。つまり、
払出制御処理の全てが実行されるまでは、次回の払出制
御処理に移行すべきか否かの判定が行われないので、払
出制御処理中の全ての各処理が実行完了することは保証
されている。
As described above, the main processing includes the processing for determining whether or not to shift to the payout control processing, and the timer interrupt based on the timer interrupt generated by the internal timer of the payout control CPU 371 periodically. Since the flag for determining whether or not to shift to the payout control process in the process is set, all the payout control processes are reliably executed. That is,
Until all the payout control processes have been executed, it is not determined whether or not to proceed to the next payout control process, so it is guaranteed that all processes in the payout control process will be completed. .

【0192】なお、この実施の形態では、タイマ割込処
理ではフラグセットのみがなされ、払出制御処理はメイ
ン処理において実行されるが、タイマ割込処理で払出制
御処理を実行してもよい。
In this embodiment, only the flag is set in the timer interrupt processing, and the payout control processing is executed in the main processing. However, the payout control processing may be executed in the timer interrupt processing.

【0193】払出制御用CPU371は、電源投入時
に、バックアップRAM領域のデータを確認するだけ
で、通常の初期設定処理を行うのか払出中の状態を復元
するのか決定できる。すなわち、簡単な判断によって、
未払出の遊技球について払出処理再開を行うことができ
る。さらに、この実施の形態では、主基板31における
遊技制御と同様に、パリティチェックコードによって記
憶内容保存の確実化が図られている。
When the power is turned on, the payout control CPU 371 can determine whether to perform the normal initial setting process or restore the payout state only by checking the data in the backup RAM area. That is, with a simple judgment,
The payout process can be restarted for unpaid game balls. Further, in this embodiment, as in the case of the game control on the main board 31, the storage contents are reliably stored by the parity check code.

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

【0195】図31は、主基板31から受信した払出制
御コマンドを格納するための受信バッファの一構成例を
示す説明図である。この例では、2バイト構成の払出制
御コマンドを6個格納可能なリングバッファ形式の受信
バッファが用いられる。従って、受信バッファは、確定
コマンドバッファ1〜12の12バイトの領域で構成さ
れる。そして、受信したコマンドをどの領域に格納する
のかを示すコマンド受信個数カウンタが用いられる。コ
マンド受信個数カウンタは、0〜11の値をとる。
FIG. 31 is an explanatory diagram showing an example of the configuration of a receiving buffer for storing the payout control command received from the main board 31. In this example, a ring buffer type receiving buffer capable of storing six payout control commands having a 2-byte configuration is used. Therefore, the reception buffer is constituted by a 12-byte area of the fixed command buffers 1 to 12. Then, a command reception number counter indicating in which area the received command is stored is used. The command reception number counter takes a value from 0 to 11.

【0196】図32は、割込処理による払出制御コマン
ド受信処理を示すフローチャートである。主基板31か
らの払出制御用のINT信号は払出制御用CPU371
のCLK/TRG2端子に入力されている。よって、主
基板31からのINT信号がオン状態になると、初期値
として「1」が設定されていたタイマカウンタレジスタ
CLK/TRG2の値が0になって払出制御用CPU3
71において割込がかかる。そして、図32に示す払出
制御コマンドの受信処理が開始される。なお、払出制御
コマンド受信処理の開始番地は、内蔵CTCから出力さ
れる割込ベクタとIレジスタに設定された値とで決定さ
れる番地である。また、タイマカウンタレジスタCLK
/TRG2の値が0になると、その値は自動的に初期値
(この例では「1」)に戻される。
FIG. 32 is a flowchart showing a payout control command receiving process by the interrupt process. An INT signal for payout control from the main board 31 is supplied to a payout control CPU 371.
Are input to the CLK / TRG2 terminal. Therefore, when the INT signal from the main board 31 is turned on, the value of the timer counter register CLK / TRG2, which has been set to “1” as the initial value, becomes 0, and the payout control CPU 3
At 71, an interrupt occurs. Then, the receiving process of the payout control command shown in FIG. 32 is started. The start address of the payout control command receiving process is an address determined by the interrupt vector output from the built-in CTC and the value set in the I register. Also, the timer counter register CLK
When the value of / TRG2 becomes 0, that value is automatically returned to the initial value ("1" in this example).

【0197】払出制御コマンドの受信処理において、払
出制御用CPU371は、まず、各レジスタをスタック
に退避する(ステップS850)。なお、割込が発生す
るとCPU371は自動的に割込禁止状態に設定する
が、自動的に割込禁止状態にならないCPUを用いてい
る場合には、ステップS850の処理の実行前に割込禁
止命令(DI命令)を発行することが好ましい。次い
で、払出制御コマンドデータの入力に割り当てられてい
る入力ポート372aからデータを読み込む(ステップ
S851)。そして、2バイト構成の払出制御コマンド
のうちの1バイト目であるか否か確認する(ステップS
852)。1バイト目であるか否かは、受信したコマン
ドの先頭ビットが「1」であるか否かによって確認され
る。先頭ビットが「1」であるのは、2バイト構成であ
る払出制御コマンドのうちのMODEバイト(1バイト
目)のはずである(図16参照)。そこで、払出制御用
CPU371は、先頭ビットが「1」であれば、有効な
1バイト目を受信したとして、受信したコマンドを受信
バッファ領域におけるコマンド受信個数カウンタが示す
確定コマンドバッファに格納する(ステップS85
3)。
In the process of receiving the payout control command, the payout control CPU 371 first saves each register on the stack (step S850). Note that when an interrupt occurs, the CPU 371 automatically sets the interrupt prohibition state. However, when a CPU that does not automatically enter the interrupt prohibition state is used, the interrupt prohibition is performed before the execution of the process of step S850. It is preferable to issue an instruction (DI instruction). Next, data is read from the input port 372a assigned to the input of the payout control command data (step S851). Then, it is confirmed whether or not this is the first byte of the payout control command having the 2-byte structure (step S).
852). Whether it is the first byte or not is confirmed by whether or not the first bit of the received command is “1”. The leading bit should be "1" in the MODE byte (the first byte) of the payout control command having the 2-byte structure (see FIG. 16). Therefore, if the first bit is “1”, the payout control CPU 371 determines that the valid first byte has been received, and stores the received command in the confirmed command buffer indicated by the command reception number counter in the reception buffer area (step S85
3).

【0198】払出制御コマンドのうちの1バイト目でな
ければ、1バイト目を既に受信したか否か確認する(ス
テップS854)。既に受信したか否かは、受信バッフ
ァ(確定コマンドバッファ)に有効なデータが設定され
ているか否かによって確認される。
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 or not the data has already been received is confirmed based on whether or not valid data is set in the reception buffer (fixed command buffer).

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

【0200】ステップS855において、2バイト目の
コマンドデータを格納すると、コマンド受信個数カウン
タに2を加算する(ステップS856)。そして、コマ
ンド受信カウンタが12以上であるか否か確認し(ステ
ップS857)、12以上であればコマンド受信個数カ
ウンタをクリアする(ステップS858)。その後、退
避されていたレジスタを復帰し(ステップS859)、
割込許可に設定する(ステップS859)。
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 checked whether or not the command reception counter is 12 or more (step S857), and if it is 12, the command reception number counter is cleared (step S858). After that, the saved register is restored (step S859),
Interrupt permission is set (step S859).

【0201】コマンド受信割込処理中は割込禁止状態に
なっている。上述したように、2msタイマ割込処理中
は割込許可状態になっているので、2msタイマ割込処
理中にコマンド受信割込が発生した場合には、コマンド
受信割込処理が優先して実行される。また、コマンド受
信割込処理中に2msタイマ割込が発生しても、その割
込処理は待たされる。このように、この実施の形態で
は、主基板31からのコマンド受信処理の処理優先度が
高くなっている。また、コマンド受信処理中には他の割
込処理が実行されないので、コマンド受信処理に要する
最長時間は決まる。コマンド受信処理中に他の割込処理
が実行可能であるように構成したのでは、コマンド受信
処理に要する最長の時間を見積もることは困難である。
コマンド受信処理に要する最長時間が決まるので、遊技
制御手段のコマンド送出処理におけるCの期間(図17
参照)をどの程度にすればよいのかを正確に判断するこ
とができる。
During command reception interruption processing, interruption is prohibited. As described above, the interrupt is permitted during the 2 ms timer interrupt processing. Therefore, if a command reception interrupt occurs during the 2 ms timer interrupt processing, the command reception interrupt processing is executed with priority. Is done. Further, even if a 2 ms timer interrupt occurs during the command reception interrupt process, the interrupt process is kept waiting. As described above, in this embodiment, the processing priority of the command reception processing from the main board 31 is high. Further, since no other interrupt processing is executed during the command reception processing, the maximum time required for the command reception processing is determined. It is difficult to estimate the longest time required for the command receiving process if the configuration is such that another interrupt process can be executed during the command receiving process.
Since the longest time required for the command receiving process is determined, the period C in the command sending process of the game control means (FIG. 17)
) Can be accurately determined.

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

【0203】図33は、ステップS710の払出制御処
理を示すフローチャートである。払出制御処理におい
て、払出制御用CPU371は、まず、中継基板72を
介して入力ポート372bに入力される賞球カウントス
イッチ301A、球貸しカウントスイッチ301Bがオ
ンしたか否かを判定する(スイッチ処理:ステップS7
51)。
FIG. 33 is a flowchart showing the payout control processing in step S710. In the payout control processing, 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 processing: Step S7
51).

【0204】次に、払出制御用CPU371は、センサ
(例えば、払出モータ289の回転数を検出するモータ
位置センサ)からの信号入力状態を確認してセンサの状
態を判定する等の処理を行う(入力判定処理:ステップ
S752)。払出制御用CPU371は、さらに、受信
した払出制御コマンドを解析し、解析結果に応じた処理
を実行する(コマンド解析実行処理:ステップS75
3)。
Next, the payout control CPU 371 performs processing such as checking the state of signal input from a sensor (for example, a motor position sensor for detecting the number of revolutions of the payout motor 289) and determining the state of the sensor (for example). Input determination processing: Step S752). The payout control CPU 371 further analyzes the received payout control command and executes processing according to the analysis result (command analysis execution processing: step S75).
3).

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

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

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

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

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

【0210】球貸し経路エラー:球貸しの払出動作終了
したとき、または払出モータ289が1回転したときに
球貸しカウントスイッチ301Bが1個も遊技球の通過
を検出しなかったとき。エラー表示LED374に
「1」が表示される。
Ball lending path error: When the ball lending payout operation is completed, or when the payout motor 289 makes one rotation, no ball lending count switch 301B detects the passage of a game ball. “1” is displayed on the error display LED 374.

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

【0212】球貸しカウントスイッチ球詰まりエラー:
球貸しカウントスイッチ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.

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

【0214】プリペイドカードユニット未接続エラー:
VL信号のオフが検出されたとき。エラー表示LED3
74に「5」が表示される。
Prepaid card unit not connected error:
When the off of the VL signal is detected. Error display LED3
“5” is displayed at 74.

【0215】プリペイドカードユニット通信エラー:規
定のタイミング以外でプリペイドカードユニット50か
ら信号出力されたことを検出したとき。エラー表示LE
D374に「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. Error display LE
“6” is displayed in D374.

【0216】払出停止状態:主基板31から払出停止を
示す払出制御コマンドを受信したとき。エラー表示LE
D374に「7」が表示される。なお、主基板31から
払出開始を示す払出制御コマンドを受信したときには、
その時点から2002ms後に、払出停止状態から払出
可能状態に復帰する。
[0216] Dispensing stop state: When a dispensing control command indicating dispensing stop is received from the main board 31. Error display LE
“7” is displayed in D374. When a payout control command indicating the start of payout is received from the main board 31,
After 2002 ms from that point, the state returns from the payout stop state to the payable state.

【0217】さらに、外部接続端子(図示せず)から出
力する情報信号を制御する処理を行う(出力処理:ステ
ップS760)。なお、情報信号は、貸し球の払出一単
位(例えば25個)ごとに所定時間オンとなり、続いて
所定時間オフを出力する信号である。
Further, 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 period of time for each unit of payout of a lent ball (for example, 25 pieces), and subsequently, is output as off for a predetermined period.

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

【0219】そして、賞球カウントスイッチオンカウン
タの値をチェックし(ステップS751c)、その値が
2になっていれば、1個の賞球の払出が行われたと判断
する。1個の賞球の払出が行われたと判断した場合に
は、払出制御用CPU371は、賞球未払出カウンタ
(総合個数記憶に格納されている賞球数)を−1する
(ステップS751d)。
Then, the value of the prize ball count switch on counter is checked (step S751c), and if the value is 2, it is determined that one prize ball has been paid out. When determining 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 storage) (step S751d).

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

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

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

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

【0224】受信した払出制御コマンドが払出個数指示
コマンドであれば、払出個数指示コマンドで指示された
個数を総合個数記憶に加算する(ステップS753
c)。すなわち、払出制御用CPU371は、主基板3
1のCPU56から送られた払出個数指示コマンドに含
まれる賞球数をバックアップRAM領域(総合個数記
憶)に記憶する。
If the received payout control command is a payout number command, the number specified by the payout number command is added to the total number storage (step S753).
c). That is, the payout control CPU 371 is connected to the main board 3
The number of prize balls included in the number-of-payouts instruction command sent from the first CPU 56 is stored in the backup RAM area (total number storage).

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

【0226】図36は、ステップS754の払出停止状
態設定処理の一例を示すフローチャートである。払出停
止状態設定処理において、払出制御用CPU371は、
確定コマンドバッファ領域中に受信コマンドがあるか否
かの確認を行う(ステップS754a)。確定コマンド
バッファ領域中に受信コマンドがあれば、受信した払出
制御コマンドが払出停止指示コマンドであるか否かの確
認を行う(ステップS754b)。払出停止指示コマン
ドであれば、払出制御用CPU371は、払出停止状態
に設定する(ステップS754c)。
FIG. 36 is a flowchart showing an example of the payout stop state setting process in step S754. In the payout stop state setting process, the payout control CPU 371
It is checked whether 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 the command is the payout stop instruction command, the payout control CPU 371 sets the payout stop state (step S754c).

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

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

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

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

【0231】図38および図39は、ステップS756
の球貸し制御処理の一例を示すフローチャートである。
なお、この実施の形態では、連続的な払出数の最大値を
貸し球の一単位(例えば25個)とするが、連続的な払
出数の最大値は他の数であってもよい。
FIGS. 38 and 39 show steps S756 and S756.
It is a flowchart which shows an example of the ball lending control process.
In this embodiment, the maximum value of the number of consecutive payouts is one unit of the lending ball (for example, 25), but the maximum value of the number of consecutive payouts may be another number.

【0232】球貸し制御処理において、払出制御用CP
U371は、貸し球払出中であるか否かの確認を行い
(ステップS511)、貸し球払出中であれば図39に
示す球貸し中の処理に移行する。なお、貸し球払出中で
あるか否かは、後述する球貸し処理中フラグの状態によ
って判断される。貸し球払出中でなければ、賞球の払出
中であるか否か確認する(ステップS512)。賞球の
払出中であるか否は、後述する賞球処理中フラグの状態
によって判断される。
In the ball lending control process, the payout control CP
The U371 checks whether or not the lending ball is being paid out (step S511). If the lending ball is being paid out, the process shifts to a ball lending process shown in FIG. Whether or not the ball is being paid out is determined based on the state of a ball lending process flag 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). Whether or not a prize ball is being paid out is determined by the state of a prize ball processing flag described later.

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

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

【0235】図39は、払出制御用CPU371による
払出制御処理における球貸し中の処理を示すフローチャ
ートである。球貸し処理では、払出モータ289がオン
していなければオンする。なお、この実施の形態では、
ステップS751のスイッチ処理で、球貸しカウントス
イッチ301Bの検出出力による遊技球の払出がなされ
たか否かの確認を行うので、球貸し制御処理では貸し球
個数記憶の減算などは行われない。球貸し制御処理にお
いて、払出制御用CPU371は、貸し球通過待ち時間
中であるか否かの確認を行う(ステップS519)。貸
し球通過待ち時間中でなければ、貸し球の払出を行い
(ステップS520)、払出モータ289の駆動を終了
すべきか(一単位の払出動作が終了したか)否かの確認
を行う(ステップS521)。具体的には、所定個数の
払出に対応した回転が完了したか否かを確認する。所定
個数の払出に対応した回転は、払出モータ位置センサの
出力によって監視される。所定個数の払出に対応した回
転が完了した場合には、払出制御用CPU371は、払
出モータ289の駆動を停止し(ステップS522)、
貸し球通過待ち時間の設定を行う(ステップS52
3)。
FIG. 39 is a flowchart showing processing during lending a ball in the payout control processing by the payout control CPU 371. In the ball lending process, if the payout motor 289 is not on, it is turned on. In this embodiment,
In the switch processing in step S751, it is checked whether or not the game balls have been paid out based on the detection output of the ball lending count switch 301B. Therefore, in the ball lending control processing, the subtraction of the storage of the number of lending balls is not performed. In the ball lending control process, the payout control CPU 371 confirms whether or not the ball lending pass time is being passed (step S519). If it is not during the lending ball passage waiting time, the lending ball is paid out (step S520), and it is determined whether or not the driving of the payout motor 289 should be terminated (whether one unit of the 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),
The waiting time for passing a rental ball is set (step S52).
3).

【0236】なお、ステップ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. If the on state or the off state continues for a predetermined time or longer, the payout control CPU 371 sets the payout motor It is determined that a ball biting error has occurred.

【0237】ステップS519で貸し球通過待ち時間中
であれば、払出制御用CPU371は、貸し球通過待ち
時間が終了したか否かの確認を行う(ステップS52
4)。貸し球通過待ち時間は、最後の払出球が払出モー
タ289によって払い出されてから球貸しカウントスイ
ッチ301Bを通過するまでの時間である。貸し球通過
待ち時間の終了を確認すると、一単位の貸し球は全て払
い出された状態であるので、カードユニット50に対し
て次の球貸し要求の受付が可能になったことを示すため
にEXS信号をオフにする(ステップS525)。ま
た、振分ソレノイドをオフするとともに(ステップS5
26)、球貸し処理中フラグをオフする(ステップS5
27)。なお、貸し玉通過待ち時間が経過するまでに最
後の払出球が球貸しカウントスイッチ301Bを通過し
なかった場合には、球貸し経路エラーとされる。また、
この実施の形態では、賞球も球貸しも同じ払出装置で行
われる。
If it is during the lending ball passage waiting time in step S519, the payout control CPU 371 checks whether or not the lending ball passing waiting time has ended (step S52).
4). The lending ball passing waiting time is the time from when the last payout ball is paid out by the payout motor 289 to when it passes through the ball lending count switch 301B. When confirming the end of the waiting time for passing a lending ball, since all lending balls for lending have been paid out, it is necessary to indicate to the card unit 50 that the next lending ball lending request can be accepted. The EXS signal is turned off (step S525). In addition, the distribution solenoid is turned off (step S5).
26), the ball lending processing flag is turned off (step S5)
27). If the last payout ball has not passed through the ball lending count switch 301B before the lending ball passage waiting time has elapsed, a ball lending path error is determined. Also,
In this embodiment, the prize ball and the ball lending are performed by the same payout device.

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

【0239】貸し球個数記憶の内容は、遊技機の電源が
断しても、所定期間電源基板910のバックアップ電源
によって保存される。従って、所定期間中に電源が回復
すると、払出制御用CPU371は、貸し球個数記憶の
内容にもとづいて球貸し処理を継続することができる。
[0239] The content of the number of lent balls is stored by the backup power supply of the power supply board 910 for a predetermined period even if the power of the gaming machine is turned 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 contents of the lending ball number storage.

【0240】図40および図41は、ステップS757
の賞球制御処理の一例を示すフローチャートである。な
お、この例では、連続的な払出数の最大値を貸し球の一
単位と同数(例えば25個)とするが、連続的な払出数
の最大値は他の数であってもよい。
FIGS. 40 and 41 show steps S757.
It is a flowchart which shows an example of the award ball control processing. In this example, the maximum value of the number of continuous payouts is the same as one unit of the lending ball (for example, 25), but the maximum value of the number of continuous payouts may be another number.

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

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

【0243】カードユニット50からの球貸し準備要求
がなければ、払出制御用CPU371は、総合個数記憶
に格納されている賞球数(未払出の賞球数)が0でない
か否か確認する(ステップS534)。総合個数記憶に
格納されている賞球数が0でなければ、賞球制御用CP
U371は、賞球処理中フラグをオンし(ステップS5
35)、総合個数記憶の値が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 not zero (see FIG. 4). Step S534). If the number of award balls stored in the total number memory is not 0, the award ball control CP
U371 turns on the award ball processing flag (step S5).
35) It is checked whether or not the value of the total number storage is 25 or more (step S536). The award ball processing flag is set in the backup RAM area.

【0244】総合個数記憶に格納されている賞球数が2
5以上であると、払出制御用CPU371は、25個分
の遊技球を払い出すまで払出モータ289を回転させる
ように払出モータ289に対して駆動信号を出力するた
めに、25個払出動作の設定を行う(ステップS53
7)。総合個数記憶に格納されている賞球数が25以上
でなければ、払出制御用CPU371は、総合個数記憶
に格納されている全ての遊技球を払い出すまで払出モー
タ289を回転させるように駆動信号を出力するため
に、全個数払出動作の設定を行う(ステップS53
8)。次いで、払出モータ289をオンする(ステップ
S538)。なお、振分ソレノイドはオフ状態であるか
ら、球払出装置97の下方の球振分部材は賞球側に設定
されている。そして、図41に示す賞球制御処理におけ
る賞球払出中の処理に移行する。
The number of prize balls stored in the total number storage is 2
If it is 5 or more, the payout control CPU 371 sets a 25 payout operation to output a drive signal to the payout motor 289 so as to rotate the payout motor 289 until 25 game balls are paid out. (Step S53)
7). If the number of prize balls stored in the total number memory is not 25 or more, the payout control CPU 371 drives the payout motor 289 to rotate the payout motor 289 until all game balls stored in the total number memory are paid out. Is set to output the total number payout operation (step S53).
8). Next, the payout motor 289 is turned on (step S538). Since the distribution solenoid is off, the ball distribution member below the ball payout device 97 is set to the winning ball side. Then, the processing shifts to a processing during payout of the winning ball in the winning ball control processing shown in FIG.

【0245】図41は、払出制御用CPU371による
払出制御処理における賞球中の処理の一例を示すフロー
チャートである。賞球制御処理では、払出モータ289
がオンしていなければオンする。なお、この実施の形態
では、ステップS751のスイッチ処理で、賞球カウン
トスイッチ301Aの検出出力による遊技球の払出がな
されたか否かの確認を行うので、賞球制御処理では総合
個数記憶の減算などは行われない。賞球中の処理におい
て、払出制御用CPU371は、賞球通過待ち時間中で
あるか否かの確認を行う(ステップS540)。賞球通
過待ち時間中でなければ、賞球払出を行い(ステップS
541)、払出モータ289の駆動を終了すべきか(2
5個または25個未満の所定の個数の払出動作が終了し
たか)否かの確認を行う(ステップS542)。
FIG. 41 is a flowchart showing an example of processing during a prize ball in the payout control processing by the payout control CPU 371. In the prize ball control processing, the payout motor 289
Turn on if is not on. In the present embodiment, in the switch processing of step S751, it is determined whether or not the payout of the game ball has been performed based on the detection output of the prize ball count switch 301A. Is not done. In the processing during the prize ball, the payout control CPU 371 checks whether or not the prize ball passage waiting time is in progress (step S540). If it is not during the waiting time for passing a prize ball, a prize ball is paid out (step S
541), should the drive of the payout motor 289 be terminated (2
It is determined whether or not a predetermined number of payout operations of 5 or less than 25 have been completed (step S542).

【0246】具体的には、所定個数の払出に対応した回
転が完了したか否かを確認する。所定個数の払出に対応
した回転は、払出モータ位置センサの出力によって監視
される。所定個数の払出に対応した回転が完了した場合
には、払出制御用CPU371は、払出モータ289の
駆動を停止し(ステップS543)、賞球通過待ち時間
の設定を行う(ステップS544)。賞球通過待ち時間
は、最後の払出球が払出モータ289によって払い出さ
れてから賞球カウントスイッチ301Aを通過するまで
の時間である。
More 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 S543), and sets a prize ball passing waiting time (step S544). The prize ball passage waiting time is the time from when the last payout ball is paid out by the payout motor 289 to when it passes through the prize ball count switch 301A.

【0247】ステップS540で賞球通過待ち時間中で
あれば、払出制御用CPU371は、賞球通過待ち時間
が終了したか否かの確認を行う(ステップS545)。
賞球通過待ち時間が終了した時点は、ステップS537
またはステップS538で設定された賞球が全て払い出
された状態である。そこで、払出制御用CPU371
は、賞球処理中フラグをオフする(ステップS54
6)。賞球通過待ち時間が経過するまでに最後の払出球
が賞球カウントスイッチ301Aを通過しなかった場合
には、賞球経路エラーとされる。
If it is determined in step S540 that the waiting time for passing a prize ball is in progress, the payout control CPU 371 checks whether or not the waiting time for passing a prize ball has ended (step S545).
The point in time when the waiting time for passing the prize ball ends is determined in step S537.
Alternatively, all the prize balls set in step S538 have been paid out. Therefore, the payout control CPU 371
Turns off the award ball processing flag (step S54).
6). If the last payout ball has not passed through the prize ball count switch 301A before the prize ball passage waiting time has elapsed, it is determined that a prize ball path error has occurred.

【0248】なお、この実施の形態では、ステップS5
11、ステップS531の判断によって球貸しが賞球処
理よりも優先されることになるが、賞球処理が球貸しに
優先するようにしてもよい。
Note that, in this embodiment, step S5
11. Although the ball lending is given priority over the prize ball processing by the determination in step S531, the prize ball processing may be given priority over the ball lending.

【0249】総合個数記憶および貸し球個数記憶の内容
は、遊技機の電源が断しても、所定期間電源基板910
のバックアップ電源によって保存される。従って、所定
期間中に電源が回復すると、払出制御用CPU371
は、総合個数記憶の内容にもとづいて払出処理を継続す
ることができる。
[0249] The contents of the total number storage and the number of lent balls storage are such that even if the power of the gaming machine is turned off, the power supply board 910 is maintained for a predetermined period.
Saved by backup power. 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.

【0250】なお、払出制御用CPU371は、主基板
31から指示された賞球個数を賞球個数記憶で総数とし
て管理したが、賞球数毎(例えば15個、10個、6
個)に管理してもよい。例えば、賞球数毎に対応した個
数カウンタを設け、払出個数指定コマンドを受信する
と、そのコマンドで指定された個数に対応する個数カウ
ンタを+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 for each prize ball number (for example, 15, 10 or 6).
). For example, a number counter corresponding to each prize ball number 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 one (in this case, the subtraction processing is performed in the payout control processing).
Also in this case, each number counter is formed in the backup RAM area. Therefore, even if the power of the gaming machine is turned off, if the power is restored during the predetermined period, the payout control CPU 371
Can continue the award ball payout process based on the content of each number counter.

【0251】図42は、電源基板910の電源監視回路
からの電源断信号にもとづくNMIに応じて実行される
停電発生NMI処理の一例を示すフローチャートであ
る。なお、この実施の形態では、NMI割込番地は00
66Hである。停電発生NMI処理において、払出制御
用CPU371は、まず、割込禁止フラグの内容をパリ
ティフラグに格納する(ステップS801)。次いで、
割込禁止に設定する(ステップS802)。停電発生N
MI処理では、本例では主基板31において実行された
処理と同様に、RAM内容の保存を確実にするためのチ
ェックサムの生成処理を行う。その処理中に他の割込処
理が行われたのではチェックサムの生成処理が完了しな
いうちに払出制御用CPU371が動作し得ない電圧に
まで低下してしまうことがことも考えられるので、ま
ず、他の割込が生じないような設定がなされる。なお、
停電発生NMI処理におけるステップS804〜S81
0は、電力供給停止時処理の一例である。
FIG. 42 is a flowchart showing an example of a power failure occurrence NMI process executed in response to an NMI based on a power cutoff signal from the power supply monitoring circuit of the power supply board 910. In this embodiment, the NMI interrupt address is 00
66H. 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). Then
The interrupt is prohibited (step S802). Power failure occurred N
In the MI process, in this example, as in the process executed on the main board 31, a process of generating a checksum for ensuring the storage of the RAM content is performed. If another interrupt process is performed during that process, the voltage may drop to a level at which the payout control CPU 371 cannot operate before the checksum generation process is completed. Are set so that other interrupts do not occur. In addition,
Steps S804 to S81 in the power failure occurrence NMI process
0 is an example of the power supply stop processing.

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

【0253】次いで、払出制御用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 has already been set, no further processing is performed. If the backup flag is not set, the following power supply stop processing is executed. That is, the processing from step S804 to step S810 is executed.

【0254】まず、各レジスタの内容をバックアップR
AM領域に格納する(ステップS804)。その後、バ
ックアップフラグをセットする(ステップS805)。
そして、バックアップRAM領域のバックアップチェッ
クデータ領域に適当な初期値を設定し(ステップS80
6)、初期値およびバックアップRAM領域のデータに
ついて順次排他的論理和をとったあと反転し(ステップ
S807)、最終的な演算値をバックアップパリティデ
ータ領域に設定する(ステップS808)。また、RA
Mアクセス禁止状態にする(ステップS809)。電源
電圧が低下していくときには、各種信号線のレベルが不
安定になってRAM内容が化ける可能性があるが、この
ようにRAMアクセス禁止状態にしておけば、バックア
ップRAM内のデータが化けることはない。
First, the contents of each register are backed up by R
It is stored in the AM area (step S804). After that, 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 S80).
6) The exclusive OR is sequentially calculated for the initial value and the data in the backup RAM area and then inverted (step S807), and the final operation value is set in the backup parity data area (step S808). Also, RA
The M access is prohibited (step S809). When the power supply voltage decreases, the levels of various signal lines may become unstable and the contents of the RAM may be corrupted. However, if the RAM access is prohibited in this manner, the data in the backup RAM may be corrupted. There is no.

【0255】さらに、払出制御用CPU371は、全て
の出力ポート(この実施の形態では、出力ポート372
c,372g,372e、およびI/Oポート372f
の出力ポート部分)に対してクリア信号を出力する。従
って、全ての出力ポートは、クリア信号によりオフ状態
とされる(ステップS810)。
Further, the payout control CPU 371 has all output ports (in this embodiment, output ports 372
c, 372g, 372e, and I / O port 372f
Output port portion). Therefore, all output ports are turned off by the clear signal (step S810).

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

【0257】なお、この実施の形態では、停電発生NM
I処理では最終部でプログラムをループ状態にしたが、
ホールト(HALT)命令を発行するように構成しても
よい。
In this embodiment, the power failure occurrence NM
In I processing, the program was looped in the last part,
It may be configured to issue a HALT instruction.

【0258】また、レジスタの内容をRAM領域に格納
した後にセットされるバックアップフラグは、上述した
ように、電源投入時において復旧すべきバックアップデ
ータがあるか否か(停電からの復旧か否か)を判断する
際に使用される。また、ステップS801からS810
の処理は、払出制御用CPU371がシステムリセット
回路975からのシステムリセット信号を受ける前に完
了する。換言すれば、システムリセット回路975から
のシステムリセット信号を受ける前に完了するように、
電圧監視回路の検出電圧の設定が行われている。
The backup flag set after the contents of the register are stored in the RAM area is, as described above, whether or not there is backup data to be restored when the power is turned on (whether or not to recover from a power failure). Used to judge. Also, 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, to complete before receiving the system reset signal from the system reset circuit 975,
The detection voltage of the voltage monitoring circuit is set.

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

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

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

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

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

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

【0265】よって、払出制御用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, determines that the parity diagnosis is normal. If they do not match, it is determined that the parity diagnosis is abnormal.

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

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

【0268】払出状態を復帰させると、この実施の形態
では、払出制御用CPU371は、前回の電源断時の割
込許可/禁止状態を復帰させるために、バックアップR
AMに保存されていたパリティフラグの値を確認する
(ステップS862)。パリティフラグがクリアであれ
ば、割込許可設定を行う(ステップS863)。一方、
パリティフラグがオンであれば、そのまま(ステップS
701aで設定された割込禁止状態のまま)払出状態復
旧処理を終える。
When the payout state is restored, in this embodiment, the payout control CPU 371 returns to the backup R in order to restore the interrupt permission / prohibition state at the time of the previous power-off.
The value of the parity flag stored in the AM is checked (step S862). If the parity flag is clear, interrupt permission setting is performed (step S863). on the other hand,
If the parity flag is on, the process proceeds to step S
The payout state restoring process is terminated (with the interrupt prohibited state set in 701a).

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

【0270】以上に説明したしたように、この実施の形
態では、特定レジスタとしてのCTCのタイマカウンタ
レジスタCLK/TRG2の値が所定値(この例では
0)になると払出制御用CPU371においてコマンド
受信処理のための割込がかかる。CTCは、他の割込と
の優先管理が容易なものであり、CTCを使用すること
によって、容易に優先度が高く、また、割込契機の設定
処理が容易なコマンド受信処理方式を実現することがで
きる。
As described above, in this embodiment, when the value of the timer counter register CLK / TRG2 of the CTC serving as the specific register reaches a predetermined value (in this example, 0), the command reception processing is performed by the payout control CPU 371. It takes an interrupt. The CTC is easy to perform priority management with other interrupts. By using the CTC, a command reception processing method that easily has a high priority and that can easily set an interrupt trigger is realized. be able to.

【0271】上記の実施の形態では、タイマ割込処理で
タイマ割込フラグがセットされ、払出制御メイン処理に
おいて、タイマ割込フラグのチェックと払出制御処理が
実行されたが、タイマ割込処理で払出制御処理が実行さ
れるように構成してもよい。図45は、そのようにプロ
グラム構成された場合の払出制御メイン処理を示すフロ
ーチャートである。図に示すように、払出制御メイン処
理では、初期化処理が完了するとループ状態に入る。
In the above embodiment, the timer interrupt flag is set in the timer interrupt processing, and the check of the timer interrupt flag and the payout control processing are executed in the payout control main processing. You may comprise so that payout control processing may be performed. FIG. 45 is a flowchart showing the payout control main process when the program is configured as described above. As shown in the figure, in the payout control main process, a loop state is entered when the initialization process is completed.

【0272】そして、タイマ割込が発生すると、割込許
可状態にするとともに(ステップS720)、払出制御
処理(ステップS710)を実行する。払出制御処理の
内容は、上記の実施の形態の場合と同様である(図33
参照)。
Then, when a timer interrupt occurs, an interrupt permission state is set (step S720), and a payout control process (step S710) is executed. The contents of the payout control process are the same as those in the above embodiment (FIG. 33).
reference).

【0273】このような構成でも、タイマ割込処理中に
コマンド受信割込が発生した場合には、コマンド受信割
込処理が優先して実行される。
Even in such a configuration, if a command reception interrupt occurs during the timer interrupt processing, the command reception interrupt processing is executed with priority.

【0274】なお、上記の各実施の形態では、払出制御
手段を例にしたが、その他の電気部品制御手段、例え
ば、表示制御手段、音声制御手段、ランプ制御手段等も
上述したような処理によって遊技制御手段からの制御コ
マンドを確実に、かつ、迅速に受信することができる。
また、タイマ割込にもとづく制御処理は、確実に最後ま
で実行される。
In each of the above embodiments, the payout control means has been described as an example. However, other electric component control means, for example, display control means, voice control means, lamp control means, etc., are also processed by the processing described above. A control command from the game control means can be reliably and promptly received.
Further, the control processing based on the timer interrupt is reliably executed to the end.

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

【0276】また、上記の各実施の形態のパチンコ遊技
機1は、始動入賞にもとづいて可変表示部9に可変表示
される特別図柄の停止図柄が所定の図柄の組み合わせに
なると所定の遊技価値が遊技者に付与可能になる第1種
パチンコ遊技機であったが、始動入賞にもとづいて開放
する電動役物の所定領域への入賞があると所定の遊技価
値が遊技者に付与可能になる第2種パチンコ遊技機や、
始動入賞にもとづいて可変表示される図柄の停止図柄が
所定の図柄の組み合わせになると開放する所定の電動役
物への入賞があると所定の権利が発生または継続する第
3種パチンコ遊技機であっても、本発明を適用できる。
In the pachinko gaming machine 1 according to each of the above-described embodiments, when the special symbols variably displayed on the variable display section 9 on the basis of the winning start are a predetermined combination of symbols, the predetermined game value is reduced. Although it was a first-class pachinko gaming machine that can be given to a player, a predetermined game value that can be given to a player when there is a prize in a predetermined area of an electric accessory that is opened based on a start winning prize. Two types of pachinko machines,
A third-type pachinko gaming machine in which a predetermined right is generated or continued when there is a prize in a predetermined electric accessory which is opened when a stop symbol of a symbol variably displayed based on a start winning prize is a predetermined combination of symbols. Even so, the present invention can be applied.

【0277】さらに、パチンコ遊技機に限られず、スロ
ット機等においても、何らかの動作をする電気部品が備
えられている場合などには本発明を適用することができ
る。
Furthermore, the present invention is not limited to pachinko gaming machines, but can be applied to slot machines and the like in the case where electric parts for performing some operations are provided.

【0278】[0278]

【発明の効果】以上のように、本発明によれば、遊技機
を、払出制御手段が、払出制御処理を定期的なタイマ割
込の発生に応じて実行するとともに、遊技制御手段から
送出されるコマンドを取り込むコマンド取込処理を所定
の割込の発生に応じて実行するように構成したので、払
出制御手段が常に確実に払出制御処理を完了できるとと
もに、確実に遊技制御手段からのコマンドを受信するこ
とができる効果がある。
As described above, according to the present invention, in the gaming machine, the payout control means executes the payout control processing in response to the occurrence of the periodic timer interrupt and sends out the game machine from the game control means. Is configured to execute a command fetching process in response to the occurrence of a predetermined interrupt, so that the payout control means can always reliably complete the payout control process, and also securely receive a command from the game control means. There is an effect that can be received.

【0279】タイマ割込が、所定レジスタの値が特定値
になることによって発生するように構成されている場合
には、容易に払出制御処理実行契機を作成することがで
きる。また、所定レジスタに初期値を設定しておくだけ
で払出制御処理実行契機を作成できるので、払出制御手
段の開発は容易であり、その結果、遊技機の開発が容易
化される。
In the case where the timer interrupt is configured to be generated when the value of the predetermined register becomes a specific value, it is possible to easily create a trigger for executing the payout control process. Further, since the payout control processing execution opportunity can be created only by setting the initial value in the predetermined register, development of the payout control means is easy, and as a result, development of the gaming machine is facilitated.

【0280】払出制御手段が、初期設定で所定レジスタ
の初期値を設定するように構成されている場合には、払
出制御処理実行契機の設定を簡便に行うことができる。
In the case where the payout control means is configured to set the initial value of the predetermined register in the initial setting, it is possible to easily set the timing for executing the payout control process.

【0281】タイマ割込処理では払出制御処理の実行を
示す設定が行われるように構成されている場合には、タ
イマ割込処理の処理負担が軽減される。
In the case where the timer interrupt processing is set so as to indicate the execution of the payout control processing, the processing load of the timer interrupt processing is reduced.

【0282】コマンド取込処理を実行するための所定の
割込が、第2の所定レジスタの値が特定値になることに
応じて発生するように構成されてる場合には、電気部品
制御手段が簡便に、かつ迅速にコマンドを受信すること
ができる。また、所定レジスタに初期値を設定しておく
だけでコマンド受信処理の実行契機を作成できるので、
電気部品制御手段の開発は容易であり、その結果、遊技
機の開発が容易化される。
In the case where the predetermined interrupt for executing the command fetch process is configured to be generated in response to the value of the second predetermined register becoming a specific value, the electric component control means operates as follows. Commands can be received easily and quickly. Also, since the execution timing of the command receiving process can be created only by setting the initial value in the predetermined register,
The development of the electric component control means is easy, and as a result, the development of the gaming machine is facilitated.

【0283】コマンド取込処理を行うための所定の割込
が、タイマ割込よりも優先される場合には、容易に、コ
マンド受信処理を払出制御処理よりも優先して実行する
構成を実現することができる。
When the predetermined interrupt for performing the command fetch process has a higher priority than the timer interrupt, a configuration for easily executing the command reception process with a higher priority than the payout control process is realized. be able to.

【0284】コマンド取込処理中は他のマスク可能割込
が禁止され、コマンド取込処理が終了するまで割込許可
がなされないように構成されている場合には、コマンド
受信処理が他の割込で中断されることはなく、確実にコ
マンド取込処理を完了することができる。
If another maskable interrupt is prohibited during the command fetching process, and if the interrupt is not permitted until the command fetching process is completed, the command receiving process will be interrupted by another interrupt. Thus, the command fetch process can be surely completed without interruption.

【0285】コマンド取込処理を行うための所定の割込
が、実行中のタイマ割込処理を中断して発生可能である
ように構成されている場合には、遊技制御手段からコマ
ンドが送出された場合に常に直ちにコマンド取込処理を
開始することができ、確実にコマンド取込処理を実行す
ることができる。
If the predetermined interrupt for performing the command fetch process is configured to be able to be generated by interrupting the timer interrupt process being executed, a command is sent from the game control means. In this case, the command fetch process can always be started immediately, and the command fetch process can be executed reliably.

【0286】コマンド取込処理を実行するための所定の
割込を発生する割込発生部が、タイマ割込を発生する割
込発生部よりも優先順位が高い割込発生部に設定されて
いる場合には、容易に、コマンド受信処理を払出制御処
理よりも優先して実行する構成を実現することができ
る。
An interrupt generating section for generating a predetermined interrupt for executing the command fetch processing is set to an interrupt generating section having a higher priority than an interrupt generating section for generating a timer interrupt. In this case, it is possible to easily realize a configuration in which the command receiving process is executed prior to the payout control process.

【図面の簡単な説明】[Brief description of the drawings]

【図1】 パチンコ遊技機を正面からみた正面図であ
る。
FIG. 1 is a front view of a pachinko gaming machine viewed from the front.

【図2】 パチンコ遊技機の内部構造を示す全体背面図
である。
FIG. 2 is an overall rear view showing the internal structure of the pachinko gaming machine.

【図3】 パチンコ遊技機の機構板を背面からみた背面
図である。
FIG. 3 is a rear view of the mechanical plate of the pachinko gaming machine as viewed from the rear.

【図4】 機構板に設置されている中間ベースユニット
周りの構成を示す正面図である。
FIG. 4 is a front view showing a configuration around an intermediate base unit installed on a mechanism plate.

【図5】 球払出装置を示す分解斜視図である。FIG. 5 is an exploded perspective view showing a ball payout device.

【図6】 遊技制御基板(主基板)の回路構成を示すブ
ロック図である。
FIG. 6 is a block diagram showing a circuit configuration of a game control board (main board).

【図7】 払出制御基板および球払出装置の構成要素な
どの賞球に関連する構成要素を示すブロック図である。
FIG. 7 is a block diagram showing components related to a prize ball, such as components of a payout control board and a ball payout device.

【図8】 電源監視および電源バックアップのためのC
PU周りの一構成例を示すブロック図である。
FIG. 8: C for power supply monitoring and power supply backup
FIG. 3 is a block diagram illustrating a configuration example around a PU.

【図9】 電源基板の一構成例を示すブロック図であ
る。
FIG. 9 is a block diagram illustrating a configuration example of a power supply board.

【図10】 主基板におけるCPUが実行するメイン処
理の例を示すフローチャートである。
FIG. 10 is a flowchart illustrating an example of a main process executed by a CPU on a main board.

【図11】 遊技状態復旧処理を実行するか否かの決定
方法の例を示す説明図である。
FIG. 11 is an explanatory diagram showing an example of a method for determining whether or not to execute a game state restoration process.

【図12】 初期設定処理の例を示すフローチャートで
ある。
FIG. 12 is a flowchart illustrating an example of an initial setting process.

【図13】 初期化処理の例を示すフローチャートであ
る。
FIG. 13 is a flowchart illustrating an example of an initialization process.

【図14】 2msタイマ割込処理の例を示すフローチ
ャートである。
FIG. 14 is a flowchart illustrating an example of a 2 ms timer interrupt process.

【図15】 遊技制御処理の例を示すフローチャートで
ある。
FIG. 15 is a flowchart illustrating an example of a game control process.

【図16】 払出制御コマンドの一構成例を示す説明図
である。
FIG. 16 is an explanatory diagram showing a configuration example of a payout control command.

【図17】 制御信号とINT信号との関係を示すタイ
ミング図である。
FIG. 17 is a timing chart showing a relationship between a control signal and an INT signal.

【図18】 払出制御コマンドの内容の一例を示す説明
図である。
FIG. 18 is an explanatory diagram showing an example of the content of a payout control command.

【図19】 スイッチ処理を示すフローチャートであ
る。
FIG. 19 is a flowchart showing a switch process.

【図20】 入賞球信号処理を示すフローチャートであ
る。
FIG. 20 is a flowchart showing winning ball signal processing.

【図21】 コマンド送信テーブルの構成を示す説明図
である。
FIG. 21 is an explanatory diagram showing a configuration of a command transmission table.

【図22】 コマンド制御処理を示すフローチャートで
ある。
FIG. 22 is a flowchart illustrating a command control process.

【図23】 コマンド送信処理を示すフローチャートで
ある。
FIG. 23 is a flowchart showing a command transmission process.

【図24】 払出制御用CPU周りの一構成例を示すブ
ロック図である。
FIG. 24 is a block diagram illustrating a configuration example around a payout control CPU.

【図25】 INT信号の入力にもとづく割込発生を説
明するための説明図である。
FIG. 25 is an explanatory diagram for describing generation of an interrupt based on input of an INT signal.

【図26】 払出制御用CPUが実行するメイン処理の
例を示すフローチャートである。
FIG. 26 is a flowchart illustrating an example of a main process executed by a payout control CPU.

【図27】 払出制御用CPUの初期設定処理の一例を
示すフローチャートである。
FIG. 27 is a flowchart illustrating an example of an initial setting process of a payout control CPU;

【図28】 払出制御用CPUの初期化処理の一例を示
すフローチャートである。
FIG. 28 is a flowchart illustrating an example of initialization processing of a payout control CPU.

【図29】 払出制御用CPUのタイマ割込処理の例を
示すフローチャートである。
FIG. 29 is a flowchart illustrating an example of a timer interruption process of a payout control CPU.

【図30】 払出制御手段におけるRAMの一構成例を
示す説明図である。
FIG. 30 is an explanatory diagram showing one configuration example of a RAM in the payout control means.

【図31】 受信バッファの一構成例を示す説明図であ
る。
FIG. 31 is an explanatory diagram illustrating a configuration example of a reception buffer.

【図32】 払出制御用CPUのコマンド受信処理の例
を示すフローチャートである。
FIG. 32 is a flowchart illustrating an example of a command receiving process of a payout control CPU.

【図33】 払出制御用CPUが実行する払出制御処理
の例を示すフローチャートである。
FIG. 33 is a flowchart illustrating an example of a payout control process executed by a payout control CPU.

【図34】 スイッチ処理の例を示すフローチャートで
ある。
FIG. 34 is a flowchart illustrating an example of a switch process.

【図35】 コマンド解析実行処理の例を示すフローチ
ャートである。
FIG. 35 is a flowchart illustrating an example of a command analysis execution process.

【図36】 払出停止状態設定処理の例を示すフローチ
ャートである。
FIG. 36 is a flowchart illustrating an example of a payout stop state setting process.

【図37】 プリペイドカードユニット制御処理の例を
示すフローチャートである。
FIG. 37 is a flowchart showing an example of a prepaid card unit control process.

【図38】 球貸し制御処理の例を示すフローチャート
である。
FIG. 38 is a flowchart illustrating an example of a ball lending control process.

【図39】 球貸し制御処理の例を示すフローチャート
である。
FIG. 39 is a flowchart illustrating an example of a ball lending control process.

【図40】 賞球制御処理の例を示すフローチャートで
ある。
FIG. 40 is a flowchart illustrating an example of a winning ball control process.

【図41】 賞球制御処理の例を示すフローチャートで
ある。
FIG. 41 is a flowchart illustrating an example of a winning ball control process.

【図42】 払出制御用CPUが実行する停電発生NM
I処理の例を示すフローチャートである。
FIG. 42 shows a power failure occurrence NM executed by the payout control CPU.
It is a flowchart which shows the example of I processing.

【図43】 バックアップパリティデータ作成方法の例
を説明するための説明図である。
FIG. 43 is an explanatory diagram for describing an example of a backup parity data creation method.

【図44】 払出制御用CPUが実行する払出状態復旧
処理の例を示すフローチャートである。
FIG. 44 is a flowchart illustrating an example of a payout state restoration process executed by a payout control CPU.

【図45】 払出制御処理の他の例を示すフローチャー
トである。
FIG. 45 is a flowchart showing another example of the payout control process.

【図46】 払出制御用CPUのタイマ割込処理の他の
例を示すフローチャートである。
FIG. 46 is a flowchart showing another example of the timer interruption process of the payout control CPU.

【符号の説明】[Explanation of symbols]

1 パチンコ遊技機 31 主基板 37 払出制御基板 53 基本回路 56 CPU 371 払出制御用CPU 570 出力ポート(出力ポート0) 571 出力ポート(出力ポート1) 902 電源監視用IC 910 電源基板 DESCRIPTION OF SYMBOLS 1 Pachinko gaming machine 31 Main board 37 Dispensing control board 53 Basic circuit 56 CPU 371 Dispensing control CPU 570 Output port (output port 0) 571 Output port (output port 1) 902 Power supply monitoring IC 910 Power supply board

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 遊技者が所定の遊技を行うことが可能な
遊技機であって、 遊技の進行を制御する遊技制御手段と、この遊技制御手
段からのコマンドに応じて遊技媒体を払い出す払出制御
処理を行う払出制御手段とを含み、 前記払出制御手段は、払出制御処理を定期的なタイマ割
込の発生に応じて実行するとともに、前記遊技制御手段
から送出されるコマンドを取り込むコマンド取込処理を
所定の割込の発生に応じて実行することを特徴とする遊
技機。
1. A game machine in which a player can play a predetermined game, a game control means for controlling the progress of the game, and a payout for paying out a game medium in response to a command from the game control means. A payout control unit for performing a control process, wherein the payout control unit executes the payout control process in response to the occurrence of a periodic timer interrupt, and captures a command sent from the game control unit. A gaming machine which executes a process in response to occurrence of a predetermined interrupt.
【請求項2】 タイマ割込は、所定レジスタの値が特定
値になることによって発生する請求項1記載の遊技機。
2. The gaming machine according to claim 1, wherein the timer interrupt is generated when a value of a predetermined register becomes a specific value.
【請求項3】 払出制御手段は、初期設定で所定レジス
タの初期値を設定する請求項2記載の遊技機。
3. The gaming machine according to claim 2, wherein the payout control means sets an initial value of a predetermined register in an initial setting.
【請求項4】 タイマ割込処理では、払出制御処理の実
行を示す設定が行われる請求項1ないし請求項3記載の
遊技機。
4. The gaming machine according to claim 1, wherein a setting indicating execution of the payout control processing is performed in the timer interrupt processing.
【請求項5】 コマンド取込処理を実行するための所定
の割込は、第2の所定レジスタの値が特定値になること
に応じて発生する請求項1ないし請求項4記載の遊技
機。
5. The gaming machine according to claim 1, wherein the predetermined interrupt for executing the command fetch process occurs in response to the value of the second predetermined register becoming a specific value.
【請求項6】 コマンド取込処理を行うための所定の割
込は、タイマ割込よりも優先される請求項1ないし請求
項5記載の遊技機。
6. The gaming machine according to claim 1, wherein a predetermined interrupt for performing a command fetch process has priority over a timer interrupt.
【請求項7】 コマンド取込処理中は他のマスク可能割
込が禁止され、コマンド取込処理が終了するまで割込許
可はなされない請求項1ないし請求項6記載の遊技機。
7. The gaming machine according to claim 1, wherein other maskable interrupts are prohibited during the command fetching process, and the interrupt is not permitted until the command fetching process is completed.
【請求項8】 所定の割込は、実行中のタイマ割込処理
を中断して発生可能である請求項1ないし請求項7記載
の遊技機。
8. The gaming machine according to claim 1, wherein the predetermined interrupt can be generated by interrupting a timer interrupt process being executed.
【請求項9】 払出制御手段は、それぞれ割込を発生可
能な複数の割込発生部を含み、 前記各割込発生部の優先順位が設定され、 コマンド取込処理を実行するための所定の割込を発生す
る割込発生部は、タイマ割込を発生する割込発生部より
も優先順位が高い割込発生部に設定される請求項1ない
し請求項8記載の遊技機。
9. The payout control means includes a plurality of interrupt generation units each capable of generating an interrupt, a priority order of each of the interrupt generation units is set, and a predetermined order for executing a command fetch process. 9. The gaming machine according to claim 1, wherein the interrupt generating unit that generates the interrupt is set to an interrupt generating unit having a higher priority than an interrupt generating unit that generates a timer interrupt.
JP2000174322A 2000-06-09 2000-06-09 Game machine Withdrawn JP2001347013A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000174322A JP2001347013A (en) 2000-06-09 2000-06-09 Game machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000174322A JP2001347013A (en) 2000-06-09 2000-06-09 Game machine

Publications (1)

Publication Number Publication Date
JP2001347013A true JP2001347013A (en) 2001-12-18

Family

ID=18676386

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000174322A Withdrawn JP2001347013A (en) 2000-06-09 2000-06-09 Game machine

Country Status (1)

Country Link
JP (1) JP2001347013A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002018093A (en) * 2000-07-07 2002-01-22 Sophia Co Ltd Game machine
JP2006180981A (en) * 2004-12-27 2006-07-13 Sanyo Product Co Ltd Game machine
JP2007044157A (en) * 2005-08-08 2007-02-22 Sankyo Kk Game machine
JP2007044158A (en) * 2005-08-08 2007-02-22 Sankyo Kk Game machine
JP2007105367A (en) * 2005-10-17 2007-04-26 Sankyo Kk Game machine
JP2011078836A (en) * 2011-01-24 2011-04-21 Sanyo Product Co Ltd Game machine
JP2013031773A (en) * 2012-11-21 2013-02-14 Sanyo Product Co Ltd Game machine

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002018093A (en) * 2000-07-07 2002-01-22 Sophia Co Ltd Game machine
JP2006180981A (en) * 2004-12-27 2006-07-13 Sanyo Product Co Ltd Game machine
JP4701711B2 (en) * 2004-12-27 2011-06-15 株式会社三洋物産 Game machine
JP2007044157A (en) * 2005-08-08 2007-02-22 Sankyo Kk Game machine
JP2007044158A (en) * 2005-08-08 2007-02-22 Sankyo Kk Game machine
JP2007105367A (en) * 2005-10-17 2007-04-26 Sankyo Kk Game machine
JP2011078836A (en) * 2011-01-24 2011-04-21 Sanyo Product Co Ltd Game machine
JP2013031773A (en) * 2012-11-21 2013-02-14 Sanyo Product Co Ltd Game machine

Similar Documents

Publication Publication Date Title
JP2001190749A (en) Game machine
JP2001310039A (en) Game machine
JP2001252451A (en) Game machine
JP2002078925A (en) Game machine
JP3773747B2 (en) Game machine
JP2001347013A (en) Game machine
JP2001300013A (en) Game machine
JP2001347045A (en) Game machine
JP2002119734A (en) Game machine
JP2002058835A (en) Game machine
JP3462829B2 (en) Gaming machine
JP4137346B2 (en) Game machine
JP2001224809A (en) Game machine
JP2001327727A (en) Game machine
JP2001346944A (en) Game machine
JP2002011203A (en) Game machine
JP2002078942A (en) Game machine
JP2002078927A (en) Game machine
JP2002028334A (en) Game machine
JP2001340584A (en) Game machine
JP2002065964A (en) Game machine
JP2001314611A (en) Game machine
JP3999244B2 (en) Game machine
JP2001252450A (en) Game machine
JP4065888B2 (en) Game machine

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040323

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040524

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20040531

A912 Removal of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20040702

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20051209

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20060131

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20080124