JP7226080B2 - Motor control device and reel game machine - Google Patents

Motor control device and reel game machine Download PDF

Info

Publication number
JP7226080B2
JP7226080B2 JP2019092085A JP2019092085A JP7226080B2 JP 7226080 B2 JP7226080 B2 JP 7226080B2 JP 2019092085 A JP2019092085 A JP 2019092085A JP 2019092085 A JP2019092085 A JP 2019092085A JP 7226080 B2 JP7226080 B2 JP 7226080B2
Authority
JP
Japan
Prior art keywords
motor
rotation
reference point
value
detection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2019092085A
Other languages
Japanese (ja)
Other versions
JP2020188600A (en
Inventor
昌樹 水谷
充典 杉浦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Omron Corp
Original Assignee
Omron Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Omron Corp filed Critical Omron Corp
Priority to JP2019092085A priority Critical patent/JP7226080B2/en
Publication of JP2020188600A publication Critical patent/JP2020188600A/en
Application granted granted Critical
Publication of JP7226080B2 publication Critical patent/JP7226080B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Slot Machines And Peripheral Devices (AREA)
  • Control Of Motors That Do Not Use Commutators (AREA)

Description

本発明は、モータを制御するためのモータ制御装置及びそのようなモータ制御装置を有する回胴遊技機に関する。 The present invention relates to a motor control device for controlling a motor and a reel game machine having such a motor control device.

回胴遊技機は、円周方向に沿って複数の図柄が表された複数の回転リール(以下、単にリールと呼ぶことがある)を有する。また回胴遊技機では、各回転リールが回転動作しているときに、遊技者が停止ボタンを押下するといった操作を行うことで対応する回転リールの回転が停止される。その際、各回転リールに表された図柄が一列に並んだ状態で停止するように、押下された停止ボタンに対応する回転リールは、その回転リールに表された複数の図柄の何れかが予め設定された停止位置にて静止するように停止される。そのため、回転リールを駆動するモータを制御するモータ制御装置は、回転リールを目標とする停止位置に精度良く停止させることが求められる。しかし、場合によっては、モータの回転軸と回転リールとの間に生じた滑りなどにより、回転リールを所定の回転量だけ回転させるためのモータの回転量と回転リールの実際の回転量とがずれることがある。そこで、モータにより駆動される回胴の回転原点の位置を検出するための原点センサを設けることが提案されている(例えば、特許文献1を参照)。この原点センサは、発光素子と受光素子とが対になった光センサで構成され、回胴が回転可能に取り付けられたフレームに固定されている。そして中心にてステッピングモータの回転軸に取り付けられ、回胴を支持する十字状のアームの1本に、原点センサ側へ突出した細板状の遮蔽板が一体的に固設される。遮蔽板は、ステッピングモータの回転により回胴とともに回転し、回胴が一回転する毎に原点センサを1回通過するので、遮蔽板が発光素子からの光を遮って受光素子がその光を受光できなくなる立上りタイミング、あるいは、その逆の立下りタイミングが回転原点として検出される。 The reel game machine has a plurality of rotating reels (hereinafter sometimes simply referred to as reels) on which a plurality of symbols are displayed along the circumferential direction. Further, in the reel game machine, when the player presses a stop button while each reel is rotating, the rotation of the corresponding reel is stopped. At that time, the rotating reel corresponding to the pressed stop button is preliminarily selected from any of the plurality of symbols displayed on the rotating reel so that the symbols displayed on each rotating reel are stopped in a row. It is stopped so as to stand still at the set stop position. Therefore, the motor control device that controls the motor that drives the rotating reel is required to accurately stop the rotating reel at a target stop position. However, in some cases, slippage between the rotating shaft of the motor and the rotating reel causes a deviation between the amount of rotation of the motor for rotating the rotating reel by a predetermined amount and the actual amount of rotating the rotating reel. Sometimes. Therefore, it has been proposed to provide an origin sensor for detecting the position of the origin of rotation of the rotary drum driven by the motor (see, for example, Japanese Unexamined Patent Application Publication No. 2002-100003). This origin sensor is composed of an optical sensor in which a light-emitting element and a light-receiving element are paired, and is fixed to a frame to which a reel is rotatably attached. A thin plate-like shielding plate projecting toward the origin sensor is integrally fixed to one of the cross-shaped arms that are attached to the rotating shaft of the stepping motor at the center and support the rotating drum. The shielding plate rotates together with the rotating drum due to the rotation of the stepping motor, and passes the origin sensor once per rotation of the rotating drum. The rising timing at which the rotation becomes impossible or the opposite falling timing is detected as the origin of rotation.

特開2016-116946号公報JP 2016-116946 A

上記の原点センサにおいて、回転リールといった回転体の回転軸を中心とする円周方向に沿った遮蔽板の長さは、一定とは限らず、その回転体の仕様に応じて定められる。そして遮蔽板の長さが異なれば、モータにより駆動される、回転リールといった回転体の実際の回転位置とそのモータの回転量に対応する回転体の回転位置間のずれを求めるための基準点も異なり得る。 In the origin sensor described above, the length of the shielding plate along the circumferential direction around the rotation axis of the rotating body such as the rotating reel is not always constant, and is determined according to the specifications of the rotating body. If the length of the shield plate is different, there is also a reference point for determining the deviation between the actual rotational position of a rotating body such as a rotating reel driven by a motor and the rotational position of the rotating body corresponding to the amount of rotation of the motor. can differ.

そこで、本発明は、モータが駆動する回転体に設けられた基準点の位置が回転体に応じて異なる場合でも、回転体の実際の回転位置とモータの回転量に対応する回転体の回転位置間のずれを補正可能なモータ制御装置を提供することを目的とする。 Therefore, even if the position of the reference point provided on the rotating body driven by the motor is different depending on the rotating body, the present invention provides the actual rotational position of the rotating body and the rotational position of the rotating body corresponding to the amount of rotation of the motor. It is an object of the present invention to provide a motor control device capable of correcting the deviation between the two.

本発明の一つの形態として、回転中心の回りに回転可能であり、かつ、前記回転中心の円周方向に沿って所定の長さを有する部材を有する回転体を駆動するモータを制御するモータ制御装置が提供される。このモータ制御装置は、回転体が有する上記の部材が円周方向における所定の検出位置にいるか否かで異なる値を持つ第1の検知信号を出力する原点センサからの第1の検知信号の値が変化した第1の時点から、第1の検知信号の値が再度変化する第2の時点までの間に、モータが所定角度回転する度に回転角センサから出力される第2の検知信号を受信した数と、第1の時点または第2の時点における、第1の検知信号の値の変化の態様とに基づいて、第1の時点または第2の時点において上記の部材の円周方向における二つの端部のうちの所定の検出位置に達した端部を基準点として検出する基準点検出部と、基準点が検出されてから、次に基準点が検出されるまでの期間に受信した第2の検知信号の数と、その期間における、回転体の回転量に対応するモータの回転量に相当する第2の検知信号の基準数との差をずれ量として算出するずれ算出部と、ずれ量が算出される度に、回転体の回転位置を表す位置情報をずれ量に応じて補正する補正部とを有する。 As one aspect of the present invention, motor control for controlling a motor that drives a rotating body that is rotatable around a center of rotation and has a member that has a predetermined length along the circumference of the center of rotation. An apparatus is provided. This motor control device has a value of a first detection signal from an origin sensor that outputs a first detection signal having a different value depending on whether the member of the rotating body is at a predetermined detection position in the circumferential direction. from the first time point when the value of the first detection signal changes to the second time point when the value of the first detection signal changes again. in the circumferential direction of the member at the first time point or the second time point based on the number received and the manner in which the value of the first sensed signal changes at the first time point or the second time point A reference point detection unit that detects one of the two ends that has reached a predetermined detection position as a reference point; a deviation calculation unit that calculates, as a deviation amount, a difference between the number of the second detection signals and a reference number of the second detection signals corresponding to the rotation amount of the motor corresponding to the rotation amount of the rotating body in that period; a correction unit that corrects the position information representing the rotational position of the rotating body according to the amount of deviation each time the amount of deviation is calculated.

係る構成を有することで、このモータ制御装置は、モータが駆動する回転体に設けられた基準点の位置が回転体に応じて異なる場合でも、その基準点に基づいて回転体の実際の回転位置とモータの回転量に対応する回転体の回転位置間のずれを補正することができる。 With such a configuration, the motor control device can determine the actual rotational position of the rotating body based on the reference point even if the position of the reference point provided on the rotating body driven by the motor differs depending on the rotating body. and the rotational position of the rotating body corresponding to the amount of rotation of the motor can be corrected.

このモータ制御装置において、基準点検出部は、回転体が所定の回転方向に回転している場合において、第1の時点において、第1の検知信号の値が上記の部材が所定の検出位置にいないときの第1の値からその部材が所定の検出位置にいるときの第2の値に変化すると、第1の時点において基準点を検出するとともに、第1の時点において、第1の検知信号の値が第1の値から第2の値に変化し、かつ、第1の時点から第2の時点までの間に受信した第2の検知信号の数が所定の閾値以上である場合に第2の時点において基準点を検出することが好ましい。 In this motor control device, the reference point detector detects that the value of the first detection signal indicates that the member is at the predetermined detection position at the first point in time when the rotating body is rotating in the predetermined rotation direction. When the member changes from a first value when it is absent to a second value when the member is at a predetermined detection position, the reference point is detected at a first time and a first detection signal is generated at a first time. changes from the first value to the second value, and the number of second detection signals received between the first time point and the second time point is equal to or greater than a predetermined threshold, the second Preferably, the reference point is detected at time 2.

これにより、このモータ制御装置は、回転体に設けられる部材の円周方向における両端のそれぞれが所定の検出位置にいるときを基準点として検出できるので、回転体が一周しなくても、ずれ量を算出できるともに、そのずれ量を用いて回転体の回転位置を表す位置情報を補正できる。 As a result, the motor control device can detect when both ends of the member provided on the rotating body in the circumferential direction are at predetermined detection positions as reference points. can be calculated, and position information representing the rotational position of the rotating body can be corrected using the amount of deviation.

また、このモータ制御装置は、モータの回転を制御するための駆動信号を、モータを駆動する駆動回路へ出力する駆動信号生成部をさらに有し、補正部は、回転体の現在の回転位置から回転体の目標停止位置までの残回転量に対応する第2の検知信号の累積値を位置情報として保持し、その累積値から、第2の検知信号を受信する度に1を減算し、かつ、累積値をずれ量に応じて補正し、補正された累積値が所定の停止閾値以下となったときに、駆動信号生成部へモータにブレーキを掛けることを指示し、駆動信号生成部は、モータにブレーキを掛けることを指示されると、モータが回転を停止するまでモータを停止させる駆動信号を駆動回路へ出力することが好ましい。 Further, the motor control device further includes a drive signal generator that outputs a drive signal for controlling the rotation of the motor to a drive circuit that drives the motor, and the corrector outputs a drive signal from the current rotational position of the rotating body. A cumulative value of the second detection signal corresponding to the remaining rotation amount of the rotating body up to the target stop position is held as position information, and 1 is subtracted from the cumulative value each time the second detection signal is received; correcting the accumulated value according to the amount of deviation, and instructing the drive signal generator to apply the brake to the motor when the corrected accumulated value becomes equal to or less than a predetermined stop threshold; When instructed to brake the motor, it is preferable to output a drive signal to the drive circuit to stop the motor until it stops rotating.

これにより、このモータ制御装置は、モータにより駆動される回転体を目標停止位置にて精度良く停止させることができる。 As a result, the motor control device can accurately stop the rotating body driven by the motor at the target stop position.

また、他の実施形態によれば、回胴遊技機が提供される。この回胴遊技機は、遊技機本体と、遊技機本体内において回転中心の回りに回転可能に配置され、かつ、回転中心の円周方向に沿って複数の図柄が表示されるとともに、その円周方向に沿って所定の長さを有する部材を有する回転リールと、上記の部材が円周方向における所定の検出位置にいるか否かで異なる値を持つ第1の検知信号を出力する原点センサと、回転リールを駆動するモータと、モータを駆動するモータ駆動回路と、モータが所定角度だけ回転する度に第2の検知信号を出力する回転角センサと、モータを制御するモータ制御装置とを有する。そしてモータ制御装置は、原点センサからの第1の検知信号の値が変化した第1の時点から、第1の検知信号の値が再度変化する第2の時点までの間に、第2の検知信号を受信した数と、第1の時点または第2の時点における、第1の検知信号の値の変化の態様とに基づいて、第1の時点または第2の時点において上記の部材の円周方向における二つの端部のうちの所定の検出位置に達した端部を基準点として検出する基準点検出部と、基準点が検出されてから、次に基準点が検出されるまでの期間に受信した第2の検知信号の数と、その期間における、回転リールの回転量に対応するモータの回転量に相当する第2の検知信号の基準数との差をずれ量として算出するずれ算出部と、ずれ量が算出される度に、回転リールの回転位置を表す位置情報をずれ量に応じて補正する補正部とを有する。 Also, according to another embodiment, a reel game machine is provided. This reel game machine includes a game machine main body and a game machine main body rotatably arranged around a rotation center in the game machine main body, and a plurality of symbols are displayed along the circumference direction of the rotation center, and the circle is displayed. A rotating reel having a member having a predetermined length along the circumferential direction, and an origin sensor that outputs a first detection signal having a different value depending on whether the member is at a predetermined detection position in the circumferential direction. , a motor for driving a rotating reel, a motor drive circuit for driving the motor, a rotation angle sensor for outputting a second detection signal each time the motor rotates by a predetermined angle, and a motor control device for controlling the motor. . Then, the motor control device detects the second detection signal from the first point in time when the value of the first detection signal from the origin sensor changes to the second point in time when the value of the first detection signal changes again. The circumference of the member at the first time point or the second time point based on the number of signals received and the manner in which the value of the first sensed signal changes at the first time point or the second time point. a reference point detection unit that detects, as a reference point, one of the two ends in the direction that has reached a predetermined detection position; A shift calculation unit that calculates, as a shift amount, the difference between the number of received second detection signals and a reference number of second detection signals corresponding to the rotation amount of the motor corresponding to the rotation amount of the rotating reel during that period. and a correction unit that corrects the position information representing the rotational position of the reel according to the amount of deviation each time the amount of deviation is calculated.

係る構成を有することで、この回胴遊技機は、モータが駆動する回転リールに設けられた基準点の位置が回転リールに応じて異なる場合でも、その基準点に基づいて回転リールの実際の回転位置とモータの回転量に対応する回転リールの回転位置間のずれを補正することができる。 By having such a configuration, even if the positions of the reference points provided on the rotating reels driven by the motor differ depending on the rotating reels, the spinning reel game machine can actually rotate the rotating reels based on the reference points. It is possible to correct the deviation between the rotational position of the rotating reel corresponding to the position and the amount of rotation of the motor.

本発明の一つの実施形態によるモータ制御装置の概略構成図である。1 is a schematic configuration diagram of a motor control device according to one embodiment of the present invention; FIG. モータ駆動回路の回路図である。3 is a circuit diagram of a motor drive circuit; FIG. モータ駆動回路の各スイッチに印加される駆動信号と直流モータの回転方向との関係を表すテーブルの一例を示す図である。FIG. 4 is a diagram showing an example of a table showing the relationship between the drive signal applied to each switch of the motor drive circuit and the direction of rotation of the DC motor; モータが駆動する回転体と原点センサの一例を示す図である。FIG. 3 is a diagram showing an example of a rotating body driven by a motor and an origin sensor; 原点センサが有する遮蔽板の長さと、基準点信号のエッジの態様と、ずれ量算出に利用可能な基準点との関係の一例を表すテーブルである。4 is a table showing an example of the relationship between the length of the shielding plate of the origin sensor, the edge mode of the reference point signal, and the reference point that can be used for calculating the amount of deviation. 基準点判別処理の動作フローチャートである。4 is an operation flowchart of reference point determination processing; ずれ量算出処理の動作フローチャートである。9 is an operation flowchart of deviation amount calculation processing; 停止制御処理の動作フローチャートである。4 is an operation flowchart of stop control processing; 実施形態または変形例によるモータ制御装置を備えた回胴遊技機の概略斜視図である。It is a schematic perspective view of a reel game machine provided with a motor control device according to an embodiment or a modified example. 回胴遊技機の回路ブロック図である。It is a circuit block diagram of the reel game machine. リールユニットが有する一つの回転リールの概略斜視図である。4 is a schematic perspective view of one rotating reel included in the reel unit; FIG.

以下、本発明の一つの実施形態によるモータ制御装置を、図を参照しつつ説明する。このモータ制御装置は、例えば、回胴遊技機が有する回転リールといった回転体を駆動するモータを制御するために用いられる。回転体には、回転原点といった、回転体の実際の回転位置とモータの回転量に対応する回転体の回転位置間のずれ量を検出するために用いられる基準点を規定するために、光学センサが有する発光素子と受光素子との間を、回転体の回転によって通過する遮蔽板が設けられる。この光学センサと遮蔽板とが、原点センサを構成する。したがって、発光素子と受光素子の間に遮蔽板が位置するか否かで、光学センサから出力される信号の値が変化するので、回転体の回転中心を中心とする円周方向における、遮蔽板の両端が、それぞれ、基準点として利用可能となる。また、回転体の回転中心を中心とする円周方向に沿った遮蔽板の長さにより、基準点として利用可能な回転体の回転位置が変化する。そこで、このモータ制御装置は、回転体が回転している間において、遮蔽板が継続して発光素子からの光が受光素子へ達することを遮っている期間に相当するモータの回転量を検出する。また、このモータ制御装置は、その回転量と、光学センサから出力される信号(第1の検知信号の一例であり、以下、基準点信号と呼ぶ)の値の変化の態様(立上りまたは立下り)とに応じて、遮蔽板の二つの端部の何れかである基準点を検出する。そしてこのモータ制御装置は、検出した基準点に基づいて回転体の実際の回転位置とモータの回転量に対応する回転体の回転位置間のずれ量を求める。 A motor control device according to one embodiment of the present invention will be described below with reference to the drawings. This motor control device is used, for example, to control a motor that drives a rotating body such as a rotating reel of a reel game machine. The rotating body has an optical sensor for defining a reference point, such as a rotation origin, used to detect the amount of deviation between the actual rotational position of the rotating body and the rotational position of the rotating body corresponding to the amount of rotation of the motor. is provided between the light-emitting element and the light-receiving element of . This optical sensor and shielding plate constitute an origin sensor. Therefore, the value of the signal output from the optical sensor changes depending on whether or not the shield plate is positioned between the light emitting element and the light receiving element. are available as reference points, respectively. In addition, the rotational position of the rotating body that can be used as a reference point changes depending on the length of the shield plate along the circumferential direction around the center of rotation of the rotating body. Therefore, this motor control device detects the amount of rotation of the motor corresponding to the period during which the shielding plate continues to block the light from the light emitting element from reaching the light receiving element while the rotating body is rotating. . In addition, the motor control device controls the amount of rotation and the mode of change (rising or falling) of the signal output from the optical sensor (an example of a first detection signal, hereinafter referred to as a reference point signal). ), a reference point, which is either of the two ends of the shield plate, is detected. Based on the detected reference point, the motor control device obtains the amount of deviation between the actual rotational position of the rotor and the rotational position of the rotor corresponding to the amount of rotation of the motor.

