Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6078232B2 - Game machine - Google Patents
[go: Go Back, main page]

JP6078232B2 - Game machine - Google Patents

Game machine Download PDF

Info

Publication number
JP6078232B2
JP6078232B2 JP2012005715A JP2012005715A JP6078232B2 JP 6078232 B2 JP6078232 B2 JP 6078232B2 JP 2012005715 A JP2012005715 A JP 2012005715A JP 2012005715 A JP2012005715 A JP 2012005715A JP 6078232 B2 JP6078232 B2 JP 6078232B2
Authority
JP
Japan
Prior art keywords
board
messages
message
command
unit
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
JP2012005715A
Other languages
Japanese (ja)
Other versions
JP2013144033A (en
Inventor
辰則 春好
辰則 春好
Original Assignee
株式会社オリンピア
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 株式会社オリンピア filed Critical 株式会社オリンピア
Priority to JP2012005715A priority Critical patent/JP6078232B2/en
Publication of JP2013144033A publication Critical patent/JP2013144033A/en
Application granted granted Critical
Publication of JP6078232B2 publication Critical patent/JP6078232B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Slot Machines And Peripheral Devices (AREA)

Description

本発明は、スロットマシンやパチンコ機などの遊技機に関するものである。   The present invention relates to gaming machines such as slot machines and pachinko machines.

従来から外周面に図柄が配列された複数の回胴を備えた遊技機(回胴式遊技機、スロットマシン)が知られている。この種の遊技機は、遊技媒体(メダル)に対して一定の遊技価値を付与し、このような遊技媒体を獲得するための遊技を行うものである。また、この種の遊技機は、遊技者の回転開始操作を契機として、内部抽選を行うとともに複数の回胴の回転を開始させ、遊技者の停止操作契機として、内部抽選の結果に応じた態様で複数の回胴を停止させる制御を行っている。そして、遊技の結果は、複数の回胴が停止した状態における入賞判定ライン上に表示された図柄組み合わせによって判定され、遊技の結果に応じてメダル等の払い出しなどが行われる。   2. Description of the Related Art Conventionally, a gaming machine (a spinning machine, slot machine) having a plurality of spinning cylinders having symbols arranged on an outer peripheral surface is known. This type of gaming machine gives a certain game value to a game medium (medal) and performs a game for acquiring such a game medium. In addition, this type of gaming machine has an internal lottery triggered by the player's rotation start operation and starts rotation of a plurality of spinning cylinders, and a mode according to the result of the internal lottery as a player's stop operation trigger. In order to stop multiple cylinders. The game result is determined by the symbol combination displayed on the winning determination line in a state where the plurality of spinning cylinders are stopped, and medals are paid out according to the game result.

遊技機は、内部抽選処理を含む遊技に係る制御を実行するとともに予め定められたコマンドを生成して送信するメイン基板と、前記コマンドを受けてこれに基づき所定の処理を実行するサブ基板と、サブ基板により制御される液晶表示装置などの演出手段とを備える。メイン基板は、サブ基板へ、メダルの投入やベットボタン操作、スタートレバー操作、ストップボタン操作などの各種遊技操作を行ったときにコマンドを送信するとともに、内部抽選の結果を報知したり各種演出を行うときにもコマンドを送信する。   The gaming machine executes a control related to the game including the internal lottery process and generates and transmits a predetermined command, a sub board that receives the command and executes a predetermined process based on the command, And rendering means such as a liquid crystal display device controlled by the sub-board. The main board sends commands to the sub-board when various game operations such as medal insertion, bet button operation, start lever operation, stop button operation, etc., and informs the result of the internal lottery and provides various effects. Also send commands when doing.

特開2008-212271号公報JP 2008-212271 A 特開2006-141682号公報JP 2006-141682 A 特開2008-188347号公報JP 2008-188347 A 特開2002-325934号公報JP 2002-325934 A

上述のように遊技機内においてさまざまな通信が行われるが、当該通信に異常が生じることがある。例えば、通信路がビジーになったままである、応答が返らないということがある。このような通信異常は遊技機の不具合をもたらすからその発生原因を究明することは重要である。   As described above, various communications are performed in the gaming machine, but abnormalities may occur in the communications. For example, the communication path may remain busy or no response may be returned. It is important to investigate the cause of such abnormal communication because it causes malfunction of the gaming machine.

しかし、部品の恒久的な故障と異なり、通信異常はノイズの影響などによりごく稀に発生することが多く、事後に不具合の症状の報告を受けただけではその原因を正確に知ることは容易でない。原因究明のためには遊技機に通信異常を検知しその情報を収集する機能を予め持たせておく必要がある。   However, unlike permanent component failures, communication abnormalities often occur very rarely due to the effects of noise, etc., and it is not easy to know the exact cause just by receiving a report of the symptoms of the failure after the fact. . In order to investigate the cause, it is necessary for the gaming machine to have a function for detecting a communication abnormality and collecting the information.

本発明は上記課題を解決するためになされたもので、通信異常に関する情報を取得し収集することができ、製品改良に資する情報を開発プロセスヘフィードバックすることのできる遊技機を提供することを目的とする。   The present invention has been made to solve the above problems, and an object of the present invention is to provide a gaming machine that can acquire and collect information on communication abnormality and can feed back information contributing to product improvement to a development process. And

この発明に係る遊技機は、
内部抽選処理を含む遊技に係る制御を実行するメイン基板と、
前記メイン基板からコマンドを受けて所定の演出に関する処理を実行するサブ基板と、
前記演出を行うためのデバイスと、
前記サブ基板からのコマンドに基づき前記デバイスを制御する周辺基板と、
前記サブ基板と前記周辺基板の間の通信異常又は前記メイン基板と前記サブ基板の間の通信異常の少なくとも一方を検知する通信異常検知部と、
前記通信異常検知部により検知された前記通信異常を記憶する異常記憶部と、
前記異常記憶部に接続された出力手段とを備え、
前記異常記憶部は、電源オフのときでも記憶内容を保持するものであり、前記記憶内容は前記出力手段により外部に取り出し可能であるものである。
The gaming machine according to this invention is
A main board that executes control related to games including internal lottery processing;
A sub board that receives a command from the main board and executes a process related to a predetermined effect;
A device for performing the production;
A peripheral board for controlling the device based on a command from the sub-board;
A communication abnormality detection unit that detects at least one of a communication abnormality between the sub board and the peripheral board or a communication abnormality between the main board and the sub board;
An abnormality storage unit for storing the communication abnormality detected by the communication abnormality detection unit;
Output means connected to the abnormality storage unit,
The abnormal storage unit retains the stored contents even when the power is turned off, and the stored contents can be taken out by the output means.

前記通信異常検知部は、前記メイン基板と前記サブ基板の間の通信異常を検知するものであり、
前記メイン基板からのコマンドはひとつ以上の電文を含み、
前記メイン基板は、
前記電文の送信が許されている第1期間を示す信号と前記電文の送信が許されていない第2期間を示す信号とを交互に発生し、
前記第1期間において前記電文を前記サブ基板へ送信し、
前記サブ基板は、
前記メイン基板からの前記電文を受信し、
受信した前記電文を受信バッファに格納し、
予め定められた時間間隔(以下「受信チェック間隔」とする)で前記受信バッファに格納されている前記電文の数をチェックし、
前記受信バッファに前記電文が格納されているときに前記電文を読み出し、
前記受信バッファに前記電文が格納されていないときに前記受信バッファから読み出していた前記電文を前記メイン基板からの前記コマンドとして出力し、
前記受信バッファから読み出した前記電文を計数し、
前記受信バッファに前記電文が格納されていないとき、前記電文の計数値を調べ、当該値が予め定められた規定値と一致しないときに前記メイン基板と前記サブ基板の間の通信異常と判定するものである。
The communication abnormality detection unit detects a communication abnormality between the main board and the sub board,
The command from the main board includes one or more messages.
The main board is
Alternately generating a signal indicating a first period during which transmission of the message is permitted and a signal indicating a second period during which transmission of the message is not permitted;
Transmitting the electronic message to the sub-board in the first period;
The sub-board is
Receiving the message from the main board;
Store the received message in the reception buffer,
Check the number of messages stored in the reception buffer at a predetermined time interval (hereinafter referred to as “reception check interval”),
Read the message when the message is stored in the reception buffer,
Outputting the message read from the reception buffer when the message is not stored in the reception buffer as the command from the main board;
Count the telegrams read from the receive buffer,
When the message is not stored in the reception buffer, the count value of the message is checked, and when the value does not match a predetermined specified value, it is determined that there is a communication error between the main board and the sub board. Is.

前記デバイスは、所定の範囲内で可動する可動要素、前記可動要素を動かす駆動部、及び、前記可動要素の位置情報を取得するセンサを含み、前記演出に用いられる可動体であり、
前記周辺基板は、前記駆動部を駆動制御するとともに前記センサから位置情報の信号を受ける可動体制御部であり、
前記サブ基板は、前記通信異常検知部により前記異常を検知したとき、前記可動体制御部に対する制御を中止するものである。
The device includes a movable element that moves within a predetermined range, a drive unit that moves the movable element, and a sensor that acquires position information of the movable element, and is a movable body used for the production,
The peripheral substrate is a movable body control unit that controls driving of the driving unit and receives a position information signal from the sensor,
The sub board stops control of the movable body control unit when the abnormality is detected by the communication abnormality detection unit.

例えば、前記通信異常検知部は、前記可動体制御部に対して前記駆動部を駆動するコマンドを送った後、予め定められた時間内において前記センサによる前記可動要素の位置情報を取得できなかったとき、前記通信異常を検知したと判定する。   For example, the communication abnormality detection unit could not acquire the position information of the movable element by the sensor within a predetermined time after sending a command to drive the drive unit to the movable body control unit. When it is determined that the communication abnormality is detected.

この発明によれば、通信異常を検知する通信異常検知部と、通信異常に関する情報を記憶する異常記憶部と、前記異常記憶部の内容を取り出すことを可能とする出力手段とを備えるので、遊技機から通信異常に関する記憶内容を取り出すことができ、異常の記録を商品開発へフィードバックし、より良い製品の開発に役立てることができる。   According to the present invention, since the communication abnormality detection unit that detects the communication abnormality, the abnormality storage unit that stores information related to the communication abnormality, and the output unit that enables the contents of the abnormality storage unit to be taken out are provided. It is possible to take out the memory contents related to the communication abnormality from the machine, feed back the abnormality record to the product development, and use it for the development of a better product.

前扉を閉めた状態を示すスロットマシンの正面図である。It is a front view of the slot machine which shows the state which closed the front door. 前扉を180度開いた状態を示すスロットマシンの正面図である。It is a front view of the slot machine which shows the state which opened the front door 180 degree | times. スロットマシンのブロック図である。It is a block diagram of a slot machine. 発明の実施の形態に係るサブ基板とスレーブ基板(周辺基板)の通信系統の説明図である。It is explanatory drawing of the communication system of the sub board | substrate and slave board | substrate (peripheral board | substrate) which concerns on embodiment of invention. 発明の実施の形態に係るサブ基板の内部ブロック図である。It is an internal block diagram of the sub board | substrate which concerns on embodiment of invention. スロットマシンの遊技処理のフローチャートである。It is a flowchart of the gaming process of the slot machine. 発明の実施の形態1に係る通信異常検知部の処理フローチャートである。It is a process flowchart of the communication abnormality detection part which concerns on Embodiment 1 of invention. 発明の実施の形態1に係る異常記憶部の記憶内容の説明図である。It is explanatory drawing of the memory content of the abnormality memory | storage part which concerns on Embodiment 1 of invention. 発明の実施の形態2に係る遊技機のコマンド伝送系統のブロック図である。It is a block diagram of the command transmission system of the gaming machine according to the second embodiment of the invention. 発明の実施の形態2に係るコマンドの送信処理のフローチャートである。It is a flowchart of the transmission process of the command which concerns on Embodiment 2 of invention. 発明の実施の形態2に係るコマンドの受信処理のフローチャートである。It is a flowchart of the reception process of the command which concerns on Embodiment 2 of invention. コマンド構成例の説明図である。It is explanatory drawing of the example of a command structure. 発明の実施の形態2に係るコマンド伝送の説明図としてタイミングチャートである(コマンド伝送正常)。It is a timing chart (command transmission normal) as explanatory drawing of the command transmission which concerns on Embodiment 2 of invention. 発明の実施の形態2に係るコマンド伝送の説明図としてタイミングチャートである(コマンド伝送異常の例1)。It is a timing chart as explanatory drawing of the command transmission which concerns on Embodiment 2 of invention (Example 1 of command transmission abnormality). 発明の実施の形態2に係るコマンド伝送の説明図としてタイミングチャートである(コマンド伝送異常の例2)。It is a timing chart as explanatory drawing of the command transmission which concerns on Embodiment 2 of invention (Example 2 of command transmission abnormality). 発明の実施の形態2係るコマンド伝送の説明図としてタイミングチャートである(コマンド伝送異常の例3)。It is a timing chart as explanatory drawing of the command transmission which concerns on Embodiment 2 of invention (Example 3 of command transmission abnormality). 発明の実施の形態3に係るスロットマシンの正面図である。It is a front view of the slot machine which concerns on Embodiment 3 of invention. 発明の実施の形態3に係るスロットマシンのブロック図である。It is a block diagram of the slot machine which concerns on Embodiment 3 of invention. 可動体の概略図である。同図(a)は上面図、同図(b)は正面図、同図(c)はB−B矢視断面図、同図(d)はA−A矢視断面図である。It is the schematic of a movable body. 4A is a top view, FIG. 2B is a front view, FIG. 4C is a cross-sectional view taken along the line BB, and FIG. 4D is a cross-sectional view taken along the line A-A. 可動要素(シャッター)の開状態(同図(a))と閉状態(同図(b))の説明図である。It is explanatory drawing of the open state (the figure (a)) and closed state (the figure (b)) of a movable element (shutter). 発明の実施の形態3に係る通信異常検知部の処理フローチャートである。It is a process flowchart of the communication abnormality detection part which concerns on Embodiment 3 of invention.

発明の実施の形態1.
図1は前扉を閉めた状態を示すスロットマシンの正面図、図2は前扉を180度開いた状態を示すスロットマシンの正面図を示す。
Embodiment 1 of the Invention
FIG. 1 is a front view of the slot machine with the front door closed, and FIG. 2 is a front view of the slot machine with the front door opened 180 degrees.

図1及び図2中、100はスロットマシンを示すもので、このスロットマシン100は、図1に示すように、スロットマシン本体120と、このスロットマシン本体120の前面片側にヒンジ等により開閉可能に取り付けられた前扉130とを備えている。前記前扉130の前面には、図1に示すように、ほぼ中央にゲーム表示部131を設け、ゲーム表示部131の右下隅部に、遊技者がメダルを投入するためのメダル投入口132を設け、メダル投入口132の下側には、メダル投入口132から投入され、詰まってしまったメダルをスロットマシン100外に強制的に排出するためのリジェクトボタン133が設けられている。   1 and 2, reference numeral 100 denotes a slot machine. As shown in FIG. 1, the slot machine 100 can be opened and closed by a hinge or the like on the slot machine main body 120 and one side of the front surface of the slot machine main body 120. And a front door 130 attached thereto. As shown in FIG. 1, a game display unit 131 is provided substantially in the center of the front door 130, and a medal insertion slot 132 for a player to insert medals is provided at the lower right corner of the game display unit 131. Provided below the medal insertion slot 132 is a reject button 133 for forcibly discharging a clogged medal inserted from the medal insertion slot 132 to the outside of the slot machine 100.

また、前記ゲーム表示部131の左下方には、ゲームを開始するためのスタートスイッチ134を設けてあり、3つの回胴のそれぞれに対応して3つのストップスイッチ140を設けてある。前扉の下端部中央には、メダルの払出し口135を設けてある。前記ゲーム表示部131の上側には、液晶表示装置LCDが設けてある。   Further, a start switch 134 for starting a game is provided at the lower left of the game display unit 131, and three stop switches 140 are provided corresponding to the three spinning cylinders. A medal payout port 135 is provided at the center of the lower end of the front door. A liquid crystal display device LCD is provided above the game display unit 131.

スロットマシン本体120の内部には、図2に示すように、その内底面に固定され、内部に複数のメダルを貯留して、貯留したメダルを前扉130の前面に設けた払出し口135に1枚ずつ払い出すためのホッパ装置121が設置されている。このホッパ装置121の上部には、上方に向けて開口し、内部に複数のメダルを貯留するホッパタンク122を備えている。スロットマシン本体120の内部には、前扉130を閉めたときにゲーム表示部131が来る位置に三個の回胴からなるリール(回胴)ユニット203が設置されている。リールユニット203は、外周面に複数種類の図柄が配列されている3つの回胴(第1回胴〜第3回胴)を備えている。ゲーム表示部131には開口部が設けられていて、それを通して遊技者が前記リールユニット203の各回転回胴の図柄を見ることができるようになっている。ホッパ装置121の左側には電源部205が設けられている。   As shown in FIG. 2, the slot machine main body 120 is fixed to the inner bottom surface, stores a plurality of medals therein, and stores the stored medals at a payout port 135 provided on the front surface of the front door 130. A hopper device 121 for paying out the sheets one by one is installed. An upper portion of the hopper device 121 is provided with a hopper tank 122 that opens upward and stores a plurality of medals therein. Inside the slot machine main body 120, a reel (rotating cylinder) unit 203 including three rotating cylinders is installed at a position where the game display unit 131 comes when the front door 130 is closed. The reel unit 203 includes three spinning cylinders (first to third drums) in which a plurality of types of symbols are arranged on the outer peripheral surface. The game display unit 131 is provided with an opening through which the player can see the symbols of the rotating drums of the reel unit 203. A power supply unit 205 is provided on the left side of the hopper device 121.

前記前扉130の裏面には、図2に示すように、メダル(コイン)セレクタ1が、前扉130の前面に設けられたメダル投入口132の裏側に取り付けられている。このメダルセレクタ1は、メダル投入口132から投入されたメダルの通過を検出しながら、当該メダルをホッパ装置121に向かって転動させ、外径が所定寸法と違う異径メダルや、鉄又は鉄合金で作製された不正メダルを選別して排除するとともに、1ゲームあたりに投入可能な所定枚数以上のメダルを選別して排除するための装置である。   As shown in FIG. 2, the medal (coin) selector 1 is attached to the back side of the front door 130 on the back side of the medal slot 132 provided on the front surface of the front door 130. This medal selector 1 rolls the medal toward the hopper device 121 while detecting the passage of the medal inserted from the medal insertion slot 132, and has a different diameter medal or iron or iron whose outer diameter is different from the predetermined dimension. This is an apparatus for selecting and removing illegal medals made of an alloy and selecting and eliminating a predetermined number or more of medals that can be inserted per game.

また、メダルセレクタ1の下側には、図2に示すように、その下部側を覆って前扉130の払出し口135に連通する導出路136が設けられている。メダルセレクタ1により振り分けられたメダルは、この導出路136を介して払出し口135から遊技者に返却される。   Further, as shown in FIG. 2, a lead-out path 136 that covers the lower side and communicates with the payout port 135 of the front door 130 is provided below the medal selector 1. The medals distributed by the medal selector 1 are returned to the player from the payout port 135 via the derivation path 136.

図3は発明の実施の形態に係るスロットマシン100の機能ブロック図を示す。   FIG. 3 shows a functional block diagram of the slot machine 100 according to the embodiment of the invention.

この図において電源系統についての表示は省略されている。図示しないが、スロットマシンは商用電源(AC100V)から直流電源(+5Vなど)を発生するための電源部を備える。   In this figure, the display about the power supply system is omitted. Although not shown, the slot machine includes a power supply unit for generating a DC power supply (+5 V or the like) from a commercial power supply (AC 100 V).

スロットマシン100は、その主要な処理装置としてメイン基板(処理部)10とこれからコマンドを受けて動作するサブ基板20とを備える。なお、少なくともメイン基板10は、外部から接触不能となるようにケース内部に収容され、これら基板を取り外す際に痕跡が残るように封印処理が施されている。   The slot machine 100 includes a main substrate (processing unit) 10 and a sub substrate 20 that operates in response to a command from the main substrate (processing unit) 10 as main processing devices. At least the main substrate 10 is accommodated inside the case so that it cannot be contacted from the outside, and is sealed so that traces remain when these substrates are removed.

メイン基板10は、遊技者の操作を受けて内部抽選を行ったり、リールの回転・停止やメダルの払い出しなどの処理(遊技処理)を行うためのものである。メイン基板10は、予め設定されたプログラムに従って制御動作を行うCPUと、前記プログラムを記憶する記憶手段であるROMおよび処理結果などを一時的に記憶するRAMを含む。   The main board 10 is for performing an internal lottery in response to a player's operation, and performing processing (game processing) such as reel rotation / stop and medal payout. The main board 10 includes a CPU that performs a control operation according to a preset program, a ROM that is a storage unit that stores the program, and a RAM that temporarily stores processing results and the like.

サブ基板20は、メイン基板10からコマンド信号を受けて内部抽選の結果を報知したり各種演出を行うためのものである。サブ基板20は、前記コマンド信号に応じた予め設定されたプログラムに従って制御動作を行うCPUと、前記プログラムを記憶する記憶手段であるROMおよび処理結果などを一時的に記憶するRAMを含む。コマンドの流れはメイン基板10からサブ基板20への一方のみであり、逆にサブ基板20からメイン基板10へコマンド等が出されることはない。   The sub board 20 is for receiving a command signal from the main board 10 and notifying the result of the internal lottery and performing various effects. The sub-board 20 includes a CPU that performs a control operation in accordance with a preset program corresponding to the command signal, a ROM that is a storage unit that stores the program, and a RAM that temporarily stores processing results and the like. Only one command flows from the main board 10 to the sub board 20, and conversely, no command is issued from the sub board 20 to the main board 10.

メイン基板10には、ベットスイッチBET、スタートスイッチ134,ストップボタン140,リールユニット(リール駆動装置を含む)203,リール位置検出回路71、ホッパ駆動部80、ホッパ81及びホッパ81から払い出されたメダルの枚数を数えるためのメダル検出部82(これらは前述のホッパ装置121を構成する)が接続されている。サブ基板20には液晶表示装置の制御用の液晶制御基板200、スピーカ基板201、LED基板202などの周辺基板(ローカル基板)が接続されている。   The main board 10 is paid out from a bet switch BET, a start switch 134, a stop button 140, a reel unit (including a reel driving device) 203, a reel position detection circuit 71, a hopper driving unit 80, a hopper 81 and a hopper 81. A medal detection unit 82 for counting the number of medals (these constitute the hopper device 121 described above) is connected. A peripheral substrate (local substrate) such as a liquid crystal control substrate 200 for controlling the liquid crystal display device, a speaker substrate 201, and an LED substrate 202 is connected to the sub substrate 20.

メイン基板10には、さらに、メダルセレクタ1のメダルセンサS1及びS2が接続されている。   Further, medal sensors S1 and S2 of the medal selector 1 are connected to the main board 10.

メダルセレクタ1には、メダルを計数するためのメダルセンサS1及びS2が設けられている。メダルセンサS1及びS2は、メダルセレクタ1に設けられた図示しないメダル通路の下流側(出口近傍)に設けられている(メダル通路の上流側はメダル投入口132に連通している)。2つのメダルセンサS1とS2は、メダルの進行方向に沿って所定間隔を空けて並べて設けられている。メダルセンサS1、S2は、例えば、互いに対向した発光部と受光部とを有して断面コ字状に形成され、その検出光軸をメダル通路内に上方から臨ませて位置するフォトインタラプタである。各フォトインタラプタにより、途中で阻止されずに送られてきたメダルの通過が検出される。なお、フォトインタラプタを2つ隣接させたのは、メダル枚数を検出するだけでなく、メダルの通過が正常か否かを監視するためである。すなわち、フォトインタラプタを2つ隣接させて設けることにより、メダルの通過速度や通過方向を検出することができ、これによりメダル枚数だけでなく、逆方向に移動する不正行為を感知することができる。   The medal selector 1 is provided with medal sensors S1 and S2 for counting medals. The medal sensors S1 and S2 are provided on the downstream side (near the exit) of a medal passage (not shown) provided in the medal selector 1 (the upstream side of the medal passage communicates with the medal slot 132). The two medal sensors S1 and S2 are arranged side by side at a predetermined interval along the medal traveling direction. The medal sensors S1 and S2 are, for example, photointerrupters that have a light emitting portion and a light receiving portion that face each other, are formed in a U-shaped cross section, and are positioned so that the detection optical axis faces the medal passage from above. . Each photo interrupter detects the passage of a medal sent without being blocked on the way. The reason why two photo interrupters are adjacent is not only to detect the number of medals but also to monitor whether or not the passage of medals is normal. That is, by providing two photo interrupters adjacent to each other, it is possible to detect the passing speed and passing direction of medals, thereby detecting not only the number of medals but also an illegal act moving in the reverse direction.

ホッパ駆動部80は、ホッパ81を回転駆動して、メイン基板10によって指示された払出数のメダルを払い出す動作を行う。遊技機は、メダルを1枚払い出す毎に作動するメダル検出部82を備えており、メイン基板10は、メダル検出部82からの入力信号に基づいてホッパ81から実際に払い出されたメダルの数を管理することができる。   The hopper driving unit 80 rotates the hopper 81 and performs an operation of paying out medals of the payout number instructed by the main board 10. The gaming machine includes a medal detection unit 82 that operates every time a medal is paid out, and the main board 10 receives a medal actually paid out from the hopper 81 based on an input signal from the medal detection unit 82. You can manage the number.

投入受付部1050は、メダルセレクタ1のメダルセンサS1とS2の出力を受け、遊技毎にメダルの投入を受け付けて、規定投入数に相当するメダルが投入されたことに基づいて、スタートスイッチ134に対する第1リール〜第3リールの回転開始操作を許可する処理を行う。なお、スタートスイッチ134の押下操作が、第1リール〜第3リールの回転を開始させる契機となっているとともに、内部抽選を実行する契機となっている。また、遊技状態に応じて規定投入数を設定し、通常状態およびボーナス成立状態では規定投入数を3枚に設定し、ボーナス状態では規定投入数を1枚に設定する。   The insertion accepting unit 1050 receives the outputs of the medal sensors S1 and S2 of the medal selector 1, accepts the insertion of medals for each game, and determines that the medal corresponding to the specified number of insertions has been inserted. A process of permitting the rotation start operation of the first reel to the third reel is performed. Note that the pressing operation of the start switch 134 is an opportunity to start rotation of the first reel to the third reel and an opportunity to execute the internal lottery. Also, a prescribed number of throws is set according to the gaming state, the prescribed number of throws is set to 3 in the normal state and the bonus established state, and the prescribed number of throws is set to 1 in the bonus state.

メダルが投入されると、遊技状態に応じた規定投入数を限度として、投入されたメダルを投入状態に設定する。あるいは、遊技機にメダルがクレジットされた状態で、ベットスイッチBETが押下されると、遊技状態に応じた規定投入数を限度して、クレジットされたメダルを投入状態に設定する。メダルの投入を受け付けるかどうかは、メイン基板10が制御する。メダルの投入を受け付ける状態になっていないときは(許可されていないときは)、メダルを投入してもメダルセンサS1、S2でカウントされず、そのまま返却される。同様に、メイン基板10はベットスイッチBETの有効/無効を制御する。ベットスイッチBETが有効になっていないときは(許可されていないときは)、ベットスイッチBETを押下しても、それは無視される。   When medals are inserted, the inserted medals are set to the inserted state up to a specified number of insertions according to the gaming state. Alternatively, when the bet switch BET is pressed in a state where medals have been credited to the gaming machine, the credited medals are set to the inserted state by limiting the prescribed number of insertions according to the gaming state. The main board 10 controls whether or not to accept a medal. When it is not in a state of accepting insertion of medals (when not permitted), even if medals are inserted, they are not counted by the medal sensors S1 and S2 and are returned as they are. Similarly, the main board 10 controls the validity / invalidity of the bet switch BET. When the bet switch BET is not valid (when not permitted), even if the bet switch BET is pressed, it is ignored.

メイン基板10は、乱数発生手段1100を内蔵する。乱数発生手段1100は、抽選用の乱数値を発生させる手段である。乱数値は、例えば、インクリメントカウンタ(所定のカウント範囲を循環するように数値をカウントするカウンタ)のカウント値に基づいて発生させることができる。なお本実施形態において「乱数値」には、数学的な意味でランダムに発生する値のみならず、その発生自体は規則的であっても、その取得タイミング等が不規則であるために実質的に乱数として機能しうる値も含まれる。   The main board 10 incorporates random number generating means 1100. The random number generation means 1100 is a means for generating a random number for lottery. The random value can be generated based on, for example, a count value of an increment counter (a counter that counts numerical values so as to circulate a predetermined count range). In this embodiment, the “random number value” is not only a value that is randomly generated in a mathematical sense, but even if the generation itself is regular, the acquisition timing and the like are irregular. Includes a value that can function as a random number.

内部抽選手段1200は、遊技者がスタートスイッチ134からのスタート信号に基づいて、役の当否を決定する内部抽選を行う。すなわち、メイン基板10のメモリ(図示せず)に記憶されている抽選テーブル(図示せず)を選択する抽選テーブル選択処理、乱数発生手段1050から得た乱数の当選を判定する乱数判定処理、当選の判定結果で大当たりなどに当選したときにその旨のフラグを設定する抽選フラグ設定処理などを行う。   The internal lottery means 1200 performs an internal lottery in which the player determines whether or not the winning combination is based on a start signal from the start switch 134. That is, a lottery table selection process for selecting a lottery table (not shown) stored in a memory (not shown) of the main board 10, a random number determination process for determining the winning of a random number obtained from the random number generation means 1050, The lottery flag setting process for setting a flag to that effect when a big win or the like is won by the determination result is performed.

抽選テーブル選択処理では、図示しない記憶手段(ROM)に格納されている複数の抽選テーブル(図示せず)のうち、いずれの抽選テーブルを用いて内部抽選を行うかを決定する。抽選テーブルでは、複数の乱数値(例えば、0〜65535の65536個の乱数値)のそれぞれに対して、リプレイ、小役(ベル、チェリー)、レギュラーボーナス(RB:ボーナス)、およびビッグボーナス(BB:ボーナス)などの各種の役が対応づけられている。また、遊技状態として、通常状態、ボーナス成立状態、およびボーナス状態が設定可能とされ、さらにリプレイの抽選状態として、リプレイ無抽選状態、リプレイ低確率状態、リプレイ高確率状態が設定可能とされる。   In the lottery table selection process, a lottery table (not shown) stored in a storage unit (ROM) (not shown) is used to determine which lottery table is used for internal lottery. In the lottery table, for each of a plurality of random values (for example, 65536 random values from 0 to 65535), replay, small role (bell, cherry), regular bonus (RB: bonus), and big bonus (BB :), etc., are associated with each other. In addition, a normal state, a bonus establishment state, and a bonus state can be set as the gaming state, and a replay lottery state, a replay low probability state, and a replay high probability state can be set as replay lottery states.

乱数判定処理では、スタートスイッチ134からのスタート信号に基づいて、遊技毎に前記乱数発生手段(図示せず)から乱数値(抽選用乱数)を取得し、取得した乱数値について前記抽選テーブルを参照して役に当選したか否かを判定する。   In the random number determination process, a random value (lottery random number) is acquired from the random number generation means (not shown) for each game based on a start signal from the start switch 134, and the lottery table is referred to for the acquired random value. Then, it is determined whether or not the winning combination is won.

抽選フラグ設定処理では、乱数判定処理の結果に基づいて、当選したと判定された役の抽選フラグを非当選状態(第1のフラグ状態、オフ状態)から当選状態(第2のフラグ状態、オン状態)に設定する。2種類以上の役が重複して当選した場合には、重複して当選した2種類以上の役のそれぞれに対応する抽選フラグが当選状態に設定される。抽選フラグの設定情報は、記憶手段(RAM)に格納される。   In the lottery flag setting process, the lottery flag of the winning combination determined to be won based on the result of the random number determination process is changed from the non-winning state (first flag state, off state) to the winning state (second flag state, on Status). When two or more types of winning combinations are won, a lottery flag corresponding to each of the two or more types of winning winning combinations is set to the winning state. The lottery flag setting information is stored in storage means (RAM).

入賞するまで次回以降の遊技に当選状態を持ち越し可能な抽選フラグ(持越可能フラグ)と、入賞の如何に関わらず次回以降の遊技に当選状態を持ち越さずに非当選状態にリセットされる抽選フラグ(持越不可フラグ)とが用意されていることがある。この場合、前者の持越可能フラグが対応づけられる役としては、レギュラーボーナス(RB)およびビッグボーナス(BB)があり、それ以外の役(例えば、小役、リプレイ)は後者の持越不可フラグに対応づけられている。すなわち抽選フラグ設定処理では、内部抽選でレギュラーボーナスに当選すると、レギュラーボーナスの抽選フラグの当選状態を、レギュラーボーナスが入賞するまで持ち越す処理を行い、内部抽選でビッグボーナスに当選すると、ビッグボーナスの抽選フラグの当選状態を、ビッグボーナスが入賞するまで持ち越す処理を行う。このときメイン基板10は、内部抽選機能により、レギュラーボーナスやビッグボーナスの抽選フラグの当選状態が持ち越されている遊技でも、レギュラーボーナスおよびビッグボーナス以外の役(小役およびリプレイ)についての当否を決定する内部抽選を行っている。すなわち抽選フラグ設定処理では、レギュラーボーナスの抽選フラグの当選状態が持ち越されている遊技において、内部抽選で小役あるいはリプレイが当選した場合には、既に当選しているレギュラーボーナスの抽選フラグと内部抽選で当選した小役あるいはリプレイの抽選フラグとからなる2種類以上の役に対応する抽選フラグを当選状態に設定し、ビッグボーナスの抽選フラグの当選状態が持ち越されている遊技において、内部抽選で小役あるいはリプレイが当選した場合には、既に当選しているビッグボーナスの抽選フラグと内部抽選で当選した小役あるいはリプレイの抽選フラグとからなる2種類以上の役に対応する抽選フラグを当選状態に設定する。   A lottery flag (possible carryover flag) that can carry over the winning state for the next game until winning, and a lottery flag that is reset to the non-winning state without bringing the winning state to the next game regardless of winning Carry-over impossible flag) may be provided. In this case, there are a regular bonus (RB) and a big bonus (BB) as a combination to which the former carry-over possible flag is associated, and other combinations (for example, small role, replay) correspond to the latter carry-over impossible flag. It is attached. In other words, in the lottery flag setting process, when a regular bonus is won by internal lottery, the winning state of the regular bonus lottery flag is carried over until the regular bonus is won, and when a big bonus is won by internal lottery, A process of carrying over the winning state of the flag until the big bonus is won is performed. At this time, the main board 10 determines whether or not a role other than the regular bonus and the big bonus (small role and replay) is used even in a game in which the winning state of the regular bonus or big bonus lottery flag is carried over by the internal lottery function. An internal lottery is performed. In other words, in the lottery flag setting process, in a game in which the winning state of the regular bonus lottery flag is carried over, if a small role or replay is won in the internal lottery, the regular bonus lottery flag and the internal lottery already won In a game in which the lottery flags corresponding to two or more types of winning combinations or replay lottery flags won in the win state are set to the winning state and the winning state of the big bonus lottery flag is carried over, it is small in the internal lottery When a winning combination or replay is won, a lottery flag corresponding to two or more kinds of winning combinations including a big bonus lottery flag that has already been won and a small bonus or replay lottery flag that has been won in an internal lottery is set to a winning state. Set.

