JP7534608B2 - Gaming Machines - Google Patents

Gaming Machines Download PDF

Info

Publication number
JP7534608B2
JP7534608B2 JP2020107029A JP2020107029A JP7534608B2 JP 7534608 B2 JP7534608 B2 JP 7534608B2 JP 2020107029 A JP2020107029 A JP 2020107029A JP 2020107029 A JP2020107029 A JP 2020107029A JP 7534608 B2 JP7534608 B2 JP 7534608B2
Authority
JP
Japan
Prior art keywords
control board
command
main control
game
management device
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
JP2020107029A
Other languages
Japanese (ja)
Other versions
JP2022001223A (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.)
Sammy Corp
Original Assignee
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 Sammy Corp filed Critical Sammy Corp
Priority to JP2020107029A priority Critical patent/JP7534608B2/en
Publication of JP2022001223A publication Critical patent/JP2022001223A/en
Application granted granted Critical
Publication of JP7534608B2 publication Critical patent/JP7534608B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Slot Machines And Peripheral Devices (AREA)

Description

本発明は、遊技機に関するものである。 The present invention relates to gaming machines.

従来より、遊技価値(遊技媒体)として、物理的な(有体物としての)メダルを用いずに、電子情報(電子メダル)を用いる遊技機(「メダルレス遊技機」、「管理遊技機」、「封入式遊技機」等と称される。)が知られている(たとえば、特許文献1参照)。 Gaming machines that use electronic information (electronic medals) as gaming value (gaming medium) instead of physical (tangible) medals (referred to as "medalless gaming machines," "managed gaming machines," "sealed gaming machines," etc.) have been known for some time (see, for example, Patent Document 1).

特開2015-062558号公報JP 2015-062558 A

本発明が解決しようとする課題は、遊技価値として電子情報を用いる遊技機において、適切な情報処理を実行可能とすることである。 The problem that this invention aims to solve is to enable appropriate information processing in gaming machines that use electronic information as gaming value.

本発明は、以下の解決手段によって上述の課題を解決する(かっこ書きで、対応する実施形態の構成を示す。)。
本発明は、
マイクロプロセッサ(1チップマイクロプロセッサ500)の記憶領域には、
主制御ROM領域(主制御ROM502の記憶領域)と、
遊技媒体数制御ROM領域(遊技媒体数制御ROM504の記憶領域)と、
使用領域外ROM領域(使用領域外ROM506の記憶領域)と
を少なくとも有し、
主制御ROM領域のプログラムで使用する第1レジスタバンク(レジスタバンク0)を有し、
遊技媒体数制御ROM領域のプログラムで使用する第2レジスタバンク(レジスタバンク1)を有し、
第1レジスタバンクには、複数のレジスタ(たとえば、FレジスタやSPレジスタ等)を有し、
第2レジスタバンクには、複数のレジスタ(たとえば、FレジスタやSPレジスタ等)を有し、
主制御ROM領域に記憶されている特殊呼び出し命令(CALLEX命令)を実行することによって、主制御ROM領域のプログラムから遊技媒体数制御ROM領域のプログラムの呼び出しが可能であり、
主制御ROM領域に記憶されている特殊呼び出し命令を実行することによって、第1レジスタバンクから第2レジスタバンクに切り換え可能とする
ことを特徴とする。
The present invention solves the above-mentioned problems by the following solving means (the configurations of the corresponding embodiments are shown in parentheses).
The present invention relates to
The memory area of the microprocessor (one-chip microprocessor 500) includes:
A main control ROM area (a storage area of the main control ROM 502);
A game media number control ROM area (a storage area of the game media number control ROM 504),
A ROM area outside the use area (a storage area of the ROM 506 outside the use area),
A first register bank (register bank 0) is used in the program in the main control ROM area,
A second register bank (register bank 1) is provided for use in a program in the game media number control ROM area;
The first register bank has a plurality of registers (e.g., an F register, an SP register, etc.),
The second register bank has a plurality of registers (e.g., an F register, an SP register, etc.),
By executing a special call command (CALLEX command) stored in the main control ROM area , it is possible to call a program in the number of game media control ROM area from a program in the main control ROM area,
The present invention is characterized in that it is possible to switch from the first register bank to the second register bank by executing a special call command stored in the main control ROM area .

本発明によれば、適切な情報処理を実行可能となる。 The present invention makes it possible to perform appropriate information processing.

第1実施形態において、遊技機の一例であるスロットマシンの制御の概略を示すブロック図である。1 is a block diagram showing an outline of control of a slot machine, which is an example of a gaming machine, in a first embodiment. 第1実施形態において、電力供給経路の例1を示す図である。FIG. 2 is a diagram illustrating a first example of a power supply path in the first embodiment. 第1実施形態において、電力供給経路の例2を示す図である。FIG. 11 is a diagram illustrating a second example of a power supply path in the first embodiment. 第1実施形態において、メイン制御基板から払出制御基板に送信されるコマンド(メイン制御コマンド)の一覧を示す図である。A figure showing a list of commands (main control commands) transmitted from the main control board to the dispensing control board in the first embodiment. 第1実施形態において、払出制御基板からメイン制御基板に送信されるコマンド(払出制御コマンド)の一覧を示す図である。A figure showing a list of commands (dispensing control commands) transmitted from the dispensing control board to the main control board in the first embodiment. 第1実施形態において、管理装置から払出制御基板に送信されるコマンド(管理装置コマンド)の一覧を示す図である。A figure showing a list of commands (management device commands) sent from the management device to the dispensing control board in the first embodiment. 第1実施形態において、払出制御基板から管理装置に送信されるコマンド(遊技機コマンド)の一覧を示す図である。A figure showing a list of commands (gaming machine commands) transmitted from the payout control board to the management device in the first embodiment. 第1実施形態において、払出制御基板におけるメインルーチンの処理の流れを示すフローチャートである。A flowchart showing the processing flow of a main routine in the dispensing control board in the first embodiment. 図8のステップS110におけるメイン制御コマンド解析処理の流れを示すフローチャートである。10 is a flowchart showing the process flow of analyzing a main control command in step S110 of FIG. 8. 図8のステップS110におけるメイン制御コマンド解析処理の流れを示すフローチャートであり、図9に続くフローチャートである。10 is a flowchart showing the flow of the main control command analysis process in step S110 of FIG. 8, and is a flowchart continuing from FIG. 9. 図8のステップS119における貸出処理の流れを示すフローチャートである。10 is a flowchart showing the flow of the lending process in step S119 of FIG. 8. 図8のステップS117における計数処理の流れを示すフローチャートである。10 is a flowchart showing the process flow of counting in step S117 of FIG. 8. 第1実施形態において、メイン制御基板におけるメインルーチンの処理の流れを示すフローチャートである。5 is a flowchart showing a process flow of a main routine in a main control board in the first embodiment. 第1実施形態において、メイン制御基板及び払出制御基板における電源投入処理の流れを示すフローチャートである。A flowchart showing the flow of power-on processing in the main control board and the payout control board in the first embodiment. 第1実施形態において、メイン制御基板及び払出制御基板における設定変更処理の流れを示すフローチャートである。A flowchart showing the flow of setting change processing in the main control board and the payout control board in the first embodiment. 第1実施形態において、メイン制御基板及び払出制御基板における3枚ベット処理の流れを示すフローチャートである。13 is a flowchart showing the flow of three-coin bet processing on the main control board and the payout control board in the first embodiment. 第1実施形態において、メイン制御基板及び払出制御基板における1枚ベット処理の流れを示すフローチャートである。13 is a flowchart showing the flow of one-coin bet processing in the main control board and the payout control board in the first embodiment. 第1実施形態において、メイン制御基板及び払出制御基板における遊技開始処理の流れを示すフローチャートである。13 is a flowchart showing the flow of game start processing on the main control board and the payout control board in the first embodiment. 第1実施形態において、メイン制御基板及び払出制御基板における遊技終了処理の流れを示すフローチャートである。13 is a flowchart showing the flow of game ending processing in the main control board and the payout control board in the first embodiment. 第1実施形態において、メイン制御基板及び払出制御基板における払出処理の流れを示すフローチャートである。A flowchart showing the flow of the payout process in the main control board and the payout control board in the first embodiment. 第1実施形態において、メイン制御基板及び払出制御基板における返却処理の流れを示すフローチャートである。A flowchart showing the flow of return processing in the main control board and the dispensing control board in the first embodiment. 第1実施形態において、払出制御基板及び管理装置における電源投入処理の流れを示すフローチャートである。A flowchart showing the flow of power-on processing in the dispensing control board and management device in the first embodiment. 第1実施形態において、払出制御基板及び管理装置における貸出処理の流れを示すフローチャートである。11 is a flowchart showing the flow of the loan processing in the dispensing control board and management device in the first embodiment. 第1実施形態において、払出制御基板及び管理装置における計数処理の流れを示すフローチャートである。A flowchart showing the flow of counting processing in the dispensing control board and management device in the first embodiment. 第1実施形態において、払出制御基板及び管理装置における計数処理の流れを示すフローチャートであり、図24に続くフローチャートである。This is a flowchart showing the flow of counting processing in the dispensing control board and management device in the first embodiment, and is a flowchart continuing from Figure 24. 第1実施形態において、払出制御基板と管理装置との間におけるシリアル通信のデータ信号及びストローブ信号の波形を示す図である。A diagram showing the waveforms of the data signal and strobe signal in serial communication between the dispensing control board and the management device in the first embodiment. 第1実施形態において、電子メダル貸出し時における各信号のオン/オフを示すタイミングチャートである。4 is a timing chart showing the on/off states of each signal when an electronic medal is lent in the first embodiment. 第1実施形態において、電子メダル計数(払戻し)時における各信号のオン/オフを示すタイミングチャートである。5 is a timing chart showing the on/off states of each signal during counting (refunding) of electronic medals in the first embodiment. 第2実施形態において、遊技機の制御の概略を示すブロック図である。FIG. 11 is a block diagram showing an outline of the control of the gaming machine in the second embodiment. 第2実施形態において、遊技機と貸出ユニットとの間の電文を説明する図である。A diagram explaining telegrams between the gaming machine and the rental unit in the second embodiment. 第2実施形態において、遊技機性能情報、遊技機設置情報、ホールコン・不正監視情報を説明する図である。13 is a diagram explaining gaming machine performance information, gaming machine installation information, and hall control/fraud monitoring information in the second embodiment. FIG. 第2実施形態において、基本通信シーケンスを示すタイムチャートである。10 is a time chart showing a basic communication sequence in the second embodiment. 第2実施形態において、起動シーケンスの例1(遊技機が先に起動した場合)を示すタイムチャートである。13 is a time chart showing Example 1 of a startup sequence (when the gaming machine starts up first) in the second embodiment. 第2実施形態において、起動シーケンスの例2(貸出ユニットが先に起動した場合)を示すタイムチャートである。13 is a time chart showing example 2 of a startup sequence (when the rental unit starts up first) in the second embodiment. 第2実施形態において、遊技機情報通知の基本シーケンスを示すタイムチャートである。13 is a time chart showing a basic sequence of a gaming machine information notification in the second embodiment. 第2実施形態において、計数通知シーケンスを示すタイムチャートである。10 is a time chart showing a counting notification sequence in the second embodiment. 第2実施形態において、計数処理を示すフローチャートである。10 is a flowchart showing a counting process in the second embodiment. 第2実施形態において、貸出通知シーケンスを示すタイムチャートである。13 is a time chart showing a lending notification sequence in the second embodiment. 第2実施形態において、遊技機情報通知タイマ及び遊技機情報通知要求フラグを示す図である。A diagram showing a gaming machine information notification timer and a gaming machine information notification request flag in the second embodiment. 第2実施形態において、遊技機情報通知タイマの更新シーケンスを示すタイムチャートである。13 is a time chart showing an update sequence of a gaming machine information notification timer in the second embodiment. 第2実施形態において、遊技機情報管理を示すフローチャートである。13 is a flowchart showing gaming machine information management in the second embodiment. 第3実施形態におけるメインCPU55の内蔵メモリを示す図であり、(A)は内蔵メモリの概要を示し、(B)は内蔵レジスタ領域を示す。13A and 13B are diagrams showing the internal memory of a main CPU 55 in a third embodiment, in which (A) shows an overview of the internal memory and (B) shows an internal register area. Fレジスタの詳細な構成を示す図である。FIG. 2 is a diagram showing a detailed configuration of an F register. 第3実施形態におけるスタック領域を示す図である。FIG. 13 is a diagram illustrating a stack area in the third embodiment. 第3実施形態における主要な命令を示す図である。FIG. 13 is a diagram showing main instructions in the third embodiment. LDF命令及びLD命令の態様を示す図である。FIG. 2 is a diagram showing aspects of an LDF instruction and an LD instruction. CALLEX命令の態様を示す図である。FIG. 2 illustrates aspects of a CALEX instruction. 従来のCALL命令及びRET命令の一例を示す図である。FIG. 1 is a diagram illustrating an example of a conventional CALL instruction and a RET instruction. 第3実施形態におけるプログラム開始(M_PRG_SET )を示すフローチャートである。13 is a flowchart showing a program start (M_PRG_SET) in the third embodiment. CALLEX命令及びジャンプ命令を使用した例を示す図である。FIG. 13 is a diagram showing an example in which a CALLEX instruction and a jump instruction are used. 第4実施形態における遊技機の制御の概略を示すブロック図である。A block diagram showing an outline of the control of a gaming machine in a fourth embodiment. 第4実施形態における内蔵メモリのメモリマップを示す図である。FIG. 13 is a diagram showing a memory map of a built-in memory in a fourth embodiment. 第4実施形態における領域の区分を示す図であり、(A)は例1を示し、(B)は例2を示す。13A and 13B are diagrams showing division of regions in the fourth embodiment, in which FIG. 13A shows Example 1 and FIG. 13B shows Example 2. 第4実施形態における領域間の通信を説明する図である。FIG. 13 is a diagram illustrating communication between areas in a fourth embodiment. 制御領域1~3のプログラム例(例1)を示す図である。A diagram showing an example program (example 1) for control areas 1 to 3. 制御領域1~3のプログラム例(例2)を示す図である。A diagram showing an example program (example 2) for control areas 1 to 3. 制御領域1~3のプログラム例(例3)を示す図である。A diagram showing an example program (example 3) for control areas 1 to 3. 制御領域1~3のプログラムの変形例を示す図である。FIG. 13 is a diagram showing a modified example of the programs in control areas 1 to 3.

本明細書において、用語の意味は、以下の通りである。
「遊技価値(遊技媒体)」とは、遊技の用に供する媒体をいい、本実施形態では「電子情報(電子メダル)」である。
また、「電子情報(電子メダル)」とは、管理装置(CRユニット)200に金銭(紙幣)を投入すると、その金額に応じた電子情報に変換され、その電子情報の一部又は全部が遊技機で遊技を行うための遊技価値として遊技機にクレジット可能となるものである。
In this specification, the meanings of the terms are as follows:
"Game value (game medium)" refers to a medium used for games, and in this embodiment, is "electronic information (electronic medal)."
In addition, "electronic information (electronic medal)" refers to money (banknotes) that is inserted into the management device (CR unit) 200, and is converted into electronic information corresponding to the amount of the money, and some or all of that electronic information can be credited to the gaming machine as gaming value for playing on the gaming machine.

さらにまた、「管理装置(CRユニット)200」とは、遊技価値としての電子情報の貸出し及び払戻しの管理を行うための装置であり、遊技機1台ごとに設けられ、その遊技機に隣接して配置されるものである。ホールでは、管理装置200は、遊技機の間に配置されることから、サンドと称される。また、遊技機と、その遊技機に対応する管理装置200とから、「遊技システム」が構成される。
さらに、「貸出し」とは、管理装置200から遊技機に遊技価値としての電子情報を移し、遊技機の内部にクレジットすることをいう。
Furthermore, the "management device (CR unit) 200" is a device for managing the lending and refunding of electronic information as gaming value, and is provided for each gaming machine and placed adjacent to that gaming machine. In a gaming hall, the management device 200 is called "sand" because it is placed between the gaming machines. Moreover, a "gaming system" is composed of a gaming machine and the management device 200 corresponding to that gaming machine.
Furthermore, "renting" refers to transferring electronic information representing gaming value from the management device 200 to the gaming machine and crediting it inside the gaming machine.

また、「計数」とは、遊技機の内部にクレジットされている遊技価値としての電子情報を管理装置200に戻すことをいう。計数スイッチ47を操作すると、遊技機の内部にクレジットされている遊技価値としての電子情報が管理装置200に戻される。このとき、クレジット数が「0」になり、その分、管理装置200において管理する電子情報が加算される。
さらにまた、「クレジット」とは、遊技機の内部に遊技価値としての電子情報を貯留することをいう。
さらに、「ベット」とは、遊技を行うために遊技価値としての電子情報を賭けることをいう。ベットスイッチ40を操作すると、クレジットされている遊技価値としての電子情報がベットされる。
Moreover, "counting" refers to returning electronic information as the game value credited inside the gaming machine to the management device 200. When the counting switch 47 is operated, electronic information as the game value credited inside the gaming machine is returned to the management device 200. At this time, the number of credits becomes "0", and the electronic information managed by the management device 200 is increased accordingly.
Furthermore, "credit" refers to the storage of electronic information as gaming value inside a gaming machine.
Furthermore, the term "bet" refers to placing a bet of electronic information as a gaming value in order to play a game. When the bet switch 40 is operated, electronic information as a credited gaming value is bet.

「規定数」とは、当該遊技で遊技を開始(実行)可能なベット数をいう。
また、「払出し」とは、役の入賞に基づき、入賞役の配当に応じた数の遊技価値としての電子情報をクレジット数に加算するこという。
さらにまた、「ベットメダル」とは、遊技を行うためにベットされている遊技価値としての電子情報をいう。
さらに、「貯留メダル」とは、クレジット(貯留)されている遊技価値としての電子情報をいう。
The "prescribed number" refers to the number of bets that can be made to start (execute) a game in question.
Further, "payout" refers to adding electronic information representing a gaming value in an amount corresponding to the payout of a winning combination to the credit amount based on the winning combination.
Furthermore, the term "bet medal" refers to electronic information representing the gaming value bet for playing a game.
Furthermore, "stored medals" refers to electronic information representing credited (stored) gaming value.

また、「貯留ベット」とは、ベットスイッチ40を操作することにより、当該遊技でベット可能な範囲内において、遊技機の内部にクレジットされている遊技価値としての電子情報の一部又は全部を、遊技を行うためにベットすることをいう。
さらにまた、「自動ベット」とは、リプレイが入賞したときに、遊技機としてのスロットマシン10の制御処理により、前回遊技でベットされていた数の遊技価値としての電子情報を自動でベットすることをいう。
In addition, a "reserved bet" refers to betting a part or all of the electronic information representing the game value credited inside the gaming machine, within the range that can be bet for that game, by operating the bet switch 40, in order to play the game.
Furthermore, "automatic bet" refers to the automatic betting of electronic information representing the game value of the amount bet in the previous game by the control processing of the slot machine 10 as a gaming machine when a replay is won.

さらに、「キャンセル」とは、キャンセルスイッチ46を操作することにより、ベットされている遊技価値としての電子情報(ベットメダル)をクレジットに戻すことをいう。キャンセルスイッチ46を操作すると、ベットされている遊技価値としての電子情報がクレジットに戻される。このとき、ベットメダルの数が「0」になり、その分、クレジット数に加算される。
また、「返却」とは、管理装置200の内部に貯留されている遊技価値としての電子情報をカード(磁気カードやICカード等)に記憶し、そのカードをカードリーダライタ205から排出することをいう。返却スイッチ203を操作すると、電子情報がカードに記憶されてカードリーダライタ205から排出される。
Furthermore, "cancel" refers to returning the electronic information (bet medals) representing the betted game value to credits by operating the cancel switch 46. When the cancel switch 46 is operated, the electronic information representing the betted game value is returned to credits. At this time, the number of bet medals becomes "0" and is added to the number of credits.
Moreover, "return" refers to storing electronic information as a game value stored inside the management device 200 onto a card (such as a magnetic card or an IC card) and ejecting the card from the card reader/writer 205. When the return switch 203 is operated, the electronic information is stored onto the card and the card is ejected from the card reader/writer 205.

また、「N-1」遊技目、「N」遊技目、「N+1」遊技目、・・・(「N」は、2以上の整数)と遊技が進行する場合において、現在の遊技が「N」遊技目であるとき、「N」遊技目の遊技を「今回遊技」と称する。また、「N-1」遊技目の遊技を「前回遊技」と称する。さらにまた、「N+1」遊技目の遊技を「次回遊技」と称する。 In addition, when a game progresses from the "N-1" game, to the "N" game, to the "N+1" game, ... (where "N" is an integer of 2 or more), and the current game is the "N" game, the "N" game is referred to as the "current game." The "N-1" game is referred to as the "previous game." Furthermore, the "N+1" game is referred to as the "next game."

本明細書において、数字の末尾(特に、8ビット)に「(B)」を付した数値は、2進数を意味する。同様に、数字の末尾に「(H)」を付した数値は、16進数を意味する。具体的には、たとえば10進数で「16」を示す数値は、2進数では「00010000(B)」と表記し、16進数では「10(H)」と表記する。また、10進数を意味する数値については、必要に応じて「16(D)」と表記する。
ただし、2進数、10進数、及び16進数のいずれであるかが明確であるときは、それぞれ「(B)」、「(D)」、「(H)」の末尾記号を省略する場合がある。
In this specification, a number with "(B)" added to the end (especially 8-bit) means a binary number. Similarly, a number with "(H)" added to the end means a hexadecimal number. Specifically, for example, a number showing "16" in decimal is written as "00010000(B)" in binary and "10(H)" in hexadecimal. Furthermore, a number showing a decimal number is written as "16(D)" as necessary.
However, when it is clear whether the number is binary, decimal, or hexadecimal, the final symbols "(B)", "(D)", and "(H)" may be omitted.

以下、図面等を参照して、本発明の一実施形態について説明する。
<第1実施形態>
第1実施形態における遊技機の一例であるスロットマシン10は、遊技価値(遊技媒体)として、物理的な(有体物としての)メダルを使用せずに、電子情報(電子メダル)を使用するものである。このため、本実施形態のスロットマシン10は、メダル投入口、メダルセレクタ、及びメダル払出し装置等を備えていない。
Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
First Embodiment
The slot machine 10, which is an example of a gaming machine in the first embodiment, does not use physical (tangible) medals as gaming value (gaming medium) but uses electronic information (electronic medals). Therefore, the slot machine 10 of this embodiment does not include a medal insertion slot, a medal selector, a medal payout device, etc.

また、第1実施形態では、スロットマシン10に隣接して、管理装置(CRユニット)200が配置されており、さらに、スロットマシン10と管理装置200とは、双方向で通信可能に接続されている。そして、スロットマシン10と管理装置200との間で通信により電子メダルを移行可能とされており、スロットマシン10においては、管理装置200から移行された電子メダルを使用して遊技を実行可能とされている。 In the first embodiment, a management device (CR unit) 200 is placed adjacent to the slot machine 10, and the slot machine 10 and the management device 200 are connected to enable two-way communication. Electronic medals can be transferred between the slot machine 10 and the management device 200 through communication, and the slot machine 10 can play games using the electronic medals transferred from the management device 200.

図1は、第1実施形態における遊技機の一例であるスロットマシン10の制御の概略を示すブロック図である。図1では、スロットマシン10とともに、管理装置(CRユニット)200、及びホールコンピュータ300を示している。
図1に示すように、本実施形態では、スロットマシン10は、代表的な制御基板として、メイン制御基板50、サブ制御基板80、及び払出制御基板100(クレジット数管理基板)を備えている。
1 is a block diagram showing an outline of the control of a slot machine 10, which is an example of a gaming machine in the first embodiment. In FIG. 1, the slot machine 10, a management device (CR unit) 200, and a hall computer 300 are shown.
As shown in FIG. 1, in this embodiment, the slot machine 10 includes, as representative control boards, a main control board 50, a sub-control board 80, and a payout control board 100 (a credit number management board).

図1中、実線部がデータのやりとりを示す通信線であり、矢印の向きは、データの流れる方向を示している。たとえば、メイン制御基板50と払出制御基板100とは、双方向で通信可能に形成されている。これに対し、メイン制御基板50とサブ制御基板80とは、メイン制御基板50からサブ制御基板80に対して一方向の通信となっている。
また、図1に示すように、メイン制御基板50は、入力ポート51及び出力ポート52を有し、RWM53、ROM54及びメインCPU55等を備えている(図1で図示したもののみを備える意味ではない)。
In Fig. 1, the solid lines indicate communication lines for data exchange, and the direction of the arrows indicates the direction of data flow. For example, the main control board 50 and the dispensing control board 100 are configured to be able to communicate in both directions. In contrast, the main control board 50 and the sub-control board 80 communicate in one direction from the main control board 50 to the sub-control board 80.
As shown in FIG. 1, the main control board 50 has an input port 51 and an output port 52, and is equipped with an RWM 53, a ROM 54, a main CPU 55, etc. (this does not mean that it is equipped with only those shown in FIG. 1).

さらにまた、図1に示すように、メイン制御基板50と、ベットスイッチ40等の操作スイッチを含む遊技進行用の周辺機器とは、入力ポート51又は出力ポート52を介して電気的に接続されている。
入力ポート51は、操作スイッチ等の信号が入力される接続部であり、出力ポート52は、モータ32等の周辺機器に対して信号を送信する接続部である。
図1中、入力用の周辺機器は、その周辺機器からの信号がメイン制御基板50に向かう矢印で表示しており、出力用の周辺機器は、メイン制御基板50からその周辺機器に向かう矢印で示している(サブ制御基板80も同様である)。
Furthermore, as shown in FIG. 1, the main control board 50 and peripheral devices for progressing through the game, including operation switches such as the bet switch 40, are electrically connected via an input port 51 or an output port 52.
The input port 51 is a connection portion to which signals from an operation switch or the like are input, and the output port 52 is a connection portion to transmit signals to peripheral devices such as the motor 32 .
In FIG. 1, input peripheral devices are indicated by arrows pointing from the signals from the peripheral devices to the main control board 50, and output peripheral devices are indicated by arrows pointing from the main control board 50 to the peripheral devices (the same applies to the sub-control board 80).

また、RWM53は、遊技の進行等に基づいた各種データ(変数)を記憶(更新)可能な記憶媒体である。
さらにまた、ROM54は、遊技の進行に必要なプログラムや各種データ(たとえば、データテーブル)等を記憶しておく記憶媒体である。
さらに、メインCPU55は、メイン制御基板50上に設けられたCPU(演算機能を備えるIC)を指し、遊技の進行に必要なプログラムの実行、演算等を行い、具体的には、役の抽選、リール31の駆動制御、及び入賞時の払出し等を実行する。
In addition, the RWM 53 is a storage medium capable of storing (updating) various data (variables) based on the progress of the game, etc.
Furthermore, the ROM 54 is a storage medium for storing programs and various data (for example, data tables) necessary for the progress of the game.
Furthermore, the main CPU 55 refers to a CPU (an IC with calculation functions) provided on the main control board 50, which executes programs and performs calculations necessary for the progress of the game, and specifically performs the drawing of winning roles, drive control of the reels 31, and payouts when a prize is won.

また、メイン制御基板50上には、RWM53、ROM54、メインCPU55及びレジスタを含むMPUが搭載される。なお、RWM53及びROM54は、MPU内部に搭載されるもの以外に、外部に備えていてもよい。
なお、後述するサブ制御基板80上においても、RWM83、ROM84、及びサブCPU85を含むMPUが搭載される。なお、RWM83及びROM84は、MPU内部に搭載されるもの以外に、外部に備えてもよい。
Furthermore, an MPU including an RWM 53, a ROM 54, a main CPU 55, and a register is mounted on the main control board 50. The RWM 53 and the ROM 54 may be mounted inside the MPU or may be provided externally.
Incidentally, an MPU including an RWM 83, a ROM 84, and a sub-CPU 85 is also mounted on a sub-control board 80, which will be described later. Incidentally, the RWM 83 and the ROM 84 may be provided externally instead of being mounted inside the MPU.

また、図1に示すように、本実施形態では、スロットマシン10は、遊技者が操作する操作スイッチとして、ベットスイッチ40、スタートスイッチ41、(左、中、右)ストップスイッチ42、キャンセルスイッチ46、及び計数スイッチ47を備えている。
そして、ベットスイッチ40、スタートスイッチ41、(左、中、右)ストップスイッチ42、及びキャンセルスイッチ46については、メイン制御基板50と電気的に接続されており、計数スイッチ47については、メイン制御基板50ではなく、後述する払出制御基板100(クレジット数管理基板)と電気的に接続されている。
Also, as shown in FIG. 1, in this embodiment, the slot machine 10 is provided with a bet switch 40, a start switch 41, (left, center, right) stop switches 42, a cancel switch 46, and a counting switch 47 as operation switches operated by the player.
The bet switches 40, start switches 41, (left, center, right) stop switches 42, and cancel switches 46 are electrically connected to a main control board 50, and the counting switch 47 is electrically connected not to the main control board 50 but to a payout control board 100 (credit number management board) described later.

ここで、「操作スイッチ(又は、単に、「スイッチ」)」とは、遊技者(操作者)による操作体の操作に基づいて(外部からの力を受け)、電気信号のオン/オフを切り替える装置(電気回路及び/又は電気部品を含む)を指し、遊技者が操作する操作体の形状を限定するものではない。
操作スイッチがオフ状態であるときは、たとえば発光素子からの光が受光素子に入射し続けている(受光素子が光を検知し続けているときは、操作スイッチはオフ状態にある。)。そして、遊技者等により操作スイッチ(の操作体)が操作されると、発光素子からの光が受光素子に入射しない状態となる。この状態を検知したときに、操作スイッチがオン状態になったことを示す電気信号をメイン制御基板50に送信する。なお、上記とは逆に、操作スイッチがオフ状態であるときは発光素子からの光が受光素子に入射せず、発光素子からの光が受光素子に入射したときにオン状態となるように構成してもよい。
Here, an "operation switch (or simply, "switch")" refers to a device (including an electrical circuit and/or electrical components) that switches an electrical signal on/off based on (receives external force) the operation of an operating object by a player (operator), and does not limit the shape of the operating object operated by the player.
When the operation switch is in the OFF state, for example, light from the light-emitting element continues to be incident on the light-receiving element (when the light-receiving element continues to detect light, the operation switch is in the OFF state). Then, when the operation switch (the operating object) is operated by a player or the like, the light from the light-emitting element is not incident on the light-receiving element. When this state is detected, an electrical signal indicating that the operation switch has been turned on is sent to the main control board 50. Note that, conversely to the above, the operation switch may be configured so that when the operation switch is in the OFF state, light from the light-emitting element does not enter the light-receiving element, and the ON state is reached when light from the light-emitting element enters the light-receiving element.

本実施形態では、スタートスイッチ41の操作体は、レバー(棒)状であり(このため、「スタートレバー(スイッチ)41」とも称される。)、ベットスイッチ40、ストップスイッチ42、キャンセルスイッチ46、計数スイッチ47の操作体は、押しボタン状である(このため、「ベットボタン(スイッチ)40」、「停止(ストップ)ボタン(スイッチ)42」、「キャンセルボタン(スイッチ)46」、「計数ボタン(スイッチ)47」とも称される)。 In this embodiment, the operating body of the start switch 41 is in the shape of a lever (rod) (hence, it is also referred to as the "start lever (switch) 41"), and the operating bodies of the bet switch 40, the stop switch 42, the cancel switch 46, and the counting switch 47 are in the shape of push buttons (hence, they are also referred to as the "bet button (switch) 40", the "stop button (switch) 42", the "cancel button (switch) 46", and the "counting button (switch) 47").

また、図1では図示しないが、操作スイッチの操作体及び/又はその周囲若しくは近傍には、LED(発光手段)が設けられている。そして、その操作スイッチの操作受付けが許可状態にあるときは、たとえばその操作スイッチに対応するLED等を青色発光し、その操作スイッチの操作受付けが不許可状態にあるときは、たとえばその操作スイッチのLED等を赤色発光することにより、その操作スイッチの許可/不許可状態を遊技者に示すようにしている。 Although not shown in FIG. 1, an LED (light emitting means) is provided on the operating body of the operation switch and/or around or near it. When the operation of the operation switch is permitted, the LED corresponding to the operation switch emits blue light, for example, and when the operation of the operation switch is not permitted, the LED of the operation switch emits red light, for example, to indicate to the player the permitted/not permitted state of the operation switch.

ベットスイッチ40は、スロットマシン10の内部にクレジットされている電子メダルを今回遊技のためにベットするときに遊技者に操作される操作スイッチである。
本実施形態では、ベットスイッチ40として、1回の操作で1枚の電子メダルをベットするための1ベットスイッチ40aと、1回の操作で3枚(最大数、規定数)の電子メダルをベットするための3ベットスイッチ40bとを備えている。
なお、ベットスイッチ40を1個のみ備え、このベットスイッチ40を1回操作することで、クレジットされている電子メダルのうち3枚(最大数、規定数)の電子メダルがベットされるようにしてもよい。
The bet switch 40 is an operation switch that is operated by the player when betting the electronic medals credited inside the slot machine 10 for the current game.
In this embodiment, the bet switches 40 include a 1 bet switch 40a for betting one electronic medal with one operation, and a 3 bet switch 40b for betting three (the maximum number, the specified number) electronic medals with one operation.
Alternatively, a single bet switch 40 may be provided, and three (the maximum number, a prescribed number) of the credited electronic medals may be bet by operating the bet switch 40 once.

また、スタートスイッチ41は、(左、中、右のすべての)リール31を始動(リール31の回転を開始)させるときに遊技者に操作される操作スイッチである。
さらにまた、ストップスイッチ42は、3つ(左、中、右)のリール31に対応して3つ設けられており、対応するリール31を停止させるときに遊技者に操作される操作スイッチである。
The start switch 41 is an operating switch that is operated by the player when starting up the reels 31 (left, center, and right reels 31) (to start the rotation of the reels 31).
Furthermore, three stop switches 42 are provided corresponding to the three reels 31 (left, center, and right), and are operation switches that are operated by the player when stopping the corresponding reel 31.

さらに、キャンセルスイッチ46は、ベットされている電子メダル(ベットメダル)をクレジットに戻すときに遊技者に操作される操作スイッチである。
キャンセルスイッチ46を操作すると、ベットされている電子メダルがクレジットに戻される。このとき、ベット数が「0」になり、その分、クレジット数に加算される。たとえば、3枚の電子メダルがベットされている状況下で、キャンセルスイッチ46を操作すると、ベット数が「3」から「0」になり、クレジット数に「3」が加算される。
Furthermore, the cancel switch 46 is an operation switch that is operated by the player when returning the bet electronic medals (bet medals) to credits.
When the cancel switch 46 is operated, the bet electronic medals are returned to credits. At this time, the number of bets becomes "0" and the number of credits is increased by that amount. For example, when three electronic medals have been bet, when the cancel switch 46 is operated, the number of bets becomes "0" from "3" and "3" is added to the number of credits.

電源スイッチ11は、スロットマシン10の電源のオン/オフを行うときに操作されるスイッチである。
設定キースイッチ12は、設定変更時や設定確認時に操作されるスイッチである。
設定キー挿入口に設定キーを挿入し、時計回りに90度回転させると、設定キースイッチ12がオンになる。
また、電源スイッチ11をオフにした状態(電源断の状態)で、設定キースイッチ12をオンにし、この状態で、電源スイッチ11をオンにすると、設定変更中、すなわち設定変更モードになる。
さらにまた、電源スイッチ11がオンの状態で、設定キースイッチ12をオンにすると、設定確認中、すなわち設定確認モードになる。
The power switch 11 is a switch that is operated to turn the power of the slot machine 10 on/off.
The setting key switch 12 is a switch that is operated when changing or checking settings.
When the setting key is inserted into the setting key insertion slot and rotated clockwise by 90 degrees, the setting key switch 12 is turned on.
Furthermore, when the power switch 11 is turned off (power off state) and the setting key switch 12 is turned on, and then the power switch 11 is turned on in this state, the setting is being changed, that is, the setting change mode is entered.
Furthermore, when the setting key switch 12 is turned on while the power switch 11 is on, the setting confirmation mode is entered.

設定スイッチ13は、設定値を変更するときに操作されるスイッチである。
設定変更中に設定スイッチ13を1回操作するごとに、設定値が「1」加算される。
本実施形態では、設定値は、設定1から設定6まで有し、設定変更中は、設定スイッチ13を1回操作するごとに、設定値が、「1」→「2」→・・・→「6」→「1」→・・・と切り替わる。
なお、設定変更中にはいずれかの設定値が所定の表示装置に表示されており、スタートスイッチ41を操作すると、表示されている設定値が確定する。
The setting switch 13 is a switch that is operated when changing a setting value.
Each time the setting switch 13 is operated during a setting change, the setting value is incremented by "1."
In this embodiment, the setting values range from setting 1 to setting 6, and when changing the setting, each time the setting switch 13 is operated, the setting value changes as follows: "1" → "2" → ... → "6" → "1" → ...
During the setting change, one of the setting values is displayed on a predetermined display device, and when the start switch 41 is operated, the displayed setting value is confirmed.

リセットスイッチ14は、RWM53を初期化するときやエラーを解除するときに操作されるスイッチである。
リセットスイッチ14をオンにした状態で電源スイッチ11をオンにすると、初期化処理が行われ、RWM53に記憶されている所定のデータがクリアされる。
また、エラーの原因を除去し、リセットスイッチ14を操作(オン)すると、エラーが解除される。
The reset switch 14 is a switch that is operated when initializing the RWM 53 or when canceling an error.
When the power switch 11 is turned on with the reset switch 14 being turned on, an initialization process is performed and the predetermined data stored in the RWM 53 is cleared.
Furthermore, when the cause of the error is removed and the reset switch 14 is operated (turned on), the error is cleared.

また、メイン制御基板50は、出力ポート52の一部から、外部集中端子板190に対し、外部信号(外端信号)を出力する。
ここで、「外部信号」とは、外部集中端子板190を介してスロットマシン10の外部(ホールコンピュータ300や、ホールに設置されているデータカウンタ等)に出力するための信号である。
図1に示すように、メイン制御基板50は、外部集中端子板190を介して、ホールコンピュータ300と電気的に接続されている。そして、メイン制御基板50から外部集中端子板190に対して一方向で信号を送信し、外部集中端子板190からホールコンピュータ300に対して一方向で信号を送信する。
In addition, the main control board 50 outputs an external signal (outer end signal) from a part of the output port 52 to the external centralized terminal board 190 .
Here, the "external signal" is a signal to be outputted to the outside of the slot machine 10 (such as the hall computer 300 or a data counter installed in the hall) via the external centralized terminal board 190.
1, the main control board 50 is electrically connected to the hall computer 300 via the external centralized terminal board 190. Then, signals are transmitted unidirectionally from the main control board 50 to the external centralized terminal board 190, and signals are transmitted unidirectionally from the external centralized terminal board 190 to the hall computer 300.

また、図1に示すように、本実施形態では、スロットマシン10は、枚数表示装置として、獲得数表示LED78、及びクレジット数表示LED76を備えている。
そして、獲得数表示LED78は、メイン制御基板50と電気的に接続されており、クレジット数表示LED76は、メイン制御基板50ではなく、後述する払出制御基板100(クレジット数管理基板)と電気的に接続されている。
獲得数表示LED78は、役の入賞時に、電子メダルの払出し枚数(遊技者の獲得数)を表示するLEDであり、上位桁及び下位桁の2桁から構成されている。
なお、獲得数表示LED78は、払い出される電子メダルがないときは、消灯するように制御してもよい。あるいは、上位桁を消灯し、下位桁のみを「0」表示してもよい。
As shown in FIG. 1, in this embodiment, the slot machine 10 is provided with an acquired number display LED 78 and a credit number display LED 76 as number display devices.
The acquired number display LED 78 is electrically connected to the main control board 50, while the credit number display LED 76 is electrically connected not to the main control board 50 but to a payout control board 100 (credit number management board) described later.
The winning number display LED 78 is an LED that displays the number of electronic medals paid out (the number of medals won by the player) when a winning combination is achieved, and is composed of two digits, an upper digit and a lower digit.
The acquired number display LED 78 may be controlled so as to be turned off when there are no electronic medals to be paid out. Alternatively, the upper digits may be turned off and only the lower digits may display "0".

また、獲得数表示LED78は、通常は電子メダルの払出し枚数(獲得数)を表示するが、エラー発生時にはエラーの内容(種類)を表示するLEDとして機能する。
さらにまた、獲得数表示LED78は、AT中に押し順を報知する遊技では、押し順指示情報を表示する(有利な押し順を報知する)LEDとして機能する。
よって、本実施形態における獲得数表示LED78は、払出し枚数(獲得数)、エラー内容、及び押し順指示情報の表示を兼ねるLEDである。ただし、これに限らず、押し順指示情報を表示する専用のLED等を設けてもよいのはもちろんである。
なお、AT中において、有利な押し順の報知は、サブ制御基板80に接続された画像表示装置23によっても実行される。
The acquired number display LED 78 normally displays the number of paid out electronic medals (acquired number), but when an error occurs, it also functions as an LED that displays the content (type) of the error.
Furthermore, in a game in which the order in which buttons are pressed is notified during the AT, the winning number display LED 78 functions as an LED that displays button press instruction information (notifies an advantageous button press order).
Therefore, the winning number display LED 78 in this embodiment is an LED that also displays the payout number (winning number), error content, and push order instruction information. However, it is not limited to this, and it is of course possible to provide a dedicated LED for displaying push order instruction information.
During the AT, notification of advantageous button pressing sequences is also performed by the image display device 23 connected to the sub-control board 80.

また、図1に示すように、メイン制御基板50には、図柄表示装置のモータ32(本実施形態ではステッピングモータ)等が電気的に接続されている。
図柄表示装置は、図柄を表示する(本実施形態では3つの)リール31と、各リール31をそれぞれ駆動するモータ32と、リール31の位置を検出するためのリールセンサ33とを含む。
As shown in FIG. 1, the main control board 50 is electrically connected to a motor 32 (a stepping motor in this embodiment) of the symbol display device.
The symbol display device includes reels 31 (three in this embodiment) that display symbols, motors 32 that drive each of the reels 31 , and a reel sensor 33 that detects the position of the reels 31 .

モータ32は、リール31を回転させるための駆動手段となるものであり、各リール31の回転中心部に連結され、リール制御手段65によって制御される。
ここで、リール31は、左リール31、中リール31、右リール31からなり、左リール31を停止させるときに操作するストップスイッチ42が左ストップスイッチ42であり、中リール31を停止させるときに操作するストップスイッチ42が中ストップスイッチ42であり、右リール31を停止させるときに操作するストップスイッチ42が右ストップスイッチ42である。
The motor 32 serves as a driving means for rotating the reels 31 , is connected to the rotation center of each reel 31 , and is controlled by the reel control means 65 .
Here, the reels 31 consist of a left reel 31, a middle reel 31, and a right reel 31, and the stop switch 42 operated to stop the left reel 31 is the left stop switch 42, the stop switch 42 operated to stop the middle reel 31 is the middle stop switch 42, and the stop switch 42 operated to stop the right reel 31 is the right stop switch 42.

リール31は、リング状のものであって、その外周面には複数種類の図柄(役に対応する図柄組合せを構成している図柄)を印刷したリールテープを貼付したものである。
また、各リール31には、1個(2個以上であってもよい)のインデックスが設けられている。インデックスは、リール31のたとえば周側面に凸状に設けられており、リール31が所定位置を通過したか否かや、1回転したか否か等を検出するときに用いられる。そして、各インデックスは、リールセンサ33によって検知される。
The reel 31 is ring-shaped, and has a reel tape attached to its outer periphery on which a number of types of symbols (symbols constituting symbol combinations corresponding to winning combinations) are printed.
Each reel 31 is provided with one index (it may be two or more). The index is provided in a convex shape, for example, on the peripheral side of the reel 31, and is used to detect whether the reel 31 has passed a predetermined position, whether it has made one rotation, etc. Each index is detected by a reel sensor 33.

リールセンサ33は、メイン制御基板50に電気的に接続されている。そして、リールセンサ33がインデックスを検知すると、その入力信号がメイン制御基板50に入力され、そのリール31が所定位置を通過したことが検知される。
また、リールセンサ33がリール31のインデックスを検知した瞬間の基準位置上の図柄を予めROM54に記憶している。これにより、インデックスを検知した瞬間の基準位置上の図柄を検知することができる。さらに、リールセンサ33がリール31のインデックスを検知した瞬間から、(ステッピング)モータ32を何パルス駆動すれば、前記基準位置上の図柄から数えて何図柄先の図柄を有効ライン上に停止させることができるかを識別可能となる。
The reel sensor 33 is electrically connected to the main control board 50. When the reel sensor 33 detects an index, the input signal is input to the main control board 50, and it is detected that the reel 31 has passed a predetermined position.
Also, the symbol on the reference position at the moment when the reel sensor 33 detects the index of the reel 31 is stored in advance in the ROM 54. This makes it possible to detect the symbol on the reference position at the moment when the index is detected. Furthermore, it becomes possible to identify how many pulses the (stepping) motor 32 should be driven from the moment when the reel sensor 33 detects the index of the reel 31 in order to stop the symbol on the pay line, counting from the symbol on the reference position.

遊技者は、遊技を開始するときは、クレジットされている電子メダルをベットスイッチ40の操作によりベットする。そして、当該遊技の規定数の電子メダルがベットされた状態でスタートスイッチ41が操作されると、そのときに発生する信号がメイン制御基板50に入力される。メイン制御基板50は、この信号を受信すると、役抽選手段61(内部抽せん手段)による抽選を行うとともに、すべてのモータ32を駆動制御して、すべてのリール31を回転させるように制御する。このようにしてリール31がモータ32によって回転されることで、リール31上の図柄は、所定の速度で表示窓内で上下方向に移動表示される。 When a player starts a game, he bets the credited electronic medals by operating the bet switch 40. Then, when the start switch 41 is operated with the specified number of electronic medals for that game bet, the signal generated at that time is input to the main control board 50. When the main control board 50 receives this signal, it performs a lottery using the role selection means 61 (internal selection means), and controls the drive of all motors 32 to rotate all reels 31. In this way, the reels 31 are rotated by the motors 32, and the symbols on the reels 31 are displayed moving up and down within the display window at a predetermined speed.

そして、遊技者は、ストップスイッチ42を操作することで、そのストップスイッチ42に対応するリール31(たとえば、左ストップスイッチ42に対応する左リール31)の回転を停止させる。
ストップスイッチ42が操作されると、そのときに発生する信号がメイン制御基板50に入力される。メイン制御基板50は、この信号を受信すると、そのストップスイッチ42に対応するモータ32を駆動制御して、役抽選手段61の抽選結果(内部抽せん手段により決定した結果)に対応するように、そのモータ32に係るリール31の停止制御を行う。そして、すべてのリール31の停止時における図柄組合せにより、今回遊技の遊技結果を表示する。さらに、いずれかの役に対応する図柄組合せが有効ラインに停止したとき(その役の入賞となったとき)は、入賞した役に対応する電子メダルの払出し等が行われる。
Then, the player operates a stop switch 42 to stop the rotation of the reel 31 corresponding to that stop switch 42 (for example, the left reel 31 corresponding to the left stop switch 42).
When the stop switch 42 is operated, a signal generated at that time is input to the main control board 50. When the main control board 50 receives this signal, it drives and controls the motor 32 corresponding to that stop switch 42, and controls the stop of the reel 31 related to that motor 32 so as to correspond to the lottery result of the role lottery means 61 (the result determined by the internal lottery means). Then, the game result of the current game is displayed based on the symbol combination when all the reels 31 stop. Furthermore, when a symbol combination corresponding to any role stops on an active line (when that role wins), the electronic medal corresponding to the winning role is paid out, etc.

次に、メイン制御基板50の具体的構成について説明する。
図1に示すように、メイン制御基板50のメインCPU55は、以下の役抽選手段61等を備える。本実施形態における以下の各手段は例示であり、本実施形態で示した手段に限定されるものではない。
役抽選手段61は、当選番号の抽選(決定、選択)を行う。ここで、「役抽選手段61による当選番号の抽選」は、風営法規則(遊技機の認定及び型式の検定等に関する規則。以下、単に「規則」という。)における「内部抽せん」と同じであり、役抽選手段61による抽選結果は、規則における「内部抽せんにより決定した結果」と同じである。したがって、役抽選手段61を、規則に合わせた表現で、「内部抽せん手段61」とも称する。
Next, a specific configuration of the main control board 50 will be described.
1, the main CPU 55 of the main control board 50 includes the following role selection means 61, etc. The following means in this embodiment are merely examples, and are not limited to the means shown in this embodiment.
The role selection means 61 selects (determines, selects) the winning number. Here, the "selection of the winning number by the role selection means 61" is the same as the "internal lottery" in the Entertainment and Amusement Act Regulations (regulations on the certification of gaming machines and the inspection of models, etc., hereinafter simply referred to as the "Regulations"). The result of the selection by the role selection means 61 is the same as the "result determined by the internal lottery" in the Regulations. Therefore, the role selection means 61 is also referred to as the "internal lottery means 61" in accordance with the Regulations.

役抽選手段61により当選番号が決定されると、その当選番号に基づいて、入賞及びリプレイ条件装置番号、並びに役物条件装置番号が決定され、当該遊技で作動可能となる入賞及びリプレイ条件装置、並びに役物条件装置が定まることとなる。このため、役抽選手段61は、条件装置番号の決定(抽選又は選択)手段、当選役決定(抽選又は選択)手段等とも称される。
役抽選手段61は、たとえば、抽選用の乱数発生手段(ハードウェア乱数等)と、この乱数発生手段が発生する乱数を抽出する乱数抽出手段と、乱数抽出手段が抽出した乱数値に基づいて、当選番号を決定する当選番号決定手段とを備えている。
When the winning number is determined by the role selection means 61, the winning and replay condition device number and the role condition device number are determined based on the winning number, and the winning and replay condition devices and the role condition devices that are operable in the game are determined. For this reason, the role selection means 61 is also called a condition device number determination (lottery or selection) means, a winning role determination (lottery or selection) means, etc.
The role selection means 61 includes, for example, a random number generation means for the lottery (such as a hardware random number), a random number extraction means for extracting the random numbers generated by the random number generation means, and a winning number determination means for determining the winning number based on the random number value extracted by the random number extraction means.

乱数発生手段は、所定の領域(たとえば10進数で「0」~「65535」)の乱数を発生させる。乱数は、たとえば200n(ナノ)secで1カウントを行うカウンターが「0」~「65535」の範囲を1サイクルとしてカウントし続ける乱数であり、スロットマシン10の電源が投入されている間は、乱数をカウントし続ける。
乱数抽出手段は、乱数発生手段によって発生した乱数を、所定の時、本実施形態では遊技者によりスタートスイッチ41が操作(オン)された時に抽出する。
当選番号決定手段は、乱数抽出手段により抽出された乱数値を、抽選テーブルと照合することにより、その乱数値が属する領域に対応する当選番号を決定する。
The random number generating means generates random numbers in a predetermined range (for example, "0" to "65535" in decimal). The random numbers are generated by a counter that performs one count every 200 n (nano) sec and continues to count the range of "0" to "65535" as one cycle, and continues to count random numbers while the slot machine 10 is powered on.
The random number extraction means extracts the random number generated by the random number generation means at a predetermined time, in this embodiment, when the start switch 41 is operated (turned on) by the player.
The winning number determination means collates the random number extracted by the random number extraction means with a lottery table to determine the winning number corresponding to the area to which the random number belongs.

当選フラグ制御手段62は、役抽選手段61による抽選結果に基づいて、各役に対応する当選フラグのオン/オフを制御するものである。
本実施形態では、すべての役について、役ごとに当選フラグを備える。そして、役抽選手段61による抽選においていずれかの役の当選となったときは、その役の当選フラグをオンにする(当選フラグを立てる)。なお、役の当選には、当選役が1つである場合(単独当選)と、当選役が複数ある場合(重複当選)とが挙げられる。
The winning flag control means 62 controls the on/off state of a winning flag corresponding to each winning combination based on the lottery result by the winning combination selection means 61 .
In this embodiment, a winning flag is provided for each role for all roles. When any role is selected by the role selection means 61, the winning flag for that role is turned on (the winning flag is set). Note that winning roles include a case where there is one winning role (single winning) and a case where there are multiple winning roles (multiple winning).

リール制御手段65は、リール31の回転開始命令を受けたとき、特に本実施形態ではスタートスイッチ41の操作(オン)を検知したときに、すべて(3つ)のリール31の回転を開始するように制御する。
また、リール制御手段65は、役抽選手段61により当選番号の決定が行われた後、今回遊技における当選フラグのオン/オフを参照して、当選フラグのオン/オフに対応する停止位置決定テーブルを選択するとともに、ストップスイッチ42が操作されたときに、ストップスイッチ42の操作(オン)を検知したときのタイミングに基づいて、そのストップスイッチ42に対応するリール31の停止位置を決定するとともに、モータ32を駆動制御して、その決定した位置にそのリール31を停止させるように制御する。
When the reel control means 65 receives a command to start rotating the reels 31, particularly in this embodiment when it detects that the start switch 41 has been operated (on), it controls all (three) reels 31 to start rotating.
In addition, after the winning number is determined by the role selection means 61, the reel control means 65 refers to the on/off state of the winning flag for the current game and selects a stop position determination table corresponding to the on/off state of the winning flag, and when the stop switch 42 is operated, determines the stop position of the reel 31 corresponding to the stop switch 42 based on the timing when the operation (on) of the stop switch 42 is detected, and drives and controls the motor 32 to stop the reel 31 at the determined position.

たとえば、リール制御手段65は、少なくとも1つの当選フラグがオンである遊技では、リール31の停止制御の範囲内において、当選役(当選フラグがオンになっている役)に対応する図柄組合せを有効ラインに停止可能にリール31を停止制御するとともに、当選役以外の役(当選フラグがオフになっている役)に対応する図柄組合せを有効ラインに停止させないようにリール31を停止制御する。
ここで、「リール31の停止制御の範囲内」とは、ストップスイッチ42が操作された瞬間からリール31が実際に停止するまでの時間又はリール31の回転量(移動図柄(コマ)数)の範囲内を意味する。
For example, in a game in which at least one winning flag is on, the reel control means 65 controls the reel 31 to stop so that, within the range of the stopping control of the reel 31, a pattern combination corresponding to a winning role (a role for which the winning flag is on) can be stopped on an active line, and also controls the reel 31 to stop so that a pattern combination corresponding to a role other than the winning role (a role for which the winning flag is off) is not stopped on an active line.
Here, "within the range of the stopping control of the reel 31" means within the range of the time from the moment the stop switch 42 is operated to the moment the reel 31 actually stops or the amount of rotation of the reel 31 (the number of moving symbols (frames)).

本実施形態では、リール31は、定速時は1分間で約80回転する速度で回転される。
そして、ストップスイッチ42が操作されたときは、MB作動中の所定のリール31(たとえば、中リール31)を除き、ストップスイッチ42が操作された瞬間からリール31を停止させるまでの時間が190ms以内に設定されている。これにより、本実施形態では、MB作動中の所定のリール31を除き、ストップスイッチ42が操作された瞬間の図柄からリール31が停止するまでの最大移動図柄数が4図柄に設定されている。
一方、MB作動中の所定のリール31については、ストップスイッチ42が操作された瞬間からリール31を停止させるまでの時間が75ms以内に設定されている。これにより、MB作動中の所定のリール31については、ストップスイッチ42が操作された瞬間の図柄からリール31が停止するまでの最大移動図柄数が1図柄に設定されている。
In this embodiment, the reel 31 rotates at a constant speed of approximately 80 rotations per minute.
When the stop switch 42 is operated, the time from the moment the stop switch 42 is operated until the reels 31 are stopped is set to within 190 ms, except for a specific reel 31 (for example, the center reel 31) during MB operation. As a result, in this embodiment, the maximum number of moving symbols from the symbol at the moment the stop switch 42 is operated until the reel 31 is stopped is set to four symbols, except for a specific reel 31 during MB operation.
On the other hand, for a specific reel 31 during MB operation, the time from the moment the stop switch 42 is operated to the moment the reel 31 is stopped is set to within 75 ms. As a result, for a specific reel 31 during MB operation, the maximum number of moving symbols from the symbol at the moment the stop switch 42 is operated until the reel 31 stops is set to one symbol.

そして、ストップスイッチ42の操作を検知した瞬間に、リール31の停止制御の範囲内にある図柄のいずれかが所定の有効ラインに停止させるべき図柄であるときは、ストップスイッチ42が操作されたときに、その図柄が所定の有効ラインに停止するように制御される。
すなわち、ストップスイッチ42が操作された瞬間に直ちにリール31を停止させると、当選番号に対応する役の図柄が所定の有効ラインに停止しないときには、リール31を停止させるまでの間に、リール31の停止制御の範囲内においてリール31を回転移動制御することで、当選番号に対応する役の図柄をできる限り所定の有効ラインに停止させるように制御する(引込み停止制御)。
Then, at the moment when the operation of the stop switch 42 is detected, if any of the symbols within the range of the stop control of the reel 31 is a symbol that should be stopped on a predetermined effective line, the symbol is controlled to stop on the predetermined effective line when the stop switch 42 is operated.
In other words, if the reel 31 is stopped immediately at the moment the stop switch 42 is operated and the symbol of the winning combination corresponding to the winning number does not stop on the specified pay line, the reel 31 is controlled to rotate and move within the range of the reel 31's stop control until the reel 31 is stopped, so that the symbol of the winning combination corresponding to the winning number is stopped on the specified pay line as much as possible (pull-in stop control).

また逆に、ストップスイッチ42が操作された瞬間に直ちにリール31を停止させると、当選番号に対応しない役の図柄組合せが有効ラインに停止してしまうときは、リール31の停止時に、リール31の停止制御の範囲内においてリール31を回転移動制御することで、当選番号に対応しない役の図柄組合せを有効ラインに停止させないように制御する(蹴飛ばし停止制御)。
さらに、複数の役に当選している遊技(たとえば、押し順ベル当選時)では、ストップスイッチ42の押し順や、ストップスイッチ42の操作タイミングに応じて、入賞させる役の優先順位が予め定められており、所定の優先順位によって、最も優先する役に係る図柄の引込み停止制御を行う。
Conversely, if the reel 31 is stopped immediately at the moment the stop switch 42 is operated, and a symbol combination of a winning combination not corresponding to the winning number stops on an active line, the reel 31 is controlled to rotate and move within the range of the reel 31 stop control when the reel 31 stops, so that the symbol combination of a winning combination not corresponding to the winning number does not stop on an active line (kick-off stop control).
Furthermore, in a game in which multiple winning combinations are achieved (for example, when the push order bell is achieved), the priority of the winning combinations is predetermined according to the order of pushing the stop switch 42 and the timing of operating the stop switch 42, and the pulling-in stop control of the symbol associated with the most prioritized combination is performed according to the predetermined priority order.

入賞判定手段66は、リール31の停止時に、有効ラインに停止したリール31の図柄組合せが、いずれかの役に対応する図柄組合せであるか否かを判断するものである。
ここで、入賞判定手段66は、実際に、役に対応する図柄組合せが有効ラインに停止したか否かを検知することはない。具体的には、当該遊技で作動した条件装置と、ストップスイッチ42の押し順及び/又はストップスイッチ42の操作タイミングとから、リール31が実際に停止する前に有効ラインに停止する図柄組合せを予め判断するか、又はリール31の停止後に有効ラインに停止した図柄組合せを予め判断する。
The winning determination means 66 determines whether or not the symbol combination on the reel 31 that has stopped on the pay line corresponds to any winning combination when the reel 31 stops.
Here, the winning determination means 66 does not actually detect whether the symbol combination corresponding to the winning combination has stopped on an active line. Specifically, based on the condition device operated in the game and the pressing order of the stop switch 42 and/or the operation timing of the stop switch 42, the winning determination means 66 determines in advance the symbol combination that will stop on an active line before the reel 31 actually stops, or determines in advance the symbol combination that will stop on an active line after the reel 31 stops.

払出し手段67は、入賞判定手段66により、リール31の停止時に有効ラインに停止した図柄組合せがいずれかの役に対応する図柄組合せと一致すると判断され、その役の入賞となったときに、その入賞役に応じた枚数の電子メダルをクレジット数に加算する処理を行うものである。
また、払出し手段67は、リプレイの入賞時には、電子メダルをクレジット数に加算することなく、今回遊技で投入された枚数の電子メダルを自動投入(自動ベット)するように制御する。
When the winning determination means 66 determines that the symbol combination stopped on the winning line when the reels 31 stop matches a symbol combination corresponding to any winning combination and that winning combination results in a winning combination, the payout means 67 performs a process of adding the number of electronic medals corresponding to the winning combination to the credit amount.
Furthermore, when a replay wins, the payout means 67 performs control so as to automatically insert (automatically bet) the number of electronic medals inserted in the current game without adding the electronic medals to the credit amount.

メイン制御基板50は、サブ制御基板80に対し、サブ制御基板80で出力する演出に必要な情報(制御コマンド)を送信する。
制御コマンドとしては、たとえば、ベットスイッチ40が操作されたときの情報、スタートスイッチ41が操作されたときの情報、役の抽選結果(内部抽せんにより決定した結果)に関する情報、ストップスイッチ42が操作されたときの情報、入賞した役の情報等が挙げられる。
The main control board 50 transmits to the sub-control board 80 information (control commands) necessary for the performance to be output by the sub-control board 80 .
Control commands include, for example, information when the bet switch 40 is operated, information when the start switch 41 is operated, information regarding the results of the role selection (results determined by internal lottery), information when the stop switch 42 is operated, information regarding the winning role, etc.

サブ制御基板80は、遊技中及び遊技待機中における演出(情報)の選択や出力等を制御するものである。
ここで、メイン制御基板50とサブ制御基板80とは、電気的に接続されており、メイン制御基板50は、シリアル通信によってサブ制御基板80に一方向で、演出の出力に必要な情報(制御コマンド)を送信する。
なお、メイン制御基板50とサブ制御基板80とは、電気的に接続されることに限らず、光通信手段を用いた接続であってもよい。さらに、電気的接続及び光通信接続のいずれにおいても、シリアル通信に限らず、パラレル通信であってもよく、シリアル通信とパラレル通信とを併用してもよい。
The sub-control board 80 controls the selection and output of effects (information) during play and when the game is on standby.
Here, the main control board 50 and the sub-control board 80 are electrically connected, and the main control board 50 transmits information (control commands) necessary for outputting the performance unidirectionally to the sub-control board 80 via serial communication.
The main control board 50 and the sub-control board 80 are not limited to being electrically connected, but may be connected using optical communication means. Furthermore, in both the electrical connection and the optical communication connection, the communication is not limited to serial communication, but may be parallel communication, or serial communication and parallel communication may be used in combination.

サブ制御基板80は、メイン制御基板50と同様に、入力ポート81、出力ポート82、RWM83、ROM84、及びサブCPU85等を備える。
サブ制御基板80には、入力ポート81又は出力ポート82を介して、図1に示すような以下の演出ランプ21等の演出用周辺機器が電気的に接続されている。ただし、演出用の周辺機器は、これらに限られるものではない。
Similar to the main control board 50, the sub-control board 80 includes an input port 81, an output port 82, an RWM 83, a ROM 84, and a sub-CPU 85.
The sub-control board 80 is electrically connected to the following performance peripheral devices such as the performance lamps 21 as shown in Fig. 1 via an input port 81 or an output port 82. However, the performance peripheral devices are not limited to these.

RWM83は、サブCPU85が演出を制御するときに取り込んだデータ等を一時的に記憶可能な記憶媒体である。
また、ROM84は、演出用データとして、演出に係る抽選を行うとき等のプログラムや各種データ等を記憶しておく記憶媒体である。
さらに、サブCPU85は、サブ制御基板80上に設けられたCPU(演算機能を備えるIC)を指し、遊技中及び遊技待機中における演出の出力に必要なプログラムの実行、演算等を行う。
The RWM 83 is a storage medium capable of temporarily storing data etc. acquired when the sub-CPU 85 controls the performance.
The ROM 84 is a storage medium that stores programs and various data, such as those used when conducting lotteries related to performance, as performance data.
Furthermore, the sub-CPU 85 refers to a CPU (an IC with a calculation function) provided on the sub-control board 80, and executes programs and performs calculations necessary for outputting effects during gameplay and when waiting to play.

また、演出ランプ21は、たとえばLED等からなり、所定の条件を満たしたときに、それぞれ所定のパターンで点灯又は点滅する。
なお、演出ランプ21には、各リール31の内周側に配置され、リール31に表示された図柄(表示窓から見える上下に連続する3図柄)を背後から照らすためのバックランプ、リール31の上部からリール31上の図柄を照光する蛍光灯、スロットマシン10のフロントドア前面に配置され、役の入賞時等に点滅する枠ランプ等が含まれる。
さらにまた、スピーカ22は、遊技中に各種の演出を行うべく、所定の条件を満たしたときに、所定のサウンドを出力するものである。
The performance lamps 21 are, for example, LEDs, and light up or flash in a predetermined pattern when predetermined conditions are met.
The performance lamps 21 include back lamps that are arranged on the inner circumference of each reel 31 and illuminate the patterns displayed on the reels 31 (three consecutive patterns visible from above and below through the display window) from behind, fluorescent lamps that illuminate the patterns on the reels 31 from above the reels 31, and frame lamps that are arranged in front of the front door of the slot machine 10 and flash when a winning combination is achieved, etc.
Furthermore, the speaker 22 outputs a predetermined sound when a predetermined condition is satisfied in order to provide various effects during a game.

さらに、画像表示装置23は、液晶ディスプレイ、有機ELディスプレイ、ドットディスプレイ等からなるものであり、遊技中に各種の演出画像(正解押し順、当該遊技で作動する条件装置に対応する演出等)や、遊技情報(役物作動時や有利区間(AT)中の遊技回数や獲得枚数等)等を表示するものである。
また、サブ制御基板80のサブCPU85は、演出出力制御手段91を備える。そして、演出出力制御手段91は、メイン制御基板50から送信された制御コマンドに基づいて、どのようなタイミングで、どのような演出を出力するかを決定し、この決定に基づいて、演出用の周辺機器から各種の演出を出力するように制御する。
Furthermore, the image display device 23 consists of an LCD display, an organic EL display, a dot display, etc., and displays various presentation images during play (such as correct button presses, presentations corresponding to the conditional devices activated in the game), game information (such as the number of plays and number of coins won when the reels are activated or during the advantageous zone (AT)), etc.
The sub-CPU 85 of the sub-control board 80 also includes a performance output control means 91. The performance output control means 91 determines what kind of performance is to be output and at what timing based on the control command transmitted from the main control board 50, and controls the output of various performances from the peripheral devices for performance based on this determination.

図1に示すように、本実施形態では、スロットマシン10は、払出制御基板100(クレジット数管理基板)を備えている。
また、払出制御基板100は、電子メダルのクレジット数を管理するものである。
ここで、メイン制御基板50と払出制御基板100とは、電気的に接続されており、双方向での通信が可能に形成されている。
なお、メイン制御基板50と払出制御基板100とは、電気的に接続されることに限らず、光通信手段を用いた接続であってもよい。
また、電気的接続及び光通信接続のいずれにおいても、シリアル通信としてもよく、パラレル通信としてもよく、シリアル通信とパラレル通信とを併用してもよい。
As shown in FIG. 1, in this embodiment, a slot machine 10 includes a payout control board 100 (a credit number management board).
The payout control board 100 also manages the number of credits of electronic medals.
Here, the main control board 50 and the dispensing control board 100 are electrically connected and configured to enable two-way communication.
In addition, the main control board 50 and the dispensing control board 100 do not necessarily have to be electrically connected, but may be connected using optical communication means.
In addition, in both the electrical connection and the optical communication connection, serial communication may be used, parallel communication may be used, or serial communication and parallel communication may be used in combination.

払出制御基板100は、メイン制御基板50やサブ制御基板80と同様に、入力ポート101、出力ポート102、RWM103、ROM104、及びクレジット数管理CPU105等を備える。
また、払出制御基板100には、入力ポート101又は出力ポート102を介して、メイン制御基板50、操作スイッチとしての計数スイッチ47、枚数表示装置としてのクレジット数表示LED76、及びスロットマシン10の外部の管理装置(CRユニット)200等が電気的に接続されている。
The payout control board 100, like the main control board 50 and the sub-control board 80, comprises an input port 101, an output port 102, an RWM 103, a ROM 104, and a credit number management CPU 105, etc.
In addition, the payout control board 100 is electrically connected to the main control board 50, a counting switch 47 as an operation switch, a credit number display LED 76 as a number display device, and an external management device (CR unit) 200 of the slot machine 10 via an input port 101 or an output port 102.

RWM103は、クレジット数管理CPU105がクレジット数を管理するときに取り込んだデータ等を一時的に記憶可能な記憶媒体である。
また、ROM104は、クレジット数を管理するときのプログラムや各種データ等を記憶しておく記憶媒体である。
さらに、クレジット数管理CPU105は、払出制御基板100上に設けられたCPU(演算機能を備えるIC)を指し、クレジット数の管理に必要なプログラムの実行、演算等を行う。
The RWM 103 is a storage medium capable of temporarily storing data etc. that is captured when the credit number management CPU 105 manages the credit number.
The ROM 104 is a storage medium for storing programs for managing the number of credits, various data, and the like.
Furthermore, the credit number management CPU 105 refers to a CPU (an IC having a calculation function) provided on the payout control board 100, and executes programs and performs calculations required for managing the credit number.

また、計数スイッチ47は、スロットマシン10の内部にクレジットされている電子メダルを管理装置200に戻すときに遊技者に操作される操作スイッチである。
計数スイッチ47を操作すると、スロットマシン10の内部にクレジットされている電子メダルが管理装置200に戻される。このとき、クレジット数が「0」になり、その分、管理装置200において管理する電子メダルの枚数が加算される。
たとえば、スロットマシン10の内部に100枚の電子メダルがクレジットされている状況下で、計数スイッチ47を操作すると、クレジット数が「100」から「0」になり、管理装置200において管理する電子メダルの枚数に「100」が加算される。
The counting switch 47 is an operation switch that is operated by the player when returning the electronic medals credited inside the slot machine 10 to the management device 200 .
When the counting switch 47 is operated, the electronic medals credited inside the slot machine 10 are returned to the management device 200. At this time, the number of credits becomes "0", and the number of electronic medals managed by the management device 200 is increased accordingly.
For example, when 100 electronic medals are credited inside the slot machine 10, operating the counting switch 47 changes the credit number from "100" to "0," and "100" is added to the number of electronic medals managed by the management device 200.

また、たとえば、3枚の電子メダルがベットされ、かつ100枚の電子メダルがクレジットされている状況下で、キャンセルスイッチ46を操作すると、ベットされている電子メダルがクレジットに戻される。このとき、ベット数が「3」から「0」になり、クレジット数が「100」から「103」になる。その後、計数スイッチ47を操作すると、クレジット数が「103」から「0」になり、管理装置200において管理する電子メダルの枚数に「103」が加算される。
このように、本実施形態では、遊技者が遊技をやめるときに、ベットされている電子メダルがあれば、まず、キャンセルスイッチ46を操作して、ベットされている電子メダルをクレジットに戻し、その後に、計数スイッチ47を操作して、クレジットされている電子メダルを管理装置200に戻す。
Also, for example, when three electronic medals have been bet and 100 electronic medals have been credited, operating the cancel switch 46 returns the bet electronic medals to credits. At this time, the number of bets becomes "0" from "3", and the number of credits becomes "100" from "103". After that, when the counting switch 47 is operated, the number of credits becomes "0" from "103", and "103" is added to the number of electronic medals managed by the management device 200.
In this manner, in this embodiment, if there are electronic medals bet on the player when the player stops playing, the player first operates the cancel switch 46 to return the bet electronic medals to credits, and then operates the counting switch 47 to return the credited electronic medals to the management device 200.

ただし、前回遊技でリプレイが入賞し、前回遊技でベットした枚数の電子メダルが自動ベットされたときは、キャンセルスイッチ46を操作しても、この自動ベットされた電子メダルをクレジットに戻すことができないように設定されている。すなわち、自動ベットされた電子メダルについては、キャンセルスイッチ46を操作しても、クレジットに戻すことができないように設定されている。
なお、ベットスイッチ40の操作に基づきベットされた電子メダル、及びリプレイ入賞に基づき自動ベットされた電子メダルの双方とも、キャンセルスイッチ46の操作によりクレジットに戻すことができるようにしてもよい。
However, when a replay is won in the previous game and the number of electronic medals bet in the previous game is automatically bet, the setting is such that the automatically bet electronic medals cannot be returned to credits even if the cancel switch 46 is operated. In other words, the setting is such that the automatically bet electronic medals cannot be returned to credits even if the cancel switch 46 is operated.
Incidentally, both the electronic medals bet based on the operation of the bet switch 40 and the electronic medals automatically bet based on a replay win may be returned to credits by operating the cancel switch 46.

また、計数スイッチ47の操作により、ベットされている電子メダル及びクレジットされている電子メダルが管理装置200に戻されるようにしてもよい。
たとえば、3枚の電子メダルがベットされ、かつ100枚の電子メダルがクレジットされている状況下で、計数スイッチ47を操作すると、ベットされている電子メダル及びクレジットされている電子メダルが管理装置200に戻され、ベット数及びクレジット数が「0」になるとともに、管理装置200において管理する電子メダルの枚数に「103」が加算されるようにしてもよい。
この場合、キャンセルスイッチ46を設けてもよく、設けなくてもよい。
Moreover, the electronic medals that have been bet and the electronic medals that have been credited may be returned to the management device 200 by operating the counting switch 47 .
For example, when three electronic medals have been bet and 100 electronic medals have been credited, operating the counting switch 47 may cause the betted and credited electronic medals to be returned to the management device 200, the number of bets and the number of credits to become "0", and "103" to be added to the number of electronic medals managed by the management device 200.
In this case, the cancel switch 46 may or may not be provided.

また、クレジット数表示LED76は、スロットマシン10の内部にクレジットされている電子メダルの枚数を表示するLEDである。
本実施形態では、最大で1万枚の電子メダルをクレジット可能とされている。すなわち、クレジット数の上限値は「10000」に設定されている。このため、クレジット数表示LED76は、5桁から構成されている。
なお、クレジット数の上限値は「10000」に限らず、たとえば、「15000」としてもよく、「30000」としてもよく、「50000」としてもよい。
また、クレジット数表示LED76の桁数は、5桁に限らず、クレジット数の上限値にあわせて適宜設定することができる。
The credit number display LED 76 is an LED that displays the number of electronic medals credited inside the slot machine 10 .
In this embodiment, a maximum of 10,000 electronic medals can be credited. That is, the upper limit of the number of credits is set to "10,000." Therefore, the credit number display LED 76 is configured with five digits.
The upper limit of the number of credits is not limited to "10,000", but may be, for example, "15,000", "30,000", or "50,000".
Further, the number of digits of the credit number display LED 76 is not limited to five digits, but can be appropriately set according to the upper limit of the credit number.

また、払出制御基板100からメイン制御基板50にイネーブル信号を送信可能とされている。そして、メイン制御基板50は、イネーブル信号がオンのときは、各種処理を実行可能とされ、イネーブル信号がオフのときは、所定の処理を実行不可とされるように設定されている。
本実施形態では、クレジット数が上限値に到達すると、すなわち、クレジット数表示LED76の表示が「10000」に到達すると、イネーブル信号をオフにする。そして、イネーブル信号がオフになると、メイン制御基板50は、ベットスイッチ40及びスタートスイッチ41の操作を受付け不可にするように制御する。
なお、クレジット数が「15000」、「30000」又は「50000」に到達したときにイネーブル信号をオフにするようにしてもよい。
Also, an enable signal can be sent from the dispensing control board 100 to the main control board 50. The main control board 50 is set so that when the enable signal is on, various processes can be executed, and when the enable signal is off, predetermined processes cannot be executed.
In this embodiment, when the number of credits reaches the upper limit, that is, when the display of the credit number display LED 76 reaches "10000", the enable signal is turned off. Then, when the enable signal is turned off, the main control board 50 controls so that the operation of the bet switch 40 and the start switch 41 cannot be accepted.
The enable signal may be turned off when the number of credits reaches "15,000,""30,000," or "50,000."

また、たとえば、通常遊技と、通常遊技より遊技者にとって有利となる特別遊技(1BB遊技;第一種ビッグボーナスゲーム;第一種役物連続作動装置の作動)とを実行可能とし、通常遊技から特別遊技に移行したときは、特別遊技の終了時に、打ち止めとなり、遊技を進行させることができなくなるようにしてもよい。すなわち、打ち止め機能を備えてもよい。また、打ち止めとなる条件は、特別遊技の終了時に限らず、適宜設定することができる。そして、打ち止めとなる条件を満たしたときに、イネーブル信号をオフにするようにしてもよい。 For example, it may be possible to execute a normal game and a special game (1BB game; first type big bonus game; operation of a first type continuous role operation device) that is more advantageous to the player than the normal game, and when a transition is made from the normal game to the special game, the game may come to a halt at the end of the special game, and the game may no longer progress. In other words, a halting function may be provided. The conditions for halting the game are not limited to the end of the special game, and can be set as appropriate. And when the conditions for halting the game are met, the enable signal may be turned off.

この場合、打ち止め機能を有効(打ち止め有り)にするか又は無効(打ち止め無し)にするかを設定する(切り替える)ための打ち止め有無設定スイッチを備えることができる。また、打ち止めを解除するための打ち止め解除スイッチを備えることができる。そして、打ち止めとなる条件を満たしたときは、打ち止め解除スイッチを操作することにより、打ち止めを解除して、遊技を進行可能にするとともに、イネーブル信号をオンにすることができる。また、打ち止め解除スイッチは、たとえば、設定スイッチ13やリセットスイッチ14などの他のスイッチと兼用にすることができる。 In this case, a stoppage setting switch can be provided to set (switch) whether the stoppage function is enabled (with stoppage) or disabled (without stoppage). A stoppage release switch can also be provided to release the stoppage. When the conditions for a stoppage are met, the stoppage can be released by operating the stoppage release switch, allowing the game to proceed and turning on the enable signal. The stoppage release switch can also be used in combination with other switches, such as the setting switch 13 and the reset switch 14.

また、払出制御基板100のクレジット数管理CPU105は、クレジット数管理手段111を備える。そして、クレジット数管理手段111は、メイン制御基板50から送信された制御コマンド、管理装置200から送信された制御コマンド、及び計数スイッチ47の操作に基づいて、クレジット数を管理(加算又は減算)するとともに、クレジット数表示LED76におけるクレジット数の表示を制御する。 The credit number management CPU 105 of the payout control board 100 also includes a credit number management means 111. The credit number management means 111 manages (adds or subtracts) the number of credits based on control commands sent from the main control board 50, control commands sent from the management device 200, and the operation of the counting switch 47, and controls the display of the number of credits on the credit number display LED 76.

また、管理装置(CRユニット)200は、電子メダルの貸出し及び払戻しの管理を行うための装置である。1台のスロットマシン10につき、1台の管理装置200が設置される。ホールでは、管理装置200は、スロットマシン10の間に配置されることから、サンドと称される。また、スロットマシン10と、そのスロットマシン10に対応する管理装置200とから、1つの遊技システムが構成される。 The management device (CR unit) 200 is a device for managing the lending and paying back of electronic medals. One management device 200 is installed for each slot machine 10. In a hall, the management devices 200 are called "sand" because they are placed between the slot machines 10. A slot machine 10 and the management device 200 corresponding to that slot machine 10 make up one gaming system.

図1に示すように、スロットマシン10の払出制御基板100と管理装置200とは、電気的に接続されており、双方向での通信が可能に形成されている。
なお、払出制御基板100と管理装置200とは、遊技球等貸出装置接続端子板を介して接続される。
また、払出制御基板100と管理装置200は、電気的に接続されることに限らず、光通信手段を用いた接続であってもよい。
さらにまた、電気的接続及び光通信接続のいずれにおいても、シリアル通信としてもよく、パラレル通信としてもよく、シリアル通信とパラレル通信とを併用してもよい。
As shown in FIG. 1, a payout control board 100 of a slot machine 10 and a management device 200 are electrically connected to each other and configured to enable two-way communication.
The payout control board 100 and the management device 200 are connected via a game ball etc. lending device connection terminal board.
In addition, the dispensing control board 100 and the management device 200 do not necessarily have to be electrically connected, but may be connected using optical communication means.
Furthermore, in both the electrical connection and the optical communication connection, serial communication may be used, parallel communication may be used, or serial communication and parallel communication may be used in combination.

また、図1に示すように、払出制御基板100は、メイン制御基板50との間で双方向通信が可能とされているとともに、管理装置200との間でも双方向通信が可能とされている。
そして、管理装置200と払出制御基板100との間の通信により、管理装置200から払出制御基板100に電子メダルを移行(貸出し)可能とされ、貸し出された電子メダルを払出制御基板100にクレジット可能とされている。
Also, as shown in FIG. 1 , the dispensing control board 100 is capable of two-way communication with the main control board 50 , and is also capable of two-way communication with the management device 200 .
Furthermore, through communication between the management device 200 and the payout control board 100, electronic medals can be transferred (loaned) from the management device 200 to the payout control board 100, and the loaned electronic medals can be credited to the payout control board 100.

また、払出制御基板100とメイン制御基板50との間の通信により、払出制御基板100にクレジットされている電子メダルをベットして遊技を実行可能とされ、役の入賞時には、払い出された電子メダルを払出制御基板100にクレジット可能とされている。
さらに、遊技者が遊技をやめるときは、管理装置200と払出制御基板100との間の通信により、払出制御基板100にクレジットされている電子メダルを管理装置200に移行(払戻し)可能とされている。
In addition, by communication between the payout control board 100 and the main control board 50, it is possible to play the game by betting the electronic medals credited to the payout control board 100, and when a winning combination is achieved, the paid-out electronic medals can be credited to the payout control board 100.
Furthermore, when a player stops playing, the electronic medals credited to the payout control board 100 can be transferred (refunded) to the management device 200 through communication between the management device 200 and the payout control board 100.

図1に示すように、管理装置200は、紙幣投入口201、貸出スイッチ202、返却スイッチ203、度数表示部204、及びカードリーダライタ205等を備えている。
紙幣投入口201は、電子メダルの貸出しに必要な紙幣(たとえば千円札)を挿入するための投入口である。
紙幣投入口201から管理装置200内に挿入された紙幣が正しく認識されると、投入された紙幣に対応する度数が度数表示部204に表示される。度数表示部204は、たとえば3桁の7セグから構成される。たとえば千円札を投入したときは、度数として「10」と表示され、一万円札を投入したときは、度数として「100」と表示される。
As shown in FIG. 1, the management device 200 includes a bill insertion slot 201, a loan switch 202, a return switch 203, a credit display unit 204, a card reader/writer 205, and the like.
The bill insertion slot 201 is an insertion slot for inserting bills (for example, 1,000 yen bills) required for lending electronic medals.
When a bill inserted into the management device 200 through the bill insertion slot 201 is correctly recognized, the point value corresponding to the inserted bill is displayed on the point value display unit 204. The point value display unit 204 is, for example, configured with a three-digit seven-segment display. For example, when a 1,000 yen bill is inserted, the point value is displayed as "10," and when a 10,000 yen bill is inserted, the point value is displayed as "100."

貸出スイッチ202は、度数表示部204に残度数が表示されていることを条件として、電子メダルを貸し出すときに遊技者に操作されるスイッチである。
たとえば、貸出スイッチ202が1回押されるごとに、度数「10」に相当する電子メダルの貸出しが行われるようにすることができる。
ここで、たとえば、紙幣投入口201から管理装置200内に千円札を投入したときに度数表示部204に表示される度数が「10」であり、度数「1」あたり貸し出される電子メダルの枚数が5枚であるとする。この場合、度数表示部204の表示が「10」のときに貸出スイッチ202を操作すると、50枚の電子メダルが貸し出される。そして、管理装置200と払出制御基板100との間の通信により、貸し出された50枚の電子メダルが払出制御基板100にクレジットされる。
The lending switch 202 is a switch that is operated by the player when lending out an electronic medal, on condition that the remaining number of times is displayed on the number of times display section 204 .
For example, it is possible to set it so that every time the lending switch 202 is pressed once, electronic medals equivalent to a number "10" are lent out.
For example, when a 1,000-yen bill is inserted into management device 200 through bill insertion slot 201, the number of points displayed on point display unit 204 is "10", and the number of electronic medals loaned out per point "1" is 5. In this case, if loan switch 202 is operated when point display unit 204 displays "10", 50 electronic medals are loaned out. Then, through communication between management device 200 and payout control board 100, the 50 loaned electronic medals are credited to payout control board 100.

払出制御基板100にクレジットされている電子メダルの枚数は、クレジット数表示LED76に表示される。たとえば、クレジット数が「0」のときに、50枚の電子メダルが貸し出されると、クレジット数表示LED76の表示が「0」から「50」になる。
このように、本実施形態では、物理的な(有体物としての)メダルが遊技者に貸し出されることはなく、管理装置200と払出制御基板100との間の通信により、貸し出された電子メダルが管理装置200から払出制御基板100に移行してクレジットされる。
The number of electronic medals credited to the payout control board 100 is displayed on the credit number display LED 76. For example, when the credit number is "0", if 50 electronic medals are lent out, the display on the credit number display LED 76 changes from "0" to "50".
In this way, in this embodiment, no physical (tangible) medals are loaned to the player, but rather, through communication between the management device 200 and the payout control board 100, the loaned electronic medals are transferred from the management device 200 to the payout control board 100 and credited.

返却スイッチ203は、遊技をやめるときに遊技者に操作されるスイッチである。
スロットマシン10の計数スイッチ47を操作すると、スロットマシン10から管理装置に電子メダルが戻される。そして、管理装置200の返却スイッチ203を操作すると、スロットマシン10から管理装置200に戻された電子メダルの枚数、及び度数表示部204に表示された度数に相当する電子メダルの枚数が、電子データとしてカード(磁気カードやICカード等)に記憶され、そのカードがカードリーダライタ205の排出口から排出される。
The return switch 203 is a switch that is operated by the player when he or she wishes to stop playing.
When the counting switch 47 of the slot machine 10 is operated, electronic medals are returned from the slot machine 10 to the management device. Then, when the return switch 203 of the management device 200 is operated, the number of electronic medals returned from the slot machine 10 to the management device 200 and the number of electronic medals corresponding to the degree displayed on the degree display unit 204 are stored as electronic data on a card (magnetic card, IC card, etc.), and the card is discharged from the discharge port of the card reader/writer 205.

たとえば、管理装置200の度数表示部204に、度数「10」(電子メダル50枚分に相当する。)が表示されているとする。さらに、スロットマシン10の計数スイッチ47を操作することにより、150枚の電子メダルがスロットマシン10から管理装置200に戻されたとする。このとき、管理装置200の返却スイッチ203が操作されると、電子メダル200枚分に相当する電子データがカードに記憶されてカードリーダライタ205の排出口から排出される。
また、図1に示すように、管理装置200は、ホールコンピュータ300と電気的に接続されている。そして、管理装置200からホールコンピュータ300に対して電子メダルの貸出しや払戻し等に関する情報が一方向で送信される。
For example, suppose that the number "10" (equivalent to 50 electronic medals) is displayed on the number display unit 204 of the management device 200. Furthermore, suppose that 150 electronic medals are returned from the slot machine 10 to the management device 200 by operating the counting switch 47 of the slot machine 10. At this time, if the return switch 203 of the management device 200 is operated, electronic data equivalent to 200 electronic medals is stored in a card and is discharged from the discharge port of the card reader/writer 205.
1, the management device 200 is electrically connected to the hall computer 300. Information relating to the lending and refunding of electronic medals is transmitted unidirectionally from the management device 200 to the hall computer 300.

図2は、電力供給経路の例1を示す図である。
図1では図示を省略したが、図2に示すように、スロットマシン10は、電源基板150を備えている。また、電源基板150には、蓄電用のコンデンサ151が搭載されており、払出制御基板100にも、蓄電用のコンデンサ106が搭載されている。
さらにまた、電源基板150とメイン制御基板50とは、ハーネスA161で接続されており、このハーネスA161を通じて、電源基板150からメイン制御基板50に電力を供給可能とされている。
FIG. 2 is a diagram illustrating a first example of a power supply path.
Although not shown in Fig. 1, as shown in Fig. 2, the slot machine 10 is equipped with a power supply board 150. In addition, the power supply board 150 is equipped with a capacitor 151 for storing electricity, and the payout control board 100 is also equipped with a capacitor 106 for storing electricity.
Furthermore, the power supply board 150 and the main control board 50 are connected by a harness A161, and power can be supplied from the power supply board 150 to the main control board 50 through this harness A161.

さらに、電源基板150と払出制御基板100とは、ハーネスC163で接続されており、このハーネスC163を通じて、電源基板150から払出制御基板100に電力を供給可能とされている。
電源基板150には、外部から交流で電力が供給される。そして、電源基板150で交流を直流に変換して、メイン制御基板50及び払出制御基板100に電力を供給する。
また、メイン制御基板50と払出制御基板100とは、ハーネスB162で接続されており、このハーネスB162を通して、メイン制御基板50から払出制御基板100に、又は払出制御基板100からメイン制御基板50に、電力を供給可能とされている。
Furthermore, the power supply board 150 and the dispensing control board 100 are connected by a harness C163, and power can be supplied from the power supply board 150 to the dispensing control board 100 through this harness C163.
An AC power is supplied from the outside to the power supply board 150. The AC power is converted to DC by the power supply board 150, and the power is supplied to the main control board 50 and the dispensing control board 100.
In addition, the main control board 50 and the dispensing control board 100 are connected by a harness B162, and power can be supplied from the main control board 50 to the dispensing control board 100, or from the dispensing control board 100 to the main control board 50, through this harness B162.

さらにまた、メイン制御基板50と払出制御基板100とは、ハーネスD164で接続されており、このハーネスD164を通して、メイン制御基板50と払出制御基板100との間で双方向でコマンドの通信が可能とされている。
払出制御基板100は、電子メダルのクレジット数を管理する制御基板であり、その安定性は遊技者の利益に大きくかかわるため、電源基板150からハーネスC163を通じて払出制御基板100に直接電力を供給するようにしている。
Furthermore, the main control board 50 and the dispensing control board 100 are connected by a harness D164, and through this harness D164, command communication is possible in both directions between the main control board 50 and the dispensing control board 100.
The payout control board 100 is a control board that manages the number of credits of electronic medals, and since its stability has a significant impact on the player's profits, power is supplied directly to the payout control board 100 from the power supply board 150 through harness C163.

また、ハーネスC163が切れてしまったときは、電源基板150から、ハーネスA161、メイン制御基板50、及びハーネスB162を介して、払出制御基板100に電力を供給可能とされている。
さらにまた、払出制御基板100には蓄電用のコンデンサ106が搭載されており、電源基板150からの電力供給が途絶えたときは、コンデンサ106から払出制御基板100に電力を供給可能とされている。
In addition, when harness C163 is broken, power can be supplied from the power supply board 150 to the dispensing control board 100 via harness A161, the main control board 50, and harness B162.
Furthermore, the dispensing control board 100 is equipped with a capacitor 106 for storing electricity, so that when the power supply from the power supply board 150 is cut off, power can be supplied to the dispensing control board 100 from the capacitor 106.

さらに、ハーネスA161及びハーネスC163が切れてしまったときは、コンデンサ106から払出制御基板100に電力を供給するとともに、ハーネスB162を通して、払出制御基板100からメイン制御基板50に電力を供給可能とされている。
このように、例1では、払出制御基板100にバックアップ電源用のコンデンサ106を搭載しており、ハーネスA161やハーネスC163の切断等により電源基板150からの電力供給が途絶えてしまったとしても、払出制御基板100やメイン制御基板50が駆動するようにし、電断時の処理を確実に実行できるようにして、遊技者に不利益を及ぼさないようにしている。
Furthermore, when harness A161 and harness C163 are broken, power can be supplied from capacitor 106 to dispensing control board 100, and power can be supplied from dispensing control board 100 to main control board 50 through harness B162.
In this way, in example 1, the payout control board 100 is equipped with a capacitor 106 for a backup power supply, so that even if the power supply from the power supply board 150 is cut off due to, for example, the disconnection of harness A161 or harness C163, the payout control board 100 and the main control board 50 will be driven, and processing can be reliably executed in the event of a power outage, so that no disadvantage is caused to the player.

図3は、電力供給経路の例2を示す図である。
図3に示すように、例2では、電源基板150には、コンデンサが搭載されておらず、払出制御基板100には、蓄電用のコンデンサA107及びコンデンサB108が搭載されている。
また、電源基板150とメイン制御基板50とは、ハーネスE165で接続されており、このハーネスE165を通じて、電源基板150からメイン制御基板50に電力を供給可能とされている。
FIG. 3 is a diagram illustrating a second example of a power supply path.
As shown in FIG. 3, in Example 2, the power supply board 150 is not equipped with a capacitor, and the dispensing control board 100 is equipped with a capacitor A 107 and a capacitor B 108 for storing electricity.
Furthermore, the power supply board 150 and the main control board 50 are connected by a harness E165, and power can be supplied from the power supply board 150 to the main control board 50 through this harness E165.

さらにまた、電源基板150と払出制御基板100とは、ハーネスG167で接続されており、このハーネスG167を通じて、電源基板150から払出制御基板100に電力を供給可能とされている。
さらに、メイン制御基板50と払出制御基板100とは、ハーネスF166で接続されており、このハーネスF166を通して、メイン制御基板50から払出制御基板100に、又は払出制御基板100からメイン制御基板50に、電力を供給可能とされている。
Furthermore, the power supply board 150 and the dispensing control board 100 are connected by a harness G167, and power can be supplied from the power supply board 150 to the dispensing control board 100 through this harness G167.
Furthermore, the main control board 50 and the dispensing control board 100 are connected by a harness F166, and power can be supplied from the main control board 50 to the dispensing control board 100, or from the dispensing control board 100 to the main control board 50, through this harness F166.

また、メイン制御基板50と払出制御基板100とは、ハーネスH168で接続されており、このハーネスH168を通して、メイン制御基板50と払出制御基板100との間で双方向でコマンドの通信が可能とされている。
そして、ハーネスG167が切れてしまったときは、電源基板150から、ハーネスE165、メイン制御基板50、及びハーネスF166を介して、払出制御基板100に電力を供給可能とされている。
In addition, the main control board 50 and the dispensing control board 100 are connected by a harness H168, and through this harness H168, command communication is possible in both directions between the main control board 50 and the dispensing control board 100.
In the event that harness G167 is broken, power can be supplied from the power supply board 150 to the dispensing control board 100 via harness E165, the main control board 50, and harness F166.

また、払出制御基板100には蓄電用のコンデンサA107及びコンデンサB108が搭載されており、電源基板150からの電力供給が途絶えたときは、コンデンサA107及びコンデンサB108から払出制御基板100に電力を供給可能とされている。
さらに、ハーネスE165及びハーネスG167が切れてしまったときは、コンデンサA107及びコンデンサB108から払出制御基板100に電力を供給するとともに、コンデンサA107からハーネスF166を通してメイン制御基板50に電力を供給可能とされている。
In addition, the dispensing control board 100 is equipped with capacitors A107 and B108 for storing electricity, and when the power supply from the power supply board 150 is cut off, power can be supplied to the dispensing control board 100 from capacitors A107 and B108.
Furthermore, when harness E165 and harness G167 are broken, power can be supplied from capacitor A107 and capacitor B108 to the dispensing control board 100, and power can be supplied from capacitor A107 to the main control board 50 through harness F166.

例2においても、電源基板150からの電力供給が途絶えたときに、払出制御基板100に搭載されたバックアップ電源用のコンデンサから払出制御基板100及びメイン制御基板50に電力を供給することは、例1と同様である。
ただし、例2では、コンデンサB108を、払出制御基板100専用のバックアップ電源としている。これにより、ハーネスE165やハーネスG167の切断等により電源基板150からの電力供給が途絶えてしまったとしても、電子メダルのクレジット数を管理する払出制御基板100が確実に駆動するようにし、電断時の処理を確実に実行できるようにして、遊技者に不利益を及ぼさないようにしている。
In example 2, as in example 1, when the power supply from the power supply board 150 is interrupted, power is supplied to the dispensing control board 100 and the main control board 50 from a backup power capacitor mounted on the dispensing control board 100.
However, in Example 2, the capacitor B108 is used as a backup power source exclusively for the payout control board 100. As a result, even if the power supply from the power supply board 150 is cut off due to, for example, the disconnection of the harness E165 or the harness G167, the payout control board 100 that manages the number of credits of the electronic medals can be reliably driven, and the process at the time of the power interruption can be reliably executed, so that no disadvantage is caused to the player.

なお、例2では、コンデンサB108の電気容量を、コンデンサA107の電気容量より大きく設定することが好ましい。これにより、遊技者の利益に大きくかかわる払出制御基板100に対してバックアップの電力を確実に供給し、電断時の処理を確実に実行できるようにすることができる。
また、本実施形態では、電源断時には、メイン制御基板50上のプログラムより先に払出制御基板100上のプログラムが停止するように設定されている。
さらに、本実施形態では、電源断からの復帰時には、メイン制御基板50上のプログラムより先に払出制御基板100上のプログラムが起動するように設定されている。
In Example 2, it is preferable to set the capacitance of the capacitor B 108 to be larger than the capacitance of the capacitor A 107. This ensures that backup power is supplied to the payout control board 100, which is closely related to the player's profit, and that processing can be performed reliably in the event of a power outage.
In addition, in this embodiment, when the power is turned off, the program on the dispensing control board 100 is set to stop before the program on the main control board 50.
Furthermore, in this embodiment, when the power is restored after a power outage, the program on the dispensing control board 100 is set to start before the program on the main control board 50.

図4~図7は、コマンド一覧を示す図である。
図4は、メイン制御基板50から払出制御基板100に送信されるコマンドの一覧を示す図であり、図5は、払出制御基板100からメイン制御基板50に送信されるコマンドの一覧を示す図である。
また、図6は、管理装置200から払出制御基板100に送信されるコマンドの一覧を示す図であり、図7は、払出制御基板100から管理装置200に送信されるコマンドの一覧を示す図である。
4 to 7 are diagrams showing command lists.
Figure 4 is a diagram showing a list of commands transmitted from the main control board 50 to the dispensing control board 100, and Figure 5 is a diagram showing a list of commands transmitted from the dispensing control board 100 to the main control board 50.
In addition, Figure 6 is a diagram showing a list of commands transmitted from the management device 200 to the dispensing control board 100, and Figure 7 is a diagram showing a list of commands transmitted from the dispensing control board 100 to the management device 200.

ここで、メイン制御基板50から払出制御基板100に送信されるコマンドを総称して「メイン制御コマンド」という。
また、払出制御基板100からメイン制御基板50に送信されるコマンドを総称して「払出制御コマンド」という。
さらにまた、払出制御基板100から管理装置200に送信されるコマンドを総称して「遊技機コマンド」という。
さらに、管理装置200から払出制御基板100に送信されるコマンドを総称して「管理装置コマンド」という。
Here, the commands transmitted from the main control board 50 to the dispensing control board 100 are collectively referred to as "main control commands."
In addition, the commands transmitted from the dispensing control board 100 to the main control board 50 are collectively referred to as "dispensing control commands."
Furthermore, the commands transmitted from the payout control board 100 to the management device 200 are collectively referred to as "gaming machine commands."
Furthermore, the commands sent from the management device 200 to the dispensing control board 100 are collectively referred to as "management device commands."

本実施形態では、メイン制御コマンド、払出制御コマンド、遊技機コマンド、管理装置コマンドは、いずれも、16ビット(2バイト)のデータで構成されている。
また、メイン制御コマンド、払出制御コマンド、遊技機コマンド、管理装置コマンドは、いずれも、先行コマンド(上位8ビット)及び後続コマンド(下位8ビット)から構成されている。
すなわち、先行コマンド及び後続コマンドからなる16ビット(2バイト)のデータで1つのメイン制御コマンド、払出制御コマンド、遊技機コマンド、管理装置コマンドが構成されている。
また、先行コマンドは、コマンドの種別を示すデータであり、後続コマンドは、パラメータ(変数)を示すデータである。
そして、本実施形態では、メイン制御基板50と払出制御基板100との間、及び払出制御基板100と管理装置200との間では、シリアル通信でコマンドの送受信を行う。
In this embodiment, the main control command, payout control command, gaming machine command, and management device command are all composed of 16-bit (2-byte) data.
Further, each of the main control command, payout control command, gaming machine command, and management device command is composed of a preceding command (upper 8 bits) and a subsequent command (lower 8 bits).
In other words, one main control command, payout control command, gaming machine command, or management device command is made up of 16 bits (2 bytes) of data consisting of a preceding command and a following command.
Furthermore, the preceding command is data indicating the type of command, and the succeeding command is data indicating parameters (variables).
In this embodiment, commands are sent and received via serial communication between the main control board 50 and the dispensing control board 100, and between the dispensing control board 100 and the management device 200.

図4~図7中、「先行」の欄のデータは、先行コマンド(上位8ビット)を示しており、「後続」の欄のデータは、後続コマンド(下位8ビット)を示している。また、先行コマンド及び後続コマンドは、いずれも、16進数で表している。
メイン制御コマンドとして、図4中の「内容」の欄に記載されている8種類のコマンドを挙げることができる。また、これら8種類のコマンドのうち、設定変更開始コマンド、設定変更終了コマンド、遊技開始+RT状態コマンド、遊技終了+遊技状態コマンドを総称して「遊技情報コマンド」と称する。さらにまた、投入要求コマンド、払出要求コマンド、返却要求コマンドを総称して「演算要求コマンド」と称する。
4 to 7, the data in the "PREVISION" column indicates the preceding command (upper 8 bits), and the data in the "SUBSEQUENT" column indicates the subsequent command (lower 8 bits). Both the preceding command and the subsequent command are expressed in hexadecimal.
The main control commands include eight types of commands listed in the "Contents" column in Fig. 4. Among these eight types of commands, the setting change start command, setting change end command, game start + RT state command, and game end + game state command are collectively referred to as "game information commands." Furthermore, the input request command, payout request command, and return request command are collectively referred to as "calculation request commands."

払出制御コマンドとして、図5中の「内容」の欄に記載されている12種類のコマンドを挙げることができる。また、投入要求コマンドのACK応答は「投入復唱コマンド」とも称し、投入要求コマンドのNAK応答は「投入不可コマンド」とも称する。同様に、払出要求コマンドのACK応答、同NAK応答、返却要求コマンドのACK応答、同NAK応答は、それぞれ「払出復唱コマンド」、「払出不可コマンド」、「返却復唱コマンド」、「返却不可コマンド」とも称する。さらにまた、異常時のNAK応答は「エラーコマンド」とも称する。 Examples of payout control commands include the 12 types of commands listed in the "Contents" column in Figure 5. An ACK response to an input request command is also referred to as an "input repeat command," and a NAK response to an input request command is also referred to as an "input not allowed command." Similarly, an ACK response to a payout request command, a NAK response to the same, and an ACK response to a return request command, a NAK response to the same are also referred to as a "payout repeat command," a "payout not allowed command," a "return repeat command," and a "return not allowed command," respectively. Furthermore, a NAK response in the event of an abnormality is also referred to as an "error command."

管理装置コマンドとして、図6中の「内容」の欄に記載されている5種類のコマンドを挙げることができる。また、下位計数要求コマンドのACK応答は「下位計数復唱コマンド」とも称し、上位計数要求コマンドのACK応答は「上位計数復唱コマンド」とも称する。
遊技機コマンドとして、図7中の「内容」の欄に記載されている13種類のコマンドを挙げることができる。また、貸出要求コマンドのACK応答は「貸出復唱コマンド」とも称する。
The management device commands include five types of commands listed in the "Contents" column in Fig. 6. In addition, an ACK response to a lower-order count request command is also called a "lower-order count repeat command," and an ACK response to a higher-order count request command is also called a "higher-order count repeat command."
The gaming machine commands include 13 types of commands described in the "Contents" column in Fig. 7. The ACK response to the lending request command is also called a "lending repeat command".

図4中、起動確認コマンドは、メイン制御基板50と払出制御基板100との間の通信が正常であるか否かをメイン制御基板50側で確認するためのコマンドであって、電源投入時にメイン制御基板50から払出制御基板100に対して送信されるコマンドである。
メイン制御基板50は、電源投入時に、払出制御基板100に対し、起動確認コマンドを送信する。また、払出制御基板100は、起動確認コマンドを受信すると、これをそのままメイン制御基板50に送り返す(図5に示す起動確認コマンドのACK応答)。
そして、メイン制御基板50側では、送信した起動確認コマンドがそのまま払出制御基板100から送り返されることにより、メイン制御基板50と払出制御基板100との間の通信が正常であると判断することができる。
In Figure 4, the startup confirmation command is a command for the main control board 50 to confirm whether communication between the main control board 50 and the dispensing control board 100 is normal, and is a command sent from the main control board 50 to the dispensing control board 100 when the power is turned on.
When the power is turned on, the main control board 50 transmits a start-up confirmation command to the dispensing control board 100. When the dispensing control board 100 receives the start-up confirmation command, it sends it back to the main control board 50 as is (ACK response to the start-up confirmation command shown in FIG. 5).
Then, on the main control board 50 side, the startup confirmation command that was sent is sent back from the dispensing control board 100 as is, so that it can be determined that communication between the main control board 50 and the dispensing control board 100 is normal.

また、上述したように、電源断時には、メイン制御基板50上のプログラムより先に払出制御基板100上のプログラムが停止し、電源断からの復帰時には、メイン制御基板50上のプログラムより先に払出制御基板100上のプログラムが起動する。
ここで、電源投入時、すなわち、電源断からの復帰時には、メイン制御基板50から払出制御基板100に対し起動確認コマンドを送信するが、払出制御基板100上のプログラムの方が先に起動するため、起動確認コマンドを確実に受信することができる。そして、メイン制御基板50は、送信した起動確認コマンドがそのまま払出制御基板100から送り返されることにより、メイン制御基板50と払出制御基板100との間の通信が正常であると判断すると、その後の処理を進めるように設定されている。
Also, as described above, when the power is cut off, the program on the dispensing control board 100 stops before the program on the main control board 50, and when the power is restored from the power cut, the program on the dispensing control board 100 starts before the program on the main control board 50.
When the power is turned on, i.e., when the power is restored after being turned off, the main control board 50 sends a start-up confirmation command to the dispensing control board 100, but since the program on the dispensing control board 100 starts first, the start-up confirmation command can be received reliably. Then, when the main control board 50 determines that the communication between the main control board 50 and the dispensing control board 100 is normal by receiving the start-up confirmation command sent back from the dispensing control board 100 as is, it is set to proceed with the subsequent processing.

図4中、設定変更開始コマンドは、設定変更モードに移行したことを払出制御基板100側に伝達するためのコマンドであって、設定変更モードへの移行時にメイン制御基板50から払出制御基板100に対して送信されるコマンドである。また、後続の「01H」は、設定キースイッチ12がオン状態であることを示している。
メイン制御基板50は、設定変更モードへの移行時に、払出制御基板100に対し、設定変更開始コマンドを送信する。また、払出制御基板100は、設定変更開始コマンドを受信すると、これをそのままメイン制御基板50に送り返し(図5に示す設定変更開始コマンドのACK応答)、さらに、管理装置200に対しても設定変更開始コマンドを送信する(図7)。すなわち、払出制御基板100は、メイン制御基板50及び管理装置200の双方に設定変更開始コマンドを送信する。
In Fig. 4, the setting change start command is a command for notifying the dispensing control board 100 that the setting change mode has been entered, and is a command sent from the main control board 50 to the dispensing control board 100 when the setting change mode is entered. The following "01H" indicates that the setting key switch 12 is in the on state.
When the main control board 50 transitions to the setting change mode, it transmits a setting change start command to the dispensing control board 100. When the dispensing control board 100 receives the setting change start command, it sends it back to the main control board 50 as is (ACK response to the setting change start command shown in FIG. 5), and also transmits a setting change start command to the management device 200 (FIG. 7). That is, the dispensing control board 100 transmits the setting change start command to both the main control board 50 and the management device 200.

これにより、払出制御基板100側では、設定変更モードに移行したと判断することができる。また、メイン制御基板50側では、送信した設定変更開始コマンドがそのまま払出制御基板100から送り返されることにより、設定変更モードへの移行を払出制御基板100に伝達できたと判断することができる。さらに、管理装置200側でも、設定変更モードに移行したと判断することができる。 As a result, the dispensing control board 100 can determine that a transition to setting change mode has occurred. Also, the main control board 50 can determine that a transition to setting change mode has been communicated to the dispensing control board 100, as the sent setting change start command is returned unchanged from the dispensing control board 100. Furthermore, the management device 200 can also determine that a transition to setting change mode has occurred.

図4中、設定変更終了コマンドは、設定変更モードが終了したことを払出制御基板100側に伝達するためのコマンドであって、設定変更モードの終了時にメイン制御基板50から払出制御基板100に対して送信されるコマンドである。また、後続の「00H」は、設定キースイッチ12がオフ状態であることを示している。
メイン制御基板50は、設定変更モードの終了時に、払出制御基板100に対し、設定変更終了コマンドを送信する。また、払出制御基板100は、設定変更終了コマンドを受信すると、これをそのままメイン制御基板50に送り返し(図5に示す設定変更終了コマンドのACK応答)、さらに、管理装置200に対しても設定変更終了コマンドを送信する(図7)。すなわち、払出制御基板100は、メイン制御基板50及び管理装置200の双方に設定変更終了コマンドを送信する。
In Fig. 4, the setting change end command is a command for notifying the dispensing control board 100 that the setting change mode has ended, and is a command sent from the main control board 50 to the dispensing control board 100 when the setting change mode ends. The following "00H" indicates that the setting key switch 12 is in the OFF state.
When the setting change mode ends, the main control board 50 transmits a setting change end command to the dispensing control board 100. When the dispensing control board 100 receives the setting change end command, it sends it back to the main control board 50 as is (ACK response to the setting change end command shown in FIG. 5), and also transmits a setting change end command to the management device 200 (FIG. 7). That is, the dispensing control board 100 transmits the setting change end command to both the main control board 50 and the management device 200.

これにより、払出制御基板100側では、設定変更モードが終了したと判断することができる。また、メイン制御基板50側では、送信した設定変更終了コマンドがそのまま払出制御基板100から送り返されることにより、設定変更モードの終了を払出制御基板100に伝達できたと判断することができる。さらに、管理装置200側でも、設定変更モードが終了したと判断することができる。 As a result, the dispensing control board 100 can determine that the setting change mode has ended. Also, the main control board 50 can determine that the end of the setting change mode has been communicated to the dispensing control board 100, as the sent setting change end command is returned unchanged from the dispensing control board 100. Furthermore, the management device 200 can also determine that the setting change mode has ended.

図4中、遊技開始+RT状態コマンドは、遊技が開始したこと及びRT状態を払出制御基板100側に伝達するためのコマンドであって、スタートスイッチ41のオン時にメイン制御基板50から払出制御基板100に送信されるコマンドである。
メイン制御基板50は、スタートスイッチ41のオン時に、払出制御基板100に対し、遊技開始+RT状態コマンドを送信する。また、払出制御基板100は、遊技開始+RT状態コマンドを受信すると、これをそのままメイン制御基板50に送り返し(図5に示す遊技開始+RT状態コマンドのACK応答)、さらに、管理装置200に対しても遊技開始+RT状態コマンドを送信する(図7)。すなわち、払出制御基板100は、メイン制御基板50及び管理装置200の双方に遊技開始+RT状態コマンドを送信する。
In Figure 4, the game start + RT status command is a command for transmitting the fact that the game has started and the RT status to the payout control board 100, and is a command sent from the main control board 50 to the payout control board 100 when the start switch 41 is turned on.
When the start switch 41 is turned on, the main control board 50 transmits a game start + RT state command to the payout control board 100. When the payout control board 100 receives the game start + RT state command, it sends it back to the main control board 50 as is (ACK response of the game start + RT state command shown in FIG. 5), and further transmits the game start + RT state command to the management device 200 (FIG. 7). That is, the payout control board 100 transmits the game start + RT state command to both the main control board 50 and the management device 200.

これにより、払出制御基板100側では、遊技が開始したこと、及びRT状態を判断することができる。また、メイン制御基板50側では、送信した遊技開始+RT状態コマンドがそのまま払出制御基板100から送り返されることにより、遊技開始及びRT状態を払出制御基板100に伝達できたと判断することができる。さらに、管理装置200側でも、遊技が開始したこと、及びRT状態を判断することができる。 This allows the payout control board 100 to determine that play has started and that the RT state is in effect. Also, the main control board 50 can determine that play has started and that the RT state has been transmitted to the payout control board 100, as the sent play start + RT state command is returned as is from the payout control board 100. Furthermore, the management device 200 can also determine that play has started and that the RT state is in effect.

図4中、遊技終了+遊技状態コマンドは、遊技が終了したこと及び遊技状態を払出制御基板100側に伝達するためのコマンドであって、第3ストップスイッチ42(最後に停止するリール31に対応するストップスイッチ42)がオンからオフになった時にメイン制御基板50から払出制御基板100に送信されるコマンドである。
メイン制御基板50は、第3ストップスイッチ42がオンからオフになった(遊技者が第3ストップスイッチ42から手を離した)時に、払出制御基板100に対し、遊技終了+遊技状態コマンドを送信する。また、払出制御基板100は、遊技終了+遊技状態コマンドを受信すると、これをそのままメイン制御基板50に送り返し(図5に示す遊技終了+遊技状態コマンドのACK応答)、さらに、管理装置200に対しても遊技終了+遊技状態コマンドを送信する(図7)。すなわち、払出制御基板100は、メイン制御基板50及び管理装置200の双方に遊技終了+遊技状態コマンドを送信する。
In Figure 4, the game end + game status command is a command for transmitting the fact that the game has ended and the game status to the payout control board 100, and is a command sent from the main control board 50 to the payout control board 100 when the third stop switch 42 (the stop switch 42 corresponding to the last reel 31 to stop) changes from on to off.
When the third stop switch 42 goes from on to off (the player releases his/her hand from the third stop switch 42), the main control board 50 transmits a game end + game status command to the payout control board 100. Also, when the payout control board 100 receives the game end + game status command, it sends it back to the main control board 50 as is (ACK response of the game end + game status command shown in FIG. 5), and further transmits the game end + game status command to the management device 200 (FIG. 7). That is, the payout control board 100 transmits the game end + game status command to both the main control board 50 and the management device 200.

これにより、払出制御基板100側では、遊技が終了したこと、及び遊技状態を判断することができる。また、メイン制御基板50側では、送信した遊技終了+遊技状態コマンドがそのまま払出制御基板100から送り返されることにより、遊技終了及び遊技状態を払出制御基板100に伝達できたと判断することができる。さらに、管理装置200側でも、遊技が終了したこと、及び遊技状態を判断することができる。 This allows the payout control board 100 to determine that the game has ended and the game status. Also, the main control board 50 can determine that the game has ended and the game status has been transmitted to the payout control board 100, as the sent game end + game status command is returned as is from the payout control board 100. Furthermore, the management device 200 can also determine that the game has ended and the game status.

図4中、投入要求コマンドは、ベット数をクレジット数から減算することを払出制御基板100に要求するコマンドであって、ベットスイッチ40のオン時にメイン制御基板50から払出制御基板100に送信されるコマンドである。
また、投入要求コマンドの後続コマンドは、ベット数(ベットスイッチ40の操作に基づきクレジット数から減算することを要求する数)を示す。
In Figure 4, the deposit request command is a command requesting the payout control board 100 to subtract the bet number from the credit number, and is a command sent from the main control board 50 to the payout control board 100 when the bet switch 40 is turned on.
The command following the input request command indicates the bet amount (the amount to be subtracted from the credit amount based on the operation of the bet switch 40).

本実施形態では、メイン制御基板50は、1ベットスイッチ40aのオン時に、払出制御基板100に対し、投入要求コマンドとして、クレジット数からベット数「1」を減算することを要求する「2001H」(1枚投入要求コマンド)を送信する。
また、メイン制御基板50は、3ベットスイッチ40bのオン時に、払出制御基板100に対し、投入要求コマンドとして、クレジット数からベット数「3」を減算することを要求する「2003H」(3枚投入要求コマンド)を送信する。
なお、3ベットスイッチ40bのオン時に、払出制御基板100に対し、投入要求コマンドとして、1枚投入要求コマンドを3回送信してもよい。
In this embodiment, when the 1 bet switch 40a is turned on, the main control board 50 sends an input request command "2001H" (1 coin input request command) to the payout control board 100, requesting that the bet number "1" be subtracted from the number of credits.
In addition, when the 3 bet switch 40b is turned on, the main control board 50 sends an input request command "2003H" (3-coin input request command) to the payout control board 100, requesting that the bet number "3" be subtracted from the number of credits.
In addition, when the 3 bet switch 40b is on, a 1-coin insertion request command may be sent three times to the payout control board 100 as an insertion request command.

また、払出制御基板100は、投入要求コマンドを受信すると、投入要求を受付け可能であるか否か、具体的には、クレジット数がベット数(投入要求コマンドの後続コマンドが示す数)以上であるか否かを判断する。
そして、投入要求を受付け可能であると判断したとき、すなわち、クレジット数がベット数以上であると判断したときは、払出制御基板100は、クレジット数からベット数を減算する処理を実行し、クレジット数表示LED76の表示を更新する処理を実行し、投入復唱コマンドをメイン制御基板50に送信する(受信した投入要求コマンドをそのままメイン制御基板50に送り返す(図5に示す投入要求コマンドのACK応答))。
In addition, when the payout control board 100 receives an input request command, it determines whether or not it is possible to accept the input request, specifically, whether or not the number of credits is greater than or equal to the number of bets (the number indicated by the command following the input request command).
Then, when it is determined that the input request can be accepted, i.e., when it is determined that the number of credits is equal to or greater than the number of bets, the payout control board 100 executes a process to subtract the number of bets from the number of credits, executes a process to update the display of the credit number display LED 76, and sends an input repeat command to the main control board 50 (it sends the received input request command back to the main control board 50 as is (ACK response to the input request command shown in Figure 5)).

たとえば、クレジット数が「50」のときに、3枚投入要求コマンド「2003H」を受信すると、払出制御基板100は、クレジット数「50」から、3枚投入要求コマンド「2003H」の後続コマンドが示すベット数「3」を減算する処理を実行し、クレジット数表示LED76の表示を「50」から「47」に変更し、投入復唱コマンドをメイン制御基板50に送信する。
これに対し、投入要求を受付け不可であると判断したとき、すなわち、クレジット数がベット数未満であると判断した(たとえば、クレジット数が「2」の状況下で、3枚投入要求コマンド「2003H」を受信した)ときは、払出制御基板100は、クレジット数からベット数を減算する処理は実行せずに、投入不可コマンドをメイン制御基板50に送信する(図5に示す投入要求コマンドのNAK応答)。
For example, when the number of credits is "50", if a command requesting the insertion of three coins "2003H" is received, the payout control board 100 executes a process of subtracting the number of bets "3" indicated by the command subsequent to the command requesting the insertion of three coins "2003H" from the number of credits "50", changes the display on the credit number display LED 76 from "50" to "47", and transmits a command to repeat the insertion to the main control board 50.
On the other hand, when it is determined that the input request cannot be accepted, that is, when it is determined that the number of credits is less than the number of bets (for example, when the number of credits is "2" and a command requesting the input of 3 coins "2003H" is received), the payout control board 100 does not perform the process of subtracting the number of bets from the number of credits, but sends an input not possible command to the main control board 50 (a NAK response to the input request command shown in FIG. 5).

さらに、投入復唱コマンドを受信した(送信した投入要求コマンドがそのまま払出制御基板100から送り返された)ときは、メイン制御基板50は、ベット数をクレジット数から減算する要求が許可されたと判断し、電子メダルのベットに応じた処理(たとえば、1ベット表示LED~3ベット表示LEDを点灯させる処理、及びスタートスイッチ41の操作を受付け可能にする処理)を実行する。
これに対し、投入不可コマンドを受信したときは、メイン制御基板50は、ベット数をクレジット数から減算する要求が許可されなかったと判断し、電子メダルのベットに応じた処理を実行しない。
また、投入要求コマンドを送信した後、所定時間を経過しても、投入復唱コマンド及び投入不可コマンドのいずれも受信しないと、タイムアウトとなり、メイン制御基板50は、払出制御基板100に対し、再度、投入要求コマンドを送信する。
Furthermore, when a deposit repeat command is received (the sent deposit request command is sent back as is from the payout control board 100), the main control board 50 determines that the request to subtract the bet number from the credit number has been permitted, and executes processing according to the electronic medal bet (for example, processing to light up the 1 bet display LED to 3 bet display LED, and processing to allow operation of the start switch 41 to be accepted).
On the other hand, when an insertion prohibition command is received, the main control board 50 determines that the request to subtract the bet number from the credit number is not permitted, and does not execute the process according to the electronic medal bet.
In addition, if a predetermined time has elapsed after sending the deposit request command and neither the deposit repeat command nor the deposit disallowed command is received, a timeout occurs and the main control board 50 sends the deposit request command again to the dispensing control board 100.

このように、クレジット数からベット数を減算することを払出制御基板100に要求するときは、メイン制御基板50と払出制御基板100との間で一往復のコマンド通信を行う。
これにより、電子メダルのベットに関する処理がメイン制御基板50及び払出制御基板100の双方で確実に実行され、クレジット数の管理が正確に行われるので、遊技者に不利益を与えないようにすることができる。
In this way, when the payout control board 100 is requested to subtract the number of bets from the number of credits, one round trip of command communication is performed between the main control board 50 and the payout control board 100 .
As a result, processing related to electronic medal bets is reliably executed by both the main control board 50 and the payout control board 100, and the number of credits is accurately managed, so that the player is not disadvantaged.

また、上述したように、電源断時には、メイン制御基板50上のプログラムより先に払出制御基板100上のプログラムが停止し、電源断からの復帰時には、メイン制御基板50上のプログラムより先に払出制御基板100上のプログラムが起動する。
さらにまた、メイン制御基板50は、ベットスイッチ40のオン時に、払出制御基板100に投入要求コマンドを送信し、払出制御基板100は、投入要求コマンドの受信時に、投入要求を受付け可能であれば、メイン制御基板50に投入復唱コマンドを送信し、投入要求を受付け不可であれば、メイン制御基板50に投入不可コマンドを送信する。
Also, as described above, when the power is cut off, the program on the dispensing control board 100 stops before the program on the main control board 50, and when the power is restored from the power cut, the program on the dispensing control board 100 starts before the program on the main control board 50.
Furthermore, when the bet switch 40 is turned on, the main control board 50 sends a deposit request command to the payout control board 100, and when the payout control board 100 receives the deposit request command, if it is able to accept the deposit request, it sends a deposit repeat command to the main control board 50, and if it is unable to accept the deposit request, it sends a deposit not possible command to the main control board 50.

さらに、メイン制御基板50は、投入復唱コマンドを受信したときは、電子メダルのベットに応じた処理を実行し、投入不可コマンドを受信したときは、電子メダルのベットに応じた処理を実行せず、投入復唱コマンド及び投入不可コマンドのいずれも受信しないと、払出制御基板100に対し、再度、投入要求コマンドを送信する。
ここで、メイン制御基板50が払出制御基板100に投入要求コマンドを送信した後、払出制御基板100が投入要求コマンドを受信する前に、電源断が発生し、払出制御基板100上のプログラムが停止したとする。この場合、メイン制御基板50は、投入復唱コマンド及び投入不可コマンドのいずれも受信しないことになり、電源断からの復帰後に、払出制御基板100に対し、再度、投入要求コマンドを送信することになるため、メイン制御基板50と払出制御基板100との間で確実にコマンドを送受信できる。
Furthermore, when the main control board 50 receives a deposit repeat command, it executes processing according to the electronic medal bet, and when it receives a deposit disable command, it does not execute processing according to the electronic medal bet, and if it receives neither a deposit repeat command nor a deposit disable command, it sends an deposit request command again to the payout control board 100.
Here, let us assume that after the main control board 50 transmits a deposit request command to the dispensing control board 100, a power outage occurs before the dispensing control board 100 receives the deposit request command, and the program on the dispensing control board 100 stops. In this case, the main control board 50 will not receive either the deposit repeat command or the dispensing disable command, and after the power is restored from the power outage, it will again transmit the deposit request command to the dispensing control board 100, so that commands can be transmitted and received reliably between the main control board 50 and the dispensing control board 100.

また、メイン制御基板50が払出制御基板100に投入要求コマンドを送信し、払出制御基板100が投入要求コマンドを受信したが、メイン制御基板50に投入復唱コマンド又は投入不可コマンドを送信する前に、電源断が発生し、払出制御基板100上のプログラムが停止したとする。この場合、電源断からの復帰後に、払出制御基板100は、メイン制御基板50に対し、投入復唱コマンド又は投入不可コマンドを送信するので、メイン制御基板50と払出制御基板100との間で確実にコマンドを送受信できる。 Also, suppose that the main control board 50 sends a deposit request command to the dispensing control board 100, and the dispensing control board 100 receives the deposit request command, but before the deposit repeat command or the dispensing prohibition command can be sent to the main control board 50, a power outage occurs and the program on the dispensing control board 100 stops. In this case, after recovering from the power outage, the dispensing control board 100 sends the deposit repeat command or the dispensing prohibition command to the main control board 50, so commands can be sent and received reliably between the main control board 50 and the dispensing control board 100.

なお、電源投入時、すなわち、電源断からの復帰時には、メイン制御基板50は、払出制御基板100に、起動確認コマンドを送信し、払出制御基板100は、起動確認コマンドを受信すると、これをそのままメイン制御基板50に送り返す。そして、メイン制御基板50は、送信した起動確認コマンドがそのまま払出制御基板100から送り返されると、メイン制御基板50と払出制御基板100との間の通信が正常であると判断する。その後、払出制御基板100は、メイン制御基板50に、投入復唱コマンド又は投入不可コマンドを送信する。このため、電源断からの復帰時には、メイン制御基板50上のプログラムより先に払出制御基板100上のプログラムが起動するが、メイン制御基板50は、投入復唱コマンド又は投入不可コマンドを確実に受信することができる。 When the power is turned on, i.e., when the power is restored from a power outage, the main control board 50 sends a start-up confirmation command to the dispensing control board 100, and when the dispensing control board 100 receives the start-up confirmation command, it sends it back to the main control board 50 as is. When the main control board 50 receives back the start-up confirmation command it sent as is from the dispensing control board 100, it determines that communication between the main control board 50 and the dispensing control board 100 is normal. The dispensing control board 100 then sends a deposit repeat command or a deposit disable command to the main control board 50. Therefore, when the power is restored from a power outage, the program on the dispensing control board 100 starts before the program on the main control board 50, but the main control board 50 can reliably receive the deposit repeat command or the deposit disable command.

また、メイン制御基板50が払出制御基板100に投入要求コマンドを送信し、払出制御基板100が投入要求コマンドを受信して、メイン制御基板50に投入復唱コマンド又は投入不可コマンドを送信した後に、電源断が発生し、払出制御基板100のプログラムが停止したとする。この場合、払出制御基板100上のプログラムが停止した後にメイン制御基板50上のプログラムが停止するため、メイン制御基板50は、払出制御基板100が送信した投入復唱コマンド又は投入不可コマンドを受信することができるので、メイン制御基板50と払出制御基板100との間で確実にコマンドを送受信できる。 In addition, suppose that the main control board 50 sends a deposit request command to the dispensing control board 100, the dispensing control board 100 receives the deposit request command, and then sends a deposit repeat command or a dispensing prohibition command to the main control board 50, after which a power outage occurs and the program on the dispensing control board 100 stops. In this case, since the program on the dispensing control board 100 stops after the program on the main control board 50 stops, the main control board 50 can receive the deposit repeat command or the dispensing prohibition command sent by the dispensing control board 100, and therefore commands can be transmitted and received reliably between the main control board 50 and the dispensing control board 100.

図4中、払出要求コマンドは、払出し枚数をクレジット数に加算することを払出制御基板100に要求するコマンドであって、第3ストップスイッチ42がオンからオフになった時にメイン制御基板50から払出制御基板100に送信されるコマンドである。
また、払出要求コマンドの後続コマンドは、払出し枚数(役の入賞に基づきクレジット数に加算することを要求する数)を示す。
In Figure 4, the payout request command is a command requesting the payout control board 100 to add the payout number to the credit amount, and is a command sent from the main control board 50 to the payout control board 100 when the third stop switch 42 changes from on to off.
Furthermore, the command following the payout request command indicates the payout amount (the amount requested to be added to the credit amount based on the winning combination).

たとえば、10枚役の入賞時には、メイン制御基板50は、第3ストップスイッチ42がオンからオフになった時に、払出制御基板100に対し、払出要求コマンドとして、クレジット数に払出し枚数「10」を加算することを要求する「210AH」を送信する。
なお、役の非入賞時にも、メイン制御基板50は、第3ストップスイッチ42がオンからオフになった時に、払出制御基板100に、払出要求コマンドを送信する。この場合、払出し枚数は「0」であるので、払出要求コマンドは「2100H」となる。
For example, when a 10-coin winning combination is achieved, the main control board 50 sends a payout request command "210AH" to the payout control board 100 when the third stop switch 42 changes from on to off, requesting that the payout number "10" be added to the credit amount.
In addition, even when the combination is not a winning combination, when the third stop switch 42 is turned from on to off, the main control board 50 sends a payout request command to the payout control board 100. In this case, the payout number is "0", so the payout request command is "2100H".

また、払出制御基板100は、払出要求コマンドを受信すると、払出し要求を受付け可能であるか否か、具体的には、クレジット数に払出し枚数(払出要求コマンドの後続コマンドが示す数)を加算することによりクレジット数の上限値(本実施形態では「10000」)を超えるか否かを判断する。
そして、払出し要求を受付け可能であると判断したとき、すなわち、クレジット数に払出し枚数を加算してもクレジット数の上限値以下であると判断したときは、払出制御基板100は、クレジット数に払出し枚数を加算する処理を実行し、クレジット数表示LED76の表示を更新する処理を実行し、払出復唱コマンドをメイン制御基板50に送信する(受信した払出要求コマンドをそのままメイン制御基板50に送り返す(図5に示す払出要求コマンドのACK応答))。
In addition, when the payout control board 100 receives a payout request command, it determines whether or not it is possible to accept the payout request, specifically, whether or not the upper limit of the number of credits ("10,000" in this embodiment) is exceeded by adding the number of payout coins (the number indicated by the command following the payout request command) to the number of credits.
Then, when it is determined that the payout request can be accepted, that is, when it is determined that adding the payout number to the credit count still results in the number of credits being below the upper limit of the credit count, the payout control board 100 executes a process of adding the payout number to the credit count, executes a process of updating the display of the credit count display LED 76, and sends a payout repeat command to the main control board 50 (it sends the received payout request command back to the main control board 50 as is (an ACK response to the payout request command shown in FIG. 5)).

たとえば、クレジット数が「50」のときに、払出要求コマンド「210AH」(10枚払出し)を受信すると、払出制御基板100は、クレジット数「50」に、払出要求コマンド「210AH」の後続コマンドが示す払出し枚数「10」を加算する処理を実行し、クレジット数表示LEDの表示を「50」から「60」に変更し、払出復唱コマンドをメイン制御基板50に送信する。 For example, when the number of credits is "50" and a payout request command "210AH" (payout of 10 coins) is received, the payout control board 100 executes a process to add the payout number "10" indicated by the command following the payout request command "210AH" to the number of credits "50", changes the display of the credit number display LED from "50" to "60", and sends a payout repeat command to the main control board 50.

これに対し、払出し要求を受付け不可であると判断したとき、すなわち、クレジット数に払出し枚数を加算するとクレジット数の上限値を超えると判断した(たとえば、クレジット数が「9995」の状況下で、払出要求コマンド「210AH」(10枚払出し)を受信した)ときは、払出制御基板100は、クレジット数に払出し枚数を加算する処理を実行せずに、払出不可コマンドをメイン制御基板50に送信する(図5に示す払出要求コマンドのNAK応答)。 In contrast, when it is determined that the payout request cannot be accepted, i.e., when it is determined that adding the payout number to the credit count would exceed the upper limit of the credit count (for example, when the credit count is 9995 and a payout request command "210AH" (payout of 10 coins) is received), the payout control board 100 does not execute the process of adding the payout number to the credit count, but sends a payout not possible command to the main control board 50 (NAK response to the payout request command shown in Figure 5).

さらに、払出復唱コマンドを受信した(送信した払出要求コマンドがそのまま払出制御基板100から送り返された)ときは、メイン制御基板50は、払出し枚数をクレジット数に加算することの要求が許可されたと判断し、役の入賞に基づく電子メダルの払出しに応じた処理(たとえば、獲得数表示LED78に電子メダルの払出し枚数を表示する処理)を実行する。
これに対し、払出不可コマンドを受信したときは、メイン制御基板50は、払出し枚数をクレジット数に加算することの要求が許可されなかったと判断し、役の入賞に基づく電子メダルの払出しに応じた処理を実行しない。
Furthermore, when a payout repeat command is received (the sent payout request command is sent back as is from the payout control board 100), the main control board 50 determines that the request to add the payout number to the credit amount has been permitted, and executes processing according to the payout of electronic medals based on the winning combination (for example, processing to display the number of electronic medals to be paid out on the winning number display LED 78).
On the other hand, when a payout impossible command is received, the main control board 50 judges that the request to add the payout number to the credit number is not permitted, and does not execute processing for the payout of electronic medals based on the winning combination.

このように、入賞役に応じた払出し枚数をクレジット数に加算することを払出制御基板100に要求するときは、メイン制御基板50と払出制御基板100との間で一往復のコマンド通信を行う。
これにより、役の入賞に基づく電子メダルの払出しに関する処理がメイン制御基板50及び払出制御基板100の双方で確実に実行され、クレジット数の管理が正確に行われるので、遊技者に不利益を与えないようにすることができる。
In this way, when the payout control board 100 is requested to add the payout number corresponding to the winning combination to the credit amount, one round trip command communication is performed between the main control board 50 and the payout control board 100 .
As a result, the process for paying out electronic medals based on winning combinations is reliably executed by both the main control board 50 and the payout control board 100, and the number of credits is accurately managed, so that the player is not disadvantaged.

図4中、返却要求コマンドは、ベットされた電子メダルをクレジットに戻すことを払出制御基板100に要求するコマンドであって、キャンセルスイッチ46のオン時にメイン制御基板50から払出制御基板100に送信されるコマンドである。
また、返却要求コマンドの後続コマンドは、返却枚数(電子メダルの返却に基づきクレジット数に加算することを要求する数)を示す。
たとえば、3枚の電子メダルがベットされた状態でキャンセルスイッチ46が操作されると、メイン制御基板50は、キャンセルスイッチ46のオン時に、払出制御基板100に対し、返却要求コマンドとして、クレジット数に返却枚数「3」を加算することを要求する「2203H」を送信する。
In Figure 4, the return request command is a command requesting the payout control board 100 to return the betted electronic medals to credits, and is a command sent from the main control board 50 to the payout control board 100 when the cancel switch 46 is turned on.
Furthermore, the command following the return request command indicates the number of medals to be returned (the number to be added to the credits based on the return of the medals).
For example, when the cancel switch 46 is operated with three electronic medals bet, the main control board 50, when the cancel switch 46 is turned on, sends a return request command "2203H" to the payout control board 100 requesting that the return number "3" be added to the credit amount.

また、払出制御基板100は、返却要求コマンドを受信すると、返却要求を受付け可能であるか否か、具体的には、クレジット数に返却枚数(返却要求コマンドの後続コマンドが示す数)を加算することによりクレジット数の上限値(本実施形態では「10000」)を超えるか否かを判断する。
そして、返却要求を受付け可能であると判断したとき、すなわち、クレジット数に返却枚数を加算してもクレジット数の上限値以下であると判断したときは、払出制御基板100は、クレジット数に返却枚数を加算する処理を実行し、クレジット数表示LED76の表示を更新する処理を実行し、返却復唱コマンドをメイン制御基板50に送信する(受信した返却要求コマンドをそのままメイン制御基板50に送り返す(図5に示す返却要求コマンドのACK応答))。
In addition, when the payout control board 100 receives a return request command, it determines whether or not it is possible to accept the return request, specifically, whether or not the number of credits will exceed the upper limit ("10,000" in this embodiment) by adding the number of credits to the number of return coins (the number indicated by the command following the return request command).
Then, when it is determined that the return request can be accepted, that is, when it is determined that adding the return number to the credit count still results in the number of credits being below the upper limit of the credit count, the payout control board 100 executes a process to add the return number to the credit count, executes a process to update the display of the credit count display LED 76, and sends a return repeat command to the main control board 50 (it sends the received return request command back to the main control board 50 as is (ACK response to the return request command shown in FIG. 5)).

たとえば、クレジット数が「100」のときに、返却要求コマンド「2203H」を受信すると、払出制御基板100は、クレジット数「100」に、返却要求コマンド「2203H」の後続コマンドが示す返却枚数「3」を加算する処理を実行し、クレジット数表示LEDの表示を「100」から「103」に変更し、返却復唱コマンドをメイン制御基板50に送信する。 For example, when the number of credits is "100" and a return request command "2203H" is received, the payout control board 100 executes a process to add the return number "3" indicated by the command following the return request command "2203H" to the number of credits "100", changes the display of the credit number display LED from "100" to "103", and sends a return repeat command to the main control board 50.

これに対し、返却要求を受付け不可であると判断したとき、すなわち、クレジット数に返却枚数を加算するとクレジット数の上限値を超えると判断した(たとえば、クレジット数が「9999」の状況下で、返却要求コマンド「2203H」を受信した(3枚の電子メダルの返却要求があった))ときは、払出制御基板100は、クレジット数に返却枚数を加算する処理を実行せずに、返却不可コマンドをメイン制御基板50に送信する(図5に示す返却要求コマンドのNAK応答)。 In contrast, when it is determined that the return request cannot be accepted, that is, when it is determined that adding the return number to the credit count would exceed the upper limit of the credit count (for example, when the credit count is 9999 and a return request command "2203H" is received (a return request has been made for three electronic medals)), the payout control board 100 does not execute the process of adding the return number to the credit count, but sends a non-returnable command to the main control board 50 (NAK response to the return request command shown in FIG. 5).

さらに、返却復唱コマンドを受信した(送信した返却要求コマンドがそのまま払出制御基板100から送り返された)ときは、メイン制御基板50は、返却枚数をクレジット数に加算することの要求が許可されたと判断し、電子メダルの返却に応じた処理(たとえば、1ベット表示LED~3ベット表示LEDを消灯させる処理、及びスタートスイッチ41の操作を受付け不可にする処理)を実行する。
これに対し、返却不可コマンドを受信したときは、メイン制御基板50は、返却枚数をクレジット数に加算することの要求が許可されなかったと判断し、電子メダルの返却に応じた処理を実行しない。
Furthermore, when a return repeat command is received (the returned request command that was sent is sent back as is from the payout control board 100), the main control board 50 determines that the request to add the returned number to the credit amount has been permitted, and executes processing in accordance with the return of the electronic medals (for example, processing to turn off the 1 bet display LED to 3 bet display LED, and processing to not accept operation of the start switch 41).
On the other hand, when a non-returnable command is received, the main control board 50 determines that the request to add the returned number to the credit number is not permitted, and does not execute the process corresponding to the return of the electronic medals.

このように、ベットされた電子メダルをクレジットに戻すことを払出制御基板100に要求するときは、メイン制御基板50と払出制御基板100との間で一往復のコマンド通信を行う。
これにより、電子メダルの返却に関する処理がメイン制御基板50及び払出制御基板100の双方で確実に実行され、クレジット数の管理が正確に行われるので、遊技者に不利益を与えないようにすることができる。
In this way, when a request is made to the payout control board 100 to return the bet electronic medals to credits, one round trip command communication is performed between the main control board 50 and the payout control board 100 .
This ensures that the process for returning electronic medals is executed reliably by both the main control board 50 and the payout control board 100, and the number of credits is managed accurately, so that no disadvantage is caused to the player.

図6中、貸出要求コマンドは、貸出し枚数をクレジット数に加算することを払出制御基板100に要求するコマンドであって、貸出スイッチ202のオン時に管理装置(CRユニット)200から払出制御基板100に送信されるコマンドである。
また、貸出要求コマンドの後続コマンドは、貸出し枚数(電子メダルの貸出しに基づきクレジット数に加算することを要求する数)を示す。
In Figure 6, the loan request command is a command requesting the dispensing control board 100 to add the loan number to the credit number, and is a command sent from the management device (CR unit) 200 to the dispensing control board 100 when the loan switch 202 is turned on.
Furthermore, the command following the lending request command indicates the number of medals to be lent (the number to be added to the credits based on the lending of electronic medals).

たとえば、管理装置200の紙幣投入口201に千円札が投入されて、度数表示部204に度数「10」が表示された状況下で、貸出スイッチ202が操作されると、管理装置200は、貸出スイッチ202のオン時に、払出制御基板100に対し、貸出要求コマンドとして、クレジット数に貸出し枚数「50」を加算することを要求する「4032H」を送信する。 For example, when a 1,000 yen bill is inserted into the bill insertion slot 201 of the management device 200 and the number of notes displayed on the number display unit 204 is "10", and the loan switch 202 is operated, the management device 200, when the loan switch 202 is turned on, sends a loan request command "4032H" to the dispensing control board 100 requesting that the number of notes to be loaned "50" be added to the credit amount.

また、払出制御基板100は、貸出要求コマンドを受信すると、貸出し要求を受付け可能であるか否か、具体的には、クレジット数に貸出し枚数(貸出要求コマンドの後続コマンドが示す数)を加算することによりクレジット数の上限値(本実施形態では「10000」)を超えるか否かを判断する。
そして、貸出し要求を受付け可能であると判断したとき、すなわち、クレジット数に貸出し枚数を加算してもクレジット数の上限値以下であると判断したときは、払出制御基板100は、管理装置200に対し、貸出復唱コマンドを送信する(受信した貸出要求コマンドをそのまま管理装置200に送り返す(図7に示す貸出要求コマンドのACK応答))。
In addition, when the dispensing control board 100 receives a loan request command, it determines whether the loan request can be accepted, specifically, whether the number of credits exceeds the upper limit value ("10,000" in this embodiment) by adding the number of loans (the number indicated by the command following the loan request command) to the number of credits.
Then, when it is determined that the loan request can be accepted, that is, when it is determined that the number of credits plus the number of loaned cards is still below the upper limit of the number of credits, the dispensing control board 100 sends a loan repeat command to the management device 200 (sends the received loan request command back to the management device 200 as is (ACK response to the loan request command shown in Figure 7)).

これに対し、貸出し要求を受付け不可であると判断したとき、すなわち、クレジット数に貸出し枚数を加算するとクレジット数の上限値を超えると判断した(たとえば、クレジット数が「9955」の状況下で、貸出要求コマンド「4032H」(貸出し枚数「50」)を受信した)ときは、払出制御基板100は、管理装置200に対し、エラーコマンド「E000H」を送信する(図7に示す異常時のNAK応答)。 On the other hand, when it is determined that the loan request cannot be accepted, i.e., when it is determined that adding the loan number to the credit number would exceed the upper limit of the credit number (for example, when the credit number is "9955" and a loan request command "4032H" (loan number "50") is received), the dispensing control board 100 sends an error command "E000H" to the management device 200 (NAK response in an abnormal situation as shown in Figure 7).

また、貸出復唱コマンドを受信した(送信した貸出要求コマンドがそのまま払出制御基板100から送り返された)ときは、管理装置200は、払出制御基板100に対し、貸出し要求の実行を指示する貸出指示コマンドを送信し、さらに、貸出し枚数に応じて度数表示部204の表示を更新する処理を実行する。 In addition, when a loan repeat command is received (the loan request command sent is returned as is from the dispensing control board 100), the management device 200 sends a loan instruction command to the dispensing control board 100 to instruct it to execute the loan request, and further executes a process to update the display of the number display unit 204 according to the number of loans.

たとえば、管理装置200から払出制御基板100に対して貸出要求コマンドとして「4032H」(貸出し枚数「50」)を送信し、その後、払出制御基板100から管理装置200に対して貸出復唱コマンドとして「4032H」(貸出要求コマンドのACK応答)を送信したときは、管理装置200は、払出制御基板100に対し、貸出指示コマンドとして、クレジット数に貸出し枚数「50」を加算することを指示する「4132H」を送信する。さらに、管理装置200は、度数表示部204に表示中の数値から、貸出し枚数「50」に応じた度数「10」を減算する処理を実行する。 For example, when the management device 200 transmits "4032H" (lend number "50") as a loan request command to the dispensing control board 100, and then the dispensing control board 100 transmits "4032H" (ACK response to the loan request command) as a loan repeat command to the management device 200, the management device 200 transmits "4132H" as a loan instruction command to the dispensing control board 100, instructing it to add the loan number "50" to the credit amount. Furthermore, the management device 200 executes a process to subtract "10" points corresponding to the loan number "50" from the value displayed on the point display unit 204.

これに対し、エラーコマンドを受信したときは、管理装置200は、待機状態に戻るように制御する。
また、貸出指示コマンドを受信すると、払出制御基板100は、クレジット数に貸出し枚数を加算する処理を実行し、クレジット数表示LED76の表示を更新する処理を実行する。
たとえば、クレジット数が「50」のときに、貸出指示コマンド「4132H」(貸出し枚数「50」)を受信すると、払出制御基板100は、クレジット数「50」に、貸出指示コマンド「4132H」の後続コマンドが示す貸出し枚数「50」を加算する処理を実行し、クレジット数表示LEDの表示を「50」から「100」に変更する。
On the other hand, when an error command is received, the management device 200 controls the device to return to the standby state.
Furthermore, when a lending instruction command is received, the payout control board 100 executes a process of adding the lending number to the credit number, and executes a process of updating the display of the credit number display LED 76 .
For example, when the number of credits is "50" and a loan instruction command "4132H" (number of credits to be loaned "50") is received, the dispensing control board 100 executes a process of adding the number of credits to "50" by the loan number indicated by the command subsequent to the loan instruction command "4132H", and changes the display of the credit number display LED from "50" to "100".

このように、管理装置200からスロットマシン10の払出制御基板100に電子メダルを貸し出すときは、管理装置200と払出制御基板100との間で一往復半のコマンド通信を行う。
これにより、電子メダルの貸出しに関する処理が管理装置200及び払出制御基板100の双方で確実に実行され、クレジット数の管理が正確に行われるので、遊技者に不利益を与えないようにすることができる。
In this way, when the management device 200 lends out electronic medals to the payout control board 100 of the slot machine 10, one and a half round trips of command communication are carried out between the management device 200 and the payout control board 100.
This ensures that processing relating to the lending of electronic medals is executed reliably by both the management device 200 and the payout control board 100, and the number of credits is managed accurately, so that no disadvantage is inflicted on the player.

図7中、下位計数要求コマンド及び上位計数要求コマンドは、電子メダルの払戻しを管理装置(CRユニット)200に要求するコマンドであって、計数スイッチ47のオン時に払出制御基板100から管理装置200に送信されるコマンドである。
また、下位計数要求コマンドの後続コマンドは、払戻し枚数(クレジット数)を16ビット(2バイト)で表したときの下位8ビットを示す。
さらにまた、上位計数要求コマンドの後続コマンドは、払戻し枚数(クレジット数)を16ビットで表したときの上位8ビットを示す。
すなわち、下位計数要求コマンドの後続コマンド、及び上位計数要求コマンドの後続コマンドから、払戻し枚数が特定される。
In Figure 7, the lower-level counting request command and the upper-level counting request command are commands that request the management device (CR unit) 200 to pay back electronic medals, and are commands that are sent from the payout control board 100 to the management device 200 when the counting switch 47 is turned on.
Furthermore, the command following the lower-order count request command indicates the lower 8 bits when the payout number (number of credits) is expressed in 16 bits (2 bytes).
Furthermore, the command following the higher-order count request command indicates the higher-order 8 bits when the payout number (number of credits) is expressed in 16 bits.
That is, the number of coins to be paid out is determined from the command subsequent to the lower-order count request command and the command subsequent to the higher-order count request command.

上述したように、本実施形態では、クレジット数の上限値は「10000(D)」に設定されている。また、クレジット数の上限値「10000(D)」は、2進数で表すと「10011100010000(B)」であり、16進数で表すと「2710(H)」である。このように、クレジット数の上限値「10000(D)」は、8ビット(1バイト)で表すことができない。このため、本実施形態では、下位計数要求コマンドの後続コマンド、及び上位計数要求コマンドの後続コマンドの16ビット(2バイト)で、払戻し枚数(クレジット数)を特定するようにしている。 As described above, in this embodiment, the upper limit of the number of credits is set to "10000 (D)". Furthermore, the upper limit of the number of credits "10000 (D)" is expressed as "10011100010000 (B)" in binary, and "2710 (H)" in hexadecimal. Thus, the upper limit of the number of credits "10000 (D)" cannot be expressed in 8 bits (1 byte). For this reason, in this embodiment, the number of payouts (number of credits) is specified by 16 bits (2 bytes) of the command following the lower-order count request command and the command following the upper-order count request command.

たとえば、払出制御基板100に1000枚の電子メダルがクレジットされている(クレジット数「1000(D)」の)状況下で、計数スイッチ47が操作されたとする。ここで、クレジット数「1000(D)」は、2進数で表すと「1111101000(B)」であり、16進数で表すと「03E8(H)」である。この場合、下位計数要求コマンドは、「50E8(H)」となり、上位計数要求コマンドは、「5103(H)」となる。そして、払出制御基板100は、計数スイッチ47のオン時に、管理装置200に対し、下位計数要求コマンドとして、「50E8(H)」を送信する。 For example, suppose that the payout control board 100 has 1000 electronic medals credited (credit number "1000 (D)") and the counting switch 47 is operated. Here, the credit number "1000 (D)" is expressed in binary as "1111101000 (B)" and in hexadecimal as "03E8 (H)". In this case, the lower counting request command is "50E8 (H)" and the upper counting request command is "5103 (H)". Then, when the counting switch 47 is turned on, the payout control board 100 sends "50E8 (H)" to the management device 200 as the lower counting request command.

また、下位計数要求コマンドを受信すると、管理装置200は、払戻し要求を受付け可能であるか否かを判断する。
そして、払戻し要求を受付け可能であると判断したときは、管理装置200は、払出制御基板100に対し、下位計数復唱コマンドを送信する(受信した下位計数要求コマンドをそのまま払出制御基板100に送り返す(図6に示す下位計数要求コマンドのACK応答))。
これに対し、払戻し要求を受付け不可であると判断したときは、管理装置200は、払出制御基板100に対し、エラーコマンド「E000H」を送信する(図6に示す異常時のNAK応答)。この場合、管理装置200は、待機状態に戻るように制御する。
Furthermore, when a lower-level counting request command is received, the management device 200 determines whether or not a withdrawal request can be accepted.
Then, when it is determined that the withdrawal request can be accepted, the management device 200 sends a lower-level counting repeat command to the dispensing control board 100 (sends the received lower-level counting request command back to the dispensing control board 100 as is (ACK response to the lower-level counting request command shown in Figure 6)).
On the other hand, if it is determined that the withdrawal request cannot be accepted, the management device 200 transmits an error command "E000H" to the dispensing control board 100 (the NAK response in the event of an abnormality shown in FIG. 6). In this case, the management device 200 controls the device to return to the standby state.

また、下位計数復唱コマンドを受信した(送信した下位計数要求コマンドがそのまま管理装置200から送り返された)ときは、払出制御基板100は、管理装置200に対し、上位計数要求コマンドとして、「5103(H)」を送信する。
これに対し、エラーコマンドを受信したときは、払出制御基板100は、上位計数要求コマンドを送信せずに、待機状態に戻るように制御する。
In addition, when a lower-order counting repeat command is received (the sent lower-order counting request command is sent back from the management device 200 as is), the dispensing control board 100 sends "5103 (H)" to the management device 200 as a higher-order counting request command.
In contrast, when an error command is received, the dispensing control board 100 controls the board to return to a standby state without sending a higher-level counting request command.

また、上位計数要求コマンドを受信すると、管理装置200は、払出制御基板100に対し、上位計数復唱コマンドを送信する(受信した上位計数要求コマンドをそのまま払出制御基板100に送り返す(図6に示す上位計数要求コマンドのACK応答))。
さらにまた、上位計数復唱コマンドを受信した(送信した上位計数要求コマンドがそのまま管理装置200から送り返された)ときは、払出制御基板100は、管理装置200に対し、計数指示コマンドを送信し、さらに、クレジット数をクリアする(「0」にする)処理を実行し、クレジット数表示LED76の表示を更新する(「0」にする)処理を実行する。
In addition, upon receiving the higher-order counting request command, the management device 200 sends a higher-order counting repeat command to the dispensing control board 100 (sends the received higher-order counting request command back to the dispensing control board 100 as is (ACK response to the higher-order counting request command shown in Figure 6)).
Furthermore, when a higher-order counting repeat command is received (the higher-order counting request command that was sent is sent back as is from the management device 200), the payout control board 100 sends a counting instruction command to the management device 200, and further executes a process to clear the number of credits (set it to "0") and update the display of the credit number display LED 76 (set it to "0").

さらに、計数指示コマンドを受信すると、管理装置200は、下位計数要求コマンド及び上位計数要求コマンドから特定される払戻し枚数を、管理装置200側で管理する電子メダルの枚数に反映させる処理を実行するように制御する。
その後、返却スイッチ203が操作されると、管理装置200は、計数スイッチ47の操作によりスロットマシン10(払出制御基板100)から管理装置200に戻された電子メダルの枚数、及び度数表示部204に表示された度数に相当する電子メダルの枚数を、電子データとしてカード(磁気カードやICカード等)に記憶し、そのカードをカードリーダライタ205の排出口から排出する。
Furthermore, upon receiving a count instruction command, the management device 200 controls the execution of a process to reflect the number of electronic medals to be paid out specified from the lower-level count request command and the upper-level count request command in the number of electronic medals managed by the management device 200.
Thereafter, when the return switch 203 is operated, the management device 200 stores the number of electronic medals returned to the management device 200 from the slot machine 10 (payout control board 100) by operation of the counting switch 47, and the number of electronic medals corresponding to the degree displayed on the degree display unit 204, as electronic data on a card (magnetic card, IC card, etc.), and ejects the card from the ejection port of the card reader/writer 205.

このように、スロットマシン10の払出制御基板100から管理装置200に電子メダルを払い戻すときは、払出制御基板100と管理装置200との間で一往復半のコマンド通信を行う。
これにより、電子メダルの払戻しに関する処理が払出制御基板100及び管理装置200の双方で確実に実行され、クレジット数の管理が正確に行われるので、遊技者に不利益を与えないようにすることができる。
In this way, when paying out electronic medals from the payout control board 100 of the slot machine 10 to the management device 200, one and a half round trips of command communication are carried out between the payout control board 100 and the management device 200.
This ensures that the processing relating to the payout of electronic medals is executed reliably by both the payout control board 100 and the management device 200, and the number of credits is managed accurately, so that no disadvantage is caused to the player.

また、本実施形態では、クレジット数管理CPU105には、4バイトのデータからなる固有のIDが設定されている。そして、図7中、CPU固有ID1バイト目~4バイト目は、クレジット数管理CPU105に固有のIDの1バイト目~4バイト目を管理装置200に伝達するコマンドである。
払出制御基板100は、電源投入時に、管理装置200に対し、CPU固有ID1バイト目~4バイト目を順次送信する。
In this embodiment, a unique ID consisting of 4 bytes of data is set in the credit number management CPU 105. In Fig. 7, the first to fourth bytes of the CPU unique ID are a command for transmitting the first to fourth bytes of the ID unique to the credit number management CPU 105 to the management device 200.
When the power is turned on, the dispensing control board 100 sequentially transmits the first to fourth bytes of the CPU unique ID to the management device 200.

また、管理装置200は、CPU固有ID1バイト目~4バイト目を受信すると、これらを所定の記憶領域に記憶(保存)し、かつこれらをホールコンピュータ300に順次送信する。
さらにまた、ホールコンピュータ300は、CPU固有ID1バイト目~4バイト目を受信すると、これらを所定の記憶領域に記憶(保存)する。
さらに、管理装置200及びホールコンピュータ300は、記憶したCPU固有ID1バイト目~4バイト目を履歴として残しておくことが可能とされている。
Furthermore, when the management device 200 receives the first to fourth bytes of the CPU unique ID, it stores (contains) them in a specified storage area and transmits them to the hall computer 300 in sequence.
Furthermore, when the hall computer 300 receives the first to fourth bytes of the CPU unique ID, it stores (preserves) them in a specified storage area.
Furthermore, the management device 200 and the hall computer 300 are capable of keeping the first to fourth bytes of the stored CPU unique ID as history.

たとえば、払出制御基板100が不正に交換されると、払出制御基板100に搭載されているクレジット数管理CPU105が変わるため、交換を境に、管理装置200及びホールコンピュータ300に記憶されているCPU固有ID1バイト目~4バイト目も変わることになる。
このため、管理装置200及びホールコンピュータ300に記憶されているCPU固有ID1バイト目~4バイト目が途中で変わっていないか否かをチェックすることにより、払出制御基板100が不正に交換されたか否かを判断することができる。
For example, if the payout control board 100 is fraudulently replaced, the credit number management CPU 105 mounted on the payout control board 100 will change, and the first to fourth bytes of the CPU unique ID stored in the management device 200 and the hall computer 300 will also change at the time of the replacement.
Therefore, by checking whether the first to fourth bytes of the CPU unique ID stored in the management device 200 and the hall computer 300 have not changed in the meantime, it is possible to determine whether the payout control board 100 has been fraudulently replaced.

図8は、払出制御基板100におけるメインルーチンの処理の流れを示すフローチャートである。
払出制御基板100のメインルーチンでは、ステップS101において入力ポート101にいずれかの信号が入力されると、次のステップS102に進み、払出制御基板100は、入力された信号が計数スイッチ47のオン信号であるか否かの判断処理を実行する。
ここで、計数スイッチ47のオン信号であると判断したときは、次のステップS103に進み、計数要求フラグをオンにする処理を実行する。そして、次のステップS104に進む。
これに対し、計数スイッチ47のオン信号でないと判断したときは、ステップS103をスキップして、ステップS104に進む。
FIG. 8 is a flowchart showing the flow of processing of a main routine in the dispensing control board 100.
In the main routine of the dispensing control board 100, when any signal is input to the input port 101 in step S101, the process proceeds to the next step S102, and the dispensing control board 100 executes a determination process to determine whether the input signal is an on signal for the counting switch 47.
If it is determined that the signal is an ON signal from the count switch 47, the process proceeds to the next step S103, where a process for turning on the count request flag is executed, and then the process proceeds to the next step S104.
On the other hand, if it is determined that the count switch 47 is not an ON signal, step S103 is skipped and the process proceeds to step S104.

ステップS104では、払出制御基板100は、VL信号がオンであるか否かの判断処理を実行する。
ここで、管理装置(CRユニット)200から払出制御基板100にVL信号(直流18Vの信号)が供給されていれば、ステップS104では、VL信号はオンであると判断し、管理装置200と払出制御基板100とが正常に接続されていると判断して、ステップS105に進み、VLエラーフラグをクリアする処理を実行する。そして、ステップS107に進む。
これに対し、管理装置200から払出制御基板100にVL信号が供給されていなければ、ステップS104では、VL信号はオフであると判断し、管理装置200と払出制御基板100とが正常に接続されていないと判断して、ステップS106に進み、VLエラーフラグをセットする処理を実行する。そして、ステップS107に進む。
In step S104, the dispensing control board 100 executes a process to determine whether the VL signal is on or not.
If a VL signal (18V DC signal) is being supplied from the management device (CR unit) 200 to the dispensing control board 100, then in step S104, it is determined that the VL signal is on, and it is determined that the management device 200 and the dispensing control board 100 are normally connected, and the process proceeds to step S105, where the process clears the VL error flag. Then, the process proceeds to step S107.
On the other hand, if the VL signal is not supplied from the management device 200 to the dispensing control board 100, in step S104, it is determined that the VL signal is off, and it is determined that the management device 200 and the dispensing control board 100 are not connected normally, and the process proceeds to step S106, where a process of setting a VL error flag is executed. Then, the process proceeds to step S107.

ステップS107では、払出制御基板100は、入力ポート101に入力された(受信した)信号がメイン制御コマンドであるか否かの判断処理を実行する。
ここで、入力された信号がメイン制御コマンドであると判断したときは、次のステップS108に進み、払出制御基板100は、入力されたメイン制御コマンドをRWM103の所定の記憶領域に記憶(保存)する。そして、次のステップS109に進む。
これに対し、入力された信号がメイン制御コマンドでないと判断したときは、ステップS108をスキップして、ステップS109に進む。
In step S107, the dispensing control board 100 executes a determination process to determine whether the signal input (received) to the input port 101 is a main control command.
If it is determined that the input signal is a main control command, the process proceeds to the next step S108, where the dispensing control board 100 stores (preserves) the input main control command in a predetermined storage area of the RWM 103. Then, the process proceeds to the next step S109.
On the other hand, if it is determined that the input signal is not a main control command, step S108 is skipped and the process proceeds to step S109.

ステップS109では、払出制御基板100は、記憶したコマンドがメイン制御コマンドであるか否かの判断処理を実行する。
ここで、記憶したコマンドがメイン制御コマンドであると判断したときは、次のステップS110に進み、払出制御基板100は、メイン制御コマンド解析処理(図9及び図10)を実行する。メイン制御コマンド解析処理の詳細は後述する。そして、メイン制御コマンド解析処理を実行すると、次のステップS111に進む。
In step S109, the dispensing control board 100 executes a determination process as to whether the stored command is a main control command or not.
If it is determined that the stored command is a main control command, the process proceeds to step S110, where the payout control board 100 executes a main control command analysis process (FIGS. 9 and 10). The details of the main control command analysis process will be described later. After the main control command analysis process is executed, the process proceeds to step S111.

ステップS111では、払出制御基板100は、計数処理(図12)を実行中であるか否かの判断処理を実行する。
ここで、計数処理は、後述するステップS116で「Yes」となったときに開始される処理であり、その詳細については後述する。また、計数処理を実行中に、この計数処理と並行して、払出制御基板100のメインルーチンを実行可能とされている。このため、払出制御基板100のメインルーチンのステップS111において、計数処理を実行中であるか否かの判断処理を実行する。
なお、計数処理の開始時に、計数処理中フラグをセットし、計数処理の終了時に、計数処理中フラグをクリアする。これにより、計数処理中フラグのオン/オフをチェックすることで、計数処理を実行中であるか否かを判断することができる。
In step S111, the dispensing control board 100 executes a determination process as to whether or not the counting process (Figure 12) is being executed.
Here, the counting process is a process that is started when the result of step S116 described later becomes "Yes", and the details of which will be described later. Also, while the counting process is being executed, the main routine of the dispensing control board 100 can be executed in parallel with this counting process. Therefore, in step S111 of the main routine of the dispensing control board 100, a process of determining whether the counting process is being executed or not is executed.
When the counting process starts, the counting process in progress flag is set, and when the counting process ends, the counting process in progress flag is cleared. This makes it possible to determine whether the counting process is being executed or not by checking whether the counting process in progress flag is on or off.

そして、ステップS111において、計数処理を実行中であると判断したときは、ステップS113以降の処理を実行することなく、本フローチャートによる処理を終了する。
なお、ステップS111において、計数処理を実行中であると判断したときは、その後、実行中の計数処理を続ける。
これに対し、ステップS111において、計数処理を実行中でないと判断したときは、ステップS113に進み、払出制御基板100は、貸出処理(図11)を実行中であるか否かの判断処理を実行する。
If it is determined in step S111 that the counting process is being executed, the process according to this flowchart is terminated without executing the processes in and after step S113.
If it is determined in step S111 that the counting process is being executed, the counting process being executed is continued thereafter.
On the other hand, if it is determined in step S111 that the counting process is not being executed, the process proceeds to step S113, and the dispensing control board 100 executes a process of determining whether or not the lending process (Figure 11) is being executed.

ここで、貸出処理は、後述するステップS118で「Yes」となったときに開始される処理であり、その詳細については後述する。また、貸出処理を実行中に、この貸出処理と並行して、払出制御基板100のメインルーチンを実行可能とされている。このため、払出制御基板100のメインルーチンのステップS113において、貸出処理を実行中であるか否かの判断処理を実行する。
なお、貸出処理の開始時に、貸出処理中フラグをセットし、貸出処理の終了時に、貸出処理中フラグをクリアする。これにより、貸出処理中フラグのオン/オフをチェックすることで、貸出処理を実行中であるか否かを判断することができる。
Here, the loan process is a process that is started when step S118, which will be described later, becomes "Yes", and its details will be described later. Also, while the loan process is being executed, the main routine of the dispensing control board 100 can be executed in parallel with this loan process. Therefore, in step S113 of the main routine of the dispensing control board 100, a process is executed to determine whether the loan process is being executed.
When the lending process starts, the lending process in progress flag is set, and when the lending process ends, the lending process in progress flag is cleared. This makes it possible to determine whether the lending process is in progress by checking whether the lending process in progress flag is on or off.

そして、ステップS113において、貸出処理を実行中であると判断したときは、ステップS115以降の処理を実行することなく、本フローチャートによる処理を終了する。
なお、ステップS113において、貸出処理を実行中であると判断したときは、その後、実行中の貸出処理を続ける。
これに対し、ステップS113において、貸出処理を実行中でないと判断したときは、ステップS115に進み、払出制御基板100は、遊技機コマンドを送信中であるか否かの判断処理を実行する。
If it is determined in step S113 that the lending process is being executed, the process according to this flowchart is terminated without executing the processes in and after step S115.
If it is determined in step S113 that the lending process is currently being performed, the lending process is continued thereafter.
On the other hand, if it is determined in step S113 that the lending process is not being executed, the process proceeds to step S115, and the payout control board 100 executes a process of determining whether or not a gaming machine command is being transmitted.

ここで、遊技機コマンド送信処理は、後述するステップS118で「No」となったときに実行される処理である。また、遊技機コマンド送信処理を実行中に、この遊技機コマンド送信処理と並行して、払出制御基板100のメインルーチンを実行可能とされている。このため、払出制御基板100のメインルーチンのステップS115において、遊技機コマンド送信処理を実行中であるか否かの判断処理を実行する。
そして、ステップS115において、遊技機コマンド送信処理を実行中であると判断したときは、ステップS116以降の処理を実行することなく、本フローチャートによる処理を終了する。
これに対し、ステップS115において、遊技機コマンド送信処理を実行中でないと判断したときは、ステップS116に進み、払出制御基板100は、計数要求フラグがオンであるか否かの判断処理を実行する。
Here, the gaming machine command transmission process is a process executed when the result of step S118 described later is "No". In addition, while the gaming machine command transmission process is being executed, the main routine of the payout control board 100 can be executed in parallel with the gaming machine command transmission process. Therefore, in step S115 of the main routine of the payout control board 100, a process of determining whether or not the gaming machine command transmission process is being executed is executed.
Then, when it is determined in step S115 that the gaming machine command transmission process is being executed, the process according to this flowchart is terminated without executing the processes in and after step S116.
On the other hand, when it is determined in step S115 that the gaming machine command transmission process is not being executed, the process proceeds to step S116, and the payout control board 100 executes a process of determining whether or not the count request flag is on.

また、ステップS116において計数要求フラグがオンであると判断したときは、ステップS117に進み、払出制御基板100は、計数処理(図12)を開始する。そして、本フローチャートによる処理を終了する。
これに対し、ステップS116において計数要求フラグがオフであると判断したときは、ステップS118に進み、払出制御基板100は、入力ポート101に入力された(受信した)信号が貸出要求コマンドであるか否かの判断処理を実行する。
If it is determined in step S116 that the count request flag is on, the process proceeds to step S117, where the dispensing control board 100 starts the counting process (FIG. 12), and the process according to this flow chart is then terminated.
On the other hand, if it is determined in step S116 that the counting request flag is off, the process proceeds to step S118, and the dispensing control board 100 executes a process to determine whether the signal input (received) to the input port 101 is a loan request command.

ここで、入力された(受信した)信号が貸出要求コマンドであると判断したときは、ステップS119に進み、払出制御基板100は、貸出処理(図11)を開始する。そして、本フローチャートによる処理を終了する。
これに対し、入力された信号が貸出要求コマンドでないと判断したときは、ステップS120に進み、払出制御基板100は、遊技機コマンド送信処理を実行する。この処理は、遊技機コマンドを管理装置200に送信する処理である。そして、本フローチャートによる処理を終了する。
If it is determined that the input (received) signal is a loan request command, the process proceeds to step S119, where the dispensing control board 100 starts the loan process (FIG. 11). Then, the process according to this flowchart ends.
On the other hand, when it is determined that the input signal is not a loan request command, the process proceeds to step S120, where the payout control board 100 executes a gaming machine command transmission process. This process is a process for transmitting a gaming machine command to the management device 200. Then, the process according to this flowchart is terminated.

上述したように、ステップS111において計数処理を実行中であるか否かを判断し、計数処理を実行中であると判断したときは、ステップS113以降の処理を実行することなく、実行中の計数処理を続け、計数処理を実行中でないと判断したときは、ステップS113に進んで貸出処理を実行中であるか否かを判断する。
また、ステップS116において計数要求フラグがオンであるか否かを判断し、計数要求フラグがオンであると判断したときはステップS117に進んで計数処理を開始し、計数要求フラグがオフであると判断したときはステップS118に進んで貸出要求コマンドを受信したか否かを判断する。
As described above, in step S111, it is determined whether or not the counting process is being performed, and if it is determined that the counting process is being performed, the counting process being performed is continued without performing the processes from step S113 onwards, and if it is determined that the counting process is not being performed, the process proceeds to step S113 and it is determined whether or not the lending process is being performed.
Also, in step S116, it is determined whether the counting request flag is on or not, and if it is determined that the counting request flag is on, the process proceeds to step S117 to start the counting process, and if it is determined that the counting request flag is off, the process proceeds to step S118 to determine whether a loan request command has been received.

このように、払出制御基板100は、計数処理(電子メダルの払戻しに関する処理)及び貸出処理(電子メダルの貸出しに関する処理)を実行可能であり、かつ計数処理を実行中であるか否かの判断処理を、貸出処理を実行中であるか否かの判断処理より先に行うとともに、計数要求フラグがオンであるか否かの判断処理を、貸出要求コマンドを受信したか否かの判断処理より先に行うことにより、計数処理を貸出処理より優先して実行するように設定されている。
ここで、計数スイッチ47が操作されると、払出制御基板100は、計数処理を実行する。
また、貸出スイッチ202が操作され、管理装置200から払出制御基板100に貸出要求コマンドが送信されると、払出制御基板100は、貸出処理を実行する。
In this way, the payout control board 100 is capable of executing counting processing (processing related to the refund of electronic medals) and lending processing (processing related to the lending of electronic medals), and is configured to execute counting processing in priority to lending processing by performing the process of determining whether or not counting processing is being executed before the process of determining whether or not lending processing is being executed, and by performing the process of determining whether or not the counting request flag is on before the process of determining whether or not a lending request command has been received.
Here, when the counting switch 47 is operated, the dispensing control board 100 executes the counting process.
In addition, when the loan switch 202 is operated and a loan request command is sent from the management device 200 to the dispensing control board 100, the dispensing control board 100 executes the loan process.

さらにまた、計数スイッチ47と貸出スイッチ202とが同時に操作されると、払出制御基板100は、計数処理を優先するため、計数処理を実行し、貸出処理は実行しない。
一旦貸し出した電子メダルを払い戻すと、電子メダルを貨幣に等価で交換できない場合には、遊技者に不利益を与えてしまうことになるが、計数処理を優先し、貸出処理を実行せずに、計数処理を実行することにより、遊技者に不利益を与えないようにすることができる。
Furthermore, when the counting switch 47 and the lending switch 202 are operated simultaneously, the dispensing control board 100 prioritizes the counting process, so it executes the counting process and does not execute the lending process.
If the electronic medals once lent out are returned and cannot be exchanged for currency at an equivalent value, the player is disadvantaged, but by prioritizing the counting process and executing the counting process without executing the lending process, the player is prevented from being disadvantaged.

さらに、貸出処理を実行中に、計数スイッチ47が操作されると、払出制御基板100は、計数スイッチ47の操作を受け付けるとともに、実行中の貸出処理を継続し、貸出処理が終了すると、計数処理を実行する。
すなわち、払出制御基板100は、貸出処理の実行中やリール31の回転中を含め、いかなるときも、計数スイッチ47の操作を受け付けることができ、そして、計数スイッチ47の操作を受け付けておくことにより、その後の適切なタイミングで計数処理を実行することができる。
これにより、計数スイッチ47を1回操作すれば、電子メダルの払戻しが必ず行われるようにすることができ、計数スイッチ47の再操作を不要にすることができるので、遊技者に煩わしい思いをさせないようにすることができる。
Furthermore, when the counting switch 47 is operated while the lending process is being executed, the dispensing control board 100 accepts the operation of the counting switch 47 and continues the lending process being executed, and when the lending process is completed, executes the counting process.
In other words, the payout control board 100 can accept operation of the counting switch 47 at any time, including while the lending process is being executed or while the reel 31 is spinning, and by accepting the operation of the counting switch 47, it can execute the counting process at an appropriate timing thereafter.
As a result, the electronic medals can be paid back without fail by operating the counting switch 47 once, and re-operation of the counting switch 47 can be eliminated, so that the player can be prevented from feeling bothered.

図9及び図10は、図8のステップS110におけるメイン制御コマンド解析処理のサブルーチンを示している。図10は、図9に続くフローチャートである。
上述したように、メイン制御基板50から払出制御基板100に送信されるコマンドを総称してメイン制御コマンドという。
また、メイン制御コマンドとして、図4中の「内容」の欄に記載されている8種類のコマンドを挙げることができる。
そして、メイン制御コマンド解析処理では、8種類のコマンドのうち、いずれのコマンドを受信したかを判断し、受信したコマンドに応じた処理を実行する。
9 and 10 show the subroutine of the main control command analysis process in step S110 of Fig. 8. Fig. 10 is a flowchart continuing from Fig. 9.
As described above, the commands transmitted from the main control board 50 to the dispensing control board 100 are collectively referred to as main control commands.
Furthermore, the main control commands include the eight types of commands listed in the "Contents" column in FIG.
In the main control command analysis process, it is determined which of the eight types of commands has been received, and a process corresponding to the received command is executed.

具体的には、メイン制御コマンド解析処理では、ステップS131において、エラーフラグがオンであるか(エラーが発生しているか)否かの判断処理を実行する。
そして、エラーフラグがオンであると判断したときは、ステップS132に進み、払出制御基板100は、メイン制御基板50に対し、エラーコマンドを送信する処理を実行する。そして、本フローチャートによる処理を終了する。
これに対し、エラーフラグがオフであると判断したときは、ステップS133に進む。
Specifically, in the main control command analysis process, in step S131, a process of determining whether or not an error flag is on (whether or not an error has occurred) is executed.
If it is determined that the error flag is on, the process proceeds to step S132, where the dispensing control board 100 executes a process of sending an error command to the main control board 50. Then, the process according to this flowchart is terminated.
On the other hand, if it is determined that the error flag is off, the process proceeds to step S133.

ステップS133では、払出制御基板100は、受信したコマンドが起動確認コマンドであるか否かの判断処理を実行する。
そして、受信したコマンドが起動確認コマンドであると判断したときは、ステップS134に進み、払出制御基板100は、受信した起動確認コマンドをそのままメイン制御基板50に送り返す処理を実行する(起動確認コマンドのACK応答)。
これに対し、受信したコマンドが起動確認コマンドでないと判断したときは、ステップS135に進む。
In step S133, the dispensing control board 100 executes a determination process to determine whether the received command is a startup confirmation command.
Then, when it is determined that the received command is a startup confirmation command, the process proceeds to step S134, and the dispensing control board 100 executes a process of sending the received startup confirmation command back to the main control board 50 as is (ACK response to the startup confirmation command).
On the other hand, if it is determined that the received command is not a start confirmation command, the process proceeds to step S135.

ステップS135に進むと、払出制御基板100は、受信したコマンドが投入要求コマンド、返却要求コマンド、又は払出要求コマンドのいずれかであるか否か、すなわち、演算要求コマンドであるか否かの判断処理を実行する。
そして、受信したコマンドが投入要求コマンド、返却要求コマンド、又は払出要求コマンドのいずれかであると判断したとき、すなわち、演算要求コマンドであると判断したときは、図10のステップS138に進む。
これに対し、受信したコマンドが投入要求コマンド、返却要求コマンド、及び払出要求コマンドのいずれでもないと判断したとき、すなわち、演算要求コマンドでないと判断したときは、ステップS136に進む。
When proceeding to step S135, the dispensing control board 100 executes a determination process to determine whether the received command is a deposit request command, a return request command, or a dispensing request command, i.e., whether it is a calculation request command.
If it is determined that the received command is either an input request command, a return request command, or a withdrawal request command, that is, if it is determined that the command is a calculation request command, the process proceeds to step S138 in FIG.
On the other hand, if it is determined that the received command is neither an input request command, a return request command nor a withdrawal request command, that is, if it is determined that the command is not a calculation request command, the process proceeds to step S136.

ここで、受信したコマンドが起動確認コマンドであれば、ステップS133で「Yes」となってステップS134に進み、また、受信したコマンドが演算要求コマンド(投入要求コマンド、返却要求コマンド、又は払出要求コマンド)であれば、ステップS135で「Yes」となって図10のステップS138に進む。このため、ステップS135で「No」となってステップS136に進むのは、図4の「内容」の欄に示す8種類のコマンドのうち、設定変更開始コマンド、設定変更終了コマンド、遊技開始+RT状態コマンド、又は遊技終了+遊技状態コマンドを受信したとき、すなわち、遊技情報コマンドを受信したときとなる。 If the received command is a start confirmation command, step S133 becomes "Yes" and the process proceeds to step S134, and if the received command is a calculation request command (deposit request command, return request command, or payout request command), step S135 becomes "Yes" and the process proceeds to step S138 in FIG. 10. Therefore, step S135 becomes "No" and the process proceeds to step S136 when a setting change start command, setting change end command, game start + RT state command, or game end + game state command is received out of the eight types of commands shown in the "Content" column in FIG. 4, i.e., when a game information command is received.

そして、払出制御基板100は、ステップS136では、受信した遊技情報コマンド(設定変更開始コマンド、設定変更終了コマンド、遊技開始+RT状態コマンド、又は遊技終了+遊技状態コマンド)を管理装置送信用コマンドバッファにセットする処理を実行し、次のステップS137では、受信した遊技情報コマンドをそのままメイン制御基板50に送り返す処理を実行する(遊技情報コマンドのACK応答)。そして、本フローチャートによる処理を終了する。
なお、ステップS136で遊技情報コマンドを管理装置送信用コマンドバッファにセットする処理が実行されると、この処理以降に実行される払出制御基板100上の割込み処理により、管理装置送信用コマンドバッファに記憶されている遊技情報コマンドが管理装置200に送信されることとなる。
Then, in step S136, the payout control board 100 executes a process of setting the received game information command (setting change start command, setting change end command, game start + RT status command, or game end + game status command) in the management device transmission command buffer, and in the next step S137, executes a process of sending the received game information command back to the main control board 50 as is (ACK response of the game information command). Then, the process according to this flowchart ends.
In addition, when the process of setting the game information command in the command buffer for transmission to the management device is executed in step S136, the game information command stored in the command buffer for transmission to the management device will be transmitted to the management device 200 by the interrupt process on the payout control board 100 executed after this process.

また、図10のステップS138に進むと、払出制御基板100は、受信したコマンドが投入要求コマンドであるか否かの判断処理を実行する。
そして、受信したコマンドが投入要求コマンドであると判断したときは、ステップS139に進み、払出制御基板100は、投入要求コマンドの後続コマンド(下位8ビット)を「03H(00000011B)」でマスクする処理を実行する。
上述したように、投入要求コマンドの後続コマンドは、ベット数を示す。また、ベット数の最大値は「3」に設定されており、3枚投入時には、投入要求コマンドの後続コマンドは「03H(00000011B)」となる。すなわち、ベット数の最大値は、投入要求コマンドの後続コマンドにおけるD0~D1ビットで表すことができる。
Also, when proceeding to step S138 in FIG. 10, the dispensing control board 100 executes a determination process as to whether or not the received command is a deposit request command.
Then, when it is determined that the received command is a deposit request command, the process proceeds to step S139, and the dispensing control board 100 executes a process of masking the subsequent command (lower 8 bits) of the deposit request command with "03H (00000011B)."
As mentioned above, the command following the input request command indicates the number of bets. The maximum number of bets is set to "3", and when three coins are input, the command following the input request command is "03H (00000011B)". In other words, the maximum number of bets can be represented by the D0 to D1 bits in the command following the input request command.

このため、ステップS139では、投入要求コマンドの後続コマンドを「03H(00000011B)」でマスクする処理を実行する。すなわち、投入要求コマンドの後続コマンドと「03H(00000011B)」とをAND演算する。
これにより、投入要求コマンドの後続コマンドにおけるD0~D1ビット以外のビットを「0」にすることができ、仮に投入要求コマンドの後続コマンドにおけるD2~D7ビットにノイズで「1」が入っても、これを「0」にすることができるので、投入時にクレジット数から「3」を超える数を誤って減算しないようにすることができる。
Therefore, in step S139, a process is executed to mask the command following the input request command with "03H (00000011B)." That is, an AND operation is performed on the command following the input request command and "03H (00000011B)."
This allows bits other than D0 to D1 in the command following the input request command to be set to "0", and even if noise causes bits D2 to D7 in the command following the input request command to contain a "1", this can be set to "0", preventing a number exceeding "3" from being erroneously subtracted from the number of credits when inputting credits.

また、ステップS139の処理を実行すると、ステップS140に進み、払出制御基板100は、「(クレジット数-ベット数)<0」か否か、すなわち、クレジット数がベット数未満であるか否かの判断処理を実行する。
そして、クレジット数がベット数未満であると判断したときは、ステップS141に進み、払出制御基板100は、投入不可コマンドをメイン制御基板50に送信する処理を実行する(投入要求コマンドのNAK応答)。そして、本フローチャートによる処理を終了する。
Furthermore, after executing the process of step S139, the process proceeds to step S140, where the payout control board 100 executes a process of determining whether or not "(number of credits-number of bets)<0", that is, whether or not the number of credits is less than the number of bets.
If it is determined that the number of credits is less than the number of bets, the process proceeds to step S141, where the payout control board 100 executes a process of sending a deposit prohibition command to the main control board 50 (NAK response to the deposit request command). Then, the process according to this flowchart ends.

これに対し、クレジット数がベット数以上であると判断したときは、払出制御基板100は、ステップS142に進み、クレジット数からベット数を減算する処理を実行し、次のステップS143では、投入復唱コマンドをメイン制御基板50に送信する(受信した投入要求コマンドをそのままメイン制御基板50に送り返す)処理を実行する(投入要求コマンドのACK応答)。そして、本フローチャートによる処理を終了する。 In contrast, if it is determined that the number of credits is equal to or greater than the number of bets, the payout control board 100 proceeds to step S142, where it executes a process of subtracting the number of bets from the number of credits, and in the next step S143, it executes a process of sending a deposit repeat command to the main control board 50 (sending the received deposit request command back to the main control board 50 as is) (ACK response to the deposit request command). Then, the process according to this flowchart ends.

また、ステップS138において、受信したコマンドが投入要求コマンドでないと判断したときは、ステップS144に進み、払出制御基板100は、受信したコマンドが払出要求コマンドであるか否かの判断処理を実行する。
そして、受信したコマンドが払出要求コマンドであると判断したときは、ステップS145に進み、払出制御基板100は、払出要求コマンドの後続コマンド(下位8ビット)を「0FH(00001111B)」でマスクする処理を実行する。
上述したように、払出要求コマンドの後続コマンドは、払出し枚数を示す。また、払出し枚数の最大値は「15」に設定されており、15枚払出し時には、払出要求コマンドの後続コマンドは「0EH(00001110B)」となる。すなわち、払出し枚数の最大値は、払出要求コマンドの後続コマンドにおけるD0~D3ビットで表すことができる。
Also, if it is determined in step S138 that the received command is not a deposit request command, the process proceeds to step S144, and the dispensing control board 100 executes a process to determine whether the received command is a dispensing request command or not.
Then, when it is determined that the received command is a payout request command, the process proceeds to step S145, and the payout control board 100 executes a process of masking the command following the payout request command (the lower 8 bits) with "0FH (00001111B)."
As described above, the command following the dispense request command indicates the number of coins to be dispensed. The maximum number of coins to be dispensed is set to "15", and when dispensing 15 coins, the command following the dispense request command is "0EH (00001110B)". In other words, the maximum number of coins to be dispensed can be represented by the D0 to D3 bits in the command following the dispense request command.

このため、ステップS145では、払出要求コマンドの後続コマンドを「0FH(00001111B)」でマスクする処理を実行する。すなわち、払出要求コマンドの後続コマンドと「0FH(00001111B)」とをAND演算する。これにより、払出要求コマンドの後続コマンドにおけるD0~D3ビット以外のビットを「0」にすることができ、仮に払出要求コマンドの後続コマンドにおけるD4~D7ビットにノイズで「1」が入っても、これを「0」にすることができるので、払出し時にクレジット数に「15」を超える数を誤って加算しないようにすることができる。 For this reason, in step S145, a process is executed to mask the command following the payout request command with "0FH (00001111B)." In other words, an AND operation is performed on the command following the payout request command and "0FH (00001111B)." This makes it possible to set bits other than D0 to D3 in the command following the payout request command to "0." Even if noise causes bits D4 to D7 in the command following the payout request command to contain a "1," this can be set to "0." This makes it possible to prevent a number exceeding "15" from being erroneously added to the amount of credits when paying out.

また、ステップS145の処理を実行すると、ステップS146に進み、払出制御基板100は、「(クレジット数+払出し枚数)>上限値」か否か、すなわち、クレジット数に払出し枚数を加算するとクレジット数の上限値(本実施形態では「10000」)を超えるか否かの判断処理を実行する。
そして、クレジット数に払出し枚数を加算するとクレジット数の上限値を超えると判断したときは、ステップS147に進み、払出制御基板100は、払出不可コマンドをメイン制御基板50に送信する処理を実行する(払出要求コマンドのNAK応答)。そして、本フローチャートによる処理を終了する。
Furthermore, after executing the processing of step S145, the process proceeds to step S146, and the payout control board 100 executes a process to determine whether or not "(number of credits + number of payouts) > upper limit", that is, whether or not the number of credits plus the number of payouts exceeds the upper limit of the number of credits ("10,000" in this embodiment).
If it is determined that the credit count will exceed the upper limit when the payout number is added to the credit count, the process proceeds to step S147, where the payout control board 100 executes a process of sending a payout disable command to the main control board 50 (NAK response to the payout request command). Then, the process according to this flowchart ends.

これに対し、クレジット数に払出し枚数を加算してもクレジット数の上限値を超えないと判断したときは、払出制御基板100は、ステップS148に進み、クレジット数に払出し枚数を加算する処理を実行し、次のステップS149では、払出復唱コマンドをメイン制御基板50に送信する(受信した払出要求コマンドをそのままメイン制御基板50に送り返す)処理を実行する(払出要求コマンドのACK応答)。そして、本フローチャートによる処理を終了する。 In contrast, if it is determined that adding the payout number to the credit count will not exceed the upper limit of the credit count, the payout control board 100 proceeds to step S148 and executes the process of adding the payout number to the credit count, and in the next step S149, executes the process of sending a payout repeat command to the main control board 50 (sending the received payout request command back to the main control board 50 as is) (ACK response to the payout request command). Then, the process according to this flowchart ends.

また、ステップS144において、受信したコマンドが払出要求コマンドでないと判断したときは、ステップS150に進み、払出制御基板100は、受信したコマンドが返却要求コマンドであるか否かの判断処理を実行する。
そして、受信したコマンドが返却要求コマンドであると判断したときは、ステップS151に進み、払出制御基板100は、返却要求コマンドの後続コマンド(下位8ビット)を「03H(00000011B)」でマスクする処理を実行する。
上述したように、返却要求コマンドの後続コマンドは、返却枚数を示す。また、ベット数の最大値は「3」であるから、返却枚数の最大値も「3」となる。そして、3枚返却時には、返却要求コマンドの後続コマンドは「03H(00000011B)」となる。すなわち、返却枚数の最大値は、ベット数の最大値と同様に、返却要求コマンドの後続コマンドにおけるD0~D1ビットで表すことができる。
Also, if it is determined in step S144 that the received command is not a dispensing request command, the process proceeds to step S150, and the dispensing control board 100 executes a process to determine whether the received command is a return request command or not.
Then, when it is determined that the received command is a return request command, the process proceeds to step S151, and the dispensing control board 100 executes a process of masking the command following the return request command (the lowest 8 bits) with "03H (00000011B)."
As mentioned above, the command following the return request command indicates the number of coins to be returned. Also, since the maximum number of bets is "3", the maximum number of coins to be returned is also "3". When returning three coins, the command following the return request command is "03H (00000011B)". In other words, the maximum number of coins to be returned can be represented by the D0 to D1 bits in the command following the return request command, just like the maximum number of bets.

このため、ステップS151では、返却要求コマンドの後続コマンドを「03H(00000011B)」でマスクする処理を実行する。すなわち、返却要求コマンドの後続コマンドと「03H(00000011B)」とをAND演算する。これにより、返却要求コマンドの後続コマンドにおけるD0~D1ビット以外のビットを「0」にすることができ、仮に返却要求コマンドの後続コマンドにおけるD2~D7ビットにノイズで「1」が入っても、これを「0」にすることができるので、返却時にクレジット数に「3」を超える数を誤って加算しないようにすることができる。 For this reason, in step S151, a process is performed to mask the command following the return request command with "03H (00000011B)." In other words, an AND operation is performed on the command following the return request command and "03H (00000011B)." This makes it possible to set bits other than D0 to D1 in the command following the return request command to "0." Even if noise causes bits D2 to D7 in the command following the return request command to contain a "1," this can be set to "0." This makes it possible to prevent a number greater than "3" from being erroneously added to the number of credits when returning the credits.

また、ステップS151の処理を実行すると、ステップS152に進み、払出制御基板100は、「(クレジット数+返却枚数)>上限値」か否か、すなわち、クレジット数に返却枚数を加算するとクレジット数の上限値(本実施形態では「10000」)を超えるか否かの判断処理を実行する。
そして、クレジット数に返却枚数を加算するとクレジット数の上限値を超えると判断したときは、ステップS153に進み、払出制御基板100は、返却不可コマンドをメイン制御基板50に送信する処理を実行する(返却要求コマンドのNAK応答)。そして、本フローチャートによる処理を終了する。
Also, after executing the processing of step S151, the process proceeds to step S152, and the payout control board 100 executes a determination process as to whether "(number of credits + number of returned coins) > upper limit", that is, whether the number of credits plus the number of returned coins exceeds the upper limit of the number of credits ("10,000" in this embodiment).
If it is determined that adding the number of credits to the number of credits to be returned will exceed the upper limit of the number of credits, the process proceeds to step S153, where the payout control board 100 executes a process of sending a non-returnable command to the main control board 50 (a NAK response to the return request command), and the process according to this flowchart ends.

これに対し、クレジット数に返却枚数を加算してもクレジット数の上限値を超えないと判断したときは、払出制御基板100は、ステップS154に進み、クレジット数に返却枚数を加算する処理を実行し、次のステップS155では、返却復唱コマンドをメイン制御基板50に送信する(受信した返却要求コマンドをそのままメイン制御基板50に送り返す)処理を実行する(返却要求コマンドのACK応答)。そして、本フローチャートによる処理を終了する。
なお、本フローチャートによる処理を終了すると、図8に示すステップS111の処理に進む。
On the other hand, if it is determined that the credit count will not exceed the upper limit even if the return number is added to the credit count, the payout control board 100 proceeds to step S154, where it executes a process of adding the return number to the credit count, and in the next step S155, it executes a process of sending a return readback command to the main control board 50 (sending the received return request command back to the main control board 50 as is) (ACK response to the return request command).Then, the process according to this flowchart ends.
When the process according to this flowchart is completed, the process proceeds to step S111 shown in FIG.

図11は、図8のステップS119における貸出処理のサブルーチンを示している。なお、図11において「貸出処理1」としているのは、図8のステップS119における貸出処理の一部の処理であることを示している。当該貸出処理の他の一部については、後述する図23(「貸出処理2」と称する。)で図示している。
図8のステップS118で貸出要求コマンドを受信したと判断すると、図8のステップS119に進む。これにより、図11の貸出処理を開始する。また、貸出処理では、ステップS161において、払出制御基板100は、貸出復唱コマンドを管理装置200に送信する(受信した貸出要求コマンドをそのまま管理装置200に送り返す)処理を実行する(貸出要求コマンドのACK応答)。そして、次のステップS162に進む。
Fig. 11 shows a subroutine of the lending process in step S119 in Fig. 8. Note that "lending process 1" in Fig. 11 indicates a part of the lending process in step S119 in Fig. 8. Another part of the lending process is shown in Fig. 23 (referred to as "lending process 2") described later.
If it is determined in step S118 of Fig. 8 that a loan request command has been received, the process proceeds to step S119 of Fig. 8. This starts the loan process of Fig. 11. In the loan process, in step S161, the payout control board 100 executes a process of sending a loan repeat command to the management device 200 (sending the received loan request command back to the management device 200 as is) (ACK response to the loan request command). Then, the process proceeds to the next step S162.

ステップS162では、払出制御基板100は、貸出復唱コマンドの送信を完了したか否かの判断処理を「Yes」となるまで繰り返し実行し、ステップS162で「Yes」となると、ステップS163に進む。
ステップS163に進むと、払出制御基板100は、管理装置コマンドを受信したか否かの判断処理を実行する。上述したように、管理装置コマンドは、管理装置200から払出制御基板100に送信されるコマンドの総称である。
そして、ステップS163において、管理装置コマンドを受信したと判断したときは、ステップS164に進み、受信した管理装置コマンドが貸出指示コマンドであるか否かの判断処理を実行する。
In step S162, the dispensing control board 100 repeatedly executes the process of determining whether or not the transmission of the loan replay command has been completed until the result is "Yes", and when the result is "Yes" in step S162, the dispensing control board 100 proceeds to step S163.
When the process proceeds to step S163, the dispensing control board 100 executes a process of determining whether or not a management device command has been received. As described above, a management device command is a general term for a command sent from the management device 200 to the dispensing control board 100.
If it is determined in step S163 that a management apparatus command has been received, the process proceeds to step S164, where a determination process is performed as to whether or not the received management apparatus command is a lending instruction command.

これに対し、ステップS163において、管理装置コマンドを受信していないと判断したときは、ステップS168に進み、払出制御基板100は、タイムアウト(貸出復唱コマンドを送信してから所定時間が経過した)か否かの判断処理を実行する。
ここで、ステップS168において、タイムアウトであると判断したときは、ステップS169に進み、払出制御基板100は、エラーフラグをセットする。そして、本フローチャートによる処理を終了する。
これに対し、ステップS168において、タイムアウトでないと判断したときは、再度、ステップS163の処理を実行する。
On the other hand, if it is determined in step S163 that the management device command has not been received, the process proceeds to step S168, and the dispensing control board 100 executes a determination process to determine whether a timeout has occurred (a specified time has elapsed since the loan repeat command was sent).
If it is determined in step S168 that a timeout has occurred, the process proceeds to step S169, where the dispensing control board 100 sets an error flag, and the process according to this flowchart is then terminated.
On the other hand, if it is determined in step S168 that the timeout has not occurred, the process of step S163 is executed again.

また、ステップS164において、受信した管理装置コマンドが貸出指示コマンドであると判断したときは、ステップS165に進み、払出制御基板100は、貸出し枚数(貸出要求コマンドの後続コマンド(下位8ビット)と貸出指示コマンドの後続コマンド(下位8ビット)とが一致するか否かの判断処理を実行する。
ここで、ステップS165において、一致しないと判断したときは、次のステップS166に進み、払出制御基板100は、貸出指示コマンドの後続コマンド(下位8ビット)を払出し枚数としてRWM103の所定の記憶領域に記憶(保存)する。そして、次のステップS167に進む。
これに対し、ステップS165において、一致すると判断したときは、ステップS166をスキップして、ステップS167に進む。
Also, in step S164, when it is determined that the received management device command is a loan instruction command, the process proceeds to step S165, and the dispensing control board 100 executes a determination process as to whether or not the number of sheets to be loaned (the subsequent command (lower 8 bits) of the loan request command and the subsequent command (lower 8 bits) of the loan instruction command match).
If it is determined in step S165 that they do not match, the process proceeds to the next step S166, where the dispensing control board 100 stores (preserves) the command following the lending instruction command (lower 8 bits) as the number of cards to be dispensed in a specified memory area of the RWM 103. Then, the process proceeds to the next step S167.
On the other hand, if it is determined in step S165 that they match, step S166 is skipped and the process proceeds to step S167.

ステップS167に進むと、払出制御基板100は、クレジット数に貸出し枚数を加算する処理を実行する。そして、本フローチャートによる処理を終了する。
また、ステップS164において、受信した管理装置コマンドが貸出指示コマンドでないと判断したときは、ステップS169に進み、払出制御基板100は、エラーフラグをセットする。そして、本フローチャートによる処理を終了する。
なお、ステップS169でエラーフラグがセットされると、この処理以降に実行される図9のメイン制御コマンド解析処理のステップS131で「Yes」と判断されて、ステップS132に進む。そして、メイン制御基板50にエラーコマンドが送信される。
In step S167, the payout control board 100 executes a process of adding the loaned number to the credit number, and then ends the process according to this flowchart.
Also, when it is determined in step S164 that the received management device command is not a lending instruction command, the process proceeds to step S169, where the dispensing control board 100 sets an error flag, and the process according to this flowchart is then terminated.
If the error flag is set in step S169, the process proceeds to step S132 in the main control command analysis process of FIG.

図12は、図8のステップS117における計数処理のサブルーチンを示している。なお、図12において「計数処理1」としているのは、図8のステップS117における計数処理の一部の処理であることを示している。当該計数処理の他の一部については、後述する図24(「計数処理2」と称する。)で図示している。
図8のステップS116で計数要求フラグがオンであると判断すると、図8のステップS117に進む。これにより、図12の計数処理を開始する。また、計数処理では、ステップS181において、払出制御基板100は、下位計数要求コマンドを管理装置200に送信する処理を実行する。そして、次のステップS182に進む。
Fig. 12 shows a subroutine of the counting process in step S117 in Fig. 8. Note that "counting process 1" in Fig. 12 indicates a part of the counting process in step S117 in Fig. 8. Another part of the counting process is shown in Fig. 24 (referred to as "counting process 2") described later.
If it is determined in step S116 of Fig. 8 that the counting request flag is on, the process proceeds to step S117 of Fig. 8. This starts the counting process of Fig. 12. Also, in the counting process, in step S181, the dispensing control board 100 executes a process of sending a lower-level counting request command to the management device 200. Then, the process proceeds to the next step S182.

ステップS182では、払出制御基板100は、下位計数要求コマンドの送信を完了したか否かの判断処理を「Yes」となるまで繰り返し実行し、ステップS182で「Yes」となると、ステップS183に進む。
ステップS183に進むと、払出制御基板100は、管理装置コマンドを受信したか否かの判断処理を実行する。
そして、ステップS183において、管理装置コマンドを受信したと判断したときは、ステップS184に進み、受信したコマンドと送信したコマンドとが一致するか否かの判断処理を実行する。すなわち、送信した下位計数要求コマンドがそのまま管理装置200から送り返された(下位計数復唱コマンドを受信した)か否かの判断処理を実行する。
In step S182, the dispensing control board 100 repeatedly executes the process of determining whether or not the transmission of the lower-level counting request command has been completed until the result is "Yes", and when the result is "Yes" in step S182, the dispensing control board 100 proceeds to step S183.
When proceeding to step S183, the dispensing control board 100 executes a determination process as to whether or not a management device command has been received.
If it is determined in step S183 that a management device command has been received, the process proceeds to step S184, where a determination process is performed as to whether the received command matches the transmitted command, i.e., whether the transmitted lower-order count request command has been returned from the management device 200 as is (the lower-order count repeat command has been received).

これに対し、ステップS183において、管理装置コマンドを受信していないと判断したときは、ステップS192に進み、払出制御基板100は、タイムアウト(下位計数要求コマンドを送信してから所定時間が経過した)か否かの判断処理を実行する。
ここで、ステップS192において、タイムアウトであると判断したときは、ステップS194に進み、払出制御基板100は、エラーフラグをセットする。そして、本フローチャートによる処理を終了する。
これに対し、ステップS192において、タイムアウトでないと判断したときは、再度、ステップS183の処理を実行する。
On the other hand, if it is determined in step S183 that the management device command has not been received, the process proceeds to step S192, and the dispensing control board 100 executes a determination process to determine whether a timeout has occurred (a specified time has elapsed since the lower-level counting request command was sent).
If it is determined in step S192 that a timeout has occurred, the process proceeds to step S194, where the dispensing control board 100 sets an error flag, and the process according to this flowchart is then terminated.
On the other hand, if it is determined in step S192 that the timeout has not occurred, the process of step S183 is executed again.

また、ステップS184において、受信したコマンドと送信したコマンドとが一致する(送信した下位計数要求コマンドがそのまま管理装置200から送り返された)と判断したときは、ステップS185に進み、払出制御基板100は、上位計数要求コマンドを管理装置200に送信する処理を実行する。そして、次のステップS186に進む。
これに対し、ステップS184において、受信したコマンドと送信したコマンドとが一致しないと判断したときは、ステップS194に進み、払出制御基板100は、エラーフラグをセットする。そして、本フローチャートによる処理を終了する。
Also, in step S184, when it is determined that the received command matches the transmitted command (the transmitted lower-order count request command is returned as is from the management device 200), the process proceeds to step S185, where the dispensing control board 100 executes a process of transmitting the upper-order count request command to the management device 200. Then, the process proceeds to the next step S186.
On the other hand, if it is determined in step S184 that the received command does not match the transmitted command, the process proceeds to step S194, where the dispensing control board 100 sets an error flag, and the process according to this flowchart is then terminated.

ステップS186に進むと、払出制御基板100は、上位計数要求コマンドの送信を完了したか否かの判断処理を「Yes」となるまで繰り返し実行し、ステップS186で「Yes」となると、ステップS187に進む。
ステップS187に進むと、払出制御基板100は、管理装置コマンドを受信したか否かの判断処理を実行する。
そして、ステップS187において、管理装置コマンドを受信したと判断したときは、ステップS188に進み、受信したコマンドと送信したコマンドとが一致するか否かの判断処理を実行する。すなわち、送信した上位計数要求コマンドがそのまま管理装置200から送り返された(上位計数復唱コマンドを受信した)か否かの判断処理を実行する。
When proceeding to step S186, the dispensing control board 100 repeatedly executes the process of determining whether or not the transmission of the higher-level count request command has been completed until the result is "Yes", and when the result is "Yes" in step S186, the process proceeds to step S187.
When proceeding to step S187, the dispensing control board 100 executes a determination process as to whether or not a management device command has been received.
If it is determined in step S187 that a management device command has been received, the process proceeds to step S188, where a determination process is performed as to whether the received command matches the transmitted command, i.e., whether the transmitted higher-order count request command has been returned from the management device 200 as is (the higher-order count repeat command has been received).

これに対し、ステップS187において、管理装置コマンドを受信していないと判断したときは、ステップS193に進み、払出制御基板100は、タイムアウト(上位計数要求コマンドを送信してから所定時間が経過した)か否かの判断処理を実行する。
ここで、ステップS193において、タイムアウトであると判断したときは、ステップS194に進み、払出制御基板100は、エラーフラグをセットする。そして、本フローチャートによる処理を終了する。
これに対し、ステップS193において、タイムアウトでないと判断したときは、再度、ステップS187の処理を実行する。
On the other hand, if it is determined in step S187 that the management device command has not been received, the process proceeds to step S193, and the dispensing control board 100 executes a process to determine whether a timeout has occurred (a specified time has elapsed since the higher-level counting request command was sent).
If it is determined in step S193 that a timeout has occurred, the process proceeds to step S194, where the payout control board 100 sets an error flag, and the process according to this flowchart is then terminated.
On the other hand, if it is determined in step S193 that the timeout has not occurred, the process of step S187 is executed again.

また、ステップS188において、受信したコマンドと送信したコマンドとが一致する(送信した上位計数要求コマンドがそのまま管理装置200から送り返された)と判断したときは、ステップS189に進み、払出制御基板100は、計数指示コマンドを管理装置200に送信する処理を実行する。そして、次のステップS190に進む。
これに対し、ステップS188において、受信したコマンドと送信したコマンドとが一致しないと判断したときは、ステップS194に進み、払出制御基板100は、エラーフラグをセットする。そして、本フローチャートによる処理を終了する。
Also, in step S188, when it is determined that the received command matches the transmitted command (the transmitted higher-level count request command is returned as is from the management device 200), the process proceeds to step S189, where the dispensing control board 100 executes a process of transmitting a count instruction command to the management device 200. Then, the process proceeds to the next step S190.
On the other hand, if it is determined in step S188 that the received command does not match the transmitted command, the process proceeds to step S194, where the dispensing control board 100 sets an error flag, and the process according to this flowchart is then terminated.

ステップS190に進むと、払出制御基板100は、計数指示コマンドの送信を完了したか否かの判断処理を「Yes」となるまで繰り返し実行し、ステップS190で「Yes」となると、ステップS191に進む。
ステップS191に進むと、払出制御基板100は、クレジット数をクリアする(「0」にする)処理を実行する。そして、本フローチャートによる処理を終了する。
なお、ステップS194でエラーフラグがセットされると、この処理以降に実行される図9のメイン制御コマンド解析処理のステップS131で「Yes」と判断されて、ステップS132に進む。そして、メイン制御基板50にエラーコマンドが送信される。
When proceeding to step S190, the dispensing control board 100 repeatedly executes the process of determining whether or not the transmission of the count instruction command has been completed until the result is "Yes", and when the result is "Yes" in step S190, the process proceeds to step S191.
When the process proceeds to step S191, the payout control board 100 executes a process of clearing the number of credits (setting it to "0"), and then ends the process according to this flowchart.
If the error flag is set in step S194, the process proceeds to step S132 in the main control command analysis process of FIG.

図13は、メイン制御基板50におけるメインルーチンの処理の流れを示すフローチャートである。
メイン制御基板50においては、電源が投入されると、ステップS201において、電源投入処理が行われる。そして、次のステップS202に進む。
ステップS202に進むと、設定キースイッチ12がオンであるか否かの判断処理を実行する。
FIG. 13 is a flowchart showing the flow of processing of a main routine in the main control board 50.
When power is applied to the main control board 50, a power-on process is performed in step S201. Then, the process proceeds to the next step S202.
In step S202, a determination is made as to whether the setting key switch 12 is on.

ここで、ステップS202において、設定キースイッチ12がオンであると判断したときは、ステップS203に進み、設定変更処理を実行する。そして、設定変更処理が終了すると、ステップS211に進む。
これに対し、ステップS202において、設定キースイッチ12がオフであると判断したときは、ステップS204に進み、遊技復帰処理を実行する。そして、遊技復帰処理が終了すると、ステップS211に進む。
ステップS211に進むと、3枚ベット又は1枚ベットの判断処理を実行する。そして、3枚ベットと判断したときは、ステップS205に進み、1枚ベットと判断したときは、ステップS206に進む。
If it is determined in step S202 that the setting key switch 12 is on, the process proceeds to step S203, where a setting change process is executed, and when the setting change process is completed, the process proceeds to step S211.
On the other hand, if it is determined in step S202 that the setting key switch 12 is off, the process proceeds to step S204, where a game return process is executed. Then, when the game return process is completed, the process proceeds to step S211.
When the process proceeds to step S211, a process of determining whether to bet three coins or one coin is executed. If it is determined that a three coin bet is to be made, the process proceeds to step S205, and if it is determined that a one coin bet is to be made, the process proceeds to step S206.

ステップS205に進むと、3枚ベット処理(図16)を実行する。この処理は、3ベットスイッチ40bの操作に基づいて、クレジットされている電子メダルを3枚ベットする処理である。3枚ベット処理の詳細は後述する。そして、3枚ベット処理が終了すると、ステップS212に進む。
ステップS206に進むと、1枚ベット処理(図17)を実行する。この処理は、1ベットスイッチ40aの操作に基づいて、クレジットされている電子メダルを1枚ベットする処理である。1枚ベット処理の詳細は後述する。そして、1枚ベット処理が終了すると、ステップS212に進む。
When the process proceeds to step S205, a three-bet process (FIG. 16) is executed. This process is a process for betting three of the credited electronic medals based on the operation of the three-bet switch 40b. The three-bet process will be described in detail later. Then, when the three-bet process is completed, the process proceeds to step S212.
When the process proceeds to step S206, the one-coin bet process (FIG. 17) is executed. This process is a process for betting one of the credited electronic medals based on the operation of the one-coin bet switch 40a. The one-coin bet process will be described in detail later. Then, when the one-coin bet process is completed, the process proceeds to step S212.

ステップS212に進むと、スタート又はキャンセルの判断処理を実行する。そして、スタートと判断したときは、ステップS207に進み、キャンセルと判断したときは、ステップS210に進む。
ステップS207に進むと、遊技開始処理(図18)を実行する。この処理は、スタートスイッチ41の操作に基づいて、遊技を開始する処理である。遊技開始処理の詳細は後述する。そして、遊技開始処理が終了すると、次のステップS208に進む。
When the process proceeds to step S212, a start or cancel decision process is executed. If the process determines that the process should be started, the process proceeds to step S207, and if the process determines that the process should be cancelled, the process proceeds to step S210.
When the process proceeds to step S207, a game start process (FIG. 18) is executed. This process is a process for starting a game based on the operation of the start switch 41. The game start process will be described in detail later. Then, when the game start process ends, the process proceeds to the next step S208.

ステップS208では、遊技終了処理(図19)を実行する。この処理は、ストップスイッチ42が操作され、すべてのリール31の回転が停止したことに基づいて、遊技を終了する処理である。遊技終了処理の詳細は後述する。そして、遊技終了処理が終了すると、次のステップS209に進み、払出処理(図20)を実行する。この処理は、役の入賞に基づいて、電子メダルを払い出す処理である。そして、払出処理が終了すると、ステップS211に戻る。
ステップS210に進むと、返却処理(図21)を実行する。この処理は、キャンセルスイッチ46の操作に基づいて、ベットされた電子メダルをクレジットに戻す処理である。そして、返却処理が終了すると、ステップS211に戻る。
In step S208, a game end process (FIG. 19) is executed. This process is executed when the stop switch 42 is operated and the rotation of all the reels 31 is stopped, and the game is ended. The game end process will be described in detail later. Then, when the game end process is ended, the process proceeds to the next step S209, and a payout process (FIG. 20) is executed. This process is executed to pay out electronic medals based on the winning combination. Then, when the payout process is ended, the process returns to step S211.
When the process proceeds to step S210, a return process (FIG. 21) is executed. This process is a process for returning the bet electronic medals to credits based on the operation of the cancel switch 46. Then, when the return process is completed, the process returns to step S211.

図14は、メイン制御基板50及び払出制御基板100における電源投入処理の流れを示すフローチャートである。
図14中、左側のフローチャートは、メイン制御基板50における電源投入処理の流れを示し、右側のフローチャートは、払出制御基板100における電源投入処理1の流れを示す。なお、「電源投入処理1」としているのは、図14では、払出制御基板100における電源投入処理の一部の処理であることを示している。当該電源投入処理の他の一部については、後述する図22(「電源投入処理2」と称する。)で図示している。また、図14中、左右のフローチャートの間の矢印は、電源投入処理時にメイン制御基板50と払出制御基板100との間で送受信されるコマンドの送信方向を示す。
そして、この図14及び後述する図15~図21は、メイン制御基板50と払出制御基板100との間のコマンド送受信状況を示すものである。
また、後述する図23~図25は、払出制御基板100と管理装置200との間のコマンド送受信状況を示すものである。
Figure 14 is a flowchart showing the flow of the power-on processing in the main control board 50 and the dispensing control board 100.
In FIG. 14, the flowchart on the left shows the flow of the power-on process in the main control board 50, and the flowchart on the right shows the flow of power-on process 1 in the dispensing control board 100. Note that "power-on process 1" in FIG. 14 indicates that this is a part of the power-on process in the dispensing control board 100. Another part of the power-on process is illustrated in FIG. 22 (referred to as "power-on process 2"), which will be described later. Also, in FIG. 14, the arrows between the left and right flowcharts indicate the transmission direction of commands sent and received between the main control board 50 and the dispensing control board 100 during the power-on process.
14 and FIGS. 15 to 21 described later show the command transmission and reception status between the main control board 50 and the dispensing control board 100.
23 to 25, which will be described later, show the command transmission and reception status between the dispensing control board 100 and the management device 200.

スロットマシン10の電源が投入されると、電源基板150からメイン制御基板50及び払出制御基板100に電力が供給される。そして、メイン制御基板50上のプログラムが起動するとともに、払出制御基板100上のプログラムが起動する。このとき、メイン制御基板50において電源投入処理が実行されるとともに、払出制御基板100において電源投入処理1が実行される。 When the slot machine 10 is powered on, power is supplied from the power supply board 150 to the main control board 50 and the payout control board 100. Then, the program on the main control board 50 starts, and the program on the payout control board 100 starts. At this time, the power-on process is executed on the main control board 50, and power-on process 1 is executed on the payout control board 100.

まず、図14中の左側に示すメイン制御基板50における電源投入処理について説明する。図14中の左側に示すフローチャートは、図13のステップS201における電源投入処理のサブルーチンを示している。
ステップS301において、メイン制御基板50は、初期化処理を実行する。そして、初期化処理が終了すると、次のステップS302に進む。
ステップS302に進むと、メイン制御基板50は、起動確認コマンドを払出制御基板100に送信する処理を実行する。そして、次のステップS303に進む。
ステップS303では、メイン制御基板50は、応答待機処理を実行する。この処理は、払出制御基板100による起動確認コマンドのACK応答を待つ処理である。
First, a description will be given of the power-on process in the main control board 50 shown on the left side of Fig. 14. The flow chart shown on the left side of Fig. 14 shows the subroutine of the power-on process in step S201 of Fig. 13.
In step S301, the main control board 50 executes an initialization process. When the initialization process is completed, the process proceeds to the next step S302.
When the process proceeds to step S302, the main control board 50 executes a process of transmitting a startup confirmation command to the dispensing control board 100. Then, the process proceeds to the next step S303.
In step S303, the main control board 50 executes a response waiting process. This process waits for an ACK response to the start-up confirmation command from the dispensing control board 100.

そして、送信した起動確認コマンドがそのまま払出制御基板100から送り返される(ACK応答がある)と、本フローチャートによる処理を終了する。なお、本フローチャートによる処理を終了すると、図13に示すステップS202の処理に進む。
これに対し、起動確認コマンドを送信してから所定時間が経過しても起動確認コマンドのACK応答がない(タイムアウトとなる)か、又は払出制御基板100からエラーコマンドが送信される(NAK応答がある)と、ステップS304に進み、メイン制御基板50は、再送カウンタを減算する処理を実行する。
再送カウンタは、起動確認コマンドの再送回数をカウントするためのカウンタであり、起動確認コマンドの最初の送信時に初期値として「2」が設定される。
なお、再送カウンタの初期値は「2」に限らず、たとえば「3」としてもよい。
Then, when the transmitted start confirmation command is returned as is from the dispensing control board 100 (ACK response is received), the process according to this flowchart ends. When the process according to this flowchart ends, the process proceeds to step S202 shown in FIG.
In contrast, if a predetermined time has elapsed since the startup confirmation command was sent and there is no ACK response to the startup confirmation command (a timeout occurs), or an error command is sent from the dispensing control board 100 (a NAK response is received), the process proceeds to step S304, and the main control board 50 executes a process to decrement the retransmission counter.
The resend counter is a counter for counting the number of times the start confirmation command is resent, and is set to an initial value of "2" when the start confirmation command is first transmitted.
The initial value of the retransmission counter is not limited to "2", but may be, for example, "3".

また、再送カウンタの減算処理が終了すると、次のステップS305に進み、メイン制御基板50は、再送カウンタが「0」か否かの判断処理を実行する。
ここで、再送カウンタが「0」であると判断したときは、次のステップS306に進み、メイン制御基板50は、エラー処理を実行する。
これに対し、再送カウンタが「0」でないと判断したときは、再度、ステップS302を実行する。
Furthermore, when the process of decrementing the retransmission counter is completed, the process proceeds to the next step S305, where the main control board 50 executes a process of determining whether the retransmission counter is "0" or not.
If it is determined that the retransmission counter is "0", the process proceeds to the next step S306, where the main control board 50 executes error processing.
On the other hand, if it is determined that the retransmission counter is not "0", step S302 is executed again.

次に、図14中の右側に示す払出制御基板100における電源投入処理1について説明する。
ステップS401において、払出制御基板100は、初期化処理を実行する。そして、初期化処理が終了すると、次のステップS402に進む。
ステップS402では、払出制御基板100は、コマンド受信処理を実行する。この処理は、メイン制御基板50から送信される起動確認コマンドを受信する処理である。そして、起動確認コマンドを受信すると、次のステップS403に進み、払出制御基板100は、受信した起動確認コマンドをそのままメイン制御基板50に送り返す処理を実行する(起動確認コマンドのACK応答)。そして、受信した起動確認コマンドをそのままメイン制御基板50に送り返すと、本フローチャートによる処理を終了する。
Next, the power-on process 1 in the dispensing control board 100 shown on the right side of Figure 14 will be described.
In step S401, the dispensing control board 100 executes an initialization process. Then, when the initialization process is completed, the process proceeds to the next step S402.
In step S402, the dispensing control board 100 executes a command reception process. This process is a process for receiving a startup confirmation command sent from the main control board 50. Then, when the startup confirmation command is received, the process proceeds to the next step S403, where the dispensing control board 100 executes a process for sending the received startup confirmation command back to the main control board 50 as is (ACK response to the startup confirmation command). Then, when the received startup confirmation command is sent back to the main control board 50 as is, the process according to this flowchart is terminated.

図15は、メイン制御基板50及び払出制御基板100における設定変更処理の流れを示すフローチャートである。
図15中、左側のフローチャートは、メイン制御基板50における設定変更処理の流れを示し、右側のフローチャートは、払出制御基板100における設定変更処理の流れを示す。また、図15中、左右のフローチャートの間の矢印は、設定変更処理時にメイン制御基板50と払出制御基板100との間で送受信されるコマンドの送信方向を示す。
Figure 15 is a flowchart showing the flow of setting change processing in the main control board 50 and the dispensing control board 100.
In Fig. 15, the flowchart on the left side shows the flow of the setting change processing in the main control board 50, and the flowchart on the right side shows the flow of the setting change processing in the dispensing control board 100. Also, in Fig. 15, the arrows between the left and right flowcharts show the transmission direction of commands transmitted and received between the main control board 50 and the dispensing control board 100 during the setting change processing.

まず、図15中の左側に示すメイン制御基板50における設定変更処理について説明する。図15中の左側に示すフローチャートは、図13のステップS203における設定変更処理のサブルーチンを示している。
電源投入時に設定キースイッチ12がオンであると、メイン制御基板50は、設定変更処理を実行する。この設定変更処理では、ステップS311において、設定変更開始コマンドを払出制御基板100に送信する処理を実行する。そして、次のステップS312に進む。
ステップS312では、メイン制御基板50は、応答待機処理を実行する。この処理は、払出制御基板100による設定変更開始コマンドのACK応答を待つ処理である。
ここで、送信した設定変更開始コマンドがそのまま払出制御基板100から送り返されると、メイン制御基板50は、払出制御基板100による設定変更開始コマンドのACK応答があったと判断し、ステップS203の設定値変更中処理に進む。この処理は、設定スイッチ13が操作されるごとに、設定値の表示を「1」→「2」→・・・→「6」→「1」→・・・と切り替えていき、スタートスイッチ41が操作されると、表示中の設定値で確定させる処理である。そして、設定値変更中処理が終了すると、ステップS313に進む。
First, a description will be given of the setting change processing in the main control board 50 shown on the left side of Fig. 15. The flow chart shown on the left side of Fig. 15 shows the subroutine of the setting change processing in step S203 of Fig. 13.
If the setting key switch 12 is on when the power is turned on, the main control board 50 executes a setting change process. In this setting change process, in step S311, a process is executed to send a setting change start command to the payout control board 100. Then, the process proceeds to the next step S312.
In step S312, the main control board 50 executes a response waiting process. This process waits for an ACK response to the setting change start command from the payout control board 100.
Here, when the transmitted setting change start command is sent back as is from the dispensing control board 100, the main control board 50 judges that there has been an ACK response to the setting change start command from the dispensing control board 100, and proceeds to the setting value change in progress processing in step S203. This processing switches the display of the setting value from "1" → "2" → ... → "6" → "1" → ... each time the setting switch 13 is operated, and when the start switch 41 is operated, the displayed setting value is confirmed. Then, when the setting value change in progress processing ends, the processing proceeds to step S313.

これに対し、設定変更開始コマンドを送信してから所定時間が経過しても設定変更開始コマンドのACK応答がない(タイムアウトとなる)か、又は払出制御基板100からエラーコマンドが送信される(NAK応答がある)と、ステップS311に戻り、メイン制御基板50は、再度、設定変更開始コマンドを払出制御基板100に送信する処理を実行する。
また、ステップS313に進むと、メイン制御基板50は、設定変更終了コマンドを払出制御基板100に送信する処理を実行する。そして、次のステップS314に進む。
In contrast, if a predetermined time has passed since the setting change start command was sent and there is no ACK response to the setting change start command (a timeout occurs), or an error command is sent from the dispensing control board 100 (a NAK response is received), the process returns to step S311 and the main control board 50 again executes the process of sending the setting change start command to the dispensing control board 100.
Also, when the process proceeds to step S313, the main control board 50 executes a process of transmitting a setting change end command to the dispensing control board 100. Then, the process proceeds to the next step S314.

ステップS314では、メイン制御基板50は、応答待機処理を実行する。この処理は、払出制御基板100による設定変更終了コマンドのACK応答を待つ処理である。
ここで、送信した設定変更終了コマンドがそのまま払出制御基板100から送り返されると、メイン制御基板50は、払出制御基板100による設定変更終了コマンドのACK応答があったと判断し、本フローチャートによる処理を終了する。なお、本フローチャートによる処理を終了すると、図13に示すステップS211の処理に進む。
これに対し、設定変更終了コマンドを送信してから所定時間が経過しても設定変更終了コマンドのACK応答がない(タイムアウトとなる)か、又は払出制御基板100からエラーコマンドが送信される(NAK応答がある)と、ステップS313に戻り、メイン制御基板50は、再度、設定変更終了コマンドを払出制御基板100に送信する処理を実行する。
In step S314, the main control board 50 executes a response waiting process. This process is a process of waiting for an ACK response to the setting change end command from the payout control board 100.
Here, when the transmitted setting change end command is sent back as it is from the dispensing control board 100, the main control board 50 judges that there is an ACK response to the setting change end command from the dispensing control board 100, and ends the processing according to this flowchart. Note that when the processing according to this flowchart ends, the processing proceeds to step S211 shown in FIG. 13.
In contrast, if a predetermined time has passed since the setting change end command was sent and there is no ACK response to the setting change end command (a timeout occurs), or an error command is sent from the dispensing control board 100 (a NAK response is received), the process returns to step S313 and the main control board 50 again executes the process of sending the setting change end command to the dispensing control board 100.

次に、図15中の右側に示す払出制御基板100における設定変更処理の流れについて説明する。
ステップS411において、払出制御基板100は、コマンド受信処理を実行する。この処理は、メイン制御基板50から送信される設定変更開始コマンドを受信する処理である。そして、設定変更開始コマンドを受信すると、次のステップS412に進み、払出制御基板100は、受信した設定変更開始コマンドをそのままメイン制御基板50に送り返す処理を実行する(設定変更開始コマンドのACK応答)。そして、次のステップS413に進む。
Next, the flow of the setting change processing in the dispensing control board 100 shown on the right side of Figure 15 will be explained.
In step S411, the dispensing control board 100 executes a command reception process. This process is a process for receiving a setting change start command transmitted from the main control board 50. Then, when the setting change start command is received, the process proceeds to the next step S412, where the dispensing control board 100 executes a process for sending the received setting change start command back to the main control board 50 as is (ACK response to the setting change start command). Then, the process proceeds to the next step S413.

ステップS413に進むと、払出制御基板100は、コマンド受信処理を実行する。この処理は、メイン制御基板50から送信される設定変更終了コマンドを受信する処理である。そして、設定変更終了コマンドを受信すると、次のステップS414に進み、払出制御基板100は、受信した設定変更終了コマンドをそのままメイン制御基板50に送り返す処理を実行する(設定変更終了コマンドのACK応答)。そして、受信した設定変更終了コマンドをそのままメイン制御基板50に送り返すと、本フローチャートによる処理を終了する。 When the process proceeds to step S413, the dispensing control board 100 executes a command reception process. This process is a process for receiving the setting change end command sent from the main control board 50. Then, when the setting change end command is received, the process proceeds to the next step S414, and the dispensing control board 100 executes a process for sending the received setting change end command back to the main control board 50 as is (ACK response to the setting change end command). Then, when the received setting change end command is sent back to the main control board 50 as is, the process according to this flowchart ends.

図16は、メイン制御基板50及び払出制御基板100における3枚ベット処理の流れを示すフローチャートである。
図16中、左側のフローチャートは、メイン制御基板50における3枚ベット処理の流れを示し、右側のフローチャートは、払出制御基板100における3枚ベット処理の流れを示す。また、図16中、左右のフローチャートの間の矢印は、3枚ベット処理時にメイン制御基板50と払出制御基板100との間で送受信されるコマンドの送信方向を示す。
FIG. 16 is a flowchart showing the flow of three-coin bet processing in the main control board 50 and the payout control board 100.
In Fig. 16, the flowchart on the left side shows the flow of three-coin bet processing in the main control board 50, and the flowchart on the right side shows the flow of three-coin bet processing in the payout control board 100. Also, in Fig. 16, the arrows between the left and right flowcharts show the transmission direction of commands transmitted and received between the main control board 50 and the payout control board 100 during three-coin bet processing.

また、図16では、3枚ベット処理時に、投入要求コマンドとして、クレジット数からベット数「1」を減算することを要求する1枚投入要求コマンド(「2001H」)を3回送信する例を示している。
なお、3枚ベット処理時に、1枚投入要求コマンドを3回送信することに限らず、クレジット数からベット数「3」を減算することを要求する3枚投入要求コマンド(「2003H」)を1回送信してもよい。
Also, FIG. 16 shows an example in which, during a three-coin bet process, a one-coin insertion request command ("2001H") is sent three times to request that the bet number "1" be subtracted from the credit number.
In addition, when processing a three-coin bet, it is not limited to sending a one-coin insertion request command three times, but it is also possible to send a three-coin insertion request command ("2003H") once to request that the bet number "3" be subtracted from the number of credits.

まず、図16中の左側に示すメイン制御基板50における3枚ベット処理について説明する。図16中の左側に示すフローチャートは、図13のステップS205における3枚ベット処理のサブルーチンを示している。
ステップS321において、メイン制御基板50は、規定数の電子メダルがベット済であるか否かの判断処理を実行する。そして、規定数の電子メダルがベット済であると判断したときは、本フローチャートによる処理を終了する。これに対し、規定数の電子メダルがベット済でないと判断したときは、次のステップS322で3ベットスイッチ40bの操作(オン)が検知されると、その次のステップS323に進む。
ステップS323では、メイン制御基板50は、投入要求コマンドとして、1枚投入要求コマンドを払出制御基板100に送信する処理を実行する。そして、次のステップS324に進む。
First, a description will be given of the three-coin bet process in the main control board 50 shown on the left side of Fig. 16. The flow chart shown on the left side of Fig. 16 shows the subroutine of the three-coin bet process in step S205 of Fig. 13.
In step S321, the main control board 50 executes a process of determining whether or not a specified number of electronic medals have been bet. If it is determined that the specified number of electronic medals have been bet, the process according to this flowchart is terminated. In contrast, if it is determined that the specified number of electronic medals have not been bet, the process proceeds to the next step S323 when the operation (ON) of the 3-bet switch 40b is detected in the next step S322.
In step S323, the main control board 50 executes a process of transmitting a one-coin insertion request command to the dispensing control board 100. Then, the process proceeds to the next step S324.

ステップS324では、メイン制御基板50は、応答待機処理を実行する。この処理は、払出制御基板100から1枚投入復唱コマンドが送信されること(1枚投入要求コマンドのACK応答)を待つ処理である。
そして、1枚投入復唱コマンドを受信する(送信した1枚投入要求コマンドがそのまま払出制御基板100から送り返される)と、メイン制御基板50は、払出制御基板100による1枚投入要求コマンドのACK応答があったと判断し、ステップS325に進む。
In step S324, the main control board 50 executes a response waiting process. This process waits for a one-coin insertion repeat command to be sent from the dispensing control board 100 (an ACK response to the one-coin insertion request command).
Then, when the one-coin insertion repeat command is received (the sent one-coin insertion request command is sent back as is from the dispensing control board 100), the main control board 50 determines that an ACK response to the one-coin insertion request command has been received from the dispensing control board 100 and proceeds to step S325.

これに対し、ステップS323で1枚投入要求コマンドを送信してから所定時間が経過しても1枚投入復唱コマンドを受信しない(タイムアウトとなる)か、又は払出制御基板100からエラーコマンドが送信される(NAK応答がある)と、ステップS323に戻り、メイン制御基板50は、再度、1枚投入要求コマンドを払出制御基板100に送信する処理を実行する。
その後、メイン制御基板50は、ステップS325及びS326、並びにステップS327及びS328において、ステップS323及びS324と同様の処理を実行する。すなわち、ステップS323及びS324と同様の処理を3回繰り返し実行する。そして、本フローチャートによる処理を終了する。なお、本フローチャートによる処理を終了すると、図13に示すステップS212の処理に進む。
In contrast, if a predetermined time has elapsed since the one-coin insertion request command was sent in step S323 but the one-coin insertion repeat command is not received (a timeout occurs), or an error command is sent from the dispensing control board 100 (a NAK response is received), the process returns to step S323 and the main control board 50 again executes the process of sending the one-coin insertion request command to the dispensing control board 100.
After that, the main control board 50 executes the same processes as steps S323 and S324 in steps S325 and S326, and steps S327 and S328. That is, the same processes as steps S323 and S324 are executed three times. Then, the process according to this flowchart ends. When the process according to this flowchart ends, the process proceeds to step S212 shown in FIG. 13.

次に、図16中の右側に示す払出制御基板100における3枚ベット処理について説明する。
ステップS421において、払出制御基板100は、コマンド受信処理を実行する。この処理は、メイン制御基板50から送信される1枚投入要求コマンドを受信する処理である。そして、1枚投入要求コマンドを受信すると、次のステップS422に進み、払出制御基板100は、1枚投入復唱コマンドをメイン制御基板50に送信する(受信した1枚投入要求コマンドをそのままメイン制御基板50に送り返す)処理を実行する(1枚投入要求コマンドのACK応答)。そして、次のステップS423に進む。
その後、払出制御基板100は、ステップS423及びS424、並びにステップS425及びS426において、ステップS421及びS422と同様の処理を実行する。すなわち、ステップS421及びS422と同様の処理を3回繰り返し実行する。そして、本フローチャートによる処理を終了する。
Next, the three-coin bet process in the payout control board 100 shown on the right side of FIG. 16 will be described.
In step S421, the dispensing control board 100 executes a command reception process. This process is a process for receiving a one-coin insertion request command sent from the main control board 50. Then, when the one-coin insertion request command is received, the process proceeds to the next step S422, where the dispensing control board 100 executes a process for sending a one-coin insertion repeat command to the main control board 50 (sending the received one-coin insertion request command back to the main control board 50 as is) (ACK response to the one-coin insertion request command). Then, the process proceeds to the next step S423.
Thereafter, the dispensing control board 100 executes the same processes as steps S421 and S422 in steps S423 and S424, and steps S425 and S426. That is, the same processes as steps S421 and S422 are repeatedly executed three times. Then, the process according to this flowchart is terminated.

図17は、メイン制御基板50及び払出制御基板100における1枚ベット処理の流れを示すフローチャートである。
図17中、左側のフローチャートは、メイン制御基板50における1枚ベット処理の流れを示し、右側のフローチャートは、払出制御基板100における1枚ベット処理の流れを示す。また、図17中、左右のフローチャートの間の矢印は、1枚ベット処理時にメイン制御基板50と払出制御基板100との間で送受信されるコマンドの送信方向を示す。
FIG. 17 is a flowchart showing the flow of single bet processing in the main control board 50 and the payout control board 100.
In Fig. 17, the flowchart on the left side shows the flow of single bet processing in the main control board 50, and the flowchart on the right side shows the flow of single bet processing in the payout control board 100. Also, in Fig. 17, the arrows between the left and right flowcharts show the transmission direction of commands transmitted and received between the main control board 50 and the payout control board 100 during single bet processing.

まず、図17中の左側に示すメイン制御基板50における1枚ベット処理について説明する。図17中の左側に示すフローチャートは、図13のステップS206における1枚ベット処理のサブルーチンを示している。
ステップS331において、メイン制御基板50は、規定数の電子メダルがベット済であるか否かの判断処理を実行する。そして、規定数の電子メダルがベット済であると判断したときは、本フローチャートによる処理を終了する。これに対し、規定数の電子メダルがベット済でないと判断したときは、次のステップS332で1ベットスイッチ40aの操作(オン)が検知されると、その次のステップS333に進む。
ステップS333では、メイン制御基板50は、投入要求コマンドとして、1枚投入要求コマンドを払出制御基板100に送信する処理を実行する。そして、次のステップS334に進む。
First, a description will be given of the one-coin bet process in the main control board 50 shown on the left side of Fig. 17. The flow chart shown on the left side of Fig. 17 shows the subroutine of the one-coin bet process in step S206 of Fig. 13.
In step S331, the main control board 50 executes a process of determining whether or not a specified number of electronic medals have been bet. If it is determined that the specified number of electronic medals have been bet, the process according to this flowchart is terminated. In contrast, if it is determined that the specified number of electronic medals have not been bet, the process proceeds to the next step S333 when the operation (ON) of the 1 bet switch 40a is detected in the next step S332.
In step S333, the main control board 50 executes a process of transmitting a one-coin insertion request command to the dispensing control board 100. Then, the process proceeds to the next step S334.

ステップS334では、メイン制御基板50は、応答待機処理を実行する。この処理は、払出制御基板100から1枚投入復唱コマンドが送信されること(1枚投入要求コマンドのACK応答)を待つ処理である。
そして、1枚投入復唱コマンドを受信する(送信した1枚投入要求コマンドがそのまま払出制御基板100から送り返される)と、メイン制御基板50は、払出制御基板100による1枚投入要求コマンドのACK応答があったと判断し、本フローチャートによる処理を終了する。なお、本フローチャートによる処理を終了すると、図13に示すステップS212の処理に進む。
In step S334, the main control board 50 executes a response waiting process. This process waits for a one-coin insertion repeat command to be sent from the dispensing control board 100 (an ACK response to the one-coin insertion request command).
Then, when the one-coin insertion repeat command is received (the one-coin insertion request command sent is returned as is from the dispensing control board 100), the main control board 50 determines that there has been an ACK response to the one-coin insertion request command from the dispensing control board 100, and ends the processing according to this flowchart. Note that when the processing according to this flowchart ends, the processing proceeds to step S212 shown in FIG.

これに対し、ステップS333で1枚投入要求コマンドを送信してから所定時間が経過しても1枚投入復唱コマンドを受信しない(タイムアウトとなる)か、又は払出制御基板100からエラーコマンドが送信される(NAK応答がある)と、ステップS333に戻り、メイン制御基板50は、再度、1枚投入要求コマンドを払出制御基板100に送信する処理を実行する。 In contrast, if the one-coin insertion request command is sent in step S333 and the one-coin insertion repeat command is not received within a predetermined time (a timeout occurs), or an error command is sent from the dispensing control board 100 (a NAK response is received), the process returns to step S333 and the main control board 50 executes the process of sending the one-coin insertion request command to the dispensing control board 100 again.

次に、図17中の右側に示す払出制御基板100における1枚ベット処理について説明する。
ステップS431において、払出制御基板100は、コマンド受信処理を実行する。この処理は、メイン制御基板50から送信される1枚投入要求コマンドを受信する処理である。そして、1枚投入要求コマンドを受信すると、次のステップS432に進み、払出制御基板100は、1枚投入復唱コマンドをメイン制御基板50に送信する(受信した1枚投入要求コマンドをそのままメイン制御基板50に送り返す)処理を実行する(1枚投入要求コマンドのACK応答)。そして、本フローチャートによる処理を終了する。
Next, the one-coin bet process in the payout control board 100 shown on the right side of FIG. 17 will be described.
In step S431, the dispensing control board 100 executes a command reception process. This process is a process for receiving a one-coin insertion request command sent from the main control board 50. Then, when the one-coin insertion request command is received, the process proceeds to the next step S432, where the dispensing control board 100 executes a process for sending a one-coin insertion repeat command to the main control board 50 (sending the received one-coin insertion request command back to the main control board 50 as is) (ACK response to the one-coin insertion request command). Then, the process according to this flowchart ends.

図18は、メイン制御基板50及び払出制御基板100における遊技開始処理の流れを示すフローチャートである。
図18中、左側のフローチャートは、メイン制御基板50における遊技開始処理の流れを示し、右側のフローチャートは、払出制御基板100における遊技開始処理の流れを示す。また、図18中、左右のフローチャートの間の矢印は、遊技開始処理時にメイン制御基板50と払出制御基板100との間で送受信されるコマンドの送信方向を示す。
FIG. 18 is a flowchart showing the flow of game start processing in the main control board 50 and the payout control board 100.
In Fig. 18, the flowchart on the left side shows the flow of game start processing in the main control board 50, and the flowchart on the right side shows the flow of game start processing in the payout control board 100. Also, in Fig. 18, the arrows between the left and right flowcharts show the transmission direction of commands transmitted and received between the main control board 50 and the payout control board 100 during game start processing.

まず、図18中の左側に示すメイン制御基板50における遊技開始処理について説明する。図18中の左側に示すフローチャートは、図13のステップS207における遊技開始処理のサブルーチンを示している。
ステップS351において、メイン制御基板50は、規定数の電子メダルがベット済であるか否かの判断処理を実行する。そして、規定数の電子メダルがベット済でないと判断したときは、本フローチャートによる処理を終了する。これに対し、規定数の電子メダルがベット済であると判断したときは、次のステップS352でスタートスイッチ41の操作(オン)が検知されると、その次のステップS353に進む。
ステップS353では、メイン制御基板50は、遊技開始+RT状態コマンドを払出制御基板100に送信する処理を実行する。そして、次のステップS354に進む。
ステップS354では、メイン制御基板50は、応答待機処理を実行する。この処理は、払出制御基板100から遊技開始+RT状態コマンドが送り返されること(ACK応答)を待つ処理である。
First, a description will be given of the game start processing in the main control board 50 shown on the left side of Fig. 18. The flow chart shown on the left side of Fig. 18 shows a subroutine of the game start processing in step S207 of Fig. 13.
In step S351, the main control board 50 executes a process of determining whether or not a specified number of electronic medals have been bet. If it is determined that the specified number of electronic medals have not been bet, the process according to this flowchart is terminated. In contrast, if it is determined that the specified number of electronic medals have been bet, the process proceeds to the next step S353 when the operation (ON) of the start switch 41 is detected in the next step S352.
In step S353, the main control board 50 executes a process of transmitting a game start + RT state command to the payout control board 100. Then, the process proceeds to the next step S354.
In step S354, the main control board 50 executes a response waiting process. This process is a process of waiting for a game start + RT state command to be sent back from the payout control board 100 (ACK response).

そして、送信した遊技開始+RT状態コマンドがそのまま払出制御基板100から送り返される)と、メイン制御基板50は、払出制御基板100によるACK応答があったと判断し、本フローチャートによる処理を終了する。なお、本フローチャートによる処理を終了すると、図13に示すステップS208の処理に進む。
これに対し、ステップS353で遊技開始+RT状態コマンドを送信してから所定時間が経過してもACK応答がない(タイムアウトとなる)か、又は払出制御基板100からエラーコマンドが送信される(NAK応答がある)と、ステップS353に戻り、メイン制御基板50は、再度、遊技開始+RT状態コマンドを払出制御基板100に送信する処理を実行する。
Then, when the transmitted game start + RT state command is returned as is from the payout control board 100, the main control board 50 judges that there is an ACK response from the payout control board 100 and ends the processing according to this flowchart. When the processing according to this flowchart ends, the processing proceeds to step S208 shown in FIG.
In contrast, if a predetermined time has passed since sending the game start + RT status command in step S353 and there is no ACK response (a timeout occurs), or an error command is sent from the payout control board 100 (a NAK response is received), the process returns to step S353 and the main control board 50 again executes the process of sending the game start + RT status command to the payout control board 100.

次に、図18中の右側に示す払出制御基板100における遊技開始処理について説明する。
ステップS451において、払出制御基板100は、コマンド受信処理を実行する。この処理は、メイン制御基板50から送信される遊技開始+RT状態コマンドを受信する処理である。そして、遊技開始+RT状態コマンドを受信すると、次のステップS452に進み、払出制御基板100は、受信した遊技開始+RT状態コマンドをそのままメイン制御基板50に送り返す処理を実行する(ACK応答)。そして、本フローチャートによる処理を終了する。
Next, the game start processing in the payout control board 100 shown on the right side of Figure 18 will be described.
In step S451, the payout control board 100 executes a command reception process. This process is a process for receiving a game start + RT state command transmitted from the main control board 50. Then, when the game start + RT state command is received, the payout control board 100 proceeds to the next step S452, and executes a process for sending the received game start + RT state command back to the main control board 50 as it is (ACK response). Then, the process according to this flowchart is terminated.

図19は、メイン制御基板50及び払出制御基板100における遊技終了処理の流れを示すフローチャートである。
図19中、左側のフローチャートは、メイン制御基板50における遊技終了処理の流れを示し、右側のフローチャートは、払出制御基板100における遊技終了処理の流れを示す。また、図19中、左右のフローチャートの間の矢印は、遊技終了処理時にメイン制御基板50と払出制御基板100との間で送受信されるコマンドの送信方向を示す。
FIG. 19 is a flowchart showing the flow of game ending processing in the main control board 50 and the payout control board 100.
In Fig. 19, the flowchart on the left side shows the flow of game ending processing in the main control board 50, and the flowchart on the right side shows the flow of game ending processing in the payout control board 100. Also, in Fig. 19, the arrows between the left and right flowcharts show the transmission direction of commands transmitted and received between the main control board 50 and the payout control board 100 during game ending processing.

まず、図19中の左側に示すメイン制御基板50における遊技終了処理について説明する。図19中の左側に示すフローチャートは、図13のステップS208における遊技終了処理のサブルーチンを示している。
ステップS361において、メイン制御基板50は、第3ストップスイッチ42(最後に停止するリール31に対応するストップスイッチ42)がオンからオフになったか否かの判断処理を実行する。そして、第3ストップスイッチ42がオフになっていないと判断したときは、本フローチャートによる処理を終了する。これに対し、第3ストップスイッチ42がオフになったと判断したときは、ステップS362に進む。
ステップS362に進むと、メイン制御基板50は、遊技終了+遊技状態コマンドを払出制御基板100に送信する処理を実行する。そして、次のステップS363に進む。
ステップS363では、メイン制御基板50は、応答待機処理を実行する。この処理は、払出制御基板100から遊技終了+遊技状態コマンドが送り返されること(ACK応答)を待つ処理である。
First, there will be described the game ending process in the main control board 50 shown on the left side of Fig. 19. The flow chart shown on the left side of Fig. 19 shows the subroutine of the game ending process in step S208 of Fig. 13.
In step S361, the main control board 50 executes a process to determine whether the third stop switch 42 (the stop switch 42 corresponding to the reel 31 that is to stop last) has changed from on to off. If it is determined that the third stop switch 42 has not been turned off, the process according to this flowchart ends. In contrast, if it is determined that the third stop switch 42 has been turned off, the process proceeds to step S362.
In step S362, the main control board 50 executes a process of transmitting a game end + game status command to the payout control board 100. Then, the process proceeds to the next step S363.
In step S363, the main control board 50 executes a response waiting process. This process is a process of waiting for a game end + game status command to be sent back from the payout control board 100 (ACK response).

そして、送信した遊技終了+遊技状態コマンドがそのまま払出制御基板100から送り返される)と、メイン制御基板50は、払出制御基板100によるACK応答があったと判断し、本フローチャートによる処理を終了する。なお、本フローチャートによる処理を終了すると、図13に示すステップS209の処理に進む。
これに対し、ステップS362で遊技終了+遊技状態コマンドを送信してから所定時間が経過してもACK応答がない(タイムアウトとなる)か、又は払出制御基板100からエラーコマンドが送信される(NAK応答がある)と、ステップS362に戻り、メイン制御基板50は、再度、遊技終了+遊技状態コマンドを払出制御基板100に送信する処理を実行する。
Then, when the transmitted game end + game status command is returned as is from the payout control board 100, the main control board 50 judges that an ACK response has been received from the payout control board 100, and ends the processing according to this flowchart. When the processing according to this flowchart ends, the processing proceeds to step S209 shown in FIG.
In contrast, if a predetermined time has elapsed since the game end + game status command was sent in step S362 and there is no ACK response (a timeout occurs), or an error command is sent from the payout control board 100 (a NAK response is received), the process returns to step S362 and the main control board 50 again executes the process of sending the game end + game status command to the payout control board 100.

次に、図19中の右側に示す払出制御基板100における遊技終了処理について説明する。
ステップS461において、払出制御基板100は、コマンド受信処理を実行する。この処理は、メイン制御基板50から送信される遊技終了+遊技状態コマンドを受信する処理である。そして、遊技終了+遊技状態コマンドを受信すると、次のステップS462に進み、払出制御基板100は、受信した遊技終了+遊技状態コマンドをそのままメイン制御基板50に送り返す処理を実行する(ACK応答)。そして、本フローチャートによる処理を終了する。
Next, the game ending process in the payout control board 100 shown on the right side of FIG. 19 will be described.
In step S461, the payout control board 100 executes a command reception process. This process is a process for receiving a game end + game status command transmitted from the main control board 50. Then, when the game end + game status command is received, the payout control board 100 proceeds to the next step S462, and executes a process for sending the received game end + game status command back to the main control board 50 as is (ACK response). Then, the process according to this flowchart is terminated.

図20は、メイン制御基板50及び払出制御基板100における払出処理の流れを示すフローチャートである。
図20中、左側のフローチャートは、メイン制御基板50における払出処理の流れを示し、右側のフローチャートは、払出制御基板100における払出処理の流れを示す。また、図20中、左右のフローチャートの間の矢印は、払出処理時にメイン制御基板50と払出制御基板100との間で送受信されるコマンドの送信方向を示す。
FIG. 20 is a flowchart showing the flow of the payout process in the main control board 50 and the payout control board 100.
In Fig. 20, the flowchart on the left side shows the flow of the payout process in the main control board 50, and the flowchart on the right side shows the flow of the payout process in the payout control board 100. Also, in Fig. 20, the arrows between the left and right flowcharts show the transmission direction of commands transmitted and received between the main control board 50 and the payout control board 100 during the payout process.

まず、図20中の左側に示すメイン制御基板50における払出処理について説明する。図20中の左側に示すフローチャートは、図13のステップS209における払出処理のサブルーチンを示している。
ステップS371において、メイン制御基板50は、払出要求コマンドを払出制御基板100に送信する処理を実行する。そして、次のステップS372に進む。
ステップS372では、メイン制御基板50は、応答待機処理を実行する。この処理は、払出制御基板100から払出復唱コマンドが送信されること(払出要求コマンドのACK応答)を待つ処理である。
First, a description will be given of the payout process in the main control board 50 shown on the left side of Fig. 20. The flow chart shown on the left side of Fig. 20 shows the subroutine of the payout process in step S209 of Fig. 13.
In step S371, the main control board 50 executes a process of transmitting a payout request command to the payout control board 100. Then, the process proceeds to the next step S372.
In step S372, the main control board 50 executes a response waiting process. This process is a process of waiting for a payout repeat command to be sent from the payout control board 100 (an ACK response to the payout request command).

そして、払出復唱コマンドを受信する(送信した払出要求コマンドがそのまま払出制御基板100から送り返される)と、メイン制御基板50は、払出制御基板100による払出要求コマンドのACK応答があったと判断し、本フローチャートによる処理を終了する。なお、本フローチャートによる処理を終了すると、図13に示すステップS211の処理に戻る。
これに対し、ステップS371で払出要求コマンドを送信してから所定時間が経過しても払出復唱コマンドを受信しない(タイムアウトとなる)か、又は払出制御基板100からエラーコマンドが送信される(NAK応答がある)と、ステップS371に戻り、メイン制御基板50は、再度、払出要求コマンドを払出制御基板100に送信する処理を実行する。
Then, when the payout repeat command is received (the payout request command sent is returned as is from the payout control board 100), the main control board 50 determines that an ACK response to the payout request command from the payout control board 100 has been received, and ends the process according to this flowchart. When the process according to this flowchart ends, the process returns to step S211 shown in FIG.
In contrast, if a predetermined time has elapsed since the dispensing request command was sent in step S371 and the dispensing repeat command is not received (a timeout occurs), or an error command is sent from the dispensing control board 100 (a NAK response is received), the process returns to step S371 and the main control board 50 again executes the process of sending a dispensing request command to the dispensing control board 100.

次に、図20中の右側に示す払出制御基板100における払出処理について説明する。
ステップS471において、払出制御基板100は、コマンド受信処理を実行する。この処理は、メイン制御基板50から送信される払出要求コマンドを受信する処理である。そして、払出要求コマンドを受信すると、次のステップS472に進み、払出制御基板100は、払出復唱コマンドをメイン制御基板50に送信する(受信した払出要求コマンドをそのままメイン制御基板50に送り返す)処理を実行する(払出要求コマンドのACK応答)。そして、本フローチャートによる処理を終了する。
Next, the dispensing process in the dispensing control board 100 shown on the right side of Figure 20 will be described.
In step S471, the dispensing control board 100 executes a command reception process. This process is a process for receiving a dispensing request command sent from the main control board 50. Then, when the dispensing request command is received, the process proceeds to the next step S472, where the dispensing control board 100 executes a process for sending a dispensing repeat command to the main control board 50 (sending the received dispensing request command back to the main control board 50 as is) (ACK response to the dispensing request command). Then, the process according to this flowchart ends.

図21は、メイン制御基板50及び払出制御基板100における返却処理の流れを示すフローチャートである。
図21中、左側のフローチャートは、メイン制御基板50における返却処理の流れを示し、右側のフローチャートは、払出制御基板100における返却処理の流れを示す。また、図21中、左右のフローチャートの間の矢印は、返却処理時にメイン制御基板50と払出制御基板100との間で送受信されるコマンドの送信方向を示す。
Figure 21 is a flowchart showing the flow of the return processing in the main control board 50 and the dispensing control board 100.
In Fig. 21, the flowchart on the left side shows the flow of the return process in the main control board 50, and the flowchart on the right side shows the flow of the return process in the dispensing control board 100. Also, in Fig. 21, the arrows between the left and right flowcharts show the transmission direction of commands transmitted and received between the main control board 50 and the dispensing control board 100 during the return process.

まず、図21中の左側に示すメイン制御基板50における返却処理について説明する。図20中の左側に示すフローチャートは、図13のステップS210における返却処理のサブルーチンを示している。
ステップS341において、メイン制御基板50は、ベットされている電子メダルがあるか否かの判断処理を実行する。そして、ベットされている電子メダルがないと判断したときは、本フローチャートによる処理を終了する。これに対し、ベットされている電子メダルがあると判断したときは、次のステップS342でキャンセルスイッチ46の操作(オン)が検知されると、その次のステップS343に進む。
ステップS343では、メイン制御基板50は、返却要求コマンドを払出制御基板100に送信する処理を実行する。そして、次のステップS344に進む。
ステップS344では、メイン制御基板50は、応答待機処理を実行する。この処理は、払出制御基板100から返却復唱コマンドが送信されること(返却要求コマンドのACK応答)を待つ処理である。
First, a description will be given of the return process in the main control board 50 shown on the left side of Fig. 21. The flow chart shown on the left side of Fig. 20 shows the subroutine of the return process in step S210 of Fig. 13.
In step S341, the main control board 50 executes a process of determining whether or not there are any electronic medals that have been bet. If it is determined that there are no electronic medals that have been bet, the process according to this flowchart is terminated. In contrast, if it is determined that there are electronic medals that have been bet, the process proceeds to the next step S343 when the operation (ON) of the cancel switch 46 is detected in the next step S342.
In step S343, the main control board 50 executes a process of sending a return request command to the dispensing control board 100. Then, the process proceeds to the next step S344.
In step S344, the main control board 50 executes a response waiting process. This process waits for a return repeat command to be sent from the payout control board 100 (an ACK response to the return request command).

そして、返却復唱コマンドを受信する(送信した返却要求コマンドがそのまま払出制御基板100から送り返される)と、メイン制御基板50は、払出制御基板100による返却要求コマンドのACK応答があったと判断し、本フローチャートによる処理を終了する。なお、本フローチャートによる処理を終了すると、図13に示すステップS211の処理に戻る。
これに対し、ステップS343で返却要求コマンドを送信してから所定時間が経過しても返却復唱コマンドを受信しない(タイムアウトとなる)か、又は払出制御基板100からエラーコマンドが送信される(NAK応答がある)と、ステップS343に戻り、メイン制御基板50は、再度、返却要求コマンドを払出制御基板100に送信する処理を実行する。
Then, when the return repeat command is received (the returned request command is returned as is from the dispensing control board 100), the main control board 50 determines that an ACK response to the return request command from the dispensing control board 100 has been received, and ends the process according to this flowchart. When the process according to this flowchart ends, the process returns to step S211 shown in FIG.
In contrast, if a specified time has elapsed since the return request command was sent in step S343 and the return repeat command is not received (a timeout occurs), or an error command is sent from the dispensing control board 100 (a NAK response is received), the process returns to step S343 and the main control board 50 again executes the process of sending a return request command to the dispensing control board 100.

次に、図21中の右側に示す払出制御基板100における返却処理について説明する。
ステップS441において、払出制御基板100は、コマンド受信処理を実行する。この処理は、メイン制御基板50から送信される返却要求コマンドを受信する処理である。そして、返却要求コマンドを受信すると、次のステップS442に進み、払出制御基板100は、返却復唱コマンドをメイン制御基板50に送信する(受信した返却要求コマンドをそのままメイン制御基板50に送り返す)処理を実行する(返却要求コマンドのACK応答)。そして、本フローチャートによる処理を終了する。
Next, the return process in the dispensing control board 100 shown on the right side of Figure 21 will be described.
In step S441, the dispensing control board 100 executes a command reception process. This process is a process for receiving a return request command sent from the main control board 50. Then, when the return request command is received, the process proceeds to the next step S442, where the dispensing control board 100 executes a process for sending a return repeat command to the main control board 50 (sending the received return request command back to the main control board 50 as is) (ACK response to the return request command). Then, the process according to this flowchart ends.

図22は、払出制御基板100及び管理装置200における電源投入処理の流れを示すフローチャートである。
図22中、左側のフローチャートは、払出制御基板100における電源投入処理2の流れを示し、右側のフローチャートは、管理装置200における電源投入処理の流れを示す。また、図22中、左右のフローチャートの間の矢印は、電源投入処理時に払出制御基板100と管理装置200との間で送受信されるコマンドの送信方向を示す。
スロットマシン10及び管理装置200の電源が投入されると、スロットマシン10の払出制御基板100上のプログラムが起動するとともに、管理装置200上のプログラムが起動する。このとき、スロットマシン10の払出制御基板100において電源投入処理が実行されるとともに、管理装置200において電源投入処理が実行される。
Figure 22 is a flowchart showing the flow of the power-on processing in the dispensing control board 100 and the management device 200.
In Fig. 22, the left flowchart shows the flow of power-on processing 2 in the dispensing control board 100, and the right flowchart shows the flow of power-on processing in the management device 200. Also, in Fig. 22, the arrows between the left and right flowcharts show the transmission direction of commands transmitted and received between the dispensing control board 100 and the management device 200 during the power-on processing.
When the slot machine 10 and the management device 200 are powered on, a program on the payout control board 100 of the slot machine 10 is started, and a program on the management device 200 is started. At this time, a power-on process is executed on the payout control board 100 of the slot machine 10, and a power-on process is executed on the management device 200.

ここで、図14中の右側に示す払出制御基板100における電源投入処理1、及び図22中の左側に示す払出制御基板100における電源投入処理2は、いずれも、電源投入時に払出制御基板100において実行される処理であり、一部の処理が重複している。そして、同一の内容の処理には、同一のステップ番号を付している。
ただし、図14中の右側に示す払出制御基板100における電源投入処理1では、メイン制御基板50と払出制御基板100との間におけるコマンドの送受信を説明するために必要な処理を抽出して図示し、それ以外の処理の図示を省略している。
これに対し、図22中の左側に示す払出制御基板100における電源投入処理2では、払出制御基板100と管理装置200との間におけるコマンドの送受信を説明するために必要な処理を抽出して図示し、それ以外の処理の図示を省略している。
Here, the power-on process 1 in the dispensing control board 100 shown on the right side of Fig. 14 and the power-on process 2 in the dispensing control board 100 shown on the left side of Fig. 22 are both processes executed in the dispensing control board 100 when the power is turned on, and some of the processes overlap. And the same step numbers are assigned to processes with the same content.
However, in the power-on process 1 for the dispensing control board 100 shown on the right side of Figure 14, only the processes necessary to explain the sending and receiving of commands between the main control board 50 and the dispensing control board 100 are extracted and illustrated, and other processes are omitted from the illustration.
In contrast, in the power-on process 2 in the dispensing control board 100 shown on the left side of Figure 22, the processes necessary to explain the sending and receiving of commands between the dispensing control board 100 and the management device 200 are extracted and illustrated, and other processes are omitted from the illustration.

まず、図22中の左側に示す払出制御基板100における電源投入処理2について説明する。
ステップS401において、払出制御基板100は、初期化処理を実行する。そして、初期化処理が終了すると、次のステップS502に進む。なお、図22中のステップS401と、図14中のステップS401とは、同一の内容の処理である。
ステップS502に進むと、払出制御基板100は、CPU固有ID1バイト目~4バイト目を払出制御基板100に順次送信する処理を実行する。そして、次のステップS503に進む。
ステップS503では、メイン制御基板50は、CPU固有ID4バイト目の送信を完了したか否かの判断処理を実行する。そして、CPU固有ID4バイト目の送信を完了したと判断すると、本フローチャートによる処理を終了する。これに対し、CPU固有ID4バイト目の送信を完了していないと判断したときは、ステップS502に戻り、払出制御基板100は、再度、CPU固有ID1バイト目~4バイト目を払出制御基板100に順次送信する処理を実行する。
First, the power-on process 2 in the dispensing control board 100 shown on the left side of Figure 22 will be described.
In step S401, the dispensing control board 100 executes an initialization process. When the initialization process is completed, the process proceeds to the next step S502. Note that step S401 in FIG. 22 and step S401 in FIG. 14 are the same process.
When the process proceeds to step S502, the dispensing control board 100 executes a process of sequentially transmitting the first byte to the fourth byte of the CPU unique ID to the dispensing control board 100. Then, the process proceeds to the next step S503.
In step S503, the main control board 50 executes a process to determine whether or not transmission of the fourth byte of the CPU unique ID has been completed. If it is determined that transmission of the fourth byte of the CPU unique ID has been completed, the process according to this flowchart ends. In contrast, if it is determined that transmission of the fourth byte of the CPU unique ID has not been completed, the process returns to step S502, and the dispensing control board 100 executes a process of transmitting the first byte to the fourth byte of the CPU unique ID to the dispensing control board 100 again in sequence.

次に、図22中の右側に示す管理装置200における電源投入処理について説明する。
ステップS601において、管理装置200は、初期化処理を実行する。そして、初期化処理が終了すると、次のステップS602に進む。
ステップS602では、管理装置200は、コマンド受信処理を実行する。この処理は、払出制御基板100から送信されるCPU固有ID1バイト目~4バイト目を受信する処理である。そして、CPU固有ID1バイト目~4バイト目を受信すると、次のステップS603に進み、管理装置200は、受信したコマンドがCPU固有IDであるか否かの判断処理を実行する。
Next, the power-on process in the management device 200 shown on the right side of FIG. 22 will be described.
In step S601, the management device 200 executes an initialization process. When the initialization process ends, the process proceeds to the next step S602.
In step S602, the management device 200 executes a command reception process. This process is a process for receiving the first to fourth bytes of the CPU unique ID transmitted from the dispensing control board 100. Then, when the first to fourth bytes of the CPU unique ID are received, the process proceeds to the next step S603, where the management device 200 executes a process for determining whether or not the received command is a CPU unique ID.

ここで、ステップS603において、受信したコマンドがCPU固有IDであると判断したときは、次のステップS604に進み、管理装置200は、受信したCPU固有ID1バイト目~4バイト目を所定の記憶領域に記憶(保存)する処理を実行する。そして、次のステップS605に進む。
これに対し、ステップS603において、受信したコマンドがCPU固有IDでないと判断すると、本フローチャートによる処理を終了する。
If it is determined in step S603 that the received command is a CPU unique ID, the process proceeds to the next step S604, where the management device 200 executes a process of storing (saving) the first through fourth bytes of the received CPU unique ID in a predetermined storage area, and then proceeds to the next step S605.
On the other hand, if it is determined in step S603 that the received command is not a CPU unique ID, the process according to this flowchart ends.

ステップS605に進むと、管理装置200は、CPU固有ID4バイト目の受信を完了したか否かの判断処理を実行する。
そして、ステップS605において、CPU固有ID4バイト目の受信を完了したと判断したときは、次のステップS606に進み、管理装置200は、CPU固有ID1バイト目~4バイト目をホールコンピュータ300に送信する処理を実行する。そして、本フローチャートによる処理を終了する。
これに対し、ステップS605において、CPU固有ID4バイト目の受信を完了していないと判断したときは、ステップS606をスキップして、本フローチャートによる処理を終了する。
In step S605, the management device 200 executes a process of determining whether or not reception of the fourth byte of the CPU unique ID has been completed.
Then, when it is determined in step S605 that reception of the fourth byte of the CPU unique ID has been completed, the process proceeds to the next step S606, in which the management device 200 executes a process of transmitting the first byte through the fourth byte of the CPU unique ID to the hall computer 300. Then, the process according to this flowchart ends.
On the other hand, if it is determined in step S605 that reception of the fourth byte of the CPU unique ID has not been completed, step S606 is skipped and the process according to this flowchart is terminated.

図23は、払出制御基板100及び管理装置200における貸出処理の流れを示すフローチャートである。
図23中、左側のフローチャートは、払出制御基板100における貸出処理2の流れを示し、右側のフローチャートは、管理装置200における貸出処理の流れを示す。また、図23中、左右のフローチャートの間の矢印は、貸出処理時に払出制御基板100と管理装置200との間で送受信されるコマンドの送信方向を示す。
FIG. 23 is a flowchart showing the flow of the loan processing in the dispensing control board 100 and the management device 200.
In Fig. 23, the flowchart on the left side shows the flow of the lending process 2 in the dispensing control board 100, and the flowchart on the right side shows the flow of the lending process in the management device 200. Also, in Fig. 23, the arrow between the left and right flowcharts shows the transmission direction of commands transmitted and received between the dispensing control board 100 and the management device 200 during the lending process.

ここで、図11に示す払出制御基板100における貸出処理1、及び図23中の左側に示す払出制御基板100における貸出処理2は、いずれも、図8のステップS119における貸出処理のサブルーチンを示しており、一部の処理が重複している。そして、同一の内容の処理には、同一のステップ番号を付している。
ただし、図11に示す払出制御基板100における貸出処理1では、貸出処理時の処理を詳細に図示している。
これに対し、図23中の左側に示す払出制御基板100における貸出処理2では、払出制御基板100と管理装置200との間におけるコマンドの送受信を説明するために必要な処理を抽出して図示し、それ以外の処理の図示を省略している。
Here, the loan process 1 in the dispensing control board 100 shown in Fig. 11 and the loan process 2 in the dispensing control board 100 shown on the left side in Fig. 23 both show subroutines of the loan process in step S119 in Fig. 8, and some of the processes are overlapping. And the same step numbers are given to processes with the same content.
However, in the loan process 1 in the dispensing control board 100 shown in Figure 11, the processing during the loan process is illustrated in detail.
In contrast, in the loan process 2 in the dispensing control board 100 shown on the left side of Figure 23, the processes necessary to explain the sending and receiving of commands between the dispensing control board 100 and the management device 200 are extracted and illustrated, and other processes are omitted from the illustration.

まず、図23中の右側に示す管理装置200における貸出処理について説明する。
ステップS611において、貸出スイッチ202の操作(オン)が検知されると、次のステップS612に進み、管理装置200は、貸出可LEDを消灯させる処理、貸出スイッチ202の操作を無効(受付け不可)にする処理、及び返却スイッチ203の操作を無効(受付け不可)にする処理を実行する。そして、次のステップS613に進む。
なお、貸出可LEDは、電子メダルの貸出しが可能であるか否かを示すLEDであって、点灯時には電子メダルの貸出しが可能であることを示し、消灯時には電子メダルの貸出しが不可であることを示すものである。
First, the lending process in the management device 200 shown on the right side of FIG. 23 will be described.
In step S611, when the operation (ON) of the lending switch 202 is detected, the process proceeds to the next step S612, where the management device 200 executes a process of turning off the lending possible LED, a process of invalidating (not accepting) the operation of the lending switch 202, and a process of invalidating (not accepting) the operation of the return switch 203. Then, the process proceeds to the next step S613.
The loanable LED is an LED that indicates whether or not the electronic medal can be loaned. When lit, it indicates that the electronic medal can be loaned, and when off, it indicates that the electronic medal cannot be loaned.

ステップS613に進むと、管理装置200は、貸出要求コマンドを払出制御基板100に送信する。そして、次のステップS614に進む。
ステップS614では、管理装置200は、応答待機処理を実行する。この処理は、払出制御基板100から貸出復唱コマンドが送信されること(貸出要求コマンドのACK応答)を待つ処理である。
In step S613, the management device 200 transmits a lending request command to the dispensing control board 100. Then, the process proceeds to the next step S614.
In step S614, the management device 200 executes a response waiting process. This process is a process of waiting for a loan repeat command to be transmitted from the dispensing control board 100 (an ACK response to the loan request command).

そして、貸出復唱コマンドを受信する(送信した貸出要求コマンドがそのまま払出制御基板100から送り返される)と、管理装置200は、払出制御基板100による貸出要求コマンドのACK応答があったと判断し、次のステップS615に進む。
また、払出制御基板100からエラーコマンドが送信される(NAK応答がある)と、ステップS617に進む。
さらにまた、ステップS613で貸出要求コマンドを送信してから所定時間が経過しても貸出復唱コマンドを受信しない(タイムアウトとなる)と、ステップS618に進み、管理装置200は、エラー処理を実行する。
Then, when the loan repeat command is received (the loan request command that was sent is sent back as is from the dispensing control board 100), the management device 200 determines that an ACK response to the loan request command has been received from the dispensing control board 100, and proceeds to the next step S615.
Also, if an error command is sent from the dispensing control board 100 (a NAK response is received), the process proceeds to step S617.
Furthermore, if the lending repeat command is not received within a predetermined time period since the lending request command was sent in step S613 (timeout occurs), the process proceeds to step S618, and the management device 200 executes error processing.

ステップS615に進むと、管理装置200は、貸出指示コマンドを払出制御基板100に送信する。そして、次のステップ616に進む。
ステップS616では、管理装置200は、貸出し枚数を減算する処理を実行する。そして、次のステップS617に進む。
ステップS617に進むと、管理装置200は、貸出可LEDを点灯させる処理、貸出スイッチ202の操作を有効(受付け可能)にする処理、及び返却スイッチ203の操作を有効(受付け可能)にする処理を実行する。そして、本フローチャートによる処理を終了する。
In step S615, the management device 200 transmits a lending instruction command to the dispensing control board 100. Then, the process proceeds to the next step S616.
In step S616, the management device 200 executes a process of subtracting the number of sheets lent, and then proceeds to the next step S617.
In step S617, the management device 200 executes a process of turning on the lending possible LED, a process of making the operation of the lending switch 202 valid (acceptable), and a process of making the operation of the return switch 203 valid (acceptable), and then ends the process according to this flowchart.

次に、図23中の左側に示す払出制御基板100における貸出処理2について説明する。
ステップS511において、払出制御基板100は、コマンド受信処理を実行する。この処理は、管理装置200から送信される貸出要求コマンドを受信する処理である。そして、貸出要求コマンドを受信すると、ステップS118に進む。
Next, the loan process 2 in the dispensing control board 100 shown on the left side of Figure 23 will be described.
In step S511, the dispensing control board 100 executes a command reception process. This process is a process for receiving a loan request command transmitted from the management device 200. Then, when the loan request command is received, the process proceeds to step S118.

ステップS118に進むと、払出制御基板100は、受信したコマンドが貸出要求コマンドであるか否かの判断処理を実行する。なお、図23中のステップS118と、図8中のステップS118とは、同一の内容の処理である。
ここで、受信したコマンドが貸出要求コマンドであると判断したときは、ステップS513に進み、払出制御基板100は、受信した貸出要求コマンドをRWM103の所定の記憶領域に記憶(保存)する処理を実行する。そして、次のステップS514に進む。
これに対し、受信したコマンドが貸出要求コマンドでないと判断したときは、本フローチャートによる処理を終了する。
When the process proceeds to step S118, the dispensing control board 100 executes a process of determining whether the received command is a lending request command. Note that step S118 in FIG. 23 and step S118 in FIG. 8 are the same process.
If it is determined that the received command is a loan request command, the process proceeds to step S513, where the payout control board 100 executes a process of storing (saving) the received loan request command in a predetermined storage area of the RWM 103. Then, the process proceeds to the next step S514.
On the other hand, if it is determined that the received command is not a loan request command, the process according to this flowchart ends.

ステップS514に進むと、払出制御基板100は、貸出し要求を受付け可能であるか否か、具体的には、クレジット数に貸出し枚数(貸出要求コマンドの後続コマンドが示す数)を加算することによりクレジット数の上限値を超えるか否かの判断処理を実行する。
ここで、ステップS514において、貸出し要求を受付け可能であると判断したとき、すなわち、クレジット数に貸出し枚数を加算してもクレジット数の上限値以下であると判断したときは、ステップS161に進み、払出制御基板100は、貸出復唱コマンドを管理装置200に送信する(受信した貸出要求コマンドをそのまま管理装置200に送り返す)処理を実行する(貸出要求コマンドのACK応答)。そして、ステップS164に進む。
When proceeding to step S514, the payout control board 100 executes a process to determine whether or not the loan request can be accepted, specifically, whether or not adding the number of credits to the number of loans (the number indicated by the command following the loan request command) will exceed the upper limit of the number of credits.
Here, in step S514, when it is determined that the loan request can be accepted, that is, when it is determined that the credit count plus the loan number is equal to or less than the upper limit of the credit count, the process proceeds to step S161, where the payout control board 100 transmits a loan repeat command to the management device 200 (sends the received loan request command back to the management device 200 as is) (ACK response to the loan request command).Then, the process proceeds to step S164.

これに対し、ステップS514において、貸出し要求を受付け不可であると判断したとき、すなわち、クレジット数に貸出し枚数を加算するとクレジット数の上限値を超えると判断したときは、ステップS515に進み、払出制御基板100は、エラーコマンドを管理装置200に送信する(NAK応答)。そして、ステップS169に進み、払出制御基板100は、エラーフラグをセットする処理を実行する。そして、本フローチャートによる処理を終了する。 On the other hand, if it is determined in step S514 that the loan request cannot be accepted, i.e., if it is determined that adding the loan number to the credit number would exceed the upper limit of the credit number, the process proceeds to step S515, where the payout control board 100 sends an error command to the management device 200 (NAK response). Then, the process proceeds to step S169, where the payout control board 100 executes a process to set an error flag. Then, the process according to this flowchart ends.

ステップS164に進むと、払出制御基板100は、貸出指示コマンドを受信したか否かの判断処理を実行する。
ここで、ステップS164において、貸出指示コマンドを受信したと判断したときは、ステップS167に進み、払出制御基板100は、クレジット数に貸出し枚数を加算する処理を実行する。そして、本フローチャートによる処理を終了する。
When proceeding to step S164, the dispensing control board 100 executes a process to determine whether or not a loan instruction command has been received.
If it is determined in step S164 that a lending instruction command has been received, the process proceeds to step S167, where the payout control board 100 adds the number of cards to be lent to the number of credits, and the process according to this flowchart is then terminated.

これに対し、ステップS164において、貸出指示コマンドを受信していないと判断したときは、ステップS169に進み、払出制御基板100は、エラーフラグをセットする処理を実行する。そして、本フローチャートによる処理を終了する。
なお、図23中のステップS161、S164、S167及びS169と、図11中のステップS161、S164、S167及びS169とは、それぞれ同一の内容の処理である。
On the other hand, if it is determined in step S164 that the lending instruction command has not been received, the process proceeds to step S169, where the dispensing control board 100 executes a process of setting an error flag, and then ends the process according to this flowchart.
It should be noted that steps S161, S164, S167, and S169 in FIG. 23 and steps S161, S164, S167, and S169 in FIG. 11 are identical in content to each other.

図24及び図25は、払出制御基板100及び管理装置200における計数処理の流れを示すフローチャートである。図25は、図24に続くフローチャートである。
図24及び図25中、左側のフローチャートは、払出制御基板100における計数処理の流れを示し、右側のフローチャートは、管理装置200における計数処理の流れを示す。また、図24及び図25中、左右のフローチャートの間の矢印は、計数処理時に払出制御基板100と管理装置200との間で送受信されるコマンドの送信方向を示す。
24 and 25 are flow charts showing the flow of the counting process in the dispensing control board 100 and the management device 200. FIG. 25 is a flow chart continuing from FIG.
24 and 25, the flowchart on the left side shows the flow of the counting process in the dispensing control board 100, and the flowchart on the right side shows the flow of the counting process in the management device 200. Also, in Fig. 24 and 25, the arrows between the left and right flowcharts show the transmission direction of commands transmitted and received between the dispensing control board 100 and the management device 200 during the counting process.

ここで、図12に示す払出制御基板100における計数処理1、並びに図24及び図25中の左側に示す払出制御基板100における計数処理2は、いずれも、図8のステップS117における計数処理のサブルーチンを示しており、一部の処理が重複している。そして、同一の内容の処理には、同一のステップ番号を付している。
ただし、図12に示す払出制御基板100における計数処理1では、計数処理時の処理を詳細に図示している。
これに対し、図24及び図25中の左側に示す払出制御基板100における計数処理2では、払出制御基板100と管理装置200との間におけるコマンドの送受信を説明するために必要な処理を抽出して図示し、それ以外の処理の図示を省略している。
Here, counting process 1 in the dispensing control board 100 shown in Fig. 12 and counting process 2 in the dispensing control board 100 shown on the left side in Fig. 24 and Fig. 25 each show a subroutine of the counting process in step S117 in Fig. 8, and some processes are overlapping. And, the same step numbers are given to processes with the same content.
However, in counting process 1 in the dispensing control board 100 shown in Figure 12, the processing during counting is illustrated in detail.
In contrast, in counting process 2 in the dispensing control board 100 shown on the left side of Figures 24 and 25, the processes necessary to explain the sending and receiving of commands between the dispensing control board 100 and the management device 200 are extracted and illustrated, and other processes are omitted from the illustration.

まず、図24及び図25中の左側に示す払出制御基板100における計数処理について説明する。
ステップS181において、払出制御基板100は、下位計数要求コマンドを管理装置200に送信する。そして、ステップS533に進む。
ステップS533では、払出制御基板100は、応答待機処理を実行する。この処理は、管理装置200から下位計数復唱コマンドが送信されること(下位計数要求コマンドのACK応答)を待つ処理である。
First, the counting process in the dispensing control board 100 shown on the left side in Figures 24 and 25 will be described.
In step S181, the dispensing control board 100 transmits a lower-level counting request command to the management device 200. Then, the process proceeds to step S533.
In step S533, the dispensing control board 100 executes a response waiting process. This process is a process of waiting for a lower-level counting repeat command to be transmitted from the management device 200 (an ACK response to the lower-level counting request command).

そして、下位計数復唱コマンドを受信する(送信した下位計数要求コマンドがそのまま管理装置200から送り返される)と、払出制御基板100は、管理装置200による下位計数要求コマンドのACK応答があったと判断し、ステップS185に進む。
また、管理装置200からエラーコマンドが送信される(NAK応答がある)と、本フローチャートによる処理を終了する。
さらにまた、ステップS181で下位計数要求コマンドを送信してから所定時間が経過しても下位計数復唱コマンドを受信しない(タイムアウトとなる)と、ステップS194に進み、払出制御基板100は、エラーフラグをセットする処理を実行する。そして、本フローチャートによる処理を終了する。
Then, when the lower-level counting repeat command is received (the lower-level counting request command that was sent is sent back as is from the management device 200), the dispensing control board 100 determines that an ACK response to the lower-level counting request command has been received from the management device 200, and proceeds to step S185.
Moreover, if an error command is sent from the management device 200 (a NAK response is received), the process according to this flowchart ends.
Furthermore, if the lower count repeat command is not received within a predetermined time after the lower count request command is sent in step S181 (timeout occurs), the process proceeds to step S194, where the dispensing control board 100 executes a process to set an error flag. Then, the process according to this flowchart ends.

ステップS185に進むと、払出制御基板100は、上位計数要求コマンドを管理装置200に送信する。そして、図25のステップS535に進む。
ステップS535では、払出制御基板100は、応答待機処理を実行する。この処理は、管理装置200から上位計数復唱コマンドが送信されること(上位計数要求コマンドのACK応答)を待つ処理である。
In step S185, the dispensing control board 100 transmits a higher-level count request command to the management device 200. Then, the process proceeds to step S535 in FIG.
In step S535, the dispensing control board 100 executes a response waiting process. This process is a process of waiting for a higher-order count repeat command to be transmitted from the management device 200 (an ACK response to the higher-order count request command).

そして、上位計数復唱コマンドを受信する(送信した上位計数要求コマンドがそのまま管理装置200から送り返される)と、払出制御基板100は、管理装置200による上位計数要求コマンドのACK応答があったと判断し、ステップS189に進む。
これに対し、管理装置200からエラーコマンドが送信される(NAK応答がある)か、又は図24のステップS185で上位計数要求コマンドを送信してから所定時間が経過しても上位計数復唱コマンドを受信しない(タイムアウトとなる)と、ステップS194に進み、払出制御基板100は、エラーフラグをセットする処理を実行する。そして、本フローチャートによる処理を終了する。
なお、図24のステップS538のエラー処理と、図25のステップS538のエラー処理とは、同一の処理である。
Then, when the higher-order counting repeat command is received (the higher-order counting request command that was sent is sent back as is from the management device 200), the dispensing control board 100 determines that an ACK response to the higher-order counting request command has been received from the management device 200, and proceeds to step S189.
In response to this, if an error command is sent from the management device 200 (there is a NAK response), or if the higher-order count repeat command is not received even after a predetermined time has elapsed since the higher-order count request command was sent in step S185 of Fig. 24 (timeout occurs), the process proceeds to step S194, where the dispensing control board 100 executes a process to set an error flag. Then, the process according to this flowchart ends.
The error processing in step S538 in FIG. 24 and the error processing in step S538 in FIG. 25 are the same processing.

ステップS189に進むと、払出制御基板100は、計数指示コマンドを管理装置200に送信し、ステップS191に進む。
ステップS191では、クレジット数をクリアする(「0」にする)処理を実行する。そして、本フローチャートによる処理を終了する。
なお、図24及び図25中のステップS181、S185、S189、S191及びS194と、図12中のステップS181、S185、S189、S191及びS194とは、それぞれ同一の内容の処理である。
When proceeding to step S189, the dispensing control board 100 sends a counting instruction command to the management device 200 and proceeds to step S191.
In step S191, the amount of credits is cleared (set to "0"), and the process according to this flowchart is then terminated.
24 and 25 and steps S181, S185, S189, S191 and S194 in FIG. 12 are identical in content to each other.

次に、図24及び図25中の右側に示す管理装置200における計数処理について説明する。
ステップS631において、管理装置200は、コマンド受信処理を実行する。この処理は、払出制御基板100から送信される下位計数要求コマンドを受信する処理である。そして、下位計数要求コマンドを受信すると、次のステップS632に進む。
Next, the counting process in the management device 200 shown on the right side in FIGS. 24 and 25 will be described.
In step S631, the management device 200 executes a command reception process. This process is a process for receiving a lower-level count request command transmitted from the dispensing control board 100. Then, when the lower-level count request command is received, the process proceeds to the next step S632.

ステップS632に進むと、管理装置200は、受信したコマンドが下位計数要求コマンドであるか否かの判断処理を実行する。
ここで、ステップS632において、受信したコマンドが下位計数要求コマンドであると判断したときは、次のステップS633に進み、管理装置200は、受信した下位計数要求コマンドを所定の記憶領域に記憶(保存)する処理を実行する。そして、次のステップS634に進む。
これに対し、ステップS632において、受信したコマンドが下位計数要求コマンドでないと判断したときは、本フローチャートによる処理を終了する。
In step S632, the management device 200 executes a process of determining whether the received command is a lower-level count request command.
If it is determined in step S632 that the received command is a lower-level count request command, the process proceeds to the next step S633, where the management device 200 executes a process of storing (saving) the received lower-level count request command in a predetermined storage area, and then proceeds to the next step S634.
On the other hand, if it is determined in step S632 that the received command is not a lower-order count request command, the process according to this flowchart ends.

ステップS634に進むと、管理装置200は、計数(払戻し)要求を受付け可能であるか否かの判断処理を実行する。
ここで、ステップS634において、計数(払戻し)要求を受付け可能であると判断したときは、ステップS636に進み、管理装置200は、貸出可LEDを消灯させる処理、貸出スイッチ202の操作を無効(受付け不可)にする処理、及び返却スイッチ203の操作を無効(受付け不可)にする処理を実行する。そして、次のステップS637に進む。
これに対し、ステップS634において、計数(払戻し)要求を受付け不可であると判断したときは、ステップS635に進み、管理装置200は、エラーコマンドを払出制御基板100に送信する(NAK応答)。そして、本フローチャートによる処理を終了する。
In step S634, the management device 200 executes a process of determining whether or not a counting (withdrawal) request can be accepted.
Here, when it is determined in step S634 that the counting (refund) request can be accepted, the process proceeds to step S636, where the management device 200 executes a process of turning off the loan available LED, a process of invalidating (not accepting) the operation of the loan switch 202, and a process of invalidating (not accepting) the operation of the return switch 203. Then, the process proceeds to the next step S637.
On the other hand, if it is determined in step S634 that the counting (withdrawal) request cannot be accepted, the process proceeds to step S635, where the management device 200 transmits an error command to the dispensing control board 100 (NAK response), and the process according to this flowchart is then terminated.

ステップS637に進むと、管理装置200は、下位計数復唱コマンドを払出制御基板100に送信する(受信した下位計数要求コマンドをそのまま払出制御基板100に送り返す)処理を実行する(下位計数要求コマンドのACK応答)。そして、次のステップS638に進む。
ステップS638では、管理装置200は、コマンド受信処理を実行する。この処理は、払出制御基板100から送信される上位計数要求コマンドを受信する処理である。そして、上位計数要求コマンドを受信すると、図25のステップS639に進む。
In step S637, the management device 200 executes a process of transmitting a lower-level counting repeat command to the dispensing control board 100 (sending the received lower-level counting request command back to the dispensing control board 100 as is) (ACK response to the lower-level counting request command). Then, the process proceeds to the next step S638.
In step S638, the management device 200 executes a command reception process. This process is a process for receiving a higher-order count request command transmitted from the dispensing control board 100. Then, when the higher-order count request command is received, the process proceeds to step S639 in FIG.

ステップS639に進むと、管理装置200は、受信したコマンドが上位計数要求コマンドであるか否かの判断処理を実行する。
ここで、ステップS639において、受信したコマンドが上位計数要求コマンドであると判断したときは、ステップS641に進み、管理装置200は、受信した上位計数要求コマンドを所定の記憶領域に記憶(保存)する処理を実行する。そして、ステップS642に進む。
これに対し、ステップS639において、受信したコマンドが上位計数要求コマンドでないと判断したときは、ステップS640に進み、管理装置200は、エラーコマンドを払出制御基板100に送信する(NAK応答)。そして、ステップS647に進み、管理装置200は、エラー処理を実行する。
In step S639, the management device 200 executes a process of determining whether the received command is a higher-order count request command.
If it is determined in step S639 that the received command is a higher-order count request command, the process proceeds to step S641, where the management device 200 executes a process of storing (saving) the received higher-order count request command in a predetermined storage area, and then proceeds to step S642.
On the other hand, if it is determined in step S639 that the received command is not a higher-order count request command, the process proceeds to step S640, where the management device 200 transmits an error command to the payout control board 100 (NAK response). Then, the process proceeds to step S647, where the management device 200 executes error processing.

ステップS642に進むと、管理装置200は、上位計数復唱コマンドを払出制御基板100に送信する(受信した上位計数要求コマンドをそのまま払出制御基板100に送り返す)処理を実行する(ACK応答)。そして、次のステップS643に進む。
ステップS643では、管理装置200は、コマンド受信処理を実行する。この処理は、払出制御基板100から送信される計数指示コマンドを受信する処理である。そして、計数指示コマンドを受信すると、次のステップS644に進む。
In step S642, the management device 200 executes a process of transmitting a higher-order counting repeat command to the dispensing control board 100 (sending the received higher-order counting request command back to the dispensing control board 100 as is) (ACK response). Then, the process proceeds to the next step S643.
In step S643, the management device 200 executes a command reception process. This process is a process for receiving a counting command transmitted from the dispensing control board 100. Then, when the counting command is received, the process proceeds to the next step S644.

ステップS644に進むと、管理装置200は、受信したコマンドが計数指示コマンドであるか否かの判断処理を実行する。
ここで、受信したコマンドが計数指示コマンドであると判断したときは、次のステップS645に進み、管理装置200は、下位計数要求コマンド及び上位計数要求コマンドから特定される払戻し枚数を、管理装置200側で管理する電子メダルの枚数に反映させる処理を実行する。そして、次のステップS646に進む。
これに対し、受信したコマンドが計数指示コマンドでないと判断したときは、ステップS647に進み、管理装置200は、エラー処理を実行する。
In step S644, the management device 200 executes a process of determining whether the received command is a count instruction command.
If it is determined that the received command is a count instruction command, the process proceeds to the next step S645, where the management device 200 executes a process of reflecting the payout number specified from the lower-level count request command and the higher-level count request command in the number of electronic medals managed by the management device 200. Then, the process proceeds to the next step S646.
On the other hand, if it is determined that the received command is not a count instruction command, the process proceeds to step S647, and the management device 200 executes error processing.

ステップS646に進むと、管理装置200は、貸出可LEDを点灯させる処理、貸出スイッチ202の操作を有効(受付け可能)にする処理、及び返却スイッチ203の操作を有効(受付け可能)にする処理を実行する。そして、本フローチャートによる処理を終了する。 When the process proceeds to step S646, the management device 200 executes a process of turning on the loan available LED, a process of enabling (enabling) the operation of the loan switch 202, and a process of enabling (enabling) the operation of the return switch 203. Then, the process according to this flowchart ends.

図26は、払出制御基板100と管理装置200との間におけるシリアル通信のデータ信号及びストローブ信号の波形を示す図である。
図23~図25では、払出制御基板100と管理装置200との間で送受信されるコマンドとして、貸出要求コマンド、下位計数要求コマンド、上位計数要求コマンド等を示したが、これらのコマンドは、上述したように、先行コマンド(上位8ビット)及び後続コマンド(下位8ビット)から構成されている。
Figure 26 is a diagram showing the waveforms of the data signal and strobe signal of serial communication between the dispensing control board 100 and the management device 200.
Figures 23 to 25 show commands such as a loan request command, a lower counting request command, and a higher counting request command sent and received between the dispensing control board 100 and the management device 200, but as described above, these commands are composed of a preceding command (upper 8 bits) and a subsequent command (lower 8 bits).

そして、図26では、これらのコマンドを構成する先行コマンドや後続コマンドを1つの単位とし、そのデータ信号及びストローブ信号の波形を示している。
図26に示すように、払出制御基板100と管理装置200との間では、データ信号をD0ビット(DB0)からD7ビット(DB7)まで1ビットずつ送信するとともに、これらをストローブ信号がオンのタイミングで1ビットずつ読み取らせるようにしている。
In FIG. 26, the preceding command and the following command that make up these commands are treated as one unit, and the waveforms of the data signals and strobe signals are shown.
As shown in Figure 26, data signals are transmitted one bit at a time between the dispensing control board 100 and the management device 200, from bit D0 (DB0) to bit D7 (DB7), and these are read one bit at a time when the strobe signal is on.

図27は、電子メダル貸出し時における各信号のオン/オフを示すタイミングチャートである。
図23では、電子メダル貸出し時に払出制御基板100と管理装置200との間で送受信されるコマンドを示したが、図27は、電子メダル貸出し時における払出制御基板100及び管理装置200の各信号のオン/オフのタイミングを示している。
FIG. 27 is a timing chart showing the on/off states of each signal when an electronic medal is lent.
Figure 23 shows the commands sent and received between the payout control board 100 and the management device 200 when an electronic medal is lent, while Figure 27 shows the on/off timing of each signal of the payout control board 100 and the management device 200 when an electronic medal is lent.

図27に示すように、スロットマシン10及び管理装置200の電源がオンになると、その後、管理装置200の返却スイッチ203の操作が受付け可能になる。
その後、スロットマシン10の払出制御基板100及び管理装置200のデータ信号が「0」になり、スロットマシン10の払出制御基板100及び管理装置200のストローブ信号がオフになる。
その後、管理装置200の貸出スイッチ202の操作が受付け可能になり、動作状態が待機状態から通常状態となる。なお、通常状態は、管理装置200による電子メダルの貸出しが可能であり、スロットマシン10での遊技の進行が可能な状態を意味する。
As shown in FIG. 27, when the slot machine 10 and the management device 200 are powered on, the operation of the return switch 203 of the management device 200 becomes acceptable.
After that, the data signals of the payout control board 100 of the slot machine 10 and the management device 200 become "0", and the strobe signals of the payout control board 100 of the slot machine 10 and the management device 200 turn off.
Thereafter, the management device 200 becomes capable of accepting operation of the lending switch 202, and the operating state changes from the standby state to the normal state. Note that the normal state means a state in which the management device 200 is capable of lending electronic medals, and the game on the slot machine 10 is capable of proceeding.

そして、管理装置200の貸出スイッチ202の操作(オン)が検知されると、まず、管理装置200の貸出スイッチ202及び返却スイッチ203の操作が受付け不可になり、その後、管理装置200からスロットマシン10の払出制御基板100に貸出要求コマンドの先行コマンド及び後続コマンドが順次送信される。
その後、スロットマシン10の払出制御基板100から管理装置200に貸出復唱コマンドの先行コマンド及び後続コマンドが順次送信される。
その後、管理装置200からスロットマシン10の払出制御基板100に貸出指示コマンドの先行コマンド及び後続コマンドが順次送信される。
そして、貸出指示コマンドの送信が完了すると、管理装置200の貸出スイッチ202及び返却スイッチ203の操作が受付け可能になる。
Then, when operation (on) of the loan switch 202 of the management device 200 is detected, first, operation of the loan switch 202 and return switch 203 of the management device 200 is rendered unacceptable, and then the preceding command and succeeding command of the loan request command are sequentially sent from the management device 200 to the payout control board 100 of the slot machine 10.
Thereafter, the preceding command and the succeeding command of the loan replay command are sequentially transmitted from the payout control board 100 of the slot machine 10 to the management device 200 .
Thereafter, the management device 200 sequentially transmits the preceding command and the succeeding command of the lending instruction command to the payout control board 100 of the slot machine 10 .
Then, when the transmission of the lending instruction command is completed, the management device 200 becomes ready to accept operations of the lending switch 202 and the return switch 203 .

図28は、電子メダル計数(払戻し)時における各信号のオン/オフを示すタイミングチャートである。
図24及び図25では、電子メダル計数時に払出制御基板100と管理装置200との間で送受信されるコマンドを示したが、図28は、電子メダル計数時における払出制御基板100及び管理装置200の各信号のオン/オフのタイミングを示している。
FIG. 28 is a timing chart showing the on/off states of each signal during counting (withdrawal) of electronic medals.
Figures 24 and 25 show the commands sent and received between the payout control board 100 and the management device 200 when counting electronic medals, while Figure 28 shows the on/off timing of each signal of the payout control board 100 and the management device 200 when counting electronic medals.

図28に示すように、スロットマシン10及び管理装置200の電源がオンになると、その後、管理装置200の返却スイッチ203の操作が受付け可能になる。
その後、スロットマシン10の払出制御基板100及び管理装置200のデータ信号が「0」になり、スロットマシン10の払出制御基板100及び管理装置200のストローブ信号がオフになる。
その後、管理装置200の貸出スイッチ202の操作が受付け可能になり、動作状態が待機状態から通常状態となる。ここまでは、図27と同様である。
As shown in FIG. 28, when the slot machine 10 and the management device 200 are powered on, the operation of the return switch 203 of the management device 200 becomes acceptable.
After that, the data signals of the payout control board 100 of the slot machine 10 and the management device 200 become "0", and the strobe signals of the payout control board 100 of the slot machine 10 and the management device 200 turn off.
Thereafter, the management device 200 becomes ready to accept operations of the lending switch 202, and the operating state changes from the standby state to the normal state. Up to this point, the process is the same as in FIG.

そして、スロットマシン10の計数スイッチ47の操作(オン)が検知されると、まず、管理装置200の貸出スイッチ202及び返却スイッチ203の操作が受付け不可になり、その後、スロットマシン10の払出制御基板100から管理装置200に下位計数要求コマンドの先行コマンド及び後続コマンドが順次送信される。
その後、管理装置200からスロットマシン10の払出制御基板100に下位計数復唱コマンドの先行コマンド及び後続コマンドが順次送信される。
Then, when operation (on) of the counting switch 47 of the slot machine 10 is detected, first, operation of the loan switch 202 and the return switch 203 of the management device 200 is rendered unacceptable, and then the preceding command and the succeeding command of the lower-level counting request command are sequentially transmitted from the payout control board 100 of the slot machine 10 to the management device 200.
Thereafter, the management device 200 sequentially transmits the preceding command and the succeeding command of the lower count replay command to the payout control board 100 of the slot machine 10 .

その後、スロットマシン10の払出制御基板100から管理装置200に上位計数要求コマンドの先行コマンド及び後続コマンドが順次送信される。
その後、管理装置200からスロットマシン10の払出制御基板100に上位計数復唱コマンドの先行コマンド及び後続コマンドが順次送信される。
その後、スロットマシン10の払出制御基板100から管理装置200に計数指示コマンドの先行コマンド及び後続コマンドが順次送信される。
そして、計数指示コマンドの送信が完了すると、管理装置200の貸出スイッチ202及び返却スイッチ203の操作が受付け可能になる。
Thereafter, the preceding command and the succeeding command of the higher-level count request command are sequentially transmitted from the payout control board 100 of the slot machine 10 to the management device 200 .
Thereafter, the management device 200 sequentially transmits the preceding command and the succeeding command of the higher-order count replay command to the payout control board 100 of the slot machine 10 .
Thereafter, the payout control board 100 of the slot machine 10 sequentially transmits the preceding command and the succeeding command of the count instruction command to the management device 200 .
Then, when the transmission of the count instruction command is completed, the management device 200 becomes ready to accept operations of the lending switch 202 and the return switch 203 .

以上、本発明の第1実施形態について説明したが、本発明は、上述した内容に限定されるものではなく、たとえば以下のような種々の変形が可能である。
(1)本実施形態では、図4~図7に示す各種コマンドは、先行コマンド(上位8ビット)及び後続コマンド(下位8ビット)からなる16ビットのデータで構成されるとしたが、これに限らず、たとえば、8ビットとしてもよく、32ビットとしてもよい。
Although the first embodiment of the present invention has been described above, the present invention is not limited to the above-mentioned content, and various modifications such as those described below are possible.
(1) In this embodiment, the various commands shown in FIGS. 4 to 7 are configured as 16-bit data consisting of a preceding command (upper 8 bits) and a succeeding command (lower 8 bits). However, the present invention is not limited to this and may be configured as, for example, 8 bits or 32 bits.

(2)本実施形態では、メイン制御基板50と払出制御基板100との間、及び払出制御基板100と管理装置200との間では、シリアル通信でコマンドの送受信を行うとしたが、これに限らず、パラレル通信としてもよく、シリアル通信とパラレル通信とを併用してもよい。
(3)本実施形態では、メイン制御基板50は、3ベットスイッチ40bのオン時に、払出制御基板100に対し、1枚投入要求コマンドを3回送信する例を示したが、これに限らず、3枚投入要求コマンドを1回送信してもよい。
(2) In this embodiment, commands are sent and received via serial communication between the main control board 50 and the dispensing control board 100, and between the dispensing control board 100 and the management device 200, but this is not limited to this, and parallel communication may also be used, or serial communication and parallel communication may be used in combination.
(3) In this embodiment, an example is shown in which the main control board 50 sends a one-coin insertion request command three times to the payout control board 100 when the 3-bet switch 40b is turned on, but this is not limited to this, and the main control board 50 may also send a three-coin insertion request command once.

(4)本実施形態では、メイン制御基板50は、第3ストップスイッチ42がオンからオフになった時に、払出制御基板100に対し、払出要求コマンドを送信したが、これに限らず、全リール31停止時に、払出要求コマンドを送信してもよい。
(5)本実施形態では、メイン制御基板50は、役の非入賞時にも、第3ストップスイッチ42がオンからオフになった時に、払出制御基板100に対し、払出し枚数が「0」である払出要求コマンドを送信したが、これに限らず、役の非入賞時には、払出要求コマンドを送信しなくてもよい。
(4) In this embodiment, the main control board 50 sent a payout request command to the payout control board 100 when the third stop switch 42 changed from on to off, but this is not limited to this, and the payout request command may also be sent when all reels 31 have stopped.
(5) In this embodiment, when the third stop switch 42 changes from on to off, the main control board 50 sends a payout request command with the number of coins to be paid out being “0” to the payout control board 100, even when no winning combination is achieved. However, this is not limited to the above, and it is not necessary for the main control board 50 to send a payout request command when no winning combination is achieved.

(6)本実施形態では、遊技機の1つとしてスロットマシン10を例に挙げたが、スロットマシン10は、風営法の適用を受ける第4号営業店に設置される「回胴式遊技機」(いわゆる「パチスロ遊技機」)に限られるものではなく、たとえばカジノマシンにも適用することができる。また、本発明をぱちんこ遊技機に適用してもよい。
(7)本明細書に記載のすべての実施形態及び各種の変形例は、単独で実施されることに限らず、適宜組み合わせて実施することが可能である。
(6) In this embodiment, the slot machine 10 is taken as an example of one of the gaming machines, but the slot machine 10 is not limited to a "reel type gaming machine" (so-called "pachislot gaming machine") installed in a type 4 business hall that is subject to the Entertainment and Amusement Act, and can also be applied to, for example, a casino machine. In addition, the present invention may be applied to a pachinko gaming machine.
(7) All of the embodiments and various modified examples described in this specification are not limited to being implemented alone, but can be implemented in any appropriate combination.

<第2実施形態>
第2実施形態の遊技機10は、第1実施形態と同様に、有体物としてのメダルを用いないメダルレス遊技機である。
ここで、「メダルレス遊技機」の称呼における「メダルレス」とは、有体物としてのメダルを用いないことを意味する。
このため、「メダルレス遊技機」であっても、遊技の用に供する遊技媒体(遊技価値)を用いることは従来の遊技機と同様であり、メダルレス遊技機における遊技の用に供する遊技媒体についても単に「メダル」と称する場合がある。
したがって、「メダル」と称するときは、有体物としてのメダルだけに限らず、無体物としてのメダル(たとえば、電子データ)を指す場合もある。
また、無体物としてのメダルは、遊技媒体、遊技価値、得点(又は単に「点」)、電子メダル、電子データ、電子情報、電子遊技媒体、電子遊技価値等と称する場合がある。以下の第2実施形態の説明では、遊技機10(メダルレス遊技機)に用いられる無体物としての「メダル」を「遊技媒体」と称する。
Second Embodiment
The gaming machine 10 of the second embodiment is a medal-less gaming machine that does not use medals as tangible objects, similar to the first embodiment.
Here, the term "medalless gaming machine" refers to a machine that does not use medals as physical objects.
For this reason, even though it is a "medalless gaming machine," it is the same as conventional gaming machines in that it uses gaming media (gaming value) for play, and the gaming media used for play in a medalless gaming machine are sometimes simply referred to as "medals."
Therefore, when referring to a "medal," it does not only refer to a tangible object, but may also refer to an intangible object (for example, electronic data).
Furthermore, medals as intangible objects may be referred to as game media, game value, points (or simply "points"), electronic medals, electronic data, electronic information, electronic game media, electronic game value, etc. In the following description of the second embodiment, "medals" as intangible objects used in the gaming machine 10 (medalless gaming machine) are referred to as "game media".

「貸出し」とは、遊技に必要な遊技媒体を、貸出ユニット200から遊技機10に送信することをいう。
「クレジット」とは、遊技機10に遊技媒体を記憶(貯留、クレジット)することをいう。「クレジットされている遊技媒体」とは、遊技媒体数制御基板100のRWM103に記憶されているデータに相当する。
「ベット」とは、遊技を行うために遊技媒体を賭けることをいう。ベットスイッチ40(1ベットスイッチ40a又は3ベットスイッチ40b)を操作すると、遊技媒体数制御基板100のRWM103に記憶されているデータに相当する遊技媒体から、所定数の遊技媒体がベットされる。
「ベット」は、「投入」とも称される。なお、「投入」とは、実際のメダルをメダル投入口から遊技機内に入れることのみを指すのではなく、ベットスイッチ40の操作により、遊技媒体(電子メダル)をベットすることも含まれる。
"Lending" refers to transmitting gaming media necessary for playing a game from the lending unit 200 to the gaming machine 10.
The term "credit" refers to storing (accumulating, crediting) gaming media in the gaming machine 10. The term "credited gaming media" corresponds to data stored in the RWM 103 of the gaming media count control board 100.
A "bet" refers to placing a bet on gaming media to play a game. When the bet switch 40 (the 1 bet switch 40a or the 3 bet switch 40b) is operated, a predetermined number of gaming media is bet from among the gaming media corresponding to the data stored in the RWM 103 of the gaming media count control board 100.
"Bet" is also called "insertion." Note that "insertion" does not only refer to inserting actual medals into the gaming machine through the medal insertion slot, but also includes betting gaming media (electronic medals) by operating the bet switch 40.

「精算」とは、ベットされている遊技媒体を遊技媒体数制御基板100のRWM103に(クレジットに)戻すことをいい、精算スイッチ46を操作することにより行う。「精算」は、「返却」や「キャンセル」と称される場合がある。したがって、「精算スイッチ46」を「返却スイッチ46」や「キャンセルスイッチ46」と称する場合がある。
遊技媒体が遊技媒体数制御基板100のRWM103内にデータとして記憶(クレジット)されている状況下で、ベットスイッチ40が操作されると、所定数の遊技媒体がベットされ(ベット数として加算され)、ベットされた数だけ遊技媒体数制御基板100のRWM103のデータ(クレジット数)が減算される。一方、遊技媒体がベットされている状況下において精算スイッチ46が操作されると、それまでのベット数(遊技媒体数)が「0」になり、かつ、それまでのベット数が遊技媒体数制御基板100のRWM103に加算される(クレジットに戻される)。
"Settlement" refers to returning the bet game media to the RWM 103 of the game media count control board 100 (to credits), and is performed by operating the settlement switch 46. "Settlement" may also be called "return" or "cancellation." Therefore, the "settlement switch 46" may also be called the "return switch 46" or the "cancellation switch 46."
When the bet switch 40 is operated in a situation where gaming media are stored as data (credits) in the RWM 103 of the gaming media number control board 100, a predetermined number of gaming media are bet (added as the number of bets), and the data (number of credits) in the RWM 103 of the gaming media number control board 100 is subtracted by the number of bets. On the other hand, when the settlement switch 46 is operated in a situation where gaming media have been bet, the number of bets (number of gaming media) up to that point becomes "0", and the number of bets up to that point is added to the RWM 103 of the gaming media number control board 100 (returned to credits).

「付与」とは、役の入賞に基づき、入賞役の配当に対応する数の遊技媒体を遊技機10に記憶されているクレジット数に加算するこという。
「付与」は、「払出し」とも称する。なお、「払出し」とは、実際のメダルをメダル返却口から排出することのみを指すのではなく、小役の入賞時に、遊技媒体数制御基板100のRWM103に記憶された遊技媒体数に、当該小役の入賞に対応する数の遊技媒体数を加算する処理も、「払出し(処理)」に含まれる。
第2実施形態では、第1実施形態における「払出し手段67」を、「付与数制御手段67」と称する。
「計数」とは、遊技機10(遊技媒体数制御基板100のRWM103)に記憶されている(クレジットされている)遊技媒体を、貸出ユニット200に戻すことをいい、計数スイッチ47の操作によって行われる。計数スイッチ47が操作されると、遊技機10に記憶された所定数の遊技媒体が減算されるとともに、減算された分の遊技媒体が貸出ユニット300側に加算される。
The term "award" refers to adding a number of gaming media corresponding to the payout of a winning combination to the credit amount stored in the gaming machine 10 based on the winning combination.
"Awarding" is also called "payout." Note that "payout" does not only refer to the discharge of actual medals from the medal return port, but also includes the process of adding the number of game media stored in the RWM 103 of the game media count control board 100, the number of game media corresponding to the winning of the minor winning combination, to the number of game media stored in the RWM 103 of the game media count control board 100, when the minor winning combination is won.
In the second embodiment, the "payout means 67" in the first embodiment is referred to as "amount of award control means 67".
"Counting" refers to returning (credited) gaming media stored in the gaming machine 10 (RWM 103 of the gaming media count control board 100) to the lending unit 200, and is performed by operating the counting switch 47. When the counting switch 47 is operated, a predetermined number of gaming media stored in the gaming machine 10 is subtracted, and the subtracted amount of gaming media is added to the lending unit 300 side.

貸出ユニット200からの遊技媒体の「返却」とは、貸出ユニット200に記憶されている遊技媒体数を、遊技媒体数記憶媒体(磁気カード、ICカード、ICコイン等)に記憶して、外部(遊技者)に排出することをいう。貸出ユニット200に記憶されている遊技媒体数を遊技媒体数記憶媒体に記憶する場合には、リーダライタが用いられる(貸出ユニット200には、リーダライタが内蔵されている)。
なお、上述したように、「精算」を「返却」と称する場合があると説明したが、第2実施形態において「返却」というときは、貸出ユニット200に記憶されている遊技媒体数を、遊技媒体数記憶媒体に記憶して、外部(遊技者)に排出することをいうものとする。
"Returning" game media from the rental unit 200 means storing the number of game media stored in the rental unit 200 in a game media number storage medium (magnetic card, IC card, IC coin, etc.) and discharging it to the outside (player). When storing the number of game media stored in the rental unit 200 in the game media number storage medium, a reader/writer is used (the rental unit 200 has a built-in reader/writer).
As mentioned above, "settlement" may be referred to as "return," but in the second embodiment, "return" refers to storing the number of gaming media stored in the lending unit 200 in a gaming media number storage medium and discharging it to the outside (player).

第2実施形態で用いられる設定値表示手段73や役比モニタ113等のLEDは、各桁が7セグメントから構成されている。そして、「7セグメント」とは、7つのセグメント素子に加え、DP(デシマルポイント)セグメントを有するものである。 The LEDs used in the second embodiment, such as the set value display means 73 and the role ratio monitor 113, each digit is composed of seven segments. And "seven segments" means that in addition to seven segment elements, they also have a DP (decimal point) segment.

「通知」とは、遊技機10から貸出ユニット200に対して、又は貸出ユニット200から遊技機10に対して電文を送信(出力)することに相当し、「送信」、「出力」と同義である。
以下では、たとえば遊技機情報通知を「送信する」と称する場合もあり、あるいは、たとえば遊技機情報を「通知する」と称する場合もある。
"Notification" corresponds to sending (outputting) a message from the gaming machine 10 to the rental unit 200, or from the rental unit 200 to the gaming machine 10, and is synonymous with "transmission" and "output."
In the following, for example, the gaming machine information notification may be referred to as "sending" the gaming machine information notification, or, for example, the gaming machine information may be referred to as "notifying" the gaming machine information.

RWMやROMの記憶域の少なくとも一部を、「記憶領域」と称する場合と「記憶手段」と称する場合とがあり、両者は、同義である。
また、(主、副等の)制御基板を「制御手段」と称する場合もある。さらに、CPUを「制御手段」と称する場合もある。
At least a part of the storage area of the RWM or ROM may be referred to as a "storage area" or a "storage means", both of which have the same meaning.
Also, a control board (main, sub, etc.) may be referred to as a "control means." Furthermore, a CPU may be referred to as a "control means."

図29は、第2実施形態における遊技機10(スロットマシン)のブロック図を示す図である。なお、第1実施形態では「スロットマシン10」と称したが、第2実施形態では「遊技機10」と称する。
また、第1実施形態では「メイン制御基板50」と称したが、第2実施形態では「主制御基板50」と称する。同様に、第1実施形態では「サブ制御基板80」と称したが、第2実施形態では「副制御基板80」と称する。ただし、主制御基板をメイン制御基板と称してもよく、副制御基板をサブ制御基板と称してもよい(いずれも同じ意味である)。
また、第1実施形態では「払出制御基板100」と称したが、第2実施形態では「遊技媒体数制御基板100」と称する。ただし、遊技媒体数制御基板を払出制御基板と称してもよく、両者は同じ意味である。
29 is a block diagram of the gaming machine 10 (slot machine) in the second embodiment. Note that, although the gaming machine 10 is called the "slot machine 10" in the first embodiment, the gaming machine 10 is called the "gaming machine 10" in the second embodiment.
Also, in the first embodiment, it is referred to as the "main control board 50", but in the second embodiment, it is referred to as the "main control board 50". Similarly, in the first embodiment, it is referred to as the "sub-control board 80", but in the second embodiment, it is referred to as the "sub-control board 80". However, the main control board may be referred to as the main control board, and the sub-control board may be referred to as the sub-control board (both have the same meaning).
In addition, in the first embodiment, it is referred to as the "payout control board 100", but in the second embodiment, it is referred to as the "game media number control board 100". However, the game media number control board may also be referred to as the payout control board, and both have the same meaning.

さらにまた、第1実施形態では「クレジット数表示LED76」と称したが、第2実施形態では「遊技媒体数表示部121」と称する。両者は同じ機能を有し、たとえば5桁のLEDから構成されている。
さらに、第1実施形態では「獲得数表示LED78」と称したが、第2実施形態では「付与数表示部78」と称する。両者は同じ機能を有し、たとえば2桁のLEDから構成されている。
Furthermore, in the first embodiment, it is called the "credit number display LED 76", but in the second embodiment, it is called the "game media number display unit 121". Both have the same function and are composed of, for example, a five-digit LED.
Furthermore, in the first embodiment, it is called the "acquired number display LED 78", but in the second embodiment, it is called the "award number display unit 78". Both have the same function and are composed of, for example, a two-digit LED.

主制御基板50を主制御基板の1つと見たとき、遊技媒体数制御基板100は、主制御基板の他の1つである。このため、主制御基板50のRWM53、ROM54、CPU55は、それぞれ第1主制御RWM53、第1主制御ROM54、第1主制御CPU55と称される場合がある。
また、遊技媒体数制御基板100のRWM103、ROM104、CPU105は、それぞれ第2主制御RWM103、第2主制御ROM14、第2主制御CPU105と称される場合がある。
When the main control board 50 is regarded as one of the main control boards, the game media number control board 100 is the other of the main control boards. For this reason, the RWM 53, ROM 54, and CPU 55 of the main control board 50 may be referred to as the first main control RWM 53, the first main control ROM 54, and the first main control CPU 55, respectively.
In addition, the RWM 103, ROM 104, and CPU 105 of the game media number control board 100 may be referred to as a second main control RWM 103, a second main control ROM 14, and a second main control CPU 105, respectively.

さらにまた、第1実施形態では「管理装置(CRユニット)200」と称したが、第2実施形態では「貸出ユニット200」と称する。両者は同じ機能を有する。また、貸出ユニット200は「専用ユニット200」と称される場合もある。
1つの遊技機10に対して1つの貸出ユニット200が設けられている。換言すれば、1つの貸出ユニット200は、1つの遊技機10専用の装置である。
これに対し、貸出ユニット200と電気的に接続されているホールコンピュータ300は、貸出ユニット200ごとに設けられていてもよく、あるいは複数の貸出ユニット200あたり1つのホールコンピュータ300が設けられていてもよい。
同様に、貸出ユニット200と電気的に接続されている管理コンピュータ400は、貸出ユニット200ごとに設けられていてもよく(貸出ユニット200と管理コンピュータ400とが一対一接続であってもよく)、あるいは複数の貸出ユニット200あたり1つの管理コンピュータ400が設けられていてもよい。
Furthermore, in the first embodiment, the management device (CR unit) 200 is referred to as a "management device (CR unit) 200", but in the second embodiment, the rental unit 200 is referred to as a "rental unit 200". Both have the same function. The rental unit 200 may also be referred to as a "dedicated unit 200".
One lending unit 200 is provided for one gaming machine 10. In other words, one lending unit 200 is a device dedicated to one gaming machine 10.
In contrast, the hall computer 300 electrically connected to the lending unit 200 may be provided for each lending unit 200, or one hall computer 300 may be provided for multiple lending units 200.
Similarly, the management computer 400 electrically connected to the lending unit 200 may be provided for each lending unit 200 (the lending unit 200 and the management computer 400 may be connected one-to-one), or one management computer 400 may be provided for multiple lending units 200.

ホールコンピュータ300は、ホール営業のためのデータ収集用のコンピュータである。たとえば当日の遊技回数、イン(投入)数、アウト(付与)数、MY(差数、差枚数)、役物作動回数、貸出数等を集計する。
管理コンピュータ400は、外部(ホール外のたとえば外部センタ)に情報を送信するためのコンピュータである。なお、管理コンピュータ400についても、ホールコンピュータ300と同様に、ホール内に設置されている。
図29では、ホールコンピュータ300と管理コンピュータ400とを別に設けているが、これらが1つになったコンピュータとしてもよい。
The hall computer 300 is a computer for collecting data for the operation of the hall, such as the number of games played on the day, the number of ins (throws in), the number of outs (awarded), MY (number of differences, number of coins difference), the number of times the device was activated, the number of loans, etc.
The control computer 400 is a computer for transmitting information to the outside (for example, an external center outside the hall). Like the hall computer 300, the control computer 400 is also installed in the hall.
In FIG. 29, the hall computer 300 and the management computer 400 are provided separately, but these may also be integrated into one computer.

主制御基板50において、RWM53の記憶領域の一部として、ベット数記憶手段53a及び付与数記憶手段53bが設けられている。
ベット数記憶手段53aは、現時点でのベット数を記憶するものである。
一方、主制御基板50には、ベット数表示部77が接続されている。ベット数表示部77は、ベット数記憶手段53aに記憶されているベット数を表示する装置であり、たとえば2桁のLEDから構成されている。
また、付与数記憶手段53bは、小役の入賞に基づき所定数の遊技媒体が付与されたときに、遊技媒体の付与数を記憶するものである。
一方、主制御基板50には、付与数表示部78が接続されている。付与数表示部78は、付与数記憶手段53bに記憶されている付与数を表示する装置であり、たとえば2桁のLEDから構成されている。
In the main control board 50, as part of the memory area of the RWM 53, a bet number memory means 53a and an award number memory means 53b are provided.
The bet number storage means 53a stores the current number of bets.
Meanwhile, a bet number display unit 77 is connected to the main control board 50. The bet number display unit 77 is a device that displays the bet number stored in the bet number storage means 53a, and is composed of, for example, a two-digit LED.
The awarded number storage means 53b stores the number of awarded game media when a predetermined number of game media are awarded based on the winning of a minor combination.
Meanwhile, a number-of-gifts display unit 78 is connected to the main control board 50. The number-of-gifts display unit 78 is a device that displays the number of gifts stored in the number-of-gifts storage means 53b, and is composed of, for example, a two-digit LED.

さらにまた、第1実施形態(図1)では図示していないが、主制御基板50上には、設定値表示手段73が搭載されている。設定値表示手段73はたとえば1桁のLEDから構成され、設定変更状態や設定確認状態において、現設定値を表示可能とする。一方、後述する役比モニタ113は、主制御基板50ではなく遊技媒体数制御基板100上に搭載されている。ただし、これに限らず、主制御基板50上に役比モニタ113を搭載してもよい。 Furthermore, although not shown in the first embodiment (Figure 1), a setting value display means 73 is mounted on the main control board 50. The setting value display means 73 is composed of, for example, a single-digit LED, and can display the current setting value in the setting change state or setting confirmation state. On the other hand, the role ratio monitor 113, which will be described later, is mounted on the game media number control board 100, not on the main control board 50. However, this is not limiting, and the role ratio monitor 113 may also be mounted on the main control board 50.

遊技媒体数制御基板100は、第2主制御基板(手段)、払出制御基板(手段)、メダル数制御基板(手段)、メダル数表示制御基板(手段)、又は遊技媒体数表示制御基板(手段)等とも称される。遊技媒体数制御基板100は、主制御基板50と同様に、不正防止のためのセキュリティ性が求められるため、基板ケース内に収容され、カシメ(封印部材)により封印することによって、基板ケースの開放(遊技媒体数制御基板100内へのアクセス)が困難となるように構成されている。 The gaming media number control board 100 is also referred to as the second main control board (means), payout control board (means), medal count control board (means), medal count display control board (means), or gaming media number display control board (means). Like the main control board 50, the gaming media number control board 100 requires security to prevent fraud, and is therefore housed in a board case and sealed with a crimp (sealing member) to make it difficult to open the board case (access to the gaming media number control board 100).

遊技媒体数制御基板100は、主制御基板50と同様に、独立したRWM103、ROM104、CPU105を備える。これらのRWM103、ROM104、CPU105は、1つのチップ内に内蔵されていてもよい。遊技媒体数制御基板100は、遊技媒体数表示部121の表示制御や、接続端子板130を介して貸出ユニット200に対して情報を送信したり、接続端子板130を介して貸出ユニット200から情報を受信可能となるように構成されている。また、主制御基板50に対して情報を送信したり、主制御基板50から情報を受信可能となるように構成されている。図29中、各基板間の矢印の向きが情報の送受信方向を示している。したがって、主制御基板50と遊技媒体数制御基板100とは双方向通信が可能に構成されている。 Like the main control board 50, the game media count control board 100 has an independent RWM 103, ROM 104, and CPU 105. These RWM 103, ROM 104, and CPU 105 may be built into a single chip. The game media count control board 100 is configured to control the display of the game media count display unit 121, transmit information to the lending unit 200 via the connection terminal board 130, and receive information from the lending unit 200 via the connection terminal board 130. It is also configured to transmit information to the main control board 50 and receive information from the main control board 50. In FIG. 29, the direction of the arrows between each board indicates the direction of transmission and reception of information. Therefore, the main control board 50 and the game media count control board 100 are configured to be able to communicate bidirectionally.

なお、図29では、主制御基板50と遊技媒体数制御基板100とを別体から構成しているが、1つの主制御基板から構成することも可能である。ただし、この場合も、1基板上に、第1主制御RWM53、第1主制御ROM54、第1主制御CPU55、第2主制御RWM103、第2主制御ROM104、第2主制御CPU105が設けられることになる。 In FIG. 29, the main control board 50 and the game media number control board 100 are configured as separate bodies, but it is also possible to configure them from a single main control board. However, even in this case, the first main control RWM 53, the first main control ROM 54, the first main control CPU 55, the second main control RWM 103, the second main control ROM 104, and the second main control CPU 105 will be provided on one board.

遊技媒体数制御基板100のRWM103には、遊技媒体数(クレジット数)を記憶する遊技媒体数記憶手段103a(「遊技媒体数記憶領域(_NB_MEDAL )」とも称する。)を備える。小役の入賞により遊技媒体が付与されるときには、遊技媒体数記憶手段103aの遊技媒体数(データ)が更新(加算)される。
また、遊技を開始するために遊技媒体がベットされると、ベット数に対応する遊技媒体数だけ、遊技媒体数記憶手段103aの遊技媒体(データ)が更新(減算)される。
The RWM 103 of the game media count control board 100 includes game media count storage means 103a (also referred to as a "game media count storage area (_NB_MEDAL)") for storing the number of game media (number of credits). When game media are awarded as a result of a small winning combination, the number of game media (data) in the game media count storage means 103a is updated (added).
Furthermore, when gaming media are bet to start a game, the gaming media (data) in the gaming media number storage means 103a are updated (subtracted) by the number of gaming media corresponding to the number of bets.

また、遊技媒体数制御基板100には、遊技媒体数表示基板120が電気的に接続されている。この遊技媒体数表示基板120上には、遊技媒体数表示部121が搭載されている。遊技媒体数表示部121は、遊技媒体数記憶手段103aに記憶されている遊技媒体数を表示するものであり、たとえば5桁のLEDから構成される。
たとえば、遊技媒体数記憶手段103aに遊技媒体数として「100」が記憶されていると仮定する。この場合に、遊技媒体数表示部121には「100」と表示される。
A game media number display board 120 is electrically connected to the game media number control board 100. A game media number display unit 121 is mounted on this game media number display board 120. The game media number display unit 121 displays the number of game media stored in the game media number storage means 103a, and is composed of, for example, a five-digit LED.
For example, assume that the number of game media stored in the game medium number storage means 103a is "100." In this case, the game medium number display unit 121 displays "100."

遊技を開始するために3ベットスイッチ40bが操作されると、そのベット操作信号が主制御基板50から遊技媒体数制御基板100に送信される。遊技媒体数制御基板100は、遊技媒体数記憶手段103aに記憶された遊技媒体数に基づいて、当該ベットが可能であるか否かを判断し、ベット可能であると判断したときは、主制御基板50に対してベット信号を送信する。主制御基板50は、当該ベット信号を受信すると、ベット処理を実行し、ベット数記憶手段53aにベット数を記憶する。ベット数記憶手段53aに記憶されたベット数が「0」から「3」に更新されると、ベット数表示部77の表示(下一桁)も「0」から「3」に更新される。 When the 3 bet switch 40b is operated to start a game, the bet operation signal is sent from the main control board 50 to the gaming media count control board 100. The gaming media count control board 100 determines whether or not the bet is possible based on the number of gaming media stored in the gaming media count storage means 103a, and when it determines that the bet is possible, it sends a bet signal to the main control board 50. When the main control board 50 receives the bet signal, it executes a bet process and stores the number of bets in the bet count storage means 53a. When the number of bets stored in the bet count storage means 53a is updated from "0" to "3", the display (lowest digit) of the bet number display unit 77 is also updated from "0" to "3".

また、遊技媒体数制御基板100は、上記のように主制御基板50に対してベット信号を送信すると、遊技媒体数記憶手段103aに記憶された遊技媒体数を更新する。この例では、遊技媒体数を「100」から「97」に更新する。遊技媒体数記憶手段103aに記憶された遊技媒体数が「100」から「97」に更新されると、遊技媒体数表示部121の表示も「100」から「97」に更新される。 In addition, when the gaming media number control board 100 transmits a bet signal to the main control board 50 as described above, it updates the number of gaming media stored in the gaming media number storage means 103a. In this example, the number of gaming media is updated from "100" to "97". When the number of gaming media stored in the gaming media number storage means 103a is updated from "100" to "97", the display on the gaming media number display unit 121 is also updated from "100" to "97".

主制御基板50には、精算スイッチ46が接続されている。精算スイッチ46は、ベットされている遊技媒体を戻す(換言すれば、ベット数を「0」にする)ときに操作されるスイッチである。
ベット数記憶手段53aにベット数が記憶され、ベット数表示部77にベット数が表示されている状況下において、スタートスイッチ41を操作する前(遊技を開始する前)に精算スイッチ46が操作されたときは、ベット数を返却する(元に戻す)。
たとえば上記例のように、ベット数記憶手段53aに「3」が記憶され、かつ、遊技媒体数記憶手段103aに「97」が記憶されている状況下において、精算スイッチ46が操作されると、ベット数記憶手段53aに記憶されているベット数は「3」から「0」に更新される。これにより、ベット数表示部77の表示は「3」から「0」に更新される。
A settlement switch 46 is connected to the main control board 50. The settlement switch 46 is a switch that is operated when returning the gaming media that have been bet (in other words, when resetting the number of bets to "0").
When the number of bets is stored in a bet number storage means 53a and is displayed on a bet number display section 77, if a settlement switch 46 is operated before a start switch 41 is operated (before a game is started), the number of bets is returned (returned to the original state).
For example, as in the above example, when "3" is stored in the bet number storage means 53a and "97" is stored in the game medium number storage means 103a, when the settlement switch 46 is operated, the number of bets stored in the bet number storage means 53a is updated from "3" to "0." As a result, the display on the bet number display unit 77 is updated from "3" to "0."

また、精算スイッチ46が操作されたことに基づいて、精算信号(ベット数「3」を戻すことに相当する信号)が主制御基板50から遊技媒体数制御基板100に送信される。遊技媒体数制御基板100は、この精算信号を受信すると、遊技媒体数記憶手段103aに記憶されている遊技媒体数を「97」から「100」に更新する。これにより、遊技媒体数表示部121の表示は「97」から「100」に更新される。 In addition, based on the operation of the settlement switch 46, a settlement signal (a signal equivalent to returning the bet number "3") is sent from the main control board 50 to the gaming media number control board 100. Upon receiving this settlement signal, the gaming media number control board 100 updates the number of gaming media stored in the gaming media number storage means 103a from "97" to "100". As a result, the display on the gaming media number display unit 121 is updated from "97" to "100".

このように、精算スイッチ46は、ベットされた遊技媒体を元に戻す(ベット数を「0」にする)ときに使用される。したがって、精算スイッチ46が操作されても、遊技媒体数記憶手段103aに記憶されている遊技媒体数が減算されることはない。
また、ベット数記憶手段53aにベット数が記憶されていない状況において精算スイッチ46が操作されても、ベット数記憶手段53aに記憶されているベット数は「0」のままであり、かつ、遊技媒体数記憶手段103aに記憶されている遊技媒体数もそのままである。
このような精算処理を開始するために、精算スイッチ46が操作されているか否かを判断し、精算スイッチ46が操作されていない場合は精算処理を開始せず、精算スイッチ46が操作されている場合は、ベット数記憶手段53aに記憶されているベット数が「0」であるか否かを判断する。さらに、ベット数記憶手段53aに記憶されているベット数が「0」である場合は精算処理を開始せず、ベット数記憶手段53aに記憶されているベット数が「0」でない場合は精算処理を開始するように構成されている。
これにより、精算スイッチ46が操作されている状況とベット数記憶手段53aに記憶されているベット数が「0」である状況とを比較したときに、精算スイッチ46が操作されている状況の方が相対的に少ないため、精算スイッチ46が操作されているか否かを先に判断することで、処理負担を軽減することが可能となる。
In this way, the settlement switch 46 is used to reset the betted game media (to reset the bet number to "0"). Therefore, even if the settlement switch 46 is operated, the number of game media stored in the game medium number storage means 103a is not subtracted.
Furthermore, even if the settlement switch 46 is operated when the number of bets is not stored in the bet number storage means 53a, the number of bets stored in the bet number storage means 53a remains "0", and the number of gaming media stored in the gaming media number storage means 103a also remains the same.
In order to start such a settlement process, it is determined whether or not the settlement switch 46 has been operated, and if the settlement switch 46 has not been operated, the settlement process is not started, and if the settlement switch 46 has been operated, it is determined whether or not the number of bets stored in the bet number storage means 53a is "0." Furthermore, if the number of bets stored in the bet number storage means 53a is "0," the settlement process is not started, and if the number of bets stored in the bet number storage means 53a is not "0," the settlement process is started.
As a result, when comparing a situation in which the settlement switch 46 is operated with a situation in which the number of bets stored in the bet number storage means 53a is "0", the number of situations in which the settlement switch 46 is operated is relatively small, so by first determining whether or not the settlement switch 46 is operated, it is possible to reduce the processing burden.

ベット数が「3」である状況下でスタートスイッチ41が操作されると、当該遊技でのベット数が確定するとともに、遊技が開始される(リール31の回転が開始する)。この場合、ベット数記憶手段53aに記憶されているベット数は、スタートスイッチ41の操作時(遊技の開始時)にクリアしてもよく、あるいは、全リール31の停止時にクリアしてもよい。ベット数記憶手段53aに記憶されているベット数がクリアされると、ベット数表示部77の表示も「0」に更新される。 When the start switch 41 is operated when the number of bets is "3", the number of bets for that game is confirmed and the game starts (the reels 31 start spinning). In this case, the number of bets stored in the bet number storage means 53a may be cleared when the start switch 41 is operated (when the game starts), or may be cleared when all the reels 31 stop. When the number of bets stored in the bet number storage means 53a is cleared, the display on the bet number display unit 77 is also updated to "0".

当該遊技において、たとえば付与数「8」の小役が入賞したときには、主制御基板50は、付与数記憶手段53bに「8」を記憶する。付与数記憶手段53bに記憶された値が「8」に更新されると、付与数表示部78の表示(下一桁)も「0」から「8」に更新される。
また、遊技媒体が付与されると、付与(払出し)信号が主制御基板50から遊技媒体数制御基板100に送信される。遊技媒体数制御基板100は、付与信号を受信したときは、付与信号に対応する遊技媒体数だけ、遊技媒体数記憶手段103aに記憶されている遊技媒体数に加算する。本例では、遊技媒体数記憶手段103aに記憶されている遊技媒体数は、「97」から「105」に更新される。遊技媒体数記憶手段103aに記憶されている遊技媒体数が「97」から「105」に更新されると、遊技媒体数表示部121の表示も「97」から「105」に更新される。
In the game, for example, when a minor combination with a prize number of "8" is won, the main control board 50 stores "8" in the prize number storage means 53b. When the value stored in the prize number storage means 53b is updated to "8", the display (the last digit) of the prize number display unit 78 is also updated from "0" to "8".
Furthermore, when game media are awarded, an award (payout) signal is transmitted from the main control board 50 to the game media count control board 100. When the game media count control board 100 receives the award signal, it adds the number of game media corresponding to the award signal to the number of game media stored in the game media count storage means 103a. In this example, the number of game media stored in the game media count storage means 103a is updated from "97" to "105". When the number of game media stored in the game media count storage means 103a is updated from "97" to "105", the display on the game media number display unit 121 is also updated from "97" to "105".

また、付与数記憶手段53bに付与数が記憶された後は、次回遊技のスタートスイッチ41の操作時(遊技の開始時)や、次回遊技の全リール31の停止時等に、付与数記憶手段53bに記憶された付与数をクリアする。付与数記憶手段53bに記憶されている付与数がクリアされると、付与数表示部78の表示も「0」に更新される。 In addition, after the award number is stored in the award number storage means 53b, the award number stored in the award number storage means 53b is cleared when the start switch 41 of the next game is operated (at the start of the game) or when all the reels 31 of the next game are stopped. When the award number stored in the award number storage means 53b is cleared, the display of the award number display unit 78 is also updated to "0."

なお、遊技媒体数表示部121に、発生したエラーに対応するエラー情報を表示するように構成されている。
この場合、遊技媒体数表示部121に表示されている遊技媒体数に替えてエラー情報を表示してもよいが、遊技媒体数とエラー情報とを交互に表示してもよい。たとえば、遊技媒体数を「3」秒表示→エラー情報を「3」秒表示→遊技媒体数を「3」秒表示→・・・のようにしてもよい。なお、遊技媒体数表示部121が5桁のLEDから構成される場合において、表示するエラー情報がたとえば「E1」であるときは、「000E1」、「---E1」、「E1000」、「E1---」等と表示することが挙げられる。
The game medium number display unit 121 is configured to display error information corresponding to the error that has occurred.
In this case, error information may be displayed instead of the number of game media displayed on the game medium number display unit 121, or the number of game media and the error information may be displayed alternately. For example, the number of game media may be displayed for "3" seconds → error information may be displayed for "3" seconds → the number of game media may be displayed for "3" seconds → .... In addition, when the game medium number display unit 121 is composed of a five-digit LED, if the error information to be displayed is, for example, "E1", it may be displayed as "000E1", "---E1", "E1000", "E1---", etc.

ここで、遊技媒体数表示部121に、発生したエラーに対応するエラー情報を表示させない場合には、付与数表示部78に、発生したエラーに対応するエラー情報を表示してもよい。この場合、付与数表示部78には、付与した遊技媒体数の表示後に、エラー情報を表示するようにしてもよい。たとえば、上記のように、付与数が「8」である場合、付与数表示部78に、「00」→「01」→「02」→・・・「07」→「08」と表示(カウントアップ)した後、「E1」(エラーコードの一例)と表示する態様が挙げられる。 Here, if the game medium count display unit 121 does not display error information corresponding to the error that occurred, the awarded number display unit 78 may display the error information corresponding to the error that occurred. In this case, the awarded number display unit 78 may display the error information after displaying the number of awarded game media. For example, as described above, if the awarded number is "8", the awarded number display unit 78 may display (count up) "00" → "01" → "02" → ... "07" → "08", and then display "E1" (an example of an error code).

計数スイッチ47は、遊技媒体数制御基板100と電気的に接続されている。図示しないが、計数スイッチ47は、たとえばベットスイッチ40等と同様に、遊技機10のコントロールパネル上等に設けられている。
計数スイッチ47が操作されると、遊技媒体数記憶手段103aに記憶されている遊技媒体(情報)を、接続端子板130を介して貸出ユニット200に送信可能に構成されている。たとえば、遊技媒体数記憶手段103aに遊技媒体数「200」が記憶されている状況下において、計数スイッチ47が操作されると、計数値として「200」という情報が接続端子板130に送信され、その後、貸出ユニット200に計数値として「200」という情報が送信され得るように構成されている。そして、計数スイッチ47が操作され、計数値を送信した後の遊技媒体数記憶手段103aには「0」が記憶されるように構成されている。
The counting switch 47 is electrically connected to the game media number control board 100. Although not shown, the counting switch 47 is provided on the control panel of the gaming machine 10, for example, in the same manner as the bet switch 40 and the like.
When the counting switch 47 is operated, the game media (information) stored in the game media number storage means 103a can be transmitted to the lending unit 200 via the connection terminal board 130. For example, when the counting switch 47 is operated in a situation where the game media number "200" is stored in the game media number storage means 103a, the information "200" is transmitted as a count value to the connection terminal board 130, and then the information "200" can be transmitted as a count value to the lending unit 200. Then, the counting switch 47 is operated, and "0" is stored in the game media number storage means 103a after the count value is transmitted.

また、計数スイッチ47が操作される前の遊技媒体数表示部121には「200」と表示されている状況下において、計数スイッチ47が操作され、貸出ユニット200に計数値として「200」という情報が送信されると、遊技媒体数表示部121の表示は「0」に更新される。 In addition, when the counting switch 47 is operated while the gaming medium number display unit 121 displays "200," if the counting switch 47 is operated and the count value "200" is sent to the rental unit 200, the display on the gaming medium number display unit 121 is updated to "0."

遊技媒体数制御基板100には、総遊技媒体数クリアスイッチ112が設けられている。総遊技媒体数クリアスイッチ112が操作されると、遊技媒体数制御基板100の遊技媒体数記憶手段103aに記憶されている(総)遊技媒体数をクリア可能としている(「0」を記憶する)。遊技媒体数記憶手段103aに記憶されている遊技媒体数がクリアされると、遊技媒体数表示部121に表示されている遊技媒体数も「0」に更新される。
なお、総遊技媒体数クリアスイッチ112の操作によりクリアされる情報は、遊技媒体数記憶手段103aに記憶されている総遊技媒体数のみであり、他の情報はクリアされない。
The game media number control board 100 is provided with a total game media number clear switch 112. When the total game media number clear switch 112 is operated, it is possible to clear (store "0") the (total) number of game media stored in the game media number storage means 103a of the game media number control board 100. When the number of game media stored in the game media number storage means 103a is cleared, the number of game media displayed on the game media number display unit 121 is also updated to "0".
It should be noted that the information cleared by operating the total number of game media clear switch 112 is only the total number of game media stored in the game media number storage means 103a, and other information is not cleared.

たとえば、ベット数記憶手段53aに記憶されているベット数が「3」であり、遊技媒体数記憶手段103aに記憶されている遊技媒体数が「1000」であるときに、総遊技媒体数クリアスイッチ112が操作されると、ベット数記憶手段53aに記憶されているベット数は「3」のままであるが、遊技媒体数記憶手段103aに記憶されている遊技媒体数は「0」となる。換言すると、総遊技媒体数クリアスイッチ112が操作されたことにより、ベット数記憶手段53aに記憶されているベット数はクリアされない。
同様に、貸出ユニット200の貸出可能遊技媒体数記憶手段206に、貸出可能遊技媒体数として「50」が記憶されており、かつ、遊技媒体数記憶手段103aに記憶されている遊技媒体数が「1000」であるときに、総遊技媒体数クリアスイッチ112が操作されると、貸出可能遊技媒体数記憶手段206に記憶されている貸出可能遊技媒体数は「50」のままであるが、遊技媒体数記憶手段103aに記憶されている遊技媒体数は「0」となる。換言すると、総遊技媒体数クリアスイッチ112が操作されたことにより、貸出可能遊技媒体数記憶手段206に記憶されている貸出可能遊技媒体数はクリアされない。
For example, when the number of bets stored in the bet number storage means 53a is "3" and the number of gaming media stored in the gaming media number storage means 103a is "1000," if the total number of gaming media clear switch 112 is operated, the number of bets stored in the bet number storage means 53a remains "3," but the number of gaming media stored in the gaming media number storage means 103a becomes "0." In other words, the number of bets stored in the bet number storage means 53a is not cleared by operating the total number of gaming media clear switch 112.
Similarly, when "50" is stored as the number of lendable game media in the lendable game media number storage means 206 of the lending unit 200 and the number of game media stored in the game media number storage means 103a is "1000," if the total number of game media clear switch 112 is operated, the number of lendable game media stored in the lendable game media number storage means 206 remains "50," but the number of game media stored in the game media number storage means 103a becomes "0." In other words, the number of lendable game media stored in the lendable game media number storage means 206 is not cleared by operating the total number of game media clear switch 112.

総遊技媒体数クリアスイッチ112の操作方法は、1回押すことでもよいし、所定時間長押しすることでもよいし、押下されている状況下で電源を投入することでもよい。なお、総遊技媒体数クリアスイッチ112は、遊技者が操作できない位置、たとえば遊技媒体数制御基板100上や、遊技機10の筐体内部や、遊技機10のフロントドアの背面部等に配置されている。
総遊技媒体数クリアスイッチ112が操作されたことにより遊技媒体数がクリアされた場合は、総遊技媒体数クリアステータスをオンにし、1遊技が終了するまで総遊技媒体数クリアステータスのオンを維持し、当該1遊技の終了後に総遊技媒体数クリアステータスをオフにする。
総遊技媒体数クリアステータスの情報は、貸出ユニット200に送信してもよい。貸出ユニット200が総遊技媒体数クリアステータスがオンである情報を受信した場合は、貸出ユニット200で記憶している総遊技媒体数をクリアする。また、遊技機10において総遊技媒体数クリアステータスがオンの状況下で、貸出ユニット200から貸出遊技媒体が付与された場合、総遊技媒体数クリアステータスはオンのまま、新たに遊技媒体数記憶手段103aに、貸出遊技媒体数を加算する。
The total game media number clear switch 112 may be operated by pressing it once, by pressing it for a predetermined period of time, or by turning on the power while the switch is pressed. The total game media number clear switch 112 is located in a position where the player cannot operate it, such as on the game media number control board 100, inside the cabinet of the gaming machine 10, or on the back of the front door of the gaming machine 10.
When the number of game media is cleared by operating a total game media number clear switch 112, a total game media number clear status is turned on, the on status is maintained until one game ends, and the total game media number clear status is turned off after the one game ends.
Information on the total number of game media clear status may be transmitted to the lending unit 200. When the lending unit 200 receives information that the total number of game media clear status is on, it clears the total number of game media stored in the lending unit 200. In addition, when lending game media are granted from the lending unit 200 in a situation where the total number of game media clear status is on in the gaming machine 10, the total number of game media clear status remains on and the number of loaned game media is newly added to the number of game media storage means 103a.

また、総遊技媒体数クリアスイッチ112は、遊技中に操作されても無効であり、遊技待機中(遊技開始前や遊技終了後)に総遊技媒体数クリアスイッチ112が操作されることにより有効となる。この場合、遊技媒体数制御基板100は、主制御基板50から送信された遊技開始情報と遊技終了情報とに基づいて遊技中であるか否かを判定し、遊技中であるときの総遊技媒体数クリアスイッチ112の操作を無効にする。 The total game media number clear switch 112 is invalid even if it is operated during play, and is valid when it is operated during game standby (before play begins or after play ends). In this case, the game media number control board 100 determines whether or not play is in progress based on game start information and game end information sent from the main control board 50, and invalidates the operation of the total game media number clear switch 112 when play is in progress.

ただし、総遊技媒体数クリアスイッチ112は、遊技中の操作で有効となるようにしてもよい。この場合は、総遊技媒体数クリアステータスは、総遊技媒体数クリアスイッチ112が操作された遊技の次回遊技の終了に基づいてオンからオフにする。換言すると、総遊技媒体数クリアスイッチ112が操作された当該遊技の終了では総遊技媒体数クリアステータスのオンを維持し、その次回遊技が終了すると総遊技媒体数クリアステータスをオフにする。これにより総遊技媒体数クリアステータスが短時間だけオンとなるようなタイミング(遊技終了直前に総遊技媒体数クリアスイッチ112が操作されたタイミング)であっても次回遊技に総遊技媒体数クリアステータスのオンを維持できるので、総遊技媒体数をクリアするような不正を抑制できる。 However, the total gaming media number clear switch 112 may be enabled by operation during play. In this case, the total gaming media number clear status is changed from ON to OFF based on the end of the next game of the game in which the total gaming media number clear switch 112 was operated. In other words, the total gaming media number clear status is maintained ON at the end of the game in which the total gaming media number clear switch 112 was operated, and the total gaming media number clear status is turned OFF when the next game ends. This makes it possible to maintain the total gaming media number clear status ON for the next game even if the total gaming media number clear status is only ON for a short time (the total gaming media number clear switch 112 is operated just before the end of the game), thereby preventing fraud such as clearing the total gaming media number.

なお、総遊技媒体数クリアスイッチ112が操作された遊技の終了後に総遊技媒体数クリアステータスをオフにしてもよく、この場合は、総遊技媒体数クリアステータスを更新するプログラムを共通化することによる容量削減が可能となる。 The total game media count clear status may be turned off after the end of a game in which the total game media count clear switch 112 is operated. In this case, capacity can be reduced by standardizing the program that updates the total game media count clear status.

役比モニタ113は、所定の比率を表示するものであり、たとえば4桁のLED(7セグメント(DPセグメントあり))から構成されている。第2実施形態において、遊技媒体数制御基板100の割込み周期は「1」msに設定されている。なお、主制御基板50の割込み周期は「2.235」msである。
そして、4割込みが1周期となって、役比モニタ113の4桁のLEDをダイナミック点灯させる。具体的には、たとえばLED表示カウンタを設け、割込みごとに、
「00000001(B)」
「00000010(B)」
「00000100(B)」
「00001000(B)」
を循環するように構成する。
The role ratio monitor 113 displays a predetermined ratio, and is composed of, for example, a 4-digit LED (7 segments (including a DP segment)). In the second embodiment, the interrupt period of the game media number control board 100 is set to "1" ms. The interrupt period of the main control board 50 is "2.235" ms.
Four interrupts constitute one cycle, and the four-digit LED of the winning ratio monitor 113 is dynamically lit. Specifically, for example, an LED display counter is provided, and for each interrupt,
"00000001(B)"
"00000010(B)"
"00000100(B)"
"00001000(B)"
Configure it to cycle through.

そして、LED表示カウンタが「00000001(B)」のときは役比モニタ113の一の位のLEDを点灯可能(他のLEDは消灯)とし、LED表示カウンタが「00000010(B)」のときは役比モニタ113の十の位のLEDを点灯可能(他のLEDは消灯)とし、LED表示カウンタが「00000100(B)」のときは役比モニタ113の百の位のLEDを点灯可能(他のLEDは消灯)とし、LED表示カウンタが「00001000(B)」のときは役比モニタ113の千の位のLEDを点灯可能(他のLEDは消灯)とする。 When the LED display counter is "00000001 (B)", the LED in the ones digit of the role ratio monitor 113 can be turned on (other LEDs are turned off), when the LED display counter is "00000010 (B)", the LED in the tens digit of the role ratio monitor 113 can be turned on (other LEDs are turned off), when the LED display counter is "00000100 (B)", the LED in the hundreds digit of the role ratio monitor 113 can be turned on (other LEDs are turned off), and when the LED display counter is "00001000 (B)", the LED in the thousands digit of the role ratio monitor 113 can be turned on (other LEDs are turned off).

役比モニタ113を構成する4個のLEDのうち、左側(千及び百の位)の2個のLEDは、「識別セグ」と称するものであり、情報種別を表示する。また、右側(十及び一の位)の2個のLEDは、「比率セグ」と称するものであり、算出した比率を表示する。
そして、第2実施形態では、役比モニタ113には、比率として、以下の(1)~(6)の6項目の情報を所定時間ごとに繰り返し表示する。
(1)指示込役物比率(累計)(7P.)、又は有利区間比率(累計)(7U.)
(2)連続役物比率(6000遊技)(6y.)
(3)役物比率(6000遊技)(7y.)
(4)連続役物比率(累計)(6A.)
(5)役物比率(累計)(7A.)
(6)役物等状態比率(累計)(5H.)
Of the four LEDs that make up the winning ratio monitor 113, the two LEDs on the left (thousands and hundreds) are called "identification segments" and display the type of information. The two LEDs on the right (tens and ones) are called "ratio segments" and display the calculated ratio.
In the second embodiment, the role ratio monitor 113 repeatedly displays the following six items of information (1) to (6) as ratios at predetermined time intervals.
(1) Indicated role ratio (cumulative) (7P.), or advantageous zone ratio (cumulative) (7U.)
(2) Continuous feature ratio (6000 games) (6y.)
(3) Ratio of gimmicks (6000 games) (7 y.)
(4) Ratio of consecutive features (cumulative) (6A.)
(5) Role Ratio (Cumulative) (7A.)
(6) Ratio of features, etc. (cumulative) (5H.)

なお、識別セグ及び比率セグによりいずれかの比率を表示する場合には、識別セグの一の位のDPセグメントを点灯させ、識別セグと比率セグとの境目を明確にする。このときには、識別セグの十の位、比率セグの十の位及び一の位の各DPセグメントは点灯させない。
上記の表記中、たとえば「P.」とは、識別セグの一の位の7セグメントにより「P」を表示し、かつ、当該7セグメントのDPセグメントを点灯させることを意味する。
When a ratio is displayed using the discrimination segment and the ratio segment, the DP segment in the ones digit of the discrimination segment is lit to clearly distinguish the boundary between the discrimination segment and the ratio segment. In this case, the DP segments in the tens digit of the discrimination segment and the tens and ones digits of the ratio segment are not lit.
In the above notation, for example, "P." means that "P" is displayed by the seven segments in the ones digit of the identification segment, and the DP segment of the seven segments is lit.

たとえば、指示込役物比率(累計)を表示する場合において、その比率が「50」%であるときは、指示込役物比率(累計)を示す記号「7P.」を識別セグに表示し、「50」を比率セグに表示する。
ここで、「累計」とは、それまでにカウントし続けた数値の総和を指し、本実施形態では、少なくとも「175000」遊技回数以上になるまではカウントする。
なお、「175000」遊技回数以上となった後も、RWM103の所定アドレスの記憶領域に記憶可能な値(上限値)に到達するまで加算し続ける。
また、「6000遊技」とは、1セットを「400」遊技回数とし、その15セットを合計した遊技回数である。
For example, when displaying the command-included reel ratio (cumulative), if the ratio is "50"%, the symbol "7P." indicating the command-included reel ratio (cumulative) is displayed in the identification segment, and "50" is displayed in the ratio segment.
Here, "cumulative" refers to the sum of the values that have been counted up to that point, and in this embodiment, the count continues until the number of games played reaches at least "175,000."
Even after the number of games reaches 175,000 or more, the counter continues to add until it reaches a value (upper limit) that can be stored in the memory area of a specified address of the RWM 103.
In addition, "6000 games" refers to the total number of games played over 15 sets, each set consisting of "400" games.

以下に、上記の6項目の比率について説明する。
(1)指示込役物比率(累計)
「指示込役物比率(累計)」とは、累計付与数(「付与数」とは、遊技媒体の付与数を指す。以下同じ。)を分母とし、役物(RB、CB、SB)の作動により付与された累計の役物作動時付与数と指示機能の作動により付与された累計の指示付与数の合算を分子とした比率である。
なお、上記の「合算」とは、第1に、役物作動時の付与数を記憶する記憶領域と、指示付与数を記憶する記憶領域とを別個に設けた場合には、双方の記憶領域に記憶された値の合計値に相当する。また第2に、役物作動時の付与数と指示機能の作動時の付与数との双方(以下、「指示込役物付与数」と称する。)を記憶する一記憶領域(指示込役物カウンタ)を設けた場合には、当該一記憶領域の値に相当する。
The ratios of the above six items are explained below.
(1) Ratio of accessories including instructions (cumulative total)
The "ratio of game devices including instructions (cumulative)" is a ratio in which the cumulative number of awards ("number of awards" refers to the number of gaming media awarded; the same applies below) is used as the denominator and the sum of the cumulative number of awards when game devices are activated that are awarded by the operation of the game devices (RB, CB, SB) and the cumulative number of instruction awards that are awarded by the operation of the instruction function is used as the numerator.
The above "sum" means, first, when a memory area for storing the number of points awarded when the reel is activated and a memory area for storing the number of points awarded by command are provided separately, the sum of the values stored in both memory areas. Secondly, when a single memory area (a reel counter with command) is provided for storing both the number of points awarded when the reel is activated and the number of points awarded when the command function is activated (hereinafter referred to as the "number of points awarded by command-included reel"), the sum of the values in the single memory area is equal to the value in the single memory area.

たとえば、遊技回数が「175000」回以上であって、累計付与数が「200000」、累計の指示込役物付与数が「100000」の場合には、指示込役物比率は「50」と算出される。なお、「累計」とは、必ずしも全遊技の累計とは限らない。たとえば、累計の付与数が予め定められた上限値(たとえば「1677215」)に達した場合や、累計の遊技回数に今回遊技の遊技回数を加算した結果、上限値を超えてしまう場合には、それ以降の遊技では、累計の付与数、及び累計の役物作動時付与数と累計の指示付与数の合算が更新されないように構成されている。 For example, if the number of plays is "175,000" or more, the cumulative number of awards is "200,000," and the cumulative number of command-included feature awards is "100,000," the command-included feature ratio is calculated as "50." Note that "cumulative" does not necessarily mean the cumulative total for all plays. For example, if the cumulative number of awards reaches a predetermined upper limit (e.g., "1,677,215") or if the cumulative number of plays plus the number of plays in the current play exceeds the upper limit, the cumulative number of awards and the sum of the cumulative number of awards when features are activated and the cumulative number of command awards are not updated in subsequent plays.

また、「指示機能の作動」とは、ストップスイッチ42の操作態様に応じて遊技結果に有利/不利が生じる役(当選番号)の抽選結果となった遊技において、有利な遊技結果を得るためのストップスイッチ42の操作態様を報知(指示)した遊技に相当する。たとえばいわゆる押し順ベル当選時に正解押し順を報知した遊技に相当する。
なお、役物を搭載していない遊技機10では、「指示込役物比率」は、指示機能の作動により付与された累計の指示付与数を総付与数で割った値となる。
In addition, the "operation of the instruction function" corresponds to a game in which the operation mode of the stop switch 42 for obtaining a favorable game result is notified (instructed) in a game in which a winning combination (winning number) that gives an advantageous/disadvantageous game result is obtained according to the operation mode of the stop switch 42. For example, it corresponds to a game in which the correct push order is notified when the so-called push order bell is won.
In addition, in a gaming machine 10 that is not equipped with a special feature, the "special feature ratio including instructions" is the cumulative number of instructions granted by the operation of the instruction function divided by the total number of instructions granted.

「指示機能を作動させた遊技での付与数」については、指示機能を作動させた遊技において、表示した押し順でストップスイッチ42が操作されたことに基づいて、たとえば付与数「15」の小役が入賞したときは、指示込役物付与数及び総付与数に「15」を加算する。
これに対し、指示機能を作動させた遊技において、表示した押し順と異なる押し順でストップスイッチ42が操作されたために、たとえば付与数「3」の小役が入賞したときは、指示込役物付与数及び総付与数に「3」を加算する。
また、指示機能を作動させた遊技において、表示した押し順と異なる押し順でストップスイッチ42が操作されたために、当選役を取りこぼしたとき(役の非入賞時)には、指示込役物付与数及び総付与数は、前回遊技と同じ値となる。
Regarding the "number of awards in a game in which the instruction function is activated," when a small prize of, for example, "15" is won based on the stop switch 42 being operated in the displayed push order in a game in which the instruction function is activated, "15" is added to the number of awards of the instructed game device and the total number of awards.
In contrast, in a game in which the instruction function is activated, if the stop switch 42 is operated in a different pressing order from that displayed, resulting in a small win with an award number of, for example, "3,""3" is added to the number of instructed game items awarded and the total number of awards.
In addition, in a game in which the instruction function is activated, if the stop switch 42 is operated in a different pressing order from that displayed and a winning combination is missed (when the combination is not a winning combination), the number of instructed combinations awarded and the total number of combinations awarded will be the same as in the previous game.

なお、指示機能を作動させた遊技において、表示した押し順と異なる押し順でストップスイッチ42が操作されたために、当選役を取りこぼしたときは、指示込役物付与数及び総付与数に「0」を加算する処理を実行することにより、両付与数(カウンタ)の値が前回遊技と同じ値になるようにしてもよい。 In addition, in a game in which the instruction function is activated, if the stop switch 42 is operated in a different pressing order from that displayed, causing a winning combination to be missed, a process may be executed to add "0" to the number of instructed game items awarded and the total number of awarded items, so that the values of both award numbers (counters) become the same as in the previous game.

(2)有利区間比率(累計)
「有利区間比率(累計)」とは、累計の遊技回数を分母とし、累計の有利区間遊技回数を分子とした比率である。たとえば、累計の遊技回数が「20000」、累計の有利区間遊技回数が「18000」の場合には、有利区間比率は「90」と算出される。
なお、「累計」とは、必ずしも全遊技の累計とは限らない。たとえば、累計の遊技回数が予め定められた上限値(たとえば「65535」)に達した場合には、それ以降の遊技では、累計の遊技回数、及び有利区間遊技回数が更新されないように構成されている。
上記の「指示込役物比率(累計)」又は「有利区間比率(累計)」は、遊技機10の仕様に応じていずれか一方を表示する。具体的には、指示機能を搭載した遊技機では「指示込役物比率(累計)」を表示し、「有利区間比率(累計)」の表示は不要である。これに対し、指示機能非搭載の遊技機では「有利区間比率(累計)」を表示し、「指示込役物比率(累計)」は表示しない。
(2) Favorable zone ratio (cumulative)
The "profitable zone ratio (cumulative)" is a ratio in which the cumulative number of times of play is the denominator and the cumulative number of times of play in the profitable zone is the numerator. For example, if the cumulative number of times of play is "20,000" and the cumulative number of times of play in the profitable zone is "18,000", the profitable zone ratio is calculated as "90".
In addition, the "cumulative" does not necessarily mean the cumulative total of all games. For example, when the cumulative number of games reaches a predetermined upper limit (for example, "65535"), the cumulative number of games and the number of games in the advantageous zone are not updated in subsequent games.
Either the "command-included feature ratio (cumulative)" or the "advantageous zone ratio (cumulative)" is displayed depending on the specifications of the gaming machine 10. Specifically, a gaming machine equipped with an instruction function displays the "command-included feature ratio (cumulative)" and does not need to display the "advantageous zone ratio (cumulative)." In contrast, a gaming machine not equipped with an instruction function displays the "advantageous zone ratio (cumulative)" and does not display the "command-included feature ratio (cumulative)."

(3)連続役物比率(6000遊技)、連続役物比率(累計)
「連続役物比率(6000遊技)」とは、遊技回数「6000」での付与数を分母とし、遊技回数「6000」中、連続役物(RB)作動時の付与数を分子とした比率である。
また、「連続役物比率(累計)」とは、累計の遊技回数における付与数を分母とし、累計の遊技回数において、連続役物(RB)作動時の付与数を分子とした比率である。たとえば、累計の遊技回数が所定回数(たとえば、17500回)以上であって、累計の遊技回数における付与数が「20000」、累計の連続役物作動時の付与数が「10000」の場合には、連続役物比率(累計)は「50」と算出される。
なお、「累計」とは、必ずしも全遊技の累計とは限らない。たとえば、累計の付与数が予め定められた上限値(たとえば「65535」)に達した場合や、累計の付与数に今回遊技の付与数を加算した結果、上限値を超えてしまう場合には、それ以降の遊技では、累計の付与数、及び累計の連続役物作動時の遊技媒体の付与数は更新されないように構成されている。
(3) Ratio of consecutive games (6,000 games), Ratio of consecutive games (cumulative)
The "consecutive feature ratio (6000 games)" is a ratio in which the number of prizes awarded for 6000 games is the denominator and the number of prizes awarded when the continuous feature (RB) is activated during 6000 games is the numerator.
In addition, the "continuous feature ratio (cumulative)" is a ratio in which the number of awards in the cumulative number of games is the denominator and the number of awards when the continuous feature (RB) is activated is the numerator. For example, if the cumulative number of games is a predetermined number (e.g., 17,500 times) or more, the number of awards in the cumulative number of games is "20,000", and the cumulative number of awards when the continuous feature is activated is "10,000", the continuous feature ratio (cumulative) is calculated as "50".
In addition, the "cumulative" does not necessarily mean the cumulative total for all games. For example, if the cumulative total number of awarded items reaches a predetermined upper limit (for example, "65535"), or if the cumulative total number of awarded items added to the current game exceeds the upper limit, the cumulative total number of awarded items and the cumulative number of awarded game media when consecutive game items are activated are not updated in subsequent games.

(4)役物比率(6000遊技)、役物比率(累計)
「役物比率(6000遊技)」とは、遊技回数「6000」での付与数を分母とし、遊技回数「6000」中、役物(RB、CB、SB)作動時の付与数を分子とした比率である。
また、「役物比率(累計)」とは、累計の遊技回数における付与数を分母とし、累計の遊技回数において、役物(RB、CB、SB)作動時の付与数を分子とした比率である。たとえば、累計の遊技回数が所定回数(たとえば、17500回)以上であって、累計の付与数が「20000」、累計の役物作動時の付与数が「10000」の場合には、役物比率(累計)は「50」と算出される。
なお、「累計」とは、必ずしも全遊技の累計とは限らない。たとえば、累計の付与数が予め定められた上限値(たとえば「65535」)に達した場合や、累計の付与数に今回遊技の付与数を加算した結果、上限値を超えてしまう場合には、それ以降の遊技では、累計の付与数、及び、累計の役物作動時の遊技媒体の付与数は更新されないように構成されている。
(4) Ratio of features (6,000 games), Ratio of features (cumulative)
"Gem ratio (6000 games)" is a ratio in which the number of prizes awarded for 6000 games is the denominator and the number of prizes awarded when the gems (RB, CB, SB) are activated during 6000 games is the numerator.
In addition, the "reel ratio (cumulative)" is a ratio in which the number of awards in the cumulative number of times played is the denominator and the number of awards when the reels (RB, CB, SB) are activated in the cumulative number of times played is the numerator. For example, if the cumulative number of times played is a predetermined number (e.g., 17,500 times) or more, the cumulative number of awards is "20,000", and the cumulative number of awards when the reels are activated is "10,000", the reel ratio (cumulative) is calculated as "50".
In addition, the "cumulative" does not necessarily mean the cumulative total for all games. For example, if the cumulative number of awarded prizes reaches a predetermined upper limit (for example, "65535"), or if the cumulative number of awarded prizes added to the current game exceeds the upper limit, the cumulative number of awarded prizes and the cumulative number of awarded game media when the game device is activated are not updated in subsequent games.

(5)役物等状態比率(累計)
「役物等状態比率(累計)」とは、累計の遊技回数を分母とし、役物(RB、CB、SB)が作動している遊技回数、又は連続役物(1BB、2BB)が作動している遊技回数を分子とした比率である。たとえば、累計の遊技回数が「20000」、累計の役物作動時又は連続役物作動時の遊技回数が「5000」の場合には、役物等状態比率(累計)は「25」と算出される。
なお、累計とは、必ずしも全遊技の累計とは限らない。たとえば、累計の遊技回数が予め定められた上限値(たとえば「175000」)に達した場合には、それ以降の遊技では、累計の遊技回数、並びに役物作動時及び連続役物作動時の遊技回数は更新されないように構成されている。
(5) Ratio of features and other conditions (cumulative)
The "Ratio of the state of the reels, etc. (cumulative)" is a ratio in which the cumulative number of times played is the denominator and the number of times played with the reels (RB, CB, SB) in operation or the number of times played with the consecutive reels (1BB, 2BB) in operation is the numerator. For example, if the cumulative number of times played is "20,000" and the cumulative number of times played with the reels in operation or the consecutive reels in operation is "5,000", the ratio of the state of the reels, etc. (cumulative) is calculated as "25".
For example, when the cumulative number of times of play reaches a predetermined upper limit (for example, "175,000"), the cumulative number of times of play and the number of times of play when the special device is activated and when the consecutive special device is activated are not updated in subsequent games.

また、上記6項目において、その項目に該当する機能を備えていない遊技機では、比率セグを「--」と点灯表示する。
たとえば、「RB(第1種特別役物)」を備えていない場合には、連続役物比率は存在しないので、「連続役物比率(6000遊技)」及び「連続役物比率(累計)」の表示時には、比率セグを「--」と点灯表示する。
In addition, in gaming machines that do not have the functions corresponding to the above six items, the ratio segment will be displayed as "--".
For example, if the machine is not equipped with an "RB (first type special feature)", there is no continuous feature ratio, so when the "continuous feature ratio (6000 games)" and "continuous feature ratio (cumulative)" are displayed, the ratio segment is displayed as "--".

さらにまた、比率を計算した結果、小数点以下が存在する場合には小数点以下を切り捨てて表示する。たとえば比率を計算した結果、「49.99」であるときは、「49」と表示する。
さらに、比率を計算した結果、「100」であったときは「99」と表示する。
また、比率を計算した結果、「10」未満の場合には、十の位には「0」を表示する。具体的には、比率を計算した結果、「9」%であったときは、「09」と表示する。
Furthermore, when the ratio is calculated and there is a decimal point, the decimal point is discarded before display. For example, when the ratio is calculated and the result is "49.99", it is displayed as "49".
Furthermore, when the ratio is calculated to be "100", it is displayed as "99".
In addition, if the ratio is calculated to be less than 10, the tens digit will be displayed as 0. For example, if the ratio is calculated to be 9%, it will be displayed as 09.

役比モニタ113の識別セグや比率セグを点滅表示する場合がある。
第1に、比率が閾値以上の場合には、比率セグを点滅表示する。
各比率の閾値(%)は、以下の通りである。
(1)指示込役物比率(累計)又は有利区間比率(累計):70
(2)連続役物比率(6000遊技):60
(3)役物比率(6000遊技):70
(4)連続役物比率(累計):60
(5)役物比率(累計):70
(6)役物等状態比率(累計):50
したがって、たとえば指示込役物比率(累計)が「69」であるときは指示込役物比率(累計)の表示時に比率セグの「69」は点灯表示されるが、「70」であるときは点滅表示される。
The identification segment and ratio segment of the role ratio monitor 113 may be displayed flashing.
First, if the ratio is equal to or greater than a threshold, the ratio segment is displayed blinking.
The threshold values (%) for each ratio are as follows:
(1) Indicated role ratio (cumulative) or advantageous zone ratio (cumulative): 70
(2) Continuous feature ratio (6000 games): 60
(3) Ratio of bonuses (6000 games): 70
(4) Continuous feature ratio (cumulative): 60
(5) Role ratio (cumulative): 70
(6) Ratio of features and other conditions (cumulative): 50
Therefore, for example, when the command-included reel ratio (cumulative) is "69," the ratio segment will be lit to "69" when the command-included reel ratio (cumulative) is displayed, but when it is "70," it will be displayed in a flashing manner.

また第2に、累計遊技数が基準遊技数に満たない場合には、識別セグを点滅表示する。
各比率の基準遊技数は、以下の通りである。
(1)指示込役物比率(累計)又は有利区間比率(累計):175000
(2)連続役物比率(6000遊技):6000
(3)役物比率(6000遊技):6000
(4)連続役物比率(累計):17500
(5)役物比率(累計):17500
(6)役物等状態比率(累計):175000
Secondly, when the cumulative number of games does not reach the reference number of games, the identification segment is displayed in a flashing manner.
The standard number of plays for each ratio is as follows:
(1) Indicated role ratio (cumulative) or advantageous zone ratio (cumulative): 175,000
(2) Continuous feature ratio (6000 games): 6000
(3) Ratio of bonuses (6000 games): 6000
(4) Continuous feature ratio (cumulative): 17,500
(5) Gambling ratio (cumulative): 17,500
(6) Status ratio of special items (cumulative): 175,000

したがって、たとえば累積遊技数が「6000」であるときは、連続役物比率(6000遊技)の表示時に識別セグ(6y.)は点灯表示される。これに対し、たとえば累積遊技数が「5999」であるときは、連続役物比率(6000遊技)の表示時に識別セグ(6y.)は点滅表示される。
また、累計遊技数が集計単位1セットあたりの遊技回数「400」に満たない場合には、比率セグには「00」を表示する。
Therefore, for example, when the cumulative number of plays is "6000", the identification segment (6y.) is displayed in a lit state when the consecutive feature ratio (6000 plays) is displayed. On the other hand, when the cumulative number of plays is "5999", the identification segment (6y.) is displayed in a blinking state when the consecutive feature ratio (6000 plays) is displayed.
In addition, if the cumulative number of games played is less than "400" which is the number of games played per set of counting units, "00" is displayed in the ratio segment.

さらにまた、識別セグや比率セグを点滅表示する場合には、点灯時間「0.3」秒と消灯時間「0.3」秒からなる点滅1周期を「0.6」秒とし、許容差を±10%とすることが好ましい。
第2実施形態では、点滅表示における点灯と消灯との切替えを以下のように管理(制御)する。
まず、点滅切替え時間を管理するタイマ領域として、RWM103に「点滅切替え時間(_TM_CHG_FLS )」(2バイト)を備える。
Furthermore, when the identification segment or ratio segment is displayed in a flashing manner, it is preferable that one flashing cycle, consisting of a lighting time of 0.3 seconds and an off time of 0.3 seconds, be 0.6 seconds, with a tolerance of ±10%.
In the second embodiment, switching between on and off in the blinking display is managed (controlled) as follows.
First, the RWM 103 is provided with "blink switching time (_TM_CHG_FLS)" (2 bytes) as a timer area for managing the blink switching time.

点滅切替え時間は、遊技機10の電源投入時に初期化され(「0」が記憶され)、1割込みごとに「1」ずつ加算される。上述したように、1割込み時間は「1」msである。さらに、点滅切替え時間は、「0」~「299」を循環するように構成されている。
また、点灯であるか消灯であるかを判断するためのフラグとして、RWM103に「点滅切替えフラグ(_FL_CHG_FLS )」(1バイト)を備える。
点滅切替えフラグは、電源投入時に初期化され(「0」が記憶され)、その後、「300」msごとに、「0」と「1」とが切り替わる。「0」の場合は点灯を指し、「1」の場合は「消灯」を指す。
The blinking switching time is initialized (stores "0") when the gaming machine 10 is powered on, and is incremented by "1" for each interrupt. As described above, one interrupt time is "1" ms. Furthermore, the blinking switching time is configured to cycle between "0" and "299".
In addition, the RWM 103 includes a "blinking switch flag (_FL_CHG_FLS)" (1 byte) as a flag for determining whether the light is on or off.
The blinking switch flag is initialized (stores "0") when the power is turned on, and thereafter switches between "0" and "1" every "300" ms. "0" indicates that the light is on, and "1" indicates that the light is off.

点滅切替え時間の更新では、現タイマ値から「299」を減算する処理を行う。具体的には、以下のようになる。
例1)初期値「0」であるときに更新処理を行うと、「0-299=298」となる。このとき、桁下がりが発生するために、キャリーフラグが「1」となる。
例2)点滅切替え時間が「298」のときに更新処理を行うと、「298-299=1」となる。このとき、桁下がりが発生するために、キャリーフラグが「1」となる。
例3)点滅切替え時間が「299」のときに更新処理を行うと、「299-299=0」となる。このとき、桁下がりが発生しないために、キャリーフラグは「0」となる。
To update the blinking switching time, a process is performed in which "299" is subtracted from the current timer value. Specifically, the process is as follows.
Example 1) When the initial value is "0" and an update process is performed, the result becomes "0-299=298". At this time, a borrow occurs, so the carry flag becomes "1".
Example 2) When the blinking switching time is "298", updating process results in "298-299=1". At this time, a borrow occurs, so the carry flag becomes "1".
Example 3) When the blinking switching time is "299", if an update process is performed, the result will be "299-299=0". In this case, since no borrow occurs, the carry flag becomes "0".

そして、点滅切替え時間を更新した結果、キャリーフラグが「1」であるときは点滅切替えフラグを更新せず、キャリーフラグが「0」であるときは点滅切替えフラグを更新する。これにより、「300」msごとに、点滅切替えフラグが切り替わる。具体的には、以下のようになる。
例1)点滅切替えフラグが「0」(点灯)であるとき、更新処理を行うと「1」(消灯)になる。
例2)点滅切替えフラグが「1」(消灯)であるとき、更新処理を行うと「0」(点灯)になる。
Then, as a result of updating the blinking switching time, if the carry flag is "1", the blinking switching flag is not updated, and if the carry flag is "0", the blinking switching flag is updated. In this way, the blinking switching flag is switched every "300" ms. Specifically, it is as follows.
Example 1) When the blinking switch flag is "0" (on), performing an update process changes it to "1" (off).
Example 2) When the blinking switch flag is "1" (off), performing update processing changes it to "0" (on).

さらにまた、役比モニタ113は、各LEDのセグメント素子が正常に作動するか否かを確認できるようにするために、テストパターンを表示する。
テストパターンは、電源を投入にした後、上記のキャリーフラグが「0」となった回数が「16」になるまで、すなわち「300ms×16回=4800ms」を経過するまで、「8.8.8.8.」(全LEDの全セグメント素子(セグメントDPを含む))を表示する。
なお、役比モニタ113の4桁の各LEDは、1割込みごと(1ms)ごとにダイナミック点灯されるので、厳密には4個のすべてのLEDが同時に点灯しているわけではない。
Furthermore, the role ratio monitor 113 displays a test pattern to enable confirmation of whether or not each LED segment element operates normally.
The test pattern displays "8.8.8.8." (all segment elements of all LEDs (including segment DP)) until the number of times the carry flag becomes "0" reaches "16" after the power is turned on, that is, until "300 ms x 16 times = 4,800 ms" has elapsed.
In addition, since each of the four digit LEDs of the role ratio monitor 113 is dynamically lit for each interrupt (1 ms), strictly speaking, all four LEDs are not lit at the same time.

テストパターンを「4800」ms間表示した後は、上述の(1)有利区間比率(累計)又は指示込役物比率(累計)~(6)役物等状態比率(累計)の表示に移行し、(1)~(6)は、それぞれ「4800」ms間表示し、それを繰り返す。
よって、
電源投入

(0)テストパターン表示(4800ms)

(1)指示込役物比率(累計)又は有利区間比率(累計)表示(4800ms)

(2)連続役物比率(6000遊技)表示(4800ms)

(3)役物比率(6000遊技)表示(4800ms)

(4)連続役物比率(累計)表示(4800ms)

(5)役物比率(累計)表示(4800ms)

(6)役物等状態比率(累計)表示(4800ms)

(1)指示込役物比率(累計)又は有利区間比率(累計)表示(4800ms)


となる。
なお、上記(1)~(6)の各比率についても、テストパターンと同様に、上記キャリーフラグが「0」となった回数が「16」になるまで(300ms×16回=4800ms)表示する。
After the test pattern is displayed for 4,800 ms, the display transitions to the above-mentioned (1) advantageous zone ratio (cumulative) or instructed feature ratio (cumulative) through (6) feature, etc. state ratio (cumulative), with (1) through (6) each being displayed for 4,800 ms and this is repeated.
Therefore,
Power on ↓
(0) Test pattern display (4800 ms)

(1) Display of the indicated role ratio (cumulative) or advantageous zone ratio (cumulative) (4800 ms)

(2) Continuous feature ratio (6000 plays) display (4800 ms)

(3) Role ratio (6000 games) display (4800 ms)

(4) Continuous feature ratio (cumulative) display (4800 ms)

(5) Display of bonus ratio (cumulative) (4800 ms)

(6) Display of the status ratio (cumulative) of reels, etc. (4800 ms)

(1) Display of the indicated role ratio (cumulative) or advantageous zone ratio (cumulative) (4800 ms)

:
It becomes.
As with the test pattern, each of the ratios (1) to (6) is displayed until the number of times the carry flag becomes "0" reaches "16" (300 ms x 16 times = 4800 ms).

ここで、上述したように、識別セグや比率セグを点滅表示する場合には、「300」msの点灯と「300」msの消灯を繰り返す(1周期「600」ms)。
そして、点灯又は消灯時間をT1とし、テストパターン又は比率の表示時間をT2としたとき、
T2=T1×2×n(nは、自然数)
に設定すれば、点灯と消灯との切替えタイミングと、テストパターン表示又は比率表示の切替えタイミングとを一致させることができ、見栄えのよい表示を行うことができ、役比モニタ113を見る人に対して故障しているかもしれないと誤認させないようにすることができる。
上記において、「T1」を「300」msに設定したとき、「T2」は、「600」msの倍数となるが、各比率表示時間を「5000ms±10%」にするためには、「T2」を「4800」msとすればよい。
As described above, when the discrimination segment or the ratio segment is displayed in a flashing manner, the segment is repeatedly turned on for "300" ms and turned off for "300" ms (one period is "600" ms).
Then, when the time for turning on or off the light is T1 and the time for displaying the test pattern or ratio is T2,
T2 = T1 x 2 x n (n is a natural number)
By setting this, the timing of switching between on and off can be made to coincide with the timing of switching between the test pattern display or the ratio display, making it possible to provide a good-looking display and preventing a person looking at the role ratio monitor 113 from mistakingly thinking that there may be a malfunction.
In the above, when "T1" is set to "300" ms, "T2" is a multiple of "600" ms. However, in order to set each ratio display time to "5000 ms±10%, "T2" should be set to "4800" ms.

たとえば、テストパターンを点滅表示後、有利区間比率を点滅表示する場合には、
テストパターン(300ms間点灯。累計300ms。)

テストパターン(300ms間消灯。累計600ms。)



テストパターン(300ms間点灯。累計4500ms。)

テストパターン(300ms間消灯。累計4800ms。テストパターン表示終了。)

有利区間比率(300ms間点灯)

有利区間比率(300ms間消灯)


となる。
For example, if you want to flash the favorable zone ratio after flashing the test pattern,
Test pattern (lights for 300 ms. Total 300 ms.)

Test pattern (lights off for 300 ms. Total 600 ms.)

:

Test pattern (lights for 300 ms. Total 4500 ms.)

Test pattern (off for 300 ms. Total 4800 ms. Test pattern display completed.)

Favorable zone ratio (lights on for 300 ms)

Advantageous zone ratio (lights off for 300 ms)

:
It becomes.

このようにすれば、何らかの情報の点灯表示を行うときは、「300」ms間、点灯状態を維持することができる。換言すれば、何らかの情報の点灯表示を開始した後、「300」msを経過する前に消灯してしまうことをなくすことができる。さらにいえば、何らかの情報の点灯表示を開始した後、当該情報がすぐに消えてしまうこと(故障しているかもしれないと誤認させること)をなくすことができる。 In this way, when lighting up some information, the lighting can be maintained for 300 ms. In other words, it is possible to prevent the lighting up of some information from going out before 300 ms has elapsed after the lighting up of some information has started. Furthermore, it is possible to prevent the lighting up of some information from disappearing immediately after the lighting up of some information has started (leading to the mistaken belief that there may be a malfunction).

説明を図29のブロック図に戻す。
副制御基板80は、第1実施形態(図1)のサブ制御基板80と同様であるので説明を省略する。ただし、副制御基板80のRWM83、ROM84、CPU85を、それぞれ副制御RWM83、副制御ROM84、副制御CPU85と称する場合がある。
副制御基板80に電気的に接続されている演出ランプ21、スピーカ22、画像表示装置23についても第1実施形態と同様である。
接続端子板(「遊技球等貸出装置接続端子板」とも称される。)130は、遊技機10と貸出ユニット200との間での双方向通信を行うための中継基板としての役割を有する。
Returning to the block diagram of FIG.
The sub-control board 80 is similar to the sub-control board 80 of the first embodiment (FIG. 1), and therefore a description thereof will be omitted. However, the RWM 83, ROM 84, and CPU 85 of the sub-control board 80 may be referred to as the sub-control RWM 83, the sub-control ROM 84, and the sub-control CPU 85, respectively.
The performance lamp 21, speaker 22, and image display device 23 electrically connected to the sub-control board 80 are also similar to those in the first embodiment.
The connection terminal board (also referred to as the “game ball etc. lending device connection terminal board”) 130 serves as a relay board for two-way communication between the gaming machine 10 and the lending unit 200 .

貸出ユニット200は、第1実施形態(図1)における管理装置200に相当する。第1実施形態と同様に、貸出スイッチ202、及び返却スイッチ203等が設けられている。
また、貸出可能遊技媒体数表示部204は、第1実施形態における度数表示部204に相当し、貸出ユニット200から遊技機10に対して貸し出すことが可能な遊技媒体数の最大値を表示するものであり、たとえば3桁のLEDから構成されている。
The lending unit 200 corresponds to the management device 200 in the first embodiment (FIG. 1). As in the first embodiment, a lending switch 202, a return switch 203, and the like are provided.
In addition, the loanable gaming media number display unit 204 corresponds to the degree display unit 204 in the first embodiment, and displays the maximum number of gaming media that can be loaned from the loan unit 200 to the gaming machine 10, and is composed of, for example, a three-digit LED.

さらにまた、貸出可能遊技媒体数記憶手段206は、貸出ユニット200から遊技機10に対して貸し出すことができる遊技媒体数の最大値を記憶しておくものであり、たとえば貸出ユニット200の内部に備えるRWMから構成されている。貸出可能遊技媒体数記憶手段206に記憶されている貸出可能遊技媒体数が貸出可能遊技媒体数表示部204に表示される。 Furthermore, the lendable gaming media number storage means 206 stores the maximum number of gaming media that can be lent from the lending unit 200 to the gaming machine 10, and is composed of, for example, an RWM provided inside the lending unit 200. The number of lendable gaming media stored in the lendable gaming media number storage means 206 is displayed on the lendable gaming media number display unit 204.

貸出可能遊技媒体数記憶手段206に貸出可能遊技媒体数「400」が記憶されている状況下において、貸出スイッチ202が操作され、1回の貸出スイッチ202の操作により遊技媒体数「50」を貸出ユニット200から遊技機10に貸し出す仕様の場合には、貸出通知が送信された後、遊技媒体数記憶手段103aに記憶されている遊技媒体数に「50」が加算される。一方、貸出可能遊技媒体数記憶手段206の貸出可能遊技媒体数は、「400」から「350」に更新される。 When the number of lendable gaming media stored in the lendable gaming media number storage means 206 is "400", and the lending switch 202 is operated to lend "50" gaming media from the lending unit 200 to the gaming machine 10 with one operation of the lending switch 202, after the lending notification is sent, "50" is added to the number of gaming media stored in the gaming media number storage means 103a. Meanwhile, the number of lendable gaming media in the lendable gaming media number storage means 206 is updated from "400" to "350".

また、返却スイッチ203が操作されると、貸出ユニット200の貸出可能遊技媒体数記憶手段206に記憶されている遊技媒体数を、遊技媒体数記憶媒体(磁気カード、ICカード、ICコイン等)に記憶し、当該遊技媒体数記憶媒体を貸出ユニット200から排出する。
なお、遊技媒体数制御基板100の遊技媒体数記憶手段103aに「0」を超える遊技媒体数が記憶されており、かつ、貸出ユニット200の貸出可能遊技媒体数記憶手段206には遊技媒体数が記憶されていない状況下では、返却スイッチ203を操作しても遊技媒体数記憶媒体は排出されない。換言すれば、遊技媒体数制御基板100の遊技媒体数記憶手段103aに遊技媒体数が記憶されている場合であっても、貸出ユニット200の貸出可能遊技媒体数記憶手段206に遊技媒体数が記憶されていなければ、返却スイッチ203を操作しても、遊技媒体数記憶媒体は排出されない。
In addition, when the return switch 203 is operated, the number of gaming media stored in the lendable gaming media number memory means 206 of the lending unit 200 is stored in a gaming media number storage medium (magnetic card, IC card, IC coin, etc.), and the gaming media number storage medium is ejected from the lending unit 200.
In addition, in a situation where a number of game media exceeding "0" is stored in the game media number storage means 103a of the game media number control board 100 and no number of game media is stored in the lendable game media number storage means 206 of the lending unit 200, the game media number storage medium will not be discharged even if the return switch 203 is operated. In other words, even if the number of game media is stored in the game media number storage means 103a of the game media number control board 100, if the number of game media is not stored in the lendable game media number storage means 206 of the lending unit 200, the game media number storage medium will not be discharged even if the return switch 203 is operated.

したがって、上記の場合には、計数スイッチ47を操作することにより、遊技媒体数記憶手段103aに記憶された遊技媒体数を貸出ユニット200に送信し、貸出可能遊技媒体数記憶手段206に遊技媒体数を記憶する。その後、返却スイッチ203を操作すれば、貸出可能遊技媒体数記憶手段206に記憶された遊技媒体数が遊技媒体数記憶媒体に記憶され、貸出ユニット200から排出される。貸出可能遊技媒体数記憶手段206に記憶された遊技媒体数が遊技媒体数記憶媒体に記憶されると、貸出可能遊技媒体数記憶手段206に記憶された貸出可能遊技媒体数は「0」に更新される。 Therefore, in the above case, by operating the counting switch 47, the number of gaming media stored in the number of gaming media storage means 103a is transmitted to the lending unit 200, and the number of gaming media is stored in the number of lendable gaming media storage means 206. Then, by operating the return switch 203, the number of gaming media stored in the number of lendable gaming media storage means 206 is stored in the gaming media number storage medium, and is discharged from the lending unit 200. When the number of gaming media stored in the number of lendable gaming media storage means 206 is stored in the gaming media number storage medium, the number of lendable gaming media stored in the number of lendable gaming media storage means 206 is updated to "0".

図30は、遊技機10と貸出ユニット200との間の通信に用いられる電文を説明する図である。
電文の種類としては、図30に示すように、
1.遊技機情報通知
2.計数通知
3.貸出通知
4.貸出受領結果応答
が設けられている。
これらの電文のうち、遊技機情報通知、計数通知、貸出受領結果応答は、遊技機10から貸出ユニット200に送信される電文である。
一方、貸出通知は、貸出ユニット200から遊技機10に送信される電文である。
FIG. 30 is a diagram explaining the messages used for communication between the gaming machine 10 and the rental unit 200.
As shown in FIG. 30, the types of messages are as follows:
The following messages are provided: 1. Gaming machine information notification 2. Counting notification 3. Loan notification 4. Loan receipt result response.
Of these messages, the gaming machine information notification, counting notification, and rental receipt result response are messages transmitted from the gaming machine 10 to the rental unit 200.
On the other hand, the rental notification is a message sent from the rental unit 200 to the gaming machine 10 .

また、各電文は、下記の5つのデータから構成されている。
(1)電文長
(2)コマンド
(3)通番、計数通番、又は貸出通番
(4)データ部
(5)チェックサム
上記5つからなるデータ群を「電文」と称し、1回の送信によって送信される。すなわち、分割送信は行わない。
Each message is composed of the following five pieces of data:
(1) Message length (2) Command (3) Serial number, counting number, or loan number (4) Data section (5) Checksum A data group consisting of the above five items is called a "message" and is transmitted in one transmission. In other words, it is not transmitted in parts.

(1)電文長
「電文長」とは、電文長、コマンド、通番(通番、計数通番、又は貸出通番)、データ部、チェックサムの5つからなるデータのデータ長の長さを示したものであり、1バイトデータで構成される。たとえば、電文長が1バイト、コマンドが1バイト、通番が1バイト、データ部が14バイト、チェックサムが1バイトの場合、電文は18バイトとなり、電文長は18バイトに対応したデータ(12h)となる。
(1) Message Length "Message length" refers to the length of the data consisting of five items: message length, command, serial number (serial number, counting serial number, or loan serial number), data section, and checksum, and is composed of 1 byte of data. For example, if the message length is 1 byte, the command is 1 byte, the serial number is 1 byte, the data section is 14 bytes, and the checksum is 1 byte, the message will be 18 bytes, and the message length will be the data corresponding to the 18 bytes (12h).

(2)コマンド
「コマンド」とは、遊技機情報通知、計数通知、貸出通知、貸出受領結果応答のうち、どの電文であるかの種別を通知するためのデータであり、1バイトデータで構成される。
たとえば、図30に示すように、遊技機情報通知のコマンドは「01h」、計数通知のコマンドは「02h」、貸出通知のコマンドは「13h」、貸出受領結果応答のコマンドは「03h」に設定されている。
電文の受信側は、コマンドの値を判定すれば、電文の種類を識別することができる。
(2) Command A "command" is data for notifying the type of message among gaming machine information notification, counting notification, loan notification, and loan receipt result response, and is composed of 1 byte of data.
For example, as shown in FIG. 30, the command for gaming machine information notification is set to "01h", the command for counting notification is set to "02h", the command for loan notification is set to "13h", and the command for loan receipt result response is set to "03h".
The receiver of the message can identify the type of message by determining the command value.

(3)通番
「通番」とは、遊技機情報通知、計数通知、貸出通知、貸出受領結果応答に含まれる番号を指すデータである。遊技機情報通知に含まれる通番を「通番」、計数通知に含まれる通番を「計数通番」、貸出通知に含まれる通番を「貸出通番」、貸出受領結果応答に含まれる通番を「貸出通番」と称する。これらの各種の通番は、「0」~「FFh」の範囲内の数値であり、1バイトデータで構成される。
通番は、遊技機10の電源投入時は、「00h」を通知するように制御する。
また、電源投入以降は、通知するごとに通番を更新(+1)する。
通番が「FFh」の次の値は、「01h」に更新(+1を2回)する(「0」にはならない)。
(3) Serial Number "Serial number" is data that refers to a number contained in a gaming machine information notification, counting notification, loan notification, and loan receipt result response. The serial number contained in a gaming machine information notification is called the "serial number," the serial number contained in a counting notification is called the "counting serial number," the serial number contained in a loan notification is called the "loan serial number," and the serial number contained in a loan receipt result response is called the "loan serial number." These various serial numbers are numbers in the range of "0" to "FFh" and consist of 1 byte of data.
When the gaming machine 10 is powered on, the serial number is controlled to notify "00h".
After the power is turned on, the serial number is updated (+1) every time a notification is sent.
The value following the serial number "FFh" is updated to "01h" (+1 twice) (it never becomes "0").

(4)データ部
「データ部」とは、遊技機情報通知、計数通知、貸出通知、貸出受領結果応答に対応したデータに相当する。各電文のデータ部の詳細については、後述する。
(5)チェックサム
「チェックサム」とは、電文長、コマンド、通番、データ部、チェックサムの5つからなるデータを加算し、総計の下位1バイトを示す値である。このチェックサムを用いて、受信側は、通信中のデータの破損等を把握することができ、たとえばチェックサムが一致しなかった電文の数を遊技機10や貸出ユニット200がカウントして、通信の不具合状況等を確認することができる。たとえば遊技機10においては、チェックサムが一致しなかった電文の数を、所定の状況(設定値を確認可能な設定確認モード中や設定値を変更可能な設定変更モード中)に画像表示装置23等で表示可能としてもよい。
(4) Data Section The "data section" corresponds to data corresponding to the gaming machine information notification, the counting notification, the loan notification, and the loan receipt result response. The details of the data section of each message will be described later.
(5) Checksum A "checksum" is a value indicating the lowest byte of the total obtained by adding up five pieces of data: message length, command, serial number, data section, and checksum. Using this checksum, the receiving side can grasp data corruption during communication, and for example, the gaming machine 10 or the lending unit 200 can count the number of messages whose checksums do not match and check the communication malfunction status, etc. For example, in the gaming machine 10, the number of messages whose checksums do not match may be displayed on the image display device 23 or the like in a specified situation (during a setting confirmation mode in which the setting values can be confirmed or during a setting change mode in which the setting values can be changed).

続いて、遊技機情報通知、計数通知、貸出通知、貸出受領結果応答の各データ部について、それぞれ説明する。
1.遊技機情報通知のデータ部
遊技機情報通知のデータ部は、図30に示すように、遊技機種類、遊技機情報種別、遊技機情報から構成される。
a)遊技機種類
「遊技機種類」とは、遊技機10の種類等を識別するための情報である。この情報は、たとえば管理媒体、団体区分、遊技機種類等を通知するデータである。
Next, each of the data sections of the gaming machine information notification, the counting notification, the loan notification, and the loan receipt result response will be explained.
1. Data section of gaming machine information notification The data section of the gaming machine information notification is made up of gaming machine type, gaming machine information type, and gaming machine information, as shown in FIG.
a) Type of gaming machine "Type of gaming machine" is information for identifying the type of gaming machine 10. This information is data notifying, for example, the management medium, group classification, type of gaming machine, and the like.

b)遊技機情報種別
「遊技機情報種別」とは、今回通知する遊技機情報通知の遊技機情報が、遊技機性能情報、遊技機設置情報、又はホールコン・不正監視情報のいずれであるかを識別するための情報である。遊技機性能情報を通知する場合には「00h」、遊技機設置情報を通知する場合には「01h」、ホールコン・不正監視情報を通知する場合には「02h」を通知する。
b) Gaming machine information type "Gaming machine information type" is information for identifying whether the gaming machine information in the gaming machine information notification currently being notified is gaming machine performance information, gaming machine installation information, or hall control/fraud monitoring information. When notifying gaming machine performance information, "00h" is notified, when notifying gaming machine installation information, "01h" is notified, and when notifying hall control/fraud monitoring information, "02h" is notified.

c)遊技機情報
「遊技機情報」は、遊技機性能情報、遊技機設置情報、ホールコン・不正監視情報から構成される。遊技機情報としては、遊技機性能情報、遊技機設置情報、ホールコン・不正監視情報のうち、いずれか1つを送信する。
ここで、ホールコン・不正監視情報は、原則として「300」msごと(遊技機情報通知の送信ごと)に送信する。
また、遊技機設置情報は、「60」秒ごとに送信する。
さらにまた、遊技機性能情報は、原則として「180」秒ごとに送信する。
上記において、「原則として」とは、複数の遊技機情報の送信タイミングが重なった場合には、優先順位の高い方の遊技機情報を送信することを意味する。換言すれば、遊技機性能情報、遊技機設置情報、及びホールコン・不正監視情報の送信タイミングが重なった場合には、優先度に応じていずれか1つを送信する。図30に示すように、「60」秒ごとに送信する遊技機設置情報が第1優先であり、「180」秒ごとに送信する遊技機性能情報が第2優先である。
c) Gaming Machine Information "Gaming Machine Information" is composed of gaming machine performance information, gaming machine installation information, and hall control/fraud monitoring information. As the gaming machine information, any one of gaming machine performance information, gaming machine installation information, and hall control/fraud monitoring information is transmitted.
Here, the hall control/fraud monitoring information is generally transmitted every 300 ms (each time a gaming machine information notification is transmitted).
Furthermore, gaming machine installation information is transmitted every "60" seconds.
Furthermore, gaming machine performance information is generally transmitted every 180 seconds.
In the above, "as a rule" means that when the transmission timings of multiple gaming machine information overlap, the gaming machine information with the higher priority is transmitted. In other words, when the transmission timings of gaming machine performance information, gaming machine installation information, and hall control/fraud monitoring information overlap, one of them is transmitted according to the priority. As shown in FIG. 30, the gaming machine installation information transmitted every "60" seconds has the first priority, and the gaming machine performance information transmitted every "180" seconds has the second priority.

さらに、ホールコン・不正監視情報の送信周期である「300」msは、「300」~「310」msの範囲内であればよい。
同様に、遊技機設置情報の送信周期である「60」秒は、「60」~「62」秒の範囲内であればよい。
さらに同様に、遊技機性能情報の送信周期である「180」秒は、「180」~「186」秒の範囲内であればよい。
ただし、上述した送信周期の範囲は、毎回ランダムな値をとるわけではなく、あらかじめ定められた値で送信する。
Furthermore, the transmission period of the hole control/fraud monitoring information, 300 ms, may be within the range of 300 to 310 ms.
Similarly, the transmission period of the gaming machine installation information, "60" seconds, may be within the range of "60" to "62" seconds.
Similarly, the transmission period of the gaming machine performance information, 180 seconds, may be within the range of 180 to 186 seconds.
However, the above-mentioned range of the transmission cycle does not take a random value each time, but is a predetermined value.

図31は、遊技機情報通知の遊技機情報である遊技機性能情報、遊技機設置情報、及びホールコン・不正監視情報の具体的構成を説明する図である。
(ア)遊技機性能情報
遊技機性能情報は、以下の総投入数等の情報から構成されている。
a)総投入数
「総投入数」とは、電源が投入されてから累積した遊技媒体の投入数である。なお、電源断が発生し、その後、電源が投入された場合には、総投入数として「0」が出力され得る。たとえば、累計「1000」回の遊技において、遊技媒体の累計投入数が「2000」であった場合には、総投入数は「2000」となり、総投入数として「2000」が出力され得る。そして、電源断が発生し、その後、電源が投入された場合には総投入数として「0」が出力され得る。なお、役抽選によりリプレイに当選し、リプレイに対応した図柄組合せが停止表示した場合には、その遊技の次回遊技のベット数は総投入数には含めない。
FIG. 31 is a diagram for explaining the specific configuration of the gaming machine information in the gaming machine information notification, which is gaming machine performance information, gaming machine installation information, and hall control/fraud monitoring information.
(a) Gaming machine performance information Gaming machine performance information consists of the following information on the total number of inserts, etc.
a) Total number of insertions The "total number of insertions" is the cumulative number of insertions of gaming media since the power was turned on. If a power outage occurs and the power is turned on afterwards, "0" may be output as the total number of insertions. For example, if the cumulative number of insertions of gaming media is "2000" in a cumulative total of "1000" games, the total number of insertions will be "2000", and "2000" may be output as the total number of insertions. If a power outage occurs and the power is turned on afterwards, "0" may be output as the total number of insertions. If a replay is won by the role drawing and a symbol combination corresponding to the replay is stopped and displayed, the number of bets for the next game of that game is not included in the total number of insertions.

b)総付与数
「総付与数」とは、電源が投入されてから累積した遊技媒体の付与数である。電源断が発生し、その後、電源が投入された場合には、総付与数として「0」が出力され得る。たとえば、累計「1000」回の遊技において、付与された遊技媒体の累計数が「2000」であった場合には、総付与数は「2000」となり、総付与数として「2000」が出力され得る。そして、電源断が発生し、その後、電源が投入された場合には、総付与数として「0」が出力され得る。
なお、リプレイに対応する図柄組合せが停止表示したことに基づいて、当該遊技におけるベット数の遊技媒体が自動ベットされた場合には、その自動ベットされた遊技媒体は「付与数」には含めない。
b) Total number of awarded pieces The "total number of awarded pieces" is the number of game media that have been awarded since the power was turned on. If a power outage occurs and the power is then turned on, "0" may be output as the total number of awarded pieces. For example, if the cumulative number of game media awarded is "2000" after a total of "1000" games, the total number of awarded pieces will be "2000," and "2000" may be output as the total number of awarded pieces. Furthermore, if a power outage occurs and the power is then turned on, "0" may be output as the total number of awarded pieces.
In addition, when gaming media equivalent to the bet number for a game are automatically bet based on the stopped display of a symbol combination corresponding to a replay, the automatically bet gaming media are not included in the "number awarded."

c)MY(差数)
「MY」は、「差数」、「差枚数」とも称される。
「MY」とは、電源が投入されてからの遊技媒体の付与数と投入数とから算出可能な最大差数の情報である。電源断が発生し、その後、電源が投入された場合には、MYとして「0」が出力され得る。具体的には、遊技の結果が得られたときの遊技媒体数が最も減少したときを基準として、当該基準からの遊技媒体数の増加数(総付与数から総投入数を引いた数)である最大差数を「MY」と称する。たとえば、累計「1000」回の遊技において、「100」回目の遊技が最も遊技媒体数の差数が少なく、そのときの遊技媒体数が「-200」であり、その時点から「800」回目の遊技が最も遊技媒体数の差数が多く、そのときの遊技媒体数が「+800」であるときには、MYは「+1000」となり、MYとして「1000」が出力され得る。そして、電源断が発生し、その後、電源が投入された場合には、MYとして「0」が出力され得る。
c) MY (difference)
"MY" is also called the "difference number" or "difference number of sheets."
"MY" is information on the maximum difference number that can be calculated from the number of game media given and the number of game media inserted since the power was turned on. When a power outage occurs and the power is turned on afterwards, "0" may be output as MY. Specifically, the maximum difference number is the increase in the number of game media from the reference (the total number given minus the total number inserted) based on the reference value of the number of game media that was the smallest when the game result was obtained. For example, in a total of "1000" games, when the "100th" game has the smallest difference in the number of game media, and the number of game media at that time is "-200", and the "800th" game from that time has the largest difference in the number of game media, and the number of game media at that time is "+800", MY becomes "+1000", and "1000" may be output as MY. When a power outage occurs and the power is turned on afterwards, "0" may be output as MY.

d)役物総付与数
「役物総付与数」とは、電源が投入されてからの役物(シングルボーナス(SB)、レギュラーボーナス(RB)、及びチャレンジボーナス(CB))の作動により付与された遊技媒体の総数(累積数)である。電源断が発生し、その後、電源が投入された場合には、役物総付与数として「0」が出力され得る。たとえば、累計「1000」回の遊技において、役物の作動により得られた総遊技媒体数が「100」であった場合には、役物総付与数は「100」となり、役物総付与数として「100」が出力され得る。そして、電源断が発生し、その後、電源が投入された場合には役物総付与数として「0」が出力され得る。
d) Total number of granted devices The "total number of granted devices" is the total number (cumulative number) of game media granted by the operation of the device (single bonus (SB), regular bonus (RB), and challenge bonus (CB)) since the power was turned on. If a power outage occurs and the power is then turned on, "0" may be output as the total number of granted devices. For example, if the total number of game media obtained by the operation of the device is "100" after a cumulative total of "1000" games, the total number of granted devices will be "100", and "100" may be output as the total number of granted devices. If a power outage occurs and the power is then turned on, "0" may be output as the total number of granted devices.

e)連続役物総付与数
「連続役物総付与数」とは、電源が投入されてからの連続役物(第一種特別役物。レギュラーボーナス(RB)とも称する。)の作動により付与された遊技媒体の総数(累積数)である。電源断が発生し、その後、電源が投入された場合には、連続役物総付与数として「0」が出力され得る。たとえば、累計「1000」回の遊技において、連続役物の作動により得られた総遊技媒体数が「100」であった場合には、連続役物総付与数は「100」となり、連続役物総付与数として「100」が出力され得る。そして、電源断が発生し、その後、電源が投入された場合には連続役物総付与数として「0」が出力され得る。
なお、第一種特別役物連続作動装置(「1種BB」とも称される。)による第一種特別役物の作動により付与される遊技媒体の付与数も、連続役物総付与数として累積される。
e) Total number of consecutive roles awarded The "total number of consecutive roles awarded" is the total number (cumulative number) of game media awarded by the operation of consecutive roles (first type special roles, also called regular bonus (RB)) since the power was turned on. If a power outage occurs and the power is turned on afterwards, "0" may be output as the total number of consecutive roles awarded. For example, if the total number of game media obtained by the operation of consecutive roles is "100" in a cumulative total of "1000" plays, the total number of consecutive roles awarded will be "100", and "100" may be output as the total number of consecutive roles awarded. If a power outage occurs and the power is turned on afterwards, "0" may be output as the total number of consecutive roles awarded.
In addition, the number of game media awarded by the operation of a first type special feature by a first type special feature continuous operation device (also referred to as "Type 1 BB") is also accumulated as the total number of continuous features awarded.

f)役物比率
上述したように、役比モニタ113によって表示される役物比率(累計)の値である。累計の遊技回数が所定回数(たとえば、17500回)未満であるときは、役物比率(累計)として「FFh」を出力するように構成されている。
g)連続役物比率
上述したように、役比モニタ113によって表示される連続役物比率(累計)の値である。累計の遊技回数が所定回数(たとえば、17500回)未満であるときは、連続役物比率(累計)として「FFh」を出力するように構成されている。
f) Role Ratio As described above, this is the role ratio (cumulative) value displayed by the role ratio monitor 113. When the cumulative number of games is less than a predetermined number (for example, 17,500), "FFh" is output as the role ratio (cumulative).
g) Continuous feature ratio As described above, this is the value of the continuous feature ratio (cumulative) displayed by the feature ratio monitor 113. When the cumulative number of games is less than a predetermined number (for example, 17,500), it is configured to output "FFh" as the continuous feature ratio (cumulative).

h)有利区間比率
上述したように、役比モニタ113によって表示される有利区間比率(累計)の値である。累計の遊技回数が所定回数(たとえば、175000回)未満においては、有利区間比率として「FFh」を出力するように構成されている。また、有利区間を備えていない遊技機においても、「FFh」を出力するように構成されている。
i)指示込役物比率
上述したように、役比モニタ113によって表示される指示込役物比率(累計)の値である。累計の遊技回数が所定回数(たとえば、175000回)未満においては、指示込役物比率として「FFh」を出力するように構成されている。また、役物や指示機能を備えていない遊技機においても、「FFh」を出力するように構成されている。
h) Favorable Zone Ratio As described above, this is the value of the favorable zone ratio (cumulative) displayed by the winning combination monitor 113. When the cumulative number of games is less than a predetermined number (for example, 175,000), the favorable zone ratio is configured to be output as "FFh." Also, even in gaming machines that do not have a favorable zone, the favorable zone ratio is configured to be output as "FFh."
i) Indication-Inclusive Role Ratio As described above, this is the value of the instruction-inclusive role ratio (cumulative) displayed by the role ratio monitor 113. When the cumulative number of games is less than a predetermined number (for example, 175,000 times), the instruction-inclusive role ratio is configured to output "FFh." Also, even in gaming machines that do not have roles or instruction functions, "FFh" is configured to be output.

j)役物等状態比率
上述したように、役比モニタ113によって表示される役物等状態比率(累計)の値である。累計の遊技回数が所定回数(たとえば、175000回)未満においては、役物等状態比率として「FFh」を出力するように構成されている。また、役物を備えていない遊技機においても、「FFh」を出力するように構成されている。
k)遊技回数
「遊技回数」とは、遊技機10の電源が投入されてからの累積した遊技回数である。遊技機10の電源が投入されたときにクリアされる(「0」が記憶される)。
l)その他
上記以外の情報として、貸出ユニット200で使用される情報等、複数種類の情報が挙げられるが、本実施形態では説明を割愛する。
j) Gambler Status Ratio As described above, this is the value of the gimmick status ratio (cumulative) displayed by the gimmick ratio monitor 113. When the cumulative number of games is less than a predetermined number (for example, 175,000), the gimmick status ratio is configured to output "FFh". Also, even in gaming machines that do not have gimmicks, the gimmick status ratio is configured to output "FFh".
k) Number of Plays "Number of Plays" is the cumulative number of games played since the gaming machine 10 was powered on. It is cleared ("0" is stored) when the gaming machine 10 is powered on.
l) Others Other types of information include information used in the rental unit 200, but the description thereof will be omitted in this embodiment.

(イ)遊技機設置情報
遊技機設置情報は、以下の主制御チップID番号等の情報から構成されている。
a)主制御チップID番号
「主制御チップID番号」とは、主制御基板50に設けられたCPU55、RWM53、及びROM54が一体となった主制御チップを識別するためのチップ個別ナンバーを含む情報であり、同一機種であっても遊技機10ごとに異なる情報となる。
b)主制御チップメーカコード
「主制御チップメーカコード」とは、主制御チップの内蔵メモリに記憶した遊技機メーカを示す情報である。
(i) Gaming Machine Installation Information The gaming machine installation information is composed of the following information such as the main control chip ID number.
a) Main Control Chip ID Number The "main control chip ID number" is information including an individual chip number for identifying the main control chip which is an integrated unit of the CPU 55, RWM 53, and ROM 54 provided on the main control board 50, and is different information for each gaming machine 10 even if they are of the same model.
b) Main Control Chip Manufacturer Code "Main control chip manufacturer code" is information that indicates the gaming machine manufacturer stored in the built-in memory of the main control chip.

c)主制御チップ製品コード
「主制御チップ製品コード」とは、主制御チップの内蔵メモリに記憶した遊技機10の機種名を示す情報である。
上述した主制御チップID番号、主制御チップメーカコード、及び主制御チップ製品コードは、遊技機10の電源が投入されたときの電源投入処理において、主制御基板50から遊技媒体数制御基板100に送信されるように構成されている。そして、遊技媒体数制御基板100のRWM103に、それぞれ、主制御チップID番号、主制御チップメーカコード、及び主制御チップ製品コードを記憶するように構成されている。
c) Main Control Chip Product Code "Main control chip product code" is information indicating the model name of the gaming machine 10 stored in the built-in memory of the main control chip.
The above-mentioned main control chip ID number, main control chip manufacturer code, and main control chip product code are configured to be transmitted from the main control board 50 to the gaming media number control board 100 during power-on processing when the gaming machine 10 is powered on. The main control chip ID number, main control chip manufacturer code, and main control chip product code are configured to be stored in the RWM 103 of the gaming media number control board 100, respectively.

d)遊技媒体数制御チップID番号
「遊技媒体数制御チップID番号」とは、遊技媒体数制御基板100に設けられたCPU105、RWM103、及びROM104が一体となった遊技媒体数制御チップを識別するためのチップ個別ナンバーを含む情報であり、同一機種であっても遊技機10ごとに異なる情報となる。
なお、遊技媒体数制御基板100を搭載していない遊技機の場合には、遊技媒体数制御チップID番号として「000000000000000000h」を貸出ユニット200に出力可能とする。
d) Game Media Number Control Chip ID Number The "game media number control chip ID number" is information including an individual chip number for identifying the game media number control chip which is an integrated unit of the CPU 105, RWM 103, and ROM 104 provided on the game media number control board 100, and is different information for each game machine 10 even if they are of the same model.
In the case of a gaming machine that does not have the gaming media number control board 100 mounted thereon, it is possible to output "000000000000000000h" to the lending unit 200 as the gaming media number control chip ID number.

e)遊技媒体数制御チップメーカコード
「遊技媒体数制御チップメーカコード」とは、遊技媒体数制御チップの内蔵メモリ(ROM54)に記憶した遊技機メーカを示す情報である。
なお、遊技媒体数制御基板100を搭載していない遊技機の場合には、遊技媒体数制御チップメーカコードとして「000000h」を貸出ユニット200に出力可能とする。
f)遊技媒体数制御チップ製品コード
「遊技媒体数制御チップ製品コード」とは、主制御チップの内蔵メモリ(ROM54)に記憶した遊技機10の機種名を示す情報である。
なお、遊技媒体数制御基板100を搭載していない遊技機の場合には、遊技媒体数制御チップ製品コードとして「0000000000000000h」を貸出ユニットに向けて出力可能とする。
e) Game Media Number Control Chip Manufacturer Code "Game Media Number Control Chip Manufacturer Code" is information indicating the game machine manufacturer stored in the built-in memory (ROM 54) of the game media number control chip.
In addition, in the case of a gaming machine that does not have the gaming media number control board 100 mounted thereon, it is possible to output "000000h" to the lending unit 200 as the gaming media number control chip manufacturer code.
f) Game Media Number Control Chip Product Code "Game Media Number Control Chip Product Code" is information indicating the model name of the game machine 10 stored in the built-in memory (ROM 54) of the main control chip.
In the case of a gaming machine that does not have the gaming media number control board 100 mounted thereon, it is possible to output "0000000000000000h" as the gaming media number control chip product code to the lending unit.

(ウ)ホールコン・不正監視情報
ホールコン・不正監視情報は、以下の遊技媒体数等の情報から構成されている。
a)遊技媒体数
「遊技媒体数」とは、遊技媒体数制御基板100に記憶されている現在の遊技媒体数(総数)を示す情報であり、遊技媒体の投入(ベット)により減じられ、小役の入賞に基づく遊技媒体の付与により加算される。現在の遊技媒体数は、遊技媒体数記憶手段103aに記憶されており、遊技媒体数表示部121に表示される。遊技媒体数としてたとえば「2000」を記憶している場合には、遊技媒体数として「0007D0h」を貸出ユニット200に出力可能とする。なお、遊技媒体数制御基板100で記憶可能な遊技媒体数の上限値は「16383(D)」としている。
なお、現在の遊技媒体数を(「300」msごとに)貸出ユニット200に送信することで、貸出ユニット200側でも遊技媒体数を管理することが可能となる。これにより、セキュリティ性をより強化することができる。
(c) Hall control and fraud monitoring information Hall control and fraud monitoring information is composed of the following information on the number of gaming media, etc.
a) Number of gaming media The "number of gaming media" is information indicating the current number of gaming media (total number) stored in the gaming media number control board 100, and is subtracted by the insertion (betting) of gaming media and added by the awarding of gaming media based on the winning of a minor prize. The current number of gaming media is stored in the gaming media number storage means 103a and is displayed on the gaming media number display unit 121. For example, if "2000" is stored as the number of gaming media, "0007D0h" can be output to the lending unit 200 as the number of gaming media. The upper limit of the number of gaming media that can be stored in the gaming media number control board 100 is "16383 (D)".
In addition, by transmitting the current number of game media to the rental unit 200 (every "300" ms), it becomes possible for the rental unit 200 to manage the number of game media. This makes it possible to further strengthen security.

b)投入数
「投入数」とは、投入(ベット)されている遊技媒体数を示す情報である。たとえば遊技媒体数「3」を投入(ベット)した場合には、「03h」を貸出ユニット200に出力可能とする。また、「3」を投入した状況から遊技を開始する前に(スタートスイッチ41が操作される前に)精算スイッチ46の操作により投入数「3」を遊技媒体数制御基板100に戻す場合には、「-3」に相当する「FDh」を貸出ユニット200に出力可能とする。換言すると、「-3」(FDh)~+3(03h)の情報を貸出ユニット200に出力可能とする。
b) Number of Inserted Media The "number of inserted media" is information indicating the number of gaming media inserted (betted). For example, when the number of gaming media "3" is inserted (betted), "03h" can be output to the lending unit 200. Also, when the number of inserted media "3" is returned to the number of gaming media control board 100 by operating the settlement switch 46 before starting the game (before the start switch 41 is operated) from the situation where "3" has been inserted, "FDh" corresponding to "-3" can be output to the lending unit 200. In other words, information from "-3" (FDh) to +3 (03h) can be output to the lending unit 200.

c)付与数
「付与数」とは、すべてのリール31が停止した後、有効ライン上に停止した(入賞した)図柄組合せの態様によって、付与された遊技媒体数(配当)を示す情報である。たとえば、遊技媒体数「8」が付与された場合には「08h」の情報を出力可能とし、「15」が付与され場合には「0Fh」を貸出ユニット200に出力可能とする。
このように、遊技機10は、上述した「遊技媒体数」、「投入数」、「付与数」を貸出ユニット200に送信することで、貸出ユニット200側では、遊技媒体数の異常を検知可能となっている。
c) Award Number The "award number" is information indicating the number of game media (dividend) awarded according to the state of the symbol combination that stops (wins) on the pay line after all reels 31 have stopped. For example, when the number of game media "8" is awarded, information "08h" can be output, and when the number of game media "15" is awarded, information "0Fh" can be output to the lending unit 200.
In this way, the gaming machine 10 transmits the above-mentioned "number of gaming media,""numberinserted," and "number awarded" to the lending unit 200, thereby enabling the lending unit 200 to detect abnormalities in the number of gaming media.

d)主制御状態1
「主制御状態1」とは、遊技状態に関する状態を示す情報である。具体的には、1バイトのデータのうち、ビットごとにどの遊技状態であるかを割り当てられている。たとえば、D0ビットが「1」のときにはRB状態であることをし、また、たとえばD1ビットが「1」のときにはBB状態であることを示し、さらにまた、たとえばD2ビットが「1」であるときはAT状態であることを示す。そして、遊技機10は、これらの情報を貸出ユニット200に出力可能とする。
d) Primary Control State 1
"Main control state 1" is information indicating a state related to the gaming state. Specifically, each bit of the 1 byte of data is assigned a gaming state. For example, when the D0 bit is "1", it indicates the RB state, and when the D1 bit is "1", it indicates the BB state, and when the D2 bit is "1", it indicates the AT state. The gaming machine 10 is then capable of outputting this information to the lending unit 200.

D3~D6ビットは、遊技機状態信号1~4に対応している。遊技機状態信号1~4は、遊技機10の種類に応じて使用用途を変更したり、使用しなかったりすることができる。たとえばATで付与した遊技媒体数が「100」に達するごとに、遊技機状態信号1を出力可能とすることが挙げられる。D7ビットは未使用であり、遊技機10の種類にかかわらず「0」が出力可能となるように構成されている。このように構成することによって、たとえば、AT状態であることを報知する場合には、「00000100B」を貸出ユニット200に出力可能とする。 Bits D3 to D6 correspond to gaming machine status signals 1 to 4. The usage of gaming machine status signals 1 to 4 can be changed or not used depending on the type of gaming machine 10. For example, gaming machine status signal 1 can be output each time the number of gaming media granted at AT reaches "100". Bit D7 is unused, and is configured to be able to output "0" regardless of the type of gaming machine 10. By configuring it in this way, for example, when reporting that the gaming machine is in the AT state, "00000100B" can be output to the lending unit 200.

e)主制御状態2
「主制御状態2」とは、主制御状態1と同様に、遊技状態に関する状態を示す情報である。D0ビットからD2ビットは、遊技機状態信号5~7に対応している。遊技状態信号5~7は、遊技機10の種類に応じて使用用途を変更したり、使用しなかったりすることができる。たとえば、特定のRT状態(再遊技確率変動(高確率)状態)に移行した場合に、遊技状態信号5を出力することなどが挙げられる。D3~D7ビットは未使用であり、遊技機10の種類にかかわらず「0」が出力可能となるように構成されている。このように構成することによって、たとえば特定のRT状態へ移行した際には、「00000001B」を貸出ユニット200に出力可能とする。
e) Primary Control State 2
"Main control state 2" is information indicating a state related to the gaming state, similar to main control state 1. Bits D0 to D2 correspond to gaming machine state signals 5 to 7. The gaming state signals 5 to 7 can be changed in use or not used depending on the type of gaming machine 10. For example, when a specific RT state (a state in which replay probability varies (high probability)) is entered, the gaming state signal 5 can be output. Bits D3 to D7 are unused and configured to be able to output "0" regardless of the type of gaming machine 10. By configuring in this way, for example, when a specific RT state is entered, "00000001B" can be output to the lending unit 200.

f)遊技機エラー状態
「遊技機エラー状態」とは、遊技機10で発生中のエラーを示すエラーコード等を含む情報である。
具体的には、D0~D5ビットでエラーコードを示す。D6ビットで遊技媒体数制御基板100のエラー(この場合には、D6ビットは「0」)であるか、又は主制御基板50のエラー(この場合にはD6ビットは「1」)であるかを示す。D7ビットで貸出ユニット200にてエラー報知のみを行うもの(この場合にはD7ビットは「0」)であるか、又は貸出ユニット200にてエラー報知を行うとともに、貸出ユニット200を通じてホールコンピュータ300にもエラーコードを通知するもの(この場合にはD7ビットが「1」)であるかを示す。
f) Gaming Machine Error Status The “gaming machine error status” is information including an error code or the like that indicates an error that is occurring in the gaming machine 10 .
Specifically, the D0 to D5 bits indicate an error code. The D6 bit indicates whether there is an error in the game media count control board 100 (in this case, the D6 bit is "0") or an error in the main control board 50 (in this case, the D6 bit is "1"). The D7 bit indicates whether the lending unit 200 only notifies the error (in this case, the D7 bit is "0") or whether the lending unit 200 notifies the error and also notifies the hall computer 300 of the error code through the lending unit 200 (in this case, the D7 bit is "1").

たとえば、エラーの種類として乱数異常エラーと、電波異常エラーとを検出可能な遊技機10であるとする。このとき、エラーコードとして、乱数異常エラーを「00001B」とし、電波異常エラーを「00010B」と定め、このエラーコードを含む情報を出力することが可能となる。具体的には、乱数異常エラーは、主制御基板50のエラーであって、貸出ユニット200でエラー報知のみを行う場合には、「01000001B」を貸出ユニット200に出力可能とする。また、電波異常エラーは、遊技媒体数制御基板100のエラーであって、貸出ユニット200でエラー報知を行い、さらにホールコンピュータ300にもエラーコードを通知する場合には、「10000010B」を貸出ユニット200に出力可能とする。なお、エラーが未発生の場合や、エラーコードを有していない遊技機の場合には、「00000000B」を貸出ユニット200に出力可能とする。 For example, assume that the gaming machine 10 is capable of detecting a random number anomaly error and a radio wave anomaly error as types of errors. In this case, the error code is set to "00001B" for the random number anomaly error and "00010B" for the radio wave anomaly error, and information including these error codes can be output. Specifically, the random number anomaly error is an error of the main control board 50, and if the lending unit 200 only issues an error notification, "01000001B" can be output to the lending unit 200. Also, if the radio wave anomaly error is an error of the game media count control board 100, and if the lending unit 200 issues an error notification and also notifies the hall computer 300 of the error code, "10000010B" can be output to the lending unit 200. Note that if no error has occurred or if the gaming machine does not have an error code, "00000000B" can be output to the lending unit 200.

g)遊技機不正1(主制御)
「遊技機不正1(主制御)」とは、主制御基板50に係る不正の検知や主制御基板50に係る状態に関する情報である。なお、遊技機不正1(主制御)の信号は、ホールコンピュータ300用の信号として扱う。換言すると、遊技機10から出力された遊技機不正1(主制御)の各信号は、貸出ユニット200を通じて、ホールコンピュータ300へ出力されるようになっている。
g) Gaming machine fraud 1 (main control)
"Gaming machine fraud 1 (main control)" is information on the detection of fraud related to the main control board 50 and the state related to the main control board 50. The gaming machine fraud 1 (main control) signal is treated as a signal for the hall computer 300. In other words, each signal of gaming machine fraud 1 (main control) output from the gaming machine 10 is output to the hall computer 300 through the lending unit 200.

遊技機不正1(主制御)を構成する各信号は、以下の通りである。
まず、D0ビットには設定変更中信号が割り当てられている。D0ビットが「1」であるときは、設定変更中(設定変更モード中)及び設定変更が行われたことを示す。設定変更中信号は、設定変更中~設定変更後の1遊技終了時(たとえば、全リール31が停止し、遊技媒体の付与処理が終了したとき)まではD0ビットが「1」となる。設定変更中~設定変更後の1遊技終了時以外の状況では、D0ビットは「0」となる。
D1ビットには設定確認中信号が割り当てられている。設定確認中(設定確認モード中)のときはD1ビットが「1」となり、設定確認中以外の状況ではD1ビットが「0」となる。
The signals that make up gaming machine fraud 1 (main control) are as follows.
First, a setting change signal is assigned to the D0 bit. When the D0 bit is "1", it indicates that the setting is being changed (in setting change mode) and that the setting has been changed. The setting change signal is "1" for the D0 bit from when the setting is being changed until one game ends after the setting is changed (for example, when all reels 31 have stopped and the process of awarding game media has ended). In any situation other than when the setting is being changed until one game ends after the setting is changed, the D0 bit is "0".
The D1 bit is assigned a setting confirmation signal. When the setting is being confirmed (in the setting confirmation mode), the D1 bit is set to "1", and when the setting is not being confirmed, the D1 bit is set to "0".

D2ビットには不正検知信号1、D3ビットには不正検知信号2、D4ビットには不正検知信号3がそれぞれ割り当てられている。たえとば、乱数異常を不正とした遊技機10において、乱数異常の検知を不正検知信号1に割り当てた場合に、乱数異常を検知した場合にはD2ビットが「1」となり、乱数異常を検知していない場合にはD2ビットが「0」となる。
D5ビットにはセキュリティ信号が割り当てられている。具体的には、不正検知信号を出力しているとき、設定変更中信号を出力しているとき、設定確認中信号を出力しているときのいずれかの状況下でD5ビットが「1」となり、それ以外の状況ではD5ビットは「0」となる。
D6及びD7ビットは未使用であり、いずれの「0」となる。
The D2 bit is assigned a cheating detection signal 1, the D3 bit is assigned a cheating detection signal 2, and the D4 bit is assigned a cheating detection signal 3. For example, in a gaming machine 10 in which random number abnormalities are regarded as cheating, if detection of a random number abnormality is assigned to cheating detection signal 1, the D2 bit will be "1" if a random number abnormality is detected, and the D2 bit will be "0" if a random number abnormality is not detected.
A security signal is assigned to the D5 bit. Specifically, the D5 bit is set to "1" when an illegal detection signal is being output, when a setting change signal is being output, or when a setting confirmation signal is being output, and is set to "0" in other circumstances.
Bits D6 and D7 are unused and are both set to "0".

h)遊技機不正2(主制御又は遊技媒体数制御)
「遊技機不正2(主制御又は遊技媒体数制御)」とは、主制御基板50又は遊技媒体数制御基板100に係る不正の検知や主制御基板50又は遊技媒体数制御基板100に係る状態を示す情報である。なお、遊技機不正2(主制御又は遊技媒体数制御)の信号は、ホールコンピュータ300用の信号として扱う。換言すると、遊技機10から出力された遊技機不正2(主制御又は遊技媒体数制御)の各信号は、貸出ユニット200を通じて、ホールコンピュータ300へ出力されるようになっている。
h) Gaming machine fraud 2 (main control or control of the number of gaming media)
"Gaming machine fraud 2 (main control or gaming media number control)" is information indicating the detection of fraud relating to the main control board 50 or the gaming media number control board 100, or the state relating to the main control board 50 or the gaming media number control board 100. The gaming machine fraud 2 (main control or gaming media number control) signal is treated as a signal for the hall computer 300. In other words, each signal of gaming machine fraud 2 (main control or gaming media number control) output from the gaming machine 10 is output to the hall computer 300 via the lending unit 200.

遊技機不正2(主制御又は遊技媒体数制御)を構成する各信号は、以下の通りである。
D0ビットには、設定ドアオープン信号が割り当てられている。「設定ドアオープン信号」とは、設定変更を行うための設定キースイッチ12をカバーする設定キースイッチカバーが開放しているか否かを示す信号である。設定キースイッチカバーが開放しているときにはD0ビットが「1」となり、設定キースイッチカバーが閉鎖しているときにはD0ビットが「0」となる。なお、設定キースイッチカバーを設けていない遊技機や、設定キースイッチカバーの開放を検知する機能を有していない遊技機においては、D0ビットが「0」となる。
The signals that constitute gaming machine fraud 2 (main control or gaming media number control) are as follows.
The D0 bit is assigned a setting door open signal. The "setting door open signal" is a signal that indicates whether the setting key switch cover that covers the setting key switch 12 for changing settings is open or not. When the setting key switch cover is open, the D0 bit is "1", and when the setting key switch cover is closed, the D0 bit is "0". Note that in gaming machines that do not have a setting key switch cover or a gaming machine that does not have a function for detecting the opening of the setting key switch cover, the D0 bit is "0".

D1ビットには、ドアオープン信号が割り当てられている。「ドアオープン信号」とは、遊技機10の扉(「前扉」、「フロントドア」とも称される。)が開放しているか否かを示す情報である。遊技機10の扉が開放しているときにはD1ビットが「1」となり、遊技機10の扉が閉鎖しているときにはD1ビットが「0」となる。
D2ビットは未使用であり、「0」である。
D3ビットには、遊技媒体数クリア検知が割り当てられている。「遊技媒体数クリア検知」とは、遊技媒体数制御基板100に設けられた総遊技媒体数クリアスイッチ112が操作された(総遊技媒体数がクリアされた)ことの検知である。
総遊技媒体数クリアスイッチ112の操作を検出した場合にはD3ビットが「1」となり、総遊技媒体数クリアスイッチ112の操作を検出していない場合にはD3ビットが「0」となる。なお、総遊技媒体数クリアスイッチ112を備えていない遊技機の場合には、D3ビットは「0」となる。
D4~D7ビットは未使用であり、これらのビットは「0」となる。
The D1 bit is assigned a door open signal. The "door open signal" is information indicating whether the door (also called the "front door") of the gaming machine 10 is open or not. When the door of the gaming machine 10 is open, the D1 bit is "1", and when the door of the gaming machine 10 is closed, the D1 bit is "0".
The D2 bit is unused and is set to "0".
The D3 bit is assigned with detection of clearing the number of game media. The "detection of clearing the number of game media" refers to detection of the total game media number clear switch 112 provided on the game media number control board 100 being operated (the total game media number being cleared).
When operation of the total game media number clear switch 112 is detected, the D3 bit becomes "1", and when operation of the total game media number clear switch 112 is not detected, the D3 bit becomes "0". In the case of a gaming machine that does not have the total game media number clear switch 112, the D3 bit becomes "0".
Bits D4 to D7 are unused and are set to "0".

i)遊技機不正3(主制御又は遊技媒体数制御)
「遊技機不正3」とは、予備として設けられ、主制御基板50又は遊技媒体数制御基板100に係る不正の検知や、主制御基板50又は遊技媒体数制御基板100に係る状態の情報を示す。
本実施形態の遊技機10においては、遊技機不正3(主制御又は遊技媒体数制御)は未使用であり、D0~D7ビットは「0」となる。
さらに、図31では図示していないが、ホールコン・不正監視情報として、他にも情報が設けられているが、本実施形態では説明を割愛する。
i) Gaming machine fraud 3 (main control or control of the number of gaming media)
“Gaming machine fraud 3” is provided as a reserve and indicates detection of fraud relating to the main control board 50 or the gaming media number control board 100, and status information relating to the main control board 50 or the gaming media number control board 100.
In the gaming machine 10 of this embodiment, gaming machine fraud 3 (main control or gaming media number control) is unused, and bits D0 to D7 are "0".
Furthermore, although not shown in FIG. 31, other information is provided as hole control/fraud monitoring information, but a description thereof will be omitted in this embodiment.

説明を図30に戻す。
2.計数通知のデータ部
計数通知のデータ部は、計数遊技媒体数と、計数累積遊技媒体数とから構成される。
a)計数遊技媒体数
「計数遊技媒体数」は、計数スイッチ47が操作されたことに基づいて遊技機10から貸出ユニット200に送信する(戻す)遊技媒体数である。計数遊技媒体数は、「0x00h」から「0x32h」までの範囲となっており、1回の計数通知では最大「50(D)」を貸出ユニット200に送信可能となっている。また、遊技媒体数制御基板100が記憶している遊技媒体数が「50」以上である場合は、「50」を示す「0x32h」のデータが送信されるが、遊技媒体数制御基板100が記憶している遊技媒体数が「50」未満である場合は遊技媒体数制御基板100が記憶している現在の遊技媒体数に応じたデータが送信される。たとえば、遊技媒体数制御基板100が記憶している遊技媒体数が「30(D)」である場合には、「0x1Eh」のデータが送信される。
Returning to the explanation given in FIG.
2. Data section of counting notification The data section of the counting notification is composed of the counted number of gaming media and the counted cumulative number of gaming media.
a) Number of counted game media The "number of counted game media" is the number of game media sent (returned) from the gaming machine 10 to the lending unit 200 based on the operation of the counting switch 47. The number of counted game media ranges from "0x00h" to "0x32h", and a maximum of "50 (D)" can be sent to the lending unit 200 in one counting notification. In addition, if the number of game media stored in the game media number control board 100 is "50" or more, data of "0x32h" indicating "50" is sent, but if the number of game media stored in the game media number control board 100 is less than "50", data according to the current number of game media stored in the game media number control board 100 is sent. For example, if the number of game media stored in the game media number control board 100 is "30 (D)", data of "0x1Eh" is sent.

なお、上述した計数遊技媒体数の例は、計数スイッチ47の操作を1回のみ受け付けた(以下、「短押し操作」と称する場合がある。)ときに「50」を通知する場合の例であるが、計数スイッチ47の短押し操作を受け付けた場合は計数遊技媒体数として「1」を通知し、計数スイッチ47の長押し操作を受け付けた場合は計数遊技媒体数として「50」を通知してもよい。
ここで、「計数スイッチ47の短押し操作を受け付けた」とは、たとえば、遊技媒体数制御基板100が計数スイッチ47の操作受け付けに関するレベルデータがオンを示す値となっている期間(割込み処理で計数スイッチ47の操作受付がオンを示す値となっている期間)が所定期間未満(たとえば「1」秒未満)である場合が挙げられる。すなわち、前記所定期間未満の時間で計数スイッチ47の操作が受け付けられた場合には、計数スイッチ47の短押し操作を受け付けたと判断し、計数遊技媒体数を「1」とする。
It should be noted that the above-mentioned example of the number of counted gaming media is an example in which "50" is notified when the counting switch 47 is operated only once (hereinafter sometimes referred to as a "short press operation"). However, it is also possible to notify "1" as the number of counted gaming media when a short press operation of the counting switch 47 is accepted, and to notify "50" as the number of counted gaming media when a long press operation of the counting switch 47 is accepted.
Here, "accepting a short press of the counting switch 47" refers to, for example, a period during which the level data relating to the operation acceptance of the counting switch 47 in the game media number control board 100 is a value indicating ON (the period during which the operation acceptance of the counting switch 47 is a value indicating ON in the interrupt process) is less than a predetermined period (for example, less than "1" second). In other words, if the operation of the counting switch 47 is accepted within a time less than the predetermined period, it is determined that a short press of the counting switch 47 has been accepted, and the number of counted game media is set to "1".

計数スイッチ47が1回操作されたときに、一律に遊技媒体数「50」を計数すると、遊技者の意思で遊技媒体数「50」未満、たとえば遊技媒体数「1」を取り出すことができなくなる。したがって、計数スイッチ47のたとえば短押し操作により、最小単位の遊技媒体数「1」を取り出すことができれば、「遊技媒体を自由に取り出すことができる性能を有する」という計数スイッチ47の趣旨に合致するものとなる。 If the counting switch 47 were to count the number of gaming media to "50" uniformly when operated once, the player would not be able to take out gaming media less than "50", for example, gaming media "1", at his will. Therefore, if it were possible to take out the smallest unit of gaming media, "1", by, for example, briefly pressing the counting switch 47, this would be in line with the purpose of the counting switch 47, which is to "have the ability to freely take out gaming media".

一方、「計数スイッチ47の長押し操作を受け付けた」とは、たとえば、遊技媒体数制御基板100が計数スイッチ47の操作受付けに関するレベルデータがオンを示す値となっている期間(割込み処理で計数スイッチ47の操作受付がオンを示す値となっている期間)が所定期間以上(たとえば「1」秒以上)である場合が挙げられる。すなわち、所定期間以上の時間、計数スイッチ47の操作が受け付けられた場合に、計数スイッチ47の長押し操作を受け付けたとして、計数遊技媒体数を「50」とする。 On the other hand, "a long press of the counting switch 47 has been accepted" refers to, for example, a period during which the level data relating to the operation acceptance of the counting switch 47 on the gaming media number control board 100 is a value indicating ON (the period during which the operation acceptance of the counting switch 47 is a value indicating ON in the interrupt process) that is longer than a predetermined period (for example, longer than "1" second). In other words, when the operation of the counting switch 47 is accepted for a period of time that is longer than the predetermined period, it is deemed that a long press of the counting switch 47 has been accepted, and the number of counted gaming media is set to "50".

なお、計数通知において計数遊技媒体数「50」を貸出ユニット200に送信した後、次に計数通知を送信するタイミングにおいて計数スイッチ47が未だ長押しされている場合は、計数通知として計数遊技媒体数「50」を貸出ユニット200に送信する。すなわち、一度長押し判定した後は、計数スイッチ47の操作がなくなるまで(計数スイッチ47の操作受付けに関するレベルデータがオフを示す値となるまで)計数通知において計数遊技媒体数「50」を貸出ユニット200に送信し続ける。この場合、計数スイッチ47が長押し操作されていると判断するまでの間(たとえば「1」秒間)は計数されないことになる。 In addition, after the number of counted gaming media "50" is sent to the lending unit 200 in the counting notification, if the counting switch 47 is still being pressed and held at the timing of the next counting notification being sent, the number of counted gaming media "50" is sent to the lending unit 200 as a counting notification. In other words, once a long press is determined, the number of counted gaming media "50" continues to be sent to the lending unit 200 in the counting notification until the operation of the counting switch 47 is stopped (until the level data regarding the operation acceptance of the counting switch 47 becomes a value indicating off). In this case, counting will not be performed until it is determined that the counting switch 47 is being pressed and held (for example, for "1" second).

b)計数累積遊技媒体数
「計数累積遊技媒体数」とは、遊技機10の電源投入時からの計数遊技媒体数の累積値である。計数累積遊技媒体数は、「0x0000h」から「0xFFFFh」までの範囲であり、計数が行われるごとにその計数遊技媒体数を加算する。なお、計数累積遊技媒体数が「0xFFFFh」を超える場合は「0xFFFFh」の次の値を「0x0000h」とする。また、遊技機10の電源投入があった場合は、計数累積遊技媒体数をクリアする(「0」にする)。
b) Counted cumulative number of gaming media The "counted cumulative number of gaming media" is the cumulative value of the counted number of gaming media since the gaming machine 10 is powered on. The counted cumulative number of gaming media ranges from "0x0000h" to "0xFFFFh", and the counted number of gaming media is added each time counting is performed. If the counted cumulative number of gaming media exceeds "0xFFFFh", the next value after "0xFFFFh" is set to "0x0000h". Furthermore, if the gaming machine 10 is powered on, the counted cumulative number of gaming media is cleared (set to "0").

3.貸出通知のデータ部
貸出通知のデータ部である「貸出遊技媒体数」は、貸出ユニット200の貸出スイッチ202が操作されることで、貸出ユニット200から遊技機10に送信される貸出しに関する遊技媒体数である。貸出遊技媒体数は、「0x00h」から「0x32h」までの範囲であり、1回の貸出通知では最大「50(D)」を遊技機10に送信可能となっている。また、貸出ユニット200側に記憶されている貸出可能遊技媒体数が「50」以上である場合は、「50」を示す「0x32h」のデータが遊技機10に送信される。これに対し、貸出ユニット200側に記憶されている貸出可能遊技媒体数が「50」未満である場合は、貸出ユニット200側に記憶されている現在の貸出可能遊技媒体数に応じたデータが送信される。たとえば、貸出可能遊技媒体数が「20」の場合は「20」を示す「0x14h」のデータが送信される。
3. Data section of the lending notification The "number of lending game media" which is the data section of the lending notification is the number of game media related to lending transmitted from the lending unit 200 to the gaming machine 10 by operating the lending switch 202 of the lending unit 200. The number of lending game media ranges from "0x00h" to "0x32h", and a maximum of "50 (D)" can be transmitted to the gaming machine 10 in one lending notification. In addition, if the number of lendable game media stored on the lending unit 200 side is "50" or more, data of "0x32h" indicating "50" is transmitted to the gaming machine 10. In contrast, if the number of lendable game media stored on the lending unit 200 side is less than "50", data corresponding to the current number of lendable game media stored on the lending unit 200 side is transmitted. For example, if the number of lendable game media is "20", data of "0x14h" indicating "20" is transmitted.

4.貸出受領結果応答のデータ部
貸出受領結果応答のデータ部である「貸出遊技媒体数受領結果」は、貸出ユニット200から遊技機10に送信される貸出遊技媒体数のデータを受信したことに基づいて、遊技機10から貸出ユニット200に送信されるデータである。貸出ユニット200から受信したデータが正常であるときは「0x00h」となり、異常であるときは「0x01h」となる。
異常となる場合としては、たとえば、
a)貸出ユニット200から通知された貸出通番が連続していない場合、
b)遊技媒体数制御基板100のRWM103の異常等により遊技機10側が貸出不可能な状態である場合、
c)遊技媒体数制御基板100が記憶している総遊技媒体数と貸出遊技媒体数とを加算した値が遊技媒体数制御基板100が記憶する遊技媒体数の記憶上限値を超える場合
等が挙げられる。
また、その他の要因で「0x00h」、「0x01h」以外の値となったときも貸出ユニット200は異常と判断する。
4. Data section of the loan receipt result response The "number of loaned gaming media received result", which is the data section of the loan receipt result response, is data transmitted from the gaming machine 10 to the loan unit 200 based on the reception of data on the number of loaned gaming media transmitted from the loan unit 200 to the gaming machine 10. If the data received from the loan unit 200 is normal, it will be "0x00h", and if it is abnormal, it will be "0x01h".
Examples of abnormal cases include:
a) If the rental serial numbers notified from the rental unit 200 are not consecutive,
b) When the gaming machine 10 is in a state where it cannot be rented out due to an abnormality in the RWM 103 of the gaming media count control board 100,
c) The sum of the total number of game media stored in the game media count control board 100 and the number of loaned game media exceeds the upper limit of the number of game media stored in the game media count control board 100.
In addition, if the value becomes other than "0x00h" or "0x01h" due to other factors, the rental unit 200 will also determine that an abnormality has occurred.

続いて、遊技機10と貸出ユニット200との間の通信について説明する。
図32は、遊技機10と貸出ユニット200との間の基本通信シーケンスを示すタイムチャートである。
遊技機10は、遊技機10の起動が完了したときから、貸出ユニット200に対し、遊技機情報通知を「300」msごとに送信する。図32の例では、通番「n」の遊技機情報通知を送信した後、「300」ms経過後に、通番「n+1」の遊技機情報通知を送信している。
なお、遊技機情報通知の遊技機情報中、図30に示したように、遊技機性能情報は「180」秒ごとに送信し、遊技機設置情報は「60」秒ごとに送信し、ホールコン・不正監視情報は「300」msごとに送信するが、その点については、後述する。
Next, communication between the gaming machine 10 and the rental unit 200 will be described.
FIG. 32 is a time chart showing the basic communication sequence between the gaming machine 10 and the rental unit 200.
The gaming machine 10 transmits a gaming machine information notification to the rental unit 200 every "300" ms from the time when the start-up of the gaming machine 10 is completed. In the example of Fig. 32, after transmitting the gaming machine information notification of serial number "n", after "300" ms has elapsed, the gaming machine information notification of serial number "n+1" is transmitted.
As shown in FIG. 30, among the gaming machine information in the gaming machine information notification, gaming machine performance information is transmitted every 180 seconds, gaming machine installation information is transmitted every 60 seconds, and hall control/fraud monitoring information is transmitted every 300 ms; more on this later.

さらに、遊技機10は、貸出ユニット200に対し、遊技機情報通知を送信した後、「100」ms後に計数通知を送信する。
また、貸出ユニット200は、計数通知を受信した後、「170」ms以内に、遊技機10に対して貸出通知を送信する。そして、遊技機10は、貸出通知を受信した後、「10」ms以内に貸出受領結果応答を貸出ユニット200に送信する。
遊技機10は、遊技機情報通知を送信してから「300」ms後に次の遊技機情報通知を送信するため、貸出受領結果応答を送信してから次の遊技機情報通知を送信するまでの間は、「20」ms以上となる。
Furthermore, the gaming machine 10 transmits a counting notification to the rental unit 200 "100" ms after transmitting the gaming machine information notification.
In addition, the lending unit 200 transmits a lending notification to the gaming machine 10 within "170" ms after receiving the counting notification. Then, the gaming machine 10 transmits a lending receipt result response to the lending unit 200 within "10" ms after receiving the lending notification.
Since the gaming machine 10 transmits the next gaming machine information notification 300 ms after transmitting the previous gaming machine information notification, the time between transmitting the loan receipt result response and transmitting the next gaming machine information notification is 20 ms or more.

図33は、遊技機10と貸出ユニット200との起動シーケンスの例1を説明するタイムチャートであり、遊技機10が先に起動した場合を示す。
遊技機10、及び貸出ユニット200の双方の電源がオフ(「電源断」と同義である。以下同じ。)の場合は、遊技機10と貸出ユニット200とのVL信号及びPSI信号はオフとなっている。
VL信号は、遊技機10が遊技可能(遊技媒体をベット可能)となったときにオンになる信号であり、貸出ユニット200が起動するまでオフとなっている信号である。
また、PSI信号は、遊技機10と貸出ユニット200との接続信号であり、貸出ユニット200が起動するまでオフとなっている信号である。
FIG. 33 is a time chart illustrating an example 1 of a start-up sequence of the gaming machine 10 and the rental unit 200, showing the case where the gaming machine 10 starts up first.
When the power supply to both the gaming machine 10 and the rental unit 200 is off (synonymous with "power off"; same below), the VL signal and PSI signal between the gaming machine 10 and the rental unit 200 are off.
The VL signal is a signal that is turned on when the gaming machine 10 is playable (gaming media can be bet), and is a signal that is kept off until the lending unit 200 is started up.
In addition, the PSI signal is a connection signal between the gaming machine 10 and the lending unit 200, and is a signal that is off until the lending unit 200 is started up.

電源がオンにされた後、遊技機10の起動が完了した時点で、貸出ユニット200の起動は未だ完了していない。
この状況下において、遊技機10は、電文通知のプログラムに従って、最初の電文、すなわち遊技機情報通知を貸出ユニット200に送信し、さらに上述したように、遊技機情報通知の送信から「100」ms後に計数通知を送信する。しかし、遊技機情報通知及び計数通知の送信時には、貸出ユニット200の起動がまだ完了していないので、貸出ユニット200は、この遊技機情報通知及び計数通知を受信できない。図中、「?」印は、遊技機10が遊技機情報通知及び計数通知を送信したものの、貸出ユニット200がこれらの通知を受信できないことを示している。
さらに、貸出ユニット200が未だ起動しておらず、かつ計数通知を受信していないので、貸出ユニット200から遊技機10に対して貸出通知が送信されることもない。よって、遊技機10は、貸出受領結果応答を送信することもない。
After the power is turned on, when the start-up of the gaming machine 10 is completed, the start-up of the lending unit 200 is not yet completed.
In this situation, the gaming machine 10 transmits the first message, i.e., a gaming machine information notification, to the rental unit 200 in accordance with the message notification program, and then transmits a counting notification 100 ms after transmitting the gaming machine information notification, as described above. However, since the rental unit 200 has not yet completed starting up when the gaming machine information notification and counting notification are transmitted, the rental unit 200 is unable to receive these gaming machine information notification and counting notification. In the figure, the "?" mark indicates that although the gaming machine 10 has transmitted the gaming machine information notification and counting notification, the rental unit 200 is unable to receive these notifications.
Furthermore, since the lending unit 200 has not yet started and has not yet received the counting notification, the lending unit 200 does not transmit a lending notification to the gaming machine 10. Therefore, the gaming machine 10 does not transmit a lending receipt result response.

遊技機10の起動が完了した後、最初に送信する遊技機情報通知の通番と計数通知の計数通番は、「0x00h」を送信する。また、通番や計数通番は、遊技機10と貸出ユニット200とが接続されているか否かにかかわらず更新されるため、次に送信するタイミング(遊技機10の起動完了後、最初に送信した遊技機情報通知の「300」ms後に送信するタイミング)では、通番及び計数通番として「0x01h」を送信する。 After the gaming machine 10 has completed booting, the serial number of the gaming machine information notification and the counting serial number of the counting notification that are sent first are "0x00h". In addition, since the serial number and counting serial number are updated regardless of whether the gaming machine 10 and the rental unit 200 are connected or not, at the next transmission timing (the timing of transmission "300" ms after the gaming machine 10 has completed booting and the first gaming machine information notification sent), "0x01h" is sent as the serial number and counting serial number.

その後、貸出ユニット200の起動が完了すると、VL信号及びPSI信号がオンになり、遊技機10のベットスイッチ40の操作及び計数スイッチ47の操作が有効になる。また、遊技機10から送信した情報を貸出ユニット200が受信可能となる。貸出ユニット200は、その起動後は、計数通知の受信に基づいて貸出通知を遊技機10に送信可能となる。図33の例では、計数通番「m」の計数通知を遊技機10が貸出ユニット200に送信し、貸出ユニット200が当該通知を受信すると、貸出通番「k」の貸出通知を遊技機10に送信する例を示している。
さらに、遊技機10は、受信した貸出通知に基づいて貸出受領結果応答を貸出ユニット200に送信可能となる。図33の例では、遊技機10は、貸出通番「k」の貸出通知を受信したことに基づいて、貸出通番「k」の貸出受領結果応答を貸出ユニット200に送信した例を示している。
Thereafter, when the startup of the lending unit 200 is completed, the VL signal and the PSI signal are turned on, and the operation of the bet switch 40 and the counting switch 47 of the gaming machine 10 are enabled. The lending unit 200 is also able to receive information transmitted from the gaming machine 10. After startup, the lending unit 200 is able to transmit a lending notification to the gaming machine 10 based on the reception of the counting notification. The example of Figure 33 shows an example in which the gaming machine 10 transmits a counting notification of counting serial number "m" to the lending unit 200, and when the lending unit 200 receives the notification, it transmits a lending notification of lending serial number "k" to the gaming machine 10.
Furthermore, the gaming machine 10 becomes able to transmit a rental receipt result response to the rental unit 200 based on the received rental notification. The example of Fig. 33 shows an example in which the gaming machine 10 transmits a rental receipt result response of the rental serial number "k" to the rental unit 200 based on receiving a rental notification of the rental serial number "k".

上述したように、遊技機10は、貸出ユニット200が起動しているか否かにかかわらず、遊技機情報通知や計数通知を送信するため、貸出ユニット200は、貸出ユニット200の起動が完了した後に遊技機10から送信された遊技機情報通知の通番、及び計数通知の計数通番から管理する。このように構成することで、遊技機10は、貸出ユニット200の状況を判断することなく電文を送信できるため、貸出ユニット200の状況を判断するためのプログラム容量を削減することができる。 As described above, the gaming machine 10 transmits gaming machine information notifications and counting notifications regardless of whether the rental unit 200 is activated or not, so the rental unit 200 manages the serial number of the gaming machine information notification and the counting serial number of the counting notification transmitted from the gaming machine 10 after the rental unit 200 has completed its activation. By configuring in this manner, the gaming machine 10 can transmit messages without determining the status of the rental unit 200, so the program capacity for determining the status of the rental unit 200 can be reduced.

図34は、遊技機10と貸出ユニット200との起動シーケンスの例2を説明するタイムチャートであり、貸出ユニット200が先に起動した場合を示す。
遊技機10の電源がオフの状態において、貸出ユニット200の電源のみがオンにされると、貸出ユニット200のみが起動を開始する。貸出ユニット200の起動中は、VL信号及びPSI信号はオフである。
そして、貸出ユニット200の起動が完了すると、貸出ユニット200のVL信号及びPSI信号がオンになる。
FIG. 34 is a time chart illustrating an example 2 of the startup sequence of the gaming machine 10 and the lending unit 200, showing the case where the lending unit 200 starts up first.
When the power supply of the gaming machine 10 is turned off and only the power supply of the lending unit 200 is turned on, only the lending unit 200 starts to start up. During the startup of the lending unit 200, the VL signal and the PSI signal are off.
Then, when the startup of the lending unit 200 is completed, the VL signal and the PSI signal of the lending unit 200 are turned on.

図34では、貸出ユニット200のVL信号及びPSI信号がオンになった後に、遊技機10の電源がオンにされた例を示している。
そして、遊技機10の起動が完了すると、遊技機10及び貸出ユニット200双方のVL信号及びPSI信号がオンになり、遊技機10のベットスイッチ40の操作及び計数スイッチ47の操作が有効になる。
FIG. 34 shows an example in which the power of the gaming machine 10 is turned on after the VL signal and the PSI signal of the lending unit 200 are turned on.
Then, when the start-up of the gaming machine 10 is completed, the VL signal and the PSI signal of both the gaming machine 10 and the lending unit 200 are turned on, and the operation of the bet switch 40 and the counting switch 47 of the gaming machine 10 become valid.

そして、図33の例と同様に、遊技機10は、電文通知のプログラムに従って、最初の電文、すなわち遊技機情報通知を貸出ユニット200に送信し、さらに、遊技機情報通知の送信から「100」ms後に計数通知を送信する。この時点で貸出ユニット200の起動は完了しているので、貸出ユニット200は、最初の遊技機情報通知及び計数通知を受信可能である。
貸出ユニット200は、計数通知を受信したときは、「170」ms以内に貸出通知を遊技機10に送信する。さらに、遊技機10は、貸出通知を受信すると、「10」ms以内に、貸出受領結果応答を貸出ユニット200に送信する。
以上のようにして、遊技機10の起動完了時にすでに貸出ユニット200の起動が完了している場合には、貸出ユニット200は、遊技機10から送信される最初の電文(通番「0」の遊技機情報通知)から受信することができる。
33, the gaming machine 10 transmits the first message, i.e., a gaming machine information notification, to the rental unit 200 according to the program for the message notification, and further transmits a counting notification "100" ms after transmitting the gaming machine information notification. Since the startup of the rental unit 200 is completed at this point, the rental unit 200 can receive the first gaming machine information notification and the counting notification.
When the lending unit 200 receives the counting notification, it transmits a lending notification to the gaming machine 10 within "170" ms. Furthermore, when the gaming machine 10 receives the lending notification, it transmits a lending receipt result response to the lending unit 200 within "10" ms.
In this manner, if the startup of the rental unit 200 has already been completed when the startup of the gaming machine 10 is completed, the rental unit 200 can receive from the first message (gaming machine information notification with serial number "0") sent from the gaming machine 10.

図35は、遊技機情報通知の基本シーケンスを説明するタイムチャートである。
図35中、遊技機10の起動完了後、最初の遊技機情報通知を「A0」とし、それ以降の遊技機情報通知を、「A1」、「A2」、・・・と称する。
同様に、計数通知を「B0」、「B1」、「B2」、・・・と称し、貸出通知を「C0」、「C1」、「C2」、・・・と称し、貸出受領結果応答を「D0」、「D1」、「D2」、・・・と称する。
図32で示したように、遊技機10は、貸出ユニット200に対し、「300」msごとに、遊技機情報通知を送信する。
ここで、図30に示したように、
(1)遊技機性能情報:180秒ごと(第2優先)
(2)遊技機設置情報:60秒ごと(第1優先)
(3)ホールコン・不正監視情報:300msごと
に、いずれかの遊技機情報を含む遊技機情報通知を送信する。
FIG. 35 is a time chart illustrating the basic sequence of notifying gaming machine information.
In FIG. 35, after the start-up of the gaming machine 10 is completed, the first gaming machine information notification is referred to as "A0", and subsequent gaming machine information notifications are referred to as "A1", "A2", . . .
Similarly, the counting notifications are referred to as "B0", "B1", "B2", ..., the loan notifications are referred to as "C0", "C1", "C2", ..., and the loan receipt result responses are referred to as "D0", "D1", "D2", ....
As shown in FIG. 32, the gaming machine 10 transmits a gaming machine information notification to the rental unit 200 every "300" ms.
Here, as shown in FIG.
(1) Gaming machine performance information: every 180 seconds (second priority)
(2) Gaming machine installation information: every 60 seconds (first priority)
(3) Hall control/fraud monitoring information: A gaming machine information notification including information on any one of the gaming machines is transmitted every 300 ms.

ホールコン・不正監視情報は、原則として「300」msごとに送信するが、「60」秒ごとに送信する遊技機設置情報の送信周期と重なり、かつ「180」秒ごとに送信する遊技機性能情報の送信周期と重ならない場合には、当該送信タイミングでは、遊技機設置情報を優先して送信し、遊技機設置情報の送信後の次の送信タイミング(「300」ms後)に、ホールコン・不正監視情報を送信する。
図35において、遊技機10の起動後、「200」回目の遊技機情報通知(図中、「A199」)の送信は、最初の遊技機情報通知の送信時から「60」秒経過時となる(300ms×200=60000ms)。
したがって、「A199」の遊技機情報通知の送信タイミングでは、ホールコン・不正監視情報よりも優先して、遊技機設置情報を含む遊技機情報通知を送信する。そして、その送信から「300」ms後の「A200」の遊技機情報通知の送信タイミングでは、ホールコン・不正監視情報を含む遊技機情報通知を送信する。
In principle, hall control and fraud monitoring information is transmitted every 300 ms, but if the transmission cycle overlaps with the transmission cycle of gaming machine installation information, which is transmitted every 60 seconds, but does not overlap with the transmission cycle of gaming machine performance information, which is transmitted every 180 seconds, the gaming machine installation information is transmitted first at that transmission timing, and the hall control and fraud monitoring information is transmitted at the next transmission timing after the transmission of the gaming machine installation information (300 ms later).
In FIG. 35, after the gaming machine 10 is started, the 200th gaming machine information notification (A199 in the figure) is transmitted 60 seconds after the first gaming machine information notification was transmitted (300 ms x 200 = 60,000 ms).
Therefore, at the timing of transmitting the gaming machine information notification "A199", the gaming machine information notification including the gaming machine installation information is transmitted in priority over the hall control and fraud monitoring information. Then, at the timing of transmitting the gaming machine information notification "A200" 300 ms after the transmission of the gaming machine information notification "A199", the gaming machine information notification including the hall control and fraud monitoring information is transmitted.

さらに、「60」秒周期である遊技機設置情報の送信周期と重なり、かつ「180」秒周期である遊技機性能情報の送信周期と重なる場合には、第1優先として、遊技機設置情報を送信し、その次の送信周期(遊技機設置情報の送信から「300」ms後)に、第2優先として遊技機性能情報を送信する。さらに、その次の送信周期(遊技機性能情報の送信から「300」ms後)に、ホールコン・不正監視情報を送信する。
図35において、「A599」の遊技機情報通知の送信タイミングは、最初の遊技機情報通知の送信時から、「60」秒経過時かつ「180」秒経過時である(300ms×600=180000ms)。なお、「180」秒経過時は、常に「60」秒経過時に相当する。
Furthermore, if the transmission period of the gaming machine installation information overlaps with a 60-second cycle and also overlaps with a 180-second cycle of the gaming machine performance information, the gaming machine installation information is transmitted as the first priority, and in the next transmission period (300 ms after the transmission of the gaming machine installation information), the gaming machine performance information is transmitted as the second priority. Furthermore, in the next transmission period (300 ms after the transmission of the gaming machine performance information), the hall control/fraud monitoring information is transmitted.
35, the timing of transmission of the gaming machine information notification of "A599" is when "60" seconds have elapsed and when "180" seconds have elapsed from the time of transmission of the first gaming machine information notification (300 ms x 600 = 180,000 ms). Note that the time when "180" seconds have elapsed always corresponds to the time when "60" seconds have elapsed.

したがって、「A599」の遊技機情報通知の送信タイミングでは、第1優先として、遊技機設置情報を送信する。さらに、その時点から「300」ms経過後の「A600」の遊技機情報通知の送信タイミングでは、第2優先として、遊技機性能情報を送信する。さらに、その時点から「300」ms経過後の「A601」の遊技機情報通知の送信タイミングでは、ホールコン・不正監視情報を送信する。 Therefore, when the gaming machine information notification "A599" is sent, the gaming machine installation information is sent as the first priority. Furthermore, when the gaming machine information notification "A600" is sent 300 ms after that time, the gaming machine performance information is sent as the second priority. Furthermore, when the gaming machine information notification "A601" is sent 300 ms after that time, the hall control and fraud monitoring information is sent.

遊技機情報通知を送信するときは、遊技機情報(ホールコン・不正監視情報、遊技機設置情報、遊技機性能情報)を取得し(RWMやROM等から読込み)、送信用レジスタに記憶し、所定の出力ポートから送信する。
したがって、ホールコン・不正監視情報、遊技機設置情報、遊技機性能情報は、いずれも、送信する直前の最新の情報を送信する。
遊技機情報通知のうち、遊技機設置情報は、主制御チップID番号等であるため、時間の経過(遊技の進行)とともに変化する情報ではなく、固定的情報である。
一方、ホールコン・不正監視情報は、図31に示したように、遊技媒体数、投入数、付与数等を含む情報であるから、遊技の進行(時間経過)によって変化する情報である。
When sending a gaming machine information notification, gaming machine information (hall control/fraud monitoring information, gaming machine installation information, gaming machine performance information) is obtained (read from RWM, ROM, etc.), stored in a transmission register, and transmitted from a specified output port.
Therefore, the latest information immediately prior to transmission is transmitted for hall control/fraud monitoring information, gaming machine installation information, and gaming machine performance information.
Among the gaming machine information notifications, the gaming machine installation information is the main control chip ID number, etc., and is therefore fixed information, not information that changes over time (as the game progresses).
On the other hand, the hall control/fraud monitoring information includes the number of game media, the number of inserted game media, the number of awarded game media, etc., as shown in FIG. 31, and is therefore information that changes as the game progresses (time passes).

そして、遊技機設置情報、遊技機性能情報、ホールコン・不正監視情報の送信周期がすべて重なったときは、遊技機設置情報、遊技機性能情報、ホールコン・不正監視情報の優先順位で送信されるため、遊技機情報通知の送信周期(「300」ms)が到来した時から、最長で、「600」ms、ホールコン・不正監視情報の送信が遅れる。 When the transmission cycles of gaming machine installation information, gaming machine performance information, and hall control/fraud monitoring information all overlap, the information is transmitted in the following order of priority: gaming machine installation information, gaming machine performance information, hall control/fraud monitoring information. Therefore, the transmission of hall control/fraud monitoring information is delayed by up to 600 ms from the time the transmission cycle of the gaming machine information notification (300 ms) arrives.

この場合、遊技機設置情報の送信タイミングの時点でホールコン・不正監視情報を取得しておき、遊技機設置情報の送信タイミングから「600」ms経過後(遊技機設置情報の送信後、かつ遊技機性能情報の送信後)にホールコン・不正監視情報を送信すると、「600」ms前のホールコン・不正監視情報を送信することになってしまう。
そこで、ホールコン・不正監視情報の送信時には、実際に送信する直前に、ホールコン・不正監視情報を取得し、送信用レジスタに記憶するようにしている。
In this case, if the hall control and fraud monitoring information is obtained at the time when the gaming machine installation information is transmitted, and the hall control and fraud monitoring information is transmitted 600 ms after the gaming machine installation information is transmitted (after the gaming machine installation information is transmitted and after the gaming machine performance information is transmitted), the hall control and fraud monitoring information from 600 ms ago will be transmitted.
Therefore, when the hole control/fraud monitoring information is to be transmitted, the hole control/fraud monitoring information is acquired and stored in a transmission register immediately before the actual transmission.

以上は、遊技機設置情報とホールコン・不正監視情報の送信周期が重なったときも同様である。この場合には、遊技機情報通知の送信周期(「300」ms)が到来したときから、「300」ms後に、ホールコン・不正監視情報が送信される。
ここで、遊技機設置情報の送信タイミングの時点でホールコン・不正監視情報を取得しておき、遊技機設置情報の送信タイミングから「300」ms経過後にホールコン・不正監視情報を送信すると、「300」ms前のホールコン・不正監視情報を送信することになってしまう。
そこで、ホールコン・不正監視情報の送信時には、実際に送信する直前に、ホールコン・不正監視情報を取得し、送信用レジスタに記憶するようにしている。
The above also applies when the transmission cycles of the gaming machine installation information and the hall control/fraud monitoring information overlap. In this case, the hall control/fraud monitoring information is transmitted 300 ms after the transmission cycle (300 ms) of the gaming machine information notification has arrived.
Here, if the hall control/fraud monitoring information is obtained at the time when the gaming machine installation information is transmitted, and the hall control/fraud monitoring information is transmitted 300 ms after the gaming machine installation information is transmitted, the hall control/fraud monitoring information from 300 ms ago will be transmitted.
Therefore, when the hole control/fraud monitoring information is to be transmitted, the hole control/fraud monitoring information is acquired and stored in a transmission register immediately before the actual transmission.

また、遊技機性能情報は、図31に示したように、総投入数、総付与数、MY等を含む情報であるから、遊技の進行(時間経過)によって変化する。
そして、遊技機設置情報と遊技機性能情報との送信周期が重なったときは、遊技機設置情報が遊技機性能情報よりも優先して送信されるため、遊技機情報通知の送信周期(「300」ms)が到来したときから、「300」ms経過後に、遊技機性能情報が送信される。
この場合、遊技機設置情報の送信タイミングの時点で遊技機性能情報を取得しておき、遊技機設置情報の送信タイミングから「300」ms経過後に遊技機性能情報を送信すると、「300」ms前の遊技機性能情報を送信することになってしまう。
そこで、遊技機性能情報の送信時には、実際に送信する直前に遊技機性能情報を取得し、送信用レジスタに記憶するようにしている。
換言すると、「300」msごとの遊技機情報通知の送信タイミングでは、今回の割込み処理で送信する遊技機情報通知の遊技機情報(ホールコン・不正監視情報、遊技機設置情報、又は遊技機性能情報のいずれか)のみを、送信用レジスタに記憶する。
Furthermore, as shown in FIG. 31, the gaming machine performance information includes the total number of coins inserted, the total number of coins awarded, MY, etc., and therefore changes as the game progresses (time passes).
When the transmission periods for the gaming machine installation information and gaming machine performance information overlap, the gaming machine installation information is transmitted in priority over the gaming machine performance information, and the gaming machine performance information is transmitted 300 ms after the transmission period for the gaming machine information notification (300 ms) arrives.
In this case, if gaming machine performance information is obtained at the time when the gaming machine installation information is transmitted, and the gaming machine performance information is transmitted 300 ms after the timing of transmitting the gaming machine installation information, gaming machine performance information from 300 ms ago will be transmitted.
Therefore, when transmitting the gaming machine performance information, the gaming machine performance information is obtained immediately before the actual transmission and stored in a transmission register.
In other words, at the timing of transmitting the gaming machine information notification every 300 ms, only the gaming machine information (either hall control/fraud monitoring information, gaming machine installation information, or gaming machine performance information) of the gaming machine information notification to be transmitted in this interrupt processing is stored in the transmission register.

図36は、計数通知シーケンスを説明するタイムチャートである。
遊技者が遊技を終了するとき等に、計数スイッチ47が操作されると、遊技機10側の遊技媒体を貸出ユニット200に送信する(戻す、返却する)処理を実行する。
なお、計数処理は、遊技機10側の遊技媒体データを貸出ユニット200に実際に伝送ないし転送処理を実行するわけではなく、遊技機10の遊技媒体数記憶手段103aに記憶された遊技媒体数の減算処理を実行し、かつ、貸出ユニット200の貸出可能遊技媒体数記憶手段206に記憶された遊技媒体数の加算処理を実行するものである。
図36の例では、計数スイッチ47の操作を受け付ける前の状況として、遊技媒体数制御基板100(遊技媒体数記憶手段103a)に記憶されている(総)遊技媒体数が「200」であり、貸出ユニット200に記憶されている貸出可能遊技媒体数は「20」であるものとする。
FIG. 36 is a time chart illustrating the counting notification sequence.
When the player ends the game, etc., the counting switch 47 is operated, and a process is executed to transmit (return, return) the gaming medium on the gaming machine 10 side to the rental unit 200.
In addition, the counting process does not actually transmit or transfer the gaming media data from the gaming machine 10 to the lending unit 200, but rather performs a subtraction process of the number of gaming media stored in the gaming media number storage means 103a of the gaming machine 10, and performs an addition process of the number of gaming media stored in the lendable gaming media number storage means 206 of the lending unit 200.
In the example of Figure 36, the situation before accepting the operation of the counting switch 47 is that the (total) number of game media stored in the game media number control board 100 (game media number storage means 103a) is "200", and the number of game media available for lending stored in the lending unit 200 is "20".

遊技機10及び貸出ユニット200の起動が完了しており、遊技機10と貸出ユニット200との通信が可能な状況下において、計数スイッチ47の操作(オン)を検知した後の最初の遊技機情報通知を貸出ユニット200に送信するタイミングでは、遊技機情報通知の通番は「n」であるものとする。また、この時点で遊技媒体数制御基板100に記憶されている遊技媒体数は「200」であるので、遊技媒体数「200」を貸出ユニット200に送信する。
さらに、遊技機10は、計数通知を貸出ユニット200に更新する。このときの計数通知の計数通番は「m」であるものとする。また、このときの計数通知における計数遊技媒体数は「50」である。この例では、計数スイッチ47の操作が検知されると、1回の計数通知の送信で計数遊技媒体数「50」を送信するものとする。
When the startup of the gaming machine 10 and the rental unit 200 is complete and communication between the gaming machine 10 and the rental unit 200 is possible, the serial number of the gaming machine information notification is "n" at the timing when the first gaming machine information notification is sent to the rental unit 200 after the operation (ON) of the counting switch 47 is detected. Also, since the number of gaming media stored in the gaming media number control board 100 at this point is "200", the number of gaming media "200" is sent to the rental unit 200.
Furthermore, the gaming machine 10 updates the counting notification to the rental unit 200. The counting serial number of the counting notification at this time is assumed to be "m". Also, the number of counted gaming media in the counting notification at this time is assumed to be "50". In this example, when the operation of the counting switch 47 is detected, the number of counted gaming media "50" is transmitted in one counting notification transmission.

また、当該計数に係る処理が遊技機10の起動が完了してから初めての計数に係る処理であるとすると、計数通知として計数累積遊技媒体数「50」を送信する。なお、遊技機10は、計数通知を送信する処理を実行する前に、遊技媒体数から計数遊技媒体数を減算する。したがって、計数通知を送信する処理を実行する前に、遊技媒体数制御基板100に記憶されている遊技媒体数は、「200」から「150」に更新される。また、貸出ユニット200は、計数通知を受信すると、貸出ユニット200の貸出可能遊技媒体数記憶手段206に記憶されている貸出可能遊技媒体数に、計数遊技媒体を加算する。したがって、図36の例では、貸出可能遊技媒体数は、「20」から「70」に更新される。
続いて、貸出ユニット200は、貸出通知を遊技機10に送信する。この貸出通知の貸出通番は「k」であるものとする。また、この貸出通知における貸出遊技媒体数は「0」である。ここで、貸出遊技媒体数「0」を送信するのは、貸出スイッチ202が操作されていないためである。
Also, if the counting process is the first counting process since the start-up of the gaming machine 10 is completed, the gaming machine 10 transmits the counted cumulative number of gaming media "50" as a counting notification. Note that the gaming machine 10 subtracts the number of counted gaming media from the number of gaming media before executing the process of transmitting the counting notification. Therefore, the number of gaming media stored in the gaming media number control board 100 is updated from "200" to "150" before executing the process of transmitting the counting notification. Furthermore, when the lending unit 200 receives the counting notification, it adds the counted gaming media to the number of lendable gaming media stored in the lendable gaming media number storage means 206 of the lending unit 200. Therefore, in the example of FIG. 36, the number of lendable gaming media is updated from "20" to "70".
Next, the lending unit 200 transmits a lending notification to the gaming machine 10. The lending serial number of this lending notification is assumed to be "k". Also, the number of lending gaming media in this lending notification is "0". Here, the reason why the number of lending gaming media "0" is transmitted is because the lending switch 202 has not been operated.

また、遊技機10は、貸出ユニット200から貸出通知を受信したときは、貸出通知が示す情報と前回の貸出通知が示す情報との整合性をチェックする。
そして、貸出通知が示す情報と前回の貸出通知が示す情報との整合性をチェックした結果、正常であると判断したときは、遊技機10は、貸出通番を「k」、貸出点受領結果を「正常」とする貸出受領結果応答を貸出ユニット200に送信する。
In addition, when the gaming machine 10 receives a rental notice from the rental unit 200, it checks the consistency between the information indicated in the rental notice and the information indicated in the previous rental notice.
Then, if the gaming machine 10 checks the consistency between the information indicated in the loan notification and the information indicated in the previous loan notification and determines that the information is normal, it sends a loan receipt result response to the loan unit 200 indicating the loan serial number as "k" and the loan point receipt result as "normal."

次の通番「n+1」の遊技機情報通知の送信時には、通番「n+1」、遊技媒体数「150」を送信する。
図36は、通番「n」の遊技機情報通知が送信された後、「300」msを経過して、次の通番「n+1」の遊技機情報通知が送信される際にも、計数スイッチ47のオン状態が維持されている(計数スイッチ47が長押しされている)例である。したがって、計数通知として、計数通番「m+1」、計数遊技媒体数「50」、計数累積遊技媒体数「100」を送信する。これにより、貸出ユニット200側では、貸出可能遊技媒体数は「120」に更新される。
また、貸出ユニット200から遊技機10に対し、貸出通知として、貸出通番「k+1」、貸出遊技媒体数「0」を遊技機10に送信する。さらに、遊技機10は、当該貸出通知を受信すると、貸出ユニット200に対し、貸出受領結果応答として、貸出通番「k+1」、貸出点受領結果「正常」を送信する。
When transmitting the next gaming machine information notification with the serial number "n+1", the serial number "n+1" and the number of gaming media "150" are transmitted.
36 shows an example in which the counting switch 47 remains on (the counting switch 47 is pressed and held down) even when "300" ms has elapsed since the gaming machine information notification with serial number "n" was sent and the next gaming machine information notification with serial number "n+1" is sent. Therefore, the counting notification transmitted is the counting serial number "m+1", the number of counted gaming media "50", and the cumulative number of counted gaming media "100". As a result, the number of lendable gaming media on the lending unit 200 side is updated to "120".
Furthermore, the lending unit 200 transmits a lending serial number "k+1" and the number of lending gaming media "0" to the gaming machine 10 as a lending notification to the gaming machine 10. Furthermore, upon receiving the lending notification, the gaming machine 10 transmits to the lending unit 200 a lending serial number "k+1" and a lending point receipt result of "normal" as a lending receipt result response.

このように、遊技機10に遊技媒体が記憶されている状況下において、計数スイッチ47のオンを検知してからオフを検知するまでの間(計数スイッチ47が長押しされている間)は、「300」msごとに、遊技機10から貸出ユニット200に対して、所定数の計数遊技媒体を含む計数通知を送信し続ける。このように構成することにより、複雑な操作をさせることなく(長押しするのみ)、「300」msごとに一定量(本例では「50」)の計数遊技媒体数を貸出ユニット200に送信可能となるため、計数操作の負担を軽減することができる。
なお、計数スイッチ47は、遊技媒体数制御基板100と接続されているため、遊技媒体数制御基板100の割込み処理ごとに入力ポート101をチェックし、計数スイッチ47を示す入力ポート101にオンを示す情報が入力されていた場合は、計数スイッチ47の操作を受け付ける。その後、計数スイッチ47を示す入力ポート101にオフを示す情報が入力されていた場合は、計数スイッチ47の操作受付けを終了する。
In this way, when gaming media are stored in the gaming machine 10, from when the counting switch 47 is detected to be on until it is detected to be off (while the counting switch 47 is pressed and held), the gaming machine 10 continues to send a counting notification including a predetermined number of counted gaming media to the lending unit 200 every "300" ms. By configuring in this way, a fixed amount ("50" in this example) of counted gaming media can be sent to the lending unit 200 every "300" ms without requiring complicated operations (just a long press), thereby reducing the burden of the counting operation.
Since the counting switch 47 is connected to the game media number control board 100, the input port 101 is checked for each interrupt process of the game media number control board 100, and if information indicating ON has been input to the input port 101 indicating the counting switch 47, the operation of the counting switch 47 is accepted. If information indicating OFF has subsequently been input to the input port 101 indicating the counting switch 47, acceptance of the operation of the counting switch 47 is terminated.

図36の例では、通番「n+1」の遊技機情報通知が送信された後、通番「n+2」の遊技機情報通知が送信される前に、計数スイッチ47のオフを検知した例を示している。
この場合、遊技機10は、通番「n+2」の遊技機情報通知の送信時には、遊技媒体数「100」を送信する。
また、計数通知として、計数通番「m+2」、計数遊技媒体数「0」、計数累積遊技媒体数「100」を送信する。さらにまた、貸出ユニット200から遊技機10に対する貸出通知として、貸出通番「k+2」、貸出遊技媒体数「0」を遊技機10に送信する。さらに、遊技機10から貸出ユニット200に対する貸出受領結果応答として、貸出通番「k+2」、貸出点受領結果「正常」を送信する。
The example of Figure 36 shows an example in which the counting switch 47 is detected as being off after a gaming machine information notification with serial number "n+1" is transmitted and before a gaming machine information notification with serial number "n+2" is transmitted.
In this case, when transmitting a gaming machine information notification with the serial number "n+2", the gaming machine 10 transmits the number of gaming media "100".
Also, as a counting notification, the counting serial number "m+2", the number of counted gaming media "0", and the cumulative number of counted gaming media "100" are transmitted. Furthermore, as a lending notification from the lending unit 200 to the gaming machine 10, the lending serial number "k+2" and the number of lending gaming media "0" are transmitted to the gaming machine 10. Furthermore, as a lending receipt result response from the gaming machine 10 to the lending unit 200, the lending serial number "k+2" and the lending point receipt result "normal" are transmitted.

なお、計数通知は、遊技機情報通知の送信後、「100」ms後に送信されるものである。換言すれば、計数通知は「300」msごとに送信される。このため、計数スイッチ47が操作されていない状況下においても、計数遊技媒体数が「0」である計数通知が「300」msごとに送信される。
また、遊技機10の遊技媒体数記憶手段103aに遊技媒体が記憶されていない状況下では、計数スイッチ47が操作されても、計数遊技媒体数が「0」である計数通知が「300」msごとに送信される。
The counting notification is transmitted 100 ms after the gaming machine information notification is transmitted. In other words, the counting notification is transmitted every 300 ms. Therefore, even when the counting switch 47 is not operated, a counting notification in which the number of counted gaming media is "0" is transmitted every 300 ms.
In addition, in a situation where no gaming media is stored in the gaming media number storage means 103a of the gaming machine 10, even if the counting switch 47 is operated, a counting notification indicating that the number of counted gaming media is "0" is transmitted every "300" ms.

次に、計数処理を、フローチャートを用いて説明する。
図37は、第2実施形態における計数処理を示すフローチャートである。
なお、図29では図示していないが、遊技媒体数制御基板100のRWM103には、以下の記憶領域を備える。
計数中フラグ(_FL_CAL_EXE )は、計数中であるか否かを示すデータを記憶する記憶領域である。
計数値記憶領域(_CT_CAL_VAL )は、計数通知時に送信する計数値(計数遊技媒体数)を記憶する記憶領域である。
計数累積値記憶領域(_CT_CAL_ALL )は、計数累積値(計数累積遊技媒体数)を記憶する記憶領域である。
計数通番記憶領域(_NB_CAL_NUM)は、計数通番を記憶する記憶領域である。
なお、遊技媒体数制御基板100を備えていない遊技機の場合には、主制御基板50のRWM53に上記各記憶領域を備えるようにしてもよい。
Next, the counting process will be described with reference to a flowchart.
FIG. 37 is a flowchart showing the counting process in the second embodiment.
Although not shown in FIG. 29, the RWM 103 of the game media count control board 100 has the following memory areas.
The counting flag (_FL_CAL_EXE) is a storage area that stores data indicating whether or not counting is in progress.
The count value storage area (_CT_CAL_VAL) is a storage area for storing the count value (number of counted game media) to be transmitted at the time of count notification.
The count accumulation value memory area (_CT_CAL_ALL) is a memory area that stores the count accumulation value (count accumulation number of gaming media).
The counting serial number storage area (_NB_CAL_NUM) is a storage area that stores the counting serial number.
In the case of a gaming machine that does not have the gaming media count control board 100, the RWM 53 of the main control board 50 may be provided with each of the above memory areas.

まず、ステップS701では、計数通知タイミングであるか否かが判断される。ここで、「計数通知タイミング」とは、遊技機情報通知を送信した後から「100」ms経過後であるタイミングを指す。なお、「100」ms経過後とは、「90」ms~「100」msの範囲内であればよい。
計数通知タイミングであると判断されたときはステップS702に進み、計数通知タイミングでないと判断されたときは本フローチャートによる処理を終了する。
First, in step S701, it is determined whether or not it is the count notification timing. Here, the "count notification timing" refers to a timing when "100" ms has elapsed since the gaming machine information notification was transmitted. Note that "100" ms after the elapse of time may be within the range of "90" ms to "100" ms.
If it is determined that it is the counting notification timing, the process proceeds to step S702, and if it is determined that it is not the counting notification timing, the process according to this flowchart ends.

計数通知タイミングであると判断され、ステップS702に進むと、遊技媒体数制御基板100は、計数中フラグをクリア(「0」に)する。次にステップS703に進み、計数を実行するか否かを判断する。ここでは、計数スイッチ47が操作されたか否かを判断する。
なお、計数スイッチ47が操作された場合には、遊技媒体数制御基板100の入力ポート101に計数スイッチ信号がオンとなって入力される。そして、入力ポート101に計数スイッチ信号がオンとなって入力された場合には、計数スイッチ信号がオンとなって入力された(計数スイッチ47が操作された)ことを示す情報(操作された場合には「1」、操作されていない場合には「0」)を遊技媒体数制御基板100のRWM103内の所定記憶領域に記憶する。なお、入力ポート101に入力された信号をRWM103に記憶するのは、1msごとのタイマ割込み処理で実行している。
ステップS703において計数スイッチ47が操作されたと判断したときはステップS704に進み、計数スイッチ47が操作されていないと判断したときはステップS712に進む。
When it is determined that it is the timing for count notification and the process proceeds to step S702, the game media count control board 100 clears the counting flag (sets it to "0"). Next, the process proceeds to step S703, where it is determined whether or not to execute counting. Here, it is determined whether or not the counting switch 47 has been operated.
When the counting switch 47 is operated, a counting switch signal is turned on and input to the input port 101 of the game media number control board 100. When the counting switch signal is turned on and input to the input port 101, information indicating that the counting switch signal has been turned on and input (the counting switch 47 has been operated) ("1" if operated, and "0" if not operated) is stored in a predetermined storage area in the RWM 103 of the game media number control board 100. The signal input to the input port 101 is stored in the RWM 103 by a timer interrupt process every 1 ms.
If it is determined in step S703 that the counting switch 47 has been operated, the process proceeds to step S704, and if it is determined that the counting switch 47 has not been operated, the process proceeds to step S712.

ステップS704では、遊技媒体数制御基板100の遊技媒体数記憶手段103aに記憶された(総)遊技媒体数が「0」であるか否かを判断する。遊技媒体数が「0」でないと判断したときはステップS705に進み、「0」であると判断したときはステップS712に進む。
このように、最初に計数スイッチ47が操作されたか否かを判断し、計数スイッチ47が操作されていない場合は計数処理を開始せず、計数スイッチ47が操作されている場合には、遊技媒体数記憶手段103aに記憶された(総)遊技媒体数が「0」であるか否かを判断する。そして、遊技媒体数記憶手段103aに記憶された(総)遊技媒体数が「0」である場合は計数処理を開始せず、(総)遊技媒体数が「0」でない場合は計数処理を開始するように構成されている。
これにより、計数スイッチ47が操作されている状況と遊技媒体数記憶手段103aに記憶された(総)遊技媒体数が「0」である状況とを比較したときに、計数スイッチ47が操作されている状況の方が相対的に少ないため、計数スイッチ47が操作されているか否かを先に判断することで、計数処理での処理負担を軽減することが可能となる。
In step S704, it is determined whether the (total) number of game media stored in the game media number storage means 103a of the game media number control board 100 is "0." If it is determined that the number of game media is not "0," the process proceeds to step S705, and if it is determined that the number is "0," the process proceeds to step S712.
In this way, it is first determined whether or not the counting switch 47 has been operated, and if the counting switch 47 has not been operated, the counting process is not started, and if the counting switch 47 has been operated, it is determined whether or not the (total) number of game media stored in the game media number storage means 103a is "0." Then, if the (total) number of game media stored in the game media number storage means 103a is "0," the counting process is not started, and if the (total) number of game media is not "0," the counting process is started.
As a result, when comparing a situation in which the counting switch 47 is operated with a situation in which the (total) number of game media stored in the game media number storage means 103a is "0", the number of situations in which the counting switch 47 is operated is relatively low, so by first determining whether or not the counting switch 47 is operated, it is possible to reduce the processing burden in the counting process.

ステップS705では、計数値(計数遊技媒体数)として「50」をセットする。
次にステップS706に進み、遊技媒体数記憶手段103aに記憶された遊技媒体数と計数値「50」とを比較する演算処理(減算する演算処理)を実行する。この演算処理の結果、遊技媒体数記憶手段103aに記憶された遊技媒体数が計数値以上であると判断したときはステップS708に進み、遊技媒体数記憶手段103aに記憶された遊技媒体数が計数値未満であると判断したときはステップS707に進む。
ステップS707では、遊技媒体数記憶手段103aに記憶された遊技媒体数を取得する。
次のステップS708では、計数値を保存する。この処理は、ステップS706で「Yes」と判断された(遊技媒体数が計数値以上であると判断された)ときは、ステップS705でセットした計数値「50」を計数値記憶領域に保存する。一方、ステップS706で「No」と判断されたとき(遊技媒体数が計数値未満であるとき)は、ステップS707で取得した、遊技媒体数記憶手段103aに記憶された遊技媒体数を計数値として計数値記憶領域に保存する。
In step S705, the count value (number of counted game media) is set to "50".
Next, the process proceeds to step S706, where an arithmetic process (subtraction process) is executed to compare the number of game media stored in the game media number storage means 103a with the count value "50." If it is determined that the number of game media stored in the game media number storage means 103a is equal to or greater than the count value as a result of this arithmetic process, the process proceeds to step S708, and if it is determined that the number of game media stored in the game media number storage means 103a is less than the count value, the process proceeds to step S707.
In step S707, the number of game media stored in the game medium number storage means 103a is obtained.
In the next step S708, the count value is stored. In this process, when the answer is "Yes" in step S706 (when the number of game media is determined to be equal to or greater than the count value), the count value "50" set in step S705 is stored in the count value storage area. On the other hand, when the answer is "No" in step S706 (when the number of game media is less than the count value), the number of game media stored in the game media number storage means 103a obtained in step S707 is stored as a count value in the count value storage area.

次のステップS709では、遊技媒体数記憶手段103aに記憶された(総)遊技媒体数を更新する。この処理は、遊技媒体数記憶手段103aに記憶された遊技媒体数から、計数値記憶領域に保存された計数値を減算する処理である。したがって、遊技媒体数記憶手段103aに記憶された遊技媒体数が「50」以上であると判断され、計数値記憶領域に「50」が記憶されているときは、遊技媒体数記憶手段103aに記憶された遊技媒体数から「50」を減算し、遊技媒体数を更新する。一方、遊技媒体数記憶手段103aに記憶された遊技媒体数が「50」未満であり、計数値記憶領域に、遊技媒体数記憶手段103aに記憶された遊技媒体数が記憶されているときは、遊技媒体数記憶手段103aに記憶された遊技媒体数は「0」に更新される。
次にステップS710に進み、計数累積値記憶領域に、計数値記憶領域に記憶されている計数値を加算して、計数累積値記憶領域に記憶された値を更新する。
次にステップS711に進み、計数を行うことが決まっているので、計数中フラグをセット(「FFh」を記憶)する。
In the next step S709, the (total) number of game media stored in the game media number storage means 103a is updated. This process is a process of subtracting the count value stored in the count value storage area from the number of game media stored in the game media number storage means 103a. Therefore, when it is determined that the number of game media stored in the game media number storage means 103a is "50" or more and "50" is stored in the count value storage area, "50" is subtracted from the number of game media stored in the game media number storage means 103a to update the number of game media. On the other hand, when the number of game media stored in the game media number storage means 103a is less than "50" and the number of game media stored in the game media number storage means 103a is stored in the count value storage area, the number of game media stored in the game media number storage means 103a is updated to "0".
Next, the process proceeds to step S710, where the count value stored in the count value storage area is added to the count cumulative value storage area to update the value stored in the count cumulative value storage area.
Next, the process proceeds to step S711, where, since it has been decided that counting will be performed, the counting flag is set ("FFh" is stored).

そして、ステップS712に進んで計数通知を出力する。具体的には、電文長として「0x07h」を出力し、コマンドとして「0x02h」を出力し、計数通番として、計数通番記憶領域に記憶されている計数通番を出力し、計数値として、計数値記憶領域に記憶されている計数値を出力し、計数累積値として、計数累積値記憶領域に記憶されている計数累積値を出力し、出力した各種データのチェックサム値(1バイト)を出力する。
その後、ステップS713に進み、計数値記憶領域に記憶されている計数値をクリアする。なお、計数累積値記憶領域に記憶されている値は、計数通知を出力する(した)タイミングではクリアしない。
Then, the process proceeds to step S712 to output the count notification. Specifically, "0x07h" is output as the message length, "0x02h" is output as the command, the count serial number stored in the count serial number storage area is output as the count serial number, the count value stored in the count value storage area is output as the count value, the count cumulative value stored in the count cumulative value storage area is output as the count cumulative value, and the checksum value (1 byte) of the various output data is output.
Then, the process proceeds to step S713, where the count value stored in the count value storage area is cleared. Note that the value stored in the count cumulative value storage area is not cleared when the count notification is output (is output).

次にステップS714に進み、計数通番を更新する処理(「+1」にする処理)を実行する。なお、計数通番が「255(D)」であるときに「+1」をした結果は「0」となるため、「0」となった場合には、再度、計数通番を更新する処理(「+1」する処理)を実行する。換言すると、計数通番が「255」であるときは、計数通番を更新する処理を2回実行することにより、計数通番を「1」に更新する。また、計数通番が「255」未満の値(たとえば「10」)であるときには、計数通番を更新する処理(「+1」する処理)を実行した結果が「0」とならないため、計数通番を更新する処理は1回だけ実行する。上記例では、計数通番は「11」に更新される。 Next, proceed to step S714 and execute the process of updating the counting serial number (process of changing to "+1"). Note that when the counting serial number is "255(D)", the result of adding "+1" is "0", so if it becomes "0", the process of updating the counting serial number (process of adding "+1") is executed again. In other words, when the counting serial number is "255", the process of updating the counting serial number is executed twice to update the counting serial number to "1". Also, when the counting serial number is a value less than "255" (for example, "10"), the result of executing the process of updating the counting serial number (process of adding "+1") does not become "0", so the process of updating the counting serial number is executed only once. In the above example, the counting serial number is updated to "11".

また、計数中フラグに基づいた情報を主制御基板50に送信する。これにより、主制御基板50は、計数中であることを判断することができる。また、たとえば主制御基板50から副制御基板80に対して計数中であることを示す情報を送信することにより、副制御基板80により、計数中に対応した演出を行うことができる。 In addition, information based on the counting flag is sent to the main control board 50. This allows the main control board 50 to determine that counting is in progress. In addition, for example, by sending information indicating that counting is in progress from the main control board 50 to the sub-control board 80, the sub-control board 80 can perform a performance that corresponds to the time when counting is in progress.

なお、本実施形態では、設定変更モード中や設定確認モード中においても、計数スイッチ47の操作に基づく計数が可能である。
しかし、遊技媒体をベット可能な状況下で計数スイッチ47が操作された場合には、計数スイッチ47の操作に基づいた演出を実行するが、設定変更モード中や設定確認モード中に計数スイッチ47が操作された場合には、計数スイッチ47の操作に基づく演出を実行しないようにしてもよい。このように構成にするのは、設定変更モード中や設定確認モード中に計数スイッチ47が操作されるような場合には、ホール店員が計数している可能性が高いため(遊技者ではない可能性が高いため)である。
In this embodiment, counting based on the operation of the counting switch 47 is possible even during the setting change mode or the setting confirmation mode.
However, when the counting switch 47 is operated under a situation where gaming media can be bet, an effect based on the operation of the counting switch 47 is executed, but when the counting switch 47 is operated during the setting change mode or the setting confirmation mode, it is possible not to execute the effect based on the operation of the counting switch 47. The reason for this configuration is that when the counting switch 47 is operated during the setting change mode or the setting confirmation mode, it is highly likely that a hall staff member is counting (and not a player).

一方、設定変更モード中や設定確認モード中に計数スイッチ47が操作された場合には、設定変更モード中や設定確認モード中の専用の画面を画像表示装置23に表示したり、音声を出力してもよい。このようにすれば、ホール店員に、必要な情報を提供することができる。さらに、設定変更モード中や設定確認モード中の専用の画面を表示しつつ、計数中であることを示す報知(たとえば「計数中です」と画面に表示すること)を行ってもよい。この場合の報知は、上述した(遊技者に対する)計数中の演出とは異なるように構成されている。このような報知により、注意喚起を行うことができる。 On the other hand, if the counting switch 47 is operated during the setting change mode or the setting confirmation mode, a dedicated screen for the setting change mode or the setting confirmation mode may be displayed on the image display device 23, or a sound may be output. In this way, the necessary information can be provided to the hall staff. Furthermore, while displaying a dedicated screen for the setting change mode or the setting confirmation mode, a notification indicating that counting is in progress (for example, "Counting in progress" may be displayed on the screen) may be given. The notification in this case is configured to be different from the presentation (for the player) during counting described above. Such a notification can be used to draw attention.

また、本実施形態では、エラー中(予め定められた一部の(所定の)エラーでもよく、すべてのエラーでもよい。)であっても、計数スイッチ47の操作に基づく計数が可能である。
しかし、遊技媒体をベット可能な状況下で計数スイッチ47が操作された場合には、計数スイッチ47の操作に基づいた演出を実行するが、エラー中に計数スイッチ47が操作された場合には、計数スイッチ47の操作に基づく演出を実行しないようにしてもよい。このように構成にするのは、エラー中に計数スイッチ47が操作されるような場合には、不正行為が行われているおそれがあるためである。
なお、エラーには、復帰不可能エラー(たとえば、RWM異常エラーや乱数更新エラーなどの設定値の再設定(電源のオン/オフを含む)を必要とするエラー。)と復帰可能エラー(たとえば、フロントドアのドアオープンエラーなど)とが挙げられるが、エラーの種類に応じて計数処理が不可能な状況と可能な状況とを設けてもよい。たとえば、復帰不可能エラーの発生中は計数処理を不可能とし、復帰可能エラーの発生中は計数処理を可能とすることが挙げられる。
Furthermore, in this embodiment, even when an error occurs (which may be a predetermined (predetermined) portion of the errors, or may be all errors), counting based on the operation of the counting switch 47 is possible.
However, when the counting switch 47 is operated under a situation where gaming media can be bet, an effect based on the operation of the counting switch 47 is executed, but when the counting switch 47 is operated during an error, it is possible not to execute an effect based on the operation of the counting switch 47. The reason for this configuration is that when the counting switch 47 is operated during an error, there is a risk that fraudulent activity is being performed.
Errors include unrecoverable errors (for example, errors that require resetting of settings (including turning the power on and off), such as RWM abnormal errors and random number update errors) and recoverable errors (for example, a front door open error), but it is also possible to provide situations in which counting processing is impossible and situations in which it is possible, depending on the type of error. For example, counting processing can be made impossible when an unrecoverable error occurs, and made possible when a recoverable error occurs.

一方、エラー中に計数スイッチ47が操作された場合には、エラー中の専用の画面を画像表示装置23で表示することや、音声を出力してもよい。このようにすれば、ホール店員に、必要な情報を提供することができる。さらに、エラー中の専用の画面を表示しつつ計数中であることを示す報知(たとえば「計数中です」と画面に表示すること)を行ってもよい。この場合の報知は、上述した(遊技者に対する)計数中の演出とは異なるように構成されている。このような報知により、注意喚起を行うことができる。なお、このときに、精算スイッチ46によるベット数の返却はできないように構成されていてもよい。 On the other hand, if the counting switch 47 is operated during an error, a dedicated screen for when there is an error may be displayed on the image display device 23, or a sound may be output. In this way, the necessary information can be provided to the hall staff. Furthermore, while displaying the dedicated screen for when there is an error, a notification may be given indicating that counting is in progress (for example, "Counting in progress" may be displayed on the screen). The notification in this case is configured to be different from the presentation during counting (for the player) described above. Such a notification can be used to draw attention. Note that at this time, it may be configured such that the number of bets cannot be returned by the settlement switch 46.

また、本実施形態では、遊技中(たとえばリール31が回転している状況下)においても計数スイッチ47の操作に基づく計数が可能である。
しかし、遊技媒体をベット可能な状況下で計数スイッチ47が操作された場合には、計数スイッチ47の操作に基づいた演出を実行するが、遊技中に計数スイッチ47が操作された場合には、計数スイッチ47の操作に基づく演出を実行しないようにしてもよい。このように構成にするのは、遊技中に計数スイッチ47が操作されるような場合には、不正行為が行われているおそれがあるためである。
In addition, in this embodiment, counting based on the operation of the counting switch 47 is possible even during a game (for example, while the reel 31 is spinning).
However, when the counting switch 47 is operated under a situation where gaming media can be bet, an effect based on the operation of the counting switch 47 is executed, but when the counting switch 47 is operated during a game, the effect based on the operation of the counting switch 47 may not be executed. The reason for this configuration is that when the counting switch 47 is operated during a game, there is a risk that fraudulent activity is being performed.

図38は、遊技機10と貸出ユニット200との貸出通知シーケンスを説明するタイムチャートである。
図38の例では、貸出スイッチ202のオンを検知する前(貸出スイッチ202の操作を受け付ける前)の状況として、遊技媒体数制御基板100の遊技媒体数記憶手段103aには遊技媒体数「10」が記憶され、貸出ユニット200の貸出可能遊技媒体数記憶手段206には貸出可能遊技媒体数「120」が記憶されている状況下であるものとする。なお、遊技媒体数制御基板100の遊技媒体数記憶手段103aに記憶された遊技媒体数が「50」未満であるため、計数スイッチ47が操作されると「10」が計数される状況でもある。
FIG. 38 is a time chart illustrating the lending notification sequence between the gaming machine 10 and the lending unit 200.
38, the situation before the on of the lending switch 202 is detected (before the operation of the lending switch 202 is accepted) is that the number of game media "10" is stored in the game media number storage means 103a of the game media number control board 100, and the number of lendable game media "120" is stored in the lendable game media number storage means 206 of the lending unit 200. Note that since the number of game media stored in the game media number storage means 103a of the game media number control board 100 is less than "50", when the counting switch 47 is operated, "10" is counted.

遊技機10と貸出ユニット200の起動が完了しており、遊技機10と貸出ユニット200との通信が可能な状況下において、貸出ユニット200の貸出スイッチ202のオンを検知した後(操作を受け付けた後)に、遊技機10から、遊技機情報通知として通番「n」、遊技媒体数「10」の遊技機情報通知が送信された例を示している。
次に、計数通知として計数通番「m」、計数遊技媒体数「0」を送信する。この計数通知を受信した後、貸出通知として貸出通番「k」、貸出遊技媒体数「50」を送信する。貸出ユニット200は、貸出遊技媒体数「50」を送信した後は、貸出可能遊技媒体数を「120-50=70」に更新する。なお、貸出ユニット200が貸出可能遊技媒体数を更新するタイミングは、貸出受領結果応答を受信したタイミングであってもよい。
This shows an example in which the gaming machine 10 and the rental unit 200 have completed startup and are able to communicate with each other, and after detecting that the rental switch 202 of the rental unit 200 has been turned on (after accepting an operation), the gaming machine 10 sends a gaming machine information notification with serial number "n" and number of gaming media "10".
Next, the counting serial number "m" and the number of counted gaming media "0" are transmitted as a counting notification. After receiving this counting notification, the lending serial number "k" and the number of lending gaming media "50" are transmitted as a lending notification. After transmitting the number of lending gaming media "50", the lending unit 200 updates the number of lendable gaming media to "120-50=70". Note that the timing at which the lending unit 200 updates the number of lendable gaming media may be the timing at which it receives a lending receipt result response.

遊技機10は、貸出通知を受信すると、貸出通知が示す情報と前回の貸出通知が示す情報との整合性をチェックし、チェック結果が正常の場合には(この例では正常であるものとする)、貸出受領結果応答として貸出通番「k」、貸出点受領結果「正常」を貸出ユニット200に送信する。
次に、遊技機10は、貸出通知を受信してから貸出受領結果応答を送信するまでの間に遊技媒体数を「10+50=60」に更新する。
遊技機10が次に貸出ユニット200に対して遊技機情報通知を送信するタイミングでは、遊技機情報通知として通番「n+1」、遊技媒体数「60」を貸出ユニット200に送信する。さらに、計数通知として、計数通番「m+1」、計数遊技媒体数「0」、計数累積遊技媒体数「0」を送信する。
When the gaming machine 10 receives a loan notification, it checks the consistency between the information indicated in the loan notification and the information indicated in the previous loan notification, and if the check result is normal (assuming that it is normal in this example), it sends the loan serial number "k" and the loan point receipt result "normal" to the loan unit 200 as a loan receipt result response.
Next, the gaming machine 10 updates the number of gaming media to "10+50=60" during the period from when it receives the rental notification to when it transmits the rental receipt result response.
When the gaming machine 10 next transmits a gaming machine information notification to the rental unit 200, it transmits the serial number "n+1" and the number of gaming media "60" as the gaming machine information notification to the rental unit 200. Furthermore, it transmits the counting serial number "m+1", the number of counted gaming media "0", and the cumulative number of counted gaming media "0" as the counting notification.

この時点において、貸出ユニット200の貸出スイッチ202のオンが継続して検知されているときは、貸出ユニット200から遊技機10に対する貸出通知として貸出通番「k+1」、貸出遊技媒体数「50」を遊技機10に送信する(図中、「*1」)。そして、貸出可能遊技媒体数を「70-50=20」に更新する。さらに、遊技機10から貸出ユニット200に対する貸出受領結果応答として貸出通番「k+1」、貸出点受領結果「正常」(チェック結果は正常であったものとする)を送信する。また、遊技機10は、当該貸出通知を受信してから貸出受領結果応答を送信するまでの間に遊技媒体数を「60+50=110」に更新する。
一方、貸出ユニット200から遊技機10に対し、貸出通番「k+1」の貸出通知を送信するタイミングで、貸出スイッチ202のオフが検知されているときは、貸出遊技媒体数「0」の貸出通知を遊技機10に送信する(図中、「*2」)。この場合は、貸出可能遊技媒体数は「70」のままである。また、遊技機10の遊技媒体数も「60」のままである。
At this point, if the on state of the rental switch 202 of the rental unit 200 is continuously detected, the rental unit 200 transmits the rental serial number "k+1" and the number of rental gaming media "50" to the gaming machine 10 as a rental notification to the gaming machine 10 (in the figure, "*1"). The number of rental available gaming media is then updated to "70-50=20". Furthermore, the gaming machine 10 transmits the rental serial number "k+1" and the rental point receipt result "normal" (assuming the check result was normal) as a rental receipt result response to the rental unit 200. The gaming machine 10 also updates the number of gaming media to "60+50=110" between receiving the rental notification and transmitting the rental receipt result response.
On the other hand, if the lending switch 202 is detected as off at the timing when the lending unit 200 transmits a lending notification of lending serial number "k+1" to the gaming machine 10, a lending notification of the number of lendable gaming media "0" is transmitted to the gaming machine 10 (in the figure, "*2"). In this case, the number of lendable gaming media remains "70". Also, the number of gaming media in the gaming machine 10 remains "60".

なお、貸出ユニット200は、貸出スイッチ202がオフからオンになったことを検知する方法として、貸出通知を送信するごと(すなわち、「300」msごと)に貸出スイッチ202のレベルデータのオン/オフを判断してもよい。これに対し、本実施形態では、貸出通知を送信するごとに、貸出スイッチ202の立ち上がりデータのオン/オフを判断する。したがって、この場合は、貸出スイッチ202が継続してオンにされているときであっても最初に操作されたタイミングでのみ貸出操作を受け付けることになるため、貸出スイッチ202が継続してオンにされていても、2回目以降の貸出通知を送信するタイミングでは貸出遊技媒体数を「0」として送信する。よって、図38の例では、貸出通番「k+1」の貸出通知が送信されるタイミングで貸出スイッチ202のオンが継続して検知されている場合であっても、貸出遊技媒体数「0」の貸出通知を遊技機10に送信する。 The lending unit 200 may determine whether the level data of the lending switch 202 is on/off each time a lending notification is sent (i.e., every "300" ms) as a method of detecting that the lending switch 202 has changed from off to on. In contrast, in this embodiment, the on/off rising data of the lending switch 202 is determined each time a lending notification is sent. Therefore, in this case, even if the lending switch 202 is continuously on, the lending operation is accepted only at the timing when it is first operated, so even if the lending switch 202 is continuously on, the number of lending media is transmitted as "0" at the timing of transmitting the second or subsequent lending notifications. Therefore, in the example of FIG. 38, even if the on of the lending switch 202 is continuously detected at the timing when the lending notification of the lending serial number "k+1" is transmitted, a lending notification with the number of lending media "0" is transmitted to the gaming machine 10.

また、貸出スイッチ202のオンを検知したときの遊技機10から送信される計数通知として計数遊技媒体数が「1」以上であるとき(すなわち、貸出スイッチ202と計数スイッチ47との双方が操作されたとき)は、貸出ユニット200は、当該計数通知の直後に送信する貸出通知の貸出遊技媒体数を「0」とする。このときに受け付けた貸出スイッチ202については無効としてもよく、あるいは、貸出ユニット200が貸出スイッチ202の操作受付フラグを記憶しておき、計数通知の計数遊技媒体数が「0」となった後に送信する貸出通知において貸出遊技媒体数を「50」として送信してもよい。
さらにまた、貸出ユニット200が貸出スイッチ202の操作受付けフラグを記憶する場合に、貸出スイッチ202の操作受付けに関するフラグが記憶されているときに再度貸出スイッチ202が操作されたときは2回操作されたフラグに書き換えてもよいし、2回目以降の操作を無効にしてもよい。
Furthermore, when the number of counted game media is "1" or more in the counting notification sent from the gaming machine 10 when the on of the lending switch 202 is detected (i.e., when both the lending switch 202 and the counting switch 47 are operated), the lending unit 200 sets the number of lending game media in the lending notification sent immediately after the counting notification to "0." The lending switch 202 accepted at this time may be invalidated, or the lending unit 200 may store an operation acceptance flag for the lending switch 202 and send the number of lending game media as "50" in the lending notification sent after the number of counted game media in the counting notification becomes "0."
Furthermore, when the lending unit 200 stores an operation acceptance flag for the lending switch 202, if the lending switch 202 is operated again while a flag regarding the operation acceptance of the lending switch 202 is stored, the flag may be rewritten to a flag indicating that the lending switch 202 has been operated twice, or the second and subsequent operations may be invalidated.

また、貸出ユニット200が貸出通知を遊技機10に送信し、遊技機10が貸出通知を受信したときは、遊技媒体数制御基板100のRWM103に設けられた貸出通知情報記憶領域に貸出通知の情報をすべて記憶する。これにより、遊技機10が貸出受領結果応答を送信する際に貸出点受領結果の情報を「正常」とするか「異常」とするかを判断することができる。
具体的には、貸出通知情報記憶領域に貸出通番として「k」を記憶しており、貸出ユニット200から送信された貸出通知の貸出通番が「k+1」である場合に、記憶している「k」をインクリメントして「k+1」を生成し、受信した貸出通番「k+1」と比較する。この場合、生成した貸出通番と受信した貸出通番とが一致しているので、受信した貸出通番「k+1」を貸出通知情報記憶領域に記憶する。
In addition, when the lending unit 200 transmits a lending notification to the gaming machine 10 and the gaming machine 10 receives the lending notification, all information of the lending notification is stored in a lending notification information storage area provided in the RWM 103 of the gaming media count control board 100. This allows the gaming machine 10 to determine whether the information of the lending point receipt result is "normal" or "abnormal" when transmitting a lending receipt result response.
Specifically, "k" is stored as the lending serial number in the lending notification information storage area, and when the lending serial number of the lending notification sent from the lending unit 200 is "k+1", the stored "k" is incremented to generate "k+1" and compared with the received lending serial number "k+1". In this case, since the generated lending serial number and the received lending serial number match, the received lending serial number "k+1" is stored in the lending notification information storage area.

また、貸出通知情報記憶領域に貸出通番として「k」を記憶しており、貸出ユニット200から送信された貸出通知の貸出通番が「k+2」である場合、記憶している「k」をインクリメントして「k+1」を生成し、受信した貸出通番「k+2」と比較する。この場合、生成した貸出通番と受信した貸出通番とが一致しないので、受信した貸出通番「k+2」を記憶しない(貸出通知情報記憶領域の貸出通番は「k」のままである。)。
また、貸出通番の上限は「255」であるため、貸出通番が「255」である状況でインクリメントすると、貸出通番は「0」となる。ただし、貸出通番「0」は貸出ユニット200の起動直後にのみ遊技機10に送信され得る貸出通番であるため、再度インクリメントして貸出通番を「1」とする。換言すれば、貸出通番が「255」の状況下で貸出通番を更新する際は、インクリメントを2回行うことにより、次の貸出通番を「1」にする。
In addition, if "k" is stored as the loan serial number in the loan notification information storage area, and the loan serial number in the loan notification sent from the loan unit 200 is "k+2", the stored "k" is incremented to generate "k+1" and compared with the received loan serial number "k+2". In this case, since the generated loan serial number does not match the received loan serial number, the received loan serial number "k+2" is not stored (the loan serial number in the loan notification information storage area remains "k").
Furthermore, since the upper limit of the rental serial number is "255", if the rental serial number is incremented when it is "255", the rental serial number becomes "0". However, since the rental serial number "0" can only be transmitted to the gaming machine 10 immediately after the rental unit 200 is started, the rental serial number is incremented again to become "1". In other words, when updating the rental serial number when it is "255", the next rental serial number is made "1" by incrementing it twice.

なお、上述した例では、遊技機10に記憶された貸出通番と受信した貸出通知の貸出通番とを比較する手法として、遊技機10に記憶された貸出通番をインクリメントしてから、貸出ユニット200から受信した貸出通番と一致するか否かを判断した。しかし、これに限らず、貸出ユニット200から受信した貸出通番をデクリメントしてから遊技機10が記憶している貸出通番と一致するか否かを比較してもよい。
また、貸出ユニット200から受信した貸出通番から遊技機10が記憶している貸出通番を減算し、結果が「1」となるか否かで判断してもよい。
In the above example, the method of comparing the rental serial number stored in the gaming machine 10 with the rental serial number of the received rental notification is to increment the rental serial number stored in the gaming machine 10 and then determine whether it matches the rental serial number received from the rental unit 200. However, this is not limited to the above, and it is also possible to decrement the rental serial number received from the rental unit 200 and then compare whether it matches the rental serial number stored in the gaming machine 10.
Alternatively, the rental serial number stored in the gaming machine 10 may be subtracted from the rental serial number received from the rental unit 200, and the determination may be made based on whether the result is "1".

続いて、遊技機情報通知を送信するためのタイマ(以下、「遊技機情報通知タイマ」と称する。)について説明する。
図39は、遊技機情報通知タイマ及び遊技機情報通知要求フラグを示す図である。
遊技機情報通知タイマは、遊技機情報通知タイマA(_TM_INF_CTL_A )、遊技機情報通知タイマB(_TM_INF_CTL_B )、及び遊技機情報通知タイマC(_TM_INF_CTL_C )を備える。
遊技機情報通知タイマAは、ホールコン・不正監視情報を「300」msごとに送信するタイミングを判断するためのタイマである。
遊技機情報通知タイマBは、遊技機設置情報を「60」秒ごとに送信するタイミングを判断するためのタイマである。
遊技機情報通知タイマCは、遊技機性能情報を「180」秒ごとに送信するタイミングを判断するためのタイマである。
Next, a timer for transmitting a gaming machine information notification (hereinafter, referred to as a "gaming machine information notification timer") will be described.
FIG. 39 is a diagram showing a gaming machine information notification timer and a gaming machine information notification request flag.
The gaming machine information notification timer includes a gaming machine information notification timer A (_TM_INF_CTL_A), a gaming machine information notification timer B (_TM_INF_CTL_B), and a gaming machine information notification timer C (_TM_INF_CTL_C).
Gaming machine information notification timer A is a timer for determining the timing for transmitting hall control and fraud monitoring information every 300 ms.
The gaming machine information notification timer B is a timer for determining the timing for transmitting the gaming machine installation information every "60" seconds.
The gaming machine information notification timer C is a timer for determining the timing for transmitting the gaming machine performance information every "180" seconds.

遊技媒体数制御基板100のRWM103に、遊技機情報通知タイマA~Cの各記憶領域が設けられ、各記憶領域にはタイマ値が記憶される。
遊技機情報通知タイマAの記憶領域は「2」バイトからなり、遊技機情報通知タイマB及びCは「1」バイトからなる。
遊技機情報通知タイマA~Cの各記憶領域は、電源投入時に初期化(クリア、「0」が記憶)される。
なお、上述したように、役比モニタ113の点滅切替え周期は「300」msであり、点滅切替え時間を管理するタイマ領域として、RWM103に「点滅切替え時間(_TM_CHG_FLS )」を備え、さらに、点灯であるか消灯であるかを判断するためのフラグとして、RWM103に「点滅切替えフラグ(_FL_CHG_FLS )」を備えている。
一方、遊技機情報通知タイマAは、点滅切替え周期と同じ「300」msを計測するものの、点滅切替え時間とは別個のタイマ領域となっている。
The RWM 103 of the game media count control board 100 is provided with memory areas for game machine information notification timers A to C, and each memory area stores a timer value.
The memory area of the gaming machine information notification timer A is 2 bytes, and the memory area of the gaming machine information notification timers B and C is 1 byte.
Each storage area of the gaming machine information notification timers A to C is initialized (cleared and stores "0") when the power is turned on.
As described above, the blinking switching period of the role ratio monitor 113 is "300" ms, and the RWM 103 is provided with a "blinking switching time (_TM_CHG_FLS)" as a timer area for managing the blinking switching time, and further, the RWM 103 is provided with a "blinking switching flag (_FL_CHG_FLS)" as a flag for determining whether the light is on or off.
On the other hand, although the gaming machine information notification timer A measures "300" ms, which is the same as the blinking switching period, it has a timer area separate from the blinking switching time.

以下の説明では、遊技機情報通知タイマAの記憶領域、遊技機情報通知タイマBの記憶領域、遊技機情報通知タイマCの記憶領域を、それぞれ単に遊技機情報通知タイマA、遊技機情報通知タイマB、遊技機情報通知タイマCと略称する。
さらに、遊技機情報通知タイマAの記憶領域に記憶された値、遊技機情報通知タイマBの記憶領域に記憶された値、遊技機情報通知タイマCの記憶領域に記憶された値を、それぞれ単に遊技機情報通知タイマAの値、遊技機情報通知タイマBの値、遊技機情報通知タイマCの値と略称する。
In the following explanation, the memory area of gaming machine information notification timer A, the memory area of gaming machine information notification timer B, and the memory area of gaming machine information notification timer C will be abbreviated as gaming machine information notification timer A, gaming machine information notification timer B, and gaming machine information notification timer C, respectively.
Furthermore, the value stored in the memory area of gaming machine information notification timer A, the value stored in the memory area of gaming machine information notification timer B, and the value stored in the memory area of gaming machine information notification timer C will be abbreviated as the value of gaming machine information notification timer A, the value of gaming machine information notification timer B, and the value of gaming machine information notification timer C, respectively.

第2実施形態では、遊技媒体数制御基板100のCPU105は、「1」msごとにタイマ割込み処理を実行する。そして、このタイマ割込みが行われるごと(「1」msごと)に遊技機情報通知タイマAの値が更新される。
遊技機情報通知タイマAは、デクリメントタイマであり、上述のように電源投入時にはその値として「0」が記憶される。遊技機情報通知タイマAの値は、「0」~「300(D)」の範囲を循環する。
したがって、遊技機情報通知タイマAの値は、電源投入時は「0」にされ、最初のタイマ割込みが実行されると、「300」に更新され、さらに次のタイマ割込みが実行されると「299」に更新される。
さらに、電源投入時のように更新前の値が「0」である状況下の割込み処理において「1」減算されると「300」に更新され、次の割込み処理で「1」減算されると「299」に更新される。
これに対し、更新前の値が「1」である割込み処理において、「1」減算されると減算結果は「0」になるが、この場合には当該割込み処理ですぐに「300」が記憶される。
したがって、
「0」→「300」→「299」→・・・→「2」→「1」→(「0」→)「300」→「299」→・・・
のように更新される。
In the second embodiment, the CPU 105 of the game media count control board 100 executes a timer interrupt process every "1" ms. Then, every time this timer interrupt is executed (every "1" ms), the value of the game machine information notification timer A is updated.
The gaming machine information notification timer A is a decrement timer, and as described above, when the power is turned on, the value stored therein is "0." The value of the gaming machine information notification timer A cycles within the range of "0" to "300 (D)."
Therefore, the value of the gaming machine information notification timer A is set to "0" when the power is turned on, and is updated to "300" when the first timer interrupt is executed, and is further updated to "299" when the next timer interrupt is executed.
Furthermore, when the value before the update is "0", such as when the power is turned on, if "1" is subtracted during interrupt processing, the value is updated to "300", and if "1" is subtracted during the next interrupt processing, the value is updated to "299".
In contrast, in an interrupt process in which the pre-update value is "1", when "1" is subtracted the result becomes "0", but in this case "300" is immediately stored in the interrupt process.
therefore,
"0" → "300" → "299" → ... → "2" → "1" → ("0" →) "300" → "299" → ...
It will be updated as follows.

遊技機情報通知タイマBは、インクリメントタイマであり、上述のように電源投入時にはその値として「0」が記憶される。遊技機情報通知タイマBの値は、「0」~「199(D)」の範囲を循環する。
したがって、
「0」→「1」→「2」→・・・→「198」→「199」→「0」→「1」→・・・
のように更新される。
遊技機情報通知タイマBの値は、遊技機情報通知タイマAの値が「300」となったときに「+1」される。ただし、電源投入時に遊技機情報通知タイマAの値が初期化されることにより「0」が記憶され、最初のタイマ割込み処理で遊技機情報通知タイマAの値が「300」になったときは、遊技機情報通知タイマBの値は更新されずに「0」のままである。この制御については後述する。
The gaming machine information notification timer B is an increment timer, and as described above, when the power is turned on, the value "0" is stored. The value of the gaming machine information notification timer B cycles within the range of "0" to "199 (D)".
therefore,
"0" → "1" → "2" → ... → "198" → "199" → "0" → "1" → ...
It will be updated as follows.
The value of gaming machine information notification timer B is incremented by "1" when the value of gaming machine information notification timer A becomes "300". However, when the value of gaming machine information notification timer A is initialized at power-on and stores "0", when the value of gaming machine information notification timer A becomes "300" in the first timer interrupt process, the value of gaming machine information notification timer B is not updated and remains at "0". This control will be described later.

遊技機情報通知タイマCは、インクリメントタイマであり、上述のように電源投入時にはその値として「0」が記憶される。遊技機情報通知タイマCの値は、「0」~「2(D)」の範囲を循環する。
したがって、
「0」→「1」→「2」→「0」→「1」→・・・
のように更新される。
遊技機情報通知タイマCの値は、遊技機情報通知タイマBの値が「0」になったときに「+1」される。ただし、電源投入時に遊技機情報通知タイマBの値が初期化されることにより「0」が記憶されたときは、遊技機情報通知タイマCの値についても初期化された「0」のままであり、この時点では「1」に更新されることはない。
The gaming machine information notification timer C is an increment timer, and as described above, when the power is turned on, the value "0" is stored. The value of the gaming machine information notification timer C cycles within the range of "0" to "2(D)."
therefore,
"0" → "1" → "2" → "0" → "1" →...
It will be updated as follows.
The value of gaming machine information notification timer C is incremented by "1" when the value of gaming machine information notification timer B becomes "0." However, when the value of gaming machine information notification timer B is initialized to "0" when the power is turned on, the value of gaming machine information notification timer C also remains at the initialized "0" and is not updated to "1" at this point.

遊技機情報通知要求フラグ(_FL_INF_CTL )とは、遊技機性能情報を通知するタイミング(180秒ごとのタイミング)であるか否か、及び遊技機設置情報を通知するタイミング(60秒ごとのタイミング)であるか否かを示すフラグであり、遊技媒体数制御基板100のRWM103において1バイトの記憶領域として設けられている。
遊技機情報通知要求フラグは、電源が投入されたときの初期化処理によって、初期値(全ビット「0」)が記憶される。
遊技機情報通知要求フラグとして、遊技機性能情報通知要求フラグと、遊技機設置情報通知要求フラグとを備える。
The gaming machine information notification request flag (_FL_INF_CTL) is a flag indicating whether it is the timing to notify gaming machine performance information (every 180 seconds) or not, and whether it is the timing to notify gaming machine installation information (every 60 seconds) or not, and is provided as a 1-byte memory area in RWM 103 of the gaming media number control board 100.
The gaming machine information notification request flag is set to an initial value (all bits "0") by an initialization process performed when the power is turned on.
The gaming machine information notification request flag includes a gaming machine performance information notification request flag and a gaming machine installation information notification request flag.

遊技機性能情報通知要求フラグとは、遊技機情報通知のうち遊技機性能情報を送信する周期(タイミング)が到来したときに「0」から「1」となるフラグであり、遊技機情報通知要求フラグの「D0」ビットを使用する。「D0」ビットが「1」であるときは遊技機性能情報を送信する周期が到来していることを示し、「0」であるときは遊技機性能情報を送信する周期が到来していないことを示す。また、遊技機性能情報通知が送信されたときは、「1」から「0」に更新される。
また、遊技機設置情報通知要求フラグとは、遊技機情報通知のうち遊技機設置情報を送信する周期(タイミング)が到来したときに「0」から「1」となるフラグであり、遊技機情報通知要求フラグの「D1」ビットを使用する。「D0」ビットが「1」であるときは遊技機設置情報を送信する周期が到来していることを示し、「0」であるときは遊技機設置情報を送信する周期が到来していないことを示す。また、遊技機設置情報通知が送信されたときは、「1」から「0」に更新される。
なお、遊技機性能情報通知要求フラグを1バイトの記憶領域とし、遊技機設置情報通知要求フラグを他の1バイトの記憶領域とすることも可能である。ただし、本実施形態のように遊技機情報通知要求フラグを1バイトの記憶領域として設け、この1バイト記憶領域のビットに遊技機性能情報通知要求フラグと遊技機設置情報通知要求フラグとを割り当てれば、記憶容量を削減することができる。
The gaming machine performance information notification request flag is a flag that changes from "0" to "1" when the period (timing) for transmitting gaming machine performance information from the gaming machine information notification arrives, and uses the "D0" bit of the gaming machine information notification request flag. When the "D0" bit is "1", it indicates that the period for transmitting gaming machine performance information has arrived, and when it is "0", it indicates that the period for transmitting gaming machine performance information has not arrived. In addition, when a gaming machine performance information notification is transmitted, it is updated from "1" to "0".
The gaming machine installation information notification request flag is a flag that changes from "0" to "1" when the period (timing) for transmitting gaming machine installation information from the gaming machine information notification arrives, and uses the "D1" bit of the gaming machine information notification request flag. When the "D0" bit is "1", it indicates that the period for transmitting gaming machine installation information has arrived, and when it is "0", it indicates that the period for transmitting gaming machine installation information has not arrived. When the gaming machine installation information notification is transmitted, it is updated from "1" to "0".
It is also possible to use a 1-byte storage area for the gaming machine performance information notification request flag and another 1-byte storage area for the gaming machine installation information notification request flag. However, if the gaming machine information notification request flag is provided as a 1-byte storage area as in this embodiment and the gaming machine performance information notification request flag and the gaming machine installation information notification request flag are assigned to bits of this 1-byte storage area, the storage capacity can be reduced.

図40は、遊技機情報通知タイマA、B、及びCの各値の更新シーケンスを示すタイムチャートである。
図40中、遊技機情報通知タイマAの値に基づくホールコン・不正監視情報を含む遊技機情報通知を「通知A」と称し、遊技機情報通知タイマBの値に基づく遊技機設置情報を含む遊技機情報通知を「通知B」と称し、遊技機情報通知タイマCの値に基づく遊技機性能情報を含む遊技機情報通知を「通知C」と称する。
まず、遊技機10の電源が投入されると、遊技媒体数制御基板100のRWM103の初期化処理が実行され、これによって遊技機情報通知タイマA、B、及びCの各値がクリアされる(「0」が記憶される)。
FIG. 40 is a time chart showing the update sequence of the values of the gaming machine information notification timers A, B, and C.
In Figure 40, a gaming machine information notification including hall control and fraud monitoring information based on the value of gaming machine information notification timer A is referred to as "notification A", a gaming machine information notification including gaming machine installation information based on the value of gaming machine information notification timer B is referred to as "notification B", and a gaming machine information notification including gaming machine performance information based on the value of gaming machine information notification timer C is referred to as "notification C".
First, when the power of the gaming machine 10 is turned on, an initialization process of the RWM 103 of the gaming media count control board 100 is executed, thereby clearing the values of the gaming machine information notification timers A, B, and C ("0" is stored).

遊技媒体数制御基板100のCPU105は、フラグレジスタ(Fレジスタ)を備える。フラグレジスタには、キャリーフラグ(CY)及びゼロフラグ(Z)を備える。なお、フラグレジスタには、これらのフラグ以外のフラグも備えているが、本実施形態では説明を省略する。
キャリーフラグは、演算処理の結果、「0」未満となったとき、換言すれば桁下がりが生じたときに「1」になるフラグである。
また、ゼロフラグは、演算処理の結果、「0」となったときに「1」になるフラグである。
The CPU 105 of the game media count control board 100 includes a flag register (F register). The flag register includes a carry flag (CY) and a zero flag (Z). The flag register also includes flags other than these flags, but the description of these will be omitted in this embodiment.
The carry flag is a flag that becomes "1" when the result of an arithmetic operation is less than "0", in other words, when a borrow occurs.
The zero flag is a flag that becomes "1" when the result of the arithmetic processing becomes "0".

キャリーフラグ及びゼロフラグについて、具体例を挙げると、以下の通りである。
例1)遊技機情報通知タイマAの値が「10」であるときに「1」減算されると、遊技機情報通知タイマAの値は「9」に更新される。このとき、ゼロフラグ及びキャリーフラグは変化しない(「0」のままである)。
例2)遊技機情報通知タイマAの値が「1」であるときに「1」減算されると、遊技機情報通知タイマAの値は「0」に更新される。これにより、ゼロフラグは「1」となる。一方、キャリーフラグは変化しない(「0」のままである)。ここで、本実施形態の演算処理では、遊技機情報通知タイマAの値が「1」から「0」に更新され、ゼロフラグが「1」となったときは、その直後に(「1」を減算した結果、「0」に更新された割込み処理中に)「300」に更新される。
Specific examples of the carry flag and the zero flag are as follows:
Example 1) When the value of gaming machine information notification timer A is "10" and "1" is subtracted, the value of gaming machine information notification timer A is updated to "9." At this time, the zero flag and the carry flag do not change (they remain at "0").
Example 2) When the value of gaming machine information notification timer A is "1" and "1" is subtracted, the value of gaming machine information notification timer A is updated to "0". As a result, the zero flag becomes "1". Meanwhile, the carry flag does not change (it remains at "0"). Here, in the calculation process of this embodiment, when the value of gaming machine information notification timer A is updated from "1" to "0" and the zero flag becomes "1", it is immediately updated to "300" (during the interrupt process in which it was updated to "0" as a result of subtracting "1")

例3)遊技機情報通知タイマAの値が「0」であるときに「1」減算されると、遊技機情報通知タイマAの値は「300」に更新される。このとき、ゼロフラグは変化しない(「0」のままである)。一方、キャリーフラグは「1」となる。
なお、減算前の遊技機情報通知タイマAの値が「0」であるのは、電源投入後に初期化されたときのみである。したがって、電源投入後の最初の割込み処理において遊技機情報通知タイマAの値が「0」から「300」に更新されたときにキャリーフラグが「1」になる。
Example 3) When the value of gaming machine information notification timer A is "0" and "1" is subtracted, the value of gaming machine information notification timer A is updated to "300". At this time, the zero flag does not change (it remains "0"). Meanwhile, the carry flag becomes "1".
The value of the gaming machine information notification timer A before subtraction is "0" only when it is initialized after power-on. Therefore, the carry flag becomes "1" when the value of the gaming machine information notification timer A is updated from "0" to "300" in the first interrupt process after power-on.

遊技機情報通知タイマAの値を更新した結果、キャリーフラグ又はゼロフラグのいずれかが「1」となったときは、通知Aの送信タイミングが到来したと判断する。これにより、遊技機10は、貸出ユニット200に対し、通知Aを送信可能とする。図40では、電源のオンにより遊技機情報通知タイマAが初期化されて「0」になった後、最初の割込み処理により遊技機情報通知タイマAの値が「0」から「300」に更新され、キャリーフラグ(CY)が「1」となったときに通知Aが送信されることを示している(図中、「*1」)。 When the result of updating the value of gaming machine information notification timer A is that either the carry flag or the zero flag becomes "1", it is determined that the timing to send notification A has arrived. This enables the gaming machine 10 to send notification A to the lending unit 200. In FIG. 40, after the gaming machine information notification timer A is initialized to "0" when the power is turned on, the value of gaming machine information notification timer A is updated from "0" to "300" by the first interrupt process, and notification A is sent when the carry flag (CY) becomes "1" ("*1" in the figure).

次に、「1」msごとに割込みが実行され、遊技機情報通知タイマAの値が「299」、「298」、・・・と更新されていくが、キャリーフラグ又はゼロフラグのいずれかが「1」にならなければ、通知Aの送信タイミングが到来したと判断されないので、通知Aは送信されない。「60」秒及び「180」秒も「300」msの倍数であるから、当然に、通知Bや通知Cも送信されない。
なお、上述したように、電源投入後の最初の割込み処理でのみ、遊技機情報通知タイマAの値の更新によりキャリーフラグが「1」となるが、その後に、遊技機情報通知タイマAの値の更新によりキャリーフラグが「1」になることはない。
Next, an interrupt is executed every "1" ms, and the value of gaming machine information notification timer A is updated to "299", "298", ..., but unless either the carry flag or the zero flag becomes "1", it is not determined that the timing to send notification A has arrived, so notification A is not sent. Since "60" seconds and "180" seconds are also multiples of "300" ms, naturally notification B and notification C are not sent either.
As mentioned above, the carry flag becomes "1" due to the update of the value of the gaming machine information notification timer A only during the first interrupt processing after the power is turned on, but thereafter, the carry flag does not become "1" due to the update of the value of the gaming machine information notification timer A.

最初の通知Aが送信されたとき(図中、「*1」)から割込み回数が「300」回に到達すると(すなわち、「300」msを経過すると)、遊技機情報通知タイマAの値は、「1」から「0」に更新され(さらに「300」に更新され)、ゼロフラグ(Z)が「1」になる。したがって、通知Aの送信タイミングが到来したと判断する。これにより、遊技機10は、貸出ユニット200に対し、通知Aを送信する(図中、「*2」)。 When the number of interrupts reaches "300" (i.e., when "300" ms have elapsed since the first notification A was sent ("*1" in the figure), the value of the gaming machine information notification timer A is updated from "1" to "0" (and further updated to "300"), and the zero flag (Z) becomes "1". Therefore, it is determined that the timing to send notification A has arrived. As a result, the gaming machine 10 sends notification A to the rental unit 200 ("*2" in the figure).

次に、最初の通知Aの送信時(図中「*1」)から割込み回数が「6000」回となったとき、すなわち「60」秒経過時には、以下のようにタイマ値等が更新される。
第1に、遊技機情報通知タイマAの値が「1」から「0」に更新され(さらに「300」に更新され)、ゼロフラグ(Z)が「1」になる(図中、「*3」)。したがって、通知Aの送信タイミングが到来したと判断する。
第2に、遊技機情報通知タイマBが「199」から「0」に更新される。遊技機情報通知タイマBの値が更新された結果、「0」となったときは、通知Bの送信タイミングが到来したと判断し、遊技機設置情報通知要求フラグ(D1ビット)は「1」に更新される。
Next, when the number of interrupts reaches "6000" since the first transmission of notification A ("*1" in the figure), that is, when "60" seconds have elapsed, the timer value etc. are updated as follows:
First, the value of the gaming machine information notification timer A is updated from "1" to "0" (and further updated to "300"), and the zero flag (Z) becomes "1" (in the figure, "*3"). Therefore, it is determined that the timing for sending notification A has arrived.
Secondly, the gaming machine information notification timer B is updated from "199" to "0." When the value of the gaming machine information notification timer B is updated to "0," it is determined that the timing to send notification B has arrived, and the gaming machine installation information notification request flag (D1 bit) is updated to "1."

この時点では、通知Aの送信タイミングが到来し、かつ、通知Bの送信タイミングが到来している。したがって、通知Bが通知Aよりも優先して送信されることから、このタイミングでは通知Bが送信される(図中、「*4」)。通知Bが送信されると、遊技機設置情報通知要求フラグ(D1ビット)は「0」に更新される。
そして、そのタイミングから「300」ms経過後に、遊技機情報通知タイマAの値が再度「1」から「0」に更新され(さらに「300」に更新され)、ゼロフラグ(Z)が「1」になる。ゼロフラグ(Z)が「1」になったことに基づいて、通知Aの送信タイミングが到来したと判断し、通知Aが送信される(図中、「*5」)。
At this point in time, the timing for sending notification A has arrived, and the timing for sending notification B has also arrived. Therefore, since notification B is given priority over notification A, notification B is sent at this timing (in the figure, "*4"). When notification B is sent, the gaming machine installation information notification request flag (D1 bit) is updated to "0".
Then, after "300" ms has elapsed from that timing, the value of the gaming machine information notification timer A is updated again from "1" to "0" (and further updated to "300"), and the zero flag (Z) becomes "1." Based on the fact that the zero flag (Z) has become "1," it is determined that the timing for sending notification A has arrived, and notification A is sent (in the figure, "*5").

このように、図中「*3」の送信タイミングにおいて、通知Bの送信が優先されるときは、そのタイミングでは通知Aが送信されず、そのタイミングから「300」ms経過後の「*5」のタイミングで通知Aが送信される。
ここで、図中「*5」のタイミングで通知Aが送信されるときは、その送信直前に取得されたホールコン・不正監視情報が所定の送信用レジスタに記憶され、そのホールコン・不正監視情報を含む遊技機情報通知が送信される。
換言すれば、図中「*3」の送信タイミングでホールコン・不正監視情報が取得され、所定の送信用レジスタに記憶された後、図中「*5」のタイミングで当該ホールコン・不正監視情報が送信されるのではない。
In this way, when the transmission of notification B is given priority at the transmission timing of "*3" in the figure, notification A is not transmitted at that timing, and notification A is transmitted at timing of "*5" 300 ms after that timing.
Here, when notification A is transmitted at the timing of "*5" in the figure, the hall control/fraud monitoring information obtained immediately before the transmission is stored in a designated transmission register, and a gaming machine information notification including the hall control/fraud monitoring information is transmitted.
In other words, the hall control/fraud monitoring information is not acquired at the transmission timing of "*3" in the figure, stored in a designated transmission register, and then the hall control/fraud monitoring information is not transmitted at the timing of "*5" in the figure.

図中「*3」の送信タイミングで通知Aが送信されないと判断されたときは、その時点でのホールコン・不正監視情報を所定の送信用レジスタに記憶しないように構成してもよい。ただし、処理の簡素化から、通知Aの送信タイミングが到来したときは、一律、その時点でのホールコン・不正監視情報を所定の送信用レジスタに記憶する。そして、「300」msごとに、換言すればゼロフラグ(Z)が「1」になるごとに、その時点でのホールコン・不正監視情報を所定の送信用レジスタに記憶(上書き)すればよい。 When it is determined that notification A will not be sent at the transmission timing of "*3" in the figure, the hole control/fraud monitoring information at that time may be configured not to be stored in the specified transmission register. However, to simplify processing, when the transmission timing of notification A arrives, the hole control/fraud monitoring information at that time is uniformly stored in the specified transmission register. Then, every "300" ms, in other words every time the zero flag (Z) becomes "1", the hole control/fraud monitoring information at that time is stored (overwritten) in the specified transmission register.

次に、最初の通知Aの送信時(図中「*1」)から割込み回数が「18000」回となったとき、すなわち「180」秒経過時には、以下のようにタイマ値等が更新される。
第1に、遊技機情報通知タイマAの値が「1」から「0」に更新され(さらに「300」に更新され)、ゼロフラグ(Z)が「1」になる(図中「*6」)。ゼロフラグ(Z)が「1」になったことに基づいて、通知Aの送信タイミングが到来したと判断する。
Next, when the number of interrupts reaches "18,000" since the first transmission of notification A ("*1" in the figure), that is, when "180" seconds have elapsed, the timer value etc. are updated as follows:
First, the value of the gaming machine information notification timer A is updated from "1" to "0" (and further updated to "300"), and the zero flag (Z) becomes "1"("*6" in the figure). Based on the fact that the zero flag (Z) has become "1", it is determined that the timing for sending notification A has arrived.

第2に、遊技機情報通知タイマBが「199」から「0」に更新される。遊技機情報通知タイマBの値が更新された結果、「0」となったときは、通知Bの送信タイミングが到来したと判断し、遊技機設置情報通知要求フラグ(D1ビット)は「1」に更新される(図中「*7」)。
第3に、遊技機情報通知タイマCが「2」から「0」に更新される。遊技機情報通知タイマCの値が更新された結果、「0」となったときは、通知Cの送信タイミングが到来したと判断し、遊技機性能情報通知要求フラグ(D0ビット)は「1」に更新される(図中「*8」)。
Secondly, the gaming machine information notification timer B is updated from "199" to "0". When the value of the gaming machine information notification timer B is updated to "0", it is determined that the timing for sending notification B has arrived, and the gaming machine installation information notification request flag (D1 bit) is updated to "1"("*7" in the figure).
Third, the gaming machine information notification timer C is updated from "2" to "0." When the value of the gaming machine information notification timer C is updated to "0," it is determined that the timing to send notification C has arrived, and the gaming machine performance information notification request flag (D0 bit) is updated to "1"("*8" in the figure).

この時点では、通知Aの送信タイミングが到来し、通知Bの送信タイミングが到来し、かつ、通知Cの送信タイミングが到来している。したがって、通知A、通知B、及び通知Cの送信タイミングがすべて重なっている。この場合には、通知Bが第1優先で送信されることから、このタイミングでは通知Bが送信される(図中「*7」)。換言すれば、当該タイミングでは通知A及び通知Cは送信されない。通知Bが送信されると、遊技機設置情報通知要求フラグ(D1ビット)は「0」に更新される。なお、この時点では通知Cは送信されていないので、遊技機性能情報通知要求フラグ(D0ビット)は「1」のままである。 At this point, the timing for sending notification A has arrived, the timing for sending notification B has arrived, and the timing for sending notification C has arrived. Therefore, the timing for sending notifications A, B, and C all overlap. In this case, since notification B is sent with first priority, notification B is sent at this timing ("*7" in the diagram). In other words, notifications A and C are not sent at this timing. When notification B is sent, the gaming machine installation information notification request flag (D1 bit) is updated to "0". Note that notification C has not been sent at this point, so the gaming machine performance information notification request flag (D0 bit) remains at "1".

このタイミングから「300」msが経過し、遊技機情報通知の送信タイミングが到来すると、遊技機情報通知タイマAの値が「1」から「0」に更新され(さらに「300」に更新され)、ゼロフラグ(Z)が「1」になる(図中、「*9」)。ゼロフラグ(Z)が「1」になったことに基づいて、通知Aの送信タイミングが到来したと判断される。
また、このタイミングでは、遊技機性能情報通知要求フラグ(D0ビット)は「1」となっている。よって、通知Cの送信タイミングが到来している。そして、通知Aと通知Cの送信タイミングが重なったときは、通知Cの送信が優先されるので、通知Cが送信される(図中「*10」)。換言すれば、当該タイミングでは通知Aは送信されない。通知Cが送信されると、遊技機性能情報通知要求フラグ(D0ビット)は「0」に更新される。
When "300" ms has elapsed from this timing and the timing to transmit the gaming machine information notification arrives, the value of the gaming machine information notification timer A is updated from "1" to "0" (and further updated to "300"), and the zero flag (Z) becomes "1" (in the figure, "*9"). Based on the fact that the zero flag (Z) has become "1", it is determined that the timing to transmit the notification A has arrived.
Also, at this timing, the gaming machine performance information notification request flag (D0 bit) is "1". Therefore, the timing for sending notification C has arrived. When the timing for sending notifications A and C overlap, notification C takes priority, so notification C is sent ("*10" in the figure). In other words, notification A will not be sent at this timing. When notification C is sent, the gaming machine performance information notification request flag (D0 bit) is updated to "0".

この時点から「300」msを経過すると、遊技機情報通知タイマAの値が「1」から「0」に更新され(さらに「300」に更新され)、ゼロフラグ(Z)が「1」になる(図中「*11」)。ゼロフラグ(Z)が「1」になったことに基づいて、通知Aの送信タイミングが到来したと判断される。さらに、この時点では、遊技機設置情報通知要求フラグ(D1ビット)及び遊技機性能情報通知要求フラグ(D0ビット)はいずれも「0」であるので、通知Bの送信タイミングでなく、かつ、通知Cの送信タイミングでもない。したがって、このタイミングでは、通知Aが送信される(図中「*11」)。 After 300 ms have elapsed from this point, the value of gaming machine information notification timer A is updated from 1 to 0 (and further updated to 300), and the zero flag (Z) becomes 1 (indicated by *11 in the diagram). Based on the zero flag (Z) becoming 1, it is determined that the timing to send notification A has arrived. Furthermore, at this point, the gaming machine installation information notification request flag (D1 bit) and the gaming machine performance information notification request flag (D0 bit) are both 0, so it is not the timing to send notification B, nor is it the timing to send notification C. Therefore, at this timing, notification A is sent (indicated by *11 in the diagram).

図中「*11」のタイミングで通知Aが送信されるときは、その送信直前に取得されたホールコン・不正監視情報が所定の送信用レジスタに記憶され、そのホールコン・不正監視情報を含む遊技機情報通知が送信される。換言すれば、図中「*6」や「*9」のタイミングで取得されたホールコン・不正監視情報ではない。 When notification A is sent at the timing of "*11" in the diagram, the hall control/fraud monitoring information acquired immediately before the transmission is stored in a specified transmission register, and a gaming machine information notification containing that hall control/fraud monitoring information is sent. In other words, it is not the hall control/fraud monitoring information acquired at the timing of "*6" or "*9" in the diagram.

以上のように、キャリーフラグ又はゼロフラグのいずれか一方が「1」になったときに、通知Aの送信タイミングが到来したと判断する。
したがって、上述した役比モニタ113において、点滅切替え時間を更新した結果、キャリーフラグが「0」になったときに点灯と消灯とを切り替える制御とは相違する。
As described above, when either the carry flag or the zero flag becomes "1", it is determined that the timing to transmit notification A has arrived.
Therefore, this is different from the control in the above-mentioned role ratio monitor 113, which switches between on and off when the carry flag becomes "0" as a result of updating the blinking switching time.

図41は、遊技機情報管理を示すフローチャートである。
ここで、「遊技機情報管理」とは、遊技機10から遊技機情報通知を貸出ユニット200に送信するための制御処理である。図41の処理は、遊技媒体数制御基板100によって実行されるタイマ割込み処理内の1つのサブルーチンである。換言すると、タイマ割込み処理が実行されるごとに(「1」msの周期で)、遊技機情報管理が実行される。
まず、ステップS721では、遊技機情報通知タイマAから「1」を減算する(遊技機情報通知タイマAを更新する)。次にステップS722に進み、更新前の遊技機情報通知タイマAの値が「0」であるか否かを判断する。ステップS721の減算処理においてキャリーフラグが「1」となったときは、更新前の遊技機情報通知タイマAの値が「0」であると判断する。なお、更新前の遊技機情報通知タイマAの値が「0」であったためにキャリーフラグが「1」となるのは、電源投入時に遊技機情報通知タイマAの値が「0」にされた(初期化された)後に「1」減算された場合に相当する。更新前の遊技機情報通知タイマAが「0」であると判断したときはステップS733に進み、「0」でないと判断したときはステップS723に進む。
FIG. 41 is a flowchart showing gaming machine information management.
Here, "gaming machine information management" refers to a control process for transmitting a gaming machine information notification from the gaming machine 10 to the rental unit 200. The process in Fig. 41 is one subroutine in the timer interrupt process executed by the gaming media count control board 100. In other words, gaming machine information management is executed each time the timer interrupt process is executed (at a period of "1" ms).
First, in step S721, "1" is subtracted from the gaming machine information notification timer A (the gaming machine information notification timer A is updated). Next, the process proceeds to step S722, where it is determined whether the value of the gaming machine information notification timer A before the update is "0". When the carry flag becomes "1" in the subtraction process of step S721, it is determined that the value of the gaming machine information notification timer A before the update is "0". Note that the carry flag becomes "1" because the value of the gaming machine information notification timer A before the update was "0" corresponds to the case where the value of the gaming machine information notification timer A is set to "0" (initialized) when the power is turned on and then "1" is subtracted. When it is determined that the gaming machine information notification timer A before the update is "0", the process proceeds to step S733, and when it is determined that the value is not "0", the process proceeds to step S723.

ステップS723では、更新前の遊技機情報通知タイマAの値が「1」であるか否かを判断する。換言すれば、更新によって遊技機情報通知タイマAの値が「0」なったか否か、さらに換言すれば、更新によってゼロフラグが「1」となったか否かを判断する。更新前の遊技機情報通知タイマAの値が「1」であると判断したときはステップS724に進み、「0」でないと判断したときは本フローチャートによる処理を終了する。
更新前の遊技機情報通知タイマAの値が「1」であるときは、「300」ms周期のタイミング、すなわちホールコン・不正監視情報を含む遊技機情報通知の送信タイミングであることを意味する。
In step S723, it is determined whether the value of the gaming machine information notification timer A before the update is "1". In other words, it is determined whether the value of the gaming machine information notification timer A has become "0" as a result of the update, or in other words, whether the zero flag has become "1" as a result of the update. If it is determined that the value of the gaming machine information notification timer A before the update is "1", the process proceeds to step S724, and if it is determined that the value is not "0", the process according to this flowchart is terminated.
When the value of gaming machine information notification timer A before the update is "1", it means that it is the timing of a "300" ms period, that is, the timing of transmitting a gaming machine information notification including hall control and fraud monitoring information.

一方、通知Aの送信タイミングでないときは、「300」ms周期のタイミングではないので、「60」秒周期の送信タイミングでもなく、かつ、「180」秒周期の送信タイミングでもない。換言すれば、遊技機設置情報を含む遊技機情報通知の送信タイミングでもなく、かつ、遊技機性能情報を含む遊技機設置情報の送信タイミングでもない。したがって、ホールコン・不正監視情報を含む遊技機設置情報の送信タイミングでないと判断したときは、遊技機設置情報を含む遊技機情報通知の送信タイミングであるか否かや、遊技機性能情報を含む遊技機設置情報の送信タイミングであるか否かを判断することなく、遊技機情報管理を終了するようにしている。これにより、プログラム処理を簡素化できるとともに、遊技機情報管理の高速化を図ることができる。 On the other hand, when it is not the timing to send notification A, it is not a timing of a "300" ms cycle, so it is not a timing of a "60" second cycle, and it is not a timing of a "180" second cycle. In other words, it is not the timing of sending a gaming machine information notification including gaming machine installation information, and it is not the timing of sending gaming machine installation information including gaming machine performance information. Therefore, when it is determined that it is not the timing to send gaming machine installation information including hall control and fraud monitoring information, gaming machine information management is terminated without determining whether it is the timing of sending a gaming machine information notification including gaming machine installation information or whether it is the timing of sending gaming machine installation information including gaming machine performance information. This makes it possible to simplify program processing and speed up gaming machine information management.

ステップS724では、遊技機情報通知タイマAの値に初期値を保存する。ここで、初期値は「300(D)」である。本実施形態における遊技媒体数制御基板100のタイマ割込みの周期は「1」msであるため、遊技機情報通知タイマAの値として「300(D)」を記憶することで、「300」msのカウントが可能となっている。したがって、ステップS721における減算で演算結果が「0」になったときは、すぐにステップS724で「300」が記憶される。
なお、たとえば遊技媒体数制御基板100のタイマ割込みの周期が「2」msである場合には、遊技機情報通知タイマAに「150(D)」を記憶すればよい。
また、たとえば遊技媒体数制御基板100のタイマ割り込みの周期を「2.235」msとした場合は、遊技機情報通知タイマAに「135」~「138」の範囲のいずれかの値を記憶すればよい。このように、「遊技機情報通知の送信周期/タイマ割込み周期」が整数にならない場合(割り切れない場合)は、遊技機情報通知の送信タイミングが「300」ms~「310」msの間となる任意の値を初期値に設定することができる。
In step S724, an initial value is stored in the value of gaming machine information notification timer A. Here, the initial value is "300 (D)." Since the timer interrupt period of the gaming media count control board 100 in this embodiment is "1" ms, storing "300 (D)" as the value of gaming machine information notification timer A makes it possible to count "300" ms. Therefore, when the calculation result becomes "0" by the subtraction in step S721, "300" is immediately stored in step S724.
For example, if the timer interrupt period of the game media count control board 100 is "2" ms, then the game machine information notification timer A should store "150(D)".
Also, for example, if the timer interrupt period of the gaming media count control board 100 is set to "2.235" ms, any value in the range of "135" to "138" may be stored in the gaming machine information notification timer A. In this way, if the "gaming machine information notification transmission period/timer interrupt period" is not an integer (is not divisible), any value that results in the gaming machine information notification transmission timing being between "300" ms to "310" ms can be set as the initial value.

なお、上述したステップS721の演算命令としては、DCPWLD命令が挙げられる。DCPWLD命令は、「1」減算した結果としてキャリーフラグが「1」となった場合に、所定値を記憶する命令である。本実施形態における所定値は「300」としている。したがって、電源投入後、遊技機情報通知タイマAが初期化されて「0」にされた後、最初の割込み処理における遊技機情報管理処理において、ステップS721で「1」が減算されると、キャリーフラグが「1」となり、所定値「300」が記憶される。
このように、電源投入時の初期化処理により、遊技機情報通知タイマAの値が「0」にされるが、それ以外は、ステップS721の処理後からステップS724の処理前の期間を除き、遊技機情報通知タイマAの値が「0」になることはない(異常時を除く)。
An example of the calculation instruction in step S721 described above is the DCPWLD instruction. The DCPWLD instruction is an instruction to store a predetermined value when the carry flag becomes "1" as a result of subtracting "1". In this embodiment, the predetermined value is "300". Therefore, after the power is turned on, the gaming machine information notification timer A is initialized to "0" and then, in the gaming machine information management process in the first interrupt process, when "1" is subtracted in step S721, the carry flag becomes "1" and the predetermined value "300" is stored.
In this way, the value of the gaming machine information notification timer A is set to "0" by the initialization process when the power is turned on, but otherwise, the value of the gaming machine information notification timer A will never become "0" (except in the event of an abnormality), except for the period after the processing of step S721 and before the processing of step S724.

次のステップS725では、遊技機情報通知タイマBの値を「1」加算する処理を実行する。ここでの加算処理は、特殊加算命令が用いられる。具体的には、遊技機情報通知タイマBに「199」未満の値が記憶されているときは遊技機情報通知タイマBの値に「1」を加算し、遊技機情報通知タイマBの値が「199」未満でないとき(すなわち、正常動作状況下において「199」が記憶されているとき)は、遊技機情報通知タイマBに「0」を記憶する演算処理である。 In the next step S725, a process is executed to add "1" to the value of gaming machine information notification timer B. A special addition command is used for the addition process here. Specifically, when a value less than "199" is stored in gaming machine information notification timer B, "1" is added to the value of gaming machine information notification timer B, and when the value of gaming machine information notification timer B is not less than "199" (i.e., when "199" is stored under normal operating conditions), "0" is stored in gaming machine information notification timer B.

具体例を挙げると、以下の通りである。
例1)遊技機情報通知タイマBに「0」が記憶されている場合において、「1」を加算する特殊加算命令を用いた演算処理を行うと、「1」となる。
例2)遊技機情報通知タイマBに「100」が記憶されている場合において、「1」を加算する特殊加算命令を用いた演算処理を行うと、遊技機情報通知タイマBは「101」となる。
例3)遊技機情報通知タイマBに「199」が記憶されている場合において、「1」を加算する特殊加算命令を用いた演算処理を行うと、遊技機情報通知タイマBの値は「200」にならずに「0」になる。たとえば、上述した図40中、「*4」のタイミングにおける演算に相当する。
Specific examples are as follows:
Example 1) When "0" is stored in gaming machine information notification timer B, when a calculation process is performed using a special addition instruction to add "1", the value becomes "1".
Example 2) When "100" is stored in gaming machine information notification timer B, when a calculation process is performed using a special addition instruction that adds "1", gaming machine information notification timer B becomes "101".
Example 3) When "199" is stored in gaming machine information notification timer B, if a calculation process is performed using a special addition command to add "1", the value of gaming machine information notification timer B will become "0" instead of "200". For example, this corresponds to the calculation at the timing of "*4" in FIG. 40 mentioned above.

このように、遊技機情報通知タイマBに「1」を加算する特殊加算命令を用いた演算処理を行うと、遊技機情報通知タイマBの値として「0」~「199」を循環させることができる。
また、遊技機情報通知タイマBに「199」が記憶されているときに「1」を加算する状況とは、遊技機情報通知タイマAが「0」となった契機が「200」回到来した状況に相当する。換言すれば、割込み処理が「300」回実行されるごとに遊技機情報通知タイマBが「1」ずつ加算されるため、「300回×200回=60000回」の割込み処理が実行された(「60」秒が経過した)状況である。
In this way, by performing calculation processing using a special addition instruction that adds "1" to gaming machine information notification timer B, the value of gaming machine information notification timer B can be cycled between "0" and "199".
Moreover, the situation where "1" is added when "199" is stored in gaming machine information notification timer B corresponds to the situation where the gaming machine information notification timer A has reached "0" 200 times. In other words, since gaming machine information notification timer B is incremented by "1" every time the interrupt process is executed 300 times, this is a situation where the interrupt process has been executed 300 times x 200 times = 60,000 times (60 seconds have passed).

そして、本来であれば、「60000」回の割込み処理が実行されたか否かを計測するためには「2」バイトの記憶領域を設けなければならない。しかし、遊技機情報通知タイマAの値に基づいて遊技機情報通知タイマBを更新することにより、遊技機情報通知タイマBの記憶領域を「1」バイトとすることができ、RWM103の記憶容量を削減することができる。
また、遊技機情報通知タイマBに「1」加算する演算命令としては、ICPLD命令が挙げられる。
なお、上記例では遊技機情報通知タイマBに「1」加算する命令を実行しているが、「1」減算する命令としてもよい。減算命令の場合は、電源投入時に遊技機情報通知タイマBに初期値として「200」を記憶し、その後「0」となったときに「200」を記憶してもよい。あるいは、電源投入時に遊技機情報通知タイマBに初期値として「199」を記憶し、その後、キャリーフラグが「1」となったときに「200」を記憶してもよい。
Normally, a memory area of "2" bytes would be required to measure whether or not the interrupt process has been executed "60,000" times. However, by updating the gaming machine information notification timer B based on the value of the gaming machine information notification timer A, the memory area of the gaming machine information notification timer B can be set to "1" byte, and the memory capacity of the RWM 103 can be reduced.
In addition, an example of an arithmetic instruction for adding "1" to the gaming machine information notification timer B is the ICPLD instruction.
In the above example, a command to add "1" to gaming machine information notification timer B is executed, but a command to subtract "1" may also be executed. In the case of a subtraction command, "200" may be stored as an initial value in gaming machine information notification timer B when the power is turned on, and "200" may be stored when the timer becomes "0" thereafter. Alternatively, "199" may be stored as an initial value in gaming machine information notification timer B when the power is turned on, and "200" may be stored when the carry flag becomes "1" thereafter.

また、遊技機情報通知タイマBの更新を加算命令としているため、減算命令にした場合と比べて、初期値をセットする処理を省略できる(電源投入時の初期化処理により初期値は「0」となる)分、処理速度の向上やプログラム容量を削減することができる。 In addition, because the gaming machine information notification timer B is updated using an addition command, the process of setting the initial value can be omitted compared to when a subtraction command is used (the initial value becomes "0" due to the initialization process when the power is turned on), which allows for improved processing speed and reduced program capacity.

ステップS726では、遊技機情報通知タイマBの時間が経過したか否かを判断する。ここでは、遊技機情報通知タイマBの値が「1」加算により「0」となったときは、遊技機情報通知タイマBの時間が経過したと判断する。一方、遊技機情報通知タイマBの値が「1」加算により「0」にならなかったときは、遊技機情報通知タイマBの時間が経過していないと判断する。
遊技機情報通知タイマBの時間が経過したと判断したときはステップS727に進み、経過していないと判断したときはステップS731に進む。
ステップS727では、遊技機情報通知タイマCに「1」加算する処理を実行する。
ここでの加算処理は、特殊加算命令が用いられる。具体的には、遊技機情報通知タイマBに「2」未満の値が記憶されているときは遊技機情報通知タイマCの値に「1」を加算し、遊技機情報通知タイマCの値が「2」未満でないとき(すなわち、正常動作状況下において「3」が記憶されているとき)は、遊技機情報通知タイマCに「0」を記憶する演算処理である。
In step S726, it is determined whether or not the time of the gaming machine information notification timer B has elapsed. Here, when the value of the gaming machine information notification timer B becomes "0" by adding "1", it is determined that the time of the gaming machine information notification timer B has elapsed. On the other hand, when the value of the gaming machine information notification timer B does not become "0" by adding "1", it is determined that the time of the gaming machine information notification timer B has not elapsed.
If it is determined that the time of the gaming machine information notification timer B has elapsed, the process proceeds to step S727, and if it is determined that the time has not elapsed, the process proceeds to step S731.
In step S727, a process of adding "1" to the gaming machine information notification timer C is executed.
A special addition command is used for the addition process here. Specifically, when a value less than "2" is stored in gaming machine information notification timer B, "1" is added to the value of gaming machine information notification timer C, and when the value of gaming machine information notification timer C is not less than "2" (i.e., when "3" is stored under normal operating conditions), "0" is stored in gaming machine information notification timer C.

具体例を挙げると、以下の通りである。
例1)遊技機情報通知タイマCに「0」が記憶されている場合において、「1」を加算する特殊加算命令を用いた演算処理を行うと、「1」となる。
例2)遊技機情報通知タイマCに「1」が記憶されている場合において、「1」を加算する特殊加算命令を用いた演算処理を行うと、遊技機情報通知タイマCは「2」となる。
例3)遊技機情報通知タイマCに「2」が記憶されている場合において、「1」を加算する特殊加算命令を用いた演算処理を行うと、遊技機情報通知タイマBの値は「3」にならずに「0」になる。たとえば、上述した図40中、「*8」のタイミングにおける演算に相当する。
Specific examples are as follows:
Example 1) When "0" is stored in gaming machine information notification timer C, when a calculation process is performed using a special addition instruction that adds "1", the value becomes "1".
Example 2) When the gaming machine information notification timer C stores "1", when a calculation process is performed using a special addition instruction that adds "1", the gaming machine information notification timer C becomes "2".
Example 3) When "2" is stored in gaming machine information notification timer C, if a calculation process is performed using a special addition command to add "1", the value of gaming machine information notification timer B will become "0" instead of "3". For example, this corresponds to the calculation at the timing of "*8" in FIG. 40 mentioned above.

このように、遊技機情報通知タイマCに「1」を加算する特殊加算命令を用いた演算処理を行うと、遊技機情報通知タイマCの値として「0」~「2」を循環させることができる。
また、遊技機情報通知タイマCに「2」が記憶されているときに「1」を加算する状況とは、遊技機情報通知タイマBが「0」となった契機が「3」回到来した状況に相当する。換言すれば、割込み処理が「300」回実行されるごとに遊技機情報通知タイマBが「1」加算され、遊技機情報通知タイマBが「200」回更新されるごとに遊技機情報通知タイマCに「1」が加算されることから、「300回×200回×3回=180000回」の割込み処理が実行された(「180」秒が経過した)状況である。
In this way, by performing calculation processing using a special addition instruction that adds "1" to the gaming machine information notification timer C, the value of the gaming machine information notification timer C can be cycled between "0" and "2".
Moreover, the situation where "1" is added when "2" is stored in gaming machine information notification timer C corresponds to the situation where the gaming machine information notification timer B has become "0""3" times. In other words, gaming machine information notification timer B is incremented by "1" every time the interrupt process is executed "300" times, and gaming machine information notification timer C is incremented by "1" every time gaming machine information notification timer B is updated "200" times, so this is a situation where the interrupt process has been executed "300 times x 200 times x 3 times = 180,000 times"("180" seconds have passed).

そして、本来であれば、「180000」回の割込み処理が実行されたか否かを計測するためには「3」バイトの記憶領域を設けなければならないが、遊技機情報通知タイマAの値に基づいて遊技機情報通知タイマBの値を更新し、さらに遊技機情報通知タイマBの値に基づいて遊技機情報通知タイマCの値を更新するので、遊技機情報通知タイマCの記憶領域を「1」バイトとすることができ、RWM103の記憶容量を削減することができる。
また、遊技機情報通知タイマCに「1」加算する演算命令としては、上述したICPLD命令が挙げられる。
なお、上記例では遊技機情報通知タイマCに「1」加算する命令を実行しているが、減算命令としてもよい。減算命令の場合は、電源投入時に遊技機情報通知タイマCの値として初期値「3」を記憶し、その後「0」となったときに「3」を記憶してもよい。あるいは、電源投入時に遊技機情報通知タイマCの値として初期値「2」を記憶し、その後、キャリーフラグが「1」となったときに「3」を記憶してもよい。
Normally, a memory area of 3 bytes would be required to measure whether or not the interrupt process has been executed 180,000 times, but since the value of gaming machine information notification timer B is updated based on the value of gaming machine information notification timer A, and the value of gaming machine information notification timer C is further updated based on the value of gaming machine information notification timer B, the memory area of gaming machine information notification timer C can be 1 byte, and the memory capacity of RWM 103 can be reduced.
Furthermore, an example of an arithmetic instruction for adding "1" to the gaming machine information notification timer C is the above-mentioned ICPLD instruction.
In the above example, a command to add "1" to the gaming machine information notification timer C is executed, but a subtraction command may also be executed. In the case of a subtraction command, an initial value of "3" may be stored as the value of the gaming machine information notification timer C when the power is turned on, and "3" may be stored when the timer becomes "0" thereafter. Alternatively, an initial value of "2" may be stored as the value of the gaming machine information notification timer C when the power is turned on, and "3" may be stored when the carry flag becomes "1" thereafter.

ただし、本実施形態のように、遊技機情報通知タイマCの更新を加算命令とすれば、減算命令にした場合と比べて、初期値をセットする処理を省略できる(電源投入時の初期化処理により初期値は「0」となる)分、処理速度の向上やプログラム容量を削減することができる。 However, as in this embodiment, if the gaming machine information notification timer C is updated with an addition command, the process of setting the initial value can be omitted compared to when it is updated with a subtraction command (the initial value becomes "0" due to the initialization process when the power is turned on), which allows for improved processing speed and reduced program capacity.

ステップS728では、遊技機情報通知タイマCの時間が経過したか否かを判断する。ここでは、遊技機情報通知タイマCの値が「1」加算により「0」となったときは、遊技機情報通知タイマCの時間が経過したと判断する。一方、遊技機情報通知タイマCの値が「1」加算により「0」にならなかったときは、遊技機情報通知タイマCの時間が経過していないと判断する。
遊技機情報通知タイマCの時間が経過したと判断したときはステップS729に進み、経過していないと判断したときはステップS730に進む。
In step S728, it is determined whether or not the time has elapsed on the gaming machine information notification timer C. Here, when the value of the gaming machine information notification timer C becomes "0" by adding "1", it is determined that the time of the gaming machine information notification timer C has elapsed. On the other hand, when the value of the gaming machine information notification timer C does not become "0" by adding "1", it is determined that the time of the gaming machine information notification timer C has not elapsed.
If it is determined that the time of the gaming machine information notification timer C has elapsed, the process proceeds to step S729, and if it is determined that the time has not elapsed, the process proceeds to step S730.

なお、ステップS726で「Yes」と判断されたときに限り、ステップS727の処理を実行するようにしている。遊技機情報通知タイマCを更新するタイミングは、遊技機情報通知タイマBが「0」になったときに限られるからである。さらに、その次のステップS728において遊技機情報通知タイマCの時間が経過したか否かを判断するのは、ステップS726で「Yes」と判断された場合に限られる。遊技機情報通知タイマCの時間が経過したか否かは、「180」秒の周期が到来したか否かであり、「180」秒の周期が到来するのは、必ず「60」秒の周期が到来している(遊技機情報通知タイマBの時間が経過している)からである。 The process of step S727 is executed only when step S726 is judged as "Yes". This is because the timing for updating gaming machine information notification timer C is limited to when gaming machine information notification timer B becomes "0". Furthermore, in the next step S728, it is determined whether the time on gaming machine information notification timer C has elapsed only when step S726 is judged as "Yes". Whether the time on gaming machine information notification timer C has elapsed depends on whether a "180" second cycle has arrived, and the time on the "180" second cycle always arrives when a "60" second cycle has arrived (the time on gaming machine information notification timer B has elapsed).

ステップS729では、遊技機性能情報通知要求フラグをセットする。この処理は、遊技機情報通知要求フラグの「D0」ビットに「1」を記憶する処理である。次のステップS730では、遊技機設置情報通知要求フラグをセットする。この処理は、遊技機情報通知要求フラグの「D1」ビットに「1」を記憶する処理である。
すなわち、遊技機情報通知タイマCの時間が経過したと判断されたときは、「180」秒の周期が到来したときであり、「180」秒の周期には「60」秒の周期が含まれるため、遊技機性能情報を通知するタイミングが到来し、かつ遊技機設置情報を通知するタイミングが到来したときである。したがって、遊技機情報通知要求フラグの「D0」及び「D1」ビットの双方を「1」にする。
In step S729, a gaming machine performance information notification request flag is set. This process stores "1" in the "D0" bit of the gaming machine information notification request flag. In the next step S730, a gaming machine installation information notification request flag is set. This process stores "1" in the "D1" bit of the gaming machine information notification request flag.
That is, when it is determined that the time of the gaming machine information notification timer C has elapsed, a period of "180" seconds has arrived, and since a period of "180" seconds includes a period of "60" seconds, the timing for notifying the gaming machine performance information has arrived, and the timing for notifying the gaming machine installation information has arrived. Therefore, both the "D0" and "D1" bits of the gaming machine information notification request flag are set to "1".

これに対し、ステップS726において遊技機情報通知タイマBの時間が経過したと判断され、かつ、遊技機情報通知タイマCの時間が経過していないと判断されたときは、「60」秒の周期(遊技機設置情報を通知するタイミング)が到来しているが、「180」秒の周期(遊技機性能情報を通知するタイミング)が到来していないときである。したがって、この場合には、ステップS729の処理を実行せず、ステップS730の処理のみを実行し、遊技機情報通知要求フラグの「D1」ビットだけを「1」にする。 In contrast, when it is determined in step S726 that the time set by gaming machine information notification timer B has elapsed and that the time set by gaming machine information notification timer C has not elapsed, this means that the 60-second period (the timing for notifying gaming machine installation information) has arrived, but the 180-second period (the timing for notifying gaming machine performance information) has not arrived. Therefore, in this case, the processing of step S729 is not executed, and only the processing of step S730 is executed, and only the "D1" bit of the gaming machine information notification request flag is set to "1."

このように、遊技機設置情報を送信するタイミング、及び遊技機性能情報を送信するタイミングをフラグで管理するため、ホールコン・不正監視情報と、遊技機設置情報と、遊技機性能情報とを送信する処理を簡略化できる。換言すれば、各種情報に対応したタイマを連動させることで、個別に管理することなく送信することが可能となる。さらに、ホールコン・不正監視情報と、遊技機設置情報と、遊技機性能情報とを送信するためのタイマの計測開始タイミングがずれることがないため、正確に送信することが可能となる。 In this way, the timing for transmitting gaming machine installation information and the timing for transmitting gaming machine performance information are managed by flags, so the process for transmitting hall control/fraud monitoring information, gaming machine installation information, and gaming machine performance information can be simplified. In other words, by linking the timers corresponding to various information, it becomes possible to transmit without managing them individually. Furthermore, there is no deviation in the timing for starting the timers for transmitting hall control/fraud monitoring information, gaming machine installation information, and gaming machine performance information, so accurate transmission is possible.

次のステップS731では、遊技機設置情報の通知要求があるか否かを判断する。ここでは、遊技機設置情報通知要求フラグがセットされているか否かを判断する。したがって、遊技機情報通知要求フラグの「D1」ビットが「1」であれば遊技機設置情報の通知要求があると判断し、遊技機情報通知要求フラグの「D1」ビットが「1」でなければ遊技機設置情報の通知要求がないと判断する。
遊技機設置情報の通知要求があると判断したときはステップS734に進み、遊技機設置情報の通知要求がないと判断したときはステップS732に進む。
ステップS732では、遊技機性能情報の通知要求があるか否かを判断する。ここでは、遊技機性能情報通知要求フラグがセットされているか否かを判断する。したがって、遊技機情報通知要求フラグの「D0」ビットが「1」であれば遊技機性能情報の通知要求があると判断し、遊技機情報通知要求フラグの「D0」ビットが「1」でなければ遊技機性能情報の通知要求がないと判断する。
遊技機性能情報の通知要求があると判断したときはステップS736に進み、遊技機性能情報の通知要求がないと判断したときはステップS733に進む。
In the next step S731, it is determined whether or not there is a request for notification of gaming machine installation information. Here, it is determined whether or not the gaming machine installation information notification request flag is set. Therefore, if the "D1" bit of the gaming machine information notification request flag is "1", it is determined that there is a request for notification of gaming machine installation information, and if the "D1" bit of the gaming machine information notification request flag is not "1", it is determined that there is no request for notification of gaming machine installation information.
If it is determined that there is a request for notification of gaming machine installation information, the process proceeds to step S734, and if it is determined that there is no request for notification of gaming machine installation information, the process proceeds to step S732.
In step S732, it is determined whether or not there is a request for notification of gaming machine performance information. Here, it is determined whether or not the gaming machine performance information notification request flag is set. Therefore, if the "D0" bit of the gaming machine information notification request flag is "1", it is determined that there is a request for notification of gaming machine performance information, and if the "D0" bit of the gaming machine information notification request flag is not "1", it is determined that there is no request for notification of gaming machine performance information.
If it is determined that there is a request for notification of gaming machine performance information, the process proceeds to step S736, and if it is determined that there is no request for notification of gaming machine performance information, the process proceeds to step S733.

ステップS733では、ホールコン・不正監視情報の送信処理を実行する。ここでは、遊技媒体数制御基板100のRWM103に記憶されているホールコン・不正監視情報を取得し、当該情報を送信用レジスタに記憶し、当該情報を送信する。そして、送信後、本フローチャートによる処理を終了する。
なお、ステップS722において、遊技機情報通知タイマAの更新前の値が「0」であると判断したときは、遊技機情報通知タイマBや遊技機情報通知タイマCの時間が経過したか否かの判断(ステップS726やステップS728の処理)を実行することなく、ホールコン・不正監視情報の送信処理を実行する。その理由は、遊技機情報通知タイマAの更新前の値が「0」であるのは、電源投入直後の最初の割込み処理での減算処理時に限られるからである。換言すれば、電源投入直後の最初の割込み処理での減算処理時に、「60」秒や「180」秒が経過していることはあり得ないからである。このような場合には、遊技機情報通知タイマBや遊技機情報通知タイマCの時間が経過したか否かの判断を実行することなくホールコン・不正監視情報の送信処理を実行することで、処理の迅速化(送信処理の高速化)を図ることができる。
In step S733, a process of transmitting the hole control and fraud monitoring information is executed. Here, the hole control and fraud monitoring information stored in the RWM 103 of the game media count control board 100 is acquired, the information is stored in a transmission register, and the information is transmitted. After transmission, the process according to this flowchart is terminated.
In addition, when it is determined in step S722 that the value of the gaming machine information notification timer A before the update is "0", the transmission process of the hall control/fraud monitoring information is executed without executing the determination of whether the time of the gaming machine information notification timer B or the gaming machine information notification timer C has elapsed (the processing of step S726 or step S728). The reason is that the value of the gaming machine information notification timer A before the update is "0" only at the time of the subtraction process in the first interrupt processing immediately after the power is turned on. In other words, it is impossible that "60" seconds or "180" seconds have elapsed at the time of the subtraction process in the first interrupt processing immediately after the power is turned on. In such a case, the transmission process of the hall control/fraud monitoring information is executed without executing the determination of whether the time of the gaming machine information notification timer B or the gaming machine information notification timer C has elapsed, thereby making it possible to speed up the processing (speed up the transmission process).

また、ステップS731で遊技機設置情報の通知要求があるか否かを判断し、遊技機設置情報の通知要求がないと判断したときは、ステップS732に進んで遊技機性能情報の通知要求があるか否かを判断する処理順序となっている。このような処理順序にすることにより、遊技機設置情報通知要求フラグと遊技機性能情報通知要求フラグの両方がセットされている状況(「180」秒周期が到来した状況)においては、先に、遊技機設置情報の通知要求があるか否かを判断することにより、遊技機性能情報の送信処理よりも先に遊技機設置情報の送信処理を実行できる(優先できる)ように構成している。 In addition, in step S731, it is determined whether or not there is a request for notification of gaming machine installation information, and if it is determined that there is no request for notification of gaming machine installation information, the process proceeds to step S732 to determine whether or not there is a request for notification of gaming machine performance information. By using such a processing order, in a situation where both the gaming machine installation information notification request flag and the gaming machine performance information notification request flag are set (a situation where the "180" second period has arrived), it is first determined whether or not there is a request for notification of gaming machine installation information, so that the transmission process of the gaming machine installation information can be executed (given priority) before the transmission process of the gaming machine performance information.

さらにまた、上述したように、ステップS733におけるホールコン・不正監視情報の送信では、その時点での最新の情報が送信される。
たとえば、ホールコン・不正監視情報に含まれる(総)遊技媒体数は、送信時点における遊技媒体数記憶手段103a(_NB_MEDAL )に記憶されている情報を送信する。換言すれば、ホールコン・不正監視情報の送信タイミングである「300」msごとの送信タイミングにおいて遊技機設置情報や遊技機性能情報の送信タイミングと重なった場合には、遊技機設置情報や遊技機性能情報の送信が優先されるため、当該タイミングではホールコン・不正監視情報を送信せず、次の「300」ms経過後(遊技機設置情報の送信タイミングと重なった場合)又は「600」ms経過後(遊技機設置情報及び遊技機性能情報の送信タイミングと重なった場合)にホールコン・不正監視情報を送信する。この「「300」ms経過後又は「600」ms経過後に送信するホールコン・不正監視情報」については、遊技機設置情報の送信タイミングと重なった時点でのホールコン・不正監視情報ではなく、「300」ms経過後又は「600」ms経過後にホールコン・不正監視情報を送信するタイミングで取得したホールコン・不正監視情報である。したがって、ホールコン・不正監視情報の送信タイミングが遅れても、最新の情報を送信することが可能となる。
Furthermore, as described above, when the hole control/tampering monitoring information is transmitted in step S733, the latest information at that time is transmitted.
For example, the (total) number of gaming media included in the hall control/fraud monitoring information is transmitted as information stored in the gaming media number storage means 103a (_NB_MEDAL) at the time of transmission. In other words, if the transmission timing of the hall control/fraud monitoring information, which is the transmission timing of every "300" ms, overlaps with the transmission timing of the gaming machine installation information or the gaming machine performance information, the transmission of the gaming machine installation information or the gaming machine performance information takes priority, so the hall control/fraud monitoring information is not transmitted at that timing, and the hall control/fraud monitoring information is transmitted after the next "300" ms has elapsed (if it overlaps with the transmission timing of the gaming machine installation information) or after "600" ms has elapsed (if it overlaps with the transmission timing of the gaming machine installation information and the gaming machine performance information). This "hall control/fraud monitoring information transmitted after 300 ms or 600 ms" is not the hall control/fraud monitoring information at the time when it overlaps with the timing of transmitting the gaming machine installation information, but the hall control/fraud monitoring information obtained at the timing of transmitting the hall control/fraud monitoring information after 300 ms or 600 ms. Therefore, even if the timing of transmitting the hall control/fraud monitoring information is delayed, it is possible to transmit the latest information.

また、ホールコン・不正監視情報の送信処理が終了した後は、通番を更新(「1」加算)する。当該通番も、計数通番等と同様に、電源復帰直後の送信時には通番として「0」を送信し、それ以降は、「1」~「255」のいずれかを送信できるように(「1」~「255」を循環するように)更新している。この通番は、ホールコン・不正監視情報、遊技機設置情報、遊技機性能情報の3つの情報のうちいずれかを送信したときに更新される通番である。換言すれば、ホールコン・不正監視情報、遊技機設置情報、遊技機性能情報で同じ通番を用いているため、電源が投入されている状況下においては、「300」msの周期で通番が更新されるように構成されている。 After the transmission process of the hall control/fraud monitoring information is completed, the serial number is updated (increased by "1"). As with the counting serial number, the serial number is updated so that "0" is transmitted as the serial number when transmitting immediately after the power is restored, and thereafter any of "1" to "255" can be transmitted (so that it cycles through "1" to "255"). This serial number is updated when any of the three pieces of information, hall control/fraud monitoring information, gaming machine installation information, and gaming machine performance information, is transmitted. In other words, since the same serial number is used for the hall control/fraud monitoring information, gaming machine installation information, and gaming machine performance information, the serial number is configured to be updated every "300" ms when the power is on.

ステップS731からステップS734に進むと、遊技機設置情報の送信処理を実行する。このときに送信する内容は、このタイミングで取得した遊技媒体数制御基板100に記憶されている情報である。次にステップS735に進み、遊技機設置情報通知要求フラグをクリアする。具体的には、遊技機情報通知要求フラグの「D1」ビットを「0」にする。また、遊技機設置情報の送信処理が終了した後には、通番を更新(「1」加算)する。そして本フローチャートによる処理を終了する。
一方、ステップS732からステップS736に進むと、遊技機性能情報の送信処理を実行する。このときに送信する内容は、このタイミングで取得した遊技媒体数制御基板100に記憶されている情報である。次にステップS735に進み、遊技機性能情報通知要求フラグをクリアする。具体的には、遊技機情報通知要求フラグの「D0」ビットを「0」にする。また、遊技機性能情報の送信処理が終了した後には、通番を更新(「1」加算)する。そして本フローチャートによる処理を終了する。
When the process proceeds from step S731 to step S734, a transmission process of the gaming machine installation information is executed. The content to be transmitted at this time is the information stored in the gaming media count control board 100 that was acquired at this timing. Next, the process proceeds to step S735, where the gaming machine installation information notification request flag is cleared. Specifically, the "D1" bit of the gaming machine information notification request flag is set to "0". Furthermore, after the transmission process of the gaming machine installation information is completed, the serial number is updated ("1" is added). Then, the process according to this flowchart ends.
On the other hand, when the process proceeds from step S732 to step S736, a transmission process of the gaming machine performance information is executed. The content to be transmitted at this time is the information stored in the gaming media count control board 100 that was acquired at this timing. Next, the process proceeds to step S735, where the gaming machine performance information notification request flag is cleared. Specifically, the "D0" bit of the gaming machine information notification request flag is set to "0". Furthermore, after the transmission process of the gaming machine performance information is completed, the serial number is updated ("1" is added). Then, the process according to this flowchart ends.

続いて、遊技機情報通知タイマA~Cと、主制御基板50のRWM53に記憶された情報との関係について説明する。
遊技機情報通知タイマA~Cの各記憶領域は、上述したように、遊技媒体数制御基板100のRWM103に設けられている。そして、電源投入時の初期化処理により、これらの記憶領域はクリア(「0」が記憶)される。
一方、遊技媒体数制御基板100のRWM103には、役比モニタ113の点灯制御に必要なデータ記憶領域として、上記で説明したデータ記憶領域以外に、たとえば以下のようなデータ記憶領域が設けられている。
「400」遊技回数カウンタ(「400」遊技をカウントするためのカウンタ)
総付与数リングバッファ「0」~「14」(それぞれ、「400」遊技間の総付与数をカウントするバッファ)
連続役物付与数リングバッファ「0」~「14」(それぞれ、「400」遊技間の連続役物付与数をカウントするバッファ)
役物付与数リングバッファ「0」~「14」(それぞれ、「400」遊技間の役物付与数をカウントするバッファ)
総遊技回数カウンタ(総遊技回数のカウント値の記憶領域)
有利区間遊技回数カウンタ(有利区間の遊技回数の記憶領域)
総付与数カウンタ(総付与数のカウント値の記憶領域)
指示付与数カウンタ(指示機能作動時における付与数の記憶領域)
連続役物付与数カウンタ(連続役物作動時における付与数の記憶領域)
役物付与数カウンタ(役物作動時における付与数の記憶領域)
指示込役物比率データ(算出した指示込役物比率の記憶領域)
有利区間比率データ(算出した有利区間比率の記憶領域)
連続役物比率データ(算出した連続役物比率の記憶領域)
役物比率データ(算出した役物比率の記憶領域)
役物等状態比率データ(算出した役物等状態比率の記憶領域)
点滅切替え時間(点滅切替え時間に係るカウント値の記憶領域)(上述)
点滅切替えフラグ(点灯又は消灯を判断するフラグの記憶領域)(上述)
なお、上記のデータ記憶領域は、役比モニタ113の点灯制御に必要なデータ記憶領域の一部であり、上記に限定されるものではない。
Next, the relationship between the gaming machine information notification timers A to C and the information stored in the RWM 53 of the main control board 50 will be described.
As described above, each of the memory areas of the gaming machine information notification timers A to C is provided in the RWM 103 of the gaming media count control board 100. These memory areas are cleared ("0" is stored) by the initialization process when the power is turned on.
On the other hand, in the RWM 103 of the game medium number control board 100, in addition to the data memory areas described above, for example, the following data memory areas are provided as data memory areas necessary for controlling the lighting of the role ratio monitor 113.
"400" game number counter (a counter for counting "400" games)
Total award number ring buffer "0" to "14" (each a buffer that counts the total award number between "400" games)
Consecutive feature award number ring buffer "0" to "14" (each a buffer that counts the number of consecutive feature awards between "400" games)
Ring buffer for number of bonus items given "0" to "14" (each buffer counts the number of bonus items given between "400" games)
Total number of games played counter (storage area for counting the total number of games played)
Counter for counting number of times played in favorable zone (storage area for counting number of times played in favorable zone)
Total number of grants counter (storage area for the count value of the total number of grants)
Instruction number counter (storage area for the number of instructions given when the instruction function is activated)
Consecutive feature grant number counter (storage area for the number of grants when continuous features are activated)
Number of bonuses counter (storage area for the number of bonuses when bonuses are activated)
Indicated role ratio data (storage area for calculated indicated role ratio)
Advantageous zone ratio data (storage area for calculated advantageous zone ratio)
Continuous feature ratio data (calculated continuous feature ratio storage area)
Reel ratio data (storage area for calculated reel ratio)
Reel state ratio data (storage area for calculated reel state ratio)
Blink switching time (storage area for count value related to blink switching time) (described above)
Blinking switch flag (storage area for the flag that determines whether the light is on or off) (described above)
The above data storage area is a part of the data storage area required for controlling the lighting of the role ratio monitor 113, and is not limited to the above.

上記の各記憶領域のうち、リングバッファ、遊技回数カウンタ、付与数カウンタ、比率データの各記憶領域は、電源のオン/オフや、設定変更処理では初期化されない。電源のオン/オフや、設定変更処理が行われたとしても、過去の遊技履歴を反映させた正しい比率表示を行うためである。
ただし、RWM異常エラーのような復帰不可能エラーが発生した場合には、上記の記憶領域をすべて初期化する。復帰後に不正なデータを残さないようにするためである。
一方、点滅切替え時間及び点滅切替えフラグは、電源のオン/オフや設定変更処理により初期化(クリア)する。これにより、電源投入時は、毎回、テストパターンの表示を「4800」ms実行することができる。また、電源投入後において、点滅表示を行う場合でも、最初の点灯「3」秒間から開始することができる。
Of the above storage areas, the ring buffer, game play counter, award counter, and ratio data storage areas are not initialized when the power is turned on/off or when settings are changed. This is because the correct ratio is displayed reflecting the past game history even when the power is turned on/off or settings are changed.
However, if an unrecoverable error such as an RWM abnormal error occurs, all of the above storage areas are initialized so that no invalid data remains after recovery.
On the other hand, the blinking switching time and the blinking switching flag are initialized (cleared) by turning the power on/off or changing the settings. This allows the test pattern to be displayed for 4800 ms every time the power is turned on. Also, even if the blinking display is to be performed after the power is turned on, it can start from the first lighting of 3 seconds.

また、主制御基板50のRWM53には、図29で示したベット数記憶手段53a、付与数記憶手段53b以外に、たとえば以下のようなデータの記憶領域が設けられている。
入力ポートレベルデータ(各スイッチが操作されている状態であるか否かを判断するデータの記憶領域)
入力ポート立ち上がりデータ(各スイッチが操作されたか否かを判断するデータの記憶領域)
区間種別番号(有利区間を管理するための番号の記憶領域)
MYカウンタ(差数の記憶領域)
入賞及びリプレイ条件装置番号(当該遊技で作動する賞及びリプレイ条件装置の番号の記憶領域)
役物条件装置番号(当該遊技で作動する役物条件装置の番号の記憶領域)
最小遊技期間(1遊技の最小遊技期間(「4.1」秒)を監視するためのタイマ値の記憶領域)
遊技待機表示時間(遊技待機に移行するまでの時間を計測するタイマ値の記憶領域)
なお、上記のデータ記憶領域は、RWM53のデータ記憶領域の一部であり、上記に限定されるものではない。
In addition, the RWM 53 of the main control board 50 is provided with storage areas for data such as those listed below, in addition to the bet number storage means 53a and the award number storage means 53b shown in FIG.
Input port level data (storage area for data that determines whether each switch is in an operated state)
Input port rising edge data (storage area for data to determine whether each switch has been operated)
Section type number (storage area for numbers to manage advantageous sections)
MY counter (storage area for difference number)
Winning and replay condition device number (storage area for the winning and replay condition device numbers that operate in the game)
Device number (storage area for the number of the device that operates in the game)
Minimum play period (a storage area for a timer value for monitoring the minimum play period (4.1 seconds) of one game)
Game standby display time (storage area for the timer value that measures the time until transition to game standby)
The above data storage area is a part of the data storage area of the RWM 53, and is not limited to the above.

また、第2実施形態の遊技機10は、メダルレス遊技機であるので、有体物としてのメダルを用いる遊技機で設けられていた、たとえば以下の記憶領域は、設けられていない。
ブロッカ信号(ブロッカのオン/オフの記憶領域)
ホッパーモータ駆動信号(ホッパーモータのオン/オフの記憶領域)
払出しセンサチェック時間(メダル詰まりを検出するタイマ値の記憶領域)
ブロッカ監視時間(ブロッカのオン/オフの待機時間を示すタイマ値の記憶領域)
メダル払出し制御時間(メダル払出し装置の制御時間を示すタイマ値の記憶領域)
Furthermore, since the gaming machine 10 of the second embodiment is a medal-less gaming machine, it is not provided with, for example, the following memory areas which are provided in gaming machines which use medals as tangible objects.
Blocker signal (blocker on/off storage area)
Hopper motor drive signal (hopper motor on/off storage area)
Payout sensor check time (storage area for timer value to detect coin jam)
Blocker monitoring time (storage area for the timer value indicating the waiting time for the blocker to be turned on/off)
Medal payout control time (storage area for timer values indicating the control time of the medal payout device)

以上のRWM53の記憶領域において、たとえば、最小遊技時間は、電源のオン/オフにより初期化されない。したがって、最初遊技時間の計測途中で電源がオフにされたときは、その後に電源が投入されると、最小遊技時間の計測を再開し、最小遊技時間を経過したと判断したときは、遊技の開始(リール31の回転開始)を許可する。
このため、最小遊技時間と、遊技機情報通知タイマA~Cとは、いずれも時間を計測するためのタイマ値を記憶する点で共通するが、電源のオン/オフにより初期化されるか否かは、相違する。
In the above-mentioned memory area of the RWM 53, for example, the minimum play time is not initialized by turning the power on/off. Therefore, if the power is turned off during the measurement of the first play time, the measurement of the minimum play time is resumed when the power is turned on thereafter, and when it is determined that the minimum play time has elapsed, the start of the game (the start of the rotation of the reel 31) is permitted.
For this reason, the minimum playing time and gaming machine information notification timers A to C are common in that they all store timer values for measuring time, but differ in whether or not they are initialized when the power is turned on/off.

以上、本発明の第2実施形態について説明したが、本発明は、上述した内容に限定されるものではなく、たとえば以下のような種々の変形が可能である。
(1)第2実施形態において、遊技媒体数制御基板100と接続端子板130を介して遊技機10と貸出ユニット200とを通信可能としているがこれに限らず、主制御基板50と接続端子板130とを接続し、主制御基板50と接続端子板130を介して遊技機10と貸出ユニット200とを通信可能としてもよい。上記のように構成し、遊技媒体数制御基板100を搭載しなければ、生産コストを下げることができる。
なお、この場合には、遊技媒体数制御基板100が制御する処理はすべて主制御基板50が行うこととなる。また、主制御基板50の機能と遊技媒体数制御基板100の機能とを同一の基板で実現する場合は、主制御基板50の機能を制御するCPU55と遊技媒体数制御基板100の機能を制御するCPU105とを別個に備えることで、上述した実施形態と同様な処理を実現することが可能となる。
Although the second embodiment of the present invention has been described above, the present invention is not limited to the above-mentioned content, and various modifications such as those described below are possible.
(1) In the second embodiment, the gaming machine 10 and the lending unit 200 are capable of communicating with each other via the gaming media number control board 100 and the connection terminal board 130, but this is not limiting, and the main control board 50 and the connection terminal board 130 may be connected, and the gaming machine 10 and the lending unit 200 may be capable of communicating with each other via the main control board 50 and the connection terminal board 130. By configuring as described above and not installing the gaming media number control board 100, production costs can be reduced.
In this case, all of the processing controlled by the game media number control board 100 is performed by the main control board 50. When the functions of the main control board 50 and the game media number control board 100 are realized on the same board, a CPU 55 that controls the functions of the main control board 50 and a CPU 105 that controls the functions of the game media number control board 100 can be separately provided to realize processing similar to that of the above-mentioned embodiment.

(2)上記実施形態では、「60」秒ごとに送信する遊技機設置情報を第1優先とし、次に、「180」秒ごとに送信する遊技機性能情報を第2優先とした。しかし、これは例示であり、たとえば「T1」秒ごとに送信する遊技機情報通知1と、「T2」秒(T2>T1)ごとに送信する遊技機情報通知2とを有する場合に、遊技機情報通知2を遊技機情報通知1よりも優先して送信する仕様であってもよい。 (2) In the above embodiment, the gaming machine installation information transmitted every "60" seconds is given first priority, followed by the gaming machine performance information transmitted every "180" seconds as second priority. However, this is merely an example, and for example, in the case of having gaming machine information notification 1 transmitted every "T1" seconds and gaming machine information notification 2 transmitted every "T2" seconds (T2 > T1), the specifications may be such that gaming machine information notification 2 is transmitted with priority over gaming machine information notification 1.

(3)主制御基板50のRWM53や、遊技媒体数制御基板100のRWM103の記憶領域は、一般に、使用領域内と使用領域外とに分けられている。
ここで、「使用領域内」とは、RWMの記憶領域中、遊技の進行に関係するデータを記憶するための領域を指す。
一方、「使用領域外」とは、RWMの記憶領域中、遊技の進行に関係しないデータを記憶するための領域を指す。
したがって、役比モニタ113の表示制御に関するデータは、遊技の進行に関係しないデータであることから、RWMの使用領域外に記憶されるのが一般的である。
たとえば、主制御基板50で役比モニタの表示制御を実行する場合には、RWM53の使用領域外に、役比モニタの表示制御に関するデータが記憶される。これにより、RWM53の使用領域内の記憶容量を圧迫しようにすることができる。
(3) The memory area of the RWM 53 of the main control board 50 and the RWM 103 of the game media count control board 100 is generally divided into an area within the usage region and an area outside the usage region.
Here, "within the area of use" refers to an area in the memory area of the RWM for storing data related to the progress of the game.
On the other hand, "outside the area in use" refers to an area in the memory area of the RWM for storing data that is not related to the progress of the game.
Therefore, since data relating to the display control of the role ratio monitor 113 is data that is not related to the progress of the game, it is generally stored outside the area used by the RWM.
For example, when the main control board 50 executes the display control of the role ratio monitor, data related to the display control of the role ratio monitor is stored outside the usage area of the RWM 53. This makes it possible to reduce the storage capacity in the usage area of the RWM 53.

しかし、これに限らず、遊技媒体数制御基板100で役比モニタ113の表示制御を実行する場合には、役比モニタ113の表示制御に関するデータによってRWM103の使用領域内の記憶容量を圧迫するおそれが少ないことから、役比モニタ113の表示制御に関するデータ記憶領域を、RWM103の使用領域内に設けることも可能である。
(4)上記実施形態では、遊技機10として、スロットマシン(回胴式遊技機)の例をしめしたが、これに限らず、カジノマシン等の様々な遊技用の機種に適用することが可能である。
However, not limited to this, when the display control of the role ratio monitor 113 is executed by the gaming medium number control board 100, since there is little risk that the data related to the display control of the role ratio monitor 113 will put a strain on the memory capacity in the usage area of the RWM 103, it is also possible to provide a data memory area related to the display control of the role ratio monitor 113 within the usage area of the RWM 103.
(4) In the above embodiment, a slot machine (a reel-type gaming machine) was used as an example of the gaming machine 10. However, the present invention is not limited to this and can be applied to various gaming machines such as casino machines.

<第3実施形態>
第3実施形態は、メインCPU55の構造、及び命令に関するものである。第3実施形態では、第1実施形態と同様に、メイン制御基板50上に、RWM53、ROM54、メインCPU55を備える。
図42は、第3実施形態におけるメインCPU55の内蔵メモリを示す図である。図中、(A)は内蔵メモリの概要を示す図であり、(B)は内蔵メモリ内の記憶領域のうち内蔵レジスタ領域を示す図である。図42では、内蔵メモリのうち、本実施形態に係る部分のみを示しており、内蔵メモリのすべてを示しているわけではない。
ROM54の領域中、第1プログラム領域及び第1データ領域は、使用領域内(遊技の進行に関係するプログラム及びデータを記憶するための領域)に相当し、第2プログラム領域及び第2データ領域は、使用領域外(遊技の進行に関係しないプログラム及びデータを記憶するための領域。たとえば、役比モニタの表示制御に関するプログラム及びデータや、試験信号の出力制御に関するプログラム及びデータを記憶するための領域。)に相当する。
なお、「プログラム領域」は「制御領域」とも称される。
Third Embodiment
The third embodiment relates to the structure and instructions of the main CPU 55. In the third embodiment, the RWM 53, the ROM 54, and the main CPU 55 are provided on the main control board 50, similarly to the first embodiment.
Fig. 42 is a diagram showing the built-in memory of the main CPU 55 in the third embodiment. In the figure, (A) is a diagram showing an overview of the built-in memory, and (B) is a diagram showing the built-in register area of the storage area in the built-in memory. Fig. 42 shows only the part of the built-in memory that is related to this embodiment, and does not show the entire built-in memory.
Within the areas of ROM 54, the first program area and the first data area correspond to the area within use (area for storing programs and data related to the progress of the game), and the second program area and the second data area correspond to the area outside the use (area for storing programs and data not related to the progress of the game. For example, an area for storing programs and data relating to the display control of the role ratio monitor, and programs and data relating to the output control of the test signal.).
The "program area" is also called the "control area."

ROM54は、アドレス「0000h」~「2FFFh」の範囲を有し、「12K」バイトの記憶領域を有する。この記憶領域中、第1プログラム領域は「4.5K」バイト、第1データ領域は「3.0K」バイトに設定されている。
さらに、RWM53中、第1作業領域及び第1スタック領域は、第1プログラム領域に記憶された第1プログラム(遊技の進行に関係するプログラム)の実行中に使用される(更新される、参照される)記憶領域である。同様に、第2作業領域及び第2スタック領域は、第2プログラム領域に記憶された第2プログラム(遊技の進行に関係しないプログラム。たとえば、役比モニタの表示に関するプログラム。)の実行中に使用される(更新される、参照される)記憶領域である。
また、第1プログラム領域に記憶された第1プログラムでは、第2作業領域及び第2スタック領域のデータを更新できないが、第2作業領域及び第2スタック領域のデータを参照することは可能である。
同様に、第2プログラム領域に記憶された第2プログラムでは、第1作業領域及び第1スタック領域のデータを更新できないが、第1作業領域及び第1スタック領域のデータを参照することは可能である。
The ROM 54 has an address range of 0000h to 2FFFh and a storage area of 12K bytes. Within this storage area, the first program area is set to 4.5K bytes, and the first data area is set to 3.0K bytes.
Furthermore, in the RWM 53, the first working area and the first stack area are storage areas used (updated, referenced) during the execution of a first program (a program related to the progress of a game) stored in the first program area. Similarly, the second working area and the second stack area are storage areas used (updated, referenced) during the execution of a second program (a program not related to the progress of a game, for example, a program related to the display of a winning ratio monitor) stored in the second program area.
Furthermore, the first program stored in the first program area cannot update the data in the second working area and the second stack area, but can refer to the data in the second working area and the second stack area.
Similarly, the second program stored in the second program area cannot update the data in the first working area and the first stack area, but can reference the data in the first working area and the first stack area.

また、内蔵レジスタ領域(内蔵レジスタエリアと同義)には、レジスタバンク0とレジスタバンク1とを備える。そして、各レジスタバンク内に、メインレジスタ(表レジスタ)とサブレジスタ(裏レジスタ)とを備えている。メインレジスタは、いわゆる汎用レジスタを含むものである。
以下の説明では、サブレジスタについては割愛し、「レジスタ」と称するときはメインレジスタを指すものとする。
The built-in register region (synonymous with the built-in register area) includes a register bank 0 and a register bank 1. Each register bank includes a main register (front register) and a sub-register (back register). The main register includes a so-called general-purpose register.
In the following description, the sub-registers will be omitted, and the term "register" refers to the main register.

レジスタバンク0の各レジスタは、第1プログラム領域に記憶されたプログラムを実行しているときに使用されるレジスタである。同様に、レジスタバンク1の各レジスタは、第2プログラム領域に記憶されたプログラムを実行しているときに使用されるレジスタである。たとえば、Aレジスタ、Fレジスタ等は、それぞれ、レジスタバンク0及びレジスタバンク1の双方に設けられている。換言すれば、レジスタバンク0のAレジスタと、レジスタバンク1のAレジスタは、異なるレジスタである。 The registers in register bank 0 are registers that are used when a program stored in the first program area is being executed. Similarly, the registers in register bank 1 are registers that are used when a program stored in the second program area is being executed. For example, the A register, F register, etc. are each provided in both register bank 0 and register bank 1. In other words, the A register in register bank 0 and the A register in register bank 1 are different registers.

Aレジスタは、アキュムレータである。
Fレジスタは、フラグレジスタであり、その構造については後述する。
B、C、D、E、H、及びLレジスタは、汎用レジスタである。
IX及びIYレジスタは、インデックスレジスタであり、たとえばアドレスを指定するとき等に使用される。
SPレジスタは、スタックポインタレジスタである。SPレジスタは、データをスタック領域に退避させるときにどのアドレスに退避させるかを指定し、かつ、データをスタック領域から復帰させるときにどのアドレスのデータを復帰させるかを指定するレジスタである。
具体的には、レジスタバンク0のSPレジスタは、第1スタック領域(「F1D0h」~「F1FFh」の範囲)のアドレスを指定する。同様に、レジスタバンク1のSPレジスタは、第2スタック領域(「F3E8h」~「F3FFh」の範囲)のアドレスを指定する。
The A register is an accumulator.
The F register is a flag register, the structure of which will be described later.
The B, C, D, E, H, and L registers are general purpose registers.
The IX and IY registers are index registers, and are used, for example, when specifying an address.
The SP register is a stack pointer register that specifies the address to which data is saved when data is saved to the stack area, and specifies the address to which data is restored when data is restored from the stack area.
Specifically, the SP register of register bank 0 specifies an address in the first stack area (the range of "F1D0h" to "F1FFh"). Similarly, the SP register of register bank 1 specifies an address in the second stack area (the range of "F3E8h" to "F3FFh").

レジスタバンク0及び1の外には、I、R、PC、IFFレジスタを備える。
Iレジスタは、インタラプトレジストであり、割込み処理を実行するときに使用される。
Rレジスタは、リフレッシュレジスタであり、RWM53のリフレッシュに使用される。
PCレジスタは、プログラムカウンタであり、メモリ上の現在実行中のアドレスを保持するレジスタである。
In addition to register banks 0 and 1, there are I, R, PC, and IFF registers.
The I register is an interrupt register and is used when executing an interrupt process.
The R register is a refresh register and is used to refresh the RWM 53 .
The PC register is a program counter, which holds the currently executing address in memory.

IFFレジスタは、割込み許可レジスタである。IFFレジスタには、マスカブル割込み(INT)の許可及び禁止を決定するIFF1レジスタと、ノンマスカブル割込み(NMI)の処理後にIFF1を復帰させるためのIFF2レジスタとから構成されている。IFF2レジスタは、ノンマスカブル割込み処理からの復帰以外に、CALLEX命令(後述)の実行後のRETEX命令(後述)による復帰にも使用される。
また、ノンマルカブル割込み受付け時、又はCALLEX命令の実行時に、IFF1レジスタはクリア(割込み処理を禁止する値(「0」)に設定)され、マスカブル割込みは禁止され、IFF2レジスタはこのときの状態(ノンマルカブル割込み受付け時、又はCALLEX命令の実行時において割込み禁止状態であったか割込み許可状態であったか)を保持する。また、RET命令又はRETEX命令の実行により、IFF2レジスタ値がIFF1レジスタに移され、マスカブル割込みの受付け状態を以前の状態に復帰する。
The IFF register is an interrupt enable register. The IFF register is composed of an IFF1 register that determines whether a maskable interrupt (INT) is enabled or disabled, and an IFF2 register that is used to restore IFF1 after processing a non-maskable interrupt (NMI). The IFF2 register is used not only to return from non-maskable interrupt processing, but also to return by a RETEX instruction (described later) after executing a CALLEX instruction (described later).
Furthermore, when a non-markable interrupt is accepted or when the CALEX instruction is executed, the IFF1 register is cleared (set to a value ("0") that prohibits interrupt processing), maskable interrupts are prohibited, and the IFF2 register holds the state at that time (whether the interrupts were in the interrupt disabled state or interrupt enabled state when the non-markable interrupt was accepted or when the CALEX instruction was executed). Furthermore, by executing the RET instruction or RETEX instruction, the value of the IFF2 register is moved to the IFF1 register, and the acceptance state of maskable interrupts is restored to the previous state.

図43は、Fレジスタの詳細な構成を示す図である。Fレジスタは、1バイト(8ビット。図中、「D0」~「D7」で示す。)から構成されている。Fレジスタの構造は、以下の通りである。
(1)D0ビット:キャリーフラグ(C)
キャリーフラグは、演算の結果、桁上がり、又は桁下がりが発生すれば「1」になり、桁上がり、又は桁下がりが発生しなければ「0」になるフラグである。
(2)D1ビット:減算フラグ(N)
減算フラグは、サブトラクトフラグとも称する。直前に実行された命令が減算命令であれば「1」になり、減算命令でなければ「0」になるフラグである。
43 is a diagram showing the detailed configuration of the F register. The F register is made up of one byte (8 bits, shown as "D0" to "D7" in the diagram). The structure of the F register is as follows:
(1) D0 bit: Carry Flag (C)
The carry flag is a flag that becomes "1" if a carry or borrow occurs as a result of an operation, and becomes "0" if no carry or borrow occurs.
(2) D1 bit: Subtraction flag (N)
The subtraction flag is a flag that is set to "1" if the immediately preceding instruction is a subtraction instruction, and is set to "0" if the immediately preceding instruction is not a subtraction instruction.

(3)D2ビット:パリティ/オーバーフローフラグ(P/V)
パリティ/オーバーフローフラグは、演算結果中、「1」のビットの数(パリティ)が偶数であれば「1」になり、奇数であれば「0」になるフラグである。また、演算の結果、オーバーフローが生じたときは「1」になり、オーバーフローが生じなければ「0」になるフラグである。
(4)D3ビット:レジスタバンクモニタ(RB)
レジスタバンクモニタは、レジスタバンク0の使用中は「0」になり、レジスタバンク1の使用中は「1」になるフラグである。したがって、FレジスタのD3ビットを参照することにより、使用中のレジスタバンクが0又は1のいずれであるかを判断可能となる。
(3) D2 bit: Parity/Overflow Flag (P/V)
The parity/overflow flag is a flag that becomes "1" if the number of "1" bits (parity) in the calculation result is even, and becomes "0" if it is odd. Also, this flag becomes "1" if an overflow occurs as a result of the calculation, and becomes "0" if no overflow occurs.
(4) D3 bit: Register Bank Monitor (RB)
The register bank monitor is a flag that is set to "0" when register bank 0 is in use and to "1" when register bank 1 is in use. Therefore, by referring to the D3 bit of the F register, it is possible to determine whether register bank 0 or 1 is in use.

(5)D4ビット:ハーフキャリーフラグ(H)
ハーフキャリーフラグは、演算時、下位4ビットから上位4ビットに桁上がりがあったときは「1」になり、桁上がりがないときは「0」になるフラグである。
(6)D5ビット:第2ゼロフラグ(TZ)
第2ゼロフラグは、演算結果が「0」であるときは「1」になり、演算結果が「0」でなければ「0」になるフラグである。
(7)D6ビット:ゼロフラグ(Z)
ゼロフラグは、上記と同様に、演算結果が「0」であるときは「1」になり、演算結果が「0」でなければ「0」になるフラグである。
(8)D7ビット:サインフラグ(S)
サインフラグは、演算結果が正(プラス)であれば「0」になり、負(マイナス)であれば「1」になるフラグである。
(5) D4 bit: Half carry flag (H)
The half carry flag is a flag that becomes "1" when there is a carry from the lower 4 bits to the upper 4 bits during an arithmetic operation, and becomes "0" when there is no carry.
(6) D5 bit: Second Zero Flag (TZ)
The second zero flag is a flag that becomes "1" when the operation result is "0" and becomes "0" if the operation result is not "0".
(7) D6 bit: Zero Flag (Z)
As described above, the zero flag is a flag that becomes "1" when the operation result is "0" and becomes "0" if the operation result is not "0".
(8) D7 bit: Sign Flag (S)
The sign flag is a flag that becomes "0" if the operation result is positive, and becomes "1" if the operation result is negative.

図44は、第3実施形態におけるスタック領域を示す図である。図42に示すように、RWM53には、第1プログラム用の第1スタック領域(「F1D0h」~「F1FFh」)と、第2プログラム用の第2スタック領域(「F3E8h」~「F3FFh」)とを備える。
上述したように、第1スタック領域にデータを記憶する(積む、退避する、スタックする等とも称する。)場合には、最終アドレスから昇順(逆順)に積んでいく。たとえば、第1スタック領域に、最初に2バイトのデータを積む場合には、「F1FFh」及び「F1FEh」にデータを記憶する。
第2スタック領域についても上記と同様であり、最終アドレス(F3FFh)から順に積んでいく。
Fig. 44 is a diagram showing the stack area in the third embodiment. As shown in Fig. 42, the RWM 53 includes a first stack area ("F1D0h" to "F1FFh") for the first program and a second stack area ("F3E8h" to "F3FFh") for the second program.
As described above, when storing (also called piling, saving, stacking, etc.) data in the first stack area, the data is piled in ascending order (reverse order) from the last address. For example, when first piling two bytes of data in the first stack area, the data is stored at "F1FFh" and "F1FEh".
The same applies to the second stack area, with data being stacked in order starting from the final address (F3FFh).

また、スタック領域のうち、どのアドレスにデータを積むかを示す値を記憶しておくものが、SPレジスタである。SPレジスタは、図42に示すように、レジスタバンク0及び1の双方に設けられ、レジスタバンク0内のSPレジスタが、第1スタック領域のどのアドレスにデータを積むかを記憶する。同様に、レジスタバンク1内のSPレジスタが、第2スタック領域のどのアドレスにデータを積むかを記憶する。 The SP register stores a value indicating which address in the stack area data is to be stored at. As shown in FIG. 42, SP registers are provided in both register banks 0 and 1, and the SP register in register bank 0 stores which address in the first stack area data is to be stored at. Similarly, the SP register in register bank 1 stores which address in the second stack area data is to be stored at.

図44に示すように、レジスタバンク0のSPレジスタには、電源投入時に、「LD SP,F200h」の命令により、初期値「F200h」が記憶される。
次に、何らかのプログラム(CALL命令(「第1の呼出し命令」とも称する。)、CALLEX命令(「第2の呼出し命令」とも称する。)、PUSH命令(「レジスタの退避命令」とも称する。)等)が実行されて、第1スタック領域の「F1FFh」及び「F1FEh」の2バイト領域にデータを積んだ場合には、レジスタバンク0のSPレジスタ値は「F1FEh」に更新される。なお、図44の例では、「CALL mn」が実行された例を示している。
次に、第1スタック領域の「F1FFh」及び「F1FEh」に記憶されたデータを呼び出す場合には、何らかのプログラム(RET命令(「第1の戻り命令」とも称する。)、RETEX命令(「第2の戻り命令」とも称する。)、POP命令(「レジスタの復帰命令」とも称する。)等)を実行する。そして、当該命令により、「F1FEh」及び「F1FFh」の2バイト記憶領域に記憶されたデータが呼び出される。たとえば、RET命令(図44の例)によりCALL後の命令に戻る(スタック領域に保存されているプログラムカウンタのプログラムに戻る(戻り番地のプログラムに戻る))とともに、レジスタバンク0のSPレジスタ値は「F1FEh」から「F200h」に更新される。
As shown in FIG. 44, when power is turned on, the SP register of register bank 0 stores the initial value "F200h" in accordance with the instruction "LD SP, F200h."
Next, when some program (such as a CALL instruction (also referred to as a "first call instruction"), a CALLEX instruction (also referred to as a "second call instruction"), or a PUSH instruction (also referred to as a "register save instruction")) is executed and data is loaded into the two-byte area of "F1FFh" and "F1FEh" in the first stack area, the SP register value of register bank 0 is updated to "F1FEh". Note that the example in FIG. 44 shows an example in which "CALL mn" is executed.
Next, when the data stored in "F1FFh" and "F1FEh" in the first stack area is to be called, some program (RET instruction (also called "first return instruction"), RETEX instruction (also called "second return instruction"), POP instruction (also called "register restore instruction"), etc.) is executed. Then, the data stored in the 2-byte memory area of "F1FEh" and "F1FFh" is called by this instruction. For example, the RET instruction (example of FIG. 44) returns to the instruction after CALL (returns to the program of the program counter saved in the stack area (returns to the program of the return address)), and the SP register value of register bank 0 is updated from "F1FEh" to "F200h".

第2スタック領域についても上記と同様である。
レジスタバンク1のSPレジスタには、電源投入時に、「LD SP,F400h」の命令により、初期値「F400h」が記憶される。
次に、何らかのプログラム(CALL命令、PUSH命令等)が実行されて、第2スタック領域の「F3FFh」にデータを積んだ場合には、レジスタバンク1のSPレジスタ値は「F1FFh」に更新される。
次に、第2スタック領域の「F3FFh」に記憶されたデータを呼び出す場合には、何らかのプログラム(RET命令、RETEX命令、POP命令等)を実行する。そして、当該命令により、「F3FFh」の1バイト記憶領域に記憶されたデータが呼び出され、RET命令又はRETEX命令によりCALL後の命令に戻るとともに、レジスタバンク1のSPレジスタ値は「F3FFh」から「F400h」に更新される。
The same applies to the second stack area.
When power is turned on, the SP register of register bank 1 stores the initial value "F400h" in response to the command "LD SP, F400h."
Next, when some program (CALL instruction, PUSH instruction, etc.) is executed and data is pushed to "F3FFh" in the second stack area, the SP register value of register bank 1 is updated to "F1FFh".
Next, when calling the data stored in "F3FFh" of the second stack area, some program (RET instruction, RETEX instruction, POP instruction, etc.) is executed. Then, the data stored in the 1-byte storage area of "F3FFh" is called by the instruction, and the instruction after CALL is returned to by the RET instruction or RETEX instruction, and the SP register value of register bank 1 is updated from "F3FFh" to "F400h".

ここで、命令の詳細は後述するが、本実施形態においては、CALLEX命令は、第1プログラム(レジスタバンク0のとき)には有する命令であり、第2プログラム(レジスタバンク1のとき)には有さない命令である。
また、RETEX命令は、第1プログラム(レジスタバンク0のとき)には有さない命令であり、第2プログラム(レジスタバンク1のとき)には有する命令である。
Although details of the instructions will be described later, in this embodiment, the CALLEX instruction is an instruction that is included in the first program (when register bank 0) but is not included in the second program (when register bank 1).
Moreover, the RETEX instruction is not included in the first program (when the register bank is 0) but is included in the second program (when the register bank is 1).

図45は、第3実施形態における主要な命令を示す図である。第3実施形態において、命令の種類は数千にも及ぶが、このうち、図45では、代表的な3種類を示している。
図中(A)は、LDF命令を示す。
図45において、まず、命令文におけるオペコードとオペランドについて説明する。
図中(A)に示すように、命令が「LDF HL,mn」であるとき、前半の「LDF」をオペコード(関数)と称し、後半の「HL,mn」をオペランド(引数)と称する場合がある。LDF命令は、LD(ロード)命令の一態様(特殊形。なぜ特殊であるかについては後述する。)である。また、「HL」は、HLレジスタを示し、「mn」は、アドレスを示す。そして、「LDF HL,mn」の命令は、アドレス「mn」値をHLレジスタに記憶することを指示する命令である。
なお、後述するように、LDF命令は、アドレス値を所定のレジスタに記憶することを指示する命令に限らず、所定値(ただし、「所定値」は、所定の範囲内に限られる(後述)。)を所定のレジスタに記憶することを指示する命令の場合もある。
Fig. 45 is a diagram showing main commands in the third embodiment. In the third embodiment, there are several thousand types of commands, but Fig. 45 shows three representative types.
In the figure, (A) indicates an LDF instruction.
In FIG. 45, first, the opcode and operands in the command statement will be described.
As shown in (A) in the figure, when the instruction is "LDF HL, mn", the first half "LDF" may be called the opcode (function) and the latter half "HL, mn" may be called the operand (argument). The LDF instruction is one aspect of the LD (load) instruction (a special form. Why it is special will be explained later). Furthermore, "HL" indicates the HL register, and "mn" indicates the address. The instruction "LDF HL, mn" is an instruction that instructs storing the value of address "mn" in the HL register.
As will be described later, the LDF instruction is not limited to an instruction to store an address value in a specified register, but may also be an instruction to store a specified value (however, the "specified value" is limited to a specified range (described later)) in a specified register.

具体的には、たとえば「LDF HL,1200h」が実行されると、
1200h=0001/0010/0000/0000(4ビットごとに「/」を入れている。以下同じ。)
であるので、
Hレジスタ値=0001/0010
Lレジスタ値=0000/0000
となる。
Specifically, for example, when "LDF HL, 1200h" is executed,
1200h = 0001/0010/0000/0000 ("/" is inserted every 4 bits. The same applies below.)
Therefore,
H register value = 0001/0010
L register value = 0000/0000
It becomes.

さらにまた、LDF命令は、「1200h」~「1DFF」の範囲の値をレジスタ(この例ではHLレジスタ)に記憶する命令に限られる。それ以外のロード命令のオペコードは、「LDF」ではなく「LD」を用いる。
すなわち、
LDF HL,mn (mn=1200h~1DFFh)
LD HL,mn (mn≠1200h~1DFFh)
である。
Furthermore, the LDF instruction is limited to instructions that store a value in the range of "1200h" to "1DFF" in a register (the HL register in this example). The opcode for other load instructions is "LD" instead of "LDF".
That is,
LDF HL, mn (mn=1200h~1DFFh)
LD HL, mn (mn≠1200h~1DFFh)
It is.

図46は、LDF命令及びLD命令の態様を示す図である。図42に示すように、第1データ領域の範囲は、アドレス「1200h」~「1DF3h」である。したがって、第1データ領域のアドレスを指定するロード命令の場合には、すべてLDF命令で実行可能である。
これに対し、第2データ領域は、アドレス「2600h」~「2FBEh」の範囲である。したがって、第2データ領域のアドレスを指定するロード命令の場合には、オペコード「LDF」を使用することができず、オペコード「LD」を使用する。
図46中、(A)は、アドレス「1200h」~「1DF3h」の範囲(第1データ領域)を指定するLDF命令を示し、(B)は、アドレス「2600h」~「2FBEh」の範囲(第2データ領域)を指定するLD命令を示す。
Fig. 46 is a diagram showing the modes of the LDF command and the LD command. As shown in Fig. 42, the range of the first data area is from address "1200h" to "1DF3h". Therefore, in the case of a load command that specifies an address in the first data area, it can all be executed with the LDF command.
In contrast, the second data area is in the address range of "2600h" to "2FBEh." Therefore, in the case of a load instruction that specifies an address in the second data area, the opcode "LDF" cannot be used, and instead the opcode "LD" is used.
In FIG. 46, (A) shows an LDF command that specifies the address range from "1200h" to "1DF3h" (first data area), and (B) shows an LD command that specifies the address range from "2600h" to "2FBEh" (second data area).

また、ロード命令は、所定のアドレス値を所定のレジスタに記憶する命令に限らず、たとえばいずれかのレジスタ値を他のいずれかのレジスタに記憶する命令にも用いられる。
図46(C)は、LDF命令を用いて所定値「xy」(「1200h」~「1DFFh」の範囲内)をHLレジスタに記憶する命令である「LDF HL,xy」を示している。このように、「xy」の値が「1200h」~「1DFFh」の範囲内であるときは、当該値を所定レジスタに記憶する命令についても、LDF命令を用いることができる。
たとえば、タイマ値「5000(D)」(1388h)をHLレジスタに記憶する命令の場合には、「LDF HL,1388h」となる。
さらにまた、図46(D)は、LD命令を用いて所定のレジスタ値(この例ではHLレジスタ値)を他の所定のレジスタ(この例ではAレジスタ)に記憶する命令である「LD A,(HL)」を示している。所定のレジスタ値を他の所定のレジスタにコピーするような命令において、コピー元の所定のレジスタ値又は所定値が「1200h」~「1DFFh」の範囲外であるような場合には、(LDF命令ではなく)LD命令が用いられる。
Furthermore, the load instruction is not limited to an instruction for storing a specific address value in a specific register, but may also be used as an instruction for storing, for example, any register value in any other register.
46C shows "LDF HL, xy," which is an instruction to store a predetermined value "xy" (within the range of "1200h" to "1DFFh") in the HL register using the LDF instruction. In this way, when the value of "xy" is within the range of "1200h" to "1DFFh," the LDF instruction can also be used as an instruction to store the value in a predetermined register.
For example, in the case of a command to store a timer value "5000(D)" (1388h) in the HL register, the command would be "LDF HL, 1388h".
46D shows "LD A, (HL)", an instruction to store a specified register value (HL register value in this example) in another specified register (A register in this example) using the LD instruction. In an instruction to copy a specified register value to another specified register, if the specified register value or the specified value to be copied is outside the range of "1200h" to "1DFFh", the LD instruction (rather than the LDF instruction) is used.

また、「LDF HL,mn」や「LD HL,mn」のようなすべての命令は、実際には符号化されてROM54のプログラム領域に記憶される。
ここで、第3実施形態では、「LDF HL,mn」のコードサイズは2バイトであり、「LD HL,mn」のコードサイズは3バイトである。
まず、「LDF HL,mn」の命令の場合には、「mn」の範囲は、「1200h」~「1DFFh」であるが、「1200h」及び「1DFFh」(いずれも16進数)を、それぞれ10進数及び2進数で表すと、
1200h=4608(D)=0001/0010/0000/0000(B)
1DFFh=7679(D)=0001/1101/1111/1111(B)
となる。
Also, all instructions such as "LDF HL,mn" and "LD HL,mn" are actually encoded and stored in the program area of ROM 54.
In the third embodiment, the code size of "LDF HL,mn" is 2 bytes, and the code size of "LD HL,mn" is 3 bytes.
First, in the case of the instruction "LDF HL, mn", the range of "mn" is "1200h" to "1DFFh". If "1200h" and "1DFFh" (both in hexadecimal) are expressed in decimal and binary, respectively, they become
1200h=4608(D)=0001/0010/0000/0000(B)
1DFFh=7679(D)=0001/1101/1111/1111(B)
It becomes.

そして、「1200h」を基準値「0」としたとき、「1DFFh」は、「3070(D)」又は「1011/1111/1110(B)」(12ビット)となる。
そこで、LDF命令において、アドレス値を指定するためのオペコードでは、「1200h」を値「0」とする。これにより、アドレス値「mn」(mn=「1200h」~「1DFFh」)を指定するためには、12ビットで足りることとなる。
When "1200h" is taken as the reference value "0", "1DFFh" becomes "3070(D)" or "1011/1111/1110(B)" (12 bits).
Therefore, in the opcode for specifying the address value in the LDF instruction, "1200h" is set to a value of "0." This means that 12 bits are sufficient to specify the address value "mn"(mn="1200h" to "1DFFh").

また、命令のすべての数がたとえば「3000」であると仮定し、各命令ごとに固有の値を割り当てると仮定する。
この場合、
3000(D)=1011/1011/1000(B)(12ビット)
であるので、「0000/0000/0000(B)」~「1011/1011/1000(B)」に割り当てることができる。
そして、特に重要な命令、具体的にはたとえば使用頻度の高い命令の場合には、小さい値を割り当てる。本実施形態では、「LDF HL」のコード値を「1101」に割り当てる(4ビット)。
よって、「LDF HL」が4ビットであり、「mn」が12ビットであるので、合計で16ビットすなわち2バイトとなる。よって、「LDF HL,mn(mn=1200h~1DFFh)」のコードサイズは、2バイトとなる。
Also assume that the total number of instructions is, for example, "3000," and that a unique value is assigned to each instruction.
in this case,
3000(D) = 1011/1011/1000(B) (12 bits)
Therefore, they can be assigned to "0000/0000/0000(B)" to "1011/1011/1000(B)".
In the case of particularly important instructions, specifically, instructions that are used frequently, for example, a small value is assigned. In this embodiment, the code value of "LDF HL" is assigned to "1101" (4 bits).
Therefore, since "LDF HL" is 4 bits and "mn" is 12 bits, the total is 16 bits, or 2 bytes. Therefore, the code size of "LDF HL, mn (mn=1200h to 1DFFh)" is 2 bytes.

一方、ロード命令のうち、「mn」の範囲が「1200h」~「1DFFh」の範囲外である場合、特に、第2データ領域の範囲「2600h」~「2FBEh」を指定する場合には、以下のようになる。
第2データ領域の範囲のうち、アドレス値が最も大きいのは、「2FBEh」であるので、
「2FBEh」-「1200h」
=1DBEh
=1/1101/1011/1110(B)
となり、13ビットとなる。
すなわち、上記のように「1200h」を基準値「0」としたとき、「2FBEh」は13ビットで表すことができる。
そこで、「LD HL」をコード化したときには、上記「LDF HL」と同様に4ビットとし、「LD HL,mn」(mn≠1200h~1DFFh)については、「4+13=17ビット(3バイト)」で表す。
On the other hand, if the range of "mn" in the load command is outside the range of "1200h" to "1DFFh", particularly if the range of the second data area is specified, from "2600h" to "2FBEh", the following occurs:
Within the range of the second data area, the largest address value is "2FBEh", so
"2FBEh" - "1200h"
= 1 DBEh
=1/1101/1011/1110(B)
This results in 13 bits.
That is, when "1200h" is taken as the reference value "0" as described above, "2FBEh" can be expressed in 13 bits.
Therefore, when "LD HL" is coded, it is coded as 4 bits like the above "LDF HL", and "LD HL, mn" (mn ≠ 1200h to 1DFFh) is expressed as "4 + 13 = 17 bits (3 bytes)".

また、上述の他のロード命令、たとえば「LD A,(HL)」等のような場合でも、上記と同様に、コードサイズは3バイトとする。
なお、「LD HL,mn」のコードサイズが3バイトとするのであれば、「LD HL」については、必ずしも4ビットである必要はなく、11ビット以下であれば、「mn」(mn≠1200h~1DFFh)が13ビットであるから、これらの合計で24ビット(3バイト)以内に収めることが可能となる。
Also, in the case of other load instructions such as "LD A, (HL)" mentioned above, the code size is set to 3 bytes in the same manner as above.
If the code size of "LD HL, mn" is 3 bytes, then "LD HL" does not necessarily have to be 4 bits. If it is 11 bits or less, since "mn" (mn ≠ 1200h to 1DFFh) is 13 bits, it is possible to fit these together within 24 bits (3 bytes).

以上より、第3実施形態において、ロード命令のコードサイズは、
LDF HL,mn(mn=1200h~1DFFh):2バイト(16ビット)
LD HL,mn(mn≠1200h~1DFFh):3バイト(17ビット)
LD A,(HL)(「A」や「HL」は任意):3バイト
となる。
これにより、第1データ領域のアドレスを指定してHLレジスタに記憶する「LDF HL,mn(mn=1200h~1DFFh)」のコードサイズは、他のロード命令のコードサイズよりも1バイト少なくて済むので、第1プログラム領域の記憶容量を節約することが可能となる。
From the above, in the third embodiment, the code size of the load instruction is
LDF HL, mn (mn = 1200h to 1DFFh): 2 bytes (16 bits)
LD HL, mn (mn ≠ 1200h to 1DFFh): 3 bytes (17 bits)
LD A, (HL) ("A" or "HL" is optional): 3 bytes.
As a result, the code size of "LDF HL, mn (mn=1200h to 1DFFh)" which specifies an address in the first data area and stores it in the HL register is one byte less than the code size of other load instructions, making it possible to conserve storage capacity in the first program area.

特に、第1プログラム領域には、遊技の進行に関係するプログラムを記憶するので、第2プログラム領域に記憶するプログラム、換言すれば遊技の進行に関係しないプログラム(役比モニタに関するプログラム)よりも容量が増大しやすい。たとえば、遊技に関する抽選処理や、遊技状態を移行するための処理、リールを駆動するための処理、遊技の結果(停止表示した図柄組合せ)に応じて遊技価値(遊技媒体)を付与する処理などは、第1プログラムで実行している。そこで、第1プログラム領域に記憶するロード命令のうち、アドレス「1200h」~「1DFFh」を呼び出すロード命令のコードサイズを小さくすることによって、第1プログラム領域に、より多くのプログラムを記憶することが可能となる。
一方、第2プログラム領域に記憶されるプログラムのうち、第2データ領域内のアドレスを指定するロード命令のオペコードは、すべて「LD」で統一される。これにより、第2プログラム領域に記憶されるプログラムでは、プログラムソースの正当性の確認をより容易に行うことができる。換言すれば、プログラム容量(コードサイズ)の削減よりも、プログラムの見やすさを重視した設計とすることが可能となる。
In particular, since the first program area stores programs related to the progress of the game, the capacity of the first program area is more likely to increase than programs stored in the second program area, in other words, programs not related to the progress of the game (programs related to the winning ratio monitor). For example, lottery processing related to the game, processing for shifting the game state, processing for driving the reels, and processing for granting game value (game media) according to the game result (the combination of symbols displayed in a stopped state) are executed by the first program. Therefore, by reducing the code size of the load command that calls addresses "1200h" to "1DFFh" among the load commands stored in the first program area, it becomes possible to store more programs in the first program area.
On the other hand, among the programs stored in the second program area, the opcodes of the load instructions that specify addresses in the second data area are all unified as "LD". This makes it easier to check the validity of the program source in the programs stored in the second program area. In other words, it becomes possible to design programs that prioritize readability over reducing the program capacity (code size).

第2プログラムで参照するROM54のデータ領域は、「1200h」~「1DFFh」の範囲外である。したがって、第2プログラムで参照するROM54のデータ領域のアドレスを指定する際には、「LD HL,mn」(mn≠1200h~1DFF)を使用する。 The data area of ROM 54 referenced by the second program is outside the range of "1200h" to "1DFFh". Therefore, when specifying the address of the data area of ROM 54 referenced by the second program, "LD HL, mn" (mn ≠ 1200h to 1DFF) is used.

LD命令(LDをオペコードとした命令。「第1のロード命令」とも称する。)は、第1プログラムを構成する命令として複数有し、第2プログラムを構成する命令としても複数有する。しかし、LDF命令(LDFをオペコードとした命令。「第2のロード命令」又は「特殊ロード命令」とも称する。)は、第1プログラムを構成する命令として複数有するが、第2プログラムを構成する命令としては有さない。
また、LD命令であっても、2バイトデータをHLレジスタに記憶する命令とすることができる。しかし、LDF命令で2バイトデータをHLレジスタに記憶する方がコードサイズを小さくすることができる。ただし、LDF命令の場合には、2バイトデータの範囲に制限がある。
There are multiple LD instructions (an instruction with LD as the opcode, also called the "first load instruction") as instructions constituting the first program, and there are multiple LDF instructions (an instruction with LDF as the opcode, also called the "second load instruction" or "special load instruction") as instructions constituting the first program, but there are no LDF instructions (an instruction with LDF as the opcode, also called the "second load instruction" or "special load instruction") as instructions constituting the second program.
The LD instruction can also be used to store 2-byte data in the HL register. However, storing 2-byte data in the HL register using the LDF instruction can reduce the code size. However, the LDF instruction has a limit on the range of the 2-byte data.

上述したLDF命令及びLD命令は、スロットマシン(たとえば風営法上の回胴式遊技機)における各種処理でのみ適用される命令ではなく、ぱちんこ遊技機における汎用的な各種処理においても問題なく適用可能である。
ぱちんこ遊技機においても、スロットマシンと同様に、第1プログラム領域と第2プログラム領域を備えており、第1プログラム領域には遊技の進行に関係するプログラムを記憶し、第2プログラム領域には遊技の進行に関係しないプログラム(たとえば、ベース(通常時において「賞球払出数/総排出数×100」で算出される値を指す。以下同じ。)を表示するベースモニタに関するプログラム。)を記憶する。このため、第1プログラム領域の方が第2プログラム領域よりも容量が増大しやすい傾向にある。したがって、第1プログラム領域に記憶するプログラムにLDF命令を採用することによる容量圧縮効果が期待できる。
The above-mentioned LDF command and LD command are not only applicable to various processes in slot machines (for example, reel-type gaming machines under the Entertainment and Amusement Act), but can also be applied without problem to various general-purpose processes in pachinko gaming machines.
Pachinko gaming machines, like slot machines, are equipped with a first program area and a second program area, with the first program area storing programs related to the progress of the game and the second program area storing programs unrelated to the progress of the game (for example, a program relating to a base monitor that displays the base (which normally refers to a value calculated by "number of prize balls paid out / total number of balls dispensed x 100"; the same applies below). For this reason, the first program area tends to be larger in capacity than the second program area. Therefore, a capacity compression effect can be expected by adopting the LDF command in the program stored in the first program area.

また、ぱちんこ遊技機において第1プログラム領域に記憶されるプログラムとしては、たとえば、当否抽選に係る処理、特別図柄の変動停止制御に係る処理、特別図柄又は普通図柄の表示に係る処理、遊技情報(遊技状態、エラー状態、ベース等)の表示に係る処理、大当り制御に係る処理、各種可動物(大入賞口、開放延長機能を作動させる電動役物等)の可動制御に係る処理、払出制御に係る処理等が挙げられる。これらのプログラムに対して、LDF命令を使用することができる。
特に、ぱちんこ遊技機のベースモニタの表示制御と、スロットマシンの役比モニタの表示制御とでは、表示内容を算出する過程において違いはあるが、最終的に遊技情報をデータとして表示する点において類似する表示制御が行われる。
なお、上記に限らず、スロットマシン及びぱちんこ遊技のいずれにおいても、メインCPUで制御されるその他の処理でLDF命令を使用することは、もちろん可能である。
In addition, the programs stored in the first program area in a pachinko game machine include, for example, a process related to a winning/losing lottery, a process related to control of stopping the fluctuation of special symbols, a process related to displaying special symbols or normal symbols, a process related to displaying game information (game status, error status, base, etc.), a process related to jackpot control, a process related to movement control of various movable objects (such as a big prize opening and an electric device that activates an opening extension function), a process related to payout control, etc. The LDF command can be used for these programs.
In particular, although there are differences in the process of calculating the display content between the display control of the base monitor of a pachinko game machine and the display control of the role ratio monitor of a slot machine, the display control is similar in that both ultimately display game information as data.
It is of course possible to use the LDF command in other processes controlled by the main CPU in both slot machines and pachinko games, without being limited to the above.

説明を図45に戻す。
図45(B)は、CALLEX命令を示す。CALLEX命令は、コール(CALL、呼出し)命令の1つである。
「CALLEX mn」の命令が実行されると、
(1)その時点において割込み許可状態であるか割込み禁止状態であるかにかかわらず、ノンマスカブル割込み(NMI)及びマスカブル割込み(INT)を禁止し、
(2)レジスタバンクを「1」に切り替え、
(3)mnで指定されるアドレスにコールする(呼び出す)
ことを実行する。
本実施形態では、第1プログラム領域内のプログラムから第2プログラム領域内のプログラムを実行する際に、CALLEX命令を実行することによって、第2プログラム領域内のプログラムを実行可能とする。
Let us return to the explanation given in FIG.
45B shows a CALLEX instruction, which is one of the call instructions.
When the "CALLEX mn" command is executed,
(1) Disable non-maskable interrupts (NMI) and maskable interrupts (INT) regardless of whether the interrupts are enabled or disabled at that time.
(2) Switch the register bank to "1",
(3) Call (invoke) the address specified by mn
To carry out the task.
In this embodiment, when a program in a first program area is to be executed from a program in a second program area, the program in the second program area can be executed by executing a CALLEX command.

上述したロード命令では、mnの範囲に応じて、LDF命令又はLD命令のいずれかとしたが、第3実施形態のコール命令では、mnの範囲にかかわらず、CALLEX命令を使用する。CALLEX命令は、第1プログラムから第2プログラムを読み出すときに用いられる。
ここで、第2プログラム領域は、図42に示すように、アドレス「2000h」~「25FFh」の範囲である。そして、CALLEX命令では、アドレス「2000h」~「25FFh」のうち、アドレス「2000h」~「20FFh」の範囲を呼び出す場合の「CALLEX mn」のコードサイズは2バイトとなり、アドレス「2000h」~「20FFh」以外の範囲を呼び出す場合の「CALLEX mn」のコードサイズは、4バイトとなるように構成されている。
In the above-mentioned load instruction, either an LDF instruction or an LD instruction is used depending on the range of mn, but in the call instruction of the third embodiment, a CALLEX instruction is used regardless of the range of mn. The CALLEX instruction is used when reading the second program from the first program.
Here, the second program area is in the range of addresses "2000h" to "25FFh" as shown in Fig. 42. In the CALLEX instruction, the code size of "CALLEX mn" when calling the range of addresses "2000h" to "20FFh" among the addresses "2000h" to "25FFh" is 2 bytes, and the code size of "CALLEX mn" when calling a range other than the addresses "2000h" to "20FFh" is 4 bytes.

ここで、アドレス「2000h」~「20FFh」の範囲は、「FFh」、すなわち1バイトである。この場合に、アドレス値「2000h」のコード値を「0h」にする。これにより、アドレス値「20FFh」を呼び出すときのコード値を「FFh」にすることができるので、アドレス「2000h」~「20FFh」の範囲のいずれを呼び出す場合であっても、「mn」のコードサイズを1バイトに設定することができる。
また、「CALLEX」のオペコードをコード化する場合に、第3実施形態では、当該コードを「0100/1000」すなわち1バイトに設定する。これにより、「CALLEX mn」(mn=2000h~20FFh)のコードサイズを2バイトに設定することができる。
Here, the range of addresses "2000h" to "20FFh" is "FFh", i.e., 1 byte. In this case, the code value of the address value "2000h" is set to "0h". This allows the code value when calling up the address value "20FFh" to be "FFh", so the code size of "mn" can be set to 1 byte regardless of when any address in the range of "2000h" to "20FFh" is called.
In addition, when encoding the opcode of "CALLEX", in the third embodiment, the code is set to "0100/1000", that is, 1 byte. This allows the code size of "CALLEX mn" (mn=2000h to 20FFh) to be set to 2 bytes.

図47は、CALLEX命令の態様を示す図である。
図中(A)は、「CALLEX 2000h」を示す。この場合の「2000h」に対応するコード値は、上述したように「0000/0000」である。また、「mn」の範囲が「2000h」~「20FFh」である場合の「CALLEX」のコード値は、「0100/1000」である。したがって、「CALLEX 2000h」のコードは、
0100/1000/0000/0000
となる。
この命令が実行されると、第2プログラム領域のアドレス「2000h」の命令を呼び出す。
FIG. 47 is a diagram showing aspects of the CALLEX instruction.
In the figure, (A) shows "CALLEX 2000h". In this case, the code value corresponding to "2000h" is "0000/0000" as described above. Also, when the range of "mn" is "2000h" to "20FFh", the code value of "CALLEX" is "0100/1000". Therefore, the code of "CALLEX 2000h" is:
0100/1000/0000/0000
It becomes.
When this command is executed, it calls the command at address "2000h" in the second program area.

また、図中(B)は、「CALLEX 20FFh」を示す。この場合の「20FFh」に対応するコード値は、「1111/1111」である。また、上述と同様に、「mn」の範囲が「2000h」~「20FFh」である場合の「CALLEX」のコード値は、「0100/1000」である。したがって、「CALLEX 20FFh」のコードは、
0100/1000/1111/1111
となる。
この命令が実行されると、第2プログラム領域のアドレス「20FFh」の命令を呼び出す。
Also, (B) in the figure shows "CALLEX 20FFh". In this case, the code value corresponding to "20FFh" is "1111/1111". Also, as described above, when the range of "mn" is "2000h" to "20FFh", the code value of "CALLEX" is "0100/1000". Therefore, the code of "CALLEX 20FFh" is,
0100/1000/1111/1111
It becomes.
When this instruction is executed, it calls the instruction at address "20FFh" in the second program area.

さらにまた、図中(C)は、「CALLEX 2100h」を示す。ここで、「mn」が「20FFh」から「2100h」になると、桁上がりが生じ、「mn」を1バイトで表すことができなくなり、「mn」のコードサイズは2バイトとなる。「mn」=「2100h」の場合には、「mn」のコードは、
0000/0001/0000/0000
となる。
Furthermore, (C) in the figure shows "CALLEX 2100h". Here, when "mn" changes from "20FFh" to "2100h", a carry occurs, and "mn" cannot be expressed in one byte, so the code size of "mn" becomes two bytes. When "mn" = "2100h", the code of "mn" is
0000/0001/0000/0000
It becomes.

さらに、この場合の「CALLEX」のコードも異なる。「mn」の範囲が「2000h」~「20FFh」である場合の「CALLEX」のコードを1バイトとしたが、「mn」の範囲が「2100h」~「25FFh」であるときには、「CALLEX」のコードとして1バイトを用いずに2バイトとする。上述したように、オペコードを1バイトから構成する場合には、数千の命令のうち、256個に限られるため、「mn」の範囲が「2000h」~「20FFh」である場合の「CALLEX」のコードとして1バイトのコードを割り当てたが、「mn」の範囲が「2000h」~「20FFh」でない場合には、「CALLEX」のコードとして2バイトのコードを割り当てている。図47の例では、この場合の「CALLEX」のコードを、
1010/0000/1000/0000
としている。
よって、「mn」=「2100h」であるときの「CALLEX mn」のコードは、
1010/0000/1000/0000/0000/0001/0000/0000
となる。
この命令が実行されると、第2プログラム領域のアドレス「2100h」の命令を呼び出す。
Furthermore, the "CALLEX" code in this case is also different. When the "mn" range is "2000h" to "20FFh", the "CALLEX" code is 1 byte, but when the "mn" range is "2100h" to "25FFh", the "CALLEX" code is 2 bytes instead of 1 byte. As described above, when the opcode is composed of 1 byte, only 256 out of several thousand instructions are available. Therefore, when the "mn" range is "2000h" to "20FFh", a 1-byte code is assigned as the "CALLEX" code, but when the "mn" range is not "2000h" to "20FFh", a 2-byte code is assigned as the "CALLEX" code. In the example of FIG. 47, the "CALLEX" code in this case is as follows:
1010/0000/1000/0000
It states that:
Therefore, the code for "CALLEX mn" when "mn" = "2100h" is
1010/0000/1000/0000/0000/0001/0000/0000
It becomes.
When this command is executed, it calls the command at address "2100h" in the second program area.

さらに、図中(D)は、「CALLEX 25FFh」(第2プログラム領域の最後のアドレスを指定する命令)を示す。第2プログラム領域のアドレスを指定するときの最大値が「25FFh」となる。
「2000h」のコードを「0」としたとき、「25FFh」は、
0000/0101/1111/1111
となる。
よって、「CALLEX 25FFh」のコードは、
1010/0000/1000/0000/0000/0101/1111/1111
となる。
この命令が実行されると、第2プログラム領域のアドレス「25FFh」の命令を呼び出す。
Furthermore, (D) in the figure indicates "CALLEX 25FFh" (a command specifying the last address of the second program area). The maximum value when specifying an address in the second program area is "25FFh".
When the code for "2000h" is "0", "25FFh" is:
0000/0101/1111/1111
It becomes.
Therefore, the code for "CALLEX 25FFh" is:
1010/0000/1000/0000/0000/0101/1111/1111
It becomes.
When this instruction is executed, the instruction at address "25FFh" in the second program area is called.

以上のように、第3実施形態の「CALLEX mn」命令では、「mn」の範囲が「2000h」~「20FFh」の範囲内であればコードサイズが2バイトの命令となり、「mn」の範囲が上記範囲以外であればコードサイズが4バイトの命令となる。
よって、呼び出す回数が多い命令ほど、アドレス「2000h」~「20FFh」の範囲内に集約しておけば、それだけ、コードサイズが2バイトで済む命令が多くなる。これにより、命令を記憶するROM54の記憶容量を節約することが可能となる。
また、第2プログラム領域のアドレス「2000h」~「25FFh」の範囲のうち、アドレス「2000h」~「20FFh」の範囲に、第1プログラムから第2プログラムを呼び出す際のアドレスを収めておくことによって、第2プログラムを確認するときに、第1プログラムから呼び出されるプログラムであることを容易に把握することができる。
As described above, in the “CALLEX mn” instruction of the third embodiment, if “mn” is in the range of “2000h” to “20FFh”, the instruction has a code size of 2 bytes, and if “mn” is outside the above range, the instruction has a code size of 4 bytes.
Therefore, if instructions that are called frequently are concentrated in the address range of "2000h" to "20FFh", the number of instructions that can be completed with a code size of 2 bytes increases accordingly. This makes it possible to save the storage capacity of the ROM 54 that stores the instructions.
Furthermore, by storing the address used when calling the second program from the first program in the address range "2000h" to "20FFh" within the address range "2000h" to "25FFh" in the second program area, it is possible to easily determine when the second program is a program called from the first program, when checking the second program.

説明を図45に戻す。
図45(C)は、RETEX命令を示す。このRETEX命令は、従来のリターン命令に対応する命令である。
RETEX命令は、
(1)ノンマスカブル割込み(NMI)、及びマスカブル割込み(INT)をCALLEX命令前の状態にし、
(2)レジスタバンクを「0」に切り替え、
(3)リターン(RET)する(CALLEX前の状態(CALLEXの次の命令(戻り番地のプログラム))に戻る)
ことを実行する。
これにより、第1プログラム領域内のプログラムを実行可能とする。
なお、CALLEX命令時の状態が割込み許可状態であるときは、RETEX命令によって割込み許可状態にする。一方、CALLEX命令時の状態が割込み禁止状態であるときは、RETEX命令によって割込み禁止状態にする。
Let us return to the explanation given in FIG.
45C shows a RETEX instruction, which corresponds to a conventional return instruction.
The RETEX command is
(1) The non-maskable interrupt (NMI) and the maskable interrupt (INT) are set to the state before the CALLEX instruction.
(2) Switch the register bank to "0",
(3) Return (RET) (return to the state before the CALLEX (the next instruction after the CALLEX (the program at the return address))
To carry out the task.
This makes it possible to execute the program in the first program area.
If the state when the CALLEX instruction is issued is an interrupt enabled state, the RETEX instruction puts the state into an interrupt enabled state. On the other hand, if the state when the CALLEX instruction is issued is an interrupt disabled state, the RETEX instruction puts the state into an interrupt disabled state.

従来の一般的なコール(CALL)/リターン(RET)命令では、コール命令によってプログラムを呼び出し、当該プログラムを実行した後、リターン命令によって当該コール命令後に戻るものである。
これに対し、本実施形態では、CALLEX命令においてプログラムを呼び出し、当該プログラムを実行した後、RETEX命令によって当該CALLEX命令後に戻るものである。
以上の点について、より詳しく説明する。
In a conventional general call (CALL)/return (RET) instruction, a program is called by a call instruction, and after the program is executed, a return instruction is used to return to the state after the call instruction.
In contrast to this, in this embodiment, a program is called by a CALLEX instruction, and after the program is executed, a RETEX instruction is used to return to the state after the CALLEX instruction.
The above points will be explained in more detail below.

図48は、従来のCALL命令及びRET命令の一例を示す図である。
この例では、第1プログラムの実行中に、第2プログラムを呼び出す例を示している。
第1プログラムの実行中に第2プログラムを呼び出す場合には、少なくとも、以下の処理を実行する必要がある。
「1」割込み管理処理
処理の煩雑化を防ぐため、第2プログラムの実行中は、割込み処理が実行されないようにする。
「2」SPレジスタ切替え処理
第2プログラムで用いるスタック領域は、第1プログラムで用いるスタック領域と異なるため、SPレジスタを切り替える必要がある。
「3」レジスタ管理処理
第2プログラムの実行中にレジスタを使用したときは、そのレジスタ値を引き継いで第1プログラムに戻らないようにする必要がある。
FIG. 48 is a diagram showing an example of a conventional CALL instruction and a RET instruction.
In this example, a second program is called while a first program is being executed.
When a second program is called while a first program is being executed, at least the following processing must be executed.
"1" Interrupt Management Processing In order to prevent the processing from becoming complicated, interrupt processing is prevented from being executed while the second program is being executed.
[2] SP Register Switching Process Since the stack area used in the second program is different from the stack area used in the first program, it is necessary to switch the SP register.
[3] Register Management Processing When a register is used during execution of the second program, it is necessary to take over the register value so as not to return to the first program.

以上を遵守するため、図48で例示したプログラムには、以下に示す命令が含まれる。
まず、第1プログラムの実行中に第2プログラムを実行するときは、割込み処理を禁止する。割込み禁止命令は、図中、DI命令である。これが、上記「1」に対応する命令である。なお、割込み禁止命令であるDI命令と対をなすのが、割込み許可命令であるEI命令である。なお、DI命令ではマスカブル割込み処理を禁止することはできるが、ノンマスカブル割込み処理(NMI)を禁止することはできない。
In order to comply with the above, the program exemplified in FIG. 48 includes the following instructions:
First, when the second program is executed while the first program is being executed, interrupt processing is prohibited. The interrupt prohibit instruction is the DI instruction in the figure. This is the instruction corresponding to "1" above. Note that the DI instruction, which is an interrupt prohibit instruction, is paired with the EI instruction, which is an interrupt enable instruction. Note that the DI instruction can prohibit maskable interrupt processing, but cannot prohibit non-maskable interrupt processing (NMI).

DI命令の実行後、AFレジスタを退避するため、「PUSH AF」を実行する。この命令は、上記「3」に対応する命令である。なお、PUSH命令とは、スタック領域にデータを格納する命令である。すなわち、Aレジスタ値及びFレジスタ値をスタック領域に記憶する命令を実行する。
次の「CALL S_CHERR_CHK」命令は、第2プログラムの1つである「S_CHERR_CHK」(投入・払出しセンサ異常管理)を呼び出す命令である。この例では、第2プログラムとして「S_CHERR_CHK」を挙げている。
この「S_CHERR_CHK」(第2プログラム)を終了すると、「POP AF」命令により、退避していたAFレジスタを復帰させる。この命令は、スタック領域のデータを呼び出す命令であり、上記「3」に対応する命令である。次に、EI命令により、割込み処理を許可する(上記「1」に対応する命令)。
After executing the DI command, "PUSH AF" is executed to save the AF register. This command corresponds to the above "3". The PUSH command is an command to store data in the stack area. That is, the command to store the A register value and the F register value in the stack area is executed.
The next "CALL S_CHERR_CHK" command is a command to call "S_CHERR_CHK" (input/dispense sensor abnormality management), which is one of the second programs. In this example, "S_CHERR_CHK" is listed as the second program.
When this "S_CHERR_CHK" (second program) is finished, the "POP AF" instruction is used to restore the AF register that was saved. This instruction is used to call data from the stack area, and corresponds to "3" above. Next, the EI instruction is used to enable interrupt processing (corresponding to "1" above).

「S_CHERR_CHK」(第2プログラム)において、「LD (_SB_STACK2),SP」は、第1プログラム用のSPレジスタ値を第2スタック領域の所定の番地に退避(記憶)する命令(上記「2」に対応する命令)である。
次の「LD SP,@STACK2」は、第2プログラム用のSPレジスタをセットする命令(上記「2」に対応する命令)である。
次に、「PUSH GPR」及び「PUSH QI」をそれぞれ実行し、レジスタを退避させる。ここで、「GPR」は、退避するレジスタの種類を示し、A、F、B、C、D、E、H、及びLレジスタに相当する。また、「GPR」には、Q及びIレジスタが含まれないため、「PUSH GPR」に加えて「PUSH QI」を実行し、Q及びIレジスタを退避させる(上記「3」に対応する命令)。
In "S_CHERR_CHK" (second program), "LD (_SB_STACK2), SP" is an instruction (corresponding to "2" above) to save (store) the SP register value for the first program to a specified address in the second stack area.
The next "LD SP, @STACK2" is an instruction to set the SP register for the second program (an instruction corresponding to the above "2").
Next, "PUSH GPR" and "PUSH QI" are executed to save the registers. Here, "GPR" indicates the type of register to be saved, and corresponds to the A, F, B, C, D, E, H, and L registers. Also, since "GPR" does not include the Q and I registers, "PUSH QI" is executed in addition to "PUSH GPR" to save the Q and I registers (the instruction corresponding to "3" above).

そして、当該第2プログラムの実行後、レジスタ及びSPレジスタを復帰させる。「POP QI」により、Q及びIレジスタを復帰させる。さらに、「POP GPR」により、A、F、B、C、D、E、H、及びLレジスタを復帰させる(これらは、上記「3」に対応する命令)。
次に、「LD SP,(_SB_STACK2)」により、SPレジスタを復帰させる(上記「2」に対応する命令)。
そして、RETにより、CALL命令前の状態に戻す。
After the second program is executed, the registers and the SP register are restored. The Q and I registers are restored by "POP QI". Furthermore, the A, F, B, C, D, E, H, and L registers are restored by "POP GPR" (these are the instructions corresponding to "3" above).
Next, the SP register is restored by "LD SP, (_SB_STACK2)" (the instruction corresponding to "2" above).
Then, RET is used to return to the state before the CALL instruction.

以上のようにして、一般的なコール/リターン命令では、上記「1」~「3」に対応する命令として、第1プログラムでは、
DI
PUSH AF
POP AF
EI
を実行する必要がある。
また、第2プログラムでは、
LD (),SP
PUSH GPR
PUSH QI
POP QI
POP GPR
LD SP,()
を実行する必要がある。
In this way, in a typical call/return instruction, the instructions corresponding to the above "1" to "3" are as follows in the first program:
D.I.
PUSH AF
POP AF
E.I.
needs to be done.
In addition, in the second program,
LD (), SP
PUSH GPR
PUSH QI
POP QI
POP GPR
LD SP, ()
needs to be done.

これに対し、本実施形態におけるCALLEX命令では、上述したように、割込みを禁止する処理と、レジスタバンクを0から1に切り替える処理とを含んでいる。したがって、CALLEX命令(1命令)によって第2プログラム領域内のプログラムを実行でき、割込み禁止命令(DI命令)やレジスタの退避命令(PUSH命令)を独立して設ける必要がない。
また、RETEX命令では、割込みをCALLEX命令前の状態にする処理と、レジスタバンクを1から0に切り替える処理とを含んでいる。したがって、RETEX命令(1命令)によって第1プログラム領域内のプログラムに戻ることができ、割込みを元に戻すための割込み許可命令(EI命令)や、レジスタを復帰させる命令(POP命令)を独立して設ける必要がない。
よって、プログラム容量を削減することが可能となる。
In contrast, as described above, the CALLEX instruction in this embodiment includes a process for inhibiting interrupts and a process for switching the register bank from 0 to 1. Therefore, a program in the second program area can be executed by a CALLEX instruction (one instruction), and there is no need to provide an interrupt inhibition instruction (DI instruction) or a register save instruction (PUSH instruction) separately.
The RETEX instruction also includes a process for returning the interrupt to the state before the CALLEX instruction, and a process for switching the register bank from 1 to 0. Therefore, the RETEX instruction (one instruction) can return to the program in the first program area, and there is no need to separately provide an interrupt enable instruction (EI instruction) for returning the interrupt to the original state, or an instruction for restoring the register (POP instruction).
This makes it possible to reduce the program capacity.

さらにまた、CALLEX命令及びRETEX命令により、第2プログラムを実行する直前の第1プログラムの割込み状態に戻ることができる。
したがって、CALLEX命令直前の状態が割込み許可状態であれば、第2プログラムの実行後、RETEX命令により、割込み許可状態の第1プログラムに戻ることができる。
一方、CALLEX命令直前の状態が割込み禁止状態であれば、第2プログラムの実行後、RETEX命令により、割込み禁止状態の第1プログラムに戻ることができる。
Furthermore, the CALLEX and RETEX instructions make it possible to return to the interrupt state of the first program immediately prior to the execution of the second program.
Therefore, if the state immediately before the CALLEX instruction is an interrupt-enabled state, after the second program has been executed, the RETEX instruction can be used to return to the first program in the interrupt-enabled state.
On the other hand, if the state immediately before the CALLEX instruction is an interrupt disabled state, after the second program is executed, it is possible to return to the first program in an interrupt disabled state by the RETEX instruction.

また、CALLEX命令が実行されると、レジスタバンクが0から1に切り替えられる。さらに、RETEX命令が実行されると、レジスタバンクが1から0に切り替えられる。
このため、CALLEX命令が実行されると、レジスタバンク0及び1のFレジスタのD3ビットは「0」から「1」に更新される。また、RETEX命令が実行されると、レジスタバンク0及び1のFレジスタのD3ビットは「1」から「0」に更新される。
なお、CALLEX命令が実行されたときは、レジスタバンク0又は1のいずれか一方のFレジスタのD3ビットが「0」から「1」に更新されるようにしてもよい。
Furthermore, when a CALLEX instruction is executed, the register bank is switched from 0 to 1. Furthermore, when a RETEX instruction is executed, the register bank is switched from 1 to 0.
Therefore, when the CALLEX instruction is executed, the D3 bit of the F registers of the register banks 0 and 1 is updated from "0" to "1." Also, when the RETEX instruction is executed, the D3 bit of the F registers of the register banks 0 and 1 is updated from "1" to "0."
When the CALLEX instruction is executed, the D3 bit of the F register of either register bank 0 or 1 may be updated from "0" to "1."

また、レジスタバンク0及び1の各レジスタに記憶されているデータは、FレジスタのD3ビットを除き、CALLEX命令及びRETEX命令自体によって更新されることはない。
この点を具体例を挙げて説明する。
以下の説明において、レジスタバンク0のA、B、H、及びLレジスタを、それぞれ、0A、0B、0H、0Lレジスタと称する。
また、レジスタバンク1のA、B、H、及びLレジスタを、それぞれ、1A、1B、1H、1Lレジスタと称する。
現時点で、レジスタバンク0及び1の各レジスタには、以下のデータが記憶されているものとする。
0Aレジスタ:00000001(B)
0Bレジスタ:00000000(B)
0Hレジスタ:11110001(B)
0Lレジスタ:00000001(B)
1Aレジスタ:00000000(B)
1Bレジスタ:00000011(B)
1Hレジスタ:11110010(B)
1Lレジスタ:00000001(B)
Furthermore, the data stored in each register of register banks 0 and 1, except for the D3 bit of the F register, is not updated by the CALLEX and RETEX instructions themselves.
This point will be explained with a concrete example.
In the following description, the A, B, H, and L registers of register bank 0 are referred to as the 0A, 0B, 0H, and 0L registers, respectively.
Moreover, the A, B, H, and L registers of register bank 1 are referred to as 1A, 1B, 1H, and 1L registers, respectively.
Assume that the following data is currently stored in each register of register banks 0 and 1.
0A register: 00000001 (B)
0B register: 00000000 (B)
0H register: 11110001 (B)
0L register: 00000001 (B)
1A register: 00000000 (B)
1B register: 00000011 (B)
1H register: 11110010 (B)
1L register: 00000001 (B)

この状態において、CALLEX命令が実行されると、それまでの0A、0B、0H、0Lレジスタを使用する状態から、1A、1B、1H、1Lレジスタを使用する状態に切り替わる。そして、CALLEX命令の直前及び直後で、0A、0B、0H、0L、1A、1B、1H、1Lレジスタの各レジスタ値は変化しない。上述したように、更新されるのはFレジスタのD3ビットだけである。
次に、第2プログラムの実行により、1A、1H、1Lレジスタが使用され、たとえば、
1Aレジスタ:00000011(B)
1Bレジスタ:00000011(B)
1Hレジスタ:11110001(B)
1Lレジスタ:00000000(B)
となったと仮定する。
In this state, when the CALLEX instruction is executed, the state switches from using the 0A, 0B, 0H, and 0L registers to using the 1A, 1B, 1H, and 1L registers. The register values of the 0A, 0B, 0H, 0L, 1A, 1B, 1H, and 1L registers do not change immediately before and after the CALLEX instruction. As mentioned above, only the D3 bit of the F register is updated.
Next, execution of the second program uses the 1A, 1H, and 1L registers, e.g.
1A register: 00000011 (B)
1B register: 00000011 (B)
1H register: 11110001 (B)
1L register: 00000000 (B)
Let us assume that the following occurs:

そして、第2プログラムの終了に基づいてRETEX命令が実行されると、上記の1A、1B、1H、1Lレジスタの各値はそのままで、0A、0B、0H、0Lレジスタを使用する状態に切り替わる。この時点での0A、0B、0H、0Lレジスタの各値は、CALLEX命令直前の値、すなわち、
0Aレジスタ:00000001(B)
0Bレジスタ:00000000(B)
0Hレジスタ:11110001(B)
0Lレジスタ:00000001(B)
である。
なお、0Hレジスタ値は、CALLEX命令直前の値が維持されているものであり、1Hレジスタ値と入れ替わったわけではない。
そして、第1プログラムの実行により、たとえば0Aレジスタ値の「1」加算処理が実行されると、
0Aレジスタ:00000010(B)
となる。
Then, when the RETEX command is executed based on the end of the second program, the values of the 1A, 1B, 1H, and 1L registers remain unchanged, and the state switches to a state in which the 0A, 0B, 0H, and 0L registers are used. At this point, the values of the 0A, 0B, 0H, and 0L registers are the values immediately before the CALLEX command, that is,
0A register: 00000001 (B)
0B register: 00000000 (B)
0H register: 11110001 (B)
0L register: 00000001 (B)
It is.
Note that the 0H register value is the value it had immediately before the CALLEX instruction, and has not been replaced with the 1H register value.
Then, when the first program is executed to add "1" to the value of the OA register,
0A register: 00000010 (B)
It becomes.

以上より、特定レジスタ(たとえばAレジスタ)に着目すると、CALLEX命令直前の特定レジスタ値が「x」である場合、CALLEX命令の実行によって特定レジスタ値は「y」となる。これは、CALLEX命令によって特定レジスタ値が変化したわけではなく、使用する特定レジスタが、レジスタバンク0の特定レジスタからレジスタバンク1の特定レジスタに変わったためである。 From the above, if we focus on a special register (for example, the A register), if the special register value immediately before the CALLEX instruction is "x", the special register value will become "y" when the CALLEX instruction is executed. This is because the special register value does not change due to the CALLEX instruction, but because the special register being used has changed from the special register in register bank 0 to the special register in register bank 1.

そして、第2プログラム領域のプログラムが実行されることにより、特定レジスタが使用され、特定レジスタ値が「y」から「y’」に更新されたと仮定する。その後、RETEX命令が実行されると、使用する特定レジスタは、レジスタバンク1の特定レジスタからレジスタバンク0の特定レジスタに切り替わる。よって、RETEX命令直後の特定レジスタ値は、CALLEX命令直前の値、すなわち「x」になる。なお、RETEX命令の直後も、レジスタバンク1の特定レジスタ値は「y’」のままである。 Let us now assume that the program in the second program area is executed, causing the special register to be used and the special register value to be updated from "y" to "y'". After that, when the RETEX instruction is executed, the special register to be used switches from the special register in register bank 1 to the special register in register bank 0. Therefore, the special register value immediately after the RETEX instruction becomes the value it had immediately before the CALLEX instruction, i.e., "x". Note that even immediately after the RETEX instruction, the special register value in register bank 1 remains "y'".

上述したCALLEX命令及びRETEX命令は、具体的には、たとえば以下のように使用される。
図49は、第3実施形態におけるプログラム開始(M_PRG_START )を示すフローチャートである。図49中、第3実施形態特有のステップ番号にはアンダーラインを付している。
プログラム開始(M_PRG_START )は、電源投入後に最初に実行されるメイン制御基板50のプログラムであり、設定変更モードへの移行条件を満たすか否か、電源断復帰異常がないか否か等が判断される。
電源断復帰異常があると判断されたときは、ステップS2801の復帰不可能エラー処理(C_ERROR_STOP)又はステップS2731の初期化処理(M_INI_SET )に移行する。
また、設定変更モードへの移行が可能であると判断されたときはステップS2731の初期化処理に移行し、この初期化処理後、設定変更モードに移行可能となる。
一方、設定変更モードに移行せず、かつ電源断復帰異常がないと判断されたときはステップS2721の電源復帰処理(M_POWER_ON)に移行する。
Specifically, the above-mentioned CALLEX instruction and RETEX instruction are used, for example, as follows.
Fig. 49 is a flow chart showing a program start (M_PRG_START) in the third embodiment. In Fig. 49, step numbers specific to the third embodiment are underlined.
Program start (M_PRG_START) is a program of the main control board 50 that is executed first after power is turned on, and determines whether the conditions for transitioning to the setting change mode are met, whether there are any power interruption recovery abnormalities, etc.
If it is determined that a power failure recovery abnormality has occurred, the flow proceeds to an unrecoverable error process (C_ERROR_STOP) in step S2801 or an initialization process (M_INI_SET) in step S2731.
If it is determined that the mode can be changed to the setting change mode, the process proceeds to the initialization process in step S2731, and after this initialization process, the mode can be changed to the setting change mode.
On the other hand, if it is determined that the setting change mode has not been entered and that there is no power interruption recovery abnormality, the process proceeds to power recovery processing (M_POWER_ON) in step S2721.

図49において、プログラム開始(M_PRG_START )処理が開始されると、まず、ステップS2851において、第1に、レジスタバンク0のSPレジスタに初期値をセットする。電源投入時は、レジスタバンク0のSPレジスタ値は「0」である。ここでは、「LD SP,F200h」の命令により、レジスタバンク0のSPレジスタに「F200h」を記憶する。 In FIG. 49, when the program start (M_PRG_START) process is started, first in step S2851, an initial value is set in the SP register of register bank 0. When power is turned on, the SP register value of register bank 0 is "0". Here, the command "LD SP, F200h" is used to store "F200h" in the SP register of register bank 0.

ここで記憶される値「F200h」は、図44で示したように、第1スタック領域の最後のアドレスに「1」を加算した値となる。そして、レジスタバンク0のSPレジスタ値が「F200h」であるときは、「F1FFh」にデータを記憶する(積む)ことを示すものとなる。
また、ステップS2851では、第2に、「CALLEX 2000h」を実行する。なお、この例では、ステップS2852におけるRWMチェックサム算出命令の開始アドレスが「2000h」であるものとする。
次にステップS2852に進み、「CALLEX 2000h」に基づき第2プログラム(RWMチェックサム算出)を開始する。電源投入後に第2プログラムを最初に開始するときには、レジスタバンク1のSPレジスタに初期値をセットする。電源投入時は、レジスタバンク1のSPレジスタ値は「0」である。ここでは、「LD SP,F400h」の命令により、レジスタバンク1のSPレジスタに「F400h」を記憶する。
The value "F200h" stored here is the last address of the first stack area plus "1", as shown in Figure 44. When the SP register value of register bank 0 is "F200h", this indicates that data is stored (pile) in "F1FFh".
Secondly, in step S2851, "CALLEX 2000h" is executed. In this example, it is assumed that the start address of the RWM checksum calculation command in step S2852 is "2000h".
Next, the process proceeds to step S2852, where the second program (RWM checksum calculation) is started based on "CALLEX 2000h." When the second program is started for the first time after power-on, an initial value is set in the SP register of register bank 1. When power is turned on, the SP register value of register bank 1 is "0." Here, "F400h" is stored in the SP register of register bank 1 by the command "LD SP, F400h."

ここで記憶される値「F400h」は、図44で示したように、第2スタック領域の最後のアドレス「F3FFh」に「1」を加算した値となる。そして、レジスタバンク1のSPレジスタ値が「F400h」であるときは、「F3FFh」にデータを記憶する(積む)ことを示すものとなる。
さらに、RWMチェックサム算出を終了すると、RETEXを実行し、第1プログラム内のプログラム(命令)であって、ステップS2851のCALLEX後のプログラム(S2705)に戻る。そして、ステップS2075以降の処理に進む。ステップS2705以降の処理は、説明を省略する。
上記のように、第3実施形態では、CALLEX命令がレジスタ退避を含む命令であるので、別途、レジスタ退避命令(「PUSH AF」、「PUSH GPR」、及び「PUSH QI」)を定める必要がない。同様に、RETEX命令がレジスタ復帰を含む命令であるので、別途、レジスタ復帰命令(「POP AF」、「POP GPR」、及び「POP QI」)を定める必要がない。
The value "F400h" stored here is the last address "F3FFh" of the second stack area plus "1" as shown in Fig. 44. When the SP register value of register bank 1 is "F400h", this indicates that data is to be stored (pile) in "F3FFh".
Furthermore, when the RWM checksum calculation is completed, RETEX is executed, and the program (instruction) in the first program is returned to after the CALLEX in step S2851 (S2705). Then, the process proceeds to step S2075 and subsequent steps. The description of the process from step S2705 onward is omitted.
As described above, in the third embodiment, since the CALLEX instruction is an instruction including register saving, there is no need to define separate register saving instructions ("PUSH AF", "PUSH GPR", and "PUSH QI"). Similarly, since the RETEX instruction is an instruction including register restoring, there is no need to define separate register restoring instructions ("POP AF", "POP GPR", and "POP QI").

また、電源投入後の最初の第2プログラムの実行時(ステップS2852)に、レジスタバンク1のSPレジスタに初期値「F400h」を記憶した後は、その後に第1プログラムに戻り、再度、第2プログラムを実行する際には、改めてレジスタバンク1のSPレジスタに初期値「F400h」を記憶する必要がない。
換言すると、電源投入時を起点として、第2プログラムの最初の実行時にはレジスタバンク1のSPレジスタに初期値「F400h」を記憶する処理(命令)を実行するが、それ以降の第2プログラムの実行時にはレジスタバンク1のSPレジスタに初期値「F400h」を記憶する処理(命令)を実行しなくてよい。これにより、第2プログラムの容量を削減することが可能となる。
Furthermore, after storing the initial value "F400h" in the SP register of register bank 1 when the second program is executed for the first time after power-on (step S2852), when returning to the first program and executing the second program again, there is no need to store the initial value "F400h" in the SP register of register bank 1 again.
In other words, starting from when the power is turned on, the first time the second program is executed, a process (instruction) is executed to store the initial value "F400h" in the SP register of register bank 1, but the second program is executed thereafter without having to execute the process (instruction) to store the initial value "F400h" in the SP register of register bank 1. This makes it possible to reduce the size of the second program.

ただし、これに限らず、第2プログラムの実行時ごとに、レジスタバンク1のSPレジスタに初期値「F400h」を記憶する処理(命令)を実行してもよい。あるいは、第2プログラムの実行時であって特定の条件を満たすときに、レジスタバンク1のSPレジスタに初期値「F400h」を記憶する処理(命令)を実行してもよい。
電源投入後の最初の第2プログラムの実行時に、レジスタバンク1のSPレジスタに初期値「F400h」を記憶し、第2プログラムを実行すると仮定する。そして、第2プログラムの実行中に、第2スタック領域にデータを記憶する場合、レジスタバンク1のSPレジスタ値が更新される。
However, without being limited thereto, a process (instruction) may be executed to store the initial value "F400h" in the SP register of register bank 1 each time the second program is executed. Alternatively, a process (instruction) may be executed to store the initial value "F400h" in the SP register of register bank 1 when a specific condition is satisfied during execution of the second program.
Assume that the first time the second program is executed after power-on, the initial value "F400h" is stored in the SP register of register bank 1, and the second program is executed. If data is stored in the second stack area during execution of the second program, the SP register value of register bank 1 is updated.

上述したように、たとえば最初に2バイトのデータを第2スタック領域に記憶した場合には、レジスタバンク1のSPレジスタ値は「F400h」から「F3FEh」に更新される。その後、第2プログラムを終了するまでに第2スタック領域からデータが戻されるのが通常である。したがって、第2プログラムの終了時には、通常、レジスタバンク1のSPレジスタ値は「F400h」になっている。
第2プログラムが終了し、第1プログラムに戻ると、レジスタバンク0のSPレジスタが使用される。レジスタバンク0のSPレジスタ値は、第2プログラムに移行する直前の値を維持している。たとえば、第2プログラムに移行する直前のレジスタバンク0のSPレジスタ値が「F1FDh」であれば、第2プログラムを終了して第1プログラムに戻ると、レジスタバンク0のSPレジスタ値は「F1FDh」となる。
As described above, for example, when two bytes of data are first stored in the second stack area, the SP register value of register bank 1 is updated from "F400h" to "F3FEh". After that, the data is usually returned from the second stack area before the second program is terminated. Therefore, when the second program is terminated, the SP register value of register bank 1 is usually "F400h".
When the second program ends and the program returns to the first program, the SP register of register bank 0 is used. The SP register value of register bank 0 maintains the value it had immediately before the program started. For example, if the SP register value of register bank 0 was "F1FDh" immediately before the program started, the SP register value of register bank 0 will be "F1FDh" when the program ends and the program returns to the first program.

次に、CALLEX命令の利用方法(応用例)について説明する。
図50は、CALLEX命令及びJR命令(ジャンプ命令)を使用した例を示す図である。
上述したように、CALLEX命令は、呼び出すアドレスの範囲が「2000h」~「20FFh」であれば2バイトの命令とすることができるので、第1プログラムから第2プログラムを呼び出す際には、CALLEX命令をできるだけ多く使用すれば、それだけ、命令に係る記憶容量を節約することができる。
Next, a method of using the CALLEX command (application example) will be described.
FIG. 50 is a diagram showing an example in which a CALLEX instruction and a JR instruction (jump instruction) are used.
As mentioned above, the CALLEX instruction can be a two-byte instruction if the address range to be called is from "2000h" to "20FFh". Therefore, when calling a second program from a first program, the more the CALLEX instruction is used, the more memory capacity required for the instructions can be saved.

たとえば、「CALLEX 2000h」の命令を設け、この命令が実行されると、アドレス「2000h」に記憶されたプログラムが呼び出されるが、アドレス「2000h」からそのプログラムの記述(記憶)が開始され、そのプログラムがアドレス「2000h」~「20FDh」の多くを占めてしまうと、CALLEX命令を多く設けることができない。極論すれば、アドレス「2000h」からプログラムが開始され、当該プログラムがアドレス「20FFh」まで続くような場合、換言すればアドレス「2000h」~「20FFh」の範囲に1プログラムしか有さないときには、2バイトのCALLEX命令は1つしか設けることができなくなる。 For example, if a "CALLEX 2000h" instruction is provided and executed, the program stored at address "2000h" is called, but if the description (storage) of that program starts at address "2000h" and that program occupies most of the addresses "2000h" to "20FDh", then it will be impossible to provide many CALLEX instructions. In the extreme, if a program starts at address "2000h" and continues to address "20FFh", in other words, if there is only one program in the range of addresses "2000h" to "20FFh", then only one 2-byte CALLEX instruction can be provided.

そこで、図50の例では、アドレス「2000h」~「20FFh」の範囲には、JR(ジャンプ)命令を配置し、そのJR命令の飛ぶ先をアドレス「2000h」~「20FFh」の範囲外に指定し、かつ、JR命令の飛ぶ先に実際のプログラムを記憶するようにした。
たとえば、アドレス「2000h」には、「JR 2200h」を記憶しておく。なお、「JR 2200h」の命令である場合、アドレス「2200h」に飛ぶ(ジャンプする)ことを意味する。これにより、「CALLEX 2000h」が実行されると、アドレス「2000h」が呼び出されるが、アドレス「2000h」には「JR 2200h」が記憶されているので、さらにアドレス「2200h」にジャンプすることになる。そして、アドレス「2200h」以降に実際のプログラム(図50中、「プログラムA」)を記憶しておけば、実際のプログラム(プログラムA)をアドレス「2000h」~「20FFh」の範囲外に置くことができる。
Therefore, in the example of Figure 50, a JR (jump) instruction is placed in the range of addresses "2000h" to "20FFh", the destination to which the JR instruction jumps is specified outside the range of addresses "2000h" to "20FFh", and the actual program is stored at the destination to which the JR instruction jumps.
For example, "JR 2200h" is stored at address "2000h". Incidentally, the instruction "JR 2200h" means to jump to address "2200h". Thus, when "CALLEX 2000h" is executed, address "2000h" is called, but since "JR 2200h" is stored at address "2000h", a jump to address "2200h" is also performed. If an actual program ("Program A" in FIG. 50) is stored at address "2200h" or later, the actual program (Program A) can be placed outside the range of addresses "2000h" to "20FFh".

なお、本実施形態では、「JR mn(mn=2000h~20FFh)」命令に要するコードサイズは3バイトである。このため、図50に示すように、
2000h JR mn1(図50の例では、mn1=2200h)
2003h JR mn2(図50の例では、mn2=2250h)
2006h JR mn3(図50の例では、mn3=22A0h)

のように、3バイト刻みでJR命令を配置している。
In this embodiment, the code size required for the "JR mn (mn=2000h to 20FFh)" instruction is 3 bytes.
2000h JR mn1 (in the example of FIG. 50, mn1=2200h)
2003h JR mn2 (in the example of FIG. 50, mn2=2250h)
2006h JR mn3 (in the example of FIG. 50, mn3=22A0h)
:
As shown above, JR instructions are placed in 3-byte increments.

ただし、これに限らず、「JR mn(mn=2000h~20FFh)」命令に要するコードサイズが2バイトから構成可能である場合には、
2000h JR mn1
2002h JR mn2
2004h JR mn3

となる。
また、「JR mn(mn=2000h~20FFh)」命令に要するコードサイズが4バイトとなるような場合には、
2000h JR mn1
2004h JR mn2
2008h JR mn3

となる。
However, this is not limiting, and if the code size required for the "JR mn (mn = 2000h to 20FFh)" instruction can be configured from 2 bytes,
2000h JR mn1
2002h JR mn2
2004h JR mn3
:
It becomes.
Also, if the code size required for the "JR mn (mn = 2000h to 20FFh)" instruction is 4 bytes,
2000h JR mn1
2004h JR mn2
2008h JR mn3
:
It becomes.

図50の例において、極論すれば、アドレス「2000h」~「20FFh」の範囲には、すべてJR命令を置くことも可能である。この場合には、
(1)2000h JR mn1
(2)2003h JR mn2
(3)2006h JR mn3

(84)20F9h JR mn84
(85)20FCh JR mn85
(86)20FFh JR mn86
とすることができる。したがって、アドレス「2000h」~「20FFh」の範囲内に、3バイトからなるJR命令を合計で86個記憶することが可能となる。
In the example of Figure 50, if taken to the extreme, it would be possible to place JR instructions in the range of addresses "2000h" to "20FFh". In this case,
(1) 2000h JR mn1
(2) 2003h JR mn2
(3) 2006h JR mn3
:
(84)20F9h JR mn84
(85) 20FCh JR mn85
(86)20FFh JR mn86
Therefore, a total of 86 JR instructions, each consisting of 3 bytes, can be stored within the address range from "2000h" to "20FFh."

図50の例では、
2000h JR 2200h
とし、アドレス「2000h」の実際のプログラム(プログラムA)をアドレス「2200h」~「224Fh」の範囲内に記憶した。
また、
2003h JR 2250h
とし、アドレス「2003h」の実際のプログラム(プログラムB)をアドレス「2250h」~「229Fh」の範囲内に記憶した。
In the example of FIG.
2000h JR 2200h
The actual program (program A) at address "2000h" was stored within the range of addresses "2200h" to "224Fh."
Also,
2003h JR 2250h
The actual program (program B) at address "2003h" was stored within the range of addresses "2250h" to "229Fh".

さらにまた、
2006h JR 22A0h
とし、アドレス「2006h」の実際のプログラム(プログラムC)をアドレス「22A0h」以降に記憶した。
このように、コードサイズが2バイトで可能となるCALLEX命令のアドレス範囲「2000h」~「20FFh」にはCALLEX命令で実行したい実際のプログラムは、ほとんど記憶しないことが望ましい。換言すると、CALLEX命令で呼び出される第2プログラムのアドレスは、アドレス範囲「2000h」~「20FFh」に収めている。ただし、後述するように、CALLEX命令で呼び出される第2プログラムであって、アドレス範囲「2000h」~「20FFh」のうちアドレス「20FFh」に最も近いプログラムに関しては、JR命令を使用しなくてもよい。このように、CALLEX命令で呼び出される第2プログラムの命令のうち過半数(「ほとんど」又は「すべて」を含む。)はJR命令を使用し、実際のプログラムをアドレス「2100h」以降に記憶すれば、第2プログラム領域を効率よく使用することができる。
Furthermore,
2006h JR 22A0h
The actual program (program C) at address "2006h" is stored at address "22A0h" and onward.
In this way, it is desirable to store almost no actual program to be executed by the CALLEX instruction in the address range "2000h" to "20FFh" of the CALLEX instruction, which allows a code size of 2 bytes. In other words, the address of the second program called by the CALLEX instruction is stored in the address range "2000h" to "20FFh". However, as will be described later, the JR instruction does not need to be used for the second program called by the CALLEX instruction and that is closest to the address "20FFh" in the address range "2000h" to "20FFh". In this way, if the majority (including "almost" or "all") of the instructions of the second program called by the CALLEX instruction use the JR instruction and the actual program is stored at address "2100h" or later, the second program area can be used efficiently.

なお、たとえばCALLEX命令が10個しかないような場合には、1~9個目のCALLEX命令に対応するアドレスにはJR命令を記憶しておくが、10個目のCALLEX命令に対応するアドレスには、JR命令を使用せずに実際のプログラムを直接記憶しておいてもよい。
一方、CALLEX命令の数にかかわらず、アドレス範囲「2000h」~「20FFh」にはJR命令しか記憶しないように定め、JR命令(CALLEX命令)が上限の86個を大幅に下回っていても、アドレス「20FFh」より前の記憶領域は予備として空けておくようにしてもよい。
For example, if there are only ten CALLEX instructions, the JR instruction is stored in the addresses corresponding to the first through ninth CALLEX instructions, but the actual program may be directly stored in the address corresponding to the tenth CALLEX instruction without using the JR instruction.
On the other hand, regardless of the number of CALLEX instructions, it may be determined that only JR instructions are stored in the address range from "2000h" to "20FFh", and even if the number of JR instructions (CALLEX instructions) is significantly less than the upper limit of 86, the memory area before address "20FFh" may be left free as a spare.

なお、上述したように、CALLEX命令では、アドレス「2000h」~「20FFh」の範囲内の呼び出しの場合はコードサイズが2バイトであり、アドレス「2000h」~「20FFh」の範囲外の呼び出しの場合はコードサイズが4バイトである。
したがって、「CALLEX命令2バイト+JR命令3バイト」であるので、合計5バイトとなり、アドレス「2000h」~「20FFh」の範囲外を呼び出すCALLEX命令のコードサイズ(4バイト)よりも大きくなる。
As described above, the CALLEX instruction has a code size of 2 bytes when calling within the address range of "2000h" to "20FFh", and a code size of 4 bytes when calling outside the address range of "2000h" to "20FFh".
Therefore, the total is 5 bytes for the "2-byte CALLEX instruction + 3-byte JR instruction", which is larger than the code size (4 bytes) of the CALLEX instruction that calls an address outside the range of "2000h" to "20FFh".

しかし、風営法規則に従う遊技機(回胴式遊技機やぱちんこ遊技機等)のチップにおいては、第1プログラム領域の記憶容量には余裕がなく、第2プログラム領域の記憶容量には余裕があるのが実情である。
したがって、第2プログラム領域に記憶するJR命令の3バイト分が増加しても、第1プログラム領域に記憶するCALLEX命令のコードサイズを2バイトにする方が、第1プログラム領域の効率的な使用の点では有利となる。
However, in the case of chips for gaming machines that comply with the Entertainment and Amusement Act regulations (such as reel gaming machines and pachinko gaming machines), the first program area has no spare memory capacity, but the second program area has spare memory capacity.
Therefore, even if the JR instruction stored in the second program area increases by 3 bytes, it is more advantageous in terms of efficient use of the first program area to keep the code size of the CALLEX instruction stored in the first program area to 2 bytes.

また、アドレス「20FFh」に近づく最後の方では、JR命令を設けることなく、プログラムそのものを記憶してもよい。
上述のように、アドレス「2000h」以降に3バイトのJR命令を順次配置した場合には、アドレス「20FFh」に「JR mn86」の命令を記憶することになる。なお、この場合には、アドレス「20FFh」~「2101h」の3バイト記憶領域に「JR mn86」の命令が記憶される。
Also, toward the end approaching address "20FFh", the program itself may be stored without providing a JR instruction.
As described above, if 3-byte JR instructions are sequentially placed after address "2000h", the instruction "JR mn86" will be stored at address "20FFh". In this case, the instruction "JR mn86" is stored in the 3-byte memory area from address "20FFh" to "2101h".

しかし、アドレス「20FFh」以降の3バイト記憶領域にJR命令を記憶し、他の記憶領域に当該命令に対する実際のプログラムを記憶するよりも、アドレス「20FFh」から直接プログラムを記憶する方が、記憶容量の節約になる。
このため、図50に示す例では、アドレス「20FFh」にはJR命令を置かず、アドレス「20FFh」からプログラム(プログラムD)が記憶されるようにしている。
これにより、「CALLEX 20FFh」が実行されると、アドレス「20FFh」以降に記憶されているプログラムDが実行されることとなる。
However, storing the JR instruction in the 3-byte memory area after address "20FFh" and storing the actual program for that instruction in another memory area will save memory capacity by storing the program directly from address "20FFh".
For this reason, in the example shown in FIG. 50, the JR instruction is not placed at address "20FFh", and a program (program D) is stored starting from address "20FFh".
As a result, when "CALLEX 20FFh" is executed, program D stored at address "20FFh" and after will be executed.

なお、上記は、アドレス「20FFh」を例に挙げたが、アドレス「20FDh」や「20FEh」にJR命令を配置するようなケースについても当てはまる。
具体的には、アドレス「20FDh」~「20FFh」の3バイト記憶領域にJR命令を記憶し、かつ他の記憶領域にプログラムを記憶するよりも、アドレス「20FDh」以降に直接プログラムを記憶した方が記憶容量の節約の点で好ましいといえる。
同様に、アドレス「20FEh」~「2100h」の3バイト記憶領域にJR命令を記憶し、かつ他の記憶領域にプログラムを記憶するよりも、アドレス「20FEh」以降に直接プログラムを記憶した方が記憶容量の節約の点で好ましいといえる。
Although the above example uses address "20FFh", the same applies to cases where the JR instruction is placed at address "20FDh" or "20FEh".
Specifically, in terms of saving memory capacity, it is preferable to store the JR instruction in the 3-byte memory area from address "20FDh" to "20FFh" and store the program directly at address "20FDh" and after, rather than storing the program in another memory area.
Similarly, it is preferable in terms of saving memory capacity to store the program directly at addresses after "20FEh" rather than storing the JR instruction in the 3-byte memory area from address "20FEh" to "2100h" and storing the program in other memory areas.

以上、本発明の第3実施形態について説明したが、本発明は、上記実施形態に限定されるものではなく、たとえば以下のような種々の変形が可能である。
(1)図42において、ROM54にはプログラム管理領域や未使用領域を備えたが、これに限らず、ROM54内には、少なくとも、第1プログラム領域、第1データ領域、第2プログラム領域、第2データ領域を備えるものであればよい。また、これらの各記憶領域に対し、図42では、先頭アドレス及び末尾アドレスを示したが、図42で示す記憶容量は一例であり、これに限られるものではない。したがって、図42で示した各記憶領域の先頭アドレス及び末尾アドレスも一例にすぎず、任意に設定可能である。
Although the third embodiment of the present invention has been described above, the present invention is not limited to the above embodiment, and various modifications such as those described below are possible.
(1) In Fig. 42, the ROM 54 has a program management area and an unused area, but this is not limiting, and the ROM 54 may have at least a first program area, a first data area, a second program area, and a second data area. In addition, while Fig. 42 shows the start address and end address for each of these storage areas, the storage capacity shown in Fig. 42 is only an example and is not limited to this. Therefore, the start address and end address of each storage area shown in Fig. 42 are only an example and can be set arbitrarily.

したがって、図42の例では、第2プログラム領域のアドレス範囲は「2000h」~「25FFh」であることから、CALLEX命令のコードサイズを2バイトとすることが可能なアドレス範囲として、「2000h」~20FFh」を例示したが、第2プログラム領域のアドレス範囲が変われば、CALLEX命令のコードサイズを2バイトとすることが可能なアドレス範囲も変わる。
たとえば、第2プログラム領域のアドレス範囲が「2150h」~「264Fh」である場合、CALLEX命令のコードサイズを2バイトとすることが可能なアドレス範囲は、「2150h」~224Fh」となる。
Therefore, in the example of Figure 42, since the address range of the second program area is "2000h" to "25FFh", "2000h" to "20FFh" is exemplified as the address range in which the code size of the CALLEX instruction can be 2 bytes; however, if the address range of the second program area changes, the address range in which the code size of the CALLEX instruction can be 2 bytes also changes.
For example, if the address range of the second program area is "2150h" to "264Fh", the address range in which the code size of the CALLEX instruction can be set to 2 bytes is "2150h" to "224Fh".

(2)図42の例では、ROM54内において、第1プログラム領域、第1データ領域、第2プログラム領域、第2データ領域の順に配置したが、これに限られるものではなく、たとえば第2プログラム領域及び第2データ領域が第1プログラム領域及び第1データ領域よりも先に配置されていてもよい。また、ROM54の先頭アドレス(図42中、第1プログラム領域の前)に、所定の管理領域等が配置されていてもよい。
RWM53についても同様に、作業領域及びスタック領域の順に配置されていることに限らず、スタック領域及び作業領域の順に配置されていてもよい。また、第1作業領域、第1スタック領域、第2作業領域、第2スタック領域の順に配置したが、これに限られるものではなく、たとえば第2作業領域及び第2スタック領域が第1作業領域及び第1スタック領域よりも先に配置されていてもよい。さらにまた、RWM53の先頭アドレス(図42中、第1作業領域の前)に、所定の管理領域等が配置されていてもよい。
(2) In the example of Fig. 42, the first program area, the first data area, the second program area, and the second data area are arranged in this order in ROM 54, but this is not limited thereto, and for example, the second program area and the second data area may be arranged before the first program area and the first data area. Also, a predetermined management area or the like may be arranged at the top address of ROM 54 (before the first program area in Fig. 42).
Similarly, the RWM 53 is not limited to being arranged in the order of the work area and the stack area, and may be arranged in the order of the stack area and the work area. Also, although the first work area, the first stack area, the second work area, and the second stack area are arranged in this order, this is not limited, and for example, the second work area and the second stack area may be arranged before the first work area and the first stack area. Furthermore, a predetermined management area or the like may be arranged at the top address of the RWM 53 (before the first work area in FIG. 42).

(3)内蔵レジスタ領域において、各レジスタバンクには、それぞれメインレジスタとサブレジスタとを設けたが、これに限らず、少なくともメインレジスタを備えるものであればよい。
(4)図43において、FレジスタのD3ビットにレジスタバンクモニタを割り当てたが、これに限られるものではなく、どのビットに割り当ててもよい。たとえば第2ゼロフラグを使用しない場合には、D5ビットでもよい。
また、Fレジスタ内の特定ビットにレジスタバンクモニタを割り当てるのではなく、レジスタバンクモニタ専用のレジスタを設けることも可能である。
(3) In the built-in register area, each register bank is provided with a main register and a sub-register, but this is not limiting and any register bank may be used as long as it has at least a main register.
(4) In Fig. 43, the register bank monitor is assigned to the D3 bit of the F register, but this is not limited to this and it may be assigned to any bit. For example, if the second zero flag is not used, it may be assigned to the D5 bit.
Also, rather than assigning the register bank monitor to a specific bit in the F register, it is possible to provide a register dedicated to the register bank monitor.

(5)図42の例では、第1データ領域のアドレス範囲を「1200h」~「1DF3h」とし、当該範囲内であれば「mn」の範囲を12ビットで表すことができると説明した。
ここで、
1200h=0000/0000/0000(B)
としたとき、
1111/1111/1111(B)=FFFh
である。
そして、
1200h+FFFh=21FFh
である。
このため、第1データ領域の範囲が「1200h」~「21FFh」の範囲内であれば、「mn」の範囲を12ビットで表すことができ、「LDF HL,mn」のコードサイズを2バイトで構成可能となる。
(5) In the example of FIG. 42, the address range of the first data area is from "1200h" to "1DF3h," and it has been explained that within this range the range of "mn" can be expressed in 12 bits.
Where:
1200h=0000/0000/0000(B)
When
1111/1111/1111(B) = FFFh
It is.
and,
1200h+FFFh=21FFh
It is.
Therefore, if the range of the first data area is within the range of "1200h" to "21FFh", the range of "mn" can be expressed in 12 bits, and the code size of "LDF HL, mn" can be configured as 2 bytes.

(6)図42に示す第1スタック領域、及び第2スタック領域のアドレス範囲及び大きさは一例であり、これに限られるものではない。たとえば第1スタック領域の範囲がアドレス「F1D0h」~「F2FFh」である場合には、図49のステップS2851では、「LD SP,F300h」となる。 (6) The address ranges and sizes of the first stack area and second stack area shown in FIG. 42 are examples and are not limited to these. For example, if the range of the first stack area is addresses "F1D0h" to "F2FFh", then in step S2851 of FIG. 49, it will be "LD SP, F300h".

(7)第3実施形態は、メダルレス遊技機に限らず、風営法上の回胴式遊技機や、ぱちんこ遊技機にも適用することができる。さらには、遊技球を用いるパロット、カジノマシンにも適用することができる。
(8)第1~第3実施形態、及び第1~第3実施形態で示した各種の変形例は、単独で実施されることに限らず、適宜組み合わせて実施することが可能である。
(7) The third embodiment can be applied not only to medalless gaming machines, but also to slot machines and pachinko machines under the Entertainment and Amusement Act. Furthermore, it can be applied to Parrot and casino machines that use game balls.
(8) The first to third embodiments and the various modifications shown in the first to third embodiments are not limited to being implemented alone, but may be implemented in appropriate combinations.

<第4実施形態>
第4実施形態における遊技機10は、第1及び第2実施形態と同様に、メダルレス遊技機(管理遊技機、封入式遊技機)である。
第4実施形態では、主制御基板50に設けられた1チップマイクロプロセッサ500が遊技媒体数制御を含む制御を実行するものである。
また、第4実施形態では、第3実施形態で説明したCALLEX命令、RETEX命令、及びレジスタバンク等を使用する。
図51は、第4実施形態における遊技機10を示すブロック図であり、図29(第2実施形態)に対応する図である。
第2実施形態の遊技機10では、図29で示したように、主制御基板50に加え、遊技媒体数制御基板100を備えていた。これに対し、第4実施形態の遊技機10は、遊技媒体数制御基板100を備えていない。
Fourth Embodiment
The gaming machine 10 in the fourth embodiment is a medal-less gaming machine (a managed gaming machine, an enclosed gaming machine) similar to the first and second embodiments.
In the fourth embodiment, a one-chip microprocessor 500 provided on a main control board 50 executes control including control of the number of game media.
In the fourth embodiment, the CALLEX instruction, the RETEX instruction, the register bank, and the like described in the third embodiment are used.
FIG. 51 is a block diagram showing a gaming machine 10 in the fourth embodiment, and corresponds to FIG. 29 (second embodiment).
29, the gaming machine 10 of the second embodiment includes a game media number control board 100 in addition to the main control board 50. In contrast, the gaming machine 10 of the fourth embodiment does not include the game media number control board 100.

図51において、主制御基板50には、1チップマイクロプロセッサ500が設けられている。1チップマイクロプロセッサ500は、CPU(マイクロプロセッサ。図51では「主CPU501」と称する。)、ROM(リードオンメモリ)、及びRWM(リードライトメモリ)を1チップ化することにより外部からの不正なアクセスを遮断し、高いセキュリティ性を確保したものである。 In FIG. 51, a one-chip microprocessor 500 is provided on the main control board 50. The one-chip microprocessor 500 has a CPU (microprocessor, referred to as the "main CPU 501" in FIG. 51), a ROM (read-on-memory), and a RWM (read-write memory) all integrated into a single chip, blocking unauthorized access from outside and ensuring high security.

図51において、主CPU501は、図29(第2実施形態)の「第1主制御CPU55」に相当する。ここで、図29における第1主制御CPU55は、遊技媒体数に関する制御を実行しなかった。第2実施形態において、遊技媒体数に関する制御は、遊技媒体数制御基板100に設けられた第2主制御CPU105によって実行した。 In FIG. 51, the main CPU 501 corresponds to the "first main control CPU 55" in FIG. 29 (second embodiment). Here, the first main control CPU 55 in FIG. 29 did not execute control regarding the number of gaming media. In the second embodiment, control regarding the number of gaming media was executed by the second main control CPU 105 provided on the gaming media number control board 100.

これに対し、第4実施形態では、上述したように遊技媒体数制御基板100、すなわち第2主制御CPU105は設けられていない。このため、第4実施形態では、主CPU501が遊技媒体数に関する制御を実行する。なお、主CPU501は、他の実施形態におけるメイン制御基板50上のCPU55(第1実施形態におけるメインCPU55、第2実施形態における第1主制御CPU55)と同様に、遊技の進行に関する制御(リールの駆動制御、役抽選等)、その他の制御(試験機に対する試験信号の出力制御、役比モニタ113の表示制御等)を行うことはもちろんである。 In contrast, in the fourth embodiment, as described above, the game media number control board 100, i.e., the second main control CPU 105, is not provided. Therefore, in the fourth embodiment, the main CPU 501 executes control related to the number of game media. Note that the main CPU 501, like the CPU 55 on the main control board 50 in the other embodiments (the main CPU 55 in the first embodiment, the first main control CPU 55 in the second embodiment), naturally performs control related to the progress of the game (reel drive control, role selection, etc.) and other controls (output control of test signals to the test machine, display control of the role ratio monitor 113, etc.).

図51において、主制御ROM502は、遊技の進行に関する制御を行うためのプログラムやデータを記憶する記憶手段であり、主制御RWM503は、遊技の進行に関する制御を行う際にデータを一時的に記憶しておくための記憶手段である。
さらにまた、遊技媒体数制御ROM502は、遊技媒体数に関する制御(遊技媒体の付与数の算出、遊技媒体の付与処理等)を行うためのプログラムやデータを記憶する記憶手段であり、遊技媒体数制御RWM503は、遊技媒体数に関する制御を行う際にデータを一時的に記憶しておくための記憶手段である。
In Figure 51, the main control ROM 502 is a storage means for storing programs and data for controlling the progress of the game, and the main control RWM 503 is a storage means for temporarily storing data when controlling the progress of the game.
Furthermore, the game media number control ROM 502 is a storage means for storing programs and data for controlling the number of game media (calculating the number of game media awarded, processing the awarding of game media, etc.), and the game media number control RWM 503 is a storage means for temporarily storing data when controlling the number of game media.

「遊技媒体数制御」とは、
(1)貸し出され若しくは入賞により獲得された遊技媒体(メダル等)を受け皿に送出するための制御(遊技媒体(メダル)が有体物である場合)、
又は、
(2)貸し出され若しくは入賞により獲得された遊技媒体数を示す信号を遊技媒体数表示装置(遊技球数表示装置又はメダル数表示装置)に送信するための制御(遊技媒体(メダル)が無体物である場合)
をいう。
遊技媒体数制御ROM504に記憶されているプログラム、並びに遊技媒体数制御ROM504及び遊技媒体数制御RWM505に記憶されているデータについては、遊技媒体数制御のみを行うために設けられており、遊技媒体数制御以外の制御を行うことはない。
"Control of the number of gaming media" means
(1) Control for sending game media (medals, etc.) that have been lent or won by winning to a tray (when the game media (medals) are tangible objects);
Or,
(2) Control for transmitting a signal indicating the number of game media lent or won by winning to a game media number display device (game ball number display device or medal number display device) (when game media (medals) are intangible assets)
This refers to.
The programs stored in the game media number control ROM 504, and the data stored in the game media number control ROM 504 and the game media number control RWM 505 are provided only for the purpose of controlling the number of game media, and do not perform any control other than controlling the number of game media.

なお、「遊技媒体数制御」は、「メダル数制御」と称する場合もある。この場合には「メダル数制御ROM」、「メダル数制御RWM」等と称される。ただし、第2実施形態でも説明したように、メダルレス遊技機は、有体物としてのメダルを用いない。このため、メダルレス遊技機における「メダル」とは、遊技の用に供する遊技媒体(遊技価値)を指す。したがって、「メダル」と称するときは、現行風営法上の回胴式遊技機で用いられるメダル(遊技メダル)を指す場合と、無体物としてのメダル(たとえば、電子データ)を指す場合とを有する。なお、無体物としてのメダルは、遊技媒体、遊技価値、得点(又は単に「点」)、電子メダル、電子データ、電子情報、電子遊技媒体、電子遊技価値等と称する場合がある。 Note that "game media number control" may also be referred to as "medal number control." In this case, it is referred to as "medal number control ROM" or "medal number control RWM." However, as explained in the second embodiment, medalless gaming machines do not use medals as tangible objects. Therefore, "medals" in medalless gaming machines refer to gaming media (game value) used for gaming. Therefore, when referring to "medals," it may refer to medals (game medals) used in slot-type gaming machines under the current Entertainment and Amusement Act, or medals as intangible objects (for example, electronic data). Note that medals as intangible objects may be referred to as game media, game value, points (or simply "points"), electronic medals, electronic data, electronic information, electronic gaming media, electronic gaming value, etc.

さらに、「遊技媒体数制御」における「遊技媒体」は、風営法上のぱちんこ遊技機で用いられる遊技媒体(遊技球)を含むものである。換言すれば、第4実施形態における「遊技媒体数制御」は、ぱちんこ遊技機に適用可能であることはもちろんである。 Furthermore, the "game media" in the "game media number control" includes the game media (game balls) used in pachinko gaming machines under the Entertainment and Amusement Act. In other words, the "game media number control" in the fourth embodiment is of course applicable to pachinko gaming machines.

現行の風営法規則では、「主制御基板50に装着されるROM及びRWMの総数は、すべての主基板を通じてそれぞれ1個を超えるものでないこと(ただし、遊技媒体数制御に規定するものを除く。)」と規定されている。
さらに、「主制御基板50に装着されるROM及びRWMであって、遊技媒体数制御のためのものの総数は、すべての主基板を通じてそれぞれ1個を超えるものでないこと」と規定されている。
よって、
主制御ROM502:1個
主制御RWM503:1個
遊技媒体数制御ROM504:1個
遊技媒体数制御RWM505:1個
と定められる。
なお、上記4個の記憶手段は、物理的に分離していることを意味するものではなく、後述するように、1つの内蔵メモリ内に設けられている。
Current Entertainment and Amusement Business Act regulations stipulate that "the total number of ROMs and RWMs installed on main control board 50 must not exceed one each across all main boards (excluding those stipulated in the control of the number of gaming media)."
Furthermore, it is stipulated that "the total number of ROMs and RWMs mounted on the main control board 50 for controlling the number of gaming media must not exceed one each across all main boards."
Therefore,
Main control ROM 502: 1 unit, main control RWM 503: 1 unit, game media number control ROM 504: 1 unit, game media number control RWM 505: 1 unit.
It should be noted that the above four storage means are not meant to be physically separate, but are provided within a single built-in memory, as will be described later.

使用領域外ROM506は、使用領域内ROMに記憶されるプログラム又はデータ以外の記憶手段であり、使用領域外RWM507は、使用領域内RWMに記憶されるデータ以外を記憶する記憶手段である。
ここで、「使用領域外」とは、遊技機10の試験に必要な信号の出力制御及び不正防止を目的として使用される記憶領域をいう。さらに、「不正防止を目的として使用される」プログラム及びデータとは、たとえば役比モニタ113の表示制御に必要なプログラム及びデータが挙げられる。使用領域外のROMやRWMに配置するプログラム及びデータは、遊技の公正を害さないものであることが必要である。
なお、「使用領域」以外の領域が「使用領域外」となり、「使用領域」は「使用領域内」とも称される。
したがって、主制御ROM502及び遊技媒体数制御ROM504は、使用領域内ROMである。
また、主制御RWM503及び遊技媒体数制御RWM505は、使用領域内RWMである。
The outside-of-use ROM 506 is a storage means for storing programs or data other than those stored in the inside-use ROM, and the outside-of-use RWM 507 is a storage means for storing data other than those stored in the inside-use RWM.
Here, "outside the area of use" refers to a storage area used for the purpose of controlling the output of signals necessary for testing the gaming machine 10 and preventing fraud. Furthermore, programs and data "used for the purpose of preventing fraud" include, for example, programs and data necessary for display control of the winning ratio monitor 113. Programs and data placed in the ROM or RWM outside the area of use must not impair the fairness of the game.
It should be noted that the area other than the "area of use" is referred to as the "outside area of use", and the "area of use" is also referred to as the "inside area of use".
Therefore, the main control ROM 502 and the game media number control ROM 504 are ROMs within the used area.
In addition, the main control RWM 503 and the game media count control RWM 505 are RWMs within the usage area.

以上の主制御ROM502、主制御RWM503、遊技媒体数制御ROM504、遊技媒体数制御RWM505、使用領域外ROM506、及び使用領域外RWM507は、1チップマイクロプロセッサ500内部の内蔵メモリとして設けられている。詳細は後述するが、これらのROM及びRWMは、アドレス順に所定の順序で並べられている。
換言すると、当該内蔵メモリ内に、主制御ROM502、主制御RWM503、遊技媒体数制御ROM504、遊技媒体数制御RWM505、使用領域外ROM506、及び使用領域外RWM507がそれぞれ分割して配置されている。
ただし、主制御ROM502、遊技媒体数制御ROM504、使用領域外ROM506については、それぞれが明示的に区分された領域に配置されている。
同様に、主制御RWM503、遊技媒体数制御RWM505、使用領域外RWM507についても、それぞれが明示的に区分された領域に配置されている。
The main control ROM 502, main control RWM 503, game media count control ROM 504, game media count control RWM 505, outside-usage-area ROM 506, and outside-usage-area RWM 507 are provided as built-in memories within the one-chip microprocessor 500. As will be described in detail later, these ROMs and RWMs are arranged in a predetermined order in the order of addresses.
In other words, within the built-in memory, a main control ROM 502, a main control RWM 503, a game media number control ROM 504, a game media number control RWM 505, an outside used area ROM 506, and an outside used area RWM 507 are each divided and arranged.
However, the main control ROM 502, the game media count control ROM 504, and the outside use area ROM 506 are each located in an area that is explicitly separated.
Similarly, the main control RWM 503, the game media count control RWM 505, and the outside-usage-area RWM 507 are each placed in an explicitly divided area.

第4実施形態では、第2実施形態のように遊技媒体数制御基板100が設けられていないことから、第2実施形態における遊技媒体数制御基板100に設けられていた総遊技媒体数クリアスイッチ112及び役比モニタ113は、主制御基板50に設けられている。なお、上述したように、役比モニタ113に所定の比率を表示するための制御は、使用領域外ROM506及び使用領域外RWM507に記憶されたプログラム及びデータに基づいて実行される。なお、総遊技媒体数クリアスイッチ112は、主制御基板50に直接設けられている場合だけでなく、主制御基板50と電気的に接続されている(たとえば、総遊技媒体数クリアスイッチ112を搭載した基板と主制御基板50とが電気的に接続されている)ように構成されていてもよい。
また、遊技媒体数表示基板(遊技媒体数表示装置)120は、第2実施形態では遊技媒体数制御基板100と電気的に接続されているが、第4実施形態では主制御基板50と電気的に接続されている。遊技媒体数表示部121に遊技媒体数を表示するための制御は、遊技媒体数制御ROM504及び遊技媒体数制御RWM505に記憶されたプログラム及びデータに基づいて実行される。
In the fourth embodiment, since the game media number control board 100 as in the second embodiment is not provided, the total game media number clear switch 112 and the role ratio monitor 113 provided on the game media number control board 100 in the second embodiment are provided on the main control board 50. As described above, the control for displaying a predetermined ratio on the role ratio monitor 113 is executed based on the program and data stored in the out-of-use area ROM 506 and the out-of-use area RWM 507. The total game media number clear switch 112 may be directly provided on the main control board 50, or may be electrically connected to the main control board 50 (for example, the board on which the total game media number clear switch 112 is mounted is electrically connected to the main control board 50).
In addition, the game media number display board (game media number display device) 120 is electrically connected to the game media number control board 100 in the second embodiment, but is electrically connected to the main control board 50 in the fourth embodiment. Control for displaying the number of game media on the game media number display unit 121 is executed based on programs and data stored in the game media number control ROM 504 and the game media number control RWM 505.

計数スイッチ47は、第2実施形態では遊技媒体数制御基板100と電気的に接続されているが、第4実施形態では主制御基板50と電気的に接続されている。
接続端子板130は、第2実施形態では遊技媒体数制御基板100と電気的に接続されているが、第4実施形態では主制御基板50と電気的に接続されている。
なお、第2実施形態の図29では、副制御基板80の副制御RWM83、副制御ROM84、及び副制御CPU85を図示しているが、これらは主制御基板50と同様に副制御基板80の1チップマイクロプロセッサに内蔵されているものである。このため、図51では、主制御基板50の1チップマイクロプロセッサ500と同様に、副制御基板80の1チップマイクロプロセッサ80aを図示している。
The counting switch 47 is electrically connected to the game media number control board 100 in the second embodiment, but is electrically connected to the main control board 50 in the fourth embodiment.
The connection terminal board 130 is electrically connected to the game media number control board 100 in the second embodiment, but is electrically connected to the main control board 50 in the fourth embodiment.
29 of the second embodiment illustrates the sub-control RWM 83, sub-control ROM 84, and sub-control CPU 85 of the sub-control board 80, which are built into the one-chip microprocessor of the sub-control board 80, similar to the main control board 50. For this reason, in FIG. 51, the one-chip microprocessor 80a of the sub-control board 80 is illustrated, similar to the one-chip microprocessor 500 of the main control board 50.

図52は、主制御基板50の1チップマイクロプロセッサ500内に設けられた内蔵メモリ(ROM及びRWM等)のメモリマップを示す図である。図52では、内蔵メモリのうち、本実施形態に係る部分のみを示しており、内蔵メモリのすべてを示しているわけではない。
なお、第3実施形態の図42中、「プログラム領域」と、図52等における「制御領域」は、称呼が異なるが、機能は同一である。
Fig. 52 is a diagram showing a memory map of the built-in memory (ROM, RWM, etc.) provided in the one-chip microprocessor 500 of the main control board 50. Fig. 52 shows only the part of the built-in memory that is related to this embodiment, and does not show all of the built-in memory.
In the third embodiment, the "program area" in FIG. 42 and the "control area" in FIG. 52 etc. are called differently, but have the same function.

また、記憶領域の区分については後述するが、図52において、主制御ROM502及び遊技媒体数制御ROM504は使用領域のROMとし、これら以外に、使用領域外ROM506を設けている。同様に、主制御RWM503及び遊技媒体数制御RWM505は使用領域のRWMとし、これら以外に、使用領域外RWM507を設けている。
主制御ROM502及び遊技媒体数制御ROM504は、使用領域のROMであるので、遊技の進行に関係する(遊技媒体数の制御を含む)プログラム及びデータを記憶するための領域に相当する。これに対し、使用領域外ROM506は、使用領域外のROMであるので、遊技の進行に関係しないプログラム及びデータを記憶するための領域に相当する。特に本実施形態では、使用領域外ROM506は、役比モニタ113の表示制御に関するプログラム及びデータを記憶するための記憶領域、並びに試験信号の出力制御に関するプログラム及びデータを記憶するための記憶領域に相当する。
52, the main control ROM 502 and the game media number control ROM 504 are used area ROMs, and in addition to these, there is provided an outside-area ROM 506. Similarly, the main control RWM 503 and the game media number control RWM 505 are used area RWMs, and in addition to these, there is provided an outside-area RWM 507.
The main control ROM 502 and the number of game media control ROM 504 are ROMs in the usage area, and therefore correspond to areas for storing programs and data related to the progress of the game (including control of the number of game media). In contrast, the non-usage area ROM 506 is a ROM outside the usage area, and therefore corresponds to an area for storing programs and data not related to the progress of the game. In particular, in this embodiment, the non-usage area ROM 506 corresponds to a memory area for storing programs and data related to the display control of the role ratio monitor 113, and a memory area for storing programs and data related to the output control of the test signal.

主制御ROM502、遊技媒体数制御ROM504、及び使用領域外ROM506の各記憶領域は、いずれも、制御領域とデータ領域とを備える。
ここで、「データ領域」とは、プログラム以外の情報のみが記憶され、又は記憶されることとなる記憶領域をいう。
第4実施形態では、主制御に関する記憶領域を「領域1」とし、遊技媒体数制御に関する記憶領域を「領域2」とし、使用領域外の記憶領域を「領域3」と称する。
Each of the storage areas of the main control ROM 502, the game media number control ROM 504, and the outside area ROM 506 includes a control area and a data area.
Here, the "data area" refers to a storage area in which only information other than programs is stored or will be stored.
In the fourth embodiment, the memory area related to main control is referred to as "area 1", the memory area related to game media count control is referred to as "area 2", and the memory area outside the used area is referred to as "area 3".

ROMは、アドレス「0000h」~「2FFFh」の範囲を少なくとも有し、「16K」バイト以下の記憶領域を有する。この記憶領域中、主制御ROM502の制御領域1は「4.5K」バイト以下、データ領域1は「3.0K」バイト以下に設定されている。
また、遊技媒体数制御ROM504の記憶領域は、制御領域2及びデータ領域2の合計で「2.5K」バイト以下に設定されている。
The ROM has at least an address range of "0000h" to "2FFFh" and a storage area of 16K bytes or less. Within this storage area, the control area 1 of the main control ROM 502 is set to 4.5K bytes or less, and the data area 1 is set to 3.0K bytes or less.
The storage area of the game media number control ROM 504 is set to a total of 2.5K bytes or less for the control area 2 and data area 2.

さらに、RWM中、主制御RWM503の記憶領域であるRWM領域1は、制御領域1に記憶されたプログラム(遊技の進行に関するプログラム)の実行中に使用される(更新される、参照される)記憶領域である。同様に、遊技媒体数制御RWM505の記憶領域であるRWM領域2は、制御領域2に記憶されたプログラム(遊技媒体数の制御に関するプログラム)の実行中に使用される(更新される、参照される)記憶領域である。さらに、使用領域外RWM507の記憶領域であるRWM領域3は、制御領域3に記憶されたプログラムの実行中に使用される(更新される、参照される)記憶領域である。
RWMの領域は、全体として「1024K」バイト以下に設定されている。さらに、RWM領域1及びRWM領域2は、それぞれ「512K」バイト以下に設定されている。
Furthermore, during RWM, RWM area 1, which is the memory area of the main control RWM 503, is a memory area used (updated, referenced) during execution of a program (program related to the progress of the game) stored in control area 1. Similarly, RWM area 2, which is the memory area of the game media count control RWM 505, is a memory area used (updated, referenced) during execution of a program (program related to control of the number of game media) stored in control area 2. Furthermore, RWM area 3, which is the memory area of the outside use area RWM 507, is a memory area used (updated, referenced) during execution of a program stored in control area 3.
The RWM area is set to 1024K bytes or less as a whole. Furthermore, RWM area 1 and RWM area 2 are each set to 512K bytes or less.

主制御ROM502、遊技媒体数制御ROM504、及び使用領域外ROM506の各間には、未使用領域が介在していてもよく(図52の例)、あるいは主制御ROM502、遊技媒体数制御ROM504、及び使用領域外ROM506が連続するアドレスで配置されていてもよい。
同様に、主制御RWM503、遊技媒体数制御RWM505、及び使用領域外RWM507は連続するアドレスで配置されていてもよく(図52の例)、あるいは主制御RWM503、遊技媒体数制御RWM505、及び使用領域外RWM507の各間に未使用領域等が介在していてもよい。
An unused area may be interposed between the main control ROM 502, the game media number control ROM 504, and the ROM outside the used area 506 (example of Figure 52), or the main control ROM 502, the game media number control ROM 504, and the ROM outside the used area 506 may be arranged at consecutive addresses.
Similarly, the main control RWM 503, the game media number control RWM 505, and the RWM outside the area in use 507 may be arranged at consecutive addresses (example of Figure 52), or unused areas or the like may be interposed between the main control RWM 503, the game media number control RWM 505, and the RWM outside the area in use 507.

また、内蔵メモリ内には、1つの内蔵レジスタ領域を備えている。さらにこの内蔵レジスタ領域には、レジスタバンク0とレジスタバンク1とを備える。レジスタバンク0及びレジスタバンク1は、図42(第3実施形態)で説明したレジスタバンク0及びレジスタバンク1と同様のものであり、それぞれのレジスタバンクには各種のレジスタ(図42(B)参照)を備える。 The built-in memory also has one built-in register area. This built-in register area further has register bank 0 and register bank 1. Register bank 0 and register bank 1 are similar to register bank 0 and register bank 1 described in Figure 42 (third embodiment), and each register bank has various registers (see Figure 42 (B)).

詳細は後述するが、レジスタバンク0又はレジスタバンク1の各レジスタは、制御領域1、制御領域2、又は制御領域3のいずれかに記憶されたプログラムを実行しているときに使用される。
具体的には、たとえば以下のように振り分けることが挙げられる。
(1)パターン1
レジスタバンク0:制御領域1に記憶されたプログラムを実行しているときに使用
レジスタバンク1:制御領域2及び制御領域3に記憶されたプログラムを実行しているときに使用
(2)パターン2
レジスタバンク0:制御領域1及び制御領域2に記憶されたプログラムを実行しているときに使用
レジスタバンク1:制御領域3に記憶されたプログラムを実行しているときに使用
As will be described in more detail below, each register in register bank 0 or register bank 1 is used when a program stored in either control area 1, control area 2, or control area 3 is being executed.
Specifically, for example, the allocation can be as follows:
(1) Pattern 1
Register bank 0: Used when executing a program stored in control area 1. Register bank 1: Used when executing programs stored in control area 2 and control area 3. (2) Pattern 2
Register bank 0: Used when the programs stored in control area 1 and control area 2 are being executed. Register bank 1: Used when the program stored in control area 3 is being executed.

(3)パターン3
レジスタバンク0:制御領域1及び制御領域3に記憶されたプログラムを実行しているときに使用
レジスタバンク1:制御領域2に記憶されたプログラムを実行しているときに使用
(4)その他のパターン
本実施形態では2つのレジスタバンクを設けているが、たとえばレジスタバンクを3つ(制御領域ごとに)設け、
レジスタバンク0:制御領域1に記憶されたプログラムを実行しているときに使用
レジスタバンク1:制御領域2に記憶されたプログラムを実行しているときに使用
レジスタバンク2:制御領域3に記憶されたプログラムを実行しているときに使用
とすることも可能である。
(3) Pattern 3
Register bank 0: Used when the programs stored in control area 1 and control area 3 are being executed. Register bank 1: Used when the program stored in control area 2 is being executed. (4) Other patterns In this embodiment, two register banks are provided. However, for example, three register banks (one for each control area) may be provided,
It is also possible to configure the following: Register bank 0: Used when a program stored in control area 1 is being executed; Register bank 1: Used when a program stored in control area 2 is being executed; Register bank 2: Used when a program stored in control area 3 is being executed.

また、図52に示すように、RWM領域1、RWM領域2、RWM領域3には、それぞれ固有のスタック領域1、スタック領域2、スタック領域3が設けられている。主制御ROM502のプログラムはスタック領域1を利用し、遊技媒体数制御ROM504のプログラムはスタック領域2を利用し、使用領域外ROM506のプログラムはスタック領域3を利用する。そして、主制御ROM502のプログラム、遊技媒体数制御ROM504のプログラム、及び使用領域外ROM506のプログラムは、それぞれ、スタック領域を共用しないように構成されている。具体的には、たとえば主制御ROM502のプログラムと遊技媒体数制御ROM504のプログラムとでスタック領域1を共用するようなことはしない。
さらに、主制御ROM502のプログラム、遊技媒体数制御ROM504のプログラム、及び使用領域外ROM506のプログラムは、いずれも、対応するスタック領域(たとえば主制御ROM502のプログラムではスタック領域1)以外のスタック領域を使用しないように構成されている。具体的には、たとえば主制御ROM502のプログラムがスタック領域3を使用するようなことはしない。
52, RWM area 1, RWM area 2, and RWM area 3 are provided with their own stack area 1, stack area 2, and stack area 3, respectively. The program in main control ROM 502 uses stack area 1, the program in number of game media control ROM 504 uses stack area 2, and the program in outside used area ROM 506 uses stack area 3. The programs in main control ROM 502, number of game media control ROM 504, and outside used area ROM 506 are configured not to share stack areas. Specifically, for example, stack area 1 is not shared between the program in main control ROM 502 and the program in number of game media control ROM 504.
Furthermore, the programs in the main control ROM 502, the game media count control ROM 504, and the programs in the outside area used ROM 506 are all configured not to use stack areas other than the corresponding stack areas (for example, stack area 1 in the program in the main control ROM 502). Specifically, for example, the program in the main control ROM 502 will not use stack area 3.

以上説明したように、第4実施形態では、
(1)「制御領域1」、「データ領域1」とは、主制御ROM502(使用領域)の記憶領域を指し、
(2)「制御領域2」、「データ領域2」とは、遊技媒体数制御ROM504(使用領域)の記憶領域を指し、
(3)「制御領域3」、「データ領域3」とは、使用領域外ROM506の記憶領域を指し、
(4)「RWM領域1」とは主制御RWM503(使用領域)の記憶領域を指し、「スタック領域1」とはRWM領域1のスタック領域を指し、
(5)「RWM領域2」とは、遊技媒体数制御RWM505(使用領域)の記憶領域を指し、「スタック領域2」とはRWM領域2のスタック領域を指し、
(6)「RWM領域3」とは、使用領域外RWM507の記憶領域を指し、「スタック領域3」とはRWM領域3のスタック領域を指す
ものとする。
As described above, in the fourth embodiment,
(1) "Control Area 1" and "Data Area 1" refer to the storage areas of the main control ROM 502 (usage area),
(2) “Control Area 2” and “Data Area 2” refer to the storage areas of the game media count control ROM 504 (usage area).
(3) “Control Area 3” and “Data Area 3” refer to storage areas of ROM 506 outside the area in use,
(4) "RWM area 1" refers to the memory area of the main control RWM 503 (usage area), and "stack area 1" refers to the stack area of RWM area 1.
(5) "RWM area 2" refers to the memory area of the game media count control RWM 505 (usage area), and "stack area 2" refers to the stack area of RWM area 2.
(6) “RWM area 3” refers to the memory area of RWM 507 outside the area in use, and “stack area 3” refers to the stack area of RWM area 3.

図53は、主制御領域、遊技媒体数制御領域、使用領域外領域の区分例を示す図であり、(A)は例1を示し、(B)は例2を示す。
図中(A)の例1では、主制御領域内には使用領域外を設けないようにしたものである。換言すれば、主制御領域及び遊技媒体数制御領域の外部に使用領域外を設けたものである。
この場合には、
(1)主制御領域
遊技の進行に関するプログラム及びデータを記憶するための記憶領域(主制御ROM502及び主制御RWM503)を含み、遊技機10の試験に必要な信号の出力制御及び不正防止を目的として使用される記憶領域(使用領域外ROM506及び使用領域外RWM507)を含まない。
(2)遊技媒体数制御領域
遊技媒体数の制御に係るプログラム及びデータを記憶するための記憶領域(遊技媒体数制御ROM504、遊技媒体数制御RWM505)
(3)使用領域外領域
遊技機10の試験に必要な信号の出力制御及び不正防止を目的として使用される記憶領域(使用領域外ROM506及び使用領域外RWM507)
となる。
FIG. 53 shows examples of division into the main control area, the game media count control area, and the area outside the use area, where (A) shows example 1 and (B) shows example 2.
In Example 1 in FIG. 1A, no outside use area is provided within the main control area. In other words, an outside use area is provided outside the main control area and the game media count control area.
In this case,
(1) Main control area: Includes memory areas (main control ROM 502 and main control RWM 503) for storing programs and data related to the progress of the game, but does not include memory areas (outside use area ROM 506 and outside use area RWM 507) used for the purpose of controlling the output of signals necessary for testing the gaming machine 10 and preventing fraud.
(2) Game Media Number Control Area A storage area for storing programs and data related to control of the number of game media (game media number control ROM 504, game media number control RWM 505)
(3) Outside the Use Area: A storage area used for controlling the output of signals necessary for testing the gaming machine 10 and for preventing fraud (a ROM outside the use area 506 and a RWM outside the use area 507).
It becomes.

また、図中(B)の例2では、主制御領域に、使用領域及び使用領域外を設けたものである。なお、遊技媒体数制御領域は、使用領域のみであり、使用領域外を有さない。上述したように、遊技媒体数制御領域は、遊技媒体数に係る制御のみを実行するためのプログラム及びデータを記憶する記憶領域であるためである。さらに、主制御領域及び遊技媒体数制御領域の外部に使用領域外を有さない。
この場合には、
(1)主制御領域
遊技の進行に関するプログラム及びデータを記憶するための記憶領域(主制御ROM502及び主制御RWM503)、及び遊技機10の試験に必要な信号の出力制御及び不正防止を目的として使用される記憶領域(使用領域外ROM506及び使用領域外RWM507)
(2)遊技媒体数制御領域
遊技媒体数の制御に係るプログラム及びデータを記憶するための記憶領域(遊技媒体数制御ROM504、遊技媒体数制御RWM505)
となる。
Also, in Example 2 in the figure (B), a use area and an outside use area are provided in the main control area. Note that the game media number control area is only a use area and does not have an outside use area. This is because, as described above, the game media number control area is a storage area that stores programs and data for executing only control related to the number of game media. Furthermore, there is no outside use area outside the main control area and the game media number control area.
In this case,
(1) Main control area: A storage area for storing programs and data related to the progress of a game (main control ROM 502 and main control RWM 503), and a storage area used for the purpose of controlling the output of signals required for testing the gaming machine 10 and preventing fraud (outside use area ROM 506 and outside use area RWM 507).
(2) Game Media Number Control Area A storage area for storing programs and data related to control of the number of game media (game media number control ROM 504, game media number control RWM 505)
It becomes.

図54は、主制御領域(使用領域、使用領域外)及び遊技媒体数制御領域間における通信を示す図である。図54の例では、図53(B)の例2による記憶領域の区分をしている。すなわち、主制御領域内に使用領域と使用領域外とを備える。
主制御基板50に搭載される1チップマイクロプロセッサ500の1個の主CPU501におけるプログラムの実行は、主制御ROM502の制御領域1のプログラムを主とする。また、遊技媒体数制御ROM504の使用領域のプログラム及び使用領域外ROM506の領域のプログラムは、主制御ROM502の制御領域1のプログラムから、予め定められたアドレスを(換言すれば、「静的に」)呼び出された上で実行される。その際のプログラムリストにおいては、呼出し先アドレスが明らかに記載されているように構成されている。
また、遊技媒体数制御ROM504のプログラム及び使用領域外ROM506のプログラムは、機能ごとにモジュール化されており、主制御ROM502のプログラムによって呼び出された際には、主制御ROM502のプログラムで利用している全レジスタ(「全レジスタ」とは、複数のレジスタを指すため、「複数のレジスタ」とも称する。以下同じ。)が保護されるように構成されている。全レジスタを保護する場合には、以下の方法が挙げられる。
Fig. 54 is a diagram showing communication between the main control area (usage area, non-usage area) and the game media count control area. In the example of Fig. 54, the storage area is divided according to Example 2 of Fig. 53 (B). That is, the main control area includes a usage area and a non-usage area.
Program execution in one main CPU 501 of one-chip microprocessor 500 mounted on main control board 50 is mainly the program in control area 1 of main control ROM 502. Also, programs in the used area of game media number control ROM 504 and the area of outside used area ROM 506 are executed by calling a predetermined address (in other words, "statically") from the program in control area 1 of main control ROM 502. The program list at that time is configured so that the called address is clearly written.
In addition, the programs in the game media number control ROM 504 and the programs in the outside used area ROM 506 are modularized by function, and are configured so that when called by the program in the main control ROM 502, all registers used in the program in the main control ROM 502 ("all registers" refers to multiple registers, and is therefore also referred to as "multiple registers"; the same applies below) are protected. The following methods can be used to protect all registers.

(1)第1の方法
主制御ROM502のプログラムで使用するレジスタバンクと、遊技媒体数制御ROM504のプログラム及び使用領域外ROM506のプログラムで使用するレジスタバンクとを異ならせる。換言すれば、主制御ROM502のプログラムから、遊技媒体数制御ROM504のプログラム又は使用領域外ROM506のプログラムを呼び出し、遊技媒体数制御ROM504のプログラム又は使用領域外ROM506のプログラムを実行する場合には、レジスタバンクを切り替える。
(1) First Method The register bank used by the program in main control ROM 502 is made different from the register bank used by the program in number of game media control ROM 504 and the program in outside area of use ROM 506. In other words, when the program in main control ROM 502 calls the program in number of game media control ROM 504 or the program in outside area of use ROM 506 and executes the program in number of game media control ROM 504 or the program in outside area of use ROM 506, the register bank is switched.

(2)第2の方法
主制御ROM502のプログラムで使用するレジスタバンクと、遊技媒体数制御ROM504のプログラム又は使用領域外ROM506のプログラムで使用するレジスタバンクとを同一にする。この場合には、主制御ROM502のプログラムから遊技媒体数制御ROM504のプログラム又は使用領域外ROM506のプログラムを呼出して実行する際に、全レジスタの退避命令を実行する。
全レジスタを保護するプログラムについては後述する。
(2) Second Method The register bank used by the program in main control ROM 502 is made the same as the register bank used by the program in number of game media control ROM 504 or the program in outside area used ROM 506. In this case, when the program in main control ROM 502 calls and executes the program in number of game media control ROM 504 or the program in outside area used ROM 506, a command to save all registers is executed.
The program for protecting all registers will be described later.

主制御領域の使用領域において、制御領域1に記憶されたプログラムは、データ領域1に記憶されたデータを参照可能である。また、制御領域1に記憶されたプログラムは、RWM領域1に記憶されたデータを参照・更新可能である。
同様に、制御領域2に記憶されたプログラムは、データ領域2に記憶されたデータを参照可能であり、RWM領域2に記憶されたデータを参照・更新可能である。
さらに、制御領域3に記憶されたプログラムは、データ領域3に記憶されたデータを参照可能であり、RWM領域3に記憶されたデータを参照・更新可能である。
In the usage area of the main control area, the programs stored in the control area 1 can refer to the data stored in the data area 1. In addition, the programs stored in the control area 1 can refer to and update the data stored in the RWM area 1.
Similarly, the programs stored in the control area 2 can refer to the data stored in the data area 2, and can refer to and update the data stored in the RWM area 2.
Furthermore, the programs stored in the control area 3 can refer to the data stored in the data area 3, and can refer to and update the data stored in the RWM area 3.

一方、制御領域1のプログラムは、制御領域2のプログラムを呼び出すことが可能であり、制御領域3のプログラムを呼び出すことが可能である。具体的には、制御領域1のプログラムのCALLEX命令又はCALL命令に基づいて、制御領域2のプログラムを呼び出し、実行することが可能である。また、制御領域2のプログラムのRETEX命令又はRET命令に基づいて、制御領域2の当該プログラムの実行後に、制御領域1のプログラムの当該CALLEX命令又はCALL命令直後に復帰することが可能である。
同様に、制御領域1のプログラムのCALLEX命令又はCALL命令に基づいて、制御領域3のプログラムを呼び出し、実行することが可能である。また、制御領域3のプログラムのRETEX命令又はRET命令に基づいて、制御領域3の当該プログラムの実行後に、制御領域1のプログラムの当該CALLEX命令又はCALL命令直後に復帰することが可能である。
On the other hand, the program in control area 1 can call a program in control area 2, and can call a program in control area 3. Specifically, based on a CALLEX or CALL instruction in the program in control area 1, it is possible to call and execute a program in control area 2. Also, based on a RETEX or RET instruction in the program in control area 2, after the program in control area 2 is executed, it is possible to return to immediately after the CALLEX or CALL instruction in the program in control area 1.
Similarly, it is possible to call and execute a program in control area 3 based on a CALLEX or CALL instruction in the program in control area 1. Also, based on a RETEX or RET instruction in the program in control area 3, after the program in control area 3 is executed, it is possible to return to just after the CALLEX or CALL instruction in the program in control area 1.

これに対し、制御領域2のプログラムから制御領域1のプログラム(サブルーチン)を呼び出したり、制御領域2のプログラムから制御領域3のプログラム(サブルーチン)を呼び出すことはできないように構成されている。仮に、制御領域2のプログラムから制御領域1又は制御領域3のプログラム(サブルーチン)の呼出しを可能にすると、プログラムの構成が煩雑になるためである。また、主制御ROM502及び遊技媒体数制御ROM504の記憶容量に上限を設けた趣旨から逸脱するおそれがあるためである。 In contrast, the system is configured so that a program in control area 2 cannot call a program (subroutine) in control area 1, and a program in control area 2 cannot call a program (subroutine) in control area 3. If it were possible to call a program (subroutine) in control area 1 or control area 3 from a program in control area 2, the program configuration would become complicated. Also, this would be risky as it would deviate from the purpose of setting an upper limit on the storage capacity of main control ROM 502 and game media number control ROM 504.

同様に、制御領域3のプログラムから制御領域1のプログラム(サブルーチン)を呼び出したり、制御領域3のプログラムから制御領域2のプログラム(サブルーチン)を呼び出すことはできないように構成されている。仮に、制御領域3のプログラムから、制御領域1又は制御領域2のプログラム(サブルーチン)の呼出しを可能にすると、プログラムの構成が煩雑になるためである。また、主制御ROM502及び遊技媒体数制御ROM504の記憶容量に上限を設けた趣旨から逸脱するおそれがあるためである。 Similarly, it is configured so that a program in control area 3 cannot call a program (subroutine) in control area 1, and a program in control area 3 cannot call a program (subroutine) in control area 2. If it were possible to call a program (subroutine) in control area 1 or control area 2 from a program in control area 3, the program configuration would become complicated. Also, it is likely to deviate from the purpose of setting an upper limit on the storage capacity of main control ROM 502 and game media number control ROM 504.

さらにまた、制御領域1のプログラムにより、データ領域2のデータを直接参照することはできない。この場合には、制御領域1のプログラムから制御領域2のプログラムを呼び出し、制御領域2のプログラムによってデータ領域2のデータを参照する。
同様に、制御領域1のプログラムにより、データ領域3のデータを直接参照することはできない。この場合には、制御領域1のプログラムから制御領域3のプログラムを呼び出し、制御領域3のプログラムによってデータ領域3のデータを参照する。
Furthermore, the program in control area 1 cannot directly reference the data in data area 2. In this case, the program in control area 1 calls the program in control area 2, and the program in control area 2 references the data in data area 2.
Similarly, the program in control area 1 cannot directly reference the data in data area 3. In this case, the program in control area 1 calls the program in control area 3, and the program in control area 3 references the data in data area 3.

さらに、制御領域1のプログラムにより、RWM領域2のデータを更新することはできないが、RWM領域2のデータを参照することは可能であるように構成されている。
同様に、制御領域2のプログラムにより、RWM領域1のデータを更新することはできないが、RWM領域1のデータを参照することは可能であるように構成されている。
また、制御領域1のプログラムにより、RWM領域3のデータを更新することはできないが、RWM領域3のデータを参照することは可能であるように構成されている。
同様に、制御領域3のプログラムにより、RWM領域1のデータを更新することはできないが、RWM領域1のデータを参照することは可能であるように構成されている。
Furthermore, the program in the control area 1 is configured such that the data in the RWM area 2 cannot be updated, but the data in the RWM area 2 can be referenced.
Similarly, the data in the RWM area 1 cannot be updated by the program in the control area 2, but the data in the RWM area 1 can be referenced.
Further, the program in the control area 1 cannot update the data in the RWM area 3, but can refer to the data in the RWM area 3.
Similarly, the program in the control area 3 cannot update the data in the RWM area 1, but can refer to the data in the RWM area 1.

さらにまた、制御領域2のプログラムにより、RWM領域3のデータを更新することはできないが、RWM領域3のデータを参照することは可能であるように構成されている。
同様に、制御領域3のプログラムにより、RWM領域2のデータを更新することはできないが、RWM領域2のデータを参照することは可能であるように構成されている。
Furthermore, the data in the RWM area 3 cannot be updated by the program in the control area 2, but the data in the RWM area 3 can be referenced.
Similarly, the program in the control area 3 cannot update the data in the RWM area 2, but can refer to the data in the RWM area 2.

以上のように、制御領域「N」(「N」は、「1」、「2」、又は「3」のいずれか)のプログラムにより、RWM領域「M」(「M」は、「N」以外とする。)のデータを更新することができないように(参照は可能に)構成されている。
仮に、制御領域「N」のプログラムにより、RWM領域「M」のデータを更新可能とすると、図52に示すように、RWM領域1及びRWM領域2の容量の上限を「512K」バイトと定めた趣旨から逸脱してしまうことになるためである。
As described above, the data in the RWM area "M"("M" is any other than "N") cannot be updated (but can be referenced) by the program in the control area "N"("N" is either "1,""2," or "3").
If it were possible to update the data in RWM area "M" using a program in control area "N", this would deviate from the purpose of setting the upper limit of the capacity of RWM area 1 and RWM area 2 at "512K" bytes, as shown in FIG. 52.

また、制御領域1のプログラムの使用量削減のため、制御領域2又は制御領域3に、共通の汎用サブルーチンを設けないように構成されている。制御領域1のプログラムで使用可能な汎用サブルーチンを制御領域2又は制御領域3に設けると、制御領域1に記憶されるべきプログラムを実質的に制御領域2又は制御領域3に記憶可能となってしまい、制御領域1の記憶容量に上限(「4.5K」バイト以下)を設けた趣旨から逸脱してしまうおそれがあるためである。 In addition, to reduce the amount of program usage in control area 1, control area 2 or control area 3 is configured not to have common general-purpose subroutines. If general-purpose subroutines that can be used by programs in control area 1 were provided in control area 2 or control area 3, programs that should be stored in control area 1 would essentially be able to be stored in control area 2 or control area 3, which would deviate from the purpose of setting an upper limit on the storage capacity of control area 1 (4.5K bytes or less).

さらにまた、制御領域1、制御領域2、及び制御領域3の各プログラムのモジュールは、必ずサブルーチン形式で呼び出し、サブルーチン終了後はRETEX命令又はRET命令により呼出し直後に戻るように構成されている。さらに、モジュールは、目的ごとに1つ設けられる。このように構成することにより、プログラムの構成の明確化を図ることができる。
なお、「モジュール」とは、目的ごとのプログラムのまとまりを指す。
また、「サブルーチン」とは、CALLEX命令やCALL命令等によりメインルーチンから呼び出され、RETEX命令又はRET命令等により必ず呼出し直後に戻るプログラムのまとまりを指す。したがって、サブルーチンは、モジュールの下位概念であるといえる。
Furthermore, each program module in control area 1, control area 2, and control area 3 is always called in the form of a subroutine, and after the subroutine ends, the RETEX or RET command is used to return to the program immediately after it was called. Furthermore, one module is provided for each purpose. This configuration clarifies the program structure.
The term "module" refers to a group of programs for a specific purpose.
Moreover, a "subroutine" refers to a group of programs that is called from a main routine by a CALLEX instruction, CALL instruction, etc., and always returns to immediately after the call by a RETEX instruction, RET instruction, etc. Therefore, a subroutine can be said to be a subordinate concept to a module.

続いて、制御領域1、制御領域2、及び制御領域3のプログラムの具体例を説明する。
以下の図55~図57の例では、
制御領域1:主制御領域の使用領域
制御領域2:遊技媒体数制御領域(使用領域)
制御領域3:主制御領域の使用領域外
とする。
図55は、制御領域1、制御領域2、及び制御領域3のプログラムの例1を示す図である。例1では、制御領域1のプログラムはレジスタバンク0を使用し、制御領域2及び制御領域3のプログラムはレジスタバンク1を使用する。したがって、制御領域1のプログラムから制御領域2又は制御領域3のプログラムを呼び出し、制御領域2又は制御領域3のプログラムを実行する場合には、レジスタバンクをレジスタバンク0からレジスタバンク1に切り替える必要がある。
さらに、制御領域2又は制御領域3のプログラムを終了し、制御領域1のプログラムに復帰する場合には、レジスタバンクをレジスタバンク1からレジスタバンク0に切り替える(戻す)必要がある。
Next, specific examples of the programs in control area 1, control area 2, and control area 3 will be described.
In the following examples of Figures 55 to 57,
Control area 1: Main control area usage area Control area 2: Game media number control area (usage area)
Control area 3: Outside the area used by the main control area.
55 is a diagram showing example 1 of programs in control area 1, control area 2, and control area 3. In example 1, the program in control area 1 uses register bank 0, and the programs in control area 2 and control area 3 use register bank 1. Therefore, when calling a program in control area 2 or control area 3 from the program in control area 1 and executing the program in control area 2 or control area 3, it is necessary to switch the register bank from register bank 0 to register bank 1.
Furthermore, when the program in control area 2 or control area 3 is terminated and the program in control area 1 is returned to, it is necessary to switch (return) the register bank from register bank 1 to register bank 0.

なお、制御領域1のプログラム以外のプログラム(制御領域2のプログラムや制御領域3のプログラム)の実行中は、割込み処理が入ることにより他の領域のRWM領域のデータが更新されないように、割込み処理が禁止される。
また、禁止することができない割込み(NMI)は使用しないように構成されている。
In addition, while a program other than the program in control area 1 (a program in control area 2 or a program in control area 3) is being executed, interrupt processing is prohibited so that data in the RWM area of other areas is not updated due to interrupt processing.
Also, interrupts that cannot be disabled (NMI) are not used.

図55において、制御領域1のプログラムは、以下の通りである。
最初の「ORG 0000h」は、制御領域1の先頭アドレスが「0000h」であることを示す。
次の「M1_aaaaa」は、制御領域1の最初のプログラムを示す。
このプログラムにおいて、最初の「LD SP,@STACK1」は、SPレジスタ(スタックポインタレジスタ。ここでは、レジスタバンク0のSPレジスタを指す。)にスタック1をセットすることを示す。スタック1の初期値(@STACK1)は、図55に示すように「F200h」であり、この値をレジスタバンク0のSPレジスタに書き込む。
In FIG. 55, the program in control area 1 is as follows:
The initial "ORG 0000h" indicates that the top address of control area 1 is "0000h".
The next "M1_aaaaa" indicates the first program in control area 1.
In this program, the first "LD SP, @STACK1" indicates that stack 1 is to be set in the SP register (stack pointer register, here indicating the SP register of register bank 0). The initial value of stack 1 (@STACK1) is "F200h" as shown in FIG. 55, and this value is written to the SP register of register bank 0.

「CALLEX M2_nnnnn」は、プログラム「M2_nnnnn」を呼び出す命令である。この例では、プログラム「M2_nnnnn」は、制御領域2に記憶されている。
「CALLEX mn」の命令が実行されると、
(1)その時点において割込み許可状態であるか割込み禁止状態であるかにかかわらず、割込みを禁止し、
(2)レジスタバンクをレジスタバンク0からレジスタバンク1に切り替え、
(3)指定されるアドレスにコールする(呼び出す)
ことを実行する。
このように、第1制御領域のプログラムから第2制御領域又は第3制御領域のプログラムを実行する際に、CALLEX命令を実行することによって、第2制御領域又は第3制御領域のプログラムを実行可能とする。
"CALLEX M2_nnnnn" is a command to call the program "M2_nnnnn." In this example, the program "M2_nnnnn" is stored in the control area 2.
When the "CALLEX mn" command is executed,
(1) Disable interrupts regardless of whether the interrupt is enabled or disabled at that time.
(2) Switch the register bank from register bank 0 to register bank 1,
(3) Call the specified address
To carry out the task.
In this way, when executing a program in the second control area or the third control area from a program in the first control area, the program in the second control area or the third control area can be executed by executing a CALLEX command.

ここで、一般的なCALL命令を用いるのではなくCALLEX命令を用いているのは、制御領域1のプログラム「M1_aaaaa」から制御領域2のプログラム「M2_nnnnn」を呼び出す(実行する)ので、レジスタバンクを切り替える必要があるためである。
換言すると、制御領域1のプログラムの実行時と制御領域2のプログラムの実行時とで、異なるレジスタバンク(異なるレジスタ)を用いることにより、制御領域2のプログラムの終了後、制御領域1のプログラムに復帰したときに、制御領域2のプログラムの呼出し直前のレジスタ値に戻すことができる。
Here, the CALLEX command is used instead of the general CALL command because the program "M1_aaaaa" in control area 1 calls (executes) the program "M2_nnnnn" in control area 2, and therefore it is necessary to switch register banks.
In other words, by using different register banks (different registers) when executing the program in control area 1 and when executing the program in control area 2, when returning to the program in control area 1 after the program in control area 2 has ended, the register values can be restored to those immediately before the program in control area 2 was called.

また、CALLEX命令は、上述したように、対象となるプログラムを呼び出す前に割込みが禁止されることから、DI(割込み禁止)命令を設けていない。
また、CALLEX命令により他のプログラムが実行され、当該他のプログラムの終了時に実行されるRETEX命令には割込みを許可する命令を含むので、当該他のプログラムの終了時にはEI(割込み許可)命令を設けていない。
As described above, the CALLEX instruction does not include a DI (disable interrupt) instruction because interrupts are disabled before the target program is called.
In addition, another program is executed by the CALLEX instruction, and the RETEX instruction executed when the other program ends includes an instruction to permit an interrupt, so no EI (enable interrupt) instruction is provided when the other program ends.

「CALLEX M2_nnnnn」の実行により、制御領域2の「M2_nnnnn」の先頭アドレスに飛ぶ。なお、制御領域2のプログラムの冒頭にある「ORG 2000h」は、制御領域2の先頭アドレスが「2000h」であることを示す。
制御領域2のプログラム「M2_nnnnn」において、先頭アドレスの「LD SP,@STACK2」は、SPレジスタ(ここでは、レジスタバンクが切り替えられた後、すなわちレジスタバンク1のSPレジスタを意味する。)にスタック2をセットすることを示す。スタック2の初期値(@STACK2)は、図55に示すように「F300h」であり、この値をレジスタバンク1のSPレジスタに書き込む。
Execution of "CALLEX M2_nnnnn" causes a jump to the starting address of "M2_nnnnn" in control area 2. Note that "ORG 2000h" at the beginning of the program in control area 2 indicates that the starting address of control area 2 is "2000h".
In the program "M2_nnnnn" in control area 2, the top address "LD SP, @STACK2" indicates that stack 2 is set in the SP register (here, this means the SP register of register bank 1 after the register bank is switched). The initial value of stack 2 (@STACK2) is "F300h" as shown in FIG. 55, and this value is written to the SP register of register bank 1.

次の「CALL M2_ooooo」は、プログラム「M2_ooooo」を呼び出す命令である。プログラム「M2_ooooo」は、制御領域2(同一領域)に記憶されている。ここで、同一の制御領域2内のプログラム「M2_ooooo」の呼出しであることから、レジスタバンクを切り替える必要はない。このため、CALLEX命令ではなくCALL命令を用いている(CALL命令では、CALLEX命令と異なり、レジスタバンクは切り替わらない。)。図55の例1では、制御領域2及び制御領域3のプログラムを実行する場合には、いずれもレジスタバンク1を使用する。そして、レジスタバンク0からレジスタバンク1への切替えは、上述した「CALLEX M2_nnnnn」によって実行済みである。 The next "CALL M2_ooooo" is a command to call program "M2_ooooo". Program "M2_ooooo" is stored in control area 2 (the same area). Here, since the call is to program "M2_ooooo" in the same control area 2, there is no need to switch register banks. For this reason, the CALL command is used instead of the CALLEX command (unlike the CALLEX command, the register bank is not switched). In example 1 of Figure 55, when executing programs in control area 2 and control area 3, register bank 1 is used in both cases. And the switch from register bank 0 to register bank 1 has already been executed by "CALLEX M2_nnnnn" described above.

プログラム「M2_ooooo」を終了(RET命令)した後にRETEX命令を実行する。このRETEX命令は、制御領域1のプログラムで実行された「CALLEX M2_nnnnn」に対応する命令である。
RETEX命令は、
(1)割込み状態をCALLEX命令前の状態にし、
(2)レジスタバンクをレジスタバンク1からレジスタバンク0に切り替え、
(3)リターン(RET)する(「CALLEX M2_nnnnn」の次の命令(戻り番地のプログラム))に戻る)
ことを実行する。
一方、RET命令は、RETEX命令とは異なり、割込み状態を変化させない。また、レジスタバンクの切替えを行わない。
After the program "M2_ooooo" is terminated (RET command), the RETEX command is executed. This RETEX command corresponds to the "CALLEX M2_nnnnn" command executed in the program of the control area 1.
The RETEX command is
(1) The interrupt state is set to the state before the CALLEX instruction.
(2) Switch the register bank from register bank 1 to register bank 0,
(3) Return (RET) (return to the next instruction after "CALLEX M2_nnnnn" (the program at the return address))
To carry out the task.
On the other hand, the RET instruction, unlike the RETEX instruction, does not change the interrupt state and does not switch register banks.

これにより、再度、制御領域1のプログラムに戻る。
なお、CALLEX命令時の状態が割込み許可状態であるときは、RETEX命令によって割込み許可状態となる。一方、CALLEX命令時の状態が割込み禁止状態であるときは、RETEX命令によって割込み禁止状態となる。
This causes the program to return to the control area 1 again.
If the state at the time of the CALLEX instruction is the interrupt enabled state, the RETEX instruction puts the state into the interrupt enabled state. On the other hand, if the state at the time of the CALLEX instruction is the interrupt disabled state, the RETEX instruction puts the state into the interrupt disabled state.

以上のプログラムの流れにおいて、たとえばレジスタバンク0及びレジスタバンク1のSPレジスタは、以下のようになる。
制御領域1のプログラム「M1_aaaaa」において、「LD SP,@STACK1」により、
SP=F200h(レジスタバンク0)
となる。
In the above program flow, for example, the SP registers of register bank 0 and register bank 1 are as follows:
In the program "M1_aaaaa" in the control area 1, "LD SP, @STACK1"
SP=F200h (register bank 0)
It becomes.

次に何らかのプログラムが実行され、スタック領域1にたとえば2バイトデータが積まれると、
SP=F1FEh(レジスタバンク0)
に更新される。
このSPレジスタ値の状態で「CALLEX M2_nnnnn」が実行されると、制御領域2におけるプログラム「M2_nnnnn」の「LD SP,@STACK2」により、
SP=F300h(レジスタバンク1)
となる。
Next, if a program is executed and, for example, two bytes of data are stored in stack area 1,
SP=F1FEh (register bank 0)
will be updated.
When "CALLEX M2_nnnnn" is executed with this SP register value, "LD SP, @STACK2" in the program "M2_nnnnn" in control area 2 executes the following:
SP=F300h (register bank 1)
It becomes.

そして、制御領域2のプログラム「M2_ooooo」の実行により、スタック領域2にたとえば4バイトのスタックが詰まれると、
SP=F2FCh(レジスタバンク1)
に更新される。
このSPレジスタ値の状態でプログラム「M2_ooooo」が終了し、RETEX命令により制御領域1のプログラムに戻ると、制御領域1のプログラムで使用するレジスタバンクはレジスタバンク0となり、その時点におけるSPレジスタ値は「F1FEh」となる。
なお、制御領域2のプログラム「M2_ooooo」が終了し、RETEX命令により制御領域1のプログラムに戻ったときでも、レジスタバンク1のSPレジスタ値は「F2FCh」のままである。
Then, when the program "M2_ooooo" in the control area 2 is executed and, for example, 4 bytes of stack are filled in the stack area 2,
SP = F2FCh (register bank 1)
will be updated.
When the program "M2_oooooo" ends with this SP register value and the RETEX instruction is used to return to the program in control area 1, the register bank used in the program in control area 1 will be register bank 0, and the SP register value at that point will be "F1FEh".
Even when the program "M2_ooooo" in control area 2 ends and returns to the program in control area 1 by the RETEX instruction, the SP register value in register bank 1 remains "F2FCh."

次に、制御領域1におけるプログラム「M1_aaaaa」において、「CALLEX M3_xxxxx」は、プログラム「M3_xxxxx」を呼び出す命令である。この例では、プログラム「M3_xxxxx」は、制御領域3に記憶されている。
なお、この「CALLEX M3_xxxxx」により、再度、レジスタバンクは、レジスタバンク0からレジスタバンク1に切り替えられる。
「CALLEX M3_xxxxx」の実行により、制御領域3の「M3_xxxxx」の先頭アドレスに飛ぶ。なお、制御領域3の冒頭にある「ORG 2A00h」は、制御領域3の先頭アドレスが「2A00h」であることを示す。
Next, in the program "M1_aaaaa" in the control area 1, "CALLEX M3_xxxxx" is a command to call the program "M3_xxxxx." In this example, the program "M3_xxxxx" is stored in the control area 3.
Note that this "CALLEX M3_xxxxx" switches the register bank from register bank 0 to register bank 1 again.
Execution of "CALLEX M3_xxxxx" causes a jump to the starting address of "M3_xxxxx" in control area 3. Note that "ORG 2A00h" at the beginning of control area 3 indicates that the starting address of control area 3 is "2A00h".

制御領域3のプログラム「M3_xxxxx」において、「LD SP,@STACK3」は、SPレジスタ(ここでは、レジスタバンク1のSPレジスタを意味する。)にスタック3をセットすることを示す。スタック3の初期値(@STACK3)は、図55に示すように「F400h」であり、この値をレジスタバンク1のSPレジスタに書き込む。よって、上述したように、「LD SP,@STACK3」の直前におけるレジスタバンク1のSPレジスタ値は「F2FCh」であるが、この値が「F400h」に上書きされる。
次の「CALL M3_yyyyy」は、プログラム「M3_yyyyy」を呼び出す命令である。プログラム「M3_yyyyy」は、制御領域3に記憶されている。上記と同様に、このCALL命令では、レジスタバンクは切り替わらない。
In the program "M3_xxxxx" in control area 3, "LD SP, @STACK3" indicates that stack 3 is set in the SP register (meaning the SP register of register bank 1 in this case). The initial value of stack 3 (@STACK3) is "F400h" as shown in FIG. 55, and this value is written to the SP register of register bank 1. Therefore, as described above, the SP register value of register bank 1 immediately before "LD SP, @STACK3" is "F2FCh", but this value is overwritten to "F400h".
The following "CALL M3_yyyyy" is an instruction to call the program "M3_yyyyy." The program "M3_yyyyy" is stored in the control area 3. As in the above, this CALL instruction does not switch the register bank.

そして、プログラム「M3_yyyyy」が終了(RET命令)した後にRETEX命令により、割込み状態を「CALLEX M3_xxxxx」命令前の状態にし、レジスタバンクをレジスタバンク1からレジスタバンク0に切り替え、リターン(RET)する。これにより、「CALLEX M3_xxxxx」の次の命令(戻り番地のプログラム)に戻る。 Then, after the program "M3_yyyyy" ends (RET command), the RETEX command returns the interrupt state to the state before the "CALLEX M3_xxxxx" command, switches the register bank from register bank 1 to register bank 0, and returns (RET). This causes the program to return to the next command after "CALLEX M3_xxxxx" (the program at the return address).

以上のようにして、制御領域1のプログラムから制御領域2又は制御領域3のプログラムに飛ぶときは、CALLEX命令によってレジスタバンクが切り替えられる。これにより、制御領域1のプログラムで使用していたレジスタバンク0の各レジスタは保護される。
一方、例1では、制御領域2のプログラム「M2_nnnnn」が実行された後、制御領域3のプログラム「M3_xxxxx」が実行される。そして、制御領域2のプログラムと制御領域3のプログラムでは、いずれも、レジスタバンク1が使用される。このため、制御領域2のプログラムで使用されたレジスタ値が、制御領域3のプログラムの実行により変わるおそれがある。
In this way, when jumping from a program in control area 1 to a program in control area 2 or control area 3, the register bank is switched by the CALLEX instruction. This protects the registers in register bank 0 that were used in the program in control area 1.
On the other hand, in Example 1, after the program "M2_nnnnn" in control area 2 is executed, the program "M3_xxxxx" in control area 3 is executed. Then, both the program in control area 2 and the program in control area 3 use register bank 1. For this reason, there is a risk that the register values used in the program in control area 2 may change due to the execution of the program in control area 3.

制御領域2のプログラムと制御領域3のプログラムとの往来で、レジスタ値を保護する必要がない場合には、レジスタ値を保護するための命令は不要である。これに対し、制御領域2のプログラムの実行後に制御領域3のプログラムを実行したとき、あるいは制御領域3のプログラムの実行後に制御領域2のプログラムを実行したときに、レジスタ値が変化しないようにレジスタを保護する場合には、制御領域2におけるプログラム「CALL M2_ooooo」の前後、あるいは制御領域3におけるプログラム「CALL M3_yyyyy」の前後に、レジスタを保護する命令を加える。 If there is no need to protect register values when moving between the programs in control area 2 and control area 3, no instructions to protect the register values are required. On the other hand, if you want to protect registers so that they do not change when a program in control area 3 is executed after a program in control area 2 is executed, or when a program in control area 2 is executed after a program in control area 3 is executed, instructions to protect the registers are added before or after the program "CALL M2_ooooo" in control area 2, or before or after the program "CALL M3_yyyyy" in control area 3.

具体的には、
制御領域2のプログラムにおいて、
PUSH ALL
CALL M2_ooooo
POP ALL
とするか、又は、
制御領域3のプログラムにおいて、
PUSH ALL
CALL M3_yyyyy
POP ALL
とする。
ここで、第3実施形態と同様に、「PUSH ALL」は全レジスタをスタック領域に退避させる命令文であり、「POP ALL」は退避した全レジスタをスタック領域から復帰させる命令文である。
また、後述する「PUSH AF」はAFレジスタをスタック領域に退避させる命令文であり、「POP AF」は退避したAFレジスタをスタック領域から復帰させる命令文である。
なお、スタック領域に退避させたり、スタック領域から復帰させたりする場合のスタック領域とは、制御領域1の命令として「PUSH ALL」、「POP ALL」、「PUSH AF」、「POP AF」を行った場合には、図52で示したスタック領域1が該当し、制御領域2の命令として「PUSH ALL」、「POP ALL」、「PUSH AF」、「POP AF」を行った場合には、図52で示したスタック領域2が該当し、制御領域3の命令として「PUSH ALL」、「POP ALL」、「PUSH AF」、「POP AF」を行った場合には、図52で示したスタック領域3が該当する。
in particular,
In the control area 2 program,
PUSH ALL
CALL M2_ooooo
POP ALL
or
In the program of the control area 3,
PUSH ALL
CALL M3_yyyyy
POP ALL
Let us assume that.
Here, similarly to the third embodiment, "PUSH ALL" is a command statement for saving all registers to the stack area, and "POP ALL" is a command statement for restoring all saved registers from the stack area.
Moreover, "PUSH AF" (described later) is a command statement for saving the AF register to a stack area, and "POP AF" is a command statement for restoring the saved AF register from the stack area.
Note that the stack area when saving to or restoring from a stack area refers to stack area 1 shown in FIG. 52 when "PUSH ALL", "POP ALL", "PUSH AF", or "POP AF" is issued as an instruction in control area 1, stack area 2 shown in FIG. 52 when "PUSH ALL", "POP ALL", "PUSH AF", or "POP AF" is issued as an instruction in control area 2, and stack area 3 shown in FIG. 52 when "PUSH ALL", "POP ALL", "PUSH AF", or "POP AF" is issued as an instruction in control area 3.

図56は、制御領域1、制御領域2、及び制御領域3のプログラムの例2を示す図である。例2では、制御領域1及び制御領域2のプログラムはレジスタバンク0を使用し、制御領域3のプログラムはレジスタバンク1を使用する。したがって、制御領域1のプログラムから制御領域2のプログラムを呼び出して実行する場合には、レジスタバンク0のままである。これに対し、制御領域1のプログラムから制御領域3のプログラムを呼び出して実行する場合にはレジスタバンクをレジスタバンク0からレジスタバンク1に切り替える。そして、制御領域3のプログラムを終了し、制御領域1のプログラムに復帰する場合には、レジスタバンクをレジスタバンク1からレジスタバンク0に切り替える(戻す)。 Figure 56 shows example 2 of programs in control area 1, control area 2, and control area 3. In example 2, the programs in control area 1 and control area 2 use register bank 0, and the program in control area 3 uses register bank 1. Therefore, when a program in control area 2 is called and executed from a program in control area 1, register bank 0 remains. In contrast, when a program in control area 3 is called and executed from a program in control area 1, the register bank is switched from register bank 0 to register bank 1. Then, when the program in control area 3 is terminated and the program in control area 1 is returned to, the register bank is switched (back) from register bank 1 to register bank 0.

図56において、制御領域1のプログラムは、以下の通りである。
最初の「ORG 0000h」は、例1と同様である。
「M1_aaaaa」は、制御領域1の先頭アドレスのプログラムを示す。
このプログラムにおいて、「LD SP,@STACK1」は、例1と同様に、SPレジスタにスタック1をセットする命令である。
その後、制御領域2のプログラム「M2_nnnnn」を実行するが、制御領域1のプログラムと制御領域2のプログラムとはいずれもレジスタバンク0を使用するので、レジスタバンクの切替えを伴うCALLEX命令は用いない。換言すると、この場合にはCALL命令を用いる。CALL命令ではレジスタバンクの切替えは行われない。
In FIG. 56, the program in control area 1 is as follows:
The initial "ORG 0000h" is the same as in Example 1.
"M1_aaaaa" indicates the program at the first address of control area 1.
In this program, "LD SP, @STACK1" is an instruction to set stack 1 in the SP register, similar to Example 1.
After that, the program "M2_nnnnn" in control area 2 is executed, but since both the program in control area 1 and the program in control area 2 use register bank 0, the CALLEX instruction, which involves switching of register banks, is not used. In other words, the CALL instruction is used in this case. The CALL instruction does not switch register banks.

制御領域1のプログラムの実行中に制御領域2のプログラムを実行するときは、割込み処理を禁止する。割込み禁止命令は、図中、DI命令である。
DI命令の実行後、AFレジスタを退避する(スタック領域に格納する)ため、「PUSH AF」を実行する。その後、「CALL M2_nnnnn」により、制御領域2のプログラム「M2_nnnnn」を実行する。
ここで、AFレジスタを退避させる理由は、以下の通りである。制御領域2のプログラム「M2_nnnnn」に飛ぶと、後述するように、スタックポインタをセットする命令「LD SP,@STACK2」が実行される。このLD命令が実行されると、フラグ(F)レジスタの第2ゼロフラグ(図43参照)の値が変化してしまうか、変化してしまうおそれがある。そこで、制御領域2のプログラムに飛ぶ前に、AFレジスタを退避させている。
When a program in control area 2 is executed while a program in control area 1 is being executed, interrupt processing is prohibited. The interrupt prohibition instruction is a DI instruction in the figure.
After executing the DI command, "PUSH AF" is executed to save the AF register (store it in the stack area). After that, "CALL M2_nnnnn" is executed to execute the program "M2_nnnnn" in the control area 2.
The reason for saving the AF register here is as follows. When jumping to the program "M2_nnnnn" in control area 2, an instruction "LD SP, @STACK2" that sets the stack pointer is executed, as described below. When this LD instruction is executed, the value of the second zero flag (see FIG. 43) in the flag (F) register changes, or there is a risk that it will change. Therefore, the AF register is saved before jumping to the program in control area 2.

制御領域2の冒頭の「ORG 2000h」は、例1と同様である。
制御領域2の「M2_nnnnn」において、「LD (BF_STACK),SP」は、スタックポインタを退避する命令である。この処理は、現在のSPレジスタ値を、図52に示すRWM領域2の所定の記憶領域(BF_STACK)に記憶する処理に相当する。制御領域1のプログラムと制御領域2のプログラムとで同一のレジスタバンク0を使用するため、制御領域1のプログラムから制御領域2のプログラムに飛んだときに、制御領域1のプログラムを実行していたときのスタックポインタを退避させ、かつ、制御領域2のプログラムのためのスタックポインタをセットするためである。
The "ORG 2000h" at the beginning of control area 2 is the same as in example 1.
In "M2_nnnnn" in control area 2, "LD (BF_STACK), SP" is a command to save the stack pointer. This process corresponds to the process of storing the current SP register value in a specified memory area (BF_STACK) in RWM area 2 shown in FIG. 52. Since the same register bank 0 is used for the program in control area 1 and the program in control area 2, when jumping from the program in control area 1 to the program in control area 2, the stack pointer when the program in control area 1 was being executed is saved and the stack pointer for the program in control area 2 is set.

換言すると、CALL命令によってレジスタバンクの切替えが行われず、制御領域1のプログラムと制御領域2のプログラムとで同一のレジスタバンクのレジスタ(たとえばSPレジスタ)を使用することになるため、「LD (BF_STACK),SP」によってレジスタを退避させないと、制御領域1のプログラムで使用していたレジスタポインタが、制御領域2のプログラムの実行によって書き換えられてしまい、制御領域2のプログラムの終了後に制御領域1のプログラムに復帰したときに、制御領域1のプログラムでの正しいスタックポインタを指定できなくなってしまうからである。 In other words, the CALL instruction does not switch register banks, and the program in control area 1 and the program in control area 2 use a register in the same register bank (for example, the SP register). Therefore, if the register is not saved using "LD (BF_STACK), SP", the register pointer used by the program in control area 1 will be overwritten by the execution of the program in control area 2, and when returning to the program in control area 1 after the program in control area 2 has finished, the correct stack pointer in the program in control area 1 will not be specified.

次の「LD SP,@STACK2」は、上記例1と同様に、SPレジスタにスタック2(F300h)をセットすることを示す。
「PUSH ALL」は、上述のように、全レジスタを退避する命令である。
次の「CALL M2_ooooo」は、プログラム「M2_ooooo」を呼び出す命令である。プログラム「M2_ooooo」は、制御領域2に記憶されている。通常のCALL命令では、レジスタバンクは切り替わらないので、プログラム「M2_ooooo」の実行中もレジスタバンク0のままである。
プログラム「M2_ooooo」を終了すると、「POP ALL」により、退避していた全レジスタを復帰させる。
The next "LD SP, @STACK2" indicates that stack 2 (F300h) is to be set in the SP register, similar to example 1 above.
As described above, "PUSH ALL" is an instruction to save all registers.
The next "CALL M2_ooooo" is an instruction to call the program "M2_ooooo." The program "M2_ooooo" is stored in control area 2. Since a normal CALL instruction does not switch register banks, register bank 0 remains the same even during execution of the program "M2_ooooo."
When the program "M2_ooooo" is terminated, all the saved registers are restored by "POP ALL."

次の「LD SP,(BF_STACK)」は、退避していたスタックポインタを復帰する命令である。この処理は、図52に示すRWM領域2の所定の記憶領域(BF_STACK)に記憶していたデータをSPレジスタに記憶する(SPレジスタ値にする)処理に相当する。これにより、スタックポインタは、「LD (BF_STACK),SP」の命令前の値、換言すれば、制御領域1のプログラムが実行されていたときの値に戻る。
その後、RET命令により、制御領域1のプログラムに戻る。
制御領域1のプログラムに戻ると、「POP AF」により、退避させていたAFレジスタを復帰させる。これにより、プログラム「M2_nnnnn」が実行される前の値にAFレジスタが戻る。
次に、EI命令により、禁止していた割込みを再開する。
The next "LD SP, (BF_STACK)" is an instruction to restore the saved stack pointer. This process corresponds to the process of storing the data stored in a specific memory area (BF_STACK) in the RWM area 2 shown in FIG. 52 in the SP register (setting it as the SP register value). As a result, the stack pointer returns to the value it had before the "LD (BF_STACK), SP" instruction, in other words, the value it had when the program in the control area 1 was being executed.
Thereafter, the RET command causes the program to return to the program in the control area 1.
When returning to the program in control area 1, the saved AF register is restored by "POP AF", which returns the AF register to the value it had before the program "M2_nnnnn" was executed.
Next, the EI instruction is used to resume the interrupts that were previously disabled.

以上のスタックポインタのセット、退避、復帰について具体例を挙げて説明する。
まず、制御領域1のプログラム「M1_aaaaa」において、「LD SP,@STACK1」により、
SP=F200h(レジスタバンク0)
となる。
次に何らかのプログラムが実行され、「F200h」にたとえば1バイトデータが積まれると、
SP=F1FFh(レジスタバンク0)
に更新される。
このSPレジスタ値の状態で「CALL M2_nnnnn」が実行され、制御領域2のプログラム「M2_nnnnn」が実行されると、「LD (BF_STACK),SP」によって、制御領域1のプログラムでのスタックポインタ「F1FFh」を退避させる。この場合、RWM領域2の所定の記憶領域に「F1FFh」を記憶する。
The above setting, saving, and restoring of the stack pointer will now be described with a concrete example.
First, in the program "M1_aaaaa" in the control area 1, "LD SP, @STACK1" executes
SP=F200h (register bank 0)
It becomes.
Next, when some program is executed and 1 byte of data is loaded to "F200h",
SP=F1FFh (register bank 0)
will be updated.
With this SP register value, "CALL M2_nnnnn" is executed, and when the program "M2_nnnnn" in the control area 2 is executed, the stack pointer "F1FFh" in the program in the control area 1 is saved by "LD (BF_STACK), SP." In this case, "F1FFh" is stored in a specified storage area in the RWM area 2.

次に、「LD SP,@STACK2」により、
SP=F300h(レジスタバンク0)
となる。
よって、SPがそれまでの「F1FFh」から「F300h」に更新される。
そして、プログラム「M2_ooooo」の実行により、たとえば2バイトのスタックが積まれると、
SP=F2FEh(レジスタバンク0)
に更新される。
Next, by "LD SP, @STACK2",
SP=F300h (register bank 0)
It becomes.
Therefore, the SP is updated from the previous "F1FFh" to "F300h".
Then, when the program "M2_ooooo" is executed and, for example, 2 bytes are added to the stack,
SP=F2FEh (register bank 0)
will be updated.

次に、プログラム「M2_ooooo」を終了し、「LD SP,(BF_STACK)」が実行されると、上記所定の記憶領域に記憶されている「F1FFh」を読み込み、SPに記憶(上書き)する。換言すると、SPはそれまでの「F2FEh」から「F1FFh」に更新される。
よって、
SP=F1FFh(レジスタバンク0)
となる。
Next, when the program "M2_ooooo" is terminated and "LD SP, (BF_STACK)" is executed, "F1FFh" stored in the above-mentioned predetermined storage area is read and stored (overwritten) in SP. In other words, SP is updated from the previous "F2FEh" to "F1FFh".
Therefore,
SP=F1FFh (register bank 0)
It becomes.

次に、制御領域1のプログラムにおいて、「CALLEX M3_xxxxx」の実行により、制御領域3の「M3_xxxxx」に飛ぶ。また、このCALLEX命令により、割込みが禁止されるとともに、レジスタバンクがレジスタバンク0からレジスタバンク1に切り替えられる。
制御領域3の冒頭にある「ORG 2A00h」は、例1と同じである。
制御領域3の「M3_xxxxx」において、「LD SP,@STACK3」では、SPレジスタ(レジスタバンク1のSPレジスタ)にスタック3(F400h)をセットする。
次の「CALL M3_yyyyy」は、プログラム「M3_yyyyy」を呼び出す命令である。プログラム「M3_yyyyy」は、制御領域3に記憶されている。上記と同様に、このCALL命令では、レジスタバンクは切り替わらない。
Next, in the program of control area 1, execution of "CALLEX M3_xxxxx" causes a jump to "M3_xxxxx" in control area 3. This CALLEX instruction also disables interrupts and switches the register bank from register bank 0 to register bank 1.
The "ORG 2A00h" at the beginning of control area 3 is the same as in example 1.
In "M3_xxxx" of control area 3, "LD SP, @STACK3" sets stack 3 (F400h) in the SP register (SP register of register bank 1).
The following "CALL M3_yyyyy" is an instruction to call the program "M3_yyyyy." The program "M3_yyyyy" is stored in the control area 3. As in the above, this CALL instruction does not switch the register bank.

そして、プログラム「M3_yyyyy」が終了(RET命令)した後にRETEX命令により、割込み状態を「CALLEX M3_xxxxx」命令前の状態にし、レジスタバンクをレジスタバンク1からレジスタバンク0に切り替え、リターン(RET)する。これにより、「CALLEX M3_xxxxx」の次の命令(戻り番地のプログラム)に戻る。 Then, after the program "M3_yyyyy" ends (RET command), the RETEX command returns the interrupt state to the state before the "CALLEX M3_xxxxx" command, switches the register bank from register bank 1 to register bank 0, and returns (RET). This causes the program to return to the next command after "CALLEX M3_xxxxx" (the program at the return address).

図57は、制御領域1、制御領域2、及び制御領域3のプログラムの例3を示す図である。例3では、制御領域1及び制御領域3のプログラムはレジスタバンク0を使用し、制御領域2のプログラムはレジスタバンク1を使用する。したがって、制御領域1のプログラムから制御領域3のプログラムを呼び出して実行する場合にはレジスタバンク0のままである。これに対し、制御領域1のプログラムから制御領域2のプログラムを呼び出して実行する場合にはレジスタバンクをレジスタバンク0からレジスタバンク1に切り替える。そして、制御領域2のプログラムを終了し、制御領域1のプログラムに復帰する場合には、レジスタバンクをレジスタバンク1からレジスタバンク0に切り替える(戻す)。 Figure 57 shows example 3 of programs in control area 1, control area 2, and control area 3. In example 3, the programs in control area 1 and control area 3 use register bank 0, and the program in control area 2 uses register bank 1. Therefore, when a program in control area 3 is called from a program in control area 1 and executed, register bank 0 remains. In contrast, when a program in control area 2 is called from a program in control area 1 and executed, the register bank is switched from register bank 0 to register bank 1. Then, when the program in control area 2 is terminated and the program in control area 1 is returned to, the register bank is switched (back) from register bank 1 to register bank 0.

図56において、制御領域1のプログラムは、以下の通りである。
最初の「ORG 0000h」は、例1と同様である。
次の「M1_aaaaa」において、「LD SP,@STACK1」は、例1と同様に、SPレジスタにスタック1(F200h)をセットする命令である。
次の「CALLEX M2_nnnnn」は、制御領域2のプログラム「M2_nnnnn」を呼び出す命令である。このCALLEX命令により、割込みを禁止し、レジスタバンクをレジスタバンク0からレジスタバンク1に切り替える。
「CALLEX M2_nnnnn」の実行により、制御領域2のプログラム「M2_nnnnn」に飛ぶ。なお、制御領域2の冒頭にある「ORG 2000h」は、例1と同じである。
制御領域2の「M2_nnnnn」において、「LD SP,@STACK2」は、例1と同様に、SPレジスタ(レジスタバンク1のSPレジスタ)にスタック2(F300h)をセットする命令である。
In FIG. 56, the program in control area 1 is as follows:
The initial "ORG 0000h" is the same as in Example 1.
In the next "M1_aaaaa", "LD SP, @STACK1" is a command to set stack 1 (F200h) in the SP register, similar to example 1.
The next "CALLEX M2_nnnnn" is an instruction to call the program "M2_nnnnn" in the control area 2. This CALLEX instruction disables interrupts and switches the register bank from register bank 0 to register bank 1.
Execution of "CALLEX M2_nnnnn" jumps to program "M2_nnnnn" in control area 2. Note that "ORG 2000h" at the beginning of control area 2 is the same as in example 1.
In "M2_nnnnn" of control area 2, "LD SP, @STACK2" is a command to set stack 2 (F300h) in the SP register (the SP register of register bank 1), similar to example 1.

次の「CALL M2_ooooo」は、プログラム「M2_ooooo」を呼び出す命令である。プログラム「M2_ooooo」は、制御領域2に記憶されている。CALL命令では、レジスタバンクは切り替わらない。
プログラム「M2_ooooo」を終了(RET命令)した後にRETEX命令を実行する。RETEX命令により、割込み状態をCALLEX命令前の状態にし、レジスタバンクをレジスタバンク1からレジスタバンク0に切り替え、リターン(RET)する。これにより、制御領域1の「CALLEX M2_nnnnn」の次の命令(戻り番地のプログラム)に戻る。そして、再度、第1制御領域内のプログラムを実行可能とする。
The next "CALL M2_ooooo" is an instruction to call the program "M2_ooooo." The program "M2_ooooo" is stored in the control area 2. The CALL instruction does not switch register banks.
After the program "M2_oooooo" is ended (RET instruction), the RETEX instruction is executed. The RETEX instruction returns the interrupt state to the state before the CALLEX instruction, switches the register bank from register bank 1 to register bank 0, and returns (RET). This causes a return to the next instruction (the program at the return address) of "CALLEX M2_nnnnn" in control area 1. Then, the program in the first control area is made executable again.

制御領域1において、プログラム「M2_nnnnn」の実行後、制御領域3のプログラム「M3_xxxxx」を実行する。
制御領域1のプログラムと制御領域3のプログラムとはいずれもレジスタバンク0を使用するので、レジスタバンクの切替えを伴うCALLEX命令は用いない。
制御領域1のプログラムの実行中に制御領域3のプログラムを実行するときは、まず、DI命令により割込み処理を禁止する。
DI命令の実行後、「PUSH AF」命令によりAFレジスタを退避する(スタック領域に格納する)。その後、「CALL M3_xxxxx」により、制御領域3のプログラム「M3_xxxxx」を実行する。
In control area 1, after the program "M2_nnnnn" is executed, the program "M3_xxxxx" in control area 3 is executed.
Since both the program in control area 1 and the program in control area 3 use register bank 0, the CALLEX instruction which involves switching of register banks is not used.
When a program in control area 3 is executed while a program in control area 1 is being executed, first, interrupt processing is inhibited by a DI command.
After the DI command is executed, the AF register is saved (stored in the stack area) by the "PUSH AF" command. Then, the program "M3_xxxxx" in the control area 3 is executed by "CALL M3_xxxxx".

制御領域3の冒頭にある「ORG 2A00h」は、例1と同じである。
制御領域3の「M3_xxxxx」において、「LD (BF_STACK),SP」は、スタックポインタを退避する命令である。この処理は、現在のSPレジスタ値を、図52に示すRWM領域3の所定の記憶領域(BF_STACK)に記憶する処理に相当する。制御領域1のプログラムと制御領域3のプログラムとで同一のレジスタバンク0を使用するため、制御領域1のプログラムから制御領域3のプログラムに飛んだときに、制御領域1のプログラムを実行していたときのスタックポインタを退避させ、かつ、制御領域3のプログラムのためのスタックポインタをセットするためである。
The "ORG 2A00h" at the beginning of control area 3 is the same as in example 1.
In "M3_xxxx" in control area 3, "LD (BF_STACK), SP" is a command to save the stack pointer. This process corresponds to the process of storing the current SP register value in a specified memory area (BF_STACK) in RWM area 3 shown in FIG. 52. Since the same register bank 0 is used for the program in control area 1 and the program in control area 3, when jumping from the program in control area 1 to the program in control area 3, the stack pointer when the program in control area 1 was being executed is saved and the stack pointer for the program in control area 3 is set.

「LD SP,@STACK3」は、上記例1と同様に、SPレジスタにスタック3(F400h)をセットすることを示す。
次に、「PUSH ALL」により、全レジスタを退避する。
次の「CALL M3_yyyyy」は、プログラム「M3_yyyyy」を呼び出す命令である。プログラム「M3_yyyyy」は、制御領域3に記憶されている。CALL命令では、レジスタバンクは切り替わらないので、プログラム「M3_yyyyy」の実行中もレジスタバンク0のままである。
プログラム「M3_yyyyy」を終了すると、「POP ALL」により、退避していた全レジスタを復帰させる。
"LD SP, @STACK3" indicates that stack 3 (F400h) is to be set in the SP register, similar to example 1 above.
Next, all registers are saved by "PUSH ALL."
The next "CALL M3_yyyyy" is an instruction to call the program "M3_yyyyy." The program "M3_yyyyy" is stored in the control area 3. Since the CALL instruction does not switch register banks, the register bank remains 0 even during the execution of the program "M3_yyyyy."
When the program "M3_yyyyy" is terminated, all the saved registers are restored by "POP ALL."

次の「LD SP,(BF_STACK)」は、退避していたスタックポインタを復帰する命令である。この処理は、図52に示すRWM領域3の所定の記憶領域(BF_STACK)に記憶していたデータをSPレジスタに記憶する(SPレジスタ値にする)処理に相当する。これにより、スタックポインタは、「LD (BF_STACK),SP」の命令前の値、換言すれば、制御領域1のプログラムが実行されていたときの値に戻る。
その後、RET命令により、制御領域1のプログラムに戻る。
制御領域1のプログラムに戻ると、「POP AF」により、退避させていたAFレジスタを復帰させる。これにより、AFレジスタがプログラム「M2_nnnnn」が実行される前の値に戻る。
そして、EI命令により、禁止していた割込みを再開する。
The next "LD SP, (BF_STACK)" is an instruction to restore the saved stack pointer. This process corresponds to the process of storing the data stored in a specific memory area (BF_STACK) in the RWM area 3 shown in FIG. 52 in the SP register (setting it as the SP register value). As a result, the stack pointer returns to the value it had before the "LD (BF_STACK), SP" instruction, in other words, the value it had when the program in the control area 1 was being executed.
Thereafter, the RET command causes the program to return to the program in the control area 1.
When returning to the program in control area 1, the saved AF register is restored by "POP AF", which returns the AF register to the value it had before program "M2_nnnnn" was executed.
Then, the EI instruction is used to resume the interrupts that were previously disabled.

次に、プログラムのコードサイズについて説明する、
第4実施形態において、各命令のコードサーズは、以下の通りである。
CALLEX mn(mn=2000h~20FFh):2バイト
CALLEX mn(mn≠2000h~20FFh):4バイト
RETEX:2バイト
CALL mn:3バイト
RET:1バイト
DI:1バイト
EI:1バイト
PUSH AF:1バイト
POP AF:1バイト
Next, we will explain the code size of the program.
In the fourth embodiment, the code searches for each instruction are as follows:
CALLEX mn (mn = 2000h to 20FFh): 2 bytes CALLEX mn (mn ≠ 2000h to 20FFh): 4 bytes RETEX: 2 bytes CALL mn: 3 bytes RET: 1 byte DI: 1 byte EI: 1 byte PUSH AF: 1 byte POP AF: 1 byte

CALLEX命令のコードサイズは、第3実施形態と同じであるが、改めて説明する。
CALLEX命令において、アドレス「2000h」~「20FFh」の範囲を呼び出す場合の「CALLEX mn」のコードサイズは2バイトとなり、アドレス「2000h」~「20FFh」以外の範囲を呼び出す場合の「CALLEX mn」のコードサイズは、4バイトとなるように構成されている。
The code size of the CALLEX instruction is the same as in the third embodiment, but will be explained again.
In the CALLEX instruction, the code size of "CALEX mn" when calling an address range of "2000h" to "20FFh" is 2 bytes, and the code size of "CALLEX mn" when calling an address range other than "2000h" to "20FFh" is 4 bytes.

アドレス「2000h」~「20FFh」の範囲は、「FFh」、すなわち1バイトである。この場合に、アドレス値「2000h」のコード値を「0h」にする。これにより、アドレス値「20FFh」を呼び出すときのコード値を「FFh」にすることができるので、アドレス「2000h」~「20FFh」の範囲のいずれを呼び出す場合であっても、「mn」のコードサイズを1バイトに設定することができる。
また、「CALLEX」のオペコードをコード化する場合に、当該コードを1バイトに設定する。これにより、「CALLEX mn」(mn=2000h~20FFh)のコードサイズを2バイトに設定することができる。
The range of addresses from "2000h" to "20FFh" is "FFh", i.e., 1 byte. In this case, the code value of the address value "2000h" is set to "0h". This allows the code value when calling up the address value "20FFh" to be "FFh", so the code size of "mn" can be set to 1 byte regardless of when calling up any address in the range from "2000h" to "20FFh".
Furthermore, when encoding the opcode of "CALLEX," the code is set to 1 byte, which allows the code size of "CALLEX mn" (mn=2000h to 20FFh) to be set to 2 bytes.

一方、「mn」が「2100h」以上になると、「mn」のコードサイズは2バイトとなる。さらに、「mn」の範囲が「2000h」~「20FFh」でない場合には、「CALLEX」のコードを2バイトから構成する。オペコードを1バイトから構成する場合には、数千の命令のうち、256個に限られるため、「mn」の範囲が「2000h」~「20FFh」である場合の「CALLEX」のコードとして1バイトのコードを割り当てたが、「mn」の範囲が「2000h」~「20FFh」でない場合には、「CALLEX」のコードとして2バイトのコードを割り当てている。 On the other hand, when "mn" is "2100h" or greater, the code size of "mn" becomes 2 bytes. Furthermore, if "mn" is not in the range of "2000h" to "20FFh", the "CALLEX" code is composed of 2 bytes. If the opcode were composed of 1 byte, this would be limited to 256 out of several thousand instructions, so a 1-byte code is assigned as the "CALLEX" code when "mn" is in the range of "2000h" to "20FFh", but a 2-byte code is assigned as the "CALLEX" code when "mn" is not in the range of "2000h" to "20FFh".

以上のように、「CALLEX mn」命令では、「mn」の範囲が「2000h」~「20FFh」の範囲内であればコードサイズが2バイトの命令となり、「mn」の範囲が上記範囲以外であればコードサイズが4バイトの命令となる。
よって、呼び出す回数が多い命令ほど、制御領域2のアドレス「2000h」~「20FFh」の範囲内に集約しておけば、それだけ、コードサイズが2バイトで済む命令が多くなる。これにより、制御領域1の記憶容量を節約することが可能となる。
また、第2制御領域のアドレス「2000h」~「25FFh」の範囲のうち、アドレス「2000h」~「20FFh」の範囲に、制御領域1のプログラムから制御領域2のプログラムを呼び出す際のアドレスをできるだけ多く収めておくことによって、制御領域2を確認するときに、制御領域1のプログラムから呼び出されるプログラムであることを容易に把握することができる。
As described above, in the case of the "CALLEX mn" instruction, if "mn" is in the range of "2000h" to "20FFh", the instruction will have a code size of 2 bytes, and if "mn" is outside the above range, the instruction will have a code size of 4 bytes.
Therefore, if instructions that are called more frequently are concentrated in the address range of "2000h" to "20FFh" in the control area 2, more of the instructions will have a code size of just 2 bytes. This makes it possible to save on the storage capacity of the control area 1.
Furthermore, by storing as many addresses as possible when a program in control area 2 is called from a program in control area 1 in the address range of "2000h" to "20FFh" within the address range of "2000h" to "25FFh" in the second control area, it is possible to easily determine when checking control area 2 that it is a program called from a program in control area 1.

図55(例1)を例に挙げて具体的に説明する。
図55に示すように、制御領域2の先頭アドレスは「2000h」である。また、制御領域3の先頭アドレスは「2A00h」である。よって、たとえば制御領域2のプログラム「M2_nnnnn」を、アドレス「2000h」~「20FFh」の範囲内に配置しておけば、制御領域1のプログラム「CALLEX M2_nnnnn」を2バイトから構成することができる。
また、制御領域2のプログラム「M2_nnnnn」では、「LD SP,@STACK2」の後、「CALL M2_ooooo」を実行することにより、制御領域2のプログラム「M2_ooooo」を呼び出している。なお、プログラム「M2_ooooo」は、アドレス「2000h」~「20FFh」の範囲内である必要はない。
A specific explanation will be given by taking FIG. 55 (Example 1) as an example.
55, the starting address of control area 2 is "2000h." The starting address of control area 3 is "2A00h." Therefore, for example, if the program "M2_nnnnn" of control area 2 is located within the address range of "2000h" to "20FFh," the program "CALLEX M2_nnnnn" of control area 1 can be composed of 2 bytes.
Moreover, in the program "M2_nnnnn" in the control area 2, after "LD SP, @STACK2", "CALL M2_ooooo" is executed to call the program "M2_ooooo" in the control area 2. Note that the program "M2_ooooo" does not need to be within the range of addresses "2000h" to "20FFh".

ここで、制御領域1のプログラムにおいて、「CALLEX M2_nnnnn」ではなく、直接、「CALLEX M2_ooooo」とすることも考えられる。
しかし、制御領域2のプログラムにおいて、実際に実行するプログラム「M2_ooooo」をアドレス「2100h」以降に配置し、アドレス「2000h」~「20FFh」の範囲には、制御領域1のCALLEX命令によって呼び出されるプログラムの先頭プログラムを多く配置しておけば、それだけ、制御領域1のプログラムで2バイトのCALLEX命令を多く設けることが可能となる。よって、制御領域1のプログラム容量を節約することが可能となる。換言すると、制御領域1のプログラムから制御領域2のプログラムを呼び出すのは、1回に限られるものではなく、複数回呼び出されるように構成されていてもよい。
Here, in the program of the control area 1, it is also conceivable to directly use "CALLEX M2_ooooo" rather than "CALLEX M2_nnnnn".
However, if the program "M2_oooooo" to be actually executed in the program of control area 2 is placed after address "2100h" and many top programs of programs called by the CALLEX instruction in control area 1 are placed in the range of addresses "2000h" to "20FFh", it becomes possible to provide many 2-byte CALLEX instructions in the program of control area 1. This makes it possible to save the program capacity of control area 1. In other words, the program of control area 2 is called from the program of control area 1 not only once, but may be configured to be called multiple times.

また、制御領域3のプログラムの先頭アドレスは「2A00h」であり、「20FFh」以降である。したがって、制御領域3のプログラム「M3_xxxxx」は、アドレス「20FFh」以降に配置されている。このため、制御領域1のプログラム「CALLEX M3_xxxxx」は4バイトとなる。換言すると、制御領域3のアドレスには「2000h」~「20FFh」の範囲が存在しないので、制御領域1のプログラムから制御領域3のプログラムを呼び出す場合のCALLEX命令のコードサイズは、すべて4バイトとなる。なお、制御領域1のプログラムから制御領域3のプログラムを呼び出すのは、1回に限られるものではなく、複数回呼び出されるように構成されていてもよい。 The start address of the program in control area 3 is "2A00h", which is after "20FFh". Therefore, the program "M3_xxxxx" in control area 3 is located after address "20FFh". For this reason, the program "CALLEX M3_xxxxx" in control area 1 is 4 bytes. In other words, since there is no range of addresses from "2000h" to "20FFh" in control area 3, the code size of the CALLEX instruction when calling a program in control area 3 from a program in control area 1 is always 4 bytes. Note that calling a program in control area 3 from a program in control area 1 is not limited to once, but may be configured to be called multiple times.

ここで、通常のCALL命令によりプログラム「M3_xxxxx」を呼び出す場合には、
DI(1バイト)
PUSH AF(1バイト)
CALL M3_xxxxx(3バイト)
POP AF(1バイト)
EI(1バイト)
となり、合計7バイトとなり、4バイトのCALLEX命令よりも大きくなる。よって、制御領域1のプログラムから制御領域3のプログラムを呼び出す場合であっても、CALL命令ではなくCALLEX命令を用いた方が容量を少なくすることができる。
Here, when calling the program "M3_xxxxx" with a normal CALL command,
DI (1 byte)
PUSH AF (1 byte)
CALL M3_xxxxxx (3 bytes)
POP AF (1 byte)
EI (1 byte)
This totals 7 bytes, which is larger than the 4-byte CALLEX command. Therefore, even when calling a program in control area 3 from a program in control area 1, using the CALLEX command instead of the CALL command can reduce the size.

以上、本発明の第4実施形態について説明したが、本発明は、上記実施形態に限定されるものではなく、たとえば以下のような種々の変形が可能である。
(1)制御領域1のプログラムにおいて、2バイトからなる「CALLEX mn(mn=2000h~20FFh)」をより多く設けるために、第3実施形態の図50で示したJR(ジャンプ)命令を用いてもよい。
図58は、この場合のプログラム例を示す図である。JR命令のコードサイズは、第3実施形態と同様に3バイトであるものとする。
Although the fourth embodiment of the present invention has been described above, the present invention is not limited to the above embodiment, and various modifications such as those described below are possible.
(1) In order to provide more 2-byte "CALLEX mn (mn=2000h to 20FFh)" in the program of the control area 1, the JR (jump) instruction shown in FIG. 50 of the third embodiment may be used.
58 is a diagram showing an example of a program in this case. The code size of the JR instruction is assumed to be 3 bytes, similar to the third embodiment.

そして、制御領域1のCALLEX命令で指定した制御領域2のアドレスには、JR命令を配置する。たとえば制御領域1のプログラムにおいて「CALLEX 2000h」とした場合には、制御領域2のアドレス「2000h」には、「JR 2100h」を置く。すなわち、ジャンプ先アドレスは「2100h」以降に設定されている。
「JR mn」命令は3バイト要するため、制御領域2のアドレス「2000h」以降では、3バイト刻みで「JR mn」を配置している。
そして、制御領域2のアドレス「2100h」以降に、実際のプログラムを配置すればよい。
このように設定すれば、制御領域1のプログラムにおいて、2バイトのCALLEX命令をできるだけ多く設けることができる。
Then, a JR instruction is placed at the address in control area 2 specified by the CALLEX instruction in control area 1. For example, if "CALLEX 2000h" is specified in the program in control area 1, then "JR 2100h" is placed at address "2000h" in control area 2. In other words, the jump destination address is set to "2100h" or later.
Since the "JR mn" command requires three bytes, "JR mn" is allocated in 3-byte increments from address "2000h" onwards in the control area 2.
The actual program can then be placed in the control area 2 starting from address 2100h.
By setting in this way, it is possible to provide as many 2-byte CALLEX instructions as possible in the program in the control area 1.

(2)図55の例1~図57の例3は、制御領域1において、制御領域2のプログラム「M2_nnnnn」を呼び出し、この「M2_nnnnn」を終了してから制御領域3のプログラム「M3_xxxxx」を呼び出し、この「M3_xxxxx」を実行したが、制御領域2のプログラムや、制御領域3のプログラムを実行する処理の順序や処理のタイミングは、適宜、設計変更することが可能である。
たとえば、制御領域2のプログラムを実行した後、制御領域1のプログラムを実行し、ある処理タイミングで制御領域3のプログラムを実行することや、制御領域3のプログラムを実行した後、制御領域1のプログラムを実行し、ある処理タイミングで制御領域2のプログラムを実行すること等が挙げられる。
また、上述したように、制御領域1のプログラムから制御領域2のプログラムを呼出す回数は、1回に限らず、複数回でもよい。同様に、制御領域1のプログラムから制御領域3のプログラムを呼出す回数は、1回に限らず、複数回でもよい。
(2) In Example 1 of Figure 55 to Example 3 of Figure 57, control area 1 calls the program "M2_nnnnn" in control area 2, and after terminating this "M2_nnnnn", it calls the program "M3_xxxxx" in control area 3 and executes this "M3_xxxxx". However, the process order and processing timing for executing the programs in control area 2 and control area 3 can be redesigned as appropriate.
For example, after executing a program in control area 2, a program in control area 1 may be executed, and then a program in control area 3 may be executed at a certain processing timing; or, after executing a program in control area 3, a program in control area 1 may be executed, and then a program in control area 2 may be executed at a certain processing timing.
As described above, the number of times that the program in control area 1 calls the program in control area 2 is not limited to one time, but may be multiple times. Similarly, the number of times that the program in control area 1 calls the program in control area 3 is not limited to one time, but may be multiple times.

(3)第4実施形態は、メダルレス遊技機に限らず、風営法上の回胴式遊技機やぱちんこ遊技機にも適用することができる。さらには、遊技球を用いるパロットや、カジノマシンにも適用することができる。
(4)第1~第4実施形態、及び第1~第4実施形態で示した各種の変形例は、単独で実施されることに限らず、適宜組み合わせて実施することが可能である。
(3) The fourth embodiment can be applied not only to medal-less gaming machines, but also to slot machines and pachinko machines under the Entertainment and Amusement Act. Furthermore, it can be applied to Parrot and casino machines that use game balls.
(4) The first to fourth embodiments and the various modifications shown in the first to fourth embodiments are not limited to being implemented alone, but can be implemented in appropriate combinations.

<付記>
本願の当初明細書等に記載した発明(当初発明)は、たとえば以下の当初発明1及び2を挙げることができ、それぞれ、当初発明が解決しようとする課題、当初発明に係る課題を解決するための手段及び当初発明の効果は、以下の通りである。ただし、本明細書に記載した発明は、当初発明1及び2に限ることを意味するものではない。
<Additional Notes>
The inventions (original inventions) described in the original specification etc. of the present application can be, for example, the following Original Inventions 1 and 2. The problems that the original inventions aim to solve, the means for solving the problems related to the original inventions, and the effects of the original inventions are as follows. However, this does not mean that the inventions described in this specification are limited to Original Inventions 1 and 2.

1.当初発明1
当初発明は、
主制御ROM領域(主制御ROM502の記憶領域)と、
遊技媒体数制御ROM領域(遊技媒体数制御ROM504の記憶領域)と、
使用領域外ROM領域(使用領域外ROM506の記憶領域)とを有し、
遊技媒体数制御ROM領域のプログラムからは、使用領域外ROM領域のプログラムを呼び出すことができないように構成され、
主制御ROM領域のプログラムからは、使用領域外ROM領域のプログラムを呼び出すことができるように構成されている
ことを特徴とする。
1. Initial invention 1
The original invention was
A main control ROM area (a storage area of the main control ROM 502);
A game media number control ROM area (a storage area of the game media number control ROM 504),
A ROM area outside the area of use (a storage area of the ROM 506 outside the area of use),
The program in the game media number control ROM area is configured so that the program in the ROM area outside the use area cannot be called.
The present invention is characterized in that it is configured so that a program in the main control ROM area can call a program in the external ROM area.

2.当初発明2
当初発明は、
主制御ROM領域(主制御ROM502の記憶領域)と、
遊技媒体数制御ROM領域(遊技媒体数制御ROM504の記憶領域)と、
使用領域外ROM領域(使用領域外ROM506の記憶領域)とを有し、
第1レジスタバンク(レジスタバンク0)には、複数のレジスタ(たとえば、FレジスタやSPレジスタ等)を有し、
第2レジスタバンク(レジスタバンク1)には、複数のレジスタ(たとえば、FレジスタやSPレジスタ等)を有し、
主制御ROM領域のプログラムから遊技媒体数制御ROM領域のプログラムを呼び出す際には、特殊呼び出し命令(CALLEX命令)を用い、
特殊呼び出し命令を実行することによって、第1レジスタバンクから第2レジスタバンクに切り換え可能とする
ことを特徴とする。
2. Initial invention 2
The original invention was
A main control ROM area (a storage area of the main control ROM 502);
A game media number control ROM area (a storage area of the game media number control ROM 504),
A ROM area outside the area of use (a storage area of the ROM 506 outside the area of use),
The first register bank (register bank 0) has a plurality of registers (e.g., an F register, an SP register, etc.),
The second register bank (register bank 1) has a plurality of registers (e.g., an F register, an SP register, etc.),
When a program in the main control ROM area calls a program in the number of game media control ROM area, a special call command (CALLEX command) is used.
The present invention is characterized in that it is possible to switch from the first register bank to the second register bank by executing a special call instruction.

10 スロットマシン、遊技機
11 電源スイッチ
12 設定キースイッチ
13 設定スイッチ
14 リセットスイッチ
21 演出ランプ
22 スピーカ
23 画像表示装置
31 リール
32 モータ
33 リールセンサ
40a 1ベットスイッチ
40b 3ベットスイッチ
41 スタートスイッチ
42 ストップスイッチ
46 キャンセルスイッチ、精算スイッチ
47 計数スイッチ
50 メイン制御基板(メイン制御手段)、主制御基板(主制御手段)
51 入力ポート
52 出力ポート
53 (第1主制御)RWM
53a ベット数記憶手段
53b 付与数記憶手段
54 (第1主制御)ROM
55 メインCPU、(第1主制御)CPU
61 役抽選手段
62 当選フラグ制御手段
65 リール制御手段
66 入賞判定手段
67 付与手段
73 設定値表示手段
76 クレジット数表示LED
77 ベット数表示部
78 獲得数表示LED、付与数表示部
80 サブ制御基板(サブ制御手段)、副制御基板(副制御手段)
80a 1チップマイクロプロセッサ
81 入力ポート
82 出力ポート
83 (副制御)RWM
84 (副制御)ROM
85 サブCPU、(副制御)CPU
91 演出出力制御手段
100 払出制御基板(クレジット数管理基板)、遊技媒体数制御基板
101 入力ポート
102 出力ポート
103 (第2主制御)RWM
103a 遊技媒体数記憶手段
104 (第2主制御)ROM
105 クレジット数管理CPU、(第2主制御)CPU
106 コンデンサ
107 コンデンサA
108 コンデンサB
111 クレジット数管理手段
112 総遊技媒体数クリアスイッチ
113 役比モニタ
120 遊技媒体数表示基板(遊技媒体数表示装置)
121 遊技媒体数表示部
130 接続端子板
150 電源基板
151 コンデンサ
161 ハーネスA
162 ハーネスB
163 ハーネスC
164 ハーネスD
165 ハーネスE
166 ハーネスF
167 ハーネスG
168 ハーネスH
190 外部集中端子板
200 管理装置(CRユニット)、貸出ユニット
201 紙幣投入口
202 貸出スイッチ
203 返却スイッチ
204 度数表示部
205 カードリーダライタ
300 ホールコンピュータ
400 管理コンピュータ
500 1チップマイクロプロセッサ
501 主CPU
502 主制御ROM
503 主制御RWM
504 遊技媒体数制御ROM
505 遊技媒体数制御RWM
506 使用領域外ROM
507 使用領域外RWM
10 Slot machine, gaming machine 11 Power switch 12 Setting key switch 13 Setting switch 14 Reset switch 21 Performance lamp 22 Speaker 23 Image display device 31 Reel 32 Motor 33 Reel sensor 40a 1 bet switch 40b 3 bet switch 41 Start switch 42 Stop switch 46 Cancel switch, settlement switch 47 Counting switch 50 Main control board (main control means), main control board (main control means)
51 Input port 52 Output port 53 (First main control) RWM
53a bet number storage means 53b award number storage means 54 (first main control) ROM
55 Main CPU, (first main control) CPU
61: Role selection means 62: Winning flag control means 65: Reel control means 66: Winning determination means 67: Awarding means 73: Setting value display means 76: Credit number display LED
77 Bet number display unit 78 Acquired number display LED, awarded number display unit 80 Sub-control board (sub-control means), sub-control board (sub-control means)
80a 1-chip microprocessor 81 Input port 82 Output port 83 (Secondary control) RWM
84 (Sub-control) ROM
85 Sub-CPU, (Sub-control) CPU
91: Performance output control means 100: Payout control board (credit number management board), game media number control board 101: Input port 102: Output port 103: (Second main control) RWM
103a Game media number storage means 104 (second main control) ROM
105 Credit number management CPU, (second main control) CPU
106 Capacitor 107 Capacitor A
108 Capacitor B
111 Credit number management means 112 Total number of game media clear switch 113 Role ratio monitor 120 Game media number display board (game media number display device)
121 Game media number display unit 130 Connection terminal board 150 Power supply board 151 Capacitor 161 Harness A
162 Harness B
163 Harness C
164 Harness D
165 Harness E
166 Harness F
167 Harness G
168 Harness H
190 External centralized terminal board 200 Management device (CR unit), lending unit 201 Bill insertion slot 202 Lending switch 203 Return switch 204 Points display unit 205 Card reader/writer 300 Hall computer 400 Management computer 500 One-chip microprocessor 501 Main CPU
502 Main control ROM
503 Main control RWM
504 Game media number control ROM
505 Game media number control RWM
506 ROM outside the usage area
507 RWM outside usage area

Claims (1)

マイクロプロセッサの記憶領域には、
主制御ROM領域と、
遊技媒体数制御ROM領域と、
使用領域外ROM領域と
を少なくとも有し、
主制御ROM領域のプログラムで使用する第1レジスタバンクを有し、
遊技媒体数制御ROM領域のプログラムで使用する第2レジスタバンクを有し、
第1レジスタバンクには、複数のレジスタを有し、
第2レジスタバンクには、複数のレジスタを有し、
主制御ROM領域に記憶されている特殊呼び出し命令を実行することによって、主制御ROM領域のプログラムから遊技媒体数制御ROM領域のプログラムの呼び出しが可能であり、
主制御ROM領域に記憶されている特殊呼び出し命令を実行することによって、第1レジスタバンクから第2レジスタバンクに切り換え可能とする
ことを特徴とする遊技機。
The memory area of the microprocessor includes:
A main control ROM area;
A game media number control ROM area;
and a ROM area outside the use area,
a first register bank for use with a program in the main control ROM area;
A second register bank is provided for use in a program in the game media number control ROM area;
The first register bank has a plurality of registers,
the second register bank has a plurality of registers;
By executing a special call command stored in the main control ROM area , it is possible to call a program in the number of game media control ROM area from a program in the main control ROM area;
A gaming machine capable of switching from a first register bank to a second register bank by executing a special call command stored in a main control ROM area .
JP2020107029A 2020-06-22 2020-06-22 Gaming Machines Active JP7534608B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020107029A JP7534608B2 (en) 2020-06-22 2020-06-22 Gaming Machines

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020107029A JP7534608B2 (en) 2020-06-22 2020-06-22 Gaming Machines

Publications (2)

Publication Number Publication Date
JP2022001223A JP2022001223A (en) 2022-01-06
JP7534608B2 true JP7534608B2 (en) 2024-08-15

Family

ID=79244639

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020107029A Active JP7534608B2 (en) 2020-06-22 2020-06-22 Gaming Machines

Country Status (1)

Country Link
JP (1) JP7534608B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005160652A (en) 2003-12-01 2005-06-23 Takao:Kk Pinball machine
JP2016179073A (en) 2015-03-24 2016-10-13 京楽産業.株式会社 Game machine

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005160652A (en) 2003-12-01 2005-06-23 Takao:Kk Pinball machine
JP2016179073A (en) 2015-03-24 2016-10-13 京楽産業.株式会社 Game machine

Also Published As

Publication number Publication date
JP2022001223A (en) 2022-01-06

Similar Documents

Publication Publication Date Title
JP7534607B2 (en) Gaming Machines
JP7071663B2 (en) Pachinko machine
JP6997394B2 (en) Pachinko machine
JP7415175B2 (en) gaming machine
JP6826298B1 (en) Game machine
JP6989803B2 (en) Pachinko machine
JP7448456B2 (en) gaming machine
JP6898573B1 (en) Pachinko machine
JP6993593B2 (en) Pachinko machine
JP7534608B2 (en) Gaming Machines
JP7448448B2 (en) gaming machine
JP7448452B2 (en) gaming machine
JP7415174B2 (en) gaming machine
JP7448449B2 (en) gaming machine
JP7448451B2 (en) gaming machine
JP7448453B2 (en) gaming machine
JP7448454B2 (en) gaming machine
JP7448455B2 (en) gaming machine
JP7448450B2 (en) gaming machine
JP6989802B2 (en) Pachinko machine
JP6989801B2 (en) Pachinko machine
JP6993592B2 (en) Pachinko machine
JP6997395B2 (en) Pachinko machine
JP2024060358A (en) Game machine
JP2024060352A (en) Game machine

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230418

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20231227

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20240109

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20240221

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20240507

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20240617

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20240715

R150 Certificate of patent or registration of utility model

Ref document number: 7534608

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150