JP2011161084A - Game machine - Google Patents

Game machine Download PDF

Info

Publication number
JP2011161084A
JP2011161084A JP2010028726A JP2010028726A JP2011161084A JP 2011161084 A JP2011161084 A JP 2011161084A JP 2010028726 A JP2010028726 A JP 2010028726A JP 2010028726 A JP2010028726 A JP 2010028726A JP 2011161084 A JP2011161084 A JP 2011161084A
Authority
JP
Japan
Prior art keywords
game
power supply
power
processing
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2010028726A
Other languages
Japanese (ja)
Other versions
JP5554582B2 (en
Inventor
Hajime Aoki
一 青木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Universal Entertainment Corp
Original Assignee
Universal Entertainment Corp
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 Universal Entertainment Corp filed Critical Universal Entertainment Corp
Priority to JP2010028726A priority Critical patent/JP5554582B2/en
Publication of JP2011161084A publication Critical patent/JP2011161084A/en
Application granted granted Critical
Publication of JP5554582B2 publication Critical patent/JP5554582B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Pinball Game Machines (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a game machine having simplified processing performed when cutting or recovering power and allowing a storage capacity needed for processing when cutting or recovering power to be reduced. <P>SOLUTION: When a lowering detection signal is issued by a power monitoring means while main control processing is repeatedly executed, power lowering information showing that the voltage of power supply lowers is set, and game information acquired by returning to the main control processing is stored into a data storage means to execute power cut processing. When the power is recovered, contents stored in a transmission storage means is cleared and the game information stored into the data storage means is transmitted by a command transmitting means. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、電断が生じた後、電源を復旧させたときに、電断前の状態に戻す遊技機に関する。   The present invention relates to a gaming machine that returns to a state before power interruption when power is restored after power interruption occurs.

パチンコ機などの遊技機において、供給される電源が遮断された電断状態が生じた後に、電源を復帰させて遊技を再開する際におけるプログラム制御に関して、従来から、様々な提案がなされてきた。例えば、電源復帰時の制御処理として、以下のものが提案されていた。   In game machines such as pachinko machines, various proposals have conventionally been made regarding program control when a game is resumed by returning the power after an interruption state in which the supplied power is cut off. For example, the following has been proposed as a control process when power is restored.

電源復帰時には電断発生時の遊技状態を再現して、遊技を再開できるものが好ましい。このため、電断が発生したときは、メイン制御装置とサブ制御装置との間で送受信されるコマンドをメイン制御装置とサブ制御装置との双方で記憶させておき、電源復帰したときには記憶させておいたコマンドを読み出して、電断発生時の遊技状態を再現しようとした遊技機がある。このような遊技機では、メイン制御装置とサブ制御装置との双方で、コマンドの送信状況及び受信状況を確認し、受信状況に応じてコマンドを上書きするか無視するかを決定していた。すなわち、まず、電断が発生したときには、メイン制御装置では、送信済みのコマンドと未送信のコマンドとを区別して記憶させておくとともに、サブ制御装置では、受信済みのコマンドを記憶させておく。その後、電源が復帰したときに、メイン制御装置から送信したコマンドの全てが、サブ制御装置で受信できているか否かを判断し、受信できていない場合には、サブ制御装置で受信できなかったコマンドを探し出し、そのコマンドから、再びサブ制御装置に送信する処理をしていた(たとえば、特許文献1参照)。   It is preferable that when the power is restored, the game state when the power interruption occurs can be reproduced to resume the game. For this reason, when a power interruption occurs, commands transmitted and received between the main control device and the sub control device are stored in both the main control device and the sub control device, and are stored when the power is restored. There is a gaming machine that reads out the placed command and tries to reproduce the gaming state when the power interruption occurs. In such a gaming machine, both the main control device and the sub-control device check the command transmission status and reception status, and decide whether to overwrite or ignore the command according to the reception status. That is, first, when a power interruption occurs, the main control device distinguishes and stores transmitted commands and unsent commands, and the sub control device stores received commands. After that, when the power was restored, it was determined whether all of the commands sent from the main control device could be received by the sub control device. If the command could not be received, it could not be received by the sub control device. A process of searching for a command and transmitting the command to the sub-control device again is performed (see, for example, Patent Document 1).

また、電断が発生したときに、2バイト長のコマンドの1バイト分しか送信できていなかった場合を考慮して、電源が復帰したときには、コマンド出力ポートに設定された制御コマンドをクリアし、送信側がコマンドの先頭から再送信するようにしたものもあった(たとえば、特許文献2参照)。   Also, considering the case where only 1 byte of a 2-byte command could be sent when power interruption occurred, when the power returns, the control command set to the command output port is cleared, In some cases, the transmission side retransmits the command from the beginning (see, for example, Patent Document 2).

特許3891804号Japanese Patent No. 3891804 特開2003−135798号公報JP 2003-135798 A

前述したように、電断が発生したときに、メイン制御装置では送信済みのコマンドと未送信のコマンドとを区別して記憶させ、サブ制御装置では受信済みのコマンドを記憶させておく遊技機があった。この従来の遊技機では、電源が復帰したときに、未受信のコマンドを探し出し、そのコマンドから、再びサブ制御装置に送信を開始する必要があった。このため、メイン制御装置とサブ制御装置との間における通信の位相合わせをする必要があるとともに、未送信コマンドの管理や、送信済みと未送信との変化点を判断する必要もあり、電断時の処理や電源復帰時の処理が煩雑にならざるを得なった。   As described above, when a power failure occurs, there is a gaming machine in which the main control device distinguishes and stores the transmitted command and the untransmitted command, and the sub control device stores the received command. It was. In this conventional gaming machine, when the power is restored, it is necessary to search for an unreceived command and to start transmission to the sub-control device again from the command. For this reason, it is necessary to align the phase of communication between the main control device and the sub control device, and it is also necessary to manage unsent commands and determine the change point between transmitted and untransmitted. The process at the time and the process at the time of power recovery must be complicated.

また、前述したように、電源が復帰したときに制御コマンドをクリアして、コマンドの先頭から再送信するようにした遊技機があった。このような従来の遊技機の場合には、通信の位相合わせの問題を解決できるものの、後述するNMI処理(ノンマスカブル処理)における問題が新たに生ずる。   In addition, as described above, there is a gaming machine in which a control command is cleared when power is restored and retransmitted from the beginning of the command. In the case of such a conventional gaming machine, although the problem of communication phase alignment can be solved, a problem in NMI processing (non-maskable processing) described later newly arises.

このNMI処理における問題として次のようなものがある。メイン制御装置における割込処理には、電断割込処理(ノンマスカブル割込)とシステムタイマ割込処理(マスカブル割込)の2種類がある。電断割込処理は、電源基板が停電を検知すると電断検知信号を出力し、メイン制御装置に設けられた電断検知回路のXNMI端子に入力されることで発生する。この電断割込処理においては、当該電断割込処理が他の処理に優先して行われ、割り込み処理発生時の遊技情報データ等がメモリに退避されてバックアップされ、所定の電圧保証時間を経過した後に電源が遮断される。ノンマスカブル割込のように最優先される割込処理によって電断処理を行う場合には、その処理の実行中に、遊技情報が更新されたようなときの処理もできるようにする必要がある。このため、予め決められたタイミングで割り込まれて実行するマスカブル割込処理に比して、プログラムが煩雑にならざるを得なかった。プログラムを小容量化するためにも予め決まった処理において割込許可をするプログラムが好ましい。   Problems in the NMI processing include the following. There are two types of interrupt processing in the main control device: power interruption interrupt processing (non-maskable interrupt) and system timer interrupt processing (maskable interrupt). The power interruption interrupt processing is generated by outputting a power interruption detection signal when the power supply board detects a power failure and inputting it to the XNMI terminal of the power interruption detection circuit provided in the main control device. In this power interruption interrupt process, the power interruption interrupt process is prioritized over other processes, and game information data, etc. at the time of interrupt processing occurrence is saved and backed up in the memory, and a predetermined voltage guarantee time is reached. The power is shut off after a lapse. When the power interruption process is performed by the interrupt process having the highest priority, such as a non-maskable interrupt, it is necessary to be able to perform a process when the game information is updated during the execution of the process. For this reason, the program has to be complicated as compared with the maskable interrupt processing which is interrupted and executed at a predetermined timing. In order to reduce the capacity of the program, a program that permits interruption in a predetermined process is preferable.

本発明は、前述の点に鑑みてなされたものであり、その目的とするところは、電断時及び電源復帰時における処理を簡便にするとともに、電断時や電源復帰時の処理に要する記憶容量を小さくできる遊技機を提供することにある。   The present invention has been made in view of the foregoing points, and an object of the present invention is to simplify processing at power interruption and power recovery, and to store memory required for processing at power interruption and power recovery. The object is to provide a gaming machine capable of reducing the capacity.

本発明の実施の形態に係る特徴は、
遊技の進行に関する制御をする遊技制御手段と、
前記遊技制御手段に供給される供給電源の電圧を監視し、供給電源の電圧が所定電圧より低下したときに電断が発生したとして低下検出信号を発する電源監視手段と、
送信コマンドを記憶する送信用記憶手段を備え、前記送信用記憶手段から送信コマンドを読み出し、演出に関する制御をする副制御手段に前記送信コマンドを送信するコマンド送信手段と、
前記遊技制御手段への供給電源の電圧が前記所定電圧より低下した後もデータを保持できるデータ記憶手段と、を有し、
前記遊技制御手段が、以下の処理を実行することを特徴とする。
(a) 前記電源監視手段から前記低下検出信号が発せられた場合には、供給電源の電圧が低下したことを示す電源低下情報をノンマスカブル割込処理によってセットし、その後、ノンマスカブル割込前の元の処理に戻す電源低下情報セット処理、
(b) 遊技を進めるためのメイン制御処理であって、
(b−1) 割り込みを禁止する割込禁止処理と、
(b−2) 前記割込禁止処理の後に、前記電源低下情報がセットされているか否かを判断する判断処理と、
(b−3) 前記判断処理の後に、割り込みを許可する割込許可処理と、
(b−4) 前記割込許可処理の後に、遊技の制御をする遊技制御処理及び遊技を進めるために必要な遊技情報を取得する遊技情報取得処理と、を繰り返し実行可能で、
(b−5) 前記(b−4)において、前記割込許可処理の後に前記(a)の電源低下情報セット処理を実行した場合には、前記(a)の電源低下情報セット処理から戻って、前記遊技制御処理及び前記遊技情報取得処理を実行するメイン遊技処理、
(c) 前記(b−2)の判断処理で前記電源低下情報がセットされていると判別したときに、前記(b−4)の処理で取得した遊技情報を前記データ記憶手段に記憶させる遊技情報記憶処理、及び
(d) 前記遊技制御手段への供給電源の電圧が所定電圧より高くなったときに、電源が復帰したとして前記送信用記憶手段に記憶されている内容をクリアした後、前記(c)の処理で前記データ記憶手段に記憶させた遊技情報を前記コマンド送信手段から送信コマンドとして前記副制御手段に送信する処理。
The features according to the embodiment of the present invention are as follows:
Game control means for controlling the progress of the game;
Power supply monitoring means for monitoring the voltage of the power supply supplied to the game control means, and issuing a drop detection signal when power interruption occurs when the voltage of the power supply drops below a predetermined voltage;
Command transmitting means for storing a transmission command, a command transmitting means for reading the transmission command from the transmission storing means, and transmitting the transmission command to a sub-control means for controlling the production;
Data storage means capable of holding data even after the voltage of the power supply to the game control means falls below the predetermined voltage;
The game control means executes the following processing.
(A) When the drop detection signal is issued from the power supply monitoring means, the power drop information indicating that the voltage of the power supply is lowered is set by the non-maskable interrupt process, and then the original before the non-maskable interrupt Power drop information set processing to return to processing,
(B) Main control processing for advancing the game,
(B-1) interrupt disable processing for disabling interrupts;
(B-2) A determination process for determining whether or not the power supply lowering information is set after the interrupt prohibition process;
(B-3) an interrupt permission process for permitting an interrupt after the determination process;
(B-4) After the interrupt permission process, it is possible to repeatedly execute a game control process for controlling a game and a game information acquisition process for acquiring game information necessary to advance the game,
(B-5) In (b-4), when the power reduction information setting process (a) is executed after the interrupt permission process, the process returns from the power reduction information setting process (a). A main game process for executing the game control process and the game information acquisition process,
(C) A game that stores the game information acquired in the process (b-4) in the data storage means when it is determined in the determination process (b-2) that the power supply lowering information is set. Information storage processing, and (d) when the voltage of the power supply to the game control means becomes higher than a predetermined voltage, after clearing the contents stored in the storage means for transmission as the power is restored, A process of transmitting the game information stored in the data storage means in the process of (c) from the command transmission means to the sub-control means as a transmission command.

この構成によれば、電断処理を実行するタイミングを調整するので、電源復帰処理に必要な情報を的確に取得した後に電断させることができる。また、電源が復帰したときには、送信用記憶手段に記憶されている内容をクリアするともに、記憶させていた遊技情報をコマンド送信手段から送信コマンドとして送信するだけであるので、電断時及び電源復帰時における処理を簡便にするとともに、処理に要する記憶容量を小さくできる。   According to this configuration, since the timing for executing the power interruption process is adjusted, the information necessary for the power recovery process can be accurately obtained and then the power interruption can be performed. Also, when the power is restored, the contents stored in the transmission storage means are cleared, and the stored game information is only transmitted as a transmission command from the command transmission means. The processing at the time can be simplified and the storage capacity required for the processing can be reduced.

また、本発明の実施の形態に係る特徴は、
所定時間毎に発生する割り込みによって実行される割込処理が、前記電源低下情報がセットされてない場合には所定の処理を実行し、前記電源低下情報がセットされている場合には前記所定の処理の実行を省略することである。
The features according to the embodiment of the present invention are as follows:
An interrupt process executed by an interrupt generated every predetermined time executes a predetermined process when the power supply lowering information is not set, and executes the predetermined process when the power supply lowering information is set. The execution of the process is omitted.

この構成によれば、電源復帰後の処理に必要になる各種の情報を取得して記憶させる処理に要する時間を短くすることができ、所定の時間内、たとえば、電圧保証時間内に必要な処理を済ませて、電断処理をすることができる。   According to this configuration, it is possible to shorten the time required for processing to acquire and store various types of information necessary for processing after power recovery, and processing required within a predetermined time, for example, within a voltage guarantee time. Can be cut off.

さらに、本発明の実施の形態に係る特徴は、
前記(b−4)の処理が、
(b−4−1) 前記(b−3)の割込許可処理を実行した後、タイマ値が所定値以上になったか否かを判断する処理と、
(b−4−2) タイマ値が前記所定値未満であるときには、前記(b−1)の処理に戻す処理と、
(b−4−3) タイマ値が前記所定値以上であるときには、前記遊技制御処理及び前記遊技情報取得処理を実行する処理と、を含み、
前記(b−5)の処理は、前記(b−4−3)の処理でタイマ値が前記所定値以上であるときに、前記(a)の電源低下情報セット処理を実行した場合には、前記(a)の電源低下情報セット処理から戻って、前記遊技制御処理及び遊技情報取得処理を実行することである。
Furthermore, the features according to the embodiment of the present invention are as follows:
The process (b-4)
(B-4-1) After executing the interrupt permission process of (b-3), a process of determining whether or not the timer value has reached a predetermined value;
(B-4-2) When the timer value is less than the predetermined value, a process of returning to the process of (b-1);
(B-4-3) When the timer value is equal to or greater than the predetermined value, the game control process and the game information acquisition process are included.
In the process (b-5), when the timer value is equal to or greater than the predetermined value in the process (b-4-3), the power reduction information setting process (a) is executed. Returning from the power supply lowering information setting process of (a), executing the game control process and the game information acquisition process.

この構成によれば、電源低下情報がセットされているか否かを繰り返し判断できるタイミングを形成するとともに、所定時間経過したときには、電源低下情報がセットされている場合であっても、遊技制御処理や遊技情報取得処理を実行して、電源復帰に必要な情報を的確に取得することができる。   According to this configuration, while forming a timing at which it can be repeatedly determined whether or not the power supply lowering information is set, even if the power supply lowering information is set when a predetermined time has elapsed, By executing the game information acquisition process, it is possible to accurately acquire information necessary for power recovery.

電断時及び電源復帰時における処理を簡便にするとともに、電断時や電源復帰時の処理に要する記憶容量を小さくできる。   In addition to simplifying the processing at the time of power interruption and power recovery, the storage capacity required for the processing at power interruption and power recovery can be reduced.

本実施の形態によるパチンコ機の外観を示す正面図である。It is a front view which shows the external appearance of the pachinko machine by this Embodiment. 図1に示すパチンコ機の遊技動作を処理制御する電子回路の主な構成を示すブロック図である。It is a block diagram which shows the main structures of the electronic circuit which carries out process control of the game operation | movement of the pachinko machine shown in FIG. 電源監視ICの入出力端子を示す図である。It is a figure which shows the input / output terminal of power supply monitoring IC. 電源監視ICの動作を示すタイムチャートである。It is a time chart which shows operation | movement of a power supply monitoring IC. リセットICの入出力端子を示す図である。It is a figure which shows the input / output terminal of reset IC. リセットICの動作を示すタイムチャートである。It is a time chart which shows operation | movement of reset IC. メイン処理を示すフローチャートである。It is a flowchart which shows a main process. メイン処理の続きの処理を示すフローチャートである。It is a flowchart which shows the process following the main process. メイン処理の続きの処理を示すフローチャートである。It is a flowchart which shows the process following the main process. メイン処理の続きの処理を示すフローチャートである。It is a flowchart which shows the process following the main process. メイン処理の続きの処理を示すフローチャートである。It is a flowchart which shows the process following the main process. 演出制御コマンド送信割込処理を示すフローチャートである。It is a flowchart which shows an effect control command transmission interruption process. システムタイマ割込処理を示すフローチャートである。It is a flowchart which shows a system timer interruption process. ノンマスカブル割込処理を示すフローチャートである。It is a flowchart which shows a non-maskable interruption process. 電断処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of a power interruption process.

<<<本発明の実施の形態の遊技機の構成及び概要>>>
本発明の実施の形態の遊技機は、遊技制御手段と電源監視手段とコマンド送信手段とデータ記憶手段とを有する。
<<< Configuration and Outline of Game Machine of Embodiment of the Present Invention >>>
The gaming machine according to the embodiment of the present invention includes game control means, power supply monitoring means, command transmission means, and data storage means.

遊技制御手段は、遊技の進行に関する制御をする。遊技制御手段には、所定の電圧が供給電源として供給される。電源監視手段は、遊技制御手段に供給される供給電源の電圧を監視する。電源監視手段は、供給電源の電圧が所定電圧より低下したときに電断が発生したとして低下検出信号を発する。   The game control means controls the progress of the game. A predetermined voltage is supplied as a supply power to the game control means. The power monitoring means monitors the voltage of the supply power supplied to the game control means. The power supply monitoring means issues a drop detection signal that power interruption has occurred when the voltage of the power supply drops below a predetermined voltage.

コマンド送信手段は、送信コマンドを記憶するための送信用記憶手段を備える。たとえば、リングバッファによって送信用記憶手段が構成される。コマンド送信手段は、送信用記憶手段に記憶されている送信コマンドを読み出し、演出に関する制御をする副制御手段この送信コマンドを送信する。なお、演出に関する制御をする副制御手段だけでなく、遊技制御手段と通信可能に接続されている他の制御装置に送信コマンドを送信できればよい。   The command transmission means includes a transmission storage means for storing a transmission command. For example, a transmission storage unit is configured by a ring buffer. The command transmission means reads the transmission command stored in the transmission storage means, and transmits the transmission command. Note that it is only necessary that the transmission command can be transmitted not only to the sub-control unit that controls the production but also to other control devices that are communicably connected to the game control unit.

データ記憶手段は、電断が生じた後も記憶されたデータを保持することができる。本明細書においては、遊技機、たとえばパチンコ機1等への電源の供給が遮断された状態を電断状態又は電源断状態と称する。   The data storage means can hold the stored data even after the power interruption occurs. In the present specification, a state in which the supply of power to a gaming machine such as the pachinko machine 1 is cut off is referred to as a power-off state or a power-off state.

遊技制御手段は、以下の処理を実行する。   The game control means executes the following processing.

処理(a)は、電源低下情報セット処理である。この電源低下情報セット処理は、電源監視手段から低下検出信号が発せられた場合にはノンマスカブル割込処理によって電源低下情報をセットする。電源低下情報は、供給電源の電圧が低下したことを示す情報である。その後、ノンマスカブル割込前の元の処理に戻す。   Process (a) is a power supply lowering information set process. In this power supply lowering information setting process, when a power reduction monitoring signal is issued from the power supply monitoring means, the power supply lowering information is set by non-maskable interrupt processing. The power supply lowering information is information indicating that the voltage of the power supply has been reduced. Thereafter, the original processing before the non-maskable interrupt is restored.

このようにすることで、低下検出信号が発せられた場合には、直ちに、電源低下情報をセットすることができる。さらに、電源低下情報をセットした後、直ちに、割り込み前の元の処理に戻ることができ、この電源低下情報セット処理による他の処理への負担を軽くすることができる。   In this way, when a decrease detection signal is issued, the power supply decrease information can be set immediately. Furthermore, immediately after setting the power supply lowering information, it is possible to return to the original process before the interruption, and it is possible to reduce the burden on other processes by the power supply lowering information setting process.

処理(b)は、遊技を進めるためのメイン制御処理である。このメイン制御処理は、以下の(b−1)〜(b−4)の処理を少なくとも1回実行する処理である。   Process (b) is a main control process for advancing the game. This main control process is a process for executing the following processes (b-1) to (b-4) at least once.

(b−1)の処理は、割り込みを禁止する割込禁止処理である。ここでの割込処理は、マスカブル処理であるものが好ましい。   The process (b-1) is an interrupt prohibition process for prohibiting an interrupt. The interrupt process here is preferably a maskable process.

(b−2)の処理は、(b−1)の割込禁止処理の後、電源低下情報がセットされているか否かを判断する処理である。さらに、(b−3)の処理は、(b−2)の判断処理の後、割り込みを許可する割込許可処理である。   The process (b-2) is a process for determining whether or not the power supply lowering information is set after the interrupt prohibition process of (b-1). Further, the process (b-3) is an interrupt permission process for permitting an interrupt after the determination process (b-2).

このように、(b−2)の判断処理は、(b−1)の割込禁止処理と(b−3)の割込許可処理との間でのみ行われる処理であり、電源低下情報がセットされているか否かを判断は、メイン制御処理におけるこの一定の処理区間のみで実行される。   As described above, the determination process (b-2) is a process performed only between the interrupt prohibition process (b-1) and the interrupt permission process (b-3). The determination of whether or not it is set is executed only in this fixed processing section in the main control process.

(b−4)の処理は、割込許可処理の後に、遊技制御処理及び遊技情報取得処理を実行する処理である。遊技制御処理は、遊技機における遊技の制御をするための処理である。たとえば、乱数を発生させたり、各種のセンサからの信号を受信したりして、遊技の進行を定めるための処理である。遊技情報取得処理は、遊技を進めるために必要な遊技情報を取得する処理である。   The process (b-4) is a process for executing a game control process and a game information acquisition process after the interrupt permission process. The game control process is a process for controlling a game in the gaming machine. For example, it is a process for determining the progress of the game by generating random numbers or receiving signals from various sensors. The game information acquisition process is a process for acquiring game information necessary to advance the game.

前述したように、メイン遊技処理は、これらの(b−1)〜(b−4)の処理を少なくとも1回、たとえば繰り返し実行する処理である。   As described above, the main game process is a process of repeatedly executing these processes (b-1) to (b-4) at least once, for example.

さらに、(b−4)の処理において、割込許可処理の後に(a)の電源低下情報セット処理を実行した場合には、(a)の電源低下情報セット処理から戻って、(b−4)の遊技制御処理及び遊技情報取得処理を実行する。   Further, in the process of (b-4), when the power reduction information setting process of (a) is executed after the interrupt permission process, the process returns from the power reduction information setting process of (a), and (b-4 ) Game control process and game information acquisition process.

(c)の処理は、(b−2)の判断処理で電源低下情報がセットされていると判別したときに遊技情報記憶処理を実行する処理である。この遊技情報記憶処理は、(b−4)の処理で取得した遊技情報をデータ記憶手段に記憶させる処理である。このように、電源監視手段から低下検出信号が発せられたときに、直ちに電断処理を実行するのではなく、(b−1)〜(b−4)の処理を繰り返し実行されるメイン制御処理において、(b−1)の割込禁止処理を実行してから、電源低下情報がセットされているか否かを判断し、その後、メイン制御処理から抜け出してこの遊技情報記憶処理を実行する。   The process (c) is a process for executing the game information storage process when it is determined in the determination process (b-2) that the power supply lowering information is set. This game information storage process is a process for storing the game information acquired in the process (b-4) in the data storage means. Thus, the main control process in which the process of (b-1) to (b-4) is repeatedly executed instead of immediately executing the power interruption process when the power supply monitoring unit issues the drop detection signal. Then, after executing the interrupt prohibition process of (b-1), it is determined whether or not the power supply lowering information is set. Thereafter, the process exits from the main control process and executes this game information storage process.

(d)の処理は、遊技制御手段への供給電源の電圧が所定電圧より高くなったとき、すなわち、電源が復帰したときに、送信用記憶手段に記憶されている内容をクリアするとともに、データ記憶手段に記憶させた遊技情報をコマンド送信手段から送信コマンドとして送信する処理である。   In the process (d), when the voltage of the power supply to the game control means becomes higher than a predetermined voltage, that is, when the power is restored, the contents stored in the transmission storage means are cleared and the data This is processing for transmitting game information stored in the storage means as a transmission command from the command transmission means.

供給電源の電圧が低下したときには、電源低下情報をセットする処理のみを実行する。すなわち、供給電源の電圧が低下した場合であっても、直ちに電断処理を実行しない。したがって、メイン制御処理を実行している間に、供給電源の電圧が低下したときには、電源低下情報をセットし、その後、再びメイン制御処理に戻る。メイン制御処理に戻ったときの処理に応じて遊技情報を取得することができる。さらに、戻ったメイン制御処理で割り込みを禁止して、電源低下情報がセットされているときのみ電断処理を実行する。このように、電断処理を実行するタイミングを調整するので、電源復帰の処理に必要な情報を取得した後に電断させることができる。   When the voltage of the power supply decreases, only the processing for setting the power supply decrease information is executed. That is, even when the voltage of the power supply is lowered, the power interruption process is not immediately executed. Therefore, when the voltage of the power supply decreases while executing the main control process, the power supply lowering information is set, and then the process returns to the main control process again. Game information can be acquired in accordance with the processing when returning to the main control processing. Further, interruption is prohibited in the returned main control process, and the power interruption process is executed only when the power supply lowering information is set. As described above, since the timing for executing the power interruption process is adjusted, the power interruption can be performed after acquiring information necessary for the power recovery process.

また、電源が復帰したときには、送信用記憶手段に記憶されている内容をクリアするともに、電断処理でデータ記憶手段に記憶させていた遊技情報をコマンド送信手段から送信コマンドとして送信するだけで、電源復帰処理を済ますことができるので、電源復帰時における通信の位相合わせを容易にすることができる。また、電断が発生したときの通信コマンドの送信済み、未送信、受信済み、未受信などの送信状態を考慮せずに、電源を復帰させることができる。さらに、電断処理の実行するタイミングが予め定められているのでプログラムの処理が煩雑化することがなく、プログラムも小容量化できる。   Also, when the power is restored, the contents stored in the transmission storage means are cleared, and the game information stored in the data storage means by the power interruption process is simply transmitted as a transmission command from the command transmission means. Since power recovery processing can be completed, communication phase alignment at power recovery can be facilitated. In addition, the power can be restored without considering the transmission state of the communication command when the power interruption occurs, such as transmitted, untransmitted, received, and not received. Furthermore, since the timing for executing the power interruption process is determined in advance, the processing of the program is not complicated, and the capacity of the program can be reduced.

また、本発明の実施の形態の遊技機は、
所定時間毎に発生する割り込みによって実行される割込処理が、前記電源低下情報がセットされてない場合には所定の処理を実行し、前記電源低下情報がセットされている場合には前記所定の処理の実行を省略するものが好ましい。
In addition, the gaming machine of the embodiment of the present invention,
An interrupt process executed by an interrupt generated every predetermined time executes a predetermined process when the power supply lowering information is not set, and executes the predetermined process when the power supply lowering information is set. What omits execution of a process is preferable.

供給電源の電圧が低下したときには、処理を簡略化して、必要な処理のみを実行することによって、処理に要する時間を短くすることができる。このようにすることで、電源復帰後の処理に必要になる必要最低限の各種の情報のみを的確に取得して記憶させることができる。したがって、供給電源の電圧が低下したときには、所定の時間内、たとえば、電圧保証時間内に必要最低限の処理を済ませて、電断に対応することができる。   When the voltage of the power supply is lowered, the time required for the processing can be shortened by simplifying the processing and executing only the necessary processing. By doing in this way, it is possible to accurately acquire and store only the minimum necessary various information necessary for processing after the power is restored. Therefore, when the voltage of the power supply decreases, the necessary minimum processing is completed within a predetermined time, for example, within the voltage guarantee time, and it is possible to cope with power interruption.

さらに、本発明の実施の形態の遊技機では、
前記(b−4)の処理が、
(b−4−1) 前記(b−3)の割込許可処理を実行した後、タイマ値が所定値以上になったか否かを判断する処理と、
(b−4−2) タイマ値が前記所定値未満であるときには、前記(b−1)の処理に戻す処理と、
(b−4−3) タイマ値が前記所定値以上であるときには、前記遊技制御処理及び前記遊技情報取得処理を実行する処理と、を含み、
前記(b−5)の処理が、前記(b−4−3)の処理でタイマ値が前記所定値以上であるときに、前記(a)の電源低下情報セット処理を実行した場合には、前記(a)の電源低下情報セット処理から戻って、前記遊技制御処理及び遊技情報取得処理を実行するものが好ましい。
Furthermore, in the gaming machine of the embodiment of the present invention,
The process (b-4)
(B-4-1) After executing the interrupt permission process of (b-3), a process of determining whether or not the timer value has reached a predetermined value;
(B-4-2) When the timer value is less than the predetermined value, a process of returning to the process of (b-1);
(B-4-3) When the timer value is equal to or greater than the predetermined value, the game control process and the game information acquisition process are included.
When the process of (b-5) is performed in the process of (b-4-3) and the timer value is equal to or greater than the predetermined value, the power supply lowering information set process of (a) is executed. It is preferable that the game control process and the game information acquisition process are executed after returning from the power supply lowering information set process of (a).

タイマ値が所定値未満であるときには、(b−1)の処理に戻すので、電源低下情報がセットされているか否かを繰り返し判断できる。したがって、供給電源の電圧が所定電圧より低下したか否かを的確に判断することができる。また、タイマ値が所定値以上であるときには、電源低下情報がセットされている場合であっても、遊技制御処理や遊技情報取得処理を優先的に実行して、電源復帰に必要な情報を的確に取得することができる。   When the timer value is less than the predetermined value, the process returns to the process (b-1), so that it can be repeatedly determined whether or not the power supply lowering information is set. Therefore, it can be accurately determined whether or not the voltage of the power supply has dropped below a predetermined voltage. In addition, when the timer value is equal to or greater than the predetermined value, even when the power supply lowering information is set, the game control process and the game information acquisition process are preferentially executed, and the information necessary for power recovery is accurately determined. Can be obtained.

前述したように、処理(a)は、電源監視手段から低下検出信号が発せられた場合に、ノンマスカブル割込処理によって電源低下情報をセットし、その後、割り込み前の元の処理に戻る処理が好ましい。タイマ値が所定値未満であるときに、ノンマスカブル割込処理から戻った場合には、処理(b−4−2)によって処理(b−1)に戻り、処理(b−2)によって電源低下情報がセットされているか否かを判断する。これに対して、タイマ値が所定値以上であるときに、ノンマスカブル割込処理から戻った場合には、処理(b−4−3)によって遊技情報取得処理を実行する。したがって、電源監視手段から低下検出信号が発せられた場合であっても、直ちに電断処理を実行するのではなく、処理(b−4−3)を優先して、遊技情報を取得してから電断処理を実行する。   As described above, the process (a) is preferably a process in which the power drop information is set by the non-maskable interrupt process when the drop detection signal is issued from the power monitoring means, and then the process returns to the original process before the interruption. . When the timer value is less than the predetermined value, when returning from the non-maskable interrupt process, the process returns to the process (b-1) by the process (b-4-2), and the power supply lowering information by the process (b-2). It is determined whether or not is set. On the other hand, when the timer value is equal to or greater than the predetermined value, when returning from the non-maskable interrupt process, the game information acquisition process is executed by the process (b-4-3). Therefore, even if a drop detection signal is issued from the power supply monitoring means, the power interruption process is not executed immediately, but the process (b-4-3) is prioritized and the game information is acquired. Execute power interruption processing.

すなわち、供給電源の電圧が所定電圧より低下しても直ちに電断処理を実行するのではなく、電断処理をする前に遊技情報を一通り取得してから電断処理を実行する。特に、電圧保証時間内に遊技情報を一通り取得できるようにすることで、遊技情報の内容を有効なものにできる。ここで、電圧保証時間は、遊技制御手段を正常に動作させることができる範囲の電源電圧を遊技制御手段に供給できる時間である。このように、遊技制御手段が正常に動作している電圧保証時間内に、すなわち、遊技制御手段が安定した状態である時間内に遊技情報を一通り取得するので、処理(b−4)の遊技情報取得処理によって取得した遊技情報の全ての内容を有効なものとして扱うことができる。   That is, even if the voltage of the power supply drops below a predetermined voltage, the power interruption process is not executed immediately. Instead, the game information is acquired before the power interruption process is performed, and then the power interruption process is executed. In particular, the game information can be made effective by allowing the game information to be acquired in a time within the voltage guarantee time. Here, the voltage guarantee time is a time during which the power supply voltage within a range in which the game control means can be normally operated can be supplied to the game control means. As described above, since the game information is obtained in a time during the voltage guarantee time during which the game control means is operating normally, that is, within the time during which the game control means is in a stable state, the processing (b-4) All contents of the game information acquired by the game information acquisition process can be handled as valid.

このように、全ての内容が有効な遊技情報を取得しておくことで、電源回復の処理において、取得しておいた遊技情報を読み出して用いることにより、電断処理をする前の電圧保証時間内の状態を再現することができる。すなわち、処理(d)によって、電源回復の処理では、電源回復時点で送信用記憶手段に記憶されていた遊技情報を全てクリアし、データ記憶手段に記憶させた遊技情報をコマンド送信手段から送信コマンドとして送信する。電源回復時点で送信用記憶手段に遊技情報が記憶されていたとしても、電断によって送信用記憶手段が不安定になり送信用記憶手段の内容が変質(後述する、作業領域の損傷)する場合がある。このような場合であっても、送信用記憶手段を全てクリアするので、変質した送信用記憶手段の内容を用いることがなく、不適切な内容がコマンドとして送信されることを防止できる。   In this way, by acquiring game information that is valid for all contents, the voltage guarantee time before the power interruption process is performed by reading and using the acquired game information in the power recovery process. The state inside can be reproduced. That is, by the process (d), in the power recovery process, all the game information stored in the transmission storage means at the time of power recovery is cleared, and the game information stored in the data storage means is transmitted from the command transmission means to the transmission command. Send as. Even if game information is stored in the transmission storage means at the time of power recovery, the transmission storage means becomes unstable due to power interruption, and the contents of the transmission storage means are altered (the work area is damaged later). There is. Even in such a case, since all the transmission storage means are cleared, the contents of the altered transmission storage means are not used, and it is possible to prevent inappropriate contents from being transmitted as a command.

前述したように、処理(b−4)の遊技情報取得処理によって取得した遊技情報の全ての内容は有効であるので、送信用記憶手段を一旦初期化し、取得した遊技情報をコマンド送信手段から改めて送信するだけで、電断処理をする前の状態を再現することができ、電源回復の処理を簡便にかつ容易にすることができるとともに、処理に必要なプログラムの容量を小さくできる。このように、電断によって送信用記憶手段が不安定になり送信用記憶手段の内容が変質した場合であっても、その影響を受けることなく、電断処理をする前の状態を容易に再現することができる。   As described above, since all the contents of the game information acquired by the game information acquisition process of the process (b-4) are valid, the storage means for transmission is initialized once, and the acquired game information is renewed from the command transmission means. By simply transmitting, the state before the power interruption process can be reproduced, the power recovery process can be easily and easily performed, and the capacity of the program required for the process can be reduced. In this way, even if the transmission storage means becomes unstable due to power interruption and the contents of the transmission storage means are altered, the state before the power interruption processing can be easily reproduced without being affected by this. can do.

より具体的に、本発明の実施の形態の遊技機について以下に説明をする。
電源装置が電圧低下を検知すると電断検知信号をメイン制御装置のNMI端子(ノンマスカブル端子)に出力する。メイン制御装置は電断検知信号が入力されると、ノンマスカブル割込処理を行い、NMIフラグをセットするとともに、メイン処理内における所定の処理にて電断処理を行う。このメイン処理内における所定の処理とは、所定の周期で繰り返し実行されるメイン遊技処理におけるシステムタイマ経過後処理の実行前に行われる。システムタイマ経過後処理とは、システムタイマのタイマ値が所定以上となった後に実行される処理である。
More specifically, the gaming machine according to the embodiment of the present invention will be described below.
When the power supply device detects a voltage drop, it outputs a power interruption detection signal to the NMI terminal (non-maskable terminal) of the main control device. When the power interruption detection signal is input, the main control device performs non-maskable interrupt processing, sets the NMI flag, and performs power interruption processing in a predetermined processing within the main processing. The predetermined process in the main process is performed before the execution of the process after elapse of the system timer in the main game process repeatedly executed at a predetermined cycle. The post-system timer process is a process executed after the timer value of the system timer becomes equal to or greater than a predetermined value.

また、電断処理が実行される前に割り込みが禁止され、NMIフラグの確認処理、電断処理、初期値乱数更新処理が行われた後に再び割り込みが許可されるようになっている。このように、電断処理が実行されるのは、メイン処理内の所定の処理部分のみであるので、電断処理がプログラムの不特定の場所で割り込まれるものに比してプログラムを簡素化することができる。   Further, interrupts are prohibited before the power interruption process is executed, and interrupts are permitted again after the NMI flag confirmation process, the power interruption process, and the initial value random number update process. As described above, since the power interruption process is executed only in a predetermined processing part in the main process, the program is simplified compared to the case where the power interruption process is interrupted at an unspecified place in the program. be able to.

さらに、電断処理が実行されるのは、メイン処理内の所定の処理部分のみであるので、電断が発生したときに最新の遊技情報を取得しておくことで、電断処理に備えることができる。例えば、特別図柄制御処理の実行中に電断が発生したような場合には、従来の遊技機では、電断の発生後、直ちに電断処理が実行され、その時点での遊技情報がバックアップされたうえで電断に備えることになる。一方、本発明による遊技機は、特別図柄制御処理の実行中にNMIフラグがセットされた場合でも直ちに電断処理は実行せず、特別図柄制御処理の後に、普通図柄制御処理等のメイン遊技処理を実行してから予め定められた所定の処理にて電断処理を実行する。このように、メイン遊技処理を一周実行して最新情報を取得してから電断処理に備えることができるので従来の遊技機に比して、電断時の遊技情報をより正確にバックアップすることができる。   Furthermore, since the power interruption process is executed only in a predetermined processing part in the main process, preparing for the power interruption process by acquiring the latest game information when the power interruption occurs. Can do. For example, if a power interruption occurs during the execution of the special symbol control process, the conventional gaming machine executes the power interruption process immediately after the occurrence of the power interruption, and the game information at that time is backed up. I will prepare for power interruption. On the other hand, the gaming machine according to the present invention does not immediately execute the power interruption process even if the NMI flag is set during the execution of the special symbol control process, and after the special symbol control process, the main game process such as the normal symbol control process. After executing the above, the power interruption process is executed by a predetermined process. In this way, it is possible to prepare for the power interruption process after executing the main game process once and acquiring the latest information, so that the game information at the time of power interruption can be backed up more accurately than conventional gaming machines. Can do.

なお、NMIフラグがセットされてからメイン遊技処理を一周実行して電断処理を行うまでの時間は、電圧保証時間内になるようにプログラムが組まれている。   The program is set so that the time from when the NMI flag is set to when the main game process is executed once and the power interruption process is performed is within the voltage guarantee time.

具体的には、ノンマスカブル割込でない所定時間毎に実行される割込処理(たとえば、演出制御コマンド送信割込処理、システムタイマ割込処理など)においては、NMIフラグがセットされた以降は処理を行わず、これらの割込処理から直ちに戻るようにしている。これにより、電断が発生した以降に遊技情報が更新されることがないので、電断が発生した時点の遊技情報を最新の遊技情報として保持させることができる。また、NMIフラグがセットされた後は、演出制御コマンド送信割込処理やシステムタイマ割込処理などの割込処理から直ちに戻るようにした。このため、遊技情報を取得する処理を短時間で済ませることができ、電圧保証時間を超えることがないので、安定した状態で遊技情報を取得することができる。   Specifically, in an interrupt process (for example, an effect control command transmission interrupt process, a system timer interrupt process, etc.) executed at a predetermined time that is not a non-maskable interrupt, the process is performed after the NMI flag is set. It does not perform, but it is made to return immediately from these interruption processes. Thereby, the game information is not updated after the occurrence of the power interruption, so that the game information at the time when the power interruption occurs can be held as the latest game information. Further, after the NMI flag is set, the process immediately returns from interrupt processing such as effect control command transmission interrupt processing and system timer interrupt processing. For this reason, the process of acquiring game information can be completed in a short time, and the voltage guarantee time is not exceeded, so that the game information can be acquired in a stable state.

また、リセットICへの入力電圧が所定値を超えると電源復旧処理が行われる。この電断復旧処理においては、通信データ格納領域のクリア処理、すなわちリングバッファのクリア処理が行われる。そして、電断復帰コマンド送信予約処理において、電源復帰時のコマンドが送信される。ここで、電断時に取得した最新の遊技情報をパラメータとして付加して送信することになる。   Further, when the input voltage to the reset IC exceeds a predetermined value, a power recovery process is performed. In the power interruption recovery process, a communication data storage area clear process, that is, a ring buffer clear process is performed. Then, in the power interruption recovery command transmission reservation process, a command at the time of power recovery is transmitted. Here, the latest game information acquired at the time of power interruption is added as a parameter and transmitted.

このようにしたことにより、電源復帰時における通信の位相合わせを容易にすることができる。たとえば、メイン制御装置とサブ制御装置との間で行われる通信の位相合わせを容易にすることができる。また、Nバイトからなるコマンドを送信している最中に電断が発生したときには、送信途中の未送信部分や、リングバッファ上に残っている未送信コマンドが生じる場合がある。このような場合であっても、電源を復帰するときに初期化(リングバッファのクリア)し、最新の遊技情報をパラメータとして電断復帰コマンドに付加して送信することで、送信済みのコマンドを再び送信することなどの電断によって生ずる不具合を防止することができる。   By doing in this way, the phase alignment of communication at the time of a power return can be made easy. For example, phase alignment of communication performed between the main control device and the sub control device can be facilitated. Further, when a power interruption occurs while a command consisting of N bytes is being transmitted, an untransmitted part being transmitted or an untransmitted command remaining on the ring buffer may occur. Even in such a case, when the power is restored, it is initialized (clearing the ring buffer), and the latest game information is added to the power interruption restoration command as a parameter and transmitted. It is possible to prevent problems caused by power interruption such as transmission again.

<<<パチンコ機1の構成>>>
図1は、本実施の形態によるパチンコ機1の正面図である。
<<< Configuration of Pachinko Machine 1 >>>
FIG. 1 is a front view of a pachinko machine 1 according to the present embodiment.

パチンコ機1の正面には遊技盤2が設けられている。遊技球であるパチンコ球が遊技盤2を流下する。遊技盤2の表面には多数の釘が植設されている。釘は、遊技盤2を流下するパチンコ球の流下方向を変化させる。図1には、一部の釘のみを示した。遊技盤2の下方には上皿3が設けられている。上皿3の下方右側には、発射ハンドル5が設けられている。発射ハンドル5は、レール4を介して遊技盤2へパチンコ球を打ち込む際に遊技者によって操作される。遊技盤2の上方には枠上部飾りランプ6が設けられている。   A game board 2 is provided in front of the pachinko machine 1. Pachinko balls, which are game balls, flow down the game board 2. Many nails are planted on the surface of the game board 2. The nail changes the flow direction of the pachinko ball flowing down the game board 2. FIG. 1 shows only some of the nails. An upper plate 3 is provided below the game board 2. A firing handle 5 is provided on the lower right side of the upper plate 3. The launch handle 5 is operated by the player when a pachinko ball is driven into the game board 2 via the rail 4. An upper frame decoration lamp 6 is provided above the game board 2.

遊技盤2の盤面中央には、特別図柄表示装置10が設けられている。特別図柄表示装置10は、液晶表示装置からなり、特別図柄を識別情報として3列に変動表示する。特別図柄表示装置10の上方には、普通図柄を構成する緑色LED(発光ダイオード)及び赤色LEDが左右に並設された普通図柄表示装置11が設けられている。普通図柄表示装置11の左右には4つのLEDからなる普通図柄始動記憶個数表示部13が設けられている。特別図柄表示装置10の下側には4つのLEDからなる特別図柄始動記憶個数表示部12が設けられている。特別図柄表示装置10の左右には普通図柄始動通過口を構成する通過ゲート14が設けられている。特別図柄表示装置10の下方には特別図柄始動入賞口を構成する普通電動役物15が設けられている。   A special symbol display device 10 is provided in the center of the board surface of the game board 2. The special symbol display device 10 is composed of a liquid crystal display device, and variably displays the special symbols as identification information in three columns. Above the special symbol display device 10, there is provided a normal symbol display device 11 in which green LEDs (light emitting diodes) and red LEDs constituting the normal symbol are arranged side by side. On the left and right of the normal symbol display device 11, there are provided normal symbol start memorized number display units 13 made up of four LEDs. On the lower side of the special symbol display device 10, a special symbol start memory number display unit 12 composed of four LEDs is provided. On the left and right sides of the special symbol display device 10, there are provided passage gates 14 that constitute a normal symbol start passage. Below the special symbol display device 10, a normal electric accessory 15 constituting a special symbol start winning opening is provided.

上皿3の上方には、球貸しボタン7a、返却ボタン7b(図示せず)、選択ボタン7c(図示せず)及び決定ボタン7d(図示せず)が設けられている。球貸しボタン7aは、パチンコ球の貸し出しを受けるときに遊技者によって操作される。パチンコ機1には、カードユニット65(図2参照)が併設されている。パチンコ球は、カードユニット65に挿入されたプリペイドカードの残高の範囲内で貸し出される。返却ボタン7bは、カードユニット65に挿入されているカードを返却させるときに操作される。選択ボタン7cは、特別図柄表示装置10に表示される情報項目を選択するときに操作される。決定ボタン7dは、特別図柄表示装置10に表示される情報項目を決定するときに操作される。   Above the upper plate 3, a ball lending button 7a, a return button 7b (not shown), a selection button 7c (not shown) and a decision button 7d (not shown) are provided. The ball lending button 7a is operated by the player when lending a pachinko ball. The pachinko machine 1 is provided with a card unit 65 (see FIG. 2). Pachinko balls are lent out within the balance of the prepaid card inserted into the card unit 65. The return button 7b is operated when the card inserted in the card unit 65 is returned. The selection button 7c is operated when an information item displayed on the special symbol display device 10 is selected. The determination button 7d is operated when determining an information item to be displayed on the special symbol display device 10.

<<電子回路の構成>>
図2は、本実施の形態によるパチンコ機1の遊技動作を処理制御する電子回路の主な構成を示すブロック図である。
<< Configuration of electronic circuit >>
FIG. 2 is a block diagram showing a main configuration of an electronic circuit that controls the gaming operation of the pachinko machine 1 according to the present embodiment.

この電子回路は、主制御回路、副制御回路、発射制御回路及び払出制御回路などから構成されている。主制御回路は主制御基板30に設けられている。副制御回路は副制御基板40に設けられている。発射制御回路は発射制御基板60に設けられている。払出制御回路は払出制御基板61に設けられている。主制御基板30は、遊技盤2におけるパチンコ遊技の進行に関する電気的制御を行う遊技制御基板である。副制御基板40は、主制御基板30からの制御信号及び遊技情報に基づいて、各種演出装置による遊技演出の電気的制御を行う演出制御基板である。発射制御基板60の発射制御回路及び払出制御基板61の払出制御回路は、主制御基板30からの制御信号及び遊技情報に基づいて、パチンコ球の発射や賞球及び貸球の払い出しを制御する。   This electronic circuit includes a main control circuit, a sub control circuit, a launch control circuit, a payout control circuit, and the like. The main control circuit is provided on the main control board 30. The sub control circuit is provided on the sub control board 40. The launch control circuit is provided on the launch control board 60. The payout control circuit is provided on the payout control board 61. The main control board 30 is a game control board that performs electrical control related to the progress of the pachinko game on the game board 2. The sub-control board 40 is an effect control board that performs electrical control of game effects by various effect devices based on control signals and game information from the main control board 30. The launch control circuit of the launch control board 60 and the payout control circuit of the payout control board 61 control the launch of pachinko balls and the payout of prize balls and rental balls based on the control signal and game information from the main control board 30.

主制御基板30には、遊技処理を制御する制御手段としてメインCPU31が実装されている。メインCPU31は、メインROM(リードオンリメモリ)33やメインRAM(ランダムアクセスメモリ)34を内蔵している。メインROM33には、パチンコ機1の遊技動作を処理制御するためのプログラムが記憶格納されている。メインRAM34は、スタックエリアを有する記憶手段を構成する。スタックエリアには、メインCPU31の制御に用いられるレジスタの値が退避される。   A main CPU 31 is mounted on the main control board 30 as control means for controlling game processing. The main CPU 31 includes a main ROM (read only memory) 33 and a main RAM (random access memory) 34. The main ROM 33 stores a program for processing and controlling the game operation of the pachinko machine 1. The main RAM 34 constitutes storage means having a stack area. In the stack area, register values used for control of the main CPU 31 are saved.

前述した例では、メインROM33及びメインRAM34をメインCPU31に内蔵させる構成を示した。このような構成の他に、リードオンリメモリやランダムアクセスメモリを、メインCPU31とは別に設けて、入出力バス(図示せず)を介してメインCPU31に接続する構成にしてもよい。このような構成とした場合でも、所望のプログラムやデータを読み出したり、各種のデータを書き込んだりすることができる。   In the above-described example, the configuration in which the main ROM 33 and the main RAM 34 are built in the main CPU 31 is shown. In addition to such a configuration, a read-only memory or a random access memory may be provided separately from the main CPU 31 and connected to the main CPU 31 via an input / output bus (not shown). Even in such a configuration, a desired program and data can be read and various data can be written.

本実施の形態では、電源監視IC71は、供給電源の電圧の低下を検出したときには、電断検知信号Dの電圧レベルをハイレベル(H)からローレベル(L)に低下させることで、供給電源の電圧が所定の電圧に低下したことを電断検知信号Dによって示す。電断検知信号Dは、メインCPU31のNMI端子に入力される。電断検知信号Dの電圧レベルがハイレベル(H)からローレベル(L)に立下がったときには、ノンマスカブル割込処理が実行される(図14参照)。具体的には、後述するようにメイン遊技処理が定常的に実行されている間に、電断検知信号Dの電圧レベルがハイレベル(H)からローレベル(L)に立下がったときには、処理は、メイン遊技処理からノンマスカブル割込処理に一時的に移される(図14参照)。   In the present embodiment, when the power supply monitoring IC 71 detects a decrease in the voltage of the power supply, the power supply monitoring IC 71 reduces the voltage level of the power interruption detection signal D from the high level (H) to the low level (L), thereby The power failure detection signal D indicates that the current voltage has decreased to a predetermined voltage. The power interruption detection signal D is input to the NMI terminal of the main CPU 31. When the voltage level of the power interruption detection signal D falls from the high level (H) to the low level (L), a non-maskable interrupt process is executed (see FIG. 14). Specifically, when the voltage level of the power interruption detection signal D falls from a high level (H) to a low level (L) while the main game process is regularly executed as will be described later, Is temporarily transferred from the main game process to the non-maskable interrupt process (see FIG. 14).

このノンマスカブル割込処理によって、NMIフラグがセットされる(ステップS1413)。このように、本実施の形態では、供給電源の電圧が所定の電圧に低下したときには、NMIフラグをセットする処理のみを実行する。また、電断検知信号DをメインCPU31のNMI端子に入力したので、電断検知信号Dの電圧レベルがハイレベル(H)からローレベル(L)に立下がったときには、ノンマスカブル割込処理を必ず実行することができ、NMIフラグを的確にセットできる。   By this non-maskable interrupt process, the NMI flag is set (step S1413). As described above, in the present embodiment, when the voltage of the power supply decreases to a predetermined voltage, only the process of setting the NMI flag is executed. In addition, since the power interruption detection signal D is input to the NMI terminal of the main CPU 31, when the voltage level of the power interruption detection signal D falls from the high level (H) to the low level (L), the non-maskable interrupt process must be performed. The NMI flag can be set accurately.

ノンマスカブル割込処理を実行した後、メイン遊技処理に戻り、復旧するために必要な遊技情報データを取得し、取得した遊技情報データを記憶させる(後述するステップS1111〜S1127の各々の処理)。続いて、メイン遊技処理において、割り込みを禁止した後(ステップS1011)、NMIフラグがセットされている場合には(ステップS1015)、電断処理を実行する(ステップS1017)。また、NMIフラグがセットされていない場合には(ステップS1015)、割り込みを許可し(ステップS1021)、メイン遊技処理を続行する。このように、電断処理を実行するタイミングを調整しているので、電断が発生したときでも、メイン遊技処理に一旦戻って、システムタイマ経過後処理(ステップS1111〜S1127)を実行することができ、電断が発生したときの最新のデータとして遊技情報データを一通り取得することができる。   After executing the non-maskable interrupt process, the process returns to the main game process, acquires game information data necessary for recovery, and stores the acquired game information data (processes of steps S1111 to S1127 described later). Subsequently, in the main game process, after interrupt is prohibited (step S1011), if the NMI flag is set (step S1015), the power interruption process is executed (step S1017). If the NMI flag is not set (step S1015), the interrupt is permitted (step S1021), and the main game process is continued. As described above, since the timing for executing the power interruption process is adjusted, even when a power interruption occurs, it is possible to return to the main game process and execute the post-system timer process (steps S1111 to S1127). The game information data can be obtained as the latest data when the power interruption occurs.

このように、本実施の形態では、電断検知信号が出力されたときに、その時点で既に収集している遊技情報データを直ちに保存するのではなく、一旦、メイン遊技処理に戻ってから、必要な遊技情報データを一通り収集し、その遊技情報データをメインRAM34に保存する。なお、メイン遊技処理に戻って、遊技情報データを一通り収集して、その遊技情報データをメインRAM34に保存するまでの時間は、後述する電圧保証時間内であればよい。後述するように、メインRAM34は、電断が発生して電源が供給されていない場合でも、バックアップ電源(大容量コンデンサ)によって記憶内容が保持される。   As described above, in the present embodiment, when the power interruption detection signal is output, the game information data already collected at that time is not immediately saved, but once the main game process is returned, All necessary game information data is collected, and the game information data is stored in the main RAM 34. It should be noted that the time required to return to the main game process, collect all the game information data, and store the game information data in the main RAM 34 may be within the voltage guarantee time described later. As will be described later, the stored contents of the main RAM 34 are retained by a backup power supply (large-capacity capacitor) even when power interruption occurs and power is not supplied.

その後、電断から復旧させるときには、まず、通信データ格納領域をクリアする(ステップS815)。このようにすることで、電断によって生じた不適切なコマンドが、副制御回路(副制御基板40)に送信されることを防止することができる。また、電源が復旧したときには、電断が生じたときに取得した遊技情報データ(最新情報)を副制御回路に送信するので(ステップS823)、副制御回路は、電断が生じたときにおける各種の遊技情報データの全てを受け取ることができ、副制御回路を電断時(電断前)の状態に的確に戻すことができる。   Thereafter, when recovering from the power interruption, first, the communication data storage area is cleared (step S815). By doing in this way, it is possible to prevent an inappropriate command generated by power interruption from being transmitted to the sub control circuit (sub control board 40). In addition, when the power supply is restored, the game information data (latest information) acquired when the power interruption occurs is transmitted to the sub control circuit (step S823). Can be received, and the sub-control circuit can be accurately returned to the state at the time of power interruption (before power interruption).

パチンコ機1は電源基板70を有する。電源基板70には、供給電源として電源回路が備えられている。電源回路には、AC24Vが入力される。電源回路は、入力されたAC24Vを直流電源に変換し、主制御基板30、副制御基板40、発射制御基板60、払出制御基板61等に供給する。   The pachinko machine 1 has a power supply board 70. The power supply board 70 is provided with a power supply circuit as a supply power supply. AC24V is input to the power supply circuit. The power supply circuit converts the input AC24V into a DC power supply and supplies it to the main control board 30, the sub control board 40, the launch control board 60, the payout control board 61, and the like.

<バックアップ電源(大容量コンデンサ)>
電源基板70には、バックアップ電源として機能する大容量のコンデンサが搭載されている(図示せず)。このコンデンサは、メインCPU31の図示しないバックアップ端子VBBに接続されている。このコンデンサは、電源が供給されている間(電源供給時)に充電される。一方、電源が供給されていない間(電源供給が遮断された電断時)には、充電されたコンデンサから5[V]の電圧が、バックアップ端子VBBを介して、バックアップ電源としてメインCPU31に供給される。このようにすることで、電源が供給されていない間でも、コンデンサからのバックアップ電源によって、メインCPU31のメインRAM34の記憶内容を保持することができる。メインRAM34はスタックエリアを有している。電源が供給されていないときには、スタックエリアにレジスタ値を退避させることで、レジスタの内容を保持することができる。
<Backup power supply (capacitor)>
A large capacity capacitor that functions as a backup power source is mounted on the power supply board 70 (not shown). This capacitor is connected to a backup terminal VBB (not shown) of the main CPU 31. This capacitor is charged while power is supplied (when power is supplied). On the other hand, while power is not supplied (when power supply is interrupted), a voltage of 5 [V] is supplied from the charged capacitor to the main CPU 31 as a backup power supply via the backup terminal VBB. Is done. By doing so, the stored contents of the main RAM 34 of the main CPU 31 can be held by the backup power from the capacitor even when the power is not supplied. The main RAM 34 has a stack area. When power is not supplied, register contents can be held by saving register values in the stack area.

メインCPU31のメインRAM34が「データ記憶手段」に相当し、「遊技を進めるために必要な遊技情報」が記憶される。電断が発生して電源が供給されていない場合でも、バックアップ電源(大容量コンデンサ)によって「遊技情報」は保持される。   The main RAM 34 of the main CPU 31 corresponds to “data storage means” and stores “game information necessary to advance the game”. Even when power interruption occurs and no power is supplied, the “game information” is held by the backup power supply (large-capacity capacitor).

また、電源が遮断された場合には、直ちに、供給電圧がゼロになるのではなく、電圧保証時間内においては、主制御基板30(遊技制御手段)を正常に動作させることができる範囲の電源電圧を主制御基板30に供給する。このように、電圧保証時間は、主制御基板30を正常に動作させることができる範囲の電源電圧を主制御基板30に供給できる時間である。電圧保証時間は、電源基板70を構成するコンデンサ(図示せず)の容量や主制御基板30の消費電力に応じて定まる。したがって、電源基板70を構成するコンデンサの容量を適宜変更することで電圧保証時間を決定することができる。   In addition, when the power supply is cut off, the supply voltage does not immediately become zero, but the power supply within a range in which the main control board 30 (game control means) can be normally operated within the voltage guarantee time. A voltage is supplied to the main control board 30. Thus, the voltage guarantee time is a time during which the power supply voltage in a range in which the main control board 30 can be operated normally can be supplied to the main control board 30. The voltage guarantee time is determined according to the capacity of a capacitor (not shown) constituting the power supply board 70 and the power consumption of the main control board 30. Therefore, the voltage guarantee time can be determined by appropriately changing the capacitance of the capacitor constituting the power supply substrate 70.

<電源監視IC71(電源監視手段)>
電源基板70には、電源監視手段として電源監視IC71が実装されている。電源監視IC71は、電源回路が出力する供給電源の電圧を監視する。電源監視IC71は、供給電源の電圧が所定の電圧よりも低下したときには、主制御基板30のメインCPU31と、払出制御基板61の払出制御CPU68とに、供給電源の電圧が所定の電圧に低下したことを示す電断検知信号Dを出力する。
<Power supply monitoring IC 71 (power supply monitoring means)>
A power supply monitoring IC 71 is mounted on the power supply board 70 as power supply monitoring means. The power supply monitoring IC 71 monitors the voltage of the power supply output from the power supply circuit. When the voltage of the power supply drops below a predetermined voltage, the power supply monitoring IC 71 reduces the voltage of the power supply to a predetermined voltage on the main CPU 31 of the main control board 30 and the payout control CPU 68 on the payout control board 61. A power interruption detection signal D indicating that is output.

図3は、電源監視IC71の端子の構成を示す図である。電源監視IC71は、VSB端子及びRESET端子を有する。RESET端子は、主制御基板30のメインCPU31と、払出制御基板61の払出制御CPU68との各NMI端子に接続されている。   FIG. 3 is a diagram illustrating a configuration of terminals of the power supply monitoring IC 71. The power monitoring IC 71 has a VSB terminal and a RESET terminal. The RESET terminal is connected to each NMI terminal of the main CPU 31 of the main control board 30 and the payout control CPU 68 of the payout control board 61.

電源基板70の電源回路は、定常状態では、供給されたAC24Vに基づいて、電圧33[V]の供給電源を生成する。電源回路から出力される供給電源の電圧が17.2[V]よりも下回った場合には、図4(a)に示すように、電源監視IC71のVSB端子に入力される電源電圧Vも33[V]から17.2[V]よりも低くなる。電源監視IC71は、VSB端子に入力される電源電圧Vが低下したことによって、供給電源の電圧の低下を検出する。電源監視IC71は、供給電源の電圧の低下を検出したときには、図4(b)に示すように、電断検知信号Dの電圧レベルをハイレベル(H)からローレベル(L)に低下させて、電断検知信号DをRESET端子から出力する。電断検知信号Dは、前述した検出信号として、メインCPU31や払出制御CPU68などの各NMI端子に出力される。メインCPU31及び払出制御CPU68は、これらのNMI端子に入力された電断検知信号Dの立下りを検出すると、ノンマスカブル処理(図14参照)を実行する。   In a steady state, the power supply circuit of the power supply board 70 generates a supply power with a voltage of 33 [V] based on the supplied AC24V. When the voltage of the power supply output from the power supply circuit is lower than 17.2 [V], the power supply voltage V input to the VSB terminal of the power supply monitoring IC 71 is 33 as shown in FIG. [V] is lower than 17.2 [V]. The power monitoring IC 71 detects a decrease in the voltage of the power supply due to a decrease in the power supply voltage V input to the VSB terminal. When the power supply monitoring IC 71 detects a decrease in the voltage of the power supply, as shown in FIG. 4B, the power supply monitoring IC 71 reduces the voltage level of the power interruption detection signal D from the high level (H) to the low level (L). The power interruption detection signal D is output from the RESET terminal. The power interruption detection signal D is output to each NMI terminal such as the main CPU 31 or the payout control CPU 68 as the detection signal described above. When the main CPU 31 and the payout control CPU 68 detect the fall of the power interruption detection signal D input to these NMI terminals, the main CPU 31 and the payout control CPU 68 execute non-maskable processing (see FIG. 14).

また、電源が投入されたり復帰されたりして、電源電圧Vの値が17.2[V]を上回ったときには、電源監視IC71のCT端子(図3参照)に接続されたコンデンサの充電が開始される。コンデンサが充電されてCT端子に出力される電圧が所定の電圧まで上昇すると、図4(b)に示すように、電断検知信号Dは、電源電圧Vの値が17.2[V]を上回った後、所定時間遅れて、電圧レベルがローレベル(L)からハイレベル(H)に上がる。   Further, when the power supply voltage V exceeds 17.2 [V] after the power is turned on or off, charging of the capacitor connected to the CT terminal (see FIG. 3) of the power supply monitoring IC 71 starts. Is done. When the capacitor is charged and the voltage output to the CT terminal rises to a predetermined voltage, as shown in FIG. 4B, the power interruption detection signal D has a value of the power supply voltage V of 17.2 [V]. After exceeding the voltage level, the voltage level rises from a low level (L) to a high level (H) with a predetermined time delay.

メインCPU31は、アクセス許可制御手段を構成する。メインCPU31は、電源回路から電源供給が開始されて制御を開始した後、電源監視IC71のRESET端子からNMI端子に入力された電断検知信号Dを監視する。メインCPU31は、電断検知信号Dの立下りがあったことを検出した場合には、定常状態で33[V]である供給電源の電圧が、所定の電圧、すなわち17.2[V]よりも低下しない状態を確保して、メインRAM34へのアクセスを許可する(図7のステップS719参照)。   The main CPU 31 constitutes access permission control means. The main CPU 31 monitors the power interruption detection signal D input from the RESET terminal of the power monitoring IC 71 to the NMI terminal after power supply from the power supply circuit is started and control is started. When the main CPU 31 detects that the power failure detection signal D has fallen, the voltage of the power supply, which is 33 [V] in a steady state, is greater than a predetermined voltage, that is, 17.2 [V]. In such a state, the state is not lowered, and access to the main RAM 34 is permitted (see step S719 in FIG. 7).

なお、定常状態で33[V]である供給電源の電圧の低下を検出する閾値を17.2[V]としたのは、次の理由による。パチンコ機1においては、遊技球の検出のために、後述する各スイッチ14s、15s及び16sを用いる。これらのスイッチ14s、15s及び16sから電圧信号が出力されてメインCPU31へ入力される。メインCPU31は、入力された電圧信号の電圧レベルがハイレベル(H)からローレベル(L)と立下がったことによって、各スイッチ14s、15s又は16sが遊技球を検出したと判断する。これらのスイッチ14s、15s及び16sから出力される電圧信号の電圧は、ハイレベル(H)で12[V]である。したがって、定常状態で33[V]である供給電源の電圧が12[V]を下回ったときには、スイッチ14s、15s及び16sでのスイッチ入力が無いにもかかわらず、スイッチ入力があったと誤って検出する場合がある。このため、供給電源の低下を検出するための閾値VSHを12[V]よりも高い17.2[V]とすることによって、このような誤検出を防止している。 The reason why the threshold value for detecting a decrease in the voltage of the power supply, which is 33 [V] in the steady state, is set to 17.2 [V] is as follows. In the pachinko machine 1, switches 14s, 15s, and 16s, which will be described later, are used to detect the game ball. Voltage signals are output from these switches 14s, 15s and 16s and input to the main CPU 31. The main CPU 31 determines that each switch 14s, 15s, or 16s has detected a game ball when the voltage level of the input voltage signal falls from a high level (H) to a low level (L). The voltage of the voltage signal output from these switches 14s, 15s and 16s is 12 [V] at the high level (H). Therefore, when the voltage of the power supply, which is 33 [V] in a steady state, falls below 12 [V], it is erroneously detected that there is a switch input even though there is no switch input in the switches 14s, 15s and 16s. There is a case. For this reason, such a false detection is prevented by setting the threshold value V SH for detecting a decrease in the power supply to 17.2 [V] higher than 12 [V].

<リセットIC32>
図2に示すように、メインCPU31はSRST端子を有する。このSRST端子は、主制御基板30に実装されているリセットIC32のRESET端子に接続されている。
<Reset IC 32>
As shown in FIG. 2, the main CPU 31 has an SRST terminal. This SRST terminal is connected to the RESET terminal of the reset IC 32 mounted on the main control board 30.

図5は、リセットIC32の端子の構成を示す図である。図5に示すように、リセットIC32は、VCC端子、CK端子、TC端子、RESET端子などの端子を有する。VCC端子には、図6(a)に示す入力電圧Vccが印加される。CK端子には、図6(b)に示すウォッチドッグクリア信号Cが入力される。TC端子には、0.22[μF]のコンデンサが充電されることによって、図6(c)に示すウォッチドッグタイマ信号Tが入力される。RESET端子は、システムリセット信号RをメインCPU31に出力する。   FIG. 5 is a diagram illustrating the configuration of the terminals of the reset IC 32. As shown in FIG. 5, the reset IC 32 has terminals such as a VCC terminal, a CK terminal, a TC terminal, and a RESET terminal. An input voltage Vcc shown in FIG. 6A is applied to the VCC terminal. A watchdog clear signal C shown in FIG. 6B is input to the CK terminal. The watchdog timer signal T shown in FIG. 6C is input to the TC terminal by charging a capacitor of 0.22 [μF]. The RESET terminal outputs a system reset signal R to the main CPU 31.

リセットIC32のVCC端子には、定常状態では、電源基板70の電源回路から5[V]の入力電圧Vccが供給される。このVCC端子に印加される入力電圧Vccが4.3[V]を上回った場合(図6(a)参照)には、図6(c)に示すように、リセットIC32のTC端子に接続されたコンデンサに充電が開始される。さらに、TC端子に入力されるウォッチドッグタイマ信号Tは、コンデンサへの充電が開始された後、遅延時間を経過したときに所定電圧に達する(図6(c)参照)。この遅延時間は、TC端子に接続されたコンデンサの容量によって定めることができる。たとえば、TC端子に接続されたコンデンサの容量0.22[μF]を1000倍した値を、遅延時間220[msec]とすることができる。   The VCC terminal of the reset IC 32 is supplied with an input voltage Vcc of 5 [V] from the power supply circuit of the power supply board 70 in a steady state. When the input voltage Vcc applied to the VCC terminal exceeds 4.3 [V] (see FIG. 6A), it is connected to the TC terminal of the reset IC 32 as shown in FIG. 6C. The capacitor starts charging. Further, the watchdog timer signal T input to the TC terminal reaches a predetermined voltage when a delay time elapses after charging of the capacitor is started (see FIG. 6C). This delay time can be determined by the capacitance of the capacitor connected to the TC terminal. For example, a value obtained by multiplying the capacitance 0.22 [μF] of the capacitor connected to the TC terminal by 1000 can be set as the delay time 220 [msec].

ウォッチドッグタイマ信号Tがこの所定電圧に達すると、図6(d)に示すように、リセットIC32は、そのRESET端子から出力するシステムリセット信号Rの電圧レベルをローレベル(L)からハイレベル(H)にする。システムリセット信号RはメインCPU31のSRST端子に入力される。メインCPU31のSRST端子に入力されたシステムリセット信号Rの電圧レベルがローレベル(L)からハイレベル(H)になったことによって、メインCPU31のシステムリセット状態が解除される。メインCPU31のシステムリセット状態が解除されると、メインCPU31はメインROM33に記憶されたプログラムに従って後述するメイン処理(図7〜図11参照)の制御を開始する。   When the watchdog timer signal T reaches the predetermined voltage, as shown in FIG. 6D, the reset IC 32 changes the voltage level of the system reset signal R output from the RESET terminal from the low level (L) to the high level ( H). The system reset signal R is input to the SRST terminal of the main CPU 31. When the voltage level of the system reset signal R input to the SRST terminal of the main CPU 31 is changed from the low level (L) to the high level (H), the system reset state of the main CPU 31 is released. When the system reset state of the main CPU 31 is released, the main CPU 31 starts control of main processing (see FIGS. 7 to 11) described later according to a program stored in the main ROM 33.

メインCPU31は、その制御を開始すると、後述するシステムタイマ割込処理(図13参照)を2[msec]毎に実行する。メインCPU31は、このシステムタイマ割込処理によって、図6(c)に示すように、リセットIC32のCK端子にウォッチドッグクリア信号Cを出力する。このウォッチドッグクリア信号Cは、システムタイマ割込処理によって2[msec]毎に電圧レベルがハイレベル(H)とローレベル(L)とに交互に変化する信号である。ウォッチドッグタイマ信号Tは、リセットIC32のCK端子に入力されるウォッチドッグクリア信号Cの立ち下がり変化時(ハイレベル(H)→ローレベル(L))にリセットされて、電圧レベルがゼロに低下する(図6(c)参照)。その後、ウォッチドッグタイマ信号Tの電圧レベルは、TC端子に接続されているコンデンサへの充電に伴って再度上昇する。さらにその後に、リセットIC32のCK端子に入力されるウォッチドッグクリア信号Cによって、ウォッチドッグタイマ信号Tは再びリセットされる。その後、ウォッチドッグタイマ信号Tの電圧レベルがゼロに低下した後、再度コンデンサの充電に伴って電圧レベルを再度上昇させる。   When starting the control, the main CPU 31 executes a system timer interrupt process (see FIG. 13) described later every 2 [msec]. The main CPU 31 outputs a watchdog clear signal C to the CK terminal of the reset IC 32 as shown in FIG. The watchdog clear signal C is a signal whose voltage level alternately changes between a high level (H) and a low level (L) every 2 [msec] by the system timer interrupt process. The watchdog timer signal T is reset when the watchdog clear signal C input to the CK terminal of the reset IC 32 falls (high level (H) → low level (L)), and the voltage level drops to zero. (See FIG. 6C). Thereafter, the voltage level of the watchdog timer signal T rises again as the capacitor connected to the TC terminal is charged. Thereafter, the watchdog timer signal T is reset again by the watchdog clear signal C input to the CK terminal of the reset IC 32. Thereafter, after the voltage level of the watchdog timer signal T has decreased to zero, the voltage level is increased again as the capacitor is charged again.

したがって、ウォッチドッグクリア信号Cが、システムタイマ割込処理によってメインCPU31から出力されて、リセットIC32のCK端子に入力されている限り、ウォッチドッグタイマ信号Tは所定電圧に達しない。この場合に、システムリセット信号が、リセットIC32のRESET端子から出力されて、メインCPU31のSRST端子に入力されることはない。   Therefore, as long as the watchdog clear signal C is output from the main CPU 31 by the system timer interrupt process and is input to the CK terminal of the reset IC 32, the watchdog timer signal T does not reach a predetermined voltage. In this case, the system reset signal is not output from the RESET terminal of the reset IC 32 and is not input to the SRST terminal of the main CPU 31.

これに対して、メインCPU31の制御が何らかの原因によって暴走したときには、ウォッチドッグクリア信号Cは、メインCPU31から出力されず、リセットIC32のCK端子に入力されなくなる。このような場合には、図6(c)に示すように、ウォッチドッグタイマ信号Tは、所定電圧に達し、これによって、図6(d)に示すように、システムリセット信号Rの電圧レベルはハイレベル(H)からローレベル(L)に変化する。   On the other hand, when the control of the main CPU 31 runs away for some reason, the watchdog clear signal C is not output from the main CPU 31 and is not input to the CK terminal of the reset IC 32. In such a case, as shown in FIG. 6 (c), the watchdog timer signal T reaches a predetermined voltage, and as a result, the voltage level of the system reset signal R is set as shown in FIG. 6 (d). It changes from high level (H) to low level (L).

システムリセット信号Rは、メインCPU31のSRST端子に入力される。システムリセット信号Rの電圧レベルの変化(ハイレベル(H)→ローレベル(L))によって、メインCPU31に所定時間システムリセットがかけられる。システムリセットにより、メインCPU31は処理をプログラムの先頭に戻し、メイン処理を再開する。すなわち、メインCPU31が暴走したときには、自動的にシステムリセットがかかってメインCPU31の処理が再開される。   The system reset signal R is input to the SRST terminal of the main CPU 31. A system reset is applied to the main CPU 31 for a predetermined time by a change in the voltage level of the system reset signal R (high level (H) → low level (L)). By the system reset, the main CPU 31 returns the process to the beginning of the program and resumes the main process. That is, when the main CPU 31 runs out of control, the system is automatically reset and the processing of the main CPU 31 is resumed.

図2に示すように、メインCPU31には、I/Oポート(入出力ポート)35と、コマンド出力ポート36とが接続されている。I/Oポート35は、後述する各種スイッチやソレノイド等の周辺装置とメインCPU31との間で信号を授受するためのものである。また、コマンド出力ポート36は、副制御基板40の副制御回路や、発射制御基板60の発射制御回路や、払出制御基板61の払出制御回路に、制御信号や遊技情報を含んだコマンドを出力するためのものである。I/Oポート35及びコマンド出力ポート36を介して、メインCPU31から送出される制御信号や遊技情報が、副制御基板40、発射制御基板60及び払出制御基板61等の各制御基板や周辺装置に送信される。   As shown in FIG. 2, an I / O port (input / output port) 35 and a command output port 36 are connected to the main CPU 31. The I / O port 35 is for exchanging signals between peripheral devices such as various switches and solenoids described later and the main CPU 31. The command output port 36 outputs a command including a control signal and game information to the sub control circuit of the sub control board 40, the launch control circuit of the launch control board 60, and the payout control circuit of the payout control board 61. Is for. Control signals and game information sent from the main CPU 31 via the I / O port 35 and the command output port 36 are sent to each control board such as the sub-control board 40, the launch control board 60, and the payout control board 61 and peripheral devices. Sent.

<各種のスイッチ>
主制御基板30には、通過ゲートスイッチ14sや始動入賞口スイッチ15sが接続されている。通過ゲートスイッチ14sは、前述した通過ゲート14の内側に設けられ、パチンコ球が通過ゲート14を通過するのを検出する。始動入賞口スイッチ15sは、普通電動役物15に入賞したパチンコ球を検出する。
<Various switches>
The main control board 30 is connected with a passing gate switch 14s and a start winning a prize opening switch 15s. The passage gate switch 14 s is provided inside the passage gate 14 described above, and detects that the pachinko ball passes through the passage gate 14. The start winning port switch 15s detects a pachinko ball that has won the ordinary electric accessory 15.

主制御基板30には、カウントスイッチ16sや一般入賞口スイッチ17sが接続されている。カウントスイッチ16sは、大入賞口16に入賞したパチンコ球を検出する。一般入賞口スイッチ17sは、一般入賞口17へ入賞したパチンコ球を検出する。   The main control board 30 is connected to a count switch 16s and a general winning a prize port switch 17s. The count switch 16 s detects a pachinko ball that has won the grand prize opening 16. The general winning opening switch 17 s detects a pachinko ball that has won the general winning opening 17.

主制御基板30には、始動入賞口ソレノイド15vや大入賞口ソレノイド16vなどが接続されている。始動入賞口ソレノイド15vは、アクチュエータとして、普通電動役物15の球受入口を拡張する。大入賞口ソレノイド16vは、大入賞口16の扉を開閉する。   The main control board 30 is connected to a start winning port solenoid 15v, a large winning port solenoid 16v, and the like. The start winning opening solenoid 15v expands the ball receiving port of the ordinary electric accessory 15 as an actuator. The big prize opening solenoid 16v opens and closes the door of the big prize opening 16.

主制御基板30には、バックアップクリアスイッチ基板が接続されている。バックアップクリアスイッチ基板には、バックアップクリアスイッチ19が実装されている。バックアップクリアスイッチ19は、バックアップクリア信号を出力する。バックアップクリア信号は、主制御基板30の主制御回路を構成するメインCPU31に備えられたメインRAM34や、払出制御基板61の払出制御回路を構成するRAM(図示せず)のバックアップ内容のクリアを指令するための信号である。   A backup clear switch board is connected to the main control board 30. A backup clear switch 19 is mounted on the backup clear switch board. The backup clear switch 19 outputs a backup clear signal. The backup clear signal instructs the clearing of the backup contents of the main RAM 34 provided in the main CPU 31 constituting the main control circuit of the main control board 30 and the RAM (not shown) constituting the payout control circuit of the payout control board 61. It is a signal to do.

前述した各スイッチ14s、16s及び17s、並びに各アクチュエータ15v及び16vは、盤面中継基板80を介して主制御基板30に接続されている。各スイッチ14s、15s、16s及び17sがパチンコ球を検出すると、その検出信号は主制御基板30のメインCPU31に入力される。メインCPU31は、入力された検出信号に応じて、前述した各アクチュエータ15v及び16vを駆動制御する。   Each of the switches 14s, 16s and 17s, and the actuators 15v and 16v described above is connected to the main control board 30 via the panel relay board 80. When each of the switches 14s, 15s, 16s, and 17s detects a pachinko ball, the detection signal is input to the main CPU 31 of the main control board 30. The main CPU 31 drives and controls each of the actuators 15v and 16v described above according to the input detection signal.

<副制御基板40>
副制御基板40は、特別図柄表示装置10(以下、(LCD10と称する。)に接続されている。副制御基板40は、LCD10における画像表示を行う画像表示制御を行う。また、副制御基板40は、ランプ・LED48及びスピーカ49に接続されている。副制御基板40は、遊技状態に応じて、ランプ・LED48の発光を制御する電飾制御と、スピーカ49から効果音を放音させる音制御とを行う。ランプ・LED48は、枠上部飾りランプ6と、普通図柄表示装置11と、特別図柄始動記憶個数表示部12と、普通図柄始動記憶個数表示部13等を有する。
<Sub control board 40>
The sub control board 40 is connected to a special symbol display device 10 (hereinafter referred to as “LCD 10”), and the sub control board 40 performs image display control for displaying images on the LCD 10. Is connected to the lamp / LED 48 and the speaker 49. The sub-control board 40 controls the lighting of the lamp / LED 48 according to the gaming state, and the sound control for emitting the sound effect from the speaker 49. The lamp / LED 48 includes an upper frame decoration lamp 6, a normal symbol display device 11, a special symbol start memory number display unit 12, a normal symbol start memory number display unit 13, and the like.

副制御基板40には、サブCPU41、プログラムROM42及びワークRAM43が実装されている。サブCPU41は、中継基板37及びコマンド入力ポート47を介して、主制御基板30から送信されたコマンドを受信する。サブCPU41は、受信したコマンドを解釈し、画像制御回路44、ランプ制御回路45及び音声制御回路46へ制御指令を発する。プログラムROM42には、制御プログラムが記憶格納されている。この制御プログラムは、LCD10やランプ・LED48やスピーカ49の動作をサブCPU41が処理制御するためのプログラムである。ワークRAM43は、サブCPU41が、プログラムROM42に記憶されている制御プログラムに従って処理制御するときにおける一時的な記憶手段となる。   A sub CPU 41, a program ROM 42, and a work RAM 43 are mounted on the sub control board 40. The sub CPU 41 receives a command transmitted from the main control board 30 via the relay board 37 and the command input port 47. The sub CPU 41 interprets the received command and issues a control command to the image control circuit 44, the lamp control circuit 45, and the sound control circuit 46. The program ROM 42 stores a control program. This control program is a program for the sub CPU 41 to control the operations of the LCD 10, the lamp / LED 48, and the speaker 49. The work RAM 43 serves as a temporary storage unit when the sub CPU 41 performs process control according to the control program stored in the program ROM 42.

<画像制御回路44>
画像制御回路44は、サブCPU41からの制御指令に応じてLCD10に表示するための画像データを生成する。メインCPU31は、普通電動役物15へパチンコ球が入賞して始動入賞が発生すると大当り判定を行い、その大当り判定の結果を副制御回路に送信する。副制御回路は、この大当り判定の結果に対応する態様でLCD10に特別図柄を順次停止表示させる。副制御回路は、左図柄と右図柄とが同一図柄で停止表示されてリーチ状態になったときには、特別図柄及び演出画像を用いてLCD10でリーチ演出を行う。ランプ制御回路45は、サブCPU41からの駆動信号により、パチンコ機1の遊技状態に応じてランプ・LED48の発光を制御する。音声制御回路46は、サブCPU41からの駆動信号により、スピーカ49を制御する。
<Image control circuit 44>
The image control circuit 44 generates image data to be displayed on the LCD 10 in accordance with a control command from the sub CPU 41. The main CPU 31 determines a big hit when a pachinko ball wins the normal electric accessory 15 and a start win occurs, and transmits the result of the big hit determination to the sub-control circuit. The sub control circuit sequentially stops and displays the special symbols on the LCD 10 in a manner corresponding to the result of the jackpot determination. The sub-control circuit performs a reach effect on the LCD 10 using the special symbol and the effect image when the left symbol and the right symbol are stopped and displayed in the same symbol and the reach state is reached. The lamp control circuit 45 controls the light emission of the lamp / LED 48 according to the gaming state of the pachinko machine 1 according to the drive signal from the sub CPU 41. The sound control circuit 46 controls the speaker 49 by a drive signal from the sub CPU 41.

プログラムROM42は、複数の演出態様をパターン化して記憶した演出記憶手段を構成する。主制御基板30におけるメインCPU31、メインROM33及びメインRAM34と、副制御基板40におけるサブCPU41、プログラムROM42及びワークRAM43とは、演出決定手段を構成する。演出決定手段は、演出記憶手段に記憶された演出態様の中から、実行させる演出に応じた演出態様を決定する。また、LCD10及び画像制御回路44と、ランプ・LED48及びランプ制御回路45と、スピーカ49及び音声制御回路46とは、演出手段を構成する。演出手段は、演出決定手段によって決定された演出態様に対応した演出を実行する。   The program ROM 42 constitutes an effect storage unit that stores a plurality of effect modes in a pattern. The main CPU 31, main ROM 33 and main RAM 34 on the main control board 30 and the sub CPU 41, program ROM 42 and work RAM 43 on the sub control board 40 constitute an effect determining means. The effect determining unit determines an effect mode corresponding to the effect to be executed from the effect modes stored in the effect storage unit. The LCD 10 and the image control circuit 44, the lamp / LED 48 and the lamp control circuit 45, the speaker 49 and the sound control circuit 46 constitute a production means. The effect means executes an effect corresponding to the effect mode determined by the effect determining means.

<発射制御基板60>
発射制御基板60には、発射装置64が接続されている。発射装置64は、発射ハンドル5の操作に応じて駆動される。発射制御基板60によって発射制御回路が構成される。発射制御回路は、遊技者による発射ハンドル5の操作に応じて発射装置64を駆動制御し、パチンコ球を遊技盤2へ発射させる。
<Launch control board 60>
A launch device 64 is connected to the launch control board 60. The firing device 64 is driven in accordance with the operation of the firing handle 5. The firing control board 60 constitutes a firing control circuit. The launch control circuit drives and controls the launch device 64 according to the operation of the launch handle 5 by the player, and launches the pachinko ball to the game board 2.

<払出制御基板61>
払出制御基板61には、払出制御に関わる遊技処理を制御する制御手段としてCPU68が実装されている。払出制御基板61には、賞球及び貸球を払い出す払出装置63が接続されている。払出制御基板61で構成された払出制御回路は、各種入賞に応じて枠中継基板62を介して主制御基板30から出力される払出コマンドを受信する。払出制御回路は、受信払出コマンドに応じて、払出装置63を駆動制御して賞球を払い出させる。
<Discharge control board 61>
A CPU 68 is mounted on the payout control board 61 as a control means for controlling game processing related to payout control. The payout control board 61 is connected to a payout device 63 for paying out winning balls and rental balls. The payout control circuit configured by the payout control board 61 receives a payout command output from the main control board 30 via the frame relay board 62 according to various winnings. In accordance with the received payout command, the payout control circuit drives and controls the payout device 63 to pay out the winning ball.

払出制御基板61には、パチンコ球の球貸しを要求するカードユニット65が接続されている。カードユニット65には、前述した球貸しボタン7a及び返却ボタン7bを備えた球貸し操作パネル66が接続されている。カードユニット65は、球貸しボタン7a及び返却ボタン7bの操作に応じて払出制御基板61の払出制御回路との間で通信を行う。払出制御回路は、カードユニット65から出力される信号に応じて払出装置63を駆動制御して、貸球を払い出させる。   Connected to the payout control board 61 is a card unit 65 that requests lending of pachinko balls. Connected to the card unit 65 is a ball lending operation panel 66 including the above-described ball lending button 7a and return button 7b. The card unit 65 communicates with the payout control circuit of the payout control board 61 according to the operation of the ball lending button 7a and the return button 7b. The payout control circuit drives and controls the payout device 63 in accordance with a signal output from the card unit 65, and pays out a rented ball.

<<メイン処理>>
図7〜図11は、メイン処理を示すフローチャートである。このメイン処理は、主制御基板30のメインCPU31によって実行される。
<< Main processing >>
7 to 11 are flowcharts showing the main process. This main process is executed by the main CPU 31 of the main control board 30.

最初に、メインCPU31は、ウォッチドッグタイマの初期設定をする(ステップS711)   First, the main CPU 31 initializes the watchdog timer (step S711).

次に、メインCPU31は、入出力ポートの初期設定をする(ステップS713)。   Next, the main CPU 31 performs initial setting of input / output ports (step S713).

次に、メインCPU31は、電断検知状態であるか否かを判断する(ステップS715)。電断検知状態であるか否かの判断は、入力ポートの内容が、電断検知信号ビット(ビット0)が1になるまで待機し、電断検知信号ビット(ビット0)が1になったときの入力ポートの内容を「初期入力ポート値」とする。この入力ポートの内容は、電源監視IC71から出力される電断検知信号Dの電圧レベルによって定まる。メインCPU31は、ステップS715の判断処理で電断検知状態であると判別したときには(YES)、ステップS715の処理を繰り返す。   Next, the main CPU 31 determines whether or not it is in a power interruption detection state (step S715). Whether or not the power failure detection state is present is determined by waiting until the power failure detection signal bit (bit 0) becomes 1 and the power failure detection signal bit (bit 0) becomes 1. The contents of the input port at that time are defined as “initial input port value”. The contents of this input port are determined by the voltage level of the power interruption detection signal D output from the power supply monitoring IC 71. When the main CPU 31 determines in the determination process in step S715 that the power interruption detection state is present (YES), the main CPU 31 repeats the process in step S715.

一方、メインCPU31は、ステップS715の判断処理で電断検知状態でないと判別したときには(NO)、サブ制御受信受付ウエイト処理を実行する(ステップS717)。このサブ制御受信受付ウエイト処理は、ウエイト時間、たとえば500[msec]をメインRAM34にセットし、ウエイト時間が経過するまで待機する処理である。ウエイト時間は、副制御基板40における初期設定処理が終了するまで、メインCPU31の処理を待機させるためのものである。   On the other hand, when the main CPU 31 determines in the determination process of step S715 that it is not in the power interruption detection state (NO), it executes a sub-control reception acceptance wait process (step S717). This sub-control reception acceptance wait process is a process of setting a wait time, for example, 500 [msec] in the main RAM 34 and waiting until the wait time elapses. The wait time is for waiting for the process of the main CPU 31 until the initial setting process in the sub-control board 40 is completed.

次に、メインCPU31は、RWM(リードライトメモリ)への書き込みを許可する(ステップS719)。なお、本明細書において、RWM(リードライトメモリ)は、前述したメインRAM34等の読み書き可能なメモリを意味する。このRWM(リードライトメモリ)には、後述する遊技情報データ、すなわち、ステップS1111〜S1127の各々の処理によって取得された各種のデータ(「遊技を進めるために必要な遊技情報」)が記憶される。また、RWM(リードライトメモリ)は、電源が供給されていない間でも、コンデンサからのバックアップ電源によって記憶内容を保持することができる。   Next, the main CPU 31 permits writing to the RWM (read / write memory) (step S719). In this specification, RWM (read / write memory) means a readable / writable memory such as the main RAM 34 described above. In this RWM (read / write memory), game information data to be described later, that is, various data (“game information necessary for advancing the game”) acquired by each processing in steps S1111-S1127 is stored. . Further, the RWM (read / write memory) can hold the stored contents by the backup power supply from the capacitor even when the power is not supplied.

次に、メインCPU31は、スタックポインタに初期設定アドレス、たとえば8000Hをセットする(ステップS721)。   Next, the main CPU 31 sets an initial setting address, for example, 8000H in the stack pointer (step S721).

次に、メインCPU31は、バックアップスイッチがオンであるか否かを判断する(ステップS723)。前述したように、バックアップクリアスイッチ19からバックアップクリア信号が出力される。ステップS723は、バックアップクリア信号がバックアップクリアスイッチ19から出力されたか否かを判断する処理である。   Next, the main CPU 31 determines whether or not the backup switch is on (step S723). As described above, the backup clear signal is output from the backup clear switch 19. Step S723 is processing to determine whether or not a backup clear signal is output from the backup clear switch 19.

メインCPU31は、ステップS723の判断処理でバックアップスイッチがオンでないと判別したときには(NO)、電断検知フラグがセットされているか否かを判断する(ステップS725)。電断検知フラグは、電断が発生し、後述する電断処理(図15参照)を実行したことを示すフラグである。電断検知フラグは、図15のステップS1513の処理でセットされる。   When the main CPU 31 determines that the backup switch is not on in the determination process in step S723 (NO), the main CPU 31 determines whether or not the power interruption detection flag is set (step S725). The power interruption detection flag is a flag indicating that a power interruption has occurred and a power interruption process described later (see FIG. 15) has been executed. The power interruption detection flag is set in the process of step S1513 in FIG.

メインCPU31は、ステップS725の判断処理で電断検知フラグがセットされていると判別したときには(YES)、作業領域の損傷をチェックし(ステップS727)、作業領域が損傷しているか否かを判断する(ステップS729)。作業領域の損傷は、電断によって供給される電圧が低下して、作業領域の状態が不安定になり作業領域の内容が変質することをいう。   When the main CPU 31 determines that the power interruption detection flag is set in the determination process in step S725 (YES), the main CPU 31 checks the work area for damage (step S727) and determines whether the work area is damaged. (Step S729). The damage to the work area means that the voltage supplied by the power interruption decreases, the work area becomes unstable, and the contents of the work area change.

メインCPU31は、作業領域が損傷していないと判別したときには(NO)、図8に示すステップS811に処理を移して電断復旧処理を実行する。また、メインCPU31は、ステップS723の判断処理でバックアップスイッチがオンであると判別したとき(YES)、ステップS725の判断処理で電断検知フラグがセットされていないと判別したとき(NO)、又はステップS729の判断処理で作業領域が損傷していると判別したときには(YES)、図9に示すステップS911に処理を移して電源投入時処理を実行する。図9に示すステップS911〜S921の処理によって、遊技機に電源が投入されたときの処理が実行される。この処理は、バックアップスイッチが押下されている状態である場合(ステップS723で「YES」と判断した場合)には、主として、RWMを初期化するときの処理が行われる。   When the main CPU 31 determines that the work area is not damaged (NO), the main CPU 31 shifts the process to step S811 shown in FIG. The main CPU 31 determines that the backup switch is on in the determination process in step S723 (YES), determines that the power failure detection flag is not set in the determination process in step S725 (NO), or If it is determined in step S729 that the work area is damaged (YES), the process proceeds to step S911 shown in FIG. By the processing of steps S911 to S921 shown in FIG. 9, processing when the gaming machine is turned on is executed. This process is mainly performed when the RWM is initialized when the backup switch is being pressed (when “YES” is determined in the step S723).

<電源断復旧処理>
メインCPU31は、図7のステップS729の判断処理で、作業領域が損傷していないと判別したときには(NO)、適切なスタックポインタに補正する(ステップS811)。この処理は、後述する電断処理(図15)で、たとえば、スタックポインタをメインRAM34に退避させたような場合には、そのスタックポインタを復帰する処理である。
<Power failure recovery processing>
When the main CPU 31 determines that the work area is not damaged in the determination processing in step S729 of FIG. 7 (NO), the main CPU 31 corrects the stack pointer to an appropriate stack pointer (step S811). This process is a process of restoring the stack pointer when the stack pointer is saved in the main RAM 34, for example, in a power interruption process (FIG. 15) described later.

次に、メインCPU31は、作業領域の初期設定をする(ステップS813)。このステップS813の処理によって、電源復帰時における作業領域の初期設定が行われる。   Next, the main CPU 31 performs initial setting of the work area (step S813). Through the processing in step S813, the work area is initialized when the power is restored.

次に、メインCPU31は、通信データ格納領域をクリアする(ステップS815)。たとえば、ステップS815の処理は、通信データ格納領域のアドレスから順に通信データ格納領域長分(たとえば、70バイト)に「0」を格納する処理である。この処理により、通信データ格納領域をクリアする処理、すなわち、リングバッファをクリアする処理が行われる。この通信データ格納領域やリングバッファが、「送信用記憶手段」に相当する。通信データ格納領域やリングバッファに送信コマンドが通信データとして記憶される。   Next, the main CPU 31 clears the communication data storage area (step S815). For example, the process of step S815 is a process of storing “0” in the communication data storage area length (for example, 70 bytes) in order from the address of the communication data storage area. By this processing, processing for clearing the communication data storage area, that is, processing for clearing the ring buffer is performed. The communication data storage area and the ring buffer correspond to “transmission storage means”. A transmission command is stored as communication data in a communication data storage area or a ring buffer.

次に、メインCPU31は、高確率遊技状態を報知する設定をする(ステップS817)。ステップS817の処理によって、特別図柄の遊技状態確認処理が行われる。ステップS817の処理では、低確率状態のときには何も行われず、高確率状態のときには確率値を表す報知フラグがセットされる。   Next, the main CPU 31 makes a setting for notifying the high probability gaming state (step S817). A special symbol gaming state confirmation process is performed by the process of step S817. In the process of step S817, nothing is performed in the low probability state, and a notification flag representing the probability value is set in the high probability state.

次に、メインCPU31は、電源復帰時の内部状態のフラグを設定する(ステップS819)。このステップS819の処理では、扉・枠開閉状態領域、不正入賞情報管理フラグ領域の演算処理が行われ、セキュリティ情報生成処理、電源復帰時内部状態フラグ格納処理が行われる。   Next, the main CPU 31 sets an internal state flag when the power is restored (step S819). In the process of step S819, the door / frame open / close state area and the illegal prize information management flag area are calculated, and the security information generation process and the power return internal state flag storage process are performed.

次に、メインCPU31は、電源復帰時の遊技状態のフラグを設定する(ステップS821)。このステップS821の処理は、遊技状態パラメータ領域、特別図柄当り情報マスタ値の論理積をとり、演算結果と特別図柄遊技状態フラグ領域の内容との論理和をとり、演算結果を電断復帰時遊技状態フラグ領域に格納する。   Next, the main CPU 31 sets a game state flag when the power is restored (step S821). The processing of this step S821 takes the logical product of the game state parameter area and the information master value per special symbol, and logically sums the operation result and the contents of the special symbol game state flag area, Store in the status flag area.

次に、メインCPU31は、電源復帰コマンドを副制御回路(副制御基板40)に送信する(ステップS823)。このステップS823の処理は、電断時に所得した最新情報をパラメータとして付加して副制御回路に送信する。   Next, the main CPU 31 transmits a power return command to the sub control circuit (sub control board 40) (step S823). In the process of step S823, the latest information obtained at the time of power interruption is added as a parameter and transmitted to the sub-control circuit.

具体的には、このステップS823の処理は、後述するステップS1111〜S1127の各々の処理でRWM(メインRAM34)に記憶させた各種のデータを読み出し、読み出した各種のデータを結合してパラメータ情報とし、このパラメータ情報をコマンドに付加して副制御回路に送信する。このRWM(メインRAM34)に記憶させた各種のデータが、「遊技を進めるために必要な遊技情報」に相当する。   Specifically, the process of step S823 reads various data stored in the RWM (main RAM 34) in each process of steps S1111 to S1127, which will be described later, and combines the read various data into parameter information. The parameter information is added to the command and transmitted to the sub-control circuit. The various data stored in the RWM (main RAM 34) corresponds to “game information necessary to advance the game”.

このように、電源が復旧したときには、ステップS815の処理によって、まず、通信データ格納領域をクリアする処理を実行する。このように処理することで、電断によって不適切なコマンドが生じた場合であっても、たとえば、未送信のコマンドが存在する場合であっても、電源が復旧したときに、未送信のコマンドを副制御回路(副制御基板40)に送信する必要がなく、処理が煩雑になることを防止することができる。   As described above, when the power is restored, the process of clearing the communication data storage area is first executed by the process of step S815. By processing in this way, even when an inappropriate command is generated due to a power interruption, for example, even when an unsent command exists, an unsent command is restored when power is restored. Need not be transmitted to the sub-control circuit (sub-control board 40), and the processing can be prevented from becoming complicated.

また、電源が復旧したときに、ステップS823の処理を実行することによって、電断時に所得した各種のデータ(最新情報)を副制御回路に送信する。したがって、副制御回路は、電断時における各種のデータの全てを受け取ることにより、副制御回路を電断時(電断前)の状態に的確に戻すことができる。   Further, when the power is restored, the process of step S823 is executed to transmit various data (latest information) obtained at the time of power interruption to the sub-control circuit. Therefore, the sub control circuit can accurately return the sub control circuit to the state at the time of power interruption (before power interruption) by receiving all of the various data at the time of power interruption.

次に、メインCPU31は、メインCPU31の動作を設定し(ステップS825)、メイン処理を終了する。このステップS825の処理は、メインCPU31への割り込みを禁止し、CTC動作設定処理及びシリアル回路初期化処理を行い、メインCPU31の周辺デバイスの初期設定を行う処理である。ここで、CTC動作設定処理は、所定の時間毎、たとえば2[msec]毎で割り込みを発生させる内蔵クロックの動作を設定する処理である。また、シリアル回路初期化処理は、副制御基板40等へのシリアル通信を正常に行えるようにするために、シリアル・イン・アウトの動作設定をする処理である。   Next, the main CPU 31 sets the operation of the main CPU 31 (step S825), and ends the main process. The processing in step S825 is processing for prohibiting interruption to the main CPU 31, performing CTC operation setting processing and serial circuit initialization processing, and initializing peripheral devices of the main CPU 31. Here, the CTC operation setting process is a process of setting the operation of the built-in clock that generates an interrupt every predetermined time, for example, every 2 [msec]. The serial circuit initialization processing is processing for setting serial in / out operation so that serial communication to the sub-control board 40 and the like can be performed normally.

<電源投入時処理>
メインCPU31は、前述した図7のステップS723の判断処理でバックアップスイッチがオンであると判別したとき(YES)、ステップS725の判断処理で電断検知フラグがセットされていないと判別したとき(NO)、又はステップS729の判断処理で作業領域が損傷していると判別したときには(YES)、特別図柄当り判定関連の初期値のために乱数を取得する(ステップS911)。
<Power-on processing>
When the main CPU 31 determines that the backup switch is on in the determination process in step S723 of FIG. 7 described above (YES), and determines that the power failure detection flag is not set in the determination process in step S725 (NO) ), Or when it is determined that the work area is damaged in the determination process of step S729 (YES), a random number is acquired for the initial value related to determination of special symbol (step S911).

次に、メインCPU31は、作業領域の全体をクリアする(ステップS913)。たとえば、アドレス7E00Hから7FFFHまでの領域に「0」を書き込むときに、その領域の0チェックを行い、「0」以外の領域がある場合には、7E00Hから同様の処理を繰り返す。   Next, the main CPU 31 clears the entire work area (step S913). For example, when “0” is written in the area from address 7E00H to 7FFFH, the area is checked for 0. If there is an area other than “0”, the same processing is repeated from 7E00H.

ステップS913の処理は、具体的には、以下の処理からなる。まず、メインCPU31は、メインRAM34に記憶されているスタックポインタを初期化する。次いで、メインCPU31は、メインRAM34の作業領域の先頭アドレス、たとえば7E00Hをセットする。その後、メインCPU31は、クリアデータをセットし、セットされた先頭アドレスのデータがクリアされたか否かを判断する。セットされた先頭アドレスのデータがクリアされていなかった場合には、メインCPU31は、再度、前述したスタックポインタの初期化と、先頭アドレスのセットと、クリアデータのセットとの処理を繰り返す。   Specifically, the process of step S913 includes the following processes. First, the main CPU 31 initializes a stack pointer stored in the main RAM 34. Next, the main CPU 31 sets the start address of the work area of the main RAM 34, for example, 7E00H. Thereafter, the main CPU 31 sets clear data and determines whether or not the data at the set head address has been cleared. If the data at the set top address has not been cleared, the main CPU 31 repeats the above-described process of initializing the stack pointer, setting the top address, and setting the clear data again.

一方、セットされた先頭アドレスのデータがクリアされていた場合には、メインCPU31は、クリアした先頭アドレスの次のアドレスをセットする。メインCPU31は、このセットされたアドレスが、メインRAM34の作業領域の最終アドレス、たとえば、7FFFHであるか否かを判断する。メインCPU31は、最終アドレスでなかった場合には、再度、前述したクリアデータのセットと、クリアされたか否かの判断と、次のアドレスのセットとの処理を繰り返し、メインRAM34の作業領域の全てをクリアする。   On the other hand, if the data at the set head address has been cleared, the main CPU 31 sets the next address after the cleared head address. The main CPU 31 determines whether or not the set address is the final address of the work area of the main RAM 34, for example, 7FFFH. When the main address is not the final address, the main CPU 31 repeats the process of setting the clear data, the determination of whether or not the data has been cleared, and the next address setting again. To clear.

次に、メインCPU31は、ステップS911の処理で取得した乱数を用いて、特別図柄当り判定関連の初期値を設定する(ステップS915)。   Next, the main CPU 31 sets an initial value related to the special symbol hit determination using the random number acquired in step S911 (step S915).

次に、メインCPU31は、RWM(リードライトメモリ)の初期化時の作業領域を初期設定する(ステップS917)。このステップS917の処理は、入力レジスタのテーブルアドレスとして作業領域初期化データのアドレスを設定して、データ格納処理を実行する処理である。   Next, the main CPU 31 initializes a work area when the RWM (read / write memory) is initialized (step S917). The processing in step S917 is processing for setting the address of the work area initialization data as the table address of the input register and executing data storage processing.

次に、メインCPU31は、RWM(リードライトメモリ)の初期化時のコマンドを副制御基板40に送信する(ステップS919)。このステップS919の処理によって送信されたコマンドにより、副制御基板40は初期化される。   Next, the main CPU 31 transmits a command for initializing the RWM (read / write memory) to the sub-control board 40 (step S919). The sub control board 40 is initialized by the command transmitted by the process of step S919.

次に、メインCPU31は、メインCPU31の周辺デバイスの初期設定をする(ステップS921)。このステップS921の処理は、割り込みを禁止し、CTC動作設定処理及びシリアル回路初期化処理が行われ、メインCPU31の周辺デバイスの初期設定が行われる。ここでも、CTC動作設定処理は、所定の時間毎、たとえば2[msec]毎で割り込みを発生させる内蔵クロックの動作を設定する処理である。また、シリアル回路初期化処理は、副制御基板40等へのシリアル通信を正常に行えるようにするために、シリアル・イン・アウトの動作設定をする処理である。   Next, the main CPU 31 initializes peripheral devices of the main CPU 31 (step S921). In step S921, the interrupt is prohibited, the CTC operation setting process and the serial circuit initialization process are performed, and the peripheral devices of the main CPU 31 are initialized. Again, the CTC operation setting process is a process for setting the operation of the built-in clock that generates an interrupt every predetermined time, for example, every 2 [msec]. The serial circuit initialization processing is processing for setting serial in / out operation so that serial communication to the sub-control board 40 and the like can be performed normally.

<<メイン遊技処理>>
以下のステップS1011〜S1127の処理は、パチンコ機1に電源が定常的に供給されている間においては、繰り返し実行されるメイン遊技処理である。このメイン遊技処理は、割り込みを禁止し、NMIフラグ領域がロードされて、NMIフラグ領域の値が[A5H]である場合には電断処理(図10のステップS1017)を実行し、NMIフラグ領域の値が[A5H]でない場合には電断処理を行わず、通常の処理を実行する。
<< Main game processing >>
The following steps S1011 to S1127 are main game processes that are repeatedly executed while the power is constantly supplied to the pachinko machine 1. In this main game process, interruption is prohibited, the NMI flag area is loaded, and when the value of the NMI flag area is [A5H], the power interruption process (step S1017 in FIG. 10) is executed. When the value of [A5H] is not [A5H], the power interruption process is not performed and the normal process is executed.

なお、電断処理が実行されるのは、メイン遊技処理において、このときのみであり、他の処理が実行されている途中で、割込処理により電断処理が実行されることはない。また、NMI発生情報の確認を行うまで、電断発生前に行っていたメイン処理を行うので、NMIフラグを検知してからもシステムタイマ経過後処理が実行中であればシステムタイマ経過後処理を一巡して電断時の最新の遊技情報が一通り取得されてから電断処理に入ることになる。   The power interruption process is executed only in the main game process at this time, and the power interruption process is not executed by the interrupt process while the other processes are being executed. Also, since the main process that was performed before the occurrence of the power interruption is performed until the NMI occurrence information is confirmed, the process after the system timer elapses is performed if the process after the system timer elapses after the NMI flag is detected. The power interruption process is started after the latest game information at the time of power interruption is acquired.

ステップS921の処理を実行した後、メインCPU31は割り込みを禁止する(ステップS1011)。このステップS1011の処理は、割込処理の実行をマスクするように割込禁止処理を行うものである。   After executing the processing of step S921, the main CPU 31 prohibits interruption (step S1011). The process of step S1011 performs an interrupt prohibition process so as to mask execution of the interrupt process.

次に、メインCPU31は、NMIフラグ領域に記憶されているデータをロードし(ステップS1013)、NMIフラグがセットされているか否かを判断する(ステップS1015)。NMIフラグがセットされている場合には、NMIフラグ領域に[A5H]が記憶されており、NMIフラグがセットされていない場合には、NMIフラグ領域に[A5H]以外の値が記憶されている。   Next, the main CPU 31 loads the data stored in the NMI flag area (step S1013), and determines whether or not the NMI flag is set (step S1015). When the NMI flag is set, [A5H] is stored in the NMI flag area, and when the NMI flag is not set, a value other than [A5H] is stored in the NMI flag area. .

次に、メインCPU31は、NMIフラグがセットされていると判別したときには(YES)、図15に示す電断処理を呼び出して実行する(ステップS1017)。   Next, when determining that the NMI flag is set (YES), the main CPU 31 calls and executes the power interruption process shown in FIG. 15 (step S1017).

メインCPU31は、ステップS1015の判断処理でNMIフラグがセットされていないと判別したとき(NO)、又はステップS1017の処理を実行したときには、各種の初期値用の乱数を更新する(ステップS1019)。   When the main CPU 31 determines that the NMI flag is not set in the determination process in step S1015 (NO) or executes the process in step S1017, the main CPU 31 updates various random numbers for initial values (step S1019).

次に、メインCPU31は割り込みを許可する(ステップS1021)。これにより、割り込みの禁止状態が解除されて各種の割り込みが許可される。   Next, the main CPU 31 permits an interrupt (step S1021). Thus, the interrupt disabled state is released and various interrupts are permitted.

次に、メインCPU31は、演出用の乱数を更新する(ステップS1023)。   Next, the main CPU 31 updates the random number for production (step S1023).

次に、メインCPU31は、システムタイマを監視する(ステップS1025)。このステップS1025の処理は、システムタイマのタイマ値が所定値に至ったか否かを判断して、所定の時間経過したか否かを判断するものである。タイマ値が所定値に至っていない場合には、所定の時間経過していないとして、前述したステップS1011に処理を戻す。一方、タイマ値が所定値に至った場合には、所定の時間経過したとして、以下のシステムタイマ経過後処理を実行する。   Next, the main CPU 31 monitors a system timer (step S1025). The process of step S1025 is to determine whether or not a predetermined time has elapsed by determining whether or not the timer value of the system timer has reached a predetermined value. If the timer value has not reached the predetermined value, it is determined that the predetermined time has not elapsed, and the process returns to step S1011 described above. On the other hand, when the timer value reaches the predetermined value, the following processing after the system timer elapses is executed assuming that the predetermined time has elapsed.

なお、システムタイマのタイマ値が所定値に至ったときには、システムタイマ監視タイマがリセットされる。また、システムタイマのタイマ値は、図13のステップS1319の処理によって更新される。   When the timer value of the system timer reaches a predetermined value, the system timer monitoring timer is reset. Further, the timer value of the system timer is updated by the process of step S1319 in FIG.

前述したように、所定の時間経過していない場合には、ステップS1011に処理を戻す。このようにしたことにより、NMIフラグ(電源低下情報)がセットされているか否かを繰り返し判断できる。したがって、供給電源の電圧が所定電圧より低下したか否かを的確に判断することができる。   As described above, if the predetermined time has not elapsed, the process returns to step S1011. This makes it possible to repeatedly determine whether or not the NMI flag (power supply lowering information) is set. Therefore, it can be accurately determined whether or not the voltage of the power supply has dropped below a predetermined voltage.

また、所定の時間経過した場合には、以下のシステムタイマ経過後処理を実行する。したがって、NMIフラグ(電源低下情報)がセットされているときでも、所定の時間経過した場合には、以下のステップS1111〜S1127の処理を実行する。後述するように、ステップS1111〜S1127の各々の処理では、これらの処理によって取得した各種のデータをRWMに記憶する。このように、各種のデータを取得する処理を優先的に実行して、電源復帰に必要な情報を的確に取得することができる。   When a predetermined time has elapsed, the following processing after the system timer elapses is executed. Therefore, even when the NMI flag (power supply lowering information) is set, if the predetermined time has elapsed, the following steps S1111 to S1127 are executed. As will be described later, in each process of steps S1111-S1127, various data acquired by these processes are stored in the RWM. In this way, it is possible to preferentially execute processing for acquiring various types of data and accurately acquire information necessary for power recovery.

<システムタイマ経過後処理>
以下のステップS1111〜S1127の処理は、メイン遊技処理におけるシステムタイマ経過後処理として順次実行される。
<Process after system timer elapse>
The following steps S1111 to S1127 are sequentially executed as post-system timer processing in the main game process.

次に、メインCPU31は、タイマ値を更新する(ステップS1111)。この処理によって、初期設定処理や2バイトタイマ値更新処理が実行される。具体的には、メインCPU31により、主制御基板30の主制御回路と副制御基板40の副制御回路との同期をとるための待ち時間タイマや、大入賞口開放時間タイマ等、各種のタイマの更新処理が実行される。   Next, the main CPU 31 updates the timer value (step S1111). By this process, an initial setting process and a 2-byte timer value update process are executed. Specifically, various timers such as a waiting time timer for synchronizing the main control circuit of the main control board 30 and the sub control circuit of the sub control board 40 by the main CPU 31 and a special prize opening time timer are provided. Update processing is executed.

次に、メインCPU31は、特別図柄を制御する(特図制御処理)(ステップS1113)。このステップS1113の処理は、特別図柄待ち時間チェック処理を行い、特別図柄制御状態フラグ領域の内容に応じて、特別図柄記憶チェック処理、特別図柄変動時間管理処理、特別図柄表示時間管理処理、大入賞口16の開放前処理、大入賞口16の開放中処理、特別図柄当り終了インターバル処理を行う。   Next, the main CPU 31 controls special symbols (special symbol control processing) (step S1113). The process of step S1113 performs a special symbol waiting time check process, and according to the contents of the special symbol control state flag area, a special symbol memory check process, a special symbol variation time management process, a special symbol display time management process, a grand prize Processing for opening the mouth 16, processing for opening the special winning opening 16, and end interval processing per special symbol are performed.

次に、メインCPU31は、普通図柄を制御する(普図制御処理)(ステップS1115)。このステップS1115の処理は、普通図柄待ち時間チェック処理を行い、普通図柄制御状態フラグ領域の内容に応じて、普通図柄記憶チェック処理、普通図柄変動時間管理処理、普通図柄表示時間管理処理、大入賞口16の開放前処理、大入賞口16の開放中処理、普通図柄当り終了インターバル処理を行う。   Next, the main CPU 31 controls the normal symbol (common symbol control process) (step S1115). In step S1115, a normal symbol waiting time check process is performed, and a normal symbol memory check process, a normal symbol variation time management process, a normal symbol display time management process, and a big prize are performed according to the contents of the normal symbol control state flag area. The pre-opening process of the mouth 16, the process during the opening of the special winning opening 16, and the normal symbol end interval process are performed.

次に、メインCPU31は、図柄表示装置を制御する(ステップS1117)。このステップS1117の処理は、特別図柄表示装置10や普通図柄表示装置11を制御するものである。普通図柄表示装置制御処理や特別図柄表示装置制御処理を行う。また、パチンコ機1の遊技盤2に発射位置報知LEDが設けられている場合には、このステップS1117の処理で発射位置報知LED表示制御処理も行う。発射位置報知LEDは、遊技盤2におけるパチンコ球の最適発射位置に関する情報を遊技者に報知するものである。   Next, the main CPU 31 controls the symbol display device (step S1117). The process of step S1117 controls the special symbol display device 10 and the normal symbol display device 11. Normal symbol display device control processing and special symbol display device control processing are performed. If the game board 2 of the pachinko machine 1 is provided with the launch position notification LED, the launch position notification LED display control process is also performed in the process of step S1117. The launch position notification LED notifies the player of information regarding the optimal launch position of the pachinko ball on the game board 2.

次に、メインCPU31は、遊技情報データを生成する(ステップS1119)。不正入賞監視管理タイマ更新処理、始動口信号処理、外部端子板関連信号の生成処理、電動役物作動中信号の生成処理、試射試験信号の生成処理が行われる。このステップS1119で生成される遊技情報は、主に、ホールコンピュータなどのパチンコ機1に接続された管理装置に送信される。   Next, the main CPU 31 generates game information data (step S1119). The illegal winning monitoring control timer update process, the start port signal process, the external terminal board related signal generation process, the electric member operating signal generation process, and the trial test signal generation process are performed. The game information generated in step S1119 is mainly transmitted to a management device connected to the pachinko machine 1 such as a hall computer.

次に、メインCPU31は、図柄保留個数データを生成する(ステップS1121)。
普通図柄保留個数データ生成処理、特別図柄保留個数データ生成処理が行われる。また、このステップS1121で生成する遊技情報データも「遊技を進めるために必要な遊技情報」に相当する。
Next, the main CPU 31 generates symbol reservation number data (step S1121).
Normal symbol reservation number data generation processing and special symbol reservation number data generation processing are performed. The game information data generated in step S1121 also corresponds to “game information necessary to advance the game”.

次に、メインCPU31は、ポート出力処理を実行し(ステップS1123)、遊技球の払出処理を実行する(ステップS1125)。このステップS1125の処理は、賞球カウンタの判定処理を行い、払出要求コマンドの送出処理を行う。   Next, the main CPU 31 executes a port output process (step S1123), and executes a game ball payout process (step S1125). In step S1125, a prize ball counter is determined, and a payout request command is transmitted.

次に、メインCPU31は、不正検知関連コマンドの処理を実行する(ステップS1127)。このステップS1127の処理は、不正検知関連設定処理、不正検知判定処理を行い、不正検知の場合には、不正検知関連コマンド送信予約処理を行う。   Next, the main CPU 31 executes processing for a fraud detection-related command (step S1127). In step S1127, fraud detection related setting processing and fraud detection determination processing are performed. In the case of fraud detection, fraud detection related command transmission reservation processing is performed.

前述したステップS1111〜S1127の各々の処理では、これらの処理によって取得した各種のデータを、ステップS1111〜S1127の各々の処理に伴ってRWMに記憶する処理も実行する。たとえば、ステップS1113の特図制御処理、ステップS1115の普図制御処理及びステップS1125の払出処理で決定される停止図柄情報、変動時間情報、大入賞口入賞数情報及び賞球情報などの情報が、これらの処理に伴ってRWMに記憶される。電源が復帰したときには、これらの情報をRWMから読み出すことで、電断が発生したときの遊技状態に戻すことができる。また、前述した各種の情報のほか、ステップS1121で生成した図柄保留個数データもRWMに記憶させるようにしてもよい。このように、ステップS1111〜S1127の各々の処理によって各種のデータをRWMに記憶させた後、図15の処理によって電断処理が行われる。停止図柄情報、変動時間情報、大入賞口入賞数情報、賞球情報及び図柄保留個数データなどの各種のデータが、「遊技を進めるために必要な遊技情報」に相当する。   In each process of steps S1111 to S1127 described above, various data acquired by these processes is also stored in the RWM along with each process of steps S1111 to S1127. For example, information such as the special symbol control process in step S1113, the general symbol control process in step S1115 and the stop symbol information determined by the payout process in step S1125, the changing time information, the winning prize winning number information and the prize ball information, Along with these processes, it is stored in the RWM. When the power is restored, the information can be read from the RWM to return to the gaming state when the power interruption occurs. In addition to the various types of information described above, the symbol reservation number data generated in step S1121 may be stored in the RWM. In this way, after various data is stored in the RWM by the processes of steps S1111-S1127, the power interruption process is performed by the process of FIG. Various types of data such as stop symbol information, variable time information, big prize opening prize number information, prize ball information, and symbol hold number data correspond to “game information necessary to advance the game”.

なお、前述したように、電源が供給されていない間でも、電源基板70に搭載されたコンデンサからのバックアップ電源によって、RWM(メインRAM34)の記憶内容を保持することができる。このように、ステップS1111〜S1127の各々の処理で、各種のデータをRWM(メインRAM34)に記憶させるので、メイン遊技処理が繰り返し実行されるたびに、最新の各種のデータをRWM(メインRAM34)に記憶させることができ、各種のデータを常に更新しつつ記憶させることができる。   As described above, the stored content of the RWM (main RAM 34) can be held by the backup power from the capacitor mounted on the power supply board 70 even when the power is not supplied. As described above, since various types of data are stored in the RWM (main RAM 34) in each of steps S1111-S1127, the latest various types of data are stored in the RWM (main RAM 34) each time the main game process is repeatedly executed. And various data can be stored while being constantly updated.

次に、パチンコ機1の電源が復帰したときには、RWMに記憶した各種のデータを読み出して、コマンドのパラメータとして副制御基板40の副制御回路に送信する(ステップS823参照)。   Next, when the power of the pachinko machine 1 is restored, various data stored in the RWM are read and transmitted as command parameters to the sub control circuit of the sub control board 40 (see step S823).

<<演出制御コマンド割込処理>>
図12は、演出制御コマンド割込処理を示すフローチャートである。この割込処理は、マスカブル割込処理であり、実行中のプログラムが割込受け付け許可を指定したときだけ受け付けられる処理である。
<< Direction control command interrupt processing >>
FIG. 12 is a flowchart showing an effect control command interrupt process. This interrupt process is a maskable interrupt process, and is a process that is accepted only when an executing program designates an interrupt acceptance permission.

最初に、メインCPU31は、システムタイマ割込が発生したときのプログラムカウンタの値を示すAFレジスタの値をメインRAM34のスタックエリアに退避する(ステップS1211)。   First, the main CPU 31 saves the value of the AF register indicating the value of the program counter when the system timer interrupt occurs in the stack area of the main RAM 34 (step S1211).

次に、メインCPU31は、NMIフラグがセットされているか否かを判断する(ステップS1213)。NMIフラグは、図14に示すフローチャートのステップS1413の処理でセットされるフラグである。後述するように、NMIフラグは、電源回路が出力する供給電源の電圧が低下したか否かを示すフラグである。メインCPU31は、NMIフラグがセットされていると判別したとき(YES)、すなわち、供給電源の電圧が低下したときには、後述するステップS1225に処理を移す。   Next, the main CPU 31 determines whether or not the NMI flag is set (step S1213). The NMI flag is a flag set in the process of step S1413 in the flowchart shown in FIG. As will be described later, the NMI flag is a flag indicating whether or not the voltage of the power supply output from the power supply circuit has dropped. When the main CPU 31 determines that the NMI flag is set (YES), that is, when the voltage of the power supply decreases, the main CPU 31 shifts the processing to step S1225 described later.

一方、メインCPU31は、NMIフラグがセットされていないと判別したとき(NO)、すなわち、供給電源の電圧が低下していないときには、メインCPU31は、割り込みが許可された時点のBCレジスタとDEレジスタとHLレジスタとの各々の値をメインRAM34のスタックエリアに退避する(ステップS1215)。BCレジスタ及びDEレジスタは汎用レジスタであり、HLレジスタは間接参照用レジスタである。   On the other hand, when the main CPU 31 determines that the NMI flag is not set (NO), that is, when the voltage of the power supply is not lowered, the main CPU 31 determines that the BC register and the DE register at the time when the interrupt is permitted. And the HL register are saved in the stack area of the main RAM 34 (step S1215). The BC register and the DE register are general-purpose registers, and the HL register is an indirect reference register.

次に、メインCPU31は、割り込みタイミングの調整をする(ステップS1217)。   Next, the main CPU 31 adjusts the interrupt timing (step S1217).

次に、メインCPU31は、ウォッチドッグタイマのクリアする設定をする(ステップS1219)。この処理によって、リセットIC32のCK端子にウォッチドッグクリア信号Cが出力される。   Next, the main CPU 31 performs setting for clearing the watch dog timer (step S1219). By this processing, the watchdog clear signal C is output to the CK terminal of the reset IC 32.

次に、メインCPU31は、送信準備の確認をする(ステップS1221)。送信準備の確認の処理によって、全ブロック送信済チェック処理と送信バッファ内容チェック処理とを行う。その結果、全ブロック送信済チェック処理の結果が「送信待ち」であり、送信バッファ内容チェック処理の結果が「空き」である場合には、インデックス処理と、データ出力処理と、通信済み確認処理とが行われる。   Next, the main CPU 31 confirms preparation for transmission (step S1221). All block transmission check processing and transmission buffer content check processing are performed by the transmission preparation confirmation processing. As a result, if the result of all block transmission check processing is “waiting to send” and the result of the transmission buffer content check processing is “empty”, index processing, data output processing, communication completion confirmation processing, Is done.

次に、メインCPU31は、ステップS1215の処理で退避させたBCレジスタとDEレジスタとHLレジスタとの各々の値をメインRAM34のスタックエリアから読み出し、BCレジスタとDEレジスタとHLレジスタとを復帰させる(ステップS1223)。   Next, the main CPU 31 reads the values of the BC register, DE register, and HL register saved in the process of step S1215 from the stack area of the main RAM 34, and restores the BC register, DE register, and HL register ( Step S1223).

次に、メインCPU31は、ステップS1211の処理で退避させたAFレジスタの値をメインRAM34のスタックエリアから読み出し、AFレジスタを復帰させる(ステップS1225)。   Next, the main CPU 31 reads the value of the AF register saved in the process of step S1211 from the stack area of the main RAM 34, and restores the AF register (step S1225).

次に、メインCPU31は、割り込みを許可し(ステップS1227)、演出制御コマンド割込処理を終了する。これにより、割り込みの禁止状態が解除されて各種の割り込みが許可される。   Next, the main CPU 31 permits interruption (step S1227), and ends the effect control command interrupt process. Thus, the interrupt disabled state is released and various interrupts are permitted.

<<システムタイマ割込処理>>
図13は、システムタイマ割込処理を示すフローチャートである。この割込処理は、マスカブル割込処理であり、実行中のプログラムが割込受け付け許可を指定したときだけ受け付けられる処理である。
<< System timer interrupt processing >>
FIG. 13 is a flowchart showing the system timer interrupt process. This interrupt process is a maskable interrupt process, and is a process that is accepted only when an executing program designates an interrupt acceptance permission.

最初に、メインCPU31は、システムタイマ割り込みが発生したときのプログラムカウンタの値を示すAFレジスタの値をメインRAM34のスタックエリアに退避する(ステップS1311)。   First, the main CPU 31 saves the value of the AF register indicating the value of the program counter when the system timer interrupt occurs in the stack area of the main RAM 34 (step S1311).

次に、メインCPU31は、NMIフラグがセットされているか否かを判断する(ステップS1313)。NMIフラグは、図14に示すフローチャートのステップS1413の処理でセットされるフラグである。後述するように、NMIフラグは、電源回路が出力する供給電源の電圧が低下したか否かを示すフラグである。メインCPU31は、NMIフラグがセットされていると判別したとき(YES)、すなわち、供給電源の電圧が低下したときには、後述するステップS1335に処理を移す。   Next, the main CPU 31 determines whether or not the NMI flag is set (step S1313). The NMI flag is a flag set in the process of step S1413 in the flowchart shown in FIG. As will be described later, the NMI flag is a flag indicating whether or not the voltage of the power supply output from the power supply circuit has dropped. When the main CPU 31 determines that the NMI flag is set (YES), that is, when the voltage of the power supply decreases, the main CPU 31 shifts the processing to step S1335 described later.

一方、メインCPU31は、NMIフラグがセットされていないと判別したとき(NO)、すなわち、供給電源の電圧が低下していないときには、以下の通常の処理を実行する。   On the other hand, when the main CPU 31 determines that the NMI flag is not set (NO), that is, when the voltage of the power supply is not lowered, the main CPU 31 executes the following normal processing.

まず、メインCPU31は、割り込みを許可する(ステップS1315)。これにより、割り込みの禁止状態が解除されて各種の割り込みが許可される。   First, the main CPU 31 permits an interrupt (step S1315). Thus, the interrupt disabled state is released and various interrupts are permitted.

次に、メインCPU31は、割り込みが許可された時点のBCレジスタとDEレジスタとHLレジスタとの各々の値をメインRAM34のスタックエリアに退避させる(ステップS1317)。BCレジスタ及びDEレジスタは汎用レジスタであり、HLレジスタは間接参照用レジスタである。   Next, the main CPU 31 saves the values of the BC register, DE register, and HL register at the time when the interrupt is permitted to the stack area of the main RAM 34 (step S1317). The BC register and the DE register are general-purpose registers, and the HL register is an indirect reference register.

次に、メインCPU31は、システムタイマ監視タイマの値を更新する(ステップS1319)。たとえば、システムタイマ監視タイマのタイマ値に1を加える。   Next, the main CPU 31 updates the value of the system timer monitoring timer (step S1319). For example, 1 is added to the timer value of the system timer monitoring timer.

次に、メインCPU31は、ウォッチドッグクリア信号Cの電圧レベルを反転してリセットIC32のCK端子に出力する(ステップS1321)。このステップS1321の処理により、図6(c)に示すように、ウォッチドッグタイマ信号Tは、所定の電圧に達する前にリセットされる。   Next, the main CPU 31 inverts the voltage level of the watchdog clear signal C and outputs it to the CK terminal of the reset IC 32 (step S1321). By the processing in step S1321, the watchdog timer signal T is reset before reaching a predetermined voltage as shown in FIG. 6C.

次に、メインCPU31は、乱数を更新する(ステップS1323)。この乱数の更新により、大当り判定等に用いられる大当り判定用乱数の値や、前述した初期値乱数の値が更新される。大当り判定用乱数値は、前述した特別図柄制御処理(図11のステップS1113)において大当り遊技を行うか否かを決定する際に、メインCPU31によって参照される。   Next, the main CPU 31 updates the random number (step S1323). By updating the random number, the value of the jackpot determination random number used for the jackpot determination and the initial value random number described above are updated. The jackpot determination random number is referred to by the main CPU 31 when determining whether or not to play the jackpot game in the special symbol control process (step S1113 in FIG. 11) described above.

次に、メインCPU31は、入力ポートを読み込む(ステップS1325)。   Next, the main CPU 31 reads an input port (step S1325).

次に、メインCPU31は、スイッチ入力を検出する(ステップS1327)。このスイッチ入力を検出する処理では、前述した各スイッチ14s〜17sから出力される検出信号に基づいて、通過ゲート14をパチンコ球が通過したか否かや、普通電動役物15や大入賞口16、一般入賞口17などにパチンコ球が入賞したか否かを検出する処理が行われる。   Next, the main CPU 31 detects a switch input (step S1327). In the process of detecting the switch input, based on the detection signals output from the switches 14s to 17s described above, whether or not the pachinko ball has passed through the passage gate 14, the ordinary electric accessory 15 and the big prize opening 16 are displayed. Then, a process of detecting whether or not the pachinko ball has won the general winning opening 17 or the like is performed.

次に、メインCPU31は、ダイナミックLEDを点灯する(ステップS1329)。このダイナミックLEDは、主制御基板30によって制御されて、点灯又は消灯されるLED(発光ダイオード)である。   Next, the main CPU 31 turns on the dynamic LED (step S1329). This dynamic LED is an LED (light emitting diode) which is controlled by the main control board 30 to be turned on or off.

次に、メインCPU31は、入賞関連コマンドを実行する(ステップS1331)。この入賞関連コマンドによって、大入賞口16や一般入賞口17等の制御が行われる。   Next, the main CPU 31 executes a prize-related command (step S1331). The prize winning related command 16 and the general winning prize opening 17 are controlled by this winning related command.

次に、メインCPU31は、ステップS1317の処理で退避させたBCレジスタとDEレジスタとHLレジスタとの値をメインRAM34のスタックエリアから読み出し、BCレジスタとDEレジスタとHLレジスタとを復帰させる(ステップS1333)。   Next, the main CPU 31 reads the values of the BC register, DE register, and HL register saved in the process of step S1317 from the stack area of the main RAM 34, and restores the BC register, DE register, and HL register (step S1333). ).

次に、メインCPU31は、ステップS1311の処理で退避させたAFレジスタの値をメインRAM34のスタックエリアから読み出し、AFレジスタを復帰させ(ステップS1335)、システムタイマ割込処理を終了する。   Next, the main CPU 31 reads the value of the AF register saved in the process of step S1311 from the stack area of the main RAM 34, restores the AF register (step S1335), and ends the system timer interrupt process.

<<ノンマスカブル割込処理>>
図14は、ノンマスカブル割込処理を示すフローチャートである。このノンマスカブル割込処理は、メインCPU31のNMI端子に入力される電断検知信号Dの電圧レベルがハイレベル(H)からローレベル(L)に立下がったときに、ノンマスカブル割込処理として実行される。電断検知信号Dは、電源監視IC71のRESET端子から出力されて、メインCPU31のNMI端子に入力される。この処理は、ノンマスカブル割込処理として実行されるので、マスクすることができない割り込みであり、いかなるタイミングでも受け付けることができる割り込みである。このようにすることで、供給電源の電圧が低下したときに直ちに処理を実行することができる。
<< Non-maskable interrupt processing >>
FIG. 14 is a flowchart showing the non-maskable interrupt process. This non-maskable interrupt process is executed as a non-maskable interrupt process when the voltage level of the power interruption detection signal D input to the NMI terminal of the main CPU 31 falls from a high level (H) to a low level (L). The The power interruption detection signal D is output from the RESET terminal of the power supply monitoring IC 71 and input to the NMI terminal of the main CPU 31. Since this process is executed as a non-maskable interrupt process, it is an interrupt that cannot be masked and can be accepted at any timing. In this way, processing can be executed immediately when the voltage of the power supply decreases.

最初に、メインCPU31は、ノンマスカブル割込が発生したときのプログラムカウンタの値を示すAFレジスタの値をメインRAM34のスタックエリアに退避する(ステップS1411)。   First, the main CPU 31 saves the value of the AF register indicating the value of the program counter when the non-maskable interrupt occurs in the stack area of the main RAM 34 (step S1411).

次に、メインCPU31は、NMIフラグをセットする(ステップS1413)。このNMIフラグは、電断が発生して、このノンマスカブル割込処理を実行したことを示すフラグである。すなわち、電源回路が出力する供給電源の電圧が低下して、電源監視IC71から出力された電断検知信号Dが(H)から(L)へ立下がったことを示すフラグである。このNMIフラグが「電源低下情報」に相当する。   Next, the main CPU 31 sets an NMI flag (step S1413). The NMI flag is a flag indicating that the non-maskable interrupt processing has been executed due to the occurrence of power interruption. That is, the flag indicates that the power supply voltage output from the power supply circuit has dropped and the power interruption detection signal D output from the power supply monitoring IC 71 has fallen from (H) to (L). This NMI flag corresponds to “power supply lowering information”.

NMIフラグ領域に[A5H]を記憶させることによって、NMIフラグがセットされ、NMIフラグ領域に[A5H]以外の値を記憶させることによって、NMIフラグのセットが解除される。   By storing [A5H] in the NMI flag area, the NMI flag is set, and by storing values other than [A5H] in the NMI flag area, the setting of the NMI flag is canceled.

次いで、メインCPU31は、ステップS1411によって、メインRAM34のスタックエリアに退避させておいたAFレジスタの値をAFレジスタに復帰させ(ステップS1415)、本サブルーチンを終了する。AFレジスタを復帰させることで、ノンマスカブル割込が発生する直前の状態に戻すことができる。   Next, in step S1411, the main CPU 31 restores the AF register value saved in the stack area of the main RAM 34 to the AF register (step S1415), and ends this subroutine. By returning the AF register, it is possible to return to the state immediately before the occurrence of the non-maskable interrupt.

<<電断処理>>
図15は、電断処理のサブルーチンを示すフローチャートである。この電断処理は、図10のステップS1017の処理で呼び出されて実行される。
<< Power interruption process >>
FIG. 15 is a flowchart illustrating a subroutine for power interruption processing. This power interruption process is called and executed in the process of step S1017 of FIG.

最初に、メインCPU31は、作業領域損傷チェック用データ生成処理が実行されて作業領域損傷チェック値を算出する(ステップS1511)。   First, the main CPU 31 executes a work area damage check data generation process to calculate a work area damage check value (step S1511).

次に、メインCPU31は電断検知フラグを設定する(ステップS1513)。電断検知フラグは、電断が発生して、この電断処理を実行したことを示すフラグである。電断検知フラグは、メイン処理のステップS725で参照される。   Next, the main CPU 31 sets a power interruption detection flag (step S1513). The power interruption detection flag is a flag indicating that power interruption has occurred and this power interruption processing has been executed. The power interruption detection flag is referred to in step S725 of the main process.

次いで、メインCPU31は、RWMへの書き込みを禁止し(ステップS1515)、無限ループを実行する。   Next, the main CPU 31 prohibits writing to the RWM (step S1515) and executes an infinite loop.

前述したように、本実施の形態におけるパチンコ機1では、図10のステップS1011の電断処理を実行する前に、図11のステップS1111〜S1127の各々の処理によって取得した各種のデータを、これらのステップS1111〜S1127の各々の処理に伴ってRWM(メインRAM34)に記憶させる。   As described above, in the pachinko machine 1 according to the present embodiment, before executing the power interruption process in step S1011 in FIG. 10, the various data acquired by the processes in steps S1111 to S1127 in FIG. The RWM (main RAM 34) stores it in accordance with each processing of steps S1111 to S1127.

このようにすることで、電断処理を実行するよりも前に、各種のデータをRWM(メインRAM34)に記憶させるので、電源復帰時に必要となる各種のデータを的確に記憶させることができる。電源が供給されていない間は、電源基板70に搭載されたコンデンサからのバックアップ電源によって、RWM(メインRAM34)に記憶させた各種のデータを保持される。
<<<パチンコ機1の概要>>>
By doing in this way, since various data are memorize | stored in RWM (main RAM34) before performing an electrical disconnection process, the various data required at the time of a power return can be memorize | stored exactly. While the power is not supplied, various data stored in the RWM (main RAM 34) is held by the backup power from the capacitor mounted on the power supply board 70.
<<< Outline of Pachinko Machine 1 >>>

本実施の形態におけるパチンコ機1は、
遊技の進行に関する制御をする遊技制御手段(主制御基板30や主制御回路)と、
前記遊技制御手段に供給される供給電源の電圧を監視し、供給電源の電圧が所定電圧より低下したときに電断が発生したとして低下検出信号を発する電源監視手段(電源監視IC71)と、
送信コマンドを記憶する送信用記憶手段(通信データ格納領域やリングバッファ)を備え、前記送信用記憶手段から送信コマンドを読み出し、演出に関する制御をする副制御手段(副制御基板40や副制御回路)に前記送信コマンドを送信するコマンド送信手段(メインCPU、コマンド出力ポート36)と、
前記遊技制御手段への供給電源の電圧が前記所定電圧より低下した後もデータを保持できるデータ記憶手段(メインRAM34)と、を有し、
前記遊技制御手段は、以下の処理を実行することを特徴とする。
(a) 前記電源監視手段から前記低下検出信号が発せられた場合には、供給電源の電圧が低下したことを示す電源低下情報(NMIフラグ)をノンマスカブル割込処理によってセットし、その後、ノンマスカブル割込前の元の処理に戻す電源低下情報セット処理(図14のノンマスカブル割込処理)、
(b) 遊技を進めるためのメイン制御処理(図10及び図11のメイン遊技処理)であって、
(b−1) 割り込みを禁止する割込禁止処理(図10のステップS1011)と、
(b−2) 前記割込禁止処理の後に、前記電源低下情報がセットされているか否かを判断する判断処理(図10のステップS1015)と、
(b−3) 前記判断処理の後に、割り込みを許可する割込許可処理(図10のステップS1021)と、
(b−4) 前記割込許可処理の後に、遊技の制御をする遊技制御処理及び遊技を進めるために必要な遊技情報を取得する遊技情報取得処理(図11のステップS1111〜S1127)と、を繰り返し実行可能で、
(b−5) 前記(b−4)において、前記割込許可処理の後に前記(a)の電源低下情報セット処理を実行した場合(図14のステップS1413)には、前記(a)の電源低下情報セット処理から戻って、前記遊技制御処理及び前記遊技情報取得処理(図11のステップS1111〜S1127)を実行するメイン遊技処理、
(c) 前記(b−2)の判断処理で前記電源低下情報がセットされていると判別したときに、前記(b−4)の処理で取得した遊技情報を前記データ記憶手段に記憶させる遊技情報記憶処理(図15の電断処理)、及び
(d) 前記遊技制御手段への供給電源の電圧が所定電圧より高くなったとき(図7のステップS715)に、電源が復帰したとして前記送信用記憶手段に記憶されている内容をクリアし(図8のステップS815)、前記データ記憶手段に記憶させた遊技情報を前記コマンド送信手段から送信コマンドとして送信する処理(図8のステップS823)。
The pachinko machine 1 in the present embodiment is
Game control means (main control board 30 and main control circuit) for controlling the progress of the game,
Power supply monitoring means (power supply monitoring IC 71) that monitors the voltage of the power supply supplied to the game control means and issues a drop detection signal when power interruption occurs when the voltage of the power supply drops below a predetermined voltage;
Sub-control means (sub-control board 40 or sub-control circuit) that includes a transmission storage means (communication data storage area or ring buffer) for storing a transmission command, reads the transmission command from the transmission storage means, and controls the production. Command transmission means (main CPU, command output port 36) for transmitting the transmission command to
Data storage means (main RAM 34) capable of holding data even after the voltage of the power supply to the game control means falls below the predetermined voltage;
The game control means executes the following processing.
(A) When the drop detection signal is issued from the power supply monitoring means, power drop information (NMI flag) indicating that the voltage of the power supply has dropped is set by non-maskable interrupt processing, and then non-maskable split Power supply drop information set processing (non-maskable interrupt processing in FIG. 14) to return to the original processing before loading,
(B) A main control process (main game process in FIGS. 10 and 11) for proceeding with the game,
(B-1) Interrupt prohibition processing (step S1011 in FIG. 10) for prohibiting an interrupt,
(B-2) A determination process (step S1015 in FIG. 10) for determining whether or not the power supply lowering information is set after the interrupt prohibition process;
(B-3) After the determination process, an interrupt permission process for permitting an interrupt (step S1021 in FIG. 10);
(B-4) After the interrupt permission process, a game control process for controlling a game and a game information acquisition process for acquiring game information necessary to advance the game (steps S1111 to S1127 in FIG. 11), Can be repeated,
(B-5) In (b-4), when the power reduction information setting process (a) is executed after the interrupt permission process (step S1413 in FIG. 14), the power supply (a) Returning from the decline information set process, a main game process for executing the game control process and the game information acquisition process (steps S1111 to S1127 in FIG. 11),
(C) A game that stores the game information acquired in the process (b-4) in the data storage means when it is determined in the determination process (b-2) that the power supply lowering information is set. (D) Information storage processing (power interruption processing in FIG. 15), and (d) when the power supply voltage to the game control means becomes higher than a predetermined voltage (step S715 in FIG. 7), The content stored in the credit storage means is cleared (step S815 in FIG. 8), and the game information stored in the data storage means is transmitted as a transmission command from the command transmission means (step S823 in FIG. 8).

この構成によれば、電断処理を実行するタイミングを調整するので、電源復帰処理に必要な情報を的確に取得した後に電断させることができる。また、電源が復帰したときには、送信用記憶手段に記憶されている内容をクリアするともに、記憶させていた遊技情報をコマンド送信手段から送信コマンドとして送信するだけであるので、電断時及び電源復帰時における処理を簡便にするとともに、処理に要する記憶容量を小さくできる。   According to this configuration, since the timing for executing the power interruption process is adjusted, the information necessary for the power recovery process can be accurately obtained and then the power interruption can be performed. Also, when the power is restored, the contents stored in the transmission storage means are cleared, and the stored game information is only transmitted as a transmission command from the command transmission means. The processing at the time can be simplified and the storage capacity required for the processing can be reduced.

また、本実施の形態におけるパチンコ機1は、上記構成において、
所定時間毎に発生する割り込みによって実行される割込処理(図12の演出制御コマンド送信割込処理又は図13のシステムタイマ割込処理)は、前記電源低下情報がセットされてない場合(図12のステップS1213の「NO」又は図13のステップS1313の「NO」の場合)には所定の処理(図12のステップSステップS1215〜S1223、又は図13のステップSステップS1315〜S1333)を実行し、前記電源低下情報がセットされている場合(図12のステップS1213の「YES」又は図13のステップS1313の「YES」の場合)には前記所定の処理の実行を省略することを特徴とする。
Further, the pachinko machine 1 according to the present embodiment has the above-described configuration.
In the interrupt process (the effect control command transmission interrupt process in FIG. 12 or the system timer interrupt process in FIG. 13) executed by an interrupt that occurs every predetermined time, the power supply lowering information is not set (FIG. 12). In the case of “NO” in step S1213 or “NO” in step S1313 in FIG. 13, predetermined processing (steps S steps S1215 to S1223 in FIG. 12 or steps Ssteps S1315 to S1333 in FIG. 13) is executed. When the power supply lowering information is set (in the case of “YES” in step S1213 in FIG. 12 or “YES” in step S1313 in FIG. 13), the execution of the predetermined process is omitted. .

この構成によれば、電源復帰後の処理に必要になる各種の情報を取得して記憶させる処理に要する時間を短くすることができ、所定の時間内、たとえば、電圧保証時間内に必要な処理を済ませて、電断処理をすることができる。   According to this configuration, it is possible to shorten the time required for processing to acquire and store various types of information necessary for processing after power recovery, and processing required within a predetermined time, for example, within a voltage guarantee time. Can be cut off.

さらに、本実施の形態におけるパチンコ機1は、上記構成において、
前記(b−4)の処理は、
(b−4−1) 前記(b−3)の割込許可処理を実行した後、タイマ値(システムタイマ値)が所定値以上になったか否かを判断する処理と(図10のステップS1025)、
(b−4−2) タイマ値が前記所定値未満であるときには、前記(b−1)の処理に戻す処理と、
(b−4−3) タイマ値が前記所定値以上であるときには、前記遊技制御処理及び前記遊技情報取得処理を実行する処理と、を含み、
前記(b−5)の処理は、前記(b−4−3)の処理でタイマ値が前記所定値以上であるときに、前記(a)の電源低下情報セット処理を実行した場合には、前記(a)の電源低下情報セット処理から戻って、前記遊技制御処理及び遊技情報取得処理を実行する(図10のステップS1025)ことを特徴とする。
Furthermore, the pachinko machine 1 in the present embodiment has the above-described configuration,
The process (b-4) is as follows.
(B-4-1) After executing the interrupt permission process of (b-3), a process for determining whether or not the timer value (system timer value) has reached a predetermined value or more (step S1025 in FIG. 10) ),
(B-4-2) When the timer value is less than the predetermined value, a process of returning to the process of (b-1);
(B-4-3) When the timer value is equal to or greater than the predetermined value, the game control process and the game information acquisition process are included.
In the process (b-5), when the timer value is equal to or greater than the predetermined value in the process (b-4-3), the power reduction information setting process (a) is executed. Returning from the power supply lowering information setting process (a), the game control process and the game information acquisition process are executed (step S1025 in FIG. 10).

