JP6060918B2 - Game machine - Google Patents

Game machine Download PDF

Info

Publication number
JP6060918B2
JP6060918B2 JP2014033439A JP2014033439A JP6060918B2 JP 6060918 B2 JP6060918 B2 JP 6060918B2 JP 2014033439 A JP2014033439 A JP 2014033439A JP 2014033439 A JP2014033439 A JP 2014033439A JP 6060918 B2 JP6060918 B2 JP 6060918B2
Authority
JP
Japan
Prior art keywords
command
transmission
power failure
power
stored
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.)
Expired - Fee Related
Application number
JP2014033439A
Other languages
Japanese (ja)
Other versions
JP2014158765A (en
Inventor
那須 隆
隆 那須
関口 俊一
俊一 関口
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.)
Sanyo Bussan Co Ltd
Original Assignee
Sanyo Bussan Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sanyo Bussan Co Ltd filed Critical Sanyo Bussan Co Ltd
Priority to JP2014033439A priority Critical patent/JP6060918B2/en
Publication of JP2014158765A publication Critical patent/JP2014158765A/en
Application granted granted Critical
Publication of JP6060918B2 publication Critical patent/JP6060918B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

本発明は、パチンコ機やスロットマシンに代表される遊技機に関するものである。   The present invention relates to gaming machines represented by pachinko machines and slot machines.

スロットマシンやパチンコ機の制御は、遊技の主な制御を行う主制御手段と、その主制御手段に接続されると共に、その主制御手段から送信されるコマンドに基づいて液晶表示装置やランプ、LED、スピーカなどの駆動制御を行うサブ制御手段とにより行われる Slot control machines and pachinko machines, a main control unit for performing main control of the game, its is connected to the main control unit, the liquid crystal display device or a lamp on the basis of the command transmitted from the main control unit, LED And sub-control means for controlling the driving of a speaker or the like .

特開平5−161759号公報。JP-A-5-161759.

しかしながら、従来の遊技機は、例えば緊急時のコマンド等のような所定のコマンドを他のコマンドに優先して送信することについての考慮がなされていないものであった。
本発明は上記例示した問題点等を解決するためになされたものであり、所定のコマンドを他のコマンドに優先して送信することができる遊技機を提供することを目的としている。
However, in the conventional gaming machine, consideration has not been given to transmitting a predetermined command such as an emergency command in preference to other commands.
The present invention has been made to solve the above-described problems and the like, and an object thereof is to provide a gaming machine capable of transmitting a predetermined command with priority over other commands.

この目的を達成するために請求項1記載の遊技機は、遊技の主な制御を行う主制御手段と、その主制御手段から送信されるコマンドに基づいて動作するサブ制御手段とを備え、前記主制御手段に電力供給を行う電源手段と、遊技機が電断した場合に電断情報を出力する出力手段とを有し、前記主制御手段は、前記電断情報が入力される入力手段と、その入力手段に電断情報が入力されたか否かを確認する確認手段と、少なくともその確認手段により電断情報の入力が確認されたことに基づき電断時処理を実行する電断時処理実行手段と、遊技機の電断中にも記憶内容を保持可能な記憶手段と、遊技機が復電した場合に前記記憶手段の記憶内容に基づき復電時処理を実行する復電時処理実行手段と、前記サブ制御手段に送信される送信待コマンドを記憶可能であり、前記記憶手段が有する第1記憶手段と第2記憶手段と、前記サブ制御手段に対する所定のコマンドの送信が完了していない場合に、その所定のコマンドを引き続き送信する第1送信手段と、前記サブ制御手段に対する所定のコマンドの送信が完了しており、前記第2記憶手段に送信待コマンドが記憶されている場合に、前記第1記憶手段に送信待コマンドが記憶されているか否かにかかわらず、前記第2記憶手段に記憶される送信待コマンドを前記第1記憶手段に記憶される送信待コマンドに優先して送信する第2送信手段と、前記サブ制御手段に対する所定のコマンドの送信が完了しており、前記第2記憶手段に送信待コマンドが記憶されておらず、前記第1記憶手段に送信待コマンドが記憶されている場合に、前記第1記憶手段に記憶される送信待コマンドを送信する第3送信手段と、前記送信待コマンドを前記サブ制御手段へ送信するためのコマンド送信用処理、および、前記入力手段に電断情報が入力されたか否かを確認するための確認用処理を含む複数の処理を繰り返し実行する繰り返し処理実行手段とを有し、前記コマンド送信用処理を実行するコマンド送信用処理実行手段は、前記第1記憶手段に記憶される送信待コマンドまたは前記第2記憶手段に記憶される送信待コマンドのコマンド送信用処理を一の前記繰り返し処理内において所定情報分実行し、前記電断時処理実行手段は、前記サブ制御手段に対する所定のコマンドの送信が完了している場合に前記電断時処理を実行し、前記電源手段は、前記所定のコマンドの送信が完了していない場合にその所定のコマンドの送信を完了し、その後前記電断時処理を実行する間においては少なくとも、前記主制御手段に電力供給を行い、前記入力手段は、入力ポートで構成され、前記確認手段は、一の前記繰り返し処理の所定箇所で、前記入力ポートへ入力されるレベルを検出して、前記電断情報が入力されたか否かを確認するものであり、前記復電時処理実行手段は、遊技機が復電した場合に、その復電を前記サブ制御手段へ報せるためのコマンドを前記第2記憶手段に記憶させて、前記第2送信手段によって前記第1記憶手段に記憶される送信待ちコマンドより優先して前記サブ制御手段へ送信するものであることを特徴とする遊技機。
請求項2記載の遊技機は、請求項1に記載の遊技機において、前記記憶手段は、各種データを一時的に記憶することを特徴としている。
In order to achieve this object, the gaming machine according to claim 1 includes main control means for performing main control of the game, and sub-control means that operates based on a command transmitted from the main control means. Power supply means for supplying power to the main control means; and output means for outputting power interruption information when the gaming machine is cut off. The main control means includes input means for inputting the power interruption information; , Confirmation means for confirming whether or not power interruption information has been input to the input means, and power interruption processing execution for executing power interruption information based on at least confirmation of the input of power interruption information by the confirmation means Means, storage means capable of retaining the stored contents even while the gaming machine is disconnected, and power recovery processing execution means for executing power recovery processing based on the storage contents of the storage means when the gaming machine is powered down And a transmission waiting command transmitted to the sub-control means. The first storage means and the second storage means included in the storage means, and when the transmission of the predetermined command to the sub-control means is not completed, the predetermined command is continuously transmitted. When transmission of a predetermined command to the transmission means and the sub-control means is completed and a transmission waiting command is stored in the second storage means, the transmission waiting command is stored in the first storage means. Regardless of whether or not there is a second transmission means for transmitting the transmission waiting command stored in the second storage means in preference to the transmission waiting command stored in the first storage means, and a predetermined for the sub-control means The transmission of the command is completed, the transmission waiting command is not stored in the second storage means, and the transmission waiting command is stored in the first storage means, A third transmission unit that transmits a transmission waiting command stored in one storage unit; a command transmission process for transmitting the transmission waiting command to the sub-control unit; and power interruption information is input to the input unit Repetitive process execution means for repetitively executing a plurality of processes including a confirmation process for confirming whether or not the command transmission process execution means for executing the command transmission process is the first storage means Command transmission processing of the transmission waiting command stored in the second storage means or the command transmission processing of the transmission waiting command stored in the second storage means is executed for a predetermined amount of information within the one repetitive process, When the transmission of the predetermined command to the control means is completed, the power interruption process is executed, and the power supply means is not ready to transmit the predetermined command. The power is supplied to the main control means at least during the completion of the transmission of the predetermined command and the execution of the power interruption process, and the input means comprises an input port, and the confirmation means is a predetermined portion of one of said repetitive process, by detecting the level input to the input port, the power interruption information are those to check whether or not the input, the power recovery at process execution means When the game machine recovers power, a command for reporting the power recovery to the sub-control means is stored in the second storage means and stored in the first storage means by the second transmission means. A gaming machine characterized in that it is transmitted to the sub-control means in preference to a transmission waiting command .
A gaming machine according to a second aspect is the gaming machine according to the first aspect, wherein the storage means temporarily stores various data.

本発明の遊技機によれば、定のコマンドを他のコマンドに優先して送信することができる。 According to the gaming machine of the present invention, it can be transmitted with priority Jo Tokoro commands to other commands.

本発明の一実施例であるスロットマシンの前面扉が閉じた状態を示した斜視 図である。It is the perspective view which showed the state which the front door of the slot machine which is one Example of this invention closed. スロットマシンの前面扉が開いた状態を示した斜視図である。It is the perspective view which showed the state which the front door of the slot machine opened. スロットマシンの電気的構成を示したブロック図である。It is a block diagram showing an electrical configuration of the slot machine. 主制御基板で実行されるNMI割込処理のフローチャートである。It is a flowchart of the NMI interruption process performed by the main control board. 主制御基板で実行されるタイマ割込処理のフローチャートである。It is a flowchart of the timer interruption process performed by the main control board. 主制御基板のタイマ割込処理の中で実行される停電時処理のフローチャート である。It is a flowchart of the process at the time of a power failure performed in the timer interruption process of the main control board. 電源投入時に主制御基板で実行されるメイン処理のフローチャートである。It is a flowchart of the main process performed by the main control board at the time of power activation. 主制御基板のタイマ割込処理の中で実行されるコマンド出力処理のフローチ ャートである。This is a flowchart of command output processing executed during timer interrupt processing of the main control board. 主制御基板で実行される第2実施例のタイマ割込処理のフローチャートであ る。It is a flowchart of the timer interruption process of 2nd Example performed by the main control board. 電源投入時に主制御基板で実行される第2実施例のメイン処理のフローチ ャートである。It is a flowchart of the main process of 2nd Example performed by the main control board at the time of power activation.

以下、本発明の好ましい実施例について、添付図面を参照して説明する。図1は、本発明の実施例であるスロットマシン1の前面扉3が閉じた状態を示した斜視図であり、図2は、そのスロットマシン1の前面扉3が開いた状態を示した斜視図である。   Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings. FIG. 1 is a perspective view showing a state in which the front door 3 of the slot machine 1 according to the embodiment of the present invention is closed, and FIG. 2 is a perspective view showing a state in which the front door 3 of the slot machine 1 is opened. FIG.

図1及び図2を参照して、スロットマシン1の全体構成について説明する。スロットマシン1は、図1に示すように、本体2と前面扉3とから正面視略矩形状の箱状体に構成されている。本体2は、図2に示すように、スロットマシン1の骨格をなす部材であり、回胴L,M,Rやホッパ47等を収納するために、前面側が開放した中空状の箱状体に形成されている。   The overall configuration of the slot machine 1 will be described with reference to FIGS. As shown in FIG. 1, the slot machine 1 is composed of a main body 2 and a front door 3 in a box-like body having a substantially rectangular shape in front view. As shown in FIG. 2, the main body 2 is a member that forms the skeleton of the slot machine 1, and is a hollow box-like body whose front side is open to accommodate the rotating cylinders L, M, R, the hopper 47, and the like. Is formed.

本体2の内部には、図2に示すように、各種の図柄等が表示され回転可能に構成された回胴L,M,Rと、スロットマシン1の遊技を制御する制御装置40、電源スイッチ41とリセットスイッチ42と設定キー挿入孔43とを備える電源ボックス44、メダルを貯留する補助タンク45とこの補助タンク45内のメダルを払出用通路61に通じる開口62を介してメダル払出口32へ払い出す払出装置46とを備えるホッパ47等が収納されている。   Inside the main body 2, as shown in FIG. 2, various symbols and the like are displayed and configured so as to be rotatable, and a control device 40 for controlling the game of the slot machine 1, a power switch 41, a reset switch 42, and a setting key insertion hole 43, an auxiliary tank 45 for storing medals, and an opening 62 for communicating medals in the auxiliary tank 45 to the payout passage 61. A hopper 47 provided with a payout device 46 for payout is accommodated.

前面扉3は、上述した本体2の前面側開放部分に覆設される部材であり、図2に示すように、その前面扉3の裏面側辺部に取着されたヒンジ部材10により本体2に開閉可能に連結されている。よって、前面扉3を閉じることにより本体2の前面側開放部分を閉封することができ、図1に示すように、本体2内に収納される回胴L,M,Rやホッパ47等をその本体2と共に被包することができる。一方、前面扉3を開くことにより本体2の前面側を開放することができ、ホッパ47内に貯留されたメダルの回収等を行うことができる。なお、前面扉3には、図1に示すように、施錠装置9が配設されており、かかる施錠装置9により本体2と前面扉3とを図1に示す状態で施錠することができる。   The front door 3 is a member that covers the front-side open portion of the main body 2 described above. As shown in FIG. 2, the main body 2 is attached by a hinge member 10 that is attached to the back side of the front door 3. It is connected to openable and closable. Therefore, the front side open portion of the main body 2 can be closed by closing the front door 3, and as shown in FIG. 1, the rotating drums L, M, R, the hopper 47 and the like housed in the main body 2 are The body 2 can be encapsulated. On the other hand, the front side of the main body 2 can be opened by opening the front door 3, and medals stored in the hopper 47 can be collected. The front door 3 is provided with a locking device 9 as shown in FIG. 1, and the main body 2 and the front door 3 can be locked in the state shown in FIG.

前面扉3は前面枠4によりその外形が形成されており、前面枠4は、枠部材視認部4aと枠部材操作部4bと枠部材貯留部4cとに3分割されて構成されている。前面扉3の上段部(前面枠4の枠部材視認部4a)には、図1に示すように、遊技の進行に伴って点灯・点滅する上部ランプ11、遊技の進行に伴って種々の効果音等を発生するスピーカ12,12、各種の内容を表示する液晶ディスプレイ(以下「LCD」と略す)13、左回胴Lと中回胴Mと右回胴Rとをそれぞれ透視可能な露出窓14L,14M,14R、メダルのベット数(賭け数)に応じて点灯する5つのベットランプ15,16,16,17,17、クレジット数表示部18、ゲーム数表示部19、払出枚数表示部20などが設けられている。   The front door 3 has an outer shape formed by a front frame 4, and the front frame 4 is divided into a frame member visualizing part 4 a, a frame member operation part 4 b, and a frame member storage part 4 c. As shown in FIG. 1, an upper lamp 11 that is lit and blinks as the game progresses, and various effects as the game progresses, are provided on the upper stage of the front door 3 (the frame member visual recognition part 4a of the front frame 4). Speakers 12 and 12 that generate sound and the like, a liquid crystal display (hereinafter abbreviated as “LCD”) 13 that displays various contents, and an exposure window through which the left cylinder L, the middle cylinder M, and the right cylinder R can be seen through. 14L, 14M, 14R, five bet lamps 15, 16, 16, 17, 17, which are turned on according to the number of medals bet (the number of bets), a credit number display unit 18, a game number display unit 19, and a payout number display unit 20 Etc. are provided.

前面扉3の中段部(前面枠4の枠部材操作部4b)には、図1に示すように、メダルを貯玉するか否かを切り替えるクレジットボタン21と、左中右の各回胴L,M,Rの停止を指示する左・中・右回胴用ストップボタン22〜24と、メダルの詰まりを解消するメダル詰まり解消ボタン25と、貯玉されたメダルから1枚のメダルを賭けるための1枚ベットボタン26と、2枚のメダルを賭ける2枚ベットボタン27と、最大である3枚のメダルを賭けるマックスベットボタン28と、各回胴L,M,Rの回転を開始させるスタートレバー29と、メダル投入口30と、機種名や遊技に関わるキャラクタ等が表示された表示プレート31等とが設けられている。また、前面扉3の下段部(前面枠4の枠部材貯留部4c)には、図1に示すように、メダル払出口32から払い出されたメダルを受けて貯留するメダル受け皿33、タバコの吸い殻等を入れる灰皿34などが設けられている。   As shown in FIG. 1, a credit button 21 for switching whether or not to store medals, and each of the left, right and right cylinders L and M are provided in the middle part of the front door 3 (the frame member operation part 4b of the front frame 4). , R stop button 22-24 for instructing to stop R, medal clogging clear button 25 for clearing medal jamming, and one for betting one medal from the stored medal A bet button 26, a two-bet button 27 for betting two medals, a max bet button 28 for betting three medals, and a start lever 29 for starting rotation of each cylinder L, M, R; A medal slot 30 and a display plate 31 on which a model name, a character related to a game, and the like are displayed are provided. Further, as shown in FIG. 1, a medal tray 33 that receives and stores medals paid out from the medal payout opening 32, and a cigarette tray, are provided in the lower part of the front door 3 (the frame member storage part 4 c of the front frame 4). An ashtray 34 or the like for storing butts is provided.

図3は、スロットマシン1の電気的構成を示したブロック図である。スロットマシン1の主制御基板Cは、制御装置40内に配設されている。この主制御基板Cには、演算装置である1チップマイコンとしてのMPU51と、そのMPU51と接続されると共に各種のI/O装置と接続された入出力ポート54とが搭載されている。MPU51には、MPU51により実行される各種の制御プログラムや固定値データを記憶したROM52と、そのROM52内に記憶される制御プログラムの実行に当たって各種のデータ等を一時的に記憶するためのメモリであるRAM53と、割込回路やタイマ回路、データ送受信回路などの各種回路が内蔵されている。図4から図8に示すフローチャートのプログラムは、制御プログラムの一部としてROM52内に記憶されている。   FIG. 3 is a block diagram showing an electrical configuration of the slot machine 1. The main control board C of the slot machine 1 is disposed in the control device 40. The main control board C is equipped with an MPU 51 as a one-chip microcomputer as an arithmetic unit, and an input / output port 54 connected to the MPU 51 and connected to various I / O devices. The MPU 51 is a ROM 52 for storing various control programs executed by the MPU 51 and fixed value data, and a memory for temporarily storing various data in executing the control program stored in the ROM 52. The RAM 53 and various circuits such as an interrupt circuit, a timer circuit, and a data transmission / reception circuit are incorporated. The programs of the flowcharts shown in FIGS. 4 to 8 are stored in the ROM 52 as a part of the control program.

RAM53には、停電フラグ53aと、スタックポインタ保存メモリ53bと、チェックサム補正値メモリ53cと、コマンドバッファ53dと、コマンドカウンタ53eと、コマンド入力ポインタ53fと、コマンド出力ポインタ53gと、復電コマンドバッファ53hと、復電コマンドカウンタ53iとが設けられている。また、このRAM53には、スロットマシン1の電源のオフ後においても、後述する電源基板55からバックアップ電圧が供給され、スロットマシン1の電源のオフ後もデータを保持(バックアップ)できるように構成されている。   The RAM 53 includes a power failure flag 53a, a stack pointer storage memory 53b, a checksum correction value memory 53c, a command buffer 53d, a command counter 53e, a command input pointer 53f, a command output pointer 53g, and a power recovery command buffer. 53h and a power recovery command counter 53i are provided. Further, the RAM 53 is configured so that a backup voltage is supplied from a power supply board 55 described later even after the power of the slot machine 1 is turned off, and data can be retained (backed up) even after the power of the slot machine 1 is turned off. ing.

停電フラグ53aは、停電等の発生(電源スイッチ41のオフによる電源断を含む)による電源断を報せるためのフラグである。停電等が発生して電源が断されると、後述する停電監視回路57からMPU51のNMI(Non Maskable
Interrupt)端子(ノンマスカブル割込端子)へ停電信号58が出力される。すると、M
PU51によって、図4に示すNMI(ノンマスカブル)割込処理が実行され、停電フラグ53aがオンされる。停電フラグ53aがオンされると、タイマ割込処理(図5参照)の中で停電時処理(S13)が実行され、遊技の制御の中断処理が実行される。なお、NMI割込処理で一旦オンされた停電フラグ53aは、電源投入時に実行される復電処理(S63〜S67)の最後にオフされる(S67)。
The power failure flag 53a is a flag for reporting a power failure due to the occurrence of a power failure or the like (including a power failure caused by turning off the power switch 41). When a power failure or the like occurs and the power is cut off, the NMI (Non Maskable) of the MPU 51 from the power failure monitoring circuit 57 described later.
The power failure signal 58 is output to the (Interrupt) terminal (non-maskable interrupt terminal). Then, M
The NMI (non-maskable) interrupt process shown in FIG. 4 is executed by the PU 51, and the power failure flag 53a is turned on. When the power failure flag 53a is turned on, the power failure processing (S13) is executed in the timer interruption processing (see FIG. 5), and the game control interruption processing is executed. The power failure flag 53a once turned on in the NMI interrupt process is turned off at the end of the power recovery process (S63 to S67) executed when the power is turned on (S67).

スタックポインタ保存メモリ53bは、スロットマシン1の電源断後においても、MPU51のスタックポインタの値を保存するためのメモリである。スタックポインタの値は停電時処理のはじめに、このスタックポインタ保存メモリ53bへセーブされ(S33)、逆に、復電処理のはじめに、スタックポインタ保存メモリ53bからスタックポインタへ復帰される(S63)。本実施例のスタックエリアは電源断後もデータを保持可能なRAM53内に設けられているので、停電時処理においてスタックポインタの値をスタックポインタ保存メモリ53bへセーブすることにより、スタックエリアへ退避されたデータをそっくり保存することができる。   The stack pointer storage memory 53b is a memory for storing the stack pointer value of the MPU 51 even after the slot machine 1 is powered off. The value of the stack pointer is saved in the stack pointer storage memory 53b at the beginning of the power failure process (S33). Conversely, at the beginning of the power recovery process, the stack pointer is restored from the stack pointer storage memory 53b to the stack pointer (S63). Since the stack area of this embodiment is provided in the RAM 53 that can retain data even after the power is cut off, the stack pointer value is saved in the stack pointer storage memory 53b in the power failure process, and is saved in the stack area. Saved data can be saved.

チェックサム補正値メモリ53cは、停電時処理において算出されたRAM53のチェックサムを「0」とするための補正値を記憶するメモリである。停電時処理(S13)では、RAM53のチェックサムを「0」にした状態で制御を終了し、電源投入(停電解消)時の処理において、RAM53のチェックサムを調べ、その値が「0」であるか否かにより、RAM53のデータが正常にバックアップされているか否かを判断している。このため停電時処理において、チェックサム補正値メモリ53cの値を0クリアした状態でRAM53のチェックサムを算出し、その算出したチェックサムの2の補数がチェックサム補正値メモリ53cへ記憶される。これによりRAM53のチェックサムは「0」となる。   The checksum correction value memory 53c is a memory for storing a correction value for setting the checksum of the RAM 53 calculated in the power failure process to “0”. In the power failure process (S13), the control is terminated with the checksum of the RAM 53 set to “0”, and the checksum of the RAM 53 is checked in the process when the power is turned on (power failure is resolved), and the value is “0”. Whether or not the data in the RAM 53 is normally backed up is determined based on whether or not there is. For this reason, in the power failure process, the checksum of the RAM 53 is calculated with the value of the checksum correction value memory 53c cleared to 0, and the two's complement of the calculated checksum is stored in the checksum correction value memory 53c. As a result, the checksum of the RAM 53 becomes “0”.

コマンドバッファ53dは、主制御基板Cから後述するサブ制御基板Sへ送信されるコマンドを一時的に記憶するバッファであり、合計容量32バイトのリングバッファとして構成されている。本実施例のコマンドは1のコマンド(1単位のコマンド。以下同様)が2バイトで構成されるので、コマンドバッファ53dには最大16のコマンドを記憶することができる。   The command buffer 53d is a buffer that temporarily stores commands transmitted from the main control board C to a sub-control board S described later, and is configured as a ring buffer having a total capacity of 32 bytes. In the command of this embodiment, one command (one unit command; the same applies hereinafter) is composed of 2 bytes, so that a maximum of 16 commands can be stored in the command buffer 53d.

なお、コマンドバッファ53dは、必ずしも32バイトで構成する必要はないが、2のn乗(nは自然数)で構成することが好ましい。コマンドバッファ53dを2のn乗のサイズで構成すれば、コマンド入力ポインタ53fおよびコマンド出力ポインタ53gの更新を簡易に行うことができる。具体的には、各ポインタ53f,53gの更新後の値と、コマンドバッファ53dのサイズマイナス1の値とのアンド論理をとり、その結果を対応するポインタ53f,ポインタ53gの更新後の値とすることで、各ポインタ53f,53gの更新を行うことができるからである。かかる構成(コマンドバッファ53dのサイズおよびポインタ53f,53gの更新方式の構成)によれば、コマンドバッファ53dがリングバッファで構成されていても、各ポインタ53f,53gの値がコマンドバッファ53dのサイズをオーバーする場合などに条件分岐命令を用いることなく、各ポインタ53f,53gの値の更新を簡易に行うことができる。   The command buffer 53d is not necessarily composed of 32 bytes, but is preferably composed of 2 to the nth power (n is a natural number). If the command buffer 53d is configured to have a size of 2n, the command input pointer 53f and the command output pointer 53g can be updated easily. Specifically, the AND logic of the updated values of the pointers 53f and 53g and the value of the size minus 1 of the command buffer 53d is taken, and the result is used as the updated value of the corresponding pointers 53f and 53g. This is because the pointers 53f and 53g can be updated. According to such a configuration (configuration of the size of the command buffer 53d and the updating method of the pointers 53f and 53g), even if the command buffer 53d is configured as a ring buffer, the values of the pointers 53f and 53g determine the size of the command buffer 53d. The value of each of the pointers 53f and 53g can be easily updated without using a conditional branch instruction in the case of exceeding.

コマンドカウンタ53eは、コマンドバッファ53dに記憶されているコマンドのデータ(バイト)数を記憶するカウンタである。前述した通り、本実施例のコマンドは1のコマンドが2バイトで構成されるので、コマンドバッファ53dに1のコマンドがセットされる毎に、コマンドカウンタ53eの値は「2」ずつ加算される。一方、コマンドバッファ53dに記憶される1データがサブ制御基板Sへ送信される毎に、コマンドカウンタ53eの値は「1」ずつ減算される。よって、このコマンドカウンタ53eの値が「0」であれば、コマンドバッファ53dには送信すべきコマンドは記憶されておらず、また、コマンドカウンタ53eの値が奇数であれば、いずれか1(単位)のコマンドの送信途中である。従って、本実施例では、コマンドカウンタ53eの値が「0」である場合にはコマンドの送信は行わず(図8のS83:Yesを参照)、また、コマンドカウンタ53eの値が奇数である場合には停電時処理の実行や後述する復電コマンドの送信を待機している(図6のS31:Yes,図8のS81:Yes)。   The command counter 53e is a counter that stores the number of command data (bytes) stored in the command buffer 53d. As described above, since the command of this embodiment is composed of 2 bytes, each time the 1 command is set in the command buffer 53d, the value of the command counter 53e is incremented by “2”. On the other hand, every time one data stored in the command buffer 53d is transmitted to the sub control board S, the value of the command counter 53e is decremented by “1”. Therefore, if the value of the command counter 53e is “0”, no command to be transmitted is stored in the command buffer 53d, and if the value of the command counter 53e is an odd number, any one (unit ) Command is being sent. Therefore, in this embodiment, when the value of the command counter 53e is “0”, the command is not transmitted (see S83: Yes in FIG. 8), and when the value of the command counter 53e is an odd number. Is waiting for execution of power failure processing and transmission of a power recovery command described later (S31: Yes in FIG. 6, S81: Yes in FIG. 8).

コマンド入力ポインタ53fは、コマンドバッファ53dへのコマンドの書き込み位置を示すポインタであり、2バイトで構成される1(単位)のコマンドがコマンドバッファ53dへ書き込まれると、その値は「2」加算される。前述した通り、コマンドバッファ53dはリングバッファとして構成されるので、コマンド入力ポインタ53fの値がコマンドバッファ53dのサイズ以上となると、その値は「0」クリアされる。コマンド入力ポインタ53fの値は、メイン処理(S61)でコマンドの設定がなされると更新される。   The command input pointer 53f is a pointer indicating a command write position to the command buffer 53d. When a 1 (unit) command composed of 2 bytes is written to the command buffer 53d, the value is incremented by “2”. The As described above, since the command buffer 53d is configured as a ring buffer, when the value of the command input pointer 53f exceeds the size of the command buffer 53d, the value is cleared to “0”. The value of the command input pointer 53f is updated when a command is set in the main process (S61).

コマンド出力ポインタ53gは、コマンドバッファ53dからコマンドを読み出す場合の読み出し位置を示すポインタであり、コマンドの1データ(1バイト)の読み出し毎に、その値は「1」ずつ加算される。前述した通り、コマンドバッファ53dはリングバッファとして構成されるので、コマンド出力ポインタ53gの値がコマンドバッファ53dのサイズ以上となった場合にはその値は「0」クリアされる。コマンド出力ポインタ53gの値は、タイマ割込処理の中のコマンド出力処理(S21)でコマンドの1データが送信される毎に更新される。   The command output pointer 53g is a pointer that indicates a reading position when a command is read from the command buffer 53d, and the value is incremented by “1” every time one command data (1 byte) is read. As described above, the command buffer 53d is configured as a ring buffer. Therefore, when the value of the command output pointer 53g exceeds the size of the command buffer 53d, the value is cleared to “0”. The value of the command output pointer 53g is updated every time one command data is transmitted in the command output process (S21) in the timer interrupt process.

なお、前述したコマンドカウンタ53eに代えて、コマンド入力ポインタ53fの値とコマンド出力ポインタ53gの値との差を使用しても良い。   Instead of the command counter 53e described above, the difference between the value of the command input pointer 53f and the value of the command output pointer 53g may be used.

復電コマンドバッファ53hは、停電解消後の復電時に、主制御基板Cからサブ制御基板Sへ送信される復電時のコマンド(復電コマンド)を一時的に記憶するバッファである。この復電コマンドバッファ53hに記憶されたコマンドは、コマンドバッファ53dに記憶されたコマンドに優先して、主制御基板Cからサブ制御基板Sへ送信される。ここで復電コマンドは、復電処理(S63〜S67)の実行をサブ制御基板Sへ報せるためのコマンドであり、2バイトで構成されている。よって、復電コマンドバッファ53hも2バイトで構成されている。なお、復電コマンドが2バイト以上で構成される場合には、そのバイト数(データ数)に応じて、復電コマンドバッファ53hのサイズも変更される。   The power recovery command buffer 53h is a buffer that temporarily stores a power recovery command (power recovery command) transmitted from the main control board C to the sub control board S when power is restored after the power failure is resolved. The command stored in the power recovery command buffer 53h is transmitted from the main control board C to the sub control board S in preference to the command stored in the command buffer 53d. Here, the power recovery command is a command for reporting the execution of power recovery processing (S63 to S67) to the sub-control board S, and is composed of 2 bytes. Therefore, the power recovery command buffer 53h is also composed of 2 bytes. When the power recovery command is composed of 2 bytes or more, the size of the power recovery command buffer 53h is also changed according to the number of bytes (number of data).

復電コマンドカウンタ53iは、復電コマンドバッファ53hに記憶されているコマンドのデータ(バイト)数を記憶するカウンタである。前述した通り、本実施例の復電コマンドは2バイトで構成されるので、復電処理により復電コマンドカウンタ53iの値は「2」とされる(S64)。復電コマンドカウンタ53iの値は、復電コマンドが1データ送信される毎に「1」ずつ減算され、その値が「0」となると、復電コマンドの送信が完了する。その後は、コマンドバッファ53dにコマンドが記憶されていれば、そのコマンドがサブ制御基板Sへ送信される。   The power recovery command counter 53i is a counter that stores the number of command data (bytes) stored in the power recovery command buffer 53h. As described above, since the power recovery command of this embodiment is composed of 2 bytes, the value of the power recovery command counter 53i is set to “2” by the power recovery processing (S64). The value of the power recovery command counter 53i is decremented by “1” every time one power recovery command is transmitted. When the value becomes “0”, the transmission of the power recovery command is completed. Thereafter, if the command is stored in the command buffer 53d, the command is transmitted to the sub-control board S.

入出力ポート54は、前述した通りROM52及びRAM53を内蔵したMPU51と接続されると共に、各種のI/O装置と接続されている。具体的に入出力ポート54は、遊技状態をリセットするためのリセットスイッチ42と、設定キー挿入孔43内に設けられ設定キーの操作により遊技の当選確率を6段階に切り替えるための設定キースイッチ61と、1枚・2枚・マックスベットボタン26〜28と、クレジットボタン21と、スタートレバー29と、左・中・右回胴用ストップボタン22〜24と、払い出されたメダルを検出するための払出センサ62と、回胴L,M,Rの原点位置をそれぞれ検出する左・中・右回胴インデックスフォトセンサ63L,63M,63Rと、左・中・右の各回胴L,M,Rをそれぞれ回転させるための左・中・右回胴用ステッピングモータ64L,64M,64Rと、1枚〜3枚ベットランプ15〜17と、クレジット枚数表示部18と、ゲーム数表示部19と、払出枚数表示部20と、ホッパ駆動モータ65と、メダル通路切替ソレノイド66と、主制御基板Cから送信されるコマンドを受信して、スピーカ12から効果音などの出力制御を行うと共に表示用制御基板Dを制御してLCD13上に演出表示などを行わせるサブ制御基板Sと、更には、電源基板55に設けられた停電監視回路57とにそれぞれ接続されている。サブ制御基板Sには、上部ランプ11と、スピーカ12と、サブ制御基板Sから送信されるコマンドを受信してLCD13上に演出表示などを行う表示用制御基板Dとがそれぞれ接続されている。なお、サブ制御基板Sと表示用制御基板Dとは、データ等の送受信が双方向に可能に構成されている。   As described above, the input / output port 54 is connected to the MPU 51 including the ROM 52 and the RAM 53 and to various I / O devices. Specifically, the input / output port 54 includes a reset switch 42 for resetting the gaming state, and a setting key switch 61 provided in the setting key insertion hole 43 for switching the winning probability of the game to six stages by operating the setting key. In order to detect paid out medals, one, two, max bet buttons 26-28, a credit button 21, a start lever 29, left / middle / right turn cylinder stop buttons 22-24. Payout sensor 62, left, middle, and right rotator index photosensors 63L, 63M, and 63R that detect the origin positions of the rotators L, M, and R, and left, middle, and right rotators L, M, and R, respectively. Stepping motors 64L, 64M, 64R for rotating the left, middle and right turn cylinders, 1 to 3 bet lamps 15 to 17, a credit number display unit 18, Receiving a command transmitted from the main control board C, and outputting a sound effect and the like from the speaker 12. The game number display unit 19, the payout number display unit 20, the hopper drive motor 65, the medal passage switching solenoid 66 and the main control board C are received. The control circuit board D is connected to the sub-control board S for controlling the display control board D and performing the effect display on the LCD 13, and to the power failure monitoring circuit 57 provided on the power supply board 55. Connected to the sub control board S are an upper lamp 11, a speaker 12, and a display control board D that receives a command transmitted from the sub control board S and displays an effect on the LCD 13. Note that the sub-control board S and the display control board D are configured so that data can be transmitted and received bidirectionally.

電源基板55は、前述した電源ボックス44内に設けられており、主制御基板Cをはじめ、スロットマシン1の各電子機器に駆動電力を供給する電源部56と、電源断の発生を監視する停電監視回路57とを備えている。スロットマシン1の電源のオフ後には、電源基板55の電源部56からRAM53へバックアップ電圧が供給される。   The power supply board 55 is provided in the above-described power supply box 44, and includes a power supply unit 56 that supplies drive power to the main control board C and each electronic device of the slot machine 1, and a power failure that monitors the occurrence of power interruption. And a monitoring circuit 57. After the power of the slot machine 1 is turned off, a backup voltage is supplied from the power supply unit 56 of the power supply board 55 to the RAM 53.

停電監視回路57は、停電等の発生による電源断時(電源スイッチ41のオフによる電源断を含む)に、主制御基板CのNMI端子および入出力ポート54へ停電信号58を出力するための回路である。この停電監視回路57は、電源基板55から出力される最も大きい電圧である直流安定24ボルトの電圧を監視し、この電圧が22ボルト未満になった場合に停電(電源断)の発生と判断して、停電信号58を出力するように構成されている。この停電信号58の出力によって、主制御基板Cは、停電の発生を認識し、停電時処理(S13)を実行する。なお、電源基板55は、直流安定24ボルトの電圧が22ボルト未満になった後においても、停電時処理の実行に充分な時間の間、制御系の駆動電圧である5ボルトの出力を正常値に維持するように構成されている。よって、主制御基板Cは、停電時処理を正常に実行することができる。また、停電監視回路57を、電源基板55ではなく、例えば主制御基板Cに設けるようにしても良い。   The power failure monitoring circuit 57 is a circuit for outputting a power failure signal 58 to the NMI terminal and the input / output port 54 of the main control board C when the power is shut down due to the occurrence of a power failure or the like (including power failure due to the power switch 41 being turned off). It is. The power failure monitoring circuit 57 monitors the voltage of 24 VDC, which is the largest voltage output from the power supply board 55, and determines that a power failure (power failure) has occurred when this voltage falls below 22 volts. Thus, the power failure signal 58 is output. Based on the output of the power failure signal 58, the main control board C recognizes the occurrence of the power failure and executes the power failure process (S13). Note that the power supply board 55 outputs the output of 5 volts, which is the drive voltage of the control system, to a normal value for a time sufficient for the execution of the power failure process even after the DC stable voltage of 24 volts becomes less than 22 volts. Configured to maintain. Therefore, the main control board C can normally execute the power failure process. Further, the power failure monitoring circuit 57 may be provided not on the power supply board 55 but on the main control board C, for example.

次に、図4から図8に示すフローチャートを参照して、主制御基板Cで行われる各処理について説明する。図4は、停電の発生等により停電監視回路57から停電信号58が出力された場合に主制御基板Cで実行されるNMI割込処理のフローチャートである。停電信号58がMPU51のNMI端子へ入力されると、このNMI割込処理が即座に実行される。   Next, each process performed on the main control board C will be described with reference to the flowcharts shown in FIGS. FIG. 4 is a flowchart of the NMI interrupt process executed by the main control board C when the power failure signal 58 is output from the power failure monitoring circuit 57 due to the occurrence of a power failure or the like. When the power failure signal 58 is input to the NMI terminal of the MPU 51, this NMI interrupt process is immediately executed.

NMI割込処理では、まずAレジスタ(アキュムレータ)及びFレジスタ(フラグレジスタ)をRAM53内に設けられたスタックエリアへ退避する(S1)。次に、停電フラグ53aをオンして(S2)、停電の発生を記憶し、スタックエリアへ退避したAレジスタ及びFレジスタを復帰して(S3)、処理を終了する。なお、停電フラグ53aをオンする際に、AレジスタおよびFレジスタのいずれの内容をも破壊しない場合には、S1及びS3の処理は削除して、NMI割込処理は、S2の処理だけで構成される。   In the NMI interrupt processing, first, the A register (accumulator) and the F register (flag register) are saved in the stack area provided in the RAM 53 (S1). Next, the power failure flag 53a is turned on (S2), the occurrence of the power failure is stored, the A register and the F register saved in the stack area are restored (S3), and the process is terminated. When the power failure flag 53a is turned on, if the contents of both the A register and the F register are not destroyed, the processing of S1 and S3 is deleted, and the NMI interrupt processing is configured only by the processing of S2. Is done.

図5は、主制御基板Cで定期的(本実施例では1.490ms毎)に実行されるタイマ割込処理のフローチャートである。このタイマ割込処理では、各回胴用ステッピングモータ64L,64M,64Rの駆動制御をはじめ、各種I/O装置への入出力処理や、コマンド送信処理等が実行される。   FIG. 5 is a flowchart of a timer interrupt process that is periodically executed on the main control board C (every 1.490 ms in this embodiment). In this timer interrupt process, drive control of each stepping motor 64L, 64M, 64R for each cylinder, input / output process to various I / O devices, command transmission process, and the like are executed.

タイマ割込処理では、まず、メイン処理(図7のS61)で使用している全レジスタ(AF,BC,DE,HL,IX,IYレジスタ)の値をスタックエリアへ退避し(S11)、停電フラグ53aがオンされているか否かを確認する(S12)。停電フラグ53aがオンされていれば(S12:Yes)、図4のNMI割込処理で説明した通り停電の発生であるので、かかる場合には図6に示す停電時処理を実行する(S13)。一方、停電フラグ53aがオンされていなければ(S12:No)、停電は発生していないので、停電時処理(S13)をスキップして、処理をS14へ移行する。なお、停電時処理(S13)の詳細については、図6を参照しつつ後述する。   In the timer interrupt process, first, the values of all registers (AF, BC, DE, HL, IX, and IY registers) used in the main process (S61 in FIG. 7) are saved to the stack area (S11), and a power failure occurs. It is confirmed whether or not the flag 53a is turned on (S12). If the power failure flag 53a is turned on (S12: Yes), a power failure has occurred as described in the NMI interrupt processing of FIG. 4, so in this case, the power failure processing shown in FIG. 6 is executed (S13). . On the other hand, if the power failure flag 53a is not turned on (S12: No), a power failure has not occurred, so the process at power failure (S13) is skipped and the process proceeds to S14. Details of the power failure process (S13) will be described later with reference to FIG.

S14からの処理では、誤動作の発生を監視するウォッチドッグタイマの値を初期化するウォッチドッグタイマクリア処理(S14)と、割込終了宣言処理(S15)と、各種スイッチの状態を読み込むスイッチ状態読み込み処理(S16)と、左・中・右の各回胴L,M,Rを回転させるために左・中・右回胴用ステッピングモータ64L,64M,64Rを駆動する回胴モータ制御処理(S17)と、各種センサの状態を監視するセンサ監視処理(S18)と、各カウンタやタイマの値を減算するタイマ減算処理(S19)と、IN・OUTカウンタ処理(S20)と、サブ制御基板Sへコマンドを送信するコマンド出力処理(図8参照)(S21)と、クレジット枚数表示部18とゲーム数表示部19と払出枚数表示部20とにそれぞれ表示されるセグメントデータを設定するセグメントデータ設定処理(S22)と、そのセグメントデータ設定処理で設定されたセグメントデータを各表示部18〜20へそれぞれ表示するセグメントデータ表示処理(S23)と、入出力ポート54から出力データを出力するポート出力処理(S24)とが、順に実行される。   In the processing from S14, a watchdog timer clear process (S14) for initializing the value of a watchdog timer for monitoring the occurrence of malfunction, an interrupt end declaration process (S15), and a switch state reading for reading various switch states The process (S16) and the rotating motor control process (S17) for driving the stepping motors 64L, 64M, and 64R for the left, middle, and right rotator to rotate the left, middle, and right rotators L, M, and R A sensor monitoring process (S18) for monitoring the states of various sensors, a timer subtraction process (S19) for subtracting the value of each counter or timer, an IN / OUT counter process (S20), and a command to the sub-control board S. Command output processing (see FIG. 8) (S21) for transmitting the credit, the credit number display unit 18, the game number display unit 19, and the payout number display unit 20 respectively. Segment data setting process (S22) for setting the segment data to be displayed, segment data display process (S23) for displaying the segment data set by the segment data setting process on each of the display units 18 to 20, and input / output Port output processing (S24) for outputting output data from the port 54 is executed in order.

そして、これらの処理の実行後には、S11の処理でスタックエリアへ退避した各レジスタ(AF,BC,DE,HL,IX,IYレジスタ)の値をそれぞれのレジスタへ復帰し(S25)、次回のタイマ割込の発生を許容するべく、割込を許可して(S26)、このタイマ割込処理を終了する。   After execution of these processes, the values of the registers (AF, BC, DE, HL, IX, and IY registers) saved in the stack area in the process of S11 are restored to the respective registers (S25). In order to allow the generation of a timer interrupt, the interrupt is permitted (S26), and this timer interrupt process is terminated.

図6は、主制御基板Cで実行される停電時処理(S13)のフローチャートである。前述した通り、この停電時処理は、タイマ割込処理の中で実行される。即ち、停電時処理は、各回胴用ステッピングモータ64L,64M,64Rの駆動制御をはじめ、各種I/O装置への入出力処理や、コマンド送信処理等を行うタイマ割込処理の中で実行されるので、これらの各処理を中断することなく、停電時処理を実行することができる。よって、1のデータの送信途中やスイッチの読み込み途中、更にはカウンタ等の更新途中等に、停電時処理が実行されることはないので、即ちイレギュラーなタイミングで停電時処理が実行されることはないので、停電時処理(S13)及び復電処理(S63〜S67)において、停電時処理がイレギュラーなタイミングで実行されることを考慮したプログラムを不要として、プログラムを簡略化し且つ小容量化することができる。また、停電時処理(S13)は、その実行後にリターンされてタイマ割込処理に復帰することもあるが(S32,S42)、タイマ割込処理におけるレジスタ退避処理(S11)の直後に実行されるので、停電時処理自体で各レジスタの退避処理や復帰処理をする必要がなく、その分、プログラム容量を小容量化することができる。   FIG. 6 is a flowchart of the power failure process (S13) executed by the main control board C. As described above, this power failure process is executed in the timer interrupt process. That is, the power failure process is executed in the timer interrupt process for performing the input / output process to various I / O devices, the command transmission process, and the like, as well as the drive control of the stepping motors 64L, 64M, 64R for each cylinder. Therefore, the power failure process can be executed without interrupting these processes. Therefore, the power failure process is not executed during the transmission of 1 data, the reading of the switch, or the updating of the counter etc., that is, the power failure process is executed at irregular timing. There is no need for a program that takes into account that the power failure process is executed at irregular timing in the power failure process (S13) and the power recovery process (S63 to S67), thus simplifying the program and reducing the capacity. can do. Further, the power failure process (S13) may be returned after execution to return to the timer interrupt process (S32, S42), but is executed immediately after the register saving process (S11) in the timer interrupt process. Therefore, it is not necessary to save and restore each register during the power failure process itself, and the program capacity can be reduced accordingly.

停電時処理では、まず、コマンドカウンタ53eの値が奇数であるか否か、即ちコマンドの送信(出力)途中であるか否かを確認し(S31)、送信途中であれば(S31:Yes)、リターン命令を実行して停電時処理を中止する(S32)。本実施例では2バイトで1(単位)のコマンドが構成される。図5のタイマ割込処理では、コマンド出力処理(S21)により1バイトずつコマンドデータが送信(出力)されるので、1(単位)のコマンド送信を完了するためにはタイマ割込処理の実行が2回必要になる。S31の処理は、1バイト目のコマンドデータの送信完了後であって且つ2バイト目のコマンドデータの送信完了前である場合(コマンドカウンタ53eの値が奇数である場合)に、コマンドの送信途中と判断しており、かかる場合には停電時処理の実行を中止している(停電時処理を未実行としている)。未送信の2バイト目のコマンドデータは、リターン命令後(S32)に実行されるコマンド出力処理(S21)で送信されるので、次回のタイマ割込処理の際にはコマンドの送信は完了している。よって、停電時処理は、次回のタイマ割込処理の際に実行される。なお、前述した通り、停電時処理は、コマンド出力処理(S21)を行うタイマ割込処理の中で実行されるので、1バイトのコマンドデータの送信が停電時処理により途中で途切れることはない。   In the power failure process, first, it is confirmed whether or not the value of the command counter 53e is an odd number, that is, whether or not the command is being transmitted (output) (S31), and if it is in the middle of transmission (S31: Yes). Then, a return command is executed to stop the process at the time of power failure (S32). In this embodiment, 1 (unit) command is composed of 2 bytes. In the timer interrupt process of FIG. 5, command data is transmitted (output) byte by byte by the command output process (S21). Therefore, in order to complete 1 (unit) command transmission, the timer interrupt process must be executed. Needed twice. The process of S31 is in the middle of command transmission when transmission of command data of the first byte is completed and before transmission of command data of the second byte is completed (when the value of the command counter 53e is an odd number). In such a case, the execution of the power failure process is stopped (the power failure process is not executed). Since the command data of the second byte that has not been transmitted is transmitted in the command output process (S21) executed after the return instruction (S32), the transmission of the command is completed at the next timer interrupt process. Yes. Therefore, the power failure process is executed at the next timer interrupt process. As described above, the power failure process is executed in the timer interrupt process in which the command output process (S21) is performed. Therefore, transmission of 1-byte command data is not interrupted by the power failure process.

このように、停電時処理のはじめで、コマンドの送信途中であるか否かを確認し、送信途中であれば停電時処理を未実行とすることにより、コマンドの送信を完了した上で停電時処理を実行することができる。よって、コマンドの送信途中に停電時処理が実行されることを考慮して、停電時処理(S13)及び復電処理(S63〜S67)をプログラムする必要が無く、プログラムを簡略化して且つ小容量化することができる。なお、S31の判断ステップは、必ずしも停電時処理をコールした後に実行する必要はなく、停電時処理のコール前に、即ち図5のS12の処理の前または後に実行するようにしても良い。   In this way, at the beginning of the power failure process, it is confirmed whether or not the command is being transmitted, and if it is in the middle of transmission, the power failure process is not executed. Processing can be executed. Therefore, it is not necessary to program the power failure process (S13) and the power recovery process (S63 to S67) in consideration of the fact that the power failure process is executed during command transmission. Can be Note that the determination step of S31 does not necessarily need to be executed after the power failure process is called, but may be executed before the power failure process call, that is, before or after the process of S12 in FIG.

また、本実施例では、1のコマンド送信を完了するためには2回のタイマ割込処理の実行が必要なので、電源基板55は、停電の発生後、タイマ割込処理を少なくとも3回以上実行し且つ図6のS31からS38の各処理を実行するのに十分な時間の間(即ち1.490ms×3+α=4.47ms+α以上の間。本実施例では30msの間)、制御系の駆動電圧である5ボルトの出力を正常値に維持するように構成されている。よって、主制御基板Cは、コマンドの送信途中に停電が発生した場合にも、停電時処理を正常に実行することができる。   Further, in this embodiment, since it is necessary to execute the timer interrupt process twice in order to complete one command transmission, the power supply board 55 executes the timer interrupt process at least three times or more after the occurrence of a power failure. In addition, the drive voltage of the control system for a time sufficient to execute the processes of S31 to S38 in FIG. 6 (that is, 1.490 ms × 3 + α = 4.47 ms + α or more, in this embodiment, for 30 ms). The output of 5 volts is maintained at a normal value. Therefore, the main control board C can normally execute the power failure process even when a power failure occurs during the transmission of the command.

S31の処理において、コマンドの送信途中でなければ(S31:No)、以降のS33〜S38の処理によって停電時における制御の中断処理を実行する。まず、MPU51のスタックポインタの値をスタックポインタ保存メモリ53bへセーブし(S33)、チェックサム補正値メモリ53cの値を0クリアする(S34)。更に、全ての出力ポートの出力状態をクリアして全てのアクチュエータをオフする(S35)。RAM53の全ての値を加算してチェックサムを求め(S36)、求めたチェックサムを2の補数化してこれをチェックサム補正値メモリ53cへ書き込む(S37)。これにより、RAM53のチェックサムは「0」となるので、以降のRAM53への書き込みを禁止する(S38)。   In the process of S31, if the command is not being transmitted (S31: No), the control interruption process at the time of power failure is executed by the subsequent processes of S33 to S38. First, the stack pointer value of the MPU 51 is saved in the stack pointer storage memory 53b (S33), and the value in the checksum correction value memory 53c is cleared to 0 (S34). Further, the output states of all output ports are cleared and all actuators are turned off (S35). All the values in the RAM 53 are added to obtain a checksum (S36), the obtained checksum is complemented to 2 and written into the checksum correction value memory 53c (S37). As a result, the checksum of the RAM 53 becomes “0”, and subsequent writing to the RAM 53 is prohibited (S38).

その後、停電信号58の状態を入出力ポート54から読み込んで確認し(S39)、停電信号58が出力されている間は、かかる停電信号58の状態チェックを制御系の駆動電圧がダウンするまで繰り返す(無限ループする)(S39:Yes)。   Thereafter, the state of the power failure signal 58 is read from the input / output port 54 and confirmed (S39). While the power failure signal 58 is being output, the state check of the power failure signal 58 is repeated until the drive voltage of the control system is reduced. (Infinite loop) (S39: Yes).

一方、停電信号58の状態をチェックした結果、停電信号58が出力されていなければ(S39:No)、停電は解消したということなので、RAM53への書き込みを許可し(S40)、停電フラグ53aをオフした後に(S41)、リターン命令を実行して(S42)、タイマ割込処理へ復帰する。前述した通り停電時処理は、各レジスタの退避処理を行わずに実行されるので、リターン命令の実行の際に各レジスタの復帰処理が不要となり、その分、プログラムを小容量化することができる。また、停電時処理は、コール命令により実行されるので、元の処理へはリターン命令を実行するだけで復帰することができる。なお、S35の処理では、全ての
出力ポートの出力状態をクリアしているが、リターン命令の実行により(S42)、タイマ割込処理のS14〜S24の各処理が実行されて出力ポートの各状態が再出力されるので、何ら特別な処理を設けることなく、リターン命令の実行だけで、一旦クリアした出力ポートの出力状態をも復帰することができる。
On the other hand, if the power failure signal 58 is not output as a result of checking the state of the power failure signal 58 (S39: No), it means that the power failure has been resolved, so writing to the RAM 53 is permitted (S40), and the power failure flag 53a is set. After turning off (S41), a return instruction is executed (S42), and the process returns to the timer interrupt process. As described above, the power failure process is executed without saving each register, so that it is not necessary to restore each register when executing the return instruction, and the capacity of the program can be reduced accordingly. . In addition, since the power failure process is executed by a call instruction, it is possible to return to the original process only by executing a return instruction. In the process of S35, the output states of all the output ports are cleared. However, when the return instruction is executed (S42), the processes of S14 to S24 of the timer interrupt process are executed and each state of the output port is executed. Therefore, the output state of the output port once cleared can be restored only by executing the return instruction without providing any special processing.

更に、停電信号58の状態チェックを、停電時処理の実行時のみならず、停電時処理の実行後においても行うことにより、ノイズなどを原因として誤って停電フラグ53aがオンされて停電時処理が実行された場合にも、制御を無限ループさせること無く、正常に復帰することができる。なお、停電信号58の再確認処理は、S36の処理以降に実行されれば良いので、S37やS38の処理の前に実行するようにしても良い。これは、S36のRAM53のチェックサムを求める処理が比較的長い処理時間を要するので(本実施例では870μs)、該処理(S36)の後であれば、停電信号58の再確認処理は有効に機能するからである。停電信号58の再確認処理をS37やS38の処理の前に設けた場合には、該処理は1回のみ実行されることとなり、S38のRAM53への書き込み禁止処理の後は、何の判断ステップもない無限ループとなる。   Furthermore, by checking the state of the power failure signal 58 not only when the power failure process is performed, but also after the power failure process is performed, the power failure flag 53a is erroneously turned on due to noise and the power failure process is performed. Even when it is executed, the control can be returned to normal without causing an infinite loop. Note that the reconfirmation process of the power failure signal 58 may be performed after the process of S36, and therefore may be performed before the process of S37 or S38. This is because the process of obtaining the checksum of the RAM 53 in S36 requires a relatively long processing time (870 μs in this embodiment), and the reconfirmation process of the power failure signal 58 is effective after the process (S36). Because it works. When the reconfirmation process of the power failure signal 58 is provided before the process of S37 or S38, the process is executed only once. After the write prohibition process to the RAM 53 of S38, what judgment step is performed. There is no endless loop.

図7は、電源投入時に主制御基板Cで実行されるメイン処理のフローチャートである。スロットマシン1の電源が投入されると(停電の解消による電源入を含む)、この処理が実行される。まず、スタックポインタの値を設定し(S51)、割込モードを設定する(S52)。更に、各レジスタ及びI/O等の設定を行う(S53)。   FIG. 7 is a flowchart of a main process executed by the main control board C when the power is turned on. When the power of the slot machine 1 is turned on (including power-on due to power failure cancellation), this process is executed. First, a stack pointer value is set (S51), and an interrupt mode is set (S52). Further, each register and I / O are set (S53).

次に、停電フラグ53aとリセットスイッチ42の各オン状態を確認する(S54,S55)。停電フラグ53aのオンは電源断時に停電時処理が実行されたこと、即ちRAM53にデータがバックアップされていることを示し、リセットスイッチ42のオンはバックアップ状態のクリアが操作者によって指示されたことを示している。よって、停電フラグ53aがオンされており(S54:Yes)、且つリセットスイッチ42がオフされていれば(S55:No)、S56のRAMクリア処理の実行をスキップして、処理をS57へ移行する。逆に、停電フラグ53aがオフされているか(S54:No)、或いはリセットスイッチ42がオンされていれば(S55:Yes)、RAMクリア処理を実行して(S56)、RAM53の全ての内容を0クリアする。   Next, the on states of the power failure flag 53a and the reset switch 42 are confirmed (S54, S55). When the power failure flag 53a is turned on, it indicates that a power failure process has been executed when the power is turned off, that is, the data is backed up in the RAM 53, and when the reset switch 42 is turned on, the operator has instructed the clearing of the backup state. Show. Therefore, if the power failure flag 53a is turned on (S54: Yes) and the reset switch 42 is turned off (S55: No), the execution of the RAM clear process of S56 is skipped and the process proceeds to S57. . Conversely, if the power failure flag 53a is turned off (S54: No) or the reset switch 42 is turned on (S55: Yes), the RAM clear process is executed (S56), and all the contents of the RAM 53 are deleted. Clear 0.

次に、設定キースイッチ61がオンされているか否かを確認し(S57)、オンされていなければ(S57:No)、S58及びS59の各処理をスキップして処理をS60へ移行する。一方、設定キースイッチ61がオンされていれば(S57:Yes)、RAMクリア処理を実行して(S58)、RAM53の全ての内容を0クリアした後で、6段階確率設定処理(S59)を実行する。6段階確率設定処理では、遊技の当選確率が6段階に切り替えられる。   Next, it is confirmed whether or not the setting key switch 61 is turned on (S57). If it is not turned on (S57: No), each process of S58 and S59 is skipped and the process proceeds to S60. On the other hand, if the setting key switch 61 is turned on (S57: Yes), a RAM clear process is executed (S58), and after all the contents of the RAM 53 are cleared to 0, a 6-stage probability setting process (S59) is performed. Run. In the 6-stage probability setting process, the winning probability of the game is switched to 6 stages.

S60の処理では、停電フラグ53aがオンされているか否かを確認する(S60)。S54からS59の処理の中でRAMクリア処理(S56,S59)が実行されバックアップ状態がクリアされていれば、停電フラグ53aはオフされている(S60:No)。よって、かかる場合にはS63からS67の復電処理を実行すること無く、スロットマシン1の通常遊技を行う各処理へ移行する(S61)。この各処理(S61)が、スロットマシン1のメイン処理として繰り返し実行され、スロットマシン1の遊技が行われる。   In the process of S60, it is confirmed whether or not the power failure flag 53a is turned on (S60). If the RAM clear process (S56, S59) is executed in the processes from S54 to S59 and the backup state is cleared, the power failure flag 53a is turned off (S60: No). Therefore, in such a case, the process proceeds to each process for performing the normal game of the slot machine 1 without executing the power recovery process from S63 to S67 (S61). Each process (S61) is repeatedly executed as the main process of the slot machine 1, and the game of the slot machine 1 is performed.

一方、停電フラグ53aがオンされていれば(S60:Yes)、RAM53に記憶されたデータをクリアすることなく、バックアップ状態を有効にしたまま、S60の処理が実行されたということである。即ち、停電フラグ53aがオンされていれば、S51〜S53,S54:Yes,S55:No,S57:Noの経路をたどってS60の処理へ到達しているので、その間、サブルーチンコールは全くされておらず、スタックエリアへの書き込みを含め、RAM53のデータは全く書き替えられていない。停電時処理ではRAM53のチェックサム値を「0」としているので(図6のS37)、RAM53のデータが正常にバックアップされていれば、そのチェックサム値は「0」となっている。よって、かかる場合には、RAM53のチェックサム値を調べ(S62)、チェックサム値が正常であれば(チェックサム値が「0」であれば)(S62:Yes)、バックアップは正常と判断して、S63からS67の復電処理を実行する。   On the other hand, if the power failure flag 53a is turned on (S60: Yes), it means that the process of S60 has been executed while the backup state remains valid without clearing the data stored in the RAM 53. That is, if the power failure flag 53a is turned on, the route of S51 to S53, S54: Yes, S55: No, S57: No is followed to reach the processing of S60, and during that time, the subroutine call is not made at all. The data in the RAM 53 is not rewritten at all, including writing to the stack area. In the power failure process, the checksum value of the RAM 53 is set to “0” (S37 in FIG. 6). If the data of the RAM 53 is backed up normally, the checksum value is “0”. Therefore, in such a case, the checksum value of the RAM 53 is checked (S62). If the checksum value is normal (if the checksum value is “0”) (S62: Yes), the backup is determined to be normal. Then, the power recovery process from S63 to S67 is executed.

一方、S62の処理において、チェックサム値に異常があれば(チェックサム値が「0」でなければ)(S62:No)、バックアップ中にデータが破壊されるなどの異常が発生している。よって、かかる場合には、割込を禁止し(S68)、全ての出力ポートの出力状態をクリアして全てのアクチュエータをオフした後に(S69)、エラー表示処理を行って(S70)、バックアップエラーの発生を報知する。   On the other hand, in the process of S62, if there is an abnormality in the checksum value (if the checksum value is not “0”) (S62: No), an abnormality such as destruction of data occurs during backup. Therefore, in such a case, interrupts are prohibited (S68), the output status of all output ports is cleared and all actuators are turned off (S69), error display processing is performed (S70), and a backup error occurs. Announcing the occurrence of

S63からの復電処理では、まず、スタックポインタ保存メモリ53bの値をスタックポインタへ復帰し(S63)、スタックの状態を電源断前の状態に復帰させる。次に、復電時のコマンド(復電コマンド)を復電コマンドバッファ53hへ書き込み、書き込んだコマンドのデータ数を復電コマンドカウンタ53iへ書き込む(S64)。本実施例の復電時のコマンド設定では、通常のコマンドをコマンドバッファ53dに設定する場合とは逆に、先に送信するコマンドのデータを復電コマンドバッファ53hの下位アドレスに書き込み、後から送信するコマンドのデータを復電コマンドバッファ53hの上位アドレスに書き込む。即ち、復電コマンドバッファ53hの先頭アドレスに後から送信するコマンドのデータを書き込み、復電コマンドバッファ53hの先頭+1のアドレスに先に送信するコマンドのデータを書き込む。これは、図8のコマンド出力処理に示す通り、復電コマンドバッファ53hに記憶されるコマンドデータの送信順を、復電コマンドカウンタ53iの値に基づいて決定しているからである。また、本実施例の復電コマンドは1コマンドで構成されるので、即ち2データ(2バイト)で構成されるので、S64の処理により復電コマンドカウンタ53iの値は「2」の設定される。このように、復電時のコマンドを設定し、これをサブ制御基板Sへ送信(出力)して、復電処理の実行をサブ制御基板Sへ報せる。   In the power recovery processing from S63, first, the value of the stack pointer storage memory 53b is restored to the stack pointer (S63), and the stack state is restored to the state before power-off. Next, a command at the time of power recovery (power recovery command) is written in the power recovery command buffer 53h, and the number of data of the written command is written in the power recovery command counter 53i (S64). In the command setting at the time of power recovery of this embodiment, contrary to the case of setting a normal command in the command buffer 53d, the data of the command to be transmitted first is written in the lower address of the power recovery command buffer 53h and transmitted later. The command data to be written is written to the upper address of the power recovery command buffer 53h. That is, the data of the command to be transmitted later is written to the head address of the power recovery command buffer 53h, and the data of the command to be transmitted first is written to the head address + 1 of the power recovery command buffer 53h. This is because, as shown in the command output processing of FIG. 8, the transmission order of the command data stored in the power recovery command buffer 53h is determined based on the value of the power recovery command counter 53i. Further, since the power recovery command of this embodiment is composed of one command, that is, composed of two data (2 bytes), the value of the power recovery command counter 53i is set to “2” by the processing of S64. . In this way, a command at the time of power recovery is set, and this is transmitted (output) to the sub control board S, so that the execution of power recovery processing can be reported to the sub control board S.

更に、打ち止め・自動精算設定保存処理(S65)、スイッチ状態の初期化処理(S66)をそれぞれ実行した後に、停電フラグ53aをオフして(S67)、リターン命令を実行し、復電処理を終了する。リターン命令の実行により、MPU51のプログラムカウンタの値はスタックエリアに記憶されている停電時処理(図5のS13)の次のアドレスへ切り替わるので、停電時処理の次の処理である図5のS14の処理から制御が再開される。   Furthermore, after executing the stopping / automatic settlement setting saving process (S65) and the switch state initialization process (S66), the power failure flag 53a is turned off (S67), the return command is executed, and the power recovery process is completed. To do. By executing the return instruction, the value of the program counter of the MPU 51 is switched to the address next to the power failure process (S13 in FIG. 5) stored in the stack area, so S14 in FIG. Control is resumed from the above process.

図8は、コマンド出力処理(S21)のフローチャートである。コマンド出力処理は、メイン処理(S61)で設定された通常のコマンドおよび復電処理(S64)で設定された復電コマンドを、1データずつサブ制御基板Sへ送信するための処理であり、図5に示すタイマ割込処理の中で定期的に実行される。なお、復電コマンドは、通常のコマンドより優先してサブ制御基板Sへ送信される。   FIG. 8 is a flowchart of the command output process (S21). The command output process is a process for transmitting the normal command set in the main process (S61) and the power recovery command set in the power recovery process (S64) to the sub-control board S one by one. 5 is periodically executed in the timer interrupt process shown in FIG. The power recovery command is transmitted to the sub control board S with priority over the normal command.

まず、コマンドカウンタ53eの値が奇数であるか否か、即ちコマンドの送信(出力)途中であるか否かを確認し(S81)、送信途中であれば(S81:Yes)、処理をS84へ移行して、2データで構成される1コマンドの残りのデータを送信する。一方、コマンドカウンタ53eの値が偶数であれば(S81:No)、コマンドの送信途中ではなく、1(単位)のコマンドの送信は完了しているので、復電コマンドカウンタ53iの値が0か否かを確認する(S82)。復電コマンドカウンタ53iの値が0であれば(S82:Yes)、復電コマンドバッファ53hに復電コマンドは記憶されていない。よって、かかる場合には、コマンドカウンタ53eの値を確認し、その値が0であれば(S83:Yes)、送信すべきコマンドはコマンドバッファ53dに記憶されていないので、このコマンド出力処理を終了する。   First, it is confirmed whether or not the value of the command counter 53e is an odd number, that is, whether or not a command is being transmitted (output) (S81). If it is in the middle of transmission (S81: Yes), the process proceeds to S84. The remaining data of one command composed of two data is transmitted. On the other hand, if the value of the command counter 53e is an even number (S81: No), since the transmission of the command of 1 (unit) is completed, not during the transmission of the command, is the value of the power recovery command counter 53i 0? It is confirmed whether or not (S82). If the value of the power recovery command counter 53i is 0 (S82: Yes), the power recovery command is not stored in the power recovery command buffer 53h. Therefore, in such a case, the value of the command counter 53e is confirmed, and if the value is 0 (S83: Yes), the command to be transmitted is not stored in the command buffer 53d, so this command output processing is terminated. To do.

一方、コマンドカウンタ53eの値が0でなければ(S83:No)、送信すべきコマンドがコマンドバッファ53dに記憶されているので、処理をS84へ移行して、コマンドバッファ53dに記憶されるコマンドの送信を1データずつ行う。   On the other hand, if the value of the command counter 53e is not 0 (S83: No), since the command to be transmitted is stored in the command buffer 53d, the process proceeds to S84 and the command stored in the command buffer 53d is stored. Transmission is performed one data at a time.

S84からの処理では、まず、コマンドバッファ53dの先頭アドレスからコマンド出力ポインタ53gの値番目のデータをコマンド(コマンドを構成する1のデータ)としてサブ制御基板Sへ送信し(S84)、送信したデータを記憶するコマンドバッファ53dの内容を0クリアする(S85)。これにより、ノイズなどを原因として誤動作した場合にも、一度、送信したコマンドのデータを、重複して送信しないようにすることができる。なお、コマンドデータの「0」は、本実施例において何の処理も実行しない無実行コードに割り当てられている。   In the processing from S84, first, the value-th data of the command output pointer 53g is transmitted from the head address of the command buffer 53d to the sub control board S as a command (1 data constituting the command) (S84), and the transmitted data Is cleared to 0 (S85). As a result, even if a malfunction occurs due to noise or the like, it is possible to prevent the command data that has been transmitted once from being transmitted redundantly. Note that “0” in the command data is assigned to a non-executable code that does not execute any processing in this embodiment.

次に、コマンド出力ポインタ53gの値を1加算する(S86)。コマンドバッファ53dはリングバッファで構成されるので、加算後のコマンド出力ポインタ53gの値がコマンドバッファ53dのサイズ以上であれば(S87:Yes)、コマンド出力ポインタ53gの値を0クリアする(S88)。一方、加算後のコマンド出力ポインタ53gの値がコマンドバッファ53dのサイズ以上でなければ(S87:No)、S88の処理をスキップして、処理をS89へ移行する。S89の処理では、コマンドカウンタ53eの値を1減算して(S89)、このコマンド出力処理を終了する。   Next, 1 is added to the value of the command output pointer 53g (S86). Since the command buffer 53d is composed of a ring buffer, if the value of the command output pointer 53g after addition is equal to or larger than the size of the command buffer 53d (S87: Yes), the value of the command output pointer 53g is cleared to 0 (S88). . On the other hand, if the value of the command output pointer 53g after the addition is not equal to or larger than the size of the command buffer 53d (S87: No), the process of S88 is skipped and the process proceeds to S89. In the process of S89, 1 is subtracted from the value of the command counter 53e (S89), and this command output process is terminated.

コマンドカウンタ53eの値が偶数で1(単位)のコマンドの送信が完了しており(S81:No)且つ復電コマンドカウンタ53iの値が0でなく復電コマンドバッファ53hに復電コマンドが記憶されていれば(S82:No)、S90からS92の処理によって復電コマンドをサブ制御基板Sへ送信する。これにより、復電コマンドバッファ53hに記憶される復電コマンドが、コマンドバッファ53dに記憶される通常のコマンドより優先して、サブ制御基板Sへ送信される。   The command counter 53e has an even number and 1 (unit) command transmission has been completed (S81: No), and the power recovery command counter 53i is not 0, and the power recovery command is stored in the power recovery command buffer 53h. If so (S82: No), a power recovery command is transmitted to the sub-control board S by the processing from S90 to S92. As a result, the power recovery command stored in the power recovery command buffer 53h is transmitted to the sub control board S in preference to the normal command stored in the command buffer 53d.

まず、復電コマンドカウンタ53iの値を1減算し(S90)、次に、復電コマンドバッファ53hの先頭アドレスから復電コマンドカウンタ53iの値番目のデータをコマンド(コマンドを構成する1のデータ)としてサブ制御基板Sへ送信する(S91)。図7のS64の部分で説明した通り、復電コマンドのデータは、復電コマンドカウンタ53iの値に基づいて復電コマンドバッファ53hから読み出されて送信されるので、通常のコマンドをコマンドバッファ53dに設定する場合とは逆に、先に送信するコマンドのデータを復電コマンドバッファ53hの下位アドレスに、後から送信するコマンドのデータを復電コマンドバッファ53hの上位アドレスに書き込んでいる。よって、復電コマンドバッファ53hの先頭アドレスから復電コマンドカウンタ53iの値番目のデータをコマンドとしてサブ制御基板Sへ送信することにより、復電コマンドの送信を正常に行うことができる。S92の処理では、送信したデータを記憶する復電コマンドバッファ53hの内容を0クリアする(S92)。これにより、ノイズなどを原因として誤動作した場合にも、一度、送信した復電コマンドのデータを、重複して送信しないようにすることができる。S92の処理の実行後は、リターン命令を実行して、このコマンド出力処理を終了する。   First, the value of the power recovery command counter 53i is decremented by 1 (S90). Next, the value-th data of the power recovery command counter 53i is commanded from the head address of the power recovery command buffer 53h (1 data constituting the command). To the sub-control board S (S91). As described in S64 of FIG. 7, since the power recovery command data is read from the power recovery command buffer 53h and transmitted based on the value of the power recovery command counter 53i, a normal command is transmitted to the command buffer 53d. On the other hand, the command data to be transmitted first is written in the lower address of the power recovery command buffer 53h, and the data of the command to be transmitted later is written in the upper address of the power recovery command buffer 53h. Therefore, by transmitting the value-th data of the power recovery command counter 53i from the head address of the power recovery command buffer 53h to the sub control board S as a command, the power recovery command can be normally transmitted. In the process of S92, the contents of the power recovery command buffer 53h that stores the transmitted data are cleared to 0 (S92). Thereby, even when malfunctioning due to noise or the like, it is possible to prevent the data of the power recovery command that has been transmitted once from being transmitted redundantly. After executing the process of S92, a return instruction is executed, and this command output process is terminated.

以上説明したように、本実施例のスロットマシン1によれば、コマンドバッファ53dに加えて復電コマンドバッファ53hを備え、他のコマンドに優先して送信する必要のあるコマンド(例えば復電コマンド)は、復電コマンドバッファ53hへ設定し、コマンド出力処理(S21)では、復電コマンドバッファ53hに送信するべきコマンドが記憶されていれば、コマンドバッファ53dに記憶されるコマンドに優先して復電コマンドバッファ53hに記憶されるコマンドを送信するように構成している。よって、サブ制御基板Sへ他のコマンドに優先して送信したいコマンドがあれば、これを復電コマンドバッファ53hへ記憶することにより、該コマンドをコマンドバッファ53dに記憶される他のコマンドに優先してサブ制御基板Sへ送信することができる。即ち、1のコマンドを他のコマンドに優先してサブ制御基板Sへ送信することができるのである。   As described above, according to the slot machine 1 of the present embodiment, the power recovery command buffer 53h is provided in addition to the command buffer 53d, and a command (for example, power recovery command) that needs to be transmitted with priority over other commands. Is set in the power recovery command buffer 53h, and in the command output process (S21), if a command to be transmitted is stored in the power recovery command buffer 53h, the power recovery is given priority over the command stored in the command buffer 53d. A command stored in the command buffer 53h is transmitted. Therefore, if there is a command to be transmitted to the sub control board S with priority over other commands, this command is stored in the power recovery command buffer 53h, so that the command is prioritized over other commands stored in the command buffer 53d. Can be transmitted to the sub-control board S. That is, one command can be transmitted to the sub-control board S with priority over other commands.

なお、他のコマンドに優先して送信されるコマンドは、必ずしも復電コマンドに限られるものではなく、緊急性を要するコマンド、例えばエラーの発生を報せるコマンドなどを適用することができる。これらのコマンドを他のコマンドに優先してサブ制御基板Sへ送信する場合には、該コマンドを復電コマンドバッファ53hに書き込み、復電コマンドカウンタ53iの値をセットする。これにより、該コマンドが他のコマンドに優先してサブ制御基板Sへ送信される。   Note that the command transmitted with priority over other commands is not necessarily limited to the power recovery command, and a command that requires urgency, such as a command that reports the occurrence of an error, can be applied. When these commands are transmitted to the sub control board S in preference to other commands, the commands are written in the power recovery command buffer 53h, and the value of the power recovery command counter 53i is set. Thereby, the command is transmitted to the sub control board S in preference to other commands.

次に、図9及び図10を参照して、第2実施例について説明する。前記した第1実施例では、停電監視回路57から出力される停電信号58を、MPU51のNMI割込端子に入力し、NMI割込処理(図4)によって停電フラグ53aをオンし、その停電フラグ53aがオンされている場合に、タイマ割込処理の中で停電時処理(S13)を実行するようにしていた。   Next, a second embodiment will be described with reference to FIGS. 9 and 10. In the first embodiment described above, the power failure signal 58 output from the power failure monitoring circuit 57 is input to the NMI interrupt terminal of the MPU 51, and the power failure flag 53a is turned on by NMI interrupt processing (FIG. 4). When 53a is turned on, the power failure process (S13) is executed in the timer interrupt process.

これに対し第2実施例では、NMI割込処理を使用せず、タイマ割込処理において、入出力ポート54で停電監視回路57から出力される停電信号58の出力状態を読み込み、停電信号58が出力されている場合に停電時処理(S102)を実行するようにしたものである。このため第2実施例では、NMI割込処理(図4)と停電フラグ53aとが不要となり、代わって、RAMクリア処理(S56,S58)の実行を記憶する初期化フラグが設けられている。即ち、第1実施例では電源投入時の処理(図7)において、停電フラグ53aのオン状態がRAMクリア処理(S56,S58)の未実行を表していたが、第2実施例では停電フラグ53aの削除に伴って、初期化フラグを設け、その初期化フラグのオン状態によりRAMクリア処理(S56,S58)の実行を表すようにしている。以下、第2実施例の説明にあたり、前記した第1実施例と同一の部分には同一の符号を付してその説明を省略する。   In contrast, in the second embodiment, NMI interrupt processing is not used, and in the timer interrupt processing, the output state of the power failure signal 58 output from the power failure monitoring circuit 57 is read at the input / output port 54, and the power failure signal 58 is When it is output, the power failure process (S102) is executed. Therefore, in the second embodiment, the NMI interrupt process (FIG. 4) and the power failure flag 53a are not required, and an initialization flag for storing the execution of the RAM clear process (S56, S58) is provided instead. That is, in the first embodiment, the power failure flag 53a in the power-on process (FIG. 7) indicates that the RAM clear process (S56, S58) has not been executed, but in the second embodiment, the power failure flag 53a. With the deletion, an initialization flag is provided, and execution of the RAM clear processing (S56, S58) is represented by the ON state of the initialization flag. Hereinafter, in the description of the second embodiment, the same parts as those in the first embodiment are denoted by the same reference numerals, and the description thereof is omitted.

図9は、第2実施例のタイマ割込処理のフローチャートである。この処理では、レジスタ退避処理(S11)の後に、入出力ポート54を介して停電信号58の出力状態を読み込み、停電信号58が出力されている場合に(S101:Yes)、停電時処理(S102)を実行する。第2実施例の停電時処理(S102)は、図6に示す第1実施例の停電時処理(S13)において、停電フラグ53aをオフするS41の処理を削除して構成されるので、その説明は省略する。   FIG. 9 is a flowchart of the timer interrupt process of the second embodiment. In this process, after the register saving process (S11), the output state of the power failure signal 58 is read via the input / output port 54, and when the power failure signal 58 is output (S101: Yes), the power failure process (S102). ). The power failure process (S102) of the second embodiment is configured by deleting the process of S41 for turning off the power failure flag 53a in the power failure process (S13) of the first embodiment shown in FIG. Is omitted.

図10は、電源投入時に主制御基板Cで実行される第2実施例のメイン処理のフローチャートである。この処理では、リセットスイッチ42がオンされている場合(S55:Yes)のRAMクリア処理(S56)の実行後、及び設定キースイッチ61がオンされている場合(S57:Yes)のRAMクリア処理(S58)の実行後に、RAM53のクリアがなされたことを記憶するべく初期化フラグがオンされる(S111,S112)。   FIG. 10 is a flowchart of the main process of the second embodiment executed by the main control board C when the power is turned on. In this process, after executing the RAM clear process (S56) when the reset switch 42 is turned on (S55: Yes) and when the setting key switch 61 is turned on (S57: Yes) After execution of S58), an initialization flag is turned on to store that the RAM 53 has been cleared (S111, S112).

初期化フラグがオンされていれば(S113:Yes)、この初期化フラグをオフした後に(S114)、スロットマシン1の通常遊技を行う各処理へ移行する(S61)。一方、初期化フラグがオンされていなければ(S113:No)、RAMクリア処理(S56,S58)は実行されていないので、かかる場合には、RAM53のチェックサム値の確認後(S62)、チェックサム値が正常であれば(S62:Yes)、復電処理(S63〜S66)を実行する。   If the initialization flag is turned on (S113: Yes), after turning off the initialization flag (S114), the process proceeds to each process for performing the normal game of the slot machine 1 (S61). On the other hand, if the initialization flag is not turned on (S113: No), the RAM clear process (S56, S58) is not executed. In this case, after checking the checksum value of the RAM 53 (S62), the check is performed. If the thumb value is normal (S62: Yes), power recovery processing (S63 to S66) is executed.

この第2実施例においても、第1実施例の場合と同様に、停電時処理の実行タイミングを考慮することなく、メイン処理(S61)やタイマ割込処理の各処理(S14〜S24)をプログラムできるので、その分、プログラムを簡略化して小容量化を図ることができる。同様に、サブ制御基板Sへ他のコマンドに優先して送信したいコマンドがあれば、これを復電コマンドバッファ53hへ記憶することにより、該コマンドをコマンドバッファ53dに記憶される他のコマンドに優先してサブ制御基板Sへ送信することができる。即ち、1のコマンドを他のコマンドに優先してサブ制御基板Sへ送信することができるのである。   In the second embodiment, as in the first embodiment, the main process (S61) and the timer interrupt process (S14 to S24) are programmed without considering the execution timing of the power failure process. Therefore, the program can be simplified and the capacity can be reduced accordingly. Similarly, if there is a command to be transmitted to the sub control board S in preference to other commands, this command is stored in the power recovery command buffer 53h, so that the command is prioritized over other commands stored in the command buffer 53d. And transmitted to the sub-control board S. That is, one command can be transmitted to the sub-control board S with priority over other commands.

