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

JP6522683B2 - Gaming machine - Google Patents

Gaming machine Download PDF

Info

Publication number
JP6522683B2
JP6522683B2 JP2017076685A JP2017076685A JP6522683B2 JP 6522683 B2 JP6522683 B2 JP 6522683B2 JP 2017076685 A JP2017076685 A JP 2017076685A JP 2017076685 A JP2017076685 A JP 2017076685A JP 6522683 B2 JP6522683 B2 JP 6522683B2
Authority
JP
Japan
Prior art keywords
output
information
data
external
external output
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.)
Active
Application number
JP2017076685A
Other languages
Japanese (ja)
Other versions
JP2017124238A (en
Inventor
芳典 斎藤
芳典 斎藤
真一 守屋
真一 守屋
直人 菊池
直人 菊池
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Universal Entertainment Corp
Sammy Corp
Original Assignee
Universal Entertainment Corp
Sammy 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, Sammy Corp filed Critical Universal Entertainment Corp
Priority to JP2017076685A priority Critical patent/JP6522683B2/en
Publication of JP2017124238A publication Critical patent/JP2017124238A/en
Application granted granted Critical
Publication of JP6522683B2 publication Critical patent/JP6522683B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Slot Machines And Peripheral Devices (AREA)
  • Pinball Game Machines (AREA)

Description

本発明は、例えばパチスロあるいはパチンコといった遊技機に関する。   The present invention relates to a gaming machine such as pachislot or pachinko, for example.

従来、複数の図柄がそれぞれの表面に配された複数のリールと、遊技メダルやコイン等(以下、「メダル等」という)が投入され、遊技者によりスタートレバーが操作されたことを検出し、複数のリールの回転の開始を要求するスタートスイッチと、複数のリールのそれぞれに対応して設けられたストップボタンが遊技者により押されたことを検出し、該当するリールの回転の停止を要求する信号を出力するストップスイッチと、複数のリールのそれぞれに対応して設けられ、それぞれの駆動力を各リールに伝達するステッピングモータと、スタートスイッチおよびストップスイッチにより出力された信号に基づいて、ステッピングモータの動作を制御し、各リールの回転およびその停止を行うリール制御部とを備え、スタートレバーが操作されたことを検出すると、乱数値に基づいて抽籤を行い、この抽籤の結果(以下、「内部当籤役」という)とストップボタンが操作されたことを検出したタイミングとに基づいてリールの回転の停止を行う、いわゆるパチスロと称される遊技機が知られている。   Conventionally, it is detected that a player operates a start lever by inserting a plurality of reels on which a plurality of symbols are arranged on each surface, game medals, coins and the like (hereinafter referred to as "medals and the like"), It detects that the player has pressed the start switch requesting the start of rotation of the plurality of reels and the stop button provided corresponding to each of the plurality of reels, and requests to stop the rotation of the corresponding reel A stepping motor for outputting a signal, a stepping motor provided corresponding to each of the plurality of reels and transmitting the respective driving force to each reel, and a stepping motor based on the signals outputted by the start switch and the stop switch Control of the motion of each reel, and a reel control unit for rotating and stopping each reel, and the start lever is operated When it is detected, the lottery is performed based on the random number value, and the reel rotation is performed based on the result of the lottery (hereinafter referred to as "internal winning combination") and the timing when it is detected that the stop button is operated. A so-called pachislot gaming machine is known which performs a stop.

この種の遊技機は、リール等を収容するキャビネットと、このキャビネットに対して開閉可能に取り付けられるフロントドアとを備えている。キャビネットに収容されたリールは、フロントドアに設けられた表示窓を介して遊技者に視認される。キャビネットには、主制御回路を構成する主制御基板(主基板)が配設されている。主制御回路は、例えば、プログラム上で乱数を用いて行われる内部当籤役の決定、複数のリールの回転及び停止、複数のリールを停止したときに表示窓に表示された図柄に基づく入賞の有無の判定などの遊技機における遊技の主な流れを制御する。一方、フロントドアには、副制御回路を構成する副制御基板(副基板)が配設されている。副制御回路は、音や映像の表示等による演出の実行を制御する。この演出は、例えば、遊技者によるスタートレバーの操作や、主制御回路により決定された内部当籤役などに基づいて副制御回路によって決定される。このようにして実行される演出の中には、例えば、AT(アシストタイム)又はART(アシストタイムとリプレイタイムを兼ねる特典)に係る遊技者に有利となる情報を報知するものがある。また、遊技機には、外部出力機能として、主制御基板からの外部出力情報をいわゆるホールコンピュータ等の外部機器へと出力するための複数の出力端子を有する外部出力基板を備えたものもある(例えば特許文献1参照)。   This type of game machine is provided with a cabinet that accommodates reels and the like, and a front door that is attached to the cabinet so as to be able to open and close. The reel housed in the cabinet is viewed by the player through a display window provided on the front door. The cabinet is provided with a main control board (main board) which constitutes a main control circuit. The main control circuit determines, for example, the determination of the internal winning combination performed using random numbers in the program, rotation and stop of the plurality of reels, presence or absence of a prize based on the symbol displayed in the display window when the plurality of reels are stopped. Control the main flow of the game in the gaming machine, such as the determination of. On the other hand, a sub control board (sub board) which constitutes a sub control circuit is disposed on the front door. The sub control circuit controls the execution of the effect by the display of sound and video. This effect is determined by the sub control circuit based on, for example, the operation of the start lever by the player, the internal winning combination determined by the main control circuit, or the like. Among the effects executed in this manner, for example, there is one that reports information that is advantageous to a player related to AT (assist time) or ART (a benefit that combines an assist time and a replay time). In addition, some gaming machines have an external output board having a plurality of output terminals for outputting external output information from a main control board to an external device such as a so-called hall computer as an external output function (see FIG. See, for example, Patent Document 1).

特開2010−221051号公報JP, 2010-221051, A

しかしながら、上記従来の外部出力機能を備えた遊技機では、複数の遊技機がホールコンピュータに接続されており、遊技機側において出力タイミングを調整することなく複数の外部出力情報を無秩序に出力すると、ホールコンピュータに多大な処理負担がかかり、処理落ちが発生するおそれがあった。   However, in the gaming machine provided with the above-mentioned conventional external output function, a plurality of gaming machines are connected to the hall computer, and when the plurality of external output information is disorderly output without adjusting the output timing on the gaming machine side, The processing load on the hall computer is very large, and there is a risk that processing omission may occur.

本発明は、上記した事情のもとで考え出されたものであり、複数の外部出力情報を外部機器へと出力する際にそれらの出力タイミングを調整することができ、ひいては外部機器の処理負担を軽減することができる遊技機を提供することを目的とする。   The present invention has been conceived under the above-mentioned circumstances, and when outputting a plurality of external output information to an external device, it is possible to adjust the output timing of those, and thus the processing load of the external device. It is an object of the present invention to provide a gaming machine capable of reducing the

本発明の遊技機は、
遊技に係る各種の制御を行う制御部と、
前記制御部から遊技機外の外部機器へと外部出力情報を出力するための外部出力手段と、を備え、
前記制御部は、
遊技に関わる制御処理を行う制御処理手段と、
前記制御処理手段から第1の通信速度で前記外部出力情報を入力するとともに、出力先に応じた前記第1の通信速度よりも速い第2の通信速度で当該外部出力情報を出力する第1の通信手段と、を有し、
前記外部出力手段は、
前記第1の通信手段から前記外部出力情報を入力するとともに、当該外部出力情報を出力する第2の通信手段と、
前記第2の通信手段から前記外部出力情報を入力するとともに、当該外部出力情報をリレー出力信号に変換されたものを前記外部機器へと出力する出力手段と、を有し、
前記制御処理手段は、
前記外部出力情報として、遊技媒体の払い出しを示す第1の外部出力情報を出力可能であり、当該第1の外部出力情報に続いて所定時間経過後に外部出力すべき旨を示す遅延時間情報を含む第2の外部出力情報を出力可能であるとともに、前記第1の外部出力情報とは異なるタイミングで外部出力される第3の外部出力情報も出力可能であって、
前記第1の通信手段は、
前記制御処理手段から入力した前記外部出力情報をコマンドの種別を示すコマンド情報及び該コマンド情報に付随してパラメータを示す設定データに区別し、前記コマンド情報を参照することにより前記コマンドの種別を判別し、当該コマンドの種別に応じた処理を実行する出力情報生成手段を有し、
前記出力情報生成手段は、
前記外部出力情報が前記第1の外部出力情報の場合に、前記第1の外部出力情報に基づいて、前記外部出力情報の変換に適した第1の出力情報を生成する第1情報生成手段と、
前記外部出力情報が前記第2の外部出力情報の場合に、前記第2の外部出力情報に基づいて、前記外部出力情報の変換に適した第2の出力情報を生成する第2情報生成手段と、
前記外部出力情報が前記第3の外部出力情報の場合に、前記第3の外部出力情報に基づいて、前記外部出力情報の変換に適した第3の出力情報を生成する第3情報生成手段と、
前記第1の出力情報、前記第2の出力情報、及び、前記第3の出力情報を前記第2の通信手段へと出力する情報出力手段と、を作動可能な機能として有し、
前記第2の通信手段は、
前記情報出力手段から出力された前記第1の出力情報、前記第2の出力情報、及び、前記第3の出力情報を入力し、これらの出力情報を格納領域に格納する情報入力手段と、
前記情報入力手段により入力した前記第1の出力情報、前記第2の出力情報、及び、前記第3の出力情報と、前記格納領域の情報が異なる場合に、前記出力手段へ出力するための前記リレー出力信号に変換して前記出力手段を介して前記外部機器へと出力する信号出力手段と、を作動可能な機能として有することを特徴としている。
また、本発明の他の遊技機は、
遊技に係る各種の主制御処理を行う主制御処理手段と、
複数の周辺機器に対して各種の副制御処理を行う副制御処理手段と、
前記主制御処理手段から前記副制御処理手段へと主制御情報を出力するための主制御出力手段と、
前記主制御処理手段から遊技機外の外部機器へと外部出力情報を出力するための外部出力手段と、を備え、
前記外部出力手段は、
前記主制御処理手段から前記外部出力情報を入力するとともに、当該外部出力情報を暗号化してシリアル通信方式で出力する第1の通信手段と、
前記第1の通信手段から暗号化された前記外部出力情報を入力するとともに、当該外部出力情報を復号化して出力する第2の通信手段と、
前記第2の通信手段から前記外部出力情報を入力するとともに、当該外部出力情報をパラレル信号方式で前記外部機器へと出力する出力手段と、を有し、
前記主制御処理手段は、
前記外部出力情報として、第1の外部出力情報を出力可能であるとともに、当該第1の外部出力情報に続いて外部出力すべき第2の外部出力情報を出力可能であり、
前記第1の通信手段は、
前記主制御処理手段から入力した前記第1の外部出力情報をコマンドの種別を示すコマンド情報及び該コマンド情報に付随してパラメータを示す設定データに区別し、前記コマンド情報を参照することにより前記コマンドの種別を判別し、当該コマンドの種別に応じた処理により、前記第1の外部出力情報に基づいて、前記パラレル信号方式で前記外部出力情報に適した第1の連続出力情報を生成し、その後、前記主制御処理手段から入力した前記第2の外部出力情報をコマンドの種別を示すコマンド情報及び該コマンド情報に付随してパラメータを示す設定データに区別し、前記コマンド情報を参照することにより前記コマンドの種別を判別し、当該コマンドの種別に応じた処理により、前記第2の外部出力情報に基づいて、前記パラレル信号方式で前記外部出力情報に適した第2の連続出力情報を生成する連続出力情報生成手段と、
前記第1の連続出力情報を前記第2の通信手段へと出力し、その後、前記第2の連続出力情報を前記第2の通信手段へと出力する情報出力手段と、を作動可能な機能として有し、
前記第2の通信手段は、
前記情報出力手段から出力された前記第1の連続出力情報を入力し、その後、前記第2の連続出力情報を入力する情報入力手段と、
前記情報入力手段により入力した前記第1の連続出力情報を、前記パラレル信号方式に従う第1の信号として前記出力手段を通じて前記外部機器へと出力し、その後、前記情報入力手段により入力した前記第2の連続出力情報を、前記パラレル信号方式に従う第2の信号として前記出力手段を通じて前記外部機器へと出力する信号出力手段と、を作動可能な機能として有することを特徴としている。
The gaming machine of the present invention is
A control unit that performs various controls related to the game;
And external output means for outputting external output information from the control unit to an external device outside the gaming machine,
The control unit
Control processing means for performing control processing related to gaming;
The external output information is input from the control processing means at a first communication speed, and the external output information is output at a second communication speed higher than the first communication speed according to the output destination. Communication means, and
The external output means is
A second communication unit that receives the external output information from the first communication unit and outputs the external output information;
And output means for inputting the external output information from the second communication means and outputting the external output information converted into a relay output signal to the external device.
The control processing means
As the external output information, it is possible to output first external output information indicating payout of gaming media, and includes delay time information indicating that external output should be performed after a predetermined time has elapsed subsequent to the first external output information. While being able to output second external output information, it is also possible to output third external output information that is externally output at a timing different from that of the first external output information,
The first communication means is
The external output information input from the control processing means is distinguished into command information indicating the type of command and setting data indicating a parameter accompanying the command information, and the type of the command is determined by referring to the command information And output information generating means for executing processing according to the type of the command,
The output information generation means
First information generating means for generating first output information suitable for converting the external output information based on the first external output information, when the external output information is the first external output information; ,
A second information generation unit that generates second output information suitable for converting the external output information based on the second external output information when the external output information is the second external output information; ,
Third information generation means for generating third output information suitable for converting the external output information based on the third external output information, when the external output information is the third external output information; ,
It has an information output unit that outputs the first output information, the second output information, and the third output information to the second communication unit as an operable function.
The second communication means is
An information input unit that receives the first output information, the second output information, and the third output information output from the information output unit, and stores the output information in a storage area ;
When the first output information, the second output information, and the third output information input by the information input unit are different from the information of the storage area, the output unit may output the information to the output unit. A signal output unit that converts the relay output signal to the external device via the output unit is characterized as having an operable function.
In addition, other gaming machines of the present invention are:
Main control processing means for performing various main control processing relating to the game;
Secondary control processing means for performing various secondary control processes on a plurality of peripheral devices;
Main control output means for outputting main control information from the main control processing means to the sub control processing means;
And external output means for outputting external output information from the main control processing means to an external device outside the gaming machine.
The external output means is
A first communication unit that receives the external output information from the main control processing unit, encrypts the external output information, and outputs the encrypted information by a serial communication method;
A second communication unit that receives the encrypted external output information from the first communication unit and decrypts and outputs the external output information;
And output means for inputting the external output information from the second communication means and outputting the external output information to the external device in parallel signal system,
The main control processing means
The first external output information can be output as the external output information, and second external output information to be externally output can be output following the first external output information,
The first communication means is
The first external output information input from the main control processing means is distinguished into command information indicating the type of command and setting data indicating parameters accompanying the command information, and the command is referred to by the command. The first continuous output information suitable for the external output information is generated by the parallel signal system on the basis of the first external output information by processing according to the type of the command. The second external output information input from the main control processing means is divided into command information indicating the type of command and setting data indicating parameters accompanying the command information, and the command information is referred to. The type of command is determined, and the parallel processing is performed based on the second external output information by processing according to the type of the command. A continuous output information generation means for generating a second continuous output information appropriate to the external output information in issue method,
An information output unit that outputs the first continuous output information to the second communication unit and then outputs the second continuous output information to the second communication unit; Have
The second communication means is
Information input means for inputting the first continuous output information output from the information output means, and thereafter inputting the second continuous output information;
The first continuous output information input by the information input unit is output to the external device through the output unit as a first signal according to the parallel signal system, and then the second input is input by the information input unit And signal output means for outputting the continuous output information to the external device through the output means as a second signal in accordance with the parallel signal system.

このような構成によれば、主制御処理手段が第1の外部出力情報及び第2の外部出力情報を第1の通信手段へと順次出力するだけで、第1の通信手段が所定の出力方式で第1の外部出力情報に応じた第1の連続出力情報を生成し、その後、所定の出力方式で第2の外部出力情報に応じた第2の連続出力情報を生成する。そして、第1の連続出力情報が第2の通信手段へと出力された後、第2の連続出力情報が第2の通信手段へと出力されることにより、第2の通信手段は、出力手段を通じて所定の出力方式で第1の連続出力情報に応じた第1の信号を外部機器へと出力した後、所定の出力方式で第2の連続出力情報に応じた第2の信号を外部機器へと出力することとなる。これにより、主制御処理手段は、シリアル通信方式に応じた第1の外部出力情報及び第2の外部出力情報を連続的に出力することによっても、それぞれの情報に応じた第1の信号及び第2の信号が順次適切に外部機器へと出力されるので、外部出力すべき複数の情報を順序よく入出力することができ、ひいては外部機器の処理負担を軽減することができる。   According to such a configuration, the first communication means can output the predetermined output method only by the main control processing means sequentially outputting the first external output information and the second external output information to the first communication means. Then, first continuous output information corresponding to the first external output information is generated, and thereafter, second continuous output information corresponding to the second external output information is generated by a predetermined output method. Then, after the first continuous output information is output to the second communication unit, the second continuous output information is output to the second communication unit, so that the second communication unit is an output unit. After the first signal corresponding to the first continuous output information is output to the external device by the predetermined output method through the second output signal, the second signal corresponding to the second continuous output information is output to the external device by the predetermined output method Will be output. Thereby, the main control processing means can continuously output the first external output information and the second external output information according to the serial communication system, and thereby the first signal according to the respective information and the second signal. Since the signal of 2 is sequentially and appropriately output to the external device, a plurality of information to be externally output can be input / output in order, and thus the processing load on the external device can be reduced.

本発明の好ましい実施の形態においては、
前記信号出力手段は、前記第1の連続出力情報及び前記第2の連続出力情報のそれぞれを、前記所定の出力方式として汎用入出力方式に応じた前記第1の信号及び前記第2の信号に変換して出力することを特徴としている。
In a preferred embodiment of the invention:
The signal output unit converts each of the first continuous output information and the second continuous output information into the first signal and the second signal according to a general-purpose input / output system as the predetermined output system. It is characterized by converting and outputting.

このような構成によれば、主制御処理手段は、外部機器へと出力すべき第1の外部出力情報及び第2の外部出力情報を、汎用入出力方式に応じた例えばポート出力用データに変換する必要がなくそのまま出力することができ、第1の通信手段及び第2の通信手段は、主制御処理手段からの第1の外部出力情報及び第2の外部出力情報を第1の連続出力情報及び第2の連続出力情報に一旦変換した上で最終的に汎用入出力方式に応じた第1の信号及び第2の信号に変換して出力するので、第1の通信手段及び第2の通信手段の間における情報の入出力をシリアル通信方式によっても効率よく行うことができる。   According to such a configuration, the main control processing unit converts the first external output information and the second external output information to be output to the external device into, for example, port output data according to the general purpose input / output method. The first communication means and the second communication means can output the first external output information and the second external output information from the main control processing means as the first continuous output information. And the second continuous output information, and finally the first signal and the second signal according to the general-purpose input / output system are converted and output, so that the first communication means and the second communication Input / output of information between the means can be efficiently performed by the serial communication method.

本発明の好ましい実施の形態においては、
前記第1の通信手段は、
前記第1の連続出力情報及び前記第2の連続出力情報を共通鍵暗号方式で暗号化する暗号化手段と、
前記暗号化手段により暗号化された前記第1の連続出力情報及び前記第2の連続出力情報を二相位相偏移変調方式により変調する変調手段と、を有し、
前記第2の通信手段は、
前記変調手段により変調された前記第1の連続出力情報及び前記第2の連続出力情報を前記二相位相偏移変調方式により復調する復調手段と、
前記復調手段により復調された前記第1の連続出力情報及び前記第2の連続出力情報を前記共通鍵暗号方式により復号化する復号化手段と、を有することを特徴としている。
In a preferred embodiment of the invention:
The first communication means is
An encryption unit that encrypts the first continuous output information and the second continuous output information using a common key encryption method;
And modulation means for modulating the first continuous output information and the second continuous output information encrypted by the encryption means according to a binary phase shift keying modulation method,
The second communication means is
Demodulation means for demodulating the first continuous output information and the second continuous output information modulated by the modulation means according to the binary phase shift keying system;
And decoding means for decoding the first continuous output information and the second continuous output information demodulated by the demodulation means according to the common key cryptosystem.

このような構成によれば、主制御処理手段から第1の通信手段へと第1の外部出力情報及び第2の外部出力情報が出力され、第1の通信手段から第2の通信手段へと第1の外部出力情報及び第2の外部出力情報に応じた第1の連続出力情報及び第2の連続出力情報が出力される。その際、第1の連続出力情報及び第2の連続出力情報は、共通鍵暗号方式で暗号化され、さらに二相位相偏移変調方式により変調された上で出力される。第2の通信手段では、第1の通信手段から入力した第1の連続出力情報及び第2の連続出力情報が二相位相偏移変調方式により復調され、さらに復調された第1の連続出力情報及び第2の連続出力情報が共通鍵暗号方式により復号化された後、これらの情報に応じた第1の信号及び第2の信号が外部機器へと出力される。これにより、第1の通信手段及び第2の通信手段の間においては、二相位相偏移変調方式により情報を正しく安定的に入出力することができる。また、二相位相偏移変調方式で情報を入出力する際には、クロックレートを埋め込むことができるので、非同期通信方式によっても効率よく情報を入出力することができる。   According to such a configuration, the first external output information and the second external output information are output from the main control processing means to the first communication means, and from the first communication means to the second communication means. First continuous output information and second continuous output information according to the first external output information and the second external output information are output. At this time, the first continuous output information and the second continuous output information are encrypted according to the common key cryptosystem, and further modulated according to the binary phase shift keying and output. In the second communication means, the first continuous output information and the second continuous output information input from the first communication means are demodulated by the binary phase shift keying method and further demodulated into the first continuous output information After the second continuous output information is decrypted by the common key cryptosystem, the first signal and the second signal according to the information are output to the external device. Thereby, information can be correctly and stably input / output between the first communication means and the second communication means by the binary phase shift keying system. In addition, since the clock rate can be embedded when inputting and outputting information in the binary phase shift keying system, it is possible to efficiently input and output information also in the asynchronous communication system.

本発明によれば、複数の外部出力情報を外部機器へと出力する際にそれらの出力タイミングを調整することができ、ひいては外部機器の処理負担を軽減することができる遊技機を提供することができる。   According to the present invention, it is possible to provide a gaming machine capable of adjusting the output timing of a plurality of external output information to an external device when outputting the external output information, and thus reducing the processing load on the external device. it can.

本発明の一実施形態に係る遊技機の外観を示す斜視図である。1 is a perspective view showing an appearance of a gaming machine according to an embodiment of the present invention. 本発明の一実施形態に係る遊技機の内部構造を示す斜視図である。It is a perspective view showing the internal structure of the game machine concerning one embodiment of the present invention. 本発明の一実施形態に係る遊技機の主制御回路の構成を示すブロック図である。It is a block diagram showing composition of a main control circuit of a game machine concerning one embodiment of the present invention. 本発明の一実施形態に係る遊技機の副制御回路の構成を示すブロック図である。It is a block diagram showing composition of a sub control circuit of a game machine concerning one embodiment of the present invention. 本発明の一実施形態に係る遊技機の主基板通信LSI及び副基板通信LSIの構成を示すブロック図である。FIG. 2 is a block diagram showing the configuration of a main board communication LSI and a sub board communication LSI of the gaming machine according to the embodiment of the present invention. 本発明の一実施形態に係る遊技機の主基板と副基板との接続形態を示す模式図である。It is a schematic diagram which shows the connection form of the main board | substrate and subboard of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機の主基板通信LSI及び副基板通信LSIにおけるAES回路を示す模式図である。It is a schematic diagram which shows the AES circuit in main board | substrate communication LSI and sub board | substrate communication LSI of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機のデータの流れを示す説明図である。It is an explanatory view showing a flow of data of a game machine concerning one embodiment of the present invention. 本発明の一実施形態に係る遊技機のデータの流れを示す説明図である。It is an explanatory view showing a flow of data of a game machine concerning one embodiment of the present invention. 本発明の一実施形態に係る遊技機の主基板と外部集中端子板との接続形態を示す模式図である。It is a schematic diagram which shows the connection form of the main board | substrate of the game machine which concerns on one Embodiment of this invention, and an external concentration terminal board. 本発明の一実施形態に係る遊技機の外部出力用通信LSI及び外部端子板制御LSIの構成を示すブロック図である。It is a block diagram showing composition of communication LSI for external output of a game machine concerning one embodiment of the present invention, and external terminal board control LSI. 本発明の一実施形態に係る遊技機のデータ及び信号の流れを示す説明図である。It is an explanatory view showing a flow of data and signals of a gaming machine according to an embodiment of the present invention. 本発明の一実施形態に係る遊技機のコマンド出力例を示すタイミングチャートである。It is a timing chart which shows an example of command output of a game machine concerning one embodiment of the present invention. 本発明の一実施形態に係る遊技機のコマンド出力例を示すタイミングチャートである。It is a timing chart which shows an example of command output of a game machine concerning one embodiment of the present invention. 本発明の一実施形態に係る遊技機のコマンド出力例を示すタイミングチャートである。It is a timing chart which shows an example of command output of a game machine concerning one embodiment of the present invention. 本発明の一実施形態に係る遊技機のコマンド出力例を示すタイミングチャートである。It is a timing chart which shows an example of command output of a game machine concerning one embodiment of the present invention. 本発明の一実施形態に係る遊技機のコマンド出力例を示すタイミングチャートである。It is a timing chart which shows an example of command output of a game machine concerning one embodiment of the present invention. 本発明の一実施形態に係る遊技機のコマンド出力例を示すタイミングチャートである。It is a timing chart which shows an example of command output of a game machine concerning one embodiment of the present invention. 本発明の一実施形態に係る遊技機のコマンド出力例を示すタイミングチャートである。It is a timing chart which shows an example of command output of a game machine concerning one embodiment of the present invention. 本発明の一実施形態に係る遊技機のコマンド出力例を示すタイミングチャートである。It is a timing chart which shows an example of command output of a game machine concerning one embodiment of the present invention. 本発明の一実施形態に係る遊技機のコマンド出力例を示すタイミングチャートである。It is a timing chart which shows an example of command output of a game machine concerning one embodiment of the present invention. 本発明の一実施形態に係る遊技機の図柄配置テーブル及び図柄コードを示す説明図である。It is an explanatory view showing a symbol arrangement table and a symbol code of a game machine according to an embodiment of the present invention. 本発明の一実施形態に係る遊技機の図柄組合せテーブルを示す説明図である。It is an explanatory view showing a symbol combination table of a gaming machine according to an embodiment of the present invention. 本発明の一実施形態に係る遊技機のボーナス作動時テーブルを示す説明図である。It is an explanatory view showing a bonus operation time table of the gaming machine according to one embodiment of the present invention. 本発明の一実施形態に係る遊技機の一般遊技状態用内部抽籤テーブルを示す説明図である。It is an explanatory view showing an internal lottery table for a general gaming state of a gaming machine according to an embodiment of the present invention. 本発明の一実施形態に係る遊技機のRB作動中用内部抽籤テーブルを示す説明図である。It is explanatory drawing which shows the internal lottery table for during RB operation of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機の小役・リプレイ用内部当籤役決定テーブルを示す説明図である。FIG. 16 is an explanatory view showing an internal winning combination determination table for a small winning combination / replay of a gaming machine according to an embodiment of the present invention. 本発明の一実施形態に係る遊技機のボーナス用内部当籤役決定テーブルを示す説明図である。It is an explanatory view showing a bonus internal winning combination determination table of a gaming machine according to an embodiment of the present invention. 本発明の一実施形態に係る遊技機の内部当籤役格納領域を示す説明図である。It is an explanatory view showing an internal winning combination storing area of a gaming machine according to an embodiment of the present invention. 本発明の一実施形態に係る遊技機の持越役格納領域を示す説明図である。It is an explanatory view showing a carryover combination storage area of a gaming machine according to one embodiment of the present invention. 本発明の一実施形態に係る遊技機の作動中フラグ格納領域を示す説明図である。It is an explanatory view showing the flag storage area during operation of the gaming machine according to one embodiment of the present invention. 本発明の一実施形態に係る遊技機のメインCPUの制御によるメインフローチャートを示す図である。It is a figure which shows the main flowchart by control of main CPU of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機のメインCPUによるメダル受付・スタートチェック処理を示すフローチャートである。It is a flowchart which shows the medal reception / start check process by main CPU of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機のメインCPUによる内部抽籤処理を示すフローチャートである。It is a flowchart which shows the internal lottery process by main CPU of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機のメインCPUによるリール停止制御処理を示すフローチャートである。It is a flowchart which shows the reel stop control processing by main CPU of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機のメインCPUによるボーナス作動チェック処理を示すフローチャートである。It is a flow chart which shows bonus operation check processing by main CPU of a game machine concerning one embodiment of the present invention. 本発明の一実施形態に係る遊技機のメインCPUによるボーナス終了チェック処理を示すフローチャートである。It is a flowchart which shows the bonus end check process by main CPU of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機のメインCPUの制御による割込処理を示すフローチャートである。It is a flowchart which shows the interruption processing by control of main CPU of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機のサブCPUによる受信割込み処理を示すフローチャートである。It is a flowchart which shows the reception interruption process by sub CPU of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機のサブCPUによる主基板通信処理を示すフローチャートである。It is a flowchart which shows the main board | substrate communication processing by sub CPU of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機のサブCPUによる通信LSI受信データ解析処理を示すフローチャートである。It is a flowchart which shows communication LSI reception data analysis processing by sub CPU of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機のサブCPUにより行われる演出登録タスクを示すフローチャートである。It is a flowchart which shows the effect registration task performed by sub CPU of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機のサブCPUによる演出内容決定処理を示すフローチャートである。It is a flowchart which shows the contents determination processing of an effect by sub CPU of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機のメニュー画面を示す概略図である。It is the schematic which shows the menu screen of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機のエラー情報履歴画面を示す概略図である。It is the schematic which shows the error information history screen of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機に用いる受信コマンドのコード番号と種別とパラメータとを示す説明図である。It is an explanatory view showing a code number of a receiving command used for a game machine concerning one embodiment of the present invention, classification, and a parameter. 本発明の一実施形態に係る遊技機のサブRAMにおける通信ログ収集領域を示す説明図である。It is an explanatory view showing a communication log collecting area in a sub RAM of a gaming machine according to an embodiment of the present invention. 本発明の一実施形態に係る遊技機のサブRAMにおける通信エラー保存領域を示す説明図である。It is explanatory drawing which shows the communication error preservation | save area | region in sub RAM of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機に用いる通信データのフレームを示す説明図である。It is an explanatory view showing a frame of communication data used for a game machine concerning one embodiment of the present invention. 本発明の一実施形態に係る遊技機に用いる通信データのフレームを示す説明図である。It is an explanatory view showing a frame of communication data used for a game machine concerning one embodiment of the present invention. 本発明の一実施形態に係る遊技機の通信データにおける受信ステータスを示す説明図である。It is explanatory drawing which shows the reception status in the communication data of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機の通信データにおけるパケット種別を示す説明図である。It is an explanatory view showing a packet classification in communication data of a game machine concerning one embodiment of the present invention. 本発明の一実施形態に係る遊技機の通信データの流れを示す説明図である。It is an explanatory view showing a flow of communication data of a gaming machine according to an embodiment of the present invention. 本発明の一実施形態に係る遊技機のサブRAMにおける領域イメージを示す説明図である。It is an explanatory view showing a field picture in sub RAM of a game machine concerning one embodiment of the present invention. 本発明の一実施形態に係る遊技機のサブRAMにおけるエラー情報履歴格納領域及びエラーコードを示す説明図である。It is an explanatory view showing an error information history storage area and an error code in a sub RAM of a gaming machine according to one embodiment of the present invention. 本発明の一実施形態に係る遊技機の主基板通信LSIによるメイン制御シーケンスを示すフローチャートである。It is a flowchart which shows the main control sequence by main substrate communication LSI of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機の主基板通信LSIによる受信割込み処理を示すフローチャートである。It is a flowchart which shows the reception interruption process by main substrate communication LSI of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機の主基板通信LSIによる初期設定処理を示すフローチャートである。It is a flowchart which shows the initialization processing by the main board | substrate communication LSI of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機の主基板通信LSIによる受信処理を示すフローチャートである。It is a flowchart which shows the reception process by main substrate communication LSI of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機の主基板通信LSIによる送信処理を示すフローチャートである。It is a flowchart which shows the transmission processing by main substrate communication LSI of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機の副基板通信LSIによるメイン制御シーケンスを示すフローチャートである。It is a flowchart which shows the main control sequence by subboard communication LSI of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機の副基板通信LSIによる受信割込み処理を示すフローチャートである。It is a flowchart which shows the reception interruption process by the sub board | substrate communication LSI of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機の副基板通信LSIによる初期設定処理を示すフローチャートである。It is a flowchart which shows the initialization processing by the sub board | substrate communication LSI of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機の副基板通信LSIによる受信処理を示すフローチャートである。It is a flowchart which shows the reception process by the sub board | substrate communication LSI of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機の副基板通信LSIによる送信処理を示すフローチャートである。It is a flowchart which shows the transmission processing by subboard communication LSI of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機において外部出力されるコマンドを示す説明図である。It is an explanatory view showing a command outputted outside in a game machine concerning one embodiment of the present invention. 本発明の一実施形態に係る遊技機の外部出力に関連する各種エリアのBit配列を示す説明図である。It is an explanatory view showing Bit arrangement of various areas relevant to external output of a game machine concerning one embodiment of the present invention. 本発明の一実施形態に係る遊技機において外部出力に用いられるソフトウェアタイマを示す説明図である。It is an explanatory view showing a software timer used for external output in a game machine concerning one embodiment of the present invention. 本発明の一実施形態に係る遊技機のメインCPUによる外部出力用メダルインコマンド登録処理を示すフローチャートである。It is a flowchart which shows the medal in command registration process for external output by main CPU of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機のメインCPUによる外部出力用メダルアウトコマンド登録処理を示すフローチャートである。It is a flowchart which shows the medal out command registration process for external output by main CPU of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機のメインCPUによるコマンド外部出力処理を示すフローチャートである。It is a flowchart which shows the command external output processing by main CPU of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機のメインCPUによる外部信号編集処理を示すフローチャートである。It is a flowchart which shows the external signal edit process by main CPU of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機の外部出力用通信LSIによるメイン制御シーケンスを示すフローチャートである。It is a flowchart which shows the main control sequence by communication LSI for external output of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機の外部出力用通信LSIによる受信割込み処理を示すフローチャートである。It is a flowchart which shows the reception interruption process by communication LSI for external output of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機の外部出力用通信LSIによるタイマ割込み処理を示すフローチャートである。It is a flowchart which shows the timer interruption process by communication LSI for external output of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機の外部出力用通信LSIによる受信処理を示すフローチャートである。It is a flow chart which shows reception processing by communication LSI for external output of a game machine concerning one embodiment of the present invention. 本発明の一実施形態に係る遊技機の外部出力用通信LSIによるコマンド出力変換処理を示すフローチャートである。It is a flowchart which shows the command output conversion process by communication LSI for external output of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機の外部出力用通信LSIによるメダルイン出力変換処理を示すフローチャートである。It is a flow chart which shows medal in output conversion processing by communication LSI for external output of a game machine concerning one embodiment of the present invention. 本発明の一実施形態に係る遊技機の外部出力用通信LSIによるメダルアウト出力変換処理を示すフローチャートである。It is a flowchart which shows the token out output conversion process by communication LSI for external output of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機の外部出力用通信LSIによる外部出力変換処理を示すフローチャートである。It is a flowchart which shows the external output conversion process by communication LSI for external output of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機の外部出力用通信LSIによる外部出力ON出力変換処理を示すフローチャートである。It is a flowchart which shows the external output ON output conversion process by communication LSI for external output of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機の外部出力用通信LSIによる外部出力OFF出力変換処理を示すフローチャートである。It is a flowchart which shows the external output OFF output conversion process by communication LSI for external output of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機の外部出力用通信LSIによるセキュリティ出力変換処理を示すフローチャートである。It is a flowchart which shows the security output conversion process by communication LSI for external output of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機の外部出力用通信LSIによる出力制御処理を示すフローチャートである。It is a flowchart which shows the output control processing by communication LSI for external output of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機の外部出力用通信LSIによるメダルイン出力制御処理を示すフローチャートである。It is a flow chart which shows medal in output control processing by communication LSI for external output of a game machine concerning one embodiment of the present invention. 本発明の一実施形態に係る遊技機の外部出力用通信LSIによるメダルアウト出力制御処理を示すフローチャートである。It is a flowchart which shows the medal out output control processing by communication LSI for external output of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機の外部出力用通信LSIによる設定出力制御処理を示すフローチャートである。It is a flowchart which shows the setting output control processing by communication LSI for external output of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機の外部出力用通信LSIによる時間復帰出力制御処理を示すフローチャートである。It is a flow chart which shows time return output control processing by communication LSI for external output of a game machine concerning one embodiment of the present invention. 本発明の一実施形態に係る遊技機の外部端子板制御LSIによるメイン制御シーケンスを示すフローチャートである。It is a flowchart which shows the main control sequence by the external terminal board control LSI of the game machine which concerns on one Embodiment of this invention. 本発明の一実施形態に係る遊技機の外部端子板制御LSIによる受信割込み処理を示すフローチャートである。It is a flowchart which shows the reception interruption process by the external terminal board control LSI of the game machine which concerns on one Embodiment of this invention. 本発明の他の実施形態に係る遊技機の主基板と副基板との接続形態を示す模式図である。It is a schematic diagram which shows the connection form of the main board | substrate and subboard | substrate of the game machine which concerns on other embodiment of this invention. 本発明の他の実施形態に係る遊技機の主基板と副基板との接続形態を示す模式図である。It is a schematic diagram which shows the connection form of the main board | substrate and subboard | substrate of the game machine which concerns on other embodiment of this invention. 本発明の他の実施形態に係る遊技機のデータの流れを示す説明図である。It is explanatory drawing which shows the flow of the data of the game machine which concerns on other embodiment of this invention. 本発明の他の実施形態に係る遊技機の主基板と副基板との接続形態を示す模式図である。It is a schematic diagram which shows the connection form of the main board | substrate and subboard | substrate of the game machine which concerns on other embodiment of this invention. 本発明の他の実施形態に係る遊技機のデータの流れを示す説明図である。It is explanatory drawing which shows the flow of the data of the game machine which concerns on other embodiment of this invention. 本発明の他の実施形態に係る遊技機の外観を示す斜視図である。It is a perspective view which shows the external appearance of the game machine which concerns on other embodiment of this invention. 本発明の他の実施形態に係る遊技機の構成を示すブロック図である。It is a block diagram which shows the structure of the game machine which concerns on other embodiment of this invention.

以下、本発明の好ましい実施の形態について、図面を参照して具体的に説明する。   Hereinafter, preferred embodiments of the present invention will be specifically described with reference to the drawings.

[遊技機の外観構成]
図1は、本発明の一実施形態に係る遊技機の外観を示す斜視図である。同図に示すように、本実施形態では、遊技機としてパチスロ1が適用される。パチスロ1の外装体2は、リールや回路基板等を収容するキャビネット2aと、キャビネット2aに対して開閉可能に取り付けられるフロントドア2bとを有している。キャビネット2aの両側面には、把手7が設けられている。この把手7は、パチスロ1を運搬するときに手をかける凹部である。
[Appearance configuration of gaming machine]
FIG. 1 is a perspective view showing the appearance of a gaming machine according to an embodiment of the present invention. As shown in the figure, in the present embodiment, a pachi slot 1 is applied as a gaming machine. The exterior body 2 of the pachi slot 1 has a cabinet 2a for accommodating a reel, a circuit board and the like, and a front door 2b attached to the cabinet 2a so as to be able to open and close. Handles 7 are provided on both sides of the cabinet 2a. The handle 7 is a concave portion which is used when carrying the pachislot 1.

キャビネット2aの内部には、3つのリール3L,3C,3Rが横並びに設けられている。各リール3L,3C,3Rについては、個別に説明する場合にそれぞれ左リール3L、中リール3C、右リール3Rと称する。各リール3L,3C,3Rは、円筒状に形成されたリール本体と、リール本体の周面に装着された透光性のシート材を有している。シート材の表面には、複数(例えば21個)の図柄が周方向に沿って所定の間隔をあけて描かれている。   Inside the cabinet 2a, three reels 3L, 3C, 3R are provided side by side. Each of the reels 3L, 3C, 3R is referred to as a left reel 3L, a middle reel 3C, and a right reel 3R, respectively, when individually described. Each of the reels 3L, 3C, 3R has a cylindrical reel body and a translucent sheet material mounted on the peripheral surface of the reel body. On the surface of the sheet material, a plurality of (for example, 21) designs are drawn at predetermined intervals along the circumferential direction.

フロントドア2bの中央には、液晶表示装置10が設けられている。この液晶表示装置10は、液晶表示領域10Aと図柄表示領域4L,4C,4Rとを含む表示画面を備え、正面から見て3つのリール3L,3C,3Rに重畳する手前側に位置するように設けられている。本実施形態では、液晶表示領域10A及び図柄表示領域4L,4C,4Rを含めた表示画面の全体を使って、映像の表示が行われ、演出が実行される。   A liquid crystal display device 10 is provided at the center of the front door 2b. The liquid crystal display device 10 has a display screen including a liquid crystal display area 10A and symbol display areas 4L, 4C, 4R, and is positioned in front of the three reels 3L, 3C, 3R when viewed from the front. It is provided. In the present embodiment, an image is displayed and effects are performed using the entire display screen including the liquid crystal display area 10A and the symbol display areas 4L, 4C, 4R.

図柄表示領域4L,4C,4Rは、3つのリール3L,3C,3Rのそれぞれに対応して設けられている。この図柄表示領域4L,4C,4Rは、表示窓としての機能を果たすものであり、その背後に設けられた各リール3L,3C,3Rを透過することが可能な構成になっている。図柄表示領域4L,4C,4Rについては、個別に説明する場合にそれぞれ左表示窓4L、中表示窓4C、右表示窓4Rと称する。   The symbol display areas 4L, 4C, 4R are provided corresponding to the three reels 3L, 3C, 3R, respectively. The symbol display areas 4L, 4C, 4R serve as display windows, and are configured to be able to transmit the respective reels 3L, 3C, 3R provided behind them. The symbol display areas 4L, 4C, 4R are respectively referred to as a left display window 4L, a middle display window 4C, and a right display window 4R when individually described.

表示窓4L,4C,4Rは、その背後に設けられたリール3L,3C,3Rの回転が停止されたとき、各リール3L,3C,3Rの複数種類の図柄のうち、その枠内における上段、中段及び下段の各領域にそれぞれ1個の図柄(合計で3個)を表示する。各表示窓4L,4C,4Rが有する上段、中段及び下段からなる3つの領域のうち予め定められたいずれかをそれぞれ組合せてなる擬似的なラインを、入賞か否かの判定を行う対象となるライン(入賞判定ライン)として定義する。   When the rotation of the reels 3L, 3C, 3R provided behind the display windows 4L, 4C, 4R is stopped, the upper stage in the frame of the plural types of symbols of the respective reels 3L, 3C, 3R, One symbol (three in total) is displayed in each of the middle and lower areas. It is an object to determine whether or not a pseudo line formed by combining any one of predetermined three areas among the upper, middle, and lower areas of the display windows 4L, 4C, and 4R is determined to be winning or not. It is defined as a line (winning judgment line).

本実施形態では、入賞判定ラインとしてセンターライン8が設けられている。センターライン8は、左表示窓4Lの中段、中表示窓4Cの中段、及び右表示窓4Rの中段の組合せからなる。   In the present embodiment, a center line 8 is provided as a winning determination line. The center line 8 is a combination of the middle of the left display window 4L, the middle of the middle display window 4C, and the middle of the right display window 4R.

液晶表示装置10の表示画面の下方には、7セグメントLEDからなる7セグ表示器6が設けられている。この7セグ表示器6は、特典として遊技者に対して払い出すメダルの枚数(以下、払出枚数)、パチスロ1の内部に預けられているメダルの枚数(以下、クレジット枚数)等の情報をデジタル表示する。   Below the display screen of the liquid crystal display device 10, a 7-segment display 6 consisting of a 7-segment LED is provided. The 7-segment display 6 digitally displays information such as the number of medals to be paid out to the player as benefits (hereinafter, the number of payouts) and the number of medals deposited inside the pachislot 1 (hereinafter, the number of credits). indicate.

フロントドア2bには、遊技者による操作の対象となる各種装置が設けられている。メダル投入口11は、遊技者によって外部から投下されるメダルを受け入れるために設けられる。メダル投入口11に受け入れられたメダルは、予め定められた規定数を上限として1回の遊技に投入されることとなり、規定数を超えた分は、パチスロ1の内部に預けることが可能となる(いわゆるクレジット機能)。   The front door 2b is provided with various devices to be operated by the player. The medal insertion slot 11 is provided to receive medals dropped from the outside by the player. The medals accepted in the medal insertion slot 11 will be inserted in one game with the predetermined number as the upper limit, and the portion exceeding the predetermined number can be deposited inside the pachislot 1 (So-called credit function).

メダル投入口11の左には、選択ボタン11A及び決定ボタン11Bが設けられている。遊技者や係員は、液晶表示領域10Aに表示されたメニュー画面等に対して選択ボタン11A及び決定ボタン11Bにより入力を行うことができる。   On the left of the medal insertion slot 11, a selection button 11A and a determination button 11B are provided. The player or the attendant can input the menu screen or the like displayed in the liquid crystal display area 10A with the selection button 11A and the determination button 11B.

最大BETボタン12は、パチスロ1の内部に預けられているメダルから1回の遊技に投入する最大枚数を決定するために設けられる。精算ボタン14は、パチスロ1の内部に預けられているメダルを外部に引き出すために設けられる。   The maximum BET button 12 is provided to determine the maximum number of medals to be inserted into one game from the medals deposited inside the pachislot 1. The settlement button 14 is provided to pull out the medals deposited inside the pachislot 1 to the outside.

スタートレバー16は、全てのリール3L,3C,3Rの回転を開始するために設けられる。ストップボタン17L,17C,17Rは、3つのリール3L,3C,3Rのそれぞれに対応づけられ、対応するリールの回転を停止するために設けられる。ストップボタン17L,17C,17Rについては、個別に説明する場合にそれぞれ左ストップボタン17L、中ストップボタン17C、右ストップボタン17Rと称する。   The start lever 16 is provided to start the rotation of all the reels 3L, 3C, 3R. The stop buttons 17L, 17C, and 17R are associated with the three reels 3L, 3C, and 3R, respectively, and are provided to stop the rotation of the corresponding reels. The stop buttons 17L, 17C, and 17R are respectively referred to as a left stop button 17L, a middle stop button 17C, and a right stop button 17R when individually described.

メダル払出口18は、後述のメダル払出装置34の駆動により排出されるメダルを外部に導く。メダル払出口18から排出されたメダルは、メダル受皿19に貯められる。ランプ(LED等)20は、演出内容に応じた点消灯のパターンにて光を出力する。スピーカ用孔48,49,22L,22Rは、演出内容に応じた効果音や楽曲等の音を出力するために設けられている。   The medal payout opening 18 guides the medals discharged by the driving of a medal payout device 34 described later to the outside. The medals discharged from the medal payout opening 18 are stored in the medal receiver 19. The lamp (LED or the like) 20 outputs light in a pattern of on / off according to the contents of the effect. The speaker holes 48, 49, 22L, 22R are provided to output sounds such as sound effects and music according to the contents of the effect.

このパチスロ1には、フロントドア2bを閉じた状態でフロントドア2bをロック状態又はアンロック状態に切り替えるロック機構を備えている。このロック機構は、ドアキー穴11Cにドアキー110を挿入して、ドアキー110を回転することにより操作されるようになっている。   The pachi slot 1 is provided with a lock mechanism that switches the front door 2b to a locked state or an unlocked state in a state where the front door 2b is closed. This lock mechanism is operated by inserting the door key 110 into the door key hole 11C and rotating the door key 110.

ドアキー110がドアキー穴11Cに挿入され、例えば、右回転されることによりフロントドア2bが開閉可能になるとともに、左回転されることにより後述の主制御回路60(図3参照)等が電気的にリセットされるようになっている。すなわち、ドアキー110は、ロック機構の操作の他に、パチスロ1を電気的にリセットするリセット機能を有している。   The door key 110 is inserted into the door key hole 11C and, for example, the front door 2b can be opened and closed by being turned right and the main control circuit 60 (see FIG. 3) described later is electrically turned by being turned left. It is supposed to be reset. That is, the door key 110 has a reset function of electrically resetting the pachi slot 1 in addition to the operation of the lock mechanism.

[遊技機の内部構造]
図2は、本発明の一実施形態に係る遊技機の内部構造を示す斜視図である。キャビネット2a内部の上側には、主制御回路60(図3参照)を構成する主制御基板6A(後述する主基板6A、図2において図示せず図6参照)が配設されている。主制御回路60は、内部当籤役の決定、リール3L,3C,3Rの回転及び停止、入賞の有無の判定といった、パチスロ1における遊技の主な流れを制御する回路である。主制御回路60の具体的な構成は後述する。
[Internal structure of gaming machine]
FIG. 2 is a perspective view showing the internal structure of the gaming machine according to the embodiment of the present invention. On the upper side inside the cabinet 2a, a main control board 6A (a main board 6A described later, and not shown in FIG. 2 but not shown in FIG. 2) constituting a main control circuit 60 (see FIG. 3) is disposed. The main control circuit 60 is a circuit for controlling the main flow of the game in the pachislot 1 such as determination of the internal winning combination, rotation and stop of the reels 3L, 3C, 3R, and determination of the presence or absence of winning. The specific configuration of the main control circuit 60 will be described later.

キャビネット2aの内部の中央には、3つのリール3L,3C,3Rが設けられている。なお、図2では、各リール3L,3C,3Rからシート材を取り除いてリール本体を露出させた状態を示している。3つのリール3L,3C,3Rには、所定の減速比をもったギアを介してステッピングモータ50L,50C,50R(図3参照)が接続されている。   Three reels 3L, 3C, 3R are provided at the center of the interior of the cabinet 2a. FIG. 2 shows a state in which the sheet material is removed from each of the reels 3L, 3C, 3R to expose the reel body. The stepping motors 50L, 50C, and 50R (see FIG. 3) are connected to the three reels 3L, 3C, and 3R through gears having predetermined reduction ratios.

キャビネット2a内部を正面から見て、右リール3Rの右側には、設定用鍵型スイッチ(図示せず)及び外部集中端子板9A(図2において図示せず図3及び図10参照)が配設されている。設定用鍵型スイッチは、パチスロ1の設定を変更もしくは確認を行うときに設定キーを用いて使用する。外部集中端子板9Aは、キャビネット2aの側板に取り付けられている。この外部集中端子板9Aは、メダル投入信号、メダル払出信号及びセキュリティ信号などの信号をパチスロ1外の外部機器(例えばホールコンピュータ)へと出力するために設けられている。また、キャビネット2a内部を正面から見て、左リール3Lの左側には、外部中継基板8A(図2において図示せず図3及び図10参照)が配設されている。外部中継基板8Aは、主制御基板6Aと外部集中端子板9Aとを光ファイバーケーブル100(図2において図示せず図10等参照)を介して接続する配線の中継を行う。外部中継基板8A及び外部集中端子板9Aの具体的な構成は後述する。   When the inside of the cabinet 2a is viewed from the front, a setting key type switch (not shown) and an external concentrated terminal plate 9A (not shown in FIGS. 2 and 3) are disposed on the right of the right reel 3R. It is done. The setting key type switch is used by using the setting key when changing or confirming the setting of the pachi slot 1. The external concentrated terminal plate 9A is attached to the side plate of the cabinet 2a. The external concentrated terminal plate 9A is provided to output signals such as a medal insertion signal, a medal payout signal, and a security signal to an external device (for example, a hall computer) outside the pachislot machine 1. Further, when the inside of the cabinet 2a is viewed from the front, an external relay board 8A (not shown in FIG. 2 and see FIGS. 3 and 10) is disposed on the left side of the left reel 3L. The external relay board 8A relays the wiring that connects the main control board 6A and the external concentrated terminal plate 9A via the optical fiber cable 100 (not shown in FIG. 2, see FIG. 10 etc.). Specific configurations of the external relay substrate 8A and the external concentrated terminal plate 9A will be described later.

キャビネット2aの内部の下方には、多量のメダルを収容可能で、それらを1枚ずつ排出可能な構造を有するメダル払出装置(以下、ホッパー装置)34が設けられている。このホッパー装置34は、貯留されたメダルが例えば50枚を超えたとき、又は精算ボタンが押圧されてメダルの精算を行うときに、メダルを払い出す。ホッパー装置34によって払い出されたメダルは、メダル払出口18(図2参照)から排出される。   Below the inside of the cabinet 2a, a medal payout device (hereinafter, a hopper device) 34 having a structure capable of containing a large amount of medals and capable of discharging them one by one is provided. The hopper device 34 pays out the medals when the stored medals exceed 50, for example, or when the settlement button is pressed and the medals are settled. The medals paid out by the hopper device 34 are discharged from the medal payout opening 18 (see FIG. 2).

キャビネット2a内部を正面から見て、ホッパー装置34の右側には、ホッパー装置34から溢れ出たメダルを収納するメダル補助庫35が配設されている。また、キャビネット2a内部を正面から見て、ホッパー装置34の左側には、パチスロ1が有する各装置に対して必要な電力を供給するための電源装置36が設けられている。また、ホッパー装置34と3つのリール3L,3C,3Rとの間には、サブスピーカ37が配設されている。   When the inside of the cabinet 2a is viewed from the front, a medal auxiliary storage 35 for storing medals overflowing from the hopper device 34 is disposed on the right side of the hopper device 34. Further, when the inside of the cabinet 2a is viewed from the front, a power supply device 36 for supplying necessary power to each device of the pachi slot 1 is provided on the left side of the hopper device 34. Further, a sub speaker 37 is disposed between the hopper device 34 and the three reels 3L, 3C, 3R.

フロントドア2bの裏面における上側には、副制御基板7A(後述する副基板7A、図2において図示せず図6参照)を収容する副制御基板ケース42が配設されている。副制御基板7Aは、副制御基板ケース42を介してキャビネット2aの内部の主制御基板6Aに対向している。この副制御基板7Aは、副制御回路70(図3及び図4参照)を構成する。副制御基板7Aは、後述するドア中継基板53を介して主制御基板6Aと光ファイバーケーブル100(図2において図示せず図6参照)により接続されている。副制御回路70は、映像の表示等による演出の実行を制御する回路である。副制御回路70の具体的な構成は後述する。   A sub control board case 42 for accommodating a sub control board 7A (a sub board 7A described later, see FIG. 6 not shown in FIG. 2) is disposed on the upper side of the back surface of the front door 2b. The sub control board 7A is opposed to the main control board 6A inside the cabinet 2a via the sub control board case 42. The sub control board 7A constitutes a sub control circuit 70 (see FIGS. 3 and 4). The sub control board 7A is connected to the main control board 6A by an optical fiber cable 100 (not shown in FIG. 2, see FIG. 6) via a door relay board 53 described later. The sub control circuit 70 is a circuit that controls execution of effects by displaying a video or the like. The specific configuration of the sub control circuit 70 will be described later.

フロントドア2bを裏面側から見て、副制御基板ケース42の右側方には、副中継基板43が配設されている。この副中継基板43は、副制御基板7Aと、この副制御基板7Aの周辺に配設された基板との配線を中継する基板である。なお、副制御基板41の周辺に配設される基板としては、後述するLED基板45A,45B,45CやサウンドI/O基板46が挙げられる。   When the front door 2b is viewed from the back side, a sub relay board 43 is disposed on the right side of the sub control board case 42. The sub relay board 43 is a board for relaying the wiring between the sub control board 7A and a board disposed around the sub control board 7A. In addition, as a board | substrate arrange | positioned around the sub control board 41, LED board 45A, 45B, 45C mentioned later and the sound I / O board 46 are mentioned.

フロントドア2bの裏面側の適部には、LED基板45A,45B,45CやサウンドI/O基板46が配設されている。LED基板45A,45B,45Cは、副制御回路70の制御により実行される演出に応じて、ランプ(LED等)20による点滅パターンを表示制御する。サウンドI/O基板46は、後述するスピーカ48L,48R,49L,49R(48,49)への音声の出力を行う。   LED boards 45A, 45B, 45C and a sound I / O board 46 are disposed at appropriate portions on the back side of the front door 2b. The LED substrates 45A, 45B, and 45C display and control the blinking pattern by the lamp (LED or the like) 20 according to the effect executed by the control of the sub control circuit 70. The sound I / O board 46 outputs sound to speakers 48L, 48R, 49L, 49R (48, 49) described later.

サウンドI/O基板46の下側には、遊技動作表示基板(図示せず)が配設されている。この遊技動作表示基板は、メダルの投入を受け付けるとき、3つのリール3L,3C,3Rが回動可能なとき及び再遊技を行うときに、投入されたメダルの枚数を7セグ表示器6に表示させるための基板である。   Below the sound I / O board 46, a gaming operation display board (not shown) is disposed. This game operation display board displays the number of inserted medals on the 7-segment indicator 6 when the three reels 3L, 3C, 3R are rotatable and when the player plays a game again, when accepting the insertion of medals. It is a substrate for

サウンドI/O基板46の左側及び右側には、上部スピーカ48L,48R(48)が配設されている。そして、フロントドア2bの裏面における下側には、下部スピーカ49L,49R(49)が配設されている。上部スピーカ48L,48Rは、それぞれスピーカ用孔48,49に対向しており、下部スピーカ49L,49Rは、それぞれスピーカ用孔22L,22Rに対向している。   Upper speakers 48 L and 48 R (48) are disposed on the left and right sides of the sound I / O substrate 46. The lower speakers 49L and 49R (49) are disposed below the rear surface of the front door 2b. The upper speakers 48L and 48R face the speaker holes 48 and 49, respectively, and the lower speakers 49L and 49R face the speaker holes 22L and 22R, respectively.

上部スピーカ48Rと下部スピーカ49Rとの間には、セレクタ51と、ドア開閉監視スイッチ52が配設されている。セレクタ51は、メダルの材質や形状等が適正であるか否かを選別する装置であり、メダル投入口11に受け入れられた適正なメダルをホッパー装置34へ案内する。セレクタ51内においてメダルが通過する経路上には、適正なメダルが通過したことを検出するメダルセンサ(図示せず)が設けられている。   A selector 51 and a door open / close monitoring switch 52 are disposed between the upper speaker 48R and the lower speaker 49R. The selector 51 is a device for selecting whether or not the material, shape, and the like of the medals are appropriate, and guides the appropriate medals accepted by the medal insertion slot 11 to the hopper device 34. A medal sensor (not shown) for detecting that a proper medal has passed is provided on a path through which the medal passes in the selector 51.

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

フロントドア2bを裏面側から見て、セレクタ51の右側には、ドア中継基板53が配設されている。このドア中継基板53は、主制御基板6Aと、各種のボタンやスイッチ、副制御基板7A、遊技動作表示基板、及びセレクタ51との配線を中継する基板である。なお、各種のボタン及びスイッチとしては、例えば、最大BETボタン12、精算ボタン(C/Pボタン)14、ドア開閉監視スイッチ52、後述する最大BETスイッチ13S及びスタートスイッチ6S等を挙げることができる。   A door relay board 53 is disposed on the right side of the selector 51 when the front door 2b is viewed from the back side. The door relay board 53 is a board that relays wiring between the main control board 6A, various buttons and switches, the sub control board 7A, the game operation display board, and the selector 51. Examples of the various buttons and switches include a maximum BET button 12, a settlement button (C / P button) 14, a door open / close monitoring switch 52, and a maximum BET switch 13S and a start switch 6S described later.

ドア中継基板53の下側には、24hドア開閉監視ユニット(図示せず)が配設されている。この24hドア開閉監視ユニットは、フロントドア2bの開閉の履歴を保存する。また、フロントドア2bを開放したとき、又はセレクタ51を取り外したときに、液晶表示装置10にエラー表示を行うための信号を副制御基板7A(副制御回路70)に出力する。   Under the door relay board 53, a 24h door open / close monitoring unit (not shown) is disposed. The 24h door opening and closing monitoring unit stores the opening and closing history of the front door 2b. When the front door 2b is opened or the selector 51 is removed, a signal for displaying an error on the liquid crystal display device 10 is output to the sub control board 7A (sub control circuit 70).

次に、図3〜11を参照して、パチスロ1の電気的な構成及び通信機能に係る構成について説明する。図3は、主制御回路の構成を示すブロック図である。図4は、副制御回路の構成を示すブロック図である。図5は、主基板通信LSI及び副基板通信LSIの構成を示すブロック図である。図6は、主基板と副基板との接続形態を示す模式図である。図7は、通信LSIにおけるAES回路を示す模式図である。図8及び図9は、データの流れを示す説明図である。図10は、主基板と外部集中端子板との接続形態を示す模式図である。図11は、外部出力用通信LSI及び外部端子板制御LSIの構成を示すブロック図である。なお、以下の説明においては、「入力」及び「出力」と同義の用語として「受信」及び「送信」を用いることがある。   Next, with reference to FIGS. 3 to 11, the electrical configuration of the pachislot 1 and the configuration related to the communication function will be described. FIG. 3 is a block diagram showing the configuration of the main control circuit. FIG. 4 is a block diagram showing the configuration of the sub control circuit. FIG. 5 is a block diagram showing configurations of a main board communication LSI and a sub board communication LSI. FIG. 6 is a schematic view showing a connection form of the main substrate and the sub substrate. FIG. 7 is a schematic view showing an AES circuit in the communication LSI. 8 and 9 are explanatory diagrams showing the flow of data. FIG. 10 is a schematic view showing the connection between the main substrate and the external concentrated terminal plate. FIG. 11 is a block diagram showing the configuration of the external output communication LSI and the external terminal board control LSI. In the following description, “reception” and “transmission” may be used as terms synonymous with “input” and “output”.

[主制御回路の構成]
主制御回路60は、内部当籤役の決定やリールの回転制御等一連の遊技の進行を制御する。主制御回路60は、主基板6A(図6参照)上に配置されたマイクロコンピュータ600を主たる構成要素とし、これに乱数サンプリングのための回路を加えて構成されている。マイクロコンピュータ600は、メインCPU601、メインROM602、及びメインRAM603により構成される。
[Configuration of main control circuit]
The main control circuit 60 controls the progress of a series of games such as determination of an internal winning combination and rotation control of reels. The main control circuit 60 has a microcomputer 600 disposed on a main substrate 6A (see FIG. 6) as a main component, and is configured by adding a circuit for random number sampling to this. The microcomputer 600 includes a main CPU 601, a main ROM 602, and a main RAM 603.

メインCPU601には、クロックパルス発生回路604、分周器605、乱数発生器606、及びサンプリング回路607が接続されている。   To the main CPU 601, a clock pulse generation circuit 604, a frequency divider 605, a random number generator 606, and a sampling circuit 607 are connected.

メインCPU601は、乱数値と後述する内部抽籤テーブルとに基づいて内部当籤役を決定し、当該内部当籤役と停止操作が検出されたタイミングとに基づいて、リール3L,3C,3Rの回転を停止させる。メインCPU601は、リール3L,3C,3Rの回転を停止させた際に、図柄表示領域4L,4C,4Rに表示された図柄の組合せに基づいて、役が成立したか否かを判別し、役が成立(入賞)している場合に、当該成立した役に応じてメダルを払い出す等の利益を遊技者に付与する。   The main CPU 601 determines the internal winning combination based on the random number value and the internal lottery table described later, and stops the rotation of the reels 3L, 3C, 3R based on the internal winning combination and the timing when the stop operation is detected. Let When stopping the rotation of the reels 3L, 3C, 3R, the main CPU 601 determines whether or not the combination is realized based on the combination of the symbols displayed in the symbol display areas 4L, 4C, 4R. If the player is awarded (winning), the player is given a profit such as paying out a medal according to the winning combination.

クロックパルス発生回路604および分周器605は、基準クロックパルスを発生する。乱数発生器606は、「0」〜「65535」の範囲の乱数を発生する。サンプリング回路607は、乱数発生器606により発生された乱数から1つの乱数値を抽出(サンプリング)する。   Clock pulse generation circuit 604 and frequency divider 605 generate reference clock pulses. The random number generator 606 generates random numbers in the range of “0” to “65535”. The sampling circuit 607 extracts (samples) one random number value from the random number generated by the random number generator 606.

メインCPU601は、抽出した乱数値を後述のメインRAM603の乱数値記憶領域に記憶させる。そして、メインCPU601は、遊技毎にメインRAM603の乱数値記憶領域に記憶された乱数値に基づいて、後述の内部抽籤処理において内部当籤役の決定を行う。   The main CPU 601 stores the extracted random number value in a random number value storage area of the main RAM 603 described later. Then, the main CPU 601 determines an internal winning combination in an internal lottery process described later, based on the random number value stored in the random number storage area of the main RAM 603 every game.

なお、乱数サンプリングのための手段としては、マイクロコンピュータ600内で、すなわちメインCPU601の動作プログラム上で、乱数サンプリングを実行するようにしてもよい。その場合、乱数発生器606およびサンプリング回路607は省略可能である。あるいは、乱数サンプリング動作のバックアップ用として残しておくことも可能である。   As means for random number sampling, random number sampling may be performed in the microcomputer 600, that is, on the operation program of the main CPU 601. In that case, the random number generator 606 and the sampling circuit 607 can be omitted. Alternatively, it is possible to leave it for backup of the random number sampling operation.

メインROM602には、メインCPU601の処理に係るプログラム、各種テーブル等が記憶されている。   The main ROM 602 stores programs related to the processing of the main CPU 601, various tables, and the like.

メインRAM603には、メインCPU601の処理により得られる種々の情報がセットされる。例えば、抽出した乱数値、遊技状態、内部当籤役、払出枚数、ボーナス持越状況、設定値等を特定する情報、各種カウンタおよびフラグがセットされる。これらの情報の一部は、コマンドとして副基板7A(副制御回路70)及び外部集中端子板9Aに送信される。   Various information obtained by the processing of the main CPU 601 is set in the main RAM 603. For example, information for specifying the extracted random value, gaming state, internal winning combination, number of payouts, bonus carry-over status, setting value, etc., various counters, and a flag are set. A part of these pieces of information is transmitted as a command to the sub-substrate 7A (sub-control circuit 70) and the external concentrated terminal plate 9A.

マイクロコンピュータ600からの制御信号により動作が制御される主要な周辺装置等としては、メダル払出装置(ホッパー装置)34、ステッピングモータ50L,50C,50R等がある。これらのアクチュエータとメインCPU601との間の信号の授受は、バス60Aを介して行われる。   Examples of main peripheral devices whose operation is controlled by a control signal from the microcomputer 600 include a medal payout device (hopper device) 34, stepping motors 50L, 50C, 50R and the like. The exchange of signals between these actuators and the main CPU 601 is performed via the bus 60A.

バス60Aには、メインCPU601から出力される制御信号を受けて、前述の各周辺装置等の動作を制御するための各回路が接続されている。各回路としては、モータ駆動回路39、表示部駆動回路340、及びホッパー駆動回路341がある。   Each circuit for controlling the operation of each peripheral device described above is connected to the bus 60A in response to a control signal output from the main CPU 601. As each circuit, there are a motor drive circuit 39, a display unit drive circuit 340, and a hopper drive circuit 341.

モータ駆動回路39は、ステッピングモータ50L,50C,50Rを駆動制御する。これにより、リール3L,3C,3Rの回転や停止が行われる。   The motor drive circuit 39 drives and controls the stepping motors 50L, 50C, and 50R. As a result, the reels 3L, 3C, 3R are rotated or stopped.

表示部駆動回路340は、7セグ表示器6を表示制御する。これにより、7セグ表示器6に払出枚数やクレジット枚数等が表示される。   The display drive circuit 340 controls the display of the 7-segment display 6. As a result, the number of payouts, the number of credits, and the like are displayed on the 7-segment display 6.

ホッパー駆動回路341は、ホッパー装置34を駆動制御する。これにより、ホッパー装置34に収容されたメダルの払い出しが行われる。   The hopper drive circuit 341 drives and controls the hopper device 34. As a result, the medals stored in the hopper device 34 are paid out.

また、バス60Aには、前述の各回路および各周辺装置等に制御信号を出力する契機となる入力信号を発生する各スイッチおよび各回路が接続されている。各スイッチおよび各回路としては、スタートスイッチ6S、ストップスイッチ7LS,7CS,7RS、最大BETスイッチ13S、精算スイッチ(C/Pスイッチ)14S、メダルセンサ22S、リール位置検出回路50、払出完了信号回路342がある。なお、ストップスイッチ7LS,7CS,7RSを総称してストップスイッチ7Sと称する。   Further, to the bus 60A, switches and circuits that generate input signals that trigger output of control signals to the circuits and peripheral devices described above are connected. As each switch and each circuit, start switch 6S, stop switches 7LS, 7CS, 7RS, maximum BET switch 13S, settlement switch (C / P switch) 14S, medal sensor 22S, reel position detection circuit 50, payout completion signal circuit 342 There is. The stop switches 7LS, 7CS, 7RS are collectively referred to as a stop switch 7S.

スタートスイッチ6Sは、スタートレバー16に対する遊技者の開始操作を検出し、遊技の開始を指令する開始信号をマイクロコンピュータ600に出力する。   The start switch 6S detects the player's start operation on the start lever 16, and outputs a start signal for instructing start of the game to the microcomputer 600.

ストップスイッチ7LS,7CS,7RSは、それぞれストップボタン7L,7C,7Rに対する遊技者の停止操作を検出し、検出したストップボタン7L,7C,7Rに対応するリール3L,3C,3Rの回転の停止を指令する停止信号をマイクロコンピュータ600に出力する。   The stop switches 7LS, 7CS, 7RS respectively detect the stop operation of the player for the stop buttons 7L, 7C, 7R and stop the rotation of the reels 3L, 3C, 3R corresponding to the detected stop buttons 7L, 7C, 7R A stop signal to be commanded is output to the microcomputer 600.

最大BETスイッチ13Sは、最大BETボタン12に対する遊技者の投入操作(押下操作)を検出し、クレジットされたメダルからのメダルの投入を指令する信号をマイクロコンピュータ600に出力する。   The maximum BET switch 13S detects a player's insertion operation (pressing operation) for the maximum BET button 12, and outputs a signal instructing the microcomputer 600 to insert a medal from a credited medal.

精算スイッチ14Sは、精算ボタン14に対する遊技者の切り替え操作を検出し、クレジットモードまたは払出モードを切り替えるための信号をマイクロコンピュータ600に出力する。また、クレジットモードから払出モードに切り替えられた場合、パチスロ1にクレジットされているメダルの払い出しを指令する信号をマイクロコンピュータ600に出力する。   The settlement switch 14S detects the switching operation of the player on the settlement button 14, and outputs a signal for switching the credit mode or the payout mode to the microcomputer 600. Further, when the credit mode is switched to the payout mode, a signal instructing the payout of medals credited to the pachislot 1 is output to the microcomputer 600.

メダルセンサ22Sは、遊技者の投入操作によりメダル投入口11に投入されたメダルを検出し、メダルが投入されたことを示す信号をマイクロコンピュータ600に出力する。   The medal sensor 22S detects a medal inserted into the medal insertion slot 11 by the player's insertion operation, and outputs a signal indicating that the medal is inserted to the microcomputer 600.

リール位置検出回路50は、リール回転センサ(図示せず)からのパルス信号を検出し、各リール3L,3C,3R上の図柄の位置を検出するための信号を発生する。   The reel position detection circuit 50 detects a pulse signal from a reel rotation sensor (not shown) and generates a signal for detecting the position of the symbol on each reel 3L, 3C, 3R.

払出完了信号回路342は、メダル検出部34Sにより検出されたメダルの枚数(すなわちホッパー装置34から払い出されたメダルの枚数)が指定された枚数に達した際に、メダルの払い出しが完了したことを示すための信号を発生する。   The payout completion signal circuit 342 completes the medal payout when the number of medals detected by the medal detection unit 34S (that is, the number of medals paid out from the hopper device 34) reaches the designated number. Generates a signal to indicate.

主制御回路60には、副制御回路70に対してコマンド等の情報を送信するための主基板通信LSI610が接続されている。主基板通信LSI610は、マイクロコンピュータ600とともに主制御回路60を構成する要素として主基板6A(図6参照)に搭載されている。主基板通信LSI610は、光伝送媒体としての光ファイバーケーブル100(図6参照)によりドア中継基板53を介して副制御回路70に接続されている。マイクロコンピュータ600(メインCPU601)は、主基板通信LSI610を通じて各種のコマンド等を副制御回路70に送信する。なお、本実施形態のメインCPU601には、第1UART601Aが内蔵されており、メインCPU601は、第1UART601Aを通じて主基板通信LSI610に情報を送信可能とされる(図6参照)。このような主基板通信LSI610や第1UART601Aの詳細については、後述する。   To the main control circuit 60, a main substrate communication LSI 610 for transmitting information such as a command to the sub control circuit 70 is connected. The main substrate communication LSI 610 is mounted on the main substrate 6A (see FIG. 6) as an element constituting the main control circuit 60 together with the microcomputer 600. The main substrate communication LSI 610 is connected to the sub control circuit 70 via the door relay substrate 53 by an optical fiber cable 100 (see FIG. 6) as an optical transmission medium. The microcomputer 600 (main CPU 601) transmits various commands and the like to the sub control circuit 70 through the main substrate communication LSI 610. The main CPU 601 of the present embodiment incorporates the first UART 601A, and the main CPU 601 can transmit information to the main substrate communication LSI 610 through the first UART 601A (see FIG. 6). Details of such a main board communication LSI 610 and the first UART 601A will be described later.

副制御回路70は、後述するスタートコマンド等を含む主制御回路60から送信された各種のコマンドに基づいて演出データの決定や実行等の各種の処理を行う。副制御回路70が主制御回路60へコマンドや情報等を送信することはなく、主制御回路60から副制御回路70に向けて単方向(片方向)で通信が行われる。   The sub control circuit 70 performs various processes such as determination and execution of effect data based on various commands transmitted from the main control circuit 60 including a start command described later. The sub control circuit 70 does not transmit a command, information or the like to the main control circuit 60, and communication is performed in one direction (one direction) from the main control circuit 60 to the sub control circuit 70.

副制御回路70からの制御信号により動作が制御される主要な周辺装置等としては、液晶表示領域10Aに画像を表示させる表示手段としての液晶表示装置10、スピーカ48,49、及びランプ20等がある。副制御回路70は、決定した演出データに基づいて、液晶表示装置10に表示される画像の決定とその表示、各種のランプ20の発光パターンの決定と出力、スピーカ48,49から出力する演出音や効果音の決定と出力等の制御を行う。この副制御回路70の詳細については、後述する。   The main peripheral devices whose operations are controlled by the control signal from the sub control circuit 70 include the liquid crystal display device 10 as display means for displaying an image on the liquid crystal display area 10A, the speakers 48 and 49, the lamp 20 and the like. is there. The sub control circuit 70 determines and displays the image displayed on the liquid crystal display device 10 based on the determined effect data, determines and outputs the light emission pattern of the various lamps 20, and outputs the effect sound output from the speakers 48 and 49. It controls the determination and output of sound effects. The details of the sub control circuit 70 will be described later.

また、主制御回路60には、パチスロ1の外部に設置されたホールコンピュータ1000に対してコマンド等の情報を出力するための外部出力用通信LSI610Aが接続されている。外部出力用通信LSI610Aは、マイクロコンピュータ600とともに主制御回路60を構成する要素として主基板6A(図10参照)に搭載されている。外部出力用通信LSI610Aは、光伝送媒体としての光ファイバーケーブル100(図10参照)により外部中継基板8Aを介して外部集中端子板9Aの後述する外部端子板制御LSI910に接続されている。マイクロコンピュータ600(メインCPU601)は、外部出力用通信LSI610Aを通じて各種のコマンド等を外部集中端子板9Aの外部端子板制御LSI910に送信する。なお、本実施形態のメインCPU601には、第1UART601Aとは別の第2UART601Bが内蔵されており、メインCPU601は、第2UART601Bを通じて外部出力用通信LSI610Aに情報を送信可能とされる(図10参照)。このような外部出力用通信LSI610Aや第2UART601Bの詳細については、後述する。   Further, to the main control circuit 60, an external output communication LSI 610A for outputting information such as a command to the hall computer 1000 installed outside the pachislot 1 is connected. The external output communication LSI 610A is mounted on the main substrate 6A (see FIG. 10) as an element constituting the main control circuit 60 together with the microcomputer 600. The external output communication LSI 610A is connected to an external terminal board control LSI 910, which will be described later, of the external concentrated terminal board 9A via an external relay board 8A by an optical fiber cable 100 (see FIG. 10) as an optical transmission medium. The microcomputer 600 (main CPU 601) transmits various commands and the like to the external terminal board control LSI 910 of the external concentrated terminal board 9A through the external output communication LSI 610A. The main CPU 601 according to this embodiment incorporates a second UART 601B different from the first UART 601A, and the main CPU 601 can transmit information to the external output communication LSI 610A through the second UART 601B (see FIG. 10). . Details of such an external output communication LSI 610A and the second UART 601B will be described later.

図10に示すように、外部集中端子板9Aは、外部出力用通信LSI610Aからのコマンド等をホールコンピュータ1000(図3参照)へと出力するための外部端子板制御LSI910を有する。外部端子板制御LSI910は、主制御回路60の外部出力用通信LSI610Aへとコマンドや情報等を送信することはなく、主基板6Aから外部集中端子板9Aに向けて単方向(片方向)で通信が行われる。外部出力用通信LSI610A及び外部端子板制御LSI910は、主基板通信LSI610と概ね同様の構成からなる。このような外部出力用通信LSI610A及び外部端子板制御LSI910の詳細については、後述する。   As shown in FIG. 10, the external concentrated terminal board 9A has an external terminal board control LSI 910 for outputting a command or the like from the external output communication LSI 610A to the hall computer 1000 (see FIG. 3). The external terminal board control LSI 910 does not transmit commands or information to the external output communication LSI 610A of the main control circuit 60, and communicates from the main board 6A toward the external concentrated terminal board 9A in a single direction (one direction) Is done. The external output communication LSI 610A and the external terminal board control LSI 910 have substantially the same configuration as the main substrate communication LSI 610. The details of the external output communication LSI 610A and the external terminal board control LSI 910 will be described later.

パチスロ1では、メダルの投入を条件に、遊技者のスタートレバー16に対する操作によって、スタートスイッチ6Sから遊技を開始する信号が出力されると、モータ駆動回路39に制御信号が出力され、ステッピングモータ50L,50C,50Rの駆動制御(例えば、各相への励磁等)によりリール3L,3C,3Rの回転が開始される。この際、ステッピングモータ50L,50C,50Rに出力されるパルスの数が計数され、その計数値は、パルスカウンタとしてメインRAM603の所定の領域にセットされる。パチスロ1では、「16」のパルスが出力されると、リール3L,3C,3Rが図柄1つ分移動する。移動した図柄の数は計数され、その計数値は、図柄カウンタとしてメインRAM603の所定の領域にセットされる。つまり、パルスカウンタにより「16」のパルスが計数されるごとに、図柄カウンタが「1」ずつ更新される。なお、図柄カウンタの値が示す図柄位置の図柄(図22参照)がセンターライン8上に位置している図柄に対応する。例えば、左リール3Lの図柄カウンタが「0」である場合には、図22(a)に示す図柄配置テーブルの図柄位置「0」のベルがセンターライン8上に位置している。   In the pachi slot 1, when a signal to start the game is output from the start switch 6S by the operation of the player's start lever 16 on condition of medal insertion, a control signal is output to the motor drive circuit 39, and the stepping motor 50L , 50C, 50R (for example, excitation to each phase, etc.), rotation of the reels 3L, 3C, 3R is started. At this time, the number of pulses output to the stepping motors 50L, 50C, 50R is counted, and the count value is set in a predetermined area of the main RAM 603 as a pulse counter. In the pachi slot 1, when the pulse "16" is output, the reels 3L, 3C, 3R move by one symbol. The number of moved symbols is counted, and the count value is set in a predetermined area of the main RAM 603 as a symbol counter. That is, each time "16" pulses are counted by the pulse counter, the symbol counter is updated by "1". The symbol (see FIG. 22) at the symbol position indicated by the value of the symbol counter corresponds to the symbol located on the center line 8. For example, when the symbol counter of the left reel 3L is “0”, the bell of the symbol position “0” of the symbol arrangement table shown in FIG. 22A is located on the center line 8.

また、リール3L,3C,3Rからは、1回転毎にリールインデックスが得られ、リールインデックスは、リール位置検出回路50を介してメインCPU601に出力される。リールインデックスの出力により、メインRAM603にセットされているパルスカウンタや図柄カウンタが「0」にクリアされる。このようにして、各リール3L,3C,3Rについて1回転の範囲内における図柄位置が特定される。なお、リールの回転により各図柄が1図柄分移動する距離を1コマという。すなわち、図柄が1コマ移動することは、図柄カウンタが「1」更新されることに対応する。   Further, from the reels 3L, 3C, 3R, a reel index is obtained for each rotation, and the reel index is output to the main CPU 601 via the reel position detection circuit 50. The output of the reel index clears the pulse counter and the symbol counter set in the main RAM 603 to “0”. Thus, the symbol position within the range of one rotation is specified for each reel 3L, 3C, 3R. The distance by which each symbol moves one symbol by rotation of the reel is called one frame. That is, one symbol movement of the symbol corresponds to the symbol counter being updated by "1".

リール3L,3C,3Rの回転位置とリール外周面上に描かれた図柄とを対応付けるために、メインROM602には、図柄配置テーブル(図22(a)参照)が記憶されている。この図柄配置テーブルは、前述のリールインデックスが出力される位置を基準として、各リール3L,3C,3Rの一定の回転ピッチ毎に順次付与される、「00」から「20」までのコードナンバーと、それぞれのコードナンバー毎に対応して設けられた図柄の種類を識別する図柄コードとを対応付けている。   A symbol arrangement table (see FIG. 22A) is stored in the main ROM 602 in order to associate the rotational positions of the reels 3L, 3C, 3R with the symbols drawn on the outer peripheral surface of the reels. This symbol arrangement table has code numbers from "00" to "20" sequentially given for each fixed rotation pitch of each reel 3L, 3C, 3R based on the position where the above-mentioned reel index is output The symbol is associated with a symbol code identifying the type of symbol provided corresponding to each code number.

また、スタートスイッチ6Sから開始信号が出力されると、乱数発生器606やサンプリング回路607により乱数値が抽出される。パチスロ1では、乱数値が抽出されると、メインRAM603の乱数値記憶領域に記憶される。そして、乱数値記憶領域に記憶された乱数値に基づいて内部当籤役が決定される。   In addition, when the start signal is output from the start switch 6S, the random number generator 606 and the sampling circuit 607 extract random number values. In pachislot 1, when the random number value is extracted, it is stored in the random number value storage area of the main RAM 603. Then, the internal winning combination is determined based on the random number value stored in the random number value storage area.

リール3L,3C,3Rが定速回転に達した後、停止操作によりストップスイッチ7LS,7CS,7RSから停止信号が出力されると、出力された停止信号および決定された内部当籤役に基づいて、リール3L,3C,3Rを停止制御する制御信号がモータ駆動回路39に出力される。モータ駆動回路39は、ステッピングモータ50L,50C,50Rを駆動制御し、リール3L,3C,3Rの回転を停止させる。   After the reels 3L, 3C, 3R reach constant speed rotation, when a stop signal is output from the stop switches 7LS, 7CS, 7RS by the stop operation, based on the output stop signal and the determined internal winning combination, A control signal for stopping and controlling the reels 3L, 3C, 3R is output to the motor drive circuit 39. The motor drive circuit 39 drives and controls the stepping motors 50L, 50C, and 50R to stop the rotation of the reels 3L, 3C, and 3R.

メインCPU601は、停止操作が行われた時点から内部当籤役の成立に係る図柄を最大滑りコマ数分、すなわち、4コマ分引き込んでリール3L,3C,3Rの回転を停止させる。具体的に、メインCPU601は、ストップスイッチ7LS,7CS,7RSにより停止操作の検出が行われた後、4コマ以内に内部当籤役の成立に係る図柄が存在するか否かを判別し、4コマ以内に内部当籤役の成立に係る図柄が存在する場合に、当該図柄を有効ライン上に停止表示されるように滑りコマ数を決定し、該当するリールを停止させる。また、メインCPU601は、内部当籤役として複数の役を決定した場合において、4コマ以内に内部当籤役の成立に係る図柄が複数存在する場合には、より優先順位の高い内部当籤役に係る図柄を有効ライン上に停止表示させるように滑りコマ数を決定する。   The main CPU 601 pulls in the symbols related to the establishment of the internal winning combination by the maximum number of sliding symbols, that is, four frames from the time the stop operation is performed, and stops the rotation of the reels 3L, 3C, 3R. Specifically, after the detection of the stop operation is performed by the stop switches 7LS, 7CS, 7RS, the main CPU 601 determines whether or not there is a symbol relating to the establishment of the internal winning combination within four frames, and determines four frames. If there is a symbol relating to the establishment of the internal winning combination within, the number of sliding symbols is determined so that the symbol is stopped and displayed on the effective line, and the corresponding reel is stopped. When the main CPU 601 determines a plurality of winning combinations as an internal winning combination, if there are a plurality of symbols relating to the establishment of the internal winning combination within 4 frames, the symbol relating to the internal winning combination of higher priority. Determine the number of sliding symbols so as to make the stop display on the effective line.

なお、基本的には、優先順位1位(優先度が最も高い)は、リプレイに係る図柄の組合せであり、優先順位2位は、小役に係る図柄の組合せである。次いで、優先順位3位は、ボーナスに係る図柄の組合せである。また、ストップスイッチ7LS,7CS,7RSにより停止操作の検出された際、該当するリール3L,3C,3Rの図柄カウンタに対応する図柄位置、すなわち、リール3L,3C,3Rの回転の停止が開始される図柄位置を「停止開始位置」といい、当該停止開始位置に決定した滑りコマ数(数値範囲「0」〜「4」)を加算した図柄位置、すなわち、リール3L,3C,3Rの回転を停止させる図柄位置を「停止予定位置」という。滑りコマ数は、ストップスイッチ7LS,7CS,7RSにより停止操作が検出されてから対応するリール3L,3C,3Rの回転が停止するまでのリール3L,3C,3Rの回転量であり、本実施形態においては、例えば最大滑りコマ数を「4」と規定している。   In addition, basically, the first priority (highest priority) is a combination of symbols relating to replay, and the second highest priority is a combination of symbols relating to a minor combination. Next, the third priority is a combination of symbols related to the bonus. Further, when the stop operation is detected by the stop switches 7LS, 7CS, 7RS, the stop of the rotation of the symbol positions corresponding to the symbol counters of the corresponding reels 3L, 3C, 3R, ie, the reels 3L, 3C, 3R is started The symbol position is called the "stop start position", and the symbol position obtained by adding the number of sliding symbols (numerical range "0" to "4") determined to the stop start position, that is, rotation of the reels 3L, 3C, 3R The symbol position to be stopped is referred to as "planned stop position." The number of sliding symbols is the amount of rotation of the reels 3L, 3C, 3R from when the stop operation is detected by the stop switches 7LS, 7CS, 7RS until the rotation of the corresponding reels 3L, 3C, 3R is stopped. In, for example, the maximum number of sliding symbols is defined as "4".

全てのリール3L,3C,3Rの回転が停止すると、メインCPU601は、センターライン8を含む有効ライン上に表示された図柄の組合せに基づいて表示役の検索処理、すなわち役の成立・不成立の判定処理を行う。表示役の検索は、メインROM602に記憶された後述の図柄組合せテーブル(図23参照)に基づいて行われる。この図柄組合せテーブルでは、表示役に係る図柄の組合せと、対応する配当とが設定されている。   When the rotation of all the reels 3L, 3C, 3R is stopped, the main CPU 601 searches the display combination based on the combination of the symbols displayed on the effective line including the center line 8, that is, determines the establishment or failure of the combination. Do the processing. The search for the display combination is performed based on a symbol combination table (see FIG. 23) described later stored in the main ROM 602. In this symbol combination table, a combination of symbols relating to a display combination and a corresponding payout are set.

表示役の検索により、入賞に係る図柄の組合せが表示されたと判別されると、ホッパー駆動回路341に制御信号が出力され、ホッパー装置34の駆動によりメダルの払い出しが行われる。この際、メダル検出部34Sは、ホッパー装置34から払い出されるメダルの枚数を計数し、その計数値が指定された数に達すると、払出完了信号回路342によりメダル払い出しの完了を示す信号が出力される。これにより、ホッパー駆動回路341に制御信号が出力され、ホッパー装置34の駆動が停止される。   When it is determined by the search for the display combination that the combination of symbols relating to winning is displayed, a control signal is output to the hopper drive circuit 341, and the payout of medals is performed by the driving of the hopper device 34. At this time, the medal detecting unit 34S counts the number of medals paid out from the hopper device 34, and when the counted value reaches the designated number, the payout completion signal circuit 342 outputs a signal indicating the completion of medal payout. Ru. As a result, a control signal is output to the hopper drive circuit 341, and the driving of the hopper device 34 is stopped.

なお、精算スイッチ14Sにより、クレジットモードに切り替えられている場合には、入賞に係る図柄の組合せが表示されたと判別されると、入賞に係る図柄の組合せに応じた払出枚数をメインRAM603のクレジットカウンタに加算する。また、副制御回路70には、払い出されたメダルの枚数に関する情報が送信され、これに基づいて液晶表示装置10の液晶表示領域10Aには、メダルの払出枚数および更新されたクレジット枚数が表示される。ここで、入賞に係る図柄の組合せが表示された場合に行われる、メダルの払い出し又はクレジットを総称して単に「払い出し」という場合がある。   When it is determined that the combination of symbols relating to winning is displayed when the settlement switch 14S switches to the credit mode, the number of payouts corresponding to the combination of symbols relating to winning is the credit counter of the main RAM 603. Add to Further, information on the number of medals paid out is sent to the sub control circuit 70, and based on this, the number of medals paid out and the number of updated credits are displayed in the liquid crystal display area 10A of the liquid crystal display device Be done. Here, there are cases where medal payouts or credits, which are performed when a combination of symbols relating to winning, is displayed, may be simply referred to as "payout".

[副制御回路の構成]
副制御回路70は、映像、音、光等を用いた遊技に関する演出を行うための制御を行う。副制御回路70は、主制御回路60から送信される各種のコマンド等に基づいて、演出データを決定して各種演出処理を行う。副制御回路70は、処理手段としてのサブCPU701、サブROM702、記憶手段としてのサブRAM703、レンダリングプロセッサ704、描画用RAM705(フレームバッファ706を含む)、ドライバ707、DSP708、A/D変換器709A、アンプ709B、オーディオRAM709C、及び通信手段としての副基板通信LSI710を有する。
[Configuration of sub control circuit]
The sub control circuit 70 performs control for producing effects relating to a game using video, sound, light and the like. The sub control circuit 70 determines effect data based on various commands and the like transmitted from the main control circuit 60 and performs various effect processes. The sub control circuit 70 includes a sub CPU 701 as processing means, a sub ROM 702, a sub RAM 703 as storage means, a rendering processor 704, a drawing RAM 705 (including a frame buffer 706), a driver 707, a DSP 708, an A / D converter 709A, It has an amplifier 709 B, an audio RAM 709 C, and a sub-substrate communication LSI 710 as communication means.

サブCPU701は、サブROM702に記憶されているプログラムに基づいて、液晶表示装置10の表示制御、スピーカ48,49の出力制御、ランプ20の発光制御等を行う。具体的に、サブCPU701は、主制御回路60から各種のコマンド等を受信し、受信したコマンドに含まれる各種情報をサブRAM703に記憶させる。なお、主制御回路60からは、あらゆる情報がコマンドにより送信され、副制御回路70は、受信したコマンドに基づいて主制御回路60の状態を逐一判断することができる。サブCPU701は、サブRAM703に記憶させた遊技状態情報、内部当籤役情報等を参照しながら、プログラムを実行することにより、液晶表示装置10、スピーカ48,49、及びランプ20等の演出装置に行わせる演出の内容を決定する。サブCPU701は、決定した演出データに基づいて、レンダリングプロセッサ704を介して液晶表示装置10を制御し、スピーカ48,49から出力させる音と、各種ランプ20の発光を制御する。   The sub CPU 701 performs display control of the liquid crystal display device 10, output control of the speakers 48 and 49, light emission control of the lamp 20, and the like based on a program stored in the sub ROM 702. Specifically, the sub CPU 701 receives various commands and the like from the main control circuit 60, and causes the sub RAM 703 to store various information included in the received command. From the main control circuit 60, any information is transmitted by a command, and the sub control circuit 70 can determine the state of the main control circuit 60 one by one based on the received command. The sub CPU 701 executes the program while referring to the gaming state information, the internal winning combination information and the like stored in the sub RAM 703, thereby effecting the liquid crystal display device 10, the speakers 48 and 49, the lamp 20 and the like Determine the content of the effect The sub CPU 701 controls the liquid crystal display device 10 via the rendering processor 704 based on the determined effect data, and controls the sound to be output from the speakers 48 and 49 and the light emission of the various lamps 20.

また、サブCPU701は、サブROM702に記憶されている乱数取得プログラムを実行することにより、演出データ等を決定する際に用いる乱数値を取得する。ただし、主制御回路60と同様に乱数発生器およびサンプリング回路を副制御回路70内に設ける場合には、当該処理は不要である。   Further, the sub CPU 701 executes a random number acquisition program stored in the sub ROM 702 to acquire a random value used when determining effect data and the like. However, when the random number generator and the sampling circuit are provided in the sub control circuit 70 as in the main control circuit 60, the process is unnecessary.

サブROM702は、サブCPU701が実行するプログラムを記憶するプログラム記憶領域と、各種テーブル等を記憶するデータ記憶領域を有する。プログラム記憶領域は、オペレーティングシステム、デバイスドライバ、主制御回路60との通信に係る各種の処理、演出の内容を決定するための演出登録タスク等を記憶する。一方、データ記憶領域は、演出抽籤テーブル等を記憶するテーブル記憶領域、キャラクタオブジェクトデータといったアニメーションデータ等を記憶する描画制御データ記憶領域、BGMや効果音といった音データ等を記憶する音声制御データ記憶領域、光の点灯パターン等を記憶するLED制御データ記憶領域等を有する。   The sub ROM 702 has a program storage area for storing a program executed by the sub CPU 701, and a data storage area for storing various tables and the like. The program storage area stores an operating system, a device driver, various processes related to communication with the main control circuit 60, an effect registration task for determining the content of effect, and the like. On the other hand, the data storage area is a table storage area for storing an effect / lottery table etc., a drawing control data storage area for storing animation data such as character object data, and a voice control data storage area for storing sound data such as BGM and sound effects. , And an LED control data storage area and the like for storing a lighting pattern and the like of light.

サブRAM703は、図54に示すように、サブ制御ゲームデータ領域703aと、サブ制御ゲームデータサム値領域703bと、ワーク領域703cと、エラー情報履歴格納領域703dと、通信ログ収集領域703eと、通信エラー保存領域703fとを備える。   As shown in FIG. 54, the sub RAM 703 communicates with the sub control game data area 703a, the sub control game data sum value area 703b, the work area 703c, the error information history storage area 703d, and the communication log collection area 703e. And an error storage area 703f.

サブ制御ゲームデータ領域703aは、遊技の進行に関するゲームデータのうちでサブRAM703に記憶されるデータを記憶するようになっている。サブ制御ゲームデータサム値領域703bは、サブ制御ゲームデータ領域703aに記憶されたゲームデータのチェックサム用のサム値を記憶するようになっている。ワーク領域703cは、各種処理におけるワークデータを記憶するようになっている。   The sub control game data area 703a is configured to store data stored in the sub RAM 703 among game data relating to the progress of the game. The sub-control game data sum value area 703b is adapted to store a checksum for the game data stored in the sub-control game data area 703a. The work area 703 c is adapted to store work data in various processes.

サブ制御ゲームデータ領域703aおよびワーク領域703cは、サブCPU701が各プログラムを実行する際に、作業用一時記憶手段として使用される。また、サブ制御ゲームデータ領域703aは、例えば、主制御回路60から送信されたコマンド、演出データ情報、遊技状態情報、内部当籤役情報、表示役情報、各種カウンタおよび各種フラグ等の情報を記憶するようになっている。   The sub control game data area 703a and the work area 703c are used as temporary work storage means when the sub CPU 701 executes each program. The sub control game data area 703a stores, for example, information transmitted from the main control circuit 60, effect data information, gaming state information, internal winning combination information, display combination information, various counters, various flags, etc. It is supposed to be.

エラー情報履歴格納領域703dは、図55(a)に示すように、後述する主基板通信処理(図40参照)や通信LSI受信データ解析処理(図41参照)等により検出された全てのエラー情報を記憶するようになっている。エラー情報履歴格納領域703dでは、エラーコードが逐次記憶されることにより、エラー情報履歴が作成されるようになっている。エラー情報履歴格納領域703dでは、検出されたエラーがCOMエラーとして記憶されるようになっている。   As shown in FIG. 55 (a), the error information history storage area 703d includes all error information detected by a main board communication process (see FIG. 40) described later (see FIG. 41) and the communication LSI reception data analysis process (see FIG. 41). Is supposed to remember. In the error information history storage area 703 d, an error information history is created by sequentially storing error codes. The detected error is stored as a COM error in the error information history storage area 703 d.

具体的には、図55(a)に示すように、エラー情報履歴格納領域703dは、エラーコード(図中、ERROR CODE)と、エラー発生日時(図中、「発生」)と、エラー解除日時(図中、「解除」)とを1組のエラー情報とし、128組のエラー情報を格納可能になっている。このように、エラー情報履歴格納領域703dでは、エラーコードが逐次記憶されることにより、エラー情報履歴が作成される。   Specifically, as shown in FIG. 55 (a), the error information history storage area 703d has an error code (ERROR CODE in the figure), an error occurrence date ("occurrence" in the figure), and an error release date (In the figure, "cancel") is regarded as one set of error information, and 128 sets of error information can be stored. As described above, in the error information history storage area 703 d, an error information history is created by sequentially storing error codes.

エラーコードは、1バイトデータであり、その内容は、図55(b)に示すように、データ破壊エラー(図中、「サム異常」)や、通信に係る各種のエラー(図中、「主基板通信LSI物理層エラー」、「主基板通信LSIサイズ不足」、「副基板通信LSI物理層エラー」、「副基板通信LSIサイズ不足」、「副基板通信LSI CRCエラー」、「サブCPU CRCエラー」、「サブCPU サイズ不足」)や、その他のエラーを含んでいる。エラー発生日時およびエラー解除日時は、いずれも2バイトデータの年、1バイトデータの月、1バイトデータの日、1バイトデータの時、1バイトデータの分、1バイトデータの秒から構成されている。   The error code is 1-byte data, and the contents thereof are, as shown in FIG. 55 (b), a data corruption error ("Sam error" in the figure) and various errors related to communication ("major" in the figure). Board communication LSI physical layer error, "main board communication LSI size insufficient", "sub board communication LSI physical layer error", "sub board communication LSI size insufficient", "sub board communication LSI CRC error", "sub CPU CRC error" "," Insufficient sub CPU size ") and other errors. The error occurrence date and error release date consist of year of 2-byte data, month of 1-byte data, day of 1-byte data, 1-byte data, 1-byte data, and 1-byte data seconds There is.

本実施形態においては、エラー情報履歴格納領域703dに格納されたエラー情報履歴を液晶表示装置10に表示させるために次のような手順を一例として採用している。例えば、係員がドアキー110を右回転させると、フロントドア2bのロック機構が解除され、さらに設定キーを設定用鍵型スイッチに差し込んでオン操作すると、液晶表示領域10Aには、図44に示すメニュー画面が表示される。そして、係員が画面上の操作キーを操作して、「エラー情報履歴」項目100aを選択することで、液晶表示領域10Aには、図45に示すようなエラー情報履歴画面が表示される。また、係員がドアキーを左回転させるとエラーのリセットが行われ、その状態を一定時間、例えば5秒間以上保持することによっても、液晶表示領域10Aには、図45に示すようなエラー情報履歴画面が表示されるようになっている。   In the present embodiment, the following procedure is adopted as an example to display the error information history stored in the error information history storage area 703 d on the liquid crystal display device 10. For example, when the clerk rotates the door key 110 to the right, the lock mechanism of the front door 2b is released, and when the setting key is inserted into the setting key type switch and turned on, the liquid crystal display area 10A displays the menu shown in FIG. The screen is displayed. Then, when the clerk operates the operation keys on the screen to select the “error information history” item 100a, an error information history screen as shown in FIG. 45 is displayed on the liquid crystal display area 10A. In addition, when the clerk rotates the door key to the left, the error is reset, and the error information history screen as shown in FIG. 45 is displayed on the liquid crystal display area 10A also by holding the state for a predetermined time, for example 5 seconds or more. Is to be displayed.

図47に示すように、通信ログ収集領域703eには、256のコマンドおよびパラメータのデータ組と、対応する1つのバッファインデックスとからなるデータ群が適宜数記憶され、それらがリングバッファとして機能するようになっている。図48に示すように、通信エラー保存領域703fには、256のコマンドおよびパラメータのデータ組と、対応する1つのバッファインデックスとからなるデータ群が1024個記憶されている。また、通信エラー保存領域703fには、1024のバッファインデックスのうちのどのバッファインデックスが選択されているかを示すバッファ選択インデックスが1つ設けられている。図47に示す通信ログ収集領域703e及び図48に示す通信エラー保存領域703fでは、コマンドは1文字データからなるとともに、パラメータは2文字データからなるものとしている。   As shown in FIG. 47, in the communication log collection area 703e, a data group consisting of a data set of 256 commands and parameters and one corresponding buffer index is stored in an appropriate number, and they function as a ring buffer. It has become. As shown in FIG. 48, the communication error storage area 703f stores 1024 data groups each consisting of a data set of 256 commands and parameters and one corresponding buffer index. Further, in the communication error storage area 703f, one buffer selection index is provided which indicates which buffer index of the 1024 buffer indexes is selected. In the communication log collection area 703e shown in FIG. 47 and the communication error storage area 703f shown in FIG. 48, the command consists of one character data, and the parameter consists of two character data.

サブCPU701は、受信ログ(以下、通信ログともいう)に関する情報を収集して、通信ログ収集領域703eに通信ログを一時的に保存する。さらに、サブCPU701は、通信に関するエラーを検出した場合に、通信エラー保存領域703fに通信エラーに関する通信ログ(以下、通信エラーログという)を1024個まで保存するようになっている。   The sub CPU 701 collects information on a reception log (hereinafter also referred to as a communication log) and temporarily stores the communication log in the communication log collection area 703 e. Furthermore, the sub CPU 701 stores up to 1024 communication logs (hereinafter referred to as communication error logs) related to communication errors in the communication error storage area 703 f when an error related to communication is detected.

図46には、コマンドの種別とパラメータとの例を示す。同図中の数値は、データの文字数であり、1文字のデータはコマンド種別、2文字のデータは直前のコマンドに対するパラメータをそれぞれ示す。本実施形態において、受信コマンドの数値範囲は、図46に示すように、01H〜10Hとなっている。   FIG. 46 shows an example of command types and parameters. The numerical values in the figure indicate the number of characters of data, and one-character data indicates the command type, and two-character data indicates the parameter for the immediately preceding command. In the present embodiment, the numerical range of the reception command is 01H to 10H as shown in FIG.

図4に示すように、サブCPU701には、主制御回路60から送信されたコマンド等のデータを受信するための副基板通信LSI710が接続されている。副基板通信LSI710は、副制御回路70を構成する要素として副基板7A(図6参照)に搭載されている。副基板通信LSI710は、光伝送媒体としての光ファイバーケーブル100(図6参照)によりドア中継基板53を介して主制御回路60における主基板通信LSI610に接続されている。サブCPU701は、副基板通信LSI710を通じて主制御回路60から送信された各種のコマンド等を受信する。なお、本実施形態のサブCPU701には、UART701Aが内蔵されており、サブCPU701は、UART701Aを通じて副基板通信LSI710との間でデータを送受信可能とされる(図6参照)。このような副基板通信LSI710やUART701Aの詳細については、後述する。   As shown in FIG. 4, the sub CPU 701 is connected with a sub substrate communication LSI 710 for receiving data such as a command transmitted from the main control circuit 60. The sub substrate communication LSI 710 is mounted on the sub substrate 7A (see FIG. 6) as an element of the sub control circuit 70. The sub board communication LSI 710 is connected to the main board communication LSI 610 in the main control circuit 60 via the door relay board 53 by an optical fiber cable 100 (see FIG. 6) as an optical transmission medium. The sub CPU 701 receives various commands and the like transmitted from the main control circuit 60 through the sub substrate communication LSI 710. The sub CPU 701 of the present embodiment incorporates a UART 701 A, and the sub CPU 701 can transmit and receive data to and from the sub substrate communication LSI 710 through the UART 701 A (see FIG. 6). Details of such a sub-substrate communication LSI 710 and the UART 701A will be described later.

レンダリングプロセッサ704は、サブCPU701からの画像表示コマンド等に基づいて、液晶表示装置10に画像を表示させるための処理を行う。レンダリングプロセッサ704が行う処理に必要なデータは、起動時に描画用RAM705に展開される。レンダリングプロセッサ704は、描画用RAM705に展開されている画像データを後方に位置する背景画像から前方に位置する画像まで順に重ね合わせて画像データを生成し、ドライバ707を介して液晶表示装置10に供給する。その結果、サブCPU701により決定された演出データに応じた画像が液晶表示装置10によって液晶表示領域10Aに表示される。   The rendering processor 704 performs processing for displaying an image on the liquid crystal display device 10 based on an image display command or the like from the sub CPU 701. Data necessary for processing performed by the rendering processor 704 is expanded in the drawing RAM 705 at startup. The rendering processor 704 generates image data by sequentially superimposing image data developed in the drawing RAM 705 from the background image located behind to the image located forward, and supplies the image data to the liquid crystal display device 10 via the driver 707 Do. As a result, an image corresponding to the effect data determined by the sub CPU 701 is displayed on the liquid crystal display area 10A by the liquid crystal display device 10.

描画用RAM705は、書込画像データ領域と表示画像データ領域の2つのフレームバッファ706を有する。書込画像データ領域は、レンダリングプロセッサ704が表示画像を生成した画像データを格納し、表示画像データ領域は、液晶表示装置10に表示させる画像データを格納する。レンダリングプロセッサ704は、これらのフレームバッファを交互に切り替える(すなわち、バンクを切り替える)ことにより、順次、画像データを液晶表示装置10に表示させる。   The drawing RAM 705 has two frame buffers 706 of a write image data area and a display image data area. The write image data area stores the image data for which the rendering processor 704 has generated the display image, and the display image data area stores the image data to be displayed on the liquid crystal display device 10. The rendering processor 704 causes the liquid crystal display device 10 to sequentially display image data by alternately switching these frame buffers (that is, switching banks).

DSP708は、サブCPU701が演出データに基づいて選択するデジタル形式の音データに基づいてサウンドデータを生成する。オーディオRAM709Cは、サウンドデータを一時的に記憶し、オーディオバッファとして用いられる。A/D変換器709Aは、DSP708からのサウンドデータを、アナログ形式の音データに変換してアンプ709Bに出力する。アンプ709Bは、A/D変換器709Aからのアナログ形式の音データを音量調整用ツマミ(図示せず)により調節された音量に基づいて増幅させ、スピーカ48,49に出力する。その結果、サブCPU701により決定された演出データに応じた音が、スピーカ48,49から出力される。   The DSP 708 generates sound data based on sound data in digital format that the sub CPU 701 selects based on the effect data. The audio RAM 709C temporarily stores sound data and is used as an audio buffer. The A / D converter 709A converts the sound data from the DSP 708 into sound data of an analog format and outputs it to the amplifier 709B. The amplifier 709 B amplifies the analog format sound data from the A / D converter 709 A based on the volume adjusted by the volume adjustment knob (not shown) and outputs it to the speakers 48 and 49. As a result, a sound corresponding to the effect data determined by the sub CPU 701 is output from the speakers 48 and 49.

[主基板通信LSI及び副基板通信LSIの構成]
図5は、主基板通信LSI610及び副基板通信LSI710の構成を示している。主基板通信LSI610及び副基板通信LSI710は、同一の構成要素を有するものである。以下、主基板通信LSI610と副基板通信LSI710とに共通する各構成要素の機能を主として説明するとともに、主基板通信LSI610と副基板通信LSI710とで各構成要素の機能が異なる点については、主基板通信LSI610と副基板通信LSI710とで適宜区別して説明する。
[Configuration of main substrate communication LSI and sub substrate communication LSI]
FIG. 5 shows the configurations of the main substrate communication LSI 610 and the sub substrate communication LSI 710. The main substrate communication LSI 610 and the sub substrate communication LSI 710 have the same components. The functions of the components common to the main substrate communication LSI 610 and the sub substrate communication LSI 710 will be mainly described below, and the main substrate different in the functions of the components between the main substrate communication LSI 610 and the sub substrate communication LSI 710 The communication LSI 610 and the sub-substrate communication LSI 710 will be appropriately distinguished and described.

図5に示すように、主基板通信LSI610及び副基板通信LSI710は、専用コントローラ611,711、設定レジスタ612,712、キャッシュメモリ613,713、AES(Advanced Encryption Standard)回路614,714、第1UART(Universal Asynchronous Receiver Transmitter)615,715、第2UART616,716、第1SPI(Serial Peripheral Interface)617,717、第2SPI(図示せず)、第1〜4マンチェスター回路618〜621,718〜721、及びクロック・リセット制御回路622,722を構成要素として有する。これらの構成要素は、内部バス623,723を介して相互に接続されている。第1UART615,715及び第1マンチェスター回路618,718は、互いに接続されており、第2UART616,716及び第2マンチェスター回路619,719も、互いに接続されている。このような主基板通信LSI610及び副基板通信LSI710は、例えばASICにより構成される。   As shown in FIG. 5, the main board communication LSI 610 and the sub board communication LSI 710 are each configured by dedicated controllers 611 and 711, setting registers 612 and 712, cache memories 613 and 713, AES (Advanced Encryption Standard) circuits 614 and 714, and a first UART Universal Asynchronous Receiver Transmitter 615, 715, second UART 616, 716, first SPI (Serial Peripheral Interface) 617, 717, second SPI (not shown), first to fourth Manchester circuits 618 to 621, 718 to 721, and clock Reset control circuits 622 and 722 are included as components. These components are connected to one another via internal buses 623, 723. The first UARTs 615 and 715 and the first Manchester circuits 618 and 718 are connected to each other, and the second UARTs 616 and 716 and the second Manchester circuits 619 and 719 are also connected to each other. The main board communication LSI 610 and the sub board communication LSI 710 are configured by, for example, an ASIC.

専用コントローラ611,711は、送信及び受信に係る全般的な制御を行う。例えば、専用コントローラ611,711は、例えばハードウェアタイマとして機能し、送受信時にタイムアウト処理を行う。設定レジスタ612,712は、不揮発性メモリと同等の機能をもつ記憶回路である。設定レジスタ612,712には、後述のAES回路614,714で使用される暗号化キーや通信仕様に係る設定データ等が格納される。設定レジスタ612,712には、例えば基板実装時において1回に限り後述の第2SPIを通じてデータが書き込み可能である。キャッシュメモリ613,713は、主にバッファとして用いられる。例えば、キャッシュメモリ613,713には、送受信に係るデータが一時記憶される。クロック・リセット制御回路622,722は、発振器(OSC:Oscillator)や外部リセットによる入力信号に基づいてクロック信号やリセット信号を生成し、送受信のタイミングやリセット動作を制御する。   The dedicated controllers 611 and 711 perform general control regarding transmission and reception. For example, the dedicated controllers 611 and 711 function as, for example, hardware timers, and perform timeout processing at transmission and reception. The setting registers 612 and 712 are storage circuits having the same function as that of the non-volatile memory. The setting registers 612 and 712 store, for example, encryption keys used by the AES circuits 614 and 714 described later and setting data and the like related to communication specifications. Data can be written to the setting registers 612 and 712, for example, only once at the time of mounting on a substrate through a second SPI described later. The cache memories 613 and 713 are mainly used as buffers. For example, data relating to transmission and reception is temporarily stored in the cache memories 613 and 713. The clock / reset control circuits 622 and 722 generate a clock signal and a reset signal based on an input signal by an oscillator (OSC: Oscillator) or an external reset, and control transmission / reception timing and a reset operation.

AES回路614,714は、共通鍵ブロック暗号方式によりデータの暗号化及び復号化を行う。AES回路614,714は、AES暗号化アルゴリズムに基づく機能ブロックと、AES暗号化アルゴリズムの逆関数であるAES復号化アルゴリズムに基づく機能ブロックとをハードウェア構成として備えている。AES暗号化アルゴリズムは、共通鍵を使って平文データを暗号化し、AES復号化アルゴリズムは、同じ共通鍵を使って暗号化したデータを元の平文データに戻すようになっている。   The AES circuits 614 and 714 encrypt and decrypt data according to the common key block encryption system. The AES circuits 614 and 714 include a functional block based on the AES encryption algorithm and a functional block based on the AES decryption algorithm that is the inverse function of the AES encryption algorithm as a hardware configuration. The AES encryption algorithm encrypts plaintext data using a common key, and the AES decryption algorithm restores data encrypted using the same common key to the original plaintext data.

ここで、AES暗号化アルゴリズムは、共通鍵暗号方式の代表的な暗号化アルゴリズムであり、鍵長が128ビット、192ビット、256ビットから選択可能であって、ブロック長が例えば128ビットのSPN(Substitution Permutation Network Structure)構造のブロック暗号である。ほとんどのブロック暗号は、実装コストを効率化するため、同一のラウンド関数を繰り返す繰返し暗号になっており、SPN構造は、繰返し暗号の代表的な構成法である。また、ブロック暗号とは、共通鍵暗号の一種であり、固定長のデータを単位として処理する暗号の総称である。ちなみに、ビット単位やバイト単位で処理を行う暗号は、ストリーム暗号と称される。   Here, the AES encryption algorithm is a representative encryption algorithm of the common key encryption method, and the key length can be selected from 128 bits, 192 bits, and 256 bits, and the block length is, for example, an SPN of 128 bits. It is a block cipher of the Substitution Permutation Network Structure) structure. Most block ciphers are repetition ciphers that repeat the same round function in order to make the implementation cost efficient, and the SPN structure is a typical configuration method of repetition ciphers. Also, block encryption is a kind of common key encryption, and is a generic term for encryption that processes data of fixed length as a unit. Incidentally, a cipher that performs processing in units of bits or bytes is called stream cipher.

図7は、AES回路614,714の構成を示す模式図である。同図に示すように、AES回路614,714は、所定ラウンド数の行列演算操作をステップ単位に繰り返し実行する機能ブロックにより構成される。AES回路614,714により繰り返し実行されるステップとしては、バイトサブステップ614A,714A、行シフトステップ614B,714B、列混合ステップ614C,714C、及び最終ステップとしてラウンド鍵追加ステップ614D,714Dがある。これらのステップが繰り返し実行される回数(ラウンド数)は、鍵長によって異なり、鍵長が128ビットでラウンド数11、鍵長が192ビットでラウンド数13、鍵長が256ビットでラウンド数15となっている。ただし、いずれにおいても最終ラウンドにおいては、列混合ステップ614C,714Cは実行されない。   FIG. 7 is a schematic view showing the configuration of the AES circuits 614 and 714. As shown in FIG. As shown in the figure, the AES circuits 614 and 714 are configured by functional blocks that repeatedly execute a matrix operation of a predetermined number of rounds in steps. The steps repeatedly executed by the AES circuits 614 and 714 include byte substeps 614A and 714A, row shift steps 614B and 714B, column mixing steps 614C and 714C, and round key addition steps 614D and 714D as final steps. The number of times these steps are repeatedly executed (the number of rounds) depends on the key length, and the key length is 128 bits, the number of rounds is 11, the key length is 192 bits, the number of rounds is 13, and the key length is 256 bits and the number of rounds is 15, It has become. However, the column mixing steps 614C and 714C are not performed in the final round in any case.

バイトサブステップ614A,714Aでは、最初に、固定長の入力データが例えば4行4列からなる16個のバイトに区分され、各バイトがSボックスによって置換される。Sボックスは、共通鍵ブロック暗号方式の基本的な関数をハードウェアにより実現したものであり、平文と暗号文の相関性(線形性)を壊すための仕組みを提供している。Sボックスは、差分暗号解読に対する耐性に優れており、また、線形暗号解読による近似を防止することにおいても優れている。   In byte sub-steps 614A and 714A, first, fixed-length input data is divided into, for example, 16 bytes of 4 rows and 4 columns, and each byte is replaced by an S box. The S-box is a hardware implementation of the basic functions of the common key block encryption system, and provides a mechanism for breaking the correlation (linearity) between plaintext and ciphertext. The S-box is excellent in resistance to differential cryptanalysis and also in preventing approximation by linear cryptanalysis.

次に、行シフトステップ614B,714Bでは、行及び列からなるバイトのうちの各行が所定のアルゴリズムに基づいて行方向にシフトされる。このような行シフトステップ614B,714Bは、各行の異なるバイトがその他の行において対応するバイトと相互作用しないようにする仕組みを提供している。   Next, in row shift steps 614B and 714B, each row of the row and column bytes is shifted in the row direction based on a predetermined algorithm. Such row shifting steps 614B, 714B provide a mechanism to prevent different bytes of each row from interacting with corresponding bytes in other rows.

次に、列混合ステップ614C,714Cでは、行シフトステップ614B,714Bを経た各列のバイトがガロア体演算に基づく行列により乗算される。このような列混合ステップ614C,714Cは、各列における各バイトが他のバイトに影響を与えるようにする仕組みを提供している。   Next, in column mixing steps 614C and 714C, the bytes of each column that have undergone row shifting steps 614B and 714B are multiplied by a matrix based on Galois Field operations. Such column mixing steps 614C, 714C provide a mechanism for causing each byte in each column to affect the other byte.

次に、ラウンド鍵追加ステップ614D,714Dでは、設定レジスタ612,712に格納された暗号化キー(公開鍵)を所定のアルゴリズムに基づいて変換し、変換したデータがラウンド鍵として次のラウンドに渡される。そして、ラウンド鍵追加ステップ614D,714Dでは、ラウンドごとに異なるラウンド鍵と列混合ステップ614C,714Cあるいは行シフトステップ614B,714Bを経た各バイトとの排他的論理和がとられる。なお、ラウンド鍵に対してオリジナル鍵となる暗号化キー(公開鍵)やAES回路614,714に関する設定データ等は、例えば基板実装時において1回に限り、後述の第2SPIを通じて設定レジスタ612,712に書き込まれる。   Next, in the round key addition steps 614D and 714D, the encryption key (public key) stored in the setting registers 612 and 712 is converted based on a predetermined algorithm, and the converted data is passed to the next round as a round key. Be Then, in the round key addition steps 614D and 714D, an exclusive OR operation is performed on the round keys, which are different for each round, and the respective bytes subjected to the column mixing steps 614C and 714C or the row shift steps 614B and 714B. The encryption key (public key) serving as the original key for the round key and the setting data and the like related to the AES circuits 614 and 714 are set, for example, only once at the time of board mounting, through setting registers 612 and 712 through the second SPI described later. Is written to

このようなAES回路614,714によれば、上述したバイトサブステップ614A,714A、行シフトステップ614B,714B、列混合ステップ614C,714C、ラウンド鍵追加ステップ614D,714Dが所定ラウンド数繰り返し実行されることにより、暗号化されたデータが出力される。暗号化されたデータは、AES回路614,714によるAES暗号化アルゴリズムとは逆のAES復号化アルゴリズムにより元の平文データに変換される。これにより、主基板通信LSI610から副基板通信LSI710へと送信されるデータは、AES暗号化されたデータとなって解読されにくい。すなわち、主基板通信LSI610と副基板通信LSI710との間の通信区間においては、AES暗号化により通信ゴトを十分に防止することができる。   According to such AES circuits 614 and 714, the above-described byte sub-steps 614A and 714A, row shift steps 614B and 714B, column mixing steps 614C and 714C, and round key addition steps 614D and 714D are repeatedly performed for a predetermined number of rounds. As a result, encrypted data is output. The encrypted data is converted into the original plaintext data by the AES decryption algorithm reverse to the AES encryption algorithm by the AES circuits 614 and 714. As a result, the data transmitted from the main substrate communication LSI 610 to the sub substrate communication LSI 710 is hardly decrypted as AES encrypted data. That is, in the communication section between the main board communication LSI 610 and the sub board communication LSI 710, communication encryption can be sufficiently prevented by AES encryption.

第1UART615,715は、調歩同期方式によるシリアル信号をパラレル信号に変換したり、その逆方向の変換を行う回路である。第1UART615,715では、送受信のタイミングを計るための同期クロック信号線が不要とされる。第1UART615,715は、送受信時のエラー(物理層エラー)を検出する機能を有する。第1UART615,715は、専用コントローラ611,711にエラーが発生したことを伝える。   The first UARTs 615 and 715 are circuits that convert a serial signal in the asynchronous mode to a parallel signal or convert in the reverse direction. The first UARTs 615 and 715 do not require a synchronous clock signal line for timing transmission and reception. The first UARTs 615 and 715 have a function of detecting an error (physical layer error) during transmission and reception. The first UARTs 615 and 715 notify the dedicated controllers 611 and 711 that an error has occurred.

図51に示すように、エラーの種類には、パリティエラー、オーバーランエラー、フレーミングエラー等がある。パリティエラーは、受信したデータのパリティビットに誤りがあるときに発生する。オーバーランエラーは、受信データバッファ(キャッシュメモリ613,713)に格納されたデータを専用コントローラ611,711が取り出さないうちに、次のデータを受信してしまったときに発生する。フレーミングエラーは、ストップビットを受信すべきタイミングで、ストップビットの論理値ではなかったときに発生する。   As shown in FIG. 51, types of errors include parity errors, overrun errors, framing errors, and the like. A parity error occurs when there is an error in the parity bit of the received data. An overrun error occurs when the next data is received while the dedicated controllers 611 and 711 do not fetch the data stored in the reception data buffer (cache memories 613 and 713). A framing error occurs when the stop bit should not be received and it is not the stop bit logic value.

なお、第2UART616,716は、第1UART615,715と同様の機能を有するものであり、共通する機能についての説明は省略する。メインCPU601及びサブCPU701のそれぞれに内蔵された第1UART601A及びUART701A(図6参照)も、第1UART615,715と同様の機能を有するものであり、共通する機能についての説明は省略する。   The second UARTs 616 and 716 have the same functions as the first UARTs 615 and 715, and the description of the common functions will be omitted. The first UART 601A and the UART 701A (see FIG. 6) built in each of the main CPU 601 and the sub CPU 701 also have the same functions as the first UARTs 615 and 715, and the description of the common functions is omitted.

第1SPI617,717は、同期方式によるシリアル通信用のインターフェース回路である。第1SPI617,717は、非同期方式のシリアル通信に比べて高速にデータを送受信し得る。第1SPI617,717には、複数のデバイスが接続可能である。本実施形態において、第1SPI617,717は、主基板通信LSI610及び副基板通信LSI710の拡張機能として予備的に設けられている。なお、図示しない第2SPIは、第1SPI617,717と同様の機能を有するものであり、共通する機能についての説明は省略する。本実施形態の第2SPIには、設定レジスタ612,712に対して暗号化キーや設定データ等を書き込む際に用いる専用端子が設けられている。すなわち、第2SPIは、暗号化キーや設定データ等の書き込みデバイス専用の接続回路として使用される。   The first SPIs 617 and 717 are interface circuits for serial communication in a synchronous mode. The first SPIs 617 and 717 can transmit and receive data at high speed as compared with asynchronous serial communication. A plurality of devices can be connected to the first SPIs 617 and 717. In the present embodiment, the first SPIs 617 and 717 are preliminarily provided as extended functions of the main substrate communication LSI 610 and the sub substrate communication LSI 710. The second SPI (not shown) has the same function as the first SPI 617 and 717, and the description of the common function is omitted. The second SPI of this embodiment is provided with a dedicated terminal used when writing an encryption key, setting data, and the like to the setting registers 612 and 712. That is, the second SPI is used as a connection circuit dedicated to a writing device such as an encryption key and setting data.

第1マンチェスター回路618,718は、二相位相偏移変調(BPSK:Binary Phase−Shift Keying)方式によりデジタル形式のシリアルデータの変調(符号化)及び復調(復号化)を行う回路である。第1マンチェスター回路618,718は、連続する「0」又は「1」からなる比較的長いストリングが含まれない任意のビット列からなるシリアルデータを変調し、また、変調されたシリアルデータから元のビット列からなるデジタルデータを復調する。第1マンチェスター回路618,718は、変調の際に用いるクロックレートをシリアルデータ内に埋め込むことができる。基本的にマンチェスター変調方式では、デジタル入力値の「1」及び「0」からなるバイナリ状態を遷移として定義付け、シリアルデータとして入力される信号の立上りエッジと立下りエッジに対し、デジタル出力値としてロジックレベルの「0」と「1」、あるいはその逆のロジックレベルを割り当てることにより、変調されたシリアルデータを生成する。復調の際には、変調とは逆の手順で復調を行い、デジタル入力値としてロジックレベルの「0」と「1」に対して、出力すべき信号に立上りエッジと立下りエッジ、あるいはその逆の信号波形を形成することにより、復調されたシリアルデータを生成する。   The first Manchester circuits 618 and 718 are circuits that perform modulation (encoding) and demodulation (decoding) of serial data in digital form according to Binary Phase-Shift Keying (BPSK). The first Manchester circuit 618, 718 modulates serial data consisting of any bit string not including a relatively long string of consecutive "0" s or "1" s, and also modulates from the modulated serial data Demodulate digital data consisting of The first Manchester circuit 618, 718 can embed the clock rate used for modulation in the serial data. Basically, in Manchester modulation, a binary state consisting of digital input values "1" and "0" is defined as a transition, and digital output values for the rising edge and falling edge of a signal input as serial data Modulated serial data is generated by assigning logic levels "0" and "1" or vice versa. At the time of demodulation, demodulation is performed in the reverse procedure of modulation, and rising edges and falling edges or the reverse of the signals to be output for the logic level "0" and "1" as digital input values Demodulated serial data is generated by forming a signal waveform of

なお、本実施形態においては、図5及び図6に具体的に示すように、第1マンチェスター回路618,718は、第1UART615,715と対をなし、この第1UART615,715を通じてデータを送受信し得るように構成されている。第2マンチェスター回路619,719、第3マンチェスター回路620,720、及び第4マンチェスター回路621,721は、第1マンチェスター回路618,718と同様の機能を有するものであり、共通する機能についての説明は省略する。また、本実施形態では、有線の光通信システム(主基板通信LSI610及び副基板通信LSI710)に第1マンチェスター回路618,718を設けているが、マンチェスター回路は、一般的に無線伝送に適しているので、マンチェスター回路を含む無線通信システムを構築するようにしてもよい。   In the present embodiment, as specifically shown in FIGS. 5 and 6, the first Manchester circuits 618 and 718 can be paired with the first UARTs 615 and 715, and can transmit and receive data through the first UARTs 615 and 715. Is configured as. The second Manchester circuits 619 and 719, the third Manchester circuits 620 and 720, and the fourth Manchester circuits 621 and 721 have the same functions as the first Manchester circuits 618 and 718. I omit it. Further, in the present embodiment, the first Manchester circuits 618 and 718 are provided in the wired optical communication system (the main substrate communication LSI 610 and the sub substrate communication LSI 710), but the Manchester circuits are generally suitable for wireless transmission. Therefore, a wireless communication system including a Manchester circuit may be constructed.

第2マンチェスター回路619,719は、第2UART616,716と対をなし、この第2UART616,716を通じてデータを送受信するように構成されている。第3マンチェスター回路620,720は、第1SPI617,717を介する送受信用として設けられ、この第1SPI617,717を通じてデータを送受信するように構成されている。第4マンチェスター回路621,721は、その他の回路と組み合わされずに独立したものとして設けられ、第4マンチェスター回路621,721単独でデータを送受信し得るように構成されている。   The second Manchester circuits 619, 719 are configured to pair with the second UARTs 616, 716 and to transmit and receive data through the second UARTs 616, 716. The third Manchester circuits 620 and 720 are provided for transmission and reception via the first SPIs 617 and 717, and are configured to transmit and receive data through the first SPIs 617 and 717. The fourth Manchester circuits 621 and 721 are provided as independent units without being combined with other circuits, and are configured such that the fourth Manchester circuits 621 and 721 can transmit and receive data alone.

本実施形態においては、図8に具体的に示すように、主基板通信LSI610の第2マンチェスター回路619は、主にマンチェスター変調回路として機能する一方、副基板通信LSI710の第2マンチェスター回路719は、主にマンチェスター復調回路として機能する。変調回路としての第2マンチェスター回路619は、同期用のクロック信号800cと入力されるシリアルデータ800dとの排他的論理和をとり、その結果、変調されたシリアルデータ800d’を生成・出力する。復調回路としての第2マンチェスター回路719は、同期用のクロック信号800cと変調されたシリアルデータ800d’とを入力としてこれらの排他的論理和をとり、その結果、復調された元のシリアルデータ800dを生成・出力する。このような第2マンチェスター回路619,719は、デジタルデータを比較的安価に送受信することができる。   In the present embodiment, as specifically shown in FIG. 8, the second Manchester circuit 619 of the main substrate communication LSI 610 mainly functions as a Manchester modulation circuit, while the second Manchester circuit 719 of the sub substrate communication LSI 710 It mainly functions as a Manchester demodulation circuit. The second Manchester circuit 619 as a modulation circuit takes exclusive OR of the clock signal 800c for synchronization and the input serial data 800d, and as a result, generates and outputs modulated serial data 800d '. The second Manchester circuit 719 as a demodulation circuit receives the clock signal 800c for synchronization and the modulated serial data 800d 'as an input to take their exclusive OR, and as a result, demodulates the original serial data 800d. Generate and output. Such second Manchester circuits 619 and 719 can transmit and receive digital data relatively inexpensively.

図6に模式的に示すように、本実施形態の主基板6Aにおいては、メインCPU601からのコマンドを含むデータ(パケットデータ)が、第1UART601Aから第1UART615に供給され、この第1UART615で後述する物理層エラーの検出等が行われた後、AES回路614で暗号化され、さらに第2UART616を通じて第2マンチェスター回路619に供給され、この第2マンチェスター回路619で変調されるように構成されている。このようにして変調されたデータは、コマンドを含むシリアルデータとされ、光ファイバーケーブル100の発光側接続端に配置された光通信デバイスの発光素子630により光信号として出力されることにより、光ファイバーケーブル100を通じて副基板7Aへと送信される。   As schematically shown in FIG. 6, in the main substrate 6A of this embodiment, data (packet data) including a command from the main CPU 601 is supplied from the first UART 601A to the first UART 615, and the physicals described later by the first UART 615 After layer error detection and the like are performed, they are encrypted by the AES circuit 614 and are further supplied to the second Manchester circuit 619 through the second UART 616, and are modulated by the second Manchester circuit 619. The data modulated in this manner is converted into serial data including a command, and is output as an optical signal by the light emitting element 630 of the optical communication device disposed at the light emitting side connection end of the optical fiber cable 100. Through the sub-substrate 7A.

副基板7Aにおいては、主基板6Aから送信されたコマンドを含むシリアルデータが、光ファイバーケーブル100の発光側接続端から受光側接続端へとドア中継基板53を経由しつつ光信号として伝送され、光ファイバーケーブル100の受光側接続端に配置された光通信デバイスの受光素子730に受信されることで第2マンチェスター回路719に供給され、この第2マンチェスター回路719で復調された後、第2UART716を通じてAES回路714に供給され、さらにAES回路714において復号化された後、第1UART715を通じてUART701Aに供給されることにより、サブCPU701がメインCPU601からのコマンドを受信し得るようになっている。   In the sub board 7A, serial data including a command transmitted from the main board 6A is transmitted as an optical signal while passing through the door relay board 53 from the light emitting side connection end of the optical fiber cable 100 to the light receiving side connection end. The light receiving element 730 of the optical communication device disposed at the light receiving side connection end of the cable 100 receives the light receiving element 730 and is supplied to the second Manchester circuit 719, and after being demodulated by the second Manchester circuit 719, the AES circuit through the second UART 716 The sub CPU 701 can receive a command from the main CPU 601 by being supplied to the 714 and being decoded by the AES circuit 714 and then being supplied to the UART 701A through the first UART 715.

また、図9に示すように、メインCPU601から主基板通信LSI610へと送信されるデータは、8Byteの平文からなるパケットデータであり、その際の通信速度(ボーレート)は、19200bpsとされる。これは、メインCPU601及び主基板通信LSI610間の通信仕様、具体的には、メインCPU601の処理スペックに応じて設計された通信仕様に準拠するものである。主基板通信LSI610から副基板通信LSI710へと送信されるデータは、マンチェスター変調及び暗号化された16Byteのデータであり、その際の通信速度は、115200bpsとされる。これは、主基板通信LSI610及び副基板通信LSI710間の通信仕様、具体的には、主基板通信LSI610及び副基板通信LSI710、並びにサブCPU701の処理スペックに応じて設計された通信仕様に準拠するものである。副基板通信LSI710からサブCPU701へと送信されるデータは、マンチェスター復調及びAES復号化された16Byteの平文データであり、その際の通信速度は、115200bpsとされる。これは、副基板通信LSI710及びサブCPU701間の通信仕様、具体的には、サブCPU701のスペックに応じて設計された通信仕様に準拠するものである。   Further, as shown in FIG. 9, the data transmitted from the main CPU 601 to the main substrate communication LSI 610 is packet data consisting of plaintext of 8 bytes, and the communication speed (baud rate) at that time is 19200 bps. This conforms to the communication specification between the main CPU 601 and the main board communication LSI 610, specifically, the communication specification designed according to the processing specification of the main CPU 601. The data transmitted from the main substrate communication LSI 610 to the sub substrate communication LSI 710 is Manchester modulated and encrypted 16 bytes of data, and the communication speed at that time is 115,200 bps. This conforms to the communication specification between the main substrate communication LSI 610 and the sub substrate communication LSI 710, specifically, the communication specification designed according to the processing specifications of the main substrate communication LSI 610 and the sub substrate communication LSI 710, and the sub CPU 701. It is. The data transmitted from the sub substrate communication LSI 710 to the sub CPU 701 is 16 bytes of plaintext data that has been Manchester-demodulated and AES-decoded, and the communication speed at that time is set to 115,200 bps. This conforms to the communication specification between the sub substrate communication LSI 710 and the sub CPU 701, specifically, the communication specification designed according to the specifications of the sub CPU 701.

[通信データの内容]
図49〜53は、送受信に係る通信データの内容を示す説明図である。以下、図49〜53を参照して通信データについて説明する。
[Contents of communication data]
49 to 53 are explanatory diagrams showing the contents of communication data related to transmission and reception. Hereinafter, communication data will be described with reference to FIGS.

図49に示すように、主基板通信LSI610から副基板通信LSI710へと送信される外部通信データは、D0〜D15のバイト単位の番号(バイトナンバー)で区分けされた16Byte固定長のデータフレームからなる。   As shown in FIG. 49, the external communication data transmitted from the main substrate communication LSI 610 to the sub substrate communication LSI 710 consists of data frames of 16 Byte fixed length divided by the byte unit number (byte number) of D0 to D15. .

外部通信データのバイトナンバーD0,D1には、パケット受信番号が割り当てられる。パケット受信番号は、0〜65535の値が割り当て可能であり、1パケット受信あるいは受信中タイムアウトにより加算(インクリメント)される。1パケット受信とは、メインCPU601から例えば1Byteのパケット単位(伝送単位)で送信されるデータを受信したことを意味する。受信中タイムアウトとは、パケット単位の1個分のデータが例えば1Byteである場合、1Byte未満のデータしか受信していない状況でタイムアウトが発生したことを意味する。   Packet reception numbers are assigned to the byte numbers D0 and D1 of the external communication data. The packet reception number can be assigned a value of 0 to 65535, and is incremented (incremented) by one packet reception or timeout during reception. The reception of one packet means that data transmitted from the main CPU 601 in a packet unit (transmission unit) of 1 byte, for example, is received. The timeout during reception means that when one packet of data is, for example, 1 byte, a timeout occurs in a situation where data less than 1 byte is received.

外部通信データのバイトナンバーD2〜D9には、メインCPU601から送信されたパケットデータが割り当てられる。パケットデータは、メインCPU601からサブCPU701へと送信されるコマンドに相当する。パケットデータは、通信仕様に基づいて8Byte固定長と定められている。   The packet data transmitted from the main CPU 601 is assigned to the byte numbers D2 to D9 of the external communication data. The packet data corresponds to a command transmitted from the main CPU 601 to the sub CPU 701. Packet data is determined to have a fixed length of 8 bytes based on communication specifications.

外部通信データのバイトナンバーD10,D11には、主基板通信LSI610に関連する通信情報が割り当てられる。具体的にいうと、バイトナンバーD10には、主基板通信LSI610から送信されるパケットデータのデータサイズが割り当てられる。バイトナンバーD11には、主基板通信LSI物理層エラー等が受信ステータス(図51参照)として割り当てられる。主基板通信LSI物理層エラーとは、メインCPU601から供給されたデータを主基板通信LSI610が受信する際に第1UART615により検出され得るハードウェア上の通信エラーであり、例えば図51に示すオーバーランエラー、フレーミングエラー、パリティエラー等である。なお、パケットデータのデータサイズは、通信仕様に基づいて8Byte固定長であるので、バイトナンバーD10には、常に8Byteを示す固定値が割り当てられる。   Communication information related to the main board communication LSI 610 is assigned to the byte numbers D10 and D11 of the external communication data. Specifically, the data size of packet data transmitted from the main board communication LSI 610 is assigned to the byte number D10. A main board communication LSI physical layer error or the like is assigned to the byte number D11 as a reception status (see FIG. 51). The main board communication LSI physical layer error is a communication error on hardware that can be detected by the first UART 615 when the main board communication LSI 610 receives data supplied from the main CPU 601, for example, an overrun error shown in FIG. , Framing error, parity error, etc. Since the data size of packet data is a fixed length of 8 bytes based on the communication specification, a fixed value indicating 8 bytes is always assigned to the byte number D10.

外部通信データのバイトナンバーD12,D13には、副基板通信LSI710に関連する通信情報が割り当てられる。なお、バイトナンバーD12,D13には、後述するように副基板通信LSI710のデータ受信時に発生する受信ステータス等が割り当てられる。そのため、外部通信データにおけるバイトナンバーD12,D13は、単に予約領域として確保されており、例えばダミーデータとして固定値‘0000H’が割り当てられる。   Communication information related to the sub board communication LSI 710 is assigned to the byte numbers D12 and D13 of the external communication data. The byte numbers D12 and D13 are assigned a reception status or the like generated when data is received by the sub board communication LSI 710 as described later. Therefore, the byte numbers D12 and D13 in the external communication data are simply reserved as reserved areas, and a fixed value '0000H' is assigned as dummy data, for example.

外部通信データのバイトナンバーD14,D15には、巡回冗長検査(Cyclic Redundancy Check)によるCRCデータが割り当てられる。巡回冗長検査は、バイトナンバーD0〜D13を対象として行われる。   CRC data by cyclic redundancy check is assigned to the byte numbers D14 and D15 of the external communication data. The cyclic redundancy check is performed on byte numbers D0 to D13.

図50に示すように、副基板通信LSI710からサブCPU701へと送信される内部通信データは、基本的に図49に示す通信データと同一構造のフレームからなる。   As shown in FIG. 50, the internal communication data transmitted from the sub substrate communication LSI 710 to the sub CPU 701 basically includes a frame having the same structure as the communication data shown in FIG.

内部通信データのバイトナンバーD0〜D11には、先述した外部通信データのバイトナンバーD0〜D11の内容がそのまま複写されて割り当てられる。   The contents of the above-described external communication data byte numbers D0 to D11 are copied and assigned to the byte numbers D0 to D11 of the internal communication data as they are.

内部通信データのバイトナンバーD12,D13には、副基板通信LSI710に関連する通信情報が割り当てられる。具体的にいうと、バイトナンバーD12には、副基板通信LSI物理層エラー等が受信ステータスとして割り当てられる。副基板通信LSI物理層エラーとは、主基板通信LSI610から供給されたデータを副基板通信LSI710が受信する際に第2UART716により検出され得るハードウェア上の通信エラーであり、例えば図51に示すオーバーランエラー、フレーミングエラー、パリティエラー等である。バイトナンバーD13には、副基板通信LSI710が主基板通信LSI610から供給されたデータを受信する際に検出され得る後述の論理エラーがパケット種別として割り当てられる。   Communication information related to the sub board communication LSI 710 is assigned to the byte numbers D12 and D13 of the internal communication data. Specifically, a sub board communication LSI physical layer error or the like is assigned to the byte number D12 as a reception status. The secondary substrate communication LSI physical layer error is a communication error on hardware that can be detected by the second UART 716 when the secondary substrate communication LSI 710 receives data supplied from the main substrate communication LSI 610, for example, as shown in FIG. There are run errors, framing errors, parity errors, etc. A logical error, which will be detected when the sub board communication LSI 710 receives data supplied from the main board communication LSI 610, is assigned to the byte number D13 as a packet type.

内部通信データのバイトナンバーD14,D15には、外部通信データと同様に巡回冗長検査によるCRCデータが割り当てられる。巡回冗長検査は、バイトナンバーD0〜D13を対象として行われる。   Similar to the external communication data, CRC data by cyclic redundancy check is assigned to the byte numbers D14 and D15 of the internal communication data. The cyclic redundancy check is performed on byte numbers D0 to D13.

図51に示すように、受信ステータスは、B0〜B7のビット単位の番号(ビットナンバー)で区分けされたフォーマットからなる。   As shown in FIG. 51, the reception status has a format divided by bit numbers B0 to B7 (bit numbers).

受信ステータスのビットナンバーB0〜B3には、エラーカウントが割り当てられる。エラーカウントは、受信エラー発生総数となる、パリティ、フレーミング、及びオーバーランに係るエラー発生総数を示し、0〜15の値が割り当て可能とされる。   An error count is assigned to bit numbers B0 to B3 of the reception status. The error count indicates the total number of errors related to parity, framing, and overrun, which is the total number of reception errors, and values of 0 to 15 can be assigned.

受信ステータスのビットナンバーB4には、物理層エラーとしてオーバーランエラーの有無が割り当てられる。例えば、オーバーランエラーが有る場合、ビットナンバーB4には「1」が割り当てられ、オーバーランエラーが無い場合、ビットナンバーB4には「0」が割り当てられる。   The presence or absence of an overrun error is assigned to the bit number B4 of the reception status as a physical layer error. For example, if there is an overrun error, "1" is assigned to the bit number B4, and if there is no overrun error, "0" is assigned to the bit number B4.

受信ステータスのビットナンバーB5には、物理層エラーとしてフレーミングエラーの有無が割り当てられる。例えば、フレーミングエラーが有る場合、ビットナンバーB5には「1」が割り当てられ、フレーミングエラーが無い場合、ビットナンバーB5には「0」が割り当てられる。   The presence or absence of a framing error is assigned to the bit number B5 of the reception status as a physical layer error. For example, if there is a framing error, "1" is assigned to the bit number B5, and if there is no framing error, "0" is assigned to the bit number B5.

受信ステータスのビットナンバーB6には、物理層エラーとしてパリティエラーの有無が割り当てられる。例えば、パリティエラーが有る場合、ビットナンバーB6には「1」が割り当てられ、パリティエラーが無い場合、ビットナンバーB6には「0」が割り当てられる。   The presence or absence of a parity error is assigned to the bit number B6 of the reception status as a physical layer error. For example, when there is a parity error, "1" is assigned to the bit number B6, and when there is no parity error, "0" is assigned to the bit number B6.

受信ステータスのビットナンバーB7には、タイムアウトの有無が割り当てられる。例えば、タイムアウトが発生した場合、ビットナンバーB7には「1」が割り当てられ、タイムアウトが発生し無かった場合、ビットナンバーB7には「0」が割り当てられる。   Time-out is assigned to the bit number B7 of the reception status. For example, when a timeout occurs, "1" is assigned to the bit number B7, and when no timeout occurs, "0" is assigned to the bit number B7.

図52に示すように、パケット種別は、B0〜B7のビット単位の番号(ビットナンバー)で区分けされたフォーマットからなる。   As shown in FIG. 52, the packet type has a format divided into bit unit numbers (bit numbers) of B0 to B7.

パケット種別のビットナンバーB0〜B4には、論理エラーの種類が割り当てられる。例えば、ビットナンバーB0〜B4には、論理エラーが無い場合、「00000」のビット列が割り当てられ、CRCエラーが有る場合、「00001」のビット列が割り当てられ、主基板通信LSI610がメインCPU601から受信したデータにサイズ不足が有る場合、「00010」のビット列が割り当てられ、副基板通信LSI710が主基板通信LSI610から受信したデータにサイズ不足が有る場合、「00100」のビット列が割り当てられ、その他の論理エラーが有る場合、その論理エラーに対応付けられたビット列が割り当てられる。なお、パケット種別のビットナンバーB0〜B4に割り当てられるCRCエラーは、副基板通信LSI710が主基板通信LSI610からデータを受信する際に発生し得るものである。主基板通信LSI610がメインCPU601からデータを受信する際のサイズ不足は、主基板通信LSI610の受信ステータスとしてタイムアウトが発生した場合に生じるものである。副基板通信LSI710が主基板通信LSI610からデータを受信する際のサイズ不足は、副基板通信LSI710の受信ステータスとしてタイムアウトが発生した場合に生じるものである。   The type of logic error is assigned to the packet type bit numbers B0 to B4. For example, if there is no logic error, a bit string of "00000" is assigned to bit numbers B0 to B4, and if there is a CRC error, a bit string of "00001" is assigned, the main board communication LSI 610 received from the main CPU 601 If the data size is insufficient, a bit string of "00010" is assigned, and if the secondary board communication LSI 710 receives data from the main board communication LSI 610, the bit size of "00100" is assigned, and other logic errors There is a bit string associated with that logic error. The CRC error assigned to the packet type bit numbers B0 to B4 may occur when the sub board communication LSI 710 receives data from the main board communication LSI 610. The size shortage at the time when the main board communication LSI 610 receives data from the main CPU 601 occurs when a timeout occurs as a reception status of the main board communication LSI 610. The shortage of size when the sub board communication LSI 710 receives data from the main board communication LSI 610 occurs when a timeout occurs as a reception status of the sub board communication LSI 710.

パケット種別のビットナンバーB5〜B7には、通信分類が割り当てられる。例えば、ビットナンバーB5〜B7には、主制御回路60との通信(主制御通信)に該当する場合、「000」のビット列が割り当てられ、その他の通信に該当する場合、その通信に対応付けられたビット列が割り当てられる。   A communication classification is assigned to the packet type bit numbers B5 to B7. For example, if the bit numbers B5 to B7 correspond to communication (main control communication) with the main control circuit 60, a bit string of "000" is assigned, and if they correspond to other communication, they are associated with the communication. Assigned bit string.

図53(a)に示すように、メインCPU601は、コマンドを含む8Byte固定長のパケットデータP0〜P7をシリアルデータとして主基板通信LSI610に送信する。例えば、パケットデータP0は、コマンドに係るデータを示し、パケットデータP1〜P6は、コマンドに対応するパラメータデータを示し、パケットデータP7は、パケットデータP0〜P6のチェックサムとして例えばBCC(Block Check Character)を示す。主基板通信LSI610では、受信したパケットデータP0〜P7に対して物理層エラー等のチェックを行い、さらに受信結果等を付加したデータに対してAES暗号化が行われる。   As shown in FIG. 53 (a), the main CPU 601 transmits packet data P0 to P7 having a fixed length of 8 bytes including a command as serial data to the main board communication LSI 610. For example, packet data P0 indicates data related to a command, packet data P1 to P6 indicate parameter data corresponding to the command, and packet data P7 indicates, for example, BCC (Block Check Character) as a checksum of packet data P0 to P6. ). The main board communication LSI 610 checks the physical layer error and the like for the received packet data P0 to P7, and performs AES encryption on the data to which the reception result and the like are added.

図53(b)に示すように、主基板通信LSI610は、メインCPU601からパケットデータP0〜P7を受信すると、当該パケットデータP0〜P7を含む16Byte固定長の外部通信データD0〜D15をシリアルデータとして副基板通信LSI710に送信する。このとき、主基板通信LSI610から送信されるシリアルデータには、AES回路614により暗号化され、かつ、変調回路としての第2マンチェスター回路619により変調された外部通信データD0〜D15が載せられる。パケットデータP0〜P7は、外部通信データD0〜D15のうちの例えばD2〜D9に配置される(図49参照)。   As shown in FIG. 53 (b), when the main board communication LSI 610 receives packet data P0 to P7 from the main CPU 601, it sets external communication data D0 to D15 having a fixed length of 16 bytes including the packet data P0 to P7 as serial data. Transmit to the sub substrate communication LSI 710. At this time, external communication data D0 to D15 encrypted by the AES circuit 614 and modulated by the second Manchester circuit 619 as a modulation circuit are carried on the serial data transmitted from the main substrate communication LSI 610. The packet data P0 to P7 are allocated to, for example, D2 to D9 among the external communication data D0 to D15 (see FIG. 49).

図53(c)に示すように、副基板通信LSI710は、主副基板通信LSI610からシリアルデータとして外部通信データD0〜D15を受信すると、当該外部通信データD0〜D15に応じた可変長の内部通信データSTX(Start of TeXt),DLE(Data Link Escape),D0〜D15をシリアルデータとしてサブCPU701に送信する。このとき、副基板通信LSI710から送信されるシリアルデータには、AES回路714により復号化され、かつ、復調回路としての第2マンチェスター回路719により復調された内部通信データD0〜D15が載せられる。メインCPU601からのパケットデータP0〜P7は、内部通信データD0〜D15のうちの例えばD2〜D9に配置される(図50参照)。D0〜D15は、シリアル形式のバイナリデータとして送信される一方、STXやDLEは、後述するように制御キャラクタとして送信される。   As shown in FIG. 53 (c), when the sub substrate communication LSI 710 receives the external communication data D0 to D15 as serial data from the main sub substrate communication LSI 610, the variable length internal communication according to the external communication data D0 to D15 Data STX (Start of TeXt), DLE (Data Link Escape), and D0 to D15 are transmitted to the sub CPU 701 as serial data. At this time, the serial data transmitted from the sub substrate communication LSI 710 is loaded with internal communication data D0 to D15 decoded by the AES circuit 714 and demodulated by the second Manchester circuit 719 as a demodulation circuit. The packet data P0 to P7 from the main CPU 601 are arranged in, for example, D2 to D9 among the internal communication data D0 to D15 (see FIG. 50). D0 to D15 are transmitted as serial format binary data, while STX and DLE are transmitted as control characters as described later.

例えば、副基板通信LSI710から送信されるデータに後述の制御データ(受信コマンドに該当するデータ、図46参照)に該当するものが無い場合、通信伝文の開始を示す制御キャラクタの「STX」のみを先頭に付加した内部通信データSTX,D0〜D15が送信される。このとき、データ送信サイズとして最小送信バイト数は、D0〜D15の16ByteにSTXの1Byte分を加えた17Byteとなる。一方、副基板通信LSI710から送信されるデータに制御データに該当するものが有る場合、「STX」を先頭に付加すると共に、制御データを含むブロック(図53(c)では一例としてバイトナンバーD12)の前にその旨を示す制御キャラクタの「DLE」を付加した内部通信データSTX,DLE,D0〜D15が送信される。これにより、データ送信サイズとして最大送信バイト数は、全てのブロックD0〜D15に制御データが含まれている場合を仮定すると、理論的にはD0〜D15の16Byteとこれらに対応するDLEの最大16ByteとSTXの1Byteとを合計した33Byteとなる。副基板通信LSI710は、送信すべきデータ中に制御データを検出すると、該当するバイトナンバーのブロックをエスケープ処理し、当該ブロックの前にDLEを付加する。エスケープ処理は、該当するブロック(バイトナンバー)のデータと所定値との排他的論理和を算出することにより実行される。   For example, when there is nothing corresponding to control data (data corresponding to a received command, see FIG. 46) to be transmitted from the sub board communication LSI 710, only “STX” of the control character indicating the start of communication message The internal communication data STX, D0 to D15 with the prefix at the beginning are transmitted. At this time, as the data transmission size, the minimum number of transmission bytes is 17 bytes obtained by adding 1 byte of STX to 16 bytes of D0 to D15. On the other hand, when data transmitted from the sub substrate communication LSI 710 includes control data, “STX” is added to the head and a block including control data (byte number D12 as an example in FIG. 53 (c)) Internal communication data STX, DLE, D0 to D15 to which "DLE" of the control character indicating that is added before are transmitted. By this, assuming that the maximum transmission byte count includes the control data in all blocks D0 to D15 as the data transmission size, theoretically 16 bytes of D0 to D15 and the maximum 16 bytes of DLE corresponding to these And 1 byte of STX add up to 33 bytes. When detecting the control data in the data to be transmitted, the sub board communication LSI 710 escapes the block of the corresponding byte number, and adds the DLE before the block. The escape process is performed by calculating an exclusive OR of data of a corresponding block (byte number) and a predetermined value.

[外部出力用通信LSI及び外部端子板制御LSIの構成]
図10は、主基板6Aと外部集中端子板9Aとの接続形態を模式的に示し、図11は、外部出力用通信LSI610A及び外部端子板制御LSI910の構成を示し、図12は、メインCPU601からホールコンピュータ1000までのデータ及び信号の流れを示している。なお、図11に示すように、外部出力用通信LSI610A及び外部端子板制御LSI910は、先述した主基板通信LSI610及び副基板通信LSI710と同様の構成要素として、専用コントローラ611A,911、設定レジスタ612A,912、キャッシュメモリ613A,913、AES回路614A,914、第1UART615A,915、第2UART616A,916、第1SPI617A,917、第2SPI(図示せず)、第1〜4マンチェスター回路618A〜621A,918〜921、及びクロック・リセット制御回路622A,922を有している。これらの構成要素は、主基板通信LSI610及び副基板通信LSI710によるものと同様の機能を果たすため、その説明を省略する。外部出力用通信LSI610A及び外部端子板制御LSI910は、先述した主基板通信LSI610及び副基板通信LSI710とは異なる構成要素として、GPIO(General Purpose Input/Output)インターフェース624A,924を有する。これらの構成要素は、内部バス623A,923を介して相互に接続されている。このような外部出力用通信LSI610A及び外部端子板制御LSI910も、例えばASICにより構成される。
[Configuration of communication LSI for external output and external terminal board control LSI]
FIG. 10 schematically shows the connection form of the main board 6A and the external concentrated terminal board 9A, FIG. 11 shows the configuration of the external output communication LSI 610A and the external terminal board control LSI 910, and FIG. The flow of data and signals up to the hall computer 1000 is shown. As shown in FIG. 11, the external output communication LSI 610A and the external terminal board control LSI 910 have the same components as the main board communication LSI 610 and the sub board communication LSI 710 described above, dedicated controllers 611A and 911, setting register 612A, and 912, cache memory 613A, 913, AES circuit 614A, 914, first UART 615A, 915, second UART 616A, 916, first SPI 617A, 917, second SPI (not shown), first to fourth Manchester circuits 618A to 621A, 918 to 921 And clock and reset control circuits 622 A and 922. Since these components perform the same functions as those of the main substrate communication LSI 610 and the sub substrate communication LSI 710, the description thereof is omitted. The external output communication LSI 610A and the external terminal board control LSI 910 have GPIO (General Purpose Input / Output) interfaces 624A and 924 as components different from the main substrate communication LSI 610 and the sub substrate communication LSI 710 described above. These components are connected to one another via internal buses 623A and 923. Such an external output communication LSI 610A and the external terminal board control LSI 910 are also configured by, for example, an ASIC.

本実施形態の主基板6Aにおいては、メインCPU601の第2UART601Bから外部出力用通信LSI610Aに対してコマンドが送信され、この外部出力用通信LSI610Aで物理層エラーの検出等が行われた後、AES回路614Aで暗号化され、さらに第2UART616Aを通じて第2マンチェスター回路619Aに供給され、この第2マンチェスター回路619Aで変調されるように構成されている。このようにして変調されたコマンドは、シリアル通信方式に従う外部出力用データとされ、光ファイバーケーブル100の発光側接続端に配置された光通信デバイスの発光素子630Aにより光信号として出力されることにより、光ファイバーケーブル100を通じて外部集中端子板9Aへと送信される。   In the main substrate 6A of this embodiment, a command is transmitted from the second UART 601B of the main CPU 601 to the external output communication LSI 610A, and after detection of a physical layer error or the like is performed by the external output communication LSI 610A, the AES circuit is performed. It is configured to be encrypted at 614A and to be supplied to the second Manchester circuit 619A through the second UART 616A and to be modulated by the second Manchester circuit 619A. The command thus modulated is used as data for external output according to the serial communication system, and is output as an optical signal by the light emitting element 630A of the optical communication device disposed at the light emitting side connection end of the optical fiber cable 100. The signal is transmitted to the external concentrated terminal plate 9A through the optical fiber cable 100.

外部集中端子板9Aにおいては、主基板6Aから送信された外部出力用データが、光ファイバーケーブル100の発光側接続端から受光側接続端へと外部中継基板8Aを経由しつつ光信号として伝送され、光ファイバーケーブル100の受光側接続端に配置された光通信デバイスの受光素子930に受信されることで外部端子板制御LSI910の第2マンチェスター回路919に供給され、この第2マンチェスター回路919で復調された後、第2UART916を通じてAES回路914に供給され、さらにAES回路914において復号化された後、受信した外部出力用データに基づいて汎用入出力方式に従う複数のオン/オフ状態を示す信号が生成され、これら複数の信号がGPIOインターフェース924の各出力ポートから各リレー940を介して外部出力コネクタ950に供給される。外部出力コネクタ950には、ホールコンピュータ1000が接続されており、ホールコンピュータ1000には、複数の信号のオン/オフ状態が伝えられる。ホールコンピュータ1000では、外部集中端子板9Aからの複数の信号のオン/オフ状態に基づいて各種の解析処理が行われる。本実施形態の信号としては、メダルイン信号、メダルアウト信号、セキュリティ信号、外部信号1〜4がある。   In the external concentrated terminal plate 9A, the external output data transmitted from the main substrate 6A is transmitted as an optical signal while passing through the external relay substrate 8A from the light emitting side connection end of the optical fiber cable 100 to the light receiving side connection end, It is supplied to the second Manchester circuit 919 of the external terminal board control LSI 910 by being received by the light receiving element 930 of the optical communication device disposed at the light receiving side connection end of the optical fiber cable 100 and demodulated by the second Manchester circuit 919 Thereafter, after being supplied to the AES circuit 914 through the second UART 916 and further decoded by the AES circuit 914, a plurality of on / off states according to the general purpose input / output system are generated based on the received external output data. These multiple signals from each output port of GPIO interface 924 It is supplied to the external output connector 950 via the over 940. A hall computer 1000 is connected to the external output connector 950, and the on / off states of a plurality of signals are transmitted to the hall computer 1000. In the hall computer 1000, various analysis processes are performed based on the on / off states of a plurality of signals from the external concentrated terminal plate 9A. As a signal of this embodiment, there are a medal in signal, a medal out signal, a security signal, and external signals 1 to 4.

このような主基板6Aと外部集中端子板9Aとは、外部中継基板8Aで配線が中継された光ファイバーケーブル100を介して互いに接続されている。また、主基板6A及び副基板7Aも、ドア中継基板53で配線が中継された光ファイバーケーブル100を介して互いに接続されている。なお、光ファイバーケーブルを用いた接続方式では、必ずしも中継基板を設ける必要はなく、接続対象となる双方の基板に光ファイバーケーブルの両端を直結し、これらの基板どうしを直接接続するようにしてもよい。   The main substrate 6A and the external concentrated terminal plate 9A are connected to each other via the optical fiber cable 100 in which the wiring is relayed by the external relay substrate 8A. Further, the main substrate 6A and the sub substrate 7A are also connected to each other via the optical fiber cable 100 in which the wiring is relayed by the door relay substrate 53. In the connection method using an optical fiber cable, it is not necessary to provide a relay substrate. Both ends of the optical fiber cable may be directly connected to both substrates to be connected, and these substrates may be directly connected to each other.

また、図12に示すように、メインCPU601から外部出力用通信LSI610Aへと送信されるコマンドは、2Byteの平文データであり、その際の通信速度(ボーレート)は、19200bpsとされる。これは、メインCPU601及び外部出力用通信LSI610A間の通信仕様、具体的には、メインCPU601の処理スペックに応じて設計された通信仕様に準拠するものである。外部出力用通信LSI610Aから外部端子板制御LSI910へと送信される外部出力用データは、マンチェスター変調及び暗号化された1Byteのデータであり、その際の通信速度は、115200bpsとされる。これは、外部出力用通信LSI610A及び外部端子板制御LSI910間の通信仕様、具体的には、外部出力用通信LSI610A及び外部端子板制御LSI910並びにホールコンピュータ1000の処理スペックに応じて設計された通信仕様に準拠するものである。外部端子板制御LSI910からホールコンピュータ1000へと出力されるパラレル信号は、複数の信号からなる。なお、外部出力用通信LSIから外部端子板制御LSIへと送信される外部出力用データは、マンチェスター変調が施されることなく暗号化のみがなされたデータとしてもよい。これによれば、主基板から外部集中端子板へと効率よくデータを転送することができる。   Further, as shown in FIG. 12, the command transmitted from the main CPU 601 to the external output communication LSI 610A is plaintext data of 2 bytes, and the communication speed (baud rate) at that time is 19200 bps. This conforms to the communication specification between the main CPU 601 and the external output communication LSI 610A, specifically, the communication specification designed according to the processing specification of the main CPU 601. The external output data transmitted from the external output communication LSI 610A to the external terminal board control LSI 910 is Manchester-modulated and encrypted 1-byte data, and the communication speed at that time is 115,200 bps. This is the communication specification between the external output communication LSI 610A and the external terminal board control LSI 910, specifically, the communication specification designed according to the processing specifications of the external output communication LSI 610A, the external terminal board control LSI 910, and the hall computer 1000. In accordance with The parallel signal output from the external terminal board control LSI 910 to the hall computer 1000 is composed of a plurality of signals. The external output data to be transmitted from the external output communication LSI to the external terminal board control LSI may be data which has been subjected to Manchester modulation without being subjected to Manchester modulation. According to this, data can be efficiently transferred from the main substrate to the external concentrated terminal plate.

より詳細に説明すると、図66に示すように、コマンドは、コマンドの種別を示す1Byteのコマンド情報(CMD)と、これに付随してパラメータを示す1Byteの設定データ(DATA)とをセットにしたものである。本実施形態においては、例えば16進数表記によるコマンド情報として、メダルインを示すメダルインコマンド「90H」、メダルアウトを示すメダルアウトコマンド「A0H」、遊技等に係る各種の情報を単に外部出力することを示す外部出力コマンド「B0H」、当該各種の情報をメダルアウトに係るコマンドの外部出力終了後に続いて外部出力すべきことを示す外部出力チェーンコマンド「B1H」、当該各種の情報を所定時間継続して外部出力すべきことを示す外部出力ONコマンド「B2H」、当該各種の情報をメダルアウトに係るコマンドの外部出力終了後であって、かつ、所定時間継続して外部出力すべきことを示す外部出力ONチェーンコマンド「B3H」、当該各種の情報を所定時間継続して外部出力オフ状態とすべきことを示す外部出力OFFコマンド「B4H」、当該各種の情報をメダルアウトに係るコマンドの外部出力終了後であって、かつ、所定時間継続して外部出力オフ状態とすべきことを示す外部出力OFFチェーンコマンド「B5H」、セキュリティに係る情報を外部出力することを示すセキュリティコマンド「C0H」が用意されている。   More specifically, as shown in FIG. 66, the command is made up of 1 byte of command information (CMD) indicating the type of command and 1 byte of setting data (DATA) accompanying the parameter. It is a thing. In the present embodiment, for example, as command information in hexadecimal notation, a medal in command “90H” indicating medal in, a medal out command “A0H” indicating medal out, and various information related to gaming etc. are simply output to the outside. The external output command “B0H” indicating that, the external output chain command “B1H” indicating that the external output of the command relating to the medal out should be subsequently output after the external output of the command relating to the medal out end, An external output ON command "B2H" indicating that external output should be output, and an external output indicating that external output should be continued for a predetermined period of time after the external output of the command related to medal out is completed. The ON output command “B3H”, the various information concerned should be kept for a predetermined time and the external output should be turned off. An external output OFF command “B4H” indicating that the external output OFF chain indicates that the various types of information should be kept in the external output OFF state for a predetermined period of time after the external output of the command related to medal out ends. A command "B5H" and a security command "C0H" indicating that information concerning security is to be output to the outside are prepared.

なお、外部出力に係るコマンド「B0H」〜「B5H」には、例えば遊技状態や入賞といった情報が割り当てられるが、特にそのような情報に限られるものではなく、機種ごとに必要な各種の情報を適宜定めることが可能である。また、セキュリティコマンド「C0H」には、例えば、ドア開検知及び設定変更開始を示す情報に加え、メインRAM603のサム異常、投入メダル通過時間、投入メダル通過チェック、投入メダル逆行、補助庫満杯、ホッパーエンプティ、ホッパージャム、イリーガルヒット(当籤役と入賞役とが異なる不正入賞)といったセキュリティ情報が割り当てられる。   In addition, although information, such as a game state and a prize, is allocated to the command "B0H"-"B5H" which concerns on an external output, for example, it is not restricted to such information in particular, The various information required for every model is It can be determined appropriately. In addition to the information indicating the door open detection and the setting change start, the security command "C0H" includes, for example, a thumb error in the main RAM 603, insertion medal passage time, insertion medal passage check, insertion medal retrogression, auxiliary storage full, hopper Security information such as empty, hopper jam, illegal hit (unfair prize that the winning combination and the winning combination are different) is assigned.

メダルインコマンド「90H」の設定データには、メダル投入枚数を示す数値として1〜3がセットされる。メダルアウトコマンド「A0H」の設定データには、メダル払出枚数を示す数値として1〜15がセットされる。外部出力に係るコマンド「B1H」〜「B5H」の設定データの下位4ビットには、その種別を示す情報として外部信号1〜4がセットされる。外部出力コマンド「B0H」及び外部出力チェーンコマンド「B1H」の設定データの上位4ビットは、未使用とされる。外部出力ONコマンド「B2H」、外部出力ONチェーンコマンド「B3H」、外部出力OFFコマンド「B4H」、及び外部出力OFFチェーンコマンド「B5H」のの上位4ビットには、時間設定を示す数値(時間設定値)として0〜7がセットされる。セキュリティコマンド「C0H」の設定データの上位4ビットには、時間設定を示す数値(時間設定値)として0〜7が任意にセット可能であり、下位4ビットのうちの最下位ビット(Bit0)には、セキュリティ情報の有無状態(1/0)がセットされる。なお、本実施形態では、時間設定値「1」当たりの実時間が例えば500ms程度と予め定められている。また、本実施形態では、コマンド情報(CMD)の最上位ビット(Bit7)は、必ずオン(1)にセットされる一方、設定データ(DATA)の最上位ビット(Bit7)は、必ずオフ(0)にセットされ、外部出力用通信LSI610Aは、1バイト単位で後述の受信処理(図76)を実行するようになっている。これにより、外部出力用通信LSI610Aは、メインCPU601から受信したコマンドをコマンド情報(CMD)と設定データ(DATA)とに振り分けながら効率よくデータ通信処理を行うことができる。   In the setting data of the medal in command "90H", 1 to 3 are set as numerical values indicating the number of inserted medals. In the setting data of the medal out command “A0H”, 1 to 15 are set as numerical values indicating the number of medals paid out. External signals 1 to 4 are set in the lower 4 bits of setting data of commands "B1H" to "B5H" relating to external output as information indicating the type. The upper 4 bits of the setting data of the external output command “B0H” and the external output chain command “B1H” are not used. The upper 4 bits of external output ON command "B2H", external output ON chain command "B3H", external output OFF command "B4H", and external output OFF chain command "B5H" are numerical values (time 0 to 7 are set as the value). In the upper 4 bits of the setting data of the security command "C0H", 0 to 7 can be arbitrarily set as a numerical value (time setting value) indicating time setting, and the least significant bit (Bit 0) of the lower 4 bits The presence / absence status (1/0) of security information is set. In the present embodiment, the actual time per time setting value “1” is predetermined to be, for example, about 500 ms. In the present embodiment, the most significant bit (Bit 7) of the command information (CMD) is always set to on (1), while the most significant bit (Bit 7) of the setting data (DATA) is always off (0). , And the external output communication LSI 610A is configured to execute the later-described reception processing (FIG. 76) in 1-byte units. As a result, the external output communication LSI 610A can perform data communication processing efficiently while distributing the command received from the main CPU 601 into command information (CMD) and setting data (DATA).

上記コマンドを受信した外部出力用通信LSI610Aは、受信したコマンドから外部出力用データを生成し、当該外部出力用データを適宜のタイミングで外部端子板制御LSI910へと送信するために、複数のワーキングエリア及び複数のソフトウェアタイマの領域をキャッシュメモリ613Aに確保する。ワーキングエリアとしては、現時点で外部出力すべき外部出力用データの出力状態をセットするための出力状態エリア、外部出力用データの出力状態を編集するための出力編集エリア、チェーンコマンドに係る外部出力用データを格納するためのチェーンエリア、外部出力ONチェーンコマンドに係る外部出力用データを格納するための外部出力ONエリア、外部出力OFFチェーンコマンドに係る外部出力用データを格納するための外部出力OFFエリア、外部出力ONコマンド(チェーン含む)の設定時間後に外部出力用データの出力状態を復帰させるための外部出力ON計測後復帰エリア、外部出力OFFコマンド(チェーン含む)の設定時間後に外部出力用データの出力状態を復帰させるための外部出力OFF計測後復帰エリア、セキュリティコマンドの設定時間後に外部出力用データの出力状態を復帰させるためのセキュリティ計測後復帰エリアがある。   The external output communication LSI 610A that has received the command generates a plurality of external output data from the received command, and transmits the plurality of external output data to the external terminal board control LSI 910 at appropriate timings. And reserve a plurality of software timer areas in the cache memory 613A. The working area includes an output state area for setting the output state of the external output data to be externally output at this time, an output editing area for editing the output state of the external output data, and an external output for the chain command A chain area for storing data, an external output ON area for storing data for external output related to an external output ON chain command, an external output OFF area for storing data for external output related to an external output OFF chain command , A recovery area after external output ON measurement to restore the output state of external output data after setting time of external output ON command (including chain), External output data of after setting time of external output OFF command (including chain) Return area after external output OFF measurement to restore output status A security measure after the return area for returning the output state of the data for external output after Interview utility command set time.

図68に示すように、ソフトウェアタイマとしては、メダルインカウント用のソフトウェアタイマ(1)、メダルアウトカウント用のソフトウェアタイマ(2)、外部出力ONコマンド用のソフトウェアタイマ(3)、外部出力OFFコマンド用のソフトウェアタイマ(4)、セキュリティコマンド用のソフトウェアタイマ(5)がある。なお、キャッシュメモリ613Aには、ワーキングエリアやソフトウェアタイマの領域が確保されるほか、受信した設定データを一時的に保存するための設定データ保存領域やバッファ領域も確保される。また、ソフトウェアタイマは、カウントダウンタイマとして機能するものであり、予備としてソフトウェアタイマ(6)〜(8)も設けられている。ソフトウェアタイマの領域としては、タイマ別のアドレスごとに、停止(0)/計測(1)/予約(2)/終了(−1)といったタイマの作動状態を示す1バイトの領域と、実際にタイマカウンタの値を保持する2バイトのカウンタ領域とが設けられる。   As shown in FIG. 68, as software timers, software timer for medal in counting (1), software timer for medal out counting (2), software timer for external output ON command (3), external output OFF command There is a software timer for (4) and a software timer for security commands (5). In the cache memory 613A, a working area and an area of a software timer are secured, and a setting data storage area and a buffer area for temporarily saving received setting data are also secured. The software timer functions as a countdown timer, and software timers (6) to (8) are also provided as spares. The software timer area is a 1-byte area that indicates the operation status of the timer such as stop (0) / measurement (1) / reservation (2) / end (-1) for each timer address, and the timer actually A 2-byte counter area for holding the value of the counter is provided.

図67に示すように、ワーキングエリアは、1Byteの領域からなり、各Bitにコマンドの状態(1/0)が割り付けられる。具体的にいうと、ワーキングエリアのBit0〜Bit3には、外部出力用データの内容として外部信号4〜外部信号1の各状態がセットされる。外部信号4〜外部信号1は、パラレル信号の各信号要素となり、外部集中端子板9Aのリレー(2)〜(5)940及び外部出力コネクタ950を通じてホールコンピュータ1000へと出力される。ワーキングエリアのBit4には、外部出力用データの内容としてセキュリティ信号の状態がセットされる。セキュリティ信号は、パラレル信号の一信号要素となり、外部集中端子板9Aのリレー(1)940及び外部出力コネクタ950を通じてホールコンピュータ1000へと出力される。ワーキングエリアのBit5には、外部出力用データの内容としてメダルアウト信号の状態がセットされる。メダルアウト信号は、パラレル信号の一信号要素となり、外部集中端子板9Aのリレー(6)940及び外部出力コネクタ950を通じてホールコンピュータ1000へと出力される。ワーキングエリアのBit6には、外部出力用データの内容としてメダルイン信号の状態がセットされる。メダルイン信号は、パラレル信号の一信号要素となり、外部集中端子板9Aのリレー(7)940及び外部出力コネクタ950を通じてホールコンピュータ1000へと出力される。ワーキングエリアのBit7は、未使用とされる。外部出力用通信LSI610Aは、上記の外部信号4〜外部信号1、セキュリティ信号、メダルアウト信号、及びメダルイン信号それぞれの状態をデータセットとした1Byteのデータを外部出力用データとしてシリアル通信方式により外部端子板制御LSI910へと送信する。   As shown in FIG. 67, the working area consists of an area of 1 byte, and the status (1/0) of the command is assigned to each bit. Specifically, the states of the external signal 4 to the external signal 1 are set in Bit 0 to Bit 3 of the working area as the contents of the external output data. The external signals 4 to 1 become signal elements of parallel signals, and are output to the hall computer 1000 through the relays (2) to (5) 940 of the external concentrated terminal plate 9A and the external output connector 950. In Bit 4 of the working area, the state of the security signal is set as the content of the external output data. The security signal becomes one signal element of the parallel signal, and is output to the hall computer 1000 through the relay (1) 940 of the external concentrated terminal plate 9A and the external output connector 950. In Bit 5 of the working area, the state of the medal out signal is set as the content of the external output data. The medal out signal becomes one signal element of the parallel signal, and is output to the hall computer 1000 through the relay (6) 940 of the external concentrated terminal plate 9A and the external output connector 950. In Bit 6 of the working area, the state of the medal in signal is set as the content of the external output data. The medal-in signal becomes one signal element of the parallel signal, and is output to the hall computer 1000 through the relay (7) 940 of the external concentrated terminal plate 9A and the external output connector 950. Bit 7 in the working area is considered unused. The external output communication LSI 610A uses an external terminal according to a serial communication method using 1 byte of data in which the status of the above external signal 4 to external signal 1, the security signal, the medal out signal, and the medal in signal is set as a data set. Transmit to board control LSI 910.

具体的には、図13に示すように、コマンドとして、例えばメダル投入枚数3を示す設定データ「03H」と共にメダルインコマンド「90H」が、メインCPU601から外部出力用通信LSI610Aに送信された場合、外部出力用通信LSI610Aは、後述のメダルイン出力変換処理(図78参照)やメダルイン出力制御処理(図85参照)等を実行することにより、そのようなコマンド(CMD:90H,DATA:03H)に対応する外部出力用データを生成し、当該外部出力用データの出力状態を適宜制御しながら外部端子板制御LSI910へと送信する。これにより、外部端子板制御LSI910は、受信した外部出力用データに基づき、例えば50msのパルス幅でパルス周期を100msとし、設定データ(メダル投入枚数)をパルス数に対応付けたメダルイン信号をリレー(7)940を通じてホールコンピュータ1000へと出力する。   Specifically, as shown in FIG. 13, when the medal in command "90H" is transmitted from the main CPU 601 to the external output communication LSI 610A as a command, for example, setting data "03H" indicating the number of inserted medals 3 is The external output communication LSI 610A supports such commands (CMD: 90H, DATA: 03H) by executing medal in output conversion processing (see FIG. 78) and medal in output control processing (see FIG. 85) described later. The external output data is generated and transmitted to the external terminal board control LSI 910 while appropriately controlling the output state of the external output data. Thus, based on the received external output data, the external terminal board control LSI 910 sets the pulse period to 100 ms with a pulse width of 50 ms, for example, and relays the medal in signal in which the setting data (the number of inserted medals) is associated with the pulse number. 7) Output to the hall computer 1000 through 940.

図14に示すように、コマンドとして、例えばメダル払出枚数15を示す設定データ「0FH」と共にメダルアウトコマンド「A0H」が、メインCPU601から外部出力用通信LSI610Aに送信された場合、外部出力用通信LSI610Aは、後述のメダルアウト出力変換処理(図79参照)やメダルアウト出力制御処理(図86参照)等を実行することにより、そのようなコマンド(CMD:A0H,DATA:0FH)に対応する外部出力用データを生成し、当該外部出力用データの出力状態を適宜制御しながら外部端子板制御LSI910へと送信する。これにより、外部端子板制御LSI910は、受信した外部出力用データに基づき、例えば50msのパルス幅でパルス周期を100msとし、設定データ(メダル払出枚数)をパルス数に対応付けたメダルアウト信号をリレー(6)940を通じてホールコンピュータ1000へと出力する。   As shown in FIG. 14, when the medal out command "A0H" is transmitted from the main CPU 601 to the external output communication LSI 610A as a command, for example, setting data "0FH" indicating the medal payout number 15, the external output communication LSI 610A External output corresponding to such a command (CMD: A0H, DATA: 0FH) by executing medal out output conversion processing (see FIG. 79) and medal out output control processing (see FIG. 86) described later Data are generated and transmitted to the external terminal board control LSI 910 while appropriately controlling the output state of the external output data. As a result, the external terminal board control LSI 910 sets the pulse period to 100 ms with a pulse width of 50 ms, for example, based on the received external output data, and relays the token out signal in which the setting data (the number of medals paid out) is associated with the number of pulses. (6) Output to the hall computer 1000 through 940.

図15に示すように、コマンドとして、例えば外部信号2及び外部信号4を出力オンとし、かつ、外部信号1及び外部信号3を出力オフとすることを示す設定データ「05H」と共に外部出力コマンド「B0H」が、メインCPU601から外部出力用通信LSI610Aに送信された場合、外部出力用通信LSI610Aは、後述の外部出力変換処理(図80参照)や出力制御処理(図84参照)等を実行することにより、そのようなコマンド(CMD:B0H,DATA:05H)に対応する外部出力用データを生成し、当該外部出力用データの出力状態を適宜制御しながら外部端子板制御LSI910へと送信する。これにより、外部端子板制御LSI910は、受信した外部出力用データに基づき、設定データ(外部信号2及び外部信号4の出力オン、並びに外部信号1及び外部信号3の出力オフ)に対応するリレー(4)940及びリレー(2)940に通じる信号線をオン状態とすると共に、リレー(5)940及びリレー(3)940に通じる信号線をオフ状態とし、外部信号1〜4をホールコンピュータ1000へと出力する。   As shown in FIG. 15, as a command, for example, the external signal 2 and the external signal 4 are turned on and the external signal 1 and the external signal 3 are turned off, together with setting data "05H". When “B0H” is transmitted from the main CPU 601 to the external output communication LSI 610A, the external output communication LSI 610A executes external output conversion processing (see FIG. 80) and output control processing (see FIG. 84) described later. Thus, external output data corresponding to such a command (CMD: B0H, DATA: 05H) is generated and transmitted to the external terminal board control LSI 910 while appropriately controlling the output state of the external output data. As a result, the external terminal board control LSI 910 is a relay (on which the output of the external signal 2 and the external signal 4 is on and the output of the external signal 1 and the external signal 3 is off) based on the received external output data. 4) Turn on the signal line leading to 940 and relay (2) 940, turn off the signal line leading to relay (5) 940 and relay (3) 940, and send external signals 1 to 4 to Hall computer 1000 And output.

図16に示すように、コマンドとして、例えば外部信号1及び外部信号3を出力オンとすることを示す設定データ「0AH」と共に外部出力チェーンコマンド「B1H」が、メインCPU601から外部出力用通信LSI610Aに送信された場合、外部出力用通信LSI610Aは、後述の外部出力変換処理(図80参照)や設定出力制御処理(図87参照)等を実行することにより、そのようなコマンド(CMD:B1H,DATA:0AH)に対応する外部出力用データを生成し、当該外部出力用データの出力状態をメダルアウトコマンドに対応する外部出力用データの出力状態と適宜調整しながら外部端子板制御LSI910へと送信する。これにより、外部端子板制御LSI910は、受信した外部出力用データに基づき、メダルアウトコマンドに対応するリレー(6)940からのメダルアウト信号の出力を終了した後、設定データ(外部信号1及び外部信号3の出力オン)に対応するリレー(5)940及びリレー(3)940に通じる信号線をオン状態とし、外部信号1及び外部信号3をホールコンピュータ1000へと出力する。   As shown in FIG. 16, as a command, for example, an external output chain command "B1H" is output from the main CPU 601 to the external output communication LSI 610A together with setting data "0AH" indicating that the external signal 1 and the external signal 3 are output on. When transmitted, the external output communication LSI 610A executes such external command (CMD: B1H, DATA) by executing an external output conversion process (see FIG. 80) and a setting output control process (see FIG. 87) described later. Data for external output corresponding to (: 0AH) is generated, and the output state of the external output data is transmitted to external terminal board control LSI 910 while appropriately adjusting the output state of the external output data corresponding to the medal out command. . Thereby, the external terminal board control LSI 910 ends the output of the medal out signal from the relay (6) 940 corresponding to the medal out command based on the received data for external output, and then the setting data (external signal 1 and external) The signal lines connected to the relay (5) 940 and the relay (3) 940 corresponding to the output of the signal 3 are turned on, and the external signal 1 and the external signal 3 are output to the hall computer 1000.

図17に示すように、コマンドとして、例えば外部信号2及び外部信号4を時間設定値「2」とした上で出力オンとすることを示す設定データ「25H」と共に外部出力ONコマンド「B2H」が、メインCPU601から外部出力用通信LSI610Aに送信された場合、外部出力用通信LSI610Aは、後述の外部出力ON変換処理(図81参照)や設定出力制御処理(図87参照)等を実行することにより、そのようなコマンド(CMD:B2H,DATA:25H)に対応する外部出力用データを生成し、当該外部出力用データの出力状態を適宜制御しながら外部端子板制御LSI910へと送信する。これにより、外部端子板制御LSI910は、受信した外部出力用データに基づき、設定データ(外部信号2及び外部信号4を時間設定値「2」とした上で出力オン)に対応するリレー(4)940及びリレー(2)940に通じる信号線を1000msの間に限りオン状態とし、外部信号2及び外部信号4をホールコンピュータ1000へと出力する。なお、この場合の設定データは、外部信号1〜4に対応する下位4ビットのうちいずれかをオン(1)にセットすることでオン状態とすべき外部信号1〜4を指示しており、設定データの下位4ビットのうちオフ(0)に対応する外部信号1〜4については、そのまま出力状態が維持されることとなる。   As shown in FIG. 17, as a command, for example, the external output ON command "B2H" is together with setting data "25H" indicating that output is turned on after setting the external signal 2 and external signal 4 to the time setting value "2". When transmitted from the main CPU 601 to the external output communication LSI 610A, the external output communication LSI 610A performs external output ON conversion processing (see FIG. 81) and setting output control processing (see FIG. 87) described later. Data for external output corresponding to such a command (CMD: B2H, DATA: 25H) is generated, and transmitted to the external terminal board control LSI 910 while appropriately controlling the output state of the data for external output. As a result, the external terminal board control LSI 910 responds to the setting data (the external signal 2 and the external signal 4 are set to the time setting value “2” and the output is turned on) based on the received external output data (4) 940 and relay (2) The signal line leading to the relay 940 is turned on only for 1000 ms, and the external signal 2 and the external signal 4 are output to the hall computer 1000. The setting data in this case indicates external signals 1 to 4 to be turned on by setting one of the lower 4 bits corresponding to external signals 1 to 4 to on (1), The output state of the external signals 1 to 4 corresponding to off (0) among the lower 4 bits of the setting data is maintained as it is.

図18に示すように、コマンドとして、例えば外部信号1及び外部信号3を時間設定値「1」とした上で出力オンとすることを示す設定データ「1AH」と共に外部出力ONチェーンコマンド「B3H」が、メインCPU601から外部出力用通信LSI610Aに送信された場合、外部出力用通信LSI610Aは、後述の外部出力ON変換処理(図81参照)や設定出力制御処理(図87参照)等を実行することにより、そのようなコマンド(CMD:B2H,DATA:25H)に対応する外部出力用データを生成し、当該外部出力用データの出力状態をメダルアウトコマンドに対応する外部出力用データの出力状態と適宜調整しながら外部端子板制御LSI910へと送信する。これにより、外部端子板制御LSI910は、受信した外部出力用データに基づき、メダルアウトコマンドに対応するリレー(6)940からのメダルアウト信号の出力を終了した後、設定データ(外部信号1及び外部信号3を時間設定値「1」とした上で出力オン)に対応するリレー(5)940及びリレー(3)940に通じる信号線を500msの間に限りオン状態とし、外部信号1及び外部信号3をホールコンピュータ1000へと出力する。なお、この場合の設定データも、外部信号1〜4に対応する下位4ビットのうちいずれかをオン(1)にセットすることでオン状態とすべき外部信号1〜4を指示しており、設定データの下位4ビットのうちオフ(0)に対応する外部信号1〜4については、そのまま出力状態が維持されることとなる。   As shown in FIG. 18, for example, external output ON chain command "B3H" together with setting data "1AH" indicating that output is turned on after setting external signal 1 and external signal 3 to time setting value "1" as a command. However, when the main CPU 601 transmits to the external output communication LSI 610A, the external output communication LSI 610A executes external output ON conversion processing (see FIG. 81) and setting output control processing (see FIG. 87) described later. Generates an external output data corresponding to such a command (CMD: B2H, DATA: 25H), and the output state of the external output data corresponds to the output state of the external output data corresponding to the medal out command. It transmits to the external terminal board control LSI 910 while adjusting. Thereby, the external terminal board control LSI 910 ends the output of the medal out signal from the relay (6) 940 corresponding to the medal out command based on the received data for external output, and then the setting data (external signal 1 and external) The signal line leading to the relay (5) 940 and the relay (3) 940 corresponding to the signal 3 after setting the time set value to “1” is turned on only for 500 ms, and the external signal 1 and the external signal 3 is output to the hall computer 1000. The setting data in this case also indicates external signals 1 to 4 to be turned on by setting any one of the lower 4 bits corresponding to external signals 1 to 4 to on (1), The output state of external signals 1 to 4 corresponding to off (0) among the lower 4 bits of setting data is maintained as it is.

図19に示すように、コマンドとして、例えば外部信号3及び外部信号4を時間設定値「2」とした上で出力オフとすることを示す設定データ「23H」と共に外部出力OFFコマンド「B4H」が、メインCPU601から外部出力用通信LSI610Aに送信された場合、外部出力用通信LSI610Aは、後述の外部出力OFF変換処理(図82参照)や設定出力制御処理(図87参照)等を実行することにより、そのようなコマンド(CMD:B4H,DATA:23H)に対応する外部出力用データを生成し、当該外部出力用データの出力状態を適宜制御しながら外部端子板制御LSI910へと送信する。これにより、外部端子板制御LSI910は、受信した外部出力用データに基づき、設定データ(外部信号3及び外部信号4を時間設定値「2」とした上で出力オフ)に対応するリレー(3)940及びリレー(2)940に通じる信号線を1000msの間に限りオフ状態とし、外部信号3及び外部信号4をホールコンピュータ1000へと出力する。なお、この場合の設定データは、外部信号1〜4に対応する下位4ビットのうちいずれかをオン(1)にセットすることでオフ状態とすべき外部信号1〜4を指示しており、設定データの下位4ビットのうちオフ(0)に対応する外部信号1〜4については、そのまま出力状態が維持されることとなる。   As shown in FIG. 19, as a command, for example, external output OFF command "B4H" together with setting data "23H" indicating that output is turned off after setting external signal 3 and external signal 4 to time set value "2" When transmitted from the main CPU 601 to the external output communication LSI 610A, the external output communication LSI 610A performs external output OFF conversion processing (see FIG. 82) and setting output control processing (see FIG. 87) described later. Data for external output corresponding to such a command (CMD: B4H, DATA: 23H) is generated, and is transmitted to the external terminal board control LSI 910 while appropriately controlling the output state of the data for external output. Thereby, the external terminal board control LSI 910 is a relay (3) corresponding to the setting data (the external signal 3 and the external signal 4 are set to the time setting value “2” and the output is turned off) based on the received external output data. 940 and relay (2) The signal line leading to the relay 940 is turned off only for 1000 ms, and the external signal 3 and the external signal 4 are output to the hall computer 1000. The setting data in this case indicates external signals 1 to 4 to be turned off by setting any one of lower 4 bits corresponding to external signals 1 to 4 to on (1), The output state of the external signals 1 to 4 corresponding to off (0) among the lower 4 bits of the setting data is maintained as it is.

図20に示すように、コマンドとして、例えば外部信号1及び外部信号2を時間設定値「1」とした上で出力オフとすることを示す設定データ「1CH」と共に外部出力OFFチェーンコマンド「B5H」が、メインCPU601から外部出力用通信LSI610Aに送信された場合、外部出力用通信LSI610Aは、後述の外部出力OFF変換処理(図82参照)や設定出力制御処理(図87参照)等を実行することにより、そのようなコマンド(CMD:B5H,DATA:1CH)に対応する外部出力用データを生成し、当該外部出力用データの出力状態をメダルアウトコマンドに対応する外部出力用データの出力状態と適宜調整しながら外部端子板制御LSI910へと送信する。これにより、外部端子板制御LSI910は、受信した外部出力用データに基づき、メダルアウトコマンドに対応するリレー(6)940からのメダルアウト信号の送出を終了した後、設定データ(外部信号1及び外部信号2を時間設定値「1」とした上で出力オフ)に対応するリレー(5)940及びリレー(4)940に通じる信号線を500msの間に限りオフ状態とし、外部信号1及び外部信号2をホールコンピュータ1000へと出力する。なお、この場合の設定データも、外部信号1〜4に対応する下位4ビットのうちいずれかをオン(1)にセットすることでオフ状態とすべき外部信号1〜4を指示しており、設定データの下位4ビットのうちオフ(0)に対応する外部信号1〜4については、そのまま出力状態が維持されることとなる。   As shown in FIG. 20, for example, external output OFF chain command "B5H" together with setting data "1CH" indicating that output is turned off after setting external signal 1 and external signal 2 to time set value "1" as a command. However, when the main CPU 601 transmits to the external output communication LSI 610A, the external output communication LSI 610A executes external output OFF conversion processing (see FIG. 82) and setting output control processing (see FIG. 87) described later. Generates an external output data corresponding to such a command (CMD: B5H, DATA: 1CH), and the output state of the external output data corresponds to the output state of the external output data corresponding to the medal out command. It transmits to the external terminal board control LSI 910 while adjusting. As a result, after the external terminal board control LSI 910 ends the transmission of the medal out signal from the relay (6) 940 corresponding to the medal out command based on the received external output data, the setting data (external signal 1 and external The signal line leading to relay (5) 940 and relay (4) 940 corresponding to signal 2 as time set value “1” is turned off for only 500 ms, and external signal 1 and external signal 2 is output to the hall computer 1000. The setting data in this case also indicates external signals 1 to 4 to be turned off by setting one of the lower 4 bits corresponding to external signals 1 to 4 to on (1), The output state of the external signals 1 to 4 corresponding to off (0) among the lower 4 bits of the setting data is maintained as it is.

図21に示すように、コマンドとして、例えばセキュリティ信号S1を時間設定値「2」とした上で出力オンとすることを示す設定データ「21H」と共にセキュリティコマンド「C0H」が、メインCPU601から外部出力用通信LSI610Aに送信された場合、外部出力用通信LSI610Aは、後述のセキュリティ出力変換処理(図83参照)や出力制御処理(図84参照)等を実行することにより、そのようなコマンド(CMD:C0H,DATA:21H)に対応する外部出力用データを生成し、当該外部出力用データの出力状態を適宜制御しながら外部端子板制御LSI910へと送信する。これにより、外部端子板制御LSI910は、受信した外部出力用データに基づき、設定データ(セキュリティ信号S1を時間設定値「2」とした上で出力オン)に対応するリレー(1)940に通じる信号線を1000msの間に限りオン状態とし、そのようなセキュリティ信号S1をホールコンピュータ1000へと出力する。   As shown in FIG. 21, as a command, for example, the security command "C0H" is output from the main CPU 601 together with setting data "21H" indicating that the security signal S1 is set to "2" and the output is turned on. When transmitted to the communication LSI 610A, the external output communication LSI 610A executes such a command (CMD :) by executing security output conversion processing (see FIG. 83) and output control processing (see FIG. 84) described later. Data for external output corresponding to C0H, DATA: 21H) is generated, and is transmitted to the external terminal board control LSI 910 while appropriately controlling the output state of the data for external output. Thereby, external terminal board control LSI 910 is a signal that leads to relay (1) 940 corresponding to setting data (setting security signal S1 to time setting value “2” and then output on) based on the received data for external output. The line is turned on only for 1000 ms, and such a security signal S1 is output to the hall computer 1000.

図21に示すように、コマンドとして、例えばセキュリティ信号S2を単に出力オンとすることを示す設定データ「01H」と共にセキュリティコマンド「C0H」が、メインCPU601から外部出力用通信LSI610Aに送信された場合、外部出力用通信LSI610Aは、後述のセキュリティ出力変換処理(図83参照)や出力制御処理(図84参照)等を実行することにより、そのようなコマンド(CMD:C0H,DATA:01H)に対応する外部出力用データを生成し、当該外部出力用データの出力状態を適宜制御しながら外部端子板制御LSI910へと送信する。これにより、外部端子板制御LSI910は、受信した外部出力用データに基づき、設定データ(セキュリティ信号S1を単に出力オン)に対応するリレー(1)940に通じる信号線をオン状態とし、そのようなセキュリティ信号S2をホールコンピュータ1000へと出力する。   As shown in FIG. 21, when the security command "C0H" is transmitted from the main CPU 601 to the external output communication LSI 610A as a command, for example, the setting data "01H" indicating that the security signal S2 is simply turned on. The external output communication LSI 610A responds to such commands (CMD: C0H, DATA: 01H) by executing security output conversion processing (see FIG. 83) and output control processing (see FIG. 84) described later. The external output data is generated, and is transmitted to the external terminal board control LSI 910 while appropriately controlling the output state of the external output data. As a result, the external terminal board control LSI 910 turns on the signal line leading to the relay (1) 940 corresponding to the setting data (the output of the security signal S1 is simply turned on) based on the received external output data. The security signal S2 is output to the hall computer 1000.

以上説明したように、メインCPU601は、遊技に係る各種の主制御処理を行う主制御処理手段を実現している。サブCPU701は、複数の周辺機器に対して各種の副制御処理を行う副制御処理手段を実現している。主基板通信LSI610は、主制御処理手段から副制御処理手段へと主制御情報(コマンド)を出力するための主制御出力手段を実現している。外部出力用通信LSI610A及び外部集中端子板9Aは、主制御処理手段から遊技機外の外部機器(ホールコンピュータ1000)へと外部出力情報(コマンド)を出力するための外部出力手段を実現している。外部出力用通信LSI610Aは、主制御処理手段から外部出力情報を入力するとともに、当該外部出力情報を暗号化してシリアル通信方式で出力する第1の通信手段を実現している。外部端子板制御LSI910は、第1の通信手段から暗号化された外部出力情報を入力するとともに、当該外部出力情報を復号化して出力する第2の通信手段を実現している。外部端子板制御LSI910のリレー940は、第2の通信手段から外部出力情報を入力するとともに、当該外部出力情報を所定の出力方式で外部機器(ホールコンピュータ1000)へと出力する出力手段を実現している。外部出力用通信LSI610AのAES回路614Aは、出力状態指示情報あるいは連続出力情報(外部出力用データ)を共通鍵暗号方式で暗号化する暗号化手段を実現している。外部出力用通信LSI610Aの第2マンチェスター回路619Aは、暗号化手段により暗号化された出力状態指示情報あるいは連続出力情報を二相位相偏移変調方式により変調する変調手段を実現している。外部端子板制御LSI910の第2マンチェスター回路919は、変調手段により変調された出力状態指示情報あるいは連続出力情報を二相位相偏移変調方式により復調する復調手段を実現している。外部端子板制御LSI910のAES回路914は、復調手段により復調された出力状態指示情報あるいは連続出力情報を共通鍵暗号方式により復号化する復号化手段を実現している。   As described above, the main CPU 601 implements a main control processing unit that performs various main control processing related to the game. The sub CPU 701 implements a sub control processing unit that performs various sub control processes on a plurality of peripheral devices. The main board communication LSI 610 implements main control output means for outputting main control information (command) from the main control processing means to the sub control processing means. The external output communication LSI 610A and the external concentrated terminal board 9A realize external output means for outputting external output information (command) from the main control processing means to an external device (hall computer 1000) outside the gaming machine. . The external output communication LSI 610A implements a first communication unit that receives external output information from the main control processing unit, encrypts the external output information, and outputs the encrypted information by serial communication. The external terminal board control LSI 910 implements a second communication unit that inputs the encrypted external output information from the first communication unit and decodes and outputs the external output information. The relay 940 of the external terminal board control LSI 910 realizes output means for inputting external output information from the second communication means and outputting the external output information to an external device (hall computer 1000) in a predetermined output method. ing. The AES circuit 614A of the external output communication LSI 610A implements an encryption unit that encrypts output state instruction information or continuous output information (data for external output) using the common key encryption method. The second Manchester circuit 619A of the external output communication LSI 610A implements a modulation unit that modulates the output state indication information or the continuous output information encrypted by the encryption unit according to the binary phase shift keying system. The second Manchester circuit 919 of the external terminal board control LSI 910 implements a demodulation unit that demodulates the output state indication information or the continuous output information modulated by the modulation unit by the binary phase shift keying modulation method. The AES circuit 914 of the external terminal board control LSI 910 implements a decryption unit that decrypts the output state indication information or continuous output information demodulated by the demodulation unit according to the common key encryption system.

また、主制御処理手段(メインCPU601)は、外部出力情報(コマンド)に、所定の出力時間を示す時間情報を含めて出力可能であるとともに、当該時間情報を含めずとも出力可能である。第1の通信手段(外部出力用通信LSI610A)は、主制御処理手段から入力した外部出力情報に時間情報が含まれる場合、当該時間情報に基づいて所定の出力時間を計時する計時手段(専用コントローラ611A及びソフトウェアタイマ(3)〜(5))と、主制御処理手段から入力した外部出力情報に基づいて、所定の出力方式に対応して外部出力オン状態又は外部出力オフ状態を指示する出力状態指示情報(外部出力用データ)を生成する出力状態指示情報生成手段(専用コントローラ611A及びキャッシュメモリ613Aのワーキングエリア)と、外部出力情報に時間情報が含まれる場合、計時手段により所定の出力時間を計時する間、出力状態指示情報を第2の通信手段へと出力する一方、外部出力情報に時間情報が含まれない場合、時間的な制約を受けずに出力状態指示情報を第2の通信手段へと出力する情報出力手段(専用コントローラ611A、第2UART616A)と、を作動可能な機能として有する。第2の通信手段(外部端子板制御LSI910)は、情報出力手段から出力された出力状態指示情報を入力する情報入力手段(専用コントローラ911、第2UART916)と、情報入力手段により入力した出力状態指示情報を、所定の出力方式に従う信号に変換し、当該信号を出力手段を通じて外部機器へと出力する信号出力手段(専用コントローラ911、GPIOインターフェース924)と、を作動可能な機能として有する。   Further, the main control processing means (main CPU 601) can output the external output information (command) including time information indicating a predetermined output time, and can also output without including the time information. When the first communication means (communication LSI for external output 610A) includes time information in the external output information inputted from the main control processing means, a clock means (time controller for measuring a predetermined output time based on the time information) An output state for instructing an external output ON state or an external output OFF state according to a predetermined output method based on external output information input from the main control processing means 611A and software timers (3) to (5)) Output state indication information generation means (working area of dedicated controller 611A and cache memory 613A) for generating indication information (data for external output), and when the external output information includes time information, the predetermined output time is made by the clock means While clocking, while outputting the output state instruction information to the second communication means, the external output information does not include time information. If, an output status indication information without the time constraints second information output means for outputting to the communication means (the dedicated controller 611A, first 2UART616A) and, as a possible operating functions. The second communication means (external terminal board control LSI 910) is an information input means (dedicated controller 911, second UART 916) for inputting the output state indication information outputted from the information output means, and an output state indication inputted by the information input means A signal output unit (dedicated controller 911, GPIO interface 924) for converting information into a signal according to a predetermined output method and outputting the signal to an external device through an output unit is provided as an operable function.

また、主制御処理手段(メインCPU601)は、外部出力情報(外部出力OFFコマンド、外部出力OFFチェーンコマンド)に、外部出力オフ状態の所定時間を示すOFF時間情報を含めて出力可能である。第1の通信手段(外部出力用通信LSI610A)は、主制御処理手段から入力した外部出力情報に含まれるOFF時間情報に基づいて所定時間を計時する計時手段(専用コントローラ611A及びソフトウェアタイマ(4))と、主制御処理手段から入力した外部出力情報に基づいて、所定の出力方式に対応して外部出力オフ状態を指示する第1の出力状態指示情報(外部出力用データ)を生成する一方、所定の出力方式に対応して第1の出力状態指示情報が生成される前の外部出力の状態維持または状態復帰を指示する第2の出力状態指示情報(外部出力用データ)を生成する出力状態指示情報生成手段(専用コントローラ611A及びキャッシュメモリ613Aのワーキングエリア)と、計時手段により所定時間の計時中、第1の出力状態指示情報を第2の通信手段へと出力する一方、計時手段による所定時間の計時が終了すると、第2の出力状態指示情報を第2の通信手段へと出力する情報出力手段(専用コントローラ611A、第2UART616A)と、を作動可能な機能として有する。第2の通信手段(外部端子板制御LSI910)は、情報出力手段から出力された第1の出力状態指示情報及び第2の出力状態指示情報を入力する情報入力手段(専用コントローラ911、第2UART916)と、情報入力手段により入力した第1の出力状態指示情報を、所定の出力方式に従う第1の信号として出力手段を通じて外部機器へと出力し、その後、情報入力手段により入力した第2の出力状態指示情報を、所定の出力方式に従う第2の信号として出力手段を通じて外部機器へと出力する信号出力手段(専用コントローラ911、GPIOインターフェース924)と、を作動可能な機能として有する。   Further, the main control processing means (main CPU 601) can output the external output information (external output OFF command, external output OFF chain command) including OFF time information indicating a predetermined time of the external output OFF state. The first communication means (external output communication LSI 610A) measures a predetermined time based on the OFF time information included in the external output information input from the main control processing means (dedicated controller 611A and software timer (4) And, based on external output information input from the main control processing means, generating first output state instruction information (data for external output) instructing an external output OFF state corresponding to a predetermined output method, An output state for generating second output state indication information (data for external output) instructing to maintain or restore the state of the external output before the first output state indication information is generated corresponding to a predetermined output method The first output during the clocking of a predetermined time by the instruction information generating means (the working area of the dedicated controller 611A and the cache memory 613A) and the clocking means Information output means (dedicated controller 611A) for outputting the second output state instruction information to the second communication means, while outputting the state instruction information to the second communication means, and when the clocking means finishes measuring the predetermined time. , And the second UART 616A) as an operable function. The second communication means (external terminal board control LSI 910) is an information input means (dedicated controller 911, second UART 916) for inputting the first output state indication information and the second output state indication information outputted from the information output means. And the first output state instruction information input by the information input means is output to the external device through the output means as a first signal according to a predetermined output method, and then the second output state inputted by the information input means Signal output means (dedicated controller 911, GPIO interface 924) for outputting instruction information as a second signal in accordance with a predetermined output method to an external device through the output means is provided as an operable function.

また、主制御処理手段(メインCPU601)は、外部出力情報として、第1の外部出力情報(メダルアウトコマンド)を出力可能であるとともに、当該第1の外部出力情報に続いて外部出力すべき第2の外部出力情報(外部出力チェーンコマンド、外部出力ONチェーンコマンド、外部出力OFFチェーンコマンド)を出力可能である。第1の通信手段(外部出力用通信LSI610A)は、主制御処理手段から入力した第1の外部出力情報に基づいて、所定の出力方式に応じた第1の連続出力情報(外部出力用データ)を生成し、その後、主制御処理手段から入力した第2の外部出力情報に基づいて、所定の出力方式に応じた第2の連続出力情報(外部出力用データ)を生成する連続出力情報生成手段(専用コントローラ611A及びキャッシュメモリ613Aのワーキングエリア)と、第1の連続出力情報を第2の通信手段へと出力し、その後、第2の連続出力情報を第2の通信手段へと出力する情報出力手段(専用コントローラ611A、第2UART616A)と、を作動可能な機能として有する。第2の通信手段(外部端子板制御LSI910)は、情報出力手段から出力された第1の連続出力情報を入力し、その後、第2の連続出力情報を入力する情報入力手段(専用コントローラ911、第2UART916)と、情報入力手段により入力した第1の連続出力情報を、所定の出力方式に従う第1の信号として出力手段を通じて外部機器へと出力し、その後、情報入力手段により入力した第2の連続出力情報を、所定の出力方式に従う第2の信号として出力手段を通じて外部機器へと出力する信号出力手段(専用コントローラ911、GPIOインターフェース924)と、を作動可能な機能として有する。   Further, the main control processing means (main CPU 601) can output the first external output information (medal out command) as the external output information, and the first external output information should be output following the first external output information. It is possible to output 2 external output information (external output chain command, external output ON chain command, external output OFF chain command). The first communication unit (external output communication LSI 610A) is configured to perform first continuous output information (external output data) according to a predetermined output method based on the first external output information input from the main control processing unit. Continuous output information generation means for generating second continuous output information (data for external output) according to a predetermined output method based on the second external output information input from the main control processing means (Working area of dedicated controller 611A and cache memory 613A) and information for outputting the first continuous output information to the second communication means and thereafter outputting the second continuous output information to the second communication means And an output unit (dedicated controller 611A, second UART 616A) as an operable function. The second communication means (external terminal board control LSI 910) inputs the first continuous output information output from the information output means, and then inputs the second continuous output information (dedicated controller 911; The second UART 916) and the first continuous output information inputted by the information input means are outputted to the external device through the output means as a first signal in accordance with a predetermined output method, and then the second signal inputted by the information input means Signal output means (dedicated controller 911, GPIO interface 924) for outputting continuous output information as a second signal according to a predetermined output method to an external device through the output means is provided as an operable function.

また、主制御処理手段(メインCPU601)は、外部出力情報として、第1の外部出力情報(メダルアウトコマンド)を出力可能であるとともに、第1の外部出力情報に続いて所定時間経過後に外部出力すべき旨を示す遅延時間情報を含む第2の外部出力情報(外部出力OFFチェーンコマンド)を出力可能である。第1の通信手段(外部出力用通信LSI610A)は、主制御処理手段から入力した第2の外部出力情報に含まれる遅延時間情報に基づいて所定時間を計時する計時手段(専用コントローラ611A及びソフトウェアタイマ(4))と、主制御処理手段から入力した第1の外部出力情報に基づいて、所定の出力方式に応じた第1の連続出力情報(外部出力用データ)を生成し、その後、主制御処理手段から入力した第2の外部出力情報に基づいて、所定の出力方式に対応して外部出力待機状態を指示する第2の連続出力情報(外部出力用データ)を生成する一方、所定の出力方式に対応して外部出力有効状態を指示する第3の連続出力情報(外部出力用データ)を生成する連続出力情報生成手段(専用コントローラ611A及びキャッシュメモリ613Aのワーキングエリア)と、第1の連続出力情報を第2の通信手段へと出力し、その後、計時手段により所定時間の計時中、第2の連続出力情報を第2の通信手段へと出力する一方、計時手段による所定時間の計時が終了すると、第3の連続出力情報を第2の通信手段へと出力する情報出力手段(専用コントローラ611A、第2UART616A)と、を作動可能な機能として有する。第2の通信手段(外部端子板制御LSI910)は、情報出力手段から出力された第1の連続出力情報を入力し、その後、第2の連続出力情報を入力し、さらにその後、第3の連続出力情報を入力する情報入力手段(専用コントローラ911、第2UART916)と、情報入力手段により入力した第1の連続出力情報を、所定の出力方式に従う第1の信号として出力手段を通じて外部機器へと出力し、その後、情報入力手段により入力した第2の連続出力情報を、所定の出力方式に従う第2の信号として出力手段を通じて外部機器へと出力し、さらにその後、情報入力手段により入力した第3の連続出力情報を、所定の出力方式に従う第3の信号として出力手段を通じて外部機器へと出力する信号出力手段(専用コントローラ911、GPIOインターフェース924)と、を作動可能な機能として有する。   Further, the main control processing means (main CPU 601) can output the first external output information (medal out command) as the external output information, and outputs the external output after a predetermined time has elapsed following the first external output information. It is possible to output second external output information (external output OFF chain command) including delay time information indicating that it should be performed. The first communication means (external output communication LSI 610A) is a clock means (dedicated controller 611A and software timer) for measuring a predetermined time based on the delay time information included in the second external output information input from the main control processing means (4) and, based on the first external output information input from the main control processing means, generate first continuous output information (data for external output) according to a predetermined output method, and then the main control Based on the second external output information input from the processing means, while generating second continuous output information (data for external output) instructing the external output standby state corresponding to the predetermined output method, the predetermined output Means for generating continuous output information (dedicated controller 611A and cache memory) for generating third continuous output information (data for external output) instructing an external output valid state corresponding to the system. 613 A) and the first continuous output information to the second communication means, and then, while the predetermined time is being clocked by the clock means, the second continuous output information to the second communication means Information output means (dedicated controller 611A, second UART 616A) for outputting the third continuous output information to the second communication means when the clocking means finishes counting the predetermined time, as an operable function Have. The second communication means (external terminal board control LSI 910) receives the first continuous output information output from the information output means, and then receives the second continuous output information, and then the third continuous An information input unit (dedicated controller 911, second UART 916) for inputting output information, and a first continuous output information inputted by the information input unit are output to an external device through the output unit as a first signal according to a predetermined output method And then, the second continuous output information input by the information input unit is output to the external device through the output unit as a second signal according to a predetermined output method, and then, the third input input by the information input unit Signal output means for outputting continuous output information as a third signal according to a predetermined output method to an external device through the output means (dedicated controller 911, GP O interface 924), having as a possible operating functions.

また、主制御処理手段(メインCPU601)は、外部出力情報(外部出力ONコマンド、外部出力ONチェーンコマンド、セキュリティコマンド)に、外部出力オン状態の所定時間を示すON時間情報を含めて出力可能である。第1の通信手段(外部出力用通信LSI610A)は、主制御処理手段から入力した外部出力情報に含まれるON時間情報に基づいて所定時間を計時する計時手段(専用コントローラ611A及びソフトウェアタイマ(3),(5))と、主制御処理手段から入力した外部出力情報に基づいて、所定の出力方式に対応して外部出力オン状態を指示する第1の出力状態指示情報(外部出力用データ)を生成する一方、所定の出力方式に対応して第1の出力状態指示情報が生成される前の外部出力の状態維持または状態復帰を指示する第2の出力状態指示情報(外部出力用データ)を生成する出力状態指示情報生成手段(専用コントローラ611A及びキャッシュメモリ613Aのワーキングエリア)と、計時手段により所定時間の計時中、第1の出力状態指示情報を第2の通信手段へと出力する一方、計時手段による所定時間の計時が終了すると、第2の出力状態指示情報を第2の通信手段へと出力する情報出力手段(専用コントローラ611A、第2UART616A)と、を作動可能な機能として有する。第2の通信手段(外部端子板制御LSI910)は、情報出力手段から出力された第1の出力状態指示情報及び第2の出力状態指示情報を入力する情報入力手段(専用コントローラ911、第2UART916)と、情報入力手段により入力した第1の出力状態指示情報を、所定の出力方式に従う第1の信号として出力手段を通じて外部機器へと出力し、その後、情報入力手段により入力した第2の出力状態指示情報を、所定の出力方式に従う第2の信号として出力手段を通じて外部機器へと出力する信号出力手段(専用コントローラ911、GPIOインターフェース924)と、を作動可能な機能として有する。   Also, the main control processing means (main CPU 601) can output the external output information (external output ON command, external output ON chain command, security command) including ON time information indicating a predetermined time of the external output ON state. is there. The first communication means (external output communication LSI 610A) counts a predetermined time based on the ON time information included in the external output information input from the main control processing means (dedicated controller 611A and software timer (3) , (5) and the first output state instruction information (data for external output) for instructing the external output ON state corresponding to the predetermined output method based on the external output information input from the main control processing means Second output state indication information (data for external output) instructing the state maintenance or state return of the external output before the first output state indication information is generated corresponding to the predetermined output method while being generated The first state is generated during a predetermined time by the output state instruction information generating means (the working area of the dedicated controller 611A and the cache memory 613A) to be generated and the clocking means Information output means for outputting the second output state instruction information to the second communication means when the output state instruction information is outputted to the second communication means, while the clocking means finishes measuring the predetermined time 611A, and the second UART 616A) as an operable function. The second communication means (external terminal board control LSI 910) is an information input means (dedicated controller 911, second UART 916) for inputting the first output state indication information and the second output state indication information outputted from the information output means. And the first output state instruction information input by the information input means is output to the external device through the output means as a first signal according to a predetermined output method, and then the second output state inputted by the information input means Signal output means (dedicated controller 911, GPIO interface 924) for outputting instruction information as a second signal in accordance with a predetermined output method to an external device through the output means is provided as an operable function.

次に、図22〜28を参照して、メインROM602に記憶されている各種テーブル等の構成について説明する。メインROM602には、図柄配置テーブル、図柄コード、図柄組合せテーブル、ボーナス作動時テーブル、内部抽籤テーブル、内部当籤役決定テーブルが記憶されている。   Next, configurations of various tables and the like stored in the main ROM 602 will be described with reference to FIGS. The main ROM 602 stores a symbol arrangement table, a symbol code, a symbol combination table, a bonus operation table, an internal lottery table, and an internal winning combination determination table.

[図柄配置テーブル及び図柄コード]
図22(a)に示すように、図柄配置テーブルは、各リールの回転方向における各図柄の位置と、各位置に配された図柄の種類を特定するデータ(以下、図柄コード(図22(b)参照)とを規定している。
[Symbol arrangement table and symbol code]
As shown in FIG. 22 (a), the symbol arrangement table is data for specifying the position of each symbol in the rotational direction of each reel and the type of symbol arranged at each position (hereinafter referred to as symbol code (FIG. 22 (b )) Are defined.

図柄配置テーブルは、リールインデックスが検出されるときに表示窓4L,4C,4R内の中段(センターライン8上)に存在する図柄の位置を「0」として、リールの回転方向に進む順に、各図柄の位置に対して「0」〜「20」をそれぞれ割り当てている。したがって、リールインデックスが検出されてから図柄何個分の回転が行われたかを管理しつつ、図柄配置テーブルを参照することによって、主として表示窓4L,4C,4Rの中段に存在する図柄の位置及びその図柄の種類を常に管理することが可能である。   The symbol arrangement table sets the positions of symbols existing in the middle stage (on the center line 8) in the display windows 4L, 4C, 4R when the reel index is detected as "0", and proceeds in the direction of reel rotation in each order. “0” to “20” are assigned to the positions of the symbols, respectively. Therefore, by referring to the symbol arrangement table while managing how many symbols have been rotated since the reel index was detected, the positions of the symbols mainly present in the middle of the display windows 4L, 4C, 4R and It is possible to always manage the type of the symbol.

[図柄組合せテーブル]
本実施形態においては、入賞判定ラインとなるセンターライン8に沿って各リール3L,3C,3Rにより表示される図柄の組合せが、図柄組合せテーブルにより規定されている図柄の組合せと一致する場合に、メインCPU601により入賞と判定され、メダルの払い出し、再遊技の作動、ボーナスゲームの作動といった特典が遊技者に対して与えられる。
[Symbol combination table]
In the present embodiment, when the combination of symbols displayed by the respective reels 3L, 3C, 3R along the center line 8 serving as a winning judgment line matches the combination of symbols specified by the symbol combination table, The main CPU 601 determines that the game is a winning, and provides the player with benefits such as payout of medals, activation of replay, and activation of a bonus game.

図23に示すように、図柄組合せテーブルは、特典の種類に応じて予め定められた図柄の組合せと、表示役と、払出枚数とを規定している。表示役は、入賞判定ライン(センターライン8)に沿って表示された図柄の組合せを識別するデータである。   As shown in FIG. 23, the symbol combination table defines a combination of symbols, a display combination, and the number of payouts predetermined according to the type of benefit. The display combination is data for identifying a combination of symbols displayed along the winning determination line (center line 8).

表示役は、各ビットに対して固有の図柄の組合せが割り当てられた1バイトのデータとして表される。例えば、各リール3L,3C,3Rの図柄「ベル」が入賞判定ライン(センターライン8)に沿って表示されたとき、表示役として「ベル(00000010)」が決定される。   The display combination is represented as 1-byte data in which a unique symbol combination is assigned to each bit. For example, when the symbol "bell" of each of the reels 3L, 3C, 3R is displayed along the winning determination line (center line 8), "bell (00000010)" is determined as the display combination.

また、払出枚数として1以上の数値が決定された場合、メダルの払い出しが行われる。本実施形態では、表示役としてチェリー、ベル、又はスイカが決定されたときメダルの払い出しが行われる。また、払出枚数は、投入枚数に応じて規定されており、基本的に投入枚数が少ないときの方がより多くの払出枚数が決定される。   In addition, when one or more numerical values are determined as the number of payouts, the medals are paid out. In the present embodiment, medals are paid out when cherry, bell or watermelon is determined as the display role. Further, the number of dispensed sheets is defined in accordance with the number of inserted sheets, and basically, the number of dispensed sheets is determined when the number of inserted sheets is small.

また、表示役としてリプレイが決定されたとき、再遊技の作動が行われる。表示役としてBBが決定されたとき、ボーナスの作動が行われる。なお、入賞判定ライン(センターライン8)に沿って表示された図柄の組合せが、図柄組合せテーブルにより規定されている図柄の組合せの何れとも一致しない場合には、いわゆる「ハズレ」となる。   Further, when the replay is determined as the display combination, the replay is activated. When BB is determined as the display combination, the bonus is activated. When the combination of symbols displayed along the winning determination line (center line 8) does not match any of the combinations of symbols defined by the symbol combination table, it becomes a so-called "loss".

[ボーナス作動時テーブル]
図24に示すように、ボーナス作動時テーブルは、ボーナスの作動が行われるときに、メインRAM603に設けられた各種格納領域に格納するデータを規定している。
[Bonus activated table]
As shown in FIG. 24, the bonus operation table defines data to be stored in various storage areas provided in the main RAM 603 when the bonus operation is performed.

作動中フラグは、作動が行われるボーナスの種類を識別するためのデータである。本実施形態では、ボーナスの種類としてBB(第1種特別役物に係る役物連続作動装置)及びRB(第1種特別役物)を設けている。RBの作動は、BBの作動が行われている間、連続的に行われる。   The in-operation flag is data for identifying the type of bonus on which the operation is performed. In the present embodiment, as the types of bonus, BB (character continuous actuation device related to a first kind special character) and RB (first kind special character) are provided. The operation of RB is performed continuously while the operation of BB is performed.

BBの作動は、規定枚数に達するメダルの払い出しが行われた場合に終了する。RBの作動は、規定回数に達する遊技が行われた場合、規定回数に達する入賞があった場合、又は、BBの作動が終了した場合の何れかによって終了する。ボーナス終了枚数カウンタ、遊技可能回数カウンタ及び入賞可能回数カウンタは、ボーナスの終了契機となる上記規定枚数或いは上記規定回数に達したか否かを管理するためのデータである。   The operation of the BB ends when payout of medals reaching the specified number is performed. The operation of the RB ends either when the game reaches a specified number, when there is a prize reaching the specified number, or when the operation of the BB ends. The bonus end number counter, the possible game number counter and the possible game number counter are data for managing whether or not the specified number or the specified number of times serving as a bonus end trigger is reached.

より具体的には、ボーナス作動時テーブルにより規定されている数値が上記各カウンタに格納され、ボーナスの作動を通じてその減算が行われていく。その結果、各カウンタの値が「0」に更新されたことを条件に該当ボーナスの作動が終了する。   More specifically, the numerical value defined by the bonus operation time table is stored in each of the counters, and the subtraction is performed through the activation of the bonus. As a result, the operation of the corresponding bonus ends on condition that the value of each counter is updated to “0”.

[内部抽籤テーブル]
図25及び図26に示すように、内部抽籤テーブルとしては、一般遊技状態用内部抽籤テーブル及びRB作動中用内部抽籤テーブルが設けられている。内部抽籤テーブルは、当籤番号に応じて、データポインタと抽籤値とを規定している。データポインタは、内部抽籤テーブルを参照して行う抽籤の結果として取得されるデータであり、後述の内部当籤役決定テーブルにより規定されている内部当籤役を指定するためのデータである。データポインタには、小役・リプレイ用データポインタ及びボーナス用データポインタが設けられている。
[Internal lottery table]
As shown in FIGS. 25 and 26, as the internal lottery table, an internal lottery table for a general gaming state and an internal lottery table for RB operation are provided. The internal lottery table defines the data pointer and the lottery value according to the winning number. The data pointer is data acquired as a result of lottery performed with reference to the internal lottery table, and is data for specifying an internal winning combination defined by an internal winning combination determination table described later. The data pointer is provided with a small part / replay data pointer and a bonus data pointer.

本実施形態では、予め定められた数値の範囲「0〜65535」から抽出される乱数値を、各当籤番号に応じた抽籤値で順次減算し、減算の結果が負となったか否か(いわゆる「桁かり」が生じたか否か)の判定を行うことによって内部的な抽籤が行われる。これにより、抽籤値として規定されている数値が大きいほど、これが割り当てられたデータ(つまり、データポインタ)が決定される確率が高い。なお、各当籤番号の当籤確率は、「各当籤番号に対応する抽籤値/抽出される可能性のある全ての乱数値の個数(65536)」によって表すことができる。   In this embodiment, random numbers extracted from a predetermined numerical range “0 to 65535” are sequentially subtracted by a lottery value corresponding to each winning number, and the result of the subtraction becomes negative (so-called An internal lottery is performed by making a determination of "whether or not a digit" has occurred. Thus, the larger the numerical value defined as the lottery value, the higher the probability that the data to which it is assigned (that is, the data pointer) is determined. In addition, the winning probability of each winning number can be represented by “lottery value corresponding to each winning number / number of all random number values that may be extracted (65536)”.

また、本実施の形態では、ボーナスの作動が行われているか否かといった状況に応じて、複数種類の内部抽籤テーブル(図25の一般遊技状態用内部抽籤テーブル及び図26のRB作動中用内部抽籤テーブル)を使い分けることにより、決定される内部当籤役の種類や当籤確率を変動させ、この結果、遊技者が抱く期待に起伏が生じるようにしている。   Further, in the present embodiment, a plurality of types of internal lottery tables (the internal lottery table for the general gaming state of FIG. 25 and the internal for RB operation of FIG. 26 are used depending on the situation such as whether or not the bonus is activated). By properly using the lottery table), the type of the internal winning combination determined and the winning probability are changed, and as a result, the expectation held by the player is made uneven.

[内部当籤役決定テーブル]
図27及び図28に示すように、内部当籤役決定テーブルとしては、小役・リプレイ用内部当籤役決定テーブル及びボーナス用内部当籤役決定テーブルが設けられている。内部当籤役決定テーブルは、データポインタに応じて内部当籤役を規定している。データポインタが決定されると、内部当籤役が一義的に取得される構成となっている。
[Internal winning combination decision table]
As shown in FIGS. 27 and 28, as the internal winning combination determining table, a small winning combination / replay internal winning combination determining table and a bonus internal winning combination determining table are provided. The internal winning combination determination table defines an internal winning combination according to the data pointer. When the data pointer is determined, the internal winning combination is uniquely acquired.

内部当籤役は、入賞判定ライン(センターライン8)に沿って表示を許可する各リール3L,3C,3Rの図柄の組合せを識別するデータである。内部当籤役は、表示役と同様に、各ビットに対して固有の図柄の組合せが割り当てられた1バイトのデータとして表される。なお、データポインタが「0」のとき、内部当籤役の内容は「ハズレ」となるが、これは前述の図柄組合せテーブルにより規定されている図柄の組合せの表示が何れも許可されないことを示す。   The internal winning combination is data for identifying a combination of symbols of the respective reels 3L, 3C, 3R permitted to be displayed along the prize determination line (center line 8). The internal winning combination, like the display combination, is represented as 1-byte data in which a unique symbol combination is assigned to each bit. When the data pointer is "0", the content of the internal winning combination is "loss", which indicates that display of any combination of symbols specified by the above-mentioned symbol combination table is not permitted.

図27に示すように、小役・リプレイ用内部当籤役決定テーブルは、メダルの払い出しに係る内部当籤役又は再遊技の作動に係る内部当籤役を規定している。図28に示すように、ボーナス用内部当籤役決定テーブルは、ボーナスの作動に係る内部当籤役を規定している。   As shown in FIG. 27, the internal winning combination determination table for a small winning combination / replay defines an internal winning combination pertaining to the payout of medals or an internal winning combination pertaining to the operation of replay. As shown in FIG. 28, the bonus internal winning combination determination table defines an internal winning combination relating to the operation of the bonus.

次に、図29〜31を参照して、メインRAM603に設けられている各種格納領域の構成について説明する。メインRAM603には、内部当籤役格納領域、表示役格納領域、持越役格納領域、作動中フラグ格納領域が設けられている。   Next, configurations of various storage areas provided in the main RAM 603 will be described with reference to FIGS. The main RAM 603 is provided with an internal winning combination storing area, a display combination storing area, a carryover combination storing area, and an in-operation flag storage area.

[内部当籤役格納領域]
図29に示すように、内部当籤役格納領域は、前述の1バイトのデータにより表される内部当籤役を格納する。ビットに「1」が立っているとき、該当する図柄の組合せの表示が許可される。全ビットが「0」であるとき、その内容はハズレとなる。なお、メインRAM603には、前述の表示役が格納される表示役格納領域が設けられている。表示役格納領域の構成は、内部当籤役格納領域の構成と同様となっている。ビットに「1」が立っているとき、該当する図柄の組合せが入賞判定ライン(センターライン8)に沿って表示されたことになる。
[Internal winning combination storage area]
As shown in FIG. 29, the internal winning combination storing area stores an internal winning combination represented by the aforementioned 1 byte data. When the bit is "1", the display of the corresponding symbol combination is permitted. When all bits are "0", the content is lost. The main RAM 603 is provided with a display combination storage area in which the above-mentioned display combination is stored. The configuration of the display combination storage area is the same as the configuration of the internal winning combination storage area. When the bit "1" stands, the corresponding symbol combination is displayed along the winning determination line (center line 8).

[持越役格納領域]
図30に示すように、持越役格納領域は、前述の抽籤の結果、ボーナスの作動に係る内部当籤役が決定されたときにこれを格納する。持越役格納領域に格納されたボーナスの作動に係る内部当籤役(以下、持越役)は、対応する図柄の組合せが入賞判定ライン(センターライン8)に表示されるまで、その内容がクリアされずに保持される構成となっている。そして、持越役格納領域に持越役が格納されている間は、前述の抽籤の結果にかかわらず、これが内部当籤役格納領域に格納される。
[Hold over part storage area]
As shown in FIG. 30, the carryover combination storage area stores therein an internal winning combination associated with the activation of the bonus as a result of the above-described lottery. The internal winning combination (hereinafter referred to as a carryover combination) related to the operation of the bonus stored in the carryover combination storage area is not cleared until its corresponding symbol combination is displayed on the prize determination line (centerline 8). Is configured to be held by the Then, while the carryover combination is stored in the carryover combination storage area, it is stored in the internal winning combination storage area regardless of the result of the above-mentioned lottery.

[作動中フラグ格納領域]
図31に示すように、作動中フラグ格納領域は、1バイトからなる作動中フラグを格納する。作動中フラグは、各ビットに対して固有のボーナスが割り当てられている。ビットに「1」が立っているとき、該当するボーナスの作動が行われている。なお、本実施形態においては、全ビットが「0」であるときの状態を一般遊技状態と定義する。
[Operation flag storage area]
As shown in FIG. 31, the in-operation flag storage area stores an in-operation flag consisting of 1 byte. The active flag is assigned a unique bonus for each bit. When the bit is set to "1", the corresponding bonus is activated. In the present embodiment, a state where all bits are “0” is defined as a general gaming state.

次に、図32〜38、図69〜72を参照して、主制御回路60のメインCPU601により実行される処理について説明する。なお、図69〜72に示す処理は、特にコマンドの外部出力に関する処理であり、これらの処理については後述する。   Next, processing executed by the main CPU 601 of the main control circuit 60 will be described with reference to FIGS. 32-38 and 69-72. The processes shown in FIGS. 69 to 72 are particularly processes relating to external output of commands, and these processes will be described later.

[メインCPUの制御によるメインフローチャート]
図32は、メインCPU601の制御によるメインフローチャートを示す。図32に示すように、パチスロ1に電源が投入されると、はじめに、メインCPU601は、初期化処理を行う(S1)。
[Main flowchart by control of main CPU]
FIG. 32 shows a main flowchart under the control of the main CPU 601. As shown in FIG. 32, when the pachi slot 1 is powered on, the main CPU 601 first performs initialization processing (S1).

次に、メインCPU601は、メインRAM603における指定格納領域のクリアを行う(S2)。例えば、内部当籤役格納領域や表示役格納領域等、1回の遊技ごとに消去が必要となる格納領域に格納されたデータがクリアされる。   Next, the main CPU 601 clears the designated storage area in the main RAM 603 (S2). For example, data stored in a storage area such as an internal winning combination storing area, a display combination storing area, etc. which needs to be erased for each game is cleared.

次に、メインCPU601は、図33を参照して説明するメダル受付・スタートチェック処理を行う(S3)。この処理では、メダルセンサやスタートスイッチの入力のチェック等が行われる。   Next, the main CPU 601 performs medal acceptance / start check processing described with reference to FIG. 33 (S3). In this process, the input of the medal sensor and the start switch is checked.

次に、メインCPU601は、乱数値を抽出し、メインRAM603に設けられた乱数値格納領域に格納する(S4)。   Next, the main CPU 601 extracts random number values and stores them in the random number value storage area provided in the main RAM 603 (S4).

次に、メインCPU601は、図34を参照して説明する内部抽籤処理を行う(S5)。この処理では、乱数値に基づいた抽籤により内部当籤役の決定が行われる。   Next, the main CPU 601 performs internal lottery processing described with reference to FIG. 34 (S5). In this process, the internal winning combination is determined by lottery based on random number values.

次に、メインCPU601は、スタートコマンドを副制御回路70に対して送信する(S6)。スタートコマンドは、内部当籤役等を特定するパラメータを含んで構成される。スタートコマンドは、メインCPU601内の第1UART601Aから主基板通信LSI610及び副基板通信LSI710を通じてサブCPU701に供給される。   Next, the main CPU 601 transmits a start command to the sub control circuit 70 (S6). The start command is configured to include a parameter specifying an internal winning combination and the like. The start command is supplied from the first UART 601A in the main CPU 601 to the sub CPU 701 through the main substrate communication LSI 610 and the sub substrate communication LSI 710.

次に、メインCPU601は、全リール3L,3C,3Rの回転開始を要求する(S7)。なお、全リール3L,3C,3Rの回転開始が要求されると、一定の周期(1.1173msec)で実行される割込処理(図38参照)によってステッピングモータ50L,50C,50Rの駆動が制御され、各リール3L,3C,3Rの回転が開始される。   Next, the main CPU 601 requests the start of rotation of all the reels 3L, 3C, 3R (S7). When the start of rotation of all the reels 3L, 3C, 3R is requested, the driving of the stepping motors 50L, 50C, 50R is controlled by the interrupt process (see FIG. 38) executed in a fixed cycle (1.1173 msec). The rotation of each reel 3L, 3C, 3R is started.

次に、メインCPU601は、図69を参照して後述する外部出力用メダルインコマンド登録処理を行う(S8)。この処理では、外部出力すべきメダルインコマンドに係るコマンドがセットされる。   Next, the main CPU 601 performs an external output medal in command registration process described later with reference to FIG. 69 (S8). In this process, a command related to the medal in command to be output to the outside is set.

次に、メインCPU601は、図35を参照して説明するリール停止制御処理を行う(S9)。この処理では、ストップスイッチ7LS,7CS,7RSの入力のチェックが行われ、ストップボタン17L,17C,17Rが押されたタイミングと内部当籤役とに基づいて該当リール3L,3C,3Rの回転が停止される。   Next, the main CPU 601 performs reel stop control processing described with reference to FIG. 35 (S9). In this process, the input of the stop switches 7LS, 7CS, 7RS is checked, and the rotation of the corresponding reels 3L, 3C, 3R is stopped based on the timing when the stop buttons 17L, 17C, 17R are pressed and the internal winning combination. Be done.

次に、メインCPU601は、入賞判定ライン(センターライン8)に沿って表示された図柄の組合せを検索し、その結果に基づいて払出枚数等を決定する(S10)。検索の結果、入賞判定ライン(センターライン8)に沿って表示された図柄の組合せが図柄組合せテーブルにより規定されている図柄の組合せと一致する場合、対応する表示役及び払出枚数が決定される。   Next, the main CPU 601 searches for a combination of symbols displayed along the winning determination line (center line 8), and determines the number of payouts and the like based on the result (S10). If the combination of symbols displayed along the winning determination line (center line 8) matches the combination of symbols defined by the symbol combination table as a result of the search, the corresponding display combination and the number of payouts are determined.

次に、メインCPU601は、表示コマンドを副制御回路70に対して送信する(S11)。表示コマンドは、表示役や払出枚数等を特定するパラメータを含んで構成される。表示コマンドは、メインCPU601内の第1UART601Aから主基板通信LSI610及び副基板通信LSI710を通じてサブCPU701に供給される。   Next, the main CPU 601 transmits a display command to the sub control circuit 70 (S11). The display command is configured to include parameters for specifying a display combination, the number of payouts and the like. The display command is supplied from the first UART 601 A in the main CPU 601 to the sub CPU 701 through the main substrate communication LSI 610 and the sub substrate communication LSI 710.

次に、メインCPU601は、図70を参照して後述する外部出力用メダルアウトコマンド登録処理を行う(S12)。この処理では、外部出力すべきメダルアウトコマンドに係るコマンドがセットされる。   Next, the main CPU 601 performs an external output medal out command registration process described later with reference to FIG. 70 (S12). In this process, a command related to the medal out command to be output to the outside is set.

次に、メインCPU601は、メダル払出処理を行う(S13)。決定された払出枚数に基づいて、ホッパー装置34の駆動やクレジット枚数の更新が行われる。   Next, the main CPU 601 performs medal payout processing (S13). The driving of the hopper device 34 and the update of the number of credits are performed based on the determined number of payouts.

次に、メインCPU601は、払出枚数に基づいて、ボーナス終了枚数カウンタを更新する(S14)。払出枚数として決定された数値がボーナス終了枚数カウンタから減算される。   Next, the main CPU 601 updates the bonus end number counter based on the payout number (S14). A value determined as the number of payouts is subtracted from the bonus end number counter.

次に、メインCPU601は、ボーナス作動中フラグがオンであるか否かを判別する(S15)。メインCPU601は、ボーナス作動中フラグがオンであると判別したときには、図37を参照して説明するボーナス終了チェック処理を行う(S16)。ボーナス終了チェック処理では、ボーナスの終了契機を管理するための各種カウンタを参照して、ボーナスの作動を終了するか否かがチェックされる。   Next, the main CPU 601 determines whether or not the bonus in-operation flag is on (S15). When the main CPU 601 determines that the flag under bonus operation is on, the main CPU 601 performs a bonus end check process described with reference to FIG. 37 (S16). In the bonus end check process, it is checked whether or not to end the bonus operation with reference to various counters for managing the bonus end trigger.

メインCPU601は、S16の後、又は、S15においてボーナス作動中フラグがオンではないと判別したときには、図36を参照して説明するボーナス作動チェック処理を行う(S17)。ボーナス作動チェック処理では、ボーナスの作動を開始するか否かがチェックされる。この処理が終了すると、メインCPU601は、S2に移る。   After S16 or when determining that the flag under bonus operation is not on in S15, the main CPU 601 performs a bonus operation check process described with reference to FIG. 36 (S17). In the bonus operation check process, it is checked whether or not to start the bonus operation. When this process ends, the main CPU 601 shifts to S2.

[メダル受付・スタートチェック処理]
図33は、メインCPU601によるメダル受付・スタートチェック処理を示す。図33に示すように、メインCPU601は、自動投入カウンタは0であるか否かを判別する(S31)。メインCPU601は、自動投入カウンタは0であると判別したときには、メダル通過許可を行う(S32)。これにより、セレクタ51のソレノイドの駆動が行われ、セレクタ内のメダルの通過が促される。
[Medal acceptance and start check processing]
FIG. 33 shows medal acceptance / start check processing by the main CPU 601. As shown in FIG. 33, the main CPU 601 determines whether the automatic insertion counter is 0 or not (S31). When the main CPU 601 determines that the automatic insertion counter is 0, the main CPU 601 permits medal passage (S32). Thereby, the solenoid of the selector 51 is driven, and the passage of the medal in the selector is prompted.

メインCPU601は、自動投入カウンタは0ではないと判別したときには、自動投入カウンタを投入枚数カウンタに複写する(S33)。次に、メインCPU601は、自動投入カウンタをクリアする(S34)。S33及びS34は、再遊技を行うための処理である。   When the main CPU 601 determines that the automatic insertion counter is not 0, the main CPU 601 copies the automatic insertion counter to the insertion number counter (S33). Next, the main CPU 601 clears the automatic closing counter (S34). S33 and S34 are processes for performing re-game.

メインCPU601は、S32又はS34の後で、投入枚数カウンタの最大値として3をセットする(S35)。次に、メインCPU601は、ボーナス作動中フラグがオンであるか否かを判別する(S36)。メインCPU601は、ボーナス作動中フラグがオンであると判別したときには、投入枚数カウンタの最大値を変更する(S37)。例えば、最大値が2に変更される。   After S32 or S34, the main CPU 601 sets 3 as the maximum value of the insertion number counter (S35). Next, the main CPU 601 determines whether or not the bonus in-operation flag is on (S36). When the main CPU 601 determines that the flag under bonus operation is on, the main CPU 601 changes the maximum value of the insertion number counter (S37). For example, the maximum value is changed to 2.

メインCPU601は、S37の後、又は、S36においてボーナス作動中フラグがオンではないと判別したときには、メダルの通過は検出されたか否かを判別する(S38)。メインCPU601は、メダルの通過は検出されたと判別したときには、投入枚数カウンタは最大値に達したか否かを判別する(S39)。メインCPU601は、投入枚数カウンタは最大値に達していないと判別したときには、投入枚数カウンタを1加算する(S40)。   After S37, or when determining that the bonus in-operation flag is not on in S36 after S37, the main CPU 601 determines whether or not passage of the medal has been detected (S38). When the main CPU 601 determines that the passage of the medal has been detected, the main CPU 601 determines whether the inserted number counter has reached the maximum value (S39). When the main CPU 601 determines that the insertion number counter has not reached the maximum value, the main CPU 601 adds 1 to the insertion number counter (S40).

次に、メインCPU601は、有効ラインカウンタに5を格納する(S41)。次に、メインCPU601は、メダル投入コマンドを副制御回路70に対して送信する(S42)。メダル投入コマンドは、投入枚数等を特定するためのパラメータを含んで構成されている。メダル投入コマンドは、メインCPU601内の第1UART601Aから主基板通信LSI610及び副基板通信LSI710を通じてサブCPU701に供給される。   Next, the main CPU 601 stores 5 in the valid line counter (S41). Next, the main CPU 601 transmits a medal insertion command to the sub control circuit 70 (S42). The medal insertion command is configured to include parameters for specifying the number of inserted cards and the like. The medal insertion command is supplied from the first UART 601A in the main CPU 601 to the sub CPU 701 through the main board communication LSI 610 and the sub board communication LSI 710.

メインCPU601は、S39において投入枚数カウンタは最大値であると判別したときには、クレジットカウンタを1加算する(S43)。メインCPU601は、S43の後、S42の後、又は、S38においてメダルの通過が検出されていないと判別したときには、ベットスイッチ13Sのチェックを行う(S44)。これにより、ベットボタン12に対応する数値が投入枚数カウンタに加算される一方でクレジットカウンタから減算される。   When the main CPU 601 determines that the insertion number counter is the maximum value in S39, the main CPU 601 adds 1 to the credit counter (S43). After S43, after S42, or when determining that passage of medals has not been detected in S38 after S43, the main CPU 601 checks the bet switch 13S (S44). As a result, the numerical value corresponding to the bet button 12 is added to the insertion number counter while being subtracted from the credit counter.

次に、メインCPU601は、投入枚数カウンタは最大値に達したか否かを判別する(S45)。メインCPU601は、投入枚数カウンタは最大値に達していないと判別したときには、S38に移る一方で、投入枚数カウンタは最大値に達したと判別したときには、スタートスイッチ6Sはオンであるか否かを判別する(S46)。   Next, the main CPU 601 determines whether the insertion number counter has reached the maximum value (S45). If the main CPU 601 determines that the insertion number counter has not reached the maximum value, it proceeds to S38, while if it determines that the insertion number counter has reached the maximum value, whether the start switch 6S is on or not It discriminates (S46).

メインCPU601は、スタートスイッチ6Sはオンではないと判別したときには、S38に移る一方で、スタートスイッチ6Sはオンであると判別したときには、メダル通過禁止を行う(S47)。セレクタ51のソレノイドの駆動が行われず、メダルの排出が促される。この処理が終了すると、メインCPU601は、メダル受付・スタートチェック処理を終了する。   When the main CPU 601 determines that the start switch 6S is not turned on, it proceeds to S38, and when it determines that the start switch 6S is turned on, it prohibits medal passage (S47). The solenoid of the selector 51 is not driven, and discharge of the medal is prompted. When this process ends, the main CPU 601 ends the medal acceptance / start check process.

[内部抽籤処理]
図34は、メインCPU601による内部抽籤処理を示す。図34に示すように、メインCPU601は、内部抽籤テーブル及び抽籤回数を決定する(S61)。これにより、作動中フラグ格納領域が参照され、ボーナスの作動の有無等に応じて、内部抽籤テーブル及び抽籤回数が決定される。なお、抽籤回数は、内部抽籤テーブルにより規定された各当籤番号について、抽籤値の減算及び桁かりが生じたか否かの判定を行う回数を示す。
[Internal lottery process]
FIG. 34 shows an internal lottery process by the main CPU 601. As shown in FIG. 34, the main CPU 601 determines the internal lottery table and the number of times of lottery (S61). Thus, the in-operation flag storage area is referred to, and the internal lottery table and the number of times of lottery are determined in accordance with the presence or absence of the bonus operation or the like. The lottery number indicates the number of times the subtraction of the lottery value and the determination as to whether or not the digit has occurred for each winning number defined by the internal lottery table.

次に、メインCPU601は、乱数値格納領域に格納されている乱数値を取得し、判定用乱数値としてセットする(S62)。次に、メインCPU601は、当籤番号の初期値として1をセットする(S63)。   Next, the main CPU 601 acquires the random number value stored in the random number value storage area, and sets it as a determination random number value (S62). Next, the main CPU 601 sets 1 as an initial value of the winning number (S63).

次に、メインCPU601は、内部抽籤テーブルを参照し、当籤番号に対応する抽籤値を取得する(S64)。次に、メインCPU601は、判定用乱数値から抽籤値を減算する(S65)。次に、メインCPU601は、桁かりが行われたか否かを判別する(S66)。メインCPU601は、桁かりが行われていないと判別したときには、抽籤回数を1減算し、当籤番号を1加算する(S67)。   Next, the main CPU 601 refers to the internal lottery table, and acquires a lottery value corresponding to the winning number (S64). Next, the main CPU 601 subtracts the lottery value from the determination random number value (S65). Next, the main CPU 601 determines whether or not digitization has been performed (S66). When the main CPU 601 determines that the digit is not performed, the main CPU 601 subtracts one from the number of lotteries and adds one to the winning number (S67).

次に、メインCPU601は、抽籤回数は0であるか否かを判別する(S68)。メインCPU601は、抽籤回数は0ではないと判別したときには、S64に移る一方で、抽籤回数は0であると判別したときには、小役・リプレイ用データポインタとして0をセットし、ボーナス用データポインタとして0をセットする(S69)。   Next, the main CPU 601 determines whether the number of lotteries is 0 (S68). When the main CPU 601 determines that the number of lotteries is not 0, it shifts to S64, while when it is determined that the number of lotteries is 0, it sets 0 as the data pointer for small winning combination and replay and as the data pointer for bonus 0 is set (S69).

メインCPU601は、S66において桁かりが行われたと判別したときには、現在の当籤番号に応じて、小役・リプレイ用データポインタ及びボーナス用データポインタを取得する(S70)。メインCPU601は、S70又はS69の後で、小役・リプレイ用内部当籤役決定テーブルを参照し、小役・リプレイ用データポインタに基づいて内部当籤役を取得する(S71)。   When the main CPU 601 determines in S66 that the digit has been set, the main CPU 601 acquires a small winning combination / replay data pointer and a bonus data pointer according to the current winning number (S70). After S70 or S69, the main CPU 601 refers to the small winning combination / replay internal winning combination determination table, and acquires an internal winning combination based on the small winning combination / replay data pointer (S71).

次に、メインCPU601は、取得した内部当籤役を内部当籤役格納領域に格納する(S72)。次に、メインCPU601は、持越役格納領域に格納されているデータは0であるか否かを判別する(S73)。メインCPU601は、持越役格納領域に格納されているデータは0であると判別したときは、ボーナス用内部当籤役決定テーブルを参照し、ボーナス用データポインタに基づいて内部当籤役を取得する(S74)。次に、メインCPU601は、取得した内部当籤役を持越役格納領域に格納する(S75)。   Next, the main CPU 601 stores the acquired internal winning combination in the internal winning combination storage area (S72). Next, the main CPU 601 determines whether the data stored in the carryover combination storage area is 0 (S73). When the main CPU 601 determines that the data stored in the carryover combination storage area is 0, the main CPU 601 refers to the bonus internal winning combination determination table and acquires an internal winning combination based on the bonus data pointer (S74) ). Next, the main CPU 601 stores the acquired internal winning combination in the carryover combination storage area (S75).

メインCPU601は、S75の後、又は、S73において持越役格納領域に格納されているデータは0ではないと判別したときには、持越役格納領域と内部当籤役格納領域との論理和をとり、その結果を内部当籤役格納領域に格納する(S76)。これにより、ボーナスの作動に係る内部当籤役の持ち越しが行われる。この処理が終了すると、メインCPU601は、内部抽籤処理を終了する。   After S75, or when it is determined that the data stored in the carryover combination storage area is not 0 after S75, the main CPU 601 ORs the carryover combination storage area and the internal winning combination storage area, and the result is Are stored in the internal winning combination storing area (S76). As a result, the internal winning combination associated with the activation of the bonus is carried over. When this process ends, the main CPU 601 ends the internal lottery process.

[リール停止制御処理]
図35は、メインCPU601によるリール停止制御処理を示す。図35に示すように、メインCPU601は、有効なストップボタン17L,17C,17Rが押されたか否かを判別する(S101)。メインCPU601は、有効なストップボタン17L,17C,17Rが押されていないと判別したときには、これが押されるまで待機する。
[Reel stop control processing]
FIG. 35 shows a reel stop control process by the main CPU 601. As shown in FIG. 35, the main CPU 601 determines whether or not the valid stop buttons 17L, 17C, 17R have been pressed (S101). When the main CPU 601 determines that the valid stop buttons 17L, 17C, and 17R are not pressed, the main CPU 601 stands by until this button is pressed.

メインCPU601は、有効なストップボタン17L,17C,17Rが押されたと判別したときには、該当するストップボタン17L,17C,17Rの操作を無効化する(S102)。各ストップボタン17L,17C,17Rの有効及び無効の状態は、メインRAM603に設けられた所定の格納領域において管理される。   When the main CPU 601 determines that the valid stop button 17L, 17C, 17R is pressed, the main CPU 601 invalidates the operation of the corresponding stop button 17L, 17C, 17R (S102). The valid and invalid states of the respective stop buttons 17L, 17C, 17R are managed in a predetermined storage area provided in the main RAM 603.

次に、メインCPU601は、チェック回数として5をセットする(S103)。本実施形態では、滑りコマ数の最大数を「4」としていることから、ストップボタン17L,17C,17Rが押されたときに該当表示窓4L,4C,4Rの中段にある図柄の位置を含め、そこから4コマ先の図柄の位置までがチェックの対象となる。つまり、「0」、「1」、「2」、「3」及び「4」の5つの数値の何れかが滑りコマ数として決定される。   Next, the main CPU 601 sets 5 as the number of checks (S103). In this embodiment, since the maximum number of sliding symbols is “4”, the positions of the symbols in the middle of the corresponding display windows 4L, 4C, 4R when the stop buttons 17L, 17C, 17R are pressed are included. , From there to the position of the symbol four points ahead will be the target of the check. That is, any one of five numerical values “0”, “1”, “2”, “3” and “4” is determined as the number of sliding symbols.

次に、メインCPU601は、内部当籤役に基づいて、ストップボタン17L,17C,17Rが押されたときに対応する表示窓4L,4C,4Rの中段にある図柄の位置(以下、停止開始位置)を含めたチェック回数の範囲内にある各図柄の位置の中で、最も優先順位の高い図柄の位置を検索する(S104)。この処理では、内部当籤役によって表示が許可されている図柄の組合せを、入賞判定ライン(センターライン8)に沿って表示することが可能となる図柄の位置が、最も優先順位の高い図柄の位置として決定される。   Next, based on the internal winning combination, the main CPU 601 positions the symbols in the middle of the display windows 4L, 4C, 4R corresponding to when the stop buttons 17L, 17C, 17R are pressed (hereinafter, stop start positions) Among the positions of each symbol within the range of the number of checks including, the position of the symbol with the highest priority is searched (S104). In this process, the position of the symbol at which the position of the symbol capable of displaying the combination of symbols permitted to be displayed by the internal winning combination along the prize determination line (center line 8) is the highest priority position It is determined as

次に、メインCPU601は、検索の結果に基づいて滑りコマ数を決定する(S105)。停止開始位置から上記最も優先順位の高い図柄の位置までの図柄の個数が滑りコマ数として決定される。次に、メインCPU601は、停止予定位置待ちへ移行する(S106)。停止予定位置待ちへ移行すると、後述の割込処理によってステッピングモータ50L,50C,50Rの駆動が制御され、最も優先順位の高い図柄の位置が対応する表示窓4L,4C,4Rの中段に到達するのを待って該当リール3L,3C,3Rの回転が停止される。   Next, the main CPU 601 determines the number of sliding symbols based on the search result (S105). The number of symbols from the stop start position to the position of the highest priority symbol is determined as the number of sliding symbols. Next, the main CPU 601 shifts to waiting for a planned stop position (S106). When the process shifts to waiting for a planned stop position, the driving of the stepping motors 50L, 50C, 50R is controlled by interrupt processing described later, and the position of the highest priority symbol reaches the middle row of the corresponding display windows 4L, 4C, 4R. The rotation of the corresponding reels 3L, 3C, 3R is stopped.

次に、メインCPU601は、リール停止コマンドを副制御回路70に対して送信する(S107)。リール停止コマンドは、停止したリールの種別等を特定するパラメータを含んで構成されている。リール停止コマンドは、メインCPU601内の第1UART601Aから主基板通信LSI610及び副基板通信LSI710を通じてサブCPU701に供給される。   Next, the main CPU 601 transmits a reel stop command to the sub control circuit 70 (S107). The reel stop command is configured to include parameters that specify the type and the like of the stopped reel. The reel stop command is supplied from the first UART 601A in the main CPU 601 to the sub CPU 701 through the main board communication LSI 610 and the sub board communication LSI 710.

次に、メインCPU601は、操作が有効なストップボタン17L,17C,17Rがあるか否かを判別する(S108)。つまり、まだ回転中のリール3L,3C,3Rがあるか否かが判別される。メインCPU601は、操作が有効なストップボタン17L,17C,17Rがあると判別したときには、S101に移る一方で、操作が有効なストップボタン17L,17C,17Rがないと判別したときには、リール停止制御処理を終了する。   Next, the main CPU 601 determines whether there is a stop button 17L, 17C or 17R for which the operation is valid (S108). That is, it is determined whether or not there are reels 3L, 3C, 3R still rotating. When the main CPU 601 determines that there is a stop button 17L, 17C, 17R that is valid, the process proceeds to S101, while when it determines that there is no stop button 17L, 17C, 17R that is valid, the reel stop control process Finish.

[ボーナス作動チェック処理]
図36は、メインCPU601によるボーナス作動チェック処理を示す。図36に示すように、メインCPU601は、表示役はBBであるか否かを判別する(S121)。メインCPU601は、表示役はBBであると判別したときには、ボーナス作動時テーブルを参照し、BB作動時処理を行う(S122)。この処理では、BB作動中フラグがオンにされ、ボーナス終了枚数カウンタに所定値がセットされる。
[Bonus operation check process]
FIG. 36 shows a bonus operation check process by the main CPU 601. As shown in FIG. 36, the main CPU 601 determines whether the display combination is BB or not (S121). When the main CPU 601 determines that the display combination is BB, the main CPU 601 refers to the bonus operation table and performs BB operation processing (S122). In this process, the flag under BB operation is turned on, and a predetermined value is set in the bonus end number counter.

次に、メインCPU601は、持越役格納領域をクリアする(S123)。次に、メインCPU601は、ボーナス開始コマンドを副制御回路に対して送信する(S124)。ボーナス開始コマンドは、メインCPU601内の第1UART601Aから主基板通信LSI610及び副基板通信LSI710を通じてサブCPU701に供給される。この処理が終了すると、メインCPU601は、ボーナス作動チェック処理を終了する。   Next, the main CPU 601 clears the carryover combination storage area (S123). Next, the main CPU 601 transmits a bonus start command to the sub control circuit (S124). The bonus start command is supplied from the first UART 601A in the main CPU 601 to the sub CPU 701 through the main substrate communication LSI 610 and the sub substrate communication LSI 710. When this process ends, the main CPU 601 ends the bonus operation check process.

メインCPU601は、S121において表示役はBBではないと判別したときには、表示役はリプレイであるか否かを判別する(S125)。メインCPU601は、表示役はリプレイであると判別したときには、投入枚数カウンタの値を自動投入カウンタに複写する(S126)。   When the main CPU 601 determines that the display combination is not BB in S121, the main CPU 601 determines whether the display combination is a replay (S125). When the main CPU 601 determines that the display combination is replay, the main CPU 601 copies the value of the insertion number counter to the automatic insertion counter (S126).

メインCPU601は、S125において表示役はリプレイではないと判別したときには、BB作動中フラグはオンであるか否かを判別する(S127)。メインCPU601は、BB作動中フラグはオンではないと判別したときには、ボーナス作動チェック処理を終了する一方で、BB作動中フラグはオンであると判別したときには、RB作動中フラグはオンであるか否かを判別する(S128)。   When the main CPU 601 determines that the display combination is not replaying in S125, the main CPU 601 determines whether the flag under BB operation is on (S127). When the main CPU 601 determines that the flag under BB operation is not on, it ends the bonus operation check process, while when determining that the flag under BB operation is on, the flag under RB operation is on or not. It is determined (S128).

メインCPU601は、RB作動中フラグはオンであると判別したときには、ボーナス作動チェック処理を終了する一方で、RB作動中フラグはオンではないと判別したときには、ボーナス作動時テーブルを参照し、RB作動時処理を行う(S129)。この処理では、RB作動中フラグがオンにされ、入賞可能回数カウンタ及び遊技可能回数カウンタに所定値がセットされる。この処理が終了すると、メインCPU601は、ボーナス作動チェック処理を終了する。   When the main CPU 601 determines that the flag under RB operation is on, it ends the bonus operation check process, while when determining that the flag under RB operation is not on, it refers to the bonus operation table and performs RB operation. The hour process is performed (S129). In this process, the RB in-operation flag is turned on, and predetermined values are set in the possible number-of-money counter and the possible number-of-games counter. When this process ends, the main CPU 601 ends the bonus operation check process.

[ボーナス終了チェック処理]
図37は、メインCPU601によるボーナス終了チェック処理を示す。図37に示すように、メインCPU601は、ボーナス終了枚数カウンタは0であるか否かを判別する(S141)。メインCPU601は、ボーナス終了枚数カウンタは0であると判別したときには、BB終了時処理を行う(S142)。この処理では、BB作動中フラグ及びRB作動中フラグがオフされ、ボーナスの終了契機を管理するための各種カウンタがクリアされる。次に、メインCPU601は、ボーナス終了コマンドを副制御回路70に対して送信する(S143)。ボーナス終了コマンドは、メインCPU601内の第1UART601Aから主基板通信LSI610及び副基板通信LSI710を通じてサブCPU701に供給される。この処理が終了すると、メインCPU601は、ボーナス終了チェック処理を終了する。
[Bonus end check processing]
FIG. 37 shows a bonus end check process by the main CPU 601. As shown in FIG. 37, the main CPU 601 determines whether the bonus end number counter is 0 or not (S141). When the main CPU 601 determines that the bonus end number counter is 0, the main CPU 601 performs a BB end processing (S142). In this process, the flag under BB operation and the flag under RB operation are turned off, and various counters for managing an end trigger of the bonus are cleared. Next, the main CPU 601 transmits a bonus end command to the sub control circuit 70 (S143). The bonus end command is supplied from the first UART 601A in the main CPU 601 to the sub CPU 701 through the main substrate communication LSI 610 and the sub substrate communication LSI 710. When this process ends, the main CPU 601 ends the bonus end check process.

メインCPU601は、S141においてボーナス終了枚数カウンタは0ではないと判別したときには、入賞可能回数カウンタ又は遊技可能回数カウンタを更新する(S144)。これにより、遊技可能回数カウンタが1減算され、また、入賞が有った場合に入賞可能回数カウンタが1減算される。次に、メインCPU601は、入賞可能回数カウンタ又は遊技可能回数カウンタは0であるか否かを判別する(S145)。   When the main CPU 601 determines that the bonus end number counter is not 0 in S141, the main CPU 601 updates the possible number-of-winnings counter or the possible number-of-games counter (S144). As a result, the possible game number counter is decremented by one, and when there is a winning, the possible symbol counter is decremented by one. Next, the main CPU 601 determines whether the number-of-winning possible counter or the number-of-playable counter is 0 (S145).

メインCPU601は、入賞可能回数カウンタ又は遊技可能回数カウンタは0ではないと判別したときには、ボーナス終了チェック処理を終了する一方で、入賞可能回数カウンタ又は遊技可能回数カウンタは0であると判別したときには、RB終了時処理を行う(S146)。この処理では、RB作動中フラグがオフされ、入賞可能回数カウンタ及び遊技可能回数カウンタがクリアされる。この処理が終了すると、メインCPU601は、ボーナス終了チェック処理を終了する。   When the main CPU 601 determines that the possible wins counter or the possible games counter is not 0, it ends the bonus end check processing, while it determines that the possible wins counter or the possible games counter is 0, The process at the end of RB is performed (S146). In this process, the RB in-operation flag is turned off, and the possible prize number counter and the possible game number counter are cleared. When this process ends, the main CPU 601 ends the bonus end check process.

[メインCPUの制御による割込処理(1.1172msec)]
図38は、メインCPU601による割込処理を示す。このメインCPU601による割込処理は、所定の周期(本実施形態では、1.1173ミリ秒)毎に実行される処理である。図38に示すように、メインCPU601は、この割込処理を呼び出す前に実行されているプログラムを中断し、その中断した位置を示すアドレス、各種レジスタの値をメインRAM603の所定の領域に退避させる(S161)。これは、当該メインCPU601の制御による割込処理が終了した場合に、退避されたプログラムの中断した位置を示すアドレス、各種レジスタの値を復帰させ、中断した時点からプログラムを継続して実行するためである。
[Interrupt process under control of main CPU (1.1172 msec)]
FIG. 38 shows an interrupt process by the main CPU 601. The interrupt process by the main CPU 601 is a process that is executed every predetermined cycle (1.1173 milliseconds in the present embodiment). As shown in FIG. 38, the main CPU 601 interrupts the program being executed before calling this interrupt processing, and saves the address indicating the interrupted position and the values of various registers in a predetermined area of the main RAM 603. (S161). This is because, when the interrupt processing under control of the main CPU 601 is completed, the address indicating the interrupted position of the saved program and the values of various registers are restored, and the program is continuously executed from the point of interruption. It is.

次に、メインCPU601は、入力ポートチェック処理を行う(S162)。具体的に、メインCPU601は、最大BETスイッチ13S等の各スイッチからの信号をチェックする。   Next, the main CPU 601 performs input port check processing (S162). Specifically, the main CPU 601 checks the signals from the switches such as the maximum BET switch 13S.

次に、メインCPU601は、リール制御処理を行う(S163)。具体的に、メインCPU601は、メインフローチャート(図32参照)においてリールの回転開始要求があった場合には、リール3L,3C,3Rの回転を開始させ、一定速度で回転させるための制御を行う。また、メインCPU601は、リール停止制御処理(図35参照)において滑りコマ数が決定されたことにより停止予定位置が定まっている場合には、該当するリールの図柄カウンタの値が停止予定位置を示す値と同一の値となったときに当該リールを停止させるための制御を行う。例えば、メインCPU601は、停止予定位置を示す値が「4」である場合には、図柄カウンタの値が「4」になったときに、該当するリールを停止させるための制御を行う。   Next, the main CPU 601 performs reel control processing (S163). Specifically, when there is a request for starting rotation of the reels in the main flowchart (see FIG. 32), the main CPU 601 starts the rotation of the reels 3L, 3C, 3R and performs control for rotating at a constant speed. . Further, when the planned stop position is determined by the number of sliding symbols determined in the reel stop control process (see FIG. 35), the main CPU 601 indicates the value of the symbol counter of the corresponding reel indicates the planned stop position. Control is performed to stop the reel when the value becomes the same value. For example, when the value indicating the planned stop position is “4”, the main CPU 601 performs control for stopping the corresponding reel when the value of the symbol counter becomes “4”.

次に、メインCPU601は、ランプ・7セグ駆動処理を行う(S164)。次に、メインCPU601は、外部出力用カウンタの値を4で除算し、その除算結果として余りがないか否かを判別する(S165)。この外部出力用カウンタは、割込処理を4回行う(4.4692ミリ秒経過)ごとに、後述のコマンド外部出力処理を実行するためのものであり、メインRAM603の所定の領域に例えば1バイトカウンタとしてセットされる。   Next, the main CPU 601 performs lamp 7 segment drive processing (S164). Next, the main CPU 601 divides the value of the external output counter by 4 and determines whether there is no remainder as a result of the division (S165). The external output counter is for executing command external output processing described later, which is performed every four times of the interrupt processing (4.4692 milliseconds elapsed), for example, 1 byte in a predetermined area of the main RAM 603. Set as a counter.

メインCPU601は、S165において外部出力用カウンタの値を4で除算した結果として余りがないと判別したときには、図71を参照して後述するコマンド外部出力処理を行う(S166)。この処理では、外部出力すべきコマンドが外部出力用通信LSI610Aへと出力される。その後、メインCPU601は、S167に移る。一方、メインCPU601は、S165において外部出力用カウンタの値を4で除算した結果として余りが生じると判別したときには、コマンド外部出力処理を行うことなくS167に移る。   When the main CPU 601 determines that there is no remainder as a result of dividing the value of the external output counter by 4 in S165, it performs command external output processing described later with reference to FIG. 71 (S166). In this process, a command to be externally output is output to the external output communication LSI 610A. After that, the main CPU 601 shifts to S167. On the other hand, when the main CPU 601 determines that the remainder is generated as a result of dividing the value of the external output counter by 4 in S165, the process proceeds to S167 without performing command external output processing.

次に、メインCPU601は、外部出力用カウンタの値を1加算して更新する(S167)。その後、メインCPU601は、S161の処理においてメインRAM603に退避した値を参照してレジスタの復帰を行う(S168)。この処理が終了すると、メインCPU601は、この割込処理を終了させ、当該割込処理の発生により中断したプログラムを継続して実行する。   Next, the main CPU 601 adds 1 to the value of the external output counter to update it (S167). Thereafter, the main CPU 601 restores the register with reference to the value saved in the main RAM 603 in the process of S161 (S168). When this process ends, the main CPU 601 ends the interrupt process, and continues executing the interrupted program due to the occurrence of the interrupt process.

次に、図39〜43に示すフローチャートを参照して、副制御回路70の遊技に関する動作について説明する。   Next, with reference to the flowcharts shown in FIGS. 39 to 43, the operation regarding the game of the sub control circuit 70 will be described.

[受信割込み処理]
図39は、サブCPU701による受信割込み処理を示す。図39に示すように、サブCPU701は、主制御回路60(メインCPU601)から主基板通信LSI610及び副基板通信LSI710を経由して供給された受信データを取得する(S181)。このとき、受信データは、サブCPU701内のUART701Aを通じてシリアルデータとして受信される。
[Receive interrupt processing]
FIG. 39 shows a reception interrupt process by the sub CPU 701. As shown in FIG. 39, the sub CPU 701 acquires reception data supplied from the main control circuit 60 (main CPU 601) via the main board communication LSI 610 and the sub board communication LSI 710 (S181). At this time, the received data is received as serial data through the UART 701A in the sub CPU 701.

次に、サブCPU701は、受信データは「STX」であるか否かを判別する(S182)。サブCPU701は、受信データは「STX」であると判別したときは、受信データバッファ及び受信カウンタをクリアするとともに、受信エラーフラグをオフにセットし(S183)、後述のS196に移る。受信データバッファ、受信カウンタ、受信エラーフラグは、サブRAM703の所定領域に確保される。受信データバッファは、受信データを一時記憶するために用いられる。受信カウンタは、例えば受信データをバイトナンバーで示されるブロック単位で1Byteずつ計数するために用いられる。受信エラーフラグは、データ受信時のエラーの有無を識別するために用いられる。   Next, the sub CPU 701 determines whether or not the received data is "STX" (S182). When the sub CPU 701 determines that the received data is “STX”, the sub CPU 701 clears the received data buffer and the reception counter, sets the reception error flag to OFF (S183), and shifts to S196 described later. The reception data buffer, the reception counter, and the reception error flag are secured in predetermined areas of the sub RAM 703. The receive data buffer is used to temporarily store receive data. The reception counter is used, for example, to count reception data by 1 byte in block units indicated by a byte number. The reception error flag is used to identify the presence or absence of an error at the time of data reception.

S182において、受信データは「STX」でないと判別すると、サブCPU701は、受信データは「DLE」であるか否かを判別する(S184)。サブCPU701は、受信データは「DLE」であると判別したときは、エスケープ処理フラグをオンにセットし(S185)、後述のS196に移る。エスケープ処理フラグは、サブRAM703の所定領域に確保される。エスケープ処理フラグは、エスケープ処理を実行する必要があるか無いかを識別するために用いられる。   If it is determined in S182 that the received data is not "STX", the sub CPU 701 determines whether the received data is "DLE" (S184). When the sub CPU 701 determines that the received data is "DLE", the sub CPU 701 sets the escape processing flag on (S185), and proceeds to S196 described later. The escape processing flag is secured in a predetermined area of the sub RAM 703. The escape process flag is used to identify whether or not the escape process needs to be performed.

S184において、受信データは「DLE」でないと判別すると、サブCPU701は、エスケープ処理フラグはオンであるか否かを判別する(S186)。サブCPU701は、エスケープ処理フラグはオンであると判別した場合は、受信データについてエスケープ処理を実行し(S187)、その後、エスケープ処理フラグをオフにセットする(S188)。   If it is determined in S184 that the received data is not "DLE", the sub CPU 701 determines whether the escape processing flag is on (S186). If the sub CPU 701 determines that the escape processing flag is on, the sub CPU 701 executes the escape processing on the received data (S 187), and then sets the escape processing flag to off (S 188).

サブCPU701は、S188の後、又は、S186においてエスケープ処理フラグはオンでないと判別した場合は、受信データ及び受信ステータスをサブRAM703の所定領域に保存する(S189)。次に、サブCPU701は、受信カウンタを1加算して更新する(S190)。   After S188, or when it is determined that the escape process flag is not on in S186, the sub CPU 701 stores the received data and the reception status in a predetermined area of the sub RAM 703 (S189). Next, the sub CPU 701 updates the reception counter by adding 1 (S190).

次に、サブCPU701は、タイムアウトタイマをセットする(S191)。タイムアウトタイマは、データ受信時の通信エラーの有無を受信待ち時間によって判別するためのものである。本実施形態において、サブCPU701のタイムアウトタイマは、後述する主基板通信LSI610や副基板通信LSI710のタイムアウトタイマにより計時される受信待ち時間よりも長い例えば8Byte分程度のデータを受信するための待ち時間が計時されるように構成されている。   Next, the sub CPU 701 sets a timeout timer (S191). The timeout timer is for determining the presence or absence of a communication error at the time of data reception based on the reception waiting time. In this embodiment, the timeout timer of the sub CPU 701 is a waiting time for receiving data of, for example, about 8 bytes longer than the reception waiting time measured by the timeout timer of the main board communication LSI 610 or the sub board communication LSI 710 described later. It is configured to be clocked.

次に、サブCPU701は、受信カウンタは16Byteを計数したか否かを判別する(S192)。サブCPU701は、受信カウンタは16Byteを計数したと判別した場合は、タイムアウトタイマをクリアし(S193)、その後、S194に移る。サブCPU701は、受信カウンタは16Byteを計数していないと判別した場合は、後述のS196に移る。   Next, the sub CPU 701 determines whether the reception counter has counted 16 bytes (S 192). If the sub CPU 701 determines that the reception counter has counted 16 bytes, the sub CPU 701 clears the timeout timer (S193), and then proceeds to S194. If the sub CPU 701 determines that the reception counter does not count 16 bytes, it proceeds to S 196 described later.

次に、サブCPU701は、受信データの中からコマンド部に相当するデータと受信ステータスデータとを抽出し、これらのデータを受信データ登録キューに登録する(S194)。受信データ登録キューは、サブRAM703の所定領域に確保される。   Next, the sub CPU 701 extracts data corresponding to the command part and reception status data from the reception data, and registers these data in the reception data registration queue (S194). The reception data registration queue is secured in a predetermined area of the sub RAM 703.

次に、サブCPU701は、図41を参照して説明する通信LSI受信データ解析処理を行う(S195)。この通信LSI受信データ解析処理によれば、メインCPU601と主基板通信LSI610との間における通信エラー、主基板通信LSI610と副基板通信LSI710との間における通信エラー、副基板通信LSI710とサブCPU701との間における通信エラー等といった通信経路上における各種の通信エラーが特定される。この通信LSI受信データ解析処理については後述する。   Next, the sub CPU 701 performs communication LSI received data analysis processing described with reference to FIG. 41 (S195). According to this communication LSI reception data analysis processing, a communication error between the main CPU 601 and the main substrate communication LSI 610, a communication error between the main substrate communication LSI 610 and the sub substrate communication LSI 710, and the sub substrate communication LSI 710 and the sub CPU 701 Various communication errors on the communication path, such as communication errors between them, are identified. This communication LSI reception data analysis process will be described later.

次に、サブCPU701は、副基板通信LSI710から供給された受信データに物理層エラーはあるか否かを判別する(S196)。この物理層エラーの有無を判別する処理は、主としてサブCPU701に内蔵されたUART701Aにより行われる。この際に検出され得る物理層エラーは、受信データ内の受信ステータス(バイトナンバーD11,D12に示される主基板通信LSI610及び副基板通信LSI710に係る受信ステータス)ではなく、サブCPU701がデータを受信した際にUART701Aにより検出されるオーバーランエラー、フレーミングエラー、パリティエラー等である。   Next, the sub CPU 701 determines whether or not there is a physical layer error in the received data supplied from the sub substrate communication LSI 710 (S 196). The process of determining the presence or absence of the physical layer error is mainly performed by the UART 701A built in the sub CPU 701. The physical layer error that can be detected at this time is not the reception status in the reception data (the reception status concerning the main board communication LSI 610 and the sub board communication LSI 710 indicated by the byte numbers D11 and D12), but the sub CPU 701 received the data. Such as an overrun error detected by the UART 701A, a framing error, and a parity error.

S196において、受信データに物理層エラーはあると判別すると、サブCPU701は、受信エラーフラグをオンにセットする(S197)。その後、サブCPU701は、受信割込み処理を終了する。受信データに物理層エラーはないと判別すると、サブCPU701は、受信割込み処理を終了する。   If it is determined in S196 that there is a physical layer error in the received data, the sub CPU 701 sets the reception error flag on (S197). Thereafter, the sub CPU 701 ends the reception interrupt process. If it is determined that there is no physical layer error in the received data, the sub CPU 701 ends the reception interrupt process.

[主基板通信処理]
図40は、サブCPU701による主基板通信処理を示す。図40に示すように、サブCPU701は、タイムアウトは発生したか否かを判別する(S201)。タイムアウトは、タイムアウトタイマにより計時される待ち時間を経過しても16Byte分のデータが受信されない場合に発生する。
Main board communication process
FIG. 40 shows main board communication processing by the sub CPU 701. As shown in FIG. 40, the sub CPU 701 determines whether a time out has occurred (S201). The timeout occurs when 16 bytes of data are not received even after the waiting time counted by the timeout timer.

S201において、タイムアウトは発生したと判別すると、サブCPU701は、‘COM3 ERR2’を該当するエラー情報としてサブRAM703のエラー情報履歴格納領域703dに登録する(S202)。一方、タイムアウトは発生しなかったと判別すると、サブCPU701は、後述のS204に移る。次に、サブCPU701は、受信データバッファ及び受信カウンタをクリアし(S203)、S201に移る。   If it is determined in S201 that a timeout has occurred, the sub CPU 701 registers 'COM3 ERR2' in the error information history storage area 703d of the sub RAM 703 as the corresponding error information (S202). On the other hand, if it is determined that a timeout has not occurred, the sub CPU 701 shifts to S204 described later. Next, the sub CPU 701 clears the reception data buffer and the reception counter (S203), and proceeds to S201.

次に、サブCPU701は、受信データ登録キューから受信データ(コマンドと受信ステータス)を取得する(S204)。そして、サブCPU701は、受信データ登録キューに受信データはあるか否かを判別する(S205)。   Next, the sub CPU 701 acquires reception data (command and reception status) from the reception data registration queue (S204). Then, the sub CPU 701 determines whether or not there is received data in the received data registration queue (S205).

S205において、受信データ登録キューに受信データはあると判別した場合、サブCPU701は、次のS206に移る。一方、受信データ登録キューに受信データはないと判別した場合、サブCPU701は、S201に移る。   If it is determined in S205 that there is received data in the received data registration queue, the sub CPU 701 proceeds to the next S206. On the other hand, if it is determined that there is no reception data in the reception data registration queue, the sub CPU 701 proceeds to S201.

次に、サブCPU701は、取得した受信ステータスの内容に基づき、受信データにはエラーがないか否かを判別する(S206)。受信データにはエラーがないと判別した場合、サブCPU701は、コマンドの範囲についてチェックを行う(S207)。すなわち、サブCPU701は、コマンドの種別を確認する。一方、受信データにはエラーがあると判別した場合、サブCPU701は、S201に移る。   Next, the sub CPU 701 determines whether or not the received data has an error based on the content of the acquired reception status (S206). If it is determined that there is no error in the received data, the sub CPU 701 checks the range of the command (S207). That is, the sub CPU 701 confirms the type of command. On the other hand, if it is determined that the received data has an error, the sub CPU 701 proceeds to S201.

次に、サブCPU701は、コマンドは所定の範囲内(所定のコマンド種別)にあるか否かを判別する(S208)。コマンドは所定の範囲内にあると判別した場合、サブCPU701は、受信データについてBCCチェック処理を行う(S209)。このBCCチェック処理は、パケットデータP0〜P6のチェックサムとして再算出したBCCとパケットデータP7に収められたBCCとが一致するか否かに基づいて行われる。一方、コマンドは所定の範囲内にないと判別した場合、サブCPU701は、S201に移る。   Next, the sub CPU 701 determines whether the command is within a predetermined range (predetermined command type) (S208). If it is determined that the command is within the predetermined range, the sub CPU 701 performs BCC check processing on the received data (S209). The BCC check process is performed based on whether the BCC recalculated as the checksum of the packet data P0 to P6 matches the BCC stored in the packet data P7. On the other hand, when determining that the command is not within the predetermined range, the sub CPU 701 shifts to S201.

次に、サブCPU701は、BCCチェック処理の結果としてBCCは正常か否かを判別する(S210)。BCCは正常と判別した場合、サブCPU701は、コマンドからコマンドの種別を抽出する(S211)。コマンドの種別としては、例えば、スタートコマンド、表示コマンド、メダル投入コマンド、リール停止コマンド、ボーナス開始コマンド、ボーナス終了コマンド等のほか、無操作状態を示す無操作コマンド等がある。一方、BCCは正常でないと判別した場合、サブCPU701は、S201に移る。   Next, the sub CPU 701 determines whether the BCC is normal or not as a result of the BCC check process (S210). If it is determined that the BCC is normal, the sub CPU 701 extracts the type of command from the command (S211). As the command type, for example, there are a start command, a display command, a medal insertion command, a reel stop command, a bonus start command, a bonus end command, and the like, as well as a non-operation command indicating a non-operation state. On the other hand, when determining that the BCC is not normal, the sub CPU 701 shifts to S201.

次に、サブCPU701は、コマンド種別が無操作コマンドか否かを判別する(S212)。無操作コマンドではないその他のコマンドと判別した場合、サブCPU701は、今回のコマンドとして前回と異なるコマンドを受信したか否かを判別する(S213)。一方、無操作コマンドであると判別した場合、サブCPU701は、S201に移る。   Next, the sub CPU 701 determines whether the command type is a no-operation command (S212). If it is determined that the other command is not a non-operation command, the sub CPU 701 determines whether a command different from the previous command has been received as the current command (S213). On the other hand, if it is determined that the command is a no-operation command, the sub CPU 701 proceeds to S201.

S213において、今回のコマンドとして前回と異なるコマンドを受信したと判別した場合、サブCPU701は、今回受信したコマンドをメッセージキューに登録し(S214)、S201に移る。一方、今回のコマンドとして前回と同じコマンドを受信したと判別した場合、サブCPU701は、そのままS201に移る。   If it is determined in S213 that a command different from the previous command has been received as the current command, the sub CPU 701 registers the command received this time in the message queue (S214), and proceeds to S201. On the other hand, if it is determined that the same command as the previous command has been received as the current command, the sub CPU 701 proceeds directly to S201.

[通信LSI受信データ解析処理]
図41は、サブCPU701による通信LSI受信データ解析処理を示す。図41に示すように、サブCPU701は、受信データのうちのバイトナンバーD0〜D13のデータについて巡回冗長検査によりCRCを算出する(S221)。
[Communication LSI received data analysis process]
FIG. 41 shows communication LSI received data analysis processing by the sub CPU 701. As shown in FIG. 41, the sub CPU 701 calculates a CRC by cyclic redundancy check on data of byte numbers D0 to D13 among the received data (S221).

次に、サブCPU701は、算出したCRCは異常か否かを判別する(S222)。CRCは異常と判別した場合、サブCPU701は、‘COM3 ERR1’を該当するエラー情報としてサブRAM703のエラー情報履歴格納領域703dに登録するとともに、受信エラーフラグをオンにセットする(S223)。一方、CRCは正常と判別した場合、サブCPU701は、次のS224に移る。   Next, the sub CPU 701 determines whether the calculated CRC is abnormal (S222). If it is determined that the CRC is abnormal, the sub CPU 701 registers 'COM3 ERR1' in the error information history storage area 703d of the sub RAM 703 as corresponding error information, and sets the reception error flag on (S223). On the other hand, if it is determined that the CRC is normal, the sub CPU 701 proceeds to the next step S224.

次に、サブCPU701は、受信データの中から主基板通信LSI受信ステータスを取得する(S224)。そして、サブCPU701は、主基板通信LSI受信ステータスに物理層エラーはあるか否かを判別する(S225)。   Next, the sub CPU 701 acquires the main board communication LSI reception status from the reception data (S224). Then, the sub CPU 701 determines whether or not there is a physical layer error in the main board communication LSI reception status (S225).

S225において、主基板通信LSI受信ステータスに物理層エラーはあると判別した場合、サブCPU701は、‘COM1 ERR1’を該当するエラー情報としてサブRAM703のエラー情報履歴格納領域703dに登録するとともに、受信エラーフラグをオンにセットする(S226)。一方、物理層エラーはないと判別した場合、サブCPU701は、次のS227に移る。   If it is determined in S225 that there is a physical layer error in the main board communication LSI reception status, the sub CPU 701 registers 'COM1 ERR1' as the corresponding error information in the error information history storage area 703d of the sub RAM 703 and the reception error. The flag is set on (S226). On the other hand, if it is determined that there is no physical layer error, the sub CPU 701 proceeds to the next S227.

次に、サブCPU701は、受信データの中から副基板通信LSI受信ステータスを取得する(S227)。そして、サブCPU701は、副基板通信LSI受信ステータスに物理層エラーはあるか否かを判別する(S228)。   Next, the sub CPU 701 acquires the sub board communication LSI reception status from the reception data (S227). Then, the sub CPU 701 determines whether or not there is a physical layer error in the sub board communication LSI reception status (S228).

S228において、副基板通信LSI受信ステータスに物理層エラーはあると判別した場合、サブCPU701は、‘COM2 ERR1’を該当するエラー情報としてサブRAM703のエラー情報履歴格納領域703dに登録するとともに、受信エラーフラグをオンにセットする(S229)。一方、物理層エラーはないと判別した場合、サブCPU701は、次のS230に移る。   If it is determined in S228 that there is a physical layer error in the sub board communication LSI reception status, the sub CPU 701 registers 'COM2 ERR1' as the corresponding error information in the error information history storage area 703d of the sub RAM 703 and the reception error. The flag is set on (S229). On the other hand, if it is determined that there is no physical layer error, the sub CPU 701 proceeds to the next S230.

次に、サブCPU701は、受信データの中から副基板通信LSIパケット種別を取得する(S230)。そして、サブCPU701は、取得した副基板通信LSIパケット種別から論理エラー種類として主基板通信LSIサイズ不足はあるか否かを判別する(S231)。   Next, the sub CPU 701 acquires the sub board communication LSI packet type from the received data (S230). Then, the sub CPU 701 determines whether there is insufficient main board communication LSI size as a logic error type from the acquired sub board communication LSI packet type (S231).

S231において、副基板通信LSIパケット種別に論理エラー種類として主基板通信LSIサイズ不足はあると判別した場合、サブCPU701は、‘COM1 ERR2’を該当するエラー情報としてサブRAM703のエラー情報履歴格納領域703dに登録するとともに、受信エラーフラグをオンにセットする(S232)。一方、主基板通信LSIサイズ不足はないと判別した場合、サブCPU701は、次のS233に移る。   If it is determined in S231 that there is a shortage of main board communication LSI size as a logic error type in the sub board communication LSI packet type, the sub CPU 701 sets 'COM1 ERR2' as the corresponding error information and stores the error information history storage area 703d of the sub RAM 703. And sets the reception error flag on (S232). On the other hand, when determining that the main substrate communication LSI size is not insufficient, the sub CPU 701 proceeds to the next step S233.

次に、サブCPU701は、取得した副基板通信LSIパケット種別から論理エラー種類として副基板通信LSIサイズ不足はあるか否かを判別する(S233)。   Next, the sub CPU 701 determines whether there is a shortage in the sub board communication LSI size as the logic error type from the acquired sub board communication LSI packet type (S233).

S233において、副基板通信LSIパケット種別に論理エラー種類として副基板通信LSIサイズ不足はあると判別した場合、サブCPU701は、‘COM2 ERR2’を該当するエラー情報としてサブRAM703のエラー情報履歴格納領域703dに登録するとともに、受信エラーフラグをオンにセットする(S234)。一方、副基板通信LSIサイズ不足はないと判別した場合、サブCPU701は、次のS235に移る。   If it is determined in S233 that there is a shortage of sub board communication LSI size as a logic error type in the sub board communication LSI packet type, the sub CPU 701 sets 'COM2 ERR2' as the corresponding error information and stores the error information history storage area 703d of the sub RAM 703. And sets the reception error flag on (S234). On the other hand, if it is determined that there is no shortage of sub board communication LSI size, the sub CPU 701 proceeds to the next step S235.

次に、サブCPU701は、取得した副基板通信LSIパケット種別から論理エラー種類として副基板通信LSIのCRCエラーはあるか否かを判別する(S235)。   Next, the sub CPU 701 determines whether there is a CRC error of the sub board communication LSI as the logic error type from the acquired sub board communication LSI packet type (S235).

S235において、副基板通信LSIパケット種別に論理エラー種類として副基板通信LSIのCRCエラーはあると判別した場合、サブCPU701は、‘COM2 ERR3’を該当するエラー情報としてサブRAM703のエラー情報履歴格納領域703dに登録するとともに、受信エラーフラグをオンにセットする(S236)。その後、サブCPU701は、通信LSI受信データ解析処理を終了する。一方、副基板通信LSIのCRCエラーはないと判別した場合、サブCPU701は、通信LSI受信データ解析処理を終了する。   If it is determined in S235 that there is a CRC error of the sub board communication LSI as the logic error type in the sub board communication LSI packet type, the sub CPU 701 sets 'COM2 ERR3' as the corresponding error information and stores the error information history storage area of the sub RAM 703. While registering in 703 d, the reception error flag is set on (S236). Thereafter, the sub CPU 701 ends the communication LSI reception data analysis process. On the other hand, if it is determined that there is no CRC error in the sub board communication LSI, the sub CPU 701 ends the communication LSI received data analysis processing.

[サブCPUにより行われる演出登録タスク]
図42は、サブCPU701により行われる演出登録タスクを示す。図42に示すように、サブCPU701は、メッセージキューからメッセージを取り出す(S241)。次に、サブCPU701は、メッセージは有るか否かを判別する(S242)。サブCPU701は、メッセージは有ると判別したときには、メッセージから遊技情報を複写する(S243)。例えば、パラメータによって特定される、内部当籤役、回転が停止したリールの種別、表示役、作動中フラグ等といった各種データがサブRAM703に設けられた所定の格納領域に複写される。
[Subscription registration task performed by sub CPU]
FIG. 42 shows an effect registration task performed by the sub CPU 701. As shown in FIG. 42, the sub CPU 701 extracts a message from the message queue (S241). Next, the sub CPU 701 determines whether there is a message (S 242). When the sub CPU 701 determines that there is a message, the sub CPU 701 copies game information from the message (S 243). For example, various data such as an internal winning combination, a type of reel whose rotation has stopped, a display combination, an in-operation flag, etc. specified by the parameters are copied in a predetermined storage area provided in the sub RAM 703.

次に、サブCPU701は、図43を参照して説明する演出内容決定処理を行う(S244)。この処理では、受信したコマンドの種別に応じて、演出内容の決定や演出データの登録等が行われる。   Next, the sub CPU 701 performs effect content determination processing described with reference to FIG. 43 (S244). In this process, determination of effect contents, registration of effect data, and the like are performed according to the type of the received command.

サブCPU701は、S244の後、又は、S242においてメッセージは無かったと判別したときには、アニメーションデータの登録を行う(S245)。次に、サブCPU701は、サウンドデータの登録を行う(S246)。次に、サブCPU701は、ランプデータの登録を行う(S247)。アニメーションデータの登録、サウンドデータの登録及びランプデータの登録は、演出内容決定処理において登録された演出データに基づいて行われる。この処理が終了すると、S241に移る。   After S244 or when it is determined that there is no message in S242, the sub CPU 701 registers animation data (S245). Next, the sub CPU 701 registers sound data (S246). Next, the sub CPU 701 registers lamp data (S247). Registration of animation data, registration of sound data and registration of lamp data are performed based on the effect data registered in the effect content determination process. When this process ends, the process moves to S241.

[演出内容決定処理]
図43は、サブCPU701による演出内容決定処理を示す。図43に示すように、サブCPU701は、スタートコマンド受信時であるか否かを判別する(S261)。サブCPU701は、スタートコマンド受信時であると判別したときには、演出用乱数値を抽出し、内部当籤役等に基づいて演出番号を抽籤により決定し、登録する(S262)。演出番号は、今回において実行する演出内容を指定するデータである。
[Determination content determination processing]
FIG. 43 shows effect content determination processing by the sub CPU 701. As shown in FIG. 43, the sub CPU 701 determines whether it is time to receive a start command (S261). When it is determined that the start command is received, the sub CPU 701 extracts a random number value for effect, randomly determines an effect number based on an internal winning combination, etc., and registers it (S 262). The effect number is data for specifying the content of the effect to be executed this time.

次に、サブCPU701は、登録されている演出番号に基づいて、スタート時の演出データを登録する(S263)。演出データは、アニメーションデータ、サウンドデータ、及びランプデータを指定するデータである。演出データが登録されると、対応するアニメーションデータ等が決定され、映像の表示等の演出が実行される。この処理が終了すると、サブCPU701は、演出内容決定処理を終了する。   Next, the sub CPU 701 registers effect data at the time of start based on the registered effect number (S263). The effect data is data specifying animation data, sound data, and lamp data. When the effect data is registered, corresponding animation data and the like are determined, and effects such as display of an image are executed. When this process ends, the sub CPU 701 ends the effect content determination process.

次に、サブCPU701は、スタートコマンド受信時ではないと判別したときには、リール停止コマンド受信時であるか否かを判別する(S264)。サブCPU701は、リール停止コマンド受信時であると判別したときには、登録されている演出番号とストップボタンの種別に基づいて、停止時の演出データを登録する(S265)。この処理が終了すると、サブCPU701は、演出内容決定処理を終了する。   Next, when it is determined that the start command is not received, the sub CPU 701 determines whether or not the reel stop command is received (S 264). When it is determined that the reel stop command is received, the sub CPU 701 registers effect data at the time of stop based on the registered effect number and the type of the stop button (S265). When this process ends, the sub CPU 701 ends the effect content determination process.

次に、サブCPU701は、リール停止コマンド受信時ではないと判別したときには、表示コマンド受信時であるか否かを判別する(S266)。サブCPU701は、表示コマンド受信時であると判別したときには、登録されている演出番号に基づいて、表示時の演出データを登録する(S267)。この処理が終了すると、サブCPU701は、演出内容決定処理を終了する。   Next, when it is determined that the reel stop command is not received, the sub CPU 701 determines whether or not the display command is received (S266). When determining that the display command is received, the sub CPU 701 registers effect data at the time of display based on the registered effect number (S267). When this process ends, the sub CPU 701 ends the effect content determination process.

次に、サブCPU701は、表示コマンド受信時ではないと判別したときには、ボーナス開始コマンド受信時であるか否かを判別する(S268)。サブCPU701は、ボーナス開始コマンド受信時であると判別したときには、ボーナス開始用の演出データを登録する(S269)。この処理が終了すると、サブCPU701は、演出内容決定処理を終了する。   Next, when it is determined that the display command is not received, the sub CPU 701 determines whether the bonus start command is received (S268). When the sub CPU 701 determines that the bonus start command has been received, the sub CPU 701 registers effect data for the bonus start (S 269). When this process ends, the sub CPU 701 ends the effect content determination process.

次に、サブCPU701は、ボーナス開始コマンド受信時ではないと判別したときには、ボーナス終了コマンド受信時であるか否かを判別する(S270)。サブCPU701は、ボーナス終了コマンド受信時ではないと判別したときには、演出内容決定処理を終了する。一方、ボーナス終了コマンド受信時であると判別した場合、サブCPU701は、ボーナス終了用の演出データを登録する(S271)。この処理が終了すると、サブCPU701は、演出内容決定処理を終了する。   Next, if it is determined that the bonus start command has not been received, the sub CPU 701 determines whether or not the bonus end command has been received (S 270). When the sub CPU 701 determines that the bonus end command is not received, the effect content determination process is ended. On the other hand, if it is determined that the bonus end command has been received, the sub CPU 701 registers effect data for bonus end (S271). When this process ends, the sub CPU 701 ends the effect content determination process.

上述したように、サブCPU701による受信割込み処理、主基板通信処理、及び通信LSI受信データ解析処理によれば、各種の通信に係るエラー情報がサブRAM703のエラー情報履歴格納領域703dに登録される。   As described above, according to the reception interrupt process, the main board communication process, and the communication LSI reception data analysis process by the sub CPU 701, error information related to various types of communication is registered in the error information history storage area 703d of the sub RAM 703.

次に、係員がエラー情報履歴を利用する際におけるパチスロ1について説明する。パチスロ1のサブCPU701は、図45に示すエラー情報履歴を液晶表示装置10に表示させるために、係員による通常操作と簡易操作との2種類の操作法を採用している。通常操作を実行する場合は、係員がドアキー110を右回転させてフロントドア2bのロック機構を解放し、設定キーをオン操作して設定用鍵型スイッチをオンにすることで、液晶表示領域10Aに図44に示すメニュー画面が表示される。そして、係員が操作キーを操作して、「エラー情報履歴」項目100aを選択することで、液晶表示領域10Aに図45に示すエラー情報履歴画面が表示される。一方、簡易操作を実行する場合は、係員は、エラー発生時や非遊技時にドアキー110を左回転させてエラーのリセットを行い、その状態を一定時間、例えば5秒間以上保持する。これにより、液晶表示領域10Aには、図45に示すエラー情報履歴画面が表示される。   Next, the pachislot 1 when the clerk uses the error information history will be described. The sub CPU 701 of the pachislot 1 adopts two kinds of operation methods of a normal operation and a simple operation by a clerk in order to display the error information history shown in FIG. 45 on the liquid crystal display device 10. When executing the normal operation, the clerk rotates the door key 110 to the right to release the lock mechanism of the front door 2b, and turns on the setting key to turn on the setting key type switch, thereby the liquid crystal display area 10A. The menu screen shown in FIG. 44 is displayed. Then, when the clerk operates the operation key and selects the “error information history” item 100a, the error information history screen shown in FIG. 45 is displayed on the liquid crystal display area 10A. On the other hand, when executing the simple operation, the clerk rotates the door key 110 to the left to reset the error when an error occurs or during non-game, and holds the state for a predetermined time, for example, 5 seconds or more. As a result, an error information history screen shown in FIG. 45 is displayed in the liquid crystal display area 10A.

サブCPU701は、係員が選択ボタン11Aと決定ボタン11Bを用いて、「エラー情報履歴」項目100aを選択する操作を検出すると、図45に示すように、液晶表示領域10Aにエラー情報履歴を表示する。エラー情報履歴には、例えば図中にハッチングで示すように、通信に係るCOMエラーとして、前述した「COM1 ERR1(COM1エラー1)」、「COM3 ERR2(COM3エラー2)」、「COM2 ERR1(COM2エラー1)」、「COM2 ERR3(COM2エラー3)」等が含まれる場合がある。   When the sub-CPU 701 detects an operation to select the "error information history" item 100a using the selection button 11A and the determination button 11B, the sub CPU 701 displays the error information history in the liquid crystal display area 10A as shown in FIG. . In the error information history, for example, as indicated by hatching in the figure, as the COM error related to communication, the aforementioned "COM1 ERR1 (COM1 error 1)", "COM3 ERR2 (COM3 error 2)", "COM2 ERR1 (COM2)" There may be a case where an error 1), "COM2 ERR3 (COM2 error 3)" and the like are included.

なお、サブCPU701は、係員が選択ボタン11Aと決定ボタン11Bを用いて、例えば「COM2 ERR3(COM2エラー3)」項目100bを選択する操作を検出すると、当該エラー情報履歴に基づいて送信情報を生成し、当該送信情報がホールコンピュータ1000等に送信されるように構成することも可能である。   When the sub CPU 701 detects an operation in which the clerk selects, for example, the “COM 2 ERR 3 (COM 2 error 3)” item 100 b using the selection button 11 A and the determination button 11 B, the transmission information is generated based on the error information history. Alternatively, the transmission information may be configured to be transmitted to the hall computer 1000 or the like.

次に、図56〜65に示すフローチャートを参照して、主基板通信LSI610及び副基板通信LSI710の通信に係る動作について説明する。   Next, with reference to flowcharts shown in FIGS. 56 to 65, operations relating to communication of the main substrate communication LSI 610 and the sub substrate communication LSI 710 will be described.

[メイン制御シーケンス(主基板通信LSI)]
図56は、主基板通信LSIによるメイン制御シーケンスを示す。図56に示すように、主基板通信LSI610の専用コントローラ611は、図58を参照して説明する初期設定処理を行う(S401)。この初期設定処理によれば、予め定められた通信仕様に基づいて通信に係る各種の設定情報がセットされる。初期設定処理については後述する。
[Main control sequence (main board communication LSI)]
FIG. 56 shows a main control sequence by the main board communication LSI. As shown in FIG. 56, the dedicated controller 611 of the main board communication LSI 610 performs the initial setting process described with reference to FIG. 58 (S401). According to this initial setting process, various setting information related to communication is set based on a predetermined communication specification. The initialization process will be described later.

次に、専用コントローラ611は、図59を参照して説明する受信処理を行う(S402)。この受信処理によれば、メインCPU601から供給されるコマンド等のデータが通信仕様に基づいて受信される。この受信処理については後述する。   Next, the dedicated controller 611 performs the reception process described with reference to FIG. 59 (S402). According to this reception process, data such as a command supplied from the main CPU 601 is received based on the communication specification. The reception process will be described later.

次に、専用コントローラ611は、送信要求はあるか否かを判別する(S403)。このような送信要求の有無は、後述の送信要求フラグに基づいて判別される。送信要求はあると判別した場合、専用コントローラ611は、図60を参照して説明する送信処理を行う(S404)。その後、専用コントローラ611は、S402に移る。一方、送信要求はないと判別した場合、専用コントローラ611は、送信処理を行うことなくS402に移る。送信処理については後述する。   Next, the dedicated controller 611 determines whether there is a transmission request (S403). The presence or absence of such a transmission request is determined based on a transmission request flag described later. If it is determined that there is a transmission request, the dedicated controller 611 performs transmission processing described with reference to FIG. 60 (S404). Thereafter, the dedicated controller 611 proceeds to S402. On the other hand, when determining that there is no transmission request, the dedicated controller 611 proceeds to S402 without performing transmission processing. The transmission process will be described later.

[受信割込み処理(主基板通信LSI)]
図57は、主基板通信LSIによる受信割込み処理を示す。図57に示すように、主基板通信LSI610の専用コントローラ611は、メインCPU601から第1UART601A及び第1UART615を経由して供給された受信データを取得する(S421)。
[Receive interrupt processing (main board communication LSI)]
FIG. 57 shows reception interrupt processing by the main board communication LSI. As shown in FIG. 57, the dedicated controller 611 of the main board communication LSI 610 acquires the received data supplied from the main CPU 601 via the first UART 601A and the first UART 615 (S421).

次に、専用コントローラ611は、メインCPU601から供給された受信データに物理層エラーはあるか否かを判別する(S422)。この物理層エラーの有無を判別する処理は、主として主基板通信LSI610に内蔵された第1UART615により行われる。この際に検出され得る物理層エラーは、第1UART615により検出されるオーバーランエラー、フレーミングエラー、パリティエラー等である。   Next, the dedicated controller 611 determines whether there is a physical layer error in the received data supplied from the main CPU 601 (S422). The process of determining the presence or absence of the physical layer error is mainly performed by the first UART 615 built in the main substrate communication LSI 610. The physical layer errors that can be detected at this time are overrun errors detected by the first UART 615, framing errors, parity errors, and the like.

S422において、受信データに物理層エラーはあると判別すると、専用コントローラ611は、検出した物理層エラーを主基板通信LSI受信ステータスにセットし(S423)、その後S424に移る。主基板通信LSI受信ステータスは、図49に示すように、主基板通信LSI610から副基板通信LSI710へと送信されるシリアルデータのバイトナンバーD11のブロックにセットされる。一方、受信データに物理層エラーはないと判別すると、専用コントローラ611は、後のS425に移る。   If it is determined in S422 that there is a physical layer error in the received data, the dedicated controller 611 sets the detected physical layer error in the main substrate communication LSI reception status (S423), and then proceeds to S424. The main board communication LSI reception status is set to the block of the byte number D11 of the serial data transmitted from the main board communication LSI 610 to the sub board communication LSI 710, as shown in FIG. On the other hand, when determining that there is no physical layer error in the received data, the dedicated controller 611 proceeds to later S425.

次に、専用コントローラ611は、エラーカウントを1加算して更新する(S424)。このようなエラーカウントは、主基板通信LSI受信ステータスのうちのビットナンバーB0〜B3にセットされ、エラーカウントにより受信エラー発生総数が示される(図51参照)。   Next, the dedicated controller 611 updates the error count by adding one (S424). Such an error count is set to bit numbers B0 to B3 of the main board communication LSI reception status, and the error count indicates the total number of reception errors occurring (see FIG. 51).

次に、専用コントローラ611は、メインCPU601からの受信データを送信バッファ(キャッシュメモリ613)に順次保存し(S425)、その後、受信カウンタを1加算して更新する(S426)。受信カウンタは、メインCPU601から8Byte固定長のデータサイズで送られてくるデータを計数するために用いられる。   Next, the dedicated controller 611 sequentially stores the reception data from the main CPU 601 in the transmission buffer (cache memory 613) (S425), and then updates the reception counter by adding 1 (S426). The reception counter is used to count data sent from the main CPU 601 with a data size of 8 bytes fixed length.

次に、専用コントローラ611は、タイムアウトタイマをセットし(S427)、この受信割込み処理を終了する。タイムアウトタイマは、データ受信時の通信エラーの有無を受信待ち時間によって判別するためのものである。本実施形態において、主基板通信LSI610における受信時のタイムアウトタイマは、パケット単位(伝送単位)で通信エラーを検出するために、少なくとも1Byte分のデータを受信することが可能な待ち時間が計時されるようになっている。具体的にいうと、主基板通信LSI610のタイムアウトタイマは、例えば48ビット(6Byte)分のデータを受信することが可能な待ち時間として、通信速度19200bpsを基に2.5msecが計時されるように構成されている。   Next, the dedicated controller 611 sets a timeout timer (S427), and ends this reception interrupt process. The timeout timer is for determining the presence or absence of a communication error at the time of data reception based on the reception waiting time. In this embodiment, the timeout timer at reception in the main board communication LSI 610 counts a waiting time capable of receiving data of at least 1 byte in order to detect a communication error in packet units (transmission units). It is supposed to be. Specifically, the timeout timer of the main board communication LSI 610 measures 2.5 msec based on the communication speed 19200 bps, for example, as a waiting time capable of receiving 48 bits (6 bytes) of data. It is configured.

[初期設定処理(主基板通信LSI)]
図58は、主基板通信LSIによる初期設定処理を示す。図58に示すように、主基板通信LSI610の専用コントローラ611は、第1UART615について初期設定を行う(S441)。具体的にいうと、専用コントローラ611は、設定レジスタ612に予め記憶されている通信仕様等に基づく設定データを参照し、第1UART615のコントロールレジスタにボーレート(送受信に係る通信速度)、送受信時のデータ長、パリティ、ストップビット等をセットする。本実施形態においては、例えば、メインCPU601との間の通信速度が19200bps、データ長が8ビット、パリティが偶数パリティ、ストップビットが1ビットとしてセットされる。
[Initial setting process (main board communication LSI)]
FIG. 58 shows an initialization process by the main board communication LSI. As shown in FIG. 58, the dedicated controller 611 of the main board communication LSI 610 initializes the first UART 615 (S441). Specifically, the dedicated controller 611 refers to setting data based on the communication specification and the like stored in advance in the setting register 612, and transmits the baud rate (the communication speed related to transmission and reception) to the control register of the first UART 615 Set length, parity, stop bit etc. In this embodiment, for example, the communication speed with the main CPU 601 is set to 19200 bps, the data length is 8 bits, the parity is an even parity, and the stop bit is 1 bit.

次に、専用コントローラ611は、受信に係る通信速度のボーレート設定値から第1UART615の受信時におけるタイムアウト値を算出する(S442)。具体的にいうと、専用コントローラ611は、例えばボーレート設定値が19200bpsで少なくとも48ビット分のデータを受信する場合、1/ボーレート×48によりタイムアウト値として2.5msecを得る。こうして得られたタイムアウト値は、タイムアウトタイマにセットされる。   Next, the dedicated controller 611 calculates a timeout value at the time of reception of the first UART 615 from the baud rate setting value of the communication speed related to reception (S 442). Specifically, for example, when the baud rate setting value is 19200 bps and data of at least 48 bits is received, the dedicated controller 611 obtains 2.5 msec as a timeout value by 1 / baud rate × 48. The timeout value thus obtained is set to the timeout timer.

次に、専用コントローラ611は、第2UART616について初期設定を行い(S443)、この初期設定処理を終了する。具体的にいうと、専用コントローラ611は、設定レジスタ612に予め記憶されている通信仕様等に基づく設定データを参照し、第2UART616のコントロールレジスタにボーレート(受信に係る通信速度)、送受信時のデータ長、パリティ、ストップビット等をセットする。本実施形態においては、例えば、副基板通信LSI710との間の通信速度が115200bps、データ長が8ビット、パリティが偶数パリティ、ストップビットが1ビットとしてセットされる。   Next, the dedicated controller 611 initializes the second UART 616 (S 443), and ends this initialization process. Specifically, the dedicated controller 611 refers to setting data based on the communication specification and the like stored in advance in the setting register 612, and transmits the baud rate (the communication speed related to reception) to the control register of the second UART 616, data at transmission and reception. Set length, parity, stop bit etc. In this embodiment, for example, the communication speed with the sub board communication LSI 710 is set to 115,200 bps, the data length is 8 bits, the parity is an even parity, and the stop bit is 1 bit.

[受信処理(主基板通信LSI)]
図59は、主基板通信LSIによる受信処理を示す。図59に示すように、主基板通信LSI610の専用コントローラ611は、メインCPU601からの受信データの取得に際してタイムアウトタイマを用いてタイムアウトが発生したか否かを判別する(S461)。
[Reception processing (main board communication LSI)]
FIG. 59 shows reception processing by the main board communication LSI. As shown in FIG. 59, the dedicated controller 611 of the main board communication LSI 610 determines whether a timeout has occurred by using a timeout timer when acquiring received data from the main CPU 601 (S461).

S461において、タイムアウトが発生していないと判別した場合、専用コントローラ611は、この受信処理を終了する。一方、タイムアウトが発生したと判別した場合、専用コントローラ611は、パケット受信番号を1加算して更新する(S462)。   If it is determined in S461 that a timeout has not occurred, the dedicated controller 611 ends the reception process. On the other hand, when it is determined that the timeout has occurred, the dedicated controller 611 adds 1 to the packet reception number and updates it (S462).

次に、専用コントローラ611は、受信データは8Byte未満か否かを判別する(S463)。受信データは8Byte未満であると判別した場合、専用コントローラ611は、主基板通信LSI受信ステータスにエラー情報としてタイムアウトをセットする(S464)。エラー情報としてのタイムアウトは、図51に示すように、主基板通信LSI受信ステータスにおけるビットナンバーB7のビットを「1」としてセットされる。一方、受信データは8Byte未満でない、すなわち少なくとも8Byteの受信データであると判別した場合、専用コントローラ611は、次のS465に移る。   Next, the dedicated controller 611 determines whether the received data is less than 8 bytes (S463). If it is determined that the received data is less than 8 bytes, the dedicated controller 611 sets a timeout as error information in the main substrate communication LSI reception status (S464). As shown in FIG. 51, the timeout as error information is set with the bit of bit number B7 in the main board communication LSI reception status as “1”. On the other hand, when it is determined that the received data is not less than 8 bytes, that is, at least 8 bytes of received data, the dedicated controller 611 proceeds to the next S465.

次に、専用コントローラ611は、送信要求フラグをセットし(S465)、この受信処理を終了する。送信要求フラグは、キャッシュメモリ613の所定領域に確保され、主基板通信LSI610が送信すべきデータの有無を識別するために用いられる。   Next, the dedicated controller 611 sets a transmission request flag (S465), and ends this reception process. The transmission request flag is secured in a predetermined area of the cache memory 613, and is used to identify the presence / absence of data to be transmitted by the main board communication LSI 610.

[送信処理(主基板通信LSI)]
図60は、主基板通信LSIによる送信処理を示す。図60に示すように、主基板通信LSI610の専用コントローラ611は、送信要求フラグに基づいてデータの送信要求があるか否か、すなわちメインCPU601からのコマンド等を含む受信データがあるか否かを判別する(S481)。
[Transmission processing (main board communication LSI)]
FIG. 60 shows transmission processing by the main board communication LSI. As shown in FIG. 60, the dedicated controller 611 of the main board communication LSI 610 determines whether there is a data transmission request based on the transmission request flag, that is, whether there is received data including a command from the main CPU 601 or the like. It discriminates (S481).

S481において、データの送信要求があると判別した場合、専用コントローラ611は、パケット受信番号を送信バッファにセットする(S482)。送信バッファは、キャッシュメモリ613の所定領域に確保され、メインCPU601からサブCPU701へと供給されるコマンド等を含む通信データ等を一時記憶するために用いられる。一方、データの送信要求がないと判別した場合、専用コントローラ611は、この送信処理を終了する。   If it is determined in S481 that there is a data transmission request, the dedicated controller 611 sets the packet reception number in the transmission buffer (S482). The transmission buffer is secured in a predetermined area of the cache memory 613, and is used to temporarily store communication data and the like including commands and the like supplied from the main CPU 601 to the sub CPU 701. On the other hand, when it is determined that there is no request for data transmission, the dedicated controller 611 ends the transmission processing.

次に、専用コントローラ611は、メインCPU601からの受信データ(パケットデータ:データ固定長8Byte)を送信バッファにセットする(S483)。続いて、専用コントローラ611は、主基板通信LSI受信ステータスを送信バッファにセットする(S484)。また、専用コントローラ611は、ダミーデータを送信バッファにセットする(S485)。さらに、専用コントローラ611は、巡回冗長検査によりCRCを計算し、その計算結果としてのCRCデータを送信バッファにセットする(S486)。これにより、送信バッファからは、バイトナンバーD0〜D15の16Byteからなる外部通信データ(図49参照)がシリアル形式の送信データとして1Byteずつ順次出力される。このようにして主基板通信LSI610から副基板通信LSI710へと送信されるデータは、主基板通信LSI610においてマンチェスター変調及びAES暗号化された固定データ長16Byteのデータであり、通信仕様に基づいて通信速度115200bpsで伝送される。   Next, the dedicated controller 611 sets the reception data (packet data: data fixed length 8 bytes) from the main CPU 601 in the transmission buffer (S483). Subsequently, the dedicated controller 611 sets the main board communication LSI reception status in the transmission buffer (S484). Further, the dedicated controller 611 sets dummy data in the transmission buffer (S485). Furthermore, the dedicated controller 611 calculates a CRC by cyclic redundancy check, and sets CRC data as a result of the calculation in the transmission buffer (S 486). As a result, from the transmission buffer, external communication data (see FIG. 49) consisting of 16 bytes of byte numbers D0 to D15 are sequentially output as 1 byte of serial format transmission data. The data transmitted from the main substrate communication LSI 610 to the sub substrate communication LSI 710 in this way is data of 16 bytes of fixed data length which has been Manchester modulated and AES encrypted in the main substrate communication LSI 610, and the communication speed is based on the communication specification. It is transmitted at 115,200 bps.

次に、専用コントローラ611は、16Byte分のデータを送信したか否かを判別する(S487)。16Byte分のデータを送信していないと判別した場合、専用コントローラ611は、第2UART616の送信ポートから送信データを送信し(S488)、その後再びS487に戻る。一方、16Byte分のデータを送信したと判別した場合、専用コントローラ611は、受信データ、受信カウンタ、及び送信要求フラグをクリアし(S489)、この送信処理を終了する。   Next, the dedicated controller 611 determines whether 16 bytes of data have been transmitted (S487). If it is determined that 16 bytes of data have not been transmitted, the dedicated controller 611 transmits transmission data from the transmission port of the second UART 616 (S488), and then returns to S487 again. On the other hand, when determining that 16 bytes of data have been transmitted, the dedicated controller 611 clears the reception data, the reception counter, and the transmission request flag (S489), and ends this transmission processing.

[メイン制御シーケンス(副基板通信LSI)]
図61は、副基板通信LSIによるメイン制御シーケンスを示す。図61に示すように、副基板通信LSI710の専用コントローラ711は、図63を参照して説明する初期設定処理を行う(S501)。この初期設定処理によれば、予め定められた通信仕様に基づいて通信に係る各種の設定情報がセットされる。初期設定処理については後述する。
[Main control sequence (Sub board communication LSI)]
FIG. 61 shows a main control sequence by the sub board communication LSI. As shown in FIG. 61, the dedicated controller 711 of the sub board communication LSI 710 performs the initial setting process described with reference to FIG. 63 (S501). According to this initial setting process, various setting information related to communication is set based on a predetermined communication specification. The initialization process will be described later.

次に、専用コントローラ711は、図64を参照して説明する受信処理を行う(S502)。この受信処理によれば、メインCPU601から主基板通信LSI610を通じて供給されるコマンド等を含む外部通信データが通信仕様に基づいて受信される。この受信処理については後述する。   Next, the dedicated controller 711 performs the reception process described with reference to FIG. 64 (S502). According to this reception process, external communication data including a command or the like supplied from the main CPU 601 through the main board communication LSI 610 is received based on the communication specification. The reception process will be described later.

次に、専用コントローラ711は、送信要求はあるか否かを判別する(S503)。このような送信要求の有無は、後述の送信要求フラグに基づいて判別される。送信要求はあると判別した場合、専用コントローラ711は、図65を参照して説明する送信処理を行う(S504)。その後、専用コントローラ711は、S502に移る。一方、送信要求はないと判別した場合、専用コントローラ711は、送信処理を行うことなくS502に移る。送信処理については後述する。   Next, the dedicated controller 711 determines whether there is a transmission request (S503). The presence or absence of such a transmission request is determined based on a transmission request flag described later. If it is determined that there is a transmission request, the dedicated controller 711 performs transmission processing described with reference to FIG. 65 (S504). Thereafter, the dedicated controller 711 proceeds to S502. On the other hand, when it is determined that there is no transmission request, the dedicated controller 711 proceeds to S502 without performing transmission processing. The transmission process will be described later.

[受信割込み処理(副基板通信LSI)]
図62は、副基板通信LSIによる受信割込み処理を示す。図62に示すように、副基板通信LSI710の専用コントローラ711は、主基板通信LSI610から第2UART716を経由して供給された受信データを取得する(S521)。
[Reception interrupt processing (sub board communication LSI)]
FIG. 62 shows reception interrupt processing by the sub board communication LSI. As shown in FIG. 62, the dedicated controller 711 of the sub substrate communication LSI 710 acquires the received data supplied from the main substrate communication LSI 610 via the second UART 716 (S521).

次に、専用コントローラ711は、主基板通信LSI610から供給された受信データに物理層エラーはあるか否かを判別する(S522)。この物理層エラーの有無を判別する処理は、主として副基板通信LSI710に内蔵された第2UART716により行われる。この際に検出され得る物理層エラーは、第2UART716により検出されるオーバーランエラー、フレーミングエラー、パリティエラー等である。   Next, the dedicated controller 711 determines whether or not there is a physical layer error in the received data supplied from the main substrate communication LSI 610 (S522). The process of determining the presence or absence of the physical layer error is mainly performed by the second UART 716 incorporated in the sub substrate communication LSI 710. Physical layer errors that can be detected at this time are overrun errors detected by the second UART 716, framing errors, parity errors, and the like.

S522において、受信データに物理層エラーはあると判別すると、専用コントローラ711は、検出した物理層エラーを副基板通信LSI受信ステータスにセットし(S523)、その後S524に移る。副基板通信LSI受信ステータスは、図50に示すように、副基板通信LSI710からサブCPU701へと送信されるシリアルデータのバイトナンバーD12のブロックにセットされる。一方、受信データに物理層エラーはないと判別すると、専用コントローラ711は、後のS525に移る。   If it is determined in S522 that there is a physical layer error in the received data, the dedicated controller 711 sets the detected physical layer error in the sub board communication LSI reception status (S523), and then the process proceeds to S524. The sub board communication LSI reception status is set to the block of the byte number D12 of the serial data transmitted from the sub board communication LSI 710 to the sub CPU 701, as shown in FIG. On the other hand, when determining that there is no physical layer error in the received data, the dedicated controller 711 proceeds to later step S525.

次に、専用コントローラ711は、エラーカウントを1加算して更新する(S524)。このようなエラーカウントは、副基板通信LSI受信ステータスのうちのビットナンバーB0〜B3にセットされ、エラーカウントにより受信エラー発生総数が示される(図51参照)。   Next, the dedicated controller 711 updates the error count by adding one (S524). Such an error count is set to bit numbers B0 to B3 of the sub board communication LSI reception status, and the error count indicates the total number of reception errors occurring (see FIG. 51).

次に、専用コントローラ711は、主基板通信LSI610からの受信データを送信バッファ(キャッシュメモリ713)に順次保存し(S525)、その後、受信カウンタを1加算して更新する(S526)。受信カウンタは、主基板通信LSI610から16Byte固定長のデータサイズで送られてくるデータを計数するために用いられる。   Next, the dedicated controller 711 sequentially stores the reception data from the main substrate communication LSI 610 in the transmission buffer (cache memory 713) (S525), and then updates the reception counter by adding 1 (S526). The reception counter is used to count data sent from the main substrate communication LSI 610 with a data size of 16 bytes fixed length.

次に、専用コントローラ711は、タイムアウトタイマをセットし(S527)、この受信割込み処理を終了する。このような副基板通信LSI710のタイムアウトタイマも、パケット単位(伝送単位)で通信エラーを検出するために、少なくとも1Byte分のデータを受信することが可能な待ち時間が計時されるようになっている。具体的にいうと、副基板通信LSI710のタイムアウトタイマは、例えば48ビット(6Byte)分のデータを受信することが可能な待ち時間として、通信速度115200bpsを基に約0.4msecが計時されるように構成されている。   Next, the dedicated controller 711 sets a timeout timer (S527), and ends this reception interrupt process. Such a timeout timer of the sub board communication LSI 710 is also configured to clock a waiting time capable of receiving data of at least 1 byte in order to detect a communication error in a packet unit (transmission unit). . Specifically, the timeout timer of the sub substrate communication LSI 710 measures, for example, about 0.4 msec based on the communication speed of 115,200 bps as a waiting time capable of receiving 48 bits (6 bytes) of data. Is configured.

[初期設定処理(副基板通信LSI)]
図63は、副基板通信LSIによる初期設定処理を示す。図63に示すように、副基板通信LSI710の専用コントローラ711は、第1UART715について初期設定を行う(S541)。具体的にいうと、専用コントローラ711は、設定レジスタ712に予め記憶されている通信仕様等に基づく設定データを参照し、第1UART715のコントロールレジスタにボーレート(送受信に係る通信速度)、送受信時のデータ長、パリティ、ストップビット等をセットする。本実施形態においては、例えば、サブCPU701との間の通信速度が115200bps、データ長が8ビット、パリティが偶数パリティ、ストップビットが1ビットとしてセットされる。
[Initial setting process (sub board communication LSI)]
FIG. 63 shows an initial setting process by the sub board communication LSI. As shown in FIG. 63, the dedicated controller 711 of the sub board communication LSI 710 performs initial setting for the first UART 715 (S541). Specifically, the dedicated controller 711 refers to the setting data based on the communication specification and the like stored in advance in the setting register 712, and transmits the baud rate (the communication speed related to transmission and reception) to the control register of the first UART 715 Set length, parity, stop bit etc. In this embodiment, for example, the communication speed with the sub CPU 701 is set to 115,200 bps, the data length is 8 bits, the parity is an even parity, and the stop bit is 1 bit.

次に、専用コントローラ711は、第2UART716について初期設定を行う(S542)。具体的にいうと、専用コントローラ711は、設定レジスタ712に予め記憶されている通信仕様等に基づく設定データを参照し、第2UART716のコントロールレジスタにボーレート(受信に係る通信速度)、送受信時のデータ長、パリティ、ストップビット等をセットする。本実施形態においては、例えば、主基板通信LSI610との間の通信速度が115200bps、データ長が8ビット、パリティが偶数パリティ、ストップビットが1ビットとしてセットされる。   Next, the dedicated controller 711 initializes the second UART 716 (S 542). Specifically, the dedicated controller 711 refers to the setting data based on the communication specification and the like stored in advance in the setting register 712, and transmits the baud rate (the communication speed related to reception) to the control register of the second UART 716 Set length, parity, stop bit etc. In this embodiment, for example, the communication speed with the main board communication LSI 610 is set to 115,200 bps, the data length is 8 bits, the parity is an even parity, and the stop bit is 1 bit.

次に、専用コントローラ711は、受信に係る通信速度のボーレート設定値から第2UART716の受信時におけるタイムアウト値を算出し(S543)、この初期設定処理を終了する。具体的にいうと、専用コントローラ711は、例えばボーレート設定値が115200bpsで少なくとも48ビット分のデータを受信する場合、1/ボーレート×48によりタイムアウト値として約0.4msecを得る。こうして得られたタイムアウト値は、タイムアウトタイマにセットされる。   Next, the dedicated controller 711 calculates a timeout value at the time of reception of the second UART 716 from the baud rate setting value of the communication speed related to reception (S543), and ends this initial setting process. Specifically, for example, when the baud rate setting value is 115,200 bps and data of at least 48 bits is received, the dedicated controller 711 obtains about 0.4 msec as a timeout value by 1 / baud rate × 48. The timeout value thus obtained is set to the timeout timer.

[受信処理(副基板通信LSI)]
図64は、副基板通信LSIによる受信処理を示す。図64に示すように、副基板通信LSI710の専用コントローラ711は、主基板通信LSI610からの受信データの取得に際してタイムアウトタイマを用いてタイムアウトが発生したか否かを判別する(S561)。
[Reception processing (sub board communication LSI)]
FIG. 64 shows reception processing by the sub board communication LSI. As shown in FIG. 64, the dedicated controller 711 of the secondary substrate communication LSI 710 determines whether a timeout has occurred by using a timeout timer when acquiring received data from the main substrate communication LSI 610 (S561).

S561において、タイムアウトが発生していないと判別した場合、専用コントローラ711は、この受信処理を終了する。一方、タイムアウトが発生したと判別した場合、専用コントローラ711は、受信データは16Byteか否かを判別する(S562)。   If it is determined in S561 that the timeout has not occurred, the dedicated controller 711 ends the reception process. On the other hand, when it is determined that the timeout has occurred, the dedicated controller 711 determines whether the received data is 16 bytes (S562).

S562において、受信データは16Byteでない、例えば16Byte未満であると判別した場合、専用コントローラ711は、副基板通信LSI受信ステータスにエラー情報としてタイムアウトをセットする(S563)。エラー情報としてのタイムアウトは、図51に示すように、副基板通信LSI受信ステータスにおけるビットナンバーB7のビットを「1」としてセットされる。一方、受信データは16Byteであると判別した場合、専用コントローラ711は、次のS564に移る。   If it is determined in S562 that the received data is not 16 Bytes, for example, less than 16 Bytes, the dedicated controller 711 sets a time-out as error information in the sub board communication LSI reception status (S563). As shown in FIG. 51, the timeout as error information is set with the bit of bit number B7 in the sub board communication LSI reception status as “1”. On the other hand, when it is determined that the received data is 16 bytes, the dedicated controller 711 proceeds to the next S564.

次に、専用コントローラ711は、受信データのうちのバイトナンバーD0〜D13のデータについて巡回冗長検査によりCRCを算出する(S564)。   Next, the dedicated controller 711 calculates a CRC by cyclic redundancy check on the data of the byte numbers D0 to D13 of the received data (S564).

次に、専用コントローラ711は、算出したCRCは正常か否かを判別する(S565)。CRCは正常と判別した場合、専用コントローラ711は、後のS567に移る。一方、CRCは異常と判別した場合、専用コントローラ711は、副基板通信LSIパケット種別に論理エラー種類としてCRCエラーをセットする(S566)。副基板通信LSIパケット種別は、図50に示すように、副基板通信LSI710からサブCPU701へと送信されるシリアルデータのバイトナンバーD13のブロックにセットされる。   Next, the dedicated controller 711 determines whether the calculated CRC is normal (S565). If the CRC is determined to be normal, the dedicated controller 711 proceeds to later S567. On the other hand, when the CRC is determined to be abnormal, the dedicated controller 711 sets a CRC error as a logic error type in the sub board communication LSI packet type (S566). The sub board communication LSI packet type is set in the block of the byte number D13 of serial data transmitted from the sub board communication LSI 710 to the sub CPU 701, as shown in FIG.

次に、専用コントローラ711は、送信要求フラグをセットし(S567)、この受信処理を終了する。送信要求フラグは、キャッシュメモリ713の所定領域に確保され、副基板通信LSI710が送信すべきデータの有無を識別するために用いられる。   Next, the dedicated controller 711 sets a transmission request flag (S567), and ends this reception process. The transmission request flag is secured in a predetermined area of the cache memory 713, and is used to identify the presence or absence of data to be transmitted by the sub board communication LSI 710.

[送信処理(副基板通信LSI)]
図65は、副基板通信LSIによる送信処理を示す。図65に示すように、副基板通信LSI710の専用コントローラ711は、送信要求フラグに基づいてデータの送信要求があるか否か、すなわちメインCPU601から主基板通信LSI610を通じて送られてきたコマンド等を含む受信データがあるか否かを判別する(S581)。
[Transmission processing (sub board communication LSI)]
FIG. 65 shows transmission processing by the sub board communication LSI. As shown in FIG. 65, the dedicated controller 711 of the sub substrate communication LSI 710 determines whether there is a data transmission request based on the transmission request flag, that is, it includes a command sent from the main CPU 601 through the main substrate communication LSI 610. It is determined whether or not there is received data (S581).

S581において、データの送信要求があると判別した場合、専用コントローラ711は、主基板通信LSI610からの受信データ(外部通信データ:データ固定長16Byte)のうちのバイトナンバーD0〜D11のブロックを送信バッファにセットする(S582)。続いて、専用コントローラ711は、副基板通信LSI受信ステータスにエラーカウントをセットし(S583)、当該副基板通信LSI受信ステータスをバイトナンバーD12のブロックとして送信バッファにセットする(S584)。   If it is determined in S581 that there is a data transmission request, the dedicated controller 711 transmits the block of byte numbers D0 to D11 of the received data (external communication data: fixed data length of 16 Bytes) from the main board communication LSI 610 as a transmission buffer. Set to (S582). Subsequently, the dedicated controller 711 sets an error count in the sub board communication LSI reception status (S583), and sets the sub board communication LSI reception status in the transmission buffer as a block of the byte number D12 (S584).

また、専用コントローラ711は、副基板通信LSIパケット種別をバイトナンバーD13のブロックとして送信バッファにセットする(S585)。さらに、専用コントローラ711は、送信バッファのバイトナンバーD0〜D13のブロックについて巡回冗長検査によりCRCを計算し、その計算結果としてのCRCデータを送信バッファにセットする(S586)。これにより、送信バッファには、バイトナンバーD0〜D15の16Byteからなる内部通信データ(図50参照)がシリアル形式の送信データとして一時記憶される。   The dedicated controller 711 also sets the sub board communication LSI packet type in the transmission buffer as a block of the byte number D13 (S585). Furthermore, the dedicated controller 711 calculates a CRC by cyclic redundancy check for blocks of byte numbers D0 to D13 of the transmission buffer, and sets CRC data as a calculation result in the transmission buffer (S586). As a result, in the transmission buffer, internal communication data (see FIG. 50) consisting of 16 bytes of byte numbers D0 to D15 is temporarily stored as transmission data in serial format.

こうして送信バッファに送信すべきデータ(D0〜D15)が一時記憶(待機)されると、専用コントローラ711は、最初に第1UART715の送信ポートから通信伝文の開始を示す「STX」に対応するデータを送信する(S587)。   Thus, when data (D0 to D15) to be transmitted to the transmission buffer is temporarily stored (standby), the dedicated controller 711 first transmits data corresponding to "STX" indicating the start of communication message from the transmission port of the first UART 715. Is sent (S587).

そして、専用コントローラ711は、16Byte分のデータ(D0〜D15)を送信したか否かを判別する(S588)。16Byte分のデータ(D0〜D15)を送信したと判別した場合、専用コントローラ711は、受信データ、受信カウンタ、及び送信要求フラグをクリアし(S593)、この送信処理を終了する。   Then, the dedicated controller 711 determines whether 16 bytes of data (D0 to D15) have been transmitted (S588). If it is determined that 16 bytes of data (D0 to D15) have been transmitted, the dedicated controller 711 clears the reception data, the reception counter, and the transmission request flag (S593), and ends this transmission processing.

一方、S588において、16Byte分のデータ(D0〜D15)を送信していないと判別した場合、専用コントローラ711は、現時点のタイミングで送信バッファから出力される送信データは「STX」又は「DLE」と同じ値に該当するか否かを判別する(S589)。   On the other hand, when it is determined in S588 that 16 bytes of data (D0 to D15) are not transmitted, the dedicated controller 711 determines that the transmission data output from the transmission buffer at the current timing is "STX" or "DLE". It is determined whether or not the same value is met (S589).

S589において、送信データは「STX」又は「DLE」と同じ値に該当すると判別した場合、専用コントローラ711は、第1UART715の送信ポートから制御データを含むブロックであることを示す「DLE」に対応するデータを送信し(S590)、該当する送信データについてエスケープ処理を行う(S591)。エスケープ処理では、該当するブロックとその次順以降のブロックのデータ送信順がそれぞれ1つずつ繰り下げられる。一方、送信データは「STX」又は「DLE」と同じ値に該当しないと判別した場合、専用コントローラ711は、「DLE」の送信やエスケープ処理を行うことなく、次のS592に移る。   If it is determined in S589 that the transmission data corresponds to the same value as "STX" or "DLE", the dedicated controller 711 corresponds to "DLE" indicating that the transmission port of the first UART 715 is a block including control data. Data is transmitted (S590), and escape processing is performed on the corresponding transmission data (S591). In the escape process, the data transmission order of the corresponding block and the blocks following the next order is advanced by one each. On the other hand, when it is determined that the transmission data does not correspond to the same value as “STX” or “DLE”, the dedicated controller 711 proceeds to the next S592 without performing “DLE” transmission or escape processing.

次に、専用コントローラ711は、第1UART715の送信ポートから送信バッファにセットとされた送信データ(D0〜D15)を送信し(S592)、その後再びS588に戻る。これにより、送信バッファからは、バイトナンバーD0〜D15を含む内部通信データ(図50参照)がシリアル形式の送信データとして1Byteずつ順次出力される。このようにして副基板通信LSI710からサブCPU701へと送信されるデータは、副基板通信LSI710においてマンチェスター復調及びAES復号化されたものであって、さらに副基板通信LSI710においてバイトナンバーD0〜D15のブロックに「STX」や「DLE」を含む可変長17〜33Byteのデータとされ、通信仕様に基づいて通信速度115200bpsで伝送される。   Next, the dedicated controller 711 transmits the transmission data (D0 to D15) set in the transmission buffer from the transmission port of the first UART 715 (S592), and then returns to S588 again. As a result, from the transmission buffer, internal communication data (see FIG. 50) including byte numbers D0 to D15 are sequentially output as 1 byte of serial transmission data. The data transmitted from sub-substrate communication LSI 710 to sub-CPU 701 in this manner is Manchester-demodulated and AES-decoded in sub-substrate communication LSI 710, and blocks of byte numbers D0 to D15 in sub-substrate communication LSI 710. The data is of variable length 17 to 33 bytes including “STX” and “DLE”, and is transmitted at a communication speed of 115,200 bps based on the communication specification.

次に、図69〜90に示すフローチャートを参照して、メインCPU601、外部出力用通信LSI610A、及び外部端子板制御LSI910の外部出力に係る動作について説明する。   Next, the operation relating to the external output of the main CPU 601, the external output communication LSI 610A, and the external terminal board control LSI 910 will be described with reference to the flowcharts shown in FIGS.

[外部出力用メダルインコマンド登録処理]
図69は、メインCPUによる外部出力用メダルインコマンド登録処理を示す。図69に示すように、メインCPU601は、メダルインコマンドをメインRAM603の外部出力用格納領域(0)にセットする(S601)。外部出力用格納領域(0)は、コマンドのうちのコマンド種別(コマンド情報)を出力するための領域であり、メインRAM603に1バイト分の領域として確保される。
[External output medal in command registration process]
FIG. 69 shows an external output medal in command registration process by the main CPU. As shown in FIG. 69, the main CPU 601 sets a medal-in command in the external output storage area (0) of the main RAM 603 (S601). The external output storage area (0) is an area for outputting the command type (command information) of the commands, and is secured in the main RAM 603 as an area for one byte.

次に、メインCPU601は、メダル投入枚数を外部出力用格納領域(1)にセットし(S602)、この登録処理を終了する。外部出力用格納領域(1)は、コマンドのうちの設定データを出力するための領域であり、メインRAM603に1バイト分の領域として確保される。この場合、外部出力用格納領域(1)には、メダル投入枚数に相当する値として1〜3のいずれかがセットされる。すなわち、外部出力すべきメダルインに係るコマンドがある場合、当該コマンドは、外部出力用通信LSI610Aへと送信されるのに先立ち、コマンド情報(メダルインコマンド)と設定データ(メダル投入枚数)とに分けられ、それぞれの情報が外部出力用格納領域(0)と外部出力用格納領域(1)とにセットされる。   Next, the main CPU 601 sets the number of inserted medals in the external output storage area (1) (S602), and ends this registration process. The external output storage area (1) is an area for outputting setting data of commands, and is secured in the main RAM 603 as an area of 1 byte. In this case, one of 1 to 3 is set in the external output storage area (1) as a value corresponding to the number of inserted medals. That is, when there is a command related to medal in to be output to the outside, the command is divided into command information (medal in command) and setting data (the number of inserted medals) before being transmitted to the external output communication LSI 610A. The respective information is set in the external output storage area (0) and the external output storage area (1).

[外部出力用メダルアウトコマンド登録処理]
図70は、メインCPUによる外部出力用メダルアウトコマンド登録処理を示す。図70に示すように、メインCPU601は、メダル払出枚数があるか否かを判別し(S621)、メダル払出枚数がないと判別した場合は、この登録処理を終了する。一方、S621においてメダル払出枚数があると判別した場合、メインCPU601は、メダルアウトコマンドを外部出力用格納領域(0)にセットする(S622)。
[Medal out command registration process for external output]
FIG. 70 shows an external output medal out command registration process by the main CPU. As shown in FIG. 70, the main CPU 601 determines whether or not the number of paid-out medals is present (S621), and when it is determined that the number of paid-out medals is not present, this registration process is ended. On the other hand, if it is determined in S621 that there is a medal payout number, the main CPU 601 sets a medal out command in the external output storage area (0) (S622).

次に、メインCPU601は、メダル払出枚数を外部出力用格納領域(1)にセットし(S623)、この登録処理を終了する。この場合、外部出力用格納領域(1)には、メダル払出枚数に相当する値として1〜15のいずれかがセットされる。すなわち、外部出力すべきメダルアウトに係るコマンドがある場合、当該コマンドは、外部出力用通信LSI610Aへと送信されるのに先立ち、コマンド情報(メダルアウトコマンド)と設定データ(メダル払出枚数)とに分けられ、これらの情報がそれぞれ外部出力用格納領域(0)と外部出力用格納領域(1)とにセットされる。   Next, the main CPU 601 sets the medal payout number in the external output storage area (1) (S623), and ends this registration process. In this case, any one of 1 to 15 is set in the external output storage area (1) as a value corresponding to the number of medals paid out. That is, when there is a command related to medal out to be output to the outside, the command is sent to the command information (the medal out command) and the setting data (the number of medals paid out) before being transmitted to the external output communication LSI 610A. The information is divided and set in the external output storage area (0) and the external output storage area (1), respectively.

[コマンド外部出力処理]
図71は、メインCPUによるコマンド外部出力処理を示す。図71に示すように、メインCPU601は、外部出力用格納領域(0)又は(1)に外部出力すべきデータが存在するか否かを判別する(S641)。
[Command external output processing]
FIG. 71 shows command external output processing by the main CPU. As shown in FIG. 71, the main CPU 601 determines whether there is data to be externally output in the external output storage area (0) or (1) (S641).

S641において、外部出力用格納領域(0)又は(1)に外部出力すべきデータが存在する場合、メインCPU601は、後述のS649に移る。一方、外部出力用格納領域(0)及び(1)に外部出力すべきデータが存在しない場合、メインCPU601は、図72を参照して後述する外部信号編集処理を行う(S642)。この外部信号編集処理では、外部信号1〜4に係るコマンドが外部出力用格納領域にセットされる。   In S641, when there is data to be externally output in the external output storage area (0) or (1), the main CPU 601 proceeds to S649 described later. On the other hand, when there is no data to be externally output in the external output storage areas (0) and (1), the main CPU 601 performs external signal editing processing described later with reference to FIG. 72 (S642). In this external signal editing process, commands relating to external signals 1 to 4 are set in the external output storage area.

次に、メインCPU601は、再び外部出力用格納領域(0)又は(1)に外部出力すべきデータが存在するか否かを判別する(S643)。   Next, the main CPU 601 determines again whether or not there is data to be externally output in the external output storage area (0) or (1) (S643).

S643において、外部出力用格納領域(0)又は(1)に外部出力すべきデータが存在する場合、メインCPU601は、後述のS649に移る。一方、外部出力用格納領域(0)及び(1)に外部出力すべきデータが存在しない場合、メインCPU601は、セキュリティ信号編集処理を行う(S644)。このセキュリティ信号編集処理では、メインRAM603を用いて外部出力すべきセキュリティ信号の出力状態イメージが必要に応じて時間設定された上で作成される。   In S643, when there is data to be externally output in the external output storage area (0) or (1), the main CPU 601 proceeds to S649 described later. On the other hand, when there is no data to be externally output in the external output storage areas (0) and (1), the main CPU 601 performs security signal editing processing (S644). In this security signal editing process, an output state image of a security signal to be externally output is generated using the main RAM 603 after time setting as necessary.

メインCPU601は、セキュリティ信号に変化があるか否か、セキュリティ信号の出力状態イメージが状態変化を示すものであるか否かを判別する(S645)。セキュリティ信号の出力状態イメージが状態変化を示すものでない場合、メインCPU601は、このコマンド外部出力処理を終了する。一方、セキュリティ信号の出力状態イメージが状態変化を示すものである場合、メインCPU601は、セキュリティコマンド「C0H」を外部出力用格納領域(0)にセットする(S646)。このとき、外部出力用格納領域(1)の下位4ビットには、セキュリティ信号の状態情報(設定データ)がセットされる。   The main CPU 601 determines whether or not there is a change in the security signal, and whether or not the output state image of the security signal indicates a state change (S645). If the output state image of the security signal does not indicate a state change, the main CPU 601 ends this command external output processing. On the other hand, if the output state image of the security signal indicates a state change, the main CPU 601 sets the security command “C0H” in the external output storage area (0) (S646). At this time, status information (setting data) of the security signal is set in the lower 4 bits of the external output storage area (1).

さらに、メインCPU601は、セットしたセキュリティコマンドの出力状態イメージにおいて変化する時間の時間設定値が1以上あるか否かを判別する(S647)。S647において時間設定値が1以上ない、すなわち時間設定値0であってセキュリティ信号の出力状態が維持される場合、メインCPU601は、後述のS649に移る。一方、S647において時間設定値が1以上ある場合、メインCPU601は、当該時間設定値を外部出力用格納領域(1)の上位4ビットにセットする(S648)。   Further, the main CPU 601 determines whether or not there is one or more time setting value of the time to change in the output state image of the set security command (S647). If the time setting value is not 1 or more in S647, that is, the time setting value is 0 and the output state of the security signal is maintained, the main CPU 601 proceeds to S649 described later. On the other hand, when the time setting value is 1 or more in S647, the main CPU 601 sets the time setting value in the upper 4 bits of the external output storage area (1) (S648).

そして、メインCPU601は、最終的に外部出力用格納領域(0)及び外部出力用格納領域(1)にセットされたデータ(コマンド情報及び設定データ)を外部出力用通信LSI610Aに送信し(S649)、このコマンド外部出力処理を終了する。これにより、外部出力用格納領域(0)及び外部出力用格納領域(1)にセットされたコマンドは、メインCPU601内の第2UART601Bを通じて外部出力用通信LSI610Aへと速やかに送信される。コマンドの送信後、外部出力用格納領域(0)及び外部出力用格納領域(1)は、クリアされる。なお、本実施形態のコマンド外部出力処理では、外部出力用格納領域(0)のコマンド情報(1バイト)が送信された後、これに続いて外部出力用格納領域(1)の設定データ(1バイト)が送信されることにより、2バイト単位でコマンドが送信されるようになっている。   Then, the main CPU 601 transmits the data (command information and setting data) finally set in the external output storage area (0) and the external output storage area (1) to the external output communication LSI 610A (S649) , This command ends external output processing. As a result, the commands set in the external output storage area (0) and the external output storage area (1) are promptly transmitted to the external output communication LSI 610A through the second UART 601B in the main CPU 601. After transmission of the command, the external output storage area (0) and the external output storage area (1) are cleared. In the command external output process of this embodiment, after the command information (1 byte) of the external output storage area (0) is transmitted, the setting data (1 of the external output storage area (1) is subsequently provided. By sending the byte), the command is sent in units of 2 bytes.

[外部信号編集処理]
図72は、メインCPUによる外部信号編集処理を示す。図72に示すように、メインCPU601は、外部信号1〜4について状態出力設定があるか否か、すなわち外部信号1〜4を単に継続して外部出力すべきものか否かを判別する(S661)。
[External signal editing process]
FIG. 72 shows an external signal editing process by the main CPU. As shown in FIG. 72, the main CPU 601 determines whether or not there is a state output setting for the external signals 1 to 4, that is, whether or not the external signals 1 to 4 should simply be output continuously (S661) .

S661において、外部信号1〜4に状態出力設定がない場合、すなわち、時間設定値が1以上であって外部信号1〜4を所定時間限定して外部出力すべき場合、メインCPU601は、後述のS666に移る。一方、外部信号1〜4に状態出力設定がある場合、すなわち、時間設定値が0で外部信号1〜4を単に継続して外部出力すべき場合、メインCPU601は、外部信号1〜4に係る外部出力コマンドを外部出力用格納領域(0)にセットする(S662)。このとき、外部出力用格納領域(0)には、仮のコマンド情報として「B0H」がセットされる。   In S661, when there is no state output setting in the external signals 1 to 4, that is, when the time setting value is 1 or more and the external signals 1 to 4 are limited for a predetermined time and externally output, the main CPU 601 Move to S666. On the other hand, when there is a state output setting in external signals 1 to 4, that is, when the time setting value is 0 and external signals 1 to 4 should be simply continuously output to the outside, main CPU 601 relates to external signals 1 to 4 An external output command is set in the external output storage area (0) (S662). At this time, “B0H” is set in the external output storage area (0) as temporary command information.

次に、メインCPU601は、実際に外部出力すべき外部出力コマンドがチェーンコマンドに該当するか否かを判別する(S663)。S663において、実際の外部出力コマンドがチェーンコマンドに該当しない場合、メインCPU601は、後述のS665に移る。一方、実際の外部出力コマンドがチェーンコマンドに該当する場合、メインCPU601は、チェーン情報を含めるべく外部出力用格納領域(0)の値を1加算して再セットする(S664)。これにより、外部出力用格納領域(0)には、実際のコマンド情報に応じた外部出力チェーンコマンドとして「B1H」がセットされる。   Next, the main CPU 601 determines whether an external output command to be actually output to the outside corresponds to a chain command (S663). If the actual external output command does not correspond to a chain command in S663, the main CPU 601 proceeds to S665 described later. On the other hand, if the actual external output command corresponds to a chain command, the main CPU 601 adds one to the value of the external output storage area (0) to reset it to include the chain information (S664). As a result, “B1H” is set in the external output storage area (0) as an external output chain command corresponding to the actual command information.

その後、メインCPU601は、外部信号1〜4の状態情報(設定データ)を外部出力用格納領域(1)の下位4ビットにセットし(S665)、この外部信号編集処理を終了する。これにより、外部出力コマンド又は外部出力チェーンコマンドがある場合、これらのコマンドは、外部出力用通信LSI610Aへと送信されるのに先立ち、コマンド情報と設定データ(外部信号1〜4の状態出力設定情報)とに分けられ、それぞれの情報が外部出力用格納領域(0)と外部出力用格納領域(1)とにセットされる。   Thereafter, the main CPU 601 sets the state information (setting data) of the external signals 1 to 4 in the lower 4 bits of the external output storage area (1) (S665), and ends this external signal editing process. Thus, when there is an external output command or an external output chain command, these commands are sent to the external output communication LSI 610A before command information and setting data (state output setting information of external signals 1 to 4 And each information is set in the external output storage area (0) and the external output storage area (1).

一方、S666において、メインCPU601は、外部信号作成処理を行う。この外部信号作成処理では、メインRAM603の外部信号編集領域を用いて外部出力すべき外部信号1〜4の出力状態イメージが時間設定された上で作成される。   On the other hand, in S666, the main CPU 601 performs external signal generation processing. In this external signal generation processing, output state images of the external signals 1 to 4 to be externally output are generated using the external signal editing area of the main RAM 603 after time setting.

そして、メインCPU601は、外部信号編集領域に変化があるか否か、すなわち外部信号編集領域に作成された外部信号1〜4の出力状態イメージが状態変化を示すものか否かを判別する(S667)。   Then, the main CPU 601 determines whether or not there is a change in the external signal editing area, that is, whether or not the output state image of the external signals 1 to 4 created in the external signal editing area indicates a state change (S667) ).

S667において、外部信号編集領域に変化がなく、外部信号1〜4の出力状態イメージが状態変化を示すものでない場合、メインCPU601は、この外部信号編集処理を終了する。一方、外部信号編集領域に変化があり、外部信号1〜4の出力状態イメージが状態変化を示す場合、さらにメインCPU601は、外部信号編集領域の変化として、外部信号1〜4の出力状態イメージがOFFからONへの変化を示しているか否かを判別する(S668)。   In S667, when there is no change in the external signal editing area and the output state image of the external signals 1 to 4 does not indicate the state change, the main CPU 601 ends the external signal editing process. On the other hand, when there is a change in the external signal editing area and the output state image of the external signals 1 to 4 indicates a state change, the main CPU 601 further outputs the output state images of the external signals 1 to 4 as a change of the external signal editing area. It is determined whether a change from OFF to ON is indicated (S668).

S668において、外部信号1〜4の出力状態イメージがOFFからONへの変化を示している場合、メインCPU601は、外部信号1〜4に係る外部出力ONコマンドを外部出力用格納領域(0)にセットし(S669)、S671に移る。このとき、外部出力用格納領域(0)には、仮のコマンド情報として「B2H」がセットされる。一方、外部信号1〜4の出力状態イメージがOFFからONへの変化とは逆、すなわち、ONからOFFへの変化を示している場合、メインCPU601は、外部信号1〜4に係る外部出力OFFコマンドを外部出力用格納領域(0)にセットし(S670)、S671に移る。このとき、外部出力用格納領域(0)には、仮のコマンド情報として「B4H」がセットされる。   If the output state image of the external signals 1 to 4 indicates a change from OFF to ON in S668, the main CPU 601 sets the external output ON command related to the external signals 1 to 4 to the external output storage area (0). Set (S669) and move on to S671. At this time, “B2H” is set as temporary command information in the external output storage area (0). On the other hand, when the output state image of the external signals 1 to 4 indicates the change opposite to the change from OFF to ON, that is, the change from ON to OFF, the main CPU 601 turns off the external output related to the external signals 1 to 4 The command is set in the external output storage area (0) (S670), and the process proceeds to S671. At this time, “B4H” is set in the external output storage area (0) as temporary command information.

次に、メインCPU601は、実際に外部出力すべきコマンドがチェーンコマンドに該当するか否かを判別する(S671)。S671において、実際のコマンドがチェーンコマンドに該当しない場合、メインCPU601は、後述のS673に移る。一方、実際のコマンドがチェーンコマンドに該当する場合、メインCPU601は、チェーン情報を含めるべく外部出力用格納領域(0)の値を1加算して再セットする(S672)。これにより、外部出力用格納領域(0)には、実際のコマンド情報に応じた外部出力ONチェーンコマンドとして「B3H」、又は、外部出力OFFチェーンコマンドとして「B5H」がセットされる。   Next, the main CPU 601 determines whether a command to be actually output to the outside corresponds to a chain command (S671). If the actual command does not correspond to a chain command in S671, the main CPU 601 proceeds to S673 described later. On the other hand, if the actual command corresponds to a chain command, the main CPU 601 adds one to the value of the external output storage area (0) to reset it to include the chain information (S672). As a result, "B3H" is set in the external output storage area (0) as the external output ON chain command corresponding to the actual command information, or "B5H" as the external output OFF chain command.

その後、メインCPU601は、外部信号編集領域のデータ、すなわち外部信号1〜4の状態情報(設定データ)を外部出力用格納領域(1)の下位4ビットにセットする(S673)。   Thereafter, the main CPU 601 sets data of the external signal editing area, that is, state information (setting data) of the external signals 1 to 4 in the lower 4 bits of the external output storage area (1) (S673).

さらに、メインCPU601は、セットした外部信号1〜4に係るコマンドについて時間設定値が1以上あるか否かを判別する(S674)。S674において時間設定値が1以上ない、すなわち時間設定値が0の場合、メインCPU601は、この外部信号編集処理を終了する。一方、時間設定値が1以上ある場合、メインCPU601は、当該時間設定値を外部出力用格納領域(1)の上位4ビットにセットし(S675)、の外部信号編集処理を終了する。これにより、外部出力ONコマンド、外部出力OFFコマンド、外部出力ONチェーンコマンド、外部出力OFFチェーンコマンドについても、外部出力用通信LSI610Aへと送信されるのに先立ち、コマンド情報と設定データ(外部信号1〜4の状態出力設定情報及び時間設定情報)とに分けられ、それぞれの情報が外部出力用格納領域(0)と外部出力用格納領域(1)とにセットされる。   Further, the main CPU 601 determines whether or not the time setting value is 1 or more for the set external signals 1 to 4 (S674). If the time setting value is not 1 or more in S674, that is, the time setting value is 0, the main CPU 601 ends the external signal editing process. On the other hand, when the time setting value is 1 or more, the main CPU 601 sets the time setting value in the upper 4 bits of the external output storage area (1) (S675), and ends the external signal editing process. As a result, command information and setting data (external signal 1 (external signal 1) are also transmitted prior to transmission of the external output ON command, external output OFF command, external output ON chain command, and external output OFF chain command to the external output communication LSI 610A. The information is divided into an external output storage area (0) and an external output storage area (1).

[メイン制御シーケンス(外部出力用通信LSI)]
図73は、外部出力用通信LSIによるメイン制御シーケンスを示す。図73に示すように、外部出力用通信LSI610Aの専用コントローラ611Aは、主基板通信LSI610と同様の初期設定処理を行う(S681)。この初期設定処理によれば、予め定められた外部集中端子板9Aとの通信仕様に基づいて外部出力に係る各種の設定情報がセットされる。
[Main control sequence (Communication LSI for external output)]
FIG. 73 shows a main control sequence by the external output communication LSI. As shown in FIG. 73, the dedicated controller 611A of the external output communication LSI 610A performs the same initial setting process as the main substrate communication LSI 610 (S681). According to this initial setting process, various setting information relating to the external output is set based on the predetermined communication specification with the external concentrated terminal plate 9A.

次に、専用コントローラ611Aは、図76を参照して説明する受信処理を行う(S682)。この受信処理によれば、メインCPU601から出力されたコマンドが通信仕様に基づいて受信される。この受信処理については後述する。   Next, the dedicated controller 611A performs the reception process described with reference to FIG. 76 (S682). According to this reception process, the command output from the main CPU 601 is received based on the communication specification. The reception process will be described later.

次に、専用コントローラ611Aは、図84を参照して説明する出力制御処理を行う(S683)。その後、専用コントローラ611は、S682に移る。この出力制御処理については後述する。   Next, the dedicated controller 611A performs the output control process described with reference to FIG. 84 (S683). Thereafter, the dedicated controller 611 proceeds to S682. The output control process will be described later.

[受信割込み処理(外部出力用通信LSI)]
図74は、外部出力用通信LSIによる受信割込み処理を示す。図74に示すように、外部出力用通信LSI610Aの専用コントローラ611Aは、メインCPU601から第2UART601B及び第1UART615Aを経由して供給された受信データ(コマンド情報又は設定データ)を取得する(S701)。
[Receive interrupt processing (Communication LSI for external output)]
FIG. 74 shows reception interrupt processing by the external output communication LSI. As shown in FIG. 74, the dedicated controller 611A of the external output communication LSI 610A acquires received data (command information or setting data) supplied from the main CPU 601 via the second UART 601B and the first UART 615A (S701).

次に、専用コントローラ611Aは、メインCPU601から供給された受信データ(コマンド)に物理層エラーがあるか否かを判別する(S702)。この物理層エラーの有無を判別する処理は、主として外部出力用通信LSI610Aに内蔵された第1UART615Aにより行われる。   Next, the dedicated controller 611A determines whether or not there is a physical layer error in the reception data (command) supplied from the main CPU 601 (S702). The process of determining the presence or absence of the physical layer error is mainly performed by the first UART 615A built in the external output communication LSI 610A.

S702において、受信データに物理層エラーがないと判別すると、専用コントローラ611Aは、メインCPU601からの受信データをキャッシュメモリ613Aの受信バッファ領域に一時的に保存し(S703)、この受信割込み処理を終了する。一方、受信データに物理層エラーがあると判別すると、専用コントローラ611Aは、コマンド受信済みフラグをオフにセットし(S704)、この受信割込み処理を終了する。なお、本実施形態においては、物理層エラーがあると判別された受信データは、破棄されるようになっているが、物理層エラーがあることを示す情報とともに保存するようにしてもよい。   If it is determined in S702 that there is no physical layer error in the received data, the dedicated controller 611A temporarily stores the received data from the main CPU 601 in the reception buffer area of the cache memory 613A (S703), and ends this reception interrupt processing. Do. On the other hand, when it is determined that there is a physical layer error in the received data, the dedicated controller 611A sets the command received flag to off (S704), and ends this reception interrupt process. In the present embodiment, the received data determined to have a physical layer error is discarded, but may be stored together with information indicating that a physical layer error is present.

[タイマ割込み処理(5msec)]
図75は、外部出力用通信LSIによるタイマ割込み処理(5msec)を示す。このタイマ割込み処理は、例えばカウンタタイマ回路の信号やプログラマブルタイマの信号を用いて予め定められた5ミリ秒ごとに周期的に実行される処理である。
[Timer interrupt processing (5 msec)]
FIG. 75 shows timer interrupt processing (5 msec) by the external output communication LSI. The timer interrupt process is a process that is periodically executed every five milliseconds, which is predetermined, for example, using a signal of a counter timer circuit or a signal of a programmable timer.

図75に示すように、外部出力用通信LSI610Aの専用コントローラ611Aは、ソフトウェアタイマ数として5をキャッシュメモリ613Aの所定領域にセットし(S721)、ソフトウェアタイマの参照アドレスをキャッシュメモリ613Aの所定領域にセットする(S722)。ソフトウェアタイマ数の「5」は、予備を除くソフトウェア1〜5の数に相当する。ソフトウェアタイマの参照アドレスとしては、ソフトウェアタイマ(1)〜(5)に割り当てられた最初のアドレスがセットされる。   As shown in FIG. 75, the dedicated controller 611A of the external output communication LSI 610A sets 5 as the number of software timers in the predetermined area of the cache memory 613A (S721), and the reference address of the software timer in the predetermined area of the cache memory 613A. It sets (S722). The software timer number “5” corresponds to the number of software 1 to 5 excluding the spare. As the reference address of the software timer, the first address assigned to the software timers (1) to (5) is set.

次に、専用コントローラ611Aは、現時点でのソフトウェアタイマ数が0か否かを判別する(S723)。S723において、ソフトウェアタイマ数が0の場合、専用コントローラ611Aは、このタイマ割込み処理を終了する。一方、ソフトウェアタイマ数が0でない場合、専用コントローラ611Aは、参照アドレスのソフトウェアタイマの状態が計測(1)であるか否かを判別する(S724)。   Next, the dedicated controller 611A determines whether the current number of software timers is 0 (S723). In S723, when the number of software timers is 0, the dedicated controller 611A ends the timer interrupt process. On the other hand, when the number of software timers is not 0, the dedicated controller 611A determines whether the state of the software timer of the reference address is measurement (1) (S724).

S724において、ソフトウェアタイマの状態が計測(1)でない場合、専用コントローラ611Aは、後述のS728に移る。一方、ソフトウェアタイマの状態が計測(1)である場合、専用コントローラ611Aは、ソフトウェアタイマカウンタの値を1減算して更新する(S725)。ソフトウェアタイマカウンタは、減算カウンタとして用いられ、基本的に値が0になるまでタイマ計測状態とされる。   In S724, when the state of the software timer is not measurement (1), the dedicated controller 611A proceeds to S728 described later. On the other hand, when the state of the software timer is measurement (1), the dedicated controller 611A subtracts 1 from the value of the software timer counter to update it (S725). The software timer counter is used as a subtraction counter, and is basically in the timer measurement state until the value becomes zero.

次に、専用コントローラ611Aは、ソフトウェアタイマカウンタの値が0か否かを判別する(S726)。S726において、ソフトウェアタイマカウンタの値が0でない場合、専用コントローラ611Aは、後述のS728に移る。一方、ソフトウェアタイマカウンタの値が0の場合、専用コントローラ611Aは、参照アドレスのソフトウェアタイマの状態を終了(−1)に設定する(S727)。   Next, the dedicated controller 611A determines whether the value of the software timer counter is 0 (S726). If the value of the software timer counter is not 0 in S726, the dedicated controller 611A proceeds to S728 described later. On the other hand, when the value of the software timer counter is 0, the dedicated controller 611A sets the state of the software timer of the reference address to end (-1) (S727).

次に、専用コントローラ611Aは、ソフトウェアタイマのアドレスを3バイト加算して更新する(S728)。その後、専用コントローラ611Aは、ソフトウェアタイマ数を1減算し(S729)、再びS723に戻る。このようなタイマ割込み処理によれば、ソフトウェアタイマ(1)〜(5)ごとに時間計測が行われ、例えば100回繰り返し行われることにより、500msの時間を計測することができる。   Next, the dedicated controller 611A adds and updates the address of the software timer by 3 bytes (S728). Thereafter, the dedicated controller 611A subtracts one from the number of software timers (S729), and returns to S723 again. According to such timer interrupt processing, time measurement is performed for each of the software timers (1) to (5). For example, by repeatedly performing 100 times, a time of 500 ms can be measured.

[受信処理(外部出力用通信LSI)]
図76は、外部出力用通信LSIによる受信処理を示す。図76に示すように、外部出力用通信LSI610Aの専用コントローラ611Aは、メインCPU601からの受信データがキャッシュメモリ613Aの受信バッファ領域にあるか否かを判別する(S741)。
[Receive processing (Communication LSI for external output)]
FIG. 76 shows reception processing by the external output communication LSI. As shown in FIG. 76, the dedicated controller 611A of the external output communication LSI 610A determines whether the reception data from the main CPU 601 is in the reception buffer area of the cache memory 613A (S741).

S741において、メインCPU601からの受信データがない場合、専用コントローラ611Aは、この受信処理を終了する。一方、メインCPU601からの受信データがある場合、専用コントローラ611Aは、受信データの最上位ビットであるBit7がオンであるか否かを判別する(S742)。受信データは、通信エラー等がない限り、コマンド情報であれば最上位ビットBit7が必ずオンであり、設定データであれば最上位ビットBit7が必ずオフになっている。   In S741, when there is no reception data from the main CPU 601, the dedicated controller 611A ends this reception process. On the other hand, when there is received data from the main CPU 601, the dedicated controller 611A determines whether or not the most significant bit Bit 7 of the received data is on (S742). As long as there is no communication error or the like in the received data, the most significant bit Bit7 is always on in the case of command information, and the most significant bit Bit7 is always in the case of setting data.

S742において、受信データの最上位ビット(Bit7)がオンでない場合、専用コントローラ611Aは、後述のS745に移る。一方、受信データの最上位ビット(Bit7)がオンの場合、専用コントローラ611Aは、コマンド受信済みフラグをオンにセットし(S743)、当該受信データをコマンド情報としてキャッシュメモリ614Aの所定領域に保存する(S744)。その後、専用コントローラ611Aは、この受信処理を終了する。   In S742, when the most significant bit (Bit 7) of the received data is not on, the dedicated controller 611A proceeds to S745 described later. On the other hand, when the most significant bit (Bit 7) of the received data is on, the dedicated controller 611A sets the command received flag on (S743), and stores the received data as command information in a predetermined area of the cache memory 614A. (S744). Thereafter, the dedicated controller 611A ends the reception process.

S745において、専用コントローラ611Aは、コマンド受信済みフラグがオンであるか否かを判別する。コマンド受信済みフラグがオンでない場合、専用コントローラ611Aは、この受信処理を終了する。一方、コマンド受信済みフラグがオンの場合、専用コントローラ611Aは、受信データを設定データとしてキャッシュメモリ614Aの設定データ保存領域に保存する(S746)。   In S745, the dedicated controller 611A determines whether the command received flag is on. If the command received flag is not on, the dedicated controller 611A ends this reception process. On the other hand, when the command received flag is on, the dedicated controller 611A stores the received data as setting data in the setting data storage area of the cache memory 614A (S746).

そして、専用コントローラ611Aは、図77を参照して後述するコマンド出力変換処理を実行する(S747)。このコマンド出力変換処理では、コマンド情報及び設定データをワンセットにしてメインCPU601から受信したコマンドが、パラレル信号に適した外部出力用データに変換される。その後、専用コントローラ611Aは、コマンド受信済みフラグをオフにセットし(S748)、この受信処理を終了する。このような受信処理によれば、例えば2バイトからなるコマンドを1バイトずつコマンド情報と設定データとに効率よく区別しながら受け取ることができる。   Then, the dedicated controller 611A executes command output conversion processing described later with reference to FIG. 77 (S747). In this command output conversion process, the command information and the setting data are combined into one set, and the command received from the main CPU 601 is converted into external output data suitable for a parallel signal. Thereafter, the dedicated controller 611A sets the command received flag to OFF (S748), and ends this reception process. According to such reception processing, it is possible to receive, for example, a command consisting of 2 bytes while efficiently discriminating command information and setting data for each byte.

[コマンド出力変換処理]
図77は、外部出力用通信LSIによるコマンド出力変換処理を示す。図77に示すように、外部出力用通信LSI610Aの専用コントローラ611Aは、キャッシュメモリ614Aの所定領域に保存されたコマンド情報を参照することにより、受信したコマンドがメダルインコマンドか否かを判別する(S761)。S761において、受信したコマンドがメダルインコマンドでない場合、専用コントローラ611Aは、S763に移る。一方、受信したコマンドがメダルインコマンドである場合、専用コントローラ611Aは、図78を参照して後述するメダルイン出力変換処理を実行する(S762)。その後、専用コントローラ611Aは、コマンド出力変換処理を終了する。メダルイン出力変換処理では、メダルインに係るコマンドに応じた外部出力用データが生成される。
Command output conversion process
FIG. 77 shows command output conversion processing by the external output communication LSI. As shown in FIG. 77, the dedicated controller 611A of the external output communication LSI 610A determines whether the received command is a medal in command or not by referring to the command information stored in the predetermined area of the cache memory 614A ( S761). In S761, when the received command is not a medal in command, the dedicated controller 611A proceeds to S763. On the other hand, when the received command is a medal in command, the dedicated controller 611A executes a medal in output conversion process described later with reference to FIG. 78 (S762). Thereafter, the dedicated controller 611A ends the command output conversion process. In the medal in output conversion process, external output data is generated according to a command related to medal in.

次に、専用コントローラ611Aは、キャッシュメモリ614Aの所定領域に保存されたコマンド情報を参照することにより、受信したコマンドがメダルアウトコマンドか否かを判別する(S763)。S763において、受信したコマンドがメダルアウトコマンドでない場合、専用コントローラ611Aは、S765に移る。一方、受信したコマンドがメダルアウトコマンドである場合、専用コントローラ611Aは、図79を参照して後述するメダルアウト出力変換処理を実行する(S764)。その後、専用コントローラ611Aは、コマンド出力変換処理を終了する。メダルアウト出力変換処理では、メダルアウトに係るコマンドに応じた外部出力用データが生成される。   Next, the dedicated controller 611A determines whether the received command is a medal out command or not by referring to the command information stored in the predetermined area of the cache memory 614A (S763). If the received command is not a medal out command in S763, the dedicated controller 611A proceeds to S765. On the other hand, when the received command is a medal out command, the dedicated controller 611A executes medal out output conversion processing described later with reference to FIG. 79 (S764). Thereafter, the dedicated controller 611A ends the command output conversion process. In the medal out output conversion process, data for external output corresponding to a command related to medal out is generated.

次に、専用コントローラ611Aは、キャッシュメモリ614Aの所定領域に保存されたコマンド情報を参照することにより、受信したコマンドが外部出力コマンド(外部出力チェーンコマンドを含む)か否かを判別する(S765)。S765において、受信したコマンドが外部出力コマンドでない場合、専用コントローラ611Aは、S767に移る。一方、受信したコマンドが外部出力コマンドまたは外部出力チェーンコマンドである場合、専用コントローラ611Aは、図80を参照して後述する外部出力変換処理を実行する(S766)。その後、専用コントローラ611Aは、コマンド出力変換処理を終了する。外部出力変換処理では、外部信号1〜4に係る外部出力コマンドまたは外部出力チェーンコマンドのコマンドに応じた外部出力用データが生成される。   Next, the dedicated controller 611A determines whether the received command is an external output command (including an external output chain command) or not by referring to the command information stored in the predetermined area of the cache memory 614A (S765) . If it is determined in S765 that the received command is not an external output command, the dedicated controller 611A proceeds to S767. On the other hand, when the received command is an external output command or an external output chain command, the dedicated controller 611A executes an external output conversion process described later with reference to FIG. 80 (S766). Thereafter, the dedicated controller 611A ends the command output conversion process. In the external output conversion process, external output data is generated according to the external output command relating to the external signals 1 to 4 or the command of the external output chain command.

次に、専用コントローラ611Aは、キャッシュメモリ614Aの所定領域に保存されたコマンド情報を参照することにより、受信したコマンドが外部出力ONコマンド(外部出力ONチェーンコマンドを含む)か否かを判別する(S767)。S767において、受信したコマンドが外部出力ONコマンドでない場合、専用コントローラ611Aは、S769に移る。一方、受信したコマンドが外部出力ONコマンドまたは外部出力ONチェーンコマンドである場合、専用コントローラ611Aは、図81を参照して後述する外部出力ON変換処理を実行する(S768)。その後、専用コントローラ611Aは、コマンド出力変換処理を終了する。外部出力ON変換処理では、外部信号1〜4に係る外部出力ONコマンドまたは外部出力ONチェーンコマンドのコマンドに応じた外部出力用データが生成される。   Next, the dedicated controller 611A determines whether the received command is an external output ON command (including an external output ON chain command) by referring to the command information stored in a predetermined area of the cache memory 614A ( S767). If the received command is not the external output ON command in S767, the dedicated controller 611A proceeds to S769. On the other hand, when the received command is the external output ON command or the external output ON chain command, the dedicated controller 611A executes the external output ON conversion process described later with reference to FIG. 81 (S768). Thereafter, the dedicated controller 611A ends the command output conversion process. In the external output ON conversion process, external output data is generated according to the external output ON command related to the external signals 1 to 4 or the command of the external output ON chain command.

次に、専用コントローラ611Aは、キャッシュメモリ614Aの所定領域に保存されたコマンド情報を参照することにより、受信したコマンドが外部出力OFFコマンド(外部出力OFFチェーンコマンドを含む)か否かを判別する(S769)。S769において、受信したコマンドが外部出力OFFコマンドでない場合、専用コントローラ611Aは、S771に移る。一方、受信したコマンドが外部出力OFFコマンドまたは外部出力OFFチェーンコマンドである場合、専用コントローラ611Aは、図82を参照して後述する外部出力OFF変換処理を実行する(S770)。その後、専用コントローラ611Aは、コマンド出力変換処理を終了する。外部出力OFF変換処理では、外部信号1〜4に係る外部出力OFFコマンドまたは外部出力OFFチェーンコマンドのコマンドに応じた外部出力用データが生成される。   Next, the dedicated controller 611A determines whether the received command is an external output OFF command (including an external output OFF chain command) or not by referring to the command information stored in the predetermined area of the cache memory 614A ( S769). If it is determined in S769 that the received command is not an external output OFF command, the dedicated controller 611A proceeds to S771. On the other hand, when the received command is an external output OFF command or an external output OFF chain command, the dedicated controller 611A executes an external output OFF conversion process described later with reference to FIG. 82 (S770). Thereafter, the dedicated controller 611A ends the command output conversion process. In the external output OFF conversion process, external output data is generated according to the external output OFF command relating to the external signals 1 to 4 or the command of the external output OFF chain command.

次に、専用コントローラ611Aは、キャッシュメモリ614Aの所定領域に保存されたコマンド情報を参照することにより、受信したコマンドがセキュリティコマンドか否かを判別する(S771)。S771において、受信したコマンドがセキュリティコマンドでない場合、専用コントローラ611Aは、コマンド出力変換処理を終了する。一方、受信したコマンドがセキュリティコマンドである場合、専用コントローラ611Aは、図83を参照して後述するセキュリティ出力変換処理を実行する(S772)。その後、専用コントローラ611Aは、コマンド出力変換処理を終了する。セキュリティ出力変換処理では、セキュリティ信号に係るセキュリティコマンドのコマンドに応じた外部出力用データが生成される。   Next, the dedicated controller 611A determines whether the received command is a security command or not by referring to the command information stored in the predetermined area of the cache memory 614A (S771). In S771, when the received command is not a security command, the dedicated controller 611A ends the command output conversion process. On the other hand, when the received command is a security command, the dedicated controller 611A executes security output conversion processing described later with reference to FIG. 83 (S772). Thereafter, the dedicated controller 611A ends the command output conversion process. In the security output conversion process, data for external output is generated according to a command of a security command related to a security signal.

[メダルイン出力変換処理]
図78は、外部出力用通信LSIによるメダルイン出力変換処理を示す。図78に示すように、外部出力用通信LSI610Aの専用コントローラ611Aは、キャッシュメモリ614Aの設定データ保存領域に保存された設定データを参照することにより、設定データの値が1〜3に該当するか否かを判別する(S781)。
[Medal In-out conversion process]
FIG. 78 shows medal in output conversion processing by the external output communication LSI. As illustrated in FIG. 78, the dedicated controller 611A of the external output communication LSI 610A refers to the setting data stored in the setting data storage area of the cache memory 614A to determine whether the value of the setting data falls within 1 to 3 It is determined whether or not (S781).

S781において、設定データの値が1〜3に該当しない場合、専用コントローラ611Aは、メダルインに係る設定データを無効として破棄し、メダルイン出力変換処理を終了する。一方、設定データの値が1〜3に該当する場合、専用コントローラ611Aは、キャッシュメモリ614Aにメダルインカウンタの領域を確保し、メダルインカウンタに設定データの値をセットする(S782)。   In S781, when the value of the setting data does not correspond to 1 to 3, the dedicated controller 611A discards the setting data relating to the medal in as invalid, and ends the medal in output conversion process. On the other hand, if the setting data value corresponds to 1 to 3, the dedicated controller 611A secures the area of the medal in counter in the cache memory 614A, and sets the value of the setting data in the medal in counter (S782).

次に、専用コントローラ611Aは、キャッシュメモリ614Aに設けられた出力編集エリアにアクセスし、当該出力編集エリアのBit6をオン状態(1)に設定する(S783)。出力編集エリアのBit6は、メダルインコマンドに対応している。   Next, the dedicated controller 611A accesses the output editing area provided in the cache memory 614A, and sets Bit 6 of the output editing area to the on state (1) (S783). Bit 6 of the output editing area corresponds to the medal in command.

次に、専用コントローラ611Aは、ソフトウェアタイマ(1)のタイマカウンタ値として10をセットする(S784)。このタイマカウンタ値10は、メダルインに係る設定データの値をパルス数として対応付ける際に設定すべき、パルス幅の50msに相当する。   Next, the dedicated controller 611A sets 10 as the timer counter value of the software timer (1) (S784). The timer counter value 10 corresponds to 50 ms of the pulse width to be set when correlating the value of the setting data related to the medal-in as the number of pulses.

次に、専用コントローラ611Aは、ソフトウェアタイマ(1)の状態を示す値として計測(1)をセットし(S785)、メダルイン出力変換処理を終了する。このようなメダルイン出力変換処理によれば、メダルインに係るコマンドに対応し、かつ、単位時間(パルス幅)ごとに状態変化するメダルイン信号に応じた外部出力用データが効率よく生成される。   Next, the dedicated controller 611A sets measurement (1) as a value indicating the state of the software timer (1) (S785), and ends the medal in output conversion process. According to such a medal in output conversion process, data for external output corresponding to the command related to the medal in and according to the medal in signal changing in state every unit time (pulse width) is efficiently generated.

[メダルアウト出力変換処理]
図79は、外部出力用通信LSIによるメダルアウト出力変換処理を示す。図79に示すように、外部出力用通信LSI610Aの専用コントローラ611Aは、キャッシュメモリ614Aの設定データ保存領域に保存された設定データを参照することにより、設定データの値が1〜15に該当するか否かを判別する(S801)。
[Medal out output conversion processing]
FIG. 79 shows medal out output conversion processing by the external output communication LSI. As shown in FIG. 79, the dedicated controller 611A of the external output communication LSI 610A refers to the setting data stored in the setting data storage area of the cache memory 614A to determine whether the value of the setting data falls within 1 to 15 It is determined whether or not it is (S801).

S801において、設定データの値が1〜15に該当しない場合、専用コントローラ611Aは、メダルアウトに係る設定データを無効として破棄し、メダルアウト出力変換処理を終了する。一方、設定データの値が1〜15に該当する場合、専用コントローラ611Aは、キャッシュメモリ614Aにメダルアウトカウンタの領域を確保し、メダルアウトカウンタに設定データの値をセットする(S802)。その後、専用コントローラ611Aは、メダルアウト出力中フラグをオンにセットする(S803)。メダルアウト出力中フラグは、メダルアウト信号が外部出力中にあるか否かを判別するために用いられる。   In S801, when the value of the setting data does not correspond to 1 to 15, the dedicated controller 611A discards the setting data relating to the medal out as invalid, and ends the medal out output conversion processing. On the other hand, when the setting data value corresponds to 1 to 15, the dedicated controller 611A secures the area of the medal out counter in the cache memory 614A, and sets the value of the setting data in the medal out counter (S802). Thereafter, the dedicated controller 611A sets the medal out output flag on (S803). The medal out output flag is used to determine whether a medal out signal is in the external output.

次に、専用コントローラ611Aは、キャッシュメモリ614Aに設けられた出力編集エリアにアクセスし、当該出力編集エリアのBit5をオン状態(1)に設定する(S804)。出力編集エリアのBit5は、メダルアウトコマンドに対応している。   Next, the dedicated controller 611A accesses the output editing area provided in the cache memory 614A, and sets Bit 5 of the output editing area to the on state (1) (S804). Bit 5 of the output editing area corresponds to the medal out command.

次に、専用コントローラ611Aは、ソフトウェアタイマ(2)のタイマカウンタ値として10をセットする(S805)。このタイマカウンタ値10は、メダルアウトに係る設定データの値をパルス数として対応付ける際に設定すべき、パルス幅の50msに相当する。   Next, the dedicated controller 611A sets 10 as the timer counter value of the software timer (2) (S805). The timer counter value 10 corresponds to 50 ms of the pulse width to be set when correlating the value of the setting data related to the medal out as the number of pulses.

次に、専用コントローラ611Aは、ソフトウェアタイマ(2)の状態を示す値として計測(2)をセットし(S806)、メダルアウト出力変換処理を終了する。このようなメダルアウト出力変換処理によれば、メダルアウトに係るコマンドに対応し、かつ、単位時間(パルス幅)ごとに状態変化するメダルアウト信号に応じた外部出力用データが効率よく生成される。   Next, the dedicated controller 611A sets measurement (2) as a value indicating the state of the software timer (2) (S806), and ends the token out output conversion process. According to such a medal out output conversion process, data for external output corresponding to a command related to a medal out and according to a medal out signal that changes state every unit time (pulse width) is efficiently generated. .

[外部出力変換処理]
図80は、外部出力用通信LSIによる外部出力変換処理を示す。図80に示すように、外部出力用通信LSI610Aの専用コントローラ611Aは、受信した外部出力に係るコマンドについて、外部出力チェーンコマンドで、かつ、メダルアウト出力中フラグがオンであるか否かを判別する(S821)。
[External output conversion process]
FIG. 80 shows external output conversion processing by the external output communication LSI. As shown in FIG. 80, the dedicated controller 611A of the external output communication LSI 610A determines whether or not the medal output in progress flag is on for the external output chain command with respect to the received command related to the external output. (S821).

S821において、外部出力チェーンコマンドではなく、あるいは、メダルアウト出力中フラグがオンでない場合、専用コントローラ611Aは、後述のS824に移る。一方、外部出力チェーンコマンドで、かつ、メダルアウト出力中フラグがオンの場合、専用コントローラ611Aは、キャッシュメモリ614Aの設定データ保存領域に保存された設定データからBit0〜Bit3の値を取得し、当該設定データのBit0〜Bit3の値をキャッシュメモリ614Aに設けられたチェーンエリアのBit0〜Bit3にセットする(S822)。設定データのBit0〜Bit3は、外部信号1〜4の状態を示している。   If it is not the external output chain command or the medal out output flag is not on in S821, the dedicated controller 611A proceeds to S824 described later. On the other hand, if it is the external output chain command and the medal out output flag is on, the dedicated controller 611A acquires the values of Bit0 to Bit3 from the setting data stored in the setting data storage area of the cache memory 614A, The values of Bit0 to Bit3 of the setting data are set to Bit0 to Bit3 of the chain area provided in the cache memory 614A (S822). Bit 0 to bit 3 of the setting data indicate the states of the external signals 1 to 4.

次に、専用コントローラ611Aは、チェーンフラグをオンにセットする(S823)。その後、専用コントローラ611Aは、外部出力変換処理を終了する。チェーンフラグは、メダルアウト信号の外部出力が終了した後に続いて外部出力すべき他の信号があるか否かを判別するために用いられる。   Next, the dedicated controller 611A sets the chain flag on (S823). Thereafter, the dedicated controller 611A ends the external output conversion process. The chain flag is used to determine whether there is another signal to be output subsequently after the external output of the medal out signal has ended.

S824において、専用コントローラ611Aは、キャッシュメモリ614Aの設定データ保存領域に保存された設定データからBit0〜Bit3の値を取得し、当該設定データのBit0〜Bit3の値をキャッシュメモリ614Aに設けられた出力編集エリアのBit0〜Bit3にセットする。その後、専用コントローラ611Aは、外部出力変換処理を終了する。このような外部出力変換処理によれば、外部信号1〜4に係る外部出力のコマンドに対応し、かつ、単調な出力状態となる外部信号1〜4に応じた外部出力用データが効率よく生成される。   In S824, the dedicated controller 611A obtains the values of Bit0 to Bit3 from the setting data stored in the setting data storage area of the cache memory 614A, and outputs the values of Bit0 to Bit3 of the setting data to the cache memory 614A. Set Bit0 to Bit3 in the editing area. Thereafter, the dedicated controller 611A ends the external output conversion process. According to such external output conversion processing, external output data corresponding to the external output command related to the external signals 1 to 4 and corresponding to the external signals 1 to 4 in a monotonous output state is efficiently generated Be done.

[外部出力ON変換処理]
図81は、外部出力用通信LSIによる外部出力ON変換処理を示す。図81に示すように、外部出力用通信LSI610Aの専用コントローラ611Aは、受信した外部出力ONに係るコマンドについて、外部出力ONチェーンコマンドで、かつ、メダルアウト出力中フラグがオンであるか否かを判別する(S841)。
[External output ON conversion process]
FIG. 81 shows external output ON conversion processing by the external output communication LSI. As shown in FIG. 81, the dedicated controller 611A of the external output communication LSI 610A is the external output ON chain command and whether the medal out output flag is ON or not for the received command related to the external output ON. It discriminates (S841).

S841において、外部出力ONチェーンコマンドで、かつ、メダルアウト出力中フラグがオンの場合、専用コントローラ611Aは、後述のS847に移る。一方、外部出力ONチェーンコマンドではなく、あるいは、メダルアウト出力中フラグがオンでない場合、専用コントローラ611Aは、キャッシュメモリ614Aの設定データ保存領域に保存された設定データからBit0〜Bit3の値を取得し、当該設定データのBit0〜Bit3の値をキャッシュメモリ614Aに設けられた出力編集エリアのBit0〜Bit3にセットする(S842)。設定データのBit0〜Bit3は、外部信号1〜4のいずれかがオン設定であることを示しており、専用コントローラ611Aは、設定データのBit0〜Bit3のうちオン設定とされたBitを特定している。   In S841, in the case of the external output ON chain command and the medal out in progress flag is ON, the dedicated controller 611A proceeds to S847 described later. On the other hand, if it is not the external output ON chain command or the medal out output flag is not ON, the dedicated controller 611A acquires the values of Bit0 to Bit3 from the setting data stored in the setting data storage area of the cache memory 614A. The values of Bit0 to Bit3 of the setting data are set to Bit0 to Bit3 of the output editing area provided in the cache memory 614A (S842). Bit0 to Bit3 of the setting data indicates that any of the external signals 1 to 4 is on, and the dedicated controller 611A identifies the Bit set to be on among Bit0 to Bit3 of the setting data. There is.

次に、専用コントローラ611Aは、設定データの上位ビットに時間設定値がセットされているか否かを判別する(S843)。S843において、設定データに時間設定値がセットされていない場合、専用コントローラ611Aは、外部出力ONに係る設定データを無効として破棄し、外部出力ON変換処理を終了する。   Next, the dedicated controller 611A determines whether the time setting value is set in the upper bits of the setting data (S843). In S843, when the time setting value is not set in the setting data, the dedicated controller 611A discards the setting data relating to the external output ON as invalid, and ends the external output ON conversion processing.

S843において、設定データに時間設定値がセットされている場合、専用コントローラ611Aは、ソフトウェアタイマ(3)のタイマカウンタ値として、当該時間設定値に10を乗算した値をセットする(S844)。このタイマカウンタ値は、外部信号1〜4のうちオン設定とされた外部信号を所定時間にわたりオン状態として外部出力する際の当該所定時間に相当する。   In S843, when the time setting value is set in the setting data, the dedicated controller 611A sets a value obtained by multiplying the time setting value by 10 as a timer counter value of the software timer (3) (S844). The timer counter value corresponds to the predetermined time when the external signal set to ON among the external signals 1 to 4 is externally output as the ON state for a predetermined time.

次に、専用コントローラ611Aは、ソフトウェアタイマ(3)の状態を示す値として計測(1)をセットする(S845)。その後、専用コントローラ611Aは、出力状態エリアのBit0〜Bit3の値を取得し、設定データのBit0〜Bit3でオン設定とされた対応するBitの値のみをオフ状態の値(0)として外部出力ON計測後復帰エリアに保存する(S846)。その後、専用コントローラ611Aは、外部出力ON変換処理を終了する。この処理によれば、外部出力ONコマンドに対応する外部出力用データの送信に先立ち、当該コマンドにより設定された所定時間経過後に復帰すべき外部信号1〜4の各状態が保存される。   Next, the dedicated controller 611A sets measurement (1) as a value indicating the state of the software timer (3) (S845). After that, the dedicated controller 611A acquires the values of Bit0 to Bit3 of the output state area, and only the value of the corresponding Bit set to ON by Bit0 to Bit3 of the setting data is regarded as the OFF state value (0) and turns on the external output. After measurement, it is stored in the return area (S846). Thereafter, the dedicated controller 611A ends the external output ON conversion process. According to this process, prior to the transmission of the external output data corresponding to the external output ON command, each state of the external signals 1 to 4 to be restored after a predetermined time set by the command is stored.

S847において、専用コントローラ611Aは、チェーンフラグをオンにセットする。次に、専用コントローラ611Aは、設定データの上位ビットに時間設定値がセットされているか否かを判別する(S848)。S848において、設定データに時間設定値がセットされていない場合、専用コントローラ611Aは、設定データのBit0〜Bit3の値をキャッシュメモリ614Aに設けられたチェーンエリアのBit0〜Bit3にセットし(S853)、外部出力ON変換処理を終了する。   In S847, the dedicated controller 611A sets the chain flag on. Next, the dedicated controller 611A determines whether the time setting value is set in the upper bits of the setting data (S848). In S848, when the time setting value is not set in the setting data, the dedicated controller 611A sets the values of Bit0 to Bit3 of the setting data to Bit0 to Bit3 of the chain area provided in the cache memory 614A (S853), End external output ON conversion processing.

S848において、設定データに時間設定値がセットされている場合、専用コントローラ611Aは、ソフトウェアタイマ(3)のタイマカウンタ値として、当該時間設定値に10を乗算した値をセットする(S849)。このタイマカウンタ値は、外部信号1〜4のうちオン設定とされた外部信号をメダルアウト信号の外部出力後に所定時間にわたりオン状態として外部出力する際の当該所定時間に相当する。   In S848, when the time setting value is set in the setting data, the dedicated controller 611A sets a value obtained by multiplying the time setting value by 10 as a timer counter value of the software timer (3) (S849). The timer counter value corresponds to the predetermined time when the external signal set to ON among the external signals 1 to 4 is externally output as the ON state for a predetermined time after the external output of the medal out signal.

次に、専用コントローラ611Aは、ソフトウェアタイマ(3)の状態を示す値として予約(2)をセットする(S850)。その後、専用コントローラ611Aは、設定データのBit0〜Bit3の値をキャッシュメモリ614Aに設けられた外部出力ONエリアのBit0〜Bit3にセットする(S851)。   Next, the dedicated controller 611A sets reservation (2) as a value indicating the state of the software timer (3) (S850). Thereafter, the dedicated controller 611A sets the values of Bit0 to Bit3 of the setting data to Bit0 to Bit3 of the external output ON area provided in the cache memory 614A (S851).

そして、専用コントローラ611Aは、出力状態エリアのBit0〜Bit3の値を取得し、設定データのBit0〜Bit3でオン設定とされた対応するBitの値のみをオフ状態の値(0)として外部出力ON計測後復帰エリアに保存する(S852)。その後、専用コントローラ611Aは、外部出力ON変換処理を終了する。この処理によれば、外部出力ONチェーンコマンドに対応する外部出力用データの送信に先立ち、当該コマンドにより設定された所定時間経過後に復帰すべき外部信号1〜4の各状態が保存される。   Then, the dedicated controller 611A acquires the values of Bit0 to Bit3 of the output state area, and sets only the value of the corresponding Bit set to ON by Bit0 to Bit3 of the setting data as the value of the OFF state (0). After measurement, it is stored in the return area (S852). Thereafter, the dedicated controller 611A ends the external output ON conversion process. According to this process, prior to the transmission of the external output data corresponding to the external output ON chain command, each state of the external signals 1 to 4 to be restored after a predetermined time set by the command is stored.

[外部出力OFF変換処理]
図82は、外部出力用通信LSIによる外部出力OFF変換処理を示す。図82に示すように、外部出力用通信LSI610Aの専用コントローラ611Aは、受信した外部出力OFFに係るコマンドについて、外部出力OFFチェーンコマンドで、かつ、メダルアウト出力中フラグがオンであるか否かを判別する(S861)。
[External output OFF conversion process]
FIG. 82 shows external output OFF conversion processing by the external output communication LSI. As shown in FIG. 82, the dedicated controller 611A of the external output communication LSI 610A determines whether or not the medal output in progress flag is on for the external output OFF chain command and for the received command related to the external output OFF. It discriminates (S861).

S861において、外部出力OFFチェーンコマンドで、かつ、メダルアウト出力中フラグがオンの場合、専用コントローラ611Aは、後述のS867に移る。一方、外部出力OFFチェーンコマンドではなく、あるいは、メダルアウト出力中フラグがオンでない場合、専用コントローラ611Aは、キャッシュメモリ614Aの設定データ保存領域に保存された設定データからBit0〜Bit3の値を取得し、当該設定データのBit0〜Bit3でオフ設定とされたBitの値のみをオフ状態の値(0)としてキャッシュメモリ614Aに設けられた出力編集エリアのBit0〜Bit3にセットする(S862)。設定データのBit0〜Bit3は、外部信号1〜4のいずれかがオフ設定であることを示しており、専用コントローラ611Aは、設定データのBit0〜Bit3のうちオフ設定とされたBitを特定している。   If it is the external output OFF chain command and the medal out output flag is on in S861, the dedicated controller 611A proceeds to S867 described later. On the other hand, when it is not the external output OFF chain command or the medal out output flag is not on, the dedicated controller 611A acquires the values of Bit0 to Bit3 from the setting data stored in the setting data storage area of the cache memory 614A. Only the value of Bit set to OFF in Bit0 to Bit3 of the setting data is set to Bit0 to Bit3 of the output editing area provided in the cache memory 614A as the OFF state value (0) (S862). Bit 0 to Bit 3 of the setting data indicates that any of the external signals 1 to 4 is set to off, and the dedicated controller 611A identifies the Bit set to be off among Bit 0 to Bit 3 of the setting data. There is.

次に、専用コントローラ611Aは、設定データの上位ビットに時間設定値がセットされているか否かを判別する(S863)。S863において、設定データに時間設定値がセットされていない場合、専用コントローラ611Aは、外部出力OFFに係る設定データを無効として破棄し、外部出力OFF変換処理を終了する。   Next, the dedicated controller 611A determines whether the time setting value is set in the upper bits of the setting data (S863). In S863, when the time setting value is not set in the setting data, the dedicated controller 611A discards the setting data relating to the external output OFF as invalid, and ends the external output OFF conversion processing.

S863において、設定データに時間設定値がセットされている場合、専用コントローラ611Aは、ソフトウェアタイマ(4)のタイマカウンタ値として、当該時間設定値に10を乗算した値をセットする(S864)。このタイマカウンタ値は、外部信号1〜4のうちオフ設定とされた外部信号を所定時間にわたりオフ状態(0)として外部出力する際の当該所定時間に相当する。   If the time setting value is set in the setting data in S863, the dedicated controller 611A sets a value obtained by multiplying the time setting value by 10 as a timer counter value of the software timer (4) (S864). The timer counter value corresponds to the predetermined time when the external signal set to OFF among the external signals 1 to 4 is externally output as the OFF state (0) for a predetermined time.

次に、専用コントローラ611Aは、ソフトウェアタイマ(4)の状態を示す値として計測(1)をセットする(S865)。その後、専用コントローラ611Aは、出力状態エリアのBit0〜Bit3の値を取得し、設定データのBit0〜Bit3でオフ設定とされた対応するBitの値のみをオン状態の値(1)として外部出力OFF計測後復帰エリアに保存する(S866)。その後、専用コントローラ611Aは、外部出力OFF変換処理を終了する。この処理によれば、外部出力OFFコマンドに対応する外部出力用データの送信に先立ち、当該コマンドにより設定された所定時間経過後に復帰すべき外部信号1〜4の各状態が保存される。   Next, the dedicated controller 611A sets measurement (1) as a value indicating the state of the software timer (4) (S865). After that, the dedicated controller 611A acquires the values of Bit0 to Bit3 of the output state area, and only the value of the corresponding Bit set to Off by Bit0 to Bit3 of the setting data is regarded as the ON state value (1), and the external output is OFF. After measurement, it is stored in the return area (S866). Thereafter, the dedicated controller 611A ends the external output OFF conversion process. According to this process, prior to transmission of the external output data corresponding to the external output OFF command, each state of the external signals 1 to 4 to be restored after a predetermined time set by the command is stored.

S867において、専用コントローラ611Aは、チェーンフラグをオンにセットする。次に、専用コントローラ611Aは、設定データの上位ビットに時間設定値がセットされているか否かを判別する(S868)。S868において、設定データに時間設定値がセットされていない場合、専用コントローラ611Aは、設定データのBit0〜Bit3でオフ設定とされたBitの値のみをオフ状態の値(0)としてキャッシュメモリ614Aに設けられたチェーンエリアのBit0〜Bit3にセットし(S873)、外部出力OFF変換処理を終了する。   At S867, the dedicated controller 611A sets the chain flag on. Next, the dedicated controller 611A determines whether the time setting value is set in the upper bits of the setting data (S868). In S868, when the time setting value is not set in the setting data, the dedicated controller 611A sets the value of Bit set to OFF in Bit 0 to Bit 3 of the setting data as the OFF state value (0) to the cache memory 614A. It sets to Bit0-Bit3 of the provided chain area (S873), and complete | finishes external output OFF conversion processing.

S868において、設定データに時間設定値がセットされている場合、専用コントローラ611Aは、ソフトウェアタイマ(4)のタイマカウンタ値として、当該時間設定値に10を乗算した値をセットする(S869)。このタイマカウンタ値は、外部信号1〜4のうちオフ設定とされた外部信号をメダルアウト信号の外部出力後に所定時間にわたりオフ状態として外部出力する際の当該所定時間に相当する。   In S868, when the time setting value is set in the setting data, the dedicated controller 611A sets a value obtained by multiplying the time setting value by 10 as a timer counter value of the software timer (4) (S869). The timer counter value corresponds to the predetermined time when the external signal of the external signals 1 to 4 is turned off is externally outputted as the off state for a predetermined time after the external output of the medal out signal.

次に、専用コントローラ611Aは、ソフトウェアタイマ(4)の状態を示す値として予約(2)をセットする(S870)。その後、専用コントローラ611Aは、設定データのBit0〜Bit3でオフ設定とされたBitの値のみをオフ状態の値(0)としてキャッシュメモリ614Aに設けられた外部出力OFFエリアのBit0〜Bit3にセットする(S871)。   Next, the dedicated controller 611A sets reservation (2) as a value indicating the state of the software timer (4) (S870). Thereafter, the dedicated controller 611A sets only the value of Bit set to OFF in Setting data Bit0 to Bit3 as the OFF state value (0) to Bit0 to Bit3 of the external output OFF area provided in the cache memory 614A. (S871).

そして、専用コントローラ611Aは、出力状態エリアのBit0〜Bit3の値を取得し、設定データのBit0〜Bit3でオフ設定とされた対応するBitの値のみをオン状態の値(1)として外部出力OFF計測後復帰エリアに保存する(S872)。その後、専用コントローラ611Aは、外部出力OFF変換処理を終了する。この処理によれば、外部出力OFFチェーンコマンドに対応する外部出力用データの送信に先立ち、当該コマンドにより設定された所定時間経過後に復帰すべき外部信号1〜4の各状態が保存される。   Then, the dedicated controller 611A acquires the values of Bit0 to Bit3 of the output state area, and outputs only the value of the corresponding Bit set to Off by Bit0 to Bit3 of the setting data as the value of the on state (1). After measurement, it is stored in the return area (S872). Thereafter, the dedicated controller 611A ends the external output OFF conversion process. According to this process, prior to the transmission of the external output data corresponding to the external output OFF chain command, each state of the external signals 1 to 4 to be restored after the elapse of the predetermined time set by the command is stored.

[セキュリティ出力変換処理]
図83は、外部出力用通信LSIによるセキュリティ出力変換処理を示す。図83に示すように、外部出力用通信LSI610Aの専用コントローラ611Aは、受信した設定データの最下位ビットとなるBit0の値を出力編集エリアのBit4にセットする(S881)。設定データのBit0には、外部出力すべきセキュリティ情報が有ることを示す値(0又は1)がセットされている。
[Security output conversion process]
FIG. 83 shows security output conversion processing by the external output communication LSI. As shown in FIG. 83, the dedicated controller 611A of the external output communication LSI 610A sets the value of Bit 0, which is the least significant bit of the received setting data, to Bit 4 of the output editing area (S881). In Bit 0 of the setting data, a value (0 or 1) indicating that there is security information to be externally output is set.

次に、専用コントローラ611Aは、設定データの上位ビットに時間設定値がセットされているか否かを判別する(S882)。S882において、設定データに時間設定値がセットされていない場合、専用コントローラ611Aは、そのままセキュリティ出力変換処理を終了する。この場合、単に継続して外部出力すべきセキュリティ信号S2に係る外部出力用データが生成されることなる。   Next, the dedicated controller 611A determines whether the time setting value is set in the upper bits of the setting data (S882). In S 882, when the time setting value is not set in the setting data, the dedicated controller 611 A ends the security output conversion process as it is. In this case, data for external output relating to the security signal S2 to be output to the outside simply and continuously is generated.

S882において、設定データに時間設定値がセットされている場合、専用コントローラ611Aは、ソフトウェアタイマ(5)のタイマカウンタ値として、当該時間設定値に10を乗算した値をセットする(S883)。このタイマカウンタ値は、セキュリティ信号S1を所定時間にわたり外部出力する際の当該所定時間に相当する。   In S882, when the time setting value is set in the setting data, the dedicated controller 611A sets a value obtained by multiplying the time setting value by 10 as a timer counter value of the software timer (5) (S883). The timer counter value corresponds to the predetermined time when the security signal S1 is externally output for a predetermined time.

次に、専用コントローラ611Aは、ソフトウェアタイマ(5)の状態を示す値として計測(1)をセットする(S884)。   Next, the dedicated controller 611A sets measurement (1) as a value indicating the state of the software timer (5) (S884).

次に、専用コントローラ611Aは、設定データのBit0の論理反転値、すなわち所定時間経過後に復帰すべき状態の値(設定データのBit0が“1”の場合は“0”)をセキュリティ計測後復帰エリアに保存する(S885)。その後、専用コントローラ611Aは、セキュリティ出力変換処理を終了する。このようなセキュリティ出力変換処理によれば、セキュリティコマンドのコマンドに対応し、かつ、セキュリティ信号S1,S2に応じた外部出力用データが効率よく生成される。   Next, the dedicated controller 611A restores the post-security measurement area of the logically inverted value of Bit 0 of the setting data, that is, the value of the state to be restored after a predetermined time has elapsed (“0” when Bit 0 of the setting data is “1”). (S885). Thereafter, the dedicated controller 611A ends the security output conversion process. According to such security output conversion processing, data for external output corresponding to the security command and efficiently corresponding to the security signals S1 and S2 are generated.

[出力制御処理]
図84は、外部出力用通信LSIによる出力制御処理を示す。図84に示すように、外部出力用通信LSI610Aの専用コントローラ611Aは、メダルイン出力制御処理(図85参照)、メダルアウト出力制御処理(図86参照)、設定出力制御処理(図87参照)、時間復帰出力制御処理(図88参照)を順次実行する(S901〜S904)。これらの処理については後述する。
[Output control processing]
FIG. 84 shows output control processing by the external output communication LSI. As shown in FIG. 84, the dedicated controller 611A of the external output communication LSI 610A performs medal in output control processing (see FIG. 85), medal out output control processing (see FIG. 86), setting output control processing (see FIG. 87), time The recovery output control process (see FIG. 88) is sequentially executed (S901 to S904). These processes will be described later.

その後、専用コントローラ611Aは、出力編集エリアと出力状態エリアとが同一内容か否かを判別する(S905)。S905において、出力編集エリアと出力状態エリアとが同一内容である場合、専用コントローラ611Aは、出力制御処理を終了する。一方、出力編集エリアと出力状態エリアとが異なる内容の場合、専用コントローラ611Aは、出力編集エリアの内容を出力状態エリアに上書き保存する(S906)。   Thereafter, the dedicated controller 611A determines whether the output editing area and the output state area have the same content (S905). In S905, when the output editing area and the output state area have the same content, the dedicated controller 611A ends the output control process. On the other hand, when the output editing area and the output state area have different contents, the dedicated controller 611A overwrites and saves the contents of the output editing area in the output state area (S906).

次に、専用コントローラ611Aは、出力状態エリアのBit0〜Bit7の値で示されるデータ(外部出力用データ)を外部端子板制御LSI910に送信し、出力制御処理を終了する。この出力制御処理によれば、外部出力すべきコマンドに応じた外部出力用データが外部出力用通信LSI610Aから外部端子板制御LSI910へと効率よく送信される。   Next, the dedicated controller 611A transmits data (data for external output) indicated by the values of Bit 0 to Bit 7 in the output state area to the external terminal board control LSI 910, and ends the output control process. According to this output control process, external output data according to the command to be externally output is efficiently transmitted from the external output communication LSI 610A to the external terminal board control LSI 910.

[メダルイン出力制御処理]
図85は、外部出力用通信LSIによるメダルイン出力制御処理を示す。図85に示すように、外部出力用通信LSI610Aの専用コントローラ611Aは、ソフトウェアタイマ(1)の状態が終了(−1)か否かを判別する(S921)。
[Medal-in output control processing]
FIG. 85 shows a token-in output control process by the external output communication LSI. As shown in FIG. 85, the dedicated controller 611A of the external output communication LSI 610A determines whether the state of the software timer (1) is end (-1) or not (S921).

S921において、ソフトウェアタイマ(1)の状態が終了(−1)でない場合、すなわち、ソフトウェアタイマ(1)の状態が停止(0)、計測(1)、予約(2)のいずれかにある場合、専用コントローラ611Aは、メダルイン出力制御処理を終了する。一方、ソフトウェアタイマ(1)の状態が終了(−1)の場合、専用コントローラ611Aは、出力編集エリアのBit6がオン状態(1)か否かを判別する(S922)。   In S921, if the state of the software timer (1) is not over (-1), that is, if the state of the software timer (1) is in any of stop (0), measurement (1), or reservation (2), The dedicated controller 611A ends the medal in output control process. On the other hand, when the state of the software timer (1) is ended (-1), the dedicated controller 611A determines whether Bit 6 of the output editing area is in the on state (1) (S922).

S922において、出力編集エリアのBit6がオン状態でなくオフ状態(0)の場合、専用コントローラ611Aは、後述のS926に移る。一方、出力編集エリアのBit6がオン状態(1)の場合、専用コントローラ611Aは、出力編集エリアのBit6をオフ状態(0)にセットする(S923)。   In S922, when Bit 6 of the output editing area is not in the on state but in the off state (0), the dedicated controller 611A proceeds to S926 described later. On the other hand, when Bit 6 of the output editing area is in the on state (1), the dedicated controller 611A sets Bit 6 of the output editing area to the off state (0) (S923).

次に、専用コントローラ611Aは、ソフトウェアタイマ(1)のタイマカウンタ値として10をセットする(S924)。このタイマカウンタ値は、メダルイン信号が外部出力される際のパルス幅に相当する。   Next, the dedicated controller 611A sets 10 as the timer counter value of the software timer (1) (S924). The timer counter value corresponds to the pulse width when the medal in signal is output to the outside.

次に、専用コントローラ611Aは、ソフトウェアタイマ(1)の状態を示す値として計測(1)をセットする(S925)。その後、専用コントローラ611Aは、メダルイン出力制御処理を終了する。   Next, the dedicated controller 611A sets measurement (1) as a value indicating the state of the software timer (1) (S925). Thereafter, the dedicated controller 611A ends the medal in output control process.

S926において、専用コントローラ611Aは、メダルインカウンタの値を1減算する。次に、専用コントローラ611Aは、メダルインカウンタの値が0か否かを判別する(S927)。   In S926, the dedicated controller 611A subtracts one from the value of the medal in counter. Next, the dedicated controller 611A determines whether the value of the medal in counter is 0 (S927).

S927において、メダルインカウンタの値が0の場合、専用コントローラ611Aは、後述のS931に移る。一方、メダルインカウンタの値が0でない場合、専用コントローラ611Aは、出力編集エリアのBit6をオン状態(1)にセットする(S928)。   If the value of the medal in counter is 0 in S927, the dedicated controller 611A proceeds to S931 described later. On the other hand, if the value of the medal in counter is not 0, the dedicated controller 611A sets Bit 6 of the output editing area to the on state (1) (S928).

次に、専用コントローラ611Aは、ソフトウェアタイマ(1)のタイマカウンタ値として10をセットする(S929)。その後、専用コントローラ611Aは、ソフトウェアタイマ(1)の状態を示す値として計測(1)をセットする(S930)。その後、専用コントローラ611Aは、メダルイン出力制御処理を終了する。   Next, the dedicated controller 611A sets 10 as the timer counter value of the software timer (1) (S929). Thereafter, the dedicated controller 611A sets measurement (1) as a value indicating the state of the software timer (1) (S930). Thereafter, the dedicated controller 611A ends the medal in output control process.

S931において、専用コントローラ611Aは、ソフトウェアタイマ(1)の状態を示す値として停止(0)をセットする。その後、専用コントローラ611Aは、メダルイン出力制御処理を終了する。このようなメダルイン出力制御処理によれば、50msごとにオン状態(1)/オフ状態(0)となり、メダル投入枚数に応じたパルス数となるメダルイン信号の出力状態イメージが外部出力用データとして出力編集エリアに作成される。   In S931, the dedicated controller 611A sets stop (0) as a value indicating the state of the software timer (1). Thereafter, the dedicated controller 611A ends the medal in output control process. According to such medal in output control processing, the output state image of the medal in signal which becomes the on state (1) / off state (0) every 50 ms and which has the pulse number corresponding to the number of inserted medals is output as data for external output Created in the editing area.

[メダルアウト出力制御処理]
図86は、外部出力用通信LSIによるメダルアウト出力制御処理を示す。図86に示すように、外部出力用通信LSI610Aの専用コントローラ611Aは、ソフトウェアタイマ(2)の状態が終了(−1)か否かを判別する(S941)。
[Medal out output control processing]
FIG. 86 shows medal out output control processing by the external output communication LSI. As shown in FIG. 86, the dedicated controller 611A of the external output communication LSI 610A determines whether the state of the software timer (2) is end (-1) or not (S941).

S941において、ソフトウェアタイマ(2)の状態が終了(−1)でない場合、すなわち、ソフトウェアタイマ(2)の状態が停止(0)、計測(1)、予約(2)のいずれかにある場合、専用コントローラ611Aは、メダルアウト出力制御処理を終了する。一方、ソフトウェアタイマ(2)の状態が終了(−1)の場合、専用コントローラ611Aは、出力編集エリアのBit5がオン状態(1)か否かを判別する(S942)。   In S941, if the state of the software timer (2) is not over (-1), that is, if the state of the software timer (2) is in any of stop (0), measurement (1), or reservation (2), The dedicated controller 611A ends the medal out output control process. On the other hand, when the state of the software timer (2) is ended (-1), the dedicated controller 611A determines whether Bit 5 of the output editing area is in the on state (1) (S942).

S942において、出力編集エリアのBit5がオン状態でなくオフ状態(0)の場合、専用コントローラ611Aは、後述のS946に移る。一方、出力編集エリアのBit5がオン状態(1)の場合、専用コントローラ611Aは、出力編集エリアのBit5をオフ状態(0)にセットする(S943)。   In S942, if Bit 5 of the output editing area is not ON but OFF (0), the dedicated controller 611A proceeds to S946 described later. On the other hand, when Bit 5 of the output editing area is in the on state (1), the dedicated controller 611A sets Bit 5 of the output editing area to the off state (0) (S943).

次に、専用コントローラ611Aは、ソフトウェアタイマ(2)のタイマカウンタ値として10をセットする(S944)。このタイマカウンタ値は、メダルアウト信号が外部出力される際のパルス幅に相当する。   Next, the dedicated controller 611A sets 10 as the timer counter value of the software timer (2) (S944). The timer counter value corresponds to the pulse width when the medal out signal is output to the outside.

次に、専用コントローラ611Aは、ソフトウェアタイマ(2)の状態を示す値として計測(1)をセットする(S945)。その後、専用コントローラ611Aは、メダルアウト出力制御処理を終了する。   Next, the dedicated controller 611A sets measurement (1) as a value indicating the state of the software timer (2) (S945). Thereafter, the dedicated controller 611A ends the medal out output control process.

S946において、専用コントローラ611Aは、メダルアウトカウンタの値を1減算する。次に、専用コントローラ611Aは、メダルアウトカウンタの値が0か否かを判別する(S947)。   In S946, the dedicated controller 611A subtracts one from the value of the medal out counter. Next, the dedicated controller 611A determines whether the value of the medal out counter is 0 (S947).

S947において、メダルアウトカウンタの値が0の場合、専用コントローラ611Aは、後述のS951に移る。一方、メダルアウトカウンタの値が0でない場合、専用コントローラ611Aは、出力編集エリアのBit5をオン状態(1)にセットする(S948)。   In S947, when the value of the medal out counter is 0, the dedicated controller 611A proceeds to S951 described later. On the other hand, if the value of the medal out counter is not 0, the dedicated controller 611A sets Bit 5 of the output editing area to the on state (1) (S948).

次に、専用コントローラ611Aは、ソフトウェアタイマ(2)のタイマカウンタ値として10をセットする(S949)。その後、専用コントローラ611Aは、ソフトウェアタイマ(2)の状態を示す値として計測(1)をセットする(S950)。その後、専用コントローラ611Aは、メダルアウト出力制御処理を終了する。   Next, the dedicated controller 611A sets 10 as the timer counter value of the software timer (2) (S949). Thereafter, the dedicated controller 611A sets measurement (1) as a value indicating the state of the software timer (2) (S950). Thereafter, the dedicated controller 611A ends the medal out output control process.

S951において、専用コントローラ611Aは、ソフトウェアタイマ(2)の状態を示す値として停止(0)をセットする。その後、専用コントローラ611Aは、メダルアウト出力中フラグをオフにセットし(S952)、メダルアウト出力制御処理を終了する。このようなメダルアウト出力制御処理によれば、50msごとにオン状態(1)/オフ状態(0)となり、メダル払出枚数に応じたパルス数となるメダルアウト信号の出力状態イメージが外部出力用データとして出力編集エリアに作成される。   At S951, the dedicated controller 611A sets stop (0) as a value indicating the state of the software timer (2). Thereafter, the dedicated controller 611A sets the medal out output flag to off (S952), and ends the medal out output control process. According to such medal out output control processing, the output state image of the medal out signal which becomes the on state (1) / off state (0) every 50 ms and which has the pulse number corresponding to the number of medals paid out is data for external output Is created in the output editing area as

[設定出力制御処理]
図87は、外部出力用通信LSIによる設定出力制御処理を示す。図87に示すように、外部出力用通信LSI610Aの専用コントローラ611Aは、チェーンフラグがオンで、かつ、メダルアウト出力中フラグがオフであるか否かを判別する(S961)。
[Setting output control process]
FIG. 87 shows setting output control processing by the external output communication LSI. As shown in FIG. 87, the dedicated controller 611A of the external output communication LSI 610A determines whether the chain flag is on and the medal out output flag is off (S961).

S961において、チェーンフラグがオンでなく、又は、メダルアウト出力中フラグがオフでない場合、専用コントローラ611Aは、設定出力制御処理を終了する。一方、チェーンフラグがオンで、かつ、メダルアウト出力中フラグがオフの場合、専用コントローラ611Aは、チェーンフラグをオフにセットする(S962)。   In S961, if the chain flag is not on or the medal out output flag is not off, the dedicated controller 611A ends the setting output control process. On the other hand, when the chain flag is on and the medal out output flag is off, the dedicated controller 611A sets the chain flag to off (S962).

次に、専用コントローラ611Aは、ソフトウェアタイマ(3)又はソフトウェアタイマ(4)の状態を示す値として予約(2)がセットされているか否かを判別する(S963)。   Next, the dedicated controller 611A determines whether reservation (2) is set as a value indicating the state of the software timer (3) or the software timer (4) (S963).

S963において、ソフトウェアタイマ(3)及びソフトウェアタイマ(4)の状態がいずれも予約(2)にセットされていない場合、専用コントローラ611Aは、後述のS970に移る。一方、ソフトウェアタイマ(3)又はソフトウェアタイマ(4)のいずれかの状態が予約(2)にセットされている場合、専用コントローラ611Aは、ソフトウェアタイマ(3)の状態が予約(2)にセットされているか否かを判別する(S964)。   If the states of the software timer (3) and the software timer (4) are not set to reservation (2) in S963, the dedicated controller 611A proceeds to S970 described later. On the other hand, when either the software timer (3) or the software timer (4) is set to reservation (2), the dedicated controller 611A sets the state of the software timer (3) to reservation (2). It is determined whether or not (S964).

S964において、ソフトウェアタイマ(3)の状態が予約(2)にセットされていない場合、専用コントローラ611Aは、後述のS967に移る。一方、ソフトウェアタイマ(3)の状態が予約(2)にセットされている場合、専用コントローラ611Aは、現時点で予約状態にあるソフトウェアタイマ(3)の状態を新たに計測(1)としてセットする(S965)。   If the state of the software timer (3) is not set to reservation (2) at S964, the dedicated controller 611A proceeds to S967 described later. On the other hand, when the state of the software timer (3) is set to reservation (2), the dedicated controller 611A newly sets the state of the software timer (3) currently in the reservation state as measurement (1) S965).

次に、専用コントローラ611Aは、外部出力ONエリアのBit0〜Bit3の値を出力編集エリアのBit0〜Bit3にセットする(S966)。その後、専用コントローラ611Aは、設定出力制御処理を終了する。   Next, the dedicated controller 611A sets the values of Bit0 to Bit3 of the external output ON area to Bit0 to Bit3 of the output editing area (S966). Thereafter, the dedicated controller 611A ends the setting output control process.

S967において、専用コントローラ611Aは、ソフトウェアタイマ(4)の状態が予約(2)にセットされているか否かを判別する。   At S967, the dedicated controller 611A determines whether the state of the software timer (4) is set to reservation (2).

S967において、ソフトウェアタイマ(4)の状態が予約(2)にセットされていない場合、専用コントローラ611Aは、設定出力制御処理を終了する。一方、ソフトウェアタイマ(4)の状態が予約(2)にセットされている場合、専用コントローラ611Aは、現時点で予約状態にあるソフトウェアタイマ(4)の状態を新たに計測(1)としてセットする(S968)。   In S967, when the state of the software timer (4) is not set to reservation (2), the dedicated controller 611A ends the setting output control process. On the other hand, when the state of the software timer (4) is set to reservation (2), the dedicated controller 611A newly sets the state of the software timer (4) currently in the reservation state as measurement (1) S968).

次に、専用コントローラ611Aは、外部出力OFFエリアのBit0〜Bit3の値を出力編集エリアのBit0〜Bit3にセットする(S969)。その後、専用コントローラ611Aは、設定出力制御処理を終了する。   Next, the dedicated controller 611A sets the values of Bit0 to Bit3 of the external output OFF area in Bit0 to Bit3 of the output editing area (S969). Thereafter, the dedicated controller 611A ends the setting output control process.

S970において、専用コントローラ611Aは、チェーンエリアのBit0〜Bit3の値を出力編集エリアのBit0〜Bit3にセットする。その後、専用コントローラ611Aは、設定出力制御処理を終了する。このような設定出力制御処理によれば、メダルアウト信号の出力後に外部出力すべき外部出力ONチェーンコマンドあるいは外部出力OFFチェーンコマンドに係る外部信号1〜4の出力状態イメージが外部出力用データとして出力編集エリアに作成される。   In S970, the dedicated controller 611A sets the values of Bit0 to Bit3 of the chain area to Bit0 to Bit3 of the output editing area. Thereafter, the dedicated controller 611A ends the setting output control process. According to such setting output control processing, the output state image of the external signals 1 to 4 relating to the external output ON chain command or the external output OFF chain command to be externally output after the medal out signal is output as the external output data Created in the editing area.

[時間復帰出力制御処理]
図88は、外部出力用通信LSIによる時間復帰出力制御処理を示す。図88に示すように、外部出力用通信LSI610Aの専用コントローラ611Aは、ソフトウェアタイマ(3)の状態が終了(−1)か否かを判別する(S981)。
[Time return output control process]
FIG. 88 shows a time recovery output control process by the external output communication LSI. As shown in FIG. 88, the dedicated controller 611A of the external output communication LSI 610A determines whether or not the state of the software timer (3) is end (-1) (S981).

S981において、ソフトウェアタイマ(3)の状態が終了(−1)でない場合、専用コントローラ611Aは、後述のS984に移る。一方、ソフトウェアタイマ(3)の状態が終了(−1)の場合、専用コントローラ611Aは、外部出力ON計測後復帰エリアのBit0〜Bit3の値を出力編集エリアのBit0〜Bit3にセットする(S982)。   If the state of the software timer (3) is not ended (-1) in S981, the dedicated controller 611A proceeds to S984 described later. On the other hand, when the state of the software timer (3) is ended (-1), the dedicated controller 611A sets the values of Bit0 to Bit3 of the recovery area after external output ON measurement to Bit0 to Bit3 of the output editing area (S982) .

次に、専用コントローラ611Aは、ソフトウェアタイマ(3)の状態として停止(0)をセットする(S983)。その後、専用コントローラ611Aは、時間復帰出力制御処理を終了する。   Next, the dedicated controller 611A sets stop (0) as the state of the software timer (3) (S983). Thereafter, the dedicated controller 611A ends the time recovery output control process.

S984において、専用コントローラ611Aは、ソフトウェアタイマ(4)の状態が終了(−1)か否かを判別する。   In S984, the dedicated controller 611A determines whether the state of the software timer (4) is over (−1).

S984において、ソフトウェアタイマ(4)の状態が終了(−1)でない場合、専用コントローラ611Aは、後述のS987に移る。一方、ソフトウェアタイマ(4)の状態が終了(−1)の場合、専用コントローラ611Aは、外部出力OFF計測後復帰エリアのBit0〜Bit3の値を出力編集エリアのBit0〜Bit3にセットする(S985)。   If the state of the software timer (4) is not ended (-1) in S984, the dedicated controller 611A proceeds to S987 described later. On the other hand, when the state of the software timer (4) is ended (-1), the dedicated controller 611A sets the values of Bit0 to Bit3 of the recovery area after external output OFF measurement to Bit0 to Bit3 of the output editing area (S985) .

次に、専用コントローラ611Aは、ソフトウェアタイマ(4)の状態として停止(0)をセットする(S986)。その後、専用コントローラ611Aは、時間復帰出力制御処理を終了する。   Next, the dedicated controller 611A sets stop (0) as the state of the software timer (4) (S986). Thereafter, the dedicated controller 611A ends the time recovery output control process.

S987において、専用コントローラ611Aは、ソフトウェアタイマ(5)の状態が終了(−1)か否かを判別する。   In S987, the dedicated controller 611A determines whether the state of the software timer (5) is over (−1).

S987において、ソフトウェアタイマ(5)の状態が終了(−1)でない場合、専用コントローラ611Aは、時間復帰出力制御処理を終了する。一方、ソフトウェアタイマ(5)の状態が終了(−1)の場合、専用コントローラ611Aは、セキュリティ計測後復帰エリアのBit4の値を出力編集エリアのBit4にセットする(S988)。   If the state of the software timer (5) is not ended (-1) in S987, the dedicated controller 611A ends the time recovery output control process. On the other hand, when the state of the software timer (5) is ended (-1), the dedicated controller 611A sets the value of Bit 4 of the return area after security measurement to Bit 4 of the output editing area (S988).

次に、専用コントローラ611Aは、ソフトウェアタイマ(5)の状態として停止(0)をセットする(S989)。その後、専用コントローラ611Aは、時間復帰出力制御処理を終了する。このような時間復帰出力制御処理によれば、外部出力ONコマンドや外部出力ONチェーンコマンド、あるいは外部出力OFFコマンドや外部出力OFFチェーンコマンドに係る外部信号1〜4、若しくはセキュリティ信号S1の出力後における出力状態イメージが外部出力用データとして出力編集エリアに作成される。   Next, the dedicated controller 611A sets stop (0) as the state of the software timer (5) (S989). Thereafter, the dedicated controller 611A ends the time recovery output control process. According to such time return output control processing, after the output of the external output ON command, the external output ON chain command, or the external signals 1 to 4 related to the external output OFF command or the external output OFF chain command, or the security signal S1. An output state image is created in the output editing area as data for external output.

[メイン制御シーケンス(外部端子板制御LSI)]
図89は、外部端子板制御LSIによるメイン制御シーケンスを示す。図89に示すように、外部端子板制御LSI910の専用コントローラ911は、外部出力用通信LSI610Aと同様、、すなわち主基板通信LSI610と同様の初期設定処理を行う(S1001)。この初期設定処理によれば、予め定められた主基板6Aとの通信仕様に基づいて外部出力に係る各種の設定情報がセットされる。
[Main control sequence (external terminal board control LSI)]
FIG. 89 shows a main control sequence by the external terminal board control LSI. As shown in FIG. 89, the dedicated controller 911 of the external terminal board control LSI 910 performs the same initial setting processing as the external output communication LSI 610A, that is, the same as the main substrate communication LSI 610 (S1001). According to this initial setting process, various setting information related to the external output is set based on the predetermined communication specification with the main substrate 6A.

次に、専用コントローラ911は、図90を参照して後述する受信割込み処理により受信したデータ(外部出力用データ)と出力エリアとが同一内容か否かを判別する(S1002)。出力エリアは、キャッシュメモリ913に設けられるワーキングエリアであって、出力状態エリア等と同様のビット列により構成される1バイトの領域であり、この出力エリアには、現時点で外部出力される各信号の出力状態がセットされる。   Next, the dedicated controller 911 determines whether the data (data for external output) received by the reception interrupt process described later with reference to FIG. 90 and the output area have the same content (S1002). The output area is a working area provided in the cache memory 913, and is an area of 1 byte composed of a bit string similar to the output state area etc. The output state is set.

S1002において、受信データ(外部出力用データ)と出力エリアとが同一内容である場合、専用コントローラ911は、それらが異なる内容として認識されるまでS1002の処理を繰り返し実行する。一方、受信データ(外部出力用データ)と出力エリアとが異なる内容の場合、専用コントローラ911は、当該受信データを出力エリアにセットする(S1003)。   In S1002, when the received data (data for external output) and the output area have the same contents, the dedicated controller 911 repeatedly executes the process of S1002 until they are recognized as different contents. On the other hand, if the received data (data for external output) and the output area have different contents, the dedicated controller 911 sets the received data in the output area (S1003).

そして、専用コントローラ911は、出力エリアのデータをGPIOインターフェース924を通じて出力する(S1004)。その後、専用コントローラ911は、S1002に戻る。このような外部端子板制御LSI910のメイン制御シーケンスによれば、外部出力用通信LSI610Aから送信されてくる外部出力用データをそのまま出力するだで、各種のコマンドに応じた信号(メダルイン信号、メダルアウト信号、外部信号1〜4、セキュリティ信号)を適切な出力状態のパラレル信号としつつ適切な出力タイミングでホールコンピュータ1000へと外部出力することができる。外部出力された信号は、ホールコンピュータ1000により入力され、ホールコンピュータ1000では、入力した信号に基づいて遊技状態やセキュリティ状態が解析される。   Then, the dedicated controller 911 outputs the data of the output area through the GPIO interface 924 (S1004). Thereafter, the dedicated controller 911 returns to S1002. According to such a main control sequence of the external terminal board control LSI 910, the external output data transmitted from the external output communication LSI 610A is output as it is, and signals (medal in signals, medal out) corresponding to various commands are output. The signal, the external signals 1 to 4 and the security signal can be externally output to the hall computer 1000 at an appropriate output timing while being a parallel signal in an appropriate output state. The signal output to the outside is input by the hall computer 1000, and the hall computer 1000 analyzes the gaming state and the security state based on the input signal.

[受信割込み処理(外部端子板制御LSI)]
図90は、外部端子板制御LSIによる受信割込み処理を示す。図90に示すように、外部端子板制御LSI910の専用コントローラ911は、外部出力用通信LSI610Aから送信された外部出力用データを受信し、当該外部出力用データを受信データとして取得する(S1021)。
[Receive interrupt processing (external terminal board control LSI)]
FIG. 90 shows reception interrupt processing by the external terminal board control LSI. As shown in FIG. 90, the dedicated controller 911 of the external terminal board control LSI 910 receives the external output data transmitted from the external output communication LSI 610A, and acquires the external output data as received data (S1021).

次に、専用コントローラ911は、受信データ(外部出力用データ)に物理層エラーがあるか否かを判別する(S1022)。   Next, the dedicated controller 911 determines whether there is a physical layer error in the received data (data for external output) (S1022).

S1022において、受信データに物理層エラーがないと判別すると、専用コントローラ911は、受信データをキャッシュメモリ913の受信バッファ領域に一時的に保存し(S1023)、この受信割込み処理を終了する。一方、受信データに物理層エラーがあると判別すると、専用コントローラ911は、何らエラー処理を行うことなく受信割込み処理を終了する。このように、本実施形態においては、物理層エラーがあると判別された受信データは、破棄されるようになっているが、物理層エラーがあることを示す情報とともに保存するようにしてもよい。   If it is determined in S1022 that there is no physical layer error in the received data, the dedicated controller 911 temporarily stores the received data in the reception buffer area of the cache memory 913 (S1023), and ends this reception interrupt process. On the other hand, when it is determined that there is a physical layer error in the received data, the dedicated controller 911 ends the reception interrupt process without performing any error process. As described above, in the present embodiment, received data determined to have a physical layer error is discarded, but may be stored together with information indicating that a physical layer error is present. .

以上説明したように、本実施形態のパチスロ1によれば、次のような効果が得られる。   As described above, according to the pachi slot 1 of the present embodiment, the following effects can be obtained.

本実施形態のパチスロ1では、メインCPU601が時間情報を含むコマンドや時間情報を含まないコマンドを外部出力用通信LSI610Aへと送信するだけで、外部出力用通信LSI610Aがコマンドに時間情報が含まれるか否かを判別し、時間情報が含まれる場合は、その時間情報に基づいて所定時間を計時し、所定時間の計時中、汎用入出力方式に対応した外部出力用データが外部端子板制御LSI910へと送信される。一方、コマンドに時間情報が含まれない場合、汎用入出力方式でコマンドに応じた外部出力用データが外部端子板制御LSI910へと送信される。   In the pachislot 1 of the present embodiment, whether the main CPU 601 transmits a command including time information or a command not including time information to the external output communication LSI 610A, does the external output communication LSI 610A include time information in the command? If time information is included, a predetermined time is measured based on the time information, and during measurement of the predetermined time, external output data corresponding to the general-purpose input / output system is sent to the external terminal board control LSI 910. Will be sent. On the other hand, when time information is not included in the command, external output data corresponding to the command in the general-purpose input / output method is transmitted to the external terminal board control LSI 910.

その結果、外部端子板制御LSI910は、コマンドに時間情報が含まれていた場合、所定時間にわたり汎用入出力方式で外部出力用データに応じた外部信号1〜4やセキュリティ信号を外部出力し、コマンドに時間情報が含まれていない場合、汎用入出力方式で外部出力用データに応じた外部信号1〜4やセキュリティ信号を時間的な制約を受けずに速やかに外部出力する。これにより、メインCPU601は、シリアル通信方式に準じたコマンドを送信するだけでよく、その送信に際して時間計測を行うかの判断や時間計測自体を行う必要がないので、メインCPU601の通信用プログラムを大規模化することなくプログラム容量を抑えることができ、ひいては通信システムを構築する上での設計負担を軽減することができる。   As a result, when the time information is included in the command, the external terminal board control LSI 910 externally outputs the external signals 1 to 4 and the security signal according to the external output data in the general-purpose input / output method for a predetermined time. When the time information is not included, the external signals 1 to 4 and the security signal according to the data for external output in the general-purpose input / output system are rapidly output to the outside without being subject to time constraints. As a result, the main CPU 601 only needs to transmit a command conforming to the serial communication method, and it is not necessary to determine whether or not to measure time upon transmission, and it is not necessary to measure time itself. The program capacity can be reduced without scaling, and thus the design load in constructing a communication system can be reduced.

また、本実施形態のパチスロ1では、メインCPU601から外部出力用通信LSI610Aへとコマンドが送信され、外部出力用通信LSI610Aから外部端子板制御LSI910へと外部出力用データが送信される。その際、外部出力用データは、AES回路614Aにより共通鍵暗号方式で暗号化され、さらに第2マンチェスター回路619Aで二相位相偏移変調方式により変調された上で送信される。   Further, in the pachi slot 1 of the present embodiment, a command is transmitted from the main CPU 601 to the external output communication LSI 610A, and external output data is transmitted from the external output communication LSI 610A to the external terminal board control LSI 910. At this time, the external output data is encrypted according to the common key encryption system by the AES circuit 614A, and further modulated according to the binary phase shift keying modulation system with the second Manchester circuit 619A and then transmitted.

そして、外部端子板制御LSI910では、外部出力用通信LSI610Aから受信した外部出力用データが、第2マンチェスター回路919で二相位相偏移変調方式により復調され、さらに復調された外部出力用データがAES回路914で共通鍵暗号方式により復号化された後、外部出力用データに基づくパラレル信号が外部出力される。   Then, in the external terminal board control LSI 910, the external output data received from the external output communication LSI 610A is demodulated by the second Manchester circuit 919 by the binary phase shift keying modulation method, and the external output data further demodulated is AES After being decrypted by the common key encryption method in the circuit 914, a parallel signal based on the external output data is externally output.

これにより、本実施形態のパチスロ1によれば、二相位相偏移変調方式により外部出力用データを正しく安定的に送受信することができる。また、外部出力用通信LSI610Aと外部端子板制御LSI910との間で二相位相偏移変調方式により外部出力用データを送受信する際には、クロックレートをデータに埋め込むことができるので、非同期通信方式によっても効率よくデータの送受信を行うことができる。   Thereby, according to the pachislot 1 of the present embodiment, it is possible to correctly and stably transmit and receive external output data by the binary phase shift keying system. In addition, when data for external output is transmitted / received between the external output communication LSI 610A and the external terminal board control LSI 910 by binary phase shift keying, the clock rate can be embedded in the data. Can also transmit and receive data efficiently.

また、本実施形態のパチスロ1では、メインCPU601がOFF時間情報を含む外部出力OFFコマンドや外部出力OFFチェーンコマンドに係るコマンドを外部出力用通信LSI610Aへと送信するだけで、外部出力用通信LSI610AがOFF時間情報に基づいて所定時間を計時し、その所定時間の計時中、汎用入出力方式に対応して外部出力オフ状態を指示する外部出力用データが外部端子板制御LSI910へと送信される。   Further, in the pachislot 1 of the present embodiment, the external output communication LSI 610A simply transmits the external output OFF command including the OFF time information and the command related to the external output OFF chain command to the external output communication LSI 610A. A predetermined time is measured based on the OFF time information, and during the predetermined time measurement, external output data instructing an external output OFF state corresponding to the general-purpose input / output system is transmitted to the external terminal board control LSI 910.

その結果、外部端子板制御LSI910は、所定時間にわたり汎用入出力方式で外部出力OFFコマンドや外部出力OFFチェーンコマンドに係る外部出力用データに応じた外部信号1〜4のいずれかをオフ状態として外部出力する。その後、所定時間の計時が終了すると、汎用入出力方式に対応して外部出力の状態復帰を指示する外部出力用データが外部端子板制御LSI910へと送信される。その結果、外部端子板制御LSI910は、所定時間経過後に汎用入出力方式で元の状態に復帰された外部信号1〜4を外部出力する。   As a result, the external terminal board control LSI 910 turns off one of the external signals 1 to 4 corresponding to the external output data related to the external output OFF command or the external output OFF chain command in the general-purpose input / output mode over a predetermined time. Output. Thereafter, when the clocking of the predetermined time is completed, external output data instructing the state recovery of the external output corresponding to the general-purpose input / output system is transmitted to the external terminal board control LSI 910. As a result, the external terminal board control LSI 910 externally outputs the external signals 1 to 4 restored to the original state by the general purpose input / output method after a predetermined time has elapsed.

これによっても、メインCPU601は、シリアル通信方式に準じたコマンドを送信するだけでよく、その送信に際して時間計測を行う必要がないので、メインCPU601の通信処理による負荷を軽減することができる。   Also in this case, the main CPU 601 only needs to transmit a command conforming to the serial communication method, and there is no need to measure time in the transmission, so that the load due to the communication processing of the main CPU 601 can be reduced.

また、本実施形態のパチスロ1では、メインCPU601がメダルアウトコマンドに係るコマンドを送信し、例えばその直後に、外部出力チェーンコマンド、外部出力ONチェーンコマンド、外部出力OFFチェーンコマンドに係るコマンドを外部出力用通信LSI610Aへと送信することも可能である。   Further, in the pachislot 1 of the present embodiment, the main CPU 601 transmits a command related to the medal out command, and for example, immediately after that, the external output chain command, the external output ON chain command, and the command related to the external output OFF chain command are externally output It is also possible to transmit to the communication LSI 610A.

この場合、外部出力用通信LSI610Aがメダルアウトコマンドに係るコマンドに応じた汎用入出力方式に対応する外部出力用データを生成した後、外部出力チェーンコマンド、外部出力ONチェーンコマンド、外部出力OFFチェーンコマンドに係るコマンドに応じた汎用入出力方式に対応する外部出力用データを生成することとなる。   In this case, after the external output communication LSI 610A generates external output data corresponding to the general-purpose input / output method according to the command related to the medal out command, the external output chain command, the external output ON chain command, and the external output OFF chain command Data for external output corresponding to the general-purpose input / output method according to the command related to.

これにより、メダルアウトコマンドに対応する外部出力用データが外部端子板制御LSI910へと送信された後、外部出力チェーンコマンド、外部出力ONチェーンコマンド、外部出力OFFチェーンコマンドに対応する外部出力用データが外部端子板制御LSI910へと送信される。その結果、外部端子板制御LSI910は、汎用入出力方式でメダルアウト信号を外部出力した後、外部出力チェーンコマンド、外部出力ONチェーンコマンド、外部出力OFFチェーンコマンドに対応する外部信号1〜4を外部出力することとなる。   As a result, after the external output data corresponding to the medal out command is transmitted to the external terminal board control LSI 910, the external output data corresponding to the external output chain command, the external output ON chain command, and the external output OFF chain command The external terminal board control LSI 910 is transmitted. As a result, after the external terminal board control LSI 910 externally outputs the medal out signal in the general-purpose input / output method, the external output chain command, the external output ON chain command, and the external signal 1-4 corresponding to the external output OFF chain command are externally output. It will be output.

従って、メインCPU601は、シリアル通信方式に準じてメダルアウトコマンドに係るコマンドを送信した直後に、外部出力チェーンコマンド、外部出力ONチェーンコマンド、外部出力OFFチェーンコマンドに係るコマンドを送信することによっても、それぞれのコマンドに応じたメダルアウト信号及び外部信号1〜4を順序よく外部出力することができ、ひいては信号の入力先となるホールコンピュータ1000の処理負担を軽減することができる。   Therefore, the main CPU 601 can also transmit commands relating to the external output chain command, the external output ON chain command, and the external output OFF chain command immediately after transmitting the command related to the medal out command according to the serial communication method. The medal out signal and the external signals 1 to 4 according to the respective commands can be outputted in order to the outside, and the processing load of the hall computer 1000 to which the signal is inputted can be alleviated.

また、本実施形態のパチスロ1では、メインCPU601がメダルアウトコマンドに係るコマンド及び外部出力OFFチェーンコマンドに係るコマンドを外部出力用通信LSI610Aへと送信すると、外部出力用通信LSI610Aは、メダルアウトコマンドに係るコマンドに応じた汎用入出力方式に対応するメダルアウト信号を外部出力すべき旨の外部出力用データを生成した後、外部出力OFFチェーンコマンドに応じた汎用入出力方式に対応して指定された外部信号1〜4のオフ状態を指示するオフ指定の外部出力用データを生成する一方、当該外部信号1〜4のオン状態を指示するオン指定の外部出力用データを生成することとなる。   Further, in the pachislot 1 of the present embodiment, when the main CPU 601 transmits the command related to the medal out command and the command related to the external output OFF chain command to the external output communication LSI 610A, the external output communication LSI 610A generates the medal out command. After data for external output to the effect that a medal out signal corresponding to the general purpose input / output method according to the command should be externally output is generated, and designated according to the general purpose input / output method according to the external output OFF chain command While generating off-designated external output data for instructing the off state of the external signals 1 to 4, it generates on-designed external output data for instructing the on state of the external signals 1 to 4.

そして、メダルアウト信号に係る外部出力用データが外部端子板制御LSI910へと送信されると、外部端子板制御LSI910は、汎用入出力方式でメダルアウト信号を外部出力する。その後、外部出力用通信LSI610Aは、外部出力OFFチェーンコマンドに含まれる設定データに基づいて所定時間を計時し、その所定時間の計時中、汎用入出力方式に対応するオフ指定の外部出力用データを外部端子板制御LSI910へと送信する。   Then, when the external output data relating to the medal out signal is transmitted to the external terminal board control LSI 910, the external terminal board control LSI 910 externally outputs the medal out signal by a general-purpose input / output method. Thereafter, the external output communication LSI 610A measures a predetermined time based on the setting data included in the external output OFF chain command, and during the predetermined time, the external output data designated for OFF corresponding to the general-purpose input / output system Transmit to external terminal board control LSI 910.

その結果、外部端子板制御LSI910は、所定時間にわたり汎用入出力方式でオフ指定された外部信号1〜4をオフ状態として外部出力する。そして、所定時間の計時が終了すると、汎用入出力方式に対応してオン指定とされた外部出力用データが外部端子板制御LSI910へと送信される。その結果、外部端子板制御LSI910は、所定時間経過後にオン指定された外部信号1〜4をオン状態として外部出力する。   As a result, the external terminal board control LSI 910 externally outputs the external signals 1 to 4 designated to be off in the general-purpose input / output method for a predetermined time as the off state. Then, when the clocking of the predetermined time is completed, the external output data that is turned on corresponding to the general purpose input / output method is transmitted to the external terminal board control LSI 910. As a result, the external terminal board control LSI 910 externally outputs the external signals 1 to 4 designated to be on after the elapse of a predetermined time as the on state.

これにより、メインCPU601は、シリアル通信方式に準じて直ちにメダルアウトコマンドに係るコマンド及び外部出力OFFチェーンコマンドを送信することによっても、メダルアウト信号の次に指定された外部信号1〜4が所定時間にわたりオフ状態で外部出力され、その後遅れて同一の外部信号1〜4がオン状態として外部出力されるので、メインCPU601の通信処理による負荷を軽減することができる。   As a result, the main CPU 601 immediately transmits the command related to the medal out command and the external output OFF chain command according to the serial communication method, and the external signals 1 to 4 specified next to the medal out signal also take a predetermined time. The external signals are externally output in the off state, and the same external signals 1 to 4 are externally output as the on state after a delay, and therefore the load due to the communication processing of the main CPU 601 can be reduced.

また、本実施形態のパチスロ1では、メインCPU601がオン状態の時間設定値を指定した設定データを含む、外部出力ONコマンドや外部出力ONチェーンコマンド、さらにはセキュリティコマンドに係るコマンドを外部出力用通信LSI610Aへと送信する。   Further, in the pachislot 1 of the present embodiment, the external output ON command, the external output ON chain command, and the command related to the security command, which include setting data specifying the time setting value of the main CPU 601 in the on state, Send to LSI 610A.

この場合、外部出力用通信LSI610Aは、そのような時間設定値に基づいて所定時間を計時し、その所定時間の計時中、汎用入出力方式に対応して外部出力オン状態を指示する外部出力ONコマンドや外部出力ONチェーンコマンド、さらにはセキュリティコマンドに対応する外部出力用データが外部端子板制御LSI910へと送信される。   In this case, the external output communication LSI 610A measures a predetermined time based on such a time setting value, and during the predetermined time, the external output ON instructs the external output ON state according to the general-purpose input / output method. A command, an external output ON chain command, and data for external output corresponding to a security command are transmitted to the external terminal board control LSI 910.

その結果、外部端子板制御LSI910は、所定時間にわたり汎用入出力方式でオン指定の外部出力用データに応じた外部信号1〜4やセキュリティ信号を外部出力する。一方、所定時間の計時開始前や所定時間の計時が終了すると、汎用入出力方式に対応して外部出力の状態維持や状態復帰を指示する外部出力用データが外部端子板制御LSI910へと送信される。その結果、外部端子板制御LSI910は、所定時間の計時開始前や所定時間経過後に汎用入出力方式で元の出力状態として外部信号1〜4やセキュリティ信号を外部出力する。これにより、メインCPU601は、シリアル通信方式に準じたコマンドを送信するだけでよく、その送信に際して時間計測を行う必要がないので、メインCPU601の通信処理による負荷を軽減することができる。   As a result, the external terminal board control LSI 910 externally outputs the external signals 1 to 4 and the security signal according to the external output data specified to be ON in the general-purpose input / output method over a predetermined time. On the other hand, when the clocking of the predetermined time is started or the clocking of the predetermined time is finished, the external output data instructing the state maintenance or the state return of the external output corresponding to the general purpose input / output method is transmitted to the external terminal board control LSI 910 Ru. As a result, the external terminal board control LSI 910 externally outputs the external signals 1 to 4 and the security signal as the original output state in the general-purpose input / output method before or after the start of counting of the predetermined time. As a result, the main CPU 601 only needs to transmit a command conforming to the serial communication method, and there is no need to measure time at the time of the transmission, so the load due to the communication processing of the main CPU 601 can be reduced.

また、本実施形態においては、メインCPU601から主基板通信LSI610へと固定データ長8Byteとして各種のコマンドが送信され、主基板通信LSI610から副基板通信LSI710へとより大きい固定データ長16Byteとしてコマンドを含む外部通信データが送信され、さらに副基板通信LSI710からサブCPU701へと17〜33Byteの可変データ長としてコマンドを含む内部通信データが送信される。   Further, in the present embodiment, various commands are transmitted from the main CPU 601 to the main substrate communication LSI 610 as the fixed data length 8 bytes, and the commands are included as the larger fixed data length 16 bytes from the main substrate communication LSI 610 to the sub substrate communication LSI 710. External communication data is transmitted, and further, internal communication data including a command as a variable data length of 17 to 33 bytes is transmitted from sub substrate communication LSI 710 to sub CPU 701.

これにより、サブCPU701は、コマンドだけでなくその他の通信エラーに関する情報を含む内部通信データを受信することができる。すなわち、サブCPU701においては、メインCPU601からコマンドのみを受信する場合よりも受信データサイズが大きい内部通信データを受信するので、受信待ち時間を無駄に発生させないようにすることができ、ひいてはメインCPU601からサブCPU701への通信上におけるボトルネックを解消することができる。   Thereby, the sub CPU 701 can receive internal communication data including not only commands but also information on other communication errors. That is, since the sub CPU 701 receives internal communication data whose reception data size is larger than that in the case where only the command is received from the main CPU 601, the reception waiting time can be prevented from being generated unnecessarily. A bottleneck in communication to the sub CPU 701 can be eliminated.

また、サブCPU701が受信した内部通信データには、コマンド以外の情報として通信エラーに係る各種の情報が含まれるので、サブCPU701は、通信エラーの情報に基づいてそれに関連する処理を実行することができ、効率よく作動させることができる。   Further, since the internal communication data received by the sub CPU 701 includes various information related to the communication error as the information other than the command, the sub CPU 701 may execute the processing related thereto based on the information of the communication error. Can be operated efficiently.

また、主基板通信LSI610及び副基板通信LSI710は、コマンド及び通信データを例えば1Byteの伝送単位ごとに小刻みに検出しながら受信することができる一方、サブCPU701は、そのような伝送単位に制限されることなく、より大きい例えば16Byteというある程度一括したデータ量ごとに通信データをまとめて検出しながら受信することができる。これにより、主基板通信LSI610及び副基板通信LSI710は、周期的に効率よくデータを送受信することができ、サブCPU701は、ある程度まとまったデータ量として通信データを効率よく受信することができる。   Also, while the main board communication LSI 610 and the sub board communication LSI 710 can detect and receive commands and communication data in small increments for each 1 byte transmission unit, for example, the sub CPU 701 is limited to such transmission units. Instead, communication data can be received while being collectively detected for each larger amount of data, for example, 16 bytes, which is larger, for example, 16 bytes. Thereby, the main board communication LSI 610 and the sub board communication LSI 710 can periodically transmit and receive data efficiently, and the sub CPU 701 can efficiently receive communication data as a certain amount of data.

また、本実施形態においては、メインCPU601から主基板通信LSI610へと通信速度19200bps(第1の通信速度)でコマンドが送信され、主基板通信LSI610から副基板通信LSI710へとより速い通信速度115200bps(第2の通信速度)でコマンドを含む通信データが送信される。さらに、副基板通信LSI710からサブCPU701へと通信速度115200bps(第2の通信速度)でコマンドを含む通信データが送信される。   In the present embodiment, a command is transmitted from the main CPU 601 to the main board communication LSI 610 at a communication speed of 19200 bps (first communication speed), and a faster communication speed of 115200 bps to the sub board communication LSI 710 from the main board communication LSI 610. Communication data including a command is transmitted at the second communication speed. Further, communication data including a command is transmitted from the sub substrate communication LSI 710 to the sub CPU 701 at a communication speed of 115,200 bps (second communication speed).

このとき、主基板通信LSI610では、コマンドを所定の伝送単位となる1Byteごとに検出するための受信待ち時間(第1の受信待ち時間)が第1の通信速度に基づいて2.5msecと算出され、算出された第1の受信待ち時間(2.5msec)に基づいて所定の伝送単位ごとにコマンドが検出されることで受信される。一方、副基板通信LSI710では、コマンドを含む通信データを所定の伝送単位となる1Byteごとに検出するための受信待ち時間(第2の受信待ち時間)が第2の通信速度に基づいて約0.4msecと算出され、算出された第2の受信待ち時間(約0.4msec)に基づいて所定の伝送単位ごとに通信データが検出されることで受信される。   At this time, in the main board communication LSI 610, the reception waiting time (first reception waiting time) for detecting the command every 1 byte serving as a predetermined transmission unit is calculated to be 2.5 msec based on the first communication speed. It is received by detecting a command for every predetermined transmission unit based on the calculated 1st reception waiting time (2.5 msec). On the other hand, in the sub board communication LSI 710, the reception waiting time (second reception waiting time) for detecting communication data including a command for each 1 byte serving as a predetermined transmission unit is approximately 0. 0 based on the second communication speed. It is received by detecting communication data for each predetermined transmission unit based on the calculated second reception waiting time (about 0.4 msec) calculated as 4 msec.

すなわち、相対的に低スペックのメインCPU601に応じた通信仕様に基づいて主基板通信LSI610がコマンドを受信する第1の通信速度と、相対的に高スペックのサブCPU701に応じた通信仕様に基づいて副基板通信LSI710が通信データを受信する第2の通信速度とが互いに異なる速度で設定されていても、それぞれの通信速度に適した第1の受信待ち時間(2.5msec)及び第2の受信待ち時間(約0.4msec)を使用することができる。   That is, based on the first communication speed at which the main board communication LSI 610 receives a command based on the communication specification according to the relatively low specification main CPU 601 and the communication specification according to the relatively high specification sub CPU 701. Even if the second communication speed at which the secondary substrate communication LSI 710 receives communication data is set at a speed different from each other, the first reception waiting time (2.5 msec) and the second reception suitable for each communication speed Latency (about 0.4 msec) can be used.

これにより、通信データを最後に受信するサブCPU701においては、通信データを受信する際に受信待ち時間に係る無駄時間をできる限り生じさせないようにし、通信上のボトルネックを解消することができ、サブCPU701を効率よく作動させることができる。   As a result, in the sub CPU 701 which receives the communication data at the end, it is possible to eliminate the occurrence of a dead time related to the reception waiting time as much as possible when receiving the communication data, and solve the communication bottleneck. The CPU 701 can be operated efficiently.

また、サブCPU701に通信データが達する手前の副基板通信LSI710おける第2の受信待ち時間(約0.4msec)が主基板通信LSI610における第1の受信待ち時間(2.5msec)よりも短いので、その分、サブCPU701における通信データの受信処理を軽減することができる。   Further, since the second reception waiting time (about 0.4 msec) in the sub board communication LSI 710 before the communication data reaches the sub CPU 701 is shorter than the first reception waiting time (2.5 msec) in the main board communication LSI 610, Accordingly, the process of receiving communication data in the sub CPU 701 can be reduced.

また、本実施形態によれば、相対的に低スペックで通信速度が低速とされるメインCPU601と、相対的に高スペックで通信速度が高速とされるサブCPU701とを備えたパチスロ1に最適な通信システムを実現することができる。   Further, according to the present embodiment, it is optimal for the pachislot 1 having the main CPU 601 whose communication speed is relatively low at a low speed and the sub CPU 701 whose communication speed is relatively high at a high speed. A communication system can be realized.

また、本実施形態においては、メインCPU601から主基板通信LSI610へとコマンドが送信され、主基板通信LSI610から副基板通信LSI710へとコマンドを含む通信データが送信され、さらに副基板通信LSI710からサブCPU701へとコマンドを含む通信データが送信される。   Further, in the present embodiment, a command is transmitted from the main CPU 601 to the main substrate communication LSI 610, and communication data including a command is transmitted from the main substrate communication LSI 610 to the sub substrate communication LSI 710, and further from the sub substrate communication LSI 710 to the sub CPU 701. Communication data including a command is transmitted.

その際、主基板通信LSI610は、コマンドの受信に際してサイズ不足や物理層エラー(第1の通信エラー)を検出すると、それらを示すデータサイズや主基板通信LSI受信ステータス(第1エラー情報)をコマンドに該当するパケットデータと共に通信データに含めて送信する。また、副基板通信LSI710は、主基板通信LSI610からの通信データの受信に際して物理層エラーやサイズ不足を含む論理エラー(第2の通信エラー)を検出すると、それらを示す副基板通信LSI受信ステータスや副基板通信LSIパケット種別(第2エラー情報)をコマンド(パケットデータ)及び上記第1エラー情報と共に通信データに含めて送信する。   At that time, when the main board communication LSI 610 detects a size shortage or a physical layer error (first communication error) upon receiving a command, the main board communication LSI 610 commands the data size indicating them and the main board communication LSI reception status (first error information). In the communication data together with the corresponding packet data. In addition, when the sub board communication LSI 710 detects a logic error (second communication error) including a physical layer error or a size shortage upon reception of communication data from the main board communication LSI 610, the sub board communication LSI reception status or the The sub-board communication LSI packet type (second error information) is included in the communication data together with the command (packet data) and the first error information and transmitted.

さらに、サブCPU701は、通信データの受信に際してCRCエラーやタイムアウト発生に係るエラー(第3の通信エラー)を検出すると、それらを示すエラー情報として‘COM3 ERR1’、‘COM3 ERR2’(第3エラー情報)を登録する。また、サブCPU701は、副基板通信LSI710から受信した通信データに基づき、主基板通信LSI610に係るエラー情報として‘COM1 ERR1’、‘COM1 ERR2’(第1エラー情報)を登録し、副基板通信LSI710に係るエラー情報として‘COM2 ERR1’、‘COM2 ERR2’、‘COM2 ERR3’(第2エラー情報)を登録する。   Furthermore, when the sub CPU 701 detects an error (third communication error) related to the occurrence of a CRC error or timeout upon reception of communication data, the 'COM3 ERR1', 'COM3 ERR2' (third error information) as error information indicating them Register). Further, the sub CPU 701 registers 'COM1 ERR1', 'COM1 ERR2' (first error information) as error information related to the main substrate communication LSI 610 based on the communication data received from the sub substrate communication LSI 710, and the sub substrate communication LSI 710 Register 'COM2 ERR1', 'COM2 ERR2', 'COM2 ERR3' (second error information) as error information related to.

これにより、サブCPU701は、通信エラーとして区別して登録された‘COM1 ERR1’、‘COM1 ERR2’、‘COM2 ERR1’、‘COM2 ERR2’、‘COM2 ERR3’、‘COM3 ERR1’、‘COM3 ERR2’に基づいて通信エラーの原因や発生箇所を詳細に特定・解析することができる。   As a result, the sub CPU 701 distinguishes and registers 'COM1 ERR1', 'COM1 ERR2', 'COM2 ERR1', 'COM2 ERR2', 'COM2 ERR3', 'COM3 ERR1', 'COM3 ERR2', which are registered as communication errors. Based on the communication error cause and location can be identified and analyzed in detail.

また、副基板通信LSI710は、コマンド等をバイナリデータとして通信データに含ませるとともに、当該バイナリデータの送信開始を示すSTXや、そのバイナリデータ内にある制御データを示すDLEといった制御キャラクタも通信データに含ませた上で当該通信データをサブCPU701へと送信する。すなわち、副基板通信LSI710とサブCPU701との間では、コード変換が必要なテキストデータに比べてデータサイズが比較的小さいバイナリデータによりコマンドが送受信される。   In addition, the secondary substrate communication LSI 710 includes commands and the like as binary data in communication data, and also controls characters such as STX indicating start of transmission of the binary data and DLE indicating control data in the binary data into communication data. After being included, the communication data is transmitted to the sub CPU 701. That is, commands are transmitted and received between the sub substrate communication LSI 710 and the sub CPU 701 as binary data whose data size is relatively smaller than text data requiring code conversion.

これにより、サブCPU701においては、比較的小さいサイズのバイナリデータを、STXやDLEという制御キャラクタに基づいて検出しつつ、所定のデータ量を取得したか否かを判別することによって受信することができるので、受信待ち時間をできる限り生じさせないようにすることができ、副基板通信LSI710とサブCPU701との間において効率よくデータ通信を行うことができる。なお、本実施形態においては、副基板通信LSI710とサブCPU701との間でバイナリデータと共に制御キャラクタを通信データに含めて送信しているが、例えば主基板通信LSI610と副基板通信LSI710との間でバイナリデータと共に制御キャラクタを通信データに含めて送信するようにしてもよい。   As a result, the sub CPU 701 can receive binary data of a relatively small size based on control characters such as STX and DLE, and determine whether or not a predetermined amount of data has been acquired. Therefore, the reception waiting time can be prevented from occurring as much as possible, and data communication can be efficiently performed between the sub substrate communication LSI 710 and the sub CPU 701. In the present embodiment, binary characters and control characters are included in the communication data and transmitted between the sub substrate communication LSI 710 and the sub CPU 701, for example, between the main substrate communication LSI 610 and the sub substrate communication LSI 710. The control character may be included in the communication data and transmitted together with the binary data.

また、本実施形態においては、メインCPU601から主基板通信LSI610へとコマンドが送信され、主基板通信LSI610から副基板通信LSI710へとコマンドを含む通信データが、AES暗号方式により暗号化され、さらにマンチェスター変調方式により変調された上で送信される。副基板通信LSI710では、主基板通信LSI610から受信した通信データが、マンチェスター変調方式により復調され、さらに復調された通信データがAES暗号方式により復号化された後、サブCPU701へと送信される。これにより、本実施形態では、マンチェスター変調方式により通信データを正しく安定的に送受信することができる。   Further, in the present embodiment, a command is transmitted from the main CPU 601 to the main board communication LSI 610, and communication data including a command from the main board communication LSI 610 to the sub board communication LSI 710 is encrypted by the AES encryption method, and further It is transmitted after being modulated by the modulation scheme. The sub substrate communication LSI 710 demodulates the communication data received from the main substrate communication LSI 610 according to the Manchester modulation method, and further demodulates the communication data that has been demodulated according to the AES encryption method, and then transmits the communication data to the sub CPU 701. Thus, in the present embodiment, communication data can be correctly and stably transmitted and received by the Manchester modulation method.

また、マンチェスター変調方式でやり取りされる通信データには、クロックレートを埋め込むことができるので、主基板6Aと副基板7Aとの間にクロック信号を生成するためのデバイス等を別途設ける必要がなくなることから、通信に係る伝送媒体を光ファイバーケーブル100としても容易に簡素化することができる。   Further, since the clock rate can be embedded in communication data exchanged by Manchester modulation, there is no need to separately provide a device or the like for generating a clock signal between the main substrate 6A and the sub substrate 7A. Thus, the transmission medium related to communication can be easily simplified as the optical fiber cable 100.

また、主基板6Aと副基板7Aとの間でクロック信号を光学的に生成せずとも光ファイバーケーブル100を介して通信データをそのまま送受信することができ、デジタルデータの変調回路として安価なマンチェスター回路を用いることからも、安価なデバイス及び伝送路によって主基板6Aと副基板7Aとを接続することができる。   Further, communication data can be transmitted and received as it is through the optical fiber cable 100 without optically generating a clock signal between the main substrate 6A and the sub-substrate 7A, and an inexpensive Manchester circuit can be used as a digital data modulation circuit. Also from the point of use, the main substrate 6A and the sub substrate 7A can be connected by inexpensive devices and transmission paths.

本発明の他の実施形態としては、図91〜97に示すような構成でもよい。なお、以下の説明において、先述した実施形態によるものと同一又は類似の構成要素については、同一符号を付してその説明を省略する。   Another embodiment of the present invention may be configured as shown in FIGS. In the following description, constituent elements that are the same as or similar to those in the above-described embodiment are given the same reference numerals, and descriptions thereof will be omitted.

図91は、本発明の他の実施形態に係る遊技機の主基板と副基板との接続形態を示す。図91に示すように、本実施形態においては、第3マンチェスター回路620,720は、第1SPI617,717と組み合わせて用いられ、この第1SPI617,717を通じてデータを送受信し得るように構成されている。また、本実施形態では、第3マンチェスター回路620と第3マンチェスター回路720とは、互いに電気的に通信用ケーブルを介して接続されている。   FIG. 91 shows a connection between the main substrate and the sub substrate of a game machine according to another embodiment of the present invention. As shown in FIG. 91, in the present embodiment, the third Manchester circuits 620 and 720 are used in combination with the first SPIs 617 and 717, and are configured to be able to transmit and receive data through the first SPIs 617 and 717. Further, in the present embodiment, the third Manchester circuit 620 and the third Manchester circuit 720 are electrically connected to each other via a communication cable.

本実施形態の主基板6Aにおいては、メインCPU601からのコマンドを含むデータ(パケットデータ)が、第1UART601Aから第1UART615に供給され、この第1UART615で物理層エラーの検出等が行われた後、AES回路614で暗号化され、さらにマスターとなる第1SPI617を通じて第3マンチェスター回路620に供給され、この第3マンチェスター回路620で変調されるように構成されている。このようにして変調されたデータは、コマンドを含むシリアルデータとされ、通信用ケーブルを通じて副基板7Aへと送信される。   In the main substrate 6A of the present embodiment, data (packet data) including a command from the main CPU 601 is supplied from the first UART 601A to the first UART 615, and after detection of physical layer error etc. is performed by the first UART 615, AES It is configured to be encrypted by the circuit 614 and further supplied to the third Manchester circuit 620 through the first SPI 617 as a master, and to be modulated by the third Manchester circuit 620. The data thus modulated is converted to serial data including a command, and is transmitted to the sub-substrate 7A through the communication cable.

副基板7Aにおいては、主基板6Aから送信されたコマンドを含むシリアルデータが、通信用ケーブルを通じて第3マンチェスター回路720に供給され、この第3マンチェスター回路720で復調された後、スレーブとなる第1SPI717を通じてAES回路714に供給され、さらにAES回路714において復号化された後、第1UART715を通じてUART701Aに供給されることにより、サブCPU701がメインCPU601からのコマンドを受信し得るようになっている。   In the sub-substrate 7A, serial data including a command transmitted from the main substrate 6A is supplied to the third Manchester circuit 720 through the communication cable, and after being demodulated by the third Manchester circuit 720, the first SPI 717 which becomes a slave The sub CPU 701 can receive a command from the main CPU 601 by being supplied to the AES circuit 714 through the above and then being decoded by the AES circuit 714 and then supplied to the UART 701 A through the first UART 715.

図92は、本発明の他の実施形態に係る遊技機の主基板と副基板との接続形態を示す。図93は、図92に示す接続形態でのデータの流れを示す説明図である。本実施形態におおいては、図92に示すように、マンチェスター変調及び復調が行われないように構成されている。具体的にいうと、第2UART616,716は、マンチェスター回路等と組み合わされて使用されず、単独でデータを送受信し得るように構成されている。   FIG. 92 shows a connection form of the main substrate and the sub substrate of a game machine according to another embodiment of the present invention. FIG. 93 is an explanatory drawing showing the flow of data in the connection configuration shown in FIG. In this embodiment, as shown in FIG. 92, Manchester modulation and demodulation are not performed. Specifically, the second UARTs 616 and 716 are not used in combination with a Manchester circuit or the like, and are configured to be able to transmit and receive data independently.

本実施形態の主基板6Aにおいては、メインCPU601からのコマンドを含むデータ(パケットデータ)が、第1UART601Aから第1UART615に供給され、この第1UART615で物理層エラーの検出等が行われた後、AES回路614で暗号化され、コマンドを含むシリアルデータとして第2UART616を通じて副基板7Aへと送信される。   In the main substrate 6A of the present embodiment, data (packet data) including a command from the main CPU 601 is supplied from the first UART 601A to the first UART 615, and after detection of physical layer error etc. is performed by the first UART 615, AES The data is encrypted by the circuit 614 and transmitted to the sub-substrate 7A through the second UART 616 as serial data including a command.

副基板7Aにおいては、主基板6Aから送信されたコマンドを含むシリアルデータが、第6UART716を通じてAES回路714に供給され、さらにAES回路714において復号化された後、第1UART715を通じてUART701Aに供給されることにより、サブCPU701がメインCPU601からのコマンドを受信し得るようになっている。   In the sub-substrate 7A, serial data including a command transmitted from the main substrate 6A is supplied to the AES circuit 714 through the sixth UART 716, and after being decoded in the AES circuit 714, is supplied to the UART 701A through the first UART 715. Thus, the sub CPU 701 can receive a command from the main CPU 601.

また、図93に示すように、メインCPU601から主基板通信LSI610へと送信されるデータは、8Byteの平文からなるパケットデータであり、その際の通信速度(ボーレート)は、19200bpsとされる。主基板通信LSI610から副基板通信LSI710へと送信されるデータは、暗号化された16Byteのデータであり、その際の通信速度は、115200bpsとされる。副基板通信LSI710からサブCPU701へと送信されるデータは、AES復号化された16Byteの平文データであり、その際の通信速度は、115200bpsとされる。   Further, as shown in FIG. 93, the data transmitted from the main CPU 601 to the main board communication LSI 610 is packet data consisting of plaintext of 8 bytes, and the communication speed (baud rate) at that time is 19200 bps. The data transmitted from the main substrate communication LSI 610 to the sub substrate communication LSI 710 is encrypted 16 byte data, and the communication speed at that time is set to 115,200 bps. The data transmitted from the sub substrate communication LSI 710 to the sub CPU 701 is 16 bytes of plaintext data that has been AES decrypted, and the communication speed at that time is set to 115,200 bps.

図94は、本発明の他の実施形態に係る遊技機の主基板と副基板との接続形態を示す。図95は、図94に示す接続形態でのデータの流れを示す説明図である。本実施形態におおいては、図94に示すように、AES暗号化及び復号化が行われないように構成されている。具体的にいうと、主基板通信LSI610及び副基板通信LSI710においては、主として第4マンチェスター回路621,721が使用され、この第4マンチェスター回路621,721が単独でデータを送受信し得るように構成されている。   FIG. 94 shows a connection form of a main substrate and a sub substrate of a game machine according to another embodiment of the present invention. FIG. 95 is an explanatory drawing showing the flow of data in the connection configuration shown in FIG. In this embodiment, as shown in FIG. 94, AES encryption and decryption are not performed. Specifically, in the main substrate communication LSI 610 and the sub substrate communication LSI 710, the fourth Manchester circuits 621 and 721 are mainly used, and the fourth Manchester circuits 621 and 721 are configured to be able to transmit and receive data independently. ing.

本実施形態の主基板6Aにおいては、メインCPU601からのコマンドを含むデータ(パケットデータ)が、第1UART601Aから第4マンチェスター回路621に供給され、この第4マンチェスター回路621から直接副基板7Aへと送信される。   In the main substrate 6A of the present embodiment, data (packet data) including a command from the main CPU 601 is supplied from the first UART 601A to the fourth Manchester circuit 621 and transmitted from the fourth Manchester circuit 621 directly to the sub substrate 7A. Be done.

副基板7Aにおいては、主基板6Aから送信されたコマンドを含むデータが、第4マンチェスター回路721を通じて直接取り込まれ、この第4マンチェスター回路721からUART701Aへと供給されることにより、サブCPU701がメインCPU601からのコマンドを受信し得るようになっている。   In the sub-substrate 7A, data including a command transmitted from the main substrate 6A is directly taken in through the fourth Manchester circuit 721 and supplied from the fourth Manchester circuit 721 to the UART 701A, whereby the sub CPU 701 operates as the main CPU 601. It is possible to receive commands from.

また、図95に示すように、メインCPU601から主基板通信LSI610へと送信されるデータは、8Byteの平文からなるパケットデータであり、その際の通信速度(ボーレート)は、19200bpsとされる。主基板通信LSI610から副基板通信LSI710へと送信されるデータは、マンチェスター変調された8Byteの平文データであり、その際の通信速度は、19200bpsとされる。副基板通信LSI710からサブCPU701へと送信されるデータは、マンチェスター復調された8Byteの平文データであり、その際の通信速度は、19200bpsとされる。   Further, as shown in FIG. 95, the data transmitted from the main CPU 601 to the main board communication LSI 610 is packet data consisting of plaintext of 8 bytes, and the communication speed (baud rate) at that time is 19200 bps. The data transmitted from the main substrate communication LSI 610 to the sub substrate communication LSI 710 is Manchester-modulated 8-byte plaintext data, and the communication speed at that time is 19200 bps. The data transmitted from the sub substrate communication LSI 710 to the sub CPU 701 is Manchester-demodulated 8-byte plaintext data, and the communication speed at that time is 19200 bps.

図94及び図95に示す実施形態においては、メインCPU601から主基板通信LSI610へとコマンドが送信され、主基板通信LSI610から副基板通信LSI710へとコマンドを含む通信データがマンチェスター変調方式により変調された上で直接送信される。副基板通信LSI710では、主基板通信LSI610から受信した通信データがマンチェスター変調方式により復調された後、サブCPU701へとそのまま送信される。このような構成では、マンチェスター変調方式により速やかにデータを変調及び復調しながら通信データを正しく安定的に送受信することができる。   In the embodiment shown in FIGS. 94 and 95, a command is transmitted from the main CPU 601 to the main board communication LSI 610, and communication data including the command is modulated by the Manchester modulation method from the main board communication LSI 610 to the sub board communication LSI 710. Sent directly on. The sub board communication LSI 710 demodulates the communication data received from the main board communication LSI 610 according to the Manchester modulation method, and then transmits the communication data to the sub CPU 701 as it is. In such a configuration, communication data can be correctly and stably transmitted / received while modulating and demodulating data promptly by Manchester modulation.

図96は、本発明の他の実施形態に係る遊技機(パチンコ)の外観を示す斜視図である。図97は、図96に示す遊技機の主制御回路及び副制御回路の構成を示すブロック図である。本発明は、図96に示すようなパチンコ1’にも適用可能である。図97に示すように、パチンコ1’は、主制御回路60に接続される特有の構成要素として、特別図柄表示装置80、普通図柄表示装置81、特別図柄保留表示装置82、普通図柄保留表示装置83、カウントセンサ84、一般入賞球センサ85、通過球センサ86、始動入賞球センサ87、普通電動役物ソレノイド88、大入賞口ソレノイド89、バックアップクリアスイッチ90、払出・発射制御回路350、払出装置34A、発射装置35B、カードユニット34C、貸し出し用操作部34D等を有する。このようなパチンコ1’においても、液晶表示装置10やスピーカ48,49、及びランプ20等が副制御回路70に接続されている。そして、主制御回路60及び副制御回路70は、主基板通信LSI610及び副基板通信LSI710を備えており、これらの主基板通信LSI610及び副基板通信LSI710は、先述した実施形態によるものと同様に互いに接続されている。また、主制御回路60が形成された主基板は、外部集中端子板9Aに対しても先述した実施形態によるものと同様に直接接続されている。   FIG. 96 is a perspective view showing the appearance of a game machine (pachinko) according to another embodiment of the present invention. FIG. 97 is a block diagram showing a configuration of a main control circuit and a sub control circuit of the gaming machine shown in FIG. The present invention is also applicable to pachinko 1 'as shown in FIG. As shown in FIG. 97, the pachinko 1 ′ is a special component display device 80, a normal symbol display device 81, a special symbol hold display device 82, and a normal symbol hold display device as unique components connected to the main control circuit 60. 83, count sensor 84, general winning ball sensor 85, passing ball sensor 86, start winning ball sensor 87, ordinary electric role solenoid 88, large winning hole solenoid 89, backup clear switch 90, payout / launch control circuit 350, payout device 34A, a launcher 35B, a card unit 34C, a lending operation unit 34D, and the like. Also in such a pachinko 1 ', the liquid crystal display device 10, the speakers 48 and 49, the lamp 20, and the like are connected to the sub control circuit 70. The main control circuit 60 and the sub control circuit 70 are provided with a main substrate communication LSI 610 and a sub substrate communication LSI 710, and the main substrate communication LSI 610 and the sub substrate communication LSI 710 mutually correspond to each other as in the embodiment described above. It is connected. Further, the main substrate on which the main control circuit 60 is formed is directly connected to the external concentrated terminal plate 9A as in the embodiment described above.

なお、本発明は、上述した各実施形態に限定されるものではない。   The present invention is not limited to the above-described embodiments.

各実施形態において例示した通信速度やタイムアウト値としての受信待ち時間、伝送単位等に係る数値は、あくまでも一例として挙げたものであり、これらの数値は、CPUのスペックや通信LSIの仕様に応じて適宜変更可能である。   The values relating to the communication speed, the reception waiting time as a timeout value, the transmission unit, etc. exemplified in each embodiment are merely given as an example, and these values correspond to the specifications of the CPU and the specifications of the communication LSI. It can be changed as appropriate.

通信手段は、通信LSIに限らず、集積回路の規模に応じて例えばICにより構成してもよい。   The communication means is not limited to the communication LSI, but may be, for example, an IC according to the scale of the integrated circuit.

通信手段は、主制御回路と副制御回路との間の通信等に限らず、例えばホールコンピュータと副制御回路との間で通信を行うものとして設けてもよい。   The communication means is not limited to communication between the main control circuit and the sub control circuit, and may be provided, for example, as performing communication between the hall computer and the sub control circuit.

上述した実施形態では、外部出力用通信LSI610AでメインCPU601からの受信データを変換して外部端子板制御LSI910へと出力しているが、外部出力用通信LSIは、メインCPUからの受信データを変換することなく外部端子板制御LSIへと送信し、外部端子板制御LSIでコマンドに対応した各種の処理を行い、ホールコンピュータへと信号を出力するようにしてもよい。   In the embodiment described above, the external output communication LSI 610A converts the received data from the main CPU 601 and outputs it to the external terminal board control LSI 910, but the external output communication LSI converts the received data from the main CPU Alternatively, the signal may be transmitted to the external terminal board control LSI, and various processing corresponding to the command may be performed by the external terminal board control LSI to output a signal to the hall computer.

また、上述した実施形態では、図73〜90を参照して外部出力用通信LSI610A及び外部端子板制御LSI910の各処理について説明したが、このような各処理に限らず、ホールコンピュータへの出力として、図13〜21に示すような信号を出力するための処理が実行されればよい。   In the above-described embodiment, each process of the external output communication LSI 610A and the external terminal board control LSI 910 has been described with reference to FIGS. 73 to 90. However, the present invention is not limited to such each process, and may be output to the hall computer. Processing for outputting signals as shown in FIGS. 13 to 21 may be performed.

1 パチスロ(遊技機)
1’ パチンコ(遊技機)
6A 主制御基板(主基板)
7A 副制御基板(副基板)
9A 外部集中端子板(外部出力手段)
60 主制御回路(主制御処理手段)
70 副制御回路(副制御処理手段)
100 光ファイバーケーブル
600 マイクロコンピュータ
601 メインCPU(主制御処理手段)
610 主基板通信LSI(主制御出力手段)
610A 外部出力用通信LSI(外部出力手段、第1の通信手段)
611A 専用コントローラ(計時手段、出力状態指示情報生成手段、連続出力情報生成手段、情報出力手段)
614A AES回路(暗号化手段)
615A 第1UART
616A 第2UART(情報出力手段)
618A 第1マンチェスター回路
619A 第2マンチェスター回路(変調手段)
620A 第3マンチェスター回路
621A 第4マンチェスター回路
624A GPIOインターフェース
701 サブCPU
910 外部端子板制御LSI(外部出力手段、第2の通信手段)
911 専用コントローラ(情報入力手段、信号出力手段)
914 AES回路(復号化手段)
915 第1UART
916 第2UART(情報入力手段)
918 第1マンチェスター回路
919 第2マンチェスター回路(復調手段)
920 第3マンチェスター回路
921 第4マンチェスター回路
924 GPIOインターフェース(信号出力手段)
940 リレー(外部出力手段、出力手段)
1000 ホールコンピュータ(外部機器)
1 Pachislo (game machine)
1 'Pachinko (game machine)
6A Main control board (main board)
7A Sub control board (sub board)
9A external concentrated terminal board (external output means)
60 Main control circuit (main control processing means)
70 Sub control circuit (sub control processing means)
100 optical fiber cable 600 microcomputer 601 main CPU (main control processing means)
610 Main board communication LSI (main control output means)
610A Communication LSI for external output (external output unit, first communication unit)
611A dedicated controller (clocking means, output state indication information generating means, continuous output information generating means, information output means)
614A AES circuit (encryption means)
615A 1st UART
616A 2nd UART (information output means)
618A 1st Manchester circuit 619A 2nd Manchester circuit (modulation means)
620A 3rd Manchester circuit 621A 4th Manchester circuit 624A GPIO interface 701 sub CPU
910 External terminal board control LSI (external output means, second communication means)
911 Dedicated controller (information input means, signal output means)
914 AES circuit (decryption means)
915 1st UART
916 Second UART (information input means)
918 First Manchester circuit 919 Second Manchester circuit (demodulation means)
920 3rd Manchester circuit 921 4th Manchester circuit 924 GPIO interface (signal output means)
940 Relay (external output means, output means)
1000 Hall computer (external device)

Claims (1)

遊技に係る各種の制御を行う制御部と、
前記制御部から遊技機外の外部機器へと外部出力情報を出力するための外部出力手段と、を備え、
前記制御部は、
遊技に関わる制御処理を行う制御処理手段と、
前記制御処理手段から第1の通信速度で前記外部出力情報を入力するとともに、出力先に応じた前記第1の通信速度よりも速い第2の通信速度で当該外部出力情報を出力する第1の通信手段と、を有し、
前記外部出力手段は、
前記第1の通信手段から前記外部出力情報を入力するとともに、当該外部出力情報を出力する第2の通信手段と、
前記第2の通信手段から前記外部出力情報を入力するとともに、当該外部出力情報をリレー出力信号に変換されたものを前記外部機器へと出力する出力手段と、を有し、
前記制御処理手段は、
前記外部出力情報として、遊技媒体の払い出しを示す第1の外部出力情報を出力可能であり、当該第1の外部出力情報に続いて所定時間経過後に外部出力すべき旨を示す遅延時間情報を含む第2の外部出力情報を出力可能であるとともに、前記第1の外部出力情報とは異なるタイミングで外部出力される第3の外部出力情報も出力可能であって、
前記第1の通信手段は、
前記制御処理手段から入力した前記外部出力情報をコマンドの種別を示すコマンド情報及び該コマンド情報に付随してパラメータを示す設定データに区別し、前記コマンド情報を参照することにより前記コマンドの種別を判別し、当該コマンドの種別に応じた処理を実行する出力情報生成手段を有し、
前記出力情報生成手段は、
前記外部出力情報が前記第1の外部出力情報の場合に、前記第1の外部出力情報に基づいて、前記外部出力情報の変換に適した第1の出力情報を生成する第1情報生成手段と、
前記外部出力情報が前記第2の外部出力情報の場合に、前記第2の外部出力情報に基づいて、前記外部出力情報の変換に適した第2の出力情報を生成する第2情報生成手段と、
前記外部出力情報が前記第3の外部出力情報の場合に、前記第3の外部出力情報に基づいて、前記外部出力情報の変換に適した第3の出力情報を生成する第3情報生成手段と、
前記第1の出力情報、前記第2の出力情報、及び、前記第3の出力情報を前記第2の通信手段へと出力する情報出力手段と、を作動可能な機能として有し、
前記第2の通信手段は、
前記情報出力手段から出力された前記第1の出力情報、前記第2の出力情報、及び、前記第3の出力情報を入力し、これらの出力情報を格納領域に格納する情報入力手段と、
前記情報入力手段により入力した前記第1の出力情報、前記第2の出力情報、及び、前記第3の出力情報と、前記格納領域の情報が異なる場合に、前記出力手段へ出力するための前記リレー出力信号に変換して前記出力手段を介して前記外部機器へと出力する信号出力手段と、を作動可能な機能として有することを特徴とする、遊技機。
A control unit that performs various controls related to the game;
And external output means for outputting external output information from the control unit to an external device outside the gaming machine,
The control unit
Control processing means for performing control processing related to gaming;
The external output information is input from the control processing means at a first communication speed, and the external output information is output at a second communication speed higher than the first communication speed according to the output destination. Communication means, and
The external output means is
A second communication unit that receives the external output information from the first communication unit and outputs the external output information;
And output means for inputting the external output information from the second communication means and outputting the external output information converted into a relay output signal to the external device.
The control processing means
As the external output information, it is possible to output first external output information indicating payout of gaming media, and includes delay time information indicating that external output should be performed after a predetermined time has elapsed subsequent to the first external output information. While being able to output second external output information, it is also possible to output third external output information that is externally output at a timing different from that of the first external output information,
The first communication means is
The external output information input from the control processing means is distinguished into command information indicating the type of command and setting data indicating a parameter accompanying the command information, and the type of the command is determined by referring to the command information And output information generating means for executing processing according to the type of the command,
The output information generation means
First information generating means for generating first output information suitable for converting the external output information based on the first external output information, when the external output information is the first external output information; ,
A second information generation unit that generates second output information suitable for converting the external output information based on the second external output information when the external output information is the second external output information; ,
Third information generation means for generating third output information suitable for converting the external output information based on the third external output information, when the external output information is the third external output information; ,
It has an information output unit that outputs the first output information, the second output information, and the third output information to the second communication unit as an operable function.
The second communication means is
An information input unit that receives the first output information, the second output information, and the third output information output from the information output unit, and stores the output information in a storage area ;
When the first output information, the second output information, and the third output information input by the information input unit are different from the information of the storage area, the output unit may output the information to the output unit. A game machine characterized by having, as an operable function, signal output means for converting into a relay output signal and outputting the signal to the external device through the output means.
JP2017076685A 2017-04-07 2017-04-07 Gaming machine Active JP6522683B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017076685A JP6522683B2 (en) 2017-04-07 2017-04-07 Gaming machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017076685A JP6522683B2 (en) 2017-04-07 2017-04-07 Gaming machine

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2013240769A Division JP6128648B2 (en) 2013-11-21 2013-11-21 Game machine

Publications (2)

Publication Number Publication Date
JP2017124238A JP2017124238A (en) 2017-07-20
JP6522683B2 true JP6522683B2 (en) 2019-05-29

Family

ID=59363415

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017076685A Active JP6522683B2 (en) 2017-04-07 2017-04-07 Gaming machine

Country Status (1)

Country Link
JP (1) JP6522683B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7810437B2 (en) * 2023-04-17 2026-02-03 株式会社ユニバーサルエンターテインメント gaming machines
JP7759665B2 (en) * 2023-04-17 2025-10-24 株式会社ユニバーサルエンターテインメント gaming machines
JP7810435B2 (en) * 2023-04-17 2026-02-03 株式会社ユニバーサルエンターテインメント gaming machines
JP7759664B2 (en) * 2023-04-17 2025-10-24 株式会社ユニバーサルエンターテインメント gaming machines
JP7810436B2 (en) * 2023-04-17 2026-02-03 株式会社ユニバーサルエンターテインメント gaming machines

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008136796A (en) * 2006-12-05 2008-06-19 Sun Corp Game data management device
JP2009066171A (en) * 2007-09-13 2009-04-02 Daito Giken:Kk Game machine
JP4364292B2 (en) * 2008-10-02 2009-11-11 株式会社エルイーテック Game machine control chip and game machine control method
JP2010187753A (en) * 2009-02-16 2010-09-02 Kyoraku Sangyo Kk Game machine
JP5452417B2 (en) * 2010-08-19 2014-03-26 株式会社三共 Game machine
JP5577304B2 (en) * 2011-08-05 2014-08-20 京楽産業.株式会社 Game machine
JP6128648B2 (en) * 2013-11-21 2017-05-17 株式会社ユニバーサルエンターテインメント Game machine

Also Published As

Publication number Publication date
JP2017124238A (en) 2017-07-20

Similar Documents

Publication Publication Date Title
JP6522683B2 (en) Gaming machine
JP6075549B2 (en) Game machine
JP5942112B2 (en) Game machine
JP5942110B2 (en) Game machine
JP6128648B2 (en) Game machine
JP6158979B2 (en) Game machine
JP5957633B2 (en) Game machine
JP5942111B2 (en) Game machine
JP6158976B2 (en) Game machine
JP6158977B2 (en) Game machine
JP6158978B2 (en) Game machine
JP5954743B2 (en) Game machine
JP6280600B2 (en) Game machine
JP6280601B2 (en) Game machine
JP6058480B2 (en) Game machine
JP5847770B2 (en) Game machine
JP5954744B2 (en) Game machine
JP6280599B2 (en) Game machine
JP6393736B2 (en) Game machine
JP6058479B2 (en) Game machine
JP6386019B2 (en) Game machine
JP6058478B2 (en) Game machine
JP6075550B2 (en) Game machine
JP6363163B2 (en) Game machine
JP6075551B2 (en) Game machine

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180417

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180612

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20181127

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190204

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

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20190205

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190424

R150 Certificate of patent or registration of utility model

Ref document number: 6522683

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250