この構成によれば、電源低下情報がセットされているか否かを繰り返し判断できるタイミングを形成するとともに、所定時間経過したときには、電源低下情報がセットされている場合であっても、遊技制御処理や遊技情報取得処理を実行して、電源復帰に必要な情報を的確に取得することができる。   According to this configuration, while forming a timing at which it can be repeatedly determined whether or not the power supply lowering information is set, even if the power supply lowering information is set when a predetermined time has elapsed, By executing the game information acquisition process, it is possible to accurately acquire information necessary for power recovery.

1 パチンコ機(遊技機)
2 遊技盤
10 特別図柄表示装置
11 普通図柄表示装置
15 普通電動役物
30 主制御基板(遊技制御手段)
31 メインCPU(コマンド送信手段)
32 リセットIC
33 メインROM
34 メインRAM(データ記憶手段)
36 コマンド出力ポート(コマンド送信手段)
40 副制御基板
61 払出制御基板
70 電源基板
71 電源監視IC(電源監視手段)
1 Pachinko machine (game machine)
2 Game board 10 Special symbol display device 11 Normal symbol display device 15 Normal electric accessory 30 Main control board (game control means)
31 Main CPU (command transmission means)
32 Reset IC
33 Main ROM
34 Main RAM (data storage means)
36 Command output port (command transmission means)
40 Sub control board 61 Discharge control board 70 Power supply board 71 Power supply monitoring IC (Power supply monitoring means)

