JP6154040B2 - Game machine - Google Patents

Game machine Download PDF

Info

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
Application number
JP2016064150A
Other languages
Japanese (ja)
Other versions
JP2016116963A (en
Inventor
智裕 久保田
智裕 久保田
Original Assignee
株式会社平和
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 株式会社平和 filed Critical 株式会社平和
Priority to JP2016064150A priority Critical patent/JP6154040B2/en
Publication of JP2016116963A publication Critical patent/JP2016116963A/en
Application granted granted Critical
Publication of JP6154040B2 publication Critical patent/JP6154040B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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には、メインルーチンにおいて、タイマ割込みの発生を禁止した後に、ポーリングによる電断検出信号に基づく電源断検出処理を実行する遊技機が記載されている。   Patent Document 2 describes a gaming machine that executes a power interruption detection process based on a power interruption detection signal by polling after prohibiting the occurrence of a timer interrupt in the main routine.

特許第3768419号公報Japanese Patent No. 3768419 特開2007−50109号公報JP 2007-50109 A

特許文献1電源断信号特許文献2電断検信号のような異常信号を取得する遊技機において、遊技媒体の検出により出力される遊技媒体検出信号と上記異常信号とが同一の入力ポートに入力するように接続がなされる場合がある。このような遊技機では、電源断によるノイズ等に起因して遊技媒体検出信号が誤って入力ポートに入力した場合、遊技媒体検出信号が誤検出されてしまうおそれがある。 In the gaming machine to obtain the abnormal signal, such as in Patent Document 1 of the power disconnection signal and Patent Document 2 power failure detection signal, the game medium detection signal and the error signal and the same input output by detection of the game medium A connection may be made to enter a port. In such a gaming machine, when a game medium detection signal is erroneously input to the input port due to noise or the like due to power interruption, the game medium detection signal may be erroneously detected .

そこで、本発明は、異常信号と遊技媒体検出信号とが制御装置の同一の入力ポートに入力するように接続がなされた遊技機において、電源断によるノイズ等に起因した遊技媒体検出信号の誤検出を防止することを目的とする。 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 .

本発明の実施の形態例に係るパチンコ機の外観斜視図である。1 is an external perspective view of a pachinko machine according to an embodiment of the present invention. 図1のパチンコ機のガラス扉及び前面ボードを開放した斜視図である。It is the perspective view which open | released the glass door and front board of the pachinko machine of FIG. 図1のパチンコ機の背面図である。It is a rear view of the pachinko machine of FIG. 図2のパチンコ機の統合表示ユニットの拡大正面図である。It is an enlarged front view of the integrated display unit of the pachinko machine of FIG. 図1のパチンコ機の電気的構成を示すブロック図である。It is a block diagram which shows the electrical structure of the pachinko machine of FIG. 図5の主制御装置が実行する割り込み処理を説明する図であり、(a)は各割り込み処理の内容を示し、(b)はタイマ割り込み処理中の電源断による電源断時退避処理の割り込みを模式的に示す。FIG. 6 is a diagram for explaining interrupt processing executed by the main control device of FIG. 5, (a) shows the contents of each interrupt processing, and (b) shows an interrupt of a power-off save processing due to power interruption during timer interrupt processing. This is shown schematically. 図5の主制御装置が実行するCPU初期化処理を示すフローチャートである。It is a flowchart which shows the CPU initialization process which the main controller of FIG. 5 performs. 図5の主制御装置が実行するCPU初期化処理を示すフローチャートである。It is a flowchart which shows the CPU initialization process which the main controller of FIG. 5 performs. 図5の主制御装置が実行するメインループを示すフローチャートである。It is a flowchart which shows the main loop which the main controller of FIG. 5 performs. 図5の主制御装置が実行するシリアル通信受信割り込み処理を示すフローチャートである。It is a flowchart which shows the serial communication reception interruption process which the main controller of FIG. 5 performs. 図5の主制御装置が実行するタイマ割り込み処理を示すフローチャートである。It is a flowchart which shows the timer interruption process which the main control apparatus of FIG. 5 performs. 図11のポート入力処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the port input process of FIG. 図5の主制御装置が実行する電源断時退避処理を示すフローチャートである。It is a flowchart which shows the saving process at the time of the power-off which the main control apparatus of FIG. 5 performs. 図5の払出制御装置が実行する割り込み処理を説明する図であり、(a)は各割り込み処理の内容を示し、(b)はタイマ割り込み処理中の電源断による電源断時退避処理の割り込みを模式的に示す。FIG. 6 is a diagram for explaining interrupt processing executed by the payout control device of FIG. 5, in which (a) shows the contents of each interrupt processing, and (b) shows an interruption of power-off saving processing due to power interruption during timer interrupt processing. This is shown schematically. 図5の払出制御装置が実行するCPU初期化処理を示すフローチャートである。It is a flowchart which shows the CPU initialization process which the payout control apparatus of FIG. 5 performs. 図5の払出制御装置が実行するメインループを示すフローチャートである。It is a flowchart which shows the main loop which the payout control apparatus of FIG. 5 performs. 図5の払出制御装置が実行するシリアル通信受信割り込み処理を示すフローチャートである。It is a flowchart which shows the serial communication reception interruption process which the payout control apparatus of FIG. 5 performs. 図5の払出制御装置が実行するタイマ割り込み処理を示すフローチャートである。It is a flowchart which shows the timer interruption process which the payout control apparatus of FIG. 5 performs. 図18のポート入力処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the port input process of FIG. 図5の払出制御装置が実行する電源断時退避処理を示すフローチャートである。It is a flowchart which shows the saving process at the time of the power-off which the payout control apparatus of FIG. 5 performs.

以下、本発明の実施形態について、図面を参照しながら説明する。   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 glass door 3, and a game board 5. The machine frame 1 is a vertically long wooden frame, and is fastened and fixed to an island facility (not shown) in the game hall. The inner frame door 2 is attached to the machine frame 1 so as to be freely opened and closed, and the glass door 3 is attached to the inner frame door 2 so as to be freely opened and closed.

遊技盤5は、内枠扉2の内側に収容され、内枠扉2に対して着脱可能に固定される。ガラス扉3の中央部には、縦長円形状の開口窓6が形成され、開口窓6には、遊技盤5の前方を覆う透明なガラス板7が取り付けられる。遊技盤5の前面(盤面)は、遊技者が開口窓6を介して前方から視認可能な遊技領域8を含み、ガラス扉3が閉じられると、ガラス板7の内面(後面)と遊技領域8との間に遊技球が流下可能な空間が形成される。   The game board 5 is accommodated inside the inner frame door 2 and is detachably fixed to the inner frame door 2. A vertically oval opening window 6 is formed at the center of the glass door 3, and a transparent glass plate 7 covering the front of the game board 5 is attached to the opening window 6. The front surface (board surface) of the game board 5 includes a game area 8 that a player can visually recognize from the front through the opening window 6, and when the glass door 3 is closed, the inner surface (rear face) of the glass plate 7 and the game area 8. A space in which a game ball can flow down is formed.

内枠扉2の一側(図1中の右側)の縁部には、シリンダ錠9が設けられている。機枠1に対して内枠扉2及びガラス扉3を閉じてシリンダ錠9を施錠すると、機枠1に対する内枠扉2及びガラス扉3の開放が禁止される。   A cylinder lock 9 is provided on an edge of one side (right side in FIG. 1) of the inner frame door 2. When the inner frame door 2 and the glass door 3 are closed with respect to the machine frame 1 and the cylinder lock 9 is locked, the opening of the inner frame door 2 and the glass door 3 with respect to the machine frame 1 is prohibited.

ガラス扉3は、その下部に前面ボード4を一体的に有し、前面ボード4には、前方へ突出する上皿10と下皿11とが設けられる。上皿10は前面ボード4の上部に配置され、下皿11は上皿10の下方に配置される。上皿10には、遊技者に貸し出された遊技球(貸球)や入賞により獲得した遊技球(賞球)が貯留され、下皿11には、上皿10が満杯の状態でさらに払い出された遊技球が貯留される。なお、本実施形態のパチンコ機PはいわゆるCR機(CRユニット50(図5に示す)に接続される機種)であり、遊技者が借り受けた遊技球は、賞球とは別に上皿10に払い出される。   The glass door 3 integrally has a front board 4 at a lower portion thereof, and the front board 4 is provided with an upper plate 10 and a lower plate 11 protruding forward. The upper plate 10 is disposed on the upper portion of the front board 4, and the lower plate 11 is disposed below the upper plate 10. The upper plate 10 stores game balls (rented balls) rented to players and game balls (prize balls) acquired by winning a prize, and the lower plate 11 further pays out when the upper plate 10 is full. Played game balls are stored. The pachinko machine P of the present embodiment is a so-called CR machine (a model connected to the CR unit 50 (shown in FIG. 5)), and the game balls borrowed by the player are placed on the upper plate 10 separately from the prize balls. To be paid out.

前面ボード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 front board 4, a lending operation unit 15 and an effect button 23 are provided. The lending operation unit 15 includes a ball lending switch 12, a return switch 13, a frequency display device 14, and a ball lending display device 24, and the player has a balance in the CR unit 50 (shown in FIG. 5) that is not zero and appropriate. When a valuable medium (such as a magnetic recording medium or a storage IC built-in medium) is inserted, the remaining frequency of the inserted valuable medium is displayed on the ball lending display device 24 and a ball lending lamp ( (Not shown) lights up. When the player operates the ball lending switch 12 in such a state, a number of game balls (for example, 125 pieces) corresponding to a predetermined frequency unit (for example, 5 degrees corresponding to 500 yen) are lent out. The display device 24 displays that the lending process is in progress, and the balance frequency of the valuable medium decreases according to the lending of game balls. In the present embodiment, a CR machine is used as an example, but the pachinko machine P may be a model other than the CR machine (a model not connected to the CR unit 50). The effect button 23 receives an operation from the player regarding the effect.

前面ボード4の前面には、上皿球抜き操作部16と下皿球抜き操作部17とが設けられている。上皿球抜き操作部16が操作されると、上皿10の遊技球が下皿11へ流下し、下皿球抜き操作部17が操作されると、下皿11の遊技球が下方へ落下して排出される。下皿11から排出された遊技球は、例えば球受け箱(図示省略)等に受け止められる。   On the front surface of the front board 4, an upper dish ball removing operation unit 16 and a lower dish ball removing operation unit 17 are provided. When the upper tray ball removal operation section 16 is operated, the game balls in the upper tray 10 flow down to the lower dish 11, and when the lower dish ball removal operation section 17 is operated, the game balls in the lower dish 11 fall downward. Then discharged. The game ball discharged from the lower plate 11 is received by, for example, a ball receiving box (not shown).

前面ボード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 front board 4, and a launch device 19 is attached to the lower portion of the inner frame door 2. The game balls on the upper plate 1 are supplied one by one to the launching device 19, and when the player rotates the launching handle 18, the launching device 19 (launching motor 86 (shown in FIG. 5)) is activated to enter the game area 8. A game ball is launched. The game area 8 is partitioned and formed in a substantially circular shape by the guide rail 20 and the game ball regulating rail 21, and the game ball launched from the launching device 19 slides along the rails 20, 21 and moves upward to the game area 8. And then flow down by being guided and guided by game nails and windmills.

ガラス扉3の上部と内枠扉2の下部とには、スピーカ22がそれぞれ取り付けら、ガラス扉3の前面には、複数の枠体ランプ25が取り付けられている。スピーカ22は、遊技に関する様々な効果音を発する。枠体ランプ25は、例えば内蔵するLEDの発光(点灯や点滅、輝度階調の変化、色調の変化等)により演出を実行する。   Speakers 22 are respectively attached to the upper part of the glass door 3 and the lower part of the inner frame door 2, and a plurality of frame lamps 25 are attached to the front surface of the glass door 3. The speaker 22 emits various sound effects related to the game. The frame lamp 25 performs an effect by, for example, light emission (lighting or blinking, change in luminance gradation, change in color tone, etc.) of the built-in 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 game area 8, there are an integrated display unit 30, an effect display device (image display) 31, a through chucker 32, an electric tulip (ordinary electric accessory) 33, a stage 34, a first start winning opening (first special figure start) (Winning port) 35, second starting winning port (second special drawing starting winning port) 36, general winning port 37, out port 38, attacker device (special electric accessory) 39, a plurality of panel lamps 60, game nails (illustrated) (Not shown), a windmill (not shown), and the like are provided. The first start winning opening 35 and the second starting winning opening 36 are arranged with an interval in the vertical direction. The panel lamp 60 performs an effect by, for example, the light emission of a built-in LED (lighting and blinking, change in luminance gradation, change in color tone, etc.).

統合表示ユニット30は、演出表示装置31を視認している遊技者の視界に同時に入らないように、遊技盤3の右下部分に配置されている。図4に示すように、統合表示ユニット30は、第1特図表示装置(第1特別図柄表示装置)40と、第2特図表示装置(第2特別図柄表示装置)41と、普図表示装置(普通図柄表示装置)42と、状態表示装置43とを備え、これらの表示装置40〜43は、1つの統合表示基板48に実装された状態で遊技盤5に取り付けられる。   The integrated display unit 30 is arranged in the lower right part of the game board 3 so as not to enter the field of view of the player who is viewing the effect display device 31 at the same time. As shown in FIG. 4, the integrated display unit 30 includes a first special symbol display device (first special symbol display device) 40, a second special symbol display device (second special symbol display device) 41, and a general-purpose display. A device (normal symbol display device) 42 and a state display device 43 are provided, and these display devices 40 to 43 are attached to the game board 5 in a state of being mounted on one integrated display board 48.

第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 symbol display device 40 changes the first special symbol (number or pattern) based on the result of the electronic lottery related to the first special symbol, which is performed when the game ball is won at the first start winning opening 35. It is to stop display after it has been made. The second special symbol display device 41 changes the second special symbol (number or pattern) based on the result of the electronic lottery related to the second special symbol, which is performed in response to the winning of the game ball in the second start winning port 36. It is to stop display after it has been made. The first special symbol display device 40 and the second special symbol display device 41 of the present embodiment stop-display the first special symbol and the second special symbol after fluctuation by the 7-segment LED. In the present embodiment, since the game based on the winning at the second start winning opening 36 is executed in preference to the game based on the winning at the first starting winning opening 35, the first special symbol and the first Two special symbols will not change at the same time.

普通図柄表示装置42は、スルーチャッカ32の遊技球の通過を契機に行われた普通図柄に係る電子抽選の結果を、普通図柄(数字や絵柄)を変動させた後に停止表示するものである。本実施形態の普通図柄表示装置42は、7セグメントLEDによって普通図柄を変動後に停止表示する。   The normal symbol display device 42 stops and displays the result of the electronic lottery related to the normal symbol, which is performed when the game ball of the through chucker 32 passes, after changing the normal symbol (number or pattern). The normal symbol display device 42 of the present embodiment stops and displays the normal symbol after the fluctuation by the 7-segment LED.

状態表示装置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 state display device 43 includes a round number display unit 44, a first special figure reservation number display unit 45, a second special figure reservation number display unit 46, and a general figure reservation number display unit 47. The round number display unit 44 is composed of four lamps (LEDs), and displays how many rounds the current jackpot continues depending on the combination of turning off, turning on, or blinking of the lamps. The first special figure hold number display unit 45 wins a game ball in the first start winning opening 35, and a random number determined per first special figure (a jackpot determined random number) acquired in accordance with the winning is the first special figure hold When stored as a random number in the first special figure reservation random number storage area (not shown) of the RAM 75, the stored number is displayed as the current reservation number. The second special figure reservation number display unit 46 receives a game ball in the second start winning opening 36, and the second special figure determined random number (a jackpot determined random number) acquired in accordance with the winning is the second special figure reserved When stored as a random number in the second special figure reserved random number storage area (not shown) of the RAM 75, the stored number is displayed as the current reserved number. The figure holding number display unit 47 stores the figure holding random number stored in the RAM 75 as a figure holding random number as a figure holding random number obtained as a figure holding random number obtained in response to the passing of the game ball through the through chucker 32. When stored in an area (not shown), the current number of holds is displayed. Each of the number-of-holding display units 45, 46, and 47 is composed of lamps (LEDs), and “0” to “4” (upper limit on the number of stored ball random numbers) depending on the combination of turning off, turning on, or blinking the lamps. ) To display the number of holds.

図2に示すように、演出表示装置31は、液晶の画像表示器を有し、遊技盤3の略中央部に設けられ、第1始動入賞口35及び第2始動入賞口36への遊技球の入賞を契機に行われた特別図柄に係る電子抽選の結果に基づいて所定の演出画像を表示する。演出画像には、第1特図表示装置40及び第2特図表示装置41に変動表示される第1特別図柄及び第2特別図柄と同期をとって変動するダミー図柄(演出図柄)と、第1特図当たり決定乱数の保留数表示と、第2特図当たり決定乱数の保留数表示とが含まれる。   As shown in FIG. 2, the effect display device 31 has a liquid crystal image display, and is provided at a substantially central portion of the game board 3, and game balls to the first start winning opening 35 and the second starting winning opening 36. A predetermined effect image is displayed on the basis of the result of the electronic lottery concerning the special symbol performed in response to the winning of the prize. The effect image includes a dummy symbol (effect symbol) that fluctuates in synchronization with the first special symbol and the second special symbol that are variably displayed on the first special symbol display device 40 and the second special symbol display device 41, A display of the number of retained random numbers per special figure and a display of the number of retained random numbers determined per second special figure are included.

電動チューリップ33は、1対の羽根部材49と電動チューリップ駆動装置51(図5に示す)とを備える。1対の羽根部材49は、遊技盤3との直交軸を中心に回転自在であり、第2始動入賞口36の入口の左右に配置される。電動チューリップ駆動装置51のソレノイド(図示省略)が通電されると、1対の羽根部材が互いに離れる方向に回転し、電動チューリップ33が開口して、第2始動入賞口36の入口が拡大される。電動チューリップ33が閉じた状態(通常状態)では、第2始動入賞口36に遊技球は入賞できず、第2始動入賞口36への入賞は、電動チューリップ33の開口時に制限される。   The electric tulip 33 includes a pair of blade members 49 and an electric tulip driving device 51 (shown in FIG. 5). The pair of blade members 49 are rotatable about an axis orthogonal to the game board 3 and are disposed on the left and right sides of the entrance of the second start winning opening 36. When a solenoid (not shown) of the electric tulip driving device 51 is energized, the pair of blade members rotate away from each other, the electric tulip 33 opens, and the entrance of the second start winning prize port 36 is expanded. . In a state where the electric tulip 33 is closed (normal state), a game ball cannot be won in the second start winning opening 36, and winning in the second starting winning opening 36 is restricted when the electric tulip 33 is opened.

ステージ34は、遊技球が転動しながら一時的に滞在する構造物であり、演出表示装置31の下方に配置される。ステージ34の略中央の真下に第1始動入賞口35が配され、ステージ34の中央部分から落下した遊技球は、高い確率で第1始動入賞口35へと導かれる。   The stage 34 is a structure in which the game ball stays temporarily while rolling, and is disposed below the effect display device 31. A first start winning opening 35 is arranged directly below the center of the stage 34, and a game ball that has dropped from the central portion of the stage 34 is guided to the first starting winning opening 35 with a high probability.

アタッカー装置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 start winning opening 35 and the second starting winning opening 36, the attacker device 39 becomes a jackpot game per special figure (big hit). Is a device that is opened a predetermined number of times (in this embodiment, 2 rounds or 15 rounds). The attacker device 39 includes a horizontally long rectangular prize-winning opening 52, a horizontally long plate-like lid member 53, and an attacker driving device 54 (shown in FIG. 5). The lower part of the lid member 53 is supported to be openable and closable in the front-rear direction about a horizontal axis. When a solenoid (not shown) of the attacker drive device 54 is energized, the upper part of the lid member 53 tilts forward and downward. The attacker device 39 is opened to expose the big prize opening 52, and a large amount of game balls are guided to the upper surface (back side) of the lid member 53 and can win the big prize opening 52. In the state where the attacker device 39 is closed (normal state), the lid member 54 closes the big prize opening 54, so that the prize winning to the big prize opening 52 is limited when the attacker device 39 is opened.

各入賞口(第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 starting winning opening 35, second starting winning opening 36, general winning opening 37, large winning opening 52), a predetermined number of gaming balls are paid out to the player as winning balls. The winning game balls are collected from the winning openings 35, 36, 37, 52 to the back side of the game board 5. In addition, game balls that have not won any of the winning openings 35, 36, 37, 52 are finally collected from the out opening 38 to the back side of the game board 5. The collected game balls are discharged out of the frame from the back side of the pachinko machine P through an out passage assembly (not shown), and further join a supply route (not shown) of the island facility.

スルーチャッカ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 chucker 32, the first start winning opening 35, the second starting winning opening 36, the general winning opening 37, and the big winning opening 52, sensors for detecting the passage of game balls (passing through the gate shown in FIG. 5). A ball detecting sensor 55, a first special figure starting ball detecting sensor 56, a second special figure starting ball detecting sensor 57, a big winning ball detecting sensor 58 and a general winning ball detecting sensor 59) are provided. Each time these sensors 55, 56, 57, 58, 59 detect the passing of a game ball, they transmit a detection signal to the main control device 70 (shown in FIG. 5). The first special figure starting ball detection sensor 56, the second special figure starting ball detection sensor 57, the big winning ball detection sensor 58 and the general winning ball detection sensor 59 receive a prize for the game ball launched into the game area 8. It functions as a winning detection means for detecting. In the following description, among these detection signals, the detection signals transmitted by the sensors 56, 57, 58, 59 are referred to as winning ball detection signals, and the detection signals transmitted from the sensor 55 are referred to as ball passing detection signals. , There is a case to distinguish the two.

