JP6197477B2 - Rotating structure - Google Patents

Rotating structure Download PDF

Info

Publication number
JP6197477B2
JP6197477B2 JP2013172105A JP2013172105A JP6197477B2 JP 6197477 B2 JP6197477 B2 JP 6197477B2 JP 2013172105 A JP2013172105 A JP 2013172105A JP 2013172105 A JP2013172105 A JP 2013172105A JP 6197477 B2 JP6197477 B2 JP 6197477B2
Authority
JP
Japan
Prior art keywords
control circuit
data
control command
control
received
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
JP2013172105A
Other languages
Japanese (ja)
Other versions
JP2015039528A (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 JP2013172105A priority Critical patent/JP6197477B2/en
Publication of JP2015039528A publication Critical patent/JP2015039528A/en
Application granted granted Critical
Publication of JP6197477B2 publication Critical patent/JP6197477B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Pinball Game Machines (AREA)

Description

本発明は、回転構造体に関する。   The present invention relates to a rotating structure.

特許文献1には、サブ制御部と回転側装飾駆動回路とをスリップリングを介して電気的に接続し、サブ制御部から回転側装飾駆動回路にスリップリングを介して制御信号を送信することが記載されている。
特許文献1 特開2011−206166号公報
In Patent Document 1, the sub-control unit and the rotation-side decoration drive circuit are electrically connected via a slip ring, and a control signal is transmitted from the sub-control unit to the rotation-side decoration drive circuit via the slip ring. Have been described.
Japanese Patent Application Laid-Open No. 2011-206166

上記のようなスリップリングを介した制御信号の伝送が正常に行われずに、制御信号に基づく制御が正常に行われない可能性がある。   There is a possibility that control based on the control signal is not normally performed because the control signal is not normally transmitted through the slip ring as described above.

本発明の一態様に係る回転構造体は、回転体と、回転体の側面に設けられたスリップリングと、回転体に支持され、第1の動作をする第1動作体と、回転体に支持され、回転体の外部に設けられた外部制御回路が送信した制御信号をスリップリングを介して受信し、受信した制御信号の中に同一の第1制御コマンドが複数あれば、第1制御コマンドに従って第1動作体を制御する動作制御回路とを備える。   A rotating structure according to an aspect of the present invention includes a rotating body, a slip ring provided on a side surface of the rotating body, a first operating body that is supported by the rotating body and performs a first operation, and is supported by the rotating body. If the control signal transmitted from the external control circuit provided outside the rotating body is received via the slip ring and there are a plurality of identical first control commands in the received control signal, the control signal is transmitted according to the first control command. An operation control circuit for controlling the first operating body.

上記回転構造体は、回転体に支持され、第2の動作をする第2動作体をさらに備え、動作制御回路は、受信した制御信号の中に第2制御コマンドが1つあれば、第2制御コマンドに従って第2動作体を制御してもよい。   The rotating structure further includes a second operating body that is supported by the rotating body and performs a second operation, and the operation control circuit includes a second control command if there is one second control command in the received control signal. The second operating body may be controlled according to the control command.

上記回転構造体において、動作制御回路は、予め定められた数の制御信号のそれぞれに含まれる第2制御コマンドを組み合わせて1つの制御コマンドを生成し、1つの制御コマンドに従って第2動作体を制御してもよい。   In the rotating structure, the operation control circuit generates one control command by combining the second control commands included in each of the predetermined number of control signals, and controls the second operation body according to the one control command. May be.

上記回転構造体において、第2動作体は、発光体であり、第2制御コマンドは、発光体による発光を制御する制御コマンドでよい。   In the rotating structure, the second operation body may be a light emitter, and the second control command may be a control command for controlling light emission by the light emitter.

上記回転構造体において、第1動作体は、可動体を駆動する駆動体であり、第1制御コマンドは、駆動体による駆動を制御する制御コマンドでよい。   In the rotating structure, the first operating body may be a driving body that drives the movable body, and the first control command may be a control command that controls driving by the driving body.

上記回転構造体において、動作制御回路は、位置センサにより検出された可動体の位置を示す同一の位置データを複数含むデータ信号を、スリップリングを介して外部制御回路に送信してもよい。   In the rotating structure, the operation control circuit may transmit a data signal including a plurality of the same position data indicating the position of the movable body detected by the position sensor to the external control circuit via the slip ring.

上記回転構造体において、動作制御回路は、予め定められた周期で制御信号を受信してもよい。   In the rotating structure, the operation control circuit may receive the control signal at a predetermined cycle.

なお、上記の発明の概要は、本発明の必要な特徴の全てを列挙したものではない。また、これらの特徴群のサブコンビネーションもまた、発明となりうる。   It should be noted that the above summary of the invention does not enumerate all the necessary features of the present invention. In addition, a sub-combination of these feature groups can also be an invention.

本実施形態に係る遊技機について説明するための図である。It is a figure for demonstrating the game machine which concerns on this embodiment. 回転体の外側の側面の一例を示す図である。It is a figure which shows an example of the outer side surface of a rotary body. 本実施形態に係る遊技機の機能ブロックの一例を示す図である。It is a figure which shows an example of the functional block of the game machine which concerns on this embodiment. 外部制御回路から動作制御回路に送信される制御信号の一例を示す図である。It is a figure which shows an example of the control signal transmitted to an operation control circuit from an external control circuit. 動作制御回路から外部制御回路に送信されるデータ信号の一例を示す図である。It is a figure which shows an example of the data signal transmitted to an external control circuit from an operation control circuit. 外部制御回路が制御信号を送信する手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure in which an external control circuit transmits a control signal. 外部制御回路が制御信号を送信する場合に用いる送信バッファに格納される内容について説明するための図である。It is a figure for demonstrating the content stored in the transmission buffer used when an external control circuit transmits a control signal. 動作制御回路が制御信号を受信した場合の処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process sequence when an operation control circuit receives a control signal. 動作制御部がデータ信号を送信する手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure in which an operation control part transmits a data signal. 動作制御回路がデータ信号を送信する場合に用いる送信バッファに格納される内容について説明するための図である。It is a figure for demonstrating the content stored in the transmission buffer used when an operation control circuit transmits a data signal. 外部制御回路がデータ信号を受信した場合の処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process sequence when an external control circuit receives a data signal.

以下、発明の実施の形態を通じて本発明を説明するが、以下の実施形態は特許請求の範囲にかかる発明を限定するものではない。また、実施形態の中で説明されている特徴の組み合わせの全てが発明の解決手段に必須であるとは限らない。   Hereinafter, the present invention will be described through embodiments of the invention, but the following embodiments do not limit the invention according to the claims. In addition, not all the combinations of features described in the embodiments are essential for the solving means of the invention.

図1は、本実施形態に係る遊技機10について説明するための図である。遊技機10は、主制御部20、外部制御回路30、モータドライバ42、モータ40、ブラシ50、および回転構造体100を備える。回転構造体100は、リンク形状の構造体でよい。回転構造体100は、モータ40からの動力により、回転する。モータ40は、ステッピングモータでよい。   FIG. 1 is a diagram for explaining a gaming machine 10 according to the present embodiment. The gaming machine 10 includes a main control unit 20, an external control circuit 30, a motor driver 42, a motor 40, a brush 50, and a rotating structure 100. The rotating structure 100 may be a link-shaped structure. The rotating structure 100 is rotated by the power from the motor 40. The motor 40 may be a stepping motor.

回転構造体100は、回転体102、モータ110、可動体112、LED120、および動作制御回路130を有する。回転構造体100は、遊技機10の本体に回転可能に支持されている。回転体102は、モータ40の動力により回転体102の中心軸を中心として回転する。回転体102の外側の側面には、ギアが形成されていてもよい。モータ40からの動力が、モータ40の回転軸に設けられたギアを介して回転体102のギアに伝達され、回転体102が回転する。   The rotating structure 100 includes a rotating body 102, a motor 110, a movable body 112, an LED 120, and an operation control circuit 130. The rotating structure 100 is rotatably supported by the main body of the gaming machine 10. The rotating body 102 rotates about the central axis of the rotating body 102 by the power of the motor 40. A gear may be formed on the outer side surface of the rotating body 102. The power from the motor 40 is transmitted to the gear of the rotating body 102 through a gear provided on the rotating shaft of the motor 40, and the rotating body 102 rotates.

モータ110、可動体112、LED120、および動作制御回路130は、回転体102に支持され、回転体102とともに回転する。動作制御回路130は、モータ110の回転、およびLED120の発光を制御する。モータ110は、第1の動作をする第1動作体の一例である。モータ110は、駆動体の一例であり、ステッピングモータでよい。LED120は、発光体の一例であり、第2の動作をする第2動作体の一例である。   The motor 110, the movable body 112, the LED 120, and the operation control circuit 130 are supported by the rotating body 102 and rotate together with the rotating body 102. The operation control circuit 130 controls the rotation of the motor 110 and the light emission of the LED 120. The motor 110 is an example of a first operating body that performs a first operation. The motor 110 is an example of a driving body and may be a stepping motor. The LED 120 is an example of a light emitter, and is an example of a second operation body that performs a second operation.

可動体112は、モータ110からの動力により、回転体102に対して移動する。可動体112は、例えば、回転体102の回転軸に向かう方向に沿って移動する。可動体112の回転体102に対する動作は、上記には限定されず、可動体112は、回転体102に対して他の方向に移動、または回転体102に対して回転してもよい。LED120は、可動体112に設けられ、発光する。   The movable body 112 moves with respect to the rotating body 102 by the power from the motor 110. The movable body 112 moves, for example, along the direction toward the rotation axis of the rotating body 102. The operation of the movable body 112 with respect to the rotating body 102 is not limited to the above, and the movable body 112 may move in another direction with respect to the rotating body 102 or rotate with respect to the rotating body 102. The LED 120 is provided on the movable body 112 and emits light.

主制御部20は、遊技機10の遊技状態に応じてモータドライバ42にモータ40の回転を制御するための制御信号を送信する。モータドライバ42は、制御信号に基づいてモータ40の回転を制御する。   The main control unit 20 transmits a control signal for controlling the rotation of the motor 40 to the motor driver 42 in accordance with the gaming state of the gaming machine 10. The motor driver 42 controls the rotation of the motor 40 based on the control signal.

主制御部20は、遊技機10の遊技状態に応じてモータ110の回転およびLEDの発光を制御させるべく、制御信号を動作制御回路130に向けて送信することを外部制御回路30に指示する。外部制御回路30は、ブラシ50を介して動作制御回路130に制御信号を送信する。遊技機10は、回転体102の回転、可動体112の移動、およびLED120の発光により、遊技機10の遊技状態に応じた演出を実行する。   The main control unit 20 instructs the external control circuit 30 to transmit a control signal to the operation control circuit 130 in order to control the rotation of the motor 110 and the light emission of the LED according to the gaming state of the gaming machine 10. The external control circuit 30 transmits a control signal to the operation control circuit 130 via the brush 50. The gaming machine 10 performs an effect corresponding to the gaming state of the gaming machine 10 by the rotation of the rotating body 102, the movement of the movable body 112, and the light emission of the LED 120.

図2は、回転体102の外側の側面の一例を示す図である。回転体102の外側の側面には、スリップリング104が設けられている。スリップリング104には、ブラシ50が押し当てられている。回転体102の外側の側面には、例えば、3本のスリップリング104が設けられている。3本のスリップリングのうち、1本のスリップリングは、外部制御回路30と動作制御回路130との間でやり取りされる制御信号などの信号の伝送路である。残りの2本のスリップリングは、回転構造体100に設けられたモータ110、LED120、および動作制御回路130に電力を供給するための給電線およびグランド線である。   FIG. 2 is a diagram illustrating an example of the outer side surface of the rotating body 102. A slip ring 104 is provided on the outer side surface of the rotating body 102. The brush 50 is pressed against the slip ring 104. For example, three slip rings 104 are provided on the outer side surface of the rotating body 102. Of the three slip rings, one slip ring is a transmission path of a signal such as a control signal exchanged between the external control circuit 30 and the operation control circuit 130. The remaining two slip rings are a power supply line and a ground line for supplying power to the motor 110, the LED 120, and the operation control circuit 130 provided in the rotating structure 100.

なお、本実施形態では、1本のスリップリング104に対して2本のブラシ50が押し当てられ、1本のスリップリング104に対して2本のブラシ50が電気的に接続されている。しかし、1本のスリップリング104に電気的に接続されるブラシ50は、少なくとも1本でよい。   In the present embodiment, two brushes 50 are pressed against one slip ring 104, and the two brushes 50 are electrically connected to one slip ring 104. However, at least one brush 50 may be electrically connected to one slip ring 104.

上記のように構成された回転構造体100において、スリップリング104とブラシ50との間の接点不良により、スリップリング104を介して外部制御回路30と動作制御回路130との間で正常に信号が伝送できない可能性がある。例えば、スリップリング104とブラシ50との接点部分に、塵または埃などが付着することで、ブラシ50がチャタリングを生じさせる可能性がある。また、回転体102が回転している間に、ブラシ50がスリップリング104の溶接部分などの凹凸部分を通過することにより、ブラシ50がスリップリング104に対して振動し、ブラシ50がチャタリングを生じさせる可能性がある。このようなチャタリングの発生により、スリップリング104を介した外部制御回路30と動作制御回路130との間の信号伝送が正常に行われない可能性がある。   In the rotating structure 100 configured as described above, a signal is normally transmitted between the external control circuit 30 and the operation control circuit 130 via the slip ring 104 due to a contact failure between the slip ring 104 and the brush 50. Transmission may not be possible. For example, dust or dust may adhere to the contact portion between the slip ring 104 and the brush 50, and the brush 50 may cause chattering. In addition, while the rotating body 102 is rotating, the brush 50 passes through an uneven portion such as a welded portion of the slip ring 104, so that the brush 50 vibrates with respect to the slip ring 104 and the brush 50 causes chattering. There is a possibility to make it. Due to the occurrence of such chattering, signal transmission between the external control circuit 30 and the operation control circuit 130 via the slip ring 104 may not be performed normally.

そこで、本実施形態によれば、スリップリング104とブラシ50との間の接点不良により発生するスリップリング104を介した信号伝送の異常による悪影響を抑制できる回転構造体100を提供する。   Therefore, according to the present embodiment, the rotating structure 100 is provided that can suppress an adverse effect due to abnormal signal transmission through the slip ring 104 caused by a contact failure between the slip ring 104 and the brush 50.

図3は、本実施形態に係る遊技機10の機能ブロックの一例を示す。主制御部20、外部制御回路30、モータドライバ42、およびモータ40は、遊技機10の本体に設けられている。回転構造体100は、遊技機10の本体に回転可能に支持されている。   FIG. 3 shows an example of functional blocks of the gaming machine 10 according to the present embodiment. The main control unit 20, the external control circuit 30, the motor driver 42, and the motor 40 are provided in the main body of the gaming machine 10. The rotating structure 100 is rotatably supported by the main body of the gaming machine 10.

回転構造体100は、回転体102、スリップリング104、モータ110、可動体112、位置センサ114、モータドライバ116、LED120、LEDドライバ122、および動作制御回路130を有する。   The rotating structure 100 includes a rotating body 102, a slip ring 104, a motor 110, a movable body 112, a position sensor 114, a motor driver 116, an LED 120, an LED driver 122, and an operation control circuit 130.

外部制御回路30および動作制御回路130は、通信モジュールを含み、通信モジュール同士が、スリップリング104を介して信号をやりとりする。通信モジュールは、スリップリング104を介して双方向通信をする。モータドライバ116は、動作制御回路130からの第1制御コマンドに応じて第1パルス信号を生成し、モータ110に出力する。第1制御コマンドは、モータ110による駆動を制御する制御コマンドである。モータ110は、第1パルス信号に応じて回転する。可動体112は、モータ110が回転することにより発生する動力により動作する。可動体112は、回転体102に対して移動する。   The external control circuit 30 and the operation control circuit 130 include communication modules, and the communication modules exchange signals via the slip ring 104. The communication module performs bidirectional communication via the slip ring 104. The motor driver 116 generates a first pulse signal in response to the first control command from the operation control circuit 130 and outputs it to the motor 110. The first control command is a control command for controlling driving by the motor 110. The motor 110 rotates according to the first pulse signal. The movable body 112 is operated by power generated by the rotation of the motor 110. The movable body 112 moves relative to the rotating body 102.

LEDドライバ122は、動作制御回路130からの第2制御コマンドに応じて第2パルス信号を生成し、LED120に出力する。第2制御コマンドは、LED120による発光を制御する制御コマンドである。LED120は、第2パルス信号に応じて発光する。   The LED driver 122 generates a second pulse signal in response to the second control command from the operation control circuit 130 and outputs the second pulse signal to the LED 120. The second control command is a control command for controlling light emission by the LED 120. The LED 120 emits light according to the second pulse signal.

位置センサ114は、可動体112の位置を検出する。位置センサ114は、例えば、可動体112が予め定められた位置に移動した場合に、可動体112が予め定められた位置に移動したことを示す検知信号をモータドライバ116に出力する。モータドライバ116は、検知信号に応じた位置データを動作制御回路130に出力する。動作制御回路130は、位置データを示すデータ信号をスリップリング104を介して外部制御回路30に送信する。外部制御回路30は、データ信号を主制御部20に転送する。   The position sensor 114 detects the position of the movable body 112. For example, when the movable body 112 moves to a predetermined position, the position sensor 114 outputs a detection signal indicating that the movable body 112 has moved to a predetermined position to the motor driver 116. The motor driver 116 outputs position data corresponding to the detection signal to the operation control circuit 130. The operation control circuit 130 transmits a data signal indicating position data to the external control circuit 30 via the slip ring 104. The external control circuit 30 transfers the data signal to the main control unit 20.

主制御部20は、転送されたデータ信号に示される可動体112の位置に基づいてモータ110の回転を制御させるべく、制御信号を動作制御回路130に向けて送信することを外部制御回路30に指示してもよい。   The main control unit 20 transmits to the external control circuit 30 that a control signal is transmitted to the operation control circuit 130 in order to control the rotation of the motor 110 based on the position of the movable body 112 indicated by the transferred data signal. You may instruct.

ここで、動作制御回路130は、外部制御回路30が予め定められた周期で送信した制御信号をスリップリング104を介して予め定められた周期で受信する。そして、動作制御回路130は、受信した制御信号の中に同一の第1制御コマンドが複数あれば、第1制御コマンドに従ってLEDドライバ122を介してモータ110を制御する。動作制御回路130は、モータ110をPPM制御可能な周期で制御信号を受信する。動作制御回路130は、例えば、500μsecの周期で、制御信号を受信する。   Here, the operation control circuit 130 receives a control signal transmitted by the external control circuit 30 at a predetermined cycle via the slip ring 104 at a predetermined cycle. If there are a plurality of identical first control commands in the received control signal, the operation control circuit 130 controls the motor 110 via the LED driver 122 according to the first control command. The operation control circuit 130 receives a control signal at a cycle in which the motor 110 can be PPM controlled. The operation control circuit 130 receives the control signal at a cycle of 500 μsec, for example.

また、動作制御回路130は、受信した制御信号の中に第2制御コマンドが1つあれば、第2制御コマンドに従ってLEDドライバ122を介してLED120を制御してもよい。動作制御回路130は、予め定められた数の制御信号のそれぞれに含まれる第2制御コマンドを組み合わせて1つの制御コマンドを生成し、1つの制御コマンドに従ってLEDドライバ122を介して第2動作体を制御してもよい。   Further, if there is one second control command in the received control signal, the operation control circuit 130 may control the LED 120 via the LED driver 122 according to the second control command. The operation control circuit 130 generates one control command by combining the second control commands included in each of the predetermined number of control signals, and the second operation body is transmitted via the LED driver 122 according to the one control command. You may control.

動作制御回路130は、外部制御回路30に送信すべき位置データを含むデータ信号があれば、外部制御回路30から制御信号を受信していない期間に、データ信号を外部制御回路30に送信してもよい。動作制御回路130は、一周期内において、制御信号の受信とデータ信号の送信を行ってよい。   If there is a data signal including position data to be transmitted to the external control circuit 30, the operation control circuit 130 transmits the data signal to the external control circuit 30 during a period when the control signal is not received from the external control circuit 30. Also good. The operation control circuit 130 may receive the control signal and transmit the data signal within one cycle.

外部制御回路30は、LED120を制御する1つの制御コマンドを複数に分割することにより複数の第2制御コマンドを生成し、予め定められた数の制御信号を用いて複数の第2制御コマンドをスリップリング104を介して動作制御回路130に送信してもよい。動作制御回路130は、例えば、20msecの周期で制御コマンドを生成し、LEDドライバ122を介してLED120による発光を制御する。よって、外部制御回路30は、LED120を制御する1つの制御コマンドを、最大で40個に分割して、分割された制御コマンドを40個の制御信号に分けて動作制御回路130に送信してもよい。動作制御回路130は、40個分の制御信号の中からそれぞれ第2制御コマンドを抽出し、抽出されたそれぞれの第2制御コマンドを組み合わせてLED120を制御する1つの制御コマンドを生成してもよい。   The external control circuit 30 generates a plurality of second control commands by dividing one control command for controlling the LED 120 into a plurality of pieces, and slips the plurality of second control commands using a predetermined number of control signals. It may be transmitted to the operation control circuit 130 via the ring 104. For example, the operation control circuit 130 generates a control command at a cycle of 20 msec and controls light emission by the LED 120 via the LED driver 122. Therefore, the external control circuit 30 may divide one control command for controlling the LED 120 into a maximum of 40, and divide the divided control command into 40 control signals and transmit them to the operation control circuit 130. Good. The operation control circuit 130 may extract a second control command from each of 40 control signals, and may generate one control command for controlling the LED 120 by combining the extracted second control commands. .

また、外部制御回路30は、複数の第1制御コマンドのうち一の第1制御コマンドと他の一の第1制御コマンドとの間に、第2制御コマンドが送信されるように、制御信号を生成し、生成された制御信号をスリップリング104を介して動作制御回路130に送信してもよい。   In addition, the external control circuit 30 transmits a control signal so that the second control command is transmitted between one first control command and the other first control command among the plurality of first control commands. The generated control signal may be transmitted to the operation control circuit 130 via the slip ring 104.

さらに、外部制御回路30は、データ信号をスリップリング104を介して受信し、受信したデータ信号の中に同一の位置データが複数あれば、位置データに従った同一の新たな第1制御コマンドを複数含む新たな制御信号を主制御部20からの指示に従って生成し、新たな制御信号を送信してもよい。   Further, the external control circuit 30 receives the data signal via the slip ring 104, and if there are a plurality of the same position data in the received data signal, the external control circuit 30 sends the same new first control command according to the position data. A plurality of new control signals may be generated according to an instruction from the main control unit 20, and the new control signals may be transmitted.

図4は、外部制御回路30から動作制御回路130に送信される制御信号200の一例を示す。   FIG. 4 shows an example of the control signal 200 transmitted from the external control circuit 30 to the operation control circuit 130.

制御信号200は、同一の複数の第1制御コマンド210と、第2制御コマンド220とを含む。制御信号200は、複数の第2制御コマンド220を含んでもよい。第1制御コマンド210は、スタートコード(モータ)212、データ(1)214、データ(2)216、およびエンドコード218を含む。スタートコード(モータ)212、データ(1)214、データ(2)216、およびエンドコード218は、例えば、それぞれ1バイトのデータである。スタートコード(モータ)212は、モータ110の制御コマンドの開始を示す。データ(1)214およびデータ(2)216は、モータ110を制御するための制御コマンドの内容を示す。エンドコード218は、モータ110の制御コマンドの終了を示す。   The control signal 200 includes a plurality of identical first control commands 210 and second control commands 220. The control signal 200 may include a plurality of second control commands 220. The first control command 210 includes a start code (motor) 212, data (1) 214, data (2) 216, and an end code 218. The start code (motor) 212, data (1) 214, data (2) 216, and end code 218 are each 1-byte data, for example. A start code (motor) 212 indicates the start of a control command for the motor 110. Data (1) 214 and data (2) 216 indicate the contents of a control command for controlling the motor 110. The end code 218 indicates the end of the control command for the motor 110.

第2制御コマンド220は、スタートコード(LED)221、有効データ数222、データ(1)223、データ(2)224、データ(3)225、データ(4)226、データ(5)227、データ(6)228、およびデータ(7)229を含む。スタートコード(LED)221、有効データ数222、データ(1)223、データ(2)224、データ(3)225、データ(4)226、データ(5)227、データ(6)228、およびデータ(7)229は、例えば、それぞれ1バイトのデータである。   The second control command 220 includes a start code (LED) 221, valid data number 222, data (1) 223, data (2) 224, data (3) 225, data (4) 226, data (5) 227, data (6) 228 and data (7) 229 are included. Start code (LED) 221, valid data number 222, data (1) 223, data (2) 224, data (3) 225, data (4) 226, data (5) 227, data (6) 228, and data (7) 229 is, for example, 1-byte data.

スタートコード(LED)221は、LED120の制御コマンドの開始を示す。有効データ数222は、第2制御コマンド220に含まる制御コマンドの数を示す。データ(1)223、データ(2)224、データ(3)225、データ(4)226、データ(5)227、データ(6)228、およびデータ(7)229は、それぞれLED120の制御コマンドを示す。   A start code (LED) 221 indicates the start of a control command for the LED 120. The valid data number 222 indicates the number of control commands included in the second control command 220. Data (1) 223, data (2) 224, data (3) 225, data (4) 226, data (5) 227, data (6) 228, and data (7) 229 are LED 120 control commands, respectively. Show.

動作制御回路130は、予め定められた数の制御信号のそれぞれに含まれる第2制御コマンド内のデータ(1)223、データ(2)224、データ(3)225、データ(4)226、データ(5)227、データ(6)228、およびデータ(7)229を組み合わせて、LED120を制御するための1つの制御コマンドを生成する。   The operation control circuit 130 includes data (1) 223, data (2) 224, data (3) 225, data (4) 226, data in the second control command included in each of a predetermined number of control signals. (5) 227, data (6) 228, and data (7) 229 are combined to generate one control command for controlling the LED 120.

制御信号200は、第1制御コマンド210のうちの1つの第1制御コマンド210と、残りの複数の第1制御コマンド210との間に第2制御コマンド220を含む。これにより、外部制御回路30は、1つの第1制御コマンド210を送信したことに続いて、1つの第2制御コマンド220を送信した後、残りの複数の第1制御コマンド210を送信する。よって、動作制御回路130は、1つの第1制御コマンド210を受信してから、ある程度の時間を経過後に、残りの複数の第1制御コマンド210を受信できる。   The control signal 200 includes a second control command 220 between one first control command 210 of the first control commands 210 and the remaining plurality of first control commands 210. Thereby, the external control circuit 30 transmits one second control command 220 after transmitting one first control command 210, and then transmits the remaining plurality of first control commands 210. Therefore, the operation control circuit 130 can receive the remaining first control commands 210 after a certain amount of time has elapsed after receiving one first control command 210.

上記の通り、ブラシ50とスリップリング104との間の接点不良は、スリップリング104の溶接部分などの特定の一部分である場合がある。したがって、動作制御回路130は、複数の第1制御コマンド210を受信するタイミングをずらすことで、それぞれの第1制御コマンド210を受信できる確率が向上する。よって、動作制御回路130は、接点不良がある場合でも、1つの制御信号の中から同一の第1制御コマンドを複数受信できる確率が向上する。動作制御回路130が、外部制御回路30から送信された制御信号に含まれる第1制御コマンドに従って、LEDドライバ122を介してモータ110を正常に制御できる確率が向上する。   As described above, the contact failure between the brush 50 and the slip ring 104 may be a specific part such as a welded portion of the slip ring 104. Therefore, the probability that the operation control circuit 130 can receive each of the first control commands 210 is improved by shifting the timing of receiving the plurality of first control commands 210. Therefore, the probability that the operation control circuit 130 can receive a plurality of the same first control commands from one control signal is improved even when there is a contact failure. The probability that the operation control circuit 130 can normally control the motor 110 via the LED driver 122 according to the first control command included in the control signal transmitted from the external control circuit 30 is improved.

なお、制御信号には一つの第2制御コマンド220しか含まれないので、動作制御回路130が第2制御コマンド220を正常に受信できる確率は、第1制御コマンド210を正常に受信できる確率よりも低い。第2制御コマンド220を正常に受信できなかった場合、LED120の発光が予定通りに実行されず、演出効果が低減する可能性はある。しかし、LED120の発光が予定通りに実行されなくても、遊技機10に物理的な異常が発生する可能性は少ない。一方、モータ110の異常制御に伴い可動体112が異常制御された場合、例えば、回転体102が回転できない位置に可動体112が存在するときに、回転体102の回転制御が行われるなどの異常制御により、遊技機10に物理的な異常が発生する可能性がある。そこで、第2制御コマンド220よりも第1制御コマンド210を正常に受信できる確率を向上させることで、接点不良に伴い発生する物理的な異常の発生を抑制できる。   Since the control signal includes only one second control command 220, the probability that the operation control circuit 130 can normally receive the second control command 220 is higher than the probability that the first control command 210 can be normally received. Low. If the second control command 220 cannot be received normally, the light emission of the LED 120 is not executed as scheduled, and there is a possibility that the presentation effect is reduced. However, even if the LED 120 does not emit light as scheduled, there is little possibility that a physical abnormality will occur in the gaming machine 10. On the other hand, when the movable body 112 is abnormally controlled along with the abnormal control of the motor 110, for example, when the movable body 112 is present at a position where the rotary body 102 cannot rotate, the rotational control of the rotary body 102 is performed. The control may cause a physical abnormality in the gaming machine 10. Therefore, by improving the probability that the first control command 210 can be normally received rather than the second control command 220, it is possible to suppress the occurrence of a physical abnormality that occurs due to a contact failure.

図5は、動作制御回路130が外部制御回路30に送信するデータ信号300の一例を示す。データ信号300は、同一の複数の位置データ310を含む。位置データ310は、スタートコード(センサ)312、データ(1)314、およびエンドコード316を含む。スタートコード(センサ)312、データ(1)314、およびエンドコード316は、例えば、それぞれ1バイトのデータである。スタートコード(センサ)312は、位置センサ114により検知された可動体112の位置を示す位置データの開始を示す。データ(1)314は、位置データの内容を示す。エンドコード316は、位置データの終了を示す。   FIG. 5 shows an example of the data signal 300 that the operation control circuit 130 transmits to the external control circuit 30. The data signal 300 includes a plurality of the same position data 310. The position data 310 includes a start code (sensor) 312, data (1) 314, and an end code 316. The start code (sensor) 312, the data (1) 314, and the end code 316 are each 1-byte data, for example. The start code (sensor) 312 indicates the start of position data indicating the position of the movable body 112 detected by the position sensor 114. Data (1) 314 indicates the contents of the position data. The end code 316 indicates the end of position data.

外部制御回路30は、動作制御回路130からスリップリング104を介して受信したデータ信号300の中に同一の位置データ310が複数あれば、位置データ310に従った同一の新たな第1制御コマンドを複数含む新たな制御信号を生成し、新たな制御信号を動作制御回路130にスリップリング104を介して送信する。これにより、接点不良が発生していても、外部制御回路30が、位置データ310を正常に受信できる確率が向上する。2以上の位置データが一致することを確認できた場合のみ、外部制御回路30は、受信した位置データを利用する。したがって、エラーを含む位置データが利用されることにより、回転構造体100が正常に制御されなくなることを防止できる。   If there are a plurality of the same position data 310 in the data signal 300 received from the operation control circuit 130 via the slip ring 104, the external control circuit 30 sends the same new first control command according to the position data 310. A plurality of new control signals are generated, and the new control signals are transmitted to the operation control circuit 130 via the slip ring 104. Thereby, even if the contact failure occurs, the probability that the external control circuit 30 can receive the position data 310 normally is improved. The external control circuit 30 uses the received position data only when it is confirmed that two or more position data match. Therefore, it is possible to prevent the rotating structure 100 from being normally controlled by using position data including an error.

図6は、外部制御回路30が制御信号を送信する手順の一例を示すフローチャートである。図7は、外部制御回路30が制御信号を送信する場合に用いる送信バッファに格納される内容について説明するための図である。   FIG. 6 is a flowchart illustrating an example of a procedure in which the external control circuit 30 transmits a control signal. FIG. 7 is a diagram for explaining the contents stored in the transmission buffer used when the external control circuit 30 transmits a control signal.

外部制御回路30は、予め定められた周期、例えば、500μsec毎に、主制御部20からモータ110を制御するための第1制御コマンドを生成するためのモータ制御データのラッチ読み出し指示を受信する(S100)。外部制御回路30は、LED120による発光を制御するための第2制御コマンドを生成するためのLEDデータを主制御部20からすでに受信済みか否かを判定する(S102)。   The external control circuit 30 receives a latch read instruction of motor control data for generating a first control command for controlling the motor 110 from the main control unit 20 at a predetermined cycle, for example, every 500 μsec ( S100). The external control circuit 30 determines whether or not the LED data for generating the second control command for controlling the light emission by the LED 120 has already been received from the main control unit 20 (S102).

LEDデータをすでに受信済みであれば、外部制御回路30は、LEDデータをメモリから読み出し、LEDデータの受信データサイズをメモリにセットする。さらに、外部制御回路30は、受信データリードポインタをクリアする(S104)。   If the LED data has already been received, the external control circuit 30 reads the LED data from the memory and sets the received data size of the LED data in the memory. Further, the external control circuit 30 clears the received data read pointer (S104).

次いで、あるいは、LEDデータを受信していない場合、外部制御回路30は、モータ制御データに基づいて、メモリに割り当てられたバッファ[0]およびバッファ[1]に第1制御コマンドとして、データ(1)およびデータ(2)を設定する。また、外部制御回路30は、バッファ[2]にモータのエンドコードを設定する。さらに、外部制御回路30は、送信バッファ[12]から送信バッファ[27]に、スタートコード(モータ)、データ(1)、データ(2)およびモータのエンドコードを設定する。   Next, or when the LED data is not received, the external control circuit 30 uses the data (1) as the first control command to the buffer [0] and the buffer [1] allocated to the memory based on the motor control data. ) And data (2) are set. The external control circuit 30 sets the motor end code in the buffer [2]. Further, the external control circuit 30 sets the start code (motor), data (1), data (2), and end code of the motor from the transmission buffer [12] to the transmission buffer [27].

加えて、外部制御回路30は、送信バッファ[3]にLEDデータのスタートコードを設定する(S110)。そして、外部制御回路30は、LEDデータを受信している場合であって、まだ送信バッファに設定が完了していないLEDデータがあるか否かを判定する(S112)。なお、LEDデータは、複数に分割され、複数の制御信号を用いて送信される。送信バッファに設定が完了していないLEDデータがある場合には、送信バッファ[5]から送信バッファ[11]まで順にLEDデータを設定する(S114)。つまり、LED120を制御する1つの制御コマンドから分割された複数のデータを順に、送信バッファ[5]から送信バッファ[11]に設定していく。   In addition, the external control circuit 30 sets a start code of LED data in the transmission buffer [3] (S110). Then, the external control circuit 30 determines whether or not there is LED data that has not yet been set in the transmission buffer when LED data is received (S112). The LED data is divided into a plurality of pieces and transmitted using a plurality of control signals. If there is LED data that has not been set in the transmission buffer, the LED data is set in order from the transmission buffer [5] to the transmission buffer [11] (S114). That is, a plurality of data divided from one control command for controlling the LED 120 are sequentially set from the transmission buffer [5] to the transmission buffer [11].

LEDデータの設定が完了すると、外部制御回路30は、送信バッファ[5]から送信バッファ[11]のうちデータが設定された送信バッファの数に応じたLEDデータサイズを送信バッファ[4]に設定する(S116)。これにより、各送信バッファのデータの設定が完了する。   When the LED data setting is completed, the external control circuit 30 sets the LED data size in the transmission buffer [4] according to the number of transmission buffers in which data is set among the transmission buffers [5] to [11]. (S116). Thereby, the setting of data in each transmission buffer is completed.

各送信バッファへのデータの設定が完了すると、外部制御回路30は、まず、モータデータのスタートコードを送信した後(S118)、各送信バッファに設定されたデータを送信バッファ[0]から順に送信バッファ[27]まで順次送信する(S120)。これにより、外部制御回路30は、図4に示すような1つの制御信号200を動作制御回路130に送信することができる。   When the setting of data in each transmission buffer is completed, the external control circuit 30 first transmits a start code of motor data (S118), and then transmits the data set in each transmission buffer in order from the transmission buffer [0]. The data is sequentially transmitted up to the buffer [27] (S120). Thereby, the external control circuit 30 can transmit one control signal 200 as shown in FIG. 4 to the operation control circuit 130.

図8は、動作制御回路130が制御信号を受信した場合の処理手順の一例を示すフローチャートである。   FIG. 8 is a flowchart illustrating an example of a processing procedure when the operation control circuit 130 receives a control signal.

動作制御回路130は、制御信号を受信すると、受信した制御信号の受信データサイズをメモリに設定し(S200)、受信した制御信号を先頭から1バイトずつ確認すべく、カウンタを0に設定する(S202)。なお、カウンタは、動作制御回路130が、受信した制御信号のうち先頭から何バイトまでのデータを確認したかを示す指標である。   When receiving the control signal, the operation control circuit 130 sets the received data size of the received control signal in the memory (S200), and sets the counter to 0 so as to confirm the received control signal byte by byte from the head (S200). S202). The counter is an index indicating how many bytes from the head of the received control signal the operation control circuit 130 has confirmed.

次いで、動作制御回路130は、カウンタが受信データサイズにより小さいか否かを判定する(S204)。カウンタが受信データサイズにより小さい場合、つまり、受信した制御信号の中身をすべて確認していない場合、動作制御回路130は、受信データ(制御信号)の中身を先頭から順番に確認していく。   Next, the operation control circuit 130 determines whether or not the counter is smaller than the received data size (S204). When the counter is smaller than the received data size, that is, when not all the contents of the received control signal have been confirmed, the operation control circuit 130 confirms the contents of the received data (control signal) in order from the top.

動作制御回路130は、受信データにモータ110のスタートコード(モータ)、データ(1)、データ(2)およびエンドコードが設定されているか否かを確認する(S206)。受信データを先頭から1バイトずつ確認していくので、まず受信データの先頭にスタートコード(モータ)があれば、ステップS206の「Y」に進む。一方、受信データの先頭にスタートコード(モータ)がなければ、つまり、最初の第1制御コマンドを正常に受信できていなければ、ステップS206の「N」に進む。   The operation control circuit 130 checks whether the start code (motor), data (1), data (2), and end code of the motor 110 are set in the received data (S206). Since the received data is checked byte by byte from the beginning, if there is a start code (motor) at the beginning of the received data, the process proceeds to “Y” in step S206. On the other hand, if there is no start code (motor) at the head of the received data, that is, if the first first control command is not normally received, the process proceeds to “N” in step S206.

第1制御コマンドを正常に受信できていれば、動作制御回路130は、第1制御コマンド内のモータデータ(データ(1)およびデータ(2))を配列バッファに格納し(S208)、モータチェックデータに1を足す(S210)。次いで、動作制御回路130は、モータチェックデータが1より大きいか否かを判定する(S212)。つまり、動作制御回路130は、受信データの中に受信できた第1制御コマンドが複数あるか否かを判定する。   If the first control command is normally received, the operation control circuit 130 stores the motor data (data (1) and data (2)) in the first control command in the array buffer (S208), and checks the motor. 1 is added to the data (S210). Next, the operation control circuit 130 determines whether or not the motor check data is greater than 1 (S212). That is, the operation control circuit 130 determines whether or not there are a plurality of first control commands that can be received in the received data.

第1制御コマンドが複数あれば、動作制御回路130は、配列バッファに格納されたデータが2個以上あるか否かを判定する(S214)。つまり、動作制御回路130は、受信データの中に正常に受信できた同一の第1制御コマンドが複数あるか否かを判定する。同一の第1制御コマンドが複数あれば、動作制御回路130は、第1制御コマンドを正常に受信できたと判断して、配列バッファに格納されたモータデータを確定する(S216)。そして、動作制御回路130は、受信した第1制御コマンドに従ってモータドライバ116を介してモータ110を制御する。   If there are a plurality of first control commands, the operation control circuit 130 determines whether there are two or more pieces of data stored in the array buffer (S214). That is, the operation control circuit 130 determines whether or not there are a plurality of identical first control commands that have been successfully received in the received data. If there are a plurality of the same first control commands, the operation control circuit 130 determines that the first control command has been normally received, and determines the motor data stored in the array buffer (S216). Then, the operation control circuit 130 controls the motor 110 via the motor driver 116 in accordance with the received first control command.

確認済みの受信データの中に第1制御コマンドが複数ない場合、または同一の第1制御コマンドが複数ない場合、動作制御回路130は、カウンタに1を足して(S218)、ステップS204に戻る。   When there are not a plurality of first control commands in the received data that have been confirmed, or when there are not a plurality of the same first control commands, the operation control circuit 130 adds 1 to the counter (S218) and returns to step S204.

なお、先頭の第1制御コマンドを正常に受信できた場合でも、その時点では、モータチェックデータは1なので、カウンタに1が足され、ステップS204に戻る。   Even when the first control command at the head can be normally received, since the motor check data is 1 at that time, 1 is added to the counter, and the process returns to step S204.

ステップS206で「N」に進んだ場合、動作制御回路130は、受信データにLEDのスタートコードが設定されているか否かを判定する(S220)。LEDのスタートコードが設定されていれば、その後のデータには、LEDの制御コマンドを生成するためのLEDデータが続いているので、受信データから順にLEDデータを読み出してLEDデータを確定する(S222)。なお、LEDデータについては、エラーのチェックをしないので、動作制御回路130は、その後のデータにエラーが含まれる場合も、受信データにLEDのスタートコードが設定されていれば、LEDデータを確定する。さらに、動作制御回路130は、LEDデータ分だけカウンタを進める。つまり、動作制御回路130は、9個分だけカウンタを進め、受信データの次の部分(送信バッファ[12]に設定された部分のデータ)を確認する。   When the process proceeds to “N” in step S206, the operation control circuit 130 determines whether or not an LED start code is set in the received data (S220). If the LED start code is set, the subsequent data is followed by LED data for generating an LED control command. Therefore, the LED data is read in order from the received data to determine the LED data (S222). ). Since the LED data is not checked for errors, the operation control circuit 130 determines the LED data if the start code of the LED is set in the received data even if the subsequent data includes an error. . Further, the operation control circuit 130 advances the counter by the amount of LED data. That is, the operation control circuit 130 advances the counter by nine, and confirms the next portion of the received data (the portion of data set in the transmission buffer [12]).

ステップS220における判定の結果、LEDのスタートコードが設定されていなければ、動作制御回路130は、カウンタに1を足して(S226)、ステップS206に戻る。動作制御回路130は、受信データの中身をすべて確認できるまで、上記の処理を繰返する。動作制御回路130は、正確に受信できた同一の第1制御コマンドが複数なくて、受信データの中身をすべて確認し終わった場合には、モータデータを確定せずに、今回の周期における処理を終了する。   As a result of the determination in step S220, if the LED start code is not set, the operation control circuit 130 adds 1 to the counter (S226) and returns to step S206. The operation control circuit 130 repeats the above processing until all the contents of the received data can be confirmed. If there are not a plurality of the same first control commands that can be received correctly and the contents of the received data are all confirmed, the operation control circuit 130 does not determine the motor data and performs the processing in the current cycle. finish.

以上の通り、動作制御回路130は、正確に受信できた同一の第1制御コマンドが複数あれば、第1制御コマンドに従ってモータ110を制御する。一方、動作制御回路130は、第2制御コマンドのスタートコードを一つ受信できれば、第2制御コマンドの内容にエラーがあるか否かにかかわらず、そのデータをLED120を制御するための制御コマンドの生成に用いてよい。   As described above, the operation control circuit 130 controls the motor 110 according to the first control command if there are a plurality of the same first control commands that have been correctly received. On the other hand, if the operation control circuit 130 can receive one start code of the second control command, the data of the control command for controlling the LED 120 is used regardless of whether or not there is an error in the content of the second control command. May be used for generation.

動作制御回路130は、外部制御回路30からスリップリング104を介して受信した制御信号の中に同一の第1制御コマンドが複数あれば、受信した第1制御コマンドに従ってモータ110を制御する。これにより、接点不良が発生していても、動作制御回路130が、第1制御コマンドを正常に受信できる確率が向上する。また、2以上の第1制御コマンドが一致することを確認できた場合のみ、動作制御回路130は、受信した第1制御コマンドを利用してモータ110を制御する。したがって、エラーを含む第1制御コマンドが利用されることにより、回転構造体100が正常に制御されなくなることを防止できる。   If there are a plurality of identical first control commands in the control signal received from the external control circuit 30 via the slip ring 104, the operation control circuit 130 controls the motor 110 according to the received first control command. Thereby, even if the contact failure occurs, the probability that the operation control circuit 130 can normally receive the first control command is improved. Also, only when it is confirmed that two or more first control commands match, the operation control circuit 130 controls the motor 110 using the received first control command. Therefore, it is possible to prevent the rotating structure 100 from being normally controlled by using the first control command including an error.

図9は、動作制御回路130がデータ信号を送信する手順の一例を示すフローチャートである。図10は、動作制御回路130がデータ信号を送信する場合に用いる送信バッファに格納される内容について説明するための図である。   FIG. 9 is a flowchart illustrating an example of a procedure in which the operation control circuit 130 transmits a data signal. FIG. 10 is a diagram for explaining the contents stored in the transmission buffer used when the operation control circuit 130 transmits a data signal.

位置センサ114は、例えば、可動体112が予め定められた位置に移動したことを検知したことに対応して検知信号をモータドライバ116に出力する。モータドライバ116は、検知信号に応じた位置データを動作制御回路130に出力する。動作制御回路130は、モータドライバ116から位置データを受信すると、センサデータとしてその位置データを読み出す(S300)。   For example, the position sensor 114 outputs a detection signal to the motor driver 116 in response to detecting that the movable body 112 has moved to a predetermined position. The motor driver 116 outputs position data corresponding to the detection signal to the operation control circuit 130. When the position data is received from the motor driver 116, the operation control circuit 130 reads the position data as sensor data (S300).

次いで、動作制御回路130は、送信バッファ[0]および送信バッファ[1]に読み出したセンサデータと、位置センサ114のエンドコード(センサ)を設定する(S302)。さらに、動作制御回路130は、送信バッファ[2]から送信バッファ「13」に位置センサ114のスタートコード(センサ)、センサデータ、および位置センサ114のエンドコードを設定する。つまり、動作制御回路130は、送信バッファ[2]から送信バッファ「13」に同一の位置データを設定する。   Next, the operation control circuit 130 sets the sensor data read to the transmission buffer [0] and the transmission buffer [1] and the end code (sensor) of the position sensor 114 (S302). Further, the operation control circuit 130 sets the start code (sensor) of the position sensor 114, the sensor data, and the end code of the position sensor 114 from the transmission buffer [2] to the transmission buffer “13”. That is, the operation control circuit 130 sets the same position data from the transmission buffer [2] to the transmission buffer “13”.

各送信バッファへの設定が完了した後、動作制御回路130は、外部制御回路30から制御信号を受信していない期間に、位置センサ114のスタートコード(センサ)を送信した後(S306)、各送信バッファに設定されたデータを送信バッファ[0]から順に送信バッファ[13]まで順次送信する(S308)。これにより、動作制御回路130は、図5に示すような同一の位置データ310を含むデータ信号300を動作制御回路130に送信することができる。   After the setting to each transmission buffer is completed, the operation control circuit 130 transmits the start code (sensor) of the position sensor 114 during a period in which the control signal is not received from the external control circuit 30 (S306). The data set in the transmission buffer is sequentially transmitted from the transmission buffer [0] to the transmission buffer [13] in order (S308). Thereby, the operation control circuit 130 can transmit the data signal 300 including the same position data 310 as shown in FIG. 5 to the operation control circuit 130.

図11は、外部制御回路30がデータ信号を受信した場合の処理手順の一例を示すフローチャートである。   FIG. 11 is a flowchart illustrating an example of a processing procedure when the external control circuit 30 receives a data signal.

外部制御回路30は、データ信号を動作制御回路130からスリップリング104を介して受信した場合、センサチェックデータを0にクリアする(S400)。外部制御回路30は、受信したデータ信号のサイズを示す受信データサイズをサイズ変数に設定する(S402)。   When receiving the data signal from the operation control circuit 130 via the slip ring 104, the external control circuit 30 clears the sensor check data to 0 (S400). The external control circuit 30 sets the received data size indicating the size of the received data signal in the size variable (S402).