Claims (3)

遊技の進行に関する制御をする遊技制御手段と、
前記遊技制御手段に供給される供給電源の電圧を監視し、供給電源の電圧が所定電圧より低下したときに電断が発生したとして低下検出信号を発する電源監視手段と、
送信コマンドを記憶する送信用記憶手段を備え、前記送信用記憶手段から送信コマンドを読み出し、演出に関する制御をする副制御手段に前記送信コマンドを送信するコマンド送信手段と、
前記遊技制御手段への供給電源の電圧が前記所定電圧より低下した後もデータを保持できるデータ記憶手段と、を有し、
前記遊技制御手段は、以下の処理を実行することを特徴とする遊技機。
(a) 前記電源監視手段から前記低下検出信号が発せられた場合には、供給電源の電圧が低下したことを示す電源低下情報をノンマスカブル割込処理によってセットし、その後、ノンマスカブル割込前の元の処理に戻す電源低下情報セット処理、
(b) 遊技を進めるためのメイン制御処理であって、
(b−1) 割り込みを禁止する割込禁止処理と、
(b−2) 前記割込禁止処理の後に、前記電源低下情報がセットされているか否かを判断する判断処理と、
(b−3) 前記判断処理の後に、割り込みを許可する割込許可処理と、
(b−4) 前記割込許可処理の後に、遊技の制御をする遊技制御処理及び遊技を進めるために必要な遊技情報を取得する遊技情報取得処理と、を繰り返し実行可能で、
(b−5) 前記(b−4)において、前記割込許可処理の後に前記(a)の電源低下情報セット処理を実行した場合には、前記(a)の電源低下情報セット処理から戻って、前記遊技制御処理及び前記遊技情報取得処理を実行するメイン遊技処理、
(c) 前記(b−2)の判断処理で前記電源低下情報がセットされていると判別したときに、前記(b−4)の処理で取得した遊技情報を前記データ記憶手段に記憶させる遊技情報記憶処理、及び
(d) 前記遊技制御手段への供給電源の電圧が所定電圧より高くなったときに、電源が復帰したとして前記送信用記憶手段に記憶されている内容をクリアした後、前記(c)の処理で前記データ記憶手段に記憶させた遊技情報を前記コマンド送信手段から送信コマンドとして前記副制御手段に送信する処理。
Game control means for controlling the progress of the game;
Power supply monitoring means for monitoring the voltage of the power supply supplied to the game control means, and issuing a drop detection signal when power interruption occurs when the voltage of the power supply drops below a predetermined voltage;
Command transmitting means for storing a transmission command, a command transmitting means for reading the transmission command from the transmission storing means, and transmitting the transmission command to a sub-control means for controlling the production;
Data storage means capable of holding data even after the voltage of the power supply to the game control means falls below the predetermined voltage;
The gaming machine is characterized by executing the following processing.
(A) When the drop detection signal is issued from the power supply monitoring means, the power drop information indicating that the voltage of the power supply is lowered is set by the non-maskable interrupt process, and then the original before the non-maskable interrupt Power drop information set processing to return to processing,
(B) Main control processing for advancing the game,
(B-1) interrupt disable processing for disabling interrupts;
(B-2) A determination process for determining whether or not the power supply lowering information is set after the interrupt prohibition process;
(B-3) an interrupt permission process for permitting an interrupt after the determination process;
(B-4) After the interrupt permission process, it is possible to repeatedly execute a game control process for controlling a game and a game information acquisition process for acquiring game information necessary to advance the game,
(B-5) In (b-4), when the power reduction information setting process (a) is executed after the interrupt permission process, the process returns from the power reduction information setting process (a). A main game process for executing the game control process and the game information acquisition process,
(C) A game that stores the game information acquired in the process (b-4) in the data storage means when it is determined in the determination process (b-2) that the power supply lowering information is set. Information storage processing, and (d) when the voltage of the power supply to the game control means becomes higher than a predetermined voltage, after clearing the contents stored in the storage means for transmission as the power is restored, A process of transmitting the game information stored in the data storage means in the process of (c) from the command transmission means to the sub-control means as a transmission command.
所定時間毎に発生する割り込みによって実行される割込処理は、前記電源低下情報がセットされてない場合には所定の処理を実行し、前記電源低下情報がセットされている場合には前記所定の処理の実行を省略することを特徴とする請求項1に記載の遊技機。   The interrupt process executed by an interrupt generated every predetermined time executes a predetermined process when the power supply lowering information is not set, and executes the predetermined process when the power supply lowering information is set. The gaming machine according to claim 1, wherein execution of the process is omitted. 前記(b−4)の処理は、
(b−4−1) 前記(b−3)の割込許可処理を実行した後、タイマ値が所定値以上になったか否かを判断する処理と、
(b−4−2) タイマ値が前記所定値未満であるときには、前記(b−1)の処理に戻す処理と、
(b−4−3) タイマ値が前記所定値以上であるときには、前記遊技制御処理及び前記遊技情報取得処理を実行する処理と、を含み、
前記(b−5)の処理は、前記(b−4−3)の処理でタイマ値が前記所定値以上であるときに、前記(a)の電源低下情報セット処理を実行した場合には、前記(a)の電源低下情報セット処理から戻って、前記遊技制御処理及び遊技情報取得処理を実行することを特徴とする請求項1に記載の遊技機。
The process (b-4) is as follows.
(B-4-1) After executing the interrupt permission process of (b-3), a process of determining whether or not the timer value has reached a predetermined value;
(B-4-2) When the timer value is less than the predetermined value, a process of returning to the process of (b-1);
(B-4-3) When the timer value is equal to or greater than the predetermined value, the game control process and the game information acquisition process are included.
In the process (b-5), when the timer value is equal to or greater than the predetermined value in the process (b-4-3), the power reduction information setting process (a) is executed. 2. The gaming machine according to claim 1, wherein the game control process and the game information acquisition process are executed after returning from the power supply lowering information setting process of (a).
JP2010028726A 2010-02-12 2010-02-12 Game machine Expired - Fee Related JP5554582B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010028726A JP5554582B2 (en) 2010-02-12 2010-02-12 Game machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010028726A JP5554582B2 (en) 2010-02-12 2010-02-12 Game machine

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2014110088A Division JP5890861B2 (en) 2014-05-28 2014-05-28 Game machine

