JP2020005840A - Game machine and game device - Google Patents

Game machine and game device Download PDF

Info

Publication number
JP2020005840A
JP2020005840A JP2018128834A JP2018128834A JP2020005840A JP 2020005840 A JP2020005840 A JP 2020005840A JP 2018128834 A JP2018128834 A JP 2018128834A JP 2018128834 A JP2018128834 A JP 2018128834A JP 2020005840 A JP2020005840 A JP 2020005840A
Authority
JP
Japan
Prior art keywords
medal
determination
image data
image
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2018128834A
Other languages
Japanese (ja)
Other versions
JP7049200B2 (en
Inventor
洋一 小山
Yoichi Koyama
洋一 小山
邦広 真鍋
Kunihiro Manabe
邦広 真鍋
朋典 秋谷
Tomonori Akitani
朋典 秋谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Universal Entertainment Corp
Original Assignee
Universal Entertainment Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Universal Entertainment Corp filed Critical Universal Entertainment Corp
Priority to JP2018128834A priority Critical patent/JP7049200B2/en
Publication of JP2020005840A publication Critical patent/JP2020005840A/en
Application granted granted Critical
Publication of JP7049200B2 publication Critical patent/JP7049200B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Slot Machines And Peripheral Devices (AREA)

Abstract

To prevent accuracy of detecting fraudulent acts from lowering due to lens distortion.SOLUTION: Passage determination means includes: correction value generating means for generating a correction value for correcting positions of a plurality of determination areas in image data, based on a temperature measured by temperature measuring means and the positions of a plurality of reference points in the image data; and correction means for correcting the positions of the plurality of determination areas in the image data, based on the generated correction values. When the temperature measured by the temperature measuring means when the correction value is generated last time and the brightness of the plurality of determination areas are compared with the current temperature measured by the temperature measuring means and the brightness of the plurality of determination areas with each other, a difference between the temperature measured by the temperature measuring means when the correction value is generated lase time and the current temperature measured by the temperature measuring means is a first predetermined value or larger and a difference between the brightness of the plurality of determination areas when the correction value is generated last time and the current brightness of the plurality of determination areas is a second predetermined value or less, the correction value is generated.SELECTED DRAWING: Figure 39

Description

本発明は、遊技機及び遊技用装置に関する。   The present invention relates to a gaming machine and a gaming device.

従来、複数の図柄がそれぞれの表面に配された複数のリールと、スタートスイッチと、ストップスイッチと、各リールに対応して設けられたステッピングモータと、制御部とを備えた、パチスロと呼ばれる遊技機が知られている。スタートスイッチは、メダルなどの遊技媒体が遊技機に投入された後、スタートレバーが遊技者により操作されたこと(以下、「開始操作」ともいう)を検出し、全てのリールの回転の開始を要求する信号を出力する。ストップスイッチは、各リールに対応して設けられたストップボタンが遊技者により押されたこと(以下、「停止操作」ともいう)を検出し、該当するリールの回転の停止を要求する信号を出力する。ステッピングモータは、その駆動力を対応するリールに伝達する。また、制御部は、スタートスイッチ及びストップスイッチにより出力された信号に基づいて、ステッピングモータの動作を制御し、各リールの回転動作及び停止動作を行う。   Conventionally, a game called a pachislot provided with a plurality of reels having a plurality of symbols arranged on each surface, a start switch, a stop switch, a stepping motor provided for each reel, and a control unit Machines are known. The start switch detects that a start lever has been operated by a player (hereinafter, also referred to as a “start operation”) after a game medium such as a medal has been inserted into the gaming machine, and starts the rotation of all reels. Outputs the required signal. The stop switch detects that a stop button provided for each reel is pressed by a player (hereinafter, also referred to as a "stop operation") and outputs a signal requesting that the rotation of the corresponding reel be stopped. I do. The stepping motor transmits the driving force to a corresponding reel. The control unit controls the operation of the stepping motor based on the signals output from the start switch and the stop switch, and performs the rotation operation and the stop operation of each reel.

このような遊技機では、開始操作が検出されると、プログラム上で乱数を用いた抽籤処理(以下、「内部抽籤処理」という)が行われ、その抽籤の結果(以下、「内部当籤役」という)と停止操作のタイミングとに基づいてリールの回転の停止を行う。そして、全てのリールの回転が停止され、入賞の成立に係る図柄の組合せが表示されると、その図柄の組合せに対応する特典が遊技者に付与される。   In such a gaming machine, when a start operation is detected, a lottery process using a random number (hereinafter, referred to as “internal lottery process”) is performed on a program, and the result of the lottery (hereinafter, “internal winning combination”) is performed. ) And the timing of the stop operation, the reel rotation is stopped. Then, when the rotation of all reels is stopped and a symbol combination related to winning is displayed, a privilege corresponding to the symbol combination is given to the player.

また、このような遊技機には、メダル投入口の先に投入されたメダルを検知するためのメダルセレクタが設けられている。また、このメダルセレクタに対しては、メダル投入口に適正なメダル(正規メダル)でないメダル(不正メダル)を投入したり、器具をメダル投入口に挿入したりして、遊技機に正規メダルが投入されたと誤認させて遊技を行う不正行為に対する対策がとられている。   Also, such a gaming machine is provided with a medal selector for detecting a medal inserted beyond the medal insertion slot. For this medal selector, a medal (illegal medal) that is not a proper medal (regular medal) is inserted into the medal slot, or a device is inserted into the medal slot, so that the gaming machine receives the regular medal. Countermeasures are taken against fraudulent acts of playing games by mistakenly being inserted.

例えば、特許文献1には、メダル通路に2個のメダル検知用の近接センサを設け、各近接センサの出力に基づいてメダル通路を遊技用のメダルが通過したかどうかを判断することで、板状体のような器具が用いられた不正行為を検知するスロットマシンが記載されている。
また、特許文献2には、遊技機の前面に位置する被写体の画像を、広角レンズを通して取得するカメラ部を有する遊技機が記載されている。
For example, in Patent Document 1, two proximity sensors for detecting medals are provided in a medal path, and it is determined whether or not a game medal has passed through the medal path based on an output of each proximity sensor. A slot machine for detecting fraudulent activity using a tool such as a body is described.
Patent Document 2 discloses a gaming machine having a camera unit that acquires an image of a subject located in front of the gaming machine through a wide-angle lens.

特開2002−342814号公報JP-A-2002-342814 特開2010−227160号公報JP 2010-227160 A

しかしながら、特許文献2に記載された広角レンズには、一般的にプラスティックレンズが使用される。特許文献1のスロットマシンの筐体内部に、プラスティックレンズを設置すると、筐体内部は、半密閉状態となるため、高温となり、プラスティックレンズが膨張して歪みが発生する虞がある。プラスティックレンズに歪みが発生すると、不正行為の検知精度が低下する可能性がある。   However, a plastic lens is generally used for the wide-angle lens described in Patent Document 2. When a plastic lens is installed inside the housing of the slot machine disclosed in Patent Document 1, the inside of the housing is in a semi-sealed state, so that the temperature of the housing becomes high and the plastic lens may expand to cause distortion. When distortion occurs in the plastic lens, there is a possibility that the detection accuracy of fraudulent acts is reduced.

本発明は、上記課題を解決するためになされたものであり、本発明の目的は、レンズの歪みに因る不正行為の検知精度の低下を防止できる遊技機及び遊技用装置を提供することにある。   SUMMARY An advantage of some aspects of the invention is to provide a gaming machine and a gaming apparatus capable of preventing a decrease in detection accuracy of fraudulent acts due to lens distortion. is there.

上記目的を達成するために、本発明は、以下のような構成の遊技機及び遊技用装置を提供する。   In order to achieve the above object, the present invention provides a gaming machine and a gaming device having the following configurations.

遊技媒体を投入する投入口(例えば、後述のメダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、後述のメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部(例えば、後述のメダルレール210)と、
前記通路形成部に形成された複数の基準点(例えば、後述の基準マーカ260)と、
前記通路を撮像する撮像手段(例えば、後述のカメラユニット209)と、
温度を計測する温度計測手段(例えば、後述の温度センサ260g)と、
前記撮像手段を介して得られる画像データに基づいて前記通路を物体が通過したか否かを判定する通過判定手段(例えば、後述の制御LSI234)と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段(例えば、後述の制御LSI234)と、
前記通路形成部に配置した複数の判定領域のそれぞれについて、物体が通過していないときの基準画像データ値を予め記憶する基準画像記憶手段(例えば、後述のSRAM243)と、を有し、
前記通過判定手段は、
所定期間内に撮像された複数の前記画像データにおける複数の前記判定領域のそれぞれの画像データ値と対応する前記基準画像データ値とを比較し、複数の前記判定領域のそれぞれにおける物体の有無を検出する物体有無検出手段(例えば、後述のメダルカウント回路246)と、
複数の前記画像データにおける複数の前記判定領域のそれぞれにおける物体の有無の変化の態様を示す変化態様情報と、物体が前記通路を通過した場合の前記変化の態様に対応し、予め記憶されている基準変化態様情報と、を比較し、一致した場合に、前記通路を物体が通過したと判定する通過順序判定手段(例えば、後述のメダルカウント回路246)と、
前記温度計測手段が計測した温度と前記画像データにおける複数の前記基準点の位置に基づいて、該画像データにおける複数の前記判定領域の位置を補正するための補正値を生成する補正値生成手段(例えば、後述の温度補正処理を実行するホストコントローラ241)と、
生成した前記補正値に基づいて、前記画像データにおける複数の前記判定領域の位置を補正する補正手段(例えば、後述のホストコントローラ241)と、を有し、
前記補正値生成手段は、
前回前記補正値を生成したときの前記温度計測手段が計測した温度及び複数の前記判定領域の輝度と、現在の前記温度計測手段が計測した温度及び複数の前記判定領域の輝度とを比較し、
前回前記補正値を生成したときの前記温度計測手段が計測した温度と現在の前記温度計測手段が計測した温度との差が第1の所定値以上であり、且つ、前回前記補正値を生成したときの複数の前記判定領域の輝度と現在の複数の前記判定領域の輝度との差が第2の所定値以下の場合に、前記補正値を生成する
ことを特徴とする遊技機。
An insertion slot (for example, a medal insertion slot 21 described later) into which a game medium is inserted,
Game medium detection means (for example, a medal selector 201 described later) for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion (for example, a medal rail 210 described later) that forms a passage through which the game medium passes;
A plurality of reference points (for example, a reference marker 260 described later) formed in the passage forming portion;
Imaging means for imaging the passage (for example, a camera unit 209 described later);
Temperature measuring means for measuring the temperature (for example, a temperature sensor 260g described later),
A passage determination unit (for example, a control LSI 234 described later) that determines whether an object has passed through the passage based on image data obtained through the imaging unit;
A game medium determination unit (for example, a control LSI 234 described later) that determines whether an object passing through the passage is a regular game medium based on image data obtained through the imaging unit;
A reference image storage unit (for example, an SRAM 243 described later) that stores in advance a reference image data value when an object does not pass through for each of the plurality of determination regions arranged in the passage forming unit;
The passage determination means,
Comparing the respective image data values of the plurality of determination areas in the plurality of image data captured within a predetermined period with the corresponding reference image data values, and detecting the presence or absence of an object in each of the plurality of determination areas Object detection means (for example, a medal counting circuit 246 described later),
Change mode information indicating a mode of change in the presence or absence of an object in each of the plurality of determination areas in the plurality of image data, and is stored in advance corresponding to the mode of change when the object passes through the passage. And a passing order determining unit (for example, a medal counting circuit 246 to be described later) that compares the reference change mode information with each other and determines that the object has passed through the passage when they match.
Correction value generation means for generating correction values for correcting the positions of the plurality of determination regions in the image data based on the temperature measured by the temperature measurement means and the positions of the plurality of reference points in the image data. For example, a host controller 241) that executes a temperature correction process described later;
Correction means (for example, a host controller 241 described later) for correcting the positions of the plurality of determination areas in the image data based on the generated correction value,
The correction value generation means includes:
The temperature measured by the temperature measurement unit and the brightness of the plurality of determination regions when the correction value was generated last time are compared with the current temperature measured by the temperature measurement unit and the brightness of the plurality of determination regions.
The difference between the temperature measured by the temperature measuring means when the correction value was generated last time and the current temperature measured by the temperature measuring means is equal to or greater than a first predetermined value, and the correction value was generated last time. A game machine configured to generate the correction value when a difference between the brightness of the plurality of determination areas and the current brightness of the plurality of determination areas is equal to or less than a second predetermined value.

遊技媒体を投入する投入口と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部と、
前記通路形成部に形成された複数の基準点と、
前記通路を撮像する撮像手段と、
温度を計測する温度計測手段
前記撮像手段を介して得られる画像データに基づいて前記通路を物体が通過したか否かを判定する通過判定手段と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段と、
前記通路形成部に配置した複数の判定領域のそれぞれについて、物体が通過していないときの基準画像データ値を予め記憶する基準画像記憶手段と、を有し、
前記通過判定手段は、
所定期間内に撮像された複数の前記画像データにおける複数の前記判定領域のそれぞれの画像データ値と対応する前記基準画像データ値とを比較し、複数の前記判定領域のそれぞれにおける物体の有無を検出する物体有無検出手段と、
複数の前記画像データにおける複数の前記判定領域のそれぞれにおける物体の有無の変化の態様を示す変化態様情報と、物体が前記通路を通過した場合の前記変化の態様に対応し、予め記憶されている基準変化態様情報と、を比較し、一致した場合に、前記通路を物体が通過したと判定する通過順序判定手段と、
前記温度計測手段が計測した温度と前記画像データにおける複数の前記基準点の位置に基づいて、該画像データにおける複数の前記判定領域の位置を補正するための補正値を生成する補正値生成手段と、
生成した前記補正値に基づいて、前記画像データにおける複数の前記判定領域の位置を補正する補正手段と、を有し、
前記補正値生成手段は、
前回前記補正値を生成したときの前記温度計測手段が計測した温度及び複数の前記判定領域の輝度と、現在の前記温度計測手段が計測した温度及び複数の前記判定領域の輝度とを比較し、
前回前記補正値を生成したときの前記温度計測手段が計測した温度と現在の前記温度計測手段が計測した温度との差が第1の所定値以上であり、且つ、前回前記補正値を生成したときの複数の前記判定領域の輝度と現在の複数の前記判定領域の輝度との差が第2の所定値以下の場合に、前記補正値を生成する
ことを特徴とする遊技用装置。
An input port for inputting game media,
A game medium detecting means for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion that forms a passage through which the game medium passes;
A plurality of reference points formed in the passage forming portion;
Imaging means for imaging the passage;
Passage determination means for determining whether or not an object has passed through the passage based on image data obtained via the temperature measurement means and the imaging means for measuring the temperature,
Game medium determination means for determining whether an object passing through the passage is a regular game medium based on image data obtained via the imaging means,
For each of the plurality of determination regions arranged in the passage forming unit, a reference image storage unit that stores in advance a reference image data value when an object does not pass,
The passage determination means,
Comparing the respective image data values of the plurality of determination areas in the plurality of image data captured within a predetermined period with the corresponding reference image data values, and detecting the presence or absence of an object in each of the plurality of determination areas Object detection means for performing
Change mode information indicating a mode of change in the presence or absence of an object in each of the plurality of determination areas in the plurality of image data, and is stored in advance corresponding to the mode of change when the object passes through the passage. The reference change mode information is compared with, and when they match, a passing order determination unit that determines that the object has passed the passage,
Correction value generating means for generating a correction value for correcting the positions of the plurality of determination regions in the image data based on the temperature measured by the temperature measuring means and the positions of the plurality of reference points in the image data; ,
Correction means for correcting the positions of the plurality of determination areas in the image data based on the generated correction value,
The correction value generation means includes:
The temperature measured by the temperature measurement unit and the brightness of the plurality of determination regions when the correction value was generated last time are compared with the current temperature measured by the temperature measurement unit and the brightness of the plurality of determination regions.
The difference between the temperature measured by the temperature measuring means when the correction value was generated last time and the current temperature measured by the temperature measuring means is equal to or greater than a first predetermined value, and the correction value was generated last time. The game device, wherein the correction value is generated when a difference between the brightness of the plurality of determination areas at that time and the brightness of the current plurality of determination areas is equal to or smaller than a second predetermined value.

本発明によれば、レンズの歪みに因る不正行為の検知精度の低下を防止できる。   ADVANTAGE OF THE INVENTION According to this invention, the fall of the detection precision of fraudulent act resulting from distortion of a lens can be prevented.

本発明の一実施形態の遊技機における機能フローを説明する説明図である。It is an explanatory view explaining a functional flow in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における外観構成例を示す斜視図である。It is a perspective view showing an example of appearance composition in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における内部構造を示すものであり、ミドルドアを閉じた状態の斜視図である。1 is a perspective view showing an internal structure of a gaming machine according to an embodiment of the present invention, with a middle door closed. 本発明の一実施形態の遊技機における内部構造を示すものであり、ミドルドアを開けた状態の斜視図である。1 is a perspective view showing an internal structure of a gaming machine according to an embodiment of the present invention, with a middle door opened. 本発明の一実施形態の遊技機におけるキャビネットの内部を示す説明図である。It is an explanatory view showing the inside of the cabinet in the game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるフロントドアの裏面側を示す説明図である。It is an explanatory view showing the back side of the front door in the gaming machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるメダルセレクタを遊技機の斜め後方から見た斜視図である。FIG. 2 is a perspective view of a medal selector in the gaming machine according to one embodiment of the present invention as viewed obliquely from behind the gaming machine. 本発明の一実施形態の遊技機におけるメダルセレクタの分解図である。FIG. 2 is an exploded view of a medal selector in the gaming machine according to one embodiment of the present invention. 本発明の一実施形態の遊技機におけるメダルセレクタを遊技機の斜め前方から見た斜視図である。FIG. 2 is a perspective view of a medal selector in the gaming machine according to one embodiment of the present invention as viewed obliquely from the front of the gaming machine. 本発明の一実施形態の遊技機におけるメダルセレクタのベース板部の背面図である。It is a rear view of the base plate part of the medal selector in the gaming machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるメダルセレクタのセレクトプレートの斜視図である。It is a perspective view of the select plate of the medal selector in the gaming machine of one embodiment of the present invention. 発明の一実施形態の遊技機におけるメダルセレクタがメダルをホッパー装置へ案内する場合のメダルの経路を示す図である。It is a figure showing a course of a medal when a medal selector in a game machine of one embodiment of the present invention guides a medal to a hopper device. 発明の一実施形態の遊技機におけるメダルセレクタがメダルをメダルシュートに案内する場合のメダルの経路を示す図である。It is a figure showing a course of a medal when a medal selector in a game machine of one embodiment of the present invention guides a medal to a medal shoot. 本発明の一実施形態の遊技機における制御系を示すブロック図である。It is a block diagram showing a control system in the game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における主制御回路の構成例を示すブロック図である。It is a block diagram showing an example of composition of a main control circuit in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における副制御回路の構成例を示すブロック図である。It is a block diagram showing an example of composition of a sub control circuit in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるメダルセレクタの回路構成例を示すブロック図である。It is a block diagram showing an example of a circuit configuration of a medal selector in the gaming machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における制御LSIの回路構成例を示すブロック図である。It is a block diagram showing an example of a circuit configuration of a control LSI in the gaming machine of one embodiment of the present invention. 一実施形態の遊技機におけるUARTを説明するためのブロック図である。It is a block diagram for explaining UART in the game machine of one embodiment. 本発明の一実施形態の遊技機におけるレンズの歪みを説明するための図である。It is a figure for explaining distortion of a lens in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における射影変換処理を説明するための図であり、Aは射影変換前のRGBベイヤ画像を示し、Bは射影変換後のRGBベイヤ画像を示す。It is a figure for explaining projection conversion processing in a game machine of one embodiment of the present invention, A shows an RGB Bayer image before projective conversion, and B shows an RGB Bayer image after projective conversion. 本発明の一実施形態の遊技機における閾値グラフを説明するための図である。It is a figure for explaining a threshold graph in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における判定領域を説明するための図(その1)である。FIG. 7 is a view (No. 1) for describing a determination area in the gaming machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における判定領域を説明するための図(その2)である。FIG. 10 is a view (No. 2) for describing a determination area in the gaming machine according to one embodiment of the present invention. 本発明の一実施形態の遊技機における判定領域を説明するための図(その3)である。FIG. 7 is a view (No. 3) for describing a determination area in the gaming machine according to one embodiment of the present invention. 本発明の一実施形態の遊技機における判定領域を説明するための図(その4)である。FIG. 7 is a view (No. 4) for explaining a determination area in the gaming machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるSRAMに記憶される判定領域判定結果データの一例を示す図である。It is a figure showing an example of judgment area judgment result data stored in SRAM in the game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるメダルカウント判定表を説明するための図である。It is a figure for explaining a medal count judgment table in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるガウシアンフィルタを説明するための図である。It is a figure for explaining a Gaussian filter in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における円領域検出処理を説明するための図である。It is a figure for explaining circle area detection processing in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における3σ修正処理を説明するための図である。It is a figure for explaining 3σ correction processing in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるフィルタ処理を説明するための図であり、Aは3σ修正処理後の円領域画像データを模式的に表しており、Bはエッジ画像X用係数を示し、Cはエッジ画像Y用係数を示している。It is a diagram for explaining the filter processing in the gaming machine of one embodiment of the present invention, A is a schematic representation of the circular area image data after the 3σ correction processing, B is a coefficient for edge image X, C indicates a coefficient for the edge image Y. 本発明の一実施形態の遊技機に用いられる正規メダルの一例を示す図であり、Aは正規メダルの一方の面を示し、Bは正規メダルの勾配平均画像データを示す。It is a figure which shows an example of the regular medal used for the game machine of one Embodiment of this invention, A shows one surface of a regular medal, B shows the gradient average image data of a regular medal. 本発明の一実施形態の遊技機におけるHOG変換処理を説明するための図である。It is a figure for explaining HOG conversion processing in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるFFT変換処理を説明するための図である。It is a figure for explaining FFT conversion processing in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における制御LSIが行う処理のフロー図である。It is a flow chart of processing which control LSI in a game machine of one embodiment of the present invention performs. 本発明の一実施形態に係る煙判定領域を説明するための図である。It is a figure for explaining a smoke judgment field concerning one embodiment of the present invention. 本発明の一実施形態に係る異物検知領域を説明するための図である。FIG. 3 is a diagram for explaining a foreign object detection area according to one embodiment of the present invention. 本発明の一実施形態の遊技機における温度補正処理の一例を示すフローチャートである。It is a flow chart which shows an example of temperature correction processing in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるテンプレート生成処理の一例を示すフローチャート(その1)である。It is a flowchart (the 1) which shows an example of the template generation processing in the gaming machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるテンプレート生成処理の一例を示すフローチャート(その2)である。It is a flowchart (the 2) which shows an example of the template generation processing in the gaming machine of one Embodiment of this invention. 本発明の一実施形態の遊技機における本テンプレート更新処理の一例を示すフローチャートである。It is a flow chart which shows an example of this template update processing in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における係数更新処理の一例を示すフローチャートである。It is a flowchart which shows an example of the coefficient update process in the gaming machine of one Embodiment of this invention. 本発明の一実施形態の遊技機における閾値平面を説明するための図である。It is a figure for explaining a threshold plane in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるメダルセレクタと副制御回路間で送受信されるコマンドの一覧表である。It is a list of commands transmitted and received between the medal selector and the sub control circuit in the gaming machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるメダルセレクタと副制御回路間のコマンド送受信シーケンスの一例を説明するための図である。It is a figure for explaining an example of the command transmission and reception sequence between the medal selector and the sub control circuit in the gaming machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるデータ受信処理の一例を示すフローチャートである。It is a flow chart which shows an example of data reception processing in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるデータ受信サブ処理1の一例を示すフローチャートである。It is a flowchart which shows an example of the data reception sub-process 1 in the gaming machine of one Embodiment of this invention. 本発明の一実施形態の遊技機におけるデータ受信サブ処理2の一例を示すフローチャートである。It is a flowchart which shows an example of the data reception sub-process 2 in the gaming machine of one Embodiment of this invention. 本発明の一実施形態の遊技機におけるデータ受信整合判定処理の一例を示すフローチャートである。It is a flow chart which shows an example of data reception matching judging processing in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるACK/NAK送信処理の一例を示すフローチャートである。It is a flow chart which shows an example of ACK / NAK transmission processing in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における電源投入処理の一例を示すフローチャートである。It is a flow chart which shows an example of power supply processing in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における無操作コマンド受信時処理の一例を示すフローチャートである。It is a flow chart which shows an example of processing at the time of a no operation command reception in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるメダルセレクタ通信タスクの一例を示すフローチャートである。It is a flow chart which shows an example of a medal selector communication task in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるメダルセレクタコマンド受信処理の一例を示すフローチャートである。It is a flowchart which shows an example of the medal selector command receiving process in the gaming machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における起動完了コマンド受信時処理の一例を示すフローチャートである。It is a flow chart which shows an example of processing at the time of starting completion command reception in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における初期化エラー画面の一例を示す図である。It is a figure showing an example of an initialization error screen in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるセレクタスイッチエラー画面の一例を示す図である。It is a figure showing an example of a selector switch error screen in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における判定完了コマンド受信時処理の一例を示すフローチャートである。It is a flow chart which shows an example of processing at the time of receiving a judgment completion command in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるサブRAM103に設けられたキューを示す図である。It is a figure showing a cue provided in sub RAM103 in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるC2エラー画面の一例を示す図である。It is a figure showing an example of a C2 error screen in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるメダルセレクタエラーコマンド受信時処理の一例を示すフローチャートであるIt is a flow chart which shows an example of processing at the time of receiving a medal selector error command in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるC1エラー画面の一例を示す図である。It is a figure showing an example of a C1 error screen in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるメダルセレクタ無操作コマンド受信時処理の一例を示すフローチャートである。It is a flow chart which shows an example of processing at the time of receiving a medal selector non-operation command in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における起動回数判定処理の一例を示すフローチャートである。It is a flowchart which shows an example of the number-of-times-of-activation determination process in the gaming machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるスイッチ状態判定処理の一例を示すフローチャートである。It is a flow chart which shows an example of switch state judging processing in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるメダル投入コマンド受信時処理の一例を示すフローチャートである。It is a flowchart which shows an example of the process at the time of the medal insertion command reception in the gaming machine of one Embodiment of this invention. 本発明の一実施形態の遊技機におけるメダルセレクタコマンド送信処理の一例を示すフローチャートである。It is a flowchart which shows an example of the medal selector command transmission processing in the gaming machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるエラー解除判定処理の一例を示すフローチャートである。It is a flow chart which shows an example of error cancellation judgment processing in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるエラー情報履歴画面の一例を示す図である。It is a figure showing an example of an error information history screen in a game machine of one embodiment of the present invention. 本発明の一実施形態における第22の作用を説明するための図である。It is a figure for explaining the 22nd operation in one embodiment of the present invention. 本発明の変形例1の遊技機におけるメダルセレクタを説明するための図である。FIG. 9 is a diagram for explaining a medal selector in a gaming machine according to a first modification of the present invention. 本発明の変形例2の遊技機におけるメダルセレクタの回路構成例を示すブロック図である。It is a block diagram showing an example of a circuit configuration of a medal selector in a gaming machine of a second modification of the present invention. 本発明の変形例2の遊技機における制御LSIの回路構成例を示すブロック図である。FIG. 15 is a block diagram illustrating a circuit configuration example of a control LSI in a gaming machine according to a second modification of the present invention. 本発明の変形例3の遊技機におけるセレクタ監視機能を説明するための説明図である。FIG. 15 is an explanatory diagram for describing a selector monitoring function in a gaming machine according to Modification Example 3 of the present invention. 本発明の変形例3の遊技機におけるセレクトプレート判断処理を説明するための図である。FIG. 14 is a view for explaining select plate determination processing in a gaming machine according to a third modification of the present invention. 本発明の変形例4の遊技機におけるメダルセレクタの回路構成例を示すブロック図である。FIG. 16 is a block diagram illustrating a circuit configuration example of a medal selector in a gaming machine according to Modification 4 of the present invention. 本発明の変形例5の遊技機におけるメダルセレクタの背面図である。It is a rear view of the medal selector in the gaming machine of the fifth modification of the present invention. 本発明の変形例5の遊技機におけるメダルセレクタの回路構成例を示すブロック図である。FIG. 16 is a block diagram illustrating a circuit configuration example of a medal selector in a gaming machine of Modification Example 5 of the present invention. 本発明の変形例6の遊技機におけるメダルセレクタの回路構成例を示すブロック図である。FIG. 15 is a block diagram illustrating a circuit configuration example of a medal selector in a gaming machine of Modification 6 of the present invention. 本発明の実施形態の応用例1に係る遊技用装置を上面から見た平面図である。It is the top view which looked at the game device concerning application example 1 of the embodiment of the present invention from the upper surface. 本発明の実施形態の応用例2に係る遊技用装置の内部構成を示す斜視図である。It is a perspective view showing the internal configuration of the game device concerning application example 2 of the embodiment of the present invention. 本発明の実施形態の応用例2に係る計数用ホッパの断面図である。It is sectional drawing of the hopper for counting which concerns on the application example 2 of embodiment of this invention. 本発明の実施形態の応用例3に係る遊技用装置の内部構造例を示す斜視図である。It is a perspective view showing an example of an internal structure of a game device concerning application example 3 of an embodiment of the present invention.

以下、本発明の一実施形態を示す遊技機であるパチスロについて、図1〜図80を参照しながら説明する。   Hereinafter, a pachislot which is a game machine according to an embodiment of the present invention will be described with reference to FIGS.

<機能フロー>
まず、図1を参照して、パチスロの機能フローについて説明する。
本実施の形態のパチスロでは、遊技を行うための遊技媒体としてメダルを用いる。なお、遊技媒体としては、メダル以外にも、コイン、遊技球、遊技用のポイントデータ又はトークン等を適用することもできる。
<Function flow>
First, a functional flow of a pachislot will be described with reference to FIG.
In the pachislot of the present embodiment, medals are used as game media for performing a game. As the game medium, coins, game balls, point data for games, tokens, and the like can be applied in addition to medals.

遊技者によりメダルが投入され、スタートレバーが操作されると、予め定められた数値の範囲(例えば、0〜65535)の乱数から1つの値(以下、乱数値)が抽出される。   When a medal is inserted by the player and the start lever is operated, one value (hereinafter, random number value) is extracted from a random number within a predetermined numerical value range (for example, 0 to 65535).

内部抽籤手段は、抽出された乱数値に基づいて抽籤を行い、内部当籤役を決定する。この内部抽籤手段は、後述する主制御回路が担う。内部当籤役の決定により、後述の入賞判定ラインに沿って表示を行うことを許可する図柄の組合せが決定される。なお、図柄の組合せの種別としては、メダルの払い出し、再遊技の作動、ボーナスの作動等といった特典が遊技者に与えられる「入賞」に係るものと、それ以外のいわゆる「ハズレ」に係るものとが設けられている。   The internal lottery means performs a lottery based on the extracted random number value and determines an internal winning combination. This internal lottery means is carried out by a main control circuit described later. By determining the internal winning combination, a combination of symbols permitted to be displayed along a winning determination line described later is determined. In addition, the types of symbol combinations include those related to “winning” in which a bonus such as payout of medals, activation of replays, activation of bonuses, etc. are given to a player, and those relating to other so-called “losing”. Is provided.

また、スタートレバーが操作されると、複数のリールの回転が行われる。その後、遊技者により所定のリールに対応するストップボタンが押されると、リール停止制御手段は、内部当籤役とストップボタンが押されたタイミングとに基づいて、該当するリールの回転を停止する制御を行う。このリール停止制御手段は、後述する主制御回路が担う。   Further, when the start lever is operated, rotation of the plurality of reels is performed. Thereafter, when the stop button corresponding to the predetermined reel is pressed by the player, the reel stop control means performs control to stop the rotation of the corresponding reel based on the internal winning combination and the timing at which the stop button is pressed. Do. This reel stop control means is carried out by a main control circuit described later.

パチスロでは、基本的に、ストップボタンが押されたときから規定時間(190msec又は75msec)内に、該当するリールの回転を停止する制御が行われる。本実施形態では、この規定時間内にリールの回転に伴って移動する図柄の数を「滑り駒数」と呼ぶ。規定期間が190msecである場合には、滑り駒数の最大数を図柄4個分に定め、規定期間が75msecである場合には、滑り駒数の最大数を図柄1個分に定める。   In the pachislot, basically, control for stopping the rotation of the relevant reel is performed within a specified time (190 msec or 75 msec) from when the stop button is pressed. In the present embodiment, the number of symbols that move with the rotation of the reel within the specified time is referred to as “the number of sliding pieces”. If the specified period is 190 msec, the maximum number of sliding pieces is determined to be four symbols, and if the specified period is 75 msec, the maximum number of sliding pieces is determined to be one symbol.

リール停止制御手段は、入賞に係る図柄の組合せ表示を許可する内部当籤役が決定されているときは、通常、190msec(図柄4コマ分)の規定時間内に、その図柄の組合せが入賞判定ラインに沿って極力表示されるようにリールの回転を停止させる。また、リール停止制御手段は、例えば、第2種特別役物であるチャレンジボーナス(CB)及びCBを連続して作動させるミドルボーナス(MB)の動作時には、1つ以上のリールに対して、規定時間75msec(図柄1コマ分)内に、その図柄の組合せが入賞判定ラインに沿って極力表示されるようにリールの回転を停止させる。さらに、リール停止制御手段は、遊技状態に対応する各種規定時間を利用して、内部当籤役によってその表示が許可されていない図柄の組合せが入賞判定ラインに沿って表示されないようにリールの回転を停止させる。   When the internal winning combination that permits the display of the combination of the symbols related to the winning is determined, the reel stop control unit normally changes the combination of the symbols to the winning determination line within a specified time of 190 msec (for four frames of the symbol). The rotation of the reel is stopped so as to be displayed along as much as possible. In addition, for example, during the operation of a challenge bonus (CB), which is a second type special accessory, and a middle bonus (MB) for continuously operating the CB, the reel stop control means controls one or more reels. The rotation of the reel is stopped so that the combination of the symbols is displayed as much as possible along the winning determination line within the time 75 msec (for one frame of the symbol). Further, the reel stop control means uses various specified times corresponding to the gaming state to rotate the reels so that a combination of symbols whose display is not permitted by the internal winning combination is not displayed along the winning determination line. Stop.

こうして、複数のリールの回転がすべて停止されると、入賞判定手段は、入賞判定ラインに沿って表示された図柄の組合せが、入賞に係るものであるか否かの判定を行う。この入賞判定手段は、後述する主制御回路が担う。入賞判定手段により入賞に係るものであるとの判定が行われると、メダルの払い出し等の特典が遊技者に与えられる。パチスロでは、以上のような一連の流れが1回の遊技として行われる。   When the rotations of the plurality of reels are all stopped, the winning determination unit determines whether the combination of the symbols displayed along the winning determination line is related to the winning. This winning determination means is carried by a main control circuit described later. When the prize determining means determines that the prize is related to a prize, a privilege such as a medal payout is given to the player. In the pachislot, the above-described series of flows is performed as one game.

また、パチスロでは、前述した一連の流れの中で、液晶表示装置などの表示装置により行う映像の表示、各種ランプにより行う光の出力、スピーカにより行う音の出力、或いはこれらの組合せを利用して様々な演出が行われる。   Further, in the pachislot, in the above-described series of flows, display of an image performed by a display device such as a liquid crystal display device, output of light performed by various lamps, output of sound performed by a speaker, or a combination thereof is used. Various effects are performed.

スタートレバーが操作されると、上述した内部当籤役の決定に用いられた乱数値とは別に、演出用の乱数値(以下、演出用乱数値)が抽出される。演出用乱数値が抽出されると、演出内容決定手段は、内部当籤役に対応づけられた複数種類の演出内容の中から今回実行するものを抽籤により決定する。この演出内容決定手段は、後述する副制御回路が担う。   When the start lever is operated, an effect random number value (hereinafter, effect random number value) is extracted separately from the random number value used for determining the internal winning combination described above. When the effect random number value is extracted, the effect content determination means randomly determines the effect to be executed this time from among a plurality of types of effect contents associated with the internal winning combination. This effect content determination means is carried by a sub-control circuit described later.

演出内容が決定されると、演出実行手段は、リールの回転開始時、各リールの回転停止時、入賞の有無の判定時等の各契機に連動させて対応する演出を実行する。このように、パチスロでは、内部当籤役に対応づけられた演出内容を実行することによって、決定された内部当籤役(言い換えると、狙うべき図柄の組合せ)を知る機会又は予想する機会が遊技者に提供され、遊技者の興味の向上を図ることができる。   When the content of the effect is determined, the effect executing means executes the effect corresponding to each opportunity such as when the rotation of the reels is started, when the rotation of each reel is stopped, and when the winning is determined. In this way, in the pachislot, by executing the effect contents associated with the internal winning combination, the player has an opportunity to know or predict the determined internal winning combination (in other words, a combination of symbols to be aimed). Provided to improve the interest of the player.

<パチスロの構造>
次に、図2〜図6を参照して、一実施形態におけるパチスロ1の構造について説明する。
<Pachislot structure>
Next, the structure of the pachislot 1 according to one embodiment will be described with reference to FIGS.

[外観構造]
図2は、パチスロ1の外部構造を示す斜視図である。
[Appearance structure]
FIG. 2 is a perspective view showing an external structure of the pachislot 1.

図2に示すように、パチスロ1は、外装体2を備えている。外装体2は、後述するホッパー装置51やメダル補助収納庫52等(図5参照)を収容するキャビネット2aと、キャビネット2aに対して開閉可能に取り付けられるフロントドア2bとを有している。
キャビネット2aの両側面には、把手7が設けられている(図2では一側面の把手7のみを示す)。この把手7は、パチスロ1を運搬するときに手をかける凹部である。
As shown in FIG. 2, the pachislot 1 includes an exterior body 2. The exterior body 2 has a cabinet 2a for accommodating a hopper device 51, a medal auxiliary storage 52, and the like (see FIG. 5), which will be described later, and a front door 2b that is openably and closably attached to the cabinet 2a.
Handles 7 are provided on both side surfaces of the cabinet 2a (only one side handle 7 is shown in FIG. 2). The handle 7 is a concave portion to which a hand is put when carrying the pachislot 1.

外装体2の内部には、3つのリール3L,3C,3Rが横並びに設けられている。以下、各リール3L,3C,3Rを、それぞれ左リール3L、中リール3C、右リール3Rという。各リール3L,3C,3Rは、円筒状に形成されたリール本体と、リール本体の周面に装着された透光性のシート材を有している。シート材の表面には、複数(例えば20個)の図柄が周方向に沿って所定の間隔をあけて描かれている。   Inside the exterior body 2, three reels 3L, 3C, 3R are provided side by side. Hereinafter, the respective reels 3L, 3C, 3R are referred to as a left reel 3L, a middle reel 3C, and a right reel 3R, respectively. Each of the reels 3L, 3C, 3R has a cylindrical reel body and a light-transmitting sheet material mounted on the peripheral surface of the reel body. On the surface of the sheet material, a plurality (for example, 20) of symbols are drawn at predetermined intervals along the circumferential direction.

フロントドア2bは、ドア本体9と、フロントパネル10と、表示装置の一具体例を示す液晶表示装置11とを備えている。   The front door 2b includes a door body 9, a front panel 10, and a liquid crystal display device 11 as a specific example of a display device.

ドア本体9は、ヒンジ(不図示)を用いてキャビネット2aに取り付けられており、キャビネット2aの開口部を開閉する。ヒンジは、パチスロ1の前方からドア本体9を見た場合に、ドア本体9における左側の端部に設けられている。液晶表示装置11は、ドア本体9の上部に取り付けられている。この液晶表示装置11は、表示部(表示画面)11aを備えており、液晶表示装置11を用いて映像の表示による演出が実行される。   The door body 9 is attached to the cabinet 2a using a hinge (not shown), and opens and closes an opening of the cabinet 2a. The hinge is provided at the left end of the door body 9 when the door body 9 is viewed from the front of the pachislot 1. The liquid crystal display device 11 is mounted on an upper part of the door body 9. The liquid crystal display device 11 includes a display unit (display screen) 11a, and an effect by displaying an image is performed using the liquid crystal display device 11.

フロントパネル10は、液晶表示装置11の表示部11a側に重畳して配置され、液晶表示装置11の表示部11aを露出させるパネル開口10aを有する枠状に形成されている。フロントパネル10には、ランプ群18が設けられている。ランプ群18は、LED(Light Emitting Diode)等で構成され、演出内容に対応するパターンで、光を点灯及び消灯する。   The front panel 10 is disposed so as to overlap the display unit 11a side of the liquid crystal display device 11, and is formed in a frame shape having a panel opening 10a that exposes the display unit 11a of the liquid crystal display device 11. A lamp group 18 is provided on the front panel 10. The lamp group 18 is configured by an LED (Light Emitting Diode) or the like, and turns on and off the light in a pattern corresponding to the effect contents.

フロントドア2bの中央には、台座部12が形成されている。この台座部12には、図柄表示領域4と、遊技者による操作の対象となる各種装置が設けられている。   A pedestal portion 12 is formed at the center of the front door 2b. The pedestal section 12 is provided with the symbol display area 4 and various devices to be operated by the player.

図柄表示領域4は、正面から見て3つのリール3L,3C,3Rに重畳する手前側に配置されており、3つのリール3L,3C,3Rに対応して設けられている。この図柄表示領域4は、表示窓としての機能を果たすものであり、その背後に設けられた各リール3L,3C,3Rを透過することが可能な構成になっている。以下、図柄表示領域4を、リール表示窓4という。   The symbol display area 4 is disposed on the near side overlapping the three reels 3L, 3C, 3R when viewed from the front, and is provided corresponding to the three reels 3L, 3C, 3R. The symbol display area 4 functions as a display window, and is configured to be able to transmit through the reels 3L, 3C, 3R provided behind the symbol display area. Hereinafter, the symbol display area 4 is referred to as a reel display window 4.

リール表示窓4は、その背後に設けられたリール3L,3C,3Rの回転が停止されたとき、各リール3L,3C,3Rの複数種類の図柄のうち、その枠内における上段、中段及び下段の各領域にそれぞれ1個の図柄(合計で3個)を表示する。本実施の形態では、リール表示窓4の上段、中段及び下段からなる3つの領域のうち予め定められたいずれかを組み合わせて構成される擬似的なラインを、入賞か否かの判定を行う対象となるライン(入賞判定ライン)として定義する。   When the rotation of the reels 3L, 3C, 3R provided behind the reel display window 4 is stopped, the upper, middle, and lower rows of the plurality of types of symbols on the reels 3L, 3C, 3R are within the frame. One symbol (a total of three symbols) is displayed in each area. In the present embodiment, a pseudo line formed by combining any one of predetermined three of the upper, middle, and lower regions of the reel display window 4 is a target for determining whether or not a winning is achieved. (A prize determination line).

リール表示窓4は、台座部12に設けられた枠部材13により形成されている。この枠部材13は、リール表示窓4と、情報表示窓14と、ストップボタン取付部15を有している。   The reel display window 4 is formed by a frame member 13 provided on the base 12. The frame member 13 has a reel display window 4, an information display window 14, and a stop button mounting portion 15.

情報表示窓14は、リール表示窓4の下部に連続して設けられており、上方に向かって開口している。すなわち、リール表示窓4と情報表示窓14は、連続する1つの開口部として形成されている。この情報表示窓14及びリール表示窓4は、透明の窓カバー16によって覆われている。   The information display window 14 is provided continuously below the reel display window 4 and opens upward. That is, the reel display window 4 and the information display window 14 are formed as one continuous opening. The information display window 14 and the reel display window 4 are covered by a transparent window cover 16.

窓カバー16は、枠部材13の内面側に配置されており、フロントドア2bの前面側から取り外し不可能になっている。また、枠部材13は、窓カバー16を挟んで情報表示窓14の開口に対向するシート載置部17を有している。そして、シート載置部17と窓カバー16との間には、遊技に関する情報が記載されたシート部材(情報シート)が配置されている。したがって、情報シートは、凹凸や隙間の無い滑らかな表面を有する窓カバー16により覆われている。   The window cover 16 is disposed on the inner side of the frame member 13 and cannot be removed from the front side of the front door 2b. Further, the frame member 13 has a sheet placing portion 17 facing the opening of the information display window 14 with the window cover 16 interposed therebetween. A sheet member (information sheet) on which information about a game is described is arranged between the sheet placing portion 17 and the window cover 16. Therefore, the information sheet is covered with the window cover 16 having a smooth surface without irregularities or gaps.

情報シートの取付部を構成する窓カバー16は、フロントドア2bの前面側から取り外し不可能であり、凹凸や隙間の無い滑らかな表面であるため、情報シートの取付部を利用して、パチスロ1の内部にアクセスする不正行為を防ぐことができる。   The window cover 16 constituting the mounting portion of the information sheet cannot be removed from the front side of the front door 2b and has a smooth surface without any irregularities or gaps. Can prevent unauthorized access to the inside of the device.

ストップボタン取付部15は、情報表示窓14の下方に設けられており、正面を向いた平面に形成されている。このストップボタン取付部15には、ストップボタン19L,19C,19Rが貫通する貫通孔が設けられている。ストップボタン19L,19C,19Rは、3つのリール3L,3C,3Rのそれぞれに対応づけられ、対応するリールの回転を停止するために設けられる。以下、ストップボタン19L,19C,19Rを、それぞれ左ストップボタン19L、中ストップボタン19C、右ストップボタン19Rという。   The stop button mounting portion 15 is provided below the information display window 14 and is formed in a plane facing the front. The stop button mounting portion 15 is provided with a through hole through which the stop buttons 19L, 19C, 19R pass. The stop buttons 19L, 19C, 19R are associated with the three reels 3L, 3C, 3R, respectively, and are provided to stop the rotation of the corresponding reels. Hereinafter, the stop buttons 19L, 19C, and 19R are referred to as a left stop button 19L, a middle stop button 19C, and a right stop button 19R, respectively.

ストップボタン19L,19C,19Rは、遊技者による操作の対象となる各種装置の一例を示す。また、台座部12には、遊技者による操作の対象となる各種装置として、メダル投入口21、BETボタン22、スタートレバー23、SELECTボタン28、エンターボタン29が設けられている。   The stop buttons 19L, 19C, and 19R show examples of various devices to be operated by the player. The pedestal section 12 is provided with a medal slot 21, a BET button 22, a start lever 23, a SELECT button 28, and an enter button 29 as various devices to be operated by the player.

メダル投入口21は、遊技者によって外部から投下されるメダルを受け入れるために設けられる。メダル投入口21に受け入れられたメダルは、予め定められた規定数(例えば、3枚)を上限として1回の遊技に投入されることとなり、規定数を超えた分はパチスロ1の内部に預けることが可能となる(いわゆるクレジット機能)。   The medal insertion slot 21 is provided for receiving a medal dropped from outside by a player. The medals accepted by the medal insertion slot 21 are inserted into one game with a predetermined maximum number (for example, 3) as an upper limit, and the excess of the predetermined number is deposited in the pachislot 1. (So-called credit function).

BETボタン22は、パチスロ1の内部に預けられているメダルから1回の遊技に投入する枚数を決定するために設けられる。スタートレバー23は、全てのリール(3L,3C,3R)の回転を開始するために設けられる。   The BET button 22 is provided to determine the number of medals deposited in the pachislot 1 to be inserted into one game. The start lever 23 is provided for starting rotation of all reels (3L, 3C, 3R).

また、フロントドア2bを正面から見てリール表示窓4の左側方には、7セグメントLED(Light Emitting Diode)からなる7セグ表示器24が設けられている。この7セグ表示器24は、特典として遊技者に対して払い出すメダルの枚数(以下、払出枚数)、パチスロ内部に預けられているメダルの枚数(以下、クレジット枚数)等の情報をデジタル表示する。   Further, a 7-segment display 24 including a 7-segment LED (Light Emitting Diode) is provided on the left side of the reel display window 4 when the front door 2b is viewed from the front. The 7-segment display 24 digitally displays information such as the number of medals to be paid out to the player as a privilege (hereinafter, payout number) and the number of medals deposited in the pachislot (hereinafter, credit number). .

フロントドア2bを正面から見て台座部12の左側には、精算ボタン27が設けられている。この精算ボタン27は、パチスロ1の内部に預けられている外部に引き出す(排出する)ために設けられる。台座部12の下方には、腰部パネルユニット31が設けられている。腰部パネルユニット31は、任意の画像が描かれた装飾パネルと、この装飾パネルを背面側から照明するための光を出射する光源を有している。   A settlement button 27 is provided on the left side of the pedestal portion 12 when the front door 2b is viewed from the front. The payment button 27 is provided for pulling out (discharging) outside the pachislot 1. Below the pedestal portion 12, a waist panel unit 31 is provided. The waist panel unit 31 has a decorative panel on which an arbitrary image is drawn, and a light source that emits light for illuminating the decorative panel from the back side.

腰部パネルユニット31の下方には、メダル払出口32と、スピーカ用孔33L,33Rと、メダルトレイユニット34が設けられている。メダル払出口32は、後述のメダルセレクタ201から排出されるメダルや後述のホッパー装置51の駆動により排出されるメダルを外部に導く。メダル払出口32から排出されたメダルは、メダルトレイユニット34に貯められる。スピーカ用孔33L,33Rは、演出内容に応じた効果音や楽曲等の音を出力するために設けられている。   Below the waist panel unit 31, a medal payout port 32, speaker holes 33L and 33R, and a medal tray unit 34 are provided. The medal payout slot 32 guides medals discharged from a medal selector 201 described later and medals discharged by driving a hopper device 51 described later to the outside. The medals discharged from the medal payout outlet 32 are stored in a medal tray unit 34. The speaker holes 33L and 33R are provided for outputting sound effects and music such as music in accordance with the effect contents.

[内部構造]
図3及び図4は、パチスロ1の内部構造を示す斜視図である。この図3では、フロントドア2bが開放され、フロントドア2bの裏面側に設けられたミドルドア41がフロントドア2bに対して閉じた状態を示している。また、図4では、フロントドア2bが開放され、ミドルドア41がフロントドア2bに対して開いた状態を示している。
また、図5は、キャビネット2aの内部を示す説明図である。図6は、フロントドア2bの裏面側を示す説明図である。
[Internal structure]
3 and 4 are perspective views showing the internal structure of the pachislot 1. FIG. FIG. 3 shows a state in which the front door 2b is opened and the middle door 41 provided on the back side of the front door 2b is closed with respect to the front door 2b. FIG. 4 shows a state where the front door 2b is opened and the middle door 41 is opened with respect to the front door 2b.
FIG. 5 is an explanatory diagram showing the inside of the cabinet 2a. FIG. 6 is an explanatory diagram showing the back side of the front door 2b.

キャビネット2aは、上面板20aと、底面板20bと、左右の側面板20c,20dと、背面板20eを有している(図5参照)。キャビネット2a内部の上側には、キャビネット側スピーカ42が配設されている。このキャビネット側スピーカ42は、取付ブラケット43L,43Rを介してキャビネット2aの背面板20eに取り付けられている。キャビネット側スピーカ42は、例えば、効果音を出力するためのスピーカである。   The cabinet 2a has a top plate 20a, a bottom plate 20b, left and right side plates 20c and 20d, and a back plate 20e (see FIG. 5). A cabinet-side speaker 42 is provided above the inside of the cabinet 2a. The cabinet-side speaker 42 is mounted on the back plate 20e of the cabinet 2a via mounting brackets 43L and 43R. The cabinet-side speaker 42 is, for example, a speaker for outputting a sound effect.

キャビネット2a内部を正面から見て、キャビネット側スピーカ42の左側方には、キャビネット側中継基板44が配設されている。このキャビネット側中継基板44は、キャビネット2aの左側面板20cに取り付けられている。キャビネット側中継基板44は、ミドルドア41(図3及び図4参照)に取り付けられた後述する主制御基板71(図14参照)と、ホッパー装置51、メダル補助収納庫スイッチ(不図示)、メダル払出カウントスイッチ(不図示)とを接続する配線の中継を行う。   A cabinet-side relay board 44 is provided on the left side of the cabinet-side speaker 42 when the inside of the cabinet 2a is viewed from the front. The cabinet-side relay board 44 is attached to the left side plate 20c of the cabinet 2a. The cabinet-side relay board 44 includes a main control board 71 (see FIG. 14) described later attached to the middle door 41 (see FIGS. 3 and 4), a hopper device 51, a medal auxiliary storage switch (not shown), and a medal payout. It relays wiring for connecting to a count switch (not shown).

キャビネット2a内部の中央部には、キャビネット側スピーカ42による音の出力を制御するアンプ基板45が配設されている。このアンプ基板45は、左右の側面板20c,20dに固定された取付棚46に取り付けられている。   An amplifier board 45 for controlling the output of sound from the cabinet-side speaker 42 is provided in a central portion inside the cabinet 2a. The amplifier board 45 is mounted on a mounting shelf 46 fixed to the left and right side plates 20c and 20d.

また、キャビネット2a内部を正面から見て、アンプ基板45の右側には、外部集中端子板47が配設されている(図5参照)。この外部集中端子板47は、キャビネット2aの右側面板20dに取り付けられている。外部集中端子板47は、メダル投入信号、メダル払出信号及びセキュリティー信号などの信号をパチスロ1の外部へ出力するために設けられている。   When the inside of the cabinet 2a is viewed from the front, an external centralized terminal board 47 is provided on the right side of the amplifier board 45 (see FIG. 5). This external concentrated terminal plate 47 is attached to the right side plate 20d of the cabinet 2a. The external concentrated terminal board 47 is provided to output signals such as a medal insertion signal, a medal payout signal, and a security signal to the outside of the pachislot 1.

キャビネット2a内部を正面から見て、アンプ基板45の左側には、サブ電源装置48が配設されている。このサブ電源装置48は、キャビネット2aの左側面板20cに取り付けられている。サブ電源装置48は、交流電圧100Vの電力を後述する電源装置53に供給する。また、交流電圧100Vの電力を直流電圧の電力に変換して、アンプ基板45に供給する。   A sub power supply 48 is disposed on the left side of the amplifier board 45 when the inside of the cabinet 2a is viewed from the front. The sub power supply 48 is attached to the left side plate 20c of the cabinet 2a. The sub power supply 48 supplies power of an AC voltage of 100 V to a power supply 53 described later. Further, the power of the AC voltage of 100 V is converted into the power of the DC voltage and supplied to the amplifier board 45.

キャビネット2aの内部の下側には、メダル払出装置(以下、ホッパー装置)51と、メダル補助収納庫52と、電源装置53が配設されている。   A medal payout device (hereinafter, a hopper device) 51, a medal auxiliary storage 52, and a power supply device 53 are provided below the inside of the cabinet 2a.

ホッパー装置51(貯留手段)は、キャビネット2aにおける底面板20bの中央部に取り付けられている。このホッパー装置51は、多量のメダルを収容可能であり、それらを1枚ずつ排出可能な構造を有する。ホッパー装置51は、例えば、精算ボタン27(図2参照)が押圧されてパチスロ内部に預けられているメダルの精算を行うときに、収容したメダルをクレジット枚数分排出する。ホッパー装置51によって払い出されたメダルは、メダル払出口32(図2参照)から排出される。   The hopper device 51 (storage means) is attached to the center of the bottom plate 20b in the cabinet 2a. The hopper device 51 is capable of storing a large amount of medals, and has a structure capable of discharging the medals one by one. The hopper device 51 discharges the stored medals by the number of credits, for example, when the payment button 27 (see FIG. 2) is pressed to perform the payment of the medals deposited inside the pachislot. The medals paid out by the hopper device 51 are discharged from a medal payout opening 32 (see FIG. 2).

メダル補助収納庫52は、ホッパー装置51から溢れ出たメダルを収納する。このメダル補助収納庫52は、キャビネット2a内部を正面から見て、ホッパー装置51の右側に配置されている。メダル補助収納庫52は、キャビネット2aの底面板20bに係合されており、底面板20bに対して着脱可能に構成されている。   The medal auxiliary storage 52 stores medals overflowing from the hopper device 51. The medal auxiliary storage 52 is disposed on the right side of the hopper device 51 when the inside of the cabinet 2a is viewed from the front. The medal auxiliary storage 52 is engaged with the bottom plate 20b of the cabinet 2a, and is configured to be detachable from the bottom plate 20b.

電源装置53は、キャビネット2a内部を正面から見て、ホッパー装置51の左側に配置されており、左側面板20cに取り付けられている。この電源装置53は、電源スイッチ53aと、電源基板53bを有している(図14参照)。電源装置53は、サブ電源装置48から供給された交流電圧100Vの電力を各部で必要な直流電圧の電力に変換して、変換した電力を各部へ供給する。   The power supply device 53 is arranged on the left side of the hopper device 51 when the inside of the cabinet 2a is viewed from the front, and is attached to the left side plate 20c. The power supply device 53 has a power switch 53a and a power supply board 53b (see FIG. 14). The power supply device 53 converts the power of the AC voltage 100V supplied from the sub power supply device 48 into the power of the DC voltage required in each unit, and supplies the converted power to each unit.

図3,図4及び図6に示すように、ミドルドア41は、フロントドア2bの裏面における中央部に配置され、リール表示窓4(図4参照)を裏側から開閉可能に構成されている。ミドルドア41の上部と下部には、ドアストッパ41a,41b,41cが設けられている。このドアストッパ41a,41b,41cは、リール表示窓4を裏側から閉じた状態のミドルドア41の開動作を固定(禁止)する。すなわち、ミドルドア41を開くには、ドアストッパ41a,41b,41cを回転させてミドルドア41の固定を解除する必要がある。   As shown in FIGS. 3, 4 and 6, the middle door 41 is arranged at the center on the back surface of the front door 2b, and is configured to be able to open and close the reel display window 4 (see FIG. 4) from the back side. Door stoppers 41a, 41b, 41c are provided on the upper and lower portions of the middle door 41. The door stoppers 41a, 41b, 41c fix (prohibit) the opening operation of the middle door 41 with the reel display window 4 closed from the back side. That is, in order to open the middle door 41, it is necessary to release the fixing of the middle door 41 by rotating the door stoppers 41a, 41b, 41c.

ミドルドア41には、主制御基板71(図14参照)を収納した主制御基板ケース55と、3つのリール3L,3C,3Rが取り付けられている。3つのリール3L,3C,3Rには、所定の減速比をもったギアを介してステッピングモータが接続されている。   A main control board case 55 containing a main control board 71 (see FIG. 14) and three reels 3L, 3C, 3R are attached to the middle door 41. A stepping motor is connected to the three reels 3L, 3C, 3R via gears having a predetermined reduction ratio.

図6に示すように、主制御基板ケース55には、設定用鍵型スイッチ56が設けられている。この設定用鍵型スイッチ56は、パチスロ1の設定を変更もしくはパチスロ1の設定の確認を行うときに使用する。
本実施の形態では、主制御基板ケース55と、この主制御基板ケース55に収納された主制御基板71により、主制御基板ユニットが構成されている。
As shown in FIG. 6, the main control board case 55 is provided with a key switch 56 for setting. The setting key type switch 56 is used when changing the setting of the pachislot 1 or confirming the setting of the pachislot 1.
In the present embodiment, the main control board unit 55 is constituted by the main control board case 55 and the main control board 71 housed in the main control board case 55.

主制御基板ケース55に収納された主制御基板71(第1制御部)は、後述する主制御回路91(図15参照)を構成する。主制御回路91は、内部当籤役の決定、リール3L,3C,3Rの回転及び停止、入賞の有無の判定といった、パチスロ1における遊技の主な流れを制御する回路である。主制御回路91の具体的な構成は後述する。   The main control board 71 (first control unit) housed in the main control board case 55 constitutes a main control circuit 91 (see FIG. 15) described later. The main control circuit 91 is a circuit that controls the main flow of the game in the pachislo 1 such as determination of an internal winning combination, rotation and stop of the reels 3L, 3C, 3R, and determination of presence or absence of a prize. The specific configuration of the main control circuit 91 will be described later.

ミドルドア41の上方には、副制御基板72(図14参照)を収容する副制御基板ケース57が配設されおり、副制御基板ケース57の上方には、センタースピーカ58が配設されている。副制御基板ケース57に収納された副制御基板72は、副制御回路101(図16参照)を構成する。この副制御回路101(第2制御部)は、映像の表示等による演出の実行を制御する回路である。副制御回路101の具体的な構成は後述する。   Above the middle door 41, a sub-control board case 57 that accommodates the sub-control board 72 (see FIG. 14) is provided. Above the sub-control board case 57, a center speaker 58 is provided. The sub-control board 72 housed in the sub-control board case 57 forms the sub-control circuit 101 (see FIG. 16). The sub control circuit 101 (second control unit) is a circuit that controls execution of effects such as display of images. The specific configuration of the sub control circuit 101 will be described later.

フロントドア2bを裏面側から見て、副制御基板ケース57の右側方には、副中継基板61が配設されている。この副中継基板61は、副制御基板72と主制御基板71とを接続する配線を中継する。また、副制御基板72と副制御基板72の周辺に配設された基板とを接続する配線を中継する基板である。なお、副制御基板72の周辺に配設される基板としては、後述するLED基板62A,62B,62Cが挙げられる。   A sub relay board 61 is disposed on the right side of the sub control board case 57 when the front door 2b is viewed from the back side. The sub-relay board 61 relays wiring connecting the sub-control board 72 and the main control board 71. Further, it is a board that relays wiring for connecting the sub-control board 72 and a board disposed around the sub-control board 72. In addition, examples of the board disposed around the sub-control board 72 include LED boards 62A, 62B, and 62C described later.

LED基板62A,62B,62Cは、フロントドア2bの裏面側から見て、副制御基板ケース57の両側に配設されている。これらLED基板62A,62B,62Cは、副制御回路101(図16参照)の制御により実行される演出に応じて、光源の一具体例を示す複数のLED(Light Emitting Diode)85(図14参照)を発光させて、点滅パターンを表示する。なお、本実施の形態のパチスロ1には、LED基板62A,62B,62C以外に複数のLED基板を備えている。   The LED boards 62A, 62B, 62C are provided on both sides of the sub-control board case 57 when viewed from the back side of the front door 2b. These LED boards 62A, 62B, and 62C are provided with a plurality of LEDs (Light Emitting Diodes) 85 (see FIG. 14) showing a specific example of a light source according to an effect performed under the control of the sub-control circuit 101 (see FIG. 16). ) To emit light and display a blinking pattern. The pachislo 1 of the present embodiment includes a plurality of LED boards in addition to the LED boards 62A, 62B, and 62C.

副中継基板61の下方には、24hドア開閉監視ユニット63が配設されている。この24hドア開閉監視ユニット63は、フロントドア2bの開閉の履歴を保存する。また、フロントドア2bを開放したときに、液晶表示装置11にエラー表示を行うための信号を副制御基板72(副制御回路101)に出力する。   Below the sub-relay board 61, a 24h door opening / closing monitoring unit 63 is provided. The 24h door opening / closing monitoring unit 63 stores a history of opening / closing of the front door 2b. Further, when the front door 2b is opened, a signal for displaying an error on the liquid crystal display device 11 is output to the sub control board 72 (sub control circuit 101).

ミドルドア41の下方には、ボードスピーカ64と、下部スピーカ65L,65Rが配設されている。ボードスピーカ64は、腰部パネルユニット31(図2参照)に対向しており、下部スピーカ65L,65Rは、それぞれスピーカ用孔33L,33R(図2参照)に対向している。   Below the middle door 41, a board speaker 64 and lower speakers 65L and 65R are provided. The board speaker 64 faces the waist panel unit 31 (see FIG. 2), and the lower speakers 65L and 65R face the speaker holes 33L and 33R (see FIG. 2), respectively.

下部スピーカ65Lの上方には、メダルセレクタ201と、メダルシュート202と、ドア開閉監視スイッチ67と、が配設されている。メダルセレクタ201は、メダルの材質や形状等が適正であるか否かを判別する装置であり、メダル投入口21に投入されたメダルを、スロープ203を介してホッパー装置51へ案内し、又はメダルシュート202へ案内する。メダルセレクタ201の具体的な構成については後述する。   Above the lower speaker 65L, a medal selector 201, a medal chute 202, and a door open / close monitoring switch 67 are provided. The medal selector 201 is a device that determines whether or not the material and shape of the medal are appropriate, and guides the medal inserted into the medal insertion slot 21 to the hopper device 51 via the slope 203, or Guide to shoot 202. The specific configuration of the medal selector 201 will be described later.

メダルシュート202は、略Y字状の筒状の部材であり、メダルセレクタ201によって案内されたメダルやホッパー装置51から排出されたメダルをメダル払出口32(図2参照)に案内する。   The medal shoot 202 is a substantially Y-shaped tubular member, and guides the medal guided by the medal selector 201 and the medal discharged from the hopper device 51 to the medal payout opening 32 (see FIG. 2).

ドア開閉監視スイッチ67は、フロントドア2bを裏面側から見て、メダルセレクタ201の左側方に配置されている。このドア開閉監視スイッチ67は、パチスロ1の外部へ、フロントドア2bの開閉を報知するためのセキュリティー信号を出力する。   The door opening / closing monitoring switch 67 is disposed on the left side of the medal selector 201 when the front door 2b is viewed from the back side. The door opening / closing monitor switch 67 outputs a security signal to the outside of the pachislot 1 to notify the opening / closing of the front door 2b.

また、リール表示窓4の下方であってミドルドア41により開閉される領域には、ドア中継端子板68が配設されている(図4参照)。このドア中継端子板68は、主制御基板ケース55内の主制御基板71(図14参照)と、各種のボタンやスイッチ、副制御基板72(図14参照)、メダルセレクタ201及び遊技動作表示基板81(図14参照)との配線を中継する基板である。なお、各種のボタン及びスイッチとしては、例えば、BETボタン22、精算ボタン27、ドア開閉監視スイッチ67、後述するBETスイッチ77、スタートスイッチ79等を挙げることができる。   Further, a door relay terminal plate 68 is disposed below the reel display window 4 and in a region opened and closed by the middle door 41 (see FIG. 4). The door relay terminal plate 68 includes a main control board 71 (see FIG. 14) in the main control board case 55, various buttons and switches, a sub control board 72 (see FIG. 14), a medal selector 201, and a game operation display board. 81 (see FIG. 14). The various buttons and switches include, for example, a BET button 22, a settlement button 27, a door open / close monitoring switch 67, a BET switch 77, a start switch 79, and the like, which will be described later.

<メダルセレクタの構成>
次に、図7〜図13を参照して、メダルセレクタ201の具体的な構成について説明する。図7は、メダルセレクタ201をパチスロ1の斜め後方から見た斜視図であり、メダルセレクタ201に固定されるカバー部材240を外した態様を示している。図8は、メダルセレクタ201の分解図である。図9は、メダルセレクタ201をパチスロ1の斜め前方から見た斜視図である。図10は、メダルセレクタ201の後述するベース板部204の背面図である。図11は、メダルセレクタ201の後述するセレクトプレート207の斜視図である。図12は、メダルセレクタ201がメダルをホッパー装置51へ案内する場合のメダルの経路を示す図である。図13は、メダルセレクタ201がメダルをメダルシュート202に案内する場合のメダルの経路を示す図である。なお、図7〜図13に示す矢印Xはパチスロ1の左右方向を示し、矢印Yはパチスロ1の前後方向を示し、矢印Zは上下方向を示す。なお、本実施形態のメダルセレクタ201並びに後述する各変形例におけるメダルセレクタ301,メダルセレクタ401、メダルセレクタ501、メダルセレクタ601、メダルセレクタ701及びメダルセレクタ801のそれぞれは、遊技媒体検出手段を構成する。
<Configuration of medal selector>
Next, a specific configuration of the medal selector 201 will be described with reference to FIGS. FIG. 7 is a perspective view of the medal selector 201 as viewed obliquely from the back of the pachislot 1 and shows a state in which a cover member 240 fixed to the medal selector 201 is removed. FIG. 8 is an exploded view of the medal selector 201. FIG. 9 is a perspective view of the medal selector 201 as viewed obliquely from the front of the pachislot 1. FIG. FIG. 10 is a rear view of a base plate portion 204 of the medal selector 201 described later. FIG. 11 is a perspective view of a later-described select plate 207 of the medal selector 201. FIG. 12 is a diagram illustrating a medal path when the medal selector 201 guides the medal to the hopper device 51. FIG. 13 is a diagram illustrating a medal path when the medal selector 201 guides the medal to the medal shoot 202. In addition, arrow X shown in FIGS. 7-13 shows the left-right direction of the pachislot 1, the arrow Y shows the front-back direction of the pachislot 1, and the arrow Z shows the up-down direction. Note that each of the medal selector 201 of the present embodiment and the medal selector 301, the medal selector 401, the medal selector 501, the medal selector 601, the medal selector 701, and the medal selector 801 in each of the modified examples described below constitute a game medium detection unit. .

図7〜図9に示すように、メダルセレクタ201は、ベース板部204と、サブプレート205と、キャンセルシュータ206と、セレクトプレート207(ガイド手段)と、メダルソレノイド208(駆動手段、図9参照)、カメラユニット209(撮像手段、又は、通過物体検出手段)と、を備えている。また、図7に示すように、メダルセレクタ201には、メダルセレクタ201のパチスロ1の前後方向の後側を覆うカバー部材240が固定されている。図7では、メダルセレクタ201から取り外したカバー部材240を破線で示している。カバー部材240は、メダルセレクタ201におけるパチスロ1の前後方向の後側を覆う閉鎖状態と、同後側を露出する開放状態に設定可能である。   As shown in FIGS. 7 to 9, the medal selector 201 includes a base plate 204, a sub plate 205, a cancel shooter 206, a select plate 207 (guide means), and a medal solenoid 208 (drive means, see FIG. 9). ), And a camera unit 209 (imaging means or passing object detecting means). As shown in FIG. 7, a cover member 240 that covers the rear side of the medal selector 201 in the front-rear direction of the pachislot 1 is fixed to the medal selector 201. In FIG. 7, the cover member 240 removed from the medal selector 201 is indicated by a broken line. The cover member 240 can be set to a closed state that covers the rear side of the pachislot 1 in the front-rear direction of the medal selector 201, and an open state that exposes the rear side.

ベース板部204は、メダルセレクタ201の外枠筐体を構成する略板状の部材であり、パチスロ1の左右方向の両端部がパチスロ1の後方に折曲するように成型されている黒色の樹脂製の部材である。ベース板部204は、パチスロ1の前後方向に直交する一方の平面である後面204bと他方の平面である前面204a(図9参照)を有している。後面204bには、メダルレール210(通路形成部)が、パチスロ1の前方へ凹むように、且つ、略L字状に形成されている。メダルレール210の表面には、複数の突条部210aが形成されている。   The base plate portion 204 is a substantially plate-shaped member that forms an outer frame housing of the medal selector 201, and is formed in such a manner that both left and right ends of the pachislot 1 are molded to bend backward of the pachislot 1. It is a resin member. The base plate portion 204 has a rear surface 204b, which is one plane orthogonal to the front-rear direction of the pachislot 1, and a front surface 204a, which is the other plane (see FIG. 9). A medal rail 210 (passage forming portion) is formed on the rear surface 204b so as to be recessed in front of the pachislot 1 and in a substantially L-shape. A plurality of ridges 210a are formed on the surface of the medal rail 210.

ベース板部204の上端部には、メダル投入口21(図2参照)から投入されるメダルを受け入れるメダル入口部211が設けられている。メダル入口部211からメダルセレクタ201内に投入されたメダルは、メダルレール210に沿って上方から下方へ移動する。ベース板部204の下部には、メダル出口部204c(図8参照)が設けられている。メダルセレクタ201内を移動したメダルは、メダル出口部204cから排出され、スロープ203(図4参照)を介してホッパー装置51に収容される。   At the upper end of the base plate 204, a medal entrance 211 for receiving medals inserted from the medal insertion slot 21 (see FIG. 2) is provided. The medals inserted into the medal selector 201 from the medal entrance section 211 move from above to below along the medal rail 210. A medal exit portion 204c (see FIG. 8) is provided below the base plate portion 204. The medals that have moved inside the medal selector 201 are discharged from the medal exit section 204c, and are stored in the hopper device 51 via the slope 203 (see FIG. 4).

メダルレール210の略中間位置には前後方向に貫通する中央孔212が形成されており、この中央孔212からはメダルプレッシャ213(図8参照)の端部が露出している。図9に示すように、メダルプレッシャ213は、ベース板部204の前面204aに設けられた軸部214に回動可能に支持されている。この軸部214には、コイルばね215が取り付けられており、メダルプレッシャ213は、コイルばね215により、メダルプレッシャ213が中央孔212から突出するように付勢されている。   A central hole 212 penetrating in the front-rear direction is formed at a substantially intermediate position of the medal rail 210, and an end of the medal pressure 213 (see FIG. 8) is exposed from the central hole 212. As shown in FIG. 9, the medal pressure 213 is rotatably supported by a shaft 214 provided on the front surface 204a of the base plate portion 204. A coil spring 215 is attached to the shaft 214, and the medal pressure 213 is urged by the coil spring 215 so that the medal pressure 213 protrudes from the central hole 212.

図9に示すように、ベース板部204の前面204aには、磁石217が設けられている。磁石217は、メダルレール210上を移動するメダルの内、適正な材質でない不正メダルを吸着(着磁)する。   As shown in FIG. 9, a magnet 217 is provided on the front surface 204a of the base plate portion 204. The magnet 217 attracts (magnetizes) an improper medal which is not a proper material among medals moving on the medal rail 210.

また、図8に示すように、メダルレール210の下流領域の略中央部には、前後方向に貫通し、後述するアフタメダルプレッシャ218の後端部が露出する上露出孔219が形成されている。また、メダルレール210の下流領域の下部には、前後方向に貫通し、セレクトプレート207の後述するメダルストッパ部227が露出する下露出孔220が形成されている。   As shown in FIG. 8, an upper exposure hole 219 that penetrates in the front-rear direction and that exposes a rear end portion of an after-medal pressure 218 described later is formed at a substantially central portion of a downstream region of the medal rail 210. . A lower exposure hole 220 that penetrates in the front-rear direction and that exposes a medal stopper 227 of the select plate 207, which will be described later, is formed below the downstream area of the medal rail 210.

また、図10に示すように、メダルレール210には、6つの基準マーカー260が形成されている。基準マーカー260は、カメラユニット209が撮像するメダルレール210上の領域である撮像領域A1(図10では1点鎖線で示す)内に配置されている。   In addition, as shown in FIG. 10, six reference markers 260 are formed on the medal rail 210. The reference marker 260 is disposed in an imaging area A1 (indicated by a dashed line in FIG. 10) which is an area on the medal rail 210 where the camera unit 209 images.

基準マーカー260は、上部基準マーカー261と、下部基準マーカー262とからなり、上部基準マーカー261は、メダルレール210の上部で、傾斜しながら、左右方向に3つ並ぶように配置されている。また、下部基準マーカー262は、メダルレール210の下部で、傾斜しながら左右方向に3つ並ぶように配置されている。   The reference marker 260 is composed of an upper reference marker 261 and a lower reference marker 262. The upper reference marker 261 is arranged above the medal rail 210 so as to be arranged side by side in the left and right direction while being inclined. Further, three lower reference markers 262 are arranged below the medal rail 210 so as to be aligned in the left-right direction while being inclined.

基準マーカー260は、カメラユニット209が撮像した撮像領域の画像データにおいて、基準マーカー260が形成されている箇所の画素に係る輝度と、基準マーカー260が形成されていない箇所の画素に係る輝度と、が所定値以上異なるように、形成されている。本実施形態では、各基準マーカー260は、メダルレール210に三角形の孔を空けることで形成されている。なお、基準マーカー260の形成態様はこれに限らず、孔の形状は適宜選択可能である。また、例えば、基準マーカー260を、メダルレール210上に、メダルレール210の地の色とは、異なる色の図形を印刷することで、形成してもよい。   The reference marker 260 includes, in the image data of the imaging region captured by the camera unit 209, the luminance of the pixel at the position where the reference marker 260 is formed, and the luminance of the pixel at the position where the reference marker 260 is not formed. Are different from each other by a predetermined value or more. In the present embodiment, each reference marker 260 is formed by making a triangular hole in the medal rail 210. The form of the reference marker 260 is not limited to this, and the shape of the hole can be appropriately selected. Further, for example, the reference marker 260 may be formed on the medal rail 210 by printing a figure having a color different from the ground color of the medal rail 210.

図9に示すように、メダルソレノイド208は、ソレノイド本体部208aと、板状に形成され、一端部及び他端部が前後方向に移動可能にソレノイド本体部208aに支持されている可動板部208bを備えている。アフタメダルプレッシャ218は、ベース板部204の前面204aに回動可能に軸支されている。アフタメダルプレッシャ218の前端部がメダルソレノイド208の可動板部208bによってパチスロ1の後方へ押圧されると、アフタメダルプレッシャ218は回動し、アフタメダルプレッシャ218の後端部が上露出孔219(図8参照)から露出する。   As shown in FIG. 9, the medal solenoid 208 is formed in a plate shape with a solenoid body 208a, and a movable plate 208b having one end and the other end supported by the solenoid body 208a so as to be movable in the front-rear direction. It has. The after-medal pressure 218 is rotatably supported on the front surface 204 a of the base plate portion 204. When the front end of the after-medal pressure 218 is pressed to the rear of the pachislot 1 by the movable plate portion 208b of the medal solenoid 208, the after-medal pressure 218 rotates, and the rear end of the after-medal pressure 218 is exposed at the upper exposure hole 219 ( (See FIG. 8).

図7及び図8に示すように、キャンセルシュータ206は、略板状の部材であり、パチスロ1の左右方向の両端部がパチスロ1の前方に折曲するように成型されている。キャンセルシュータ206は、ベース板部204に着脱可能に固定され、ベース板部204の下部を後方から覆っている。キャンセルシュータ206は、メダル出口部204cを介することなく排出されるメダルをメダルシュート202(図4参照)に案内する。キャンセルシュータ206の左右方向の略中央部の上部には、下方に略矩形状に切り欠いた切欠き部206aが形成されている。   As shown in FIGS. 7 and 8, the cancel shooter 206 is a substantially plate-shaped member, and is formed so that both left and right ends of the pachislot 1 are bent forward of the pachislot 1. The cancel shooter 206 is detachably fixed to the base plate portion 204 and covers a lower portion of the base plate portion 204 from behind. The cancel shooter 206 guides medals discharged without passing through the medal exit section 204c to the medal shoot 202 (see FIG. 4). A cutout portion 206a, which is cut out in a substantially rectangular shape below, is formed at an upper portion of a substantially central portion of the cancel shooter 206 in the left-right direction.

また、キャンセルシュータ206には、報知用LED206cが設けられている。報知用LED206cは、後述するAE補正処理においてエラーが発生した旨を点灯して報知する報知手段を構成する。また、初期化スイッチ206d、色スイッチ206e、刻印スイッチ206fが設けられている。初期化スイッチ206dは、後述する各種テンプレートの削除を含む各種設定をリセットする際に操作される。色スイッチ206eは、後述する色判定の有効、無効を切り換える際に操作される。刻印スイッチ206fは、後述する刻印判定の有効、無効を切り換える際に操作される。   The cancel shooter 206 is provided with a notification LED 206c. The notification LED 206c constitutes notification means for lighting and notifying that an error has occurred in the AE correction process described later. Further, an initialization switch 206d, a color switch 206e, and an engraving switch 206f are provided. The initialization switch 206d is operated when resetting various settings including deletion of various templates described later. The color switch 206e is operated to switch between valid and invalid color determination described later. The engraving switch 206f is operated when switching the engraving determination described later between valid and invalid.

図7及び図8に示すように、サブプレート205は、メダルレール210を後方から覆う板状の部材である。サブプレート205は、平板状の本体部221と、この本体部221の上部に設けた軸部222と、を有している。本体部221の略中央部には、前後方向に貫通する貫通孔221aが設けられており、貫通孔221aからはメダルレール210の略中央部から下流領域が露出している。   As shown in FIGS. 7 and 8, the sub plate 205 is a plate-shaped member that covers the medal rail 210 from behind. The sub-plate 205 has a flat plate-shaped main body 221 and a shaft 222 provided above the main body 221. At a substantially central portion of the main body 221, a through hole 221 a penetrating in the front-rear direction is provided, and a downstream region is exposed from the substantially central portion of the medal rail 210 from the through hole 221 a.

軸部222は、ベース板部204に支持されており、サブプレート205は、軸部222を中心に回動可能にベース板部204に取り付けられている。軸部222には、にはコイルばね223が取り付けられている。通常時、サブプレート205は、コイルばね223の付勢力により、ベース板部204側に押し付けられている。このとき、サブプレート205と、サブプレート205に覆われたメダルレール210の上部との間には、メダルが通過可能な空間が形成されている。すなわち、サブプレート205は、メダルを通過させるガイド板として機能する。   The shaft portion 222 is supported by the base plate portion 204, and the sub-plate 205 is attached to the base plate portion 204 so as to be rotatable about the shaft portion 222. A coil spring 223 is attached to the shaft 222. Normally, the sub-plate 205 is pressed against the base plate 204 by the urging force of the coil spring 223. At this time, a space through which medals can pass is formed between the sub-plate 205 and the upper part of the medal rail 210 covered by the sub-plate 205. That is, the sub plate 205 functions as a guide plate through which medals pass.

ここで、例えば、メダルセレクタ201内にメダル詰まりが生じた場合、サブプレート205をコイルばね223の付勢力に抗して回動させて、メダル詰まりを解消することができる。 Here, for example, when a medal jam occurs in the medal selector 201, the medal jam can be resolved by rotating the sub-plate 205 against the urging force of the coil spring 223.

図7に示すように、セレクトプレート207は、サブプレート205に覆われていないメダルレール210の略中央部を移動するメダルをガイドする部材である。図11に示すように、セレクトプレート207は、略台形板状のプレート本体224と、プレート本体224の左右方向の両端部がパチスロ1の前方へ折曲することで形成されている一対の軸受部225と、を有している。また、プレート本体224の上部には、パチスロ1の前方へ折曲し、後端部が上方へ折曲することで形成されているフランジ部226が形成されている。また、一方の軸受部225には、下方へ延びるメダルストッパ部227が形成されている。   As shown in FIG. 7, the select plate 207 is a member that guides medals that move in a substantially central portion of the medal rail 210 that is not covered by the sub plate 205. As shown in FIG. 11, the select plate 207 includes a plate body 224 having a substantially trapezoidal plate shape, and a pair of bearings formed by bending both left and right ends of the plate body 224 forward of the pachislot 1. 225. In addition, a flange 226 formed by bending the pachislot 1 forward and bending the rear end upward is formed at an upper portion of the plate main body 224. Further, a medal stopper 227 extending downward is formed on one of the bearings 225.

図7に示すように、プレート本体224は、サブプレート205に覆われていないメダルレール210の略中央部とパチスロ1の前後方向に対向している。   As shown in FIG. 7, the plate main body 224 faces substantially the center of the medal rail 210 not covered by the sub plate 205 in the front-rear direction of the pachislot 1.

図9に示すように、セレクトプレート207は、ベース板部204の前面204aに設けられた軸部228に回動可能に支持されている。軸部228にはコイルばね229が設けられており、フランジ部226をパチスロ1の前方へ付勢する。フランジ部226は、メダルソレノイド208の可動板部208bの一端部と接触している。メダルソレノイド208がON状態にあるとき、フランジ部226はメダルソレノイド208の可動板部208bの一端部に押圧され、コイルばね229の付勢力に抗してパチスロ1の後方へ移動する。このときの、セレクトプレート207の回動位置を「ガイド位置」と称する。ガイド位置にあるセレクトプレート207のプレート本体224とメダルレール210との距離は、メダルをキャンセルシュータ206側に排出することなくホッパー装置51へガイド可能な所定の距離に設定されている。また、このときメダルストッパ部227は、下露出孔220(図8参照)から突出しない。   As shown in FIG. 9, the select plate 207 is rotatably supported by a shaft 228 provided on the front surface 204 a of the base plate 204. A coil spring 229 is provided on the shaft 228, and urges the flange 226 forward of the pachislot 1. The flange 226 is in contact with one end of the movable plate 208b of the medal solenoid 208. When the medal solenoid 208 is in the ON state, the flange 226 is pressed by one end of the movable plate 208b of the medal solenoid 208 and moves rearward of the pachislot 1 against the urging force of the coil spring 229. The rotation position of the select plate 207 at this time is referred to as a “guide position”. The distance between the plate main body 224 of the select plate 207 at the guide position and the medal rail 210 is set to a predetermined distance at which the medal can be guided to the hopper device 51 without discharging the medal to the cancel shooter 206 side. At this time, the medal stopper 227 does not protrude from the lower exposure hole 220 (see FIG. 8).

また、メダルソレノイド208がOFF状態にあるとき、フランジ部226はメダルソレノイド208の押圧から解放され、コイルばね229の付勢力によってパチスロ1の前方へ移動する。このときの、セレクトプレート207の回動位置を「排出位置」と称する。排出位置にあるセレクトプレート207のプレート本体224とメダルレール210との距離は、所定の距離よりも長い距離に設定されている。このとき、パチスロ1の前方へ移動するフランジ部226に押圧され、メダルソレノイド208の可動板部208bの一端部はパチスロ1の前方へ移動する。これに伴ってメダルソレノイド208の可動板部208bの他端部がパチスロ1の後方へ移動し、アフタメダルプレッシャ218の前端部を押圧する。これによってアフタメダルプレッシャ218は回動し、アフタメダルプレッシャ218の後端部が上露出孔219(図8参照)から露出する。   When the medal solenoid 208 is in the OFF state, the flange portion 226 is released from the pressing of the medal solenoid 208 and moves forward of the pachislot 1 by the urging force of the coil spring 229. The rotation position of the select plate 207 at this time is referred to as a “discharge position”. The distance between the plate body 224 of the select plate 207 at the discharge position and the medal rail 210 is set to be longer than a predetermined distance. At this time, one end of the movable plate portion 208b of the medal solenoid 208 moves forward of the pachislot 1 by being pressed by the flange portion 226 moving forward of the pachislot 1. Along with this, the other end of the movable plate 208b of the medal solenoid 208 moves rearward of the pachislot 1 and presses the front end of the after-medal pressure 218. As a result, the after-medal pressure 218 rotates, and the rear end of the after-medal pressure 218 is exposed from the upper exposure hole 219 (see FIG. 8).

メダルストッパ部227は、セレクトプレート207がガイド位置にあるときは下露出孔220(図8参照)から突出せず、排出位置にあるときは下露出孔220から突出する。   The medal stopper 227 does not protrude from the lower exposure hole 220 (see FIG. 8) when the select plate 207 is at the guide position, but protrudes from the lower exposure hole 220 when it is at the discharge position.

図12に示すように、ガイド位置にあるセレクトプレート207は、メダルレール210上を移動するメダルが規格寸法を満たす場合、移動するメダルの上部と接触し、メダルをメダル出口部204c(図8参照)へ案内する。メダルは、セレクトプレート207に案内されているとき、メダルプレッシャ213をパチスロ1の前方へ押圧する。なお、図12では、メダルセレクタ201のサブプレート205やキャンセルシュータ206の図示を省略している。   As shown in FIG. 12, when the medal moving on the medal rail 210 satisfies the standard size, the select plate 207 at the guide position comes into contact with the upper part of the medal moving, and the medal exit portion 204c (see FIG. 8). ). When the medal is guided by the select plate 207, the medal pressure 213 is pressed forward of the pachislot 1. In FIG. 12, the illustration of the sub plate 205 and the cancel shooter 206 of the medal selector 201 is omitted.

一方、図13に示すように、排出位置にあるセレクトプレート207は、メダルレール210上を移動するメダルが規格寸法を満たす場合であっても、プレート本体224とメダルレール210との距離が離れているため、メダルをメダル出口部204c(図8参照)へ案内することができない。また、メダルは、メダルプレッシャ213、上露出孔219から突出するアフタメダルプレッシャ218、又は、下露出孔220から突出するメダルストッパ部227に押し出され、キャンセルシュータ206に向けて排出される。なお、図13では、図12と同様に、メダルセレクタ201のサブプレート205やキャンセルシュータ206の図示を省略している。   On the other hand, as shown in FIG. 13, the select plate 207 at the discharge position has a large distance between the plate body 224 and the medal rail 210 even when the medal moving on the medal rail 210 satisfies the standard size. Therefore, the medal cannot be guided to the medal exit unit 204c (see FIG. 8). The medals are pushed out by a medal pressure 213, an after-medal pressure 218 protruding from the upper exposure hole 219, or a medal stopper 227 protruding from the lower exposure hole 220, and are discharged toward the cancel shooter 206. In FIG. 13, the illustration of the sub plate 205 and the cancel shooter 206 of the medal selector 201 is omitted as in FIG.

また、本実施形態においてセレクトプレート207は、通常、ガイド位置に位置付けされているが、所定の条件下(例えば、規定枚数のメダル投入時、エラー発生時、遊技開始時など)では、排出位置に位置付けされている。   In the present embodiment, the select plate 207 is normally positioned at the guide position. However, under a predetermined condition (for example, when inserting a predetermined number of medals, when an error occurs, at the start of a game, etc.), the select plate 207 is positioned at the discharge position. It is positioned.

また、メダルレール210上を移動するメダルが規格寸法よりも小径の場合、セレクトプレート207がガイド位置にあっても、メダルはセレクトプレート207に案内されず、メダルプレッシャ213に押し出され、キャンセルシュータ206に向けて排出される。   When the medal moving on the medal rail 210 has a smaller diameter than the standard size, even if the select plate 207 is at the guide position, the medal is not guided by the select plate 207 but is pushed out by the medal pressure 213 and the cancel shooter 206 It is discharged toward.

図7及び図8に示すように、カメラユニット209は、第1の基板230、第2の基板231及び図示しないレンズで構成されており、メダルレール210上を移動する物体が正規メダルか否かを判定し、判定結果を主制御回路91に出力するユニットである。第1の基板230には、CMOSイメージセンサ232(図17参照)及びLED233(図17参照)が設けられている。第2の基板231には、CMOSイメージセンサ232及びLED233と通信可能、及び、制御可能に接続されている制御LSI234(図17参照)が設けられている。   As shown in FIGS. 7 and 8, the camera unit 209 includes a first substrate 230, a second substrate 231, and a lens (not shown), and determines whether an object moving on the medal rail 210 is a regular medal. And outputs the result of the determination to the main control circuit 91. On the first substrate 230, a CMOS image sensor 232 (see FIG. 17) and an LED 233 (see FIG. 17) are provided. The second substrate 231 is provided with a control LSI 234 (see FIG. 17) communicably and controllably connected to the CMOS image sensor 232 and the LED 233.

第1の基板230と第2の基板231は、BtoB(Board-to-Board)形式のコネクタ(不図示)で接続され、また、各基板230,231の角部に設けられた脚部235によって固定されている。なお、カメラユニット209の回路の具体的な構成については後述する。また、本実施形態では、カメラユニット209を2つの基板230,231とレンズで構成する態様を説明したが、これに代えて、CMOSイメージセンサ232、LED233及び制御LSI234を設けた一つの基板で、カメラユニットを構成してもよい。また、絞り機構を追加してもよい。   The first substrate 230 and the second substrate 231 are connected by a BtoB (Board-to-Board) type connector (not shown), and legs 235 provided at corners of the respective substrates 230 and 231. Fixed. The specific configuration of the circuit of the camera unit 209 will be described later. Further, in the present embodiment, the mode in which the camera unit 209 is configured by the two substrates 230 and 231 and the lens has been described. However, instead of this, one substrate provided with the CMOS image sensor 232, the LED 233, and the control LSI 234 may be used. A camera unit may be configured. Further, an aperture mechanism may be added.

カメラユニット209は、キャンセルシュータ206の上部の切欠き部206aの周囲に設けられたビス穴206bに、第1の基板230がビス止めされることで、固定されている。   The camera unit 209 is fixed by screwing a first substrate 230 into a screw hole 206b provided around a notch 206a at the top of the cancel shooter 206.

CMOSイメージセンサ232(図17参照)は、第1の基板230の略中央部分に設けられている。CMOSイメージセンサ232は、キャンセルシュータ206の切欠き部206a(図8参照)を介して、メダルレール210上の撮像領域A1(図10参照)を撮像し、撮像した画像データを制御LSI234(図17参照)に出力する。   The CMOS image sensor 232 (see FIG. 17) is provided at a substantially central portion of the first substrate 230. The CMOS image sensor 232 captures an image of the imaging area A1 (see FIG. 10) on the medal rail 210 via the notch 206a (see FIG. 8) of the cancel shooter 206, and controls the captured image data with the control LSI 234 (see FIG. 17). Output).

LED233(図17参照)は、CMOSイメージセンサ232の周囲で面発光し、メダルレール210上を移動する物体に光を照射する。制御LSI234(図17参照)は、CMOSイメージセンサ232から出力された画像データに基づいて、メダルレール210上を移動する物体が正規メダルか否かを判定し、判定結果を主制御回路91に出力する。なお、本実施形態では、切欠き部206aの周囲に形成したビス穴206bにビス止めすることでカメラユニット209をキャンセルシュータ206に固定する態様を説明したが、カメラユニットの固定態様はこれに限定されない。例えば、第1の基板230と第2の基板231の間に取り付けレールを設け、また、キャンセルシュータ206の上部に凹部を設け、この凹部に取り付けレールを嵌めた上で、取り付けレールとキャンセルシュータ206をビス止め又は接着剤で固定するようにしてもよい。   The LED 233 (see FIG. 17) emits surface light around the CMOS image sensor 232 and irradiates an object moving on the medal rail 210 with light. The control LSI 234 (see FIG. 17) determines whether or not the object moving on the medal rail 210 is a regular medal based on the image data output from the CMOS image sensor 232, and outputs the determination result to the main control circuit 91. I do. In the present embodiment, the mode in which the camera unit 209 is fixed to the cancel shooter 206 by screwing into the screw hole 206b formed around the notch 206a has been described, but the mode of fixing the camera unit is not limited to this. Not done. For example, a mounting rail is provided between the first substrate 230 and the second substrate 231, a concave portion is provided in an upper portion of the cancel shooter 206, and the mounting rail is fitted into the concave portion, and then the mounting rail and the cancel shooter 206 are mounted. May be fixed with screws or an adhesive.

<パチスロが備える回路の構成>
次に、パチスロ1が備える回路の構成について、図14〜図19を参照して説明する。
まず、図14を参照してパチスロ1が備える回路全体の概要について説明する。図14は、パチスロ1が備える回路全体のブロック構成図である。
<Configuration of circuit included in pachislot>
Next, a configuration of a circuit included in the pachislo 1 will be described with reference to FIGS.
First, an overview of the entire circuit provided in the pachislo 1 will be described with reference to FIG. FIG. 14 is a block diagram of the entire circuit included in the pachislo 1.

パチスロ1は、ミドルドア41に配設された主制御基板71(第1制御手段)と、フロントドア2bに配設された副制御基板72(制御手段、第2制御手段)を有している。
主制御基板71には、リール中継端子板74と、設定用鍵型スイッチ56と、外部集中端子板47と、ホッパー装置51と、メダル補助収納庫スイッチ75と、電源装置53の電源基板53bが接続されている。設定用鍵型スイッチ56、外部集中端子板47、ホッパー装置51及びメダル補助収納庫スイッチ75は、キャビネット側中継基板44を介して主制御基板71に接続されている。外部集中端子板47及びホッパー装置51については、上述したため、説明を省略する。
The pachislot 1 has a main control board 71 (first control means) provided on the middle door 41 and a sub control board 72 (control means, second control means) provided on the front door 2b.
The main control board 71 includes a reel relay terminal plate 74, a setting key type switch 56, an external centralized terminal plate 47, a hopper device 51, a medal auxiliary storage switch 75, and a power supply substrate 53 b of the power supply device 53. It is connected. The setting key type switch 56, the external centralized terminal board 47, the hopper device 51, and the medal auxiliary storage switch 75 are connected to the main control board 71 via the cabinet side relay board 44. The external central terminal plate 47 and the hopper device 51 have been described above, and thus description thereof will be omitted.

リール中継端子板74は、各リール3L,3C,3Rのリール本体の内側に配設されている。このリール中継端子板74は、各リール3L,3C,3Rのステッピングモータ(不図示)に電気的に接続されており、主制御基板71からステッピングモータに出力される信号を中継する。   The reel relay terminal plate 74 is provided inside the reel body of each of the reels 3L, 3C, 3R. The reel relay terminal plate 74 is electrically connected to a stepping motor (not shown) of each of the reels 3L, 3C, 3R, and relays a signal output from the main control board 71 to the stepping motor.

メダル補助収納庫スイッチ75は、メダル補助収納庫52のスイッチ貫通孔(非表示)を貫通している。このメダル補助収納庫スイッチ75は、メダル補助収納庫52がメダルで満杯になっているか否かを検出する。   The medal auxiliary storage switch 75 passes through a switch through hole (not shown) of the medal auxiliary storage 52. The medal auxiliary storage switch 75 detects whether or not the medal auxiliary storage 52 is full of medals.

電源装置53の電源基板53bには、電源スイッチ53aが接続されている。この電源スイッチ53aは、パチスロ1に必要な電源を供給するときにONにする。   A power switch 53a is connected to a power substrate 53b of the power device 53. The power switch 53a is turned on when supplying necessary power to the pachislot 1.

また、主制御基板71には、ドア中継端子板68を介して、メダルセレクタ201、ドア開閉監視スイッチ67、BETスイッチ77、精算スイッチ78、スタートスイッチ79、ストップスイッチ基板80、遊技動作表示基板81及び副中継基板61が接続されている。ドア開閉監視スイッチ67及び副中継基板61については、上述したため、説明を省略する。メダルセレクタ201の回路構成については後述する。   The main control board 71 includes a medal selector 201, a door open / close monitoring switch 67, a BET switch 77, a settlement switch 78, a start switch 79, a stop switch board 80, a game operation display board 81 via a door relay terminal plate 68. And the sub relay board 61 are connected. The door opening / closing monitor switch 67 and the sub-relay board 61 have been described above, and a description thereof will be omitted. The circuit configuration of the medal selector 201 will be described later.

BETスイッチ77は、BETボタン22が遊技者により押されたことを検出する。精算スイッチ78は、精算ボタン27が遊技者により押されたことを検出する。スタートスイッチ79は、スタートレバー23が遊技者により操作されたこと(開始操作)を検出する。   The BET switch 77 detects that the BET button 22 has been pressed by the player. The settlement switch 78 detects that the settlement button 27 has been pressed by the player. The start switch 79 detects that the start lever 23 has been operated by the player (start operation).

ストップスイッチ基板80は、回転しているリールを停止させるための回路と、停止可能なリールをLEDなどにより表示するための回路を構成する基板である。このストップスイッチ基板80には、ストップスイッチが設けられている。ストップスイッチは、各ストップボタン19L,19C,19Rが遊技者により押されたこと(停止操作)を検出する。   The stop switch board 80 is a board that constitutes a circuit for stopping the spinning reels and a circuit for displaying the reels that can be stopped by LEDs or the like. The stop switch board 80 is provided with a stop switch. The stop switch detects that each of the stop buttons 19L, 19C, 19R has been pressed by the player (stop operation).

遊技動作表示基板81は、メダルの投入を受け付けるとき、3つのリール3L,3C,3Rが回動可能なとき及び再遊技を行うときに、投入されたメダルの枚数を7セグ表示器24に表示させるための基板である。この遊技動作表示基板81には、7セグ表示器24とLED82が接続されている。LED82は、例えば、遊技の開始を表示するマークや再遊技を行うマークなどを点灯させる。   The game operation display board 81 displays the number of inserted medals on the 7-segment display 24 when accepting insertion of medals, when the three reels 3L, 3C, 3R are rotatable, and when performing a replay. This is the substrate to be used. The 7-segment display 24 and the LED 82 are connected to the game operation display board 81. The LED 82 illuminates, for example, a mark indicating the start of a game, a mark indicating a replay, and the like.

副制御基板72は、ドア中継端子板68と副中継基板61を介して主制御基板71に接続されている。この副制御基板72には、副中継基板61を介して、サウンドI/O基板84、LED基板62A,62B,62C、24hドア開閉監視ユニット63、メダルセレクタ201が接続されている。これらLED基板62A,62B,62C及び24hドア開閉監視ユニット63については、上述したため、説明を省略する。   The sub control board 72 is connected to the main control board 71 via the door relay terminal plate 68 and the sub relay board 61. A sound I / O board 84, LED boards 62A, 62B, 62C, 24h door open / close monitoring unit 63, and a medal selector 201 are connected to the sub control board 72 via a sub relay board 61. The LED boards 62A, 62B, 62C and the 24h door opening / closing monitoring unit 63 have been described above, and will not be described.

サウンドI/O基板84は、センタースピーカ58、ボードスピーカ64、下部スピーカ65L,65R及びフロントドア2bに設けられた不図示のスピーカへの音声の出力を行う。   The sound I / O board 84 outputs sound to a center speaker 58, a board speaker 64, lower speakers 65L and 65R, and speakers (not shown) provided on the front door 2b.

また、副制御基板72には、ロムカートリッジ基板86と、液晶中継基板87が接続されている。これらロムカートリッジ基板86及び液晶中継基板87は、副制御基板72と共に副制御基板ケース57に収納されている。
ロムカートリッジ基板86は、演出用の画像(映像)、音声、LED基板62A,62B及びその他のLED基板(不図示)、通信のデータを管理するための基板である。液晶中継基板87は、副制御基板72と液晶表示装置11とを接続する配線を中継する基板である。
Further, a ROM cartridge board 86 and a liquid crystal relay board 87 are connected to the sub control board 72. The ROM cartridge board 86 and the liquid crystal relay board 87 are housed in the sub control board case 57 together with the sub control board 72.
The ROM cartridge substrate 86 is a substrate for managing effect images (video), sound, LED substrates 62A and 62B and other LED substrates (not shown), and communication data. The liquid crystal relay board 87 is a board that relays wiring connecting the sub control board 72 and the liquid crystal display device 11.

<主制御回路>
次に、主制御基板71により構成される主制御回路91について、図15を参照して説明する。
図15は、パチスロ1の主制御回路91の構成例を示すブロック図である。
<Main control circuit>
Next, the main control circuit 91 constituted by the main control board 71 will be described with reference to FIG.
FIG. 15 is a block diagram illustrating a configuration example of the main control circuit 91 of the pachislo 1.

主制御回路91は、主制御基板71上に設置されたマイクロコンピュータ92を主たる構成要素としている。マイクロコンピュータ92は、メインCPU93、メインROM94及びメインRAM95により構成される。メインCPU93と前述のホッパー装置51は、本発明の遊技媒体払出装置を構成している。   The main control circuit 91 includes a microcomputer 92 installed on the main control board 71 as a main component. The microcomputer 92 includes a main CPU 93, a main ROM 94, and a main RAM 95. The main CPU 93 and the above-described hopper device 51 constitute a game medium payout device of the present invention.

メインROM94には、メインCPU93により実行される制御プログラム(例えば、上述した内部抽籤処理の実行のためのプログラム)、データテーブル、副制御回路101に対して各種制御指令(コマンド)を送信するためのデータ等が記憶されている。メインRAM95には、制御プログラムの実行により決定された内部当籤役等の各種データを格納する格納領域が設けられる。   The main ROM 94 includes a control program executed by the main CPU 93 (for example, a program for executing the above-described internal lottery process), a data table, and various control commands (commands) to the sub control circuit 101. Data and the like are stored. The main RAM 95 is provided with a storage area for storing various data such as an internal winning combination determined by executing the control program.

メインCPU93には、クロックパルス発生回路96、分周器97、乱数発生器98及びサンプリング回路99が接続されている。クロックパルス発生回路96及び分周器97は、クロックパルスを発生する。メインCPU93は、発生されたクロックパルスに基づいて、制御プログラムを実行する。乱数発生器98は、予め定められた範囲の乱数(例えば、0〜65535)を発生する。サンプリング回路99は、発生された乱数の中から1つの値を抽出する。   The main CPU 93 is connected to a clock pulse generation circuit 96, a frequency divider 97, a random number generator 98, and a sampling circuit 99. Clock pulse generation circuit 96 and frequency divider 97 generate clock pulses. The main CPU 93 executes a control program based on the generated clock pulse. The random number generator 98 generates random numbers in a predetermined range (for example, 0 to 65535). The sampling circuit 99 extracts one value from the generated random numbers.

メインCPU93は、リールインデックスを検出してから各リール3L,3C,3Rのステッピングモータに対してパルスを出力した回数をカウントする。これにより、メインCPU93は、各リール3L,3C,3Rの回転角度(主に、リールが図柄何個分だけ回転したか)を管理する。
なお、リールインデックスとは、リールが一回転したことを示す情報である。このリールインデックスは、例えば、発光部及び受光部を有する光センサと、各リール3L,3C,3Rの所定の位置に設けられ、各リール3L,3C,3Rの回転により発光部と受光部との間に介在される検知片を備えたリール位置検出部(不図示)により検出する。
The main CPU 93 counts the number of times a pulse has been output to the stepping motor of each of the reels 3L, 3C, 3R after detecting the reel index. Thus, the main CPU 93 manages the rotation angles of the reels 3L, 3C, 3R (mainly, how many symbols the reel has rotated).
The reel index is information indicating that the reel has made one rotation. This reel index is provided, for example, at a predetermined position on each of the reels 3L, 3C, 3R and a light sensor having a light emitting unit and a light receiving unit. It is detected by a reel position detection unit (not shown) having a detection piece interposed therebetween.

ここで、各リール3L,3C,3Rの回転角度の管理について、具体的に説明する。ステッピングモータに対して出力されたパルスの数は、メインRAM95に設けられたパルスカウンタによって計数される。そして、図柄1つ分の回転に必要な所定回数(例えば16回)のパルスの出力がパルスカウンタで計数される毎に、メインRAM95に設けられた図柄カウンタが1ずつ加算される。図柄カウンタは、各リール3L,3C,3Rに応じて設けられている。図柄カウンタの値は、リール位置検出部(不図示)によってリールインデックスが検出されるとクリアされる。   Here, the management of the rotation angles of the reels 3L, 3C, 3R will be specifically described. The number of pulses output to the stepping motor is counted by a pulse counter provided in the main RAM 95. Each time a pulse counter outputs a predetermined number of pulses (for example, 16 times) necessary for rotation of one symbol, the symbol counter provided in the main RAM 95 is incremented by one. The symbol counter is provided for each of the reels 3L, 3C, 3R. The value of the symbol counter is cleared when a reel index is detected by a reel position detector (not shown).

つまり、本実施の形態では、図柄カウンタを管理することにより、リールインデックスが検出されてから図柄何個分の回転が行われたのかを管理するようになっている。したがって、各リール3L,3C,3Rの各図柄の位置は、リールインデックスが検出される位置を基準として検出される。   In other words, in the present embodiment, by managing the symbol counter, it is possible to manage how many symbols have been rotated since the reel index was detected. Therefore, the position of each symbol on each of the reels 3L, 3C, 3R is detected based on the position where the reel index is detected.

上述したように、滑り駒数の最大数を図柄4個分に定めた場合は、左ストップボタン19Lが押されたときにリール表示窓4の中段にある左リール3Lの図柄と、その4個先の図柄までの範囲内にある各図柄が、リール表示窓4の中段に停止可能な図柄となる。   As described above, when the maximum number of sliding pieces is set to four symbols, when the left stop button 19L is pressed, the symbol of the left reel 3L in the middle of the reel display window 4 and the four symbols are displayed. Each symbol within the range up to the previous symbol is a symbol that can be stopped in the middle of the reel display window 4.

<副制御回路>
次に、副制御基板72により構成される副制御回路101について、図16を参照して説明する。
図16は、パチスロ1の副制御回路101の構成例を示すブロック図である。
<Sub-control circuit>
Next, the sub control circuit 101 including the sub control board 72 will be described with reference to FIG.
FIG. 16 is a block diagram illustrating a configuration example of the sub-control circuit 101 of the pachi-slot 1.

副制御回路101は、主制御回路91と電気的に接続されており、主制御回路91から送信されるコマンドに基づいて演出内容の決定や実行等の処理を行う。副制御回路101は、基本的に、サブCPU102、サブRAM103、レンダリングプロセッサ104、描画用RAM105、ドライバ106を含んで構成されている。   The sub-control circuit 101 is electrically connected to the main control circuit 91, and performs processing such as determination and execution of effect contents based on a command transmitted from the main control circuit 91. The sub control circuit 101 basically includes a sub CPU 102, a sub RAM 103, a rendering processor 104, a drawing RAM 105, and a driver 106.

サブCPU102は、主制御回路91から送信されたコマンドに応じて、ロムカートリッジ基板86に記憶されている制御プログラムに従い、映像、音、光の出力の制御を行う。ロムカートリッジ基板86は、基本的に、プログラム記憶領域とデータ記憶領域によって構成される。   The sub CPU 102 controls output of video, sound, and light in accordance with a control program stored in the ROM cartridge substrate 86 in response to a command transmitted from the main control circuit 91. The ROM cartridge substrate 86 basically includes a program storage area and a data storage area.

プログラム記憶領域には、サブCPU102が実行する制御プログラムが記憶されている。例えば、制御プログラムには、主制御回路91との通信を制御するための主基板通信タスクや、演出用乱数値を抽出し、演出内容(演出データ)の決定及び登録を行うための演出登録タスクが含まれる。また、決定した演出内容に基づいて液晶表示装置11(図2参照)による映像の表示を制御する描画制御タスク、LED85等の光源による光の出力を制御するランプ制御タスク、スピーカ58,64,65L,65R等のスピーカによる音の出力を制御する音声制御タスク等が含まれる。   A control program executed by the sub CPU 102 is stored in the program storage area. For example, the control program includes a main board communication task for controlling communication with the main control circuit 91 and an effect registration task for extracting effect random number values and determining and registering effect contents (effect data). Is included. Further, a drawing control task for controlling display of an image by the liquid crystal display device 11 (see FIG. 2) based on the determined effect contents, a lamp control task for controlling light output by a light source such as an LED 85, and speakers 58, 64, and 65L. , 65R, etc., and a voice control task for controlling the output of sound from a speaker.

データ記憶領域は、各種データテーブルを記憶する記憶領域、各演出内容を構成する演出データを記憶する記憶領域、映像の作成に関するアニメーションデータを記憶する記憶領域が含まれている。また、BGMや効果音に関するサウンドデータを記憶する記憶領域、光の点消灯のパターンに関するランプデータを記憶する記憶領域等が含まれている。   The data storage area includes a storage area for storing various data tables, a storage area for storing effect data constituting each effect content, and a storage area for storing animation data related to video creation. In addition, a storage area for storing sound data relating to BGM and sound effects, a storage area for storing lamp data relating to a light on / off pattern, and the like are included.

サブRAM103は、DRAM(Dynamic Random Access Memory)とSRAM(Static Random Access Memory)で構成される。DRAMは、揮発性記憶手段としてのワークRAMである。SRAMは、バックアップ電源によってバックアップされる不揮発性記憶手段としてのバックアップRAMである。サブRAM103のSRAMで構成されるバックアップ領域は、電源断が生じた場合、当該電源断時に保持していたデータを記憶可能となっており、電源投入時(電源断復帰時)及び投入後に、当該バックアップ領域のデータを利用可能となっている。また、サブRAM103のDRAMには、決定された演出内容や演出データを登録する格納領域や、主制御回路91から送信される内部当籤役等の各種データを格納する格納領域や、その他バックアップ領域に割り当てられていないデータ(電源オフ状態で消えても問題ないデータ)を格納する格納領域が設けられている。また、後述するエラー情報履歴領域や第1スイッチ情報記憶領域は、バックアップ領域に割り当てられている。   The sub RAM 103 includes a DRAM (Dynamic Random Access Memory) and an SRAM (Static Random Access Memory). The DRAM is a work RAM as a volatile storage unit. The SRAM is a backup RAM as a non-volatile storage unit that is backed up by a backup power supply. When a power failure occurs, the backup area configured by the SRAM of the sub RAM 103 can store data retained at the time of the power failure, and can be stored at the time of power-on (at the time of power-off recovery) and after power-on. The data in the backup area can be used. The DRAM of the sub RAM 103 has a storage area for registering the determined effect contents and effect data, a storage area for storing various data such as an internal winning combination transmitted from the main control circuit 91, and other backup areas. A storage area is provided for storing unassigned data (data that can be erased when the power is off). Further, an error information history area and a first switch information storage area described later are allocated to a backup area.

サブCPU102、レンダリングプロセッサ104、描画用RAM(フレームバッファを含む)105及びドライバ106は、演出内容により指定されたアニメーションデータに従って映像を作成し、作成した映像を液晶表示装置11に表示させる。   The sub CPU 102, the rendering processor 104, the drawing RAM (including the frame buffer) 105, and the driver 106 create a video according to the animation data specified by the effect contents, and display the created video on the liquid crystal display device 11.

また、サブCPU102は、演出内容により指定されたサウンドデータに従ってBGMなどの音をスピーカ58,64,65L,65R等のスピーカにより出力させる。また、サブCPU102は、演出内容により指定されたランプデータに従ってLED85等の光源の点灯及び消灯を制御する。   In addition, the sub CPU 102 causes sounds such as BGM to be output from speakers such as speakers 58, 64, 65L, and 65R in accordance with sound data specified by the effect contents. Further, the sub CPU 102 controls turning on and off of the light source such as the LED 85 according to the lamp data specified by the effect contents.

<メダルセレクタの回路構成>
次に、メダルセレクタ201の回路構成について、図17を参照して説明する。
図17は、メダルセレクタ201の回路構成例を示すブロック図である。
<Circuit configuration of the medal selector>
Next, a circuit configuration of the medal selector 201 will be described with reference to FIG.
FIG. 17 is a block diagram illustrating a circuit configuration example of the medal selector 201.

図17に示すように、メダルセレクタ201は、カメラユニット209と、メダルソレノイド208と、ダブルフォトセンサ502を備えている。
また、メダルセレクタ201は、ドア中継端子板68を介して、主制御基板71に接続されている。また、メダルセレクタ201は、副中継基板61を介して、副制御基板72に接続されている。すなわちメダルセレクタ201は、主制御回路91及び副制御回路101と電気的に接続されている。
As shown in FIG. 17, the medal selector 201 includes a camera unit 209, a medal solenoid 208, and a double photo sensor 502.
The medal selector 201 is connected to the main control board 71 via a door relay terminal plate 68. The medal selector 201 is connected to the sub control board 72 via the sub relay board 61. That is, the medal selector 201 is electrically connected to the main control circuit 91 and the sub control circuit 101.

主制御回路91は、メダルセレクタ201のメダルソレノイド208をON状態又はOFF状態に設定することができる。すなわち主制御回路91は、セレクトプレート207をガイド位置又は排出位置に移動させることができる。   The main control circuit 91 can set the medal solenoid 208 of the medal selector 201 to an ON state or an OFF state. That is, the main control circuit 91 can move the select plate 207 to the guide position or the discharge position.

具体的には、主制御回路91は、パチスロ1がメダルを投入可能な状態であるときは投入可の内容のメダル投入信号を出力する。また、主制御回路91は、パチスロ1がメダルを投入可能な状態でないときは投入不可の内容のメダル投入信号を出力する。ここで、「投入可の内容のメダル投入信号を出力する」とは、主制御回路91と接続されている機器(本実施形態ではメダルソレノイド208)間の信号線をON状態に設定することである。また、「投入不可の内容のメダル投入信号を出力する」とは、主制御回路91と接続されている機器(本実施形態ではメダルソレノイド208)間の信号線をOFF状態に設定することである。メダルソレノイド208は、主制御回路91とメダルソレノイド208間の信号線がON状態になったことを検知すると、自身をON状態に設定する。また、メダルソレノイド208は、主制御回路91とメダルソレノイド208間の信号線がOFF状態になったことを検知すると、自身をOFF状態に設定する。   Specifically, when the pachislo 1 is in a state where medals can be inserted, the main control circuit 91 outputs a medal insertion signal indicating that insertion is possible. When the pachislot 1 is not in a state where medals can be inserted, the main control circuit 91 outputs a medal insertion signal indicating that insertion is not possible. Here, "to output a medal insertion signal indicating that insertion is possible" means that a signal line between devices (medal solenoid 208 in the present embodiment) connected to the main control circuit 91 is set to an ON state. is there. “To output a medal insertion signal indicating that the insertion is impossible” means to set the signal line between the devices (the medal solenoid 208 in the present embodiment) connected to the main control circuit 91 to the OFF state. . When detecting that the signal line between the main control circuit 91 and the medal solenoid 208 has been turned ON, the medal solenoid 208 sets itself to the ON state. When detecting that the signal line between the main control circuit 91 and the medal solenoid 208 has been turned off, the medal solenoid 208 sets itself to the off state.

メダルセレクタ201のダブルフォトセンサ502は、ドア中継端子板68を介して、主制御基板71に接続されている。ダブルフォトセンサ502は、第1フォトセンサ503と第2フォトセンサ504とからなる。   The double photo sensor 502 of the medal selector 201 is connected to the main control board 71 via the door relay terminal plate 68. The double photo sensor 502 includes a first photo sensor 503 and a second photo sensor 504.

図8に示すように、第1フォトセンサ503は、メダルセレクタ201のベース板部204におけるメダル出口部204cの付近に設けられている。第1フォトセンサ503は、ベース板部204のメダルレール210上に埋め込まれたフォトダイオード(不図示)と、このフォトダイオードに光(赤外線光)を照射する発光体(不図示)と、を有する。フォトダイオードと発光体は、メダルの厚み以上離れて対向しており、セレクトプレート207がガイド位置にあるときに、メダルレール210上を移動するメダルは、フォトダイオードと発光体との間を通過可能となっている。   As shown in FIG. 8, the first photo sensor 503 is provided near the medal exit portion 204c in the base plate portion 204 of the medal selector 201. The first photo sensor 503 includes a photodiode (not shown) embedded on the medal rail 210 of the base plate portion 204, and a light emitter (not shown) for irradiating the photodiode with light (infrared light). . The photodiode and the light emitter face each other with a distance equal to or greater than the thickness of the medal, and when the select plate 207 is at the guide position, the medal moving on the medal rail 210 can pass between the photodiode and the light emitter. It has become.

発光体は所定光量の光を常に発光する。フォトダイオードが発光体から所定光量以上の光を受光すると、第1フォトセンサ503は、ハイレベルの信号を出力する。一方、フォトダイオードが受光する光の量が所定光量に満たなくなると、第1フォトセンサ503は、ローレベルの信号(メダル検知信号)を出力する。したがって、メダルがフォトダイオードと発光体との間を通過する際に発光体の光を遮ると、第1フォトセンサ503は、メダル検知信号を出力する。   The luminous body always emits a predetermined amount of light. When the photodiode receives a predetermined amount of light or more from the light emitter, the first photosensor 503 outputs a high-level signal. On the other hand, when the amount of light received by the photodiode is less than the predetermined amount, the first photosensor 503 outputs a low-level signal (medal detection signal). Therefore, when the light of the light emitter is blocked when the medal passes between the photodiode and the light emitter, the first photosensor 503 outputs a medal detection signal.

第2フォトセンサ504は、メダルセレクタ201のベース板部204におけるメダル出口部204cの付近で、且つ、第1フォトセンサ503の近傍に、第1フォトセンサ503よりも、メダルレール210上を移動するメダルの移動方向の下流側に、設けられている。なお、その他の点については、第1フォトセンサ503と同様のため、説明を省略する。   The second photo sensor 504 moves on the medal rail 210 closer to the medal exit portion 204c of the base plate portion 204 of the medal selector 201 and closer to the first photo sensor 503 than the first photo sensor 503 is. It is provided on the downstream side in the moving direction of the medals. Note that the other points are the same as those of the first photosensor 503, and thus the description is omitted.

なお、本実施形態では、ダブルフォトセンサ502を構成する第1フォトセンサ503及び第2フォトセンサ504が、フォトダイオードと発光体との間をメダルが通過して発光体の光を遮蔽することで、通過する物体を検知する遮蔽型のセンサ方式(すなわち、フォトダイオードの状態がオン状態からオフ状態に変化することで検知する検知方式)を採用する態様を説明した。しかしながら、フォトダイオードで、メダルを検知する態様はこれに限定されない。例えば、フォトダイオードと発光体を左右又は上下に配置して発光体の光を通過するメダルが反射した光をフォトダイオードが受光することでメダルの通過を検知する、いわゆる反射型のセンサ方式を採用してもよい。また、第1フォトセンサ503を遮蔽型、第2フォトセンサ504を反射型、又は、逆の組合せで、フォトダイオードを配置する位置に応じて、これらのセンサ方式を適宜選択して採用してもよい。   In the present embodiment, the first photosensor 503 and the second photosensor 504 constituting the double photosensor 502 are configured such that a medal passes between the photodiode and the light emitter to shield light from the light emitter. In the above, the mode in which the shielded sensor system for detecting the passing object (that is, the detection system for detecting when the state of the photodiode changes from the on state to the off state) is described. However, the mode of detecting medals with a photodiode is not limited to this. For example, a so-called reflection-type sensor system is used in which a photodiode and a light emitter are arranged on the left and right or up and down, and the passage of the medal is detected by the photodiode receiving light reflected by the medal passing through the light of the light emitter. May be. Also, the first photosensor 503 may be of a shield type, the second photosensor 504 may be of a reflective type, or a combination of the two may be appropriately selected and employed depending on the position where the photodiode is arranged. Good.

上述したように第1フォトセンサ503はメダル出口部204cの付近に設けられ、第2フォトセンサ504は第1フォトセンサ503よりもメダルレール210上の下流に設けられている。このため、第1フォトセンサ503及び第2フォトセンサ504は、セレクトプレート207がガイド位置にあり、メダル出口部204c(図8参照)側へ移動するメダルは検知するが、セレクトプレート207が排出位置にあり、メダルシュート202(図6参照)に案内されるメダルは検知しない。   As described above, the first photo sensor 503 is provided near the medal exit portion 204c, and the second photo sensor 504 is provided downstream of the first photo sensor 503 on the medal rail 210. Therefore, the first photosensor 503 and the second photosensor 504 detect the medal moving toward the medal exit 204c (see FIG. 8) when the select plate 207 is in the guide position, but the select plate 207 is in the discharge position. No medals guided to the medal shoot 202 (see FIG. 6) are detected.

第1フォトセンサ503及び第2フォトセンサ504から出力されたメダル検知信号は、ドア中継端子板68を介して、主制御基板71(主制御回路91)に入力される。主制御基板71のメインCPU93(図15参照)が、第1フォトセンサ503から入力されたメダル検知信号を検出してから、所定時間内に、第2フォトセンサ504から入力されたメダル検知信号を検出すると、投入されたメダルの枚数をメインCPU93が計数するために設けられたカウンタである投入枚数カウンタの値に1加算する。なお、投入枚数カウンタの値が最大値(例えば、3)の場合は、クレジットされているメダルの枚数をメインCPU93が計数するために設けられたカウンタであるクレジットカウンタの値に1加算する。   The medal detection signals output from the first photo sensor 503 and the second photo sensor 504 are input to the main control board 71 (main control circuit 91) via the door relay terminal plate 68. After the main CPU 93 (see FIG. 15) of the main control board 71 detects the medal detection signal input from the first photo sensor 503, the main CPU 93 outputs the medal detection signal input from the second photo sensor 504 within a predetermined time. Upon detection, the number of inserted medals is incremented by one to the value of a inserted number counter, which is a counter provided for the main CPU 93 to count. If the value of the inserted number counter is the maximum value (for example, 3), the number of credited medals is incremented by 1 to the value of the credit counter, which is a counter provided for the main CPU 93 to count.

クレジットカウンタが最大値(例えば、50)の場合は、主制御回路91は、メダルセレクタ201のメダルソレノイド208をOFF状態に設定する。これによって、セレクトプレート207(図8参照)が「排出位置」に位置付けされ、メダルが投入不可となり、クレジットカウンタが最大値となった後で投入されたメダルをメダルシュート202(図6参照)に案内してメダル払出口32(図2参照)からメダルトレイユニット34に排出する。   When the credit counter has the maximum value (for example, 50), the main control circuit 91 sets the medal solenoid 208 of the medal selector 201 to the OFF state. As a result, the select plate 207 (see FIG. 8) is positioned at the “discharge position”, medals cannot be inserted, and medals inserted after the credit counter reaches the maximum value are stored in the medal shoot 202 (see FIG. 6). It is guided and discharged to the medal tray unit 34 from the medal payout exit 32 (see FIG. 2).

なお、主制御回路91は、単位遊技においてスタートレバー23が遊技者により操作された後においても、メダルセレクタ201のメダルソレノイド208をOFF状態に設定する。   The main control circuit 91 sets the medal solenoid 208 of the medal selector 201 to the OFF state even after the start lever 23 is operated by the player in the unit game.

また、メインCPU93が、第2フォトセンサ504から入力されたメダル検知信号、第1フォトセンサ503から入力されたメダル検知信号の順で、メダル検知信号を受信した場合、メダルがメダルレール210上を適正な移動方向とは異なる(逆の)移動方向で移動する、いわゆる逆行エラーが発生したことを検知する。   When the main CPU 93 receives a medal detection signal in the order of the medal detection signal input from the second photo sensor 504 and the medal detection signal input from the first photo sensor 503, the medal moves on the medal rail 210. It is detected that a so-called backward error has occurred, which moves in a moving direction different from (reverse to) the proper moving direction.

また、メインCPU93が、メダル検知信号を検出してから一定時間を経過しても、第1フォトセンサ503、第2フォトセンサ504のいずれか、若しくは両方から、メダル検知信号が出力され続けている場合や、第1フォトセンサ503からのメダル検知信号を検出してから一定時間経過しても、第2フォトセンサ504からのメダル検知信号を検出できない場合、メダルがメダルレール210上で留まる、いわゆるメダル詰まりエラーが発生したことを検知する。   Further, even if a certain period of time has elapsed since the main CPU 93 detected the medal detection signal, the medal detection signal is continuously output from one or both of the first photosensor 503 and the second photosensor 504. In a case or when a medal detection signal from the second photo sensor 504 cannot be detected even after a certain period of time has elapsed since the detection of the medal detection signal from the first photo sensor 503, the medal stays on the medal rail 210, so-called It detects that a medal jam error has occurred.

主制御回路91(メインCPU93)は、逆行エラーやメダル詰まりエラーを検知すると、遊技を強制的に中断させ、7セグ表示器24(図2参照)に、検知したエラーの内容に応じたエラーコードを表示するとともに、副制御回路101に検知したエラーの内容に応じたエラーコマンドを送信して、副制御回路101を介して、エラーを報知する。例えば、液晶表示装置11にエラーの内容を示すエラー画面(後述する図61の「CE」又は「CR」の四角枠がハイライト表示された画面)を表示したり、副制御回路101が表示を制御する副7セグ表示器(不図示)を設ける場合は、この副7セグ表示器に所定の表示をしたりする。   When the main control circuit 91 (main CPU 93) detects a backward error or a medal jam error, the game is forcibly interrupted, and the 7-segment display 24 (see FIG. 2) displays an error code corresponding to the detected error. Is displayed, and an error command corresponding to the content of the detected error is transmitted to the sub-control circuit 101 to notify the error via the sub-control circuit 101. For example, an error screen indicating the content of the error (a screen in which a rectangular frame of “CE” or “CR” in FIG. 61 to be described later is highlighted) is displayed on the liquid crystal display device 11 or the sub control circuit 101 displays the error screen. When a sub 7-segment display (not shown) to be controlled is provided, a predetermined display is displayed on the sub-segment display.

副制御回路101は、メダルセレクタ201の制御LSI234から後述する色判定の判定結果、刻印判定の判定結果、各種信号やコマンドを受信する。   The sub-control circuit 101 receives, from the control LSI 234 of the medal selector 201, a judgment result of color judgment, a judgment result of engraving judgment, and various signals and commands described later.

カメラユニット209は、制御LSI234、CMOSイメージセンサ232及びLED233で構成されている。カメラユニット209の制御LSI234は、ASIC(Application Specific Integrated Circuit)で構成され、CMOSイメージセンサ232及びLED233と電気的に接続されている。制御LSI234は、LED233の発光を制御する。また、制御LSI234は、CMOSイメージセンサ232から出力された画像データに基づいて、メダルレール210上を移動する物体が正規メダルか否かを判定し、判定結果を、後述するUART252から、副中継基板61を介して副制御基板72(副制御回路101)に送信する。   The camera unit 209 includes a control LSI 234, a CMOS image sensor 232, and an LED 233. The control LSI 234 of the camera unit 209 includes an ASIC (Application Specific Integrated Circuit), and is electrically connected to the CMOS image sensor 232 and the LED 233. The control LSI 234 controls the light emission of the LED 233. Further, the control LSI 234 determines whether or not the object moving on the medal rail 210 is a regular medal based on the image data output from the CMOS image sensor 232, and sends the determination result from the UART 252 (described later) to the sub relay board. The signal is transmitted to the sub control board 72 (sub control circuit 101) via 61.

CMOSイメージセンサ232は、露光時間(シャッタースピード)を1〜25段階で設定する露光時間設定機構を備えている。1段階上がる毎に、露光時間は、7μ秒延びるように設定される。本実施形態では、露光時間の初期値(パチスロ1の電源投入時の値)は、段階10、すなわち70μ秒に設定されている。したがって、本実施形態では、露光時間を、70μ秒から最大175μ秒(段階25に対応する露光時間)の範囲で設定可能となっている。
なお、本実施形態において、採用されているCMOSイメージセンサ232は、解像度が648×488ピクセルであり、フレームレートが240fps(Frames Per Second)のCMOSイメージセンサである。
The CMOS image sensor 232 has an exposure time setting mechanism for setting the exposure time (shutter speed) in 1 to 25 steps. The exposure time is set so as to extend by 7 μs for each step up. In the present embodiment, the initial value of the exposure time (the value when the power of the pachislot 1 is turned on) is set to the stage 10, that is, 70 μs. Therefore, in the present embodiment, the exposure time can be set in a range from 70 μs to a maximum of 175 μs (exposure time corresponding to step 25).
In the present embodiment, the CMOS image sensor 232 employed is a CMOS image sensor having a resolution of 648 × 488 pixels and a frame rate of 240 fps (Frames Per Second).

また、制御LSI234は、報知用LED206cとGPIO250を介して電気的に接続されている。報知用LED206cは、制御LSI234からの指示に応じて点灯及び消灯する。   The control LSI 234 is electrically connected to the notification LED 206c via the GPIO 250. The notification LED 206c is turned on and off according to an instruction from the control LSI 234.

また、制御LSI234は、例えばサーミスタからなる温度センサ206gと電気的に接続されている。温度センサ206gは、カメラユニット209におけるレンズの近傍に設けられ、レンズ付近の温度を検知する。温度センサ206gからの温度検出信号が制御LSI234に伝えられることにより、制御LSI234がレンズ付近の温度を認識可能となっている。   In addition, the control LSI 234 is electrically connected to a temperature sensor 206g composed of, for example, a thermistor. The temperature sensor 206g is provided near the lens in the camera unit 209, and detects the temperature near the lens. By transmitting the temperature detection signal from the temperature sensor 206g to the control LSI 234, the control LSI 234 can recognize the temperature near the lens.

また、制御LSI234は、初期化スイッチ206d、色スイッチ206e、刻印スイッチ206fとGPIO250を介して電気的に接続されている。通電中に初期化スイッチ206dが操作される(ON状態になる)と、制御LSI234は、初期化処理を行う。初期化処理において、制御LSI234は、後述するSRAM243及びフラッシュメモリ244に記憶されている各種パラメータやテンプレートを削除し、これらに初期値を設定する(リセットする)。   The control LSI 234 is electrically connected to the initialization switch 206d, the color switch 206e, the engraving switch 206f, and the GPIO 250. When the initialization switch 206d is operated (turned on) during energization, the control LSI 234 performs an initialization process. In the initialization process, the control LSI 234 deletes various parameters and templates stored in the SRAM 243 and the flash memory 244 described later, and sets (resets) them to initial values.

色スイッチ206eは、ON/OFF状態に設定可能である。色スイッチ206eがON状態に設定されると、制御LSI234は、色判定を有効とし、後述する判定完了コマンドに含まれる色判定結果の値を実際の判定結果に応じて「1」(判定OK)又は「0」(判定NG)に設定する。一方、色スイッチ206eがOFF状態に設定されると、制御LSI234は、色判定を無効とし、後述する判定完了コマンドに含まれる色判定結果の値を実際の判定結果に係わらず「1」(判定OK)に設定する。すなわち、色スイッチ206eは、色判定を有効にする場合は、ON状態に設定され、無効にする場合はOFF状態に設定される。   The color switch 206e can be set to an ON / OFF state. When the color switch 206e is set to the ON state, the control LSI 234 validates the color determination, and changes the value of the color determination result included in the determination completion command described later to “1” (determination OK) according to the actual determination result. Alternatively, it is set to “0” (decision NG). On the other hand, when the color switch 206e is set to the OFF state, the control LSI 234 invalidates the color determination, and sets the value of the color determination result included in the determination completion command described later to “1” (regardless of the actual determination result). OK). That is, the color switch 206e is set to an ON state when enabling color determination, and is set to an OFF state when invalidating the color determination.

刻印スイッチ206fは、ON/OFF状態に設定可能である。刻印スイッチ206fがON状態に設定されると、制御LSI234は、刻印判定を有効とし、後述する判定完了コマンドに含まれる刻印判定結果の値を実際の判定結果に応じて「1」(判定OK)又は「0」(判定NG)に設定する。一方、刻印スイッチ206fがOFF状態に設定されると、制御LSI234は、刻印判定を無効とし、後述する判定完了コマンドに含まれる刻印判定結果の値を実際の判定結果に係わらず「1」(判定OK)に設定する。すなわち、刻印スイッチ206fは、刻印判定を有効にする場合は、ON状態に設定され、無効にする場合はOFF状態に設定される。   The engraving switch 206f can be set to an ON / OFF state. When the engraving switch 206f is set to the ON state, the control LSI 234 validates the engraving determination, and changes the value of the engraving determination result included in the determination completion command described later to “1” (determination OK) according to the actual determination result. Alternatively, it is set to “0” (decision NG). On the other hand, when the engraving switch 206f is set to the OFF state, the control LSI 234 invalidates the engraving determination, and changes the value of the engraving determination result included in the determination completion command described later to “1” (irrespective of the actual determination result). OK). That is, the marking switch 206f is set to the ON state when making the marking determination valid, and is set to the OFF state when making the marking determination invalid.

本実施形態において、制御LSI234は、電源投入時における色スイッチeのON/OFF状態に応じて色判定の有効/無効を設定し、また、電源投入時における刻印スイッチfのON/OFF状態に応じて刻印判定の有効/無効を設定する。電源投入後にこれらスイッチが操作されても、電源投入時のスイッチの状態に応じて設定された色判定及び刻印判定の有効/無効は、変更しない。制御LSI234は、初期化スイッチ206d、色スイッチ206e、刻印スイッチ206fのON/OFF状態を予め規定された周期(例えば、10msec周期)で取得する。なお、この周期は、後述するメダルセレクタ無操作コマンドを送信する周期よりも短く設定されている。   In the present embodiment, the control LSI 234 sets the validity / invalidity of the color determination according to the ON / OFF state of the color switch e when the power is turned on, and also controls the ON / OFF state of the engraving switch f when the power is turned on. To enable / disable stamping judgment. Even if these switches are operated after the power is turned on, the validity / invalidity of the color judgment and the marking judgment set in accordance with the state of the switch at the time of the power on is not changed. The control LSI 234 acquires the ON / OFF state of the initialization switch 206d, the color switch 206e, and the engraving switch 206f at a predetermined cycle (for example, a cycle of 10 msec). This cycle is set shorter than the cycle for transmitting a medal selector non-operation command described later.

<制御LSIの回路構成>
次に、制御LSI234の回路構成について、図18を参照して説明する。
図18は、制御LSI234の回路構成例を示すブロック図である。
<Circuit configuration of control LSI>
Next, a circuit configuration of the control LSI 234 will be described with reference to FIG.
FIG. 18 is a block diagram illustrating a circuit configuration example of the control LSI 234.

制御LSI234は、ホストコントローラ241、画像認識DSP(digital signal processor)回路242、バックアップ電源(不図示)が接続されたSRAM(Static Random Access Memory)243、フラッシュメモリ244、ISP(Image Signal Processing)回路245及びメダルカウント回路246を備えている。また、制御LSI234は、カラー認識回路247、魚眼補正スケーラ回路248、画像認識アクセラレータ回路249、GPIO(General Purpose Input/Output)250及びUART(Universal Asynchronous Receiver Transmitter)252を備えている。また、制御LSI234は、温度センサ206gから出力されたアナログ信号をデジタル信号に変換するA/D変換回路253を備えている。これら制御LSI234を構成するデバイスは、バスを介して相互に接続されおり、本実施形態の制御LSI234では、バスのプロトコルとしてAXI(Advanced eXtensible Interface)が採用されている。   The control LSI 234 includes a host controller 241, an image recognition DSP (digital signal processor) circuit 242, an SRAM (Static Random Access Memory) 243 to which a backup power supply (not shown) is connected, a flash memory 244, and an ISP (Image Signal Processing) circuit 245. And a medal counting circuit 246. The control LSI 234 includes a color recognition circuit 247, a fish-eye correction scaler circuit 248, an image recognition accelerator circuit 249, a GPIO (General Purpose Input / Output) 250, and a UART (Universal Asynchronous Receiver Transmitter) 252. In addition, the control LSI 234 includes an A / D conversion circuit 253 that converts an analog signal output from the temperature sensor 206g into a digital signal. The devices making up the control LSI 234 are mutually connected via a bus, and the control LSI 234 of this embodiment employs AXI (Advanced eXtensible Interface) as a bus protocol.

また、制御LSI234は、ISI(Image Sensor Interface)回路251を備えている。ISI回路251は、CMOSイメージセンサ232とISP回路に電気的に接続されている。ISI回路251は、CMOSイメージセンサ232からLVDS(Low voltage differential signaling)方式で送信された画像データをRGBベイヤ画像に変換して出力する。このとき、ISI回路251から出力されるRGB画像には固有の画像IDが付される。この画像IDは、後述する各種画像変換を施された後のデータに引き継がれる。このため、後述する各種判定に係るデータに引き継がれている画像IDに基づいて、それぞれの判定結果を紐付けることができる。すなわち、RGB画像内にメダルが写っていた場合、このメダルに対するこれらの判定結果を関連付けることができる。   The control LSI 234 includes an ISI (Image Sensor Interface) circuit 251. The ISI circuit 251 is electrically connected to the CMOS image sensor 232 and the ISP circuit. The ISI circuit 251 converts the image data transmitted from the CMOS image sensor 232 by the LVDS (Low voltage differential signaling) method into an RGB Bayer image and outputs the RGB data. At this time, a unique image ID is assigned to the RGB image output from the ISI circuit 251. This image ID is carried over to data after various image conversions described below have been performed. For this reason, based on the image ID carried over by the data relating to various determinations described later, the respective determination results can be linked. That is, when a medal is shown in the RGB image, these determination results for this medal can be associated.

<ISP回路>
ISP回路245は、ISI回路251からRGBベイヤ画像が出力されると(RGBベイヤ画像が入力される)と、VSYNC(Vertical Synchronization)割込信号を、ホストコントローラ241に出力する。
また、ISP回路245は、ISI回路251から出力されたRGBベイヤ画像にレンズ歪み補正処理と射影変換(ホモグラフィ)処理を施す画像補正処理を行う。
<ISP circuit>
When the RGB Bayer image is output from the ISI circuit 251 (the RGB Bayer image is input), the ISP circuit 245 outputs a VSYNC (Vertical Synchronization) interrupt signal to the host controller 241.
Further, the ISP circuit 245 performs an image correction process of performing a lens distortion correction process and a projective transformation (homography) process on the RGB Bayer image output from the ISI circuit 251.

レンズ歪み補正処理は、後述する各種判別・判定処理の精度を高めるため、CMOSイメージセンサ232が撮像した画像データ上の、カメラユニット209におけるレンズの特性に起因して発生する歪みを補正する処理である。   The lens distortion correction process is a process of correcting distortion generated on the image data captured by the CMOS image sensor 232 due to the characteristics of the lens in the camera unit 209 in order to improve the accuracy of various determination and determination processes described later. is there.

例えば、カメラユニット209のレンズとして、凸レンズを採用した場合、レンズの端の厚みがレンズの中央部の厚みに比べて薄いため、図20に示すような歪みが生じる。図20では、CMOSイメージセンサ232の撮像領域A1と、CMOSイメージセンサ232が撮像した撮像領域A1の画像データG1を模式的に表している。画像データG1における黒点は、撮像領域A1の各格子の頂点に対応する箇所を表している。   For example, when a convex lens is used as the lens of the camera unit 209, the distortion shown in FIG. 20 occurs because the thickness of the end of the lens is smaller than the thickness of the central part of the lens. FIG. 20 schematically illustrates an imaging region A1 of the CMOS image sensor 232 and image data G1 of the imaging region A1 captured by the CMOS image sensor 232. The black points in the image data G1 indicate locations corresponding to the vertices of each lattice in the imaging area A1.

図20に示すように、画像データG1では、中央部に比べて端部に比較的大きな歪みが発生している。ISP回路245は、予め設定されている各種補正パラメータに基づきレンズ歪み補正処理を行って画像データG1(ISI回路251から出力されたRGBベイヤ画像)を加工する。具体的には、画像データG1の黒点の位置が、対応する撮像領域A1の格子の頂点と同位置になるように、画像データG1を補完する。これによって、この歪みが後述する各種判別処理に与える影響を抑制する。   As shown in FIG. 20, in the image data G1, a relatively large distortion is generated at the end portion as compared with the center portion. The ISP circuit 245 performs lens distortion correction processing based on various preset correction parameters to process image data G1 (RGB Bayer image output from the ISI circuit 251). Specifically, the image data G1 is complemented such that the position of the black point of the image data G1 is the same as the position of the corresponding vertex of the lattice of the imaging area A1. This suppresses the influence of this distortion on various determination processes described later.

なお、各種補正パラメータは、カメラユニット209に採用されるレンズに対する事前の特性評価に基づいて予めプログラム上で規定されている。なお、上記各種補正パラメータをフラッシュメモリ244に記憶させ、レンズ歪み補正処理時にISP回路245に参照されるようにしてもよい。   It should be noted that various correction parameters are defined in advance in a program based on a characteristic evaluation of a lens used in the camera unit 209 in advance. Note that the various correction parameters described above may be stored in the flash memory 244 and referred to by the ISP circuit 245 during the lens distortion correction processing.

射影変換処理は、カメラユニット209の取り付け位置のずれが、後述する各種判別・判定処理の精度に影響を与えないように、画像データを補正する処理である。
例えば、カメラユニット209がキャンセルシュータ206に対して、好適な角度でない角度で傾いて取り付けられると、図21Aに示すように、後述する各種判別・判定処理に必要な画像領域A2が歪んで撮像される場合がある。射影変換処理では、この歪みを補正し、画像データを、後述する各種判別・判定処理に好適な態様に補完する。
The projection conversion process is a process of correcting image data so that a displacement of the mounting position of the camera unit 209 does not affect the accuracy of various determination / determination processes described later.
For example, when the camera unit 209 is attached to the cancel shooter 206 at an angle other than a suitable angle, as shown in FIG. 21A, an image area A2 necessary for various determination and determination processes described later is distorted and captured. In some cases. In the projective transformation process, this distortion is corrected, and the image data is complemented in a form suitable for various discrimination / determination processes described later.

具体的には、射影変換処理において、ISP回路245は、レンズ歪み補正処理後のRGBベイヤ画像を解析し、このRGBベイヤ画像における少なくとも4つの基準マーカー260の位置(座標:x,y)を検出する。   Specifically, in the projective transformation process, the ISP circuit 245 analyzes the RGB Bayer image after the lens distortion correction process and detects the positions (coordinates: x, y) of at least four reference markers 260 in the RGB Bayer image. I do.

次に、検出した4つの基準マーカーに対応する、プログラム上で予め規定されている後述する各種判別処理の精度を高めるために好適な画像データにおける基準マーカー260の位置(座標:u,v)に基づき、以下の式1及び式2における変換係数a,b,c,d,e,f,g,hを連立方程式を解いて算出する。
u=(x×a+y×b+c)/(x×g+y×h+1) ・・・式(1)
v=(x×d+y×e+f)/(x×g+y×h+1) ・・・式(2)
Next, the positions (coordinates: u, v) of the reference markers 260 in the image data suitable for increasing the accuracy of various discrimination processes described later, which are defined in advance in the program and correspond to the four detected reference markers, are set. Based on this, the conversion coefficients a, b, c, d, e, f, g, and h in the following equations 1 and 2 are calculated by solving simultaneous equations.
u = (x × a + y × b + c) / (x × g + y × h + 1) Equation (1)
v = (xxd + yxe + f) / (xxg + yxh + 1) Expression (2)

そして、算出した変換係数a,b,c,d,e,f,g,hと、レンズ歪み補正処理後のRGBベイヤ画像における各画素の座標値を、上記式1及び式2に代入して、各画素についての変換後の座標を算出し、各画素が算出した変換後の座標に位置するようにこのRGBベイヤ画像を加工する。図21Bは、射影変換処理後のRGBベイヤ画像における図21Aに示す画像領域A2を模式的に表している。   Then, the calculated conversion coefficients a, b, c, d, e, f, g, and h and the coordinate values of each pixel in the RGB Bayer image after the lens distortion correction processing are substituted into the above equations 1 and 2. , The converted coordinates of each pixel are calculated, and this RGB Bayer image is processed so that each pixel is located at the calculated converted coordinates. FIG. 21B schematically shows the image area A2 shown in FIG. 21A in the RGB Bayer image after the projective transformation processing.

なお、本実施形態では、各種判別処理の精度を高めるために好適な画像データにおける基準マーカー260の位置(座標:u,v)をプログラム上で規定する態様を説明した。しかし、これに代えて、例えば、この基準マーカー260の位置をフラッシュメモリ244に記憶させ、射影変換処理時にISP回路245に参照されるようにしてもよい。   In the present embodiment, the mode in which the position (coordinates: u, v) of the reference marker 260 in the image data suitable for improving the accuracy of the various determination processes is defined on a program has been described. However, instead of this, for example, the position of the reference marker 260 may be stored in the flash memory 244, and may be referred to by the ISP circuit 245 at the time of the projection conversion processing.

次に、ISP回路245は、レンズ歪み補正処理と射影変換処理後のRGBベイヤ画像を各種フォーマットに変換する色変換処理を行う。色変換処理において、ISP回路245は、RGBベイヤ画像を、YUV色空間に対応する画像データ(YUV画像データ)に変換し、このYUV画像データにおける輝度に係るデータ(以下、「グレースケール画像データ」と称する場合がある)をメダルカウント回路246に出力する(メダルカウント回路246が参照するSRAM243の所定の領域に出力する)。また、グレースケール画像データをSRAM243に記憶させる。なお、SRAM243には、所定数のグレースケール画像データが記憶可能な記憶領域が設けられている。SRAM243に記憶されているグレースケール画像データの数が上限数に達した場合、記憶された順序が古いグレースケール画像データから上書きされる。   Next, the ISP circuit 245 performs a color conversion process for converting the RGB Bayer image after the lens distortion correction process and the projection conversion process into various formats. In the color conversion process, the ISP circuit 245 converts the RGB Bayer image into image data (YUV image data) corresponding to the YUV color space, and data relating to luminance in the YUV image data (hereinafter, “gray-scale image data”). Is output to the medal counting circuit 246 (output to a predetermined area of the SRAM 243 referred to by the medal counting circuit 246). Further, the grayscale image data is stored in the SRAM 243. Note that the SRAM 243 is provided with a storage area capable of storing a predetermined number of grayscale image data. When the number of grayscale image data stored in the SRAM 243 reaches the upper limit, the stored order is overwritten from the old grayscale image data.

また、色変換処理において、ISP回路245は、RGBベイヤ画像を、三つの成分(H:色相、S:彩度、V:明度)からなる色空間(HSV色空間)に対応する画像データ(HSV画像データ)に変換し、このHSV画像データをカラー認識回路247に出力する(カラー認識回路247が参照するSRAM243の所定の領域に出力する)。   In the color conversion processing, the ISP circuit 245 converts the RGB Bayer image into image data (HSV color space) corresponding to a color space (HSV color space) including three components (H: hue, S: saturation, V: lightness). Image data) and outputs this HSV image data to the color recognition circuit 247 (outputs it to a predetermined area of the SRAM 243 referred to by the color recognition circuit 247).

また、ISP回路245は、パチスロ1の電源投入時に、ISI回路251からRGBベイヤ画像が出力される(RGBベイヤ画像が入力される)と、出力された画像に所定の画像が含まれているか否かを判定するAE(Auto Exposure)判定処理を行う。本実施形態において、所定の画像とは、メダルレール210の表面に形成された突条部210a(図8参照)の画像である。すなわち、本実施形態では、ISP回路245は、画像データ内に所定の画像が含まれているか否かを判定する画像判定手段を構成する。   When the RGB Bayer image is output from the ISI circuit 251 (when the RGB Bayer image is input) when the pachislot 1 is powered on, the ISP circuit 245 determines whether the output image includes a predetermined image. AE (Auto Exposure) determination processing is performed. In the present embodiment, the predetermined image is an image of the ridge 210a (see FIG. 8) formed on the surface of the medal rail 210. That is, in the present embodiment, the ISP circuit 245 forms an image determination unit that determines whether a predetermined image is included in the image data.

ISP回路245は、ISI回路251から出力された画像から所定の長さ以上の直線成分を抽出可能なときに、出力された画像に突条部210aの画像が含まれていると判定し、抽出できないときには、出力された画像に突条部210aの画像が含まれていないと判定する。なお、出力された画像からの所定の長さ以上の直線成分の抽出は、例えば出力された画像にハフ変換処理を施すことにより行われるが、これに限らず、他の特徴抽出方法を用いてもよい。   When the ISP circuit 245 can extract a linear component having a predetermined length or more from the image output from the ISI circuit 251, the ISP circuit 245 determines that the output image includes the image of the ridge 210 a and extracts the image. If not, it is determined that the output image does not include the image of the ridge 210a. The extraction of a straight line component having a predetermined length or more from the output image is performed, for example, by performing a Hough transform process on the output image. However, the present invention is not limited to this. Is also good.

ISP回路245は、ISI回路251から出力された画像に突条部210aの画像が含まれていると判定するとき、このAE判定処理の判定結果をホストコントローラ241に出力せず、また、以降に、ISI回路251から出力された画像については、AE判定処理を行わない。   When the ISP circuit 245 determines that the image output from the ISI circuit 251 includes the image of the ridge 210a, the ISP circuit 245 does not output the determination result of the AE determination process to the host controller 241. , AE determination processing is not performed on the image output from the ISI circuit 251.

一方、ISP回路245は、ISI回路251から出力された画像に突条部210aの画像が含まれていないと判定するとき、このAE判定処理の判定結果をホストコントローラ241に出力する。また、ISP回路245は、CMOSイメージセンサ232の露光時間が、本実施形態における上限の175μ秒(段階25に対応する露光時間)に設定されるまで、ISI回路251から画像が出力されると、出力された画像に対して、AE判定処理を行う。   On the other hand, when the ISP circuit 245 determines that the image output from the ISI circuit 251 does not include the image of the ridge 210a, the ISP circuit 245 outputs the determination result of the AE determination process to the host controller 241. Also, the ISP circuit 245 outputs an image from the ISI circuit 251 until the exposure time of the CMOS image sensor 232 is set to the upper limit of 175 μsec (exposure time corresponding to step 25) in the present embodiment. An AE determination process is performed on the output image.

なお、本実施形態では、所定の画像を、メダルレール210の表面に形成された突条部210aとする態様を説明した。しかし、これに限らず、所定の画像を、例えば、メダルレール210に形成されている基準マーカー260としてもよい。また、出力された画像から直線成分が抽出できるか否かを判定する態様を説明したが、これに限らず、抽出した直線成分の画角強度に基づく判定を行ってもよい。   In the present embodiment, the mode in which the predetermined image is the ridge 210a formed on the surface of the medal rail 210 has been described. However, the present invention is not limited thereto, and a predetermined image may be used as the reference marker 260 formed on the medal rail 210, for example. In addition, the mode has been described in which it is determined whether or not a straight line component can be extracted from the output image. However, the present invention is not limited to this.

<カラー認識回路>
カラー認識回路247は、ISP回路245から出力されたHSV画像データの内の色相と彩度に基づいて色判定処理を行う。色判定処理には、メダル検出処理、閾値判定処理、彩度・色相乗算処理、色テンプレート生成処理、及び、色テンプレート比較処理が含まれる。
<Color recognition circuit>
The color recognition circuit 247 performs a color determination process based on the hue and saturation in the HSV image data output from the ISP circuit 245. The color determination process includes a medal detection process, a threshold value determination process, a saturation / hue multiplication process, a color template generation process, and a color template comparison process.

(1)メダル検出処理
色判定処理において、カラー認識回路247は、ISP回路245から出力されたHSV画像データをSRAM243に記憶させる。なお、SRAM243には、所定数のHSV画像データが記憶可能な記憶領域が設けられている。SRAM243に記憶されているHSV画像データの数が上限数に達した場合、記憶された順序が古いHSV画像データから上書きされる。
(1) Medal Detection Processing In the color determination processing, the color recognition circuit 247 causes the SRAM 243 to store the HSV image data output from the ISP circuit 245. Note that the SRAM 243 is provided with a storage area capable of storing a predetermined number of HSV image data. When the number of HSV image data stored in the SRAM 243 reaches the upper limit, the stored order is overwritten from the oldest HSV image data.

また、カラー認識回路247は、ISP回路245から出力されたHSV画像データにメダルの画像が含まれているか否かを判別するメダル検出処理を行う。具体的には、今回、ISP回路245から出力されたHSV画像データと、SRAM243に記憶されている背景HSV画像データと、の差分を検出し、差分部分がメダルの形状と一致する場合は、メダルの画像が含まれていると判別する。なお、背景HSV画像データは、メダルの画像が含まれていないHSV画像データであり、メダルがメダルレール210上を移動していないとき、例えば、電源投入直後に、CMOSイメージセンサ232が撮像した画像データをISP回路245がHSV画像データに変換することで得られる。本実施形態では、ISP回路245は、得られた背景HSV画像データをSRAM243に記憶する。なお、検出された差分部分がメダル形状と一致するか否かは、予めフラッシュメモリ244に保存されたメダル形状のHSV画像データと比較することで判別される。   Further, the color recognition circuit 247 performs a medal detection process of determining whether or not the HSV image data output from the ISP circuit 245 includes a medal image. Specifically, this time, the difference between the HSV image data output from the ISP circuit 245 and the background HSV image data stored in the SRAM 243 is detected, and if the difference portion matches the medal shape, Is determined to be included. The background HSV image data is HSV image data that does not include a medal image. When the medal does not move on the medal rail 210, for example, immediately after the power is turned on, an image captured by the CMOS image sensor 232 is taken. The data is obtained by the ISP circuit 245 converting the data into HSV image data. In the present embodiment, the ISP circuit 245 stores the obtained background HSV image data in the SRAM 243. Note that whether or not the detected difference portion matches the medal shape is determined by comparing the medal shape HSV image data stored in the flash memory 244 in advance.

(2)閾値判定処理
HSV画像データにメダルの画像が含まれていると判別した場合、カラー認識回路247は、このHSV画像データに基づいて、閾値判定処理を行う。閾値判定処理において、カラー認識回路247は、HSV画像データにおけるメダルの画像の所定領域、例えば本実施形態ではメダルの中心を含む略正方形の領域(以下、「メダル領域」と称する場合がある)内の全画素の彩度の値を積算し、また、色相の値を積算する。そして、積算値をメダル領域内の画素数で割って、平均彩度値と、平均色相値と、を算出し、算出した値に基づいて、図22に示す閾値グラフ上の位置を特定する。
(2) Threshold determination process When it is determined that the medal image is included in the HSV image data, the color recognition circuit 247 performs a threshold determination process based on the HSV image data. In the threshold value determination processing, the color recognition circuit 247 determines whether a predetermined area of the medal image in the HSV image data, for example, a substantially square area including the center of the medal (hereinafter, may be referred to as a “medal area”) in the present embodiment. Are integrated, and the hue values are integrated. Then, an average saturation value and an average hue value are calculated by dividing the integrated value by the number of pixels in the medal region, and a position on the threshold graph shown in FIG. 22 is specified based on the calculated values.

ここで、図22の閾値グラフは、縦軸を彩度の値、横軸を色相の値とするグラフである。閾値グラフでは、所定の式に基づいて、グラフ上が許容領域と、非許容領域と、に区分けされている。図22では、許容領域の背景を白地で表し、非許容領域の背景を網掛けで表している。   Here, the threshold graph of FIG. 22 is a graph in which the vertical axis represents the saturation value and the horizontal axis represents the hue value. In the threshold value graph, the graph is divided into an allowable region and a non-permissible region based on a predetermined formula. In FIG. 22, the background of the allowable region is represented by a white background, and the background of the non-permissible region is represented by hatching.

平均彩度値と、平均色相値とに基づく閾値グラフ上の位置が、許容領域内の場合は、色判定処理を継続する。一方、非許容領域内の場合は、色判定処理の判定結果として、「閾値判定不可」をSRAM243の色判定記憶領域に記憶させ、色判定処理を終了する。なお、SRAM243の色判定記憶領域には、所定数の判定結果が記憶可能であり、記憶されている判定結果が上限数に達した場合、記憶された順序が早い判定結果から上書きされる。   If the position on the threshold graph based on the average saturation value and the average hue value is within the allowable range, the color determination processing is continued. On the other hand, if it is within the non-permissible area, “No threshold determination” is stored in the color determination storage area of the SRAM 243 as a result of the color determination processing, and the color determination processing ends. Note that a predetermined number of determination results can be stored in the color determination storage area of the SRAM 243, and when the stored determination results reach the upper limit, the stored order is overwritten from the earlier determination result.

なお、上記に代えて、カラー認識回路247は、メダル領域内の各画素について、その画素の彩度の値と色相の値とに基づいて、図22に示す閾値グラフ上の位置を特定してもよい。この場合、非許容領域内に位置付けられる画素の数が、所定数、例えばメダル領域内の画素数の20%を超えるか否かを判定し、超えない場合は、色判定処理を継続し、超える場合は、色判定処理の判定結果として、「閾値判定不可」をSRAM243に記憶させ、色判定処理を終了させてもよい。   Instead of the above, the color recognition circuit 247 specifies a position on the threshold graph shown in FIG. 22 for each pixel in the medal region based on the saturation value and the hue value of the pixel. Is also good. In this case, it is determined whether or not the number of pixels positioned in the non-permissible area exceeds a predetermined number, for example, 20% of the number of pixels in the medal area. If not, the color determination processing is continued and exceeded. In this case, “No threshold determination” may be stored in the SRAM 243 as the determination result of the color determination process, and the color determination process may be terminated.

また、閾値グラフにおける許容領域と非許容領域は適宜設定可能である。例えば、図22の非許容領域に加えて、彩度の値が所定値以上、例えば90以上の場合は、非許容領域に位置するような非許容領域を設けてもよい。   Further, the allowable region and the non-permissible region in the threshold graph can be set as appropriate. For example, in addition to the non-permissible region in FIG. 22, when the value of the saturation is equal to or more than a predetermined value, for example, 90 or more, a non-permissible region positioned in the non-permissible region may be provided.

(3)彩度・色相乗算処理
閾値判定処理後、カラー認識回路247は、閾値判定処理において、彩度・色相乗算処理を行う。彩度・色相乗算処理において、メダル領域内の各画素の彩度の値と色相の値を乗算し、また、乗算して算出した値を、その画素の位置と対応づけてSRAM243に記憶させる。なお、以後の説明において、メダル領域内の各画素の彩度の値と色相の値との乗算値をその画素の位置に対応づけて記憶したデータのまとまりを「色判定用データ」と称する場合がある。
(3) Saturation / Hue Multiplication Process After the threshold value determination process, the color recognition circuit 247 performs a saturation / hue multiplication process in the threshold value determination process. In the saturation / hue multiplication process, the saturation value and the hue value of each pixel in the medal region are multiplied, and the value calculated by the multiplication is stored in the SRAM 243 in association with the position of the pixel. In the following description, a set of data in which a multiplied value of a saturation value and a hue value of each pixel in a medal region is stored in association with the position of the pixel is referred to as “color determination data”. There is.

(4)色テンプレート生成処理
色テンプレート生成処理は、後述する色テンプレート比較処理において用いられる色テンプレートを生成(作成)する処理である。色テンプレート生成処理において、カラー認識回路247は、電源投入後に投入されたメダルが規定初期投入枚数、本実施形態では50枚に達するまでの各メダルに係る色判定用データを相互に比較し、一致する又は所定程度類似する色判定用データをグループ化する。
(4) Color Template Generation Process The color template generation process is a process of generating (creating) a color template used in a color template comparison process described later. In the color template generation processing, the color recognition circuit 247 compares the color determination data for each medal until the number of medals inserted after the power is turned on reaches the specified initial number of medals, and in this embodiment, reaches 50, and determines whether the medals match. Or color determination data similar to a predetermined degree is grouped.

例えば、カラー認識回路247は、50枚のメダルに係る色判定用データについて、彩度の値と色相の値との乗算値を、対応づけられている画素の位置毎に比較する。そして、一致する又は所定の誤差範囲(例えば、±5)内である乗算値の数が所定数以上(例えば、全乗算値の80%以上)の場合にこれらの色判定用データをグループ化する。   For example, the color recognition circuit 247 compares the multiplied value of the saturation value and the hue value for the color determination data for 50 medals for each of the associated pixel positions. Then, when the number of multiplied values that match or are within a predetermined error range (for example, ± 5) is a predetermined number or more (for example, 80% or more of all multiplied values), these color determination data are grouped. .

次いで、カラー認識回路247は、属する色判定用データの数の多い順で、上位4つのグループを選定する。そして、選定した上位4つのグループのそれぞれについて、任意の一つの色判定用データを選定し、その4つの色判定用データを色テンプレートとして、SRAM243の色テンプレートを記憶する記憶領域に記憶させる。なお、選定した上位4つのグループのそれぞれについて、任意の一つの色判定用データを選定することに代えて、同一のグループに属する色判定用データの平均値(各画素に係る乗算値の平均値)を算出することで色テンプレートを生成してもよい。また、SRAM243に記憶された色テンプレートは、遊技機の電源投入時に、ホストコントローラ241の初期化処理(不図示)により消去してもよい。   Next, the color recognition circuit 247 selects the top four groups in descending order of the number of pieces of color determination data to which they belong. Then, for each of the selected upper four groups, any one color determination data is selected, and the four color determination data are stored as color templates in a storage area of the SRAM 243 for storing color templates. Instead of selecting any one color determination data for each of the selected top four groups, the average value of the color determination data belonging to the same group (the average value of the multiplied values for each pixel) ) May be calculated to generate a color template. Further, the color template stored in the SRAM 243 may be deleted by an initialization process (not shown) of the host controller 241 when the power of the gaming machine is turned on.

上記のように、色テンプレートを生成することで、例えば、表と裏で刻印(模様)や色が異なる2種類のメダルを正規メダルとして使用する場合で、且つ、色テンプレートがSRAM243の記憶領域に記憶されていない場合に、電源投入後にこれら正規メダルを50枚投入することで、これら2種類のメダルの表と裏に係る4種類の色テンプレートを生成することができる。なお、色テンプレートがSRAM243の記憶領域に記憶されていない場合に、電源投入後に投入された50枚の正規メダルが1種類であったときは、この正規メダルの表と裏に係る2種類の色テンプレートが生成され、後述の色テンプレート比較処理では、生成された2種類の色テンプレートが用いられる。   By generating a color template as described above, for example, when two types of medals having different engravings (patterns) and colors on the front and back are used as regular medals, and the color template is stored in the storage area of the SRAM 243. If not stored, by inserting 50 regular medals after the power is turned on, four types of color templates for the front and back of these two medals can be generated. If the color template is not stored in the storage area of the SRAM 243, and if one of the 50 regular medals inserted after the power is turned on is one type, the two types of colors related to the front and back of the regular medal are used. A template is generated, and in the color template comparison process described later, the generated two types of color templates are used.

なお、色テンプレートがSRAM243の記憶領域に記憶されていない場合に、電源投入後に投入されたメダルが規定初期投入枚数、本実施形態では50枚に達するまでの各メダルに係る色判定用データは、ホストコントローラ241の指示に応じて生成される。ホストコントローラ241は、後述するメダルカウント回路246がメダルレール210上を「メダルが通過した」と判定したことを契機に、該判定時から所定時間前の(すなわち、所定フレーム前の)HSV画像データを用いて、色判定用データを生成するように、カラー認識回路247に指示する。なお、この所定時間は、所定時間前のHSV画像データに、必ずメダルの画像が含まれるように、実験やシミュレーションに基づいて予め設定される。   In the case where the color template is not stored in the storage area of the SRAM 243, the color determination data relating to each medal until the number of medals inserted after the power is turned on reaches the prescribed initial number of medals, and in this embodiment, reaches 50. It is generated in response to an instruction from the host controller 241. When the medal counting circuit 246, which will be described later, determines that “the medal has passed” on the medal rail 210, the host controller 241 triggers the HSV image data a predetermined time before (ie, a predetermined frame before) the determination. Is used to instruct the color recognition circuit 247 to generate color determination data. The predetermined time is set in advance based on experiments and simulations so that the HSV image data before the predetermined time always includes a medal image.

また、この色判定用データは、上述したメダル検出処理、閾値判定処理、彩度・色相乗算処理を経て生成され、SRAM243の色判定用データ記憶領域に記憶される。カラー認識回路247は、色判定用データ記憶領域に記憶された色判定用データが50個に達すると、すなわち50枚のメダルに係る色判定用データが作成されると、色テンプレート生成処理を実行する。   The color determination data is generated through the above-described medal detection processing, threshold value determination processing, saturation / hue multiplication processing, and stored in the color determination data storage area of the SRAM 243. When the number of color determination data stored in the color determination data storage area reaches 50, that is, when color determination data relating to 50 medals is created, the color recognition circuit 247 executes a color template generation process. I do.

色テンプレート生成処理において、所定程度類似する色判定用データをグループ化できないなどの理由で色テンプレートが作成できなかった場合、カラー認識回路247は、ホストコントローラ241にメダルセレクタエラーコマンドの送信を要求する。ホストコントローラ241は、当該要求に応じて、メダルセレクタエラーコマンドを送信する。なお、このメダルセレクタエラーコマンドのDAT0の値は、「色テンプレート生成エラー」を示す「4」が設定されている。メダルセレクタエラーコマンドの詳細については後述する。   In the color template generation processing, when a color template cannot be created because color determination data similar to a predetermined degree cannot be grouped, the color recognition circuit 247 requests the host controller 241 to transmit a medal selector error command. . The host controller 241 transmits a medal selector error command in response to the request. The value of DAT0 of this medal selector error command is set to “4” indicating “color template generation error”. Details of the medal selector error command will be described later.

(5)色テンプレート比較処理
色テンプレート生成処理後のメダル検出処理でメダルの画像が含まれていると判別すると、カラー認識回路247は、色テンプレート比較処理を行う。
(5) Color Template Comparison Processing When it is determined that a medal image is included in the medal detection processing after the color template generation processing, the color recognition circuit 247 performs a color template comparison processing.

色テンプレート比較処理では、メダルの画像が含まれていると判別されたHSV画像データについて、閾値判定処理、彩度・色相乗算処理を経て作成された色判定用データと、色テンプレートとを比較し、一致又は所定程度類似するか否かの可否判定を行い、判定結果として「可」又は「否」をSRAM243の色判定記憶領域に記憶させる。本実施形態では、最大4つの色テンプレートを用いるため、最大4つのテンプレートに対する判定結果をSRAM243に記憶させる。また、色テンプレート比較処理では、色判定結果をSRAM243の色判定記憶領域に記憶させる。ここで、色判定結果としては、最大4つのテンプレートに対する判定結果として1つでも「可」が記憶されている場合には「判定OK」が記憶され、全て「否」が記憶されている場合には「判定NG」が記憶される。したがって、1回の色テンプレート比較処理において、最大4つの色テンプレートに対する最大4つの判定結果(可又は否)と、これらの判定結果に基づく1つの色判定結果(判定OK又は判定NG)が記憶される。なお、カラー認識回路247は、SRAM243の色判定記憶領域に、色判定結果を記憶する際は、判定に係るHSV画像データが引き継いでいる上述の画像IDと色判定結果とを関連づけて記憶する。また、色判定結果領域には、所定数の判定結果が記憶可能であり、記憶されている判定結果が上限数に達した場合、記憶された順序が早い判定結果から上書きされる。   In the color template comparison processing, the HSV image data determined to include the medal image is compared with the color determination data created through the threshold determination processing, the saturation / hue multiplication processing, and the color template. It is determined whether or not they match or are similar to each other by a predetermined degree, and “OK” or “NO” is stored in the color determination storage area of the SRAM 243 as the determination result. In the present embodiment, since a maximum of four color templates are used, the determination results for the maximum of four templates are stored in the SRAM 243. In the color template comparison process, the color determination result is stored in the color determination storage area of the SRAM 243. Here, as a color determination result, “OK” is stored when at least one “OK” is stored as a determination result for up to four templates, and when all “NO” are stored, Is stored as “NG”. Therefore, in one color template comparison process, up to four determination results (possible or not) for up to four color templates and one color determination result (determination OK or NG) based on these determination results are stored. You. When storing the color determination result in the color determination storage area of the SRAM 243, the color recognition circuit 247 stores the above-described image ID inherited by the HSV image data related to the determination in association with the color determination result. Further, a predetermined number of determination results can be stored in the color determination result area, and when the stored determination results reach the upper limit number, the stored order is overwritten from the earlier determination result.

例えば、カラー認識回路247は、色判定用データと色テンプレートにおける彩度の値と色相の値との乗算値を、対応づけられている画素の位置毎に比較する。そして、一致する又は所定の誤差範囲(例えば、±5)内である乗算値の数が所定数以上(例えば、全乗算値の80%以上)の場合に一致又は所定程度類似すると判定する。なお、この処理における、一致又は所定程度類似するか否かの判定基準は、適宜設定可能である。   For example, the color recognition circuit 247 compares the multiplication value of the color determination data with the saturation value and the hue value in the color template for each of the associated pixel positions. Then, when the number of multiplied values that match each other or within a predetermined error range (for example, ± 5) is equal to or more than a predetermined number (for example, 80% or more of all multiplied values), it is determined that the values match or are similar to a predetermined degree. In this process, the criterion for judging whether or not they match or are similar to each other by a predetermined degree can be appropriately set.

以上のように、色判定処理において、閾値判定処理を行い、また、色テンプレート比較処理を行い、色判定用データと、色テンプレートとを比較し、一致又は所定程度類似するか否かを判定するカラー認識回路247は、メダルレール210上を通過した物体が正規メダルであるか否かを判定する遊技媒体判定手段を構成する。   As described above, in the color determination processing, the threshold determination processing is performed, the color template comparison processing is performed, and the color determination data is compared with the color template to determine whether they match or are similar to a predetermined degree. The color recognition circuit 247 forms a game medium determination unit that determines whether an object that has passed on the medal rail 210 is a regular medal.

<メダルカウント回路>
メダルカウント回路246は、ISP回路245から出力されたグレースケール画像データに基づいてカウント処理を行う。カウント処理には、メダル画像判別処理、メダル位置検出処理及び順序判定処理が含まれる。
<Medal counting circuit>
The medal counting circuit 246 performs a counting process based on the grayscale image data output from the ISP circuit 245. The counting process includes a medal image determination process, a medal position detection process, and an order determination process.

(1)メダル画像判別処理
カウント処理において、メダルカウント回路246は、まず、メダル画像判別処理を行う。メダル画像判別処理において、メダルカウント回路246は、ISP回路245から出力されたグレースケール画像データに、メダルの画像が含まれているか否かを判別する。具体的には、今回、ISP回路245から出力されたグレースケール画像データと、SRAM243に記憶されている背景グレースケール画像データの各画素について差分を検出し、差分が検出された複数の画素によって形成される形状が、フラッシュメモリ244に保存されているメダル形状のテンプレートデータと一致する場合は、メダルの画像が含まれていると判別する。なお、背景グレースケール画像データは、メダルの画像が含まれていないグレースケール画像データであり、メダルがメダルレール210上を移動していないとき、例えば、電源投入直後に、CMOSイメージセンサ232が撮像した画像データをISP回路245がグレースケール画像データに変換することで得られる。本実施形態では、ISP回路245は、得られた背景グレースケール画像データをSRAM243に記憶する。なお、本実施形態では、メダルカウント回路246が背景グレースケール画像データとISP回路245から出力されたグレースケール画像データの差分を検出し、差分が検出された複数の画素によって形成される形状がメダル形状と一致するか否かでメダルの画像が含まれているか否かを判別した。しかし、これに限らず、差分が検出された複数の画素によって形成される形状の一部がメダル形状の一部と一致するか否かで、メダルの画像が含まれていると判別してもよいし、検出した差分の画素の数が一定数以上ある場合に、メダルの画像が含まれていると判別してもよい。
(1) Medal Image Determination Processing In the count processing, the medal count circuit 246 first performs a medal image determination processing. In the medal image determining process, the medal counting circuit 246 determines whether or not the grayscale image data output from the ISP circuit 245 includes a medal image. More specifically, a difference between each pixel of the grayscale image data output from the ISP circuit 245 and each pixel of the background grayscale image data stored in the SRAM 243 is detected, and the difference is formed by a plurality of pixels where the difference is detected. If the shape to be performed matches the template data of the medal shape stored in the flash memory 244, it is determined that a medal image is included. The background grayscale image data is grayscale image data that does not include a medal image. When the medal does not move on the medal rail 210, for example, immediately after the power is turned on, the CMOS image sensor 232 captures an image. The ISP circuit 245 converts the converted image data into grayscale image data. In the present embodiment, the ISP circuit 245 stores the obtained background grayscale image data in the SRAM 243. In the present embodiment, the medal counting circuit 246 detects the difference between the background grayscale image data and the grayscale image data output from the ISP circuit 245, and the shape formed by the plurality of pixels from which the difference has been detected is a medal. It was determined whether or not a medal image was included based on whether or not the shape matched the shape. However, the present invention is not limited to this. Even if it is determined that a medal image is included based on whether or not a part of the shape formed by the plurality of pixels whose differences have been detected matches a part of the medal shape. Alternatively, when the number of pixels of the detected difference is equal to or more than a certain number, it may be determined that a medal image is included.

(2)メダル位置検出処理
次に、メダルカウント回路246は、ISP回路245から出力されたグレースケール画像データで、且つ、メダル画像判別処理においてメダルの画像が含まれていると判別されたグレースケール画像データについて、メダル位置検出処理を行う。メダル位置検出処理において、メダルカウント回路246は、上記のグレースケール画像データにおける所定の判定領域にメダルの画像が存在するか否かを判別し、判別結果をSRAM243に記憶させる。
(2) Medal Position Detection Process Next, the medal count circuit 246 is the grayscale image data output from the ISP circuit 245 and the grayscale image determined to include the medal image in the medal image determination process. A medal position detection process is performed on the image data. In the medal position detection process, the medal counting circuit 246 determines whether or not a medal image exists in a predetermined determination area in the grayscale image data, and stores the determination result in the SRAM 243.

所定の判定領域は、グレースケール画像データG2内の複数の矩形状の領域であり、本実施形態では、図23〜図25に示すように、判定領域A1〜A4,B1〜B4,C1,C2,D1〜D4,E及びFの合計16個の判定領域が設定されている。なお、図23A〜C、図24D〜F、図25Gは、メダルレール210上を通過し、メダル出口部204cから排出されるメダルMと判定領域との関係を説明するための図である。また、図25Hは、メダルシュート202に案内されるメダルと判定領域との関係を説明するための図である。   The predetermined determination area is a plurality of rectangular areas in the grayscale image data G2. In the present embodiment, as shown in FIGS. 23 to 25, the determination areas A1 to A4, B1 to B4, C1, C2 , D1 to D4, E, and F, a total of 16 determination areas are set. FIGS. 23A to 23C, 24D to 24F, and 25G are diagrams for explaining the relationship between medals M that pass through the medal rail 210 and are discharged from the medal exit unit 204c and the determination area. FIG. 25H is a diagram for explaining the relationship between the medals guided to the medal shoot 202 and the determination area.

各判定領域は、判定領域内に複数の画素が含まれるように、グレースケール画像データG2における各判定領域の角部の座標値(X,Y)を規定することで、プログラム上で予め規定されている。例えば、図26に示すように、C1の判定領域は、領域内に8つの画素を含み、4つの角部の座標値(450,95),(453,95),(450,96),(453,96)によって、その位置が規定されている。なお、図26では、格子の一マスが一画素を示している。   Each determination area is defined in advance in a program by defining the coordinate value (X, Y) of a corner of each determination area in the grayscale image data G2 so that a plurality of pixels are included in the determination area. ing. For example, as shown in FIG. 26, the determination area of C1 includes eight pixels in the area, and the coordinate values of four corners (450, 95), (453, 95), (450, 96), ( 453, 96) defines its position. In FIG. 26, one cell of the grid represents one pixel.

図23A〜C、図24D〜F、図25Gに示すように、判定領域A1〜A4,B1〜B4は、メダルレール210上を通過し、メダル出口部204cから排出されるメダルMの画像の下部に重なるように配置される。また、判定領域C1,C2は、メダルレール210上を通過し、メダル出口部204cから排出されるメダルMの画像の上部に重なるように配置される。また、判定領域E及びFは、メダルレール210上を通過し、メダル出口部204cから排出されるメダルMの画像に重ならないように、配置されている。   As shown in FIGS. 23A to 23C, 24D to 24F, and 25G, the determination areas A1 to A4 and B1 to B4 pass on the medal rail 210 and are located below the image of the medal M discharged from the medal exit 204c. It is arranged so that it may overlap. Further, the determination areas C1 and C2 are arranged so as to pass over the medal rail 210 and overlap the upper part of the image of the medal M discharged from the medal exit part 204c. The determination areas E and F are arranged so as to pass over the medal rail 210 and not overlap the image of the medal M discharged from the medal exit section 204c.

また、判定領域Fは、図25Hに示すように、メダルがメダルシュート202に案内される場合のメダルMの画像に重なるように、グレースケール画像データG2の下部に配置される。また、判定領域Eは、メダルMの経路の上方に位置し、不正行為に用いられる各種器具の画像に重なるように、グレースケール画像データG2の上部に配置される。   Further, as shown in FIG. 25H, the determination area F is arranged below the grayscale image data G2 so as to overlap the image of the medal M when the medal is guided to the medal shoot 202. Further, the determination area E is located above the path of the medal M, and is arranged above the grayscale image data G2 so as to overlap with images of various appliances used for cheating.

メダルカウント回路246は、処理の対象であるグレースケール画像データと背景グレースケール画像データの各判定領域における各画素の輝度の差分値を算出し、算出した差分値が閾値以上の画素の数を、判定領域毎にカウントする。ここで、この閾値は、256階調の20%の値、すなわち51(小数点以下は四捨五入)に設定されている。そして、メダルカウント回路246は、判定領域毎に、カウントした画素の数が、所定数(例えば本実施形態では1)以上であるか否かを判定し、所定数以上であると判定した場合は、その判定領域にメダルの画像が存在する(メダルがある)と判定する。一方、カウントした画素の数が、所定数に満たないと判定した場合は、その判定領域にメダルの画像が存在しない(メダルがない)と判定する。なお、本実施形態では、本処理においてグレースケール画像データを用いる態様を説明したが、これに限らず、例えば上述の色判定処理で用いた彩度と色相を乗算して生成された色判定用データを用いてもよい。   The medal count circuit 246 calculates the difference value of the luminance of each pixel in each determination area between the grayscale image data to be processed and the background grayscale image data, and calculates the number of pixels whose calculated difference value is equal to or larger than a threshold. Count for each judgment area. Here, the threshold value is set to a value of 20% of 256 gradations, that is, 51 (the decimal part is rounded off). Then, the medal counting circuit 246 determines, for each determination area, whether or not the number of counted pixels is equal to or greater than a predetermined number (for example, 1 in the present embodiment). It is determined that the medal image exists in the determination area (there is a medal). On the other hand, when it is determined that the number of counted pixels is less than the predetermined number, it is determined that no medal image exists in the determination area (there is no medal). In the present embodiment, the mode in which grayscale image data is used in the present process has been described. However, the present invention is not limited to this. For example, a color determination image generated by multiplying the saturation and the hue used in the above-described color determination process is used. Data may be used.

また、メダルカウント回路246は、メダル位置検出処理において、メダルの画像が存在する(メダルがある)と判定した判定領域について、メダルエッジ検出処理を行う。   In the medal position detection process, the medal count circuit 246 performs a medal edge detection process on a determination area where it is determined that a medal image is present (a medal is present).

メダルエッジ検出処理では、メダルの画像が存在すると判定した判定領域において、輝度の差分値が閾値に満たない画素の配置に基づきメダルの外縁(エッジ)を検出する処理である。本実施形態において、メダルの移動方向は、図23〜図26における左から右方向である。したがって、メダル画像が存在する判定した判定領域について、輝度の差分値が閾値に満たない画素が右側に一つでもあると、メダルカウント回路246は、メダルの移動方向における前側の外縁(移動先方向メダルエッジ)が存在すると判定する。   In the medal edge detection process, the outer edge (edge) of the medal is detected based on the arrangement of the pixels whose difference value of the luminance is less than the threshold value in the determination area where it is determined that the image of the medal exists. In the present embodiment, the moving direction of the medals is from left to right in FIGS. Therefore, if there is at least one pixel on the right where the difference value of the luminance is less than the threshold value in the determined area where the medal image is present, the medal counting circuit 246 determines that the outer edge on the front side in the moving direction of the medal (the moving destination (Medal edge) is determined.

一方、メダル画像が存在する判定した判定領域について、輝度の差分値が閾値に満たない画素が左側に一つでもあると、メダルカウント回路246は、メダルの移動方向における後側の外縁(移動後方向メダルエッジ)が存在すると判定する。なお、輝度の差分値が閾値に満たない画素が一つもない場合は、メダルカウント回路246は、当該判定領域にメダルの外縁がないと、判定する。   On the other hand, if there is at least one pixel on the left side whose luminance difference value is less than the threshold value in the determination area where the medal image is present, the medal count circuit 246 determines that the outer edge on the rear side in the moving direction of the medal (after moving) Direction medal edge). If there is no pixel whose difference value of luminance is less than the threshold value, the medal counting circuit 246 determines that there is no outer edge of the medal in the determination area.

例えば、図26に示す判定領域C1において、右側に位置する画素である5C〜8Cのいずれかの画素において、輝度の差分値が閾値に満たない画素が一つでもある場合は、移動先方向メダルエッジがあると判定する。一方、左側に位置する画素である1C〜4Cのいずれかの画素において、輝度の差分値が閾値に満たない画素が一つでもある場合は、移動後方向メダルエッジがあると判定する。   For example, in the determination area C1 shown in FIG. 26, if any one of the pixels 5C to 8C located on the right side has a luminance difference value less than the threshold value, the moving destination direction medal It is determined that there is an edge. On the other hand, if any one of the pixels 1C to 4C located on the left side has a luminance difference value smaller than the threshold value, it is determined that there is a post-movement direction medal edge.

なお、判定領域E及びFについては、メダル又は各種器具の移動方向が、図23〜25における上から下方向であると考えられることから、輝度の差分値が閾値以上の画素よりも下方に輝度の差分値が閾値に満たない画素が一つでもあるときは、メダルカウント回路246は、メダルの移動方向における下側の外縁(移動先方向メダルエッジ)が存在すると判定する。一方、輝度の差分値が閾値以上の画素よりも上方に輝度の差分値が閾値に満たない画素が一つでもあるときは、メダルカウント回路246は、メダルの移動方向における上側の外縁(移動後方向メダルエッジ)が存在すると判定する。また、輝度の差分値が閾値以上の画素よりも下方又は上方に位置する画素について、輝度の差分値が閾値に満たない画素が一つもない場合は、メダルカウント回路246は、当該判定領域にメダル画像は存在するが、メダルの外縁はないと、判定する。   In addition, regarding the determination areas E and F, since the moving direction of the medal or the various devices is considered to be downward from above in FIGS. 23 to 25, the luminance difference value is lower than the pixel whose luminance difference value is equal to or larger than the threshold. If there is at least one pixel whose difference value is smaller than the threshold value, the medal counting circuit 246 determines that there is a lower outer edge (movement destination direction medal edge) in the medal moving direction. On the other hand, when there is at least one pixel whose luminance difference value is less than the threshold value above the pixel whose luminance difference value is equal to or greater than the threshold value, the medal counting circuit 246 determines the upper outer edge (in the medal movement direction) Direction medal edge). If there is no pixel whose luminance difference value is below the threshold value for any pixel located below or above the pixel whose luminance difference value is equal to or greater than the threshold value, the medal count circuit 246 sets the medal in the determination area. It is determined that there is an image but there is no outer edge of the medal.

そして、メダルカウント回路246は、判定対象のグレースケール画像データの各判定領域について、上記判定結果、すなわち、判定領域に、メダル画像が存在するか否かの判定結果、及び、移動先方向メダルエッジ又は移動後方向メダルエッジが存在するか否かの判定結果を、SRAM243に記憶させる。例えば、メダルカウント回路246は、メダルの画像が存在しないと判定した判定領域に対しては「OFF」というデータを記憶させる。また、移動先方向メダルエッジが存在すると判定した判定領域に対しては「IN」というデータ、移動後方向メダルエッジが存在すると判定した判定領域に対しては「OUT」というデータ、そして、メダル画像は存在するが、メダルの外縁はないと判定した判定領域に対しては「ON」というデータを記憶させる。
なお、既に、SRAM243に判定結果が記憶されている場合は、メダルカウント回路246は、直近の判定結果と、今回の判定結果と、を比較し、判定領域のいずれか一つでも判定結果に変化があった場合は、SRAM243に今回の全判定領域についての判定結果を記憶させる。一方、いずれの判定領域の判定結果にも変化がなかった場合は、SRAM243に今回の全判定領域についての判定結果を記憶させない。
Then, the medal counting circuit 246 determines the above determination result for each determination region of the grayscale image data to be determined, that is, the determination result as to whether or not a medal image exists in the determination region, and the medal edge in the destination direction. Alternatively, the result of determining whether or not a post-movement direction medal edge exists is stored in the SRAM 243. For example, the medal counting circuit 246 stores data “OFF” in a determination area where it is determined that no medal image exists. In addition, data “IN” is used for a determination area where it is determined that a destination direction medal edge is present, data “OUT” is provided for a determination area where it is determined that a post-movement direction medal edge is present, and a medal image. Exists, but data “ON” is stored in a determination area where it is determined that there is no outer edge of a medal.
If the determination result has already been stored in the SRAM 243, the medal counting circuit 246 compares the latest determination result with the current determination result, and changes any one of the determination areas to the determination result. If there is, the determination result for all the determination areas at this time is stored in the SRAM 243. On the other hand, if there is no change in the determination results of any of the determination areas, the SRAM 243 does not store the determination results of all the current determination areas.

また、メダルカウント回路246は、メダルが投入不可の場合、例えば、後述するようにクレジットカウンタが最大値の場合、判定領域A1〜A4,B1〜B4,C1,C2,D1〜D4の判定を省略する。また、この場合、メダルカウント回路246は、SRAMに判定領域A1〜A4,B1〜B4,C1,C2,D1〜D4に対して、上記判定を省略した旨、すなわち未判定である旨を示す「*」データ(具体的な数値としては、16進数の「FF」)を記憶させる。   Further, the medal counting circuit 246 omits the determination of the determination areas A1 to A4, B1 to B4, C1, C2, D1 to D4 when the medal cannot be inserted, for example, when the credit counter has the maximum value as described later. I do. In this case, the medal count circuit 246 indicates that the above determination has been omitted, that is, that no determination has been made, for the determination areas A1 to A4, B1 to B4, C1, C2, and D1 to D4 in the SRAM. * ”Data (specifically, hexadecimal“ FF ”) is stored.

したがって、図23A〜C、図24D〜F、図25G,Hに示す8個のグレースケール画像データG2について、SRAM243には、図27に示すような、判定領域判定結果データが記憶される。例えば、図23Aのグレースケール画像データG2については、判定領域A1,A2に対して、移動先方向メダルエッジが存在すると判定されるので、「IN」というデータ(具体的な数値としては、16進数の「01」)が記憶され、その他の判定領域に対しては、メダル画像が存在しないと判定されるので、「OFF」というデータ(具体的な数値としては、16進数の「00」)が記憶される。   Therefore, for the eight grayscale image data G2 shown in FIG. 23A to FIG. 23C, FIG. 24D to FIG. 24F, and FIG. For example, for the grayscale image data G2 in FIG. 23A, it is determined that there is a destination direction medal edge for the determination areas A1 and A2, so that the data “IN” (a specific numerical value is hexadecimal "01") is stored, and it is determined that the medal image does not exist in the other determination areas. Therefore, data "OFF" (specifically, a hexadecimal number "00") is output. It is memorized.

また、図24Eのグレースケール画像データについては、判定領域A1〜A4,E及びFに対しては、メダル画像が存在しないと判定されるので、「OFF」というデータが記憶される。また、判定領域B1,B2,C1及びC2に対しては、移動後方向メダルエッジが存在すると判定されるので「OUT」というデータ(具体的な数値としては、16進数の「02」)が記憶される。また、判定領域B3,B4,D1〜D4に対しては、メダル画像は存在するが、メダルの外縁がないと判定されるので「ON」というデータ(具体的な数値としては、16進数の「03」)が記憶される。   In the grayscale image data of FIG. 24E, since it is determined that no medal image exists in the determination areas A1 to A4, E, and F, data “OFF” is stored. Further, for the determination areas B1, B2, C1 and C2, it is determined that there is a post-movement direction medal edge, so data "OUT" (a specific numerical value "02" in hexadecimal) is stored. Is done. Also, for the determination areas B3, B4, D1 to D4, there is a medal image, but it is determined that there is no outer edge of the medal, so that the data is “ON” (a specific numerical value is a hexadecimal “ 03 ") is stored.

また、図25Hに示すグレースケール画像データG2について、判定領域Fに対して、メダル画像は存在するが、メダルの外縁がないと判定されるので「ON」というデータが記憶される。また、判定領域A1〜A4,B1〜B4,C1,C2,D1〜D4については、未判定である旨を示す「*」というデータが記憶される。   In the grayscale image data G2 shown in FIG. 25H, although there is a medal image in the determination area F, it is determined that there is no outer edge of the medal, so that data “ON” is stored. Further, for the determination areas A1 to A4, B1 to B4, C1, C2, D1 to D4, data “*” indicating that the determination has not been made is stored.

なお、図23A〜C、図24D〜F、図25Gのグレースケール画像データG2は、メダルがメダルレール210上を通過し、メダル出口部204cから排出される場合に、ISP回路245から出力されるグレースケール画像データG2のうち、説明の便宜上、7つのグレースケール画像データG2を抜粋したものである。すなわち、同場合に、ISP回路245から出力されるグレースケール画像データは、図23A〜C、図24D〜F、図25Gに示すグレースケール画像データG2の他にも存在する。   Note that the grayscale image data G2 of FIGS. 23A to 23C, 24D to 24F, and 25G is output from the ISP circuit 245 when the medal passes on the medal rail 210 and is discharged from the medal exit 204c. Of the grayscale image data G2, seven grayscale image data G2 are extracted for convenience of explanation. That is, in this case, gray scale image data output from the ISP circuit 245 exists in addition to the gray scale image data G2 shown in FIGS. 23A to 23C, 24D to 24F, and 25G.

また、SRAM243には、判定領域判定結果データとして、所定数、本実施形態では14個分のグレースケール画像データに係る上記判定結果を記憶する記憶領域が設けられている。   Further, the SRAM 243 is provided with a storage area for storing a predetermined number, in the present embodiment, 14 pieces of gray scale image data, of the above determination results as the determination area determination result data.

(3)順序判定処理
メダルカウント回路246は、パチスロ1がメダル投入可の状態のときは、SRAM243に、判定領域判定結果データとして、所定数、本実施形態では14個分のグレースケール画像データに係る上記判定結果が記憶されると、順序判定処理を行う。また、メダルカウント回路246は、パチスロ1がメダル投入不可の状態のときは、SRAM243に、判定領域判定結果データとして、所定数、本実施形態では4個分のグレースケール画像データに係る上記判定結果が記憶されると、順序判定処理を行う。順序判定処理では、時系列的に並ぶ所定の数のグレースケール画像データにおいて、各判定領域についての「IN」,「OUT」,「ON」,「OFF」のデータの遷移の態様が所定の遷移の態様と一致しているか否かを判定し、一致している場合は、メダルレール210上をメダルが通過したと判定する。
(3) Order Determination Processing When the pachislo 1 is in a medal insertion enabled state, the medal counting circuit 246 stores a predetermined number of determination area determination result data in the SRAM 243 as grayscale image data for 14 pieces in the present embodiment. When the determination result is stored, an order determination process is performed. Further, when the pachislot 1 is in a state where the medal cannot be inserted, the medal counting circuit 246 stores, in the SRAM 243, as a determination area determination result data, a predetermined number, in the present embodiment, the above-described determination result of four grayscale image data. Is stored, an order determination process is performed. In the order determination process, in a predetermined number of gray-scale image data arranged in a time series, the mode of transition of “IN”, “OUT”, “ON”, and “OFF” data for each determination region is a predetermined transition. It is determined whether the medals pass through the medal rail 210 if they match.

ここで、所定の遷移の態様として、本実施形態では、フラッシュメモリ244に図28に示すメダルカウント判定表が数値に変換されて記憶されている。メダルカウント判定表では、メダルがメダルレール210上を通過し、メダル出口部204cから排出される場合の時系列的に並んだ14個のグレースケール画像データ上の各判定領域における「IN」,「OUT」,「ON」,「OFF」のデータの遷移の態様が規定されている。また、メダルがメダルシュート202に案内される場合の時系列的に並んだ4個のグレースケール画像データ上の各判定領域における「IN」,「OUT」,「ON」,「OFF」のデータの遷移の態様が規定されている。なお、これらのデータの遷移の態様は、シミュレーションや実験などによって最も速い速度でメダルが移動した場合を想定して予め規定されている。   Here, as a mode of the predetermined transition, in the present embodiment, the medal count determination table shown in FIG. 28 is converted into a numerical value and stored in the flash memory 244. In the medal count determination table, “IN”, “IN” in each determination area on 14 grayscale image data arranged in a time series when a medal passes on the medal rail 210 and is discharged from the medal exit unit 204c. OUT, “ON”, and “OFF” data transition modes are defined. In addition, when the medal is guided to the medal shoot 202, the data of “IN”, “OUT”, “ON”, and “OFF” in each determination area on the four grayscale image data arranged in time series The mode of the transition is defined. The mode of transition of these data is defined in advance, assuming that the medal moves at the fastest speed through a simulation, an experiment, or the like.

パチスロ1がメダル投入可の状態のときの順序判定処理において、メダルカウント回路246は、SRAM243に記憶されている14個分のグレースケール画像データの各判定領域におけるデータ(「IN」,「OUT」,「ON」,「OFF」)の遷移の態様と、メダルカウント判定表で規定されている時系列1〜14に対応するデータの遷移の態様と、を比較し、完全に一致する場合は、「メダルが通過した」と判定する。   In the order determination process when the pachislot 1 is in the medal insertion enabled state, the medal count circuit 246 determines the data (“IN”, “OUT”) in each determination area of the 14 grayscale image data stored in the SRAM 243. , “ON”, “OFF”) and the transition of the data corresponding to the time series 1 to 14 defined in the medal count determination table are compared. It is determined that "the medal has passed".

また、一致しない場合は、「異常が発生した」と判定する。一致しない場合には、例えば、14個分のグレースケール画像データの各判定領域におけるデータの遷移の態様(以下、「比較対象のデータの遷移の態様」と称する場合がある)の、前半部分はメダルカウント判定表で規定されている時系列1〜8に対応するデータの遷移の態様と一致するが、続く部分がメダルカウント判定表で規定されている時系列8〜4に対応するデータの遷移の態様と一致する場合、いわゆる「時系列の逆行」が発生した場合がある。   If they do not match, it is determined that "an abnormality has occurred". If they do not match, for example, the first half of the data transition mode in each determination area of 14 grayscale image data (hereinafter, may be referred to as “transition mode of comparison target data”) is The transition of the data corresponding to the time series 1 to 8 defined in the medal count determination table coincides with the transition of the data corresponding to the time series 8 to 4 defined in the medal count determination table. In this case, a so-called “time-series backward movement” may occur.

また、パチスロ1がメダル投入不可の状態のときの順序判定処理において、メダルカウント回路246は、SRAM243に記憶されている4個分のグレースケール画像データの各判定領域におけるデータの遷移の態様と、メダルカウント判定表で規定されている時系列E1〜E4に対応するデータの遷移の態様と、を比較し、完全に一致する場合は、「メダルがメダルシュート202に案内された」と判定する。   Further, in the order determination process when the pachislot 1 is in the state where the medal cannot be inserted, the medal counting circuit 246 determines the transition of data in each determination area of the four grayscale image data stored in the SRAM 243, The transition of the data corresponding to the time series E1 to E4 defined in the medal count determination table is compared with each other, and if they completely match, it is determined that "the medal has been guided to the medal shoot 202".

また、SRAM243に各判定領域におけるデータ(「IN」,「OUT」,「ON」,「OFF」)を最初に記憶してから、所定時間(例えば、1秒)経過しても、SRAM243に投入可の場合は14個分又は投入不可の場合は4個分のグレースケール画像データの各判定領域におけるデータが記憶されない場合は、メダル詰まりが発生していると考えられる。このため、この場合、メダルカウント回路246は、「異常が発生した」と判定する。   In addition, after the data (“IN”, “OUT”, “ON”, “OFF”) in each determination area is first stored in the SRAM 243, even if a predetermined time (for example, 1 second) has elapsed, the data is input to the SRAM 243. If data in each determination area of 14 grayscale image data is not stored in the case where the determination is possible or four grayscale image data are not stored in the case where the insertion is not possible, it is considered that a medal clogging has occurred. Therefore, in this case, the medal counting circuit 246 determines that “an abnormality has occurred”.

なお、SRAM243に記憶されているグレースケール画像データの各判定領域におけるデータ(「IN」,「OUT」,「ON」,「OFF」)の数が、所定数に満たない場合、例えば4個又は14個に満たない場合は、データの数の不足により遷移の態様が一致しないため、上記比較処理において、「メダルが通過した」、又は、「メダルがメダルシュート202に案内された」と判定されることはない。なお、この場合、上記比較処理を省略してもよい。また、メダルカウント回路246は、順序判定処理を行った後、SRAM243に記憶されている14個分又は4個分のグレースケール画像データの各判定領域におけるデータを削除する。   When the number of data (“IN”, “OUT”, “ON”, “OFF”) in each determination area of the grayscale image data stored in the SRAM 243 is less than a predetermined number, for example, four or If the number is less than 14, the transition mode does not match due to the lack of the number of data. Therefore, in the comparison processing, it is determined that “the medal has passed” or “the medal has been guided to the medal shoot 202”. Never. In this case, the comparison process may be omitted. After performing the order determination process, the medal count circuit 246 deletes the data in each determination area of the 14 or 4 grayscale image data stored in the SRAM 243.

また、メダルカウント回路246は、SRAM243にグレースケール画像データの判定領域Eに対して「IN」,「OUT」,「ON」のいずれかのデータが記憶された場合は、SRAM243に14個分又は4個分のグレースケール画像データの各判定領域におけるデータが記憶されることを待たずに、「異常が発生した」と判定する。   When any of “IN”, “OUT”, and “ON” data is stored in the SRAM 243 for the determination area E of the grayscale image data, the medal count circuit 246 stores 14 or more data in the SRAM 243. It is determined that "abnormality has occurred" without waiting for the data in each determination area of the four grayscale image data to be stored.

また、順序判定処理において、メダルカウント回路246は、順序判定処理における上記の判定結果をカウント処理の判定結果としてSRAM243に記憶させる。すなわち、SRAM243には、カウント処理の判定結果として、「メダルが通過した」(具体的な数値としては16進数の「01」)、「メダルがメダルシュート202に案内された」(具体的な数値としては16進数の「02」)、及び、「異常が発生した」(具体的な数値としては16進数の「10」)、の3種類の判定結果が記憶される。なお、ここで、「メダルが通過した」と判定される場合とは、例えば主制御回路91でメダル投入可の状態で、メダルが投入された場合である。また、「メダルがメダルシュート202に案内された」と判定される場合とは、主制御回路91でメダル投入可の状態で、規定メダルより外径の小さい不正メダルが投入された場合や、主制御回路91でメダル投入不可の状態で、メダルが投入された場合である。また、「異常が発生した」と判定される場合とは、メダルが通過する範囲外で、何らかの異物を検出した場合や、上述のメダルカウンタ判定表に規定されているデータの遷移の態様と比較対象のデータの遷移の態様とが一致しない場合である。   In the order determination process, the medal counting circuit 246 stores the above determination result in the order determination process in the SRAM 243 as the determination result of the count process. That is, in the SRAM 243, as the determination result of the count process, “the medal has passed” (a specific numerical value is “01” in hexadecimal), “the medal has been guided to the medal shoot 202” (the specific numerical value). As a hexadecimal number “02”) and “abnormality has occurred” (specifically, a hexadecimal number “10”). Here, the case where it is determined that "the medal has passed" is, for example, a case where the medal is inserted in a state where the medal can be inserted by the main control circuit 91. In addition, when it is determined that “the medal has been guided to the medal shoot 202”, the main control circuit 91 allows a medal to be inserted, and when an illegal medal having an outer diameter smaller than the specified medal is inserted, This is a case where a medal is inserted in a state where the medal cannot be inserted by the control circuit 91. Further, the case where it is determined that “abnormality has occurred” means that any foreign matter is detected outside the medal passing range, or that the data is compared with the data transition mode defined in the above-mentioned medal counter determination table. This is the case where the transition mode of the target data does not match.

なお、上記比較の結果、完全一致の場合に「メダルが通過した」又は「メダルがメダルシュート202に案内された」と判定することに代えて、所定の程度、例えば一致の度合いが80%以上の場合に、「メダルが通過した」又は「メダルシュート202に案内された」と、所定の判定マージンを考慮して判定してもよい。   As a result of the comparison, in the case of a perfect match, instead of determining that “the medal has passed” or “the medal has been guided to the medal shoot 202”, the degree of the match is, for example, 80% or more. In this case, the determination may be made in consideration of a predetermined determination margin, such as “the medal has passed” or “the medal has been guided to the medal shoot 202”.

また、メダル位置検出処理において、メダルエッジ検出処理を省略してもよい。この場合、メダルカウント回路246は、SRAM243に、メダル画像が存在しないと判定した判定領域に対しては「OFF」というデータを記憶させ、メダル画像は存在すると判定した判定領域に対しては「ON」というデータを記憶させる。そして、図28に示すメダルカウント判定表に、各判定領域における「ON」,「OFF」のデータの遷移の態様を規定する。   In the medal position detection process, the medal edge detection process may be omitted. In this case, the medal counting circuit 246 causes the SRAM 243 to store data “OFF” for the determination area where it is determined that no medal image exists, and “ON” for the determination area where it is determined that there is no medal image. Is stored. Then, in the medal count determination table shown in FIG. 28, the mode of transition of “ON” and “OFF” data in each determination area is defined.

また、順序判定処理において、図28に示すメダルカウント判定表を用いた比較に代えて、「ON」のデータが記憶される判定領域の順序を予め規定しておき、この予め規定した順序と実際に「ON」のデータが記憶された判定領域の順序とを、比較して、メダルの通過を判定してもよい。この場合、予め規定する順序を、判定領域A1〜A4をA領域、判定領域B1〜B4をB領域、判定領域C1,C2をC領域、判定領域D1〜D4をD領域と、グループ化した上で規定してもよい。例えば、予め規定する順序を、A〜D領域のいずれも「OFF」、次いでA領域のみ「ON」、次いでA領域、B領域及びC領域が「ON」、次いでB領域、C領域及びD領域が「ON」、次いでD領域のみ「ON」、最後にA〜D領域のいずれも「OFF」としてもよい。なお、この場合、A領域が「ON」とは、判定領域A1〜A4のいずれかについて「ON」のデータが記憶されていることである。   Further, in the order determination process, instead of the comparison using the medal count determination table shown in FIG. 28, the order of the determination area in which the data of “ON” is stored is defined in advance, and the determined order and the actual May be compared with the order of the determination area in which the data of “ON” is stored to determine the passage of the medal. In this case, the predetermined order is determined by grouping the determination areas A1 to A4 into the A area, the determination areas B1 to B4 into the B area, the determination areas C1 and C2 into the C area, and the determination areas D1 to D4 into the D area. May be specified. For example, the order defined in advance is “OFF” for all of the A to D areas, then “ON” for only the A area, then “ON” for the A, B, and C areas, and then the B, C, and D areas. May be set to “ON”, then only the area D “ON”, and finally all of the areas A to D “OFF”. Note that, in this case, that the area A is "ON" means that data of "ON" is stored in any of the determination areas A1 to A4.

また、グレースケール画像データ上に設定する判定領域の数、形状及び配置場所は、許容される判定所要時間や求める判定の精度に応じ適宜設定可能である。例えば、図23A〜C、図24D〜F、図25G,Hにおいてグレースケール画像データG2の上端部から下端部に亘って上下方向に延びる判定領域を設定してもよい。   Further, the number, shape, and arrangement location of the determination areas set on the grayscale image data can be appropriately set according to the allowable determination required time and the accuracy of the determination to be obtained. For example, in FIG. 23A to FIG. 23C, FIG. 24D to FIG. 24F, FIG. 25G, and H, a determination region extending in the vertical direction from the upper end to the lower end of the grayscale image data G2 may be set.

<魚眼補正スケーラ回路>
魚眼補正スケーラ回路248は、SRAM243からグレースケール画像データを取得し、取得したグレースケール画像データを魚眼補正する魚眼補正処理を行う。
<Fish-eye correction scaler circuit>
The fisheye correction scaler circuit 248 obtains grayscale image data from the SRAM 243 and performs a fisheye correction process for correcting the obtained grayscale image data with fisheye.

また、魚眼補正スケーラ回路248は、魚眼補正処理を行ったグレースケール画像データに対して、イコライズ処理を行う。イコライズ処理において、魚眼補正スケーラ回路248は、1/2,1/4,1/8に縮小した縮小画像データを作成する。   Further, the fisheye correction scaler circuit 248 performs equalization processing on the grayscale image data on which the fisheye correction processing has been performed. In the equalizing process, the fisheye correction scaler circuit 248 creates reduced image data reduced to 2 ,, 4 ,, 1 /.

また、魚眼補正スケーラ回路248は、イコライズ処理において、作成した縮小画像データそれぞれに対して、バイラテラル変換処理を行う。本実施形態では、縮小画像データのノイズを除去するために、図29に示す3×3のカーネル(画像処理におけるカーネルであって、OSの機能を示すカーネルではない。)のガウシアンフィルタを用いる。しかし、ガウシアンフィルタには、画像データ内のエッジが目立たなくなる(ボケる)という欠点がある。そこで、この欠点を解消するために、バイラテラル変換処理の処理アルゴリズムとして、以下の式3に示すバイラテラルフィルタを採用する。すなわち、バイラテラルフィルタは、ガウシアンフィルタのカーネルを使用して画像データのノイズを除去するとともにエッジ補正及び強調を行うフィルタである。   In addition, the fisheye correction scaler circuit 248 performs bilateral conversion processing on each of the created reduced image data in the equalization processing. In the present embodiment, a Gaussian filter of a 3 × 3 kernel (a kernel in image processing, not a kernel indicating an OS function) shown in FIG. 29 is used to remove noise from reduced image data. However, the Gaussian filter has a disadvantage that edges in the image data are not noticeable (blurred). Therefore, in order to solve this drawback, a bilateral filter represented by the following Expression 3 is adopted as a processing algorithm of the bilateral conversion processing. That is, the bilateral filter is a filter that removes noise of image data using a kernel of a Gaussian filter and performs edge correction and enhancement.

Figure 2020005840
Figure 2020005840

数1において、バイラテラル変換処理前の画像データの配列をf(i, j)、処理後の画像データの配列をg(i, j)とする。また、wはカーネルサイズ、σは標準偏差、σは輝度値の差を表している。 In Equation 1, the array of image data before bilateral conversion processing is f (i, j), and the array of image data after processing is g (i, j). Also, w represents a kernel size, σ 1 represents a standard deviation, and σ 2 represents a difference between luminance values.

そして、魚眼補正スケーラ回路248は、イコライズ処理を施した縮小画像データをSRAM243に記憶させる。なお、SRAM243には、所定数の縮小画像データが記憶可能な記憶領域が設けられている。SRAM243に記憶されている縮小画像データの数が上限数に達した場合、記憶された順序が古い縮小画像データから上書きされる。   Then, the fisheye correction scaler circuit 248 causes the SRAM 243 to store the reduced image data subjected to the equalization processing. Note that the SRAM 243 is provided with a storage area in which a predetermined number of reduced image data can be stored. When the number of the reduced image data stored in the SRAM 243 reaches the upper limit, the stored order is overwritten from the old reduced image data.

<画像認識DSP回路>
ホストコントローラ241は、縮小画像データがSRAM243に記憶されると、前処理を行うよう、画像認識DSP回路に指示する。
<Image recognition DSP circuit>
When the reduced image data is stored in the SRAM 243, the host controller 241 instructs the image recognition DSP circuit to perform preprocessing.

画像認識DSP回路242は、前処理において、SRAM243から縮小画像データ(本実施形態では、1/4に縮小した縮小画像データ)を取得し、取得した縮小画像データから円領域を検出する円領域検出処理と、非線形拡散フィルタ処理を行いエッジ画像を作成してSRAM243に記憶させるフィルタ処理を行う。また、画像認識DSP回路242は、後述する各種判定処理を行う。なお、本実施形態では、1/4に縮小した画像データを使用しているが、これに限らず、フラッシュメモリ244に使用する縮小画像データを選択するための設定を記憶させ、その設定に応じて、1/2に縮小した画像データ、又は、1/8に縮小した画像データを選択できるようにしてもよい。   In the preprocessing, the image recognition DSP circuit 242 acquires reduced image data (reduced image data reduced to 1/4 in this embodiment) from the SRAM 243, and detects a circular region from the acquired reduced image data. The processing and the non-linear diffusion filter processing are performed to create an edge image and perform a filter processing for storing the image in the SRAM 243. Further, the image recognition DSP circuit 242 performs various determination processes described later. In the present embodiment, the image data reduced to 1/4 is used. However, the present invention is not limited to this, and a setting for selecting the reduced image data to be used is stored in the flash memory 244. Thus, the image data reduced to 1/2 or the image data reduced to 1/8 may be selected.

(1)円領域検出処理
画像認識DSP回路242は、円領域検出処理において、取得した縮小画像データと、当該縮小画像データに対応する縮小背景グレースケール画像データとの差分を示す背景差分画像を生成する。ここで縮小背景グレースケール画像データとは、SRAM243に記憶されている背景グレースケール画像データに、魚眼補正スケーラ回路248による魚眼補正処理及びイコライズ処理を施した画像データであり、円領域検出処理の前にSRAM243に記憶されている。
(1) Circle Area Detection Processing The image recognition DSP circuit 242 generates a background difference image indicating a difference between the acquired reduced image data and the reduced background grayscale image data corresponding to the reduced image data in the circle area detection processing. I do. Here, the reduced background grayscale image data is image data obtained by performing a fisheye correction process and an equalization process by a fisheye correction scaler circuit 248 on the background grayscale image data stored in the SRAM 243, and a circular region detection process. Before that is stored in the SRAM 243.

次いで、画像認識DSP回路242は、生成した背景差分画像を2値化する。そして、図30に示すように、2値の背景差分画像G3に対して、メダルの外形を示す2値の外形テンプレートT1を用いたテンプレートマッチングを行う。つまり、画像認識DSP回路242は、背景差分画像G3において、外形テンプレートT1と類似する領域がどこに存在するかを特定する。言い換えると、画像認識DSP回路242は、背景差分画像G3において、外形テンプレートT1が示すメダルの外形と一致する領域がどこに存在するかを特定する。なお、外形テンプレートT1は、予めフラッシュメモリ244に記憶されている。   Next, the image recognition DSP circuit 242 binarizes the generated background difference image. Then, as shown in FIG. 30, template matching is performed on the binary background difference image G3 using a binary outline template T1 indicating the outline of the medal. That is, the image recognition DSP circuit 242 specifies where in the background difference image G3 an area similar to the outline template T1 exists. In other words, the image recognition DSP circuit 242 specifies where in the background difference image G3 an area that matches the outer shape of the medal indicated by the outer shape template T1 exists. Note that the outline template T1 is stored in the flash memory 244 in advance.

テンプレートマッチングでは、背景差分画像G3上で外形テンプレートT1をラスタスキャン方向に少しずつ(例えば、1画素(ピクセル)ずつ)移動させる。言い換えれば、画像認識DSP回路242は、背景差分画像G3上で外形テンプレートT1をラスタスキャンさせる。このとき、画像認識DSP回路242は、外形テンプレートT1の各位置において、外形テンプレートT1と、それに重なる、背景差分画像G3の部分領域とのAND画像を生成する。これにより、複数の2値のAND画像が生成される。そして、画像認識DSP回路242は、生成した複数のAND画像のうち、画素値が「1」の画素(高輝度画素)の数が最も多いAND画像の生成で使用された外形テンプレートT1の背景差分画像G3上の位置を特定する。この位置は、背景差分画像G3において、外形テンプレートT1と類似した領域が存在する位置である。   In the template matching, the outline template T1 is moved little by little (for example, one pixel (pixel)) in the raster scan direction on the background difference image G3. In other words, the image recognition DSP circuit 242 raster-scans the outline template T1 on the background difference image G3. At this time, the image recognition DSP circuit 242 generates an AND image of the outline template T1 and a partial area of the background difference image G3 that overlaps the outline template T1 at each position of the outline template T1. Thereby, a plurality of binary AND images are generated. Then, the image recognition DSP circuit 242 generates the background difference of the outline template T1 used in generating the AND image having the largest number of pixels (high-brightness pixels) having the pixel value “1” among the plurality of generated AND images. The position on the image G3 is specified. This position is a position in the background difference image G3 where an area similar to the outline template T1 exists.

そして、画像認識DSP回路242は、特定した位置と同じ位置に存在する、取得した縮小画像データでの部分領域を、円領域として検出する。言い換えれば、画像認識DSP回路242は、特定した位置と同じ位置に外形テンプレートT1を縮小画像データに配置した際に、外形テンプレートT1と重なる、縮小画像データでの部分領域を、円領域として検出する。このとき、部分領域において、その上の外形テンプレートT1が示す円形よりも外側の各画素の画素値を零としたものを円領域としてもよい。画像認識DSP回路242で抽出される円領域はグレースケール画像である。本実施形態では、円領域の外形は四角形であるが、円形等の他の形状であってもよい。   Then, the image recognition DSP circuit 242 detects a partial area in the acquired reduced image data, which exists at the same position as the specified position, as a circular area. In other words, the image recognition DSP circuit 242 detects a partial region in the reduced image data that overlaps with the outline template T1 as a circular region when the outline template T1 is arranged in the reduced image data at the same position as the specified position. . At this time, in the partial region, a region where the pixel value of each pixel outside the circle indicated by the outer shape template T1 on the partial region is set to zero may be defined as a circular region. The circle area extracted by the image recognition DSP circuit 242 is a gray scale image. In the present embodiment, the outer shape of the circular region is a quadrangle, but may be another shape such as a circle.

なお、取得した縮小画像データから円領域を抽出する方法として他の方法を採用してもよい。例えば、メダルの外形が円形であることを利用した抽出方法を採用してもよい。この抽出方法では、まず、取得した縮小画像データに対してエッジ検出が行われてエッジ画像が生成される。エッジ画像の生成方法としては、例えば、Sobel法、Laplacian法、Canny法などが使用される。次に、生成されたエッジ画像から円形領域が抽出される。円形領域の抽出方法としては、例えばハフ変換が使用される。そして、エッジ画像における当該円形領域の位置と同じ位置に存在する、取得した縮小画像データでの円形領域が、円領域とされる。   Note that another method may be adopted as a method of extracting a circular area from the acquired reduced image data. For example, an extraction method using the fact that the outer shape of a medal is circular may be adopted. In this extraction method, first, edge detection is performed on the acquired reduced image data to generate an edge image. As an edge image generation method, for example, the Sobel method, the Laplacian method, the Canny method, or the like is used. Next, a circular area is extracted from the generated edge image. As a method for extracting a circular area, for example, Hough transform is used. Then, a circular area in the acquired reduced image data that is present at the same position as the position of the circular area in the edge image is defined as a circular area.

また、背景差分法とラベリングを用いて取得した縮小画像データから円領域を抽出する抽出方法を採用してもよい。この抽出方法では、まず、取得した縮小画像データと縮小背景グレースケール画像データとの差分を示す背景差分画像が生成され、生成された背景差分画像が2値化される。そして、2値の背景差分画像に対して4連結等のラベリングが行われる。そして、2値の背景差分画像における、ラベリングの結果得られた連結領域(独立領域)の位置と同じ位置に存在する、取得した縮小画像データの部分領域が、円領域とされる。   Further, an extraction method of extracting a circular region from reduced image data obtained using the background difference method and labeling may be employed. In this extraction method, first, a background difference image indicating a difference between the acquired reduced image data and the reduced background grayscale image data is generated, and the generated background difference image is binarized. Then, labeling such as 4-connection is performed on the binary background difference image. In the binary background difference image, a partial region of the acquired reduced image data which is present at the same position as the position of the connected region (independent region) obtained as a result of the labeling is defined as a circular region.

画像認識DSP回路242は、円領域が検出できた場合は、円形検出の判定結果として「判定OK」と、当該判定に係るデータが引き継いでいる上述の画像IDと、を関連づけて、SRAM243に記憶させる。   When a circular area is detected, the image recognition DSP circuit 242 associates “determination OK” as the determination result of the circular detection with the above-described image ID inherited by the data relating to the determination and stores the association in the SRAM 243. Let it.

(2)フィルタ処理
画像認識DSP回路242は、円領域検出処理後に、フィルタ処理を行う。フィルタ処理は、3σ修正処理と、非線形拡散フィルタ処理からなる。
まず、3σ修正処理において、画像認識DSP回路242は、円領域検出処理で検出した円領域に基づいて、取得した縮小画像データにおける円領域の画像データを切り出す。以下、切り出した画像データを円領域画像データと称する場合がある。
(2) Filter Processing The image recognition DSP circuit 242 performs filter processing after the circular area detection processing. The filter processing includes 3σ correction processing and nonlinear diffusion filter processing.
First, in the 3σ correction processing, the image recognition DSP circuit 242 cuts out the image data of the circular area in the acquired reduced image data based on the circular area detected in the circular area detection processing. Hereinafter, the extracted image data may be referred to as circular area image data.

次に、画像認識DSP回路242は、切り出した円領域画像データにおける輝度の値について、一定範囲のデータの平均値を中心とした正規分布(図31参照)を作成する。ここで、3σとは、標準偏差の3倍であって、平均値±3σの範囲内にほぼ全てのデータが属する(ばらつきが正規分布である場合、99.7%のデータがこの範囲内に属する)ものである。
そして、輝度の値が−3σよりも小さい画素の輝度、例えば−4σの画素の輝度を、−3σの輝度の値に置き換える。また、輝度の値が3σよりも大きい画素の輝度、例えば4σの画素の輝度を、3σの輝度の値に置き換える。このようにすることで、イレギュラーなデータである輝度の値が極端に大きい画素(明る過ぎる画素)や輝度の値が極端に小さい画素(暗過ぎる画素)が、その後の処理に影響することを抑制することができる。
Next, the image recognition DSP circuit 242 creates a normal distribution (see FIG. 31) with respect to the luminance value in the cut-out circular area image data centered on the average value of the data in a certain range. Here, 3σ is three times the standard deviation, and almost all data belongs to the range of the average value ± 3σ (when the variation is a normal distribution, 99.7% of the data falls within this range). Belonging).
Then, the luminance of a pixel having a luminance value smaller than −3σ, for example, the luminance of a pixel of −4σ is replaced with a luminance value of −3σ. The luminance of a pixel having a luminance value larger than 3σ, for example, the luminance of a pixel having a luminance of 4σ is replaced with a luminance value of 3σ. In this way, a pixel having an extremely large luminance value (a pixel that is too bright) or a pixel having an extremely small luminance value (a pixel that is too dark), which is irregular data, affects the subsequent processing. Can be suppressed.

次に、画像認識DSP回路242は、3σ修正処理後の円領域画像データに対して、非線形拡散フィルタ処理を行いX(縦)方向のエッジ画像XとY(横)方向のエッジ画像Yを作成する。   Next, the image recognition DSP circuit 242 performs a nonlinear diffusion filter process on the circular area image data after the 3σ correction processing to create an edge image X in the X (vertical) direction and an edge image Y in the Y (horizontal) direction. I do.

図32Aは、3σ修正処理後の円領域画像データを模式的に表している。図32Aにおいて、格子の一マスは、画素を示している。また、図32Bはエッジ画像X用係数を示している。ここで図32Aの画素A1〜A8,Pの輝度の値を、それぞれa1〜a8,pとした場合、エッジ画像Xにおける注目画素Pの輝度の値は、エッジ画像X用係数を用いて、以下の式4によって算出される。
Pの輝度(PX)=a1×(−3)+a2×0+a3×3+a4×(−10)+p×0+a5×10+a6×(−3)+a7×0+a8×3…式(4)
FIG. 32A schematically illustrates the circular area image data after the 3σ correction processing. In FIG. 32A, one cell of the grid indicates a pixel. FIG. 32B shows the edge image X coefficient. Here, assuming that the luminance values of the pixels A1 to A8, P in FIG. 32A are a1 to a8, p, respectively, the luminance value of the pixel of interest P in the edge image X is calculated by using the edge image X coefficient. Is calculated by Equation 4.
Brightness (PX) of P = a1 × (−3) + a2 × 0 + a3 × 3 + a4 × (−10) + p × 0 + a5 × 10 + a6 × (−3) + a7 × 0 + a8 × 3 Equation (4)

画像認識DSP回路242は、3σ修正処理後の円領域画像データの全ての画素について、上記式4を用いて輝度を算出することで、エッジ画像Xを作成する。   The image recognition DSP circuit 242 creates the edge image X by calculating the luminance using Equation 4 for all the pixels of the circular area image data after the 3σ correction processing.

図32Cはエッジ画像Y用係数を示している。ここで図32Aの画素A1〜A8,Pの輝度の値を、それぞれa1〜a8,pとした場合、エッジ画像Yにおける注目画素Pの輝度の値は、エッジ画像Y用係数を用いて、以下の式5によって算出される。
Pの輝度(PY)=a1×(−3)+a2×(−10)+a3×(−3)+a4×0+P×0+a5×0+a6×3+a7×10+a8×3…式(5)
FIG. 32C shows the coefficients for the edge image Y. Here, assuming that the luminance values of the pixels A1 to A8, P in FIG. 32A are a1 to a8, p, respectively, the luminance value of the pixel of interest P in the edge image Y is calculated by using the edge image Y coefficient. Is calculated by Equation 5.
P brightness (PY) = a1 × (−3) + a2 × (−10) + a3 × (−3) + a4 × 0 + P × 0 + a5 × 0 + a6 × 3 + a7 × 10 + a8 × 3 Equation (5)

画像認識DSP回路242は、3σ修正処理後の円領域画像データの全ての画素について、上記式5を用いて輝度を算出することで、エッジ画像Yを作成する。   The image recognition DSP circuit 242 creates the edge image Y by calculating the luminance using Equation 5 for all the pixels of the circular area image data after the 3σ correction processing.

エッジ画像X及びエッジ画像Yを作成した後、画像認識DSP回路242は、両画像からエッジ画像XYを作成する。エッジ画像XYにおける各画素の輝度PXYは、エッジ画像Xにおける画素の輝度の値をPXとし、同一位置にあるエッジ画像Yにおける画素の輝度の値をPYとした場合、以下の式6によって算出することができる。   After creating the edge image X and the edge image Y, the image recognition DSP circuit 242 creates an edge image XY from both images. The luminance PXY of each pixel in the edge image XY is calculated by the following Expression 6 when the luminance value of the pixel in the edge image X is PX and the luminance value of the pixel in the edge image Y at the same position is PY. be able to.

Figure 2020005840
Figure 2020005840

画像認識DSP回路242は、エッジ画像X及びエッジ画像Yの全ての画素について、上記式6を用いて輝度PXYを算出することで、エッジ画像XYを作成し、作成したエッジ画像XYをSRAM243に記憶させる。
なお、画像認識DSP回路242が行う各種判定処理については、後述する。
The image recognition DSP circuit 242 creates the edge image XY by calculating the luminance PXY using the above equation 6 for all the pixels of the edge image X and the edge image Y, and stores the created edge image XY in the SRAM 243. Let it.
The various determination processes performed by the image recognition DSP circuit 242 will be described later.

<画像認識アクセラレータ回路>
画像認識アクセラレータ回路249は、勾配平均画像データに係る処理、エッジ勾配画像に係る処理及び高速フーリエ変換(Fast Fourier Transform,以下「FFT変換」と称する場合がある)処理を行う。また、画像認識アクセラレータ回路249は、刻印判定処理に用いられる各種テンプレートを作成するテンプレート生成処理を行う。
<Image recognition accelerator circuit>
The image recognition accelerator circuit 249 performs processing related to the gradient average image data, processing related to the edge gradient image, and fast Fourier transform (hereinafter sometimes referred to as “FFT transformation”). Further, the image recognition accelerator circuit 249 performs a template generation process for creating various templates used for the marking determination process.

[勾配平均画像データに係る処理]
勾配平均画像データに係る処理には、回転画像生成処理と、勾配平均画像データ生成処理が含まれる。
[Process related to gradient average image data]
The processing related to the gradient average image data includes a rotation image generation processing and a gradient average image data generation processing.

(1)回転画像生成処理
回転画像生成処理において、画像認識アクセラレータ回路249は、SRAM243からエッジ画像XYを取得し、取得したエッジ画像XYを1度単位で回転させて、360度分の回転画像を生成する。
(1) Rotated Image Generation Processing In the rotated image generation processing, the image recognition accelerator circuit 249 obtains the edge image XY from the SRAM 243, rotates the obtained edge image XY in units of one degree, and generates a 360-degree rotated image. Generate.

(2)勾配平均画像データ生成処理
勾配平均画像データ生成処理において、画像認識アクセラレータ回路249は、回転画像生成処理で生成した360度分の回転画像を累積加算して(重ね合わせて)、勾配平均画像データを生成する。勾配平均画像データの例として、図33Aに示す正規メダルの勾配平均画像データを図33Bに示す。そして、画像認識アクセラレータ回路249は生成した勾配平均画像データをSRAM243に記憶させる。
(2) Gradient average image data generation processing In the gradient average image data generation processing, the image recognition accelerator circuit 249 cumulatively adds (superimposes) the 360-degree rotated images generated in the rotated image generation processing, and performs gradient averaging. Generate image data. As an example of the gradient average image data, FIG. 33B shows the gradient average image data of regular medals shown in FIG. 33A. Then, the image recognition accelerator circuit 249 stores the generated gradient average image data in the SRAM 243.

[エッジ勾配画像に係る処理]
エッジ勾配画像に係る処理には、極座標変換処理、Scharr変換処理、HOG変換処理が含まれる。
[Processing related to edge gradient image]
The processing related to the edge gradient image includes polar coordinate conversion processing, Scharr conversion processing, and HOG conversion processing.

(1)極座標変換処理
極座標変換処理において、画像認識アクセラレータ回路249は、SRAM243からエッジ画像XYを取得し、取得したエッジ画像XYについて、直交座標を極座標に変換し、極座標画像データを作成する。具体的には、画像認識アクセラレータ回路249は、エッジ画像XYの各画素の直交座標(x,y)を、動径の長さrと、基準位置からの角度φで表した極座標(r, φ)に変換する。極座標(r, φ)と直交座標(x,y)との関係は、以下の式7,8で表される。
x=r cos(φ)・・・式(7)
y=r sin(φ)・・・式(8)
(1) Polar coordinate conversion processing In the polar coordinate conversion processing, the image recognition accelerator circuit 249 acquires the edge image XY from the SRAM 243, converts the orthogonal coordinates into polar coordinates for the acquired edge image XY, and creates polar coordinate image data. Specifically, the image recognition accelerator circuit 249 converts the rectangular coordinates (x, y) of each pixel of the edge image XY into a polar coordinate (r, φ) represented by a radial length r and an angle φ from a reference position. ). The relationship between the polar coordinates (r, φ) and the rectangular coordinates (x, y) is expressed by the following equations (7) and (8).
x = r cos (φ) ・ ・ ・ Equation (7)
y = r sin (φ) ・ ・ ・ Equation (8)

そして、画像認識アクセラレータ回路249は、作成した極座標画像データをSRAM243に記憶させる。   Then, the image recognition accelerator circuit 249 stores the created polar coordinate image data in the SRAM 243.

(2)Scharr変換処理
Scharr変換処理において、画像認識アクセラレータ回路249は、SRAM243から極座標画像データを取得し、X(縦)方向のエッジ極座標画像XとY(横)方向のエッジ極座標画像Yを作成する。したがって、Scharr変換処理を行う画像認識アクセラレータ回路249は、極座標画像を縦方向画像と横方向画像に分離する方向画像分離手段を構成する。
なお、Scharr変換処理においてエッジ極座標画像Xとエッジ極座標画像Yを作成する態様は、上述した非線形拡散フィルタ処理において、エッジ画像Xとエッジ画像Yを作成する態様と用いる係数を含めて同様のため、ここでは説明を省略する。
(2) Scharr Transform Processing In the Scharr transform processing, the image recognition accelerator circuit 249 acquires polar coordinate image data from the SRAM 243 and creates an edge polar coordinate image X in the X (vertical) direction and an edge polar coordinate image Y in the Y (horizontal) direction. I do. Therefore, the image recognition accelerator circuit 249 that performs the Scharr transform process constitutes a directional image separating unit that separates a polar coordinate image into a vertical image and a horizontal image.
Note that the manner in which the edge polar coordinate image X and the edge polar coordinate image Y are created in the Scharr transform process is the same as the manner in which the edge image X and the edge image Y are created in the above-described nonlinear diffusion filter process, including the coefficients used. Here, the description is omitted.

(3)HOG変換処理
HOG変換処理において、画像認識アクセラレータ回路249は、エッジ勾配画像を作成し、作成したエッジ勾配画像にHOG変換を施す。ここで、HOG(Histograms of Oriented Gradients)変換とは、画像データにおける局所領域(セル)の輝度の勾配方向をヒストグラム化することであり、HOG変換を伴う画像マッチングには、局所的な形状変化(幾何学的変換)に強いことや照明の変動に影響を受けにくいという特徴がある。
(3) HOG Conversion Processing In the HOG conversion processing, the image recognition accelerator circuit 249 creates an edge gradient image and performs HOG conversion on the created edge gradient image. Here, the HOG (Histograms of Oriented Gradients) conversion is to make the gradient direction of the luminance of a local region (cell) in the image data into a histogram, and the image matching accompanying the HOG conversion requires a local shape change ( (Geometric transformation) and less susceptible to variations in lighting.

具体的には、Scharr変換処理で作成したエッジ極座標画像Xとエッジ極座標画像Yからエッジ勾配画像を作成する。エッジ勾配画像における各画素の輝度すなわち勾配強度は、エッジ極座標画像Xにおける画素の輝度の値をQX、同一位置にあるエッジ極座標画像Yにおける画素の輝度の値をQYとした場合、以下の式9によって算出することができる。   Specifically, an edge gradient image is created from the edge polar coordinate image X and the edge polar coordinate image Y created by the Scharr transform process. The luminance of each pixel in the edge gradient image, that is, the gradient strength, is represented by the following equation 9 when the luminance value of the pixel in the edge polar image X is QX and the luminance value of the pixel in the edge polar image Y at the same position is QY. Can be calculated by

Figure 2020005840
Figure 2020005840

また、エッジ勾配画像における各画素の勾配角度は、以下の式10によって算出することができる。   The gradient angle of each pixel in the edge gradient image can be calculated by the following equation (10).

Figure 2020005840
Figure 2020005840

図34では、作成したエッジ勾配画像G4を模式的に示している。画像認識アクセラレータ回路249は、作成したエッジ勾配画像G4における2点鎖線で示した長方形の枠Sを局所領域(セル)として、局所領域毎に局所領域内の輝度の勾配方向のヒストグラムを、作成する。そして作成したヒストグラム一式又はHOG変換後の画像データ(以降の説明において、「HOGデータ」と称する場合がある)をSRAM243に記憶させる。   FIG. 34 schematically shows the created edge gradient image G4. The image recognition accelerator circuit 249 sets a rectangular frame S indicated by a two-dot chain line in the generated edge gradient image G4 as a local region (cell), and generates a histogram of the luminance gradient direction in the local region for each local region. . Then, the generated histogram set or the HOG-converted image data (hereinafter sometimes referred to as “HOG data”) is stored in the SRAM 243.

[FFT変換処理]
FFT変換処理において、画像認識アクセラレータ回路249は、上述の極座標変化処理によって作成され、SRAM243に記憶された極座標画像データを取得し、取得した極座標画像データに対して、FFT変換処理を施す。
[FFT conversion processing]
In the FFT transform processing, the image recognition accelerator circuit 249 acquires the polar coordinate image data created by the above-described polar coordinate change processing and stored in the SRAM 243, and performs the FFT transform processing on the acquired polar coordinate image data.

具体的には、図35に示すように、画像認識アクセラレータ回路249は、取得した極座標画像データを、複数の領域に区画し、区画した各領域について、周波数と振幅の値を算出する。図では、極座標画像データを所定の角度ごとに区画し、当該区画した領域それぞれについて、周波数と振幅の値を算出した例を示している。   More specifically, as shown in FIG. 35, the image recognition accelerator circuit 249 partitions the acquired polar image data into a plurality of regions, and calculates the values of the frequency and the amplitude for each of the partitioned regions. The figure shows an example in which the polar coordinate image data is divided for each predetermined angle, and the frequency and amplitude values are calculated for each of the divided areas.

そして、画像認識アクセラレータ回路249は、取得した極座標画像データについて、算出した周波数と振幅の値又はFFT変換後の画像データ(以下、これらを「FFTデータ」と称する場合がある)をSRAM243に記憶する。   Then, the image recognition accelerator circuit 249 stores the calculated frequency and amplitude values or the FFT-transformed image data (hereinafter, these may be referred to as “FFT data”) for the acquired polar image data in the SRAM 243. .

[テンプレート生成処理]
画像認識アクセラレータ回路249は、テンプレート生成処理を実行し、本テンプレートを生成する。本テンプレートとは、勾配平均画像データ、HOGデータ及びFFTデータのセットからなる。実施形態では、最大で4種類の本テンプレートが生成される。また、本テンプレートは、後述する画像認識DSP回路242が実行する判定処理において用いられる。なお、テンプレート生成処理の詳細については、後述する。
[Template generation processing]
The image recognition accelerator circuit 249 executes a template generation process to generate a main template. The template includes a set of gradient average image data, HOG data, and FFT data. In the embodiment, up to four types of book templates are generated. This template is used in a determination process executed by an image recognition DSP circuit 242 described later. The details of the template generation processing will be described later.

<画像認識DSP回路による判定処理>
次に、画像認識DSP回路242が実行する判定処理について、説明する。判定処理は、テンプレート生成処理において、本テンプレートが生成され、登録された後に、実行される。判定処理には、勾配平均画像テンプレート比較処理、HOGテンプレート比較処理、FFTテンプレート比較処理及び3次元判定処理が含まれる。
<Determination processing by image recognition DSP circuit>
Next, the determination process executed by the image recognition DSP circuit 242 will be described. The determination process is executed after the template is generated and registered in the template generation process. The determination process includes a gradient average image template comparison process, a HOG template comparison process, an FFT template comparison process, and a three-dimensional determination process.

(1)勾配平均画像テンプレート比較処理
勾配平均画像テンプレート比較処理において、画像認識DSP回路242は、投入されたメダルについて、画像認識アクセラレータ回路249が生成した勾配平均画像データをSRAM243から取得する。
(1) Gradient Average Image Template Comparison Process In the gradient average image template comparison process, the image recognition DSP circuit 242 acquires the gradient average image data generated by the image recognition accelerator circuit 249 from the SRAM 243 for the inserted medals.

次に、画像認識DSP回路242は、取得した勾配平均画像データと、各本テンプレートの勾配平均画像データとを比較し、ゼロ平均正規化相互相関マッチング(Zero-mean Normalized Cross Correlation,以降の説明において「ZNCC」と称する場合がある)によって、類似度の評価値xを算出する。なお、ZNCCによって得られる類似度の評価値は、−1.0000000〜1.0000000の範囲で算出され、1.0000000が最も類似度が高い(似ている)評価値となる。   Next, the image recognition DSP circuit 242 compares the obtained gradient averaged image data with the gradient averaged image data of each template, and performs zero-mean normalized cross-correlation matching. The evaluation value x of the degree of similarity is calculated in some cases. The evaluation value of the similarity obtained by the ZNCC is calculated in the range of −1.000000 to 1.000000, and 1.000000 is the evaluation value with the highest similarity (similarity).

(2)HOGテンプレート比較処理
HOGテンプレート比較処理において、画像認識DSP回路242は、投入されたメダルのHOGデータを取得する。次いで、取得したHOGデータと、各本テンプレートのHOGデータとを比較し、ZNCCによって類似度の評価値yを算出する。
(2) HOG Template Comparison Processing In the HOG template comparison processing, the image recognition DSP circuit 242 acquires the HOG data of the inserted medals. Next, the acquired HOG data is compared with the HOG data of each template, and the similarity evaluation value y is calculated by ZNCC.

(3)FFTテンプレート比較処理
FFTテンプレート比較処理において、画像認識DSP回路242は、投入されたメダルのFFTデータを取得する。次いで、取得したFFTデータと、各本テンプレートのFFTデータとを比較し、ZNCCによって類似度の評価値zを算出する。
(3) FFT Template Comparison Processing In the FFT template comparison processing, the image recognition DSP circuit 242 acquires FFT data of the inserted medals. Next, the obtained FFT data is compared with the FFT data of each template, and the similarity evaluation value z is calculated by ZNCC.

(4)3次元判定処理
3次元判定処理において、画像認識DSP回路242は、上述の処理で算出した評価値x,y,zと、予め設定した係数A,C,Dからなる以下の式が成立する場合に、投入されたメダルと、本テンプレートとが、同一であると判定する。
x+Ay+Cz≧D ・・・式(11)
(4) Three-Dimensional Judgment Processing In the three-dimensional judgment processing, the image recognition DSP circuit 242 calculates the following expression consisting of the evaluation values x, y, z calculated in the above-described processing and the coefficients A, C, and D set in advance. When it is established, it is determined that the inserted medal and the present template are the same.
x + Ay + Cz ≧ D Expression (11)

本実施形態において、本テンプレートは、最大で4種類作成される。画像認識DSP回路242は、各本テンプレートについて、3次元判定処理を行う。また、全ての本テンプレートについて上記式(11)が成り立たない場合は、判定対象のメダルは正規メダルでないと判定する。一方、上記式(11)が成り立つ本テンプレートが1以上あれば、判定対象のメダルが正規メダルと判定する。そして、画像認識DSP回路242は、判定結果として「正規メダル」を示す「判定OK」又は「不正メダル」を示す「判定NG」をSRAM243に記憶させる。画像認識DSP回路242は、判定結果を記憶する際に、判定に係るデータに引き継がれている上述の画像IDと、判定結果とを関連づけて記憶させる。   In the present embodiment, a maximum of four types of this template are created. The image recognition DSP circuit 242 performs a three-dimensional determination process on each book template. In addition, when the above equation (11) does not hold for all the main templates, it is determined that the determination target medal is not a regular medal. On the other hand, if there is one or more main templates satisfying the above equation (11), the medal to be determined is determined to be a regular medal. Then, the image recognition DSP circuit 242 causes the SRAM 243 to store “determination OK” indicating “regular medal” or “determination NG” indicating “illegal medal” as the determination result. When storing the determination result, the image recognition DSP circuit 242 associates the above-described image ID carried over to the data related to the determination with the determination result and stores the image ID.

<GPIO>
GPIO250(図18参照)は、メダルセレクタ201に接続されている各機器と、制御LSI234と、の入出力のためのデバイスである。また、制御LSI234と、メダルセレクタ201を構成する各種デバイスと、の入出力のためのデバイスである。
例えば、GPIO250のLED制御出力PORTが、LED233に接続され、制御LSI234によるLED233の点灯及び消灯制御が可能となっている。また、GPIO250の報知用LED制御出力PORTが、報知用LED206cに接続され、制御LSI234による報知用LED206cの点灯及び消灯制御が可能となっている。また、GPIO250のAE設定用ポートがCMOSイメージセンサ232に接続され、制御LSI234によるCMOSイメージセンサ232の露光時間設定機構の制御(露光時間の設定)が可能となっている。
<GPIO>
The GPIO 250 (see FIG. 18) is a device for input / output between each device connected to the medal selector 201 and the control LSI 234. Further, it is a device for input and output of the control LSI 234 and various devices constituting the medal selector 201.
For example, the LED control output PORT of the GPIO 250 is connected to the LED 233, and the control LSI 234 can control the turning on and off of the LED 233. Further, the notification LED control output PORT of the GPIO 250 is connected to the notification LED 206c, so that the control LSI 234 can control the turning on and off of the notification LED 206c. The AE setting port of the GPIO 250 is connected to the CMOS image sensor 232, and the control LSI 234 can control the exposure time setting mechanism of the CMOS image sensor 232 (set the exposure time).

また、GPIO250のスイッチ入力用PORTが、初期化スイッチ206d、色スイッチ206e、刻印スイッチ206fに接続され、制御LSI234は、初期化スイッチ206d、色スイッチ206e、刻印スイッチ206fのスイッチ状態を取得可能となっている。   Further, the PORT for switch input of the GPIO 250 is connected to the initialization switch 206d, the color switch 206e, and the engraving switch 206f, and the control LSI 234 can acquire the switch state of the initialization switch 206d, the color switch 206e, and the engraving switch 206f. ing.

<UART>
UART252は、メダルセレクタ201と副制御基板72からなる副制御回路101との間で後述する各種コマンドを送受信するためのシリアル通信用デバイスである。なお、図18では副中継基板61の図示を省略している。
<UART>
The UART 252 is a serial communication device for transmitting and receiving various commands described later between the medal selector 201 and the sub control circuit 101 including the sub control board 72. In FIG. 18, the illustration of the sub-relay board 61 is omitted.

UART252の詳細について、図19を参照して説明する。図19は、本実施形態のUARTを説明するためのブロック図である。
UART252は、ボーレートジェネレータ252a、TXシフトレジスト252b、TXデータレジスタ252c、RXシフトレジスタ252d及びRXデータレジスタ252eを備えている。
Details of the UART 252 will be described with reference to FIG. FIG. 19 is a block diagram for explaining the UART of the present embodiment.
The UART 252 includes a baud rate generator 252a, a TX shift register 252b, a TX data register 252c, an RX shift register 252d, and an RX data register 252e.

ボーレートジェネレータ252aは、TXシフトレジスト252b及びRXシフトレジスタ252dに接続されており、送信及び受信における通信速度(本実施形態では、115200bps)に対応したクロック信号を出力する。USRT252を介して送信されるデータは、TXデータレジスタ252cに記憶される。TXデータレジスタ252cに所定のバイト数(本実施形態では、10バイト)のデータが記憶されると、記憶されたデータは、1バイト毎にTXシフトレジスタ252bに保持され、副制御回路101へ送信される。   The baud rate generator 252a is connected to the TX shift register 252b and the RX shift register 252d, and outputs a clock signal corresponding to a communication speed in transmission and reception (115200 bps in this embodiment). Data transmitted via USRT 252 is stored in TX data register 252c. When data of a predetermined number of bytes (10 bytes in this embodiment) is stored in the TX data register 252c, the stored data is held in the TX shift register 252b for each byte and transmitted to the sub control circuit 101. Is done.

副制御回路101から受信するデータは、RXシフトレジスタ25dに保持された後、1バイト毎にRXデータレジスタ252eに記憶される。TXデータレジスタ252c及びRXシフトレジスタ252dは、32バイトの容量(送信及び受信用の通信バッファ)を有し、また、FIFO(First In, First Out:先入れ先出し)を採用している。本実施形態において、TXデータレジスタ252c及びRXシフトレジスタ252dの先頭から20バイト分の領域が、データを記憶する使用領域として設定されている。なお、以下の説明では、これら使用領域における先頭から10バイト分の領域を、「前半10バイト分の領域」と称し、また、前半10バイト分の領域に続く残りの10バイト分の領域を「後半10バイト分の領域」と称する場合がある。   The data received from the sub-control circuit 101 is stored in the RX shift register 25d and then stored in the RX data register 252e for each byte. Each of the TX data register 252c and the RX shift register 252d has a capacity of 32 bytes (communication buffer for transmission and reception) and employs a FIFO (First In, First Out: first in first out). In the present embodiment, the area of 20 bytes from the head of the TX data register 252c and the RX shift register 252d is set as a use area for storing data. In the following description, the 10-byte area from the beginning of the used area is referred to as “first 10-byte area”, and the remaining 10-byte area following the first 10-byte area is referred to as “the first 10-byte area”. It may be referred to as the "area for the latter 10 bytes".

<ホストコントローラ>
ホストコントローラ241は、制御LSI234を構成する各デバイス、例えばメダルカウント回路246、カラー認識回路247、魚眼補正スケーラ回路248、画像認識DSP回路242、画像認識アクセラレータ回路249、GPIO250、UART252の制御を行う。
<Host controller>
The host controller 241 controls each device constituting the control LSI 234, for example, the medal count circuit 246, the color recognition circuit 247, the fisheye correction scaler circuit 248, the image recognition DSP circuit 242, the image recognition accelerator circuit 249, the GPIO 250, and the UART 252. .

また、ホストコントローラ241は、ISP回路245からAE判定処理の判定結果を受信すると、まず、SRAM243において露光時間の段階の値を記憶している領域を参照する。次に、露光時間の段階が「25」すなわち露光時間が上限の175μ秒に設定されていない場合は、CMOSイメージセンサ232の露光時間設定機構に対して、GPIO250のAE設定用PORTを介して、露光時間を1段階上げるように指示する旨の信号を出力する。そして、SRAM243において露光時間の段階の値を記憶している領域の値に1を加算する。なお、本実施形態では、露光時間の初期値が70μ秒に設定されていることから、露光時間の段階の値を記憶している領域に記憶される初期値は10に設定されている。すなわち、本実施形態では、制御LSI234のホストコントローラ241は、CMOSイメージセンサ232の露光時間の設定を行う露光時間設定手段を構成する。   Further, when the host controller 241 receives the determination result of the AE determination process from the ISP circuit 245, first, the host controller 241 refers to an area in the SRAM 243 where the value of the exposure time is stored. Next, when the exposure time stage is “25”, that is, when the exposure time is not set to the upper limit of 175 μs, the exposure time setting mechanism of the CMOS image sensor 232 is transmitted to the exposure time setting mechanism of the GPIO 250 via the AE setting PORT. A signal is output to instruct to increase the exposure time by one step. Then, 1 is added to the value of the area where the value of the exposure time is stored in the SRAM 243. In the present embodiment, since the initial value of the exposure time is set to 70 μs, the initial value stored in the area where the value of the exposure time is stored is set to 10. That is, in the present embodiment, the host controller 241 of the control LSI 234 constitutes an exposure time setting unit that sets the exposure time of the CMOS image sensor 232.

一方、露光時間の段階が「25」すなわち露光時間が上限の175μ秒に設定されている場合は、ホストコントローラ241は、GPIO250の報知用LED制御出力PORTを介して、報知用LED206cに点灯を指示する信号を出力する。また、ホストコントローラ241は、副制御基板72(副制御回路101)に、メダルセレクタエラーコマンドを送信する。送信するメダルセレクタエラーコマンドのDAT0の値は、「掃除エラー」を示す「3」が設定される。なお、メダルセレクタエラーコマンドの詳細については後述する。   On the other hand, when the exposure time stage is “25”, that is, when the exposure time is set to the upper limit of 175 μsec, the host controller 241 instructs the notification LED 206 c to turn on via the notification LED control output PORT of the GPIO 250. Output a signal. Further, the host controller 241 transmits a medal selector error command to the sub control board 72 (sub control circuit 101). The value of DAT0 of the medal selector error command to be transmitted is set to “3” indicating “cleaning error”. The details of the medal selector error command will be described later.

また、ホストコントローラ241は、メダルセレクタ201の任意の場所(例えば、第1の基板230の近辺)に設けられた、スイッチ基板(不図示)上に配置された初期化スイッチ(不図示)が押下されると、露光時間の段階を初期値の「10」、すなわち露光時間を70μ秒に設定する。これによって、例えば、遊技ホールの従業員が、カメラユニット209のレンズのメンテナンス(清掃等)した後に、初期化スイッチを押下することで、CMOSイメージセンサ232の適正な露光時間の再設定が可能となる。   In addition, the host controller 241 presses an initialization switch (not shown) provided on a switch board (not shown) provided at an arbitrary position of the medal selector 201 (for example, near the first board 230). Then, the stage of the exposure time is set to the initial value “10”, that is, the exposure time is set to 70 μsec. Thereby, for example, after the maintenance of the lens of the camera unit 209 (cleaning or the like), the employee of the game hall can press the initialization switch to reset the proper exposure time of the CMOS image sensor 232. Become.

また、ホストコントローラ241は、GPIO250を介して、LED233へ点灯指示や消灯指示に係る信号を出力する。
また、ホストコントローラ241には、GPIO250を介して、初期化スイッチ206d、色スイッチ206e、刻印スイッチ206fからのスイッチ状態に係る信号が入力される。
また、ホストコントローラ241は、SRAM243に、カウント処理に係る判定結果として「異常が発生した」が記憶された場合に、メダルセレクタエラーコマンドを副制御回路101に送信する。送信するメダルセレクタエラーコマンドのDAT0の値は、「異物検出エラー」を示す「1」が設定される。なお、メダルセレクタエラーコマンドの詳細については後述する。
In addition, the host controller 241 outputs a signal relating to a lighting instruction and a light-off instruction to the LED 233 via the GPIO 250.
The host controller 241 receives, via the GPIO 250, signals related to switch states from the initialization switch 206d, the color switch 206e, and the engraving switch 206f.
The host controller 241 transmits a medal selector error command to the sub-control circuit 101 when “an abnormality has occurred” is stored in the SRAM 243 as the determination result related to the count process. The value of DAT0 of the transmitted medal selector error command is set to “1” indicating “foreign matter detection error”. The details of the medal selector error command will be described later.

また、ホストコントローラ241は、刻印判定処理の結果がSRAM243に記憶されたタイミングで、同一の画像IDに関連づけられている円形検出の判定結果、色判定の判定結果及び刻印判定の判定結果に応じた判定完了コマンドを副制御回路101に送信する。判定完了コマンドの詳細については後述する。   Further, the host controller 241 responds to the result of the circle detection, the result of the color determination, and the result of the stamp determination at the timing when the result of the stamp determination processing is stored in the SRAM 243 at the timing when the result is stored in the SRAM 243. A determination completion command is transmitted to the sub control circuit 101. Details of the determination completion command will be described later.

なお、SRAM243には、バックアップ電源(不図示)が接続されており、パチスロ1の電源切断時も一定期間(例えば、1週間程度)はSRAM243に記憶された内容は保持される。   Note that a backup power supply (not shown) is connected to the SRAM 243, and the contents stored in the SRAM 243 are retained for a certain period (for example, about one week) even when the power of the pachislot 1 is turned off.

<フラッシュメモリ>
フラッシュメモリ244には、制御LSI234を構成する各種デバイス、例えば、ホストコントローラ241、画像認識DSP回路242、魚眼補正スケーラ回路248、画像認識アクセラレータ回路249が各種処理に用いるパラメータや各種処理に必要なデータが記憶されている。また、フラッシュメモリ244には、上述の露光時間の段階の値を記憶している領域が設けられている。また、式(11)における係数A,C,Dを記憶している領域が設けられている。
<Flash memory>
The flash memory 244 includes various devices constituting the control LSI 234, such as a host controller 241, an image recognition DSP circuit 242, a fisheye correction scaler circuit 248, and an image recognition accelerator circuit 249. Data is stored. Further, the flash memory 244 is provided with an area for storing the value of the above-described exposure time step. Further, an area for storing the coefficients A, C, and D in the equation (11) is provided.

<制御LSIの処理フロー>
次に、制御LSI234が行う処理について、図36を参照して説明する。図36は、制御LSI234が行う処理を説明するための処理フロー図である。
図36に示すように、制御LSI234では、大きく分けて入力処理、変換処理、色判定処理、カウント処理及び刻印判定処理が行われる。
<Processing flow of control LSI>
Next, a process performed by the control LSI 234 will be described with reference to FIG. FIG. 36 is a processing flowchart for describing the processing performed by the control LSI 234.
As shown in FIG. 36, in the control LSI 234, an input process, a conversion process, a color determination process, a count process, and a marking determination process are roughly performed.

<入力処理>
入力処理は、ISI回路251によって行われる。入力処理において、ISI回路251は、上述したとおり、CMOSイメージセンサ232からLVDS方式で送信された画像データをRGBベイヤ画像に変換して、ISP回路245に出力する。
<Input processing>
The input processing is performed by the ISI circuit 251. In the input processing, as described above, the ISI circuit 251 converts the image data transmitted from the CMOS image sensor 232 according to the LVDS method into an RGB Bayer image, and outputs the RGB Bayer image to the ISP circuit 245.

<AE補正処理>
AE補正処理は、パチスロ1の電源投入時に、ISP回路245と、ホストコントローラ241によって行われる。また、AE補正処理は、後述する変換処理、色判定処理やカウント処理と並行して行われる。
<AE correction processing>
The AE correction process is performed by the ISP circuit 245 and the host controller 241 when the power of the pachislot 1 is turned on. The AE correction process is performed in parallel with the later-described conversion process, color determination process, and count process.

AE補正処理において、ISP回路245は、ISI回路251から出力されたRGBベイヤ画像にメダルレール210の表面に形成された突条部210a(図8参照)の画像が含まれているか否かを判定するAE判定処理を行う。また、ISP回路245は、出力された画像に突条部210aの画像が含まれていないと判定するとき、このAE判定処理の判定結果をホストコントローラ241に出力する。   In the AE correction process, the ISP circuit 245 determines whether or not the RGB Bayer image output from the ISI circuit 251 includes an image of the ridge 210a (see FIG. 8) formed on the surface of the medal rail 210. AE determination processing is performed. When the ISP circuit 245 determines that the output image does not include the image of the ridge 210a, the ISP circuit 245 outputs the determination result of the AE determination process to the host controller 241.

また、AE補正処理において、ホストコントローラ241は、ISP回路245からAE判定処理の判定結果が出力されると、まず、SRAM243において露光時間の段階の値を記憶している領域を参照する。次に、露光時間の段階が「25」すなわち露光時間が上限の175μ秒に設定されていない場合は、CMOSイメージセンサ232の露光時間設定機構に対して、GPIO250のAE設定用PORTを介して、露光時間を1段階上げる(7μ秒延長させる)ように指示する旨の制御信号を出力する。そして、SRAM243において露光時間の段階の値を記憶している領域の値に1を加算する。   In the AE correction process, when the determination result of the AE determination process is output from the ISP circuit 245, the host controller 241 first refers to an area in the SRAM 243 in which the value of the exposure time is stored. Next, when the exposure time stage is “25”, that is, when the exposure time is not set to the upper limit of 175 μs, the exposure time setting mechanism of the CMOS image sensor 232 is transmitted to the exposure time setting mechanism of the GPIO 250 via the AE setting PORT. A control signal is output to instruct to increase the exposure time by one step (extend by 7 μsec). Then, 1 is added to the value of the area where the value of the exposure time is stored in the SRAM 243.

このようにすることで、次に、ISP回路245がAE判定処理を行う画像は、露光時間が1段階上がったCMOSイメージセンサ232によって取得された画像に基づくRGBベイヤ画像となる。AE補正処理は、ISP回路245が、AE判定処理で、画像に突条部210aの画像が含まれると判定するまで、又は、露光時間が上限の175μ秒に設定されるまで、繰り返し行われる。   By doing so, the image on which the ISP circuit 245 performs the AE determination process next becomes an RGB Bayer image based on the image acquired by the CMOS image sensor 232 whose exposure time has increased by one step. The AE correction process is repeatedly performed until the ISP circuit 245 determines in the AE determination process that the image includes the image of the ridge 210a or the exposure time is set to the upper limit of 175 μsec.

ISP回路245が、AE判定処理において、ISI回路251から出力された画像に突条部210aの画像が含まれていると判定するとき、このAE判定処理の判定結果をホストコントローラに出力せず、また、以降に、ISI回路251から出力された画像については、AE判定処理を行わない。すなわち、CMOSイメージセンサ232の露光時間は、ISP回路245がISI回路251から出力された画像に突条部210aの画像が含まれていると判定するときの露光時間に設定される。なお、ISP回路245が、電源投入後に最初にISI回路251から出力された画像に突条部210aの画像が含まれていると判定する場合は、CMOSイメージセンサ232の露光時間は、初期値の70μ秒(段階10)となる。   When the ISP circuit 245 determines in the AE determination process that the image output from the ISI circuit 251 includes the image of the ridge portion 210a, the determination result of the AE determination process is not output to the host controller. Thereafter, the AE determination process is not performed on the image output from the ISI circuit 251. That is, the exposure time of the CMOS image sensor 232 is set to the exposure time when the ISP circuit 245 determines that the image output from the ISI circuit 251 includes the image of the ridge 210a. When the ISP circuit 245 determines that the image output from the ISI circuit 251 first after power-on includes the image of the ridge 210a, the exposure time of the CMOS image sensor 232 is set to the initial value. 70 μs (step 10).

AE補正処理において、ホストコントローラ241は、ISP回路245からAE判定処理の判定結果が出力されたとき、露光時間の段階が「25」すなわち露光時間が上限の175μ秒に設定されている場合は、ホストコントローラ241は、GPIO250の報知用LED制御出力PORTを介して、報知用LED206cに点灯を指示する制御信号を出力する。また、ホストコントローラ241は、副制御基板72に、DAT0に「掃除エラー」を示す値「3」が設定されたメダルセレクタエラーコマンドを送信する。   In the AE correction process, when the determination result of the AE determination process is output from the ISP circuit 245, when the exposure time stage is set to “25”, that is, when the exposure time is set to the upper limit of 175 μsec, The host controller 241 outputs a control signal for instructing the notification LED 206c to turn on via the notification LED control output PORT of the GPIO 250. Further, the host controller 241 transmits, to the sub control board 72, a medal selector error command in which the value “3” indicating “cleaning error” is set in DAT0.

このように、ホストコントローラ241が、報知用LED206cに点灯を指示する制御信号を出力するとともに、副制御基板72に、メダルセレクタエラーコマンドを送信する場合とは、露光時間を上限値の175μ秒に設定してもメダルレール210の突条部210aが撮像できなかった場合である。このような場合、カメラユニット209に何らかの障害(例えばレンズにほこりなどの汚れが付着している)が発生していることが考えられる。このため、この状態ではカメラユニット209を用いた遊技メダルの投入検知及び、不正行為の検知を有効に行えないことから、副制御回路101は、当該障害の発生を報知する種々の処理を行う。本実施形態では、液晶表示装置11に後述するC1エラー画面を表示する。   As described above, when the host controller 241 outputs the control signal for instructing the notification LED 206c to light and transmits the medal selector error command to the sub-control board 72, the exposure time is set to the upper limit of 175 μsec. This is the case where the projection 210a of the medal rail 210 could not be imaged even if it was set. In such a case, it is conceivable that some kind of trouble (for example, dirt such as dust has adhered to the lens) has occurred in the camera unit 209. For this reason, in this state, the detection of insertion of a game medal using the camera unit 209 and the detection of a fraudulent act cannot be effectively performed, so that the sub-control circuit 101 performs various processes for notifying the occurrence of the failure. In the present embodiment, a C1 error screen described later is displayed on the liquid crystal display device 11.

<変換処理>
変換処理は、ISP回路245によって行われる。変換処理において、ISP回路245は、ISI回路251から出力されたRGBベイヤ画像にレンズ歪み補正処理と射影変換(ホモグラフィ)処理を施す画像補正処理を行う。次いで、ISP回路245は、補正後のRGBベイヤ画像を、YUV画像データに変換し、グレースケール画像データをメダルカウント回路246に出力する色変換処理を行う。また、RGBベイヤ画像を、HSV画像データに変換し、このHSV画像データをカラー認識回路247に出力する色変換処理を行う。
<Conversion processing>
The conversion process is performed by the ISP circuit 245. In the conversion process, the ISP circuit 245 performs an image correction process of performing a lens distortion correction process and a projection conversion (homography) process on the RGB Bayer image output from the ISI circuit 251. Next, the ISP circuit 245 performs a color conversion process of converting the corrected RGB Bayer image into YUV image data and outputting the grayscale image data to the medal count circuit 246. Further, a color conversion process of converting the RGB Bayer image into HSV image data and outputting the HSV image data to the color recognition circuit 247 is performed.

変換処理の後、制御LSI234は、色判定処理、カウント処理、刻印判定処理を行う。なお、これらの処理は、各々の処理を実行する回路が別々の回路として構成されているため、各々の実行可能なタイミングで、並列的に実行される。   After the conversion process, the control LSI 234 performs a color determination process, a count process, and a marking determination process. Note that these processes are executed in parallel at the respective executable timings because the circuits that execute the respective processes are configured as separate circuits.

<色判定処理>
色判定処理は、カラー認識回路247によって行われる。色判定処理には、メダル検出処理、閾値判定処理、彩度・色相乗算処理、色テンプレート生成処理、及び、色テンプレート比較処理が含まれる。
<Color determination processing>
The color determination processing is performed by the color recognition circuit 247. The color determination process includes a medal detection process, a threshold value determination process, a saturation / hue multiplication process, a color template generation process, and a color template comparison process.

まず、カラー認識回路247は、ISP回路245から出力されたHSV画像データにメダルの画像が含まれているか否かを判別するメダル検出処理を行う。HSV画像データにメダルの画像が含まれていると判別した場合、カラー認識回路247は、このHSV画像データに基づいて、閾値判定処理を行う。閾値判定処理において、平均彩度値と、平均色相値とに基づく閾値グラフ(図22参照)上の位置が許容領域内の場合は、色判定処理を継続する。一方、非許容領域内の場合は、判定結果として、「閾値判定不可」をSRAM243に記憶させ、色判定処理を終了する。   First, the color recognition circuit 247 performs a medal detection process for determining whether or not the HSV image data output from the ISP circuit 245 includes a medal image. When it is determined that the medal image is included in the HSV image data, the color recognition circuit 247 performs a threshold determination process based on the HSV image data. In the threshold determination process, when the position on the threshold graph (see FIG. 22) based on the average saturation value and the average hue value is within the allowable region, the color determination process is continued. On the other hand, if it is within the non-permissible region, “threshold value determination impossible” is stored in the SRAM 243 as the determination result, and the color determination process ends.

閾値判定処理後、カラー認識回路247は、彩度・色相乗算処理を行い、色判定用データを作成する。そして、作成した色判定用データと、色テンプレートとを比較し、一致又は所定程度類似するか否かを判定し、判定結果をSRAM243に記憶させる。なお、上述のように、カラー認識回路247は、色判定結果(「判定OK」又は「判定NG」)をSRAM243に記憶させる際は、判定に係るデータが引き継いでいる上述の画像IDと関連付けて記憶させる。   After the threshold value determination processing, the color recognition circuit 247 performs saturation / hue multiplication processing to generate color determination data. Then, the created color determination data is compared with the color template to determine whether they match or are similar to a predetermined degree, and the determination result is stored in the SRAM 243. As described above, when storing the color determination result (“determination OK” or “determination NG”) in the SRAM 243, the color recognition circuit 247 associates the color determination result with the above-described image ID that is inherited by the data relating to the determination. Remember.

なお、電源投入後に投入されたメダルが規定初期投入枚数、本実施形態では50枚に達するまでは、色テンプレートが生成されていないため、色テンプレート比較処理は実行されない。   Note that, until the number of medals inserted after the power is turned on reaches the prescribed initial number of medals, that is, 50 in this embodiment, the color template comparison process is not executed because no color template has been generated.

また、カラー認識回路247は、電源投入後に投入されたメダルが規定初期投入枚数の50枚に達し、色判定用データ記憶領域に記憶された色判定用データが50個に達すると、すなわち50枚のメダルに係る色判定用データが作成されると、色テンプレート生成処理を実行する。   Further, the color recognition circuit 247 determines that the number of medals inserted after the power is turned on reaches the prescribed initial insertion number of 50, and the number of color judgment data stored in the color judgment data storage area reaches 50, ie, 50 When the color determination data for the medal is generated, a color template generation process is executed.

<カウント処理>
カウント処理は、メダルカウント回路246によって行われる。カウント処理には、メダル検出処理と、順序判定処理が含まれる。メダル検出処理には、上述したメダル画像判別処理及びメダル位置検出処理が対応する。メダル検出処理において、メダルカウント回路246は、ISP回路245から出力されたグレースケール画像データに、メダルの画像が含まれているか否かを判別する。また、ISP回路245から出力されたグレースケール画像データにおける所定の判定領域にメダル画像が存在するか否かを判別し、判別結果(「IN」,「OUT」,「ON」,「OFF」のデータ)をSRAM243に記憶させる。
<Count processing>
The counting process is performed by the medal counting circuit 246. The counting process includes a medal detection process and an order determination process. The above-described medal image determination processing and medal position detection processing correspond to the medal detection processing. In the medal detection process, the medal counting circuit 246 determines whether or not the grayscale image data output from the ISP circuit 245 includes a medal image. Further, it is determined whether or not a medal image exists in a predetermined determination area in the grayscale image data output from the ISP circuit 245, and the determination result (“IN”, “OUT”, “ON”, “OFF”) is determined. Data) is stored in the SRAM 243.

順序判定処理において、メダルカウント回路246は、SRAM243に記憶されている各判定領域についての「IN」,「OUT」,「ON」,「OFF」のデータの遷移の態様が所定の遷移の態様と一致しているか否かを判定する。そして、判定結果として、「メダルが通過した」、「メダルがメダルシュート202に案内された」又は「異常が発生した」のいずれかをSRAM243に記憶させる。   In the order determination process, the medal counting circuit 246 determines that the transition of the data of “IN”, “OUT”, “ON”, and “OFF” for each determination area stored in the SRAM 243 is a predetermined transition. It is determined whether they match. Then, as the determination result, any of “the medal has passed”, “the medal has been guided to the medal shoot 202”, or “an abnormality has occurred” is stored in the SRAM 243.

<刻印判定処理>
刻印判定処理には、魚眼補正スケーラ回路248によって行われる魚眼補正処理及びイコライズ処理が含まれる。また、画像認識DSP回路242によって行われる円領域検出処理、フィルタ処理、勾配平均画像テンプレート比較処理,HOGテンプレート比較処理,FFTテンプレート比較処理及び3次元判定処理が含まれる。また、画像認識アクセラレータ回路249によって行われる回転画像生成処理、勾配平均画像データ生成処理、勾配平均画像テンプレート生成処理、極座標変換処理、Scharr変換処理、HOG変換処理、HOGテンプレート生成処理、FFT変換処理、FFTテンプレート生成処理が含まれる。
<Engraving judgment process>
The marking determination process includes a fisheye correction process and an equalization process performed by the fisheye correction scaler circuit 248. Also, a circle area detection process, a filter process, a gradient average image template comparison process, a HOG template comparison process, an FFT template comparison process, and a three-dimensional determination process performed by the image recognition DSP circuit 242 are included. Further, a rotation image generation process, a gradient average image data generation process, a gradient average image template generation process, a polar coordinate conversion process, a Scharr conversion process, a HOG conversion process, a HOG template generation process, an FFT conversion process performed by the image recognition accelerator circuit 249, An FFT template generation process is included.

魚眼補正処理において、魚眼補正スケーラ回路248は、SRAM243からグレースケール画像データを取得し、取得したグレースケール画像データを魚眼補正する魚眼補正処理を行う。次いで、イコライズ処理において、魚眼補正スケーラ回路248は、魚眼補正処理を行ったグレースケール画像データに対して、イコライズ処理を行い、縮小画像データを作成し、SRAM243に記憶させる。   In the fish-eye correction process, the fish-eye correction scaler circuit 248 acquires grayscale image data from the SRAM 243 and performs fisheye correction on the acquired grayscale image data. Next, in the equalization processing, the fisheye correction scaler circuit 248 performs equalization processing on the grayscale image data on which the fisheye correction processing has been performed, creates reduced image data, and stores the reduced image data in the SRAM 243.

ホストコントローラ241は、SRAM243に記憶された縮小画像データに対して、刻印判定処理における円領域検出処理以降の処理の実行を画像認識DSP回路242及び画像認識アクセラレータ回路249に指示する。   The host controller 241 instructs the image recognition DSP circuit 242 and the image recognition accelerator circuit 249 to execute the processing after the circular area detection processing in the marking determination processing on the reduced image data stored in the SRAM 243.

円領域検出処理において、画像認識DSP回路242は、縮小画像データをSRAM243から取得し、縮小画像データから円領域を検出する。上述のとおり、画像認識DSP回路242は、円領域が検出できた場合は、円形検出の判定結果として「判定OK」と、当該判定に係るデータが引き継いでいる上述の画像IDと、を関連づけて、SRAM243に記憶させる。なお、円領域検出処理において、円領域が抽出(検出)できなかった場合は、刻印判定処理における以降の処理は省略される。   In the circle area detection processing, the image recognition DSP circuit 242 acquires the reduced image data from the SRAM 243, and detects a circle area from the reduced image data. As described above, when a circular area can be detected, the image recognition DSP circuit 242 associates “determination OK” as the determination result of the circular detection with the above-described image ID inherited by the data relating to the determination. , And the SRAM 243. In the case where the circular area cannot be extracted (detected) in the circular area detection processing, the subsequent processing in the engraving determination processing is omitted.

また、フィルタ処理において、画像認識DSP回路242は、検出した円領域について、非線形拡散フィルタ処理を施してエッジ画像XYを作成し、SRAM243に記憶させる。   In the filtering process, the image recognition DSP circuit 242 performs a nonlinear diffusion filtering process on the detected circular region to create an edge image XY, and stores the edge image XY in the SRAM 243.

次いで、回転画像生成処理において、画像認識アクセラレータ回路249は、SRAM243からエッジ画像XYを取得し、エッジ画像XYから360度分の回転画像を生成する。また、勾配平均画像データ生成処理において、画像認識アクセラレータ回路249は、360度分の回転画像を累積加算して(重ね合わせて)、勾配平均画像データを生成し、勾配平均画像データをSRAM243に記憶させる。   Next, in the rotation image generation processing, the image recognition accelerator circuit 249 acquires the edge image XY from the SRAM 243 and generates a 360-degree rotation image from the edge image XY. In the gradient average image data generation processing, the image recognition accelerator circuit 249 generates gradient average image data by cumulatively adding (overlapping) the 360-degree rotated images, and stores the gradient average image data in the SRAM 243. Let it.

次いで、本テンプレートが登録されている場合は、画像認識DSP回路242が、勾配平均画像テンプレート比較処理において、画像認識アクセラレータ回路249が生成した勾配平均画像データをSRAM243から取得する。そして、取得した勾配平均画像データと、各本テンプレートの勾配平均画像データとを比較し、ZNCCによって類似度の評価値xを算出する。
一方、本テンプレートが登録されていない場合は、画像認識アクセラレータ回路249が後述する勾配平均画像テンプレート生成処理を行う。
Next, when the template is registered, the image recognition DSP circuit 242 acquires the gradient average image data generated by the image recognition accelerator circuit 249 from the SRAM 243 in the gradient average image template comparison processing. Then, the acquired gradient average image data is compared with the gradient average image data of each main template, and the evaluation value x of the similarity is calculated by ZNCC.
On the other hand, when the template is not registered, the image recognition accelerator circuit 249 performs a gradient average image template generation process described later.

また、回転画像生成処理に並行して、画像認識アクセラレータ回路249は、極座標変換処理を行う。極座標変換処理において、SRAM243から(上記回転画像生成処理において取得したエッジ画像XYと同一の)エッジ画像XYを取得し、取得したエッジ画像XYについて、直交座標を極座標に変換し、極座標画像データを作成し、極座標画像データをSRAM243に記憶させる。   The image recognition accelerator circuit 249 performs a polar coordinate conversion process in parallel with the rotation image generation process. In the polar coordinate conversion process, an edge image XY (same as the edge image XY obtained in the above-described rotated image generation process) is obtained from the SRAM 243, and the obtained edge image XY is converted from rectangular coordinates into polar coordinates to generate polar coordinate image data. Then, the polar coordinate image data is stored in the SRAM 243.

次いで、Scharr変換処理において、画像認識アクセラレータ回路249は、SRAM243から極座標画像データを取得し、非線形拡散フィルタ処理を行いエッジ極座標画像Xとエッジ極座標画像Yを作成する。   Next, in the Scharr transform process, the image recognition accelerator circuit 249 acquires polar coordinate image data from the SRAM 243 and performs a nonlinear diffusion filter process to create an edge polar coordinate image X and an edge polar coordinate image Y.

次いで、HOG変換処理において、画像認識アクセラレータ回路249は、エッジ極座標画像Xとエッジ極座標画像Yに基づいてエッジ勾配画像を作成し、作成したエッジ勾配画像にHOG変換を施し、局所領域毎に局所領域内の輝度の勾配方向のヒストグラムを、作成する。そして作成したヒストグラム一式(すなわちHOGデータ)をSRAM243に記憶させる。   Next, in the HOG conversion processing, the image recognition accelerator circuit 249 creates an edge gradient image based on the edge polar coordinate image X and the edge polar coordinate image Y, performs HOG conversion on the created edge gradient image, and Create a histogram in the gradient direction of the luminance within. Then, the generated set of histograms (that is, HOG data) is stored in the SRAM 243.

次いで、本テンプレートが登録されている場合は、画像認識DSP回路242が、HOGテンプレート比較処理において、判定対象のHOGデータを取得し、取得したHOGデータと、各本テンプレートのHOGデータとを比較し、ZNCCによって類似度の評価値yを算出する。
一方、本テンプレートが登録されていない場合は、画像認識アクセラレータ回路249が後述するHOGテンプレート生成処理を行う。
Next, when the main template is registered, the image recognition DSP circuit 242 acquires the HOG data to be determined in the HOG template comparison processing, and compares the acquired HOG data with the HOG data of each main template. , ZNCC to calculate an evaluation value y of the similarity.
On the other hand, when the template is not registered, the image recognition accelerator circuit 249 performs a HOG template generation process described later.

また、Scharr変換処理に並行して、画像認識アクセラレータ回路249は、FFT変換処理を行う。FFT変換処理において、画像認識アクセラレータ回路249は、SRAM243から極座標画像データを取得し、取得した極座標画像データに対して、FFT変換処理を施す。   Further, in parallel with the Scharr transform process, the image recognition accelerator circuit 249 performs an FFT transform process. In the FFT conversion processing, the image recognition accelerator circuit 249 acquires the polar coordinate image data from the SRAM 243, and performs the FFT transformation processing on the acquired polar image data.

次いで、本テンプレートが登録されている場合は、画像認識DSP回路242は、FFTテンプレート比較処理において、判定対象のFFTデータを取得し、取得したFFTデータと、各本テンプレートのFFTデータとを比較し、ZNCCによって類似度の評価値zを算出する。
一方、本テンプレートが登録されていない場合は、画像認識アクセラレータ回路249が後述するFFTテンプレート生成処理を行う。
Next, when the main template is registered, the image recognition DSP circuit 242 acquires the FFT data to be determined in the FFT template comparison process, and compares the acquired FFT data with the FFT data of each main template. , ZNCC to calculate an evaluation value z of the similarity.
On the other hand, when the template is not registered, the image recognition accelerator circuit 249 performs an FFT template generation process described later.

勾配平均画像テンプレート比較処理、HOGテンプレート比較処理及びFFTテンプレート比較処理の結果、評価値x,y,zが算出された後、画像認識DSP回路242は、3次元判定処理を行い、判定結果をSRAM243に記憶する。上述のとおり、画像認識DSP回路242は、判定結果を記憶する際に、判定に係るデータに引き継がれている上述の画像IDと、判定結果とを関連づけて記憶させる。   After the evaluation values x, y, and z are calculated as a result of the gradient average image template comparison process, the HOG template comparison process, and the FFT template comparison process, the image recognition DSP circuit 242 performs a three-dimensional determination process, and outputs the determination result to the SRAM 243. To memorize. As described above, when the image recognition DSP circuit 242 stores the determination result, the image recognition DSP circuit 242 associates the above-described image ID carried over to the data related to the determination with the determination result and stores the image ID.

刻印判定の判定結果がSRAM243に記憶されるとホストコントローラ241は、SRAM243に記憶されている同一の画像IDに関連づけられている円形検出の判定結果、色判定の判定結果及び刻印判定の判定結果に応じた判定完了コマンドを副制御回路101に送信する。   When the determination result of the engraving determination is stored in the SRAM 243, the host controller 241 sets the determination result of the circle detection, the determination result of the color determination, and the determination result of the engraving determination associated with the same image ID stored in the SRAM 243. The corresponding determination completion command is transmitted to the sub control circuit 101.

<煙検知処理>
煙検知処理は、ホストコントローラ241によって、変換処理が施された各グレースケール画像データに対して行われる。すなわち、煙検知処理は、フレーム毎に行われる。
<Smoke detection processing>
The smoke detection process is performed by the host controller 241 on each of the grayscale image data subjected to the conversion process. That is, the smoke detection process is performed for each frame.

煙検知処理において、ホストコントローラ241は、SRAM243にグレースケール画像データが記憶される度に、記憶されたグレースケール画像データを読み出す。次に、ホストコントローラ241は、読み出したグレースケール画像データの所定の煙判定領域A11のグレースケール平均値(輝度値の平均値)を算出する。   In the smoke detection processing, the host controller 241 reads out the stored grayscale image data every time the grayscale image data is stored in the SRAM 243. Next, the host controller 241 calculates a grayscale average value (average luminance value) of the predetermined smoke determination area A11 of the read grayscale image data.

図37は、本発明の煙判定領域を説明するための図であり、ホストコントローラ241がSRAM243から読み出したグレースケール画像データに、煙判定領域A11を、2点鎖線の矩形枠で示したものである。本実施形態における煙判定領域A11は、メダルレール210が形成されたベース部204において、且つ、セレクトプレート207のプレート本体224における左右両端部の上方に、設定されている。   FIG. 37 is a diagram for explaining the smoke determination area according to the present invention. The gray scale image data read from the SRAM 243 by the host controller 241 shows the smoke determination area A11 by a two-dot chain line rectangular frame. is there. The smoke determination area A11 in the present embodiment is set on the base portion 204 on which the medal rail 210 is formed and above the left and right ends of the plate main body 224 of the select plate 207.

煙判定領域A11は、カメラユニット209におけるLED233の照射範囲外に配置されている。すなわち、煙判定領域A11には、LED233からの光が照射されない。上述のとおり、メダルセレクタ201のベース板部204は、黒色の樹脂製の部材である。このため、読み出したグレースケール画像において、光の照射されない煙判定領域A11の色は、通常は、比較的黒色に近い色となる。すなわち煙判定領域A11内における各画素の輝度の平均値(以下、「グレースケール平均値」と称する場合がある)は、比較的0に近い値となる。   The smoke determination area A11 is located outside the irradiation range of the LED 233 in the camera unit 209. That is, the light from the LED 233 is not irradiated to the smoke determination area A11. As described above, the base plate portion 204 of the medal selector 201 is a black resin member. For this reason, in the read grayscale image, the color of the smoke determination area A11 to which light is not irradiated is usually a color that is relatively close to black. That is, the average value of the luminance of each pixel in the smoke determination area A11 (hereinafter, sometimes referred to as “gray scale average value”) is a value relatively close to zero.

しかしながら、例えば遊技者が吸ったタバコの煙が、パチスロ1の外装体2内に進入し、煙判定領域A11内を漂った場合、煙判定領域A11の色が灰色に変化する。すなわち煙判定領域A11のグレースケール平均値が、比較的0に近い値から大きな値と変化する。   However, for example, when the smoke of the cigarette smoked by the player enters the exterior body 2 of the pachislo 1 and drifts in the smoke determination area A11, the color of the smoke determination area A11 changes to gray. That is, the grayscale average value of the smoke determination area A11 changes from a value relatively close to 0 to a large value.

ホストコントローラ241は、煙検知処理において、読み出したグレースケール画像から算出した煙判定領域A11のグレースケール平均値が所定値(例えば125)以上の場合、煙が発生したことを検知する。なお、本実施形態では、ホストコントローラ241は、2つの煙判定領域A11のうち、いずれか一つでもグレースケール平均値が所定値以上で有った場合は、煙が発生したことを検知する。   In the smoke detection processing, when the gray scale average value of the smoke determination area A11 calculated from the read gray scale image is equal to or larger than a predetermined value (for example, 125), the host controller 241 detects that smoke is generated. In the present embodiment, if any one of the two smoke determination areas A11 has a grayscale average value equal to or greater than a predetermined value, the host controller 241 detects that smoke has occurred.

煙が発生したことを検知すると、ホストコントローラ241は、メダルセレクタ201を通常のモードである通常モードから煙モードに設定する。具体的には、ホストコントローラ241は、上述のカウント処理において、メダルカウント回路246が、処理の対象であるグレースケール画像データと背景グレースケール画像データの各判定領域(図23参照)における各画素の輝度の差分値が閾値以上であるかを判定する際に用いる閾値を、通常モードでの閾値、256階調の20%の値の51から50%の値の128に変更する。これによって、メダルカウント回路246が、煙が漂っている判定領域にメダルが存在すると誤認しないようにすることができる。   When detecting that smoke has been generated, the host controller 241 sets the medal selector 201 from the normal mode, which is a normal mode, to the smoke mode. Specifically, in the above-described counting process, the host controller 241 causes the medal counting circuit 246 to determine whether or not each pixel in each determination region (see FIG. 23) of the grayscale image data and the background grayscale image data to be processed. The threshold value used to determine whether the luminance difference value is equal to or greater than the threshold value is changed from the threshold value in the normal mode, 51 of the 20% value of 256 gradations to 128 of the 50% value. As a result, the medal counting circuit 246 can prevent erroneous recognition that a medal exists in the determination area where smoke is drifting.

煙モードに設定後もホストコントローラ241は、SRAM243にグレースケール画像データが記憶される度に、記憶されたグレースケール画像データを読み出し、煙検知処理を実行する。そして、読み出したグレースケール画像から算出した煙判定領域A11のグレースケール平均値が所定値(例えば125)よりも小さくなった場合、メダルセレクタ201を煙モードから通常モードに設定する。具体的には、メダルカウント回路246が用いる上記閾値を、煙モードでの閾値(128)から通常モードでの閾値(51)に設定する。このようにすることで、煙判定領域における煙の写り込みの有無に応じて、適切な閾値で、カウント処理における判定を行うことができる。
なお、本実施形態では、メダルカウンタ回路246が用いる閾値を通常モードでは20%(51)、煙モードでは、50%(128)に設定しているが、カメラユニット209の性能及び煙判定領域A11の材質、色等に基づいて、適切な閾値を適宜設定することができる。
After setting the smoke mode, the host controller 241 reads out the stored grayscale image data and executes the smoke detection process every time the grayscale image data is stored in the SRAM 243. When the grayscale average value of the smoke determination area A11 calculated from the read grayscale image becomes smaller than a predetermined value (for example, 125), the medal selector 201 is set from the smoke mode to the normal mode. Specifically, the threshold value used by the medal counting circuit 246 is set from the threshold value (128) in the smoke mode to the threshold value (51) in the normal mode. In this way, it is possible to make a determination in the count process with an appropriate threshold value according to the presence or absence of reflection of smoke in the smoke determination area.
In the present embodiment, the threshold value used by the medal counter circuit 246 is set to 20% (51) in the normal mode and to 50% (128) in the smoke mode. However, the performance of the camera unit 209 and the smoke determination area A11 are set. An appropriate threshold value can be appropriately set based on the material, color, etc.

<異物検知処理>
異物検知処理は、ホストコントローラ241によって行われる。ホストコントローラ241は、上述のカウント処理におけるメダル位置検出処理において、メダルカウント回路246が、判定領域A1〜A4,B1〜B4,C1,C2,D1〜D4,E及びF(図23参照)のいずれにもメダルがないと判定する場合に、異物検知処理を所定の周期(例えば、600msec毎)で実行する。また、ホストコントローラ241は、メダルソレノイド208がOFF状態にあり、セレクトプレート207の排出位置にある場合に、異物検知処理を所定の周期で実行する。なお、本実施形態では、この所定の周期は、適宜設定可能である。
<Foreign matter detection processing>
The foreign object detection processing is performed by the host controller 241. In the host controller 241, in the medal position detection processing in the above-described counting processing, the medal counting circuit 246 determines which of the determination areas A1 to A4, B1 to B4, C1, C2, D1 to D4, E, and F (see FIG. 23). When it is determined that there is no medal, the foreign object detection process is executed at a predetermined cycle (for example, every 600 msec). Further, when the medal solenoid 208 is in the OFF state and is at the discharge position of the select plate 207, the host controller 241 executes the foreign object detection processing at a predetermined cycle. In the present embodiment, the predetermined cycle can be set as appropriate.

異物検知処理において、ホストコントローラ241は、SRAM243に記憶された直近のグレースケール画像データを読み出す。次に、ホストコントローラ241は、読み出したグレースケール画像データにおける複数の異物検知領域A21の画像と、予めフラッシュメモリ244に記憶されたテンプレート画像と、とを比較し、ZNCCによって、類似度の評価値を算出する。そして、複数の異物検知領域A21の少なくとも1について評価値が0に近い方向で閾値を越えていた場合に、ホストコントローラ241は、異物を検知したと判定し、後述する「異物検出エラー」を内容とするメダルセレクタエラーコマンドを、副制御回路101へ送信する。   In the foreign object detection processing, the host controller 241 reads out the latest grayscale image data stored in the SRAM 243. Next, the host controller 241 compares the images of the plurality of foreign substance detection areas A21 in the read grayscale image data with the template images stored in the flash memory 244 in advance, and evaluates the similarity evaluation value by ZNCC. Is calculated. When the evaluation value of at least one of the plurality of foreign substance detection areas A21 exceeds the threshold value in a direction close to 0, the host controller 241 determines that a foreign substance has been detected, and describes a “foreign substance detection error” described later. Is transmitted to the sub-control circuit 101.

図38は、本発明の異物検知領域を説明するための図であり、ホストコントローラ241がSRAM243から読み出したグレースケール画像データに、異物検知領域A21を、2点鎖線の矩形枠で示したものである。本実施形態では、異物検知領域A21として、メダルレール210における6つの領域が設定されている。テンプレート画像は、基準品のメダルレールにおける、これら6つの異物検知領域A21の画像であり、予めフラッシュメモリ244に記憶されている。   FIG. 38 is a view for explaining the foreign substance detection area of the present invention. The foreign substance detection area A21 is indicated by a two-dot chain line rectangular frame in the grayscale image data read from the SRAM 243 by the host controller 241. is there. In the present embodiment, six regions on the medal rail 210 are set as the foreign object detection region A21. The template image is an image of these six foreign object detection areas A21 on the medal rail of the reference product, and is stored in the flash memory 244 in advance.

ここで、異物検知領域A21に、メダルレール210上を通過するメダルと接触して摩耗する箇所(すなわち経年劣化が発生する箇所)、例えば突条部210aが含まれている場合、摩耗によってテンプレート画像との類似度が変化してしまい、異物を検知したと誤って判定される虞がある。このため、本実施形態における異物検知領域A21は、図38に示すとおり、メダルレール210上を通過するメダルと接触して摩耗する箇所が含まれないように、メダルレール210の表面に形成された複数の突条部210aの間に、配置されている。これによって、ホストコントローラ241が、異物を検知したと誤って判定することを抑制できる。   Here, when the foreign matter detection area A21 includes a part that is worn by contact with a medal passing on the medal rail 210 (that is, a part that deteriorates over time), for example, the ridge 210a, the template image due to the wear is included. There is a possibility that the similarity with the image may change, and that it is erroneously determined that a foreign object has been detected. For this reason, as shown in FIG. 38, the foreign substance detection area A21 in the present embodiment is formed on the surface of the medal rail 210 so as not to include a part that is worn by contact with a medal passing on the medal rail 210. It is arranged between the plurality of ridges 210a. This can prevent the host controller 241 from erroneously determining that a foreign object has been detected.

なお、本実施形態では、6つの異物検知領域A21を設ける態様を説明したが、異物検知領域A21の設置数は適宜設定可能である。また、複数設けた異物検知領域A21について、評価値に係る閾値を、全て等しい値に設定してもよいし、各異物検知領域A21について異なる閾値を設定してもよい。例えば、不正行為に係る異物の侵入が、メダルの進行方向において、上流側よりも下流側で頻発するような場合は、下流側の異物検知領域A21に係る閾値を上流側の異物検知領域A21に係る閾値よりも高い値に設定し、下流側の異物検知領域A21について、テンプレート画像との類似度に生じた変化が軽微な場合であっても、異物を検知したと判定できるようにしてもよい。   In the present embodiment, the aspect in which six foreign substance detection areas A21 are provided has been described, but the number of foreign substance detection areas A21 can be set as appropriate. In addition, the thresholds relating to the evaluation values may be set to the same value for all of the plurality of foreign substance detection areas A21, or different thresholds may be set for each of the foreign substance detection areas A21. For example, in a case where the intrusion of a foreign substance related to a fraud frequently occurs in the medal traveling direction on the downstream side of the upstream side, the threshold value on the downstream side foreign substance detection area A21 is set to the upstream side foreign substance detection area A21. A value higher than the threshold value may be set so that it is possible to determine that a foreign object has been detected even in the case where the change in the degree of similarity with the template image in the foreign object detection area A21 on the downstream side is slight. .

<温度補正処理>
温度補正処理は、ホストコントローラ241によって、所定の周期(例えば、600ms毎)で行われる。ここで、カメラユニット209のレンズは、プラスチック製のため、周囲の温度変化に応じて膨張又は収縮する。レンズの膨張又は収縮によって画像データにおける上述のカウント処理で用いられる判定領域A1〜A4,B1〜B4,C1,C2,D1〜D4,E及びF(図23参照)に対応する位置も変化する。なお、本実施形態において、判定領域A1〜A4,B1〜B4,C1,C2,D1〜D4,E及びFの位置情報(座標)は、絶対位置ではなく、基準マーカー260(図10)に対する相対位置として設定されている。
<Temperature correction processing>
The temperature correction process is performed by the host controller 241 at a predetermined cycle (for example, every 600 ms). Here, since the lens of the camera unit 209 is made of plastic, it expands or contracts according to a change in ambient temperature. The positions corresponding to the determination areas A1 to A4, B1 to B4, C1, C2, D1 to D4, E, and F (see FIG. 23) used in the above-described count processing in the image data also change due to the expansion or contraction of the lens. In the present embodiment, the position information (coordinates) of the determination areas A1 to A4, B1 to B4, C1, C2, D1 to D4, E, and F are not absolute positions but relative to the reference marker 260 (FIG. 10). It is set as a position.

温度補正処理において、ホストコントローラ241は、温度センサ206gから、カメラユニット209におけるレンズ付近の温度を取得する。そして、ホストコントローラ241は、取得した温度に応じて、上述のカウント処理で用いられる判定領域A1〜A4,B1〜B4,C1,C2,D1〜D4,E及びF(図23参照)の位置を特定するためのデータ(以下の説明において、「補正データ」と称する場合がある)を生成する。   In the temperature correction processing, the host controller 241 acquires the temperature near the lens of the camera unit 209 from the temperature sensor 206g. Then, the host controller 241 determines the positions of the determination areas A1 to A4, B1 to B4, C1, C2, D1 to D4, E, and F (see FIG. 23) used in the above-described count processing according to the acquired temperature. Data for identification (hereinafter, referred to as “correction data” in some cases) is generated.

次に、温度補正処理の具体的な内容について、図39を参照して説明する。図39は、温度補正処理の一例を示すフローチャートである。   Next, the specific contents of the temperature correction processing will be described with reference to FIG. FIG. 39 is a flowchart illustrating an example of the temperature correction process.

まず、ホストコントローラ241は、温度センサ206gから、カメラユニット209におけるレンズ付近の温度を取得する(S301)。
次いで、ホストコントローラ241は、前回の補正から所定量(本実施形態では±3℃)の温度変化があったか否かを判定する(S302)。具体的には、SRAM243に記憶されている、前回、補正データを生成したときの温度と、S301で取得した温度と、を比較し、±3℃の温度変化があったか否かを判定する。
First, the host controller 241 acquires the temperature near the lens of the camera unit 209 from the temperature sensor 206g (S301).
Next, the host controller 241 determines whether or not there has been a temperature change of a predetermined amount (± 3 ° C. in the present embodiment) since the previous correction (S302). Specifically, the temperature at which the correction data was generated last time and stored in the SRAM 243 is compared with the temperature acquired at S301 to determine whether there is a temperature change of ± 3 ° C.

S302において、±3℃の温度変化がなかったと判定する場合(S302がNO判定の場合)、ホストコントローラ204は、温度補正処理を終了する。一方、±3℃の温度変化があったと判定する場合(S302がYES判定の場合)、ホストコントローラ204は、SRAM234に記憶された直近のグレースケール画像について、現在の補正データに基づく各判定領域A1〜A4,B1〜B4,C1,C2,D1〜D4,E及びFの明るさを読み出す(S303)。なお、各判定領域の明るさとは、各判定領域内における各画素の輝度(0〜255)の平均値(以下、「グレースケール平均値」と称する場合がある)である。   In S302, when it is determined that there is no temperature change of ± 3 ° C. (when S302 is NO), the host controller 204 ends the temperature correction processing. On the other hand, when it is determined that there is a temperature change of ± 3 ° C. (YES in S302), the host controller 204 determines each of the determination areas A1 based on the current correction data for the latest grayscale image stored in the SRAM 234. The brightness of A4, B1 to B4, C1, C2, D1 to D4, E and F is read (S303). Note that the brightness of each determination region is an average value (hereinafter, may be referred to as “gray scale average value”) of the luminance (0 to 255) of each pixel in each determination region.

次いで、ホストコントローラ204は、SRAM234に記憶されている、前回、補正データを生成したときのグレースケール画像における各判定領域の明るさ(グレースケール平均値)と、SRAM234に記憶された直近のグレースケール画像の各判定領域の明るさ(グレースケール平均値)とを比較し、各判定領域について変化量が15以下か否かを判定する(S304)。   Next, the host controller 204 updates the brightness (gray scale average value) of each determination area in the gray scale image when the correction data was generated last time, which is stored in the SRAM 234, and the latest gray scale stored in the SRAM 234. The brightness (average gray scale value) of each determination area of the image is compared, and it is determined whether or not the amount of change is 15 or less for each determination area (S304).

変化量が15よりも大きい値の判定領域が少なくとも一つある場合(S302がNO判定の場合)、ホストコントローラ204は、処理をステップS303に移行させ、次フレーム以降のグレースケール画像におけるすべての判定領域について、変化量が15以下となるまで、ステップS303、S304を繰り返す。ここで、変化量が15よりも大きい値の場合には、例えば遊技者のタバコの煙が画像の判定領域に写り込んでいる場合が考えられる。このような画像に基づいては適切な補正データを作成できないため、煙がなくなるまで、ホストコントローラ204は、ステップS303、S304を繰り返すことになる。   If there is at least one determination area having a change amount larger than 15 (NO in S302), the host controller 204 shifts the processing to step S303, and performs all determinations in the grayscale image of the next frame and subsequent frames. Steps S303 and S304 are repeated until the change amount of the region becomes 15 or less. Here, when the amount of change is a value larger than 15, for example, it is conceivable that smoke of cigarettes of the player is reflected in the determination area of the image. Since appropriate correction data cannot be created based on such an image, the host controller 204 repeats steps S303 and S304 until smoke disappears.

S304において、すべての判定領域について、変化量が15以下と判定する場合(S304がYES判定の場合)、ホストコントローラ204は、SRAM234に記憶された直近のグレースケール画像における基準マーカー260の位置情報(座標)を検出し、検出した位置情報から判定領域A1〜A4,B1〜B4,C1,C2,D1〜D4,E及びFの位置情報を特定するための補正データを生成する(S305)。   In S304, when it is determined that the amount of change is 15 or less for all the determination areas (YES in S304), the host controller 204 determines the position information of the reference marker 260 in the latest grayscale image stored in the SRAM 234 (see FIG. (Coordinates) are detected, and correction data for specifying the position information of the determination areas A1 to A4, B1 to B4, C1, C2, D1 to D4, E, and F is generated from the detected position information (S305).

次いで、ホストコントローラ204は、現在の温度と、各判定領域の明るさ(グレースケール平均値)をSRAM234の所定の領域に記憶させる(S306)。そして、ホストコントローラ204は、温度補正処理を終了する。   Next, the host controller 204 stores the current temperature and the brightness (gray scale average value) of each determination area in a predetermined area of the SRAM 234 (S306). Then, the host controller 204 ends the temperature correction processing.

なお、本実施形態では、ホストコントローラ241が600ms毎に温度補正処理を実行する態様を説明したが、温度補正処理の実行タイミングは任意に設定可能である。また、ステップS302において、前回の補正から所定量、すなわち±3℃の温度変化があったか否かを判定する態様を説明したが、当該所定量は適宜設定可能である。また、ステップS304において、各判定領域について変化量が15以下か否かを判定する態様を説明したが、当該変化量の値も適宜設定可能である。
ここで、図2乃至図4に示すとおり、本実施形態においては、メダルセレクタ201は、キャビネット2aとフロントドア2bとによって密閉された状態のパチスロ1の内部に配置されている。そして、パチスロ1の内部では、約0℃〜60℃の範囲で温度変化が発生する。これは、パチスロ1が設置される遊技ホールの温度環境やパチスロ1の内部機器の発熱に起因する。
In the present embodiment, the mode in which the host controller 241 executes the temperature correction processing every 600 ms has been described, but the execution timing of the temperature correction processing can be set arbitrarily. In addition, in step S302, a mode has been described in which it is determined whether or not there has been a predetermined amount of temperature change from the previous correction, that is, ± 3 ° C., but the predetermined amount can be set as appropriate. Further, in the step S304, the mode in which it is determined whether or not the amount of change is equal to or less than 15 for each determination region has been described, but the value of the amount of change can also be set as appropriate.
Here, as shown in FIGS. 2 to 4, in the present embodiment, the medal selector 201 is disposed inside the pachislot 1 in a state where the medal selector 201 is closed by the cabinet 2a and the front door 2b. Then, inside the pachislot 1, a temperature change occurs in a range of about 0 ° C to 60 ° C. This is due to the temperature environment of the game hall where the pachislot 1 is installed and the heat generated by the internal equipment of the pachislot 1.

[テンプレート生成処理]
次に、画像認識アクセラレータ回路249が行うテンプレート生成処理について、図40及び図41に示すフローチャートを参照して、説明する。図40及び図41は、テンプレート生成処理の一例を示すフローチャートである。なお、テンプレート生成処理は、所定の周期で繰り返し実行される。また、テンプレート生成処理には、図36に示す勾配平均画像テンプレート生成処理、HOGテンプレート生成処理、FFTテンプレート生成処理を含む処理である。
[Template generation processing]
Next, the template generation processing performed by the image recognition accelerator circuit 249 will be described with reference to the flowcharts shown in FIGS. 40 and 41 are flowcharts illustrating an example of the template generation processing. Note that the template generation processing is repeatedly executed at a predetermined cycle. Further, the template generation processing is processing including gradient average image template generation processing, HOG template generation processing, and FFT template generation processing shown in FIG.

まず、画像認識アクセラレータ回路249は、メダルが投入されたか否かを判定する(S1)。具体的には、メダルカウント回路246が、ISP回路245から出力されたグレースケール画像データに、メダルの画像が含まれていると判別したか否かを確認する。つまり、メダルカウント回路246がカウント処理を開始したか否かを確認する。メダルが投入されたと判定する場合(S1がYES判定の場合)、画像認識アクセラレータ回路249は、処理をステップS2に移行する。一方、メダルが投入されていないと判定する場合(S1がNO判定の場合)、画像認識アクセラレータ回路249は、テンプレート生成処理を終了する。   First, the image recognition accelerator circuit 249 determines whether or not a medal has been inserted (S1). Specifically, it is determined whether or not the medal counting circuit 246 has determined that the grayscale image data output from the ISP circuit 245 includes a medal image. That is, it is determined whether or not the medal counting circuit 246 has started the counting process. If it is determined that a medal has been inserted (if S1 is YES), the image recognition accelerator circuit 249 shifts the processing to step S2. On the other hand, if it is determined that no medal has been inserted (NO in S1), the image recognition accelerator circuit 249 ends the template generation processing.

ステップS2において、画像認識アクセラレータ回路249は、仮刻印を保持する(S2)。具体的には、メダルカウント回路246がメダルの画像が含まれていると判別したグレースケール画像データに対して魚眼補正スケーラ回路248及び画像認識DSP回路242が各種処理を施して作成したエッジ画像XYを用いて、投入されたメダルの勾配平均画像データ、HOGデータ、FFTデータを生成する。そして、これら生成したデータのセットを、SRAM243に記憶する。   In step S2, the image recognition accelerator circuit 249 holds the temporary marking (S2). More specifically, an edge image created by the fisheye correction scaler circuit 248 and the image recognition DSP circuit 242 performing various processes on the grayscale image data determined by the medal counting circuit 246 to include a medal image. Using XY, gradient average image data, HOG data, and FFT data of the inserted medals are generated. Then, the generated data set is stored in the SRAM 243.

次に、画像認識アクセラレータ回路249は、メダルカウントがOKか否かを判定する(S3)。具体的には、ステップS1で開始を確認したメダルカウント回路246によるカウント処理の判定結果が、メダルレール210上を「メダルが通過した」であるか否かを判定する(S3)。ステップS3で、メダルカウントがOKでない場合(判定結果が「メダルが通過した」でない場合,すなわちS3がNO判定の場合)、画像認識アクセラレータ回路249は、仮刻印を破棄する(S4)。すなわち、画像認識アクセラレータ回路249は、ステップS2でSRAM243に記憶させた勾配平均画像データ、HOGデータ、FFTデータを破棄する。そして、画像認識アクセラレータ回路249は、テンプレート生成処理を終了する。   Next, the image recognition accelerator circuit 249 determines whether or not the medal count is OK (S3). Specifically, it is determined whether or not the determination result of the counting process by the medal counting circuit 246, the start of which has been confirmed in step S1, is "the medal has passed" on the medal rail 210 (S3). In step S3, if the medal count is not OK (the determination result is not "medal passed", that is, if S3 is NO), the image recognition accelerator circuit 249 discards the temporary engraving (S4). That is, the image recognition accelerator circuit 249 discards the gradient average image data, HOG data, and FFT data stored in the SRAM 243 in step S2. Then, the image recognition accelerator circuit 249 ends the template generation processing.

一方、ステップS3において、メダルカウントがOKである場合(判定結果が「メダルが通過した」である場合,すなわちステップS3がYES判定の場合)、画像認識アクセラレータ回路249は、仮テンプレートがあるか否かを判定する(S5)。具体的には、SRAM243の仮テンプレート記憶領域を参照し、仮テンプレート(勾配平均画像データ、HOGデータ及びFFTデータのセット)が記憶されているか否かを判定する。ここで、本実施形態における仮テンプレート記憶領域として、仮テンプレートを10個(セット)記憶可能なように、仮テンプレート記憶領域No.1〜No.10が設定されている。   On the other hand, in step S3, when the medal count is OK (when the determination result is "the medal has passed", that is, when the determination in step S3 is YES), the image recognition accelerator circuit 249 determines whether or not there is a temporary template. Is determined (S5). Specifically, referring to the temporary template storage area of the SRAM 243, it is determined whether or not a temporary template (set of gradient average image data, HOG data, and FFT data) is stored. Here, as the temporary template storage area in the present embodiment, the temporary template storage area No. is set so that ten (set) temporary templates can be stored. 1 to No. 10 is set.

仮テンプレートが記憶されていないと判定する場合(S5がNO判定の場合)、画像認識アクセラレータ回路249は、ステップS2でSRAM243に記憶させた勾配平均画像データ、HOGデータ、FFTデータを、仮テンプレートとして仮テンプレート記憶領域No.1〜No.10の中の空き領域に記憶し、空き領域Noに応じた仮テンプレートの累積カウンタの値を1にする(S6)。なお、以降の説明において、仮テンプレート記憶領域No.1〜No.10のそれぞれに記憶されている仮テンプレートを「仮テンプレートNo.1〜No.10」と称する場合がある。すなわち、例えば、仮テンプレート記憶領域No.1に記憶されている仮テンプレートを「仮テンプレートNo.1」と称する場合がある。   If it is determined that the temporary template is not stored (NO in S5), the image recognition accelerator circuit 249 uses the gradient average image data, HOG data, and FFT data stored in the SRAM 243 in step S2 as a temporary template. The temporary template storage area No. 1 to No. Then, the value is stored in the free area of 10 and the value of the cumulative counter of the temporary template corresponding to the free area No. is set to 1 (S6). In the following description, the temporary template storage area No. 1 to No. 10 may be referred to as “temporary templates No. 1 to No. 10”. That is, for example, the temporary template storage area No. The temporary template stored in No. 1 may be referred to as “temporary template No. 1”.

次に、画像認識アクセラレータ回路249は、学習メダルカウントを行う(S7)。具体的には、画像認識アクセラレータ回路249は、SRAM243に設けられた学習メダルカウンタの値に1を加算する。   Next, the image recognition accelerator circuit 249 performs a learning medal count (S7). Specifically, the image recognition accelerator circuit 249 adds 1 to the value of the learning medal counter provided in the SRAM 243.

次に、画像認識アクセラレータ回路249は、学習メダルカウンタの値が127か否かを判定する(S8)。学習メダルカウンタの値が127の場合(S8がYES判定の場合)、画像認識アクセラレータ回路249は、処理を後述するステップS14に移行させる。一方、学習メダルカウンタの値が127でない場合(S8がNO判定の場合)、画像認識アクセラレータ回路249は、学習メダルカウンタの値が259か否かを判定する(S9)。学習メダルカウンタの値が259の場合(S9がYES判定の場合)、画像認識アクセラレータ回路249は、処理を後述するステップS16に移行させる。一方、学習メダルカウンタの値が259でない場合(S9がNO判定の場合)、画像認識アクセラレータ回路249は、テンプレート生成処理を終了する。   Next, the image recognition accelerator circuit 249 determines whether or not the value of the learning medal counter is 127 (S8). When the value of the learning medal counter is 127 (YES in S8), the image recognition accelerator circuit 249 shifts the processing to step S14 described later. On the other hand, if the value of the learning medal counter is not 127 (NO in S8), the image recognition accelerator circuit 249 determines whether the value of the learning medal counter is 259 (S9). If the value of the learning medal counter is 259 (if S9 is YES), the image recognition accelerator circuit 249 shifts the processing to step S16 described later. On the other hand, when the value of the learning medal counter is not 259 (when S9 is NO), the image recognition accelerator circuit 249 ends the template generation processing.

ここで、説明をステップS5に戻し、仮テンプレートが記憶されていると判定する場合(S5がYES判定の場合)、画像認識アクセラレータ回路249は、ステップS2でSRAM243に記憶させた勾配平均画像データ、HOGデータ、FFTデータが、仮テンプレートNo.1〜No.10のいずれかと同じか否かを判定する(S10)。すなわち、投入されたメダルが、仮テンプレートNo.1〜No.10のいずれかと同じかを判定する。   Here, the description returns to step S5, and if it is determined that the temporary template is stored (if S5 is YES), the image recognition accelerator circuit 249 sets the gradient average image data stored in the SRAM 243 in step S2 to: The HOG data and the FFT data correspond to the temporary template No. 1 to No. It is determined whether it is the same as any one of 10 (S10). That is, the inserted medal is the temporary template No. 1 to No. 10 is determined to be the same.

この比較において、画像認識アクセラレータ回路249は、ステップS2でSRAM243に記憶させた勾配平均画像データ、HOGデータ、FFTデータと、仮テンプレートNo.1〜No.10(の勾配平均画像データ、HOGデータ、FFTデータ)とを比較し、類似度の評価値x,y,zを算出する。具体的には、ZNCCによって、勾配平均画像データについて評価値xを算出し、HOGデータについて評価値yを算出し、FFTデータについて評価値zを算出する。そして、算出した評価値x,y,zと、予め設定した係数A,C,Dからなる上述の式(11)が成立する場合に、投入されたメダルと、仮テンプレートとが、同一であると判定する。   In this comparison, the image recognition accelerator circuit 249 compares the gradient average image data, the HOG data, and the FFT data stored in the SRAM 243 in step S2 with the temporary template No. 1 to No. 10 (gradient average image data, HOG data, and FFT data thereof) to calculate similarity evaluation values x, y, and z. Specifically, the ZNCC calculates an evaluation value x for the gradient average image data, calculates an evaluation value y for the HOG data, and calculates an evaluation value z for the FFT data. Then, when the calculated evaluation values x, y, z and the above-described equation (11) including the coefficients A, C, D set in advance are satisfied, the inserted medal and the temporary template are the same. Is determined.

ステップS10において、ステップS2で投入されたメダルが、仮テンプレートNo.1〜No.10のいずれかと同じと判定する場合(S10がYES判定の場合)、画像認識アクセラレータ回路249は、処理をステップS11に移行させる。ステップS11において、画像認識アクセラレータ回路249は、上記式が成立する(すなわち投入メダルと同じと判定された)仮テンプレートについて、累積カウントを行い、且つ、更新処理を行う(S11)。   In step S10, the medal inserted in step S2 is the temporary template No. 1 to No. If the image recognition accelerator circuit 249 determines that it is the same as any one of S10 (YES in S10), the process proceeds to step S11. In step S11, the image recognition accelerator circuit 249 performs the cumulative count and updates the temporary template for which the above equation is satisfied (that is, determined to be the same as the inserted medal) (S11).

具体的には、画像認識アクセラレータ回路249は、SRAM243に仮テンプレートNo.1〜No.10毎に設けられた累積カウンタの内で、ステップS10で投入メダルと同じと判定された仮テンプレートの累積カウンタの値に1を加算する。また、同じと判定された仮テンプレートの勾配平均画像データ、HOGデータ、FFTデータについて、これらのデータのそれぞれとステップS2でSRAM243に記憶させた投入メダルの勾配平均画像データ、HOGデータ、FFTデータのそれぞれとを平均化し、更新する。そして、画像認識アクセラレータ回路249は、処理をステップS7に移行させる。   Specifically, the image recognition accelerator circuit 249 stores the temporary template No. in the SRAM 243. 1 to No. Among the cumulative counters provided for each 10, one is added to the value of the cumulative counter of the temporary template determined to be the same as the inserted medal in step S10. The gradient average image data, the HOG data, and the FFT data of the temporary template determined to be the same as each of these data and the gradient average image data, the HOG data, and the FFT data of the inserted medal stored in the SRAM 243 in step S2. Average and update each. Then, the image recognition accelerator circuit 249 shifts the processing to step S7.

一方、ステップS10において、式(11)が成り立たず、投入されたメダルが、仮テンプレートNo.1〜No.10のいずれとも同じでないと判定する場合(S10がNO判定の場合)、画像認識アクセラレータ回路249は、処理をステップS12に移行させる。ステップS12において、画像認識アクセラレータ回路249は、仮テンプレートが10個あるか否かを判定する(S12)。具体的には、画像認識アクセラレータ回路249は、仮テンプレート記憶領域No.1〜No.10を参照し、すべてに仮テンプレートが記憶されているか否かを判定する。   On the other hand, in step S10, equation (11) does not hold, and the inserted medal is assigned to the temporary template No. 1 to No. If it is determined that none of them is the same as any one of the cases (NO in S10), the image recognition accelerator circuit 249 shifts the processing to step S12. In step S12, the image recognition accelerator circuit 249 determines whether or not there are ten temporary templates (S12). Specifically, the image recognition accelerator circuit 249 stores the temporary template storage area No. 1 to No. 10, it is determined whether or not temporary templates are stored in all of them.

仮テンプレート記憶領域No.1〜No.10のすべてに仮テンプレートが記憶されていない場合(S12がNO判定の場合)、画像認識アクセラレータ回路249は、処理をステップS6に移行させる。そして、ステップS6で、ステップS2でSRAM243に記憶させた勾配平均画像データ、HOGデータ、FFTデータを仮テンプレートとして、仮テンプレート記憶領域No.1〜No.10の中の空き領域に記憶する。   The temporary template storage area No. 1 to No. If the temporary templates are not stored in all of 10 (if S12 is NO), the image recognition accelerator circuit 249 shifts the processing to step S6. Then, in step S6, the gradient average image data, the HOG data, and the FFT data stored in the SRAM 243 in step S2 are used as temporary templates, and the temporary template storage area No. 1 to No. 10 is stored in an empty area.

一方、仮テンプレート記憶領域No.1〜No.10のすべてに仮テンプレートが記憶されている場合(S12がYES判定の場合)、画像認識アクセラレータ回路249は、処理をステップS13に移行させる。ステップS13において、画像認識アクセラレータ回路249は、最下位の仮テンプレートとして記憶されている勾配平均画像データ、HOGデータ、FFTデータを破棄する。(S13)。また、破棄した仮テンプレートNoの累積カウントの値を0にする。そして、画像認識アクセラレータ回路249は、処理をステップS6に移行させる。なお、移行したステップS6において、ステップS2でSRAM243に記憶させた勾配平均画像データ、HOGデータ、FFTデータが仮テンプレートとして記憶される。すなわち、ステップS2でSRAM243に記憶させた勾配平均画像データ、HOGデータ、FFTデータがS13で破棄した仮テンプレートに入れ替わるように記憶される。   On the other hand, the temporary template storage area No. 1 to No. When the temporary template is stored in all of 10 (when S12 is YES), the image recognition accelerator circuit 249 shifts the processing to step S13. In step S13, the image recognition accelerator circuit 249 discards the gradient average image data, HOG data, and FFT data stored as the lowest temporary template. (S13). Also, the value of the cumulative count of the discarded temporary template No is set to zero. Then, the image recognition accelerator circuit 249 shifts the processing to step S6. In step S6, the gradient average image data, HOG data, and FFT data stored in the SRAM 243 in step S2 are stored as temporary templates. That is, the gradient average image data, the HOG data, and the FFT data stored in the SRAM 243 in step S2 are stored so as to be replaced with the temporary template discarded in S13.

ここで、説明をステップS8に戻し、学習メダルカウンタの値が127の場合(S8がYES判定の場合)、画像認識アクセラレータ回路249は、累積カウンタの値が10以上の仮テンプレートが1種類又は2種類かを判定する(S14)。累積カウンタの値が10以上の仮テンプレートが1種類又は2種類でないと判定する場合(ステップS14がNO判定の場合)、画像認識アクセラレータ回路249は、テンプレート生成処理を終了する。なお、累積カウンタの値が10以上の仮テンプレートが1種類又は2種類でない場合とは、累積カウンタの値が10以上の仮テンプレートが0又は3種類以上ある場合である。   Here, the description returns to step S8, and when the value of the learning medal counter is 127 (when S8 is YES), the image recognition accelerator circuit 249 determines that one or two types of temporary templates with a cumulative counter value of 10 or more are provided. The type is determined (S14). When it is determined that the number of temporary templates whose cumulative counter value is 10 or more is not one type or two types (NO in step S14), the image recognition accelerator circuit 249 ends the template generation processing. Note that the case where the number of temporary templates whose cumulative counter value is 10 or more is not one or two is the case where there are 0 or three or more types of temporary templates whose cumulative counter value is 10 or more.

一方、累積カウンタの値が10以上の仮テンプレートが1種類又は2種類であると判定する場合(ステップS14がYES判定の場合)、画像認識アクセラレータ回路249は、累積カウンタが10以上の仮テンプレートを、本テンプレートに登録し、仮テンプレート記憶領域に記憶されている他の仮テンプレートは破棄する(S15)。ここで、本テンプレートに登録とは、SRAM243に設定されている本テンプレート記憶領域に、累積カウンタが10以上の仮テンプレートを、記憶させること、すなわちテンプレートの生成を完了することを意味する。そして、画像認識アクセラレータ回路249は、テンプレート生成処理を終了する。なお、以降の説明において、本テンプレート記憶領域に記憶されている仮テンプレートを「本テンプレート」と称する場合がある。   On the other hand, when it is determined that the number of temporary templates whose cumulative counter value is 10 or more is one or two types (YES in step S14), the image recognition accelerator circuit 249 determines that the temporary template whose cumulative counter is 10 or more is used. The other temporary templates registered in this template and stored in the temporary template storage area are discarded (S15). Here, registering in the main template means that a temporary template having a cumulative counter of 10 or more is stored in the main template storage area set in the SRAM 243, that is, generation of the template is completed. Then, the image recognition accelerator circuit 249 ends the template generation processing. In the following description, the temporary template stored in the main template storage area may be referred to as “main template”.

ここで、説明をステップS9に戻し、学習メダルカウンタの値が259の場合(S9がYES判定の場合)、画像認識アクセラレータ回路249は、累積カウンタの値が10以上の仮テンプレートは0種類か否かを判定する(S16)。累積カウンタの値が10以上の仮テンプレートは0種類であると判定する場合(S16がYES判定の場合)、画像認識アクセラレータ回路249は、処理を後述するステップS20に移行する。   Here, the description returns to step S9. If the value of the learning medal counter is 259 (if S9 is YES), the image recognition accelerator circuit 249 determines whether or not there are 0 types of temporary templates with a cumulative counter value of 10 or more. Is determined (S16). If it is determined that the number of temporary templates whose cumulative counter value is 10 or more is 0 (YES in S16), the image recognition accelerator circuit 249 proceeds to step S20 described below.

一方、累積カウンタの値が10以上の仮テンプレートが0種類でないと判定する場合(S16がNO判定の場合)、画像認識アクセラレータ回路249は、累積カウンタの値が10以上の仮テンプレートは5種類以上か否かを判定する(S17)。累積カウンタの値が10以上の仮テンプレートは5種類以上でないと判定する場合(S17がNO判定の場合,すなわち10以上の仮テンプレートが1〜4種類の場合)、画像認識アクセラレータ回路249は、累積カウンタの値が10以上の仮テンプレートを本テンプレートに登録し、仮テンプレート記憶領域に記憶されている他の仮テンプレートは破棄する(S18)。そして、画像認識アクセラレータ回路249は、テンプレート生成処理を終了する。   On the other hand, when it is determined that the number of temporary templates whose cumulative counter value is 10 or more is not 0 (NO in S16), the image recognition accelerator circuit 249 determines that the number of temporary templates whose cumulative counter value is 10 or more is 5 or more. It is determined whether or not (S17). When it is determined that the number of temporary templates whose cumulative counter value is 10 or more is not more than 5 types (NO in S17, that is, when there are 1 to 4 types of temporary templates of 10 or more), the image recognition accelerator circuit 249 calculates A temporary template having a counter value of 10 or more is registered in the main template, and other temporary templates stored in the temporary template storage area are discarded (S18). Then, the image recognition accelerator circuit 249 ends the template generation processing.

一方、累積カウンタの値が10以上の仮テンプレートが5種類以上であると判定する場合(S17がYES判定の場合)、画像認識アクセラレータ回路249は、累積カウンタの値が上位4位と5位の仮テンプレートについて、累積カウンタの値が等しいか否かを判定する(S19)。累積カウンタの値が等しくない場合(19がNO判定の場合)、画像認識アクセラレータ回路249は、累積カウンタの値が上位1位から4位までの4種類の仮テンプレートを本テンプレートに登録し、仮テンプレート記憶領域に記憶されている他の仮テンプレートは破棄する(S21)。そして、画像認識アクセラレータ回路249は、テンプレート生成処理を終了する。   On the other hand, when it is determined that there are five or more types of temporary templates having a cumulative counter value of 10 or more (YES in S17), the image recognition accelerator circuit 249 determines that the cumulative counter value is the fourth highest and fifth highest. It is determined whether or not the values of the cumulative counters are equal for the temporary template (S19). If the values of the accumulation counters are not equal (if NO is determined to be 19), the image recognition accelerator circuit 249 registers the four types of temporary templates with the first to fourth highest cumulative counter values in this template, Other temporary templates stored in the template storage area are discarded (S21). Then, the image recognition accelerator circuit 249 ends the template generation processing.

ステップS16で、累積カウンタの値が10以上の仮テンプレートは0種類であると判定する場合(S16がYES判定の場合)及びステップS19で、累積カウンタの値が等しいと判定する場合(S19がYES判定の場合)、画像認識アクセラレータ回路249は、ホストコントローラ241にメダルセレクタエラーコマンドの送信を要求する(S20)。ホストコントローラ241は、当該要求に応じて、メダルセレクタエラーコマンドを送信する。なお、このメダルセレクタエラーコマンドのDAT0の値は、「刻印テンプレート生成エラー」を示す「5」が設定されている。メダルセレクタエラーコマンドの詳細については後述する。
そして、画像認識アクセラレータ回路249は、テンプレート生成処理を終了する。
In step S16, it is determined that there are 0 types of temporary templates having a cumulative counter value of 10 or more (YES in S16), and in step S19, it is determined that the cumulative counter values are equal (S19 is YES). In the case of determination), the image recognition accelerator circuit 249 requests the host controller 241 to transmit a medal selector error command (S20). The host controller 241 transmits a medal selector error command in response to the request. The value of DAT0 of this medal selector error command is set to "5" indicating "engraved template generation error". Details of the medal selector error command will be described later.
Then, the image recognition accelerator circuit 249 ends the template generation processing.

[本テンプレート更新処理]
次に、画像認識アクセラレータ回路249が行う本テンプレート更新処理について、図42を参照して、説明する。図42は、本テンプレート更新処理の一例を示すフローチャートである。本テンプレート更新処理は、画像認識DSP回路242が3次元判定処理を行う度に実行される。
[This template update process]
Next, the template updating process performed by the image recognition accelerator circuit 249 will be described with reference to FIG. FIG. 42 is a flowchart illustrating an example of the template updating process. This template updating process is executed each time the image recognition DSP circuit 242 performs the three-dimensional determination process.

まず、画像認識アクセラレータ回路249は、画像認識DSP回路242の3次元判定処理の判定結果が「正規メダル」か否か、すなわち「判定OK」か否か、を判定する(S31)。判定結果が「正規メダル」でない場合、すなわち「判定NG」の場合(S31がNO判定の場合)、画像認識アクセラレータ回路249は、本テンプレート更新処理を終了する。   First, the image recognition accelerator circuit 249 determines whether or not the determination result of the three-dimensional determination process of the image recognition DSP circuit 242 is “regular medal”, that is, “determination OK” (S31). If the determination result is not “regular medal”, that is, “judgment NG” (if S31 is NO), the image recognition accelerator circuit 249 ends the template update process.

一方、判定結果が「正規メダル」である場合、すなわち「判定OK」の場合(S31がYES判定の場合)、画像認識アクセラレータ回路249は、SRAM243に設定されている正規メダルカウンタの値に1を加算する(S32)。   On the other hand, when the determination result is “regular medal”, that is, when “determination is OK” (when S31 is YES), the image recognition accelerator circuit 249 sets 1 to the value of the regular medal counter set in the SRAM 243. It is added (S32).

次いで、画像認識アクセラレータ回路249は、正規メダルカウンタの値が4であるか否かを判定する(S33)。正規メダルカウンタの値が4でない場合(S33がNO判定の場合)、画像認識アクセラレータ回路249は、本テンプレート更新処理を終了する。   Next, the image recognition accelerator circuit 249 determines whether or not the value of the regular medal counter is 4 (S33). When the value of the regular medal counter is not 4 (when S33 is NO), the image recognition accelerator circuit 249 ends the template updating process.

一方、正規メダルカウンタの値が4である場合(S33がYES判定の場合)、画像認識アクセラレータ回路249は、本テンプレート更新処理を行う(S34)。具体的には、直近の3次元判定処理で、式(11)が成立した本テンプレートの勾配平均画像データ、HOGデータ、FFTデータのそれぞれに、投入されたメダルの勾配平均画像データ、HOGデータ、FFTデータを合成する。本実施形態では、投入されたメダルの勾配平均画像データ、HOGデータ、FFTデータを1/256の加重平均で、本テンプレートの勾配平均画像データ、HOGデータ、FFTデータのそれぞれに合成する。なお、投入されたメダルの勾配平均画像データ、HOGデータ、FFTデータに対する重み付けは1/256に限らず、任意に設定可能である。また、本実施形態では、加重平均で合成する方法を説明したが、これに限らず、単純平均、又は、指数平均で合成してもよい。   On the other hand, if the value of the regular medal counter is 4 (if S33 is YES), the image recognition accelerator circuit 249 performs the template updating process (S34). Specifically, in the latest three-dimensional determination processing, the gradient average image data, HOG data, HOG data, FFT data is synthesized. In the present embodiment, the gradient average image data, HOG data, and FFT data of the inserted medals are combined with the gradient average image data, HOG data, and FFT data of the present template by a weighted average of 1/256. The weighting of the inserted medal for the gradient average image data, HOG data, and FFT data is not limited to 1/256, and can be set arbitrarily. Further, in the present embodiment, the method of combining by weighted average has been described. However, the present invention is not limited to this, and may be combined by simple average or exponential average.

ステップS34の後、画像認識アクセラレータ回路249は、正規メダルカウンタをクリアし、本テンプレート更新処理を終了する。
なお、式(11)が成立する本テンプレートが複数ある場合は、x+Ay+Czで算出される値がもっとも大きな値に係る本テンプレートを更新する。例えば、本テンプレートとして、本テンプレートA,Bの二つが登録されていた場合で、投入されたメダルを本テンプレートAと比較した場合のx+Ay+Czの値が2.4であり、投入されたメダルを本テンプレートBと比較した場合のx+Ay+Czの値が2である場合は、本テンプレートAを更新する。
After step S34, the image recognition accelerator circuit 249 clears the regular medal counter, and ends the template updating process.
If there are a plurality of main templates satisfying the expression (11), the main template relating to the largest value calculated by x + Ay + Cz is updated. For example, when two of the main templates A and B are registered as the main templates, the value of x + Ay + Cz when the inserted medals are compared with the main template A is 2.4, If the value of x + Ay + Cz is 2 in comparison with the template B, the template A is updated.

上述のテンプレート生成処理(図40及び図41参照)によって、例えば、表と裏で刻印(模様)が異なる2種類のメダルを正規メダルとして使用する場合は、これら2種類のメダルの表と裏に係る4種類のテンプレートを生成することができる。また、正規メダルが1種類であったときは、この正規メダルの表と裏に係る2種類のテンプレートが生成することができる。   According to the above-described template generation processing (see FIGS. 40 and 41), for example, when two types of medals having different engravings (patterns) on the front and back are used as regular medals, the two medals are displayed on the front and back of these two medals. Such four types of templates can be generated. When there is only one regular medal, two types of templates for the front and back of the regular medal can be generated.

[係数更新処理]
次に、画像認識アクセラレータ回路249が行う係数更新処理について、図43を参照して、説明する。図43は、係数更新処理の一例を示すフローチャートである。係数更新処理は、式(11)における係数A,C,Dの値を更新する処理である。係数更新処理は、画像認識DSP回路242が3次元判定処理を行う度に実行される。
[Coefficient update processing]
Next, a coefficient updating process performed by the image recognition accelerator circuit 249 will be described with reference to FIG. FIG. 43 is a flowchart illustrating an example of the coefficient update process. The coefficient updating process is a process of updating the values of the coefficients A, C, and D in Expression (11). The coefficient update processing is executed each time the image recognition DSP circuit 242 performs the three-dimensional determination processing.

まず、画像認識アクセラレータ回路249は、画像認識DSP回路242の3次元判定処理の判定結果が「判定OK」か否かを判定する(S41)。判定結果が「判定OK」でない場合(S41がNO判定の場合)、画像認識アクセラレータ回路249は、係数更新処理を終了する。   First, the image recognition accelerator circuit 249 determines whether or not the determination result of the three-dimensional determination process of the image recognition DSP circuit 242 is “determination OK” (S41). If the determination result is not “OK” (NO in S41), the image recognition accelerator circuit 249 ends the coefficient update processing.

一方、判定結果が「判定OK」である場合(S41がYES判定の場合)、画像認識アクセラレータ回路249は、SRAM243に設定されている更新用メダルカウンタの値に1を加算する(S42)。   On the other hand, if the result of the determination is “OK” (YES in S41), the image recognition accelerator circuit 249 adds 1 to the value of the updating medal counter set in the SRAM 243 (S42).

次に、画像認識アクセラレータ回路249は、テンプレート比較の結果を累積する(S43)。具体的には、3次元判定処理において「判定OK」と判定されたときの評価値x,y,zの平均値と、標準偏差を算出する。そして、算出したx,y,zの平均値と標準偏差をSRAM243の所定の領域に記憶する。   Next, the image recognition accelerator circuit 249 accumulates the results of the template comparison (S43). Specifically, the average value and the standard deviation of the evaluation values x, y, and z when the determination is “OK” in the three-dimensional determination process are calculated. Then, the calculated average value and standard deviation of x, y, and z are stored in a predetermined area of the SRAM 243.

次に、画像認識アクセラレータ回路249は、更新用メダルカウンタの値が所定値か否かを判定する(S44)。本実施形態において所定値は、例えば、500,1000,以降は1000の倍数(例えば、2000,3000,4000)に設定されている。   Next, the image recognition accelerator circuit 249 determines whether or not the value of the updating medal counter is a predetermined value (S44). In the present embodiment, the predetermined value is set, for example, to 500, 1000, and thereafter to a multiple of 1000 (for example, 2000, 3000, 4000).

更新用メダルカウンタの値が所定値でない場合(S44がNO判定の場合)、画像認識アクセラレータ回路249は、係数更新処理を終了する。一方、更新用メダルカウンタの値が所定値の場合(S44がYES判定の場合)、画像認識アクセラレータ回路249は、閾値を更新する。   When the value of the updating medal counter is not the predetermined value (NO in S44), the image recognition accelerator circuit 249 ends the coefficient updating process. On the other hand, when the value of the updating medal counter is a predetermined value (when S44 is YES), the image recognition accelerator circuit 249 updates the threshold.

ここで、閾値の更新方法について、更新用メダルカウンタの値が500のとき、すなわちテンプレート生成後に投入された正規メダルが500枚に達したときを例に説明する。まず、評価値xと評価値yに着目し、x+Ay≧Bが成り立つとき、正規メダルと判別すると考える。この場合、テンプレート生成後に投入され、正規メダルと判断された500枚のメダルについて、xの平均を「μx」、標準偏差を「σx」とし、yの平均を「μy」、標準偏差を「σy」とするとき、y=1のときの閾値直線上のxの値は、以下の式で与えられる。
x1=μx−σx×kx ・・・式(12)
Here, a method of updating the threshold value will be described by way of example when the value of the updating medal counter is 500, that is, when the number of regular medals inserted after template generation reaches 500. First, paying attention to the evaluation value x and the evaluation value y, when x + Ay ≧ B is satisfied, it is considered to be determined as a regular medal. In this case, for the 500 medals that are inserted after the template is generated and are determined to be regular medals, the average of x is “μx”, the standard deviation is “σx”, the average of y is “μy”, and the standard deviation is “σy”. , The value of x on the threshold straight line when y = 1 is given by the following equation.
x1 = μx−σx × kx Expression (12)

また、x=1のときの閾値直線上のyの値は、以下の式で与えられる。
y1=μy−σy×ky ・・・式(13)
なお、kは別途定める定数、例えば12αである。
The value of y on the threshold straight line when x = 1 is given by the following equation.
y1 = μy−σy × ky Expression (13)
Here, k is a constant determined separately, for example, 12α.

上記の式(12),(13)によって、係数A,Bを以下の式で求めることができる。
A=(x1−1)/(y1−1)
B=x1+A
By the above equations (12) and (13), the coefficients A and B can be obtained by the following equations.
A = (x1-1) / (y1-1)
B = x1 + A

次に、上記で求めた係数Aを用いて、同様に、式(11)のx+Ay+Cz≧Dにおける係数C,Dについて求める。
ここで、x+Ay=wとし、w+Cz≧Dとした場合、テンプレート生成後に投入され、正規メダルと判断された500枚のメダルについて、zの平均「μz」とし、zの標準偏差を「σz」とするとき、w=1のときの閾値直線上のzの値は、以下の式で与えられる。
z1=μz−σz×kz ・・・式(14)
Next, using the coefficient A obtained above, coefficients C and D in x + Ay + Cz ≧ D of Expression (11) are similarly obtained.
Here, when x + Ay = w and w + Cz ≧ D, the average of z is “μz” and the standard deviation of z is “σz” for 500 medals which are inserted after generating the template and are determined to be regular medals. Then, the value of z on the threshold straight line when w = 1 is given by the following equation.
z1 = μz−σz × kz Expression (14)

また、z=1のときの閾値直線上のwの値は、以下の式で与えられる。
w1=μw−σw×kw ・・・式(15)
なお、μw=μx+Aμy、σw=σx+Aσyとする。
The value of w on the threshold straight line when z = 1 is given by the following equation.
w1 = μw−σw × kw Expression (15)
Note that μw = μx + Aμy and σw = σx + Aσy.

上記式(14),(15)によって、C,Dを以下の式で求めることができる。
C=(w1−1)/(z1−1) ・・・式(16)
D=w1+C ・・・式(17)
C and D can be obtained by the following equations from the above equations (14) and (15).
C = (w1-1) / (z1-1) Expression (16)
D = w1 + C (17)

ここで、図44において、x1,y1,z1について3次元のグラフで示す。図44において、x1,y1,z1をつなぐ太線が、閾値平面の輪郭を示している。図44において、閾値平面と、破線で囲まれた空間の内で、原点から遠い部分(図44の手前の部分、網掛けで表示)に、本テンプレートとの比較の結果としての評価値x,y,zが示す点が含まれる場合(すなわち、3次元判定処理で判定結果がOKの場合)、投入されたメダルは、正規メダルと判定される。すなわち、本実施形態において、上記式(12)〜(14)で算出されたx1,y1,z1が形成する閾値平面と判定基準座標(1,1,1)との間に、評価値x,y,zが内包されるか否かを判定する判定方式を、3次元判定処理と称している。なお、図44では、便宜上、座標(0,0,0)〜(−1,−1,−1)の空間の図示を省略している。   Here, in FIG. 44, x1, y1, and z1 are shown in a three-dimensional graph. In FIG. 44, a thick line connecting x1, y1, and z1 indicates the contour of the threshold plane. In FIG. 44, the evaluation value x, as a result of comparison with the present template, is set in a portion far from the origin (a portion in front of FIG. 44, indicated by hatching) in a space surrounded by a threshold plane and a broken line. When the points indicated by y and z are included (that is, when the determination result is OK in the three-dimensional determination process), the inserted medal is determined to be a regular medal. That is, in the present embodiment, the evaluation values x and x are set between the threshold plane formed by x1, y1, and z1 calculated by the above equations (12) to (14) and the determination reference coordinates (1, 1, 1). A determination method for determining whether or not y and z are included is called three-dimensional determination processing. In FIG. 44, the space of coordinates (0, 0, 0) to (-1, -1, -1) is omitted for convenience.

次に、画像認識アクセラレータ回路249は、フラッシュメモリ244の記憶されている係数A,C,Dを算出した係数A,C,Dに更新する(S46)。そして、画像認識アクセラレータ回路249は、係数更新処理を終了する。   Next, the image recognition accelerator circuit 249 updates the coefficients A, C, and D stored in the flash memory 244 to the calculated coefficients A, C, and D (S46). Then, the image recognition accelerator circuit 249 ends the coefficient update processing.

[カバー開放検出処理]
次に、メダルカウント回路246が行うカバー開放検出処理について説明する。
上述したように、メダルセレクタ201には、メダルセレクタ201のパチスロ1の前後方向の後側を覆うカバー部材240が固定されている(図7参照)。このカバー部材240がメダルセレクタ201におけるパチスロ1の前後方向の後側を露出する開放状態に設定されていると、同後側を覆う閉鎖状態に設定されている場合に比べて、メダルレール210上に、余計な光が当たってしまう。これによって、メダルセレクタ201が行う刻印判定処理に悪影響が及び、判定精度が落ちてしまうことが考えられる。また、通常の運用では、カバー部材240が開放状態となる原因としては、メダルセレクタ201のメンテナンス時のカバー部材240の取付不備、又は、メダルセレクタ201へのゴト行為(例えば、クレジット満杯ゴト等)が考えられる。
[Cover open detection process]
Next, a cover opening detection process performed by the medal counting circuit 246 will be described.
As described above, the cover member 240 that covers the rear side in the front-rear direction of the pachislot 1 of the medal selector 201 is fixed to the medal selector 201 (see FIG. 7). When the cover member 240 is set in an open state in which the rear side of the pachislot 1 in the medal selector 201 in the front-rear direction is exposed, compared to a case in which the cover member 240 is set in a closed state covering the rear side, Then, extra light is hit. This may adversely affect the engraving determination process performed by the medal selector 201 and reduce the determination accuracy. Further, in normal operation, the cause of the cover member 240 being opened may be an improper attachment of the cover member 240 during maintenance of the medal selector 201 or a goto action on the medal selector 201 (for example, a credit full goto). Can be considered.

そこで、本実施形態のメダルカウント回路246は、カバー部材240が開放状態になっていることを検出するカバー開放検出処理を行う。ここで、グレースケール画像において、メダルの通過に係る輝度の変化と、メダルレール210上に、余計な光が当たっている場合の輝度の変化とは類似している場合がある。このため、本処理において、メダルカウント回路246は、複数の判定領域、例えば判定領域A1〜A4,B1〜B4,C1,C2,D1〜D4(図23参照)において、判定結果が「ON」の状態が所定時間(例えば、10秒)続いた場合に、カバー部材240が開放状態になっていると判定する。そして、判定結果を、ホストコントローラ241に出力する。ホストコントローラ241は、判定結果を検知すると、副制御回路101に対し、メダルセレクタエラーコマンドを送信する。なお、このメダルセレクタエラーコマンドのDAT0には「カバー開放エラー」を示す「2」が設定されている。なお、メダルセレクタエラーコマンドの詳細については後述する。   Therefore, the medal counting circuit 246 of the present embodiment performs a cover opening detection process for detecting that the cover member 240 is in the open state. Here, in the grayscale image, the change in luminance related to the passage of medals may be similar to the change in luminance when extra light is shining on the medal rail 210 in some cases. Therefore, in this processing, the medal count circuit 246 determines that the determination result is “ON” in a plurality of determination regions, for example, the determination regions A1 to A4, B1 to B4, C1, C2, and D1 to D4 (see FIG. 23). When the state continues for a predetermined time (for example, 10 seconds), it is determined that the cover member 240 is in the open state. Then, the determination result is output to the host controller 241. Upon detecting the determination result, the host controller 241 transmits a medal selector error command to the sub control circuit 101. Note that "2" indicating "cover open error" is set in DAT0 of the medal selector error command. The details of the medal selector error command will be described later.

副制御回路101は、DAT0には「カバー開放エラー」を示す「2」が設定されているメダルセレクタエラーコマンド、カバー開放エラー報知処理を実行する。ここで、カバー開放エラー報知処理とは、後述のC1エラー画面を、液晶表示装置11に表示する処理である。これによって、この報知画面を見る者、例えば遊技ホールの従業員は、カバー部材240が開放状態であることを把握できる。   The sub-control circuit 101 executes a medal selector error command in which “2” indicating “cover open error” is set in DAT0, and a cover open error notification process. Here, the cover opening error notification process is a process of displaying a C1 error screen described later on the liquid crystal display device 11. Thereby, a person who sees the notification screen, for example, an employee of the game hall, can grasp that the cover member 240 is in the open state.

なお、本実施形態では、カバー開放検出処理において、判定領域A1〜A4,B1〜B4,C1,C2,D1〜D4(図23参照)について、判定結果が「ON」の状態が所定時間続いた場合に、カバー開放と判定する態様を説明した。しかし、カバー開放検出処理において着目する複数の判定領域は、適宜設定可能である。ただし、メダル詰まりの場合に、誤ってカバー開放と判定しないように、一枚のメダルが問題なく通過するときに、同時に「ON」状態にならない領域(例えば、A2とD4)が含まれていることが望ましい。   In the present embodiment, in the cover opening detection process, the determination result of the determination areas A1 to A4, B1 to B4, C1, C2, and D1 to D4 (see FIG. 23) is “ON” for a predetermined time. In this case, the mode in which it is determined that the cover is opened has been described. However, a plurality of determination regions of interest in the cover opening detection process can be set as appropriate. However, in order to prevent the cover from being erroneously determined to be open in the case of a medal jam, there are areas (for example, A2 and D4) that are not simultaneously turned on when one medal passes without any problem. It is desirable.

<メダルセレクタと副制御回路間で送受信されるコマンド>
ここで、図45を参照し、メダルセレクタと副制御回路間で送受信されるコマンドについて、説明する。図45は、メダルセレクタと副制御回路間で送受信されるコマンドの一覧表である。
<Command transmitted and received between medal selector and sub-control circuit>
Here, commands transmitted and received between the medal selector and the sub control circuit will be described with reference to FIG. FIG. 45 is a list of commands transmitted and received between the medal selector and the sub control circuit.

[メダルセレクタが送信するコマンド]
まず、メダルセレクタ201が副制御回路101へ送信するコマンドについて説明する。図45に示すように、当該コマンドには、起動完了コマンド、判定完了コマンド、メダルセレクタエラーコマンド、メダルセレクタ無操作コマンド、ACKコマンド、NAKコマンドがある。いずれのコマンドも、2バイトの送信カウンタ(CNT)と、DAT0〜DAT6からなるパラメータを含んで構成されている。なお、本実施形態において、DAT0〜DAT6は、それぞれ1バイト(ビット0〜ビット7)のデータである。また、各種コマンドのデータ長は、DAT0〜DAT6(7バイト)に、コマンド種類に応じた1バイトのコマンドIDと、送信カウンタ(2バイト)を加えた10バイトに設定されているが、このデータ長は適宜設定可能である。
なお、本実施形態において、ACKコマンド及びNAKコマンドを副制御回路101に送信するメダルセレクタ201のホストコントローラ241は、正常データ送信手段及び再送要求データ送信手段を構成する。
[Command sent by the medal selector]
First, a command transmitted from the medal selector 201 to the sub control circuit 101 will be described. As shown in FIG. 45, the commands include a start completion command, a determination completion command, a medal selector error command, a medal selector non-operation command, an ACK command, and a NAK command. Each command is configured to include a 2-byte transmission counter (CNT) and parameters including DAT0 to DAT6. In the present embodiment, DAT0 to DAT6 are each 1-byte (bit 0 to bit 7) data. The data length of each command is set to 10 bytes obtained by adding DAT0 to DAT6 (7 bytes), a 1-byte command ID corresponding to the command type, and a transmission counter (2 bytes). The length can be set as appropriate.
In the present embodiment, the host controller 241 of the medal selector 201 that transmits the ACK command and the NAK command to the sub control circuit 101 constitutes a normal data transmission unit and a retransmission request data transmission unit.

メダルセレクタ201が送信するコマンドにおける送信カウンタ(CNT)の初期値は、メダルセレクタ201の起動回数が設定されている。この送信カウンタの値は、メダルセレクタ201が副制御回路101にコマンドを送信する度に1が加算される。   The initial value of the transmission counter (CNT) in the command transmitted by the medal selector 201 is set to the number of activations of the medal selector 201. Each time the medal selector 201 transmits a command to the sub-control circuit 101, 1 is added to the value of this transmission counter.

[起動完了コマンド]
起動完了コマンドは、メダルセレクタ201に電源が投入され、起動処理が終了した後に送信される。起動完了コマンドのDAT0のビット0の値は、初期化が行われた否かを示す。「0」は、「初期化なし」を示し、「1」は「初期化あり」を示す。ここで、メダルセレクタ201の制御LSI234は、通電中に初期化が行われると、フラッシュメモリ244の起動用初期化フラグ格納領域の値に「1」を設定する。そして、制御LSI234は、電源が投入され、起動完了コマンドを送信する際に、フラッシュメモリ244の起動用初期化フラグ格納領域を参照し、格納されている値に応じて、起動完了コマンドのDAT0のビット0の値を設定する。起動完了コマンドのDAT0のビット0の値が「1」の場合、すなわち起動時の起動用初期化フラグ格納領域の値に「1」が設定されている場合、メダルセレクタ201が副制御回路101から起動完了コマンドに対するACKコマンドを受信すると、制御LSI234は、起動用初期化フラグ格納領域の値に「0」を設定する。
[Start complete command]
The activation completion command is transmitted after the power is turned on to the medal selector 201 and the activation processing is completed. The value of bit 0 of DAT0 of the activation completion command indicates whether or not initialization has been performed. “0” indicates “no initialization”, and “1” indicates “initialization”. Here, when initialization is performed during energization, the control LSI 234 of the medal selector 201 sets “1” to the value of the startup initialization flag storage area of the flash memory 244. When the power is turned on and the start completion command is transmitted, the control LSI 234 refers to the start-up initialization flag storage area of the flash memory 244, and according to the stored value, sets the start completion command DAT0. Set the value of bit 0. When the value of bit 0 of DAT0 of the start completion command is “1”, that is, when the value of the start-up initialization flag storage area at start-up is set to “1”, the medal selector 201 When receiving the ACK command corresponding to the activation completion command, the control LSI 234 sets “0” to the value of the activation initialization flag storage area.

また、起動完了コマンドのDAT0のビット1の値は、コマンド送信時に色判定が有効か無効かを示す。値「0」は、「色判定無効」を示し、値「1」は「色判定有効」を示す。「色判定有効」となる場合は、コマンド送信時に色テンプレートが作成済みであり、起動時の色スイッチがON状態の場合である。それ以外の場合は「色判定無効」となる。また、起動完了コマンドのDAT0のビット2の値は、コマンド送信時に刻印判定が有効か無効かを示す。値「0」は、「刻印判定無効」を示し、値「1」は「刻印判定有効」を示す。「刻印判定有効」となる場合は、コマンド送信時に刻印テンプレートが作成済みであり、起動時の刻印スイッチがON状態の場合である。それ以外の場合は「刻印判定無効」となる。   The value of bit 1 of DAT0 of the activation completion command indicates whether color determination is valid or invalid at the time of command transmission. The value “0” indicates “color judgment invalid”, and the value “1” indicates “color judgment valid”. The case where “color judgment is valid” is a case where a color template has been created at the time of command transmission and the color switch at the time of startup is in an ON state. In other cases, “color judgment is invalid”. The value of bit 2 of DAT0 of the activation completion command indicates whether the engraving determination is valid or invalid at the time of command transmission. A value “0” indicates “marking judgment invalid”, and a value “1” indicates “marking judgment valid”. The case where “engraving judgment is valid” is a case where the engraving template has been created at the time of command transmission and the engraving switch at the time of startup is in the ON state. In other cases, "marking judgment is invalid".

起動完了コマンドのDAT1は、コマンド送信時の各種スイッチのON/OFF状態を示す。ビット0の値は初期化スイッチのON/OFF状態を示し、ビット1の値は色スイッチのON/OFF状態を示し、ビット2の値は刻印スイッチのON/OFF状態を示す。いずれのビットにおいても、「0」は、「OFF状態」を示し、「1」は「ON状態」を示す。   DAT1 of the startup completion command indicates the ON / OFF state of various switches at the time of command transmission. The value of bit 0 indicates the ON / OFF state of the initialization switch, the value of bit 1 indicates the ON / OFF state of the color switch, and the value of bit 2 indicates the ON / OFF state of the engraving switch. In any of the bits, “0” indicates the “OFF state” and “1” indicates the “ON state”.

[判定完了コマンド]
判定完了コマンドは、送信カウンタ(CNT)と、円形検出の判定結果、色判定の判定結果及び刻印判定の判定結果と、を示すパラメータを含んで構成される。判定完了コマンドのDAT0の値は円形検出の判定結果を示し、DAT1の値は色判定の判定結果を示し、DAT2の値は刻印判定の判定結果を示す。DAT0〜2のいずれにおいても、「1」は、「NG」(すなわち「判定NG」)を示し、「0」は「OK」(すなわち「判定OK」)を示す。
[Judgment completion command]
The determination completion command includes a transmission counter (CNT) and parameters indicating a circular detection determination result, a color determination determination result, and a marking determination determination result. The value of DAT0 of the determination completion command indicates the determination result of circular detection, the value of DAT1 indicates the determination result of color determination, and the value of DAT2 indicates the determination result of engraving determination. In any of the DATs 0 to 2, “1” indicates “NG” (ie, “judgment NG”), and “0” indicates “OK” (ie, “judgment OK”).

[メダルセレクタエラーコマンド]
メダルセレクタエラーコマンドは、メダルセレクタ201が各種エラーを検知したときに送信される。このコマンドは、送信カウンタ(CNT)と、コマンド送信時に発生中のエラーの種類を示すパラメータと、を含んで構成される。メダルセレクタエラーコマンドのDAT0の値は0〜6に設定される。「0」は「エラーなし」を示し、「1」は「異物検出エラー」を示し、「2」は「カバー開放エラー」を示す。また、「3」は「掃除エラー」を示し、「4」は「色テンプレート生成エラー」を示し、「5」は「刻印テンプレート生成エラー」を示し、そして、「6」は、「CMOSハードエラー」を示す。なお、メダルセレクタ201の制御LSI234は、各種エラーを検知したとき、SRAM243に設けられたエラー記憶領域(初期値「0」)にエラーの内容(1〜6)を記憶する。SRAM243に記憶されたエラーの内容は、メダルセレクタ201が副制御回路101から後述するエラー解除コマンドを受信したとき削除される(初期値「0」が記憶される)。
[Medal selector error command]
The medal selector error command is transmitted when the medal selector 201 detects various errors. This command includes a transmission counter (CNT) and a parameter indicating the type of error occurring at the time of command transmission. The value of DAT0 of the medal selector error command is set to 0-6. “0” indicates “no error”, “1” indicates “foreign matter detection error”, and “2” indicates “cover open error”. “3” indicates “cleaning error”, “4” indicates “color template generation error”, “5” indicates “engraved template generation error”, and “6” indicates “CMOS hard error”. Is shown. When detecting various errors, the control LSI 234 of the medal selector 201 stores the contents (1 to 6) of the error in an error storage area (initial value “0”) provided in the SRAM 243. The content of the error stored in the SRAM 243 is deleted when the medal selector 201 receives an error release command described later from the sub-control circuit 101 (the initial value “0” is stored).

[メダルセレクタ無操作コマンド]
メダルセレクタ無操作コマンドは、メダルセレクタ201から周期的に副制御回路101に送信される。メダルセレクタ無操作コマンドには、送信カウンタ(CNT)が含まれる。
また、メダルセレクタ無操作コマンドのDAT0のビット0の値は、初期化が行われた否かを示す。「0」は、「初期化なし」を示し、「1」は「初期化あり」を示す。ここで、メダルセレクタ201の制御LSI234は、通電中に初期化が行われると、SRAM243の無操作用初期化フラグ格納領域の値に「1」を設定する。そして、制御LSI234は、メダルセレクタ無操作コマンドを送信する際に、SRAM243の無操作用初期化フラグ格納領域を参照し、格納されている値に応じて、メダルセレクタ無操作コマンドのDAT0のビット0の値を設定する。メダルセレクタ無操作コマンドのDAT0のビット0の値が「1」の場合、すなわち無操作用初期化フラグ格納領域の値に「1」が設定されている場合、メダルセレクタ201が副制御回路101から当該メダルセレクタ無操作コマンドに対するACKコマンドを受信すると、制御LSI234は、無操作用初期化フラグ格納領域の値に「0」を設定する。
[Medal selector no-operation command]
The medal selector no-operation command is transmitted from the medal selector 201 to the sub-control circuit 101 periodically. The medal selector no-operation command includes a transmission counter (CNT).
The value of bit 0 of DAT0 of the medal selector no-operation command indicates whether or not initialization has been performed. “0” indicates “no initialization”, and “1” indicates “initialization”. Here, when initialization is performed during energization, the control LSI 234 of the medal selector 201 sets the value of the no-operation initialization flag storage area of the SRAM 243 to “1”. When transmitting the medal selector no-operation command, the control LSI 234 refers to the no-operation initialization flag storage area of the SRAM 243, and according to the stored value, sets the bit 0 of the DAT0 of the medal selector no-operation command. Set the value of. When the value of bit 0 of DAT0 of the medal selector no-operation command is “1”, that is, when the value of the no-operation initialization flag storage area is set to “1”, the medal selector 201 When receiving the ACK command corresponding to the medal selector no-operation command, the control LSI 234 sets “0” to the value of the no-operation initialization flag storage area.

その他のメダルセレクタ無操作コマンドのDAT0及びDAT1については、起動完了コマンドのDAT0及びDAT1と同様であるため、ここでの説明は省略する。また、メダルセレクタ無操作コマンドのDAT2には、上述したSRAM243のエラー記憶領域の内容(0〜6のいずれかの値)がセットされる。内容は、メダルセレクタエラーコマンドのDAT0と同様である。   The other medal selector non-operation commands DAT0 and DAT1 are the same as the start complete commands DAT0 and DAT1, and therefore description thereof is omitted here. The content (any value from 0 to 6) of the error storage area of the SRAM 243 is set in DAT2 of the medal selector non-operation command. The contents are the same as the medal selector error command DAT0.

メダルセレクタ無操作コマンドのDAT3、DAT4の値は、メダルセレクタ201の起動回数を示す。この起動回数は、フラッシュメモリ244に記憶されており、メダルセレクタ201が起動する毎に、起動回数に1が加算される。具体的には、メダルセレクタ201は、図示しない制御電源管理部を有し、制御電源管理部は、メダルセレクタ201への電源電圧の供給(電源の投入)が開始され、予め設定された電圧値を上回った場合に、制御LSI234にリセット信号を出力する。制御LSI234は、リセット信号が入力されたことに基づいて、起動回数を1加算する。メダルセレクタ201(の制御LSI234)は、メダルセレクタ無操作コマンド送信時に、フラッシュメモリ244の起動回数を参照し、DAT3、DAT4の値を設定する。なお、起動回数は、上述した初期化スイッチ206dの操作により、制御LSI234が行う、初期化処理で初期値「0」に初期化される。   The values of DAT3 and DAT4 of the medal selector no-operation command indicate the number of times the medal selector 201 has been activated. This activation count is stored in the flash memory 244, and every time the medal selector 201 is activated, 1 is added to the activation count. More specifically, the medal selector 201 has a control power management unit (not shown). The control power management unit starts supplying power (turning on the power) to the medal selector 201 and sets a predetermined voltage value. , A reset signal is output to the control LSI 234. The control LSI 234 adds 1 to the number of startups based on the input of the reset signal. The medal selector 201 (the control LSI 234 thereof) sets the values of DAT3 and DAT4 by referring to the number of times of activation of the flash memory 244 when transmitting the medal selector non-operation command. The number of activations is initialized to an initial value “0” by an initialization process performed by the control LSI 234 by operating the initialization switch 206d described above.

[ACKコマンド、NAKコマンド]
ACKコマンドは、メダルセレクタ201が副制御回路101から送信されたコマンドを正常に受信できたときに送信される。NAKコマンドは、メダルセレクタ201が副制御回路101から送信されたコマンドを正常に受信できなかったときに送信される。ACKコマンド及びNAKコマンドには、送信カウンタ(CNT)が含まれている。また、ACKコマンド及びNAKコマンドのDAT0、DAT1の値は、副制御回路101から送信されたコマンドに含まれている送信カウンタの値を示す。
[ACK command, NAK command]
The ACK command is transmitted when the medal selector 201 has successfully received the command transmitted from the sub control circuit 101. The NAK command is transmitted when the medal selector 201 cannot normally receive the command transmitted from the sub control circuit 101. The ACK command and the NAK command include a transmission counter (CNT). Further, the values of DAT0 and DAT1 of the ACK command and NAK command indicate the values of the transmission counter included in the command transmitted from the sub-control circuit 101.

なお、DAT6の値は、コマンドを受信する側(すなわち副制御回路101)が受信データの整合性判定の際に用いるサム値(チェックサム)となっている。このサム値は、コマンドID、送信カウンタ(CNT)及びDAT0〜DAT5の値から算出される。   Note that the value of DAT6 is a sum value (check sum) used by the command receiving side (that is, the sub control circuit 101) when determining the consistency of the received data. This sum value is calculated from the command ID, the transmission counter (CNT), and the values of DAT0 to DAT5.

[副制御回路が送信するコマンド]
次に、副制御回路101がメダルセレクタ201へ送信するコマンドについて説明する。図45に示すように、当該コマンドには、エラー解除コマンド、投入状態コマンド、ACKコマンド、NAKコマンドがある。いずれのコマンドも、2バイトの送信カウンタ(CNT)と、DAT0〜DAT6からなるパラメータを含んで構成されている。本実施形態において、DAT0〜DAT6は、それぞれ1バイト(ビット0〜ビット7)のデータである。また、各種コマンドのデータ長は、DAT0〜DAT6(7バイト)に、コマンド種類に応じた1バイトのコマンドIDと、送信カウンタ(2バイト)を加えた10バイトに設定されているが、このデータ長は適宜設定可能である。
[Command sent by sub-control circuit]
Next, a command transmitted from the sub control circuit 101 to the medal selector 201 will be described. As shown in FIG. 45, the commands include an error release command, an input state command, an ACK command, and a NAK command. Each command is configured to include a 2-byte transmission counter (CNT) and parameters including DAT0 to DAT6. In the present embodiment, DAT0 to DAT6 are 1-byte (bit 0 to bit 7) data, respectively. The data length of each command is set to 10 bytes obtained by adding DAT0 to DAT6 (7 bytes), a 1-byte command ID corresponding to the command type, and a transmission counter (2 bytes). The length can be set as appropriate.

副制御回路101が送信するコマンドにおける送信カウンタ(CNT)の初期値は、副制御回路101の起動後、最初にコマンドを送信する際に取得する乱数が設定される。なお、この乱数を発生させるために、この乱数を発生させる専用の乱数発生処理(ソフト乱数)、又は、デバイスを設けてもよいし、演出の態様を決定する際に用いる乱数を発生させる乱数発生処理、又は、デバイスを利用してもよい。   The initial value of the transmission counter (CNT) in the command transmitted by the sub-control circuit 101 is set to a random number acquired when the command is transmitted for the first time after the activation of the sub-control circuit 101. In order to generate the random number, a dedicated random number generation process (soft random number) for generating the random number, or a device may be provided, or a random number generation for generating a random number used in determining an effect mode may be provided. Processing or a device may be used.

[エラー解除コマンド]
エラー解除コマンドは、後述するメダルセレクタコマンド送信処理(図68参照)において、メダルセレクタ201に発生したエラーの解除条件が成立したときに送信される。ただし、エラーの解除条件の成立とは、メダルセレクタ201に発生したエラーが実際に解除されたか否かではなく、エラー解除コマンドを送信するための条件が成立したか否かである。
[Error clear command]
The error cancel command is transmitted when the condition for canceling the error generated in the medal selector 201 is satisfied in a medal selector command transmission process (see FIG. 68) described later. However, the satisfaction of the error cancellation condition does not mean whether the error occurred in the medal selector 201 has actually been canceled, but whether the condition for transmitting the error cancellation command has been met.

[投入状態コマンド]
投入状態コマンドは、所定の周期又は後述するメダルセレクタコマンド送信処理(図68参照)において送信される。投入状態コマンドのDAT0の値は、パチスロ1の状態が、メダルをホッパー装置51へガイドするように制御されている状態(以下の説明において、「メダル受付可」と称する場合がある)か、メダルをキャンセルシュータ206へ排出するように制御されている状態(以下の説明において、「メダル受付不可」と称する場合がある)か、を示す。例えば、このDAT0の値が「1」の場合は、メダル受付可を意味する「受付可」を示し、「0」の場合は、メダル受付不可を意味する「受付不可」を示す。なお、このDAT0の値の設定態様については、後述する。
[Input status command]
The insertion state command is transmitted in a predetermined cycle or in a medal selector command transmission process described later (see FIG. 68). The value of DAT0 of the insertion state command indicates whether the state of the pachislot 1 is controlled so as to guide the medals to the hopper device 51 (in the following description, the state may be referred to as "medal acceptable") or the medal. Is controlled to be discharged to the cancel shooter 206 (in the following description, it may be referred to as “medal cannot be accepted”). For example, when the value of DAT0 is "1", it indicates "acceptable", which means that the medal can be accepted, and when "0", it indicates "impossible", which means that the medal cannot be accepted. The setting of the value of DAT0 will be described later.

[ACKコマンド、NAKコマンド]
ACKコマンドは、副制御回路101がメダルセレクタ201から送信されたコマンドを正常に受信できたときに送信される。NAKコマンドは、副制御回路101がメダルセレクタ201から送信されたコマンドを正常に受信できなかったときに送信される。ACKコマンド及びNAKコマンドには、送信カウンタが含まれている。また、ACKコマンド及びNAKコマンドのDAT0、DAT1の値は、メダルセレクタ201から送信されたコマンドに含まれている送信カウンタの値を示す。
[ACK command, NAK command]
The ACK command is transmitted when the sub-control circuit 101 has successfully received the command transmitted from the medal selector 201. The NAK command is transmitted when the sub-control circuit 101 cannot normally receive the command transmitted from the medal selector 201. The ACK command and the NAK command include a transmission counter. The values of DAT0 and DAT1 of the ACK command and the NAK command indicate the values of the transmission counter included in the command transmitted from the medal selector 201.

また、ACKコマンド及びNAKコマンドのDAT2の値は、投入状態コマンドのDAT0と同様に、パチスロ1の状態が、メダル受付可か、メダル受付不可か、を示す。例えば、DAT2の値が「1」の場合は、メダル受付可を意味する「受付可」を示し、「0」の場合は、メダル受付不可を意味する「受付不可」を示す。なお、このDAT2の値は、副制御回路101が、主制御回路91から受信した、直近の無操作コマンドに含まれているパラメータに基づいて、設定される。このパラメータは、現在のメダルソレノイド208の状態をON状態に設定しているか、又は、OFF状態に設定しているかを示している。このパラメータがON状態に設定していることを示している場合は、DAT2の値は「1」が設定され、OFF状態に設定していることを示している場合は、DAT2の値は「0」が設定される。   Further, the value of DAT2 of the ACK command and NAK command indicates whether the state of the pachislot 1 is medal acceptable or medal unacceptable, similarly to the insertion state command DAT0. For example, when the value of DAT2 is "1", it indicates "acceptable", which means that medals can be accepted, and when "0", it indicates "acceptable", which means that medals cannot be accepted. Note that the value of DAT2 is set based on the parameters included in the latest no-operation command received by the sub-control circuit 101 from the main control circuit 91. This parameter indicates whether the current state of the medal solenoid 208 is set to the ON state or the OFF state. If this parameter indicates that it is set to the ON state, the value of DAT2 is set to “1”, and if it indicates that it is set to the OFF state, the value of DAT2 is set to “0”. Is set.

なお、DAT6の値は、コマンドを受信する側(すなわちメダルセレクタ201)が受信データの整合性判定の際に用いるサム値(チェックサム)となっている。このサム値は、コマンドID、送信カウンタ(CNT)及びDAT0〜DAT5の値を全て加算(SUM)することで算出される。また、これに代えて、コマンドID、送信カウンタ(CNT)及びDAT0〜DAT5の値を全て排他的論理和(BCC)することでサム値としてもよい。   The value of DAT6 is a sum value (check sum) used by the command receiving side (that is, the medal selector 201) when determining the consistency of the received data. This sum value is calculated by adding (SUM) all of the command ID, the transmission counter (CNT), and the values of DAT0 to DAT5. Alternatively, a sum value may be obtained by exclusive-ORing (BCC) all values of the command ID, the transmission counter (CNT), and DAT0 to DAT5.

<メダルセレクタと副制御回路間のコマンド送受信シーケンス>
次に、図46を参照し、メダルセレクタと副制御回路間のコマンド送受信シーケンスの一例について説明する。図46は、メダルセレクタと副制御回路間のコマンド送受信シーケンスの一例を説明するための図である。
<Command transmission / reception sequence between medal selector and sub-control circuit>
Next, an example of a command transmission / reception sequence between the medal selector and the sub control circuit will be described with reference to FIG. FIG. 46 is a diagram for describing an example of a command transmission / reception sequence between the medal selector and the sub control circuit.

パチスロ1に電源が投入され、メダルセレクタ201及び副制御回路101が起動すると、メダルセレクタ201は、副制御回路101に起動完了コマンドを送信する。このとき、フラッシュメモリ244に記憶されている起動回数が「10」のとき、起動完了コマンドに含まれる送信カウンタ(CNT)の値は「10」となる。   When the power is turned on to the pachislot 1 and the medal selector 201 and the sub-control circuit 101 are activated, the medal selector 201 transmits an activation completion command to the sub-control circuit 101. At this time, when the number of activations stored in the flash memory 244 is “10”, the value of the transmission counter (CNT) included in the activation completion command is “10”.

続いて、起動完了コマンドを正常に受信した副制御回路101は、メダルセレクタ201にACKコマンドを送信する。このACKコマンドに含まれる送信カウンタの値は、送信時に取得した乱数の値、例えば「256」となる。また、このACKコマンドのDAT0及びDAT1の値は、受信した起動完了コマンドに含まれていた送信カウンタの値である「10」となる。   Subsequently, the sub-control circuit 101 that has normally received the activation completion command transmits an ACK command to the medal selector 201. The value of the transmission counter included in this ACK command is the value of the random number acquired at the time of transmission, for example, “256”. Further, the values of DAT0 and DAT1 of the ACK command are “10” which is the value of the transmission counter included in the received activation completion command.

続いて、図46に示す例では、メダルセレクタ201は、副制御回路101にメダルセレクタ無操作コマンドを送信する。このメダルセレクタ無操作コマンドに含まれる送信カウンタの値は、初期値「10」に1を加算した「11」となる。   Subsequently, in the example illustrated in FIG. 46, the medal selector 201 transmits a medal selector non-operation command to the sub control circuit 101. The value of the transmission counter included in the medal selector no-operation command is “11” which is obtained by adding 1 to the initial value “10”.

続いて、メダルセレクタ無操作コマンドを正常に受信した副制御回路101は、メダルセレクタ201にACKコマンドを送信する。このACKコマンドに含まれる送信カウンタの値は、初期値「256」に1を加算した「257」となる。また、このACKコマンドのDAT0及びDAT1の値は、受信したメダルセレクタ無操作コマンドに含まれていた送信カウンタの値である「11」となる。   Subsequently, the sub-control circuit 101 that has normally received the medal selector non-operation command transmits an ACK command to the medal selector 201. The value of the transmission counter included in this ACK command is “257” obtained by adding 1 to the initial value “256”. The values of DAT0 and DAT1 of the ACK command are “11” which is the value of the transmission counter included in the received medal selector non-operation command.

続いて、図46に示す例では、副制御回路101は、投入状態コマンドをメダルセレクタ201に送信する。この投入状態コマンドに含まれる送信カウンタの値は「257」に1を加算した「258」となる。ここで、何らかの原因でメダルセレクタがリブート(再起動)し、再起動後、投入状態コマンドに対するACKコマンドを送信する場合、このACKコマンドに含まれる送信カウンタは、再び初期値となる。この場合、起動回数は「11」となるので、ACKコマンドに含まれる送信カウンタは「11」となる。   Subsequently, in the example illustrated in FIG. 46, the sub control circuit 101 transmits the insertion state command to the medal selector 201. The value of the transmission counter included in the input state command is “258” obtained by adding 1 to “257”. Here, when the medal selector reboots (restarts) for some reason and transmits an ACK command corresponding to the insertion state command after the restart, the transmission counter included in this ACK command becomes the initial value again. In this case, since the number of times of activation is “11”, the transmission counter included in the ACK command is “11”.

本実施形態において、副制御回路101は、メダルセレクタ201からACKコマンドを受信すると、受信したACKコマンドに含まれている送信カウンタの値が、前回、メダルセレクタ201から受信したコマンドに含まれていた送信カウンタの値に「1」を加算した値と等しいか否かを判定する。そして、等しくないと判定する場合は、サブRAM103に設けられたエラー情報履歴領域に、エラー内容として「CMOS CNT」(以下、「ACKカウントエラー」と称する場合がある)、発生日時として現在の日付と時刻を記憶させる。   In the present embodiment, when the sub control circuit 101 receives the ACK command from the medal selector 201, the value of the transmission counter included in the received ACK command is included in the command previously received from the medal selector 201. It is determined whether the value of the transmission counter is equal to a value obtained by adding “1”. If it is determined that they are not equal to each other, the error information history area provided in the sub RAM 103 stores "CMOS CNT" (hereinafter sometimes referred to as "ACK count error") as the error content and the current date as the date and time of occurrence. And the time.

図46に示す例では、受信したACKコマンドに含まれている送信カウンタの値は「11」である。また、前回、メダルセレクタ201から受信したコマンドであるメダルセレクタ無操作コマンドに含まれていた送信カウンタの値「11」に「1」を加算した値は「12」である。したがって、サブCPU102は、これらの値が等しくないと判定する。このため、サブCPU102は、サブRAM103に設けられたエラー情報履歴領域に、エラー内容として「CMOS CNT」(ACKカウントエラー)、発生日時として現在の日付と時刻を記憶させる。
また、メダルセレクタ201は、500msecの周期で副制御回路101にコマンドを送信する。例えば、図46に示す例では、起動完了コマンドを副制御回路101に送信した500msec後にメダルセレクタ無操作コマンドが副制御回路101に送信される。なお、メダルセレクタ201から副制御回路101にコマンドを送信する周期は適宜設定可能である。
In the example shown in FIG. 46, the value of the transmission counter included in the received ACK command is “11”. The value obtained by adding “1” to the transmission counter value “11” included in the medal selector non-operation command, which is the command received from the medal selector 201 last time, is “12”. Therefore, the sub CPU 102 determines that these values are not equal. For this reason, the sub CPU 102 stores “CMOS CNT” (ACK count error) as the error content and the current date and time as the occurrence date and time in the error information history area provided in the sub RAM 103.
Further, the medal selector 201 transmits a command to the sub-control circuit 101 at a cycle of 500 msec. For example, in the example shown in FIG. 46, a medal selector non-operation command is transmitted to the sub-control circuit 101 500 msec after the activation completion command is transmitted to the sub-control circuit 101. Note that the cycle at which the command is transmitted from the medal selector 201 to the sub-control circuit 101 can be set as appropriate.

<メダルセレクタのデータ受信及び送信処理>
次に、メダルセレクタ201がUART252を介してデータを受信及び送信する際に、制御LSI234のホストコントローラ241が行う処理について、図47〜図51を参照して説明する。図47は、データ受信処理の一例を示すフローチャートである。図48は、データ受信サブ処理1の一例を示すフローチャートである。図49は、データ受信サブ処理2の一例を示すフローチャートである。図50は、データ受信整合性判定処理の一例を示すフローチャートである。図51は、ACK/NAK送信処理の一例を示すフローチャートである。
<Data reception and transmission processing of the medal selector>
Next, processing performed by the host controller 241 of the control LSI 234 when the medal selector 201 receives and transmits data via the UART 252 will be described with reference to FIGS. FIG. 47 is a flowchart illustrating an example of the data reception process. FIG. 48 is a flowchart illustrating an example of the data reception sub-process 1. FIG. 49 is a flowchart illustrating an example of the data reception sub-process 2. FIG. 50 is a flowchart illustrating an example of the data reception consistency determination process. FIG. 51 is a flowchart illustrating an example of the ACK / NAK transmission process.

[データ受信処理]
ホストコントローラ241は、所定の周期(本実施形態では、10msec)で、図47に示すデータ受信処理を実行する。データ受信処理において、ホストコントローラ241は、まずSRAM243に設けられたディレイカウンタの値が0であるか否かを判定する(S311)。ディレイカウンタの値が0であると判定する場合(S311がYES判定の場合)、ホストコントローラ241は、処理を後述のS316に移行する。なお、ディレイカウンタには、後述するデータ受信サブ処理2におけるS343で、ディレイタイム値(本実施形態では、10)がセットされる。
[Data reception processing]
The host controller 241 executes the data reception process shown in FIG. 47 at a predetermined cycle (10 msec in the present embodiment). In the data receiving process, the host controller 241 first determines whether or not the value of the delay counter provided in the SRAM 243 is 0 (S311). When determining that the value of the delay counter is 0 (when S311 is YES), the host controller 241 shifts the processing to S316 described later. In the delay counter, a delay time value (10 in the present embodiment) is set in S343 in the data reception sub-process 2 described later.

S311においてディレイカウンタの値が0でないと判定する場合(S311がNO判定の場合)、ホストコントローラ241は、ディレイカウンタの値を1減算する(S312)。次いで、ディレイカウンタの値が0であるか否かを判定する(S313)。ディレイカウンタの値が0でないと判定する場合(S313がNO判定の場合)、ホストコントローラ241は、データ受信処理を終了する。   When it is determined in S311 that the value of the delay counter is not 0 (NO in S311), the host controller 241 decrements the value of the delay counter by 1 (S312). Next, it is determined whether the value of the delay counter is 0 (S313). When determining that the value of the delay counter is not 0 (NO in S313), the host controller 241 ends the data reception process.

S313においてディレイカウンタの値が0(すなわち、100msec経過した時)であると判定する場合(S311がYES判定の場合)、ホストコントローラ241は、NAKコマンド(図45参照)をUART252のTXデータレジスタ252c(図19参照)に記憶し、副制御回路101に送信する(S314)。次いで、ホストコントローラ241は、UART252のRXデータレジスタ252e(図19参照)に記憶されているデータを破棄(消去)する(S315)。そして、ホストコントローラ241は、データ受信処理を終了する。   If it is determined in S313 that the value of the delay counter is 0 (that is, when 100 msec has elapsed) (if S311 is YES), the host controller 241 sends the NAK command (see FIG. 45) to the TX data register 252c of the UART 252. (See FIG. 19), and transmitted to the sub control circuit 101 (S314). Next, the host controller 241 discards (erases) the data stored in the RX data register 252e (see FIG. 19) of the UART 252 (S315). Then, the host controller 241 ends the data reception processing.

S311においてディレイカウンタの値が0であると判定する場合(S311がYES判定の場合)、ホストコントローラ241は、UART252のRXデータレジスタ252e(図19参照)にデータがあるか(記憶されているか)否かを判定する(S316)。UART252のRXデータレジスタ252eにデータがないと判定する場合(S316がNO判定の場合)、ホストコントローラ241は、データ受信処理を終了する。   If it is determined in S311 that the value of the delay counter is 0 (if S311 is YES), the host controller 241 checks whether there is data in the RX data register 252e of the UART 252 (see FIG. 19). It is determined whether or not it is (S316). When determining that there is no data in the RX data register 252e of the UART 252 (NO in S316), the host controller 241 ends the data reception processing.

S316においてUART252のRXデータレジスタ252eにデータがあると判定する場合(S316がYES判定の場合)、ホストコントローラ241は、UART252のRXデータレジスタ252e(図19参照)に記憶されているデータの数が1パケット以上か否かを判定する(S317)。本実施形態では、1パケットは、上述の各種コマンドのデータ長である10バイトに定められている。   If it is determined in S316 that there is data in the RX data register 252e of the UART 252 (if S316 is YES), the host controller 241 determines that the number of data stored in the RX data register 252e of the UART 252 (refer to FIG. 19). It is determined whether it is one packet or more (S317). In the present embodiment, one packet is set to 10 bytes, which is the data length of the various commands described above.

S317においてRXデータレジスタ252eに記憶されているデータ数が1パケット(10バイト)以上であると判定する場合(S317がYES判定の場合)、ホストコントローラ241は、データ受信サブ処理1を実行する(S318)。データ受信サブ処理1の詳細については、後述する。その後、ホストコントローラ241は、データ受信処理を終了する。   If it is determined in S317 that the number of data stored in the RX data register 252e is one packet (10 bytes) or more (if S317 is YES), the host controller 241 executes the data reception sub-process 1 (S317). S318). Details of the data reception sub-process 1 will be described later. Then, the host controller 241 ends the data reception processing.

S317において受信カウンタは1パケット分以上でないと判定する場合(S317がNO判定の場合)、ホストコントローラ241は、SRAM243に設けられたタイムアウトカウンタの値が0であるか否かを判定する(S319)。   When the reception counter determines that the value is not equal to or more than one packet in S317 (NO in S317), the host controller 241 determines whether the value of the timeout counter provided in the SRAM 243 is 0 (S319). .

S319においてタイムアウトカウンタの値が0であると判定する場合(S319がYES判定の場合)、ホストコントローラ241は、タイムアウトカウンタにタイムアウト値(本実施形態では、5)をセットする(S320)。その後、ホストコントローラ241は、データ受信処理を終了する。   If it is determined in S319 that the value of the timeout counter is 0 (if S319 is YES), the host controller 241 sets the timeout value (5 in this embodiment) to the timeout counter (S320). Then, the host controller 241 ends the data reception processing.

S319においてタイムアウトカウンタの値が0でないと判定する場合(S310がNO判定の場合)、ホストコントローラ241は、データ受信サブ処理2を実行する(S321)。データ受信サブ処理2の詳細については、後述する。その後、ホストコントローラ241は、データ受信処理を終了する。   If it is determined in S319 that the value of the timeout counter is not 0 (NO in S310), the host controller 241 executes the data reception sub-process 2 (S321). Details of the data reception sub-process 2 will be described later. Then, the host controller 241 ends the data reception processing.

[データ受信サブ処理1]
図48に示すように、データ受信サブ処理1において、ホストコントローラ241は、まずRXデータレジスタ252eの前半10バイト分の領域に記憶されているデータをSRAM243に設定された受信バッファ領域に格納する(S331)。なお、格納するデータが記憶されていたRXデータレジスタ252eにおける前半10バイト分の領域は、ホストコントローラ241が、格納するためにデータを読み込んだ時に、クリアされる。
[Data reception sub-process 1]
As shown in FIG. 48, in the data reception sub-process 1, the host controller 241 first stores the data stored in the first 10-byte area of the RX data register 252e in the reception buffer area set in the SRAM 243 ( S331). The first 10-byte area in the RX data register 252e in which the data to be stored is stored is cleared when the host controller 241 reads the data for storage.

次いで、ホストコントローラ241は、SRAM243に設けられたタイムアウトカウンタを0クリア、すなわち値に0をセットする(S332)。
次いで、ホストコントローラ241は、受信したデータの整合性を判定するデータ受信整合性判定処理を実行する(S333)。データ受信整合性判定処理の詳細については後述する。
Next, the host controller 241 clears the timeout counter provided in the SRAM 243 to 0, that is, sets the value to 0 (S332).
Next, the host controller 241 executes a data reception consistency determination process for determining the consistency of the received data (S333). Details of the data reception consistency determination processing will be described later.

次いで、ホストコントローラ241は、判定フラグは異常、且つ、2パケット目ありか否かを判定する(S334)。具体的には、後述するデータ受信整合性判定処理においてSRAM243に記憶された判定フラグが異常を示しているか、また、RXデータレジスタ252eの後半10バイト分の領域に、2パケット目のデータが記憶されているか否かを判定する。   Next, the host controller 241 determines whether the determination flag is abnormal and whether there is a second packet (S334). Specifically, in the data reception consistency determination processing described later, whether the determination flag stored in the SRAM 243 indicates an abnormality, and the data of the second packet is stored in an area corresponding to the latter 10 bytes of the RX data register 252e. It is determined whether or not it has been performed.

S334において判定フラグは異常でない、又は、2パケット目がない(RXデータレジスタ252eの後半10バイト分の領域に10バイトに満たないデータが記憶されていた場合も含む)と判定する場合(S334がNO判定の場合)、ホストコントローラ241は、RXデータレジスタ252eに記憶されているデータを破棄(消去)する(S335)。すなわち、ホストコントローラ241は、RXデータレジスタ252eの後半10バイト分の領域にデータが記憶されていても、そのデータを破棄する。次いで、ホストコントローラ241は、処理をS338に移行する。
なお、RXデータレジスタ252eに記憶されているデータを破棄(消去)する際の具体な態様として、例えば、ホストコントローラ241がRXデータレジスタ252eからデータを読み込み、読み込んだデータを放置する(読み捨てる)する。これによって、RXデータレジスタ252eに記憶されていたデータがクリア(破棄)される。
When it is determined in S334 that the determination flag is not abnormal or that there is no second packet (including a case where less than 10 bytes of data are stored in the area of the latter 10 bytes of the RX data register 252e) (S334 If the determination is NO), the host controller 241 discards (erases) the data stored in the RX data register 252e (S335). That is, the host controller 241 discards the data even if the data is stored in the area of the latter 10 bytes of the RX data register 252e. Next, the host controller 241 shifts the processing to S338.
As a specific mode for discarding (erasing) the data stored in the RX data register 252e, for example, the host controller 241 reads the data from the RX data register 252e, and leaves the read data (read and discard). I do. As a result, the data stored in the RX data register 252e is cleared (discarded).

S334において判定フラグは異常であり、且つ、2パケット目がある(RXデータレジスタ252eの後半10バイト分の領域に10バイトのデータが記憶されている)と判定する場合(S334がYES判定の場合)、ホストコントローラ241は、RXデータレジスタ252eの後半10バイト分の領域に記憶されているデータをSRAM243に設定された受信バッファ領域に格納する(S336)。なお、ホストコントローラ241が格納するデータを読み込んだ時、このデータが記憶されていたRXデータレジスタ252eにおける後半10バイト分の領域はクリアされる。   When it is determined in S334 that the determination flag is abnormal and that there is a second packet (10-byte data is stored in the latter 10-byte area of the RX data register 252e) (in the case of YES in S334) ), The host controller 241 stores the data stored in the last 10 bytes of the RX data register 252e in the reception buffer area set in the SRAM 243 (S336). When the data stored by the host controller 241 is read, the area for the latter 10 bytes in the RX data register 252e in which the data is stored is cleared.

次いで、ホストコントローラ241は、後述するデータ受信整合性判定処理を実行する(S337)。
S335又はS337の後、ホストコントローラ241は、副制御回路101にACKコマンド又はNAKコマンドを送信する後述のACK/NAK送信処理を実行する(S338)。その後、ホストコントローラ241は、データ受信サブ処理1を終了し、また、データ受信処理(図47参照)を終了する。
本実施形態では、先に受信した10バイトのデータ(1パケット目)がRXデータレジスタ252eの前半10バイト分の領域に記憶され、後に受信した10バイトのデータ(2パケット目)がRXデータレジスタ252eの後半10バイト分の領域に記憶される。なお、RXデータレジスタ252eは、受信データを32バイト記憶することができるため(図19参照)、3パケット目を記憶するようにしてもよい。
Next, the host controller 241 executes a data reception consistency determination process described later (S337).
After S335 or S337, the host controller 241 executes an ACK / NAK transmission process for transmitting an ACK command or a NAK command to the sub-control circuit 101 (S338). After that, the host controller 241 ends the data reception sub-process 1, and ends the data reception process (see FIG. 47).
In the present embodiment, the previously received 10-byte data (first packet) is stored in the first 10-byte area of the RX data register 252e, and the subsequently received 10-byte data (second packet) is stored in the RX data register 252e. 252e is stored in the area corresponding to the latter 10 bytes. Note that the RX data register 252e can store 32 bytes of received data (see FIG. 19), and may store the third packet.

[データ受信サブ処理2]
図49に示すように、データ受信サブ処理2において、ホストコントローラ241は、まずSRAM243に設けられたタイムアウトカウンタの値を1減算する(S341)。
[Data reception sub-process 2]
As shown in FIG. 49, in the data reception sub-process 2, the host controller 241 first decrements the value of the timeout counter provided in the SRAM 243 by 1 (S341).

次いで、ホストコントローラ241は、タイムアウトカウンタの値が0であるか否かを判定する(S342)。タイムアウトカウンタの値が0でないと判定する場合(S342がNO判定の場合)、ホストコントローラ241は、データ受信サブ処理を終了し、また、データ受信処理(図47参照)を終了する。   Next, the host controller 241 determines whether or not the value of the timeout counter is 0 (S342). When determining that the value of the timeout counter is not 0 (NO in S342), the host controller 241 ends the data reception sub-process and ends the data reception process (see FIG. 47).

S342においてタイムアウトカウンタの値が0(すなわち、50msec経過した時)であると判定する場合(S342がYES判定の場合)、ホストコントローラ241は、SRAM243に設けられたディレイカウンタにディレイタイム値(本実施形態では、10)をセットする(S343)。   When it is determined in S342 that the value of the timeout counter is 0 (that is, when 50 msec has elapsed) (when S342 is determined to be YES), the host controller 241 stores the delay time value in the delay counter provided in the SRAM 243 (this embodiment). In the mode, 10) is set (S343).

次いで、ホストコントローラ241は、UART252のRXデータレジスタ252eに記憶されているデータを破棄(消去)する(S344)。その後、ホストコントローラ241は、データ受信サブ処理を終了し、また、データ受信処理(図47参照)を終了する。
なお、ステップS344では、上述のステップS315とは異なり、RXデータレジスタ252eにデータが記憶されていない場合(判定フラグが正常、且つ、2パケット目なしの場合等)であっても、RXデータレジスタ252eから読み込み処理が行われる。
Next, the host controller 241 discards (erases) the data stored in the RX data register 252e of the UART 252 (S344). After that, the host controller 241 ends the data reception sub-process, and ends the data reception process (see FIG. 47).
In step S344, unlike the above-described step S315, even if data is not stored in the RX data register 252e (when the determination flag is normal and there is no second packet, etc.), the RX data register The reading process is performed from 252e.

[データ受信整合性判定処理]
図50に示すように、データ受信整合性判定処理において、ホストコントローラ241は、まずSRAM243の受信バッファ領域に格納されているデータの整合性判定を行う(S351)。なお、受信バッファ領域には、上述のデータ受信サブ処理1(図48参照)におけるS331によって格納された、RXデータレジスタ252eの前半10バイト分の領域に記憶されていたデータ、又は、S336によって格納された、RXデータレジスタ252eの後半10バイト分の領域に記憶されていたデータが格納されている。
[Data reception consistency judgment processing]
As shown in FIG. 50, in the data reception consistency determination processing, the host controller 241 first determines the consistency of the data stored in the reception buffer area of the SRAM 243 (S351). In the reception buffer area, the data stored in the first 10-byte area of the RX data register 252e, stored in S331 in the above-described data reception sub-process 1 (see FIG. 48), or stored in S336. The data stored in the area corresponding to the latter 10 bytes of the RX data register 252e is stored.

S351においてホストコントローラ241は、物理層エラーの有無の判定、サム値(チェックサム)を用いた判定、及び、データに適切なコマンドID(図45参照)が含まれているか否かの判定を行う。ホストコントローラ241は、物理層エラーが無く、サム値を用いた判定の結果が正常であり、且つ、データに適切なコマンドIDが含まれている場合は、正常と判定する。一方、物理層エラーが有る場合、サム値を用いた判定の結果が異常である場合、又は、データに適切なコマンドIDが含まれていない場合の少なくとも一つに該当するときは、ホストコントローラ241は、異常と判定する。
なお、物理層エラーとは、UART252のRXシフトレジスタ252dで、1バイト単位でデータを受信した際、受信した1バイト単位のデータが正常か否かをUART252の判定回路(不図示)が判断するエラーであり、そのエラーは、フレーミングエラー、オーバーランエラー、及び、パリティエラー等がある。
In S351, the host controller 241 determines whether there is a physical layer error, determines using a sum value (check sum), and determines whether the data includes an appropriate command ID (see FIG. 45). . When there is no physical layer error, the result of the determination using the sum value is normal, and the data includes an appropriate command ID, the host controller 241 determines that the data is normal. On the other hand, when there is a physical layer error, when the result of the determination using the sum value is abnormal, or when the data does not include an appropriate command ID, the host controller 241 Is determined to be abnormal.
Note that a physical layer error is determined by the determination circuit (not shown) of the UART 252 when the RX shift register 252d of the UART 252 receives data in units of 1 byte and determines whether the received data in units of 1 byte is normal. The error is a framing error, an overrun error, a parity error, or the like.

次いで、ホストコントローラ241は、S351における整合性判定結果が正常か否かを判定する(S352)。整合性判定結果が正常であると判定する場合(S352がYES判定の場合)、SRAM243の判定フラグ記憶領域に正常を示す値(例えば、1)をセットする(S353)。その後、ホストコントローラ241は、データ受信整合性判定処理を終了し、処理をデータ受信サブ処理1(図2参照)のS334又はS338に戻す。   Next, the host controller 241 determines whether or not the result of the consistency determination in S351 is normal (S352). When it is determined that the consistency determination result is normal (YES in S352), a value indicating normality (for example, 1) is set in the determination flag storage area of the SRAM 243 (S353). After that, the host controller 241 ends the data reception consistency determination process, and returns the process to S334 or S338 of the data reception sub-process 1 (see FIG. 2).

S352において整合性判定結果が正常でない、すなわち異常であると判定する場合(S352がNO判定の場合)、SRAM243の判定フラグ記憶領域に異常を示す値(例えば、0)をセットする(S354)。その後、ホストコントローラ241は、データ受信整合性判定処理を終了し、処理をデータ受信サブ処理1(図48参照)のS334又はS338に戻す。
本実施形態において、データ受信整合判定処理を実行するホストコントローラ241は、整合性判定手段を構成する。
If it is determined in S352 that the consistency determination result is not normal, that is, it is abnormal (S352 is NO), a value (for example, 0) indicating abnormality is set in the determination flag storage area of the SRAM 243 (S354). Thereafter, the host controller 241 ends the data reception consistency determination processing, and returns the processing to S334 or S338 of the data reception sub-processing 1 (see FIG. 48).
In the present embodiment, the host controller 241 executing the data reception consistency determination processing constitutes a consistency determination unit.

[ACK/NAK送信処理]
図51に示すように、ACK/NAK送信処理において、ホストコントローラ241は、まずSRAM243の判定フラグ記憶領域を参照し、判定フラグは正常か(すなわち、本実施形態では正常を示す値1が記憶されているか)否かを判定する(S361)。
[ACK / NAK transmission processing]
As shown in FIG. 51, in the ACK / NAK transmission processing, the host controller 241 first refers to the determination flag storage area of the SRAM 243, and determines whether the determination flag is normal (that is, in this embodiment, a value 1 indicating normal is stored). Is determined) (S361).

S361において判定フラグが正常と判定する場合(S361がYES判定の場合)、ホストコントローラ241は、ACKコマンド(図45参照)をUART252のTXデータレジスタ252c(図19参照)に記憶し、副制御回路101に送信する。その後、ホストコントローラ241は、ACK/NAK送信処理を終了し、また、データ受信サブ処理1(図48参照)及びデータ受信処理(図47参照)を終了する。   If it is determined in S361 that the determination flag is normal (YES in S361), the host controller 241 stores the ACK command (see FIG. 45) in the TX data register 252c of the UART 252 (see FIG. 19), and Send to 101. Thereafter, the host controller 241 ends the ACK / NAK transmission process, and ends the data reception sub-process 1 (see FIG. 48) and the data reception process (see FIG. 47).

一方、S361において判定フラグが正常でない、すなわち異常であると判定する場合(S361がNO判定の場合)、ホストコントローラ241は、NAKコマンドをUART252のTXデータレジスタ252c(図19参照)に記憶し、副制御回路101に送信する。その後、ホストコントローラ241は、ACK/NAK送信処理を終了し、また、データ受信サブ処理1(図48参照)及びデータ受信処理(図47参照)を終了する。
なお、本実施形態において、データ受信処理のステップS314、及び、ACK/NAK送信処理のステップS363を実行するホストコントローラ241は、再送要求データ送信手段を構成し、ACK/NAK送信処理のステップS362を実行するホストコントローラ241は、正常データ送信手段を構成する。
On the other hand, when it is determined in S361 that the determination flag is not normal, that is, determined to be abnormal (NO in S361), the host controller 241 stores the NAK command in the TX data register 252c of the UART 252 (see FIG. 19), This is transmitted to the sub control circuit 101. Thereafter, the host controller 241 ends the ACK / NAK transmission process, and ends the data reception sub-process 1 (see FIG. 48) and the data reception process (see FIG. 47).
In the present embodiment, the host controller 241 executing step S314 of the data reception process and step S363 of the ACK / NAK transmission process constitutes a retransmission request data transmission unit, and performs step S362 of the ACK / NAK transmission process. The executing host controller 241 constitutes a normal data transmission unit.

<副制御回路が行う各種処理>
次に副制御回路101(のサブCPU102)が行う各種処理について、図52〜図69を参照して説明する。
<Various processes performed by the sub control circuit>
Next, various processes performed by the sub-control circuit 101 (the sub-CPU 102) will be described with reference to FIGS.

[電源投入処理]
電源投入処理について、図52を参照して、説明する。図52は、電源投入処理の一例を示すフローチャートである。サブCPU102は、パチスロ1の電源投入時に、電源投入処理を行う。
電源投入処理において、まず、サブCPU102は、初期化処理を行う(S101)。具体的には、サブCPU102は、各ドライバの初期化やカーネル(kernel又はOperating System)の起動を実行する。
[Power on process]
The power-on process will be described with reference to FIG. FIG. 52 is a flowchart illustrating an example of the power-on process. The sub CPU 102 performs power-on processing when the power of the pachislot 1 is turned on.
In the power-on process, first, the sub CPU 102 performs an initialization process (S101). Specifically, the sub CPU 102 executes initialization of each driver and activation of a kernel (kernel or Operating System).

次に、サブCPU102は、サブRAM103に設けられているサブ電源投入カウンタ(の値)に1を加算する(S102)。具体的には、副制御回路101は、図示しない副制御電源管理部を有し、副制御電源管理部は、副制御回路101への電源電圧の供給(電源の投入)が開始され、予め設定された電圧値を上回った場合に、サブCPU102の図示しないリセット端子にリセット信号を出力する。サブCPU102は、リセット信号が入力されたことに基づいて、サブ電源投入カウンタ(の値)に1を加算する。なお、サブ電源投入カウンタは、メダルセレクタ201が初期化され、副制御回路101がメダルセレクタ201から初期化がセットされた(DAT0のビット0に1がセットされた)起動完了コマンドを受信したときに、クリアされる(0がセットされる)。
そして、サブCPU102は、電源投入処理を終了する。
Next, the sub CPU 102 adds 1 to (the value of) the sub power-on counter provided in the sub RAM 103 (S102). Specifically, the sub-control circuit 101 includes a sub-control power management unit (not shown). The sub-control power management unit starts supplying power (turning on the power) to the sub-control circuit 101 and sets the sub-control power in advance. When the voltage value exceeds the set voltage value, a reset signal is output to a reset terminal (not shown) of the sub CPU 102. The sub CPU 102 adds 1 to (the value of) the sub power-on counter based on the input of the reset signal. Note that the sub power-on counter is initialized when the medal selector 201 is initialized and the sub-control circuit 101 receives from the medal selector 201 a start-up completion command in which initialization is set (bit 0 of DAT0 is set to 1). Is cleared (0 is set).
Then, the sub CPU 102 ends the power-on process.

[無操作コマンド受信時処理]
無操作コマンド受信時処理について、図53を参照して、説明する。図53は、無操作コマンド受信時処理の一例を示すフローチャートである。サブCPU102は、副制御回路101が主制御回路91から無操作コマンドを受信したときに、無操作コマンド受信時処理を行う。
[Process when receiving no operation command]
The no-operation command reception process will be described with reference to FIG. FIG. 53 is a flowchart illustrating an example of a process at the time of receiving a no-operation command. When the sub control circuit 101 receives a no-operation command from the main control circuit 91, the sub-CPU 102 performs a no-operation command reception process.

ここで、主制御回路91から副制御回路101に送信されるコマンドには、エラーコマンド、スタートコマンド、入賞作動コマンド、メダル投入コマンドや無操作コマンドがある。   Here, the commands transmitted from the main control circuit 91 to the sub control circuit 101 include an error command, a start command, a winning operation command, a medal insertion command, and a no operation command.

エラーコマンドは、主制御回路91がエラーを検知したときに、主制御回路91から副制御回路101に送信される。エラーコマンドには、例えば主制御回路91が検知した各種エラーの内容を示すパラメータを含んで構成される。スタートコマンドは、主制御回路91が遊技者のスタートレバー23の操作を検知したときに、主制御回路91から副制御回路101に送信される。   The error command is transmitted from the main control circuit 91 to the sub control circuit 101 when the main control circuit 91 detects an error. The error command includes, for example, parameters indicating the contents of various errors detected by the main control circuit 91. The start command is transmitted from the main control circuit 91 to the sub control circuit 101 when the main control circuit 91 detects the operation of the start lever 23 by the player.

入賞作動コマンドは、所定のタイミングで、主制御回路91から副制御回路101に送信される。入賞作動コマンドには、例えば表示役の種別、ロック演出に係るフラグ、メダルの払出枚数等を示すパラメータを含んで構成される。副制御回路101は、入賞作動コマンドを受信することで、入賞判定ラインに沿って表示された図柄組合せを認識することができるようになり、各種の演出を実行するタイミング等を決定することができる。   The winning operation command is transmitted from the main control circuit 91 to the sub control circuit 101 at a predetermined timing. The winning operation command includes, for example, parameters indicating the type of display combination, a flag relating to a lock effect, the number of payout medals, and the like. By receiving the winning operation command, the sub-control circuit 101 can recognize the symbol combination displayed along the winning determination line, and can determine the timing and the like for executing various effects. .

メダル投入コマンドは、再遊技の作動時や、遊技者の投入操作(BETボタン22の押下やメダル投入口21へのメダルの投入)時に、主制御回路91から副制御回路101に送信される。メダル投入コマンドには、メダルの投入枚数及び後述するクレジット投入カウンタが含まれる。   The medal insertion command is transmitted from the main control circuit 91 to the sub-control circuit 101 at the time of re-game operation or at the time of a player's insertion operation (pressing of the BET button 22 or insertion of a medal into the medal insertion slot 21). The medal insertion command includes the number of inserted medals and a credit insertion counter described later.

無操作コマンドは、メインCPU93が所定の時間(例えば、1.1173ms)毎に実行する割込の処理において、上述の無操作コマンド以外の全てのコマンドを送信しないときに送信される。無操作コマンドには、各種ボタン(BETボタン22やストップボタン19L,19C,19R等)の押下状態や、メダルソレノイド208を、ON状態に設定しているか、OFF状態に設定しているかを示す情報が含まれている。また、後述するリセットスイッチがON状態かOFF状態かを示す情報が含まれている。   The no-operation command is transmitted when all commands other than the above-mentioned no-operation command are not transmitted in the interrupt processing executed by the main CPU 93 every predetermined time (for example, 1.1173 ms). The no-operation command includes information indicating whether various buttons (such as the BET button 22 and the stop buttons 19L, 19C, and 19R) are pressed, and whether the medal solenoid 208 is set to an ON state or an OFF state. It is included. Further, information indicating whether a later-described reset switch is in an ON state or an OFF state is included.

無操作コマンド受信時処理において、サブCPU102は、サブRAM103の無操作コマンド格納領域に受信した無操作コマンドの各種パラメータを保存する(記憶させる)(S111)。これによって、サブCPU102は、保存した各種パラメータに応じた各種処理を実行することができる。そして、サブCPU102は、無操作コマンド受信時処理を終了する。   In the no-operation command receiving process, the sub CPU 102 saves (stores) various parameters of the received no-operation command in the no-operation command storage area of the sub RAM 103 (S111). Thus, the sub CPU 102 can execute various processes according to the stored various parameters. Then, the sub CPU 102 terminates the no-operation command receiving process.

[メダルセレクタ通信タスク]
メダルセレクタ通信タスクについて、図54を参照して、説明する。図54は、メダルセレクタ通信タスクの一例を示すフローチャートである。サブCPU102は、電源投入処理後に、メダルセレクタ通信タスクを実行する。
[Medal Selector Communication Task]
The medal selector communication task will be described with reference to FIG. FIG. 54 is a flowchart illustrating an example of the medal selector communication task. The sub CPU 102 executes the medal selector communication task after the power-on process.

メダルセレクタ通信タスクにおいて、まず、サブCPU102は、10msec周期待ち処理を行う(S121)。具体的には、サブCPU102は、処理がステップS121に移行してから10msec経過するまでの間、処理をステップS122へ移行させず、10msec経過後に処理をステップS122に移行させる。すなわちメダルセレクタ通信タスクのステップS122以降の処理は、10msec毎に行われる。   In the medal selector communication task, first, the sub CPU 102 performs a waiting process for a period of 10 msec (S121). Specifically, the sub CPU 102 does not shift the processing to step S122 until 10 msec elapses after the processing shifts to step S121, and shifts the processing to step S122 after elapse of 10 msec. In other words, the processing after step S122 of the medal selector communication task is performed every 10 msec.

次に、サブCPU102は、メダルセレクタ受信バッファに受信データがあるか否かを判定する(S122)。メダルセレクタ受信バッファは、サブRAM103に設けられており、メダルセレクタ201から副制御回路101に送信された各種コマンドやデータを一時的に記憶する。   Next, the sub CPU 102 determines whether or not there is received data in the medal selector reception buffer (S122). The medal selector reception buffer is provided in the sub RAM 103, and temporarily stores various commands and data transmitted from the medal selector 201 to the sub control circuit 101.

ステップS122で、メダルセレクタ受信バッファに受信データがないと判定した場合(S122がNO判定の場合)、サブCPU102は、処理をステップS121に移行させる。一方、ステップS122で、メダルセレクタ受信バッファに受信データがあると判定した場合(S122がYES判定の場合)、サブCPU102は、メダルセレクタコマンド受信処理を行う(S123)。メダルセレクタコマンド受信処理では、サブCPU102は、メダルセレクタ201から受信したコマンドに応じて各種処理を実行する。メダルセレクタコマンド受信処理の詳細については、後述する。   If it is determined in step S122 that there is no reception data in the medal selector reception buffer (if S122 is NO), the sub CPU 102 shifts the processing to step S121. On the other hand, if it is determined in step S122 that there is received data in the medal selector reception buffer (if S122 is YES), the sub CPU 102 performs a medal selector command reception process (S123). In the medal selector command receiving process, the sub CPU 102 executes various processes according to the command received from the medal selector 201. Details of the medal selector command receiving process will be described later.

次に、サブCPU102は、メダルセレクタコマンド送信処理(S124)を行う。メダルセレクタコマンド送信処理では、サブCPU102は、メダルセレクタ201に各種コマンドを送信する。メダルセレクタコマンド送信処理の詳細については、後述する。ステップS124の後、サブCPU102は、処理をステップS121に移行させる。   Next, the sub CPU 102 performs a medal selector command transmission process (S124). In the medal selector command transmission process, the sub CPU 102 transmits various commands to the medal selector 201. Details of the medal selector command transmission processing will be described later. After step S124, sub CPU 102 shifts the processing to step S121.

[メダルセレクタコマンド受信処理]
メダルセレクタコマンド受信処理について、図55を参照して、説明する。図55は、メダルセレクタコマンド受信処理の一例を示すフローチャートである。
メダルセレクタコマンド受信処理において、まず、サブCPU102は、メダルセレクタ201から受信したコマンドが起動完了コマンドか否かを判定する(S131)。
[Medal selector command reception processing]
The medal selector command receiving process will be described with reference to FIG. FIG. 55 is a flowchart illustrating an example of the medal selector command receiving process.
In the medal selector command receiving process, first, the sub CPU 102 determines whether or not the command received from the medal selector 201 is a start completion command (S131).

ステップS131で、受信したコマンドが起動完了コマンドであると判定する場合(S131がYES判定の場合)、サブCPU102は、起動完了コマンド受信時処理を行う(S132)。起動完了コマンド受信時処理の詳細については、後述する。その後、サブCPU102は、メダルセレクタコマンド受信処理を終了し、処理をメダルセレクタ通信タスク(図54参照)のステップS124に戻す。   If it is determined in step S131 that the received command is a startup completion command (YES in step S131), the sub CPU 102 performs a startup completion command reception process (S132). Details of the processing at the time of receiving the activation completion command will be described later. Thereafter, the sub CPU 102 ends the medal selector command receiving process, and returns the process to the step S124 of the medal selector communication task (see FIG. 54).

一方、ステップS131で、受信したコマンドが起動完了コマンドでないと判定する場合(S131がNO判定の場合)、サブCPU102は、メダルセレクタ201から受信したコマンドが判定完了コマンドか否かを判定する(S133)。   On the other hand, if it is determined in step S131 that the received command is not the activation completion command (if S131 is NO), the sub CPU 102 determines whether the command received from the medal selector 201 is a determination completion command (S133). ).

ステップS133で、受信したコマンドが判定完了コマンドであると判定する場合(S133がYES判定の場合)、サブCPU102は、判定完了コマンド受信時処理を行う(S134)。判定完了コマンド受信時処理の詳細については、後述する。その後、サブCPU102は、メダルセレクタコマンド受信処理を終了し、処理をメダルセレクタ通信タスク(図54参照)のステップS124に戻す。   If it is determined in step S133 that the received command is a determination completion command (if S133 is determined to be YES), the sub CPU 102 performs a determination completion command reception process (S134). Details of the processing at the time of receiving the determination completion command will be described later. Thereafter, the sub CPU 102 ends the medal selector command receiving process, and returns the process to the step S124 of the medal selector communication task (see FIG. 54).

一方、ステップS133で、受信したコマンドが判定完了コマンドでないと判定する場合(S133がNO判定の場合)、サブCPU102は、メダルセレクタ201から受信したコマンドがメダルセレクタエラーコマンドか否かを判定する(S135)。   On the other hand, if it is determined in step S133 that the received command is not the determination completion command (if S133 is NO), the sub CPU 102 determines whether the command received from the medal selector 201 is a medal selector error command ( S135).

ステップS135で、受信したコマンドがメダルセレクタエラーコマンドであると判定する場合(S135がYES判定の場合)、サブCPU102は、メダルセレクタエラーコマンド受信時処理を行う(S136)。メダルセレクタエラーコマンド受信時処理の詳細については、後述する。その後、サブCPU102は、メダルセレクタコマンド受信処理を終了し、処理をメダルセレクタ通信タスク(図54参照)のステップS124に戻す。   If it is determined in step S135 that the received command is a medal selector error command (if S135 is YES), the sub CPU 102 performs a medal selector error command receiving process (S136). Details of the medal selector error command receiving process will be described later. Thereafter, the sub CPU 102 ends the medal selector command receiving process, and returns the process to the step S124 of the medal selector communication task (see FIG. 54).

一方、ステップS135で、受信したコマンドがメダルセレクタエラーコマンドでないと判定する場合(S135がNO判定の場合)、サブCPU102は、メダルセレクタ201から受信したコマンドがACK又はNAKコマンドか否かを判定する(S137)。   On the other hand, if it is determined in step S135 that the received command is not a medal selector error command (NO in S135), the sub CPU 102 determines whether the command received from the medal selector 201 is an ACK or a NAK command. (S137).

ステップS137で、受信したコマンドがACK又はNAKコマンドであると判定する場合(S137がYES判定の場合)、サブCPU102は、ACK/NAKコマンド受信時処理を行う(S138)。ACK/NAKコマンド受信時処理では、受信したACK/NAKコマンドに応じて各種処理を行う。なお、各種処理の例としては、後述するエラー解除コマンドに対するACKコマンドを、メダルセレクタ201から受信したときに、液晶表示装置11にC1エラー画面(図63参照)の表示の終了を指示することや上述のACKカウントエラーをエラー情報履歴に登録することがある。その後、サブCPU102は、メダルセレクタコマンド受信処理を終了し、処理をメダルセレクタ通信タスク(図54参照)のステップS124に戻す。   If it is determined in step S137 that the received command is an ACK or NAK command (YES in S137), the sub CPU 102 performs an ACK / NAK command reception process (S138). In the ACK / NAK command receiving process, various processes are performed according to the received ACK / NAK command. Note that examples of various processes include instructing the liquid crystal display device 11 to end display of a C1 error screen (see FIG. 63) when an ACK command for an error release command described later is received from the medal selector 201. The above-mentioned ACK count error may be registered in the error information history. Thereafter, the sub CPU 102 ends the medal selector command receiving process, and returns the process to the step S124 of the medal selector communication task (see FIG. 54).

一方、ステップS137で、受信したコマンドがACK又はNAKでないと判定する場合(S137がNO判定の場合)、サブCPU102は、メダルセレクタ201から受信したコマンドがメダルセレクタ無操作コマンドか否かを判定する(S139)。   On the other hand, when it is determined in step S137 that the received command is not ACK or NAK (NO in S137), the sub CPU 102 determines whether the command received from the medal selector 201 is a medal selector non-operation command. (S139).

ステップS139で、受信したコマンドがメダルセレクタ無操作コマンドであると判定する場合(S139がYES判定の場合)、サブCPU102は、メダルセレクタ無操作コマンド受信時処理を行う(S140)。メダルセレクタ無操作コマンド受信時処理の詳細については、後述する。その後、サブCPU102は、メダルセレクタコマンド受信処理を終了し、処理をメダルセレクタ通信タスク(図54参照)のステップS124に戻す。   When it is determined in step S139 that the received command is a medal selector non-operation command (YES in S139), the sub CPU 102 performs a medal selector non-operation command reception process (S140). Details of the processing at the time of receiving the medal selector non-operation command will be described later. Thereafter, the sub CPU 102 ends the medal selector command receiving process, and returns the process to the step S124 of the medal selector communication task (see FIG. 54).

一方、ステップS139で、受信したコマンドがメダルセレクタ無操作コマンドでないと判定する場合(S139がNO判定の場合)、サブCPU102は、メダルセレクタコマンド受信処理を終了し、処理をメダルセレクタ通信タスク(図54参照)のステップS124に戻す。   On the other hand, if it is determined in step S139 that the received command is not the medal selector non-operation command (NO in S139), the sub CPU 102 terminates the medal selector command receiving process, and proceeds to the medal selector communication task (see FIG. 54)).

[起動完了コマンド受信時処理]
起動完了コマンド受信時処理について、図56を参照して、説明する。図56は、起動完了コマンド受信時処理の一例を示すフローチャートである。
起動完了コマンド受信時処理において、まず、サブCPU102は、受信バッファから設定情報を取得し、保存する(S141)。具体的には、サブCPU102は、受信バッファに記憶されているメダルセレクタ201から受信した起動完了コマンドのDAT0(初期化の有無、色判定・刻印判定の有効無効)を設定情報として、サブRAM103の設定情報記憶領域に記憶させる。
[Processing at the time of start completion command reception]
The process at the time of receiving the activation completion command will be described with reference to FIG. FIG. 56 is a flowchart illustrating an example of a process at the time of receiving the activation completion command.
In the processing at the time of receiving the activation completion command, first, the sub CPU 102 acquires the setting information from the reception buffer and stores it (S141). More specifically, the sub CPU 102 sets the start completion command DAT0 (presence or absence of initialization, validity / invalidity of color judgment / marking judgment) of the start completion command received from the medal selector 201 stored in the reception buffer as setting information, and It is stored in the setting information storage area.

次に、サブCPU102は、ステップS141で保存した設定情報に、初期化ありを示す情報が含まれているか否かを判定する(S142)。具体的には、サブCPU102は、サブRAM103の設定情報記憶領域に記憶させた設定情報の値を参照し、ビット0の値が1(初期化あり)か否かを判定する。   Next, the sub CPU 102 determines whether the setting information stored in step S141 includes information indicating that initialization has been performed (S142). Specifically, the sub CPU 102 refers to the value of the setting information stored in the setting information storage area of the sub RAM 103, and determines whether the value of the bit 0 is 1 (initialized).

ステップS142で、保存した設定情報に、初期化ありを示す情報が含まれていないと判定する場合(S142がNO判定の場合)、サブCPU102は、処理を後述のステップS144に移行させる。
一方、ステップS142で、保存した設定情報に、初期化ありを示す情報が含まれていると判定する場合(S142がYES判定の場合)、サブCPU102は、初期化エラー画面表示要求を行う(S143)。具体的には、サブCPU102は、初期化エラー画面の表示を、液晶表示装置11に指示する。
If it is determined in step S142 that the stored setting information does not include information indicating that initialization has been performed (NO in step S142), the sub CPU 102 shifts the processing to step S144 described below.
On the other hand, if it is determined in step S142 that the saved setting information includes information indicating that initialization has been performed (YES in step S142), the sub CPU 102 issues an initialization error screen display request (step S143). ). Specifically, the sub CPU 102 instructs the liquid crystal display device 11 to display an initialization error screen.

当該指示を受けた液晶表示装置11は、図57に示すような初期化エラー画面を、表示部11aに表示させる。本実施形態において、初期化エラー画面には、遊技機を正面から見て右下部に、「セレクターが初期化されました。」という文字列が表示されている。   Upon receiving the instruction, the liquid crystal display device 11 displays an initialization error screen as shown in FIG. 57 on the display unit 11a. In the present embodiment, on the initialization error screen, a character string “The selector has been initialized.” Is displayed at the lower right when the gaming machine is viewed from the front.

ステップS143の後、又は、ステップS142で、保存した設定情報に、初期化ありを示す情報が含まれていないと判定する場合(S142がNO判定の場合)、サブCPU102は、ステップS144の処理を行う。ステップS144において、サブCPU102は、受信バッファからスイッチ情報を取得する。具体的には、サブCPU102は、受信バッファに記憶されているメダルセレクタ201から受信した起動完了コマンドのDAT1(各種スイッチのON/OFFの状態)を取得する。   After the step S143 or in the step S142, when it is determined that the saved setting information does not include the information indicating the initialization (in the case of the NO determination in the step S142), the sub CPU 102 performs the processing in the step S144. Do. In step S144, the sub CPU 102 acquires switch information from the reception buffer. Specifically, the sub CPU 102 acquires the start completion command DAT1 (ON / OFF state of various switches) received from the medal selector 201 stored in the reception buffer.

次に、サブCPU102は、第1スイッチ情報記憶領域のスイッチ情報と、ステップS144で取得したスイッチ情報と、が一致するか否かを判定する(S145)。ここで、第1スイッチ情報記憶領域は、サブRAM103のバックアップ領域に割り当てられている。第1スイッチ情報記憶領域には、後述するステップS147において、前回の起動時のスイッチ情報と今回の起動時のスイッチ情報とに変化があった場合に、今回の起動時のスイッチ情報が記憶される。   Next, the sub CPU 102 determines whether or not the switch information in the first switch information storage area matches the switch information obtained in step S144 (S145). Here, the first switch information storage area is allocated to the backup area of the sub RAM 103. In the first switch information storage area, when there is a change between the switch information at the time of previous activation and the switch information at the time of current activation in step S147 described later, the switch information at the time of current activation is stored. .

ステップS145において、一致すると判定する場合(S145がYES判定の場合)、サブCPU102は、処理を後述するステップS148に移行させる。一方、ステップS145において、一致しないと判定する場合(S145がNO判定の場合)、サブCPU102は、セレクタスイッチエラー画面表示要求を行う(S146)。具体的には、サブCPU102は、セレクタスイッチエラー画面の表示を、液晶表示装置11に指示する。   If it is determined in step S145 that they match (YES in step S145), sub CPU 102 shifts the processing to step S148 described below. On the other hand, if it is determined in step S145 that they do not match (NO in step S145), the sub CPU 102 issues a selector switch error screen display request (step S146). Specifically, the sub CPU 102 instructs the liquid crystal display device 11 to display a selector switch error screen.

当該指示を受けた液晶表示装置11は、図58に示すようなセレクタスイッチエラー画面を、表示部11aに表示させる。本実施形態において、セレクタスイッチエラー画面には、遊技機を正面から見て右下部に、「セレクタースイッチが変更されました。」という文字列が表示されている。また、ステップS144で取得したスイッチ情報に応じて、色スイッチ及び刻印スイッチのON/OFF状態を示す文字列が表示されている。本実施形態では、色スイッチ及び刻印スイッチのON状態を示す文字列として、図に示すように、「COLOR SW:ON」、「MARK SW:ON」が表示される。なお、この場合、色スイッチのOFF状態を示す文字列は、「COLOR SW:OFF」、刻印スイッチのOFF状態を示す文字列は、「MARK SW:ON」となる   Upon receiving the instruction, the liquid crystal display device 11 displays a selector switch error screen as shown in FIG. 58 on the display unit 11a. In the present embodiment, a character string “selector switch has been changed” is displayed on the lower right of the selector switch error screen when the gaming machine is viewed from the front. In addition, a character string indicating the ON / OFF state of the color switch and the engraving switch is displayed according to the switch information acquired in step S144. In the present embodiment, “COLOR SW: ON” and “MARK SW: ON” are displayed as character strings indicating the ON state of the color switch and the engraving switch, as shown in FIG. In this case, the character string indicating the OFF state of the color switch is “COLOR SW: OFF”, and the character string indicating the OFF state of the engraving switch is “MARK SW: ON”.

次に、サブCPU102は、ステップS144で取得したスイッチ情報を、第1スイッチ記憶領域に保存する(上書き記憶する)。
次に、サブCPU102は、ステップS144で取得したスイッチ情報を、サブRAM103の第2スイッチ情報記憶領域に記憶させる。そして、サブCPU102は、起動完了コマンド受信時処理を終了し、処理をメダルセレクタ通信タスク(図54参照)のステップS124に戻す。
Next, the sub CPU 102 saves (overwrites and stores) the switch information acquired in step S144 in the first switch storage area.
Next, the sub CPU 102 stores the switch information acquired in step S144 in the second switch information storage area of the sub RAM 103. Then, the sub CPU 102 terminates the process at the time of receiving the activation completion command, and returns the process to the step S124 of the medal selector communication task (see FIG. 54).

[判定完了コマンド受信時処理]
判定完了コマンド受信時処理について、図59を参照して、説明する。図59は、判定完了コマンド受信時処理の一例を示すフローチャートである。
判定完了コマンド受信時処理において、まず、サブCPU102は、判定結果をキューに登録する(S151)。具体的には、サブCPU102は、受信バッファに記憶されているメダルセレクタ201から受信した判定完了コマンドのDAT0(円形検出OK/NG)、DAT1(色判定OK/NG)、DAT2(刻印判定OK/NG)の値(データ)をキューに登録する。
[Process when receiving a judgment completion command]
The process at the time of receiving the determination completion command will be described with reference to FIG. FIG. 59 is a flowchart illustrating an example of a process when a determination completion command is received.
In the process at the time of receiving the determination completion command, first, the sub CPU 102 registers the determination result in the queue (S151). More specifically, the sub CPU 102 receives the determination completion commands DAT0 (circular detection OK / NG), DAT1 (color determination OK / NG), and DAT2 (marking determination OK /) of the determination completion command received from the medal selector 201 stored in the reception buffer. NG) is registered in the queue.

ここで、本実施形態のサブRAM103のDRAMには、図60に示すような、キューが設けられている。キューは、FIFO(First In, First Out:先入れ先出し)設定の60ブロック分のデータが登録可能な領域である。1ブロックのデータは、判定完了コマンドのDAT0〜DAT2のデータで構成される。60ブロック分のデータがキューに登録された状態で、61ブロック目のデータD61をキューに登録すると、最初にキューに登録したデータD1がキューから溢れて排出される。このため、キューには、常に直近の60枚のメダルについての判定結果が登録されていることになる。なお、以後の説明において、キューからデータが溢れて排出されることを「キュー溢れ」と称する場合がある。   Here, a queue as shown in FIG. 60 is provided in the DRAM of the sub RAM 103 of the present embodiment. The queue is an area in which data for 60 blocks of FIFO (First In, First Out) setting can be registered. One block of data is composed of data of DAT0 to DAT2 of the determination completion command. When the data D61 of the 61st block is registered in the queue in a state where the data for 60 blocks is registered in the queue, the data D1 registered first in the queue overflows from the queue and is discharged. For this reason, the determination results for the latest 60 medals are always registered in the queue. In the following description, overflowing and discharging data from the queue may be referred to as “queue overflow”.

次に、サブCPU102は、キュー溢れありか否かを判定する(S152)。キュー溢れがないと判定する場合(S152がNO判定の場合)、サブCPU102は、処理を後述するステップS157に移行する。一方、キュー溢れがあると判定する場合(S152がYES判定の場合)、サブCPU102は、キュー登録チェック処理を行う(S153)。キュー登録チェック処理において、サブCPU102は、キューに登録されている60ブロック分のデータ(ここでは、1ブロックに格納されているデータを1つのデータとする)の内で、円形検出、色判定及び刻印判定の判定結果のいずれか一つでも「0」すなわち「NG(判定NG)」を含むデータの数を計数する。すなわち計数結果としてのデータ数は、円形検出、色判定及び刻印判定の判定結果のいずれか1つでも「判定NG」となったメダル、つまり「不正メダル」の数となる。   Next, the sub CPU 102 determines whether or not there is a queue overflow (S152). If it is determined that there is no queue overflow (NO in S152), the sub CPU 102 shifts the processing to step S157 described later. On the other hand, when it is determined that there is a queue overflow (when S152 is YES), the sub CPU 102 performs a queue registration check process (S153). In the queue registration check processing, the sub CPU 102 detects the circle, the color judgment, and the color among the data of 60 blocks registered in the queue (here, the data stored in one block is regarded as one data). The number of data including "0", that is, "NG (determination NG)" in any one of the determination results of the marking determination is counted. That is, the number of data as the counting result is the number of medals for which any one of the determination results of the circle detection, the color determination, and the marking determination is “NG”, that is, the “illegal medal”.

次に、サブCPU102は、ステップS153で計数したNG判定を含むデータの数が、すなわち不正メダルの数が閾値(本実施形態では、「5」)以上か否かを判定する(S154)。NG判定を含むデータの数が閾値以上でないと判定する場合(S154がNO判定の場合)、サブCPU102は、処理を後述するステップS157に移行する。一方、NG判定を含むデータの数が閾値以上であると判定する場合(S154がYES判定の場合)、サブCPU102は、C2エラー画面表示要求を行う(S155)。具体的には、サブCPU102は、C2エラー画面の表示を、液晶表示装置11に指示する。   Next, the sub CPU 102 determines whether or not the number of data including the NG determination counted in step S153, that is, the number of illegal medals is equal to or larger than a threshold (in the present embodiment, “5”) (S154). When it is determined that the number of data including the NG determination is not equal to or greater than the threshold (NO in S154), the sub CPU 102 shifts the processing to step S157 described later. On the other hand, when it is determined that the number of data including the NG determination is equal to or more than the threshold (YES in S154), the sub CPU 102 issues a C2 error screen display request (S155). Specifically, the sub CPU 102 instructs the liquid crystal display device 11 to display a C2 error screen.

当該指示を受けた液晶表示装置11は、図61に示すようなC2エラー画面を、表示部11aに表示させる。本実施形態において、C2エラー画面は、画面の中央に「係員をお呼びください」という文字列と、当該文字列の下に、複数の四角枠が横一列に表示されている。複数の四角枠のそれぞれには、2文字のアルファベットからなるエレーコードが表示されている。本実施形態では、画面の左側から右側にかけて、四角枠のそれぞれに、CC、CE、CO、CR、HE、HJ、DO、CA、C1、C2のエラーコードが表示されている。また、複数の四角枠の下には、「ERROR CODE」という文字列と、当該文字列の下方に、各エラーコードの内容を示す文字列が表示されている。例えば、「CC:投入メダル通過カウントエラー」、「C1:CMOSセレクターエラー1」、「C2:CMOSセレクターエラー2」という文字列が表示されている。また、図示では省略しているが、C2エラー画面において、C2のエラーコードが表示されている四角枠は、他の四角枠と区別可能な態様で発光するハイライト表示がされている。   The liquid crystal display device 11 having received the instruction causes the display unit 11a to display a C2 error screen as shown in FIG. In the present embodiment, the C2 error screen has a character string “Please call a clerk” at the center of the screen, and a plurality of square frames displayed in a horizontal line below the character string. In each of the plurality of square frames, an array code consisting of two alphabets is displayed. In the present embodiment, error codes CC, CE, CO, CR, HE, HJ, DO, CA, C1, and C2 are displayed in each of the square frames from the left side to the right side of the screen. A character string “ERROR CODE” is displayed below the plurality of square frames, and a character string indicating the content of each error code is displayed below the character string. For example, character strings such as “CC: inserted medal passing count error”, “C1: CMOS selector error 1”, and “C2: CMOS selector error 2” are displayed. Although not shown in the figure, the square frame displaying the C2 error code on the C2 error screen is highlighted to emit light in a manner distinguishable from other square frames.

次に、サブCPU102は、C2_1エラーをエラー情報履歴に登録する(S156)。具体的には、サブCPU102は、サブRAM103に設けられたエラー情報履歴領域に、エラー内容として「C2_1」、発生日時として現在の日付と時刻を記憶させる。   Next, the sub CPU 102 registers the C2_1 error in the error information history (S156). Specifically, the sub CPU 102 stores “C2_1” as the error content and the current date and time as the occurrence date and time in the error information history area provided in the sub RAM 103.

ステップS156の後、また、ステップS152でキュー溢れがないと判定する場合(S152がNo判定の場合)、或いは、ステップS154でNG判定を含むデータの数が閾値以上でないと判定する場合(S154がNo判定の場合)、サブCPU102は、ステップS157の処理を行う。ステップS157において、サブCPU102は、メダル受付可、且つ、判定結果はOKか否かを判定する。具体的には、サブRAM103のメダル受付フラグ格納領域を参照し、メダル受付フラグが立っているか(値が「1」か)否か、及び、ステップS151でキューに登録した判定結果は、判定OKか(円形検出、色判定及び刻印判定のいずれも「OK(判定OK)」か)、を判定する。   After step S156, when it is determined in step S152 that there is no queue overflow (when S152 is No), or when it is determined in step S154 that the number of data including the NG determination is not equal to or larger than the threshold (S154 In the case of a No determination), the sub CPU 102 performs the process of step S157. In step S157, the sub CPU 102 determines whether or not the medal can be accepted and the determination result is OK. Specifically, referring to the medal reception flag storage area of the sub RAM 103, it is determined whether the medal reception flag is set (the value is “1”) and the determination result registered in the queue in step S151 is determined OK. (Whether any of the circle detection, the color determination, and the marking determination is “OK (determination OK)”).

ステップS157において、メダル受付可でない、又は、判定結果はOKでないと判定する場合(S157がNO判定の場合)、サブCPU102は、判定完了コマンド受信時処理を終了し、処理をメダルセレクタ通信タスク(図54参照)のステップS124に戻す。   If it is determined in step S157 that the medal is not acceptable or the determination result is not OK (NO in S157), the sub CPU 102 ends the determination completion command receiving process, and proceeds to the medal selector communication task ( The process returns to step S124 in FIG. 54).

一方、ステップS157において、メダル受付可であり、且つ、判定結果はOKである判定する場合(S157がYES判定の場合)、サブCPU102は、サブメダルカウンタ(の値)に1を加算する。サブメダルカウンタは、サブRAM103に設けられており、副制御回路101が主制御回路91からメダル投入コマンドを受信したときに、クリアされる(0がセットされる)。   On the other hand, in step S157, if it is determined that the medal is acceptable and the determination result is OK (if S157 is YES), the sub CPU 102 adds 1 to (the value of) the sub medal counter. The sub medal counter is provided in the sub RAM 103, and is cleared (set to 0) when the sub control circuit 101 receives a medal insertion command from the main control circuit 91.

次に、サブCPU102は、サブメダルカウンタ(の値)は、所定値以上か否かを判定する(S159)。ここでの所定値は、単位遊技に投入可能な最大のメダル数(本実施形態では3枚)にパチスロ1にクレジットできるメダルの最大数(本実施形態では50枚)の和以上であれば、適宜設定可能である。本実施形態では、この所定値として、「55」が設定されている。ステップS159において、サブメダルカウンタ(の値)は、所定値以上でないと判定する場合(S159がNO判定の場合)、サブCPU102は、判定完了コマンド受信時処理を終了し、処理をメダルセレクタ通信タスク(図54参照)のステップS124に戻す。   Next, the sub CPU 102 determines whether (the value of) the sub medal counter is equal to or more than a predetermined value (S159). Here, the predetermined value is equal to or greater than the sum of the maximum number of medals that can be inserted into the unit game (three in this embodiment) and the maximum number of medals that can be credited to the pachislot 1 (50 in this embodiment). It can be set as appropriate. In the present embodiment, “55” is set as the predetermined value. If it is determined in step S159 that the value of the sub medal counter is not equal to or greater than the predetermined value (NO in step S159), the sub CPU 102 ends the determination completion command receiving process, and proceeds to the medal selector communication task. The process returns to step S124 (see FIG. 54).

一方、サブCPU102は、サブメダルカウンタ(の値)は、所定値以上であると判定する場合(S159がYES判定の場合)、サブCPU102は、C2エラー画面表示要求を行う(S160)。具体的には、サブCPU102は、C2エラー画面(図61参照)の表示を、液晶表示装置11に指示する。当該指示を受けた液晶表示装置11は、C2エラー画面を、表示部11aに表示させる。   On the other hand, if the sub CPU 102 determines that (the value of) the sub medal counter is equal to or more than the predetermined value (YES in S159), the sub CPU 102 issues a C2 error screen display request (S160). Specifically, the sub CPU 102 instructs the liquid crystal display device 11 to display a C2 error screen (see FIG. 61). The liquid crystal display device 11 having received the instruction causes the display unit 11a to display a C2 error screen.

次に、サブCPU102は、C2_2エラーをエラー情報履歴に登録する(S161)。具体的には、サブCPU102は、サブRAM103に設けられたエラー情報履歴領域に、エラー内容として「C2_2」、発生日時として現在の日付と時刻を記憶させる。そして、サブCPU102は、判定完了コマンド受信時処理を終了し、処理をメダルセレクタ通信タスク(図54参照)のステップS124に戻す。
なお、ステップS154における閾値の値は、適宜変更可能である。例えば、後述する液晶表示装置11に表示されるホールメニュー画面上で選択可能なメニューに閾値設定メニューを設け、当該メニューが選択された場合に、閾値を任意の値に変更してもよい。例えば、閾値は「5」、「10」、「15」の3段階で設定可能としてもよく、また、「1」〜「99」の値を任意に設定可能としてもよい。なお、上述した閾値「5」は、デフォルトで設定される閾値であり、サブRAM103のバックアップ領域に格納される。
Next, the sub CPU 102 registers the C2_2 error in the error information history (S161). Specifically, the sub CPU 102 stores “C2_2” as the error content and the current date and time as the occurrence date and time in the error information history area provided in the sub RAM 103. Then, the sub CPU 102 ends the process at the time of receiving the determination completion command, and returns the process to the step S124 of the medal selector communication task (see FIG. 54).
Note that the threshold value in step S154 can be changed as appropriate. For example, a threshold setting menu may be provided in a menu that can be selected on a hole menu screen displayed on the liquid crystal display device 11 described later, and the threshold may be changed to an arbitrary value when the menu is selected. For example, the threshold value may be set in three stages of “5”, “10”, and “15”, and the value of “1” to “99” may be set arbitrarily. Note that the above-described threshold “5” is a threshold set by default, and is stored in the backup area of the sub RAM 103.

[メダルセレクタエラーコマンド受信時処理]
メダルセレクタエラーコマンド受信時処理について、図62を参照して、説明する。図62は、メダルセレクタエラーコマンド受信時処理の一例を示すフローチャートである。
メダルセレクタエラーコマンド受信時処理において、まず、サブCPU102は、C1エラー発生中か否かを判定する(S171)。具体的には、サブCPU102は、液晶表示装置11に図63に示すC1エラー画面が表示されているか否かを確認し、C1エラー画面が表示中の場合は、エラー発生中と判定し、表示中でない場合は、エラー発生中でないと判定する。
[Process when receiving a medal selector error command]
The process at the time of receiving the medal selector error command will be described with reference to FIG. FIG. 62 is a flowchart illustrating an example of a process when a medal selector error command is received.
In the process at the time of receiving the medal selector error command, first, the sub CPU 102 determines whether or not a C1 error is occurring (S171). Specifically, the sub CPU 102 checks whether or not the C1 error screen shown in FIG. 63 is displayed on the liquid crystal display device 11, and if the C1 error screen is being displayed, it is determined that an error has occurred, and the display is performed. If not, it is determined that no error has occurred.

図63に示すC1エラー画面は、上述のC2エラー画面(図61参照)と比べ、ハイライト表示がされる四角枠が、C2のエラーコードが表示されている四角枠ではなく、C1のエラーコードが表示されている四角枠である点以外、C2エラー画面と同様の画面である。   The C1 error screen shown in FIG. 63 is different from the above-described C2 error screen (see FIG. 61) in that the highlighted square is not the square in which the C2 error code is displayed, but the C1 error code. Is a screen similar to the C2 error screen except that it is a square frame in which is displayed.

ここで、本実施形態では、メダルセレクタに係るエラーの種類として、C1エラーとC2エラーの2種類がある。C2エラーは、副制御回路101(のサブCPU102)によって、発生したと判断されるエラー(例えば、上述のC2_1、C2_2エラー及び後述のC2_3エラー、C2_4エラー)であり、C2エラー発生時には、C2エラー画面(図61参照)が表示される。   Here, in the present embodiment, there are two types of errors relating to the medal selector, a C1 error and a C2 error. The C2 error is an error (for example, the above-described C2_1 and C2_2 errors and the below-described C2_3 error and C2_4 error) determined to have occurred by (the sub CPU 102 of) the sub-control circuit 101. When a C2 error occurs, the C2 error occurs. A screen (see FIG. 61) is displayed.

一方、C1エラーは、メダルセレクタ201(の制御LSI234)によって、発生したと判断されるエラーである。本実施形態において、C1エラーには、異物検出エラー、カバー開放エラー、掃除エラー、色テンプレート生成エラー、刻印テンプレート生成エラー、ハードエラーの6種類がある。   On the other hand, the C1 error is an error determined to have occurred by (the control LSI 234 of) the medal selector 201. In the present embodiment, there are six types of C1 errors: a foreign object detection error, a cover opening error, a cleaning error, a color template generation error, an engraved template generation error, and a hard error.

ステップS171の処理で、C1エラー発生中であると判定する場合(S171がYES判定の場合)、サブCPU102は、メダルセレクタエラーコマンド受信時処理を終了し、処理をメダルセレクタ通信タスク(図54参照)のステップS124に戻す。   If it is determined in step S171 that a C1 error is occurring (if S171 is determined to be YES), the sub CPU 102 ends the medal selector error command receiving process, and proceeds to the medal selector communication task (see FIG. 54). Return to step S124).

一方、ステップS171の処理で、C1エラー発生中でないと判定する場合(S171がNO判定の場合)、サブCPU102は、受信バッファのエラー状態が0か否かを判定する(S172)。具体的には、サブCPU102は、受信バッファに記憶されているメダルセレクタエラーコマンドのDAT0又はメダルセレクタ無操作コマンドのDAT2(図45参照)を参照し、すなわちエラー状態を示すデータを参照する。そして、値が「エラーなし」を示す「0」か否かを判定する。   On the other hand, when it is determined in step S171 that the C1 error is not occurring (NO in S171), the sub CPU 102 determines whether the error state of the reception buffer is 0 (S172). Specifically, the sub CPU 102 refers to the medal selector error command DAT0 or the medal selector non-operation command DAT2 (see FIG. 45) stored in the reception buffer, that is, refers to data indicating an error state. Then, it is determined whether or not the value is “0” indicating “no error”.

ステップS172で、エラー状態を示すデータの値が「0」であると判定する場合(S172がYES判定の場合)、サブCPU102は、メダルセレクタエラーコマンド受信時処理を終了し、処理をメダルセレクタ通信タスク(図54参照)のステップS124に戻す。   If it is determined in step S172 that the value of the data indicating the error state is “0” (YES in step S172), the sub CPU 102 ends the medal selector error command receiving process, and proceeds to the medal selector communication. The process returns to step S124 of the task (see FIG. 54).

一方、ステップS172で、エラー状態を示すデータの値が「0」でない判定する場合(S172がNO判定の場合)、サブCPU102は、C1エラー画面表示要求を行う(S173)。具体的には、サブCPU102は、C1エラー画面(図63参照)の表示を、液晶表示装置11に指示する。   On the other hand, if it is determined in step S172 that the value of the data indicating the error state is not “0” (NO in S172), the sub CPU 102 issues a C1 error screen display request (S173). Specifically, the sub CPU 102 instructs the liquid crystal display device 11 to display a C1 error screen (see FIG. 63).

次に、サブCPU102は、「C1_*」エラーをエラー情報履歴に登録する(S174)。具体的には、サブCPU102は、サブRAM103に設けられたエラー情報履歴領域に、受信バッファに記憶されているコマンドにおけるエラー状態に応じたエラー内容(「1」〜「6」のいずれか)と発生日時として現在の日付と時刻を登録する。例えば、受信バッファに記憶されているコマンドにおけるエラー状態が「刻印テンプレート生成エラー」を示す「5」の場合、エラー内容として「C1_5」が登録される。そして、サブCPU102は、メダルセレクタエラーコマンド受信時処理を終了し、処理をメダルセレクタ通信タスク(図54参照)のステップS124に戻す。   Next, the sub CPU 102 registers a “C1_ *” error in the error information history (S174). Specifically, the sub CPU 102 stores, in an error information history area provided in the sub RAM 103, an error content (one of “1” to “6”) corresponding to the error state of the command stored in the reception buffer. Register the current date and time as the occurrence date and time. For example, when the error state of the command stored in the reception buffer is “5” indicating “engraved template generation error”, “C1_5” is registered as the error content. Then, the sub CPU 102 ends the process at the time of receiving the medal selector error command, and returns the process to the step S124 of the medal selector communication task (see FIG. 54).

[メダルセレクタ無操作コマンド受信時処理]
メダルセレクタ無操作コマンド受信時処理について、図64を参照して、説明する。図64は、メダルセレクタ無操作コマンド受信時処理の一例を示すフローチャートである。
メダルセレクタ無操作コマンド受信時処理において、まず、サブCPU102は、受信バッファに記憶されているメダルセレクタ無操作コマンドのDAT0のビット0の値が「初期化あり」を示す「1」か否かを判定する(S181)。初期化ありでないと判定する場合(S181がNO判定の場合)、サブCPU102は、処理を後述するステップS183に移行させる。
[Medal selector non-operation command reception processing]
The process at the time of receiving the medal selector non-operation command will be described with reference to FIG. FIG. 64 is a flowchart illustrating an example of a process when a medal selector non-operation command is received.
In the process at the time of receiving the medal selector non-operation command, first, the sub CPU 102 determines whether or not the value of bit 0 of DAT0 of the medal selector non-operation command stored in the reception buffer is “1” indicating “with initialization”. A determination is made (S181). If it is determined that there is no initialization (NO in S181), the sub CPU 102 shifts the processing to step S183 described later.

一方、初期化ありと判定する場合(S181がYES判定の場合)、サブCPU102は、初期化エラー画面表示要求を行う(S182)。具体的には、サブCPU102は、初期化エラー画面の表示を、液晶表示装置11に指示する。当該指示を受けた液晶表示装置11は、初期化エラー画面(図57参照)を、表示部11aに表示させる。   On the other hand, if it is determined that the initialization has been performed (YES in S181), the sub CPU 102 issues an initialization error screen display request (S182). Specifically, the sub CPU 102 instructs the liquid crystal display device 11 to display an initialization error screen. The liquid crystal display device 11 that has received the instruction causes the display unit 11a to display an initialization error screen (see FIG. 57).

ステップS182の後、又は、ステップS181で初期化ありでないと判定する場合(S181がNO判定の場合)、サブCPU102は、起動回数判定処理を行う(S183)。起動回数判定処理では、メダルセレクタ201で計数する電源投入の回数と、副制御回路101で計数する電源投入の回数と、の整合を確認し、両者の差が予め設定した閾値以上の場合にエラーを報知する。なお、起動回数判定処理の詳細については、後述する。   After step S182, or when it is determined in step S181 that there is no initialization (NO in step S181), the sub CPU 102 performs a startup number determination process (S183). In the number-of-starts-up determination process, matching between the number of power-on times counted by the medal selector 201 and the number of power-on times counted by the sub-control circuit 101 is checked, and if the difference between them is equal to or greater than a preset threshold value, an error occurs. Notify. The details of the activation count determination process will be described later.

次に、サブCPU102は、スイッチ状態判定処理を行う(S184)。スイッチ状態判定処理では、メダルセレクタ201の各種スイッチの状態を確認し、変化がある場合はエラー情報履歴に登録する。なお、スイッチ状態判定処理の詳細については、後述する。   Next, the sub CPU 102 performs a switch state determination process (S184). In the switch state determination process, the states of various switches of the medal selector 201 are checked, and if there is a change, the change is registered in the error information history. The details of the switch state determination processing will be described later.

次に、サブCPU102は、上述のメダルセレクタエラーコマンド受信時処理(図62参照)を行う(S185)。これによって、何らかの障害が生じて、副制御回路101がメダルセレクタ201からのエラーコマンドを受信できなかった場合にも、メダルセレクタ無操作コマンドを受信することで、副制御回路101は、メダルセレクタ201の生じているエラー状態を適切に検知し、報知することができる。そして、サブCPU102は、メダルセレクタ無操作コマンド受信時処理を終了し、処理をメダルセレクタ通信タスク(図54参照)のステップS124に戻す。   Next, the sub CPU 102 performs the above-described processing at the time of receiving the medal selector error command (see FIG. 62) (S185). As a result, even if a failure occurs and the sub-control circuit 101 cannot receive the error command from the medal selector 201, the sub-control circuit 101 receives the medal selector non-operation command, and The error state where the error has occurred can be appropriately detected and notified. Then, the sub CPU 102 ends the process at the time of receiving the medal selector non-operation command, and returns the process to the step S124 of the medal selector communication task (see FIG. 54).

[起動回数判定処理]
起動回数判定処理について、図65を参照して、説明する。図65は、起動回数判定処理の一例を示すフローチャートである。
起動回数判定処理において、まず、サブCPU102は、受信バッファから起動回数を取得し、起動回数とサブ電源投入カウンタの値の差を算出する(S191)。具体的には、サブCPU102は、受信バッファに記憶されているメダルセレクタ201から受信したメダルセレクタ無操作コマンドのDAT3,4(図45参照)を参照して起動回数を取得し、サブ電源投入カウンタの値の差の絶対値を算出する。
[Start count determination process]
The activation count determination processing will be described with reference to FIG. FIG. 65 is a flowchart illustrating an example of the activation count determination process.
In the startup count determination process, first, the sub CPU 102 acquires the startup count from the reception buffer, and calculates the difference between the startup count and the value of the sub power-on counter (S191). Specifically, the sub CPU 102 obtains the number of activations with reference to the medal selector non-operation command DAT3, 4 (see FIG. 45) received from the medal selector 201 stored in the reception buffer, and obtains the sub power-on counter. Calculate the absolute value of the difference between the values.

次に、ステップS191で算出した差の絶対値が予め設定した閾値以上か否かを判定する(S192)。本実施形態において、閾値として「5」が設定されている。なお、閾値は適宜変更可能である。ステップS192で、差が閾値以上でないと判定する場合(S192がNO判定の場合)、サブCPU102は、起動回数判定処理を終了し、処理をメダルセレクタ無操作コマンド受信時処理(図64参照)のステップS184に戻す。   Next, it is determined whether or not the absolute value of the difference calculated in step S191 is equal to or greater than a preset threshold (S192). In the present embodiment, “5” is set as the threshold. Note that the threshold value can be changed as appropriate. If it is determined in step S192 that the difference is not greater than or equal to the threshold value (NO in step S192), the sub CPU 102 ends the number-of-startups determination process, and proceeds to the process for receiving the medal selector non-operation command (see FIG. 64). It returns to step S184.

一方、ステップS192で、差が閾値以上であると判定する場合(S192がYES判定の場合)、サブCPU102はC2エラー画面表示要求を行う(S193)。具体的には、サブCPU102は、上述のC2エラー画面(図61参照)の表示を、液晶表示装置11に指示する。当該指示を受けた液晶表示装置11は、C2エラー画面を、表示部11aに表示させる。   On the other hand, if it is determined in step S192 that the difference is equal to or larger than the threshold value (YES in step S192), the sub CPU 102 issues a C2 error screen display request (step S193). Specifically, the sub CPU 102 instructs the liquid crystal display device 11 to display the above-described C2 error screen (see FIG. 61). The liquid crystal display device 11 having received the instruction causes the display unit 11a to display a C2 error screen.

次に、サブCPU102は、C2_3エラーをエラー情報履歴に登録する(S194)。具体的には、サブCPU102は、サブRAM103に設けられたエラー情報履歴領域に、エラー内容として「C2_3」、発生日時として現在の日付と時刻を記憶させる。そして、サブCPU102は、起動回数判定処理を終了し、処理をメダルセレクタ無操作コマンド受信時処理(図64参照)のステップS184に戻す。   Next, the sub CPU 102 registers the C2_3 error in the error information history (S194). Specifically, the sub CPU 102 stores “C2 — 3” as the error content and the current date and time as the occurrence date and time in the error information history area provided in the sub RAM 103. Then, the sub CPU 102 ends the activation count determination process, and returns the process to the step S184 of the process when the medal selector non-operation command is received (see FIG. 64).

[スイッチ状態判定処理]
スイッチ状態判定処理について、図66を参照して、説明する。図66は、スイッチ状態判定処理の一例を示すフローチャートである。
スイッチ状態判定処理において、まず、サブCPU102は、受信バッファからスイッチ情報を取得する(S201)。具体的には、サブCPU102は、受信バッファに記憶されているメダルセレクタ201から受信したメダルセレクタ無操作コマンドのDAT1(図45参照)を参照し、スイッチ情報、すなわち初期化スイッチ206d、色スイッチ206e及び刻印スイッチの状態206f(ON/OFFの状態)を取得する。
[Switch status judgment processing]
The switch state determination processing will be described with reference to FIG. FIG. 66 is a flowchart illustrating an example of the switch state determination process.
In the switch state determination processing, first, the sub CPU 102 acquires switch information from the reception buffer (S201). Specifically, the sub CPU 102 refers to DAT1 (see FIG. 45) of the medal selector non-operation command received from the medal selector 201 stored in the reception buffer, and refers to the switch information, that is, the initialization switch 206d and the color switch 206e. And the state 206f (ON / OFF state) of the marking switch.

次に、ステップS201で取得したスイッチ情報と、第2スイッチ情報記憶領域に記憶されているスイッチ情報と、が一致するか否かを判定する(S202)。具体的には、サブCPU102は、起動完了コマンド受信時処理(図56参照)のステップS148又は後述のステップS209で、サブRAM103の第2スイッチ情報記憶領域に記憶させたスイッチ情報と、ステップS201で取得したスイッチ情報とが一致するか否かを判定する。一致すると判定する場合(S202がYES判定の場合)、サブCPU102は、スイッチ状態判定処理を終了し、処理をメダルセレクタ無操作コマンド受信時処理(図64参照)のステップS185に戻す。   Next, it is determined whether the switch information acquired in step S201 matches the switch information stored in the second switch information storage area (S202). Specifically, the sub CPU 102 determines whether the switch information stored in the second switch information storage area of the sub RAM 103 in step S148 of the process at the time of receiving the activation completion command (see FIG. 56) or step S209, which will be described later, and in step S201. It is determined whether or not the acquired switch information matches. If it is determined that they match (if S202 is YES), the sub CPU 102 ends the switch state determination processing, and returns the processing to step S185 of the medal selector non-operation command reception processing (see FIG. 64).

一方、ステップ202において、ステップS201で取得したスイッチ情報と、第2スイッチ情報記憶領域に記憶されているスイッチ情報と、が一致しないと判定する場合(S202がNO判定の場合)、サブCPU102は、処理をS203に移行する。S203において、サブCPU102は、刻印判定は有効か否かを判定する(S203)。具体的には、サブCPU102は、起動完了コマンド受信時処理(図56参照)のステップS141で保存した設定情報のビット2の値が1(刻印判定有効)か否かを判定する。   On the other hand, if it is determined in step 202 that the switch information acquired in step S201 does not match the switch information stored in the second switch information storage area (if S202 is NO), the sub CPU 102 The process shifts to S203. In S203, the sub CPU 102 determines whether or not the marking determination is valid (S203). Specifically, the sub CPU 102 determines whether or not the value of the bit 2 of the setting information stored in step S141 of the process for receiving the activation completion command (see FIG. 56) is 1 (marking determination is valid).

ステップS203で、刻印判定が有効でないと判定する場合(S203がNO判定の場合)、サブCPU102は、処理を後述のステップS206に移行させる。一方、ステップS203で、刻印判定が有効であると判定する場合(S203がYES判定の場合)、サブCPU102は、処理をステップS204に移行させる。ステップ204において、サブCPU102は、ステップS201で取得したスイッチ情報の内で刻印スイッチに係るスイッチ情報(ON/OFFの状態)と、第2スイッチ情報記憶領域に記憶されている刻印スイッチに係るスイッチ情報(ON/OFFの状態)と、が一致するか否かを判定する(S204)。一致すると判定する場合(S204がYES判定の場合)、サブCPU102は、処理を後述のステップS206に移行させる。   If it is determined in step S203 that the marking determination is not valid (NO in step S203), the sub CPU 102 shifts the processing to step S206 described below. On the other hand, if it is determined in step S203 that the marking determination is valid (YES in step S203), the sub CPU 102 shifts the processing to step S204. In step 204, the sub CPU 102 switches the switch information (ON / OFF state) of the engraved switch from the switch information acquired in step S201 and the switch information of the engraved switch stored in the second switch information storage area. (ON / OFF state) is determined (S204). When it is determined that they match (when S204 is YES), the sub CPU 102 shifts the processing to step S206 described later.

一方、ステップS205で、一致しないと判定する場合(S204がNO判定の場合)、「CMOS MARK *」をエラー情報履歴に登録する(S205)。具体的には、サブCPU102は、サブRAM103に設けられたエラー情報履歴領域に、エラー内容として「CMOS MARK *」と、発生日時として現在の日付と時刻を記憶させる。エラー内容には、ステップS201で取得したスイッチ情報の内で刻印スイッチに係るスイッチ情報(ON/OFFの状態)に応じて、「CMOS MARK ON」又は「CMOS MARK OFF」を登録する。取得した刻印スイッチに係るスイッチ情報が「ON状態」を示している場合は、エラー内容として「CMOS MARK ON」を登録し、取得した刻印スイッチに係るスイッチ情報が「OFF状態」を示している場合は、エラー内容として「CMOS MARK OFF」を登録する。   On the other hand, if it is determined in step S205 that they do not match (NO in S204), “CMOS MARK *” is registered in the error information history (S205). Specifically, the sub CPU 102 stores “CMOS MARK *” as the error content and the current date and time as the occurrence date and time in the error information history area provided in the sub RAM 103. In the error content, “CMOS MARK ON” or “CMOS MARK OFF” is registered according to the switch information (ON / OFF state) of the engraved switch among the switch information acquired in step S201. When the acquired switch information on the engraved switch indicates “ON state”, “CMOS MARK ON” is registered as the error content, and the obtained switch information on the engraved switch indicates “OFF state”. Registers "CMOS MARK OFF" as the error content.

ステップS205の後、或いは、ステップS203でNO判定の場合、又は、ステップS204でYES判定の場合、サブCPU102は、処理をステップS206に移行させる。ステップS206で、サブCPU102は、色判定は有効か否かを判定する(S206)。具体的には、サブCPU102は、起動完了コマンド受信時処理(図56参照)のステップS141で保存した設定情報のビット1の値が1(色判定有効)か否かを判定する。   After step S205, or in the case of a NO determination in step S203, or in the case of a YES determination in step S204, sub CPU 102 shifts the processing to step S206. In step S206, the sub CPU 102 determines whether the color determination is valid (S206). Specifically, the sub CPU 102 determines whether or not the value of the bit 1 of the setting information stored in step S141 of the processing at the time of receiving the activation completion command (see FIG. 56) is 1 (color determination is valid).

ステップS206で、色判定が有効でないと判定する場合(S206がNO判定の場合)、サブCPU102は、処理を後述のステップS209に移行させる。一方、ステップS206で、色判定が有効であると判定する場合(S206がYES判定の場合)、サブCPU102は、処理をステップS207に移行させる。ステップ207において、サブCPU102は、ステップS201で取得したスイッチ情報の内で色スイッチに係るスイッチ情報(ON/OFFの状態)と、第2スイッチ情報記憶領域に記憶されている色スイッチに係るスイッチ情報(ON/OFFの状態)と、が一致するか否かを判定する(S207)。一致すると判定する場合(S206がYES判定の場合)、サブCPU102は、処理を後述のステップS209に移行させる。   If it is determined in step S206 that the color determination is not valid (NO in step S206), the sub CPU 102 shifts the processing to step S209 described below. On the other hand, if it is determined in step S206 that the color determination is valid (YES in step S206), the sub CPU 102 shifts the processing to step S207. In step 207, the sub CPU 102 determines the switch information (ON / OFF state) related to the color switch in the switch information acquired in step S201, and the switch information related to the color switch stored in the second switch information storage area. (ON / OFF state) is determined (S207). When it is determined that they match (when S206 is YES), the sub CPU 102 shifts the processing to step S209 described below.

一方、ステップS207で、一致しないと判定する場合(S207がNO判定の場合)、「CMOS COL *」をエラー情報履歴に登録する(S208)。具体的には、サブCPU102は、サブRAM103に設けられたエラー情報履歴領域に、エラー内容として「CMOS COL *」と、発生日時として現在の日付と時刻を記憶させる。エラー内容には、ステップS201で取得したスイッチ情報の内で色スイッチに係るスイッチ情報(ON/OFFの状態)に応じて、「CMOS COL ON」又は「CMOS COL OFF」を登録する。取得した色スイッチに係るスイッチ情報が「ON状態」を示している場合は、エラー内容として「CMOS COL ON」を登録し、取得した色スイッチに係るスイッチ情報が「OFF状態」を示している場合は、エラー内容として「CMOS COL OFF」を登録する。   On the other hand, if it is determined in step S207 that they do not match (NO in S207), “CMOS COL *” is registered in the error information history (S208). Specifically, the sub CPU 102 stores “CMOS COL *” as the error content and the current date and time as the occurrence date and time in the error information history area provided in the sub RAM 103. In the error content, “CMOS COL ON” or “CMOS COL OFF” is registered according to the switch information (ON / OFF state) related to the color switch among the switch information acquired in step S201. When the acquired switch information on the color switch indicates “ON state”, “CMOS COL ON” is registered as the error content, and the switch information on the acquired color switch indicates “OFF state”. Registers "CMOS COL OFF" as the error content.

ステップS208の後、或いは、ステップS206でNO判定の場合、又は、ステップS207でYES判定の場合、サブCPU102は、処理をステップS209に移行させる。ステップS209で、サブCPU102は、ステップS201で取得したスイッチ情報、すなわち初期化スイッチ、色スイッチ及び刻印スイッチの状態(ON/OFFの状態)を、第2スイッチ情報記憶領域に保存する(上書きして記憶する)。そして、サブCPU102は、スイッチ状態判定処理を終了し、処理をメダルセレクタ無操作コマンド受信時処理(図64参照)のステップS185に戻す。   After step S208, or in the case of a NO determination in step S206, or in the case of a YES determination in step S207, sub CPU 102 shifts the processing to step S209. In step S209, the sub CPU 102 saves (overwrites) the switch information acquired in step S201, that is, the states (ON / OFF states) of the initialization switch, the color switch, and the engraving switch in the second switch information storage area. Remember). Then, the sub CPU 102 ends the switch state determination processing, and returns the processing to step S185 of the processing when the medal selector non-operation command is received (see FIG. 64).

[メダル投入コマンド受信時処理]
メダル投入コマンド受信時処理について、図67を参照して、説明する。図67は、メダル投入コマンド受信時処理の一例を示すフローチャートである。サブCPU102は、副制御回路101が主制御回路91からメダル投入コマンドを受信したときに、投入コマンド受信時処理を行う。
[Medal input command reception processing]
The process of receiving a medal insertion command will be described with reference to FIG. FIG. 67 is a flowchart illustrating an example of a medal insertion command receiving process. When the sub control circuit 101 receives the medal insertion command from the main control circuit 91, the sub CPU 102 performs an insertion command reception process.

メダル投入コマンド受信時処理において、まず、サブCPU102は、受信バッファのクレジット投入カウンタは0か否かを判定する(S211)。ここで、上述のようにメダル投入コマンドのパラメータには、クレジット投入カウンタが含まれている。クレジット投入カウンタは、クレジットされたメダル枚数からBETを行うメダル枚数を特定する情報である。すなわち、メダル投入コマンドにおけるクレジット投入カウンタの値が「0」であることは、クレジットされたメダルがBETされたことによって投入コマンドが送信されたのではないことを示している。   In the medal insertion command receiving process, first, the sub CPU 102 determines whether or not the credit insertion counter of the reception buffer is 0 (S211). Here, as described above, the parameters of the medal insertion command include a credit insertion counter. The credit insertion counter is information for specifying the number of medals to be BET based on the number of credited medals. That is, the fact that the value of the credit insertion counter in the medal insertion command is “0” indicates that the insertion command was not transmitted because the credited medal was bet.

ステップS211では、サブCPU102は、サブRAM103の受信バッファに記憶されているメダル投入コマンドを参照し、メダル投入コマンドに含まれているクレジット投入カウンタの値が「0」であるか否かを判定する。クレジット投入カウンタの値が「0」でないと判定する場合(S211がNO判定の場合)、サブCPU102は、メダル投入コマンド受信時処理を終了する。   In step S211, the sub CPU 102 refers to the medal insertion command stored in the reception buffer of the sub RAM 103 and determines whether the value of the credit insertion counter included in the medal insertion command is “0”. . When it is determined that the value of the credit insertion counter is not “0” (NO in S211), the sub CPU 102 terminates the medal insertion command receiving process.

一方、クレジット投入カウンタの値が「0」であると判定する場合(S211がYES判定の場合)、サブCPU102は、サブメダル投入カウンタの値に1を加算する(S212)。サブメダル投入カウンタは、サブRAM103に設けられており、サブメダル投入カウンタは、遊技開始時すなわちスタートコマンド受信時、または、遊技終了時すなわち入賞コマンド受信時に、0がセットされる(クリアされる)。   On the other hand, when it is determined that the value of the credit insertion counter is “0” (YES in S211), the sub CPU 102 adds 1 to the value of the sub medal insertion counter (S212). The sub medal insertion counter is provided in the sub RAM 103. The sub medal insertion counter is set (cleared) to 0 when the game starts, that is, when a start command is received, or when the game ends, that is, when a winning command is received.

次に、サブCPU102は、メダルセレクタ201から判定完了コマンドを受信したか否かを判定する(S213)。受信したと判定する場合(S213がYES判定の場合)、サブCPU102は、メダル投入コマンド受信時処理を終了する。一方、受信していないと判定する場合(S213がNO判定の場合)、サブメダル投入カウンタの値が所定値以上か否かを判定する(S214)。なお、ここでの所定値は、適宜設定可能である。本実施形態では、この所定値として「3」が設定されている。   Next, the sub CPU 102 determines whether or not a determination completion command has been received from the medal selector 201 (S213). When it is determined that the medal insertion command has been received (YES in S213), the sub CPU 102 ends the medal insertion command receiving process. On the other hand, if it is determined that the sub medal has not been received (NO in S213), it is determined whether the value of the sub medal insertion counter is equal to or greater than a predetermined value (S214). Here, the predetermined value can be set as appropriate. In the present embodiment, “3” is set as the predetermined value.

ステップS214で、サブCPU102が、サブメダル投入カウンタの値が所定値以上でないと判定する場合(S214がNO判定の場合)、サブCPU102は、メダル投入コマンド受信時処理を終了する。一方、サブメダル投入カウンタの値が所定値以上であると判定する場合(S214がYES判定の場合)、サブCPU102は、C2エラー画面表示要求を行う。具体的には、サブCPU102は、上述のC2エラー画面(図61参照)の表示を、液晶表示装置11に指示する。当該指示を受けた液晶表示装置11は、C2エラー画面を、表示部11aに表示させる。   When the sub CPU 102 determines in step S214 that the value of the sub medal insertion counter is not equal to or greater than the predetermined value (NO in S214), the sub CPU 102 terminates the medal insertion command receiving process. On the other hand, when it is determined that the value of the sub medal insertion counter is equal to or more than the predetermined value (YES in S214), the sub CPU 102 issues a C2 error screen display request. Specifically, the sub CPU 102 instructs the liquid crystal display device 11 to display the above-described C2 error screen (see FIG. 61). The liquid crystal display device 11 having received the instruction causes the display unit 11a to display a C2 error screen.

次に、サブCPU102は、C2_4エラーをエラー情報履歴に登録する(S216)。具体的には、サブCPU102は、サブRAM103に設けられたエラー情報履歴領域に、エラー内容として「C2_4」、発生日時として現在の日付と時刻を記憶させる。そして、サブCPU102は、メダル投入コマンド受信時処理を終了する。   Next, the sub CPU 102 registers the C2_4 error in the error information history (S216). Specifically, the sub CPU 102 stores “C2_4” as the error content and the current date and time as the occurrence date and time in the error information history area provided in the sub RAM 103. Then, the sub CPU 102 ends the medal insertion command receiving process.

[メダルセレクタコマンド送信処理]
メダルセレクタコマンド送信処理について、図68を参照して、説明する。図68は、メダルセレクタコマンド送信処理の一例を示すフローチャートである。
メダルセレクタコマンド送信処理において、サブCPU102は、まず、ACK又はNAK受信時か否かを判定する(S221)。具体的には、サブCPU102は、メダルセレクタ201から直近に受信したコマンドが、ACK又はNAKコマンドか否かを判定する。ACK又はNAK受信時であると判定する場合(S221がYES判定の場合)、サブCPU102は、処理を後述するステップS223に移行させる。
[Medal selector command transmission processing]
The medal selector command transmission processing will be described with reference to FIG. FIG. 68 is a flowchart showing an example of the medal selector command transmission processing.
In the medal selector command transmission processing, the sub CPU 102 first determines whether or not ACK or NAK has been received (S221). Specifically, the sub CPU 102 determines whether the command received most recently from the medal selector 201 is an ACK or NAK command. If it is determined that ACK or NAK is being received (YES in S221), sub CPU 102 shifts the processing to step S223 described later.

一方、ステップS221においてACK又はNAK受信時でないと判定する場合(S221がNO判定の場合)、サブCPU102は、ACK/NAK送信処理を行う(S222)。この処理において、サブCPU102は、メダルセレクタ201にACK又はNAKコマンド(図45参照)を送信する。そして、サブCPU102は、メダルセレクタコマンド送信処理を終了する。   On the other hand, if it is determined in step S221 that ACK or NAK has not been received (NO in S221), sub CPU 102 performs an ACK / NAK transmission process (S222). In this process, the sub CPU 102 transmits an ACK or NAK command (see FIG. 45) to the medal selector 201. Then, the sub CPU 102 ends the medal selector command transmission processing.

ステップS221で、ACK又はNAK受信時であると判定する場合(S221がYES判定の場合)、サブCPU102は、エラー解除判定処理を行う(S223)。エラー解除判定処理では、サブCPU102は、各種エラーに係る解除条件が成立すると、解除条件が成立したエラーに係る解除条件フラグに成立をセットする(値「1」をセットする)。なお、エラー解除判定処理の詳細は、後述する。   If it is determined in step S221 that ACK or NAK has been received (YES in S221), the sub CPU 102 performs an error release determination process (S223). In the error release determination process, when the release conditions relating to various errors are satisfied, the sub CPU 102 sets the release condition flag relating to the error for which the release conditions are satisfied to be satisfied (sets the value “1”). The details of the error release determination processing will be described later.

次に、サブCPU102は、C1エラー発生中、且つ、解除条件フラグが成立か否かを判定する(S224)。具体的には、サブCPU102は、液晶表示装置11にC1エラー画面(図63参照)が表示されているか否かに基づいてC1エラー発生中か否かを判定する。また、サブCPU102は、サブRAM103に設けられている解除条件フラグ格納領域に「1」がセットされているか否かに基づいて解除条件フラグが成立しているか否かを判定する。C1エラーが発生中でない、又は、解除条件フラグが成立でないと判定する場合(S224がNO判定の場合)、サブCPU102は、処理を後述のステップS226に移行させる。   Next, the sub CPU 102 determines whether the C1 error is occurring and whether the release condition flag is satisfied (S224). Specifically, the sub CPU 102 determines whether or not a C1 error is occurring based on whether or not a C1 error screen (see FIG. 63) is displayed on the liquid crystal display device 11. The sub CPU 102 determines whether the release condition flag is established based on whether “1” is set in the release condition flag storage area provided in the sub RAM 103. When it is determined that the C1 error is not occurring or the cancellation condition flag is not satisfied (NO in S224), the sub CPU 102 shifts the processing to step S226 described later.

一方、ステップS224において解除条件フラグが成立である判定する場合(S224がYES判定の場合)、サブCPU102は、エラー解除コマンド送信処理を行う(S225)。この処理において、サブCPU102は、メダルセレクタ201にエラー解除コマンドを送信する。そして、サブCPU102は、メダルセレクタコマンド送信処理を終了する。なお、サブCPU102は、副制御回路101がエラー解除コマンドに対するACKコマンドをメダルセレクタ201から受信したとき、上述のメダルセレクタコマンド受信処理(図55)のステップS138のACK/NAK受信時処理において、液晶表示装置11にC1エラー画面の表示の終了を指示する。   On the other hand, if it is determined in step S224 that the release condition flag is satisfied (YES in step S224), the sub CPU 102 performs an error release command transmission process (S225). In this process, the sub CPU 102 transmits an error release command to the medal selector 201. Then, the sub CPU 102 ends the medal selector command transmission processing. When the sub control circuit 101 receives an ACK command corresponding to the error release command from the medal selector 201 from the medal selector 201, the sub CPU 102 performs the liquid crystal in the ACK / NAK reception process in step S138 of the medal selector command reception process (FIG. 55). It instructs the display device 11 to end the display of the C1 error screen.

ステップS224で、解除条件フラグが成立でないと判定する場合(S224がNO判定の場合)、サブCPU102は、メダル受付フラグはメダル受付不可か否かを判定する(S226)。メダル受付フラグ格納領域は、サブRAM103に設けられている。メダル受付フラグ格納領域には、後述するステップS229,S232で、主制御回路91から受信した無操作コマンドに含まれているメダルソレノイド208のON/OFF状態の情報に基づいて、ON状態の場合は「1」(受付可)、OFF状態の場合は「0」(受付不可)がセットされる。ステップS226で、メダル受付フラグはメダル受付不可でない(受付可である)と判定する場合(S226がNO判定の場合)、サブCPU102は、処理を後述するステップS230に移行させる。   If it is determined in step S224 that the cancellation condition flag is not satisfied (NO in S224), the sub CPU 102 determines whether the medal acceptance flag indicates that the medal cannot be accepted (S226). The medal acceptance flag storage area is provided in the sub RAM 103. In the medal reception flag storage area, in steps S229 and S232 to be described later, based on the information on the ON / OFF state of the medal solenoid 208 included in the no-operation command received from the main control circuit 91, when the ON state is set, “1” (acceptable) and “0” (acceptable) are set in the OFF state. If it is determined in step S226 that the medal reception flag indicates that the medal cannot be received (acceptance is possible) (if S226 is NO), the sub CPU 102 shifts the processing to step S230 described below.

ステップS226で、メダル受付フラグはメダル受付不可であると判定する場合(S226がYES判定の場合)、サブCPU102は、無操作コマンドのメダルソレノイドはON状態か否かを判定する(S227)。具体的には、サブCPU102は、主制御回路91から受信した直近の無操作コマンドが格納されている無操作コマンド格納領域を参照し、この無操作コマンドに含まれるメダルソレノイド208のON/OFF状態の情報に基づいて、メダルソレノイドはON状態か否かを判定する。なお、無操作コマンド格納領域は、上述のとおりサブRAM103に設けられている。   If it is determined in step S226 that the medal acceptance flag indicates that the medal cannot be accepted (YES in S226), the sub CPU 102 determines whether the medal solenoid of the no-operation command is in the ON state (S227). Specifically, the sub CPU 102 refers to the no-operation command storage area in which the most recent no-operation command received from the main control circuit 91 is stored, and sets the ON / OFF state of the medal solenoid 208 included in the no-operation command. It is determined whether or not the medal solenoid is in the ON state based on the above information. Note that the no-operation command storage area is provided in the sub RAM 103 as described above.

ステップS227で、メダルソレノイドはON状態でないと判定する場合(S227がNO判定の場合)、サブCPU102は、メダルセレクタコマンド送信処理を終了する。一方、ステップS227で、メダルソレノイドはON状態であると判定する場合(S227がYES判定の場合)、サブCPU102は、投入状態(可)コマンドを送信する(S228)。具体的には、サブCPU102は、DAT0の値が「1」(受付可)の投入状態コマンドを、メダルセレクタ201に送信する。   If it is determined in step S227 that the medal solenoid is not in the ON state (if S227 is NO), the sub CPU 102 ends the medal selector command transmission processing. On the other hand, if it is determined in step S227 that the medal solenoid is in the ON state (if S227 is determined to be YES), the sub CPU 102 transmits an insertion state (possible) command (S228). Specifically, the sub CPU 102 transmits an insertion state command in which the value of DAT0 is “1” (acceptable) to the medal selector 201.

次に、サブCPU102は、メダル受付フラグにメダル受付可をセットする(S229)。具体的には、サブCPU102は、サブRAM103のメダル受付フラグ格納領域に「1」(受付可)をセットする。そして、サブCPU102は、メダルセレクタコマンド送信処理を終了する。   Next, the sub CPU 102 sets a medal acceptance flag to a medal acceptance flag (S229). Specifically, the sub CPU 102 sets “1” (acceptable) in the medal acceptance flag storage area of the sub RAM 103. Then, the sub CPU 102 ends the medal selector command transmission processing.

ステップS226で、メダル受付フラグはメダル受付不可でないと判定する場合(S226がNO判定の場合)、サブCPU102は、無操作コマンドのメダルソレノイドはOFF状態か否かを判定する(S230)。具体的には、サブCPU102は、主制御回路91から受信した直近の無操作コマンドが格納されている無操作コマンド格納領域を参照し、この無操作コマンドに含まれるメダルソレノイド208のON/OFF状態の情報に基づいて、メダルソレノイドはOFF状態か否かを判定する。   If it is determined in step S226 that the medal reception flag indicates that the medal cannot be received (NO in S226), the sub CPU 102 determines whether the medal solenoid of the no-operation command is in the OFF state (S230). Specifically, the sub CPU 102 refers to the no-operation command storage area in which the most recent no-operation command received from the main control circuit 91 is stored, and sets the ON / OFF state of the medal solenoid 208 included in the no-operation command. It is determined whether or not the medal solenoid is in the OFF state based on the above information.

ステップS230で、メダルソレノイドはOFF状態でないと判定する場合(S230がNO判定の場合)、サブCPU102は、メダルセレクタコマンド送信処理を終了する。一方、ステップS230で、メダルソレノイドはOFF状態であると判定する場合(S230がYES判定の場合)、サブCPU102は、投入状態(不可)コマンドを送信する(S231)。具体的には、サブCPU102は、DAT0の値が「0」(受付不可)の投入状態コマンドを、メダルセレクタ201に送信する。   If it is determined in step S230 that the medal solenoid is not in the OFF state (if S230 is NO), the sub CPU 102 terminates the medal selector command transmission processing. On the other hand, if it is determined in step S230 that the medal solenoid is in the OFF state (if S230 is determined to be YES), the sub CPU 102 transmits an insertion state (impossible) command (S231). Specifically, the sub CPU 102 transmits an insertion state command in which the value of DAT0 is “0” (cannot be accepted) to the medal selector 201.

次に、サブCPU102は、メダル受付フラグにメダル受付不可をセットする(S232)。具体的には、サブCPU102は、サブRAM103のメダル受付フラグ格納領域に「0」(受付不可)をセットする。そして、サブCPU102は、メダルセレクタコマンド送信処理を終了する。   Next, the sub-CPU 102 sets a medal acceptance flag to a medal acceptance flag (S232). Specifically, the sub CPU 102 sets “0” (cannot be accepted) in the medal acceptance flag storage area of the sub RAM 103. Then, the sub CPU 102 ends the medal selector command transmission processing.

[エラー解除判定処理]
エラー解除判定処理について、図69を参照して、説明する。図69は、エラー解除判定処理の一例を示すフローチャートである。
エラー解除判定処理において、サブCPU102は、まず発生中エラーはC1又はC2エラーか否かを判定する(S241)。具体的には、サブCPU102は、液晶表示装置11にC1エラー画面(図63参照)又はC2エラー画面(図61参照)を表示しているか否かに基づいて、発生中エラーはC1又はC2エラーか否かを判定する。発生中エラーはC1又はC2エラーでないと判定する場合(S241がNO判定の場合)、サブCPU102は、処理を後述のステップS248に移行させる。
[Error release judgment processing]
The error release determination processing will be described with reference to FIG. FIG. 69 is a flowchart illustrating an example of the error release determination process.
In the error release determination process, the sub CPU 102 first determines whether the occurring error is a C1 or C2 error (S241). Specifically, the sub CPU 102 determines whether the error being generated is a C1 or C2 error based on whether the C1 error screen (see FIG. 63) or the C2 error screen (see FIG. 61) is displayed on the liquid crystal display device 11. It is determined whether or not. When determining that the occurring error is not the C1 or C2 error (NO in S241), the sub CPU 102 shifts the processing to step S248 described later.

一方、S241で、発生中エラーはC1又はC2エラーであると判定する場合(S241がYES判定の場合)、サブCPU102は、24hドア監視スイッチは開状態か否かを判定する(S242)。ここで、24hドア開閉監視スイッチは、ドア開閉監視スイッチ67の上方の位置に設けられて、24hドア開閉監視ユニット63に接続されており、フロントドア2bの開閉を検知する。サブCPU102は、24hドア開閉監視スイッチの検知結果に基づいて開状態か(すなわちフロントドア2bが開状態か)否かを判定する。24hドア監視スイッチが開状態でないと判定する場合(S242がNO判定の場合)、サブCPU102は、処理を後述のステップS247に移行させる。   On the other hand, if it is determined in S241 that the occurring error is a C1 or C2 error (YES in S241), the sub CPU 102 determines whether the 24h door monitoring switch is in an open state (S242). Here, the 24h door opening / closing monitoring switch is provided at a position above the door opening / closing monitoring switch 67, is connected to the 24h door opening / closing monitoring unit 63, and detects opening / closing of the front door 2b. The sub CPU 102 determines whether the door is open (ie, whether the front door 2b is open) based on the detection result of the 24h door open / close monitoring switch. When determining that the 24h door monitoring switch is not in the open state (when S242 is NO), the sub CPU 102 shifts the processing to step S247 described later.

一方、S242で、24hドア監視スイッチが開状態であると判定する場合(S242がYES判定の場合)、無操作コマンドのリセットスイッチはON状態か否かを判定する(S243)。ここで、リセットスイッチは、主制御回路91に接続されているスイッチであり、パチスロ1の各種設定やエラー状態をリセットする際に、遊技機の管理者(例えば、遊技ホールの従業員)などの押下操作によってON状態に設定される。リセットスイッチは、フロントドア2bが開状態のときに露出し、遊技者の管理者などの押下操作によってON状態に設定可能となる。主制御回路91が周期的に副制御回路101に送信する無操作コマンドには、リセットスイッチがON状態かOFF状態かを示す情報が含まれている。したがって、サブCPU102は、サブRAM103の無操作コマンド格納領域に格納されている無操作コマンドを参照し、リセットスイッチがON状態であるか否かを判定する。リセットスイッチがON状態でないと判定する場合(S243がNO判定の場合)、サブCPU102は、処理を後述のステップS247に移行させる。   On the other hand, in S242, if it is determined that the 24h door monitoring switch is in the open state (if S242 is YES), it is determined whether the reset switch of the no-operation command is ON (S243). Here, the reset switch is a switch connected to the main control circuit 91. When resetting various settings and an error state of the pachislot 1, an administrator of the gaming machine (for example, an employee of the gaming hall) or the like, resets the switch. It is set to the ON state by a pressing operation. The reset switch is exposed when the front door 2b is in an open state, and can be set to an ON state by a pressing operation of an administrator of a player or the like. The no-operation command periodically transmitted from the main control circuit 91 to the sub control circuit 101 includes information indicating whether the reset switch is in the ON state or the OFF state. Therefore, the sub CPU 102 refers to the no-operation command stored in the no-operation command storage area of the sub RAM 103, and determines whether the reset switch is on. When it is determined that the reset switch is not in the ON state (when S243 is NO), the sub CPU 102 shifts the processing to step S247 described later.

一方、S243において、リセットスイッチがON状態であると判定する場合(S243がYES判定の場合)、サブCPU102は、発生中エラーはC1エラーか否かを判定する(S244)。具体的には、サブCPU102は、液晶表示装置11にC1エラー画面(図63参照)を表示しているか否かに基づいて、発生中エラーはC1エラーか否かを判定する。   On the other hand, if it is determined in S243 that the reset switch is in the ON state (YES in S243), the sub CPU 102 determines whether or not the occurring error is a C1 error (S244). Specifically, the sub CPU 102 determines whether or not the occurring error is a C1 error based on whether or not the C1 error screen (see FIG. 63) is displayed on the liquid crystal display device 11.

S244において、発生中エラーはC1エラーであると判定する場合(S244がYES判定の場合)、解除条件フラグに成立をセットする(S245)。具体的には、サブCPU102は、サブRAM103の解除条件フラグ格納領域に「1」(成立)をセットする。そして、サブCPU102は、エラー解除判定処理を終了し、処理をメダルセレクタコマンド送信処理(図68参照)のステップS224に戻す。   In S244, if it is determined that the occurring error is the C1 error (if S244 is YES), the release condition flag is set to be satisfied (S245). Specifically, the sub CPU 102 sets “1” (established) in the release condition flag storage area of the sub RAM 103. Then, the sub CPU 102 ends the error release determination processing, and returns the processing to step S224 of the medal selector command transmission processing (see FIG. 68).

S244において、発生中エラーはC1エラーでないと判定する場合(S244がNO判定の場合、すなわちC2エラーが発生している場合)、サブCPU102は、C2エラー画面表示終了要求を行う(S246)。具体的には、サブCPU102は、C2エラー画面の表示の終了を、液晶表示装置11に指示する。当該指示を受けた液晶表示装置11は、図61に示すようなC2エラー画面の表示を終了する。そして、サブCPU102は、エラー解除判定処理を終了し、処理をメダルセレクタコマンド送信処理(図68参照)のステップS224に戻す。   In S244, when it is determined that the occurring error is not the C1 error (when S244 is determined as NO, that is, when the C2 error has occurred), the sub CPU 102 issues a C2 error screen display end request (S246). Specifically, the sub CPU 102 instructs the liquid crystal display device 11 to end the display of the C2 error screen. Upon receiving the instruction, the liquid crystal display device 11 ends the display of the C2 error screen as shown in FIG. Then, the sub CPU 102 ends the error release determination processing, and returns the processing to step S224 of the medal selector command transmission processing (see FIG. 68).

ステップS242で24hドア監視スイッチが開状態でないと判定する場合(S242がNO判定の場合)、及び、ステップS243で無操作コマンドのリセットスイッチはON状態でないと判定する場合(S243がNO判定の場合)、サブCPU102は、処理をステップS247に移行させる。ステップS247において、サブCPU102は、解除条件フラグに不成立をセットする(S245)。具体的には、サブCPU102は、サブRAM103の解除条件フラグ格納領域に「0」(不成立)をセットする。そして、サブCPU102は、エラー解除判定処理を終了し、処理をメダルセレクタコマンド送信処理(図68参照)のステップS224に戻す。   If it is determined in step S242 that the 24h door monitoring switch is not in the open state (if S242 is NO), and if it is determined in step S243 that the no-operation command reset switch is not in the ON state (if S243 is NO) ), The sub CPU 102 shifts the processing to step S247. In step S247, the sub CPU 102 sets the release condition flag to “not satisfied” (S245). Specifically, the sub CPU 102 sets “0” (not established) in the release condition flag storage area of the sub RAM 103. Then, the sub CPU 102 ends the error release determination processing, and returns the processing to step S224 of the medal selector command transmission processing (see FIG. 68).

ステップS241で発生中エラーはC1エラー又はC2エラーでないと判定する場合(S241がNO判定の場合)、サブCPU102は、発生中エラーは初期化エラー又はセレクタスイッチエラーかを判定する(S248)。具体的には、サブCPU102は、液晶表示装置11に初期化エラー画面(図57参照)又はセレクタスイッチエラー画面(図58参照)を表示しているか否かに基づいて、発生中エラーは初期化エラー又はセレクタスイッチエラーかを判定する。発生中エラーは初期化エラー又はセレクタスイッチエラーでないと判定する場合(S248がNO判定の場合)、サブCPU102は、エラー解除判定処理を終了し、処理をメダルセレクタコマンド送信処理(図68参照)のステップS224に戻す。   When it is determined in step S241 that the occurring error is not a C1 error or a C2 error (NO in S241), the sub CPU 102 determines whether the occurring error is an initialization error or a selector switch error (S248). Specifically, the sub CPU 102 initializes the occurring error based on whether the initialization error screen (see FIG. 57) or the selector switch error screen (see FIG. 58) is displayed on the liquid crystal display device 11. An error or a selector switch error is determined. When it is determined that the occurring error is not an initialization error or a selector switch error (NO in S248), the sub CPU 102 ends the error release determination processing and proceeds to the medal selector command transmission processing (see FIG. 68). The process returns to step S224.

一方、ステップS248で発生中エラーは初期化エラー又はセレクタスイッチエラーであると判定する場合(S248がYES判定の場合)、台座部12に設けられたSELECTボタン28(図2参照)が押下された否かを判定する(S249)。SELECTボタン28の押下を検知するセンサは副制御回路101に電気的に接続されている。このため、サブCPU102は、SELECTボタン28の押下を検知可能となっている。ステップS249で、SELECTボタン28が押下されなかったと判定する場合(S249がNO判定の場合)、サブCPU102は、エラー解除判定処理を終了し、処理をメダルセレクタコマンド送信処理(図68参照)のステップS224に戻す。   On the other hand, if it is determined in step S248 that the occurring error is an initialization error or a selector switch error (YES in S248), the SELECT button 28 (see FIG. 2) provided on the pedestal unit 12 is pressed. It is determined whether or not it is (S249). A sensor that detects pressing of the SELECT button 28 is electrically connected to the sub-control circuit 101. For this reason, the sub CPU 102 can detect pressing of the SELECT button 28. If it is determined in step S249 that the SELECT button 28 has not been pressed (NO in step S249), the sub CPU 102 ends the error release determination processing and proceeds to the medal selector command transmission processing (see FIG. 68). Return to S224.

一方、S249において、SELECTボタン28が押下されたと判定する場合(S247がYES判定の場合)、サブCPU102は、初期化エラー画面(図57参照)又はセレクタスイッチエラー画面(図58参照)表示終了要求を行う(S250)。具体的には、サブCPU102は、液晶表示装置11に表示されている初期化エラー画面(図57参照)又はセレクタスイッチエラー画面(図58参照)の表示の終了を液晶表示装置11に指示する。当該指示を受けた液晶表示装置11は、初期化エラー画面又はセレクタスイッチエラー画面の表示を終了する。そして、サブCPU102は、エラー解除判定処理を終了し、処理をメダルセレクタコマンド送信処理(図68参照)のステップS224に戻す。   On the other hand, when it is determined in S249 that the SELECT button 28 has been pressed (YES in S247), the sub CPU 102 requests the initialization error screen (see FIG. 57) or the selector switch error screen (see FIG. 58) to end the display. Is performed (S250). Specifically, the sub CPU 102 instructs the liquid crystal display device 11 to end the display of the initialization error screen (see FIG. 57) or the selector switch error screen (see FIG. 58) displayed on the liquid crystal display device 11. Upon receiving the instruction, the liquid crystal display device 11 ends the display of the initialization error screen or the selector switch error screen. Then, the sub CPU 102 ends the error release determination processing, and returns the processing to step S224 of the medal selector command transmission processing (see FIG. 68).

<エラー情報履歴画面>
次に、所定の操作が行われた場合に、副制御回路101が液晶表示装置11に表示させるエラー情報履歴画面について、図70を参照して説明する。図70は、エラー情報履歴画面の一例を示す図である。
<Error information history screen>
Next, an error information history screen displayed on the liquid crystal display device 11 by the sub control circuit 101 when a predetermined operation is performed will be described with reference to FIG. FIG. 70 is a diagram showing an example of the error information history screen.

本実施形態では、例えば、遊技機の管理者(例えば、遊技ホールの従業員)が設定用鍵型スイッチ56を操作すると、主制御回路91は所定のコマンドを副制御回路101に送信する。副制御回路101はこの所定のコマンドを受信すると、液晶表示装置11にホールメニュー画面(不図示)を表示させる。ホールメニュー画面には、台座部12(図2参照)に設けられたSELECTボタン28及びエンターボタン29の操作によって、選択可能な各種メニュー、日時設定変更メニューやエラー履歴メニュー、が表示されている。   In the present embodiment, for example, when a manager of a gaming machine (for example, an employee of a gaming hall) operates the setting key switch 56, the main control circuit 91 transmits a predetermined command to the sub control circuit 101. When receiving the predetermined command, the sub-control circuit 101 causes the liquid crystal display device 11 to display a hole menu screen (not shown). On the hole menu screen, various menus that can be selected by operating the SELECT button 28 and the enter button 29 provided on the pedestal unit 12 (see FIG. 2), a date / time setting change menu, and an error history menu are displayed.

エラー履歴メニューが選択されると、副制御回路101は、サブRAM103のエラー情報履歴領域を参照し、当該領域に記憶されているエラー情報に基づくエラー情報履歴画面(図70参照)を液晶表示装置11に表示させる。エラー情報履歴画面では、エラー情報履歴領域に記憶されているエラー情報、すなわちエラー内容とエラー内容に関連付けられた日時(発生日時)が、降順で表示されている。   When the error history menu is selected, the sub control circuit 101 refers to the error information history area of the sub RAM 103, and displays an error information history screen (see FIG. 70) based on the error information stored in the area, on the liquid crystal display device. 11 is displayed. On the error information history screen, the error information stored in the error information history area, that is, the error content and the date and time (occurrence date and time) associated with the error content are displayed in descending order.

例えば、メダルセレクタエラーコマンド受信時処理(図62参照)のS174で登録されたエラー情報が、エラー内容「C1_1」(「異物検出エラー」)で、発生日時が2012年6月1日0時10分9秒の場合、図70に示すエラー情報履歴画面では、通し番号が付された上で、通し番号No「1」、エラー内容「C1_1」、発生日時「2012/06/01 00:10:09」と表示される。このため、当該画面を見る者は、2012年6月1日0時10分9秒に異物検出エラーが発生したことを把握できる。なお、表示されるエラー内容は、メダルセレクタエラーコマンド受信時処理(図62参照)で受信したメダルセレクタエラーコマンドの内容、すなわち発生したエラーに応じて変化する。例えば、カバー開放エラーが生じた場合は、表示されるエラー内容は「C1_2」となる。   For example, the error information registered in S174 of the medal selector error command receiving process (see FIG. 62) is the error content “C1_1” (“foreign object detection error”), and the date and time of occurrence is 00:00 on June 1, 2012. In the case of minutes and 9 seconds, on the error information history screen shown in FIG. 70, a serial number is added, a serial number No. “1”, an error content “C1_1”, and an occurrence date and time “2012/06/01 00:10:09”. Is displayed. Therefore, a person viewing the screen can know that a foreign object detection error has occurred at 0:10:09 on June 1, 2012. Note that the displayed error content changes according to the content of the medal selector error command received in the medal selector error command receiving process (see FIG. 62), that is, the error that has occurred. For example, when a cover opening error occurs, the displayed error content is “C1_2”.

また、当該画面を見る者は、通し番号No「4」、エラー内容「C2_2」、発生日時「2012/05/30 15:23:17」の表示から、が2012年5月30日15時23分17秒にC2_2エラーが発生したことを把握できる。なお、C2_1エラー、C2_3エラー、C2_4エラーが発生し、これらのエラーに係る情報がエラー情報履歴領域に記憶されている場合は、上述のC2_2エラーが発生した場合と同様に、エラー履歴画面には、エラー内容として「C2_1」,「C2_3」,「C2_4」が表示される。このため、当該画面を見る者は、これらのエラーが発生したことを把握できる。   In addition, from the display of the serial number No. “4”, the content of the error “C2_2”, and the date and time of occurrence “2012/05/30 15:23:17”, the person who sees the screen shows “15:23 on May 30, 2012”. It can be grasped that a C2_2 error has occurred in 17 seconds. When a C2_1 error, a C2_3 error, and a C2_4 error occur, and information on these errors is stored in the error information history area, the error history screen is displayed in the same manner as when the above-described C2_2 error occurs. , "C2_1", "C2_3", and "C2_4" are displayed as error contents. Therefore, a person viewing the screen can grasp that these errors have occurred.

また、当該画面を見る者は、通し番号No「16」、エラー内容「CMOS CNT」、発生日時「2012/05/26 08:30:00」の表示から、が2012年5月26日8時30分00秒に、ACKカウントエラーが発生したことを把握できる。   From the display of the serial number No. “16”, the content of the error “CMOS CNT”, and the date and time of occurrence “2012/05/26 08:30:00”, the person who sees the screen shows that “May 26, 2012, 8:30 At minute 00 seconds, it can be grasped that an ACK count error has occurred.

<第1の作用>
本実施形態のパチスロ1では、副制御回路101は、メダルセレクタ201から判定完了コマンドを受信する。このため、カラー認識回路247が行う、CMOSイメージセンサ232から出力された画像データに基づく色判定処理の結果が、「閾値判定不可」、又は、4つの色テンプレートいずれにも一致又は所定程度類似しないである場合、すなわち、投入されたメダルの色が正規メダルの色と一致しない「判定NG」の場合、副制御回路101は、遊技機に正規の遊技媒体が用いられていると誤認させて遊技を行う不正行為があったことを検知できる。
<First operation>
In the pachislo 1 of the present embodiment, the sub control circuit 101 receives a determination completion command from the medal selector 201. For this reason, the result of the color determination processing based on the image data output from the CMOS image sensor 232 performed by the color recognition circuit 247 is “No threshold determination” or does not match or is similar to any of the four color templates. In other words, when the color of the inserted medal does not match the color of the regular medal, the sub control circuit 101 erroneously recognizes that the regular gaming medium is used in the gaming machine, Can be detected.

また、画像認識DSP回路242が行う、CMOSイメージセンサ232から出力された画像データに基づく刻印判定処理の結果(本実施形態では、3次元判定の結果)が「判定NG」である場合、すなわち投入されたメダルの刻印と正規メダルの刻印が異なる場合、副制御回路101は、遊技機に正規の遊技媒体が用いられていると誤認させて遊技を行う不正行為があったことを検知できる。   Also, when the result of the marking determination process (in this embodiment, the result of the three-dimensional determination) performed by the image recognition DSP circuit 242 based on the image data output from the CMOS image sensor 232 is “determination NG”, that is, input When the stamp of the provided medal is different from the stamp of the regular medal, the sub-control circuit 101 can detect that there is an illegal act of performing a game by erroneously recognizing that a regular game medium is used in the gaming machine.

また、CMOSイメージセンサ232から出力された画像データに基づくカウント処理の結果が「異常が発生した」である場合、副制御回路101は、メダルセレクタ201から異物検出エラーが発生したことを示すDAT0の値が「1」のメダルセレクタエラーコマンドを受信する。このため、副制御回路は、遊技機に正規の遊技媒体が用いられていると誤認させて遊技を行う不正行為があったことをできる。   When the result of the count processing based on the image data output from the CMOS image sensor 232 is “abnormality has occurred”, the sub-control circuit 101 outputs a DAT0 signal indicating that a foreign object detection error has occurred from the medal selector 201. A medal selector error command having a value of “1” is received. For this reason, the sub-control circuit can determine that there has been a fraudulent act of playing a game by erroneously recognizing that a legitimate game medium is being used in the gaming machine.

したがって、副制御回路101は、特殊な器具をメダル投入口に挿入して行われる不正行為や、正規メダルと同径で色や刻印(模様)のみ異なるメダルを使用して行われる不正行為を、精度よく検知することができる。   Therefore, the sub-control circuit 101 detects an improper act performed by inserting a special tool into the medal slot or an improper act performed by using a medal having the same diameter as the regular medal but different in color and marking (pattern). Accurate detection is possible.

なお、本実施形態では、刻印判定処理の結果として、3次元判定の結果を用いる態様を説明した。しかしながら、刻印判定処理において、勾配平均画像テンプレート比較処理、HOGテンプレート比較処理、FFTテンプレート比較処理の内の一つの比較処理を選択的に行い、その判定結果を刻印判定処理の結果としてもよい。例えば、勾配平均画像テンプレート比較処理のみ行い、刻印判定処理の結果として勾配平均画像テンプレート比較処理の判定結果に基づいて、判定OK又は判定NGとしてもよい。   In the present embodiment, the mode in which the result of the three-dimensional determination is used as the result of the marking determination processing has been described. However, in the marking determination processing, one of the gradient average image template comparison processing, the HOG template comparison processing, and the FFT template comparison processing may be selectively performed, and the determination result may be used as the result of the marking determination processing. For example, only the gradient average image template comparison process may be performed, and the determination may be OK or NG based on the determination result of the gradient average image template comparison process as a result of the marking determination process.

<第2の作用>
また、本実施形態のパチスロ1では、メダルセレクタ201の制御LSI234が、電源投入後、投入されたメダルが規定初期投入枚数、本実施形態では50枚に達するまでのメダルレール210上を通過するメダルを含む画像に基づいて、色判定処理に用いられる色テンプレートを生成する。
<Second operation>
In the pachislot 1 according to the present embodiment, the control LSI 234 of the medal selector 201 determines that the number of inserted medals after the power is turned on is equal to the specified initial number of inserted medals. A color template used for the color determination processing is generated based on the image including.

したがって、遊技店において、正規メダルとして使用するメダルの変更があった場合に、電源投入後、変更後の正規メダルを50枚連続して投入することで、変更後の正規メダルに係る色テンプレートを容易に生成することができる。また、正規メダルが、例えば遊技機への投入や、払出し、また、遊技店での洗浄によって劣化し、正規メダルの現状の状態に対応した色テンプレートを生成することができるので、各種判定の結果の精度を保つことができる。   Therefore, when the medal to be used as the regular medal is changed in the game store, after the power is turned on, 50 regular regular medals after the change are continuously inserted, whereby the color template related to the regular medal after the change is changed. Can be easily generated. In addition, since the regular medals are deteriorated by, for example, being inserted into a gaming machine, paid out, or washed at a game store, a color template corresponding to the current state of the regular medals can be generated. Accuracy can be maintained.

<第3の作用>
また、本実施形態のパチスロ1では、刻印判定処理で用いる本テンプレートを上述のテンプレート生成処理によって生成する。したがって、メダルを所定枚数投入すれば本テンプレートを生成できるので、本テンプレートを容易に生成することができる。
<Third operation>
In the pachislo 1 of the present embodiment, the main template used in the engraving determination processing is generated by the above-described template generation processing. Therefore, the present template can be generated by inserting a predetermined number of medals, so that the present template can be easily generated.

また、上述の本テンプレート更新処理によって、本テンプレートを逐次更新する。このため、例えば遊技機への投入や、払出し、また、遊技店での洗浄などで劣化し、刻印が当初よりも目立たなくなった場合でも、正規メダルの現状の状態に応じて本テンプレートを更新できる。このため、各種判定の結果の精度を保つことができる。   Further, the present template is sequentially updated by the above-described present template updating process. For this reason, even if it is deteriorated due to, for example, insertion into a gaming machine, dispensing, or washing at a game store, and the engraving is less noticeable than at the beginning, the present template can be updated according to the current state of regular medals. . For this reason, the accuracy of the results of various determinations can be maintained.

また、3次元判定処理によって、1つの判定対象に対し、異なる3種類のテンプレート比較処理の結果に基づいて刻印の判定を行うことができる。このため、判定の精度が向上する。   In addition, by the three-dimensional determination process, it is possible to determine the marking of one determination target based on the results of three different types of template comparison processes. For this reason, the accuracy of the determination is improved.

また、上述の係数更新処理によって、3次元判定処理において用いる上記式(11)における係数A,C,Dを更新するので、経年劣化などによって、刻印に変化が生じた場合でも、正規メダルの現状の状態に応じて係数を更新できる。このため、各種判定の結果の精度を保つことができる。   Further, since the coefficients A, C, and D in the above equation (11) used in the three-dimensional determination processing are updated by the above-described coefficient update processing, even if the engraving changes due to aging or the like, the current state of the regular medals is not changed. The coefficient can be updated according to the state of. For this reason, the accuracy of the results of various determinations can be maintained.

<第4の作用>
また、本実施形態のパチスロ1では、制御LSI234のメダルカウント回路246が、ISP回路245から出力されたグレースケール画像データに基づいてカウント処理を行う。メダルカウント回路246は、カウント処理における順序判定処理において、SRAM243に記憶されている複数(本実施形態では16個)の判定領域についての輝度の変化に基づく「IN」,「OUT」,「ON」,「OFF」のデータの遷移の態様がメダルカウント判定表(図28参照)の遷移の態様と一致しているか否かを判定する。そして、一致している場合は、メダルレール210上を「メダルが通過した」又は「メダルがメダルシュート202に案内された」と判定する。また、判定領域Eに対して「IN」,「OUT」,「ON」のいずれかのデータが記憶されている場合は、異常が発生したと判定する。
<Fourth action>
In the pachislo 1 of the present embodiment, the medal counting circuit 246 of the control LSI 234 performs a counting process based on the grayscale image data output from the ISP circuit 245. The medal counting circuit 246 performs “IN”, “OUT”, “ON” based on a change in luminance in a plurality of (16 in this embodiment) determination areas stored in the SRAM 243 in the order determination process in the counting process. , "OFF" is determined as to whether or not the transition mode of the data matches the transition mode of the medal count determination table (see FIG. 28). If they match, it is determined that “the medal has passed” on the medal rail 210 or “the medal has been guided to the medal shoot 202”. If any one of “IN”, “OUT”, and “ON” is stored in the determination area E, it is determined that an abnormality has occurred.

以上のように、複数の判定領域における輝度の変化に基づいてメダルの通過などを判定するため、判定の精度を高めることができる。   As described above, the passing of a medal or the like is determined based on the change in the luminance in the plurality of determination areas, so that the accuracy of the determination can be increased.

また、グレースケール画像データ上に設定する判定領域の数は、許容される判定所要時間や求める判定の精度に応じ適宜設定可能である。したがって、例えば、判定の精度を更に高めるために、判定領域の数を増加させた場合でも、メダルカウント用のフォトセンサなどの部品を新たに設置する必要がない。このため、製造コストの増加を抑制することができる。   Further, the number of determination areas set on the grayscale image data can be set as appropriate according to the allowable required time for determination and the accuracy of determination to be obtained. Therefore, for example, even when the number of determination areas is increased in order to further increase the accuracy of determination, it is not necessary to newly install a component such as a photo sensor for medal counting. For this reason, an increase in manufacturing cost can be suppressed.

また、副制御回路101は、カウント処理の判定結果が、「異常が発生した」である場合、遊技機に正規の遊技媒体が用いられていると誤認させて遊技を行う不正行為があったことを検知する。すなわち、カウント処理の判定結果に基づいて、不正行為を検知することができる。   In addition, when the result of the count processing is “abnormality has occurred”, the sub-control circuit 101 has determined that there has been an illegal act of mistaking a game machine as a legitimate game medium being used in a gaming machine. Is detected. That is, fraudulent activity can be detected based on the determination result of the count process.

<第5の作用>
また、本実施形態のパチスロ1では、制御LSI234のISP回路245が、ISI回路251から出力されたRGBベイヤ画像にレンズ歪み補正処理と射影変換(ホモグラフィ)処理を施す画像補正処理を行う。
<Fifth action>
In the pachislo 1 of the present embodiment, the ISP circuit 245 of the control LSI 234 performs an image correction process of performing a lens distortion correction process and a projection conversion (homography) process on the RGB Bayer image output from the ISI circuit 251.

このため、カメラユニット209のレンズの特性やカメラユニット209の取り付け位置のずれが各種判別・判定処理に影響を与えないようにRGBベイヤ画像を補完し、各種判定処理の精度を高めることができる。   For this reason, the RGB Bayer images can be complemented so that the characteristics of the lens of the camera unit 209 and the displacement of the mounting position of the camera unit 209 do not affect the various determination / determination processes, and the accuracy of the various determination processes can be improved.

<第6の作用>
また、本実施形態のパチスロ1では、制御LSI234のカラー認識回路247が、閾値判定処理を行う。これによって、明らかに色相又は彩度の値が正規メダルと異なものについて、色テンプレートと一致又は所定程度類似すると誤判定されることを抑制することができる。すなわち、色テンプレートとの一致度に基づく判定に加えて、判定対象の色自体が有効な色であるか否かを判定できるので、色判定処理の判定結果の精度を高めることができる。
<Sixth operation>
In the pachi-slot 1 of the present embodiment, the color recognition circuit 247 of the control LSI 234 performs a threshold determination process. As a result, it is possible to suppress erroneous determination that the value of the hue or the saturation is clearly different from that of the regular medal to match or be similar to the color template by a predetermined degree. That is, in addition to the determination based on the degree of coincidence with the color template, it is possible to determine whether or not the determination target color itself is a valid color, so that the accuracy of the determination result of the color determination process can be improved.

<第7の作用>
また、本実施形態のパチスロ1では、制御LSI234の魚眼補正スケーラ回路248が、イコライズ処理において、作成した縮小画像データそれぞれに対して、バイラテラル変換処理を行う。
これによって、グレースケール画像データのノイズを減少させ、且つ、グレースケール画像データ内のエッジを強調することができる。このため、刻印判定処理における判定結果の精度を高めることができる。
<Seventh operation>
In the pachislo 1 of the present embodiment, the fisheye correction scaler circuit 248 of the control LSI 234 performs bilateral conversion processing on each of the created reduced image data in the equalization processing.
This makes it possible to reduce noise in the grayscale image data and enhance edges in the grayscale image data. For this reason, the accuracy of the determination result in the marking determination process can be improved.

<第8の作用>
また、本実施形態のパチスロ1では、制御LSI234の画像認識アクセラレータ回路249が、HOG変換処理を行う。また、画像認識DSP回路242が、刻印判定処理において、HOG変換処理によって作成された判定対象のHOGデータと本テンプレートのHOGデータとの一致度合いを評価し、評価値を算出する。そして、算出した評価値を用いて刻印判定を行う。
<Eighth operation>
In the pachislo 1 of the present embodiment, the image recognition accelerator circuit 249 of the control LSI 234 performs the HOG conversion process. Further, the image recognition DSP circuit 242 evaluates the degree of coincidence between the HOG data of the determination target created by the HOG conversion process and the HOG data of the template in the marking determination process, and calculates an evaluation value. Then, the marking determination is performed using the calculated evaluation value.

したがって、回転しながらメダルレール210上を通過するメダルの撮像データに対して、局所的な形状変化(幾何学的変換)に強みを有するHOG変換処理を伴う画像マッチングを行うことで、刻印判定処理の判定結果の精度を高めることができる。   Therefore, by performing image matching involving HOG conversion processing having strength in local shape change (geometric conversion) on the image data of medals passing on the medal rail 210 while rotating, the marking determination processing is performed. Can be improved in the accuracy of the determination result.

<第9の作用>
本実施形態のパチスロ1では、制御LSI234の画像認識アクセラレータ回路249が、HOG変換処理の前に、極座標変換処理を行う。
これによって、正規メダルの外周領域の特徴が、HOG変換処理によって作成されるヒストグラム一式に反映され易くなる。したがって、外周領域に特徴的な刻印(模様)が施されているメダルについて、その後の刻印判定処理の判定結果の精度を高めることができる。
<Ninth action>
In the pachislo 1 of the present embodiment, the image recognition accelerator circuit 249 of the control LSI 234 performs a polar coordinate conversion process before the HOG conversion process.
This makes it easier for the features of the outer peripheral region of the regular medal to be reflected in a set of histograms created by the HOG conversion process. Therefore, the accuracy of the determination result of the subsequent marking determination processing can be improved for medals having a characteristic marking (pattern) on the outer peripheral area.

<第10の作用>
本実施形態のパチスロ1では、制御LSI234の画像認識アクセラレータ回路249が、FFT変換処理を行う。また、画像認識DSP回路242が、刻印判定処理において、FFT変換処理によって作成された判定対象のFFTデータと本テンプレートのFFTデータとが一致度合いを評価し、評価値を算出する。そして、算出した評価値を用いて刻印判定を行う。
<Tenth action>
In the pachislo 1 of the present embodiment, the image recognition accelerator circuit 249 of the control LSI 234 performs an FFT conversion process. Further, in the marking determination processing, the image recognition DSP circuit 242 evaluates the degree of coincidence between the FFT data of the determination target created by the FFT conversion processing and the FFT data of the present template, and calculates an evaluation value. Then, the marking determination is performed using the calculated evaluation value.

このため、画像全体の比較だけでなく、所定角度単位での個別の比較が容易にできる。このため、メダルの刻印の特徴がでにくい部分(平面)についての判定を省略し、傷等によるノイズ成分の除去することで、刻印判定処理の判定結果の精度を高めることができる。   Therefore, not only comparison of the entire image but also individual comparison in units of a predetermined angle can be easily performed. For this reason, the accuracy of the determination result of the marking determination processing can be improved by omitting the determination of a portion (plane) where the characteristics of the marking of the medal are difficult to be obtained and removing noise components due to scratches or the like.

<第11の作用>
本実施形態のパチスロ1では、制御LSI234のISP回路245及びホストコントローラ241によってAE補正処理が行われる。このため、CMOSイメージセンサ232の露光時間を、メダルレール210の突条部210aが撮像可能な露光時間に設定することができる。これによって、適切な露光時間を設定できるので、CMOSイメージセンサ232を備えるカメラユニット209で撮像した画像に基づく色判定処理、刻印判定処理やカウント処理の精度を確保することができる。
<Eleventh operation>
In the pachislo 1 of the present embodiment, the AE correction process is performed by the ISP circuit 245 of the control LSI 234 and the host controller 241. Therefore, the exposure time of the CMOS image sensor 232 can be set to an exposure time at which the ridge 210a of the medal rail 210 can capture an image. As a result, an appropriate exposure time can be set, so that the accuracy of the color determination processing, the marking determination processing, and the count processing based on the image captured by the camera unit 209 including the CMOS image sensor 232 can be ensured.

また、カメラユニット209のレンズに多少ほこりなどが付着し汚れても、LED233の輝度を上げることに代えて露光時間を延長させることにより、LED233の寿命の短命化を抑制しつつ、色判定処理、刻印判定処理やカウント処理の精度を確保することができる。また、レンズの汚れの除去の頻度を下げることができるので、遊技ホールの従業員の作業負荷を低減できる。   Further, even if dust or the like slightly adheres to the lens of the camera unit 209 and becomes dirty, by extending the exposure time instead of increasing the brightness of the LED 233, it is possible to suppress the shortening of the life of the LED 233 and perform color determination processing. Accuracy of the marking determination process and the counting process can be ensured. In addition, since the frequency of removing dirt from the lens can be reduced, the work load of employees of the game hall can be reduced.

<第12の作用>
本実施形態のパチスロ1では、AE補正処理において、ISP回路245からAE判定処理の判定結果が出力されたとき、ホストコントローラ241は、露光時間が上限の175μ秒に設定されている場合は、報知用LED206cに点灯を指示する信号を出力し、報知用LED206cが点灯する。これによって、報知用LED206cを見る者、例えば遊技ホールの管理者は、カメラユニット209に何らかの障害(例えばレンズにほこりなどの汚れが付着している)が発生していることを把握することができる。
<Twelfth operation>
In the pachislot 1 of the present embodiment, when the ISP circuit 245 outputs the result of the AE determination process in the AE correction process, the host controller 241 issues a notification when the exposure time is set to the upper limit of 175 μsec. A signal for instructing lighting is output to the notification LED 206c, and the notification LED 206c is turned on. Accordingly, a person who views the notification LED 206c, for example, a manager of the game hall, can grasp that some kind of trouble (for example, dirt such as dust is attached to the lens) occurs in the camera unit 209. .

また、AE補正処理において、ISP回路245からAE判定処理の判定結果が出力されたとき、ホストコントローラ241は、露光時間が上限の175μ秒に設定されている場合は、副制御基板72(副制御回路101)に、メダルセレクタ201から掃除エラーが発生したことを示すDAT0の値が「3」のメダルセレクタエラーコマンドを送信する。このコマンドを受信した副制御回路101は、液晶表示装置11にC1エラー画面(図63参照)を表示させる。そして、所定の操作が行われると、副制御回路101は、液晶表示装置にエラー情報履歴画面(図70参照)を表示させる。エラー情報履歴画面には、掃除エラーが発生した旨を示す表示として、エラー内容「C1_3」と発生日時が表示される。これによって、当該表示を見る者に、掃除エラーが発生していることを把握させ、カメラユニット209の掃除(レンズの汚れの除去など)を促すことができる。これによって、色判定処理、刻印判定処理やカウント処理の精度が確保できない、すなわち不正行為の検知が有効に行えない状態で遊技が行われることを抑制することができる。   Further, in the AE correction process, when the determination result of the AE determination process is output from the ISP circuit 245, if the exposure time is set to the upper limit of 175 μsec, the host controller 241 may execute the sub control board 72 (sub control The medal selector 201 transmits a medal selector error command indicating that a cleaning error has occurred with a DAT0 value of “3” to the circuit 101). Upon receiving this command, the sub-control circuit 101 causes the liquid crystal display device 11 to display a C1 error screen (see FIG. 63). Then, when a predetermined operation is performed, the sub-control circuit 101 causes the liquid crystal display device to display an error information history screen (see FIG. 70). On the error information history screen, an error content “C1_3” and the date and time of occurrence are displayed as a display indicating that a cleaning error has occurred. This allows the viewer of the display to know that a cleaning error has occurred and urges the user to clean the camera unit 209 (removal of dirt on the lens). As a result, it is possible to suppress the game from being performed in a state in which the accuracy of the color determination process, the marking determination process, and the count process cannot be ensured, that is, the detection of an illegal act cannot be effectively performed.

なお、本実施形態では、パチスロ1の電源投入時にAE補正処理を行う態様を説明したが、AE補正処理の実行タイミングは適宜設定可能である。例えば、フロントドア2bが開放され、ドア開閉監視スイッチ67から出力されたセキュリティー信号を主制御回路91が検知したときに、AE補正処理を実行してもよい。また、パチスロ1に対する操作が検出されなくなってから所定の時間が経過したときに、AE補正処理を実行してもよい。また、所定時間、例えば1時間、経過する毎にAE補正処理を実行してもよい。   In the present embodiment, the mode in which the AE correction process is performed when the power of the pachislot 1 is turned on has been described. However, the execution timing of the AE correction process can be set as appropriate. For example, when the front door 2b is opened and the main control circuit 91 detects a security signal output from the door open / close monitoring switch 67, the AE correction process may be executed. Further, the AE correction process may be executed when a predetermined time has elapsed since the operation on the pachislot 1 is no longer detected. Further, the AE correction process may be executed every time a predetermined time, for example, one hour elapses.

<第13の作用>
本実施形態では、副制御回路101(のサブCPU102)は、判定完了コマンド受信時処理(図59参照)において、受信した判定完了コマンドにおける判定結果をサブRAM103に設けられたキューに登録する(ステップS151)。次いで、キュー溢れが生じたことを契機に、キューに登録された判定結果の内の「判定NG」の数をカウントし、その値が閾値(本実施形態では「5」)以上であるか否かを判定する(ステップS152〜S154)。
<Thirteenth operation>
In the present embodiment, the sub-control circuit 101 (the sub CPU 102) registers the judgment result of the received judgment completion command in the queue provided in the sub RAM 103 in the judgment completion command reception process (see FIG. 59) (step S151). Next, when the queue overflows, the number of “judgment NG” in the judgment results registered in the queue is counted, and whether or not the value is equal to or more than a threshold value (“5” in the present embodiment) is determined. Is determined (steps S152 to S154).

そして、閾値以上の場合は、サブCPU102は、液晶表示装置11にC2エラー画面(図61参照)を表示させる(ステップS155参照)。また、サブCPU102は、サブRAM103のエラー情報履歴領域にエラー内容「C2_1」及び発生日時を記憶させる(ステップS156参照)。そして、副制御回路101は、所定の操作に応じて、エラー情報履歴領域に記憶されているエラー情報に基づくエラー情報履歴画面(図70参照)を液晶表示装置11に表示させる。これによって、エラー情報履歴画面を見る者は、C2_1エラーが発生したことを把握できる。   If the difference is equal to or larger than the threshold, the sub CPU 102 causes the liquid crystal display device 11 to display a C2 error screen (see FIG. 61) (see step S155). Further, the sub CPU 102 stores the error content “C2_1” and the date and time of occurrence in the error information history area of the sub RAM 103 (see step S156). Then, in response to a predetermined operation, the sub control circuit 101 causes the liquid crystal display device 11 to display an error information history screen (see FIG. 70) based on the error information stored in the error information history area. Thus, a person viewing the error information history screen can know that a C2_1 error has occurred.

したがって、キューに登録された判定結果の内の「判定NG」の数が閾値を以上であること、すなわち直近の60枚の投入メダルの内の不正メダルの数が所定量を超えたことを、キュー溢れを契機に、検知及び報知することができる。キュー溢れを利用するため、当該検知及び報知のためのタイミングを特別に規定する処理を追加することを要せず、効率的に、投入された不正メダルが所定量を超えたことを検知及び報知することができる。   Therefore, the number of “judgment NG” in the judgment results registered in the queue is equal to or larger than the threshold, that is, the number of illegal medals in the latest 60 inserted medals exceeds a predetermined amount. The detection and notification can be performed when the queue overflows. In order to utilize the queue overflow, it is not necessary to add a process for specially defining the timing for the detection and notification, and the detection and notification of the fact that the number of illegal medals inserted exceeds a predetermined amount is efficiently performed. can do.

<第14の作用>
本実施形態では、副制御回路101(のサブCPU102)は、メダル投入コマンド受信時処理(図67参照)において、主制御回路91からメダル投入コマンドを受信しているのにも関わらず、メダルセレクタ201から判定完了コマンドを受信していないことが単位遊技中に所定回数以上続いた場合、液晶表示装置11にC2エラー画面(図61参照)を表示させる(ステップS215参照)。また、サブCPU102は、サブRAM103のエラー情報履歴領域にエラー内容「C2_4」及び発生日時を記憶させる(ステップS216参照)。そして、副制御回路101は、所定の操作に応じて、エラー情報履歴領域に記憶されているエラー情報を表示するエラー情報履歴画面(図70参照)を液晶表示装置11に表示させる。これによって、エラー情報履歴画面を見る者は、C2_4エラーが発生したことを把握できる。
<14th operation>
In the present embodiment, the sub control circuit 101 (sub CPU 102 of the medal selector) receives the medal insertion command from the main control circuit 91 in the medal insertion command receiving process (see FIG. 67). If the determination completion command has not been received from the unit 201 for a predetermined number of times during the unit game, the liquid crystal display device 11 displays a C2 error screen (see FIG. 61) (see step S215). Further, the sub CPU 102 stores the error content “C2_4” and the date and time of occurrence in the error information history area of the sub RAM 103 (see step S216). Then, in response to a predetermined operation, the sub-control circuit 101 causes the liquid crystal display device 11 to display an error information history screen (see FIG. 70) displaying error information stored in the error information history area. Thus, a person viewing the error information history screen can know that a C2_4 error has occurred.

ここで、主制御回路91からメダル投入コマンドを受信しているのにも関わらず、メダルセレクタ201から判定完了コマンドを受信しない場合には、撮像手段の撮像範囲外での不正行為や、画像処理で判断不可能な不正行為が発生したことが考えられる。本実施形態では、上記のような場合に、液晶表示装置11にC2エラー画面を表示させ、また、所定の操作に応じて、「C2_4」及び発生日時を含むエラー情報に基づくエラー情報履歴画面を液晶表示装置11に表示させる。これによって、撮像手段の撮像範囲外での不正行為や、画像処理で判断不可能な不正行為が発生したことを、認識できる。   Here, in spite of receiving the medal insertion command from the main control circuit 91 and not receiving the determination completion command from the medal selector 201, an illegal action outside the imaging range of the imaging means or image processing It is conceivable that unjustifiable wrongdoing has occurred. In the present embodiment, in the above case, a C2 error screen is displayed on the liquid crystal display device 11, and an error information history screen based on error information including “C2_4” and the date and time of occurrence is displayed in accordance with a predetermined operation. The image is displayed on the liquid crystal display device 11. As a result, it is possible to recognize that a fraudulent activity outside the imaging range of the imaging means or a fraudulent activity that cannot be determined by image processing has occurred.

<第15の作用>
本実施形態では、副制御回路101(のサブCPU102)は、判定完了コマンド受信時処理(図59参照)において、メダル受付可の状態(ステップS157参照)で、サブメダルカウンタの値が、所定値以上か否かを判定する(ステップS159参照)。所定値は、単位遊技に投入可能な最大のメダル数(本実施形態では3枚)にパチスロ1にクレジットできるメダルの最大数(本実施形態では50枚)の和以上に設定されている。
<Fifteenth operation>
In the present embodiment, (the sub CPU 102 of) the sub control circuit 101 sets the value of the sub medal counter to the predetermined value in the medal acceptable state (see step S157) in the determination completion command receiving process (see FIG. 59). It is determined whether or not this is the case (see step S159). The predetermined value is set to be equal to or greater than the sum of the maximum number of medals that can be inserted into the unit game (three in this embodiment) and the maximum number of medals that can be credited to the pachislot 1 (50 in this embodiment).

そして、所定値以上と判定する場合、サブCPU102は、液晶表示装置11にC2エラー画面(図61参照)を表示させる(ステップS160参照)。また、サブCPU102は、サブRAM103のエラー情報履歴領域にエラー内容「C2_2」及び発生日時を記憶させる(ステップS161参照)。そして、副制御回路101は、所定の操作に応じて、エラー情報履歴領域に記憶されているエラー情報に基づくエラー情報履歴画面(図70参照)を液晶表示装置11に表示させる。これによって、エラー情報履歴画面を見る者は、C2_2エラーが発生したことを把握できる。   If it is determined that the value is equal to or more than the predetermined value, the sub CPU 102 causes the liquid crystal display device 11 to display a C2 error screen (see FIG. 61) (see step S160). Further, the sub CPU 102 stores the error content “C2_2” and the date and time of occurrence in the error information history area of the sub RAM 103 (see step S161). Then, in response to a predetermined operation, the sub control circuit 101 causes the liquid crystal display device 11 to display an error information history screen (see FIG. 70) based on the error information stored in the error information history area. Thereby, a person viewing the error information history screen can know that a C2_2 error has occurred.

ここで、サブメダルカウンタの値が上記のように設定されている所定値以上になる状態は、パチスロ1にクレジット可能な枚数を超えたメダルが投入されているという異常な状態である。本実施形態では、上記のような状態が発生した場合に、液晶表示装置11にC2エラー画面を表示させ、また、所定の操作に応じて、「C2_4」及び発生日時を含むエラー情報に基づくエラー情報履歴画面を液晶表示装置11に表示させる。すなわち、副制御回路101は、上記の異常な状態を検知し、その発生を報知できる。これによって、上記の異常な状態を発生させる原因と考えられるメダルをメダル投入口に投入することなくクレジットを増加させる不正行為の発生を認識できる。   Here, the state where the value of the sub medal counter becomes equal to or more than the predetermined value set as described above is an abnormal state in which medals exceeding the number of credits that can be credited are inserted into the pachislot 1. In the present embodiment, when the above state occurs, a C2 error screen is displayed on the liquid crystal display device 11, and an error based on error information including “C2_4” and the date and time of occurrence occurs in accordance with a predetermined operation. An information history screen is displayed on the liquid crystal display device 11. That is, the sub-control circuit 101 can detect the above abnormal state and notify the occurrence thereof. As a result, it is possible to recognize the occurrence of fraudulent acts that increase credits without inserting medals considered to be a cause of the abnormal state into the medal insertion slot.

<第16の作用>
本実施形態では、副制御回路101(のサブCPU102)は、起動回数判定処理(図65参照)において、メダルセレクタ無操作コマンドに含まれる起動回数と、サブ電源投入カウンタの差を算出する(ステップS192参照)。そして、その差が閾値以上の場合、サブCPU102は、液晶表示装置11にC2エラー画面(図61参照)を表示させる(ステップS193参照)。また、サブCPU102は、サブRAM103のエラー情報履歴領域にエラー内容「C2_3」及び発生日時を記憶させる(ステップS194参照)。そして、副制御回路101は、所定の操作に応じて、エラー情報履歴領域に記憶されているエラー情報に基づくエラー情報履歴画面(図70参照)を液晶表示装置11に表示させる。これによって、エラー情報履歴画面を見る者は、C2_3エラーが発生したことを把握できる。
<Sixteenth operation>
In the present embodiment, (the sub CPU 102 of) the sub control circuit 101 calculates the difference between the number of times of activation included in the medal selector no-operation command and the sub power-on counter in the number of times of activation determination process (see FIG. 65) See S192). If the difference is equal to or larger than the threshold, the sub CPU 102 causes the liquid crystal display device 11 to display a C2 error screen (see FIG. 61) (see step S193). Further, the sub CPU 102 stores the error content “C2 — 3” and the date and time of occurrence in the error information history area of the sub RAM 103 (see step S194). Then, in response to a predetermined operation, the sub control circuit 101 causes the liquid crystal display device 11 to display an error information history screen (see FIG. 70) based on the error information stored in the error information history area. Thus, a person viewing the error information history screen can know that a C2_3 error has occurred.

ここで、サブ電源投入カウンタの値は、電源投入処理(図52参照)が行われる度、すなわち起動する度に、1加算される(ステップS102参照)。また、メダルセレクタ無操作コマンドに含まれる起動回数(図45参照)は、メダルセレクタ201が起動する毎に、1が加算される。通常は、パチスロ1に電源が投入されると、副制御回路101とメダルセレクタ201の両方に電源が投入され、共に起動することから、サブ電源投入カウンタの値及びメダルセレクタ無操作コマンドに含まれる起動回数は等しくなる。したがって、これらが等しくない場合には、副制御回路101又はメダルセレクタ201のいずれかを単独で再起動させることを伴う不正行為が発生したことが考えられる。   Here, the value of the sub power-on counter is incremented by one each time the power-on process (see FIG. 52) is performed, that is, every time the power is turned on (see step S102). Also, the number of activations (see FIG. 45) included in the medal selector no-operation command is incremented by one each time the medal selector 201 is activated. Normally, when the power is turned on to the pachislot 1, the power is turned on to both the sub-control circuit 101 and the medal selector 201, and both are activated. Therefore, the power is included in the value of the sub-power-on counter and the medal selector non-operation command. The number of activations is equal. Therefore, if they are not equal, it is conceivable that an improper act involving restarting either the sub-control circuit 101 or the medal selector 201 alone has occurred.

本実施形態では、上記のような場合に、液晶表示装置11にC2エラー画面を表示させ、また、所定の操作に応じて、「C2_3」及び発生日時を含むエラー情報に基づくエラー情報履歴画面を液晶表示装置11に表示させる。これによって、再起動を伴う不正行為を認識できる。   In the present embodiment, in the above case, a C2 error screen is displayed on the liquid crystal display device 11, and an error information history screen based on error information including “C2_3” and the date and time of occurrence is displayed in accordance with a predetermined operation. The image is displayed on the liquid crystal display device 11. As a result, it is possible to recognize a fraudulent act involving restart.

また、本実施形態では、上記差が単に生じた場合ではなく、上記差が適宜設定可能な閾値以上である場合に、液晶表示装置11にC2エラー画面を表示させる処理などを行うため、上記差が自然発生的に生じた場合に、エラー画面の表示などが行われることを防止できる。このため、C2エラー画面の表示や「C2_3」及び発生日時を含むエラー情報に基づくエラー情報履歴画面の表示によって、故意に副制御回路101又はメダルセレクタ201のいずれかが単独で再起動させられたこと、すなわち再起動を伴う不正行為が行われたことを確実に認識できる。   Further, in the present embodiment, processing for displaying a C2 error screen on the liquid crystal display device 11 is performed not only when the above difference occurs but also when the difference is equal to or more than an appropriately settable threshold value. When an error occurs spontaneously, display of an error screen or the like can be prevented. For this reason, either the sub-control circuit 101 or the medal selector 201 was intentionally restarted independently by displaying the C2 error screen or displaying the error information history screen based on the error information including “C2 — 3” and the date and time of occurrence. That is, it is possible to surely recognize that a fraudulent act involving a restart has been performed.

<第17の作用>
本実施形態では、メダルセレクタ201の制御LSI234は、通電中に初期化が行われると、フラッシュメモリ244の起動用初期化フラグ格納領域の値に「初期化あり」を示す「1」を設定する。そして、制御LSI234は、電源が投入時に、フラッシュメモリ244の起動用初期化フラグ格納領域を参照し、「初期化あり」を示す情報を含む起動完了コマンドを副制御回路101に送信する。また、メダルセレクタ201の制御LSI234は、通電中に初期化が行われると、SRAM243の無操作用初期化フラグ格納領域の値に「初期化あり」を示す「1」を設定する。そして、制御LSI234は、無操作用初期化フラグ格納領域を参照し、「初期化あり」を示す情報を含むメダルセレクタ無操作コマンドを副制御回路101に送信する。
<Seventeenth operation>
In the present embodiment, when initialization is performed during energization, the control LSI 234 of the medal selector 201 sets “1” indicating “with initialization” to the value of the startup initialization flag storage area of the flash memory 244. . Then, when the power is turned on, the control LSI 234 refers to the start-up initialization flag storage area of the flash memory 244 and transmits a start-up completion command including information indicating “initialized” to the sub-control circuit 101. When initialization is performed during energization, the control LSI 234 of the medal selector 201 sets the value of the no-operation initialization flag storage area of the SRAM 243 to “1” indicating “with initialization”. Then, the control LSI 234 refers to the no-operation initialization flag storage area and transmits a medal selector no-operation command including information indicating “with initialization” to the sub control circuit 101.

また、副制御回路101(のサブCPU102)は、「初期化あり」を示す情報を含む起動完了コマンドを受信すると、起動完了コマンド受信時処理(図56参照)において、初期化エラー画面(図57参照)を液晶表示部11(の表示部11a)に表示させる(ステップS143参照)。   When the sub control circuit 101 (sub CPU 102 of the sub control circuit 101) receives the activation completion command including the information indicating “there is initialization,” in the activation completion command reception processing (see FIG. 56), the initialization error screen (FIG. 57) (Refer to step S143) on the liquid crystal display unit 11 (display unit 11a thereof).

また、副制御回路101(のサブCPU102)は、「初期化あり」を示す情報を含むメダルセレクタ無操作コマンドを受信すると、メダルセレクタ無操作コマンド受信時処理(図64参照)において、初期化エラー画面(図57参照)を液晶表示部11(の表示部11a)に表示させる(ステップS182参照)。   Further, upon receiving the medal selector no-operation command including information indicating “initialized”, the sub-control circuit 101 (the sub CPU 102 of the sub-controller 101) performs an initialization error in the medal selector non-operation command receiving process (see FIG. 64). The screen (see FIG. 57) is displayed on (the display unit 11a of) the liquid crystal display unit 11 (see step S182).

したがって、初期化処理が行われた場合、メダルセレクタ無操作コマンドにおいて、直ちに初期化エラー画面が表示されるので、初期化処理の発生をすぐに認識できる。また、起動時には、前回の通電中に初期化処理が行われていると、起動完了コマンド受信時処理において、初期化エラー画面が表示されるので、前回の通電中に初期化処理が行われたことを認識できる。すなわち、初期化処理が行われたことを確実に認識できるので、初期化処理を伴う不正行為を認識できる。   Therefore, when the initialization process is performed, the initialization error screen is immediately displayed in response to the medal selector non-operation command, so that the occurrence of the initialization process can be immediately recognized. In addition, at the time of startup, if the initialization process has been performed during the previous energization, an initialization error screen is displayed in the process of receiving the startup completion command, so the initialization process was performed during the previous energization. I can recognize that. That is, since it is possible to reliably recognize that the initialization process has been performed, it is possible to recognize an improper act involving the initialization process.

<第18の作用>
本実施形態では、副制御回路101(のサブCPU102)は、起動完了コマンド受信時処理(図56参照)において、色判定の有効・無効を切り換える色スイッチ206eと、刻印判定の有効・無効を切り換える刻印スイッチ206fの起動時の状態を含むスイッチ情報を、第1スイッチ情報記憶領域に記憶する(ステップS147参照)。また、副制御回路101は、同処理において、第1スイッチ情報記憶領域に記憶されている前回のスイッチ情報と、今回受信した起動完了コマンドに含まれるスイッチ情報とを比較し、一致しない場合は、セレクタスイッチエラー画面(図58参照)を液晶表示装置11(の表示部11a)に表示させる(ステップS146)。
<Eighteenth operation>
In the present embodiment, the sub-control circuit 101 (sub-CPU 102) switches the color switch 206e for switching between valid and invalid color determination and the valid / invalid for marking determination in the process of receiving the activation completion command (see FIG. 56). The switch information including the state at the time of activation of the engraving switch 206f is stored in the first switch information storage area (see step S147). In the same process, the sub-control circuit 101 compares the previous switch information stored in the first switch information storage area with the switch information included in the startup completion command received this time. A selector switch error screen (see FIG. 58) is displayed on (the display unit 11a of) the liquid crystal display device 11 (step S146).

また、副制御回路101(のサブCPU102)は、スイッチ状態判定処理(図66参照)において、メダルセレクタ無操作コマンドに含まれるスイッチ情報と第2スイッチ情報記憶領域に記憶されているスイッチ情報とを比較し(ステップS202,S204,S207参照)、一致しない場合は、サブRAM103のエラー情報履歴領域に、その旨を登録する(ステップS205,S207参照)。そして、副制御回路101(のサブCPU102)は、所定の操作に応じてエラー情報履歴領域に記憶されている情報を表示するエラー情報履歴画面(図70参照)を液晶表示装置11に表示させる。   In the switch state determination process (see FIG. 66), the sub control circuit 101 (sub CPU 102) compares the switch information included in the medal selector non-operation command with the switch information stored in the second switch information storage area. A comparison is made (see steps S202, S204, S207). If they do not match, that fact is registered in the error information history area of the sub RAM 103 (see steps S205, S207). Then, the sub-control circuit 101 (sub-CPU 102) causes the liquid crystal display device 11 to display an error information history screen (see FIG. 70) displaying information stored in the error information history area in accordance with a predetermined operation.

したがって、エラー情報履歴画面(図70参照)によって、スイッチの操作の有無を認識できる。また、起動時に、起動完了コマンド受信時処理において、セレクタスイッチエラー画面(図58参照)が液晶表示装置11(の表示部11a)に表示されるので、前回の通電中にスイッチの操作が行われたことを認識できる。すなわち、色判定及び刻印判定の有効・無効を切り換えるスイッチの操作の有無を認識できるため、当該スイッチの不正操作を伴う不正行為を認識できる。   Therefore, the presence or absence of a switch operation can be recognized on the error information history screen (see FIG. 70). Also, at the time of startup, in the process of receiving the startup completion command, a selector switch error screen (see FIG. 58) is displayed on (the display unit 11a of) the liquid crystal display device 11, so that the switch is operated during the previous energization. You can recognize that. That is, since it is possible to recognize the presence or absence of the operation of the switch for switching the validity / invalidity of the color determination and the engraving determination, it is possible to recognize the fraudulent act accompanying the illegal operation of the switch.

<第19の作用>
本実施形態のメダルセレクタ201と副制御回路101との間のコマンド送受信シーケンス(図46参照)において、副制御回路101(のサブCPU102)は、メダルセレクタ201からACKコマンドを受信すると、受信したACKコマンドに含まれている送信カウンタの値が、前回、メダルセレクタ201から受信したコマンドに含まれていた送信カウンタの値に「1」を加算した値と等しいか否かを判定する。そして、等しくないと判定する場合は、サブRAM103に設けられたエラー情報履歴領域に、エラー内容として「CMOS CNT」(ACKカウントエラー)、発生日時として現在の日付と時刻を記憶させる。
<19th operation>
In the command transmission / reception sequence between the medal selector 201 and the sub control circuit 101 (see FIG. 46) according to the present embodiment, the (sub CPU 102 of) the sub control circuit 101 receives the ACK command from the medal selector 201 and receives the ACK command. It is determined whether or not the value of the transmission counter included in the command is equal to a value obtained by adding “1” to the value of the transmission counter previously included in the command received from the medal selector 201. If it is determined that they are not equal, “CMOS CNT” (ACK count error) is stored in the error information history area provided in the sub RAM 103 as the error content, and the current date and time are stored as the date and time of occurrence.

また、副制御回路101は、所定の操作に応じて、サブRAM103のエラー情報履歴領域に記憶されているエラー情報に基づくエラー情報履歴画面(図70参照)を液晶表示装置11に表示させる。これによって、エラー情報履歴画面を見る者は、ACKカウントエラーが発生したことを把握できる。   In addition, the sub control circuit 101 causes the liquid crystal display device 11 to display an error information history screen (see FIG. 70) based on the error information stored in the error information history area of the sub RAM 103 according to a predetermined operation. Thus, a person viewing the error information history screen can know that an ACK count error has occurred.

ここで、上記の副制御回路101の判定において、値の不一致が生じる場合には、副制御回路101又はメダルセレクタ201のいずれかを単独で再起動させることを伴う不正行為が発生したことが考えられる。本実施形態では、エラー情報履歴画面を見る者は、ACKカウントエラーが発生したことを把握できる。このため、再起動を伴う不正行為を認識できる。   Here, in the above determination of the sub-control circuit 101, if the values do not match, it is considered that an improper act involving restarting either the sub-control circuit 101 or the medal selector 201 alone has occurred. Can be In this embodiment, a person viewing the error information history screen can know that an ACK count error has occurred. For this reason, it is possible to recognize a fraudulent act involving restart.

<第20の作用>
本実施形態のメダルセレクタ201は、C1エラーの発生時に、発生したエラーの内容を示す情報を含むメダルセレクタエラーコマンド(図45のメダルセレクタエラーコマンドのDAT0参照)を送信する。また、メダルセレクタ201から周期的に送信されるメダルセレクタ無操作コマンドには、発生しているエラーの内容を示す情報が含まれている(図45のメダルセレクタ無操作コマンドのDAT2参照)。これらのコマンドを受信した副制御回路101は、液晶表示装置11に、C1エラー画面(図63参照)を表示させ、また、所定の操作に応じてエラー情報履歴画面(図70参照)を表示させる。
<20th operation>
When a C1 error occurs, the medal selector 201 of the present embodiment transmits a medal selector error command (see DAT0 of the medal selector error command in FIG. 45) including information indicating the content of the error that has occurred. The medal selector no-operation command periodically transmitted from the medal selector 201 includes information indicating the content of the error that has occurred (see the medal selector non-operation command DAT2 in FIG. 45). Upon receiving these commands, the sub control circuit 101 causes the liquid crystal display device 11 to display a C1 error screen (see FIG. 63), and also displays an error information history screen (see FIG. 70) in accordance with a predetermined operation. .

このため、メダルセレクタ201と副制御回路101とのコマンドの送受信に何らかの障害が生じ、副制御回路101がメダルセレクタ201からメダルセレクタエラーコマンドを適切に受信できなくても、周期的に送信されるメダルセレクタ無操作コマンドによって、メダルセレクタ201は、副制御回路101にエラーが発生していること及びエラーの内容を伝達することができる。これによって、メダルセレクタ201にエラーが生じた場合に、当該エラーを確実に認識することができる。   For this reason, even if some trouble occurs in the transmission and reception of the command between the medal selector 201 and the sub-control circuit 101, even if the sub-control circuit 101 cannot properly receive the medal selector error command from the medal selector 201, the command is transmitted periodically. In response to the medal selector no-operation command, the medal selector 201 can notify the sub-control circuit 101 that an error has occurred and the content of the error. Thus, when an error occurs in the medal selector 201, the error can be reliably recognized.

<第21の作用>
本実施形態のメダルセレクタ201は、異物検知処理を行う。異物検知処理において、ホストコントローラ241は、SRAM243に記憶された直近のグレースケール画像データにおける複数の異物検知領域A21の画像と、予めフラッシュメモリ244に記憶されたテンプレート画像と、とを比較して類似度の評価値を算出する。そして、複数の異物検知領域A21の少なくとも1について評価値が0に近い方向で閾値を越えていた場合に、ホストコントローラ241は、異物を検知したと判定し、後述する「異物検出エラー」を内容とするメダルセレクタエラーコマンドを、副制御回路101へ送信する。このため、メダルレール210に異物を侵入させることによる不正行為を未然に防ぐことができる。
<Twenty-first operation>
The medal selector 201 of the present embodiment performs a foreign object detection process. In the foreign object detection processing, the host controller 241 compares the images of the plurality of foreign object detection areas A21 in the latest grayscale image data stored in the SRAM 243 with the template images stored in the flash memory 244 in advance, and compares them. Calculate the degree evaluation value. When the evaluation value of at least one of the plurality of foreign substance detection areas A21 exceeds the threshold value in a direction close to 0, the host controller 241 determines that a foreign substance has been detected, and describes a "foreign substance detection error" described later. Is transmitted to the sub-control circuit 101. For this reason, it is possible to prevent fraudulent acts caused by invasion of foreign matter into the medal rail 210.

<第22の作用>
次に、本実施形態の第22の作用について、図71を参照して説明する。図71は、本実施形態の第22の作用を説明するための図である。なお、図71Aは従来例に係るコマンドの送信タイミングを模式的に示し、また、図71Bは本実施形態に係る送信タイミングを模式的に示している。また、図における各データD0〜D9は、1バイトのデータを示している。
<22nd operation>
Next, a twenty-second operation of the present embodiment will be described with reference to FIG. FIG. 71 is a view for explaining the 22nd operation of the present embodiment. FIG. 71A schematically shows the transmission timing of a command according to the conventional example, and FIG. 71B schematically shows the transmission timing according to the present embodiment. Further, each data D0 to D9 in the drawing indicates 1-byte data.

本実施形態のメダルセレクタ201では、周期的(10msec毎)に実行されるデータ受信処理(図47参照)において、RXデータレジスタ252eに記憶されているデータが1パケット(10バイト)以上でない場合、タイムカウンタにタイムアウト値(本実施形態では、5)がセットされる(S320)。このタイムアウト値は、次周期以降のデータ受信処理実行時において、RXデータレジスタ252eに記憶されているデータが1パケット以上にならない限り、繰り返し1減算される(S321で実行されるデータ受信サブ処理のS341)。そして、タイムアウトカウンタの値が0になると、ディレイカウンタにディレイタイム値(本実施形態では、10)がセットされる(図49のS343参照)。また、RXデータレジスタ252eに記憶されているデータを破棄する(図49のS344参照)。   In the medal selector 201 of the present embodiment, in the data receiving process (see FIG. 47) executed periodically (every 10 msec), if the data stored in the RX data register 252e is not more than one packet (10 bytes), A timeout value (5 in this embodiment) is set in the time counter (S320). This timeout value is repeatedly decremented by 1 during execution of the data reception processing in the next cycle and thereafter unless the data stored in the RX data register 252e becomes one packet or more (the data reception sub-processing executed in S321). S341). Then, when the value of the timeout counter becomes 0, the delay time value (10 in the present embodiment) is set in the delay counter (see S343 in FIG. 49). Also, the data stored in the RX data register 252e is discarded (see S344 in FIG. 49).

ディレイカウンタにディレイタイム値がセットされた後、データ受信処理が実行される度に、ディレイカウンタの値は1減算される(図1のS312参照)。そして、ディレイカウンタの値が0になると、ホストコントローラ241は、NAKコマンドをTXデータレジスタ252cに記憶し、副制御回路101に送信する(図1のS314参照)。また、RXデータレジスタ252eに記憶されているデータを破棄する(図1のS315参照)。   After the delay time value is set in the delay counter, the value of the delay counter is decremented by one each time the data reception processing is executed (see S312 in FIG. 1). Then, when the value of the delay counter becomes 0, the host controller 241 stores the NAK command in the TX data register 252c and transmits it to the sub control circuit 101 (see S314 in FIG. 1). Further, the data stored in the RX data register 252e is discarded (see S315 in FIG. 1).

ここで、データD0〜D9の10バイトすなわち1パケットのデータからなるコマンドを副制御回路から、副制御回路に接続されている装置、例えばメダルセレクタに送信する際に、コマンドを構成する各データが断続的に送信される、いわゆるパケット割れが発生する場合がある。例えば、図71AのA1に示すように、データD0〜D4のデータが送信されてから期間A以上の時間を置いてデータD5〜D9が送信される場合がある。   Here, when transmitting a command consisting of 10 bytes of data D0 to D9, that is, one packet of data from the sub-control circuit to a device connected to the sub-control circuit, for example, a medal selector, each data constituting the command is A so-called packet break that is transmitted intermittently may occur. For example, as shown by A1 in FIG. 71A, data D5 to D9 may be transmitted at a time equal to or longer than period A after data D0 to D4 are transmitted.

このような場合に、従来では、メダルセレクタのホストコントローラ241は、期間A経過までに、副制御回路からデータD4に続くデータD5を受信しない場合はタイムアウトと判定し、A2に示すように即座にNAKコマンドをメダルセレクタから副制御回路に送信する。また、ホストコントローラ241は、受信したデータD0〜D4を、メモリ(例えば上述のRXデータレジスタ252e)から破棄する。   In such a case, conventionally, the host controller 241 of the medal selector determines that a time-out has occurred if the data D5 following the data D4 is not received from the sub-control circuit before the period A has elapsed, and immediately, as indicated by A2. A NAK command is transmitted from the medal selector to the sub control circuit. Further, the host controller 241 discards the received data D0 to D4 from the memory (for example, the above-described RX data register 252e).

しかしながら、ホストコントローラ241がメモリからデータを破棄した後に、既に副制御回路から送信されていたデータD5〜D9のデータがメダルセレクタに到達すると、メダルセレクタのメモリにデータD5〜D9が破棄されずに残ってしまう。   However, if the data D5 to D9 already transmitted from the sub-control circuit reach the medal selector after the host controller 241 discards the data from the memory, the data D5 to D9 are not discarded in the memory of the medal selector. Will remain.

そして、A3に示すように、メダルセレクタからのNAKコマンドを受けた副制御回路がコマンドを再送すると、メダルセレクタは、メダルセレクタのメモリに残っている前回送信されたコマンドのデータD5〜D9と、再送されたコマンドのデータD0〜D4と、からなる10バイト(1パケット)の1つのコマンドを受信したと誤って判断してしまう。   Then, as shown in A3, when the sub-control circuit that has received the NAK command from the medal selector retransmits the command, the medal selector replaces the data D5 to D9 of the previously transmitted command remaining in the memory of the medal selector with: It is erroneously determined that one command of 10 bytes (one packet) including the retransmitted command data D0 to D4 has been received.

その後、ホストコントローラ241は、誤って1つのコマンドと判定したデータについて整合性判定(サム値を用いた判定を含む)を行うので判定結果は異常となる。このため、A4に示すように、NAKを送信することになる。また、ホストコントローラ241は、メモリから前回送信されたコマンドのデータD5〜D9と、再送されたコマンドのデータD0〜D4を破棄する。   After that, the host controller 241 performs consistency determination (including determination using a sum value) on data that is erroneously determined to be one command, so that the determination result becomes abnormal. Therefore, as shown in A4, NAK is transmitted. Further, the host controller 241 discards the data D5 to D9 of the command previously transmitted from the memory and the data D0 to D4 of the retransmitted command.

しかしながら、再送されたコマンドのデータD5〜D9はメダルセレクタのメモリに残ってしまう。このため、NAKを受けた副制御回路がコマンドを再々送すると、ホストコントローラ241は、再送されたコマンドのデータD5〜D9と、再々送されたコマンドのデータD0〜D4と、からなる1つのコマンドを受信したと誤って判断することになる。このため、以後、メダルセレクタのNAKの送信と、副制御回路のコマンドの再送が繰り返し行われてしまう。   However, the retransmitted command data D5 to D9 remain in the memory of the medal selector. Therefore, when the sub-control circuit that has received the NAK re-transmits the command, the host controller 241 sets one command including data D 5 to D 9 of the re-transmitted command and data D 0 to D 4 of the re-transmitted command. Is incorrectly determined to have been received. For this reason, the transmission of the NAK of the medal selector and the retransmission of the command of the sub control circuit are repeatedly performed thereafter.

これに対して、本実施形態のメダルセレクタでは、上述のようにタイムアウトカウンタの値が0になると、ホストコントローラ241は、ディレイカウンタにディレイタイム値(本実施形態では、10)をセットし(図49のS343参照)、RXデータレジスタ252eに記憶されているデータを破棄する(図49のS344参照)。そして、ディレイカウンタの値が0になると、ホストコントローラ241は、NAKコマンドをTXデータレジスタ252cに記憶し、副制御回路101に送信し(図1のS314参照)、RXデータレジスタ252eに記憶されているデータを破棄する(図1のS315参照)。   On the other hand, in the medal selector of the present embodiment, when the value of the timeout counter becomes 0 as described above, the host controller 241 sets the delay time value (10 in the present embodiment) in the delay counter (FIG. 49, and discard the data stored in the RX data register 252e (see S344 in FIG. 49). When the value of the delay counter becomes 0, the host controller 241 stores the NAK command in the TX data register 252c, transmits the NAK command to the sub control circuit 101 (see S314 in FIG. 1), and stores the NAK command in the RX data register 252e. The existing data is discarded (see S315 in FIG. 1).

すなわち、図71BのB1及びB2に示すように、ホストコントローラ241は、副制御回路101から送信されたデータD4を受信してからタイムアウトカウンタの値が0となるまでの期間A経過時までに、続くデータD5を受信しないと、期間A経過時からディレイカウンタの値が0になるまでの期間Bの経過を待って、NAKコマンドをTXデータレジスタ252cに記憶し、副制御回路101に送信する。また、ホストコントローラ241は、期間A経過時までに受信したデータD0〜D4を、期間A経過時にRXデータレジスタ252eから破棄する。また、ホストコントローラ241は、期間B経過時に、期間Bの間に受信したデータD5〜D9をRXデータレジスタ252eから破棄する。   That is, as shown by B1 and B2 in FIG. 71B, the host controller 241 receives the data D4 transmitted from the sub-control circuit 101 and elapses the period A until the value of the timeout counter becomes 0. If the subsequent data D5 is not received, the NAK command is stored in the TX data register 252c and transmitted to the sub-control circuit 101 after the elapse of the period B from the elapse of the period A until the value of the delay counter becomes 0. Further, the host controller 241 discards the data D0 to D4 received until the time period A elapses from the RX data register 252e when the time period A elapses. When the period B has elapsed, the host controller 241 discards the data D5 to D9 received during the period B from the RX data register 252e.

このため、NAKコマンドを受けた副制御回路101によるコマンドの再送時には、RXデータレジスタ252eに前回送信されたコマンドに係るデータが残っておらず、図71BのB3及びB4に示すように、ホストコントローラ241は、送信されたコマンドを適切に受信し、ACKコマンドを送信できる。これによって、NAK送信後に、正常な通信状態に復帰させることができる。   For this reason, when the sub-control circuit 101 receives the NAK command and retransmits the command, no data relating to the previously transmitted command remains in the RX data register 252e, and as shown in B3 and B4 in FIG. 241 can appropriately receive the transmitted command and transmit an ACK command. As a result, it is possible to return to a normal communication state after transmitting the NAK.

本実施形態では、ディレイタイム値を10、タイムアウト値を5とする態様を説明した。すなわち、ディレイタイムカウンタに10がセットされてから0になるまでの時間(100msec)は、タイムアウトカウンタに5がセットされてから0になるまでの時間(50msec)の2倍になっている。しかしながら、ディレイタイム値及びタイムアウト値は適宜設定可能である。   In the present embodiment, the mode in which the delay time value is 10 and the timeout value is 5 has been described. That is, the time from when 10 is set to the delay time counter until it becomes 0 (100 msec) is twice as long as the time from when 5 is set to the timeout counter until it becomes 0 (50 msec). However, the delay time value and the timeout value can be set as appropriate.

ディレイタイム値は、ディレイタイムカウンタにディレイタイム値がセットされてから0になるまでの時間が、少なくとも、パケット割れが起こった場合に、後続のデータがRXデータレジスタ252eに記憶された後で、経過するような値に設定するとよい。このようにすることで、後続のデータがRXデータレジスタ252eに記憶された後に、ディレイタイムカウンタが0になり、RXデータレジスタ252eがクリアされるので、後続のデータを確実にRXデータレジスタ252eから破棄することができる。
本実施形態では、上述のとおり、副制御回路101とメダルセレクタ201のUART252との間は、115200bps(bit per second)の通信速度で接続されている。すなわち、1秒間に115,200ビットのデータを送信(又は受信)することが定められていることになる。したがって、10バイトで構成されているコマンドデータを送信(又は受信)するために必要となる最短時間は1バイトあたり約0.07msec以上となり、10バイトで約0.7msec以上となる。ただし、この時間は理想値であり、実際には、更に、時間(1msec)が必要となる。すなわち、パケット割れが起こった場合(未受信データが1バイトから9バイトある状態)、最短時間で約0.7msec未満以上のディレイタイム値が必要となるが、タイムアウト値が想定した時間(本実施形態では、50msec)以上発生する可能性があるため、十分な時間(本実施形態では、100msec)を設けている。
The delay time value is obtained by setting the time from when the delay time value is set to the delay time counter to when the delay time value becomes 0 to at least after the subsequent data is stored in the RX data register 252e when a packet break occurs. It is good to set to a value that passes. By doing so, after the subsequent data is stored in the RX data register 252e, the delay time counter becomes 0 and the RX data register 252e is cleared, so that the subsequent data is reliably transmitted from the RX data register 252e. Can be destroyed.
In the present embodiment, as described above, the sub control circuit 101 and the UART 252 of the medal selector 201 are connected at a communication speed of 115200 bps (bits per second). In other words, it is defined that 115,200 bits of data are transmitted (or received) per second. Therefore, the shortest time required to transmit (or receive) command data composed of 10 bytes is about 0.07 msec or more per byte, and about 0.7 msec or more for 10 bytes. However, this time is an ideal value, and actually requires more time (1 msec). That is, when a packet is broken (a state in which 1 to 9 bytes of unreceived data is present), a delay time value of about 0.7 msec or less is required in the shortest time. In the embodiment, since there is a possibility of occurrence of 50 msec or more, a sufficient time (100 msec in the present embodiment) is provided.

<第23の作用>
本実施形態では、メダルセレクタ201のホストコントローラ241は、データ受信サブ処理1(図48参照)において、RXデータレジスタ252eの前半10バイト分の領域に記憶されているデータ(以下の説明において、「前半のデータ」と称する場合がある)についてデータ受信整合性判定処理を行う(S333参照)。データ受信整合性判定処理に係る判定結果が異常であり、且つ、RXデータレジスタ252eに2パケット目がある、すなわちRXデータレジスタ252eの後半10バイト分の領域に10バイトのデータ(以下の説明において、「後半のデータ」と称する場合がある)が記憶されている場合、ホストコントローラ241は、後半のデータを受信バッファに格納する(S336参照)。そして、ホストコントローラ241は、後半のデータについてデータ受信整合性判定処理を行う。このデータ受信整合性判定処理の判定結果が正常の場合は、ACKコマンドを送信し(図5のS362)、異常の場合は、NAKコマンドを送信する(図5のS363)。
<Twenty-third operation>
In the present embodiment, the host controller 241 of the medal selector 201 determines in the data reception sub-process 1 (see FIG. 48) the data stored in the first 10-byte area of the RX data register 252e (in the following description, “ Data reception consistency determination processing is performed for the “first half data” (refer to S333). The determination result of the data reception consistency determination process is abnormal, and there is a second packet in the RX data register 252e, that is, 10 bytes of data in the area of the last 10 bytes of the RX data register 252e (in the following description, , "May be referred to as" second half data "), the host controller 241 stores the latter half data in the reception buffer (see S336). Then, the host controller 241 performs data reception consistency determination processing on the latter half of the data. If the result of the data reception consistency determination process is normal, an ACK command is transmitted (S362 in FIG. 5), and if abnormal, a NAK command is transmitted (S363 in FIG. 5).

すなわち、ホストコントローラ241は、前半のデータに係るデータ受信整合性判定処理の判定結果が異常の場合であっても、RXデータレジスタ252eに後半のデータが記憶されていれば、前半のデータに係る判定結果に基づくNAKコマンドは送信せず、後半のデータについてデータ受信整合性判定処理を行う。そして、その判定結果に応じてACKコマンド又はNAKコマンドを送信する。したがって、後半のデータが正常の場合、ホストコントローラ241は、前半のデータに係るNAKコマンドを送信せず、また、副制御回路101は、コマンドを再送しないので、メダルセレクタ201及び副制御回路101について、通信処理に係る処理負担を軽減することができる。   That is, even if the determination result of the data reception consistency determination processing relating to the first half of the data is abnormal, the host controller 241 determines whether the second half of the data is stored in the RX data register 252e. The NAK command based on the determination result is not transmitted, and data reception consistency determination processing is performed on the latter half of the data. Then, an ACK command or a NAK command is transmitted according to the determination result. Therefore, when the second half data is normal, the host controller 241 does not transmit the NAK command related to the first half data, and the sub control circuit 101 does not retransmit the command. In addition, the processing load related to the communication processing can be reduced.

なお、前半のデータに係るデータ受信整合性判定処理の判定結果が正常の場合、ホストコントローラ241は、RXデータレジスタ252eに記憶されているデータを破棄(消去)する(S335)。すなわち、ホストコントローラ241は、RXデータレジスタ252eの後半のデータが記憶されていても、そのデータを破棄する。そして、ホストコントローラ241は、前半のデータに係る判定結果に基づいて、ACKコマンドを送信する。このため、後半のデータについてデータ受信整合性判定処理を行わないので、メダルセレクタ201の処理負担を軽減することができる。   If the result of the data reception consistency determination process for the first half of the data is normal, the host controller 241 discards (erases) the data stored in the RX data register 252e (S335). That is, even if the latter half of the data of the RX data register 252e is stored, the host controller 241 discards the data. Then, the host controller 241 transmits an ACK command based on the determination result of the first half of the data. For this reason, since the data reception consistency determination processing is not performed on the latter half of the data, the processing load on the medal selector 201 can be reduced.

<第24の作用>
本実施形態のメダルセレクタ201は、煙検知処理を行う。煙検知処理において、煙が発生したことを検知すると、ホストコントローラ241は、メダルセレクタ201を通常のモードである通常モードから煙モードに設定し、カウント処理において、メダルカウント回路246が、処理の対象であるグレースケール画像データと背景グレースケール画像データの各判定領域(図23参照)における各画素の輝度の差分値が閾値以上であるかを判定する際に用いる閾値を、通常モードでの閾値から変更する。これによって、メダルカウント回路246が、煙が漂っている判定領域にメダルが存在すると誤認しないようにすることができ、カウント処理における判定の精度の低下を防止できる。
<24th operation>
The medal selector 201 of the present embodiment performs a smoke detection process. Upon detecting the occurrence of smoke in the smoke detection process, the host controller 241 sets the medal selector 201 from the normal mode, which is a normal mode, to the smoke mode. The threshold value used to determine whether the difference value of the luminance of each pixel in each determination region (see FIG. 23) between the grayscale image data and the background grayscale image data is equal to or larger than the threshold value is determined from the threshold value in the normal mode. change. This prevents the medal counting circuit 246 from erroneously recognizing that there is a medal in the determination area where the smoke is drifting, thereby preventing a reduction in the accuracy of the determination in the counting process.

<第24の作用>
本実施形態のメダルセレクタ201は、温度補正処理を行う。温度補正処理において、ホストコントローラ241は、温度センサ206gから、カメラユニット209におけるレンズ付近の温度を取得し、取得した温度に応じて、上述のカウント処理で用いられる判定領域A1〜A4,B1〜B4,C1,C2,D1〜D4,E及びF(図23参照)の位置を特定するため補正データを生成する。このため、温度上昇によってレンズに歪みが発生しても、発生した歪みに応じて判定領域の位置を補正できる。このため、レンズの歪みに因る不正行為の検知精度の低下を防止できる。
<24th operation>
The medal selector 201 of the present embodiment performs a temperature correction process. In the temperature correction processing, the host controller 241 acquires the temperature near the lens of the camera unit 209 from the temperature sensor 206g, and determines the determination areas A1 to A4, B1 to B4 used in the above-described counting processing according to the acquired temperature. , C1, C2, D1 to D4, E and F (see FIG. 23) to generate correction data. For this reason, even if distortion occurs in the lens due to the temperature rise, the position of the determination region can be corrected according to the generated distortion. For this reason, it is possible to prevent a decrease in the accuracy of detecting fraudulent acts due to lens distortion.

<変形例>
以上、本発明の一実施形態に係る遊技機について、その作用効果も含めて説明した。しかし、本発明の遊技機は、上述の実施の形態に限定されるものではなく、特許請求の範囲に記載した本発明の要旨を逸脱しない限り、種々の変形実施が可能である。なお、以下の変形例の説明において、上述した実施形態における構成要素と同一または類似の構成要素については、その説明を省略し、また、図面においては同一の符号を付す。
<Modification>
As above, the gaming machine according to the embodiment of the present invention has been described, including its operational effects. However, the gaming machine of the present invention is not limited to the above embodiment, and various modifications can be made without departing from the spirit of the present invention described in the claims. In the following description of the modified examples, description of the same or similar components as those in the above-described embodiment will be omitted, and the same reference numerals will be given in the drawings.

<変形例1>
例えば、図23〜図25に示す判定領域に対応する位置に、孔を設けたメダルセレクタ301を用いてもよい。
変形例1に係るメダルセレクタ301の構成について、図72を参照して説明する。図72は、変形例1におけるメダルセレクタを説明するための図である。なお、図72においては、メダルセレクタ301のキャンセルシュータ206及びカメラユニット209(図7参照)の図示を省略している。
<Modification 1>
For example, a medal selector 301 having a hole at a position corresponding to the determination area shown in FIGS. 23 to 25 may be used.
The configuration of the medal selector 301 according to the first modification will be described with reference to FIG. FIG. 72 is a diagram for describing a medal selector according to the first modification. In FIG. 72, the illustration of the cancel shooter 206 of the medal selector 301 and the camera unit 209 (see FIG. 7) is omitted.

メダルセレクタ301のベース板部304にはメダルレール310が、パチスロ1の前方へ凹むように、且つ、略L字状に形成されている。メダルレール310の表面には、複数の突条部310aが形成されている。   A medal rail 310 is formed in the base plate 304 of the medal selector 301 so as to be recessed in front of the pachislot 1 and in a substantially L-shape. On the surface of the medal rail 310, a plurality of ridges 310a are formed.

また、メダルレール310において、図23〜図25に示す判定領域A1〜A4及び判定領域B1〜B4に対応する位置に、これらの判定領域を合わせた形状と同形状の判定領域AB孔310bが形成されている。また、同様に判定領域C1,C2に対応する位置に同形状の判定領域C孔310cが形成され、また、判定領域D1〜D4に対応する位置に同形状の判定領域D310d孔が形成されている。また、図示は省略するが、ベース板部304には、図23〜図25に示す判定領域Fに対応する位置に、判定領域F孔310eが形成されている。   Further, in the medal rail 310, at the positions corresponding to the determination areas A1 to A4 and the determination areas B1 to B4 shown in FIGS. 23 to 25, a determination area AB hole 310b having the same shape as the shape combining these determination areas is formed. Have been. Similarly, a determination region C hole 310c having the same shape is formed at a position corresponding to the determination regions C1 and C2, and a determination region D310d hole having the same shape is formed at a position corresponding to the determination regions D1 to D4. . Although not shown, a determination area F hole 310e is formed in the base plate portion 304 at a position corresponding to the determination area F shown in FIGS.

また、図72に示すようにメダルセレクタ301のサブプレート305には、図23〜図25に示す判定領域Fに対応する位置に、判定領域F孔305aが形成されている。サブプレート305に形成されている判定領域F孔305aと、ベース板部304に形成されている判定領域F孔310eとは、前後方向に連通している。
なお、メダルセレクタ301のその他の点においては、メダルセレクタ201と同様のため、説明を省略する。
Further, as shown in FIG. 72, the sub-plate 305 of the medal selector 301 has a determination region F hole 305a formed at a position corresponding to the determination region F shown in FIGS. The determination region F hole 305a formed in the sub plate 305 and the determination region F hole 310e formed in the base plate portion 304 communicate with each other in the front-rear direction.
Note that the other points of the medal selector 301 are the same as those of the medal selector 201, and a description thereof will be omitted.

本変形例では、判定領域A1〜A4,B1〜B4,C1,C2,D1〜D4,及びFのそれぞれの対応する位置に、孔(判定領域AB孔310b,判定領域C孔310c,判定領域D310d孔及び判定領域F孔310e,305a)を設けた。したがって、メダルカウント回路246が行うメダル位置検出処理において用いられる背景グレースケール画像データ(メダルの画像が含まれていないグレースケール画像データ)の各判定領域に対応する位置の輝度の値が、これらの孔を設けていない場合に比べて、より低い値(光源用のLED233の光が孔を通過することでCMOSイメージセンサ232に反射しないため)となる。このため、メダルレール310の表面に近い輝度のメダルが使用されても、背景グレースケール画像データの各判定領域における輝度と、処理の対象であるグレースケール画像データにおけるメダルの画像の輝度との差分を算出できる(例えば、メダルレール310の表面の輝度の値を50とした場合に、孔の部分の輝度の値が22であれば、差分として28の値が算出される)。したがって、メダル位置検出処理においてメダルレール310の表面に近い輝度のメダル(表面をブラック、グレー、ブラウン系の色に加工したメダルや、表面が劣化、又は、汚れて、光の反射が十分でないメダル等)を含む多様なメダルを正確に検出することができる。また、同様に、メダルカウント回路246が行うメダルエッジ検出処理の精度も高めることができる。すなわち、本変形例では、メダル位置検出処理を行うメダルカウント回路246は、物体有無検出手段を構成する。   In the present modification, holes (the determination region AB hole 310b, the determination region C hole 310c, the determination region D310d) are provided at the corresponding positions of the determination regions A1 to A4, B1 to B4, C1, C2, D1 to D4, and F, respectively. Holes and determination area F holes 310e, 305a) are provided. Therefore, the luminance value at the position corresponding to each determination region of the background grayscale image data (grayscale image data not including the medal image) used in the medal position detection process performed by the medal count circuit 246 is determined by these values. The value is lower than that in the case where the hole is not provided (because the light of the LED 233 for the light source passes through the hole and is not reflected on the CMOS image sensor 232). For this reason, even if a medal having a luminance close to the surface of the medal rail 310 is used, the difference between the luminance in each determination region of the background grayscale image data and the luminance of the medal image in the grayscale image data to be processed. (For example, if the value of the luminance of the surface of the medal rail 310 is set to 50 and the value of the luminance of the hole portion is 22, a value of 28 is calculated as the difference). Therefore, in the medal position detection processing, medals having a luminance close to the surface of the medal rail 310 (medals whose surface is processed into black, gray, or brown colors, medals whose surface is deteriorated or dirty, and light reflection is not sufficient) Etc.) can be accurately detected. Similarly, the accuracy of the medal edge detection process performed by the medal counting circuit 246 can be improved. That is, in the present modification, the medal counting circuit 246 that performs the medal position detection processing constitutes an object presence / absence detecting unit.

なお、メダルレール310における図23〜図25に示す判定領域Eに対応する位置に、同形状の孔を設けてもよい。また、本変形例のその他の点については、上記の実施形態と同様のため、説明を省略する。   Note that a hole having the same shape may be provided at a position on the medal rail 310 corresponding to the determination area E shown in FIGS. In addition, the other points of the present modified example are the same as those of the above-described embodiment, and thus description thereof is omitted.

<変形例2>
次に、変形例2の遊技機について、図73及び図74を参照して説明する。
図73は、変形例2の遊技機におけるメダルセレクタの回路構成例を示すブロック図である。また、図74は、変形例2の遊技機における制御LSIの回路構成例を示すブロック図である。
なお、変形例2に係る遊技機についての以下の説明において、上述した実施形態におけるパチスロ1と共通する構成や機能については、説明を省略する。
<Modification 2>
Next, a gaming machine according to a second modification will be described with reference to FIGS.
FIG. 73 is a block diagram illustrating a circuit configuration example of a medal selector in a gaming machine of Modification Example 2. FIG. 74 is a block diagram illustrating a circuit configuration example of a control LSI in a gaming machine of Modification Example 2.
Note that, in the following description of the gaming machine according to Modification 2, descriptions of configurations and functions common to the pachislo 1 in the above-described embodiment will be omitted.

図73及び図74に示すように、変形例2のメダルセレクタ401における制御LSI234とメダルソレノイド208とは電気的に接続されている。したがって、制御LSI234は、メダルソレノイド208をON状態又はOFF状態に設定することができる。具体的には、制御LSI234は、GPIO250を介して、GPIO250に割り付けられた出力PORTから、メダルソレノイド208をON状態又はOFF状態に設定する制御信号をメダルソレノイド208に出力する。   As shown in FIGS. 73 and 74, the control LSI 234 in the medal selector 401 of the second modification and the medal solenoid 208 are electrically connected. Therefore, the control LSI 234 can set the medal solenoid 208 to the ON state or the OFF state. Specifically, the control LSI 234 outputs a control signal for setting the medal solenoid 208 to the ON state or the OFF state from the output PORT allocated to the GPIO 250 via the GPIO 250 to the medal solenoid 208.

本変形例におけるメダルセレクタ401のホストコントローラ241は、上述したメダルセレクタ201と同様に、魚眼補正スケーラ回路248が、縮小画像データを作成して、SRAM243に記憶させると、当該記憶させた縮小画像データに対して、刻印判定処理における円領域検出処理以降の処理の実行を画像認識DSP回路242及び画像認識アクセラレータ回路249に指示する。なお、円領域検出処理において、円領域が抽出できなかった場合は、刻印判定処理における以降の処理は省略される。   The host controller 241 of the medal selector 401 according to the present modification, when the fisheye correction scaler circuit 248 creates reduced image data and stores the reduced image data in the SRAM 243, similarly to the above-described medal selector 201, For the data, the image recognition DSP circuit 242 and the image recognition accelerator circuit 249 are instructed to execute the processing after the circular area detection processing in the marking determination processing. In the case where the circular area cannot be extracted in the circular area detection processing, the subsequent processing in the marking determination processing is omitted.

このようにすることで、メダルレール210上を移動する物体が、メダルレール210の上露出孔219又は下露出孔220(図8参照)に達する前に、画像認識DSP回路242は、この物体に対する刻印判定処理の判定結果(3次元判定の結果)をSRAM243に記憶させることができる。   In this way, before the object moving on the medal rail 210 reaches the upper exposure hole 219 or the lower exposure hole 220 (see FIG. 8) of the medal rail 210, the image recognition DSP circuit 242 performs The determination result of the engraving determination process (the result of the three-dimensional determination) can be stored in the SRAM 243.

刻印判定の結果を取得したホストコントローラ241は、取得した判定結果が「判定NG」である場合、メダルソレノイド208をOFF状態に設定する制御信号をメダルソレノイド208に出力する。この場合、判定対象の物体を、上露出孔219から突出するアフタメダルプレッシャ218、又は、下露出孔220から突出するメダルストッパ部227に押し出させ、キャンセルシュータ206に向けて排出させることができる。   The host controller 241 that has obtained the result of the engraving determination outputs a control signal for setting the medal solenoid 208 to the OFF state to the medal solenoid 208 when the obtained determination result is “determination NG”. In this case, the object to be determined can be pushed out by the after-medal pressure 218 projecting from the upper exposure hole 219 or the medal stopper portion 227 projecting from the lower exposure hole 220, and can be ejected toward the cancel shooter 206.

また、本変形例におけるメダルセレクタ401のホストコントローラ241は、上述したメダルセレクタ201と同様に、刻印判定処理の結果がSRAM243に記憶されたタイミングで、同一の画像IDに関連づけられている色判定の判定結果をSRAM243から取得し、色判定処理の判定結果に応じて、メダルソレノイド208をON状態又はOFF状態に設定する制御信号をメダルソレノイド208に出力する。   In addition, the host controller 241 of the medal selector 401 in the present modified example performs color determination associated with the same image ID at the timing when the result of the engraving determination process is stored in the SRAM 243, similarly to the above-described medal selector 201. The determination result is obtained from the SRAM 243, and a control signal for setting the medal solenoid 208 to the ON state or the OFF state is output to the medal solenoid 208 according to the determination result of the color determination processing.

このため、本変形例では、メダルレール210上を移動する物体が、メダルレール210の上露出孔219又は下露出孔220(図8参照)に達する前に、この物体に対する色判定処理の判定結果に応じて、メダルソレノイド208をON状態又はOFF状態に設定することができる。   For this reason, in this modification, before the object moving on the medal rail 210 reaches the upper exposure hole 219 or the lower exposure hole 220 (see FIG. 8) of the medal rail 210, the determination result of the color determination process for this object is performed. , The medal solenoid 208 can be set to an ON state or an OFF state.

具体的には、ホストコントローラ241は、取得した閾値判定処理の判定結果として「閾値判定不可」が記憶されている場合、又は、色判定結果として「否」が記憶されている場合、すなわち「判定NG」の場合、メダルソレノイド208をOFF状態に設定する制御信号をメダルソレノイド208に出力する。この場合、判定対象の物体を、上露出孔219から突出するアフタメダルプレッシャ218、又は、下露出孔220から突出するメダルストッパ部227に押し出させ、キャンセルシュータ206に向けて排出させることができる。   Specifically, the host controller 241 stores “No threshold determination” as the determination result of the obtained threshold determination processing, or “No” as the color determination result, that is, “ In the case of "NG", a control signal for setting the medal solenoid 208 to the OFF state is output to the medal solenoid 208. In this case, the object to be determined can be pushed out by the after-medal pressure 218 projecting from the upper exposure hole 219 or the medal stopper portion 227 projecting from the lower exposure hole 220, and can be ejected toward the cancel shooter 206.

一方、色判定の結果及び刻印判定の結果が「判定OK」の場合、ホストコントローラ241は、メダルソレノイド208の状態がON状態のまま維持されるようにする。この場合、判定対象の物体はホッパー装置51に案内される。   On the other hand, when the result of the color determination and the result of the marking determination are “OK”, the host controller 241 maintains the state of the medal solenoid 208 in the ON state. In this case, the object to be determined is guided to the hopper device 51.

変形例におけるメダルセレクタ401のホストコントローラ241は、SRAM243に記憶させた縮小画像データに対して行った円領域検出処理において円領域が検出できなくなったとき、メダルソレノイド208をON状態に設定する制御信号をメダルソレノイド208に出力する。このようにすることで、次に投入された物体が正規のメダルの場合に、このメダルをホッパー装置51に適切に導くことができる。すなわち、制御LSI234は、メダルソレノイド208の駆動を制御する駆動制御手段を構成する。   The host controller 241 of the medal selector 401 according to the modified example sets a medal solenoid 208 to an ON state when the circular area cannot be detected in the circular area detection processing performed on the reduced image data stored in the SRAM 243. Is output to the medal solenoid 208. In this way, when the next inserted object is a regular medal, the medal can be appropriately guided to the hopper device 51. That is, the control LSI 234 forms a drive control unit that controls the drive of the medal solenoid 208.

本変形例において、主制御回路91(主制御基板71)は、メダルセレクタにメダル投入信号を出力する。具体的には、主制御回路91は、パチスロ1がメダルを投入可能なメダル投入許可状態ではないとき、投入不可の内容のメダル投入信号を、メダルセレクタ401へ出力する。   In this modification, the main control circuit 91 (main control board 71) outputs a medal insertion signal to the medal selector. More specifically, when the pachislot 1 is not in a medal insertion permission state in which the pachislot 1 can insert a medal, the main control circuit 91 outputs a medal insertion signal indicating that the insertion is impossible to the medal selector 401.

ここで、パチスロ1がメダルを投入可能なメダル投入許可状態ではないときとは、例えば、単位遊技においてスタートレバー23が遊技者により操作された後、また、クレジットカウンタが最大値(例えば、50)のとき、である。   Here, the time when the pachislot 1 is not in the medal insertion permitted state in which a medal can be inserted means that, for example, after the start lever 23 is operated by the player in the unit game, the credit counter is set to the maximum value (for example, 50). At the time.

主制御回路91から投入不可の内容のメダル投入信号が出力されると、メダルセレクタ401のホストコントローラ241は、メダルソレノイド208をOFF状態に設定する。   When the main control circuit 91 outputs a medal insertion signal indicating that the medal cannot be inserted, the host controller 241 of the medal selector 401 sets the medal solenoid 208 to the OFF state.

また、主制御回路91は、パチスロ1がメダルを投入可能なメダル投入許可状態のとき、投入許可の内容のメダル投入信号を、メダルセレクタ401へ出力する。なお、ホストコントローラ241は、主制御回路91から投入許可の内容のメダル投入信号が出力されると、メダルソレノイド208をON状態に設定する。
なお、本変形例のその他の点については、上記の実施形態と同様のため、説明を省略する。
Further, when the pachislot 1 is in a medal insertion permission state in which the pachislot 1 can insert medals, the main control circuit 91 outputs a medal insertion signal of the content of the insertion permission to the medal selector 401. The host controller 241 sets the medal solenoid 208 to the ON state when the main control circuit 91 outputs a medal insertion signal indicating the permission of insertion.
Note that the other points of the present modified example are the same as those of the above-described embodiment, and thus description thereof is omitted.

本変形例のパチスロ1では、メダルレール210上を通過する物体について刻印判定処理及び色判定処理を行い、その結果に基づいて、メダルソレノイド208を動作させる。このため、判定対象の物体を、判定の結果に基づいて、適切に、キャンセルシュータ206、又は、ホッパー装置51に導くことができる。
なお、主制御回路91は、ホストコントローラ241を介さず、直接メダルソレノイド208をON状態又はOFF状態に設定してもよい。
In the pachislo 1 of the present modification, the marking determination process and the color determination process are performed on the object passing on the medal rail 210, and the medal solenoid 208 is operated based on the results. Therefore, the object to be determined can be appropriately guided to the cancel shooter 206 or the hopper device 51 based on the result of the determination.
The main control circuit 91 may directly set the medal solenoid 208 to the ON state or the OFF state without going through the host controller 241.

<変形例3>
変形例3のパチスロは、メダルセレクタ501を備える。メダルセレクタ501では、カウント処理の判定結果として、SRAM243に「メダルが通過した」と記憶された場合には、ホストコントローラ241は、その旨を示すメダルカウントコマンドを、副制御回路101に送信する。そして、副制御回路101は、メダルカウントコマンドを受信すると、主制御回路91の投入枚数カウンタ及びクレジットカウンタとは別に、サブRAM103上に設けられたサブ投入枚数カウンタ及びサブクレジットカウントで、主制御回路91と同様に、投入枚数やクレジットされているメダルの枚数を管理する。
<Modification 3>
The pachislot according to the third modification includes a medal selector 501. In the medal selector 501, when “medal has passed” is stored in the SRAM 243 as the determination result of the count process, the host controller 241 transmits a medal count command indicating that to the sub control circuit 101. When the sub control circuit 101 receives the medal count command, the sub control circuit 101 uses the sub insertion number counter and the sub credit count provided on the sub RAM 103 separately from the insertion number counter and the credit counter of the main control circuit 91. Similarly to 91, the number of inserted coins and the number of credited medals are managed.

変形例3におけるメダルセレクタ501の回路構成は、メダルセレクタ201の回路構成(図17参照)と同様であるため、図示を省略する。また、メダルセレクタ501の制御LSIの回路構成は、メダルセレクタ201の制御LSIの回路構成と同様であるため、図示を省略する。   The circuit configuration of the medal selector 501 according to the third modification is the same as the circuit configuration of the medal selector 201 (see FIG. 17), and is not illustrated. Further, the circuit configuration of the control LSI of the medal selector 501 is the same as the circuit configuration of the control LSI of the medal selector 201, and is not shown.

<差枚数報知機能>
また、変形例3のパチスロにおいて、主制御回路91で管理しているメダルのカウント枚数と、副制御回路101で管理しているメダルのカウント枚数と、を所定のタイミングで比較し、差枚数が所定枚数を超えた場合に、報知するという差枚数報知機能を備えてもよい。なお、差枚数報知機能については以下に詳細に説明する。
<Difference number notification function>
Further, in the pachislo of the third modification, the count number of medals managed by the main control circuit 91 is compared with the count number of medals managed by the sub control circuit 101 at a predetermined timing, and the difference number is determined. A difference number notification function of notifying when the number exceeds a predetermined number may be provided. The difference number notification function will be described in detail below.

主制御回路91のメインCPU93は、ダブルフォトセンサ502の第1フォトセンサ503から入力されたメダル検知信号を検出してから、所定時間内に、第2フォトセンサ504から入力されたメダル検知信号を検出すると、投入されたメダルの枚数をメインCPU93が計数するために設けられたカウンタである投入枚数カウンタ又はクレジットカウントの値に1加算するともに、メインRAM95に設けられたメインカウント枚数記憶領域の値に1加算する。メインカウント枚数記憶領域は、2バイトの記憶領域からなる。すなわち、メインカウント枚数記憶領域の値は、0〜65535の範囲で変化可能となっている。なお、メインカウント枚数記憶領域の値に1加算する際、メインカウント枚数記憶領域の値が65535の場合は、メインCPU93は、メインカウント枚数記憶領域の値を0に設定する。   After detecting the medal detection signal input from the first photo sensor 503 of the double photo sensor 502, the main CPU 93 of the main control circuit 91 detects the medal detection signal input from the second photo sensor 504 within a predetermined time. Upon detection, the number of inserted medals is incremented by 1 to a value of an inserted number counter or a credit count, which is a counter provided for the main CPU 93 to count, and a value of a main count number storage area provided in the main RAM 95 is provided. Is incremented by one. The main count number storage area is composed of a 2-byte storage area. That is, the value of the main count number storage area can be changed in the range of 0 to 65535. When adding 1 to the value of the main count number storage area, if the value of the main count number storage area is 65535, the main CPU 93 sets the value of the main count number storage area to 0.

本変形例では、主制御回路91(のメインCPU93)は、無操作コマンドを副制御回路101に送信する際に、その時点におけるメインカウント枚数記憶領域の値を、パラメータとして無操作コマンドに含ませる。   In this modified example, when transmitting the no-operation command to the sub-control circuit 101, the main control circuit 91 (the main CPU 93 of the main control circuit 91) includes the value of the main count number storage area at that time as a parameter in the no-operation command. .

副制御回路101が、メダルセレクタ501からメダルカウントコマンドを受信すると、サブCPU102は、サブRAM103に設けられたサブカウント枚数記憶領域の値に1加算する。サブカウント枚数記憶領域は、2バイトの記憶領域からなる。すなわち、サブカウント枚数記憶領域の値は、0〜65535の範囲で変化可能となっている。なお、サブカウント枚数記憶領域の値に1加算する際、サブカウント枚数記憶領域の値が65535の場合は、サブCPU102は、サブカウント枚数記憶領域の値を0に設定する。   When the sub control circuit 101 receives the medal count command from the medal selector 501, the sub CPU 102 adds 1 to the value of the sub count number storage area provided in the sub RAM 103. The sub-count number storage area is composed of a 2-byte storage area. That is, the value of the sub count number storage area can be changed in the range of 0 to 65535. When adding 1 to the value of the sub count number storage area, if the value of the sub count number storage area is 65535, the sub CPU 102 sets the value of the sub count number storage area to 0.

副制御回路101が主制御回路91から無操作コマンドを受信すると、サブCPU102は、サブカウント枚数記憶領域を参照し、サブカウント枚数記憶領域の値から、無操作コマンドに含まれているメインカウント枚数記憶領域の値を、減算する。そして、サブCPU102は、減算の結果の絶対値が5以上であるか否かを判定する。判定の結果が、5以上である場合は、サブCPU102は、副7セグ表示器(不図示)に所定の表示(例えば「CC」)を表示させ、エラーを報知する。一方、判定の結果が、5以上でない場合は、サブCPU102は、副7セグ表示器に所定の表示(例えば「CC」)を表示させない。
なお、副7セグ表示器に所定の表示を「CC」に代えて、主制御回路91で管理しているメダルのカウント枚数(メインカウント枚数記憶領域の値)と、副制御回路101で管理しているメダルのカウント枚数(サブカウント枚数記憶領域の値)との差枚数が所定枚数以上(本変形例では5枚以上)であるエラーが発生していることを容易に認識可能なように他の表示、例えば「CE」と表示させてもよい。また、所定数は、適宜設定可能である。例えば、10枚又は20枚と設定してもよい。
When the sub-control circuit 101 receives the no-operation command from the main control circuit 91, the sub-CPU 102 refers to the sub-count number storage area and determines the main count number included in the no-operation command from the value of the sub-count number storage area. Subtract the value of the storage area. Then, the sub CPU 102 determines whether or not the absolute value of the result of the subtraction is 5 or more. When the result of the determination is 5 or more, the sub CPU 102 displays a predetermined display (for example, “CC”) on the sub 7-segment display (not shown) to notify the error. On the other hand, when the result of the determination is not 5 or more, the sub CPU 102 does not display a predetermined display (for example, “CC”) on the sub 7-segment display.
The predetermined display on the sub 7-segment display is replaced by “CC”, and the number of medal counts (the value of the main count number storage area) managed by the main control circuit 91 and the medal count by the sub control circuit 101 are managed. In order to easily recognize that an error occurs in which the difference number from the counted number of medals (the value of the sub-counted number storage area) is equal to or more than a predetermined number (5 or more in this modification). May be displayed, for example, “CE”. The predetermined number can be set as appropriate. For example, it may be set to 10 or 20 sheets.

差枚数報知機能を備えるパチスロでは、主制御回路91で管理しているメダルのカウント枚数と、副制御回路101で管理しているメダルのカウント枚数との差枚数が所定枚数以上の場合に、副7セグ表示器に所定の表示を表示させることで、その旨を報知できる。なお、本変形例では、サブカウント枚数記憶領域の値とメインカウント枚数記憶領域の値とを減算し、その結果の絶対値が5以上の場合に、副7セグ表示器でエラーを報知する例を説明した。しかし、エラーの報知の態様は、これに限らない。例えば、副7セグ表示器に所定の表示を表示させることに代えて、液晶表示装置11(図14参照)にエラー画面を表示してもよい。また、副7セグ表示器に所定の表示を表示させることに加えて、スピーカ58,64,65L及び65R(図14参照)の全て又はいずれかから警告音を出力するようにしてもよい。また、上述した副7セグ表示器を用いた報知、液晶表示装置11を用いた報知及びスピーカ58,64,65L,65Rを用いた報知を適宜組み合わせて報知を行ってもよい。   In a pachislot provided with a difference number notification function, when the difference between the counted number of medals managed by the main control circuit 91 and the counted number of medals managed by the sub control circuit 101 is equal to or larger than a predetermined number, By displaying a predetermined display on the 7-segment display, the fact can be notified. In this modification, an example in which the value of the sub count number storage area is subtracted from the value of the main count number storage area, and when the absolute value of the result is 5 or more, an error is notified by the sub 7-segment display. Was explained. However, the mode of error notification is not limited to this. For example, instead of displaying a predetermined display on the sub 7-segment display, an error screen may be displayed on the liquid crystal display device 11 (see FIG. 14). Further, in addition to displaying a predetermined display on the sub 7-segment display, a warning sound may be output from all or any of the speakers 58, 64, 65L, and 65R (see FIG. 14). Alternatively, the notification using the sub 7-segment display, the notification using the liquid crystal display device 11, and the notification using the speakers 58, 64, 65L, and 65R may be appropriately combined to perform the notification.

ここで、主制御回路91で管理しているメダルのカウント枚数と、副制御回路101で管理しているメダルのカウント枚数との差枚数が所定枚数以上となる場合としては、ダブルフォトセンサ502に障害が発生したことによりメダル検知信号が適切に出力されていない場合や、メダルセレクタ501の制御LSI234に障害が発生したことにより制御LSI234(のメダルカウント回路246)が行うメダルカウント処理に適切に行われない場合などが考えられる。   Here, if the difference between the counted number of medals managed by the main control circuit 91 and the counted number of medals managed by the sub-control circuit 101 is equal to or greater than a predetermined number, the double photo sensor 502 When the medal detection signal is not properly output due to the failure, or when the control LSI 234 of the medal selector 501 has a failure, the medal counting process performed by the control LSI 234 (medal counting circuit 246 thereof) is appropriately performed. There is a case where it is not possible.

このため、差枚数報知機能に係る報知があると、遊技機の管理者(例えば、遊技ホールの従業員)は、ダブルフォトセンサ502や制御LSI234の挙動をチェックすることで、これらに生じた障害を認識することができ、障害を除去できる。このため、障害がない状態で各種処理を行わせることができるので、ダブルフォトセンサ502から出力されるメダル検知信号に基づく主制御回路91でのメダルのカウント処理などの信頼性が向上する。また、制御LSI234が行うメダルカウント処理を含む各種処理の信頼性が向上する。   For this reason, if there is a notification related to the difference number notification function, the administrator of the gaming machine (for example, an employee of the gaming hall) checks the behavior of the double photo sensor 502 and the control LSI 234, and the trouble caused by these is checked. Can be recognized and obstacles can be eliminated. For this reason, various processes can be performed in a state where there is no obstacle, so that the reliability such as the medal counting process in the main control circuit 91 based on the medal detection signal output from the double photosensor 502 is improved. Further, the reliability of various processes including the medal counting process performed by the control LSI 234 is improved.

なお、無操作コマンドにメインカウント枚数の値を示すパラメータを含ませる例を説明したが、当パラメータを含ませるコマンドは、これに限らず、例えば入賞作動コマンド又はメダル投入コマンドに、当パラメータを含ませてもよい。   Although the example in which the parameter indicating the value of the main count number is included in the no-operation command has been described, the command including this parameter is not limited to this. For example, the winning operation command or the medal insertion command includes this parameter. You may not.

<セレクタ監視機能>
また、本変形例のパチスロでは、主制御回路91からの指示に応じてセレクトプレート207がガイド位置又は排出位置に移動したか否かを判定し、主制御回路91からの指示に応じてセレクトプレート207が移動していないと判定する場合は、エラー報知するセレクタ監視機能を備えてもよい。なお、以下に説明するセレクタ監視機能に係る主制御回路91、副制御回路101及びメダルセレクタ501(の制御LSI234)が行う各種処理は、上述の各デバイスが実施する各種処理と並行して行われる。
<Selector monitoring function>
Further, in the pachislo of this modification, it is determined whether or not the select plate 207 has moved to the guide position or the discharge position in accordance with an instruction from the main control circuit 91, and the select plate 207 is determined in accordance with an instruction from the main control circuit 91. If it is determined that the 207 has not moved, a selector monitoring function for notifying an error may be provided. Note that various processes performed by (the control LSI 234 of) the main control circuit 91, the sub-control circuit 101, and the medal selector 501 related to the selector monitoring function described below are performed in parallel with the various processes performed by the devices described above. .

セレクタ監視機能を備えたパチスロにおいても、主制御回路91は、無操作コマンドを副制御回路101に送信する際に、その時点においてメダルソレノイド208をON状態に設定しているかOFF状態に設定しているかを示すパラメータを無操作コマンドに含ませる。具体的には、主制御回路91は、主制御回路91とメダルソレノイド208間の信号線をON状態に設定している場合は、メダルソレノイド208をON状態に設定している旨を示すパラメータを無操作コマンドに含ませ、一方、主制御回路91は、主制御回路91とメダルソレノイド208間の信号線を、OFF状態に設定している場合は、メダルソレノイド208をOFF状態に設定している旨を示すパラメータを無操作コマンドに含ませる。すなわち、主制御回路91は、メダルソレノイド208を、セレクトプレート207がガイド位置に移動するように制御している(ON状態に設定している)のか、排出位置に移動するように制御している(OFF状態に設定している)のかを示す情報を無操作コマンドに含ませて出力する。   Also in the pachislo provided with the selector monitoring function, the main control circuit 91 sets the medal solenoid 208 to the ON state or the OFF state at that time when transmitting the no-operation command to the sub control circuit 101. Is included in the no-operation command. Specifically, when the signal line between the main control circuit 91 and the medal solenoid 208 is set to the ON state, the main control circuit 91 sets a parameter indicating that the medal solenoid 208 is set to the ON state. When the signal line between the main control circuit 91 and the medal solenoid 208 is set to the OFF state, the main control circuit 91 sets the medal solenoid 208 to the OFF state. Is included in the no-operation command. That is, the main control circuit 91 controls the medal solenoid 208 to move the select plate 207 to the guide position (set to the ON state) or to move to the discharge position. (Set to the OFF state) is included in the no-operation command and output.

副制御回路101は、無操作コマンドを受信すると、受信した無操作コマンドに含まれているメダルソレノイド208をON状態に設定しているかOFF状態に設定しているかを示すパラメータに基づいて、上述の投入状態コマンドをメダルセレクタ501に送信する。   Upon receiving the no-operation command, the sub-control circuit 101 determines whether the medal solenoid 208 included in the received no-operation command is set to the ON state or the OFF state, based on the above-described parameter. An insertion state command is transmitted to the medal selector 501.

制御LSI234は、前回受信した投入状態コマンドが示す受付状態(「受付可」又は「受付不可」)と、今回受信した投入状態コマンドが示す受付状態とに変化があったとき、位置判定処理を行う。本変形例では、位置判定処理を行う制御LSI234が、位置判定手段を構成する。   The control LSI 234 performs a position determination process when there is a change between the reception state (“acceptable” or “reception impossible”) indicated by the input state command received last time and the reception state indicated by the input state command received this time. . In the present modified example, the control LSI 234 that performs the position determination processing constitutes a position determination unit.

位置判定処理において、制御LSI234は、ISP回路245が、レンズ歪み補正処理と射影変換処理後のRGBベイヤ画像を各種フォーマットに変換する色変換処理を行うことによって、生成され、SRAM243に記憶された一番新しいグレースケール画像データを取得する。   In the position determination process, the control LSI 234 is generated by the ISP circuit 245 performing a color conversion process of converting the RGB Bayer image after the lens distortion correction process and the projection conversion process into various formats, and is stored in the SRAM 243. Get the newest grayscale image data.

次いで、制御LSI234は、取得したグレースケール画像データを解析し、セレクトプレート207がガイド位置にあるか排出位置にあるかを判定する。具体的には、制御LSI234は、グレースケール画像データにおけるメダルの進行方向(図75の矢印A方向)に直交する方向のメダルレール210の幅(以下、単に「レール幅」と称する場合がある)に基づいて、ガイド位置にあるか排出位置にあるかを判定する。   Next, the control LSI 234 analyzes the acquired grayscale image data and determines whether the select plate 207 is at the guide position or the discharge position. Specifically, the control LSI 234 controls the width of the medal rail 210 in a direction orthogonal to the direction of movement of the medals in the grayscale image data (the direction of arrow A in FIG. 75) (hereinafter, may be simply referred to as “rail width”). Is determined at the guide position or at the discharge position based on.

図75では、ガイド位置にあるときのセレクトプレート207を実線で示し、排出位置にあるセレクトプレート207におけるプレート本体224の端部(メダルの進行方向に沿って延存する箇所)を鎖線で示している。図75に示すように、セレクトプレート207がガイド位置にあるときのレール幅W1は、セレクトプレート207が排出位置にあるときのレール幅W2よりも狭くなる。制御LSI234は、実験やシミュレーションに基づいて予め設定されたガイド位置にあるときのレール幅と、グレースケール画像データにおけるレール幅とを比較し、一致する場合は、セレクトプレート207がガイド位置にあると判定する。一方、グレースケール画像データにおけるレール幅の方が広い場合は、セレクトプレート207が排出位置にあると判定する。   In FIG. 75, the select plate 207 at the guide position is indicated by a solid line, and the end of the plate body 224 (a portion extending along the medal traveling direction) in the select plate 207 at the discharge position is indicated by a chain line. . As shown in FIG. 75, the rail width W1 when the select plate 207 is at the guide position is smaller than the rail width W2 when the select plate 207 is at the discharge position. The control LSI 234 compares the rail width at the guide position set in advance based on experiments and simulations with the rail width in the grayscale image data, and when they match, it is determined that the select plate 207 is at the guide position. judge. On the other hand, if the rail width in the grayscale image data is wider, it is determined that the select plate 207 is at the discharge position.

なお、セレクトプレート207がガイド位置にあるか排出位置にあるかの判定方法は、上述した方法以外の方法を適宜採用可能である。例えば、制御LSI234は、実験やシミュレーションに基づいて予め設定されたガイド位置にあるときのセレクトプレート207の形状データと、グレースケール画像データにおけるセレクトプレート207の形状とを比較し、一致する場合は、セレクトプレート207がガイド位置にあると判定し、一致しない場合は、セレクトプレート207が排出位置にあると判定してもよい。   As a method of determining whether the select plate 207 is at the guide position or the discharge position, a method other than the method described above can be appropriately employed. For example, the control LSI 234 compares the shape data of the select plate 207 at the guide position set in advance based on experiments and simulations with the shape of the select plate 207 in the grayscale image data. It may be determined that the select plate 207 is at the guide position, and if they do not match, it may be determined that the select plate 207 is at the discharge position.

次いで、制御LSI234は、受信した投入状態コマンドが「受付可」を示す場合、位置判定処理においてセレクトプレート207が排出位置にある(ガイド位置にない)と判定したときは、その旨を示すメダルセレクタエラーコマンドを副制御回路101に送信する。一方、同場合に、セレクトプレート207がガイド位置にあると判定したときは、位置判定処理を終了する。
また、制御LSI234は、受信した投入状態コマンドが「受付不可」を示す場合、位置判定処理においてセレクトプレート207がガイド位置にあると判定したときは、その旨を示すメダルセレクタエラーコマンドを副制御回路101に送信する。一方、同場合に、セレクトプレート207がガイド位置にあると判定したときは、位置判定処理を終了する。
Next, if the received insertion state command indicates “acceptable”, and the control LSI 234 determines that the select plate 207 is in the discharge position (not in the guide position) in the position determination process, the medal selector indicating that fact. An error command is transmitted to the sub control circuit 101. On the other hand, in the same case, when it is determined that the select plate 207 is at the guide position, the position determination processing ends.
Further, when the received insertion state command indicates “unacceptable” and the position determination processing determines that the select plate 207 is at the guide position, the control LSI 234 transmits a medal selector error command indicating that to the sub control circuit. Send to 101. On the other hand, in the same case, when it is determined that the select plate 207 is at the guide position, the position determination processing ends.

副制御回路101は、上記メダルセレクタエラーコマンドを受信すると、上記の制御エラーが発生している旨を、液晶表示装置11等を用いて報知する。   Upon receiving the medal selector error command, the sub-control circuit 101 notifies that the control error has occurred using the liquid crystal display device 11 or the like.

本変形例のパチスロでは、主制御回路91がメダルソレノイド208をON状態に設定している(投入可のメダル投入信号を出力している)にも関わらず、セレクトプレート207が排出位置にある(ガイド位置にない)ときに、エラーが報知される。また、主制御回路91がメダルソレノイド208をOFF状態に設定している(投入不可のメダル投入信号を出力して)にも関わらず、セレクトプレート207がガイド位置にある(排出位置にない)ときに、エラーが報知される。すなわち、主制御回路91からの指示に応じてセレクトプレート207が移動していない場合に、エラーを報知することができる。   In the pachislo of this modification, the select plate 207 is at the discharge position despite the main control circuit 91 setting the medal solenoid 208 to the ON state (outputting a medal insertion signal indicating that insertion is possible) ( An error is signaled when not in the guide position). When the select plate 207 is at the guide position (not at the discharge position) even though the main control circuit 91 sets the medal solenoid 208 to the OFF state (outputs a medal insertion signal indicating that the medal cannot be inserted). An error is reported. That is, when the select plate 207 does not move in response to an instruction from the main control circuit 91, an error can be notified.

主制御回路91からの指示に応じてセレクトプレート207が移動していない場合としては、例えばメダルソレノイド208が故障している場合が考えられる。また、例えばメダルレール210上に異物が存在し、セレクトプレート207がガイド位置に移動することを妨げている場合が考えられる。本変形例では、遊技機の管理者(例えば、遊技ホールの従業員)は、エラーの報知によって、メダルソレノイド208の故障や、メダルレール210上の異物の存在を把握できるので、これらの不備に早期に対応することができる。
なお、メダルセレクタ501のその他の点については、メダルセレクタ201と同様のため、説明を省略する。
As a case where the select plate 207 has not moved in response to an instruction from the main control circuit 91, for example, a case where the medal solenoid 208 has failed can be considered. In addition, for example, it is conceivable that a foreign substance exists on the medal rail 210 and prevents the select plate 207 from moving to the guide position. In this modification, the manager of the gaming machine (for example, an employee of the gaming hall) can know the failure of the medal solenoid 208 and the presence of a foreign object on the medal rail 210 by reporting the error. Can respond early.
Note that the other points of the medal selector 501 are the same as those of the medal selector 201, and a description thereof will be omitted.

<セレクトプレート判定処理>
さらに、本変形例のパチスロのメダルセレクタ501では、セレクトプレート判定処理を行ってもよい。セレクトプレート判定処理において、メダルセレクタ501は、パチスロ1の受付状態が、メダル受付可かメダル受付不可か、を判定する。
<Select plate determination process>
Further, the pachislot medal selector 501 of the present modified example may perform a select plate determination process. In the select plate determination process, the medal selector 501 determines whether the pachislot 1 accepts a medal or accepts a medal.

セレクトプレート判定処理は、ISP回路245によって生成されたグレースケール画像データがSRAM243に記憶される毎に、制御LSI234のホストコントローラ241によって、実行される。   The select plate determination process is executed by the host controller 241 of the control LSI 234 each time the grayscale image data generated by the ISP circuit 245 is stored in the SRAM 243.

セレクトプレート判定処理において、ホストコントローラ241は、SRAM243に記憶されているグレースケール画像データの内で、一番新しいグレースケール画像データを取得する。   In the select plate determination process, the host controller 241 acquires the newest grayscale image data from among the grayscale image data stored in the SRAM 243.

次に、ホストコントローラ241は、取得したグレースケール画像データに基づいて、セレクトプレート207がメダルをホッパー装置51へガイドする状態か、又は、メダルをキャンセルシュータ206へ排出する状態か、を判断するセレクトプレート判断処理を行う。当該セレクトプレート判断処理について、図76を参照して説明する。図76は、セレクトプレート判断処理を説明するための図である。図76Aは、ガイド位置に配置されているセレクトプレート207の画像を含むグレースケール画像データであり、図76Bは、排出位置に配置されているセレクトプレート207の画像を含むグレースケール画像データである。   Next, the host controller 241 determines whether the select plate 207 guides the medals to the hopper device 51 or discharges the medals to the cancel shooter 206 based on the acquired grayscale image data. Perform plate determination processing. The select plate determination process will be described with reference to FIG. FIG. 76 is a view for explaining the select plate determination process. FIG. 76A is grayscale image data including an image of the select plate 207 disposed at the guide position, and FIG. 76B is grayscale image data including an image of the select plate 207 disposed at the discharge position.

ホストコントローラ241は、取得したグレースケール画像データにおける所定の領域であるセレクトプレート判定領域A31のグレースケール平均値を算出する。図76A及び図76BにいA31を2点鎖線で示している。本実施形態におけるセレクトプレート判定領域A31は、略矩形状の領域であり、セレクトプレート207におけるプレート本体224の左右方向の両端部の上方に設定されている。   The host controller 241 calculates a grayscale average value of the select plate determination area A31 which is a predetermined area in the acquired grayscale image data. A31 in FIGS. 76A and 76B is indicated by a two-dot chain line. The select plate determination area A31 in the present embodiment is a substantially rectangular area, and is set above both ends of the select plate 207 in the left-right direction of the plate main body 224.

また、セレクトプレート判定領域A31は、図76Aに示すようにガイド位置に配置されているセレクトプレート207とは重ならず、且つ、図76Bに示すように排出位置に配置されているセレクトプレート207とは重なる位置に配置されている。   Also, the select plate determination area A31 does not overlap with the select plate 207 arranged at the guide position as shown in FIG. 76A, and does not overlap with the select plate 207 arranged at the discharge position as shown in FIG. 76B. Are arranged at overlapping positions.

したがって、ガイド位置に配置されているセレクトプレート207の画像が含まれているグレースケール画像データ(図76A参照)におけるセレクトプレート判定領域A31の色は、上述のとおりメダルセレクタ501のベース板部204は黒色の樹脂製のため、黒色又は黒に近い色となる。このため、このセレクトプレート判定領域A31のグレースケール平均値は、比較的0に近い値となる。   Therefore, the color of the select plate determination area A31 in the grayscale image data (see FIG. 76A) including the image of the select plate 207 disposed at the guide position is determined by the base plate portion 204 of the medal selector 501 as described above. Since it is made of black resin, the color becomes black or a color close to black. Therefore, the average gray scale value of the select plate determination area A31 is a value relatively close to zero.

一方、排出位置に配置されているセレクトプレート207の画像が含まれているグレースケール画像データ(図76B参照)におけるセレクトプレート判定領域A31の色は、白色又は白色に近い色となる。このため、このセレクトプレート判定領域A31のグレースケール平均値は、比較的255に近い値となる。   On the other hand, the color of the select plate determination area A31 in the grayscale image data (see FIG. 76B) including the image of the select plate 207 disposed at the discharge position is white or a color close to white. For this reason, the gray scale average value of the select plate determination area A31 is a value relatively close to 255.

ホストコントローラ241は、算出したセレクトプレート判定領域A31のグレースケール平均値が所定値(例えば、127)以上の場合、セレクトプレート207は、排出位置に配置されていると考えられるので、メダルをキャンセルシュータ206へ排出する状態であると判断する。一方、ホストコントローラ241は、算出したセレクトプレート判定領域A31のグレースケール平均値が所定値より小さい値の場合、セレクトプレート207は、ガイド位置に配置されていると考えられるので、メダルをホッパー装置51へガイドする状態である判断する。なお、ガイド位置又は排出位置に配置されたレクトプレート207の画像が含まれているグレースケール画像データを予め用意しておき、当該画像におけるセレクトプレート判定領域A31のグレースケール平均値と、今回取得したグレースケール画像データにおけるセレクトプレート判定領域A31のグレースケール平均値との差分を算出し、算出した差分に基づいてメダルソレノイド208の状態を判断してもよい。   When the calculated grayscale average value of the select plate determination area A31 is equal to or larger than a predetermined value (for example, 127), the host controller 241 cancels the medal because the select plate 207 is considered to be disposed at the discharge position. It is determined that it is in the state of discharging to 206. On the other hand, when the calculated grayscale average value of the select plate determination area A31 is smaller than the predetermined value, the host controller 241 considers that the select plate 207 is located at the guide position, and therefore, transfers the medal to the hopper device 51. It is judged that it is a state to guide to. It should be noted that grayscale image data including an image of the rect plate 207 disposed at the guide position or the discharge position is prepared in advance, and the grayscale average value of the select plate determination area A31 in the image and the grayscale image data obtained this time are obtained. The difference between the grayscale image data and the grayscale average value of the select plate determination area A31 may be calculated, and the state of the medal solenoid 208 may be determined based on the calculated difference.

そして、ホストコントローラ241は、セレクトプレート207の状態が、メダルをキャンセルシュータ206へ排出する状態と判断する場合は、パチスロ1の受付状態をメダル受付不可と判定する。また、ホストコントローラ241は、セレクトプレート207の状態が、メダルをホッパー装置51へガイドする状態と判断する場合は、パチスロ1の受付状態をメダル受付可と判定する。   When the host controller 241 determines that the state of the select plate 207 is a state in which medals are discharged to the cancel shooter 206, the host controller 241 determines that the reception state of the pachislot 1 is not medal reception. When determining that the state of the select plate 207 guides the medals to the hopper device 51, the host controller 241 determines that the reception state of the pachislot 1 is that the medals can be accepted.

ここで、副制御回路101がメダルセレクタ501に送信する投入状態コマンドには、上述のとおり、メダル受付可か、メダル受付不可かを示す値(「1」は「受付可」を示し、「0」は「受付不可」を示す)が含まれている。この値は、主制御回路91から受信した直近の無操作コマンドに含まれるメダルソレノイド208の状態がON状態の場合は「1」すなわち「受付可」がセットされ、OFF状態の場合は「0」すなわち「受付不可」がセットされる。メダルセレクタ501は、副制御回路101から投入状態コマンドを受信すると、SRAM243の所定の領域に、この値を記憶させる。   Here, as described above, the insertion state command transmitted by the sub-control circuit 101 to the medal selector 501 includes a value indicating whether the medal can be accepted or the medal cannot be accepted (“1” indicates “acceptable” and “0” "Indicates" reception not possible "). This value is set to “1”, that is, “acceptable” when the state of the medal solenoid 208 included in the latest no-operation command received from the main control circuit 91 is the ON state, and is set to “0” when the state is OFF. That is, “reception is impossible” is set. Upon receiving the insertion state command from the sub control circuit 101, the medal selector 501 stores this value in a predetermined area of the SRAM 243.

ホストコントローラ241は、セレクトプレート207の状態に基づく判断結果から判定した受付状態(以下、「判断結果に基づく受付状態」と称する場合がある)と、SRAM243に記憶されている値が示す受付状態と、が一致するか否かを判定する。   The host controller 241 determines the reception state determined from the determination result based on the state of the select plate 207 (hereinafter, may be referred to as “reception state based on the determination result”), and the reception state indicated by the value stored in the SRAM 243. , Are matched.

判断結果に基づく受付状態と、投入状態コマンドが示す受付状態と、が一致すると判定する場合、ホストコントローラ241は、一致した受付状態を、パチスロ1の受付状態として最終的に判定する。   When it is determined that the reception state based on the determination result matches the reception state indicated by the input state command, the host controller 241 finally determines the matched reception state as the pachislot 1 reception state.

一方、判断結果に基づく受付状態と、投入状態コマンドが示す受付状態と、が一致しないと判定する場合、ホストコントローラ241は、副制御回路101にメダルセレクタ無操作コマンドを送信する。メダルセレクタ無操作コマンドを受信した副制御回路101は、上述のACKコマンドをカメラセレクタ501に送信する。   On the other hand, when determining that the reception state based on the determination result does not match the reception state indicated by the insertion state command, the host controller 241 transmits a medal selector non-operation command to the sub control circuit 101. Upon receiving the medal selector non-operation command, the sub control circuit 101 transmits the above-described ACK command to the camera selector 501.

ホストコントローラ241は、副制御回路101から送信されたACKコマンドのDAT2の値(図45参照)を参照し、DAT2の値が示す受付状態と、判断結果に基づく受付状態とが一致するか否かを再判定する。   The host controller 241 refers to the value of DAT2 (see FIG. 45) of the ACK command transmitted from the sub control circuit 101, and determines whether the reception state indicated by the value of DAT2 matches the reception state based on the determination result. Is determined again.

再判定の結果、副制御回路101から送信されたACKコマンドが示す受付状態と、判断結果に基づく受付状態とが一致すると判定する場合は、ホストコントローラ241は、一致した受付状態を、パチスロ1の受付状態として最終的に判定する。   As a result of the re-determination, if the host controller 241 determines that the reception status indicated by the ACK command transmitted from the sub-control circuit 101 matches the reception status based on the determination result, the host controller 241 determines the matching reception status of the pachislot 1 It is finally determined as the reception state.

一方、再判定の結果、副制御回路101から送信されたACKコマンドが示す受付状態と、判断結果に基づく受付状態とが一致しないと判定する場合は、ACKコマンドが示す受付状態を、パチスロ1の受付状態として最終的に判定する。例えば、副制御回路101から送信されたACKコマンドが示す受付状態がメダル受付可であり、判断結果に基づく受付状態がメダル受付不可の場合は、パチスロ1の受付状態をメダル受付可と、最終的に判定する。   On the other hand, as a result of the re-determination, if it is determined that the reception status indicated by the ACK command transmitted from the sub control circuit 101 does not match the reception status based on the determination result, the reception status indicated by the ACK command is changed to the pachislot 1 It is finally determined as the reception state. For example, when the reception status indicated by the ACK command transmitted from the sub-control circuit 101 indicates that the medal can be received and the reception status based on the determination result indicates that the medal cannot be received, the reception status of the pachislot 1 is determined to be medal reception possible. Is determined.

セレクトプレート判定処理を行うメダルセレクタ501では、セレクトプレート判定処理の最終的な判定結果がメダル受付可の場合にのみ、上述の色判定処理と刻印判定処理を実行する。すなわち、このメダルセレクタ501においては、セレクトプレート判定処理の最終的な判定結果がメダル受付不可である間は、色判定処理と刻印判定処理を行わない。メダルセレクタ501における制御LSI234のホストコントローラ241は、色判定処理及び刻印判定処理の実行開始タイミングにおいて、直近のセレクトプレート判定処理の判定結果に基づいて、色判定処理及び刻印判定処理の実行可否を判定し、実行可と判定する場合は、上述の各種回路に色判定処理及び刻印判定処理に係る処理の開始を指示する。   The medal selector 501 that performs the select plate determination process executes the above-described color determination process and the engraving determination process only when the final determination result of the select plate determination process indicates that a medal can be accepted. That is, in the medal selector 501, the color determination process and the engraving determination process are not performed while the final determination result of the select plate determination process indicates that the medal cannot be accepted. The host controller 241 of the control LSI 234 in the medal selector 501 determines whether or not to execute the color determination process and the marking determination process based on the determination result of the most recent select plate determination process at the execution start timing of the color determination process and the marking determination process. If it is determined that the process can be performed, the various circuits described above are instructed to start the processes relating to the color determination process and the marking determination process.

なお、セレクトプレート判定処理を行うメダルセレクタ501においても、色判定処理及び刻印判定処理の判定結果を判定完了コマンドに反映させるか否かについては、上述のとおり、色スイッチ206e及び刻印スイッチ206fのON/OFF状態に応じる。   In the medal selector 501 that performs the select plate determination process, as described above, whether or not the determination results of the color determination process and the engraving determination process are reflected in the determination completion command is determined by turning on the color switch 206e and the engraving switch 206f. / OFF state.

このように、セレクトプレート判定処理を行うメダルセレクタ501では、再判定の結果、副制御回路101から送信されたACKコマンドが示す受付状態と、判断結果に基づく受付状態とが一致しないと判定する場合は、ACKコマンドが示す受付状態を、パチスロ1の受付状態として最終的に判定する。したがって、例えば、メダルセレクタ501側に対する不正行為(ゴト行為)によって、パチスロ1の受付状態がメダル受付可にも関わらず、セレクトプレート207が不当に排出位置に配置されてしまっている場合であっても、ACKコマンドが示す受付状態がメダル受付可であれば、メダルセレク501は、色判定処理及び刻印判定処理を実行する。このため、パチスロ1の受付状態に応じて、適切に色判定処理及び刻印判定処理を実行することができる。   As described above, in the medal selector 501 that performs the select plate determination process, as a result of the re-determination, it is determined that the reception state indicated by the ACK command transmitted from the sub-control circuit 101 does not match the reception state based on the determination result. Finally determines the reception state indicated by the ACK command as the pachislot 1 reception state. Therefore, for example, the select plate 207 is incorrectly placed at the discharge position due to an improper act (goto act) on the medal selector 501 side, even though the accepting state of the pachislot 1 is medal acceptable. Also, if the reception status indicated by the ACK command indicates that the medal can be received, the medal select 501 executes the color determination process and the marking determination process. For this reason, it is possible to appropriately execute the color determination process and the marking determination process according to the reception state of the pachislot 1.

なお、以上の説明では、再判定の結果、副制御回路101から送信されたACKコマンドが示す受付状態と、判断結果に基づく受付状態とが一致しないと判定する場合は、ACKコマンドが示す受付状態を、パチスロ1の受付状態として最終的に判定する態様を説明した。しかしながら、これに代えて、再判定の結果、副制御回路101から送信されたACKコマンドが示す受付状態と、判断結果に基づく受付状態とが一致しないと判定する場合は、判断結果に基づく受付状態を、パチスロ1の受付状態として最終的に判定するようにしてもよい。   In the above description, if it is determined that the reception status indicated by the ACK command transmitted from the sub-control circuit 101 does not match the reception status based on the determination result, the reception status indicated by the ACK command Is finally determined as the pachislot 1 reception status. However, instead of this, when it is determined that the reception state indicated by the ACK command transmitted from the sub-control circuit 101 does not match the reception state based on the determination result, the reception state based on the determination result is determined. May be finally determined as the pachislot 1 reception status.

この場合、例えば、副制御回路101側に対する不正行為(ゴト行為)によって、パチスロ1の受付状態がメダル受付可にも関わらず、ACKコマンドが示す受付状態がメダル受付不可であっても、判断結果に基づく受付状態がメダル受付可であれば、パチスロ1の受付状態をメダル受付可と、最終的に判定し、メダルセレク501は、色判定処理及び刻印判定処理を実行する。このため、パチスロ1の受付状態に応じて、適切に色判定処理及び刻印判定処理を実行することができる。   In this case, for example, due to an improper act (goto action) on the sub-control circuit 101 side, even if the accepting state of the pachislot 1 is medal accepting but the accepting state indicated by the ACK command is not medal accepting, the determination result is If the accepting state based on is medal acceptable, it is finally determined that the accepting state of the pachislot 1 is medal acceptable, and the medal select 501 executes a color determination process and an engraving determination process. For this reason, it is possible to appropriately execute the color determination process and the marking determination process according to the reception state of the pachislot 1.

<変形例4>
次に、変形例4の遊技機について、図77を参照して説明する。
図77は、変形例4の遊技機におけるメダルセレクタの回路構成例を示すブロック図である。
なお、変形例4に係る遊技機についての以下の説明において、上述した実施形態におけるパチスロ1と共通する構成や機能については、説明を省略する。
<Modification 4>
Next, a gaming machine of Modification 4 will be described with reference to FIG.
FIG. 77 is a block diagram illustrating a circuit configuration example of a medal selector in a gaming machine of Modification Example 4.
In the following description of the gaming machine according to Modification 4, descriptions of configurations and functions common to the pachislo 1 in the above-described embodiment will be omitted.

図77に示すように、本変形例のメダルセレクタ601では、上述した変形例2に係るメダルセレクタ401と同様に、制御LSI234とメダルソレノイド208とが電気的に接続されている。したがって、制御LSI234は、メダルソレノイド208をON状態又はOFF状態に設定することができる。
また、本変形例における制御LSI234は、上述した変形例と同様に、メダルレール210上を移動する物体について刻印判定処理及び色判定処理を行い、その結果に応じてメダルソレノイド208の動作を制御する。
As shown in FIG. 77, in the medal selector 601 of the present modification, the control LSI 234 and the medal solenoid 208 are electrically connected, similarly to the medal selector 401 according to the above-described second modification. Therefore, the control LSI 234 can set the medal solenoid 208 to the ON state or the OFF state.
Further, the control LSI 234 according to the present modification performs the marking determination processing and the color determination processing for the object moving on the medal rail 210, and controls the operation of the medal solenoid 208 according to the result, as in the above-described modification. .

すなわち、本変形例では、変形例2と同様に、メダルレール210上を移動する物体が、メダルレール210の上露出孔219又は下露出孔220に達する前に、制御LSI234の画像認識DSP回路242は、この物体に対する刻印判定処理をSRAM243に記憶させる。刻印判定の結果を取得したホストコントローラ241は、取得した判定結果が「判定NG」である場合、メダルソレノイド208をOFF状態に設定する制御信号をメダルソレノイド208に出力する。   That is, in this modification, similarly to the modification 2, before the object moving on the medal rail 210 reaches the upper exposure hole 219 or the lower exposure hole 220 of the medal rail 210, the image recognition DSP circuit 242 of the control LSI 234. Causes the stamp determination process for this object to be stored in the SRAM 243. The host controller 241 that has obtained the result of the engraving determination outputs a control signal for setting the medal solenoid 208 to the OFF state to the medal solenoid 208 when the obtained determination result is “determination NG”.

また、本変形例におけるメダルセレクタ401のホストコントローラ241は、上述したメダルセレクタ201と同様に、刻印判定処理の結果がSRAM243に記憶されたタイミングで、同一の画像IDに関連づけられている色判定の判定結果をSRAM243から取得し、色判定処理の判定結果に応じて、メダルソレノイド208をON状態又はOFF状態に設定する制御信号をメダルソレノイド208に出力する。   In addition, the host controller 241 of the medal selector 401 in the present modified example performs color determination associated with the same image ID at the timing when the result of the engraving determination process is stored in the SRAM 243, similarly to the above-described medal selector 201. The determination result is obtained from the SRAM 243, and a control signal for setting the medal solenoid 208 to the ON state or the OFF state is output to the medal solenoid 208 according to the determination result of the color determination processing.

したがって、刻印判定及び色判定の判定結果が「判定NG」の判定対象の物体を、上露出孔219から突出するアフタメダルプレッシャ218、又は、下露出孔220から突出するメダルストッパ部227に押し出させ、キャンセルシュータ206に向けて排出させることができる。   Therefore, an object whose determination result of the marking determination and the color determination is “determination NG” is pushed out to the after-medal pressure 218 projecting from the upper exposure hole 219 or the medal stopper portion 227 projecting from the lower exposure hole 220. , Can be discharged toward the cancel shooter 206.

また、本変形例における主制御基板71で構成される主制御回路91は、パチスロ1がメダルを投入可能なメダル投入許可状態ではないとき、例えば、単位遊技においてスタートレバー23が遊技者により操作された後、また、クレジットカウンタが最大値のときは、メダル投入不可の内容のメダル投入コマンドを副制御基板72で構成される副制御回路101に送信する。また、パチスロ1がメダルを投入可能なメダル投入許可状態のときは、投入許可の内容のメダル投入コマンドを副制御回路101に送信する。   When the pachislot 1 is not in a medal insertion permission state in which the pachislot 1 can insert medals, for example, the start lever 23 is operated by the player in the unit game when the pachislot 1 is not in the medal insertion permission state. After that, when the credit counter has the maximum value, a medal insertion command indicating that the medal cannot be inserted is transmitted to the sub-control circuit 101 including the sub-control board 72. When the pachislot 1 is in a medal insertion permission state in which a medal can be inserted, a medal insertion command of the content of the insertion permission is transmitted to the sub-control circuit 101.

副制御回路101は、主制御回路91から送信されたメダル投入コマンドを、ドア中継端子板68及び副中継基板61を介して、受信する。メダル投入コマンドを受信した副制御回路101は、受信したメダル投入コマンドの内容に対応する投入状態コマンド(「受付可」又は「受付不可」)をメダルセレクタ601に送信する。   The sub control circuit 101 receives the medal insertion command transmitted from the main control circuit 91 via the door relay terminal board 68 and the sub relay board 61. Upon receiving the medal insertion command, the sub-control circuit 101 transmits an insertion state command (“acceptable” or “acceptable”) corresponding to the content of the received medal insertion command to the medal selector 601.

メダルセレクタ601は、副制御回路101から出力された受付不可の内容の投入状態コマンドを受信すると、制御LSI234のホストコントローラ241は、メダルソレノイド208をOFF状態に設定する。すなわち、本変形例では、ホストコントローラ241は、直近に投入された物体に対する色判定又は刻印判定の判定結果が「判定NG」のとき、及び、副制御回路101から受付不可の内容の投入状態コマンドを受信したときに、メダルソレノイド208をOFF状態に設定する。   When the medal selector 601 receives the input state command of the content of “not acceptable” output from the sub control circuit 101, the host controller 241 of the control LSI 234 sets the medal solenoid 208 to the OFF state. That is, in the present modification, the host controller 241 determines whether the color determination or the marking determination for the most recently input object is “NG”, Is received, the medal solenoid 208 is set to the OFF state.

本変形例において、主制御回路91は、ダブルフォトセンサ502から出力されるメダル検知信号に基づいて、逆行エラーやメダル詰まりエラーを検知し、これらのエラーが検知されたときは、遊技を強制的に終了させる。
なお、メダルセレクタ601のその他の点については、変形例2で説明したメダルセレクタ401と同様のため、説明を省略する。
In the present modification, the main control circuit 91 detects a backward error or a medal jam error based on a medal detection signal output from the double photo sensor 502, and when these errors are detected, the game is forcibly stopped. To end.
Note that the other points of the medal selector 601 are the same as those of the medal selector 401 described in the second modification, and thus description thereof will be omitted.

本変形例では、パチスロ1が上述したメダル投入許可状態でないとき、主制御回路91は、投入不可の内容のメダル投入コマンド送信し、当該メダル投入コマンドを受信した副制御回路101は、同内容(受付不可)の投入状態コマンドを送信する。そして、メダルセレクタ601は受付不可の投入状態コマンドと、メダルソレノイド208をOFF状態に設定し、メダルをキャンセルシュータ206に向けて排出させる。また、メダル投入許可状態であっても、メダルセレクタ601の制御LSI234は、色判定又は刻印判定の判定結果が「判定NG」のとき、はメダルソレノイド208をOFF状態に設定し、メダルをキャンセルシュータ206に向けて排出させる。したがって、投入されたメダルを適切にカウントできる。また、投入されたメダルを、キャンセルシュータ206、又は、ホッパー装置51に、適切に導くことができる。   In the present modification, when the pachislot 1 is not in the medal insertion permission state described above, the main control circuit 91 transmits a medal insertion command of a content that cannot be inserted, and the sub control circuit 101 that has received the medal insertion command has the same content ( (Not accepted) is sent. Then, the medal selector 601 sets the unacceptable insertion state command and the medal solenoid 208 to the OFF state, and discharges medals to the cancel shooter 206. Further, even in the medal insertion permission state, the control LSI 234 of the medal selector 601 sets the medal solenoid 208 to the OFF state when the determination result of the color determination or the marking determination is “NG”, and cancels the medal. Discharge toward 206. Therefore, the inserted medals can be properly counted. Further, the inserted medals can be appropriately guided to the cancel shooter 206 or the hopper device 51.

<変形例5>
次に、変形例5の遊技機について、図78及ぶ図79を参照して説明する。
図78は、変形例5の遊技機におけるメダルセレクタの背面図である。なお、図78では、メダルセレクタ701のサブプレート205、キャンセルシュータ206や基準マーカー260の図示を省略している。
また、図79は、変形例5の遊技機におけるメダルセレクタの回路構成例を示すブロック図である。
なお、変形例5に係る遊技機についての以下の説明において、上述した実施形態におけるパチスロ1と共通する構成や機能については、説明を省略する。
<Modification 5>
Next, a gaming machine of a fifth modification will be described with reference to FIGS.
FIG. 78 is a rear view of the medal selector in the gaming machine of the fifth modification. In FIG. 78, the sub plate 205, the cancel shooter 206, and the reference marker 260 of the medal selector 701 are not shown.
FIG. 79 is a block diagram illustrating a circuit configuration example of a medal selector in a gaming machine of Modification Example 5.
In the following description of the gaming machine according to Modification Example 5, descriptions of configurations and functions common to the pachislo 1 in the above-described embodiment will be omitted.

図78に示すように、本変形例のメダルセレクタ701は、2つのセレクトプレート、セレクトプレート707a及びセレクトプレート707bを備えている。また、図79に示すように、メダルセレクタ701は、2つのメダルソレノイド、第1メダルソレノイド708a及び第2メダルソレノイド708bを備えている。第1メダルソレノイド708a及び第2メダルソレノイド708bは、メダルソレノイド208(図9参照)と同様のソレノイド本体部(不図示)と可動板部(不図示)を備えている。   As shown in FIG. 78, the medal selector 701 of the present modified example includes two select plates, a select plate 707a and a select plate 707b. As shown in FIG. 79, the medal selector 701 includes two medal solenoids, a first medal solenoid 708a, and a second medal solenoid 708b. The first medal solenoid 708a and the second medal solenoid 708b include a solenoid body (not shown) and a movable plate (not shown) similar to the medal solenoid 208 (see FIG. 9).

図78に示すように、セレクトプレート707aは、板状のプレート本体724aと、プレート本体724aの左右方向の両端部がパチスロ1の前方へ折曲することで形成されている一対の軸受部(不図示)と、を有している。また、プレート本体724aの上部には、パチスロ1の前方へ折曲し、後端部が上方へ折曲することで形成されているフランジ部726aが形成されている。   As shown in FIG. 78, the select plate 707a includes a plate-shaped plate body 724a and a pair of bearings (not shown) formed by bending both ends of the plate body 724a in the left-right direction forward of the pachislot 1. (Shown). Further, a flange portion 726a formed by bending the pachislot 1 forward and bending the rear end upward is formed at an upper portion of the plate body 724a.

セレクトプレート707aは、ベース板部204の前面204aに設けられた軸部(不図示)に回動可能に支持されている。軸部にはコイルばねが設けられており、フランジ部726aをパチスロ1の前方へ付勢する。フランジ部726aは、第1メダルソレノイド708aの可動板部の一端部と接触している。第1メダルソレノイド708aがON状態にあるとき、フランジ部726aは第1メダルソレノイド708aの可動板部の一端部に押圧され、コイルばねの付勢力に抗してパチスロ1の後方へ移動する。このときの、セレクトプレート707aの回動位置を「ガイド位置」と称する。ガイド位置にあるセレクトプレート707aのプレート本体724aとメダルレール210との距離は、メダルをキャンセルシュータ206側に排出することなくメダル出口部204c(図8参照)側へガイド可能な所定の距離に設定されている。   The select plate 707a is rotatably supported by a shaft (not shown) provided on the front surface 204a of the base plate 204. A coil spring is provided on the shaft portion, and urges the flange portion 726a forward of the pachislot 1. The flange 726a is in contact with one end of the movable plate of the first medal solenoid 708a. When the first medal solenoid 708a is in the ON state, the flange 726a is pressed by one end of the movable plate of the first medal solenoid 708a, and moves rearward of the pachislot 1 against the urging force of the coil spring. The rotation position of the select plate 707a at this time is referred to as a “guide position”. The distance between the plate body 724a of the select plate 707a at the guide position and the medal rail 210 is set to a predetermined distance that can guide the medal to the medal exit 204c (see FIG. 8) without discharging the medal to the cancel shooter 206 side. Have been.

また、第1メダルソレノイド708aがOFF状態にあるとき、フランジ部726aは第1メダルソレノイド708aの押圧から解放され、コイルばねの付勢力によってパチスロ1の前方へ移動する。このときの、セレクトプレート707aの回動位置を「排出位置」と称する。排出位置にあるセレクトプレート707aのプレート本体724aとメダルレール210との距離は、所定の距離よりも長い距離に設定されている。   When the first medal solenoid 708a is in the OFF state, the flange portion 726a is released from the pressing of the first medal solenoid 708a and moves forward of the pachislot 1 by the urging force of the coil spring. The turning position of the select plate 707a at this time is referred to as a “discharge position”. The distance between the plate body 724a of the select plate 707a at the discharge position and the medal rail 210 is set to be longer than a predetermined distance.

ガイド位置にあるセレクトプレート707aは、メダルレール210上を移動するメダルが規格寸法を満たす場合、移動するメダルの上部と接触し、メダルをメダル出口部204c(図8参照)側(図78における右側)へ移動するように案内する。メダルは、セレクトプレート707aに案内されているとき、メダルプレッシャ213をパチスロ1の前方へ押圧する。   When the medal moving on the medal rail 210 satisfies the standard size, the select plate 707a at the guide position comes into contact with the upper part of the medal moving and transfers the medal to the medal exit 204c (see FIG. 8) (see the right side in FIG. 78). Guide to move to). When the medal is guided by the select plate 707a, the medal pressure 213 is pressed forward of the pachislot 1.

一方、排出位置にあるセレクトプレート707aは、メダルレール210上を移動するメダルが規格寸法を満たす場合であっても、プレート本体724aとメダルレール210との距離が離れているため、メダルをメダル出口部204c(図8参照)側へ案内することができない。また、メダルは、メダルプレッシャ213に押し出され、キャンセルシュータ206(図7参照)に向けて排出される。   On the other hand, even if the medal moving on the medal rail 210 satisfies the standard size, the select plate 707a at the discharge position sends the medal to the medal exit because the distance between the plate body 724a and the medal rail 210 is large. It cannot be guided to the part 204c (see FIG. 8). The medals are pushed out by a medal pressure 213 and discharged toward the cancel shooter 206 (see FIG. 7).

また、メダルレール210上を移動するメダルが規格寸法よりも小径の場合、セレクトプレート707aがガイド位置にあっても、メダルはセレクトプレート707aに案内されず、メダルプレッシャ213に押し出され、キャンセルシュータ206に向けて排出される。   When the medal moving on the medal rail 210 has a smaller diameter than the standard size, even if the select plate 707a is at the guide position, the medal is not guided by the select plate 707a, but is pushed out by the medal pressure 213, and the cancel shooter 206 is pressed. It is discharged toward.

図78に示すように、セレクトプレート707bは、セレクトプレート707aよりも、メダルレール210をメダルが移動する方向の下流側に、設けられている。セレクトプレート707bは、板状のプレート本体724bと、プレート本体724bの左右方向の両端部がパチスロ1の前方へ折曲することで形成されている一対の軸受部(不図示)と、を有している。また、プレート本体724bの上部には、パチスロ1の前方へ折曲し、後端部が上方へ折曲することで形成されているフランジ部726bが形成されている。また、一方の軸受部には、下方へ延びるメダルストッパ部727bが形成されている。   As shown in FIG. 78, the select plate 707b is provided downstream of the select plate 707a in the direction in which the medals move on the medal rail 210. The select plate 707b has a plate-shaped plate main body 724b, and a pair of bearings (not shown) formed by bending the left and right ends of the plate main body 724b forward of the pachislot 1. ing. Further, a flange portion 726b formed by bending the pachislot 1 forward and bending the rear end upward is formed at an upper portion of the plate body 724b. A medal stopper 727b extending downward is formed on one of the bearings.

セレクトプレート707bは、ベース板部204の前面204aに設けられた軸部(不図示)に回動可能に支持されている。軸部にはコイルばねが設けられており、フランジ部726bをパチスロ1の前方へ付勢する。フランジ部726bは、第2メダルソレノイド708bの可動板部の一端部と接触している。第2メダルソレノイド708bがON状態にあるとき、フランジ部726aは第2メダルソレノイド708bの可動板部の一端部に押圧され、コイルばねの付勢力に抗してパチスロ1の後方へ移動する。このときの、セレクトプレート707bの回動位置を「ガイド位置」と称する。ガイド位置にあるセレクトプレート707bのプレート本体724bとメダルレール210との距離は、メダルをキャンセルシュータ206側に排出することなくメダル出口部204c側へガイド可能な所定の距離に設定されている。また、このときメダルストッパ部727bは、下露出孔220から突出しない。   The select plate 707b is rotatably supported by a shaft (not shown) provided on the front surface 204a of the base plate 204. A coil spring is provided on the shaft portion, and urges the flange portion 726b forward of the pachislot 1. The flange 726b is in contact with one end of the movable plate of the second medal solenoid 708b. When the second medal solenoid 708b is in the ON state, the flange 726a is pressed by one end of the movable plate of the second medal solenoid 708b, and moves rearward of the pachislot 1 against the urging force of the coil spring. The rotation position of the select plate 707b at this time is referred to as a “guide position”. The distance between the plate body 724b of the select plate 707b at the guide position and the medal rail 210 is set to a predetermined distance that allows the medal to be guided to the medal exit 204c without discharging the medal to the cancel shooter 206 side. At this time, the medal stopper 727b does not protrude from the lower exposure hole 220.

また、第2メダルソレノイド708bがOFF状態にあるとき、フランジ部726bは第2メダルソレノイド708bの押圧から解放され、コイルばねの付勢力によってパチスロ1の前方へ移動する。このときの、セレクトプレート707bの回動位置を「排出位置」と称する。排出位置にあるセレクトプレート707bのプレート本体724bとメダルレール210との距離は、所定の距離よりも長い距離に設定されている。このとき、パチスロ1の前方へ移動するフランジ部726bに押圧され、第2メダルソレノイド708bの可動板部の一端部はパチスロ1の前方へ移動する。これに伴って第2メダルソレノイド708bの可動板部の他端部がパチスロ1の後方へ移動し、アフタメダルプレッシャ218(図8参照)の前端部を押圧する。これによってアフタメダルプレッシャ218は回動し、アフタメダルプレッシャ218の後端部が上露出孔219から露出する。また、メダルストッパ部727bが下露出孔220から突出する。   When the second medal solenoid 708b is in the OFF state, the flange portion 726b is released from the pressing of the second medal solenoid 708b, and moves forward of the pachislot 1 by the urging force of the coil spring. The rotation position of the select plate 707b at this time is referred to as a “discharge position”. The distance between the plate body 724b of the select plate 707b at the discharge position and the medal rail 210 is set to be longer than a predetermined distance. At this time, one end of the movable plate portion of the second medal solenoid 708b is moved forward of the pachislot 1 by being pressed by the flange portion 726b that moves forward of the pachislot 1. Accordingly, the other end of the movable plate of the second medal solenoid 708b moves rearward of the pachislot 1 and presses the front end of the after-medal pressure 218 (see FIG. 8). As a result, the after-medal pressure 218 rotates, and the rear end of the after-medal pressure 218 is exposed from the upper exposure hole 219. Further, the medal stopper portion 727b protrudes from the lower exposure hole 220.

ガイド位置にあるセレクトプレート707bは、メダルレール210上を移動するメダルが規格寸法を満たす場合、移動するメダルの上部と接触し、メダルをメダル出口部204c(図8参照)側(図78の右側)へ案内する。   When the medal moving on the medal rail 210 satisfies the standard size, the select plate 707b at the guide position comes in contact with the upper part of the medal moving and transfers the medal to the medal exit 204c (see FIG. 8) (see the right side of FIG. 78). ).

一方、排出位置にあるセレクトプレート707bは、メダルレール210上を移動するメダルが規格寸法を満たす場合であっても、プレート本体724bとメダルレール210との距離が離れているため、メダルをメダル出口部204c(図8参照)側へ案内することができない。また、メダルは、上露出孔219から突出するアフタメダルプレッシャ218、又は、下露出孔220から突出するメダルストッパ部727bに押し出され、キャンセルシュータ206に向けて排出される。   On the other hand, even if the medal moving on the medal rail 210 satisfies the standard size, the select plate 707b at the discharge position sends the medal to the medal exit because the distance between the plate body 724b and the medal rail 210 is large. It cannot be guided to the part 204c (see FIG. 8). The medals are pushed out by an after-medal pressure 218 projecting from the upper exposure hole 219 or a medal stopper portion 727b projecting from the lower exposure hole 220, and are discharged toward the cancel shooter 206.

図79に示すように、メダルセレクタ701は、第1フォトセンサ503と第2フォトセンサ504からなるダブルフォトセンサ502を備えている。ダブルフォトセンサ502は、ドア中継端子板68を介して、主制御基板71に接続されている。   As shown in FIG. 79, the medal selector 701 includes a double photo sensor 502 including a first photo sensor 503 and a second photo sensor 504. The double photo sensor 502 is connected to the main control board 71 via the door relay terminal plate 68.

なお、上記の実施形態と同様に、ダブルフォトセンサ502の第1フォトセンサ503はメダル出口部204c(図8参照)の付近に設けられ、第2フォトセンサ504は第1フォトセンサ503よりもメダルレール210上の下流に設けられている。このため、第1フォトセンサ503及び第2フォトセンサ504は、セレクトプレート707bがガイド位置にあり、メダル出口部204c(図8参照)側へ移動するメダルは検知するが、セレクトプレート707a又はセレクトプレート707bが排出位置にあり、メダルシュート202(図6参照)に案内されるメダルは検知しない。
また、本変形例のダブルフォトセンサ502のその他の構成及び機能、また、ダブルフォトセンサ502(の第1フォトセンサ503及び第2フォトセンサ504)から出力されるメダル検知信号に基づく、主制御回路91での投入枚数カウンタ及びクレジットカウンタの値の管理の態様については、上述したため、ここでの説明は省略する。
Note that, similarly to the above-described embodiment, the first photo sensor 503 of the double photo sensor 502 is provided near the medal exit portion 204c (see FIG. 8), and the second photo sensor 504 is more medal than the first photo sensor 503. It is provided downstream on the rail 210. For this reason, the first photosensor 503 and the second photosensor 504 detect the medal that moves to the medal exit 204c (see FIG. 8) when the select plate 707b is in the guide position, but the select plate 707a or the select plate 707b is at the discharge position, and does not detect a medal guided to the medal shoot 202 (see FIG. 6).
Further, the main control circuit based on other configurations and functions of the double photo sensor 502 of the present modification, and a medal detection signal output from (the first photo sensor 503 and the second photo sensor 504 of) the double photo sensor 502. Since the mode of managing the values of the insertion number counter and the credit counter in 91 has been described above, the description is omitted here.

また、第1メダルソレノイド708aは、ドア中継端子板68を介して、主制御基板71に接続されている。したがって、主制御基板71から構成される主制御回路91は、第1メダルソレノイド708aをON状態又はOFF状態に設定することができる。   Further, the first medal solenoid 708a is connected to the main control board 71 via the door relay terminal plate 68. Therefore, the main control circuit 91 including the main control board 71 can set the first medal solenoid 708a to the ON state or the OFF state.

主制御回路91は、パチスロ1がメダルを投入可能なメダル投入許可状態ではないとき、例えば、単位遊技においてスタートレバー23が遊技者により操作された後、また、クレジットカウンタが最大値のときは、第1メダルソレノイド708aをOFF状態に設定する。また、パチスロ1がメダルを投入可能なメダル投入許可状態のときは、第1メダルソレノイド708aをON状態に設定する。   When the pachislot 1 is not in the medal insertion permission state in which the pachislot 1 can insert medals, for example, after the start lever 23 is operated by the player in the unit game, and when the credit counter is at the maximum value, The first medal solenoid 708a is set to the OFF state. When the pachislot 1 is in a medal insertion permission state in which medals can be inserted, the first medal solenoid 708a is set to an ON state.

また、図79に示すように、メダルセレクタ701における制御LSI234と第2メダルソレノイド708bとは電気的に接続されている。したがって、制御LSI234は、第2メダルソレノイド708bをON状態又はOFF状態に設定することができる。
また、本変形例における制御LSI234は、上述した変形例2におけるメダルセレクタ401の制御LSI234と同様に、メダルレール210上を移動する物体について刻印判定処理や色判定処理を行い、判定結果に応じて第2メダルソレノイド708bを制御する。
As shown in FIG. 79, the control LSI 234 in the medal selector 701 and the second medal solenoid 708b are electrically connected. Therefore, the control LSI 234 can set the second medal solenoid 708b to the ON state or the OFF state.
Further, the control LSI 234 according to the present modification performs the marking determination process and the color determination process for the object moving on the medal rail 210 in the same manner as the control LSI 234 of the medal selector 401 according to the above-described modification 2, and according to the determination result. The second medal solenoid 708b is controlled.

すなわち、本変形例では、変形例2と同様に、メダルレール210上を移動する物体が、メダルレール210の上露出孔219又は下露出孔220に達する前に、色判定及び刻印判定の判定結果に基づいて、第2メダルソレノイド708bのON/OFF状態を制御できる。   That is, in the present modified example, similarly to the modified example 2, before the object moving on the medal rail 210 reaches the upper exposed hole 219 or the lower exposed hole 220 of the medal rail 210, the determination result of the color determination and the engraving determination is performed. , The ON / OFF state of the second medal solenoid 708b can be controlled.

このため、刻印判定又は色判定の判定結果が「判定NG」の場合、第2メダルソレノイド708bをOFF状態に設定する制御信号を第2メダルソレノイド708bに出力する。この場合、判定対象の物体を、上露出孔219から突出するアフタメダルプレッシャ218、又は、下露出孔220から突出するメダルストッパ部727bに押し出させ、キャンセルシュータ206に向けて排出させることができる。   Therefore, when the result of the engraving determination or the color determination is “NG”, a control signal for setting the second medal solenoid 708b to the OFF state is output to the second medal solenoid 708b. In this case, the object to be determined can be pushed out to the after-medal pressure 218 projecting from the upper exposure hole 219 or the medal stopper portion 727b projecting from the lower exposure hole 220, and can be ejected toward the cancel shooter 206.

また、変形例におけるメダルセレクタ701のホストコントローラ241は、SRAM243に記憶させた縮小画像データに対して行った円領域検出処理において円領域が検出できなくなったとき、第2メダルソレノイド708bをON状態に設定する制御信号を第2メダルソレノイド708bに出力する。   The host controller 241 of the medal selector 701 according to the modified example turns on the second medal solenoid 708b when the circular area cannot be detected in the circular area detection processing performed on the reduced image data stored in the SRAM 243. The control signal to be set is output to the second medal solenoid 708b.

図79に示すように、メダルセレクタ701におけるカメラユニット209の制御LSI234は、副中継基板61を介して、副制御基板72に接続されている。したがって、上述の実施形態や変形例と同様に、副制御回路101とメダルセレクタ701間で各種コマンドの送受信が行われる。
また、副制御回路101は、メダルセレクタ701の制御LSI234におけるホストコントローラ241を介して、第2メダルソレノイド708bをON状態又はOFF状態に設定することができる。具体的には、副制御回路101は、メダルセレクタ701のホストコントローラ241から出力される上述のメダルカウントコマンドを検出すると、サブRAM103に設けられた投入枚数カウンタの値に1加算する。なお、サブRAM103の投入枚数カウンタの値が最大値(例えば、3)の場合は、クレジットされているメダルの枚数をサブCPU102が計数するためにサブRAM103に設けられたカウンタであるクレジットカウンタの値に1加算する。副制御回路101は、単位遊技においてスタートレバー23が遊技者により操作された後(スタートコマンドを受信した時)、また、サブRAM103のクレジットカウンタが最大値(例えば、50)のときは、第2メダルソレノイド708bをメダルセレクタ701のホストコントローラ241を介してOFF状態に設定する。また、パチスロがメダルを投入可能なメダル投入許可状態のときは、第2メダルソレノイド708bを、ホストコントローラ241を介してON状態に設定する。
As shown in FIG. 79, the control LSI 234 of the camera unit 209 in the medal selector 701 is connected to the sub control board 72 via the sub relay board 61. Therefore, similarly to the above-described embodiment and the modified example, transmission and reception of various commands are performed between the sub-control circuit 101 and the medal selector 701.
The sub control circuit 101 can set the second medal solenoid 708b to the ON state or the OFF state via the host controller 241 in the control LSI 234 of the medal selector 701. Specifically, upon detecting the above-described medal count command output from the host controller 241 of the medal selector 701, the sub control circuit 101 adds 1 to the value of the inserted number counter provided in the sub RAM 103. When the value of the inserted number counter of the sub RAM 103 is the maximum value (for example, 3), the value of the credit counter, which is a counter provided in the sub RAM 103, for the sub CPU 102 to count the number of credited medals. Is incremented by one. After the start lever 23 is operated by the player in the unit game (when a start command is received), and when the credit counter of the sub RAM 103 is at the maximum value (for example, 50), the sub control circuit 101 sets the second The medal solenoid 708b is set to the OFF state via the host controller 241 of the medal selector 701. Also, when the pachislot is in a medal insertion permission state in which a medal can be inserted, the second medal solenoid 708b is set to an ON state via the host controller 241.

また、主制御回路91は、ダブルフォトセンサ502から出力されるメダル検知信号に基づいて、逆行エラーやメダル詰まりエラーを検知し、これらのエラーが検知されたときは、遊技を強制的に終了させる。また、主制御回路91は、副制御回路101に、検知したエラーの内容に応じたエラーコマンドを送信する。
副制御回路101は、主制御回路91から、逆行エラーやメダル詰まりエラーに係るエラーコマンドを受信した場合には、メダルセレクタ701の制御LSI234におけるホストコントローラ241を介して、第2メダルソレノイド708bをOFF状態に設定する。
Further, the main control circuit 91 detects a backward error or a medal jam error based on a medal detection signal output from the double photo sensor 502, and when these errors are detected, forcibly ends the game. . In addition, the main control circuit 91 transmits an error command corresponding to the content of the detected error to the sub control circuit 101.
When the sub control circuit 101 receives an error command related to a reverse error or a medal jam error from the main control circuit 91, the sub control circuit 101 turns off the second medal solenoid 708b via the host controller 241 in the control LSI 234 of the medal selector 701. Set to state.

本変形例では、パチスロ1が上述したメダル投入許可状態でないとき、主制御回路91は、第1メダルソレノイド708aをOFF状態に設定し、メダルをキャンセルシュータ206に向けて排出させる。また、第1メダルソレノイド708aがON状態であっても、メダルセレクタ701の制御LSI234は、色判定又は刻印判定の判定結果が「判定NG」のときは第2メダルソレノイド708bをOFF状態に設定し、メダルをキャンセルシュータ206に向けて排出させる。したがって、投入されたメダルを適切にカウントできる。また、投入されたメダルを、キャンセルシュータ206、又は、ホッパー装置51に、適切に導くことができる。   In the present modification, when the pachislot 1 is not in the above-described medal insertion permission state, the main control circuit 91 sets the first medal solenoid 708a to the OFF state and discharges medals to the cancel shooter 206. Further, even when the first medal solenoid 708a is in the ON state, the control LSI 234 of the medal selector 701 sets the second medal solenoid 708b to the OFF state when the determination result of the color determination or the marking determination is “NG”. Then, the medals are discharged toward the cancel shooter 206. Therefore, the inserted medals can be properly counted. Further, the inserted medals can be appropriately guided to the cancel shooter 206 or the hopper device 51.

<変形例6>
次に、変形例6の遊技機について、図80を参照して説明する。
図80は、変形例6の遊技機におけるメダルセレクタの回路構成例を示すブロック図である。
なお、変形例6に係る遊技機についての以下の説明において、上述した実施形態におけるパチスロ1と共通する構成や機能については、説明を省略する。
<Modification 6>
Next, a gaming machine of Modification 6 will be described with reference to FIG.
FIG. 80 is a block diagram illustrating a circuit configuration example of a medal selector in a gaming machine of Modification 6.
In the following description of the gaming machine according to Modification 6, descriptions of configurations and functions common to the pachislot 1 in the above-described embodiment will be omitted.

本変形例におけるメダルセレクタ801は、変形例5のメダルセレクタ701と同様に、2つのセレクトプレート、セレクトプレート707a及びセレクトプレート707bを備えている(図78参照)。   The medal selector 801 in the present modification includes two select plates, a select plate 707a and a select plate 707b, similarly to the medal selector 701 of the fifth modification (see FIG. 78).

また、図80に示すように、メダルセレクタ801における第2メダルソレノイド708bと、副制御基板72が、副中継基板61を介して、電気的に接続されている。このため、副制御基板72で構成される副制御回路101は、第2メダルソレノイド708bをON状態又はOFF状態に設定することができる。一方、制御LSI234と第2メダルソレノイド708bとは、電気的に接続されていない。この点が変形例5との相違点である。以下では、この相違点に関して説明を行い、変形例5と共通する点については説明を省略する。   As shown in FIG. 80, the second medal solenoid 708b in the medal selector 801 and the sub control board 72 are electrically connected via the sub relay board 61. Therefore, the sub control circuit 101 including the sub control board 72 can set the second medal solenoid 708b to the ON state or the OFF state. On the other hand, the control LSI 234 and the second medal solenoid 708b are not electrically connected. This is a difference from the fifth modification. Hereinafter, this difference will be described, and the description of the points common to the fifth modification will be omitted.

図80に示すように、変形例5と同様に、メダルセレクタ801におけるカメラユニット209の制御LSI234は、副中継基板61を介して、副制御基板72に接続されている。したがって、副制御回路101とメダルセレクタ801間で、上述の各種コマンドが送受信可能となっている。   As shown in FIG. 80, similarly to the fifth modification, the control LSI 234 of the camera unit 209 in the medal selector 801 is connected to the sub-control board 72 via the sub-relay board 61. Therefore, the various commands described above can be transmitted and received between the sub control circuit 101 and the medal selector 801.

本変形例では、メダルレール210上を移動する物体が、メダルレール210の上露出孔219又は下露出孔220に達する前に、色判定及び刻印判定の判定結果に基づく判定完了コマンドを、副制御回路101に送信する。   In the present modification, before the object moving on the medal rail 210 reaches the upper exposure hole 219 or the lower exposure hole 220 of the medal rail 210, a sub-control command is sent to the sub-control, based on the judgment results of the color judgment and the marking judgment. The signal is transmitted to the circuit 101.

そして、副制御回路101は、受信した判定完了コマンドにおける色判定又は刻印判定の判定結果が「判定NG」の場合、第2メダルソレノイド708bをOFF状態に設定する制御信号を、第2メダルソレノイド708bに出力する。この場合、判定対象の物体を、上露出孔219から突出するアフタメダルプレッシャ218、又は、下露出孔220から突出するメダルストッパ部727bに押し出させ、キャンセルシュータ206に向けて排出させることができる。   When the result of the color determination or the marking determination in the received determination completion command is “determination NG”, the sub control circuit 101 sends a control signal for setting the second medal solenoid 708b to the OFF state to the second medal solenoid 708b. Output to In this case, the object to be determined can be pushed out to the after-medal pressure 218 projecting from the upper exposure hole 219 or the medal stopper portion 727b projecting from the lower exposure hole 220, and can be ejected toward the cancel shooter 206.

一方、副制御回路101は、受信した判定完了コマンドにおける色判定及び刻印判定の判定結果が「判定OK」の場合、第2メダルソレノイド708bの状態はON状態のまま維持される。この場合、判定対象の物体はメダル出口部204c側へ案内され、すなわちホッパー装置51に案内される。   On the other hand, when the determination result of the color determination and the marking determination in the received determination completion command is “determination OK”, the state of the second medal solenoid 708b is maintained in the ON state. In this case, the object to be determined is guided to the medal exit unit 204c side, that is, guided to the hopper device 51.

また、変形例におけるメダルセレクタ801のホストコントローラ241は、SRAM243に記憶させた縮小画像データに対して行った円領域検出処理において円領域が検出できなくなったとき、その旨を示すコマンドを出力する。副制御回路101(のサブCPU102)は、このコマンドを受信すると、第2メダルソレノイド708bをON状態に設定する制御信号を第2メダルソレノイド708bに出力する。   Further, the host controller 241 of the medal selector 801 in the modified example outputs a command indicating that a circular area cannot be detected in the circular area detection processing performed on the reduced image data stored in the SRAM 243. Upon receiving this command, the sub-control circuit 101 (sub-CPU 102) outputs a control signal for setting the second medal solenoid 708b to the ON state to the second medal solenoid 708b.

本変形例では、パチスロ1が上述したメダル投入許可状態でないとき、主制御回路91は、第1メダルソレノイド708aをOFF状態に設定し、メダルをキャンセルシュータ206に向けて排出させる。また、第1メダルソレノイド708aがON状態であっても、副制御回路101が、メダルセレクタ701から色判定又は刻印判定の判定結果が「判定NG」である判定完了コマンドを受信した場合、第2メダルソレノイド708bをOFF状態に設定し、メダルをキャンセルシュータ206に向けて排出させる。したがって、投入されたメダルを適切にカウントできる。また、投入されたメダルを、キャンセルシュータ206、又は、ホッパー装置51に、適切に導くことができる。   In the present modification, when the pachislot 1 is not in the above-described medal insertion permission state, the main control circuit 91 sets the first medal solenoid 708a to the OFF state and discharges medals to the cancel shooter 206. In addition, even when the first medal solenoid 708a is in the ON state, if the sub control circuit 101 receives from the medal selector 701 a judgment completion command in which the judgment result of the color judgment or the engraving judgment is “judgment NG”, the second The medal solenoid 708b is set to the OFF state, and the medals are discharged toward the cancel shooter 206. Therefore, the inserted medals can be properly counted. Further, the inserted medals can be appropriately guided to the cancel shooter 206 or the hopper device 51.

<その他の変形例>
また、上記実施形態では、最大で4つの色テンプレート及び本テンプレートを生成する態様を説明したが、これらテンプレートの数は、許容される判定所要時間や求める判定の精度に応じ適宜設定可能である。
<Other modifications>
Further, in the above-described embodiment, the aspect in which the maximum of four color templates and the main template are generated has been described. However, the number of these templates can be appropriately set in accordance with the allowable determination required time and the accuracy of the determined determination.

また、上記実施形態では、SRAM243に記憶された、色テンプレート、本テンプレートが、遊技機の電源投入時に初期化スイッチを押下すると消去される。しかし、これに代えて、SRAM243に記憶されている各種テンプレートを消去するために任意の操作を設定してもよい。例えば、遊技機の設定の変更に連動して、SRAM243の各種テンプレートを消去してもよい。   In the above embodiment, the color template and the main template stored in the SRAM 243 are erased when the initialization switch is pressed when the power of the gaming machine is turned on. However, in place of this, an arbitrary operation may be set to delete various templates stored in the SRAM 243. For example, various templates in the SRAM 243 may be deleted in conjunction with a change in the setting of the gaming machine.

また、メダルが投入不可の場合の順序判定処理において、SRAM243に記憶されている4個のグレースケール画像データの各判定領域におけるデータの遷移の態様と、メダルカウント判定表で規定されているE1〜E4に対応するデータの遷移の態様と、が一致しない場合は、「異常が発生した」と判定し、判定結果をSRAM243に記憶してもよい。   In addition, in the order determination process in the case where medals cannot be inserted, the data transition mode in each determination area of the four grayscale image data stored in the SRAM 243 and the E1 to E1 defined in the medal count determination table. If the data transition mode corresponding to E4 does not match, it may be determined that “abnormality has occurred” and the determination result may be stored in the SRAM 243.

また、上記実施形態では、ホストコントローラ241が、縮小画像がSRAM243に記憶されると、画像認識DSP回路242に前処理の実行を指示する態様を説明した。しかし、これに代えて、ホストコントローラ241は、メダルカウント回路246がメダルレール210上を「メダルが通過した」と判定したことを契機に、該判定時から所定時間前の(すなわち、所定フレーム前の)縮小画像データを用いて、前処理を行うよう、画像認識DSP回路に指示してもよい。なお、この所定時間は、所定時間前の縮小画像に、必ずメダルの画像が含まれるように、実験やシミュレーションに基づいて予め設定される。この場合、メダル通過後に、通過したメダルについて、事後的に正規メダルか否かを判定することになる。   In the above-described embodiment, the mode has been described in which the host controller 241 instructs the image recognition DSP circuit 242 to execute the preprocessing when the reduced image is stored in the SRAM 243. However, instead of this, when the medal count circuit 246 determines that “the medal has passed” on the medal rail 210, the host controller 241 triggers a predetermined time before the determination (that is, the predetermined frame before). ), The image recognition DSP circuit may be instructed to perform the preprocessing using the reduced image data. The predetermined time is set in advance based on experiments and simulations so that the reduced image before the predetermined time always includes the medal image. In this case, after passing the medals, it is later determined whether or not the passed medals are regular medals.

また、色判定処理における閾値判定処理を省略してもよい。また、カラー認識回路247は、ISP回路245から出力された色相と彩度に係るデータに基づいて以下のような色判定処理を行ってもよい。この色判定処理において、カラー認識回路247は、まず、画像データの中心付近の色相と彩度に係るデータの積算値をベクトルで表現し(ベクトル変換し)、3次元空間上でベクトルの角度を計算する。次に、カラー認識回路247は、計算したベクトルの角度と、所定の色閾値とを比較して、正規メダルの色と一致するか否かを判定する。所定の閾値は、正規メダルに係る画像データについて上述した処理と同様の方法で計算したベクトルの角度に基づいて予め定められている閾値(例えば、比較対象となる正規メダルに係る3次元空間上のベクトルの個々の座標(XYZ)上の角度の±10度以内)である。   Further, the threshold value determination process in the color determination process may be omitted. Further, the color recognition circuit 247 may perform the following color determination processing based on the hue and saturation data output from the ISP circuit 245. In this color determination processing, the color recognition circuit 247 first expresses an integrated value of data relating to hue and saturation near the center of the image data as a vector (by performing vector conversion), and determines the angle of the vector in a three-dimensional space. calculate. Next, the color recognition circuit 247 compares the calculated vector angle with a predetermined color threshold to determine whether or not the color matches the color of the regular medal. The predetermined threshold is a predetermined threshold based on the angle of the vector calculated by the same method as the above-described process for the image data related to the regular medal (for example, in the three-dimensional space related to the regular medal to be compared). (Within ± 10 degrees of the angle on the individual coordinates (XYZ) of the vector).

また、上記実施形態では、色テンプレートが生成されるタイミング(電源投入後メダルが50枚投入されたとき)と本テンプレートが生成されるタイミング(学習メダルカウンタの値が127又は259)が異なっている。このため、本テンプレートが生成されるまで、色判定処理を行わないようにしてもよい。または、本テンプレートの生成中に、色判定処理を行い、色判定処理の判定結果が「閾値判定不可」又は「否」に係るメダルに係るデータについて、本テンプレートの生成に用いないようにしてもよい。   Further, in the above embodiment, the timing at which the color template is generated (when 50 medals are inserted after the power is turned on) is different from the timing at which the template is generated (the value of the learning medal counter is 127 or 259). . Therefore, the color determination process may not be performed until the template is generated. Alternatively, color determination processing may be performed during the generation of the present template, and data relating to medals whose determination result of the color determination processing is “No threshold determination” or “No” may not be used in the generation of the present template. Good.

また、本発明を、遊技媒体を用いる他の遊技機、例えばパチンコに採用してもよい。
また、メダルレール210上を移動する物体を検知する近接センサの一例としてダブルフォトセンサ502を用いる態様を説明したが、これに限らず、物体の接近や近傍の検出対象の有無を非接触で検出できる他の近接センサ(誘導形、静電容量形、超音波形、光電形、磁気形近接スイッチ)を用いてもよい。
Further, the present invention may be applied to other gaming machines using a game medium, for example, a pachinko machine.
In addition, the embodiment using the double photo sensor 502 as an example of the proximity sensor for detecting an object moving on the medal rail 210 has been described. However, the present invention is not limited to this. Other possible proximity sensors (inductive, capacitive, ultrasonic, photoelectric, magnetic proximity switches) may be used.

[本発明の一実施形態の応用例1]
次に、本発明の一実施形態の応用例1に係る遊技用装置1500について説明する。
遊技用装置1500は、ホールに設置されるメダル計数機であり、例えば、複数のパチスロ1が配列された島の端部に設けられている。また、遊技用装置1500は、上述のメダルセレクタ201,301,401,501,601,701,801のいずれかを備える。以下の説明では、メダルセレクタ201を備える遊技用装置1500について説明する。
[Application Example 1 of One Embodiment of the Present Invention]
Next, a gaming device 1500 according to a first application example of the embodiment of the present invention will be described.
The gaming device 1500 is a medal counter installed in a hall, and is provided, for example, at an end of an island where a plurality of pachislots 1 are arranged. The gaming device 1500 includes one of the above-described medal selectors 201, 301, 401, 501, 601, 701, and 801. In the following description, a gaming device 1500 including the medal selector 201 will be described.

図81は、本発明の実施形態の応用例1に係る遊技用装置1500を上面から見た平面図である。図81に示すように、遊技用装置1500は、投入されたメダル(遊技媒体)を貯留する、すり鉢状の凹部が形成されたホッパ1543(遊技媒体貯留手段)を備えている。ホッパ1543の下部には、投入したメダルの一つ一つをメダル受穴1524に落とし込み、当該メダル受穴1524を偏芯回転させる受穴付回転盤1526を備えている。受穴付回転盤1526は、計数開始スイッチ1541を押下することによってその回転を開始する。受穴付回転盤1526のメダル受穴1524に入ったメダルは、受穴付回転盤1526の回転に伴って1ホッパ543の下部から排出され、ホッパ1543の下方に設けられたメダルセレクタ201に流入する。そして、メダルセレクタ201のダブルフォトセンサ502の検出結果に基づき計数機1549(遊技媒体計数手段)のメダル検出部(図示省略)及び計数機制御手段(図示省略)により検出、計数されて、貯留される。なお、計数機制御手段は、処理装置及び各種メモリで構成され、計数機が行う各種処理(遊技媒体の計数処理を含む)を制御する。   FIG. 81 is a plan view of a gaming device 1500 according to Application Example 1 of the embodiment of the present invention, as viewed from above. As shown in FIG. 81, the game device 1500 includes a hopper 1543 (game medium storage means) having a mortar-shaped recess formed therein for storing inserted medals (game media). At the lower part of the hopper 1543, there is provided a rotating disk 1526 with a receiving hole for dropping each inserted medal into the medal receiving hole 1524 and eccentrically rotating the medal receiving hole 1524. The rotation plate 1526 with the receiving hole starts its rotation by pressing the count start switch 1541. The medals which have entered the medal receiving holes 1524 of the rotary disc 1526 with receiving holes are discharged from the lower part of the hopper 543 with the rotation of the rotary disc 1526 with receiving holes and flow into the medal selector 201 provided below the hopper 1543. I do. Then, based on the detection result of the double photo sensor 502 of the medal selector 201, it is detected, counted, and stored by a medal detector (not shown) and a counter controller (not shown) of the counter 1549 (game medium counting means). You. The counter control means is composed of a processing device and various memories, and controls various processes (including a game medium counting process) performed by the counter.

遊技用装置1500の上面には、投入したメダルを計数した枚数を表示する投入枚数表示部1540aと、投入したメダルのうちレシート(記録媒体の一形態。)に印刷する枚数を設定する際に押下するレシート印刷枚数設定スイッチ1534rと、前記設定したレシート印刷枚数を表示するレシート印刷枚数表示部1540bと、投入したメダルのうち貯メダルカード(記録媒体の一形態。)に記録する貯メダル数を設定する際に押下するカード記録枚数設定スイッチ1534cと、前記設定したカード記録枚数を表示するカード記録枚数表示部1540cと、を備えている。   On the upper surface of the gaming device 1500, an inserted number display section 1540a for displaying the number of inserted medals is displayed, and pressed when setting the number of inserted medals to be printed on a receipt (one form of a recording medium). Switch 1534r for displaying the number of receipts to be printed, a receipt number display section 1540b for displaying the set number of receipts to be printed, and the number of stored medals to be recorded on a medal storage card (an embodiment of a recording medium) among the inserted medals. A switch 1534c for setting the number of cards to be recorded, which is depressed when performing the operation, and a card number display section 1540c for displaying the set number of cards to be recorded.

また、遊技用装置1500の上面には、投入したメダルのうちレシートに印刷する枚数や、貯メダルカードに記録する貯メダル数を設定する0〜9までの数字スイッチ(入力手段1534の一形態。)と、入力した枚数を修正する際に押下して直前に入力した数値を消去するBSスイッチとが配されている。また遊技用装置1500の上面には、前記各メダルの枚数を設定した後に、レシートに印刷する処理、貯メダルカードに記録する処理の実行を指示するエントリースイッチ1534eが配置されている。   Also, on the upper surface of the gaming device 1500, a number switch from 0 to 9 for setting the number of medals to be printed on a receipt among the inserted medals and the number of stored medals to be recorded on a stored medal card (an embodiment of the input means 1534. ) And a BS switch which is depressed when correcting the input number and deletes the numerical value input immediately before. On the upper surface of the gaming device 1500, an entry switch 1534e for instructing execution of a process of printing on a receipt and a process of recording on a medal storage card after setting the number of medals is arranged.

また、遊技用装置1500は、磁気記録式又はICタグを内蔵した貯メダルカードに対して貯メダル数を読み書きしたり、遊技者を識別する固有の識別情報(カードID)を読み取るカードリーダライタ1537(記録媒体制御手段の一形態。)と、レシートの用紙にメダル枚数やバーコード、又はQRコード(登録商標)を印刷して出力するレシート印刷手段1539(記録媒体制御手段の一形態。)と、正規のメダルでないメダルとして検出されたメダルを貯留するメダル受皿1517と、を備えている。   Further, the gaming device 1500 is a card reader / writer 1537 which reads and writes the number of stored medals on a magnetic storage type or a stored medal card incorporating an IC tag, and reads unique identification information (card ID) for identifying a player. (An embodiment of a recording medium control unit), and a receipt printing unit 1539 (an embodiment of a recording medium control unit) that prints and outputs the number of medals, a barcode, or a QR code (registered trademark) on a receipt sheet. And a medal tray 1517 for storing medals detected as non-authorized medals.

このようなメダルセレクタを備える遊技用装置1500によれば、上記実施形態又は上記変形例と同様の作用効果を奏する。すなわち、正規の遊技媒体が用いられていると誤認させる不正行為を検知することができる。   According to the gaming device 1500 including such a medal selector, the same operation and effect as those of the above-described embodiment or the above-described modified example can be obtained. That is, it is possible to detect a fraudulent act of mistaking a legitimate game medium as being used.

例えば、上述のように、メダルセレクタ201を採用し、遊技用装置1500に、上述の各種画面(図57,図58,図61,図63,図70参照)を表示可能な液晶表示装置を設けたり、又は、遊技用装置1500を液晶表示装置に接続したり、することで、正規の遊技媒体が用いられていると誤認させる行為などの不正行為を検知することができる。この場合、各種画面を表示させるために副制御回路101が行う各種動作は、計数機制御手段が行ってもよいし、別途、副制御回路101と同様の制御手段を設け、当該制御手段で行ってもよい。
また、制御LSI234が、メダルソレノイドをON状態又はOFF状態に設定することができるメダルセレクタ(例えば、変形例2,4,5のメダルセレクタ401,601,701)を採用する場合は、ダブルフォトセンサ502は、正規のメダルのみ検出可能となるので、計数機1549(遊技媒体計数手段)のメダル検出部及び計数機制御手段では、正規のメダルのみ検出、計数されて、貯留される。なお、ダブルフォトセンサ502の検出結果に代えて、メダルセレクタからの判定完了コマンド(図45参照)に基づいて、計数機制御手段が正規のメダルのみ計数するようにしてもよい。
For example, as described above, a liquid crystal display device that employs the medal selector 201 and can display the various screens described above (see FIGS. 57, 58, 61, 63, and 70) is provided in the gaming device 1500. By connecting the gaming device 1500 to a liquid crystal display device, or by connecting the gaming device 1500 to a liquid crystal display device, it is possible to detect an improper act such as an act of mistaking a legitimate game medium as being used. In this case, various operations performed by the sub-control circuit 101 to display various screens may be performed by the counter control unit, or separately provided by a control unit similar to the sub-control circuit 101, and performed by the control unit. You may.
When the control LSI 234 employs a medal selector (for example, the medal selectors 401, 601, and 701 of Modifications 2, 4, and 5) that can set the medal solenoid to the ON state or the OFF state, the double photo sensor is used. Since 502 can detect only regular medals, the medal detection unit and the counter control means of the counter 1549 (game medium counting means) detect, count, and store only regular medals. Note that, instead of the detection result of the double photosensor 502, the counter control means may count only regular medals based on a determination completion command from the medal selector (see FIG. 45).

[本発明の一実施形態の応用例2]
次に、本発明の一実施形態の応用例に係る遊技用装置1600について説明する。
遊技用装置1600は、ホールにおいて、各パチスロ1に併設され、隣接するパチスロ1に対応して設置されており、対応する当該パチスロ1との間で通信可能に接続されるメダル計数機である。また、遊技用装置1600は、上述のメダルセレクタ201,301,401,501,601,701,801のいずれかを備える。以下の説明では、メダルセレクタ201を備える遊技用装置1600について説明する。
[Application Example 2 of One Embodiment of the Present Invention]
Next, a gaming device 1600 according to an application example of the embodiment of the present invention will be described.
The gaming device 1600 is a medal counter that is provided alongside each of the pachislots 1 in the hall, is installed corresponding to the adjacent pachislot 1, and is communicably connected to the corresponding pachislot 1. The gaming device 1600 includes any one of the above-described medal selectors 201, 301, 401, 501, 601, 701, and 801. In the following description, a gaming device 1600 including the medal selector 201 will be described.

図82は、本発明の実施形態の応用例2に係る遊技用装置1600の内部構成を示す斜視図である。図82に示すように、遊技用装置1600の前面部1621には、LED(light emitting diode)部1631、カード挿入口1632、紙幣を投入可能な紙幣挿入口1633、タッチパネルLCD(liquid crystal display)により構成された操作ユニット1634、カメラ1635、非接触ICカードリーダライタ1636、メダル(遊技媒体)払出トレー1637、スピーカカバー1638、メダル(遊技媒体)計数用投入口1639等が設けられている。カード挿入口1632は、例えばホールのカード発行機(図示せず)によって発行された情報カードを受け付け可能な挿入口である。LED部1631は、フルカラーLED1631A、赤外LED(赤外線発光ダイオード)1631Bから構成されている。   FIG. 82 is a perspective view showing the internal configuration of a gaming device 1600 according to application example 2 of the embodiment of the present invention. As shown in FIG. 82, an LED (light emitting diode) section 1631, a card insertion slot 1632, a bill insertion slot 1633 capable of inserting bills, and a touch panel LCD (liquid crystal display) are provided on a front portion 1621 of the gaming machine 1600. An operation unit 1634, a camera 1635, a non-contact IC card reader / writer 1636, a medal (game medium) payout tray 1637, a speaker cover 1638, a medal (game medium) counting slot 1639, and the like are provided. The card insertion slot 1632 is an insertion slot capable of receiving an information card issued by, for example, a card issuing machine (not shown) in a hall. The LED section 1631 includes a full-color LED 1631A and an infrared LED (infrared light emitting diode) 1631B.

遊技者は、情報カード又は所定金額の紙幣を、カード挿入口1632又は紙幣挿入口1633に投入することで、遊技に必要な遊技媒体としてのメダルの貸し出しを受けることができる。また、遊技者は、非接触ICカードを、非接触ICカードリーダライタ1636にかざすことで、遊技に必要なメダルの貸し出しを受けることができる。   The player can borrow medals as a game medium required for the game by inserting an information card or a bill of a predetermined amount into the card insertion slot 1632 or the bill insertion slot 1633. In addition, the player holds the non-contact IC card over the non-contact IC card reader / writer 1636, so that a medal required for the game can be lent.

遊技用装置1600は、情報カード、紙幣及びICカードといった価値媒体の投入を受けると、投入された価値媒体の金額に応じた数のメダルを、内部に設けられた払出用ホッパ(第1の計数部)1651によって計数してメダル払出トレー1637から払い出す。遊技者は、メダル払出トレー1637から払い出されたメダルをパチスロ1のメダル投入口21(図2参照)へ投入することにより、パチスロ1において遊技を行うことができる。   When the gaming machine 1600 receives a value medium such as an information card, a bill, and an IC card, the gaming device 1600 divides the number of medals according to the amount of the value medium inserted into a payout hopper (first counting machine). ) Is paid out from the medal payout tray 1637. The player can play a game in the pachislot 1 by inserting medals paid out from the medal payout tray 1637 into the medal insertion slot 21 (see FIG. 2) of the pachislot 1.

また、パチスロ1においては、遊技の結果に応じて、メダルトレイユニット34にメダルを払い出すようになされている。遊技者は、このメダルをメダルトレイユニット34から掬い取って、遊技用装置1600のメダル計数用投入口1639へ投入することにより、このメダルを遊技用装置1600によって計数させることができる。遊技用装置1600は、メダル計数用投入口1639から投入されたメダルを、内部に設けられた計数用ホッパ(第2の計数部)によって計数する。   In the pachislot 1, medals are paid out to the medal tray unit 34 according to the result of the game. The player scoops the medals from the medal tray unit 34 and inserts the medals into the medal counting slot 1639 of the gaming device 1600 so that the medals can be counted by the gaming device 1600. The gaming machine 1600 counts medals inserted from the medal counting slot 1639 by a counting hopper (second counting unit) provided inside.

計数された結果は、カード挿入口1632から挿入されたカードに記録され、又は、ホールコンピュータに設けられた記憶部に記憶される。   The counted result is recorded on a card inserted from the card insertion slot 1632 or stored in a storage unit provided in the hall computer.

計数用ホッパにおいて計数されたメダルは、遊技用装置1600の底面部に設けられた排出口から搬送コンベアに排出され、回収される。なお、搬送コンベアが設けられていない場所では、遊技用装置1600の下部にメダルを貯留するための貯留ボックスを設置し、この貯留ボックスへメダルを排出するようにしてもよい。   The medals counted in the counting hopper are discharged to a transport conveyor from a discharge port provided on a bottom portion of the gaming machine 1600 and collected. In a place where the transport conveyor is not provided, a storage box for storing medals may be provided below the gaming machine 1600, and the medals may be discharged to this storage box.

遊技用装置1600は、筐体1622の内部に、情報カード、紙幣、非接触ICカード等の価値媒体を識別する識別手段(情報カードリーダ、紙幣識別装置1661、ICカードリーダライタ等)と、電源ユニット1665とを収納する第1の収納空間AR11を有している。また、第1の収納空間AR11の下方には、払出用ホッパ1651と計数用ホッパ1671とを上下に併設して収納する第2の収納空間AR13を有している。第1の収納空間AR11には、上部に識別手段(情報カードリーダ、紙幣識別装置1661、ICカードリーダライタ等)が収納され、下部に電源ユニット1665が収納されている。すなわち、第1の収納空間AR11の下部は、電源ユニット1665を収納する電源ユニット収納空間AR12を形成している。   The gaming machine 1600 includes an identification unit (information card reader, bill identification device 1661, IC card reader / writer, etc.) for identifying a value medium such as an information card, a bill, and a non-contact IC card inside a housing 1622; It has a first storage space AR11 for storing the unit 1665. Further, below the first storage space AR11, there is provided a second storage space AR13 in which a payout hopper 1651 and a counting hopper 1671 are vertically arranged and stored. In the first storage space AR11, an identification unit (information card reader, bill validator 1661, IC card reader / writer, etc.) is stored in the upper part, and a power supply unit 1665 is stored in the lower part. That is, the lower part of the first storage space AR11 forms a power supply unit storage space AR12 for storing the power supply unit 1665.

第1の収納空間AR11の下方の第2の収納空間AR13に収納された払出用ホッパ1651は、その上部において筐体1622の背面部に設けられた補給用開口部1652を介して、ホールからの補給路によりメダルが補給されるようになっている。この補給用開口部1652と払出用ホッパ1651との間には、補給通路1653が設けられており、補給用開口部1652から補給されたメダルは、補給通路1653を介して払出用ホッパ1651に落下する。   The dispensing hopper 1651 stored in the second storage space AR13 below the first storage space AR11 is supplied from the hole via a supply opening 1652 provided on the back of the housing 1622 in the upper part. The medals are supplied by the supply path. A supply passage 1653 is provided between the supply opening 1652 and the payout hopper 1651, and the medals supplied from the supply opening 1652 drop to the payout hopper 1651 via the supply passage 1653. I do.

一方、筐体1622の前面部1621に設けられたメダル計数用投入口1639と計数用ホッパ1671との間には、導入通路1672が設けられたおり、メダル計数用投入口1639から投入されたメダルは、この導入通路1672を介して計数用ホッパ1671に落下する(矢印a)。計数用ホッパ1671には、メダルセレクタ201と、メダルを計数する計数手段と、が設けられている。メダル計数用投入口1639から投入されたメダルは、メダルセレクタ201に流入し、計数手段により計数され、筐体1622の底面部に設けられた排出口1673から搬送コンベアに排出され(矢印b)、回収される。   On the other hand, an introduction passage 1672 is provided between a medal counting slot 1639 provided on the front portion 1621 of the housing 1622 and a counting hopper 1671, and medals inserted from the medal counting slot 1639 are provided. Falls into the counting hopper 1671 through the introduction passage 1672 (arrow a). The counting hopper 1671 is provided with a medal selector 201 and counting means for counting medals. The medals inserted through the medal counting slot 1639 flow into the medal selector 201, are counted by the counting means, and are discharged from the discharge port 1673 provided on the bottom portion of the housing 1622 to the conveyor (arrow b). Collected.

遊技用装置1600の前面部1621には、前面パネル1623が設けられており、この前面パネル1623には、スピーカカバー1638が設けられている。このスピーカカバー1638は、前面パネル1623(スピーカカバー1638)の裏面側に設けられたスピーカからの音を前方に透過させる複数の透過口を有している。   A front panel 1623 is provided on a front portion 1621 of the gaming apparatus 1600, and a speaker cover 1638 is provided on the front panel 1623. The speaker cover 1638 has a plurality of transmission ports for transmitting sound from a speaker provided on the back side of the front panel 1623 (speaker cover 1638) forward.

図83は、本発明の実施形態の応用例2に係る計数用ホッパ1671の断面図である。図83に示すように、計数用ホッパ1671のメダル通路1676の前面部にはメダルを受けるための開口部1675が設けられており、この開口部1675には、外部からメダルを投入するためのメダル計数用投入口1639(図82参照)が取り付けられる。これにより、メダル計数用投入口1639へ投入されたメダルは、開口部1675及びメダル通路1676を介して計数用ホッパ1671へ導かれる。計数用ホッパ1671へ導かれたメダルは、メダルセレクタ201に流入する。そして、メダルセレクタ201のダブルフォトセンサ502の検出結果に基づき計数手段により計数され、計数用ホッパ1671の底面部に設けられた排出口1674から筐体1622の排出口1673(図82参照)を介して搬送コンベアに排出される。計数用ホッパ1671の排出口1674には、排出されるメダルをガイドするガイド部1674A、1674Bが設けられており、このガイド部1674A、1674Bによって、メダルの排出方向を斜め方向にすることができる。これにより、計数用ホッパ1671の排出口から排出されるメダル(すなわち筐体1622の排出口1673(図82)から排出されるメダル)の排出方向を、遊技用装置1600の下方近傍に配された搬送コンベアの方向にすることができる。   FIG. 83 is a cross-sectional view of the counting hopper 1671 according to the application example 2 of the embodiment of the present invention. As shown in FIG. 83, an opening 1675 for receiving medals is provided in the front portion of the medal passage 1676 of the counting hopper 1671, and a medal for inserting medals from outside is provided in the opening 1675. A counting slot 1639 (see FIG. 82) is attached. Thus, the medals inserted into the medal counting slot 1639 are guided to the counting hopper 1671 through the opening 1675 and the medal passage 1676. The medals guided to the counting hopper 1671 flow into the medal selector 201. Then, the counting is performed by the counting means based on the detection result of the double photo sensor 502 of the medal selector 201, and from a discharge port 1674 provided on the bottom surface of the counting hopper 1671 via a discharge port 1673 of the housing 1622 (see FIG. 82). And discharged to the conveyor. Guide portions 1674A and 1674B for guiding the medals to be ejected are provided at the ejection port 1674 of the counting hopper 1671, and the medals can be ejected in an oblique direction by the guide portions 1674A and 1674B. As a result, the direction of discharging the medals discharged from the discharge port of the counting hopper 1671 (that is, the medals discharged from the discharge port 1673 (FIG. 82) of the housing 1622) is arranged near the lower part of the gaming device 1600. It can be in the direction of the conveyor.

因みに、計数用ホッパ1671の開口部1675及びメダル計数用投入口1639(図82参照)の大きさは、遊技者の手が入り難い大きさとされている。メダル計数用投入口1639には、前面パネル1623(図82参照)に併設して、板状のメダルガイド部材1629(図82参照)が固定されている。これにより、遊技者の手がメダル計数用投入口1639から入り難くすることができる。   Incidentally, the size of the opening 1675 of the counting hopper 1671 and the medal counting slot 1639 (see FIG. 82) is set to a size that is difficult for the player to reach. A plate-shaped medal guide member 1629 (see FIG. 82) is fixed to the medal counting slot 1639 in addition to the front panel 1623 (see FIG. 82). This makes it difficult for the player's hands to enter the medal counting slot 1639.

また、開口部1675にはフォトセンサ(図示せず)が設けられており、遊技者の手が入った場合にこれを検出するようになっている。これにより、遊技者の手が誤って挿入された場合、又は、不正により手が挿入された場合等に、フォトセンサによって検出し、計数用ホッパ1671の動作を停止させることができる。なお、このフォトセンサの取り付け位置は、メダル計数用投入口1639(図82参照)及び開口部1675を介して投入されるメダルを誤検出しない位置に設けられている。例えば、開口部1675の上部の状態のみを検出するように設けることにより、開口部1675の下方を滑り込むメダルは検出せずに、開口部1675の上部まで入り込む遊技者の手だけを検出することができる。因みに、計数用ホッパ1671には、メダルの投入を検出するためのセンサ(図示せず)も設けられている。   In addition, a photo sensor (not shown) is provided in the opening 1675 so as to detect when a player's hand enters. Thus, when the player's hand is erroneously inserted, or when the hand is incorrectly inserted, the detection by the photo sensor can be performed, and the operation of the counting hopper 1671 can be stopped. The photosensor is mounted at a position where medals inserted through the medal counting slot 1639 (see FIG. 82) and the opening 1675 are not erroneously detected. For example, by providing so as to detect only the state of the upper part of the opening 1675, it is possible to detect only the hand of the player who enters the upper part of the opening 1675 without detecting a medal sliding under the opening 1675. it can. Incidentally, the counting hopper 1671 is also provided with a sensor (not shown) for detecting insertion of medals.

このようなメダルセレクタを備える遊技用装置1600によれば、上記実施形態又は変形例と同様の作用効果を奏する。すなわち、正規の遊技媒体が用いられていると誤認させる不正行為を検知することができる。   According to the gaming machine 1600 including such a medal selector, the same operation and effect as those of the above-described embodiment or the modified example can be obtained. That is, it is possible to detect a fraudulent act of mistaking a legitimate game medium as being used.

例えば、上述のように、メダルセレクタ201を採用し、遊技用装置1600に、上述の各種画面(図57,図58,図61,図63,図70参照)を表示可能な液晶表示装置を設けたり、又は、遊技用装置1600を液晶表示装置に接続したり、することで、正規の遊技媒体が用いられていると誤認させる行為などの不正行為を検知することができる。この場合、各種画面を表示させるために副制御回路101が行う各種動作は、計数手段が行ってもよいし、別途、副制御回路101と同様の制御手段を設けることで行ってもよい。
また、制御LSI234が、メダルソレノイドをON状態又はOFF状態に設定することができるメダルセレクタ(例えば、変形例2,4,5のメダルセレクタ401,601,701)を採用する場合は、ダブルフォトセンサ502は、正規のメダルのみ検出可能となるので、遊技用装置1600の計数手段では、正規のメダルのみ計数される。なお、ダブルフォトセンサ502の検出結果に代えて、メダルセレクタからの判定完了コマンド(図45参照)に基づいて、計数手段が正規のメダルのみ計数するようにしてもよい。
For example, as described above, a liquid crystal display device that employs the medal selector 201 and can display the various screens described above (see FIGS. 57, 58, 61, 63, and 70) is provided in the gaming device 1600. By connecting the gaming device 1600 to a liquid crystal display device, or by connecting the gaming device 1600 to a liquid crystal display device, it is possible to detect an improper act such as an act of mistaking a legitimate game medium as being used. In this case, various operations performed by the sub-control circuit 101 to display various screens may be performed by the counting unit, or may be performed by separately providing a control unit similar to the sub-control circuit 101.
When the control LSI 234 employs a medal selector (for example, the medal selectors 401, 601, and 701 of Modifications 2, 4, and 5) that can set the medal solenoid to the ON state or the OFF state, the double photo sensor is used. In 502, only the regular medals can be detected, so that the counting means of the gaming device 1600 counts only the regular medals. Note that, instead of the detection result of the double photo sensor 502, the counting means may count only regular medals based on a determination completion command (see FIG. 45) from the medal selector.

[本発明の一実施形態の応用例3]
次に、本発明の一実施形態の応用例3に係る遊技用装置1700について説明する。
遊技用装置1700は、上述のメダルセレクタ201,301,401,501,601,701,801のいずれかを備える。以下の説明では、変形例2のメダルセレクタ201を備える遊技用装置1700について説明する。また、遊技用装置1700は、スタンドアローンで遊技媒体の選別のみを行うものであってもよいし、遊技媒体の数を計数するための装置(所謂、ジェットカウンタ、各台計数機)に接続、内蔵されるものであってもよいし、遊技機に内蔵されるものであってもよい。なお、本応用例3のメダルセレクタ201は、メダルセレクタ401と同様に、制御LSI234が、メダルソレノイドをON状態又はOFF状態に設定することができるものとする。
[Application Example 3 of One Embodiment of the Present Invention]
Next, a gaming device 1700 according to a third application example of the embodiment of the present invention will be described.
The gaming machine 1700 includes one of the above-described medal selectors 201, 301, 401, 501, 601, 701, and 801. In the following description, a gaming device 1700 including the medal selector 201 of the second modification will be described. In addition, the game device 1700 may be a device that only performs selection of game media in a stand-alone manner, or may be connected to a device for counting the number of game media (a so-called jet counter, a counter for each unit). It may be built in, or may be built in a gaming machine. In the medal selector 201 of the application example 3, it is assumed that the control LSI 234 can set the medal solenoid to the ON state or the OFF state similarly to the medal selector 401.

図84は、本発明の一実施形態の応用例3に係る遊技用装置1700の内部構造例を示す斜視図である。
図84に示すように、遊技用装置1700は、筐体M2と、筐体M2の上側に設けられ、選別対象となるメダルが収容される収容部M21と、筐体M2の内部に配置され、投入されたメダルを1つずつ送り出す送り出し部としてのホッパ装置M20と、メダルを選別するメダルセレクタ201と、ホッパ装置M20から送り出されたメダルを受け入れてメダルセレクタに案内する第1の案内部としてのガイド部材M40と、を有している。上述のように、本応用例3では、2つのメダルセレクタ201が設けられている。即ち、ホッパ装置M20から2つのガイド部材M40・M40を介して、夫々2つのメダルセレクタ201にメダルを供給するように構成されている。また、遊技用装置700は、筐体M2内部の下側後方に電源ユニットM10を有している。図示しないが、電源ユニットM10は、ホッパ装置M20やメダルセレクタ201に電源を供給するように電気的に接続されている。
FIG. 84 is a perspective view showing an example of the internal structure of a gaming device 1700 according to Application Example 3 of one embodiment of the present invention.
As shown in FIG. 84, the gaming device 1700 is provided inside the housing M2, a housing portion M21 provided above the housing M2 and housing medals to be sorted, and a housing M2. A hopper device M20 as a sending unit for sending out inserted medals one by one, a medal selector 201 for selecting medals, and a first guiding unit for receiving medals sent from the hopper device M20 and guiding the medals to the medal selector. And a guide member M40. As described above, in the application example 3, two medal selectors 201 are provided. That is, the hopper device M20 is configured to supply medals to the two medal selectors 201 via the two guide members M40 and M40, respectively. Further, the gaming device 700 has a power supply unit M10 on the lower rear side inside the housing M2. Although not shown, the power supply unit M10 is electrically connected to supply power to the hopper device M20 and the medal selector 201.

また、2つのメダルセレクタ201の下方には、2つのメダルセレクタ201により、正規のメダルであると検知されたメダルを排出口に導く第1排出通路M50が配置されている。また、2つのメダルセレクタ201の下方には、2つのメダルセレクタ201により、正規でないと判定されたメダルを通過させて下皿に案内する通路である第2排出通路M8・M8が夫々に配置されている。また、筐体M2内の底面には、第2排出通路M8・M8に対応する位置に、第2排出口M11・M11が形成されている。   Further, below the two medal selectors 201, a first discharge passage M50 that guides medals detected as regular medals by the two medal selectors 201 to a discharge port is arranged. Below the two medal selectors 201, second discharge passages M8, M8, which are passages for passing medals determined by the two medal selectors 201 to be illegal and guiding the medals to the lower plate, are arranged respectively. ing. Further, on the bottom surface in the housing M2, second discharge ports M11 are formed at positions corresponding to the second discharge passages M8.

このようなメダルセレクタを備える遊技用装置1700によれば、上記実施形態又は上記変形例と同様の作用効果を奏する。すなわち、正規の遊技媒体が用いられていると誤認させる不正行為を検知することができる。   According to the gaming machine 1700 including such a medal selector, the same operation and effect as those of the above-described embodiment or the above-described modified example can be obtained. That is, it is possible to detect a fraudulent act of mistaking a legitimate game medium as being used.

以上、本実施形態の変形例及び応用例1〜3について説明したが、本実施形態の各構成と変形例の各構成と応用例1〜3各構成とは、矛盾が無い限り、任意に組み合わせることができる。   The modifications and application examples 1 to 3 of this embodiment have been described above. However, each configuration of this embodiment, each configuration of the modification, and each of application examples 1 to 3 are arbitrarily combined unless there is no contradiction. be able to.

以上、本発明に係る遊技機の実施形態、各種変形例及び応用例について説明したが、本発明はこれに限定されず、上記実施形態及び各種変形例の構成を適宜組み合わせてもよい。   The embodiments of the gaming machine according to the present invention, various modifications and application examples have been described above, but the present invention is not limited thereto, and the configurations of the above-described embodiments and various modification examples may be appropriately combined.

<まとめ>
[差枚数報知機能]
遊技媒体検出手段が備える近接センサの検知結果に基づいて、遊技媒体のカウント処理を行う第1制御部と、遊技媒体検出手段が備える通過判定手段が通路を通過する物体を撮像した画像データに基づいて通路を物体が通過したと判定したとき、遊技媒体をカウントするカウント処理を行う第2制御部と、を備える遊技機において、第1制御部が行うカウント処理の信頼性の向上が望まれている。また、第2制御部が行う各種処理の信頼性の向上が望まれている。
<Summary>
[Difference number notification function]
A first control unit that performs a process of counting game media based on a detection result of a proximity sensor included in the game medium detection unit; In a gaming machine having a second control unit that performs a counting process for counting game media when it is determined that an object has passed through the passage, it is desired to improve the reliability of the counting process performed by the first control unit. I have. Further, it is desired to improve the reliability of various processes performed by the second control unit.

本発明は、上記第1の課題を解決するためになされたものであり、本発明の第1の目的は、第1制御部及び第2制御部が行うカウント処理の信頼性の向上させることにある。   SUMMARY An advantage of some aspects of the invention is to improve reliability of a count process performed by a first control unit and a second control unit. is there.

上記第1の課題を解決するために、本発明では、以下のような構成の第1の遊技機を提供する。   In order to solve the first problem, the present invention provides a first gaming machine having the following configuration.

遊技媒体を投入する投入口(例えば、メダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、メダルセレクタ501)と、
遊技に関する制御を実行する第1制御部(例えば、主制御回路91)と、
遊技の演出に関する制御を実行する第2制御部(例えば、副制御回路101)と、
遊技媒体を貯留する貯留手段(例えば、ホッパー装置51)と、を備える遊技機であって、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部(例えば、メダルレール210)と、 前記通路を移動する物体を検知する近接センサ(例えば、ダブルフォトセンサ502)と、
前記通路を撮像する撮像手段(例えば、カメラユニット209)と、
前記撮像手段を介して得られる画像データに基づいて前記通路を物体が通過したか否かを判定する通過判定手段(例えば、制御LSI234)と、
前記通過判定手段が前記通路を物体が通過したと判定したとき、その旨を前記第2制御部へ通知する通過判定通知手段(例えば、制御LSI234)と、
前記画像データに基づいて、前記通路を通過した物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段(例えば、制御LSI234のカラー認識回路247及び画像認識DSP回路242)と、
前記通路を通過する物体を前記貯留手段に導くガイド位置と、前記物体を遊技機外に排出する排出位置との間を移動可能に設けられたガイド手段(例えば、セレクトプレート207)と、
前記ガイド手段を駆動させる駆動手段(例えば、メダルソレノイド208)と、を有し、
前記第1制御部は、
前記近接センサの検知結果に基づいて前記通路を移動する物体のカウントを行い、
遊技媒体の投入を許可する状態のときは、前記駆動手段を制御して、前記ガイド手段を前記ガイド位置に移動させ、
遊技媒体の投入を許可する状態でないときは、前記駆動手段を制御して、前記ガイド手段を前記排出位置に移動させ、
前記第2制御部は、前記通過判定通知手段からの通知に基づいて前記通路を通過した物体のカウントを行い、
前記第1制御部がカウントした値と前記第2制御部がカウントした値との差が所定の値以上のとき、エラーを報知する
ことを特徴とする遊技機。
An insertion slot (for example, a medal insertion slot 21) for inserting a game medium,
A game medium detecting means (for example, a medal selector 501) for detecting a game medium inserted from the slot,
A first control unit (for example, a main control circuit 91) that executes control related to the game,
A second control unit (for example, a sub-control circuit 101) that executes control relating to the effect of the game,
Storage means (for example, a hopper device 51) for storing game media,
The game medium detection means,
A passage forming portion (for example, a medal rail 210) for forming a passage through which the game medium passes; a proximity sensor (for example, a double photo sensor 502) for detecting an object moving in the passage;
Imaging means (for example, a camera unit 209) for imaging the passage;
A passage determination unit (for example, a control LSI 234) that determines whether an object has passed through the passage based on image data obtained through the imaging unit;
A passage determination notifying unit (for example, a control LSI 234) for notifying the second control unit when the passage determining unit determines that the object has passed through the passage;
Game medium determination means (for example, a color recognition circuit 247 and an image recognition DSP circuit 242 of the control LSI 234) for determining whether or not the object passing through the passage is a regular game medium based on the image data;
Guide means (e.g., select plate 207) movably provided between a guide position for guiding an object passing through the passage to the storage means and a discharge position for discharging the object out of the gaming machine;
Driving means (for example, a medal solenoid 208) for driving the guide means,
The first control unit includes:
Count the number of objects moving in the passage based on the detection result of the proximity sensor,
When in the state of permitting the insertion of game media, by controlling the driving means, to move the guide means to the guide position,
When not in the state of permitting the insertion of the game medium, by controlling the driving means, to move the guide means to the discharge position,
The second control unit counts the number of objects passing through the passage based on a notification from the passage determination notification unit,
A gaming machine, wherein an error is notified when a difference between a value counted by the first control unit and a value counted by the second control unit is equal to or more than a predetermined value.

前記近接センサは、前記通路を通過する物体を検知すると検知結果を出力する第1のセンサ(例えば、第1フォトセンサ503)と第2のセンサ(例えば、第2フォトセンサ504)を有し、
前記第1制御部は、前記第1のセンサの検知結果の出力と前記第2のセンサの検知結果の出力の順序が所定の順序の場合に、前記通路を移動する物体のカウントを行ってもよい。
The proximity sensor includes a first sensor (for example, a first photosensor 503) and a second sensor (for example, a second photosensor 504) that output a detection result when detecting an object passing through the passage,
The first control unit may count an object moving on the passage when an output order of the detection result of the first sensor and an output order of the detection result of the second sensor are in a predetermined order. Good.

前記第1制御部がカウントした値を記憶する第1カウント記憶手段(例えば、メインRAM95)と、
前記第2制御部がカウントした値を記憶する第2カウント記憶手段(例えば、サブRAM103)と、を備え、
前記第1カウント記憶手段及び前記第2カウント記憶手段は、それぞれ2バイトの記憶領域により構成されていてもよい。
First count storage means (for example, main RAM 95) for storing a value counted by the first control unit;
A second count storage unit (for example, a sub RAM 103) that stores a value counted by the second control unit,
The first count storage unit and the second count storage unit may each be configured by a 2-byte storage area.

上記構成の本発明の第1の遊技機では、第1制御部がカウントした値と第2制御部がカウントした値との差が所定の値以上のとき、エラーを報知する。
ここで、第1制御部がカウントした値と第2制御部がカウントした値との差が所定の値以上となる場合としては、近接センサや通過判定手段に障害が発生したこと等が考えられる。
In the first gaming machine of the present invention having the above configuration, when the difference between the value counted by the first control unit and the value counted by the second control unit is equal to or larger than a predetermined value, an error is notified.
Here, when the difference between the value counted by the first control unit and the value counted by the second control unit is equal to or more than a predetermined value, it is considered that a failure has occurred in the proximity sensor or the passage determination unit, or the like. .

このため、エラーの報知があると、遊技機の管理者(例えば、遊技ホールの従業員)は、近接センサや通過判定手段の挙動をチェックすることで、これらに生じた障害を認識することができ、障害を除去できる。このため、障害がない状態で各種処理を行うことができるので、第1制御部が行うカウント処理の信頼性の向上させることができる。また、第2制御部が行う各種処理の信頼性の向上させることができる。   For this reason, when an error is reported, the administrator of the gaming machine (for example, an employee of the gaming hall) can check the behavior of the proximity sensor and the passage determining means to recognize the trouble that has occurred in these. And remove obstacles. For this reason, since various processes can be performed in a state where there is no obstacle, the reliability of the count process performed by the first control unit can be improved. Further, the reliability of various processes performed by the second control unit can be improved.

[セレクタ監視機能]
遊技媒体をガイドするガイド手段を駆動させる駆動手段の故障や、遊技媒体が通過する通路上に異物が存在するなどの不備を早期に把握し対応することが望まれている。
[Selector monitoring function]
It is desired that the failure of the driving means for driving the guide means for guiding the game medium and the deficiency such as the presence of foreign matter on the path through which the game medium passes be ascertained and dealt with at an early stage.

本発明は、上記第2の課題を解決するためになされたものであり、本発明の第2の目的は、遊技媒体をガイドするガイド手段を駆動させる駆動手段の故障や、遊技媒体が通過する通路上の異物の存在を報知可能な遊技機を提供することにある。   SUMMARY OF THE INVENTION The present invention has been made to solve the second problem, and a second object of the present invention is to provide a mechanism for driving a guide means for guiding a game medium, or a failure of a drive means for driving the game medium. It is an object of the present invention to provide a gaming machine capable of notifying the presence of a foreign object on a passage.

上記第2の課題を解決するために、本発明では、以下のような構成の第2の遊技機を提供する。   In order to solve the second problem, the present invention provides a second gaming machine having the following configuration.

遊技媒体を投入する投入口(例えば、メダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、メダルセレクタ501)と、
遊技に関する制御を実行する第1制御部(例えば、主制御回路91)と、
遊技の演出に関する制御を実行する第2制御部(例えば、副制御回路101)と、
遊技媒体を貯留する貯留手段(例えば、ホッパー装置51)と、を備える遊技機であって、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部(例えば、メダルレール210)と、 前記通路を移動する物体を検知する近接センサ(例えば、ダブルフォトセンサ502)と、
前記通路を撮像する撮像手段(例えば、カメラユニット209)と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段(例えば、制御LSI234のカラー認識回路247及び画像認識DSP回路242)と、
前記通路を通過する物体を前記貯留手段に導くガイド位置と、前記物体を遊技機外に排出する排出位置との間を移動可能に設けられたガイド手段(例えば、セレクトプレート207)と、
前記ガイド手段を駆動させる駆動手段(例えば、メダルソレノイド208)と、を有し、
前記第1制御部は、
前記近接センサの検知結果に基づいて遊技媒体のカウントを行い、
遊技媒体の投入を許可する状態のときは、前記駆動手段を制御して、前記ガイド手段を前記ガイド位置に移動させ、
遊技媒体の投入を許可する状態でないときは、前記駆動手段を制御して、前記ガイド手段を前記排出位置に移動させ、
前記駆動手段を、前記ガイド手段が前記ガイド位置に移動するように制御しているのか、前記排出位置に移動するように制御しているのかを示す制御内容情報を出力し、
前記遊技媒体検出手段は、
前記撮像手段を介して得られる画像データに基づいて、前記制御内容情報が前記ガイド手段が前記ガイド位置に移動するように制御している旨を示すときに、前記ガイド手段が前記ガイド位置にあるか否かを判定し、且つ、前記制御内容情報が前記ガイド手段が前記排出位置に移動するように制御している旨を示すときに、前記ガイド手段が前記排出位置にあるか否かを判定する位置判定手段と、
前記位置判定手段が前記ガイド手段が前記ガイド位置にないと判定するとき、又は、前記位置判定手段が前記ガイド手段が前記排出位置にないと判定するとき、前記第2制御部にエラーを通知するエラー通知手段と、を更に有し、
前記第2制御部は、前記エラー通知手段から通知されたエラーを報知する
ことを特徴とする遊技機。
An insertion slot (for example, a medal insertion slot 21) for inserting a game medium,
A game medium detecting means (for example, a medal selector 501) for detecting a game medium inserted from the slot,
A first control unit (for example, a main control circuit 91) that executes control related to the game,
A second control unit (for example, a sub-control circuit 101) that executes control relating to the effect of the game,
Storage means (for example, a hopper device 51) for storing game media,
The game medium detection means,
A passage forming portion (for example, a medal rail 210) for forming a passage through which the game medium passes; a proximity sensor (for example, a double photo sensor 502) for detecting an object moving in the passage;
Imaging means (for example, a camera unit 209) for imaging the passage;
Game medium determination means (for example, a color recognition circuit 247 of the control LSI 234 and image recognition DSP circuit 242),
Guide means (e.g., select plate 207) movably provided between a guide position for guiding an object passing through the passage to the storage means and a discharge position for discharging the object out of the gaming machine;
Driving means (for example, a medal solenoid 208) for driving the guide means,
The first control unit includes:
The game media is counted based on the detection result of the proximity sensor,
When in the state of permitting the insertion of game media, by controlling the driving means, to move the guide means to the guide position,
When not in the state of permitting the insertion of the game medium, by controlling the driving means, to move the guide means to the discharge position,
The drive means outputs control content information indicating whether the guide means is controlled to move to the guide position or whether it is controlled to move to the discharge position,
The game medium detection means,
The guide unit is at the guide position when the control content information indicates that the guide unit is controlled to move to the guide position based on image data obtained via the imaging unit. It is determined whether or not the guide means is at the discharge position when the control content information indicates that the guide means is controlled to move to the discharge position. Position determining means for performing
When the position determining means determines that the guide means is not at the guide position, or when the position determining means determines that the guide means is not at the discharge position, an error is notified to the second control unit. Error notification means,
The gaming machine, wherein the second control unit notifies the error notified from the error notifying unit.

また、前記撮像手段を介して得られる画像データにおいて、前記通路の幅は、前記ガイド手段が前記ガイド位置にあるとき、前記ガイド手段が前記排出位置にあるときに比べて狭くなり、
前記位置判定手段は、前記撮像手段を介して得られる画像データにおける前記通路の幅(例えば、レール幅W1,W2)に基づいて、前記ガイド手段が前記ガイド位置にあるか否か、又は、前記ガイド手段が前記排出位置にあるか否か、を判定してもよい。
In the image data obtained via the imaging unit, the width of the passage is smaller when the guide unit is at the guide position than when the guide unit is at the discharge position,
The position determination unit determines whether the guide unit is at the guide position based on a width of the passage (for example, rail width W1, W2) in image data obtained via the imaging unit, or It may be determined whether the guide means is at the discharge position.

また、前記位置判定手段は、前記撮像手段を介して得られるカラー画像データをグレースケールデータに変換した画像データに基づいて、前記ガイド手段が前記ガイド位置にあるか否か、又は、前記ガイド手段が前記排出位置にあるか否か、を判定してもよい。   Further, the position determination means determines whether or not the guide means is at the guide position based on image data obtained by converting color image data obtained through the imaging means into grayscale data, or May be determined whether or not is at the discharge position.

上記構成の本発明の第2の遊技機では、第1制御部が駆動手段を、ガイド手段がガイド位置に移動するように制御しているにも関わらず、ガイド手段がガイド位置にないときにエラーが報知される。また、第1制御部が駆動手段を、ガイド手段が排出位置に移動するように制御しているにも関わらず、ガイド手段が排出位置にないときにエラーが報知される。すなわち、第1制御部からの指示に応じてガイド手段が移動していない場合に、エラーを報知することができる。   In the second gaming machine of the present invention having the above configuration, the guide unit is not at the guide position even though the first control unit controls the drive unit to move to the guide position. An error is signaled. Further, an error is notified when the guide unit is not at the discharge position, even though the first control unit controls the drive unit to move the guide unit to the discharge position. That is, an error can be reported when the guide means has not moved in response to an instruction from the first control unit.

第1制御部からの指示に応じてガイド手段が移動していない場合としては、例えば駆動手段が故障している場合が考えられる。また、例えば遊技媒体が通過する通路上に異物が存在し、ガイド手段がガイド位置に移動することを妨げている場合が考えられる。本変形例では、遊技機の管理者(例えば、遊技ホールの従業員)は、エラーの報知によって、駆動手段の故障や遊技媒体が通過する通路上の異物の存在を把握できるので、これらの不備に早期に対応することができる。   As a case where the guide means has not moved in response to an instruction from the first control unit, for example, a case where the drive means has failed may be considered. Further, for example, it is conceivable that a foreign object is present on a passage through which the game medium passes, which prevents the guide unit from moving to the guide position. In this modification, the manager of the gaming machine (for example, an employee of the gaming hall) can know the failure of the driving means and the presence of foreign matter on the passage through which the game medium passes by notifying the error. Can respond early.

[テンプレート生成処理]
遊技媒体検出手段が、通路を通過する物体を撮像した画像データと、テンプレートデータとが一致するか又は所定程度類似するか否かに基づいて、通路を通過した物体が正規の遊技媒体であるか否かを判定する場合で、テンプレートデータを生成するテンプレート生成手段を備えている場合、大多数の正規メダルの中に混入していた不正メダルに基づいてテンプレートデータが生成されてしまうことを抑制することが望まれている。
[Template generation processing]
The game medium detecting means determines whether the object passed through the passage is a legitimate game medium based on whether or not the image data obtained by imaging the object passing through the passage and the template data match or are similar to a predetermined extent. In the case of determining whether or not the template data is provided, if template generation means for generating template data is provided, it is possible to suppress generation of template data based on illegal medals mixed in the majority of regular medals. It is desired.

本発明は、上記第3の課題を解決するためになされたものであり、本発明の第3の目的は、大多数の正規メダルの中に混入していた不正メダルに基づいてテンプレートが生成されてしまうことを抑制することが可能な遊技機を提供することにある。   The present invention has been made to solve the third problem, and a third object of the present invention is to generate a template based on an illegal medal mixed in a majority of regular medals. It is an object of the present invention to provide a gaming machine capable of suppressing such a situation.

上記第3の課題を解決するために、本発明では、以下のような構成の第3の遊技機を提供する。   In order to solve the third problem, the present invention provides a third gaming machine having the following configuration.

遊技媒体を投入する投入口(例えば、メダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、メダルセレクタ201)と、を備える遊技機であって、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部(例えば、メダルレール210)と、 前記通路を撮像する撮像手段(例えば、カメラユニット209)と、
前記撮像手段が撮像した画像データに基づいて、前記通路を通過した物体が正規の遊技媒体であるか否かを判定する判定処理を行う遊技媒体判定手段(例えば、制御LSI234のカラー認識回路247及び画像認識DSP回路242)と、
判定処理に用いられるテンプレートデータを生成するテンプレート生成手段(例えば、制御LSI234のカラー認識回路247及び、画像認識アクセラレータ回路249)と、を有し、
前記遊技媒体判定手段は、前記画像データと、前記テンプレートデータとが一致するか又は所定程度類似するか否かに基づいて、前記通路を通過した物体が正規の遊技媒体であるか否かを判定し、
前記テンプレート生成手段は、複数の前記画像データを、同一又は所定程度類似する前記画像データのグループにグループ化し、同一の前記グループに属する前記画像データの数が多い順の上位所定順位内の前記グループの内で、属する前記画像データの数が所定数以上の前記グループそれぞれについて、各前記グループに属する前記画像データに基づいて前記テンプレートデータを生成する
ことを特徴とする遊技機。
An insertion slot (for example, a medal insertion slot 21) for inserting a game medium,
A game medium detecting means (for example, a medal selector 201) for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming unit (for example, a medal rail 210) that forms a passage through which a game medium passes; an imaging unit (for example, a camera unit 209) that images the passage;
Game medium determination means (for example, the color recognition circuit 247 of the control LSI 234, which performs a determination process to determine whether or not the object passing through the passage is a legitimate game medium based on image data captured by the image capturing means. Image recognition DSP circuit 242),
A template generation unit (for example, a color recognition circuit 247 and an image recognition accelerator circuit 249 of the control LSI 234) for generating template data used in the determination processing;
The game medium determination means determines whether or not the object passing through the passage is a legitimate game medium based on whether the image data matches the template data or is similar to a predetermined degree. And
The template generating means groups a plurality of the image data into groups of the image data which are the same or similar to each other by a predetermined degree, and the groups in the upper predetermined rank in the descending order of the number of the image data belonging to the same group Wherein the template data is generated based on the image data belonging to each of the groups, wherein the number of the image data belonging to each of the groups is equal to or more than a predetermined number.

また、前記投入口から投入された遊技媒体の数が特定の数(例えば、259)を超える前に、前記テンプレート生成手段によって前記画像データの数が前記所定数以上の前記グループを生成できない場合には、テンプレート異常を通知するテンプレート異常通知手段(例えば、制御LSI234)を備えてもよい。   In addition, before the number of game media inserted from the input port exceeds a specific number (for example, 259), the template generation unit may not generate the group whose image data number is equal to or more than the predetermined number. May include a template abnormality notification unit (for example, the control LSI 234) that notifies a template abnormality.

また、前記テンプレート生成手段は、
前記投入口から投入された前記遊技媒体が第1の規定数(例えば、127)のときに、前記画像データの数が前記所定数以上の前記グループの数が第1のグループ数(例えば、1又は2)の場合、又は、前記投入口から投入された前記遊技媒体が第2の規定数(例えば、259)のときに、前記画像データの数が前記所定数以上の前記グループの数が第2のグループ数(例えば、1〜4)の場合、前記テンプレートデータを生成してもよい。
Further, the template generating means includes:
When the number of the game media inserted from the insertion port is the first specified number (for example, 127), the number of the groups in which the number of the image data is equal to or more than the predetermined number is the first group number (for example, 1). Or 2), or when the number of the game media inserted from the insertion slot is the second specified number (for example, 259), the number of the groups whose image data number is equal to or more than the predetermined number is the second number. When the number of groups is 2 (for example, 1 to 4), the template data may be generated.

上記構成の本発明の第3の遊技機では、属するデータの数が所定数に満たないグループに基づいてテンプレートデータを生成することがない。このため、大多数の正規メダルの中に混入していた不正メダルに基づいてテンプレートデータが生成されてしまうことを抑制することができる。   In the third gaming machine of the present invention having the above-described configuration, template data is not generated based on a group in which the number of pieces of data does not reach a predetermined number. For this reason, it is possible to suppress template data from being generated based on an illegal medal mixed in the majority of regular medals.

[FFT刻印判定]
従来、メダル通路に2個のメダル検知用の近接センサを設け、各近接センサの出力に基づいてメダル通路を遊技用のメダルが通過したかどうかを判断することで、板状体のような器具が用いられた不正行為を検知するスロットマシンが知られている(例えば、特開2002−342814号公報参照)。また、CCDカメラを用いて、投入された不適正メダル(不正メダル)の判定を行うスロットマシンが知られている(例えば、特開2006−271462号公報参照)。
本発明の第4の目的は、正規の遊技媒体が用いられていると誤認させる不正行為の検知の精度を高めることにある。
[FFT engraving judgment]
Conventionally, two proximity sensors for detecting a medal are provided in a medal path, and it is determined whether or not a game medal has passed through a medal path based on an output of each proximity sensor, thereby providing a plate-like device. There has been known a slot machine that detects a fraudulent activity using a computer (see, for example, JP-A-2002-342814). Further, there is known a slot machine that determines an inserted improper medal (illegal medal) using a CCD camera (see, for example, JP-A-2006-271462).
A fourth object of the present invention is to improve the accuracy of detecting a fraudulent act of mistaking a legitimate game medium as being used.

上記目的を達成するために、本発明は、以下のような構成の第4の遊技機又は遊技用装置を提供する。   In order to achieve the above object, the present invention provides a fourth gaming machine or gaming machine having the following configuration.

遊技媒体を投入する投入口(例えば、後述のメダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、後述のメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部(例えば、後述のメダルレール210)と、
前記通路を撮像する撮像手段(例えば、後述のカメラユニット209)と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段(例えば、後述の制御LSI234)と、を有し、
前記遊技媒体判定手段は、
前記画像データを、直交座標画像データであり、且つ、グレースケール画像である第1画像データに変換する第1画像変換手段(例えば、後述の色変換処理を行うISP回路245)と、
前記第1画像データを極座標画像データである第2画像データに変換する第2画像変換手段(例えば、後述の極座標変換処理を行う画像認識アクセラレータ回路249)と、
前記第2画像データを所定の角度単位でフーリエ変換し第3画像データに変換する第3画像変換手段(例えば、後述のFFT変換処理を行う画像認識アクセラレータ回路249)と、
予め生成されたテンプレートデータと前記第3画像データとを比較し、比較結果を導出する比較結果導出手段(例えば、後述のFFTテンプレート比較処理を行う画像認識DSP回路242)と、を有し、
前記比較結果に基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する
ことを特徴とする遊技機。
An insertion slot (for example, a medal insertion slot 21 described later) into which a game medium is inserted,
Game medium detection means (for example, a medal selector 201 described later) for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion (for example, a medal rail 210 described later) that forms a passage through which the game medium passes;
Imaging means for imaging the passage (for example, a camera unit 209 described later);
Game medium determination means (for example, a control LSI 234 described later) for determining whether or not an object passing through the passage is a regular game medium based on image data obtained via the imaging means. ,
The game medium determination means,
A first image conversion unit (for example, an ISP circuit 245 that performs a color conversion process described below) that converts the image data into first image data that is orthogonal coordinate image data and is a grayscale image;
Second image conversion means (for example, an image recognition accelerator circuit 249 for performing a polar coordinate conversion process described later) for converting the first image data into second image data which is polar coordinate image data,
A third image transforming means (for example, an image recognition accelerator circuit 249 for performing an FFT transform process described later) for performing a Fourier transform on the second image data in a predetermined angle unit and transforming the second image data into third image data;
A comparison result deriving unit (for example, an image recognition DSP circuit 242 that performs a later-described FFT template comparison process) that compares pre-generated template data with the third image data and derives a comparison result;
A gaming machine characterized by determining whether or not an object passing through the passage is a legitimate game medium based on the comparison result.

遊技媒体を検出する遊技媒体検出手段を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部と、
前記通路を撮像する撮像手段と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段と、を有し、
前記遊技媒体判定手段は、
前記画像データを、直交座標画像データであり、且つ、グレースケール画像である第1画像データに変換する第1画像変換手段と、
前記第1画像データを極座標画像データである第2画像データに変換する第2画像変換手段と、
前記第2画像データを所定の角度単位でフーリエ変換し第3画像データに変換する第3画像変換手段と、
予め生成されたテンプレートデータと前記第3画像データとを比較し、比較結果を導出する比較結果導出手段と、を有し、
前記比較結果に基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する
ことを特徴とする遊技用装置。
A game medium detecting means for detecting a game medium,
The game medium detection means,
A passage forming portion that forms a passage through which the game medium passes;
Imaging means for imaging the passage;
Based on image data obtained via the imaging means, a game medium determining means for determining whether the object passing through the passage is a legitimate game medium,
The game medium determination means,
First image conversion means for converting the image data into first image data that is orthogonal coordinate image data and is a grayscale image;
Second image conversion means for converting the first image data into second image data which is polar coordinate image data;
Third image conversion means for performing Fourier transform on the second image data in predetermined angle units to convert the second image data into third image data;
Comparing the template data generated in advance with the third image data and deriving a comparison result,
A game device, comprising: determining whether an object passing through the passage is a legitimate game medium based on the comparison result.

上記構成の本発明の第4の遊技機又は遊技用装置では、画像全体の比較だけでなく、角度単位での個別の比較が容易にできるので、正規の遊技媒体が用いられていると誤認させる不正行為の検知の精度が高まる。   In the fourth gaming machine or gaming machine of the present invention having the above-described configuration, not only the comparison of the entire image but also the individual comparison in the unit of angle can be easily performed, so that it is erroneously recognized that the regular game medium is used. The accuracy of fraud detection is increased.

[3次元判定]
また、上記第4の目的を達成するために、本発明は、以下のような構成の第5の遊技機又は遊技用装置を提供する。
[Three-dimensional judgment]
In order to achieve the fourth object, the present invention provides a fifth gaming machine or gaming machine having the following configuration.

遊技媒体を投入する投入口(例えば、後述のメダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、後述のメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部(例えば、後述のメダルレール210)と、
前記通路を撮像する撮像手段(例えば、後述のカメラユニット209)と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段(例えば、後述の制御LSI234)と、を有し、
前記遊技媒体判定手段は、
前記画像データを、それぞれ異なる第1画像データ(例えば、後述の勾配平均画像データ)、第2画像データ(例えば、後述のHOGデータ)及び第3画像データ(例えば、後述のFFTデータ)に変換する画像変換手段(例えば、後述の画像認識アクセラレータ回路249)と、
予め生成された第1テンプレートデータと前記第1画像データとを比較し、第1比較結果を導出する第1比較結果導出手段(例えば、後述の勾配平均画像テンプレート比較処理を行う画像認識DSP回路242)と、
予め生成された第2テンプレートデータと前記第2画像データとを比較し、第2比較結果を導出する第2比較結果導出手段(例えば、後述のHOGテンプレート比較処理を行う画像認識DSP回路242)と、
予め生成された第3テンプレートデータと前記第3画像データとを比較し、第3比較結果を導出する第3比較結果導出手段(例えば、後述のFFTテンプレート比較処理を行う画像認識DSP回路242)と、を有し、
前記第1比較結果、前記第2比較結果及び前記第3比較結果と、予め設定した判定閾値と、に基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する
ことを特徴とする遊技機。
An insertion slot (for example, a medal insertion slot 21 described later) into which a game medium is inserted,
Game medium detection means (for example, a medal selector 201 described later) for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion (for example, a medal rail 210 described later) that forms a passage through which the game medium passes;
Imaging means for imaging the passage (for example, a camera unit 209 described later);
Game medium determination means (for example, a control LSI 234 described later) for determining whether or not an object passing through the passage is a regular game medium based on image data obtained via the imaging means. ,
The game medium determination means,
The image data is converted into different first image data (for example, gradient average image data described later), second image data (for example, HOG data described later), and third image data (for example, FFT data described later), respectively. Image conversion means (for example, an image recognition accelerator circuit 249 described later);
A first comparison result deriving unit that compares the first template data generated in advance with the first image data and derives a first comparison result (for example, an image recognition DSP circuit 242 that performs a gradient average image template comparison process described later) )When,
A second comparison result deriving unit (for example, an image recognition DSP circuit 242 that performs a HOG template comparison process described later) that compares the previously generated second template data with the second image data and derives a second comparison result; ,
A third comparison result deriving unit (for example, an image recognition DSP circuit 242 that performs a later-described FFT template comparison process) that compares the previously generated third template data with the third image data and derives a third comparison result; , And
Determining whether an object passing through the passage is a legitimate game medium based on the first comparison result, the second comparison result, the third comparison result, and a predetermined determination threshold value. A gaming machine characterized by the following.

遊技媒体を検出する遊技媒体検出手段を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部と、
前記通路を撮像する撮像手段と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段と、を有し、
前記遊技媒体判定手段は、
前記画像データを、それぞれ異なる第1画像データ、第2画像データ及び第3画像データに変換する画像変換手段と、
予め生成された第1テンプレートデータと前記第1画像データとを比較し、第1比較結果を導出する第1比較結果導出手段と、
予め生成された第2テンプレートデータと前記第2画像データとを比較し、第2比較結果を導出する第2比較結果導出手段と、
予め生成された第3テンプレートデータと前記第3画像データとを比較し、第3比較結果を導出する第3比較結果導出手段と、を有し、
前記第1比較結果、前記第2比較結果及び前記第3比較結果と、予め設定した判定閾値と、に基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する
ことを特徴とする遊技用装置。
A game medium detecting means for detecting a game medium,
The game medium detection means,
A passage forming portion that forms a passage through which the game medium passes;
Imaging means for imaging the passage;
Based on image data obtained via the imaging means, a game medium determining means for determining whether the object passing through the passage is a legitimate game medium,
The game medium determination means,
Image conversion means for converting the image data into different first image data, second image data, and third image data,
First comparison result deriving means for comparing the first template data generated in advance with the first image data and deriving a first comparison result;
A second comparison result deriving unit that compares a second template data generated in advance with the second image data and derives a second comparison result;
A third comparison result deriving unit that compares a third template data generated in advance with the third image data and derives a third comparison result;
Determining whether an object passing through the passage is a legitimate game medium based on the first comparison result, the second comparison result, the third comparison result, and a predetermined determination threshold value. A gaming device characterized by the following.

また、前記第1画像データは、前記画像データを回転させて累積した勾配平均画像データであり、前記第2画像データは、前記画像データをHOG(Histograms of Oriented Gradients)変換したHOGデータであり、前記第3画像データは、前記画像データをフーリエ変換したフーリエ変換データあってもよい。   The first image data is gradient average image data obtained by rotating the image data and accumulated, and the second image data is HOG data obtained by converting the image data into Histograms of Oriented Gradients (HOG). The third image data may be Fourier transform data obtained by Fourier transforming the image data.

上記構成の本発明の第6の遊技機又は遊技用装置によれば、1つの判定対象に対し、異なる3種類のテンプレート比較処理の結果に基づいて刻印の判定を行うことができる。このため、判定の精度が向上し、正規の遊技媒体が用いられていると誤認させる不正行為の検知の精度が高まる。   According to the sixth gaming machine or gaming machine of the present invention having the above-described configuration, it is possible to determine the marking of one determination target based on the results of three different types of template comparison processing. For this reason, the accuracy of the determination is improved, and the accuracy of the detection of a fraudulent act of mistaking that a legitimate game medium is used is increased.

[係数更新処理]
また、上記第4の目的を達成するために、本発明は、以下のような構成の第6の遊技機又は遊技用装置を提供する。
[Coefficient update processing]
In order to achieve the fourth object, the present invention provides a sixth gaming machine or gaming machine having the following configuration.

遊技媒体を投入する投入口(例えば、後述のメダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、後述のメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部(例えば、後述のメダルレール210)と、
前記通路を撮像する撮像手段(例えば、後述のカメラユニット209)と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段(例えば、後述の制御LSI234)と、を有し、
前記遊技媒体判定手段は、
前記画像データを、それぞれ異なる第1画像データ(例えば、後述の勾配平均画像データ)、第2画像データ(例えば、後述のHOGデータ)及び第3画像データ(例えば、後述のFFTデータ)に変換する画像変換手段(例えば、後述の画像認識アクセラレータ回路249)と、
予め生成された第1テンプレートデータと前記第1画像データとを比較し、第1比較結果を導出する第1比較結果導出手段(例えば、後述の勾配平均画像テンプレート比較処理を行う画像認識DSP回路242)と、
予め生成された第2テンプレートデータと前記第2画像データとを比較し、第2比較結果を導出する第2比較結果導出手段(例えば、後述のHOGテンプレート比較処理を行う画像認識DSP回路242)と、
予め生成された第3テンプレートデータと前記第3画像データとを比較し、第3比較結果を導出する第3比較結果導出手段(例えば、後述のFFTテンプレート比較処理を行う画像認識DSP回路242)と、を有し、
前記第1比較結果、前記第2比較結果及び前記第3比較結果と、予め設定した判定閾値(例えば、後述の係数D)と、に基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定し、
前記第1比較結果、前記第2比較結果及び前記第3比較結果のそれぞれの平均及び偏差に基づいて、前記判定閾値を更新する
ことを特徴とする遊技機。
An insertion slot (for example, a medal insertion slot 21 described later) into which a game medium is inserted,
Game medium detection means (for example, a medal selector 201 described later) for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion (for example, a medal rail 210 described later) that forms a passage through which the game medium passes;
Imaging means for imaging the passage (for example, a camera unit 209 described later);
Game medium determination means (for example, a control LSI 234 described later) for determining whether or not an object passing through the passage is a regular game medium based on image data obtained via the imaging means. ,
The game medium determination means,
The image data is converted into different first image data (for example, gradient average image data described later), second image data (for example, HOG data described later), and third image data (for example, FFT data described later), respectively. Image conversion means (for example, an image recognition accelerator circuit 249 described later);
A first comparison result deriving unit that compares the first template data generated in advance with the first image data and derives a first comparison result (for example, an image recognition DSP circuit 242 that performs a gradient average image template comparison process described later) )When,
A second comparison result deriving unit (for example, an image recognition DSP circuit 242 that performs a HOG template comparison process described later) that compares the previously generated second template data with the second image data and derives a second comparison result; ,
A third comparison result deriving unit (for example, an image recognition DSP circuit 242 that performs a later-described FFT template comparison process) that compares the previously generated third template data with the third image data and derives a third comparison result; , And
Based on the first comparison result, the second comparison result, the third comparison result, and a predetermined determination threshold (for example, a coefficient D to be described later), an object passing through the passage is a regular game medium. Judge whether there is,
A gaming machine, wherein the determination threshold is updated based on respective averages and deviations of the first comparison result, the second comparison result, and the third comparison result.

遊技媒体を検出する遊技媒体検出手段を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部と、
前記通路を撮像する撮像手段と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段と、を有し、
前記遊技媒体判定手段は、
前記画像データを、それぞれ異なる第1画像データ、第2画像データ及び第3画像データに変換する画像変換手段と、
予め生成された第1テンプレートデータと前記第1画像データとを比較し、第1比較結果を導出する第1比較結果導出手段と、
予め生成された第2テンプレートデータと前記第2画像データとを比較し、第2比較結果を導出する第2比較結果導出手段と、
予め生成された第3テンプレートデータと前記第3画像データとを比較し、第3比較結果を導出する第3比較結果導出手段と、を有し、
前記第1比較結果、前記第2比較結果及び前記第3比較結果と、予め設定した判定閾値と、に基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定し、
前記第1比較結果、前記第2比較結果及び前記第3比較結果のそれぞれの平均及び偏差に基づいて、前記判定閾値を更新する
ことを特徴とする遊技用装置。
A game medium detecting means for detecting a game medium,
The game medium detection means,
A passage forming portion that forms a passage through which the game medium passes;
Imaging means for imaging the passage;
Based on image data obtained via the imaging means, a game medium determining means for determining whether the object passing through the passage is a legitimate game medium,
The game medium determination means,
Image conversion means for converting the image data into different first image data, second image data, and third image data,
First comparison result deriving means for comparing the first template data generated in advance with the first image data and deriving a first comparison result;
A second comparison result deriving unit that compares a second template data generated in advance with the second image data and derives a second comparison result;
A third comparison result deriving unit that compares a third template data generated in advance with the third image data and derives a third comparison result;
Based on the first comparison result, the second comparison result and the third comparison result, and a predetermined determination threshold, determine whether the object passing through the passage is a legitimate game medium,
A gaming device, wherein the determination threshold is updated based on respective averages and deviations of the first comparison result, the second comparison result, and the third comparison result.

また、前記遊技媒体判定手段は、前記通路を通過する物体が正規の遊技媒体であると所定回数判定したときに、前記判定閾値を更新してもよい。   Further, the game medium determination means may update the determination threshold when the object passing through the passage is determined to be a legitimate game medium a predetermined number of times.

上記構成の本発明の第7の遊技機又は遊技用装置によれば、経年劣化などによって、刻印に変化が生じた場合でも、正規メダルの現状の状態に応じて、判定に用いる閾値を含む各種係数を更新することができる。このため、各種判定の結果の精度を保つことができる。したがって、正規の遊技媒体が用いられていると誤認させる不正行為の検知の精度を高めることができる。   According to the seventh gaming machine or gaming machine of the present invention having the above-described configuration, even if the engraving changes due to aging or the like, various types of threshold including the threshold value used for the determination according to the current state of the regular medal are provided. The coefficients can be updated. For this reason, the accuracy of the results of various determinations can be maintained. Therefore, it is possible to increase the accuracy of detecting a fraudulent act that mistakenly determines that a legitimate game medium is being used.

[テンプレート更新処理]
上記第4の目的を達成するために、本発明は、以下のような構成の第7の遊技機又は遊技用装置を提供する。
[Template update process]
In order to achieve the fourth object, the present invention provides a seventh gaming machine or gaming machine having the following configuration.

遊技媒体を投入する投入口(例えば、後述のメダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、後述のメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部(例えば、後述のメダルレール210)と、
前記通路を撮像する撮像手段(例えば、後述のカメラユニット209)と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段(例えば、後述の制御LSI234)と、を有し、
前記遊技媒体判定手段は、
前記画像データを、それぞれ異なる第1画像データ(例えば、後述の勾配平均画像データ)、第2画像データ(例えば、後述のHOGデータ)及び第3画像データ(例えば、後述のFFTデータ)に変換する画像変換手段(例えば、後述の画像認識アクセラレータ回路249)と、
前記第1画像データ、前記第2画像データ及び前記第3画像データのそれぞれに対応する第1テンプレートデータ、第2テンプレートデータ及び第3テンプレートデータを生成するテンプレート生成手段と、
前記第1テンプレートデータと前記第1画像データとを比較し、第1比較結果を導出する第1比較結果導出手段(例えば、後述の勾配平均画像テンプレート比較処理を行う画像認識DSP回路242)と、
前記第2テンプレートデータと前記第2画像データとを比較し、第2比較結果を導出する第2比較結果導出手段(例えば、後述のHOGテンプレート比較処理を行う画像認識DSP回路242)と、
前記第3テンプレートデータと前記第3画像データとを比較し、第3比較結果を導出する第3比較結果導出手段(例えば、後述のFFTテンプレート比較処理を行う画像認識DSP回路242)と、を有し、
前記第1比較結果、前記第2比較結果及び前記第3比較結果と、予め設定した判定閾値(例えば、後述の係数D)と、に基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定し、
前記テンプレート生成手段は、正規の遊技媒体と判定された遊技媒体に係る前記第1画像データ、前記第2画像データ及び前記第3画像データと、前記第1テンプレートデータ、前記第2テンプレートデータ及び前記第3テンプレートデータと、を合成するテンプレート更新処理を行う
ことを特徴とする遊技機。
An insertion slot (for example, a medal insertion slot 21 described later) into which a game medium is inserted,
Game medium detection means (for example, a medal selector 201 described later) for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion (for example, a medal rail 210 described later) that forms a passage through which the game medium passes;
Imaging means for imaging the passage (for example, a camera unit 209 described later);
Game medium determination means (for example, a control LSI 234 described later) for determining whether or not an object passing through the passage is a regular game medium based on image data obtained via the imaging means. ,
The game medium determination means,
The image data is converted into different first image data (for example, gradient average image data described later), second image data (for example, HOG data described later), and third image data (for example, FFT data described later), respectively. Image conversion means (for example, an image recognition accelerator circuit 249 described later);
Template generating means for generating first template data, second template data and third template data respectively corresponding to the first image data, the second image data and the third image data;
A first comparison result deriving unit that compares the first template data with the first image data and derives a first comparison result (for example, an image recognition DSP circuit 242 that performs a gradient average image template comparison process described below);
A second comparison result deriving unit that compares the second template data with the second image data and derives a second comparison result (for example, an image recognition DSP circuit 242 that performs a HOG template comparison process described below);
A third comparison result deriving unit that compares the third template data with the third image data to derive a third comparison result (for example, an image recognition DSP circuit 242 that performs an FFT template comparison process described later); And
Based on the first comparison result, the second comparison result, the third comparison result, and a predetermined determination threshold (for example, a coefficient D to be described later), an object passing through the passage is a regular game medium. Judge whether there is,
The template generation unit may be configured to control the first image data, the second image data, and the third image data of a game medium determined to be a legitimate game medium, the first template data, the second template data, A gaming machine characterized by performing a template updating process for combining the third template data with the third template data.

遊技媒体検出手段を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部と、
前記通路を撮像する撮像手段と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段と、を有し、
前記遊技媒体判定手段は、
前記画像データを、それぞれ異なる第1画像データ、第2画像データ及び第3画像データに変換する画像変換手段と、
前記第1画像データ、前記第2画像データ及び前記第3画像データのそれぞれに対応する第1テンプレートデータ、第2テンプレートデータ及び第3テンプレートデータを生成するテンプレート生成手段と、
前記第1テンプレートデータと前記第1画像データとを比較し、第1比較結果を導出する第1比較結果導出手段と、
前記第2テンプレートデータと前記第2画像データとを比較し、第2比較結果を導出する第2比較結果導出手段と、
前記第3テンプレートデータと前記第3画像データとを比較し、第3比較結果を導出する第3比較結果導出手段と、を有し、
前記第1比較結果、前記第2比較結果及び前記第3比較結果と、予め設定した判定閾値と、に基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定し、
前記テンプレート生成手段は、正規の遊技媒体と判定された遊技媒体に係る前記第1画像データ、前記第2画像データ及び前記第3画像データと、前記第1テンプレートデータ、前記第2テンプレートデータ及び前記第3テンプレートデータと、を合成するテンプレート更新処理を行う
ことを特徴とする遊技用装置。
Game media detecting means,
The game medium detection means,
A passage forming portion that forms a passage through which the game medium passes;
Imaging means for imaging the passage;
Based on image data obtained via the imaging means, a game medium determining means for determining whether the object passing through the passage is a legitimate game medium,
The game medium determination means,
Image conversion means for converting the image data into different first image data, second image data, and third image data,
Template generating means for generating first template data, second template data and third template data respectively corresponding to the first image data, the second image data and the third image data;
A first comparison result deriving unit that compares the first template data with the first image data and derives a first comparison result;
A second comparison result deriving unit that compares the second template data with the second image data and derives a second comparison result;
A third comparison result deriving unit that compares the third template data with the third image data and derives a third comparison result;
Based on the first comparison result, the second comparison result and the third comparison result, and a predetermined determination threshold, determine whether the object passing through the passage is a legitimate game medium,
The template generation unit may be configured to control the first image data, the second image data, and the third image data of a game medium determined to be a legitimate game medium, the first template data, the second template data, A gaming device for performing a template update process for combining the third template data with the third template data.

また、前記テンプレート生成手段は、前記遊技媒体判定手段が、正規の遊技媒体と判定した遊技媒体が所定枚数に達する毎に、正規の遊技媒体と判定した遊技媒体に係る前記第1画像データ、前記第2画像データ及び前記第3画像データのそれぞれを加重平均化し、加重平均化したそれぞれと、前記第1テンプレートデータ、前記第2テンプレートデータ及び前記第3テンプレートデータと、を合成するテンプレート更新処理を行ってもよい。   In addition, the template generation means, wherein the game medium determination means, each time the number of game media determined to be legitimate game media reaches a predetermined number, the first image data of the game media determined to be legitimate game media, A template update process for weighting and averaging each of the second image data and the third image data, and combining the weighted average with the first template data, the second template data, and the third template data. May go.

上記構成の本発明の第7の遊技機又は遊技用装置によれば、テンプレートを逐次更新する。このため、例えば遊技機への投入や、払出し、また、遊技店での洗浄などで劣化し、刻印が当初よりも目立たなくなった場合でも、正規メダルの現状の状態に応じてテンプレートを更新できる。このため、各種判定の結果の精度を保つことができる。したがって、正規の遊技媒体が用いられていると誤認させる不正行為の検知の精度が高まる。   According to the seventh gaming machine or gaming machine of the present invention having the above configuration, the template is updated successively. For this reason, even if it is deteriorated due to, for example, insertion into a gaming machine, payout, or washing at a game store, and the engraving becomes less noticeable than at the beginning, the template can be updated according to the current state of regular medals. For this reason, the accuracy of the results of various determinations can be maintained. Therefore, the accuracy of detecting a fraudulent act of mistaking a legitimate game medium as being used is improved.

[カバー開放検出]
従来、CCDカメラを用いて、投入された不適正メダル(不正メダル)の判定を行うスロットマシンが知られている(例えば、特開2006−271462号公報参照)。
しかしながら、上記のスロットマシンでは、メダルセレクタのCCDカメラが撮像する箇所、投入されたメダルやCCDカメラ自体などに、不要な光が当たると、撮像画像に基づく、投入されたメダルが正規メダルか否かの判定の精度が、低下する虞がある。また、そのために、不要な光を検出するセンサ等を設けると、メダルセレクタの部品点数が増え製造コストが上がってしまう。
本発明の第5の目的は、製造コストを抑制するとともに、正規メダルか否かの判定の精度が低下することを防止できる遊技機又は遊技用装置を提供することにある。
上記第5の目的を達成するために、本発明は、以下のような構成の第8の遊技機又は遊技用装置を提供する。
[Cover open detection]
2. Description of the Related Art Conventionally, there has been known a slot machine that uses a CCD camera to determine an inserted improper medal (illegal medal) (see, for example, JP-A-2006-271462).
However, in the above-described slot machine, if unnecessary light shines on a place where the CCD camera of the medal selector captures an image, an inserted medal or the CCD camera itself, etc., based on the captured image, the inserted medal is determined to be a regular medal. There is a possibility that the accuracy of the determination is reduced. If a sensor or the like for detecting unnecessary light is provided for that purpose, the number of parts of the medal selector increases and the manufacturing cost increases.
A fifth object of the present invention is to provide a gaming machine or a gaming device capable of suppressing the manufacturing cost and preventing the accuracy of determining whether a medal is a regular medal being reduced.
In order to achieve the fifth object, the present invention provides an eighth gaming machine or gaming machine having the following configuration.

遊技媒体を投入する投入口(例えば、後述のメダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、後述のメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部(例えば、後述のメダルレール210)と、
前記通路を撮像する撮像手段(例えば、後述のカメラユニット209)と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段(例えば、後述の制御LSI234)と、
前記画像データに予め設定されている複数の通過判定領域について遊技媒体の有無を判定し、時系列的に連続する複数の前記画像データにおける前記複数の通過判定領域の遊技媒体の有無の変化態様が所定の態様と一致する場合に遊技媒体をカウントするカウント手段(例えば、後述のメダルカウント回路246)と、を有し、
前記遊技媒体検出手段の所定の位置には、前記遊技媒体判定手段の判定に不要な光を遮る遮光手段(例えば、後述のカバー部材240)が配置され、
前記カウント手段は、前記遮光手段が所定の位置に配置されているか否かを判断する遮光判断手段を有し、
前記遮光判断手段は、所定の前記通過判定領域の輝度の変化を所定時間以上検出した場合に、前記遮光手段が所定の位置に配置されていない異常を検知する(例えば、後述のカバー開放検出処理)
ことを特徴とする遊技機。
An insertion slot (for example, a medal insertion slot 21 described later) into which a game medium is inserted,
Game medium detection means (for example, a medal selector 201 described later) for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion (for example, a medal rail 210 described later) that forms a passage through which the game medium passes;
Imaging means for imaging the passage (for example, a camera unit 209 described later);
A game medium determination unit (for example, a control LSI 234 described later) that determines whether an object passing through the passage is a regular game medium based on image data obtained through the imaging unit;
The presence / absence of a game medium is determined for a plurality of pass determination areas set in advance in the image data, and a change mode of the presence / absence of a game medium in the plurality of pass determination areas in the plurality of chronologically continuous image data is determined. Counting means (for example, a medal counting circuit 246 to be described later) for counting the game media when the game medium matches the predetermined mode,
At a predetermined position of the game medium detecting unit, a light blocking unit (for example, a cover member 240 described later) that blocks light unnecessary for the determination by the game medium determining unit is disposed.
The counting means has light-shielding determination means for determining whether the light-shielding means is arranged at a predetermined position,
The light-shielding determination means detects an abnormality in which the light-shielding means is not arranged at a predetermined position when detecting a change in luminance of the predetermined passage determination area for a predetermined time or more (for example, a cover opening detection process described later). )
A gaming machine characterized by that:

遊技媒体検出手段を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部と、
前記通路を撮像する撮像手段と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段と、
前記画像データに予め設定されている複数の通過判定領域について遊技媒体の有無を判定し、時系列的に連続する複数の前記画像データにおける前記複数の通過判定領域の遊技媒体の有無の変化態様が所定の態様と一致する場合に遊技媒体をカウントするカウント手段と、を有し、
前記遊技媒体検出手段の所定の位置には、前記遊技媒体判定手段の判定に不要な光を遮る遮光手段が配置され、
前記カウント手段は、前記遮光手段が所定の位置に配置されているか否かを判断する遮光判断手段を有し、
前記遮光判断手段は、所定の前記通過判定領域の輝度の変化を所定時間以上検出した場合に、前記遮光手段が所定の位置に配置されていない異常を検知する
ことを特徴とする遊技用装置。
Game media detecting means,
The game medium detection means,
A passage forming portion that forms a passage through which the game medium passes;
Imaging means for imaging the passage;
Game medium determination means for determining whether an object passing through the passage is a regular game medium based on image data obtained via the imaging means,
The presence / absence of a game medium is determined for a plurality of pass determination areas set in advance in the image data, and a change mode of the presence / absence of a game medium in the plurality of pass determination areas in the plurality of chronologically continuous image data is determined. Counting means for counting the number of game media when a predetermined mode is matched,
At a predetermined position of the game medium detection means, a light blocking means for blocking light unnecessary for the determination of the game medium determination means is arranged,
The counting means has light-shielding determination means for determining whether the light-shielding means is arranged at a predetermined position,
The gaming machine, wherein the light-shielding determining means detects an abnormality in which the light-shielding means is not arranged at a predetermined position when a change in luminance of the predetermined passage determination area is detected for a predetermined time or more.

上記構成の本発明の第8の遊技機又は遊技用装置によれば、製造コストを上げることなく、正規メダルか否かの判定の精度が低下することを防止できる。すなわち、判定に不要な光が当たるのを防止できるので、判定の結果の精度を保つことができる。したがって、正規の遊技媒体が用いられていると誤認させる不正行為の検知の精度が高まる。
また、撮像手段を介して得られる画像データに基づいて、遮光手段が所定の位置に配置されているか否かを判断するので、当該判断のために他のセンサを取り付ける必要がない。このため、部品点数を減らすことができ、製造コストの増加を抑制できる。また、画像データに基づく判断のため、専用のセンサを設ける場合に比べて、当該判断の条件を容易に変更することができる。
According to the eighth gaming machine or gaming machine of the present invention having the above-described configuration, it is possible to prevent the accuracy of determining whether or not a medal is a valid medal without increasing the manufacturing cost. That is, it is possible to prevent unnecessary light from being applied to the determination, so that the accuracy of the determination result can be maintained. Therefore, the accuracy of detecting a fraudulent act of mistaking a legitimate game medium as being used is increased.
In addition, since it is determined whether or not the light shielding unit is arranged at a predetermined position based on image data obtained via the imaging unit, it is not necessary to attach another sensor for the determination. For this reason, the number of parts can be reduced, and an increase in manufacturing cost can be suppressed. In addition, the conditions for the determination can be changed more easily than when a dedicated sensor is provided for the determination based on the image data.

ところで、特開2006−271462号公報には、CCDカメラを用いて、投入された不適正メダル(不正メダル)の判定を行うスロットマシンが記載されている。また、このスロットマシンは、不適正メダル(不正メダル)の貯留量が所定量に達した場合にエラーを報知する。
しかしながら、上記公報に記載されたスロットマシンよりも効率的に、投入された不正メダルが所定量を超えたことを、報知可能な遊技機が望まれている。
本発明の第6の目的は、効率的に、投入された不正メダルが所定量を超えたことを、報知可能な遊技機及び遊技用装置を提供することにある。
上記第6の目的を達成するために、以下のような構成の遊技機及び遊技用装置を提供する。
Japanese Patent Application Laid-Open Publication No. 2006-271462 describes a slot machine that uses a CCD camera to determine an inserted improper medal (illegal medal). Further, this slot machine notifies an error when the storage amount of inappropriate medals (illegal medals) reaches a predetermined amount.
However, there is a demand for a gaming machine capable of notifying that the inserted illegal medals have exceeded a predetermined amount more efficiently than the slot machine described in the above publication.
A sixth object of the present invention is to provide a gaming machine and a gaming device capable of efficiently notifying that inserted illegal medals have exceeded a predetermined amount.
In order to achieve the sixth object, there is provided a gaming machine and a gaming device having the following configurations.

制御手段(例えば、後述の副制御回路101)と、
各種画像を表示するための表示手段(例えば、後述の液晶表示装置11)と、
遊技媒体を投入する投入口(例えば、後述のメダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、後述のメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部(例えば、後述のメダルレール210)と、
前記通路を通過する物体を検出する通過物体検出手段(例えば、後述のカメラユニット209)と、
前記通過物体検出手段を介して得られるデータに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段(例えば、後述の制御LSI234)と、
前記遊技媒体判定手段の判定結果を前記制御手段に出力する判定結果出力手段と、を有し、
前記制御手段は、
前記判定結果出力手段から出力された前記判定結果を、予め定められた記憶可能数記憶する判定結果記憶領域(例えば、後述のキュー)を有する記憶部(例えば、後述のサブRAM103)と、
前記判定結果記憶領域に最新の判定結果を記憶する時に、前記判定結果記憶領域に前記記憶可能数の前記判定結果が記憶されていた場合には、前記判定結果記憶領域に記憶されている前記判定結果の内の最古の判定結果を前記判定結果記憶領域から出力し、且つ、前記最新の判定結果を記憶する判定結果記憶手段と、を有し、
前記判定結果記憶手段が前記最古の判定結果を出力したことを契機に、前記判定結果記憶領域に記憶されている前記記憶可能数の前記判定結果に含まれている正規の遊技媒体でないとの前記判定結果の数が所定数以上かを判定し、所定数以上と判定する場合に前記表示手段によって異常の発生を報知する(例えば、後述の判定完了コマンド受信時処理のステップS152〜S155)
ことを特徴とする遊技機。
Control means (for example, a sub-control circuit 101 described later);
A display unit for displaying various images (for example, a liquid crystal display device 11 described later);
An insertion slot (for example, a medal insertion slot 21 described later) into which a game medium is inserted,
Game medium detection means (for example, a medal selector 201 described later) for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion (for example, a medal rail 210 described later) that forms a passage through which the game medium passes;
A passing object detecting means (for example, a camera unit 209 described later) for detecting an object passing through the passage,
A game medium determination unit (for example, a control LSI 234 described later) that determines whether an object passing through the passage is a regular game medium based on data obtained through the passing object detection unit;
A determination result output unit that outputs a determination result of the game medium determination unit to the control unit,
The control means,
A storage unit (for example, a sub-RAM 103 to be described later) having a determination result storage area (for example, a queue to be described later) that stores the determination result output from the determination result output unit to a predetermined storable number,
When the latest determination result is stored in the determination result storage area, if the determination result of the storable number is stored in the determination result storage area, the determination stored in the determination result storage area is performed. A determination result storage unit that outputs the oldest determination result among the results from the determination result storage area, and stores the latest determination result;
When the judgment result storage means outputs the oldest judgment result, it is determined that the game is not a legitimate game medium included in the judgment result of the storable number stored in the judgment result storage area. It is determined whether or not the number of the determination results is equal to or more than a predetermined number, and when it is determined that the number is equal to or more than the predetermined number, the occurrence of an abnormality is notified by the display unit (for example, steps S152 to S155 in a process of receiving a determination completion command described later).
A gaming machine characterized by that:

制御手段と、
遊技媒体を検出する遊技媒体検出手段と、
を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部と、
前記通路を通過する物体を検出する通過物体検出手段と、
前記通過物体検出手段を介して得られるデータに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段と、
前記遊技媒体判定手段の判定結果を前記制御手段に出力する判定結果出力手段と、を有し、
前記制御手段は、
前記判定結果出力手段から出力された前記判定結果を、予め定められた記憶可能数記憶する判定結果記憶領域を有する記憶部と、
前記判定結果記憶領域に最新の判定結果を記憶する時に、前記判定結果記憶領域に前記記憶可能数の前記判定結果が記憶されていた場合には、前記判定結果記憶領域に記憶されている前記判定結果の内の最古の判定結果を前記判定結果記憶領域から出力し、且つ、前記最新の判定結果を記憶する判定結果記憶手段と、を有し、
前記判定結果記憶手段が前記最古の判定結果を出力したことを契機に、前記判定結果記憶領域に記憶されている前記記憶可能数の前記判定結果に含まれている正規の遊技媒体でないとの前記判定結果の数が所定数以上かを判定し、所定数以上と判定する場合に異常の発生を報知する
ことを特徴とする遊技用装置。
Control means;
Game medium detection means for detecting a game medium,
With
The game medium detection means,
A passage forming portion that forms a passage through which the game medium passes;
Passing object detecting means for detecting an object passing through the passage,
Game medium determination means for determining whether an object passing through the passage is a regular game medium, based on data obtained through the passing object detection means,
A determination result output unit that outputs a determination result of the game medium determination unit to the control unit,
The control means,
A storage unit having a determination result storage area for storing the determination result output from the determination result output unit, a predetermined storable number,
When the latest determination result is stored in the determination result storage area, if the determination result of the storable number is stored in the determination result storage area, the determination stored in the determination result storage area is performed. A determination result storage unit that outputs the oldest determination result among the results from the determination result storage area, and stores the latest determination result;
When the judgment result storage means outputs the oldest judgment result, it is determined that the game is not a legitimate game medium included in the judgment result of the storable number stored in the judgment result storage area. It is determined whether or not the number of the determination results is equal to or more than a predetermined number, and when it is determined that the number is equal to or more than the predetermined number, an occurrence of an abnormality is notified.

上記構成の遊技機又は遊技用装置、効率的に、投入された不正メダルが所定量を超えたことを、報知することができる。   The gaming machine or the gaming device having the above configuration can efficiently notify that the inserted illegal medals have exceeded a predetermined amount.

ところで、特開2006−271462号公報には、CCDカメラを用いて、投入された不適正メダル(不正メダル)の判定を行うスロットマシンが記載されている。
しかしながら、上記公報に記載されたスロットマシンでは、CCDカメラ(撮像手段)の撮像範囲外で行われる不正行為や、画像処理で判断不可能な不正行為の発生を認識することができなかった。
本発明の第7の目的は、撮像手段の撮像範囲外で行われる不正行為や、画像処理で判断不可能な不正行為の発生を認識可能な遊技機を提供することにある。
上記第7の目的を達成するために、以下のような構成の遊技機を提供する。
Japanese Patent Application Laid-Open Publication No. 2006-271462 describes a slot machine that uses a CCD camera to determine an inserted improper medal (illegal medal).
However, the slot machine described in the above publication could not recognize the occurrence of fraudulent acts performed outside the imaging range of the CCD camera (imaging means) or the occurrence of fraudulent acts that could not be determined by image processing.
A seventh object of the present invention is to provide a gaming machine capable of recognizing a fraudulent activity performed outside the imaging range of the imaging means or an occurrence of a fraudulent activity that cannot be determined by image processing.
In order to achieve the seventh object, there is provided a gaming machine having the following configuration.

各種画像を表示するための表示手段(例えば、後述の液晶表示装置11)と、
第1制御手段(例えば、後述の主制御回路91)と、
第2制御手段(例えば、後述の副制御回路101)と、
遊技媒体を投入する投入口(例えば、後述のメダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、後述のメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部(例えば、後述のメダルレール210)と、
前記通路を撮像する撮像手段(例えば、後述のカメラユニット209)と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段(例えば、後述の制御LSI234)と、
前記遊技媒体判定手段の判定結果を前記第2制御手段に出力する判定結果出力手段と、
前記通路を物体が通過したことを検知する物体検知手段(例えば、後述のダブルフォトセンサ502)と、
前記物体検知手段の検知結果を前記第1制御手段に出力する検知結果出力手段と、を有し、
前記第1制御手段は、前記検知結果出力手段から出力された前記検知結果を第2制御手段に送信する検知結果送信手段を有し、
前記第2制御手段は、
前記判定結果出力手段から受信した前記判定結果に基づいて前記遊技媒体の数をカウントする判定結果カウント手段と、
前記検知結果送信手段から送信された前記検知結果に基づいて前記遊技媒体の数をカウントする検知結果カウント手段と、を有し、
前記判定結果カウント手段がカウントした数と、前記検知結果カウント手段がカウントした数との差が所定値以上のときに異常の発生を前記表示手段によって報知する(例えば、後述のメダル投入コマンド受信時処理のステップS214,S215)
ことを特徴とする遊技機。
A display unit for displaying various images (for example, a liquid crystal display device 11 described later);
First control means (for example, a main control circuit 91 described later);
Second control means (for example, a sub-control circuit 101 described later);
An insertion slot (for example, a medal insertion slot 21 described later) into which a game medium is inserted,
Game medium detection means (for example, a medal selector 201 described later) for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion (for example, a medal rail 210 described later) that forms a passage through which the game medium passes;
Imaging means for imaging the passage (for example, a camera unit 209 described later);
A game medium determination unit (for example, a control LSI 234 described later) that determines whether an object passing through the passage is a regular game medium based on image data obtained through the imaging unit;
A determination result output unit that outputs a determination result of the game medium determination unit to the second control unit,
An object detection unit (for example, a double photo sensor 502 described later) for detecting that an object has passed through the passage,
Detection result output means for outputting a detection result of the object detection means to the first control means,
The first control means has a detection result transmitting means for transmitting the detection result output from the detection result output means to a second control means,
The second control means includes:
A determination result counting unit that counts the number of the game media based on the determination result received from the determination result output unit,
A detection result counting unit that counts the number of the game media based on the detection result transmitted from the detection result transmitting unit,
When the difference between the number counted by the determination result counting means and the number counted by the detection result counting means is equal to or greater than a predetermined value, the occurrence of an abnormality is notified by the display means (for example, when a medal insertion command described later is received). (Steps S214 and S215 of the process)
A gaming machine characterized by that:

上記構成の遊技機によれば、撮像手段の撮像範囲外で行われる不正行為や、画像処理で判断不可能な不正行為の発生を認識できる。   According to the gaming machine having the above-described configuration, it is possible to recognize the occurrence of an illegal act performed outside the imaging range of the imaging unit or an illegal act that cannot be determined by the image processing.

ところで、特開2006−271462号公報には、CCDカメラを用いて、投入された不適正メダル(不正メダル)の判定を行うスロットマシンが記載されている。
しかしながら、上記公報に記載されたスロットマシンでは、実際にメダルをメダル投入口に投入することなくクレジットを増加させる不正行為(いわゆるクレマンゴト)の発生を認識することができなかった。
本発明の第8の目的は、メダルをメダル投入口に投入することなくクレジットを増加させる不正行為の発生を認識可能な遊技機を提供することにある。
上記第8の目的を達成するために、以下のような構成の遊技機を提供する。
Japanese Patent Application Laid-Open Publication No. 2006-271462 describes a slot machine that uses a CCD camera to determine an inserted improper medal (illegal medal).
However, the slot machine described in the above publication cannot recognize the occurrence of fraudulent acts (so-called Clemangot) that increase credits without actually inserting medals into a medal insertion slot.
An eighth object of the present invention is to provide a gaming machine capable of recognizing the occurrence of a fraudulent act of increasing credit without inserting a medal into a medal slot.
In order to achieve the eighth object, there is provided a gaming machine having the following configuration.

各種画像を表示するための表示手段(例えば、後述の液晶表示装置11)と、
第1制御手段(例えば、後述の主制御回路91)と、
第2制御手段(例えば、後述の副制御回路101)と、
遊技媒体を投入する投入口(例えば、後述のメダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、後述のメダルセレクタ201)と、
投入された前記遊技媒体を貯留するための貯留手段(例えば、後述のホッパー装置51)と、
投入された前記遊技媒体を遊技者へ返却して前記遊技媒体を貯留するための返却貯留手段(例えば、後述のメダルトレイユニット34)と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部(例えば、後述のメダルレール210)と、
前記通路を通過する物体を検出する通過物体検出手段(例えば、後述のカメラユニット209)と、
前記通過物体検出手段を介して得られるデータに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段(例えば、後述の制御LSI234)と、
前記遊技媒体判定手段の判定結果を第2制御手段に出力する判定結果出力手段と、
前記貯留手段又は前記返却貯留手段のいずれか一方に前記遊技媒体を導くための経路を転換するための転換手段(例えば、後述のメダルソレノイド208)と、を有し、
前記第1制御手段は、
前記転換手段を制御するための転換制御手段(例えば、後述のメインCPU93)と、
前記転換制御手段が制御した制御状態を前記第2制御手段に送信する制御状態送信手段(例えば、後述のメインCPU93)と、を有し、
前記第2制御手段は、
前記判定結果出力手段から出力された前記判定結果の内で正規の遊技媒体であるとの判定結果の数を計数する計数手段(例えば、後述のサブCPU102)と、
前記制御状態送信手段から送信された制御状態が、前記貯留手段へ制御された状態で、前記計数手段が計数する数が所定数を超える場合に前記表示手段によって異常を報知する異常報知手段(例えば、後述の判定完了コマンド受信時処理のステップS157,S159,S160を行うサブCPU102)と、を有する
ことを特徴とする遊技機。
A display unit for displaying various images (for example, a liquid crystal display device 11 described later);
First control means (for example, a main control circuit 91 described later);
Second control means (for example, a sub-control circuit 101 described later);
An insertion slot (for example, a medal insertion slot 21 described later) into which a game medium is inserted,
A game medium detecting means (for example, a medal selector 201 described later) for detecting a game medium inserted from the insertion port,
Storage means (for example, a hopper device 51 described later) for storing the inserted game media,
Return storage means (for example, a medal tray unit 34 described later) for returning the inserted game media to the player and storing the game media,
The game medium detection means,
A passage forming portion (for example, a medal rail 210 described later) that forms a passage through which the game medium passes;
A passing object detecting means (for example, a camera unit 209 described later) for detecting an object passing through the passage,
A game medium determination unit (for example, a control LSI 234 described later) that determines whether an object passing through the passage is a regular game medium based on data obtained through the passing object detection unit;
A determination result output unit that outputs a determination result of the game medium determination unit to a second control unit;
Conversion means (for example, a medal solenoid 208 described later) for changing a path for guiding the game medium to one of the storage means and the return storage means,
The first control means includes:
Conversion control means (for example, a main CPU 93 described later) for controlling the conversion means,
Control state transmitting means (for example, a main CPU 93 to be described later) for transmitting a control state controlled by the conversion control means to the second control means,
The second control means includes:
Counting means (for example, a sub-CPU 102 to be described later) for counting the number of determination results indicating that the game medium is a legitimate game medium among the determination results output from the determination result output means;
When the control state transmitted from the control state transmitting unit is controlled by the storage unit, when the number counted by the counting unit exceeds a predetermined number, an abnormality notifying unit that notifies an abnormality by the display unit (for example, , A sub CPU 102 that performs steps S157, S159, and S160 of a process of receiving a determination completion command described later).

上記構成の遊技機によれば、メダルをメダル投入口に投入することなくクレジットを増加させる不正行為の発生を認識できる。   According to the gaming machine having the above configuration, it is possible to recognize the occurrence of a fraudulent act of increasing credit without inserting a medal into the medal slot.

ところで、特開2006−271462号公報には、CCDカメラを用いて、投入された不適正メダル(不正メダル)の判定を行うスロットマシンが記載されている。
上記公報に記載されたスロットマシンのような遊技機において、CCDカメラを備える撮像ユニットに係る不正行為には、撮像ユニットや撮像ユニットに接続された各種ユニットのいずれか一方の再起動(リブート)を伴う不正行為がある。しかしながら、上記公報に記載されたスロットマシンでは、再起動を伴う不正行為を認識することが困難であった。
本発明の第9の目的は、再起動を伴う不正行為を認識可能な遊技機及び遊技用装置を提供することにある。
上記第9の目的を達成するために、以下のような構成の遊技機及び遊技用装置を提供する。
Japanese Patent Application Laid-Open Publication No. 2006-271462 describes a slot machine that uses a CCD camera to determine an inserted improper medal (illegal medal).
In a gaming machine such as the slot machine described in the above-mentioned publication, an illegal act related to an imaging unit having a CCD camera includes a restart (reboot) of one of the imaging unit and various units connected to the imaging unit. There is accompanying misconduct. However, in the slot machine described in the above publication, it has been difficult to recognize a fraudulent act involving a restart.
A ninth object of the present invention is to provide a gaming machine and a gaming device capable of recognizing a fraudulent act involving a restart.
In order to achieve the ninth object, a gaming machine and a gaming device having the following configurations are provided.

各種画像を表示するための表示手段(例えば、後述の液晶表示装置11)と、
制御手段(例えば、後述の副制御回路101)と、
遊技媒体を投入する投入口(例えば、後述のメダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、後述のメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部(例えば、後述のメダルレール210)と、
前記通路を通過する物体を検出する通過物体検出手段(例えば、後述のカメラユニット209)と、
前記通過物体検出手段を介して得られるデータに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段(例えば、後述の制御LSI234)と、
前記遊技媒体検出手段が起動した回数である第1の回数を記憶する第1起動回数記憶手段(例えば、後述のSRAM243)と、
前記第1起動回数記憶手段が記憶する前記第1の回数を前記制御手段に送信する送信手段(例えば、後述の制御LSI234)と、を有し、
前記制御手段は、
前記制御手段が起動した回数である第2の回数を記憶する第2起動回数記憶手段(例えば、後述のサブRAM103)を有し、
前記送信手段によって送信された前記第1の回数と、前記第2起動回数記憶手段が記憶する前記第2の回数との差が閾値を越えた場合に前記表示手段によって異常の発生を報知する(例えば、後述の起動回数判定処理のステップS192,S193を行うサブCPU102)
ことを特徴とする遊技機。
A display unit for displaying various images (for example, a liquid crystal display device 11 described later);
Control means (for example, a sub-control circuit 101 described later);
An insertion slot (for example, a medal insertion slot 21 described later) into which a game medium is inserted,
Game medium detection means (for example, a medal selector 201 described later) for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion (for example, a medal rail 210 described later) that forms a passage through which the game medium passes;
A passing object detecting means (for example, a camera unit 209 described later) for detecting an object passing through the passage,
A game medium determination unit (for example, a control LSI 234 described later) that determines whether an object passing through the passage is a regular game medium based on data obtained through the passing object detection unit;
First activation number storage means (for example, an SRAM 243 to be described later) for storing a first number of times that the game medium detection means has been activated;
Transmission means (for example, a control LSI 234 described later) for transmitting the first number stored in the first activation number storage means to the control means,
The control means,
A second activation number storage unit (for example, a sub-RAM 103 described later) that stores a second number that is the number of times the control unit has been activated;
When the difference between the first number transmitted by the transmission unit and the second number stored in the second activation number storage unit exceeds a threshold, the display unit notifies the occurrence of an abnormality ( For example, the sub CPU 102 that performs steps S192 and S193 of the number-of-activations determination process described below
A gaming machine characterized by that:

制御手段と、
遊技媒体を検出する遊技媒体検出手段と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部と、
前記通路を通過する物体を検出する通過物体検出手段と、
前記通過物体検出手段を介して得られるデータに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段と、
前記遊技媒体検出手段が起動した回数である第1の回数を記憶する第1起動回数記憶手段と、
前記第1起動回数記憶手段が記憶する前記第1の回数を前記制御手段に送信する送信手段と、を有し、
前記制御手段は、
前記制御手段が起動した回数である第2の回数を記憶する第2起動回数記憶手段を有し、
前記送信手段によって送信された前記第1の回数と、前記第2起動回数記憶手段が記憶する前記第2の回数との差が閾値を越えた場合に異常の発生を報知する
ことを特徴とする遊技用装置。
Control means;
Game medium detection means for detecting a game medium,
The game medium detection means,
A passage forming portion that forms a passage through which the game medium passes;
Passing object detecting means for detecting an object passing through the passage,
Game medium determination means for determining whether an object passing through the passage is a regular game medium, based on data obtained through the passing object detection means,
First activation number storage means for storing a first number of times that the game medium detection means has been activated,
Transmitting means for transmitting the first number stored in the first activation number storage means to the control means,
The control means,
A second activation number storage unit that stores a second number that is the number of activations of the control unit,
When the difference between the first number transmitted by the transmission means and the second number stored in the second activation number storage means exceeds a threshold, the occurrence of an abnormality is notified. Gaming equipment.

上記構成の遊技機及び遊技用装置によれば、再起動を伴う不正行為を認識できる。   According to the gaming machine and the gaming machine having the above-described configurations, it is possible to recognize an improper act involving a restart.

とろこで、特開2006−271462号公報には、CCDカメラを用いて、投入された不適正メダル(不正メダル)の判定を行うスロットマシンが記載されている。
上記公報に記載されたスロットマシンのような遊技機において、CCDカメラを備える撮像ユニットに係る不正行為には、撮像ユニットの各種設定をリセットする処理である初期化処理を伴う不正行為がある。しかしながら、上記公報に記載されたスロットマシンでは、初期化処理を伴う不正行為を認識することが困難であった。
本発明の第10の目的は、初期化処理を伴う不正行為を認識可能な遊技機及び遊技用装置を提供することにある。
上記第10の目的を達成するために、以下のような構成の遊技機及び遊技用装置を提供する。
Japanese Patent Application Laid-Open No. 2006-271462 discloses a slot machine that uses a CCD camera to determine an inserted improper medal (illegal medal).
In a gaming machine such as the slot machine described in the above-mentioned publication, the fraudulent activity relating to the imaging unit having the CCD camera includes a fraudulent activity involving an initialization process for resetting various settings of the imaging unit. However, in the slot machine described in the above publication, it has been difficult to recognize an improper act involving an initialization process.
A tenth object of the present invention is to provide a gaming machine and a gaming device capable of recognizing a fraud involving an initialization process.
In order to achieve the tenth object, a gaming machine and a gaming device having the following configurations are provided.

各種画像を表示するための表示手段(例えば、後述の液晶表示装置11)と、
制御手段(例えば、後述の副制御回路101)と、
遊技媒体を投入する投入口(例えば、後述のメダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、後述のメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部(例えば、後述のメダルレール210)と、
前記通路を通過する物体を検出する通過物体検出手段(例えば、後述のカメラユニット209)と、
前記通過物体検出手段を介して得られるデータに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段(例えば、後述の制御LSI234)と、
前記遊技媒体判定手段に制御されて情報を記憶可能な媒体記憶手段(例えば、後述のSRAM243)と、
前記媒体記憶手段の所定の領域を初期化するための操作を行う初期化操作手段(例えば、後述の初期化スイッチ)と、を有し、
前記媒体記憶手段は、初期化情報格納領域を有し、
前記遊技媒体判定手段は、
前記初期化操作手段が操作されたことに基づいて前記媒体記憶手段の所定の領域の初期化処理を行い、且つ、初期化処理が行われたことを示す初期化情報を前記媒体記憶手段の前記初期化情報格納領域に記憶する初期化処理手段と、
前記媒体記憶手段の前記初期化情報格納領域に記憶された前記初期化情報を含む情報を前記制御手段に送信する第1送信手段(例えば、後述の起動完了コマンドを送信する制御LSI234)と、
起動時に、前記媒体記憶手段の前記初期化情報格納領域に記憶された前記初期化情報を含む情報を前記制御手段に送信する第2送信手段(例えば、後述のメダルセレクタ無操作コマンドを送信する制御LSI234)と、を有し、
前記制御手段は、前記第1送信手段又は前記第2送信手段から受信した情報に前記初期化情報が含まれていた場合には、前記表示手段によって前記媒体記憶手段における所定の領域の初期化が行われたことを報知する(例えば、後述の起動完了コマンド受信時処理のステップS143及びメダルセレクタ無操作コマンド受信時処理のステップS182を行うサブCPU102)
ことを特徴とする遊技機。
A display unit for displaying various images (for example, a liquid crystal display device 11 described later);
Control means (for example, a sub-control circuit 101 described later);
An insertion slot (for example, a medal insertion slot 21 described later) into which a game medium is inserted,
Game medium detection means (for example, a medal selector 201 described later) for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion (for example, a medal rail 210 described later) that forms a passage through which the game medium passes;
A passing object detecting means (for example, a camera unit 209 described later) for detecting an object passing through the passage,
A game medium determination unit (for example, a control LSI 234 described later) that determines whether an object passing through the passage is a regular game medium based on data obtained through the passing object detection unit;
Medium storage means (for example, an SRAM 243 described later) capable of storing information under the control of the game medium determination means,
Initialization operation means for performing an operation for initializing a predetermined area of the medium storage means (for example, an initialization switch described later),
The medium storage unit has an initialization information storage area,
The game medium determination means,
Initialization processing of a predetermined area of the medium storage means is performed based on the operation of the initialization operation means, and initialization information indicating that the initialization processing has been performed is stored in the medium storage means. Initialization processing means for storing in an initialization information storage area;
A first transmission unit (for example, a control LSI 234 that transmits a start completion command described later) that transmits information including the initialization information stored in the initialization information storage area of the medium storage unit to the control unit;
A second transmission unit that transmits information including the initialization information stored in the initialization information storage area of the medium storage unit to the control unit at the time of activation (for example, a control that transmits a medal selector non-operation command described later) LSI 234), and
When the initialization information is included in the information received from the first transmission unit or the second transmission unit, the control unit initializes a predetermined area in the medium storage unit by the display unit. Notify that the operation has been performed (for example, the sub-CPU 102 that performs step S143 of the process of receiving a startup completion command described later and step S182 of the process of receiving a non-operational medal selector command).
A gaming machine characterized by that:

制御手段と、
遊技媒体を投入する投入口と、
遊技媒体を検出する遊技媒体検出手段と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部と、
前記通路を通過する物体を検出する通過物体検出手段と、
前記通過物体検出手段を介して得られるデータに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段と、
前記遊技媒体判定手段に制御されて情報を記憶可能な媒体記憶手段と、
前記媒体記憶手段の所定の領域を初期化するための操作を行う初期化操作手段と、を有し、
前記媒体記憶手段は、初期化情報格納領域を有し、
前記遊技媒体判定手段は、
前記初期化操作手段が操作されたことに基づいて前記媒体記憶手段の所定の領域の初期化処理を行い、且つ、初期化処理が行われたことを示す初期化情報を前記媒体記憶手段の前記初期化情報格納領域に記憶する初期化処理手段と、
前記媒体記憶手段の前記初期化情報格納領域に記憶された前記初期化情報を含む情報を前記制御手段に送信する第1送信手段と、
起動時に、前記媒体記憶手段の前記初期化情報格納領域に記憶された前記初期化情報を含む情報を前記制御手段に送信する第2送信手段と、を有し、
前記制御手段は、前記第1送信手段又は前記第2送信手段から受信した情報に前記初期化情報が含まれていた場合には、前記媒体記憶手段における所定の領域の初期化が行われたことを報知する
ことを特徴とする遊技用装置。
Control means;
An input port for inputting game media,
Game medium detection means for detecting a game medium,
The game medium detection means,
A passage forming portion that forms a passage through which the game medium passes;
Passing object detecting means for detecting an object passing through the passage,
Game medium determination means for determining whether an object passing through the passage is a regular game medium, based on data obtained through the passing object detection means,
Medium storage means capable of storing information under the control of the game medium determination means,
Initialization operation means for performing an operation for initializing a predetermined area of the medium storage means,
The medium storage unit has an initialization information storage area,
The game medium determination means,
Initialization processing of a predetermined area of the medium storage means is performed based on the operation of the initialization operation means, and initialization information indicating that the initialization processing has been performed is stored in the medium storage means. Initialization processing means for storing in an initialization information storage area;
A first transmission unit that transmits information including the initialization information stored in the initialization information storage area of the medium storage unit to the control unit;
At the time of activation, a second transmission means for transmitting information including the initialization information stored in the initialization information storage area of the medium storage means to the control means,
The control unit, when the initialization information is included in the information received from the first transmission unit or the second transmission unit, that a predetermined area in the medium storage unit has been initialized A gaming device that informs the player of a game.

上記構成の遊技機及び遊技用装置によれば、初期化処理を伴う不正行為を認識できる。   According to the gaming machine and the gaming machine configured as described above, it is possible to recognize an improper act involving the initialization process.

ところで、特開2006−271462号公報には、CCDカメラを用いて、投入された不適正メダル(不正メダル)の判定を行うスロットマシンが記載されている。   Japanese Patent Application Laid-Open No. 2006-271462 describes a slot machine that uses a CCD camera to determine an inserted improper medal (illegal medal).

上記公報に記載されたスロットマシンのような遊技機において、CCDカメラを備える撮像ユニットに係る不正行為には、撮像ユニットに係る各種設定の有効・無効を切り換えるスイッチの不正操作を伴う不正行為がある。しかしながら、上記公報に記載されたスロットマシンでは、このような不正操作を伴う不正行為を認識することが困難であった。
本発明の第11の目的は、各種設定の有効・無効を切り換えるスイッチの不正操作を伴う不正行為を認識可能な遊技機及び遊技用装置を提供することにある。
上記第11の目的を達成するために、以下のような構成の遊技機及び遊技用装置を提供する。
In a gaming machine such as the slot machine described in the above-mentioned publication, the misconduct related to the imaging unit including the CCD camera includes a misconduct involving an illegal operation of a switch for switching between validity and invalidation of various settings related to the imaging unit. . However, in the slot machine described in the above publication, it is difficult to recognize such misconduct involving illegal operation.
An eleventh object of the present invention is to provide a gaming machine and a gaming device capable of recognizing an illegal act involving an illegal operation of a switch for switching between validity and invalidity of various settings.
In order to achieve the eleventh object, a gaming machine and a gaming device having the following configurations are provided.

各種画像を表示するための表示手段(例えば、後述の液晶表示装置11)と、
制御手段(例えば、後述の副制御回路101)と、
遊技媒体を投入する投入口(例えば、後述のメダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、後述のメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部(例えば、後述のメダルレール210)と、
前記通路を通過する物体を検出する通過物体検出手段(例えば、後述のカメラユニット209)と、
前記通過物体検出手段を介して得られるデータに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段(例えば、後述の制御LSI234)と、
前記遊技媒体判定手段の判定を有効又は無効に選択する選択手段(例えば、後述の色判定スイッチ及び刻印判定スイッチ)と、
前記選択手段の選択状態を前記制御手段に送信する状態送信手段(例えば、後述の制御LSI234)と、を有し、
前記制御手段は、
前回の電源投入時における前記選択手段の前記選択状態を記憶する第1状態記憶手段(例えば、後述の第1スイッチ情報記憶領域)と、
前記第1状態記憶手段に記憶された前記選択状態と、前記状態送信手段から受信した前記選択状態とを比較し、一致するか判定する選択状態比較手段(例えば、後述の起動完了コマンド受信時処理のステップS145を行うサブCPU102)と、を備え、
前記選択状態比較手段によって、前記第1状態記憶手段に記憶された前記選択状態と、前記状態送信手段から受信した前記選択状態とが一致しないと判定されたとき、前記表示手段によって判定結果を報知する(例えば、後述の起動完了コマンド受信時処理のステップS146を行うサブCPU102)
ことを特徴とする遊技機。
A display unit for displaying various images (for example, a liquid crystal display device 11 described later);
Control means (for example, a sub-control circuit 101 described later);
An insertion slot (for example, a medal insertion slot 21 described later) into which a game medium is inserted,
Game medium detection means (for example, a medal selector 201 described later) for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion (for example, a medal rail 210 described later) that forms a passage through which the game medium passes;
A passing object detecting means (for example, a camera unit 209 described later) for detecting an object passing through the passage,
A game medium determination unit (for example, a control LSI 234 described later) that determines whether an object passing through the passage is a regular game medium based on data obtained through the passing object detection unit;
Selection means (for example, a color determination switch and an engraving determination switch to be described later) for selecting whether the determination by the game medium determination means is valid or invalid;
State transmitting means (for example, a control LSI 234 described later) for transmitting a selection state of the selecting means to the control means,
The control means,
First state storage means (for example, a first switch information storage area described later) for storing the selection state of the selection means at the time of previous power-on,
A selection state comparison unit that compares the selected state stored in the first state storage unit with the selection state received from the state transmission unit and determines whether they match (for example, a start completion command reception process described later) Sub-CPU 102 that performs step S145).
When the selected state comparing means determines that the selected state stored in the first state storage means does not match the selected state received from the state transmitting means, the display means notifies the determination result. (For example, the sub-CPU 102 that performs step S146 of the process at the time of receiving the activation completion command described later)
A gaming machine characterized by that:

制御手段と、
遊技媒体を検出する遊技媒体検出手段と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部と、
前記通路を通過する物体を検出する通過物体検出手段と、
前記通過物体検出手段を介して得られるデータに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段と、
前記遊技媒体判定手段の判定を有効又は無効に選択する選択手段と、
前記選択手段の選択状態を前記制御手段に送信する状態送信手段と、を有し、
前記制御手段は、
前回の電源投入時における前記選択手段の前記選択状態を記憶する第1状態記憶手段と、
前記第1状態記憶手段に記憶された前記選択状態と、前記状態送信手段から受信した前記選択状態とを比較し、一致するか判定する選択状態比較手段と、を備え、
前記選択状態比較手段によって、前記第1状態記憶手段に記憶された前記選択状態と、前記状態送信手段から受信した前記選択状態とが一致しないと判定されたとき、判定結果を報知する
ことを特徴とする遊技用装置。
Control means;
Game medium detection means for detecting a game medium,
The game medium detection means,
A passage forming portion that forms a passage through which the game medium passes;
Passing object detecting means for detecting an object passing through the passage,
Game medium determination means for determining whether an object passing through the passage is a regular game medium, based on data obtained through the passing object detection means,
Selecting means for selecting the validity or invalidity of the determination of the game medium determination means,
State transmitting means for transmitting the selected state of the selecting means to the control means,
The control means,
First state storage means for storing the selected state of the selection means at the time of previous power-on;
Comparing the selected state stored in the first state storage unit with the selected state received from the state transmitting unit, and selecting whether or not the selected state matches the selected state;
When the selected state comparing unit determines that the selected state stored in the first state storage unit does not match the selected state received from the state transmitting unit, a determination result is notified. A gaming device.

上記構成の遊技機及び遊技用装置によれば、各種設定の有効・無効を切り換えるスイッチを不正に操作することを伴う不正行為を認識できる。   According to the gaming machine and the gaming machine having the above-described configuration, it is possible to recognize an improper act involving an illegal operation of a switch for switching between validity and invalidity of various settings.

ところで、特開2006−271462号公報には、CCDカメラを用いて、投入された不適正メダル(不正メダル)の判定を行うスロットマシンが記載されている。
上記公報に記載されたスロットマシンのような遊技機において、CCDカメラを備える撮像ユニットに係る不正行為には、撮像ユニットや撮像ユニットに接続された各種ユニットのいずれか一方の再起動(リブート)を伴う不正行為がある。しかしながら、上記公報に記載されたスロットマシンでは、再起動を伴う不正行為を認識することが困難であった。
本発明の第12の目的は、再起動を伴う不正行為を認識可能な遊技機及び遊技用装置を提供することにある。
上記第12の目的を達成するために、以下のような構成の遊技機及び遊技用装置を提供する。
Japanese Patent Application Laid-Open Publication No. 2006-271462 describes a slot machine that uses a CCD camera to determine an inserted improper medal (illegal medal).
In a gaming machine such as the slot machine described in the above-mentioned publication, an illegal act related to an imaging unit having a CCD camera includes a restart (reboot) of one of the imaging unit and various units connected to the imaging unit. There is accompanying misconduct. However, in the slot machine described in the above publication, it has been difficult to recognize a fraudulent act involving a restart.
A twelfth object of the present invention is to provide a gaming machine and a gaming device capable of recognizing a fraudulent act involving a restart.
In order to achieve the twelfth object, a gaming machine and a gaming device having the following configurations are provided.

各種画像を表示するための表示手段(例えば、後述の液晶表示装置11)と、
制御手段(例えば、後述の副制御回路101)と、
遊技媒体を投入する投入口(例えば、後述のメダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、後述のメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部(例えば、後述のメダルレール210)と、
前記通路を通過する物体を検出する通過物体検出手段(例えば、後述のカメラユニット209)と、
前記通過物体検出手段を介して得られるデータに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段(例えば、後述の制御LSI234)と、を備え、
前記遊技媒体判定手段は、
前記制御手段に各種コマンドを送信するコマンド送信手段と、
起動後に前記制御手段に送信したコマンドの数を累積カウントする送信コマンド数カウント手段と、を有し、
前記各種コマンドには、前記制御手段から所定のコマンドを受信したときに、当該コマンドを正常に受信したことを示すACKコマンドを含み、
前記コマンド送信手段は、前記制御手段に送信する前記各種コマンドに、前記送信コマンド数カウント手段が累積カウントしたカウントの値を示すカウント情報を含んで送信し、
前記制御手段は、
受信した前記各種コマンドに含まれている前記カウント情報を記憶するカウント情報記憶手段(例えば、後述のサブRAM103)と、
前記カウント情報記憶手段が記憶する前回受信したカウント情報に含まれている前記カウント情報に1を加算した値と、今回受信した前記各種コマンドに含まれている前記カウント情報が示す値と、が一致するか否かを判定する判定手段(例えば、後述のサブCPU102)と、を有し、
前記判定手段が一致しないと判定する場合、前記表示手段によって異常を報知する
ことを特徴とする遊技機。
A display unit for displaying various images (for example, a liquid crystal display device 11 described later);
Control means (for example, a sub-control circuit 101 described later);
An insertion slot (for example, a medal insertion slot 21 described later) into which a game medium is inserted,
Game medium detection means (for example, a medal selector 201 described later) for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion (for example, a medal rail 210 described later) that forms a passage through which the game medium passes;
A passing object detecting means (for example, a camera unit 209 described later) for detecting an object passing through the passage,
Game medium determining means (for example, a control LSI 234 described later) for determining whether or not an object passing through the passage is a regular game medium based on data obtained via the passing object detecting means. ,
The game medium determination means,
Command transmission means for transmitting various commands to the control means,
Transmission command number counting means for cumulatively counting the number of commands transmitted to the control means after startup,
The various commands include, when receiving a predetermined command from the control means, an ACK command indicating that the command has been normally received,
The command transmission unit transmits the various commands to be transmitted to the control unit, including count information indicating the value of the count that the transmission command number counting unit has accumulated,
The control means,
Count information storage means (for example, a sub-RAM 103 described later) for storing the count information included in the received various commands,
The value obtained by adding 1 to the count information contained in the previously received count information stored in the count information storage means matches the value indicated by the count information contained in the various commands received this time. Determining means (for example, a sub CPU 102 described later) for determining whether to perform
A gaming machine characterized in that when the determination means determines that they do not match, an abnormality is notified by the display means.

制御手段と、
遊技媒体を検出する遊技媒体検出手段と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部と、
前記通路を通過する物体を検出する通過物体検出手段と、
前記通過物体検出手段を介して得られるデータに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段と、を備え、
前記遊技媒体判定手段は、
前記制御手段に各種コマンドを送信するコマンド送信手段と、
起動後に前記制御手段に送信したコマンドの数を累積カウントする送信コマンド数カウント手段と、を有し、
前記各種コマンドには、前記制御手段から所定のコマンドを受信したときに、当該コマンドを正常に受信したことを示すACKコマンドを含み、
前記コマンド送信手段は、前記制御手段に送信する前記各種コマンドに、前記送信コマンド数カウント手段が累積カウントしたカウントの値を示すカウント情報を含んで送信し、
前記制御手段は、
受信した前記各種コマンドに含まれている前記カウント情報を記憶するカウント情報記憶手段と、
前記カウント情報記憶手段が記憶する前回受信したカウント情報に含まれている前記カウント情報に1を加算した値と、今回受信した前記各種コマンドに含まれている前記カウント情報が示す値と、が一致するか否かを判定する判定手段と、を有し、
前記判定手段が一致しないと判定する場合、異常を報知する
ことを特徴とする遊技用装置。
Control means;
Game medium detection means for detecting a game medium,
The game medium detection means,
A passage forming portion that forms a passage through which the game medium passes;
Passing object detecting means for detecting an object passing through the passage,
Game medium determination means for determining whether or not an object passing through the passage is a regular game medium, based on data obtained through the passing object detection means,
The game medium determination means,
Command transmission means for transmitting various commands to the control means,
Transmission command number counting means for cumulatively counting the number of commands transmitted to the control means after startup,
The various commands include, when receiving a predetermined command from the control means, an ACK command indicating that the command has been normally received,
The command transmission unit transmits the various commands to be transmitted to the control unit, including count information indicating the value of the count that the transmission command number counting unit has accumulated,
The control means,
Count information storage means for storing the count information included in the received various commands,
The value obtained by adding 1 to the count information contained in the previously received count information stored in the count information storage means matches the value indicated by the count information contained in the various commands received this time. Determining means for determining whether or not to perform
A gaming machine, wherein when the determining means determines that they do not match, an abnormality is notified.

上記構成の遊技機及び遊技用装置によれば、再起動を伴う不正行為を認識できる。   According to the gaming machine and the gaming machine having the above-described configurations, it is possible to recognize an improper act involving a restart.

ところで、特開2006−271462号公報には、CCDカメラを用いて、投入された不適正メダル(不正メダル)の判定を行うスロットマシンが記載されている。
上記公報に記載されたスロットマシンのような遊技機において、CCDカメラを備える撮像ユニット、すなわち投入されたメダルが正規メダルか否かを判定するユニットにエラーが生じた場合に、当該エラーを確実に認識することが望まれている。
本発明の第13の目的は、投入されたメダルが正規メダルか否かを判定するユニットに生じたエラーを確実に認識可能な遊技機及び遊技用装置を提供することにある。
上記第13の目的を達成するために、以下のような構成の遊技機及び遊技用装置を提供する。
Japanese Patent Application Laid-Open Publication No. 2006-271462 describes a slot machine that uses a CCD camera to determine an inserted improper medal (illegal medal).
In a gaming machine such as the slot machine described in the above publication, when an error occurs in an imaging unit including a CCD camera, that is, a unit that determines whether or not a inserted medal is a regular medal, the error is reliably detected. It is desired to recognize.
A thirteenth object of the present invention is to provide a gaming machine and a gaming device capable of reliably recognizing an error that has occurred in a unit that determines whether or not a inserted medal is a regular medal.
In order to achieve the thirteenth object, a gaming machine and a gaming device having the following configurations are provided.

各種画像を表示するための表示手段(例えば、後述の液晶表示装置11)と、
制御手段(例えば、後述の副制御回路101)と、
遊技媒体を投入する投入口(例えば、後述のメダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、後述のメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部(例えば、後述のメダルレール210)と、
前記通路を通過する物体を検出する通過物体検出手段(例えば、後述のカメラユニット209)と、
前記通過物体検出手段を介して得られるデータに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段(例えば、後述の制御LSI234)と、
前記遊技媒体判定手段に制御されて情報を記憶可能な媒体記憶手段(例えば、後述のSRAM243)と、を備え、
前記遊技媒体判定手段は、
前記遊技媒体検出手段の異常を検出し、検出した異常示す異常情報を前記媒体記憶手段に記憶する異常検出手段と、
前記異常検出手段が異常を検出したことに基づいて前記媒体記憶手段に記憶された異常情報を前記制御手段に送信する第1送信手段(例えば、後述のメダルセレクタエラーコマンドを送信する制御LSI234)と、
前記媒体記憶手段に記憶された異常情報を前記制御手段に所定の周期で送信する第2送信手段(例えば、後述のメダルセレクタ無操作コマンドを送信する制御LSI234)と、を有し、
前記制御手段は、
前記第1送信手段又は前記第2送信手段から送信された異常情報を受信する異常情報受信手段(例えば、後述のサブCPU102)と、
所定の操作が行われた場合に、異常の解除情報を前記遊技媒体検出手段に送信する解除情報送信手段(例えば、後述のサブCPU102)と、を有し、
前記異常情報を受信したとき、前記表示手段によって異常の解除を示唆する示唆報知(例えば、後述のC1エラー画面の表示)を行い、
前記遊技媒体判定手段は、解除情報を受信した後、前記異常検出手段が検出した異常を検出出来なかった場合には、前記媒体記憶手段に記憶された異常情報を削除する
ことを特徴とする遊技機。
A display unit for displaying various images (for example, a liquid crystal display device 11 described later);
Control means (for example, a sub-control circuit 101 described later);
An insertion slot (for example, a medal insertion slot 21 described later) into which a game medium is inserted,
Game medium detection means (for example, a medal selector 201 described later) for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion (for example, a medal rail 210 described later) that forms a passage through which the game medium passes;
A passing object detecting means (for example, a camera unit 209 described later) for detecting an object passing through the passage,
A game medium determination unit (for example, a control LSI 234 described later) that determines whether an object passing through the passage is a regular game medium based on data obtained through the passing object detection unit;
Medium storage means (for example, an SRAM 243 described later) capable of storing information under the control of the game medium determination means,
The game medium determination means,
Abnormality detection means for detecting an abnormality of the game medium detection means and storing abnormality information indicating the detected abnormality in the medium storage means;
A first transmission unit (for example, a control LSI 234 for transmitting a medal selector error command described later) for transmitting abnormality information stored in the medium storage unit to the control unit based on the abnormality detection unit detecting an abnormality; ,
A second transmission unit (for example, a control LSI 234 that transmits a medal selector non-operation command described later) that transmits the abnormality information stored in the medium storage unit to the control unit at a predetermined cycle,
The control means,
Abnormality information receiving means (for example, a sub CPU 102 to be described later) for receiving abnormality information transmitted from the first transmission means or the second transmission means,
Release information transmitting means (for example, a sub CPU 102 to be described later) for transmitting abnormality release information to the game medium detecting means when a predetermined operation is performed,
When the abnormality information is received, a suggestion notification (for example, display of a C1 error screen to be described later) indicating cancellation of the abnormality is performed by the display unit,
The game medium determination means, after receiving the release information, if the abnormality detected by the abnormality detection means cannot be detected, deletes the abnormality information stored in the medium storage means. Machine.

制御手段と、
遊技媒体を検出する遊技媒体検出手段と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部と、
前記通路を通過する物体を検出する通過物体検出手段と、
前記通過物体検出手段を介して得られるデータに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段と、
前記遊技媒体判定手段に制御されて情報を記憶可能な媒体記憶手段と、を備え、
前記遊技媒体判定手段は、
前記遊技媒体検出手段の異常を検出し、検出した異常示す異常情報を前記媒体記憶手段に記憶する異常検出手段と、
前記異常検出手段が異常を検出したことに基づいて前記媒体記憶手段に記憶された異常情報を前記制御手段に送信する第1送信手段と、
前記媒体記憶手段に記憶された異常情報を前記制御手段に所定の周期で送信する第2送信手段と、を有し、
前記制御手段は、
前記第1送信手段又は前記第2送信手段から送信された異常情報を受信する異常情報受信手段と、
所定の操作が行われた場合に、異常の解除情報を前記遊技媒体検出手段に送信する解除情報送信手段と、を有し、
前記異常情報を受信したとき、異常の解除を示唆する示唆報知を行い、
前記遊技媒体判定手段は、解除情報を受信した後、前記異常検出手段が検出した異常を検出出来なかった場合には、前記媒体記憶手段に記憶された異常情報を削除する
ことを特徴とする遊技用装置。
Control means;
Game medium detection means for detecting a game medium,
The game medium detection means,
A passage forming portion that forms a passage through which the game medium passes;
Passing object detecting means for detecting an object passing through the passage,
Game medium determination means for determining whether an object passing through the passage is a regular game medium, based on data obtained through the passing object detection means,
Medium storage means capable of storing information under the control of the game medium determination means,
The game medium determination means,
Abnormality detection means for detecting an abnormality of the game medium detection means and storing abnormality information indicating the detected abnormality in the medium storage means;
A first transmission unit configured to transmit abnormality information stored in the medium storage unit to the control unit based on the abnormality detection unit detecting an abnormality;
Second transmission means for transmitting the abnormality information stored in the medium storage means to the control means at a predetermined cycle,
The control means,
Abnormality information receiving means for receiving the abnormality information transmitted from the first transmission means or the second transmission means,
When a predetermined operation is performed, a release information transmission unit that transmits abnormality release information to the game medium detection unit,
When receiving the abnormality information, perform a suggestion notification suggesting the cancellation of the abnormality,
The game medium determination means, after receiving the release information, if the abnormality detected by the abnormality detection means cannot be detected, deletes the abnormality information stored in the medium storage means. Equipment.

上記構成の遊技機及び遊技用装置によれば、投入されたメダルが正規メダルか否かを判定するユニットに生じたエラーを確実に認識できる。   According to the gaming machine and the gaming machine configured as described above, it is possible to reliably recognize an error that has occurred in the unit that determines whether the inserted medal is a regular medal.

ところで、特開2005−261778号公報には、コインが通過可能に形成されたコイン通路と、光を発光する発光部と、発光部からの光を受光する受光部と、異物検出部と、を備える遊技機が開示されている。異物検出部は、コイン通路を通過するコインが受光部上に位置するときに受光部により得られる第1受光レベルと、該コインが受光部上に位置しないときに受光部により得られる第2受光レベルとの間の所定の受光レベルが受光部により得られている場合には、コイン以外の異物があることを検出する。
しかしながら、上記遊技機では、コインと同様に光を反射する異物を検出することができなかった。このため、異物を侵入させることによる不正行為を未然に防ぐことができなかった。
本発明の第14の目的は、異物を侵入させることによる不正行為を未然に防ぐことができる遊技機及び遊技用装置を提供することにある。
上記第14の目的を達成するために、以下のような構成の遊技機及び遊技用装置を提供する。
Japanese Patent Application Laid-Open No. 2005-261778 discloses a coin passage formed so as to allow a coin to pass therethrough, a light emitting unit that emits light, a light receiving unit that receives light from the light emitting unit, and a foreign object detecting unit. A gaming machine including the same is disclosed. The foreign object detector includes a first light receiving level obtained by the light receiving unit when the coin passing through the coin passage is positioned on the light receiving unit, and a second light receiving level obtained by the light receiving unit when the coin is not positioned on the light receiving unit. If a predetermined light receiving level between the levels is obtained by the light receiving unit, it is detected that there is a foreign substance other than coins.
However, the gaming machine cannot detect a foreign object that reflects light, like a coin. For this reason, it has not been possible to prevent improper activities caused by invasion of foreign matter.
A fourteenth object of the present invention is to provide a gaming machine and a gaming device capable of preventing fraudulent acts caused by invasion of foreign matter.
In order to achieve the fourteenth object, a gaming machine and a gaming device having the following configurations are provided.

遊技媒体を投入する投入口(例えば、後述のメダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、後述のメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部(例えば、後述のメダルレール210)と、
前記通路を撮像する撮像手段(例えば、後述のカメラユニット209)と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段(例えば、後述の制御LSI234)と、を有し、
前記遊技媒体判定手段は、
前記通路形成部における複数の領域である判定領域(例えば、後述の異物検知領域A21)の画像データを予め記憶する画像記憶手段(例えば、後述のフラッシュメモリ244)と、
前記撮像手段が撮像した画像データにおける前記判定領域の画像データと、前記画像記憶手段が記憶する前記判定領域の画像データと、を比較する画像比較手段(例えば、後述の異物検知処理を実行するホストコントローラ241)と、
前記画像比較手段の比較の結果、閾値以上の差異がある判定領域があるとき、前記通路形成部に異物が存在すると判定する異物判定手段(例えば、後述の異物検知処理を実行するホストコントローラ241)と、を備える
ことを特徴とする遊技機。
An insertion slot (for example, a medal insertion slot 21 described later) into which a game medium is inserted,
Game medium detection means (for example, a medal selector 201 described later) for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion (for example, a medal rail 210 described later) that forms a passage through which the game medium passes;
Imaging means for imaging the passage (for example, a camera unit 209 described later);
Game medium determination means (for example, a control LSI 234 described later) for determining whether or not an object passing through the passage is a regular game medium based on image data obtained via the imaging means. ,
The game medium determination means,
An image storage unit (for example, a flash memory 244 described later) that previously stores image data of a plurality of determination areas (for example, a foreign substance detection area A21 described later) in the passage forming unit;
Image comparing means for comparing the image data of the determination area in the image data captured by the imaging means with the image data of the determination area stored in the image storage means (for example, a host which executes a foreign substance detection process described later) Controller 241),
As a result of the comparison by the image comparison means, when there is a determination area having a difference equal to or larger than a threshold, a foreign matter determination means that determines that foreign matter is present in the passage forming portion (for example, a host controller 241 that performs a foreign matter detection process described later) And a gaming machine comprising:

遊技媒体を投入する投入口と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部と、
前記通路を撮像する撮像手段と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段と、を有し、
前記遊技媒体判定手段は、
前記通路形成部における複数の領域である判定領域の画像データを予め記憶する画像記憶手段と、
前記撮像手段が撮像した画像データにおける前記判定領域の画像データと、前記画像記憶手段が記憶する前記判定領域の画像データと、を比較する画像比較手段と、
前記画像比較手段の比較の結果、閾値以上の差異がある判定領域があるとき、前記通路形成部に異物が存在すると判定する異物判定手段と、を備える
ことを特徴とする遊技用装置。
An input port for inputting game media,
A game medium detecting means for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion that forms a passage through which the game medium passes;
Imaging means for imaging the passage;
Based on image data obtained via the imaging means, a game medium determining means for determining whether the object passing through the passage is a legitimate game medium,
The game medium determination means,
Image storage means for storing in advance the image data of the determination area that is a plurality of areas in the passage forming section,
Image comparison means for comparing the image data of the determination area in the image data captured by the imaging means with the image data of the determination area stored in the image storage means,
A game apparatus comprising: a foreign object determining unit that determines that a foreign object is present in the passage forming unit when there is a determination region having a difference equal to or greater than a threshold value as a result of the comparison by the image comparing unit.

遊技媒体を投入する投入口(例えば、後述のメダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、後述のメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部(例えば、後述のメダルレール210)と、
前記通路を撮像する撮像手段(例えば、後述のカメラユニット209)と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段(例えば、後述の制御LSI234)と、を有し、
前記遊技媒体判定手段は、
前記通路形成部における複数の領域である判定領域(例えば、後述の異物検知領域A21)の画像データを予め記憶する画像記憶手段(例えば、後述のフラッシュメモリ244)と、
前記撮像手段が撮像した画像データにおける前記判定領域の画像データと、前記画像記憶手段が記憶する前記判定領域の画像データと、を比較する画像比較手段(例えば、後述の異物検知処理を実行するホストコントローラ241)と、
前記画像比較手段の比較の結果、閾値以上の差異がある判定領域があるとき、前記通路形成部に異物が存在すると判定する異物判定手段(例えば、後述の異物検知処理を実行するホストコントローラ241)と、を備え、
前記閾値は、前記判定領域毎に異なる値が設定されている
ことを特徴とする遊技機。
An insertion slot (for example, a medal insertion slot 21 described later) into which a game medium is inserted,
Game medium detection means (for example, a medal selector 201 described later) for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion (for example, a medal rail 210 described later) that forms a passage through which the game medium passes;
Imaging means for imaging the passage (for example, a camera unit 209 described later);
Game medium determination means (for example, a control LSI 234 described later) for determining whether or not an object passing through the passage is a regular game medium based on image data obtained via the imaging means. ,
The game medium determination means,
An image storage unit (for example, a flash memory 244 described later) that previously stores image data of a plurality of determination areas (for example, a foreign substance detection area A21 described later) in the passage forming unit;
Image comparing means for comparing the image data of the determination area in the image data captured by the imaging means with the image data of the determination area stored in the image storage means (for example, a host which executes a foreign substance detection process described later) Controller 241),
As a result of the comparison by the image comparison means, when there is a determination area having a difference equal to or more than a threshold value, a foreign matter determination means that determines that foreign matter is present in the passage forming portion (for example, a host controller 241 that executes a foreign matter detection process described later) And
A gaming machine, wherein the threshold is set to a different value for each of the determination areas.

遊技媒体を投入する投入口と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部と、
前記通路を撮像する撮像手段と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段と、を有し、
前記遊技媒体判定手段は、
前記通路形成部における複数の領域である判定領域の画像データを予め記憶する画像記憶手段と、
前記撮像手段が撮像した画像データにおける前記判定領域の画像データと、前記画像記憶手段が記憶する前記判定領域の画像データと、を比較する画像比較手段と、
前記画像比較手段の比較の結果、閾値以上の差異がある判定領域があるとき、前記通路形成部に異物が存在すると判定する異物判定手段と、を備え、
前記閾値は、前記判定領域毎に異なる値が設定されている
ことを特徴とする遊技用装置。
An input port for inputting game media,
A game medium detecting means for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion that forms a passage through which the game medium passes;
Imaging means for imaging the passage;
Based on image data obtained via the imaging means, a game medium determining means for determining whether the object passing through the passage is a legitimate game medium,
The game medium determination means,
Image storage means for storing in advance the image data of the determination area that is a plurality of areas in the passage forming section,
Image comparison means for comparing the image data of the determination area in the image data captured by the imaging means with the image data of the determination area stored in the image storage means,
As a result of the comparison by the image comparing means, when there is a determination area having a difference equal to or more than a threshold, foreign matter determining means for determining that foreign matter is present in the passage forming portion,
A different value is set as the threshold value for each of the determination areas.

遊技媒体を投入する投入口(例えば、後述のメダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、後述のメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部(例えば、後述のメダルレール210)と、
前記通路を撮像する撮像手段(例えば、後述のカメラユニット209)と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段(例えば、後述の制御LSI234)と、を有し、
前記遊技媒体判定手段は、
前記通路形成部における複数の領域である判定領域(例えば、後述の異物検知領域A21)の画像データを予め記憶する画像記憶手段(例えば、後述のフラッシュメモリ244)と、
前記撮像手段が撮像した画像データにおける前記判定領域の画像データと、前記画像記憶手段が記憶する前記判定領域の画像データと、を比較する画像比較手段(例えば、後述の異物検知処理を実行するホストコントローラ241)と、
前記画像比較手段の比較の結果、閾値以上の差異がある判定領域があるとき、前記通路形成部に異物が存在すると判定する異物判定手段(例えば、後述の異物検知処理を実行するホストコントローラ241)と、を備え、
前記判定領域は、前記通路形成部において前記通路を前記遊技媒体が通過することによって摩耗が生じる領域(例えば、後述の突条部210aが形成されている領域)とは異なる領域に設定されている
ことを特徴とする遊技機。
An insertion slot (for example, a medal insertion slot 21 described later) into which a game medium is inserted,
Game medium detection means (for example, a medal selector 201 described later) for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion (for example, a medal rail 210 described later) that forms a passage through which the game medium passes;
Imaging means for imaging the passage (for example, a camera unit 209 described later);
Game medium determination means (for example, a control LSI 234 described later) for determining whether or not an object passing through the passage is a regular game medium based on image data obtained via the imaging means. ,
The game medium determination means,
An image storage unit (for example, a flash memory 244 described later) that previously stores image data of a plurality of determination areas (for example, a foreign substance detection area A21 described later) in the passage forming unit;
Image comparing means for comparing the image data of the determination area in the image data captured by the imaging means with the image data of the determination area stored in the image storage means (for example, a host which executes a foreign substance detection process described later) Controller 241),
As a result of the comparison by the image comparison means, when there is a determination area having a difference equal to or more than a threshold value, a foreign matter determination means that determines that foreign matter is present in the passage forming portion (for example, a host controller 241 that executes a foreign matter detection process described later) And
The determination region is set to a region different from a region in which abrasion occurs when the game medium passes through the passage in the passage forming portion (for example, a region where a ridge portion 210a described later is formed). A gaming machine characterized by that:

遊技媒体を投入する投入口と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部と、
前記通路を撮像する撮像手段と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段と、を有し、
前記遊技媒体判定手段は、
前記通路形成部における複数の領域である判定領域の画像データを予め記憶する画像記憶手段と、
前記撮像手段が撮像した画像データにおける前記判定領域の画像データと、前記画像記憶手段が記憶する前記判定領域の画像データと、を比較する画像比較手段と、
前記画像比較手段の比較の結果、閾値以上の差異がある判定領域があるとき、前記通路形成部に異物が存在すると判定する異物判定手段と、を備え、
前記判定領域は、前記通路形成部において前記通路を前記遊技媒体が通過することによって摩耗が生じる領域とは異なる領域に設定されている
ことを特徴とする遊技用装置。
An input port for inputting game media,
A game medium detecting means for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion that forms a passage through which the game medium passes;
Imaging means for imaging the passage;
Based on image data obtained via the imaging means, a game medium determining means for determining whether the object passing through the passage is a legitimate game medium,
The game medium determination means,
Image storage means for storing in advance the image data of the determination area that is a plurality of areas in the passage forming section,
Image comparison means for comparing the image data of the determination area in the image data captured by the imaging means with the image data of the determination area stored in the image storage means,
As a result of the comparison by the image comparing means, when there is a determination area having a difference equal to or more than a threshold, foreign matter determining means for determining that foreign matter is present in the passage forming portion,
The gaming device, wherein the determination region is set to a region different from a region where abrasion occurs when the game medium passes through the passage in the passage forming portion.

上記構成の遊技機及び遊技用装置によれば、異物を侵入させることによる不正行為を未然に防ぐことができる。   According to the gaming machine and the gaming machine having the above configurations, it is possible to prevent improper behavior caused by invasion of foreign matter.

ところで、特開2006−271462号公報には、投入されたメダルを撮像するCCDカメラと、投入メダルの画像による検査を行う撮像ユニット制御部と、撮像ユニット制御部と接続され、撮像ユニット制御部に検査を指示する信号を出力したり、検査結果を示す信号が入力されたりする主制御部と、を備える遊技機が開示されている。   Japanese Patent Application Laid-Open No. 2006-271462 discloses a CCD camera that captures an inserted medal, an imaging unit controller that performs an inspection based on an image of the inserted medal, and an imaging unit controller that is connected to the imaging unit controller. A gaming machine including a main control unit that outputs a signal for instructing an inspection or receives a signal indicating an inspection result is disclosed.

また、特開2008−200901号公報には、ホストから送信されたシリアルデータに対して正しく受信できた場合にACK信号を返信し、正しく受信できない場合に、NACK信号を返信し、NACK信号を受信したホストがシリアルデータを再送する通信プロトコルが開示されている。   Japanese Patent Application Laid-Open No. 2008-200901 discloses that an ACK signal is returned when serial data transmitted from a host is correctly received, and a NACK signal is returned when serial data transmitted from the host is not received correctly, and a NACK signal is received. A communication protocol for retransmitting serial data by a host that has made it is disclosed.

しかしながら、特開2006−271462号公報に記載の遊技機における主制御部と撮像ユニット制御部との通信に、特開2008−200901号公報に記載の通信プロトコルを採用し、主制御部が、複数バイトで構成された1つの通信データを送信する場合、主制御部は、通信以外の処理も行っているため、通信データを連続して送信できないときがある。このように、通信データが断続的に送信されるとき、通信データを構成する1バイトのデータの送信タイミングと、それに続く次の1バイトのデータの送信タイミングとの間に、データが送信されない時間が所定時間以上継続すると、撮像ユニット制御部は、正しく通信データを受信できないと判断し、NACK信号を返送してしまうおそれがある。
本発明の第15の目的は、断続的にデータが送信されるときの通信不良を抑制することができる遊技機及び遊技用装置を提供することにある。
上記第15の目的を達成するために、以下のような構成の遊技機及び遊技用装置を提供する。
However, the communication protocol described in JP-A-2008-200901 is used for communication between the main control unit and the imaging unit control unit in the gaming machine described in JP-A-2006-271462, and When transmitting one piece of communication data composed of bytes, the main control unit also performs processing other than communication, so that communication data may not be able to be continuously transmitted. As described above, when the communication data is transmitted intermittently, the time when the data is not transmitted is between the transmission timing of the 1-byte data constituting the communication data and the transmission timing of the subsequent 1-byte data. If the time continues for a predetermined time or more, the imaging unit control unit may determine that communication data cannot be received correctly, and may return a NACK signal.
A fifteenth object of the present invention is to provide a gaming machine and a gaming device capable of suppressing a communication failure when data is intermittently transmitted.
In order to achieve the fifteenth object, a gaming machine and a gaming device having the following configurations are provided.

演出機器の制御を行う第1制御部(例えば、後述の副制御回路101)と、
前記第1制御部とシリアル通信により双方向通信可能に接続され、前記第1制御部と複数バイトのデータで構成された通信データで送受信する第2制御部(例えば、後述のメダルセレクタ201の制御LSI234)と、を備え、
前記第2制御部は、
前記通信データを正常に受信した場合に、正常に受信したことを示す正常データを送信する正常データ送信手段(例えば、後述のデータ受信処理を行うホストコントローラ241)と、
前記通信データを正常に受信できなかった場合に、当該通信データを再送させるための再送要求データを送信する再送要求データ送信手段(例えば、後述のデータ受信処理を行うホストコントローラ241)と、を有し、
前記再送要求データ送信手段は、
前記通信データを構成する1バイト単位のデータの受信間隔が第1の時間以上経過した場合(例えば、後述のタイムアウトカウンタに値が0になった場合)、第1の時間が経過してから第2の時間が経過した後(例えば、後述のディレイカウンタが0になった後)で前記再送要求データを送信する
ことを特徴とする遊技機。
A first control unit (for example, a sub-control circuit 101 to be described later) that controls the effect devices,
A second control unit (for example, a control of a medal selector 201 to be described later), which is connected to the first control unit so as to be capable of two-way communication by serial communication and transmits and receives the first control unit by communication data composed of a plurality of bytes of data. LSI 234).
The second control unit includes:
A normal data transmission unit (for example, a host controller 241 that performs a data reception process described later) that transmits normal data indicating normal reception when the communication data is normally received;
Retransmission request data transmitting means (for example, a host controller 241 for performing a data reception process described later) for transmitting retransmission request data for retransmitting the communication data when the communication data cannot be normally received. And
The retransmission request data transmitting means,
If the reception interval of the data in units of 1 byte constituting the communication data has elapsed for a first time or more (for example, if the value of a timeout counter described later has become 0), the first time has elapsed. A gaming machine that transmits the retransmission request data after a lapse of time 2 (for example, after a later-described delay counter becomes 0).

第1制御部と、
前記第1制御部とシリアル通信により双方向通信可能に接続され、前記第1制御部と複数バイトのデータで構成された通信データで送受信する第2制御部と、を備え、
前記第2制御部は、
前記通信データを正常に受信した場合に、正常に受信したことを示す正常データを送信する正常データ送信手段と、
前記通信データを正常に受信できなかった場合に、当該通信データを再送させるための再送要求データを送信する再送要求データ送信手段と、を有し、
前記再送要求データ送信手段は、
前記通信データを構成する1バイト単位のデータの受信間隔が第1の時間以上経過した場合、第1の時間が経過してから第2の時間が経過した後で前記再送要求データを送信する
ことを特徴とする遊技用装置。
A first control unit;
A second control unit connected to the first control unit so as to be capable of two-way communication by serial communication, and configured to transmit and receive the first control unit and communication data composed of a plurality of bytes of data;
The second control unit includes:
When the communication data is normally received, a normal data transmission unit that transmits normal data indicating that the communication data has been normally received,
When the communication data has not been successfully received, retransmission request data transmitting means for transmitting retransmission request data for retransmitting the communication data,
The retransmission request data transmitting means,
And transmitting the retransmission request data after a lapse of a second time after a lapse of a first time when a reception interval of 1-byte data constituting the communication data has passed a first time or more. A gaming device characterized by the following.

演出機器の制御を行う第1制御部(例えば、後述の副制御回路101)と、
前記第1制御部とシリアル通信により双方向通信可能に接続され、前記第1制御部と複数バイトのデータで構成された通信データで送受信する第2制御部(例えば、後述のメダルセレクタ201の制御LSI234)と、を備え、
前記第2制御部は、
前記通信データを正常に受信した場合に、正常に受信したことを示す正常データを送信する正常データ送信手段(例えば、後述のデータ受信処理を行うホストコントローラ241)と、
前記通信データを正常に受信できなかった場合に、当該通信データを再送させるための再送要求データを送信する再送要求データ送信手段(例えば、後述のデータ受信処理を行うホストコントローラ241)と、
前記通信データを1バイト単位で記憶することが可能な通信バッファ(例えば、後述のRXデータレジスタ252e)を、有し、
前記再送要求データ送信手段は、
前記通信データを構成する1バイト単位のデータの受信間隔が第1の時間以上経過した場合(例えば、後述のタイムアウトカウンタが0になった場合)、前記通信バッファに記憶されたデータを破棄し、且つ、第2の時間の計時を開始し、
前記第2の時間が経過した後(例えば、後述のディレイタイマが0になった後)、前記再送要求データを送信し、且つ、前記通信バッファに記憶されたデータを破棄する
ことを特徴とする遊技機。
A first control unit (for example, a sub-control circuit 101 to be described later) that controls the effect devices,
A second control unit (for example, a control of a medal selector 201 to be described later), which is connected to the first control unit so as to be capable of two-way communication by serial communication and transmits and receives the first control unit by communication data composed of a plurality of bytes of data. LSI 234).
The second control unit includes:
A normal data transmission unit (for example, a host controller 241 that performs a data reception process described later) that transmits normal data indicating normal reception when the communication data is normally received;
A retransmission request data transmitting unit (for example, a host controller 241 that performs data reception processing described later) that transmits retransmission request data for retransmitting the communication data when the communication data cannot be normally received;
A communication buffer (for example, an RX data register 252e described later) capable of storing the communication data in 1-byte units,
The retransmission request data transmitting means,
If the reception interval of 1-byte data constituting the communication data has elapsed for a first time or more (for example, when a timeout counter described later has become 0), the data stored in the communication buffer is discarded, And start timing the second time,
After the second time has elapsed (for example, after a delay timer described later has become 0), the retransmission request data is transmitted, and the data stored in the communication buffer is discarded. Gaming machine.

第1制御部と、
前記第1制御部とシリアル通信により双方向通信可能に接続され、前記第1制御部と複数バイトのデータで構成された通信データで送受信する第2制御部と、を備え、
前記第2制御部は、
前記通信データを正常に受信した場合に、正常に受信したことを示す正常データを送信する正常データ送信手段と、
前記通信データを正常に受信できなかった場合に、当該通信データを再送させるための再送要求データを送信する再送要求データ送信手段と、
前記通信データを1バイト単位で記憶することが可能な通信バッファを、有し、
前記再送要求データ送信手段は、
前記通信データを構成する1バイト単位のデータの受信間隔が第1の時間以上経過した場合、前記通信バッファに記憶されたデータを破棄し、且つ、第2の時間の計時を開始し、
前記第2の時間が経過した後、前記再送要求データを送信し、且つ、前記通信バッファに記憶されたデータを破棄する
ことを特徴とする遊技用装置。
A first control unit;
A second control unit connected to the first control unit so as to be capable of two-way communication by serial communication, and configured to transmit and receive the first control unit and communication data composed of a plurality of bytes of data;
The second control unit includes:
When the communication data is normally received, a normal data transmission unit that transmits normal data indicating that the communication data has been normally received,
Retransmission request data transmitting means for transmitting retransmission request data for retransmitting the communication data when the communication data is not normally received;
A communication buffer capable of storing the communication data in byte units;
The retransmission request data transmitting means,
When the reception interval of 1-byte data constituting the communication data has elapsed for a first time or more, the data stored in the communication buffer is discarded, and timing of a second time is started,
After the second time has elapsed, the retransmission request data is transmitted, and the data stored in the communication buffer is discarded.

演出機器の制御を行う第1制御部(例えば、後述の副制御回路101)と、
前記第1制御部とシリアル通信により双方向通信可能に接続され、前記第1制御部と複数バイトのデータで構成された通信データで送受信する第2制御部(例えば、後述のメダルセレクタ201の制御LSI234)と、を備え、
前記第2制御部は、
前記通信データを正常に受信した場合に、正常に受信したことを示す正常データを送信する正常データ送信手段(例えば、後述のデータ受信処理を行うホストコントローラ241)と、
前記通信データを正常に受信できなかった場合に、当該通信データを再送させるための再送要求データを送信する再送要求データ送信手段(例えば、後述のデータ受信処理を行うホストコントローラ241)と、
前記通信データを1バイト単位で記憶することが可能な通信バッファ(例えば、後述のRXデータレジスタ252e)を、有し、
前記再送要求データ送信手段は、
前記通信データを構成する1バイト単位のデータの受信間隔が第1の時間以上経過した場合(例えば、後述のタイムアウトカウンタが0になった場合)、前記通信バッファに記憶されたデータを破棄し、且つ、第2の時間の計時を開始し、
前記第2の時間が経過した後(例えば、後述のディレイタイマが0になった後)、前記再送要求データを送信し、且つ、前記通信バッファに記憶されたデータを破棄し、
前記第1の時間と前記第2の時間は、異なる時間に設定されており、
前記第2の時間は、少なくとも、前記第1の時間が経過した後に既に受信した前記通信データを除く前記通信データを受信するための時間よりも長い時間に設定されている
ことを特徴とする遊技機。
A first control unit (for example, a sub-control circuit 101 to be described later) that controls the effect devices,
A second control unit (for example, a control of a medal selector 201 to be described later), which is connected to the first control unit so as to be capable of two-way communication by serial communication and transmits and receives the first control unit by communication data composed of a plurality of bytes of data. LSI 234).
The second control unit includes:
A normal data transmission unit (for example, a host controller 241 that performs a data reception process described later) that transmits normal data indicating normal reception when the communication data is normally received;
A retransmission request data transmitting unit (for example, a host controller 241 that performs data reception processing described later) that transmits retransmission request data for retransmitting the communication data when the communication data cannot be normally received;
A communication buffer (for example, an RX data register 252e described later) capable of storing the communication data in 1-byte units,
The retransmission request data transmitting means,
If the reception interval of 1-byte data constituting the communication data has elapsed for a first time or more (for example, when a timeout counter described later has become 0), the data stored in the communication buffer is discarded, And start timing the second time,
After the lapse of the second time (for example, after a delay timer described later becomes 0), the retransmission request data is transmitted, and the data stored in the communication buffer is discarded.
The first time and the second time are set to different times,
The second time is set to be at least longer than a time for receiving the communication data excluding the communication data already received after the first time has elapsed. Machine.

第1制御部と、
前記第1制御部とシリアル通信により双方向通信可能に接続され、前記第1制御部と複数バイトのデータで構成された通信データで送受信する第2制御部と、を備え、
前記第2制御部は、
前記通信データを正常に受信した場合に、正常に受信したことを示す正常データを送信する正常データ送信手段と、
前記通信データを正常に受信できなかった場合に、当該通信データを再送させるための再送要求データを送信する再送要求データ送信手段と、
前記通信データを1バイト単位で記憶することが可能な通信バッファを、有し、
前記再送要求データ送信手段は、
前記通信データを構成する1バイト単位のデータの受信間隔が第1の時間以上経過した場合、前記通信バッファに記憶されたデータを破棄し、且つ、第2の時間の計時を開始し、
前記第2の時間が経過した後、前記再送要求データを送信し、且つ、前記通信バッファに記憶されたデータを破棄し、
前記第1の時間と前記第2の時間は、異なる時間に設定されており、
前記第2の時間は、少なくとも、前記第1の時間が経過した後に既に受信した前記通信データを除く前記通信データを受信するための時間よりも長い時間に設定されている
ことを特徴とする遊技用装置。
A first control unit;
A second control unit connected to the first control unit so as to be capable of two-way communication by serial communication, and configured to transmit and receive the first control unit and communication data composed of a plurality of bytes of data;
The second control unit includes:
When the communication data is normally received, a normal data transmission unit that transmits normal data indicating that the communication data has been normally received,
Retransmission request data transmitting means for transmitting retransmission request data for retransmitting the communication data when the communication data is not normally received;
A communication buffer capable of storing the communication data in byte units;
The retransmission request data transmitting means,
When the reception interval of 1-byte data constituting the communication data has elapsed for a first time or more, the data stored in the communication buffer is discarded, and timing of a second time is started,
After the elapse of the second time, the retransmission request data is transmitted, and the data stored in the communication buffer is discarded,
The first time and the second time are set to different times,
The second time is set to be at least longer than a time for receiving the communication data excluding the communication data already received after the first time has elapsed. Equipment.

上記構成の遊技機及び遊技用装置によれば、断続的にデータが送信されるときの通信不良を抑制することができる。   According to the gaming machine and the gaming machine configured as described above, a communication failure when data is intermittently transmitted can be suppressed.

ところで、特開2006−271462号公報には、投入されたメダルを撮像するCCDカメラと、投入メダルの画像による検査を行う撮像ユニット制御部と、撮像ユニット制御部と接続され、撮像ユニット制御部に検査を指示する信号を出力したり、検査結果を示す信号が入力されたりする主制御部と、を備える遊技機が開示されている。   Japanese Patent Application Laid-Open No. 2006-271462 discloses a CCD camera that captures an inserted medal, an imaging unit controller that performs an inspection based on an image of the inserted medal, and an imaging unit controller that is connected to the imaging unit controller. A gaming machine including a main control unit that outputs a signal for instructing an inspection or receives a signal indicating an inspection result is disclosed.

また、特開2016−163846号公報には、演出制御手段が、遊技制御手段から受信したコマンドを格納するための受信バッファと、コマンドの受信に際してエラーが生じているか否かを示す情報が設定されるエラービットと、受信バッファからコマンドを読み出す手段とを含み、受信バッファからコマンドを読み出す前に、エラービットを読み出して保存し、受信バッファからコマンドを読み出す際に、保存されているエラービットにもとづいてコマンドにエラーが生じているか否かを判定する遊技機が開示されている。   Further, in JP-A-2006-163846, a reception buffer for storing a command received from the game control unit by the effect control unit and information indicating whether or not an error has occurred in receiving the command are set. Error bit and means for reading a command from the reception buffer, read and store the error bit before reading the command from the reception buffer, and, based on the stored error bit, when reading the command from the reception buffer. There is disclosed a gaming machine that determines whether an error has occurred in a command.

しかしながら、特開2006−271462号公報に記載の遊技機における主制御部と撮像ユニット制御部との通信に、特開2016−163846号公報に記載の受信コマンドのエラー判定を採用し、複数のコマンドを一つの受信バッファに保存する場合、エラービットは、複数のコマンドのいずれかのコマンドについてエラーが生じているか否かを示しているにすぎない。例えば、エラービットが先に受信したコマンドにエラーが生じているか否かを示している場合、連続して受信した2つのコマンドの後に受信したコマンドにエラーがなくても、後に受信したコマンドについてもエラーが生じているものと誤って認識する虞がある。そして、撮像ユニット制御部は、エラーが生じていると誤って認識したコマンドの破棄などを行うことにより、通信の効率が低下し、通信処理に係る処理負担が増加する虞がある。
本発明の第16の目的は、通信処理に係る処理負担を軽減することができる遊技機及び遊技用装置を提供することにある。
上記第16の目的を達成するために、本発明は、以下のような構成の遊技機及び遊技用装置を提供する。
However, the communication between the main control unit and the imaging unit control unit in the gaming machine described in JP-A-2006-271462 uses the error determination of the reception command described in JP-A-2006-163846, and a plurality of command Is stored in one reception buffer, the error bit merely indicates whether an error has occurred in any one of the plurality of commands. For example, if the error bit indicates whether an error has occurred in a previously received command, even if a command received after two consecutively received commands has no error, a command received later may also be received. There is a possibility that an error may be erroneously recognized. Then, the imaging unit control unit discards a command that is erroneously recognized as having an error, thereby reducing communication efficiency and increasing the processing load related to communication processing.
A sixteenth object of the present invention is to provide a gaming machine and a gaming device capable of reducing a processing load relating to communication processing.
In order to achieve the sixteenth object, the present invention provides a gaming machine and a gaming device having the following configurations.

演出機器の制御を行う第1制御部(例えば、後述の副制御回路101)と、
前記第1制御部とシリアル通信により双方向通信可能に接続され、前記第1制御部と複数バイトのデータで構成された通信データで送受信する第2制御部(例えば、後述のメダルセレクタ201の制御LSI234)と、を備え、
前記第2制御部は、
前記制御部から受信した前記通信データを記憶する通信バッファ(例えば、後述のRXデータレジスタ252e)と、
前記通信バッファに記憶された前記通信データの整合性判定を行う整合性判定手段(例えば、後述のデータ受信処理を行うホストコントローラ241)と、
前記整合性判定の結果が正常の場合に、正常に受信したことを示す正常データを送信する正常データ送信手段(例えば、後述のデータ受信処理を行うホストコントローラ241)と、
前記整合性判定の結果が異常の場合に、前記通信データを再送させるための再送要求データを送信する再送要求データ送信手段(例えば、後述のデータ受信処理を行うホストコントローラ241)と、を有し、
前記通信バッファは複数の前記通信データを記憶可能であり、
前記整合性判定手段は、複数の前記通信データが前記通信バッファに記憶されていても、複数の前記通信データについて整合性判定を行う場合があり、
前記正常データ送信手段は、前記通信バッファに複数の前記通信データが記憶されていた場合、前記通信バッファに記憶された前記通信データの何れか1つでも整合性判定の結果が正常であれば、前記正常データを送信する
ことを特徴とする遊技機。
A first control unit (for example, a sub-control circuit 101 to be described later) that controls the effect devices,
A second control unit (for example, a control of a medal selector 201 to be described later), which is connected to the first control unit so as to be capable of two-way communication by serial communication and transmits and receives the first control unit by communication data composed of a plurality of bytes of data. LSI 234).
The second control unit includes:
A communication buffer (for example, an RX data register 252e described later) that stores the communication data received from the control unit,
A consistency determination unit (for example, a host controller 241 that performs a data reception process described later) that performs consistency determination of the communication data stored in the communication buffer;
A normal data transmission unit (for example, a host controller 241 that performs a data reception process described later) that transmits normal data indicating normal reception when the result of the consistency determination is normal;
A retransmission request data transmitting unit (for example, a host controller 241 that performs data reception processing described later) that transmits retransmission request data for retransmitting the communication data when the result of the consistency determination is abnormal. ,
The communication buffer is capable of storing a plurality of the communication data,
Even if the plurality of communication data is stored in the communication buffer, the consistency determination unit may perform a consistency determination on the plurality of communication data,
The normal data transmission means, when a plurality of the communication data is stored in the communication buffer, if any one of the communication data stored in the communication buffer, the result of the consistency determination is normal, A gaming machine transmitting the normal data.

第1制御部と、
前記第1制御部とシリアル通信により双方向通信可能に接続され、前記第1制御部と複数バイトのデータで構成された通信データで送受信する第2制御部と、を備え、
前記第2制御部は、
前記制御部から受信した前記通信データを記憶する通信バッファと、
前記通信バッファに記憶された前記通信データの整合性判定を行う整合性判定手段と、
前記整合性判定の結果が正常の場合に、正常に受信したことを示す正常データを送信する正常データ送信手段と、
前記整合性判定の結果が異常の場合に、前記通信データを再送させるための再送要求データを送信する再送要求データ送信手段と、を有し、
前記通信バッファは複数の前記通信データを記憶可能であり、
前記整合性判定手段は、複数の前記通信データが前記通信バッファに記憶されていても、複数の前記通信データについて整合性判定を行う場合があり、
前記正常データ送信手段は、前記通信バッファに複数の前記通信データが記憶されていた場合、前記通信バッファに記憶された前記通信データの何れか1つでも整合性判定の結果が正常であれば、前記正常データを送信する
ことを特徴とする遊技用装置。
A first control unit;
A second control unit connected to the first control unit so as to be capable of two-way communication by serial communication, and configured to transmit and receive the first control unit and communication data composed of a plurality of bytes of data;
The second control unit includes:
A communication buffer for storing the communication data received from the control unit,
Consistency determination means for performing consistency determination of the communication data stored in the communication buffer,
When the result of the consistency determination is normal, a normal data transmission unit that transmits normal data indicating that the data has been received normally,
When the result of the consistency determination is abnormal, retransmission request data transmitting means for transmitting retransmission request data for retransmitting the communication data,
The communication buffer is capable of storing a plurality of the communication data,
Even if the plurality of communication data is stored in the communication buffer, the consistency determination unit may perform a consistency determination on the plurality of communication data,
The normal data transmission means, when a plurality of the communication data is stored in the communication buffer, if any one of the communication data stored in the communication buffer, the result of the consistency determination is normal, A game device for transmitting the normal data.

演出機器の制御を行う第1制御部(例えば、後述の副制御回路101)と、
前記第1制御部とシリアル通信により双方向通信可能に接続され、前記第1制御部と複数バイトのデータで構成された通信データで送受信する第2制御部(例えば、後述のメダルセレクタ201の制御LSI234)と、を備え、
前記第2制御部は、
前記制御部から受信した前記通信データを記憶する通信バッファ(例えば、後述のRXデータレジスタ252e)と、
前記通信バッファに記憶された前記通信データの整合性判定を行う整合性判定手段(例えば、後述のデータ受信処理を行うホストコントローラ241)と、
前記整合性判定の結果が正常の場合に、正常に受信したことを示す正常データを送信する正常データ送信手段(例えば、後述のデータ受信処理を行うホストコントローラ241)と、
前記整合性判定の結果が異常の場合に、前記通信データを再送させるための再送要求データを送信する再送要求データ送信手段(例えば、後述のデータ受信処理を行うホストコントローラ241)と、を有し、
前記通信バッファは複数の前記通信データを記憶可能であり、
前記整合性判定手段は、複数の前記通信データが前記通信バッファに記憶されていても、複数の前記通信データについて整合性判定を行う場合があり、
前記第2制御部は、前記通信バッファに複数の前記通信データが記憶されている場合、前記通信データの何れか一つでも整合性判定の結果が正常であれば、前記正常データを送信し、先に記憶された前記通信データの整合性判定の結果が正常であれば、後に記憶された前記通信データの整合性判定を行うことなく、後に記憶された前記通信データを前記通信バッファから破棄する
ことを特徴とする遊技機。
A first control unit (for example, a sub-control circuit 101 to be described later) that controls the effect devices,
A second control unit (for example, a control of a medal selector 201 to be described later), which is connected to the first control unit so as to be capable of two-way communication by serial communication and transmits and receives the first control unit by communication data composed of a plurality of bytes of data. LSI 234).
The second control unit includes:
A communication buffer (for example, an RX data register 252e described later) that stores the communication data received from the control unit,
A consistency determination unit (for example, a host controller 241 that performs a data reception process described later) that performs consistency determination of the communication data stored in the communication buffer;
A normal data transmission unit (for example, a host controller 241 that performs a data reception process described later) that transmits normal data indicating normal reception when the result of the consistency determination is normal;
A retransmission request data transmitting unit (for example, a host controller 241 that performs data reception processing described later) that transmits retransmission request data for retransmitting the communication data when the result of the consistency determination is abnormal. ,
The communication buffer is capable of storing a plurality of the communication data,
Even if the plurality of communication data is stored in the communication buffer, the consistency determination unit may perform a consistency determination on the plurality of communication data,
The second control unit, when a plurality of the communication data is stored in the communication buffer, if any one of the communication data is the result of the consistency determination is normal, transmits the normal data, If the result of the consistency determination of the previously stored communication data is normal, the later stored communication data is discarded from the communication buffer without performing the consistency determination of the later stored communication data. A gaming machine characterized by that:

第1制御部と、
前記第1制御部とシリアル通信により双方向通信可能に接続され、前記第1制御部と複数バイトのデータで構成された通信データで送受信する第2制御部と、を備え、
前記第2制御部は、
前記制御部から受信した前記通信データを記憶する通信バッファと、
前記通信バッファに記憶された前記通信データの整合性判定を行う整合性判定手段と、
前記整合性判定の結果が正常の場合に、正常に受信したことを示す正常データを送信する正常データ送信手段と、
前記整合性判定の結果が異常の場合に、前記通信データを再送させるための再送要求データを送信する再送要求データ送信手段と、を有し、
前記通信バッファは複数の前記通信データを記憶可能であり、
前記整合性判定手段は、複数の前記通信データが前記通信バッファに記憶されていても、複数の前記通信データについて整合性判定を行う場合があり、
前記第2制御部は、前記通信バッファに複数の前記通信データが記憶されている場合、前記通信データの何れか一つでも整合性判定の結果が正常であれば、前記正常データを送信し、先に記憶された前記通信データの整合性判定の結果が正常であれば、後に記憶された前記通信データの整合性判定を行うことなく、後に記憶された前記通信データを前記通信バッファから破棄する
ことを特徴とする遊技用装置。
A first control unit;
A second control unit connected to the first control unit so as to be capable of two-way communication by serial communication, and configured to transmit and receive the first control unit and communication data composed of a plurality of bytes of data;
The second control unit includes:
A communication buffer for storing the communication data received from the control unit,
Consistency determination means for performing consistency determination of the communication data stored in the communication buffer,
When the result of the consistency determination is normal, a normal data transmission unit that transmits normal data indicating that the data has been received normally,
When the result of the consistency determination is abnormal, retransmission request data transmitting means for transmitting retransmission request data for retransmitting the communication data,
The communication buffer is capable of storing a plurality of the communication data,
Even if the plurality of communication data is stored in the communication buffer, the consistency determination unit may perform a consistency determination on the plurality of communication data,
The second control unit, when a plurality of the communication data is stored in the communication buffer, if any one of the communication data is the result of the consistency determination is normal, transmits the normal data, If the result of the consistency determination of the previously stored communication data is normal, the later stored communication data is discarded from the communication buffer without performing the consistency determination of the later stored communication data. A gaming device characterized by the above-mentioned.

演出機器の制御を行う第1制御部(例えば、後述の副制御回路101)と、
前記第1制御部とシリアル通信により双方向通信可能に接続され、前記第1制御部と複数バイトのデータで構成された通信データで送受信する第2制御部(例えば、後述のメダルセレクタ201の制御LSI234)と、を備え、
前記第2制御部は、
前記制御部から受信した前記通信データを記憶する通信バッファ(例えば、後述のRXデータレジスタ252e)と、
前記通信バッファに記憶された前記通信データの整合性判定を行う整合性判定手段(例えば、後述のデータ受信処理を行うホストコントローラ241)と、
前記整合性判定の結果が正常の場合に、正常に受信したことを示す正常データを送信する正常データ送信手段(例えば、後述のデータ受信処理を行うホストコントローラ241)と、
前記整合性判定の結果が異常の場合に、前記通信データを再送させるための再送要求データを送信する再送要求データ送信手段(例えば、後述のデータ受信処理を行うホストコントローラ241)と、を有し、
前記通信バッファは複数の前記通信データを記憶可能であり、
前記整合性判定手段は、複数の前記通信データが前記通信バッファに記憶されていても、複数の前記通信データについて整合性判定を行う場合があり、
前記第2制御部は、前記通信バッファに複数の前記通信データが記憶されている場合、先に記憶した前記通信データ及び後に記憶した前記通信データのいずれについての整合性判定の結果も異常の場合、前記整合性判定手段が後に記憶した前記通信データの整合性判定を行った後で、前記再送要求データを送信する
ことを特徴とする遊技機。
A first control unit (for example, a sub-control circuit 101 to be described later) that controls the effect devices,
A second control unit (for example, a control of a medal selector 201 to be described later), which is connected to the first control unit so as to be capable of two-way communication by serial communication and transmits and receives the first control unit by communication data composed of a plurality of bytes of data. LSI 234).
The second control unit includes:
A communication buffer (for example, an RX data register 252e described later) that stores the communication data received from the control unit,
A consistency determination unit (for example, a host controller 241 that performs a data reception process described later) that performs consistency determination of the communication data stored in the communication buffer;
A normal data transmission unit (for example, a host controller 241 that performs a data reception process described later) that transmits normal data indicating normal reception when the result of the consistency determination is normal;
A retransmission request data transmitting unit (for example, a host controller 241 that performs data reception processing described later) that transmits retransmission request data for retransmitting the communication data when the result of the consistency determination is abnormal. ,
The communication buffer is capable of storing a plurality of the communication data,
Even if the plurality of communication data is stored in the communication buffer, the consistency determination unit may perform a consistency determination on the plurality of communication data,
The second control unit, when a plurality of the communication data is stored in the communication buffer, when the result of the consistency determination for any of the communication data stored earlier and the communication data stored later is abnormal A gaming machine that transmits the retransmission request data after the consistency determination unit has determined the consistency of the communication data stored later.

第1制御部と、
前記第1制御部とシリアル通信により双方向通信可能に接続され、前記第1制御部と複数バイトのデータで構成された通信データで送受信する第2制御部と、を備え、
前記第2制御部は、
前記制御部から受信した前記通信データを記憶する通信バッファと、
前記通信バッファに記憶された前記通信データの整合性判定を行う整合性判定手段と、
前記整合性判定の結果が正常の場合に、正常に受信したことを示す正常データを送信する正常データ送信手段と、
前記整合性判定の結果が異常の場合に、前記通信データを再送させるための再送要求データを送信する再送要求データ送信手段と、を有し、
前記通信バッファは複数の前記通信データを記憶可能であり、
前記整合性判定手段は、複数の前記通信データが前記通信バッファに記憶されていても、複数の前記通信データについて整合性判定を行う場合があり、
前記第2制御部は、前記通信バッファに複数の前記通信データが記憶されている場合、先に記憶した前記通信データ及び後に記憶した前記通信データのいずれについての整合性判定の結果も異常の場合、前記整合性判定手段が後に記憶した前記通信データの整合性判定を行った後で、前記再送要求データを送信する
ことを特徴とする遊技用装置。
A first control unit;
A second control unit connected to the first control unit so as to be capable of two-way communication by serial communication, and configured to transmit and receive the first control unit and communication data composed of a plurality of bytes of data;
The second control unit includes:
A communication buffer for storing the communication data received from the control unit,
Consistency determination means for performing consistency determination of the communication data stored in the communication buffer,
When the result of the consistency determination is normal, a normal data transmission unit that transmits normal data indicating that the data has been received normally,
When the result of the consistency determination is abnormal, retransmission request data transmitting means for transmitting retransmission request data for retransmitting the communication data,
The communication buffer is capable of storing a plurality of the communication data,
Even if the plurality of communication data is stored in the communication buffer, the consistency determination unit may perform a consistency determination on the plurality of communication data,
The second control unit, when a plurality of the communication data is stored in the communication buffer, when the result of the consistency determination for any of the communication data stored earlier and the communication data stored later is abnormal A game device that transmits the retransmission request data after the consistency determination unit determines the consistency of the communication data stored later.

演出機器の制御を行う第1制御部(例えば、後述の副制御回路101)と、
前記第1制御部とシリアル通信により双方向通信可能に接続され、前記第1制御部と複数バイトのデータで構成された通信データで送受信する第2制御部(例えば、後述のメダルセレクタ201の制御LSI234)と、を備え、
前記第2制御部は、
前記制御部から受信した前記通信データを記憶する通信バッファ(例えば、後述のRXデータレジスタ252e)と、
前記通信バッファに記憶された前記通信データの整合性判定を行う整合性判定手段(例えば、後述のデータ受信処理を行うホストコントローラ241)と、
前記整合性判定の結果が正常の場合に、正常に受信したことを示す正常データを送信する正常データ送信手段(例えば、後述のデータ受信処理を行うホストコントローラ241)と、
前記整合性判定の結果が異常の場合に、前記通信データを再送させるための再送要求データを送信する再送要求データ送信手段(例えば、後述のデータ受信処理を行うホストコントローラ241)と、を有し、
前記通信バッファは複数の前記通信データを記憶可能であり、
前記整合性判定手段は、複数の前記通信データが前記通信バッファに記憶されていても、複数の前記通信データについて整合性判定を行う場合があり、
前記第2制御部は、前記通信バッファに複数の前記通信データが記憶されている場合、先に記憶した前記通信データについての整合性判定の結果が異常であり、且つ、後に記憶した前記通信データについての整合性判定の結果が正常の場合、前記整合性判定手段が後に記憶した前記通信データの整合性判定を行った後で、前記正常データを送信する
ことを特徴とする遊技機。
A first control unit (for example, a sub-control circuit 101 to be described later) that controls the effect devices,
A second control unit (for example, a control of a medal selector 201 to be described later), which is connected to the first control unit so as to be capable of two-way communication by serial communication and transmits and receives the first control unit by communication data composed of a plurality of bytes of data. LSI 234).
The second control unit includes:
A communication buffer (for example, an RX data register 252e described later) that stores the communication data received from the control unit,
A consistency determination unit (for example, a host controller 241 that performs a data reception process described later) that performs consistency determination of the communication data stored in the communication buffer;
A normal data transmission unit (for example, a host controller 241 that performs a data reception process described later) that transmits normal data indicating normal reception when the result of the consistency determination is normal;
A retransmission request data transmitting unit (for example, a host controller 241 that performs data reception processing described later) that transmits retransmission request data for retransmitting the communication data when the result of the consistency determination is abnormal. ,
The communication buffer is capable of storing a plurality of the communication data,
Even if the plurality of communication data is stored in the communication buffer, the consistency determination unit may perform a consistency determination on the plurality of communication data,
The second control unit, when a plurality of the communication data are stored in the communication buffer, the result of the consistency determination for the communication data stored earlier is abnormal, and the communication data stored later A game machine characterized in that, if the result of the consistency judgment is normal, the normality data is transmitted after the consistency judgment means judges the consistency of the communication data stored later.

第1制御部と、
前記第1制御部とシリアル通信により双方向通信可能に接続され、前記第1制御部と複数バイトのデータで構成された通信データで送受信する第2制御部と、を備え、
前記第2制御部は、
前記制御部から受信した前記通信データを記憶する通信バッファと、
前記通信バッファに記憶された前記通信データの整合性判定を行う整合性判定手段と、
前記整合性判定の結果が正常の場合に、正常に受信したことを示す正常データを送信する正常データ送信手段と、
前記整合性判定の結果が異常の場合に、前記通信データを再送させるための再送要求データを送信する再送要求データ送信手段と、を有し、
前記通信バッファは複数の前記通信データを記憶可能であり、
前記整合性判定手段は、複数の前記通信データが前記通信バッファに記憶されていても、複数の前記通信データについて整合性判定を行う場合があり、
前記第2制御部は、前記通信バッファに複数の前記通信データが記憶されている場合、先に記憶した前記通信データについての整合性判定の結果が異常であり、且つ、後に記憶した前記通信データについての整合性判定の結果が正常の場合、前記整合性判定手段が後に記憶した前記通信データの整合性判定を行った後で、前記正常データを送信する
ことを特徴とする遊技用装置。
A first control unit;
A second control unit connected to the first control unit so as to be capable of two-way communication by serial communication, and configured to transmit and receive the first control unit and communication data composed of a plurality of bytes of data;
The second control unit includes:
A communication buffer for storing the communication data received from the control unit,
Consistency determination means for performing consistency determination of the communication data stored in the communication buffer,
When the result of the consistency determination is normal, a normal data transmission unit that transmits normal data indicating that the data has been received normally,
When the result of the consistency determination is abnormal, retransmission request data transmitting means for transmitting retransmission request data for retransmitting the communication data,
The communication buffer is capable of storing a plurality of the communication data,
Even if the plurality of communication data is stored in the communication buffer, the consistency determination unit may perform a consistency determination on the plurality of communication data,
The second control unit, when a plurality of the communication data are stored in the communication buffer, the result of the consistency determination for the communication data stored earlier is abnormal, and the communication data stored later If the result of the consistency determination for (i) is normal, the normality data is transmitted after the consistency determination means has performed the consistency determination of the communication data stored later.

上記構成の遊技機及び遊技用装置によれば、通信処理に係る処理負担を軽減することができる。   According to the gaming machine and the gaming machine configured as described above, the processing load related to the communication processing can be reduced.

ところで、特開2006−271462号公報には、CCDカメラを用いて、投入された不適正メダル(不正メダル)の判定を行うスロットマシンが記載されている。
しかしながら、特開2006−271462号公報に記載された遊技機では、例えば遊技者が吸った煙草の煙が遊技機内に進入し、撮像画像に煙が写り込んでいた場合、判定の精度が低下する虞がある。
本発明の第17の目的は、煙の写り込みによる判定精度の低下を防止できる遊技機及び遊技用装置を提供することにある。
上記第17の目的を達成するために、本発明は、以下のような構成の遊技機及び遊技用装置を提供する。
Japanese Patent Application Laid-Open Publication No. 2006-271462 describes a slot machine that uses a CCD camera to determine an inserted improper medal (illegal medal).
However, in the gaming machine described in Japanese Patent Application Laid-Open No. 2006-271462, the accuracy of the determination is reduced when, for example, tobacco smoke sucked by a player enters the gaming machine and smoke is reflected in a captured image. There is a fear.
A seventeenth object of the present invention is to provide a gaming machine and a gaming device capable of preventing a decrease in determination accuracy due to reflection of smoke.
In order to achieve the seventeenth object, the present invention provides a gaming machine and a gaming device having the following configurations.

遊技媒体を投入する投入口(例えば、後述のメダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、後述のメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部(例えば、後述のメダルレール210)と、
前記通路を撮像する撮像手段(例えば、後述のカメラユニット209)と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を物体が通過したか否かを判定する通過判定手段(例えば、後述の制御LSI234)と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段(例えば、後述の制御LSI234)と、
前記通路形成部に配置した複数の第1判定領域のそれぞれについて、物体が通過していないときの基準画像データ値を予め記憶する基準画像記憶手段(例えば、後述の背景グレースケール画像データを記憶するSRAM243)と、を有し、
前記通過判定手段は、
閾値を決定する閾値決定手段(例えば、後述の煙検知処理を実行するホストコントローラ241)と、
所定期間内に撮像された複数の前記画像データにおける複数の前記第1判定領域のそれぞれの画像データ値と対応する前記基準画像データ値とを比較し、前記閾値決定手段が決定した閾値に基づいて、複数の前記第1判定領域のそれぞれにおける物体の有無を検出する物体有無検出手段(例えば、後述のメダルカウント回路246)と、
複数の前記画像データにおける複数の前記第1判定領域のそれぞれにおける物体の有無の変化の態様を示す変化態様情報と、物体が前記通路を通過した場合の前記変化の態様に対応し、予め記憶されている基準変化態様情報と、を比較し、一致した場合に、前記通路を物体が通過したと判定する通過順序判定手段(例えば、後述のメダルカウント回路246)と、を有し、
前記閾値決定手段は、前記撮像手段を介して得られる画像データにおける所定の第2判定領域(例えば、後述の煙判定領域A11)の輝度の変化に応じて、前記閾値を変化させる
ことを特徴とする遊技機。
An insertion slot (for example, a medal insertion slot 21 described later) into which a game medium is inserted,
Game medium detection means (for example, a medal selector 201 described later) for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion (for example, a medal rail 210 described later) that forms a passage through which the game medium passes;
Imaging means for imaging the passage (for example, a camera unit 209 described later);
A passage determination unit (for example, a control LSI 234 described later) that determines whether an object has passed through the passage based on image data obtained through the imaging unit;
A game medium determination unit (for example, a control LSI 234 described later) that determines whether an object passing through the passage is a regular game medium based on image data obtained through the imaging unit;
For each of the plurality of first determination areas arranged in the passage forming unit, a reference image storage unit that stores in advance a reference image data value when an object does not pass (for example, stores background grayscale image data described later). SRAM 243), and
The passage determination means,
Threshold value determining means for determining a threshold value (for example, a host controller 241 for executing a smoke detection process described later);
The respective image data values of the plurality of first determination regions in the plurality of image data captured within a predetermined period are compared with the corresponding reference image data values, and based on the threshold value determined by the threshold value determination unit. An object presence / absence detection means (for example, a medal count circuit 246 described later) for detecting the presence / absence of an object in each of the plurality of first determination areas;
Change mode information indicating a mode of change of the presence or absence of an object in each of the plurality of first determination areas in the plurality of image data, and corresponding to the mode of change when the object passes through the passage, are stored in advance. And a passing order determining unit (for example, a medal counting circuit 246 described later) that determines that the object has passed through the passage when the two match with each other,
The threshold value determining unit changes the threshold value according to a change in luminance of a predetermined second determination region (for example, a smoke determination region A11 described later) in image data obtained via the imaging unit. Gaming machine to do.

遊技媒体を投入する投入口と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部と、
前記通路を撮像する撮像手段と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を物体が通過したか否かを判定する通過判定手段と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段と、
前記通路形成部に配置した複数の第1判定領域のそれぞれについて、物体が通過していないときの基準画像データ値を予め記憶する基準画像記憶手段と、を有し、
前記通過判定手段は、
閾値を決定する閾値決定手段と、
所定期間内に撮像された複数の前記画像データにおける複数の前記第1判定領域のそれぞれの画像データ値と対応する前記基準画像データ値とを比較し、前記閾値決定手段が決定した閾値に基づいて、複数の前記第1判定領域のそれぞれにおける物体の有無を検出する物体有無検出手段と、
複数の前記画像データにおける複数の前記第1判定領域のそれぞれにおける物体の有無の変化の態様を示す変化態様情報と、物体が前記通路を通過した場合の前記変化の態様に対応し、予め記憶されている基準変化態様情報と、を比較し、一致した場合に、前記通路を物体が通過したと判定する通過順序判定手段と、を有し、
前記閾値決定手段は、前記撮像手段を介して得られる画像データにおける所定の第2判定領域の輝度の変化に応じて、前記閾値を変化させる
ことを特徴とする遊技用装置。
An input port for inputting game media,
A game medium detecting means for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion that forms a passage through which the game medium passes;
Imaging means for imaging the passage;
Based on image data obtained via the imaging unit, a passage determination unit that determines whether an object has passed the passage,
Game medium determination means for determining whether an object passing through the passage is a regular game medium based on image data obtained via the imaging means,
Reference image storage means for storing in advance a reference image data value when an object does not pass, for each of the plurality of first determination areas arranged in the passage forming section,
The passage determination means,
Threshold determining means for determining a threshold,
The respective image data values of the plurality of first determination regions in the plurality of image data captured within a predetermined period are compared with the corresponding reference image data values, and based on the threshold value determined by the threshold value determination unit. An object presence / absence detection means for detecting the presence / absence of an object in each of the plurality of first determination areas;
Change mode information indicating a mode of change of the presence or absence of an object in each of the plurality of first determination areas in the plurality of image data, and corresponding to the mode of change when the object passes through the passage, are stored in advance. And reference change mode information that has, and when they match, having a pass order determining means for determining that the object has passed through the passage,
The gaming device, wherein the threshold value determining means changes the threshold value according to a change in luminance of a predetermined second determination area in image data obtained via the imaging means.

遊技媒体を投入する投入口(例えば、後述のメダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、後述のメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部(例えば、後述のメダルレール210)と、
前記通路に光を照射する光照射手段(例えば、後述のLED233)と、
前記通路を含む所定の領域を撮像する撮像手段(例えば、後述のカメラユニット209)と、
前記撮像手段を介して得られる画像データに基づいて前記通路を物体が通過したか否かを判定する通過判定手段(例えば、後述の制御LSI234)と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段(例えば、後述の制御LSI234)と、
前記通路形成部に配置した複数の第1判定領域のそれぞれについて、物体が通過していないときの基準画像データ値を予め記憶する基準画像記憶手段(例えば、後述の背景グレースケール画像データを記憶するSRAM243)と、を有し、
前記通過判定手段は、
閾値を決定する閾値決定手段(例えば、後述の煙検知処理を実行するホストコントローラ241)と、
所定期間内に撮像された複数の前記画像データにおける複数の前記第1判定領域のそれぞれの画像データ値と対応する前記基準画像データ値とを比較し、前記閾値決定手段が決定した閾値に基づいて、複数の前記第1判定領域のそれぞれにおける物体の有無を検出する物体有無検出手段(例えば、後述のメダルカウント回路246)と、
複数の前記画像データにおける複数の前記第1判定領域のそれぞれにおける物体の有無の変化の態様を示す変化態様情報と、物体が前記通路を通過した場合の前記変化の態様に対応し、予め記憶されている基準変化態様情報と、を比較し、一致した場合に、前記通路を物体が通過したと判定する通過順序判定手段(例えば、後述のメダルカウント回路246)と、を有し、
前記閾値決定手段は、前記撮像手段を介して得られる画像データにおける所定の第2判定領域(例えば、後述の煙判定領域A11)の輝度の変化に応じて、前記閾値を変化させ、
前記第2判定領域は、前記通路形成部における前記光照射手段が照射する光の照射範囲外に設定されている
ことを特徴とする遊技機。
An insertion slot (for example, a medal insertion slot 21 described later) into which a game medium is inserted,
Game medium detection means (for example, a medal selector 201 described later) for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion (for example, a medal rail 210 described later) that forms a passage through which the game medium passes;
Light irradiating means for irradiating light to the passage (for example, LED 233 described later),
Imaging means (for example, a camera unit 209 described later) for imaging a predetermined area including the passage,
A passage determination unit (for example, a control LSI 234 described later) that determines whether an object has passed through the passage based on image data obtained through the imaging unit;
A game medium determination unit (for example, a control LSI 234 described later) that determines whether an object passing through the passage is a regular game medium based on image data obtained through the imaging unit;
For each of the plurality of first determination areas arranged in the passage forming unit, a reference image storage unit that stores in advance a reference image data value when an object does not pass (for example, stores background grayscale image data described later). SRAM 243), and
The passage determination means,
Threshold value determining means for determining a threshold value (for example, a host controller 241 for executing a smoke detection process described later);
The respective image data values of the plurality of first determination regions in the plurality of image data captured within a predetermined period are compared with the corresponding reference image data values, and based on the threshold value determined by the threshold value determination unit. An object presence / absence detection means (for example, a medal count circuit 246 described later) for detecting the presence / absence of an object in each of the plurality of first determination areas;
Change mode information indicating a mode of change of the presence or absence of an object in each of the plurality of first determination areas in the plurality of image data, and corresponding to the mode of change when the object passes through the passage, are stored in advance. And a passing order determining unit (for example, a medal counting circuit 246 described later) that determines that the object has passed through the passage when the two match with each other,
The threshold value determining unit changes the threshold value according to a change in luminance of a predetermined second determination region (for example, a smoke determination region A11 described later) in image data obtained via the imaging unit,
The gaming machine, wherein the second determination region is set outside an irradiation range of the light irradiated by the light irradiation unit in the passage forming portion.

遊技媒体を投入する投入口と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部と、
前記通路に光を照射する光照射手段と、
前記通路を含む所定の領域を撮像する撮像手段と、
前記撮像手段を介して得られる画像データに基づいて前記通路を物体が通過したか否かを判定する通過判定手段と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段と、
前記通路形成部に配置した複数の第1判定領域のそれぞれについて、物体が通過していないときの基準画像データ値を予め記憶する基準画像記憶手段と、を有し、
前記通過判定手段は、
閾値を決定する閾値決定手段と、
所定期間内に撮像された複数の前記画像データにおける複数の前記第1判定領域のそれぞれの画像データ値と対応する前記基準画像データ値とを比較し、前記閾値決定手段が決定した閾値に基づいて、複数の前記第1判定領域のそれぞれにおける物体の有無を検出する物体有無検出手段と、
複数の前記画像データにおける複数の前記第1判定領域のそれぞれにおける物体の有無の変化の態様を示す変化態様情報と、物体が前記通路を通過した場合の前記変化の態様に対応し、予め記憶されている基準変化態様情報と、を比較し、一致した場合に、前記通路を物体が通過したと判定する通過順序判定手段と、を有し、
前記閾値決定手段は、前記撮像手段を介して得られる画像データにおける所定の第2判定領域の輝度の変化に応じて、前記閾値を変化させ、
前記第2判定領域は、前記通路形成部における前記光照射手段が照射する光の照射範囲外に設定されている
ことを特徴とする遊技用装置。
An input port for inputting game media,
A game medium detecting means for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion that forms a passage through which the game medium passes;
Light irradiation means for irradiating the passage with light,
Imaging means for imaging a predetermined area including the passage,
Passing determination means for determining whether an object has passed through the passage based on image data obtained via the imaging means,
Game medium determination means for determining whether an object passing through the passage is a regular game medium based on image data obtained via the imaging means,
Reference image storage means for storing in advance a reference image data value when an object does not pass, for each of the plurality of first determination areas arranged in the passage forming section,
The passage determination means,
Threshold determining means for determining a threshold,
The respective image data values of the plurality of first determination regions in the plurality of image data captured within a predetermined period are compared with the corresponding reference image data values, and based on the threshold value determined by the threshold value determination unit. An object presence / absence detection means for detecting the presence / absence of an object in each of the plurality of first determination areas;
Change mode information indicating a mode of change of the presence or absence of an object in each of the plurality of first determination areas in the plurality of image data, and corresponding to the mode of change when the object passes through the passage, are stored in advance. And reference change mode information that has, and when they match, having a pass order determining means for determining that the object has passed through the passage,
The threshold value determination unit changes the threshold value according to a change in luminance of a predetermined second determination area in image data obtained via the imaging unit,
The gaming device, wherein the second determination area is set outside an irradiation range of the light irradiated by the light irradiation unit in the passage forming section.

遊技媒体を投入する投入口(例えば、後述のメダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、後述のメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部(例えば、後述のメダルレール210)と、
前記通路を撮像する撮像手段(例えば、後述のカメラユニット209)と、
前記撮像手段を介して得られる画像データに基づいて前記通路を物体が通過したか否かを判定する通過判定手段(例えば、後述の制御LSI234)と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段(例えば、後述の制御LSI234)と、
前記通路形成部に配置した複数の第1判定領域のそれぞれについて、物体が通過していないときの基準画像データ値を予め記憶する基準画像記憶手段(例えば、後述の背景グレースケール画像データを記憶するSRAM243)と、を有し、
前記通過判定手段は、
閾値を決定する閾値決定手段(例えば、後述の煙検知処理を実行するホストコントローラ241)と、
所定期間内に撮像された複数の前記画像データにおける複数の前記第1判定領域のそれぞれの画像データ値と対応する前記基準画像データ値とを比較し、前記閾値決定手段が決定した閾値に基づいて、複数の前記第1判定領域のそれぞれにおける物体の有無を検出する物体有無検出手段(例えば、後述のメダルカウント回路246)と、
複数の前記画像データにおける複数の前記第1判定領域のそれぞれにおける物体の有無の変化の態様を示す変化態様情報と、物体が前記通路を通過した場合の前記変化の態様に対応し、予め記憶されている基準変化態様情報と、を比較し、一致した場合に、前記通路を物体が通過したと判定する通過順序判定手段(例えば、後述のメダルカウント回路246)と、を有し、
前記閾値決定手段は、前記撮像手段を介して得られる画像データにおける所定の第2判定領域の輝度が所定値以上の場合、前記閾値を第1の閾値から第2の閾値に変更し、
前記閾値を第1の閾値から第2の閾値に変更した後に、前記撮像手段を介して得られる画像データにおける所定の第2判定領域の輝度が所定値よりも小さくなったとき、前記閾値を第2の閾値から第1の閾値に変更する
ことを特徴とする遊技機。
An insertion slot (for example, a medal insertion slot 21 described later) into which a game medium is inserted,
Game medium detection means (for example, a medal selector 201 described later) for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion (for example, a medal rail 210 described later) that forms a passage through which the game medium passes;
Imaging means for imaging the passage (for example, a camera unit 209 described later);
A passage determination unit (for example, a control LSI 234 described later) that determines whether an object has passed through the passage based on image data obtained through the imaging unit;
A game medium determination unit (for example, a control LSI 234 described later) that determines whether an object passing through the passage is a regular game medium based on image data obtained through the imaging unit;
For each of the plurality of first determination areas arranged in the passage forming unit, a reference image storage unit that stores in advance a reference image data value when an object does not pass (for example, stores background grayscale image data described later). SRAM 243), and
The passage determination means,
Threshold value determining means for determining a threshold value (for example, a host controller 241 for executing a smoke detection process described later);
The respective image data values of the plurality of first determination regions in the plurality of image data captured within a predetermined period are compared with the corresponding reference image data values, and based on the threshold value determined by the threshold value determination unit. An object presence / absence detection means (for example, a medal count circuit 246 described later) for detecting the presence / absence of an object in each of the plurality of first determination areas;
Change mode information indicating a mode of change of the presence or absence of an object in each of the plurality of first determination areas in the plurality of image data, and corresponding to the mode of change when the object passes through the passage, are stored in advance. And a passing order determining unit (for example, a medal counting circuit 246 described later) that determines that the object has passed through the passage when the two match with each other,
The threshold value determining unit changes the threshold value from the first threshold value to the second threshold value when the luminance of the predetermined second determination area in the image data obtained via the imaging unit is equal to or greater than a predetermined value;
After changing the threshold value from the first threshold value to the second threshold value, when the luminance of the predetermined second determination area in the image data obtained via the imaging unit becomes smaller than the predetermined value, the threshold value is changed to the second threshold value. A gaming machine characterized by changing from a second threshold to a first threshold.

遊技媒体を投入する投入口と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部と、
前記通路を撮像する撮像手段と、
前記撮像手段を介して得られる画像データに基づいて前記通路を物体が通過したか否かを判定する通過判定手段と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段と、
前記通路形成部に配置した複数の第1判定領域のそれぞれについて、物体が通過していないときの基準画像データ値を予め記憶する基準画像記憶手段と、を有し、
前記通過判定手段は、
閾値を決定する閾値決定手段と、
所定期間内に撮像された複数の前記画像データにおける複数の前記第1判定領域のそれぞれの画像データ値と対応する前記基準画像データ値とを比較し、前記閾値決定手段が決定した閾値に基づいて、複数の前記第1判定領域のそれぞれにおける物体の有無を検出する物体有無検出手段と、
複数の前記画像データにおける複数の前記第1判定領域のそれぞれにおける物体の有無の変化の態様を示す変化態様情報と、物体が前記通路を通過した場合の前記変化の態様に対応し、予め記憶されている基準変化態様情報と、を比較し、一致した場合に、前記通路を物体が通過したと判定する通過順序判定手段と、を有し、
前記閾値決定手段は、前記撮像手段を介して得られる画像データにおける所定の第2判定領域の輝度が所定値以上の場合、前記閾値を第1の閾値から第2の閾値に変更し、
前記閾値を第1の閾値から第2の閾値に変更した後に、前記撮像手段を介して得られる画像データにおける所定の第2判定領域の輝度が所定値よりも小さくなったとき、前記閾値を第2の閾値から第1の閾値に変更する
ことを特徴とする遊技用装置。
An input port for inputting game media,
A game medium detecting means for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion that forms a passage through which the game medium passes;
Imaging means for imaging the passage;
Passing determination means for determining whether an object has passed through the passage based on image data obtained via the imaging means,
Game medium determination means for determining whether an object passing through the passage is a regular game medium based on image data obtained via the imaging means,
Reference image storage means for storing in advance a reference image data value when an object does not pass, for each of the plurality of first determination areas arranged in the passage forming section,
The passage determination means,
Threshold determining means for determining a threshold,
The respective image data values of the plurality of first determination regions in the plurality of image data captured within a predetermined period are compared with the corresponding reference image data values, and based on the threshold value determined by the threshold value determination unit. An object presence / absence detection means for detecting the presence / absence of an object in each of the plurality of first determination areas;
Change mode information indicating a mode of change of the presence or absence of an object in each of the plurality of first determination areas in the plurality of image data, and corresponding to the mode of change when the object passes through the passage, are stored in advance. And reference change mode information that has, and when they match, having a pass order determining means for determining that the object has passed through the passage,
The threshold value determining unit changes the threshold value from the first threshold value to the second threshold value when the luminance of the predetermined second determination area in the image data obtained via the imaging unit is equal to or greater than a predetermined value;
After changing the threshold value from the first threshold value to the second threshold value, when the luminance of the predetermined second determination area in the image data obtained via the imaging unit becomes smaller than the predetermined value, the threshold value is changed to the second threshold value. A gaming device, wherein the threshold value is changed from the second threshold value to the first threshold value.

上記構成の遊技機及び遊技用装置によれば、煙の写り込みによる判定精度の低下を防止できる。   According to the gaming machine and the gaming machine configured as described above, it is possible to prevent a decrease in determination accuracy due to reflection of smoke.

ところで、特開2002−342814号公報には、メダル通路に2個のメダル検知用の近接センサを設け、各近接センサの出力に基づいてメダル通路を遊技用のメダルが通過したかどうかを判断することで、板状体のような器具が用いられた不正行為を検知するスロットマシンが記載されている。
また、特開2010−227160号公報には、遊技機の前面に位置する被写体の画像を、広角レンズを通して取得するカメラ部を有する遊技機が記載されている。
しかしながら、特開2010−227160号公報に記載された広角レンズには、一般的にプラスティックレンズが使用される。特開2002−342814号公報のスロットマシンの筐体内部に、プラスティックレンズを設置すると、筐体内部は、半密閉状態となるため、高温となり、プラスティックレンズが膨張して歪みが発生する虞がある。プラスティックレンズに歪みが発生すると、不正行為の検知精度が低下する可能性がある。
本発明の第18の目的は、レンズの歪みに因る不正行為の検知精度の低下を防止できる遊技機及び遊技用装置を提供することにある。
上記第18の目的を達成するために、本発明は、以下のような構成の遊技機及び遊技用装置を提供する。
In Japanese Patent Application Laid-Open No. 2002-342814, two medal detection proximity sensors are provided in the medal path, and it is determined whether or not a game medal has passed through the medal path based on the output of each proximity sensor. Thus, a slot machine that detects fraudulent activity using a device such as a plate-like body is described.
Japanese Patent Application Laid-Open No. 2010-227160 describes a gaming machine having a camera unit that acquires an image of a subject located in front of the gaming machine through a wide-angle lens.
However, a plastic lens is generally used for the wide-angle lens described in JP-A-2010-227160. When a plastic lens is installed inside the housing of the slot machine disclosed in JP-A-2002-342814, the inside of the housing is in a semi-sealed state, so that the temperature becomes high and the plastic lens may expand to cause distortion. . When distortion occurs in the plastic lens, there is a possibility that the detection accuracy of fraudulent acts is reduced.
An eighteenth object of the present invention is to provide a gaming machine and a gaming device capable of preventing a decrease in the accuracy of detecting fraudulent acts due to lens distortion.
In order to achieve the eighteenth object, the present invention provides a gaming machine and a gaming device having the following configurations.

遊技媒体を投入する投入口(例えば、後述のメダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、後述のメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部(例えば、後述のメダルレール210)と、
前記通路形成部に形成された複数の基準点(例えば、後述の基準マーカ260)と、
前記通路を撮像する撮像手段(例えば、後述のカメラユニット209)と、
温度を計測する温度計測手段(例えば、後述の温度センサ260g)と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を物体が通過したか否かを判定する通過判定手段(例えば、後述の制御LSI234)と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段(例えば、後述の制御LSI234)と、
前記通路形成部に配置した複数の判定領域のそれぞれについて、物体が通過していないときの基準画像データ値を予め記憶する基準画像記憶手段(例えば、後述のSRAM243)と、を有し、
前記通過判定手段は、
所定期間内に撮像された複数の前記画像データにおける複数の前記判定領域のそれぞれの画像データ値と対応する前記基準画像データ値とを比較し、複数の前記判定領域のそれぞれにおける物体の有無を検出する物体有無検出手段(例えば、後述のメダルカウント回路246)と、
複数の前記画像データにおける複数の前記判定領域のそれぞれにおける物体の有無の変化の態様を示す変化態様情報と、物体が前記通路を通過した場合の前記変化の態様に対応し、予め記憶されている基準変化態様情報と、を比較し、一致した場合に、前記通路を物体が通過したと判定する通過順序判定手段(例えば、後述のメダルカウント回路246)と、
前記温度計測手段が計測した温度と前記画像データにおける複数の前記基準点の位置に基づいて、該画像データにおける複数の前記判定領域の位置を補正するための補正値を生成する補正値生成手段(例えば、後述の温度補正処理を実行するホストコントローラ241)と、
生成した前記補正値に基づいて、前記画像データにおける複数の前記判定領域の位置を補正する補正手段(例えば、後述のホストコントローラ241)と、を有する
ことを特徴とする遊技機。
An insertion slot (for example, a medal insertion slot 21 described later) into which a game medium is inserted,
Game medium detection means (for example, a medal selector 201 described later) for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion (for example, a medal rail 210 described later) that forms a passage through which the game medium passes;
A plurality of reference points (for example, a reference marker 260 described later) formed in the passage forming portion;
Imaging means for imaging the passage (for example, a camera unit 209 described later);
Temperature measuring means for measuring the temperature (for example, a temperature sensor 260g described later),
A passage determination unit (for example, a control LSI 234 described later) that determines whether an object has passed through the passage based on image data obtained through the imaging unit;
A game medium determination unit (for example, a control LSI 234 described later) that determines whether an object passing through the passage is a regular game medium based on image data obtained through the imaging unit;
A reference image storage unit (for example, an SRAM 243 described later) that stores in advance a reference image data value when an object does not pass through for each of the plurality of determination regions arranged in the passage forming unit;
The passage determination means,
Comparing the respective image data values of the plurality of determination areas in the plurality of image data captured within a predetermined period with the corresponding reference image data values, and detecting the presence or absence of an object in each of the plurality of determination areas Object detection means (for example, a medal counting circuit 246 described later),
Change mode information indicating a mode of change in the presence or absence of an object in each of the plurality of determination areas in the plurality of image data, and is stored in advance corresponding to the mode of change when the object passes through the passage. And a passing order determining unit (for example, a medal counting circuit 246 to be described later) that compares the reference change mode information with each other and determines that the object has passed through the passage when they match.
Correction value generation means for generating correction values for correcting the positions of the plurality of determination regions in the image data based on the temperature measured by the temperature measurement means and the positions of the plurality of reference points in the image data. For example, a host controller 241) that executes a temperature correction process described later;
A gaming machine comprising: a correction unit (for example, a host controller 241 described later) that corrects the positions of the plurality of determination areas in the image data based on the generated correction value.

遊技媒体を投入する投入口と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部と、
前記通路形成部に形成された複数の基準点と、
前記通路を撮像する撮像手段と、
温度を計測する温度計測手段
前記撮像手段を介して得られる画像データに基づいて、前記通路を物体が通過したか否かを判定する通過判定手段と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段と、
前記通路形成部に配置した複数の判定領域のそれぞれについて、物体が通過していないときの基準画像データ値を予め記憶する基準画像記憶手段と、を有し、
前記通過判定手段は、
所定期間内に撮像された複数の前記画像データにおける複数の前記判定領域のそれぞれの画像データ値と対応する前記基準画像データ値とを比較し、複数の前記判定領域のそれぞれにおける物体の有無を検出する物体有無検出手段と、
複数の前記画像データにおける複数の前記判定領域のそれぞれにおける物体の有無の変化の態様を示す変化態様情報と、物体が前記通路を通過した場合の前記変化の態様に対応し、予め記憶されている基準変化態様情報と、を比較し、一致した場合に、前記通路を物体が通過したと判定する通過順序判定手段と、
前記温度計測手段が計測した温度と前記画像データにおける複数の前記基準点の位置に基づいて、該画像データにおける複数の前記判定領域の位置を補正するための補正値を生成する補正値生成手段と、
生成した前記補正値に基づいて、前記画像データにおける複数の前記判定領域の位置を補正する補正手段と、を有する
ことを特徴とする遊技用装置。
An input port for inputting game media,
A game medium detecting means for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion that forms a passage through which the game medium passes;
A plurality of reference points formed in the passage forming portion;
Imaging means for imaging the passage;
Passage determination means for determining whether or not an object has passed through the passage, based on image data obtained via the temperature measurement means and the imaging means for measuring the temperature,
Game medium determination means for determining whether an object passing through the passage is a regular game medium based on image data obtained via the imaging means,
For each of the plurality of determination regions arranged in the passage forming unit, a reference image storage unit that stores in advance a reference image data value when an object does not pass,
The passage determination means,
Comparing the respective image data values of the plurality of determination areas in the plurality of image data captured within a predetermined period with the corresponding reference image data values, and detecting the presence or absence of an object in each of the plurality of determination areas Object detection means for performing
Change mode information indicating a mode of change in the presence or absence of an object in each of the plurality of determination areas in the plurality of image data, and is stored in advance corresponding to the mode of change when the object passes through the passage. The reference change mode information is compared with, and when they match, a passing order determination unit that determines that the object has passed the passage,
Correction value generating means for generating a correction value for correcting the positions of the plurality of determination regions in the image data based on the temperature measured by the temperature measuring means and the positions of the plurality of reference points in the image data; ,
A gaming device comprising: a correction unit configured to correct the positions of the plurality of determination areas in the image data based on the generated correction value.

遊技媒体を投入する投入口(例えば、後述のメダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、後述のメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部(例えば、後述のメダルレール210)と、
前記通路形成部に形成された複数の基準点(例えば、後述の基準マーカ260)と、
前記通路を撮像する撮像手段(例えば、後述のカメラユニット209)と、
温度を計測する温度計測手段(例えば、後述の温度センサ260g)と、
前記撮像手段を介して得られる画像データに基づいて前記通路を物体が通過したか否かを判定する通過判定手段(例えば、後述の制御LSI234)と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段(例えば、後述の制御LSI234)と、
前記通路形成部に配置した複数の判定領域のそれぞれについて、物体が通過していないときの基準画像データ値を予め記憶する基準画像記憶手段(例えば、後述のSRAM243)と、を有し、
前記通過判定手段は、
所定期間内に撮像された複数の前記画像データにおける複数の前記判定領域のそれぞれの画像データ値と対応する前記基準画像データ値とを比較し、複数の前記判定領域のそれぞれにおける物体の有無を検出する物体有無検出手段(例えば、後述のメダルカウント回路246)と、
複数の前記画像データにおける複数の前記判定領域のそれぞれにおける物体の有無の変化の態様を示す変化態様情報と、物体が前記通路を通過した場合の前記変化の態様に対応し、予め記憶されている基準変化態様情報と、を比較し、一致した場合に、前記通路を物体が通過したと判定する通過順序判定手段(例えば、後述のメダルカウント回路246)と、
前記温度計測手段が計測した温度と前記画像データにおける複数の前記基準点の位置に基づいて、該画像データにおける複数の前記判定領域の位置を補正するための補正値を生成する補正値生成手段(例えば、後述の温度補正処理を実行するホストコントローラ241)と、
生成した前記補正値に基づいて、前記画像データにおける複数の前記判定領域の位置を補正する補正手段(例えば、後述のホストコントローラ241)と、を有し、
前記補正値生成手段は、前記温度計測手段が計測した現在の温度と前回補正値を生成したときの温度との差が所定値以下の場合は、前回生成した前記補正値を維持する
ことを特徴とする遊技機。
An insertion slot (for example, a medal insertion slot 21 described later) into which a game medium is inserted,
Game medium detection means (for example, a medal selector 201 described later) for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion (for example, a medal rail 210 described later) that forms a passage through which the game medium passes;
A plurality of reference points (for example, a reference marker 260 described later) formed in the passage forming portion;
Imaging means for imaging the passage (for example, a camera unit 209 described later);
Temperature measuring means for measuring the temperature (for example, a temperature sensor 260g described later),
A passage determination unit (for example, a control LSI 234 described later) that determines whether an object has passed through the passage based on image data obtained through the imaging unit;
A game medium determination unit (for example, a control LSI 234 described later) that determines whether an object passing through the passage is a regular game medium based on image data obtained through the imaging unit;
A reference image storage unit (for example, an SRAM 243 described later) that stores in advance a reference image data value when an object does not pass through for each of the plurality of determination regions arranged in the passage forming unit;
The passage determination means,
Comparing the respective image data values of the plurality of determination areas in the plurality of image data captured within a predetermined period with the corresponding reference image data values, and detecting the presence or absence of an object in each of the plurality of determination areas Object detection means (for example, a medal counting circuit 246 described later),
Change mode information indicating a mode of change in the presence or absence of an object in each of the plurality of determination areas in the plurality of image data, and is stored in advance corresponding to the mode of change when the object passes through the passage. And a passing order determining unit (for example, a medal counting circuit 246 to be described later) that compares the reference change mode information with each other and determines that the object has passed through the passage when they match.
Correction value generation means for generating correction values for correcting the positions of the plurality of determination regions in the image data based on the temperature measured by the temperature measurement means and the positions of the plurality of reference points in the image data. For example, a host controller 241) that executes a temperature correction process described later;
Correction means (for example, a host controller 241 described later) for correcting the positions of the plurality of determination areas in the image data based on the generated correction value,
When the difference between the current temperature measured by the temperature measurement unit and the temperature at which the previous correction value was generated is equal to or less than a predetermined value, the correction value generation unit maintains the previously generated correction value. A gaming machine.

遊技媒体を投入する投入口と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部と、
前記通路形成部に形成された複数の基準点と、
前記通路を撮像する撮像手段と、
温度を計測する温度計測手段
前記撮像手段を介して得られる画像データに基づいて前記通路を物体が通過したか否かを判定する通過判定手段と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段と、
前記通路形成部に配置した複数の判定領域のそれぞれについて、物体が通過していないときの基準画像データ値を予め記憶する基準画像記憶手段と、を有し、
前記通過判定手段は、
所定期間内に撮像された複数の前記画像データにおける複数の前記判定領域のそれぞれの画像データ値と対応する前記基準画像データ値とを比較し、複数の前記判定領域のそれぞれにおける物体の有無を検出する物体有無検出手段と、
複数の前記画像データにおける複数の前記判定領域のそれぞれにおける物体の有無の変化の態様を示す変化態様情報と、物体が前記通路を通過した場合の前記変化の態様に対応し、予め記憶されている基準変化態様情報と、を比較し、一致した場合に、前記通路を物体が通過したと判定する通過順序判定手段と、
前記温度計測手段が計測した温度と前記画像データにおける複数の前記基準点の位置に基づいて、該画像データにおける複数の前記判定領域の位置を補正するための補正値を生成する補正値生成手段と、
生成した前記補正値に基づいて、前記画像データにおける複数の前記判定領域の位置を補正する補正手段と、を有し、
前記補正値生成手段は、前記温度計測手段が計測した現在の温度と前回補正値を生成したときの温度との差が所定値以下の場合は、前回生成した前記補正値を維持する
ことを特徴とする遊技用装置。
An input port for inputting game media,
A game medium detecting means for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion that forms a passage through which the game medium passes;
A plurality of reference points formed in the passage forming portion;
Imaging means for imaging the passage;
Passage determination means for determining whether or not an object has passed through the passage based on image data obtained via the temperature measurement means and the imaging means for measuring the temperature,
Game medium determination means for determining whether an object passing through the passage is a regular game medium based on image data obtained via the imaging means,
For each of the plurality of determination regions arranged in the passage forming unit, a reference image storage unit that stores in advance a reference image data value when an object does not pass,
The passage determination means,
Comparing the respective image data values of the plurality of determination areas in the plurality of image data captured within a predetermined period with the corresponding reference image data values, and detecting the presence or absence of an object in each of the plurality of determination areas Object detection means for performing
Change mode information indicating a mode of change in the presence or absence of an object in each of the plurality of determination areas in the plurality of image data, and is stored in advance corresponding to the mode of change when the object passes through the passage. The reference change mode information is compared with, and when they match, a passing order determination unit that determines that the object has passed the passage,
Correction value generating means for generating a correction value for correcting the positions of the plurality of determination regions in the image data based on the temperature measured by the temperature measuring means and the positions of the plurality of reference points in the image data; ,
Correction means for correcting the positions of the plurality of determination areas in the image data based on the generated correction value,
When the difference between the current temperature measured by the temperature measurement unit and the temperature at which the previous correction value was generated is equal to or less than a predetermined value, the correction value generation unit maintains the previously generated correction value. A gaming device.

遊技媒体を投入する投入口(例えば、後述のメダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、後述のメダルセレクタ201)と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部(例えば、後述のメダルレール210)と、
前記通路形成部に形成された複数の基準点(例えば、後述の基準マーカ260)と、
前記通路を撮像する撮像手段(例えば、後述のカメラユニット209)と、
温度を計測する温度計測手段(例えば、後述の温度センサ260g)と、
前記撮像手段を介して得られる画像データに基づいて前記通路を物体が通過したか否かを判定する通過判定手段(例えば、後述の制御LSI234)と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段(例えば、後述の制御LSI234)と、
前記通路形成部に配置した複数の判定領域のそれぞれについて、物体が通過していないときの基準画像データ値を予め記憶する基準画像記憶手段(例えば、後述のSRAM243)と、を有し、
前記通過判定手段は、
所定期間内に撮像された複数の前記画像データにおける複数の前記判定領域のそれぞれの画像データ値と対応する前記基準画像データ値とを比較し、複数の前記判定領域のそれぞれにおける物体の有無を検出する物体有無検出手段(例えば、後述のメダルカウント回路246)と、
複数の前記画像データにおける複数の前記判定領域のそれぞれにおける物体の有無の変化の態様を示す変化態様情報と、物体が前記通路を通過した場合の前記変化の態様に対応し、予め記憶されている基準変化態様情報と、を比較し、一致した場合に、前記通路を物体が通過したと判定する通過順序判定手段(例えば、後述のメダルカウント回路246)と、
前記温度計測手段が計測した温度と前記画像データにおける複数の前記基準点の位置に基づいて、該画像データにおける複数の前記判定領域の位置を補正するための補正値を生成する補正値生成手段(例えば、後述の温度補正処理を実行するホストコントローラ241)と、
生成した前記補正値に基づいて、前記画像データにおける複数の前記判定領域の位置を補正する補正手段(例えば、後述のホストコントローラ241)と、を有し、
前記補正値生成手段は、
前回前記補正値を生成したときの前記温度計測手段が計測した温度及び複数の前記判定領域の輝度と、現在の前記温度計測手段が計測した温度及び複数の前記判定領域の輝度とを比較し、
前回前記補正値を生成したときの前記温度計測手段が計測した温度と現在の前記温度計測手段が計測した温度との差が第1の所定値以上であり、且つ、前回前記補正値を生成したときの複数の前記判定領域の輝度と現在の複数の前記判定領域の輝度との差が第2の所定値以下の場合に、前記補正値を生成する
ことを特徴とする遊技機。
An insertion slot (for example, a medal insertion slot 21 described later) into which a game medium is inserted,
Game medium detection means (for example, a medal selector 201 described later) for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion (for example, a medal rail 210 described later) that forms a passage through which the game medium passes;
A plurality of reference points (for example, a reference marker 260 described later) formed in the passage forming portion;
Imaging means for imaging the passage (for example, a camera unit 209 described later);
Temperature measuring means for measuring the temperature (for example, a temperature sensor 260g described later),
A passage determination unit (for example, a control LSI 234 described later) that determines whether an object has passed through the passage based on image data obtained through the imaging unit;
A game medium determination unit (for example, a control LSI 234 described later) that determines whether an object passing through the passage is a regular game medium based on image data obtained through the imaging unit;
A reference image storage unit (for example, an SRAM 243 described later) that stores in advance a reference image data value when an object does not pass through for each of the plurality of determination regions arranged in the passage forming unit;
The passage determination means,
Comparing the respective image data values of the plurality of determination areas in the plurality of image data captured within a predetermined period with the corresponding reference image data values, and detecting the presence or absence of an object in each of the plurality of determination areas Object detection means (for example, a medal counting circuit 246 described later),
Change mode information indicating a mode of change in the presence or absence of an object in each of the plurality of determination areas in the plurality of image data, and is stored in advance corresponding to the mode of change when the object passes through the passage. And a passing order determining unit (for example, a medal counting circuit 246 to be described later) that compares the reference change mode information with each other and determines that the object has passed through the passage when they match.
Correction value generation means for generating correction values for correcting the positions of the plurality of determination regions in the image data based on the temperature measured by the temperature measurement means and the positions of the plurality of reference points in the image data. For example, a host controller 241) that executes a temperature correction process described later;
Correction means (for example, a host controller 241 described later) for correcting the positions of the plurality of determination areas in the image data based on the generated correction value,
The correction value generation means includes:
The temperature measured by the temperature measurement unit and the brightness of the plurality of determination regions when the correction value was generated last time are compared with the current temperature measured by the temperature measurement unit and the brightness of the plurality of determination regions.
The difference between the temperature measured by the temperature measuring means when the correction value was generated last time and the current temperature measured by the temperature measuring means is equal to or greater than a first predetermined value, and the correction value was generated last time. A game machine configured to generate the correction value when a difference between the brightness of the plurality of determination areas and the current brightness of the plurality of determination areas is equal to or less than a second predetermined value.

遊技媒体を投入する投入口と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部と、
前記通路形成部に形成された複数の基準点と、
前記通路を撮像する撮像手段と、
温度を計測する温度計測手段
前記撮像手段を介して得られる画像データに基づいて前記通路を物体が通過したか否かを判定する通過判定手段と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段と、
前記通路形成部に配置した複数の判定領域のそれぞれについて、物体が通過していないときの基準画像データ値を予め記憶する基準画像記憶手段と、を有し、
前記通過判定手段は、
所定期間内に撮像された複数の前記画像データにおける複数の前記判定領域のそれぞれの画像データ値と対応する前記基準画像データ値とを比較し、複数の前記判定領域のそれぞれにおける物体の有無を検出する物体有無検出手段と、
複数の前記画像データにおける複数の前記判定領域のそれぞれにおける物体の有無の変化の態様を示す変化態様情報と、物体が前記通路を通過した場合の前記変化の態様に対応し、予め記憶されている基準変化態様情報と、を比較し、一致した場合に、前記通路を物体が通過したと判定する通過順序判定手段と、
前記温度計測手段が計測した温度と前記画像データにおける複数の前記基準点の位置に基づいて、該画像データにおける複数の前記判定領域の位置を補正するための補正値を生成する補正値生成手段と、
生成した前記補正値に基づいて、前記画像データにおける複数の前記判定領域の位置を補正する補正手段と、を有し、
前記補正値生成手段は、
前回前記補正値を生成したときの前記温度計測手段が計測した温度及び複数の前記判定領域の輝度と、現在の前記温度計測手段が計測した温度及び複数の前記判定領域の輝度とを比較し、
前回前記補正値を生成したときの前記温度計測手段が計測した温度と現在の前記温度計測手段が計測した温度との差が第1の所定値以上であり、且つ、前回前記補正値を生成したときの複数の前記判定領域の輝度と現在の複数の前記判定領域の輝度との差が第2の所定値以下の場合に、前記補正値を生成する
ことを特徴とする遊技用装置。
An input port for inputting game media,
A game medium detecting means for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion that forms a passage through which the game medium passes;
A plurality of reference points formed in the passage forming portion;
Imaging means for imaging the passage;
Passage determination means for determining whether or not an object has passed through the passage based on image data obtained via the temperature measurement means and the imaging means for measuring the temperature,
Game medium determination means for determining whether an object passing through the passage is a regular game medium based on image data obtained via the imaging means,
For each of the plurality of determination regions arranged in the passage forming unit, a reference image storage unit that stores in advance a reference image data value when an object does not pass,
The passage determination means,
Comparing the respective image data values of the plurality of determination areas in the plurality of image data captured within a predetermined period with the corresponding reference image data values, and detecting the presence or absence of an object in each of the plurality of determination areas Object detection means for performing
Change mode information indicating a mode of change in the presence or absence of an object in each of the plurality of determination areas in the plurality of image data, and is stored in advance corresponding to the mode of change when the object passes through the passage. The reference change mode information is compared with, and when they match, a passing order determination unit that determines that the object has passed the passage,
Correction value generating means for generating a correction value for correcting the positions of the plurality of determination regions in the image data based on the temperature measured by the temperature measuring means and the positions of the plurality of reference points in the image data; ,
Correction means for correcting the positions of the plurality of determination areas in the image data based on the generated correction value,
The correction value generation means includes:
The temperature measured by the temperature measurement unit and the brightness of the plurality of determination regions when the correction value was generated last time are compared with the current temperature measured by the temperature measurement unit and the brightness of the plurality of determination regions.
The difference between the temperature measured by the temperature measuring means when the correction value was generated last time and the current temperature measured by the temperature measuring means is equal to or greater than a first predetermined value, and the correction value was generated last time. The game device, wherein the correction value is generated when a difference between the brightness of the plurality of determination areas at that time and the brightness of the current plurality of determination areas is equal to or smaller than a second predetermined value.

上記構成の遊技機及び遊技用装置によれば、レンズの歪みに因る不正行為の検知精度の低下を防止できる。   According to the gaming machine and the gaming machine having the above-described configuration, it is possible to prevent a decrease in the accuracy of detecting fraudulent acts due to lens distortion.

ところで、特開2005−261778号公報には、コインが通過可能に形成されたコイン通路と、光を発光する発光部と、発光部からの光を受光する受光部と、異物検出部と、を備える遊技機が開示されている。異物検出部は、コイン通路を通過するコインが受光部上に位置するときに受光部により得られる第1受光レベルと、該コインが受光部上に位置しないときに受光部により得られる第2受光レベルとの間の所定の受光レベルが受光部により得られている場合には、コイン以外の異物があることを検出する。   Japanese Patent Application Laid-Open No. 2005-261778 discloses a coin passage formed so as to allow a coin to pass therethrough, a light emitting unit that emits light, a light receiving unit that receives light from the light emitting unit, and a foreign object detecting unit. A gaming machine including the same is disclosed. The foreign object detector includes a first light receiving level obtained by the light receiving unit when the coin passing through the coin passage is located on the light receiving unit, and a second light receiving level obtained by the light receiving unit when the coin is not located on the light receiving unit. If a predetermined light receiving level between the levels is obtained by the light receiving unit, it is detected that there is a foreign substance other than coins.

ここで、遊技機がメダルを受け付け可能な状態であるときにのみ、メダルセレクタが正規メダルか否かの判定を行う場合に、メダルセレクタにおいてメダルをガイドするセレクトプレートを不正に操作し、遊技機がメダルを受け付け可能でない状態と誤認識させて、メダルセレクタに正規メダルか否かの判定を行わせない不正行為が行われる場合がある。
しかしながら、特開2005−261778号公報に記載された遊技機では、異物検知以外の異常を検出することができなかった。このため、メダルの受付状態を誤認させることによる不正行為を防止することが望まれている。
本発明の第19の目的は、メダルの受付状態を誤認させることによる不正行為を防止できる遊技機及び遊技用装置を提供することにある。
上記第19の目的を達成するために、本発明は、以下のような構成の遊技機及び遊技用装置を提供する。
Here, if the medal selector determines whether or not the medal is a regular medal only when the gaming machine is in a state capable of accepting the medal, the medal selector illegally operates the select plate for guiding the medal, Is misrecognized as not being able to accept medals, and there is a case where an illegal act is performed in which the medal selector does not determine whether or not the medal is a regular medal.
However, in the gaming machine described in JP-A-2005-261778, an abnormality other than foreign object detection cannot be detected. For this reason, it is desired to prevent fraudulent acts caused by misrecognizing a medal acceptance state.
A nineteenth object of the present invention is to provide a gaming machine and a gaming device capable of preventing fraud by misrecognizing a medal acceptance state.
In order to achieve the nineteenth object, the present invention provides a gaming machine and a gaming device having the following configurations.

遊技媒体を投入する投入口(例えば、後述のメダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、後述のメダルセレクタ501)と、
前記遊技媒体検出手段と接続された制御部(例えば、後述の副制御回路101)と、を備え、
遊技媒体の受付状態を、遊技媒体を受け付け可能な状態(例えば、後述のメダル受付可)又は受け付け不能な状態(例えば、後述のメダル受付不可)に設定可能な遊技機であって、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部(例えば、後述のメダルレール210)と、
遊技機が遊技媒体を受け付け可能な状態のときは所定の案内位置(例えば、後述のガイド位置)に配置され、遊技媒体を受け付け不能な状態のときは所定の排出位置(例えば、後述の排出位置)に配置され、投入された遊技媒体を案内する媒体案内手段(例えば、後述のセレクトプレート207)と、
前記通路を撮像する撮像手段(例えば、後述のカメラユニット209)と、
前記受付状態が遊技媒体を受け付け可能な状態である場合に、前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する判定処理を行う遊技媒体判定手段(例えば、後述の制御LSI234)と、を有し、
前記遊技媒体判定手段は、
前記撮像手段が撮像した画像データにおける予め設定された複数の判定領域の輝度に基づいて、前記媒体案内手段の位置を判定し、判定結果に基づいて前記受付状態を判断する受付判断手段(例えば、後述のセレクトプレート判定処理を実行するホストコントローラ241)を有し、
前記制御部から前記受付状態を示す受付情報を受信し、
前記受付情報が示す前記受付状態と、前記受付判断手段が判断した前記受付状態とが不一致の場合には、前記受付情報が示す前記受付状態に応じて、前記判定処理の実行可否を判定する
ことを特徴とする遊技機。
An insertion slot (for example, a medal insertion slot 21 described later) into which a game medium is inserted,
A game medium detecting means (for example, a medal selector 501 described later) for detecting a game medium inserted from the slot,
A control unit (for example, a sub-control circuit 101 described later) connected to the game medium detection unit,
A gaming machine which can set a reception state of a game medium to a state in which a game medium can be received (for example, a medal can be received described later) or a state in which a game medium cannot be received (for example, a medal cannot be received described later),
The game medium detection means,
A passage forming portion (for example, a medal rail 210 described later) that forms a passage through which the game medium passes;
When the gaming machine is in a state capable of accepting game media, it is arranged at a predetermined guide position (for example, a guide position described later), and when the game machine is unable to accept game media, a predetermined discharge position (for example, a discharge position described later) ), And a medium guiding means (for example, a select plate 207 described later) for guiding the inserted game medium,
Imaging means for imaging the passage (for example, a camera unit 209 described later);
When the reception state is a state in which a game medium can be received, a determination is made based on image data obtained via the imaging unit to determine whether an object passing through the passage is a regular game medium. Game medium determination means (for example, a control LSI 234 described later) for performing processing,
The game medium determination means,
Reception determining means (for example, determining the position of the medium guiding means based on the brightness of a plurality of predetermined determination areas in the image data captured by the imaging means, and determining the receiving state based on the determination result (for example, A host controller 241) that executes a select plate determination process described later,
Receiving reception information indicating the reception state from the control unit,
When the reception state indicated by the reception information does not match the reception state determined by the reception determination unit, it is determined whether or not the determination process can be performed according to the reception state indicated by the reception information. A gaming machine characterized by the following.

遊技媒体を投入する投入口と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段と、
遊技媒体の受付状態を、遊技媒体を受け付け可能な状態又は受け付け不能な様態に設定可能な遊技媒体受付手段と、
前記遊技媒体検出手段と接続された制御部と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部と、
前記遊技媒体受付手段が遊技媒体を受け付け可能な状態のときは所定の案内位置に配置され、遊技媒体を受け付け不能な状態のときは所定の排出位置に配置され、投入された遊技媒体を案内する媒体案内手段と、
前記通路を撮像する撮像手段と、
前記受付状態が遊技媒体を受け付け可能な状態である場合に、前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する判定処理を行う遊技媒体判定手段と、を有し、
前記遊技媒体判定手段は、
前記撮像手段が撮像した画像データにおける予め設定された複数の判定領域の輝度に基づいて、前記媒体案内手段の位置を判定し、判定結果に基づいて前記受付状態を判断する受付判断手段を有し、
前記制御部から前記受付状態を示す受付情報を受信し、
前記受付情報が示す前記受付状態と、前記受付判断手段が判断した前記受付状態とが不一致の場合には、前記受付情報が示す前記受付状態に応じて、前記判定処理の実行可否を判定する
ことを特徴とする遊技用装置。
An input port for inputting game media,
Game medium detection means for detecting a game medium inserted from the slot,
Game medium receiving means capable of setting a game medium reception state to a state in which game media can be received or a mode in which game media cannot be received,
A control unit connected to the game medium detection means,
The game medium detection means,
A passage forming portion that forms a passage through which the game medium passes;
The game medium receiving means is arranged at a predetermined guide position when the game medium can be accepted, and is arranged at a predetermined discharge position when the game medium cannot be accepted, and guides the inserted game medium. Medium guiding means;
Imaging means for imaging the passage;
When the reception state is a state in which a game medium can be received, a determination is made based on image data obtained via the imaging unit to determine whether an object passing through the passage is a regular game medium. Game media determination means for performing processing,
The game medium determination means,
A reception determining unit configured to determine a position of the medium guiding unit based on brightness of a plurality of predetermined determination regions in the image data captured by the imaging unit and determine the reception state based on a determination result. ,
Receiving reception information indicating the reception state from the control unit,
When the reception state indicated by the reception information does not match the reception state determined by the reception determination unit, it is determined whether or not the determination process can be executed according to the reception state indicated by the reception information. A gaming device characterized by the following.

遊技媒体を投入する投入口(例えば、後述のメダル投入口21)と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段(例えば、後述のメダルセレクタ501)と、
前記遊技媒体検出手段と接続された制御部(例えば、後述の副制御回路101)と、を備え、
遊技媒体の受付状態を、遊技媒体を受け付け可能な状態(例えば、後述のメダル受付可)又は受け付け不能な状態(例えば、後述のメダル受付不可)に設定可能な遊技機であって、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部(例えば、後述のメダルレール210)と、
遊技機が遊技媒体を受け付け可能な状態のときは所定の案内位置(例えば、後述のガイド位置)に配置され、遊技媒体を受け付け不能な状態のときは所定の排出位置(例えば、後述の排出位置)に配置され、投入された遊技媒体を案内する媒体案内手段(例えば、後述のセレクトプレート207)と、
前記通路を撮像する撮像手段(例えば、後述のカメラユニット209)と、
前記受付状態が遊技媒体を受け付け可能な状態である場合に、前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する判定処理を行う遊技媒体判定手段(例えば、後述の制御LSI234)と、を有し、
前記遊技媒体判定手段は、
前記撮像手段が撮像した画像データにおける予め設定された複数の判定領域の輝度に基づいて、前記媒体案内手段の位置を判定し、判定結果に基づいて前記受付状態を判断する受付判断手段(例えば、後述のセレクトプレート判定処理を実行するホストコントローラ241)を有し、
前記制御部から前記受付状態を示す受付情報を受信し、
前記受付情報が示す前記受付状態と、前記受付判断手段が判断した前記受付状態とが不一致の場合には、前記受付判断手段が判断した前記受付状態に応じて、前記判定処理の実行可否を判定する
ことを特徴とする遊技機。
An insertion slot (for example, a medal insertion slot 21 described later) into which a game medium is inserted,
A game medium detecting means (for example, a medal selector 501 described later) for detecting a game medium inserted from the slot,
A control unit (for example, a sub-control circuit 101 described later) connected to the game medium detection unit,
A gaming machine which can set a reception state of a game medium to a state in which a game medium can be received (for example, a medal can be received described later) or a state in which a game medium cannot be received (for example, a medal cannot be received described later),
The game medium detection means,
A passage forming portion (for example, a medal rail 210 described later) that forms a passage through which the game medium passes;
When the gaming machine is in a state capable of accepting game media, it is arranged at a predetermined guide position (for example, a guide position described later), and when the game machine is unable to accept game media, a predetermined discharge position (for example, a discharge position described later) ), And a medium guiding means (for example, a select plate 207 described later) for guiding the inserted game medium,
Imaging means for imaging the passage (for example, a camera unit 209 described later);
When the reception state is a state in which a game medium can be received, a determination is made based on image data obtained via the imaging unit to determine whether an object passing through the passage is a regular game medium. Game medium determination means (for example, a control LSI 234 described later) for performing processing,
The game medium determination means,
Reception determining means (for example, determining the position of the medium guiding means based on the brightness of a plurality of predetermined determination areas in the image data captured by the imaging means, and determining the receiving state based on the determination result (for example, A host controller 241) that executes a select plate determination process described later,
Receiving reception information indicating the reception state from the control unit,
When the reception state indicated by the reception information does not match the reception state determined by the reception determination unit, it is determined whether or not the determination process can be performed according to the reception state determined by the reception determination unit. A gaming machine characterized by:

遊技媒体を投入する投入口と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段と、
遊技媒体の受付状態を、遊技媒体を受け付け可能な状態又は受け付け不能な様態に設定可能な遊技媒体受付手段と、
前記遊技媒体検出手段と接続された制御部と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部と、
前記遊技媒体受付手段が遊技媒体を受け付け可能な状態のときは所定の案内位置に配置され、遊技媒体を受け付け不能な状態のときは所定の排出位置に配置され、投入された遊技媒体を案内する媒体案内手段と、
前記通路を撮像する撮像手段と、
前記受付状態が遊技媒体を受け付け可能な状態である場合に、前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する判定処理を行う遊技媒体判定手段と、を有し、
前記遊技媒体判定手段は、
前記撮像手段が撮像した画像データにおける予め設定された複数の判定領域の輝度に基づいて、前記媒体案内手段の位置を判定し、判定結果に基づいて前記受付状態を判断する受付判断手段を有し、
前記制御部から前記受付状態を示す受付情報を受信し、
前記受付情報が示す前記受付状態と、前記受付判断手段が判断した前記受付状態とが不一致の場合には、前記受付判断手段が判断した前記受付状態に応じて、前記判定処理の実行可否を判定する
ことを特徴とする遊技用装置。
An input port for inputting game media,
Game medium detection means for detecting a game medium inserted from the slot,
Game medium receiving means capable of setting a game medium reception state to a state in which game media can be received or a mode in which game media cannot be received,
A control unit connected to the game medium detection means,
The game medium detection means,
A passage forming portion that forms a passage through which the game medium passes;
The game medium receiving means is arranged at a predetermined guide position when the game medium can be accepted, and is arranged at a predetermined discharge position when the game medium cannot be accepted, and guides the inserted game medium. Medium guiding means;
Imaging means for imaging the passage;
When the reception state is a state in which a game medium can be received, a determination is made based on image data obtained via the imaging unit to determine whether an object passing through the passage is a regular game medium. Game media determination means for performing processing,
The game medium determination means,
A reception determining unit configured to determine a position of the medium guiding unit based on brightness of a plurality of predetermined determination regions in the image data captured by the imaging unit and determine the reception state based on a determination result. ,
Receiving reception information indicating the reception state from the control unit,
When the reception state indicated by the reception information does not match the reception state determined by the reception determination unit, it is determined whether or not the determination process can be performed according to the reception state determined by the reception determination unit. A gaming device characterized by:

上記構成の遊技機及び遊技用装置によれば、メダルの受付状態を誤認させることによる不正行為を防止することができる。   According to the gaming machine and the gaming machine configured as described above, it is possible to prevent an improper act caused by misrecognizing a medal acceptance state.

1…パチスロ、 3L…左リール、 3C…中リール、 3R…右リール、 4…リール表示窓、 21…メダル投入口、 23…スタートレバー、 32…メダル払出口、 51…ホッパー装置、 71…主制御基板、 72…副制御基板、 79…スタートスイッチ、 80…ストップスイッチ基板、 91…主制御回路、 101…副制御回路、 140…キャンセルシュータ、 201…メダルセレクタ、 202…メダルシュート、 203…スロープ、 204…ベース板部、 205…サブプレート、 206…キャンセルシュータ、 207…セレクトプレート、 208…メダルソレノイド、 209…カメラユニット、 210…メダルレール、 211…メダル入口部、 212…中央孔、 213…メダルプレッシャ、 217…磁石、 218…アフタメダルプレッシャ、 227…メダルストッパ部、 230…第1の基板、 231…第2の基板、 232…CMOSイメージセンサ、 233…LED、 234…制御LSI、 235…脚部、 241…ホストコントローラ、 242…画像認識DSP回路、 243…SRAM、 244…フラッシュメモリ、 245…ISP回路、 246…メダルカウント回路、 247…カラー認識回路、 248…魚眼補正スケーラ回路、 249…画像認識アクセラレータ回路、 250…GPIO、 251…ISI回路   DESCRIPTION OF SYMBOLS 1 ... Pachislot, 3L ... Left reel, 3C ... Middle reel, 3R ... Right reel, 4 ... Reel display window, 21 ... Medal slot, 23 ... Start lever, 32 ... Medal payout outlet, 51 ... Hopper device, 71 ... Main Control board, 72: Sub-control board, 79: Start switch, 80: Stop switch board, 91: Main control circuit, 101: Sub-control circuit, 140: Cancel shooter, 201: Medal selector, 202: Medal shoot, 203: Slope , 204: Base plate portion, 205: Sub plate, 206: Cancel shooter, 207: Select plate, 208: Medal solenoid, 209: Camera unit, 210: Medal rail, 211: Medal entrance, 212: Central hole, 213 ... Medal pressure, 217 ... magnet, 218: After Medal Pressure, 227: Medal Stopper Unit, 230: First Board, 231: Second Board, 232: CMOS Image Sensor, 233: LED, 234: Control LSI, 235: Leg, 241: Host Controller 242, image recognition DSP circuit, 243 SRAM, 244 flash memory, 245 ISP circuit, 246 medal count circuit, 247 color recognition circuit, 248 fisheye correction scaler circuit, 249 image recognition accelerator circuit, 250 ... GPIO, 251 ... ISI circuit

Claims (2)

遊技媒体を投入する投入口と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部と、
前記通路形成部に形成された複数の基準点と、
前記通路を撮像する撮像手段と、
温度を計測する温度計測手段
前記撮像手段を介して得られる画像データに基づいて前記通路を物体が通過したか否かを判定する通過判定手段と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段と、
前記通路形成部に配置した複数の判定領域のそれぞれについて、物体が通過していないときの基準画像データ値を予め記憶する基準画像記憶手段と、を有し、
前記通過判定手段は、
所定期間内に撮像された複数の前記画像データにおける複数の前記判定領域のそれぞれの画像データ値と対応する前記基準画像データ値とを比較し、複数の前記判定領域のそれぞれにおける物体の有無を検出する物体有無検出手段と、
複数の前記画像データにおける複数の前記判定領域のそれぞれにおける物体の有無の変化の態様を示す変化態様情報と、物体が前記通路を通過した場合の前記変化の態様に対応し、予め記憶されている基準変化態様情報と、を比較し、一致した場合に、前記通路を物体が通過したと判定する通過順序判定手段と、
前記温度計測手段が計測した温度と前記画像データにおける複数の前記基準点の位置に基づいて、該画像データにおける複数の前記判定領域の位置を補正するための補正値を生成する補正値生成手段と、
生成した前記補正値に基づいて、前記画像データにおける複数の前記判定領域の位置を補正する補正手段と、を有し、
前記補正値生成手段は、
前回前記補正値を生成したときの前記温度計測手段が計測した温度及び複数の前記判定領域の輝度と、現在の前記温度計測手段が計測した温度及び複数の前記判定領域の輝度とを比較し、
前回前記補正値を生成したときの前記温度計測手段が計測した温度と現在の前記温度計測手段が計測した温度との差が第1の所定値以上であり、且つ、前回前記補正値を生成したときの複数の前記判定領域の輝度と現在の複数の前記判定領域の輝度との差が第2の所定値以下の場合に、前記補正値を生成する
ことを特徴とする遊技機。
An input port for inputting game media,
A game medium detecting means for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion that forms a passage through which the game medium passes;
A plurality of reference points formed in the passage forming portion;
Imaging means for imaging the passage;
Passage determination means for determining whether or not an object has passed through the passage based on image data obtained via the temperature measurement means and the imaging means for measuring the temperature,
Game medium determination means for determining whether an object passing through the passage is a regular game medium based on image data obtained via the imaging means,
For each of the plurality of determination regions arranged in the passage forming unit, a reference image storage unit that stores in advance a reference image data value when an object does not pass,
The passage determination means,
Comparing the respective image data values of the plurality of determination areas in the plurality of image data captured within a predetermined period with the corresponding reference image data values, and detecting the presence or absence of an object in each of the plurality of determination areas Object detection means for performing
Change mode information indicating a mode of change in the presence or absence of an object in each of the plurality of determination areas in the plurality of image data, and is stored in advance corresponding to the mode of change when the object passes through the passage. The reference change mode information is compared with, and when they match, a passing order determination unit that determines that the object has passed the passage,
Correction value generating means for generating a correction value for correcting the positions of the plurality of determination regions in the image data based on the temperature measured by the temperature measuring means and the positions of the plurality of reference points in the image data; ,
Correction means for correcting the positions of the plurality of determination areas in the image data based on the generated correction value,
The correction value generation means includes:
The temperature measured by the temperature measurement unit and the brightness of the plurality of determination regions when the correction value was generated last time are compared with the current temperature measured by the temperature measurement unit and the brightness of the plurality of determination regions.
The difference between the temperature measured by the temperature measuring means when the correction value was generated last time and the current temperature measured by the temperature measuring means is equal to or greater than a first predetermined value, and the correction value was generated last time. A game machine configured to generate the correction value when a difference between the brightness of the plurality of determination areas and the current brightness of the plurality of determination areas is equal to or less than a second predetermined value.
遊技媒体を投入する投入口と、
前記投入口から投入された遊技媒体を検出する遊技媒体検出手段と、を備え、
前記遊技媒体検出手段は、
遊技媒体が通過する通路を形成する通路形成部と、
前記通路形成部に形成された複数の基準点と、
前記通路を撮像する撮像手段と、
温度を計測する温度計測手段
前記撮像手段を介して得られる画像データに基づいて前記通路を物体が通過したか否かを判定する通過判定手段と、
前記撮像手段を介して得られる画像データに基づいて、前記通路を通過する物体が正規の遊技媒体であるか否かを判定する遊技媒体判定手段と、
前記通路形成部に配置した複数の判定領域のそれぞれについて、物体が通過していないときの基準画像データ値を予め記憶する基準画像記憶手段と、を有し、
前記通過判定手段は、
所定期間内に撮像された複数の前記画像データにおける複数の前記判定領域のそれぞれの画像データ値と対応する前記基準画像データ値とを比較し、複数の前記判定領域のそれぞれにおける物体の有無を検出する物体有無検出手段と、
複数の前記画像データにおける複数の前記判定領域のそれぞれにおける物体の有無の変化の態様を示す変化態様情報と、物体が前記通路を通過した場合の前記変化の態様に対応し、予め記憶されている基準変化態様情報と、を比較し、一致した場合に、前記通路を物体が通過したと判定する通過順序判定手段と、
前記温度計測手段が計測した温度と前記画像データにおける複数の前記基準点の位置に基づいて、該画像データにおける複数の前記判定領域の位置を補正するための補正値を生成する補正値生成手段と、
生成した前記補正値に基づいて、前記画像データにおける複数の前記判定領域の位置を補正する補正手段と、を有し、
前記補正値生成手段は、
前回前記補正値を生成したときの前記温度計測手段が計測した温度及び複数の前記判定領域の輝度と、現在の前記温度計測手段が計測した温度及び複数の前記判定領域の輝度とを比較し、
前回前記補正値を生成したときの前記温度計測手段が計測した温度と現在の前記温度計測手段が計測した温度との差が第1の所定値以上であり、且つ、前回前記補正値を生成したときの複数の前記判定領域の輝度と現在の複数の前記判定領域の輝度との差が第2の所定値以下の場合に、前記補正値を生成する
ことを特徴とする遊技用装置。
An input port for inputting game media,
A game medium detecting means for detecting a game medium inserted from the insertion port,
The game medium detection means,
A passage forming portion that forms a passage through which the game medium passes;
A plurality of reference points formed in the passage forming portion;
Imaging means for imaging the passage;
Passage determination means for determining whether or not an object has passed through the passage based on image data obtained via the temperature measurement means and the imaging means for measuring the temperature,
Game medium determination means for determining whether an object passing through the passage is a regular game medium based on image data obtained via the imaging means,
For each of the plurality of determination regions arranged in the passage forming unit, a reference image storage unit that stores in advance a reference image data value when an object does not pass,
The passage determination means,
Comparing the respective image data values of the plurality of determination areas in the plurality of image data captured within a predetermined period with the corresponding reference image data values, and detecting the presence or absence of an object in each of the plurality of determination areas Object detection means for performing
Change mode information indicating a mode of change in the presence or absence of an object in each of the plurality of determination areas in the plurality of image data, and is stored in advance corresponding to the mode of change when the object passes through the passage. The reference change mode information is compared with, and when they match, a passing order determination unit that determines that the object has passed the passage,
Correction value generating means for generating a correction value for correcting the positions of the plurality of determination regions in the image data based on the temperature measured by the temperature measuring means and the positions of the plurality of reference points in the image data; ,
Correction means for correcting the positions of the plurality of determination areas in the image data based on the generated correction value,
The correction value generation means includes:
The temperature measured by the temperature measurement unit and the brightness of the plurality of determination regions when the correction value was generated last time are compared with the current temperature measured by the temperature measurement unit and the brightness of the plurality of determination regions.
The difference between the temperature measured by the temperature measuring means when the correction value was generated last time and the current temperature measured by the temperature measuring means is equal to or greater than a first predetermined value, and the correction value was generated last time. The game device, wherein the correction value is generated when a difference between the brightness of the plurality of determination areas at that time and the brightness of the current plurality of determination areas is equal to or smaller than a second predetermined value.
JP2018128834A 2018-07-06 2018-07-06 Gaming machines and equipment for gaming Active JP7049200B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018128834A JP7049200B2 (en) 2018-07-06 2018-07-06 Gaming machines and equipment for gaming

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018128834A JP7049200B2 (en) 2018-07-06 2018-07-06 Gaming machines and equipment for gaming

Publications (2)

Publication Number Publication Date
JP2020005840A true JP2020005840A (en) 2020-01-16
JP7049200B2 JP7049200B2 (en) 2022-04-06

Family

ID=69149488

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018128834A Active JP7049200B2 (en) 2018-07-06 2018-07-06 Gaming machines and equipment for gaming

Country Status (1)

Country Link
JP (1) JP7049200B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011147079A (en) * 2010-01-18 2011-07-28 Ricoh Co Ltd Image pickup device
WO2014136392A1 (en) * 2013-03-05 2014-09-12 コニカミノルタ株式会社 Image processing device, image processing method and imaging device
JP2017012591A (en) * 2015-07-03 2017-01-19 山佐株式会社 Game machine
JP2018033713A (en) * 2016-08-31 2018-03-08 株式会社ユニバーサルエンターテインメント Game machine
JP2018102402A (en) * 2016-12-22 2018-07-05 株式会社ユニバーサルエンターテインメント Game machine and game device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011147079A (en) * 2010-01-18 2011-07-28 Ricoh Co Ltd Image pickup device
WO2014136392A1 (en) * 2013-03-05 2014-09-12 コニカミノルタ株式会社 Image processing device, image processing method and imaging device
JP2017012591A (en) * 2015-07-03 2017-01-19 山佐株式会社 Game machine
JP2018033713A (en) * 2016-08-31 2018-03-08 株式会社ユニバーサルエンターテインメント Game machine
JP2018102402A (en) * 2016-12-22 2018-07-05 株式会社ユニバーサルエンターテインメント Game machine and game device

Also Published As

Publication number Publication date
JP7049200B2 (en) 2022-04-06

Similar Documents

Publication Publication Date Title
JP2018187271A (en) Game machine and game device
JP7078470B2 (en) Gaming machines and equipment for gaming
JP7078473B2 (en) Gaming machines and equipment for gaming
JP7078472B2 (en) Gaming machines and equipment for gaming
JP7078471B2 (en) Gaming machines and equipment for gaming
JP7045274B2 (en) Gaming machines and equipment for gaming
JP7045275B2 (en) Gaming machines and equipment for gaming
JP7189593B2 (en) Gaming machines and gaming devices
JP7093248B2 (en) Gaming machines and equipment for gaming
JP7093253B2 (en) Gaming machines and equipment for gaming
JP7093252B2 (en) Gaming machines and equipment for gaming
JP7093250B2 (en) Gaming machines and equipment for gaming
JP7093251B2 (en) Gaming machines and equipment for gaming
JP7093249B2 (en) Gaming machines and equipment for gaming
JP7093254B2 (en) Gaming machines and equipment for gaming
JP7078474B2 (en) Gaming machines and equipment for gaming
JP6991256B2 (en) Pachinko machine
JP7061038B2 (en) Gaming machines and equipment for gaming
JP7049200B2 (en) Gaming machines and equipment for gaming
JP2020005841A (en) Game machine and game device
JP2021108684A (en) Game machine
JP2021108685A (en) Game machine
JP2021108683A (en) Game machine
JP2021108686A (en) Game machine
JP2021108682A (en) Game machine

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210303

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220222

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220325

R150 Certificate of patent or registration of utility model

Ref document number: 7049200

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150