なお、以下の実施形態では、モータ制御装置は、回胴遊技機に組み込まれ、回胴遊技機が有する回転リールを駆動するために使用される。 It should be noted that, in the following embodiments, the motor control device is incorporated in the reel game machine and used to drive the rotating reels of the reel game machine.

図1は、本発明の一つの実施形態によるモータ制御装置の概略構成図である。図1に示されるように、モータ制御装置1は、通信インターフェース回路10と、メモリ11と、駆動制御回路12と、駆動信号生成回路13と、ブレーキタイミング判定回路14と、基準点検出回路15と、ずれ算出回路16とを有する。
モータ制御装置1が有するこれらの各部は、それぞれ、別個の回路として回路基板(図示せず)上に実装されてもよく、あるいは、これらの各部が集積された集積回路として回路基板上に実装されてもよい。
FIG. 1 is a schematic configuration diagram of a motor control device according to one embodiment of the present invention. As shown in FIG. 1, the motor control device 1 includes a communication interface circuit 10, a memory 11, a drive control circuit 12, a drive signal generation circuit 13, a brake timing determination circuit 14, and a reference point detection circuit 15. , and a deviation calculation circuit 16 .
Each of these parts of the motor control device 1 may be mounted on a circuit board (not shown) as separate circuits, or may be mounted on a circuit board as an integrated circuit in which these parts are integrated. may

モータ制御装置1は、上位の制御装置から受信した、速度設定信号及び駆動信号に従って、モータ2を駆動するモータ駆動回路3を制御する。本実施形態では、モータ制御装置1は、モータ2に対する電流の供給のオン/オフを切り替える駆動信号を、パルス幅変調(PWM)方式により生成する。そしてモータ制御装置1は、生成した駆動信号を、モータ駆動回路3へ出力することで、モータ2の回転を制御する。その際、モータ制御装置1は、駆動信号のデューティ比を、速度設定信号にて指定された回転速度に対応するデューティ比に設定することで、モータ2をその指定された回転速度で回転させる。そしてモータ制御装置1は、モータ2の回転量を調べるためのロータリーエンコーダ4から、モータ2の回転軸(図示せず)が所定のサンプリング角度だけ回転する度に、その角度回転したことを示す検知信号を受信し、検知信号の受信回数に応じてモータ2にブレーキを掛け始めるタイミングを制御する。 A motor control device 1 controls a motor drive circuit 3 that drives a motor 2 according to a speed setting signal and a drive signal received from a higher control device. In this embodiment, the motor control device 1 generates a drive signal for switching ON/OFF of current supply to the motor 2 by a pulse width modulation (PWM) method. The motor control device 1 controls the rotation of the motor 2 by outputting the generated drive signal to the motor drive circuit 3 . At this time, the motor control device 1 sets the duty ratio of the drive signal to a duty ratio corresponding to the rotation speed specified by the speed setting signal, thereby rotating the motor 2 at the specified rotation speed. Then, the motor control device 1 uses a rotary encoder 4 for checking the amount of rotation of the motor 2 to detect that the rotating shaft (not shown) of the motor 2 has rotated by a predetermined sampling angle. It receives the signal and controls the timing to start applying the brake to the motor 2 according to the number of times the detection signal is received.

さらに、モータ制御装置1は、モータ2が駆動する、回転体の一例である回転リール5の回転位置の基準点を検出するための原点センサ6からの基準点信号により、回転リール5の回転原点といった基準点を検出する。モータ制御装置1は、その基準点に基づいて、ロータリーエンコーダ4からの検知信号の受信数から求められるモータ2の回転量に対応する回転リール5の回転位置と回転リール5の実際の回転位置間のずれ量を求める。そしてモータ制御装置1は、そのずれ量に応じて、モータ2を停止させるためのブレーキを掛け始めるタイミングを補正する。 Further, the motor control device 1 detects the rotational origin of the rotating reel 5 based on the reference point signal from the origin sensor 6 for detecting the reference point of the rotational position of the rotating reel 5 which is an example of the rotating body driven by the motor 2 . A reference point such as Based on the reference point, the motor control device 1 determines the distance between the rotational position of the rotary reel 5 corresponding to the amount of rotation of the motor 2 obtained from the number of receptions of detection signals from the rotary encoder 4 and the actual rotational position of the rotary reel 5. Calculate the amount of deviation. Then, the motor control device 1 corrects the timing to start applying the brake for stopping the motor 2 according to the deviation amount.

本実施形態では、モータ2は、直流モータとすることができる。 In this embodiment, the motor 2 can be a DC motor.

図2は、モータ駆動回路3の回路図である。モータ駆動回路3は、4個のスイッチTR1~TR4を有する。なお、各スイッチは、例えば、トランジスタまたは電界効果トランジスタとすることができる。このうち、二つのスイッチTR1及びTR3が、電源とグラウンドとの間に直列に接続される。同様に、二つのスイッチTR2及びTR4が、電源とグラウンドとの間に直列に接続される。そしてモータ2の正極側端子は、スイッチTR1とTR3の間に接続され、一方、モータ2の負極側端子は、スイッチTR2とTR4の間に接続される。そして各スイッチTR1~TR4のスイッチ端子(例えば、スイッチTR1~TR4がトランジスタであれば、ベース端子に相当し、スイッチTR1~TR4が電界効果トランジスタであれば、ゲート端子に相当)は、それぞれ、駆動信号生成回路13に接続される。そして駆動信号生成回路13からの駆動信号は、各スイッチTR1~TR4のスイッチ端子に入力される。 FIG. 2 is a circuit diagram of the motor drive circuit 3. As shown in FIG. The motor drive circuit 3 has four switches TR1-TR4. It should be noted that each switch can be, for example, a transistor or a field effect transistor. Among them, two switches TR1 and TR3 are connected in series between power supply and ground. Similarly, two switches TR2 and TR4 are connected in series between power supply and ground. The positive terminal of motor 2 is connected between switches TR1 and TR3, while the negative terminal of motor 2 is connected between switches TR2 and TR4. The switch terminals of the switches TR1 to TR4 (for example, if the switches TR1 to TR4 are transistors, they correspond to the base terminals, and if the switches TR1 to TR4 are field effect transistors, they correspond to the gate terminals) are driven respectively. It is connected to the signal generation circuit 13 . A drive signal from the drive signal generation circuit 13 is input to switch terminals of the switches TR1 to TR4.

図3は、各スイッチに印加される駆動信号とモータ2の回転方向との関係を表すテーブルの一例を示す図である。
テーブル300に示されるように、モータ2を正転させる場合、スイッチTR1のスイッチ端子とスイッチTR4のスイッチ端子とに、PWM方式に従って設定された、モータ2の回転速度に応じたパルス幅を持つ、周期的なパルスを含む駆動信号が印加される。一方、スイッチTR2のスイッチ端子及びスイッチTR3のスイッチ端子には駆動信号が印加されない。これにより、モータ2には、スイッチTR1とスイッチTR4とにパルスが印加されている間のみ、正極側端子に電源電圧が印加されるので、モータ2は、そのパルス幅に応じた速度で正転する。
なお、モータ2を正転させる場合、スイッチTR1とTR4のうちの何れか一方に駆動信号を印加し、他方を常時オンとしてもよい。
FIG. 3 is a diagram showing an example of a table showing the relationship between the drive signal applied to each switch and the rotation direction of the motor 2. As shown in FIG.
As shown in the table 300, when the motor 2 is rotated forward, the switch terminal of the switch TR1 and the switch terminal of the switch TR4 have a pulse width corresponding to the rotation speed of the motor 2, which is set according to the PWM method. A drive signal is applied that includes periodic pulses. On the other hand, no driving signal is applied to the switch terminal of the switch TR2 and the switch terminal of the switch TR3. As a result, the power supply voltage is applied to the positive terminal of the motor 2 only while the pulse is applied to the switches TR1 and TR4, so the motor 2 rotates forward at a speed corresponding to the pulse width. do.
When the motor 2 is to be rotated forward, the drive signal may be applied to one of the switches TR1 and TR4, and the other switch may be kept on at all times.

一方、モータ2を逆転させる場合、スイッチTR2のスイッチ端子とスイッチTR3のスイッチ端子とに、PWM方式に従って設定された、モータ2の回転速度に応じた周期的なパルスを持つ駆動信号が印加される。一方、スイッチTR1のスイッチ端子及びスイッチTR4のスイッチ端子には駆動信号が印加されない。これにより、モータ2には、スイッチTR2とスイッチTR3とにパルスが印加されている間のみ、負極側端子に電源電圧が印加されるので、モータ2は、そのパルス幅に応じた速度で逆転する。
なお、モータ2を逆転させる場合、スイッチTR2とTR3のうちの何れか一方に駆動信号を印加し、他方を常時オンとしてもよい。
On the other hand, when the motor 2 is reversed, a drive signal having periodic pulses corresponding to the rotation speed of the motor 2, which is set according to the PWM method, is applied to the switch terminal of the switch TR2 and the switch terminal of the switch TR3. . On the other hand, no driving signal is applied to the switch terminal of the switch TR1 and the switch terminal of the switch TR4. As a result, the power supply voltage is applied to the negative terminal of the motor 2 only while the pulse is applied to the switches TR2 and TR3, so the motor 2 rotates in reverse at a speed corresponding to the pulse width. .
When the motor 2 is reversed, the drive signal may be applied to one of the switches TR2 and TR3, and the other switch may be kept on at all times.

本実施形態では、モータ2が正転しているときにモータ2にブレーキをかける場合には、駆動信号生成回路13は、モータ2を逆転させる駆動信号をモータ駆動回路3へ出力する。逆に、モータ2が逆転しているときにモータ2にブレーキをかける場合には、駆動信号生成回路13は、モータ2を正転させる駆動信号をモータ駆動回路3へ出力する。 In this embodiment, the drive signal generation circuit 13 outputs a drive signal for rotating the motor 2 in reverse to the motor drive circuit 3 when braking the motor 2 while the motor 2 is rotating in the forward direction. Conversely, when braking the motor 2 while the motor 2 is rotating in the reverse direction, the drive signal generation circuit 13 outputs a drive signal for rotating the motor 2 in the forward direction to the motor drive circuit 3 .

また、モータ2の静止状態を維持する場合、スイッチTR3のスイッチ端子とスイッチTR4のスイッチ端子とがオンにされ、スイッチTR1のスイッチ端子とスイッチTR2のスイッチ端子とがオフにされる。 When the motor 2 is kept stationary, the switch terminals of the switches TR3 and TR4 are turned on, and the switch terminals of the switches TR1 and TR2 are turned off.

さらに、モータ2を駆動しない場合には、各スイッチのスイッチ端子はオフにされる。 Furthermore, when the motor 2 is not driven, the switch terminal of each switch is turned off.