Publications (2)

Publication Number Publication Date
JP2011161084A true JP2011161084A (en) 2011-08-25
JP5554582B2 JP5554582B2 (en) 2014-07-23

Family

ID=44592454

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010028726A Expired - Fee Related JP5554582B2 (en) 2010-02-12 2010-02-12 Game machine

Country Status (1)

Country Link
JP (1) JP5554582B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013158580A (en) * 2012-02-08 2013-08-19 Sophia Co Ltd Game machine
JP2014171770A (en) * 2013-03-12 2014-09-22 Sammy Corp Pachinko game machine
JP2015091457A (en) * 2015-02-12 2015-05-14 サミー株式会社 Pachinko game machine
JP2018029822A (en) * 2016-08-25 2018-03-01 株式会社平和 Game machine
JP2019126576A (en) * 2018-01-25 2019-08-01 株式会社三共 Game machine

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001198271A (en) * 2000-01-18 2001-07-24 Sophia Co Ltd Playing machine
JP2007325745A (en) * 2006-06-08 2007-12-20 Aruze Corp Game machine
JP2008264208A (en) * 2007-04-20 2008-11-06 Takao:Kk Pinball game machine
JP2009165658A (en) * 2008-01-16 2009-07-30 Sanyo Product Co Ltd Game machine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001198271A (en) * 2000-01-18 2001-07-24 Sophia Co Ltd Playing machine
JP2007325745A (en) * 2006-06-08 2007-12-20 Aruze Corp Game machine
JP2008264208A (en) * 2007-04-20 2008-11-06 Takao:Kk Pinball game machine
JP2009165658A (en) * 2008-01-16 2009-07-30 Sanyo Product Co Ltd Game machine

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013158580A (en) * 2012-02-08 2013-08-19 Sophia Co Ltd Game machine
JP2014171770A (en) * 2013-03-12 2014-09-22 Sammy Corp Pachinko game machine
JP2015091457A (en) * 2015-02-12 2015-05-14 サミー株式会社 Pachinko game machine
JP2018029822A (en) * 2016-08-25 2018-03-01 株式会社平和 Game machine
JP2019126576A (en) * 2018-01-25 2019-08-01 株式会社三共 Game machine