[裏側の構成]
図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 power supply device 61, a main control board unit 62, a payout control board unit 63, a sub control board unit 64, an external information terminal board 65, a power cord (power plug) 66, a ground wire (ground terminal) 67, various electronic devices (including a control computer not shown) and the like constituting the power supply system and control system of the pachinko machine P are installed.

外部情報端子基板65は、パチンコ機Pを外部の電子機器(例えば、ホールコンピュータ68(図5に示す)やデータ表示装置等)に接続するためのインタフェースであり、パチンコ機Pの遊技進行状態やメンテナンス状態等を表す各種の外部情報信号(例えば賞球情報、扉開放情報、図柄確定回数情報、大当たり情報、始動口情報等)は、外部情報端子基板65から外部の電子機器に送信される。   The external information terminal board 65 is an interface for connecting the pachinko machine P to an external electronic device (for example, a hall computer 68 (shown in FIG. 5), a data display device, etc.). Various external information signals (for example, prize ball information, door opening information, symbol determination number information, jackpot information, start port information, etc.) representing the maintenance state and the like are transmitted from the external information terminal board 65 to an external electronic device.

電源コード66は、遊技場の島設備に設置された電源装置(例えばAC24V)に接続されて、パチンコ機Pの動作に必要な電源(電力)を確保する。アース線67は、島設備に設置されたアース端子に接続され、パチンコ機Pをアース(接地)する。   The power cord 66 is connected to a power supply device (for example, AC 24 V) installed in the island facility of the amusement hall, and secures a power source (electric power) necessary for the operation of the pachinko machine P. The ground wire 67 is connected to a ground terminal installed in the island facility, and grounds the pachinko machine P.

[制御に関する構成]
次に、パチンコ機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 main control device 70, a payout control device 71, and a sub control device 72. The main control device 70 is the center of the control operation, has a function of mainly controlling the execution of game processing in the pachinko machine P, and is built in the main control board unit 62. The payout control device 71 has a function of mainly controlling payout and launch of game balls, and is built in the payout control board unit 63. The sub-control device 72 mainly has a function of controlling effects and is built in the sub-control board unit 64. The main control device 70 and the payout control device 71 are a communication line through which a command is transmitted in one direction from the main control device 70 to the payout control device 71, and one direction from the payout control device 71 to the main control device 70. Are connected by a communication line through which commands are transmitted.

(電源供給装置61)
電源供給装置61は、電源コード66を通じて島設備から外部電源(例えば、24Vの交流電源)の供給を受け、この交流電源をパチンコ機Pで使用する複数の定電圧の直流電源や粗整流の直流電源に変換し、主制御装置70、払出制御装置71、サブ制御装置72等に供給する。電源供給装置61には、電源回路やコンデンサ等のバックアップ電源(図示省略)と、外部電源からの電源の供給が途絶えたとき(電源断の発生時)に電源断の発生時に電源断予告信号(電源断信号)を生成する電源断検出回路(電源断信号発生手段)96とが設けられている。電源供給装置61は、電源断の発生時に、主制御装置70及び払出制御装置71に対して、電源断予告信号を送信するとともに、バックアップ電源を供給する。なお、電源断検出回路96は、電源供給装置61以外(例えば、主制御装置70や払出制御装置71など)に設けてもよい。
(Power supply device 61)
The power supply device 61 is supplied with external power (for example, 24V AC power) from the island facility through the power cord 66, and a plurality of constant voltage DC power sources or coarse rectified DC power sources that use this AC power source in the pachinko machine P. The power is converted into power and supplied to the main controller 70, the payout controller 71, the sub controller 72, and the like. The power supply device 61 includes a backup power supply (not shown) such as a power supply circuit and a capacitor, and a power cut notification signal (when a power cut occurs) when the supply of power from an external power supply is interrupted (when a power cut occurs). A power-off detection circuit (power-off signal generating means) 96 for generating a power-off signal is provided. The power supply device 61 transmits a power-off notice signal to the main control device 70 and the payout control device 71 and supplies backup power when a power-off occurs. Note that the power-off detection circuit 96 may be provided other than the power supply device 61 (for example, the main control device 70 or the payout control device 71).

RWMクリアスイッチ69は、主制御装置70及び払出制御装置71に保存されている過去の遊技情報をクリアするために操作されるスイッチであり、電源供給装置61に設けられ、RWMクリアスイッチ69が操作されると、RWMクリア信号を主制御装置70及び払出制御装置71に送信する。   The RWM clear switch 69 is a switch operated to clear past game information stored in the main control device 70 and the payout control device 71. The RWM clear switch 69 is provided in the power supply device 61 and is operated by the RWM clear switch 69. Then, an RWM clear signal is transmitted to the main controller 70 and the payout controller 71.

(主制御装置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 main controller 70 is equipped with a circuit board (main control board) on which a main control CPU 73 that is a central processing unit (central instruction processing unit) is mounted. The main control CPU 73 includes a CPU core and various registers (general purpose). Register, flag register, index register, refresh register, interrupt register, instruction register, etc.), stack pointer, program counter, instruction recorder (all not shown), etc., and LSI together with semiconductor memory such as ROM 74 and RAM (RWM) 75 It is configured as. Each register holds an operation result, an address of an instruction to be read next, an execution state, and the like. The main controller 70 is equipped with a hard random number generation circuit 76 and a sampling circuit (not shown). The hardware random number generation circuit 76 generates hardware random numbers (for example, 0 to 65535 in decimal notation), and the generated random numbers are input to the main control CPU 73 through the sampling circuit. The hardware random number is used as a determined random number per first special figure and a determined random number per second special figure for jackpot determination, or a determined random number per universal figure for hit (per common figure) determination. The main controller 70 is equipped with peripheral ICs such as a clock (frequency generating circuit unit) 77, an input / output (I / O) port, a counter / timer circuit (CTC), etc., which are circuit boards together with the main control CPU 73. Implemented above.

RAM75には、各種フラグの記憶領域を含むワーク領域(図示省略)が設けられ、割込み発生時やサブルーチンや関数を呼び出す際に、処理中のデータや戻りアドレスなどがワーク領域のスタック領域(退避領域)に一時的に退避される。また、主制御CPU73は、ROM74に記憶されている遊技制御用プログラムに従って処理を実行することにより、電源断検知手段及び実行制御手段として機能する。   The RAM 75 has a work area (not shown) including a storage area for various flags. When an interrupt occurs or when a subroutine or function is called, data being processed, a return address, and the like are stored in a stack area (a save area) of the work area. ) Is temporarily evacuated. The main control CPU 73 functions as a power-off detection unit and an execution control unit by executing processing according to the game control program stored in the ROM 74.

球検知センサ類56〜59の入賞検知信号は、入出力ドライバ(図示省略)を介して主制御CPU73に入力される。なお、本実施形態では、第1特図始動球検知センサ56及び第2特図始動球検知センサ57からの入賞検知信号は、主制御装置70に直接送信され、ゲート通過球検知センサ55、大入賞球検知センサ58及び一般入賞球検知センサ59からの入賞検知信号は、中継端子板(図示省略)を経由して主制御装置70に送信される。   The winning detection signals of the ball detection sensors 56 to 59 are input to the main control CPU 73 via an input / output driver (not shown). In this embodiment, the winning detection signals from the first special figure starting ball detection sensor 56 and the second special figure starting ball detection sensor 57 are directly transmitted to the main control device 70, and the gate passing ball detection sensor 55, Winning detection signals from the winning ball detection sensor 58 and the general winning ball detection sensor 59 are transmitted to the main controller 70 via a relay terminal board (not shown).

第1特図表示装置40、第2特図表示装置41、普図表示装置42、及び状態表示装置43の各表示は、主制御CPU73からの制御信号によって制御される。主制御CPU73は、遊技の進行状況に応じてこれら表示装置40〜43に対する制御信号を出力し、各LEDの点灯状態を制御する。   Each display of the first special figure display device 40, the second special figure display device 41, the universal figure display device 42, and the status display device 43 is controlled by a control signal from the main control CPU 73. The main control CPU 73 outputs control signals for the display devices 40 to 43 in accordance with the progress of the game, and controls the lighting state of each LED.

電動チューリップ駆動装置51及びアタッカー駆動装置54の駆動は、主制御CPU73からの制御信号によって制御される。各駆動装置51,54のソレノイドは、主制御CPU73からの制御信号に基づいて動作(励磁)し、電動チューリップ33及びアタッカー装置39を開閉動作(作動)させる。   The driving of the electric tulip driving device 51 and the attacker driving device 54 is controlled by a control signal from the main control CPU 73. The solenoids of the drive devices 51 and 54 are operated (excited) based on a control signal from the main control CPU 73 to open / close (activate) the electric tulip 33 and the attacker device 39.

内枠扉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 door opening switch 79 are installed on the inner frame door 2. When the glass door 3 is opened from the inner frame door 2, a contact signal from the glass door opening switch 78 is input to the main control device 70 via the dispensing control device 71. When the inner frame door 2 is opened from the machine frame 1, a contact signal from the inner frame door opening switch 79 is input to the main control device 70 via the payout control device 71. The main control CPU 73 that has received the contact signals from the switches 78 and 79 transmits a control signal instructing execution of these notification processes to the sub-control device 72 in order to notify the opening of the door by sound, LED, liquid crystal or the like. To do. Also, the dispensing control device 71 that has received the contact signal from the switches 78 and 79 outputs an external information signal indicating that the door is open.

パチンコ機Pには磁気や電波等を検知するエラー検知センサ98が設けられ、エラー検知センサ98は、磁気や電波等を検知すると、主制御装置70にエラー検知信号を送信する。エラー検知信号を受信した主制御CPU73は、所定のエラー処理を実行するとともに、エラー検知を示す外部情報信号を出力する。   The pachinko machine P is provided with an error detection sensor 98 that detects magnetism, radio waves, and the like. The error detection sensor 98 transmits an error detection signal to the main controller 70 when it detects magnetism, radio waves, and the like. Receiving the error detection signal, the main control CPU 73 executes predetermined error processing and outputs an external information signal indicating error detection.

(払出制御装置71)
払出制御装置71には、払出制御CPU80を実装した回路基板(払出制御基板)が装備されており、払出制御CPU80も、主制御CPU73と同様に、CPUコア(図示省略)を含み、ROM81、RAM82等の半導体メモリとともにLSIとして構成されている。払出制御CPU80は、主制御CPU73から受信した賞球指示コマンド(払出コマンド送信信号)に基づいて遊技球の払い出し動作を制御し、指示された個数の遊技球の払出動作を実行させる。なお、主制御CPU73は、賞球指示コマンドとは別に、賞球情報信号を外部情報信号として生成し出力する。具体的には、主制御CPU73は、指示した個数の合計が所定個数(例えば、10個)に達する毎に、賞球情報信号を外部情報信号として生成し出力する。また、払出制御CPU80も、払い出しを行った個数の合計が所定個数(例えば、10個)に達する毎に、賞球情報信号を外部情報信号として生成し出力する。
(Discharge control device 71)
The payout control device 71 is equipped with a circuit board (payout control board) on which a payout control CPU 80 is mounted. The payout control CPU 80 also includes a CPU core (not shown), like the main control CPU 73, and includes a ROM 81 and a RAM 82. It is configured as an LSI together with a semiconductor memory. The payout control CPU 80 controls the game ball payout operation based on the prize ball instruction command (payout command transmission signal) received from the main control CPU 73, and causes the specified number of game balls to be paid out. The main control CPU 73 generates and outputs a prize ball information signal as an external information signal separately from the prize ball instruction command. Specifically, the main control CPU 73 generates and outputs a prize ball information signal as an external information signal every time the designated number reaches a predetermined number (for example, 10). The payout control CPU 80 also generates and outputs a prize ball information signal as an external information signal every time the total number of payouts reaches a predetermined number (for example, 10).

遊技場の球補給経路(図示省略)から補給された遊技球は、賞球タンク(図示省略)に蓄えられ、賞球樋(図示省略)を流下して賞球ケース(図示省略)に導入され、賞球ケースから上皿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 upper plate 10 from the prize ball case.

賞球ケースには、払出モータ(例えばステッピングモータ)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 payout motor 83. The payout control device 71 rotates the payout motor 83 to pay out the game ball from the prize ball case. One game ball is paid out by one pay-out operation (a predetermined amount of rotational drive) of the pay-out motor 83, and the paid-out game ball flows down to the front board 4 through a pay-out passage (not shown). To do.

払出モータ83の下流側には払出計数スイッチ84が設置され、払出モータ83の駆動によって実際に賞球が払い出されると、払出計数スイッチ84からの払出計数信号(払出検知信号)が払出制御装置71に送信される。払出計数信号は、1個の遊技球の払い出しを検出する度に送信され、払出制御CPU80は、受信した払出計数信号に基づき、実際の払出数や球切れ状態を検知して、遊技球の払い出しを管理する。   A payout counting switch 84 is installed on the downstream side of the payout motor 83, and when a prize ball is actually paid out by driving the payout motor 83, a payout count signal (payout detection signal) from the payout count switch 84 is sent out to the payout control device 71. Sent to. The payout count signal is transmitted every time a payout of one game ball is detected, and the payout control CPU 80 detects the actual payout number and the out of ball state based on the received payout count signal, and pays out the game ball. Manage.

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 CR unit 50, the CR unit 50 sends a lending device READY signal indicating that lending is being performed (the ball lending is possible), While transmitting to the payout control device 71 via the relay substrate 91, the lending permission LED signal and the frequency display LED signal are transmitted to the ball rental display device 24 and the frequency display device 14 via the relay substrate 91. The ball lending display device 24 that has received the ball lending LED signal turns on the ball lending available lamp, and the frequency display device 14 that has received the frequency display LED signal displays the balance frequency of the valuable medium. When the ball lending switch 12 is operated in this state, the operation signal (lending switch signal) is transmitted to the CR unit 50 via the relay board 91, and the CR unit 50 that has received the lending switch signal receives the valuable medium. A balance subtraction process is executed, and a terminal terminal lending request completion confirmation signal is transmitted to the dispensing control device 71 via the relay board 91. The terminal terminal lending request completion confirmation signal is a signal that requests lending of the game balls for the basic unit (25 pieces). For example, one operation of the ball lending switch 12 makes a lending request for 5 times (125 pieces). When the setting is made on the CR unit 50 side so as to correspond, when the ball lending switch 12 is operated once, the terminal terminal lending request completion confirmation signal is repeatedly transmitted five times.

払出制御装置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 payout control device 71 is provided with a remaining payout number storage area for storing the remaining payout number of game balls. The payout remaining number storage area stores a prize ball memory area for storing the number of game balls scheduled to be paid out as a prize ball (the number of remaining prize balls), and a loan for storing the number of game balls scheduled to be paid out as a loan (number of remaining loans) It is divided into memory areas. When the payout control CPU 80 receives the prize ball instruction command from the main control CPU 73, the payout control CPU 80 adds the number of prize balls remaining by the number of prize balls indicated by the received prize ball instruction command, and receives a terminal terminal lending request completion confirmation signal from the CR unit 50. When received, the remaining number of loans is added by the basic unit. In the game ball payout operation, each time the payout control CPU 80 receives a payout count signal from the payout count SW84, the payout control CPU 80 subtracts one of the remaining prize balls or the remaining number of loans, and the remaining number of prize balls and the remaining number of loans. The payout operation is continued until both of them become zero. Note that the payout control CPU 80 of the present embodiment executes the payout of the remaining number of loans with priority over the remaining number of winning balls. That is, when the remaining loan amount is not zero, the remaining loan amount is preferentially subtracted until the remaining loan amount becomes zero, and only when the remaining loan amount is zero, the remaining prize ball is subtracted, The payout ends when the remaining number of prize balls reaches zero. If a process (successful ball payout process) is set to continuously execute a single prize ball payout up to a predetermined unit number (for example, 25) as an upper limit, continuous prize ball payout is set. Even if the remaining loan amount increases from zero during the process, the process (prize ball payout) is continued without interruption until the ongoing continuous ball payout process is completed. Then, after one consecutive prize ball payout process is completed, if the remaining number of prize balls is not zero even if the remaining number of prize balls has not yet reached zero, the remaining number of outstanding balls is more than the remaining number of prize balls. Priority is given to paying out. The payout control CPU 80 sends a stand READY signal indicating this when the payout operation is executable, and a stand terminal lending completion signal indicating this when the lending for the basic unit is completed, via the relay board 91. To each.

上皿10(図1に示す)への遊技球の供給経路には皿満タンスイッチ85が設置され、下皿11(図1に示す)が遊技球で満杯になると、皿満タンスイッチ85がONになり、満タン検出信号が払出制御装置71に送信される。満タン検出信号を受信した払出制御CPU80は、主制御CPU73から受信した賞球指示コマンドに応じた賞球動作を一旦保留とし、未払出の賞球残数をRAM82に記憶させておく。なお、RAM82の記憶は電源断時にもバックアップが可能であり、遊技中に停電(瞬間的な停電を含む)が発生しても、未払出の賞球残数情報が消失してしまうことはない。   A tray full tank switch 85 is installed in the supply path of game balls to the upper plate 10 (shown in FIG. 1), and when the lower plate 11 (shown in FIG. 1) is full of game balls, the plate full tank switch 85 is turned on. It becomes ON, and a full tank detection signal is transmitted to the payout control device 71. The payout control CPU 80 that has received the full tank detection signal temporarily holds the prize ball operation according to the prize ball instruction command received from the main control CPU 73, and stores the unpaid prize ball remaining number in the RAM 82. The RAM 82 can be backed up even when the power is cut off, so that even if a power outage (including momentary power outage) occurs during the game, the information on the number of remaining unpaid prize balls will not be lost. .

発射装置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 motor 86 and a ball feed solenoid 87, and the firing handle 18 (shown in FIG. 1) has a firing volume 88, a touch sensor 89, a firing stop switch 90, Is provided. The ball feed solenoid 87 sends game balls that have flowed down from the upper plate 10 (shown in FIG. 1) one by one to the launch position, and the launch motor 86 launches the game balls sent to the launch position. In addition, the launch interval of game balls is, for example, about 0.6 seconds (within 100 per minute).

発射ボリューム88は、発射ハンドル18(図1に示す)の回転操作量(ストローク)に比例した発射勢指示信号を払出制御装置71に送信する。タッチセンサ89は、静電容量の変化から遊技者の身体が発射ハンドル18に触れていることを検出し、その検出信号を払出制御装置71に送信する。発射停止スイッチ90は、遊技者から操作されたときに発射停止信号(接点信号)を払出制御装置71に送信する。   The firing volume 88 transmits a firing force instruction signal proportional to the rotational operation amount (stroke) of the firing handle 18 (shown in FIG. 1) to the dispensing control device 71. The touch sensor 89 detects that the player's body is touching the firing handle 18 from the change in capacitance, and transmits the detection signal to the payout control device 71. The firing stop switch 90 transmits a firing stop signal (contact signal) to the payout control device 71 when operated by the player.

遊技者が発射ハンドル18を回転操作すると、発射ボリューム88から払出制御装置71に回転操作量に応じた発射勢指示信号が送信される。払出制御CPU80は、受信した発射勢指示信号に基づいて発射モータ86の駆動を制御する。これにより、遊技者の操作量に応じて遊技球の打ち出し強さが調整される。但し、払出制御CPU80は、タッチセンサ89からの検出信号がオフ(ローレベル)の場合、及び発射停止スイッチ90から発射停止信号が入力された場合には、発射モータ86の駆動を停止する。この他、払出制御CPU80は、パチンコ機PにCRユニット50が接続されていない場合、発射モータ86の駆動を停止する。   When the player rotates the firing handle 18, a firing force instruction signal corresponding to the amount of rotational operation is transmitted from the firing volume 88 to the payout control device 71. The payout control CPU 80 controls driving of the firing motor 86 based on the received firing force instruction signal. Thereby, the launch strength of the game ball is adjusted according to the operation amount of the player. However, the payout control CPU 80 stops driving the firing motor 86 when the detection signal from the touch sensor 89 is off (low level) and when the firing stop signal is input from the firing stop switch 90. In addition, the payout control CPU 80 stops the driving of the firing motor 86 when the CR unit 50 is not connected to the pachinko machine P.

払出制御装置71の基板上には、状態LED(図示省略)が設けられている。状態LEDは、電源からの電力供給時に発光する電源LED、受け皿の満タン時に発光する受け皿満タンLED、通信エラー時に発光する通信エラーLED、扉開放時に発光する扉開放LED、払出動作の不良時に発光する払出動作不良LED、CRユニット50との未接続時に発光するCR未接続LEDとを含む。状態LEDの発光制御は、対応する信号(コマンド)の受信に基づいて払出制御CPU80が実行する。   On the substrate of the payout control device 71, a state LED (not shown) is provided. The status LED is a power LED that emits light when power is supplied from the power supply, a pan full LED that emits light when the pan is full, a communication error LED that emits light when a communication error occurs, a door open LED that emits light when the door is open, and a payout operation failure It includes a payout operation failure LED that emits light, and a CR unconnected LED that emits light when not connected to the CR unit 50. The emission control of the status LED is executed by the payout control CPU 80 based on reception of a corresponding signal (command).

(サブ制御装置72)
サブ制御装置72には、演出制御CPU92を実装した回路基板(複合サブ制御基板)が装備されており、演出制御CPU92も、主制御CPU73と同様に、CPUコア(図示省略)を含み、ROM93、RAM94等の半導体メモリとともにLSIとして構成されている。サブ制御装置72には、入出力ドライバや各種の周辺IC(共に図示省略)が装備されている。
(Sub-control device 72)
The sub-control device 72 is equipped with a circuit board (composite sub-control board) on which an effect control CPU 92 is mounted. The effect control CPU 92 also includes a CPU core (not shown), like the main control CPU 73, and includes a ROM 93, The semiconductor memory such as the RAM 94 is configured as an LSI. The sub-control device 72 is equipped with an input / output driver and various peripheral ICs (both not shown).

サブ制御装置72のROM93には、演出の制御に関する演出制御プログラムが格納されており、演出制御CPU92は、格納された演出制御プログラムに従い、主制御CPU73から送信される演出用のコマンドに基づいて、演出表示装置31、各種ランプ25,60、音発生装置97及び可動役物による演出の制御を実行する。演出表示装置31は、画像プロセッサや液晶等を含み、音発生装置97は、サウンドプロセッサやスピーカ22等を含む。演出の制御には、演出表示装置31の画像の表示制御、各種ランプ25,60の発光制御、スピーカ22からの音声発生制御、及び可動役物の駆動装置95の駆動制御が含まれる。なお、画像プロセッサ及びサウンドプロセッサは、サブ制御基板ユニット64に設けてもよい。   The ROM 93 of the sub-control device 72 stores an effect control program related to effect control, and the effect control CPU 92 follows an effect command transmitted from the main control CPU 73 in accordance with the stored effect control program. The effect control by the effect display device 31, the various lamps 25 and 60, the sound generator 97 and the movable accessory is executed. The effect display device 31 includes an image processor, a liquid crystal, and the like, and the sound generation device 97 includes a sound processor, a speaker 22, and the like. The production control includes image display control of the production display device 31, light emission control of the various lamps 25 and 60, sound generation control from the speaker 22, and drive control of the movable accessory drive device 95. Note that the image processor and the sound processor may be provided in the sub-control board unit 64.

(外部への出力)
主制御装置70及び払出制御装置71において生成された各種の外部情報信号は、外部情報端子基板65から外部に出力される。外部情報端子基板65から出力される信号は、例えば遊技場のホールコンピュータ68で集計される。
(Output to the outside)
Various external information signals generated in the main control device 70 and the payout control device 71 are output from the external information terminal board 65 to the outside. The signals output from the external information terminal board 65 are totaled, for example, by a hall computer 68 in a game hall.

[主制御装置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 input port 2 in this embodiment) are set as input / output ports of main controller 70. The input port 0 includes a switch abnormality signal (a disconnection signal of the detection sensors 55 to 59 mounted on the game board 5), a door opening signal (contact signals from the door opening switches 78 and 79), and an error detection signal (error detection sensor 98). ), A payout command permission signal (a signal from the payout control device 71), and an RWM clear signal (a signal from the power supply device 61). A winning ball detection signal from the big winning ball detection sensor 58 and the general winning ball detection sensor 59 is assigned to the input port 1. The input port 2 has a winning ball detection signal from the first special figure starting ball detection sensor 56, a winning ball detection signal from the second special figure starting ball detection sensor 57, and a ball passage detection signal from the gate passing ball detection sensor 55. , And a power-off notice signal from the power supply device 61 is assigned. Each input port is provided with a 1-bit reception storage area whose state is switched at the time of reception of each signal (switched at 1/0), and input confirmation of each signal is performed by bit check of the corresponding reception storage area. . The input port 2 functions as a power-off signal receiving unit that receives a power-off notice signal when a power-off occurs, and the state of the corresponding reception storage area is switched while the power-off notice signal is input to the input port 2. .

[主制御装置70が実行する制御処理]
次に、主制御装置70の主制御CPU73がROM74に記憶されている遊技制御用プログラムに従って実行する制御処理について説明する。主制御CPU73が実行する制御処理は、メインルーチンとしてのCPU初期化処理及びメインループ、シリアル通信受信割り込み処理、タイマ割り込み処理(メイン割り込み処理)、並びに電源断時退避処理を含み、主制御CPU73は、これらの処理の実行を制御する。
[Control processing executed by main controller 70]
Next, the control process executed by the main control CPU 73 of the main control device 70 according to the game control program stored in the ROM 74 will be described. The control processing executed by the main control CPU 73 includes CPU initialization processing as a main routine, main loop, serial communication reception interrupt processing, timer interrupt processing (main interrupt processing), and power-off saving processing. Control the execution of these processes.

図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 main controller 70, as shown in FIG. 6B, the main routine is repeatedly executed as the basic process, and the timer interrupt process is activated at predetermined intervals to interrupt the main loop. When a main command is received during execution of the main routine or timer interrupt processing, serial communication reception interrupt processing is activated and interrupts the main loop or timer interrupt processing (not shown). If a power-off notice signal is received during execution of the main routine (serial communication reception interrupt processing and timer interrupt processing are not being executed and the main command has not been received), the power-off save processing is activated and the main routine is entered. interrupt. Further, when the power interruption notice signal is received during the execution of the timer interruption process, the power interruption interruption process is started after the timer interruption process is completed and the process returns to the main loop. However, the serial communication reception interrupt processing and main interrupt processing are not activated during the power-off save process, and if an interrupt factor is established during the power-off save process, the power-off save process is performed. The corresponding interrupt processing is started after waiting for the end of. Note that the interrupt process is started on condition that the interrupt destination process (the process currently being executed) is in the interrupt enabled state.

また、メイン割り込み処理は、入力ポート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 main CPU 73 prohibits interruption of the power-off saving process during execution of the timer interruption process, the main CPU 73 receives a power-off notice signal before executing the winning determination process in the timer interruption process being executed (step in FIG. 12). In S124: Yes, step S127: Yes, the winning determination process is not executed.

(CPU初期化処理)
パチンコ機Pに電源が投入されると、主制御CPU73はCPU初期化処理を開始する。CPU初期化処理によって、パチンコ機Pの安定した遊技動作が保証される。
(CPU initialization process)
When power is turned on to the pachinko machine P, the main control CPU 73 starts a CPU initialization process. A stable game operation of the pachinko machine P is guaranteed by the CPU initialization process.

図7及び図8は、主制御CPU73が実行するCPU初期化処理を示すフローチャートである。   7 and 8 are flowcharts showing a CPU initialization process executed by the main control CPU 73.

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 main control CPU 73 can refer to an arbitrary address (however, the least significant bit is 0) as an interrupt vector and execute a specified interrupt handler.