次いで、外部制御回路30は、受信データサイズが5(バイト)以下か否かを判定する(S404)。つまり、外部制御回路30は、受信したデータ信号の中に少なくとも2つの位置データを含むサイズのデータを受信したか否かを判定する。受信データサイズが5以下であれば、受信したデータには、少なくとも2つの位置データは含まれないので、処理を終了する。なお、位置データのデータサイズは、位置センサの数によって変わる。したがって、判定に用いられる受信データサイズは、「5」バイトとは限らず、位置データのデータサイズによって適宜変更される。   Next, the external control circuit 30 determines whether or not the received data size is 5 (bytes) or less (S404). That is, the external control circuit 30 determines whether or not data having a size including at least two position data in the received data signal has been received. If the received data size is 5 or less, the received data does not include at least two pieces of position data, so the process ends. Note that the data size of the position data varies depending on the number of position sensors. Therefore, the reception data size used for the determination is not limited to “5” bytes, and is appropriately changed according to the data size of the position data.

受信データサイズが5より大きければ、外部制御回路30は、受信したデータ信号を先頭から1バイトずつ確認すべく、カウンタを0に設定し(S406)、カウンタの値が受信データサイズより小さいか否かを判定する(S408)。なお、カウンタは、外部制御回路30が、受信したデータ信号のうち先頭から何バイトまでのデータを確認したかを示す指標である。   If the received data size is larger than 5, the external control circuit 30 sets the counter to 0 in order to confirm the received data signal byte by byte from the beginning (S406), and whether or not the counter value is smaller than the received data size. Is determined (S408). The counter is an index indicating how many bytes from the top of the received data signal the external control circuit 30 has confirmed.

カウンタの値が受信データサイズより小さい場合には、受信したデータ信号のすべての中身を確認できていないので、外部制御回路30は、受信したデータ信号にスタートコードおよびエンドコードが設定されているか否かを判定する(S410)。外部制御回路30は、受信したデータ信号を先頭から1バイトずつ確認していき、1バイトのスタートコードを検出した後、さらにセンサデータに相当する1バイトを検出し、さらに1バイトのエンドコードを検出した場合には、外部制御回路30は、受信したデータ信号にスタートコードおよびエンドコードが設定されていると判定する。よって、外部制御回路30は、1バイトのスタートコードを検出した時点およびセンサデータに相当する1バイトを検出した時点では、1バイトのエンドコードをまだ検出していないので、外部制御回路30は、ステップS410において「N」に進み、カウンタにそれぞれ1を足した後に、ステップS408の処理を繰り返す。   If the counter value is smaller than the received data size, the contents of all the received data signals have not been confirmed, so the external control circuit 30 determines whether the start code and end code are set in the received data signal. Is determined (S410). The external control circuit 30 checks the received data signal byte by byte from the beginning, detects a 1-byte start code, further detects 1 byte corresponding to sensor data, and further adds a 1-byte end code. If detected, the external control circuit 30 determines that a start code and an end code are set in the received data signal. Therefore, since the external control circuit 30 has not yet detected the 1-byte end code when the 1-byte start code is detected and when the 1-byte corresponding to the sensor data is detected, the external control circuit 30 In step S410, the process proceeds to “N”, and 1 is added to each of the counters. Then, the process of step S408 is repeated.

スタートコードおよびエンドコードが設定されている場合、外部制御回路30は、スタートコードとエンドコードとの間のセンサデータを配列バッファに格納し(S412)、センサチェックデータに1を足す(S414)。次いで、外部制御回路30は、センサチェックデータが1より大きいか否かを判定する。つまり、外部制御回路30は、配列バッファに、2以上のセンサデータが配列バッファに格納されているか否かを判定する。   When the start code and the end code are set, the external control circuit 30 stores the sensor data between the start code and the end code in the array buffer (S412), and adds 1 to the sensor check data (S414). Next, the external control circuit 30 determines whether the sensor check data is greater than 1. That is, the external control circuit 30 determines whether two or more sensor data are stored in the array buffer.

2以上のセンサデータが配列バッファに格納されていなければ、外部制御回路30は、カウンタに1を足して(S422)、ステップS408以降の処理を繰り返す。2以上のセンサデータが配列バッファに格納されていれば、外部制御回路30は、配列バッファに格納された2つ以上のセンサデータが一致するか否かを判定する(S418)。2つ以上のセンサデータが一致すれば、外部制御回路30は、正常のセンサデータを受信できたと判断して、配列バッファに格納されたセンサデータを、位置センサ114から提供された可動体112の位置を示す位置データとして、確定する(420)。外部制御回路30は、確定されたセンサデータを主制御部20に提供する。外部制御回路30は、主制御部20からセンサデータに応じた制御信号の送信の指示を受けて、制御信号を生成し、スリップリング104を介して動作制御回路130に制御信号を送信する。   If two or more pieces of sensor data are not stored in the array buffer, the external control circuit 30 adds 1 to the counter (S422), and repeats the processes after step S408. If two or more sensor data are stored in the array buffer, the external control circuit 30 determines whether or not two or more sensor data stored in the array buffer match (S418). If the two or more sensor data match, the external control circuit 30 determines that normal sensor data has been received, and uses the sensor data stored in the array buffer for the movable body 112 provided from the position sensor 114. The position data indicating the position is determined (420). The external control circuit 30 provides the determined sensor data to the main control unit 20. The external control circuit 30 receives a control signal transmission instruction corresponding to the sensor data from the main control unit 20, generates a control signal, and transmits the control signal to the operation control circuit 130 via the slip ring 104.

以上の通り、外部制御回路30は、受信したデータ信号から同一の位置データを複数検出できた場合には、位置データを正常に受信できたと判断する。そして、外部制御回路30は、受信した位置データに従った同一の新たな第1制御コマンドを複数含む新たな制御信号を生成し、新たな制御信号を動作制御回路130にスリップリング104を介して送信する。   As described above, the external control circuit 30 determines that the position data has been normally received when a plurality of the same position data can be detected from the received data signal. Then, the external control circuit 30 generates a new control signal including a plurality of the same new first control commands according to the received position data, and sends the new control signal to the operation control circuit 130 via the slip ring 104. Send.

ブラシ50とスリップリング104との接点不良により外部制御回路30がデータ信号の一部を正しく受信できなかった場合でも、データ信号に含まれる同一の複数の位置データのうち、少なくとも2つの位置データを受信できていれば、正常に位置データを受信できたと判断する。データ信号には複数の同一の位置データが含まれるので、外部制御回路30が位置データを正常に受信できる確率が向上する。また、2以上の位置データが一致することを確認できた場合のみ、外部制御回路30は、受信した位置データを利用する。したがって、エラーを含む位置データが利用されることにより、回転構造体100が正常に制御されなくなることを防止できる。   Even when the external control circuit 30 cannot correctly receive a part of the data signal due to a contact failure between the brush 50 and the slip ring 104, at least two position data among the same plurality of position data included in the data signal are stored. If it has been received, it is determined that the position data has been received normally. Since the data signal includes a plurality of the same position data, the probability that the external control circuit 30 can normally receive the position data is improved. Also, the external control circuit 30 uses the received position data only when it is confirmed that two or more position data match. Therefore, it is possible to prevent the rotating structure 100 from being normally controlled by using position data including an error.

以上、本発明を実施の形態を用いて説明したが、本発明の技術的範囲は上記実施の形態に記載の範囲には限定されない。上記実施の形態に、多様な変更または改良を加えることが可能であることが当業者に明らかである。その様な変更または改良を加えた形態も本発明の技術的範囲に含まれ得ることが、特許請求の範囲の記載から明らかである。   As mentioned above, although this invention was demonstrated using embodiment, the technical scope of this invention is not limited to the range as described in the said embodiment. It will be apparent to those skilled in the art that various modifications or improvements can be added to the above-described embodiment. It is apparent from the scope of the claims that the embodiments added with such changes or improvements can be included in the technical scope of the present invention.

特許請求の範囲、明細書、および図面中において示した装置、システム、プログラム、および方法における動作、手順、ステップ、および段階等の各処理の実行順序は、特段「より前に」、「先立って」等と明示しておらず、また、前の処理の出力を後の処理で用いるのでない限り、任意の順序で実現しうることに留意すべきである。特許請求の範囲、明細書、および図面中の動作フローに関して、便宜上「まず、」、「次に、」等を用いて説明したとしても、この順で実施することが必須であることを意味するものではない。   The order of execution of each process such as operations, procedures, steps, and stages in the apparatus, system, program, and method shown in the claims, the description, and the drawings is particularly “before” or “prior to”. It should be noted that the output can be realized in any order unless the output of the previous process is used in the subsequent process. Regarding the operation flow in the claims, the description, and the drawings, even if it is described using “first”, “next”, etc. for convenience, it means that it is essential to carry out in this order. It is not a thing.

10 遊技機
20 主制御部
30 外部制御回路
40 モータ
42 モータドライバ
50 ブラシ
100 回転構造体
102 回転体
104 スリップリング
110 モータ
112 可動体
114 位置センサ
116 モータドライバ
120 LED
122 LEDドライバ
130 動作制御回路
200 制御信号
300 データ信号
10 gaming machine 20 main control unit 30 external control circuit 40 motor 42 motor driver 50 brush 100 rotating structure 102 rotating body 104 slip ring 110 motor 112 movable body 114 position sensor 116 motor driver 120 LED
122 LED driver 130 operation control circuit 200 control signal 300 data signal

Claims (7)

回転体と、
前記回転体の側面に設けられたスリップリングと、
前記回転体に支持され、第1の動作をする第1動作体と、
前記回転体に支持され、前記回転体の外部に設けられた外部制御回路が送信した制御信号を前記スリップリングを介して受信し、受信した前記制御信号の中に同一の第1制御コマンドが複数あれば、前記第1制御コマンドに従って前記第1動作体を制御する動作制御回路と
を備え
前記第1動作体は、可動体を駆動する駆動体であり、
前記第1制御コマンドは、前記駆動体による駆動を制御する制御コマンドであり、
前記動作制御回路は、位置センサにより検出された前記可動体の位置を示す同一の位置データを複数含むデータ信号を、前記スリップリングを介して前記外部制御回路に送信する、回転構造体。
A rotating body,
A slip ring provided on a side surface of the rotating body;
A first operating body supported by the rotating body and performing a first operation;
A control signal supported by the rotating body and transmitted from an external control circuit provided outside the rotating body is received via the slip ring, and a plurality of the same first control commands are included in the received control signal. If there is, an operation control circuit for controlling the first operating body according to the first control command ,
The first operating body is a driving body that drives a movable body,
The first control command is a control command for controlling driving by the driver,
The operation control circuit transmits a data signal including a plurality of the same position data indicating the position of the movable body detected by a position sensor to the external control circuit via the slip ring .
前記回転体に支持され、第2の動作をする第2動作体をさらに備え、
前記動作制御回路は、受信した前記制御信号の中に第2制御コマンドが1つあれば、前記第2制御コマンドに従って前記第2動作体を制御する、請求項1に記載の回転構造体。
A second operating body supported by the rotating body and performing a second operation;
2. The rotating structure according to claim 1, wherein if there is one second control command in the received control signal, the operation control circuit controls the second operation body according to the second control command.
前記動作制御回路は、予め定められた数の前記制御信号のそれぞれに含まれる前記第2制御コマンドを組み合わせて1つの制御コマンドを生成し、前記1つの制御コマンドに従って前記第2動作体を制御する、請求項2に記載の回転構造体。   The operation control circuit generates one control command by combining the second control commands included in each of a predetermined number of the control signals, and controls the second operation body according to the one control command. The rotating structure according to claim 2. 前記第2動作体は、発光体であり、
前記第2制御コマンドは、前記発光体による発光を制御する制御コマンドである、請求項2または請求項3に記載の回転構造体。
The second operating body is a light emitter,
The rotary structure according to claim 2, wherein the second control command is a control command for controlling light emission by the light emitter.
回転体と、A rotating body,
前記回転体の側面に設けられたスリップリングと、  A slip ring provided on a side surface of the rotating body;
前記回転体に支持され、第1の動作をする第1動作体と、  A first operating body supported by the rotating body and performing a first operation;
前記回転体に支持され、第2の動作をする第2動作体と、  A second operating body supported by the rotating body and performing a second operation;
前記回転体に支持され、前記回転体の外部に設けられた外部制御回路が送信した制御信号を前記スリップリングを介して受信し、受信した前記制御信号の中に同一の第1制御コマンドが複数あれば、前記第1制御コマンドに従って前記第1動作体を制御し、受信した前記制御信号の中に第2制御コマンドが1つあれば、前記第2制御コマンドに従って前記第2動作体を制御する動作制御回路と  A control signal supported by the rotating body and transmitted from an external control circuit provided outside the rotating body is received via the slip ring, and a plurality of the same first control commands are included in the received control signal. If there is, the first operating body is controlled according to the first control command, and if there is one second control command in the received control signal, the second operating body is controlled according to the second control command. Operation control circuit and
を備え、With
前記第1動作体は、可動体を駆動する駆動体であり、  The first operating body is a driving body that drives a movable body,
前記第2動作体は、発光体であり、  The second operating body is a light emitter,
前記第1制御コマンドは、前記駆動体による駆動を制御する制御コマンドであり、  The first control command is a control command for controlling driving by the driver,
前記第2制御コマンドは、前記発光体による発光を制御する制御コマンドである、  The second control command is a control command for controlling light emission by the light emitter.
回転構造体。  Rotating structure.
前記制御信号は、複数の前記第1制御コマンドのうち一の第1制御コマンドと他の一の第1制御コマンドとの間に前記第2制御コマンドを含む、請求項5に記載の回転構造体。The rotating structure according to claim 5, wherein the control signal includes the second control command between one first control command and another one first control command among the plurality of first control commands. . 前記動作制御回路は、予め定められた周期で前記制御信号を受信する、請求項1から請求項6のいずれか1つに記載の回転構造体。   The rotating structure according to claim 1, wherein the operation control circuit receives the control signal at a predetermined period.
JP2013172105A 2013-08-22 2013-08-22 Rotating structure Active JP6197477B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013172105A JP6197477B2 (en) 2013-08-22 2013-08-22 Rotating structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013172105A JP6197477B2 (en) 2013-08-22 2013-08-22 Rotating structure

Publications (2)

Publication Number Publication Date
JP2015039528A JP2015039528A (en) 2015-03-02
JP6197477B2 true JP6197477B2 (en) 2017-09-20

Family

ID=52694029

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013172105A Active JP6197477B2 (en) 2013-08-22 2013-08-22 Rotating structure

Country Status (1)

Country Link
JP (1) JP6197477B2 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4421033B2 (en) * 1999-10-19 2010-02-24 株式会社三共 Game machine
JP4362781B2 (en) * 2005-06-03 2009-11-11 豊丸産業株式会社 LED decorative member and game machine
JP5388672B2 (en) * 2009-04-22 2014-01-15 株式会社東芝 X-ray CT system
JP5421797B2 (en) * 2010-01-13 2014-02-19 株式会社大都技研 Amusement stand
JP5161914B2 (en) * 2010-03-29 2013-03-13 タイヨーエレック株式会社 Game machine
JP2012143268A (en) * 2011-01-06 2012-08-02 Daiichi Shokai Co Ltd Game machine

Also Published As

Publication number Publication date
JP2015039528A (en) 2015-03-02

Similar Documents

Publication Publication Date Title
WO2013146743A1 (en) Control device for controlling rotation of robotic joint
JP2017063590A (en) Method for setting identification code of smart motor and multi-axis control device using smart motor
JP6163748B2 (en) Communication coupler, communication system, control method, and program
JP2009025879A (en) Communication system for robot device
JP5104523B2 (en) Encoder device and serial communication method
US20100185325A1 (en) Apparatus and method for controlling multi-axis robot
JP2015049769A (en) Communication device, encoder device and serial communication method
JP6136228B2 (en) Communication coupler, communication system, control method, and program
JP6197477B2 (en) Rotating structure
JP2015039529A (en) Game machine
CN111136652A (en) Speed reducer system, manufacturing method thereof, correction data generating method, correction data correcting method, robot, and robot
JP2018112969A (en) Motor actuation control system, multiple spindle mechanism, and motor actuation control method
CN210536535U (en) Remote separated motor driving and motor control system and motor driving and motor control system
JP6205206B2 (en) Multi-axis control system
JP4019987B2 (en) Data frame configuration method for serial communication
CN105227041B (en) The control method and motor driven systems of motor driver
JP4805629B2 (en) Encoder
WO2011031634A1 (en) Control system for reel mechanism
JP6629817B2 (en) Control system and motor control method
KR100560859B1 (en) Servo mortor connectable with control equipment by series or parallel
JPH11231923A (en) Numerical controller
JP2010118981A (en) Count device
JP4499233B2 (en) Distributed control system
JP6552314B2 (en) Motor controller
JP2007219601A (en) Control method for servo system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160304

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170120

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170131

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170216

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20170725

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170807

R150 Certificate of patent or registration of utility model

Ref document number: 6197477

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150