ロータリーエンコーダ4は、回転角センサの一例であり、例えば、光学式のロータリーエンコーダとすることができる。そしてロータリーエンコーダ4は、例えば、モータ2の回転軸に取り付けられた、その回転軸を中心とする円周方向に沿って所定のサンプリング角度ごとに設けられる複数のスリットを有する円盤と、その円盤を挟んで対向するように配置された光源と受光素子とを有する。そして光源と受光素子との間に何れかのスリットが位置する度に、光源からの光が受光素子に達することで、ロータリーエンコーダ4は、パルス状の検知信号(第2の検知信号)を出力する。これにより、ロータリーエンコーダ4は、モータ2が所定のサンプリング角度だけ回転する度に、検知信号をモータ制御装置1へ出力する。例えば、モータ2の回転軸を中心とする円周方向に沿って、円盤に50個のスリットが設けられることで、ロータリーエンコーダ4は、モータ2の回転軸が1回転する間に50個の検知信号を出力する。なお、ロータリーエンコーダ4として、光学式以外のロータリーエンコーダ、例えば、ホールICを利用した磁気式のロータリーエンコーダが用いられてもよい。 The rotary encoder 4 is an example of a rotation angle sensor, and can be an optical rotary encoder, for example. The rotary encoder 4 includes, for example, a disk attached to the rotating shaft of the motor 2 and having a plurality of slits provided at predetermined sampling angles along the circumferential direction around the rotating shaft. It has a light source and a light-receiving element which are arranged to face each other on both sides. Every time any slit is positioned between the light source and the light receiving element, the light from the light source reaches the light receiving element, and the rotary encoder 4 outputs a pulsed detection signal (second detection signal). do. As a result, the rotary encoder 4 outputs a detection signal to the motor control device 1 each time the motor 2 rotates by a predetermined sampling angle. For example, by providing 50 slits in the disk along the circumferential direction around the rotating shaft of the motor 2, the rotary encoder 4 can perform 50 detections during one rotation of the rotating shaft of the motor 2. Output a signal. As the rotary encoder 4, a rotary encoder other than an optical rotary encoder, for example, a magnetic rotary encoder using a Hall IC may be used.

図4は、モータ2が駆動する回転体と原点センサの一例を示す図である。モータ2が駆動する、回転体の一例である回転リール5は、円筒状に形成された部材(以下、単に円筒状部材と呼ぶ)51と、支持部材52と、複数のアーム53とを有する。円筒状部材51の表面には、複数の図柄が設けられる。支持部材52は、円筒状部材51の略中央に位置し、支持部材52の中心、すなわち、回転リール5の中心にて、モータ2の回転軸に対して、直接またはギアを介して取り付けられる。複数のアーム53は、円筒状部材51を支持するために、支持部材52から円筒状部材51へ向けて放射状に設けられ、支持部材52と円筒状部材51とを接続する。そのため、回転リール5は、その中心を回転中心として回転可能となっている。 FIG. 4 is a diagram showing an example of a rotating body driven by the motor 2 and an origin sensor. A rotating reel 5 , which is an example of a rotating body driven by the motor 2 , has a cylindrical member (hereinafter simply referred to as a cylindrical member) 51 , a support member 52 and a plurality of arms 53 . A plurality of patterns are provided on the surface of the cylindrical member 51 . The support member 52 is positioned substantially in the center of the cylindrical member 51 and is attached to the rotating shaft of the motor 2 directly or via a gear at the center of the support member 52, that is, the center of the rotary reel 5. As shown in FIG. A plurality of arms 53 are radially provided from the support member 52 toward the cylindrical member 51 to support the cylindrical member 51 and connect the support member 52 and the cylindrical member 51 . Therefore, the rotary reel 5 is rotatable around its center.

複数のアーム53のうちの一つには、回転リール5の回転中心に対する円周方向に沿って所定の長さを持ち、かつ、複数のアーム53と対向するように設けられる光学センサ54側へ突出する遮蔽板55が設けられる。光学センサ54は、発光ダイオードといった発光素子56と、フォトダイオードといった受光素子57とを有し、発光素子56と受光素子57とが互いに向かい合うように配置される。光学センサ54及び遮蔽板55が、原点センサ6を構成する。また、発光素子56と受光素子57とが設けられる位置が、所定の検出位置に相当する。そして回転リール5が回転することで、遮蔽板55は、発光素子56と受光素子57の間を通過可能となっている。したがって、発光素子56と受光素子57の間に遮蔽板55が位置している場合には、発光素子56から発した光は受光素子57に達せず、受光素子57は受光量が相対的に少ないことを表す信号(例えば、相対的に高い電圧)を出力する。一方、発光素子56と受光素子57の間に遮蔽板55が位置していない場合には、受光素子57は、発光素子56から発した光を受光できるので、受光素子57は受光量が相対的に多いことを表す信号(例えば、相対的に低い電圧)を出力する。したがって、受光素子57から出力される信号、すなわち、光学センサ54から出力される基準点信号が立ち下がるとき、または立ち上がるときに相当する、回転リール5の回転位置が、例えば、基準点として検出される。 One of the plurality of arms 53 has a predetermined length along the circumferential direction with respect to the rotation center of the rotary reel 5, and is provided to face the plurality of arms 53. A projecting shield plate 55 is provided. The optical sensor 54 has a light-emitting element 56 such as a light-emitting diode and a light-receiving element 57 such as a photodiode. The light-emitting element 56 and the light-receiving element 57 are arranged to face each other. The optical sensor 54 and shield plate 55 constitute the origin sensor 6 . Further, the position where the light emitting element 56 and the light receiving element 57 are provided corresponds to a predetermined detection position. By rotating the rotary reel 5 , the shielding plate 55 can pass between the light emitting element 56 and the light receiving element 57 . Therefore, when the shielding plate 55 is positioned between the light emitting element 56 and the light receiving element 57, the light emitted from the light emitting element 56 does not reach the light receiving element 57, and the light receiving element 57 receives a relatively small amount of light. A signal (for example, a relatively high voltage) is output. On the other hand, when the shielding plate 55 is not positioned between the light emitting element 56 and the light receiving element 57, the light receiving element 57 can receive the light emitted from the light emitting element 56. output a signal (for example, a relatively low voltage) indicating that the Therefore, the rotational position of the reel 5 corresponding to the fall or rise of the signal output from the light receiving element 57, that is, the reference point signal output from the optical sensor 54, is detected as the reference point. be.

回転リール5の回転中心に対する円周方向に沿った遮蔽板55の長さが、例えば、円筒状部材51の表面に設けられる複数の図柄の一つに相当する回転角に応じた長さ未満である場合、基準点信号の立上りまたは立下りの何れか一方、すなわち、遮蔽板55の円周方向における何れか一端が、基準点の一例である回転原点となる。この場合、モータ制御装置1は、回転リール5が1回転する度に、ずれ量を算出することができる。一方、回転リール5の回転中心に対する円周方向に沿った遮蔽板55の長さが、例えば、円筒状部材51が半周する回転角に応じた長さである場合、遮蔽板55の円周方向における両端のそれぞれを基準点とすることができる。したがって、モータ制御装置1は、回転リール5が半周する度に、ずれ量を算出することができる。 The length of the shield plate 55 along the circumferential direction with respect to the rotation center of the rotary reel 5 is less than the length corresponding to the rotation angle corresponding to one of the plurality of patterns provided on the surface of the cylindrical member 51, for example. In some cases, either the rise or the fall of the reference point signal, that is, one end of the shielding plate 55 in the circumferential direction becomes the rotation origin, which is an example of the reference point. In this case, the motor control device 1 can calculate the deviation amount each time the rotary reel 5 rotates once. On the other hand, when the length of the shielding plate 55 along the circumferential direction with respect to the rotation center of the rotary reel 5 is, for example, a length corresponding to the rotation angle of half the circumference of the cylindrical member 51, the circumferential direction of the shielding plate 55 is can be taken as a reference point. Therefore, the motor control device 1 can calculate the deviation amount each time the rotary reel 5 rotates halfway.

なお、本実施形態では、波形401に示されるように、遮蔽板55が発光素子56からの光を遮っている場合、原点センサ6は、基準点信号として、相対的に高い電圧を出力し、一方、発光素子56からの光が受光素子57に達する場合、原点センサ6は、基準点信号として、相対的に低い電圧を出力するものとする。したがって、波形401の立上り401aは、遮蔽板55が発光素子56と受光素子57の間に差し掛かった時点に相当し、波形401の立下り401bは、遮蔽板55が発光素子56と受光素子57の間を通り過ぎる時点に相当する。そして立上り401aから立下り401bまでの期間Pは、遮蔽板55の長さに対応する。なお、原点センサ6は、遮蔽板55が発光素子56からの光を遮っている場合に、基準点信号として、相対的に低い電圧を出力し、一方、発光素子56からの光が受光素子57に達する場合に、基準点信号として、相対的に高い電圧を出力してもよい。この場合には、以下の説明における、立上りと立下りが入れ替えられればよい。 In this embodiment, when the shielding plate 55 blocks the light from the light emitting element 56 as shown by the waveform 401, the origin sensor 6 outputs a relatively high voltage as the reference point signal, On the other hand, when the light from the light emitting element 56 reaches the light receiving element 57, the origin sensor 6 outputs a relatively low voltage as the reference point signal. Therefore, the rising edge 401a of the waveform 401 corresponds to the time when the shielding plate 55 reaches between the light emitting element 56 and the light receiving element 57, and the falling edge 401b of the waveform 401 corresponds to the time when the shielding plate 55 is between the light emitting element 56 and the light receiving element 57. It corresponds to the point in time that passes through. A period P from the rise 401a to the fall 401b corresponds to the length of the shielding plate 55. FIG. When the light from the light emitting element 56 is blocked by the shielding plate 55, the origin sensor 6 outputs a relatively low voltage as a reference point signal. , a relatively high voltage may be output as the reference point signal. In this case, the rising edge and the falling edge in the following description should be interchanged.

以下、モータ制御装置1の各部について説明する。 Each part of the motor control device 1 will be described below.

通信インターフェース回路10は、通信部の一例である。そして通信インターフェース回路10は、例えば、モータ制御装置1を上位の制御装置と接続する。上位の制御装置は、例えば、モータ制御装置1が実装された回胴遊技機本体の制御部である。そして通信インターフェース回路10は、上位の制御装置から、シリアル伝送される複数のビットを持つ速度設定信号を、モータ2が駆動する回転リール5の回転速度が変更される度に受信する。例えば、速度設定信号が2ビットを有するとする。この場合、速度設定信号のビット値‘00’に対して回転速度40[rpm]が設定される。同様に、速度設定値のビット値‘01’、‘10’、‘11’のそれぞれに対して、回転速度80[rpm]、240[rpm]、333[rpm]が設定される。また、通信インターフェース回路10は、速度設定信号とともに、あるいは、速度設定信号とは別個に、回転リール5の回転方向を指定する回転方向設定信号を上位の制御装置から受信してもよい。 Communication interface circuit 10 is an example of a communication unit. The communication interface circuit 10 connects, for example, the motor control device 1 with a higher control device. The upper control device is, for example, the control unit of the reel game machine main body in which the motor control device 1 is mounted. The communication interface circuit 10 receives a serially transmitted speed setting signal having a plurality of bits from a host controller each time the rotation speed of the reel 5 driven by the motor 2 is changed. For example, suppose the speed setting signal has 2 bits. In this case, a rotation speed of 40 [rpm] is set for the bit value '00' of the speed setting signal. Similarly, rotational speeds of 80 [rpm], 240 [rpm], and 333 [rpm] are set for bit values '01', '10', and '11' of the speed setting value, respectively. In addition, the communication interface circuit 10 may receive a rotational direction setting signal that designates the rotational direction of the reel 5 from a host control device together with the speed setting signal or separately from the speed setting signal.

さらに、通信インターフェース回路10は、回転リール5が回転駆動されている間、上位の制御装置から、回転リール5を図柄一つ分の回転量だけ回転させる度に、回転リール5の回転を継続することを表す駆動制御信号を受信する。なお、駆動制御信号は、例えば、矩形の単パルス信号とすることができる。 Further, the communication interface circuit 10 continues the rotation of the rotating reel 5 every time the upper control device rotates the rotating reel 5 by the amount of rotation for one symbol while the rotating reel 5 is driven to rotate. It receives a drive control signal indicating that. Note that the drive control signal can be, for example, a rectangular single-pulse signal.

通信インターフェース回路10は、速度設定信号を受信する度に、受信した速度設定信号を駆動制御回路12へ渡す。同様に、通信インターフェース回路10は、回転方向設定信号を受信する度に、受信した回転方向設定信号を駆動制御回路12へ渡す。さらに、通信インターフェース回路10は、駆動制御信号を受信する度に、駆動制御信号を受信したことを駆動制御回路12へ通知する。なお、回転リール5の回転が停止される場合には、上位の制御装置は、駆動制御信号をモータ制御装置1へ送信しないので、通信インターフェース回路10から駆動制御回路12にも、駆動制御信号の受信が通知されない。なお、モータ2の回転が停止されることを、以下では、単にモータ2が停止されると呼ぶことがある。同様に、回転リール5の回転が停止されることを、以下では、単に回転リール5が停止されると呼ぶことがある。 The communication interface circuit 10 passes the received speed setting signal to the drive control circuit 12 each time it receives the speed setting signal. Similarly, the communication interface circuit 10 passes the received rotation direction setting signal to the drive control circuit 12 each time it receives the rotation direction setting signal. Further, the communication interface circuit 10 notifies the drive control circuit 12 of the reception of the drive control signal every time it receives the drive control signal. When the rotation of the rotating reel 5 is stopped, the upper control device does not transmit the drive control signal to the motor control device 1. Therefore, the drive control signal is transmitted from the communication interface circuit 10 to the drive control circuit 12 as well. Receipt is not notified. It should be noted that stopping the rotation of the motor 2 may hereinafter be simply referred to as stopping the motor 2 . Similarly, stopping the rotation of the rotating reel 5 may hereinafter simply be referred to as stopping the rotating reel 5 .

メモリ11は、例えば、不揮発性の半導体メモリ回路を有する。そしてメモリ11は、回転リール5の回転制御に必要な情報を記憶する。本実施形態では、メモリ11は、速度設定信号と回転リール5の回転速度との関係を表す速度テーブルと、回転速度ごとの、何れかの図柄が所定の停止位置にて停止するよう、回転中の回転リール5が静止するまで、すなわち、回転中のモータ2が停止するまでの検知信号数(以下、停止所要数と呼ぶ)とを記憶する。なお、停止所要数は、停止閾値の一例である。さらに、メモリ11は、回転速度ごとのデューティ比を表すデューティ比テーブルと、回転速度とブレーキ力に応じたデューティ比との関係を表す速度ブレーキ値テーブルとを記憶する。さらにまた、メモリ11は、モータ2の回転と回転リール5の回転とが完全に同期する理想的な場合においてモータ2が駆動する回転リール5が一周する間に受信する受信信号数(以下、一周所要数と呼ぶ)と、基準点を検出するために用いられる閾値とを記憶する。 The memory 11 has, for example, a nonvolatile semiconductor memory circuit. The memory 11 stores information necessary for controlling the rotation of the rotating reels 5 . In the present embodiment, the memory 11 stores a speed table representing the relationship between the speed setting signal and the rotation speed of the reel 5, and a symbol for each rotation speed during rotation so that one of the symbols stops at a predetermined stop position. The number of detection signals until the rotating reel 5 stops, that is, until the rotating motor 2 stops (hereinafter referred to as the required number of stops) is stored. Note that the required number of stops is an example of a stop threshold. Further, the memory 11 stores a duty ratio table representing the duty ratio for each rotational speed, and a speed brake value table representing the relationship between the rotational speed and the duty ratio corresponding to the braking force. Furthermore, the memory 11 stores the number of reception signals received during one revolution of the reel 5 driven by the motor 2 in an ideal case in which the rotation of the motor 2 and the rotation of the reel 5 are completely synchronized (hereinafter referred to as one cycle (referred to as the desired number) and the threshold used to detect the fiducials.

駆動制御回路12は、駆動制御部の一例であり、速度設定信号で指定された回転速度に従って、モータ2を駆動信号のデューティ比を設定する。そこで、駆動制御回路12は、速度設定信号を受信する度に、メモリ11から速度テーブルを読み込んで、その速度テーブルを参照することで、速度設定信号にて指定された回転速度を求める。さらに、駆動制御回路12は、設定された回転速度に応じて、駆動信号のパルスのデューティ比を設定する。駆動制御回路12は、デューティ比テーブルを参照して、設定された回転速度に対応するデューティ比を決定すればよい。 The drive control circuit 12 is an example of a drive control section, and sets the duty ratio of the drive signal for the motor 2 according to the rotational speed specified by the speed setting signal. Therefore, the drive control circuit 12 reads the speed table from the memory 11 each time it receives the speed setting signal, and refers to the speed table to obtain the rotational speed specified by the speed setting signal. Furthermore, the drive control circuit 12 sets the duty ratio of the pulse of the drive signal according to the set rotational speed. The drive control circuit 12 may refer to the duty ratio table to determine the duty ratio corresponding to the set rotational speed.

駆動制御回路12は、速度設定信号で指定された回転リール5の回転速度が変更される度に、その速度設定信号にて設定された回転速度に対応するデューティ比を駆動信号生成回路13へ出力する。また、駆動制御回路12は、回転方向設定信号にて指定された回転方向を表す情報を駆動信号生成回路13へ出力する。 The drive control circuit 12 outputs a duty ratio corresponding to the rotation speed set by the speed setting signal to the drive signal generation circuit 13 every time the rotation speed of the reel 5 specified by the speed setting signal is changed. do. Further, the drive control circuit 12 outputs to the drive signal generation circuit 13 information representing the rotation direction specified by the rotation direction setting signal.

さらに、駆動制御回路12は、駆動制御信号を受信したことが通知される度に、1図柄当たりの回転量に相当する、ロータリーエンコーダ4からの検知信号の数(以下、図柄単位検知信号数と呼ぶ)をブレーキタイミング判定回路14へ出力する。例えば、モータ2と回転リール5のギア比が1:10であり、ロータリーエンコーダ4が、モータ2が一回転する間に50個の検知信号を出力するとすれば、回転リール5が一回転する間に500個の検知信号が出力される。したがって、回転リール5に20個の図柄が設けられる場合、1図柄当たり25個の検知信号が出力される。そのため、この例では、駆動制御回路12は、駆動制御信号を受信したことが通知される度に、図柄単位検知信号数として、‘25’をブレーキタイミング判定回路14へ出力する。なお、回転リール5が停止される場合には、駆動制御信号を受信したことが通知されないので、駆動制御回路12は、図柄単位検知信号数を出力しない。 Further, each time the drive control circuit 12 is notified that the drive control signal has been received, the number of detection signals from the rotary encoder 4 corresponding to the amount of rotation per symbol (hereinafter referred to as the number of detection signals per symbol) ) is output to the brake timing determination circuit 14 . For example, if the gear ratio between the motor 2 and the reel 5 is 1:10, and the rotary encoder 4 outputs 50 detection signals during one rotation of the motor 2, 500 detection signals are output to Therefore, when 20 symbols are provided on the rotating reel 5, 25 detection signals are output per symbol. Therefore, in this example, the drive control circuit 12 outputs '25' to the brake timing determination circuit 14 as the symbol unit detection signal number every time it is notified that the drive control signal has been received. It should be noted that when the rotating reel 5 is stopped, the drive control circuit 12 does not output the symbol unit detection signal number because the reception of the drive control signal is not notified.

さらに、駆動制御回路12は、ずれ算出回路16から、回転リール5の回転がモータ2の回転と完全に同期している場合に対する、モータ2の回転量に対応する回転リール5の回転位置と、回転リール5の実際の回転位置間のずれ量を受信する度に、そのずれ量をブレーキタイミング判定回路14へ出力する。
さらにまた、駆動制御回路12は、速度設定信号で指定された回転リール5の回転速度が変更される度に、その指定された回転リール5の回転速度をブレーキタイミング判定回路14へ通知する。
Further, the drive control circuit 12 receives from the shift calculation circuit 16 the rotational position of the rotating reel 5 corresponding to the amount of rotation of the motor 2 when the rotation of the rotating reel 5 is completely synchronized with the rotation of the motor 2, Each time the amount of deviation between the actual rotational positions of the reel 5 is received, the amount of deviation is output to the brake timing determination circuit 14 .
Furthermore, the drive control circuit 12 notifies the brake timing determination circuit 14 of the specified rotation speed of the reel 5 each time the rotation speed of the reel 5 specified by the speed setting signal is changed.

駆動信号生成回路13は、駆動信号生成部の一例であり、例えば、出力するパルスの幅(すなわち、デューティ比)を変更可能な可変パルス生成回路と、可変パルス生成回路により生成された、駆動信号である周期的なパルス信号を、モータ駆動回路3の何れのスイッチへ出力するかを切り替えるスイッチ回路とを有する。そして駆動信号生成回路13は、駆動制御回路12からデューティ比が通知される度に、モータ2を駆動するための駆動信号であるパルス信号をPWM方式に従って生成し、所定の出力周期ごとに、そのパルス信号を、モータ駆動回路3へ出力することで、モータ2の回転を制御する。その際、駆動信号生成回路13は、通知されたデューティ比にしたがって、パルス信号のパルス幅を設定すればよい。一方、駆動信号生成回路13は、ブレーキタイミング判定回路14からブレーキ開始タイミングになったことを通知されると、モータ2にブレーキを掛けて停止させるための駆動信号を、モータ駆動回路3へ出力する。なお、本実施形態では、上記のように、モータ2にブレーキを掛ける場合、駆動信号生成回路13は、モータ2が回転している向きとは逆向きに回転させる駆動信号をモータ駆動回路3へ出力すればよい。 The drive signal generation circuit 13 is an example of a drive signal generation unit. and a switch circuit for switching to which switch of the motor drive circuit 3 the periodic pulse signal is output. Each time the drive control circuit 12 notifies the drive signal generation circuit 13 of the duty ratio, the drive signal generation circuit 13 generates a pulse signal, which is a drive signal for driving the motor 2, according to the PWM method. The rotation of the motor 2 is controlled by outputting the pulse signal to the motor drive circuit 3 . At that time, the drive signal generation circuit 13 may set the pulse width of the pulse signal according to the notified duty ratio. On the other hand, when the drive signal generation circuit 13 is notified by the brake timing determination circuit 14 that it is time to start braking, the drive signal generation circuit 13 outputs to the motor drive circuit 3 a drive signal for braking and stopping the motor 2 . . In this embodiment, as described above, when the motor 2 is braked, the drive signal generation circuit 13 sends a drive signal to the motor drive circuit 3 to rotate the motor 2 in a direction opposite to the direction in which the motor 2 is rotating. output.

駆動信号生成回路13は、モータ2にブレーキを掛ける場合、メモリ11から読み込んだブレーキ値テーブルを参照して、モータ2に印加するブレーキ力を設定する。 When the motor 2 is to be braked, the drive signal generation circuit 13 refers to the brake value table read from the memory 11 and sets the brake force to be applied to the motor 2 .

本実施形態では、駆動信号生成回路13は、ブレーキ開始タイミングから、停止所要数だけモータ2が回転した時点でモータ2が停止するよう、ブレーキ力を制御する。この場合、ブレーキ力に相当する駆動信号のデューティ比は、モータ2の回転速度に応じて設定される。すなわち、駆動信号生成回路13は、メモリ11に記憶されている速度ブレーキ値テーブルを参照して、モータ2の回転速度に対応するデューティ比を特定すればよい。なお、速度ブレーキ値テーブルでは、例えば、モータ2の回転速度が高いほど、高いデューティ比、すなわち、高いブレーキ力が設定される。 In this embodiment, the drive signal generation circuit 13 controls the braking force so that the motor 2 stops when the motor 2 rotates by the required number of times to stop from the brake start timing. In this case, the duty ratio of the drive signal corresponding to the braking force is set according to the rotation speed of the motor 2 . That is, the drive signal generation circuit 13 may refer to the speed brake value table stored in the memory 11 to specify the duty ratio corresponding to the rotational speed of the motor 2 . In the speed brake value table, for example, the higher the rotational speed of the motor 2 is, the higher the duty ratio, that is, the higher the braking force is set.

駆動信号生成回路13は、ブレーキ力を決定するために、ロータリーエンコーダ4から受信した検知信号に基づいて、モータ2の現在の回転速度を算出すればよい。そのために、駆動信号生成回路13は、例えば、タイマとカウンタとをさらに有する。そして駆動信号生成回路13は、タイマにより計時された一定期間中に受信した検知信号の数をカウンタによりカウントし、その検知信号の数に、ロータリーエンコーダ4のサンプリング角度を乗じて得られる回転量をその一定期間で除することで回転速度を算出する。なお、駆動信号生成回路13は、一定期間内に受信した検知信号の数が1個以下である場合、モータ2の回転速度を0としてもよい。 The drive signal generation circuit 13 may calculate the current rotational speed of the motor 2 based on the detection signal received from the rotary encoder 4 in order to determine the braking force. For that purpose, the drive signal generation circuit 13 further has, for example, a timer and a counter. The drive signal generation circuit 13 counts the number of detection signals received during a certain period of time measured by the timer, and calculates the amount of rotation obtained by multiplying the number of detection signals by the sampling angle of the rotary encoder 4. The rotational speed is calculated by dividing by the constant period. Note that the drive signal generation circuit 13 may set the rotation speed of the motor 2 to 0 when the number of detection signals received within a certain period is one or less.

駆動信号生成回路13は、モータ2が停止するまで、特定したデューティ比の駆動信号をモータ駆動回路3へ出力する。 The drive signal generation circuit 13 outputs the drive signal with the specified duty ratio to the motor drive circuit 3 until the motor 2 stops.

なお、駆動信号生成回路13は、モータ2の回転量が目標回転量となり、かつ、モータ2の回転速度が0になると、モータ2に対するブレーキを停止させ、モータ2の静止状態を維持させる駆動信号をモータ駆動回路3へ出力してもよい。 When the rotation amount of the motor 2 reaches the target rotation amount and the rotation speed of the motor 2 becomes 0, the drive signal generation circuit 13 stops braking the motor 2 and maintains the motor 2 in a stationary state. may be output to the motor drive circuit 3.

ブレーキタイミング判定回路14は、ブレーキタイミング判定部の一例であり、停止設定値に応じてモータ2にブレーキを掛け始めるタイミング(すなわち、ブレーキ開始タイミング)を決定する。さらに、駆動制御回路12及びブレーキタイミング判定回路14は、全体として、補正部の一例である。 The brake timing determination circuit 14 is an example of a brake timing determination unit, and determines the timing to start applying the brake to the motor 2 (that is, the brake start timing) according to the stop set value. Further, the drive control circuit 12 and the brake timing determination circuit 14 are an example of a correction section as a whole.

ブレーキタイミング判定回路14は、回転リール5の目標停止位置に対応する所定の目標回転量と、回転リール5の現在の回転位置に対応するモータ2の回転量との差(すなわち、残回転量)が検知所要数以下になるとブレーキ開始タイミングになったと判定する。本実施形態では、ブレーキタイミング判定回路14は、駆動制御回路12から受け取った図柄単位検知信号数及びずれ量の累積値(以下、単に累積値と呼ぶ)と、受信した検知信号の数とに基づいてブレーキ開始タイミングを決定する。なお、モータ2が、回転リール5の1図柄分回転しても上位制御装置から駆動制御信号を受信しなかったとき、すなわち、モータ2の回転の停止が指示されたときの累積値が、モータ2を停止させる目標回転量に相当し、それ以降に受信した検知信号の数がモータ2の回転量に相当する。したがって、ロータリーエンコーダ4から検知信号を受信する度に更新される累積値は、目標回転量までの残回転量に相当する。例えば、ブレーキタイミング判定回路14は、回転リール5が回転を開始する前の時点で、累積値を0に設定する。その後、ブレーキタイミング判定回路14は、駆動制御回路12から回転リール5の回転速度を通知されると、その回転速度に対応する停止所要数をメモリ11から読み込む。またブレーキタイミング判定回路14は、駆動制御回路12から図柄単位検知信号数を受信する度に、累積値に受信した図柄単位検知信号数を加算する。 The brake timing determination circuit 14 determines the difference between a predetermined target amount of rotation corresponding to the target stop position of the reel 5 and the amount of rotation of the motor 2 corresponding to the current rotation position of the reel 5 (that is, the amount of remaining rotation). becomes equal to or less than the detection required number, it is determined that it is time to start braking. In this embodiment, the brake timing determination circuit 14 is based on the cumulative value of the number of symbol unit detection signals and the amount of deviation received from the drive control circuit 12 (hereinafter simply referred to as the cumulative value) and the number of received detection signals. to determine the braking start timing. When the motor 2 does not receive a drive control signal from the host controller even after rotating the reel 5 by one symbol, that is, when an instruction to stop the rotation of the motor 2 is given, the cumulative value of the motor 2, and the number of detection signals received after that corresponds to the amount of rotation of the motor 2. Therefore, the cumulative value updated each time the detection signal is received from the rotary encoder 4 corresponds to the remaining rotation amount up to the target rotation amount. For example, the brake timing determination circuit 14 sets the cumulative value to 0 before the reel 5 starts rotating. Thereafter, when the drive control circuit 12 notifies the brake timing determination circuit 14 of the rotation speed of the reel 5, the brake timing determination circuit 14 reads from the memory 11 the required number of stops corresponding to the rotation speed. Also, every time the brake timing determination circuit 14 receives the number of detection signals for each design from the drive control circuit 12, it adds the received number of detection signals for each design to the accumulated value.

同様に、ブレーキタイミング判定回路14は、駆動制御回路12からずれ量を受信する度に、累積値に受信したずれ量を加算する。これにより、回転リール5の現在の回転位置を表す位置情報の一例である累積値が補正される。 Similarly, each time the brake timing determination circuit 14 receives a deviation amount from the drive control circuit 12, it adds the received deviation amount to the accumulated value. As a result, the cumulative value, which is an example of the position information representing the current rotational position of the reel 5, is corrected.

一方、ブレーキタイミング判定回路14は、ロータリーエンコーダ4から検知信号を受信する度に、累積値から1を減じる。そしてブレーキタイミング判定回路14は、累積値がメモリ11から読み込んだ停止所要数以下となったときをブレーキ開始タイミングとする。 On the other hand, the brake timing determination circuit 14 subtracts 1 from the accumulated value each time it receives a detection signal from the rotary encoder 4 . Then, the brake timing determination circuit 14 determines the brake start timing when the accumulated value becomes equal to or less than the required number of stops read from the memory 11 .

基準点検出回路15は、基準点検出部の一例であり、原点センサ6からの基準点信号に基づいて、基準点、すなわち、原点センサ6が有する遮蔽板55の何れの一端が検知されたかを判別する。 The reference point detection circuit 15 is an example of a reference point detection unit, and based on the reference point signal from the origin sensor 6, detects the reference point, that is, which end of the shielding plate 55 of the origin sensor 6 is detected. discriminate.

図5は、遮蔽板55の長さと、基準点信号のエッジの態様と、基準点との関係の一例を表すテーブルである。テーブル500において、左端の列には、遮蔽板55の円周方向の長さが示される。左から2番目の列には、原点センサ6からの基準点信号の変化の態様(すなわち、立下りまたは立上り、以下、まとめてエッジ態様と呼ぶ)が示される。また、右端の列には、遮蔽板55の円周方向に沿った長さとエッジ態様の組み合わせに対する、モータ2が正転している場合における、そのエッジ態様に対応する、基準点の種別が示される。 FIG. 5 is a table showing an example of the relationship between the length of the shielding plate 55, the edge pattern of the reference point signal, and the reference point. In the table 500, the length of the shield plate 55 in the circumferential direction is shown in the leftmost column. The second column from the left shows how the reference point signal from the origin sensor 6 changes (that is, falling or rising, hereinafter collectively referred to as edge mode). The rightmost column shows the type of reference point corresponding to the edge mode when the motor 2 is rotating in the forward direction for the combination of the circumferential length of the shielding plate 55 and the edge mode. be

遮蔽板55の円周方向に沿った長さが1図柄分以下の長さである場合、基準点信号が立下る位置、すなわち、モータ2が正転している場合に、遮蔽板55が発光素子56と受光素子57の間を通り過ぎる際の遮蔽板55の終端となる位置は、回転原点に近いため、基準点として参照しない。一方、基準点信号が立上る位置、すなわち、モータ2が正転している場合に、遮蔽板55が発光素子56と受光素子57の間に差し掛かる際の遮蔽板55の一端となる位置(すなわち、上記の終端とは反対側の端部)は、基準点の一つとなる回転原点として参照される。 If the length of the shield plate 55 along the circumferential direction is equal to or less than one pattern, the shield plate 55 emits light at the position where the reference point signal falls, that is, when the motor 2 is rotating forward. The end position of the shielding plate 55 when passing between the element 56 and the light receiving element 57 is close to the origin of rotation, so it is not referred to as a reference point. On the other hand, the position where the reference point signal rises, that is, the position where the shield plate 55 is one end when the shield plate 55 comes between the light emitting element 56 and the light receiving element 57 when the motor 2 is rotating forward ( That is, the end on the side opposite to the terminal end) is referred to as the origin of rotation, which is one of the reference points.

また、遮蔽板55の円周方向に沿った長さが回転リール5の半周分に相当する長さである場合、基準点信号が立下る位置、すなわち、モータ2が正転している場合に、遮蔽板55が発光素子56と受光素子57の間を通り過ぎる際の遮蔽板55の終端となる位置は、基準点の他の一つである、回転原点から半周分(180°)回転した位置として参照される。一方、基準点信号が立上る位置、すなわち、モータ2が正転している場合に、遮蔽板55が発光素子56と受光素子57の間に差し掛かる際の遮蔽板55の一端となる位置は、基準点の一つである回転原点として参照される。 Further, when the length along the circumferential direction of the shielding plate 55 is the length corresponding to the half circumference of the rotary reel 5, the position where the reference point signal falls, that is, when the motor 2 is rotating forward. , the end position of the shielding plate 55 when the shielding plate 55 passes between the light emitting element 56 and the light receiving element 57 is another one of the reference points, which is a position rotated by half a circle (180°) from the rotation origin. referred to as On the other hand, the position where the reference point signal rises, that is, the position of one end of the shielding plate 55 when the shielding plate 55 comes between the light emitting element 56 and the light receiving element 57 when the motor 2 is rotating forward is , is referred to as the origin of rotation, which is one of the reference points.

なお、モータ2が逆転している場合には、回転原点に相当する、エッジの態様は逆となる。すなわち、遮蔽板55の長さによらず、基準点信号が立下る位置が、基準点の一つである、回転原点となる。また、遮蔽板55の円周方向に沿った長さが回転リール5の半周分に相当する長さであり、かつ、基準点信号が立上る位置は、基準点の他の一つである、回転原点から半周分回転した位置として参照される。一方、遮蔽板55の円周方向に沿った長さが1図柄分以下の長さであり、かつ、基準点信号が立上る位置は、基準点として参照しない。 Note that when the motor 2 is rotating in reverse, the form of the edge corresponding to the origin of rotation is reversed. That is, regardless of the length of the shielding plate 55, the position at which the reference point signal falls becomes the rotation origin, which is one of the reference points. In addition, the length along the circumferential direction of the shielding plate 55 is a length corresponding to half the circumference of the rotary reel 5, and the position where the reference point signal rises is another reference point. It is referred to as a position rotated half a turn from the rotation origin. On the other hand, the position where the length of the shielding plate 55 in the circumferential direction is equal to or less than one pattern and the reference point signal rises is not referred to as the reference point.

図6は、基準点検出回路15による、基準点判別処理の動作フローチャートである。基準点検出回路15は、モータ2が回転している間、以下の動作フローチャートに従って基準点判別処理を実行する。 FIG. 6 is an operation flowchart of reference point determination processing by the reference point detection circuit 15 . While the motor 2 is rotating, the reference point detection circuit 15 executes reference point determination processing according to the following operation flowchart.

基準点検出回路15は、原点センサ6からの基準点信号の値が変化すると、すなわち、基準点信号が立上るか立下ると、ロータリーエンコーダ4からの検出信号の受信数を表すカウント値Yを0に設定する(ステップS101)。また、基準点検出回路15は、ロータリーエンコーダ4から検知信号を受信すると、モータ2の回転方向が正転方向か否か判定する(ステップS102)。なお、基準点検出回路15は、モータ2の回転方向を、例えば、上位制御装置からの回転方向の指示により判別できる。あるいは、ロータリーエンコーダ4が回転角だけでなく、回転方向も識別できるタイプのエンコーダであれば、基準点検出回路15は、ロータリーエンコーダ4から受信した検知信号に基づいてモータ2の回転方向を判別してもよい。 When the value of the reference point signal from the origin sensor 6 changes, that is, when the reference point signal rises or falls, the reference point detection circuit 15 generates a count value Y representing the number of detection signals received from the rotary encoder 4. 0 is set (step S101). Further, upon receiving the detection signal from the rotary encoder 4, the reference point detection circuit 15 determines whether or not the rotation direction of the motor 2 is the forward rotation direction (step S102). Note that the reference point detection circuit 15 can determine the direction of rotation of the motor 2, for example, based on an instruction of the direction of rotation from a host controller. Alternatively, if the rotary encoder 4 is of a type that can identify not only the rotation angle but also the rotation direction, the reference point detection circuit 15 determines the rotation direction of the motor 2 based on the detection signal received from the rotary encoder 4. may

モータ2の回転方向が正転方向である場合(ステップS102-Yes)、基準点検出回路15は、カウント値Yを1インクリメントする(ステップS103)。そして基準点検出回路15は、原点センサ6からの基準点信号の値が変化したか否か判定する(ステップS104)。基準点信号の値が変化していなければ(ステップS104-No)、基準点検出回路15は、ステップS102以降の処理を繰り返す。 If the rotation direction of the motor 2 is the forward rotation direction (step S102-Yes), the reference point detection circuit 15 increments the count value Y by 1 (step S103). The reference point detection circuit 15 then determines whether or not the value of the reference point signal from the origin sensor 6 has changed (step S104). If the value of the reference point signal has not changed (step S104-No), the reference point detection circuit 15 repeats the processes after step S102.

一方、基準点信号の値が変化していれば(ステップS104-Yes)、基準点検出回路15は、基準点信号の値の変化が立上りか否か判定する(ステップS105)。基準点信号の値の変化が立上りである場合(ステップS105-Yes)、遮蔽板55の長さによらず、回転リール5の現在の回転位置は、遮蔽板55の一端が発光素子56と受光素子57の間に差し掛かった位置であるので、基準点検出回路15は、回転原点が検知されたことをずれ算出回路16へ通知する(ステップS106)。なお、この場合、基準点信号が立上ったタイミングが第1の時点に相当する。その後、基準点検出回路15は、ステップS101以降の処理を繰り返す。 On the other hand, if the value of the reference point signal has changed (step S104-Yes), the reference point detection circuit 15 determines whether the change in the value of the reference point signal is rising (step S105). If the change in the value of the reference point signal is rising (step S105-Yes), regardless of the length of the shielding plate 55, the current rotational position of the rotary reel 5 is such that one end of the shielding plate 55 and the light emitting element 56 Since the position is between the elements 57, the reference point detection circuit 15 notifies the deviation calculation circuit 16 that the rotation origin has been detected (step S106). In this case, the timing at which the reference point signal rises corresponds to the first point in time. After that, the reference point detection circuit 15 repeats the processes after step S101.

一方、基準点信号の値の変化が立下りである場合(ステップS105-No)、基準点検出回路15は、カウント値Yが所定の閾値Th未満か否か判定する(ステップS107)。なお、閾値Thは、例えば、短い方の遮蔽板55の円周方向の長さに相当する角度だけモータ2が回転したときの、ロータリーエンコーダ4が発する検知信号の数よりも大きく、かつ、長い方の遮蔽板55の円周方向の長さに相当する角度だけモータ2が回転したときの、ロータリーエンコーダ4が発する検知信号の数よりも小さい値に設定される。また、この場合、基準点信号が前回立上ったタイミングが第1の時点に相当し、基準点信号が立下ったタイミングが第2の時点に相当する。 On the other hand, when the change in the value of the reference point signal is falling (step S105-No), the reference point detection circuit 15 determines whether or not the count value Y is less than the predetermined threshold Th (step S107). Note that the threshold Th is, for example, greater than the number of detection signals emitted by the rotary encoder 4 when the motor 2 rotates by an angle corresponding to the length of the shorter shielding plate 55 in the circumferential direction. It is set to a value smaller than the number of detection signals issued by the rotary encoder 4 when the motor 2 rotates by an angle corresponding to the circumferential length of the shielding plate 55 on the other side. Further, in this case, the timing at which the reference point signal last rises corresponds to the first point in time, and the timing at which the reference point signal falls corresponds to the second point in time.

カウント値Yが閾値Th未満である場合(ステップS107-Yes)、遮蔽板55は短い方のタイプ(長さが1図柄未満)であり、また、現在の回転位置は、遮蔽板55が発光素子56と受光素子57の間を通り過ぎる終端に相当する位置である。そのため、基準点検出回路15は、現在の回転位置を基準点として検出せず、ステップS101以降の処理を繰り返す。 If the count value Y is less than the threshold value Th (step S107-Yes), the shielding plate 55 is of the short type (length is less than 1 pattern), and the current rotational position is that the shielding plate 55 is the light emitting element. 56 and the light receiving element 57, which corresponds to the terminal end. Therefore, the reference point detection circuit 15 does not detect the current rotational position as a reference point, and repeats the processing from step S101.

一方、カウント値Yが閾値Th以上である場合(ステップS107-No)、遮蔽板55は長い方のタイプ(長さが半周分)であり、また、現在の回転位置は、遮蔽板55が発光素子56と受光素子57の間を通り過ぎる終端に相当する位置である。そこで、基準点検出回路15は、基準点として、回転原点から回転リール5が半周回転した位置が検知されたことをずれ算出回路16へ通知する(ステップS108)。その後、基準点検出回路15は、ステップS101以降の処理を繰り返す。 On the other hand, if the count value Y is equal to or greater than the threshold value Th (step S107-No), the shielding plate 55 is of the longer type (half the length), and the current rotational position is such that the shielding plate 55 emits light. This is the position corresponding to the terminal end passing between the element 56 and the light receiving element 57 . Therefore, the reference point detection circuit 15 notifies the shift calculation circuit 16 that the position where the reel 5 has rotated half a turn from the rotation origin has been detected as the reference point (step S108). After that, the reference point detection circuit 15 repeats the processes after step S101.

ステップS102にて、モータ2の回転方向が逆転方向である場合(ステップS102-No)、基準点検出回路15は、カウント値Yを1デクリメントする(ステップS109)。すなわち、モータ2の回転方向が逆転方向である場合、カウント値Yは負の値となる。そして基準点検出回路15は、原点センサ6からの基準点信号の値が変化したか否か判定する(ステップS110)。基準点信号の値が変化していなければ(ステップS110-No)、基準点検出回路15は、ステップS102以降の処理を繰り返す。 In step S102, if the rotation direction of the motor 2 is the reverse direction (step S102-No), the reference point detection circuit 15 decrements the count value Y by 1 (step S109). That is, when the rotation direction of the motor 2 is the reverse direction, the count value Y becomes a negative value. The reference point detection circuit 15 then determines whether or not the value of the reference point signal from the origin sensor 6 has changed (step S110). If the value of the reference point signal has not changed (step S110-No), the reference point detection circuit 15 repeats the processes after step S102.

一方、基準点信号の値が変化していれば(ステップS110-Yes)、基準点検出回路15は、基準点信号の値の変化が立上りか否か判定する(ステップS111)。基準点信号の値の変化が立下りである場合(ステップS111-No)、遮蔽板55の長さによらず、現在の回転位置は、遮蔽板55が発光素子56と受光素子57の間を通り過ぎる終端に相当する位置である。そのため、基準点検出回路15は、基準点として、回転原点が検知されたことをずれ算出回路16へ通知する(ステップS112)。なお、この場合、基準点信号が立下ったタイミングが第1の時点に相当する。その後、基準点検出回路15は、ステップS101以降の処理を繰り返す。 On the other hand, if the value of the reference point signal has changed (step S110-Yes), the reference point detection circuit 15 determines whether the change in the value of the reference point signal is rising (step S111). If the change in the value of the reference point signal is falling (step S111-No), regardless of the length of the shielding plate 55, the current rotational position of the shielding plate 55 is between the light emitting element 56 and the light receiving element 57. This is the position corresponding to the passing end. Therefore, the reference point detection circuit 15 notifies the deviation calculation circuit 16 that the rotation origin has been detected as the reference point (step S112). In this case, the timing at which the reference point signal falls corresponds to the first point in time. After that, the reference point detection circuit 15 repeats the processes after step S101.

一方、基準点信号の値の変化が立上りである場合(ステップS111-Yes)、基準点検出回路15は、カウント値Yが、閾値Thから一周所要数Cを減じた値(Th-C)より大きいか否か判定する(ステップS113)。カウント値Yが値(Th-C)以下である場合(ステップS113-No)、遮蔽板55は短い方のタイプであり、また、現在の回転位置は、遮蔽板55の一端が発光素子56と受光素子57の間に差し掛かった位置である。そのため、基準点検出回路15は、現在の回転位置を基準点として検出せず、ステップS101以降の処理を繰り返す。 On the other hand, if the change in the value of the reference point signal is rising (step S111-Yes), the reference point detection circuit 15 determines that the count value Y is less than the value (Th-C) obtained by subtracting the required number of cycles C from the threshold Th. It is determined whether or not it is larger (step S113). If the count value Y is equal to or less than the value (Th-C) (step S113-No), the shielding plate 55 is of the short type, and the current rotational position is such that one end of the shielding plate 55 and the light emitting element 56 This is the position between the light receiving elements 57 . Therefore, the reference point detection circuit 15 does not detect the current rotational position as a reference point, and repeats the processing from step S101.

一方、カウント値Yが値(Th-C)より大きい場合(ステップS113-Yes)、遮蔽板55は長い方のタイプであり、また、現在の回転位置は、遮蔽板55の一端が発光素子56と受光素子57の間に差し掛かった位置である。そこで、基準点検出回路15は、基準点として、回転原点から回転リール5が半周回転した位置が検知されたことをずれ算出回路16へ通知する(ステップS114)。また、この場合、基準点信号が前回立下ったタイミングが第1の時点に相当し、基準点信号が立上ったタイミングが第2の時点に相当する。その後、基準点検出回路15は、ステップS101以降の処理を繰り返す。 On the other hand, if the count value Y is greater than the value (Th-C) (step S113-Yes), the shielding plate 55 is of the longer type, and the current rotational position is such that one end of the shielding plate 55 is the light emitting element 56 and the light receiving element 57. Therefore, the reference point detection circuit 15 notifies the shift calculation circuit 16 that the position where the reel 5 has rotated half a turn from the rotation origin has been detected as the reference point (step S114). In this case, the timing at which the reference point signal last fell corresponds to the first point in time, and the timing at which the reference point signal rises corresponds to the second point in time. After that, the reference point detection circuit 15 repeats the processes after step S101.

このように、基準点検出回路15は、回転リール5の現在の回転位置が回転原点または回転原点から半周回転した位置であるときに、その回転位置が基準点であること、及び、基準点の種別(回転原点または回転原点から半周回転した位置)を表す情報をずれ算出回路16へ通知する。 In this manner, the reference point detection circuit 15 detects that the rotational position of the reel 5 is the reference point when the current rotational position of the reel 5 is the origin of rotation or is rotated halfway from the origin of rotation, and that the reference point is the reference point. The deviation calculation circuit 16 is notified of the information indicating the type (the rotation origin or the position rotated by half a turn from the rotation origin).

ずれ算出回路16は、ずれ量算出部の一例であり、回転リール5の回転位置が基準点となる度に、回転リール5とモータ2が完全に同期して回転する場合に対する、モータ2の回転量に対応する回転リール5の回転位置と回転リール5の実際の回転位置間のずれ量を算出する。 The shift calculation circuit 16 is an example of a shift amount calculation unit. A deviation amount between the rotational position of the rotating reel 5 corresponding to the amount and the actual rotating position of the rotating reel 5 is calculated.

図7は、ずれ算出回路16による、ずれ量算出処理の動作フローチャートである。ずれ算出回路16は、モータ2が回転している間、以下の動作フローチャートに従ってずれ量算出処理を実行する。 FIG. 7 is an operation flowchart of the deviation amount calculation process by the deviation calculation circuit 16. As shown in FIG. While the motor 2 is rotating, the deviation calculation circuit 16 executes deviation amount calculation processing according to the following operation flowchart.

ずれ算出回路16は、原点センサ6からの基準点信号の値が変化すると、すなわち、基準点信号が立上るか立下ると、ロータリーエンコーダ4からの検出信号の受信数を表すカウント値Xを0に設定する(ステップS201)。また、ずれ算出回路16は、ロータリーエンコーダ4から検知信号を受信すると、モータ2の回転方向が正転方向か否か判定する(ステップS202)。なお、ずれ算出回路16は、基準点検出回路15と同様に、モータ2の回転方向を、例えば、上位制御装置からの回転方向の指示により判別できる。あるいは、ロータリーエンコーダ4が回転角だけでなく、回転方向も識別できるタイプのエンコーダであれば、ずれ算出回路16は、ロータリーエンコーダ4から受信した検知信号に基づいてモータ2の回転方向を判別してもよい。 When the value of the reference point signal from the origin sensor 6 changes, that is, when the reference point signal rises or falls, the deviation calculation circuit 16 resets the count value X representing the number of detection signals received from the rotary encoder 4 to 0. (step S201). Further, when the deviation calculation circuit 16 receives the detection signal from the rotary encoder 4, it determines whether or not the rotation direction of the motor 2 is the forward rotation direction (step S202). Like the reference point detection circuit 15, the deviation calculation circuit 16 can determine the rotation direction of the motor 2, for example, based on a rotation direction instruction from a host controller. Alternatively, if the rotary encoder 4 is an encoder that can identify not only the rotation angle but also the rotation direction, the deviation calculation circuit 16 determines the rotation direction of the motor 2 based on the detection signal received from the rotary encoder 4. good too.

モータ2の回転方向が正転方向である場合(ステップS202-Yes)、ずれ算出回路16は、カウント値Xが一周所要数Cと等しいか否か判定する(ステップS203)。カウント値Xが一周所要数C未満であれば(ステップS203-No)、ずれ算出回路16は、カウント値Xを1インクリメントする(ステップS204)。一方、カウント値Xが一周所要数Cと等しければ(ステップS203-Yes)、ずれ算出回路16は、カウント値Xを0にリセットする(ステップS205)。 If the rotation direction of the motor 2 is the forward rotation direction (step S202-Yes), the deviation calculation circuit 16 determines whether or not the count value X is equal to the required number of turns C (step S203). If the count value X is less than the number C required for one round (step S203-No), the deviation calculation circuit 16 increments the count value X by 1 (step S204). On the other hand, if the count value X is equal to the number C required for one round (step S203-Yes), the deviation calculation circuit 16 resets the count value X to 0 (step S205).

また、ステップS202において、モータ2の回転方向が逆転方向である場合(ステップS202-No)、ずれ算出回路16は、カウント値Xが一周所要数Cに-1を乗じた値(-C)と等しいか否か判定する(ステップS206)。カウント値Xが値(-C)よりも大きければ(ステップS206-No)、ずれ算出回路16は、カウント値Xを1デクリメントする(ステップS207)。すなわち、モータ2の回転方向が逆転方向である場合、カウント値Xは負の値となる。一方、カウント値Xが値(-C)と等しければ(ステップS206-Yes)、ずれ算出回路16は、カウント値Xを0にリセットする(ステップS208)。 Further, in step S202, if the rotation direction of the motor 2 is the reverse direction (step S202-No), the deviation calculation circuit 16 determines that the count value X is the value (-C) obtained by multiplying the required number of one rotation C by -1. It is determined whether or not they are equal (step S206). If the count value X is greater than the value (-C) (step S206-No), the deviation calculation circuit 16 decrements the count value X by 1 (step S207). That is, when the rotation direction of the motor 2 is the reverse direction, the count value X becomes a negative value. On the other hand, if the count value X is equal to the value (-C) (step S206-Yes), the deviation calculation circuit 16 resets the count value X to 0 (step S208).

ステップS204、S205、S207またはS208の後、ずれ算出回路16は、原点センサ6からの基準点信号の値が変化したか否か判定する(ステップS209)。基準点信号の値が変化していなければ(ステップS209-No)、ずれ算出回路16は、ステップS202以降の処理を繰り返す。 After step S204, S205, S207 or S208, the deviation calculation circuit 16 determines whether or not the value of the reference point signal from the origin sensor 6 has changed (step S209). If the value of the reference point signal has not changed (step S209-No), the deviation calculation circuit 16 repeats the processes after step S202.

一方、原点センサ6からの基準点信号の値が変化していれば(ステップS209-Yes)、ずれ算出回路16は、基準点検出回路15により判定された、その基準点信号の値の変化に対応する基準点の種類に従ってずれ量を算出する(ステップS210)。 On the other hand, if the value of the reference point signal from the origin sensor 6 has changed (step S209-Yes), the deviation calculation circuit 16 responds to the change in the value of the reference point signal determined by the reference point detection circuit 15. A deviation amount is calculated according to the type of the corresponding reference point (step S210).

ずれ算出回路16は、回転リール5の現在の回転位置が回転原点である場合、以下のようにずれ量を算出する。具体的に、モータ2が正転しており、かつ、カウンタ値Xが一周所要数Cの半分以下であれば、すなわち、回転リール5が1回転する間の検知信号数が一周所要数Cよりも多ければ、ずれ算出回路16は、カウンタ値Xそのものをずれ量として算出する。一方、モータ2が正転しており、かつ、カウンタ値Xが一周所要数Cの半分よりも多ければ、すなわち、回転リール5が1回転する間の検知信号数が一周所要数Cよりも少なければ、ずれ算出回路16は、カウンタ値Xから一周所要数Cを減じて得られる値(X-C)をずれ量として算出する。また、モータ2が逆転しており、かつ、カウンタ値Xの絶対値が一周所要数Cの半分以下であれば、すなわち、回転リール5が1回転する間の検知信号数が一周所要数Cよりも多ければ、ずれ算出回路16は、カウンタ値Xの絶対値そのものをずれ量として算出する。一方、モータ2が逆転しており、かつ、カウンタ値Xの絶対値が一周所要数Cの半分よりも多ければ、すなわち、回転リール5が1回転する間の検知信号数が一周所要数Cよりも少なければ、ずれ算出回路16は、カウンタ値Xに一周所要数Cを加算し、かつ、正負を反転して得られる値{-(X+C)}をずれ量として算出する。さらに、回転リール5の現在の回転位置が回転原点から半周回転した位置であり、かつ、モータ2が正転している場合、ずれ算出回路16は、カウンタ値Xから一周所要数Cの1/2を減じた値(X-C/2)をずれ量として算出する。一方、回転リール5の現在の回転位置が回転原点から半周回転した位置であり、かつ、モータ2が逆転している場合、ずれ算出回路16は、カウンタ値Xに一周所要数Cの1/2を加算し、かつ、正負を反転して得られる値{-(X+C/2)}をずれ量として算出する。なお、一周所要数C及び一周所要数Cの1/2は、それぞれ、基準点が検出されてから、次に基準点が検出されるまでの期間における、回転体の回転量に対応するモータの回転量に相当する第2の検知信号の基準数の一例である。そしてずれ算出回路16は、そのずれ量を駆動制御回路12へ通知する。なお、回転リール5の現在の回転位置が、回転原点でも、回転原点から半周回転した位置でも無い場合には、ずれ算出回路16は、ずれ量を算出せず、かつ、駆動制御回路12へずれ量を通知しない。したがって、遮蔽板55の長さが1図柄未満である場合には、回転リール5の現在の回転位置が、回転原点と異なる方の遮蔽板55の端部に相当する位置であっても、ずれ算出回路16は、ずれ量を算出しない。 When the current rotational position of the rotary reel 5 is the rotation origin, the deviation calculation circuit 16 calculates the deviation amount as follows. Specifically, if the motor 2 is rotating forward and the counter value X is less than half of the required number of turns C If it is larger, the deviation calculation circuit 16 calculates the counter value X itself as the deviation amount. On the other hand, if the motor 2 is rotating forward and the counter value X is more than half of the number C required for one rotation, that is, if the number of detection signals during one rotation of the reel 5 is less than the number C required for one rotation. For example, the deviation calculation circuit 16 calculates a value (X-C) obtained by subtracting the required number of circles C from the counter value X as the deviation amount. Further, if the motor 2 is rotating in reverse and the absolute value of the counter value X is less than half of the number C required for one rotation, that is, the number of detection signals during one rotation of the reel 5 is greater than the number C required for one rotation. If it is larger, the deviation calculation circuit 16 calculates the absolute value of the counter value X itself as the deviation amount. On the other hand, if the motor 2 is rotating in reverse and the absolute value of the counter value X is greater than half the number C required for one rotation, that is, the number of detection signals during one rotation of the reel 5 is greater than the number C required for one rotation. If less, the deviation calculation circuit 16 adds the required number of cycles C to the counter value X and inverts the positive/negative to calculate a value {-(X+C)} obtained as the deviation amount. Further, when the current rotational position of the reel 5 is half a turn from the rotation origin and the motor 2 is rotating forward, the deviation calculation circuit 16 calculates the counter value X from the required number of turns C, which is 1/ A value obtained by subtracting 2 (X-C/2) is calculated as the amount of deviation. On the other hand, if the current rotational position of the reel 5 is half a turn from the origin of rotation and the motor 2 is rotating in reverse, the deviation calculation circuit 16 sets the counter value X to 1/2 of the required number of turns C. is added and a value {-(X+C/2)} obtained by reversing the sign is calculated as the amount of deviation. Note that the required number C for one rotation and 1/2 of the required number C for one rotation are the motor rotation amounts corresponding to the amount of rotation of the rotating body during the period from the detection of the reference point to the next detection of the reference point. It is an example of the reference number of the second detection signal corresponding to the amount of rotation. Then, the deviation calculation circuit 16 notifies the drive control circuit 12 of the deviation amount. If the current rotational position of the reel 5 is neither the origin of rotation nor the position rotated halfway from the origin of rotation, the deviation calculation circuit 16 does not calculate the deviation amount, and the deviation to the drive control circuit 12 is determined. Do not give quantity. Therefore, when the length of the shielding plate 55 is less than one pattern, even if the current rotational position of the reel 5 is a position corresponding to the end of the shielding plate 55 different from the rotation origin, there is no deviation. The calculation circuit 16 does not calculate the amount of deviation.

ステップS210の後、ずれ算出回路16は、ステップS201以降の処理を繰り返す。 After step S210, the deviation calculation circuit 16 repeats the processes after step S201.

図8は、モータ制御装置1による、モータ2を停止させるための停止制御処理の動作フローチャートである。この停止制御処理は、モータ制御装置1が上位制御装置から駆動制御信号を受信しなくなると、すなわち、モータ2の回転を停止させることが指示されると実行される。 FIG. 8 is an operation flowchart of stop control processing for stopping the motor 2 by the motor control device 1 . This stop control process is executed when the motor control device 1 stops receiving the drive control signal from the host control device, that is, when an instruction to stop the rotation of the motor 2 is given.

駆動信号生成回路13は、駆動制御回路12から通知された、速度設定信号にて指定された回転速度に対応するデューティ比を持つ駆動信号を、モータ2を駆動するモータ駆動回路3へ出力する(ステップS301)。 The drive signal generation circuit 13 outputs a drive signal having a duty ratio corresponding to the rotation speed designated by the speed setting signal notified from the drive control circuit 12 to the motor drive circuit 3 that drives the motor 2 ( step S301).