次に、割り込みベクタテーブルを設定し(ステップ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 RAM 75 Retreat to the retreat area (step S6).

次に、リセット時待機処理を実行する。この処理では、リセットスタート(例えば電源投入)時にある程度の待機時間(例えば数千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 input port 2 is checked during that time. In this embodiment, a loop counter for 2 seconds is set as waiting for the start of sub-control (step S7), and the input port of the power-off notice signal is bit-checked while decrementing the value of the loop counter (step S8). If a power-off notice signal is input before 2 seconds elapse (before the loop counter reaches 0) (step S9: Yes), the process returns to the beginning of the reset standby process (step S7). This process is continued until two seconds elapse without inputting the power-off notice signal (Step S9: Yes → Step S7, or Step S9: No → Step S10: No → Step S8), and the power-off notice signal is inputted. If 2 seconds elapse without (step S9: No-> step S10: Yes), this process is terminated. Thereby, for example, transmission of a control signal from the main control device 70 to the sub control device 72 before the start of the start processing of the sub control device 72 can be prevented. Further, it is possible to protect the system when the operation of turning on and off the main power switch (not shown) is repeatedly performed within a short time (about 1 to 2 seconds).

次に、RAM75のワーク領域に対するアクセスを許可する(ステップS11)。具体的には、ワーク領域のRAMプロテクト設定値をリセットする。これにより、以後はRAM75のワーク領域に対するアクセスが許可された状態となる。   Next, access to the work area of the RAM 75 is permitted (step S11). Specifically, the RAM protect setting value in the work area is reset. As a result, the access to the work area of the RAM 75 is permitted thereafter.

次に、ステップ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 clear switch 69 is not operated (step S13: No), it is determined whether or not the backup validity determination value (backup validity determination flag) is stored in the RAM 75. Specifically, the data in the backup judgment storage area of the RAM 75 is compared with the backup validity judgment value (step S14), and if they match (when the backup validity judgment flag is set), the power is turned off. It is determined that it is a CPU initialization process after the time saving process has been properly completed (step S15: No), and when there is a mismatch (when the backup validity determination flag is not set), the saving process at the time of power-off is performed. It is determined that the CPU initialization process is not properly completed (step S15: Yes).

電源断時退避処理が適正に終了した後の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 RAM 75. Specifically, the checksum value is calculated for the work area of the RAM 75 (the user work area including the use prohibition area and the stack area) excluding the backup determination storage area and the sum check buffer (step S16). It is determined whether or not the checksum value is a normal value (step S17). Specifically, the checksum value calculated in step S16 is compared with the checksum value saved in the power-off saving process (step S108), which will be described later, and if they match, it is determined to be a normal value. If they are different, it is determined that the values are not normal.

チェックサム値が正常値の場合(ステップ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 sub-control device 72 is instructed to return to the sub-control device 72 (for example, model designation command, special symbol probability state designation command, working memory number command, number-of-times counter remaining command, special game) Send a status specification command. Receiving this, the sub control device 72 performs the effect state (for example, internal probability state, effect symbol display mode, working memory count effect display mode, sound output content, various lamps, etc. that were being executed at the previous power-off. Light emission state).

払出制御復帰処理(ステップS20)では、払出制御装置71に対し、電源復帰指定の払出コマンドを送信する。これを受けた払出制御装置71は、前回の電源遮断時の状態を復帰させるとともに、払出禁止状態を解除する。   In the payout control return process (step S20), a payout command for power supply return is transmitted to the payout control device 71. Receiving this, the payout control device 71 restores the previous power-off state and cancels the payout prohibition state.

一方、RWMクリアスイッチ69が操作されていた場合(ステップS13:Yes)、電源断時退避処理が適正に終了した後のCPU初期化処理ではない場合(ステップS15:Yes)、又はチェックサム値が正常値でなかった場合(ステップS16:No)、初期化処理(ステップS21〜ステップS24)を実行する。   On the other hand, if the RWM clear switch 69 has been operated (step S13: Yes), if it is not a CPU initialization process after the power-off saving process is properly completed (step S15: Yes), or the checksum value is If it is not a normal value (step S16: No), an initialization process (steps S21 to S24) is executed.

初期化処理では、RAM75の使用禁止領域以外の記憶領域を全てクリアする(ステップS21)。これにより、RAM75のワーク領域及びスタックエリアは全て初期化される。   In the initialization process, all storage areas other than the use-prohibited area of the RAM 75 are cleared (step S21). As a result, the work area and stack area of the RAM 75 are all initialized.

次に、RAM75にクリア起動時の初期値をセットすることによりRAM75の初期設定を行い(ステップS22)、演出制御初期化処理(ステップS23)及び払出制御初期化処理(ステップS24)を実行する。   Next, the RAM 75 is initialized by setting an initial value at the time of clear activation in the RAM 75 (step S22), and an effect control initialization process (step S23) and a payout control initialization process (step S24) are executed.

演出制御初期化処理(ステップ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 sub-control device 72. Receiving this, the sub-control device 72 initializes the effect control state. In the payout control initialization process (step S24), a payout command for RWM clear is transmitted to the payout control device 71. Receiving this, the payout control device 71 initializes the payout control state and cancels the payout prohibition state.

払出制御復帰処理(ステップ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 input port 2 are acquired (Step S27), the random number latch register is cleared (Step S28), the main command permission signal is set (Step S29), and the timer interrupt counter is set (Step S29). In step S30, the interrupt daisy chain is reset (step S31), and the process proceeds to the main loop. By resetting the interrupt daisy chain (step S31), when the determination of step S113 (see FIG. 13) 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 S45 (see FIG. 9) in the main loop to be described later, it is prevented that the processing does not shift to each interrupt processing.

(メインループ)
図9は、主制御CPU73が実行するメインループを示すフローチャートである。
(Main loop)
FIG. 9 is a flowchart showing a main loop executed by the main control CPU 73.

メインループでは、割り込みを禁止して(ステップ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 number generation circuit 76, and the update cycle thereof is a timer. Since it is faster (for example, several μs) than the interrupt cycle (for example, several ms), it is not necessary to update the initial value of the jackpot decision random number.

主コマンド解析処理(ステップ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 presentation control device 72. In other random number update processing (step S46), for example, reach group determination random numbers, reach mode determination random numbers, fluctuation pattern random numbers, and the like are updated. The reach group decision random number is a software random number used for the lottery of the special symbol variation pattern reach group, and the reach mode decision random number is a software random number used for the lottery of the special symbol variation pattern reach mode. Is a software random number used for drawing a special symbol variation pattern.

(シリアル通信受信割り込み処理)
図10は、主制御CPU73が実行するシリアル通信受信割り込み処理を示すフローチャートである。主制御CPU73は、メインループの割り込み許可中又はタイマ割り込み処理の割り込み許可中において、主コマンド(例えば、払出制御装置71から入力する各種の払出コマンド)を受信すると、受信した主コマンドを優先して処理するためにシリアル通信受信割り込み処理を割り込ませる。
(Serial communication reception interrupt processing)
FIG. 10 is a flowchart showing serial communication reception interrupt processing executed by the main control CPU 73. When the main control CPU 73 receives a main command (for example, various payout commands input from the payout control device 71) while interrupting the main loop or permitting interrupt of the timer interrupt process, the main control CPU 73 gives priority to the received main command. Interrupt the serial communication reception interrupt process to process.

図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 main control CPU 73. In the main control CPU 73, the counter / timer circuit generates an interrupt request signal every predetermined period, and based on the generation of the interrupt request signal, interrupts the timer interrupt processing in the main loop that is permitted to interrupt.

図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 opening 52 and the general winning opening 37 is performed by changing the reception storage area (1 bit) corresponding to the big winning ball detecting sensor 58 and the general winning ball detecting sensor 59 to the reception state. For example, when the reception storage area corresponding to the general winning ball detection sensor 59 has been switched to the reception state, the corresponding on-edge detection flag must be received as a power-off notice signal. If the power-off notice signal is received, it is not set to ON and is kept off.

次に、入力ポート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 input port 2 is generated (step 128), this processing is terminated, and the power-off notice signal is received. In the case (step S127: Yes), this process ends without generating the on-edge detection flag of the input port 2. Receiving storage areas corresponding to the first special figure start ball detection sensor 56 and the second special figure start ball detection sensor 57, respectively, for detecting the winning of the game ball to the first start winning opening 35 and the second start winning opening 36. For example, when the reception storage area corresponding to the second special figure starting ball detection sensor 57 is switched to the reception state, the corresponding on-edge is detected. The detection flag is set to ON if the power-off notice signal is not received, and is kept off without being set to ON if the power-off notice signal is received. The detection of the passage of the game ball to the through chucker 32 is performed by detecting the change (rise) of the reception storage area (1 bit) corresponding to the gate passing ball detection sensor 55 to the reception state. If the reception storage area corresponding to the ball detection sensor 55 has been switched to the reception state, the corresponding on-edge detection flag is set to ON if the power-off notice signal has not been received, and the power-off notice signal has been received. Keep it off without setting it on.

このように、ポート入力処理では、ゲート通過球検知センサ55からの通過検知信号や、第1特図始動球検知センサ56、第2特図始動球検知センサ57、大入賞球検知センサ58、及び一般入賞球検知センサ59からの入賞検知信号の入力状態(オン/オフ)をリードする。電源断発生時ではない場合には、受信記憶領域の受信状態への変化を検出することによって遊技球の通過や入賞を検知し、通過や入賞を検知すると、対応するオンエッジ検出フラグをオンに設定した後、本処理を終了する。一方、電源断発生時の場合には、遊技球の通過や入賞を検知せずに、本処理を終了する。本処理を終了すると、図11のタイマ更新処理(ステップS66)及び初期値乱数更新処理(ステップS67)を実行する。   Thus, in the port input process, the passage detection signal from the gate passage ball detection sensor 55, the first special figure start ball detection sensor 56, the second special figure start ball detection sensor 57, the big winning ball detection sensor 58, and The input state (ON / OFF) of the winning detection signal from the general winning ball detection sensor 59 is read. If it is not when the power is cut off, it detects the passing or winning of the game ball by detecting the change of the receiving storage area to the receiving state, and if the passing or winning is detected, the corresponding on-edge detection flag is set to ON. Then, this process is terminated. On the other hand, when the power is cut off, the process is terminated without detecting the passing of a game ball or winning. When this process ends, the timer update process (step S66) and the initial value random number update process (step S67) in FIG. 11 are executed.

タイマ更新処理(ステップ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 RAM 75 and loops within a specified range.

次に、スイッチ管理処理を実行する(ステップ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 start winning opening 35 detected in the port input process (step S65), a game ball win in the second start winning opening 36, and a game ball in the through chucker 32 is obtained. The hard random number used for each success / failure determination process is acquired based on the passage of.

具体的には、第1始動入賞口35への遊技球の入賞を検知している場合(対応するオンエッジフラグがオンの場合)、RAM75の第1特図保留乱数記憶領域に記憶された第1特図保留乱数の数が上限数(4個)未満であるか否かを判定し、上限数に達していなければ、第1特図当たり決定乱数を取得し、第1特図保留乱数として第1特図保留乱数記憶領域に記憶する。一方、第1特図保留乱数の数が上限数に達している場合には、第1特図当たり決定乱数を取得しない。   Specifically, when the winning of the game ball to the first start winning opening 35 is detected (when the corresponding on-edge flag is on), the first special figure reserved random number storage area stored in the RAM 75 is stored. It is determined whether or not the number of one special figure reserved random number is less than the upper limit number (4). If the number does not reach the upper limit number, a determined random number per first special figure is obtained and used as the first special figure reserved random number. Store in the first special figure reserved random number storage area. On the other hand, when the number of first special figure reservation random numbers has reached the upper limit, the determined random number per first special figure is not acquired.

同様に、第2始動入賞口36への遊技球の入賞を検知している場合(対応するオンエッジフラグがオンの場合)、RAM75の第2特図保留乱数記憶領域に記憶された第2特図保留乱数の数が上限数(4個)未満であるか否かを判定し、上限数に達していなければ、第2特図当たり決定乱数を取得し、第2特図保留乱数として第2特図保留乱数記憶領域に記憶する。一方、第2特図保留乱数の数が上限数に達している場合には、第2特図当たり決定乱数を取得しない。   Similarly, when the winning of the game ball to the second start winning opening 36 is detected (when the corresponding on-edge flag is on), the second special figure stored in the second special figure holding random number storage area of the RAM 75 is detected. It is determined whether or not the number of figure-holding random numbers is less than the upper limit number (4). If the number does not reach the upper-limit number, a determined random number per second special figure is obtained and the second special figure holding random number is second. Store in the special figure holding random number storage area. On the other hand, when the number of second special figure reservation random numbers has reached the upper limit number, the determined random number per second special figure is not acquired.

スルーチャッカ32への遊技球の通過を検知している場合(対応するオンエッジフラグがオンの場合)、RAM75の普図保留乱数記憶領域に記憶された普図保留乱数の数が上限数(4個)未満であるか否かを判定し、上限数に達していなければ、普図当たり決定乱数を取得し、普図保留乱数として普図保留乱数記憶領域に記憶する。一方、普図保留乱数の数が上限数に達している場合には、普図当たり決定乱数を取得しない。   When the passage of the game ball to the through chucker 32 is detected (when the corresponding on-edge flag is turned on), the number of general-purpose reserved random numbers stored in the general-purpose reserved random number storage area of the RAM 75 is the upper limit number (4 If the maximum number is not reached, a determined random number per map is acquired and stored as a general reserved random number in the general reserved random number storage area. On the other hand, when the number of ordinary-pending random numbers has reached the upper limit, no determined random number is acquired per ordinary figure.

また、第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 RAM 75. Even when the passing of the game ball to the through chucker 32 is detected (in the case of a normal symbol), the symbol display random number is acquired and stored in the same manner as in the case of the special symbol. Compared to the simplified.

このように、第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 start winning opening 35 or the second start winning opening 36 (when the game ball is detected by the first special figure start detection sensor 56 or the second special figure start detection sensor 56). Yes, the timing for acquiring the determined random number per symbol and the corresponding symbol display random number is when the game ball passes through the through chucker 32 (when the game ball is detected by the gate passing ball detection sensor 55).

次に、特別遊技管理処理を実行する(ステップ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 symbol display device 40 and the second special symbol display device 41 (Design and variation pattern determination process) is executed.

特別図柄判定処理では、第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 attack device 39 is opened and closed by 2 rounds per 2R, and the attack device 39 is opened per 15R. Open and close for 15 rounds. Further, in the normal hit, the game may be shifted to the normal game state or the short-time game state after the jackpot game is ended (the operation of the attacker device 39 is ended), and in the probability change, the game may be shifted to the probability change game state after the jackpot game is ended.

確変遊技状態では、特別図柄判定処理において参照する当否判定テーブルを、通常用の低確率判定テーブルから高確率判定テーブル(通常用よりも当選確率が高い判定テーブル)に変更する。確変遊技状態は、次回の特図当選まで継続するが、時短遊技状態は、特図抽選を所定回数実行することによって終了する。   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 symbol display device 42, and the like are executed.

普通図柄判定処理では、普図保留乱数記憶領域に最先に記憶された普図保留乱数を読み出し、読み出した普図保留乱数(普図当たり決定乱数)が当選であるか否かを、予め設定された普図当否判定テーブルを参照して決定する(普図抽選)。普図保留乱数は、普図当たり決定乱数として読み出されることによって普図保留乱数記憶領域から消去される。   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 electric tulip 33 is opened a predetermined number of times (in this embodiment, once). Also, in the probability variation gaming state and the short-time gaming state, the normal symbol determination table to be referred to in the normal 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 the normal one). The pattern determination table that is changed and referred to in the symbol and variation pattern determination processing is changed from the normal pattern determination table to the time reduction pattern determination table (determination table having a shorter variation time than normal).

次に、エラー管理処理を実行する(ステップ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 starting winning opening 35, the second starting winning opening 36, the general winning opening 37, and the big winning opening 52 detected in the port input process (step S65) (each ON information of on-edge flag) is acquired.

次に、払出制御管理処理を実行する(ステップ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 payout control device 71 to execute a prize ball operation and the number of prize balls is generated based on the prize information acquired in the prize opening switch process (step S73), and the port Store in the output request buffer.

次に、外部情報処理を実行する(ステップ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 hall computer 68 of the game hall via the external information terminal board 65 is ported. Store in the output request buffer.

次に、試験信号管理処理を実行する(ステップS76)。試験信号管理処理では、主制御CPU73が自己の内部状態(例えば、普通図柄遊技管理状態、特別図柄遊技管理状態、大当たり中、確率変動機能作動中、時間短縮機能作動中)を表す各種の試験信号を生成し、これらをポート出力要求バッファに格納する。この試験信号により、例えば主制御装置70の外部で主制御CPU73の内部状態を試験することができる。   Next, a test signal management process is executed (step S76). In the test signal management process, the main control CPU 73 has various test signals representing its own internal state (for example, normal symbol game management state, special symbol game management state, jackpot, probability variation function in operation, time reduction function in operation). Are stored in the port output request buffer. With this test signal, for example, the internal state of the main control CPU 73 can be tested outside the main controller 70.

次に、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 figure display device 40, the second special figure display device 41, the universal figure display device 42, the state display device 43, etc. Is stored in the port output request buffer.

例えば、第1特図表示装置40及び第2特図表示装置41に対しては、特別遊技管理処理(ステップS70)において決定した特図停止図柄及び変動パターンでの点灯表示を行わせる駆動信号を格納し、普図表示装置42に対しては、普通遊技管理処理(ステップS71)において決定した普図停止図柄及び変動パターンでの点灯表示を行わせる駆動信号を格納し、第2特図保留数表示部46に対しては、第2特図保留乱数記憶領域に記憶された第2特図保留乱数の数を示す点灯表示を行わせる駆動信号を格納し、普図保留数表示部47に対しては、普図保留乱数記憶領域に記憶された普図保留乱数の数を示す点灯表示を行わせる駆動信号を格納し、ラウンド数表示部44に対しては、特別遊技管理処理(ステップS70)において管理されている大当たり遊技中の現在のラウンド数を示す点灯表示を行わせる駆動信号を格納する。   For example, for the first special figure display device 40 and the second special figure display device 41, a drive signal for performing lighting display with the special figure stop symbol and the variation pattern determined in the special game management process (step S70). Stored in the ordinary figure display device 42 is stored a driving signal for performing the illumination display with the ordinary figure stop symbol and the variation pattern determined in the normal game management process (step S71). For the display unit 46, a drive signal for performing lighting display indicating the number of second special figure reservation random numbers stored in the second special figure reservation random number storage area is stored. Then, a drive signal for performing a lighting display indicating the number of the general-purpose reserved random numbers stored in the general-purpose reserved random number storage area is stored, and for the round number display section 44, a special game management process (step S70). Managed in Storing a drive signal for causing the lighting display that indicates the current number of rounds in the bonus game to have.

次に、ソレノイド出力イメージ合成処理を実行する(ステップ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 attacker drive device 54 and the electric tulip drive device 51 for opening / closing control of the attacker device 39 and the electric tulip 33 is stored in the port output request buffer. .

例えば、アタッカー駆動装置54に対しては、特別遊技管理処理(ステップS70)において管理されている大当たり遊技中のラウンドに基づいてアタッカー装置39を開閉させる駆動信号を格納し、電動チューリップ駆動装置51に対しては、普通遊技管理処理(ステップS71)における普図抽選の当選に応じて電動チューリップ33を所定回数開放させる駆動信号を格納する。   For example, for the attacker drive device 54, a drive signal for opening and closing the attacker device 39 based on the round during the jackpot game managed in the special game management process (step S70) is stored, and the electric tulip drive device 51 is stored. On the other hand, a drive signal for opening the electric tulip 33 a predetermined number of times in accordance with the winning of the general drawing lottery in the normal game management process (step S71) is stored.

次に、ポート出力処理を実行する(ステップ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 sub-control device 72, and the prize ball instruction command stored in the payout control management process (step S74) is sent out. 71, the external information signal stored in the external information processing (step S75) is transmitted to the external information terminal board 65, and the drive signal stored in the LED display setting process (step S77) is transmitted to each of the display devices 40 to 43. And the drive signal stored in the solenoid output image composition process (step S78) is transmitted to the attacker drive device 54 and the electric tulip drive device 51.

最後に、ステップ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 main control CPU 73. When the main control CPU 73 receives a power-off notice signal while interrupting the main routine is permitted, the main control CPU 73 interrupts the saving process at power-off. Further, when the power interruption notice signal is received during execution of the timer interruption process, the interruption process is interrupted after the interruption of the timer interruption process and the return to the main loop.

図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 RAM 75 is prohibited (step S109), and a power-off standby process is executed.

電源断時待機処理では、電源断時にある程度の待機時間(例えば数十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 input port 2 is checked during that time. In this embodiment, a loop counter for 80 ms is set to wait for a reset signal (step S110), and the input port of the power-off notice signal is bit-checked while decrementing the value of the loop counter (step S111). If a power-off notice signal is input before 80 ms elapses (before the loop counter reaches 0) (step S112: Yes), the process returns to the beginning of the power-off standby process (step S110). This process is continued until 80 ms elapses without inputting the power-off notice signal (Step S112: Yes → Step S110, or Step S112: No → Step S113: No → Step S111), and the power-off notice signal is input. If 80 ms elapses (step S112: No → step S113: Yes), the power-off saving process is terminated, and the process proceeds to the CPU initialization process (step S1 in FIG. 7). The power-off standby process makes it possible to shift to the CPU initialization process after a stable state in which the power-off notice signal is not input for a predetermined time (80 ms) or longer, thereby stabilizing the process and protecting the system. .

このように主制御装置70のタイマ割り込み処理は、電源断時退避処理に優先してメインループに割り込むので、タイマ割り込み処理の実行中に電源断が発生した場合であっても、タイマ割り込み処理は電源断時退避処理によって中断せず、電源断時退避処理はタイマ割り込み処理の終了を待って開始される。従って、電源断時退避処理において退避させるデータ量を最小限に抑えるとともに、復帰プログラムの複雑化を回避することができる。   As described above, the timer interrupt process of the main control device 70 interrupts the main loop in preference to the save process at the time of power interruption. Therefore, even if the power interruption occurs during the execution of the timer interrupt process, the timer interrupt process It is not interrupted by the power-off saving process, and the power-off saving process is started after the end of the timer interrupt process. Therefore, it is possible to minimize the amount of data to be saved in the saving process when the power is turned off, and to avoid the complicated return program.

すなわち、電源断時退避処理において、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 RAM 75 as backup information to the saving area of the RAM 75, or the saved backup information is returned to the work area of the RAM 75 and the previous power-off. Since the state return process for returning to the gaming state being executed at the time of occurrence is not executed, the storage amount of the save area of the RAM 75 can be reduced. In addition, since the backup information saving process and the state return process are not executed, the return program can be simplified.

また、ポーリングによって電源断予告信号を監視していないので、主制御CPU73の処理負担を軽減することができる。   Further, since the power-off notice signal is not monitored by polling, the processing load on the main control CPU 73 can be reduced.

さらに、メイン割り込み処理において、入賞判定処理(ステップ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 payout control device 71, the input port 0 has a payout count signal from the payout count switch 84, a loan device READY signal from the CR unit 50 and a terminal terminal loan request completion confirmation signal, and the main control CPU 73. Are assigned a main command permission signal, a payout command transmission signal and a launch permission signal, and a power-off notice signal and an RWM clear signal from the power supply device 61. The input port is provided with a 1-bit reception storage area whose state is switched when each signal is received (switched at 1/0), and the input of each signal is confirmed by a bit check of the corresponding reception storage area. The input port 0 functions as a power-off signal receiving unit that receives a power-off notice signal when a power-off occurs, and the state of the corresponding reception storage area is switched while the power-off notice signal is input to the input port 0. .

[払出制御装置71が実行する制御処理]
次に、払出制御装置71の払出制御CPU80がROM81に記憶されている遊技制御用プログラム(払出発射制御プログラム)に従って実行する制御処理について説明する。払出制御CPU80が実行する制御処理は、メインルーチンとしてのCPU初期化処理及びメインループ、シリアル通信受信割り込み処理、タイマ割り込み処理(メイン割り込み処理)、並びに電源断時退避処理を含み、払出制御CPU80は、これらの処理の実行を制御する。
[Control processing executed by payout control device 71]
Next, a control process executed by the payout control CPU 80 of the payout control device 71 according to a game control program (payout launch control program) stored in the ROM 81 will be described. The control process executed by the payout control CPU 80 includes a CPU initialization process as a main routine, a main loop, a serial communication reception interrupt process, a timer interrupt process (main interrupt process), and a power-off saving process. Control the execution of these processes.

図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 payout control device 71, as shown in FIG. 14B, the main routine is repeatedly executed as the basic process, and the timer interrupt process is activated at predetermined intervals to interrupt the main loop. When a main command is received during execution of the main routine or timer interrupt processing, serial communication reception interrupt processing is activated and interrupts the main loop or timer interrupt processing (not shown). If a power-off notice signal is received during execution of the main routine (serial communication reception interrupt processing and timer interrupt processing are not being executed and the main command has not been received), the power-off save processing is activated and the main routine is entered. interrupt. Further, when the power interruption notice signal is received during the execution of the timer interruption process, the power interruption interruption process is started after the timer interruption process is completed and the process returns to the main loop. However, the serial communication reception interrupt processing and main interrupt processing are not activated during the power-off save process, and if an interrupt factor is established during the power-off save process, the power-off save process is performed. The corresponding interrupt processing is started after waiting for the end of. Note that the interrupt process is started on condition that the interrupt destination process (the process currently being executed) is in the interrupt enabled state.

また、メイン割り込み処理は、入力ポート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 RAM 82 when the completion of one payout operation is detected in the payout detection process (step S265). Step S247) in FIG. 18 and payout drive control for causing the payout motor 83 to execute one payout operation when the payout remaining number stored in the RAM 82 is a positive number. Including generating a command and a (step S247 in FIG. 18), resulting payout instruction process of transmitting the payout drive control command transmitted signal to the payout motor 83 (step of FIG. 18 S252). While the main CPU 73 prohibits interruption of the power saving save process during execution of the timer interruption process, the main CPU 73 receives a power interruption notice signal before executing the payout detection process in the timer interruption process being executed (step of FIG. 19). In S263: Yes), the payout detection process is not executed.

(CPU初期化処理)
パチンコ機Pに電源が投入されると、払出制御CPU80はCPU初期化処理を開始する。CPU初期化処理によって、払出制御装置71の安定した払出動作及び発射動作が保証される。
(CPU initialization process)
When the pachinko machine P is powered on, the payout control CPU 80 starts a CPU initialization process. By the CPU initialization process, stable dispensing operation and launching operation of the dispensing control device 71 are guaranteed.

図15は、払出制御CPU80が実行するCPU初期化処理を示すフローチャートである。   FIG. 15 is a flowchart showing a CPU initialization process executed by the payout control CPU 80.

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 payout control CPU 80 can refer to an arbitrary address (however, the least significant bit is 0) as an interrupt vector and execute a specified interrupt handler.

次に、割り込みベクタテーブルを設定し(ステップ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 RAM 82 is permitted (step S209). Specifically, the RAM protect setting value in the work area is reset. As a result, the access to the work area of the RAM 82 is permitted thereafter.

次に、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 RAM 82. Specifically, the data in the backup determination storage area of the RAM 82 is compared with the backup validity determination value (step S210), and if they match (when the backup validity determination flag is set), the power is turned off. It is determined that the CPU initialization process has been completed after the time saving process is properly completed (step S211: No), and if there is a mismatch (when the backup validity determination flag is not set), the power saving interruption process is performed. It is determined that the CPU initialization process has not been completed properly (step S211: Yes).

電源断時退避処理が適正に終了した後の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 RAM 82. Specifically, the checksum value is calculated for the area excluding the backup determination storage area and the sum check buffer in the work area of the RAM 82 (the user work area including the use prohibition area and the stack area) (step S212). It is determined whether or not the checksum value is a normal value (step S213). Specifically, the checksum value calculated in step S212 is compared with the checksum value saved in the power-off saving process (step S280), which will be described later, and if they match, it is determined to be a normal value. If they are different, it is determined that the values are not normal.

チェックサム値が正常値の場合(ステップ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 RAM 82 are cleared (step S215). As a result, the work area and stack area of the RAM 82 are all initialized. Next, initial setting of the RAM 82 is performed by setting an initial value at the time of clear start in the RAM 82 (step S216).

復帰処理(ステップ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 payout control CPU 80.

メインループでは、割り込みを禁止して(ステップ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 main control device 70. Commands received from the main control device 70 include a command related to activation, a payout stop command (for example, output when a door opening error occurs), and a command related to a prize ball (main command permission signal, payout command transmission signal). . When the payout command transmission signal is received, the payout control CPU 80 adds the remaining number of prize balls in the prize ball memory area by the number of prize balls indicated by the received payout command transmission signal (prize ball instruction command). The payout control CPU 80 executes a start process when a command related to start is received, and executes a process of interrupting the payout operation when a command related to an error is received. In the command transmission / reception related processing (step S223), processing related to the received command is executed. For example, when a dish full tank error is detected based on reception from the dish full tank SW 85, or when a ball breakage error or a ball clogging error is detected based on reception from the payout counting switch 84, the error that has occurred is indicated. An error command is transmitted to the main controller 70.

(シリアル通信受信割り込み処理)
図17は、払出制御CPU80が実行するシリアル通信受信割り込み処理を示すフローチャートである。払出制御CPU80は、メインループの割り込み許可中又はタイマ割り込み処理の割り込み許可中において、主コマンド(主制御装置70から入力する各種コマンド)を受信すると、受信した主コマンドを優先して処理するためにシリアル通信受信割り込み処理を割り込ませる。
(Serial communication reception interrupt processing)
FIG. 17 is a flowchart showing serial communication reception interrupt processing executed by the payout control CPU 80. When the payout control CPU 80 receives a main command (various commands input from the main control device 70) while the main loop interrupt is permitted or the timer interrupt processing is permitted, the payout control CPU 80 preferentially processes the received main command. Interrupt serial communication reception interrupt processing.

図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 payout control CPU 80. In the payout control CPU 80, the counter / timer circuit generates an interrupt request signal for every predetermined period, and based on the generation of the interrupt request signal, interrupts the timer interrupt processing to the main loop that is permitted to interrupt.

図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 payout count SW 84 is normally set to H (High) and is changed to L (Low) by receiving the payout count signal. When a signal is not received and a change to the reception state (falling from H to L) of the reception storage area (1 bit) corresponding to the payout count SW 84 is detected, the payout count is processed by the process of step S265. The on-edge of the signal is preserved. The on-edge of the payout counting signal may be detected only by changing from H to L (H → L) or detected by maintaining L (H → L → L) after changing from H to L. May be. On the other hand, if the power-off notice signal has been received (step S263: Yes), the processing ends without updating the contents of the input port 0 and storing the on-edge of the input port 0.

このように、ポート入力処理において、払出計数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 payout count SW 84 is read, and when the power is not cut off, the change to the reception state of the reception storage area is detected. Thus, the payout of the game ball is detected, the on-edge of the payout count signal is stored, and then the present process is terminated. On the other hand, when the power interruption occurs, this process is terminated without detecting the payout of the game ball. When this process ends, the timer update process (step S245) in FIG. 18 is executed.

タイマ更新処理(ステップ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 CR unit 50 is saved in the port input process (step S264), the remaining number of lending memory areas is added by the basic unit.

次に、払出モータ関連処理を実行する(ステップ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 payout count SW 84 is stored in the port input process (step S265), one of the remaining winning ball numbers and the remaining loan number is given priority to the remaining loan number. Subtract. If either the remaining number of winning balls or the remaining number of loans is not zero, a payout drive control command for causing the payout motor 83 to execute a payout operation for one game ball is generated and stored in the port output request buffer. Store. In addition, in the case where processing (successful ball payout processing) is set in which a single prize ball payout is continuously performed up to a predetermined number of units (for example, 25) as an upper limit, continuous winning ball payout processing is performed. Even if the remaining number of loans is increased from zero during the process, the ongoing award ball payout process is continued without interruption. Then, after one consecutive prize ball payout process is completed, if the remaining number of prize balls is not zero even if the remaining number of prize balls has not yet reached zero, the remaining number of outstanding balls is more than the remaining number of prize balls. Priority is given to paying out.

次に、発射制御処理248を実行する。発射制御処理では、発射ボリューム88から受信した射勢指示信号に基づいて発射モータ86の駆動を制御する。これにより、遊技者の操作量に応じて遊技球の打ち出し強さが調整される。但し、タッチセンサ89からの検出信号がオフ(ローレベル)の場合、発射停止スイッチ90から発射停止信号が入力された場合、及びパチンコ機PにCRユニット50が接続されていない場合には、発射モータ86の駆動を停止する。   Next, a firing control process 248 is executed. In the firing control process, the drive of the firing motor 86 is controlled based on the firing instruction signal received from the firing volume 88. Thereby, the launch strength of the game ball is adjusted according to the operation amount of the player. However, when the detection signal from the touch sensor 89 is off (low level), when the launch stop signal is input from the launch stop switch 90, and when the CR unit 50 is not connected to the pachinko machine P, the launch is started. The drive of the motor 86 is stopped.

次に、エラー関連処理を実行する(ステップ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 hall computer 68 of the game hall via the external information terminal board 65 is stored in the port output request buffer.

次に、試験信号管理処理を実行する(ステップS251)。試験信号管理処理では、払出制御CPU80が自己の内部状態を表す各種の試験信号を生成し、これらをポート出力要求バッファに格納する。この試験信号により、例えば払出制御装置71の外部で払出制御CPU80の内部状態を試験することができる。   Next, a test signal management process is executed (step S251). In the test signal management process, the payout control CPU 80 generates various test signals representing its own internal state and stores them in the port output request buffer. With this test signal, for example, the internal state of the payout control CPU 80 can be tested outside the payout control device 71.

次に、ポート出力処理を実行する(ステップ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 payout motor 83 and transmission of prize ball information to the hall computer 68, light emission control of the status LED is executed.

最後に、ステップ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 payout control CPU 80. The payout control CPU 80 interrupts the power-off saving process when receiving a power-off notice signal while interrupting the main routine. Further, when the power interruption notice signal is received during execution of the timer interruption process, the interruption process is interrupted after the interruption of the timer interruption process and the return to the main loop.

図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 payout control CPU 80 is stored. The data storage process is the same as steps S232 to S236 (see FIG. 17) in the serial communication reception interrupt process. The contents of the status register of the SCU are loaded, whether or not there is received data, and SCU data The received value is acquired from the register, it is determined whether or not the received data is confirmed, and when the received data is confirmed, the received data is stored in the serial communication buffer. The waiting time until the data storing process is not limited to 4.5 milliseconds, it is sufficient that it exceeds the timer interrupt processing period (4 milliseconds) executed by the main controller 71, and the timer interrupt processing period (4 More than the time obtained by adding the time required for the timer interrupt processing to (millisecond). By setting the waiting time until the data storing process as described above, the main control CPU 73 always executes the timer interrupt process once within the waiting time. Accordingly, within the standby time, the main control CPU 73 executes the payout control management process (step S74 in FIG. 11) and the port output process (step S79 in FIG. 11) at least once. In the data storage process (step S279), It is possible to receive and store the latest prize ball instruction command transmitted from the main control CPU 73 after the disconnection saving process is started.

次に、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 RAM 82 is prohibited (step S282), and a power-off standby process is executed.

電源断時待機処理では、電源断時にある程度の待機時間(例えば十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 payout control device 71 also interrupts the main loop in preference to the power-off saving process, similarly to the timer interrupt process of the main control device 70. Therefore, the power interruption occurs during the execution of the timer interrupt process. Even if it occurs, the timer interrupt process is not interrupted by the power-off save process, and the power-off save process starts after the timer interrupt process ends. Therefore, it is possible to minimize the amount of data to be saved in the saving process when the power is turned off, and to avoid the complicated return program.

すなわち、電源断時退避処理において、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 RAM 82 to the saving area of the RAM 82 as the backup information, or the saved backup information is restored to the work area of the RAM 82 and the previous power-off. Since the state return process for returning to the gaming state being executed at the time of occurrence is not executed, the storage amount of the save area of the RAM 82 can be reduced. In addition, since the backup information saving process and the state return process are not executed, the return program can be simplified.

また、ポーリングによって電源断予告信号を監視していないので、払出制御CPU80の処理負担を軽減することができる。   Further, since the power-off notice signal is not monitored by polling, the processing load on the payout control CPU 80 can be reduced.

さらに、メイン割り込み処理において、払出検出処理(ステップ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 payout control device 71, the payout completion of the game ball is not erroneously detected based on the erroneous input. Therefore, the payout remaining number is not subtracted improperly due to the power interruption, and an unreasonable loss of winning balls or rental balls can be prevented in advance.

なお、上記実施形態では、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.
請求項1に記載の遊技機であって、
前記制御装置は、
前記一連の処理を含む割込み処理を前記所定時間毎に実行し、
前記入力処理において前記異常信号の入力を検出した場合には、当該入力処理において前記遊技媒体検出信号を取得したか否かに拘わらず、当該入力処理において前記遊技媒体検出信号を取得したことを示す検出フラグを生成しない
ことを特徴とする遊技機。
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.
JP2016064150A 2016-03-28 2016-03-28 Game machine Active JP6154040B2 (en)

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)

* Cited by examiner, † Cited by third party
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

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