リプレイ処理手段1600は、所定条件下で内部抽選におけるリプレイの当選確率を変動させる制御を行うことがある。リプレイ処理手段1600については、後に再度説明を加える。リプレイの抽選状態として、リプレイが内部抽選の対象から除外されるリプレイ無抽選状態、リプレイの当選確率が約1/7.3に設定されるリプレイ低確率状態、およびリプレイの当選確率が約1/6に設定されるリプレイ高確率状態という複数種類の抽選状態を設定可能とされている。リプレイの抽選状態を変化させることにより、内部抽選におけるリプレイの当選確率を変動させる。   The replay processing unit 1600 may perform control to change the winning probability of replay in the internal lottery under a predetermined condition. The replay processing unit 1600 will be described later again. The replay lottery states include a replay no lottery state in which replay is excluded from the internal lottery, a replay low probability state in which the replay winning probability is set to about 1 / 7.3, and a replay winning probability of about 1 / A plurality of lottery states such as a high replay probability state set to 6 can be set. By changing the replay lottery state, the winning probability of the replay in the internal lottery is changed.

リール制御手段1300は、遊技者がスタートスイッチ134の押下操作(回転開始操作)によるスタート信号に基づいて、第1リール〜第3リールをステッピングモータにより回転駆動して、第1リール〜第3リールの回転速度が所定速度(約80rpm:1分間あたり約80回転となる回転速度)に達した状態において回転中のリールにそれぞれ対応する3つのストップボタン140の押下操作(停止操作)を許可する制御を行うとともに、ステッピングモータにより回転駆動されている第1リール〜第3リールを抽選フラグの設定状態(内部抽選の結果)に応じて停止させる制御を行う。   The reel control means 1300 rotates the first to third reels by a stepping motor based on a start signal generated by the player pressing the start switch 134 (rotation start operation), and the first to third reels are driven. Control that permits the pressing operation (stop operation) of the three stop buttons 140 respectively corresponding to the rotating reels in a state in which the rotation speed of the motor reaches a predetermined speed (about 80 rpm: a rotation speed of about 80 rotations per minute). And a control to stop the first reel to the third reel, which are rotationally driven by the stepping motor, according to the lottery flag setting state (result of the internal lottery).

