JP6154040B2 - Game machine - Google Patents
Game machine Download PDFInfo
- Publication number
- JP6154040B2 JP6154040B2 JP2016064150A JP2016064150A JP6154040B2 JP 6154040 B2 JP6154040 B2 JP 6154040B2 JP 2016064150 A JP2016064150 A JP 2016064150A JP 2016064150 A JP2016064150 A JP 2016064150A JP 6154040 B2 JP6154040 B2 JP 6154040B2
- Authority
- JP
- Japan
- Prior art keywords
- power
- signal
- input
- payout
- game
- 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.)
- Active
Links
Images
Description
本発明は、弾球遊技機(パチンコ機)や回胴式遊技機(スロットマシン)等の遊技機に関する。 The present invention relates to a gaming machine such as a ball and ball game machine (pachinko machine) and a revolving type game machine (slot machine).
特許文献1には、電源断信号を受信したとき割込を発生させ、割込処理にて制御状態の復旧に必要なデータをスタック領域に退避させ、退避させたデータの格納先のアドレスを格納するデータ退避処理を実行する遊技機が記載されている。 In Patent Document 1, an interrupt is generated when a power-off signal is received, data necessary for recovery of the control state is saved in the interrupt process, and the storage destination address of the saved data is stored. A gaming machine that executes a data saving process is described.
特許文献2には、メインルーチンにおいて、タイマ割込みの発生を禁止した後に、ポーリングによる電断検出信号に基づく電源断検出処理を実行する遊技機が記載されている。
特許文献1の電源断信号や特許文献2の電断検出信号のような異常信号を取得する遊技機において、遊技媒体の検出により出力される遊技媒体検出信号と上記異常信号とが同一の入力ポートに入力するように接続がなされる場合がある。このような遊技機では、電源断によるノイズ等に起因して遊技媒体検出信号が誤って入力ポートに入力した場合、遊技媒体検出信号が誤検出されてしまうおそれがある。
In the gaming machine to obtain the abnormal signal, such as in Patent Document 1 of the power disconnection signal and
そこで、本発明は、異常信号と遊技媒体検出信号とが制御装置の同一の入力ポートに入力するように接続がなされた遊技機において、電源断によるノイズ等に起因した遊技媒体検出信号の誤検出を防止することを目的とする。 Therefore, the present invention provides a game machine connected so that an abnormal signal and a game medium detection signal are input to the same input port of the control device, and erroneous detection of the game medium detection signal due to noise caused by power interruption. The purpose is to prevent .
上記目的を達成するため、本発明の第1の態様の遊技機は、遊技媒体検出手段と制御装置と異常検出手段とを備える。遊技媒体検出手段は、遊技媒体を検出すると遊技媒体検出信号を出力する。制御装置は、遊技媒体検出手段による遊技媒体の検出に基づいて所定の処理を実行する。 In order to achieve the above object, the gaming machine according to the first aspect of the present invention includes a game medium detecting means, a control device, and an abnormality detecting means. When the game medium is detected, the game medium detection means outputs a game medium detection signal. The control device executes a predetermined process based on the detection of the game medium by the game medium detection means .
異常検出手段は、当該遊技機に発生した異常状態を検出し、異常が発生したことを示す異常信号を出力する。制御装置は、遊技媒体検出手段から出力される遊技媒体検出信号と異常検出手段から出力される異常信号とが同一の入力ポートに入力するように接続がなされ、同一の入力ポートに入力した遊技媒体検出信号を取得する処理と当該同一の入力ポートへの異常信号の入力を検出したか否かを判定する処理とを、1つの入力処理内で実行可能とする。制御装置は、入力処理と、入力処理において取得した遊技媒体検出信号に基づく上記所定の処理と、入力処理及び上記所定の処理以外の他の処理とを、所定時間毎に実行する一連の処理内で実行可能とする。制御装置は、入力処理において異常信号の入力を検出した場合には、上記一連の処理を中断することなく上記他の処理を実行可能とするとともに、当該入力処理において遊技媒体検出信号を取得した場合であっても当該遊技媒体検出信号に基づく上記所定の処理を実行しない。 The abnormality detection means detects an abnormal state occurring in the gaming machine and outputs an abnormal signal indicating that an abnormality has occurred. The control device is connected so that the game medium detection signal output from the game medium detection means and the abnormality signal output from the abnormality detection means are input to the same input port, and the game medium input to the same input port. a process of determining whether it has detected the input of the processing and the abnormality signal to the same input port to acquire a detection signal, and executable within a single input processing. The control device includes a series of processes that execute the input process, the predetermined process based on the game medium detection signal acquired in the input process, and the input process and other processes other than the predetermined process at predetermined time intervals. Is executable. When the control device detects the input of the abnormal signal in the input process, the control device can execute the other process without interrupting the series of processes, and when the game medium detection signal is acquired in the input process. Even so, the predetermined processing based on the game medium detection signal is not executed.
本発明の第2の態様は、第1の態様の遊技機であって、制御装置は、上記一連の処理を含む割込み処理を上記所定時間毎に実行し、上記入力処理において異常信号の入力を検出した場合には、当該入力処理において遊技媒体検出信号を取得したか否かに拘わらず、当該入力処理において遊技媒体検出信号を取得したことを示す検出フラグを生成しない。
According to a second aspect of the present invention, there is provided the gaming machine according to the first aspect, wherein the control device executes an interrupt process including the series of processes every predetermined time, and inputs an abnormal signal in the input process. If detected, a detection flag indicating that a game medium detection signal has been acquired in the input process is not generated regardless of whether or not a game medium detection signal has been acquired in the input process.
上記構成では、割り込み処理において、同一の入力ポートに入力した遊技媒体検出信号を取得する処理と当該同一の入力ポートへの異常信号の入力を検出したか否かを判定する処理とを1つの入力処理内で実行可能とするとともに、入力処理において異常信号を検出した場合には、当該入力処理において遊技媒体検出信号を取得した場合であっても当該遊技媒体検出信号に基づく所定の処理を実行しないので、電源断によるノイズ等に起因して遊技媒体検出信号が誤って制御装置に入力しても、誤入力に基づいて遊技媒体が誤検知されて所定の処理が実行されてしまうことがない。従って、電源断によるノイズ等に起因して所定の処理が不適正に実行されてしまうことを未然に防止することができる。
In the above configuration, in the interrupt process, the process of obtaining the game medium detection signal input to the same input port and the process of determining whether or not the input of the abnormal signal to the same input port is detected as one input with the executable in the processing, when an abnormality is detected signal at the input processing does not perform the predetermined processing based on the game medium detection signal even when the acquired game media detection signal in the input process Therefore, even if a game medium detection signal is erroneously input to the control device due to noise or the like due to power interruption, the game medium is not erroneously detected based on the erroneous input and a predetermined process is not executed. Therefore, it is possible to prevent the predetermined processing from being executed improperly due to noise or the like due to power interruption.
本発明によれば、異常信号と遊技媒体検出信号とが制御装置の同一の入力ポートに入力するように接続がなされた遊技機において、電源断によるノイズ等に起因した遊技媒体検出信号の誤検出を防止することができる。
According to the present invention, in a gaming machine connected so that an abnormal signal and a game medium detection signal are input to the same input port of the control device, an erroneous detection of the game medium detection signal due to noise or the like due to power interruption Can be prevented .
以下、本発明の実施形態について、図面を参照しながら説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
図1に示すパチンコ遊技機(以下、「パチンコ機」と略称する)Pは、遊技球を遊技媒体として用いるものであり、遊技者は、遊技場運営者から遊技球を借り受けてパチンコ機Pによる遊技を行う。なお、パチンコ機Pにおける遊技において、遊技球はその1個1個が遊技価値を有した媒体であり、遊技の成果として遊技者が享受する特典(利益)は、例えば遊技者が獲得した遊技球の数に基づいて遊技価値に換算することができる。以下、図1〜図4を参照して遊技機の構成について説明する。また、遊技媒体としてメダルを使用し、遊技の成果の特典としてメダルが払い出される回胴式遊技機(スロットマシン)等の他の遊技機にも適用可能である。 A pachinko gaming machine (hereinafter abbreviated as “pachinko machine”) P shown in FIG. 1 uses a game ball as a game medium. A player borrows a game ball from a game hall operator and uses the pachinko machine P. Play a game. In the game of the pachinko machine P, each of the game balls is a medium having a game value, and the privilege (benefits) enjoyed by the player as a result of the game is, for example, a game ball acquired by the player Based on the number of games, it can be converted into a game value. Hereinafter, the configuration of the gaming machine will be described with reference to FIGS. Further, the present invention can also be applied to other gaming machines such as a revolving type gaming machine (slot machine) in which medals are used as game media and medals are paid out as a bonus of game results.
[遊技機の全体構成]
図1〜図3に示すように、パチンコ機Pは、機枠(外枠)1と内枠扉(前面枠)2とガラス扉3と遊技盤5とを備える。機枠1は、縦長矩形状の木製枠体であり、遊技場内の島設備(図示省略)に対して締結固定される。内枠扉2は、機枠1に開閉自在に取り付けられ、ガラス扉3は、内枠扉2に開閉自在に取り付けられる。
[Overall configuration of gaming machine]
As shown in FIGS. 1 to 3, the pachinko machine P includes a machine frame (outer frame) 1, an inner frame door (front frame) 2, a
遊技盤5は、内枠扉2の内側に収容され、内枠扉2に対して着脱可能に固定される。ガラス扉3の中央部には、縦長円形状の開口窓6が形成され、開口窓6には、遊技盤5の前方を覆う透明なガラス板7が取り付けられる。遊技盤5の前面(盤面)は、遊技者が開口窓6を介して前方から視認可能な遊技領域8を含み、ガラス扉3が閉じられると、ガラス板7の内面(後面)と遊技領域8との間に遊技球が流下可能な空間が形成される。
The
内枠扉2の一側(図1中の右側)の縁部には、シリンダ錠9が設けられている。機枠1に対して内枠扉2及びガラス扉3を閉じてシリンダ錠9を施錠すると、機枠1に対する内枠扉2及びガラス扉3の開放が禁止される。
A
ガラス扉3は、その下部に前面ボード4を一体的に有し、前面ボード4には、前方へ突出する上皿10と下皿11とが設けられる。上皿10は前面ボード4の上部に配置され、下皿11は上皿10の下方に配置される。上皿10には、遊技者に貸し出された遊技球(貸球)や入賞により獲得した遊技球(賞球)が貯留され、下皿11には、上皿10が満杯の状態でさらに払い出された遊技球が貯留される。なお、本実施形態のパチンコ機PはいわゆるCR機(CRユニット50(図5に示す)に接続される機種)であり、遊技者が借り受けた遊技球は、賞球とは別に上皿10に払い出される。
The
前面ボード4の上面には、貸出操作部15と演出ボタン23とが設けられている。貸出操作部15は、球貸スイッチ12と返却スイッチ13と度数表示装置14と球貸表示装置24とを有し、遊技者がCRユニット50(図5に示す)に残高がゼロではなく且つ適正な有価媒体(例えば磁気記録媒体や記憶IC内蔵媒体等)を投入すると、投入された有価媒体の残存度数が球貸表示装置24に表示されるとともに、球貸表示装置24の球貸可能ランプ(図示省略)が点灯する。係る状態で遊技者が球貸スイッチ12を操作すると、予め決められた度数単位(例えば500円分に相当する5度数)に対応する個数(例えば125個)分の遊技球が貸し出され、球貸表示装置24に、貸出処理中であることが表示されるとともに、遊技球の貸出に応じて有価媒体の残高度数が減少する。なお、本実施形態ではCR機を例に挙げているが、パチンコ機Pは、CR機以外の機種(CRユニット50に接続されない機種)であってもよい。また、演出ボタン23は、演出に関する遊技者からの操作を受け付ける。
On the upper surface of the
前面ボード4の前面には、上皿球抜き操作部16と下皿球抜き操作部17とが設けられている。上皿球抜き操作部16が操作されると、上皿10の遊技球が下皿11へ流下し、下皿球抜き操作部17が操作されると、下皿11の遊技球が下方へ落下して排出される。下皿11から排出された遊技球は、例えば球受け箱(図示省略)等に受け止められる。
On the front surface of the
前面ボード4の右下部には、発射ハンドル18が回転自在に支持され、内枠扉2の下部には、発射装置19が取り付けられている。上皿1の遊技球は発射装置19に1個ずつ供給され、遊技者が発射ハンドル18を回転操作すると、発射装置19(発射モータ86(図5に示す))が作動し、遊技領域8に向かって遊技球が発射される。遊技領域8は、ガイドレール20及び遊技球規制レール21によって略円形状に区画形成され、発射装置19から発射された遊技球は、レール20,21に沿って滑走して遊技領域8に左上方から進入し、遊技釘や風車等に誘導及び案内されて流下する。
A launch handle 18 is rotatably supported at the lower right portion of the
ガラス扉3の上部と内枠扉2の下部とには、スピーカ22がそれぞれ取り付けら、ガラス扉3の前面には、複数の枠体ランプ25が取り付けられている。スピーカ22は、遊技に関する様々な効果音を発する。枠体ランプ25は、例えば内蔵するLEDの発光(点灯や点滅、輝度階調の変化、色調の変化等)により演出を実行する。
[盤面の構成]
遊技領域8内には、統合表示ユニット30、演出表示装置(画像表示器)31、スルーチャッカ32、電動チューリップ(普通電動役物)33、ステージ34、第1始動入賞口(第1特図始動入賞口)35、第2始動入賞口(第2特図始動入賞口)36、一般入賞口37、アウト口38、アタッカー装置(特別電動役物)39、複数の盤面ランプ60、遊技釘(図示省略)、及び風車(図示省略)等が設けられている。第1始動入賞口35と第2始動入賞口36とは上下方向に間隔を空けて配置されている。盤面ランプ60は、例えば内蔵するLEDの発光(点灯や点滅、輝度階調の変化、色調の変化等)により演出を実行する。
[Configuration of the board]
In the
統合表示ユニット30は、演出表示装置31を視認している遊技者の視界に同時に入らないように、遊技盤3の右下部分に配置されている。図4に示すように、統合表示ユニット30は、第1特図表示装置(第1特別図柄表示装置)40と、第2特図表示装置(第2特別図柄表示装置)41と、普図表示装置(普通図柄表示装置)42と、状態表示装置43とを備え、これらの表示装置40〜43は、1つの統合表示基板48に実装された状態で遊技盤5に取り付けられる。
The
第1特図表示装置40は、第1始動入賞口35への遊技球の入賞を契機に行われた第1特別図柄に係る電子抽選の結果を、第1特別図柄(数字や絵柄)を変動させた後に停止表示するものである。第2特図表示装置41は、第2始動入賞口36への遊技球の入賞を契機に行われた第2特別図柄に係る電子抽選の結果を、第2特別図柄(数字や絵柄)を変動させた後に停止表示するものである。本実施形態の第1特図表示装置40及び第2特図表示装置41は、7セグメントLEDによって第1特別図柄及び第2特別図柄を変動後に停止表示する。なお、本実施形態では、第2始動入賞口36への入賞に基づく遊技の方が第1始動入賞口35への入賞に基づく遊技よりも優先して実行されるため、第1特別図柄と第2特別図柄とが同時に変動することはない。
The first special
普通図柄表示装置42は、スルーチャッカ32の遊技球の通過を契機に行われた普通図柄に係る電子抽選の結果を、普通図柄(数字や絵柄)を変動させた後に停止表示するものである。本実施形態の普通図柄表示装置42は、7セグメントLEDによって普通図柄を変動後に停止表示する。
The normal
状態表示装置43は、ラウンド数表示部44、第1特図保留数表示部45、第2特図保留数表示部46、及び普図保留数表示部47を有する。ラウンド数表示部44は、4つのランプ(LED)から構成され、ランプの消灯、点灯又は点滅の組合せによって現在の大当たりが何ラウンド継続するかを表示する。第1特図保留数表示部45は、第1始動入賞口35に遊技球が入賞し、当該入賞に応じて取得された第1特図当たり決定乱数(大当たり決定乱数)が第1特図保留乱数としてRAM75の第1特図保留乱数記憶領域(図示省略)に記憶されると、その記憶数を現在の保留数として表示する。第2特図保留数表示部46は、第2始動入賞口36に遊技球が入賞し、当該入賞に応じて取得された第2特図当たり決定乱数(大当たり決定乱数)が第2特図保留乱数としてRAM75の第2特図保留乱数記憶領域(図示省略)に記憶されると、その記憶数を現在の保留数を表示する。普図保留数表示部47は、スルーチャッカ32を遊技球が通過し、当該通過に応じて取得された普図当たり決定乱数(当たり決定乱数)が普図保留乱数としてRAM75の普図保留乱数記憶領域(図示省略)に記憶されると、その記憶数を現在の保留数を表示する。これらの保留数表示部45,46,47は、それぞれランプ(LED)から構成され、ランプの消灯、点灯又は点滅の組合せによって「0」個〜「4」個(保留球乱数の記憶数の上限)の間で保留数を表示する。
The
図2に示すように、演出表示装置31は、液晶の画像表示器を有し、遊技盤3の略中央部に設けられ、第1始動入賞口35及び第2始動入賞口36への遊技球の入賞を契機に行われた特別図柄に係る電子抽選の結果に基づいて所定の演出画像を表示する。演出画像には、第1特図表示装置40及び第2特図表示装置41に変動表示される第1特別図柄及び第2特別図柄と同期をとって変動するダミー図柄(演出図柄)と、第1特図当たり決定乱数の保留数表示と、第2特図当たり決定乱数の保留数表示とが含まれる。
As shown in FIG. 2, the
電動チューリップ33は、1対の羽根部材49と電動チューリップ駆動装置51(図5に示す)とを備える。1対の羽根部材49は、遊技盤3との直交軸を中心に回転自在であり、第2始動入賞口36の入口の左右に配置される。電動チューリップ駆動装置51のソレノイド(図示省略)が通電されると、1対の羽根部材が互いに離れる方向に回転し、電動チューリップ33が開口して、第2始動入賞口36の入口が拡大される。電動チューリップ33が閉じた状態(通常状態)では、第2始動入賞口36に遊技球は入賞できず、第2始動入賞口36への入賞は、電動チューリップ33の開口時に制限される。
The
ステージ34は、遊技球が転動しながら一時的に滞在する構造物であり、演出表示装置31の下方に配置される。ステージ34の略中央の真下に第1始動入賞口35が配され、ステージ34の中央部分から落下した遊技球は、高い確率で第1始動入賞口35へと導かれる。
The
アタッカー装置39は、第1始動入賞口35及び第2始動入賞口36に遊技球が入賞することを契機に行われる特別図柄に係る電子抽選の結果、特図当たり(大当たり)となって大当たり遊技に移行した場合に所定回数(本実施形態では、2ラウンド又は15ラウンド)開放される装置である。アタッカー装置39は、横長矩形状の大入賞口52と横長板状の蓋部材53とアタッカー駆動装置54(図5に示す)とを備える。蓋部材53の下部は、水平な軸を中心として前後方向に開閉自在に支持され、アタッカー駆動装置54のソレノイド(図示省略)が通電されると、蓋部材53の上部が前下方へ傾動し、アタッカー装置39が開口して大入賞口52が露呈され、多量の遊技球が蓋部材53の上面(裏面)に案内されて大入賞口52へ入賞可能となる。アタッカー装置39が閉じた状態(通常状態)では、蓋部材54が大入賞口54を閉止するため、大入賞口52への入賞は、アタッカー装置39の開口時に制限される。
As a result of an electronic lottery concerning a special symbol that is performed when a game ball wins at the first
各入賞口(第1始動入賞口35、第2始動入賞口36、一般入賞口37、大入賞口52)に遊技球が入賞すると、所定個数の遊技球が賞球として遊技者に払い出され、入賞した遊技球は、その入賞口35,36,37,52から遊技盤5の裏側へ回収される。また、何れの入賞口35,36,37,52にも入賞しなかった遊技球は、最終的にアウト口38から遊技盤5の裏側へ回収される。回収された遊技球は、アウト通路アセンブリ(図示省略)を通じてパチンコ機Pの裏側から枠外へ排出され、さらに島設備の補給経路(図示省略)に合流する。
When a game ball is won in each winning opening (first
スルーチャッカ32、第1始動入賞口35、第2始動入賞口36、一般入賞口37、大入賞口52の内部には、それぞれ遊技球の通過を検知するためのセンサ(図5に示すゲート通過球検知センサ55、第1特図始動球検知センサ56、第2特図始動球検知センサ57、大入賞球検知センサ58及び一般入賞球検知センサ59)が設けられている。これらのセンサ55,56,57,58,59は、遊技球の通過を検知する度に、主制御装置70(図5に示す)に検知信号を送信する。なお、第1特図始動球検知センサ56と第2特図始動球検知センサ57と大入賞球検知センサ58と一般入賞球検知センサ59とは、遊技領域8に発射された遊技球の入賞を検知する入賞検知手段として機能する。また、以下の説明において、これらの検知信号のうち、センサ56,57,58,59が送信する検知信号を入賞球検知信号と称し、センサ55が送信する検知信号を球通過検知信号と称して、両者を区別する場合がある。
Inside the through
[裏側の構成]
図3に示すように、パチンコ機Pの裏側には、電源供給装置61、主制御基板ユニット62、払出制御基板ユニット63、サブ制御基板ユニット64、外部情報端子基板65、電源コード(電源プラグ)66、アース線(アース端子)67、パチンコ機Pの電源系統や制御系統を構成する各種の電子機器類(図示外の制御コンピュータを含む)等が設置されている。
[Configuration of the back side]
As shown in FIG. 3, on the back side of the pachinko machine P, a
外部情報端子基板65は、パチンコ機Pを外部の電子機器(例えば、ホールコンピュータ68(図5に示す)やデータ表示装置等)に接続するためのインタフェースであり、パチンコ機Pの遊技進行状態やメンテナンス状態等を表す各種の外部情報信号(例えば賞球情報、扉開放情報、図柄確定回数情報、大当たり情報、始動口情報等)は、外部情報端子基板65から外部の電子機器に送信される。
The external
電源コード66は、遊技場の島設備に設置された電源装置(例えばAC24V)に接続されて、パチンコ機Pの動作に必要な電源(電力)を確保する。アース線67は、島設備に設置されたアース端子に接続され、パチンコ機Pをアース(接地)する。
The
[制御に関する構成]
次に、パチンコ機Pの制御に関する構成について説明する。図5は、パチンコ機Pに装備された各種の電子機器類を示すブロック図である。
[Configuration related to control]
Next, a configuration related to the control of the pachinko machine P will be described. FIG. 5 is a block diagram showing various electronic devices equipped in the pachinko machine P.
パチンコ機Pは、主制御装置70と払出制御装置71とサブ制御装置72とを備える。主制御装置70は、制御動作の中枢であり、主にパチンコ機Pにおける遊技処理の実行を制御する機能を有し、主制御基板ユニット62に内蔵されている。払出制御装置71は、主に遊技球の払い出しと発射とを制御する機能を有し、払出制御基板ユニット63に内蔵されている。サブ制御装置72は、主に演出を制御する機能を有し、サブ制御基板ユニット64に内蔵されている。主制御装置70と払出制御装置71とは、主制御装置70から払出制御装置71に対して一方向にコマンドが送信される通信線と、払出制御装置71から主制御装置70に対して一方向にコマンドが送信される通信線とによって接続されている。
The pachinko machine P includes a
(電源供給装置61)
電源供給装置61は、電源コード66を通じて島設備から外部電源(例えば、24Vの交流電源)の供給を受け、この交流電源をパチンコ機Pで使用する複数の定電圧の直流電源や粗整流の直流電源に変換し、主制御装置70、払出制御装置71、サブ制御装置72等に供給する。電源供給装置61には、電源回路やコンデンサ等のバックアップ電源(図示省略)と、外部電源からの電源の供給が途絶えたとき(電源断の発生時)に電源断の発生時に電源断予告信号(電源断信号)を生成する電源断検出回路(電源断信号発生手段)96とが設けられている。電源供給装置61は、電源断の発生時に、主制御装置70及び払出制御装置71に対して、電源断予告信号を送信するとともに、バックアップ電源を供給する。なお、電源断検出回路96は、電源供給装置61以外(例えば、主制御装置70や払出制御装置71など)に設けてもよい。
(Power supply device 61)
The
RWMクリアスイッチ69は、主制御装置70及び払出制御装置71に保存されている過去の遊技情報をクリアするために操作されるスイッチであり、電源供給装置61に設けられ、RWMクリアスイッチ69が操作されると、RWMクリア信号を主制御装置70及び払出制御装置71に送信する。
The RWM
(主制御装置70)
主制御装置70には、中央演算処理装置(中央命令処理部)である主制御CPU73を実装した回路基板(主制御基板)が装備されており、主制御CPU73は、CPUコア、各種レジスタ(汎用レジスタ、フラグレジスタ、インデックスレジスタ、リフレッシュレジスタ、割込みレジスタ、命令レジスタなど)、スタックポインタ、プログラムカウンタ、命令レコーダ(何れも図示省略)等を含み、ROM74やRAM(RWM)75等の半導体メモリとともにLSIとして構成されている。各レジスタは、演算結果、次に読み込む命令のアドレス、実行状態等を保持する。また主制御装置70には、ハード乱数発生回路76やサンプリング回路(図示省略)が装備されている。ハード乱数発生回路76は、ハードウェア乱数(例えば10進数表記で0〜65535)を発生させるものであり、発生させた乱数は、サンプリング回路を通じて主制御CPU73に入力される。ハードウェア乱数は、大当たり判定用の第1特図当たり決定乱数及び第2特図当たり決定乱数や、当たり(普図当たり)判定用の普図当たり決定乱数として用いられる。主制御装置70には、クロック(周波数発生回路部)77、入出力(I/O)ポート、カウンタ/タイマ回路(CTC)等の周辺ICが装備されており、これらは主制御CPU73とともに回路基板上に実装されている。
(Main controller 70)
The
RAM75には、各種フラグの記憶領域を含むワーク領域(図示省略)が設けられ、割込み発生時やサブルーチンや関数を呼び出す際に、処理中のデータや戻りアドレスなどがワーク領域のスタック領域(退避領域)に一時的に退避される。また、主制御CPU73は、ROM74に記憶されている遊技制御用プログラムに従って処理を実行することにより、電源断検知手段及び実行制御手段として機能する。
The
球検知センサ類56〜59の入賞検知信号は、入出力ドライバ(図示省略)を介して主制御CPU73に入力される。なお、本実施形態では、第1特図始動球検知センサ56及び第2特図始動球検知センサ57からの入賞検知信号は、主制御装置70に直接送信され、ゲート通過球検知センサ55、大入賞球検知センサ58及び一般入賞球検知センサ59からの入賞検知信号は、中継端子板(図示省略)を経由して主制御装置70に送信される。
The winning detection signals of the
第1特図表示装置40、第2特図表示装置41、普図表示装置42、及び状態表示装置43の各表示は、主制御CPU73からの制御信号によって制御される。主制御CPU73は、遊技の進行状況に応じてこれら表示装置40〜43に対する制御信号を出力し、各LEDの点灯状態を制御する。
Each display of the first special
電動チューリップ駆動装置51及びアタッカー駆動装置54の駆動は、主制御CPU73からの制御信号によって制御される。各駆動装置51,54のソレノイドは、主制御CPU73からの制御信号に基づいて動作(励磁)し、電動チューリップ33及びアタッカー装置39を開閉動作(作動)させる。
The driving of the electric
内枠扉2には、ガラス扉開放スイッチ78と内枠扉開放スイッチ79とが設置されている。内枠扉2からガラス扉3が開放されると、ガラス扉開放スイッチ78からの接点信号が払出制御装置71を経由して主制御装置70に入力される。また、機枠1から内枠扉2が開放されると、内枠扉開放スイッチ79からの接点信号が払出制御装置71を経由して主制御装置70に入力される。スイッチ78,79から接点信号を受信した主制御CPU73は、扉が開放したことを音やLEDや液晶などによって報知するため、これらの報知処理の実行を指示する制御信号をサブ制御装置72に送信する。また、スイッチ78,79から接点信号を受信した払出制御装置71は、扉開放を示す外部情報信号を出力する。
A glass door opening switch 78 and an inner frame
パチンコ機Pには磁気や電波等を検知するエラー検知センサ98が設けられ、エラー検知センサ98は、磁気や電波等を検知すると、主制御装置70にエラー検知信号を送信する。エラー検知信号を受信した主制御CPU73は、所定のエラー処理を実行するとともに、エラー検知を示す外部情報信号を出力する。
The pachinko machine P is provided with an
(払出制御装置71)
払出制御装置71には、払出制御CPU80を実装した回路基板(払出制御基板)が装備されており、払出制御CPU80も、主制御CPU73と同様に、CPUコア(図示省略)を含み、ROM81、RAM82等の半導体メモリとともにLSIとして構成されている。払出制御CPU80は、主制御CPU73から受信した賞球指示コマンド(払出コマンド送信信号)に基づいて遊技球の払い出し動作を制御し、指示された個数の遊技球の払出動作を実行させる。なお、主制御CPU73は、賞球指示コマンドとは別に、賞球情報信号を外部情報信号として生成し出力する。具体的には、主制御CPU73は、指示した個数の合計が所定個数(例えば、10個)に達する毎に、賞球情報信号を外部情報信号として生成し出力する。また、払出制御CPU80も、払い出しを行った個数の合計が所定個数(例えば、10個)に達する毎に、賞球情報信号を外部情報信号として生成し出力する。
(Discharge control device 71)
The
遊技場の球補給経路(図示省略)から補給された遊技球は、賞球タンク(図示省略)に蓄えられ、賞球樋(図示省略)を流下して賞球ケース(図示省略)に導入され、賞球ケースから上皿10に供給される。
The game balls replenished from the ball supply path (not shown) of the game hall are stored in a prize ball tank (not shown), and flow down a prize ball bowl (not shown) and introduced into a prize ball case (not shown). , And supplied to the
賞球ケースには、払出モータ(例えばステッピングモータ)83が設けられ、払出制御装置71(払出制御基板ユニット63)には、払出モータ83の駆動回路(図示省略)が設けられている。払出制御装置71は、払出モータ83を回転駆動して遊技球を賞球ケースから払い出させる。払出モータ83の1回の払出動作(所定量の回転駆動)によって1個の遊技球が払い出され、払い出された遊技球は、払出流路(図示省略)を通って前面ボード4へ流下する。
The prize ball case is provided with a payout motor (for example, a stepping motor) 83, and the payout control device 71 (payout control board unit 63) is provided with a drive circuit (not shown) of the
払出モータ83の下流側には払出計数スイッチ84が設置され、払出モータ83の駆動によって実際に賞球が払い出されると、払出計数スイッチ84からの払出計数信号(払出検知信号)が払出制御装置71に送信される。払出計数信号は、1個の遊技球の払い出しを検出する度に送信され、払出制御CPU80は、受信した払出計数信号に基づき、実際の払出数や球切れ状態を検知して、遊技球の払い出しを管理する。
A
CRユニット50に残高がゼロではない適正な有価媒体が投入されると、CRユニット50は、貸出の処理中であること(球貸しが可能な状態であること)を示す貸出装置READY信号を、中継基板91を経由して払出制御装置71へ送信するとともに、貸出可LED信号及び度数表示LED信号を、中継基板91を経由して球貸表示装置24及び度数表示装置14に送信する。球貸可LED信号を受信した球貸し表示装置24では球貸可能ランプが点灯し、度数表示LED信号を受信した度数表示装置14では、有価媒体の残高度数が表示される。係る状態で球貸スイッチ12が操作されると、その操作信号(貸出スイッチ信号)が中継基板91を経由してCRユニット50に送信され、貸出スイッチ信号を受信したCRユニット50は、有価媒体の残高の減算処理を実行するとともに、台端末貸出要求完了確認信号を、中継基板91を経由して払出制御装置71へ送信する。台端末貸出要求完了確認信号は、基本単位分(25個)の遊技球の貸出を要求する信号であり、例えば球貸スイッチ12の1回の操作が5度数分(125個)の貸出要求に対応するようにCRユニット50側で設定されている場合には、球貸スイッチ12が1回操作されると、台端末貸出要求完了確認信号は5回繰り返して送信される。
When an appropriate valuable medium whose balance is not zero is inserted into the
払出制御装置71のRAM82(払出残数記憶手段)には、遊技球の払出残数を記憶する払出残数記憶領域が設けられている。払出残数記憶領域は、賞球として払い出す予定の遊技球数(賞球残数)を記憶する賞球メモリ領域と、貸出として払い出す予定の遊技球数(貸出残数)を記憶する貸出メモリ領域とに区分されている。払出制御CPU80は、主制御CPU73から賞球指示コマンドを受信すると、受信した賞球指示コマンドが示す賞球数分だけ賞球残数を加算し、CRユニット50から台端末貸出要求完了確認信号を受信すると、基本単位分だけ貸出残数を加算する。遊技球の払出動作において、払出制御CPU80は、払出計数SW84からの払出計数信号を受信する度に、賞球残数又は貸出残数の一方を1ずつ減算し、賞球残数及び貸出残数の双方がゼロになるまで払出動作を継続する。なお、本実施形態の払出制御CPU80は、貸出残数の払い出しを賞球残数よりも優先して実行する。すなわち、貸出残数がゼロではない場合には、貸出残数がゼロになるまで貸出残数を優先して減算し、貸出残数がゼロである場合に限り、賞球残数を減算し、賞球残数がゼロになったときに払い出しを終了する。なお、1回の賞球払出を所定単位個数(例えば25個)を上限とした個数分まで連続して実行する処理(賞球連続払出処理)が設定されている場合には、連続賞球払出処理の途中に貸出残数がゼロから増加しても、実行中の連続賞球払出処理が完了するまではその処理(賞球払出)を中断せずに継続する。そして、1回の連続賞球払出処理が完了した後は、賞球残数が未だゼロに達していなくても、貸出残数がゼロではない場合には、賞球残数よりも貸出残数の払い出しを優先して実行する。払出制御CPU80は、払出動作が実行可能であるときにはこれを示す台READY信号を、基本単位分の貸出が終了したときにはこれを示す台端末貸出完了信号を、中継基板91を経由してCRユニット50へそれぞれ送信する。
The RAM 82 (payout remaining number storage means) of the
上皿10(図1に示す)への遊技球の供給経路には皿満タンスイッチ85が設置され、下皿11(図1に示す)が遊技球で満杯になると、皿満タンスイッチ85がONになり、満タン検出信号が払出制御装置71に送信される。満タン検出信号を受信した払出制御CPU80は、主制御CPU73から受信した賞球指示コマンドに応じた賞球動作を一旦保留とし、未払出の賞球残数をRAM82に記憶させておく。なお、RAM82の記憶は電源断時にもバックアップが可能であり、遊技中に停電(瞬間的な停電を含む)が発生しても、未払出の賞球残数情報が消失してしまうことはない。
A tray
発射装置19(図2に示す)には、発射モータ86と球送りソレノイド87とが設けられ、発射ハンドル18(図1に示す)には、発射ボリューム88とタッチセンサ89と発射停止スイッチ90とが設けられている。球送りソレノイド87は、上皿10(図1に示す)から流下した遊技球を1個ずつ発射位置に送り出し、発射モータ86は、発射位置に送り出された遊技球を打ち出す。なお遊技球の発射間隔は、例えば0.6秒程度(1分間で100個以内)である。
The firing device 19 (shown in FIG. 2) is provided with a firing
発射ボリューム88は、発射ハンドル18(図1に示す)の回転操作量(ストローク)に比例した発射勢指示信号を払出制御装置71に送信する。タッチセンサ89は、静電容量の変化から遊技者の身体が発射ハンドル18に触れていることを検出し、その検出信号を払出制御装置71に送信する。発射停止スイッチ90は、遊技者から操作されたときに発射停止信号(接点信号)を払出制御装置71に送信する。
The firing
遊技者が発射ハンドル18を回転操作すると、発射ボリューム88から払出制御装置71に回転操作量に応じた発射勢指示信号が送信される。払出制御CPU80は、受信した発射勢指示信号に基づいて発射モータ86の駆動を制御する。これにより、遊技者の操作量に応じて遊技球の打ち出し強さが調整される。但し、払出制御CPU80は、タッチセンサ89からの検出信号がオフ(ローレベル)の場合、及び発射停止スイッチ90から発射停止信号が入力された場合には、発射モータ86の駆動を停止する。この他、払出制御CPU80は、パチンコ機PにCRユニット50が接続されていない場合、発射モータ86の駆動を停止する。
When the player rotates the
払出制御装置71の基板上には、状態LED(図示省略)が設けられている。状態LEDは、電源からの電力供給時に発光する電源LED、受け皿の満タン時に発光する受け皿満タンLED、通信エラー時に発光する通信エラーLED、扉開放時に発光する扉開放LED、払出動作の不良時に発光する払出動作不良LED、CRユニット50との未接続時に発光するCR未接続LEDとを含む。状態LEDの発光制御は、対応する信号(コマンド)の受信に基づいて払出制御CPU80が実行する。
On the substrate of the
(サブ制御装置72)
サブ制御装置72には、演出制御CPU92を実装した回路基板(複合サブ制御基板)が装備されており、演出制御CPU92も、主制御CPU73と同様に、CPUコア(図示省略)を含み、ROM93、RAM94等の半導体メモリとともにLSIとして構成されている。サブ制御装置72には、入出力ドライバや各種の周辺IC(共に図示省略)が装備されている。
(Sub-control device 72)
The
サブ制御装置72のROM93には、演出の制御に関する演出制御プログラムが格納されており、演出制御CPU92は、格納された演出制御プログラムに従い、主制御CPU73から送信される演出用のコマンドに基づいて、演出表示装置31、各種ランプ25,60、音発生装置97及び可動役物による演出の制御を実行する。演出表示装置31は、画像プロセッサや液晶等を含み、音発生装置97は、サウンドプロセッサやスピーカ22等を含む。演出の制御には、演出表示装置31の画像の表示制御、各種ランプ25,60の発光制御、スピーカ22からの音声発生制御、及び可動役物の駆動装置95の駆動制御が含まれる。なお、画像プロセッサ及びサウンドプロセッサは、サブ制御基板ユニット64に設けてもよい。
The
(外部への出力)
主制御装置70及び払出制御装置71において生成された各種の外部情報信号は、外部情報端子基板65から外部に出力される。外部情報端子基板65から出力される信号は、例えば遊技場のホールコンピュータ68で集計される。
(Output to the outside)
Various external information signals generated in the
[主制御装置70の入力ポートの説明]
主制御装置70の入出力ポートには、複数のポート(本実施形態では、入力ポート0、入力ポート1及び入力ポート2の3つの入力ポートを含む)が設定されている。入力ポート0には、スイッチ異常信号(遊技盤5に搭載する検知センサ55〜59の断線信号)、扉開放信号(扉開放スイッチ78,79からの接点信号)、エラー検知信号(エラー検知センサ98からの信号)、払出コマンド許可信号(払出制御装置71からの信号)、及びRWMクリア信号(電源供給装置61からの信号)が割り当てられている。入力ポート1には、大入賞球検知センサ58及び一般入賞球検知センサ59からの入賞球検知信号が割り当てられている。入力ポート2には、第1特図始動球検知センサ56からの入賞球検知信号、第2特図始動球検知センサ57からの入賞球検知信号、ゲート通過球検知センサ55からの球通過検知信号、及び電源供給装置61からの電源断予告信号が割り当てられている。各入力ポートには、各信号の受信時に状態が切り替わる(1/0で切り替わる)1ビットの受信記憶領域が設けられ、各信号の入力の確認は、対応する受信記憶領域のビットチェックによって行われる。入力ポート2は、電源断の発生時に電源断予告信号を受信する電源断信号受信手段として機能し、入力ポート2に電源断予告信号が入力している間、対応する受信記憶領域の状態が切り替わる。
[Description of input port of main controller 70]
A plurality of ports (including three input ports of input port 0, input port 1, and
[主制御装置70が実行する制御処理]
次に、主制御装置70の主制御CPU73がROM74に記憶されている遊技制御用プログラムに従って実行する制御処理について説明する。主制御CPU73が実行する制御処理は、メインルーチンとしてのCPU初期化処理及びメインループ、シリアル通信受信割り込み処理、タイマ割り込み処理(メイン割り込み処理)、並びに電源断時退避処理を含み、主制御CPU73は、これらの処理の実行を制御する。
[Control processing executed by main controller 70]
Next, the control process executed by the
図6(a)に示すように、シリアル通信受信割り込み処理の割り込み発生要因は主コマンドの受信によって成立し、タイマ割り込み処理の張り込み発生要因は、所定周期(本実施形態では4ms)毎に成立し、電源断時退避処理の割り込み発生要因は電源断予告信号の受信によるINT割り込み発生によって成立する。シリアル通信受信割り込み処理とタイマ割り込み処理と電源断時退避処理とは、この順番で割り込み優先順位が高くなるように設定されている。また、シリアル通信受信割り込み処理と電源断時退避処理とは多重割り込みを禁止し、タイマ割り込み処理は多重割り込みを許可する。 As shown in FIG. 6A, the interrupt generation factor of the serial communication reception interrupt process is established by reception of the main command, and the occurrence factor of the timer interrupt process is established every predetermined period (4 ms in this embodiment). The cause of the interruption of the saving process when the power is cut off is established by the occurrence of the INT interruption due to the reception of the power cut notice signal. The serial communication reception interrupt process, the timer interrupt process, and the power-off save process are set so that the interrupt priority becomes higher in this order. The serial communication reception interrupt process and the power-off save process prohibit multiple interrupts, and the timer interrupt process allows multiple interrupts.
すなわち、主制御装置70では、図6(b)に示すように、メインルーチンが基本処理として繰り返して実行され、タイマ割り込み処理が所定周期毎に起動してメインループに割り込む。メインルーチンの実行中又はタイマ割り込み処理の実行中に主コマンドを受信すると、シリアル通信受信割り込み処理が起動してメインループ又はタイマ割り込み処理に割り込む(図示省略)。メインルーチンの実行中(シリアル通信受信割り込み処理及びタイマ割り込み処理の実行中ではなく、主コマンドも受信していない)に電源断予告信号を受信すると、電源断時退避処理が起動してメインルーチンに割り込む。また、タイマ割り込み処理の実行中に電源断予告信号を受信すると、タイマ割り込み処理が終了してメインループに復帰した後に電源断時退避処理が起動する。但し、電源断時退避処理の実行中にはシリアル通信受信割り込み処理及びメイン割り込み処理は起動せず、電源断時退避処理の実行中に割り込み発生要因が成立した場合には、電源断時退避処理の終了を待って対応する割り込み処理が起動する。なお、割り込み処理は、割り込み先の処理(現在実行中の処理)が割り込み許可状態であることを条件として起動する。
That is, in the
また、メイン割り込み処理は、入力ポート1及び入力ポート2の内容を取得して保存する処理(図12のステップS123、S126)と、ポート入力処理で取得した情報に基づいて遊技球が入賞したか否かを判定する入賞判定処理(入力ポート1のオンエッジ検出フラグを生成する処理(図12のステップS125)、入力ポート2のオンエッジ検出フラグを生成する処理(図12のステップS128))と、大当たり遊技状態を生成するか否かを判定するための電子的な当否抽選を入賞判定処理での判定結果に応じて実行する大当たり判定処理(図11のスイッチ管理処理(ステップS69)及び特別遊技管理処理(ステップS70))と、入賞判定処理での判定結果に応じた払出コマンド送信信号を生成する払出制御管理処理(図11のステップS74)と、払出制御管理処理で生成した払出コマンド送信信号を払出制御装置71に送信する出力処理(図11のステップS79)とを含む。メインCPU73は、タイマ割り込み処理の実行中は電源断時退避処理の割り込みを禁止する一方、実行中のタイマ割り込み処理において入賞判定処理の実行前に電源断予告信号を受信した場合(図12のステップS124:Yes、ステップS127:Yes)には、入賞判定処理を実行しない。
In addition, the main interrupt process is a process of acquiring and storing the contents of the input port 1 and the input port 2 (steps S123 and S126 in FIG. 12) and whether the game ball has won based on the information acquired by the port input process. A winning determination process (a process for generating an on-edge detection flag for the input port 1 (step S125 in FIG. 12), a process for generating an on-edge detection flag for the input port 2 (step S128 in FIG. 12)), and a jackpot A jackpot determination process (switch management process in FIG. 11 (step S69) and a special game management process) in which an electronic winning lottery for determining whether or not to generate a gaming state is executed according to the determination result in the winning determination process (Step S70)) and a payout control management process (FIG. 11) for generating a payout command transmission signal according to the determination result in the winning determination process Step including S74 as), the output process of transmitting a payout command transmit signal produced at the payout control management process to the payout controller 71 (step S79 in FIG. 11). While the
(CPU初期化処理)
パチンコ機Pに電源が投入されると、主制御CPU73はCPU初期化処理を開始する。CPU初期化処理によって、パチンコ機Pの安定した遊技動作が保証される。
(CPU initialization process)
When power is turned on to the pachinko machine P, the
図7及び図8は、主制御CPU73が実行するCPU初期化処理を示すフローチャートである。
7 and 8 are flowcharts showing a CPU initialization process executed by the
CPU初期化処理の開始により、スタックポインタにスタック領域の先頭アドレス(アドレス初期値)をセットし(ステップS1)、ベクタ方式の割込モード(割り込みモードモード2)に設定する(ステップS2)。これにより、主制御CPU73は、任意のアドレス(但し最下位ビットは0)を割込ベクタとして参照し、指定の割込ハンドラを実行することができる。
When the CPU initialization process is started, the top address (address initial value) of the stack area is set in the stack pointer (step S1), and the vector type interrupt mode (interrupt mode mode 2) is set (step S2). As a result, the
次に、割り込みベクタテーブルを設定し(ステップS3)、内蔵レジスタを設定し(ステップS4)、入力ポート0の内容を2回読み込み(ステップS5)、入力ポート0の結果を論理変換してRAM75の退避領域に退避させる(ステップS6)。
Next, an interrupt vector table is set (step S3), a built-in register is set (step S4), the contents of the input port 0 are read twice (step S5), the result of the input port 0 is logically converted, and the
次に、リセット時待機処理を実行する。この処理では、リセットスタート(例えば電源投入)時にある程度の待機時間(例えば数千ms程度)を確保し、その間に入力ポート2の電源断予告信号をチェックする。本実施形態では、サブ制御起動待ちとして2秒分のループカウンタをセットし(ステップS7)、ループカウンタの値をデクリメントしながら電源断予告信号の入力ポートをビットチェックする(ステップS8)。2秒間経過する前(ループカウンタが0になる前)に電源断予告信号が入力すると(ステップS9:Yes)、リセット時待機処理の最初(ステップS7)に戻る。電源断予告信号が入力せずに2秒間が経過するまでこの処理を継続し(ステップS9:Yes→ステップS7、又はステップS9:No→ステップS10:No→ステップS8)、電源断予告信号が入力せずに2秒間が経過すると(ステップS9:No→ステップS10:Yes)、この処理を終了する。これにより、例えばサブ制御装置72の起動処理終了前の主制御装置70からサブ制御装置72への制御信号の送信を防止することができる。また、主電源スイッチ(図示省略)の投入と切断の操作が短時間(1〜2秒程度)内に繰り返し行われた場合のシステム保護を図ることができる。
Next, a reset standby process is executed. In this process, a certain waiting time (for example, about several thousand ms) is secured at the start of reset (for example, power-on), and the power-off notice signal for the
次に、RAM75のワーク領域に対するアクセスを許可する(ステップS11)。具体的には、ワーク領域のRAMプロテクト設定値をリセットする。これにより、以後はRAM75のワーク領域に対するアクセスが許可された状態となる。
Next, access to the work area of the
次に、ステップS6で退避した入力ポート0の結果を復帰させ(ステップS12)、復帰させた入力ポート0のRWMクリア信号を参照し、RWMクリア信号のビットがオンか否か(RWMクリアスイッチ69が操作されたか否か)を判定する(ステップS13)。 Next, the result of the input port 0 saved in step S6 is restored (step S12), the RWM clear signal of the restored input port 0 is referred to, and the bit of the RWM clear signal is turned on (RWM clear switch 69). Is determined) (step S13).
RWMクリアスイッチ69が操作されていない場合(ステップS13:No)、RAM75にバックアップ有効判定値(バックアップ有効判定フラグ)が保存されているか否かを判定する。具体的には、RAM75のバックアップ判定記憶領域のデータをバックアップ有効判定値と比較し(ステップS14)、両者が一致している場合(バックアップ有効判定フラグがセットされている場合)には、電源断時退避処理が適正に終了した後のCPU初期化処理であると判定し(ステップS15:No)、不一致の場合(バックアップ有効判定フラグがセットされていない場合)には、電源断時退避処理が適正に終了した後のCPU初期化処理ではないと判定する(ステップS15:Yes)。
When the RWM
電源断時退避処理が適正に終了した後のCPU初期化処理である場合(ステップS15:No)、RAM75のバックアップ情報についてサムチェックを実行する。具体的には、RAM75のワーク領域(使用禁止領域及びスタック領域を含むユーザワーク領域)のうち、バックアップ判定記憶領域及びサムチェックバッファを除く領域について、チェックサム値を算出し(ステップS16)、算出したチェックサム値が正常値か否かを判定する(ステップS17)。具体的には、ステップS16で算出したチェックサム値と、後述する電源断時退避処理(ステップS108)で保存したチェックサム値とを比較し、両者が一致する場合には正常値であると判定し、相違する場合には正常値ではないと判定する。
If it is a CPU initialization process after the power-off saving process is properly completed (step S15: No), a sum check is performed on the backup information in the
チェックサム値が正常値の場合(ステップS17:Yes)、復帰処理(ステップS18〜ステップS20)を実行する。 If the checksum value is a normal value (step S17: Yes), a return process (step S18 to step S20) is executed.
復帰処理では、電源復帰時クリア領域(例えば、バックアップ判定記憶領域)をリセットした後(ステップS18)、演出制御復帰処理(ステップS19)及び払出制御復帰処理(ステップS20)を実行する。 In the return process, after resetting the power return clear area (for example, the backup determination storage area) (step S18), the effect control return process (step S19) and the payout control return process (step S20) are executed.
演出制御復帰処理(ステップS19)では、サブ制御装置72に対し、電源復帰指定のサブコマンド(例えば機種指定コマンド、特別図柄確率状態指定コマンド、作動記憶数コマンド、回数切りカウンタ残数コマンド、特別遊技状態指定コマンド等)を送信する。これを受けたサブ制御装置72は、前回の電源遮断時に実行中であった演出状態(例えば、内部確率状態、演出図柄の表示態様、作動記憶数の演出表示態様、音響出力内容、各種ランプの発光状態等)を復帰させる。
In the effect control return process (step S19), the
払出制御復帰処理(ステップS20)では、払出制御装置71に対し、電源復帰指定の払出コマンドを送信する。これを受けた払出制御装置71は、前回の電源遮断時の状態を復帰させるとともに、払出禁止状態を解除する。
In the payout control return process (step S20), a payout command for power supply return is transmitted to the
一方、RWMクリアスイッチ69が操作されていた場合(ステップS13:Yes)、電源断時退避処理が適正に終了した後のCPU初期化処理ではない場合(ステップS15:Yes)、又はチェックサム値が正常値でなかった場合(ステップS16:No)、初期化処理(ステップS21〜ステップS24)を実行する。
On the other hand, if the RWM
初期化処理では、RAM75の使用禁止領域以外の記憶領域を全てクリアする(ステップS21)。これにより、RAM75のワーク領域及びスタックエリアは全て初期化される。
In the initialization process, all storage areas other than the use-prohibited area of the
次に、RAM75にクリア起動時の初期値をセットすることによりRAM75の初期設定を行い(ステップS22)、演出制御初期化処理(ステップS23)及び払出制御初期化処理(ステップS24)を実行する。
Next, the
演出制御初期化処理(ステップS23)では、サブ制御装置72に対し、RWMクリア指定のサブコマンドを送信する。これを受けたサブ制御装置72は、演出制御状態を初期化する。また、払出制御初期化処理(ステップS24)では、払出制御装置71に対し、RWMクリア指定の払出コマンドを送信する。これを受けた払出制御装置71は、払出制御状態を初期化するとともに、払出禁止状態を解除する。
In the effect control initialization process (step S23), a subcommand for RWM clear designation is transmitted to the
払出制御復帰処理(ステップS20)又は払出制御初期化処理(ステップS24)が終了すると、演出制御装置73に電源投入後のサブコマンドを送信した後(ステップS25)、入力ポート1の内容を取得し(ステップS26)、入力ポート2の内容を取得し(ステップS27)、乱数ラッチレジスタをクリアし(ステップS28)、主コマンド許可信号をセットし(ステップS29)、タイマ割り込み用カウンタをセットし(ステップS30)、割り込みデイジーチェンをリセットして(ステップS31)、メインループへ移行する。割り込みデイジーチェンをリセット(ステップS31)することにより、後述する電源断時退避処理におけるステップS113(図13参照)の判定がYesでCPU初期化処理へ移行した際に、割り込み処理から抜ける際のRETI処理を行っていないために、後述するメインループにおけるステップS45(図9参照)で割り込み許可を行っても各割り込み処理に移行しないといったことを防止している。
When the payout control return process (step S20) or the payout control initialization process (step S24) ends, the subcommand after power-on is transmitted to the effect control device 73 (step S25), and the contents of the input port 1 are acquired. (Step S26) The contents of the
(メインループ)
図9は、主制御CPU73が実行するメインループを示すフローチャートである。
(Main loop)
FIG. 9 is a flowchart showing a main loop executed by the
メインループでは、割り込みを禁止して(ステップS41)、初期値乱数更新処理(ステップS42)、主コマンド解析処理(ステップS43)、サブコマンド送信処理(ステップS44)を実行し、割り込みを許可した後(ステップS45)、その他乱数更新処理(ステップS46)を実行して、ステップS41へ戻る。従って、メインループに対して電源断時退避処理の割り込みが許容される期間は、その他乱数更新処理(ステップS46)の実行中となる。 In the main loop, after interrupts are prohibited (step S41), initial value random number update processing (step S42), main command analysis processing (step S43), subcommand transmission processing (step S44) are executed, and interrupts are permitted. (Step S45), Other random number update processing (Step S46) is executed, and the process returns to Step S41. Therefore, a period during which interruption of the power-off saving process is allowed for the main loop is during the execution of the other random number update process (step S46).
初期値乱数更新処理(ステップS42)では、当たり図柄乱数用初期値更新乱数を更新する。当たり図柄乱数用初期値更新乱数とは、当たり図柄乱数の初期値及び終了値を決定するためのソフトウェア乱数である。当たり図柄乱数とは、大当たりの当選種別の抽選に用いるソフトウェア乱数である。なお、割込を禁止した状態(ステップS41)でステップS42を実行するのは、タイマ割り込み処理(図11のステップS67)でも同様の処理を実行するため、これとの重複(競合)を防止するためである。また、本実施形態の当たり決定乱数(普図当選決定乱数)と大当たり決定乱数(特図当選決定乱数)とは、ハード乱数発生回路76により発生されるハードウェア乱数であり、その更新周期はタイマ割込周期(例えば数ms)よりもさらに高速(例えば数μs)であるため、大当たり決定乱数の初期値を更新する必要はない。
In the initial value random number update process (step S42), the initial value update random number for winning symbol random numbers is updated. The initial value update random number for the winning symbol random number is a software random number for determining the initial value and the end value of the winning symbol random number. The winning symbol random number is a software random number used for the lottery of the winning type. Note that the reason why step S42 is executed in a state where interrupts are prohibited (step S41) is the same as the timer interrupt process (step S67 in FIG. 11), and therefore overlap (conflict) with this is prevented. Because. In addition, the winning determination random number (normal winning winning random number) and the big winning determining random number (special winning winning random number) of the present embodiment are hardware random numbers generated by the hard random
主コマンド解析処理(ステップS43)は、払出制御装置71から受信したコマンド(各種エラー発生指定の払出コマンドやエラー解除指定の払出コマンドを含む)を解析する処理である。サブコマンド送信処理(ステップS44)では、初期設定後に送信すべきサブコマンド(演出制御に必要なサブコマンド)を演出制御装置72に送信する。その他乱数更新処理(ステップS46)では、例えばリーチグループ決定乱数やリーチモード決定乱数や変動パターン乱数などを更新する。リーチグループ決定乱数とは、特別図柄変動パターンのリーチグループの抽選に用いるソフトウェア乱数であり、リーチモード決定乱数とは、特別図柄変動パターンのリーチモードの抽選に用いるソフトウェア乱数であり、変動パターン乱数とは、特別図柄変動パターンの抽選に用いるソフトウェア乱数である。
The main command analysis process (step S43) is a process for analyzing commands received from the payout control device 71 (including payout commands for specifying various error occurrences and payout commands for specifying error cancellation). In the subcommand transmission process (step S44), a subcommand (a subcommand necessary for presentation control) to be transmitted after the initial setting is transmitted to the
(シリアル通信受信割り込み処理)
図10は、主制御CPU73が実行するシリアル通信受信割り込み処理を示すフローチャートである。主制御CPU73は、メインループの割り込み許可中又はタイマ割り込み処理の割り込み許可中において、主コマンド(例えば、払出制御装置71から入力する各種の払出コマンド)を受信すると、受信した主コマンドを優先して処理するためにシリアル通信受信割り込み処理を割り込ませる。
(Serial communication reception interrupt processing)
FIG. 10 is a flowchart showing serial communication reception interrupt processing executed by the
図10に示すように、シリアル通信受信割り込み処理では、AFレジスタの値をRAM75の退避領域に退避させ(ステップS51)、チャンネルA(CHA)のステータスレジスタの内容をロードし(ステップS52)、受信FIFOにデータがあるか否かをチェックし(ステップS53)、CHAデータレジスタから受信値を取得し(ステップS54)、受信FIFOにデータが無いか否かを判定し(ステップS55)、受信FIFOにデータがない場合(ステップS55:Yes)には、ステップS51で退避させたAFレジスタの値を復帰させ(ステップS57)、割り込みを許可した後(ステップS58)、シリアル通信受信割り込み処理を終了する。一方、受信FIFOにデータがある場合(ステップS55:No)、主コマンドバッファに受信データを格納し(ステップS56)、ステップS51で退避させたAFレジスタの値を復帰させ(ステップS57)、割り込みを許可した後(ステップS58)、シリアル通信受信割り込み処理を終了する。シリアル通信受信割り込み処理の終了により、メインループ(スタックポインタで指示されるプログラムアドレス)に復帰する。 As shown in FIG. 10, in the serial communication reception interrupt process, the value of the AF register is saved in the save area of the RAM 75 (step S51), and the contents of the status register of channel A (CHA) are loaded (step S52). It is checked whether or not there is data in the FIFO (step S53), the received value is obtained from the CHA data register (step S54), and it is determined whether or not there is data in the receiving FIFO (step S55). If there is no data (step S55: Yes), the value of the AF register saved in step S51 is restored (step S57), the interrupt is permitted (step S58), and the serial communication reception interrupt process is terminated. On the other hand, if there is data in the reception FIFO (step S55: No), the reception data is stored in the main command buffer (step S56), the value of the AF register saved in step S51 is restored (step S57), and an interrupt is issued. After permitting (step S58), the serial communication reception interrupt process is terminated. Upon completion of the serial communication reception interrupt process, the process returns to the main loop (program address indicated by the stack pointer).
(タイマ割り込み処理)
図11は、主制御CPU73が実行するタイマ割り込み処理を示すフローチャートである。主制御CPU73は、カウンタ/タイマ回路は所定周期毎に割込要求信号を発生し、割込要求信号の発生に基づき、割り込み許可中のメインループにタイマ割り込み処理を割り込ませる。
(Timer interrupt processing)
FIG. 11 is a flowchart showing timer interrupt processing executed by the
図11に示すように、タイマ割り込み処理では、メインループの実行中に使用していた全てのレジスタの値をRAM75の退避領域に退避させる(ステップS61)。値を退避させた後のレジスタには、タイマ割り込み処理の中で別の値を書き込むことができる。 As shown in FIG. 11, in the timer interrupt process, all register values used during execution of the main loop are saved in the save area of the RAM 75 (step S61). Another value can be written into the register after saving the value during the timer interrupt processing.
次に、割り込みフラグを初期化し(ステップS62)、割り込みを許可し(ステップS63)、ダイナミックポート出力処理を実行した後(ステップS64)、ポート入力処理を実行する(ステップS65)。割り込みフラグの初期化(ステップS62)により、割り込みフラグが4ms毎にセットされ、タイマ割り込み処理が4ms毎に周期的に実行される。 Next, the interrupt flag is initialized (step S62), the interrupt is permitted (step S63), the dynamic port output process is executed (step S64), and the port input process is executed (step S65). With the initialization of the interrupt flag (step S62), the interrupt flag is set every 4 ms, and the timer interrupt process is periodically executed every 4 ms.
ポート入力処理(ステップS65)では、図12に示すように、オンエッジ検出フラグをクリアし(ステップS121)、入力ポート0の内容を取得・保存し(ステップS122)、入力ポート1の内容を取得・保存した後(ステップS123)、電源断予告信号を受信しているか否かを判定する(ステップS124)。具体的には、電源断予告信号の入力ポートをビットチェックし、電源断予告信号が入力しているか否かを判定する。 In the port input process (step S65), as shown in FIG. 12, the on-edge detection flag is cleared (step S121), the contents of the input port 0 are acquired and stored (step S122), and the contents of the input port 1 are acquired and stored. After saving (step S123), it is determined whether or not a power-off notice signal is received (step S124). Specifically, the input port of the power-off notice signal is bit-checked to determine whether or not the power-off notice signal is input.
電源断予告信号を受信していない場合(ステップS124:No)には、入力ポート1のオンエッジ検出フラグを生成し(ステップ125)、電源断予告信号を受信している場合(ステップS124:Yes)には、入力ポート1のオンエッジ検出フラグを生成しない。大入賞口52及び一般入賞口37への遊技球の入賞の検知は、大入賞球検知センサ58及び一般入賞球検知センサ59にそれぞれに対応する受信記憶領域(1ビット)の受信状態への変化(立ち上がり)を検出することによって行われ、例えば、一般入賞球検知センサ59に対応する受信記憶領域が受信状態に切り替わっていた場合、対応するオンエッジ検出フラグを、電源断予告信号を受信していなければオンに設定し、電源断予告信号を受信していればオンに設定せずにオフのまま維持する。
When the power-off notice signal is not received (step S124: No), the on-edge detection flag of the input port 1 is generated (step 125), and when the power-off notice signal is received (step S124: Yes). In this case, the on-edge detection flag for the input port 1 is not generated. The detection of the winning of the game ball to the big winning
次に、入力ポート1と同様に、入力ポート2の内容を取得・保存した後(ステップS126)、電源断予告信号を受信しているか否かを判定する(ステップS127)。 Next, as with the input port 1, after acquiring and saving the contents of the input port 2 (step S126), it is determined whether or not a power-off notice signal has been received (step S127).
電源断予告信号を受信していない場合(ステップS127:No)には、入力ポート2のオンエッジ検出フラグを生成して(ステップ128)、本処理を終了し、電源断予告信号を受信している場合(ステップS127:Yes)には、入力ポート2のオンエッジ検出フラグを生成せずに、本処理を終了する。第1始動入賞口35及び第2始動入賞口36への遊技球の入賞の検知は、第1特図始動球検知センサ56及び第2特図始動球検知センサ57にそれぞれに対応する受信記憶領域(1ビット)の受信状態への変化(立ち上がり)を検出することによって行われ、例えば、第2特図始動球検知センサ57に対応する受信記憶領域が受信状態に切り替わっていた場合、対応するオンエッジ検出フラグを、電源断予告信号を受信していなければオンに設定し、電源断予告信号を受信していればオンに設定せずにオフのまま維持する。また、スルーチャッカ32への遊技球の通過の検知は、ゲート通過球検知センサ55に対応する受信記憶領域(1ビット)の受信状態への変化(立ち上がり)を検出することによって行われ、ゲート通過球検知センサ55に対応する受信記憶領域が受信状態に切り替わっていた場合、対応するオンエッジ検出フラグを、電源断予告信号を受信していなければオンに設定し、電源断予告信号を受信していればオンに設定せずにオフのまま維持する。
When the power-off notice signal has not been received (step S127: No), the on-edge detection flag of the
このように、ポート入力処理では、ゲート通過球検知センサ55からの通過検知信号や、第1特図始動球検知センサ56、第2特図始動球検知センサ57、大入賞球検知センサ58、及び一般入賞球検知センサ59からの入賞検知信号の入力状態(オン/オフ)をリードする。電源断発生時ではない場合には、受信記憶領域の受信状態への変化を検出することによって遊技球の通過や入賞を検知し、通過や入賞を検知すると、対応するオンエッジ検出フラグをオンに設定した後、本処理を終了する。一方、電源断発生時の場合には、遊技球の通過や入賞を検知せずに、本処理を終了する。本処理を終了すると、図11のタイマ更新処理(ステップS66)及び初期値乱数更新処理(ステップS67)を実行する。
Thus, in the port input process, the passage detection signal from the gate passage
タイマ更新処理(ステップS66)では、カウンタ/タイマ回路のカウント値を初期値に更新して周期のカウントを再開する。初期値乱数更新処理(ステップS67)では、メインループの初期値乱数更新処理(図9のステップS42)と同様の処理を実行する。 In the timer update process (step S66), the count value of the counter / timer circuit is updated to the initial value, and the cycle count is restarted. In the initial value random number update process (step S67), the same process as the initial value random number update process (step S42 in FIG. 9) of the main loop is executed.
次に、当たり図柄乱数更新処理を実行する(ステップS68)。当たり図柄乱数更新処理では、大当たり図柄抽選用の当たり図柄乱数を発生させるためのカウンタの値を更新する。カウンタの値は、RAM75のカウンタ領域にてインクリメントされ、それぞれ規定の範囲内でループする。
Next, a winning symbol random number update process is executed (step S68). In the winning symbol random number update process, the value of the counter for generating the winning symbol random number for jackpot symbol lottery is updated. The counter value is incremented in the counter area of the
次に、スイッチ管理処理を実行する(ステップS69)。スイッチ管理処理では、ポート入力処理(ステップS65)で検知された第1始動入賞口35への遊技球の入賞、第2始動入賞口36への遊技球の入賞、及びスルーチャッカ32への遊技球の通過に基づいて、各当否判定処理に用いるハード乱数を取得する。
Next, switch management processing is executed (step S69). In the switch management process, a game ball won in the first
具体的には、第1始動入賞口35への遊技球の入賞を検知している場合(対応するオンエッジフラグがオンの場合)、RAM75の第1特図保留乱数記憶領域に記憶された第1特図保留乱数の数が上限数(4個)未満であるか否かを判定し、上限数に達していなければ、第1特図当たり決定乱数を取得し、第1特図保留乱数として第1特図保留乱数記憶領域に記憶する。一方、第1特図保留乱数の数が上限数に達している場合には、第1特図当たり決定乱数を取得しない。
Specifically, when the winning of the game ball to the first
同様に、第2始動入賞口36への遊技球の入賞を検知している場合(対応するオンエッジフラグがオンの場合)、RAM75の第2特図保留乱数記憶領域に記憶された第2特図保留乱数の数が上限数(4個)未満であるか否かを判定し、上限数に達していなければ、第2特図当たり決定乱数を取得し、第2特図保留乱数として第2特図保留乱数記憶領域に記憶する。一方、第2特図保留乱数の数が上限数に達している場合には、第2特図当たり決定乱数を取得しない。
Similarly, when the winning of the game ball to the second
スルーチャッカ32への遊技球の通過を検知している場合(対応するオンエッジフラグがオンの場合)、RAM75の普図保留乱数記憶領域に記憶された普図保留乱数の数が上限数(4個)未満であるか否かを判定し、上限数に達していなければ、普図当たり決定乱数を取得し、普図保留乱数として普図保留乱数記憶領域に記憶する。一方、普図保留乱数の数が上限数に達している場合には、普図当たり決定乱数を取得しない。
When the passage of the game ball to the through
また、第1特図当たり決定乱数又は第2特図当たり決定乱数を取得する場合、図柄表示用乱数として用いるソフト乱数を取得する。図柄表示乱数は、独立する複数の乱数(当たり図柄乱数、リーチグループ決定乱数、リーチモード決定乱数、及び変動パターン乱数)から構成され、図柄表示乱数も、特図保留乱数と同様に、上限数(4個)までRAM75に記憶される。なお、スルーチャッカ32への遊技球の通過を検知している場合(普通図柄の場合)にも、特別図柄の場合と同様に図柄表示用乱数を取得して記憶するが、その内容は特別図柄と比較して簡素化されている。
In addition, when acquiring a determined random number per first special figure or a determined random number per second special figure, a soft random number used as a symbol display random number is acquired. The symbol display random number is made up of a plurality of independent random numbers (per symbol random number, reach group determination random number, reach mode determination random number, and variation pattern random number). 4) is stored in the
このように、第1特図当たり決定乱数又は第2特図当たり決定乱数、及び対応する図柄表示用乱数(当たり図柄乱数、リーチグループ決定乱数、リーチモード決定乱数、及び変動パターン乱数)を取得するタイミングは、第1始動入賞口35又は第2始動入賞口36への遊技球の入賞時(第1特図始動球検知センサ56又は第2特図始動検知センサ56による遊技球の検知時)であり、普図当たり決定乱数及び対応する図柄表示用乱数を取得するタイミングは、スルーチャッカ32への遊技球の通過時(ゲート通過球検知センサ55による遊技球の検知時)である。
In this way, the random number determined per first special figure or the random number determined per second special figure and the corresponding random number for symbol display (per random symbol random number, reach group determined random number, reach mode determined random number, and variation pattern random number) are acquired. The timing is when a game ball is won in the first
次に、特別遊技管理処理を実行する(ステップS70)。特別遊技管理処理では、第1特別図柄又は第2特別図柄に関する内部抽選(特別図柄判定処理)や、第1特図表示装置40及び第2特図表示装置41による図柄の変動及び停止の表示態様の決定(図柄及び変動パターン決定処理)を実行する。
Next, special game management processing is executed (step S70). In the special game management process, the internal lottery (special symbol determination process) related to the first special symbol or the second special symbol, and the display mode of symbol variation and stop by the first special
特別図柄判定処理では、第1特図保留乱数記憶領域に最先に記憶された第1特図保留乱数、又は第2特図保留乱数記憶領域に最先に記憶された第2特図保留乱数の何れか一方を読み出し、読み出した特図保留乱数(第1特図当たり決定乱数又は第2特図当たり決定乱数)が当選であるか否かを、予め設定された第1特図当否判定テーブル又は第2特図当否判定テーブルを参照して決定する(特図抽選)。第1特図保留乱数は、第1特図当たり決定乱数として読み出されることによって第1特図保留乱数記憶領域から消去され、第2特図保留乱数は、第2特図当たり決定乱数として読み出されることによって第2特図保留乱数記憶領域から消去される。第1特図保留乱数と第2特図保留乱数との双方が記憶されている場合、第2特図保留乱数を優先して読み出してもよく、記憶領域(第1特図であるか第2特図であるか)に関わらず最先に記憶された保留球乱数を読み出してもよい。 In the special symbol determination process, the first special figure reservation random number stored first in the first special figure reservation random number storage area or the second special figure reservation random number stored first in the second special figure reservation random number storage area The first special figure success / failure determination table is set in advance as to whether or not the read special figure holding random number (the determined random number per first special figure or the determined random number per second special figure) is a win. Alternatively, it is determined with reference to the second special figure determination table (special drawing lottery). The first special figure reserved random number is erased from the first special figure reserved random number storage area by being read out as a determined random number per first special figure, and the second special figure reserved random number is read out as a determined random number per second special figure. As a result, it is erased from the second special figure reservation random number storage area. When both the first special figure reservation random number and the second special figure reservation random number are stored, the second special figure reservation random number may be preferentially read and the storage area (the first special figure or the second special figure may be stored). Regardless of whether or not it is a special figure, the stored ball random number stored first may be read.
図柄及び変動パターン決定処理では、特図停止図柄及び変動パターン(変動パターンコマンド)を、上記読み出した第1特図当たり決定乱数又は第2特図当たり決定乱数と、この当たり決定用乱数に対応して最先に記憶された当たり図柄乱数、リーチグループ決定乱数、リーチモード決定乱数、及び変動パターン乱数との組合せに応じて、予め設定されたパターン決定テーブルを参照して決定し、決定した変動パターンコマンドをポート出力要求バッファに格納する。当たり図柄乱数は、特図の停止図柄を規定するとともに、特図抽選に当選している場合には生起する大当たり遊技状態の態様(種別)を規定する。変動パターンは、変動時間、リーチの発生の有無、リーチ発生時の基本演出パターン等を規定する。 In the symbol and variation pattern determination process, the special symbol stop symbol and variation pattern (variation pattern command) correspond to the read random number determined per the first special symbol or the determined random number per second special symbol and the random number for determination per collision. The variation pattern determined by referring to a preset pattern determination table according to the combination of the winning symbol random number, reach group determination random number, reach mode determination random number, and variation pattern random number stored first. Store the command in the port output request buffer. The winning symbol random number defines the stop symbol of the special symbol, and also defines the mode (type) of the jackpot gaming state that occurs when the special symbol lottery is won. The variation pattern defines a variation time, presence / absence of reach, basic production pattern at the time of reach, and the like.
特図抽選に当選すると、当たり図柄乱数に応じた態様の大当たり遊技状態を生起する。大当たりの態様として、例えば2R通常当たり、2R確変当たり、15R通常当たり、15R確変当たり等が設定されており、2R当たりでは、アタッカー装置39を2ラウンド分開閉し、15R当たりでは、アタッカー装置39を15ラウンド分開閉する。また、通常当たりでは、大当たり遊技終了(アタッカー装置39の作動終了)後に通常遊技状態又は時短遊技状態へ移行する場合があり、確変当たりでは、大当たり遊技終了後に確変遊技状態へ移行する場合がある。
When the special drawing lottery is won, a big hit gaming state of a mode corresponding to the winning symbol random number is generated. For example, per 2R normal per, 2R normal per change, 15R normal per, 15R per normal change, etc. are set, and the
確変遊技状態では、特別図柄判定処理において参照する当否判定テーブルを、通常用の低確率判定テーブルから高確率判定テーブル(通常用よりも当選確率が高い判定テーブル)に変更する。確変遊技状態は、次回の特図当選まで継続するが、時短遊技状態は、特図抽選を所定回数実行することによって終了する。 In the probability variation gaming state, the success / failure determination table to be referred to in the special symbol determination process is changed from the normal low probability determination table to the high probability determination table (determination table having a higher winning probability than that for normal use). The probable gaming state continues until the next special figure winning, but the short-time gaming state is ended by executing the special drawing lottery a predetermined number of times.
また、特別遊技管理処理では、第1特別図柄及び第2特別図柄の変動の開始及び終了、大当たり遊技状態の開始及び終了、大当たり遊技状態におけるラウンド数、確変遊技状態の開始及び終了、時短遊技状態の開始及び終了などの管理を行い、これらの管理に関する演出関連コマンド(例えば、特別図柄の変動の開始を示す変動開始指示コマンドや終了を示す変動終了指示コマンドなど)をポート出力要求バッファに格納する。 Also, in the special game management process, the start and end of the fluctuation of the first special symbol and the second special symbol, the start and end of the jackpot gaming state, the number of rounds in the jackpot gaming state, the start and end of the probability variation gaming state, the short-time gaming state Management related to such management (for example, change start instruction command indicating the start of special symbol change, change end instruction command indicating end, etc.) is stored in the port output request buffer. .
次に、普通遊技管理処理を実行する(ステップS71)。普通遊技管理処理では、普通図柄に対応する内部抽選(普通図柄判定処理)や、普図表示装置42による図柄の変動及び停止の表示態様の決定(図柄及び変動パターン決定処理)などを実行する。
Next, a normal game management process is executed (step S71). In the normal game management process, internal lottery (normal symbol determination process) corresponding to a normal symbol, determination of a display variation and stop display mode (symbol and variation pattern determination process) by the general
普通図柄判定処理では、普図保留乱数記憶領域に最先に記憶された普図保留乱数を読み出し、読み出した普図保留乱数(普図当たり決定乱数)が当選であるか否かを、予め設定された普図当否判定テーブルを参照して決定する(普図抽選)。普図保留乱数は、普図当たり決定乱数として読み出されることによって普図保留乱数記憶領域から消去される。 In the normal symbol determination process, the normal figure hold random number stored first in the normal figure hold random number storage area is read, and whether or not the read general figure hold random number (determined random number per common figure) is winning is set in advance The decision is made with reference to the ordinary figure determination table (normal drawing lottery). The general-purpose reserved random number is erased from the general-purpose reserved random number storage area by being read as a determined random number per general-purpose figure.
図柄及び変動パターン決定処理では、普図停止図柄及び変動パターン(変動パターンコマンド)を、上記読み出した普図当たり決定乱数と、この当たり決定用乱数に対応して最先に記憶された図柄表示用乱数の組合せに応じて、予め設定されたパターン決定テーブルを参照して決定する。 In the symbol and variation pattern determination processing, the symbol stop symbol and variation pattern (variation pattern command) are displayed for the symbol display stored in the earliest correspondence with the read random number for each universal symbol and the random number for determining the symbol. It is determined by referring to a preset pattern determination table according to the combination of random numbers.
なお、普通図柄判定処理において普図抽選に当選すると、電動チューリップ33が所定回数(本実施形態では1回)開放される。また、確変遊技状態及び時短遊技状態では、普通図柄判定処理において参照する普図当否判定テーブルを、通常用の低確率判定テーブルから高確率判定テーブル(通常用よりも当選確率が高い判定テーブル)に変更し、図柄及び変動パターン決定処理において参照するパターン決定テーブルを、通常用のパターン決定テーブルから時短用パターン決定テーブル(通常用よりも変動時間が短い決定テーブル)に変更する。
In addition, when the normal symbol lottery is won in the normal symbol determination process, the
次に、エラー管理処理を実行する(ステップS72)。エラー管理処理では、ポート入力処理(ステップS122)で保存した入力ポート0のエラー検知信号の入力が確認された場合、磁石等を使用した不正が行われている可能性があるため、以降の通常の処理を実行せずに所定のエラー処理を実行する。 Next, error management processing is executed (step S72). In the error management process, if the input of the error detection signal of the input port 0 saved in the port input process (step S122) is confirmed, there is a possibility that fraud using a magnet or the like has been performed. The predetermined error process is executed without executing the process.
次に、入賞口スイッチ処理を実行する(ステップS73)。入賞口スイッチ処理では、ポート入力処理(ステップS65)で検知された第1始動入賞口35、第2始動入賞口36、一般入賞口37、及び大入賞口52への遊技球の入賞情報(各オンエッジフラグのオン情報)を取得する。
Next, a winning opening switch process is executed (step S73). In the winning opening switch processing, the winning information of the game balls to the first
次に、払出制御管理処理を実行する(ステップS74)。払出制御管理処理では、入賞口スイッチ処理(ステップS73)において取得した入賞情報に基づき、払出制御装置71に対して賞球動作の実行及び賞球個数を指示する賞球指示コマンドを生成し、ポート出力要求バッファに格納する。
Next, a payout control management process is executed (step S74). In the payout control management process, a prize ball instruction command for instructing the
次に、外部情報処理を実行する(ステップS75)。外部情報処理では、外部情報端子基板65を介して遊技場のホールコンピュータ68へ出力する外部情報信号(例えば賞球情報、扉開放情報、図柄確定回数情報、大当たり情報、始動口情報等)をポート出力要求バッファに格納する。
Next, external information processing is executed (step S75). In external information processing, an external information signal (for example, prize ball information, door opening information, symbol determination number information, jackpot information, start opening information, etc.) output to the
次に、試験信号管理処理を実行する(ステップS76)。試験信号管理処理では、主制御CPU73が自己の内部状態(例えば、普通図柄遊技管理状態、特別図柄遊技管理状態、大当たり中、確率変動機能作動中、時間短縮機能作動中)を表す各種の試験信号を生成し、これらをポート出力要求バッファに格納する。この試験信号により、例えば主制御装置70の外部で主制御CPU73の内部状態を試験することができる。
Next, a test signal management process is executed (step S76). In the test signal management process, the
次に、LED表示設定処理を実行する(ステップS77)。LED表示設定処理では、第1特図表示装置40、第2特図表示装置41、普図表示装置42、状態表示装置43等の点灯状態を制御するために各LEDに対して印加するバイトデータとしての駆動信号を、ポート出力要求バッファに格納する。
Next, an LED display setting process is executed (step S77). In the LED display setting process, byte data applied to each LED in order to control the lighting state of the first special
例えば、第1特図表示装置40及び第2特図表示装置41に対しては、特別遊技管理処理(ステップS70)において決定した特図停止図柄及び変動パターンでの点灯表示を行わせる駆動信号を格納し、普図表示装置42に対しては、普通遊技管理処理(ステップS71)において決定した普図停止図柄及び変動パターンでの点灯表示を行わせる駆動信号を格納し、第2特図保留数表示部46に対しては、第2特図保留乱数記憶領域に記憶された第2特図保留乱数の数を示す点灯表示を行わせる駆動信号を格納し、普図保留数表示部47に対しては、普図保留乱数記憶領域に記憶された普図保留乱数の数を示す点灯表示を行わせる駆動信号を格納し、ラウンド数表示部44に対しては、特別遊技管理処理(ステップS70)において管理されている大当たり遊技中の現在のラウンド数を示す点灯表示を行わせる駆動信号を格納する。
For example, for the first special
次に、ソレノイド出力イメージ合成処理を実行する(ステップS78)。ソレノイド出力イメージ合成処理では、アタッカー装置39及び電動チューリップ33を開閉制御するためにアタッカー駆動装置54及び電動チューリップ駆動装置51に対して出力する制御コマンドとしての駆動信号を、ポート出力要求バッファに格納する。
Next, solenoid output image composition processing is executed (step S78). In the solenoid output image composition processing, a drive signal as a control command output to the
例えば、アタッカー駆動装置54に対しては、特別遊技管理処理(ステップS70)において管理されている大当たり遊技中のラウンドに基づいてアタッカー装置39を開閉させる駆動信号を格納し、電動チューリップ駆動装置51に対しては、普通遊技管理処理(ステップS71)における普図抽選の当選に応じて電動チューリップ33を所定回数開放させる駆動信号を格納する。
For example, for the
次に、ポート出力処理を実行する(ステップS79)。ポート出力処理では、上述の各処理(ステップS70、ステップS74〜ステップS78)においてポート出力要求バッファに格納された各信号を、対応する送信対象に対してポート出力する。 Next, a port output process is executed (step S79). In the port output process, each signal stored in the port output request buffer in each process described above (step S70, step S74 to step S78) is output to the corresponding transmission target.
例えば、特別遊技管理処理(ステップS70)において格納された変動パターンコマンドや演出関連コマンドをサブ制御装置72に送信し、払出制御管理処理(ステップS74)において格納された賞球指示コマンドを払出制御装置71に送信し、外部情報処理(ステップS75)において格納された外部情報信号を外部情報端子基板65に送信し、LED表示設定処理(ステップS77)において格納された駆動信号を各表示装置40〜43に送信し、ソレノイド出力イメージ合成処理(ステップS78)において格納された駆動信号をアタッカー駆動装置54や電動チューリップ駆動装置51に送信する。
For example, the variation pattern command and the effect related command stored in the special game management process (step S70) are transmitted to the
最後に、ステップS61において退避させた全てのレジスタの値を復帰させ(ステップS80)、タイマ割り込み処理を終了する。タイマ割り込み処理の終了により、メインループ(スタックポインタで指示されるプログラムアドレス)に復帰する。 Finally, the values of all registers saved in step S61 are restored (step S80), and the timer interrupt process is terminated. Upon completion of the timer interrupt process, the process returns to the main loop (program address indicated by the stack pointer).
(電源断時退避処理)
図13は、主制御CPU73が実行する電源断時退避処理を示すフローチャートである。主制御CPU73は、メインルーチンの割り込み許可中に電源断予告信号を受信すると、電源断時退避処理を割り込ませる。また、タイマ割り込み処理の実行中に電源断予告信号を受信すると、タイマ割り込み処理が終了してメインループに復帰した後に電源断時退避処理を割り込ませる。
(Evacuation process when power is cut off)
FIG. 13 is a flowchart showing the power-off saving process executed by the
図13に示すように、電源断時退避処理では、AFレジスタの値をRAM75の退避領域に退避させ(ステップS101)、電源断予告信号を受信しているか否かを判定する(ステップS102)。具体的には、電源断予告信号の入力ポートをビットチェックし、電源断予告信号が入力しているか否かを判定する。このように電源断時退避処理の開始直後に電源断予告信号を再度チェックすることによって、ノイズ等による誤検知に起因したステップS106以降の処理の実行を回避することができる。 As shown in FIG. 13, in the power-off saving process, the value of the AF register is saved in the saving area of the RAM 75 (step S101), and it is determined whether or not a power-off notice signal is received (step S102). Specifically, the input port of the power-off notice signal is bit-checked to determine whether or not the power-off notice signal is input. In this way, by checking again the power-off notice signal immediately after the start of the power-off saving process, it is possible to avoid the execution of the processing after step S106 due to erroneous detection due to noise or the like.
電源断予告信号を受信していない場合(ステップS103:No)には、ステップS101で退避させたAFレジスタの値を復帰させ(ステップS104)、割り込みを許可した後(ステップS105)、電源断時退避処理を終了する。電源断時退避処理の終了により、メインループ(スタックポインタで指示されるプログラムアドレス)に復帰する。 If the power-off notice signal has not been received (step S103: No), the value of the AF register saved in step S101 is restored (step S104), the interruption is permitted (step S105), and the power is cut off. End the save process. Upon completion of the power-off saving process, the main loop (program address indicated by the stack pointer) is restored.
一方、電源断予告信号を受信している場合(ステップS103:Yes)には、出力ポート(出力ポート要求バッファ)の全てにクリア値を出力する(ステップS106)。これにより、本処理以前に出力ポート要求バッファに格納された信号は全て削除され、送信されない。 On the other hand, when the power-off notice signal is received (step S103: Yes), the clear value is output to all the output ports (output port request buffers) (step S106). As a result, all signals stored in the output port request buffer before this processing are deleted and not transmitted.
次に、RAM75のワーク領域(使用禁止領域及びスタック領域を含むユーザワーク領域)のうち、バックアップ判定記憶領域及びサムチェックバッファを除く領域について、チェックサム値を算出し、算出したチェックサム値をサムチェックバッファに保存する(ステップS108)。 Next, among the work areas of the RAM 75 (user work areas including the use prohibition area and the stack area), check sum values are calculated for areas excluding the backup determination storage area and the sum check buffer, and the calculated check sum values are summed. Save in the check buffer (step S108).
次に、バックアップ判定記憶領域にバックアップ有効判定値(バックアップ有効判定フラグ)を保存し(ステップS108)、RAM75のワーク領域に対するアクセスを禁止して(ステップS109)、電源断時待機処理を実行する。
Next, a backup validity judgment value (backup validity judgment flag) is stored in the backup judgment storage area (step S108), access to the work area of the
電源断時待機処理では、電源断時にある程度の待機時間(例えば数十ms程度)を確保し、その間に入力ポート2の電源断予告信号をチェックする。本実施形態では、リセット信号待ちとして80ms分のループカウンタをセットし(ステップS110)、ループカウンタの値をデクリメントしながら電源断予告信号の入力ポートをビットチェックする(ステップS111)。80ms間経過する前(ループカウンタが0になる前)に電源断予告信号が入力すると(ステップS112:Yes)、電源断時待機処理の最初(ステップS110)に戻る。電源断予告信号が入力せずに80ms間が経過するまでこの処理を継続し(ステップS112:Yes→ステップS110、又はステップS112:No→ステップS113:No→ステップS111)、電源断予告信号が入力せずに80ms間が経過すると(ステップS112:No→ステップS113:Yes)、電源断時退避処理を終了し、CPU初期化処理(図7のステップS1)へ移行する。電源断時待機処理によって、電源断予告信号が所定時間(80ms)以上入力しない安定した状態となった後にCPU初期化処理へ移行させることができ、処理の安定化及びシステム保護を図ることができる。
In the power-off standby process, a certain amount of standby time (for example, about several tens of ms) is secured when the power is turned off, and the power-off notice signal of the
このように主制御装置70のタイマ割り込み処理は、電源断時退避処理に優先してメインループに割り込むので、タイマ割り込み処理の実行中に電源断が発生した場合であっても、タイマ割り込み処理は電源断時退避処理によって中断せず、電源断時退避処理はタイマ割り込み処理の終了を待って開始される。従って、電源断時退避処理において退避させるデータ量を最小限に抑えるとともに、復帰プログラムの複雑化を回避することができる。
As described above, the timer interrupt process of the
すなわち、電源断時退避処理において、RAM75のワーク領域の内容をバックアップ情報としてRAM75の退避領域に退避させるバックアップ情報退避処理や、退避させたバックアップ情報をRAM75のワーク領域に復帰させて前回の電源断発生時に実行中であった遊技状態に復帰させる状態復帰処理を実行しないので、RAM75の退避領域の記憶量を低減させることができる。また、バックアップ情報退避処理や状態復帰処理を実行しないので、復帰プログラムの簡素化を図ることができる。
That is, in the saving process at power-off, the backup information saving process for saving the contents of the work area of the
また、ポーリングによって電源断予告信号を監視していないので、主制御CPU73の処理負担を軽減することができる。
Further, since the power-off notice signal is not monitored by polling, the processing load on the
さらに、メイン割り込み処理において、入賞判定処理(ステップS125、ステップS128)の実行前に電源断予告信号を受信した場合(ステップS124:Yes、ステップS127:Yes)には入賞判定処理を実行しないので、電源断によるノイズ等に起因して入賞球検知信号が誤って主制御装置に入力しても、誤入力に基づく払出(ステップS73、ステップS4)や当否抽選(ステップS69〜ステップS71)が実行されることはない。従って、例えば、故意に電源断を発生させるという遊技者の不正行為に起因して、賞球の払い出しや大当たり遊技状態の生成が行われることがなく、賞球の不正な取得を防止することができる。 Further, in the main interrupt process, when the power interruption notice signal is received before the winning determination process (step S125, step S128) is executed (step S124: Yes, step S127: Yes), the winning determination process is not executed. Even if the winning ball detection signal is erroneously input to the main control device due to noise caused by power interruption, payout based on the erroneous input (step S73, step S4) and winning / failing lottery (step S69 to step S71) are executed. Never happen. Therefore, for example, due to a player's fraudulent act of deliberately turning off the power, prize balls are not paid out or a jackpot gaming state is not generated, and unauthorized acquisition of prize balls can be prevented. it can.
[払出制御装置71の入力ポートの説明]
払出制御装置71の複数の入出力ポートのうち、入力ポート0には、払出計数スイッチ84からの払出計数信号、CRユニット50からの貸出装置READY信号及び台端末貸出要求完了確認信号、主制御CPU73からの主コマンド許可信号、払出コマンド送信信号及び発射許可信号、及び電源供給装置61からの電源断予告信号及びRWMクリア信号が割り当てられている。入力ポートには、各信号の受信時に状態が切り替わる(1/0で切り替わる)1ビットの受信記憶領域が設けられ、各信号の入力の確認は、対応する受信記憶領域のビットチェックによって行われる。入力ポート0は、電源断の発生時に電源断予告信号を受信する電源断信号受信手段として機能し、入力ポート0に電源断予告信号が入力している間、対応する受信記憶領域の状態が切り替わる。
[Description of Input Port of Dispensing Control Device 71]
Of the plurality of input / output ports of the
[払出制御装置71が実行する制御処理]
次に、払出制御装置71の払出制御CPU80がROM81に記憶されている遊技制御用プログラム(払出発射制御プログラム)に従って実行する制御処理について説明する。払出制御CPU80が実行する制御処理は、メインルーチンとしてのCPU初期化処理及びメインループ、シリアル通信受信割り込み処理、タイマ割り込み処理(メイン割り込み処理)、並びに電源断時退避処理を含み、払出制御CPU80は、これらの処理の実行を制御する。
[Control processing executed by payout control device 71]
Next, a control process executed by the
図14(a)に示すように、シリアル通信受信割り込み処理の割り込み発生要因は主コマンドの受信によって成立し、タイマ割り込み処理の張り込み発生要因は、所定周期(本実施形態では1.4ms)毎に成立し、電源断時退避処理の割り込み発生要因は電源断予告信号の受信によるINT割り込み発生によって成立する。シリアル通信受信割り込み処理とタイマ割り込み処理と電源断時退避処理とは、この順番で割り込み優先順位が高くなるように設定されている。また、シリアル通信受信割り込み処理と電源断時退避処理とは多重割り込みを禁止し、タイマ割り込み処理は多重割り込みを許可する。 As shown in FIG. 14A, the interrupt generation factor of the serial communication reception interrupt process is established by receiving the main command, and the occurrence factor of the timer interrupt process is generated every predetermined period (1.4 ms in the present embodiment). The interruption cause of the saving process when the power is cut off is established by the occurrence of the INT interruption due to the reception of the power cut notice signal. The serial communication reception interrupt process, the timer interrupt process, and the power-off save process are set so that the interrupt priority becomes higher in this order. The serial communication reception interrupt process and the power-off save process prohibit multiple interrupts, and the timer interrupt process allows multiple interrupts.
すなわち、払出制御装置71では、図14(b)に示すように、メインルーチンが基本処理として繰り返して実行され、タイマ割り込み処理が所定周期毎に起動してメインループに割り込む。メインルーチンの実行中又はタイマ割り込み処理の実行中に主コマンドを受信すると、シリアル通信受信割り込み処理が起動してメインループ又はタイマ割り込み処理に割り込む(図示省略)。メインルーチンの実行中(シリアル通信受信割り込み処理及びタイマ割り込み処理の実行中ではなく、主コマンドも受信していない)に電源断予告信号を受信すると、電源断時退避処理が起動してメインルーチンに割り込む。また、タイマ割り込み処理の実行中に電源断予告信号を受信すると、タイマ割り込み処理が終了してメインループに復帰した後に電源断時退避処理が起動する。但し、電源断時退避処理の実行中にはシリアル通信受信割り込み処理及びメイン割り込み処理は起動せず、電源断時退避処理の実行中に割り込み発生要因が成立した場合には、電源断時退避処理の終了を待って対応する割り込み処理が起動する。なお、割り込み処理は、割り込み先の処理(現在実行中の処理)が割り込み許可状態であることを条件として起動する。
That is, in the
また、メイン割り込み処理は、入力ポート0の内容(払出計数信号を含む)を取得する処理(図19のステップS262)と、入力ポート0の内容を更新して保存する処理(図19のステップS264)と、払出モータ83による1回の払出動作の完了を検出する払出検出処理(更新した入力ポート0の払出計数信号の立ち下がりを検出し、立ち下がりを検出したときに立ち下がりの検出(オンエッジ)を保存する処理(図19のステップS265))と、払出検出処理において1回の払出動作の完了を検出したときにRAM82に記憶された払出残数を1個減算する払出残数減算処理(図18のステップS247)と、RAM82に記憶された払出残数が正数であるときに払出モータ83に1回の払出動作を実行させるための払出駆動制御コマンドを生成し(図18のステップS247)、生成した払出駆動制御コマンド送信信号を払出モータ83に送信する払出指示処理(図18のステップS252)とを含む。メインCPU73は、タイマ割り込み処理の実行中は電源断時退避処理の割り込みを禁止する一方、実行中のタイマ割り込み処理において払出検出処理の実行前に電源断予告信号を受信した場合(図19のステップS263:Yes)には、払出検出処理を実行しない。
The main interrupt process includes a process for acquiring the contents of the input port 0 (including the payout count signal) (step S262 in FIG. 19) and a process for updating and storing the contents of the input port 0 (step S264 in FIG. 19). ) And a payout detection process for detecting the completion of one payout operation by the payout motor 83 (the falling edge of the updated payout count signal of the input port 0 is detected, and the falling edge is detected when the falling edge is detected (on edge) ) (Step S265 in FIG. 19)) and a payout remaining number subtraction process for subtracting one payout remaining number stored in the
(CPU初期化処理)
パチンコ機Pに電源が投入されると、払出制御CPU80はCPU初期化処理を開始する。CPU初期化処理によって、払出制御装置71の安定した払出動作及び発射動作が保証される。
(CPU initialization process)
When the pachinko machine P is powered on, the
図15は、払出制御CPU80が実行するCPU初期化処理を示すフローチャートである。
FIG. 15 is a flowchart showing a CPU initialization process executed by the
CPU初期化処理の開始により、スタックポインタにスタック領域の先頭アドレス(アドレス初期値)をセットし(ステップS201)、ベクタ方式の割込モード(割り込みモードモード2)に設定する(ステップS202)。これにより、払出制御CPU80は、任意のアドレス(但し最下位ビットは0)を割込ベクタとして参照し、指定の割込ハンドラを実行することができる。
When the CPU initialization process is started, the top address (address initial value) of the stack area is set in the stack pointer (step S201), and the vector type interrupt mode (interrupt mode mode 2) is set (step S202). Thus, the
次に、割り込みベクタテーブルを設定し(ステップS203)、内蔵レジスタを設定して(ステップS204)、リセット時待機処理を実行する。この処理では、リセットスタート(例えば電源投入)時にある程度の待機時間(例えば百ms程度)を確保し、その間に入力ポート0の電源断予告信号をチェックする。本実施形態では、供給電源安定待ち時間として100ミリ秒分のループカウンタをセットし(ステップS205)、ループカウンタの値をデクリメントしながら電源断予告信号の入力ポートをビットチェックする(ステップS206)。100ミリ秒間経過する前(ループカウンタが0になる前)に電源断予告信号が入力すると(ステップS207:Yes)、リセット時待機処理の最初(ステップS205)に戻る。電源断予告信号が入力せずに100ミリ秒間が経過するまでこの処理を継続し(ステップS207:Yes→ステップS205、又はステップS207:No→ステップS208:No→ステップS206)、電源断予告信号が入力せずに100ミリ秒間が経過すると(ステップS207:No→ステップS208:Yes)、この処理を終了する。 Next, an interrupt vector table is set (step S203), a built-in register is set (step S204), and a reset waiting process is executed. In this process, a certain waiting time (for example, about 100 ms) is secured at the start of reset (for example, power-on), and the power-off notice signal for the input port 0 is checked during that time. In this embodiment, a loop counter for 100 milliseconds is set as the supply power supply stabilization wait time (step S205), and the input port of the power-off notice signal is bit-checked while decrementing the value of the loop counter (step S206). If a power-off notice signal is input before 100 milliseconds have elapsed (before the loop counter reaches 0) (step S207: Yes), the process returns to the beginning of the reset standby process (step S205). This process is continued until 100 milliseconds elapses without inputting the power-off notice signal (Step S207: Yes → Step S205, or Step S207: No → Step S208: No → Step S206). If 100 milliseconds elapse without input (step S207: No → step S208: Yes), this process ends.
次に、RAM82のワーク領域に対するアクセスを許可する(ステップS209)。具体的には、ワーク領域のRAMプロテクト設定値をリセットする。これにより、以後はRAM82のワーク領域に対するアクセスが許可された状態となる。
Next, access to the work area of the
次に、RAM82にバックアップ有効判定値(バックアップ有効判定フラグ)が保存されているか否かを判定する。具体的には、RAM82のバックアップ判定記憶領域のデータをバックアップ有効判定値と比較し(ステップS210)、両者が一致している場合(バックアップ有効判定フラグがセットされている場合)には、電源断時退避処理が適正に終了した後のCPU初期化処理であると判定し(ステップS211:No)、不一致の場合(バックアップ有効判定フラグがセットされていない場合)には、電源断時退避処理が適正に終了した後のCPU初期化処理ではないと判定する(ステップS211:Yes)。
Next, it is determined whether or not a backup validity determination value (backup validity determination flag) is stored in the
電源断時退避処理が適正に終了した後のCPU初期化処理である場合(ステップS211:No)、RAM82のバックアップ情報についてサムチェックを実行する。具体的には、RAM82のワーク領域(使用禁止領域及びスタック領域を含むユーザワーク領域)のうち、バックアップ判定記憶領域及びサムチェックバッファを除く領域について、チェックサム値を算出し(ステップS212)、算出したチェックサム値が正常値か否かを判定する(ステップS213)。具体的には、ステップS212で算出したチェックサム値と、後述する電源断時退避処理(ステップS280)で保存したチェックサム値とを比較し、両者が一致する場合には正常値であると判定し、相違する場合には正常値ではないと判定する。
If it is a CPU initialization process after the power-off saving process is properly completed (step S211: No), a sum check is performed on the backup information in the
チェックサム値が正常値の場合(ステップS213:Yes)、復帰処理を実行する。復帰処理では、電源復帰時クリア領域(例えば、バックアップ判定記憶領域)をリセットする(ステップS214)。 When the checksum value is a normal value (step S213: Yes), a return process is executed. In the recovery process, the power recovery clear area (for example, the backup determination storage area) is reset (step S214).
一方、電源断時退避処理が適正に終了した後のCPU初期化処理ではない場合(ステップS211:Yes)、又はチェックサム値が正常値でなかった場合(ステップS213:No)、初期化処理(ステップS215、S216)を実行する。 On the other hand, if it is not the CPU initialization process after the power-off saving process is properly completed (step S211: Yes), or the checksum value is not normal (step S213: No), the initialization process ( Steps S215 and S216) are executed.
初期化処理では、RAM82の使用禁止領域以外の記憶領域を全てクリアする(ステップS215)。これにより、RAM82のワーク領域及びスタックエリアは全て初期化される。次に、RAM82にクリア起動時の初期値をセットすることによりRAM82の初期設定を行う(ステップS216)。
In the initialization process, all storage areas other than the use-prohibited area of the
復帰処理(ステップS214)又は初期化処理(ステップS215、S216)が終了すると、起動時の設定値をセットし(ステップS217)、タイマ割り込み用カウンタをセットし(ステップS218)、割り込みデイジーチェンをリセットして(ステップS219)、メインループへ移行する。割り込みデイジーチェンをリセット(ステップS219)することにより、後述する電源断時退避処理におけるステップS286(図20参照)の判定がYesでCPU初期化処理へ移行した際に、割り込み処理から抜ける際のRETI処理を行っていないために、後述するメインループにおけるステップS224(図16参照)で割り込み許可を行っても各割り込み処理に移行しないといったことを防止している。 When the return process (step S214) or initialization process (steps S215 and S216) ends, the setting value at the time of startup is set (step S217), the timer interrupt counter is set (step S218), and the interrupt daisy chain is reset. (Step S219), the process shifts to the main loop. By resetting the interrupt daisy chain (step S219), when the determination in step S286 (see FIG. 20) in the power-off saving process, which will be described later, shifts to the CPU initialization process in Yes, the RETI when exiting from the interrupt process Since the processing is not performed, even if the interrupt is permitted in step S224 (see FIG. 16) in the main loop described later, it is prevented that the processing does not shift to each interrupt processing.
(メインループ)
図16は、払出制御CPU80が実行するメインループを示すフローチャートである。
(Main loop)
FIG. 16 is a flowchart showing a main loop executed by the
メインループでは、割り込みを禁止して(ステップS221)、受信コマンド解析処理(ステップS222)、コマンド送受信関連処理(ステップS223)を実行し、割り込みを許可した後(ステップS224)、ステップS221へ戻る。 In the main loop, interrupts are prohibited (step S221), received command analysis processing (step S222), command transmission / reception related processing (step S223) is executed, interrupts are permitted (step S224), and the process returns to step S221.
受信コマンド解析処理(ステップS222)は、主制御装置70から受信したコマンドを解析する処理である。主制御装置70から受信するコマンドは、起動に関するコマンド、払出停止のコマンド(例えば、扉開放エラーが発生した場合に出力)、及び賞球に関するコマンド(主コマンド許可信号、払出コマンド送信信号)を含む。払出コマンド送信信号を受信した場合、払出制御CPU80は、受信した払出コマンド送信信号(賞球指示コマンド)が示す賞球数分だけ賞球メモリ領域の賞球残数を加算する。なお、払出制御CPU80は、起動に関するコマンドを受信した場合には起動処理を実行し、エラーに関するコマンドを受信した場合には、払出動作を中断する処理を実行する。コマンド送受信関連処理(ステップS223)では、受信したコマンドに関連する処理を実行する。例えば、皿満タンSW85からの受信に基づいて皿満タンエラーを検知した場合や、払出計数スイッチ84からの受信に基づいて球切れエラーや球詰まりエラーを検知した場合には、発生したエラーを示すエラーコマンドを主制御装置70へ送信する。
The received command analysis process (step S222) is a process of analyzing a command received from the
(シリアル通信受信割り込み処理)
図17は、払出制御CPU80が実行するシリアル通信受信割り込み処理を示すフローチャートである。払出制御CPU80は、メインループの割り込み許可中又はタイマ割り込み処理の割り込み許可中において、主コマンド(主制御装置70から入力する各種コマンド)を受信すると、受信した主コマンドを優先して処理するためにシリアル通信受信割り込み処理を割り込ませる。
(Serial communication reception interrupt processing)
FIG. 17 is a flowchart showing serial communication reception interrupt processing executed by the
図17に示すように、シリアル通信受信割り込み処理では、AFレジスタの値をRAM82の退避領域に退避させ(ステップS231)、SCUのステータスレジスタの内容をロードし(ステップS232)、受信データがあるか否かをチェックし(ステップS233)、SCUデータレジスタから受信値を取得し(ステップS234)、受信データを確認したか否かを判定し(ステップS235)、受信データを確認しなかった場合(ステップS235:No)には、ステップS231で退避させたAFレジスタの値を復帰させ(ステップS237)、割り込みを許可した後(ステップS238)、シリアル通信受信割り込み処理を終了する。一方、受信データを確認した場合(ステップS235:No)、シリアル通信用バッファに受信データを格納し(ステップS236)、ステップS231で退避させたAFレジスタの値を復帰させ(ステップS237)、割り込みを許可した後(ステップS238)、シリアル通信受信割り込み処理を終了する。シリアル通信受信割り込み処理の終了により、メインループ又は、タイマ割り込み処理(スタックポインタで指示されるプログラムアドレス)に復帰する。 As shown in FIG. 17, in the serial communication reception interrupt process, the value of the AF register is saved in the save area of the RAM 82 (step S231), the contents of the status register of the SCU are loaded (step S232), and there is received data. (Step S233), the received value is obtained from the SCU data register (step S234), it is determined whether the received data is confirmed (step S235), and the received data is not confirmed (step S235). In step S235: No), the value of the AF register saved in step S231 is restored (step S237), the interrupt is permitted (step S238), and the serial communication reception interrupt process is terminated. On the other hand, if the received data is confirmed (step S235: No), the received data is stored in the serial communication buffer (step S236), the value of the AF register saved in step S231 is restored (step S237), and an interrupt is issued. After permitting (step S238), the serial communication reception interrupt process is terminated. Upon completion of the serial communication reception interrupt process, the process returns to the main loop or timer interrupt process (program address indicated by the stack pointer).
(タイマ割り込み処理)
図18は、払出制御CPU80が実行するタイマ割り込み処理を示すフローチャートである。払出制御CPU80は、カウンタ/タイマ回路は所定周期毎に割込要求信号を発生し、割込要求信号の発生に基づき、割り込み許可中のメインループにタイマ割り込み処理を割り込ませる。
(Timer interrupt processing)
FIG. 18 is a flowchart showing timer interrupt processing executed by the
図18に示すように、タイマ割り込み処理では、メインループの実行中に使用していた全てのレジスタの値をRAM82の退避領域に退避させる(ステップS241)。値を退避させた後のレジスタには、タイマ割り込み処理の中で別の値を書き込むことができる。 As shown in FIG. 18, in the timer interrupt process, all register values used during the execution of the main loop are saved in the save area of the RAM 82 (step S241). Another value can be written into the register after saving the value during the timer interrupt processing.
次に、割り込みを許可し(ステップS242)、割り込みフラグを初期化した後(ステップS243)、ポート入力処理を実行する(ステップS244)。割り込みフラグの初期化(ステップS243)により、割り込みフラグが1.4ms毎にセットされ、タイマ割り込み処理が1.4ms毎に周期的に実行される。 Next, an interrupt is permitted (step S242), an interrupt flag is initialized (step S243), and port input processing is executed (step S244). With the initialization of the interrupt flag (step S243), the interrupt flag is set every 1.4 ms, and the timer interrupt process is periodically executed every 1.4 ms.
ポート入力処理(ステップS244)では、図19に示すように、オンエッジ検出フラグをクリアし(ステップS261)、入力ポート0の内容を取得した後(ステップS262)、電源断予告信号を受信しているか否かを判定する(ステップS263)。具体的には、電源断予告信号の入力ポートをビットチェックし、電源断予告信号が入力しているか否かを判定する。 In the port input process (step S244), as shown in FIG. 19, the on-edge detection flag is cleared (step S261), and the contents of the input port 0 are acquired (step S262). It is determined whether or not (step S263). Specifically, the input port of the power-off notice signal is bit-checked to determine whether or not the power-off notice signal is input.
電源断予告信号を受信していない場合(ステップS263:No)には、入力ポート0の内容を更新して保存し(ステップS264)、入力ポート0の払出計数信号のオンエッジを保存して(ステップS265)、本処理を終了する。払出計数SW84に対応する受信記憶領域(1ビット)の受信状態(レベル)は、通常はH(High)に設定され、払出計数信号の受信によってL(Low)に変更されるため、電断予告信号を受信しておらず、且つ払出計数SW84に対応する受信記憶領域(1ビット)の受信状態への変化(HからLへの立ち下がり)を検出した場合に、ステップS265の処理によって払出計数信号のオンエッジが保存される。なお、払出計数信号のオンエッジは、HからLへの変更(H→L)のみによって検出してもよく、HからLへ変更された後のLの維持(H→L→L)によって検出してもよい。一方、電源断予告信号を受信している場合(ステップS263:Yes)には、入力ポート0の内容の更新、及び入力ポート0のオンエッジの保存を実行せずに、本処理を終了する。
If the power-off notice signal has not been received (step S263: No), the contents of the input port 0 are updated and stored (step S264), and the on-edge of the payout count signal of the input port 0 is stored (step S264). S265), the process ends. The reception state (level) of the reception storage area (1 bit) corresponding to the
このように、ポート入力処理において、払出計数SW84からの払出計数信号の入力状態(H/L)をリードし、電源断発生時ではない場合には、受信記憶領域の受信状態への変化を検出することによって遊技球の払い出しを検知し、払出計数信号のオンエッジを保存した後、本処理を終了する。一方、電源断発生時の場合には、遊技球の払い出しを検知せずに、本処理を終了する。本処理を終了すると、図18のタイマ更新処理(ステップS245)を実行する。
As described above, in the port input process, the input state (H / L) of the payout count signal from the
タイマ更新処理(ステップS245)では、各処理の実行間隔を規定するカウンタ/タイマ回路のカウント値を初期値に一括して更新して周期のカウントを再開する。 In the timer update process (step S245), the count value of the counter / timer circuit that defines the execution interval of each process is updated to the initial value all at once, and the cycle count is restarted.
次に、CR通信処理を実行する(ステップS246)。CR通信処理では、ポート入力処理(ステップS264)でCRユニット50から台端末貸出要求完了確認信号の受信を保存した場合に、基本単位分だけ貸出メモリ領域の貸出残数を加算する。
Next, CR communication processing is executed (step S246). In the CR communication process, when reception of the terminal terminal lending request completion confirmation signal from the
次に、払出モータ関連処理を実行する(ステップS247)。払出モータ関連処理では、ポート入力処理(ステップS265)で払出計数SW84からの払出計数信号のオンエッジを保存した場合に、賞球残数及び貸出残数の一方を貸出残数を優先して1つ減算する。また、賞球残数及び貸出残数の一方がゼロではない場合には、遊技球1個分の払出動作を払出モータ83に実行させるための払出駆動制御コマンドを生成し、ポート出力要求バッファに格納する。なお、1回の賞球払出を所定単位個数(例えば25個)を上限とした個数分まで連続で行う処理(賞球連続払出処理)が設定されている場合には、連続賞球払出処理の途中に貸出残数がゼロから増加した場合であっても、実行中の連続賞球払出処理を中断せずに継続する。そして、1回の連続賞球払出処理が完了した後は、賞球残数が未だゼロに達していなくても、貸出残数がゼロではない場合には、賞球残数よりも貸出残数の払い出しを優先して実行する。
Next, a payout motor related process is executed (step S247). In the payout motor-related process, when the on-edge of the payout count signal from the
次に、発射制御処理248を実行する。発射制御処理では、発射ボリューム88から受信した射勢指示信号に基づいて発射モータ86の駆動を制御する。これにより、遊技者の操作量に応じて遊技球の打ち出し強さが調整される。但し、タッチセンサ89からの検出信号がオフ(ローレベル)の場合、発射停止スイッチ90から発射停止信号が入力された場合、及びパチンコ機PにCRユニット50が接続されていない場合には、発射モータ86の駆動を停止する。
Next, a
次に、エラー関連処理を実行する(ステップS249)。エラー関連処理では、皿満タンエラー等のエラーを検知した場合に、エラーの内容を示すエラーコマンドをポート出力要求バッファに格納する。 Next, error-related processing is executed (step S249). In the error-related processing, when an error such as a full dish error is detected, an error command indicating the error content is stored in the port output request buffer.
次に、外部情報処理を実行する(ステップS250)。外部情報処理では、外部情報端子基板65を介して遊技場のホールコンピュータ68へ出力する外部情報信号(例えば賞球情報等)をポート出力要求バッファに格納する。
Next, external information processing is executed (step S250). In the external information processing, an external information signal (for example, prize ball information) output to the
次に、試験信号管理処理を実行する(ステップS251)。試験信号管理処理では、払出制御CPU80が自己の内部状態を表す各種の試験信号を生成し、これらをポート出力要求バッファに格納する。この試験信号により、例えば払出制御装置71の外部で払出制御CPU80の内部状態を試験することができる。
Next, a test signal management process is executed (step S251). In the test signal management process, the
次に、ポート出力処理を実行する(ステップS252)。ポート出力処理では、上述の各処理においてポート出力要求バッファに格納された各信号を、対応する送信対象に対してポート出力する。本処理によって、払出モータ83への払出駆動制御コマンドの送信やホールコンピュータ68への賞球情報の送信の他、状態LEDの発光制御が実行される。
Next, port output processing is executed (step S252). In the port output process, each signal stored in the port output request buffer in each process described above is output to the corresponding transmission target. By this processing, in addition to transmission of a payout drive control command to the
最後に、ステップS241において退避させた全てのレジスタの値を復帰させ(ステップS253)、タイマ割り込み処理を終了する。タイマ割り込み処理の終了により、メインループ(スタックポインタで指示されるプログラムアドレス)に復帰する。 Finally, the values of all registers saved in step S241 are restored (step S253), and the timer interrupt process is terminated. Upon completion of the timer interrupt process, the process returns to the main loop (program address indicated by the stack pointer).
(電源断時退避処理)
図20は、払出制御CPU80が実行する電源断時退避処理を示すフローチャートである。払出制御CPU80は、メインルーチンの割り込み許可中に電源断予告信号を受信すると、電源断時退避処理を割り込ませる。また、タイマ割り込み処理の実行中に電源断予告信号を受信すると、タイマ割り込み処理が終了してメインループに復帰した後に電源断時退避処理を割り込ませる。
(Evacuation process when power is cut off)
FIG. 20 is a flowchart showing the power-off saving process executed by the
図20に示すように、電源断時退避処理では、AFレジスタの値をRAM82の退避領域に退避させ(ステップS271)、電源断予告信号を受信しているか否かを判定する(ステップS272)。具体的には、電源断予告信号の入力ポートをビットチェックし、電源断予告信号が入力しているか否かを判定する。このように電源断時退避処理の開始直後に電源断予告信号を再度チェックすることによって、ノイズ等による誤検知に起因したステップS276以降の処理の実行を回避することができる。 As shown in FIG. 20, in the power-off saving process, the value of the AF register is saved in the saving area of the RAM 82 (step S271), and it is determined whether or not a power-off notice signal is received (step S272). Specifically, the input port of the power-off notice signal is bit-checked to determine whether or not the power-off notice signal is input. In this way, by checking the power-off notice signal immediately after the start of the power-off saving process, it is possible to avoid the execution of the processing from step S276 onward due to erroneous detection due to noise or the like.
電源断予告信号を受信していない場合(ステップS273:No)には、ステップS271で退避させたAFレジスタの値を復帰させ(ステップS274)、割り込みを許可した後(ステップS275)、電源断時退避処理を終了する。電源断時退避処理の終了により、メインループ(スタックポインタで指示されるプログラムアドレス)に復帰する。 If the power-off notice signal has not been received (step S273: No), the value of the AF register saved in step S271 is restored (step S274), the interrupt is permitted (step S275), and the power is cut off. End the save process. Upon completion of the power-off saving process, the main loop (program address indicated by the stack pointer) is restored.
一方、電源断予告信号を受信している場合(ステップS273:Yes)には、出力ポート(出力ポート要求バッファ)の全てにクリア値を出力する(ステップS276)。これにより、本処理以前に出力ポート要求バッファに格納された信号は全て削除され、送信されない。 On the other hand, when the power-off notice signal is received (step S273: Yes), the clear value is output to all the output ports (output port request buffers) (step S276). As a result, all signals stored in the output port request buffer before this processing are deleted and not transmitted.
次に、コマンド受信待ち時間として4.5ミリ秒分のループカウンタをセットし(ステップS277)、ループカウンタの値をデクリメントしながらその値がゼロに達したか否か(4.5ミリ秒が経過したか否か)を判定し(ステップS278)、4.5ミリ秒が経過すると(ステップS278:Yes)、データ格納処理を実行する(ステップS279)。データ格納処理では、払出制御CPU80に入力したデータ(入力ポートの状態)を格納する。データ格納処理は、シリアル通信受信割り込み処理におけるステップS232〜S236(図17参照)と同様の処理であり、SCUのステータスレジスタの内容をロードし、受信データがあるか否かをチェックし、SCUデータレジスタから受信値を取得し、受信データを確認したか否かを判定し、受信データを確認した場合にシリアル通信用バッファに受信データを格納する。データ格納処理までの待機時間は、4.5ミリ秒に限定されず、主制御装置71が実行するタイマ割り込み処理の周期(4ミリ秒)を超えていればよく、タイマ割り込み処理の周期(4ミリ秒)にタイマ割り込み処理に要する時間を加えた時間以上が好適である。データ格納処理までの待機時間を上述のように設定することにより、この待機時間内に主制御CPU73がタイマ割り込み処理を必ず1回実行することになる。従って、待機時間内に、主制御CPU73が払出制御管理処理(図11のステップS74)及びポート出力処理(図11のステップS79)が1回以上実行され、データ格納処理(ステップS279)において、電源断時退避処理の開始後に主制御CPU73から送信された最新の賞球指示コマンドを受信して格納することができる。
Next, a loop counter for 4.5 milliseconds is set as a command reception waiting time (step S277), and whether or not the value has reached zero while decrementing the value of the loop counter (4.5 milliseconds is Whether or not elapses is determined (step S278), and when 4.5 milliseconds elapse (step S278: Yes), data storage processing is executed (step S279). In the data storage process, the data (input port state) input to the
次に、RAM82のワーク領域(使用禁止領域及びスタック領域を含むユーザワーク領域)のうち、バックアップ判定記憶領域及びサムチェックバッファを除く領域について、チェックサム値を算出し、算出したチェックサム値をサムチェックバッファに保存する(ステップS280)。 Next, among the work areas of the RAM 82 (user work areas including the use prohibition area and the stack area), check sum values are calculated for areas excluding the backup determination storage area and the sum check buffer, and the calculated check sum values are summed. Save in the check buffer (step S280).
次に、バックアップ判定記憶領域にバックアップ有効判定値(バックアップ有効判定フラグ)を保存し(ステップS281)、RAM82のワーク領域に対するアクセスを禁止して(ステップS282)、電源断時待機処理を実行する。
Next, a backup validity judgment value (backup validity judgment flag) is stored in the backup judgment storage area (step S281), access to the work area of the
電源断時待機処理では、電源断時にある程度の待機時間(例えば十ms程度)を確保し、その間に入力ポート0の電源断予告信号をチェックする。本実施形態では、リセット信号待ちとして10ms分のループカウンタをセットし(ステップS283)、ループカウンタの値をデクリメントしながら電源断予告信号の入力ポートをビットチェックする(ステップS284)。10ms間経過する前(ループカウンタが0になる前)に電源断予告信号が入力すると(ステップS285:Yes)、電源断時待機処理の最初(ステップS283)に戻る。電源断予告信号が入力せずに10ms間が経過するまでこの処理を継続し(ステップS285:Yes→ステップS283、又はステップS285:No→ステップS286:No→ステップS284)、電源断予告信号が入力せずに10ms間が経過すると(ステップS285:No→ステップS286:Yes)、電源断時退避処理を終了し、CPU初期化処理(図15のステップS201)へ移行する。電源断時待機処理によって、電源断予告信号が所定時間(10ms)以上入力しない安定した状態となった後にCPU初期化処理へ移行させることができ、処理の安定化及びシステム保護を図ることができる。 In the power-off standby process, a certain standby time (for example, about 10 ms) is secured when the power is turned off, and the power-off notice signal of the input port 0 is checked during that time. In this embodiment, a loop counter for 10 ms is set to wait for the reset signal (step S283), and the input port of the power-off notice signal is bit-checked while decrementing the value of the loop counter (step S284). If a power-off notice signal is input before 10 ms elapses (before the loop counter reaches 0) (step S285: Yes), the process returns to the beginning of the power-off standby process (step S283). This process is continued until 10 ms elapses without inputting the power-off notice signal (Step S285: Yes → Step S283, or Step S285: No → Step S286: No → Step S284), and the power-off notice signal is input. If 10 ms elapses (step S285: No → step S286: Yes), the power-off saving process is terminated, and the process proceeds to the CPU initialization process (step S201 in FIG. 15). The power-off standby process makes it possible to shift to the CPU initialization process after a stable state in which the power-off notification signal is not input for a predetermined time (10 ms) or longer, thereby stabilizing the process and protecting the system. .
このように払出御装置71のタイマ割り込み処理も、主制御装置70のタイマ割り込み処理と同様に、電源断時退避処理に優先してメインループに割り込むので、タイマ割り込み処理の実行中に電源断が発生した場合であっても、タイマ割り込み処理は電源断時退避処理によって中断せず、電源断時退避処理はタイマ割り込み処理の終了を待って開始される。従って、電源断時退避処理において退避させるデータ量を最小限に抑えるとともに、復帰プログラムの複雑化を回避することができる。
As described above, the timer interrupt process of the
すなわち、電源断時退避処理において、RAM82のワーク領域の内容をバックアップ情報としてRAM82の退避領域に退避させるバックアップ情報退避処理や、退避させたバックアップ情報をRAM82のワーク領域に復帰させて前回の電源断発生時に実行中であった遊技状態に復帰させる状態復帰処理を実行しないので、RAM82の退避領域の記憶量を低減させることができる。また、バックアップ情報退避処理や状態復帰処理を実行しないので、復帰プログラムの簡素化を図ることができる。
That is, in the power-off saving process, the backup information saving process for saving the contents of the work area of the
また、ポーリングによって電源断予告信号を監視していないので、払出制御CPU80の処理負担を軽減することができる。
Further, since the power-off notice signal is not monitored by polling, the processing load on the
さらに、メイン割り込み処理において、払出検出処理(ステップS265)の実行前に電源断予告信号を受信した場合(ステップS263:Yes)には払出検出処理を実行しないので、電源断によるノイズ等に起因して払出計数信号が誤って払出制御装置71に入力しても、誤入力に基づいて遊技球の払出完了が誤検知されてしまうことがない。従って、電源断に起因して払出残数が不適正に減算されてしまうことがなく、賞球や貸し球の不当な損失の発生を未然に防止することができる。
Furthermore, in the main interrupt process, when the power interruption notice signal is received before execution of the payout detection process (step S265) (step S263: Yes), the payout detection process is not executed. Even if the payout count signal is erroneously input to the
なお、上記実施形態では、2種類の特別図柄を変動する例を説明したが、特別図柄は1種類でもよく、3種類以上であってもよい。また、特別図柄又は普通図柄の一方のみによる当否抽選を実行して大当たり遊技状態を生起してもよい。 In addition, although the example which fluctuates two types of special symbols was demonstrated in the said embodiment, one type may be sufficient as a special symbol and three or more types may be sufficient as it. In addition, the winning / losing lottery with only one of the special symbols or the normal symbols may be executed to generate a jackpot gaming state.
以上、本発明者によってなされた発明を適用した実施形態について説明したが、この実施形態による本発明の開示の一部をなす論述及び図面により本発明は限定されることはない。すなわち、この実施形態に基づいて当業者等によりなされる他の実施形態、実施例及び運用技術等は全て本発明の範疇に含まれることは勿論であることを付け加えておく。 As mentioned above, although the embodiment to which the invention made by the present inventor is applied has been described, the present invention is not limited by the discussion and the drawings that form part of the disclosure of the present invention according to this embodiment. That is, it should be added that other embodiments, examples, operation techniques, and the like made by those skilled in the art based on this embodiment are all included in the scope of the present invention.
8:遊技領域
56:第1特図始動球検知センサ
57:第2特図始動球検知センサ
58:大入賞球検知センサ
59:一般入賞球検知センサ
61:電源供給装置
70:主制御装置
71:払出制御装置
72:サブ制御装置
73:主制御CPU
80:払出制御CPU(電源断検知手段、実行制御手段)
82:RAM(払出残数記憶手段)
83:払出モータ(払出手段)
84:払出計数SW(払出検知手段)
96:電源断検出回路(電源断信号発生手段)
P:パチンコ機(弾球遊技機)
8: Game area 56: First special figure starting ball detection sensor 57: Second special figure starting ball detection sensor 58: Large winning ball detection sensor 59: General winning ball detection sensor 61: Power supply device 70: Main controller 71: Dispensing control device 72: sub-control device 73: main control CPU
80: Dispensing control CPU (power-off detection means, execution control means)
82: RAM (payout remaining number storage means)
83: Dispensing motor (dispensing means)
84: payout count SW (payout detection means)
96: Power-off detection circuit (power-off signal generating means)
P: Pachinko machine (ball game machine)
Claims (2)
当該遊技機に発生した異常状態を検出し、異常が発生したことを示す異常信号を出力する異常検出手段を備え、
前記制御装置は、
前記遊技媒体検出手段から出力される前記遊技媒体検出信号と前記異常検出手段から出力される前記異常信号とが同一の入力ポートに入力するように接続がなされ、
前記同一の入力ポートに入力した前記遊技媒体検出信号を取得する処理と前記同一の入力ポートへの前記異常信号の入力を検出したか否かを判定する処理とを、1つの入力処理内で実行可能とし、
前記入力処理と、前記入力処理において取得した前記遊技媒体検出信号に基づく前記所定の処理と、前記入力処理及び前記所定の処理以外の他の処理とを、所定時間毎に実行する一連の処理内で実行可能とし、
前記入力処理において前記異常信号の入力を検出した場合には、前記一連の処理を中断することなく前記他の処理を実行可能とするとともに、当該入力処理において前記遊技媒体検出信号を取得した場合であっても当該遊技媒体検出信号に基づく前記所定の処理を実行しない
ことを特徴とする遊技機。 A gaming machine comprising: game medium detection means for outputting a game medium detection signal when a game medium is detected; and a control device for executing predetermined processing based on detection of the game medium by the game medium detection means,
An abnormality detection means for detecting an abnormal state occurring in the gaming machine and outputting an abnormal signal indicating that an abnormality has occurred,
The controller is
Connection is made so that the gaming medium detection signal output from the gaming medium detection means and the abnormality signal output from the abnormality detection means are input to the same input port,
A process of determining whether it has detected the input of the abnormality signal and the processing for acquiring the game medium detection signal input to the same input port to the same input port, run in one input processing possible and then,
In a series of processes in which the input process, the predetermined process based on the game medium detection signal acquired in the input process, and the process other than the input process and the predetermined process are executed every predetermined time. Is executable,
When the input of the abnormal signal is detected in the input process, the other process can be executed without interrupting the series of processes, and the game medium detection signal is acquired in the input process. Even if it exists, the said predetermined process based on the said game medium detection signal is not performed. The gaming machine characterized by the above-mentioned.
前記制御装置は、
前記一連の処理を含む割込み処理を前記所定時間毎に実行し、
前記入力処理において前記異常信号の入力を検出した場合には、当該入力処理において前記遊技媒体検出信号を取得したか否かに拘わらず、当該入力処理において前記遊技媒体検出信号を取得したことを示す検出フラグを生成しない
ことを特徴とする遊技機。 The gaming machine according to claim 1,
The controller is
An interrupt process including the series of processes is executed every predetermined time,
When the input of the abnormal signal is detected in the input process, it indicates that the game medium detection signal is acquired in the input process regardless of whether the game medium detection signal is acquired in the input process. A gaming machine characterized by not generating a detection flag.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016064150A JP6154040B2 (en) | 2016-03-28 | 2016-03-28 | Game machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016064150A JP6154040B2 (en) | 2016-03-28 | 2016-03-28 | Game machine |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012054001A Division JP5909389B2 (en) | 2012-03-12 | 2012-03-12 | Game machine |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2016116963A JP2016116963A (en) | 2016-06-30 |
JP6154040B2 true JP6154040B2 (en) | 2017-06-28 |
Family
ID=56243416
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2016064150A Active JP6154040B2 (en) | 2016-03-28 | 2016-03-28 | Game machine |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6154040B2 (en) |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4297466B2 (en) * | 2000-02-25 | 2009-07-15 | 株式会社ソフィア | Game machine |
JP5126466B2 (en) * | 2006-12-18 | 2013-01-23 | 株式会社三洋物産 | Game machine |
JP5156061B2 (en) * | 2010-07-30 | 2013-03-06 | 株式会社サンセイアールアンドディ | Game machine |
JP5518620B2 (en) * | 2010-08-05 | 2014-06-11 | 株式会社三共 | Game machine |
JP5633009B2 (en) * | 2011-02-10 | 2014-12-03 | 株式会社ソフイア | Game machine |
-
2016
- 2016-03-28 JP JP2016064150A patent/JP6154040B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2016116963A (en) | 2016-06-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6373572B2 (en) | Game machine | |
JP5101422B2 (en) | Slot machine | |
JP6338831B2 (en) | Game machine | |
JP4777398B2 (en) | Slot machine | |
JP2010022603A (en) | Slot machine | |
JP2009273896A (en) | Game machine | |
JP5909389B2 (en) | Game machine | |
JP6236275B2 (en) | Game machine | |
JP6236274B2 (en) | Game machine | |
JP3984241B2 (en) | Slot machine | |
JP5783631B2 (en) | Bullet ball machine | |
JP2012183231A (en) | Game machine | |
JP6154040B2 (en) | Game machine | |
JP2009195425A (en) | Slot machine | |
JP6954737B2 (en) | Pachinko machine | |
JP6117029B2 (en) | Game machine | |
JP6523411B2 (en) | Gaming machine | |
JP4048185B2 (en) | Slot machine | |
JP2007319331A (en) | Game machine | |
JP2007313244A (en) | Game machine | |
JP2015066274A (en) | Game machine | |
JP6310591B2 (en) | Game machine | |
JP2008173259A (en) | Game machine | |
JP2008000291A (en) | Game machine | |
JP6004067B2 (en) | Game machine |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20160419 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20160419 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20161209 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20170202 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20170217 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20170417 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20170502 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20170531 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6154040 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |