JP2013051794A - Movable body drive device - Google Patents

Movable body drive device Download PDF

Info

Publication number
JP2013051794A
JP2013051794A JP2011187901A JP2011187901A JP2013051794A JP 2013051794 A JP2013051794 A JP 2013051794A JP 2011187901 A JP2011187901 A JP 2011187901A JP 2011187901 A JP2011187901 A JP 2011187901A JP 2013051794 A JP2013051794 A JP 2013051794A
Authority
JP
Japan
Prior art keywords
movable body
stepping motor
rotation speed
current position
drive device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2011187901A
Other languages
Japanese (ja)
Other versions
JP5879824B2 (en
Inventor
Tsunehisa Takahashi
倫久 高橋
Katsumi Matsushita
克己 松下
Yasuyuki Oba
康之 大場
Hiroyuki Ibuki
啓之 伊夫伎
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
Omron Tateisi Electronics Co
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, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP2011187901A priority Critical patent/JP5879824B2/en
Priority to PCT/JP2012/066045 priority patent/WO2013031352A1/en
Priority to US14/236,153 priority patent/US9787233B2/en
Priority to AU2012303305A priority patent/AU2012303305B2/en
Publication of JP2013051794A publication Critical patent/JP2013051794A/en
Application granted granted Critical
Publication of JP5879824B2 publication Critical patent/JP5879824B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Pinball Game Machines (AREA)
  • Control Of Electric Motors In General (AREA)
  • Control Of Stepping Motors (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a movable body drive device for driving a movable body provided to a game machine and being capable of reducing a load of a superordinate control device.SOLUTION: A movable body drive device 1 has: a communication unit 2 receiving a control command prescribing a moving destination of a movable body provided to a game machine; a storage unit 63 storing a current position of the movable body; and a controller (61, 62 and 7) determining a movement direction in the next operation of the movable body on the basis of a difference between the moving destination and the current position of the movable body or a movement direction in the last operation of the movable body, and controlling a drive unit driving the movement so as to move the movable body in the movement direction in the next operation until the movable body reaches the movement destination.

Description

本発明は、遊技機に設けられた可動体を駆動するための可動体駆動装置に関する。   The present invention relates to a movable body driving device for driving a movable body provided in a gaming machine.

回胴遊技機または弾球遊技機などの遊技機には、遊技者の興趣を高めるために、遊技者の視覚、聴覚または感覚に訴える演出を行うための工夫が凝らされている。特に、遊技者の視覚に訴える演出を行うために、遊技機には、移動する可動体、例えば、可動役物が設けられることがある。このような可動体は、例えば、ステッピングモータによって駆動される。そして上位の制御装置の一例である演出用のプロセッサユニット(以下、単に演出用CPUと呼ぶ)が、遊技の状態に応じて可動体が指定された位置へ移動する移動量に相当するステップ数だけステッピングモータを回転させる命令を、ステッピングモータの制御回路へ送信する。   In order to enhance the interest of the player, a device such as a spinning machine or a ball game machine has been devised to produce an effect that appeals to the player's visual, auditory, or senses. In particular, in order to perform an effect appealing to the player's vision, the game machine may be provided with a movable body that moves, for example, a movable accessory. Such a movable body is driven by, for example, a stepping motor. Then, the number of steps corresponding to the amount of movement of the processor unit for effecting (hereinafter simply referred to as the effecting CPU), which is an example of the higher-level control device, moves to the designated position according to the state of the game. A command to rotate the stepping motor is transmitted to the control circuit of the stepping motor.

また近年、遊技者の興趣を高めるために、遊技機に搭載される、演出用CPUの制御対象が増加する傾向にある。例えば、遊技機には、可動役物の他、多数の光源及び液晶ディスプレイといった表示装置が搭載される。そのため、演出用CPUから出力される端子の数、及び演出用CPUの演算量といった負荷も増大する傾向にある。そこで、可動体に所望の動作をさせるための演算に要する演算量を軽減することが望まれている。このような要望に対して、ステッピングモータの制御に要するハードウェアまたはソフトウェアのリソースを削減させるための技術が開発されている(例えば、特許文献1及び2を参照)。   In recent years, in order to increase the interest of the player, there is a tendency for the number of control targets of the directing CPU mounted on the gaming machine to increase. For example, a gaming machine is equipped with a display device such as a large number of light sources and a liquid crystal display in addition to a movable accessory. Therefore, loads such as the number of terminals output from the effect CPU and the amount of calculation of the effect CPU tend to increase. Therefore, it is desired to reduce the amount of calculation required for calculation for causing the movable body to perform a desired operation. In response to such a demand, a technique for reducing hardware or software resources required for controlling the stepping motor has been developed (see, for example, Patent Documents 1 and 2).

例えば、特許文献1に開示されたステッピングモータ駆動制御装置は、正転/逆転、スピード切替、モード切替などの入力信号に応じた4相の駆動制御信号をマイクロコンピュータが生成することにより、回路部品を増やすことなく励磁方法、回転方向、回転速度などの変更を実現できるようにしている。
また、特許文献2に開示された可動体駆動装置は、可動体の動作結果を上位の制御装置へ送信し、その制御装置からの指令、または動作結果に基づいて、駆動手段により可動体を駆動させる。
For example, in the stepping motor drive control device disclosed in Patent Document 1, a microcomputer generates a four-phase drive control signal corresponding to an input signal such as forward / reverse rotation, speed switching, and mode switching. The excitation method, rotation direction, rotation speed, etc. can be changed without increasing the value.
Moreover, the movable body drive device disclosed in Patent Document 2 transmits an operation result of the movable body to a higher-level control device, and drives the movable body by a drive unit based on a command from the control device or the operation result. Let

特開平6−189597号公報Japanese Patent Laid-Open No. 6-1889597 特開2009−247833号公報JP 2009-247833 A

しかしながら、特許文献1及び2に開示された技術では、演出用CPUが可動体を所望の移動目的地へ移動させるには、演出用CPU自体が可動体の現在位置を把握していなければならない。そのために、演出用CPUは、可動体を移動させる度に、可動体の現在位置に関する情報を、ステッピングモータの制御回路、あるいは、可動体の位置を検出するためのセンサから受信する必要がある。また演出用CPUは、可動体の現在位置の座標と移動目的地の座標との差に基づいて、可動体を駆動するステッピングモータの回転方向、ステップ数などを決定するための演算を行う必要があった。このように、演出用CPUは、可動体を移動させる度に、可動体の現在位置に関する情報の受信、及びステッピングモータの回転方向、ステップ数などを決定するための処理を行わなければならない。そのため、可動体を駆動するに際し、演出用CPUといった上位の制御装置の負荷のさらなる軽減が要望されている。   However, in the techniques disclosed in Patent Documents 1 and 2, in order for the rendering CPU to move the movable body to a desired moving destination, the rendering CPU itself must grasp the current position of the movable body. Therefore, every time the moving CPU moves the movable body, it is necessary to receive information on the current position of the movable body from the control circuit of the stepping motor or the sensor for detecting the position of the movable body. Further, the directing CPU needs to perform calculations for determining the rotation direction, the number of steps, etc. of the stepping motor that drives the movable body based on the difference between the coordinates of the current position of the movable body and the coordinates of the moving destination. there were. Thus, every time the moving CPU moves the movable body, it must perform processing for receiving information on the current position of the movable body and determining the rotation direction, the number of steps, and the like of the stepping motor. Therefore, when driving the movable body, further reduction of the load of the host control device such as a CPU for rendering is desired.

そこで、本発明は、上位の制御装置の負荷をより軽減可能な可動体駆動装置を提供することを目的とする。   Then, an object of this invention is to provide the movable body drive device which can reduce the load of a high-order control apparatus more.

本発明の一つの形態として、遊技機に設けられた可動体を駆動する駆動ユニットを制御する可動体駆動装置が提供される。この可動体駆動装置は、可動体の移動目的地を規定する制御コマンドを受信する通信部と、可動体の現在位置を記憶する記憶部と、その可動体の移動目的地と現在位置との差、またはその可動体の直前の動作における移動方向に基づいて、可動体の次の動作における移動方向を決定し、次の動作における移動方向に沿って可動体が移動目的地に達するまで可動体を移動させるように、駆動ユニットを制御する制御部とを有する。   As one embodiment of the present invention, a movable body drive device that controls a drive unit that drives a movable body provided in a gaming machine is provided. The movable body driving device includes a communication unit that receives a control command that defines a moving destination of the movable body, a storage unit that stores a current position of the movable body, and a difference between the moving destination and the current position of the movable body. Or the moving direction in the next operation of the movable body is determined based on the moving direction in the previous operation of the movable body, and the movable body is moved until the movable body reaches the moving destination along the moving direction in the next operation. And a control unit that controls the drive unit so as to be moved.

この可動体駆動装置において、駆動ユニットはステッピングモータであり、制御コマンドは、ステッピングモータの回転速度を表す第1の指標とステッピングモータの加速度または減速度を表す第2の指標とを含み、制御部は、可動体が、現在位置からステッピングモータの第1のステップ数に対応する距離を移動するまで、第2の指標により示された加速度または減速度でステッピングモータの回転速度を加速または減速させ、その距離を移動した時点で第1の指標により示された回転速度となるようにステッピングモータを制御することが好ましい。   In this movable body driving apparatus, the drive unit is a stepping motor, and the control command includes a first index indicating the rotation speed of the stepping motor and a second index indicating the acceleration or deceleration of the stepping motor, and the control unit Until the movable body moves a distance corresponding to the first step number of the stepping motor from the current position, to accelerate or decelerate the rotation speed of the stepping motor at the acceleration or deceleration indicated by the second index, It is preferable to control the stepping motor so that the rotation speed indicated by the first index is reached when the distance is moved.

またこの可動体駆動装置において、駆動ユニットはステッピングモータであり、制御コマンドは、ステッピングモータの回転速度を表す第1の指標とステッピングモータの加速度または減速度を表す第2の指標とを含み、制御部は、可動体が、ステッピングモータの第2のステップ数に対応する距離よりも移動目的地に近づくと、第2の指標により示された加速度または減速度でステッピングモータの回転速度を加速または減速し、移動目的地に達した時点でその回転速度が第1の指標により示された回転速度となるようにステッピングモータを制御することが好ましい。   Further, in this movable body drive device, the drive unit is a stepping motor, and the control command includes a first index that represents the rotation speed of the stepping motor and a second index that represents the acceleration or deceleration of the stepping motor. The unit accelerates or decelerates the rotation speed of the stepping motor at the acceleration or deceleration indicated by the second index when the movable body approaches the moving destination more than the distance corresponding to the second step number of the stepping motor. Then, it is preferable to control the stepping motor so that the rotation speed becomes the rotation speed indicated by the first index when the movement destination is reached.

あるいはまた、この可動体駆動装置において、駆動ユニットはステッピングモータであり、制御コマンドは、ステッピングモータの回転速度を表す第1の指標とステッピングモータの減速度を表す第3の指標とを含み、制御部は、可動体が、ステッピングモータの第3のステップ数に対応する距離よりも移動目的地に近づくと、第3の指標により示された減速度でステッピングモータの回転速度を減速し、移動目的地に達した時点で回転速度が0となるようにステッピングモータを制御することが好ましい。   Alternatively, in this movable body drive device, the drive unit is a stepping motor, and the control command includes a first index that represents the rotation speed of the stepping motor and a third index that represents the deceleration of the stepping motor. When the movable body is closer to the moving destination than the distance corresponding to the third number of steps of the stepping motor, the unit decelerates the rotation speed of the stepping motor at the deceleration indicated by the third index, It is preferable to control the stepping motor so that the rotation speed becomes zero when reaching the ground.

さらに、この可動体駆動装置において、駆動ユニットはステッピングモータであり、制御コマンドは、ステッピングモータの1ステップの動作に相当する第1の期間に対するステッピングモータに電圧を印加する期間の比を表す第4の指標を含むことが好ましい。この場合において、可動体駆動装置は、第1の期間よりも短い第2の期間を1周期とし、第2の期間において、第4の指標に表された比だけ所定の電圧値を持つパルスが連続する連続パルス信号を生成するデューティ比制御部をさらに有することが好ましい。そして制御部は、連続パルス信号によって、ステッピングモータのステップごとの動作を制御する駆動信号をパルス幅変調し、そのパルス幅変調された駆動信号をステッピングモータへ出力することが好ましい。   Furthermore, in this movable body drive device, the drive unit is a stepping motor, and the control command is a fourth ratio representing a ratio of a period during which a voltage is applied to the stepping motor with respect to a first period corresponding to one-step operation of the stepping motor. It is preferable that an index of In this case, the movable body drive device sets the second period shorter than the first period as one cycle, and in the second period, a pulse having a predetermined voltage value by the ratio represented by the fourth index is obtained. It is preferable to further include a duty ratio control unit that generates a continuous pulse signal. The control unit preferably performs pulse width modulation on the drive signal for controlling the operation of each step of the stepping motor by the continuous pulse signal, and outputs the pulse width modulated drive signal to the stepping motor.

さらに、この可動体駆動装置において、制御コマンドに規定される移動目的地は、現在位置を基準とする可動体の移動量で表され、記憶部は、可動体の直前の動作時の位置をさらに記憶し、制御部は、直前の動作時の位置と現在位置との差によって可動体の直前の動作における移動方向を求めることが好ましい。   Furthermore, in this movable body drive device, the movement destination specified by the control command is represented by the amount of movement of the movable body with reference to the current position, and the storage unit further determines the position of the movable body immediately before the operation. It is preferable that the control unit obtains the moving direction in the immediately preceding operation of the movable body from the difference between the position in the immediately preceding operation and the current position.

本発明に係る可動体駆動装置は、上位の制御装置の負荷をより軽減できるという効果を奏する。   The movable body drive device according to the present invention has an effect of further reducing the load on the host control device.

本発明の一つの実施形態に係る可動体駆動装置の概略構成図である。It is a schematic block diagram of the movable body drive device concerning one embodiment of the present invention. (a)は、絶対座標指定モードにおける、現在位置の座標と移動目的地の座標との関係の一例を表す図である。(b)は、相対座標指定モードにおける、現在位置の座標と移動目的地の座標との関係の一例を表す図である。(c)は、慣性移動モードにおける、現在位置の座標と移動目的地の座標との関係の一例を表す図である。(A) is a figure showing an example of the relationship between the coordinate of the present position, and the coordinate of a movement destination in absolute coordinate designation | designated mode. (B) is a figure showing an example of the relationship between the coordinate of the present position, and the coordinate of a movement destination in relative coordinate designation | designated mode. (C) is a figure showing an example of the relationship between the coordinate of the present position, and the coordinate of a movement destination in inertial movement mode. 動作情報を含む制御コマンドのフォーマットの一例を示す図である。It is a figure which shows an example of the format of the control command containing operation information. (a)は、設定情報を含む制御コマンドのフォーマットの一例を示す図であり、(b)は、個別設定モードで規定されている場合の設定データのフォーマットの一例を示す図であり、(c)は、初期設定モードで規定されている場合の設定データのフォーマットの一例を示す図である。(A) is a figure which shows an example of the format of the control command containing setting information, (b) is a figure which shows an example of the format of the setting data when prescribed | regulated by individual setting mode, (c) () Is a diagram showing an example of a format of setting data when defined in the initial setting mode. ステッピングモータの制御に用いられるコマンドセットの書き込みと実行順序の関係を示す概念図である。It is a conceptual diagram which shows the relationship between writing of the command set used for control of a stepping motor, and an execution order. (a)は、ステッピングモータの回転速度を上昇させる場合の回転速度の時間変化の一例を示す図であり、(b)は、ステッピングモータの回転速度を低下させる場合の回転速度の時間変化の一例を示す図である。(A) is a figure which shows an example of the time change of the rotational speed when raising the rotational speed of a stepping motor, (b) is an example of the time change of the rotational speed when reducing the rotational speed of a stepping motor. FIG. (a)は、変形例による、ステッピングモータの回転速度を上昇させる場合の回転速度の時間変化の一例を示す図であり、(b)は、変形例による、ステッピングモータの回転速度を低下させる場合の回転速度の時間変化の一例を示す図である。(A) is a figure which shows an example of the time change of the rotational speed when raising the rotational speed of a stepping motor by a modification, (b) is a case where the rotational speed of a stepping motor by a modification is reduced. It is a figure which shows an example of the time change of the rotational speed of. 本発明の一つの実施形態に係る可動体装置を備えた弾球遊技機の概略斜視図である。1 is a schematic perspective view of a bullet ball game machine including a movable body device according to one embodiment of the present invention. 本発明の一つの実施形態に係る可動体駆動装置を備えた弾球遊技機の概略背面図である。1 is a schematic rear view of a bullet ball game machine including a movable body drive device according to an embodiment of the present invention. FIG. (a)は、固定役物部を透過して見た、可動役物部の概略正面図であり、(b)は、固定役物部の背面側から見た、可動役物部が移動可能範囲の一端に位置する場合の概略背面図であり、(c)は、固定役物部の背面側から見た、可動役物部が移動可能範囲の他端に位置する場合の概略背面図である。(A) is a schematic front view of the movable accessory part seen through the fixed accessory part, and (b) is a movable accessory part movable from the back side of the fixed accessory part. It is a schematic rear view when located at one end of the range, and (c) is a schematic rear view when the movable accessory portion is located at the other end of the movable range, as viewed from the back side of the fixed accessory portion. is there.

以下、本発明の一つの実施形態による可動体駆動装置を、図を参照しつつ説明する。この可動体駆動装置は、可動体の位置を検出するセンサからの検知信号及び可動体を駆動するステッピングモータといった駆動ユニットの動作に基づいて、可動体の現在位置を求め、その現在位置を記憶する。そしてこの可動体駆動装置は、演出用CPUといった上位の制御装置から受信した、可動体の移動目的地を表す情報と可動体の現在位置との差、あるいは、可動体の現在位置における直前の動作の際の移動方向に基づいて、可動体の移動方向を決定し、その移動目的地に達するまで可動体を駆動する。これにより、この可動体駆動装置は、上位の制御装置が可動体の現在位置を把握していなくても、可動体を所望の移動目的地まで移動させることを可能として、上位の制御装置の負荷を軽減する。   Hereinafter, a movable body driving apparatus according to an embodiment of the present invention will be described with reference to the drawings. The movable body drive device obtains the current position of the movable body based on a detection signal from a sensor that detects the position of the movable body and the operation of a drive unit such as a stepping motor that drives the movable body, and stores the current position. . And this movable body drive device is the difference between the information representing the moving destination of the movable body and the current position of the movable body received from a higher-level control device such as a production CPU, or the previous operation at the current position of the movable body. Based on the moving direction at that time, the moving direction of the movable body is determined, and the movable body is driven until the moving destination is reached. As a result, the movable body drive device can move the movable body to a desired movement destination even if the upper control device does not know the current position of the movable body, Reduce.

図1は、本発明の一つの実施形態に係る可動体駆動装置の概略構成図である。図1に示されるように、可動体駆動装置1は、通信回路2と、レジスタ3と、デューティ比制御回路4と、センサインターフェース部5と、モータ制御回路6と、ソレノイド制御回路7と、を有する。
可動体駆動装置1が有するこれらの各部は、それぞれ、別個の回路として回路基板(図示せず)上に実装されてもよく、あるいは、これらの各部が集積された集積回路として回路基板上に実装されてもよい。
本実施形態では、可動体駆動装置1は、複数の駆動ユニットを制御する機能を持つ。複数の駆動ユニットのそれぞれは、二つのステッピングモータと、一つのソレノイドである。ソレノイドは、例えば、コイルを励磁することにより、磁性体からなる可動体を吸引することによって、その可動体を駆動する。そのため、例えば、ソレノイドは、可動体の移動可能範囲に沿って、互いに異なる位置に配置された複数のコイルを有し、それらコイルが、可動体の移動方向に沿って順次励起されることにより、可動体がその移動方向に沿って移動する。
FIG. 1 is a schematic configuration diagram of a movable body driving apparatus according to an embodiment of the present invention. As shown in FIG. 1, the movable body drive device 1 includes a communication circuit 2, a register 3, a duty ratio control circuit 4, a sensor interface unit 5, a motor control circuit 6, and a solenoid control circuit 7. Have.
Each of these units included in the movable body driving device 1 may be mounted on a circuit board (not shown) as a separate circuit, or may be mounted on the circuit board as an integrated circuit in which these units are integrated. May be.
In this embodiment, the movable body drive device 1 has a function of controlling a plurality of drive units. Each of the plurality of drive units includes two stepping motors and one solenoid. The solenoid drives the movable body by, for example, attracting the movable body made of a magnetic body by exciting a coil. Therefore, for example, the solenoid has a plurality of coils arranged at different positions along the movable range of the movable body, and these coils are sequentially excited along the moving direction of the movable body, The movable body moves along the moving direction.

また、可動体駆動装置1では、ステッピングモータにて駆動する可動体に関する移動目的地の座標の指定方法として、移動目的地の座標を絶対座標値で指定する絶対座標指定モードと、移動目的地の座標を現在位置を基準とする相対的な移動量及び移動方向で指定する相対座標指定モードと、可動体の移動目的地の座標を現在位置を基準とする相対的な移動量のみで指定する慣性移動モードとがある。そこで先ず、これらのモードについて説明する。   Moreover, in the movable body drive device 1, as a method of designating the coordinates of the moving destination relating to the movable body driven by the stepping motor, an absolute coordinate designation mode for designating the coordinates of the moving destination by an absolute coordinate value, Relative coordinate specification mode in which coordinates are specified by the relative movement amount and movement direction based on the current position, and inertia that specifies the coordinates of the moving destination of the movable body based only on the relative movement amount based on the current position There is a movement mode. First, these modes will be described.

図2(a)は、絶対座標指定モードにおける、現在位置の座標と移動目的地の座標との関係の一例を表す図である。図2(b)は、相対座標指定モードにおける、現在位置の座標と移動目的地の座標との関係の一例を表す図である。さらに図2(c)は、慣性移動モードにおける、現在位置の座標と移動目的地の座標との関係の一例を表す図である。図2(a)〜図2(c)において、横軸は、可動体の位置座標を、ステッピングモータのステップ数(-1023〜1022)で表す。またこの例では、可動体は水平方向に沿って直線的に移動するが、可動体駆動装置1により駆動される可動体は、任意の方法に沿って直線的に移動するものでもよく、あるいは、回転移動するものであってもよい。   FIG. 2A is a diagram illustrating an example of the relationship between the coordinates of the current position and the coordinates of the moving destination in the absolute coordinate designation mode. FIG. 2B is a diagram illustrating an example of the relationship between the coordinates of the current position and the coordinates of the moving destination in the relative coordinate designation mode. FIG. 2C is a diagram illustrating an example of the relationship between the coordinates of the current position and the coordinates of the moving destination in the inertial movement mode. 2A to 2C, the horizontal axis represents the position coordinates of the movable body by the number of steps of the stepping motor (−1023 to 1022). In this example, the movable body moves linearly along the horizontal direction. However, the movable body driven by the movable body drive device 1 may move linearly along an arbitrary method, or It may be one that rotates.

図2(a)に示す絶対座標指定モードでは、座標202が可動体の現在位置である場合のように、絶対座標で指定された移動目的地の座標201よりも可動体の現在位置が右側に位置すれば、可動体駆動装置1は、移動目的地の座標と現在位置の座標との比較結果に基づいて、可動体の移動方向を左方向と判定する。そして可動体駆動装置1は、演出用CPUが可動体の移動方向を指定しなくても、可動体を、移動目的地に達するまで自動的に左方向に移動させる。逆に、座標203が可動体の現在位置である場合のように、絶対座標で指定された移動目的地の座標201よりも可動体の現在位置が左側に位置する場合、可動体駆動装置1は、可動体の移動方向を右方向と判定し、可動体を、移動目的地に達するまで自動的に右方向に移動させる。   In the absolute coordinate designation mode shown in FIG. 2A, the current position of the movable body is on the right side of the coordinate 201 of the moving destination designated by the absolute coordinates, as in the case where the coordinate 202 is the current position of the movable body. If it is located, the movable body drive device 1 determines the moving direction of the movable body as the left direction based on the comparison result between the coordinates of the movement destination and the coordinates of the current position. Then, the movable body driving device 1 automatically moves the movable body in the left direction until reaching the moving destination even if the rendering CPU does not designate the moving direction of the movable body. On the other hand, when the current position of the movable body is located on the left side of the coordinate 201 of the moving destination specified by the absolute coordinates, as in the case where the coordinate 203 is the current position of the movable body, the movable body driving device 1 The moving direction of the movable body is determined as the right direction, and the movable body is automatically moved rightward until reaching the moving destination.

図2(b)に示す相対座標指定モードでは、演出用CPUは、可動体の現在位置に対する相対的な移動量と移動方向により、移動目的地を指定する。相対的な移動量は、例えば、ステッピングモータのステップ数で表される。また移動方向は、ステップ数の符号(+または-)により表される。例えば、可動体の現在位置の座標211に対して、相対的な移動方向及び移動量として+mステップ(mは正の整数)が指定されると、可動体駆動装置1は、可動体を右方向へmステップ分移動させる。また、可動体の現在位置の座標211に対して、相対的な移動方向及び移動量として-nステップ(nは正の整数)が指定されると、可動体駆動装置1は、可動体を左方向へnステップ分移動させる。   In the relative coordinate designation mode shown in FIG. 2B, the effect CPU designates the movement destination by the relative movement amount and movement direction of the movable body relative to the current position. The relative movement amount is represented by the number of steps of the stepping motor, for example. The movement direction is represented by a step number sign (+ or-). For example, if + m step (m is a positive integer) is designated as the relative movement direction and movement amount with respect to the coordinate 211 of the current position of the movable body, the movable body drive device 1 moves the movable body to the right. Move m steps in the direction. In addition, when −n step (n is a positive integer) is designated as the relative movement direction and movement amount with respect to the coordinate 211 of the current position of the movable body, the movable body driving device 1 moves the movable body to the left. Move n steps in the direction.

図2(c)に示す慣性移動モードでは、演出用CPUは、可動体の現在位置に対する相対的な移動量のみを指定する。このモードでは、可動体駆動装置1は、可動体の直前の動作における移動方向を次の動作の移動方向とし、現在位置221から指定された移動量kステップ(kは正の整数)だけ可動体を移動させる。これにより、可動体駆動装置1は、可動体の移動方向を急激に変化させずに、可動体を静止させることができる。この慣性移動モードは、例えば、可動体を緊急停止させる場合に適用される。   In the inertial movement mode shown in FIG. 2C, the effect CPU designates only the relative movement amount with respect to the current position of the movable body. In this mode, the movable body drive device 1 sets the movement direction in the immediately previous operation of the movable body as the movement direction of the next operation, and moves the movable body by a movement amount k steps (k is a positive integer) designated from the current position 221. Move. Thereby, the movable body drive device 1 can make a movable body stand still, without changing the moving direction of a movable body rapidly. This inertial movement mode is applied, for example, when the movable body is urgently stopped.

演出用CPUは、ステッピングモータにより駆動される各可動体について、上記の何れかのモードに従って可動体の移動目的地を指定する制御コマンドを生成し、その制御コマンドを可動体駆動装置1へ送信することで、可動体をその移動目的地へ移動させることができる。
以下、可動体駆動装置1の各部について説明する。
The rendering CPU generates, for each movable body driven by the stepping motor, a control command for designating the moving destination of the movable body according to any of the above modes, and transmits the control command to the movable body driving device 1. As a result, the movable body can be moved to the moving destination.
Hereinafter, each part of the movable body drive device 1 will be described.

通信回路2は、例えば、可動体駆動装置1が実装された遊技機の演出用CPUと可動体駆動装置1とを接続する。そして通信回路2は、演出用CPUから、シリアル伝送される複数のビットを持つ制御コマンドと、制御コマンドを解析するために、制御コマンドに含まれる複数のビットのそれぞれと同期を取るためのクロック信号とを受信する。
制御コマンドは、例えば、何れかの駆動ユニットが駆動する可動体の動作を特定するための動作情報またはその駆動ユニットについての設定を規定する設定情報とを含む。一つの駆動ユニットに対する、動作情報と設定情報の組を、便宜上、以下ではコマンドセットと呼ぶ。一つのコマンドセットは、可動体の一つの動作を規定する。
クロック信号は、例えば、制御コマンド中の所定数のビットごとに、矩形状のパルスを持つ信号とすることができる。
The communication circuit 2 connects, for example, an effect CPU of the gaming machine on which the movable body driving device 1 is mounted and the movable body driving device 1. Then, the communication circuit 2 sends a control command having a plurality of bits transmitted serially from the effect CPU and a clock signal for synchronizing with each of the plurality of bits included in the control command in order to analyze the control command. And receive.
The control command includes, for example, operation information for specifying the operation of the movable body driven by any one of the drive units or setting information for defining settings for the drive unit. A set of operation information and setting information for one drive unit is hereinafter referred to as a command set for convenience. One command set defines one operation of the movable body.
The clock signal can be, for example, a signal having a rectangular pulse for every predetermined number of bits in the control command.

図3は、駆動ユニットがステッピングモータである場合における、動作情報を含む制御コマンドのフォーマットの一例を示す図である。制御コマンド300は、先頭から順に、STARTフラグ301と、デバイスアドレス302と、動作/設定切替フラグ303と、系統指定フラグ304と、制御データ305と、ENDフラグ306とを有する。さらに、制御コマンド300は、隣接するフラグ、アドレス及びデータ間に、例えば'0'の値を持つ1ビットのスペーサを含んでもよい。   FIG. 3 is a diagram illustrating an example of a format of a control command including operation information when the drive unit is a stepping motor. The control command 300 includes a START flag 301, a device address 302, an operation / setting switching flag 303, a system designation flag 304, control data 305, and an END flag 306 in order from the top. Further, the control command 300 may include a 1-bit spacer having a value of, for example, “0” between adjacent flags, addresses, and data.

STARTフラグ301は、制御コマンド300の先頭であることを表すビット列であり、本実施形態では、'1'の値を持つ9個のビットが連続したビット列である。なお、STARTフラグ301は、制御コマンド300内の任意の他の何れのビット列とも一致しないビット列であればよい。
デバイスアドレス302は、制御コマンド300が制御対象とする可動体駆動装置を特定するための識別情報であり、本実施形態では、8ビット長のビット列で表される。デバイスアドレス302は、通信回路2により、演出用CPUから別途受信する識別アドレスと一致するか否か判定され、一致する場合、可動体駆動装置1が制御コマンド300の制御対象であると判定される。
The START flag 301 is a bit string indicating the head of the control command 300, and in this embodiment, is a bit string in which nine bits having a value of “1” are continuous. The START flag 301 may be a bit string that does not match any other bit string in the control command 300.
The device address 302 is identification information for specifying the movable body drive device to be controlled by the control command 300, and is represented by a bit string having an 8-bit length in this embodiment. The device address 302 is determined by the communication circuit 2 whether or not it matches the identification address separately received from the effect CPU. If they match, it is determined that the movable body drive device 1 is the control target of the control command 300. .

動作/設定切替フラグ303は、制御コマンドが動作情報を含むか設定情報を含むかを表す1ビットのフラグである。本実施形態では、動作/設定切替フラグ303が'0'であれば、制御コマンドは動作情報を含み、動作/設定切替フラグ303が'1'であれば、制御コマンドは設定情報を含む。図3の例では、制御コマンド300は動作情報を含むので、動作/設定切替フラグ303は'0'である。
系統指定フラグ304は、制御コマンド300の制御対象が、可動体駆動装置1が制御可能な二つのステッピングモータのうちの何れであるかを表す1ビットのフラグである。
The operation / setting switching flag 303 is a 1-bit flag indicating whether the control command includes operation information or setting information. In the present embodiment, if the operation / setting switching flag 303 is “0”, the control command includes operation information, and if the operation / setting switching flag 303 is “1”, the control command includes setting information. In the example of FIG. 3, since the control command 300 includes operation information, the operation / setting switch flag 303 is “0”.
The system designation flag 304 is a 1-bit flag that indicates which of the two stepping motors that can be controlled by the movable body drive device 1 is controlled by the control command 300.

制御データ305は、可動体駆動装置1が制御するステッピングモータの動作情報を含む。具体的には、制御データ305は、速度データ3051と、保存先指定フラグ3052と、ウェイトフラグ3053と、自動補正フラグ3054と、自動加減速フラグ3055と、座標指定モードフラグ3056と、座標データ3057とを含む。   The control data 305 includes operation information of the stepping motor controlled by the movable body driving device 1. Specifically, the control data 305 includes speed data 3051, a storage destination designation flag 3052, a wait flag 3053, an automatic correction flag 3054, an automatic acceleration / deceleration flag 3055, a coordinate designation mode flag 3056, and coordinate data 3057. Including.

速度データ3051は、ステッピングモータの回転速度を表す。本実施形態では、速度データ3051は6ビット長のビット列であり、'0'〜'63'の何れかの値となる。速度データ3051が'0'であればステッピングモータが停止、すなわち、そのステッピングモータで駆動される可動体が停止することを表し、速度データ3051が'1'〜'63'であれば、その速度データ3051の値に対応する回転速度でステッピングモータを回転させることを表す。   Speed data 3051 represents the rotation speed of the stepping motor. In the present embodiment, the speed data 3051 is a 6-bit length bit string and takes any value from “0” to “63”. If the speed data 3051 is “0”, the stepping motor is stopped, that is, the movable body driven by the stepping motor is stopped. If the speed data 3051 is “1” to “63”, the speed is This represents that the stepping motor is rotated at a rotation speed corresponding to the value of the data 3051.

保存先指定フラグ3052は、レジスタ3内の動作情報の保存先を指定する1ビットのフラグである。本実施形態では、保存先指定フラグ3052が'0'であれば、レジスタ3内の通常の可動体の動作を規定するコマンドセットを記憶する第1メモリ回路31に動作情報が格納され、一方、保存先指定フラグ3052が'1'であれば、レジスタ3内の緊急停止時の可動体の動作を規定するコマンドセットを記憶する第2メモリ回路32に動作情報が格納される。   The save destination designation flag 3052 is a 1-bit flag that designates the save destination of the operation information in the register 3. In the present embodiment, if the save destination designation flag 3052 is '0', the operation information is stored in the first memory circuit 31 that stores the command set that defines the operation of the normal movable body in the register 3, If the storage destination designation flag 3052 is “1”, the operation information is stored in the second memory circuit 32 that stores a command set that defines the operation of the movable body in the register 3 at the time of emergency stop.

ウェイトフラグ3053は、ステッピングモータを指定された期間だけ停止させるウェイトモードか否かを表す1ビットのフラグである。本実施形態では、ウェイトフラグ3053が'0'であれば、ウェイトモードはOFFとなり、速度データ3051に指定された回転速度及び座標データ3057に指定されたステップ数にしたがって、可動体駆動装置1がステッピングモータを制御する。一方、ウェイトフラグ3053が'1'であれば、ウェイトモードがONとなり、速度データ3051に指定された回転速度に相当する1ステップの動作期間に、座標データ3057に指定されたステップ数を乗じた値に相当する期間、ステッピングモータを停止させることを表す。このようなウェイトモードを用いることにより、例えば、特定方向に沿って移動していた可動体をその特定方向の逆方向へ反転移動させるような場合に、その反転直前にウェイトモードで指定した期間、可動体を一時停止させることで、可動体駆動装置1は、ステッピングモータに過負荷が掛かることを防止できる。そのため、可動体駆動装置1は、ステッピングモータの回転に可動体が追従しなくなったり、ステッピングモータが脱調することを防止できる。   The wait flag 3053 is a 1-bit flag indicating whether or not the wait mode is for stopping the stepping motor for a specified period. In the present embodiment, if the wait flag 3053 is “0”, the wait mode is turned off, and the movable body drive device 1 operates according to the rotational speed specified in the speed data 3051 and the number of steps specified in the coordinate data 3057. Control the stepping motor. On the other hand, if the wait flag 3053 is “1”, the wait mode is turned on, and the operation period of one step corresponding to the rotation speed specified in the speed data 3051 is multiplied by the number of steps specified in the coordinate data 3057. This means that the stepping motor is stopped for a period corresponding to the value. By using such a wait mode, for example, when moving a movable body that has moved along a specific direction in a reverse direction in the reverse direction of the specific direction, the period specified in the wait mode immediately before the reverse, By temporarily stopping the movable body, the movable body drive device 1 can prevent the stepping motor from being overloaded. Therefore, the movable body drive device 1 can prevent the movable body from following the rotation of the stepping motor or the stepping motor from stepping out.

自動補正フラグ3054は、可動体の位置を検知するセンサ(図示せず)からの検知信号によって可動体の現在位置を自動的に補正するか否かを表す1ビットのフラグである。本実施形態では、自動補正フラグ3054が'0'であれば、可動体駆動装置1は可動体の現在位置を補正せず、一方、自動補正フラグ3054が'1'であれば、可動体駆動装置1は、センサからの検知信号を受信したときに可動体の現在位置を補正する。   The automatic correction flag 3054 is a 1-bit flag indicating whether or not the current position of the movable body is automatically corrected by a detection signal from a sensor (not shown) that detects the position of the movable body. In the present embodiment, if the automatic correction flag 3054 is “0”, the movable body drive device 1 does not correct the current position of the movable body, while if the automatic correction flag 3054 is “1”, the movable body is driven. The apparatus 1 corrects the current position of the movable body when receiving a detection signal from the sensor.

自動加減速フラグ3055は、可動体の移動開始時または移動終了時に自動的に加速または減速する自動加減速モードがONかOFFかを表す1ビットのフラグである。本実施形態では、自動加減速フラグ3055が'0'であれば、自動加減速モードがOFFとなり、可動体駆動装置1は、可動体の移動開始直後から移動終了時点まで、速度データ3051で指定された回転速度でその可動体を駆動するステッピングモータを回転させる。一方、自動加減速フラグ3055が'1'であれば、自動加減速モードがONとなり、可動体駆動装置1は、可動体の移動開始直後、または移動終了直前において、別途指定された加速値または減速値に従って、ステッピングモータの回転速度を調節する。なお、自動加減速モードがONの時の動作の詳細は後述する。   The automatic acceleration / deceleration flag 3055 is a 1-bit flag indicating whether the automatic acceleration / deceleration mode that automatically accelerates or decelerates when the movable body starts moving or ends moving is ON or OFF. In this embodiment, if the automatic acceleration / deceleration flag 3055 is “0”, the automatic acceleration / deceleration mode is turned OFF, and the movable body drive device 1 is designated by the speed data 3051 from the start of the movement of the movable body to the end of the movement. The stepping motor that drives the movable body is rotated at the rotated speed. On the other hand, if the automatic acceleration / deceleration flag 3055 is “1”, the automatic acceleration / deceleration mode is turned ON, and the movable body driving device 1 immediately after the start of the movement of the movable body or immediately before the end of the movement, The rotation speed of the stepping motor is adjusted according to the deceleration value. Details of the operation when the automatic acceleration / deceleration mode is ON will be described later.

座標指定モードフラグ3056は、座標データ3057に規定される移動目的地の指定方法を規定するモードを表す1ビットのフラグである。本実施形態では、座標指定モードフラグ3056が'0'であれば、移動目的地の座標が絶対座標値であること(すなわち、絶対座標指定モードが適用されること)を表し、一方、座標指定モードフラグ3056が'1'であれば、移動目的地の座標が現在位置の座標を基準とする相対的な移動量であること(すなわち、相対座標指定モードまたは慣性移動モードが適用されること)を表す。なお、保存先指定フラグ3052が'0'であれば、相対座標指定モードであり、保存先指定フラグ3052が'1'であれば、慣性移動モードである。   The coordinate designation mode flag 3056 is a 1-bit flag that represents a mode that defines a method for designating a moving destination defined in the coordinate data 3057. In the present embodiment, if the coordinate designation mode flag 3056 is “0”, it indicates that the coordinates of the moving destination are absolute coordinate values (that is, the absolute coordinate designation mode is applied), while the coordinate designation mode is specified. If the mode flag 3056 is “1”, the coordinates of the movement destination are relative movement amounts based on the coordinates of the current position (that is, the relative coordinate designation mode or the inertia movement mode is applied). Represents. When the storage destination designation flag 3052 is “0”, the relative coordinate designation mode is selected. When the storage destination designation flag 3052 is “1”, the inertia movement mode is set.

座標データ3057は、移動目的地の座標をステッピングモータのステップ数で表す。本実施形態では、座標データ3057は、11ビット長を持つビット列であり、移動目的地の座標を-1024〜1023の何れかのステップ数で表す。なお、慣性移動モードが適用される場合には、移動量のみが規定されるので、座標データ3057は0〜1023の何れかの値となる。   The coordinate data 3057 represents the coordinates of the moving destination by the number of steps of the stepping motor. In the present embodiment, the coordinate data 3057 is a bit string having an 11-bit length, and the coordinates of the moving destination are represented by any number of steps from −1024 to 1023. Note that when the inertial movement mode is applied, only the movement amount is defined, so the coordinate data 3057 takes any value between 0 and 1023.

ENDフラグ306は、制御コマンド300の終端であることを表すビット列である。ENDフラグ306は、制御コマンドに含まれる、STARTフラグ及び他のビット列と一致しないビット列であればよい。   The END flag 306 is a bit string representing the end of the control command 300. The END flag 306 may be a bit string that does not match the START flag and other bit strings included in the control command.

図4(a)は、駆動ユニットがステッピングモータである場合における、設定情報を含む制御コマンドのフォーマットの一例を示す図である。制御コマンド400は、先頭から順に、STARTフラグ401と、デバイスアドレス402と、動作/設定切替フラグ403と、系統指定フラグ404と、制御データ405と、ENDフラグ406とを有する。設定情報を含む制御コマンド400は、図3に示された動作情報を含む制御コマンド300と比較して、動作/設定切替フラグ403の値が'1'であること、及び制御データ405の内容が異なる。そこで以下では、制御データ405について説明する。   FIG. 4A is a diagram illustrating an example of a format of a control command including setting information when the drive unit is a stepping motor. The control command 400 includes a START flag 401, a device address 402, an operation / setting switching flag 403, a system designation flag 404, control data 405, and an END flag 406 in order from the top. Compared with the control command 300 including the operation information shown in FIG. 3, the control command 400 including the setting information indicates that the value of the operation / setting switching flag 403 is “1” and the content of the control data 405 is Different. Therefore, the control data 405 will be described below.

制御データ405は、2ビット長を持つ設定モードフラグ4051と、設定データ4052とを含む。
設定モードフラグ4051は、個別コマンドごとの設定を行う個別設定モードか、全ての制御コマンドに共通の設定を行う初期設定モードかを規定する。本実施形態では、設定モードフラグ4051が'00'であれば、個別設定モードであることを表し、一方、設定モードフラグ4051が'01'であれば初期設定モードであることを表す。
The control data 405 includes a setting mode flag 4051 having a 2-bit length and setting data 4052.
The setting mode flag 4051 defines an individual setting mode for setting for each individual command or an initial setting mode for setting common to all control commands. In the present embodiment, if the setting mode flag 4051 is “00”, it represents the individual setting mode, while if the setting mode flag 4051 is “01”, it represents the initial setting mode.

図4(b)は、設定データ4052が個別設定モードで規定されている場合の設定データ4052のフォーマットの一例を示す図である。個別設定モードにおいて、設定データ4052は、先頭から順に、保存先指定フラグ4053と、停止時トルク4054と、動作時トルク4055と、励磁モードフラグ4056と、加速度データ4057とを含む。   FIG. 4B is a diagram illustrating an example of the format of the setting data 4052 when the setting data 4052 is defined in the individual setting mode. In the individual setting mode, the setting data 4052 includes a storage destination designation flag 4053, a stopping torque 4054, an operating torque 4055, an excitation mode flag 4056, and acceleration data 4057 in order from the top.

保存先指定フラグ4053は、図3に示された保存先指定フラグ3052と同様に、レジスタ3内の設定情報の保存先を指定する1ビットのフラグである。本実施形態では、保存先指定フラグ4053が'0'であれば、レジスタ3内の第1メモリ回路31に設定情報が格納され、一方、保存先指定フラグ4052が'1'であれば、レジスタ3内の第2メモリ回路32に設定情報が格納される。   The save destination designation flag 4053 is a 1-bit flag that designates the save destination of the setting information in the register 3 in the same manner as the save destination designation flag 3052 shown in FIG. In the present embodiment, if the save destination designation flag 4053 is “0”, the setting information is stored in the first memory circuit 31 in the register 3, while if the save destination designation flag 4052 is “1”, the register The setting information is stored in the second memory circuit 32 in FIG.

停止時トルク4054は、3ビット長を持ち、ステッピングモータが停止している際における、ステッピングモータの1ステップ分の動作期間に占める、実際に電圧を印加する期間のデューティ比(以下、停止時デューティ比と呼ぶ)を表す。そして本実施形態では、停止時トルク4054の値が大きいほど、停止時デューテイ比も高くなり、その結果としてステッピングモータを現在のステップのまま維持させるためのトルクも大きくなる。本実施形態では、停止時トルク4054は3ビット長を持つので、停止時デューティ比は8段階で規定される。例えば、停止時トルク4054の値が'000'であれば、停止時デューティ比は0、すなわち、ステッピングモータに電圧が印加されず、トルクも0であることを表す。一方、停止時トルク4054が'111'であれば、停止時デューティ比は1となる。   The torque 4054 at the time of stop has a 3-bit length, and when the stepping motor is stopped, the duty ratio of the period during which voltage is actually applied in the operation period of one step of the stepping motor (hereinafter referred to as the duty at the time of stop) Called ratio). In this embodiment, the larger the value of the stop-time torque 4054, the higher the stop-time duty ratio. As a result, the torque for maintaining the stepping motor at the current step also increases. In the present embodiment, since the stop-time torque 4054 has a 3-bit length, the stop-time duty ratio is defined in eight stages. For example, if the value of the stop torque 4054 is “000”, the stop duty ratio is 0, that is, no voltage is applied to the stepping motor, and the torque is 0. On the other hand, if the stopping torque 4054 is '111', the stopping duty ratio is 1.

動作時トルク4055は、2ビット長を持ち、ステッピングモータが回転している際における、ステッピングモータに1ステップ分の動作期間に占める、実際に電圧を印加する期間のデューティ比(以下、動作時デューティ比と呼ぶ)を表す。そして本実施形態では、動作時トルク4055の値が大きいほど、動作時デューテイ比も高くなり、その結果としてステッピングモータを回転させるトルクも大きくなる。本実施形態では、動作時トルク4055は2ビット長を持つので、動作時デューティ比は4段階で規定される。例えば、動作時トルク4055が'00'であれば、動作時デューティ比は0.5となる。一方、動作時トルク4055が'11'であれば、動作時デューティ比は1となる。   The operating torque 4055 has a length of 2 bits, and when the stepping motor is rotating, the duty ratio of the period during which voltage is actually applied in the operating period of one step to the stepping motor (hereinafter referred to as the operating duty). Called ratio). In this embodiment, the larger the value of the operating torque 4055, the higher the operating duty ratio, and as a result, the torque for rotating the stepping motor also increases. In this embodiment, since the operating torque 4055 has a 2-bit length, the operating duty ratio is defined in four stages. For example, if the operating torque 4055 is “00”, the operating duty ratio is 0.5. On the other hand, if the operating torque 4055 is '11', the operating duty ratio is 1.

励磁モードフラグ4056は、2ビット長を持ち、ステッピングモータの励磁方法を規定する。本実施形態では、励磁モードフラグ4056が'00'であれば2相励磁、'01'であれば1-2相励磁、'10'であればW1-2相励磁、'11'であれば2W1-2相励磁であることを表す。なお、ステッピングモータの励磁方法として、上記以外の励磁方法が採用されてもよい。
加速度データ4057は、4ビット長を持ち、自動加減速モードがONである場合の加速度を表す。
The excitation mode flag 4056 has a 2-bit length and defines the excitation method of the stepping motor. In this embodiment, if the excitation mode flag 4056 is “00”, it is 2-phase excitation, if it is “01”, it is 1-2 phase excitation, if it is “10”, it is W1-2 phase excitation, if it is “11”. Represents 2W1-2 phase excitation. An excitation method other than the above may be adopted as the excitation method for the stepping motor.
The acceleration data 4057 has a 4-bit length and represents the acceleration when the automatic acceleration / deceleration mode is ON.

図4(c)は、設定データ4052が初期設定モードで規定されている場合の設定データ4052のフォーマットの一例を示す図である。この場合において、設定データ4052は、先頭から順に、デフォルト動作設定フラグ4058と、停止時トルク4054と、動作時トルク4055と、励磁モードフラグ4056と、加速度データ4057と、減速度データ4059とを含む。
なお、停止時トルク4054、動作時トルク4055、励磁モードフラグ4056及び加速度データ4057は、図4(b)に示された対応するデータと同一であるので、説明を省略する。
FIG. 4C is a diagram illustrating an example of the format of the setting data 4052 when the setting data 4052 is defined in the initial setting mode. In this case, the setting data 4052 includes a default operation setting flag 4058, a stopping torque 4054, an operating torque 4055, an excitation mode flag 4056, acceleration data 4057, and deceleration data 4059 in order from the top. .
The stop torque 4054, the operation torque 4055, the excitation mode flag 4056, and the acceleration data 4057 are the same as the corresponding data shown in FIG.

デフォルト動作設定フラグ4058は、設定データ4052に含まれる設定情報が、レジスタ3に格納された動作情報に対応する個別の設定情報が規定されない場合に適用されるデフォルト設定情報か否かを表す1ビットのフラグである。本実施形態では、デフォルト動作設定フラグ4058が'0'であれば、設定データ4052に含まれる設定情報がデフォルト設定情報であることを表す。
減速度データ4059は、4ビット長を持ち、自動加減速モードがONである場合の減速度を表す。
The default operation setting flag 4058 is 1 bit indicating whether or not the setting information included in the setting data 4052 is default setting information applied when individual setting information corresponding to the operation information stored in the register 3 is not defined. Flag. In the present embodiment, if the default operation setting flag 4058 is “0”, it indicates that the setting information included in the setting data 4052 is default setting information.
The deceleration data 4059 has a 4-bit length and represents deceleration when the automatic acceleration / deceleration mode is ON.

さらに、設定データ4052は、可動体の位置を検知するセンサから検知信号が入力されたときの可動体の位置座標、一つの可動体に対して複数のセンサが設置される場合に、何れのセンサについての位置座標かを指定するフラグなどを規定するデータを含んでいてもよい。
また、駆動ユニットがソレノイドである場合の制御コマンドは、可動体の移動目的地または移動方向、ソレノイドが有する各コイルへ出力される励磁信号のデューティ比などを規定するデータを含んでもよい。
Further, the setting data 4052 includes the position coordinates of the movable body when a detection signal is input from the sensor that detects the position of the movable body, and any sensor when a plurality of sensors are installed for one movable body. It may include data defining a flag or the like for designating whether the position coordinates are for.
In addition, the control command when the drive unit is a solenoid may include data defining the moving destination or moving direction of the movable body, the duty ratio of the excitation signal output to each coil of the solenoid, and the like.

さらに、通信回路2は、演出用CPUから、制御コマンドが制御対象とする可動体駆動装置を特定するための識別アドレスを受信する。そして通信回路2は、識別アドレスと、制御コマンド中に含まれるデバイスアドレスとが一致する場合、その制御コマンドに含まれる動作情報または設定情報をレジスタ3に書き込む。一方、通信回路2は、識別アドレスとデバイスアドレスとが一致しない場合、受信した制御コマンドを廃棄する。
通信回路2は、識別アドレスと制御コマンドを受信するタイミングが異なっていても、識別アドレスとデバイスアドレスとが一致するか否かを判定できるようにするために、識別アドレスを記憶するメモリ回路を有していてもよい。
Furthermore, the communication circuit 2 receives an identification address for specifying the movable body drive device to be controlled by the control command from the effect CPU. When the identification address matches the device address included in the control command, the communication circuit 2 writes the operation information or setting information included in the control command into the register 3. On the other hand, when the identification address and the device address do not match, the communication circuit 2 discards the received control command.
The communication circuit 2 has a memory circuit for storing the identification address so that it can be determined whether or not the identification address and the device address match even when the identification address and the control command are received at different timings. You may do it.

さらに、通信回路2は、可動体を緊急停止させるためのロードコマンドを演出用CPUから受け取ると、レジスタ3に格納されている緊急停止用の動作情報及び設定情報を、デューティ比制御回路4及びモータ制御回路6へ出力させる。なお、ロードコマンドのフォーマットは、上記の制御コマンドとは別個のフォーマットであってもよい。例えば、ロードコマンドは、先頭から順に、ロードコマンドであることを表す識別コードと、対象となる可動体を表すフラグを含む。識別コードは、例えば、上記の制御コマンドの何れの部分とも一致しないビット列であればよい。   Further, when the communication circuit 2 receives a load command for urgently stopping the movable body from the effect CPU, the communication circuit 2 stores the emergency stop operation information and setting information stored in the register 3 into the duty ratio control circuit 4 and the motor. Output to the control circuit 6. Note that the format of the load command may be a format different from the above control command. For example, the load command includes, in order from the top, an identification code indicating that it is a load command and a flag indicating a target movable body. For example, the identification code may be a bit string that does not match any part of the control command.

さらに、通信回路2は、可動体駆動装置1が制御する駆動ユニットの何れかについて、レジスタ3に記憶されているコマンドセットが一つ実行される度に、そのコマンドセットが実行されたことを示す命令完了信号を演出用CPUへ出力する。命令完了信号は、例えば、駆動ユニットごとに設定される通信線を介して出力される、単パルス信号とすることができる。あるいは、命令完了信号は、駆動ユニットに応じて異なる数のパルスを持つ信号であり、各駆動ユニット共通の信号線を介して演出用CPUへ出力されるものでもよい。
さらに、通信回路2は、演出用CPUから、レジスタ3に格納されているコマンドセットを読み出すコマンドを受信すると、レジスタ3に格納されている全てのコマンドセットを読み出して、演出用CPUへ送信するようにしてもよい。
Further, the communication circuit 2 indicates that the command set is executed every time one command set stored in the register 3 is executed for any of the drive units controlled by the movable body drive device 1. Outputs a command completion signal to the CPU for production. The command completion signal can be, for example, a single pulse signal output via a communication line set for each drive unit. Alternatively, the command completion signal is a signal having a different number of pulses depending on the drive unit, and may be output to the rendering CPU via a signal line common to each drive unit.
Further, when receiving a command for reading the command set stored in the register 3 from the effect CPU, the communication circuit 2 reads out all the command sets stored in the register 3 and transmits them to the effect CPU. It may be.

レジスタ3は、各駆動ユニットのコマンドセットを複数個記憶可能な記憶容量を持つ、いわゆる先入れ先出し(FIFO)方式の第1メモリ回路31と、駆動ユニットごとに緊急停止時のコマンドセット及びデフォルト設定情報を記憶可能な第2メモリ回路32とを有する。レジスタ3が有するこれらのメモリ回路は、例えば、揮発性の読み書き可能な半導体メモリ回路により構成される。   The register 3 has a storage capacity capable of storing a plurality of command sets for each drive unit, a first memory circuit 31 of a so-called first-in first-out (FIFO) method, and a command set and default setting information at the time of emergency stop for each drive unit. And a second memory circuit 32 capable of storing data. These memory circuits included in the register 3 are constituted by, for example, volatile semiconductor memory circuits that can be read and written.

レジスタ3は、受信した制御コマンドに含まれる保存先指定フラグが通常の動作を規定することを表す値であれば、第1メモリ回路31に、その制御コマンドに含まれる動作情報または設定情報を書き込む。その際、レジスタ3は、注目する可動体について、一つの動作情報を受け取ってから次の動作情報を受け取るまでに、その可動体についての設定情報を受け取れば、その動作情報と設定情報を一つのコマンドセットとする。一方、レジスタ3は、注目する可動体についての一つの動作情報を受け取ってから次の動作情報を受け取るまでに、その可動体についての設定情報を受け取らなかった場合、その動作情報が読み出される際に、第2メモリ回路32に格納されているデフォルトの設定情報を第1メモリ回路31にコピーして、その動作情報とのコマンドセットを作成する。   The register 3 writes operation information or setting information included in the control command to the first memory circuit 31 if the storage destination designation flag included in the received control command is a value indicating that the normal operation is specified. . At that time, if the register 3 receives the setting information about the movable body from the time when one movement information is received to the time when the next movement information is received, the register 3 stores the movement information and the setting information. Command set. On the other hand, if the register 3 does not receive the setting information about the movable body after receiving one operation information about the movable body of interest after receiving the next operation information, The default setting information stored in the second memory circuit 32 is copied to the first memory circuit 31, and a command set with the operation information is created.

図5は、ステッピングモータを制御するためのコマンドセットの書き込みと実行順序の関係を示す概念図である。なお、図5では、一つのステッピングモータに対するコマンドセットのみを図示している。レジスタ3は、可動体駆動装置1が制御するステッピングモータごとに、図5に示されるようなコマンドセットを記憶する。
図5において、第1メモリ回路31に記憶される各コマンドセット501〜505は、それぞれ、動作情報と設定情報とを含む。また、下側に位置するコマンドセットほど、先に書き込まれたものとする。したがって、この例では、コマンドセット501が最も先に書き込まれたものであり、コマンドセット505が最も後に書き込まれたものである。各コマンドセットは、それぞれ、バッファ511〜515の何れかに格納されている。そして一番読み出し側に近いバッファ(図5では、一番下側のバッファ511)からコマンドセットが読み出され、そのコマンドセットがデューティ比制御回路4とモータ制御回路6とに転送される。そしてそのコマンドセットに従って駆動ユニットが制御されることにより、可動体が駆動される。一つのコマンドセットが実行される度に、各コマンドセットは、一つ読み出し側のバッファに転送される。なお、全てのバッファにコマンドセットが格納されている状態で、さらに次の動作情報または設定情報をレジスタ3が受け取ると、書き込み側に最も近いバッファ515に格納されている動作情報または設定情報が、新たに受信した動作情報または設定情報に書き換えられる。
FIG. 5 is a conceptual diagram showing the relationship between the writing of a command set for controlling the stepping motor and the execution order. In FIG. 5, only the command set for one stepping motor is shown. The register 3 stores a command set as shown in FIG. 5 for each stepping motor controlled by the movable body driving device 1.
In FIG. 5, each command set 501 to 505 stored in the first memory circuit 31 includes operation information and setting information. Further, it is assumed that the command set located at the lower side is written earlier. Therefore, in this example, the command set 501 is written first, and the command set 505 is written last. Each command set is stored in one of the buffers 511 to 515, respectively. Then, the command set is read from the buffer closest to the reading side (the lowermost buffer 511 in FIG. 5), and the command set is transferred to the duty ratio control circuit 4 and the motor control circuit 6. And a movable body is driven by controlling a drive unit according to the command set. Each time one command set is executed, each command set is transferred to one read side buffer. When the command set is stored in all the buffers and the next operation information or setting information is received by the register 3, the operation information or setting information stored in the buffer 515 closest to the writing side is It is rewritten with newly received operation information or setting information.

また、第2メモリ回路32には、緊急停止用のコマンドセット506と、デフォルト設定情報507が記憶されている。この緊急停止用のコマンドセット506は、可動体駆動装置1がロードコマンドを受け取ると、一番読み出し側に近いバッファ511に転送され、バッファ511から読み出されて、デューティ比制御回路4とモータ制御回路6に転送される。その際、第1メモリ回路31の他のバッファに格納されているコマンドセットは消去される。   The second memory circuit 32 stores an emergency stop command set 506 and default setting information 507. When the movable body drive device 1 receives the load command, the emergency stop command set 506 is transferred to the buffer 511 closest to the reading side, read out from the buffer 511, and the duty ratio control circuit 4 and the motor control. It is transferred to the circuit 6. At this time, the command set stored in the other buffer of the first memory circuit 31 is erased.

また、一番読み出し側に近いバッファ511に動作情報のみが格納されている場合、デフォルトの設定情報507がバッファ511に転送されてコマンドセットが作成される。その後に、そのコマンドセットが読み出されて、デューティ比制御回路4とモータ制御回路6に転送される。   If only the operation information is stored in the buffer 511 closest to the reading side, the default setting information 507 is transferred to the buffer 511 to create a command set. Thereafter, the command set is read and transferred to the duty ratio control circuit 4 and the motor control circuit 6.

デューティ比制御回路4は、所定の単位期間ごとに、コマンドセットの設定情報により規定される、停止時デューティ比または動作時デューティ比に応じた期間だけ所定の電圧値を持ち、その他の期間は、その所定の電圧値と異なる電圧値を持つパルスが連続する、連続パルス信号を生成する。そのために、デューティ比制御回路4は、例えば、プロセッサ及び不揮発性のメモリ回路を有する。そしてそのメモリ回路には、例えば、設定情報により規定された停止時デューティ比及び動作時デューティ比を表す値と実際のデューティ比との関係を表す参照テーブルが記憶される。そしてデューティ比制御回路4が有するプロセッサは、参照テーブルを参照することにより、実際のデューティ比を決定する。そしてそのプロセッサは、決定したデューティ比に従って、上記の連続パルス信号を生成する。なお、所定の単位期間は、例えば、動作情報に含まれるステッピングモータの回転速度が最大である場合の一つのステップの動作期間の1/100〜1/5に設定される。
デューティ比制御回路4は、生成した連続パルス信号をモータ制御回路6あるいはソレノイド制御回路7へ供給する。
The duty ratio control circuit 4 has a predetermined voltage value only for a period corresponding to the duty ratio at the time of stop or the duty ratio at the time of operation, which is defined by the setting information of the command set for each predetermined unit period. A continuous pulse signal in which pulses having a voltage value different from the predetermined voltage value continues is generated. For this purpose, the duty ratio control circuit 4 includes, for example, a processor and a nonvolatile memory circuit. In the memory circuit, for example, a reference table that represents the relationship between the actual duty ratio and the values representing the duty ratio at stop and the duty ratio during operation specified by the setting information is stored. The processor included in the duty ratio control circuit 4 determines an actual duty ratio by referring to the reference table. Then, the processor generates the continuous pulse signal according to the determined duty ratio. Note that the predetermined unit period is set to, for example, 1/100 to 1/5 of the operation period of one step when the rotation speed of the stepping motor included in the operation information is maximum.
The duty ratio control circuit 4 supplies the generated continuous pulse signal to the motor control circuit 6 or the solenoid control circuit 7.

センサインターフェース部5は、可動体の位置を検出するセンサからの検知信号を受信するインターフェース回路を有する。センサインターフェース部5は、例えば、センサごとに異なる入力端子を有してもよい。
ここで、センサは、例えば、発光ダイオードといった光源と、その光源と対向して、光源からの光を受光可能なように配置されるフォトダイオードといった受光素子を有する。そしてセンサは、例えば、可動体の移動可能範囲の何れかの一端、例えば、水平方向に移動可能な可動体であれば、その移動可能範囲の左端または右端に設置される。そして、可動体がセンサが設置された端部に達した場合に限り、光源からの光が可動体で遮られることにより、受光素子で検知される光量が低下することで、センサは、可動体がその端部に達したことを検知する。そして、センサは、可動体を検知すると、検知したことを表す検知信号をセンサインターフェース部5へ出力する。
なおセンサは、マグネットセンサといった、他の原理に基づく近接センサであってもよい。また、一つの可動体につき、複数のセンサが設置されてもよい。この場合、各センサは、それぞれ、可動体の移動可能範囲内の互いに異なる位置に設置される。例えば、一つの可動体に対して二つのセンサが設置される場合、その二つのセンサは、可動体の移動可能範囲の両端にそれぞれ設置される。
The sensor interface unit 5 includes an interface circuit that receives a detection signal from a sensor that detects the position of the movable body. The sensor interface unit 5 may have different input terminals for each sensor, for example.
Here, the sensor includes, for example, a light source such as a light emitting diode and a light receiving element such as a photodiode disposed so as to face the light source and receive light from the light source. For example, if the sensor is a movable body that can move in the horizontal direction, the sensor is installed at the left end or the right end of the movable range. And only when the movable body reaches the end where the sensor is installed, the light from the light source is blocked by the movable body, so that the amount of light detected by the light receiving element decreases, so that the sensor Detects that has reached its end. And if a sensor detects a movable body, it will output the detection signal showing having detected to the sensor interface part 5. FIG.
The sensor may be a proximity sensor based on another principle such as a magnet sensor. A plurality of sensors may be installed for one movable body. In this case, the sensors are installed at different positions within the movable range of the movable body. For example, when two sensors are installed for one movable body, the two sensors are respectively installed at both ends of the movable range of the movable body.

センサインターフェース部5は、ステッピングモータにより駆動される可動体の位置を検知するセンサから検知信号を受信した場合、その検知信号をモータ制御回路6へ通知する。またセンサインターフェース部5は、ソレノイドにより駆動される可動体の位置を検知するセンサから検知信号を受信した場合、その検知信号をソレノイド制御回路7へ通知する。その際、センサインターフェース部5は、どの可動部に対して設置されたセンサの検知信号か識別可能なように、検知信号を受信してからセンサごとに異なる遅延時間だけずらしてからその検知信号をモータ制御回路6またはソレノイド制御回路7へ転送してもよい。あるいは、センサインターフェース部5は、センサごとに異なる識別コードとともに、検知信号をモータ制御回路6またはソレノイド制御回路7へ転送してもよい。   When the sensor interface unit 5 receives a detection signal from a sensor that detects the position of the movable body driven by the stepping motor, the sensor interface unit 5 notifies the motor control circuit 6 of the detection signal. When the sensor interface unit 5 receives a detection signal from a sensor that detects the position of the movable body driven by the solenoid, the sensor interface unit 5 notifies the solenoid control circuit 7 of the detection signal. At that time, the sensor interface unit 5 receives the detection signal and then shifts the detection signal by a different delay time so that the detection signal of the sensor installed for which movable unit can be identified. You may transfer to the motor control circuit 6 or the solenoid control circuit 7. Alternatively, the sensor interface unit 5 may transfer the detection signal to the motor control circuit 6 or the solenoid control circuit 7 together with an identification code that is different for each sensor.

モータ制御回路6は、レジスタ3から読み出したコマンドセットに従って、駆動ユニットの一例であるステッピングモータを制御する。本実施形態では、モータ制御回路6は、一方のステッピングモータを制御するための第1制御回路61と、他方のステッピングモータを制御するための第2制御回路62とを有する。各制御回路61、62は、それぞれ、例えば、プロセッサを有し、レジスタ3から別個にコマンドセットを受け取って、対応する可動体を駆動するステッピングモータを制御する。さらにモータ制御回路6は、各可動体の現在位置及び一つ前のステップの動作開始時における位置を記憶するメモリ回路63を有する。このメモリ回路63は、可動体の現在位置を記憶する記憶部の一例である。   The motor control circuit 6 controls a stepping motor, which is an example of a drive unit, according to the command set read from the register 3. In the present embodiment, the motor control circuit 6 includes a first control circuit 61 for controlling one stepping motor and a second control circuit 62 for controlling the other stepping motor. Each of the control circuits 61 and 62 includes, for example, a processor, receives a command set from the register 3 separately, and controls a stepping motor that drives a corresponding movable body. The motor control circuit 6 further includes a memory circuit 63 that stores the current position of each movable body and the position at the start of the operation of the previous step. The memory circuit 63 is an example of a storage unit that stores the current position of the movable body.

また、各制御回路61、62は、例えば、ユニポーラ型のステッピングモータを制御可能なように、6本の出力端子を有する。あるいは、各制御回路61、62は、例えば、バイポーラ型のステッピングモータを制御可能なように、4本の出力端子を有してもよい。さらにまた、各制御回路61、62は、6本の出力端子を有し、演出用CPUから受信した、ユニポーラ型かバイポーラ型を表す識別信号に応じて、信号を出力する出力端子を異ならせてもよい。   Each control circuit 61, 62 has six output terminals so that, for example, a unipolar stepping motor can be controlled. Or each control circuit 61 and 62 may have four output terminals so that a bipolar stepping motor can be controlled, for example. Furthermore, each of the control circuits 61 and 62 has six output terminals, and the output terminals for outputting the signals are made different according to the identification signal representing the unipolar type or bipolar type received from the effect CPU. Also good.

例えば、各制御回路61、62は、動作情報に含まれる移動目的地の座標が絶対値指定されている場合、可動体の現在位置の座標と移動目的地の座標を比較する。そして各制御回路61、62は、移動目的地の座標と現在位置の座標との差の符号により、可動体の移動方向を決定する。例えば、図2(a)に示されるように、可動体が水平方向に沿って直進移動するものであり、かつ、可動体の位置座標を表すステップ数が正の大きな値であるほど、可動体が移動可能範囲の右端に近い場合、各制御回路61、62は、移動目的地の座標から現在位置の座標を引いた差が正であれば、可動体を右方向へ移動させると決定し、一方、その差が負であれば、可動体を左方向へ移動させると決定する。また、可動体が、所定の固定点を回転軸として回転移動するものであり、可動体の位置座標を表すステップ数が正の大きな値であるほど、可動体が移動可能範囲の時計回り方向の端部に近い場合、各制御回路61、62は、移動目的地の座標から現在位置の座標を引いた差が正であれば、可動体を時計回り方向へ移動させると決定し、一方、その差が負であれば、可動体を反時計回り方向へ移動させると決定する。   For example, each control circuit 61, 62 compares the coordinates of the current position of the movable body with the coordinates of the movement destination when the coordinates of the movement destination included in the operation information are designated as absolute values. Each control circuit 61, 62 determines the moving direction of the movable body according to the sign of the difference between the coordinates of the moving destination and the coordinates of the current position. For example, as shown in FIG. 2 (a), the movable body moves straight along the horizontal direction, and as the number of steps representing the position coordinates of the movable body is a larger positive value, the movable body Is close to the right end of the movable range, each control circuit 61, 62 determines to move the movable body to the right if the difference obtained by subtracting the coordinates of the current position from the coordinates of the movement destination is positive, On the other hand, if the difference is negative, it is determined to move the movable body to the left. In addition, the movable body rotates about a predetermined fixed point as a rotation axis, and the larger the number of steps representing the position coordinates of the movable body, the larger the positive value, the more the movable body moves in the clockwise direction of the movable range. When close to the end, each control circuit 61, 62 determines to move the movable body in the clockwise direction if the difference between the coordinates of the moving destination minus the coordinates of the current position is positive, If the difference is negative, it is determined that the movable body is moved in the counterclockwise direction.

また、移動目的地の設定モードが相対座標指定モードである場合、各制御回路61、62は、可動体をその指定された移動方向へ移動させると決定する。
また、移動目的地の設定モードが慣性移動モードである場合、各制御回路61、62は、メモリ回路に記憶されている、可動体の現在位置と一つ前のステップにおける位置との差の符号から、可動体の直前の動作における移動方向を特定する。そして各制御回路61、62は、その特定された移動方向へ可動体を移動させると決定する。
Further, when the setting mode of the movement destination is the relative coordinate designation mode, each control circuit 61, 62 determines to move the movable body in the designated movement direction.
Further, when the moving destination setting mode is the inertial movement mode, each control circuit 61, 62 stores the sign of the difference between the current position of the movable body and the position in the previous step stored in the memory circuit. From the above, the moving direction in the operation immediately before the movable body is specified. Each control circuit 61, 62 determines to move the movable body in the specified movement direction.

可動体の移動方向が決定すると、各制御回路61、62は、ステッピングモータの回転速度に応じて、一つのステップに対応する動作期間を決定する。
その際、自動加減速モードがONであれば、各制御回路61、62は、設定情報に含まれる加速度データまたは減速度データに従ってステッピングモータの回転速度を調整する。
When the moving direction of the movable body is determined, each control circuit 61, 62 determines an operation period corresponding to one step according to the rotation speed of the stepping motor.
At this time, if the automatic acceleration / deceleration mode is ON, the control circuits 61 and 62 adjust the rotation speed of the stepping motor according to the acceleration data or the deceleration data included in the setting information.

図6(a)は、ステッピングモータの回転速度を上昇させる場合の回転速度の時間変化の一例を示す図であり、図6(b)は、ステッピングモータの回転速度を低下させる場合の回転速度の時間変化の一例を示す図である。図6(a)及び図6(b)において、横軸は時間を表し、縦軸はステッピングモータの回転速度を表す。グラフ601は、回転速度が上昇する場合における、時間経過と回転速度の関係を表し、グラフ602は、回転速度が低下する場合における、時間経過と回転速度の関係を表す。そして、時刻t0は、各制御回路61、62が、注目するコマンドセットの実行を開始する時刻を表す。また、rsdは、動作情報に含まれる速度データに規定された速度データを表す。 FIG. 6A is a diagram illustrating an example of a temporal change in the rotation speed when the rotation speed of the stepping motor is increased. FIG. 6B is a diagram illustrating the rotation speed when the rotation speed of the stepping motor is decreased. It is a figure which shows an example of a time change. 6A and 6B, the horizontal axis represents time, and the vertical axis represents the rotation speed of the stepping motor. The graph 601 represents the relationship between the passage of time and the rotation speed when the rotation speed increases, and the graph 602 represents the relationship between the passage of time and the rotation speed when the rotation speed decreases. Time t 0 represents the time at which each control circuit 61, 62 starts executing the command set of interest. Further, rsd represents speed data defined in the speed data included in the operation information.

時刻t0よりも前では、ステッピングモータは、注目するコマンドセットよりも一つ前のコマンドセットで指定された回転速度で回転している。そして時刻t0になると、すなわち、注目するコマンドセットの実行が開始されると、各制御回路61、62は、可動体が現在位置からステッピングモータの所定の第1のステップ数(例えば、5〜20ステップ)に対応する距離を移動するまで、設定情報に含まれる加速度データまたは減速度データに規定される加速度または減速度でステッピングモータの回転速度を徐々に加速または減速する。そして、その距離を移動し終えた時刻t1で、ステッピングモータの回転速度が、動作情報に含まれる速度データに規定された回転速度となるように調整される。また時刻t1以降、ステッピングモータの回転速度は、その速度データに規定された回転速度で維持される。 Prior to time t 0 , the stepping motor rotates at the rotation speed specified in the command set immediately before the command set of interest. At time t 0 , that is, when execution of the command set of interest starts, each control circuit 61, 62 has a predetermined first step number (for example, 5 to 5) of the stepping motor from the current position of the movable body. The rotation speed of the stepping motor is gradually accelerated or decelerated at the acceleration or deceleration specified by the acceleration data or deceleration data included in the setting information until the distance corresponding to 20 steps) is moved. Then, at time t 1 which has finished moving the distance, the rotational speed of the stepping motor is adjusted to be defined in the speed data included in the operation information rotational speed. Also after time t 1, the rotation speed of the stepping motor is maintained at a rotational speed that is specified for the speed data.

なお、各制御回路61、62は、例えば、実行しようとするコマンドセットに指定された速度データに示された回転速度が、一つ前に実行されたコマンドセットに指定された速度データに示された回転速度よりも速ければ、ステッピングモータを加速する。一方、実行しようとするコマンドセットに指定された速度データに示された回転速度が、一つ前に実行されたコマンドセットに指定された速度データに示された回転速度よりも遅ければ、各制御回路61、62は、ステッピングモータを減速する。   Each of the control circuits 61 and 62 indicates, for example, the rotational speed indicated in the speed data specified in the command set to be executed in the speed data specified in the command set executed immediately before. If it is faster than the rotation speed, the stepping motor is accelerated. On the other hand, if the rotation speed indicated in the speed data specified in the command set to be executed is slower than the rotation speed indicated in the speed data specified in the previous command set, each control is executed. Circuits 61 and 62 decelerate the stepping motor.

図7(a)は、変形例による、ステッピングモータの回転速度を上昇させる場合の回転速度の時間変化の一例を示す図であり、図7(b)は、変形例による、ステッピングモータの回転速度を低下させる場合の回転速度の時間変化の一例を示す図である。図7(a)及び図7(b)において、横軸は時間を表し、縦軸はステッピングモータの回転速度を表す。グラフ701は、回転速度が上昇する場合における、時間経過と回転速度の関係を表し、グラフ702は、回転速度が低下する場合における、時間経過と回転速度の関係を表す。そして、時刻t0は、各制御回路61、62が、注目するコマンドセットの実行を開始する時刻を表す。また、rsdは、動作情報に含まれる速度データに規定された速度データを表す。 FIG. 7A is a diagram illustrating an example of a temporal change in the rotation speed when the rotation speed of the stepping motor is increased according to the modification, and FIG. 7B is a rotation speed of the stepping motor according to the modification. It is a figure which shows an example of the time change of the rotational speed in the case of reducing. 7A and 7B, the horizontal axis represents time, and the vertical axis represents the rotation speed of the stepping motor. A graph 701 represents the relationship between the passage of time and the rotational speed when the rotational speed increases, and a graph 702 represents the relationship between the passage of time and the rotational speed when the rotational speed decreases. Time t 0 represents the time at which each control circuit 61, 62 starts executing the command set of interest. Further, rsd represents speed data defined in the speed data included in the operation information.

この変形例によれば、各制御回路61、62は、目標座標から、ステッピングモータの所定の第2のステップ数(例えば、5〜20ステップ)に対応する距離だけ手前の位置に可動体が達した時刻t2以降、設定情報に含まれる加速度または減速度の情報に応じた加速度または減速度でステッピングモータの回転速度を徐々に加速または減速させる。そして各制御回路61、62は、目標座標に達した時刻t3でステッピングモータの回転速度が速度データに示された回転速度となるように、ステッピングモータの回転速度を調整する。 According to this modified example, each control circuit 61, 62 causes the movable body to reach a position in front of the target coordinates by a distance corresponding to a predetermined second step number (for example, 5 to 20 steps) of the stepping motor. and time t 2 subsequent to gradually accelerate or decelerate the rotation speed of the stepping motor in the acceleration or deceleration corresponding to the acceleration or deceleration of the information included in the setting information. And each control circuit 61 and 62, so that at time t 3 when reaching the target coordinate the rotational speed of the stepping motor becomes a rotation speed indicated in the speed data, adjusting the rotational speed of the stepping motor.

さらに、可動体駆動装置1は、一つのコマンドセットに相当する動作を開始する時点で可動体の移動を開始し、その動作を終える時点で、可動体を停止させてもよい。この場合には、自動加減速モードがONであれば、各制御回路61、62は、可動体を移動開始させる際、その移動開始時から設定情報に含まれる加速度でステッピングモータの回転速度を徐々に加速し、ステッピングモータの所定の第3のステップ数(例えば、5〜20ステップ)に相当する距離を可動体が移動した時点で、ステッピングモータの回転速度が速度データに規定された回転速度となるように、ステッピングモータの回転速度を調整する。そして各制御回路61、62は、目標座標からステッピングモータの第3のステップ数に対応する距離だけ手前の減速開始位置に可動体が達するまで、その回転速度を維持する。そして各制御回路61、62は、可動体が減速開始位置に達した以降、設定情報に含まれる減速度の情報に応じた減速度でステッピングモータの回転速度を徐々に減速させる。そして各制御回路61、62は、目標座標に達した時点でステッピングモータの回転速度が0rpmとなるように、ステッピングモータの回転速度を調整する。   Furthermore, the movable body drive device 1 may start the movement of the movable body when starting an operation corresponding to one command set, and stop the movable body when completing the operation. In this case, if the automatic acceleration / deceleration mode is ON, the control circuits 61 and 62 gradually increase the rotation speed of the stepping motor with the acceleration included in the setting information from the start of the movement when starting the movement of the movable body. When the movable body moves a distance corresponding to a predetermined third step number (for example, 5 to 20 steps) of the stepping motor, the rotation speed of the stepping motor is equal to the rotation speed specified in the speed data. The rotational speed of the stepping motor is adjusted so that Each of the control circuits 61 and 62 maintains the rotational speed until the movable body reaches the deceleration start position just before the target coordinate by a distance corresponding to the third step number of the stepping motor. Then, after the movable body reaches the deceleration start position, each of the control circuits 61 and 62 gradually reduces the rotation speed of the stepping motor at a deceleration according to the deceleration information included in the setting information. The control circuits 61 and 62 adjust the rotation speed of the stepping motor so that the rotation speed of the stepping motor becomes 0 rpm when the target coordinates are reached.

上記のように、自動加減速モードを用いることにより、可動体駆動装置1は、可動体が停止状態から移動開始する際に急加速となること、または動作情報に指定された動作を終えた時点で可動体が停止状態となる際に急制動が掛かることを抑制して、ステッピングモータに過負荷が掛かることを防止できる。そのため、可動体駆動装置1は、ステッピングモータの回転に可動体が追従しなくなったり、ステッピングモータが脱調することを防止できる。   As described above, when the automatic acceleration / deceleration mode is used, the movable body drive device 1 is suddenly accelerated when the movable body starts moving from the stopped state, or when the operation designated in the operation information is finished. Thus, it is possible to prevent sudden braking from being applied when the movable body is stopped, and to prevent the stepping motor from being overloaded. Therefore, the movable body drive device 1 can prevent the movable body from following the rotation of the stepping motor or the stepping motor from stepping out.

また、第1〜第3のステップ数、加速度及び減速度は、例えば、メモリ回路63に記憶された、設定情報中の加速度及び減速度の指標の値と、ステップ数、加速度及び減速度との関係を表す参照テーブルを参照することによって決定される。   The first to third step numbers, acceleration, and deceleration are, for example, the values of the index of acceleration and deceleration in the setting information stored in the memory circuit 63 and the number of steps, acceleration, and deceleration. It is determined by referring to a reference table representing the relationship.

一方、自動加減速モードがOFFであれば、各制御回路61、62は、図6(a)及び図6(b)において点線で示されたグラフ603、604のように、ステッピングモータの回転速度を、可動体の移動開始直後から目標座標に達するまで、動作情報に含まれる速度データに規定された回転速度に設定する。   On the other hand, when the automatic acceleration / deceleration mode is OFF, the control circuits 61 and 62 rotate the rotation speed of the stepping motor as shown by the graphs 603 and 604 indicated by dotted lines in FIGS. Is set to the rotational speed defined in the speed data included in the motion information from the start of movement of the movable body until the target coordinates are reached.

各制御回路61、62は、例えば、メモリ回路63に記憶された、回転速度と1ステップ当たりの動作期間との関係を表す参照テーブルを参照することにより、回転速度に対応する1ステップの動作期間を決定する。   For example, each control circuit 61, 62 refers to a reference table that is stored in the memory circuit 63 and represents the relationship between the rotational speed and the operation period per step. To decide.

その後、各制御回路61、62は、設定情報に含まれる励磁モードフラグの値に対応する励磁方式及び移動方向に従って、決定された動作期間に相当する、ステッピングモータの各端子に印加するパルス状の駆動信号を生成する。この場合、各制御回路61、62は、例えば、メモリ回路63に記憶され、各制御回路61、62により実行される、駆動信号を生成するためのプログラムに従って、1ステップ当たりの動作期間、励磁方式及び移動方向に対応する駆動信号を生成すればよい。なお、各端子へ出力される励磁方式に応じた駆動信号の信号波形は、例えば、特許文献1及び2にも開示されているように公知であるので、ここではその詳細な説明は省略する。   Thereafter, each of the control circuits 61 and 62 applies a pulse-form to be applied to each terminal of the stepping motor corresponding to the determined operation period according to the excitation method and the moving direction corresponding to the value of the excitation mode flag included in the setting information. A drive signal is generated. In this case, each control circuit 61, 62 is stored in, for example, the memory circuit 63 and is executed by each control circuit 61, 62 according to a program for generating a drive signal. The drive signal corresponding to the moving direction may be generated. In addition, since the signal waveform of the drive signal according to the excitation method output to each terminal is known as disclosed in, for example, Patent Documents 1 and 2, detailed description thereof is omitted here.

さらに各制御回路61、62は、デューティ比制御回路4から受け取った連続パルス信号とその駆動信号を乗じることにより、各端子に印加する駆動信号をパルス幅変調する。これにより、可動体駆動装置1は、パルス信号のデューティ比を小さくすることで、制御対象のステッピングモータの発熱量を抑制することができ、一方、パルス信号のデューティ比を大きくすることで、制御対象のステッピングモータのトルクを大きくすることができる。そして各制御回路61、62は、パルス幅変調された各端子の駆動信号を出力する。   Furthermore, each control circuit 61, 62 performs pulse width modulation on the drive signal applied to each terminal by multiplying the continuous pulse signal received from the duty ratio control circuit 4 and its drive signal. Thereby, the movable body drive device 1 can suppress the amount of heat generated by the stepping motor to be controlled by reducing the duty ratio of the pulse signal, while controlling by increasing the duty ratio of the pulse signal. The torque of the target stepping motor can be increased. Each control circuit 61, 62 outputs a drive signal for each terminal subjected to pulse width modulation.

各制御回路61、62は、一つのステップに相当する駆動信号を出力する度に、メモリ回路63に記憶されている可動体の現在位置及び一つ前のステップにおける動作開始時の位置を更新する。具体的には、ステップ数が増える方向へ可動体が移動する場合には、各制御回路61、62は、現在位置を表すステップ数及び一つ前のステップにおける位置を表すステップ数に、それぞれ1を加算する。一方、ステップ数が減る方向へ可動体が移動する場合には、各制御回路61、62は、現在位置を表すステップ数及び一つ前のステップにおける位置を表すステップ数から、それぞれ1を減算する。   Each time each control circuit 61, 62 outputs a drive signal corresponding to one step, it updates the current position of the movable body stored in the memory circuit 63 and the position at the start of operation in the previous step. . Specifically, when the movable body moves in the direction in which the number of steps increases, each of the control circuits 61 and 62 sets 1 to the number of steps representing the current position and the number of steps representing the position in the previous step. Is added. On the other hand, when the movable body moves in the direction in which the number of steps decreases, each control circuit 61, 62 subtracts 1 from the number of steps representing the current position and the number of steps representing the position in the previous step. .

目標座標が絶対値指定されている場合、一つのステップに対応する駆動信号の出力が終了する度に、各制御回路61、62は、可動体の現在位置を表す座標が移動目的地の座標と一致するか否か判定する。そして可動体の現在位置を表す座標値が移動目的地の座標と一致しなければ、各制御回路61、62は、再度、一ステップ分のパルス幅変調された駆動信号を生成して各端子へ出力し、現在位置等を更新する。一方、可動体の現在位置を表す座標値が目標座標と一致すれば、各制御回路61、62は、一つのコマンドセットに相当する可動体の動作が終了したと判定する。   When the absolute value is designated as the target coordinate, each time the output of the drive signal corresponding to one step is completed, the control circuits 61 and 62 each have the coordinate representing the current position of the movable body as the coordinate of the moving destination. It is determined whether or not they match. If the coordinate value representing the current position of the movable body does not coincide with the coordinate of the moving destination, each control circuit 61, 62 again generates a pulse width modulated drive signal for one step and sends it to each terminal. Output and update the current position. On the other hand, if the coordinate value representing the current position of the movable body matches the target coordinate, each control circuit 61, 62 determines that the operation of the movable body corresponding to one command set has been completed.

一方、移動目的地の座標が相対値指定されている場合には、各制御回路61、62は、その相対値で指定されたステップ数分の駆動信号を各端子へ出力し、そのステップ数分だけ、現在位置等を更新する。その後、各制御回路61、62は、一つのコマンドセットに相当する可動体の動作が終了したと判定する。   On the other hand, when the coordinates of the moving destination are designated with relative values, the control circuits 61 and 62 output the drive signals for the number of steps designated by the relative values to the respective terminals, and for the number of steps. Only update the current position etc. Thereafter, the control circuits 61 and 62 determine that the operation of the movable body corresponding to one command set has been completed.

各制御回路61、62は、可動体の動作が終了したと判定すると、通信回路2を介して、命令完了信号を演出用CPUへ送信する。   When each control circuit 61, 62 determines that the operation of the movable body has ended, it sends a command completion signal to the effect CPU via the communication circuit 2.

また、各制御回路61、62は、自動補正フラグがONである場合に、センサインターフェース部5から、その制御回路に対応するステッピングモータが駆動する可動体の位置を検知するセンサからの検知信号を受け取ると、メモリ回路63に記憶されている可動体の位置を表す座標値を、その検知信号に対応するセンサが可動体を検知する位置である検知位置を表す座標値に書き換える。これにより、可動体がセンサの検知位置に達する度に、可動体駆動装置1が記憶する可動体の現在位置が正しい位置に修正されるので、ステッピングモータの回転に可動体が追従できないことが生じても、可動体駆動装置1は、可動体の正確な位置を把握することができる。   Each control circuit 61, 62 receives a detection signal from a sensor that detects the position of the movable body driven by the stepping motor corresponding to the control circuit from the sensor interface unit 5 when the automatic correction flag is ON. When received, the coordinate value representing the position of the movable body stored in the memory circuit 63 is rewritten to the coordinate value representing the detection position where the sensor corresponding to the detection signal detects the movable body. As a result, every time the movable body reaches the detection position of the sensor, the current position of the movable body stored in the movable body driving device 1 is corrected to the correct position, so that the movable body cannot follow the rotation of the stepping motor. However, the movable body drive device 1 can grasp the exact position of the movable body.

ソレノイド制御回路7は、レジスタ3から受け取った制御コマンドに従って、その制御コマンドに含まれる可動体の移動方向または移動目的地に従って、各コイルに対する励磁信号を生成し、その励磁信号を、ソレノイドが有する各コイルへ出力する。ソレノイド制御回路7は、モータ制御回路6と同様に、ソレノイドが駆動する可動体の現在位置を記憶するメモリ回路を有していてもよい。そして制御コマンドに可動体の移動目的地が含まれる場合、ソレノイド制御回路7も、その移動目的地の座標と現在位置の座標とを比較することにより、可動体の移動方向を決定し、その移動方向に沿って、現在位置に近い方から順に、コイルを順次励磁するように、各コイルに対する励磁信号を生成してもよい。   In accordance with the control command received from the register 3, the solenoid control circuit 7 generates an excitation signal for each coil in accordance with the moving direction or the moving destination of the movable body included in the control command. Output to the coil. Similar to the motor control circuit 6, the solenoid control circuit 7 may have a memory circuit that stores the current position of the movable body driven by the solenoid. When the moving destination of the movable body is included in the control command, the solenoid control circuit 7 also determines the moving direction of the movable body by comparing the coordinates of the moving destination with the coordinates of the current position, and the movement An excitation signal for each coil may be generated so that the coils are sequentially excited along the direction from the closest position to the current position.

以上に説明してきたように、この可動体駆動装置は、ステッピングモータで駆動される可動体の現在位置を把握しているので、演出用CPUといったい上位の制御装置が可動体の目標座標を指定するだけで、可動体の移動方向を決定することができ、その目標座標まで可動体を移動させることができる。そのため、上位の制御装置は、可動体の現在位置を把握する必要が無く、また現在位置の座標と目標座標との差に応じて可動体の移動方向を決定する必要が無い。したがって、この可動体駆動装置は、可動体の駆動に関する、上位の制御装置の負荷を軽減できる。   As described above, since this movable body drive device grasps the current position of the movable body driven by the stepping motor, a higher-level control device such as a production CPU designates the target coordinates of the movable body. Only by doing this, the moving direction of the movable body can be determined, and the movable body can be moved to the target coordinates. Therefore, the host control device does not need to grasp the current position of the movable body and does not need to determine the moving direction of the movable body according to the difference between the coordinates of the current position and the target coordinates. Therefore, this movable body drive device can reduce the load of the host control device related to the drive of the movable body.

なお、本発明は上記の実施形態に限定されるものではない。例えば、変形例によれば、可動体駆動装置は、ソレノイド制御回路を有さなくてもよい。また、他の変形例によれば、可動体駆動装置は、図2(c)に示される慣性移動モードのような、現在位置に対する相対的な移動量のみで目標座標を特定する制御コマンドを受け付けなくてもよい。この場合には、可動体駆動装置は、現時点での可動体の移動方向を求める必要が無いので、モータ制御回路のメモリ回路は、可動体の現在位置のみを記憶しておけばよい。
さらに他の変形例によれば、可動体の現在位置の座標及び一つ前のステップの実行時における位置の座標は、レジスタが記憶していてもよい。
さらに他の変形例によれば、一つの制御コマンドが、動作情報と設定情報の両方を含んでいてもよい。
In addition, this invention is not limited to said embodiment. For example, according to the modification, the movable body drive device may not have a solenoid control circuit. According to another modification, the movable body driving device accepts a control command for specifying the target coordinates only by the amount of relative movement with respect to the current position, such as the inertial movement mode shown in FIG. It does not have to be. In this case, since the movable body drive device does not need to obtain the current moving direction of the movable body, the memory circuit of the motor control circuit need only store the current position of the movable body.
According to still another modification, the register may store the coordinates of the current position of the movable body and the coordinates of the position when the previous step is executed.
According to still another modification, one control command may include both operation information and setting information.

上記の実施形態または変形例による可動体駆動装置は、弾球遊技機または回胴遊技機といった遊技機に搭載されてもよい。
図8は、上記の実施形態または変形例による可動体駆動装置を備えた弾球遊技機100の概略斜視図である。また図9は、弾球遊技機100の概略背面図である。図8に示すように、弾球遊技機100は、上部から中央部の大部分の領域に設けられ、遊技機本体である遊技盤101と、遊技盤101の下方に配設された球受け部102と、ハンドルを備えた操作部103と、遊技盤101の略中央に設けられた表示装置104とを有する。
また弾球遊技機100は、遊技の演出のために、遊技盤101の前面において遊技盤101の下方に配置された固定役物部105と、遊技盤101と固定役物部105との間に配置された可動役物部106とを有する。また遊技盤101の側方にはレール107が配設されている。また遊技盤101上には多数の障害釘(図示せず)及び少なくとも一つの入賞装置108が設けられている。
The movable body drive device according to the above-described embodiment or modification may be mounted on a gaming machine such as a ball game machine or a spinning game machine.
FIG. 8 is a schematic perspective view of the ball game machine 100 including the movable body driving device according to the above-described embodiment or modification. FIG. 9 is a schematic rear view of the ball game machine 100. As shown in FIG. 8, the ball game machine 100 is provided in a large area from the top to the center, and includes a game board 101 that is a main body of the game machine, and a ball receiving part that is disposed below the game board 101. 102, an operation unit 103 having a handle, and a display device 104 provided in the approximate center of the game board 101.
Further, the ball game machine 100 is provided between the fixed board part 105 disposed below the game board 101 on the front surface of the game board 101 and the game board 101 and the fixed game part 105 for the production of the game. And a movable accessory part 106 arranged. A rail 107 is disposed on the side of the game board 101. On the game board 101, a number of obstacle nails (not shown) and at least one winning device 108 are provided.

操作部103は、遊技者の操作によるハンドルの回動量に応じて図示しない発射装置より所定の力で遊技球を発射する。発射された遊技球は、レール107に沿って上方へ移動し、多数の障害釘の間を落下する。そして遊技球が何れかの入賞装置108に入ったことを、図示しないセンサにより検知すると、遊技盤101の背面に設けられた主制御回路110は、遊技球が入った入賞装置108に応じた所定個の遊技球を玉払い出し装置(図示せず)を介して球受け部102へ払い出す。さらに主制御回路110は、遊技盤101の背面に設けられた演出用CPU111を介して表示装置104に様々な映像を表示させる。   The operation unit 103 launches a game ball with a predetermined force from a launching device (not shown) according to the amount of rotation of the handle by the player's operation. The launched game ball moves upward along the rail 107 and falls between a number of obstacle nails. When it is detected by a sensor (not shown) that a game ball has entered any of the winning devices 108, the main control circuit 110 provided on the back surface of the game board 101 determines a predetermined value corresponding to the winning device 108 containing the game balls. The game balls are paid out to the ball receiving unit 102 via a ball payout device (not shown). Further, the main control circuit 110 displays various images on the display device 104 via the effect CPU 111 provided on the back of the game board 101.

可動役物部106は、遊技の状態に応じて移動する可動体の一例であり、遊技盤101の背面に設けられた、本発明の実施形態またはその変形例による可動体駆動装置112により駆動される。なお、遊技機100が、可動役物部106以外にも可動体を有する場合、例えば、入賞装置107の開口部に、開口の大きさを可変にする可動体を有する場合、その可動体も、可動体駆動装置112によって駆動されてもよい。   The movable accessory part 106 is an example of a movable body that moves according to the state of the game, and is driven by the movable body driving device 112 according to the embodiment of the present invention or a modification thereof provided on the back surface of the game board 101. The In addition, when the gaming machine 100 has a movable body other than the movable accessory part 106, for example, when the opening part of the prize winning device 107 has a movable body that makes the size of the opening variable, the movable body is also It may be driven by the movable body driving device 112.

図10(a)は、固定役物部105を透過して見た、可動体駆動装置112により駆動される可動役物部106の概略正面図であり、(b)は、固定役物部105の背面側から見た、可動役物部106が移動可能範囲の一端に位置する場合の概略背面図であり、(c)は、固定役物部105の背面側から見た、可動役物部106が移動可能範囲の他端に位置する場合の概略背面図である。   FIG. 10A is a schematic front view of the movable accessory portion 106 driven by the movable body driving device 112 as seen through the fixed accessory portion 105, and FIG. It is a schematic rear view when the movable accessory part 106 is located at one end of the movable range, as viewed from the rear side of the movable part, and (c) is a movable accessory part as viewed from the rear side of the fixed accessory part 105. It is a schematic back view in case 106 is located in the other end of the movable range.

この実施形態では、可動役物部106は、星型の装飾部材121と、その装飾部材121を一端にて保持する棒状の支持部材122とを有する。支持部材122は、固定役物部105の背面側に、遊技盤101の左下端から右上方へ向けて斜め方向に、支持部材122の下端と接するように設けられたレール123と係合し、そのレール123に沿って直進移動可能に保持されている。この例では、図10(b)に示されるように、可動役物部106がその移動可能範囲の左下方側の端部に位置する場合、遊技盤101の前面側から見て、装飾部材121が固定役物部105の背後に隠れて遊技者から見えなくなる。一方、図10(c)に示されるように、可動役物部106がその移動可能範囲の右上方側の端部に位置する場合、装飾部材121全体が固定役物部105よりも遊技盤101の中央側に位置することとなり、遊技者が装飾部材121全体を視認可能となる。   In this embodiment, the movable accessory part 106 includes a star-shaped decorative member 121 and a rod-shaped support member 122 that holds the decorative member 121 at one end. The support member 122 engages with a rail 123 provided on the back side of the fixed accessory portion 105 so as to contact the lower end of the support member 122 in an oblique direction from the lower left end of the game board 101 toward the upper right. It is held so as to be able to move straight along the rail 123. In this example, as shown in FIG. 10B, when the movable accessory part 106 is located at the lower left end of the movable range, the decorative member 121 is viewed from the front side of the game board 101. Is hidden behind the fixed accessory part 105 and is not visible to the player. On the other hand, as shown in FIG. 10C, when the movable accessory part 106 is located at the upper right end of the movable range, the entire decorative member 121 is more than the fixed accessory part 105. Thus, the player can visually recognize the entire decorative member 121.

支持部材122の上面側には、直線歯車としての歯が形成されており、この歯が、移動可能範囲の右上方側の端部に可動役物部106が位置する場合の支持部材122の左下端側の端部の位置近傍に設置された減速ギア124と係合する。また減速ギア124は、ステッピングモータ125の回転軸126に取り付けられたギア127と係合している。そのため、ステッピングモータ125が所定角度回転することにより、ギア127及び減速ギア124を介して、その回転角度に対応する所定の移動量だけ可動役物部106が移動する。そしてステッピングモータ125は、可動体駆動装置112により制御される。   Teeth as linear gears are formed on the upper surface side of the support member 122, and these teeth are located on the lower left side of the support member 122 when the movable accessory part 106 is located at the upper right end of the movable range. It engages with a reduction gear 124 installed in the vicinity of the end position on the end side. The reduction gear 124 is engaged with a gear 127 attached to the rotation shaft 126 of the stepping motor 125. Therefore, when the stepping motor 125 rotates by a predetermined angle, the movable accessory portion 106 moves by a predetermined movement amount corresponding to the rotation angle via the gear 127 and the reduction gear 124. The stepping motor 125 is controlled by the movable body driving device 112.

また、移動可能範囲の左下方側の端部に可動役物部106が位置する場合の支持部材122の左下端側の端部の位置近傍には、センサ128が設けられ、可動役物部106が移動可能範囲の左下方側の端部に達した場合に検知信号を発生し、その検知信号を可動体駆動装置112へ送信する。なお、センサ128は、例えば、マグネットセンサとし、支持部材122の左下端側の端部に取り付けられた磁性体を検知することで、可動役物部106がその移動可能範囲の左下端に達したことを検知できる。あるいは、センサ128は、発光ダイオードと受光素子とを有する光学式のセンサであってもよい。   Further, a sensor 128 is provided in the vicinity of the position of the end portion on the lower left side of the support member 122 when the movable accessory portion 106 is located at the lower left end portion of the movable range, and the movable accessory portion 106 is provided. When the movement reaches the lower left end of the movable range, a detection signal is generated, and the detection signal is transmitted to the movable body driving device 112. The sensor 128 is, for example, a magnet sensor, and the movable accessory portion 106 reaches the lower left end of the movable range by detecting a magnetic body attached to the end portion on the lower left end side of the support member 122. Can be detected. Alternatively, the sensor 128 may be an optical sensor having a light emitting diode and a light receiving element.

主制御回路110から演出用CPU111に伝達された遊技の状態を表す状態信号に基づいて、演出用CPU111は、可動役物部106の目標座標を決定し、その決定に従った制御コマンドを生成する。そして演出用CPU111は、生成した制御コマンドを可動体駆動装置112へ出力する。例えば、遊技球が入賞装置107に入る前は、演出用CPU111は、可動役物部106が固定役物部105に隠れるように、可動役物部106をその移動可能範囲の左下方の端部を移動目的地として指定する制御コマンドを可動体駆動装置112へ送信する。一方、遊技球が入賞装置107に入ったことが検知され、そのことを示す状態信号が主制御回路110から演出用CPU111に入力されると、演出用CPU111は、可動役物部106をその移動可能範囲の右上方の端部を移動目的地として指定する制御コマンドを生成し、その制御コマンドを可動体駆動装置112へ送信する。   On the basis of the state signal indicating the state of the game transmitted from the main control circuit 110 to the effect CPU 111, the effect CPU 111 determines the target coordinates of the movable accessory part 106 and generates a control command according to the determination. . Then, the production CPU 111 outputs the generated control command to the movable body driving device 112. For example, before the game ball enters the winning device 107, the directing CPU 111 moves the movable accessory portion 106 to the lower left end of the movable range so that the movable accessory portion 106 is hidden by the fixed accessory portion 105. Is transmitted to the movable body driving device 112 as a moving destination. On the other hand, when it is detected that the game ball has entered the winning device 107 and a state signal indicating this is input from the main control circuit 110 to the effect CPU 111, the effect CPU 111 moves the movable accessory part 106. A control command for designating the upper right end of the possible range as the moving destination is generated, and the control command is transmitted to the movable body driving device 112.

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

1 可動体駆動装置
2 通信回路
3 レジスタ
31 第1メモリ回路
32 第2メモリ回路
4 デューティ比制御回路
5 センサインターフェース部
6 モータ制御回路
61、62 制御回路
63 メモリ回路
7 ソレノイド制御回路
100 弾球遊技機
101 遊技盤
102 球受け部
103 操作部
104 表示装置
105 固定役物部
106 可動役物部
107 レール
108 入賞装置
110 主制御回路
111 演出用CPU
112 可動体駆動装置
121 装飾部材
122 支持部材
123 レール
124 減速ギア
125 ステッピングモータ
126 回転軸
127 ギア
128 センサ
DESCRIPTION OF SYMBOLS 1 Movable body drive device 2 Communication circuit 3 Register 31 1st memory circuit 32 2nd memory circuit 4 Duty ratio control circuit 5 Sensor interface part 6 Motor control circuit 61, 62 Control circuit 63 Memory circuit 7 Solenoid control circuit 100 Bullet ball game machine DESCRIPTION OF SYMBOLS 101 Game board 102 Ball receiving part 103 Operation part 104 Display apparatus 105 Fixed part part 106 Movable part part 107 Rail 108 Prize-winning apparatus 110 Main control circuit 111 CPU for presentation
DESCRIPTION OF SYMBOLS 112 Movable body drive device 121 Decoration member 122 Support member 123 Rail 124 Reduction gear 125 Stepping motor 126 Rotating shaft 127 Gear 128 Sensor

Claims (6)

遊技機に設けられた可動体を駆動する駆動ユニットを制御する可動体駆動装置であって、
前記可動体の移動目的地を規定する制御コマンドを受信する通信部と、
前記可動体の現在位置を記憶する記憶部と、
前記移動目的地と前記現在位置との差、または前記可動体の直前の動作における移動方向に基づいて、前記可動体の次の動作における移動方向を決定し、当該次の動作における移動方向に沿って前記可動体が前記移動目的地に達するまで、前記可動体を移動させるように、前記駆動ユニットを制御する制御部と、
を有することを特徴とする可動体駆動装置。
A movable body drive device for controlling a drive unit for driving a movable body provided in a gaming machine,
A communication unit that receives a control command that defines a moving destination of the movable body;
A storage unit for storing a current position of the movable body;
Based on a difference between the moving destination and the current position, or a moving direction in the previous operation of the movable body, a moving direction in the next operation of the movable body is determined, and along the moving direction in the next operation A control unit for controlling the drive unit to move the movable body until the movable body reaches the moving destination;
A movable body drive device comprising:
前記駆動ユニットはステッピングモータであり、
前記制御コマンドは、前記ステッピングモータの回転速度を表す第1の指標と前記ステッピングモータの加速度または減速度を表す第2の指標とを含み、
前記制御部は、前記可動体が、前記現在位置から前記ステッピングモータの第1のステップ数に対応する距離を移動するまで、前記第2の指標により示された加速度または減速度で前記ステッピングモータの回転速度を加速または減速させ、当該距離を移動した時点で前記第1の指標により示された回転速度となるように前記ステッピングモータを制御する、請求項1に記載の可動体駆動装置。
The drive unit is a stepping motor;
The control command includes a first index representing a rotation speed of the stepping motor and a second index representing an acceleration or deceleration of the stepping motor,
The controller controls the stepping motor at an acceleration or deceleration indicated by the second index until the movable body moves a distance corresponding to the first step number of the stepping motor from the current position. The movable body drive device according to claim 1, wherein the stepping motor is controlled so that the rotation speed is accelerated or decelerated and the rotation speed indicated by the first index is reached when the distance is moved.
前記駆動ユニットはステッピングモータであり、
前記制御コマンドは、前記ステッピングモータの回転速度を表す第1の指標と前記ステッピングモータの加速度または減速度を表す第2の指標とを含み、
前記制御部は、前記可動体が、前記ステッピングモータの第2のステップ数に対応する距離よりも前記移動目的地に近づくと、前記第2の指標により示された加速度または減速度で前記ステッピングモータの回転速度を加速または減速し、当該移動目的地に達した時点で当該回転速度が前記第1の指標により示された回転速度となるように前記ステッピングモータを制御する、請求項1に記載の可動体駆動装置。
The drive unit is a stepping motor;
The control command includes a first index representing a rotation speed of the stepping motor and a second index representing an acceleration or deceleration of the stepping motor,
When the movable body is closer to the moving destination than the distance corresponding to the second step number of the stepping motor, the control unit performs the stepping motor at the acceleration or deceleration indicated by the second index. 2. The stepping motor is controlled according to claim 1, wherein the rotation speed of the stepping motor is controlled so that the rotation speed becomes the rotation speed indicated by the first index when the movement destination is reached. Movable body drive device.
前記駆動ユニットはステッピングモータであり、
前記制御コマンドは、前記ステッピングモータの回転速度を表す第1の指標と前記ステッピングモータの減速度を表す第3の指標とを含み、
前記制御部は、前記可動体が、前記ステッピングモータの第3のステップ数に対応する距離よりも前記移動目的地に近づくと、前記第3の指標により示された減速度で前記ステッピングモータの回転速度を減速し、当該移動目的地に達した時点で当該回転速度が0となるように前記ステッピングモータを制御する、請求項1に記載の可動体駆動装置。
The drive unit is a stepping motor;
The control command includes a first index representing a rotation speed of the stepping motor and a third index representing a deceleration of the stepping motor,
The control unit rotates the stepping motor at a deceleration indicated by the third index when the movable body is closer to the moving destination than a distance corresponding to a third step number of the stepping motor. The movable body drive device according to claim 1, wherein the stepping motor is controlled so that the rotational speed becomes zero when the speed is reduced and the moving destination is reached.
前記駆動ユニットはステッピングモータであり、
前記制御コマンドは、前記ステッピングモータの1ステップの動作に相当する第1の期間に対する前記ステッピングモータに電圧を印加する期間の比を表す第4の指標を含み、
前記第1の期間よりも短い第2の期間を1周期とし、当該第2の期間において、前記第4の指標に表された前記比だけ所定の電圧値を持つパルスが連続する連続パルス信号を生成するデューティ比制御部をさらに有し、
前記制御部は、前記連続パルス信号によって、前記ステッピングモータのステップごとの動作を制御する駆動信号をパルス幅変調し、当該パルス幅変調された駆動信号を前記ステッピングモータへ出力する、
請求項1〜4の何れか一項に記載の可動体駆動装置。
The drive unit is a stepping motor;
The control command includes a fourth index representing a ratio of a period during which a voltage is applied to the stepping motor with respect to a first period corresponding to one-step operation of the stepping motor.
A second period shorter than the first period is defined as one cycle, and in the second period, a continuous pulse signal in which pulses having a predetermined voltage value corresponding to the ratio represented by the fourth index are continued. It further has a duty ratio control unit to generate,
The control unit performs pulse width modulation on a drive signal for controlling the operation of each step of the stepping motor by the continuous pulse signal, and outputs the pulse width modulated drive signal to the stepping motor.
The movable body drive apparatus as described in any one of Claims 1-4.
前記制御コマンドに含まれる前記移動目的地は、前記現在位置を基準とする移動量で表され、
前記記憶部は、前記可動体の直前の動作時の位置をさらに記憶し、
前記制御部は、前記直前の動作時の位置と前記現在位置との差によって前記可動体の直前の動作における移動方向を求める、請求項1〜5の何れか一項に記載の可動体駆動装置。
The movement destination included in the control command is represented by a movement amount based on the current position,
The storage unit further stores a position at the time of the immediately preceding operation of the movable body,
6. The movable body drive device according to claim 1, wherein the control unit obtains a moving direction in the immediately preceding operation of the movable body based on a difference between the position at the time of the immediately preceding operation and the current position. .
JP2011187901A 2011-08-30 2011-08-30 Movable body drive device Active JP5879824B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2011187901A JP5879824B2 (en) 2011-08-30 2011-08-30 Movable body drive device
PCT/JP2012/066045 WO2013031352A1 (en) 2011-08-30 2012-06-22 Movable object driving device and game machine
US14/236,153 US9787233B2 (en) 2011-08-30 2012-06-22 Movable object driving device and game machine
AU2012303305A AU2012303305B2 (en) 2011-08-30 2012-06-22 Movable object driving device and game machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011187901A JP5879824B2 (en) 2011-08-30 2011-08-30 Movable body drive device

Publications (2)

Publication Number Publication Date
JP2013051794A true JP2013051794A (en) 2013-03-14
JP5879824B2 JP5879824B2 (en) 2016-03-08

Family

ID=48013419

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011187901A Active JP5879824B2 (en) 2011-08-30 2011-08-30 Movable body drive device

Country Status (1)

Country Link
JP (1) JP5879824B2 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015154536A (en) * 2014-02-12 2015-08-24 オムロン株式会社 Drive apparatus control device
JP2017023379A (en) * 2015-07-22 2017-02-02 株式会社オリンピア Game machine
JP2017131410A (en) * 2016-01-28 2017-08-03 株式会社オリンピア Game machine
JP2017143902A (en) * 2016-02-15 2017-08-24 オムロン株式会社 Game machine
JP2017147790A (en) * 2016-02-15 2017-08-24 オムロン株式会社 Drive device controller
WO2017141549A1 (en) 2016-02-15 2017-08-24 オムロン株式会社 Driving-device control apparatus and game machine
JP2017536503A (en) * 2014-12-01 2017-12-07 エコラボ ユーエスエー インコーポレイティド Diaphragm pump for dispensing fluid and method accordingly
JP2018148936A (en) * 2017-03-09 2018-09-27 株式会社平和 Game machine
JP2018153423A (en) * 2017-03-17 2018-10-04 サミー株式会社 Game machine

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001104565A (en) * 1999-10-06 2001-04-17 Sankyo Kk Game machine
JP2001327194A (en) * 2000-05-12 2001-11-22 Oriental Motor Co Ltd Pulse oscillation ic and motor positioning control method and device using the ic
JP2010213755A (en) * 2009-03-13 2010-09-30 Daito Giken:Kk Game machine
JP2010220884A (en) * 2009-03-24 2010-10-07 Daito Giken:Kk Game machine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001104565A (en) * 1999-10-06 2001-04-17 Sankyo Kk Game machine
JP2001327194A (en) * 2000-05-12 2001-11-22 Oriental Motor Co Ltd Pulse oscillation ic and motor positioning control method and device using the ic
JP2010213755A (en) * 2009-03-13 2010-09-30 Daito Giken:Kk Game machine
JP2010220884A (en) * 2009-03-24 2010-10-07 Daito Giken:Kk Game machine

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015154536A (en) * 2014-02-12 2015-08-24 オムロン株式会社 Drive apparatus control device
JP2017536503A (en) * 2014-12-01 2017-12-07 エコラボ ユーエスエー インコーポレイティド Diaphragm pump for dispensing fluid and method accordingly
US11067072B2 (en) 2014-12-01 2021-07-20 Ecolab Usa Inc. Diaphragm pump for dosing a fluid and an according method
JP2017023379A (en) * 2015-07-22 2017-02-02 株式会社オリンピア Game machine
JP2017131410A (en) * 2016-01-28 2017-08-03 株式会社オリンピア Game machine
JP2017143902A (en) * 2016-02-15 2017-08-24 オムロン株式会社 Game machine
JP2017147790A (en) * 2016-02-15 2017-08-24 オムロン株式会社 Drive device controller
WO2017141549A1 (en) 2016-02-15 2017-08-24 オムロン株式会社 Driving-device control apparatus and game machine
US10614654B2 (en) 2016-02-15 2020-04-07 Omron Corporation Driving-device control apparatus for driving moving body back and forth and game machine including driving-device control apparatus
JP2018148936A (en) * 2017-03-09 2018-09-27 株式会社平和 Game machine
JP2018153423A (en) * 2017-03-17 2018-10-04 サミー株式会社 Game machine

Also Published As

Publication number Publication date
JP5879824B2 (en) 2016-03-08

Similar Documents

Publication Publication Date Title
JP5879824B2 (en) Movable body drive device
JP5903804B2 (en) Game machine
WO2013031352A1 (en) Movable object driving device and game machine
JP6020011B2 (en) DC motor control device and game machine
US8038525B2 (en) Dynamic generation of a profile for a spinning reel of a gaming system
JP5867354B2 (en) Motor control device
JP5949403B2 (en) Game machine
JP6079454B2 (en) Drive control device
JP5369477B2 (en) Movable body driving apparatus and method, and program
AU2014202759B2 (en) Drive control device and drive control system
JP2018007520A (en) Motor controller and game machine
JP6892736B2 (en) Drive equipment control device
JP2017143902A (en) Game machine
US10614654B2 (en) Driving-device control apparatus for driving moving body back and forth and game machine including driving-device control apparatus
JP2014236809A (en) Game machine
JP6459390B2 (en) DC motor controller
WO2016067787A1 (en) Dc motor control device and game machine
JP6614064B2 (en) Motor control device and game machine
JP6435775B2 (en) Game machine
JP2001119995A (en) Motor-control device and motor-control method
JP2019076378A (en) Slot machine
JP2019093017A (en) Game machine

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140213

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140729

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140925

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20141104

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141219

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150623

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160118

R150 Certificate of patent or registration of utility model

Ref document number: 5879824

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150