また、リール制御手段1300は、3つのストップボタン140に対する押下操作(停止操作)が許可(有効化)された状態において、遊技者が3つのストップボタン140を押下することにより、そのリール停止信号に基づいて、リールユニット203のステッピングモータへの駆動パルス(モータ駆動信号)の供給を停止することにより、第1リール〜第3リールの各リールを停止させる制御を行う。   In addition, the reel control means 1300 receives the reel stop signal when the player presses the three stop buttons 140 in a state where the pressing operation (stop operation) with respect to the three stop buttons 140 is permitted (validated). Based on this, by stopping the supply of drive pulses (motor drive signals) to the stepping motor of the reel unit 203, control is performed to stop each of the first to third reels.

すなわち、リール制御手段1300は、3つのストップボタン140の各ボタンが押下される毎に、第1リール〜第3リールのうち押下されたボタンに対応するリールの停止位置を決定して、決定された停止位置でリールを停止させる制御を行っている。具体的には、記憶手段(ROM)に記憶されている停止制御テーブル(図示せず)を参照して3つのストップボタンの押下タイミングや押下順序等(停止操作の態様)に応じた第1リール〜第3リールの停止位置を決定し、決定された停止位置で第1リール〜第3リールを停止させる制御を行う。   That is, each time the three stop buttons 140 are pressed, the reel control means 1300 determines the reel stop position corresponding to the pressed button among the first to third reels. The reel is stopped at the stop position. Specifically, referring to a stop control table (not shown) stored in the storage means (ROM), the first reel according to the pressing timing, pressing order, etc. (stop operation mode) of the three stop buttons. The stop position of the third reel is determined, and the first reel to the third reel are stopped at the determined stop position.

ここで停止制御テーブルでは、ストップボタン140の作動時点における第1リール〜第3リールの位置(押下検出位置)と、第1リール〜第3リールの実際の停止位置(または押下検出位置からの滑りコマ数)との対応関係が設定されている。抽選フラグの設定状態に応じて、第1リール〜第3リールの停止位置を定めるための停止制御テーブルが用意されることもある。   Here, in the stop control table, the position of the first reel to the third reel (press detection position) at the time when the stop button 140 is operated and the actual stop position (or the slip from the press detection position) of the first reel to the third reel. (Number of frames) is set. Depending on the setting state of the lottery flag, a stop control table for determining the stop positions of the first reel to the third reel may be prepared.

遊技機では、リールユニット203がフォトセンサからなるリールインデックス(図示せず)を備えており、リール制御手段1300は、リールが1回転する毎にリールインデックスで検出される基準位置信号に基づいて、リールの基準位置(リールインデックスによって検出されるコマ)からの回転角度(ステップモータの回転軸の回転ステップ数)を求めることによって、現在のリールの回転状態を監視することができるようになっている。すなわち、メイン基板10は、ストップスイッチ140の作動時におけるリールの位置を、リールの基準位置からの回転角度を求めることにより得ることができる。   In the gaming machine, the reel unit 203 includes a reel index (not shown) made of a photosensor, and the reel control means 1300 is based on a reference position signal detected by the reel index every time the reel rotates once. By determining the rotation angle (the number of rotation steps of the rotation axis of the step motor) from the reel reference position (the frame detected by the reel index), the current rotation state of the reel can be monitored. . That is, the main board 10 can obtain the position of the reel when the stop switch 140 is operated by obtaining the rotation angle from the reference position of the reel.

リール制御手段1300は、いわゆる引き込み処理と蹴飛ばし処理とをリールを停止させる制御として行っている。引き込み処理とは、抽選フラグが当選状態に設定された役に対応する図柄が有効な入賞判定ライン上に停止するように(当選した役を入賞させることができるように)リールを停止させる制御処理である。一方蹴飛ばし処理とは、抽選フラグが非当選状態に設定された役に対応する図柄が有効な入賞判定ライン上に停止しないように(当選していない役を入賞させることができないように)リールを停止させる制御処理である。すなわち本実施形態の遊技機では、上記引き込み処理及び蹴飛ばし処理を実現させるべく、抽選フラグの設定状態、ストップボタン140の押下タイミング、押下順序、既に停止しているリールの停止位置(表示図柄の種類)などに応じて各リールの停止位置が変化するように停止制御テーブルが設定されている。このように、メイン基板10は、抽選フラグが当選状態に設定された役の図柄を入賞の形態で停止可能にし、一方で抽選フラグが非当選状態に設定された役の図柄が入賞の形態で停止しないように第1リール〜第3リールを停止させる制御を行っている。   The reel control means 1300 performs so-called pull-in processing and kick-out processing as control for stopping the reel. The pull-in process is a control process for stopping the reel so that the symbol corresponding to the combination whose lottery flag is set to the winning state is stopped on the winning determination line (so that the winning combination can be won). It is. On the other hand, the kicking process means that the reel corresponding to the combination for which the lottery flag is set to the non-winning state does not stop on the valid winning determination line (so that the non-winning combination cannot be won) This is a control process to be stopped. That is, in the gaming machine of the present embodiment, the lottery flag setting state, the stop button 140 pressing timing, the pressing order, and the stop position of the reels that have already stopped (types of display symbols) in order to realize the pull-in processing and kicking processing. ) Etc., the stop control table is set so that the stop position of each reel changes. In this way, the main board 10 can stop the symbol of the combination for which the lottery flag is set to the winning state in a winning form, while the symbol of the combination for which the lottery flag is set to the non-winning state is in the winning form. Control is performed to stop the first reel to the third reel so as not to stop.

本実施形態の遊技機では、第1リール〜第3リールが、ストップボタン140が押下された時点から190ms以内に、押下されたストップボタンに対応する回転中のリールを停止させる制御状態に設定されている。すなわち回転している各リールの停止位置を決めるための停止制御テーブルでは、ストップボタン140の押下時点から各リールが停止するまでに要するコマ数が0コマ〜4コマの範囲(所定の引き込み範囲)で設定されている。   In the gaming machine of the present embodiment, the first to third reels are set to a control state in which the rotating reel corresponding to the pressed stop button is stopped within 190 ms from the time when the stop button 140 is pressed. ing. That is, in the stop control table for determining the stop position of each rotating reel, the number of frames required from when the stop button 140 is pressed until each reel stops is in the range of 0 to 4 frames (predetermined pull-in range). Is set in

入賞判定手段1400は、第1リール〜第3リールの停止態様に基づいて、役が入賞したか否かを判定する処理を行う。具体的には、記憶手段(ROM)に記憶されている入賞判定テーブルを参照しながら、第1リール〜第3リールの全てが停止した時点で入賞判定ライン上に表示されている図柄組合せが、予め定められた役の入賞の形態であるか否かを判定する。   The winning determination means 1400 performs a process of determining whether or not a winning combination has been won based on the stop mode of the first reel to the third reel. Specifically, referring to the winning determination table stored in the storage means (ROM), the symbol combination displayed on the winning determination line when all of the first reel to the third reel are stopped, It is determined whether or not it is a predetermined winning combination.

入賞判定手段1400は、その判定結果に基づいて、入賞時処理を実行する。入賞時処理としては、例えば、小役が入賞した場合にはホッパ81を駆動してメダルの払出制御処理が行われるか、あるいはクレジットの増加され(規定の最大枚数例えば50枚まで増加され、それを超えた分だけ実際にメダル払い出される)、リプレイが入賞した場合にはリプレイ処理が行われ、ビッグボーナスやレギュラーボーナスが入賞した場合には遊技状態を移行させる遊技状態移行制御処理が行われる。   The winning determination means 1400 executes a winning process based on the determination result. As a process at the time of winning a prize, for example, when a small role wins, the hopper 81 is driven to perform a medal payout control process, or a credit is increased (a predetermined maximum number is increased to 50, for example, When the replay is won, a replay process is performed. When a big bonus or a regular bonus is won, a game state transition control process for shifting the game state is performed.

払出制御手段1500は、遊技結果に応じたメダルの払い出しに関する払出制御処理を行う。具体的には、小役が入賞した場合に、役毎に予め定められている配当に基づいて遊技におけるメダルの払出数を決定し、決定された払出数に相当するメダルを、ホッパ駆動部80でホッパ81を駆動して払い出させる。この際に、ホッパ81に内蔵される図示しないモータに電流が流れることになる。   The payout control means 1500 performs payout control processing relating to the payout of medals according to the game result. Specifically, when a small combination wins, the number of medals to be paid out in the game is determined based on a payout predetermined for each combination, and the medals corresponding to the determined number of payouts are determined by the hopper driving unit 80. Then, the hopper 81 is driven to pay out. At this time, a current flows through a motor (not shown) built in the hopper 81.

メダルのクレジット(内部貯留)が許可されている場合には、ホッパ81によって実際にメダルの払い出しを行う代わりに、記憶手段(RAM)のクレジット記憶領域(図示省略)に記憶されているクレジット数(クレジットされたメダルの数)に対して払出数を加算するクレジット加算処理を行って仮想的にメダルを払い出す処理を行う。   When medal credits (internal storage) are permitted, instead of actually paying out medals by the hopper 81, the number of credits stored in a credit storage area (not shown) of the storage means (RAM) (not shown) A credit addition process for adding the number of payouts to the number of credited medals is performed to virtually pay out medals.

リプレイ処理手段1600は、リプレイが入賞した場合に、次回の遊技に関して遊技者の所有するメダルの投入を要さずに前回の遊技と同じ準備状態に設定するリプレイ処理(再遊技処理)を行う。リプレイが入賞した場合には、遊技者の手持ちのメダル(クレジットメダルを含む)を使わずに前回の遊技と同じ規定投入数のメダルが自動的に投入状態に設定される自動投入処理が行われ、遊技機が前回の遊技と同じ入賞判定ラインを有効化した状態で次回の遊技における回転開始操作(遊技者によるスタートスイッチ134の押下操作)を待機する状態に設定される。   When the replay is won, the replay processing means 1600 performs a replay process (regame process) for setting the same preparatory state as the previous game without requiring insertion of medals owned by the player for the next game. When a replay wins, an automatic insertion process is performed in which the same number of medals as the previous game is automatically set to the insertion state without using the player's own medals (including credit medals). The game machine is set in a state of waiting for a rotation start operation (pressing operation of the start switch 134 by the player) in the next game in a state where the same winning determination line as the previous game is validated.

また、メイン基板10は、通常状態、ボーナス成立状態、およびボーナス状態の間で遊技状態を移行させる制御を行うことがある(遊技状態移行制御機能)。遊技状態の移行条件は、1の条件が定められていてもよいし、複数の条件が定められていてもよい。複数の条件が定められている場合には、複数の条件のうち1の条件が成立したこと、あるいは複数の条件の全てが成立したことに基づいて、遊技状態を他の遊技状態へ移行させることができる。   Further, the main board 10 may perform control to shift the gaming state between the normal state, the bonus establishment state, and the bonus state (gaming state transition control function). As the game condition transition condition, one condition may be defined, or a plurality of conditions may be defined. When a plurality of conditions are established, transitioning the gaming state to another gaming state based on the fact that one of the plurality of conditions is satisfied or all of the plurality of conditions are satisfied Can do.

通常状態は、複数種類の遊技状態の中で初期状態に相当する遊技状態で、通常状態からはボーナス成立状態への移行が可能となっている。ボーナス成立状態は、内部抽選でビッグボーナスあるいはレギュラーボーナスに当選したことを契機として移行する遊技状態である。ボーナス成立状態では、通常状態における内部抽選でビッグボーナスが当選した場合、ビッグボーナスが入賞するまでビッグボーナスに対応する抽選フラグが当選状態に維持され、通常状態における内部抽選でレギュラーボーナスが当選した場合、レギュラーボーナスが入賞するまでレギュラーボーナスに対応する抽選フラグが当選状態に維持される。ボーナス状態では、ボーナス遊技によって払い出されたメダルの合計数により終了条件が成立したか否かを判断し、入賞したボーナスの種類に応じて予め定められた払出上限数を超えるメダルが払い出されると、ボーナス状態を終了させて、遊技状態を通常状態へ復帰させる。   The normal state is a game state corresponding to the initial state among a plurality of types of game states, and a transition from the normal state to the bonus establishment state is possible. The bonus establishment state is a gaming state that shifts when a big bonus or a regular bonus is won in the internal lottery. In the bonus establishment state, when the big bonus is won in the internal lottery in the normal state, the lottery flag corresponding to the big bonus is maintained in the winning state until the big bonus is won, and the regular bonus is won in the internal lottery in the normal state Until the regular bonus is won, the lottery flag corresponding to the regular bonus is maintained in the winning state. In the bonus state, it is determined whether or not the end condition is satisfied based on the total number of medals paid out by the bonus game, and medals exceeding a predetermined payout limit number are paid out according to the type of bonus won. The bonus state is terminated and the gaming state is returned to the normal state.

リールユニット203は、図示しない3つのリールを備えるが、3つのリールそれぞれにひとつづつステッピングモータが取り付けられている。ステッピングモータは、回転子(ロータ)として歯車状の鉄心あるいは永久磁石を備え、固定子(ステータ)として複数の巻線(コイル)を備え、電流を流す巻線を切り替えることによって回転動作させるものである。すなわち、固定子の巻線に電流を流して磁力を発生させ、回転子を引きつけることで回転するものである。回転軸を指定された角度で停止させることが可能なことから、スロットマシンのリールの回転駆動に使用されている。複数の巻線がひとつの相を構成する。相の数として、例えば、2つ(二相)、4つ(4相)、5つ(5相)のものもある。   The reel unit 203 includes three reels (not shown), and one stepping motor is attached to each of the three reels. A stepping motor includes a gear-shaped iron core or permanent magnet as a rotor (rotor), a plurality of windings (coils) as a stator (stator), and is rotated by switching windings through which current flows. is there. That is, a current is passed through the windings of the stator to generate a magnetic force, and the rotor is rotated by attracting the rotor. Since the rotation axis can be stopped at a specified angle, it is used to drive the rotation of the reel of the slot machine. A plurality of windings constitute one phase. As the number of phases, for example, there are two (two phases), four (four phases), and five (five phases).

ステッピングモータは、各相の巻線への電流の与え方を変えることにより、特性を変えることができる(励磁モードが変わる)。二相型については次の通りである。   The stepping motor can change its characteristics (excitation mode changes) by changing the way of applying current to the windings of each phase. The two-phase type is as follows.

・一相励磁
常に巻線一相のみに電流を流す。位置決め精度は良い。
• Single-phase excitation Always allow current to flow through only one phase of the winding. Positioning accuracy is good.

・二相励磁
二相に電流を流す。一相励磁の約2倍の出力トルクが得られる。位置決め精度は良く、停止したときの静止トルクが大きいため、停止位置を確実に保持できる。
・ Two-phase excitation
Current flows in two phases. An output torque approximately twice that of single-phase excitation can be obtained. The positioning accuracy is good and the stationary torque is large when stopped, so that the stop position can be held reliably.

・一−二相励磁
一相と二相を交互に切り替えて電流を流す。一相励磁・二相励磁の場合のステップ角度の半分にすることができるので、滑らかな回転を得られる。
・ One-two-phase excitation
A current is passed by alternately switching between one phase and two phases. Since the step angle can be halved in the case of one-phase excitation and two-phase excitation, smooth rotation can be obtained.

なお、ステッピングモータを「駆動する」とは、当該モータを上記励磁により回転させることとともに、所望の位置で停止させその位置を保持するために各相を励磁することも含むものとする。   Note that “driving” a stepping motor includes rotating the motor by the above-described excitation and exciting each phase in order to stop at a desired position and hold the position.

スロットマシンでは、例えば、4相の基本ステップ角度1.43度のステッピングモータを使用し、パルスの出力方法として一−二相励磁を採用している。   In the slot machine, for example, a four-phase stepping motor having a basic step angle of 1.43 degrees is used, and one-two-phase excitation is adopted as a pulse output method.

図4は、サブ基板20とその周辺基板の接続の説明図である。図3に示すように、サブ基板20には、液晶制御基板200、スピーカ基板201、LED基板202が接続されている。これらは、サブ基板20の周辺基板(「スレーブ基板」と表現することもある)と言うべきものである。周辺基板は、サブ基板20からのコマンドに基づき所定の演出を行うデバイスを制御するものである。デバイスとは、液晶制御基板200であれば液晶表示装置LCDであり、スピーカ基板201であれば図示しないスピーカ(音響発生装置)であり、LED基板202であればアーチやサイドランプに内蔵された発光素子(図示せず)である。   FIG. 4 is an explanatory diagram of the connection between the sub-board 20 and its peripheral board. As shown in FIG. 3, a liquid crystal control board 200, a speaker board 201, and an LED board 202 are connected to the sub board 20. These should be referred to as peripheral substrates of the sub-substrate 20 (sometimes expressed as “slave substrates”). The peripheral board controls a device that performs a predetermined effect based on a command from the sub-board 20. The device is a liquid crystal display device LCD if the liquid crystal control substrate 200, a speaker (sound generating device) (not shown) if the speaker substrate 201, and a light emission built in the arch or side lamp if the LED substrate 202. It is an element (not shown).

これら複数の周辺基板は、図4のように接続されている。すなわち、複数のスレーブ基板が共通のバス(BUS、通信路)に接続され、当該バスを通じてサブ基板20と通信を行う。当該バスを流れる信号は、パラレル信号(例えば8ビットの線で信号を伝送するもの)あるいはシリアル信号(例えば、I2C(Inter-Integrated Circuit)のようにデータ線とクロック線の2本の線で信号を伝送するもの)である。なお、図4の例ではサブ基板20から出た信号がサブ基板20に戻っているが、これは一例であり、一般的なバス構造のように接続端の反対側の端が開放されていてもよい。   The plurality of peripheral substrates are connected as shown in FIG. That is, a plurality of slave boards are connected to a common bus (BUS, communication path), and communicate with the sub-board 20 through the bus. The signal flowing through the bus is a signal on two lines, a data line and a clock line, such as a parallel signal (for example, a signal transmitted by an 8-bit line) or a serial signal (for example, I2C (Inter-Integrated Circuit)). ). In the example of FIG. 4, the signal output from the sub-board 20 returns to the sub-board 20, but this is an example, and the end opposite to the connection end is opened as in a general bus structure. Also good.

サブ基板20からスレーブ基板へは、アドレスを指定してデータを送る。例えば、スレーブ基板としてのスピーカ基板201へデータを送る場合は、スピーカ基板201に予め対応づけられているアドレスを指定してデータをバスに流す。スピーカ基板201は、アドレスにより自分宛のデータであることを認識すると、アドレスに引き続くデータをラッチに取り込む。取り込んだデータに従って所定の動作を行う。取り込んだデータが、スピーカ基板201で取得したあるいは取得可能なデータをサブ基板20へ送信するコマンドであれば、当該データをサブ基板20へ送信する(所定のデータ受信後は、予めさだめられたデータを常にサブ基板20へ送信するようにすることもできる)。   Data is transmitted from the sub board 20 to the slave board by designating an address. For example, when data is sent to the speaker board 201 as a slave board, an address associated with the speaker board 201 is designated in advance and the data is sent to the bus. When the speaker board 201 recognizes that the data is addressed to itself by the address, the speaker board 201 takes in the data following the address into the latch. A predetermined operation is performed according to the fetched data. If the fetched data is a command for transmitting data acquired or obtainable by the speaker board 201 to the sub-board 20, the data is sent to the sub-board 20 (after receiving the predetermined data, the data stored in advance. Can always be transmitted to the sub-board 20).

図4では、遊技機の処理に必要な処理部CPUと、バッファBUFとを示している。バッファBUFはスレーブ基板へのデータ及び/又はスレーブ基板からのデータを一時的に記憶するものである。   FIG. 4 shows a processing unit CPU and a buffer BUF necessary for processing of the gaming machine. The buffer BUF temporarily stores data to / from the slave board and / or data from the slave board.

サブ基板20は、さらに、サブ基板20と周辺基板201,202などとの間の通信の異常を検知する通信異常検知部DETと、通信異常検知部DETにより検知された異常を記憶する異常記憶部EMと、異常記憶部EMに接続された出力手段OUTとを備える。異常記憶部EMは、電源オフのときでも記憶内容を保持するものであり、その記憶内容は出力手段OUTにより外部に取り出し可能である。   The sub board 20 further includes a communication anomaly detection unit DET that detects an anomaly in communication between the sub board 20 and the peripheral boards 201 and 202, and an anomaly storage unit that stores an anomaly detected by the communication anomaly detection unit DET. EM and output means OUT connected to the abnormality storage unit EM. The abnormal storage unit EM retains the stored contents even when the power is off, and the stored contents can be taken out by the output means OUT.

図5は、サブ基板20のハードウエア構成の説明図である。サブ基板20は、実際には図5のハードウエア構成で実現される。すなわち、複数のビット(配線)からなるBUSに、CPU(処理装置)、ROM(不揮発性記憶部)、メモリRWM(読み出し及び書き込み可能なメモリ)及びI/O(入出力装置)が接続されている。さらに、サブ基板20は、上記異常記憶部EMとして機能するメモリRWM2と、遊技機の電源がオフであってもメモリRWM2の記憶内容を維持するためのバックアップ電源(電池)BATとを備える。   FIG. 5 is an explanatory diagram of the hardware configuration of the sub-board 20. The sub board 20 is actually realized by the hardware configuration of FIG. That is, a CPU (processing device), a ROM (nonvolatile storage unit), a memory RWM (a readable / writable memory), and an I / O (input / output device) are connected to a BUS composed of a plurality of bits (wirings). Yes. Further, the sub-board 20 includes a memory RWM2 that functions as the abnormality storage unit EM and a backup power supply (battery) BAT for maintaining the stored contents of the memory RWM2 even when the gaming machine is powered off.

通信処理は、図5のROMに予め記憶されたプログラムに従ってCPUが動作することで実現される。CPUは、処理を行う際に各種データをメモリRWMに記憶させ、必要に応じて読み出し、処理を行い、必要に応じて再度記憶する、といった処理を行う。   The communication process is realized by the CPU operating in accordance with a program stored in advance in the ROM of FIG. When performing processing, the CPU stores various data in the memory RWM, reads as necessary, performs processing, and stores it again as necessary.

通信異常検知部DETも同様に、図5のROMに予め記憶されたプログラムに従ってCPUが動作することで実現される。例えば、サブ基板20と特定の周辺基板との間の通信が一定時間経っても終わらない(タイムアウト)、通信相手である周辺基板から応答(ACK)が返ってこない、異常なデータ(例えばパリティ・チェックサムが正しくないデータ)を受信した、などの場合に異常と判定される。   Similarly, the communication abnormality detection unit DET is realized by the CPU operating in accordance with a program stored in advance in the ROM of FIG. For example, communication between the sub-board 20 and a specific peripheral board does not end even after a certain period of time (timeout), no response (ACK) is returned from the peripheral board that is the communication partner, abnormal data (for example, parity It is determined that there is an abnormality when data with an incorrect checksum is received.

タイマTMは、処理部CPUに対して割り込みを一定間隔でかけるものであり、例えば専用のICなどのハードウエアで実現されるが、ソフトウエア(プログラム)で実現するようにしてもよい。I/Oは、例えば通信処理用のICであり、所定のプロトコルにしたがってデータ通信を行う。図示しないレジスタにアドレス及びデータを設定することで、スレーブ基板との通信を自動的に行う。   The timer TM interrupts the processing unit CPU at regular intervals, and is realized by hardware such as a dedicated IC, but may be realized by software (program). The I / O is an IC for communication processing, for example, and performs data communication according to a predetermined protocol. Communication with the slave board is automatically performed by setting an address and data in a register (not shown).

図4で示したバッファBUFは、例えば、図5のメモリRWM上で実現される(当該メモリの特定の領域にバッファBUFに書き込むべきデータが書き込まれる)。あるいは、バッファBUFは、レジスタICのようなハードウエアで実現されてもよい。   The buffer BUF shown in FIG. 4 is realized, for example, on the memory RWM of FIG. 5 (data to be written to the buffer BUF is written in a specific area of the memory). Alternatively, the buffer BUF may be realized by hardware such as a register IC.

次に、遊技機における遊技処理について図6を参照して説明を加える。   Next, game processing in the gaming machine will be described with reference to FIG.

一般的に、遊技機において、メダルの投入(クレジットの投入)に始まり、払い出しが終了するまで(又はクレジット数の増加が終了するまで)が一遊技である。一遊技が終了するまでは次回の遊技に進めないという決まりがある。   Generally, in a gaming machine, one game is started from the insertion of medals (insertion of credits) until the end of payout (or until the increase in the number of credits is completed). There is a rule that it is not possible to proceed to the next game until one game is finished.

先ず、規定枚数のメダルが投入されることでスタートスイッチ134が有効になり、図4の処理が開始される。   First, when a prescribed number of medals are inserted, the start switch 134 is activated, and the processing of FIG. 4 is started.

ステップS1において、スタートスイッチ134が操作されることにより、スタートスイッチ134がONとなる。そして、次のステップS2に進む。   In step S1, the start switch 134 is turned on by operating the start switch 134. Then, the process proceeds to the next step S2.

ステップS2において、メイン基板10により抽選処理が行われる。そして、次のステップS3に進む。   In step S2, a lottery process is performed by the main board 10. Then, the process proceeds to the next step S3.

ステップS3において、第1リール〜第3リールの回転が開始する。そして、次のステップS4に進む。   In step S3, the rotation of the first reel to the third reel starts. Then, the process proceeds to the next step S4.

ステップS4において、ストップボタン140が操作されることにより、ストップボタン140がONとなる。そして、次のステップS5に進む。   In step S4, when the stop button 140 is operated, the stop button 140 is turned ON. Then, the process proceeds to the next step S5.

ステップS5において、第1リール〜第3リールのうち押下されたストップボタン140に対応するリールについて回転停止処理が行われる。そして、次のステップS6に進む。   In step S5, rotation stop processing is performed on the reel corresponding to the pressed stop button 140 among the first to third reels. Then, the process proceeds to the next step S6.

ステップS6において、三個のリールに対応するストップボタン140の操作が行われたか否かが判定される。そして、三個のリールに対応する3つのストップボタン140すべての操作が行われたと判定された場合、次のステップS7に進む。   In step S6, it is determined whether or not the operation of the stop button 140 corresponding to the three reels has been performed. If it is determined that all three stop buttons 140 corresponding to the three reels have been operated, the process proceeds to the next step S7.

ステップS7において、抽選フラグ成立中に当該抽選フラグに対応する入賞図柄が有効入賞ライン上に揃ったか否か、すなわち、入賞が確定したか否かが判定される。そして、入賞が確定したと判定された場合、次のステップS8に進む。なお、入賞が確定しなかったときは、抽選フラグが成立していてもメダルの払い出しは行われない。   In step S7, it is determined whether or not the winning symbols corresponding to the lottery flag are aligned on the effective winning line while the lottery flag is established, that is, whether or not the winning is confirmed. If it is determined that the winning is confirmed, the process proceeds to the next step S8. If the winning is not confirmed, no medals are paid out even if the lottery flag is established.

ステップS8において、入賞図柄に相当するメダルが払い出される。   In step S8, medals corresponding to winning symbols are paid out.

メダルの投入からステップS8の実行完了までが、一遊技である。ステップS8の待機処理が終了すると、処理はフローチャートの最初に戻る。言い換えれば、次の遊技が可能な状態になる(次遊技へ移行する)。   The process from the insertion of the medal to the completion of the execution of step S8 is one game. When the standby process in step S8 ends, the process returns to the beginning of the flowchart. In other words, the next game is possible (transition to the next game).

図7のフローチャートを参照して、発明の実施の形態に係る遊技機の通信異常検知処理について説明を加える。   With reference to the flowchart of FIG. 7, the communication abnormality detection process of the gaming machine according to the embodiment of the invention will be described.

サブ基板が任意の周辺基板と通信を開始しようとするとき、図7の処理が開始する。   When the sub-board tries to start communication with an arbitrary peripheral board, the process of FIG. 7 starts.

S100:サブ基板20の処理部が出力データを構築する。 S100: The processing unit of the sub-board 20 constructs output data.

S101:サブ基板20の処理部が当該出力データの出力先である制御対象デバイスを選択する。例えば、アーチなどの電飾を点滅させるときには、出力データとして電飾のLEDの点灯データを生成するとともに、その出力先としてLED基板202を選択し、当該点灯データにLED基板202宛のアドレスを設定する。このようにして構築した出力データをバッファBUFに格納する。格納した出力データは通信路BUSを経由してLED基板202宛に順次送信される。 S101: The processing unit of the sub-board 20 selects a control target device that is an output destination of the output data. For example, when blinking an illumination such as an arch, the lighting data of the LED of the illumination is generated as output data, the LED board 202 is selected as the output destination, and the address addressed to the LED board 202 is set in the lighting data To do. The output data constructed in this way is stored in the buffer BUF. The stored output data is sequentially transmitted to the LED board 202 via the communication path BUS.

S102:通信異常検知部DETが通信路BUSの状態を監視する。正常であればS103を行い、異常であればS104とS105を行う。 S102: The communication abnormality detection unit DET monitors the state of the communication path BUS. If normal, S103 is performed, and if abnormal, S104 and S105 are performed.

通信異常検知部DETが異常と判定するのは次のような場合である。   The communication abnormality detection unit DET determines that there is an abnormality in the following case.

(1)通信路BUSの占有が解放されない(バスビジー)。図4に示すように通信路BUSが共通であるから、サブ基板20がある周辺基板と通信しているとき、他の周辺基板とは通信することができない。通信終了を待って他の周辺基板が通信を開始する。通信は限られた時間内に終了することになっているが、いつまでも通信路が開放されないときには異常と判定する。具体的にはバスビジーの状態を図示しないカウンタで計時し、これが予め定められた閾値を超えたときに異常と判定する。バスビジーかどうかは、通信路に信号が存在しているかどうかを直接調べるか、あるいはサブ基板20から周辺基板へ又は周辺基板からサブ基板20へ通信終了の信号が送られたかどうかで判断する。 (1) The occupation of the communication path BUS is not released (bus busy). Since the communication path BUS is common as shown in FIG. 4, when the sub-board 20 is communicating with a certain peripheral board, it cannot communicate with other peripheral boards. Waiting for the end of communication, other peripheral boards start communication. Although communication is supposed to end within a limited time, it is determined as abnormal when the communication path is not opened forever. Specifically, the bus busy state is measured by a counter (not shown), and when this exceeds a predetermined threshold, it is determined that there is an abnormality. Whether the bus is busy is determined by directly checking whether a signal is present in the communication path, or by determining whether a communication end signal has been sent from the sub-board 20 to the peripheral board or from the peripheral board to the sub-board 20.

(2)周辺基板が応答していない。サブ基板20から周辺基板へデータを送るときにまずその旨の信号を送る。これを受けて周辺基板は応答する(ACKをサブ基板20へ返す)。正常であれば周辺基板は必ず応答を返すから、これがないときに異常と判定する。 (2) The peripheral board is not responding. When data is sent from the sub board 20 to the peripheral board, a signal to that effect is sent first. In response to this, the peripheral board responds (returns ACK to the sub-board 20). If it is normal, the peripheral board always returns a response.

(3)サブ基板20が周辺基板から異常なデータを受信したとき異常と判定する。例えばパリティが正しくないデータを受信したとき、予め定められたコマンド体系から逸脱したデータを受信したときが該当する。 (3) When the sub board 20 receives abnormal data from the peripheral board, it is determined to be abnormal. For example, when data having an incorrect parity is received, data deviating from a predetermined command system is received.

S103:正常であれば、サブ基板20は通信を開始する。 S103: If normal, the sub-board 20 starts communication.

S104:異常であれば、通信異常検知部DETは検知した異常に関する情報を異常記憶部EMに記憶する。そして所定のエラー処理(例えば当該周辺基板との通信を強制的に打ち切るなど)を行う(S105)。 S104: If abnormal, the communication abnormality detection unit DET stores information regarding the detected abnormality in the abnormality storage unit EM. Then, predetermined error processing (for example, forcibly terminating communication with the peripheral board) is performed (S105).

S106:サブ基板20は通信を終了する。 S106: The sub-board 20 ends the communication.

異常記憶部EMに記憶される内容の一例を図8に示す。例えば、(1)どの周辺基板と通信したときに異常になったか、(2)そのときの異常の内容は何か、(3)当該異常の発生時刻、(4)同一周辺基板・同一異常内容の発生回数、が記憶されている。   An example of the contents stored in the abnormality storage unit EM is shown in FIG. For example, (1) which peripheral board communicated with the abnormality, (2) what was the abnormality at that time, (3) the time of occurrence of the abnormality, (4) the same peripheral board, the same abnormality content Is stored.

異常記憶部EMの内容は、出力手段OUTを通じて外部へ出力することができる。出力手段OUTはシリアル伝送を行うようにしてもよい。出力手段は例えば図5のI/Oであり、これを通じて外部のコンピュータからRWM2の内容を吸い出すことができる。   The contents of the abnormality storage unit EM can be output to the outside through the output unit OUT. The output means OUT may perform serial transmission. The output means is, for example, the I / O shown in FIG. 5, and the content of the RWM 2 can be extracted from an external computer through this.

本発明の実施の形態によれば、遊技機における通信の異常を、電源断でも内容の消えることのない記憶部に記憶するようにしたので、例えば、遊技機がホールから外されて戻ってきたときに記憶内容を取り出すことができる。当該異常の記録を商品開発へフィードバックすることで、よりよい製品の開発に資することができる。遊技機のデバイス毎に不具合内容や回数を集計することができ、不具合の原因追求や対策等の参考情報として開発ヘフィードバックできる。   According to the embodiment of the present invention, the abnormality of communication in the gaming machine is stored in the storage unit that does not lose its contents even when the power is turned off. For example, the gaming machine has been removed from the hall and returned. Sometimes the stored contents can be retrieved. By feeding back the abnormality record to product development, it is possible to contribute to the development of a better product. The content and frequency of defects can be tabulated for each device of the gaming machine, and can be fed back to development as reference information for pursuing the cause of the defect and countermeasures.

なお、異常記憶部EMの記憶内容は、所定のスイッチの操作や、メイン基板10からサブ基板20へ送る特別なコマンドなどのより消去するようにしてもよい。   The contents stored in the abnormality storage unit EM may be erased by operating a predetermined switch or a special command sent from the main board 10 to the sub board 20.

発明の実施の形態2.
上記説明において、通信異常検知部DETはサブ基板20と周辺基板の間の通信異常を検知するものであったが、メイン基板10とサブ基板20の間の通信異常を検知するようにもできる。図9乃至図16を参照して、本発明の実施の形態2に係る遊技機について説明を加える。
Embodiment 2 of the Invention
In the above description, the communication abnormality detection unit DET detects a communication abnormality between the sub board 20 and the peripheral board, but it can also detect a communication abnormality between the main board 10 and the sub board 20. With reference to FIG. 9 thru | or FIG. 16, description is added about the game machine which concerns on Embodiment 2 of this invention.

図9は、本発明の実施の形態に係る、メイン基板からサブ基板へデータ伝送を行う装置のブロック図である。本発明の実施の形態に係る動作の説明に必要な部分のみを示し、図3の投入受付手段1050など他の要素の表示は省略している。同図の装置は、例えば、メイン基板10、サブ基板20のCPUがそれぞれ所定のプログラムを実行することで実現される。あるいは、ICなどのハードウエアで実現することもできる。   FIG. 9 is a block diagram of an apparatus for performing data transmission from the main board to the sub board according to the embodiment of the present invention. Only the portions necessary for the description of the operation according to the embodiment of the present invention are shown, and the display of other elements such as the input receiving means 1050 in FIG. 3 is omitted. The apparatus shown in the figure is realized, for example, by the CPUs of the main board 10 and the sub board 20 executing predetermined programs. Alternatively, it can be realized by hardware such as an IC.

以下に説明では特に断らない限り、「コマンド」とは所定の動作を行わせる特定のコマンドではなく、コマンド全般のことを意味する。コマンドはメイン基板10で生成するがコマンドそのもの及びその生成手順は公知であるので説明は省略する。以下の説明においてはコマンドは所与の前提として考える。   In the following description, unless otherwise specified, “command” means not a specific command for performing a predetermined operation but a general command. Although the command is generated on the main board 10, the command itself and the generation procedure thereof are well known, and the description thereof is omitted. In the following description, commands are considered as given assumptions.

10−1は、メイン基板10で生成されたコマンドを格納している送信バッファである。当該コマンドはひとつ以上の順番に配列された電文(電文とは、ひとまとまりのデータ、典型的には1バイトのデータ)からなるものである。その一例を図12に示す。送信バッファ10−1は例えば先入れ先出しメモリ(First In First Out:FIFO)であり、電文を送信の順番に従って格納している。図12のコマンドの例では、電文1、電文2,電文3,電文4、チェックサム、チェックサムの順番で格納している。なお、以下の説明では、特に断らない限り電文1〜チェックサムを電文と表現する。特定の電文について言及するときは「電文1」のように表現する。発明の実施の形態に係る電文は、電文識別用のビットを備えておらず、その全てのビットをデータ格納に使用することができる。   A transmission buffer 10-1 stores commands generated by the main board 10. The command is composed of one or more messages arranged in order (a message is a group of data, typically 1-byte data). An example is shown in FIG. The transmission buffer 10-1 is a first-in first-out memory (FIFO), for example, and stores messages in the order of transmission. In the example of the command in FIG. 12, message 1, message 2, message 3, message 4, checksum, and checksum are stored in this order. In the following description, unless otherwise specified, messages 1 to checksum are expressed as messages. When referring to a specific message, it is expressed as “message 1”. The message according to the embodiment of the present invention does not include a message identification bit, and all the bits can be used for data storage.

10−2は、電文の送信(「コマンドの送信」と表現することもある)が許されている第1期間(図15などにおける符号TPA)を示す信号と電文の送信が許されていない第2期間(同、符号TPB)を示す信号とを交互に発生する送信タイミング発生部である。送信タイミング発生部10−2は例えばタイマであり、所定間隔で信号(同、符号TmAとTmB、TmA=TmBとなることもある)を出力する。   10-2 is a signal indicating a first period (sign TPA in FIG. 15 and the like) in which transmission of a message (may be expressed as “command transmission”) is permitted and transmission of a message is not permitted. It is a transmission timing generation unit that alternately generates a signal indicating two periods (same as TPB). The transmission timing generation unit 10-2 is a timer, for example, and outputs signals (same as TmA and TmB, and TmA = TmB) at predetermined intervals.

10−3は、送信バッファ10−1から順番に電文を読み出し、送信タイミング発生部10−2の出力に基づき第1期間において電文を順番に送信する送信部である。送信部10−3は、例えば、図13のように符号TPAの開始タイミングで電文の送信を開始する。   10-3 is a transmission part which reads a message in order from the transmission buffer 10-1, and transmits a message in order in a 1st period based on the output of the transmission timing generation part 10-2. For example, as illustrated in FIG. 13, the transmission unit 10-3 starts transmitting a message at the start timing of the code TPA.

10−4は、メイン基板10で作成されたコマンドの電文を送信バッファ10−1に格納するコマンド書込部である。コマンド書込部10−4は、電文を格納する前に送信バッファ10−1が空かどうか調べ、空でないとき送信バッファ10−1をクリアする。クリアすることにより、送信バッファ10−1に送信されない前のコマンドの電文が残っていたときでも、電文エラーを起こさずにコマンドを送信することができる(電文エラーについては図11及びその説明参照)。   Reference numeral 10-4 denotes a command writing unit that stores a command message generated on the main board 10 in the transmission buffer 10-1. The command writing unit 10-4 checks whether or not the transmission buffer 10-1 is empty before storing the message, and clears the transmission buffer 10-1 when it is not empty. By clearing, even if a message of a previous command that has not been transmitted remains in the transmission buffer 10-1, the command can be transmitted without causing a message error (see FIG. 11 and its description for the message error). .

20−1は、送信部10−3からの電文を受信する受信部である。受信部20−1は、メイン基板10から電文を受信するごとにそれを受信バッファ20−2に格納する。   Reference numeral 20-1 denotes a reception unit that receives a message from the transmission unit 10-3. Each time the receiving unit 20-1 receives a message from the main board 10, it stores it in the receiving buffer 20-2.

20−2は、受信した電文を順番に格納する受信バッファである。受信バッファ20−2は例えば先入れ先出しメモリ(First In First Out:FIFO)であり、電文を受信の順番に従って格納している。エラーがなく正常に伝送が行われたときは、電文1、電文2,電文3,電文4、チェックサム、チェックサムの順番で格納する。   Reference numeral 20-2 denotes a reception buffer for sequentially storing received electronic messages. The reception buffer 20-2 is, for example, a first-in first-out memory (FIFO), and stores messages in the order of reception. When there is no error and transmission is performed normally, message 1, message 2, message 3, message 4, checksum, and checksum are stored in this order.

20−3は、予め定められた一定の時間間隔(図15などにおける符号Ts。以下「受信チェック間隔」とする)で信号を出力する受信バッファチェックタイミング発生部である。受信バッファチェックタイミング発生部20−3は例えばタイマであり、所定間隔Tsで信号を出力する。   Reference numeral 20-3 denotes a reception buffer check timing generation unit that outputs a signal at a predetermined fixed time interval (symbol Ts in FIG. 15 and the like, hereinafter referred to as “reception check interval”). The reception buffer check timing generation unit 20-3 is a timer, for example, and outputs a signal at a predetermined interval Ts.

20−4は、受信バッファチェックタイミング発生部20−3の出力に基づき受信バッファ20−2に格納されている電文の数をチェックする受信電文数所得部である。当該電文の数は、前回の受信バッファチェックから今回の受信バッファチェックまでに格納された電文の数を意味する。コマンド送信中(この最大期間は概ね第1期間TPAにメイン基板10からサブ基板までの伝送時間を加えた時間)は、当該電文の数は0ではない。しかし、当該電文の数はコマンドを構成する電文の数(図12の例では6個)を超えることはない。これに対し、コマンド非送信中(この最大期間は概ね第2期間TPBにメイン基板10からサブ基板までの伝送時間を加えた時間)は、当該電文の数が0となる。この点については後に詳しく説明を加える。したがって、電文の数により、送信側であるメイン基板10が第1期間TPAであるのか、第2期間TPBであるのかを判別することができる。メイン基板10とサブ基板20の動作はそれぞれ独立であり、サブ基板20からはメイン基板10がどのような状態にあるか知ることはできないが、本発明の実施の形態によれば電文の数に基づきメイン基板10の動作状態(動作フェーズ)を知ることができる。   Reference numeral 20-4 denotes a received message number income unit that checks the number of messages stored in the reception buffer 20-2 based on the output of the reception buffer check timing generation unit 20-3. The number of messages means the number of messages stored between the previous reception buffer check and the current reception buffer check. During command transmission (this maximum period is approximately the first period TPA plus the transmission time from the main board 10 to the sub-board), the number of messages is not zero. However, the number of the messages does not exceed the number of messages (6 in the example of FIG. 12) constituting the command. On the other hand, during command non-transmission (the maximum period is approximately the second period TPB plus the transmission time from the main board 10 to the sub board), the number of messages is 0. This point will be described in detail later. Therefore, it is possible to determine whether the main board 10 on the transmission side is the first period TPA or the second period TPB based on the number of messages. The operations of the main board 10 and the sub board 20 are independent of each other, and the sub board 20 cannot know what state the main board 10 is in. However, according to the embodiment of the present invention, Based on this, the operation state (operation phase) of the main board 10 can be known.

20−5は、受信バッファ202に電文が格納されているときに当該電文を読み出す受信電文読出部である。受信電文読出部20−5は、データ送信中を意味する電文の数が0でないときに受信バッファ202の電文を全て読みだす。   Reference numeral 20-5 denotes a received message reading unit that reads a message when the message is stored in the reception buffer 202. The received message reading unit 20-5 reads all messages in the reception buffer 202 when the number of messages indicating that data transmission is in progress is not zero.

20−6は、受信電文読出部20−5により読み出された電文を順番に格納する電文バッファである。   Reference numeral 20-6 denotes a message buffer that sequentially stores messages read by the received message reading unit 20-5.

20−7は、受信バッファ20−2に電文が格納されていないときに電文バッファ20−6に格納されている電文を順番に読み出し、メイン基板10からのコマンドとして出力するコマンド出力部である。コマンド出力部20−7は、データ送信完了を意味する電文の数が0であるときに電文バッファ20−6の電文を全て読みだす。   Reference numeral 20-7 denotes a command output unit that sequentially reads out the messages stored in the message buffer 20-6 and outputs them as commands from the main board 10 when no message is stored in the reception buffer 20-2. The command output unit 20-7 reads all messages in the message buffer 20-6 when the number of messages indicating completion of data transmission is zero.

20−8は、受信電文読出部20−5が受信バッファ20−2から読み出して電文バッファ20−6に格納した電文を計数する受信連続電文数カウンタである。   Reference numeral 20-8 denotes a reception continuous message number counter that counts the messages read by the reception message reading unit 20-5 from the reception buffer 20-2 and stored in the message buffer 20-6.

コマンド出力部20−7は、コマンドを出力するとき、受信連続電文数カウンタ20−8の値を調べ、当該値が予め定められた規定値(図12の例では電文の数が6でありこれが規定値となる)と一致しないときに電文エラーし、コマンド出力を行わない。   When outputting a command, the command output unit 20-7 checks the value of the received continuous message number counter 20-8, and the value is a predetermined value (in the example of FIG. 12, the number of messages is six). If it does not match the specified value), a message error occurs and the command is not output.

また、コマンド出力部20−7は、コマンド出力を行ったとき、電文エラーやチェックサムエラーなどによりコマンド出力を行わなかったときなどに、受信連続電文数カウンタ20−8を初期値(=0)に戻す。   The command output unit 20-7 sets the received continuous message counter 20-8 to an initial value (= 0) when a command is output, or when a command is not output due to a message error or a checksum error. Return to.

コマンド出力部20−7からエラーが出力されると、当該エラーは前述の異常記憶部EMに記憶される。コマンド出力部20−7は、通信異常記憶部DETに相当する。   When an error is output from the command output unit 20-7, the error is stored in the above-described abnormality storage unit EM. The command output unit 20-7 corresponds to the communication abnormality storage unit DET.

第1期間TPA、第2期間TPB、受信チェック間隔Tsについて説明を加える。   The first period TPA, the second period TPB, and the reception check interval Ts will be described.

第1期間TPAは、コマンドに含まれる全ての電文を送信するに要する時間と同じか又はこれよりも長い。例えば、ひとつの電文の送信時間をtTxとし、コマンドに含まれる電文の数をNとしたとき、第1期間TPA≧N×tTxである。こうすることで、第1期間TPAにおいてコマンドの送信を完結することができ、ひとつのコマンドの電文が間に第2期間TPBを挟んで送信されるといったことが生じない。   The first period TPA is equal to or longer than the time required to transmit all the messages included in the command. For example, when the transmission time of one message is tTx and the number of messages included in the command is N, the first period TPA ≧ N × tTx. By doing so, command transmission can be completed in the first period TPA, and a message of one command is not transmitted with the second period TPB in between.

第2期間TPBは、1つのコマンドがある第1期間TPAで送信され、他の1つのコマンドが第2期間TPBを挟んで次の第1期間TPAで送信されるといった場合に、サブ基板20でメイン基板10のコマンド非送信中である(電文の数=0である)ことを検知できる程度に長く設定される。第2期間TPBを第1期間TPAよりも十分長くとればその条件を満たすことができるが、反面、長くしすぎるとコマンド送信に使用できる時間が短くなり多くのコマンドを送信できないという問題がある。第2期間TPBは、受信チェック間隔Tsよりも長くなければならない(受信チェック間隔Tsよりも短くなると電文の数=0とはならなくなる)。第2期間TPBが受信チェック間隔Tsの2倍よりも長ければ(第2期間TPB>2×受信チェック間隔Ts)コマンド非送信中であることを検知できると考えられる。例えば、受信チェック間隔Tsを第2期間TPBの三分の一程度にする。   In the second period TPB, when one command is transmitted in a certain first period TPA and another one command is transmitted in the next first period TPA across the second period TPB, the sub-board 20 It is set long enough to detect that the main board 10 is not transmitting a command (the number of messages = 0). If the second period TPB is sufficiently longer than the first period TPA, the condition can be satisfied. On the other hand, if the second period TPB is set too long, there is a problem that the time available for command transmission is shortened and many commands cannot be transmitted. The second period TPB must be longer than the reception check interval Ts (if the time is shorter than the reception check interval Ts, the number of messages is not 0). If the second period TPB is longer than twice the reception check interval Ts (second period TPB> 2 × reception check interval Ts), it is considered that the command non-transmission can be detected. For example, the reception check interval Ts is set to about one third of the second period TPB.

なお、送信側の処理を簡単にするように、第1期間TPAと第2期間TPBを同じ長さとしてもよい。   Note that the first period TPA and the second period TPB may have the same length so as to simplify the processing on the transmission side.

図10はメイン基板10におけるコマンド送信処理フローチャートを示す。同図の処理はメイン基板10においてコマンドが生成されたときに開始される。   FIG. 10 shows a command transmission process flowchart in the main board 10. The process shown in FIG. 10 is started when a command is generated on the main board 10.

S10:コマンド書込部10−4がメイン基板10で生成されたコマンドを受ける。これによりS11以下の処理が実行される。 S10: The command writing unit 10-4 receives a command generated by the main board 10. Thereby, the processing from S11 is executed.

S11:コマンド書込部10−4は、送信バッファ10−1にコマンドを書き込む前に、送信バッファ10−1が空であるかどうか調べる。前述のように、送信可能な第1TPAはコマンドの全ての電文を送信するのに十分な時間に設定されているから、送信が正常に行われている限り新たなコマンドを書き込む際には送信バッファ10−1は空になる(送信バッファ10−1のオーバーフローを避けるために、コマンドの生成頻度は第1期間TPAと第2期間TPBの合計時間に対してせいぜい1個であり、第1期間TPAと第2期間TPBの期間において2個以上生成されないものとする)。 S11: The command writing unit 10-4 checks whether or not the transmission buffer 10-1 is empty before writing a command to the transmission buffer 10-1. As described above, since the first TPA that can be transmitted is set to a time sufficient to transmit all messages of the command, the transmission buffer is used when writing a new command as long as transmission is performed normally. 10-1 becomes empty (in order to avoid overflow of the transmission buffer 10-1, the frequency of command generation is at most one with respect to the total time of the first period TPA and the second period TPB, and the first period TPA And two or more are not generated in the period of the second period TPB).

しかし、何らかの原因で一部の電文が送信されず、送信バッファ10−1に残っていることも考えられる。そのままの状態でさらに送信バッファ10−1にコマンドの電文をスタックするとコマンドの送信がうまくいかず、コマンドが失われることになりかねない。本発明の実施の形態では第1期間TPAにおいてひとつのコマンドを送信するようにしているから、そこに異なるコマンドの電文が混じると電文エラー又はチェックサムエラー(図11及びその説明参照)となり、正常なコマンドが出力されない。送信バッファ10−1に残っていたコマンドのみならず、新たに格納したコマンドも失われることになる。そこで送信バッファ10−1をクリアすることで新たに格納したコマンドをサブ基板20へ正常に伝達できるようにする。   However, it is also conceivable that some electronic messages are not transmitted for some reason and remain in the transmission buffer 10-1. If a command message is further stacked in the transmission buffer 10-1 as it is, the command transmission may not be successful and the command may be lost. In the embodiment of the present invention, since one command is transmitted in the first period TPA, if a message of a different command is mixed there, a message error or a checksum error (see FIG. 11 and the description thereof) is generated and is normal. Commands are not output. Not only the command remaining in the transmission buffer 10-1, but also the newly stored command is lost. Accordingly, the newly stored command can be normally transmitted to the sub-board 20 by clearing the transmission buffer 10-1.

S12:送信バッファ10−1に前のコマンドの電文が残っていたとき(S11でNO)、コマンド書込部10−4は、送信バッファエラーと判定する。 S12: When a message of the previous command remains in the transmission buffer 10-1 (NO in S11), the command writing unit 10-4 determines that there is a transmission buffer error.

S13:コマンド書込部10−4は、送信バッファ10−1をクリアする。
同じく、送信バッファ10−1に前のコマンドの電文が残っていたとき(S11でNO)、送信バッファ10−1をクリアする。
S13: The command writing unit 10-4 clears the transmission buffer 10-1.
Similarly, when the previous command message remains in the transmission buffer 10-1 (NO in S11), the transmission buffer 10-1 is cleared.

S14:コマンド書込部10−4は、送信コマンドを送信バッファ10−1に格納する。
コマンドを、これを構成する電文ごと順番に送信バッファ10−1に格納する。コマンドの構成の一例を図12に示す。同図のコマンドは6つの電文(各1バイト)から構成される。同図の左側が先頭である。電文1〜電文4はコマンドの本文であり、後ろの2つはそれらのチェックサム(2バイト)である。図12の例では、送信バッファ10−1に、電文1、電文2、電文3、電文4、チェックサム(その1)、チェックサム(その2)の順番で格納される。先に説明したように、これら6つの電文は電文識別用のビットを備えておらず、その全てのビットをデータ格納に使用することができる。電文1〜電文4、チェックサムは単なる1バイトのデータであるからその内部構造の図示及び説明は省略する。
S14: The command writing unit 10-4 stores the transmission command in the transmission buffer 10-1.
The commands are stored in the transmission buffer 10-1 in order for each message constituting the command. An example of the command structure is shown in FIG. The command in the figure is composed of six messages (one byte each). The left side of the figure is the top. Telegram 1 to telegram 4 are command texts, and the last two are their checksums (2 bytes). In the example of FIG. 12, message 1, message 2, message 3, message 4, checksum (part 1), and checksum (part 2) are stored in order in transmission buffer 10-1. As described above, these six messages do not have a message identification bit, and all the bits can be used for data storage. Since the telegram 1 to telegram 4 and the checksum are simple 1-byte data, the illustration and description of the internal structure are omitted.

S15:送信部10−3は、送信タイミング発生部10−2の信号を監視し、送信可タイミングであるかどうか判定する。第1期間TPAになったらYESとなる。 S15: The transmission unit 10-3 monitors the signal of the transmission timing generation unit 10-2 and determines whether it is a transmission possible timing. If the first period TPA is reached, the answer is YES.

S16:送信可タイミングになったら、送信部10−3は送信バッファ10−1から電文を順番に読み出し、サブ基板20へ送信する。 S <b> 16: When the transmission ready timing is reached, the transmission unit 10-3 reads out the messages sequentially from the transmission buffer 10-1 and transmits them to the sub-board 20.

図11はサブ基板20におけるコマンド受信処理フローチャートを示す。同図の処理は、受信バッファチェックタイミング発生部20−3による受信バッファチェックタイミングで開始される。   FIG. 11 shows a command reception process flowchart in the sub-board 20. The process shown in FIG. 11 is started at the reception buffer check timing by the reception buffer check timing generation unit 20-3.

S20:受信電文数取得部20−4は、受信バッファチェックのタイミングであるかどうか判定する。YESのときにS21以下の処理を実行する。 S20: The received message number acquiring unit 20-4 determines whether it is the reception buffer check timing. When YES is determined, the processing from S21 onward is executed.

S21:受信電文数取得部20−4は、受信バッファ20−2にある電文の数(電文数)を取得する。取得した電文数を受信電文読出部20−5へ送る。 S21: The received message number acquisition unit 20-4 acquires the number of messages (number of messages) in the reception buffer 20-2. The acquired number of messages is sent to the received message reading unit 20-5.

S22:受信電文読出部20−5は、電文数に応じて処理を振り分ける。電文数が1以上であれば第1期間TPAに係る電文受信中であるとしてS23〜S27の処理を行う。電文数が0であれば第2期間TPBに係る電文受信休止中であるとしてS28〜S33の処理が行われる。 S22: The received message reading unit 20-5 distributes the process according to the number of messages. If the number of messages is 1 or more, the processing of S23 to S27 is performed assuming that the message related to the first period TPA is being received. If the number of messages is 0, it is determined that the message reception for the second period TPB is suspended, and the processes of S28 to S33 are performed.

なお、一定回数以上連続して電文数=0となったときにインターバルとしてS28〜S33の処理を行うようにしてもよい(例えばS28で「0」になったときにS28〜S33の処理を行う)。   It should be noted that the processing of S28 to S33 may be performed as an interval when the number of messages = 0 continuously for a certain number of times (for example, the processing of S28 to S33 is performed when “0” is obtained in S28). ).

S23:受信電文読出部20−5は、受信電文数取得部20−4からの出力に基づき取り出すべき電文数(取得数)を設定する。 S23: The received message reading unit 20-5 sets the number of messages to be extracted (acquired number) based on the output from the received message number acquiring unit 20-4.

S24:受信電文読出部20−5は、ひとつの電文を取り出し、それを電文バッファ20−6に保存する。 S24: The received message reading unit 20-5 takes out one message and stores it in the message buffer 20-6.

S25:受信電文読出部20−5はひとつの電文を取り出すごとに受信連続電文数カウンタ20−8を動作させ、受信連続電文数を加算する。 S25: The received message reading unit 20-5 operates the received continuous message number counter 20-8 every time one message is taken out, and adds the number of received continuous messages.

S26:受信電文読出部20−5は、取り出すべき電文数(取得数)をひとつ減算する。 S26: The received message reading unit 20-5 subtracts one message number (acquired number) to be extracted.

S27:受信電文読出部20−5は、受信バッファ20−2の全ての電文を読み出すまで上記S24〜S26を繰り返す。S27で電文数=0となったときは受信バッファ20−2が空になる。 S27: The received message reading unit 20-5 repeats the above S24 to S26 until all the messages in the reception buffer 20-2 are read. When the number of messages becomes 0 in S27, the reception buffer 20-2 becomes empty.

S28:コマンド出力部20−7は、受信連続電文数カウンタ20−8から受信連続電文数を受け、これに基づき処理を振り分ける。 S28: The command output unit 20-7 receives the number of received continuous messages from the received message number counter 20-8, and distributes the processing based on this.

受信連続電文数=0であれば、電文が送信されていない状態(インターバル)が繰り返されたとして図11の処理を抜ける。インターバルの連続は異常とはしない。   If the number of received continuous messages = 0, the process of FIG. 11 is exited because the state (interval) in which no messages are transmitted is repeated. Consecutive intervals are not abnormal.

受信連続電文数=6であれば、図12のコマンドの全ての電文を受信したことになるので、コマンドを出力するためにS29〜S31の処理を行う。   If the number of received continuous messages = 6, it means that all the messages of the command in FIG. 12 have been received, so the processes of S29 to S31 are performed to output the command.

受信連続電文数≠0かつ≠6であれば電文エラーとする(S32)。受信連続電文数が1以上で5以下のときは本来受信すべき電文の一部を受信できず、コマンドを正常に出力できないから電文エラーとする。また、受信連続電文数が7以上のときはノイズ等を誤って電文として受信したことを意味するからやはりコマンドを正常に出力できず、電文エラーとする。   If the number of consecutive received messages is not 0 and ≠ 6, a message error is determined (S32). When the number of received continuous messages is 1 or more and 5 or less, a part of the message that should be received cannot be received, and the command cannot be normally output, so a message error is assumed. Further, when the number of continuous messages received is 7 or more, it means that noise or the like has been received as a message in error, so that the command cannot be output normally and a message error is generated.

電文エラー(S32)になったとき、図7のS102で「異常」となり、当該エラーは前述の異常記憶部EMに記憶される(図7のS104)。例えば、異常基板=メイン基板、異常内容=電文数エラー、時刻=検知時刻、累積回数=前回回数+1のように記憶される。   When a message error (S32) occurs, “abnormal” is determined in S102 of FIG. 7, and the error is stored in the above-described abnormality storage unit EM (S104 of FIG. 7). For example, abnormal board = main board, abnormal content = message number error, time = detection time, cumulative number = previous number + 1.

S29:コマンド出力部20−7は、受信したチェックサムに基づき電文1〜電文4をチェックする。チェックサムに関する処理は公知であるのでその説明は省略する。 S29: The command output unit 20-7 checks messages 1 to 4 based on the received checksum. Since the processing relating to the checksum is known, its description is omitted.

S30:チェックサムによるチェックの結果が正常であれば、コマンド出力部20−7は受信したコマンド(電文1〜電文4)を出力する。 S30: If the check result by the checksum is normal, the command output unit 20-7 outputs the received command (message 1 to message 4).

S31:チェックサムによるチェックの結果が以上であれば、コマンド出力部20−7はチェックサムエラーとして受信したコマンドを出力しない。 S31: If the result of the checksum check is above, the command output unit 20-7 does not output the command received as a checksum error.

チェックサムエラー(S31)になったとき、図7のS102で「異常」となり、当該エラーは前述の異常記憶部EMに記憶される(図7のS104)。例えば、異常基板=メイン基板、異常内容=チェックサムエラー、時刻=検知時刻、累積回数=前回回数+1のように記憶される。   When a checksum error (S31) occurs, “abnormal” is determined in S102 of FIG. 7, and the error is stored in the above-described abnormality storage unit EM (S104 of FIG. 7). For example, abnormal board = main board, abnormality content = checksum error, time = detection time, cumulative number = previous number + 1.

S33:コマンド出力部20−7は、受信連続電文数カウンタ20−8をクリアする。この処理は、S30、S31、S32の後に行う。これにより次の第1期間TPAでコマンドを受信する準備が整う。 S33: The command output unit 20-7 clears the reception continuous message number counter 20-8. This process is performed after S30, S31, and S32. Thus, the preparation for receiving the command is completed in the next first period TPA.

次に、図13〜図16のタイミングチャートを参照して、発明の実施の形態に係る装置の動作について説明を加える。図13〜図16では、時刻tm1からtm2にかけての第1期間TPAにおいて電文1〜電文4、2つのチェックサム(これらを電文5と電文6に表現することがある)を送信している。それらのデータの流れを符号a1〜a6で示している。その後の時刻tm2からtm3が第2期間TPBでありデータ送信を中止している。受信バッファチェックタイミングは一定間隔Tsで繰り返されており、それらを符号ts1〜ts8で示している。第1期間TPAと第2期間TPBの組み合わせが繰り返される。   Next, the operation of the apparatus according to the embodiment of the invention will be described with reference to the timing charts of FIGS. In FIG. 13 to FIG. 16, telegram 1 to telegram 4 and two checksums (which may be expressed as telegram 5 and telegram 6) are transmitted in the first period TPA from time tm1 to tm2. These data flows are indicated by reference symbols a1 to a6. Subsequent times tm2 to tm3 are the second period TPB, and data transmission is stopped. The reception buffer check timing is repeated at a constant interval Ts, and these are indicated by symbols ts1 to ts8. The combination of the first period TPA and the second period TPB is repeated.

図13はコマンドを正常に受信した例を示す。   FIG. 13 shows an example in which the command is normally received.

時刻ts2においてはその直前に符号a1で電文1が伝送されてくるから受信バッファ20−2にある電文数は1となる(図11のS22で「1以上」)。電文1が受信バッファ20−2から取り出され、電文バッファ20−6に格納される(図11のS24)。そして、受信連続電文数=1となり(図11のS25)、処理を終了する。   At time ts2, message 1 is transmitted with code a1 immediately before that, so the number of messages in reception buffer 20-2 is 1 (“1 or more” in S22 of FIG. 11). The message 1 is extracted from the reception buffer 20-2 and stored in the message buffer 20-6 (S24 in FIG. 11). Then, the number of continuous received messages = 1 (S25 in FIG. 11), and the process is terminated.

時刻ts3においては同様に電文2と電文3を格納し、受信連続電文数=1+2=3となる。   Similarly, at time ts3, telegram 2 and telegram 3 are stored, and the number of consecutive received telegrams = 1 + 2 = 3.

時刻ts4においても同様に電文4と電文5(チェックサム)を格納し、受信連続電文数=3+2=5となる。   Similarly, at time ts4, telegram 4 and telegram 5 (check sum) are stored, and the number of consecutive received telegrams = 3 + 2 = 5.

時刻ts5においても同様に電文6(チェックサム)を格納し、受信連続電文数=3+1=6となる。   Similarly, at time ts5, telegram 6 (checksum) is stored, and the number of received continuous telegrams = 3 + 1 = 6.

時刻ts6においては、時刻ts5以降に電文を受けていないから受信バッファ20−2は空であり、電文数は0となる(図11のS22で「0」)。受信連続電文数は上述のように6であるから正常と判定され(図11のS28で「6」)、次にチェックサムを検査し、正常であれば電文1〜電文4をコマンドとして出力する(図11のS30)。そして受信連続電文数をクリアする(S33)。   At time ts6, since no message is received after time ts5, the reception buffer 20-2 is empty and the number of messages is 0 (“0” in S22 of FIG. 11). Since the number of received continuous messages is 6, as described above, it is determined to be normal ("6" in S28 in FIG. 11). Next, the checksum is checked. If normal, messages 1 to 4 are output as commands. (S30 in FIG. 11). Then, the number of received continuous messages is cleared (S33).

図14はノイズを電文と誤って受信した例を示す。   FIG. 14 shows an example in which noise is erroneously received as a message.

時刻ts2〜ts4の動作は図13の場合と同じである。   The operation from time ts2 to ts4 is the same as that in FIG.

時刻ts5においてはその直前に符号a6で電文6が伝送されてきたが、その後ノイズを電文と誤認して受信バッファ20−2に格納したので、受信バッファ20−2にある電文数は2となる(図11のS22で「1以上」)。電文6とノイズが受信バッファ20−2から取り出され、電文バッファ20−6に格納される(図11のS24)。そして、受信連続電文数=5+2=7となり(図11のS25)、処理を終了する。   At time ts5, the telegram 6 has been transmitted with the code a6 immediately before that, but since the noise was mistakenly recognized as a telegram and stored in the receive buffer 20-2, the number of telegrams in the receive buffer 20-2 is 2. (“1 or more” in S22 of FIG. 11). The message 6 and noise are extracted from the reception buffer 20-2 and stored in the message buffer 20-6 (S24 in FIG. 11). Then, the number of continuous received messages = 5 + 2 = 7 (S25 in FIG. 11), and the process is terminated.

時刻ts6においては、時刻ts5以降に電文を受けていないから受信バッファ20−2は空であり、電文数は0となる(図11のS22で「0」)。受信連続電文数は上述のように7であるから異常と判定され(図11のS28で「6以外又は0以外」)、電文エラーとなる(図11のS32)。そして受信連続電文数をクリアする(S33)。   At time ts6, since no message is received after time ts5, the reception buffer 20-2 is empty and the number of messages is 0 (“0” in S22 of FIG. 11). Since the number of received continuous messages is 7 as described above, it is determined as abnormal (“other than 6 or other than 0” in S28 of FIG. 11), and a message error occurs (S32 of FIG. 11). Then, the number of received continuous messages is cleared (S33).

図15はノイズを電文と誤って受信した例を示す。図15は、図14と異なり、コマンドを正常に受信した後のインターバルの期間においてノイズを受信している。図15ではコマンドは失われていない。   FIG. 15 shows an example in which noise is erroneously received as a message. FIG. 15 differs from FIG. 14 in that noise is received during the interval period after the command is normally received. In FIG. 15, the command is not lost.

時刻ts2においてはその直前に符号a1で電文1と電文2が伝送されてくるから受信バッファ20−2にある電文数は2となる(図11のS22で「1以上」)。電文1と電文2が受信バッファ20−2から取り出され、電文バッファ20−6に格納される(図11のS24)。そして、受信連続電文数=2となり(図11のS25)、処理を終了する。   At time ts2, telegram 1 and telegram 2 are transmitted immediately before with the code a1, so the number of telegrams in the reception buffer 20-2 is 2 ("1 or more" in S22 of FIG. 11). Telegram 1 and telegram 2 are extracted from the reception buffer 20-2 and stored in the telegram buffer 20-6 (S24 in FIG. 11). Then, the number of continuous received messages = 2 (S25 in FIG. 11), and the process is terminated.

時刻ts3においては同様に電文3と電文4を格納し、受信連続電文数=2+2=4となる。   Similarly, at time ts3, telegram 3 and telegram 4 are stored, and the number of received continuous telegrams = 2 + 2 = 4.

時刻ts4においても同様に電文5と電文6(チェックサム)を格納し、受信連続電文数=4+2=6となる。   Similarly, at time ts4, telegram 5 and telegram 6 (check sum) are stored, and the number of consecutive received telegrams = 4 + 2 = 6.

時刻ts5においては、時刻ts4以降に電文を受けていないから受信バッファ20−2は空であり、電文数は0となる(図11のS22で「0」)。受信連続電文数は上述のように6であるから正常と判定され(図11のS28で「6」)、次にチェックサムを検査し、正常であれば電文1〜電文4をコマンドとして出力する(図11のS30)。そして受信連続電文数をクリアする(S33)。   At time ts5, since no message is received after time ts4, the reception buffer 20-2 is empty and the number of messages is 0 (“0” in S22 of FIG. 11). Since the number of received continuous messages is 6, as described above, it is determined to be normal ("6" in S28 in FIG. 11). Next, the checksum is checked. If normal, messages 1 to 4 are output as commands. (S30 in FIG. 11). Then, the number of received continuous messages is cleared (S33).

時刻ts6においては、ts5とts6の間でノイズを電文と誤認して受信バッファ20−2に格納した。受信バッファ20−2にある電文数は1となる(図11のS22で「1以上」)。そして、受信連続電文数=1となる(図11のS25)。   At time ts6, noise was mistaken as a message between ts5 and ts6 and stored in the reception buffer 20-2. The number of messages in the reception buffer 20-2 is 1 (“1 or more” in S22 of FIG. 11). Then, the number of continuous received messages = 1 (S25 in FIG. 11).

時刻ts6においては、時刻ts6以降に電文を受けていないから受信バッファ20−2は空であり、電文数は0となる(図11のS22で「0」)。受信連続電文数は上述のように1であるから異常と判定され(図11のS28で「6以外又は0以外」)、電文エラーとなる(図11のS32)。そして受信連続電文数をクリアする(S33)。   At time ts6, since no message is received after time ts6, the reception buffer 20-2 is empty and the number of messages is 0 (“0” in S22 of FIG. 11). Since the number of continuous messages received is 1 as described above, it is determined as abnormal (“other than 6 or other than 0” in S28 in FIG. 11), and a message error occurs (S32 in FIG. 11). Then, the number of received continuous messages is cleared (S33).

図16はノイズなどにより一部の電文を受信できなかった例を示す。図16では符号a4の電文4を受信できなかった。   FIG. 16 shows an example in which some telegrams could not be received due to noise or the like. In FIG. 16, the message 4 with the code a4 could not be received.

時刻ts2においてはその直前に符号a1で電文1と電文2が伝送されてくるから受信バッファ20−2にある電文数は2となる(図11のS22で「1以上」)。電文1と電文2が受信バッファ20−2から取り出され、電文バッファ20−6に格納される(図11のS24)。そして、受信連続電文数=2となり(図11のS25)、処理を終了する。   At time ts2, telegram 1 and telegram 2 are transmitted immediately before with the code a1, so the number of telegrams in the reception buffer 20-2 is 2 ("1 or more" in S22 of FIG. 11). Telegram 1 and telegram 2 are extracted from the reception buffer 20-2 and stored in the telegram buffer 20-6 (S24 in FIG. 11). Then, the number of continuous received messages = 2 (S25 in FIG. 11), and the process is terminated.