Also Published As

Publication number Publication date
JP5554582B2 (en) 2014-07-23

Similar Documents

Publication Publication Date Title
JP5466673B2 (en) Game machine
JP5554582B2 (en) Game machine
JP6392712B2 (en) Game machine
JP6871850B2 (en) Pachinko machine
JP6824870B2 (en) Game machine
JP6823583B2 (en) Game machine
JP6871849B2 (en) Pachinko machine
JP5341140B2 (en) Game machine
JP6105772B2 (en) Game machine
JP5851125B2 (en) Game machine
JP2009106613A (en) Game machine
JP5890861B2 (en) Game machine
JP6483738B2 (en) Game machine
JP2012249991A (en) Game machine
JP2015066268A (en) Game machine
JP5693409B2 (en) Game machine
JP2007185374A (en) Game machine
JP5661876B2 (en) Game machine
JP6856943B2 (en) Game machine
JP6881767B2 (en) Pachinko machine
JP6010091B2 (en) Game machine
JP5785596B2 (en) Game machine
JP7228235B2 (en) game machine
JP6864373B2 (en) Pachinko machine
JP6881766B2 (en) Pachinko machine

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20121213

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20121213

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131023

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131029

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131218

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140529

R150 Certificate of patent or registration of utility model

Ref document number: 5554582

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: R3D04

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees