JP4418999B2 - Game machine - Google Patents

Game machine Download PDF

Info

Publication number
JP4418999B2
JP4418999B2 JP2000173665A JP2000173665A JP4418999B2 JP 4418999 B2 JP4418999 B2 JP 4418999B2 JP 2000173665 A JP2000173665 A JP 2000173665A JP 2000173665 A JP2000173665 A JP 2000173665A JP 4418999 B2 JP4418999 B2 JP 4418999B2
Authority
JP
Japan
Prior art keywords
command
control unit
power
sub
power failure
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
JP2000173665A
Other languages
Japanese (ja)
Other versions
JP2001347044A (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.)
Daiichi Shokai Co Ltd
Original Assignee
Daiichi Shokai 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 Daiichi Shokai Co Ltd filed Critical Daiichi Shokai Co Ltd
Priority to JP2000173665A priority Critical patent/JP4418999B2/en
Publication of JP2001347044A publication Critical patent/JP2001347044A/en
Application granted granted Critical
Publication of JP4418999B2 publication Critical patent/JP4418999B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Pinball Game Machines (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は通電遮断時に情報の保存を行い、保存した情報に基づいて中断された処理を再開する遊技機に関し、詳しくは、送信装置から受信装置にコマンドを送受信する送受信処理の最中に通電が遮断された場合に、中断されたコマンド送受信処理を補完するためのコマンド送受信技術に関する。
【0002】
【従来の技術】
例えば、パチンコ機のように高度に電装化された遊技機では、遊技機全体を制御する主制御装置と、この主制御装置と接続されたサブ制御装置(例えば、図柄制御装置、賞球制御装置等)が設けられる。かかる構成において、主制御装置(送信装置)はサブ制御装置に送信するコマンドの作成・送信等の処理を行い、サブ制御装置(受信装置)は主制御装置から送信されたコマンドを受信し、この受信したコマンドに基づいて遊技機に備付けられた電装装置(例えば、図柄表示装置、払出装置等)を制御する。
【0003】
【発明が解決しようとする課題】
ところで、上述したパチンコ機に例示される遊技機においては、突発的な停電や不意に電源オフがなされた場合には各制御装置で行われている処理が中断されるという不具合が生じ得る。このため、上述した遊技機においては、停電等の通電遮断時に実行途中の処理に関する情報を一旦記憶装置に記憶させ、通電回復後にこの記憶装置に記憶した情報に基づいて中断された処理を再開する情報の保存機能を備えることが望まれている。
しかしながら、上述した情報保存機能を持たせた遊技機においても、通電回復時において中断した処理を再開できない場合を生じ得る。すなわち、主制御装置とサブ制御装置におけるコマンドの送受信処理には、ある一定の時間を要するため、通電が遮断されるタイミング(処理が中断されるタイミング)によっては主制御装置とサブ制御装置との間でコマンドの送受信ができない場合が生じ得るためである。
例えば、主制御装置の送信部(典型的には、CPUやPIOの出力ポート)に送信コマンドが設定された後で送信が開始される前〔典型的には、受信装置に受信処理を起動させる起動信号(ライト信号)の出力前〕に処理が中断された場合には、処理が再開されたとしても送信部への送信コマンドの設定が行われないため(中断前の処理によって既にコマンドを設定する処理が終了しているため)、送信コマンドが送信されないという事態が生じる。また、例えば、コマンドの送信が開始された後であっても受信装置でのコマンドの取込前に処理が中断された場合には、上述した場合と同様、再度コマンドが送信部に設定されることがないため受信装置にコマンドが送信されないという事態が生じる。
【0004】
本発明は上述した実情に鑑みなされたものであり、その目的は、送信装置(主制御装置)と受信装置(サブ制御装置)間のコマンド送受信処理が停電等によって中断された場合においても、その中断された送受信処理により送信される予定だったコマンドを受信装置に受信させることができる遊技機を提供する。
【0005】
【課題を解決するための手段及び効果】
上記課題を解決するため本願の遊技機は、主制御装置と、その主制御装置から送信されたコマンドを受信するサブ制御装置とを有する。この遊技機は、外部電源から供給される電力を主制御装置とサブ制御装置に供給する電源供給部と、外部電源との通電が遮断されたことを検出して、主制御装置とサブ制御装置に停電信号を出力する停電検出部と、外部電源との通電時に外部電源から供給される電力を備蓄し、その備蓄した電力を通電遮断時に主制御装置とサブ制御装置に供給する第1バックアップ電源と、外部電源との通電時に外部電源から供給される電力を備蓄し、その備蓄した電力を通電遮断時に主制御装置とサブ制御装置に供給する第2バックアップ電源と、をさらに有している。
主制御装置は、主CPUと、制御プログラムを記憶する主ROMと、制御情報を記憶する主RAMとを有している。主CPUは、出力ポートにコマンドを設定し、次いで、サブ制御装置に起動信号を出力することで、出力ポートに設定したコマンドをサブ制御装置に送信するコマンド送信処理を実行するようにプログラムされている。主CPUは、停電信号を受信すると、第1バックアップ電源から供給される電力によって停電処理を実行するようにプログラムされており、その停電処理では、停電信号受信時に実行されている処理を中断して、その中断した処理を再開するための情報を主RAMに記憶し、次いで、出力ポートに設定されているコマンドを主RAMに記憶する処理を実行する。主RAMに記憶された情報は第2バックアップ電源から供給される電力によって電源遮断中も保持されるようになっている。主CPUは、電源投入時に、停電処理によって主RAMに記憶されているコマンドを出力ポートに設定すると共に停電信号受信時に中断された処理を再開する復電処理を実行するようにプログラムされている。
サブ制御装置は、サブCPUと、制御プログラムを記憶するサブROMと、制御情報を記憶するサブRAMとを有している。サブCPUは、停電信号を受信していない状態で主制御装置からの起動信号を受信すると、主CPUの出力ポートから出力されたコマンドをサブRAMに設けられた第1コマンドバッファに記憶する通電時コマンド受信処理を実行するようにプログラムされている。サブCPUは、停電信号を受信すると、第1バックアップ電源から供給される電力によって停電処理を実行するようにプログラムされており、その停電処理では、停電信号受信時に実行されている処理を中断して、その中断した処理を再開するための情報をサブRAMに記憶し、次いで、主CPUから起動信号が出力されているときは、主CPUの出力ポートから送信されているコマンドをサブRAMに設けられた第2コマンドバッファに記憶する処理を実行する。サブRAMに記憶された情報は第2バックアップ電源から供給される電力によって電源遮断中も保持されるようになっている。サブCPUは、電源投入時に、停電信号受信時に中断された処理を再開する復電処理を実行するようプログラムされている。そして、サブCPUは、復電処理完了後に、(1)第1コマンドバッファと第2コマンドバッファの一方にコマンドが記憶されているときは、その記憶されているコマンドに対して解析処理を実行し、(2)第1コマンドバッファと第2コマンドバッファの両者にコマンドが記憶されているときは、いずれか一方のコマンドに対してのみ解析処理を実行する。
【0006】
上記遊技機において停電等により通電が遮断されると主制御装置(送信装置)では、停電信号受信時出力ポートに設定されているコマンドを主RAMに格納保持し、通電が回復したときはその主RAMに格納保持したコマンドを用いて通電が遮断されたときからの処理を再開する。また、サブ制御装置(受信装置)では、停電信号受信時に受信しているコマンドがある場合にはそのコマンドを第2コマンドバッファに格納保持し、通電回復したときはこの第2コマンドバッファに保持したコマンドに基づいて処理を再開する。
すなわち、図1に示すように出力ポートにコマンドが設定されてからそのコマンドをサブ制御装置(受信装置)に送信開始するまでのあいだに通電が遮断された場合には、主制御装置(送信装置)出力ポートに設定されているコマンドを主RAMに格納保持し、通電回復時には、このコマンドを用いて再度、サブ制御装置(受信装置)への送信処理が再開される。したがって、送信できなかったコマンドが通電回復後に再送信される。
また、図2に示すように主制御装置(送信装置)によるコマンドの送信開始後であってサブ制御装置(受信装置)によるコマンドの取込前に通電が遮断された場合においては、主制御装置(送信装置)では送信処理が開始されているため、上述した場合と異なり通電回復時に送信処理が開始されることは無く、したがってコマンドが送信されることもない。しかしながら、このような場合にはサブ制御装置(受信装置)において、停電信号受信時に受信しているコマンドが第2コマンドバッファに格納保持され、通電回復時にはこのコマンドを用いて処理が再開される。したがって、このような場合にも主制御装置(送信装置)から送信されたコマンドをサブ制御装置(受信装置)で受信することができる。
なお、図3に示すように主制御装置(送信装置)によるコマンド送信処理が開始されており、かつ、サブ制御装置(受信装置)第1コマンドバッファにコマンドを格納した状態で通電が遮断された場合には、サブ制御装置(受信装置)では停電信号受信後の停電処理によりさらに第2コマンドバッファにコマンドを格納することとなる。このような場合には、どちらか一方のコマンドを優先して処理〔例えば、停電処理により格納したコマンド(第2コマンドバッファに記憶したコマンド)を優先処理〕することでコマンドの二重取りを防止することができる。
【0012】
なお、上述した遊技機において、外部電源からの電力供給が遮断されたことを検出する停電検出部はいずれに設けても良く、例えば、送信装置(主制御装置)に設けても良いし、又は受信装置(サブ制御装置)に設けても良いし、あるいはその両者に設けるようにしても良い。
さらには、停電検出部を送信装置(主制御装置)や受信装置(サブ制御装置)とは別体で設けても良い。このような場合には、外部電源から供給される電力の低下を1箇所で検出することができ、この検出装置から送信装置や受信装置に同期した停電信号(電力低下を認識させる信号)を出力することができる。
【0013】
また、上述した遊技機においては、主制御装置は遊技機全体の制御を行い、サブ制御装置は主制御装置から出力されるコマンドに基づいて遊技者に遊技媒体を払出す払出装置の制御を行うように構成することが可能である。
このような構成によれば、遊技者に特典(遊技媒体の払出し)を行う払出装置が正しく(コマンドの取込みミスを起こすことなく)制御されるため、遊技者に損失(未払いの遊技媒体)を与えることが防止される。
【0014】
なお、上述した発明は、送信装置から受信装置への一方向にのみコマンドの送受信が行われるように構成された遊技機において有効に機能する。
このような場合には、受信装置から送信装置への逆方向のデータの送受信が行われず、送信装置がコマンドを送信できているか否かを確認することができないからである。このような一方向にのみコマンドの送受信が行われる遊技機としては、例えばパチンコ機がある。
【0015】
【発明の実施の形態】
本発明を第1種パチンコ機におけるメイン制御部と、払出装置(遊技者に賞球を払出す装置)を制御する賞球制御部との間のコマンド送受信処理に適用した一実施の形態について図4乃至図17を用いて説明する。ここで、図4は本実施の形態に係るパチンコ機の裏面側に配備される裏セット板11およびその付属物(払出装置30等)を示す背面図であり、図5は図1に示すパチンコ機の制御部の構成を示すブロック図であり、図6は電源部120の構成を説明するための図面であり、図7〜図9はメイン制御部における処理のフローチャートであり、図10〜図13は賞球制御部における処理のフローチャートであり、図14はメイン制御部における電源遮断時の処理のフローチャートであり、図15は賞球制御部における電源遮断時の処理のフローチャートであり、図16は通電回復時におけるメイン制御部及び賞球制御部における処理のフローチャートであり、図17は電源遮断時における各制御部の動作を説明するための図である。
【0016】
まず、パチンコ機10に設けられる払出装置30について説明する。
図4に示すように、払出装置30は、パチンコ機10の裏面側に取付けられた裏セット板11に配設されている。この裏セット板11には、払出装置30の他に、パチンコ球を多数貯留するための球貯留タンク13、この球貯留タンク13に貯留されたパチンコ球を払出装置30に誘導する誘導レール14が設けられている。なお、上記誘導レール14は、図示していないが内外に2つの球通路が並列に形成されている。
【0017】
払出装置30は、図4に示すように、誘導レール14に連通する上部球誘導路31aと、この上部球誘導路31aの下流側開口部近くに設けられた回転球受け体34と、この回転球受け体34の下方に配置される二つの下部球誘導路31bとを有している。これら上部球誘導路31a、回転球受け体34および下部球誘導路31bも、誘導レール14が2列に形成されていることに応じて、それぞれ内外に1対相互に隣接して設けられている。
上記回転球受け体34は、一つのパチンコ球を一時的に受け得る凹部(球受け部)34aがいくつも形成され(図では6カ所)、この球受け部34aに上部球誘導路31aを通行してきたパチンコ球が一球ずつ受け入れられる。この回転球受け体34は、モータ25(図示せず:ただし、図5に表示)により回転駆動される。このため、モータ25が回転することによって、球受け部34aに受け入れられたパチンコ球を一球ずつ規則的に下部球誘導路31bに落入させることができる。なお、既に述べたように回転球受け体34は2列(内外)に形成されているため、内外それぞれの回転球受け体34からパチンコ球が下部誘導路31bに排出される。この内と外の2つの回転球受け体34からパチンコ球が排出されるタイミングは、両回転球受け体34よりパチンコ球が同時に排出されないように調整されている。すなわち、内と外に設けた回転球受け体34が所定の角度だけ位相がずれて設けられることで、パチンコ球の排出タイミングがずれるように構成されている。
回転球受け体34から排出されたパチンコ球が落入する下部球誘導路31bの上流側部分は、賞球用球誘導路32aと貸し球用球誘導路32bとの二つに分かれている。そして、回転球受け体34の回転方向に応じて球受け部34aから排出・落下するパチンコ球が賞球用球誘導路32aに落入するか或いは貸し球用球誘導路32bに落入するかが決定される。
【0018】
かかる構成の結果、球貯留タンク13に貯留するパチンコ球は、球貯留タンク13の底部から誘導レール14および上部球誘導路31aを通って回転球受け体34に至る。そして、モータ25が回転駆動されることによって回転球受け体34が回転し、その結果、パチンコ球は1球ずつ下部球誘導路31b(賞球用球誘導路32a又は貸し球用球誘導路32b)に送出(落入)される。すなわち、遊技者に賞球を払出すときは回転球受け体34が反時計回りに回転することで、回転球受け体34から排出されたパチンコ球は賞球用球誘導路32aに落入する。一方、パチンコ球を貸し球として払い出すときは回転球受け体34が時計回りに回転することで、回転球受け体34から排出されたパチンコ球は貸し球用球誘導路32bに落入する。そして、これら賞球用球誘導路32a、貸し球用誘導路32bに落入したパチンコ球は払出用球誘導路35に流れ、パチンコ機10の前面に設けられた図示しない上皿に排出される。
【0019】
また、払出装置30には、上述した回転球受け体34に隣接してフォト検出器(フォトカプラ)より成る回転検出センサ29が備えられており、これによって回転球受け体34の回転を検出する。すなわち、回転球受け体34には回転球受け体34と一体となって回転する図示しない円盤状の位置検出板が付設されており、この位置検出板の周縁部には、上記複数の球受け部34aそれぞれに対応する複数のスリットが一定の間隔(角度)をあけて設けられている。また、上記回転検出センサ29は、位置検出板が回転する際において位置検出板のスリットの通過を検出し得る所定の位置に配設される。したがって、位置検出板のスリットの一つが回転検出センサ29の検出位置を通過する度に、回転検出センサ29がオンとなり、回転検出信号が後述する賞球制御部200に出力される。つまり、球受け部34aから一球のパチンコ球が排出され得る回転角度(即ち上記6カ所の球受け部34aを有する本実施形態に係る回転球受け体34では60度)の回転毎に一回の回転検出信号が賞球制御部200に出力される。なお、かかるフォト検出器の機構自体は従来のパチンコ機(例えば特開平9−155035号公報参照)に装備されるものと同様であればよく、本発明を特徴付けるものでもないのでこれ以上の詳細な説明は省略する。
【0020】
さらに、払出装置30には、賞球用球誘導路32aには、当該誘導路を通行するパチンコ球を検出する賞球検出センサ27(典型的には近接スイッチ)が設けられている。この賞球検出センサ27は、内と外に2列に設けられた賞球用球誘導路32aのそれぞれに設けられている。そして、当該賞球用球誘導路32aをパチンコ球が通行した際に、賞球検出信号を後述するメイン制御部100及び賞球制御部200に出力する。
同様に、貸し球用球誘導路32bにも、当該誘導路を通行するパチンコ球を検出する貸し球検出センサ28(典型的には近接スイッチ)が設けられている。この貸し球検出センサ28も、内と外に2列に設けられた貸し球用球誘導路32bのそれぞれに設けられている。そして、貸し球用球誘導路32bをパチンコ球が通行した際に、貸し球検出信号を後述するメイン制御部100及び賞球制御部200に出力する。
【0021】
次に、上述のように構成される払出装置30を制御する制御系の構成について、図5,図6を参照して説明する。
払出装置30を制御する制御系は、図5に示すように、パチンコ機10全体を制御するメイン制御部100と、メイン制御部100と電気的に接続された賞球制御部200により構成される。これらメイン制御部100及び賞球制御部200は電源部120と電気的に接続され、この電源部120からメイン制御部100及び賞球制御部200に電力が供給されるように構成されている。
【0022】
電源部120は、外部電源から供給されるAC24V電源を本パチンコ機10に装備された各電装品それぞれに応じた電圧の直流供給電源に整流・平滑化する電圧変圧部140と、停電その他の理由によって外部電源からの通電が遮断されたときに本パチンコ機10の各制御部(メイン制御部100、賞球制御部200等)に向けて停電信号を出力する停電検出部130とを備える。
電圧変圧部140は、図6に示すようにAC24V電源の波形を整流する整流回路142a,142bと、整流回路142a,142bにより整流された脈流波形を平滑化する平滑回路(ダイオードD1,D2,D3,D4とコンデンサC1,C2,C3,C4で構成)と、平滑回路により平滑化された波形を定電圧化する定電圧回路IC1、IC2、IC3とで構成される。
このような電圧変圧部140において通常時には、定電圧回路IC1により生成される+5Vの信号がメイン制御部100及び賞球制御部200に対して供給される。また、停電等の通電遮断時においては、コンデンサC1に通電中に備蓄した電力が、メイン制御部100及び賞球制御部200に対して供給され、これにより各制御部100、200は通電遮断後の処理を行うことが可能となる。
さらに、定電圧回路IC1から出力される+5Vの信号は、並列に分離されてダイオードD5およびコンデンサC5を介して情報保存用出力端子VBBに接続される。そして、このコンデンサC5に備蓄した電力は、停電等の通電遮断時においてメイン制御部100及び賞球制御部200のRAMに供給され、RAMに記憶された情報が保持される。
【0023】
メイン制御部100は、本パチンコ機10の各装置(電装品)の動作を統括する制御装置であり、賞球制御部200の他に、遊技盤中央に配置された図柄表示器(図示せず)の図柄変動処理を行う図柄表示制御部、スピーカから効果音やBGMを発生させるための処理を行う音制御部、遊技盤の内外に装着されたランプの点灯駆動処理を行うランプ制御部等が電気的に接続されている。これら各制御部の機構は、従来のパチンコ機におけるものと同様であり、ここではその説明を省略する。
このメイン制御部100は、図5に示すように、CPU102と、CPU102とバス114を介して接続されるROM104、RAM106、入力処理回路108、通信制御回路112等を有する。
CPU102は、ROM104に格納されている遊技制御プログラムを実行してパチンコ機10を制御する。この遊技制御プログラムには、賞球制御部200等の各制御部に送信するための各種コマンドの作成や各制御部へコマンドの送信を行うための制御プログラムが含まれる。
RAM106には、各種データや入出力信号が格納される。このRAM106には、後で説明するように、遊技盤の表側に設けられた各種入賞口に入賞したパチンコ球の数をカウントするための入賞個数カウンタ、この入賞個数カウンタに基づいて作成した賞球制御部200に送信するコマンド、このコマンドに基づいて賞球制御部200に払出しを命じたパチンコ球の数を積算する送信球数カウンタが記憶される。
入力処理回路108は、各種入賞口に入賞したパチンコ球を検出する一般入賞口センサ54、特定入賞口センサ56等のセンサ(典型的には近接スイッチ)から出力された信号を受けて、メイン制御部100内で処理可能なデータ形式に変換する機能を有する。この入力処理回路108には、前述した停電検出部130から出力された停電信号や、払出装置30に設けた賞球検出センサ27、貸し球検出センサ28から出力される検出信号も入力するようになっている。通信制御回路112は、CPUの出力ポートのコマンド等を賞球制御部200等の各制御部に送信するための回路(汎用ロジックIC、PIO、トランジスタアレイ等で構成される)である。
【0024】
賞球制御部200は、上述したメイン制御部100から送信されたコマンドに基づいて払出装置30の動作を制御する制御装置であり、基本的にはメイン制御部100と同様、CPU202と、CPU202とバス214を介して接続されるROM204、RAM206、入力処理回路210、通信制御回路208、出力処理回路212等を有する。
CPU202は、ROM204に格納されている制御プログラムに従って払出装置30の賞球制御等を行う。RAM206には、各種データや入出力信号が格納される。このRAM206には、後で説明するように、メイン制御部100から送信されたコマンドを賞球数に変換して積算する賞球積算カウンタと、賞球積算カウンタと同様にメイン制御部100から送信されたコマンドを賞球数に変換して積算し、回転検出センサ29から出力された検出信号を受信すると1減算する賞球加減カウンタと、賞球検出センサ27から出力された検出信号を受信し、その受信した検出信号の数を積算する払出積算カウンタが記憶される。
入力処理回路210は、払出装置30に設けられた回転検出センサ29、貸し球検出センサ28、賞球検出センサ27から出力された検出信号を受信して、賞球制御部200内で処理可能なデータ形式に変換する機能を有する。また、この入力処理回路210にも、前述した停電検出部130から出力された停電信号が入力するようになっている。
また、出力処理回路212は、モータ25を駆動するための駆動信号を出力する回路であり、通信制御回路208は、メイン制御部100から送信されたコマンドを受信するための回路である。なお、通電時に受信したコマンドを格納するコマンドバッファ(請求項にいう通電時受信コマンド記憶部に相当)と、停電信号受信時に受信したコマンドを格納するNMIコマンドバッファ(請求項にいう通電断時受信コマンド記憶部に相当)がRAM206に設けられている。
【0025】
次に、上述したように構成されるメイン制御部100及び賞球制御部200の処理について説明する。最初にパチンコ機10への電源投入時における上記各制御部の処理について説明する。
【0026】
(1)電源投入時の処理(メイン制御部)
電源投入されると、電源部120から上記各制御部に通電が開始され、各制御部に印可される電圧が所定の電圧となると次に説明する処理を開始する。まず、メイン制御部100の処理について、図7〜図9に基づいて説明する。
なお、メイン制御部100では、入賞口に入賞したパチンコ球を検出する入賞検出処理、その入賞検出処理により検出した入賞に基づいて作成した賞球コマンドを賞球制御部200に送信するための賞球コマンド送信処理、及び、払出装置30から払出されたパチンコ球を検出する賞球検出処理等のようなコマンドや信号等の入出力処理は、メイン制御部100における通常の処理とは別に、メイン制御部100に設けたCTCカウンタによる所定周期(本実施の形態では、4ms)毎の割込み処理により行われる。そこで、まずはメイン制御部100の通常の処理について図7を参照して先に説明し、次いでCTCカウンタによる割込み処理(以下、単にCTC割込み処理という)について図8、図9を参照して説明する。
【0027】
図7に示すように、メイン制御部100では、まず初期化処理が行われ(S01)、次いでRAM消去スイッチがON(出力)されたかどうかを判断する(S02)。ここで、RAM消去スイッチとは、電源遮断時において保存した情報を消去するために操作されるスイッチである。すなわち、保存した情報を利用して遊技を再開する必要がないとき(例えば、営業終了により電源OFFした翌日の営業開始時等)に操作されるスイッチであり、パチンコ機10への電源投入時に操作され、メイン制御部100及び賞球制御部200に信号を出力する。したがって、ステップS02でメイン制御部100は、RAM消去スイッチを操作することで出力された信号を受信したかどうかを判断する。
RAM消去スイッチが操作されていた場合〔ステップS02でYES〕にはステップS04に進み、RAM消去スイッチが操作されていない場合〔ステップS02でNOの場合〕には、次ぎにRAM106に異常があるかないかを判断する(S04)。すなわち、RAM106に保存した情報が何らかの原因で破壊されていた場合には、その情報を利用して処理を再開することができないので、まずRAM106の情報が利用できるか否かを判断する。具体的な方法としては、チェックサム値(RAM106の各レジスタの値を加算した加算値)が正常値と一致するか否かで判断する。RAM106に異常があった場合〔ステップS03でYESの場合〕にはステップS04に進み、RAM106に異常が無かった場合〔ステップS03でNOの場合〕には保存した情報に基づいて処理を再開する復電処理に移行する(S09)。なお、復電処理の内容については後で説明する。ステップS04に進むと、メイン制御部100はRAM106に記憶した情報をクリアする。これによりメイン制御部100は、以下に説明するメイン処理に移行する。
【0028】
メイン処理では、まず、出力データ作成処理を行う(S05)。この出力データ作成処理では、パチンコ機に装備された各種センサ(一般入賞センサ54、特定入賞センサ56、始動口センサ等)から出力された検出信号に基づいて遊技盤の前面に設けられた図示しない大入賞口等の電動役物を動作させるための出力データ(駆動データ)の作成を行う。この作成された出力データは、前述したCTC割込み処理により各電装装置に出力される。
出力データ作成処理が終了すると、次いでコマンド作成処理を行う(S06)。コマンド作成処理では、パチンコ機に装備された各種センサ(一般入賞センサ54、特定入賞センサ56、始動口センサ等)から出力された検出信号に基づいて、賞球制御部200、図柄制御部、音制御部、ランプ制御部等のサブ制御部に送信するコマンドを作成する。例えば、賞球制御部200には賞球の払出を命じる賞球コマンドを作成し、図柄制御部に対しては特別図柄の変動を命じる図柄変動コマンドを作成し、音制御部には効果音の発音を命じる効果音コマンドを作成し、ランプ制御部にはランプ装飾を命じるランプ点灯コマンドを作成する。ステップS06で作成されたコマンドは、CTC割込み処理により各制御部に送信される。なお、この各制御部へのコマンドの送信処理については、賞球制御部200へのコマンド送信を例に後で説明する。
コマンド作成処理が終了すると、次いで外部情報作成処理を行う(S07)。この外部情報作成処理では、大当り回数や確率変動中、球切れ報知等を遊技者、ホール店員等に報知するために報知装置(図柄表示装置、ランプ、スピーカ、外部コンピュータ等)に出力する情報の作成を行う。この作成された情報も、CTC割込み処理によりメイン制御部100より出力される。
次ぎに、ステップS08では乱数更新処理を行う。この乱数更新処理では、初期値乱数の作成・更新やハズレ図柄の作成・更新を行う。このステップS08の処理が終わると、ステップS05の処理に戻ってステップS05からステップS08までの処理を繰り返す。
【0029】
次ぎに、図8に基づいてCTC割込み処理について説明する。なお、以下の説明では払出装置30を制御する際に行われる処理(入賞検出処理、賞球コマンド送信処理、賞球検出処理)のみを説明する。
図8(a)に示す入賞検出処理では、メイン制御部100は、まず入賞検出したか否かを判断する(S11)。具体的には、メイン制御部100の入力処理回路108に一般入賞口センサ54・特定入賞口センサ56から出力された信号を受信したか否かで判断する。これらの各センサ54、56から出力された検出信号を受信していない場合〔ステップS11でNOの場合〕には入賞検出処理を終了し、検出信号を受信している場合〔ステップS11でYESの場合〕には入賞個数カウンタにその入賞を記憶し(S32)、入賞検出処理を終了する。
【0030】
図8(b)に示す賞球コマンド送信処理では、メイン制御部100は、まず入賞個数カウンタに記憶値があるか否かを判断する(S13)。入賞個数カウンタに記憶値がない場合〔ステップS13がNOの場合〕には賞球コマンド送信処理を終了し、入賞個数カウンタに記憶値がある場合〔ステップS13がYESの場合〕には賞球制御部200に対して賞球を払出すよう賞球コマンドの送信処理を行う(S14)。このステップS14のコマンド送信処理について、図9を用いて詳述する。
図9に示すようにコマンド送信処理では、メイン制御部100は、まずCPU102の出力ポートに送信したいコマンドをセットする(S21)。次に、メイン制御部100は、賞球制御部200にコマンド受信処理を起動させるためのライト信号をONし、同時に賞球制御部200がメイン制御部100の出力ポートにセットしたコマンドを読取れるようにセレクト信号をONする(S22)。そして、しばらくその状態で待機した後(S23)、ライト信号をOFFして(S24)、さらに、読出しポインタを更新する(S25)。この読出しポインタは、送信するコマンドが複数ある場合等に、現在送信しているコマンドが何番目のコマンドであるかを管理するための情報である。これらの処理後、セレクト信号をOFF(S26)してコマンド送信処理を終了する。
このようにコマンド送信処理では、最初に出力ポートへのコマンドの設定が行われ、次にコマンドの送信開始(ライト信号・セレクト信号のON)が行われて、コマンドの送信が終了(セレクト信号のOFF)する。なお、本実施の形態でコマンドの送信開始から送信終了まで(セレクト信号がONされている時間)ある程度の時間を必要とするのは、コマンド受信処理を起動するためのライト信号が賞球制御部200のINT端子に入力するためである。すなわち、賞球制御部200においてコマンド受信処理が開始されるまでにある程度の時間が必要となるためである
上述した賞球コマンドの送信処理が終了すると、次ぎに送信球積算カウンタに送信球数を積算し(S15)、さらに入賞個数カウンタから減算を行って(S16)、賞球コマンド送信処理を終了する。したがって、入賞個数カウンタに記憶値がある場合には、その記憶値が0となるまで賞球コマンドが賞球制御部200に送信され、同時に、その送信によって賞球制御部200に命じた払出数が送信球積算カウンタに加算されることとなる。
【0031】
図8(c)に示す賞球検出処理では、メイン制御部100は、まず払出装置30に設けた賞球検出センサ27でパチンコ球を検出したか否かを判断する(S17)。具体的には、賞球検出センサ27から出力された検出信号を受信したか否かで判断する。
賞球検出センサ27で賞球を検出していない場合〔ステップS17でNOの場合〕には賞球検出処理を終了し、賞球検出センサ27で賞球を検出している場合〔ステップS17でYESの場合〕には送信球数積算カウンタより検出したパチンコ球の数を減算する(S18)。そして、その送信球積算カウンタの値が0以上か否かを判断する(S19)。送信球数カウンタの値が0以上である場合〔ステップS19がYESの場合〕には賞球検出処理を終了する。一方、送信球数カウンタの値が0以上でない場合〔ステップS19がNOの場合〕には、払出装置30より余分にパチンコ球が払出されている異常な事態であるため、異常ランプを点灯することによりホール店員等に異常を報知する(S20)。
【0032】
以上、説明したことから明らかなように、メイン制御部100では、CTC割込み処理により入賞検出を行い、その入賞検出に基づいて通常のメイン処理において賞球制御部200に送信する賞球コマンドの作成が行われる。作成された賞球コマンドは、CTC割込み処理において賞球制御部200に送信されることとなる。
また、メイン制御部100では、賞球制御部200に賞球コマンドを送信する毎に送信球数積算カウンタに送信球数を積算し、払出装置30に設けた賞球検出センサ27から出力された検出信号を受信する毎に送信球数積算カウンタから払出球数を減算する。そして、この送信積算カウンタの値により、送信球数より多くの払出球数が払出される異常な場合(例えば、払出装置30の故障)を判断することとしている。
【0033】
(2)電源投入時の処理(賞球制御部)
次ぎに、賞球制御部200の動作について、図10〜図13に基づいて説明する。なお、賞球制御部200においては、メイン制御部100から出力されたライト信号(INT端子入力)による割込み処理によりメイン制御部100から送信されたコマンドを受信するコマンド受信処理が行われ、また、駆動モータ25を駆動するための駆動信号を出力する処理や、回転検出センサ29、賞球検出センサ27等のセンサから出力された検出信号を受信する処理等のような信号の入出力処理は、賞球制御部200に設けたCTCカウンタによる所定周期(本実施の形態では、4ms)毎の割込み処理により行われる。そこで、まずは賞球制御部200における通常の処理について図10、図11を参照して先に説明し、次いでコマンド受信処理やCTCカウンタによる割込み処理(以下、単にCTC割込み処理という)について図12、図13を参照して説明する。
【0034】
図10に示すように、賞球制御部200においても、メイン制御部100と同様、まず初期化処理が行われ(S27)、次いでRAM消去スイッチがON(出力)されたかどうかを判断する(S28)。RAM消去スイッチがONされている場合〔ステップS28でYES〕にはステップS30に進み、RAM消去スイッチがONされていない場合〔ステップS28でNOの場合〕には、次ぎにRAM206に異常があるかないかを判断する(S29)。
そして、RAM206に異常があった場合〔ステップS29でYESの場合〕にはステップS30に進み、RAM206に異常が無かった場合〔ステップS29でNOの場合〕には保存した情報に基づいて処理を再開する復電処理に移行する(S36)。この賞球制御部200における復電処理についても、後で詳述する。
ステップS30では、賞球制御部200はRAM206に記憶した情報をクリアし、以下に説明するメインの処理に移行する。
【0035】
メイン処理に移行すると、まず、メイン制御部100から送信されたコマンドの解析処理を行う(S31)。すなわち、メイン制御部100から送信されたコマンドがどの種類のコマンド(例えば、賞球の開始を許可する賞球可コマンド、球切れ等の原因により賞球を禁止する賞球不可コマンド、所定の球数の払出を命じる賞球コマンド等)であるかを解析する。このコマンド解析処理について図11を参照して説明する。
図11に示すようにコマンド解析処理では、まずセレクト信号がONされているか否かを判断する(S36)。すなわち、メイン制御部100がコマンド送信処理中であるか否かを判断する。
セレクト信号がONされている場合〔ステップS36でYESの場合〕にはそのままコマンド解析処理を終了し、セレクト信号がONされていない場合〔ステップS36でNOの場合〕には、次にNMIコマンドバッファの値が0か否かを判断する(S37)。すなわち、本実施の形態では、通電時に受信したコマンドを記憶するコマンドバッファと、停電信号を受信した時にCPU202の入力ポートに受信しているコマンドを記憶するNMIコマンドバッファがRAM206内に設けられている。したがって、停電が発生するタイミング(停電前にコマンドをコマンドバッファに取込んでいる場合等)によっては、これら二つのコマンドバッファに同一のコマンドが格納されていることとなる。このため、本実施の形態では同一コマンドの二度読みを防止するため、NMIコマンドバッファのコマンドを優先する(コマンドバッファのデータを無効とする)こととしている。したがって、セレクト信号の状態を確認した後、ステップS37の処理ででまずNMIコマンドバッファが0か否かが判断される。
【0036】
NMIコマンドバッファの値が0の場合〔ステップS37でYESの場合〕には、次にコマンド読込ポインタとコマンド書込ポインタの値が一致するか否かを判断する(S38)。すなわち、本実施の形態では、後で説明するコマンド受信処理においてメイン制御部100から送信されたコマンドをコマンドバッファに格納したときコマンド書込ポインタの値を1更新し、また、コマンド解析処理においてこの書込んだコマンドを解析したときコマンド読込ポインタの値を1更新する。したがって、コマンドバッファに格納したコマンドをすでに解析している場合には、コマンド書込ポインタとコマンド読込ポインタの値は一致し、逆にコマンドバッファに格納したコマンドを解析していない場合にはこれら両ポインタの値が不一致となる。したがって、ステップS38では同一コマンドを2回解析することがないように、まずコマンド読込ポインタの値とコマンド書込ポインタの値が一致するか否かを判断する。
コマンド読込ポインタの値とコマンド書込ポインタの値が一致する場合〔ステップS38でYESの場合〕には、既にコマンド解析が終了しているので、そのままコマンド解析処理を終了する。逆にコマンド読込ポインタの値とコマンド書込ポインタの値が一致しない場合〔ステップS38でNOの場合〕には、コマンドバッファの値を解析し(S39)、コマンド読込ポインタの値を1更新しさらにコマンドバッファの値を0クリアして(S40)、コマンド解析処理を終了する。
【0037】
一方、NMIコマンドバッファの値が0でない場合〔ステップS37でNOの場合〕には、NMIコマンドバッファのコマンドを解析する(S41)。そして、コマンド書込ポインタの値をコマンド読込ポインタの値、すなわち両ポインタの値を一致させる(S42)。これにより次回のコマンド解析処理の際にはステップS38の判断がYESとなるため、ステップS39の処理(コマンドバッファの値を解析する処理)に移行することが防止される。したがって、例えば、停電前に受信したコマンドをコマンドバッファに格納し、停電発生後に再度同一のコマンドをNMIコマンドバッファに格納するような場合において、同一のコマンド(コマンドバッファに格納されたコマンド)が再度解析されることはない。ステップS42が終わると、最後にNMIコマンドバッファの値を0クリアしてコマンド解析処理を終了する。
【0038】
コマンド解析処理の結果、受信したコマンドが賞球コマンドであった場合には、そのコマンドによって遊技者に払出すパチンコ球の数を賞球積算カウンタに加算し(S32)、同様にそのコマンドによって遊技者に払出すパチンコ球の数を賞球加減カウンタに加算する(S33)。次いで、上述した賞球加減カウンタに記憶した払出なければならないパチンコ球の数に基づいて、モータ25を駆動するための駆動データを作成する(S34)。次いで、何らかの異常(例えば、払出装置30から賞球を払出しすぎた場合等)がある場合には、その異常をホール店員等に知らせるエラー処理が行われる(S35)。このエラー処理が行われると、賞球制御部200はステップS31に戻って、S31からの処理を繰り返すこととなる。
【0039】
次ぎに、図12を参照して賞球制御部200におけるコマンド受信処理、図13を参照して賞球制御部200における入出力処理について説明する。
図12に示すコマンド受信処理では、まず賞球制御部200のCPU202がコマンド受信処理を行うために必要な領域を確保するため、所定のレジスタの内容を他の場所に退避させる(S44)。次に、ステップS44で確保した領域に入力ポートのコマンドを入力し(S45)、そして、セレクト信号がONとなっているかどうかを判断する(S46)。
セレクト信号がONとなっていない場合〔ステップS46でNOの場合〕には、メイン制御部100が送信状態になっていないためステップS49の処理に進む。逆に、セレクト信号がONとなっている場合〔ステップS46でYESの場合〕には、ステップS45で入力したコマンドをコマンドバッファに格納する(S47)。次いで書込ポインタの値を更新し(S48)、ステップS49に進む。ステップS49では、ステップS44の処理で退避したレジスタを元に復帰させる(S49)。これによりコマンド受信処理を終了する。
【0040】
図13に示す入出力処理では、まず図10に示すステップS34の駆動データ作成処理により作成された駆動データを、払出装置30のモータ25に出力する(S50)。具体的には、出力処理回路212を介して駆動信号をモータ25に出力する。
駆動信号を出力すると、次に払出装置30からパチンコ球が払出されたか否かを判断する(S51)。具体的には、賞球検出センサ27でパチンコ球を検出することにより出力される検出信号を、賞球制御部200で受信したか否かで判断する。検出信号を受信していない場合〔ステップS51でNOの場合〕にはステップS53に進み、検出信号を受信している場合〔ステップS51でYESの場合〕には、払出積算カウンタに検出したパチンコ球数を加算する(S52)。
次ぎに、賞球制御部200は、払出装置30の回転球受け体34が所定角度回転したか否かを判断する(S53)。具体的には、払出装置30に設けた回転検出センサ29から出力された検出信号を、賞球制御部200が受信したか否かで判断する。
回転検出センサ29から出力された検出信号を賞球制御部200で受信した場合〔ステップS53でYESの場合〕には賞球加減カウンタから1減算し(S54)、次に賞球加減カウンタが0以上か否かを判断する(S55)。賞球加減カウンタが0より大きい場合〔ステップS55でYESの場合〕には、払出すべき賞球がまだ払出されていないので、ステップS50に戻ってステップS50からの処理を繰り返す。逆に、賞球加減カウンタが0以下の場合〔ステップS55でNOの場合〕には、ステップS56に進む。
一方、回転検出センサ29から出力された検出信号を賞球制御部200が受信していない場合〔ステップS53でNOの場合〕には、ステップS50の駆動信号を出力してから所定時間が経過したか否かが判断される(S60)。所定時間経過していない場合〔ステップS60でNOの場合〕には、ステップS50に戻り、所定時間が経過するまでステップS53までの処理を繰り返す。逆に、所定時間が経過している場合〔ステップS60でYESの場合〕には、球ガミ処理を行う(S61)。すなわち、ステップS50で駆動信号を出力してから所定時間経過しても回転検出センサ29から出力される検出信号を受信できない場合は、何らかの原因でパチンコ球が噛み込んで回転球受け体34が回転できない状態であると考えられる。このため、モータ25を交互に回転させる処理(球ガミ処理)を行うことで球ガミ状態を解消する。球ガミ処理が終わると、再度ステップS50に戻って上述した処理を繰り返す。
【0041】
ステップS56の処理では、賞球加減カウンタの値が0か否かが判断される(S56)。賞球加減カウンタの値が0でない場合、すなわち賞球加減カウンタの値が0より小さい場合〔ステップS56でNOの場合〕には、払出装置30から賞球を払出しすぎている状態(異常状態)であるため入出力処理を終了する。なお、この異常状態は、図10に示すステップS35のエラー処理で店員等に報知される。
賞球加減カウンタの値が0の場合〔ステップS56でYESの場合〕には、モータ25を停止させ(S57)、賞球積算カウンタの値と払出積算カウンタの値が一致するか否かを判断する(S58)。賞球積算カウンタの値と払出積算カウンタの値が一致する場合〔ステップS58でYESの場合〕には入出力処理を終了し、賞球積算カウンタの値と払出積算カウンタの値が不一致の場合〔ステップS58でNOの場合〕には、払出すべき賞球が実際には払出されていない状態なので、賞球積算カウンタの値と払出積算カウンタの値が一致するまで賞球を払出す処理(リトライ処理)を行う(S59)。
【0042】
以上、説明したことから明らかなように、賞球制御部200では、メイン制御部100から出力されたライト信号による割込み処理により図12に示すコマンド受信処理を行い、その受信したコマンドは図10、図11に示す通常の処理において解析され、駆動データが作成される。そして、この駆動データは、図13に示すCTC割込み処理による入出力処理によりモータ25に出力され払出装置30から所定個数のパチンコ球が払出される。
このコマンドを受信する賞球制御部200では、コマンドバッファにコマンドを格納した(書き込んだ)ときに書込みポインタを更新し、この書き込んだコマンドを解析したときに読込ポインタを更新する。そして、書込ポインタと読込ポインタが一致するようコマンド解析処理することによって、コマンドバッファに格納したデータが二度解析されることを防止している。
また、賞球制御部200では、メイン制御部100から送信されたコマンドにより規定される払出球数を賞球加減カウンタに加算する。そして、回転検出センサ29から出力された検出信号を受信する毎に賞球加減カウンタの値を減算し、賞球加減カウンタの値が0となるまで払出装置30のモータ25を駆動する。これにより、メイン制御部100から送信されたコマンドにより規定される賞球数だけパチンコ球が払出されるよう払出装置30のモータ25が回転される。
さらに、賞球制御部200では、メイン制御部100から送信されたコマンドにより規定される払出球数を賞球積算カウンタに加算し、一方、払出装置30から払出されたパチンコ球を賞球検出センサ27で検出し、その検出信号を払出積算カウンタに積算する。そして、賞球積算カウンタと払出積算カウンタの値が一致するまで、払出装置30からパチンコ球が払出されるように制御する(図13のステップS59のリトライ処理)。したがって、何らかの原因で回転球受け体34が回転したにもかかわらず、パチンコ球が払出されないことによって未払い状態となることを防止することができる。
【0043】
(3)電源遮断時の処理(メイン制御部、賞球制御部)
次に、停電や不意の電源OFFによりパチンコ機10への電源供給が遮断された時のパチンコ機10の動作をメイン制御部100、賞球制御部200の処理を中心に説明する。
外部電源からパチンコ機10への電源供給が遮断されると、電源部120に設けた停電検出部130からメイン制御部100及び賞球制御部200に停電信号が出力される。停電検出部130から出力された停電信号は、メイン制御部100及び賞球制御部200のNMI端子(ノンマスカラブルインタラプト端子)に入力し、これらの制御部では以下に説明する停電処理が行われる。なお、停電信号出力後の所定時間(停電処理を行うために必要となる時間)のあいだメイン制御部100及び賞球制御部200に対して供給される電力は、既に述べたように電源部120のコンデンサC1に通電時に蓄えられた電力により賄われる。
【0044】
まず、停電信号を受信したメイン制御部100において行われる処理について図14に基づいて説明する。
図14に示すように、メイン制御部100はRAM106のレジスタ及びスタックポインタをRAM106の所定の領域に記憶させる(S60)。次ぎに、停電が復帰したときの処理のために、停電信号受信時にCPU102の出力ポートに設定されているコマンドをRAM106の所定のアドレスに記憶する(S61)。
そして、停電信号出力後に賞球検出センサ27から出力される検出信号を監視しなければならない時間を規定するカウント値をRAM106の所定のレジスタにセットし(S62)、このセットしたカウント値だけカウントダウンを開始する。なお、ステップS62でセットされるカウント値により規定される時間は、払出装置30の機械的特性、すなわち、モータ25に駆動信号を出力してから、賞球検出センサ27でパチンコ球を検出するまでに要する時間を考慮して決められている。
カウントダウンが開始されると、次ぎに内側の賞球用球誘導路32aに設けた賞球センサ27から出力された検出信号を賞球制御部200が受信したか否かを判断する(S63)。検出信号を受信している場合〔ステップS63でYESの場合〕には送信球数積算カウンタの値を1減算し(S64)、検出信号を受信していない場合〔ステップS63でNOの場合〕にはステップS65に進む。
ステップS65では、外側の賞球用球誘導路32aに設けた賞球センサ27から出力された検出信号を賞球制御部200が受信したか否かを判断する(S65)。検出信号を受信している場合〔ステップS65でYESの場合〕には送信球数積算カウンタの値を1減算し(S66)、検出信号を受信していない場合〔ステップS65でNOの場合〕にはステップS67に進む。
ステップS67では、停電信号を受信してから所定の時間が経過したか否かが判断される(S67)。具体的には、上記ステップS62でカウントを開始したカウント値が所定の値(本実施形態では、カウント値が0)となったか否かで判断する。そして、所定時間が経過していない場合〔ステップS67でNOの場合〕には、ステップS63の処理に戻りステップS63からの処理を繰り返す。
逆に、所定時間が経過している場合〔ステップS67でYESの場合〕には、次の処理に進み、チェックサム値を算出する(S68)。すなわち、RAM106の各レジスタの値を加算することでチェックサム値を求める。チェックサム値が算出されると、そのチェックサム値がRAM106の所定のアドレスに記憶され(S69)、RAM106へのアクセスが禁止される(S70)。これにより電源遮断時におけるメイン制御部100の処理が終了する。
なお、通電遮断時においてはRAM106には、別途電源部120に設けた情報保存用電源(コンデンサC5により構成)から電力が供給され、RAM106に記憶した情報が所定時間保持される。
【0045】
次ぎに、停電信号を受信した際の賞球制御部200における処理について図15を参照して説明する。図15から明らかなように、賞球制御部200における処理も、基本的には図14に示すメイン制御部100における処理と同様の処理が行われる。すなわち、予め設定された時間だけタイマを作動させることにより賞球検出センサ27から出力される検出信号を監視し、監視時間が経過すると、チェックサムを算出・記憶してRAM206へのアクセスを禁止する点では同一である。
ただし、メイン制御部100ではCPU102の出力ポートに設定されているコマンドを記憶し、これを通電が回復するまでのあいだ保存するのに対して、賞球制御部200では停電信号受信時にCPU202の入力ポートに受信しているコマンドがあれば、そのコマンドをRAM206内のNMIコマンドバッファに記憶し、通電が回復するまでのあいだ保存する点で異なる。
すなわち、図15に示すように、賞球制御部200の電源遮断時の処理では、ステップS72で監視時間がセットされた後、まずセレクト信号がONとなっているか否かが判断される(S73)。セレクト信号がONとなっていない場合〔ステップS73でNOの場合〕には、メイン制御部100がコマンドを送信している状態ではないためステップS75の処理に進む。逆に、セレクト信号がONとなっている場合〔ステップS73でYESの場合〕には、入力ポートに受信しているコマンドをNMIコマンドバッファに格納(書込み)する(S74)。後は、メイン制御部100と同様の手順で賞球検出等の所定の処理を行い、賞球制御部200における電源遮断時の処理を終了する。
【0046】
上述したことから明らかなように、メイン制御部100及び賞球制御部200は、停電信号を受信すると予め設定された時間だけタイマを作動させ、このタイマが作動している間、賞球検出センサ27から出力される検出信号を監視する。したがって、停電検出部130から停電信号が出力される直前に、賞球制御部200からモータ25に駆動信号が出力されるような場合においても、払出装置30から払出されるパチンコ球をメイン制御部100及び賞球制御部200において確実にカウントすることができる。
また、メイン制御部100では、停電信号受信時にCPU102の出力ポートに設定しているコマンドを通電が回復するまでのあいだ記憶・保持し、また、賞球制御部200では、停電信号受信時にメイン制御部100が送信処理を行っているか否かを判断し、送信処理を行っている場合にはCPU202の入力ポートに受信しているコマンドをRAM206内のNMIコマンドバッファに記憶・保持する。停電中保持されるこれらのコマンドは、次に説明する通電回復時の処理に用いられる。
【0047】
(4)通電回復時の処理(メイン制御部、賞球制御部)
次に、上述した電源遮断時における処理によりRAM106、206等に保存した情報を利用して処理を再開する際のメイン制御部100及び賞球制御部200の処理について、図16を参照して説明する。
本実施の形態に係るパチンコ機10において保存した情報を利用して電源遮断時の状態から遊技を再開する場合には、RAM消去スイッチを操作することなくパチンコ機10への電源投入を行う。
【0048】
まず、メイン制御部100における処理について説明する。メイン制御部100は、図7に示すように、電源供給が開始されるとまず初期化処理を行い(S01)、次ぎにRAM消去スイッチがONされているか否か(S02)、RAM106に異常が発生しているか否かが判断される(S03)。しかる後、電源遮断時の状態から遊技を開始するための復電処理が開始される(S10)。このメイン制御部100における復電処理について図16(a)に基づいて説明する。
図16(a)に示すように、メイン制御部100は、まずスタックポインタを復帰させる(S84)。具体的には、電源遮断時の処理(図14に示すステップS60の処理)によりRAM106の所定の領域に記憶したスタックポインタを元の領域に復帰させる。次ぎに、停電信号受信時にCPU102の出力ポートに設定されていたコマンドを、出力ポートに再設定する(S85)。具体的には、電源遮断時の処理(図14に示すステップS61の処理)により格納したコマンドを出力ポートに再設定する。そして、電源遮断時の処理(図14に示すステップS20の処理)により記憶した全てのレジスタの内容を復帰する(S13)。したがって、スタックポインタ、レジスタ及び出力ポートの状態が電源遮断時の状態に回復されるため、メイン制御部100は電源遮断時(停電信号受信時)から処理を再開する。このため、例えば、コマンド設定後でライト信号・セレクト信号をONする前に停電となった場合には、通電回復時にライト信号・セレクト信号がONされ、ステップS85で設定されたコマンドが賞球制御部200に再送信されることとなる。
【0049】
賞球制御部200における処理も、メイン制御部100と同様に、図10に示すように、初期化処理が行われ(S27)、次いでRAM消去スイッチがONされたか否か(S28)、RAM206に異常があるか否かが判断される(S29)。しかる後、賞球制御部200は復電処理を開始する(S36)。
復電処理では、図16(b)に示すように、電源遮断時の処理(図15のステップS71の処理)で記憶したスタックポインタを復帰させ(S90)、次いで電源遮断時の処理(図15のステップS71の処理)で記憶した全てのレジスタを回復する(S91)。したがって、スタックポインタ及びレジスタの内容が電源遮断時の状態に回復されるため、賞球制御部200は電源遮断時から処理が再開される。
ここで、停電発生時(停電信号受信時)にメイン制御部100がコマンド送信中(セレクト信号ON状態)であれば、賞球制御部200は、電源遮断時の処理において入力ポートに受信したコマンドをNMIコマンドバッファに保存している。したがって、通電回復時における最初のコマンド解析処理(図11参照)においては、NMIコマンドバッファに保持されているコマンドが処理される。したがって、コマンド送信中に停電等が発生しても、その送信中のコマンドは賞球制御部200において確実に処理される。また、停電発生前に賞球制御部200のコマンドバッファに格納(書込み)されている場合には、NMIコマンドバッファに記憶したコマンドを優先することによりコマンドの二度読みを防止している。
【0050】
上述したメイン制御部100と賞球制御部200におけるコマンド送受信処理を、図17を用いてより具体的に説明する。図17(a)は通常時におけるコマンド送受信状態を示し、図17(b)は図17(a)の各矢印のタイミングで停電が生じたときの通電回復時における各制御部100、200の動作を示す表である。
まず、通常時におけるコマンドの送信処理を図17(a)を参照して説明する。メイン制御部100から賞球制御部200にコマンドを送信するには、図17(a)に示すように、まずメイン制御部100のCPU102の出力ポートにコマンドが設定される。次に、メイン制御部100からライト信号・セレクト信号がONされ、メイン制御部100はコマンド送信状態となる。ライト信号がONされると、賞球制御部200ではコマンド受信処理が開始され、まずコマンドバッファへのコマンドの書込みが行われ、セレクト信号がOFFとなった以降の処理でそのコマンドの解析が行われる。以上の手順が通常時におけるメイン制御部100から賞球制御部200にコマンドを送信するときの処理である。
次に、矢印t1のタイミング(出力ポートにコマンド設定後、セレクト信号ON前)で停電が生じたときの各制御部100、200の処理を説明する。図17(b)に示すように、メイン制御部100は通電が回復するとまず出力ポートにコマンドを設定し、停電信号を受信した時からの処理を再開する。したがって、停電信号受信時までにはライト信号・セレクト信号がONされていないので、通電回復後の処理においてライト信号・セレクト信号がONされる。このため、メイン制御部100の出力ポートに設定されたコマンドが賞球制御部200に送信される。賞球制御部200は、停電信号受信時はライト信号を受信する前でありコマンド受信処理等は行っておらず、通電回復後に始めてメイン制御部100から送信されるコマンドを受信することとなる。
次に、矢印t2のタイミング(ライト信号・セレクト信号ON後、賞球制御部200がコマンドバッファにコマンドを書込む前)で停電が生じたときの各制御部100、200の処理を説明する。図17(b)に示すようにメイン制御部100は、通電が回復すると、まず出力ポートにコマンドを設定し、停電信号受信時から処理を開始する。しかしながら、メイン制御部100においては、停電信号受信時には既にライト信号・セレクト信号をONさせる処理はすんでいるため、通電回復後の処理でライト信号・セレクト信号がONされることはない。このため、出力ポートに設定されたコマンドが賞球制御部200に送信されることはない。一方、賞球制御部200は、停電信号受信前の処理ではコマンドをコマンドバッファに書込んでいないが、停電処理時の処理(図15参照)においてNMIコマンドバッファにコマンドを書込んでいる。したがって、通電回復後にメイン制御部100からコマンドが送信されなくても、NMIコマンドバッファに保存したコマンドを読込んで所定の処理を行う。
次に、矢印t3のタイミング(賞球制御部200がバッファにコマンドを書込んだ後で、セレクト信号OFF前)で停電が生じたときの各制御部100、200の処理を説明する。図17(b)に示すようにメイン制御部100は、上述した場合と同様、通電が回復すると出力ポートにコマンドは設定されるが、ライト信号・セレクト信号をONとする処理が停電発生前に済んでいるため、通電回復後の処理により出力ポートに設定されたコマンドが賞球制御部200に送信されることはない。一方、賞球制御部200では、停電処理前のコマンド受信処理によりコマンドバッファにコマンドを受信しており、さらに停電信号受信後の処理によりNMIコマンドバッファにも同一のコマンドを受信している。しかしながら、通電回復後の最初のコマンド解析処理ではNMIコマンドバッファに記憶したコマンドに基づいてコマンド解析を行い(読込を行い)、コマンドバッファに記憶しているコマンドについては解析が行われない。したがって、同一のコマンドが二度読込まれることはない。
なお、セレクト信号OFF後に停電が生じたときは、メイン制御部100ではコマンドの送信が終了しているため、通電回復時にコマンドが送信されることはない。また、賞球制御部200においても、停電開始前にコマンドバッファにコマンドの書込み処理が完了しており、なおかつ、停電信号受信時にセレクト信号がOFFとなっているためNMIコマンドバッファにコマンドを取込むこともない。したがって、通電回復後は通常時の処理と同様、コマンドバッファに記憶したコマンドに基づいて処理が開始される。
【0051】
上述したことから明らかなように、本実施の形態に係るパチンコ機10では、停電信号受信時にメイン制御部100の出力ポートに設定されているコマンドを記憶保持することにより、通電回復後に再度そのコマンドを賞球制御部200に送信することが可能となる。
また、本実施の形態に係るパチンコ機10では、賞球制御部200に通常時の処理において受信するコマンドを格納するコマンドバッファと、停電信号受信後の処理において受信するコマンドを格納するNMIコマンドバッファが設けられている。したがって、本実施の形態では、停電信号受信後の処理においてコマンドを格納・保持することが可能となる。すなわち、停電信号受信時に同一のコマンドバッファにコマンドを格納するような形態とすると、図17(a)の矢印t3に示すタイミングで停電が生じた場合等には、停電前に書込んだコマンドのコマンド解析が行われる前に、さらにコマンドが書込まれることとなるため、書込ポインタの値と読込ポインタの値がコマンド解析を行っても一致しなくなる異常状態となる。これに対して、本実施の形態ではコマンドバッファとNMIコマンドバッファという二つのコマンドバッファを設けることで、上述した問題を生じることなく停電処理時において受信するコマンドを別途記憶することができる。これによって、上述した図17(a)の矢印t2、t3に示すタイミングで停電が生じた場合においても、メイン制御部100から送信されたコマンドを賞球制御部200で受信することが可能となる。
また、本実施の形態に係るパチンコ機10では、メイン制御部100におけるコマンド解析処理は、セレクト信号がOFFとなった後(メイン制御部100のコマンド送信処理の終了後)に行われる。このため、電源断時の処理においてコマンドを取り込むとき(セレクト信号がONのとき)には、コマンドバッファのコマンドが解析(読込)されていないため同一のコマンドの二度読みを確実に防止することができる。すなわち、停電信号受信前にコマンド解析を終了し、なおかつ、停電信号受信時の処理で解析してしまったコマンドと同一のコマンドをNMIコマンドバッファに取り込んでしまうような場合(稀なケース)が生じることはない。
さらに、本実施の形態に係るパチンコ機10では、メイン制御部100から賞球制御部200に向かって送信されたコマンドが賞球制御部200で確実に受信できるため、遊技者に正確な数のパチンコ球が払出され遊技者に対して未払いのパチンコ球が生じることが防止される。
【0052】
以上、本発明の好適な一実施の形態について説明したが、本発明は上述した実施の形態に限られることなく、本発明は当業者の知識に基づいて種々の変更、改良を施した形態で実施することができる。
【0053】
例えば、上述した実施の形態においては、メイン制御部100から賞球制御部200にコマンドを送信する場合に本発明を適用した例であったが、当然のことながら本発明のコマンド送受信技術は、メイン制御部から他の制御部(特別図柄の変動表示する図柄表示器を制御する図柄制御部、効果音を発生するスピーカを制御する音制御部、効果光を発光するランプ制御部等)に向かってコマンドを送信する場合にも適用することができる。
【0054】
また、上述した実施の形態においては、ライト信号とセレクト信号を同時にONし、ライト信号を早めにOFFしてメイン制御部100から賞球制御部200にコマンドを送信するようにしていたが、このような形態に限られず、ライト信号とセレクト信号のON・OFFのタイミングは種々のタイミングとすることができる。
【0055】
また、上述した実施の形態で説明したような送信装置及び/又は受信装置の構成は、コマンドの送受信処理が割込み処理による場合〔すなわち、突然コマンド送受信処理が開始される図18(a)に示すような場合〕に有効である。しかしながら、コマンド受信処理やコマンド解析処理の間隔に対し、コマンド送信が複数回行われないような場合〔図18(b)に示すような場合〕においては、停電処理中に受信するコマンド格納領域(実施の形態ではNMIコマンドバッファ)を別に持つことなく、通常時のコマンド格納領域(実施の形態ではコマンドバッファ)に上書きするような構成としても良い。
すなわち、送信装置と、その送信装置から送信されたコマンドを受信する受信装置を有する遊技機において、その受信装置は、通電時及び通電が遮断された後に受信部に受信したコマンドを受信コマンド記憶部に格納する受信コマンド格納手段と、その受信コマンド格納手段により格納されたコマンドを通電が回復するまでのあいだ保持する保持手段と、通電が回復したときに前記受信コマンド記憶部に格納されたコマンドを処理するコマンド処理手段を備え、前記送信装置からのコマンド送信間隔が、前記受信装置によるコマンド処理間隔よりも長く設定される。
上記のように構成された遊技機においては、送信装置から次ぎのコマンドが送信される前に受信装置はコマンド処理(コマンド解析等)を終了する。このため、受信したコマンドを受信コマンド記憶部に上書きしても問題はなく、通電時と通電が遮断された後における受信コマンド記憶部を兼用することができる。
したがって、外部電源からの電力供給が遮断されたときは、既に受信しているコマンドの上に上書きすれば良く、送信装置からの送信処理が開始された後に通電が遮断された場合においても、送信装置から送信されたコマンドを受信装置で処理することができる。
【0056】
なお、上述した実施の形態は本発明をパチンコ機に適用した例であったが、本発明はこの他にも、例えば、アレンジホール機(一定数の鋼球を遊技盤上に射出して所定の当たり状態を成立させるもの)、スロットマシン、雀球遊技機、パチスロ機等の各種遊技機にも適用することができる。
【図面の簡単な説明】
【図1】 本発明の作用を説明するための図
【図2】 本発明の作用を説明するための図
【図3】 本発明の作用を説明するための図
【図4】 本実施の形態に係るパチンコ機の裏面側に配備される裏セット板およびその付属物示す背面図
【図5】 図1に示すパチンコ機の制御部の構成を示すブロック図
【図6】 電源部120の構成を説明するための図
【図7】 通常時におけるメイン制御部の処理を説明するフローチャート
【図8】 通常時におけるメイン制御部の処理を説明するフローチャート
【図9】 通常時におけるメイン制御部の処理を説明するフローチャート
【図10】 通電時における賞球制御部の処理を説明するフローチャート
【図11】 通電時における賞球制御部の処理を説明するフローチャート
【図12】 通電時における賞球制御部の処理を説明するフローチャート
【図13】 通電時における賞球制御部の処理を説明するフローチャート
【図14】 電源遮断時におけるメイン制御部の処理を説明するフローチャート
【図15】 電源遮断時における賞球制御部の処理を説明するフローチャート
【図16】 通電回復時におけるメイン制御部、及び、賞球制御部の処理を説明するフローチャート
【図17】 メイン制御部、及び、賞球制御部におけるコマンド送信の具体的な動作を説明するための図
【図18】 本発明の他の形態を説明するための図
【符号の説明】
10・・パチンコ機
27・・賞球検出センサ
29・・回転検出センサ
30・・払出装置
34・・回転球受け体
100・・メイン制御部
200・・賞球制御部
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a gaming machine that saves information when power is cut off and resumes the interrupted processing based on the saved information. Specifically, the power is turned on during transmission / reception processing for transmitting / receiving a command from the transmission device to the reception device. The present invention relates to a command transmission / reception technique for complementing an interrupted command transmission / reception process in the case of interruption.
[0002]
[Prior art]
For example, in a highly electrified gaming machine such as a pachinko machine, a main control device that controls the entire gaming machine and a sub-control device (for example, a symbol control device, a prize ball control device) connected to the main control device Etc.) are provided. In such a configuration, the main control device (transmission device) performs processing such as creation / transmission of a command to be transmitted to the sub-control device, and the sub-control device (reception device) receives the command transmitted from the main control device. Based on the received command, an electrical device (for example, a symbol display device, a payout device, etc.) installed in the gaming machine is controlled.
[0003]
[Problems to be solved by the invention]
By the way, in the gaming machine exemplified as the above-described pachinko machine, there may be a problem that processing performed in each control device is interrupted when a sudden power failure or unexpected power off is performed. For this reason, in the above-described gaming machine, information related to the process being executed at the time of interruption of energization such as a power failure is temporarily stored in the storage device, and the interrupted process is resumed based on the information stored in the storage device after the power supply is restored. It is desired to have an information storage function.
However, even in the gaming machine having the information storage function described above, there may be a case where the interrupted process cannot be resumed when the power is restored. In other words, the command transmission / reception process in the main control unit and the sub control unit requires a certain time, so depending on the timing when the energization is interrupted (the timing at which the process is interrupted), the main control unit and the sub control unit This is because there may occur a case where commands cannot be transmitted and received between them.
For example, before a transmission is started after a transmission command is set in a transmission unit (typically an output port of a CPU or PIO) of the main control device [typically, a reception device starts reception processing. If the processing is interrupted before the start signal (write signal) is output], even if the processing is resumed, the transmission command is not set to the transmitter (the command has already been set by the processing before the interruption). This is because the transmission command is not transmitted. Also, for example, if processing is interrupted before command reception at the receiving device even after command transmission is started, the command is set again in the transmission unit as in the case described above. As a result, there is a situation in which a command is not transmitted to the receiving device.
[0004]
The present invention has been made in view of the above-described circumstances, and its purpose is to provide a command transmission / reception process between a transmission device (main control device) and a reception device (sub control device) even when the command transmission / reception process is interrupted by a power failure or the like. A gaming machine capable of causing a receiving device to receive a command that is scheduled to be transmitted by an interrupted transmission / reception process.
[0005]
[Means and effects for solving the problems]
  In order to solve the above problems, the gaming machine of the present application is:Main control unitAnd itsMain control unitReceive commands sent fromSub control unitAnd having. This gaming machine detects that power supply from an external power source is cut off from a power supply unit that supplies power supplied from an external power source to the main control device and the sub control device, and the main control device and the sub control device A power failure detection unit that outputs a power failure signal to the power source, and a first backup power source that stores power supplied from the external power source when energized with the external power source and supplies the stored power to the main controller and the sub control device when the power is interrupted And a second backup power source that stores power supplied from the external power source when energized with the external power source and supplies the stored power to the main control device and the sub control device when the energization is interrupted.
  The main control device has a main CPU, a main ROM that stores a control program, and a main RAM that stores control information. The main CPU is programmed to execute a command transmission process for transmitting a command set to the output port to the sub control device by setting a command to the output port and then outputting a start signal to the sub control device. Yes. When the main CPU receives the power failure signal, the main CPU is programmed to execute the power failure processing with the power supplied from the first backup power source. In the power failure processing, the processing executed when the power failure signal is received is interrupted. Then, information for resuming the interrupted processing is stored in the main RAM, and then processing for storing the command set in the output port in the main RAM is executed. The information stored in the main RAM is held even during power shut-off by the power supplied from the second backup power source. When the power is turned on, the main CPU is programmed to set a command stored in the main RAM by the power failure process to the output port and to execute a power recovery process that resumes the process interrupted when the power failure signal is received.
  The sub-control device has a sub-CPU, a sub-ROM that stores a control program, and a sub-RAM that stores control information. When the sub CPU receives an activation signal from the main control device without receiving a power failure signal, the sub CPU stores the command output from the output port of the main CPU in the first command buffer provided in the sub RAM. Programmed to execute command reception processing. When receiving the power failure signal, the sub CPU is programmed to execute the power failure processing with the power supplied from the first backup power source. In the power failure processing, the processing executed when the power failure signal is received is interrupted. The information for resuming the interrupted processing is stored in the sub-RAM, and then when the activation signal is output from the main CPU, the command transmitted from the output port of the main CPU is provided in the sub-RAM. The process stored in the second command buffer is executed. Information stored in the sub-RAM is retained even during power shutdown by the power supplied from the second backup power source. The sub CPU is programmed to execute a power recovery process that resumes the process interrupted when the power failure signal is received when the power is turned on. Then, after the power recovery process is completed, the sub CPU executes (1) an analysis process on the stored command when a command is stored in one of the first command buffer and the second command buffer. (2) When commands are stored in both the first command buffer and the second command buffer, analysis processing is executed only for one of the commands.
[0006]
  When power is cut off due to a power failure etc.Main controller (transmitter)ThenWhen receiving a power failure signalInOutput portCommand set toMain RAMWhen power is restored, theMain RAMThe processing from when the power is cut off is resumed using the command stored and held in. Also,Sub-control device (receiving device)ThenWhen receiving a power failure signalIf there is a command received in theSecond command bufferThis is stored and stored in theSecond command bufferHeld incommandResume processing based on.
  That is, as shown in FIG.Output portCommand is set toSub-control device (receiving device)If power is cut off before transmission starts,Control device (transmitting device)IsOutput portCommand set toMain RAMWhen power is restored, use this command again to restore power.Sub-control device (receiving device)The transmission process to is resumed. Therefore, the command that could not be transmitted is retransmitted after the energization recovery.
  As shown in FIG.Main controller (transmitter)After the start of command transmission bySub-control device (receiving device)If the power is cut off before the command is fetched byMain controller (transmitter)However, since the transmission process is started, unlike the case described above, the transmission process is not started when the power supply is restored, and thus the command is not transmitted. However, in such a caseSub-control device (receiving device)InWhen receiving a power failure signalThe command received inSecond command bufferThe process is resumed using this command when power is restored. Therefore, even in this caseMain controller (transmitter)Command sent fromSub-control device (receiving device)Can be received.
  As shown in FIG.Main controller (transmitter)The command transmission process by has started, andSub-control device (receiving device)IsFirst command bufferIf power is cut off with the command stored inSub-control device (receiving device)ThenDue to power failure processing after receiving a power failure signalfurtherSecond command bufferThe command will be stored in In such a case, priority is given to either command (for example,Stored by power failure processingcommand(Second command bufferCommand) can be prevented from being duplicated.
[0012]
  In addition,The gaming machine mentioned aboveDetects that the power supply from the external power supply has been cut offPower failure detection unitMay be provided in any case, for example, a transmission device(Main controller)Or a receiving device(Sub control device)Or may be provided on both of them.
  Moreover,Power failure detection unitThe transmitting device(Main controller)And receiver(Sub control device)You may provide separately. In such a case, a decrease in the power supplied from the external power source can be detected at one location, and the detection device synchronizes with the transmission device or the reception device.Blackout signal(A signal for recognizing a power drop) can be output.
[0013]
  Also,The gaming machine mentioned aboveInThe main control unit controls the entire gaming machine, and the sub-control unitBased on a command output from the main control device, the payout device for paying out game media to the player is controlled.Configured asIs possible.
  According to such a configuration, since the payout device for giving a privilege (payout of game media) to the player is correctly controlled (without causing a command fetch error), the player is informed of the loss (unpaid game media). Giving is prevented.
[0014]
  In addition,Invention mentioned aboveEffectively functions in a gaming machine configured to transmit and receive commands only in one direction from the transmitting device to the receiving device.
  In such a case, data is not transmitted / received in the reverse direction from the receiving device to the transmitting device, and it cannot be confirmed whether or not the transmitting device can transmit a command. As a gaming machine in which commands are transmitted and received only in one direction, for example, there is a pachinko machine.
[0015]
DETAILED DESCRIPTION OF THE INVENTION
1 is a diagram showing an embodiment in which the present invention is applied to a command transmission / reception process between a main control unit in a first type pachinko machine and a prize ball control unit that controls a payout device (a device that pays out a prize ball to a player). This will be described with reference to FIGS. Here, FIG. 4 is a rear view showing the back set plate 11 and its accessories (dispensing device 30 and the like) arranged on the back side of the pachinko machine according to the present embodiment, and FIG. 5 is a pachinko machine shown in FIG. 6 is a block diagram illustrating the configuration of the control unit of the machine, FIG. 6 is a diagram for explaining the configuration of the power supply unit 120, and FIGS. 7 to 9 are flowcharts of processing in the main control unit. 13 is a flowchart of processing in the prize ball control unit, FIG. 14 is a flowchart of processing in the main control unit when the power is shut off, and FIG. 15 is a flowchart of processing in the prize ball control unit when the power is shut off. FIG. 17 is a flowchart of processing in the main control unit and prize ball control unit when power is restored, and FIG. 17 is a diagram for explaining the operation of each control unit when the power is shut off.
[0016]
First, the dispensing device 30 provided in the pachinko machine 10 will be described.
As shown in FIG. 4, the payout device 30 is disposed on the back set plate 11 attached to the back side of the pachinko machine 10. In addition to the payout device 30, the back set plate 11 includes a ball storage tank 13 for storing a large number of pachinko balls, and a guide rail 14 for guiding the pachinko balls stored in the ball storage tank 13 to the payout device 30. Is provided. The guide rail 14 has two spherical passages formed in parallel inside and outside, although not shown.
[0017]
As shown in FIG. 4, the payout device 30 includes an upper sphere guide path 31a communicating with the guide rail 14, a rotating sphere receiver 34 provided near the downstream opening of the upper sphere guide path 31a, and the rotation It has two lower sphere guide paths 31b arranged below the ball receiver 34. The upper sphere guide path 31a, the rotating sphere receiving body 34, and the lower sphere guide path 31b are also provided adjacent to each other in pairs in and out, according to the fact that the guide rails 14 are formed in two rows. .
The rotating ball receiver 34 is formed with a number of concave portions (ball receiving portions) 34a (six locations in the figure) that can temporarily receive one pachinko ball, and the upper ball guiding path 31a passes through the ball receiving portion 34a. Pachinko balls that have been received are accepted one by one. The rotating ball receiver 34 is rotationally driven by a motor 25 (not shown: shown in FIG. 5). For this reason, when the motor 25 rotates, the pachinko balls received by the ball receiving portion 34a can be regularly dropped into the lower ball guide path 31b one by one. Since the rotating ball receivers 34 are formed in two rows (inside and outside) as already described, the pachinko balls are discharged from the inner and outer rotating ball receivers 34 to the lower guide path 31b. The timing at which pachinko balls are discharged from the two inner and outer rotating ball receivers 34 is adjusted so that the pachinko balls are not discharged from both rotating ball receivers 34 at the same time. That is, it is configured such that the discharge timing of the pachinko balls is shifted by providing the rotating ball receivers 34 provided inside and outside with a predetermined angle shifted from each other.
The upstream side portion of the lower ball guiding path 31b into which the pachinko balls discharged from the rotating ball receiving body 34 fall is divided into two, a winning ball guiding path 32a and a lending ball guiding path 32b. Whether the pachinko ball discharged / dropped from the ball receiving portion 34a according to the rotation direction of the rotating ball receiving body 34 falls into the winning ball guiding path 32a or into the lending ball guiding path 32b. Is determined.
[0018]
As a result of this configuration, pachinko balls stored in the ball storage tank 13 reach the rotating ball receiver 34 from the bottom of the ball storage tank 13 through the guide rail 14 and the upper ball guide path 31a. When the motor 25 is driven to rotate, the rotating ball receiver 34 rotates. As a result, the pachinko balls are one ball at a time in the lower ball guiding path 31b (the winning ball guiding path 32a or the lending ball guiding path 32b). ). That is, when paying out a prize ball to the player, the rotating ball receiver 34 rotates counterclockwise, so that the pachinko balls discharged from the rotating ball receiver 34 fall into the award ball guiding path 32a. . On the other hand, when paying out the pachinko balls as rental balls, the rotating ball receiver 34 rotates clockwise, so that the pachinko balls discharged from the rotating ball receiver 34 fall into the rental ball guiding path 32b. The pachinko balls that have fallen into the award ball guiding path 32a and the lending ball guiding path 32b flow into the payout ball guiding path 35 and are discharged to an upper plate (not shown) provided in front of the pachinko machine 10. .
[0019]
Further, the dispensing device 30 is provided with a rotation detection sensor 29 including a photo detector (photo coupler) adjacent to the above-described rotating ball receiver 34, thereby detecting the rotation of the rotating ball receiver 34. . That is, the rotating ball receiver 34 is provided with a disk-shaped position detection plate (not shown) that rotates integrally with the rotating ball receiver 34, and the plurality of ball receivers are provided at the periphery of the position detection plate. A plurality of slits corresponding to each of the portions 34a are provided at a constant interval (angle). The rotation detection sensor 29 is disposed at a predetermined position where the passage of the slit of the position detection plate can be detected when the position detection plate rotates. Therefore, every time one of the slits of the position detection plate passes the detection position of the rotation detection sensor 29, the rotation detection sensor 29 is turned on, and a rotation detection signal is output to the prize ball control unit 200 described later. That is, once for each rotation of the rotation angle at which one pachinko ball can be discharged from the ball receiving portion 34a (that is, 60 degrees in the rotating ball receiving body 34 according to the present embodiment having the six ball receiving portions 34a). The rotation detection signal is output to the winning ball control unit 200. The mechanism of the photo detector itself may be the same as that provided in a conventional pachinko machine (see, for example, Japanese Patent Laid-Open No. 9-1555035), and does not characterize the present invention. Description is omitted.
[0020]
Further, the payout device 30 is provided with a prize ball detection sensor 27 (typically a proximity switch) for detecting a pachinko ball passing through the guidance path on the prize ball guiding path 32a. The prize ball detection sensor 27 is provided in each of the ball guidance paths 32a for prize balls provided in two rows inside and outside. When a pachinko ball passes through the prize ball guiding path 32a, a prize ball detection signal is output to the main control unit 100 and the prize ball control unit 200 described later.
Similarly, a lending ball detection sensor 28 (typically a proximity switch) that detects a pachinko ball passing through the lancing path is also provided in the lending ball guiding path 32b. This lending ball detection sensor 28 is also provided in each of lending ball ball guiding paths 32b provided in two rows inside and outside. When a pachinko ball passes through the lending ball guiding path 32b, a lending ball detection signal is output to the main control unit 100 and the prize ball control unit 200 described later.
[0021]
Next, the configuration of a control system that controls the dispensing device 30 configured as described above will be described with reference to FIGS. 5 and 6.
As shown in FIG. 5, the control system that controls the payout device 30 includes a main control unit 100 that controls the entire pachinko machine 10 and a prize ball control unit 200 that is electrically connected to the main control unit 100. . The main control unit 100 and the prize ball control unit 200 are electrically connected to the power source unit 120, and are configured to supply power from the power source unit 120 to the main control unit 100 and the prize ball control unit 200.
[0022]
The power supply unit 120 includes a voltage transformer 140 that rectifies and smoothes the AC 24V power supplied from the external power source into a DC supply power having a voltage corresponding to each electrical component equipped in the pachinko machine 10, and a power failure and other reasons. And a power failure detection unit 130 that outputs a power failure signal toward each control unit (main control unit 100, prize ball control unit 200, etc.) of the pachinko machine 10 when energization from the external power source is interrupted by the power supply.
As shown in FIG. 6, the voltage transformer 140 includes rectifier circuits 142a and 142b that rectify the waveform of the AC 24V power supply, and smoothing circuits (diodes D1, D2, and D2) that smooth the pulsating waveform rectified by the rectifier circuits 142a and 142b. D3 and D4 and capacitors C1, C2, C3, and C4), and constant voltage circuits IC1, IC2, and IC3 that make the waveform smoothed by the smoothing circuit constant.
In such a voltage transformer 140, a signal of + 5V generated by the constant voltage circuit IC1 is supplied to the main controller 100 and the prize ball controller 200 at normal times. In addition, when the energization is cut off, such as a power failure, the power stored during energization of the capacitor C1 is supplied to the main control unit 100 and the prize ball control unit 200. It is possible to perform the process.
Further, the + 5V signal output from the constant voltage circuit IC1 is separated in parallel and connected to the information storage output terminal VBB via the diode D5 and the capacitor C5. The power stored in the capacitor C5 is supplied to the RAMs of the main control unit 100 and the prize ball control unit 200 when the energization is interrupted, such as a power failure, and the information stored in the RAM is held.
[0023]
The main control unit 100 is a control device that controls the operation of each device (electrical component) of the pachinko machine 10, and in addition to the prize ball control unit 200, a symbol display (not shown) arranged in the center of the game board. ) The symbol display control unit that performs symbol variation processing, the sound control unit that performs processing for generating sound effects and BGM from the speaker, the lamp control unit that performs lighting driving processing of the lamps mounted inside and outside the game board, etc. Electrically connected. The mechanism of each control unit is the same as that in a conventional pachinko machine, and the description thereof is omitted here.
As shown in FIG. 5, the main control unit 100 includes a CPU 102, a ROM 104, a RAM 106, an input processing circuit 108, a communication control circuit 112, and the like connected to the CPU 102 via a bus 114.
The CPU 102 controls the pachinko machine 10 by executing a game control program stored in the ROM 104. This game control program includes a control program for creating various commands to be transmitted to each control unit such as the prize ball control unit 200 and transmitting commands to each control unit.
The RAM 106 stores various data and input / output signals. In the RAM 106, as will be described later, a winning number counter for counting the number of pachinko balls won in various winning openings provided on the front side of the game board, and a winning ball created based on the winning number counter A command to be transmitted to the control unit 200 and a transmission ball number counter for accumulating the number of pachinko balls ordered to be paid out to the prize ball control unit 200 based on the command are stored.
The input processing circuit 108 receives signals output from sensors (typically proximity switches) such as a general winning port sensor 54 and a specific winning port sensor 56 that detect pachinko balls that have won in various winning ports, and performs main control. It has a function of converting into a data format that can be processed in the unit 100. The input processing circuit 108 is also input with a power failure signal output from the power failure detection unit 130 described above and detection signals output from the prize ball detection sensor 27 and the lending ball detection sensor 28 provided in the payout device 30. It has become. The communication control circuit 112 is a circuit (consisting of a general-purpose logic IC, PIO, transistor array, etc.) for transmitting a command or the like of a CPU output port to each control unit such as the prize ball control unit 200.
[0024]
The prize ball control unit 200 is a control device that controls the operation of the payout device 30 based on the command transmitted from the main control unit 100 described above. Basically, as with the main control unit 100, the CPU 202, the CPU 202, A ROM 204, a RAM 206, an input processing circuit 210, a communication control circuit 208, an output processing circuit 212, and the like are connected via a bus 214.
The CPU 202 performs prize ball control and the like of the payout device 30 according to a control program stored in the ROM 204. Various data and input / output signals are stored in the RAM 206. As will be described later, the RAM 206 converts the command transmitted from the main control unit 100 into the number of prize balls and accumulates the prize ball, and the prize is transmitted from the main control unit 100 in the same manner as the prize ball accumulation counter. The received command is converted into the number of prize balls, integrated, and when a detection signal output from the rotation detection sensor 29 is received, a prize ball addition / subtraction counter that subtracts 1 and a detection signal output from the prize ball detection sensor 27 are received. A payout accumulation counter for accumulating the number of received detection signals is stored.
The input processing circuit 210 can receive the detection signals output from the rotation detection sensor 29, the lending ball detection sensor 28, and the prize ball detection sensor 27 provided in the payout device 30 and process them in the prize ball control unit 200. Has a function to convert to a data format. In addition, the power failure signal output from the power failure detection unit 130 described above is also input to the input processing circuit 210.
The output processing circuit 212 is a circuit that outputs a drive signal for driving the motor 25, and the communication control circuit 208 is a circuit for receiving a command transmitted from the main control unit 100. It should be noted that a command buffer for storing a command received at the time of energization (corresponding to the energized reception command storage unit in the claims) and an NMI command buffer for storing a command received at the time of power failure signal reception (reception at energization in the claims) (Corresponding to a command storage unit) is provided in the RAM 206.
[0025]
Next, processing of the main control unit 100 and the prize ball control unit 200 configured as described above will be described. First, the processing of each control unit when power is supplied to the pachinko machine 10 will be described.
[0026]
(1) Power-on processing (main control unit)
When the power is turned on, energization is started from the power supply unit 120 to each control unit, and when the voltage applied to each control unit becomes a predetermined voltage, processing described below is started. First, the processing of the main control unit 100 will be described with reference to FIGS.
Note that the main control unit 100 receives a prize detection process for detecting a pachinko ball that has won a prize opening, and a prize for transmitting a prize ball command created based on a prize detected by the prize detection process to the prize ball control unit 200. Input / output processing of commands and signals such as ball command transmission processing and prize ball detection processing for detecting a pachinko ball paid out from the payout device 30 is separate from normal processing in the main control unit 100. This is performed by interrupt processing at predetermined intervals (4 ms in this embodiment) by a CTC counter provided in the control unit 100. Therefore, first, normal processing of the main control unit 100 will be described first with reference to FIG. 7, and then interrupt processing by the CTC counter (hereinafter simply referred to as CTC interrupt processing) will be described with reference to FIG. 8 and FIG. .
[0027]
As shown in FIG. 7, the main control unit 100 first performs initialization processing (S01), and then determines whether the RAM erase switch is turned on (output) (S02). Here, the RAM erase switch is a switch operated to erase stored information when the power is shut off. That is, it is a switch that is operated when it is not necessary to resume the game using the stored information (for example, when the business is turned off the next day after the power is turned off due to the end of business), and is operated when the power to the pachinko machine 10 is turned on. Then, a signal is output to the main control unit 100 and the prize ball control unit 200. Accordingly, in step S02, the main control unit 100 determines whether or not a signal output by operating the RAM erase switch has been received.
If the RAM erase switch has been operated (YES in step S02), the process proceeds to step S04. If the RAM erase switch has not been operated (NO in step S02), then there is an abnormality in the RAM 106. Is determined (S04). In other words, if the information stored in the RAM 106 is destroyed for some reason, the process cannot be resumed using that information, so it is first determined whether the information in the RAM 106 can be used. As a specific method, the determination is made based on whether or not the checksum value (added value obtained by adding the values of the registers in the RAM 106) matches the normal value. If there is an abnormality in the RAM 106 (YES in step S03), the process proceeds to step S04. If there is no abnormality in the RAM 106 (NO in step S03), the process is resumed based on the stored information. The process proceeds to electric processing (S09). The contents of the power recovery process will be described later. In step S04, the main control unit 100 clears the information stored in the RAM 106. Thereby, the main control unit 100 shifts to a main process described below.
[0028]
In the main processing, first, output data creation processing is performed (S05). In this output data creation processing, not shown, provided on the front surface of the game board based on detection signals output from various sensors (general winning sensor 54, specific winning sensor 56, starting port sensor, etc.) equipped in the pachinko machine. Output data (driving data) for operating the electric winning component such as a big prize opening is created. The created output data is output to each electrical device by the CTC interrupt process described above.
When the output data creation process is completed, a command creation process is performed (S06). In the command creation process, based on detection signals output from various sensors (general winning sensor 54, specific winning sensor 56, start opening sensor, etc.) equipped in the pachinko machine, the winning ball control unit 200, the symbol control unit, the sound A command to be transmitted to a sub-control unit such as a control unit or a lamp control unit is created. For example, a prize ball command for instructing the prize ball to be paid out is created in the prize ball control unit 200, a symbol variation command for instructing a variation in a special symbol is created in the symbol control unit, and a sound effect is transmitted to the sound control unit. A sound effect command for commanding sound generation is created, and a lamp lighting command for commanding lamp decoration is created in the lamp control unit. The command created in step S06 is transmitted to each control unit by CTC interrupt processing. Note that the command transmission process to each control unit will be described later by taking the command transmission to the prize ball control unit 200 as an example.
When the command creation processing is completed, external information creation processing is then performed (S07). In this external information creation process, information on the information to be output to a notification device (symbol display device, lamp, speaker, external computer, etc.) in order to notify the player, hall clerk, etc. of a ball hit notification, etc. during a big hit count or probability change. Create. The created information is also output from the main control unit 100 by the CTC interrupt process.
Next, in step S08, random number update processing is performed. In this random number update process, initial value random numbers are created / updated and lost symbols are created / updated. When the process of step S08 ends, the process returns to step S05 and the processes from step S05 to step S08 are repeated.
[0029]
Next, the CTC interrupt process will be described with reference to FIG. In the following description, only processes (winning detection process, prize ball command transmission process, prize ball detection process) performed when controlling the payout device 30 will be described.
In the winning detection process shown in FIG. 8A, the main control unit 100 first determines whether or not a winning is detected (S11). Specifically, it is determined whether or not the signal output from the general winning opening sensor 54 or the specific winning opening sensor 56 is received in the input processing circuit 108 of the main control unit 100. If the detection signals output from these sensors 54 and 56 have not been received (NO in step S11), the winning detection process is terminated, and if the detection signal has been received (YES in step S11). If), the winning number is stored in the winning number counter (S32), and the winning detection process is terminated.
[0030]
In the winning ball command transmission process shown in FIG. 8B, the main control unit 100 first determines whether or not the winning number counter has a stored value (S13). When there is no stored value in the winning number counter [when step S13 is NO], the winning ball command transmission process is terminated, and when there is a stored value in the winning number counter (when step S13 is YES), the winning ball control is performed. A prize ball command transmission process is performed to pay out a prize ball to the unit 200 (S14). The command transmission process in step S14 will be described in detail with reference to FIG.
As shown in FIG. 9, in the command transmission process, the main control unit 100 first sets a command to be transmitted to the output port of the CPU 102 (S21). Next, the main control unit 100 turns on a write signal for causing the prize ball control unit 200 to start command reception processing, and at the same time, the prize ball control unit 200 can read a command set in the output port of the main control unit 100. The select signal is turned on (S22). Then, after waiting in that state for a while (S23), the write signal is turned off (S24), and the read pointer is updated (S25). This read pointer is information for managing which command is the currently transmitted command when there are a plurality of commands to be transmitted. After these processes, the select signal is turned OFF (S26), and the command transmission process is terminated.
As described above, in the command transmission process, the command is first set to the output port, then the command transmission is started (the write signal / select signal is turned ON), and the command transmission is ended (the select signal is transmitted). OFF). In this embodiment, a certain amount of time is required from the start of command transmission to the end of transmission (the time during which the select signal is ON) because the write signal for starting the command reception process is a prize ball control unit. This is for inputting to 200 INT terminals. That is, a certain amount of time is required until the command receiving process is started in the prize ball control unit 200.
When the above-described prize ball command transmission process is completed, the number of transmitted balls is then accumulated in the transmission ball accumulation counter (S15), and further subtracted from the winning number counter (S16), and the prize ball command transmission process is terminated. . Accordingly, when the winning number counter has a stored value, a winning ball command is transmitted to the winning ball control unit 200 until the stored value becomes 0, and at the same time, the number of payouts commanded to the winning ball control unit 200 by the transmission. Is added to the transmission ball integrating counter.
[0031]
In the prize ball detection process shown in FIG. 8C, the main control unit 100 first determines whether or not a pachinko ball is detected by the prize ball detection sensor 27 provided in the payout device 30 (S17). Specifically, the determination is made based on whether or not the detection signal output from the winning ball detection sensor 27 has been received.
If no winning ball is detected by the winning ball detection sensor 27 (NO in step S17), the winning ball detection process is terminated, and if the winning ball is detected by the winning ball detection sensor 27 (in step S17). In the case of YES], the number of pachinko balls detected from the transmitted ball number integrating counter is subtracted (S18). Then, it is determined whether or not the value of the transmitted ball integration counter is 0 or more (S19). When the value of the transmitted ball number counter is 0 or more [when step S19 is YES], the prize ball detection process is terminated. On the other hand, when the value of the transmitted ball number counter is not equal to or greater than 0 (when step S19 is NO), it is an abnormal situation in which extra pachinko balls are being paid out from the payout device 30, and therefore the abnormal lamp is turned on. To inform the hall clerk etc. of the abnormality (S20).
[0032]
As is apparent from the above description, the main control unit 100 detects a winning by CTC interrupt processing, and creates a winning ball command to be transmitted to the winning ball control unit 200 in the normal main processing based on the winning detection. Is done. The created prize ball command is transmitted to the prize ball control unit 200 in the CTC interruption process.
In addition, the main control unit 100 accumulates the number of transmitted balls in the transmitted ball number counter every time a prize ball command is transmitted to the prize ball control unit 200, and is output from the prize ball detection sensor 27 provided in the payout device 30. Every time a detection signal is received, the number of payout balls is subtracted from the transmitted ball count counter. Then, based on the value of the transmission integration counter, an abnormal case (for example, a failure of the payout device 30) is determined in which a payout ball number that is larger than the transmitted ball number is paid out.
[0033]
(2) Processing at power-on (prize ball control unit)
Next, the operation of the prize ball control unit 200 will be described with reference to FIGS. In the prize ball control unit 200, a command reception process for receiving a command transmitted from the main control unit 100 by an interrupt process using a write signal (INT terminal input) output from the main control unit 100 is performed. Signal input / output processing, such as processing for outputting a drive signal for driving the drive motor 25, processing for receiving a detection signal output from a sensor such as the rotation detection sensor 29, the prize ball detection sensor 27, etc. This is performed by interruption processing at predetermined intervals (4 ms in the present embodiment) by a CTC counter provided in the prize ball control unit 200. Therefore, first, normal processing in the prize ball control unit 200 will be described first with reference to FIGS. 10 and 11, and next, command reception processing and interrupt processing by a CTC counter (hereinafter simply referred to as CTC interrupt processing) will be described with reference to FIG. This will be described with reference to FIG.
[0034]
As shown in FIG. 10, in the prize ball control unit 200 as well as the main control unit 100, initialization processing is first performed (S27), and then it is determined whether the RAM erase switch is turned on (output) (S28). ). If the RAM erase switch is turned on (YES in step S28), the process proceeds to step S30. If the RAM erase switch is not turned on (NO in step S28), there is next an abnormality in the RAM 206. Is determined (S29).
If there is an abnormality in the RAM 206 (YES in step S29), the process proceeds to step S30. If there is no abnormality in the RAM 206 (NO in step S29), the process is resumed based on the stored information. The process proceeds to the power recovery process (S36). The power recovery process in the winning ball control unit 200 will also be described in detail later.
In step S30, the prize ball control unit 200 clears the information stored in the RAM 206, and shifts to a main process described below.
[0035]
When shifting to the main process, first, an analysis process of the command transmitted from the main control unit 100 is performed (S31). That is, the command transmitted from the main control unit 100 is any type of command (for example, a winning ball permission command for allowing the starting of a winning ball, a winning ball disabling command for prohibiting a winning ball due to a cause such as a broken ball, a predetermined ball Whether the command is a prize ball command or the like commanding the number to be paid out. This command analysis processing will be described with reference to FIG.
As shown in FIG. 11, in the command analysis process, it is first determined whether or not the select signal is ON (S36). That is, it is determined whether or not the main control unit 100 is performing command transmission processing.
If the select signal is ON (YES in step S36), the command analysis process is terminated. If the select signal is not ON (NO in step S36), then the NMI command buffer It is determined whether or not the value of 0 is 0 (S37). In other words, in the present embodiment, a command buffer that stores commands received during energization and an NMI command buffer that stores commands received at the input port of CPU 202 when a power failure signal is received are provided in RAM 206. . Therefore, the same command is stored in these two command buffers depending on the timing at which a power failure occurs (for example, when commands are taken into the command buffer before the power failure). Therefore, in this embodiment, in order to prevent the same command from being read twice, the command in the NMI command buffer is given priority (the data in the command buffer is invalidated). Therefore, after confirming the state of the select signal, it is first determined in step S37 whether the NMI command buffer is 0 or not.
[0036]
If the value of the NMI command buffer is 0 [YES in step S37], it is next determined whether or not the values of the command read pointer and the command write pointer match (S38). That is, in the present embodiment, when the command transmitted from the main control unit 100 in the command reception process described later is stored in the command buffer, the value of the command write pointer is updated by 1, and the command analysis process When the written command is analyzed, the value of the command read pointer is updated by one. Therefore, if the command stored in the command buffer has already been analyzed, the values of the command write pointer and the command read pointer match, and conversely if the command stored in the command buffer has not been analyzed, The pointer values do not match. Therefore, in step S38, it is first determined whether or not the value of the command read pointer matches the value of the command write pointer so that the same command is not analyzed twice.
If the value of the command read pointer matches the value of the command write pointer (YES in step S38), command analysis has already been completed, so the command analysis processing is terminated as it is. Conversely, if the value of the command read pointer does not match the value of the command write pointer (NO in step S38), the value of the command buffer is analyzed (S39), and the value of the command read pointer is updated by one. The value of the command buffer is cleared to 0 (S40), and the command analysis process is terminated.
[0037]
On the other hand, if the value of the NMI command buffer is not 0 (NO in step S37), the command of the NMI command buffer is analyzed (S41). Then, the value of the command write pointer is matched with the value of the command read pointer, that is, the values of both pointers (S42). As a result, in the next command analysis process, the determination in step S38 is YES, so that it is prevented from proceeding to the process in step S39 (process for analyzing the value of the command buffer). Therefore, for example, when the command received before the power failure is stored in the command buffer and the same command is stored again in the NMI command buffer after the power failure occurs, the same command (command stored in the command buffer) It will not be analyzed. When step S42 ends, the value of the NMI command buffer is finally cleared to 0 and the command analysis process ends.
[0038]
As a result of the command analysis process, if the received command is a prize ball command, the number of pachinko balls to be paid out to the player by the command is added to the prize ball accumulation counter (S32), and similarly, The number of pachinko balls to be paid out to the player is added to the prize ball adjustment counter (S33). Next, drive data for driving the motor 25 is created based on the number of pachinko balls to be paid out stored in the prize ball adjusting counter described above (S34). Next, when there is some abnormality (for example, when a prize ball is paid out too much from the payout device 30), an error process is performed to notify the hall clerk about the abnormality (S35). When this error process is performed, the winning ball control unit 200 returns to step S31 and repeats the process from S31.
[0039]
Next, command reception processing in the prize ball control unit 200 will be described with reference to FIG. 12, and input / output processing in the prize ball control unit 200 will be described with reference to FIG.
In the command reception process shown in FIG. 12, first, the CPU 202 of the prize ball control unit 200 saves the contents of a predetermined register in another place in order to secure an area necessary for the command reception process (S44). Next, an input port command is input to the area secured in step S44 (S45), and it is determined whether the select signal is ON (S46).
If the select signal is not ON [NO in step S46], the main control unit 100 is not in the transmission state, and the process proceeds to step S49. Conversely, if the select signal is ON [YES in step S46], the command input in step S45 is stored in the command buffer (S47). Next, the value of the write pointer is updated (S48), and the process proceeds to step S49. In step S49, the register saved in the process of step S44 is restored to the original (S49). This completes the command reception process.
[0040]
In the input / output process shown in FIG. 13, first, the drive data created by the drive data creation process in step S34 shown in FIG. 10 is output to the motor 25 of the payout device 30 (S50). Specifically, a drive signal is output to the motor 25 via the output processing circuit 212.
When the drive signal is output, it is next determined whether or not the pachinko ball has been paid out from the payout device 30 (S51). Specifically, it is determined whether or not a detection signal output by detecting a pachinko ball with the prize ball detection sensor 27 is received by the prize ball control unit 200. If a detection signal has not been received (NO in step S51), the process proceeds to step S53. If a detection signal has been received (YES in step S51), the pachinko ball detected by the payout integration counter is detected. The number is added (S52).
Next, the winning ball control unit 200 determines whether or not the rotating ball receiver 34 of the payout device 30 has rotated a predetermined angle (S53). Specifically, it is determined by whether or not the prize ball control unit 200 has received a detection signal output from the rotation detection sensor 29 provided in the payout device 30.
When the detection signal output from the rotation detection sensor 29 is received by the prize ball control unit 200 (in the case of YES at step S53), 1 is subtracted from the prize ball addition / subtraction counter (S54), and then the prize ball addition / subtraction counter is 0. It is determined whether or not this is the case (S55). If the prize ball addition / subtraction counter is larger than 0 (YES in step S55), the prize ball to be paid out has not been paid out, so the process returns to step S50 and the processing from step S50 is repeated. Conversely, if the prize ball addition / decrement counter is 0 or less (NO in step S55), the process proceeds to step S56.
On the other hand, when the winning ball control unit 200 has not received the detection signal output from the rotation detection sensor 29 (NO in step S53), a predetermined time has elapsed since the drive signal in step S50 was output. Is determined (S60). If the predetermined time has not elapsed [NO in step S60], the process returns to step S50, and the processing up to step S53 is repeated until the predetermined time elapses. On the contrary, if the predetermined time has elapsed (YES in step S60), a ball biting process is performed (S61). That is, if the detection signal output from the rotation detection sensor 29 cannot be received even after a predetermined time has elapsed since the drive signal was output in step S50, the pachinko ball is bitten for some reason and the rotating ball receiver 34 rotates. It is thought that it is in an incapable state For this reason, the ball smear state is eliminated by performing a process of rotating the motor 25 alternately (a ball smear process). When the ball smearing process is completed, the process returns to step S50 again to repeat the above-described process.
[0041]
In the process of step S56, it is determined whether or not the value of the winning ball addition / subtraction counter is 0 (S56). When the value of the winning ball addition / subtraction counter is not 0, that is, when the value of the winning ball addition / subtraction counter is smaller than 0 (NO in step S56), a state where an excessive amount of winning balls is paid out from the payout device 30 (abnormal state). Therefore, the input / output process is terminated. This abnormal state is notified to a store clerk or the like by the error process of step S35 shown in FIG.
If the value of the prize ball addition / subtraction counter is 0 [YES in step S56], the motor 25 is stopped (S57), and it is determined whether or not the value of the prize ball accumulation counter matches the value of the payout accumulation counter. (S58). When the value of the winning ball integration counter matches the value of the payout integration counter (in the case of YES in step S58), the input / output processing is terminated, and when the value of the winning ball integration counter and the value of the payout integration counter do not match [ In the case of NO in step S58], since the prize ball to be paid out is not actually paid out, the process of paying out the prize ball until the value of the prize ball integration counter matches the value of the payout integration counter (retry) Process) (S59).
[0042]
As is apparent from the above description, the prize ball control unit 200 performs the command reception process shown in FIG. 12 by the interrupt process using the write signal output from the main control unit 100, and the received command is shown in FIG. Analysis is performed in the normal processing shown in FIG. 11, and drive data is created. The drive data is output to the motor 25 by an input / output process based on the CTC interrupt process shown in FIG. 13, and a predetermined number of pachinko balls are paid out from the payout device 30.
The winning ball control unit 200 that receives this command updates the write pointer when the command is stored (written) in the command buffer, and updates the read pointer when the written command is analyzed. Then, the command analysis processing is performed so that the write pointer matches the read pointer, thereby preventing the data stored in the command buffer from being analyzed twice.
Also, the prize ball control unit 200 adds the number of payout balls specified by the command transmitted from the main control unit 100 to the prize ball addition / subtraction counter. Each time the detection signal output from the rotation detection sensor 29 is received, the value of the prize ball addition / subtraction counter is subtracted, and the motor 25 of the payout device 30 is driven until the value of the prize ball addition / subtraction counter becomes zero. As a result, the motor 25 of the payout device 30 is rotated so that the number of pachinko balls paid out is the number of prize balls specified by the command transmitted from the main control unit 100.
Further, the prize ball control unit 200 adds the number of payout balls specified by the command transmitted from the main control unit 100 to the prize ball accumulation counter, while the pachinko ball paid out from the payout device 30 is used as a prize ball detection sensor. 27, and the detection signal is integrated into the payout integration counter. Then, control is performed so that the pachinko balls are paid out from the payout device 30 until the values of the prize ball integration counter and the payout integration counter match (retry processing in step S59 in FIG. 13). Therefore, it can be prevented that the pachinko ball is not paid out because the pachinko ball is not paid out even though the rotating ball receiver 34 is rotated for some reason.
[0043]
(3) Processing at power-off (main control unit, prize ball control unit)
Next, the operation of the pachinko machine 10 when the power supply to the pachinko machine 10 is cut off due to a power failure or unexpected power OFF will be described focusing on the processing of the main control unit 100 and the prize ball control unit 200.
When power supply from the external power source to the pachinko machine 10 is interrupted, a power failure signal is output from the power failure detection unit 130 provided in the power source unit 120 to the main control unit 100 and the prize ball control unit 200. The power failure signal output from the power failure detection unit 130 is input to the NMI terminal (non-massable interrupt terminal) of the main control unit 100 and the prize ball control unit 200, and the power failure process described below is performed in these control units. . Note that the power supplied to the main control unit 100 and the prize ball control unit 200 for a predetermined time after the power failure signal is output (the time required for performing power failure processing) is the power source unit 120 as described above. The capacitor C1 is covered by electric power stored during energization.
[0044]
First, the process performed in the main control part 100 which received the power failure signal is demonstrated based on FIG.
As shown in FIG. 14, the main control unit 100 stores the register and stack pointer of the RAM 106 in a predetermined area of the RAM 106 (S60). Next, for processing when the power failure is restored, the command set in the output port of the CPU 102 when the power failure signal is received is stored in a predetermined address of the RAM 106 (S61).
Then, a count value that defines the time during which the detection signal output from the prize ball detection sensor 27 must be monitored after the power failure signal is output is set in a predetermined register of the RAM 106 (S62), and the countdown is performed by the set count value. Start. The time defined by the count value set in step S62 is from the mechanical characteristics of the payout device 30, that is, from the time when the driving signal is output to the motor 25 until the winning ball detection sensor 27 detects the pachinko ball. It is determined in consideration of the time required for.
When the countdown is started, it is next determined whether or not the winning ball control unit 200 has received the detection signal output from the winning ball sensor 27 provided in the inner winning ball guiding path 32a (S63). When the detection signal is received (in the case of YES in step S63), the value of the transmitted ball count counter is decremented by 1 (S64), and when the detection signal is not received (in the case of NO in step S63). Advances to step S65.
In step S65, it is determined whether or not the winning ball control unit 200 has received the detection signal output from the winning ball sensor 27 provided on the outer winning ball guiding path 32a (S65). When the detection signal is received (in the case of YES in step S65), the value of the transmitted ball count counter is decremented by 1 (S66), and when the detection signal is not received (in the case of NO in step S65). Advances to step S67.
In step S67, it is determined whether or not a predetermined time has elapsed since the power failure signal was received (S67). Specifically, the determination is made based on whether or not the count value that started counting in step S62 has reached a predetermined value (in this embodiment, the count value is 0). If the predetermined time has not elapsed [NO in step S67], the process returns to step S63 and the processes from step S63 are repeated.
On the other hand, if the predetermined time has elapsed (YES in step S67), the process proceeds to the next process and a checksum value is calculated (S68). That is, the checksum value is obtained by adding the values of the registers in the RAM 106. When the checksum value is calculated, the checksum value is stored at a predetermined address in the RAM 106 (S69), and access to the RAM 106 is prohibited (S70). Thereby, the processing of the main control unit 100 at the time of power-off is completed.
Note that, when the energization is cut off, power is supplied to the RAM 106 from an information storage power supply (configured by a capacitor C5) provided separately in the power supply unit 120, and the information stored in the RAM 106 is held for a predetermined time.
[0045]
Next, processing in the prize ball control unit 200 when a power failure signal is received will be described with reference to FIG. As is apparent from FIG. 15, the process in the prize ball control unit 200 is basically the same as the process in the main control unit 100 shown in FIG. That is, the detection signal output from the winning ball detection sensor 27 is monitored by operating a timer for a preset time, and when the monitoring time has elapsed, a checksum is calculated and stored, and access to the RAM 206 is prohibited. The point is the same.
However, the main control unit 100 stores the command set in the output port of the CPU 102 and stores it until the energization is restored, whereas the prize ball control unit 200 receives the input of the CPU 202 when the power failure signal is received. If there is a command received at the port, the command is stored in the NMI command buffer in the RAM 206 and stored until the power is restored.
That is, as shown in FIG. 15, in the process when the power of the prize ball control unit 200 is turned off, after the monitoring time is set in step S72, it is first determined whether or not the select signal is ON (S73). ). If the select signal is not ON (NO in step S73), the process proceeds to step S75 because the main control unit 100 is not in a state of transmitting a command. Conversely, if the select signal is ON (YES in step S73), the command received at the input port is stored (written) in the NMI command buffer (S74). After that, predetermined processing such as prize ball detection is performed in the same procedure as the main control unit 100, and the process at the time of power interruption in the prize ball control unit 200 is ended.
[0046]
As is clear from the above, the main control unit 100 and the prize ball control part 200 operate the timer for a preset time when receiving the power failure signal, and the prize ball detection sensor while the timer is operating. The detection signal output from 27 is monitored. Therefore, even when a driving signal is output from the prize ball control unit 200 to the motor 25 immediately before the power failure signal is output from the power failure detection unit 130, the main control unit 100 and the prize ball control unit 200 can reliably count.
In addition, the main control unit 100 stores and holds the command set in the output port of the CPU 102 at the time of power failure signal reception until energization is restored, and the prize ball control unit 200 performs main control at the time of power failure signal reception. The unit 100 determines whether or not transmission processing is being performed. If transmission processing is being performed, the command received at the input port of the CPU 202 is stored and held in the NMI command buffer in the RAM 206. These commands that are held during a power failure are used for the process at the time of energization recovery described below.
[0047]
(4) Processing when power is restored (main control unit, prize ball control unit)
Next, the processing of the main control unit 100 and the prize ball control unit 200 when the processing is restarted using the information stored in the RAM 106, 206, etc. by the processing at the time of power-off described above will be described with reference to FIG. To do.
When the game is resumed from the power-off state using the information stored in the pachinko machine 10 according to the present embodiment, the power to the pachinko machine 10 is turned on without operating the RAM erase switch.
[0048]
First, processing in the main control unit 100 will be described. As shown in FIG. 7, when the power supply is started, the main control unit 100 first performs an initialization process (S01), and then determines whether or not the RAM erase switch is turned on (S02). It is determined whether or not it has occurred (S03). Thereafter, power recovery processing for starting the game is started from the state when the power is shut off (S10). The power recovery process in the main control unit 100 will be described with reference to FIG.
As shown in FIG. 16A, the main control unit 100 first restores the stack pointer (S84). Specifically, the stack pointer stored in a predetermined area of the RAM 106 is restored to the original area by the process at the time of power-off (the process of step S60 shown in FIG. 14). Next, the command set to the output port of the CPU 102 when the power failure signal is received is reset to the output port (S85). Specifically, the command stored by the process at power-off (the process of step S61 shown in FIG. 14) is reset to the output port. Then, the contents of all the registers stored by the process at the time of power shutdown (the process of step S20 shown in FIG. 14) are restored (S13). Therefore, since the state of the stack pointer, the register, and the output port is restored to the state at the time of power-off, the main control unit 100 resumes the process from the time of power-off (when a power failure signal is received). For this reason, for example, if a power failure occurs after the command is set and before the write signal / select signal is turned ON, the write signal / select signal is turned ON when the power is restored, and the command set in step S85 receives the prize ball control. It will be retransmitted to the unit 200.
[0049]
As in the main control unit 100, the process in the prize ball control unit 200 is also performed as shown in FIG. 10 (S27), and then whether or not the RAM erase switch is turned on (S28). It is determined whether there is an abnormality (S29). Thereafter, the winning ball control unit 200 starts power recovery processing (S36).
In the power recovery process, as shown in FIG. 16B, the stack pointer stored in the process at the time of power shutdown (the process of step S71 in FIG. 15) is restored (S90), and then the process at the time of power shutdown (FIG. 15). All the registers stored in step S71) are restored (S91). Accordingly, since the contents of the stack pointer and the register are restored to the state at the time of power-off, the prize ball control unit 200 resumes the processing from the time of power-off.
Here, if the main control unit 100 is transmitting a command (select signal ON state) when a power failure occurs (when a power failure signal is received), the prize ball control unit 200 receives the command received at the input port in the process when the power is shut off. Are stored in the NMI command buffer. Therefore, in the first command analysis process (see FIG. 11) at the time of recovery of energization, the command held in the NMI command buffer is processed. Therefore, even if a power failure or the like occurs during command transmission, the command being transmitted is reliably processed by the prize ball control unit 200. If the command is stored (written) in the command buffer of the winning ball control unit 200 before the occurrence of a power failure, the command stored in the NMI command buffer is prioritized to prevent the command from being read twice.
[0050]
The command transmission / reception processing in the main control unit 100 and the prize ball control unit 200 described above will be described more specifically with reference to FIG. FIG. 17A shows the command transmission / reception state in the normal state, and FIG. 17B shows the operation of the control units 100 and 200 when power is restored when a power failure occurs at the timing of each arrow in FIG. It is a table | surface which shows.
First, command transmission processing in a normal state will be described with reference to FIG. In order to transmit a command from the main control unit 100 to the prize ball control unit 200, first, a command is set to the output port of the CPU 102 of the main control unit 100 as shown in FIG. Next, the write signal / select signal is turned ON from the main control unit 100, and the main control unit 100 enters a command transmission state. When the write signal is turned on, the winning ball control unit 200 starts command reception processing. First, the command is written to the command buffer, and the command is analyzed in processing after the select signal is turned off. Is called. The above procedure is a process for transmitting a command from the main control unit 100 to the prize ball control unit 200 in the normal state.
Next, the processing of each of the control units 100 and 200 when a power failure occurs at the timing indicated by the arrow t1 (after setting a command for the output port and before selecting the select signal) will be described. As shown in FIG. 17B, when the energization is restored, the main control unit 100 first sets a command to the output port and restarts the process from when the power failure signal is received. Accordingly, since the write signal / select signal is not turned ON until the power failure signal is received, the write signal / SELECT signal is turned ON in the process after the power supply is restored. For this reason, the command set to the output port of the main control unit 100 is transmitted to the prize ball control unit 200. The award ball control unit 200 receives a command transmitted from the main control unit 100 for the first time after power-on recovery without receiving a write signal when receiving a power failure signal and not performing a command reception process.
Next, the processing of each control unit 100, 200 when a power failure occurs at the timing of the arrow t2 (after the write signal / select signal is turned on and before the winning ball control unit 200 writes a command to the command buffer) will be described. As shown in FIG. 17B, when the energization is restored, the main control unit 100 first sets a command to the output port and starts processing from the time of receiving the power failure signal. However, in the main control unit 100, the process of turning on the write signal / select signal has already been completed when the power failure signal is received, and therefore the write signal / select signal is not turned on in the process after the power supply is restored. For this reason, the command set to the output port is not transmitted to the prize ball control unit 200. On the other hand, the prize ball control unit 200 does not write a command to the command buffer in the process before receiving the power failure signal, but writes a command to the NMI command buffer in the process during the power failure process (see FIG. 15). Therefore, even if a command is not transmitted from the main control unit 100 after power is restored, the command stored in the NMI command buffer is read and a predetermined process is performed.
Next, the processing of each control unit 100, 200 when a power failure occurs at the timing of the arrow t3 (after the prize ball control unit 200 writes a command to the buffer and before the select signal is OFF) will be described. As shown in FIG. 17B, as in the case described above, the main control unit 100 sets a command to the output port when energization is restored, but the process of turning the write signal / select signal ON is performed before a power failure occurs. Thus, the command set in the output port by the process after the energization recovery is not transmitted to the winning ball control unit 200. On the other hand, the prize ball control unit 200 receives a command in the command buffer by the command reception process before the power failure process, and further receives the same command in the NMI command buffer by the process after the power failure signal is received. However, in the first command analysis process after the energization recovery, the command analysis is performed (read) based on the command stored in the NMI command buffer, and the command stored in the command buffer is not analyzed. Therefore, the same command is not read twice.
When a power failure occurs after the select signal is turned OFF, the main control unit 100 has finished transmitting commands, so that no commands are transmitted when power is restored. Also, in the prize ball control unit 200, the command writing process is completed in the command buffer before the start of the power failure, and the select signal is OFF when the power failure signal is received, so the command is taken into the NMI command buffer. There is nothing. Therefore, after energization recovery, the process is started based on the command stored in the command buffer as in the normal process.
[0051]
As is clear from the above, in the pachinko machine 10 according to the present embodiment, the command set in the output port of the main control unit 100 at the time of power failure signal reception is stored and retained, so that the command is restored after energization recovery. Can be transmitted to the prize ball control unit 200.
Further, in the pachinko machine 10 according to the present embodiment, a command buffer that stores commands received in the normal process in the prize ball control unit 200, and an NMI command buffer that stores commands received in the process after receiving a power failure signal Is provided. Therefore, in the present embodiment, commands can be stored and held in processing after receiving a power failure signal. In other words, if a command is stored in the same command buffer when a power failure signal is received, if a power failure occurs at the timing indicated by the arrow t3 in FIG. Since more commands are written before the command analysis is performed, the write pointer value and the read pointer value do not match even if the command analysis is performed. In contrast, in the present embodiment, by providing two command buffers, ie, a command buffer and an NMI command buffer, it is possible to separately store commands received during power failure processing without causing the above-described problems. As a result, even when a power failure occurs at the timings indicated by the arrows t2 and t3 in FIG. 17A described above, the winning ball control unit 200 can receive the command transmitted from the main control unit 100. .
In the pachinko machine 10 according to the present embodiment, the command analysis process in the main control unit 100 is performed after the select signal is turned OFF (after the command transmission process of the main control unit 100 is finished). For this reason, when a command is taken in when the power is turned off (when the select signal is ON), the command in the command buffer is not analyzed (read), so that the same command is reliably prevented from being read twice. Can do. That is, there is a case (rare case) where the command analysis is completed before the power failure signal is received and the same command as the command analyzed in the processing at the time of power failure signal reception is taken into the NMI command buffer. There is nothing.
Furthermore, in the pachinko machine 10 according to the present embodiment, since the command transmitted from the main control unit 100 to the prize ball control unit 200 can be reliably received by the prize ball control unit 200, an accurate number is given to the player. Pachinko balls are paid out and unpaid pachinko balls are prevented from being generated for the player.
[0052]
The preferred embodiment of the present invention has been described above, but the present invention is not limited to the above-described embodiment, and the present invention is in a form in which various modifications and improvements are made based on the knowledge of those skilled in the art. Can be implemented.
[0053]
For example, in the above-described embodiment, the present invention is applied when a command is transmitted from the main control unit 100 to the prize ball control unit 200. However, as a matter of course, the command transmission / reception technique of the present invention includes: From the main control unit to other control units (such as a symbol control unit that controls a symbol display that displays special symbols in a variable manner, a sound control unit that controls a speaker that generates sound effects, a lamp control unit that emits effect light, etc.) It can also be applied when sending commands.
[0054]
In the above-described embodiment, the write signal and the select signal are simultaneously turned on, the write signal is turned off early, and the command is transmitted from the main control unit 100 to the prize ball control unit 200. The timing of ON / OFF of the write signal and the select signal can be various timings without being limited to such a form.
[0055]
Further, the configuration of the transmission device and / or the reception device as described in the above embodiment is shown in FIG. 18A in which the command transmission / reception process is based on the interrupt process [that is, the command transmission / reception process is suddenly started. Is effective in such a case]. However, in the case where command transmission is not performed a plurality of times with respect to the interval of command reception processing and command analysis processing (as shown in FIG. 18B), the command storage area (during power failure processing) A configuration may be adopted in which the normal command storage area (command buffer in the embodiment) is overwritten without having a separate NMI command buffer in the embodiment.
That is, in a gaming machine having a transmission device and a reception device that receives a command transmitted from the transmission device, the reception device receives a command received by the reception unit during energization and after the energization is cut off. Received command storage means for storing the command stored in the received command storage means until the energization is restored, and the command stored in the received command storage unit when the energization is restored. Command processing means for processing is provided, and a command transmission interval from the transmission device is set longer than a command processing interval by the reception device.
In the gaming machine configured as described above, the receiving device ends command processing (command analysis or the like) before the next command is transmitted from the transmitting device. For this reason, there is no problem even if the received command is overwritten on the received command storage unit, and the received command storage unit can be used both during energization and after energization is cut off.
Therefore, when the power supply from the external power supply is cut off, it is only necessary to overwrite the command that has already been received. Even when the power supply is cut off after the transmission processing from the transmission device is started, the transmission is performed. The command transmitted from the device can be processed by the receiving device.
[0056]
The embodiment described above is an example in which the present invention is applied to a pachinko machine. However, the present invention is not limited to this, for example, an arrangement hall machine (a predetermined number of steel balls are injected onto a game board to It can also be applied to various gaming machines such as slot machines, sparrow ball machines, and pachislot machines.
[Brief description of the drawings]
FIG. 1 is a diagram for explaining the operation of the present invention.
FIG. 2 is a diagram for explaining the operation of the present invention.
FIG. 3 is a diagram for explaining the operation of the present invention.
FIG. 4 is a rear view showing a back set plate and its accessories provided on the back side of the pachinko machine according to the present embodiment.
FIG. 5 is a block diagram showing a configuration of a control unit of the pachinko machine shown in FIG.
6 is a diagram for explaining the configuration of a power supply unit 120. FIG.
FIG. 7 is a flowchart for explaining processing of the main control unit at normal time.
FIG. 8 is a flowchart for explaining processing of the main control unit at normal time;
FIG. 9 is a flowchart for explaining processing of the main control unit at normal time;
FIG. 10 is a flowchart for explaining processing of a prize ball control unit when energized
FIG. 11 is a flowchart for explaining processing of a prize ball control unit during energization
FIG. 12 is a flowchart for explaining processing of a prize ball control unit when energized
FIG. 13 is a flowchart for explaining processing of a prize ball control unit during energization.
FIG. 14 is a flowchart for explaining processing of the main control unit at power-off.
FIG. 15 is a flowchart for explaining processing of a prize ball control unit at power-off.
FIG. 16 is a flowchart for explaining processing of the main control unit and the prize ball control unit when power is restored.
FIG. 17 is a diagram for explaining a specific operation of command transmission in the main control unit and the prize ball control unit;
FIG. 18 is a diagram for explaining another embodiment of the present invention.
[Explanation of symbols]
10. Pachinko machine
27 .. Prize ball detection sensor
29..Rotation detection sensor
30 .. Dispensing device
34 .. Rotating ball receiver
100 .. Main control part
200 ・ ・ Prize ball control unit

Claims (1)

主制御装置と、その主制御装置から送信されたコマンドを受信するサブ制御装置とを有する遊技機において、
外部電源から供給される電力を主制御装置とサブ制御装置に供給する電源供給部と、
外部電源との通電が遮断されたことを検出して、主制御装置とサブ制御装置に停電信号を出力する停電検出部と、
外部電源との通電時に外部電源から供給される電力を備蓄し、その備蓄した電力を通電遮断時に主制御装置とサブ制御装置に供給する第1バックアップ電源と、
外部電源との通電時に外部電源から供給される電力を備蓄し、その備蓄した電力を通電遮断時に主制御装置とサブ制御装置に供給する第2バックアップ電源と、をさらに有しており、
主制御装置は、主CPUと、制御プログラムを記憶する主ROMと、制御情報を記憶する主RAMとを有しており、
主CPUは、出力ポートにコマンドを設定し、次いで、サブ制御装置に起動信号を出力することで、出力ポートに設定したコマンドをサブ制御装置に送信するコマンド送信処理を実行するようにプログラムされており、
主CPUは、停電信号を受信すると、第1バックアップ電源から供給される電力によって停電処理を実行するようにプログラムされており、その停電処理では、停電信号受信時に実行されている処理を中断して、その中断した処理を再開するための情報を主RAMに記憶し、次いで、出力ポートに設定されているコマンドを主RAMに記憶する処理を実行し、
主RAMに記憶された情報は第2バックアップ電源から供給される電力によって電源遮断中も保持されるようになっており、
主CPUは、電源投入時に、停電処理によって主RAMに記憶されているコマンドを出力ポートに設定すると共に停電信号受信時に中断された処理を再開する復電処理を実行するようにプログラムされており、
サブ制御装置は、サブCPUと、制御プログラムを記憶するサブROMと、制御情報を記憶するサブRAMとを有しており、
サブCPUは、停電信号を受信していない状態で主制御装置からの起動信号を受信すると、主CPUの出力ポートから出力されたコマンドをサブRAMに設けられた第1コマンドバッファに記憶する通電時コマンド受信処理を実行するようにプログラムされており、
サブCPUは、停電信号を受信すると、第1バックアップ電源から供給される電力によって停電処理を実行するようにプログラムされており、その停電処理では、停電信号受信時に実行されている処理を中断して、その中断した処理を再開するための情報をサブRAMに記憶し、次いで、主CPUから起動信号が出力されているときは、主CPUの出力ポートから送信されているコマンドをサブRAMに設けられた第2コマンドバッファに記憶する処理を実行し、
サブRAMに記憶された情報は第2バックアップ電源から供給される電力によって電源遮断中も保持されるようになっており、
サブCPUは、電源投入時に、停電信号受信時に中断された処理を再開する復電処理を実行するようプログラムされており、
サブCPUは、復電処理完了後に、(1)第1コマンドバッファと第2コマンドバッファの一方にコマンドが記憶されているときは、その記憶されているコマンドに対して解析処理を実行し、(2)第1コマンドバッファと第2コマンドバッファの両者にコマンドが記憶されているときは、いずれか一方のコマンドに対してのみ解析処理を実行することを特徴とする遊技機。
In a gaming machine having a main control device and a sub-control device that receives a command transmitted from the main control device ,
A power supply unit for supplying power supplied from an external power source to the main control device and the sub-control device;
A power failure detection unit that detects that the power supply to the external power supply is interrupted and outputs a power failure signal to the main control device and the sub control device;
A first backup power supply that stores power supplied from the external power supply when energized with the external power supply, and supplies the stored power to the main control device and the sub-control device when the energization is interrupted;
A second backup power supply that stores power supplied from the external power supply when energized with the external power supply, and supplies the stored power to the main control device and the sub-control device when the energization is interrupted;
The main control device has a main CPU, a main ROM that stores a control program, and a main RAM that stores control information.
The main CPU is programmed to execute a command transmission process for transmitting a command set to the output port to the sub control device by setting a command to the output port and then outputting a start signal to the sub control device. And
When the main CPU receives the power failure signal, the main CPU is programmed to execute the power failure processing with the power supplied from the first backup power source. In the power failure processing, the processing executed when the power failure signal is received is interrupted. , Storing information for resuming the interrupted processing in the main RAM, then executing processing for storing the command set in the output port in the main RAM,
The information stored in the main RAM is retained even during power shutdown by the power supplied from the second backup power source.
The main CPU is programmed to execute a power recovery process that sets the command stored in the main RAM by the power failure process to the output port when the power is turned on and resumes the process interrupted when the power failure signal is received,
The sub-control device has a sub-CPU, a sub-ROM that stores a control program, and a sub-RAM that stores control information.
When the sub CPU receives an activation signal from the main control device without receiving a power failure signal, the sub CPU stores the command output from the output port of the main CPU in the first command buffer provided in the sub RAM. It is programmed to execute the command reception process,
When the power failure signal is received, the sub CPU is programmed to execute the power failure process using the power supplied from the first backup power supply. In the power failure process, the process executed when the power failure signal is received is interrupted. The information for resuming the interrupted processing is stored in the sub-RAM, and then when the activation signal is output from the main CPU, the command transmitted from the output port of the main CPU is provided in the sub-RAM. Execute the process stored in the second command buffer,
The information stored in the sub-RAM is retained even during power shutdown by the power supplied from the second backup power source,
The sub CPU is programmed to execute a power recovery process that resumes the process that was interrupted when the power failure signal was received when the power was turned on.
After the power recovery process is completed, the sub CPU executes (1) when a command is stored in one of the first command buffer and the second command buffer, executes an analysis process on the stored command ( 2) A gaming machine characterized in that when a command is stored in both the first command buffer and the second command buffer, an analysis process is executed only for one of the commands.
JP2000173665A 2000-06-09 2000-06-09 Game machine Expired - Fee Related JP4418999B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000173665A JP4418999B2 (en) 2000-06-09 2000-06-09 Game machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000173665A JP4418999B2 (en) 2000-06-09 2000-06-09 Game machine

Publications (2)

Publication Number Publication Date
JP2001347044A JP2001347044A (en) 2001-12-18
JP4418999B2 true JP4418999B2 (en) 2010-02-24

Family

ID=18675857

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000173665A Expired - Fee Related JP4418999B2 (en) 2000-06-09 2000-06-09 Game machine

Country Status (1)

Country Link
JP (1) JP4418999B2 (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008142204A (en) * 2006-12-07 2008-06-26 Olympia:Kk Game machine, and method and program for generating random number in game machine
JP2010264150A (en) * 2009-05-18 2010-11-25 Daito Giken:Kk Game machine
JP2009279451A (en) * 2009-09-01 2009-12-03 Sanyo Product Co Ltd Game machine
JP2009279450A (en) * 2009-09-01 2009-12-03 Sanyo Product Co Ltd Game machine
JP5750782B2 (en) * 2011-03-15 2015-07-22 株式会社大一商会 Pachinko machine
JP2011147818A (en) * 2011-05-09 2011-08-04 Sanyo Product Co Ltd Game machine
JP2011147817A (en) * 2011-05-09 2011-08-04 Sanyo Product Co Ltd Game machine
JP5641020B2 (en) * 2012-07-03 2014-12-17 株式会社三洋物産 Game machine
JP5641019B2 (en) * 2012-07-03 2014-12-17 株式会社三洋物産 Game machine
JP6066891B2 (en) * 2013-11-28 2017-01-25 株式会社平和 Game machine
JP6060918B2 (en) * 2014-02-24 2017-01-18 株式会社三洋物産 Game machine
JP5880596B2 (en) * 2014-02-24 2016-03-09 株式会社三洋物産 Game machine
JP5956642B2 (en) * 2015-04-30 2016-07-27 株式会社大一商会 Pachinko machine
JP2015164600A (en) * 2015-06-22 2015-09-17 株式会社三洋物産 Game machine
JP2015164601A (en) * 2015-06-22 2015-09-17 株式会社三洋物産 Game machine
JP6354882B2 (en) * 2017-03-06 2018-07-11 株式会社三洋物産 Game machine
JP6354881B2 (en) * 2017-03-06 2018-07-11 株式会社三洋物産 Game machine

Also Published As

Publication number Publication date
JP2001347044A (en) 2001-12-18

Similar Documents

Publication Publication Date Title
JP4418999B2 (en) Game machine
JP3654101B2 (en) Game machine
JP2014212914A (en) Game machine
JP4753589B2 (en) Game machine
JP5173162B2 (en) Pachinko machine
JP3994186B2 (en) Pachinko machine
JP2001204898A (en) Game machine
JP2001252402A (en) Game control power system device
JP4152657B2 (en) Bullet ball machine
JP2001340603A (en) Game machine and information preserving method in interruption of electric energization
JP2001079165A (en) Game machine
JP4008165B2 (en) Game machine
JP4419000B2 (en) Game machine
JP2008086789A (en) Game machine
JP4370448B2 (en) Game machine
JP2002292084A (en) Controlling device for game machine and controlling method
JP3201754B1 (en) Gaming machine
JP2001314616A (en) Game machine
JP4375512B2 (en) Game machine
JP4750467B2 (en) Game machine
JP4462590B2 (en) Pachinko machine
JP4287577B2 (en) Game machine
JP4590576B2 (en) Game machine
JP4085145B2 (en) Game machine
JP4748543B2 (en) Game machine

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060530

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090225

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090317

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090518

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20091117

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121211

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4418999

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121211

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20151211

Year of fee payment: 6

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