時刻ts3においては電文3を受信したものの、電文4は受信できなかった。受信連続電文数=2+1=3となる。   At time ts3, message 3 was received, but message 4 could not be received. Received continuous message count = 2 + 1 = 3.

時刻ts4においては電文5と電文6(チェックサム)を受信し、受信連続電文数=3+2=5となる。   At time ts4, telegram 5 and telegram 6 (checksum) are received, and the number of consecutive received telegrams = 3 + 2 = 5.

時刻ts5においては、時刻ts4以降に電文を受けていないから受信バッファ20−2は空であり、電文数は0となる(図11のS22で「0」)。受信連続電文数は上述のように5であるから異常と判定され(図11のS28で「6以外又は0以外」)、電文エラーとなる(図11のS32)。そして受信連続電文数をクリアする(S33)。   At time ts5, since no message is received after time ts4, the reception buffer 20-2 is empty and the number of messages is 0 (“0” in S22 of FIG. 11). Since the number of received continuous messages is 5, as described above, it is determined as abnormal (“other than 6 or other than 0” in S28 of FIG. 11), and a message error occurs (S32 of FIG. 11). Then, the number of received continuous messages is cleared (S33).

発明の実施の形態2によれば、メイン基板とサブ基板の間の通信異常を検知するとともにその情報を保存することができる。ノイズ等による電文の誤受信があったときでもこれを検出することができ、不適切なコマンドを解釈実行することもない。   According to the second embodiment of the present invention, it is possible to detect a communication abnormality between the main board and the sub board and store the information. Even when a message is erroneously received due to noise or the like, it can be detected, and an inappropriate command is not interpreted and executed.

また、コマンドを構成する電文にその識別のための情報(ビット)を設ける必要がなく、電文の全てのビットを送るべき情報に割り当てることができるので、より多くの情報を効率よく伝送することができる。すなわち、コマンドのまとまりをコマンド間のインターバルにより認識することで、電文に電文識別情報を含める必要がなくなり、8ビットの電文ひとつで0〜255の全ての表現が可能となった。これによりソフトウエア設計の効率向上や処理負荷軽減が期待できる。なお、電文は8ビットに限定されないのは言うまでもない。   Further, since it is not necessary to provide information (bits) for identifying the message constituting the command and all the bits of the message can be assigned to the information to be sent, more information can be efficiently transmitted. it can. In other words, by recognizing a group of commands based on the interval between commands, it is no longer necessary to include message identification information in a message, and all 8-bit messages can be expressed in one 8-bit message. This can improve the efficiency of software design and reduce the processing load. Needless to say, the message is not limited to 8 bits.

発明の実施の形態3.
通信異常を記録することに加えて、通信異常が生じたときに周辺基板に対する制御を中止するようにしてもよい。例えば、可動役物(可動体)を動作させているときにACKが返ってこない場合において、コマンドが届いていないのかそれとも応答が返ってこないだけなのか判断できない。仮に後者の場合、可動体が動作を続けることになり、最悪は可動体が限界を超えて動いて破損し、可動体を駆動するモータが過負荷になり焼損することもあり得る。そこで、特に可動体について通信異常が生じたときは制御を打ち切り、停止コマンドを送ることでトラブルを防止することが好ましい(応答が返ってこないだけであれば停止コマンドで可動体を停止させることができ、コマンドが届いていないのであれば可動体はそもそも動作しない)。発明の実施の形態3はそのような遊技機に関する。
Embodiment 3 of the Invention
In addition to recording the communication abnormality, the control on the peripheral board may be stopped when the communication abnormality occurs. For example, when an ACK is not returned when a movable accessory (movable body) is operated, it cannot be determined whether a command has not arrived or whether a response has not been returned. In the latter case, the movable body continues to operate. In the worst case, the movable body moves beyond the limit and is damaged, and the motor that drives the movable body may be overloaded and burned out. Therefore, it is preferable to stop the control and send a stop command to prevent trouble, especially when a communication error occurs in the movable body (If the response is not returned, the movable body can be stopped with the stop command. Yes, if the command has not arrived, the movable body will not work in the first place). Embodiment 3 of the invention relates to such a gaming machine.

図17は前扉を閉めた状態を示すスロットマシンの正面図を示す。図1とは、可動体50を追加で備える点を除き同じである。   FIG. 17 shows a front view of the slot machine with the front door closed. This is the same as FIG. 1 except that a movable body 50 is additionally provided.

液晶表示装置LCDの位置には可動体50が設けられている。可動体50は2つのシャッター(可動体要素)51L及び51Rを備える。2つのシャッター51L及び51Rは演出に従い左右に動き、液晶表示装置LCDを隠す。同図では、2つのシャッター51L及び51Rがそれぞれ左右に一杯に開き、液晶表示装置LCDが露出している(遊技者が画面をみることができる)状態を示している。   A movable body 50 is provided at the position of the liquid crystal display device LCD. The movable body 50 includes two shutters (movable body elements) 51L and 51R. The two shutters 51L and 51R move to the left and right according to the effect, and hide the liquid crystal display device LCD. In the figure, the two shutters 51L and 51R are fully opened to the left and right, and the liquid crystal display device LCD is exposed (the player can see the screen).

なお、図17の可動体50は一例であり、他の形態のものもある。例えば、液晶表示装置LCDがゲーム表示部131の右側に設けられているときは可動体50も同じ位置に設けられる。可動体50のシャッター51Lと51Rで隠されるものが、LEDや電球などの電飾である場合もある。シャッターの数が1枚であることもある。   In addition, the movable body 50 of FIG. 17 is an example, and there are other forms. For example, when the liquid crystal display device LCD is provided on the right side of the game display unit 131, the movable body 50 is also provided at the same position. What is hidden by the shutters 51L and 51R of the movable body 50 may be electrical decorations such as LEDs and light bulbs. The number of shutters may be one.

図18は発明の実施の形態3に係るスロットマシン100の機能ブロック図を示す。図3とは、可動体50及び可動体制御部60を追加で備える点を除き同じである。   FIG. 18 shows a functional block diagram of the slot machine 100 according to the third embodiment of the invention. FIG. 3 is the same as FIG. 3 except that a movable body 50 and a movable body control unit 60 are additionally provided.

サブ基板20には液晶表示装置の制御用の液晶制御基板200、スピーカ基板201、LED基板202などの周辺基板(ローカル基板)が接続されている。さらに、可動体50を制御する可動体制御部60が接続されている。   A peripheral substrate (local substrate) such as a liquid crystal control substrate 200 for controlling the liquid crystal display device, a speaker substrate 201, and an LED substrate 202 is connected to the sub substrate 20. Furthermore, the movable body control part 60 which controls the movable body 50 is connected.

図19は、発明の実施の形態に係る可動体50の概略図である。同図(a)は上面図、同図(b)は正面図、同図(c)はB−B矢視断面図、同図(d)はA−A矢視断面図である。なお、同図ではステッピングモータ54を含む駆動部と、インデックス56及びインデックスセンサ57は右側のシャッター51Rにのみ示されているが、同じものが左側のシャッター51Lについても設けられている(左側のものについての図示は省略されている)。   FIG. 19 is a schematic view of the movable body 50 according to the embodiment of the invention. 4A is a top view, FIG. 2B is a front view, FIG. 4C is a cross-sectional view taken along the line BB, and FIG. 4D is a cross-sectional view taken along the line A-A. In the figure, the drive unit including the stepping motor 54, the index 56, and the index sensor 57 are shown only for the right shutter 51R, but the same is provided for the left shutter 51L (the left one). Is not shown).

可動体50は、左側のシャッター51L及び右側のシャッター51Rと、シャッター51L及び51Rの上端及び下端をそれぞれ摺動自在に保持する上側のレール52U及び下側のレール52Lと、可動体50の内側に下側のレール52Lと平行に設けられたラック53aと、これにかみ合うピニオン53bと、ピニオン53bがその回転軸に直接あるいは図示しない減速歯車機構を介して取り付けられたステッピングモータ54と、右側のシャッター51Rの内側に取り付けられたブラケット55(腕金・張り出し金具であるブラケット55はステッピングモータ54の取り付け台座でもある)と、右側のシャッター51Rの内側に取り付けられたインデックス56と、インデックス56を検知するインデックスセンサ57とを備える。同図では、ピニオン53b〜インデックス56を右側のシャッター51Rについて示しているが、左側のシャッター51Lについても同様の構造であり、その説明は省略する。   The movable body 50 includes a left shutter 51L and a right shutter 51R, an upper rail 52U and a lower rail 52L that slidably hold upper and lower ends of the shutters 51L and 51R, and an inner side of the movable body 50. A rack 53a provided in parallel with the lower rail 52L, a pinion 53b meshing with the rack 53a, a stepping motor 54 with the pinion 53b attached to its rotating shaft directly or via a reduction gear mechanism (not shown), and a right shutter The bracket 55 attached to the inside of the 51R (the bracket 55 which is an arm bracket / extrusion bracket is also an attachment base of the stepping motor 54), the index 56 attached to the inside of the right shutter 51R, and the index 56 are detected. And an index sensor 57. In the drawing, the pinion 53b to the index 56 are shown for the right shutter 51R, but the left shutter 51L has the same structure, and the description thereof is omitted.

同図(b)は、シャッター51L及び51Rをそれぞれ両側へ一杯に開いた状態をしめしており、同図の例では当該状態においてインデックスセンサ57はインデックス56を検知する。インデックスセンサ57は、例えばフォトインタラプタのような光学式あるいはマイクロスイッチのような接触式などのセンサである。シャッター51L及び51Rの移動可能な範囲は同じであり、可動体50の中央(詳しくは、シャッター51L及び51Rをそれぞれ両側へ一杯に開いた状態におけるシャッター51L及び51Rの端間の中点)である中間点までしか移動できない。同図(b)の0、50、100の数字は移動範囲を示す。100は中間点に相当する。シャッター51Lは左側の0から中央の100まで移動可能であり、シャッター51Rは右側の0から中央の100まで移動可能である。そして、インデックスセンサ57は、シャッター51L、51Rが「0」の位置に来たことを検知するものである。すなわち、図20(a)に示すように、シャッター51L、51Rが一杯に開いたとき(下限に達したとき)にその端が「0」の位置にある。2つのシャッター51L及び51Rの端がそれぞれ「0」の位置にあると、それらがそれぞれ左右に一杯に開き、液晶表示装置LCDが露出する(遊技者が画面をみることができる)。図20(b)に示すように、シャッター51L、51Rが完全に閉じたとき(上限に達したとき)にその端が「100」の位置にある。2つのシャッター51L及び51Rの端がそれぞれ「100」の位置に移動しそれらが完全に閉じると、液晶表示装置LCDは全く見えなくなる。   FIG. 5B shows a state in which the shutters 51L and 51R are fully opened on both sides, and in the example of the figure, the index sensor 57 detects the index 56 in this state. The index sensor 57 is an optical sensor such as a photo interrupter or a contact sensor such as a microswitch. The movable range of the shutters 51L and 51R is the same, and is the center of the movable body 50 (specifically, the midpoint between the ends of the shutters 51L and 51R in a state where the shutters 51L and 51R are fully opened on both sides, respectively). Can move only to the middle point. The numbers 0, 50, and 100 in FIG. 100 corresponds to an intermediate point. The shutter 51L can move from 0 on the left side to 100 in the center, and the shutter 51R can move from 0 on the right side to 100 in the center. The index sensor 57 detects that the shutters 51L and 51R have come to the “0” position. That is, as shown in FIG. 20A, when the shutters 51L and 51R are fully opened (when the lower limit is reached), the end thereof is at the position “0”. When the ends of the two shutters 51L and 51R are at the position “0”, they are fully opened to the left and right, and the liquid crystal display device LCD is exposed (the player can view the screen). As shown in FIG. 20B, when the shutters 51L and 51R are completely closed (when the upper limit is reached), the end is at the position “100”. When the ends of the two shutters 51L and 51R are moved to the position "100" and are completely closed, the liquid crystal display device LCD is completely invisible.

ラック53aとピニオン53bは、回転力を直線の動きに変換する機構である。ピニオン53bは小口径の円形歯車であり、ラック53aは平板状の棒に歯切りをした(歯がつけられた)ものである。ステッピングモータ54によりピニオン53bに回転力を加えると、シャッター51L,51Rがラック53a上を水平方向に動く。図19によれば、ラック53aは可動体50のフレームに固定され、ステッピングモータ54はブラケット55によりシャッター51L,51Rに取り付けられているから、シャッター51L,51Rのほうが動く。   The rack 53a and the pinion 53b are mechanisms that convert the rotational force into a linear motion. The pinion 53b is a small-diameter circular gear, and the rack 53a is formed by cutting a tooth on a flat bar (toothed). When a rotational force is applied to the pinion 53b by the stepping motor 54, the shutters 51L and 51R move horizontally on the rack 53a. According to FIG. 19, since the rack 53a is fixed to the frame of the movable body 50 and the stepping motor 54 is attached to the shutters 51L and 51R by the bracket 55, the shutters 51L and 51R move.

ステッピングモータは、回転子(ロータ)として歯車状の鉄心あるいは永久磁石を備え、固定子(ステータ)として複数の巻線(コイル)を備え、電流を流す巻線を切り替えることによって回転動作させるものである。すなわち、固定子の巻線に電流を流して磁力を発生させ、回転子を引きつけることで回転するものである。回転軸を指定された角度で停止させることが可能なことから、スロットマシンのリールの回転駆動に使用されている。複数の巻線がひとつの相を構成する。相の数として、例えば、2つ(二相)、4つ(4相)、5つ(5相)のものもある。ステッピングモータのコイルに所定の順番で電流を流すことでモータの軸は回転し、逆の順番で電流を流すとモータの軸は逆回転する。   A stepping motor includes a gear-shaped iron core or permanent magnet as a rotor (rotor), a plurality of windings (coils) as a stator (stator), and is rotated by switching windings through which current flows. is there. That is, a current is passed through the windings of the stator to generate a magnetic force, and the rotor is rotated by attracting the rotor. Since the rotation axis can be stopped at a specified angle, it is used to drive the rotation of the reel of the slot machine. A plurality of windings constitute one phase. As the number of phases, for example, there are two (two phases), four (four phases), and five (five phases). The motor shaft rotates by passing a current through the coil of the stepping motor in a predetermined order, and the motor shaft rotates in the reverse direction when a current is passed in the reverse order.

図19及び図20に示した可動体はあくまで一例である。また、上記のインデックス56とインデックスセンサ57の位置関係及び可動体51L,51Rの位置の定義はあくまで一例である。例えば、可動体の移動範囲が−50から100までであり、インデックスセンサが−20,0,+20などの位置を検知するものであってもよい。ここで、マイナスの値は、可動体51L,51Rの0の位置からさらに外側(マイナス側)に動くことを意味する。例えば、−50は、図19(b)の0の位置から、0と50の間に相当する距離を外側に(100の位置とは反対側に)動いた位置になる。   The movable body shown in FIGS. 19 and 20 is merely an example. The definition of the positional relationship between the index 56 and the index sensor 57 and the positions of the movable bodies 51L and 51R is merely an example. For example, the moving range of the movable body may be from −50 to 100, and the index sensor may detect a position such as −20, 0, +20. Here, a negative value means that the movable bodies 51L and 51R move further outward (minus side) from the 0 position. For example, −50 is a position moved from the position of 0 in FIG. 19B to the outside by a distance corresponding to the distance between 0 and 50 (opposite to the position of 100).

上記例では、可動体51L,51Rの位置をインデックス56とインデックスセンサ57により検出していたが、他の位置検出手段(センサ)を使用するようにしてもよい。例えば、インデックス56とインデックスセンサ57に代えて磁石とリードスイッチの組み合わせを用いることができる。あるいは、スライド抵抗のようなポテンショメーターを、その作用部が可動体51L,51Rの動きに連動するように設ければ、当該ポテンションメーターの抵抗値(あるいは電圧値)に基づき可動体51L,51Rの位置を直接知ることができる(可動体が特定の位置にあることだけではなく、可動体がどの位置にあるかを知ることができる)。   In the above example, the positions of the movable bodies 51L and 51R are detected by the index 56 and the index sensor 57, but other position detection means (sensors) may be used. For example, instead of the index 56 and the index sensor 57, a combination of a magnet and a reed switch can be used. Alternatively, if a potentiometer such as a slide resistance is provided so that its action part is interlocked with the movement of the movable bodies 51L and 51R, the movable bodies 51L and 51R are controlled based on the resistance value (or voltage value) of the potentiometer. The position can be known directly (not only that the movable body is at a specific position, but also where the movable body is located).

可動体の制御について簡単に説明する。
演出の要請に応じて可動体をどのように動かすか(例えば、シャッター51R,51Lを全開する、あるいは全閉する、特定の位置まで動かしてそこで止める、開閉を繰り返すなど)が決定される。これを受けて、ステッピングモータ54の移動ステップ数(与えるパルス数)、回転方向、回転速度(パルスの周波数)、などの情報(動作情報)を登録する。動作情報とは、可動体の動きを指示するための情報である。例えば、シャッター51R,51Lを特定の位置まで動かしてそこで止める場合は、現在位置と目標位置の差に基づき移動ステップ数を決定し、現在位置と目標位置の位置関係に基づき回転方向を設定し(前記差が小さくなるように回転方向を設定する)、素早い演出であればパルス周波数を高い周波数fHとし、ゆっくりとした演出であればそれを低い周波数fLとする(fH>fL)。
The control of the movable body will be briefly described.
It is determined how to move the movable body in response to a request for production (for example, fully opening or closing the shutters 51R and 51L, moving to a specific position, stopping there, and repeating opening and closing). In response to this, information (operation information) such as the number of moving steps of the stepping motor 54 (number of pulses to be given), the rotation direction, and the rotation speed (pulse frequency) is registered. The operation information is information for instructing the movement of the movable body. For example, when the shutters 51R and 51L are moved to a specific position and stopped there, the number of movement steps is determined based on the difference between the current position and the target position, and the rotation direction is set based on the positional relationship between the current position and the target position ( The rotation direction is set so that the difference becomes small.) For a fast production, the pulse frequency is set to a high frequency fH, and for a slow production, it is set to a low frequency fL (fH> fL).

周辺基板である可動体制御部60へ励磁データを送るため、及び、可動体制御部60からインデックスセンサ57のデータを受けるための設定を行ために、例えば、I/Oの特定のレジスタに励磁データとともに、可動体制御部60に対して取得したインデックスセンサ57のデータを送るように命ずるコマンドを書き込む。ここで設定されたデータは所定のタイミングで(例えば、通信用のIC(I/O)のレジスタに送受信データ及び相手先のアドレスが設定されていて、当該ICに対してデータ送受信の割り込みがかけられたとき)、指定された相手である可動体制御部60へ送られる。可動体制御部60は、受けた励磁データに基づきステッピングモータ54の所定の相に電流を流し、他の相の電流をオフにする。ステッピングモータ54を停止する際には、全ての相に電流を流し(全相励磁)、停止後に全ての相の電流をオフにする。他に、特定の相に一定時間持続して電流を流して停止させるというやり方もある。   In order to send excitation data to the movable body control unit 60, which is a peripheral board, and to receive data from the index sensor 57 from the movable body control unit 60, for example, excitation is performed on a specific register of the I / O. Along with the data, a command for instructing the movable body control unit 60 to send the acquired data of the index sensor 57 is written. The data set here is transmitted at a predetermined timing (for example, the transmission / reception data and the address of the other party are set in the register of the communication IC (I / O), and the data transmission / reception interrupt is applied to the IC. When it is received, it is sent to the movable body control unit 60 which is the designated partner. The movable body control unit 60 causes a current to flow through a predetermined phase of the stepping motor 54 based on the received excitation data, and turns off the currents of the other phases. When the stepping motor 54 is stopped, a current is supplied to all phases (all-phase excitation), and the currents of all phases are turned off after the stop. In addition, there is also a method in which a specific phase lasts for a certain period of time and is stopped by applying a current.

前記コマンドに従って、可動体制御部60はサブ基板20へインデックスセンサ57のデータ(位置情報)を送るが、それは励磁データ受信処理の後である。サブ基板20と周辺基板の間では所定のプロトコルでデータ送受信が行われており、データの形式も予め定められている。このため、ステッピングモータ54の励磁命令(例えば、第1相はオン、第2相はオフといった命令)をそのまま送ることはできず、通信に適する形式の励磁データにする必要がある。また、励磁データを受けた可動体制御部60では、当該励磁データを、ステッピングモータ54を直接駆動する命令に変換する必要がある(例えば、第1相の端子A,Bの間に電圧を印加し、第2相の端子C,Dの電圧をゼロ(オフ)にする)。同様に、インデックスセンサ57の信号についても、そのオンオフ信号(H/L信号)を所定の形式のデータに変換し、サブ基板20へ送る。サブ基板20は、受けたデータをインデックスセンサ57のオンオフ信号(H/L信号)に対応するデータ(0,1)に変換する。インデックスセンサ57のデータ(センサの位置情報)に基づきインデックスセンサの値(位置情報)を更新する。   In accordance with the command, the movable body control unit 60 sends the data (position information) of the index sensor 57 to the sub-board 20, which is after the excitation data reception process. Data transmission / reception is performed between the sub-board 20 and the peripheral board using a predetermined protocol, and the data format is also predetermined. For this reason, the excitation command of the stepping motor 54 (for example, the command that the first phase is on and the second phase is off) cannot be sent as it is, and it is necessary to make the excitation data in a format suitable for communication. In addition, the movable body control unit 60 that has received the excitation data needs to convert the excitation data into a command for directly driving the stepping motor 54 (for example, applying a voltage between the terminals A and B of the first phase). Then, the voltages of the terminals C and D of the second phase are set to zero (off)). Similarly, with respect to the signal of the index sensor 57, the on / off signal (H / L signal) is converted into data of a predetermined format and sent to the sub-board 20. The sub board 20 converts the received data into data (0, 1) corresponding to the on / off signal (H / L signal) of the index sensor 57. The index sensor value (position information) is updated based on the index sensor 57 data (sensor position information).

図21のフローチャートを参照して、発明の実施の形態3に係る遊技機の通信異常検知処理について説明を加える。   With reference to the flowchart of FIG. 21, the communication abnormality detection process of the gaming machine according to the third embodiment of the invention will be described.

サブ基板が可動体制御部60と通信を開始しようとするとき、図7の処理が開始する。   When the sub-board tries to start communication with the movable body control unit 60, the process of FIG. 7 starts.

S100:サブ基板20の処理部が出力データを構築する。
例えば、可動体制御部60へ励磁データを送るためにI/Oの特定のレジスタに励磁データを書き込むとともに、可動体制御部60からインデックスセンサ57のデータを受けるために、インデックスセンサ57のデータを送るように命ずるコマンドを書き込む。
S100: The processing unit of the sub-board 20 constructs output data.
For example, in order to send excitation data to the movable body control unit 60, the excitation data is written in a specific register of I / O, and the index sensor 57 data is received from the movable body control unit 60 in order to receive the data of the index sensor 57. Write a command that tells you to send it.

S101:サブ基板20の処理部が当該出力データの出力先である制御対象デバイスを選択する。ここでは、可動体制御部60を選択する。 S101: The processing unit of the sub-board 20 selects a control target device that is an output destination of the output data. Here, the movable body control unit 60 is selected.

S103:サブ基板20は可動体制御部60と通信を開始する。
上記コマンドを送信するとともに、可動体制御部60からのインデックスセンサ57のデータを待つ。
S103: The sub-board 20 starts communication with the movable body control unit 60.
While transmitting the above command, it waits for data of the index sensor 57 from the movable body control unit 60.

S102:通信異常検知部DETが通信路BUSの状態を監視する。正常であればS103を行い、異常であればS104とS105を行う。 S102: The communication abnormality detection unit DET monitors the state of the communication path BUS. If normal, S103 is performed, and if abnormal, S104 and S105 are performed.

通信異常検知部DETが異常と判定するのは前述した(1)乃至(3)のような場合であるが、加えて、発明の実施の形態3では、予め定められた時間内においてインデックスセンサ57のデータ(センサの位置情報)に基づき位置情報が更新されない(タイムアウトエラー)ときにも異常と判定する。発明の実施の形態3ではもっぱら当該ケースについて説明を加える。   The communication abnormality detection unit DET determines that there is an abnormality in the cases (1) to (3) described above. In addition, in the third embodiment of the present invention, the index sensor 57 is within a predetermined time. Even if the position information is not updated based on the data (sensor position information) (timeout error), it is determined that there is an abnormality. In the third embodiment of the present invention, only the case will be described.

当該ケースは、前述の「(2)周辺基板が応答していない」に概ね相当するが位置情報が更新されないことは、モータ54が動作しているのもかかわらずシャッター51が動いていない(モータ54過負荷)、インデックスセンサ57が故障している(シャッター51のオーバーランの可能性)というような不具合を含む。このような不具合が発生したときは異常と判定するのみならず、装置の故障を避けるために制御を中止することが望ましい。   The case generally corresponds to the above-mentioned “(2) The peripheral board is not responding”, but the fact that the position information is not updated is that the shutter 51 is not moving although the motor 54 is operating (the motor 51 54 overload), and the index sensor 57 is out of order (possibility of overrun of the shutter 51). When such a failure occurs, it is desirable not only to determine that there is an abnormality, but also to stop the control in order to avoid failure of the device.

S104:異常であれば、通信異常検知部DETは検知した異常に関する情報を異常記憶部EMに記憶する。 S104: If abnormal, the communication abnormality detection unit DET stores information regarding the detected abnormality in the abnormality storage unit EM.

S105b:制御を中止する。ここでは、単にサブ基板20で制御処理を中止するのみならず、可動体制御部60に対してモータ54の駆動を止めるように指令する。すなわち、I/Oの特定のレジスタに励磁中止を指令するデータを書き込む。 S105b: The control is stopped. Here, the control process is not only stopped at the sub-board 20, but the movable body controller 60 is instructed to stop driving the motor 54. That is, data for instructing excitation stop is written in a specific register of I / O.

S106:サブ基板20は通信を終了する。 S106: The sub-board 20 ends the communication.

発明の実施の形態3によれば、発明の実施の形態1と同様の効果を奏するとともに、通信異常のときに制御を中止するので、演出用デバイスや周辺機器の損傷などのトラブルを防止することができる。   According to the third embodiment of the invention, the same effects as those of the first embodiment of the invention can be obtained, and the control is stopped when communication is abnormal, so that troubles such as damage to the staging device and peripheral devices can be prevented. Can do.

なお、以上の説明では遊技機としてスロットマシンを例に挙げたが、本発明の実施の形態はパチンコ機のようなほかの遊技機にも適用することができる。   In the above description, a slot machine is taken as an example of a gaming machine, but the embodiment of the present invention can also be applied to other gaming machines such as pachinko machines.

本発明は、以上の実施の形態に限定されることなく、特許請求の範囲に記載された発明の範囲内で、種々の変更が可能であり、それらも本発明の範囲内に包含されるものであることは言うまでもない。   The present invention is not limited to the above embodiments, and various modifications can be made within the scope of the invention described in the claims, and these are also included in the scope of the present invention. Needless to say.

10 メイン基板
10−1 送信バッファ
10−2 送信タイミング発生部
10−3 送信部
10−4 コマンド書込部
20 サブ基板
20−1 受信部
20−2 受信バッファ
20−3 受信バッファチェックタイミング発生部
20−4 受信電文数取得部
20−5 受信電文読出部
20−6 電文バッファ
20−7 コマンド出力部
20−8 受信連続電文数カウンタ
50 可動体(デバイス)
51L,51R 可動体のシャッター(可動要素)
54 ステッピングモータ(駆動部)
56 インデックス
57 インデックスセンサ(センサ)
60 可動体制御部(周辺基板)
200 液晶制御基板(周辺基板)
201 スピーカ基板(周辺基板)
202 LED基板(周辺基板)
DESCRIPTION OF SYMBOLS 10 Main board | substrate 10-1 Transmission buffer 10-2 Transmission timing generation part 10-3 Transmission part 10-4 Command writing part 20 Sub board | substrate 20-1 Reception part 20-2 Reception buffer 20-3 Reception buffer check timing generation part 20 -4 Received message number acquisition unit 20-5 Received message read unit 20-6 Message buffer 20-7 Command output unit 20-8 Received continuous message number counter 50 Movable body (device)
51L, 51R Movable shutter (movable element)
54 Stepping motor (drive unit)
56 Index 57 Index sensor (sensor)
60 Movable body controller (peripheral board)
200 LCD control board (peripheral board)
201 Speaker board (peripheral board)
202 LED board (peripheral board)

Claims (3)

内部抽選処理を含む遊技に係る制御を実行するメイン基板と、
前記メイン基板からコマンドを受けて所定の演出に関する処理を実行するサブ基板と、
前記演出を行うためのデバイスと、
前記サブ基板からのコマンドに基づき前記デバイスを制御する周辺基板と、
前記サブ基板と前記周辺基板の間の通信異常又は前記メイン基板と前記サブ基板の間の通信異常の少なくとも一方を記憶する異常記憶部とを備え、
前記コマンドは複数の電文を含み、
前記メイン基板は、
複数の前記電文を送信することが許されている第1期間と複数の前記電文の送信が許されていない第2期間とが交互に発生し、
前記コマンドの複数の前記電文を格納している送信バッファと、
前記送信バッファから複数の前記電文を読み出し、前記第1期間において前記電文を順番に送信する送信部と、を備え、
前記サブ基板は、
前記送信部からの複数の前記電文を受信する受信部と、
受信した複数の前記電文を格納する受信バッファと、
前記受信バッファから読み出された前記電文を格納する電文バッファと、を備え、
予め定められた時間間隔(以下「受信チェック間隔」とする)で前記受信バッファに格納されている前記電文の数を計数してチェックし、
前記チェックによる前記電文の数が1以上であるとき、前記受信バッファから前記電文を読み出して前記電文バッファに保存し、
前記チェックによる前記電文の数が0であるとき、前記電文バッファに格納されている複数の前記電文を前記メイン基板からの前記コマンドとして出力し、
前記チェックによる前記電文の数が0であるとき、前記電文の計数値を調べ、当該計数値が予め定められた規定値と一致しないときに通信異常と判定し、当該通信異常を前記異常記憶部に記憶し、
前記受信チェック間隔は、前記メイン基板の前記送信部が前記電文を送信しているときは、前記チェックによる前記電文の数が1以上となるように定められ、
前記第2期間は、前記受信チェック間隔の2倍よりも長く、前記チェックによる前記電文の数が0となることがあるように定められている、ことを特徴とする遊技機。
A main board that executes control related to games including internal lottery processing;
A sub board that receives a command from the main board and executes a process related to a predetermined effect;
A device for performing the production;
A peripheral board for controlling the device based on a command from the sub-board;
An abnormality storage unit that stores at least one of a communication abnormality between the sub-board and the peripheral board or a communication abnormality between the main board and the sub-board,
The command includes a plurality of messages,
The main board is
A first period in which transmission of a plurality of the messages is permitted and a second period in which transmission of the plurality of messages are not permitted occur alternately,
A transmission buffer storing a plurality of the messages of the command;
A transmission unit that reads a plurality of the messages from the transmission buffer and sequentially transmits the messages in the first period;
The sub-board is
A receiving unit that receives the plurality of messages from the transmitting unit;
A reception buffer for storing a plurality of received messages;
A message buffer for storing the message read from the reception buffer,
Count and check the number of messages stored in the reception buffer at a predetermined time interval (hereinafter referred to as “reception check interval”),
When the number of messages by the check is 1 or more, the message is read from the reception buffer and stored in the message buffer;
When the number of messages by the check is 0, the plurality of messages stored in the message buffer are output as the commands from the main board,
When the number of the messages by the check is 0, the count value of the message is checked, and when the count value does not match a predetermined specified value, it is determined as a communication error, and the communication error is determined as the error storage unit. Remember
The reception check interval is determined so that the number of messages by the check is 1 or more when the transmission unit of the main board is transmitting the message.
The gaming machine according to claim 1, wherein the second period is longer than twice the reception check interval, and is determined such that the number of the messages by the check may be zero.
前記デバイスは、所定の範囲内で可動する可動要素、前記可動要素を動かす駆動部、及び、前記可動要素の位置情報を取得するセンサを含み、前記演出に用いられる可動体であり、
前記周辺基板は、前記駆動部を駆動制御するとともに前記センサから位置情報の信号を受ける可動体制御部であり、
前記サブ基板は、前記可動体制御部に対して前記駆動部を駆動する前記コマンドを送った後、予め定められた時間内において前記センサによる前記可動要素の位置情報を取得できなかったとき、前記通信異常と判定し、当該通信異常を前記異常記憶部に記憶することを特徴とする請求項1記載の遊技機。
The device includes a movable element that moves within a predetermined range, a drive unit that moves the movable element, and a sensor that acquires position information of the movable element, and is a movable body used for the production,
The peripheral substrate is a movable body control unit that controls driving of the driving unit and receives a position information signal from the sensor,
When the sub-board cannot acquire the position information of the movable element by the sensor within a predetermined time after sending the command to drive the driving unit to the movable body control unit, The gaming machine according to claim 1, wherein it is determined that the communication is abnormal, and the communication abnormality is stored in the abnormality storage unit.
前記サブ基板は、前記通信異常と判定したとき、前記可動体制御部に対する制御を中止することを特徴とする請求項2記載の遊技機。   The gaming machine according to claim 2, wherein the sub-board stops control of the movable body controller when it is determined that the communication is abnormal.
JP2012005715A 2012-01-14 2012-01-14 Game machine Expired - Fee Related JP6078232B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012005715A JP6078232B2 (en) 2012-01-14 2012-01-14 Game machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012005715A JP6078232B2 (en) 2012-01-14 2012-01-14 Game machine

Publications (2)

Publication Number Publication Date
JP2013144033A JP2013144033A (en) 2013-07-25
JP6078232B2 true JP6078232B2 (en) 2017-02-08

Family

ID=49040247

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012005715A Expired - Fee Related JP6078232B2 (en) 2012-01-14 2012-01-14 Game machine

Country Status (1)

Country Link
JP (1) JP6078232B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6082216B2 (en) * 2012-09-25 2017-02-15 株式会社三共 Game machine
JP6076228B2 (en) * 2013-10-07 2017-02-08 株式会社ユニバーサルエンターテインメント Game machine

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4012331B2 (en) * 1999-02-08 2007-11-21 株式会社ソフィア Game machine
JP4167896B2 (en) * 2002-12-26 2008-10-22 株式会社大都技研 Amusement stand
JP2006158532A (en) * 2004-12-03 2006-06-22 Sankyo Kk Slot machine using game balls
JP2011015852A (en) * 2009-07-09 2011-01-27 Daito Giken:Kk Game machine
JP5356310B2 (en) * 2010-05-10 2013-12-04 株式会社藤商事 Game machine
JP2011118932A (en) * 2011-03-07 2011-06-16 Renesas Electronics Corp Microcomputer

Also Published As

Publication number Publication date
JP2013144033A (en) 2013-07-25

Similar Documents

Publication Publication Date Title
JP5667460B2 (en) Slot machine
JP5853321B2 (en) Game machine
JP2012187131A (en) Game machine
JP5685489B2 (en) Game machine
JP6268354B2 (en) Game machine
JP6078232B2 (en) Game machine
JP5577966B2 (en) Game machine
JP6417507B2 (en) Game machine
JP5339293B2 (en) Bullet ball machine
JP2015104641A (en) Game machine
JP5744149B2 (en) Bullet ball machine
JP2015104642A (en) Game machine
JP5351566B2 (en) Game machine
JP6035487B2 (en) Game machine
JP5397951B2 (en) Bullet ball machine
JP5683320B2 (en) Game machine
JP6078231B2 (en) Game machine
JP5938765B2 (en) Game machine
JP2007181556A (en) Rotary drum type game machine
JP5838476B2 (en) Game machine
JP5701154B2 (en) Game machine
JP2014136078A (en) Game machine
JP5789845B2 (en) Game machine
JP2005334076A (en) Game machine
JP6371993B2 (en) Game machine

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20141007

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20151118

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20151118

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160112

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160621

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160722

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170116

R150 Certificate of patent or registration of utility model

Ref document number: 6078232

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees