JP2012024417A - Game machine - Google Patents

Game machine Download PDF

Info

Publication number
JP2012024417A
JP2012024417A JP2010167517A JP2010167517A JP2012024417A JP 2012024417 A JP2012024417 A JP 2012024417A JP 2010167517 A JP2010167517 A JP 2010167517A JP 2010167517 A JP2010167517 A JP 2010167517A JP 2012024417 A JP2012024417 A JP 2012024417A
Authority
JP
Japan
Prior art keywords
command
prize ball
cpu
timer
game
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.)
Pending
Application number
JP2010167517A
Other languages
Japanese (ja)
Inventor
Toshio Ogura
敏男 小倉
Yuichiro Sunaga
祐一郎 須永
Kenji Nagata
憲司 永田
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.)
Sankyo Co Ltd
Original Assignee
Sankyo Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sankyo Co Ltd filed Critical Sankyo Co Ltd
Priority to JP2010167517A priority Critical patent/JP2012024417A/en
Publication of JP2012024417A publication Critical patent/JP2012024417A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Pinball Game Machines (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a game machine capable of surely detecting a fraud done to a detecting unit for detecting game media without increasing the processing load of a game control unit.SOLUTION: In case a period during which a detection signal is continuously input from a switch for detecting the prizewinning by a game ball exceeds a prescribed threshold or a frequency of inputs of detection signals exceeds a prescribed threshold, a presentation control microcomputer for controlling a presentation display device determines an occurrence of malfunction based on a command indicating the state of an input port from a game control microcomputer.

Description

本発明は、遊技媒体を用いて遊技者が所定の遊技を行うことが可能であり、遊技領域に設けられている所定の通過領域を遊技媒体が通過したことにもとづいて景品として景品遊技媒体を払い出すパチンコ機などの遊技機に関する。   In the present invention, a player can play a predetermined game using a game medium, and a prize game medium is given as a prize based on the passage of the game medium through a predetermined passage area provided in the game area. It relates to gaming machines such as pachinko machines to be paid out.

遊技機として、遊技球などの遊技媒体を発射装置によって遊技領域に発射し、遊技領域に設けられている入賞口などの入賞領域に遊技媒体が入賞すると、所定個の遊技媒体が遊技者に払い出されるものがある。   As a gaming machine, a game medium such as a game ball is launched into a game area by a launching device, and when a game medium wins a prize area such as a prize opening provided in the game area, a predetermined number of game media are paid out to the player. There is something to be done.

遊技機における遊技進行は、マイクロコンピュータ等による遊技制御手段によって制御される。遊技媒体の払出の制御を行う払出制御手段が、遊技制御手段が搭載されている遊技制御基板(主基板)とは別の払出制御基板に搭載されている場合、遊技の進行は主基板に搭載された遊技制御手段によって制御されるので、入賞にもとづく景品遊技媒体数は遊技制御手段によって決定され、景品遊技媒体数を示す制御コマンドが払出制御基板に送信される。そして、払出制御手段は、遊技制御手段からの制御コマンドにもとづいて、入賞にもとづく景品遊技媒体を払い出す処理を行う(例えば、特許文献1参照)。   Game progress in the gaming machine is controlled by game control means such as a microcomputer. If the payout control means for controlling the payout of game media is mounted on a payout control board different from the game control board (main board) on which the game control means is mounted, the progress of the game is mounted on the main board Therefore, the number of prize game media based on the winning is determined by the game control means, and a control command indicating the number of prize game media is transmitted to the payout control board. Then, the payout control means performs a process of paying out the prize game medium based on the winning based on the control command from the game control means (see, for example, Patent Document 1).

特許文献1に記載された遊技機では、異常検出のために、遊技制御手段は、入賞領域に設けられている遊技媒体を検出する検出手段からの検出信号が遊技媒体検出状態に相当する状態になっている期間が所定期間を越えると検出手段に異常が生じていると判定する。また、特許文献1には、遊技制御手段が検出手段からの検出信号にもとづいて不正行為(不正に景品としての遊技媒体を獲得する行為)を検出することが記載されている。   In the gaming machine described in Patent Document 1, for abnormality detection, the game control means causes the detection signal from the detection means for detecting the game medium provided in the winning area to be in a state corresponding to the game medium detection state. If the period of time exceeds the predetermined period, it is determined that an abnormality has occurred in the detection means. Patent Document 1 describes that the game control means detects an illegal act (an act of illegally acquiring a game medium as a prize) based on a detection signal from the detection means.

特開2000−5408号公報JP 2000-5408 A

特許文献1に記載された遊技機では、遊技制御手段が遊技媒体を検出する検出手段からの検出信号にもとづいて不正行為がなされているか否かの判定処理を実行するので、本来遊技制御処理を実行する遊技制御手段の処理負担(換言すれば、プログラム量)が増大するという課題がある。   In the gaming machine described in Patent Document 1, since the game control means executes a determination process as to whether or not an illegal act is performed based on a detection signal from a detection means for detecting a game medium, the game control process is originally performed. There is a problem that the processing load (in other words, the program amount) of the game control means to be executed increases.

そこで、本発明は、遊技制御手段の処理負担を増大させることなく、遊技媒体を検出する検出手段に対する不正行為を確実に検知することができる遊技機を提供することを目的とする。   Accordingly, an object of the present invention is to provide a gaming machine that can reliably detect an illegal act against a detection means for detecting a game medium without increasing the processing load of the game control means.

本発明による遊技機は、遊技媒体(例えば、遊技球)を用いて遊技者が所定の遊技を行うことが可能であり、遊技領域に設けられている所定の通過領域(例えば、可変入賞球装置15、入賞口29,30、大入賞口)を遊技媒体が通過したことにもとづいて景品として景品遊技媒体を払い出す遊技機であって、通過領域を通過する遊技媒体を検出して検出信号を出力する検出手段(例えば、始動口スイッチ14a、カウントスイッチ23および入賞口スイッチ29a,30a)と、遊技の進行を制御する遊技制御処理を実行する遊技制御手段(例えば、遊技制御用マイクロコンピュータ560)と、遊技制御手段が出力したコマンドにもとづいて、遊技機に設けられている電気部品(例えば、演出表示装置9や球払出装置97)を制御する電気部品制御手段(例えば、演出制御用マイクロコンピュータ100や払出制御用マイクロコンピュータ370)とを備え、遊技制御手段は、検出手段からの検出信号を入力し、検出信号の入力状態を示すコマンド(例えば、入力ポート状態指定コマンド)を電気部品制御手段に出力するコマンド出力手段(例えば、遊技制御用マイクロコンピュータ560において、ステップS111の処理を実行する部分)を含み、電気部品制御手段は、コマンド出力手段が出力したコマンドにもとづいて、検出信号の入力が継続している期間または検出信号の入力頻度が所定の閾値(例えば、期間についての1秒、入力頻度についての10/0.5秒:図49および図52参照)を超えた場合に異常が生じたと判定する異常判定手段(例えば、演出制御用マイクロコンピュータ100において、図51,図54,図56に示す異常判定処理を実行する部分や、払出制御用マイクロコンピュータ100において、図59,図60,図61に示す異常判定処理を実行する部分)とを含むことを特徴とする。
そのような構成によれば、遊技制御手段の処理負担を増大させることなく、遊技媒体を検出する検出手段に対する不正行為を確実に検知することができる。
The gaming machine according to the present invention enables a player to perform a predetermined game using a game medium (for example, a game ball), and a predetermined passing area (for example, a variable winning ball apparatus provided in the game area). 15, a winning opening 29, 30 and a large winning opening), which is a gaming machine that pays out a prize gaming medium as a prize based on the passing of the gaming medium, and detects the gaming medium passing through the passing area and outputs a detection signal. Detection means for outputting (for example, start port switch 14a, count switch 23 and winning port switches 29a and 30a) and game control means for executing game control processing for controlling the progress of the game (for example, game control microcomputer 560) And an electric component for controlling the electrical components (for example, the effect display device 9 and the ball payout device 97) provided in the gaming machine based on the command output by the game control means. Component control means (for example, the production control microcomputer 100 and the payout control microcomputer 370), the game control means inputs a detection signal from the detection means, and commands (for example, the input state of the detection signal) Command output means (for example, a part for executing the processing of step S111 in the game control microcomputer 560) that outputs the input port state designation command) to the electrical component control means. Based on the output command, the detection signal input period or the detection signal input frequency is a predetermined threshold (for example, 1 second for the period, 10 / 0.5 second for the input frequency: FIG. 49 and An abnormality determining means (for example, for effect control) that determines that an abnormality has occurred when exceeding (see FIG. 52) (The part that executes the abnormality determination process shown in FIGS. 51, 54, and 56 in the microcomputer 100, or the part that executes the abnormality determination process shown in FIGS. 59, 60, and 61 in the payout control microcomputer 100) It is characterized by including.
According to such a configuration, it is possible to reliably detect an illegal act against the detection means for detecting the game medium without increasing the processing load on the game control means.

遊技制御手段は、複数の検出手段の各々からの検出信号を1つの入力ポート(例えば、図11に示す入力ポート0)を介して入力し、コマンド出力手段は、入力ポートの入力データを一括してコマンドとして出力する(例えば、1バイトのデータとして出力する)ように構成されていてもよい。
そのような構成によれば、遊技制御手段は、異常判定手段を含む電気部品制御手段に対して検出手段の検出信号を一括して伝達することができるので、複数の検出手段を異常検出の対象にする場合であっても遊技制御手段の処理負担は増大しない。
The game control means inputs detection signals from each of the plurality of detection means via one input port (for example, input port 0 shown in FIG. 11), and the command output means collectively inputs the input data of the input ports. And output as a command (for example, output as 1-byte data).
According to such a configuration, the game control means can collectively transmit the detection signals of the detection means to the electrical component control means including the abnormality determination means, so that the plurality of detection means are subject to abnormality detection. Even in this case, the processing load of the game control means does not increase.

電気部品制御手段は、景品遊技媒体を払い出す払出手段(例えば、球払出装置97)を制御する払出制御処理(例えば、図37に示すステップS765の処理)を実行する払出制御手段(例えば、払出制御用マイクロコンピュータ370)であり、払出制御手段は、異常判定手段が異常が生じたと判定したときに、異常が生じたことを示す異常信号を遊技機の外部に出力する異常信号出力手段(例えば、払出制御用マイクロコンピュータ370において、ステップS914,S940,S960の処理を実行する部分)を含むように構成されていてもよい。
そのような構成によれば、検出手段に関して異常が生じたことを遊技機の外部おいて把握可能になり、不正行為をより確実に検知することが可能になる。
The electrical component control means executes payout control means (for example, payout) for executing payout control processing (for example, processing in step S765 shown in FIG. 37) for controlling payout means (for example, ball payout device 97) for paying out the prize game medium. A control microcomputer 370), and when the abnormality determining means determines that an abnormality has occurred, the payout control means outputs an abnormal signal indicating that an abnormality has occurred to the outside of the gaming machine (for example, an abnormal signal output means) The payout control microcomputer 370 may be configured to include a portion for executing the processes of steps S914, S940, and S960.
According to such a configuration, it is possible to grasp outside the gaming machine that an abnormality has occurred with respect to the detection means, and it is possible to more reliably detect fraud.

異常判定手段は、検出信号の入力回数を検出し(図54におけるステップS732や、図60におけるステップS932参照)、所定期間(例えば、0.5秒)において検出した入力回数が所定回数(例えば、10)を超えた場合に異常が生じたと判定するように構成されていてもよい(図54におけるステップS736、図60におけるステップS936参照)。
そのような構成によれば、検出手段の検出信号を不正にオンオフさせるような不正行為を検知することができるので、不正行為をより確実に検知することができる。
The abnormality determination means detects the number of times of input of the detection signal (see step S732 in FIG. 54 and step S932 in FIG. 60), and the number of times of input detected in a predetermined period (for example, 0.5 seconds) is a predetermined number of times (for example, 10), it may be configured to determine that an abnormality has occurred (see step S736 in FIG. 54, step S936 in FIG. 60).
According to such a configuration, since it is possible to detect an illegal act that illegally turns on and off the detection signal of the detection means, it is possible to detect the illegal act more reliably.

コマンド出力手段は、検出信号の入力状態が変化したときにのみ検出信号の入力状態を示すコマンドを出力するように構成されていてもよい(図23におけるステップS109〜S111参照)。
そのような構成によれば、コマンドの出力周期によって遊技制御手段の制御周期を把握することにもとづく不正行為も防止することができる。
The command output means may be configured to output a command indicating the input state of the detection signal only when the input state of the detection signal changes (see steps S109 to S111 in FIG. 23).
According to such a configuration, an illegal act based on grasping the control cycle of the game control means based on the command output cycle can also be prevented.

パチンコ遊技機を正面からみた正面図である。It is the front view which looked at the pachinko game machine from the front. ガラス扉枠を取り外した状態での遊技盤の前面を示す正面図である。It is a front view which shows the front surface of the game board in the state which removed the glass door frame. 遊技機を裏面から見た背面図である。It is the rear view which looked at the gaming machine from the back. 遊技制御基板(主基板)の構成例を示すブロック図である。It is a block diagram which shows the structural example of a game control board (main board). 払出制御基板の回路構成例を示すブロック図である。It is a block diagram which shows the circuit structural example of a payout control board. 演出制御基板の回路構成例を示すブロック図である。It is a block diagram showing a circuit configuration example of an effect control board. シリアル通信回路が備えるデータレジスタの例を示す説明図である。It is explanatory drawing which shows the example of the data register with which a serial communication circuit is provided. 大当り判定用テーブルメモリの例を示す説明図である。It is explanatory drawing which shows the example of the table memory for jackpot determination. 遊技制御手段における出力ポートのビット割り当て例を示す説明図である。It is explanatory drawing which shows the example of bit allocation of the output port in a game control means. 遊技制御手段における出力ポートのビット割り当て例を示す説明図である。It is explanatory drawing which shows the example of bit allocation of the output port in a game control means. 遊技制御手段における入力ポートのビット割り当て例を示す説明図である。It is explanatory drawing which shows the bit allocation example of the input port in a game control means. 遊技制御用マイクロコンピュータが実行するメイン処理を示すフローチャートである。It is a flowchart which shows the main process which the microcomputer for game control performs. 遊技制御用マイクロコンピュータが実行するメイン処理を示すフローチャートである。It is a flowchart which shows the main process which the microcomputer for game control performs. シリアル通信回路設定処理を示すフローチャートである。It is a flowchart which shows a serial communication circuit setting process. 4msタイマ割込処理を示すフローチャートである。It is a flowchart which shows a 4 ms timer interruption process. 特別図柄プロセス処理の一例を示すフローチャートである。It is a flowchart which shows an example of a special symbol process process. 遊技制御手段から払出制御手段に対して出力される制御信号の内容の一例を示す説明図である。It is explanatory drawing which shows an example of the content of the control signal output with respect to the payout control means from a game control means. 遊技制御手段と払出制御手段との間で送受信される制御コマンドの内容の一例を示す説明図である。It is explanatory drawing which shows an example of the content of the control command transmitted / received between a game control means and a payout control means. 接続OKコマンドおよび賞球準備中コマンドに設定されるエラー情報の例を示す説明図である。It is explanatory drawing which shows the example of the error information set to a connection OK command and a prize ball preparation command. 不正行為の一例を説明するための説明図である。It is explanatory drawing for demonstrating an example of a cheating. 演出制御コマンドの内容の一例を示す説明図である。It is explanatory drawing which shows an example of the content of an effect control command. スイッチ処理で使用されるRAMに形成される各2バイトのバッファを示す説明図である。It is explanatory drawing which shows each 2 byte buffer formed in RAM used by switch processing. スイッチ処理の処理例を示すフローチャートである。It is a flowchart which shows the process example of a switch process. 賞球処理の一例を示すフローチャートである。It is a flowchart which shows an example of a prize ball process. 賞球個数テーブルの例を示す説明図である。It is explanatory drawing which shows the example of a prize ball number table. 賞球コマンド出力カウンタ加算処理を示すフローチャートである。It is a flowchart which shows a prize ball command output counter addition process. 賞球制御処理を示すフローチャートである。It is a flowchart which shows a prize ball control process. 賞球送信処理1を示すフローチャートである。It is a flowchart which shows prize ball transmission processing 1. 賞球接続確認処理を示すフローチャートである。It is a flowchart which shows a prize ball connection confirmation process. 賞球送信処理2を示すフローチャートである。It is a flowchart which shows the prize ball transmission process 2. FIG. 賞球受領確認処理を示すフローチャートである。It is a flowchart which shows a prize ball receipt confirmation process. 賞球終了確認処理を示すフローチャートである。It is a flowchart which shows a prize ball completion | finish confirmation process. 賞球カウンタ減算処理を示すフローチャートである。It is a flowchart which shows a prize ball counter subtraction process. 払出制御手段における出力ポートのビット割り当て例を示す説明図である。It is explanatory drawing which shows the bit allocation example of the output port in a payout control means. 払出制御手段における入力ポートのビット割り当て例を示す説明図である。It is explanatory drawing which shows the example of bit allocation of the input port in a payout control means. 払出制御用CPUが実行するメイン処理を示すフローチャートである。It is a flowchart which shows the main process which CPU for payout control performs. 払出制御用CPUが実行するタイマ割込処理を示すフローチャートである。It is a flowchart which shows the timer interruption process which CPU for payout control performs. 主制御通信処理を示すフローチャートである。It is a flowchart which shows a main control communication process. 主制御コマンド受信処理を示すフローチャートである。It is a flowchart which shows a main control command reception process. 主制御接続確認処理を示すフローチャートである。It is a flowchart which shows a main control connection confirmation process. 主制御通信通常処理を示すフローチャートである。It is a flowchart which shows main control communication normal processing. 主制御通信通常処理を示すフローチャートである。It is a flowchart which shows main control communication normal processing. 主制御通信中処理を示すフローチャートである。It is a flowchart which shows the process during main control communication. 主制御通信中処理を示すフローチャートである。It is a flowchart which shows the process during main control communication. 主制御通信終了処理を示すフローチャートである。It is a flowchart which shows a main control communication end process. 演出制御用マイクロコンピュータが実行するメイン処理を示すフローチャートである。It is a flowchart which shows the main process which the microcomputer for production control performs. コマンド解析処理を示すフローチャートである。It is a flowchart which shows a command analysis process. 演出制御プロセス処理を示すフローチャートである。It is a flowchart which shows production control process processing. 入賞異常の検出方法の一例を示す説明図である。It is explanatory drawing which shows an example of the detection method of winning abnormality. 演出制御用マイクロコンピュータが入賞異常の検出に関して使用するタイマの一例を示す説明図である。It is explanatory drawing which shows an example of the timer which the microcomputer for production control uses regarding the detection of winning abnormality. 演出制御用マイクロコンピュータが実行する異常判定処理を示すフローチャートである。It is a flowchart which shows the abnormality determination process which the microcomputer for production control performs. 入賞異常の検出方法の他の例を示す説明図である。It is explanatory drawing which shows the other example of the detection method of winning abnormality. 演出制御用マイクロコンピュータが入賞異常の検出に関して使用するタイマ、フラグおよびカウンタの一例を示す説明図である。FIG. 10 is an explanatory diagram illustrating an example of a timer, a flag, and a counter that are used by the production control microcomputer for detection of a winning abnormality. 演出制御用マイクロコンピュータが実行する異常判定処理を示すフローチャートである。It is a flowchart which shows the abnormality determination process which the microcomputer for production control performs. 入賞異常の検出方法のさらに他の例を示す説明図である。It is explanatory drawing which shows the further another example of the detection method of winning abnormality. 演出制御用マイクロコンピュータが実行する異常判定処理を示すフローチャートである。It is a flowchart which shows the abnormality determination process which the microcomputer for production control performs. 遊技制御手段と払出制御手段との間で送受信される制御コマンドの内容の一例を示す説明図である。It is explanatory drawing which shows an example of the content of the control command transmitted / received between a game control means and a payout control means. 払出制御用CPUが実行するタイマ割込処理を示すフローチャートである。It is a flowchart which shows the timer interruption process which CPU for payout control performs. 払出制御用マイクロコンピュータが実行する異常判定処理を示すフローチャートである。It is a flowchart which shows the abnormality determination process which the microcomputer for payout control performs. 払出制御用マイクロコンピュータが実行する異常判定処理を示すフローチャートである。It is a flowchart which shows the abnormality determination process which the microcomputer for payout control performs. 払出制御用マイクロコンピュータが実行する異常判定処理を示すフローチャートである。It is a flowchart which shows the abnormality determination process which the microcomputer for payout control performs. フォトセンサを説明するための説明図である。It is explanatory drawing for demonstrating a photosensor. 近接スイッチとフォトセンサの併用例を示す説明図である。It is explanatory drawing which shows the example of combined use of a proximity switch and a photosensor. 遊技制御手段における入力ポートのビット割り当ての他の例を示す説明図である。It is explanatory drawing which shows the other example of the bit allocation of the input port in a game control means.

以下、本発明の一実施形態を図面を参照して説明する。
まず、遊技機の一例であるパチンコ遊技機の全体の構成について説明する。図1はパチンコ遊技機を正面からみた正面図、図2は遊技盤の前面を示す正面図である。なお、以下の実施の形態では、パチンコ遊技機を例に説明を行うが、本発明による遊技機はパチンコ遊技機に限られず、本発明をスロット機などの他の遊技機に適用することもできる。
Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
First, the overall configuration of a pachinko gaming machine that is an example of a gaming machine will be described. FIG. 1 is a front view of a pachinko gaming machine as viewed from the front, and FIG. 2 is a front view showing the front of the game board. In the following embodiment, a pachinko gaming machine will be described as an example. However, the gaming machine according to the present invention is not limited to a pachinko gaming machine, and the present invention can also be applied to other gaming machines such as a slot machine. .

パチンコ遊技機1は、縦長の方形状に形成された外枠(図示せず)と、外枠の内側に開閉可能に取り付けられた遊技枠とで構成される。また、パチンコ遊技機1は、遊技枠に開閉可能に設けられている額縁状に形成されたガラス扉枠2を有する。遊技枠は、外枠に対して開閉自在に設置される前面枠(図示せず)と、機構部品等が取り付けられる機構板と、それらに取り付けられる種々の部品(後述する遊技盤を除く。)とを含む構造体である。   The pachinko gaming machine 1 includes an outer frame (not shown) formed in a vertically long rectangular shape, and a game frame attached to the inside of the outer frame so as to be opened and closed. Further, the pachinko gaming machine 1 has a glass door frame 2 formed in a frame shape that is provided in the game frame so as to be opened and closed. The game frame includes a front frame (not shown) installed to be openable and closable with respect to the outer frame, a mechanism plate to which mechanism parts and the like are attached, and various parts attached to them (excluding game boards described later). Is a structure including

図1に示すように、パチンコ遊技機1は、額縁状に形成されたガラス扉枠2を有する。ガラス扉枠2の下部表面には打球供給皿(上皿)3がある。打球供給皿3の下部には、打球供給皿3に収容しきれない遊技球を貯留する余剰球受皿4と遊技球を発射する打球操作ハンドル(操作ノブ)5が設けられている。ガラス扉枠2の背面には、遊技盤6が着脱可能に取り付けられている。なお、遊技盤6は、それを構成する板状体と、その板状体に取り付けられた種々の部品とを含む構造体である。また、遊技盤6の前面には遊技領域7が形成されている。   As shown in FIG. 1, the pachinko gaming machine 1 has a glass door frame 2 formed in a frame shape. On the lower surface of the glass door frame 2 is a hitting ball supply tray (upper plate) 3. Under the hitting ball supply tray 3, an extra ball receiving tray 4 for storing game balls that cannot be accommodated in the hit ball supply tray 3 and a hitting operation handle (operation knob) 5 for launching the game balls are provided. A game board 6 is detachably attached to the back surface of the glass door frame 2. The game board 6 is a structure including a plate-like body constituting the game board 6 and various components attached to the plate-like body. A game area 7 is formed on the front surface of the game board 6.

遊技領域7の中央付近には、それぞれが演出用の飾り図柄を可変表示する複数の可変表示部を含む演出表示装置9が設けられている。演出表示装置9には、例えば「左」、「中」、「右」の3つの可変表示部(図柄表示エリア)がある。演出表示装置9は、特別図柄表示器8による特別図柄の可変表示期間中に、装飾用(演出用)の図柄としての飾り図柄の可変表示を行う。飾り図柄の可変表示を行う演出表示装置9は、演出制御基板に搭載されている演出制御用マイクロコンピュータによって制御される。   In the vicinity of the center of the game area 7, there is provided an effect display device 9 including a plurality of variable display portions each variably displaying an effect decorative pattern. The effect display device 9 includes, for example, three variable display portions (symbol display areas) of “left”, “middle”, and “right”. The effect display device 9 performs variable display of decorative symbols as decorative (effect) symbols during the variable symbol variable display period of the special symbol indicator 8. The effect display device 9 that performs variable display of decorative symbols is controlled by an effect control microcomputer mounted on the effect control board.

演出表示装置9の下部には、始動入賞口14に入った有効入賞球数すなわち保留記憶(始動記憶または始動入賞記憶ともいう。)数を表示する4つの特別図柄保留記憶表示器18が設けられている。特別図柄保留記憶表示器18は、保留記憶数を入賞順に4個まで表示する。特別図柄保留記憶表示器18は、始動入賞口14に始動入賞があるごとに、点灯状態のLEDの数を1増やす。そして、特別図柄保留記憶表示器18は、特別図柄表示器8で可変表示が開始されるごとに、点灯状態のLEDの数を1減らす(すなわち1つのLEDを消灯する)。具体的には、特別図柄保留記憶表示器18は、特別図柄表示器8で可変表示が開始されるごとに、点灯状態をシフトする。なお、この例では、始動入賞口14への入賞による始動記憶数に上限数(4個まで)が設けられているが、上限数を4個以上にしてもよい。   Below the effect display device 9, four special symbol hold memory indicators 18 are provided for displaying the number of effective winning balls that have entered the start winning opening 14, that is, the number of hold memories (also called start memory or start prize memory). ing. The special symbol reservation storage display 18 displays up to four reservation storage numbers in the order of winning. The special symbol hold storage display 18 increases the number of LEDs in the lit state by 1 each time there is a start winning in the start winning opening 14. Then, each time the special symbol display 8 starts variable display, the special symbol hold storage indicator 18 reduces the number of LEDs in the lit state by 1 (that is, turns off one LED). Specifically, the special symbol hold storage display 18 shifts the lighting state each time variable display is started on the special symbol display 8. In this example, the upper limit number (up to 4) is provided for the number of starting memories by winning to the start winning opening 14, but the upper limit number may be four or more.

演出表示装置9の上部には、識別情報としての特別図柄を可変表示する特別図柄表示器(特別図柄表示装置)8が設けられている。この実施の形態では、特別図柄表示器8は、例えば0〜9の数字を可変表示可能な簡易で小型の表示器(例えば7セグメントLED)で実現されている。特別図柄表示器8は、遊技者に特定の停止図柄を把握しづらくさせるために、0〜99など、より多種類の数字を可変表示するように構成されていてもよい。また、演出表示装置9は、特別図柄表示器8による特別図柄の可変表示期間中に、装飾用(演出用)の図柄としての飾り図柄の可変表示を行う。   A special symbol display (special symbol display device) 8 that variably displays a special symbol as identification information is provided on the top of the effect display device 9. In this embodiment, the special symbol display 8 is realized by a simple and small display (for example, 7 segment LED) capable of variably displaying numbers 0 to 9, for example. The special symbol display 8 may be configured to variably display a larger number of numbers such as 0 to 99 in order to make it difficult for the player to grasp a specific stop symbol. In addition, the effect display device 9 performs variable display of the decorative symbol as a symbol for decoration (for effect) during the variable symbol display period of the special symbol by the special symbol indicator 8.

演出表示装置9の下方には、始動入賞口14を形成する可変入賞球装置15が設けられている。可変入賞球装置15は、遊技球が入賞し易い状態(開状態)と、遊技球が入賞し難い状態(閉状態)とのうちのいずれかの状態になる。始動入賞口14に入った入賞球は、遊技盤6の背面に導かれ、始動口スイッチ14aによって検出される。可変入賞球装置15は、ソレノイド16によって開状態にされる。なお、可変入賞球装置15の真上に第1始動入賞口を設け、可変入賞球装置15を第2始動入賞口としてもよい。   Below the effect display device 9, a variable winning ball device 15 that forms a start winning opening 14 is provided. The variable winning ball device 15 is in one of a state where the game ball is easy to win (open state) and a state where the game ball is difficult to win (closed state). The winning ball that has entered the start winning opening 14 is guided to the back of the game board 6 and detected by the start opening switch 14a. The variable winning ball device 15 is opened by a solenoid 16. The first winning prize opening may be provided directly above the variable winning ball apparatus 15, and the variable winning ball apparatus 15 may be used as the second starting prize opening.

可変入賞球装置15の下方には、特定遊技状態(大当り状態)においてソレノイド21によって開状態に制御される開閉板を用いた特別可変入賞球装置20が設けられている。特別可変入賞球装置20は大入賞口を開閉する手段である。大入賞口に入賞した遊技球はカウントスイッチ23で検出される。   Below the variable winning ball apparatus 15, there is provided a special variable winning ball apparatus 20 using an opening / closing plate that is controlled to be opened by a solenoid 21 in a specific gaming state (big hit state). The special variable winning ball apparatus 20 is a means for opening and closing the big winning opening. The game ball that has won the big winning opening is detected by the count switch 23.

遊技球がゲート32を通過しゲートスイッチ32aで検出されると、普通図柄表示器10の表示の可変表示が開始される。この実施の形態では、左右のランプ(点灯時に図柄が視認可能になる)が交互に点灯することによって可変表示が行われ、例えば、可変表示の終了時に左側のランプが点灯すれば当たりになる。そして、普通図柄表示器10における停止図柄が所定の図柄(当り図柄)である場合に、可変入賞球装置15が所定回数、所定時間だけ開状態になる。普通図柄表示器10の近傍には、ゲート32を通過した入賞球数を表示する4つのLEDによる表示部を有する普通図柄始動記憶表示器41が設けられている。ゲート32への遊技球の通過があるごとに、普通図柄始動記憶表示器41は点灯するLEDを1増やす。そして、普通図柄表示器10の可変表示が開始されるごとに、点灯するLEDを1減らす。   When the game ball passes through the gate 32 and is detected by the gate switch 32a, variable display of the normal symbol display 10 is started. In this embodiment, variable display is performed by alternately lighting left and right lamps (designs can be visually recognized when lit). For example, if the left lamp is lit at the end of variable display, it is a hit. When the stop symbol on the normal symbol display 10 is a predetermined symbol (winning symbol), the variable winning ball device 15 is opened for a predetermined number of times. In the vicinity of the normal symbol display 10, a normal symbol start memory display 41 having a display unit with four LEDs for displaying the number of winning balls that have passed through the gate 32 is provided. Each time there is a game ball passing through the gate 32, the normal symbol start memory display 41 increases the number of LEDs to be turned on by one. Each time variable display on the normal symbol display 10 is started, the number of LEDs to be lit is reduced by one.

遊技盤6には、複数の入賞口29,30が設けられ、遊技球の入賞口29,30への入賞は、それぞれ入賞口スイッチ29a,30aによって検出される。各入賞口29,30は、遊技媒体を受け入れて入賞を許容する領域として遊技盤6に設けられる入賞領域を構成している。なお、始動入賞口14や大入賞口も、遊技媒体を受け入れて入賞を許容する入賞領域を構成する。遊技領域7の左右周辺には、遊技中に点滅表示される装飾ランプ25が設けられ、下部には、入賞しなかった遊技球を吸収するアウト口26がある。また、遊技領域7の外側の左右上部には、効果音を発する2つのスピーカ27が設けられている。遊技領域7の外周には、天枠ランプ28a、左枠ランプ28bおよび右枠ランプ28cが設けられている。さらに、遊技領域7における各構造物(大入賞口等)の周囲には装飾LEDが設置されている。天枠ランプ28a、左枠ランプ28bおよび右枠ランプ28cおよび装飾用LEDは、遊技機に設けられている装飾発光体の一例である。   The game board 6 is provided with a plurality of winning holes 29 and 30, and winning of game balls to the winning holes 29 and 30 is detected by winning hole switches 29a and 30a, respectively. Each of the winning ports 29 and 30 constitutes a winning area provided on the game board 6 as an area for accepting game media and allowing winning. The start winning opening 14 and the big winning opening also constitute a winning area that accepts game media and allows winning. Around the left and right of the game area 7, there are provided decorative lamps 25 blinking and displayed during the game, and at the lower part there is an outlet 26 for absorbing a game ball that has not won a prize. Two speakers 27 that emit sound effects are provided on the left and right upper portions outside the game area 7. On the outer periphery of the game area 7, a top frame lamp 28a, a left frame lamp 28b, and a right frame lamp 28c are provided. Further, a decoration LED is installed around each structure (such as a big prize opening) in the game area 7. The top frame lamp 28a, the left frame lamp 28b, the right frame lamp 28c, and the decoration LED are examples of a decorative light emitter provided in the gaming machine.

そして、この例では、左枠ランプ28bの近傍に、賞球払出中に点灯する賞球ランプ51が設けられ、天枠ランプ28aの近傍に、補給球が切れたときに点灯する球切れランプ52が設けられている。さらに、プリペイドカードが挿入されることによって球貸しを可能にするプリペイドカードユニット(以下、「カードユニット」という。)50が、パチンコ遊技機1に隣接して設置されている。   In this example, a prize ball lamp 51 that is lit during award ball payout is provided in the vicinity of the left frame lamp 28b, and a ball break lamp 52 that is lit when the supply ball is cut in the vicinity of the top frame lamp 28a. Is provided. Further, a prepaid card unit (hereinafter referred to as “card unit”) 50 that enables lending a ball by inserting a prepaid card is installed adjacent to the pachinko gaming machine 1.

カードユニット50には、例えば、使用可能状態であるか否かを示す使用可表示ランプ、カードユニットがいずれの側のパチンコ遊技機1に対応しているのかを示す連結台方向表示器、カードユニット内にカードが投入されていることを示すカード投入表示ランプ、記録媒体としてのカードが挿入されるカード挿入口、およびカード挿入口の裏面に設けられているカードリーダライタの機構を点検する場合にカードユニットを解放するためのカードユニット錠が設けられている。   The card unit 50 includes, for example, a usable display lamp that indicates whether or not the card unit 50 is in a usable state, a connection table direction indicator that indicates which side of the pachinko gaming machine 1 corresponds to the card unit, and a card unit. When checking the card insertion indicator lamp indicating that a card is inserted in the card, the card insertion slot into which the card as a recording medium is inserted, and the card reader / writer mechanism provided on the back of the card insertion slot A card unit lock for releasing the card unit is provided.

遊技者の操作により打球発射装置から発射された遊技球は、打球レールを通って遊技領域7に入り、その後、遊技領域7を下りてくる。遊技球が始動入賞口14に入り始動口スイッチ14aで検出されると、図柄の可変表示を開始できる状態であれば、特別図柄表示器8において特別図柄が可変表示(変動)を始める。図柄の可変表示を開始できる状態でなければ、保留記憶数を1増やす。   A game ball launched from the ball striking device by the player's operation enters the game area 7 through the hit ball rail, and then descends the game area 7. When the game ball enters the start winning opening 14 and is detected by the start opening switch 14a, the special symbol on the special symbol display 8 starts variable display (variation) if the variable display of the symbol can be started. If the variable display of the symbol cannot be started, the number of reserved memories is increased by one.

特別図柄表示器8における特別図柄の可変表示は、一定時間が経過したときに停止する。停止時の特別図柄(停止図柄)が大当り図柄(特定表示結果)であると、大当り遊技状態に移行する。すなわち、特別可変入賞球装置20が、一定時間経過するまで、または、所定個数(例えば10個)の遊技球が入賞するまで開放する。開放回数は、15回である。   The variable display of the special symbol on the special symbol display device 8 stops when a certain time has elapsed. If the special symbol (stop symbol) at the time of stoppage is a jackpot symbol (specific display result), the game shifts to a jackpot gaming state. That is, the special variable winning ball apparatus 20 is released until a predetermined time elapses or a predetermined number (for example, 10) of gaming balls wins. The number of times of opening is 15 times.

停止時の特別図柄表示器8における特別図柄が確率変動を伴う大当り図柄(確変図柄)である場合には、次に大当りになる確率が高くなる。すなわち、確変状態という遊技者にとってさらに有利な状態になる。   When the special symbol on the special symbol display 8 at the time of stoppage is a jackpot symbol (probability variation symbol) with a probability variation, the probability of the next jackpot increases. That is, it becomes a more advantageous state for the player in the probability variation state.

遊技球がゲート32を通過すると、普通図柄表示器10において普通図柄が可変表示される状態になる。また、普通図柄表示器10における停止図柄が所定の図柄(当り図柄)である場合に、可変入賞球装置15が所定時間だけ開状態になる。   When the game ball passes through the gate 32, the normal symbol display unit 10 enters a state in which the normal symbol is variably displayed. Further, when the stop symbol on the normal symbol display 10 is a predetermined symbol (winning symbol), the variable winning ball device 15 is opened for a predetermined time.

次に、パチンコ遊技機1の裏面の構造について図3を参照して説明する。図3は、遊技機を裏面から見た背面図である。図3に示すように、パチンコ遊技機1裏面側では、演出表示装置9を制御する演出制御用マイクロコンピュータ100が搭載された演出制御基板80を含む変動表示制御ユニット、遊技制御用マイクロコンピュータ等が搭載された遊技制御基板(主基板)31、音声出力基板70、ランプドライバ基板35、および球払出制御を行なう払出制御用マイクロコンピュータ等が搭載された払出制御基板37等の各種基板が設置されている。なお、主基板31は基板収納ケース200に収納されている。   Next, the structure of the back surface of the pachinko gaming machine 1 will be described with reference to FIG. FIG. 3 is a rear view of the gaming machine as seen from the back side. As shown in FIG. 3, on the back side of the pachinko gaming machine 1, a variable display control unit including an effect control board 80 on which an effect control microcomputer 100 for controlling the effect display device 9 is mounted, a game control microcomputer, and the like are provided. Various boards such as a mounted game control board (main board) 31, an audio output board 70, a lamp driver board 35, and a payout control board 37 mounted with a payout control microcomputer for performing ball payout control are installed. Yes. The main board 31 is stored in the board storage case 200.

さらに、パチンコ遊技機1裏面側には、DC30V、DC21V、DC12VおよびDC5V等の各種電源電圧を作成する電源回路が搭載された電源基板910やタッチセンサ基板91が設けられている。電源基板910には、パチンコ遊技機1における遊技制御基板31および各電気部品制御基板(演出制御基板80および払出制御基板37)やパチンコ遊技機1に設けられている各電気部品(電力が供給されることによって動作する部品)への電力供給を許容したり遮断したりするための電源スイッチ、遊技制御基板31の遊技制御用マイクロコンピュータ560のRAM55をクリアするためのクリアスイッチが設けられている。   Further, on the back side of the pachinko gaming machine 1, a power supply substrate 910 and a touch sensor substrate 91 on which power supply circuits for generating various power supply voltages such as DC30V, DC21V, DC12V, and DC5V are mounted. The power supply board 910 is supplied with the game control board 31 and each electrical component control board (the effect control board 80 and the payout control board 37) in the pachinko gaming machine 1 and each electrical component (power is supplied) provided in the pachinko gaming machine 1. And a clear switch for clearing the RAM 55 of the game control microcomputer 560 of the game control board 31 are provided.

なお、この実施の形態では、主基板31は遊技盤側に設けられ、払出制御基板37は遊技枠側に設けられている。このような構成であっても、後述するように、主基板31と払出制御基板37との間の通信をシリアル通信で行うことによって、遊技盤を交換する際の配線の取り回しを容易にしている。   In this embodiment, the main board 31 is provided on the game board side, and the payout control board 37 is provided on the game frame side. Even in such a configuration, as will be described later, the communication between the main board 31 and the payout control board 37 is performed by serial communication, thereby facilitating the routing of the wiring when replacing the game board. .

なお、各制御基板には、制御用マイクロコンピュータを含む制御手段が搭載されている。制御手段は、遊技制御手段等からのコマンドとしての指令信号(制御信号)に従って遊技機に設けられている電気部品(遊技用装置:球払出装置97、演出表示装置9、ランプやLEDなどの発光体、スピーカ27等)を制御する。以下、主基板31を制御基板に含めて説明を行うことがある。その場合には、制御基板に搭載される制御手段は、遊技制御手段と、遊技制御手段等からの指令信号に従って遊技機に設けられている電気部品を制御する手段とのそれぞれを指す。   Each control board is equipped with control means including a control microcomputer. The control means is an electrical component (game device: ball payout device 97, effect display device 9, light emission from a lamp, LED, etc.) provided in the gaming machine according to a command signal (control signal) as a command from the game control means or the like. Body, speaker 27, etc.). Hereinafter, the main board 31 may be included in the control board for explanation. In that case, the control means mounted on the control board refers to each of the game control means and the means for controlling the electrical components provided in the gaming machine in accordance with a command signal from the game control means or the like.

また、主基板31以外のマイクロコンピュータが搭載された基板をサブ基板ということがある。なお、球払出装置97は、遊技球を誘導する通路とステッピングモータ等により駆動されるスプロケット等によって誘導された遊技球を上皿や下皿に払い出すための装置であって、払い出された賞球や貸し球をカウントする払出個数カウントスイッチ等もユニットの一部として構成されている。なお、この実施の形態では、払出検出手段は、払出個数カウントスイッチ301によって実現され、球払出装置97から実際に賞球や貸し球が払い出されたことを検出する。払出個数カウントスイッチ301は、賞球や貸し球の払い出しを1球検出するごとに検出信号を出力する。   A substrate on which a microcomputer other than the main substrate 31 is mounted may be referred to as a sub-substrate. The ball payout device 97 is a device for paying out a game ball guided by a passage for guiding the game ball and a sprocket driven by a stepping motor or the like to an upper plate or a lower plate. A payout number counting switch for counting prize balls and rental balls is also configured as part of the unit. In this embodiment, the payout detecting means is realized by the payout number count switch 301 and detects that a prize ball or a lending ball is actually paid out from the ball payout device 97. The payout count switch 301 outputs a detection signal every time one payout of a prize ball or a lending ball is detected.

パチンコ遊技機1裏面において、上方には、各種情報をパチンコ遊技機1の外部に出力するための各端子を備えたターミナル基板160が設置されている。ターミナル基板160には、例えば、遊技枠が開放状態であることを示すドア開放信号を外部出力するためのドア開放信号用端子などが設けられている。   On the back side of the pachinko gaming machine 1, a terminal board 160 having terminals for outputting various information to the outside of the pachinko gaming machine 1 is installed above. The terminal board 160 is provided with, for example, a door opening signal terminal for externally outputting a door opening signal indicating that the game frame is in an open state.

貯留タンク38に貯留された遊技球は誘導レール(図示せず)を通り、カーブ樋を経て払出ケース40Aで覆われた球払出装置97に至る。球払出装置97の上方には、遊技媒体切れ検出手段としての球切れスイッチ187が設けられている。球切れスイッチ187が球切れを検出すると、球払出装置97の払出動作が停止する。球切れスイッチ187は遊技球通路内の遊技球の有無を検出するスイッチであるが、貯留タンク38内の補給球の不足を検出する球切れ検出スイッチ167も誘導レールにおける上流部分(貯留タンク38に近接する部分)に設けられている。球切れ検出スイッチ167が遊技球の不足を検知すると、遊技機設置島に設けられている補給機構からパチンコ遊技機1に対して遊技球の補給が行なわれる。   The game ball stored in the storage tank 38 passes through a guide rail (not shown), and reaches a ball payout device 97 covered with a payout case 40A through a curve rod. Above the ball payout device 97, a ball break switch 187 is provided as a game medium break detection means. When the ball break switch 187 detects a ball break, the payout operation of the ball payout device 97 stops. The ball break switch 187 is a switch for detecting the presence or absence of a game ball in the game ball passage, but the ball break detection switch 167 for detecting the shortage of supply balls in the storage tank 38 is also an upstream portion of the guide rail (in the storage tank 38). (Proximate part). When the ball break detection switch 167 detects a shortage of game balls, the game balls are replenished to the pachinko gaming machine 1 from the replenishment mechanism provided on the gaming machine installation island.

入賞にもとづく景品としての遊技球や球貸し要求にもとづく遊技球が多数払出されて打球供給皿3が満杯になると、遊技球は、余剰球誘導通路を経て余剰球受皿4に導かれる。さらに遊技球が払出されると、感知レバー(図示せず)が貯留状態検出手段としての満タンスイッチを押圧して、貯留状態検出手段としての満タンスイッチがオンする。その状態では、球払出装置内の払出モータの回転が停止して球払出装置の動作が停止するとともに打球発射装置の駆動も停止する。   When a large number of game balls as prizes based on winning a prize or a game ball based on a ball lending request are paid out and the hitting ball supply tray 3 is full, the game balls are guided to the surplus ball receiving tray 4 through the surplus ball guiding path. Further, when the game ball is paid out, a sensing lever (not shown) presses the full tank switch as the storage state detection means, and the full tank switch as the storage state detection means is turned on. In this state, the rotation of the payout motor in the ball payout device is stopped, the operation of the ball payout device is stopped, and the driving of the ball hitting device is also stopped.

図4は、主基板(遊技制御基板)31における回路構成の一例を示すブロック図である。なお、図4には、払出制御基板37および演出制御基板80等も示されている。主基板31には、プログラムに従ってパチンコ遊技機1を制御する遊技制御用マイクロコンピュータ(遊技制御手段に相当)560が搭載されている。遊技制御用マイクロコンピュータ560は、ゲーム制御(遊技進行制御)用のプログラム等を記憶するROM54、ワークメモリとして使用される記憶手段としてのRAM55、プログラムに従って制御動作を行うCPU56およびI/Oポート部57を含む。この実施の形態では、ROM54およびRAM55は遊技制御用マイクロコンピュータ560に内蔵されている。すなわち、遊技制御用マイクロコンピュータ560は、1チップマイクロコンピュータである。1チップマイクロコンピュータには、少なくともRAM55が内蔵されていればよく、ROM54は外付けであっても内蔵されていてもよい。また、I/Oポート部57は、外付けであってもよい。   FIG. 4 is a block diagram showing an example of the circuit configuration of the main board (game control board) 31. FIG. 4 also shows a payout control board 37, an effect control board 80, and the like. A game control microcomputer (corresponding to a game control means) 560 for controlling the pachinko gaming machine 1 according to a program is mounted on the main board 31. The game control microcomputer 560 includes a ROM 54 for storing a game control (game progress control) program and the like, a RAM 55 as storage means used as a work memory, a CPU 56 for performing control operations in accordance with the program, and an I / O port unit 57. including. In this embodiment, the ROM 54 and the RAM 55 are built in the game control microcomputer 560. That is, the game control microcomputer 560 is a one-chip microcomputer. The one-chip microcomputer only needs to include at least the RAM 55, and the ROM 54 may be external or internal. The I / O port unit 57 may be externally attached.

なお、遊技制御用マイクロコンピュータ560においてCPU56がROM54に格納されているプログラムに従って制御を実行するので、以下、遊技制御用マイクロコンピュータ560(またはCPU56)が実行する(または、処理を行う)ということは、具体的には、CPU56がプログラムに従って制御を実行することである。このことは、主基板31以外の他の基板に搭載されているマイクロコンピュータについても同様である。   In the game control microcomputer 560, the CPU 56 executes control in accordance with the program stored in the ROM 54, so that the game control microcomputer 560 (or CPU 56) executes (or performs processing) hereinafter. Specifically, the CPU 56 executes control according to a program. The same applies to microcomputers mounted on substrates other than the main substrate 31.

また、遊技制御用マイクロコンピュータ560には、乱数回路503が内蔵されている。乱数回路503は、特別図柄の可変表示の表示結果により大当りとするか否か判定するための判定用の乱数を発生するために用いられるハードウェア回路である。乱数回路503は、初期値(例えば、0)と上限値(例えば、65535)とが設定された数値範囲内で、数値データを、設定された更新規則に従って更新し、ランダムなタイミングで発生する始動入賞時が数値データの読出(抽出)時であることにもとづいて、読み出される数値データが乱数値となる乱数発生機能を有する。   The game control microcomputer 560 includes a random number circuit 503. The random number circuit 503 is a hardware circuit that is used to generate a random number for determination to determine whether or not to win a jackpot based on a display result of variable symbol special display. The random number circuit 503 updates numerical data in accordance with a set update rule within a numerical range in which an initial value (for example, 0) and an upper limit value (for example, 65535) are set, and starts at a random timing Based on the fact that the winning time is the time of reading (extracting) the numerical data, it has a random number generation function in which the read numerical data becomes a random value.

乱数回路503は、数値データの更新範囲の選択設定機能(初期値の選択設定機能、および、上限値の選択設定機能)、数値データの更新規則の選択設定機能、および数値データの更新規則の選択切換え機能等の各種の機能を有する。このような機能によって、生成する乱数のランダム性を向上させることができる。   The random number circuit 503 includes a numeric data update range selection setting function (initial value selection setting function and upper limit value selection setting function), numeric data update rule selection setting function, and numeric data update rule selection. It has various functions such as a switching function. With such a function, the randomness of the generated random numbers can be improved.

また、遊技制御用マイクロコンピュータ560は、乱数回路503が更新する数値データの初期値を設定する機能を有している。例えば、ROM54等の所定の記憶領域に記憶された遊技制御用マイクロコンピュータ560のIDナンバ(遊技制御用マイクロコンピュータ560の各製品ごとに異なる数値で付与されたIDナンバ)を用いて所定の演算を行なって得られた数値データを、乱数回路503が更新する数値データの初期値として設定する。そのような処理を行うことによって、乱数回路503が発生する乱数のランダム性をより向上させることができる。   Further, the game control microcomputer 560 has a function of setting an initial value of numerical data updated by the random number circuit 503. For example, a predetermined calculation is performed using the ID number of the game control microcomputer 560 stored in a predetermined storage area such as the ROM 54 (an ID number assigned with a different value for each product of the game control microcomputer 560). The numerical data obtained by the execution is set as the initial value of the numerical data updated by the random number circuit 503. By performing such processing, the randomness of the random number generated by the random number circuit 503 can be further improved.

遊技制御用マイクロコンピュータ560は、始動口スイッチ14aへの始動入賞が生じたときに乱数回路503から数値データをランダムRとして読み出し、特別図柄および飾り図柄の変動開始時にランダムRにもとづいて特定の表示結果としての大当り表示結果にするか否か、すなわち、大当りとするか否かを決定する。そして、大当りとすると決定したときに、遊技状態を遊技者にとって有利な特定遊技状態としての大当り遊技状態に移行させる。   The game control microcomputer 560 reads numerical data from the random number circuit 503 as a random R when a start winning to the start port switch 14a occurs, and performs a specific display based on the random R at the start of the variation of the special symbol and the decorative symbol. It is determined whether or not to make a jackpot display result as a result, that is, whether or not to make a jackpot. Then, when it is determined to be a big hit, the gaming state is shifted to a big hit gaming state as a specific gaming state advantageous to the player.

また、遊技制御用マイクロコンピュータ560には、払出制御基板37(の払出制御用マイクロコンピュータ370)とシリアル通信で信号を入出力(送受信)するためのシリアル通信回路505が内蔵されている。なお、払出制御用マイクロコンピュータ370にも、遊技制御用マイクロコンピュータ560とシリアル通信で信号を入出力するためのシリアル通信回路が内蔵されている(図5参照)。   In addition, the game control microcomputer 560 has a built-in serial communication circuit 505 for inputting / outputting (transmitting / receiving) signals to / from the payout control board 37 (the payout control microcomputer 370) by serial communication. The payout control microcomputer 370 also includes a serial communication circuit for inputting / outputting signals through the game control microcomputer 560 through serial communication (see FIG. 5).

また、RAM55は、その一部または全部が電源基板において作成されるバックアップ電源によってバックアップされている不揮発性記憶手段としてのバックアップRAMである。すなわち、遊技機に対する電力供給が停止しても、所定期間(バックアップ電源としてのコンデンサが放電してバックアップ電源が電力供給不能になるまで)は、RAM55の一部または全部の内容は保存される。特に、少なくとも、遊技状態すなわち遊技制御手段の制御状態に応じたデータ(特別図柄プロセスフラグや保留記憶数カウンタの値など)と未払出賞球数を示すデータは、バックアップRAMに保存される。遊技制御手段の制御状態に応じたデータとは、停電等が生じた後に復旧した場合に、そのデータにもとづいて、制御状態を停電等の発生前に復旧させるために必要なデータである。また、制御状態に応じたデータと未払出賞球数を示すデータとを遊技の進行状態を示すデータと定義する。なお、この実施の形態では、RAM55の全部が、電源バックアップされているとする。   The RAM 55 is a backup RAM as a non-volatile storage means, part or all of which is backed up by a backup power supply created on the power supply board. That is, even if the power supply to the gaming machine is stopped, a part or all of the contents of the RAM 55 is stored for a predetermined period (until the capacitor as the backup power supply is discharged and the backup power supply cannot be supplied). In particular, at least data corresponding to the game state, that is, the control state of the game control means (such as a special symbol process flag and the value of the pending storage number counter) and data indicating the number of unpaid prize balls are stored in the backup RAM. The data corresponding to the control state of the game control means is data necessary for restoring the control state before the occurrence of a power failure or the like based on the data when the power is restored after a power failure or the like occurs. Further, data corresponding to the control state and data indicating the number of unpaid prize balls are defined as data indicating the progress state of the game. In this embodiment, it is assumed that the entire RAM 55 is backed up.

遊技制御用マイクロコンピュータ560のリセット端子には、電源基板からのリセット信号が入力される。リセット信号がハイレベルになると遊技制御用マイクロコンピュータ560等は動作可能状態になる。また、遊技制御用マイクロコンピュータ560の入力ポートには、電源基板からの電源電圧が所定値以下に低下したことを示す電源断信号が入力される。また、遊技制御用マイクロコンピュータ560の入力ポートには、RAMの内容をクリアすることを指示するためのクリアスイッチが操作されたことを示すクリア信号(図示せず)が入力される。   A reset signal from the power supply board is input to the reset terminal of the game control microcomputer 560. When the reset signal becomes high level, the game control microcomputer 560 and the like become operable. Further, a power-off signal indicating that the power supply voltage from the power supply board has dropped below a predetermined value is input to the input port of the game control microcomputer 560. A clear signal (not shown) indicating that the clear switch for instructing to clear the contents of the RAM is operated is input to the input port of the game control microcomputer 560.

また、ゲートスイッチ32a、始動口スイッチ14a、カウントスイッチ23、および各入賞口スイッチ29a,30aからの検出信号を基本回路53に与える入力ドライバ回路58も主基板31に搭載され、可変入賞球装置15を開閉するソレノイド16、および特別可変入賞球装置を開閉するソレノイド21をCPU56からの指令に従って駆動する出力回路59も主基板31に搭載され、大当り遊技状態の発生を示す大当り情報等の情報出力信号をホールコンピュータ等の外部装置に対して出力する情報出力回路(図示せず)も主基板31に搭載されている。   Also, an input driver circuit 58 for supplying the basic circuit 53 with detection signals from the gate switch 32a, the start port switch 14a, the count switch 23, and the winning port switches 29a and 30a is also mounted on the main board 31, and the variable winning ball device 15 An output circuit 59 for driving the solenoid 16 for opening / closing and the solenoid 21 for opening / closing the special variable winning ball apparatus according to a command from the CPU 56 is also mounted on the main board 31, and an information output signal such as jackpot information indicating the occurrence of the jackpot gaming state Is also mounted on the main board 31 to output information to an external device such as a hall computer.

この実施の形態では、演出制御基板80に搭載されている演出制御手段(演出制御用マイクロコンピュータで構成される。)が、中継基板77を介して遊技制御用マイクロコンピュータ560からの演出制御コマンドを受信する。そして、演出制御手段が、演出制御コマンドを受信し、飾り図柄を可変表示する演出表示装置9の表示制御を行う。   In this embodiment, the effect control means (configured by the effect control microcomputer) mounted on the effect control board 80 receives the effect control command from the game control microcomputer 560 via the relay board 77. Receive. Then, the effect control means receives the effect control command and performs display control of the effect display device 9 that variably displays the decorative symbols.

図5は、払出制御基板37および球払出装置97などの払出に関連する構成要素を示すブロック図である。図5に示すように、払出制御基板37には、払出制御用CPU371を含む払出制御用マイクロコンピュータ370が搭載されている。この実施の形態では、払出制御用マイクロコンピュータ370は、1チップマイクロコンピュータであり、少なくともRAMが内蔵されている。払出制御用マイクロコンピュータ370、RAM(図示せず)、払出制御用プログラムを格納したROM(図示せず)およびI/Oポート等は、払出制御手段を構成する。すなわち、払出制御手段は、払出制御用CPU371、RAMおよびROMを有する払出制御用マイクロコンピュータ370と、I/Oポートとで実現される。また、I/Oポートは、払出制御用マイクロコンピュータ370に内蔵されていてもよい。   FIG. 5 is a block diagram showing components related to payout, such as the payout control board 37 and the ball payout device 97. As shown in FIG. 5, a payout control microcomputer 370 including a payout control CPU 371 is mounted on the payout control board 37. In this embodiment, the payout control microcomputer 370 is a one-chip microcomputer and incorporates at least a RAM. The payout control microcomputer 370, the RAM (not shown), the ROM (not shown) storing the payout control program, the I / O port, and the like constitute the payout control means. That is, the payout control means is realized by a payout control CPU 371, a payout control microcomputer 370 having a RAM and a ROM, and an I / O port. The I / O port may be built in the payout control microcomputer 370.

球切れスイッチ187、満タンスイッチ48および払出個数カウントスイッチ301からの検出信号は、中継基板72を介して払出制御基板37のI/Oポート372fに入力される。なお、この実施の形態では、払出個数カウントスイッチ301からの検出信号は、払出制御用マイクロコンピュータ370に入力されたあと、I/Oポート372aおよび出力回路373Bを介して主基板31に出力される。   Detection signals from the ball break switch 187, the full switch 48, and the payout count switch 301 are input to the I / O port 372 f of the payout control board 37 via the relay board 72. In this embodiment, the detection signal from the payout number count switch 301 is input to the payout control microcomputer 370 and then output to the main board 31 via the I / O port 372a and the output circuit 373B. .

また、払出モータ位置センサ295からの検出信号は、中継基板72を介して払出制御基板37のI/Oポート372eに入力される。払出モータ位置センサ295は、払出モータ289の回転位置を検出するための発光素子(LED)と受光素子とによるセンサであり、遊技球が詰まったこと、すなわちいわゆる球噛みを検出するために用いられる。払出制御基板37に搭載されている払出制御用マイクロコンピュータ370は、球切れスイッチ187からの検出信号が球切れ状態を示していたり、満タンスイッチ48からの検出信号が満タン状態を示していると、球払出処理を停止する。   A detection signal from the payout motor position sensor 295 is input to the I / O port 372e of the payout control board 37 via the relay board 72. The payout motor position sensor 295 is a sensor composed of a light emitting element (LED) and a light receiving element for detecting the rotational position of the payout motor 289, and is used for detecting that the game ball is clogged, that is, so-called ball biting. . In the payout control microcomputer 370 mounted on the payout control board 37, the detection signal from the ball break switch 187 indicates that the ball is out of ball, or the detection signal from the full tank switch 48 indicates that the ball is full. Then, the ball payout process is stopped.

さらに、満タンスイッチ48からの検出信号が満タン状態を示していると、払出制御用マイクロコンピュータ370は、打球発射装置からの球発射を停止させるために、発射基板90に対してローレベルの満タン信号を出力する。発射基板90のAND回路91が出力する発射モータ94への発射モータ信号は、発射基板90から発射モータ94に伝えられる。払出制御用マイクロコンピュータ370からの満タン信号は、発射基板90に搭載されたAND回路91の入力側の一方に入力され、駆動信号生成回路92からの駆動信号(発射モータ94を駆動するための信号であって、電源基板からの電源を供給する役割を果たす信号である。)は、AND回路91の入力側の他方に入力される。そして、AND回路91の発射モータ信号が発射モータ94に入力される。すなわち、払出制御用マイクロコンピュータ370が満タン信号を出力している間は、発射モータ94への発射モータ信号の出力が停止される。   Further, when the detection signal from the full tank switch 48 indicates a full state, the payout control microcomputer 370 has a low level with respect to the launch board 90 in order to stop the ball launch from the hitting ball launcher. A full tank signal is output. A launch motor signal output from the AND circuit 91 of the launch board 90 to the launch motor 94 is transmitted from the launch board 90 to the launch motor 94. A full tank signal from the payout control microcomputer 370 is input to one of the input sides of the AND circuit 91 mounted on the launch board 90, and a drive signal from the drive signal generation circuit 92 (for driving the launch motor 94). Is a signal that serves to supply power from the power supply board.) Is input to the other input side of the AND circuit 91. Then, the firing motor signal of the AND circuit 91 is input to the firing motor 94. That is, while the payout control microcomputer 370 is outputting the full tank signal, the output of the firing motor signal to the firing motor 94 is stopped.

払出制御用マイクロコンピュータ370には、遊技制御用マイクロコンピュータ560とシリアル通信で信号を入出力(送受信)するためのシリアル通信回路380が内蔵されている。   The payout control microcomputer 370 incorporates a serial communication circuit 380 for inputting / outputting (transmitting / receiving) signals with the game control microcomputer 560 through serial communication.

払出制御用マイクロコンピュータ370は、出力ポート372bを介して、賞球払出数を示す賞球情報信号および貸し球数を示す球貸し個数信号をターミナル基板(枠用外部端子基板と盤用外部端子基板とを含む)160に出力する。なお、出力ポート372bの外側に、ドライバ回路が設置されているが、図5では記載省略されている。   The payout control microcomputer 370 receives, via the output port 372b, a prize ball information signal indicating the number of prize balls to be paid and a ball lending number signal indicating the number of balls to be rented to a terminal board (frame external terminal board and board external terminal board). Output to 160). A driver circuit is provided outside the output port 372b, but is not shown in FIG.

また、払出制御用マイクロコンピュータ370は、出力ポート372cを介して、7セグメントLEDによるエラー表示用LED374にエラー信号を出力する。さらに、出力ポート372bを介して、点灯/消灯を指示するための信号を賞球LED51および球切れLED52に出力する。なお、払出制御基板37の入力ポート372fには、エラー状態を解除するためのエラー解除スイッチ375からの検出信号が入力される。エラー解除スイッチ375は、ソフトウェアリセットによってエラー状態を解除するために用いられる。   Also, the payout control microcomputer 370 outputs an error signal to the error display LED 374 using a 7-segment LED via the output port 372c. Further, a signal for instructing turning on / off is output to the winning ball LED 51 and the ball running out LED 52 via the output port 372b. A detection signal from an error release switch 375 for releasing the error state is input to the input port 372f of the payout control board 37. The error cancel switch 375 is used to cancel the error state by software reset.

さらに、払出制御用マイクロコンピュータ370からの払出モータ289への駆動信号は、出力ポート372aおよび中継基板72を介して球払出装置97の払出機構部分における払出モータ289に伝えられる。なお、出力ポート372aの外側に、ドライバ回路(モータ駆動回路)が設置されているが、図5では記載省略されている。   Further, a drive signal from the payout control microcomputer 370 to the payout motor 289 is transmitted to the payout motor 289 in the payout mechanism portion of the ball payout device 97 via the output port 372a and the relay board 72. Although a driver circuit (motor drive circuit) is installed outside the output port 372a, the description is omitted in FIG.

遊技機に隣接して設置されているカードユニット50には、カードユニット制御用マイクロコンピュータが搭載されている。また、カードユニット50には、使用可表示ランプ、連結台方向表示器、カード投入表示ランプおよびカード挿入口が設けられている。インタフェース基板(中継基板)66には、打球供給皿3の近傍に設けられている度数表示LED60、球貸し可LED61、球貸しスイッチ62および返却スイッチ63が接続される。   A card unit control microcomputer is mounted on the card unit 50 installed adjacent to the gaming machine. In addition, the card unit 50 is provided with a usable display lamp, a connecting table direction indicator, a card insertion display lamp, and a card insertion slot. The interface board (relay board) 66 is connected to a frequency display LED 60, a ball lending LED 61, a ball lending switch 62 and a return switch 63 provided in the vicinity of the hitting ball supply tray 3.

インタフェース基板66からカードユニット50には、遊技者の操作に応じて、球貸しスイッチ62が操作されたことを示す球貸しスイッチ信号および返却スイッチ63が操作されたことを示す返却スイッチ信号が与えられる。また、カードユニット50からインタフェース基板66には、プリペイドカードの残高を示すカード残高表示信号および球貸し可表示信号が与えられる。カードユニット50と払出制御基板37の間では、接続信号(VL信号)、ユニット操作信号(BRDY信号)、球貸し要求信号(BRQ信号)、球貸し完了信号(EXS信号)およびパチンコ機動作信号(PRDY信号)が入力ポート372fおよび出力ポート372dを介して送受信される。カードユニット50と払出制御基板37の間には、インタフェース基板66が介在している。よって、接続信号(VL信号)等の信号は、図5に示すように、インタフェース基板66を介してカードユニット50と払出制御基板37の間で送受信される。   A card lending switch signal indicating that the ball lending switch 62 has been operated and a return switch signal indicating that the return switch 63 has been operated are provided to the card unit 50 from the interface board 66 in accordance with the player's operation. . Further, a card balance display signal indicating a prepaid card balance and a ball lending display signal are given from the card unit 50 to the interface board 66. Between the card unit 50 and the payout control board 37, a connection signal (VL signal), a unit operation signal (BRDY signal), a ball lending request signal (BRQ signal), a ball lending completion signal (EXS signal) and a pachinko machine operation signal ( PRDY signal) is transmitted / received via the input port 372f and the output port 372d. An interface board 66 is interposed between the card unit 50 and the payout control board 37. Therefore, a signal such as a connection signal (VL signal) is transmitted and received between the card unit 50 and the payout control board 37 via the interface board 66 as shown in FIG.

パチンコ遊技機1の電源が投入されると、払出制御基板37に搭載されている払出制御用マイクロコンピュータ370は、カードユニット50にPRDY信号を出力する。また、カードユニット制御用マイクロコンピュータは、電源が投入されると、VL信号を出力する。払出制御用マイクロコンピュータ370は、VL信号の入力状態によってカードユニット50の接続状態/未接続状態を判定する。カードユニット50においてカードが受け付けられ、球貸しスイッチが操作され球貸しスイッチ信号が入力されると、カードユニット制御用マイクロコンピュータは、払出制御基板37にBRDY信号を出力する。この時点から所定の遅延時間が経過すると、カードユニット制御用マイクロコンピュータは、払出制御基板37にBRQ信号を出力する。   When the power of the pachinko gaming machine 1 is turned on, the payout control microcomputer 370 mounted on the payout control board 37 outputs a PRDY signal to the card unit 50. The card unit control microcomputer outputs a VL signal when the power is turned on. The payout control microcomputer 370 determines the connected / unconnected state of the card unit 50 according to the input state of the VL signal. When a card is received in the card unit 50, the ball lending switch is operated and a ball lending switch signal is input, the card unit control microcomputer outputs a BRDY signal to the payout control board 37. When a predetermined delay time elapses from this point, the card unit control microcomputer outputs a BRQ signal to the payout control board 37.

そして、払出制御用マイクロコンピュータ370は、カードユニット50に対するEXS信号を立ち上げ、カードユニット50からのBRQ信号の立ち下がりを検出すると、払出モータ289を駆動し、所定個の貸し球を遊技者に払い出す。そして、払出が完了したら、払出制御用マイクロコンピュータ370は、カードユニット50に対するEXS信号を立ち下げる。その後、カードユニット50からのBRDY信号がオン状態でないことを条件に、遊技制御手段から払出指令信号を受けると賞球払出制御を実行する。   Then, the payout control microcomputer 370 raises the EXS signal to the card unit 50 and, when detecting the fall of the BRQ signal from the card unit 50, drives the payout motor 289 to give a predetermined number of rental balls to the player. Pay out. When the payout is completed, the payout control microcomputer 370 causes the EXS signal to the card unit 50 to fall. Thereafter, on the condition that the BRDY signal from the card unit 50 is not in the ON state, the winning ball payout control is executed when a payout command signal is received from the game control means.

また、この実施の形態では、カードユニット50が遊技機とは別体として遊技機に隣接して設置されている場合を例にするが、カードユニット50は遊技機と一体化されていてもよい。   Further, in this embodiment, the case where the card unit 50 is installed adjacent to the gaming machine as a separate body from the gaming machine is taken as an example, but the card unit 50 may be integrated with the gaming machine. .

図6は、中継基板77および演出制御基板80の回路構成例を示すブロック図である。図6は、中継基板77、演出制御基板80、ランプドライバ基板35および音声出力基板70の回路構成例を示すブロック図である。なお、図6に示す例では、ランプドライバ基板35および音声出力基板70には、マイクロコンピュータは搭載されていないが、マイクロコンピュータを搭載してもよい。また、ランプドライバ基板35および音声出力基板70を設けずに、演出制御に関して演出制御基板80のみを設けてもよい。   FIG. 6 is a block diagram illustrating a circuit configuration example of the relay board 77 and the effect control board 80. FIG. 6 is a block diagram illustrating a circuit configuration example of the relay board 77, the effect control board 80, the lamp driver board 35, and the audio output board 70. In the example shown in FIG. 6, the lamp driver board 35 and the audio output board 70 are not equipped with a microcomputer, but may be equipped with a microcomputer. Further, without providing the lamp driver board 35 and the audio output board 70, only the effect control board 80 may be provided for effect control.

演出制御基板80は、演出制御用CPU101a、および演出制御プロセスフラグ等の演出に関する情報を記憶するRAMを含む演出制御用マイクロコンピュータ100を搭載している。なお、RAMは外付けであってもよい。この実施の形態では、演出制御用マイクロコンピュータ100におけるRAMは電源バックアップされていない。演出制御基板80において、演出制御用CPU101aは、内蔵または外付けのROM(図示せず)に格納されたプログラムに従って動作する。また、演出制御用マイクロコンピュータ100は、遊技制御用マイクロコンピュータ560とシリアル通信で信号を入出力(送受信)するシリアル通信回路101bを内蔵している。また、演出制御用CPU101aは、演出制御コマンドにもとづいて、VDP(ビデオディスプレイプロセッサ)109に演出表示装置9の表示制御を行わせる。   The effect control board 80 is equipped with an effect control microcomputer 100 including an effect control CPU 101a and a RAM for storing information related to effects such as an effect control process flag. The RAM may be externally attached. In this embodiment, the RAM in the production control microcomputer 100 is not backed up. In the effect control board 80, the effect control CPU 101a operates according to a program stored in a built-in or external ROM (not shown). The effect control microcomputer 100 has a built-in serial communication circuit 101b that inputs / outputs (transmits / receives) signals with the game control microcomputer 560 through serial communication. In addition, the effect control CPU 101a causes the VDP (video display processor) 109 to perform display control of the effect display device 9 based on the effect control command.

この実施の形態では、演出制御用マイクロコンピュータ100と共動して演出表示装置9の表示制御を行うVDP109が演出制御基板80に搭載されている。VDP109は、演出制御用マイクロコンピュータ100とは独立したアドレス空間を有し、そこにVRAMをマッピングする。VRAMは、画像データを展開するためのバッファメモリである。そして、VDP109は、VRAM内の画像データをフレームメモリを介して演出表示装置9に出力する。   In this embodiment, a VDP 109 that performs display control of the effect display device 9 in cooperation with the effect control microcomputer 100 is mounted on the effect control board 80. The VDP 109 has an address space independent of the production control microcomputer 100, and maps a VRAM therein. VRAM is a buffer memory for developing image data. Then, the VDP 109 outputs the image data in the VRAM to the effect display device 9 via the frame memory.

演出制御用CPU101aは、受信した演出制御コマンドに従ってCGROM(図示せず)から必要なデータを読み出すための指令をVDP109に出力する。CGROMは、演出表示装置9に表示されるキャラクタ画像データや動画像データ、具体的には、人物、文字、図形や記号等(飾り図柄を含む)、および背景画像のデータをあらかじめ格納しておくためのROMである。VDP109は、演出制御用CPU101aの指令に応じて、CGROMから画像データを読み出す。そして、VDP109は、読み出した画像データにもとづいて表示制御を実行する。   The effect control CPU 101a outputs to the VDP 109 a command for reading out necessary data from a CGROM (not shown) in accordance with the received effect control command. The CGROM stores in advance character image data and moving image data to be displayed on the effect display device 9, specifically, a person, characters, figures, symbols, etc. (including decorative symbols), and background image data. ROM. The VDP 109 reads the image data from the CGROM in response to the instruction from the effect control CPU 101a. The VDP 109 executes display control based on the read image data.

さらに、演出制御用CPU101aは、出力ポート105を介してランプドライバ基板35に対してLEDを駆動する信号を出力する。また、演出制御用CPU101aは、出力ポート104を介して音声出力基板70に対して音番号データを出力する。   Further, the effect control CPU 101 a outputs a signal for driving the LED to the lamp driver board 35 via the output port 105. In addition, the production control CPU 101 a outputs sound number data to the audio output board 70 via the output port 104.

ランプドライバ基板35において、LEDやランプを駆動する信号は、入力ドライバ351を介してランプドライバ352に入力される。ランプドライバ352は、ランプを駆動する信号にもとづいて天枠ランプ28a、左枠ランプ28b、右枠ランプ28cなどの枠側に設けられている発光体に電流を供給する。また、遊技盤側に設けられている装飾ランプ25に電流を供給する。   In the lamp driver board 35, signals for driving LEDs and lamps are input to the lamp driver 352 via the input driver 351. The lamp driver 352 supplies current to light emitters provided on the frame side such as the top frame lamp 28a, the left frame lamp 28b, and the right frame lamp 28c based on a signal for driving the lamp. In addition, a current is supplied to the decorative lamp 25 provided on the game board side.

音声出力基板70において、音番号データは、入力ドライバ702を介して音声合成用IC703に入力される。音声合成用IC703は、音番号データに応じた音声や効果音を発生し増幅回路705に出力する。増幅回路705は、音声合成用IC703の出力レベルを、ボリューム706で設定されている音量に応じたレベルに増幅した音声信号をスピーカ27に出力する。音声データROM704には、音番号データに応じた制御データが格納されている。音番号データに応じた制御データは、所定期間(例えば飾り図柄の変動期間)における効果音または音声の出力態様を時系列的に示すデータの集まりである。   In the voice output board 70, the sound number data is input to the voice synthesis IC 703 via the input driver 702. The voice synthesizing IC 703 generates voice or sound effect according to the sound number data and outputs it to the amplifier circuit 705. The amplification circuit 705 outputs an audio signal obtained by amplifying the output level of the speech synthesis IC 703 to a level corresponding to the volume set by the volume 706 to the speaker 27. The voice data ROM 704 stores control data corresponding to the sound number data. The control data corresponding to the sound number data is a collection of data indicating the sound effect or sound output mode in a time series in a predetermined period (for example, a decorative symbol variation period).

図7は、シリアル通信回路505に内蔵されているデータレジスタの例を示す説明図である。データレジスタは、シリアル通信回路505が送受信するデータを格納するレジスタである。図7に示すように、データレジスタは、8ビットレジスタであり、初期値が「0(=00h)」に設定されている。また、データレジスタは、ビット0〜ビット7が書込および読出ともに可能な状態に構成されている。   FIG. 7 is an explanatory diagram showing an example of a data register built in the serial communication circuit 505. The data register is a register that stores data transmitted and received by the serial communication circuit 505. As shown in FIG. 7, the data register is an 8-bit register, and the initial value is set to “0 (= 00h)”. The data register is configured in a state where bits 0 to 7 can be written and read.

この実施の形態では、シリアル通信回路505が送信データを送信する場合、データレジスタは、送信データレジスタとして用いられる。また、シリアル通信回路505が受信データを受信する場合、データレジスタは、受信データレジスタとして用いられる。   In this embodiment, when the serial communication circuit 505 transmits transmission data, the data register is used as a transmission data register. When the serial communication circuit 505 receives received data, the data register is used as a received data register.

シリアル通信回路505に内蔵されている割り込み制御回路は、CPU56に各種割り込み要求を行う。例えば、割り込み制御回路は、送信データレジスタに送信データの送信を完了した状態になると、CPU56に割り込み信号を出力するとともに、シリアル通信回路505に内蔵されているステータスレジスタのビット6(TC)に「1」を設定することによって割り込み要求を行う。なお、ステータスレジスタのビットの設定値により割込要因を識別可能とするのでなく、割り込み制御回路は、割込要因毎に異なる割り込み信号をCPU56に出力するようにしてもよい。   An interrupt control circuit built in the serial communication circuit 505 makes various interrupt requests to the CPU 56. For example, when the transmission of the transmission data to the transmission data register is completed, the interrupt control circuit outputs an interrupt signal to the CPU 56 and sets “6” to the bit 6 (TC) of the status register built in the serial communication circuit 505. An interrupt request is made by setting “1”. The interrupt control circuit may output an interrupt signal different for each interrupt factor to the CPU 56 instead of making the interrupt factor identifiable by the set value of the status register bit.

また、割り込み制御回路は、受信データレジスタに受信データが格納されている状態になると(受信データフルを検出すると)、CPU56に割り込み信号を出力するとともに、ステータスレジスタのビット5(RDRF)に「1」を設定することによって割り込み要求を行う。   When the reception data register is stored in the reception data register (when reception data full is detected), the interrupt control circuit outputs an interrupt signal to the CPU 56 and sets “1” to bit 5 (RDRF) of the status register. ”Is set to make an interrupt request.

また、割り込み制御回路は、各種通信エラーが発生すると、CPU56に割り込み信号を出力するとともに、通信エラーの種類に応じて、ステータスレジスタのビット0〜ビット3に「1」を設定することによって割り込み要求を行う。   Further, when various communication errors occur, the interrupt control circuit outputs an interrupt signal to the CPU 56 and sets an interrupt request by setting “1” in bits 0 to 3 of the status register according to the type of the communication error. I do.

図8は、大当り判定用テーブルメモリの一例を示す説明図である。大当り判定用テーブルメモリは、CPU56が特別図柄表示装置8の表示結果を大当り図柄とするか否かを判定するために用いる複数の大当り判定テーブルを記憶する。具体的には、大当り判定用テーブルメモリは、図8(A)に示すように、確変状態以外の遊技状態(通常状態という)において用いられる通常時大当り判定テーブルを記憶する。また、大当り判定用テーブルメモリは、図8(B)に示すように、確変状態において用いられる確変時大当り判定テーブルを格納する。   FIG. 8 is an explanatory diagram of an example of the jackpot determination table memory. The jackpot determination table memory stores a plurality of jackpot determination tables used by the CPU 56 to determine whether or not the display result of the special symbol display device 8 is a jackpot symbol. Specifically, as shown in FIG. 8A, the jackpot determination table memory stores a normal-time jackpot determination table used in a gaming state (referred to as a normal state) other than the probability variation state. Further, as shown in FIG. 8B, the jackpot determination table memory stores a probability change jackpot determination table used in the probability change state.

図9および図10は、遊技制御手段における出力ポートの割り当ての例を示す説明図である。図9に示すように、出力ポート0は払出制御基板37に送信される払出制御信号(この実施の形態では、接続信号)の出力ポートである。また、出力ポート1は大入賞口を開閉する可変入賞球装置20を開閉するためのソレノイド(大入賞口扉ソレノイド)21および可変入賞球装置15を開閉するためのソレノイド(普通電動役物ソレノイド)16の出力ポートである。   9 and 10 are explanatory diagrams showing an example of output port assignment in the game control means. As shown in FIG. 9, the output port 0 is an output port of a payout control signal (a connection signal in this embodiment) transmitted to the payout control board 37. The output port 1 has a solenoid (large winning port door solenoid) 21 for opening and closing a variable winning ball device 20 for opening and closing the big winning port and a solenoid (normal electric accessory solenoid) for opening and closing the variable winning ball device 15. There are 16 output ports.

そして、出力ポート2から、情報出力回路64を介して情報端子板34やターミナル基板160に至る各種情報出力用信号すなわち制御に関わる情報の出力データが出力される。   Then, various information output signals from the output port 2 to the information terminal board 34 and the terminal board 160 through the information output circuit 64, that is, output data of information related to control are output.

図11は、遊技制御手段における入力ポートのビット割り当ての例を示す説明図である。図11に示すように、入力ポート0のビット0〜4には、それぞれ、カウントスイッチ23、ゲートスイッチ32a、入賞口スイッチ29a,30a、始動口スイッチ14aの検出信号が入力される。入力ポート0のビット7には、払出制御基板70からの賞球情報が入力される。また、入力ポート1のビット0,1には、それぞれ、電源基板910からの電源断信号およびクリアスイッチ921の検出信号が入力される。   FIG. 11 is an explanatory diagram showing an example of bit assignment of input ports in the game control means. As shown in FIG. 11, detection signals from the count switch 23, the gate switch 32a, the winning port switches 29a and 30a, and the start port switch 14a are input to bits 0 to 4 of the input port 0, respectively. The winning ball information from the payout control board 70 is input to bit 7 of the input port 0. Also, the power-off signal from the power supply board 910 and the detection signal of the clear switch 921 are input to the bits 0 and 1 of the input port 1, respectively.

次に遊技機の動作について説明する。図12および図13は、遊技機に対して電力供給が開始され遊技制御用マイクロコンピュータ560へのリセット信号がハイレベルになったことに応じて遊技制御用マイクロコンピュータ560のCPU56が実行するメイン処理を示すフローチャートである。リセット信号が入力されるリセット端子の入力レベルがハイレベルになると、遊技制御用マイクロコンピュータ560のCPU56は、プログラムの内容が正当か否かを確認するための処理であるセキュリティチェック処理を実行した後、ステップS1以降のメイン処理を開始する。メイン処理において、CPU56は、まず、必要な初期設定を行う。   Next, the operation of the gaming machine will be described. 12 and 13 show main processing executed by the CPU 56 of the game control microcomputer 560 in response to the start of power supply to the game machine and the reset signal to the game control microcomputer 560 becoming high level. It is a flowchart which shows. When the input level of the reset terminal to which the reset signal is input becomes a high level, the CPU 56 of the game control microcomputer 560 executes a security check process that is a process for confirming whether the contents of the program are valid. The main processing after step S1 is started. In the main process, the CPU 56 first performs necessary initial settings.

初期設定処理において、CPU56は、まず、割込禁止に設定する(ステップS1)。次に、マスク可能割込の割込モードを設定し(ステップS2)、スタックポインタにスタックポインタ指定アドレスを設定する(ステップS3)。なお、ステップS2では、遊技制御用マイクロコンピュータ560の特定レジスタ(Iレジスタ)の値(1バイト)と内蔵デバイスが出力する割込ベクタ(1バイト:最下位ビット0)から合成されるアドレスが、割込番地を示すモードに設定する。また、マスク可能な割込が発生すると、CPU56は、自動的に割込禁止状態に設定するとともに、プログラムカウンタの内容をスタックにセーブする。   In the initial setting process, the CPU 56 first sets the interrupt prohibition (step S1). Next, an interrupt mode for maskable interrupts is set (step S2), and a stack pointer designation address is set for the stack pointer (step S3). In step S2, the address synthesized from the value (1 byte) of the specific register (I register) of the game control microcomputer 560 and the interrupt vector (1 byte: least significant bit 0) output from the built-in device is Set to the mode indicating the interrupt address. When a maskable interrupt occurs, the CPU 56 automatically sets the interrupt disabled state and saves the contents of the program counter in the stack.

次いで、CPU56は、払出制御用マイクロコンピュータ370に対して、接続信号の出力を開始する(ステップS4)。なお、CPU56は、ステップS4の処理で接続信号の出力を開始した後、遊技機の電源供給が停止したり、何らかの通信エラーが生じて出力不能とならない限り、払出制御用マイクロコンピュータ370に対して接続信号を継続して出力する。   Next, the CPU 56 starts outputting a connection signal to the payout control microcomputer 370 (step S4). Note that the CPU 56 starts outputting the connection signal in the process of step S4, and then supplies the payout control microcomputer 370 to the payout control microcomputer 370 unless the power supply of the gaming machine is stopped or output becomes impossible due to some communication error. The connection signal is output continuously.

次いで、内蔵デバイスレジスタの設定(初期化)を行う(ステップS5)。ステップS4の処理によって、内蔵デバイス(内蔵周辺回路)であるCTC(カウンタ/タイマ)およびPIO(パラレル入出力ポート)の設定(初期化)がなされる。この実施の形態で用いられる遊技制御用マイクロコンピュータ560は、I/Oポート(PIO)およびタイマ/カウンタ回路(CTC)も内蔵している。また、CPU56は、RAM55をアクセス可能状態に設定する(ステップS6)。   Next, the built-in device register is set (initialized) (step S5). By the processing in step S4, the CTC (counter / timer) and PIO (parallel input / output port) which are built-in devices (built-in peripheral circuits) are set (initialized). The game control microcomputer 560 used in this embodiment also includes an I / O port (PIO) and a timer / counter circuit (CTC). Further, the CPU 56 sets the RAM 55 in an accessible state (step S6).

次いで、CPU56は、クリアスイッチがオンされているか否か確認する(ステップS7)。クリアスイッチがオンでない場合には、遊技機への電力供給が停止したときにバックアップRAM領域のデータ保護処理(例えばパリティデータの付加等の電力供給停止時処理)が行われたか否か確認する(ステップS8)。この実施の形態では、CPU56は、電力供給の停止が生じた場合に、バックアップRAM領域のデータを保護するための電力供給停止時処理を行う。電力供給停止時処理においてバックアップフラグ領域に電力供給停止時処理を実行したことを示すフラグをセットする。そして、ステップS8の処理で、CPU56は、そのフラグがセットされていることを確認したら電力供給停止時処理が行われたと判定する。   Next, the CPU 56 checks whether or not the clear switch is turned on (step S7). If the clear switch is not on, it is confirmed whether or not data protection processing of the backup RAM area (for example, power supply stop processing such as addition of parity data) has been performed when power supply to the gaming machine is stopped ( Step S8). In this embodiment, when the power supply is stopped, the CPU 56 performs a power supply stop process for protecting data in the backup RAM area. In the power supply stop process, a flag indicating that the power supply stop process has been executed is set in the backup flag area. In step S8, the CPU 56 determines that the power supply stop process has been performed after confirming that the flag is set.

電力供給停止時の制御状態が保存されていると判定したら、CPU56は、バックアップRAM領域のデータチェック(この例では、チェックサムの算出)を行う(ステップS9)。   If it is determined that the control state at the time of stopping power supply is stored, the CPU 56 performs data check of the backup RAM area (in this example, checksum calculation) (step S9).

電力供給停止時処理でも、チェックサムが算出され、チェックサムはバックアップRAM領域に保存されている。ステップS9では、CPU56は、算出したチェックサムと保存されているチェックサムとを比較する。不測の停電等の電力供給停止が生じた後に復旧した場合には、バックアップRAM領域のデータは保存されているはずであるから、チェック結果(比較結果)は正常(一致)になる。チェック結果が正常でない場合には、初期化処理(ステップS10〜S14の処理)を実行する。   The checksum is calculated even when the power supply is stopped, and the checksum is stored in the backup RAM area. In step S9, the CPU 56 compares the calculated checksum with the stored checksum. When the power supply is stopped after an unexpected power failure or the like, the data in the backup RAM area should be saved, so the check result (comparison result) is normal (matched). If the check result is not normal, initialization processing (steps S10 to S14) is executed.

チェック結果が正常であれば、CPU56は、遊技制御手段の内部状態と演出制御手段等の電気部品制御手段の制御状態を電力供給停止時の状態に戻すための遊技状態復旧処理を行う。具体的には、ROM54に格納されているバックアップ時設定テーブルの先頭アドレスをポインタに設定し(ステップS91)、バックアップ時設定テーブルの内容を順次作業領域(RAM55内の領域)に設定する(ステップS92)。作業領域はバックアップ電源によって電源バックアップされている。バックアップ時設定テーブルには、作業領域のうち初期化してもよい領域についての初期化データが設定されている。ステップS91およびS92の処理によって、作業領域のうち初期化してはならない部分については、保存されていた内容がそのまま残る。初期化してはならない部分とは、例えば、電力供給停止前の遊技状態を示すデータ(特別図柄プロセスフラグなど)、出力ポートの出力状態が保存されている領域(出力ポートバッファ)、未払出賞球数を示すデータが設定されている部分などである。   If the check result is normal, the CPU 56 performs a game state restoration process for returning the internal state of the game control means and the control state of the electrical component control means such as the effect control means to the state when the power supply is stopped. Specifically, the start address of the backup setting table stored in the ROM 54 is set as a pointer (step S91), and the contents of the backup setting table are sequentially set in the work area (area in the RAM 55) (step S92). ). The work area is backed up by a backup power source. In the backup setting table, initialization data for an area that may be initialized in the work area is set. As a result of the processing in steps S91 and S92, the saved contents of the work area that should not be initialized remain. The parts that should not be initialized include, for example, data indicating the gaming state before the power supply is stopped (special symbol process flag, etc.), the area where the output state of the output port is saved (output port buffer), unpaid prize balls This is the part where data indicating the number is set.

また、CPU56は、ROM54に格納されているバックアップ時コマンド送信テーブルの先頭アドレスをポインタに設定し(ステップS93)、ステップS15に移行する。ステップS93でポインタの設定が行われた後、ステップS15aのシリアル通信回路設定処理が行われてからバックアップコマンドが送信される。   Further, the CPU 56 sets the head address of the backup command transmission table stored in the ROM 54 as a pointer (step S93), and proceeds to step S15. After the pointer is set in step S93, the backup command is transmitted after the serial communication circuit setting process in step S15a is performed.

初期化処理では、CPU56は、まず、RAMクリア処理を行う(ステップS10)。なお、RAM55の全領域を初期化せず、所定のデータをそのままにしてもよい。また、ROM54に格納されている初期化時設定テーブルの先頭アドレスをポインタに設定し(ステップS11)、初期化時設定テーブルの内容を順次業領域に設定する(ステップS12)。   In the initialization process, the CPU 56 first performs a RAM clear process (step S10). Note that the predetermined data may be left as it is without initializing the entire area of the RAM 55. Also, the initial address of the initialization setting table stored in the ROM 54 is set as a pointer (step S11), and the contents of the initialization setting table are sequentially set in the work area (step S12).

ステップS11およびS12の処理によって、例えば、普通図柄判定用乱数カウンタ、普通図柄判定用バッファ、特別図柄バッファ、特別図柄プロセスフラグ、賞球中フラグ、球切れフラグなど制御状態に応じて選択的に処理を行うためのフラグに初期値が設定される。また、出力ポートバッファにおける接続確認信号を出力する出力ポートに対応するビットがセット(接続確認信号のオン状態に対応)される。なお、出力ポートバッファにおける接続確認信号を出力する出力ポートに対応するビットがセットされると、ステップS31の出力処理によって接続確認信号を出力する出力ポート0に対応するビットが出力される。   By the processing of steps S11 and S12, for example, a normal symbol determination random number counter, a normal symbol determination buffer, a special symbol buffer, a special symbol process flag, a winning ball flag, a ball-out flag, and the like are selectively processed according to the control state. An initial value is set in a flag for performing the above. In addition, a bit corresponding to the output port that outputs the connection confirmation signal in the output port buffer is set (corresponding to the ON state of the connection confirmation signal). When the bit corresponding to the output port that outputs the connection confirmation signal in the output port buffer is set, the bit corresponding to the output port 0 that outputs the connection confirmation signal is output by the output processing in step S31.

また、CPU56は、ROM54に格納されている初期化時コマンド送信テーブルの先頭アドレスをポインタに設定し(ステップS13)、その内容に従ってサブ基板を初期化するための初期化コマンドをサブ基板に送信する処理を実行する(ステップS14)。初期化コマンドとして、演出表示装置9に表示される初期図柄を示すコマンドや払出制御基板37への初期化コマンド等を使用することができる。なお、ステップS13でポインタの設定が行われた後、ステップS15aのシリアル通信回路設定処理が行われてから初期化コマンドが送信されることになる。   Further, the CPU 56 sets the start address of the initialization command transmission table stored in the ROM 54 as a pointer (step S13), and transmits an initialization command for initializing the sub board according to the contents to the sub board. Processing is executed (step S14). As an initialization command, a command indicating an initial symbol displayed on the effect display device 9, an initialization command to the payout control board 37, or the like can be used. After the pointer is set in step S13, the initialization command is transmitted after the serial communication circuit setting process in step S15a is performed.

また、CPU56は、各乱数回路503を初期設定する乱数回路設定処理を実行する(ステップS15)。すなわち、各乱数回路503にランダムRの値を更新させるための設定を行う。   Further, the CPU 56 executes a random number circuit setting process for initially setting each random number circuit 503 (step S15). That is, the setting for causing each random number circuit 503 to update the value of the random R is performed.

また、CPU56は、シリアル通信回路505を初期設定するシリアル通信回路設定処理を実行する(ステップS15a)。この場合、CPU56は、シリアル通信回路設定プログラムに従ってROM54の所定領域に格納されているデータをシリアル通信回路505に設定することによって、シリアル通信回路505に払出制御用マイクロコンピュータとシリアル通信させるための設定を行う。   Further, the CPU 56 executes a serial communication circuit setting process for initial setting of the serial communication circuit 505 (step S15a). In this case, the CPU 56 sets the data stored in the predetermined area of the ROM 54 in the serial communication circuit 505 in accordance with the serial communication circuit setting program, so that the serial communication circuit 505 performs serial communication with the payout control microcomputer. I do.

次に、図14は、シリアル通信回路設定処理を示すフローチャートである。シリアル通信回路設定処理において、CPU56は、まず、シリアル通信回路505のボーレートを設定する(ステップS1511)。また、CPU56は、シリアル通信回路505が送受信するデータのデータフォーマットを設定する(ステップS1512)。例えば、送受信データのデータ長(8ビットまたは9ビット)やパリティ機能の使用の有無を設定する。   Next, FIG. 14 is a flowchart showing the serial communication circuit setting process. In the serial communication circuit setting process, the CPU 56 first sets the baud rate of the serial communication circuit 505 (step S1511). Further, the CPU 56 sets a data format of data transmitted / received by the serial communication circuit 505 (step S1512). For example, the data length (8 bits or 9 bits) of transmission / reception data and the use / nonuse of the parity function are set.

また、CPU56は、シリアル通信回路505が発生する各割込要求を許可するか否かを設定する(ステップS1513)。例えば、CPU56は、送信時割り込み要求(データの送信時に行う割り込み要求である送信割り込み要求や、送信完了時に行う送信完了割り込み要求)および受信時割り込み要求を許可するか否かを設定する。   In addition, the CPU 56 sets whether to permit each interrupt request generated by the serial communication circuit 505 (step S1513). For example, the CPU 56 sets whether or not to permit a transmission interrupt request (a transmission interrupt request that is an interrupt request that is performed when data is transmitted or a transmission completion interrupt request that is performed when transmission is completed) and a reception interrupt request.

シリアル通信回路505を初期設定すると、CPU56は、シリアル通信回路505の割り込み要求に応じて実行する割込処理の優先順位を初期設定する(ステップS15b)。例えば、CPU56は、通信エラーが発生したことを割込原因とする割込処理の優先順位を高く設定する。   When the serial communication circuit 505 is initialized, the CPU 56 initializes the priority of interrupt processing to be executed in response to the interrupt request from the serial communication circuit 505 (step S15b). For example, the CPU 56 sets a higher priority for interrupt processing that causes the occurrence of a communication error as the cause of the interrupt.

なお、この実施の形態では、タイマ割込とシリアル通信回路505からの割り込み要求とが同時に発生した場合、CPU56は、タイマ割込による割込処理を優先して行う。   In this embodiment, when a timer interrupt and an interrupt request from the serial communication circuit 505 are generated at the same time, the CPU 56 preferentially performs an interrupt process by the timer interrupt.

そして、CPU56は、所定時間(例えば4ms)ごとに定期的にタイマ割込がかかるように遊技制御用マイクロコンピュータ560に内蔵されているCTCのレジスタの設定を行なうタイマ割込設定処理を実行する(ステップS16)。すなわち、初期値として例えば4msに相当する値が所定のレジスタ(時間定数レジスタ)に設定される。この実施の形態では、4msごとに定期的にタイマ割込がかかるとする。   Then, the CPU 56 executes a timer interrupt setting process for setting a CTC register built in the game control microcomputer 560 so that a timer interrupt is periodically taken every predetermined time (for example, 4 ms) ( Step S16). That is, a value corresponding to, for example, 4 ms is set in a predetermined register (time constant register) as an initial value. In this embodiment, it is assumed that a timer interrupt is periodically taken every 4 ms.

タイマ割込の設定が完了すると、CPU56は、まず、割込禁止状態にして(ステップS17)、初期値用乱数更新処理(ステップS18a)と表示用乱数更新処理(ステップS18b)を実行して、再び割込許可状態にする(ステップS19)。すなわち、CPU56は、初期値用乱数更新処理および表示用乱数更新処理が実行されるときには割込禁止状態にして、初期値用乱数更新処理および表示用乱数更新処理の実行が終了すると割込許可状態にする。   When the timer interrupt setting is completed, the CPU 56 first disables the interrupt (step S17), executes the initial value random number update process (step S18a) and the display random number update process (step S18b), The interrupt is permitted again (step S19). That is, the CPU 56 sets the interrupt disabled state when the initial value random number update process and the display random number update process are executed, and interrupts enable state when the initial value random number update process and the display random number update process are finished. To.

なお、初期値用乱数更新処理とは、初期値用乱数を発生するためのカウンタのカウント値を更新する処理である。初期値用乱数とは、大当りの種類を決定するための判定用乱数(例えば、大当りを発生させる特別図柄を決定するための大当り図柄決定用乱数や、遊技状態を確変状態に移行させるかを決定するための確変決定用乱数、普通図柄にもとづく当りを発生させるか否かを決定するための普通図柄当たり判定用乱数)を発生するためのカウンタ(判定用乱数発生カウンタ)等のカウント値の初期値を決定するための乱数である。後述する遊技制御処理(遊技制御用マイクロコンピュータが、遊技機に設けられている演出表示装置9、可変入賞球装置15、球払出装置97等の遊技用の装置を、自身で制御する処理、または他のマイクロコンピュータに制御させるために指令信号を送信する処理、遊技装置制御処理ともいう)において、判定用乱数発生カウンタのカウント値が1周すると、そのカウンタに初期値が設定される。   The initial value random number update process is a process of updating the count value of the counter for generating the initial value random number. The initial value random number is a random number for determining the type of jackpot (for example, a jackpot symbol determining random number for determining a special symbol for generating a jackpot or whether to shift the gaming state to a probable state) Initial value of the count value such as a counter (determination random number generation counter) for generating a probability variation determining random number for generating, a normal random number for determining whether or not to generate a hit based on a normal symbol It is a random number for determining the value. A game control process described later (a process in which a game control microcomputer controls itself a game device such as an effect display device 9, a variable winning ball device 15, a ball payout device 97 provided in the gaming machine, or When the count value of the determination random number generation counter makes one round in a process of transmitting a command signal to cause another microcomputer to control, or a gaming apparatus control process), an initial value is set in the counter.

また、表示用乱数として、特別図柄の変動パターンを決定するための変動パターン決定用乱数や、大当りを発生させない場合にリーチとするか否かを決定するためのリーチ判定用乱数がある。表示用乱数更新処理とは、表示用乱数を発生するためのカウンタのカウント値を更新する処理である。   In addition, as display random numbers, there are a variation pattern determination random number for determining a variation pattern of a special symbol, and a reach determination random number for determining whether or not to reach when a big hit is not generated. The display random number update process is a process for updating the count value of the counter for generating the display random number.

ステップS19で割込許可状態に設定されると、次にステップS17の処理が実行されて割込禁止状態にされるまで、タイマ割込またはシリアル通信回路505からの割り込み要求を許可する状態になる。そして、割込許可状態に設定されている間に、タイマ割込が発生すると、遊技制御用マイクロコンピュータ560のCPU56は、後述するタイマ割込処理を実行する。また、割込許可状態に設定されている間に、シリアル通信回路505から割り込み要求が発生すると、遊技制御用マイクロコンピュータ560のCPU56は、各割込処理(通信エラー割込処理や、受信時割込処理、送信完了割込処理)を実行する。   When the interrupt-permitted state is set in step S19, the timer interrupt or interrupt request from the serial communication circuit 505 is permitted until the next step S17 is executed and the interrupt-prohibited state is set. . When a timer interrupt occurs while the interrupt permission state is set, the CPU 56 of the game control microcomputer 560 executes a timer interrupt process to be described later. When an interrupt request is generated from the serial communication circuit 505 while the interrupt permission state is set, the CPU 56 of the game control microcomputer 560 causes each interrupt process (communication error interrupt process, reception time interrupt, Load processing, transmission completion interrupt processing).

なお、ステップS15およびステップS15aの処理をステップS1の処理の前に実行してもよく、また、ステップS1の処理が実行される前に自動的に初期設定がなされるような遊技制御用マイクロコンピュータ560を用いてもよい。   It should be noted that the processing of step S15 and step S15a may be executed before the processing of step S1, and the microcomputer for game control is automatically set before the processing of step S1 is executed. 560 may be used.

次に、タイマ割込処理について説明する。図15は、タイマ割込処理を示すフローチャートである。メイン処理の実行中に、具体的には、ステップS17〜S19のループ処理の実行中における割込許可になっている期間において、タイマ割込が発生すると、遊技制御用マイクロコンピュータ560のCPU56は、タイマ割込の発生に応じて起動されるタイマ割込処理を実行する。タイマ割込処理において、CPU56は、まず、電源断信号が出力されたか否か(オン状態になったか否か)を検出する電源断処理(電源断検出処理)を実行する(ステップS21)。そして、CPU56は、入力ドライバ回路58を介して、ゲートスイッチ32a、始動口スイッチ14a、カウントスイッチ23、および入賞口スイッチ29a,30aの検出信号を入力し、各スイッチの入力を検出する(スイッチ処理:ステップS22)。具体的には、各スイッチの検出信号を入力する入力ポートの状態がオン状態であれば、各スイッチに対応して設けられているスイッチタイマの値を+1する。   Next, the timer interrupt process will be described. FIG. 15 is a flowchart showing the timer interrupt process. When a timer interrupt occurs during execution of the main process, specifically, in a period during which interruption is permitted during execution of the loop process of steps S17 to S19, the CPU 56 of the game control microcomputer 560 A timer interrupt process that is activated in response to the occurrence of a timer interrupt is executed. In the timer interrupt process, the CPU 56 first executes a power-off process (power-off detection process) that detects whether or not a power-off signal has been output (whether or not it has been turned on) (step S21). Then, the CPU 56 inputs detection signals from the gate switch 32a, the start port switch 14a, the count switch 23, and the winning port switches 29a and 30a via the input driver circuit 58, and detects the input of each switch (switch processing). : Step S22). Specifically, if the state of the input port for inputting the detection signal of each switch is ON, the value of the switch timer provided corresponding to each switch is incremented by one.

次に、CPU56は、表示用乱数を生成するためのカウンタのカウント値を更新する処理を行う(表示用乱数更新処理:ステップS23)。また、CPU56は、初期値用乱数を発生するためのカウンタのカウント値を更新する処理を行う(初期値用乱数更新処理:ステップS24)。   Next, the CPU 56 performs a process of updating the count value of the counter for generating the display random number (display random number update process: step S23). Further, the CPU 56 performs a process of updating the count value of the counter for generating the initial value random number (initial value random number update process: step S24).

次いで、CPU56は、特別図柄の変動に同期する飾り図柄に関する演出制御コマンド等を演出制御用マイクロコンピュータ100に送信する処理を行う(コマンド制御処理:ステップS25)。なお、飾り図柄の変動が特別図柄の変動に同期するとは、変動時間(可変表示期間)が同じであることを意味する。   Next, the CPU 56 performs a process of transmitting an effect control command or the like related to a decorative symbol synchronized with the change of the special symbol to the effect control microcomputer 100 (command control process: step S25). It should be noted that the fact that the variation of the decorative symbol is synchronized with the variation of the special symbol means that the variation time (variable display period) is the same.

また、CPU56は、CPU56は、シリアル通信回路505を介して、払出制御用マイクロコンピュータ370と信号を送受信(入出力)する処理を実行するとともに、入賞が発生した場合には入賞口スイッチ29a,30a等の検出信号にもとづく賞球個数の設定などを行う賞球処理を実行する(ステップS26)。なお、この実施の形態では、入賞口スイッチ29a,30a等がオンしたことにもとづく入賞検出に応じて、賞球個数コマンドの下位4ビットを異ならせることにより賞球個数を示すデータを賞球個数コマンドに設定し、当該設定した賞球個数コマンドをシリアル通信回路505を介して払出制御用マイクロコンピュータ370に出力する。払出制御基板37に搭載されている払出制御用マイクロコンピュータ370は、賞球個数を示すデータが設定された賞球個数コマンドの受信に応じて球払出装置97を駆動する。   In addition, the CPU 56 executes a process of transmitting / receiving (input / output) signals to / from the payout control microcomputer 370 via the serial communication circuit 505, and when a winning occurs, the winning opening switch 29a, 30a. A prize ball process is performed for setting the number of prize balls based on the detection signal such as (step S26). In this embodiment, data indicating the number of winning balls is obtained by changing the lower 4 bits of the winning ball number command in response to detection of winning based on the winning opening switch 29a, 30a being turned on. The set prize ball number command is output to the payout control microcomputer 370 via the serial communication circuit 505. The payout control microcomputer 370 mounted on the payout control board 37 drives the ball payout device 97 in response to receiving a prize ball number command in which data indicating the number of prize balls is set.

また、CPU56は、特別図柄プロセス処理を行う(ステップS27)。特別図柄プロセス処理では、遊技状態に応じてパチンコ遊技機1を所定の順序で制御するための特別図柄プロセスフラグに従って該当する処理が選び出されて実行される。そして、特別図柄プロセスフラグの値は、遊技状態に応じて各処理中に更新される。また、普通図柄プロセス処理を行う(ステップS28)。普通図柄プロセス処理では、普通図柄表示器10の表示状態を所定の順序で制御するための普通図柄プロセスフラグに従って該当する処理が選び出されて実行される。そして、普通図柄プロセスフラグの値は、遊技状態に応じて各処理中に更新される。   Further, the CPU 56 performs special symbol process processing (step S27). In the special symbol process, the corresponding process is selected and executed according to a special symbol process flag for controlling the pachinko gaming machine 1 in a predetermined order according to the gaming state. The value of the special symbol process flag is updated during each process according to the gaming state. Further, normal symbol process processing is performed (step S28). In the normal symbol process, the corresponding process is selected and executed according to the normal symbol process flag for controlling the display state of the normal symbol display 10 in a predetermined order. The value of the normal symbol process flag is updated during each process according to the gaming state.

また、CPU56は、例えばホール管理用コンピュータに供給される大当り情報、始動情報、確率変動情報などのデータを出力する情報出力処理を行う(ステップS29)。   Further, the CPU 56 performs information output processing for outputting data such as jackpot information, start information, probability variation information supplied to the hall management computer, for example (step S29).

また、CPU56は、遊技機の制御状態を遊技機外部で確認できるようにするための試験信号を出力する処理である試験端子処理を実行する(ステップS30)。また、この実施の形態では、出力ポートの出力状態に対応したRAM領域(出力ポートバッファ)が設けられているのであるが、CPU56は、出力ポート0のRAM領域における接続確認信号に関する内容および出力ポート2のRAM領域におけるソレノイドに関する内容を出力ポートに出力する(ステップS31:出力処理)。   Further, the CPU 56 executes a test terminal process which is a process for outputting a test signal for enabling the control state of the gaming machine to be confirmed outside the gaming machine (step S30). In this embodiment, a RAM area (output port buffer) corresponding to the output state of the output port is provided. However, the CPU 56 determines the contents related to the connection confirmation signal in the RAM area of the output port 0 and the output port. The contents related to the solenoid in the RAM area 2 are output to the output port (step S31: output process).

その後、割込許可状態に設定し(ステップS32)、処理を終了する。   Thereafter, the interrupt permission state is set (step S32), and the process ends.

以上の制御によって、この実施の形態では、遊技制御処理は4ms毎に起動されることになる。なお、遊技制御処理は、タイマ割込処理におけるステップS22〜S31(ステップS29,S30を除く。)の処理に相当する。また、この実施の形態では、タイマ割込処理で遊技制御処理が実行されているが、タイマ割込処理では例えば割込が発生したことを示すフラグのセットのみがなされ、遊技制御処理はメイン処理において実行されるようにしてもよい。   With the above control, in this embodiment, the game control process is started every 4 ms. The game control process corresponds to the processes of steps S22 to S31 (except for steps S29 and S30) in the timer interrupt process. In this embodiment, the game control process is executed by the timer interrupt process. However, in the timer interrupt process, for example, only a flag indicating that an interrupt has occurred is set, and the game control process is performed by the main process. May be executed.

次に、特別図柄および大入賞口の制御を説明する。図16は、遊技制御用マイクロコンピュータ560のCPU56が実行する特別図柄プロセス処理(ステップS27)のプログラムの一例を示すフローチャートである。遊技制御用マイクロコンピュータ560のCPU56は、遊技盤6に設けられている始動入賞口14に遊技球が入賞したことを検出するための始動口スイッチ14aがオンしていたら、すなわち遊技球が始動入賞口14に入賞し、入賞検出信号SSが始動口スイッチ14aから入力されていたら(ステップS311)、乱数の抽出および記憶等を行う始動口スイッチ通過処理(ステップS312)を行った後に、内部状態(具体的には、特別図柄プロセスフラグの値)に応じて、ステップS300〜S306のうちのいずれかの処理を行う。   Next, the control of the special symbol and the special winning opening will be described. FIG. 16 is a flowchart showing an example of a program for the special symbol process (step S27) executed by the CPU 56 of the game control microcomputer 560. The CPU 56 of the game control microcomputer 560 has the start opening switch 14a for detecting that a game ball has won the start winning opening 14 provided in the game board 6 turned on, that is, the game ball has a start winning prize. If the winning opening is received and the winning detection signal SS is input from the start opening switch 14a (step S311), after performing the start opening switch passing process (step S312) for extracting and storing random numbers, the internal state ( Specifically, any one of steps S300 to S306 is performed according to the value of the special symbol process flag.

特別図柄通常処理(ステップS300):特別図柄の可変表示を開始できる状態(例えば、特別図柄表示器8において図柄の変動がなされておらず、特別図柄表示器8における前回の図柄変動が終了してから所定期間が経過しており、かつ、大当り遊技中でもない状態)になるのを待つ。特別図柄の可変表示が開始できる状態になると、特別図柄についての始動入賞記憶数を確認する。始動入賞記憶数が0でなければ、特図保留メモリに記憶されている乱数回路503が発生したランダムRにもとづいて、特別図柄の可変表示の結果を大当りとするか否か決定する。また、大当りとすると決定した場合には、さらに、確変大当りとするか否かなど大当り種別を決定し、決定した表示結果を特定可能な表示結果指定コマンドを演出制御用マイクロコンピュータ100に送信する制御を行う。そして、内部状態(特別図柄プロセスフラグ)をステップS301に移行するように更新する。   Special symbol normal processing (step S300): A state in which variable symbol special display can be started (for example, the symbol variation has not been made in the special symbol display 8, and the previous symbol variation in the special symbol display 8 has been completed. Waits for a predetermined period of time to elapse, and not a big hit game). When the special symbol variable display can be started, the start winning memory number for the special symbol is confirmed. If the number of starting winning prizes is not 0, it is determined whether or not the result of variable symbol special display is a big hit based on the random R generated by the random number circuit 503 stored in the special figure holding memory. Further, when it is determined to be a big hit, control for transmitting a display result designation command capable of specifying the determined display result to the microcomputer 100 for effect control is further determined, such as whether or not to make a probable big hit. I do. Then, the internal state (special symbol process flag) is updated so as to shift to step S301.

変動時間設定処理(ステップS301):変動パターンを決定し、その変動パターンにおける変動時間(可変表示時間:可変表示を開始してから表示結果が導出表示(停止表示)するまでの時間)を特別図柄の可変表示の変動時間とすることに決定する。また、決定した変動パターンを指定する変動パターンコマンドを演出制御用マイクロコンピュータ100に送信する制御を行うとともに、決定した特別図柄の変動時間を計測する変動時間タイマをスタートさせる。そして、内部状態(特別図柄プロセスフラグ)をステップS302に移行するように更新する。   Fluctuation time setting process (step S301): A variation pattern is determined, and a variation pattern in the variation pattern (variable display time: time from the start of variable display until the display result is derived and displayed (stop display)) is a special symbol. It is determined to be a variable display variable time. In addition, control is performed to transmit a variation pattern command specifying the determined variation pattern to the effect control microcomputer 100, and a variation time timer for measuring the variation time of the determined special symbol is started. Then, the internal state (special symbol process flag) is updated so as to shift to step S302.

特別図柄変動処理(ステップS302):所定時間(ステップS301の変動時間タイマで示された時間)が経過すると、内部状態(特別図柄プロセスフラグ)をステップS303に移行するように更新する。   Special symbol variation processing (step S302): When a predetermined time (the time indicated by the variation time timer in step S301) elapses, the internal state (special symbol process flag) is updated to shift to step S303.

特別図柄停止処理(ステップS303):演出制御基板80に対して、飾り図柄の停止を指示するための図柄確定指定コマンドを送信する。また、特別図柄表示器8における特別図柄を停止させる。そして、特別図柄の停止図柄が大当り図柄である場合には、内部状態(特別図柄プロセスフラグ)をステップS304に移行するように更新する。そうでない場合には、内部状態をステップS300に移行するように更新する。なお、図柄確定指定コマンドを送信しなくてもよい。その場合には、演出制御用マイクロコンピュータ100は、主基板31から受信した変動パターンコマンドにもとづく変動時間が経過したときに飾り図柄を停止する処理を行う。   Special symbol stop process (step S303): A symbol confirmation designation command for instructing stop of the decorative symbol is transmitted to the effect control board 80. Moreover, the special symbol in the special symbol display 8 is stopped. If the stop symbol of the special symbol is a jackpot symbol, the internal state (special symbol process flag) is updated to shift to step S304. If not, the internal state is updated to shift to step S300. It is not necessary to transmit the symbol confirmation designation command. In that case, the production control microcomputer 100 performs a process of stopping the decorative design when the variation time based on the variation pattern command received from the main board 31 has elapsed.

大入賞口開放前処理(ステップS304):大入賞口を開放する制御を開始する。具体的には、カウンタ(例えば大入賞口に入った遊技球数をカウントするカウンタ)やフラグ(入賞口への入賞を検出する際に用いられるフラグ)を初期化するとともに、ソレノイド21を駆動して大入賞口を開放する。また、プロセスタイマによって大入賞口開放中処理の実行時間を設定し、大当り中フラグをセットする。そして、内部状態(特別図柄プロセスフラグ)をステップS305に移行するように更新する。   Preliminary winning opening opening process (step S304): Control for opening the large winning opening is started. Specifically, a counter (for example, a counter that counts the number of game balls that have entered the grand prize opening) and a flag (a flag used when detecting winning in the prize opening) are initialized, and the solenoid 21 is driven. Open the big prize opening. Also, the process timer sets the execution time of the big prize opening opening process and sets the big hit flag. Then, the internal state (special symbol process flag) is updated so as to shift to step S305.

大入賞口開放中処理(ステップS305):大入賞口ラウンド表示の演出制御コマンドを演出制御基板80に送出する制御や大入賞口の閉成条件(例えば、大入賞口に所定個数(例えば10個)の遊技球が入賞したこと)の成立を確認する処理等を行う。大入賞口の閉成条件が成立したら、まだ残りラウンドがある場合には、内部状態(特別図柄プロセスフラグ)をステップS304に移行するように更新する。また、全てのラウンドを終えた場合には、内部状態(特別図柄プロセスフラグ)をステップS306に移行するように更新する。   Processing for opening a special prize opening (step S305): control for sending a presentation control command for round display of the special prize opening to the production control board 80 and closing conditions for the special prize opening (for example, a predetermined number (for example, ten) for the special prize opening ) To confirm that the game ball has won a prize). If the closing condition for the big prize opening is satisfied, if there are still rounds, the internal state (special symbol process flag) is updated to shift to step S304. When all the rounds have been completed, the internal state (special symbol process flag) is updated to shift to step S306.

大当り終了処理(ステップS306):大当り遊技状態が終了したことを遊技者に報知する表示制御を演出制御手段に行わせるための制御を行う。そして、内部状態(特別図柄プロセスフラグ)をステップS300に移行するように更新する。   Big hit end processing (step S306): Control for causing the effect control means to perform display control for notifying the player that the big hit gaming state has ended. Then, the internal state (special symbol process flag) is updated so as to shift to step S300.

次に、主基板31と払出制御基板37との間で送受信される払出制御信号および払出制御コマンドについて説明する。図17は、遊技制御手段から払出制御手段に対して出力される制御信号の内容の一例を示す説明図である。この実施の形態では、払出制御等に関する各種の制御を行うために、主基板31と払出制御基板37との間で制御信号として接続信号および賞球情報が送受信される。   Next, payout control signals and payout control commands transmitted and received between the main board 31 and the payout control board 37 will be described. FIG. 17 is an explanatory diagram showing an example of the contents of a control signal output from the game control means to the payout control means. In this embodiment, a connection signal and prize ball information are transmitted and received as control signals between the main board 31 and the payout control board 37 in order to perform various controls relating to payout control and the like.

図17に示すように、接続信号は、主基板31の立ち上がり時(遊技制御手段が遊技制御処理を開始したとき)に出力され、払出制御基板37に対して主基板31が立ち上がったことを通知するための信号(主基板31の接続信号)である。また、接続信号は、賞球払出が可能な状態であることを示す。なお、接続信号は、遊技制御用マイクロコンピュータ560のI/Oポート57および出力回路67Aを介して出力され、払出制御用マイクロコンピュータ370の入力回路373AおよびI/Oポート372eを介して払出制御用マイクロコンピュータ370に入力される。接続信号は、1ビットのデータであり、1本の信号線によって送信される。なお、接続信号は、電源投入時に実行されるステップS4の処理によって出力ポート0の接続信号に対応するビットに初期値が設定されることによって出力可能な状態となる(具体的にはステップS31の処理によって出力されるが、ステップS4のタイミングで出力されるようにしてもよい)。   As shown in FIG. 17, the connection signal is output when the main board 31 rises (when the game control means starts the game control process), and notifies the payout control board 37 that the main board 31 has risen. This is a signal (connection signal for the main board 31). The connection signal indicates that the prize ball can be paid out. The connection signal is output via the I / O port 57 and the output circuit 67A of the game control microcomputer 560, and is used for payout control via the input circuit 373A and the I / O port 372e of the payout control microcomputer 370. It is input to the microcomputer 370. The connection signal is 1-bit data and is transmitted through one signal line. Note that the connection signal is ready to be output by setting an initial value to a bit corresponding to the connection signal of the output port 0 by the process of step S4 executed at power-on (specifically, in step S31). Although it is output by processing, it may be output at the timing of step S4).

払出制御用マイクロコンピュータ370は、遊技制御用マイクロコンピュータ560と同様に、シリアル通信回路380を内蔵する。また、遊技制御用マイクロコンピュータ560が内蔵するシリアル通信回路505と、払出制御用マイクロコンピュータ370が内蔵するシリアル通信回路380との間で、各種払出制御コマンドが送受信される。なお、払出制御用マイクロコンピュータ370が内蔵するシリアル通信回路380の構成および機能は、遊技制御用マイクロコンピュータ560が内蔵するシリアル通信回路505の構成および機能と同様である。   Similarly to the game control microcomputer 560, the payout control microcomputer 370 includes a serial communication circuit 380. Various payout control commands are transmitted and received between the serial communication circuit 505 built in the game control microcomputer 560 and the serial communication circuit 380 built in the payout control microcomputer 370. The configuration and function of the serial communication circuit 380 built in the payout control microcomputer 370 are the same as the configuration and function of the serial communication circuit 505 built in the game control microcomputer 560.

また、賞球情報は、払出制御基板37側において賞球の払出を10個検出するごとに、主基板31に対して、10個の賞球払出を検出したことを通知するための情報である。なお、賞球情報は、払出制御用マイクロコンピュータ370のI/Oポート372aおよび出力回路373Bを介して出力され、遊技制御用マイクロコンピュータ560の入力回路67BおよびI/Oポート57を介して遊技制御用マイクロコンピュータ560に入力される。賞球情報は、1ビットのデータであり、1本の信号線によって送信される。   The prize ball information is information for notifying the main board 31 that ten prize balls have been detected each time ten prize balls are paid out on the payout control board 37 side. . The prize ball information is output via the I / O port 372a and the output circuit 373B of the payout control microcomputer 370, and the game control is performed via the input circuit 67B and the I / O port 57 of the game control microcomputer 560. To the microcomputer 560. The prize ball information is 1-bit data and is transmitted through one signal line.

図18は、遊技制御手段と払出制御手段との間で送受信される制御コマンドの内容の一例を示す説明図である。この実施の形態では、払出制御等に関する各種の制御を行うために、主基板31と払出制御基板37とのマイクロコンピュータの間で各種払出制御コマンドが送受信される。   FIG. 18 is an explanatory diagram showing an example of the contents of control commands transmitted / received between the game control means and the payout control means. In this embodiment, various payout control commands are transmitted and received between the microcomputers of the main board 31 and the payout control board 37 in order to perform various controls related to payout control and the like.

上述したように、払出制御コマンドは、8ビットのデータ(2進8桁のデータ)によって構成され、設定された8ビットのデータの内容によって所定の内容を示す制御コマンドとして出力される。   As described above, the payout control command is composed of 8-bit data (binary 8-digit data), and is output as a control command indicating predetermined contents depending on the contents of the set 8-bit data.

接続確認コマンドは、遊技制御用マイクロコンピュータ560と払出制御用マイクロコンピュータ370との間の接続状態が正常であるか否かを確認するために一定間隔(1秒(1s))毎に遊技制御用マイクロコンピュータ560から送信される制御コマンドである。接続確認コマンドのデータの内容は「A0(H)」すなわち「10100000」である。   The connection confirmation command is used for game control at regular intervals (1 second (1 s)) to confirm whether or not the connection state between the game control microcomputer 560 and the payout control microcomputer 370 is normal. This is a control command transmitted from the microcomputer 560. The data content of the connection confirmation command is “A0 (H)”, that is, “10100000”.

接続OKコマンドは、遊技制御用マイクロコンピュータ560と払出制御用マイクロコンピュータ370との間の接続状態が正常であることを通知するための制御コマンドであって、払出制御用マイクロコンピュータ370が接続確認コマンドの受信に応じて応答信号として送信する制御コマンドである。接続OKコマンドのデータの内容は「8x(H)」すなわち「1000xxxx」である。ここで、接続OKコマンドの2バイト目の「xxxx」については、図19に示すように、賞球エラー(入賞にもとづく賞球払出動作や球貸し要求にもとづく球貸払出動作が正常に行えない状態になった異常状態)が発生した場合には、1ビット目(ビット0)の「x」に「1」が設定される。また、満タンエラーが発生した場合には、2ビット目(ビット1)の「x」に「1」が設定される。また、球切れエラーが発生した場合には、3ビット目(ビット2)の「x」に「1」が設定される。また、賞球や貸し球の払出数の個数異常の累積値が所定値(例えば、2000個)に達した場合の払出個数異常エラーが発生した場合には、4ビット目(ビット3)の「x」に「1」が設定される。   The connection OK command is a control command for notifying that the connection state between the game control microcomputer 560 and the payout control microcomputer 370 is normal, and the payout control microcomputer 370 issues a connection confirmation command. Is a control command that is transmitted as a response signal in response to the reception of. The data content of the connection OK command is “8x (H)”, that is, “1000xxxx”. Here, with respect to “xxxx” in the second byte of the connection OK command, as shown in FIG. 19, a winning ball error (a winning ball paying operation based on winning or a ball lending paying operation based on a ball lending request cannot be normally performed. When an abnormal state that has entered a state occurs, “1” is set to “x” of the first bit (bit 0). When a full tank error occurs, “1” is set to “x” of the second bit (bit 1). When a ball break error occurs, “1” is set to “x” of the third bit (bit 2). In addition, when a payout amount error error occurs when the cumulative value of the number of award balls and rental balls is over a predetermined value (for example, 2000), the fourth bit (bit 3) “ “1” is set to “x”.

このように、遊技制御用マイクロコンピュータ560と払出制御用マイクロコンピュータ370との間の接続確認を行っている最中に、払出制御用マイクロコンピュータ370における所定のエラーの発生を遊技制御用マイクロコンピュータ560に通知することができる。なお、図19に示す例では、接続OKコマンドに、制御状態として払い出しに関するエラー(賞球エラーや、満タンエラー、球切れエラー、払出個数異常エラー)を示す値を設定する場合を示したが、エラー以外の制御状態を接続OKコマンドに設定するようにしてもよい。例えば、払出制御用マイクロコンピュータ370は、賞球払出動作中である旨や貸し球払出動作中である旨を示す値を制御状態として接続OKコマンドにセットして、遊技制御用マイクロコンピュータ560に送信するようにしてもよい。   In this manner, during the connection confirmation between the game control microcomputer 560 and the payout control microcomputer 370, the occurrence of a predetermined error in the payout control microcomputer 370 is detected. Can be notified. In the example shown in FIG. 19, the connection OK command is set to a value indicating a payout error (prize ball error, full tank error, out of ball error, payout number error error) as a control state. A control state other than an error may be set in the connection OK command. For example, the payout control microcomputer 370 sets a value indicating that a prize ball payout operation or a lending ball payout operation is in a control state to the connection OK command, and transmits it to the game control microcomputer 560. You may make it do.

賞球個数コマンドは、払出要求を行う遊技球の個数(0〜15個)を通知するための制御コマンドであって、遊技制御用マイクロコンピュータ560が入賞の発生にもとづいて送信する制御コマンドである。賞球個数コマンドのデータの内容は「5x(H)」すなわち「0101xxxx」とされている。この実施の形態では、始動口スイッチ14aで遊技球が検出されると3個の賞球払出を行い、入賞口スイッチ29a,30aのいずれかで遊技球が検出されると10個の賞球払出を行い、カウントスイッチ23で遊技球が検出されると15個の賞球払出を行う。よって、始動口スイッチ14aで遊技球が検出された場合、賞球数3個を通知するための賞球個数コマンド「01010011」が送信され、入賞口スイッチ29a,30aのいずれかで遊技球が検出された場合、賞球数10個を通知するための賞球個数コマンド「01011010」が送信され、カウントスイッチ23で遊技球が検出された場合、賞球数15個を通知するための賞球個数コマンド「01011111」が送信される。   The award ball number command is a control command for notifying the number (0 to 15) of game balls for which a payout request is made, and is a control command transmitted by the game control microcomputer 560 based on the occurrence of a win. . The content of the prize ball number command data is “5x (H)”, that is, “0101xxx”. In this embodiment, three game balls are paid out when a game ball is detected by the start port switch 14a, and 10 game balls are paid out when a game ball is detected by any of the game port switches 29a and 30a. When a game ball is detected by the count switch 23, 15 prize balls are paid out. Therefore, when a game ball is detected by the start port switch 14a, a prize ball number command “01010011” for notifying the number of prize balls of 3 is transmitted, and the game ball is detected by one of the winning port switches 29a and 30a. If a prize ball number command “01011010” for notifying 10 prize balls is transmitted and a game ball is detected by the count switch 23, the number of prize balls for notifying 15 prize balls is sent. The command “0101111” is transmitted.

賞球個数受付コマンドは、賞球個数コマンドで指定された賞球個数を受け付けたことを通知するための制御コマンドであって、払出制御用マイクロコンピュータ370が賞球個数コマンドの受信に応じて応答信号として送信する制御コマンドである。賞球個数受付コマンドのデータの内容は「70(H)」すなわち、「01110000」である。   The prize ball number acceptance command is a control command for notifying that the prize ball number specified by the prize ball quantity command has been accepted, and the payout control microcomputer 370 responds upon receipt of the prize ball quantity command. It is a control command transmitted as a signal. The content of the winning ball number acceptance command data is “70 (H)”, that is, “01110000”.

賞球終了コマンドは、賞球動作(賞球払出動作)が終了したことを示す制御コマンドであって、払出制御用マイクロコンピュータ370が賞球動作の終了にもとづいて送信する制御コマンドである。賞球終了コマンドのデータの内容は「50(H)」すなわち「01010000」である。   The award ball end command is a control command indicating that the award ball operation (award ball payout operation) has ended, and is a control command that the payout control microcomputer 370 transmits based on the end of the award ball operation. The data content of the winning ball end command is “50 (H)”, that is, “01010000”.

賞球準備中コマンドは、賞球動作に時間がかかっている場合や、貸し球動作中であったり所定のエラーが発生したりして賞球動作が終了していないことを通知する制御コマンドである。賞球準備中コマンドのデータの内容は「4x(H)」すなわち「0100xxxx」である。ここで、賞球準備中コマンドの2バイト目の「xxxx」については、図19に示すように、賞球エラーが発生した場合には、1ビット目(ビット0)の「x」に「1」が設定される。また、満タンエラーが発生した場合には、2ビット目(ビット1)の「x」に「1」が設定される。また、球切れエラーが発生した場合には、3ビット目(ビット2)の「x」に「1」が設定される。また、賞球や貸し球の払出数の個数異常の累積値が所定値(例えば、2000個)に達した場合の払出個数異常エラーが発生した場合には、4ビット目(ビット3)の「x」に「1」が設定される。このようにして、払出制御用マイクロコンピュータ370から、賞球動作に時間がかかっている場合や、貸し球動作中であったり賞球動作の実行中に所定のエラーが発生したりして賞球動作が終了していないことを遊技制御用マイクロコンピュータ560に通知することができるとともに、エラーの内容も遊技制御用マイクロコンピュータ560に通知することができる。   The command for preparing a prize ball is a control command for notifying that a prize ball movement has not been completed due to a long time for a prize ball movement, a rental ball movement or a predetermined error. is there. The content of the data of the winning ball preparation command is “4x (H)”, that is, “0100xxxx”. Here, with respect to “xxxx” of the second byte of the command for preparing a prize ball, as shown in FIG. 19, when a prize ball error occurs, “1” is set to “1” in the first bit (bit 0). Is set. When a full tank error occurs, “1” is set to “x” of the second bit (bit 1). When a ball break error occurs, “1” is set to “x” of the third bit (bit 2). In addition, when a payout amount error error occurs when the cumulative value of the number of award balls and rental balls is over a predetermined value (for example, 2000), the fourth bit (bit 3) “ “1” is set to “x”. In this way, the payout control microcomputer 370 receives a prize ball when the prize ball operation takes a long time, or during a lending ball operation or when a predetermined error occurs during the execution of the prize ball operation. The game control microcomputer 560 can be notified that the operation has not ended, and the contents of the error can also be notified to the game control microcomputer 560.

なお、この実施の形態では、接続確認信号は払出制御コマンドのうちの接続確認コマンドによって実現され、応答信号は接続OKコマンドによって実現され、払出数信号は賞球個数コマンドによって実現され、受付信号は賞球個数受付コマンドによって実現され、払出終了信号は賞球終了コマンドによって実現され、払出中信号は賞球準備中コマンドによって実現される。   In this embodiment, the connection confirmation signal is realized by a connection confirmation command of the payout control commands, the response signal is realized by a connection OK command, the payout number signal is realized by a prize ball number command, and the acceptance signal is It is realized by a prize ball number reception command, a payout end signal is realized by a prize ball end command, and a payout in progress signal is realized by a prize ball preparation command.

図20は、不正行為の一例を説明するための説明図である。図20(A)には、遊技球を検出可能な検出手段の一例である近接スイッチが示されている。なお、図20(A)には、近接スイッチがカウントスイッチ23として用いられている例が示されている。カウントスイッチ23の一方の端子には、電源基板910から+12V電源電圧が供給されている。カウントスイッチ23の他方の端子の電圧レベルである検出信号は、主基板31に入力される。主基板31において、検出信号は、入力ドライバ回路から遊技制御用マイクロコンピュータの入力ポートに入力される。また、カウントスイッチ23の出力側には、一端が接地されている抵抗RとコンデンサCが接続されている。   FIG. 20 is an explanatory diagram for explaining an example of fraud. FIG. 20A shows a proximity switch that is an example of a detection unit that can detect a game ball. 20A shows an example in which a proximity switch is used as the count switch 23. FIG. One terminal of the count switch 23 is supplied with + 12V power supply voltage from the power supply substrate 910. A detection signal that is the voltage level of the other terminal of the count switch 23 is input to the main board 31. In the main board 31, the detection signal is input from the input driver circuit to the input port of the game control microcomputer. Further, a resistor R and a capacitor C, one end of which is grounded, are connected to the output side of the count switch 23.

近接スイッチであるカウントスイッチ23に設けられている穴を金属の遊技球が通過するとコイルLに逆起電力が生じ、コイルLの等価的な抵抗値が極めて大きくなる。従って、カウントスイッチ23の出力は、0Vに近いローレベルになる。すなわち、検出信号は、ローレベルである。カウントスイッチ23に設けられている穴を金属の遊技球が通過していない場合には、カウントスイッチ23の出力は、+12VがコイルLと抵抗Rの抵抗値で分圧された値であり、ハイレベルであるとみなされるしきい値レベルを越える。すなわち、検出信号は、ハイレベルである。なお、検出信号のレベルは、入力ドライバ回路58で論理反転される。   When a metal game ball passes through a hole provided in the count switch 23 that is a proximity switch, a counter electromotive force is generated in the coil L, and the equivalent resistance value of the coil L becomes extremely large. Therefore, the output of the count switch 23 becomes a low level close to 0V. That is, the detection signal is at a low level. When the metal game ball does not pass through the hole provided in the count switch 23, the output of the count switch 23 is a value obtained by dividing + 12V by the resistance value of the coil L and the resistance R, and the high A threshold level that is considered to be a level is exceeded. That is, the detection signal is at a high level. The level of the detection signal is logically inverted by the input driver circuit 58.

遊技制御用マイクロコンピュータは、入力ドライバ回路58からの検出信号がハイレベルである場合に、遊技球がスイッチを通過したと判定することができる。   When the detection signal from the input driver circuit 58 is at a high level, the game control microcomputer can determine that the game ball has passed through the switch.

なお、この実施の形態では、カウントスイッチ23の他、入賞口スイッチ29a,30aおよび始動口スイッチ14aとして、近接スイッチが用いられている。   In this embodiment, in addition to the count switch 23, proximity switches are used as the winning port switches 29a and 30a and the starting port switch 14a.

図20(B)は、不正行為の具体例を示す説明図である。図20(B)に示す例では、カウントスイッチ23に設けられている穴を金属製の球体で塞ぎ(一例として、通常の遊技球よりも径が大きい球体を用いる。)、その状態で、電波発信機50から球体に向けて電波を発射する。   FIG. 20B is an explanatory diagram illustrating a specific example of fraud. In the example shown in FIG. 20B, a hole provided in the count switch 23 is closed with a metal sphere (for example, a sphere having a diameter larger than that of a normal game ball is used). Radio waves are emitted from the transmitter 50 toward the sphere.

カウントスイッチ23に設けられている穴が金属製の球体で塞がれると、カウントスイッチ23は検出信号を出力する。具体的には、図20(C)の上段に示すように、カウントスイッチ23は検出信号をローレベルにする。   When the hole provided in the count switch 23 is closed with a metal sphere, the count switch 23 outputs a detection signal. Specifically, as shown in the upper part of FIG. 20C, the count switch 23 sets the detection signal to a low level.

その状態で、球体に向けて、カウントスイッチ23の検出信号をオンオフさせるような電波が発射されると、図20(C)の下段に示すように、遊技制御用マイクロコンピュータ560に入力される検出信号は、オンとオフとを繰り返す。すると、遊技制御用マイクロコンピュータ560は、検出信号が多数回オンしたと見なし、多数回の遊技球の入賞があったと誤判断して、結局、多数の景品として遊技球が払い出されてしまう。   In this state, when a radio wave is emitted toward the sphere so as to turn on and off the detection signal of the count switch 23, as shown in the lower part of FIG. 20C, the detection input to the game control microcomputer 560 The signal repeats on and off. Then, the game control microcomputer 560 considers that the detection signal has been turned on many times, erroneously determines that the game ball has been won many times, and eventually the game ball is paid out as a large number of prizes.

この実施の形態では、後述するように、検出信号が図20(C)の下段に示すような状態になった場合に、不正行為がなされている可能性があると判定され、所定の報知が行われる。なお、後述するように、遊技制御用マイクロコンピュータ560は、4ms毎にスイッチの検出信号を確認し、検出信号のレベルがLレベル(ローレベル)であって直前(4ms前に)に確認した検出信号のレベルがHレベル(ハイレベル)である場合にスイッチがオンした(遊技球を検出した)と判定するが、電波発信機50が図20(C)の下段に示すような検出信号の周期と同周期の電波を出力しているとすると、その周期の電波を発生するためのクロック周波数と遊技制御用マイクロコンピュータ560の駆動周波数とが一致または整数倍の関係にない限り、遊技制御用マイクロコンピュータ560が、図20(C)の下段に示すような状態の検出信号にもとづいてスイッチがオンしたと判定する機会が生ずる。電波発信機50のクロック周波数と遊技制御用マイクロコンピュータ560の駆動周波数とがたまたま一致していたり整数倍の関係にあったりするときでも、図20(C)の下段に示すような検出信号の周期(信号の立ち下がりから次の立ち下がりまでの時間)が、4msまたは4msの整数分の1でない限り、図20(C)の下段に示すような状態の検出信号にもとづいてスイッチがオンしたと判定する機会が生ずる。   In this embodiment, as will be described later, when the detection signal is in a state as shown in the lower part of FIG. 20C, it is determined that there is a possibility of fraud, and a predetermined notification is made. Done. As will be described later, the game control microcomputer 560 checks the detection signal of the switch every 4 ms, and the detection signal level is L level (low level) and the detection is confirmed immediately before (4 ms before). When the signal level is the H level (high level), it is determined that the switch is turned on (the game ball is detected), but the radio wave transmitter 50 has a detection signal cycle as shown in the lower part of FIG. If the clock frequency for generating the radio wave of that cycle and the drive frequency of the game control microcomputer 560 are equal or have an integer multiple relationship, the game control micro There is an opportunity for the computer 560 to determine that the switch is turned on based on the detection signal in the state shown in the lower part of FIG. Even when the clock frequency of the radio wave transmitter 50 coincides with the driving frequency of the game control microcomputer 560 or coincides with an integral multiple, the period of the detection signal as shown in the lower part of FIG. Unless the (time from the falling edge of the signal to the next falling edge) is 4 ms or an integral fraction of 4 ms, the switch is turned on based on the detection signal in the state shown in the lower part of FIG. An opportunity to make a decision arises.

図21は、遊技制御用マイクロコンピュータ560が送信する演出制御コマンドの内容の一例を示す説明図である。図21に示す例において、コマンド80XX(H)は、特別図柄の可変表示に対応して演出表示装置9において可変表示される飾り図柄の変動パターンを指定する演出制御コマンド(変動パターンコマンド)である(それぞれ変動パターンXXに対応)。なお、「(H)」は16進数であることを示す。また、変動パターンを指定する演出制御コマンドは、変動開始を指定するためのコマンドでもある。従って、演出制御用マイクロコンピュータ100は、コマンド80XX(H)を受信すると、演出表示装置9において飾り図柄の可変表示を開始するように制御する。   FIG. 21 is an explanatory diagram showing an example of the contents of the effect control command transmitted by the game control microcomputer 560. In the example shown in FIG. 21, a command 80XX (H) is an effect control command (variation pattern command) for designating a variation pattern of a decorative symbol that is variably displayed on the effect display device 9 in response to variable display of a special symbol. (Corresponding to the variation pattern XX, respectively). “(H)” indicates a hexadecimal number. The effect control command for designating the variation pattern is also a command for designating the start of variation. Therefore, when the effect control microcomputer 100 receives the command 80XX (H), the effect display device 9 controls the effect display device 9 to start variable display of decorative symbols.

コマンド8CXX(H)は、大当りとするか否か、および大当り種別を示す演出制御コマンドである。演出制御用マイクロコンピュータ100は、コマンド8CXX(H)の受信に応じて飾り図柄の表示結果を決定するので、コマンド8CXX(H)を表示結果指定コマンドという。   Command 8CXX (H) is an effect control command indicating whether or not to make a big hit and the type of big hit. The effect control microcomputer 100 determines the display result of the decorative symbol in response to the reception of the command 8CXX (H), so the command 8CXX (H) is referred to as a display result designation command.

コマンド8F00(H)は、飾り図柄の可変表示(変動)を終了して表示結果(停止図柄)を導出表示することを示す演出制御コマンド(図柄確定指定コマンド)である。   Command 8F00 (H) is an effect control command (symbol confirmation designation command) indicating that the variable display (fluctuation) of the decorative symbols is terminated and the display result (stop symbol) is derived and displayed.

コマンドA001(H)は、ファンファーレ画面を表示すること、すなわち大当り遊技の開始を指定する演出制御コマンド(大当り開始指定コマンドまたはファンファーレ指定コマンドともいう。)である。   Command A001 (H) is an effect control command (also referred to as a jackpot start designation command or a fanfare designation command) for displaying the fanfare screen, that is, designating the start of a jackpot game.

コマンドA1XX(H)は、XXで示す回数目(ラウンド)の大入賞口開放中の表示を示す演出制御コマンド(大入賞口開放中指定コマンド)である。A2XX(H)は、XXで示す回数目(ラウンド)の大入賞口閉鎖を示す演出制御コマンド(大入賞口開放後指定コマンド)である。   The command A1XX (H) is an effect control command (special command during opening of a big winning opening) indicating a display during the opening of the big winning opening for the number of times (round) indicated by XX. A2XX (H) is an effect control command (designation command after opening the big winning opening) indicating the closing of the big winning opening for the number of times (round) indicated by XX.

コマンドA301(H)は、大当り終了画面を表示すること、すなわち大当り遊技の終了を指定する演出制御コマンド(大当り終了指定コマンド)である。   The command A301 (H) is an effect control command (a jackpot end designation command) for displaying the jackpot end screen, that is, designating the end of the jackpot game.

なお、この実施の形態では、演出制御を行うために図21に示された演出制御コマンド以外の演出制御コマンドも使用されるが、図21には、主要な演出制御コマンドが示されている。   In this embodiment, production control commands other than the production control commands shown in FIG. 21 are also used to perform production control. FIG. 21 shows main production control commands.

また、コマンD000(H)は、所定の通過領域を通過する遊技球を検出するための入力ポート0(図11参照)の入力状態を示す入力ポート状態指定コマンドである。後述するように、スイッチからの検出信号の状態が変化した場合に、2バイト目に入力ポート0の入力データが設定された入力ポート状態指定コマンドが送信される。   The command D000 (H) is an input port state designation command that indicates the input state of the input port 0 (see FIG. 11) for detecting a game ball that passes through a predetermined passing area. As will be described later, when the state of the detection signal from the switch changes, an input port state designation command in which the input data of the input port 0 is set in the second byte is transmitted.

次に、タイマ割込処理におけるスイッチ処理(ステップS22)を説明する。この実施の形態では、入賞検出またはゲート通過に関わる各スイッチの検出信号のオン状態が所定時間継続すると、確かにスイッチがオンしたと判定されスイッチオンに対応した処理が開始される。図22は、スイッチ処理で使用されるRAM55に形成される各1バイト(8ビット)のバッファを示す説明図である。前回ポートバッファは、前回(例えば4ms前)のスイッチオン/オフの判定結果が格納されるバッファである。ポートバッファは、今回入力したポート0の内容が格納されるバッファである。スイッチオンバッファは、スイッチのオンが検出された場合に対応ビットが1に設定され、スイッチのオフが検出された場合に対応ビットが0に設定されるバッファである。   Next, the switch process (step S22) in the timer interrupt process will be described. In this embodiment, when the ON state of the detection signal of each switch related to winning detection or gate passage continues for a predetermined time, it is determined that the switch is surely turned on, and processing corresponding to the switch on is started. FIG. 22 is an explanatory diagram showing each 1-byte (8-bit) buffer formed in the RAM 55 used in the switching process. The previous port buffer is a buffer in which the previous switch-on / off determination result (for example, 4 ms before) is stored. The port buffer is a buffer in which the contents of port 0 inputted this time are stored. The switch-on buffer is a buffer in which the corresponding bit is set to 1 when switch on is detected and the corresponding bit is set to 0 when switch off is detected.

図23は、遊技制御処理におけるステップS22のスイッチ処理の処理例を示すフローチャートである。スイッチ処理において、CPU56は、まず、入力ポート0(図11参照)に入力されているデータを入力し(ステップS101)、入力したデータをポートバッファにセットする(ステップS102)。   FIG. 23 is a flowchart illustrating a processing example of the switch processing in step S22 in the game control processing. In the switch process, the CPU 56 first inputs data input to the input port 0 (see FIG. 11) (step S101), and sets the input data in the port buffer (step S102).

次いで、RAM55に形成されるウェイトカウンタの初期値をセットし(ステップS103)、ウェイトカウンタの値が0になるまで、ウェイトカウンタの値を1ずつ減算する(ステップS104,S105)。   Next, the initial value of the weight counter formed in the RAM 55 is set (step S103), and the value of the weight counter is decremented by 1 until the value of the weight counter becomes 0 (steps S104 and S105).

ウェイトカウンタの値が0になると、再度、入力ポート0のデータを入力し(ステップS106)、入力したデータとポートバッファにセットされているデータとの間で、ビット毎に論理積をとる(ステップS107)。そして、論理積の演算結果を、ポートバッファにセットする(ステップS108)。ステップS103〜S108の処理によって、ほぼ[ウェイトカウンタの初期値×(ステップS104,S105の処理時間)]の時間間隔を置いて入力ポート0から入力した2回の入力データのうち、2回とも「1」になっているビットのみが、ポートバッファにおいて「1」になる。つまり、所定期間としての[ウェイトカウンタの初期値×(ステップS104,S105の処理時間)]だけスイッチの検出信号のオン状態が継続すると、ポートバッファにおける対応するビットが「1」になる。   When the value of the wait counter becomes 0, the data of the input port 0 is input again (step S106), and a logical product is obtained for each bit between the input data and the data set in the port buffer (step S106). S107). Then, the logical product operation result is set in the port buffer (step S108). Of the two input data input from the input port 0 with a time interval of approximately [initial value of weight counter × (processing time of steps S104, S105)] by the processing of steps S103 to S108, both “ Only the bits that are “1” will be “1” in the port buffer. In other words, if the ON state of the switch detection signal continues for a predetermined period [initial value of wait counter × (processing time of steps S104 and S105)], the corresponding bit in the port buffer becomes “1”.

さらに、CPU56は、前回ポートバッファにセットされているデータとポートバッファにセットされているデータとの間で、ビット毎に排他的論理和をとる(ステップS109)。排他的論理和の演算結果において、前回(例えば4ms前)のスイッチオン/オフの判定結果と、今回オンと判定されたスイッチオン/オフの判定結果とが異なっているスイッチに対応したビットが「1」になる。   Further, the CPU 56 performs exclusive OR for each bit between the data previously set in the port buffer and the data set in the port buffer (step S109). In the result of the exclusive OR operation, the bit corresponding to the switch for which the previous switch-on / off determination result (for example, 4 ms before) differs from the switch-on / off determination result determined to be on this time is “ 1 ”.

いずれかのスイッチに対応したビットが「1」になった場合(スイッチからの検出信号の状態が変化した場合)には(ステップS110)、CPU56は、演出制御用マイクロコンピュータ100に入力ポート状態指定コマンドを送信する制御を行う(ステップS111)。   When the bit corresponding to one of the switches becomes “1” (when the state of the detection signal from the switch has changed) (step S110), the CPU 56 designates the effect control microcomputer 100 with the input port state. Control to transmit a command is performed (step S111).

なお、ステップS111では、CPU56は、始動口スイッチ14a、カウントスイッチ23、および入賞口スイッチ29a,30aからの検出信号に対応するビットが「1」になった場合に入力ポート状態指定コマンドを送信し、ゲートスイッチ32aからの検出信号に対応するビットが「1」になった場合には、入力ポート状態指定コマンドを送信しないようにしてもよい。ゲートスイッチ32aからの検出信号に対応するビットが「1」になった場合に入力ポート状態指定コマンドを送信しないように構成する場合には、ステップS110とステップS111の処理との間に、排他的論理和の演算結果と「1D(H)」(図11に示す入力ポート0のビット1をマスクするデータ)との論理積が0になったときにはステップS111の処理を実行しないステップを挿入すればよい。この実施の形態では、演出制御用マイクロコンピュータ100は、異常判定処理(図51、図54、図56参照)において入力ポート0の始動口スイッチ14a、カウントスイッチ23、および入賞口スイッチ29a,30aからの検出信号に対応するビットしか判定しないので、ゲートスイッチ32aからの検出信号に対応するビットのデータが「1」,「0」のいずれであっても異常判定処理には影響を与えない。また、この実施の形態のようにゲートスイッチ32aからの検出信号に対応するビットが「1」になった場合にも入力ポート状態指定コマンドを送信する場合に、異常判定処理においてゲートスイッチ32aからの検出信号に対応するビットも判定対象にしてゲート32に対する遊技球の異常通過も検出するようにし、異常通過を検出した場合に異常報知を行うようにしてもよい。   In step S111, the CPU 56 transmits an input port state designation command when the bit corresponding to the detection signals from the start port switch 14a, the count switch 23, and the winning port switches 29a and 30a becomes “1”. When the bit corresponding to the detection signal from the gate switch 32a becomes “1”, the input port state designation command may not be transmitted. When it is configured not to transmit the input port state designation command when the bit corresponding to the detection signal from the gate switch 32a becomes “1”, the exclusive processing is performed between the processing of step S110 and step S111. When the logical product of the logical sum operation result and “1D (H)” (data that masks bit 1 of input port 0 shown in FIG. 11) becomes 0, a step that does not execute the process of step S111 is inserted. Good. In this embodiment, the production control microcomputer 100 uses the start port switch 14a, the count switch 23, and the winning port switches 29a and 30a of the input port 0 in the abnormality determination process (see FIGS. 51, 54, and 56). Therefore, only the bit corresponding to the detection signal from the gate switch 32a is judged to be “1” or “0”, so that the abnormality judgment processing is not affected. In addition, when the input port state designation command is transmitted even when the bit corresponding to the detection signal from the gate switch 32a is “1” as in this embodiment, the abnormal state is determined by the gate switch 32a. A bit corresponding to the detection signal may also be determined, and abnormal passing of the game ball with respect to the gate 32 may be detected, and when abnormal passing is detected, abnormality notification may be performed.

また、CPU56は、ステップS111の処理で、入力ポート0の入力データに対応するポートバッファのデータを2バイト目に設定した入力ポート状態指定コマンドを送信する制御を行う。すなわち、CPU56は、入力ポート0の入力データを一括してコマンドとして出力する。   Further, in the process of step S111, the CPU 56 performs control to transmit an input port state designation command in which the port buffer data corresponding to the input data of the input port 0 is set to the second byte. That is, the CPU 56 collectively outputs the input data of the input port 0 as a command.

また、演出制御用マイクロコンピュータ100に演出制御コマンドを送信する際に、CPU56は、演出制御コマンドの種類に応じたコマンド送信テーブル(あらかじめROM54にコマンド毎に設定されている)のアドレスをポインタにセットする。そして、コマンド制御処理(ステップS25)において演出制御コマンドが送信される。なお、入力ポート0の入力データのように固定的でないデータを送信する場合には、例えば、ROM54におけるコマンド送信テーブルの1バイト目にMODEデータ(図21参照)が設定され、2バイト目にRAM55の所定領域のアドレスが設定される。そして、CPU56は、RAM55の所定領域に入力ポート0の入力データをセットした後、入力ポート状態指定コマンドに対応するコマンド送信テーブルのアドレスをポインタにセットする。コマンド送信テーブルにRAM領域のアドレスが記憶されていて、該当するアドレスのデータを2バイト目にセットしてもよい。   When transmitting the effect control command to the effect control microcomputer 100, the CPU 56 sets the address of the command transmission table (preliminarily set for each command in the ROM 54) according to the type of the effect control command as a pointer. To do. Then, the effect control command is transmitted in the command control process (step S25). When transmitting non-fixed data such as input data of the input port 0, for example, MODE data (see FIG. 21) is set in the first byte of the command transmission table in the ROM 54, and the RAM 55 is set in the second byte. The address of the predetermined area is set. The CPU 56 sets the input data of the input port 0 in a predetermined area of the RAM 55, and then sets the address of the command transmission table corresponding to the input port state designation command as a pointer. The address of the RAM area may be stored in the command transmission table, and the data at the corresponding address may be set in the second byte.

CPU56は、さらに、排他的論理和の演算結果と、ポートバッファにセットされているデータとの間で、ビット毎に論理積をとる(ステップS112)。この結果、前回のスイッチオン/オフの判定結果と今回オンと判定されたスイッチオン/オフの判定結果とが異なっているスイッチに対応したビット(排他的論理和演算結果による)のうち、今回オンと判定されたスイッチに対応したビット(論理積演算による)のみが「1」として残る。   The CPU 56 further performs a logical product for each bit between the operation result of the exclusive OR and the data set in the port buffer (step S112). As a result, of the bits corresponding to the switches for which the previous switch on / off determination result and the switch on / off determination result determined to be on this time are different (according to the exclusive OR operation result), the current on Only the bit corresponding to the switch determined to be (by AND operation) remains as “1”.

そして、CPU56は、ステップS112における論理積の演算結果をスイッチオンバッファにセットし(ステップS113)、ステップS108における演算結果がセットされているポートバッファの内容を前回ポートバッファにセットする(ステップS114)。   Then, the CPU 56 sets the operation result of the logical product in step S112 in the switch-on buffer (step S113), and sets the contents of the port buffer in which the operation result in step S108 is set in the previous port buffer (step S114). .

以上の処理によって、所定期間継続してオン状態であったスイッチのうち、前回(例えば、4ms前)のスイッチオン/オフの判定結果がオフであったスイッチ、すなわち、オフ状態からオン状態に変化したスイッチに対応したビットが、スイッチオンバッファにおいて「1」になっている。   Through the above processing, among the switches that have been on for a predetermined period of time, the switch that has been turned off last time (for example, 4 ms before), that is, the switch that has been turned off, that is, changed from the off state to the on state. The bit corresponding to the switched switch is “1” in the switch-on buffer.

次に、ステップS26の賞球処理を説明する。図24は、ステップS32の賞球処理の一例を示すフローチャートである。賞球処理において、遊技制御用マイクロコンピュータ560(具体的には、CPU56)は、賞球コマンド出力カウンタ加算処理(ステップS501)、賞球制御処理(ステップS502)および賞球カウンタ減算処理(ステップS503)を実行する。   Next, the prize ball processing in step S26 will be described. FIG. 24 is a flowchart illustrating an example of the prize ball processing in step S32. In the prize ball process, the game control microcomputer 560 (specifically, the CPU 56), the prize ball command output counter addition process (step S501), the prize ball control process (step S502), and the prize ball counter subtraction process (step S503). ).

賞球コマンド出力カウンタ加算処理では、図25に示す賞球個数テーブルが使用される。賞球個数テーブルは、ROM54に設定されている。賞球個数テーブルの先頭アドレスには処理数(この例では「4」)が設定され、その後に、スイッチオンバッファの下位アドレスと、賞球コマンド出力カウンタの下位アドレスと、賞球数を指定する賞球指定データとが、順次設定されている。賞球コマンド出力カウンタとは、入賞口への入賞数をカウントするカウンタである。また、賞球コマンド出力カウンタは、賞球数(0〜15個)毎に設定されるが、この実施の形態では、遊技制御用マイクロコンピュータ560は、賞球数「15」に対応する賞球コマンド出力カウンタ1と、賞球数「10」に対応する賞球コマンド出力カウンタ2,3(2つの普通入賞口29,30に対応)と、賞球数「3」に対応する賞球コマンド出力カウンタ4とが使用される。   In the prize ball command output counter addition process, a prize ball number table shown in FIG. 25 is used. The prize ball number table is set in the ROM 54. The number of processes (in this example, “4”) is set to the start address of the prize ball number table, and then the lower address of the switch-on buffer, the lower address of the prize ball command output counter, and the number of prize balls are designated. Prize ball designation data is set in sequence. The prize ball command output counter is a counter that counts the number of prizes received at the prize opening. The prize ball command output counter is set for each number of prize balls (0 to 15). In this embodiment, the game control microcomputer 560 receives the prize ball corresponding to the number of prize balls “15”. Command output counter 1, prize ball command output counters 2 and 3 corresponding to the number of prize balls “10” (corresponding to two normal winning openings 29 and 30), and prize ball command output corresponding to the number of prize balls “3” Counter 4 is used.

なお、賞球指定データ(15個)は、入力ポート0(図11参照)の状態が反映されているスイッチオンバッファのビット0(カウントスイッチ23aに対応するビット)のみが「1」になっているデータである。賞球指定データ(10個)の一方は、スイッチオンバッファのビット2(入賞口スイッチ29aに対応するビット)のみが「1」になっているデータである。賞球指定データ(10個)の他方は、スイッチオンバッファのビット3(入賞口スイッチ30aに対応するビット)のみが「1」になっているデータである。賞球指定データ(3個)は、スイッチオンバッファのビット4(始動口スイッチ14aに対応するビット)のみが「1」になっているデータである。   In the winning ball designation data (15), only bit 0 (bit corresponding to the count switch 23a) of the switch-on buffer in which the state of the input port 0 (see FIG. 11) is reflected is “1”. Data. One of the winning ball designation data (10) is data in which only bit 2 of the switch-on buffer (bit corresponding to the winning opening switch 29a) is “1”. The other of the winning ball designation data (10) is data in which only bit 3 of the switch-on buffer (bit corresponding to the winning opening switch 30a) is “1”. The winning ball designation data (three) is data in which only bit 4 (bit corresponding to the start port switch 14a) of the switch-on buffer is “1”.

また、各賞球コマンド出力カウンタは、後述するように、賞球コマンド出力カウンタ加算処理でカウントアップされる。CPU56は、賞球個数テーブルに設定されている賞球コマンド出力カウンタ1が0でなければ、賞球個数(15個)を示すデータを賞球個数コマンドの下位4ビットに設定し、当該設定された賞球個数コマンドを払出制御用マイクロコンピュータ370に送信する。また、CPU56は、賞球個数テーブルに設定されている賞球コマンド出力カウンタ1の値が0であり、賞球コマンド出力カウンタ2または賞球コマンド出力カウンタ3の値が0でなければ、賞球個数(10個)を示すデータを賞球個数コマンドの下位4ビットに設定し、当該設定された賞球個数コマンドを払出制御用マイクロコンピュータ370に送信する。また、CPU56は、賞球個数テーブルに設定されている賞球コマンド出力カウンタ1および賞球コマンド出力カウンタ2,3の値が0であり、賞球コマンド出力カウンタ4の値が0でなければ、賞球個数(3個)を示すデータを賞球個数コマンドの下位4ビットに設定し、当該設定された賞球個数コマンドを払出制御用マイクロコンピュータ370に送信する。   Each prize ball command output counter is counted up by prize ball command output counter addition processing, as will be described later. If the prize ball command output counter 1 set in the prize ball number table is not 0, the CPU 56 sets data indicating the number of prize balls (15) in the lower 4 bits of the prize ball number command. The prize ball number command is transmitted to the payout control microcomputer 370. Further, the CPU 56 determines the prize ball if the value of the prize ball command output counter 1 set in the prize ball number table is 0 and the value of the prize ball command output counter 2 or the prize ball command output counter 3 is not 0. Data indicating the number (10) is set in the lower 4 bits of the winning ball number command, and the set winning ball number command is transmitted to the payout control microcomputer 370. Further, the CPU 56 determines that the values of the prize ball command output counter 1 and the prize ball command output counters 2 and 3 set in the prize ball number table are 0 and the value of the prize ball command output counter 4 is not 0. Data indicating the number of winning balls (3) is set in the lower 4 bits of the winning ball number command, and the set winning ball number command is transmitted to the payout control microcomputer 370.

図26は、ステップS501の賞球コマンド出力カウンタ加算処理を示すフローチャートである。賞球コマンド出力カウンタ加算処理において、遊技制御用マイクロコンピュータ560(具体的には、CPU56)は、賞球個数テーブルの先頭アドレスをポインタにセットする(ステップS5101)。そして、ポインタが指すアドレスのデータ(この場合には、処理数)をロードする(ステップS5102)。   FIG. 26 is a flowchart showing the prize ball command output counter addition processing in step S501. In the prize ball command output counter addition process, the game control microcomputer 560 (specifically, the CPU 56) sets the start address of the prize ball number table to the pointer (step S5101). Then, the data at the address pointed to by the pointer (in this case, the number of processes) is loaded (step S5102).

次いで、CPU56は、ポインタの値を1増やし(ステップS5103)、ポインタが指すスイッチオンバッファの下位アドレスをポインタバッファの下位バイトにロードし(ステップS5104)、ポインタバッファの指すスイッチオンバッファをレジスタにロードする(ステップS5105)。次いで、CPU56は、ポインタの値を1増やし(ステップS5106)、ポインタが指す賞球コマンド出力カウンタの下位アドレスをポインタバッファの下位バイトにロードする(ステップS5107)。次いで、CPU56は、ポインタの値を1増やし(ステップS5108)、レジスタにロードしたスイッチオンバッファの内容と、ポインタが指す賞球指定データとの論理積をとる(ステップS5109)。   Next, the CPU 56 increments the pointer value by 1 (step S5103), loads the lower address of the switch-on buffer pointed to by the pointer into the lower byte of the pointer buffer (step S5104), and loads the switch-on buffer pointed by the pointer buffer into the register. (Step S5105). Next, the CPU 56 increments the value of the pointer by 1 (step S5106), and loads the lower address of the prize ball command output counter pointed to by the pointer into the lower byte of the pointer buffer (step S5107). Next, the CPU 56 increments the value of the pointer by 1 (step S5108), and calculates the logical product of the contents of the switch-on buffer loaded in the register and the prize ball designation data pointed to by the pointer (step S5109).

ステップS5109における演算結果が0であれば(ステップS5110のY)、すなわち、検査対象のスイッチの検出信号がオン状態でなければ、処理数を1減らし(ステップS5114)、処理数が0であれば処理を終了し、処理数が0でなければステップS5103に戻る(ステップS5115)。   If the calculation result in step S5109 is 0 (Y in step S5110), that is, if the detection signal of the switch to be inspected is not on, the number of processes is reduced by 1 (step S5114), and if the number of processes is 0 The process ends, and if the number of processes is not 0, the process returns to step S5103 (step S5115).

ステップS5109における演算結果が0でなければ(ステップS5110のN)、すなわち、検査対象のスイッチの検出信号がオン状態であれば、CPU56は、ポインタが指す賞球コマンド出力カウンタの値を1加算する(ステップS111)。ただし、CPU56は、加算の結果、賞球コマンド出力カウンタの値に桁上げが発生した場合には、賞球コマンド出力カウンタの値を1減算し元に戻す(ステップS5112,S5113)。そしてステップS5113の処理に移行する。   If the calculation result in step S5109 is not 0 (N in step S5110), that is, if the detection signal of the switch to be inspected is on, the CPU 56 adds 1 to the value of the prize ball command output counter pointed to by the pointer. (Step S111). However, when a carry occurs in the value of the prize ball command output counter as a result of the addition, the CPU 56 subtracts 1 from the value of the prize ball command output counter and restores the original value (steps S5112, S5113). Then, the process proceeds to step S5113.

図27は、ステップS502の賞球制御処理を示すフローチャートである。賞球制御処理では、遊技制御用マイクロコンピュータ560(具体的には、CPU56)は、賞球プロセスコードの値に応じて、ステップS521〜S525のいずれかの処理を実行する。   FIG. 27 is a flowchart showing the prize ball control process in step S502. In the prize ball control process, the game control microcomputer 560 (specifically, the CPU 56) executes any one of steps S521 to S525 in accordance with the value of the prize ball process code.

図28は、賞球プロセスコードの値が0の場合に実行される賞球送信処理1(ステップS521)を示すフローチャートである。CPU56は、賞球送信処理1において、接続確認コマンドを払出制御用マイクロコンピュータに送信する制御を行う(ステップS5211)。具体的には、CPU56は、シリアル通信回路505の送信データレジスタに接続確認コマンドを出力する処理を行う。そして、CPU56は、賞球プロセスコードに賞球接続確認処理を示す値「1」をセットし(ステップS5212)、賞球プロセスタイマに接続確認時間2(例えば10秒)をセットする(ステップS5213)。   FIG. 28 is a flowchart showing the prize ball transmission process 1 (step S521) executed when the value of the prize ball process code is zero. In the prize ball transmission process 1, the CPU 56 performs control to transmit a connection confirmation command to the payout control microcomputer (step S5211). Specifically, the CPU 56 performs processing for outputting a connection confirmation command to the transmission data register of the serial communication circuit 505. Then, the CPU 56 sets a value “1” indicating a prize ball connection confirmation process in the prize ball process code (step S5212), and sets a connection confirmation time 2 (for example, 10 seconds) in the prize ball process timer (step S5213). .

なお、ステップS5213でセットされた接続確認時間2にもとづいて、接続確認コマンドを送信した後、10秒を経過しても接続OKコマンドを受信できなかった場合には、以後、接続確認コマンドを送信する間隔を10秒に広げるように制御される。具体的には、ステップS5213でセットされた賞球プロセスタイマは、後述するステップS5229の処理で計測され、接続OKコマンドを受信することなく10秒が経過してタイムアウトしステップS5227でYと判定されると、賞球送信処理1に戻り次の接続確認コマンドが送信される(ステップS5228,S5211参照)。   If a connection OK command is not received even after 10 seconds have elapsed after transmitting the connection confirmation command based on the connection confirmation time 2 set in step S5213, the connection confirmation command is transmitted thereafter. It is controlled so as to extend the interval to 10 seconds. Specifically, the prize ball process timer set in step S5213 is measured in the process of step S5229, which will be described later, 10 seconds elapses without receiving a connection OK command, and the determination is Y in step S5227. Then, it returns to the prize ball transmission process 1 and the next connection confirmation command is transmitted (see steps S5228 and S5211).

なお、賞球プロセスタイマには、遊技制御用マイクロコンピュータ560で実行されるタイマ割込処理における割込周期も考慮した値(例えば、割込周期の整数倍)がセットされる。このことは、遊技制御用マイクロコンピュータ560や、払出制御用マイクロコンピュータ370、演出制御用マイクロコンピュータ100で用いられる他のタイマ(例えば、主制御通信制御タイマや、払出制御タイマ、再払出待ちタイマ、賞球情報出力タイマ、賞球信号出力タイマ)についても同様である。   The prize ball process timer is set to a value (for example, an integer multiple of the interrupt period) in consideration of the interrupt period in the timer interrupt process executed by the game control microcomputer 560. This is because other timers used in the game control microcomputer 560, the payout control microcomputer 370, and the effect control microcomputer 100 (for example, a main control communication control timer, a payout control timer, a re-payout waiting timer, The same applies to the prize ball information output timer and prize ball signal output timer.

図29は、賞球プロセスコードの値が1の場合に実行される賞球接続確認処理(ステップS522)を示すフローチャートである。CPU56は、賞球接続確認処理において、まず、シリアル通信回路505の受信データレジスタにデータがあるか否かを確認する(ステップS5221)。例えば、CPU56は、シリアル通信回路505のステータスレジスタのビット5(RDRF)の値を確認する。受信データレジスタにデータがなければ(すなわち、コマンドを受信していなければ)、ステップS5227に移行する。   FIG. 29 is a flowchart showing a prize ball connection confirmation process (step S522) executed when the value of the prize ball process code is 1. In the winning ball connection confirmation process, the CPU 56 first confirms whether there is data in the reception data register of the serial communication circuit 505 (step S5221). For example, the CPU 56 checks the value of bit 5 (RDRF) of the status register of the serial communication circuit 505. If there is no data in the reception data register (that is, if no command is received), the process proceeds to step S5227.

受信データレジスタにデータがあれば(すなわち、コマンドを受信していれば)、CPU56は、シリアル通信回路505のエラーが発生しているか否かを確認する(ステップS5222)。例えば、CPU56は、シリアル通信回路505のステータスレジスタのビット0〜4のいずれかのエラービットの値がセットされているか否かを確認する。エラーが発生していれば、CPU56は、シリアル通信回路505の受信データレジスタからデータを読み出し(ステップS5222A)、ステップS5227に移行する。なお、ステップS5222Aでデータが読み出されることによって、シリアル通信回路505の受信データレジスタの内容がクリアされるとともに、ステータスレジスタのビット5がクリアされる。ただし、ステップS5222Aで読み出された受信データは、そのまま破棄される。すなわち、この実施の形態において、ステップS5222Aで読み出された受信データは、CPU56によってシリアル通信回路505の受信データレジスタから読みされてCPU56のレジスタに書き込まれるだけで、RAM55に書き込まれることはなく、その後の何らかの処理に用いられることはない。なお、このことは、この実施の形態において、受信データレジスタから受信データを読み出すことによってデータを破棄する他の処理についても同様である。   If there is data in the reception data register (that is, if a command is received), the CPU 56 checks whether an error has occurred in the serial communication circuit 505 (step S5222). For example, the CPU 56 confirms whether or not the error bit value of any one of bits 0 to 4 of the status register of the serial communication circuit 505 is set. If an error has occurred, the CPU 56 reads data from the reception data register of the serial communication circuit 505 (step S5222A), and proceeds to step S5227. Note that reading the data in step S5222A clears the contents of the received data register of the serial communication circuit 505 and clears bit 5 of the status register. However, the received data read in step S5222A is discarded as it is. In other words, in this embodiment, the reception data read in step S5222A is read from the reception data register of the serial communication circuit 505 by the CPU 56 and written to the register of the CPU 56, and is not written to the RAM 55. It is not used for any subsequent processing. This also applies to other processes for discarding data by reading received data from the received data register in this embodiment.

なお、ステップS5222Aで受信データを読み出した後、CPU56は、次のコマンドを受信するまでステップS5221でNと判定し、コマンドを受信することなくステップS5213でセットした10秒が経過するとステップS5227で賞球プロセスタイマがタイムアウトする。そして、賞球送信処理1に移行し(ステップS5228参照)、再び接続確認コマンドが送信されることになる(ステップS5211参照)。   After reading the received data in step S5222A, the CPU 56 determines N in step S5221 until the next command is received, and when 10 seconds set in step S5213 have elapsed without receiving the command, the award is received in step S5227. The ball process timer times out. Then, the process proceeds to the prize ball transmission process 1 (see step S5228), and the connection confirmation command is transmitted again (see step S5211).

シリアル通信回路505のエラーも発生していなければ、CPU56は、シリアル通信回路505の受信データレジスタからコマンドを読み出し、受信したコマンドが接続OKコマンドであるか否かを確認する(ステップS5223)。接続OKコマンドでなければ、ステップS5227に移行する。   If no error has occurred in the serial communication circuit 505, the CPU 56 reads the command from the reception data register of the serial communication circuit 505, and checks whether the received command is a connection OK command (step S5223). If it is not a connection OK command, the process proceeds to step S5227.

接続OKコマンドを受信していれば、CPU56は、接続OKコマンドの下位4ビットに設定されているエラー情報(図19参照)を枠状態表示バッファに格納する(ステップS5224)。   If the connection OK command has been received, the CPU 56 stores the error information (see FIG. 19) set in the lower 4 bits of the connection OK command in the frame state display buffer (step S5224).

次いで、CPU56は、賞球プロセスコードに賞球送信処理2を示す値「2」をセットし(ステップS5225)、賞球プロセスタイマに接続確認時間1(例えば1秒)をセットする(ステップS5226)。なお、ステップS5226でセットされた接続確認時間1にもとづいて、接続OKコマンドの受信後に1秒経過するごとに次の接続確認コマンドを繰り返し送信する制御が行われる。具体的には、ステップS5226でセットされた賞球プロセスタイマは、後述するステップS52315の処理で計測され、賞球個数コマンドを送信することなく1秒が経過してタイムアウトしステップS52313でYと判定されると、賞球送信処理1に戻り次の接続確認コマンドが送信される(ステップS52314,S5211参照)。   Next, the CPU 56 sets a value “2” indicating the prize ball transmission process 2 in the prize ball process code (step S5225), and sets a connection confirmation time 1 (for example, 1 second) in the prize ball process timer (step S5226). . Note that, based on the connection confirmation time 1 set in step S5226, control is performed to repeatedly transmit the next connection confirmation command every time one second elapses after reception of the connection OK command. Specifically, the prize ball process timer set in step S5226 is measured in the process of step S52315 described later, and a timeout occurs after 1 second has passed without sending a prize ball number command, and it is determined as Y in step S52313. Then, the process returns to the prize ball transmission process 1 and the next connection confirmation command is transmitted (see steps S52314 and S5211).

よって、払出制御用マイクロコンピュータ370による払出制御の実行の終了後、新たな接続確認信号を出力するまでの間にインターバル期間が設けられることになり、払出制御用マイクロコンピュータ370において、払出制御の実行の終了時における処理が集中して新たな接続確認信号の取りこぼし等が発生することを防止することができる。   Therefore, an interval period is provided between the end of the execution of the payout control by the payout control microcomputer 370 and the output of a new connection confirmation signal. The payout control microcomputer 370 executes the payout control. It is possible to prevent the processing at the end of the process from being concentrated and a new connection confirmation signal from being lost.

ステップS5227では、CPU56は、賞球プロセスタイマがタイムアウトしたか否かを確認する。賞球プロセスタイマがタイムアウトしていれば(すなわち、接続確認コマンドを送信した後、10秒を経過しても接続OKコマンドを受信できなかった場合)、CPU56は、賞球プロセスコードに賞球送信処理1を示す値「0」をセットし(ステップS5228)、処理を終了する。賞球プロセスタイマがタイムアウトしていなければ、CPU56は、賞球プロセスタイマの値を1減算する(ステップS5229)。   In step S5227, the CPU 56 checks whether or not the prize ball process timer has timed out. If the winning ball process timer has timed out (that is, if the connection OK command has not been received even after 10 seconds have passed after sending the connection confirmation command), the CPU 56 sends a winning ball to the winning ball process code. A value “0” indicating the process 1 is set (step S5228), and the process ends. If the winning ball process timer has not timed out, the CPU 56 subtracts 1 from the value of the winning ball process timer (step S5229).

図30は、賞球プロセスコードの値が2の場合に実行される賞球送信処理2(ステップS523)を示すフローチャートである。CPU56は、賞球送信処理2において、賞球コマンド出力カウンタ1〜4の中にカウント値が0でないものがあるか否かを確認する(ステップS52301)。カウント値が0でないものがなければ、ステップS52313に移行する。   FIG. 30 is a flowchart showing the prize ball transmission process 2 (step S523) executed when the value of the prize ball process code is 2. In the prize ball transmission process 2, the CPU 56 checks whether or not any prize ball command output counters 1 to 4 have a count value other than 0 (step S52301). If there is no count value other than 0, the process proceeds to step S52313.

賞球コマンド出力カウンタ1〜4の中にカウント値が0でないものがある場合には(すなわち、カウント値が1以上のものがある場合には)、CPU56は、枠状態表示バッファの内容をロードし、枠状態表示バッファの内容が0であるか否かを確認する(ステップS52302)。枠状態表示バッファの内容が0でなければ、そのまま処理を終了する。そのように制御することによって、エラー情報が設定された接続OKコマンドを受信し、払出制御用マイクロコンピュータ370側で払出停止状態に制御されている場合には、ステップS52303以降の処理に移行しないようし、賞球個数コマンドの送信を保留するように制御する。   If any of the prize ball command output counters 1 to 4 has a count value other than 0 (that is, if the count value is 1 or more), the CPU 56 loads the contents of the frame state display buffer. Then, it is confirmed whether or not the content of the frame state display buffer is 0 (step S5232). If the content of the frame state display buffer is not 0, the processing is terminated as it is. By performing such control, when the connection OK command in which the error information is set is received and the payout control microcomputer 370 is controlled to be in the payout stop state, the process does not proceed to step S52303 and subsequent steps. Then, control is made so that transmission of the prize ball number command is suspended.

枠状態表示バッファの内容が0であれば(すなわち、払出に関するエラーが発生していなければ)、払出制御用CPU371は、そのカウント値が0でない賞球コマンド出力カウンタに対応する賞球個数を個数バッファにセットする(ステップS52303)。具体的には、ステップS52301において、CPU56は、まず、賞球コマンド出力カウンタ1のカウント値が0であるか否かを確認する。そして、賞球コマンド出力カウンタ1のカウント値が1以上であった場合には、ステップS52303において、CPU56は、個数バッファに賞球個数15個をセットする。また、ステップS52301において、CPU56は、賞球コマンド出力カウンタ1のカウント値が0であった場合には、賞球コマンド出力カウンタ2,3のカウント値が0であるか否かを確認する。そして、賞球コマンド出力カウンタ2,3のカウント値が1以上であった場合には、ステップS52303において、CPU56は、個数バッファに賞球個数10個をセットする。さらに、ステップS52301において、CPU56は、賞球コマンド出力カウンタ2,3のカウント値も0であった場合には、賞球コマンド出力カウンタ4のカウント値が0であるか否かを確認する。そして、賞球コマンド出力カウンタ4のカウント値が1以上であった場合には、ステップS52303において、CPU56は、個数バッファに賞球個数3個をセットする。   If the content of the frame state display buffer is 0 (that is, if no error relating to payout has occurred), the payout control CPU 371 determines the number of prize balls corresponding to the prize ball command output counter whose count value is not 0. It is set in the buffer (step S52303). Specifically, in step S52301, the CPU 56 first checks whether or not the count value of the prize ball command output counter 1 is zero. If the count value of the prize ball command output counter 1 is 1 or more, in step S52303, the CPU 56 sets 15 prize balls in the number buffer. In step S52301, if the count value of the prize ball command output counter 1 is 0, the CPU 56 checks whether the count values of the prize ball command output counters 2 and 3 are 0 or not. If the count value of the prize ball command output counters 2 and 3 is 1 or more, the CPU 56 sets the number of prize balls in the number buffer in step S52303. In step S52301, if the count value of the prize ball command output counters 2 and 3 is also 0, the CPU 56 checks whether the count value of the prize ball command output counter 4 is 0 or not. If the count value of the prize ball command output counter 4 is 1 or more, in step S52303, the CPU 56 sets the number of prize balls to 3 in the number buffer.

また、CPU56は、そのカウント値が0でない賞球コマンド出力カウンタに対応する賞球個数を賞球個数コマンドにセットする(ステップS52304)とともに、賞球個数をセットした賞球個数コマンドを払出制御用マイクロコンピュータ370に送信する制御を行う(ステップS52305)。具体的には、CPU56は、シリアル通信回路505の送信データレジスタに、賞球個数をセットした賞球個数コマンドを出力する処理を行う。   In addition, the CPU 56 sets the number of prize balls corresponding to the prize ball command output counter whose count value is not 0 in the prize ball number command (step S52304), and uses the prize ball number command in which the number of prize balls is set for payout control. Control to transmit to the microcomputer 370 is performed (step S52305). Specifically, the CPU 56 performs processing for outputting a prize ball number command in which the number of prize balls is set to the transmission data register of the serial communication circuit 505.

なお、ステップS52301,S52305の処理が実行されることによって、この実施の形態では、接続確認コマンドの送信タイミングにかかわりなく、賞球コマンド出力カウンタの中にカウント値が0でないものがあれば(すなわち、賞球個数記憶があり、所定の払出条件が成立していれば)、賞球個数コマンドが払出制御用マイクロコンピュータ370に送信される。   By executing the processing of steps S52301 and S52305, in this embodiment, if there is a prize ball command output counter whose count value is not 0 regardless of the connection confirmation command transmission timing (ie, If there is a prize ball number storage and a predetermined payout condition is established), a prize ball number command is transmitted to the payout control microcomputer 370.

そして、CPU56は、賞球プロセスコードに賞球受領確認処理を示す値「3」をセットし(ステップS52306)、賞球プロセスタイマに接続確認時間2(例えば10秒)をセットする(ステップS52307)。なお、ステップS52307でセットされた接続確認時間2にもとづいて、賞球個数コマンドを送信した後、10秒以内に賞球個数受付コマンドや賞球準備中コマンドを受信したか否かが確認される。具体的には、ステップS52307でセットされた賞球プロセスタイマは、後述するステップS52411の処理で計測され、賞球個数受付コマンドや賞球準備中コマンドを受信することなく10秒が経過してタイムアウトしステップS52409でYと判定されると、賞球送信処理1に戻り次の接続確認コマンドが送信される(ステップS52410,S5211参照)。   Then, the CPU 56 sets a value “3” indicating the prize ball reception confirmation process in the prize ball process code (step S52306), and sets a connection confirmation time 2 (for example, 10 seconds) in the prize ball process timer (step S52307). . It should be noted that, based on the connection confirmation time 2 set in step S52307, after transmitting the prize ball number command, it is confirmed whether a prize ball number acceptance command or a prize ball preparation command is received within 10 seconds. . Specifically, the prize ball process timer set in step S52307 is measured in the process of step S52411 to be described later, and 10 seconds elapses without receiving a prize ball number acceptance command or a prize ball preparation command. If it is determined as Y in step S52409, the process returns to the prize ball transmission process 1 and the next connection confirmation command is transmitted (see steps S52410 and S5211).

なお、ステップS52306の処理が実行されることによってステップS52305で賞球個数コマンドが送信されると、接続確認コマンドの送信処理を含む賞球送信処理1に戻ることなく、賞球受領確認処理に移行される。従って、この実施の形態では、賞球個数コマンドを送信するまでは所定時間(例えば1秒)ごとに繰り返し接続確認コマンドを送信する処理が実行されているのであるが、賞球個数コマンドを送信したことにもとづいて接続確認コマンドを送信する制御が停止される(より具体的には、賞球個数コマンドを送信した後、後述する賞球個数受付コマンドを受信したことにより賞球終了確認処理に移行する(ステップS52403〜S52405参照)ことによって、または賞球準備中コマンドを受信したことにより賞球受領確認処理を繰り返す(ステップS52406〜S52408参照)ことによって、賞球送信処理1に戻ることなく、接続確認コマンドを送信する制御が停止される。この場合、払出制御用マイクロコンピュータ370側から何も払出制御コマンドが返信されないという異常状態が発生しない限り、賞球個数コマンドを送信した後、賞球払出動作を終了して賞球終了コマンドを受信するまで、遊技制御用マイクロコンピュータ560から接続確認コマンドが送信されることはない。   If the prize ball number command is transmitted in step S52305 by executing the process of step S52306, the process proceeds to the prize ball reception confirmation process without returning to the prize ball transmission process 1 including the connection confirmation command transmission process. Is done. Therefore, in this embodiment, the process of repeatedly transmitting the connection confirmation command is executed every predetermined time (for example, 1 second) until the prize ball number command is transmitted, but the prize ball number command is transmitted. In particular, the control for transmitting the connection confirmation command is stopped (more specifically, after the prize ball number command is transmitted, the process proceeds to the prize ball end confirmation process by receiving the prize ball number acceptance command described later. (See steps S52403 to S52405) or by receiving the winning ball preparation command and repeating the winning ball receipt confirmation process (see steps S52406 to S52408), without returning to the winning ball transmission process 1 In this case, the control for sending the confirmation command is stopped. Unless an abnormal state occurs in which no payout control command is returned, after the prize ball number command is transmitted, the game control microcomputer 560 is connected until the prize ball payout operation is finished and the prize ball end command is received. A confirmation command is never sent.

次いで、CPU56は、ステップS52303でセットした個数バッファの値を賞球個数カウンタに加算し(ステップS52308)、加算後のカウント値が所定の賞球不足判定値(例えば501)以上であるか否かを確認する(ステップS52309)。この実施の形態において、賞球個数カウンタは、遊技制御用マイクロコンピュータ560側で未払い出しの賞球数を把握するために用いられるカウンタであり、賞球個数コマンドを送信する際に賞球個数コマンドで指定される賞球個数が加算され、賞球払出を10球検出するごとに払出制御用マイクロコンピュータ370から出力される賞球情報にもとづいて10ずつ減算される。また、前述したように、賞球個数カウンタには、メイン処理の初期設定処理において初期値として「250」がセットされている。そして、賞球個数カウンタのカウント値が所定の賞球不足判定値(例えば501)以上に達する場合には、未払い出しの賞球数が異常に多すぎるのであるから、賞球不足の事態が生じていると判定することができる。また、賞球個数カウンタのカウント値が所定の賞球過剰判定値(例えば0)未満となった場合には、本来払い出されるべき数を越えて異常に多くの遊技球が払い出されているのであるから、賞球過剰の事態が生じていると判定することができる。   Next, the CPU 56 adds the value of the number buffer set in step S52303 to the prize ball number counter (step S52308), and whether or not the added count value is equal to or greater than a predetermined prize ball shortage determination value (eg, 501). Is confirmed (step S52309). In this embodiment, the prize ball number counter is a counter used for grasping the number of prize balls that have not been paid out on the game control microcomputer 560 side, and when the prize ball number command is transmitted, The number of prize balls designated in (1) is added, and every time ten prize balls are paid out, 10 is subtracted based on the prize ball information output from the payout control microcomputer 370. Further, as described above, the prize ball number counter is set to “250” as an initial value in the initial setting process of the main process. When the count value of the prize ball counter reaches a predetermined prize ball shortage determination value (for example, 501) or more, the number of prize balls that have not been paid out is excessively large. Can be determined. Further, when the count value of the prize ball number counter is less than a predetermined prize ball excess determination value (for example, 0), an abnormally large number of game balls are paid out exceeding the number to be paid out originally. Therefore, it can be determined that an excessive number of prize balls has occurred.

遊技制御用マイクロコンピュータ560と払出制御用マイクロコンピュータ370との間の通信を妨害することによる不正行為(例えば、払出制御用マイクロコンピュータ370から送信されるデータが遊技制御用マイクロコンピュータ560に受信されないようにすることによって、遊技制御用マイクロコンピュータ560を賞球個数受付コマンド受信待ちタイムアウトの状態にして賞球個数コマンドを再送させる。)を効果的に防止することができる。   Unauthorized acts caused by obstructing communication between the game control microcomputer 560 and the payout control microcomputer 370 (for example, the game control microcomputer 560 may not receive data transmitted from the payout control microcomputer 370) In this way, it is possible to effectively prevent the game control microcomputer 560 from being in a state of waiting for receiving a winning ball number reception command and causing the winning ball number command to be retransmitted).

なお、この実施の形態では、賞球個数コマンドを送信(ステップS52305参照)した直後に、賞球個数カウンタの加算処理(ステップS52308参照)する場合を示しているが、賞球個数コマンドが送信されるタイミングで加算するものであれば、例えば、まず賞球個数カウンタの加算処理を実行してから、その直後に賞球個数コマンドを送信するようにしてもよい。   In this embodiment, the prize ball number counter is added (see step S52308) immediately after the prize ball number command is transmitted (see step S52305). However, the prize ball number command is transmitted. For example, a prize ball number command may be transmitted immediately after the addition process of the prize ball number counter is executed.

また、賞球不足と判定される場合には、払出制御用マイクロコンピュータ370側に何らかの障害が生じて払出動作を正常に行えない場合の他、賞球情報を出力する信号線が断線している場合も考えられる。また、逆に、賞球過剰と判定される場合には、払出制御用マイクロコンピュータ370側に何らかの障害が生じて払出動作が必要以上に行われている場合の他、賞球個数コマンドを送信するコマンド線に何らかの不正が施されて不正に賞球個数コマンドが払出制御用マイクロコンピュータ370に入力されている場合も考えられる。   When it is determined that there is a shortage of prize balls, the signal line for outputting the prize ball information is disconnected in addition to the case where some trouble occurs on the payout control microcomputer 370 side and the payout operation cannot be performed normally. Cases are also conceivable. On the other hand, when it is determined that the number of prize balls is excessive, a prize ball number command is transmitted in addition to the case where some kind of trouble occurs on the payout control microcomputer 370 side and the payout operation is performed more than necessary. It is also conceivable that some injustice is applied to the command line and the award ball number command is illegally input to the payout control microcomputer 370.

賞球個数カウンタのカウント値が所定の賞球不足判定値(例えば501)以上であった場合には、CPU56は、賞球不足や賞球過剰が発生していることを示す賞球エラーフラグが既にセットされているか否かを確認する(ステップS52310)。既に賞球エラーフラグがセットされていれば、そのまま処理を終了する。賞球エラーフラグがセットされていなければ、CPU56は、賞球エラーフラグをセットする(ステップS52311)とともに、賞球不足エラーコマンドを演出制御用マイクロコンピュータ100に送信する制御を行う(ステップS52312)。具体的には、CPU56は、賞球不足エラーコマンド送信テーブルのアドレスをポインタにセットする処理を行う。そして、ステップS52312で賞球不足エラーコマンド送信テーブルのアドレスがポインタにセットされたことにもとづいて、その後、ステップS24のコマンド制御処理において、演出制御基板80との送受信用チャネルのシリアル通信回路505の送信データレジスタに賞球不足エラーコマンドが出力され、賞球不足エラーコマンドが演出制御用マイクロコンピュータ100に送信される。なお、賞球エラーフラグは、一度セットされると、遊技機への電力供給が停止された後、遊技機へ電源が再投入されるまで、クリアされずに維持される。また、この実施の形態では、遊技制御用マイクロコンピュータ560と演出制御用マイクロコンピュータ100との間の通信に関しては、遊技制御用マイクロコンピュータ560から演出制御用マイクロコンピュータ100に対してコマンドが送信されるのみで、その逆はない。そのため、遊技制御用マイクロコンピュータ560には、演出制御用マイクロコンピュータ100との通信に関しては、送信専用のシリアル通信回路が搭載されていてもよい。   When the count value of the prize ball number counter is equal to or greater than a predetermined prize ball shortage determination value (for example, 501), the CPU 56 displays a prize ball error flag indicating that a prize ball shortage or a prize ball excess has occurred. It is confirmed whether it has already been set (step S52310). If the prize ball error flag has already been set, the process is terminated. If the prize ball error flag is not set, the CPU 56 sets a prize ball error flag (step S52311) and controls to send a prize ball shortage error command to the effect control microcomputer 100 (step S52312). Specifically, the CPU 56 performs a process of setting the address of the winning ball shortage error command transmission table as a pointer. Then, based on the fact that the address of the winning ball shortage error command transmission table is set in the pointer in step S52312, in the command control processing in step S24, the serial communication circuit 505 of the channel for transmission / reception with the effect control board 80 is performed. A prize ball shortage error command is output to the transmission data register, and the prize ball shortage error command is transmitted to the production control microcomputer 100. Note that once the prize ball error flag is set, it is maintained without being cleared until the power supply to the gaming machine is turned on again after the power supply to the gaming machine is stopped. In this embodiment, regarding the communication between the game control microcomputer 560 and the effect control microcomputer 100, a command is transmitted from the game control microcomputer 560 to the effect control microcomputer 100. Only, not the other way around. Therefore, the game control microcomputer 560 may be equipped with a transmission-only serial communication circuit for communication with the effect control microcomputer 100.

なお、この実施の形態では、賞球不足エラーコマンドや、賞球過剰エラーコマンドを受信したことにもとづいて、演出制御用マイクロコンピュータ100によって賞球不足や賞球過剰のエラー報知が行われるのであるが、賞球不足や賞球過剰のエラー報知は、報知開始から所定期間を経過したときに復旧するようにしてもよい。また、例えば、賞球個数カウンタの値が所定の賞球不足判定値(例えば501)や所定の賞球過剰判定値(例えば0)の範囲内に復帰したときに、賞球不足や賞球過剰のエラー報知から復旧するようにしてもよい。   In this embodiment, based on the reception of a prize ball shortage error command or a prize ball excess error command, the effect control microcomputer 100 issues a prize ball shortage or prize ball excess error notification. However, error notification of insufficient prize balls or excessive prize balls may be recovered when a predetermined period has elapsed since the start of notification. Further, for example, when the value of the prize ball number counter returns to a range of a predetermined prize ball shortage determination value (for example, 501) or a predetermined prize ball excess determination value (for example, 0), the prize ball shortage or the prize ball is excessive. It is also possible to recover from the error notification.

なお、この実施の形態では、ステップS52308において、賞球個数コマンドを送信したタイミングで賞球個数カウンタに賞球個数を加算する場合を示したが、賞球個数カウンタのカウントアップの仕方は、この実施の形態で示したものにかぎらず、例えば、逆に賞球個数を減算するようにしてもよい。この場合、例えば、後述するステップS5311の処理において、賞球情報を入力したことにもとづいて賞球個数カウンタの値に逆に10加算するようにすればよい。そして、ステップS52309の処理では賞球個数カウンタの値が0未満であれば賞球不足エラーと判定するようにし、後述するステップS5312の処理では賞球個数カウンタの値が501以上であれば賞球過剰エラーと判定するようにすればよい。   In this embodiment, the case where the prize ball number is added to the prize ball number counter at the timing at which the prize ball number command is transmitted in step S52308 is shown. For example, the number of prize balls may be subtracted instead of the one shown in the embodiment. In this case, for example, in the process of step S5311 to be described later, on the contrary, 10 may be added to the value of the winning ball counter based on the input of winning ball information. In the process of step S52309, if the value of the prize ball number counter is less than 0, it is determined that there is a prize ball shortage error. What is necessary is just to determine with an excess error.

ステップS52313では、CPU56は、賞球プロセスタイマがタイムアウトしたか否かを確認する。賞球プロセスタイマがタイムアウトしていれば(すなわち、接続OKコマンドを受信した後、1秒を経過するまでに、賞球個数の記憶もなく、新たな入賞も発生しなかった場合)、CPU56は、賞球プロセスコードに賞球送信処理1を示す値「0」をセットし(ステップS52314)、処理を終了する。賞球プロセスタイマがタイムアウトしていなければ、CPU56は、賞球プロセスタイマの値を1減算する(ステップS52315)。   In step S52313, the CPU 56 checks whether or not the prize ball process timer has timed out. If the winning ball process timer has timed out (that is, if no winning ball has been stored and no new winning has occurred by the time one second has elapsed after receiving the connection OK command), the CPU 56 Then, the value “0” indicating the prize ball transmission process 1 is set in the prize ball process code (step S52314), and the process ends. If the winning ball process timer has not timed out, the CPU 56 subtracts 1 from the value of the winning ball process timer (step S52315).

図31は、賞球プロセスコードの値が3の場合に実行される賞球受領確認処理(ステップS524)を示すフローチャートである。CPU56は、賞球受領確認処理において、まず、シリアル通信回路505の受信データレジスタにデータがあるか否かを確認する(ステップS52401)。具体的には、CPU56は、シリアル通信回路505のステータスレジスタのビット5の値を確認するようにすればよい。受信データレジスタにデータがなければ(すなわち、コマンドを受信していなければ)、ステップS52409に移行する。   FIG. 31 is a flowchart showing the winning ball reception confirmation process (step S524) executed when the value of the winning ball process code is 3. In the winning ball receipt confirmation process, the CPU 56 first checks whether or not there is data in the reception data register of the serial communication circuit 505 (step S52401). Specifically, the CPU 56 may confirm the value of bit 5 of the status register of the serial communication circuit 505. If there is no data in the reception data register (that is, if no command is received), the process proceeds to step S52409.

受信データレジスタにデータがあれば(すなわち、コマンドを受信していれば)、CPU56は、シリアル通信回路505のエラーが発生しているか否かを確認する(ステップS52402)。具体的には、CPU56は、シリアル通信回路505のステータスレジスタのビット0〜4のいずれかのエラービットの値がセットされているか否かを確認するようにすればよい。エラーが発生していれば、CPU56は、シリアル通信回路505の受信データレジスタからデータを読み出し(ステップS52402A)、ステップS52409に移行する。なお、ステップS52402Aでデータが読み出されることによって、シリアル通信回路505の受信データレジスタの内容がクリアされるとともに、ステータスレジスタのビット5がクリアされる。ただし、ステップS52402Aで読み出された受信データは、そのまま破棄される。すなわち、この実施の形態において、ステップS52402Aで読み出された受信データは、CPU56によってシリアル通信回路505の受信データレジスタから読みされてCPU56のレジスタに書き込まれるだけで、RAM55に書き込まれることはなく、その後の何らかの処理に用いられることはない。   If there is data in the reception data register (that is, if a command is received), the CPU 56 checks whether or not an error has occurred in the serial communication circuit 505 (step S52402). Specifically, the CPU 56 may confirm whether or not any error bit value of bits 0 to 4 of the status register of the serial communication circuit 505 is set. If an error has occurred, the CPU 56 reads data from the reception data register of the serial communication circuit 505 (step S52402A), and proceeds to step S52409. Note that reading the data in step S52402A clears the contents of the received data register of the serial communication circuit 505 and clears bit 5 of the status register. However, the received data read in step S52402A is discarded as it is. That is, in this embodiment, the received data read in step S52402A is read from the received data register of the serial communication circuit 505 by the CPU 56 and written to the register of the CPU 56, but not written to the RAM 55. It is not used for any subsequent processing.

なお、ステップS52402Aで受信データを読み出した後、CPU56は、次のコマンドを受信するまでステップS52401でNと判定し、コマンドを受信することなくステップS52307でセットした10秒が経過するとステップS52409で賞球プロセスタイマがタイムアウトする。そして、賞球送信処理1に移行し(ステップS52410参照)、再び接続確認コマンドが送信されることになる(ステップS5211参照)。   After reading the received data in step S52402A, the CPU 56 determines N in step S52401 until the next command is received, and when 10 seconds set in step S52307 have elapsed without receiving the command, the award is received in step S52409. The ball process timer times out. Then, the process proceeds to prize ball transmission processing 1 (see step S52410), and the connection confirmation command is transmitted again (see step S5211).

シリアル通信回路505のエラーも発生していなければ、CPU56は、シリアル通信回路505の受信データレジスタからコマンドを読み出し、受信したコマンドが賞球個数受付コマンドであるか否かを確認する(ステップS52403)。賞球個数受付コマンドを受信していれば、CPU56は、送信した賞球個数コマンドで設定した賞球個数に対応する賞球コマンド出力カウンタの値を1減算する(ステップS52404)。また、CPU56は、賞球プロセスコードに賞球終了確認処理を示す値「4」をセットし(ステップS52405)、ステップS52408に移行する。   If no error has occurred in the serial communication circuit 505, the CPU 56 reads the command from the reception data register of the serial communication circuit 505, and checks whether or not the received command is a prize ball number acceptance command (step S52403). . If the winning ball number reception command has been received, the CPU 56 subtracts 1 from the value of the winning ball command output counter corresponding to the winning ball number set by the transmitted winning ball number command (step S52404). In addition, the CPU 56 sets a value “4” indicating a prize ball end confirmation process in the prize ball process code (step S52405), and proceeds to step S52408.

受信したコマンドが賞球個数受付コマンドでなければ、CPU56は、受信したコマンドが賞球準備中コマンドであるか否かを確認する(ステップS52406)。賞球準備中コマンドでもなければ、ステップS52409に移行する。   If the received command is not a prize ball number acceptance command, the CPU 56 checks whether or not the received command is a prize ball preparation command (step S52406). If it is not a prize ball preparation command, the process advances to step S52409.

賞球準備中コマンドを受信していれば、CPU56は、賞球準備中コマンドの下位4ビットに設定されているエラー情報(図25参照)を枠状態表示バッファに格納する(ステップS52407)。そして、CPU56は、賞球プロセスタイマに接続確認時間2(例えば10秒)をセットする(ステップS52408)。なお、ステップS52408でセットされた接続確認時間2にもとづいて、賞球準備中コマンドを受信した後、10秒を経過しても賞球個数受付コマンドも次の賞球準備中コマンドも受信できなかった場合には、接続確認コマンドを送信する制御に戻る。具体的には、ステップS52408でセットされた賞球プロセスタイマは、後述するステップS52409,S52411の処理で計測され、賞球個数受付コマンドや次の賞球準備中コマンドを受信することなく10秒が経過してタイムアウトしステップS52409でYと判定されると、賞球送信処理1に戻り次の接続確認コマンドが送信される(ステップS52410,S5211参照)。   If the winning ball preparation command has been received, the CPU 56 stores the error information (see FIG. 25) set in the lower 4 bits of the winning ball preparation command in the frame state display buffer (step S52407). Then, the CPU 56 sets the connection confirmation time 2 (for example, 10 seconds) in the prize ball process timer (step S52408). In addition, after receiving the prize ball preparation command based on the connection confirmation time 2 set in step S52408, neither the prize ball number acceptance command nor the next prize ball preparation command can be received after 10 seconds. If it is, the process returns to the control for transmitting the connection confirmation command. Specifically, the prize ball process timer set in step S52408 is measured in the processing of steps S52409 and S52411 described later, and 10 seconds are received without receiving a prize ball number acceptance command or a next prize ball preparation command. When the time-out occurs and it is determined as Y in step S52409, the process returns to the prize ball transmission process 1 and the next connection confirmation command is transmitted (see steps S52410 and S5211).

ステップS52409では、CPU56は、賞球プロセスタイマがタイムアウトしたか否かを確認する。賞球プロセスタイマがタイムアウトしていれば(すなわち、賞球個数コマンドを送信した後、10秒を経過しても賞球個数受付コマンドや賞球準備中コマンドを受信できなかった場合)、CPU56は、賞球プロセスコードに賞球送信処理1を示す値「0」をセットし(ステップS52410)、処理を終了する。賞球プロセスタイマがタイムアウトしていなければ、CPU56は、賞球プロセスタイマの値を1減算する(ステップS52411)。   In step S52409, the CPU 56 checks whether or not the prize ball process timer has timed out. If the prize ball process timer has timed out (that is, if no prize ball number acceptance command or prize ball preparation command is received after 10 seconds have passed since the prize ball number command was transmitted), the CPU 56 Then, the value “0” indicating the prize ball transmission process 1 is set in the prize ball process code (step S52410), and the process ends. If the winning ball process timer has not timed out, the CPU 56 subtracts 1 from the value of the winning ball process timer (step S52411).

図32は、賞球プロセスコードの値が4の場合に実行される賞球終了確認処理(ステップS525)を示すフローチャートである。CPU56は、賞球終了確認処理において、まず、シリアル通信回路505の受信データレジスタにデータがあるか否かを確認する(ステップS52501)。具体的には、CPU56は、シリアル通信回路505のステータスレジスタのビット5の値を確認するようにすればよい。受信データレジスタにデータがなければ(すなわち、コマンドを受信していなければ)、ステップS52509に移行する。   FIG. 32 is a flowchart showing the winning ball end confirmation process (step S525) executed when the value of the winning ball process code is 4. In the winning ball end confirmation process, the CPU 56 first confirms whether or not there is data in the reception data register of the serial communication circuit 505 (step S52501). Specifically, the CPU 56 may confirm the value of bit 5 of the status register of the serial communication circuit 505. If there is no data in the reception data register (that is, if no command is received), the process proceeds to step S52509.

受信データレジスタにデータがあれば(すなわち、コマンドを受信していれば)、CPU56は、シリアル通信回路505のエラーが発生しているか否かを確認する(ステップS52502)。具体的には、CPU56は、シリアル通信回路505のステータスレジスタのビット0〜4のいずれかのエラービットの値がセットされているか否かを確認するようにすればよい。エラーが発生していれば、CPU56は、シリアル通信回路505の受信データレジスタからデータを読み出し(ステップS52502A)、ステップS52509に移行する。なお、ステップS52502Aでデータが読み出されることによって、シリアル通信回路505の受信データレジスタの内容がクリアされるとともに、ステータスレジスタのビット5がクリアされる。ただし、ステップS52502Aで読み出された受信データは、そのまま破棄される。すなわち、この実施の形態において、ステップS52502Aで読み出された受信データは、CPU56によってシリアル通信回路505の受信データレジスタから読みされてCPU56のレジスタに書き込まれるだけで、RAM55に書き込まれることはなく、その後の何らかの処理に用いられることはない。   If there is data in the reception data register (that is, if a command is received), the CPU 56 checks whether or not an error has occurred in the serial communication circuit 505 (step S52502). Specifically, the CPU 56 may confirm whether or not any error bit value of bits 0 to 4 of the status register of the serial communication circuit 505 is set. If an error has occurred, the CPU 56 reads data from the reception data register of the serial communication circuit 505 (step S52502A), and proceeds to step S52509. Note that reading the data in step S52502A clears the contents of the reception data register of the serial communication circuit 505 and clears bit 5 of the status register. However, the received data read in step S52502A is discarded as it is. That is, in this embodiment, the received data read in step S52502A is read from the received data register of the serial communication circuit 505 by the CPU 56 and written to the register of the CPU 56, but not written to the RAM 55. It is not used for any subsequent processing.

なお、ステップS52502Aで受信データを読み出した後、CPU56は、次のコマンドを受信するまでステップS52501でNと判定し、コマンドを受信することなくステップS52408でセットした10秒が経過するとステップS52509で賞球プロセスタイマがタイムアウトする。そして、賞球送信処理1に移行し(ステップS52510参照)、再び接続確認コマンドが送信されることになる(ステップS5211参照)。   After reading the received data in step S52502A, the CPU 56 determines N in step S52501 until the next command is received, and when 10 seconds set in step S52408 have elapsed without receiving the command, the award is received in step S52509. The ball process timer times out. Then, the process shifts to prize ball transmission processing 1 (see step S52510), and the connection confirmation command is transmitted again (see step S5211).

遊技制御用マイクロコンピュータ560は、通信エラーが生ずると受信データを破棄するが、10秒経過毎の接続確認コマンドの送信を通信エラーの有無に関わらず実行するので、払出制御用マイクロコンピュータ370との間の通信に異常が発生した場合に誤ったデータにもとづいて処理を実行してしまうことを防止しつつ、通信が必要以上に停滞してしまうことによる不都合を防止することができる。また、制御を複雑にすることなく遊技制御用マイクロコンピュータ560は、払出制御用マイクロコンピュータ370側の制御状態を認識することができる。   The game control microcomputer 560 discards the received data when a communication error occurs, but transmits a connection confirmation command every 10 seconds regardless of the presence or absence of the communication error. It is possible to prevent inconvenience due to communication stagnating more than necessary while preventing processing from being executed based on erroneous data when an abnormality occurs in communication during the period. Further, the game control microcomputer 560 can recognize the control state of the payout control microcomputer 370 without complicating the control.

シリアル通信回路505のエラーも発生していなければ、CPU56は、シリアル通信回路505の受信データレジスタからコマンドを読み出し、受信したコマンドが賞球終了コマンドであるか否かを確認する(ステップS52503)。賞球終了コマンドを受信していれば、CPU56は、賞球プロセスコードに賞球送信処理2を示す値「2」をセットし(ステップS52504)、賞球プロセスタイマに接続確認時間1(例えば1秒)をセットする(ステップS52505)。なお、ステップS52505でセットされた接続確認時間1にもとづいて、賞球終了コマンドを受信した後、1秒を経過しても始動入賞が発生しなかった場合には、接続確認コマンドを送信する制御に戻る。具体的には、ステップS52505でセットされた賞球プロセスタイマは、ステップS52313,S52315の処理で計測され、新たな始動入賞が発生せず賞球個数コマンドを送信することなく1秒が経過してタイムアウトしステップS52313でYと判定されると、賞球送信処理1に戻り次の接続確認コマンドが送信される(ステップS52314,S5211参照)。   If no error has occurred in the serial communication circuit 505, the CPU 56 reads the command from the reception data register of the serial communication circuit 505, and checks whether the received command is a prize ball end command (step S52503). If the winning ball end command has been received, the CPU 56 sets a value “2” indicating the winning ball transmission process 2 in the winning ball process code (step S52504), and the connection check time 1 (for example, 1) is set in the winning ball process timer. Second) is set (step S52505). It should be noted that, based on the connection confirmation time 1 set in step S52505, the control for transmitting the connection confirmation command when the start winning prize does not occur even after one second has elapsed after receiving the prize ball end command. Return to. Specifically, the prize ball process timer set in step S52505 is measured by the processing in steps S52313 and S52315, and one second has elapsed without sending a prize ball number command without generating a new start prize. If the time-out occurs and it is determined as Y in step S52313, the process returns to the prize ball transmission process 1 and the next connection confirmation command is transmitted (see steps S52314 and S5211).

なお、ステップS52504の処理が実行されることによって、賞球終了コマンドを受信した場合にはまず賞球送信処理2に移行されるので、賞球個数の記憶が溜まっている場合には直ちに次の賞球個数コマンドが送信されるように制御される。一方で、賞球送信処理2に移行された後、賞球個数の記憶もなく、ステップS52505でセットされた接続確認時間1(例えば1秒)が経過するまでの間に新たな入賞も発生しなかった場合には、さらに賞球送信処理1に移行され、接続確認コマンドを繰り返し送信する処理が再開される。   Since the process of step S52504 is executed, when a prize ball end command is received, the process first proceeds to prize ball transmission process 2. Therefore, when the number of prize balls is stored, the next is immediately performed. Control is performed so that a winning ball number command is transmitted. On the other hand, after the transition to the prize ball transmission process 2, there is no memorized number of prize balls, and a new prize is also generated until the connection confirmation time 1 (for example, 1 second) set in step S52505 has elapsed. If not, the process further proceeds to a prize ball transmission process 1, and the process of repeatedly transmitting the connection confirmation command is resumed.

受信したコマンドが賞球終了コマンドでなければ、CPU56は、受信したコマンドが賞球準備中コマンドであるか否かを確認する(ステップS52506)。賞球準備中コマンドでもなければ、ステップS52509に移行する。   If the received command is not a prize ball end command, the CPU 56 checks whether or not the received command is a prize ball preparation command (step S52506). If it is not a prize ball preparation command, the process advances to step S52509.

賞球準備中コマンドを受信していれば、CPU56は、賞球準備中コマンドの下位4ビットに設定されているエラー情報(図19参照)を枠状態表示バッファに格納する(ステップS52507)。そして、CPU56は、賞球プロセスタイマに接続確認時間2(例えば10秒)をセットする(ステップS52508)。なお、ステップS52508でセットされた接続確認時間2にもとづいて、賞球準備中コマンドを受信した後、10秒を経過しても賞球終了コマンドも次の賞球準備中コマンドも受信できなかった場合には、接続確認コマンドを送信する制御に戻る。具体的には、ステップS52508でセットされた賞球プロセスタイマは、後述するステップS52511の処理で計測され、賞球終了コマンドや次の賞球準備中コマンドを受信することなく10秒が経過してタイムアウトしステップS52509でYと判定されると、賞球送信処理1に戻り次の接続確認コマンドが送信される(ステップS52510,S5211参照)。   If the winning ball preparation command has been received, the CPU 56 stores the error information (see FIG. 19) set in the lower 4 bits of the winning ball preparation command in the frame state display buffer (step S52507). Then, the CPU 56 sets the connection confirmation time 2 (for example, 10 seconds) in the prize ball process timer (step S52508). In addition, after receiving the winning ball preparation command based on the connection confirmation time 2 set in step S52508, neither the winning ball end command nor the next winning ball preparation command could be received after 10 seconds. In this case, the process returns to the control for transmitting the connection confirmation command. Specifically, the prize ball process timer set in step S52508 is measured in the process of step S52511 described later, and 10 seconds have elapsed without receiving a prize ball end command or a next prize ball preparation command. If time-out occurs and it is determined as Y in step S52509, the process returns to the prize ball transmission process 1 and the next connection confirmation command is transmitted (see steps S52510 and S5211).

ステップS52509では、CPU56は、賞球プロセスタイマがタイムアウトしたか否かを確認する。賞球プロセスタイマがタイムアウトしていれば(すなわち、賞球個数受付コマンドや賞球準備中コマンドを受信した後、10秒を経過しても賞球終了コマンドや賞球準備中コマンドを受信できなかった場合)、CPU56は、賞球プロセスコードに賞球送信処理1を示す値「0」をセットし(ステップS52510)、処理を終了する。賞球プロセスタイマがタイムアウトしていなければ、CPU56は、賞球プロセスタイマの値を1減算する(ステップS52511)。   In step S52509, the CPU 56 checks whether or not the prize ball process timer has timed out. If the prize ball process timer has timed out (that is, the prize ball end command or the prize ball preparation command cannot be received even after 10 seconds have passed since the prize ball number acceptance command or prize ball preparation command is received) In this case, the CPU 56 sets a value “0” indicating the prize ball transmission process 1 in the prize ball process code (step S52510), and ends the process. If the winning ball process timer has not timed out, the CPU 56 subtracts 1 from the value of the winning ball process timer (step S52511).

図33は、ステップS503の賞球カウンタ減算処理を示すフローチャートである。CPU56は、賞球カウンタ減算処理において、まず、賞球情報入力無効タイマがタイムアウトしたか否かを確認する(ステップS5301)。なお、賞球情報入力無効タイマは、賞球情報の入力を確認した後、次の賞球情報の入力を確認するまでの間にインターバル期間を設けるために計測されるタイマである。タイムアウトしていなければ、CPU56は、賞球情報入力無効タイマの値を1減算して(ステップS5302)、処理を終了する。   FIG. 33 is a flowchart showing the prize ball counter subtraction process in step S503. In the prize ball counter subtraction process, the CPU 56 first checks whether or not the prize ball information input invalid timer has timed out (step S5301). The prize ball information input invalid timer is a timer that is measured in order to provide an interval period after confirming the input of prize ball information until confirming the input of the next prize ball information. If not timed out, the CPU 56 subtracts 1 from the value of the prize ball information input invalid timer (step S5302) and ends the process.

賞球情報入力無効タイマがタイムアウトしていれば、CPU56は、入力ポート0の内容を入力し(ステップS5303)、賞球情報のビットがオン状態であるか否かを確認する(ステップS5304)。賞球情報のビットがオン状態であれば、ステップS5305に移行する。   If the prize ball information input invalid timer has timed out, the CPU 56 inputs the contents of the input port 0 (step S5303), and checks whether or not the bit of the prize ball information is on (step S5304). If the bit of the prize ball information is on, the process proceeds to step S5305.

ステップS5305では、CPU56は、処理数として所定の賞球情報確認回数(例えば8)をセットする(ステップS5305)。そして、CPU56は、賞球情報を入力しているか否かを確認し、賞球情報の入力を確認できれば賞球情報オンカウンタの値を1加算する処理を、処理数(この実施の形態では8)を終了するまで繰り返し実行する(ステップS5306〜S5308)。   In step S5305, the CPU 56 sets a predetermined prize ball information confirmation count (for example, 8) as the number of processes (step S5305). Then, the CPU 56 confirms whether or not the prize ball information is input, and if the input of the prize ball information can be confirmed, the CPU 56 adds the value of the prize ball information on-counter by 1 to the number of processes (8 in this embodiment). ) Is repeatedly executed (steps S5306 to S5308).

次いで、CPU56は、賞球情報オンカウンタの値が6以上であるか否かを確認する(ステップS5309)。賞球情報オンカウンタの値が6以上であれば、CPU56は、賞球情報入力無効タイマに所定時間(例えば0.8秒)をセットする(ステップS5310)とともに、賞球個数カウンタの値を10減算する(ステップS5311)。   Next, the CPU 56 checks whether or not the value of the prize ball information on counter is 6 or more (step S5309). If the value of the winning ball information on counter is 6 or more, the CPU 56 sets a predetermined time (for example, 0.8 seconds) in the winning ball information input invalid timer (step S5310) and sets the value of the winning ball number counter to 10 Subtraction is performed (step S5311).

以上のように、この実施の形態では、賞球情報の入力を8回の確認処理中6回以上確認したことを条件として賞球情報を入力したと判定し、10個の賞球払出が行われたものとして賞球個数カウンタの値を10減算する。そのような処理によって、この実施の形態では、誤って賞球情報を入力したと判定する可能性を低減し、遊技制御用マイクロコンピュータ560側で未払出の賞球数を適切に把握できなくなる事態を防止する。   As described above, in this embodiment, it is determined that the prize ball information is inputted on the condition that the prize ball information is confirmed 6 times or more during the eight confirmation processes, and 10 prize balls are paid out. As a result, 10 is subtracted from the value of the prize ball number counter. By such processing, in this embodiment, the possibility that it is determined that the prize ball information is erroneously input is reduced, and the number of unpaid prize balls cannot be properly grasped on the game control microcomputer 560 side. To prevent.

次いで、CPU56は、減算後のカウント値が所定の賞球過剰判定値(例えば0)未満であるか否かを確認する(ステップS5312)。賞球個数カウンタのカウント値が所定の賞球過剰判定値(例えば0)未満であった場合には、CPU56は、賞球エラーフラグが既にセットされているか否かを確認する(ステップS5313)。既に賞球エラーフラグがセットされていれば、そのまま処理を終了する。賞球エラーフラグがセットされていなければ、CPU56は、賞球エラーフラグをセットする(ステップS5314)とともに、賞球過剰エラーコマンドを演出制御用マイクロコンピュータ100に送信する制御を行う(ステップS5315)。具体的には、CPU56は、賞球過剰エラーコマンド送信テーブルのアドレスをポインタにセットする処理を行う。そして、ステップS5315で賞球過剰エラーコマンド送信テーブルのアドレスがポインタにセットされたことにもとづいて、その後、ステップS25のコマンド制御処理において、演出制御基板80との送受信用チャネルのシリアル通信回路505の送信データレジスタに賞球過剰エラーコマンドが出力され、賞球過剰エラーコマンドが演出制御用マイクロコンピュータ100に送信される。   Next, the CPU 56 checks whether or not the count value after subtraction is less than a predetermined prize ball excess determination value (for example, 0) (step S5312). When the count value of the prize ball number counter is less than a predetermined prize ball excess determination value (for example, 0), the CPU 56 checks whether or not the prize ball error flag is already set (step S5313). If the prize ball error flag has already been set, the process is terminated. If the prize ball error flag is not set, the CPU 56 sets the prize ball error flag (step S5314) and controls to send a prize ball excess error command to the effect control microcomputer 100 (step S5315). Specifically, the CPU 56 performs a process of setting the address of the winning ball excessive error command transmission table as a pointer. Then, based on the fact that the address of the winning ball excess error command transmission table is set in the pointer in step S5315, in the command control processing in step S25, the serial communication circuit 505 of the channel for transmission / reception with the effect control board 80 is performed. A prize ball excess error command is output to the transmission data register, and the prize ball excess error command is transmitted to the production control microcomputer 100.

次に、払出制御手段(払出制御用マイクロコンピュータ370)の動作を説明する。図34は、払出制御手段における出力ポートの割り当ての例を示す説明図である。図34に示すように、出力ポート0は、ステッピングモータによる払出モータ289に供給される各相の信号と、カードユニット50へのEXS信号およびPRDY信号を出力するための出力ポートである。出力ポート1は、遊技機がエラー状態(この実施の形態では、球切れエラー状態または満タンエラー状態)であることを示す遊技機エラー状態信号や、賞球払出を検出したことを示す賞球信号を出力するための出力ポートである。出力ポート2は、7セグメントLEDによるエラー表示LED374の各セグメント出力の出力ポートである。   Next, the operation of the payout control means (the payout control microcomputer 370) will be described. FIG. 34 is an explanatory diagram showing an example of output port assignment in the payout control means. As shown in FIG. 34, the output port 0 is an output port for outputting a signal of each phase supplied to the payout motor 289 by the stepping motor, and an EXS signal and a PRDY signal to the card unit 50. The output port 1 has a gaming machine error state signal indicating that the gaming machine is in an error state (in this embodiment, a ball running out error state or a full tank error state), and a prize ball signal indicating that a prize ball payout has been detected. Is an output port. The output port 2 is an output port for outputting each segment of the error display LED 374 using a 7-segment LED.

また、出力ポート2から、賞球払出を10球検出したことを示す賞球情報も出力される。賞球情報は、主基板31に対して出力される。   The output port 2 also outputs prize ball information indicating that ten prize ball payouts have been detected. The prize ball information is output to the main board 31.

図35は、払出制御手段における入力ポートのビット割り当ての例を示す説明図である。図35に示すように、入力ポート0のビット0〜2には、それぞれ、カードユニット50からのVL信号、BRDY信号、およびBRQ信号が入力される。また、入力ポート0のビット4には、主基板31からの接続信号が入力される。また、入力ポート0のビット5〜7には、それぞれ、満タンスイッチ48の検出信号、球切れスイッチ187の検出信号、および払出モータ位置センサ295の検出信号が入力される。また、入力ポート1のビット0,1には、それぞれ、エラー解除スイッチ375からの操作信号、および払出個数カウントスイッチ301の検出信号が入力される。   FIG. 35 is an explanatory diagram showing an example of bit assignment of input ports in the payout control means. As shown in FIG. 35, the VL signal, the BRDY signal, and the BRQ signal from the card unit 50 are input to bits 0 to 2 of the input port 0, respectively. A connection signal from the main board 31 is input to bit 4 of the input port 0. In addition, the detection signal of the full switch 48, the detection signal of the ball break switch 187, and the detection signal of the payout motor position sensor 295 are input to bits 5 to 7 of the input port 0, respectively. In addition, the operation signal from the error release switch 375 and the detection signal of the payout number count switch 301 are input to the bits 0 and 1 of the input port 1, respectively.

次に、払出制御手段の動作について説明する。図36は、払出制御手段が実行するメイン処理を示すフローチャートである。メイン処理では、払出制御用マイクロコンピュータ370の払出制御用CPU371は、まず、必要な初期設定を行う。すなわち、払出制御用CPU371は、まず、割込禁止に設定する(ステップS701)。次に、割込モードを割込モード2に設定し(ステップS702)、スタックポインタにスタックポインタ指定アドレスを設定する(ステップS703)。   Next, the operation of the payout control means will be described. FIG. 36 is a flowchart showing main processing executed by the payout control means. In the main process, the payout control CPU 371 of the payout control microcomputer 370 first performs necessary initial settings. That is, the payout control CPU 371 first sets the interruption prohibition (step S701). Next, the interrupt mode is set to interrupt mode 2 (step S702), and a stack pointer designation address is set to the stack pointer (step S703).

次いで、払出制御用CPU371は、内蔵デバイスレジスタの設定を行う(ステップS704)。ステップS704の内蔵デバイスレジスタの設定の処理では、払出制御用CPU371は、CTCの設定を行う。また、この実施の形態では、内蔵CTCのうちの一つのチャネルがタイマモードで使用される。そのため、払出制御用CPU371は、使用するチャネルをタイマモードに設定するためのレジスタ設定、割込発生を許可するためのレジスタ設定および割込ベクタを設定するためのレジスタ設定を行う。そして、そのチャネルによる割込がタイマ割込として用いられる。タイマ割込を例えば1ms毎に発生させたい場合は、初期値として1msに相当する値が所定のレジスタ(時間定数レジスタ)に設定される。   Next, the payout control CPU 371 sets a built-in device register (step S704). In the process of setting the internal device register in step S704, the payout control CPU 371 sets the CTC. In this embodiment, one channel of the built-in CTC is used in the timer mode. Therefore, the payout control CPU 371 performs register setting for setting the channel to be used to timer mode, register setting for permitting interrupt generation, and register setting for setting an interrupt vector. The interrupt by the channel is used as a timer interrupt. For example, when it is desired to generate a timer interrupt every 1 ms, a value corresponding to 1 ms is set as an initial value in a predetermined register (time constant register).

また、ステップS704において、払出制御用CPU371は、シリアル通信回路380の割り込み要求に応じて実行する割込処理の優先順位を初期設定する。この場合、この場合、払出制御用CPU371は、遊技制御用マイクロコンピュータ560のCPU56が行う優先順位の初期設定処理(ステップS15b参照)と同様の処理に従って、割込処理の優先順位を初期設定する。   In step S704, the payout control CPU 371 initializes the priority of interrupt processing to be executed in response to the interrupt request from the serial communication circuit 380. In this case, in this case, the payout control CPU 371 initializes the priority order of the interrupt process according to the same process as the priority order initial setting process (see step S15b) performed by the CPU 56 of the game control microcomputer 560.

また、ステップS704において、払出制御用CPU371は、シリアル通信回路380の設定を行う。この場合、払出制御用CPU371は、受信回路のボーレートの設定、受信モード(8ビットまたは9ビットのデータフォーマットのいずれにするか)の設定、パリティ設定(パリティの有無や、偶数パリティまたは奇数パリティの設定)を行う。また、受信回路の各制御レジスタを初期化するとともに、各ステータスレジスタを初期化する。また、払出制御用CPU371は、送信回路のボーレートの設定、送信モード(8ビットまたは9ビットのデータフォーマットのいずれにするか)の設定、パリティ設定(パリティの有無や、偶数パリティまたは奇数パリティの設定)を行う。また、送信回路の各制御レジスタを初期化する。   In step S <b> 704, the payout control CPU 371 sets the serial communication circuit 380. In this case, the payout control CPU 371 sets the baud rate of the receiving circuit, sets the receiving mode (either 8-bit or 9-bit data format), and sets the parity (the presence or absence of parity, even parity or odd parity). Set). In addition, the control registers of the receiving circuit are initialized and the status registers are initialized. Also, the payout control CPU 371 sets the baud rate of the transmission circuit, sets the transmission mode (either 8-bit or 9-bit data format), and sets the parity (the presence / absence of parity, even parity or odd parity) )I do. Also, each control register of the transmission circuit is initialized.

なお、タイマモードに設定されたチャネル(この実施の形態ではチャネル3)に設定される割込ベクタは、タイマ割込処理の先頭アドレスに相当するものである。具体的は、Iレジスタに設定された値と割込ベクタとでタイマ割込処理の先頭アドレスが特定される。タイマ割込処理では、払出手段を制御する払出制御処理(少なくとも主基板からの賞球払出に関する指令信号に応じて球払出装置97を駆動する処理を含み、球貸し要求に応じて球払出装置97を駆動する処理が含まれていてもよい。)が実行される。   The interrupt vector set for the channel set to the timer mode (channel 3 in this embodiment) corresponds to the start address of the timer interrupt process. Specifically, the start address of the timer interrupt process is specified by the value set in the I register and the interrupt vector. In the timer interruption process, a payout control process for controlling the payout means (including at least a process of driving the ball payout device 97 in response to a command signal related to award ball payout from the main board, and a ball payout device 97 in response to a ball lending request. A process for driving the program may be included.

また、この実施の形態では、払出制御用マイクロコンピュータ370でも割込モード2が設定される。従って、内蔵CTCのカウントアップにもとづく割込処理を使用することができる。また、CTCが送出した割込ベクタに応じた割込処理開始アドレスを設定することができる。CTCのチャネル3(CH3)のカウントアップにもとづく割込は、CPUの内部クロック(システムクロック)をカウントダウンしてレジスタ値が「0」になったら発生する割込であり、タイマ割込として用いられる。   In this embodiment, the interruption mode 2 is also set in the payout control microcomputer 370. Therefore, an interrupt process based on counting up the built-in CTC can be used. Also, an interrupt processing start address can be set according to the interrupt vector sent by the CTC. The interrupt based on CTC channel 3 (CH3) count-up is an interrupt that occurs when the CPU internal clock (system clock) counts down and the register value becomes “0”, and is used as a timer interrupt. .

次いで、払出制御用CPU371は、RAMをアクセス可能状態に設定し(ステップS705)、RAMクリア処理を行う(ステップS706)。また、RAM領域のフラグやカウンタなどに初期値を設定する(ステップS707)。なお、ステップS707の処理には、未払出個数カウンタ初期値を未払出個数カウンタにセットする処理が含まれる。また、ステップS707の処理では、払出制御用CPU371は、払出個数異常エラーや満タンエラー、球切れエラーの検出状態を示すエラーフラグをクリアする処理も行う。なお、この実施の形態では、払出個数異常エラーと判定されてエラーフラグの払出個数異常エラー指定ビットがセットされた場合には、電源リセットがされるまで払出個数異常エラー指定ビットがクリアされず払出個数異常エラーから復旧しないのであるが、具体的には、電源投入時にステップS707の処理が実行されることによって、エラーフラグの払出個数異常エラー指定ビットがクリアされ、払出個数異常エラーから復旧する。   Next, the payout control CPU 371 sets the RAM in an accessible state (step S705), and performs a RAM clear process (step S706). In addition, initial values are set in the flags and counters of the RAM area (step S707). Note that the processing in step S707 includes processing for setting the unpaid-off number counter initial value in the unpaid-out number counter. In the process of step S707, the payout control CPU 371 also performs a process of clearing an error flag indicating a detection state of a payout number abnormality error, a full tank error, and a ball breakage error. In this embodiment, when it is determined that there is a payout number error and the payout number error error specification bit is set in the error flag, the payout number error error specification bit is not cleared until the power is reset. Although it does not recover from the number abnormality error, specifically, when the process of step S707 is executed when the power is turned on, the payout number abnormality error designation bit in the error flag is cleared and the payout number abnormality error is recovered.

また、払出制御用CPU371は、シリアル通信回路380を初期設定するシリアル通信回路設定処理を実行する(ステップS708)。この場合、払出制御用CPU371は、遊技制御用マイクロコンピュータ560のCPU56が行うシリアル通信回路設定処理(ステップS15a参照)と同様の処理に従って、シリアル通信回路380に遊技制御用マイクロコンピュータ560とシリアル通信させるための設定を行う。また、前述したように、シリアル通信回路380の初期設定の一部は、ステップS704の内蔵デバイスレジスタの設定処理において実行される。なお、シリアル通信回路380の全ての設定処理をステップS708のシリアル通信回路設定処理で行うようにしてもよい。   The payout control CPU 371 executes serial communication circuit setting processing for initial setting of the serial communication circuit 380 (step S708). In this case, the payout control CPU 371 causes the serial communication circuit 380 to serially communicate with the game control microcomputer 560 according to the same process as the serial communication circuit setting process (see step S15a) performed by the CPU 56 of the game control microcomputer 560. Make settings for Further, as described above, a part of the initial setting of the serial communication circuit 380 is executed in the built-in device register setting process in step S704. Note that all the setting processing of the serial communication circuit 380 may be performed by the serial communication circuit setting processing in step S708.

そして、初期設定処理のステップS701において割込禁止とされているので、初期化処理を終える前に割込が許可される(ステップS709)。その後、タイマ割込の発生を監視するループ処理に入る。   Since interruption is prohibited in step S701 of the initial setting process, interruption is permitted before the initialization process is completed (step S709). Thereafter, a loop process for monitoring the occurrence of a timer interrupt is entered.

上記のように、この実施の形態では、払出制御用マイクロコンピュータ370の内蔵CTCが繰り返しタイマ割込を発生するように設定される。そして、タイマ割込が発生すると、払出制御用マイクロコンピュータ370の払出制御用CPU371は、タイマ割込処理を実行する。   As described above, in this embodiment, the built-in CTC of the payout control microcomputer 370 is set so as to repeatedly generate a timer interrupt. When a timer interrupt occurs, the payout control CPU 371 of the payout control microcomputer 370 executes a timer interrupt process.

図37は、払出制御手段が実行するタイマ割込処理の例を示すフローチャートである。タイマ割込処理で、払出制御用マイクロコンピュータ370の払出制御用CPU371は、以下の処理を実行する。まず、払出制御用CPU371は、スイッチチェック処理を行う(ステップS761)。スイッチチェック処理では、払出制御用CPU371は、入力ポート1の入力にもとづいて、払出個数カウントスイッチ301およびエラー解除スイッチ375のオン/オフ状態を確認する処理を行う。次いで、払出制御用CPU371は、入力判定処理を行う(ステップS762)。入力判定処理は、入力ポート0のビット0〜7(図35参照)の状態を検出して検出結果をRAMの所定の1バイト(センサ入力状態フラグと呼ぶ。)に反映する処理である。なお、払出制御用CPU371は、入力ポート0のビット0〜7の状態にもとづいて制御を行う場合には、直接入力ポートの状態をチェックするのではなく、センサ入力状態フラグの状態をチェックする。   FIG. 37 is a flowchart showing an example of timer interrupt processing executed by the payout control means. In the timer interruption process, the payout control CPU 371 of the payout control microcomputer 370 executes the following process. First, the payout control CPU 371 performs a switch check process (step S761). In the switch check process, the payout control CPU 371 performs a process of confirming the on / off state of the payout number count switch 301 and the error release switch 375 based on the input of the input port 1. Next, the payout control CPU 371 performs input determination processing (step S762). The input determination process is a process of detecting the state of bits 0 to 7 (see FIG. 35) of the input port 0 and reflecting the detection result in a predetermined 1 byte (referred to as a sensor input state flag) in the RAM. The payout control CPU 371 checks the state of the sensor input state flag instead of directly checking the state of the input port when performing control based on the state of bits 0 to 7 of the input port 0.

次いで、払出制御用CPU371は、カードユニット50と通信を行うプリペイドカードユニット制御処理を実行する(ステップS763)。次いで、払出制御用CPU371は、主基板31の遊技制御手段と通信を行う主制御通信処理を実行する(ステップS764)。次いで、払出制御用CPU371は、カードユニット50からの球貸し要求に応じて貸し球を払い出す制御を行い、また、主基板31からの賞球個数コマンドが示す個数の賞球を払い出す制御を行う払出制御処理を実行する(ステップS765)。   Next, the payout control CPU 371 executes a prepaid card unit control process for communicating with the card unit 50 (step S763). Next, the payout control CPU 371 executes main control communication processing for communicating with the game control means of the main board 31 (step S764). Next, the payout control CPU 371 performs control for paying out the lent balls in response to a ball lending request from the card unit 50, and performs control for paying out the number of prize balls indicated by the prize ball number command from the main board 31. The payout control process to be executed is executed (step S765).

次に、払出制御用CPU371は、払出モータ制御処理を実行する(ステップS766)。払出モータ制御処理では、払出モータ289を駆動すべきときには、払出モータφ1〜φ4のパターンを出力ポート0に出力するための処理を行う。   Next, the payout control CPU 371 executes a payout motor control process (step S766). In the payout motor control process, when the payout motor 289 is to be driven, a process for outputting the patterns of the payout motors φ1 to φ4 to the output port 0 is performed.

次いで、払出制御用CPU371は、各種のエラーを検出するエラー処理を実行する(ステップS767)。次いで、払出制御用CPU371は、カードユニット50のエラー制御を行うプリペイドカードユニットエラー制御処理を実行する(ステップS768)。次いで、払出制御用CPU371は、主基板31に対して賞球情報を出力したり、賞球払出を検出したことを示す賞球信号や遊技機エラー状態信号を外部出力するための情報出力処理を実行する(ステップS769)。また、エラー処理の結果に応じてエラー表示LED374に所定の表示を行う表示制御処理を実行する(ステップS770)。   Next, the payout control CPU 371 executes error processing for detecting various errors (step S767). Next, the payout control CPU 371 executes prepaid card unit error control processing for performing error control of the card unit 50 (step S768). Next, the payout control CPU 371 performs information output processing for outputting prize ball information to the main board 31 and outputting a prize ball signal and a gaming machine error status signal indicating that a prize ball payout has been detected. This is executed (step S769). Further, display control processing for performing predetermined display on the error display LED 374 according to the result of the error processing is executed (step S770).

この実施の形態では、エラー処理において各種エラー(例えば、払出個数異常エラーや、満タンエラー、球切れエラー、プリペイドカードユニット未接続エラー)が検出されると、検出されたエラーに対応するエラービットがセットされる。そして、ステップS770の表示制御処理において、エラービットがセットされていることにづいて、払出制御用CPU371は、エラー表示LED374に所定の表示を行う。   In this embodiment, when various errors (for example, a payout number abnormality error, a full tank error, a ball shortage error, or a prepaid card unit unconnected error) are detected in error processing, an error bit corresponding to the detected error is displayed. Set. Then, in the display control process of step S770, the payout control CPU 371 performs a predetermined display on the error display LED 374 based on the error bit being set.

また、この実施の形態では、出力ポートの出力状態に対応したRAM領域(出力ポート0バッファ、出力ポート1バッファ)が設けられているのであるが、払出制御用CPU371は、出力ポート0バッファおよび出力ポート1バッファの内容を出力ポートに出力する(ステップS771:出力処理)。出力ポート0バッファおよび出力ポート1バッファは、プリペイドカード制御処理(ステップS763)、主制御通信処理(ステップS764)、払出モータ制御処理(ステップS766)、情報出力処理(ステップS769)および表示制御処理(ステップS770)で更新される。   In this embodiment, a RAM area (output port 0 buffer, output port 1 buffer) corresponding to the output state of the output port is provided. However, the payout control CPU 371 includes an output port 0 buffer and an output port. The contents of the port 1 buffer are output to the output port (step S771: output processing). The output port 0 buffer and the output port 1 buffer are prepaid card control processing (step S763), main control communication processing (step S764), payout motor control processing (step S766), information output processing (step S769), and display control processing ( It is updated in step S770).

図38は、ステップS764の主制御通信処理を示すフローチャートである。主制御通信処理では、払出制御用マイクロコンピュータ370(具体的には、払出制御用CPU371)は、主制御コマンド受信処理(ステップS740)を実行する。そして、払出制御用CPU371は、主制御通信制御コードの値に応じて、ステップS741〜S744のいずれかの処理を実行する。   FIG. 38 is a flowchart showing the main control communication process in step S764. In the main control communication process, the payout control microcomputer 370 (specifically, the payout control CPU 371) executes a main control command reception process (step S740). Then, the payout control CPU 371 executes one of steps S741 to S744 according to the value of the main control communication control code.

図39は、主制御通信処理におけるステップS740の主制御コマンド受信処理を示すフローチャートである。払出制御用CPU371は、主制御コマンド受信処理において、まず、接続信号を入力しているか否かを確認する(ステップS74001)。接続信号を入力していなければ、払出制御用CPU101aは、シリアル通信回路380の送信回路および受信回路の初期化を行う(ステップS74002)。このように、接続信号を受信できない場合にシリアル通信回路380の送信回路および受信回路を初期化することによって、主基板31との接続状態が異常な状態下であるにもかかわらずコマンドを送信データレジスタや受信データレジスタに格納してしまう事態を防止することができる。次いで、払出制御用CPU371は、主制御通信制御コードの値をロードし(ステップS74003)、主制御通信制御コードの値が主制御接続確認処理を示す値「0」となっているか否かを確認する(ステップS74004)。   FIG. 39 is a flowchart showing the main control command reception process of step S740 in the main control communication process. In the main control command receiving process, the payout control CPU 371 first checks whether or not a connection signal is input (step S74001). If no connection signal is input, the payout control CPU 101a initializes the transmission circuit and the reception circuit of the serial communication circuit 380 (step S74002). As described above, when the connection signal cannot be received, the transmission circuit and the reception circuit of the serial communication circuit 380 are initialized, so that the command is transmitted even though the connection state with the main board 31 is under an abnormal state. It is possible to prevent a situation in which data is stored in the register or the reception data register. Next, the payout control CPU 371 loads the value of the main control communication control code (step S74003), and checks whether or not the value of the main control communication control code is a value “0” indicating the main control connection confirmation process. (Step S74004).

この実施の形態では、主制御通信処理において、遊技機への電源供給が開始されてから遊技制御用マイクロコンピュータ560からの接続信号の入力が開始され、最初の接続確認コマンドの受信を確認できるまでステップS741の主制御接続確認処理が実行される。そして、接続確認コマンドの受信を確認できると、ステップS742以降の処理に移行し、各種払出制御コマンドの送受信の処理が実行される。また、以降、遊技制御用マイクロコンピュータ560との間の通信状態が正常に維持されていれば、ステップS742〜S744のいずれかの処理が実行され、ステップS741の主制御接続確認処理は原則として遊技機への電源投入時にのみ実行されることになる。ステップS74004において、主制御通信制御コードの値が主制御接続確認処理以外の値を示しているということは、ステップS742以降の処理に移行した後に、何らかの通信エラーが生じて接続信号を入力不能となった場合である。そのため、払出制御用CPU371は、ステップS74004で主制御通信制御コードの値が主制御接続確認処理以外の値を示している場合には、エラーフラグの主制御通信エラー指定ビット(遊技制御用マイクロコンピュータ560との間の通信状態に異常が生じたことを示すビット)をセットする(ステップS74005)。なお、エラーフラグは、各種賞球エラーがセットされるフラグであり、払出制御用マイクロコンピュータ370が備えるRAMに形成されている。そして、払出制御用CPU371は、主制御通信制御コードに主制御接続確認処理を示す値「0」をセットする(ステップS74006)。なお、ステップS74004で主制御通信制御コードの値が主制御接続確認処理を示す値「0」となっていれば、そのままステップS74006に移行する。   In this embodiment, in the main control communication process, input of a connection signal from the game control microcomputer 560 is started after power supply to the gaming machine is started, and reception of the first connection confirmation command can be confirmed. The main control connection confirmation process in step S741 is executed. Then, when the reception of the connection confirmation command can be confirmed, the process proceeds to step S742 and subsequent steps, and transmission / reception processing of various payout control commands is executed. Thereafter, if the communication state with the game control microcomputer 560 is maintained normally, one of the processes of steps S742 to S744 is executed, and the main control connection confirmation process of step S741 is basically a game. It will be executed only when the machine is powered on. In step S74004, the fact that the value of the main control communication control code indicates a value other than the main control connection confirmation processing means that after shifting to the processing after step S742, some communication error occurs and the connection signal cannot be input. This is the case. Therefore, if the value of the main control communication control code indicates a value other than the main control connection confirmation process in step S74004, the payout control CPU 371 determines the main control communication error designation bit (game control microcomputer) of the error flag. A bit indicating that an abnormality has occurred in the communication state with 560) is set (step S74005). The error flag is a flag in which various prize ball errors are set, and is formed in a RAM provided in the payout control microcomputer 370. The payout control CPU 371 sets a value “0” indicating main control connection confirmation processing in the main control communication control code (step S74006). If the value of the main control communication control code is “0” indicating the main control connection confirmation process in step S74004, the process proceeds to step S74006.

なお、ステップS741の主制御確認処理は、遊技機への電源投入時以降であっても例外的に実行される場合がある。具体的には、上記したように、ステップS74001で接続信号を入力していないと判定した後、ステップS74004で主制御接続確認処理の実行中でなければ、遊技機への電源投入後に接続信号が切断されてしまった可能性があると判断して主制御接続確認処理に戻り(ステップS74006参照)、再び遊技制御用マイクロコンピュータ560との接続状態を確認する(具体的には、接続確認コマンドを受信できることを確認。ステップS7412参照。)。また、後述する主制御通信通常処理において、接続OKコマンドを送信してから所定期間(この実施の形態では1050ms)を経過しても、遊技制御用マイクロコンピュータ560から接続確認コマンドも賞球個数コマンドも受信していない場合には、何らかの通信異常が生じたものとして主制御接続確認処理に戻り(ステップS74202,S74203参照)、再び遊技制御用マイクロコンピュータ560との接続状態を確認する(具体的には、接続確認コマンドを受信できることを確認。ステップS7412参照。)。   Note that the main control confirmation process in step S741 may be executed exceptionally even after the power is turned on to the gaming machine. Specifically, as described above, after determining that the connection signal is not input in step S74001, if the main control connection confirmation process is not being executed in step S74004, the connection signal is not displayed after the game machine is turned on. It is determined that there is a possibility of being disconnected, and the process returns to the main control connection confirmation process (see step S74006), and again confirms the connection state with the game control microcomputer 560 (specifically, a connection confirmation command is issued). Confirm that it can be received (see step S7412). Further, in the main control communication normal processing described later, even if a predetermined period (1050 ms in this embodiment) has elapsed since the connection OK command was transmitted, the connection confirmation command is also received from the game control microcomputer 560. If not received, it is determined that some kind of communication abnormality has occurred, and the process returns to the main control connection confirmation process (see steps S74202 and S74203), and again confirms the connection state with the game control microcomputer 560 (specifically, Confirms that the connection confirmation command can be received (see step S7412).

接続信号を入力していれば、払出制御用CPU371は、シリアル通信回路380のステータスレジスタに受信エラーフラグがセットされているか否かを確認する(ステップS74007)。例えば、払出制御用CPU371は、シリアル通信回路380のステータスレジスタにパリティエラーや、フレーミングエラー、ノイズエラー、オーバーランエラー、ブレークコード検出を示すフラグがセットされていれば、シリアル通信回路380の受信エラー状態であると判定する。   If the connection signal is input, the payout control CPU 371 checks whether or not the reception error flag is set in the status register of the serial communication circuit 380 (step S74007). For example, if a flag indicating parity error, framing error, noise error, overrun error, or break code detection is set in the status register of the serial communication circuit 380, the payout control CPU 371 receives a reception error of the serial communication circuit 380. It is determined that it is in a state.

受信エラーフラグがセットされていれば、払出制御用CPU371は、シリアル通信回路380の受信回路を初期化する(ステップS74008)。このように、受信エラー状態である場合にシリアル通信回路380の受信回路を初期化することによって、受信データを破棄し、何らかの受信異常が生じているにもかかわらず受信コマンドを受信データレジスタに格納してしまう事態を防止することができる。なお、払出制御用CPU371は、遊技制御用マイクロコンピュータ560と同様に、シリアル通信回路380の受信データレジスタからデータを読み込むことによって受信データレジスタの内容をクリアし、受信データを破棄するようにしてもよい。そして、払出制御用CPU371は、エラーフラグの主制御通信エラー指定ビットをセットする(ステップS74009)。   If the reception error flag is set, the payout control CPU 371 initializes the reception circuit of the serial communication circuit 380 (step S74008). As described above, by initializing the reception circuit of the serial communication circuit 380 in the reception error state, the reception data is discarded, and the reception command is stored in the reception data register even though some reception abnormality has occurred. This can prevent the situation. As with the game control microcomputer 560, the payout control CPU 371 clears the contents of the reception data register by reading the data from the reception data register of the serial communication circuit 380, and discards the reception data. Good. Then, the payout control CPU 371 sets the main control communication error designation bit of the error flag (step S74009).

なお、払出制御用マイクロコンピュータ370のシリアル通信回路380についても、シリアル通信回路380の受信データレジスタからデータを読み込むことによって受信データレジスタの内容をクリアするように構成する場合、受信データが読み出されたときにステータスレジスタのビット5(RDRF)が自動的にクリアされるように構成されていない場合には、払出制御用マイクロコンピュータ370は、受信データレジスタから受信データを読み出すごとに、ステータスレジスタのビット5をクリアする処理を行う必要がある。また、受信データレジスタについても自動的にクリアされるように構成されていない場合には、払出制御用マイクロコンピュータ370は、受信データレジスタから受信データを読み出すごとに、受信データレジスタの内容をクリアする必要がある。   Note that when the serial communication circuit 380 of the payout control microcomputer 370 is configured to clear the contents of the reception data register by reading the data from the reception data register of the serial communication circuit 380, the reception data is read out. If the status register bit 5 (RDRF) is not automatically cleared, the payout control microcomputer 370 reads the received data from the received data register each time the received data is read. Processing to clear bit 5 needs to be performed. Further, when the reception data register is not configured to be automatically cleared, the payout control microcomputer 370 clears the contents of the reception data register every time the reception data is read from the reception data register. There is a need.

また、例えば、受信データレジスタから受信データを読み出したことにもとづいて、シリアル通信回路380がハードウェア的に、受信データレジスタ内容やステータスレジスタのビット5をクリアするようにしてもよい。この場合、例えば、シリアル通信回路380の割り込み制御回路が、受信データレジスタから受信データが読み出されたことを検出したことにもとづいて、受信データレジスタの内容やステータスレジスタのビット5をクリアするようにしてもよい。   For example, the serial communication circuit 380 may clear the received data register contents and bit 5 of the status register in hardware based on reading the received data from the received data register. In this case, for example, based on the fact that the interrupt control circuit of the serial communication circuit 380 detects that the received data is read from the received data register, the contents of the received data register and bit 5 of the status register are cleared. It may be.

なお、この実施の形態では、既に述べたように、遊技制御用マイクロコンピュータ560は、接続OKコマンドを受信できない場合でも10秒の間隔で接続確認コマンドを送信する制御を行う。また、賞球個数コマンドの送信に対して賞球個数受付コマンドまたは賞球準備中コマンドのいずれも受信できなかった場合であっても、その後、接続確認コマンドの送信に対して接続OKコマンドを受信できれば再び賞球個数コマンドを再送する制御を行う。従って、シリアル通信回路380のエラー状態が解除されば再び接続確認コマンドを受信可能となり、取りこぼした賞球個数コマンドも再送されるのであるから、ステップS74008で受信データを破棄してしまっても、遊技制御用マイクロコンピュータ560と払出制御用マイクロコンピュータ370との間の通信が滞ったり、賞球不足が生じたりすることはなく、支障は生じない。   In this embodiment, as described above, the game control microcomputer 560 performs control to transmit a connection confirmation command at intervals of 10 seconds even when the connection OK command cannot be received. Even if neither the winning ball number acceptance command nor the winning ball preparation command is received for the transmission of the winning ball number command, the connection OK command is received for the transmission of the connection confirmation command thereafter If possible, the control to retransmit the prize ball number command is performed again. Accordingly, when the error state of the serial communication circuit 380 is released, the connection confirmation command can be received again, and the missed prize ball number command is also retransmitted. Therefore, even if the received data is discarded in step S74008, the game Communication between the control microcomputer 560 and the payout control microcomputer 370 is not delayed, and there is no shortage of prize balls.

受信エラーフラグもセットされていなければ、払出制御用CPU371は、受信バッファの内容をロードし(ステップS74010)、接続確認コマンドを受信しているか否かを確認する(ステップS74011)。具体的には、払出制御用CPU371は、ロードした受信バッファの内容が「A0(H)」であるか否か(図18参照)を確認する。接続確認コマンドを受信していれば、払出制御用CPU371は、ステップS74014に移行する。   If the reception error flag is not set, the payout control CPU 371 loads the contents of the reception buffer (step S74010) and checks whether or not a connection confirmation command is received (step S74011). Specifically, the payout control CPU 371 checks whether or not the content of the loaded reception buffer is “A0 (H)” (see FIG. 18). If the connection confirmation command has been received, the payout control CPU 371 proceeds to step S74014.

接続確認コマンドを受信していなければ、払出制御用CPU371は、賞球個数コマンドを受信しているか否かを確認する。この実施の形態では、図18に示すように、接続個数コマンドの内容は、少なくとも「51(H)」以上、「60(H)」未満の値となる筈である。従って、払出制御用CPU371は、まず、ロードした受信バッファの内容が賞球個数コマンド最小値「51(H)」以上であるか否かを確認する(ステップS74012)。次いで、賞球個数コマンド最小判定値「51(H)」以上であれば、払出制御用CPU371は、ロードした受信バッファの内容が賞球個数コマンド最大判定値「60(H)」未満であるか否かを確認する(ステップS74013)。賞球個数コマンド最大判定値「60(H)」未満であれば、払出制御用CPU371は、賞球個数コマンドを受信していると判定し、ステップS74014に移行する。   If a connection confirmation command has not been received, the payout control CPU 371 checks whether or not a prize ball number command has been received. In this embodiment, as shown in FIG. 18, the content of the connection number command should be at least “51 (H)” and less than “60 (H)”. Accordingly, the payout control CPU 371 first checks whether or not the content of the loaded reception buffer is equal to or greater than the minimum prize ball number command value “51 (H)” (step S74012). Next, if the prize ball number command minimum judgment value is “51 (H)” or more, the payout control CPU 371 determines whether the content of the loaded reception buffer is less than the prize ball number command maximum judgment value “60 (H)”. It is confirmed whether or not (step S74013). If it is less than the winning ball number command maximum determination value “60 (H)”, the payout control CPU 371 determines that a winning ball number command has been received, and proceeds to step S74014.

そして、ステップS74014では、払出制御用CPU371は、受信バッファの内容(接続確認コマンド、賞球個数コマンド)を主制御通信受信バッファに格納する。なお、主制御通信受信バッファは、1バイトで構成され、1度に1つの受信コマンドのみを格納することができる。このように構成しても、この実施の形態では、払出制御用マイクロコンピュータ370におけるタイマ割込の周期(例えば、1ms)は、遊技制御用マイクロコンピュータ560におけるタイマ割込の周期(4ms)より短いので、1回のタイマ割込内で複数の払出制御コマンドが受信される事態が生じることはなく、不都合は生じない。また、万一、遊技機への電源投入後、誤処理などにより、最初の接続確認コマンドを受信する前に賞球個数コマンドを受信してしまった場合であっても、その後、接続確認コマンドを受信すれば主制御通信受信バッファに上書きで格納されるので、後述する主制御接続確認処理(ステップS741)で接続確認コマンドを全く確認できず主制御通信通常処理に移行できなくなる事態が生じることを防止することができる。   In step S74014, the payout control CPU 371 stores the contents of the reception buffer (connection confirmation command, prize ball number command) in the main control communication reception buffer. The main control communication reception buffer is composed of 1 byte and can store only one reception command at a time. Even with this configuration, in this embodiment, the timer interruption period (for example, 1 ms) in the payout control microcomputer 370 is shorter than the timer interruption period (4 ms) in the game control microcomputer 560. Therefore, a situation in which a plurality of payout control commands are received within one timer interrupt does not occur, and there is no inconvenience. In addition, even if the award ball number command is received before receiving the first connection confirmation command due to erroneous processing after turning on the power to the gaming machine, the connection confirmation command is subsequently issued. If it is received, it is overwritten and stored in the main control communication reception buffer. Therefore, there is a situation in which the connection confirmation command cannot be confirmed at all in the main control connection confirmation process (step S741) described later, and it becomes impossible to shift to the main control communication normal process. Can be prevented.

図40は、主制御通信制御コードの値が0の場合に実行される主制御接続確認処理(ステップS741)を示すフローチャートである。主制御接続確認処理において、払出制御用CPU371は、主制御通信受信バッファの内容をロードし(ステップS7411)、接続確認コマンドを受信しているか否かを確認する(ステップS7412)。接続確認コマンドを受信していれば、払出制御用CPU371は、接続OKコマンドをセットし(ステップS7413)、主制御送信コマンド変換処理を実行する(ステップS7414)。なお、ステップS7414の主制御送信コマンド変換処理では、接続OKコマンドの下位4ビットに制御状態(払出個数異常エラーや、球切れエラー、満タンエラー、賞球エラーなどのエラー状態)をセットする処理が行われる。そして、払出制御用CPU371は、変換後の接続OKコマンドを遊技制御用マイクロコンピュータ560に送信する制御を行う(ステップS7415)。具体的には、払出制御用CPU371は、シリアル通信回路380の送信レジスタに接続OKコマンドを出力する処理を行う。なお、この実施の形態では、レジスタに出力するなどの表現を用いる場合があるが、より具体的には、レジスタにコマンドやデータを書き込む処理を行うことである。例えば、ステップS7415では、払出制御用CPU371は、シリアル通信回路380の送信レジスタに接続コマンドを書き込む処理を行う。このことは、この実施の形態にける他の同様な記載についても同様に当てはまる。   FIG. 40 is a flowchart showing the main control connection confirmation process (step S741) executed when the value of the main control communication control code is 0. In the main control connection confirmation process, the payout control CPU 371 loads the contents of the main control communication reception buffer (step S7411), and confirms whether or not a connection confirmation command is received (step S7412). If a connection confirmation command has been received, the payout control CPU 371 sets a connection OK command (step S7413) and executes main control transmission command conversion processing (step S7414). In the main control transmission command conversion process in step S7414, a process of setting a control state (an error state such as a payout number error error, a ball out error, a full tank error, a prize ball error) in the lower 4 bits of the connection OK command is performed. Done. Then, the payout control CPU 371 performs control to transmit the converted connection OK command to the game control microcomputer 560 (step S7415). Specifically, the payout control CPU 371 performs processing for outputting a connection OK command to the transmission register of the serial communication circuit 380. In this embodiment, an expression such as output to a register may be used. More specifically, a process of writing a command or data to the register is performed. For example, in step S7415, the payout control CPU 371 performs a process of writing a connection command to the transmission register of the serial communication circuit 380. This applies to other similar descriptions in this embodiment as well.

接続OKコマンドにエラー状態を表す情報を含めることによって、遊技制御用マイクロコンピュータ560は、払出制御用マイクロコンピュータ370が認識した不正行為によって発生しうる払出エラーを認識することが可能になる。遊技制御用マイクロコンピュータ560が、払出エラーを認識したときに、それに対する処理を実行するように構成することによって、不正行為に対する対策を強化することができる。   By including information indicating an error state in the connection OK command, the game control microcomputer 560 can recognize a payout error that may occur due to an illegal act recognized by the payout control microcomputer 370. When the game control microcomputer 560 recognizes a payout error, the game control microcomputer 560 is configured to execute a process for the same, thereby strengthening countermeasures against fraud.

なお、払出制御用CPU371は、ステップS7415で接続OKコマンドを送信すると、主制御通信受信バッファをクリアする。そのようにすることによって、その後の処理で受信コマンドを誤って認識して誤った処理を実行してしまう事態を防止することができる。   The payout control CPU 371 clears the main control communication reception buffer when transmitting the connection OK command in step S7415. By doing so, it is possible to prevent a situation in which the received command is erroneously recognized in the subsequent processing and the erroneous processing is executed.

次いで、払出制御用CPU371は、主制御通信制御コードに主制御通信通常処理を示す値「1」をセットする(ステップS7416)。そして、払出制御用CPU371は、主制御通信制御タイマに所定値(この実施の形態では1050ms)をセットする(ステップS7417)。   Next, the payout control CPU 371 sets a value “1” indicating the main control communication normal process in the main control communication control code (step S7416). Then, the payout control CPU 371 sets a predetermined value (1050 ms in this embodiment) in the main control communication control timer (step S7417).

図41および図42は、主制御通信制御コードの値が1の場合に実行される主制御通信通常処理(ステップS742)を示すフローチャートである。主制御通信通常処理において、払出制御用CPU371は、主制御通信制御タイマの値を1減算し(ステップS74201)、主制御通信制御タイマがタイムアウトしたか否かを確認する(ステップS74202)。   41 and 42 are flowcharts showing the main control communication normal process (step S742) that is executed when the value of the main control communication control code is 1. FIG. In the main control communication normal process, the payout control CPU 371 subtracts 1 from the value of the main control communication control timer (step S74201) and checks whether the main control communication control timer has timed out (step S74202).

この実施の形態では、前述したように、払出制御用マイクロコンピュータ370から接続OKコマンドを受信して1秒経過するごとに、遊技制御用マイクロコンピュータ560から次の接続確認コマンドが送信される。従って、ステップS74202において主制御通信制御タイマがタイムアウトしたということは、接続OKコマンドの送信後1秒を遙かに越えて1050ms(ステップS7417,S74209参照)を経過しても次の接続確認コマンドを受信できなかった場合である。そのため、払出制御用CPU371は、主制御通信制御コードに主制御接続確認処理を示す値「0」をセットして(ステップS74203)、主制御接続確認処理に戻り通信状態の回復を待つように制御する。   In this embodiment, as described above, every time one second elapses after the connection OK command is received from the payout control microcomputer 370, the next connection confirmation command is transmitted from the game control microcomputer 560. Therefore, if the main control communication control timer has timed out in step S74202, it means that the next connection confirmation command is issued even if 1050 ms (see steps S7417 and S74209) elapses after 1 second has passed since the connection OK command was transmitted. This is a case where reception was not possible. Therefore, the payout control CPU 371 sets a value “0” indicating the main control connection confirmation process in the main control communication control code (step S74203), returns to the main control connection confirmation process, and controls to wait for the recovery of the communication state. To do.

なお、払出制御用CPU371は、ステップS74202で主制御通信制御タイマがタイムアウトしていれば、主制御通信受信バッファをクリアする。そのようにすることによって、その後の処理で受信コマンドを誤って認識して誤った処理を実行してしまう事態を防止することができる。   The payout control CPU 371 clears the main control communication reception buffer if the main control communication control timer has timed out in step S74202. By doing so, it is possible to prevent a situation in which the received command is erroneously recognized in the subsequent processing and the erroneous processing is executed.

主制御通信制御タイマがタイムアウトしていなければ、払出制御用CPU371は、主制御通信受信バッファに受信コマンドが格納されているか否かを確認する(ステップS74204)。主制御通信受信バッファに受信コマンドが格納されていれば、払出制御用CPU371は、受信したコマンドが接続確認コマンドであるか否かを確認する(ステップS74205)。接続確認コマンドを受信していれば、払出制御用CPU371は、接続OKコマンドをセットし(ステップS74206)、主制御送信コマンド変換処理を実行する(ステップS74207)。なお、ステップS74207の主制御送信コマンド変換処理では、接続OKコマンドの下位4ビットに制御状態(払出個数異常エラーや、球切れエラー、満タンエラー、賞球エラーなどのエラー状態)をセットする処理が行われる。そして、払出制御用CPU371は、変換後の接続OKコマンドを遊技制御用マイクロコンピュータ560に送信する制御を行う(ステップS74208)。具体的には、払出制御用CPU371は、シリアル通信回路380の送信レジスタに接続OKコマンドを出力する処理を行う。   If the main control communication control timer has not timed out, the payout control CPU 371 checks whether or not a reception command is stored in the main control communication reception buffer (step S74204). If a reception command is stored in the main control communication reception buffer, the payout control CPU 371 checks whether or not the received command is a connection confirmation command (step S74205). If a connection confirmation command has been received, the payout control CPU 371 sets a connection OK command (step S74206) and executes main control transmission command conversion processing (step S74207). In the main control transmission command conversion process in step S74207, a process for setting a control state (an error state such as a payout number error error, a ball out error, a full tank error, a prize ball error) in the lower 4 bits of the connection OK command is performed. Done. Then, the payout control CPU 371 performs control to transmit the converted connection OK command to the game control microcomputer 560 (step S74208). Specifically, the payout control CPU 371 performs processing for outputting a connection OK command to the transmission register of the serial communication circuit 380.

なお、払出制御用CPU371は、ステップS74208で接続OKコマンドを送信すると、主制御通信受信バッファをクリアする。そのようにすることによって、その後の処理で受信コマンドを誤って認識して誤った処理を実行してしまう事態を防止することができる。   The payout control CPU 371 clears the main control communication reception buffer when the connection OK command is transmitted in step S74208. By doing so, it is possible to prevent a situation in which the received command is erroneously recognized in the subsequent processing and the erroneous processing is executed.

そして、払出制御用CPU371は、主制御通信制御タイマに所定値(この実施の形態では1050ms)をセットする(ステップS74209)。   Then, the payout control CPU 371 sets a predetermined value (1050 ms in this embodiment) in the main control communication control timer (step S74209).

ステップS74205で受信したコマンドが接続確認コマンドでなければ、賞球個数コマンドを受信していることになる。この場合、払出制御用CPU371は、エラーフラグの値が0であるか否かを確認する(ステップS74210)。エラーフラグの値が0でなければ(すなわち、エラー状態であり、いずれかのエラービットがセットされていれば)、ステップS74219に移行する。エラーフラグの値が0であれば(すなわち、エラー状態となっておらず、いずれのエラービットもセットされていなければ)、払出制御用CPU371は、BRDY信号を入力しているか否かを確認する(ステップS74211)。BRDY信号を入力していれば、ステップS74219に移行する。   If the command received in step S74205 is not a connection confirmation command, it means that a prize ball number command has been received. In this case, the payout control CPU 371 checks whether or not the value of the error flag is 0 (step S74210). If the value of the error flag is not 0 (that is, if it is in an error state and any error bit is set), the process proceeds to step S74219. If the value of the error flag is 0 (that is, if no error state is set and no error bit is set), the payout control CPU 371 checks whether a BRDY signal is input. (Step S74211). If the BRDY signal is input, the process proceeds to step S74219.

BRDY信号も入力していなければ、払出制御用CPU371は、払出制御状態を示す払出制御状態フラグをロードし(ステップS74212)、賞球払出動作中または球貸し払出動作中であるか否かを確認する(ステップS74213)。具体的には、払出制御用CPU371は、払出制御状態フラグに賞球払出動作中指定ビット(賞球払出動作中であることを示すビット)または球貸し払出動作中指定ビット(球貸し払出動作中であることを示すビット)がセットされているか否かを確認する。賞球払出動作中または球貸し払出動作中であれば、ステップS74219に移行する。なお、この実施の形態では、賞球払出動作を終了して賞球終了コマンドを受信してから次の賞球個数コマンドが送信されるので、通信エラーなどの異常が発生していないかぎり、ステップS74213において賞球払出動作中であると判定されることはない。   If no BRDY signal is input, the payout control CPU 371 loads a payout control state flag indicating the payout control state (step S74212), and confirms whether the winning ball payout operation or the ball lending payout operation is in progress. (Step S74213). Specifically, the payout control CPU 371 specifies a prize ball payout operation designation bit (bit indicating that a prize ball payout operation is in progress) or a ball lending payout operation designation bit (in a ball lending payout operation) in the payout control state flag. It is confirmed whether or not a bit indicating that is set. If the winning ball payout operation or the ball lending payout operation is being performed, the process proceeds to step S74219. In this embodiment, since the next prize ball number command is transmitted after the prize ball payout operation is finished and the prize ball end command is received, the step is performed unless an abnormality such as a communication error occurs. In S74213, it is not determined that the prize ball payout operation is in progress.

賞球払出動作中でも球貸し払出動作中でもなければ、受信した賞球個数コマンドにもとづく賞球払出動作を直ちに開始できる場合である。この場合、払出制御用CPU371は、主制御通信受信バッファの下位4ビット(すなわち、賞球個数コマンドにセットされた賞球個数)を未払出個数カウンタにセットする(ステップS74214)。なお、未払出個数カウンタは、賞球や貸し球の未払出数をカウントするためのカウンタである。   If neither the winning ball payout operation nor the ball lending payout operation is in progress, the winning ball payout operation based on the received winning ball number command can be started immediately. In this case, the payout control CPU 371 sets the lower 4 bits of the main control communication reception buffer (that is, the number of winning balls set in the winning ball number command) in the unpaid-out number counter (step S74214). The unpaid-out number counter is a counter for counting the number of unpaid out prize balls and rental balls.

次いで、払出制御用CPU371は、賞球個数受付コマンドを遊技制御用マイクロコンピュータ560に送信する制御を行う(ステップS74215)。具体的には、払出制御用CPU371は、シリアル通信回路380の送信レジスタに賞球個数受付コマンドを出力する処理を行う。   Next, the payout control CPU 371 performs control to transmit a prize ball number acceptance command to the game control microcomputer 560 (step S74215). Specifically, the payout control CPU 371 performs processing for outputting a prize ball number acceptance command to the transmission register of the serial communication circuit 380.

なお、払出制御用CPU371は、ステップS74215で賞球個数受付コマンドを送信すると、主制御通信受信バッファをクリアする。そのようにすることによって、その後の処理で受信コマンドを誤って認識して誤った処理を実行してしまう事態を防止することができる。   The payout control CPU 371 clears the main control communication reception buffer when it transmits a prize ball number acceptance command in step S74215. By doing so, it is possible to prevent a situation in which the received command is erroneously recognized in the subsequent processing and the erroneous processing is executed.

次いで、払出制御用CPU371は、主制御通信制御コードに主制御通信終了処理を示す値「3」をセットする(ステップS74216)。そして、払出制御用CPU371は、主制御通信制御タイマに所定値(例えば、1秒)をセットする(ステップS74218)。なお、ステップS74218でセットされた値にもとづいて、賞球個数受付コマンドを送信した後、1秒経過後に賞球払出動作を完了していなければ賞球準備中コマンドが送信されることになる。   Next, the payout control CPU 371 sets a value “3” indicating the main control communication end process in the main control communication control code (step S74216). Then, the payout control CPU 371 sets a predetermined value (for example, 1 second) in the main control communication control timer (step S74218). It should be noted that if a prize ball payout operation is not completed after a lapse of one second after the prize ball number acceptance command is transmitted based on the value set in step S74218, a prize ball preparation command is transmitted.

ステップS74219では、払出制御用CPU371は、主制御通信受信バッファの下位4ビット(すなわち、賞球個数コマンドのセットされた賞球個数)を主制御通信賞球個数バッファに格納する。すなわち、この場合、何らかのエラー状態が発生していたり、賞球払出動作中や球貸し払出動作中、球貸し準備中の場合であるので、受信した賞球個数コマンドにもとづく賞球払出動作を直ちに開始することはできない。そのため、払出制御用CPU371は、賞球個数受付コマンドの返信を保留するとともに、賞球個数コマンドにセットされた賞球個数を主制御通信賞球個数バッファに一旦退避する。   In step S74219, the payout control CPU 371 stores the lower 4 bits of the main control communication reception buffer (that is, the number of prize balls set with the prize ball number command) in the main control communication prize ball number buffer. That is, in this case, an error state has occurred, or during the winning ball payout operation, the ball lending payout operation, or during the ball lending preparation, the winning ball payout operation based on the received winning ball number command is immediately performed. Can't start. Therefore, the payout control CPU 371 suspends the reply of the prize ball number acceptance command and temporarily saves the prize ball number set in the prize ball number command in the main control communication prize ball number buffer.

次いで、払出制御用CPU371は、賞球準備中コマンドをセットし(ステップS74220)、主制御送信コマンド変換処理を実行する(ステップS74221)。なお、ステップS74221の主制御送信コマンド変換処理では、賞球準備中コマンドの下位4ビットに制御状態(払出個数異常エラーや、球切れエラー、満タンエラー、賞球エラーなどのエラー状態)をセットする処理が行われる。そして、払出制御用CPU371は、変換後の賞球準備中コマンドを遊技制御用マイクロコンピュータ560に送信する制御を行う(ステップS74222)。具体的には、払出制御用CPU371は、シリアル通信回路380の送信レジスタに賞球準備中コマンドを出力する処理を行う。   Next, the payout control CPU 371 sets a command for preparing a prize ball (step S74220), and executes main control transmission command conversion processing (step S74221). In the main control transmission command conversion process in step S74221, a control state (error state such as a payout number error error, a ball runout error, a full tank error, a prize ball error, etc.) is set in the lower 4 bits of the command for preparing a prize ball. Processing is performed. Then, the payout control CPU 371 performs control to transmit the converted prize ball preparing command to the game control microcomputer 560 (step S74222). Specifically, the payout control CPU 371 performs processing for outputting a prize ball preparing command to the transmission register of the serial communication circuit 380.

なお、払出制御用CPU371は、ステップS74222で賞球準備中コマンドを送信すると、主制御通信受信バッファをクリアする。そのようにすることによって、その後の処理で受信コマンドを誤って認識して誤った処理を実行してしまう事態を防止することができる。   Note that the payout control CPU 371 clears the main control communication reception buffer when the award ball preparing command is transmitted in step S74222. By doing so, it is possible to prevent a situation in which the received command is erroneously recognized in the subsequent processing and the erroneous processing is executed.

次いで、払出制御用CPU371は、主制御通信制御コードに主制御通信中処理を示す値「2」をセットする(ステップS74223)。そして、払出制御用CPU371は、主制御通信制御タイマに所定値(この実施の形態では1秒)をセットする(ステップS74224)。なお、ステップS74224でセットされた値にもとづいて、賞球準備中コマンドを送信した後、1秒経過後にまだ賞球払出動作を開始できる状態になっていなければ次の賞球準備中コマンドが送信されることになる。   Next, the payout control CPU 371 sets a value “2” indicating the main control communication process to the main control communication control code (step S74223). Then, the payout control CPU 371 sets a predetermined value (1 second in this embodiment) in the main control communication control timer (step S74224). It should be noted that, after the command for preparing a prize ball is transmitted based on the value set in step S74224, the command for preparing the next prize ball is transmitted if it is not ready to start the prize ball payout operation after one second has elapsed. Will be.

図43および図44は、主制御通信制御コードの値が2の場合に実行される主制御通信中処理(ステップS743)を示すフローチャートである。主制御通信中処理において、払出制御用CPU371は、まず、主制御通信受信バッファに受信コマンドが格納されているか否かを確認する(ステップS74301)。主制御通信受信バッファに受信コマンドが格納されていれば、払出制御用CPU371は、受信したコマンドが接続確認コマンドであるか否かを確認する(ステップS74302)。接続確認コマンドでなければ、ステップS74306に移行する。接続確認コマンドを受信していれば、払出制御用CPU371は、接続OKコマンドをセットし(ステップS74303)、主制御送信コマンド変換処理を実行する(ステップS74304)。なお、ステップS74304の主制御送信コマンド変換処理では、接続OKコマンドの下位4ビットに制御状態(払出個数異常エラーや、球切れエラー、満タンエラー、賞球エラーなどのエラー状態)をセットする処理が行われる。そして、払出制御用CPU371は、変換後の接続OKコマンドを遊技制御用マイクロコンピュータ560に送信する制御を行う(ステップS74305)。具体的には、払出制御用CPU371は、シリアル通信回路380の送信レジスタに接続OKコマンドを出力する処理を行う。そして、ステップS74306に移行する。   43 and 44 are flowcharts showing the main control communication process (step S743) executed when the value of the main control communication control code is 2. FIG. In the main control communication process, the payout control CPU 371 first checks whether or not a reception command is stored in the main control communication reception buffer (step S74301). If a reception command is stored in the main control communication reception buffer, the payout control CPU 371 checks whether or not the received command is a connection confirmation command (step S 74302). If it is not a connection confirmation command, the process proceeds to step S74306. If a connection confirmation command has been received, the payout control CPU 371 sets a connection OK command (step S74303) and executes main control transmission command conversion processing (step S74304). In the main control transmission command conversion process in step S74304, a process of setting a control state (an error state such as a payout number error error, a ball out error, a full tank error, a prize ball error) in the lower 4 bits of the connection OK command is performed. Done. Then, the payout control CPU 371 performs control to transmit the converted connection OK command to the game control microcomputer 560 (step S74305). Specifically, the payout control CPU 371 performs processing for outputting a connection OK command to the transmission register of the serial communication circuit 380. Then, the process proceeds to step S74306.

ステップS74306では、払出制御用CPU371は、エラーフラグに主制御通信エラー指定ビットをセットする。すなわち、主制御通信中処理は、賞球個数コマンドを受信した後、受信した賞球個数コマンドにもとづく賞球払出動作を開始可能な状態となるまでに実行される処理であり、賞球個数受付コマンドの返信が保留されて、遊技制御用マイクロコンピュータ560は賞球個数受付コマンドの受信待ち状態となっているのであるから、この間に遊技制御用マイクロコンピュータ560から新たに払出制御コマンドを受信することはない筈である。それにもかかわらず、新たなコマンドを受信したということは通信状態に何らかの異常が生じたと判断することができるのであるから、払出制御用CPU371は、主制御通信エラー指定ビットをセットする処理を行う。   In step S74306, the payout control CPU 371 sets a main control communication error designation bit in the error flag. That is, the main control communication process is a process that is executed after receiving the prize ball number command until the prize ball payout operation can be started based on the received prize ball number command. Since the response of the command is suspended, the game control microcomputer 560 is in a waiting state for receiving the award ball number reception command. During this time, a new payout control command is received from the game control microcomputer 560. There is no trap. Nevertheless, since receiving a new command can determine that some abnormality has occurred in the communication state, the payout control CPU 371 performs processing for setting a main control communication error designation bit.

なお、払出制御用CPU371は、ステップS74306で主制御通信エラー指定ビットをセットすると、主制御通信受信バッファをクリアする。そのようにすることによって、その後の処理で受信コマンドを誤って認識して誤った処理を実行してしまう事態を防止することができる。   The payout control CPU 371 clears the main control communication reception buffer when the main control communication error designation bit is set in step S74306. By doing so, it is possible to prevent a situation in which the received command is erroneously recognized in the subsequent processing and the erroneous processing is executed.

次いで、払出制御用CPU371は、主制御通信制御コードに主制御通信通常処理を示す値「1」をセットする(ステップS74307)。そして、払出制御用CPU371は、主制御通信制御タイマに所定値(この実施の形態では1050ms)をセットする(ステップS74308)。   Next, the payout control CPU 371 sets a value “1” indicating the main control communication normal process in the main control communication control code (step S74307). Then, the payout control CPU 371 sets a predetermined value (1050 ms in this embodiment) to the main control communication control timer (step S74308).

主制御通信受信バッファに受信コマンドがなければ、払出制御用CPU371は、主制御通信制御タイマの値を1減算し(ステップS74309)、主制御通信制御タイマがタイムアウトしたか否かを確認する(ステップS74310)。   If there is no reception command in the main control communication reception buffer, the payout control CPU 371 subtracts 1 from the value of the main control communication control timer (step S74309), and checks whether the main control communication control timer has timed out (step S74309). S74310).

主制御通信制御タイマがタイムアウトしていれば(ステップS74310のY)、賞球準備中コマンドを前回送信してから1秒以上経過したことを意味する。この場合、払出制御用CPU371は、次の賞球準備中コマンドを送信するために、賞球準備中コマンドをセットし(ステップS74311)、主制御送信コマンド変換処理を実行する(ステップS74312)。なお、ステップS74312の主制御送信コマンド変換処理では、賞球準備中コマンドの下位4ビットに制御状態(払出個数異常エラーや、球切れエラー、満タンエラー、賞球エラーなどのエラー状態)をセットする処理が行われる。そして、払出制御用CPU371は、変換後の賞球準備中コマンドを遊技制御用マイクロコンピュータ560に送信する制御を行う(ステップS74313)。具体的には、払出制御用CPU371は、シリアル通信回路380の送信レジスタに賞球準備中コマンドを出力する処理を行う。   If the main control communication control timer has timed out (Y in step S74310), it means that one second or more has elapsed since the previous prize ball preparation command was transmitted. In this case, the payout control CPU 371 sets a prize ball preparing command in order to transmit the next prize ball preparing command (step S74311), and executes a main control transmission command conversion process (step S74312). In the main control transmission command conversion process of step S74312, the control state (error status such as a payout number error error, a ball outage error, a full tank error, a prize ball error, etc.) is set in the lower 4 bits of the command for preparing a prize ball. Processing is performed. Then, the payout control CPU 371 performs control to transmit the converted prize ball preparing command to the game control microcomputer 560 (step S74313). Specifically, the payout control CPU 371 performs processing for outputting a prize ball preparing command to the transmission register of the serial communication circuit 380.

そして、払出制御用CPU371は、主制御通信制御タイマに所定値(この実施の形態では1秒)をセットする(ステップS74314)。なお、ステップS74314でセットされた値にもとづいて、賞球準備中コマンドを送信した後、さらに1秒経過後にまだ賞球払出動作を開始できる状態になっていなければ次の賞球準備中コマンドが送信されることになる。   Then, the payout control CPU 371 sets a predetermined value (1 second in this embodiment) in the main control communication control timer (step S74314). It should be noted that, after the command for preparing a prize ball is transmitted based on the value set in step S74314, a command for preparing the next prize ball is issued if it is not yet ready to start a prize ball payout operation after one second has passed. Will be sent.

主制御通信制御タイマがタイムアウトしていなければ、払出制御用CPU371は、エラーフラグの値が0であるか否かを確認する(ステップS74315)。エラーフラグの値が0でなければ(すなわち、エラー状態であり、いずれかのエラービットがセットされていれば)、まだ賞球払出動作を開始できないので、そのまま処理を終了する。エラーフラグの値が0であれば(すなわち、エラー状態となっておらず、いずれのエラービットもセットされていなければ)、払出制御用CPU371は、BRDY信号を入力しているか否かを確認する(ステップS74316)。BRDY信号を入力していれば、まだ賞球払出動作を開始できないので、そのまま処理を終了する。   If the main control communication control timer has not timed out, the payout control CPU 371 checks whether or not the value of the error flag is 0 (step S74315). If the value of the error flag is not 0 (that is, if it is in an error state and one of the error bits is set), the winning ball payout operation cannot be started yet, so the processing is ended as it is. If the value of the error flag is 0 (that is, if no error state is set and no error bit is set), the payout control CPU 371 checks whether a BRDY signal is input. (Step S74316). If the BRDY signal has been input, the winning ball payout operation cannot be started yet, and the process is terminated as it is.

BRDY信号も入力していなければ、払出制御用CPU371は、払出制御状態を示す払出制御状態フラグをロードし(ステップS74317)、賞球払出動作中または球貸し払出動作中であるか否かを確認する(ステップS74318)。具体的には、払出制御用CPU371は、払出制御状態フラグに賞球払出動作中指定ビット(賞球払出動作中であることを示すビット)または球貸し払出動作中指定ビット(球貸し払出動作中であることを示すビット)がセットされているか否かを確認する。賞球払出動作中または球貸し払出動作中であれば、まだ賞球払出動作を開始できないので、そのまま処理を終了する。なお、この実施の形態では、賞球払出動作を終了して賞球終了コマンドを受信してから次の賞球個数コマンドが送信されるので、通信エラーなどの異常が発生していないかぎり、ステップS74318において賞球払出動作中であると判定されることはない。   If the BRDY signal is not input, the payout control CPU 371 loads a payout control state flag indicating the payout control state (step S74317), and confirms whether the winning ball payout operation or the ball lending payout operation is in progress. (Step S74318). Specifically, the payout control CPU 371 specifies a prize ball payout operation designation bit (bit indicating that a prize ball payout operation is in progress) or a ball lending payout operation designation bit (in a ball lending payout operation) in the payout control state flag. It is confirmed whether or not a bit indicating that is set. If the winning ball payout operation or the ball lending payout operation is in progress, the winning ball payout operation cannot be started yet, so the processing is ended as it is. In this embodiment, since the next award ball number command is transmitted after the award ball payout operation is finished and the award ball end command is received, the step is performed unless an abnormality such as a communication error occurs. In S74318, it is not determined that a prize ball payout operation is in progress.

賞球払出動作中でも球貸し払出動作中でもなければ、受信した賞球個数コマンドにもとづく賞球払出動作を開始可能な状態となったことを意味する。この場合、払出制御用CPU371は、主制御通信賞球個数バッファの下位4ビット(すなわち、一時退避した賞球個数)を未払出個数カウンタにセットする(ステップS74319)。   If neither the winning ball payout operation nor the ball lending payout operation is in progress, it means that the winning ball payout operation based on the received winning ball number command can be started. In this case, the payout control CPU 371 sets the lower 4 bits of the main control communication prize ball number buffer (that is, the temporarily saved prize ball number) in the unpaid number counter (step S74319).

なお、この実施の形態では、既に述べたように、賞球個数コマンドを受信したときに直ちに賞球払出動作を開始できない場合に、賞球個数コマンドで特定される賞球個数を直ちに未払出個数カウンタにセットするのではなく、主制御通信賞球個数バッファに一旦退避するのであるが、このように制御するのは、例えば、貸し球払出動作中に未払出個数カウンタに賞球個数が上乗せされて賞球個数を正確に管理できなくなる事態を防止するなど、払出制御に関する処理に不都合が生じないようにするためである。   In this embodiment, as described above, when the winning ball payout operation cannot be started immediately when the winning ball number command is received, the winning ball number specified by the winning ball number command is immediately set to the unpaid number. Instead of being set in the counter, it is temporarily saved in the main control communication award ball number buffer, but this control is performed, for example, by adding the award ball number to the unpaid number counter during the lending ball payout operation. This is to prevent inconvenience in processing related to payout control, such as preventing a situation where the number of winning balls cannot be accurately managed.

次いで、払出制御用CPU371は、賞球個数受付コマンドを遊技制御用マイクロコンピュータ560に送信する制御を行う(ステップS74320)。具体的には、払出制御用CPU371は、シリアル通信回路380の送信レジスタに賞球個数受付コマンドを出力する処理を行う。   Next, the payout control CPU 371 performs control to transmit a prize ball number acceptance command to the game control microcomputer 560 (step S74320). Specifically, the payout control CPU 371 performs processing for outputting a prize ball number acceptance command to the transmission register of the serial communication circuit 380.

次いで、払出制御用CPU371は、主制御通信制御コードに主制御通信終了処理を示す値「3」をセットする(ステップS74321)。そして、払出制御用CPU371は、主制御通信制御タイマに所定値(この実施の形態では1秒)をセットする(ステップS74322)。なお、ステップS74322でセットされた値にもとづいて、賞球個数受付コマンドを送信した後、1秒経過後に賞球払出動作を完了していなければ賞球準備中コマンドが送信されることになる。   Next, the payout control CPU 371 sets a value “3” indicating the main control communication end process in the main control communication control code (step S74321). Then, the payout control CPU 371 sets a predetermined value (1 second in this embodiment) in the main control communication control timer (step S74322). It should be noted that if a prize ball payout operation is not completed after a lapse of one second after the prize ball number acceptance command is transmitted based on the value set in step S74322, a prize ball preparing command is transmitted.

図45は、主制御通信制御コードの値が3の場合に実行される主制御通信終了処理(ステップS744)を示すフローチャートである。主制御通信終了処理において、払出制御用CPU371は、まず、主制御通信受信バッファに受信コマンドが格納されているか否かを確認する(ステップS74401)。主制御通信受信バッファに受信コマンドが格納されていれば、払出制御用CPU371は、受信したコマンドが接続確認コマンドであるか否かを確認する(ステップS74402)。接続確認コマンドでなければ、ステップS74406に移行する。接続確認コマンドを受信していれば、払出制御用CPU371は、接続OKコマンドをセットし(ステップS74403)、主制御送信コマンド変換処理を実行する(ステップS74404)。なお、ステップS74404の主制御送信コマンド変換処理では、接続OKコマンドの下位4ビットに制御状態(払出個数異常エラーや、球切れエラー、満タンエラー、賞球エラーなどのエラー状態)をセットする処理が行われる。そして、払出制御用CPU371は、変換後の接続OKコマンドを遊技制御用マイクロコンピュータ560に送信する制御を行う(ステップS74405)。具体的には、払出制御用CPU371は、シリアル通信回路380の送信レジスタに接続OKコマンドを出力する処理を行う。そして、ステップS74406に移行する。   FIG. 45 is a flowchart showing a main control communication end process (step S744) executed when the value of the main control communication control code is 3. In the main control communication end process, the payout control CPU 371 first checks whether or not a reception command is stored in the main control communication reception buffer (step S74401). If a reception command is stored in the main control communication reception buffer, the payout control CPU 371 checks whether or not the received command is a connection confirmation command (step S74402). If it is not a connection confirmation command, the process proceeds to step S74406. If a connection confirmation command has been received, the payout control CPU 371 sets a connection OK command (step S74403) and executes main control transmission command conversion processing (step S74404). In the main control transmission command conversion process of step S74404, a process of setting a control state (an error state such as a payout number error error, a ball out error, a full tank error, a prize ball error) in the lower 4 bits of the connection OK command is performed. Done. Then, the payout control CPU 371 performs control to transmit the converted connection OK command to the game control microcomputer 560 (step S74405). Specifically, the payout control CPU 371 performs processing for outputting a connection OK command to the transmission register of the serial communication circuit 380. Then, control goes to a step S74406.

ステップS74406では、払出制御用CPU371は、エラーフラグに主制御通信エラー指定ビットをセットする。すなわち、主制御通信終了処理は、賞球個数コマンドを受信して賞球払出動作を開始した後、受信した賞球個数コマンドにもとづく賞球払出動作を終了するまで実行する処理であり、技制御用マイクロコンピュータ560は賞球終了コマンドの受信待ち状態となっているのであるから、この間に遊技制御用マイクロコンピュータ560から新たに払出制御コマンドを受信することはない筈である。それにもかかわらず、新たなコマンドを受信したということは通信状態に何らかの異常が生じたと判断することができるのであるから、払出制御用CPU371は、主制御通信エラー指定ビットをセットする処理を行う。   In step S74406, the payout control CPU 371 sets a main control communication error designation bit in the error flag. That is, the main control communication end process is a process executed after receiving the prize ball number command and starting the prize ball payout operation until the prize ball payout operation based on the received prize ball number command is ended. Since the microcomputer for use 560 is in a waiting state for receiving the winning ball end command, it is unlikely that a new payout control command will be received from the game control microcomputer 560 during this period. Nevertheless, since receiving a new command can determine that some abnormality has occurred in the communication state, the payout control CPU 371 performs processing for setting a main control communication error designation bit.

なお、払出制御用CPU371は、ステップS74406で主制御通信エラー指定ビットをセットすると、主制御通信受信バッファをクリアする。そのようにすることによって、その後の処理で受信コマンドを誤って認識して誤った処理を実行してしまう事態を防止することができる。   The payout control CPU 371 clears the main control communication reception buffer when the main control communication error designation bit is set in step S74406. By doing so, it is possible to prevent a situation in which the received command is erroneously recognized in the subsequent processing and the erroneous processing is executed.

次いで、払出制御用CPU371は、主制御通信制御コードに主制御通信通常処理を示す値「1」をセットする(ステップS74407)。そして、払出制御用CPU371は、主制御通信制御タイマに所定値(この実施の形態では1050ms)をセットする(ステップS74408)。   Next, the payout control CPU 371 sets a value “1” indicating the main control communication normal process in the main control communication control code (step S74407). Then, the payout control CPU 371 sets a predetermined value (1050 ms in this embodiment) in the main control communication control timer (step S74408).

主制御通信受信バッファに受信コマンドがなければ、払出制御用CPU371は、主制御通信制御タイマの値を1減算し(ステップS74409)、主制御通信制御タイマがタイムアウトしたか否かを確認する(ステップS74410)。   If there is no reception command in the main control communication reception buffer, the payout control CPU 371 subtracts 1 from the value of the main control communication control timer (step S74409), and checks whether the main control communication control timer has timed out (step S74409). S74410).

主制御通信制御タイマがタイムアウトしていれば(ステップS74410のY)、賞球個数受付コマンドや賞球準備中コマンドを前回送信してから1秒以上経過したことを意味する。この場合、払出制御用CPU371は、次の賞球準備中コマンドを送信するために、賞球準備中コマンドをセットし(ステップS74411)、主制御送信コマンド変換処理を実行する(ステップS74412)。なお、ステップS74412の主制御送信コマンド変換処理では、賞球準備中コマンドの下位4ビットに制御状態(払出個数異常エラーや、球切れエラー、満タンエラー、賞球エラーなどのエラー状態)をセットする処理が行われる。そして、払出制御用CPU371は、変換後の賞球準備中コマンドを遊技制御用マイクロコンピュータ560に送信する制御を行う(ステップS74413)。具体的には、払出制御用CPU371は、シリアル通信回路380の送信レジスタに賞球準備中コマンドを出力する処理を行う。   If the main control communication control timer has timed out (Y in step S74410), it means that one second or more has elapsed since the last time a prize ball acceptance command or a prize ball preparation command was transmitted. In this case, the payout control CPU 371 sets a prize ball preparing command in order to transmit the next prize ball preparing command (step S74411), and executes main control transmission command conversion processing (step S74412). In the main control transmission command conversion process in step S74412, a control state (error state such as a payout number error error, a ball runout error, a full tank error, a prize ball error, etc.) is set in the lower 4 bits of the command for preparing a prize ball. Processing is performed. Then, the payout control CPU 371 performs control to transmit the converted prize ball preparing command to the game control microcomputer 560 (step S74413). Specifically, the payout control CPU 371 performs processing for outputting a prize ball preparing command to the transmission register of the serial communication circuit 380.

そして、払出制御用CPU371は、主制御通信制御タイマに所定値(この実施の形態では1秒)をセットする(ステップS74414)。なお、ステップS74414でセットされた値にもとづいて、賞球準備中コマンドを送信した後、さらに1秒経過後にまだ賞球払出動作が終了していなければ次の賞球準備中コマンドが送信されることになる。   Then, the payout control CPU 371 sets a predetermined value (1 second in this embodiment) to the main control communication control timer (step S74414). It should be noted that, after the command for preparing a prize ball is transmitted based on the value set in step S74414, the command for preparing the next prize ball is transmitted if the prize ball payout operation is not yet completed after one second has passed. It will be.

主制御通信制御タイマがタイムアウトしていなければ、払出制御用CPU371は、払出制御状態フラグをロードし(ステップS74415)、賞球払出動作中であるか否かを確認する(ステップS74416)。具体的には、払出制御用CPU371は、払出制御状態フラグに賞球払出動作中指定ビットがセットされているか否かを確認する。賞球払出動作中であれば、受信した賞球個数コマンドにもとづく賞球払出動作をまだ終了していないことを意味するので、払出制御用CPU371は、そのまま処理を終了する。賞球払出動作中でなければ、受信した賞球個数コマンドにもとづく賞球払出動作を終了したことを意味する。そのため、払出制御用CPU371は、賞球終了コマンドを遊技制御用マイクロコンピュータ560に送信する制御を行う(ステップS74417)。具体的には、払出制御用CPU371は、シリアル通信回路380の送信レジスタに賞球終了コマンドを出力する処理を行う。   If the main control communication control timer has not timed out, the payout control CPU 371 loads a payout control state flag (step S74415), and checks whether or not a prize ball payout operation is in progress (step S74416). Specifically, the payout control CPU 371 checks whether or not a prize ball payout operation specifying bit is set in the payout control state flag. If the winning ball payout operation is in progress, it means that the winning ball payout operation based on the received winning ball number command has not been finished yet, and the payout control CPU 371 ends the process as it is. If no winning ball payout operation is in progress, it means that the winning ball payout operation based on the received winning ball number command has ended. Therefore, the payout control CPU 371 performs control to transmit a prize ball end command to the game control microcomputer 560 (step S74417). Specifically, the payout control CPU 371 performs a process of outputting a prize ball end command to the transmission register of the serial communication circuit 380.

なお、払出制御用CPU371は、ステップS74417で賞球終了コマンドを送信すると、主制御通信受信バッファをクリアする。そのようにすることによって、その後の処理で受信コマンドを誤って認識して誤った処理を実行してしまう事態を防止することができる。   The payout control CPU 371 clears the main control communication reception buffer when it transmits the winning ball end command in step S74417. By doing so, it is possible to prevent a situation in which the received command is erroneously recognized in the subsequent processing and the erroneous processing is executed.

次いで、払出制御用CPU371は、主制御通信制御コードに主制御通信通常処理を示す値「1」をセットする(ステップS74418)。そして、払出制御用CPU371は、主制御通信制御タイマに所定値(この実施の形態では1050ms)をセットする(ステップS74419)。   Next, the payout control CPU 371 sets a value “1” indicating the main control communication normal process in the main control communication control code (step S74418). Then, the payout control CPU 371 sets a predetermined value (1050 ms in this embodiment) to the main control communication control timer (step S74419).

次に、演出制御手段の動作を説明する。図46は、演出制御基板80に搭載されている演出制御手段としての演出制御用マイクロコンピュータ100(具体的には、演出制御用CPU101a)が実行するメイン処理を示すフローチャートである。演出制御用CPU101aは、電源が投入されると、メイン処理の実行を開始する。メイン処理では、まず、RAM領域のクリアや各種初期値の設定、また演出制御の起動間隔(例えば、2ms)を決めるためのタイマの初期設定等を行うための初期化処理を行う(ステップS781)。   Next, the operation of the effect control means will be described. FIG. 46 is a flowchart showing main processing executed by the effect control microcomputer 100 (specifically, the effect control CPU 101a) as effect control means mounted on the effect control board 80. The effect control CPU 101a starts executing the main process when the power is turned on. In the main processing, first, initialization processing is performed for clearing the RAM area, setting various initial values, and initializing a timer for determining the activation control activation interval (for example, 2 ms) (step S781). .

その後、演出制御用CPU101aは、所定の乱数を生成するためのカウンタのカウンタ値を更新する乱数更新処理を実行する(ステップS782)。そして、タイマ割込フラグの監視(ステップS783)を行う。タイマ割込フラグがセットされていない場合には、ステップS782に移行する。なお、タイマ割込が発生すると、演出制御用CPU101aは、タイマ割込処理においてタイマ割込フラグをセットする。タイマ割込フラグがセットされていたら、演出制御用CPU101aは、そのフラグをクリアし(ステップS784)、ステップS785〜S786の演出制御処理、および入賞口スイッチの検出信号の状態の異常を検出するための異常判定処理(ステップS787)を実行する。   Thereafter, the effect control CPU 101a executes random number update processing for updating the counter value of the counter for generating a predetermined random number (step S782). Then, the timer interrupt flag is monitored (step S783). If the timer interrupt flag is not set, the process proceeds to step S782. When a timer interrupt occurs, the effect control CPU 101a sets a timer interrupt flag in the timer interrupt process. If the timer interrupt flag is set, the effect control CPU 101a clears the flag (step S784), and detects an abnormality in the effect control processing in steps S785 to S786 and the detection signal state of the winning opening switch. The abnormality determination process (step S787) is executed.

演出制御処理において、演出制御用CPU101aは、まず、受信した演出制御コマンドを解析し、受信した演出制御コマンドに応じたフラグをセットする処理等を行う(コマンド解析処理:ステップS785)。   In the effect control process, the effect control CPU 101a first analyzes the received effect control command and performs a process of setting a flag according to the received effect control command (command analysis process: step S785).

次いで、演出制御用CPU101aは、演出制御プロセス処理を行う(ステップS786)。演出制御プロセス処理では、制御状態に応じた各プロセスのうち、現在の制御状態(演出制御プロセスフラグ)に対応した処理を選択して演出表示装置9の表示制御を実行する。   Next, the effect control CPU 101a performs effect control process processing (step S786). In the effect control process, the process corresponding to the current control state (effect control process flag) is selected from the processes corresponding to the control state, and display control of the effect display device 9 is executed.

図47は、コマンド解析処理(ステップS785)の具体例を示すフローチャートである。主基板31から受信された演出制御コマンドは受信コマンドバッファに格納されるが、コマンド解析処理では、演出制御用CPU101aは、コマンド受信バッファに格納されているコマンドの内容を確認する。   FIG. 47 is a flowchart illustrating a specific example of command analysis processing (step S785). The effect control command received from the main board 31 is stored in the reception command buffer, but in the command analysis process, the effect control CPU 101a checks the content of the command stored in the command reception buffer.

コマンド解析処理において、演出制御用CPU101aは、まず、コマンド受信バッファに受信コマンドが格納されているか否か確認する(ステップS611)。格納されているか否かは、コマンド受信個数カウンタの値と読出ポインタとを比較することによって判定される。両者が一致している場合が、受信コマンドが格納されていない場合である。コマンド受信バッファに受信コマンドが格納されている場合には、演出制御用CPU101aは、コマンド受信バッファから受信コマンドを読み出す(ステップS612)。なお、読み出したら読出ポインタの値を+2しておく(ステップS613)。+2するのは2バイト(1コマンド)ずつ読み出すからである。   In the command analysis process, the effect control CPU 101a first checks whether or not a reception command is stored in the command reception buffer (step S611). Whether it is stored or not is determined by comparing the value of the command reception number counter with the read pointer. The case where both match is the case where the received command is not stored. When the reception command is stored in the command reception buffer, the effect control CPU 101a reads the reception command from the command reception buffer (step S612). When read, the value of the read pointer is incremented by +2 (step S613). The reason for +2 is that 2 bytes (1 command) are read at a time.

受信した演出制御コマンドが入力ポート状態指定コマンド(図21参照)であれば(ステップS614)、演出制御用CPU101aは、受信した変動パターンコマンドを、RAMに形成されている入力ポート状態指定コマンド格納領域に格納する(ステップS615)。そして、入力ポート状態指定コマンド受信フラグをセットする(ステップS616)。   If the received effect control command is an input port state designation command (see FIG. 21) (step S614), the effect control CPU 101a stores the received variation pattern command in the input port state designation command storage area formed in the RAM. (Step S615). Then, an input port state designation command reception flag is set (step S616).

受信した演出制御コマンドがその他のコマンドであれば、演出制御用CPU101aは、受信した演出制御コマンドに応じたフラグをセットする(ステップS621)。そして、ステップS611に移行する。   If the received effect control command is another command, the effect control CPU 101a sets a flag according to the received effect control command (step S621). Then, control goes to a step S611.

なお、入力ポート状態指定コマンド以外のコマンドとして、図21に示されたような飾り図柄の変動に関するコマンド等がある。   As commands other than the input port state designation command, there are commands relating to variations in decorative symbols as shown in FIG.

図48は、図46に示されたメイン処理における演出制御プロセス処理(ステップS786)を示すフローチャートである。演出制御プロセス処理では、演出制御用CPU101aは、演出制御プロセスフラグの値に応じてステップS800〜S806のうちのいずれかの処理を行う。各処理において、以下のような処理を実行する。なお、演出制御プロセス処理では、演出表示装置9の表示状態が制御され、飾り図柄の可変表示が実現される。   FIG. 48 is a flowchart showing the effect control process (step S786) in the main process shown in FIG. In the effect control process, the effect control CPU 101a performs one of steps S800 to S806 according to the value of the effect control process flag. In each process, the following process is executed. In the effect control process, the display state of the effect display device 9 is controlled and variable display of decorative symbols is realized.

変動パターンコマンド受信待ち処理(ステップS800):遊技制御用マイクロコンピュータ560から変動パターンコマンドを受信しているか否か確認する。具体的には、コマンド解析処理でセットされる変動パターンコマンド受信フラグ(変動パターンコマンドを受信したことを示すフラグ)がセットされているか否か確認する。変動パターンコマンドを受信していれば、演出制御プロセスフラグの値を飾り図柄変動開始処理(ステップS801)に対応した値に変更する。   Fluctuation pattern command reception waiting process (step S800): It is confirmed whether or not a variation pattern command has been received from the game control microcomputer 560. Specifically, it is confirmed whether or not a variation pattern command reception flag (a flag indicating that a variation pattern command has been received) set in the command analysis processing is set. If the variation pattern command has been received, the value of the effect control process flag is changed to a value corresponding to the decorative symbol variation start process (step S801).

飾り図柄変動開始処理(ステップS801):飾り図柄の変動が開始されるように制御する。そして、演出制御プロセスフラグの値を飾り図柄変動中処理(ステップS802)に対応した値に更新する。   Decoration symbol variation start processing (step S801): Control is performed so that the variation of the ornament symbol is started. Then, the value of the effect control process flag is updated to a value corresponding to the decorative symbol changing process (step S802).

飾り図柄変動中処理(ステップS802):変動パターンを構成する各変動状態(変動速度)の切替タイミング等を制御するとともに、変動時間の終了を監視する。そして、変動時間が終了したら、演出制御プロセスフラグの値を飾り図柄変動停止処理(ステップS803)に対応した値に更新する。   Decoration symbol variation processing (step S802): Controls the switching timing of each variation state (variation speed) constituting the variation pattern and monitors the end of the variation time. When the variation time ends, the value of the effect control process flag is updated to a value corresponding to the decorative symbol variation stop process (step S803).

飾り図柄変動停止処理(ステップS803):飾り図柄の変動を停止し表示結果(停止図柄)を導出表示する制御を行う。そして、演出制御プロセスフラグの値を大当り表示処理(ステップS804)または変動パターンコマンド受信待ち処理(ステップS800)に対応した値に更新する。   Decoration symbol variation stop processing (step S803): Control is performed to stop the variation of the ornament symbol and derive and display the display result (stop symbol). Then, the value of the effect control process flag is updated to a value corresponding to the jackpot display process (step S804) or the variation pattern command reception waiting process (step S800).

大当り表示処理(ステップS804):大当りである場合には、変動時間の終了後、演出表示装置9に大当りの発生を報知するための画面を表示する制御を行う。そして、演出制御プロセスフラグの値を大当り遊技中処理(ステップS805)に対応した値に更新する。   Big hit display process (step S804): When the big hit is reached, after the variation time is over, the effect display device 9 is controlled to display a screen for notifying the occurrence of the big hit. Then, the value of the effect control process flag is updated to a value corresponding to the big hit game processing (step S805).

大当り遊技中処理(ステップS805):大当り遊技中の制御を行う。例えば、大入賞口開放中指定コマンドや大入賞口開放後指定コマンドを受信したら、演出表示装置9におけるラウンド数の表示制御等を行う。そして、演出制御プロセスフラグの値を大当り終了演出処理(ステップS806)に対応した値に更新する。   Big hit game processing (step S805): Control during big hit game is performed. For example, when a special winning opening opening designation command or a special winning opening open designation command is received, display control of the number of rounds in the effect display device 9 is performed. Then, the value of the effect control process flag is updated to a value corresponding to the jackpot end effect process (step S806).

大当り終了演出処理(ステップS806):演出表示装置9において、大当り遊技状態が終了したことを遊技者に報知する表示制御を行う。そして、演出制御プロセスフラグの値を変動パターンコマンド受信待ち処理(ステップS800)に対応した値に更新する。   Big hit end effect processing (step S806): In the effect display device 9, display control is performed to notify the player that the big hit gaming state has ended. Then, the value of the effect control process flag is updated to a value corresponding to the variation pattern command reception waiting process (step S800).

次に、演出制御用マイクロコンピュータ100が実行する入賞異常の処理を説明する。図49は、入賞異常の検出方法の一例を示す説明図である。図49に示す例では、入賞口スイッチ(始動口スイッチ14a、カウントスイッチ23、および各入賞口スイッチ29a,30a)のそれぞれについて、検出信号のオン状態が1秒を越えて継続したら入賞異常が生じたと判定する。なお、1秒の時間は一例であり、異常検出のための時間は1秒に限られない。また、入賞異常とは、入賞口スイッチの検出信号の状態の異常である。   Next, the winning abnormality processing executed by the production control microcomputer 100 will be described. FIG. 49 is an explanatory diagram illustrating an example of a method for detecting a prize abnormality. In the example shown in FIG. 49, for each of the prize opening switches (start opening switch 14a, count switch 23, and each prize opening switch 29a, 30a), a prize abnormality occurs if the ON state of the detection signal continues for more than 1 second. It is determined that The time of 1 second is an example, and the time for detecting an abnormality is not limited to 1 second. Also, the winning abnormality is an abnormality in the state of the detection signal of the winning opening switch.

図50は、演出制御用マイクロコンピュータ100が入賞異常の検出に関して使用するタイマの一例を示す説明図である。図50に示すように、入賞異常の検出に関して使用するタイマとして、始動口スイッチ14aに対応するタイマ、入賞口スイッチ30aに対応するタイマ、入賞口スイッチ29aに対応するタイマ、カウントスイッチ23に対応するタイマがある。なお、各タイマはRAMに形成されている。   FIG. 50 is an explanatory diagram showing an example of a timer used by the production control microcomputer 100 for detection of a winning abnormality. As shown in FIG. 50, the timer used for detecting the winning abnormality is a timer corresponding to the start port switch 14a, a timer corresponding to the winning port switch 30a, a timer corresponding to the winning port switch 29a, and a count switch 23. There is a timer. Each timer is formed in the RAM.

図51は、ステップS787の異常判定処理を示すフローチャートである。異常判定処理において、演出制御用CPU101aは、始動口スイッチ14aに対応するタイマ、入賞口スイッチ30aに対応するタイマ、入賞口スイッチ29aに対応するタイマおよびカウントスイッチ23に対応するタイマのうちのいずれかのタイマの値が0以外の値(動作中であることに相当)であるか否か確認する(ステップS711)。動作中のタイマがあれば、そのタイマの値を+1する(ステップS712)。なお、入賞異常の検出方法の他の例(図52〜図54参照)のようにタイマ動作中フラグを用い、タイマが動作中であるか否かをタイマ動作中フラグによって確認するようにしてもよい。   FIG. 51 is a flowchart showing the abnormality determination process in step S787. In the abnormality determination process, the effect control CPU 101a is one of a timer corresponding to the start port switch 14a, a timer corresponding to the winning port switch 30a, a timer corresponding to the winning port switch 29a, and a timer corresponding to the count switch 23. It is checked whether the timer value is a value other than 0 (corresponding to being in operation) (step S711). If there is an operating timer, the timer value is incremented by 1 (step S712). It should be noted that a timer operating flag is used as in another example of the winning abnormality detection method (see FIGS. 52 to 54), and whether or not the timer is operating is confirmed by the timer operating flag. Good.

また、演出制御用CPU101aは、いずれかのタイマの値が500(1秒に相当)を越えたか否か確認する(ステップS713)。500を越えたタイマがあれば、演出表示装置9に、「入賞異常が生じた旨」の表示を行う(ステップS714)。また、音声出力基板70に、異常報知音に相当する音番号データを出力する(ステップS715)。   In addition, the effect control CPU 101a checks whether or not the value of any timer exceeds 500 (corresponding to 1 second) (step S713). If there is a timer exceeding 500, the effect display device 9 displays “A prize abnormality has occurred” (step S714). Further, the sound number data corresponding to the abnormality notification sound is output to the sound output board 70 (step S715).

ステップS714,S715の処理によって、演出表示装置9において異常報知の表示がなされるとともに、スピーカ27が異常報知音が出力される。なお、ステップS714,S715の処理において、いずれのスイッチに入賞異常が生じたのかを区別可能な表示および音出力を行ってもよい。   Through the processing in steps S714 and S715, an abnormality notification is displayed on the effect display device 9, and an abnormality notification sound is output from the speaker 27. In addition, in the process of step S714, S715, you may perform the display and sound output which can distinguish which switch has a prize abnormality.

また、演出制御用CPU101aは、入力ポート状態指定コマンドを受信したことを示す入力ポート状態指定コマンド受信フラグがセットされているか否か確認する(ステップS716)。入力ポート状態指定コマンド受信フラグがセットされていない場合には処理終了する。入力ポート状態指定コマンド受信フラグがセットされている場合には、入力ポート状態指定コマンド受信フラグをリセットし(ステップS717)、入力ポート状態指定コマンド格納領域に格納されている入力ポート状態指定コマンドのデータである入力ポート0(遊技制御手段における入力ポート0)の状態を示すデータにおいて、ビット0,2,3,4のいずれか1つ以上が「1」に変化したか否か確認する(ステップS718)。   In addition, the effect control CPU 101a checks whether or not an input port state designation command reception flag indicating that the input port state designation command has been received is set (step S716). If the input port state designation command reception flag is not set, the process ends. If the input port status designation command reception flag is set, the input port status designation command reception flag is reset (step S717), and the input port status designation command data stored in the input port status designation command storage area In the data indicating the state of the input port 0 (input port 0 in the game control means), it is confirmed whether or not any one or more of the bits 0, 2, 3, 4 has changed to “1” (step S718). ).

ステップS718では、演出制御用CPU101aは、ステップS721の処理でRAMに格納される前回値と、入力ポート状態指定コマンドのデータとを比較する。   In step S718, the production control CPU 101a compares the previous value stored in the RAM in the process of step S721 with the data of the input port state designation command.

「1」になったビットがあれば、そのビットに対応するタイマ(始動口スイッチ14aに対応するタイマ、入賞口スイッチ30aに対応するタイマ、入賞口スイッチ29aに対応するタイマ、またはカウントスイッチ23に対応するタイマ)に「1」をセットする(ステップS720)。   If there is a bit that is “1”, the timer corresponding to that bit (the timer corresponding to the start port switch 14a, the timer corresponding to the winning port switch 30a, the timer corresponding to the winning port switch 29a, or the count switch 23) “1” is set in the corresponding timer) (step S720).

また、入力ポート0の状態を示すデータにおいて「1」になったビットがない場合には、「0」になったビットに対応するタイマの値を0に初期化する(ステップS719)。なお、遊技制御用マイクロコンピュータ560は、入力ポート0のいずれかのビットが変化した場合に、入力ポート状態指定コマンドを送信するので、「1」に変化したビットがないということは、「0」に変化したビットが存在することを意味する。   If there is no bit that is “1” in the data indicating the state of the input port 0, the timer value corresponding to the bit that is “0” is initialized to 0 (step S719). Note that the game control microcomputer 560 transmits an input port state designation command when any bit of the input port 0 changes, so that there is no bit changed to “1”. Means that there are changed bits.

遊技制御用マイクロコンピュータ560は、入力ポート0のいずれかのビット(図11に示す入力ポート0のビット0,2,3,4のいずれか)の値が変化した場合(スイッチの検出信号の状態が変化した場合に相当)に、入力ポート0の各ビットの状態を設定した入力ポート状態指定コマンドを出力するので、ステップS718,S719の処理によって、オン状態に変化したスイッチに対応するタイマが動作中になる。そして、動作中になったタイマに対応するビットの値が「0」にならない限りタイマの値は歩進するので(ステップS711,S712の処理により)、タイマの値が500を越えたということは、スイッチの検出信号の状態が1秒を越えて継続したオン状態であったことを意味する。   When the value of any bit of input port 0 (any one of bits 0, 2, 3 and 4 of input port 0 shown in FIG. 11) changes (the state of the detection signal of the switch) Since the input port state designation command in which the state of each bit of the input port 0 is set is output, the timer corresponding to the switch changed to the on state is operated by the processing of steps S718 and S719. Become inside. Since the timer value advances unless the value of the bit corresponding to the timer that is in operation becomes “0” (by the processing of steps S711 and S712), the timer value exceeds 500. This means that the state of the detection signal of the switch was an on state that continued for more than 1 second.

演出制御用CPU101aが、ステップS713,S714,S715の処理を実行することによって、図49に示されたような異常判定を行うことができる。   The effect control CPU 101a can execute the processes of steps S713, S714, and S715 to perform the abnormality determination as shown in FIG.

図52は、入賞異常の検出方法の他の例を示す説明図である。図52に示す例では、入賞口スイッチ(始動口スイッチ14a、カウントスイッチ23、および各入賞口スイッチ29a,30a)のそれぞれについて、所定時間内(図52に示す例では、0.5秒)に検出信号の状態が所定回以上(図52に示す例では、10回を越えた)オンになった(具体的には、オフからオンに変化した)場合に、入賞異常が生じたと判定する。なお、0.5秒は一例であり、異常検出のための所定時間は0.5秒に限られない。また、10回を越えたことも一例である。   FIG. 52 is an explanatory diagram showing another example of a method for detecting a prize abnormality. In the example shown in FIG. 52, each of the prize opening switches (starting opening switch 14a, count switch 23, and each prize opening switch 29a, 30a) is within a predetermined time (0.5 seconds in the example shown in FIG. 52). When the state of the detection signal is turned on more than a predetermined number of times (more than 10 times in the example shown in FIG. 52) (specifically, changed from off to on), it is determined that a winning abnormality has occurred. Note that 0.5 seconds is an example, and the predetermined time for detecting an abnormality is not limited to 0.5 seconds. Another example is exceeding 10 times.

図53は、演出制御用マイクロコンピュータ100が入賞異常の検出に関して使用するタイマ、フラグおよびカウンタの一例を示す説明図である。図53に示すように、入賞異常の検出に関して使用するタイマとして、始動口スイッチ14aに対応するタイマ、入賞口スイッチ30aに対応するタイマ、入賞口スイッチ29aに対応するタイマ、カウントスイッチ23に対応するタイマがある。また、入賞異常の検出に関して使用するフラグとして、始動口スイッチ14aに対応するタイマ動作中フラグ、入賞口スイッチ30aに対応するタイマ動作中フラグ、入賞口スイッチ29aに対応するタイマ動作中フラグ、カウントスイッチ23に対応するタイマ動作中フラグがある。また、入賞異常の検出に関して使用するカウンタとして、始動口スイッチ14aに対応するカウンタ、入賞口スイッチ30aに対応するカウンタ、入賞口スイッチ29aに対応するカウンタ、カウントスイッチ23に対応するカウンタがある。なお、各カウンタはRAMに形成されている。   FIG. 53 is an explanatory diagram showing an example of a timer, a flag, and a counter that the production control microcomputer 100 uses for detection of a winning abnormality. As shown in FIG. 53, as timers used for detection of a winning abnormality, a timer corresponding to the start port switch 14a, a timer corresponding to the winning port switch 30a, a timer corresponding to the winning port switch 29a, and a count switch 23 are used. There is a timer. In addition, as flags used for detection of a winning abnormality, a timer operating flag corresponding to the start port switch 14a, a timer operating flag corresponding to the winning port switch 30a, a timer operating flag corresponding to the winning port switch 29a, a count switch There is a timer operating flag corresponding to 23. Further, as counters used for detection of a winning abnormality, there are a counter corresponding to the start port switch 14a, a counter corresponding to the winning port switch 30a, a counter corresponding to the winning port switch 29a, and a counter corresponding to the count switch 23. Each counter is formed in the RAM.

図54は、図52に例示されたような異常検出を行う場合のステップS787の異常判定処理を示すフローチャートである。異常判定処理において、演出制御用CPU101aは、始動口スイッチ14aに対応するタイマ、入賞口スイッチ30aに対応するタイマ、入賞口スイッチ29aに対応するタイマおよびカウントスイッチ23に対応するタイマのうちのいずれかのタイマの値が動作中(タイマ動作中フラグがオン状態)であるか否か確認する(ステップS711)。動作中のタイマがあれば、そのタイマの値を+1する(ステップS712)。   FIG. 54 is a flowchart showing the abnormality determination process in step S787 when the abnormality detection illustrated in FIG. 52 is performed. In the abnormality determination process, the effect control CPU 101a is one of a timer corresponding to the start port switch 14a, a timer corresponding to the winning port switch 30a, a timer corresponding to the winning port switch 29a, and a timer corresponding to the count switch 23. It is confirmed whether or not the timer value is operating (timer operating flag is on) (step S711). If there is an operating timer, the timer value is incremented by 1 (step S712).

また、演出制御用CPU101aは、入力ポート状態指定コマンドを受信したことを示す入力ポート状態指定コマンド受信フラグがセットされているか否か確認する(ステップS716)。入力ポート状態指定コマンド受信フラグがセットされていない場合にはステップS735に移行する。入力ポート状態指定コマンド受信フラグがセットされている場合には、入力ポート状態指定コマンド受信フラグをリセットし(ステップS717)、入力ポート状態指定コマンド格納領域に格納されている入力ポート状態指定コマンドのデータである入力ポート0(遊技制御手段における入力ポート0)の状態を示すデータにおいて、ビット0,2,3,4のいずれか1つ以上が「1」に変化したか否か確認する(ステップS731)。   In addition, the effect control CPU 101a checks whether or not an input port state designation command reception flag indicating that the input port state designation command has been received is set (step S716). If the input port state designation command reception flag is not set, the process proceeds to step S735. If the input port status designation command reception flag is set, the input port status designation command reception flag is reset (step S717), and the input port status designation command data stored in the input port status designation command storage area In the data indicating the state of input port 0 (input port 0 in the game control means), it is confirmed whether or not any one or more of bits 0, 2, 3, and 4 has changed to “1” (step S731). ).

ステップS731では、演出制御用CPU101aは、ステップS739の処理でRAMに格納される前回値と、入力ポート状態指定コマンドのデータとを比較する。   In step S731, the effect control CPU 101a compares the previous value stored in the RAM in the process of step S739 with the data of the input port state designation command.

「1」に変化したビットがあれば、そのビットに対応するカウンタ(始動口スイッチ14aに対応するカウンタ、入賞口スイッチ30aに対応するカウンタ、入賞口スイッチ29aに対応するカウンタ、またはカウントスイッチ23に対応するカウンタ)の値を+1する(ステップS732)。また、「1」に変化したビットに対応するタイマが動作中でなければ(ステップS733)、そのビットに対応するタイマ動作中フラグをセットする(オン状態にする)(ステップS734)。   If there is a bit changed to “1”, the counter corresponding to that bit (the counter corresponding to the start port switch 14a, the counter corresponding to the winning port switch 30a, the counter corresponding to the winning port switch 29a, or the count switch 23) The value of the corresponding counter) is incremented by 1 (step S732). If the timer corresponding to the bit changed to “1” is not operating (step S733), the timer operating flag corresponding to the bit is set (turned on) (step S734).

また、演出制御用CPU101aは、いずれかのタイマ(始動口スイッチ14aに対応するタイマ、入賞口スイッチ30aに対応するタイマ、入賞口スイッチ29aに対応するタイマ、またはカウントスイッチ23に対応するタイマ)の値が250(0.5秒に相当)を越えたか否か確認する(ステップS735)。250を越えたタイマがなければ、ステップS739に移行する。250を越えたタイマがあれば、そのタイマに対応するカウンタの値を確認する(ステップS736)。カウンタの値が10を越えていれば、演出表示装置9に、「入賞異常が生じた旨」の表示を行う(ステップS740)。また、音声出力基板70に、異常報知音に相当する音番号データを出力する(ステップS741)。   Further, the production control CPU 101a has one of the timers (a timer corresponding to the start port switch 14a, a timer corresponding to the winning port switch 30a, a timer corresponding to the winning port switch 29a, or a timer corresponding to the count switch 23). It is confirmed whether or not the value exceeds 250 (corresponding to 0.5 seconds) (step S735). If there is no timer exceeding 250, the process proceeds to step S739. If there is a timer exceeding 250, the value of the counter corresponding to the timer is confirmed (step S736). If the value of the counter exceeds 10, the effect display device 9 displays “A prize abnormality has occurred” (step S740). Further, the sound number data corresponding to the abnormality notification sound is output to the sound output board 70 (step S741).

演出制御用CPU101aは、値が10以下のカウンタがあれば、そのカウンタの値を0にクリアする(ステップS737)。また、対応するタイマ動作中フラグをリセットする(オフ状態にする)とともに、対応するタイマの値を0に初期化する(ステップS738)。   If there is a counter with a value of 10 or less, the effect control CPU 101a clears the counter value to 0 (step S737). In addition, the corresponding timer operating flag is reset (turned off), and the corresponding timer value is initialized to 0 (step S738).

そして、入力ポート状態指定コマン格納領域のデータを、前回値としてRAMに格納する(ステップS739)。   Then, the data in the input port state designation command storage area is stored in the RAM as the previous value (step S739).

遊技制御用マイクロコンピュータ560は、入力ポート0のいずれかのビット(図11に示す入力ポート0のビット0,2,3,4のいずれか)の値が変化した場合(スイッチの検出信号の状態が変化した場合に相当)に、入力ポート0の各ビットの状態を設定した入力ポート状態指定コマンドを出力するが、ステップS731の処理で「1」に変化したビットがあったということは、入力ポートの当該ビットの状態が「0」から「1」に変化した(スイッチの検出信号がオフ状態からオン状態に変化したことに相当)ことを意味する。よって、ステップS732の処理は、スイッチの検出信号がオフ状態からオン状態に変化した回数を計数する処理になる。   When the value of any bit of input port 0 (any one of bits 0, 2, 3 and 4 of input port 0 shown in FIG. 11) changes (the state of the detection signal of the switch) The input port state designation command that sets the state of each bit of the input port 0 is output, but the fact that there is a bit that has changed to “1” in the process of step S731 This means that the state of the bit of the port has changed from “0” to “1” (corresponding to the switch detection signal changing from the off state to the on state). Therefore, the process of step S732 is a process of counting the number of times the switch detection signal has changed from the off state to the on state.

また、ステップS735,S736の処理で0.5秒が経過した場合にカウンタの値をチェックすることは、0.5秒間のスイッチの検出信号がオン状態に変化した回数を確認することに相当する。すなわち、図52に示されたような異常判定が実行されることになる。   Also, checking the value of the counter when 0.5 seconds have elapsed in the processes of steps S735 and S736 is equivalent to confirming the number of times the switch detection signal has changed to the ON state for 0.5 seconds. . That is, the abnormality determination as shown in FIG. 52 is executed.

図20(B)に例示されたような不正行為が行われると、スイッチの検出信号の状態は図20(C)の下段に例示されたような状態になる可能性があるが、図54に示された処理によって、図20(C)の下段に示されたような信号状態が生ずると、異常が検出される(図52参照)。すなわち、図54に示された処理は、図20に例示されたような不正行為を検知できる処理である。   When an illegal act as illustrated in FIG. 20B is performed, the state of the detection signal of the switch may be as illustrated in the lower part of FIG. 20C. When the signal state as shown in the lower part of FIG. 20C is generated by the processing shown, an abnormality is detected (see FIG. 52). That is, the process shown in FIG. 54 is a process that can detect an illegal act illustrated in FIG.

図55は、入賞異常の検出方法のさらに他の例を示す説明図である。図55に示す例では、正常に遊技球が入賞口スイッチを通過する場合には、入賞口スイッチ(始動口スイッチ14a、カウントスイッチ23、および各入賞口スイッチ29a,30a)の検出信号が、少なくとも50ミリ秒(50ms)間、オン状態を継続するような近接スイッチが用いられている場合を想定する。   FIG. 55 is an explanatory diagram showing still another example of a winning abnormality detection method. In the example shown in FIG. 55, when the game ball normally passes the winning opening switch, the detection signals of the winning opening switches (start opening switch 14a, count switch 23, and winning opening switches 29a, 30a) are at least Assume that a proximity switch is used that continues to be on for 50 milliseconds (50 ms).

図55に示すように、遊技球がスイッチの通過時に、本来、例えば50ms以上オン状態が継続するはずであるのに対して、検出信号がオン状態になっている時間(例えば、50ms)の中途で強制的にオフ状態にされた場合には、実際には、1個の遊技球がスイッチによって検出されているにもかかわらず、複数回スイッチがオンしたと判定されてしまう。そこで、演出制御用マイクロコンピュータ100は、入力ポート状態指定コマンドにもとづいて、各々のスイッチの検出信号がオン状態に変化したらオフ状態になるまでの時間を計測し、計測した時間が例えば50msよりも短い場合に、異常が生じた(例えば、不正行為を受けた。)と判定することが好ましい。なお、50msは一例であり、使用するスイッチの特性等に応じて変わりうる。   As shown in FIG. 55, when the game ball passes through the switch, the on state should normally continue for, for example, 50 ms or longer, whereas the detection signal is in the on state (for example, 50 ms) halfway. In the case where the switch is forcibly turned off, it is determined that the switch is turned on a plurality of times even though one game ball is actually detected by the switch. Therefore, the production control microcomputer 100 measures the time until the switch enters the off state when the detection signal of each switch changes to the on state based on the input port state designation command, and the measured time is, for example, more than 50 ms. In the case where it is short, it is preferable to determine that an abnormality has occurred (for example, an illegal act has been received). Note that 50 ms is an example, and may vary depending on the characteristics of the switch used.

また、連続して遊技球がスイッチを通過する場合でもスイッチが1個目の遊技球の通過完了を検出(検出信号がオフになったときに相当)してから2個目の遊技球の検出開始を検出する(検出信号がオンになったときに相当)までの間に少なくとも所定時間(例えば、30ms)がある。そこで、検出信号のオフ期間(オン状態からオフ状態に変化した時点から、再びオン状態になるまでの期間)が所定期間(すなわち、この例における30ms)よりも短い場合には、異常が生じた(例えば、不正行為を受けた。)と判定する。この例では、オフ期間が30ms以下である場合に、異常が生じたと判定する。なお、30msは一例であり、異常検出のための所定期間は30m秒に限られない。   In addition, even when the game ball passes through the switch continuously, the switch detects the completion of the passage of the first game ball (corresponding to when the detection signal is turned off) and then detects the second game ball. There is at least a predetermined time (for example, 30 ms) until the start is detected (corresponding to when the detection signal is turned on). Therefore, when the detection signal OFF period (the period from when the ON state is changed to the OFF state until the ON state is again turned on) is shorter than the predetermined period (that is, 30 ms in this example), an abnormality has occurred. (For example, a cheating is received.) In this example, it is determined that an abnormality has occurred when the off period is 30 ms or less. In addition, 30 ms is an example, and the predetermined period for detecting an abnormality is not limited to 30 milliseconds.

また、この例では、図53に示された例と同様に、入賞異常の検出に関して、始動口スイッチ14aに対応するタイマ、入賞口スイッチ30aに対応するタイマ、入賞口スイッチ29aに対応するタイマ、カウントスイッチ23に対応するタイマを使用する。また、入賞異常の検出に関して使用するフラグとして、始動口スイッチ14aに対応するタイマ動作中フラグ、入賞口スイッチ30aに対応するタイマ動作中フラグ、入賞口スイッチ29aに対応するタイマ動作中フラグ、カウントスイッチ23に対応するタイマ動作中フラグを使用する。ただし、カウンタは使用されない。   Further, in this example, as in the example shown in FIG. 53, regarding detection of a winning abnormality, a timer corresponding to the start port switch 14a, a timer corresponding to the winning port switch 30a, a timer corresponding to the winning port switch 29a, A timer corresponding to the count switch 23 is used. In addition, as flags used for detection of a winning abnormality, a timer operating flag corresponding to the start port switch 14a, a timer operating flag corresponding to the winning port switch 30a, a timer operating flag corresponding to the winning port switch 29a, a count switch The timer operating flag corresponding to 23 is used. However, the counter is not used.

図56は、図55に例示されたような異常検出(検出信号のオフ期間が所定期間(例えば、30ms)以下である場合に異常が生じたと判定)を行う場合のステップS787の異常判定処理を示すフローチャートである。異常判定処理において、演出制御用CPU101aは、始動口スイッチ14aに対応するタイマ、入賞口スイッチ30aに対応するタイマ、入賞口スイッチ29aに対応するタイマおよびカウントスイッチ23に対応するタイマのうちのいずれかのタイマの値が動作中(タイマ動作中フラグがオン状態)であるか否か確認する(ステップS711)。動作中のタイマがあれば、そのタイマの値を+1する(ステップS712)。   FIG. 56 illustrates the abnormality determination process in step S787 when performing abnormality detection as illustrated in FIG. 55 (determining that an abnormality has occurred when the detection signal OFF period is equal to or shorter than a predetermined period (eg, 30 ms)). It is a flowchart to show. In the abnormality determination process, the effect control CPU 101a is one of a timer corresponding to the start port switch 14a, a timer corresponding to the winning port switch 30a, a timer corresponding to the winning port switch 29a, and a timer corresponding to the count switch 23. It is confirmed whether or not the timer value is operating (timer operating flag is on) (step S711). If there is an operating timer, the timer value is incremented by 1 (step S712).

また、演出制御用CPU101aは、入力ポート状態指定コマンドを受信したことを示す入力ポート状態指定コマンド受信フラグがセットされているか否か確認する(ステップS716)。入力ポート状態指定コマンド受信フラグがセットされていない場合には処理を終了する。入力ポート状態指定コマンド受信フラグがセットされている場合には、入力ポート状態指定コマンド受信フラグをリセットし(ステップS717)、入力ポート状態指定コマンド格納領域に格納されている入力ポート状態指定コマンドのデータである入力ポート0(遊技制御手段における入力ポート0)の状態を示すデータにおいて、ビット0,2,3,4のいずれか1つ以上が「0」に変化したか否か確認する(ステップS751)。   In addition, the effect control CPU 101a checks whether or not an input port state designation command reception flag indicating that the input port state designation command has been received is set (step S716). If the input port state designation command reception flag is not set, the process ends. If the input port status designation command reception flag is set, the input port status designation command reception flag is reset (step S717), and the input port status designation command data stored in the input port status designation command storage area In the data indicating the state of the input port 0 (input port 0 in the game control means), it is confirmed whether or not any one or more of the bits 0, 2, 3, 4 has changed to “0” (step S751). ).

ステップS751の処理では、演出制御用CPU101aは、ステップS756の処理でRAMに格納される前回値と、入力ポート状態指定コマンドのデータとを比較する。   In the process of step S751, the effect control CPU 101a compares the previous value stored in the RAM in the process of step S756 with the data of the input port state designation command.

「0」に変化したビットがあれば、そのビットに対応するタイマ動作中フラグをセットする(オン状態にする)(ステップS752)。   If there is a bit changed to “0”, the timer operating flag corresponding to the bit is set (turned on) (step S752).

また、演出制御用CPU101aは、入力ポート状態指定コマンド格納領域に格納されている入力ポート状態指定コマンドのデータである入力ポート0の状態を示すデータにおいて、ビット0,2,3,4のいずれか1つ以上が「1」に変化したか否か確認する(ステップS753)。「1」に変化したビットがなければ、ステップS756に移行する。   In addition, the effect control CPU 101a uses any one of bits 0, 2, 3, and 4 in the data indicating the state of the input port 0 that is the data of the input port state specifying command stored in the input port state specifying command storage area. It is confirmed whether one or more has changed to “1” (step S753). If there is no bit changed to “1”, the process proceeds to step S756.

ステップS753の処理では、演出制御用CPU101aは、ステップS756の処理でRAMに格納される前回値と、入力ポート状態指定コマンドのデータとを比較する。   In the process of step S753, the effect control CPU 101a compares the previous value stored in the RAM in the process of step S756 with the data of the input port state designation command.

「1」に変化したビットがある場合には、そのビットに対応するタイマの値を確認する(ステップS754)。ステップS754では、演出制御用CPU101aは、タイマの値が15以下(30ms以下に相当)であるか否か確認する。タイマの値が15を越えている場合には、そのビットに対応するタイマ動作中フラグをリセットする(オフ状態にする)とともに、対応するタイマの値を0に初期化する(ステップS755)。また、入力ポート状態指定コマン格納領域のデータを、前回値としてRAMに格納する(ステップS756)。   If there is a bit changed to “1”, the value of the timer corresponding to the bit is confirmed (step S754). In step S754, the effect control CPU 101a checks whether or not the timer value is 15 or less (corresponding to 30 ms or less). When the timer value exceeds 15, the timer operating flag corresponding to the bit is reset (turned off), and the corresponding timer value is initialized to 0 (step S755). Further, the data in the input port state designation command storage area is stored in the RAM as the previous value (step S756).

タイマの値が15以下である場合には、演出制御用CPU101aは、演出表示装置9に、「入賞異常が生じた旨」の表示を行う(ステップS757)。また、音声出力基板70に、異常報知音に相当する音番号データを出力する(ステップS758)。   When the value of the timer is 15 or less, the effect control CPU 101a displays on the effect display device 9 that “the winning abnormality has occurred” (step S757). In addition, sound number data corresponding to the abnormality notification sound is output to the sound output board 70 (step S758).

遊技制御用マイクロコンピュータ560は、入力ポート0のいずれかのビット(図11に示す入力ポート0のビット0,2,3,4のいずれか)の値が変化した場合(スイッチの検出信号の状態が変化した場合に相当)に、入力ポート0の各ビットの状態を設定した入力ポート状態指定コマンドを出力するが、ステップS751の処理で「0」に変化したビットがあったということは、入力ポートの当該ビットの状態が「1」から「0」に変化した(スイッチの検出信号がオン状態からオフ状態に変化したことに相当)ことを意味する。よって、ステップS752の処理は、スイッチの検出信号がオン状態からオフ状態に変化した場合に、タイマを起動する処理に相当する。   When the value of any bit of input port 0 (any one of bits 0, 2, 3 and 4 of input port 0 shown in FIG. 11) changes (the state of the detection signal of the switch) The input port state designation command in which the state of each bit of the input port 0 is set is output, but the fact that there is a bit that has changed to “0” in the process of step S751 This means that the state of the bit of the port has changed from “1” to “0” (corresponding to the switch detection signal changing from the on state to the off state). Therefore, the process of step S752 corresponds to a process of starting a timer when the switch detection signal changes from the on state to the off state.

また、ステップS753の処理で「1」に変化したビットがあったということは、入力ポートの当該ビットの状態が「0」から「1」に変化した(スイッチの検出信号がオフ状態からオン状態に変化したことに相当)ことを意味する。よって、ステップS753の処理は、スイッチの検出信号がオフ状態からオン状態に変化したか否か判定する処理になる。そして、ステップS754の処理でタイマの値をチェックすることは、検出信号がオフ状態で合った期間が30ms以下であったか否か判定することに相当する。すなわち、図55に示されたような異常判定が実行されることになる。   In addition, when there is a bit that has changed to “1” in the process of step S753, the state of the bit of the input port has changed from “0” to “1” (the switch detection signal has changed from the OFF state to the ON state) Equivalent to the change to Therefore, the process of step S753 is a process of determining whether or not the switch detection signal has changed from the off state to the on state. And checking the value of the timer in the process of step S754 corresponds to determining whether or not the period in which the detection signal is in the off state is 30 ms or less. That is, the abnormality determination as shown in FIG. 55 is executed.

図20(B)に例示されたような不正行為が行われると、スイッチの検出信号の状態は図20(C)の下段に例示されたような状態になる可能性があるが、図55に示された処理によって、図20(C)の下段に示されたような信号状態が生じ場合に検出信号がオフ状態である期間が所定期間(この例では、30ms)以下であれば、異常として検出される(図55参照)。すなわち、図56に示された処理は、図20に例示されたような不正行為を検知可能な処理である。   When an illegal act as illustrated in FIG. 20B is performed, the state of the detection signal of the switch may be as illustrated in the lower part of FIG. 20C. When the signal state as shown in the lower part of FIG. 20C is generated by the processing shown in FIG. 20C, if the detection signal is off for a predetermined period (30 ms in this example) or less, an abnormality is It is detected (see FIG. 55). That is, the process illustrated in FIG. 56 is a process capable of detecting an illegal act illustrated in FIG.

なお、演出制御用CPU101aは、ステップS787の異常判定処理において、図51に示された処理と、図54に示された処理と、図56に示された処理とのいずれかを実行してもよいが、各処理のうちの2つ以上を実行するようにしてもよい。   It should be noted that the effect control CPU 101a may execute any one of the processing shown in FIG. 51, the processing shown in FIG. 54, and the processing shown in FIG. 56 in the abnormality determination processing in step S787. However, two or more of the processes may be executed.

また、この実施の形態では、演出制御用CPU101aは、入賞異常が生じたと判定したときに、演出表示装置9に「入賞異常が生じた旨」の表示を行うとともに音声出力基板70に異常報知音を出力させるための音番号データを出力したが、さらに、遊技機に設けられている発光体(LED等)によって異常報知を行ってもよい。なお、演出表示装置9の表示、異常報知音の出力、発光体による報知のいずれか1つまたは2つを使用してもよい。   Also, in this embodiment, when the effect control CPU 101a determines that a prize abnormality has occurred, the effect display device 9 displays “notice that a prize abnormality has occurred” and an abnormality notification sound on the audio output board 70. Although the sound number data for outputting is output, abnormality notification may be performed by a light emitter (such as an LED) provided in the gaming machine. In addition, you may use any one or two of the display of the production | presentation display apparatus 9, the output of an abnormality notification sound, and alerting | reporting by a light-emitting body.

また、異常報知の終了時期は任意であるが、例えば、演出制御用CPU101aが入賞異常と判定しなくなるまで、入賞異常が生じたと判定したときからあらかじめ決められている所定時間が経過するまで、または電力供給が停止するまで、異常報知を継続することが考えられる。   Also, the end timing of the abnormality notification is arbitrary, for example, until a predetermined time elapses from when it is determined that a winning abnormality has occurred, until the effect control CPU 101a does not determine that a winning abnormality has occurred, or It is conceivable that the abnormality notification is continued until the power supply is stopped.

また、この実施の形態では、演出制御用CPU101aは、タイマの値を加算し、タイマの値が所定値(図51に示された例では500,図54に示された例では250)になった場合に、入賞異常が生じたと判定するか(図51におけるステップS713,S714参照)、またはカウンタの値が所定値以上であることを条件に入賞異常が生じたと判定したり(図54におけるステップS735,S736,S740参照)、タイマの値が所定値以下(図56に示された例では15以下)であった場合に、入賞異常が生じたと判定するようにしたが(図56におけるステップS754,S757参照)、タイマの値を減算するようにしてもよい。   In this embodiment, the production control CPU 101a adds the timer value, and the timer value becomes a predetermined value (500 in the example shown in FIG. 51, 250 in the example shown in FIG. 54). If it is determined that a winning abnormality has occurred (see steps S713 and S714 in FIG. 51), it is determined that a winning abnormality has occurred on condition that the counter value is equal to or greater than a predetermined value (step in FIG. 54). S735, S736, S740), when the timer value is equal to or less than a predetermined value (15 or less in the example shown in FIG. 56), it is determined that a winning abnormality has occurred (step S754 in FIG. 56). , S757), the timer value may be subtracted.

例えば、演出制御用CPU101aは、図51におけるステップS720の処理でタイマに500をセットしてステップS712の処理でタイマの値を1減算したり、図54におけるステップS738の処理でタイマに250を初期設定しステップS712の処理でタイマの値を1減算したり、図56におけるステップS755の処理でタイマに15を初期設定しステップS712の処理でタイマの値を1減算したりする。その場合には、演出制御用CPU101aは、図51におけるステップS713の処理、および図54におけるステップS734の処理で、タイマの値が0になったか否か確認する。また、図56におけるステップS752の処理で、タイマの値が0または負値であるか否か確認する。   For example, the production control CPU 101a sets 500 to the timer in the process of step S720 in FIG. 51 and subtracts 1 from the timer value in the process of step S712, or initially sets 250 in the timer in the process of step S738 in FIG. The timer value is decremented by 1 in the process of step S712, or 15 is initially set in the process of step S755 in FIG. 56, and the timer value is decremented by 1 in the process of step S712. In that case, the CPU 101a for effect control confirms whether or not the timer value has become 0 in the process of step S713 in FIG. 51 and the process of step S734 in FIG. Also, in the process of step S752 in FIG. 56, it is confirmed whether or not the timer value is 0 or a negative value.

また、この実施の形態では、遊技制御用マイクロコンピュータ560は、いずれかの入賞口スイッチからの検出信号の状態が変化したときにのみ入力ポート状態指定コマンドを送信したが、検出信号の状態が変化する/しないに関わらず、遊技制御処理の開始周期(この実施の形態では、4ms)毎に、入力ポート状態指定コマンドを送信するようにしてもよい。   In this embodiment, the game control microcomputer 560 transmits the input port state designation command only when the state of the detection signal from any one of the prize opening switches changes, but the state of the detection signal changes. Regardless of whether or not it is performed, the input port state designation command may be transmitted every start period of the game control process (in this embodiment, 4 ms).

遊技制御処理の開始周期毎に入力ポート状態指定コマンドを送信する場合には、遊技制御用マイクロコンピュータ560は、スイッチ処理(図23参照)において、ステップS109の演算結果に関わらず、入力ポート状態指定コマンドを送信する制御を行う。   When the input port state designation command is transmitted at each start period of the game control process, the game control microcomputer 560 designates the input port state in the switch process (see FIG. 23) regardless of the calculation result of step S109. Controls sending commands.

また、演出制御用CPU101aは、図51に示すステップS718の処理で入力ポート0の状態を示すデータにおいて「1」に変化したビットがないことを確認した場合には、RAMに格納される前回値と入力ポート状態指定コマンドのデータとを比較することによって、入力ポート0の状態を示すデータにおいて「0」に変化したビットがあるか否か確認し、「0」に変化したビットがあることを確認した場合にステップS719の処理を実行する。入力ポート0の状態を示すデータにおいて「0」に変化したビットがあるか否か確認するのは、図51に示された処理では、遊技制御用マイクロコンピュータ560が入力ポート0のいずれかのビットが変化した場合に、入力ポート状態指定コマンドを送信することが前提であったのに対して、検出信号の状態が変化する/しないに関わらず遊技制御処理の開始周期毎に入力ポート状態指定コマンドを送信する場合には入力ポート0の状態を示すデータにおいて「1」に変化したビットも「0」に変化したビットも存在しないことがあるからである。   If the CPU 101a for effect control confirms that there is no bit changed to “1” in the data indicating the state of the input port 0 in the process of step S718 shown in FIG. 51, the previous value stored in the RAM. Is compared with the data of the input port state designation command to check whether there is a bit that has changed to “0” in the data indicating the state of the input port 0 and that there is a bit that has changed to “0”. If it is confirmed, the process of step S719 is executed. In the processing shown in FIG. 51, whether or not there is a bit changed to “0” in the data indicating the state of the input port 0 is determined by the game control microcomputer 560 by any bit of the input port 0. In contrast to the assumption that the input port state designation command is transmitted when the change occurs, the input port state designation command is set at each start period of the game control process regardless of whether the state of the detection signal changes. This is because there may be neither a bit changed to “1” nor a bit changed to “0” in the data indicating the state of the input port 0.

なお、検出信号の状態が変化する/しないに関わらず遊技制御処理の開始周期毎に入力ポート状態指定コマンドを送信する場合でも、図54に示された処理および図56に示された処理については、演出制御用CPU101aは、同様の処理を実行すればよい。   Note that the process shown in FIG. 54 and the process shown in FIG. 56 are performed even when an input port status designation command is transmitted every start period of the game control process regardless of whether the state of the detection signal changes. The effect control CPU 101a may perform similar processing.

次に、第2の実施の形態を説明する。第1の実施の形態では、演出制御手段が入賞口スイッチの異常検出処理を行ったが、第2の実施の形態では、払出制御手段が入賞口スイッチの異常検出処理を行う。   Next, a second embodiment will be described. In the first embodiment, the effect control means performs the abnormality detection process for the winning opening switch. In the second embodiment, the payout control means performs the abnormality detection process for the winning opening switch.

図57は、第2の実施の形態における遊技制御手段と払出制御手段との間で送受信される制御コマンドの内容の一例を示す説明図である。図57に示すように、第2の実施の形態では、第1の実施の形態における制御コマンド(図18参照)に対して、続く8ビットのデータが入力ポート状態指定のデータであることを示す入力ポート状態指定コマンド(「30(H)」)が追加されている。   FIG. 57 is an explanatory diagram showing an example of the contents of a control command transmitted and received between the game control unit and the payout control unit in the second embodiment. As shown in FIG. 57, the second embodiment indicates that the subsequent 8-bit data is input port state designation data for the control command (see FIG. 18) in the first embodiment. An input port state designation command (“30 (H)”) has been added.

第2の実施の形態では、遊技制御用マイクロコンピュータ560は、図23に示すステップS111の処理において、演出制御コマンドを送信する制御に代えて、入力ポート状態指定コマンドと入力ポート0の状態を示すデータ(入力ポート状態指定のデータ)をシリアル通信回路505を介して払出制御用マイクロコンピュータ370に送信する制御を行う。すなわち、シリアル通信回路505のデータレジスタに入力ポート状態指定コマンドを設定し、ステータスレジスタのビット6(TC)が「1」になると(「入力ポート状態指定コマンド」の送信完了を意味する。)、入力ポート状態指定のデータをシリアル通信回路505のデータレジスタに設定する。   In the second embodiment, the game control microcomputer 560 indicates the state of the input port state designation command and the input port 0 in place of the control for transmitting the effect control command in the process of step S111 shown in FIG. Control is performed to transmit data (data specifying the input port state) to the payout control microcomputer 370 via the serial communication circuit 505. That is, when an input port state designation command is set in the data register of the serial communication circuit 505 and bit 6 (TC) of the status register is set to “1” (meaning the completion of transmission of the “input port state designation command”). Data specifying the input port state is set in the data register of the serial communication circuit 505.

なお、入力ポート状態指定コマンド(「30(H)」)に続く8ビットのデータで入力ポート状態指定のデータを送信するのではなく、入力ポート状態指定のデータを、入力ポート状態指定コマンドの下位4ビットに設定するようにしてもよい。その場合には、遊技制御用マイクロコンピュータ560が、例えば入力ポート0(図11参照)のビット4,3,2,0の値を入力ポート状態指定コマンドのビット3,2,1,0に設定するか、または、始動口スイッチ14a、入賞口スイッチ30a,29a、カウントスイッチ23の検出信号の入力ポート0への割り当てを変更する(例えば、入力ポート0のビット3,2,1,0に変更する。)。   It should be noted that the input port state designation data is not transmitted as 8-bit data following the input port state designation command (“30 (H)”), but the input port state designation data is subordinate to the input port state designation command. It may be set to 4 bits. In that case, the game control microcomputer 560, for example, sets the values of bits 4, 3, 2, 0 of the input port 0 (see FIG. 11) to bits 3, 2, 1, 0 of the input port state designation command. Or change the assignment of the detection signal of the start port switch 14a, the winning port switches 30a and 29a, and the count switch 23 to the input port 0 (for example, change to the bits 3, 2, 1, 0 of the input port 0) To do.)

また、入力ポート状態指定コマンド(「30(H)」)を使用せず、既存のコマンドを利用して入力ポート0の状態を示すデータを送信するようにしてもよい。例えば、接続確認コマンド(図57参照)の下位4ビットに設定する。   Alternatively, the data indicating the state of the input port 0 may be transmitted using an existing command without using the input port state designation command (“30 (H)”). For example, the lower 4 bits of the connection confirmation command (see FIG. 57) are set.

図58は、第2の実施の形態における払出制御用マイクロコンピュータ370の払出制御用CPUが実行するタイマ割込処理を示すフローチャートである。図37に示す第1の実施の形態におけるタイマ割込処理に対して、第2の実施の形態では、ステップS772の異常判定処理が追加されている。   FIG. 58 is a flowchart showing a timer interrupt process executed by the payout control CPU of the payout control microcomputer 370 in the second embodiment. In contrast to the timer interrupt process in the first embodiment shown in FIG. 37, the abnormality determination process in step S772 is added in the second embodiment.

なお、第2の実施の形態では、演出制御用マイクロコンピュータ100は、図46に示されたステップS787の処理を実行しないが、ステップS787の処理を実行してもよい。   In the second embodiment, the production control microcomputer 100 does not execute the process of step S787 shown in FIG. 46, but may execute the process of step S787.

第2の実施の形態では、払出制御用マイクロコンピュータ370は、例えば、図39に示す主制御コマンド受信処理で、シリアル通信回路380において入力ポート状態指定コマンドが受信されたことを確認した後、続いてシリアル通信回路380において受信されたデータを、RAMにおける入力ポート状態指定コマンド格納領域に格納する処理も実行する。   In the second embodiment, the payout control microcomputer 370 confirms that the input port state designation command is received by the serial communication circuit 380 in the main control command reception process shown in FIG. The data received by the serial communication circuit 380 is also stored in the input port state designation command storage area in the RAM.

図59は、図49に示されたような異常判定を実行する場合のステップS772の異常判定処理の一例を示すフローチャートである。払出制御用マイクロコンピュータ370は、図50に示すように、入賞異常の検出に関して使用するタイマとして、始動口スイッチ14aに対応するタイマ、入賞口スイッチ30aに対応するタイマ、入賞口スイッチ29aに対応するタイマ、カウントスイッチ23に対応するタイマを使用する。なお、各タイマはRAMに形成されている。   FIG. 59 is a flowchart showing an example of the abnormality determination process in step S772 when the abnormality determination as shown in FIG. 49 is executed. As shown in FIG. 50, the payout control microcomputer 370 corresponds to the timer corresponding to the start port switch 14a, the timer corresponding to the winning port switch 30a, and the winning port switch 29a as timers used for detection of the winning abnormality. A timer corresponding to the timer and count switch 23 is used. Each timer is formed in the RAM.

払出制御用CPU371は、始動口スイッチ14aに対応するタイマ、入賞口スイッチ30aに対応するタイマ、入賞口スイッチ29aに対応するタイマおよびカウントスイッチ23に対応するタイマのうちのいずれかのタイマの値が0以外の値(動作中であることに相当)であるか否か確認する(ステップS911)。動作中のタイマがあれば、そのタイマの値を+1する(ステップS912)。なお、入賞異常の検出方法の他の例(図60,図61参照)のようにタイマ動作中フラグを用い、タイマが動作中であるか否かをタイマ動作中フラグによって確認するようにしてもよい。   The payout control CPU 371 has one of the timer values corresponding to the start port switch 14a, the timer corresponding to the winning port switch 30a, the timer corresponding to the winning port switch 29a, and the timer corresponding to the count switch 23. It is confirmed whether the value is other than 0 (equivalent to being in operation) (step S911). If there is an operating timer, the timer value is incremented by 1 (step S912). It should be noted that a timer operating flag is used as in another example of the winning abnormality detection method (see FIGS. 60 and 61), and whether or not the timer is operating is confirmed by the timer operating flag. Good.

また、払出制御用CPU371は、いずれかのタイマの値が1000(1秒に相当)を越えたか否か確認する(ステップS913)。1000を越えたタイマがあれば、ターミナル基板160(図5参照)に入賞異常を示す信号を出力する(ステップS914)。その信号は、遊技機外部のホールコンピュータ等に出力される。   Further, the payout control CPU 371 checks whether or not the value of any one of the timers exceeds 1000 (corresponding to 1 second) (step S913). If there is a timer exceeding 1000, a signal indicating a prize abnormality is output to the terminal board 160 (see FIG. 5) (step S914). The signal is output to a hall computer or the like outside the gaming machine.

なお、ステップS914の処理において、いずれのスイッチに入賞異常が生じたのかを区別可能な信号を出力するようにしてもよい。   In the process of step S914, a signal that can distinguish which switch has a prize abnormality may be output.

また、払出制御用CPU371は、入力ポート状態指定コマンドを受信したことを示す入力ポート状態指定コマンド受信フラグがセットされているか否か確認する(ステップS916)。入力ポート状態指定コマンド受信フラグがセットされていない場合には処理終了する。入力ポート状態指定コマンド受信フラグがセットされている場合には、入力ポート状態指定コマンド受信フラグをリセットし(ステップS917)、入力ポート状態指定コマンド格納領域に格納されている入力ポート状態指定コマンドのデータである入力ポート0(遊技制御手段における入力ポート0)の状態を示すデータにおいて、ビット0,2,3,4のいずれか1つ以上が「1」に変化したか否か確認する(ステップS918)。   Also, the payout control CPU 371 checks whether or not an input port state designation command reception flag indicating that an input port state designation command has been received is set (step S916). If the input port state designation command reception flag is not set, the process ends. If the input port status designation command reception flag is set, the input port status designation command reception flag is reset (step S917), and the input port status designation command data stored in the input port status designation command storage area In the data indicating the state of the input port 0 (input port 0 in the game control means), it is confirmed whether or not any one or more of the bits 0, 2, 3, 4 has changed to “1” (step S918). ).

ステップS918では、払出制御用CPU371は、ステップS921の処理でRAMに格納される前回値と、入力ポート状態指定コマンドのデータとを比較する。   In step S918, the payout control CPU 371 compares the previous value stored in the RAM in the process of step S921 with the data of the input port state designation command.

「1」になったビットがあれば、そのビットに対応するタイマ(始動口スイッチ14aに対応するタイマ、入賞口スイッチ30aに対応するタイマ、入賞口スイッチ29aに対応するタイマ、またはカウントスイッチ23に対応するタイマ)に「1」をセットする(ステップS920)。   If there is a bit that is “1”, the timer corresponding to that bit (the timer corresponding to the start port switch 14a, the timer corresponding to the winning port switch 30a, the timer corresponding to the winning port switch 29a, or the count switch 23) “1” is set in the corresponding timer) (step S920).

また、入力ポート0の状態を示すデータにおいて「1」になったビットがない場合には、「0」になったビットに対応するタイマの値を0に初期化する(ステップS919)。なお、遊技制御用マイクロコンピュータ560は、入力ポート0のいずれかのビットが変化した場合に、入力ポート状態指定コマンドを送信するので、「1」に変化したビットがないということは、「0」に変化したビットが存在することを意味する。   If there is no bit that is “1” in the data indicating the state of the input port 0, the timer value corresponding to the bit that is “0” is initialized to 0 (step S919). Note that the game control microcomputer 560 transmits an input port state designation command when any bit of the input port 0 changes, so that there is no bit changed to “1”. Means that there are changed bits.

遊技制御用マイクロコンピュータ560は、入力ポート0のいずれかのビット(図11に示す入力ポート0のビット0,2,3,4のいずれか)の値が変化した場合(スイッチの検出信号の状態が変化した場合に相当)に、入力ポート0の各ビットの状態を設定した入力ポート状態指定コマンドを出力するので、ステップS918,S919の処理によって、オン状態に変化したスイッチに対応するタイマが動作中になる。そして、動作中になったタイマに対応するビットの値が「0」にならない限りタイマの値は歩進するので(ステップS911,S912の処理により)、タイマの値が1000を越えたということは、スイッチの検出信号の状態が1秒を越えて継続したオン状態であったことを意味する。   When the value of any bit of input port 0 (any one of bits 0, 2, 3 and 4 of input port 0 shown in FIG. 11) changes (the state of the detection signal of the switch) Since the input port state designation command in which the state of each bit of the input port 0 is set is output, the timer corresponding to the switch changed to the ON state is operated by the processing of steps S918 and S919. Become inside. Since the timer value advances unless the value of the bit corresponding to the timer that is in operation becomes “0” (by the processing in steps S911 and S912), the timer value has exceeded 1000. This means that the state of the detection signal of the switch was an on state that continued for more than 1 second.

払出制御用CPU371が、ステップS913,S914,S915の処理を実行することによって、図49に示されたような異常判定を行うことができる。   The payout control CPU 371 can perform the abnormality determination as shown in FIG. 49 by executing the processes of steps S913, S914, and S915.

なお、図59に示すステップS911〜S921の処理(ステップS914を除く。)は、図51に示されたステップS711〜S721の処理(ステップS714,S715を除く。)と同じである。ただし、演出制御手段では2ms毎にタイマ割込がかかるのに対して、払出制御手段では1ms毎にタイマ割込がかかるので、ステップS913における判定のための値は、ステップS713における判定のための値とは異なる。   Note that the processing of steps S911 to S921 (excluding step S914) shown in FIG. 59 is the same as the processing of steps S711 to S721 (excluding steps S714 and S715) shown in FIG. However, since the timer control is interrupted every 2 ms in the production control means, the timer interrupt is applied every 1 ms in the payout control means, so the value for the determination in step S913 is the value for the determination in step S713. Different from the value.

図60は、ステップS772の異常判定処理の他の例を示すフローチャートである。この例では、払出制御用マイクロコンピュータ370は、図52に示されたような異常判定を実行する。   FIG. 60 is a flowchart illustrating another example of the abnormality determination process in step S772. In this example, the payout control microcomputer 370 executes the abnormality determination as shown in FIG.

また、払出制御用マイクロコンピュータ370は、図53に示すように、入賞異常の検出に関して使用するタイマとして、始動口スイッチ14aに対応するタイマ、入賞口スイッチ30aに対応するタイマ、入賞口スイッチ29aに対応するタイマ、カウントスイッチ23に対応するタイマを使用する。また、入賞異常の検出に関して使用するフラグとして、始動口スイッチ14aに対応するタイマ動作中フラグ、入賞口スイッチ30aに対応するタイマ動作中フラグ、入賞口スイッチ29aに対応するタイマ動作中フラグ、カウントスイッチ23に対応するタイマ動作中フラグを使用する。また、入賞異常の検出に関して使用するカウンタとして、始動口スイッチ14aに対応するカウンタ、入賞口スイッチ30aに対応するカウンタ、入賞口スイッチ29aに対応するカウンタ、カウントスイッチ23に対応するカウンタを使用する。なお、各カウンタはRAMに形成されている。   Further, as shown in FIG. 53, the payout control microcomputer 370 has a timer corresponding to the start port switch 14a, a timer corresponding to the winning port switch 30a, and a winning port switch 29a as timers used for detection of a winning abnormality. A corresponding timer and a timer corresponding to the count switch 23 are used. In addition, as flags used for detection of a winning abnormality, a timer operating flag corresponding to the start port switch 14a, a timer operating flag corresponding to the winning port switch 30a, a timer operating flag corresponding to the winning port switch 29a, a count switch The timer operating flag corresponding to 23 is used. In addition, as counters used for detection of winning abnormality, a counter corresponding to the start port switch 14a, a counter corresponding to the winning port switch 30a, a counter corresponding to the winning port switch 29a, and a counter corresponding to the count switch 23 are used. Each counter is formed in the RAM.

異常判定処理において、払出制御用CPU371は、始動口スイッチ14aに対応するタイマ、入賞口スイッチ30aに対応するタイマ、入賞口スイッチ29aに対応するタイマおよびカウントスイッチ23に対応するタイマのうちのいずれかのタイマの値が動作中(タイマ動作中フラグがオン状態)であるか否か確認する(ステップS911)。動作中のタイマがあれば、そのタイマの値を+1する(ステップS912)。   In the abnormality determination process, the payout control CPU 371 is one of a timer corresponding to the start port switch 14a, a timer corresponding to the winning port switch 30a, a timer corresponding to the winning port switch 29a, and a timer corresponding to the count switch 23. It is checked whether the timer value is operating (timer operating flag is on) (step S911). If there is an operating timer, the timer value is incremented by 1 (step S912).

また、払出制御用CPU371は、入力ポート状態指定コマンドを受信したことを示す入力ポート状態指定コマンド受信フラグがセットされているか否か確認する(ステップS916)。入力ポート状態指定コマンド受信フラグがセットされていない場合にはステップS935に移行する。入力ポート状態指定コマンド受信フラグがセットされている場合には、入力ポート状態指定コマンド受信フラグをリセットし(ステップS917)、入力ポート状態指定コマンド格納領域に格納されている入力ポート状態指定コマンドのデータである入力ポート0(遊技制御手段における入力ポート0)の状態を示すデータにおいて、ビット0,2,3,4のいずれか1つ以上が「1」に変化したか否か確認する(ステップS931)。   Also, the payout control CPU 371 checks whether or not an input port state designation command reception flag indicating that an input port state designation command has been received is set (step S916). If the input port state designation command reception flag is not set, the process proceeds to step S935. If the input port status designation command reception flag is set, the input port status designation command reception flag is reset (step S917), and the input port status designation command data stored in the input port status designation command storage area In the data indicating the state of the input port 0 (input port 0 in the game control means), it is confirmed whether or not any one or more of the bits 0, 2, 3, and 4 has changed to “1” (step S931). ).

ステップS931では、払出制御用CPU371は、ステップS939の処理でRAMに格納される前回値と、入力ポート状態指定コマンドのデータとを比較する。   In step S931, the payout control CPU 371 compares the previous value stored in the RAM in the process of step S939 with the data of the input port state designation command.

「1」に変化したビットがあれば、そのビットに対応するカウンタ(始動口スイッチ14aに対応するカウンタ、入賞口スイッチ30aに対応するカウンタ、入賞口スイッチ29aに対応するカウンタ、またはカウントスイッチ23に対応するカウンタ)の値を+1する(ステップS932)。また、「1」に変化したビットに対応するタイマが動作中でなければ(ステップS933)、そのビットに対応するタイマ動作中フラグをセットする(オン状態にする)(ステップS934)。   If there is a bit changed to “1”, the counter corresponding to that bit (the counter corresponding to the start port switch 14a, the counter corresponding to the winning port switch 30a, the counter corresponding to the winning port switch 29a, or the count switch 23) The value of the corresponding counter) is incremented by 1 (step S932). If the timer corresponding to the bit changed to “1” is not operating (step S933), the timer operating flag corresponding to the bit is set (turned on) (step S934).

また、払出制御用CPU371は、いずれかのタイマ(始動口スイッチ14aに対応するタイマ、入賞口スイッチ30aに対応するタイマ、入賞口スイッチ29aに対応するタイマ、またはカウントスイッチ23に対応するタイマ)の値が500(0.5秒に相当)を越えたか否か確認する(ステップS935)。500を越えたタイマがなければ、ステップS939に移行する。500を越えたタイマがあれば、そのタイマに対応するカウンタの値を確認する(ステップS936)。カウンタの値が10を越えていれば、ターミナル基板160(図5参照)に入賞異常を示す信号を出力する(ステップS940)。その信号は、遊技機外部のホールコンピュータ等に出力される。   In addition, the payout control CPU 371 has one of the timers (a timer corresponding to the start port switch 14a, a timer corresponding to the winning port switch 30a, a timer corresponding to the winning port switch 29a, or a timer corresponding to the count switch 23). It is confirmed whether or not the value exceeds 500 (corresponding to 0.5 seconds) (step S935). If there is no timer exceeding 500, the process proceeds to step S939. If there is a timer exceeding 500, the value of the counter corresponding to the timer is confirmed (step S936). If the value of the counter exceeds 10, a signal indicating a prize abnormality is output to the terminal board 160 (see FIG. 5) (step S940). The signal is output to a hall computer or the like outside the gaming machine.

払出制御用CPU371は、値が10以下のカウンタがあれば、そのカウンタの値を0にクリアする(ステップS937)。また、対応するタイマ動作中フラグをリセットする(オフ状態にする)とともに、対応するタイマの値を0に初期化する(ステップS938)。   If there is a counter having a value of 10 or less, the payout control CPU 371 clears the counter value to 0 (step S937). Further, the corresponding timer operating flag is reset (turned off), and the value of the corresponding timer is initialized to 0 (step S938).

そして、入力ポート状態指定コマン格納領域のデータを、前回値としてRAMに格納する(ステップS939)。   Then, the data in the input port state designation command storage area is stored in the RAM as the previous value (step S939).

遊技制御用マイクロコンピュータ560は、入力ポート0のいずれかのビット(図11に示す入力ポート0のビット0,2,3,4のいずれか)の値が変化した場合(スイッチの検出信号の状態が変化した場合に相当)に、入力ポート0の各ビットの状態を設定した入力ポート状態指定コマンドを出力するが、ステップS931の処理で「1」に変化したビットがあったということは、入力ポートの当該ビットの状態が「0」から「1」に変化した(スイッチの検出信号がオフ状態からオン状態に変化したことに相当)ことを意味する。よって、ステップS932の処理は、スイッチの検出信号がオフ状態からオン状態に変化した回数を計数する処理になる。   When the value of any bit of input port 0 (any one of bits 0, 2, 3 and 4 of input port 0 shown in FIG. 11) changes (the state of the detection signal of the switch) The input port state designation command in which the state of each bit of the input port 0 is set is output. However, the fact that there is a bit that has changed to “1” in the process of step S931 indicates that the input port This means that the state of the bit of the port has changed from “0” to “1” (corresponding to the switch detection signal changing from the off state to the on state). Therefore, the process of step S932 is a process of counting the number of times the switch detection signal has changed from the off state to the on state.

また、ステップS935,S936の処理で0.5秒が経過した場合にカウンタの値をチェックすることは、0.5秒間のスイッチの検出信号がオン状態に変化した回数を確認することに相当する。すなわち、図52に示されたような異常判定が実行されることになる。   Also, checking the value of the counter when 0.5 seconds have elapsed in the processes of steps S935 and S936 is equivalent to confirming the number of times that the switch detection signal has changed to the ON state for 0.5 seconds. . That is, the abnormality determination as shown in FIG. 52 is executed.

図20(B)に例示されたような不正行為が行われると、スイッチの検出信号の状態は図20(C)の下段に例示されたような状態になる可能性があるが、図60に示された処理によって、図20(C)の下段に示されたような信号状態が生ずると、異常が検出される(図52参照)。すなわち、図60に示された処理は、図20に例示されたような不正行為を検知できる処理である。   When an illegal act as illustrated in FIG. 20B is performed, the state of the detection signal of the switch may be as illustrated in the lower part of FIG. 20C. When the signal state as shown in the lower part of FIG. 20C is generated by the processing shown, an abnormality is detected (see FIG. 52). That is, the process shown in FIG. 60 is a process that can detect an illegal act illustrated in FIG.

なお、図60に示すステップS911〜S939の処理は、図54に示されたステップS711〜S739の処理と同じである。ただし、演出制御手段では2ms毎にタイマ割込がかかるのに対して、払出制御手段では1ms毎にタイマ割込がかかるので、ステップS935における判定のための値は、ステップS735における判定のための値とは異なる。   Note that the processing in steps S911 to S939 shown in FIG. 60 is the same as the processing in steps S711 to S739 shown in FIG. However, while the production control means takes a timer interrupt every 2 ms, the payout control means takes a timer interruption every 1 ms, so the value for the determination in step S935 is the value for the determination in step S735. Different from the value.

図61は、ステップS772の異常判定処理のさらに他の例を示すフローチャートである。この例では、払出制御用マイクロコンピュータ370は、図55に示されたような異常判定(検出信号のオフ期間が所定期間(例えば、30ms)以下である場合に異常が生じたと判定)を実行する。   FIG. 61 is a flowchart showing still another example of the abnormality determination process in step S772. In this example, the payout control microcomputer 370 executes an abnormality determination (determined that an abnormality has occurred when the detection signal OFF period is equal to or shorter than a predetermined period (for example, 30 ms)) as shown in FIG. .

また、払出制御用マイクロコンピュータ370は、図53に示された例と同様に、入賞異常の検出に関して、始動口スイッチ14aに対応するタイマ、入賞口スイッチ30aに対応するタイマ、入賞口スイッチ29aに対応するタイマ、カウントスイッチ23に対応するタイマを使用する。また、入賞異常の検出に関して使用するフラグとして、始動口スイッチ14aに対応するタイマ動作中フラグ、入賞口スイッチ30aに対応するタイマ動作中フラグ、入賞口スイッチ29aに対応するタイマ動作中フラグ、カウントスイッチ23に対応するタイマ動作中フラグを使用する。ただし、カウンタは使用されない。   Similarly to the example shown in FIG. 53, the payout control microcomputer 370 is connected to the timer corresponding to the start port switch 14a, the timer corresponding to the winning port switch 30a, and the winning port switch 29a with respect to detection of a winning abnormality. A corresponding timer and a timer corresponding to the count switch 23 are used. In addition, as flags used for detection of a winning abnormality, a timer operating flag corresponding to the start port switch 14a, a timer operating flag corresponding to the winning port switch 30a, a timer operating flag corresponding to the winning port switch 29a, a count switch The timer operating flag corresponding to 23 is used. However, the counter is not used.

異常判定処理において、払出制御用CPU371は、始動口スイッチ14aに対応するタイマ、入賞口スイッチ30aに対応するタイマ、入賞口スイッチ29aに対応するタイマおよびカウントスイッチ23に対応するタイマのうちのいずれかのタイマの値が動作中(タイマ動作中フラグがオン状態)であるか否か確認する(ステップS911)。動作中のタイマがあれば、そのタイマの値を+1する(ステップS912)。   In the abnormality determination process, the payout control CPU 371 is one of a timer corresponding to the start port switch 14a, a timer corresponding to the winning port switch 30a, a timer corresponding to the winning port switch 29a, and a timer corresponding to the count switch 23. It is checked whether the timer value is operating (timer operating flag is on) (step S911). If there is an operating timer, the timer value is incremented by 1 (step S912).

また、払出制御用CPU371は、入力ポート状態指定コマンドを受信したことを示す入力ポート状態指定コマンド受信フラグがセットされているか否か確認する(ステップS916)。入力ポート状態指定コマンド受信フラグがセットされていない場合には処理を終了する。入力ポート状態指定コマンド受信フラグがセットされている場合には、入力ポート状態指定コマンド受信フラグをリセットし(ステップS917)、入力ポート状態指定コマンド格納領域に格納されている入力ポート状態指定コマンドのデータである入力ポート0(遊技制御手段における入力ポート0)の状態を示すデータにおいて、ビット0,2,3,4のいずれか1つ以上が「0」に変化したか否か確認する(ステップS951)。   Also, the payout control CPU 371 checks whether or not an input port state designation command reception flag indicating that an input port state designation command has been received is set (step S916). If the input port state designation command reception flag is not set, the process ends. If the input port status designation command reception flag is set, the input port status designation command reception flag is reset (step S917), and the input port status designation command data stored in the input port status designation command storage area In the data indicating the state of the input port 0 (input port 0 in the game control means), it is confirmed whether or not any one or more of the bits 0, 2, 3, and 4 has changed to “0” (step S951). ).

ステップS951の処理では、払出制御用CPU371は、ステップS956の処理でRAMに格納される前回値と、入力ポート状態指定コマンドのデータとを比較する。   In the process of step S951, the payout control CPU 371 compares the previous value stored in the RAM in the process of step S956 with the data of the input port state designation command.

「0」に変化したビットがあれば、そのビットに対応するタイマ動作中フラグをセットする(オン状態にする)(ステップS952)。   If there is a bit changed to “0”, the timer operating flag corresponding to the bit is set (turned on) (step S952).

また、払出制御用CPU371は、入力ポート状態指定コマンド格納領域に格納されている入力ポート状態指定コマンドのデータである入力ポート0の状態を示すデータにおいて、ビット0,2,3,4のいずれか1つ以上が「1」に変化したか否か確認する(ステップS953)。「1」に変化したビットがなければ、ステップS956に移行する。   In addition, the payout control CPU 371 selects one of bits 0, 2, 3 and 4 in the data indicating the state of the input port 0 which is the data of the input port state specifying command stored in the input port state specifying command storage area. It is checked whether one or more has changed to “1” (step S953). If there is no bit changed to “1”, the process proceeds to step S956.

ステップS953の処理では、払出制御用CPU371は、ステップS956の処理でRAMに格納される前回値と、入力ポート状態指定コマンドのデータとを比較する。   In the process of step S953, the payout control CPU 371 compares the previous value stored in the RAM in the process of step S956 with the data of the input port state designation command.

「1」に変化したビットがある場合には、そのビットに対応するタイマの値を確認する(ステップS954)。ステップS954では、払出制御用CPU371は、タイマの値が30以下(30ms以下に相当)であるか否か確認する。タイマの値が15を越えている場合には、そのビットに対応するタイマ動作中フラグをリセットする(オフ状態にする)とともに、対応するタイマの値を0に初期化する(ステップS955)。また、入力ポート状態指定コマン格納領域のデータを、前回値としてRAMに格納する(ステップS956)。   If there is a bit changed to “1”, the value of the timer corresponding to the bit is confirmed (step S954). In step S954, the payout control CPU 371 checks whether the timer value is 30 or less (corresponding to 30 ms or less). If the timer value exceeds 15, the timer operating flag corresponding to the bit is reset (turned off), and the corresponding timer value is initialized to 0 (step S955). Further, the data in the input port state designation command storage area is stored in the RAM as the previous value (step S956).

タイマの値が30以下である場合には、払出制御用CPU371は、ターミナル基板160(図5参照)に入賞異常を示す信号を出力する(ステップS960)。その信号は、遊技機外部のホールコンピュータ等に出力される。   When the value of the timer is 30 or less, the payout control CPU 371 outputs a signal indicating a prize abnormality to the terminal board 160 (see FIG. 5) (step S960). The signal is output to a hall computer or the like outside the gaming machine.

遊技制御用マイクロコンピュータ560は、入力ポート0のいずれかのビット(図11に示す入力ポート0のビット0,2,3,4のいずれか)の値が変化した場合(スイッチの検出信号の状態が変化した場合に相当)に、入力ポート0の各ビットの状態を設定した入力ポート状態指定コマンドを出力するが、ステップS951の処理で「0」に変化したビットがあったということは、入力ポートの当該ビットの状態が「1」から「0」に変化した(スイッチの検出信号がオン状態からオフ状態に変化したことに相当)ことを意味する。よって、ステップS952の処理は、スイッチの検出信号がオン状態からオフ状態に変化した場合に、タイマを起動する処理に相当する。   When the value of any bit of input port 0 (any one of bits 0, 2, 3 and 4 of input port 0 shown in FIG. 11) changes (the state of the detection signal of the switch) The input port state designation command in which the state of each bit of the input port 0 is set is output, but the fact that there is a bit that has changed to “0” in the process of step S951 This means that the state of the bit of the port has changed from “1” to “0” (corresponding to the switch detection signal changing from the on state to the off state). Therefore, the process of step S952 corresponds to a process of starting a timer when the switch detection signal changes from the on state to the off state.

また、ステップS953の処理で「1」に変化したビットがあったということは、入力ポートの当該ビットの状態が「0」から「1」に変化した(スイッチの検出信号がオフ状態からオン状態に変化したことに相当)ことを意味する。よって、ステップS953の処理は、スイッチの検出信号がオフ状態からオン状態に変化したか否か判定する処理になる。そして、ステップS954の処理でタイマの値をチェックすることは、検出信号がオフ状態で合った期間が30ms以下であったか否か判定することに相当する。すなわち、図55に示されたような異常判定が実行されることになる。   In addition, when there is a bit that has changed to “1” in the process of step S953, the state of the bit of the input port has changed from “0” to “1” (the switch detection signal has changed from the OFF state to the ON state) Equivalent to the change to Therefore, the process of step S953 is a process of determining whether or not the switch detection signal has changed from the off state to the on state. Checking the value of the timer in the process of step S954 corresponds to determining whether or not the period in which the detection signal is in the off state is 30 ms or less. That is, the abnormality determination as shown in FIG. 55 is executed.

図20(B)に例示されたような不正行為が行われると、スイッチの検出信号の状態は図20(C)の下段に例示されたような状態になる可能性があるが、図55に示された処理によって、図20(C)の下段に示されたような信号状態が生じ場合に検出信号がオフ状態である期間が所定期間(この例では、30ms)以下であれば、異常として検出される(図55参照)。すなわち、図61に示された処理は、図20に例示されたような不正行為を検知可能な処理である。   When an illegal act as illustrated in FIG. 20B is performed, the state of the detection signal of the switch may be as illustrated in the lower part of FIG. 20C. When the signal state as shown in the lower part of FIG. 20C is generated by the processing shown in FIG. 20C, if the detection signal is off for a predetermined period (30 ms in this example) or less, an abnormality is It is detected (see FIG. 55). That is, the process shown in FIG. 61 is a process capable of detecting an illegal act as exemplified in FIG.

なお、図61に示すステップS911〜S956の処理は、図56に示されたステップS711〜S756の処理と同じである。ただし、演出制御手段では2ms毎にタイマ割込がかかるのに対して、払出制御手段では1ms毎にタイマ割込がかかるので、ステップS954における判定のための値は、ステップS754における判定のための値とは異なる。   Note that the processing in steps S911 to S956 shown in FIG. 61 is the same as the processing in steps S711 to S756 shown in FIG. However, the production control means takes a timer interrupt every 2 ms, whereas the payout control means takes a timer interruption every 1 ms. Therefore, the value for the determination in step S954 is the same as that for the determination in step S754. Different from the value.

また、払出制御用CPU370は、ステップS772の異常判定処理において、図59に示された処理と、図60に示された処理と、図61に示された処理とのいずれかを実行してもよいが、各処理のうちの2つ以上を実行するようにしてもよい。   Further, the payout control CPU 370 may execute any one of the processing shown in FIG. 59, the processing shown in FIG. 60, and the processing shown in FIG. 61 in the abnormality determination processing in step S772. However, two or more of the processes may be executed.

また、この実施の形態では、払出制御用CPU371は、タイマの値を加算し、タイマの値が所定値(図59に示された例では1000,図60に示された例では500)になった場合に、入賞異常が生じたと判定するか(図59におけるステップS913,S914参照)、またはカウンタの値が所定値以上であることを条件に入賞異常が生じたと判定したり(図60におけるステップS935,S936,S940参照)、タイマの値が所定値以下(図61に示された例では30以下)であった場合に、入賞異常が生じたと判定するようにしたが(図61におけるステップS954,S957参照)、タイマの値を減算するようにしてもよい。   Further, in this embodiment, the payout control CPU 371 adds the timer value, and the timer value becomes a predetermined value (1000 in the example shown in FIG. 59, 500 in the example shown in FIG. 60). If it is determined that a winning abnormality has occurred (see steps S913 and S914 in FIG. 59), it is determined that a winning abnormality has occurred on condition that the counter value is equal to or greater than a predetermined value (step in FIG. 60). S935, S936, S940), it is determined that a winning abnormality has occurred when the timer value is equal to or less than a predetermined value (30 or less in the example shown in FIG. 61) (step S954 in FIG. 61). , S957), the timer value may be subtracted.

例えば、払出制御用CPU371は、図59におけるステップS920の処理でタイマに1000をセットしてステップS912の処理でタイマの値を1減算したり、図60におけるステップS938の処理でタイマに500を初期設定しステップS912の処理でタイマの値を1減算したり、図61におけるステップS955の処理でタイマに30を初期設定しステップS912の処理でタイマの値を1減算したりする。その場合には、払出制御用CPU371は、図59におけるステップS913の処理、および図60におけるステップS934の処理で、タイマの値が0になったか否か確認する。また、図61におけるステップS952の処理で、タイマの値が0または負値であるか否か確認する。   For example, the payout control CPU 371 sets 1000 to the timer in the process of step S920 in FIG. 59 and subtracts 1 from the timer value in the process of step S912, or initializes the timer to 500 in the process of step S938 in FIG. The timer value is decremented by 1 in the process of step S912, or 30 is initially set in the process of step S955 in FIG. 61, and the timer value is decremented by 1 in the process of step S912. In that case, the payout control CPU 371 checks whether or not the timer value has become 0 in the process of step S913 in FIG. 59 and the process of step S934 in FIG. In step S952 in FIG. 61, it is checked whether the timer value is 0 or a negative value.

また、この実施の形態では、遊技制御用マイクロコンピュータ560は、いずれかの入賞口スイッチからの検出信号の状態が変化したときにのみ入力ポート状態指定コマンドを送信したが、検出信号の状態が変化する/しないに関わらず、遊技制御処理の開始周期(この実施の形態では、4ms)毎に、入力ポート状態指定コマンドを送信するようにしてもよい。   In this embodiment, the game control microcomputer 560 transmits the input port state designation command only when the state of the detection signal from any one of the prize opening switches changes, but the state of the detection signal changes. Regardless of whether or not it is performed, the input port state designation command may be transmitted every start period of the game control process (in this embodiment, 4 ms).

遊技制御処理の開始周期毎に入力ポート状態指定コマンドを送信する場合には、遊技制御用マイクロコンピュータ560は、スイッチ処理(図23参照)において、ステップS109の演算結果に関わらず、入力ポート状態指定コマンドを送信する制御を行う。   When the input port state designation command is transmitted at each start period of the game control process, the game control microcomputer 560 designates the input port state in the switch process (see FIG. 23) regardless of the calculation result of step S109. Controls sending commands.

また、払出制御用CPU371は、図59に示すステップS918の処理で入力ポート0の状態を示すデータにおいて「1」に変化したビットがないことを確認した場合には、RAMに格納される前回値と入力ポート状態指定コマンドのデータとを比較することによって、入力ポート0の状態を示すデータにおいて「0」に変化したビットがあるか否か確認し、「0」に変化したビットがあることを確認した場合にステップS919の処理を実行する。入力ポート0の状態を示すデータにおいて「0」に変化したビットがあるか否か確認するのは、図59に示された処理では、遊技制御用マイクロコンピュータ560が入力ポート0のいずれかのビットが変化した場合に、入力ポート状態指定コマンドを送信することが前提であったのに対して、検出信号の状態が変化する/しないに関わらず遊技制御処理の開始周期毎に入力ポート状態指定コマンドを送信する場合には入力ポート0の状態を示すデータにおいて「1」に変化したビットも「0」に変化したビットも存在しないことがあるからである。   When the payout control CPU 371 confirms that there is no bit changed to “1” in the data indicating the state of the input port 0 in the process of step S918 shown in FIG. 59, the previous value stored in the RAM. Is compared with the data of the input port state designation command to check whether there is a bit that has changed to “0” in the data indicating the state of the input port 0 and that there is a bit that has changed to “0”. If it is confirmed, the process of step S919 is executed. In the processing shown in FIG. 59, whether or not there is a bit changed to “0” in the data indicating the state of the input port 0 is determined by the game control microcomputer 560 by any bit of the input port 0. In contrast to the assumption that the input port state designation command is transmitted when the change occurs, the input port state designation command is set at each start period of the game control process regardless of whether the state of the detection signal changes. This is because there may be neither a bit changed to “1” nor a bit changed to “0” in the data indicating the state of the input port 0.

なお、検出信号の状態が変化する/しないに関わらず遊技制御処理の開始周期毎に入力ポート状態指定コマンドを送信する場合でも、図60に示された処理および図61に示された処理については、払出制御用CPU371は、同様の処理を実行すればよい。   It should be noted that the process shown in FIG. 60 and the process shown in FIG. 61 are performed even when the input port status designation command is transmitted every start period of the game control process regardless of whether the state of the detection signal changes. The payout control CPU 371 may execute similar processing.

また、図59〜図61に示す処理では、払出制御用CPU370は、入賞異常が生じたと判定した場合に、ターミナル基板160に入賞異常を示す信号を出力したが、入賞異常を示す信号を主基板31に送信するようにしてもよい。   In the processing shown in FIGS. 59 to 61, when the payout control CPU 370 determines that a winning abnormality has occurred, it outputs a signal indicating a winning abnormality to the terminal board 160. You may make it transmit to 31.

入賞異常を示す信号を主基板31に送信する場合には、一例として、図18および図19に示された接続OKコマンドと賞球準備中コマンドにおいて、ビット4に、入賞異常を示す信号を割り当てる。すなわち、ビット4が「1」である場合に、入賞異常が生じたことが示される。なお、接続OKコマンドにのみ入賞異常を示す信号を割り当ててもよい。   When a signal indicating a winning abnormality is transmitted to the main board 31, as an example, a signal indicating a winning abnormality is assigned to bit 4 in the connection OK command and the winning ball preparation command shown in FIGS. . That is, when bit 4 is “1”, it indicates that a winning abnormality has occurred. Note that a signal indicating a prize abnormality may be assigned only to the connection OK command.

また、払出制御用CPU370は、入賞異常が生じたと判定した場合に(ステップS913,S940,S960で「Y」の場合)、ターミナル基板160に入賞異常を示す信号を出力することに代えて、RAMの所定領域に、入賞異常が生じたことが示すデータをセットする。   When the payout control CPU 370 determines that a winning abnormality has occurred (in the case of “Y” in steps S913, S940, and S960), instead of outputting a signal indicating a winning abnormality to the terminal board 160, the RAM In the predetermined area, data indicating that a prize abnormality has occurred is set.

そして、払出制御用CPU370は、図40,図41,図42,図43,図45に示されたステップS7414、ステップS74207、ステップS74221、ステップS74304、ステップS74312、ステップS74404、ステップS74412の主制御送信コマンド変換処理において、RAMの所定領域に入賞異常が生じたことが示すデータをセットされている場合には、接続OKコマンドのビット4を「1」にする処理も行う。   Then, the payout control CPU 370 transmits the main control of Step S7414, Step S74207, Step S74221, Step S74304, Step S74312, Step S74404, and Step S74412 shown in FIGS. 40, 41, 42, 43, and 45. In the command conversion process, when data indicating that a winning abnormality has occurred is set in a predetermined area of the RAM, a process of setting bit 4 of the connection OK command to “1” is also performed.

遊技制御用マイクロコンピュータ560におけるCPU56は、図29に示されたステップS5223の処理で接続OKコマンドが受信されたことが確認された場合に、ステップS5224の処理で、接続OKコマンドのビット4を確認し、ビット4が「1」である場合に、ターミナル基板160に入賞異常を示す信号を出力する処理も行う。また、図31に示されたステップS52406の処理および図32に示されたステップS52506の処理で賞球準備中コマンドが受信されたことが確認された場合に、ステップS52407およびステップS52507の処理で、賞球準備中コマンドのビット4を確認し、ビット4が「1」である場合に、ターミナル基板160に入賞異常を示す信号を出力する処理も行う。   The CPU 56 in the game control microcomputer 560 checks the bit 4 of the connection OK command in the process of step S5224 when it is confirmed that the connection OK command is received in the process of step S5223 shown in FIG. When bit 4 is “1”, a process of outputting a signal indicating a prize abnormality to the terminal board 160 is also performed. Further, when it is confirmed that the command for preparing a prize ball is received in the process of step S52406 shown in FIG. 31 and the process of step S52506 shown in FIG. 32, in the process of step S52407 and step S52507, A process of outputting a signal indicating a prize abnormality to the terminal board 160 when the bit 4 of the command for preparing a winning ball is confirmed and the bit 4 is “1” is also performed.

また、ターミナル基板160に入賞異常を示す信号を出力したり入賞異常を示す信号を主基板31に送信したときに、払出制御用マイクロコンピュータ370は、賞球払出処理(賞球払出処理に加えて球貸し処理についても)を実行しない状態に移行したり、エラー表示用LED374にエラー信号を出力して所定のエラーコードを表示したりしてもよい。また、払出処理を実行しない状態への移行とエラーコードの表示とをともに実行してもよい。また、払出制御用マイクロコンピュータ370が払出処理を実行しない状態への移行とエラーコードの表示とのうちの少なくとも一方を実行するとともに、または、それらを実行せずとも、遊技制御用マイクロコンピュータ560が、上述したように接続OKコマンドや賞球準備中コマンドによって払出制御用マイクロコンピュータ370から入賞異常を示す信号を受信したときに、演出制御用マイクロコンピュータ100に入賞異常を示すコマンドを送信してもよい。演出制御用マイクロコンピュータ100は、入賞異常を示すコマンドを受信した場合に、例えば、演出表示装置9において異常報知を行う。   Further, when a signal indicating a winning abnormality is output to the terminal board 160 or a signal indicating a winning abnormality is transmitted to the main board 31, the payout control microcomputer 370 receives a winning ball payout process (in addition to the winning ball payout process). It is also possible to shift to a state in which the ball lending process is not executed) or to output an error signal to the error display LED 374 to display a predetermined error code. Further, the transition to the state where the payout process is not executed and the display of the error code may be executed together. Further, the game control microcomputer 560 executes at least one of the transition to a state where the payout control microcomputer 370 does not execute the payout process and the display of the error code, or without executing them. As described above, when a signal indicating a prize abnormality is received from the payout control microcomputer 370 by a connection OK command or a winning ball preparation command, a command indicating a prize abnormality is transmitted to the effect control microcomputer 100. Good. When the effect control microcomputer 100 receives a command indicating an award abnormality, for example, the effect display device 9 performs an abnormality notification.

以上のように、第2の実施の形態では、払出制御用マイクロコンピュータ370によって入賞異常が生じたか否かが判定され、入賞異常が生じたと判定されたときに、払出制御用マイクロコンピュータ370から直接、または遊技制御用マイクロコンピュータ560を介して、入賞異常を示す信号が遊技機外部に出力される。よって、遊技機の外部(例えば、ホールコンピュータ)において、入賞異常が生じたことが確認される。   As described above, in the second embodiment, whether or not a winning abnormality has occurred is determined by the payout control microcomputer 370, and when it is determined that a winning abnormality has occurred, the payout control microcomputer 370 directly Alternatively, a signal indicating an award abnormality is output to the outside of the gaming machine via the gaming control microcomputer 560. Therefore, it is confirmed that a prize abnormality has occurred outside the gaming machine (for example, a hall computer).

なお、第2の実施の形態では、払出制御用マイクロコンピュータ370から入賞異常を示す信号が直接遊技機外部に出力されない場合には、遊技制御用マイクロコンピュータ560を介して入賞異常を示す信号が遊技機外部に出力されるが、主基板31を経由するが遊技制御用マイクロコンピュータ560を介さないようにして、入賞異常を示す信号が遊技機外部に出力するようにしてもよい。その場合には、払出制御用マイクロコンピュータ370は、1本の信号線で入賞異常を示す信号を主基板31に対して出力する。そして、その信号線により入力を、主基板31の内部において、ターミナル基板160に至るコネクタへの配線に接続する。   In the second embodiment, when a signal indicating a prize abnormality is not directly output from the game control microcomputer 370 to the outside of the gaming machine, a signal indicating a prize abnormality is played through the game control microcomputer 560. Although it is output to the outside of the machine, a signal indicating a winning abnormality may be output to the outside of the gaming machine by passing through the main board 31 but not via the game control microcomputer 560. In this case, the payout control microcomputer 370 outputs a signal indicating a winning abnormality to the main board 31 with one signal line. Then, the input is connected to the wiring to the connector reaching the terminal board 160 inside the main board 31 by the signal line.

以上に説明したように、第1の実施の形態および第2の実施の形態では、遊技制御手段が出力したコマンドにもとづいて、遊技機に設けられている電気部品(演出表示装置9や球払出装置97)を制御する電気部品制御手段(演出制御手段や払出制御手段)が、遊技制御手段からのコマンドにもとづいて、入賞を検出するスイッチからの検出信号の入力が継続している期間(図49参照)または検出信号の入力頻度が所定の閾値を越えた(図52参照)場合に異常が生じたと判定するので、遊技制御手段の処理負担を増大させることなく、入賞を検出するスイッチに対する不正行為を確実に検知することができる。   As described above, in the first embodiment and the second embodiment, the electrical components (the effect display device 9 and the ball payout) provided in the gaming machine based on the command output by the game control means. The period during which the input of the detection signal from the switch for detecting the winning is performed by the electrical component control means (effect control means and payout control means) for controlling the device 97) based on the command from the game control means (see FIG. 49) or if the input frequency of the detection signal exceeds a predetermined threshold (see FIG. 52), it is determined that an abnormality has occurred. Actions can be detected reliably.

また、遊技制御手段は、検出信号の入力状態が変化したときにのみ検出信号の入力状態を示すコマンドを出力するので、コマンドの出力周期によって遊技制御手段の制御周期を把握することにもとづく不正行為も防止することができる。すなわち、例えば、遊技制御手段の制御周期毎に常にコマンドを出力するように構成した場合には、遊技制御手段と電気部品制御手段との間のコマンドを監視することによって遊技制御手段の制御周期を把握可能になるが、検出信号の入力状態が変化したときにのみ検出信号の入力状態を示すコマンドを出力するように構成することによって、コマンドにもとづく遊技制御手段の制御周期の把握が困難になる。   Also, since the game control means outputs a command indicating the detection signal input state only when the detection signal input state changes, an illegal act based on grasping the control cycle of the game control means by the command output cycle Can also be prevented. That is, for example, when a command is always output for each control cycle of the game control means, the control cycle of the game control means is set by monitoring the command between the game control means and the electrical component control means. Although it is possible to grasp, it is difficult to grasp the control cycle of the game control means based on the command by configuring the command indicating the detection signal input state only when the detection signal input state changes. .

上記の各実施の形態では、始動口スイッチ14a、カウントスイッチ23、および各入賞口スイッチ29a,30aとして近接スイッチが用いられたが、フォトセンサを用いてもよい。図62(A)は、始動口スイッチ14a、カウントスイッチ23、および各入賞口スイッチ29a,30aとして使用可能な反射型のフォトセンサを示す説明図である。図62(A)に示すフォトセンサは、発光する発光ダイオード(LED)341と、受光して電流を出力するフォトトランジスタ342とで構成されている。発光ダイオード341およびフォトトランジスタ342の近傍を遊技球が通過すると、遊技球が反射した発光ダイオード341からの光をフォトトランジスタ342が受光して出力側に電流を流す。出力側は主基板31に接続され、主基板31において、フォトセンサの検出信号は、入力ドライバ回路から遊技制御用マイクロコンピュータの入力ポートに入力される。フォトセンサの出力側(具体的には、フォトトランジスタ342の出力側)に電流が流れると、入力ドライバ回路は、ハイレベルの検出信号を遊技制御用マイクロコンピュータに出力する。   In each of the above embodiments, the proximity switch is used as the start port switch 14a, the count switch 23, and the winning port switches 29a and 30a. However, a photo sensor may be used. FIG. 62A is an explanatory diagram showing a reflective photosensor that can be used as the start port switch 14a, the count switch 23, and the winning port switches 29a and 30a. The photosensor illustrated in FIG. 62A includes a light-emitting diode (LED) 341 that emits light and a phototransistor 342 that receives light and outputs current. When the game ball passes in the vicinity of the light-emitting diode 341 and the phototransistor 342, the phototransistor 342 receives light from the light-emitting diode 341 reflected by the game ball and causes a current to flow to the output side. The output side is connected to the main board 31, and the detection signal of the photo sensor is input from the input driver circuit to the input port of the game control microcomputer. When a current flows to the output side of the photosensor (specifically, the output side of the phototransistor 342), the input driver circuit outputs a high level detection signal to the game control microcomputer.

図62(B)は、始動口スイッチ14a、カウントスイッチ23、および各入賞口スイッチ29a,30aとして使用可能な透過型のフォトセンサを示す説明図である。図62(B)に示すフォトセンサは、発光素子(LED341)と受光素子(フォトトランジスタ342)とを入賞球経路を挟むように対向させて設置し、遊技球が発光素子からの光を遮ることによって受光素子が光を検出しなくなることによって、発光素子と受光素子との間を通過した遊技球を検出する透過型のフォトセンサを用いてもよい。透過型のフォトセンサを用いる場合に、図62(B)における下段に示すように、発光素子の光軸(図62(B)において黒丸で例示されている。)が、遊技球経路(入賞球経路)を通過する遊技球の中央部からずれるように、発光素子および受光素子を設置することが好ましい。光軸が遊技球の中央部に相当するように設置する場合に比べて、連続して通過する2つの遊技球の間隔が相対的に広い部分(図62(B)における「空隙」の部分)において遊技球を検知することができ、2つの遊技球を別個に検出しやすいからである。同様の理由で、図62(A)に例示した反射型のフォトセンサを用いる場合にも、発光素子からの光の反射点が遊技球の中央部からずれるように、発光素子および受光素子を設置することが好ましい。   FIG. 62B is an explanatory diagram showing a transmissive photosensor that can be used as the start port switch 14a, the count switch 23, and the winning port switches 29a and 30a. The photosensor illustrated in FIG. 62B is provided with a light-emitting element (LED 341) and a light-receiving element (phototransistor 342) facing each other across a winning ball path so that the game ball blocks light from the light-emitting element. A transmission type photosensor that detects a game ball that has passed between the light emitting element and the light receiving element may be used by preventing the light receiving element from detecting light. When a transmissive photosensor is used, as shown in the lower part of FIG. 62B, the optical axis of the light emitting element (illustrated by a black circle in FIG. 62B) is a game ball path (winning ball). It is preferable to install the light emitting element and the light receiving element so as to deviate from the center of the game ball passing through the route. Compared to the case where the optical axis corresponds to the central portion of the game ball, a portion where the interval between two game balls that pass continuously is relatively wide (the portion of “void” in FIG. 62B) This is because the game ball can be detected at, and the two game balls can be easily detected separately. For the same reason, when using the reflective photosensor illustrated in FIG. 62A, the light emitting element and the light receiving element are installed so that the reflection point of the light from the light emitting element is shifted from the center of the game ball. It is preferable to do.

また、近接スイッチとフォトセンサを併用してもよい。図63は、近接スイッチとフォトセンサの併用例を示す説明図である。なお、図63には、カウントスイッチ23に適用された例が示されている。図63(A)に示す例では、カウントスイッチ23は、近接スイッチ23aとフォトセンサ23bとを含む。カウントスイッチ23において、遊技球が先に近接スイッチ23aを通過し、その後、フォトセンサ23bを通過するように、近接スイッチ23aおよびフォトセンサ23bが配置されている。   Further, a proximity switch and a photo sensor may be used in combination. FIG. 63 is an explanatory diagram showing a combination example of a proximity switch and a photosensor. FIG. 63 shows an example applied to the count switch 23. In the example shown in FIG. 63A, the count switch 23 includes a proximity switch 23a and a photosensor 23b. In the count switch 23, the proximity switch 23a and the photosensor 23b are arranged so that the game ball first passes through the proximity switch 23a and then passes through the photosensor 23b.

図63(A)に示すように、スイッチにおいて上部(遊技球の流路の上流側)に電磁式の近接スイッチが設けられ、下部(遊技球の流路の下流側)に光学式のフォトセンサが設けられているので、遊技球を検出するスイッチが電波による不正行為を受けた場合に不正行為を確実に検知することができる。また、図63(B)に示すように、上部にフォトセンサを設け、下部に近接スイッチを設けてもよい。そのように構成した場合には、遊技球を検出するスイッチが光による不正行為を受けた場合に、不正行為を確実に検知することができる。   As shown in FIG. 63A, an electromagnetic proximity switch is provided in the upper part (upstream side of the game ball flow path) in the switch, and an optical photosensor is provided in the lower part (downstream side of the game ball flow path). Therefore, when a switch for detecting a game ball receives a fraudulent act by radio waves, the fraudulent act can be reliably detected. As shown in FIG. 63B, a photo sensor may be provided in the upper portion and a proximity switch may be provided in the lower portion. In such a configuration, when a switch for detecting a game ball receives a fraudulent act of light, the fraudulent act can be reliably detected.

また、スイッチは、近接スイッチ23aとフォトセンサ23bとが1つのパッケージに収納されたスイッチモジュール(センサユニット)として形成されていることが好ましい。   The switch is preferably formed as a switch module (sensor unit) in which the proximity switch 23a and the photosensor 23b are housed in one package.

図64は、遊技制御手段における入力ポートのビット割り当ての他の例を示す説明図である。図64に示す例では、入力ポート0のビット0〜4には、それぞれ、カウントスイッチa、ゲートスイッチb、左落とし入賞口スイッチa、右落とし入賞口スイッチa、始動口スイッチa(「a」は、近接スイッチを意味する。)の検出信号が入力される。なお、入力ポート1については、図11に示されたビット割り当てと同じである。   FIG. 64 is an explanatory diagram showing another example of bit assignment of input ports in the game control means. In the example shown in FIG. 64, the bits 0 to 4 of the input port 0 have a count switch a, a gate switch b, a left drop winning opening switch a, a right drop winning opening switch a, and a start opening switch a (“a”), respectively. Represents a proximity switch.) Is input. The input port 1 is the same as the bit assignment shown in FIG.

入力ポート0’のビット0,4には、それぞれ、カウントスイッチb、始動口スイッチb(「b」は、フォトセンサを意味する。)の検出信号が入力される。   The detection signals of the count switch b and the start port switch b (“b” means a photo sensor) are input to bits 0 and 4 of the input port 0 ′, respectively.

つまり、カウントスイッチ23および始動口スイッチ14aは、図63に示すような2つのスイッチで構成されている。遊技制御用マイクロコンピュータ560は、2つのスイッチのいずれか一方のスイッチの検出信号がオン状態になったが他方のスイッチの検出信号がオン状態にならない場合に不正行為が生じたと判定することによって、カウントスイッチ23および始動口スイッチ14aについては不正行為を確実に検知することができる。なお、同時に同じ遊技球を検出するように2つのスイッチを設けることは難しいので、遊技制御用マイクロコンピュータ560は、当然、一方のスイッチの検出信号がオン状態になってから所定時間以内(設置位置の関係によるが、例えば、0.5秒)において他方のスイッチの検出信号がオン状態にならない場合に不正行為が生じたと判定する。また、1個の遊技球毎に不正行為が生じたか否か判定するのではなく、一方のスイッチの検出信号がオン状態になった回数の計数値(累積値)と他方のスイッチの検出信号がオン状態になった回数の計数値(累積値)との差があらかじめ決められている値(例えば、10)を越えた場合に不正行為が生じたと判定したり、一方のスイッチの検出信号にもとづいてカウンタの値を+1し、他方のスイッチの検出信号にもとづいて当該カウンタの値を−1し、カウンタの値があらかじめ決められている値(例えば、−5〜+5)を越えた場合に不正行為が生じたと判定したりしてもよい。   That is, the count switch 23 and the start port switch 14a are composed of two switches as shown in FIG. The gaming control microcomputer 560 determines that an illegal act has occurred when the detection signal of one of the two switches is turned on but the detection signal of the other switch is not turned on. The count switch 23 and the start port switch 14a can reliably detect fraudulent acts. Since it is difficult to provide two switches so as to detect the same game ball at the same time, the game control microcomputer 560 naturally has to be within a predetermined time after the detection signal of one switch is turned on (installation position). However, it is determined that an illegal act has occurred when the detection signal of the other switch does not turn on in 0.5 second). In addition, it is not determined whether an illegal act has occurred for each game ball, but the count value (cumulative value) of the number of times the detection signal of one switch is turned on and the detection signal of the other switch are When the difference from the count value (cumulative value) of the number of times of the on state exceeds a predetermined value (for example, 10), it is determined that an illegal act has occurred, or based on the detection signal of one switch. The counter value is incremented by +1, the counter value is decremented by -1 based on the detection signal of the other switch, and the counter value is invalid if it exceeds a predetermined value (for example, -5 to +5). It may be determined that an action has occurred.

また、カウントスイッチ23のみを、図63に示すような2つのスイッチで構成してもよい。   Further, only the count switch 23 may be constituted by two switches as shown in FIG.

第1の実施の形態および第2の実施の形態では、1つのスイッチからの検出信号を対照して入賞異常が生じたか否か判定するので、近接スイッチとフォトセンサを併用しないスイッチ(例えば、入賞口スイッチ29a,30a)についても、不正行為を確実に検知することができる。つまり、入賞に対する賞球個数が多い大入賞口への入賞を検出するカウントスイッチ23や特別図柄の変動に関する始動領域に設けられる始動口スイッチ14aとして近接スイッチとフォトセンサを併用するスイッチを用いて不正行為を確実に検知できるようにするが、入賞口スイッチ29a,30aについてはコスト増を抑えるために近接スイッチとフォトセンサを併用しないスイッチにしても、第1の実施の形態および第2の実施の形態のように構成することによって、不正行為を確実に検知することができる。   In the first embodiment and the second embodiment, since it is determined whether or not a winning abnormality has occurred by comparing the detection signals from one switch, a switch that does not use a proximity switch and a photosensor (for example, winning a prize). The mouth switch 29a, 30a) can also reliably detect fraud. In other words, it is illegal to use a switch that uses a proximity switch and a photo sensor as a count switch 23 for detecting a prize at a large prize opening with a large number of winning balls for a prize or a start opening switch 14a provided in a start area for fluctuation of special symbols. Although it is possible to reliably detect the action, the winning opening switches 29a and 30a may be switches that do not use a proximity switch and a photosensor in order to suppress an increase in cost, in the first embodiment and the second embodiment. By configuring as in the form, it is possible to reliably detect fraud.

本発明は、所定の通過領域を遊技媒体が通過したことにもとづいて景品として景品遊技媒体を払い出すパチンコ遊技機などの遊技機に適用可能である。   The present invention can be applied to a gaming machine such as a pachinko gaming machine that pays out a prize gaming medium as a prize based on the passing of a gaming medium through a predetermined passing area.

1 パチンコ遊技機
9 演出表示装置
14 始動入賞口
14a 始動口スイッチ
15 可変入賞球装置
23 カウントスイッチ
23a 近接スイッチ
23b フォトセンサ
29a,30a 入賞口スイッチ
31 遊技制御基板(主基板)
37 払出制御基板
56 CPU
80 演出制御基板
100 演出制御用マイクロコンピュータ
100a 演出制御用CPU
370 払出制御用マイクロコンピュータ
371 払出制御用CPU
505 シリアル通信回路
560 遊技制御用マイクロコンピュータ
DESCRIPTION OF SYMBOLS 1 Pachinko machine 9 Production display device 14 Start winning opening 14a Start opening switch 15 Variable winning ball apparatus 23 Count switch 23a Proximity switch 23b Photo sensor 29a, 30a Winning opening switch 31 Game control board (main board)
37 Dispensing control board 56 CPU
80 Production control board 100 Production control microcomputer 100a Production control CPU
370 Microcomputer for payout control 371 CPU for payout control
505 Serial communication circuit 560 Microcomputer for game control

Claims (1)

遊技媒体を用いて遊技者が所定の遊技を行うことが可能であり、遊技領域に設けられている所定の通過領域を遊技媒体が通過したことにもとづいて景品として景品遊技媒体を払い出す遊技機であって、
前記通過領域を通過する遊技媒体を検出して検出信号を出力する検出手段と、
遊技の進行を制御する遊技制御処理を実行する遊技制御手段と、
前記遊技制御手段が出力したコマンドにもとづいて、遊技機に設けられている電気部品を制御する電気部品制御手段とを備え、
前記遊技制御手段は、前記検出手段からの前記検出信号を入力し、該検出信号の入力状態を示すコマンドを前記電気部品制御手段に出力するコマンド出力手段を含み、
前記電気部品制御手段は、前記コマンド出力手段が出力したコマンドにもとづいて、前記検出信号の入力が継続している期間または前記検出信号の入力頻度が所定の閾値を超えた場合に異常が生じたと判定する異常判定手段とを含む
ことを特徴とする遊技機。
A gaming machine in which a player can play a predetermined game using a game medium and pays out a prize game medium as a prize based on the passage of the game medium through a predetermined passage area provided in the game area Because
Detecting means for detecting a game medium passing through the passage area and outputting a detection signal;
Game control means for executing a game control process for controlling the progress of the game;
Electric component control means for controlling electric components provided in the gaming machine based on the command output by the game control means;
The game control means includes command output means for inputting the detection signal from the detection means and outputting a command indicating an input state of the detection signal to the electrical component control means,
The electrical component control means, based on the command output from the command output means, that an abnormality has occurred in a period during which the input of the detection signal continues or when the input frequency of the detection signal exceeds a predetermined threshold A gaming machine comprising an abnormality determining means for determining.
JP2010167517A 2010-07-26 2010-07-26 Game machine Pending JP2012024417A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010167517A JP2012024417A (en) 2010-07-26 2010-07-26 Game machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010167517A JP2012024417A (en) 2010-07-26 2010-07-26 Game machine

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2014200712A Division JP6096730B2 (en) 2014-09-30 2014-09-30 Game machine

Publications (1)

Publication Number Publication Date
JP2012024417A true JP2012024417A (en) 2012-02-09

Family

ID=45778097

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010167517A Pending JP2012024417A (en) 2010-07-26 2010-07-26 Game machine

Country Status (1)

Country Link
JP (1) JP2012024417A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014087427A (en) * 2012-10-29 2014-05-15 Sanyo Product Co Ltd Game machine
JP2016000346A (en) * 2011-03-07 2016-01-07 株式会社三洋物産 Game machine
JP2017185381A (en) * 2017-07-21 2017-10-12 株式会社三共 Game machine
JP2017185380A (en) * 2017-07-21 2017-10-12 株式会社三共 Game machine

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000005408A (en) * 1998-06-22 2000-01-11 Sankyo Kk Pachinko game machine
JP2002035325A (en) * 2000-07-27 2002-02-05 Sankyo Kk Game machine
JP2003135816A (en) * 2001-10-31 2003-05-13 Heiwa Corp Game machine

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000005408A (en) * 1998-06-22 2000-01-11 Sankyo Kk Pachinko game machine
JP2002035325A (en) * 2000-07-27 2002-02-05 Sankyo Kk Game machine
JP2003135816A (en) * 2001-10-31 2003-05-13 Heiwa Corp Game machine

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016000346A (en) * 2011-03-07 2016-01-07 株式会社三洋物産 Game machine
JP2017035550A (en) * 2011-03-07 2017-02-16 株式会社三洋物産 Game machine
JP2014087427A (en) * 2012-10-29 2014-05-15 Sanyo Product Co Ltd Game machine
JP2017185381A (en) * 2017-07-21 2017-10-12 株式会社三共 Game machine
JP2017185380A (en) * 2017-07-21 2017-10-12 株式会社三共 Game machine

Similar Documents

Publication Publication Date Title
JP5244065B2 (en) Game machine
JP5517632B2 (en) Game machine
JP5174847B2 (en) Game machine, game management device, and game system
JP5758081B2 (en) Game machine
JP6124468B2 (en) Game machine and game management device
JP5518616B2 (en) Game machine
JP5244066B2 (en) Game machine
JP5309249B2 (en) Game machine and game management device
JP2012024417A (en) Game machine
JP5654797B2 (en) Game machine
JP5845243B2 (en) Game machine
JP2011167415A (en) Game machine
JP5782146B2 (en) Game machine
JP6271656B2 (en) Game machine
JP6096730B2 (en) Game machine
JP2016193302A (en) Game machine
JP5698173B2 (en) Game machine
JP5996011B2 (en) Game machine
JP5362881B2 (en) Game machine
JP5571829B2 (en) Game machine
JP5723038B2 (en) Game machine
JP5485445B2 (en) Game machine
JP5485446B2 (en) Game machine
JP5362880B2 (en) Game machine
JP6121500B2 (en) Game machine

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130620

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140221

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140225

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140428

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20140701

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140930

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20141008

A912 Removal of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20141226