ブレーキタイミング判定回路14は、駆動制御回路12からずれ量を受信すると、受信したずれ量を、目標回転量までの残回転量を表す、図柄単位検知信号数及びずれ量の累積値に加算する(ステップS302)。また、ブレーキタイミング判定回路14は、駆動制御回路12から図柄単位検知信号数を受信すると、受信した図柄単位検知信号数を累積値に加算する(ステップS303)。さらに、ブレーキタイミング判定回路14は、ロータリーエンコーダ4から検知信号を受信すると、累積値を1デクリメントする(ステップS304)。 When the brake timing determination circuit 14 receives the amount of deviation from the drive control circuit 12, it adds the received amount of deviation to the cumulative value of the number of detection signals for each symbol and the amount of deviation, which represents the remaining rotation amount up to the target rotation amount ( step S302). Further, when the brake timing determination circuit 14 receives the number of detection signals for each symbol from the drive control circuit 12, it adds the received number of detection signals for each symbol to the cumulative value (step S303). Further, when the brake timing determination circuit 14 receives the detection signal from the rotary encoder 4, it decrements the cumulative value by 1 (step S304).

ブレーキタイミング判定回路14は、累積値が停止所要数以下か否か判定する(ステップS305)。累積値が停止所要数よりも大きければ(ステップS305-No)、モータ制御装置1は、ステップS301以降の処理を繰り返す。 The brake timing determination circuit 14 determines whether or not the cumulative value is equal to or less than the required number of stops (step S305). If the cumulative value is greater than the required number of stops (step S305-No), the motor control device 1 repeats the processes after step S301.

一方、累積値が停止所要数以下であれば(ステップS305-Yes)、ブレーキタイミング判定回路14は、駆動信号生成回路13へブレーキ開始タイミングとなったことを通知する。また、駆動信号生成回路13は、モータ2が停止するまで、メモリ11に記憶されている速度ブレーキ値テーブルを参照して、モータ2の回転速度に対応するデューティ比を特定する。そして駆動信号生成回路13は、そのデューティ比に相当するブレーキ力を持つ駆動信号を、モータ駆動回路3へ出力する(ステップS306)。駆動信号生成回路13は、モータ2が停止すると、すなわち、累積値が0になると、モータ駆動回路3への駆動信号の出力を停止し、モータ制御装置1は、停止制御処理を終了する。 On the other hand, if the cumulative value is equal to or less than the required number of stops (step S305-Yes), the brake timing determination circuit 14 notifies the drive signal generation circuit 13 that it is time to start braking. Further, the drive signal generation circuit 13 refers to the speed brake value table stored in the memory 11 to identify the duty ratio corresponding to the rotational speed of the motor 2 until the motor 2 stops. Then, the drive signal generation circuit 13 outputs a drive signal having a braking force corresponding to the duty ratio to the motor drive circuit 3 (step S306). When the motor 2 stops, that is, when the cumulative value becomes 0, the drive signal generation circuit 13 stops outputting the drive signal to the motor drive circuit 3, and the motor control device 1 ends the stop control process.

以上に説明してきたように、このモータ制御装置は、モータにより駆動される回転体について、基準点として参照可能な回転位置が異なる2種類の回転体、すなわち、遮蔽板の長さが異なる2種類の回転体の何れが用いられる場合でも、外部から遮蔽板の長さを識別するための情報を必要とせずに、その基準点を検出できる。したがって、このモータ制御装置は、回転体に設けられる基準点の位置が回転体に応じて異なる場合でも、その基準点に基づいて、モータの回転量に対応する回転体の回転位置と回転体の実際の回転位置間のずれを補正することができる。 As described above, this motor control device provides two types of rotating bodies with different rotational positions that can be referred to as reference points, that is, two types of rotating bodies with different lengths of shielding plates. , the reference point can be detected without requiring information for identifying the length of the shielding plate from the outside. Therefore, even if the position of the reference point provided on the rotating body differs depending on the rotating body, this motor control device can, based on the reference point, determine the rotational position of the rotating body and the position of the rotating body corresponding to the amount of rotation of the motor. Misalignment between actual rotational positions can be corrected.

変形例によれば、原点センサが有する、回転体の円周方向に沿った、回転体に設けられる遮蔽板には、円周方向に沿った長さが互いに異なる3種類以上のものがあってもよい。この場合、メモリ11には、遮蔽板の長さの種類ごとに、その種類の長さに応じたモータ2の回転量に相当する、ロータリーエンコーダ4からの検知信号数を表す長さ基準値が記憶されていればよい。基準点検出回路15は、モータ2が正転している場合には、基準点信号が立上ってから立下るまでの間に受信した検知信号の数と、メモリ11に記憶されている、遮蔽板の種類ごとの長さ基準値と比較し、遮蔽板の種類を、検知信号数に最も近い長さ基準値に対応する種類であると特定すればよい。そして基準点検出回路15は、回転リール5の現在の回転位置が、回転原点から、特定した種類の遮蔽板の一端に相当する回転量だけ回転した位置にある基準点に位置していることをずれ算出回路16へ通知すればよい。なお、モータ2が正転している場合、基準点検出回路15は、遮蔽板の種類によらず、基準点信号が立上る位置を、基準点の一つである、回転原点として検出すればよい。同様に、モータ2が逆転している場合、基準点検出回路15は、遮蔽板の種類ごとに、基準点信号が立下ってから立上るまでの間に受信した検知信号の数と、一周所要数からその種類の長さ基準値を減じた値とを比較し、遮蔽板の種類を、検知信号の数に最も近いものに対応する種類として特定すればよい。そして基準点検出回路15は、回転リール5の現在の回転位置が、回転原点から、特定した種類の遮蔽板の一端に相当する回転量だけ回転した位置にある基準点に位置していることをずれ算出回路16へ通知すればよい。なお、モータ2が逆転している場合、基準点検出回路15は、遮蔽板の種類によらず、基準点信号が立下る位置を、基準点の一つである、回転原点として検出すればよい。 According to the modification, there are three or more types of shielding plates provided on the rotating body along the circumferential direction of the rotating body, which the origin sensor has, and have different lengths along the circumferential direction. good too. In this case, the memory 11 stores a length reference value representing the number of detection signals from the rotary encoder 4 corresponding to the amount of rotation of the motor 2 corresponding to the length of each type of shielding plate. It is sufficient if it is stored. When the motor 2 is rotating forward, the reference point detection circuit 15 detects the number of detection signals received between the rise and fall of the reference point signal and the number of detection signals stored in the memory 11. By comparing with the length reference value for each type of shielding plate, the type of shielding plate may be identified as the type corresponding to the length reference value closest to the number of detected signals. The reference point detection circuit 15 detects that the current rotational position of the reel 5 is positioned at a reference point rotated from the rotation origin by an amount of rotation corresponding to one end of the shielding plate of the specified type. The deviation calculation circuit 16 may be notified of this. When the motor 2 is rotating forward, the reference point detection circuit 15 detects the position where the reference point signal rises as the rotation origin, which is one of the reference points, regardless of the type of the shield plate. good. Similarly, when the motor 2 is rotating in reverse, the reference point detection circuit 15 detects the number of detection signals received between the fall of the reference point signal and the rise of the reference point signal, and A value obtained by subtracting the length reference value of the type from the number may be compared, and the type of shielding plate may be identified as the type corresponding to the number of detection signals that is closest to the number of detection signals. The reference point detection circuit 15 detects that the current rotational position of the reel 5 is positioned at a reference point rotated from the rotation origin by an amount of rotation corresponding to one end of the shielding plate of the specified type. The deviation calculation circuit 16 may be notified of this. When the motor 2 is rotating in reverse, the reference point detection circuit 15 may detect the position where the reference point signal falls as the rotation origin, which is one of the reference points, regardless of the type of shield plate. .

また、ずれ算出回路16は、図7に示されるフローチャートにおける、ステップS210において、回転リール5の現在位置に応じた、回転原点からの回転量に相当する検知信号数を、カウンタ値Xから減じることで、ずれ量を算出すればよい。 In step S210 in the flowchart shown in FIG. 7, the deviation calculation circuit 16 subtracts the number of detection signals corresponding to the amount of rotation from the rotation origin according to the current position of the reel 5 from the counter value X. Then, the deviation amount can be calculated.

この変形例によれば、回転体に取り付け可能な遮蔽板の種類が3種類以上あっても、モータ制御装置は、外部から原点センサの種別を識別するための情報を必要とせずに、ずれ量算出に利用される基準点を特定できる。 According to this modification, even if there are three or more types of shielding plates that can be attached to the rotating body, the motor control device can detect the amount of deviation without requiring information for identifying the type of the origin sensor from the outside. A reference point can be specified that will be used in the calculation.

また、上記の実施形態または変形例によるモータ制御装置は、回胴遊技機の回転リール以外の可動部材を駆動するために用いられてもよい。例えば、モータ制御装置は、弾球遊技機の演出用の可動部材を駆動するために用いられてもよい。 Also, the motor control device according to the above embodiment or modified example may be used to drive a movable member other than the rotating reels of the reel game machine. For example, a motor control device may be used to drive a movable member for performance of a pinball game machine.

図9は、上記の実施形態または変形例によるモータ制御装置を備えた回胴遊技機100の概略斜視図である。また図10は、回胴遊技機100の回路ブロック図である。さらに、図11は、リールユニット120が有する一つの回転リールの概略斜視図である。図9に示すように、回胴遊技機100は、遊技機本体である本体筐体110と、リールユニット120と、スタートレバー130と、ストップボタン140a~140cとを有する。 FIG. 9 is a schematic perspective view of a reel game machine 100 having a motor control device according to the above embodiment or modification. 10 is a circuit block diagram of the reel game machine 100. As shown in FIG. Furthermore, FIG. 11 is a schematic perspective view of one rotating reel that the reel unit 120 has. As shown in FIG. 9, the reel game machine 100 has a main body housing 110, which is a game machine main body, a reel unit 120, a start lever 130, and stop buttons 140a to 140c.

また回胴遊技機100は、本体筐体110内に、回胴遊技機100の各部を制御する制御回路150と、リールユニット120が有する回転リールを駆動するための3個のモータ151-1~151-3と、各モータを駆動する3個のモータ駆動回路152-1~152-3と、3個のモータ制御装置153-1~153-3とを有する。なお、モータ制御装置153-1~153-3は、上記の実施形態または変形例によるモータ制御装置とすることができる。また、モータ駆動回路152-1~152-3は、上記の実施形態または変形例によるモータ駆動回路とすることができる。さらに、回胴遊技機100は、回胴遊技機100の各部に電力を供給する電源回路(図示せず)及び制御回路150からの制御信号に応じてメダルを一時貯留し、かつメダルを排出するためのメダル貯留及び排出機構(図示せず)を有する。 In addition, the reel game machine 100 has a control circuit 150 for controlling each part of the reel game machine 100 and three motors 151-1 to 151-3, three motor drive circuits 152-1 to 152-3 for driving each motor, and three motor controllers 153-1 to 153-3. Note that the motor control devices 153-1 to 153-3 can be motor control devices according to the above embodiments or modifications. Also, the motor drive circuits 152-1 to 152-3 can be the motor drive circuits according to the above embodiments or modifications. Furthermore, the reel game machine 100 temporarily stores medals in response to control signals from a power supply circuit (not shown) that supplies power to each part of the reel game machine 100 and a control circuit 150, and discharges the medals. It has a medal storage and discharge mechanism (not shown) for.

本体筐体110の前面の中央上部には開口111が形成されており、その開口111を通じて、リールユニット120の一部が視認可能になっている。また開口111の下側の枠112の上面には、メダルを投入するためのメダル投入口113が形成されている。 An opening 111 is formed in the upper central portion of the front surface of the body housing 110, and a part of the reel unit 120 is visible through the opening 111. As shown in FIG. A medal slot 113 for inserting medals is formed on the upper surface of the frame 112 below the opening 111 .

リールユニット120は、3個の回転リール121-1~121-3を有する。回転リール121-1~121-3は、それぞれ、制御回路150からの駆動制御信号に応じて、本体筐体110の前面に対して略平行かつ略水平な回転軸(図示せず)を回転中心として、それぞれ、別個に回転可能となっている。さらに、回転リール121-1~121-3のそれぞれの回転軸は、ギア(図示せず)を介してモータ151-1~151-3の回転軸と係合される。そしてモータ151-1~151-3が回転することで、回転リール121-1~121-3も回転する。さらに、モータ151-1~151-3のそれぞれの回転軸には、ロータリーエンコーダ(図示せず)が取り付けられ、ロータリーエンコーダは、モータ151-1~151-3が所定のサンプリング角度だけ回転する度に、検知信号をモータ制御装置153-1~153-3へ出力する。さらに、回転リール121-1~121-3のそれぞれには、上記の実施形態のような原点センサ(図示せず)が設けられる。
また、回転リール121-1~121-3の表面は、それぞれ、回転方向、すなわち、円周方向に沿って複数の略同一幅を持つ領域に区切られ、領域ごとに様々な図柄が描かれており、それら領域のうちの一部が開口111を介して遊技者に視認可能となっている。
The reel unit 120 has three rotating reels 121-1 to 121-3. Each of the rotating reels 121-1 to 121-3 rotates about a rotating shaft (not shown) substantially parallel and substantially horizontal to the front surface of the main housing 110 according to a drive control signal from the control circuit 150. , can be rotated separately. Furthermore, the respective rotating shafts of the rotating reels 121-1 to 121-3 are engaged with the rotating shafts of the motors 151-1 to 151-3 via gears (not shown). The rotation of the motors 151-1 to 151-3 also rotates the rotary reels 121-1 to 121-3. Furthermore, a rotary encoder (not shown) is attached to each rotating shaft of the motors 151-1 to 151-3. Then, a detection signal is output to the motor control devices 153-1 to 153-3. Furthermore, each of the rotating reels 121-1 to 121-3 is provided with an origin sensor (not shown) as in the above embodiment.
In addition, the surfaces of the rotating reels 121-1 to 121-3 are each divided into a plurality of regions having approximately the same width along the direction of rotation, that is, the circumferential direction, and various patterns are drawn on each region. A part of these areas is visible to the player through the opening 111 .

スタートレバー130は、本体筐体110の枠112の前面に向かって左側に設けられている。また、枠112の前面略中央には、ストップボタン140a~140cが設けられている。ストップボタン140a~140cは、それぞれ、回転リール121-1~121-3に対応する。 The start lever 130 is provided on the left side of the frame 112 of the main housing 110 as viewed from the front. In addition, stop buttons 140a to 140c are provided at approximately the center of the front surface of the frame 112. As shown in FIG. The stop buttons 140a-140c correspond to the rotating reels 121-1-121-3, respectively.

本体筐体110の前面の下部には、メダルを排出するためのメダル排出口114が形成されている。そしてメダル排出口114の下方には、排出されたメダルが落下することを防止するためのメダル受け皿115が取り付けられている。 A medal ejection port 114 for ejecting medals is formed in the lower part of the front surface of the main body housing 110 . Below the medal discharge port 114, a medal tray 115 is attached to prevent the discharged medals from falling.

メダルがメダル投入口113に投入された後に、スタートレバー130が操作されると、スタートレバー130が操作されたことを示す信号が制御回路150へ伝達される。そして制御回路150は、回転リール121-1~121-3の回転を開始させる。すなわち、制御回路150は、モータ制御装置153-1~153-3へ、速度設定信号を出力するとともに、回転リール121-1~121-3がそれぞれ1図柄分だけ回転する度に、駆動制御信号を出力する。なお、制御回路150は、遊技の状態に応じて、回転リール121-1~121-3の回転速度を変更してもよい。この場合、制御回路150は、回転リール121-1~121-3の回転速度を変更する度に、変更後の回転速度を指定する速度設定信号をモータ制御装置153-1~153-3へ出力すればよい。なお、制御回路150は、回転リール121-1~121-3のそれぞれごとに、異なる回転速度を設定してもよい。また、制御回路150は、回転リール121-1~121-3のそれぞれごとに、回転速度を変更するタイミングを互いに異ならせてもよい。 When the start lever 130 is operated after medals are inserted into the medal slot 113, a signal indicating that the start lever 130 has been operated is transmitted to the control circuit 150. FIG. Then, the control circuit 150 starts rotating the rotary reels 121-1 to 121-3. That is, the control circuit 150 outputs a speed setting signal to the motor control devices 153-1 to 153-3, and each time the reels 121-1 to 121-3 rotate by one symbol, a drive control signal is output. to output It should be noted that the control circuit 150 may change the rotation speed of the rotating reels 121-1 to 121-3 according to the game state. In this case, every time the control circuit 150 changes the rotational speed of the reels 121-1 to 121-3, it outputs a speed setting signal designating the changed rotational speed to the motor control devices 153-1 to 153-3. do it. The control circuit 150 may set different rotation speeds for each of the reels 121-1 to 121-3. Further, the control circuit 150 may vary the timing of changing the rotation speed for each of the reels 121-1 to 121-3.

その後、本体筐体110の枠112の前面略中央に設けられたストップボタン140a~140cの何れかが押下されると、制御回路150は、その押下されたボタンから押下されたことを示す信号を受信し、その押下されたボタンに対応する回転リールの回転を停止させる。あるいは、制御回路150は、回転リール121-1~121-3のうち、回転を開始してから所定期間が経過するまでに、対応するストップボタンが押下されなかった回転リールを、その所定期間経過後に停止させる。回転リールを停止させる場合、制御回路150は、駆動制御信号の出力を停止すればよい。その際、モータ制御装置153-1~153-3は、それぞれ、上記の実施形態または変形例に従って停止制御処理を実行すればよい。
そして全ての回転リールが停止した時点で、同一の図柄が全ての回転リールにわたって一列に並んでいると、制御回路150は、その図柄に応じた所定枚数のメダルを、メダル排出口114を通じて排出する。
After that, when any one of the stop buttons 140a to 140c provided substantially in the center of the front surface of the frame 112 of the main housing 110 is pressed, the control circuit 150 outputs a signal indicating that the pressed button has been pressed. It receives and stops the rotation of the reel corresponding to the pressed button. Alternatively, the control circuit 150 controls the rotation of the reels 121-1 to 121-3 for which the corresponding stop button has not been pressed within a predetermined period of time after the start of rotation. stop later. When stopping the rotating reel, the control circuit 150 should stop outputting the drive control signal. At that time, each of the motor control devices 153-1 to 153-3 may execute stop control processing according to the above embodiment or modified example.
When all the rotating reels are stopped and the same symbols are lined up on all the rotating reels, the control circuit 150 discharges a predetermined number of medals according to the symbol through the medal discharge port 114.例文帳に追加.

このように、当業者は、本発明の範囲内で、実施される形態に合わせて様々な変更を行うことができる。 Thus, a person skilled in the art can make various modifications within the scope of the present invention according to the embodiment.

1 モータ制御装置
2 モータ
3 モータ駆動回路
4 ロータリーエンコーダ
5 回転リール
51 円筒状部材
52 支持部材
53 アーム
54 光学センサ
55 遮蔽板
56 発光素子
57 受光素子
6 原点センサ
10 通信インターフェース回路
11 メモリ
12 駆動制御回路
13 駆動信号生成回路
14 ブレーキタイミング判定回路
15 基準点検出回路
16 ずれ算出回路
100 回胴遊技機
110 本体筐体
120 リールユニット
121-1~121-3 回転リール
130 スタートレバー
140a~140c ストップボタン
150 制御回路
151-1~151-3 モータ
152-1~152-3 モータ駆動回路
153-1~153-3 モータ制御装置
REFERENCE SIGNS LIST 1 motor control device 2 motor 3 motor drive circuit 4 rotary encoder 5 rotary reel 51 cylindrical member 52 support member 53 arm 54 optical sensor 55 shielding plate 56 light emitting element 57 light receiving element 6 origin sensor 10 communication interface circuit 11 memory 12 drive control circuit 13 drive signal generation circuit 14 brake timing determination circuit 15 reference point detection circuit 16 deviation calculation circuit 100 reel game machine 110 main body housing 120 reel unit 121-1 to 121-3 rotating reel 130 start lever 140a to 140c stop button 150 control Circuit 151-1 to 151-3 Motor 152-1 to 152-3 Motor drive circuit 153-1 to 153-3 Motor control device

Claims (4)

回転中心の回りに回転可能であり、かつ、前記回転中心の円周方向に沿って所定の長さを有する部材を有する回転体を駆動するモータを制御するモータ制御装置であって、
前記部材が前記円周方向における所定の検出位置にいるか否かで異なる値を持つ第1の検知信号を出力する原点センサからの前記第1の検知信号の値が変化した第1の時点から、前記第1の検知信号の値が再度変化する第2の時点までの間に、前記モータが所定角度回転する度に回転角センサから出力される第2の検知信号を受信した数と、前記第1の時点または前記第2の時点における、前記第1の検知信号の値の変化の態様とに基づいて、前記第1の時点または前記第2の時点において前記部材の前記円周方向における二つの端部のうちの前記所定の検出位置に達した端部を基準点として検出する基準点検出部と、
前記基準点が検出されてから、次に前記基準点が検出されるまでの期間に受信した前記第2の検知信号の数と、前記期間における、前記回転体の回転量に対応する前記モータの回転量に相当する前記第2の検知信号の基準数との差をずれ量として算出するずれ算出部と、
前記ずれ量が算出される度に、前記回転体の回転位置を表す位置情報を前記ずれ量に応じて補正する補正部と、
を有するモータ制御装置。
A motor control device for controlling a motor that drives a rotating body that is rotatable around a center of rotation and has a member having a predetermined length along the circumferential direction of the center of rotation,
From a first point in time when the value of the first detection signal from an origin sensor that outputs a first detection signal having a different value depending on whether or not the member is at a predetermined detection position in the circumferential direction, the number of receptions of the second detection signal output from the rotation angle sensor each time the motor rotates by a predetermined angle until a second point in time when the value of the first detection signal changes again; At the first point in time or at the second point in time, based on the manner of change in the value of the first detection signal at the first point in time or at the second point in time, two points in the circumferential direction of the member are detected. a reference point detection unit that detects, as a reference point, one of the end portions that has reached the predetermined detection position;
The number of the second detection signals received during the period from the detection of the reference point to the next detection of the reference point, and the rotation of the motor corresponding to the amount of rotation of the rotating body during the period. a shift calculation unit that calculates a shift amount as a difference from a reference number of the second detection signals corresponding to the amount of rotation;
a correction unit that corrects the position information representing the rotational position of the rotating body according to the deviation amount each time the deviation amount is calculated;
A motor controller having a
前記基準点検出部は、前記回転体が所定の回転方向に回転している場合において、前記第1の時点において、前記第1の検知信号の値が前記部材が前記所定の検出位置にいないときの第1の値から前記部材が前記所定の検出位置にいるときの第2の値に変化すると、前記第1の時点において前記基準点を検出するとともに、前記第1の時点において、前記第1の検知信号の値が第1の値から前記第2の値に変化し、かつ、前記第1の時点から前記第2の時点までの間に受信した前記第2の検知信号の数が所定の閾値以上である場合に前記第2の時点において前記基準点を検出する、請求項1に記載のモータ制御装置。 The reference point detection unit detects that the member is not at the predetermined detection position at the first point in time when the rotating body is rotating in a predetermined rotation direction. from the first value to the second value when the member is at the predetermined detection position, the reference point is detected at the first time point, and the first the value of the detection signal changes from the first value to the second value, and the number of the second detection signals received between the first time point and the second time point is a predetermined number 2. The motor control device according to claim 1, wherein said reference point is detected at said second time point if it is greater than or equal to a threshold value. 前記モータの回転を制御するための駆動信号を、前記モータを駆動する駆動回路へ出力する駆動信号生成部をさらに有し、
前記補正部は、前記回転体の現在の回転位置から前記回転体の目標停止位置までの残回転量に対応する前記第2の検知信号の累積値を前記位置情報として保持し、前記累積値から、前記第2の検知信号を受信する度に1を減算し、かつ、前記累積値を前記ずれ量に応じて補正し、補正された前記累積値が所定の停止閾値以下となったときに、前記駆動信号生成部へ前記モータにブレーキを掛けることを指示し、
前記駆動信号生成部は、前記モータにブレーキを掛けることを指示されると、前記モータが回転を停止するまで前記モータを停止させる前記駆動信号を前記駆動回路へ出力する、請求項1または2に記載のモータ制御装置。
further comprising a drive signal generator that outputs a drive signal for controlling rotation of the motor to a drive circuit that drives the motor;
The correction unit holds, as the position information, a cumulative value of the second detection signal corresponding to a remaining rotation amount from the current rotational position of the rotating body to a target stop position of the rotating body, and from the cumulative value, , subtracting 1 each time the second detection signal is received, correcting the cumulative value according to the deviation amount, and when the corrected cumulative value becomes equal to or less than a predetermined stop threshold, instructing the drive signal generator to brake the motor;
3. The apparatus according to claim 1, wherein when instructed to brake the motor, the drive signal generator outputs to the drive circuit the drive signal for stopping the motor until the motor stops rotating. A motor controller as described.
回胴遊技機であって、遊技機本体と、
前記遊技機本体内において回転中心の回りに回転可能に配置され、かつ、前記回転中心の円周方向に沿って複数の図柄が表示されるとともに、前記円周方向に沿って所定の長さを有する部材を有する回転リールと、
前記部材が前記円周方向における所定の検出位置にいるか否かで異なる値を持つ第1の検知信号を出力する原点センサと、
前記回転リールを駆動するモータと、
前記モータを駆動するモータ駆動回路と、
前記モータが所定角度だけ回転する度に第2の検知信号を出力する回転角センサと、
前記モータを制御するモータ制御装置と、
を有し、
前記モータ制御装置は、
前記原点センサからの前記第1の検知信号の値が変化した第1の時点から、前記第1の検知信号の値が再度変化する第2の時点までの間に、前記第2の検知信号を受信した数と、前記第1の時点または前記第2の時点における、前記第1の検知信号の値の変化の態様とに基づいて、前記第1の時点または前記第2の時点において前記部材の前記円周方向における二つの端部のうちの前記所定の検出位置に達した端部を基準点として検出する基準点検出部と、
前記基準点が検出されてから、次に前記基準点が検出されるまでの期間に受信した前記第2の検知信号の数と、前記期間における、前記回転リールの回転量に対応する前記モータの回転量に相当する前記第2の検知信号の基準数との差をずれ量として算出するずれ算出部と、
前記ずれ量が算出される度に、前記回転リールの回転位置を表す位置情報を前記ずれ量に応じて補正する補正部と、
を有する回胴遊技機。
A reel game machine, comprising: a game machine main body;
rotatably arranged around the center of rotation within the main body of the gaming machine, a plurality of symbols are displayed along the circumference of the center of rotation, and a predetermined length along the circumference is displayed; a rotating reel having a member having
an origin sensor that outputs a first detection signal having a different value depending on whether the member is at a predetermined detection position in the circumferential direction;
a motor that drives the rotating reel;
a motor drive circuit that drives the motor;
a rotation angle sensor that outputs a second detection signal each time the motor rotates by a predetermined angle;
a motor control device that controls the motor;
has
The motor control device
During a period from a first point in time when the value of the first detection signal from the origin sensor changes to a second point in time when the value of the first detection signal changes again, the second detection signal is based on the number received and the manner of change in the value of the first sensed signal at the first time point or the second time point, a reference point detection unit that detects, as a reference point, one of the two ends in the circumferential direction that has reached the predetermined detection position;
The number of the second detection signals received during the period from the detection of the reference point to the next detection of the reference point, and the rotation of the motor corresponding to the amount of rotation of the reel during the period. a shift calculation unit that calculates a shift amount as a difference from a reference number of the second detection signals corresponding to the amount of rotation;
a correction unit that corrects the position information representing the rotational position of the rotating reel according to the deviation amount each time the deviation amount is calculated;
Pachislot game machine.
JP2019092085A 2019-05-15 2019-05-15 Motor control device and reel game machine Active JP7226080B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019092085A JP7226080B2 (en) 2019-05-15 2019-05-15 Motor control device and reel game machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019092085A JP7226080B2 (en) 2019-05-15 2019-05-15 Motor control device and reel game machine

Publications (2)

Publication Number Publication Date
JP2020188600A JP2020188600A (en) 2020-11-19
JP7226080B2 true JP7226080B2 (en) 2023-02-21

Family

ID=73223328

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019092085A Active JP7226080B2 (en) 2019-05-15 2019-05-15 Motor control device and reel game machine

Country Status (1)

Country Link
JP (1) JP7226080B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010246775A (en) 2009-04-16 2010-11-04 Olympia:Kk Game machine
JP2018157632A (en) 2017-03-15 2018-10-04 オムロン株式会社 Game machine

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3341519B2 (en) * 1995-03-03 2002-11-05 株式会社明電舎 Synchronous control device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010246775A (en) 2009-04-16 2010-11-04 Olympia:Kk Game machine
JP2018157632A (en) 2017-03-15 2018-10-04 オムロン株式会社 Game machine

Also Published As

Publication number Publication date
JP2020188600A (en) 2020-11-19

Similar Documents

Publication Publication Date Title
JP6863255B2 (en) Motor control device and spinning machine
JP5889043B2 (en) Game machine
US6956351B2 (en) Driving device for stepping motor
JP7226080B2 (en) Motor control device and reel game machine
JP7215319B2 (en) Motor control device and reel game machine
JP7272103B2 (en) Motor control device and reel game machine
KR102368821B1 (en) Position detecting device according to power mode and motor device using the same
JP6076853B2 (en) Game machine
JP6047774B2 (en) Game machine
JP2023110647A (en) Motor control device and slot game machine
US10008964B2 (en) Motor control device and game machine
JPH0548141B2 (en)
JP6863256B2 (en) Motor control device and spinning machine
JP7238582B2 (en) Motor control device and reel game machine
JP2023113453A (en) Motor control device and rotary drum game machine
JP2022080011A (en) Motor control device
JP6683158B2 (en) Amusement machine
JP5659421B2 (en) Game machine
JP6636794B2 (en) Stepping motor device
US9991831B2 (en) DC motor control device and game machine
JP2005013532A (en) Method and device for inspecting game machine, and game machine
KR200324476Y1 (en) encoder for motor
KR101077756B1 (en) Apparatus for detecting error using Z phase pulse signal
KR100259370B1 (en) Optical shaft encoder
JP2011143291A (en) Game device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220307

TRDD Decision of grant or rejection written
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20221228

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20230110

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230123

R150 Certificate of patent or registration of utility model

Ref document number: 7226080

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150