なお、上記実施例において、請求項1記載のコマンド送信手段としては、図8に示すコマンド出力処理(S21)が該当する。   In the above-mentioned embodiment, the command output means (S21) shown in FIG.

以上、実施例に基づき本発明を説明したが、本発明は上記実施例に何ら限定されるものではなく、本発明の趣旨を逸脱しない範囲内で種々の改良変形が可能であることは容易に推察できるものである。   The present invention has been described based on the embodiments. However, the present invention is not limited to the above-described embodiments, and various improvements and modifications can be easily made without departing from the spirit of the present invention. It can be guessed.

本発明をスロットマシン1以外の遊技機、例えば、第1から3種のパチンコ機に用いるようにしても良い。   You may make it use this invention for game machines other than the slot machine 1, for example, the 1st-3 types of pachinko machine.

本発明を上記実施例とは異なるタイプのパチンコ機等に実施しても良い。例えば、一度大当たりすると、それを含めて複数回(例えば2回、3回)大当たり状態が発生するまで、大当たり期待値が高められるようなパチンコ機(通称、2回権利物、3回権利物と称される)として実施しても良い。また、大当たり図柄が表示された後に、所定の領域に球を入賞させることを必要条件として特別遊技状態となるパチンコ機として実施しても良い。更に、パチンコ機以外にも、アレパチ、雀球、スロットマシン、いわゆるパチンコ機とスロットマシンとが融合した遊技機などの各種遊技機として実施するようにしても良い。   You may implement this invention in the pachinko machine etc. of a different type from the said Example. For example, once a big hit, a pachinko machine that raises the expected value of the big hit until a big hit state occurs (for example, two times or three times) including that (for example, a two-time right item, a three-time right item) May also be implemented. Moreover, after the jackpot symbol is displayed, it may be implemented as a pachinko machine that enters a special game state under the condition that a ball is awarded in a predetermined area. Further, in addition to the pachinko machine, the game machine may be implemented as various game machines such as an alepatchi, a sparrow ball, a slot machine, a game machine in which a so-called pachinko machine and a slot machine are integrated.

なお、スロットマシンは、例えばコインを投入して図柄有効ラインを決定させた状態で操作レバーを操作することにより図柄が変動され、ストップボタンを操作することにより図柄が停止されて確定される周知のものである。従って、スロットマシンの基本概念としては、「複数の識別情報からなる識別情報列を変動表示した後に識別情報を確定表示する可変表示手段を備え、始動用操作手段(例えば操作レバー)の操作に起因して識別情報の変動が開始され、停止用操作手段(例えばストップボタン)の操作に起因して、或いは、所定時間経過することにより、識別情報の変動が停止され、その停止時の確定識別情報が特定識別情報であることを必要条件として、遊技者に有利な特別遊技状態を発生させる特別遊技状態発生手段とを備えたスロットマシン」となり、この場合、遊技媒体はコイン、メダル等が代表例として挙げられる。   In the slot machine, for example, a symbol is changed by operating a control lever in a state where a symbol effective line is determined by inserting coins, and a symbol is stopped and confirmed by operating a stop button. Is. Therefore, the basic concept of the slot machine is that it is provided with variable display means for confirming and displaying the identification information after variably displaying the identification information string composed of a plurality of identification information, and resulting from the operation of the starting operation means (for example, the operation lever). Then, the change of the identification information is started, and the change of the identification information is stopped due to the operation of the operation means for stop (for example, the stop button) or after the lapse of a predetermined time, and the fixed identification information at the time of the stop Is a slot machine provided with special game state generating means for generating a special game state advantageous to the player on the condition that the specific identification information is a necessary condition. In this case, coins, medals, etc. are representative examples of game media As mentioned.

また、パチンコ機とスロットマシンとが融合した遊技機の具体例としては、複数の図柄からなる図柄列を変動表示した後に図柄を確定表示する可変表示手段を備えており、球打出用のハンドルを備えていないものが挙げられる。この場合、所定の操作(ボタン操作)に基づく所定量の球の投入の後、例えば操作レバーの操作に起因して図柄の変動が開始され、例えばストップボタンの操作に起因して、或いは、所定時間経過することにより、図柄の変動が停止され、その停止時の確定図柄がいわゆる大当たり図柄であることを必要条件として遊技者に有利な大当たり状態が発生させられ、遊技者には、下部の受皿に多量の球が払い出されるものである。   In addition, as a specific example of a gaming machine in which a pachinko machine and a slot machine are integrated, a variable display means for displaying a symbol after a symbol string composed of a plurality of symbols is displayed, and a handle for launching a ball is provided. What is not provided. In this case, after throwing a predetermined amount of spheres based on a predetermined operation (button operation), for example, the change of the symbol is started due to the operation of the operation lever, for example, due to the operation of the stop button, or With the passage of time, the fluctuation of the symbol is stopped, and a jackpot state advantageous to the player is generated on the condition that the confirmed symbol at the time of stoppage is a so-called jackpot symbol. A lot of balls are paid out.

以下に変形例を示す。請求項1記載の遊技機において、前記1のコマンドは複数のデータで構成されると共に、複数回に分けて前記主制御手段から前記サブ制御手段へ送信されるものであり、前記コマンド送信手段は、前記第2送信バッファに1以上のコマンドが記憶されており且つ1のコマンドの送信途中でない場合に、前記第2送信バッファに記憶されるコマンドを前記第1送信バッファに記憶されるコマンドに優先して送信するものであることを特徴とする遊技機1。ここで、1のコマンドの送信途中とは、1のコマンドを構成する複数のデータのうち、既に一部のデータを送信しており且つすべてのデータは送信していない状態をいう。例えば、1のコマンドが2データで構成される場合には、その2データのうち、1データだけが送信された状態をいう。また、1のコマンドが3データで構成される場合には、その3データのうち、1または2データが送信された状態をいう。1のコマンドが4データ以上で構成される場合にも同様である。この遊技機1によれば、第1送信バッファに記憶される1のコマンドの送信途中に、第2送信バッファに記憶されるコマンドの送信を防止することができるので、1のコマンドが複数のデータで構成され且つ複数回に分けて主制御手段からサブ制御手段へ送信されるものであっても、そのコマンドの送信を正確に行うことができる。   A modification is shown below. 2. The gaming machine according to claim 1, wherein the one command is composed of a plurality of data and is transmitted from the main control means to the sub-control means in a plurality of times. The command stored in the second transmission buffer has priority over the command stored in the first transmission buffer when one or more commands are stored in the second transmission buffer and the command is not being transmitted. The gaming machine 1 is characterized in that it transmits the data. Here, the middle of transmission of one command means a state in which a part of data among a plurality of data constituting one command has already been transmitted and all data has not been transmitted. For example, when one command is composed of two data, it means a state in which only one of the two data is transmitted. Further, when one command is composed of three data, it means a state in which one or two of the three data is transmitted. The same applies when one command is composed of four or more data. According to this gaming machine 1, it is possible to prevent the command stored in the second transmission buffer from being transmitted during the transmission of the one command stored in the first transmission buffer. The command can be transmitted accurately even if the command is transmitted from the main control means to the sub-control means in a plurality of times.

請求項1記載の遊技機または遊技機1において、前記コマンド送信手段は、前記第2送信バッファに記憶されるコマンドを送信した場合には、その第2送信バッファに記憶されるコマンドをすべて送信するまで前記第1送信バッファに記憶されるコマンドの送信を待機するものであることを特徴とする遊技機2。遊技機2によれば、2以上のコマンドを第2送信バッファに記憶した場合でも、その2以上のコマンドを第1送信バッファに記憶されるコマンドに優先して、主制御手段からサブ制御手段へ送信することができる。   2. The gaming machine or gaming machine 1 according to claim 1, wherein when the command transmission means transmits a command stored in the second transmission buffer, the command transmission means transmits all the commands stored in the second transmission buffer. A gaming machine 2 that waits for transmission of a command stored in the first transmission buffer until the first time. According to the gaming machine 2, even when two or more commands are stored in the second transmission buffer, the two or more commands are prioritized from the commands stored in the first transmission buffer and are transferred from the main control unit to the sub-control unit. Can be sent.

請求項1記載の遊技機または遊技機1若しくは2において、前記第2送信バッファは、前記第1送信バッファに比べてデータの記憶数が小さく構成されていることを特徴とする遊技機3。第2送信バッファに記憶されるコマンドは、緊急に送信されるべきコマンドであるので、第1送信バッファに記憶されるべきコマンドより、その種類も使用頻度も少ない。よって、第2送信バッファは第1送信バッファに比べてデータの記憶数を小さく構成することができる。遊技機3によれば、第2送信バッファは第1送信バッファに比べてデータの記憶数が小さく構成されているので、バッファとして使用されるメモリを有効に利用することができる。   2. The gaming machine according to claim 1, wherein the second transmission buffer is configured to have a smaller data storage number than the first transmission buffer. Since the command stored in the second transmission buffer is a command to be urgently transmitted, the type and frequency of use are less than the command to be stored in the first transmission buffer. Therefore, the second transmission buffer can be configured with a smaller number of data storage than the first transmission buffer. According to the gaming machine 3, since the second transmission buffer is configured with a smaller number of data storage than the first transmission buffer, the memory used as the buffer can be used effectively.

請求項1記載の遊技機または遊技機1から3のいずれかにおいて、前記第2送信バッファに記憶されるコマンドは、エラーの発生を報せるコマンドであることを特徴とする遊技機4。遊技機4によれば、エラーの発生を報せるコマンドは他のコマンドに優先して主制御手段からサブ制御手段へ送信されるので、サブ制御手段へエラーの発生をいち早く報せて、サブ制御手段にエラー時の対処をいち早く行わせることができる。   4. The gaming machine 4 according to claim 1, wherein the command stored in the second transmission buffer is a command for reporting the occurrence of an error. According to the gaming machine 4, since the command that reports the occurrence of an error is transmitted from the main control means to the sub-control means in preference to the other commands, the sub-control means can promptly report the occurrence of the error to the sub-control means. Can promptly deal with errors.

請求項1記載の遊技機または遊技機1から4のいずれかにおいて、前記第2送信バッファに記憶されるコマンドは、停電解消による復電を報せるコマンドであることを特徴とする遊技機5。遊技機5によれば、停電解消による復電を報せるコマンドは他のコマンドに優先して主制御手段からサブ制御手段へ送信される。よって、未送信のコマンドが第1送信バッファに残ったまま停電となっても、停電解消後には、第1送信バッファに残された未送信のコマンドに優先して復電を報せるコマンドをサブ制御手段へ送信することができる。   4. The gaming machine 5 according to claim 1, wherein the command stored in the second transmission buffer is a command for reporting power recovery due to power failure cancellation. According to the gaming machine 5, a command for reporting power restoration due to power failure cancellation is transmitted from the main control means to the sub-control means in preference to other commands. Therefore, even if an unsent command remains in the first transmission buffer and a power failure occurs, after the power failure is resolved, a command that reports power recovery prior to the unsent command left in the first transmission buffer It can be transmitted to the control means.

請求項1記載の遊技機または遊技機1から5のいずれかにおいて、前記コマンド送信手段は、送信後のデータが記憶される第1送信バッファの内容又は第2送信バッファの内容をクリアするクリア手段を備えていることを特徴とする遊技機6。遊技機6によれば、送信後のデータが記憶される第1又は第2送信バッファの内容は、クリア手段によってクリアされるので、ノイズなどを原因として誤動作した場合にも、一度送信したデータを誤って重複送信することを防止できる。なお、送信バッファに記憶されるデータのクリア手法としては、例えば、何の処理も実行しない無実行データを上書きすることが挙げられる。   2. The gaming machine according to claim 1, wherein the command transmission means clears the contents of the first transmission buffer or the contents of the second transmission buffer in which data after transmission is stored. A gaming machine 6 comprising: According to the gaming machine 6, since the contents of the first or second transmission buffer in which the data after transmission is stored are cleared by the clearing means, the data once transmitted even if it malfunctions due to noise or the like It is possible to prevent erroneous duplicate transmission. An example of a method for clearing data stored in the transmission buffer is to overwrite non-executable data that does not execute any processing.

請求項1記載の遊技機または遊技機1から6のいずれかにおいて、前記第1送信バッファはそのサイズが2のn乗のリングバッファとして構成され、その第1送信バッファに設定されたコマンドの読み出し位置を記憶する出力ポインタを備え、その出力ポインタの値の更新は、その出力ポインタの更新後の値と前記第1送信バッファのサイズマイナス1の値とで2進数によるアンド論理をとった結果を前記出力ポインタの値として行われることを特徴とする遊技機7。遊技機7によれば、出力ポインタの値の更新は、出力ポインタの更新後の値にアンド論理をした結果の値とするだけなので、第1送信バッファがリングバッファとして構成され、更新後の出力ポインタの値が第1送信バッファのサイズオーバーをした場合などに条件分岐命令を用いることなく、出力ポインタの更新を簡易に行うことができる。なお、nは自然数である。   2. The gaming machine according to claim 1, wherein the first transmission buffer is configured as a ring buffer having a size of 2 to the power of 2, and reading of a command set in the first transmission buffer is performed. An output pointer for storing the position is provided, and the update of the value of the output pointer is performed by taking the result of ANDing the binary number with the updated value of the output pointer and the size of the first transmission buffer minus one. The gaming machine 7 is performed as the value of the output pointer. According to the gaming machine 7, the update of the value of the output pointer is only a value obtained by ANDing the updated value of the output pointer, so the first transmission buffer is configured as a ring buffer, and the output after the update The output pointer can be easily updated without using a conditional branch instruction when the value of the pointer exceeds the size of the first transmission buffer. Note that n is a natural number.

遊技機7において、前記第1送信バッファへのコマンドの設定位置を記憶する入力ポインタを備え、その入力ポインタの値の更新は、その入力ポインタの更新後の値と前記第1送信バッファのサイズマイナス1の値とで2進数によるアンド論理をとった結果を前記入力ポインタの値として行われることを特徴とする遊技機8。遊技機8によれば、入力ポインタの値の更新は、入力ポインタの更新後の値にアンド論理をした結果の値とするだけなので、第1送信バッファがリングバッファとして構成され、更新後の入力ポインタの値が第1送信バッファのサイズオーバーをした場合などに条件分岐命令を用いることなく、入力ポインタの更新を簡易に行うことができる。   The gaming machine 7 includes an input pointer for storing a command setting position for the first transmission buffer, and the value of the input pointer is updated after the updated value of the input pointer and the size of the first transmission buffer minus The gaming machine 8 is characterized in that the result of AND logic in binary number with the value of 1 is performed as the value of the input pointer. According to the gaming machine 8, the update of the value of the input pointer is only a value obtained by ANDing the updated value of the input pointer. Therefore, the first transmission buffer is configured as a ring buffer, and the input after the update is performed. The input pointer can be easily updated without using a conditional branch instruction when the value of the pointer exceeds the size of the first transmission buffer.

請求項1記載の遊技機または遊技機1から8のいずれかにおいて、電源断後もデータを保持するデータ記憶手段と、停電発生時に停電信号を出力する停電監視手段と、その停電監視手段から停電信号が出力された場合に、データを前記データ記憶手段へ退避すると共に制御の中断処理を実行する停電時手段と、停電解消後にその停電時手段によって前記データ記憶手段へ退避されたデータを復帰して中断した処理を再開する復電手段とを備え、前記停電時手段は、割込の禁止設定が可能な割込処理の中で所定のタイミングで実行されるものであることを特徴とする遊技機9。   2. The gaming machine according to claim 1, wherein the data storage means retains data even after the power is cut off, the power failure monitoring means for outputting a power failure signal when a power failure occurs, and the power failure monitoring means When a signal is output, the power saving means for saving the data to the data storage means and executing the control interruption process and the data saved to the data storage means by the power failure means after the power failure is restored are restored. A power recovery means for restarting the interrupted process, and the power failure means is executed at a predetermined timing in an interrupt process capable of setting an interrupt prohibition. Machine 9.

スロットマシンやパチンコ機の制御は、停電等の発生によって電源が突然切断されても、停電の解消後(電源の再入時)には電源断時の状態から遊技が再開されるように構成されている。停電の解消後に電源断時の状態から遊技を再開するためには、停電発生時に、所定の停電時処理を実行する必要がある。かかる停電時処理は、制御系の駆動電圧がダウンするまでの僅かな時間に完了しなければならない。よって、停電の発生後、直ちに停電時処理を実行するため、停電の発生を検出する停電監視回路を設け、停電の発生時にその停電監視回路から出力される停電信号を、割込の禁止設定ができないノンマスカブル割込端子に入力し、そのノンマスカブル割込によって停電時処理を実行する。これにより、停電発生時に停電時処理が即座に実行される。   Control of slot machines and pachinko machines is configured so that even if the power is suddenly cut off due to a power failure, the game is resumed from the power-off state after the power failure is resolved (when power is turned on again). ing. In order to resume the game from the power-off state after the power failure is resolved, it is necessary to execute predetermined power failure processing when the power failure occurs. Such a power failure process must be completed in a short time until the drive voltage of the control system decreases. Therefore, a power outage monitoring circuit that detects the occurrence of a power outage is provided in order to immediately execute the power outage process after a power outage occurs. Input to the non-maskable interrupt terminal that cannot be performed, and execute the power failure processing by the non-maskable interrupt. As a result, the power failure process is immediately executed when a power failure occurs.

しかしながら、停電時処理をノンマスカブル割込で行う場合、停電はいつ発生するのか分からないので、停電時処理がいつ実行されても支障のないように、メイン処理や他の割込処理をプログラムしなければならず、その結果、プログラムが煩雑化すると共に大容量化するという問題点がある。例えば、データの更新を行う場合には、通常、そのデータの更新とその更新の完了の記憶とをする必要がある。しかし、停電時処理をノンマスカブル割込で行うと、データの更新後であってその更新の完了の記憶前に停電時処理が実行される場合があり、かかる場合には、停電解消後の復電処理において、データの更新の完了が記憶されていないので、既に更新されているデータを再度更新することになり、プログラムが暴走する。このため、停電時処理をノンマスカブル割込で行う場合、データの更新後であってその更新の完了の記憶前に停電時処理が実行された場合には、停電解消後の復電処理において、データの再更新を行わないようにプログラムする必要があり、その結果、プログラムが煩雑化すると共に大容量化するのである。このようなケースは、データの更新を行う場合に限られず、プログラム中に多々存在する。   However, when power failure processing is performed with non-maskable interrupts, it is not known when a power failure occurs, so the main processing and other interrupt processing must be programmed so that there is no problem when the power failure processing is executed. As a result, there is a problem that the program becomes complicated and the capacity increases. For example, when updating data, it is usually necessary to update the data and store the completion of the update. However, if non-maskable interrupt processing is performed during a power failure, the power failure processing may be performed after the data is updated and before the completion of the update is stored. In the processing, since the completion of the data update is not stored, the already updated data is updated again, and the program runs out of control. For this reason, when performing power failure processing with non-maskable interrupts, if the power failure processing is executed after the data update and before storing the completion of the update, Therefore, it is necessary to program so as not to perform re-updating. As a result, the program becomes complicated and the capacity increases. Such a case is not limited to data updating, and there are many cases in the program.

遊技機9によれば、停電時手段は、停電監視手段から停電信号が出力された場合に、データをデータ記憶手段へ退避すると共に制御の中断処理を実行するものである。この停電時手段は、割込の禁止設定が可能な割込処理の中で所定のタイミングで実行されるので、他の制御に支障を来すことのない好適なタイミングで実行される。よって、停電時手段の実行タイミングを考慮することなく、メイン処理や割込処理をプログラムできるので、その分、プログラムを簡略化できると共に、そのプログラムの小容量化を図ることができる。   According to the gaming machine 9, the power failure means saves data to the data storage means and executes control interruption processing when a power failure signal is output from the power failure monitoring means. Since the power failure means is executed at a predetermined timing in the interrupt processing that can be set to prohibit the interruption, it is executed at a suitable timing that does not interfere with other controls. Therefore, since the main process and the interrupt process can be programmed without considering the execution timing of the means at the time of a power failure, the program can be simplified correspondingly and the capacity of the program can be reduced.

遊技機9において、前記データ記憶手段は、遊技の状態を示すメモリやフラグの各記憶エリアと、スタックエリアとを有しており、前記停電時手段は、前記停電監視手段から停電信号が出力された場合にスタックポインタの値を前記データ記憶手段へ退避すると共に、前記復電手段は、停電解消後にそのデータ記憶手段へ退避された値をスタックポインタへ復帰するものであることを特徴とする遊技機10。スタックポインタの値は、停電発生時に停電時手段によりデータ記憶手段に退避されて電源断中も保持され、停電解消時には復電手段によりデータ記憶手段からスタックポインタへ復帰される。メモリやフラグの各記憶エリア及びスタックエリアは、電源断後もデータを保持可能なデータ記憶手段に設けられているので、このデータ記憶手段へ停電発生時にスタックポインタの値を記憶することにより、電源断後においても遊技の状態を保持して、停電解消後に遊技を再開することができる。   In the gaming machine 9, the data storage means has memory and flag storage areas indicating a game state and a stack area, and the power failure means outputs a power failure signal from the power failure monitoring means. In the game, the value of the stack pointer is saved to the data storage means when the power is restored, and the power recovery means returns the value saved to the data storage means to the stack pointer after the power failure is resolved. Machine 10. The value of the stack pointer is saved in the data storage means by the power failure means when a power failure occurs and is retained even when the power is cut off, and is restored from the data storage means to the stack pointer by the power recovery means when the power failure is resolved. Each storage area and stack area of the memory and flag is provided in a data storage means that can retain data even after the power is turned off, so by storing the value of the stack pointer in this data storage means when a power failure occurs, The game state can be maintained even after the interruption, and the game can be resumed after the power failure is resolved.

遊技機9または10において、前記停電時手段が実行される所定のタイミングは、前記割込処理におけるレジスタの退避処理後のタイミングであることを特徴とする遊技機11。停電時手段は、レジスタの退避処理後に実行されるので、停電時手段にてレジスタの退避処理を実行する必要がなく、その分、プログラムを小容量化できる。   In the gaming machine 9 or 10, the predetermined timing at which the power failure means is executed is a timing after a register saving process in the interrupt process. Since the power failure means is executed after the register saving process, it is not necessary to execute the register saving process at the power failure means, and the capacity of the program can be reduced accordingly.

遊技機9から11のいずれかにおいて、前記割込処理は定期的に実行されるものであることを特徴とする遊技機12。停電時手段は定期的に実行される割込処理の中で且つ所定のタイミングで実行されるので、割込処理の中の他の処理を分断することなく且つ特定のタイミングで、停電時手段を実行することができる。よって、停電時手段がイレギュラーなタイミングで実行されることを考慮することなく、他の処理(割込処理のみならずメイン処理も含む)をプログラムすることができるので、プログラムの簡略化と小容量化とを図ることができる。   The gaming machine 12 according to any one of the gaming machines 9 to 11, wherein the interrupt process is periodically executed. The power failure means is executed in the interrupt process periodically executed and at a predetermined timing. Therefore, the power failure means is not divided into other processes in the interrupt process and at a specific timing. Can be executed. Therefore, since it is possible to program other processes (including not only the interrupt process but also the main process) without considering that the power failure means is executed at irregular timing, the program can be simplified and reduced. Capacitance can be achieved.

遊技機9から12のいずれかにおいて、前記停電時手段は、前記割込処理において戻り先番地をスタックエリアへ記憶した後に処理を前記停電時手段へ移行することにより実行されるものであることを特徴とする遊技機13。停電時手段は、停電時手段の実行後の戻り先番地がスタックエリアに記憶された後に実行される。よって、復電手段は停電解消後に復電に伴う各処理(以下「復電処理」と略す)を実行した後にリターン命令を実行するだけで(又はスタックエリアに記憶された戻り先番地をMPUのプログラムカウンタにセットするだけで)、制御の実行番地を戻すことができ、プログラムを簡略化して小容量化することができる。なお、戻り先番地をスタックエリアへ記憶した後に停電時手段へ処理を移行するものとしては、停電時手段をコールするコール命令の実行や停電時手段の実行前にMPUのプログラムカウンタの値をスタックエリアへ退避しその後停電時手段へのジャンプ命令を実行するものが例示される。   In any of the gaming machines 9 to 12, the power failure means is executed by storing the return address in the stack area in the interrupt processing and then shifting the processing to the power failure means. Characteristic gaming machine 13. The power failure means is executed after the return address after execution of the power failure means is stored in the stack area. Therefore, the power recovery means simply executes the return command after executing each process (hereinafter referred to as “power recovery process”) associated with power recovery after the power failure is resolved (or the return address stored in the stack area is stored in the MPU). By simply setting the program counter, the execution address of the control can be returned, and the program can be simplified and the capacity can be reduced. In order to transfer the processing to the power failure means after storing the return address in the stack area, the MPU program counter value is stacked before the execution of the call instruction for calling the power failure means or the power failure means. An example of executing a jump command to the area and then to a power failure means is illustrated.

遊技機13において、戻り先番地をスタックエリアへ記憶した後に処理を前記停電時手段へ移行する処理は、プログラム中の1カ所にのみ設けられていることを特徴とする遊技機14。よって、停電時手段の実行後の戻り先番地、即ち復電手段による復電処理後に再開されるプログラムの番地も1カ所になる。従って、復電処理後には毎回同じ番地からプログラムを再開することができるので、プログラム再開時のイレギュラーな処理が不要となり、再開処理を簡略化してプログラムを小容量化することができる。   In the gaming machine 13, the gaming machine 14 is characterized in that the processing for transferring the processing to the power failure means after storing the return address in the stack area is provided only in one place in the program. Therefore, the return address after execution of the power failure means, that is, the address of the program resumed after the power recovery processing by the power recovery means is also one. Therefore, since the program can be restarted from the same address every time after the power recovery process, irregular processing at the time of restarting the program becomes unnecessary, so that the restart process can be simplified and the capacity of the program can be reduced.

遊技機9から14のいずれかにおいて、前記停電監視手段から停電信号が出力された場合に実行される割込の禁止設定が不可能なノンマスカブル割込手段と、そのノンマスカブル割込手段の実行により停電の発生を記憶する停電記憶手段とを備え、前記停電時手段はその停電記憶手段に停電の発生が記憶されている場合に実行されるものであることを特徴とする遊技機15。遊技機15によれば、ノンマスカブル割込手段によって停電の発生を即座に記憶し、その記憶に基づいて、割込の禁止設定が可能な割込処理の中で所定のタイミングで停電時手段を実行することができる。よって、他の制御に支障を来すことのない好適なタイミングで、停電時手段を迅速に実行することができる。   In any of the gaming machines 9 to 14, a non-maskable interrupt means that cannot be set to prohibit interruption, which is executed when a power failure signal is output from the power failure monitoring means, and the non-maskable interrupt means executes a power failure. And a power failure storage means for storing the occurrence of power failure, wherein the power failure time means is executed when the occurrence of a power failure is stored in the power failure storage means. According to the gaming machine 15, the occurrence of a power failure is immediately stored by the non-maskable interrupt means, and the power failure means is executed at a predetermined timing in the interrupt processing that can be set to prohibit the interruption based on the storage. can do. Therefore, the power failure means can be quickly executed at a suitable timing that does not hinder other controls.

遊技機9から14のいずれかにおいて、前記停電時手段は、割込の禁止設定が可能な前記割込処理の中で、前記停電監視手段から出力される停電信号の出力状態を確認し、その停電信号が出力されている場合に実行されるものであることを特徴とする遊技機16。遊技機16によれば、停電監視手段から出力される停電信号の出力状態を、ポート入力して確認し、停電信号が出力されている場合に停電時手段を実行することができる。   In any one of the gaming machines 9 to 14, the power failure means confirms the output state of the power failure signal output from the power failure monitoring means during the interrupt processing in which interrupt prohibition can be set. A gaming machine 16 that is executed when a power failure signal is output. According to the gaming machine 16, the power failure signal output state output from the power failure monitoring means can be confirmed by inputting the port, and the power failure means can be executed when the power failure signal is output.

遊技機9から16のいずれかにおいて、前記停電時手段は、スタックポインタの値を前記データ記憶手段へ退避する退避処理と、その退避処理の後に実行され前記データ記憶手段のチェックサムを算出する算出処理と、その算出処理によって算出されたチェックサムを2の補数化して前記データ記憶手段へ書き込む補正処理と、前記停電信号の出力状態を確認しその停電信号が出力されていない場合には前記停電時手段により中断された制御を再開する停電信号再確認処理とを有しており、その停電信号再確認処理は、前記算出処理の実行後に実行されるものであることを特徴とする遊技機17。算出処理の実行時間は、データ記憶手段の容量に応じて変化するものの比較的長い(実施例では870μs)。よって、その算出処理の実行後に停電信号の出力状態を再確認し、停電信号が出力されている場合に停電時における処理を継続し、出力されていない場合には停電時における処理を終了して停電時手段により中断した制御を再開する。これにより、ノイズなどの影響によって停電信号が誤検出(或いは誤出力)された結果、停電時手段が実行されても、元の制御へ復帰することができる。   In any of the gaming machines 9 to 16, the power failure means calculates a save process for saving the value of the stack pointer to the data storage means, and calculates a checksum of the data storage means executed after the save process Processing, correction processing for calculating the checksum calculated by the calculation processing to be complemented to 2 and writing the data to the data storage means, checking the output state of the power failure signal, and if the power failure signal is not output, the power failure A power failure signal reconfirmation process for resuming the control interrupted by the time means, and the power failure signal reconfirmation process is executed after execution of the calculation process. . Although the execution time of the calculation process varies depending on the capacity of the data storage means, it is relatively long (870 μs in the embodiment). Therefore, after executing the calculation process, reconfirm the output status of the power failure signal, and if the power failure signal is output, continue the processing at the time of the power failure, and if not, end the processing at the time of the power failure. Resumes control suspended by means of power failure. Thereby, even if the power failure means is executed as a result of erroneous detection (or erroneous output) of the power failure signal due to the influence of noise or the like, it is possible to return to the original control.

遊技機17において、前記停電時手段は、所定の停電時における処理の実行後に制御を無限ループさせて制御系の駆動電圧がダウンするのを待機するものであり、前記停電信号再確認処理は、その無限ループ中に設けられていることを特徴とする遊技機18。無限ループ時に停電が解消し、停電信号の出力が解除された場合には、停電信号再確認処理によって、停電時における処理が終了され、停電時手段により中断された制御が再開される。よって、停電が一旦発生しても、その停電が制御系の駆動電圧がダウンする前に解消すれば、制御を無限ループによって停止することなく再開することができる。   In the gaming machine 17, the power failure means waits for the drive voltage of the control system to be lowered by causing the control to be infinitely looped after execution of processing at a predetermined power failure. A gaming machine 18 characterized by being provided in the infinite loop. When the power failure is eliminated during the infinite loop and the output of the power failure signal is canceled, the processing at the time of the power failure is terminated by the power failure signal reconfirmation process, and the control interrupted by the power failure means is resumed. Therefore, even if a power failure occurs once, if the power failure is resolved before the drive voltage of the control system decreases, the control can be resumed without being stopped by an infinite loop.

遊技機9から18のいずれかにおいて、前記1のコマンドは2以上のデータで構成され、そのコマンドの2以上のデータのうち少なくとも1のデータの送信後であってそのコマンドの全データの送信完了前には、前記停電時手段の実行を待機する実行待機手段を備えていることを特徴とする遊技機19。遊技機19によれば、1のコマンドの全データの送信が完了した状態で停電時手段が実行されるので、コマンドの送信途中を考慮して停電時手段および復電手段を構成する必要がない。よって、その分、プログラムを簡略化して小容量化することができる。なお、停電時手段の実行の待機の態様としては、第1に、停電時手段の実行前にコマンドの送信状態を確認し、コマンドの全データの送信が未完了であれば、戻り先番地をスタックエリアへ記憶した後に処理を前記停電時手段へ移行する処理(例えば、停電時手段のコール命令)を未実行とするもの。第2に、一旦は停電時手段を実行し、その停電時手段の中でコマンドの送信状態を確認し、コマンドの全データの送信が未完了であれば、以降の停電時手段の各処理を未実行として停電時手段を終了するもの、などが例示される。   In any of the gaming machines 9 to 18, the one command is composed of two or more data, and after the transmission of at least one of the two or more data of the command, the transmission of all the data of the command is completed. A gaming machine 19 characterized by comprising execution standby means for waiting for execution of the power failure means before. According to the gaming machine 19, since the power failure means is executed in a state where transmission of all data of one command is completed, it is not necessary to configure the power failure means and the power recovery means in consideration of the command transmission in progress. . Therefore, the program can be simplified and the capacity can be reduced accordingly. As a standby mode for executing the power failure means, first, check the command transmission state before executing the power failure means, and if the transmission of all the command data is incomplete, the return address is set. Processing that shifts the processing to the power failure means after storing it in the stack area (for example, a call instruction for the power failure means) is not executed. Secondly, once the power failure means is executed, the command transmission status is confirmed in the power failure means, and if the transmission of all data of the command is incomplete, the subsequent processing of the power failure means is performed. An example in which the power failure means is terminated as not executed is exemplified.

遊技機19において、前記停電監視手段による停電信号の出力から、前記コマンドの全データの送信と前記停電時手段の実行とに充分な時間の間、制御系の駆動電圧を有効な状態に維持する電源手段を備えていることを特徴とする遊技機20。コマンドの送信状況によって停電時手段の実行が最も遅れた場合においても、電源手段により制御系の駆動電圧は有効な状態に維持される。よって、停電時手段を正常に完了することができる。   In the gaming machine 19, from the output of the power failure signal by the power failure monitoring means, the drive voltage of the control system is maintained in an effective state for a time sufficient for transmission of all data of the command and execution of the power failure means. A gaming machine 20 comprising power supply means. Even when execution of the power failure means is most delayed due to the command transmission status, the drive voltage of the control system is maintained in an effective state by the power supply means. Therefore, the power failure means can be completed normally.

請求項1記載の遊技機または遊技機1から20のいずれかにおいて、前記遊技機はパチンコ機であることを特徴とする遊技機21。中でも、パチンコ機の基本構成としては操作ハンドルを備え、その操作ハンドルの操作に応じて球を所定の遊技領域へ発射し、球が遊技領域内の所定の位置に配設された作動口に入賞(又は作動口を通過)することを必要条件として、表示装置において変動表示されている識別情報が所定時間後に確定停止されるものが挙げられる。また、特別遊技状態の発生時には、遊技領域内の所定の位置に配設された可変入賞装置(特定入賞口)が所定の態様で開放されて球を入賞可能とし、その入賞個数に応じた有価価値(景品球のみならず、磁気カードへ書き込まれるデータ等も含む)が付与されるものが挙げられる。   The gaming machine according to claim 1, wherein the gaming machine is a pachinko machine. Above all, the basic configuration of a pachinko machine is equipped with an operation handle, and in response to the operation of the operation handle, a ball is launched into a predetermined game area, and the ball is awarded to an operating port arranged at a predetermined position in the game area. As a necessary condition (or passing through the working port), the identification information variably displayed on the display device is confirmed and stopped after a predetermined time. In addition, when a special gaming state occurs, a variable winning device (specific winning opening) disposed at a predetermined position in the gaming area is opened in a predetermined manner so that a ball can be won, and a value corresponding to the number of winnings is obtained. Examples include those to which values (including data written on magnetic cards as well as premium balls) are given.

請求項1記載の遊技機または遊技機1から20のいずれかにおいて、前記遊技機はスロットマシンであることを特徴とする遊技機22。中でも、スロットマシンの基本構成としては、「複数の識別情報からなる識別情報列を変動表示した後に識別情報を確定表示する可変表示手段を備え、始動用操作手段(例えば操作レバー)の操作に起因して、或いは、所定時間経過することにより、識別情報の変動が停止され、その停止時の確定識別情報が特定識別情報であることを必要条件として、遊技者に有利な特別遊技状態を発生させる特別遊技状態発生手段とを備えた遊技機」となる。この場合、遊技媒体はコイン、メダル等が代表例として挙げられる。   The gaming machine 22 according to claim 1, wherein the gaming machine is a slot machine. Above all, the basic configuration of the slot machine is “variable display means for confirming and displaying the identification information after variably displaying the identification information string composed of a plurality of identification information, and resulting from the operation of the starting operation means (for example, the operation lever). Alternatively, when a predetermined time elapses, the variation of the identification information is stopped, and a special gaming state advantageous to the player is generated on the condition that the fixed identification information at the time of the stop is the specific identification information. A gaming machine provided with a special gaming state generating means. In this case, examples of the game media include coins and medals.

請求項1記載の遊技機または遊技機1から20のいずれかにおいて、前記遊技機はパチンコ機とスロットマシンとを融合させたものであることを特徴とする遊技機23。中でも、融合させた遊技機の基本構成としては、「複数の識別情報からなる識別情報列を変動表示した後に識別情報を確定表示する可変表示手段を備え、始動用操作手段(例えば操作レバー)の操作に起因して識別情報の変動が開始され、停止用操作手段(例えばストップボタン)の操作に起因して、或いは、所定時間経過することにより、識別情報の変動が停止され、その停止時の確定識別情報が特定識別情報であることを必要条件として、遊技者に有利な特別遊技状態を発生させる特別遊技状態発生手段とを備え、遊技媒体として球を使用すると共に、前記識別情報の変動開始に際しては所定数の球を必要とし、特別遊技状態の発生に際しては多くの球が払い出されるように構成されている遊技機」となる。   The gaming machine according to claim 1, wherein the gaming machine is a combination of a pachinko machine and a slot machine. Among them, the basic configuration of the fused gaming machine includes “a variable display means for confirming and displaying identification information after variably displaying an identification information string composed of a plurality of identification information, and a starting operation means (for example, an operation lever). The fluctuation of the identification information is started due to the operation, and the fluctuation of the identification information is stopped due to the operation of the operation means for stop (for example, the stop button) or after a predetermined time elapses. Special game state generating means for generating a special game state advantageous to the player on the condition that the confirmed identification information is the specific identification information, and using a ball as a game medium and starting to change the identification information In this case, the game machine is configured to require a predetermined number of balls and to be paid out when a special gaming state occurs.

1 スロットマシン(遊技機)
51 MPU
52 ROM
53 RAM(記憶手段)
53a 停電フラグ
53b スタックポインタ保存メモリ
53c チェックサム補正値メモリ
53d コマンドバッファ(第1記憶手段
53e コマンドカウンタ
53h 復電コマンドバッファ(第2記憶手段
53i 復電コマンドカウンタ
54 入出力ポート(入力手段、入力ポート)
55 電源基板(電源手段)
57 停電監視回路(出力手段)
C 主制御基板(主制御手段)
S サブ制御基板(サブ制御手段)
S21 コマンド出力処理(コマンド送信用処理、コマンド送信用処理実行手段)
S63〜S67 (復電時処理)
S81:Yes,S84〜S89 (第1送信手段)
S81:No,S82:No,S90〜S92 (第2送信手段)
S81:No,S82:Yes,S83:No,S84〜S89 (第3送信手段)
S101 (確認手段、確認用処理)
S102 (電断時処理実行手段)
1 slot machine (game machine)
51 MPU
52 ROM
53 RAM (memorize means)
53a Power failure flag 53b Stack pointer storage memory 53c Checksum correction value memory 53d Command buffer (first storage means )
53e Command counter 53h Power recovery command buffer (second storage means )
53i Power recovery command counter
54 I / O ports (input means, input ports)
55 Power supply board (Power supply means)
57 Power failure monitoring circuit (output means)
C Main control board (Main control means)
S Sub-control board (sub-control means)
S21 Command output processing (command transmission processing, command transmission processing execution means)
S63-S67 (Power recovery process)
S81: Yes, S84 to S89 (first transmission means)
S81: No, S82: No, S90 to S92 (second transmission means)
S81: No, S82: Yes, S83: No, S84 to S89 (third transmission means)
S101 (confirmation means, confirmation processing)
S102 (Processing execution means at power interruption)

Claims (2)

遊技の主な制御を行う主制御手段と、その主制御手段から送信されるコマンドに基づいて動作するサブ制御手段とを備えた遊技機において、
前記主制御手段に電力供給を行う電源手段と、
遊技機が電断した場合に電断情報を出力する出力手段とを有し、
前記主制御手段は、
前記電断情報が入力される入力手段と、
その入力手段に電断情報が入力されたか否かを確認する確認手段と、
少なくともその確認手段により電断情報の入力が確認されたことに基づき電断時処理を実行する電断時処理実行手段と、
遊技機の電断中にも記憶内容を保持可能な記憶手段と、
遊技機が復電した場合に前記記憶手段の記憶内容に基づき復電時処理を実行する復電時処理実行手段と、
前記サブ制御手段に送信される送信待コマンドを記憶可能であり、前記記憶手段が有する第1記憶手段と第2記憶手段と、
前記サブ制御手段に対する所定のコマンドの送信が完了していない場合に、その所定のコマンドを引き続き送信する第1送信手段と、
前記サブ制御手段に対する所定のコマンドの送信が完了しており、前記第2記憶手段に送信待コマンドが記憶されている場合に、前記第1記憶手段に送信待コマンドが記憶されているか否かにかかわらず、前記第2記憶手段に記憶される送信待コマンドを前記第1記憶手段に記憶される送信待コマンドに優先して送信する第2送信手段と、
前記サブ制御手段に対する所定のコマンドの送信が完了しており、前記第2記憶手段に送信待コマンドが記憶されておらず、前記第1記憶手段に送信待コマンドが記憶されている場合に、前記第1記憶手段に記憶される送信待コマンドを送信する第3送信手段と、
前記送信待コマンドを前記サブ制御手段へ送信するためのコマンド送信用処理、および、前記入力手段に電断情報が入力されたか否かを確認するための確認用処理を含む複数の処理を繰り返し実行する繰り返し処理実行手段とを有し、
前記コマンド送信用処理を実行するコマンド送信用処理実行手段は、前記第1記憶手段に記憶される送信待コマンドまたは前記第2記憶手段に記憶される送信待コマンドのコマンド送信用処理を一の前記繰り返し処理内において所定情報分実行し、
前記電断時処理実行手段は、前記サブ制御手段に対する所定のコマンドの送信が完了している場合に前記電断時処理を実行し、
前記電源手段は、前記所定のコマンドの送信が完了していない場合にその所定のコマンドの送信を完了し、その後前記電断時処理を実行する間においては少なくとも、前記主制御手段に電力供給を行い、
前記入力手段は、入力ポートで構成され、
前記確認手段は、一の前記繰り返し処理の所定箇所で、前記入力ポートへ入力されるレベルを検出して、前記電断情報が入力されたか否かを確認するものであり、
前記復電時処理実行手段は、遊技機が復電した場合に、その復電を前記サブ制御手段へ報せるためのコマンドを前記第2記憶手段に記憶させて、前記第2送信手段によって前記第1記憶手段に記憶される送信待ちコマンドより優先して前記サブ制御手段へ送信するものであることを特徴とする遊技機。
In a gaming machine comprising main control means for performing main control of a game and sub-control means that operates based on a command transmitted from the main control means,
Power supply means for supplying power to the main control means;
Output means for outputting power interruption information when the gaming machine is disconnected,
The main control means includes
Input means for inputting the power interruption information;
Confirmation means for confirming whether or not power interruption information has been input to the input means;
Power interruption processing execution means for executing power interruption processing based on at least confirmation of input of power interruption information by the confirmation means;
Storage means capable of retaining the stored contents even while the gaming machine is disconnected,
Power recovery process execution means for executing power recovery processing based on the stored contents of the storage means when the gaming machine recovers power;
A transmission waiting command transmitted to the sub-control unit can be stored, and a first storage unit and a second storage unit included in the storage unit,
First transmission means for continuously transmitting the predetermined command when transmission of the predetermined command to the sub-control means is not completed;
Whether transmission of a predetermined command to the sub-control unit is completed and a transmission waiting command is stored in the second storage unit, whether or not the transmission waiting command is stored in the first storage unit Regardless, the second transmission means for transmitting the transmission waiting command stored in the second storage means in preference to the transmission waiting command stored in the first storage means;
When transmission of a predetermined command to the sub-control unit is completed, a transmission waiting command is not stored in the second storage unit, and a transmission waiting command is stored in the first storage unit, Third transmission means for transmitting a transmission waiting command stored in the first storage means;
A plurality of processes including a command transmission process for transmitting the transmission waiting command to the sub-control means and a confirmation process for confirming whether power interruption information has been input to the input means are repeatedly executed. Repetitive processing execution means for
The command transmission process execution means for executing the command transmission process performs the command transmission process of the transmission wait command stored in the first storage means or the transmission wait command stored in the second storage means. Execute for a certain amount of information in the repeated process,
The power interruption processing execution means executes the power interruption processing when transmission of a predetermined command to the sub-control means is completed,
The power supply means completes transmission of the predetermined command when transmission of the predetermined command is not completed, and then supplies power to the main control means at least during execution of the power interruption process. Done
The input means comprises an input port,
The confirmation means detects a level input to the input port at a predetermined location of the one repetitive process, and confirms whether or not the power interruption information is input ,
The power recovery processing execution means stores, in the second storage means, a command for reporting the power recovery to the sub-control means when the gaming machine recovers power, and the second transmission means A gaming machine characterized in that it is transmitted to the sub-control means in preference to the transmission waiting command stored in the first storage means .
前記記憶手段は、各種データを一時的に記憶することを特徴とする請求項1に記載の遊技機。
The gaming machine according to claim 1, wherein the storage unit temporarily stores various data.
JP2014033439A 2014-02-24 2014-02-24 Game machine Expired - Fee Related JP6060918B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014033439A JP6060918B2 (en) 2014-02-24 2014-02-24 Game machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014033439A JP6060918B2 (en) 2014-02-24 2014-02-24 Game machine

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2012149097A Division JP5641020B2 (en) 2012-07-03 2012-07-03 Game machine

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2015124849A Division JP2015164601A (en) 2015-06-22 2015-06-22 Game machine

Publications (2)

Publication Number Publication Date
JP2014158765A JP2014158765A (en) 2014-09-04
JP6060918B2 true JP6060918B2 (en) 2017-01-18

Family

ID=51610975

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014033439A Expired - Fee Related JP6060918B2 (en) 2014-02-24 2014-02-24 Game machine

Country Status (1)

Country Link
JP (1) JP6060918B2 (en)

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3581057B2 (en) * 1999-09-29 2004-10-27 株式会社三共 Gaming machine
JP4176269B2 (en) * 2000-01-13 2008-11-05 株式会社ソフィア Game machine
JP2001252451A (en) * 2000-03-09 2001-09-18 Sankyo Kk Game machine
JP3621627B2 (en) * 2000-04-28 2005-02-16 株式会社三共 Game machine
JP2001321550A (en) * 2000-05-12 2001-11-20 Fuji Shoji:Kk Game machine
JP4418999B2 (en) * 2000-06-09 2010-02-24 株式会社大一商会 Game machine
JP3859950B2 (en) * 2000-09-05 2006-12-20 株式会社三共 Game machine
JP2002306705A (en) * 2001-04-11 2002-10-22 Heiwa Corp Game machine and method for controlling operation thereof
JP4269639B2 (en) * 2002-10-24 2009-05-27 株式会社三洋物産 Game machine
JP4395809B2 (en) * 2008-12-22 2010-01-13 株式会社三洋物産 Game machine
JP5641020B2 (en) * 2012-07-03 2014-12-17 株式会社三洋物産 Game machine

Also Published As

Publication number Publication date
JP2014158765A (en) 2014-09-04

Similar Documents

Publication Publication Date Title
JP4296768B2 (en) Game machine
JP5641020B2 (en) Game machine
JP4656110B2 (en) Game machine
JP4269639B2 (en) Game machine
JP2004089476A (en) Game machine
JP4395810B2 (en) Game machine
JP4395809B2 (en) Game machine
JP6354882B2 (en) Game machine
JP5641019B2 (en) Game machine
JP2011147818A (en) Game machine
JP6060918B2 (en) Game machine
JP2009061325A5 (en)
JP6354881B2 (en) Game machine
JP2009061324A5 (en)
JP5880596B2 (en) Game machine
JP2009112437A (en) Game machine
JP2015164601A (en) Game machine
JP2011147817A (en) Game machine
JP2009279450A (en) Game machine
JP2015164600A (en) Game machine
JP2009279451A (en) Game machine
JP2012148163A (en) Game machine
JP2010046520A (en) Game machine
JP4492685B2 (en) Slot machine
JP6256581B2 (en) Pachinko machine

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150421

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150622

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A132

Effective date: 20151222

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160212

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20160614

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160909

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20160916

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20161128

R150 Certificate of patent or registration of utility model

Ref document number: 6060918

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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