JP2010029306A - Pulse generating apparatus and method, and program - Google Patents
Pulse generating apparatus and method, and program Download PDFInfo
- Publication number
- JP2010029306A JP2010029306A JP2008192702A JP2008192702A JP2010029306A JP 2010029306 A JP2010029306 A JP 2010029306A JP 2008192702 A JP2008192702 A JP 2008192702A JP 2008192702 A JP2008192702 A JP 2008192702A JP 2010029306 A JP2010029306 A JP 2010029306A
- Authority
- JP
- Japan
- Prior art keywords
- count value
- counter
- unit
- command
- pulse
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Pinball Game Machines (AREA)
Abstract
【課題】CPU11の処理負荷を低減させる。
【解決手段】制御装置からの指令に基づいて、可変速にパルス信号を発生するクロック信号発生装置51において、アップダウンカウンタ71は、所定の速度でカウンタのカウント値をカウントアップ、またはカウントダウンさせ、リミットカウント生成部72は、指令に基づいて、カウンタのリミットカウント値を生成し、比較部73は、リミットカウント値と、カウンタのカウント値とを比較し、カウント値がカウントアップする場合、カウンタのカウント値がリミットカウント値よりも大きいとき、または、カウント値がカウントダウンする場合、カウンタのカウント値がリミットカウント値よりも大きいとき、パルス信号を発生し、清算部74は、パルス信号が発生されるタイミングで、カウンタのカウント値をクリア、またはプリセットする。本発明は、遊技機の可動役物の駆動制御に適用することができる。
【選択図】図2A processing load on a CPU is reduced.
In a clock signal generator 51 that generates a pulse signal at a variable speed based on a command from a control device, an up / down counter 71 counts up or down a counter value at a predetermined speed, The limit count generation unit 72 generates a limit count value of the counter based on the command, and the comparison unit 73 compares the limit count value with the count value of the counter, and when the count value is counted up, When the count value is larger than the limit count value, or when the count value counts down, when the count value of the counter is larger than the limit count value, a pulse signal is generated, and the clearing unit 74 generates a pulse signal. At the timing, the count value of the counter is cleared or pre- Tsu to door. The present invention can be applied to drive control of a movable accessory of a gaming machine.
[Selection] Figure 2
Description
本発明は、パルス発生装置および方法、並びにプログラムに関し、特に、配線数を削減し、上位の制御装置による処理の負担を軽減できるようにしたパルス発生装置および方法、並びにプログラムに関する。 The present invention relates to a pulse generation device, method, and program, and more particularly, to a pulse generation device, method, and program that reduce the number of wirings and reduce the processing load of a host control device.
パチンコ遊技機、回胴式遊技機に代表される遊技機には、遊技者の娯楽満足度向上を目的として、遊技者への視覚、聴覚、または感覚に訴える演出機能が搭載されている。演出機能は、例えば、待機状態、通常遊技状態、リーチ状態、大当り状態毎に、相応しい動作をさせるものであり、昨今においては、演出機能そのものさえも、遊技機の性能であると言われている。 A gaming machine represented by a pachinko gaming machine and a swivel type gaming machine is equipped with an effect function that appeals to the player's visual, auditory, or sensation for the purpose of improving the entertainment satisfaction of the player. For example, the production function is to perform an appropriate operation for each of the standby state, the normal game state, the reach state, and the big hit state. In recent years, even the production function itself is said to be the performance of the gaming machine. .
パチンコ遊技機では、以前から普通電動役物、特別電動役物などの搭載が認められており、ソレノイドによる遊技球の吸引力、モータによる回転力を駆動源とした可動体の開放若しくは拡大、または、始動口の回転などが演出機能として実現されてきた。これらの可動役物は遊技に直接関係するものだが、最近では、遊技に直接関係のない構造品にも駆動源を搭載し、これらの動作を見て楽しめる遊技機も製造されている。 In pachinko gaming machines, it has been approved to use ordinary electric and special electric instruments for a long time, and the movable body can be opened or expanded using the suction force of a game ball by a solenoid or the rotational force of a motor as a drive source, or Rotation of the start opening has been realized as a production function. Although these movable objects are directly related to games, recently, a gaming machine in which a driving source is mounted on a structure that is not directly related to games and the operation can be enjoyed has been manufactured.
遊技機の演出機能において使用される駆動源としては、ソレノイド、およびステッピングモータなどが挙げられる。 Examples of the drive source used in the rendering function of the gaming machine include a solenoid and a stepping motor.
ソレノイドは、コイル励磁により金属プランジャを吸引し、いわゆる、電動チューリップ、大入賞口の開放、または2種特別電動役物などを動作させる。また、ステッピングモータは、複数コイルの順次励磁により金属アクチュエータをステップ状に回転させ、3種始動口、または特定領域を回転させるといった動作を実現する。 The solenoid attracts the metal plunger by coil excitation, and operates a so-called electric tulip, opening of a special prize opening, or two special electric accessories. In addition, the stepping motor realizes an operation of rotating the metal actuator stepwise by sequentially exciting a plurality of coils to rotate the three kinds of start ports or the specific region.
さらに、最近では、これらの駆動源を、相当数使用して、可動体で複雑な動きを実現させるものが存在している。このように、遊技機1台あたりの駆動源の使用数は、増加傾向にある。 Furthermore, recently, there are some that use a considerable number of these drive sources to realize complex movements with a movable body. As described above, the number of drive sources used per gaming machine is increasing.
ところで、これらの駆動源を駆動させる駆動信号は、遊技機の制御装置(CPU:Central Processing Unit)で駆動波として生成される。 By the way, a drive signal for driving these drive sources is generated as a drive wave by a control device (CPU: Central Processing Unit) of the gaming machine.
しかしながら、上述したように駆動源が増加傾向にあるため、配線本数、および端子数が、不足しつつあると共に、CPUで制御するソフトウェア容量が大きくなることにより、2次的な欠点を発生させることがある。例えば、ステッピングモータ駆動時には、位相が異なるパルス波をモータ1個あたり2乃至4本程生成するが、この周期、位相変化角度、または、その発生順番などにより、回転速度、および回転方向を制御することになるため、ソフトウェア容量そのものが膨大なものとなってしまうといったことがあった。 However, as described above, since the number of drive sources is increasing, the number of wires and the number of terminals are becoming insufficient, and the software capacity controlled by the CPU is increased, which causes secondary defects. There is. For example, when a stepping motor is driven, about 2 to 4 pulse waves with different phases are generated per motor, and the rotation speed and direction are controlled by this period, phase change angle, or generation order thereof. As a result, the software capacity itself has become enormous.
そこで、モータの励磁方法、回転方向、回転速度などのパラメータを制御装置により生成し、ハードウェアを簡略化すると共に、ソフトウェア容量を小さくさせるといった技術が提案されている(特許文献1参照)。 Therefore, a technique has been proposed in which parameters such as a motor excitation method, a rotation direction, and a rotation speed are generated by a control device to simplify the hardware and reduce the software capacity (see Patent Document 1).
また、ステッピングモータの制御を高い分解能で高精度なものにすると共に、ハードウェア点数を少なくして実現できるようにする技術が提案されている(特許文献2参照)。 In addition, there has been proposed a technique that can realize the control of the stepping motor with high resolution and high accuracy and can be realized by reducing the number of hardware points (see Patent Document 2).
ところで、最新の遊技機においては、演出用の可動体からなる可動役物を駆動させるために、1個の制御装置で複数のソレノイドやステッピングモータを集中的に駆動させ、これらの駆動状況を検出する位置検出センサ、またはリミットスイッチといったセンサ類の検出結果などに基づいて、可動体からなる可動役物に、より複雑な動作を実現させることが望まれている。 By the way, in the latest gaming machine, in order to drive a movable accessory consisting of a movable body for production, a single control device drives a plurality of solenoids and stepping motors in a concentrated manner, and detects these driving conditions. Based on the detection result of sensors such as a position detection sensor or a limit switch, it is desired to realize a more complex operation in a movable accessory made of a movable body.
しかしながら、特許文献1に代表されるモータ単品の工夫では、1個の制御装置からの配線本数や制御装置そのものの端子数などを十分に削減することに限界があるため、複数のソレノイドやステッピングモータにより駆動させる可動体からなる可動役物により実現できる動作には限界があった。
However, in the device of a single motor represented by
また、特許文献2の技術においては、確かに、ステッピングモータの制御を高い分解能で高精度なものにすると共に、ハードウェア点数を少なくすることが可能であるが、処理そのものは非常に煩雑なものとなってしまった。
In the technique of
本発明はこのような状況に鑑みてなされたものであり、複数の駆動源をより高度で、かつ複雑に動作させるように制御するにあたり、配線数を削減し、上位の制御装置による処理の負担を軽減できるようにするものである。 The present invention has been made in view of such a situation, and in controlling a plurality of drive sources to operate more sophisticated and complicated, the number of wirings is reduced, and the processing load by the host control device is reduced. It is to be able to reduce.
本発明の一側面のパルス発生装置は、制御装置からの指令に基づいて、可変速にパルス信号を発生するパルス発生装置であって、所定の速度でカウンタのカウント値をカウントアップ、またはカウントダウンするカウント手段と、前記指令に基づいて、前記カウンタのリミットカウント値を生成するリミットカウント値生成手段と、前記リミットカウント値と、前記カウンタのカウント値とを比較し、前記カウント値がカウントアップする場合、前記カウンタのカウント値が前記リミットカウント値よりも大きいとき、または、前記カウント値がカウントダウンする場合、前記カウンタのカウント値が前記リミットカウント値よりも小さいとき、前記パルス信号を発生するパルス信号発生手段と、前記パルス信号が発生されるタイミングで、前記カウンタの前記カウント値をクリア、またはプリセットする清算手段とを含む。 A pulse generator according to one aspect of the present invention is a pulse generator that generates a pulse signal at a variable speed based on a command from a controller, and counts up or down a count value of a counter at a predetermined speed. The count means, the limit count value generating means for generating the limit count value of the counter based on the command, the limit count value and the count value of the counter are compared, and the count value is counted up Generating a pulse signal when the count value of the counter is larger than the limit count value or when the count value counts down, and when the count value of the counter is smaller than the limit count value Means and the timing at which the pulse signal is generated, Clearing the count value of the serial counter or and a clearing means for presetting.
前記パルス発生装置には、予め設定された複数の原発振パルス波を分周により発生する分周手段と、前記分周手段により発生される複数の前記原発振パルス波を所定時間で順次切り替える切り替え手段とをさらに含ませるようにすることができ、前記カウント手段には、前記切り替え手段により切り替えられた原発振パルス波に基づいた速度でカウンタのカウント値をカウントアップ、またはカウントダウンさせるようにすることができる。 The pulse generator includes a frequency dividing means for generating a plurality of preset original oscillation pulse waves by frequency division, and a switching for sequentially switching the plurality of original oscillation pulse waves generated by the frequency dividing means at a predetermined time. Means for counting up the count value of the counter at a speed based on the original oscillation pulse wave switched by the switching means. Can do.
前記カウント手段には、カウント値のカウントアップ、もしくはカウントダウンする度合が、時間の経過に伴って曲線状に変化するようにさせることができる。 The counting means can change the degree of counting up or down in a curved shape with the passage of time.
前記カウント手段には、カウント値のカウントアップ、もしくはカウントダウンする度合が、時間の経過に伴って複数の1次関数が連結されることにより擬似的に構成される擬似曲線状に変化するようにさせることができる。 The counting means causes the count value to be counted up or down to change in a pseudo curve shape formed by connecting a plurality of linear functions over time. be able to.
時間の経過に伴う前記擬似曲線状の変化は、反比例関数に類似した擬似曲線状の変化を含ませるようにすることができる。 The pseudo-curve-like change with the passage of time can include a pseudo-curve-like change similar to an inverse proportional function.
本発明の駆動装置には、前記制御装置からの指令を受信する受信手段と、前記指令に基づいて、駆動指令内容を解釈する動作制御手段と、前記パルス信号に基づいて、モータ、ソレノイド、LED、または音声発生装置を含む動作装置を駆動させる出力制御手段とをさらに含む請求項1乃至5のいずれかに記載のパルス発生装置を設けるようにさせることができる。
The drive device of the present invention includes a receiving means for receiving a command from the control device, an operation control means for interpreting the content of the drive command based on the command, a motor, a solenoid, an LED based on the pulse signal Or a pulse generator according to any one of
前記動作制御手段には、前記指令に基づき、動作状況を指定する動作状況指定手段と、前記受信手段により、次の指令が受信されるまで、前記動作状況指定手段により指定された動作状況を保持する動作状況保持手段をさらに含ませるようにすることができる。 The operation control means retains the operation status designated by the operation status designation means until the next command is received by the reception means and the operation status designation means for designating an operation situation based on the command. It is possible to further include an operation status holding means.
前記出力制御手段にて駆動する前記動作装置毎の適合出力形態を、前記動作制御手段、または前記出力制御手段に設定する出力設定手段をさらに含ませるようにすることができる。 The operation control means or an output setting means for setting the output control means may be further included in the adaptive output form for each of the operation devices driven by the output control means.
前記動作制御手段には、前記指令に基づいて、複数の前記出力制御手段のいずれかを選定する選定手段をさらに含ませるようにすることができ、複数の前記出力制御手段に接続された、複数の前記動作装置のうち、前記選定手段により選定された前記前記出力制御手段毎に、前記動作状況を個別に指定させるようにすることができる。 The operation control means may further include a selection means for selecting any of the plurality of output control means based on the command, and a plurality of connection means connected to the plurality of output control means. The operation status can be individually designated for each of the output control means selected by the selection means.
複数の前記出力制御手段に含まれる、前記切替手段、および前記分周手段のいずれか、または、両方を複数の前記出力制御手段により共用するようにさせることができる。 Either or both of the switching means and the frequency dividing means included in the plurality of output control means can be shared by the plurality of output control means.
前記制御装置と、少なくとも1つ以上の、請求項6乃至10のいずれかの駆動装置とからなる駆動システムは、前記受信手段により受信される指令に、複数の前記駆動装置をそれぞれ識別するアドレス情報を含ませ、前記アドレス情報に基づいて、複数の前記駆動装置を識別するアドレス識別手段をさらに設けるようにすることができる。 A drive system comprising the control device and at least one drive device according to any one of claims 6 to 10, wherein address information for identifying each of the plurality of drive devices in a command received by the receiving means And an address identification means for identifying a plurality of the drive devices based on the address information.
本発明の遊技機には、請求項1乃至5のパルス発生装置、請求項6乃至10の駆動装置、または請求項11の駆動システムの少なくとも1つを含ませるようにすることができる。
The gaming machine according to the present invention may include at least one of the pulse generation device according to
本発明の一側面のパルス発生方法は、制御装置からの指令に基づいて、可変速にパルス信号を発生するパルス発生装置のパルス発生方法であって、所定の速度でカウンタのカウント値をカウントアップ、またはカウントダウンするカウントステップと、前記指令に基づいて、前記カウンタのリミットカウント値を生成するリミットカウント値生成ステップと、前記リミットカウント値と、前記カウンタのカウント値とを比較し、前記カウント値がカウントアップする場合、前記カウンタのカウント値が前記リミットカウント値よりも大きいとき、または、前記カウント値がカウントダウンする場合、前記カウンタのカウント値が前記リミットカウント値よりも小さいとき、前記パルス信号を発生するパルス信号発生ステップと、前記パルス信号が発生されるタイミングで、前記カウンタの前記カウント値をクリア、またはプリセットする清算ステップとを含む。 A pulse generation method according to one aspect of the present invention is a pulse generation method of a pulse generation device that generates a pulse signal at a variable speed based on a command from a control device, and counts up a count value of a counter at a predetermined speed. Or a count step for counting down, a limit count value generating step for generating a limit count value of the counter based on the command, a comparison between the limit count value and the count value of the counter, and the count value is When counting up, when the count value of the counter is larger than the limit count value, or when the count value counts down, the pulse signal is generated when the count value of the counter is smaller than the limit count value A pulse signal generating step, and the pulse signal In timing but generated, and a clearing step of clearing the count value of the counter or preset.
本発明の一側面のプログラムは、制御装置からの指令に基づいて、可変速にパルス信号を発生するパルス発生装置を制御するコンピュータに、所定の速度でカウンタのカウント値をカウントアップ、またはカウントダウンするカウントステップと、前記指令に基づいて、前記カウンタのリミットカウント値を生成するリミットカウント値生成ステップと、前記リミットカウント値と、前記カウンタのカウント値とを比較し、前記カウント値がカウントアップする場合、前記カウンタのカウント値が前記リミットカウント値よりも大きいとき、または、前記カウント値がカウントダウンする場合、前記カウンタのカウント値が前記リミットカウント値よりも小さいとき、前記パルス信号を発生するパルス信号発生ステップと、前記パルス信号が発生されるタイミングで、前記カウンタの前記カウント値をクリア、またはプリセットする清算ステップとを含む処理を実行させる。 A program according to one aspect of the present invention counts up or down a count value of a counter at a predetermined speed to a computer that controls a pulse generator that generates a pulse signal at a variable speed based on a command from the controller. A count step, a limit count value generation step for generating a limit count value of the counter based on the command, a comparison between the limit count value and the count value of the counter, and the count value is counted up Generating a pulse signal when the count value of the counter is larger than the limit count value or when the count value counts down, and when the count value of the counter is smaller than the limit count value Step and the pulse signal At the timing generated, to execute a processing including a clearing step of clearing the count value or preset, the counter.
本発明の一側面においては、所定の速度でカウンタのカウント値がカウントアップ、またはカウントダウンされ、前記指令に基づいて、前記カウンタのリミットカウント値が生成され、前記リミットカウント値と、前記カウンタのカウント値とが比較され、前記カウント値がカウントアップされる場合、前記カウンタのカウント値が前記リミットカウント値よりも大きいとき、または、前記カウント値がカウントダウンされる場合、前記カウンタのカウント値が前記リミットカウント値よりも大きいとき、前記パルス信号が発生され、前記パルス信号が発生されるタイミングで、前記カウンタの前記カウント値がクリア、またはプリセットされる。 In one aspect of the present invention, the count value of the counter is counted up or down at a predetermined speed, the limit count value of the counter is generated based on the command, the limit count value, and the count of the counter When the count value is compared, the count value is counted up, the count value of the counter is greater than the limit count value, or when the count value is counted down, the count value of the counter is When the count value is larger, the pulse signal is generated, and the count value of the counter is cleared or preset at the timing when the pulse signal is generated.
本発明の一側面のパルス発生装置における、所定の速度でカウンタのカウント値をカウントアップ、またはカウントダウンするカウント手段とは、例えば、アップダウンカウンタであり、前記指令に基づいて、前記カウンタのリミットカウント値を生成するリミットカウント値生成手段とは、例えば、リミットカウント生成部であり、前記リミットカウント値と、前記カウンタのカウント値とを比較し、前記カウント値がカウントアップする場合、前記カウンタのカウント値が前記リミットカウント値よりも大きいとき、または、前記カウント値がカウントダウンする場合、前記カウンタのカウント値が前記リミットカウント値よりも小さいとき、前記パルス信号を発生するパルス信号発生手段とは、例えば、比較部であり、前記パルス信号が発生されるタイミングで、前記カウンタの前記カウント値をクリア、またはプリセットする清算手段とは、例えば、清算部である。 In the pulse generator according to one aspect of the present invention, the counting means for counting up or counting down the count value of the counter at a predetermined speed is, for example, an up / down counter, and based on the command, the limit count of the counter The limit count value generation means for generating a value is, for example, a limit count generation unit, which compares the limit count value with the count value of the counter and counts up the counter when the count value is counted up. When the value is larger than the limit count value, or when the count value counts down, when the count value of the counter is smaller than the limit count value, the pulse signal generating means for generating the pulse signal is, for example, The pulse signal At a timing generated, clears the count value of the counter or The clearing means for presetting, for example, a clearing unit.
比較部は、例えば、アップダウンカウンタにより、カウントアップされるカウンタのカウント値と、リミットカウント生成部により生成されるリミットカウント値とを比較し、カウンタのカウント値が、リミットカウント値よりも大きい場合、クロック信号を発生する。また、クロック信号が発生されると、清算部が、カウンタのカウント値をクリア、またはプリセットすることにより、カウンタのカウント値が初期化される。この瞬間に、比較部は、クロック信号の発生を停止することになる。すなわち、アップダウンカウンタによりカウントアップ、または、カウントダウンされるカウント値が、リミットカウント値で設定される毎に、1カウント分の時間だけ、クロック信号が発生されることにより、パルス状のクロック信号(パルス信号)が繰り返し発生されることになる。 For example, the comparison unit compares the count value of the counter counted up by the up / down counter with the limit count value generated by the limit count generation unit, and the counter count value is larger than the limit count value Generate a clock signal. When the clock signal is generated, the clearing unit clears or presets the count value of the counter, thereby initializing the count value of the counter. At this moment, the comparison unit stops generating the clock signal. That is, every time the count value counted up or down by the up / down counter is set as the limit count value, the clock signal is generated for a time corresponding to one count, whereby the pulse-shaped clock signal ( Pulse signal) is repeatedly generated.
結果として、アップダウンカウンタのクロック速度や、リミットカウント値の設定により、パルス信号の発生間隔や発生時間を可変にすることが可能となるので、このパルス信号に基づいて、生成される出力信号により、安定的にLED、スッテピングモータ、音声発生装置、およびソレノイドなどの駆動源を高度に制御しながら動作させることが可能となる。また、上位の制御装置からの制御信号は、カウントアップ、または、カウントダウンの開始タイミング、クロック速度、およびリミットカウント値を指示するだけでよく、実際に駆動源が動作される際には、可動体駆動装置が、この制御信号に基づいて、自走するのみでよいため、制御信号の配信に必要とされる配線数を削減することが可能になると共に、上位の制御装置による処理の負担を軽減することが可能となる。 As a result, the pulse signal generation interval and generation time can be made variable by setting the clock speed of the up / down counter and the limit count value, so that the output signal generated based on this pulse signal It is possible to stably operate the LED, the stepping motor, the sound generator, the solenoid, and other driving sources with high control. Also, the control signal from the host control device only needs to indicate the count-up or count-down start timing, the clock speed, and the limit count value. When the drive source is actually operated, the movable body Since the drive device only needs to be self-propelled based on this control signal, it is possible to reduce the number of wires required for the distribution of the control signal and reduce the processing load of the host control device. It becomes possible to do.
本発明によれば、複数の駆動源をより高度で、かつ複雑に動作させるにあたり、上位の制御装置による処理の負担を軽減し、指令の数に応じた配線数を削減することが可能となる。 According to the present invention, when a plurality of drive sources are operated more sophisticated and complicated, it is possible to reduce the processing load of the host control device and to reduce the number of wirings according to the number of commands. .
以下に本発明の実施の形態を説明するが、本発明の構成要件と、発明の詳細な説明に記載の実施の形態との対応関係を例示すると、次のようになる。この記載は、本発明をサポートする実施の形態が、発明の詳細な説明に記載されていることを確認するためのものである。従って、発明の詳細な説明中には記載されているが、本発明の構成要件に対応する実施の形態として、ここには記載されていない実施の形態があったとしても、そのことは、その実施の形態が、その構成要件に対応するものではないことを意味するものではない。逆に、実施の形態が構成要件に対応するものとしてここに記載されていたとしても、そのことは、その実施の形態が、その構成要件以外の構成要件には対応しないものであることを意味するものでもない。 Embodiments of the present invention will be described below. Correspondences between the configuration requirements of the present invention and the embodiments described in the detailed description of the present invention are exemplified as follows. This description is to confirm that the embodiments supporting the present invention are described in the detailed description of the invention. Accordingly, although there are embodiments that are described in the detailed description of the invention but are not described here as embodiments corresponding to the constituent elements of the present invention, It does not mean that the embodiment does not correspond to the configuration requirements. Conversely, even if an embodiment is described here as corresponding to a configuration requirement, that means that the embodiment does not correspond to a configuration requirement other than the configuration requirement. It's not something to do.
すなわち、本発明の一側面のパルス発生装置(例えば、図2のクロック信号生成部51)は、制御装置からの指令に基づいて、可変速にパルス信号を発生するパルス発生装置であって、所定の速度でカウンタのカウント値をカウントアップ、またはカウントダウンするカウント手段(例えば、図2のアップダウンカウンタ71)と、前記指令に基づいて、前記カウンタのリミットカウント値を生成するリミットカウント値生成手段(例えば、図2のリミットカウント生成部72)と、前記リミットカウント値と、前記カウンタのカウント値とを比較し、前記カウント値がカウントアップする場合、前記カウンタのカウント値が前記リミットカウント値よりも大きいとき、または、前記カウント値がカウントダウンする場合、前記カウンタのカウント値が前記リミットカウント値よりも小さいとき、前記パルス信号を発生するパルス信号発生手段(例えば、図2の比較部73)と、前記パルス信号が発生されるタイミングで、前記カウンタの前記カウント値をクリア、またはプリセットする清算手段(例えば、図2の清算部74)とを含む。
That is, the pulse generator according to one aspect of the present invention (for example, the
前記パルス発生手段には、予め設定された複数の原発振パルス波を分周により発生する分周手段(例えば、図16の分周部23’、または、図17の分周部151)と、前記分周手段により発生される複数の前記原発振パルス波を所定時間で順次切り替える切り替え手段(例えば、図16の原発振選択部91、または、図17の分周切替部174)とをさらに含ませるようにすることができ、前記カウント手段には、前記切り替え手段により切り替えられた原発振パルス波に基づいた速度でカウンタのカウント値をカウントアップ、またはカウントダウンさせるようにすることができる。
The pulse generating means includes frequency dividing means for generating a plurality of preset original oscillation pulse waves by frequency division (for example, the
本発明の駆動装置(例えば、図2の可動体駆動装置12)には、前記制御装置からの指令を受信する受信手段(例えば、図2の受信部21)と、前記指令に基づいて、駆動指令内容を解釈する動作制御手段(例えば、図2の動作制御部22)と、前記パルス信号に基づいて、モータ、ソレノイド、LED、または音声発生装置を含む動作装置を駆動させる出力制御手段(例えば、図2の出力波形生成部53)とをさらに含む請求項1乃至5のいずれかに記載のパルス発生装置を設けるようにさせることができる。
The driving device of the present invention (for example, the movable body driving device 12 of FIG. 2) is driven based on receiving means (for example, the receiving
前記動作制御手段には、前記指令に基づき、動作状況を指定する動作状況指定手段(例えば、図2の動作状況指定部43)と、前記受信手段により、次の指令が受信されるまで、前記動作状況指定手段により指定された動作状況を保持する動作状況保持手段(例えば、図2の動作状況保持部52)をさらに含ませるようにすることができる。
Based on the command, the operation control unit includes an operation status designating unit (for example, the operation status designating unit 43 in FIG. 2) for designating an operation status and the receiving unit until the next command is received. An operation status holding unit (for example, the operation
前記出力制御手段にて駆動する動作装置毎の適合出力形態を、前記動作制御手段、または前記出力制御手段に設定する出力設定手段(例えば、図2の出力設定部83)をさらに含ませるようにすることができる。
The adaptive output form for each operation device driven by the output control unit is further included in the operation control unit or an output setting unit (for example, the
前記動作制御手段には、前記指令に基づいて、複数の前記出力制御手段のいずれかを選定する選定手段(例えば、図2の選定部44)をさらに含ませるようにすることができ、複数の前記出力制御手段に接続された、複数の前記動作装置のうち、前記選定手段により選定された前記動作装置毎に、前記動作状況を個別に指定させるようにすることができる。
The operation control means may further include a selection means (for example, a
前記制御装置と、少なくとも1つ以上の、請求項6乃至10のいずれかの駆動装置とからなる駆動システムは、前記受信手段により受信される指令に、複数の前記駆動装置をそれぞれ識別するアドレス情報を含ませ、前記アドレス情報に基づいて、複数の前記駆動装置を識別するアドレス識別手段(例えば、図2のアドレス認識部42)をさらに設けるようにすることができる。
A drive system comprising the control device and at least one drive device according to any one of claims 6 to 10, wherein address information for identifying each of the plurality of drive devices in a command received by the receiving means And an address identifying means (for example, the
本発明の遊技機(例えば、図1の遊技機の駆動システム)には、請求項1乃至5のパルス発生装置、請求項6乃至10の駆動装置、または請求項11の駆動システムの少なくとも1つを含ませるようにすることができる。
The gaming machine of the present invention (for example, the driving system of the gaming machine of FIG. 1) includes at least one of the pulse generators of
本発明の一側面のパルス発生方法は、制御装置からの指令に基づいて、可変速にパルス信号を発生するパルス発生装置のパルス発生方法であって、所定の速度でカウンタのカウント値をカウントアップ、またはカウントダウンするカウントステップ(図9のステップS132)と、前記指令に基づいて、前記カウンタのリミットカウント値を生成するリミットカウント値生成ステップ(図10のステップS143)と、前記リミットカウント値と、前記カウンタのカウント値とを比較し、前記カウント値がカウントアップする場合、前記カウンタのカウント値が前記リミットカウント値よりも大きいとき、または、前記カウント値がカウントダウンする場合、前記カウンタのカウント値が前記リミットカウント値よりも小さいとき、前記パルス信号を発生するパルス信号発生ステップ(図10のステップS147)と、前記パルス信号が発生されるタイミングで、前記カウンタの前記カウント値をクリア、またはプリセットする清算ステップ(図10のステップS148)とを含む。 A pulse generation method according to one aspect of the present invention is a pulse generation method of a pulse generation device that generates a pulse signal at a variable speed based on a command from a control device, and counts up a count value of a counter at a predetermined speed. Or a count step for counting down (step S132 in FIG. 9), a limit count value generating step for generating a limit count value of the counter based on the command (step S143 in FIG. 10), the limit count value, When the count value is counted up, when the count value is larger than the limit count value, or when the count value is counted down, the count value of the counter is compared with the count value of the counter When it is smaller than the limit count value, the pulse A pulse signal generating step for generating a signal (step S147 in FIG. 10), and a clearing step (step S148 in FIG. 10) for clearing or presetting the count value of the counter at the timing at which the pulse signal is generated. Including.
図1は、本発明に係る遊技機の駆動システムの一実施の形態の構成を示す図である。 FIG. 1 is a diagram showing a configuration of an embodiment of a gaming machine drive system according to the present invention.
この駆動システムは、パチンコ遊技機や回胴式遊技機などに代表される遊技機の、可動体からなる可動役物を駆動させるためのシステムである。駆動システムは、CPU(Central Processing Unit)11、可動体駆動装置12−1,12−2から構成されており、可動体駆動装置12−1が、モータM1−1,M2−1を、可動体駆動装置12−2が、モータM2−2,M2−2を、それぞれ駆動させることによりモータM1−1,M2−1,M1−2,M2−2の回転に連動して駆動する可動体からなる可動役物を駆動させる。 This driving system is a system for driving a movable accessory made of a movable body of a gaming machine represented by a pachinko gaming machine or a spinning-type gaming machine. The drive system includes a CPU (Central Processing Unit) 11 and movable body drive devices 12-1 and 12-2. The movable body drive device 12-1 moves the motors M1-1 and M2-1 to a movable body. The driving device 12-2 includes a movable body that is driven in conjunction with the rotation of the motors M1-1, M2-1, M1-2, and M2-2 by driving the motors M2-2 and M2-2, respectively. Drive the movable accessory.
このモータM1−1,M2−1,M1−2,M2−2は、例えば、ステッピングモータなどであり、モータM1−1,M2−1は、それぞれコイルL1−1−1,L2−1−1、およびコイルL1−2−1,L2−2−1の励磁の切替により段階的に回転し、モータM1−2,M2−2は、それぞれコイルL1−1−2,L2−1−2、およびコイルL1−2−2,L2−2−2の励磁の切替により段階的に回転する。 The motors M1-1, M2-1, M1-2, and M2-2 are, for example, stepping motors, and the motors M1-1 and M2-1 are coils L1-1-1 and L2-1-1. , And the coils L1-2-1, L2-2-1, and the motors M1-2, M2-2 are rotated stepwise by switching the excitation of the coils L1-2-1, L2-2-1, respectively. The coils L1-2-2 and L2-2-2 are rotated stepwise by switching the excitation.
尚、可動体駆動装置12−1,12−2、モータM1−1,M1−2,M2−1,M2−2、およびコイルL1−1−1,L2−1−1,L1−2−1,L2−2−1,L1−1−2,L2−1−2,L1−2−2,L2−2−2のそれぞれについて特に区別する必要がない場合、単に、可動体駆動装置12、モータM1,M2、およびコイルL1−1,L2−1,L1−2,L2−2と称するものとし、その他の構成についても同様に称するものとする。また、図1においては、CPU11は、2個の可動体駆動装置12の動作を制御する例について示されているが、CPU11が、制御する可動体駆動装置12の個数は2個以上であってもよいものである。さらに、可動体駆動装置12についても、個別に2個ずつのモータM1,M2を駆動させる例について説明するが、制御すべきモータの個数はそれぞれ2個に限定されるものではなく、それ以上の個数のモータを駆動させるものであってもよい。また、図1においては、可動体駆動装置12は、それぞれ1種類のモータを駆動させる例について示されているが、可動体を駆動させる機構であればモータに限るものではなく、例えば、ソレノイドなどであってもよい。
The movable body driving devices 12-1, 12-2, motors M1-1, M1-2, M2-1, M2-2, and coils L1-1-1, L2-1-1, L1-2-1. , L2-2-1, L1-1-2, L2-1-2, L1-2-2, and L2-2-2, the movable body drive device 12 and the motor are simply required. M1, M2, and coils L1-1, L2-1, L1-2, and L2-2 will be referred to, and other configurations will be referred to in the same manner. Further, in FIG. 1, the
CPU11は、可動体駆動システムの動作の全体を制御しており、クロック端子CKより出力するクロック信号に同期して、データ端子DATAよりシリアルデータとして指令データを出力し、可動体駆動装置12−1,12−2に対して、それぞれが駆動を制御しているモータM1−1,M2−1,M1−2,M2−2の駆動の指令データを供給する。この際、CPU11は、可動体駆動装置12−1,12−2のいずれに対しての指示であるかを区別するアドレスの情報を付して指令データを供給する。また、CPU11は、併せて、モータM1,M2のいずれへの指示であるかを区別する出力系統を識別する情報も付した指令データを供給する。さらに、CPU11は、併せて、デバイスを識別するデバイス認識情報を付して指令データを供給する。デバイス認識情報とは、デバイスとして、例えば、モータを特定する情報であり、さらに、モータとは異なるデバイスとして、例えば、発光ダイオードLEDを用いる場合、モータM1,M2については、モータを識別する情報を、発光ダイオードLEDについては、発光ダイオードLEDを識別する情報をデバイス認識情報として付した指令データが供給される。
The
また、CPU11は、可動体駆動装置12−1,12−2のそれぞれのモータM1,M2の駆動内容により、必要に応じて、駆動内容を示す動作データを生成し、指令データに含めて可動体駆動装置12−1,12−2に供給する。
In addition, the
次に、図2を参照して、CPU11および可動体駆動装置12の詳細な実施の形態の構成例について説明する。
Next, a detailed configuration example of the
判定部111は、可動体駆動装置12が組み込まれている遊技機の遊技状態、すなわち、通常状態、リーチ状態、および大当り状態に対応して、ステッピングモータM1,M2をどのように駆動させるかを判定し、判定結果である駆動内容を動作データ生成部112に供給する。
The
動作データ生成部112は、判定部111からの判定結果に基づいて、具体的な動作内容を示す動作データを生成し、指令データ送信部113に供給する。
The operation data generation unit 112 generates operation data indicating specific operation contents based on the determination result from the
指令データ送信部113は、動作データ生成部112より供給されてくる動作データを含めて、指令データを生成し、宛先となるデバイス(デバイスの種類としては、例えば、可動体駆動装置の他、LED(Light Emission Diode)駆動装置などを含む)を特定するデバイス認識データ、および、例えば、可動体駆動装置12をデバイスとして特定した場合、可動体駆動装置12を特定するアドレスデータを付して、データ出力端子DATAおよびクロック信号出力端子CKより、クロック信号に同期してシリアルデータとして指令データを全ての可動体駆動装置12に送信する。
The command
受信部21は、受信制御部31、およびシリアル−パラレル変換部32より構成されており、CPU11よりクロック信号に同期して送信されてくるシリアルデータからなる指令データを受信し、パラレルデータに変換して動作制御部22に供給する。受信制御部31は、シリアルデータ受信部31aおよびクロックデータ受信部31bを備えており、クロックデータ受信部31bにより受信されるクロックデータに基づいたクロック信号に同期して、シリアルデータ受信部31aで受信されるシリアルデータとして指令データを受信し、シリアル−パラレル変換部32に供給する。シリアル−パラレル変換部32は、シリアルデータをパラレルデータに変換し、パラレルデータに変換された指令データを動作制御部22に供給する。
The
動作制御部22は、デバイス認識部41、アドレス認識部42、動作状況指定部43、および選定部44を備えており、受信部21より供給されてくる指令データを取得すると、内蔵するデバイス認識部41、およびアドレス認識部42を制御して、自らへの指令データであるか否かを認識させ、自らへの指令データであると認識された場合にのみ、指令データに基づいて、出力制御部24−1,24−2への出力を指示する。
The
デバイス認識部41は、CPU11より供給されてくる指令データに含まれるデバイスデータを読み出し、自らを識別するデバイスであるか否かを判定し、自らを識別するデバイスである場合にのみ、指令データを後段のアドレス認識部42に供給する。より具体的には、識別すべきデバイスが2種類の場合、1ビット分のアドレスデータが構成されればよく、例えば、0の場合、デバイスを可動体駆動装置とし、1の場合、デバイスをLED駆動装置とするようにしてもよい。
The
アドレス認識部42は、CPU11より供給されてくる指令データに含まれるアドレスデータを読み出し、自らを識別するアドレスであるか否かを判定し、自らを識別するアドレスである場合にのみ、指令データを後段の動作状況指定部43に供給する。より具体的には、識別すべき可動体駆動装置12が可動体駆動装置12−1または12−2の2台である場合、1ビット分のアドレスデータが構成されればよいが、それ以上であった場合、その数に対応したビット数のアドレスデータとなる。例えば、3ビットのアドレスデータを利用する場合、図1における可動体駆動装置12−1には、自らのアドレスデータの設定端子A1乃至A3が(A1,A2,A3)=(Hi,Low,Low)に設定されているため、アドレス認識部42は、アドレスデータである(A1,A2,A3)=(Hi,Low,Low)=(1,0,0)と、供給されてきた指令データに含まれるアドレスデータとを比較し、一致するとき、すなわち、アドレスデータが(A1,A2,A3)=(Hi,Low,Low)=(1,0,0)であるとき、自らのアドレスであると認識する。また、例えば、図1における可動体駆動装置12−2には、自らのアドレスデータの設定端子A1乃至A3が(A1,A2,A3)=(Low,Hi,Low)=(0,1,0)に設定されているため、アドレス認識部42は、アドレスデータである(A1,A2,A3)=(Low,Hi,Low)=(0,1,0)と、供給されてきた指令データに含まれるアドレスデータとを比較し、一致するとき、すなわち、アドレスデータが(A1,A2,A3)=(Low,Hi,Low)=(0,1,0)であるとき、自らのアドレスであると認識する。
The
尚、可動体駆動装置12が、さらに多く設けられ、例えば、可動体駆動装置12−1乃至12−Nが設けられているような場合、アドレスデータのデータビットを可動体駆動装置12の個数に対応して設け、対応してアドレス識別部42にさらに設定端子を増設し、それぞれを識別するアドレスを設定することで対応することができる。
In addition, when the movable body drive device 12 is further provided, for example, when the movable body drive devices 12-1 to 12-N are provided, the data bit of the address data is set to the number of the movable body drive devices 12. Correspondingly, it is possible to cope with the problem by providing additional setting terminals correspondingly to the
分周部23は、いわゆる分周回路から構成されており、予め設定された比較的高周波の周波数f0のクロック信号を出力制御部24−1,24−2に供給する。
The
出力制御部24−1,24−2は、動作制御部22からの指示のうち、自らの出力系統に対応する指示の場合、その指示に基づいて、分周部23より供給されてくる予め設定されている周波数f0のクロック信号に基づいて、順次、アップダウンカウンタ71−1,71−2のカウント値をカウントアップ、または、カウントダウンし、カウントリミット値とを比較し、比較結果に応じて、出力波形生成部53により所定の波形の出力信号を発生させ、モータM1またはM2を駆動させる。
In the case of an instruction corresponding to its own output system among the instructions from the
動作状況指定部43は、CPU11から供給された指令データに含まれる出力系統データおよび動作データに基づいて、動作状況を指定し、選定部44に指示し、出力制御部24−1または24−2によりそれぞれステッピングモータM1,M2を駆動させる。
The operation status designation unit 43 designates the operation status based on the output system data and the operation data included in the command data supplied from the
選定部44は、動作状況指定部43より供給されてくる指示に含まれる、指令データの出力系統データに基づいて、出力制御部24−1または24−2の何れかを選定し、動作データに対応する動作を指示する。
The
出力制御部24−1,24−2は、それぞれクロック信号生成部51−1,51−2、動作状況保持部52−1,52−2、および出力波形生成部53−1,53−2から構成されている。 The output control units 24-1 and 24-2 are respectively from clock signal generation units 51-1 and 51-2, operation status holding units 52-1 and 52-2, and output waveform generation units 53-1 and 53-2. It is configured.
クロック信号生成部51−1,51−2は、それぞれアップダウンカウンタ71−1,71−2、リミットカウント生成部72−1,72−2、比較部73−1,73−2、および清算部74−1,74−2から構成されており、出力波形生成部53に対してスッテピングモータM1,M2を駆動させる出力波形信号を発生させるクロック信号を出力する。
The clock signal generation units 51-1 and 51-2 include up / down counters 71-1 and 71-2, limit count generation units 72-1 and 72-2, comparison units 73-1 and 73-2, and a settlement unit, respectively. 7, 7-4, and outputs a clock signal for generating output waveform signals for driving the stepping motors M <b> 1 and M <b> 2 to the output
より詳細には、図3で示されるように、アップダウンカウンタ71は、分周部23より供給されてくる比較的高速の周波数f0のクロック信号に基づいて、カウント値をカウントアップ、または、カウントダウンするカウンタであり、カウント値を示すカウント信号を比較部73に供給する。また、アップダウンカウンタ71は、清算部74より供給されるクリア信号によりカウンタのカウント値の値を0にクリアする。
More specifically, as shown in FIG. 3, the up / down counter 71 counts up or counts down the count value based on a relatively high-speed clock signal f0 supplied from the
リミットカウント生成部72は、動作状況保持部52より供給されてくるリミット信号に基づいて、アップダウンカウンタのカウント値における上限値(または、下限値)を示すリミットカウント値を比較部73に供給する。
The limit
比較部73は、リミットカウント生成部72より供給されてくるリミットカウント値と、アップダウンカウンタ71より供給されてくるカウント信号に基づいたカウント値とを比較し、カウント値がカウントアップされる場合、カウント値が、リミットカウント値よりも大きいとき、パルス状のクロック信号を発生し、出力波形生成部53に供給する。
The
動作状況保持部52は、動作制御部22より供給されてくる動作状況を保持し、動作状況に含まれているスタート信号、およびリミット信号を、それぞれ出力波形生成部53およびクロック信号生成部51に供給する。
The operation
図2の出力波形生成部53−1,53−2は、いずれも出力波形整形部81−1,81−2、出力部82−1,82−2、および出力設定部83−1,83−2をそれぞれ備えている。 2 are both output waveform shaping units 81-1 and 81-2, output units 82-1 and 82-2, and output setting units 83-1 and 83-3. 2 respectively.
図4の出力波形整形部81は、出力設定部83により予め設定されている設定情報に基づいて出力波形を整形し、出力部82に供給する。出力部82は、出力波形整形部81により整形された出力波形を出力端子より出力し、コイルL1,L2を駆動させ、モータM1またはM2を駆動させる。
The output
より具体的には、例えば、モータM1を駆動させる場合、図4で示されるように、出力設定部83には、設定端子SET1,SET2が設けられており、これらの設定端子SET1,SET2の入力信号に基づいて整形され、出力部82の出力端子V1乃至V4の出力波形が設定される。例えば、図4で示されるように、設定端子SET1,SET2が、それぞれ(SET1,SET2)=(Low,Low)に設定された場合、図5で示されるように、4相モータ駆動波形が設定され、例えば、図6の最上段で示されるような波形が出力される。
More specifically, for example, when driving the motor M1, as shown in FIG. 4, the
図6の出力端子V1乃至V4の出力波形のうち、最上段の時刻t0乃至t11においては、励磁なしで、コイルL1,L2によりモータM1が駆動されておらず、停止している状態となる。さらに、時刻t11において、予備励磁が指示されると、時刻t11乃至t20で示されるように、予備励磁が開始されている。予備励磁においては、コイルL1,L2は励磁されるが、駆動波形が変化せず、モータM1が停止している状態が示されている。 Among the output waveforms of the output terminals V1 to V4 in FIG. 6, from the time t0 to t11 at the uppermost stage, the motor M1 is not driven by the coils L1 and L2 and is stopped without excitation. Further, when pre-excitation is instructed at time t11, pre-excitation is started as shown at times t11 to t20. In the preliminary excitation, the coils L1 and L2 are excited, but the drive waveform does not change and the motor M1 is stopped.
時刻t20において、正方向の回転が指示されると、時刻t20乃至t38で示されるように、出力波形整形部81より順次出力波形が整形されて、出力部82の出力端子V1乃至V4からそれぞれ90°ずつ位相がずれた方形波が出力されることにより、コイルL1,L2が順次切り替えて励磁されてモータM1が駆動し、正方向に回転する。そして、時刻t38において、停止が指示されると、出力部82の出力端子V1乃至V4からの出力が停止されて、予備励磁状態であるが、コイルL1,L2の駆動波形が変化せず、モータM1が停止している状態となる。
When the rotation in the positive direction is instructed at time t20, the output waveform is sequentially shaped by the output
そして、時刻t50において、逆方向の回転が指示されると、時刻t50乃至t76で示されるように、出力波形整形部81より順次出力波形が整形されて、出力部82の出力端子V1乃至V4からそれぞれ90°ずつ位相がずれた(時刻t20乃至t38における場合とずれ方向が逆の)方形波が出力されることにより、コイルL1,L2が順次励磁されてモータM1が駆動し、逆方向に回転する。そして、時刻t76において、停止が指示されると、出力部82の出力端子V1乃至V4からの出力が停止されて、予備励磁状態となるが、コイルL1,L2によりモータM1が駆動されておらず、モータM1が停止している状態となる。さらに、時刻t81において、完全停止が指示されると励磁なしの状態となる。
Then, when rotation in the reverse direction is instructed at time t50, output waveforms are sequentially shaped by the output
また、例えば、設定端子SET1,SET2が、それぞれ(SET1,SET2)=(Hi,Low)に設定された場合、図5で示されるように、2相モータ駆動波形が設定され、例えば、図6の出力端子V1乃至V4の出力波形のうち、中段で示されるような波形が出力される。 For example, when the setting terminals SET1 and SET2 are set to (SET1, SET2) = (Hi, Low), respectively, a two-phase motor drive waveform is set as shown in FIG. Among the output waveforms of the output terminals V1 to V4, a waveform as shown in the middle stage is output.
すなわち、2相モータ駆動時には、Hブリッジドライバが追加接続されるため、出力端子V1,V2のみが使用され、出力端子V3,V4は、不要となる。このため、出力端子V3,V4は、別の用途に使用することもできる。尚、図6の出力端子V1乃至V4の出力波形のうち、中段で示される2相モータ駆動時の動作については、4相モータ駆動時と同様であるので、その説明は省略する。 That is, when the two-phase motor is driven, since the H bridge driver is additionally connected, only the output terminals V1 and V2 are used, and the output terminals V3 and V4 are not necessary. For this reason, the output terminals V3 and V4 can be used for other purposes. In the output waveforms of the output terminals V1 to V4 in FIG. 6, the operation at the time of driving the two-phase motor shown in the middle stage is the same as that at the time of driving the four-phase motor, and the description thereof is omitted.
さらに、例えば、設定端子SET1,SET2が、それぞれ(SET1,SET2)=(Low,Hi)に設定された場合、図5で示されるように、1−2相モータ駆動波形が設定され、例えば、図6の出力端子V1乃至V4の出力波形のうち、下段で示されるような波形が出力される。 Further, for example, when the setting terminals SET1, SET2 are respectively set to (SET1, SET2) = (Low, Hi), a 1-2 phase motor driving waveform is set as shown in FIG. Among the output waveforms of the output terminals V1 to V4 in FIG. 6, the waveform as shown in the lower stage is output.
すなわち、1−2相モータ駆動時には、各出力端子V1乃至V4よりON時間:OFF時間の比率が3:5の波形が、90°ずつ位相がずれた波形が出力される。尚、図6の下段で示される1−2相モータ駆動時の動作については、4相モータ駆動時と同様であるので、その説明は省略する。 That is, when the 1-2 phase motor is driven, a waveform having an ON time: OFF time ratio of 3: 5 is output from each of the output terminals V1 to V4, and a waveform whose phase is shifted by 90 °. Since the operation at the time of driving the 1-2 phase motor shown in the lower part of FIG. 6 is the same as that at the time of driving the 4 phase motor, the description thereof is omitted.
さらに、例えば、設定端子SET1,SET2が、それぞれ(SET1,SET2)=(Hi,Hi)に設定された場合、図5で示されるように、ソレノイド駆動が設定され、それぞれがONまたはOFFに設定される。尚、出力波形は、ONまたはOFFのいずれかであるので、波形例の説明は省略する。 Further, for example, when the setting terminals SET1 and SET2 are set to (SET1, SET2) = (Hi, Hi), as shown in FIG. 5, the solenoid drive is set and each is set to ON or OFF. Is done. Since the output waveform is either ON or OFF, description of the waveform example is omitted.
次に、図7のフローチャートを参照して、図2の駆動システムによる可動体駆動処理について説明する。 Next, the movable body drive process by the drive system of FIG. 2 will be described with reference to the flowchart of FIG.
ステップS101において、判定部111は、全てのデバイスのうち、未処理のデバイスを処理対象デバイスに設定する。ここでは、未処理のデバイスが可動体駆動装置12であるものとするが、それ以外のデバイスであってもよく、例えば、LED駆動装置などがあれば、それらも未処理であれば処理対象のデバイスに設定される。
In step S101, the
ステップS102において、判定部111は、可動体駆動装置12を識別する全てのアドレスのうち、未処理のアドレスを処理対象アドレスに指定する。
In step S <b> 102, the
ステップS103において、判定部111は、処理対象となるアドレスにおける出力制御部24によりステッピングモータM1,M2のいずれか、または、その両方の駆動が必要であるか否かを判定する。
In step S103, the
ステップS103において、例えば、駆動が必要であると判定された場合、ステップS104において、動作データ生成部112は、処理対象アドレスの可動体駆動装置12に対して、駆動させるべきステッピングモータM1またはM2の動作内容を指示する動作データを生成し、指令データ送信部113に供給する。ここでいう動作データは、出力波形生成部53によりステッピングモータM1,M2を駆動させるための、電圧V1−1乃至V4−1、およびV1−2乃至V4−2の発生を制御するデータである。
In step S103, for example, when it is determined that driving is necessary, in step S104, the operation data generation unit 112 determines the stepping motor M1 or M2 to be driven with respect to the movable body driving device 12 having the processing target address. Operation data for instructing the operation content is generated and supplied to the command
ステップS105において、指令データ送信部113は、処理対象デバイスのうち、処理対象アドレスの可動体駆動装置12に対して、供給されてきた動作データを含めて、動作を指示する、例えば、図8で示されるような指令データを生成し、クロック端子CKより出力するクロック信号に同期して、データ端子DATAよりシリアルデータとして出力する。
In step S105, the command
指令データは、図8で示されるように、デバイスデータ、アドレスデータ、出力系統データ、および動作データから構成される。例えば、可動体駆動装置12−1宛の指令データを生成する場合、デバイスデータには、デバイスとして可動体駆動装置を識別できるデバイスデータが記録される。また、アドレスデータには、可動体駆動装置12−1を識別するアドレスのデータが記録される。また、出力系統データは、駆動させる出力系統である出力制御部24−1,24−2のいずれかを識別するデータが記録される。動作データは、上述したように、出力波形生成部53によりステッピングモータM1,M2を駆動させるための、電圧V1−1乃至V4−1,V1−2乃至V4−2の発生を制御するデータが記録される。
As shown in FIG. 8, the command data is composed of device data, address data, output system data, and operation data. For example, when generating command data addressed to the movable body driving device 12-1, device data that can identify the movable body driving device as a device is recorded in the device data. Further, address data for identifying the movable body driving device 12-1 is recorded in the address data. Further, as the output system data, data for identifying one of the output control units 24-1 and 24-2 which are output systems to be driven is recorded. As described above, the operation data includes data for controlling the generation of the voltages V1-1 to V4-1 and V1-2 to V4-2 for driving the stepping motors M1 and M2 by the output
ステップS111において、受信部21の受信制御部31は、CPU11より指令データが送信されてきたか否かを判定し、指令データが送信されてくるまで、同様の処理を繰り返す。ステップS111において、例えば、ステップS105の処理により、CPU11より指令データが送信されてきた場合、ステップS112において、受信制御部31は、順次クロック信号に同期して、シリアルデータとして送信されてくる指令データを受信し、シリアル−パラレル変換部32に供給する。シリアル−パラレル変換部32は、供給されてきたシリアルデータからなる指令データをパラレルデータに変換し、動作制御部22のデバイス認識部41に供給する。デバイス認識部41は、パラレルデータに変換されて供給されてきた指令データより、デバイスデータを読み出す。
In step S111, the
ステップS113において、デバイス認識部41は、読み出したデバイスデータが自らを識別するデバイスを示すものであるか否かを判定する。ステップS113において、例えば、読み出したデバイスデータが自らを識別するデバイスを示すものではないと判定された場合、デバイス認識部41は、供給されてきた指令データを破棄し、処理は、ステップS111に戻る。すなわち、この場合、供給されてきた指令データが、自らへのものではないとみなされ、処理が打ち切られる。結果として、指令データの宛先として指定されたデバイスに対応するデバイス以外においては、処理が打ち切られ、指令データの宛先として指定されたデバイスに対応する駆動装置のみが、以降の処理を実行することになる。
In step S113, the
一方、ステップS113において、例えば、読み出したデバイスデータが自らを識別するデバイスを示すものであると判定された場合、ステップS114において、デバイス認識部41は、供給された指令データをアドレス認識部42に供給する。この処理に応じて、アドレス認識部42は、供給されてきた指令データより、アドレスデータを読み出す。
On the other hand, in step S113, for example, when it is determined that the read device data indicates a device for identifying itself, in step S114, the
ステップS115において、アドレス認識部42は、読み出したアドレスデータが自らを識別するアドレスを示すものであるか否かを判定する。ステップS115において、例えば、読み出したアドレスデータが自らを識別するアドレスを示すものではないと判定された場合、アドレス認識部42は、供給されてきた指令データを破棄し、処理は、ステップS111に戻る。すなわち、この場合、供給されてきた指令データが、自らへのものではないとみなされ、処理が打ち切られる。結果として、指令データの宛先として指定されたアドレスに対応する可動体駆動装置12以外においては、処理が打ち切られ、指令データの宛先として指定されたアドレスに対応する可動体駆動装置12のみが、以降の処理を実行することになる。
In step S115, the
一方、ステップS115において、例えば、読み出したアドレスデータが自らを識別するアドレスを示すものであると判定された場合、ステップS116において、アドレス認識部42は、供給された指令データを全て読み出し、動作状況指定部43に供給する。
On the other hand, in step S115, for example, when it is determined that the read address data indicates an address for identifying itself, in step S116, the
ステップS117において、動作状況指定部43は、指令データのうちの動作データを読み出し、ステップS118において、動作として指示する動作内容を認識する。 In step S117, the operation status specifying unit 43 reads the operation data from the command data, and recognizes the operation content instructed as an operation in step S118.
ステップS119において、動作状況指定部43は、指令データのうちの出力系統データを読み出し、動作データの供給先となる出力系統を認識する。 In step S119, the operation state designating unit 43 reads the output system data from the command data, and recognizes the output system to which the operation data is supplied.
ステップS120において、動作状況指定部43は、動作データより動作状況を指定し、認識した出力系統に対応する出力制御部24を指定して、選定部44に対して出力系統データと共に動作データを供給する。これに応じて、選定部44は、出力系統データに基づいて、選択すべき出力制御部24に動作状況を指示する。このとき、図10を参照して後述するステップS142の処理により動作状況保持部52は、供給されてきた動作状況を保持する。そして、処理は、ステップS111に戻る。
In step S120, the operation status designation unit 43 designates the operation status from the operation data, designates the
一方、ステップS103において、駆動が必要ではないと判定された場合、ステップS104,S105の処理は、スキップされる。 On the other hand, if it is determined in step S103 that driving is not necessary, the processes in steps S104 and S105 are skipped.
そして、ステップS106において、判定部111は、可動体駆動装置12を識別する全てのアドレスのうち、未処理のアドレスが存在するか否かを判定する。すなわち、CPU11で動作を管理すべき可動体駆動装置12の全てについて処理が終了したか否かが判定される。ステップS106において、未処理のアドレスが存在する場合、処理は、ステップS102に戻る。すなわち、CPU11で動作を管理すべき可動体駆動装置12の全てについて処理が終了するまで、ステップS102乃至S106の処理が繰り返される。そして、ステップS106において、全てのアドレスについて処理が終了し、CPU11で動作を管理すべき可動体駆動装置12の全てについて処理が終了したと判定された場合、処理は、ステップS107に進む。
In step S <b> 106, the
ステップS107において、判定部111は、駆動装置12を識別する全てのデバイスのうち、未処理のデバイスが存在するか否かを判定する。すなわち、CPU11で動作を管理すべきデバイスの全てについて処理が終了したか否かが判定される。ステップS107において、未処理のデバイスが存在する場合、処理は、ステップS101に戻る。すなわち、CPU11で動作を管理すべき駆動装置の全てについて処理が終了するまで、ステップS101乃至S107の処理が繰り返される。そして、ステップS107において、全てのアドレスについて処理が終了し、CPU11で動作を管理すべき駆動装置の全てについて処理が終了したと判定された場合、処理は、ステップS108に進む。
In step S <b> 107, the
ステップS108において、判定部111は、全てのデバイスについて、全てのアドレスを未処理であるものとみなし、処理は、ステップS101に戻る。
In step S108, the
すなわち、CPU11は、全てのデバイス、すなわち全ての駆動装置について、動作状況を巡回的に監視し、必要に応じて駆動を指示する。この際、駆動装置を駆動するにあたり、動作を一回指示すればよいのでCPU11による処理負荷が低減される。
That is, the
次に、図9のフローチャートを参照してアップダウンカウンタのカウント処理について説明する。 Next, the counting process of the up / down counter will be described with reference to the flowchart of FIG.
ステップS131において、アップダウンカウンタ71は、アップダウンカウンタを0にリセットする。 In step S131, the up / down counter 71 resets the up / down counter to zero.
ステップS132において、アップダウンカウンタ71は、分周部23により分周されて発生される周波数f0のクロック信号に同期してカウント値をカウントし(1インクリメント、またはデクリメントし)、カウント値に対応するカウント信号を比較部73に供給する。
In step S132, the up / down counter 71 counts (increments or decrements) the count value in synchronization with the clock signal having the frequency f0 generated by frequency division by the
ステップS133において、アップダウンカウンタ71は、清算部74よりクリア信号が供給されてくるか否かを判定する。ステップS133において、例えば、清算部74よりクリア信号が供給されてこなかった場合、処理は、ステップS132に戻る。すなわち、清算部74よりクリア信号が供給されてくるまで、アップダウンカウンタ71は、分周部23からのクロック信号に同期してカウント値を累積的に加算、または減算し続ける。
In step S <b> 133, the up / down
一方、ステップS133において、清算部74よりクリア信号が供給されてくると、処理は、ステップS131に戻る。すなわち、カウント値がリセットされてから、再びカウント値のカウントアップ、またはカウントダウンが累積的に繰り返される。
On the other hand, when a clear signal is supplied from the
以上の処理により、アップダウンカウンタ71は、清算部74によりクリア信号が供給されるまで、カウント値をカウントアップ、または、カウントダウンし続け、そのカウント値を順次比較部73に供給すると共に、クリア信号が供給されるとカウント値をリセットし、再びカウント値をカウントアップ、または、カウントダウンし続け、そのカウント値を順次比較部73に供給し続ける。
By the above processing, the up / down
次に、図10のフローチャートを参照して、出力制御部24による出力制御処理について説明する。
Next, output control processing by the
ステップS141において、動作状況保持部52は、自らの出力系統に出力制御処理が指示されたか否かを判定し、指示されたと判定されるまで、その処理を繰り返す。ステップS141において、例えば、ステップS120の処理により、出力制御処理を指示する動作データが供給された場合、処理は、ステップS142に進む。
In step S141, the operation
ステップS142において、動作状況保持部52は、供給されてきた動作データを保持する。
In step S142, the operation
ステップS143において、動作状況保持部52は、保持している動作データに基づいて、リミットカウント情報をリミットカウント生成部72に供給する。リミットカウント生成部72は、リミットカウント情報に基づいて、リミットカウント信号を比較部73に供給する。
In step S <b> 143, the operation
ステップS144において、動作状況保持部52は、動作データに基づいて、処理を開始するスタートのタイミングであるか否かを判定し、スタートのタイミングであると判定されるまで、同様の処理を繰り返す。ステップS144において、スタートのタイミングであると判定された場合、ステップS145において、動作状況保持部52は、スタート信号を出力波形生成部53の出力波形整形部81に供給する。
In step S144, the operation
ステップS146において、比較部73は、順次アップダウンカウンタ71より供給されてくるカウント信号に基づいたカウント値と、リミットカウント生成部72より供給されてくるリミットカウント信号に基づいたリミットカウント値とを比較し、カウント信号に基づくカウント値が、リミットカウント信号に基づくリミットカウント値よりも大きいか否かを判定する。ステップS146において、例えば、カウント値が、リミットカウント値よりも大きいと判定された場合、ステップS147において、比較部73は、出力波形生成部53、および清算部74に対してクロック信号を供給する。このクロック信号により、出力波形生成部53は、ステッピングモータM1(またはM2)を駆動するため、駆動信号を発生し、コイルL1,L2を励磁させることによりステッピングモータM1(またはM2)を駆動させる。
In step S146, the
ステップS148において、清算部74は、パルス状のクロック信号であるパルス信号を受けると、クリア信号をアップダウンカウンタ71に供給し、アップダウンカウンタのカウント値をリセットさせ、処理は、ステップS150に進む。尚、ステップS147において、クロック信号が発生されるのは、カウント値が、リミットカウント値よりも大きいと判定された後であって、クリア信号によりプリセットされるまでの間となるが、事実上、アップダウンカウンタが1カウントされるまでの1周期についてのみとなるため、クロック信号は、アップダウンカウンタの1カウント分のパルス信号となる。
In step S148, when the
一方、ステップS146において、例えば、アップダウンカウンタ71のカウント値が、リミットカウント値よりも高くないと判定された場合、ステップS149において、比較部73は、出力波形生成部53、および清算部74に対してクロック信号を発生しない。このため、出力波形生成部53は、駆動信号を発生しないため、ステッピングモータM1(またはM2)は、駆動しない状態となる。
On the other hand, in step S146, for example, when it is determined that the count value of the up / down
ステップS150において、動作状態保持部52は、停止すべきタイミングであるか否かを判定し、停止すべきタイミングではないと判定された場合、処理は、ステップS146に戻る。
In step S150, the operation
一方、ステップS150において、停止すべきタイミングであると判定された場合、処理は、ステップS141に戻り、それ以降の処理が繰り返される。 On the other hand, if it is determined in step S150 that it is time to stop, the process returns to step S141, and the subsequent processes are repeated.
以上の動作を纏めると以下のようになる。 The above operation is summarized as follows.
すなわち、アップダウンカウンタ71の上限値が、例えば、256であり、カウントアップするものとした場合、リミットカウント値が設定されていないとき、アップダウンカウンタ71のカウント信号を示すカウント値K1は、図11の実線で示されるように、256×1/f0(f0は分周部23より供給されてくるクロック信号の周波数)の間隔で繰り返しカウント値が0乃至256での上昇を繰り返す。尚、図11においては、カウント値K1が直線状に推移するように表記されているが、厳密には、1/f0の間隔で階段状に変化するものである。
That is, when the upper limit value of the up / down
ここで、図12で示されるように、時刻t1において、カウントリミット値K2=64が設定され、時刻t2において、カウントリミット値K2=192が設定されるものとする。 Here, as shown in FIG. 12, the count limit value K2 = 64 is set at time t1, and the count limit value K2 = 192 is set at time t2.
この場合、時刻t1乃至t2においては、図13の上部で示されるように、アップダウンカウンタ71のカウント値K1が64に達する時刻C1,C2,・・・と、その周期においてカウント値がリミットカウント値K2を1周期分(1/f0)だけ超えた状態となるため、その間、比較部73は、図13の下部で示されるようにパルス状のクロック信号K3を発生して、出力波形生成部53に供給する。したがって、このパルス状のクロック信号からなるパルス信号は、64×1/f0の周期で繰り返し発生される幅1/f0のパルス信号になる。
In this case, from time t1 to time t2, as shown in the upper part of FIG. 13, the count value K1 reaches the count value K1 when the count value K1 of the up / down
また、同様に、時刻t2以降においては、図14の上部で示されるように、アップダウンカウンタ71のカウント値を示すカウント信号K1が192に達する時刻C11,C12,C13・・・・と、その周期においてカウント値がリミットカウント値を示すリミットカウント信号K2を1周期分(1/f0)だけ超えた状態となるため、その間、比較部73は、図14の下部で示されるようにパルス信号K3を発生して、出力波形生成部53に供給する。したがって、このパルス信号は、192×1/f0の周期で繰り返し発生される幅1/f0のパルス信号になる。
Similarly, after time t2, as shown in the upper part of FIG. 14, time C11, C12, C13... When the count signal K1 indicating the count value of the up / down
この結果、例えば、出力波形生成部53においては、図15で示されるように、時刻t1において、リミットカウント値が64に設定されると、時刻t101乃至t119の各64×1/f0の周期(時間間隔)で、パルス信号K3を繰り返し発生することにより、出力端子V1は、時刻t1乃至t102,t104乃至t106,t108乃至t110,t112乃至t114,t116乃至t118において、パルス波形を発生する。同様に、出力端子V2は、時刻t101乃至t103,t105乃至t107,t109乃至t111,t113乃至t115,t117乃至t119において、パルス波形を発生する。また、同様に、出力端子V3は、時刻t102乃至t104,t106乃至t108,t110乃至t112,t114乃至t116,t118乃至t2において、パルス波形を発生する。さらに、出力端子V4は、時刻t1乃至t101,時刻t103乃至t105,t107乃至t109,t111乃至t113,t115乃至t117,t119乃至t2において、パルス波形を発生する。
As a result, for example, in the
さらに、図15で示されるように、時刻t2において、リミットカウント値が192に設定されると、時刻t2乃至t121の各192×1/f0の周期(時間間隔)で、パルス信号K3を繰り返し発生することにより、出力端子V1は、時刻t2乃至t122,t124乃至t126,t128乃至t130において、パルス波形を発生する。同様に、出力端子V2は、時刻t121乃至t123,t125乃至t127,t129乃至t130において、パルス波形を発生する。また、同様に、出力端子V3は、時刻t122乃至t124,t126乃至t128において、パルス波形を発生する。さらに、出力端子V4は、時刻t2乃至t121,時刻t123乃至t125,t127乃至t129において、パルス波形を発生する。 Further, as shown in FIG. 15, when the limit count value is set to 192 at time t2, the pulse signal K3 is repeatedly generated at each 192 × 1 / f0 period (time interval) from time t2 to t121. As a result, the output terminal V1 generates a pulse waveform at times t2 to t122, t124 to t126, and t128 to t130. Similarly, the output terminal V2 generates a pulse waveform at times t121 to t123, t125 to t127, and t129 to t130. Similarly, the output terminal V3 generates a pulse waveform at times t122 to t124 and t126 to t128. Further, the output terminal V4 generates a pulse waveform from time t2 to t121, time t123 to t125, and t127 to t129.
このように、時刻t1乃至t2においては、時刻t2以降よりもステッピングモータが約3倍の速さで回転するように制御される。この際、開始タイミングと、そのリミットカウント値のみが制御されるのみで、回転開始タイミングと、その回転速度が制御され、これ以外の情報が特に必要とされないので、最初にその情報を供給したのみで、可動体駆動装置12が、自らで自走することとなるので、制御部11の制御負荷を極めて小さくすることが可能となる。
As described above, during the time t1 to t2, the stepping motor is controlled to rotate at about three times the speed after the time t2. At this time, only the start timing and its limit count value are controlled, the rotation start timing and its rotation speed are controlled, and no other information is required, so only the information was supplied first. Thus, since the movable body drive device 12 is self-propelled, the control load of the
以上においては、分周部23より発生するクロック信号は、周波数f0のもの1種類である例について説明してきたが、例えば、図16で示されるように、分周部23’により2種類の周波数f1,f0のクロック信号を発生し、原発振選択部91により、そのいずれかのクロック信号を切り替えて利用するようにしても良い。このようにすることで、ステッピングモータM1(または、M2)の駆動パタンを変化させることが可能となる。
In the above description, an example in which the clock signal generated from the
尚、分周部23’により発生されるクロック信号は、2種類以上であってもよい。また、原発振選択部91により、いずれのクロック信号をどのように選択的に切り替えて利用するかについてを指示する情報を動作データに含ませるようにすることで、様々なクロック信号を利用して、様々なパターンでステッピングモータM1(またはM2)を駆動させることが可能となる。
Two or more types of clock signals may be generated by the frequency divider 23 '. In addition, by using the original
以上においては、アップダウンカウンタ71がカウントアップ、または、カウントダウンを開始して、リミットカウント値に至るまでは、同一のクロック信号に基づいて、カウントアップ、または、カウントダウンする例について説明してきたが、アップダウンカウンタ71がカウントアップ、または、カウントダウンを開始して、カウント値がリミットカウント値に至るまでの間に、クロック信号を所定の時間間隔で順次切り替えるようにしてもよい。 In the above description, the example in which the up / down counter 71 starts counting up or counts down and reaches the limit count value is counted up or counted down based on the same clock signal. The clock signal may be sequentially switched at predetermined time intervals until the count value reaches the limit count value after the up / down counter 71 starts counting up or counting down.
図17は、アップダウンカウンタ161がカウントアップ、または、カウントダウンを開始して、カウント値がリミットカウント値に至るまでの間に、クロック信号を所定の時間間隔で順次切り替えるようにした可動体駆動装置12の構成例を示している。尚、図17において、図2において示されている構成と同一の構成については、同一の符号を付しており、その説明は適宜省略するものとする。 FIG. 17 shows a movable body drive device in which the clock signal is sequentially switched at a predetermined time interval until the count value reaches the limit count value after the up / down counter 161 starts counting up or counting down. 12 configuration examples are shown. In FIG. 17, the same components as those shown in FIG. 2 are denoted by the same reference numerals, and the description thereof will be omitted as appropriate.
すなわち、図17の可動体駆動装置12において、図2における可動体駆動装置12と異なるのは、分周部23、およびアップダウンカウンタ71−1,71−2に代えて、分周部151、およびアップダウンカウンタ161−1,161−2を設けた点である。
That is, the movable body drive device 12 in FIG. 17 differs from the movable body drive device 12 in FIG. 2 in place of the
分周部151は、原発振として周波数f0,f1,・・・fnのn種類のクロック信号を発生しており、それぞれ出力制御部24−1,24−2に供給している。
The
アップダウンカウンタ161は、分周部151より供給されてくる、n種類の周波数f0,f1,・・・fnのクロック信号のいずれかを用いて、カウント値をカウントアップ、または、カウントダウンするカウンタであり、カウント値に対応するカウント信号を比較部73に供給する。
The up / down
アップダウンカウンタ161−1,161−2は、それぞれカウント部171−1,171−2、切替カウンタ制御部172−1,172−2、レートカウンタ制御部173−1,173−2、分周切替部174−1,174−2、および曲率設定部175−1,175−2を備えている。 The up / down counters 161-1 and 161-2 include count units 171-1 and 171-2, switching counter control units 172-1 and 172-2, rate counter control units 173-1 and 173-2, and frequency division switching. Parts 174-1 and 174-2, and curvature setting parts 175-1 and 175-2.
分周切替部174は、所定のタイミングで、レートカウンタ制御部173により制御されるレートカウンタMにより予め設定されているカウントレート(変化率:単位時間当たりのカウント数)により、周波数f0,f1,・・・fnのいずれかのクロック信号に切り替えて、カウント部171に供給する。 The frequency division switching unit 174 has the frequencies f0, f1, f1 at a predetermined timing according to the count rate (change rate: the number of counts per unit time) set in advance by the rate counter M controlled by the rate counter control unit 173. .. Are switched to one of the clock signals fn and supplied to the counting unit 171.
カウント部171は、分周切替部174により切り替えられたクロック信号に同期してカウント値をカウントし、比較部73に出力する。切替カウンタ制御部172は、カウントレートを切り替えるタイミングを示す切替カウンタCを、分周切替部174により切り替えられたクロック信号に同期してカウントし、レートカウンタMに対応する切替カウント値となったとき、そのタイミングとなったことをレートカウンタ制御部173および分周切替部174に通知する。
The counting unit 171 counts the count value in synchronization with the clock signal switched by the frequency division switching unit 174 and outputs the count value to the
レートカウンタ制御部173は、切替カウンタ制御部172より切替カウンタCが切替カウント値となったことが通知されると、そのタイミングでレートカウンタMを1インクリメントする。 When the rate counter control unit 173 is notified by the switching counter control unit 172 that the switching counter C has reached the switching count value, the rate counter control unit 173 increments the rate counter M by 1 at that timing.
分周切替部174は、切替カウンタ制御部172より切替カウンタCが切替カウント値となったことが通知されると、そのタイミングでレートカウンタMに対応するカウントレートに対応する周波数fnのクロック信号に切り替える。 When the frequency division switching unit 174 is notified by the switching counter control unit 172 that the switching counter C has reached the switching count value, the frequency dividing switching unit 174 generates a clock signal having a frequency fn corresponding to the count rate corresponding to the rate counter M at that timing. Switch.
曲率設定部175は、予めレートカウンタMごとに、設定された切替カウント値を記憶し、カウントレートを識別するレートカウンタMに対応する切替カウント値を切替カウンタ制御部172に供給する。このレートカウンタM毎に設定されるカウントレートと、対応する切替カウント値に基づいて、分周部151により分周される異なる周波数のクロック信号に切り替えられる期間が設定され、アップダウンカウンタ161のカウント値のカウント速度が、時間に対して、擬似曲線的に変化されると共に、擬似曲線の曲率が設定される。尚、ここでは、レートカウンタMが大きくなるにつれて、カウントレートが小さくなるものとする。すなわち、アップダウンカウンタ161は、レートカウンタMが小さいほど、周波数の高いクロック信号によりカウントアップ、または、カウントダウンされるので、高速でカウントアップ、または、カウントダウンされ、レートカウンタMが大きいほど、周波数の低いクロック信号によりカウントアップ、または、カウントダウンされるので、低速でカウントアップ、または、カウントダウンされる。
The curvature setting unit 175 stores a preset switching count value for each rate counter M, and supplies a switching count value corresponding to the rate counter M for identifying the count rate to the switching counter control unit 172. Based on the count rate set for each rate counter M and the corresponding switching count value, a period for switching to a clock signal of a different frequency divided by the
次に、図18のフローチャートを参照して、アップダウンカウンタカウント処理について説明する。 Next, the up / down counter counting process will be described with reference to the flowchart of FIG.
ステップS161において、アップダウンカウンタ161のカウント部171は、カウンタを0にリセットする。 In step S161, the count unit 171 of the up / down counter 161 resets the counter to zero.
ステップS162において、レートカウンタ制御部173は、レートカウンタMを1に初期化する。 In step S162, the rate counter control unit 173 initializes the rate counter M to 1.
ステップS163において、切替カウンタ制御部172は、カウントレートを切り替える切替カウンタCを0にリセットする。 In step S163, the switching counter control unit 172 resets the switching counter C that switches the count rate to 0.
ステップS164において、分周切替部174は、曲率設定部175に予めレートカウンタMに対応して設定されているカウントレートで、分周部151から供給されてくる、周波数f0,f1,・・・fnのいずれかを、カウント部171でカウントするためのクロック信号として選択する。例えば、カウント値が小さい時には急峻に変化し、カウント値が大きくなるにつれて緩やかに変化するように曲率を設定する場合、最初の処理のとき、最もレートカウンタMが小さいので、最も高速の周波数のクロック信号を選択することが指示される。
In step S164, the frequency division switching unit 174 supplies the frequencies f0, f1,... Supplied from the
ステップS165において、カウント部171は、分周切替部174により選択された周波数のクロック信号に同期してアップダウンカウンタをカウントし(1インクリメントし)、比較部73に供給する。
In step S165, the counting unit 171 counts the up / down counter (increments by 1) in synchronization with the clock signal having the frequency selected by the frequency division switching unit 174, and supplies it to the
ステップS166において、切替カウンタ制御部172は、分周切替部174により選択された周波数のクロック信号に同期して、切替カウンタCをカウントする(1インクリメントする)。 In step S166, the switching counter control unit 172 counts the switching counter C (increments by 1) in synchronization with the clock signal having the frequency selected by the frequency division switching unit 174.
ステップS167において、カウント部171は、クリア信号が清算部74より供給されてきたか否かを判定する。ステップS167において、例えば、クリア信号が供給されてきた場合、処理は、ステップS161に戻る。すなわち、この処理により、アップダウンカウンタ161のカウント値が0にリセットされて同様の処理が繰り返される。
In step S167, the counting unit 171 determines whether or not a clear signal has been supplied from the
一方、ステップS167において、クリア信号が供給されてこない場合、ステップS168において、切替カウンタ制御部172は、切替カウンタCが、曲率設定部175に予め設定されているレートカウンタM毎に設定されている所定値である切替カウント値となったか否かを判定する。例えば、切替カウンタCが、曲率設定部175に予め設定されているレートカウンタM毎に設定されている切替カウント値となっていない場合、処理は、ステップS164に戻る。すなわち、ステップS168において、切替カウンタCが、曲率設定部175に予め設定されているレートカウンタM毎に設定されているの切替カウント値となるまで、クリア信号が供給されてこない限り、ステップS164乃至S168の処理が繰り返されて、レートカウンタMに対応する周波数のクロック信号に同期したカウントレートでアップダウンカウンタ、および切替カウンタCが順次、1インクリメントされていく。 On the other hand, if no clear signal is supplied in step S167, in step S168, the switching counter control unit 172 sets the switching counter C for each rate counter M preset in the curvature setting unit 175. It is determined whether or not a switching count value that is a predetermined value is reached. For example, when the switching counter C is not the switching count value set for each rate counter M preset in the curvature setting unit 175, the process returns to step S164. That is, unless the clear signal is supplied until the switching counter C reaches the switching count value set for each rate counter M preset in the curvature setting unit 175 in step S168, steps S164 to S164 are performed. The processing of S168 is repeated, and the up / down counter and the switching counter C are sequentially incremented by 1 at a count rate synchronized with a clock signal having a frequency corresponding to the rate counter M.
そして、ステップS168において、切替カウンタCが、曲率設定部175にレートカウンタM毎に予め設定されている切替カウント値であると判定された場合、ステップS169において、カウント部171は、カウントされた値が最大値であるか否かを判定し、最大値ではない場合、処理は、ステップS170に進む。 If it is determined in step S168 that the switching counter C is a switching count value preset in the curvature setting unit 175 for each rate counter M, the counting unit 171 counts the counted value in step S169. Is not the maximum value, and if not, the process proceeds to step S170.
ステップS170において、レートカウンタ制御部173は、レートカウンタMを1インクリメントし、処理は、ステップS163に戻る。 In step S170, the rate counter control unit 173 increments the rate counter M by 1, and the process returns to step S163.
すなわち、レートカウンタMが1インクリメントされると、再び、処理は、ステップS163に戻り、切替カウンタ制御部172が切替カウンタCを0にリセットし、分周切替部74が、新たに設定されたレートカウンタMに対応するカウントレートに対応するクロック信号に基づいて、アップダウンカウンタ161のカウント値がカウント部171によりカウントされると共に、切替カウンタCがカウントされる。
That is, when the rate counter M is incremented by 1, the process returns to step S163 again, the switching counter control unit 172 resets the switching counter C to 0, and the frequency
以上の処理により、例えば、図19の時刻taのタイミングで、アップダウンカウンタ161のカウントが開始され、レートカウンタM=1に対応するカウントレートのクロック周波数のクロック信号でカウントする周波数のクロック信号が分周切替部174により選択されると、曲率設定部175にレートカウンタM=1に対応して設定されている、所定の切替カウント値である切替カウンタC1までステップS164乃至S168の処理が繰り返されて、レートカウンタM=1に対応するカウントレートでアップダウンカウンタ161がカウントされる。このとき、図中の時刻ta乃至tbにおける一点鎖線M1で示されるように、直線状にアップダウンカウンタ161のカウント値が変化する(図中では直線であるが、詳細には、その値は階段状に変化している)。そして、図19の時刻tbのタイミングで示されるように、ステップS168において、切替カウンタCが切替カウンタC1となり、切替カウント値となったものとみなされると、ステップS169において最大値ではないとみなされるとき、ステップS170において、レートカウンタMが1インクリメントされて、レートカウンタM=2とされる。
By the above processing, for example, the counting of the up / down
そして、レートカウンタM=2に対応して設定されている、所定の切替カウント値である切替カウンタC2までステップS164乃至S168が繰り返されて、レートカウンタM=2に対応するカウントレートのクロック周波数のクロック信号でアップダウンカウンタ161のカウント値がカウントされる。このとき、図19の時刻tb乃至tcにおける一点鎖線M2で示されるように、時刻ta乃至tbにおけるときよりも緩やかな直線状にアップダウンカウンタ161のカウント値が変化する。ここで、図19の時刻tcのタイミングで示されるように、ステップS168において、切替カウンタCが切替カウンタC2となり切替カウント値となったものとみなされると、ステップS169において最大値ではないとみなされて、ステップS170において、レートカウンタMが1インクリメントされて、レートカウンタM=3とされる。
Then, steps S164 to S168 are repeated until the switching counter C2 which is a predetermined switching count value set corresponding to the rate counter M = 2, and the clock frequency of the count rate corresponding to the rate counter M = 2 is set. The count value of the up / down
さらに、レートカウンタM=3に対応して設定されている、所定の切替カウント値である切替カウンタC3までステップS164乃至S168が繰り返されて、レートカウンタM=3に対応するカウントレートのクロック周波数のクロック信号でアップダウンカウンタ161のカウント値がカウントされる。このとき、図19の時刻tc乃至tdにおける一点鎖線M3で示されるように、時刻tb乃至tcにおけるときよりも緩やかな直線状にアップダウンカウンタの値が変化する。ここで、図19の時刻tdのタイミングで示されるように、ステップS168において、切替カウンタCが切替カウンタC3となり、切替カウント値となったものとみなされると、ステップS169において最大値ではないとみなされ、ステップS170において、レートカウンタMが1インクリメントされて、レートカウンタM=4とされる。
Further, steps S164 to S168 are repeated until the switching counter C3 having a predetermined switching count value set corresponding to the rate counter M = 3, and the clock frequency of the count rate corresponding to the rate counter M = 3 is changed. The count value of the up / down
また、再び、レートカウンタM=4に対応して設定されている、所定の切替カウント値である切替カウンタC4までステップS164乃至S168が繰り返されて、レートカウンタM=4に対応するカウントレートのクロック周波数のクロック信号でアップダウンカウンタ161のカウント値がカウントされる。このとき、図19の時刻td乃至teにおける一点鎖線M4で示されるように、時刻tc乃至tdにおけるときよりも緩やかな直線状にアップダウンカウンタ161のカウント値が変化する。ここで、図19の時刻teタイミングで示されるように、ステップS168において、切替カウンタCが切替カウンタC4となり、切替カウント値となったものとみなされると、さらに、ステップS169において最大値であるとみなされる(図19においては、最大値は256カウント)か、または、ステップS167において、クリア信号が供給されると、処理がステップS161に戻り、同様の処理が繰り返される。
Further, steps S164 to S168 are repeated until the switching counter C4 which is a predetermined switching count value set corresponding to the rate counter M = 4, and the clock of the count rate corresponding to the rate counter M = 4. The count value of the up / down
この処理により、例えば、時刻ta乃至teまでの時間が1msであるものとすれば、図19で示される擬似曲線(複数の区間ごとに異なるカウントレートとして設定された一次関数からなる傾きの異なる直線が連続して接続されることにより形成される擬似的な曲線)が連続して配置されることにより、図19の実線で示されるような曲線に類似した波形を生成することが可能となる。 By this processing, for example, if the time from time ta to te is 1 ms, the pseudo curve shown in FIG. 19 (a straight line with different slopes composed of linear functions set as different count rates for a plurality of sections). 19 are continuously arranged, it is possible to generate a waveform similar to the curve as shown by the solid line in FIG.
このように、予め曲率設定部175にレートカウンタMに対応付けて記憶されている、カウントレートに対応するクロック周波数のクロック信号と、そのカウントレートでカウントされるべき期間を示す切替カウント値とにより、アップダウンカウンタ161のカウント値の変化を示す擬似曲線の曲率が設定される。尚、図19においては、実線で示される曲線に対して、4本の直線により擬似曲線を実現させる例について説明してきたが、より多くの1次関数として示される直線を連結するように用いて、切り替えるようにしてもよく、直線数を増やすようにすることで、より曲線に類似した擬似曲線を実現することが可能となる。
As described above, the curvature setting unit 175 stores the clock signal of the clock frequency corresponding to the count rate, which is stored in association with the rate counter M, and the switching count value indicating the period to be counted at the count rate. The curvature of the pseudo curve indicating the change in the count value of the up / down
以上のような制御により、ステッピングモータのPPS(Pulse Par Second)制御を実現することが可能となる。PPS制御とは、1秒間に発生するパルス数により、位相の進度を制御するものである。そこで、一般に、カウンタ(アップダウンカウンタ161に相当するもの)によりPPS制御を行う場合、カウンタのカウント値=1(最小値)において、1000PPS(1.000ms/パルス)が最高速であるものとし(1秒間に1000パルスが発生する状態を最高速であるものとし)、カウント値が最大値であるとき4PPSで最低速度であるものとすると以下のようになる。 With the control described above, PPS (Pulse Par Second) control of the stepping motor can be realized. PPS control is to control the progress of the phase by the number of pulses generated per second. Therefore, in general, when PPS control is performed by a counter (corresponding to the up / down counter 161), 1000PPS (1.000 ms / pulse) is assumed to be the highest speed when the counter count value = 1 (minimum value) (1 If the maximum speed is 1000 pulses per second), and the minimum value is 4PPS when the count value is the maximum value, the result is as follows.
すなわち、カウンタのカウント値=1の場合、1000PPS(1.000ms/パルス)となり、カウント値=2の場合、996PPS(1.004ms/パルス)となり、カウント値=3の場合、992PPS(1.008ms/パルス)となり、カウント値=4の場合、988PPS(1.012ms/パルス)となり、・・・カウント値=254の場合、12PPS(83.3ms/パルス)となり、カウント値=255の場合、8PPS(125ms/パルス)となり、そして、カウント値=256の場合、4PPS(最低速)(250ms/パルス)となる。 That is, when the count value of the counter is 1, 1000 PPS (1.000 ms / pulse), when the count value = 2, 996 PPS (1.004 ms / pulse), and when the count value is 3, 992 PPS (1.008 ms / pulse) When the count value = 4, it becomes 988PPS (1.012ms / pulse). When the count value = 254, it becomes 12PPS (83.3ms / pulse). When the count value = 255, 8PPS (125ms / pulse) When the count value = 256, 4PPS (minimum speed) (250 ms / pulse) is obtained.
以上の関係を纏めると、カウンタのカウント値と、各PPSのパルス周期は、逆数に比例した関係、すなわち、反比例の関係となる。このため、PPS制御に用いる場合、アップダウンカウンタ161では、擬似曲線での切替が実行されるため、図11の上部で示されるような三角鋸波ではなく、図20で示されるように、上に凸の略双曲線状の曲線となる。
Summarizing the above relationship, the count value of the counter and the pulse period of each PPS are in a relationship proportional to the reciprocal, that is, an inversely proportional relationship. For this reason, when used for PPS control, the up / down
尚、図20においては、カウントスイング幅は32768ステップ(アップダウンカウンタ1乃至256に対して、0乃至32768ステップとなる)であって、上昇時間が250msで1周期となり、カウントクリアする動作が表現されている。
In FIG. 20, the count swing width is 32768 steps (0 to 32768 steps with respect to the up / down
これに伴い、分周部151で発生される原発振の周波数は1乃至2MHz近傍のクロック信号が使用される。また、カウントアップの初期段階(図20においては、0乃至128ステップ)における、約1msの期間はアップダウンカウンタ161のカウント値は0のままとされ、以降、設定値1,2,・・・と増加するに従い、パルス周期が4μsずつ増加し、1ms、1.004ms、1.008msと増加する。
Along with this, a clock signal in the vicinity of 1 to 2 MHz is used as the frequency of the original oscillation generated by the
やがて、カウントクロック周波数が順次低速方向に切替り、設定値256で250msとなり、このような波形が、図11の上部で示される鋸波状の波形と同様に繰り返される。
Eventually, the count clock frequency is sequentially switched to the low speed direction, and the setting
結果として、より滑らかにステッピングモータの回転を制御することが可能となる。また、同一のクロック信号を共用化して複数の出力制御部24で使用することで、複数のステッピングモータを同期しながら、滑らかに回転を制御することが可能となる。
As a result, the rotation of the stepping motor can be controlled more smoothly. Further, by sharing the same clock signal and using it in the plurality of
以上においては、比較部73が、アップダウンカウンタのカウント値と、リミットカウント値との比較によりパルス信号を発生するクロック信号生成部51の例について説明してきたが、例えば、リミットカウント値を、アップダウンカウンタの周波数よりも低い周波数で変化させるようにしてもよい。
In the above description, the
図21のクロック信号生成部51は、リミットカウント値を、アップダウンカウンタの周波数よりも低い周波数で変化させながら発生させるようにしたクロック信号生成部51の構成例を示している。尚、図21のクロック信号生成部51において、図3のクロック信号生成部51と同一の構成については、同一の符号を付しており、その説明は適宜省略するものとする。すなわち、図21のクロック信号生成部51において、図3のクロック信号生成部51と異なる点は、分周部23、アップダウンカウンタ71、およびリミットカウンタ72に代えて、分周部191、高周波アップダウンカウンタ203、低周波アップダウンカウンタ202、および周波数選択部201を備えた点である。
The clock
高周波アップダウンカウンタ203は、アップダウンカウンタ71と同一のものであり、分周部191より供給されてくる高い周波数である周波数f0のクロック信号に対応してカウンタのカウント値をアップ、または、ダウンさせて、対応するカウント信号K1を比較部73に供給する。尚、高周波アップダウンカウンタ203は、図21において、低周波アップダウンカウンタ202との発生するクロック信号の周波数を区別するため、「高周波」と名称に付されているのみであって、実質的に同一のものである。
The high frequency up / down
低周波アップダウンカウンタ202は、リミットカウント生成部72におけるリミット値を、高周波の周波数f0と比較して、分周部191により発生される比較的低周波の周波数f1,f2,f3のいずれか周波数選択部201により選択されたクロック信号に同期して、カウンタのカウント値をアップ、またはダウンさせて、リミット信号により規定されるリミットカウント値までカウントし、リミットカウント値に達すると、その値を維持すると共に、対応するカウント信号K2を比較部73に供給する。
The low frequency up / down
尚、図21のクロック信号生成部51における動作については、図3におけるクロック信号生成部51における動作と同様であるので、その説明は、省略するものとする。
21 is the same as the operation in the clock
ただし、図21のクロック信号生成部51においては、リミットカウント値が周波数の低い周波数のクロック信号により変化するため、例えば、図22の上部における点線で示されるように低周波アップダウンカウンタ202により、時刻t203乃至t206のタイミングでリミットカウント値が上昇するように設定すると、時刻t201乃至t202、および時刻t202乃至t203におけるパルス信号が発生される周期よりも、時刻t203乃至t204、時刻t204乃至t205、および時刻t205乃至t206において、それぞれ周期が徐々に延びることになり、ステッピングモータM1またはM2の回転速度は、時間の経過に伴って逐次低下することになり、再び低周波アップダウンカウンタ202から出力されるカウント値がリミットカウント値に到達して、その値が維持されて一定にされると、時刻t206乃至t207の間隔が維持された状態でパルス信号が発生される。
However, in the clock
このように、リミットカウント値を、アップダウンカウンタの周波数よりも低い周波数で変化させることにより、パルス信号の発生間隔(パルス信号による駆動信号の発生周期)を徐々に変化させることが可能となる。 Thus, by changing the limit count value at a frequency lower than the frequency of the up / down counter, the pulse signal generation interval (the generation period of the drive signal by the pulse signal) can be gradually changed.
結果として、ステッピングモータの動作速度を、徐々に変化させながら制御することが可能となる。また、この速度変化は周波数選択部201により選択されるクロック信号の周波数により変化させることが可能であるので、指令データによりいずれのクロック信号を選択するのか指示するのみで、変化速度を切り替えることが可能となる。
As a result, the operation speed of the stepping motor can be controlled while gradually changing. In addition, since this speed change can be changed according to the frequency of the clock signal selected by the
以上においては、駆動システムにおいて、複数の可動体を駆動させる例について説明してきたが、例えば、駆動させる対象は、可動体のみならず、例えば、図23で示されるように、発光ダイオードなどを駆動させる装置を組み合わせた駆動装置であってもよい。 In the above, an example in which a plurality of movable bodies are driven in the drive system has been described. For example, the target to be driven is not only the movable body but also, for example, a light emitting diode as shown in FIG. The drive device which combined the device to make may be sufficient.
図23の駆動システムにおいては、可動体駆動装置12に加えて、LED駆動装置251が設けられている。LED駆動装置251は、発光ダイオードLED1乃至LED6の発光を制御している。可動体の駆動に際しては、CPU11よりデバイスデータ、およびアドレスデータを付した指令データが供給されることにより、いずれのステッピングモータをどのような速度で回転させるかが指示されているが、デバイスデータとしてLED駆動装置251が識別可能なデータが含まれていれば、自らへの指令データであることは認識ができ、さらに、ステッピングモータへの回転を制御するにあたっては、各パルスの発生間隔により回転速度が制御されていたが、発光ダイオードなどについても、同様にそれぞれに電圧印加する頻度を指示すれば明るさを制御することができるので、同様の指令データにより発光を制御することができる。
In the drive system of FIG. 23, an
また、発光ダイオードのみならず、ソレノイドや、音声を発生させる音声発生装置などについても、同様のパルス信号の発生頻度を切り替えることで同様に制御することが可能である。 Further, not only the light emitting diode but also a solenoid, a sound generator that generates sound, and the like can be similarly controlled by switching the generation frequency of similar pulse signals.
以上の処理により、CPU11から一旦指令データを受けるのみで、自発的に高度な動作を制御できるようにしたので、CPU11の指令データの通信頻度や判断処理を低減させることが可能となり、CPU11の処理負荷を低減させることが可能となる。
With the above processing, it is possible to control advanced operations spontaneously only by receiving command data once from the
また、モータ、ソレノイド、発光ダイオードの発光、および音声の発生などの駆動源の動作形式は、出力設定を予め変えるようにすることで様々なパターンで動作させることが可能となる。 Further, the operation forms of the driving source such as the motor, solenoid, light emission of the light emitting diode, and sound generation can be operated in various patterns by changing the output setting in advance.
本発明によれば、複数の駆動源をより高度で、かつ複雑に動作させるように制御するにあたり、配線数を削減し、上位の制御装置による処理の負担を軽減することが可能となる。 According to the present invention, it is possible to reduce the number of wirings and reduce the processing load of a host control device when controlling a plurality of drive sources to operate more sophisticated and complicated.
ところで、上述した一連の監視処理は、ハードウェアにより実行させることもできるが、ソフトウェアにより実行させることもできる。一連の処理をソフトウェアにより実行させる場合には、そのソフトウェアを構成するプログラムが、専用のハードウェアに組み込まれているコンピュータ、または、各種のプログラムをインストールすることで、各種の機能を実行することが可能な、例えば汎用のパーソナルコンピュータなどに、記録媒体からインストールされる。 Incidentally, the series of monitoring processes described above can be executed by hardware, but can also be executed by software. When a series of processing is executed by software, a program constituting the software may execute various functions by installing a computer incorporated in dedicated hardware or various programs. For example, it is installed from a recording medium in a general-purpose personal computer or the like.
図24は、汎用のパーソナルコンピュータの構成例を示している。このパーソナルコンピュータは、CPU(Central Processing Unit)1001を内蔵している。CPU1001にはバス1004を介して、入出力インタフェース1005が接続されている。バス1004には、ROM(Read Only Memory)1002およびRAM(Random Access Memory)1003が接続されている。
FIG. 24 shows a configuration example of a general-purpose personal computer. This personal computer incorporates a CPU (Central Processing Unit) 1001. An input /
入出力インタフェース1005には、ユーザが操作コマンドを入力するキーボード、マウスなどの入力デバイスよりなる入力部1006、処理操作画面や処理結果の画像を表示デバイスに出力する出力部1007、プログラムや各種データを格納するハードディスクドライブなどよりなる記憶部1008、LAN(Local Area Network)アダプタなどよりなり、インターネットに代表されるネットワークを介した通信処理を実行する通信部1009が接続されている。また、磁気ディスク(フレキシブルディスクを含む)、光ディスク(CD-ROM(Compact Disc-Read Only Memory)、DVD(Digital Versatile Disc)を含む)、光磁気ディスク(MD(Mini Disc)を含む)、もしくは半導体メモリなどのリムーバブルメディア1011に対してデータを読み書きするドライブ1010が接続されている。
The input /
CPU1001は、ROM1002に記憶されているプログラム、または磁気ディスク、光ディスク、光磁気ディスク、もしくは半導体メモリ等のリムーバブルメディア1011から読み出されて記憶部1008にインストールされ、記憶部1008からRAM1003にロードされたプログラムに従って各種の処理を実行する。RAM1003にはまた、CPU1001が各種の処理を実行する上において必要なデータなども適宜記憶される。
The
尚、本明細書において、記録媒体に記録されるプログラムを記述するステップは、記載された順序に沿って時系列的に行われる処理は、もちろん、必ずしも時系列的に処理されなくとも、並列的あるいは個別に実行される処理を含むものである。 In this specification, the step of describing the program recorded on the recording medium is not limited to the processing performed in time series in the order described, but of course, it is not necessarily performed in time series. Or the process performed separately is included.
また、本明細書において、システムとは、複数の装置により構成される装置全体を表すものである。 Further, in this specification, the system represents the entire apparatus constituted by a plurality of apparatuses.
11 CPU
12,12−1,12−2 可動体駆動装置
21 受信部
22 動作制御部
23 分周部
24,24−1,24−2 出力制御部
41 デバイス認識部
42 アドレス認識部
43 動作状況指定部
44 選定部
51,51−1,51−2 クロック信号生成部
52,52−1,52−2 動作状況保持部
53,53−1,53−2 出力波形生成部
81,81−1,81−2 出力波形整形部
82,82−1,82−2 出力部
83,83−1,83−2 出力設定部
11 CPU
12, 12-1, 12-2 Movable
Claims (14)
所定の速度でカウンタのカウント値をカウントアップ、またはカウントダウンするカウント手段と、
前記指令に基づいて、前記カウンタのリミットカウント値を生成するリミットカウント値生成手段と、
前記リミットカウント値と、前記カウンタのカウント値とを比較し、前記カウント値がカウントアップする場合、前記カウンタのカウント値が前記リミットカウント値よりも大きいとき、または、前記カウント値がカウントダウンする場合、前記カウンタのカウント値が前記リミットカウント値よりも小さいとき、前記パルス信号を発生するパルス信号発生手段と、
前記パルス信号が発生されるタイミングで、前記カウンタの前記カウント値をクリア、またはプリセットする清算手段と
を含むパルス発生装置。 In a pulse generator that generates a pulse signal at a variable speed based on a command from a control device,
Counting means for counting up or down the count value of the counter at a predetermined speed;
Limit count value generating means for generating a limit count value of the counter based on the command;
When the count value of the counter is compared with the count value of the counter and the count value is counted up, when the count value of the counter is larger than the limit count value, or when the count value is counted down, Pulse signal generating means for generating the pulse signal when the count value of the counter is smaller than the limit count value;
Clearing means for clearing or presetting the count value of the counter at a timing at which the pulse signal is generated.
予め設定された複数の原発振パルス波を分周により発生する分周手段と、
前記分周手段により発生される複数の前記原発振パルス波を所定時間で順次切り替える切り替え手段とをさらに含み、
前記カウント手段は、前記切り替え手段により切り替えられた原発振パルス波に基づいた速度でカウンタのカウント値をカウントアップ、またはカウントダウンする
請求項1に記載のパルス発生装置。 The pulse generator is
A frequency dividing means for generating a plurality of preset original oscillation pulse waves by frequency division;
Switching means for sequentially switching the plurality of original oscillation pulse waves generated by the frequency dividing means at a predetermined time;
The pulse generation device according to claim 1, wherein the counting unit counts up or counts down a count value of the counter at a speed based on the original oscillation pulse wave switched by the switching unit.
請求項1または2に記載のパルス発生装置。 The pulse generation device according to claim 1, wherein the count unit counts up or counts down the count value and changes in a curve with the passage of time.
請求項1乃至3のいずれかに記載のパルス発生装置。 2. The counting means changes the count value of the count value up or down to a pseudo curve shape constructed in a pseudo manner by connecting a plurality of linear functions over time. The pulse generator according to any one of 1 to 3.
請求項3または4に記載のパルス発生装置。 The pulse generator according to claim 3 or 4, wherein the pseudo-curve-like change over time includes a pseudo-curve-like change similar to an inverse proportional function.
前記指令に基づいて、駆動指令内容を解釈する動作制御手段と、
前記パルス信号に基づいて、モータ、ソレノイド、LED、または音声発生装置を含む動作装置を駆動させる出力制御手段とをさらに含む
請求項1乃至5のいずれかに記載のパルス発生装置を備えた駆動装置。 Receiving means for receiving a command from the control device;
Based on the command, operation control means for interpreting the drive command content,
6. A drive device comprising the pulse generator according to claim 1, further comprising output control means for driving an operation device including a motor, a solenoid, an LED, or a sound generator based on the pulse signal. .
前記指令に基づき、動作状況を指定する動作状況指定手段と、
前記受信手段により、次の指令が受信されるまで、前記動作状況指定手段により指定された動作状況を保持する動作状況保持手段をさらに含む
請求項6に記載の駆動装置。 The operation control means includes
Based on the command, an operation status specifying means for specifying an operation status;
The driving apparatus according to claim 6, further comprising an operation state holding unit that holds the operation state designated by the operation state designation unit until a next command is received by the reception unit.
請求項6または7に記載の駆動装置。 The drive device according to claim 6, further comprising an output setting unit that sets an adaptive output form for each of the operation devices driven by the output control unit in the operation control unit or the output control unit.
前記指令に基づいて、複数の前記出力制御手段のいずれかを選定する選定手段をさらに含み、
複数の前記出力制御手段に接続された、複数の前記動作装置のうち、前記選定手段により選定された前記動作装置毎に、前記動作状況を個別に指定する
請求項6乃至8のいずれかに記載の駆動装置。 The operation control means includes
A selection means for selecting any of the plurality of output control means based on the command;
9. The operation status is individually specified for each of the operation devices selected by the selection unit among the plurality of operation devices connected to the plurality of output control units. Drive device.
請求項9の駆動装置。 The drive device according to claim 9, wherein either or both of the switching unit and the frequency dividing unit included in the plurality of output control units are shared by the plurality of output control units.
前記アドレス情報に基づいて、複数の前記駆動装置を識別するアドレス識別手段をさらに含む
前記制御装置と、少なくとも1つ以上の、請求項6乃至10のいずれかの駆動装置とからなる駆動システム。 The command received by the receiving means includes address information for identifying each of the plurality of drive devices,
11. A drive system comprising the control device and at least one drive device according to any one of claims 6 to 10, further comprising address identification means for identifying a plurality of the drive devices based on the address information.
所定の速度でカウンタのカウント値をカウントアップ、またはカウントダウンするカウントステップと、
前記指令に基づいて、前記カウンタのリミットカウント値を生成するリミットカウント値生成ステップと、
前記リミットカウント値と、前記カウンタのカウント値とを比較し、前記カウント値がカウントアップする場合、前記カウンタのカウント値が前記リミットカウント値よりも大きいとき、または、前記カウント値がカウントダウンする場合、前記カウンタのカウント値が前記リミットカウント値よりも小さいとき、前記パルス信号を発生するパルス信号発生ステップと、
前記パルス信号が発生されるタイミングで、前記カウンタの前記カウント値をクリア、またはプリセットする清算ステップと
を含むパルス発生方法。 In a pulse generation method of a pulse generator that generates a pulse signal at a variable speed based on a command from a control device,
A count step for counting up or down the count value of the counter at a predetermined speed;
A limit count value generating step for generating a limit count value of the counter based on the command;
When the count value of the counter is compared with the count value of the counter and the count value is counted up, when the count value of the counter is larger than the limit count value, or when the count value is counted down, A pulse signal generating step for generating the pulse signal when the count value of the counter is smaller than the limit count value;
A clearing step of clearing or presetting the count value of the counter at a timing at which the pulse signal is generated.
所定の速度でカウンタのカウント値をカウントアップ、またはカウントダウンするカウントステップと、
前記指令に基づいて、前記カウンタのリミットカウント値を生成するリミットカウント値生成ステップと、
前記リミットカウント値と、前記カウンタのカウント値とを比較し、前記カウント値がカウントアップする場合、前記カウンタのカウント値が前記リミットカウント値よりも大きいとき、または、前記カウント値がカウントダウンする場合、前記カウンタのカウント値が前記リミットカウント値よりも小さいとき、前記パルス信号を発生するパルス信号発生ステップと、
前記パルス信号が発生されるタイミングで、前記カウンタの前記カウント値をクリア、またはプリセットする清算ステップと
を含む処理を実行させるプログラム。 Based on a command from the control device, a computer that controls a pulse generator that generates a pulse signal at a variable speed,
A count step for counting up or down the count value of the counter at a predetermined speed;
A limit count value generating step for generating a limit count value of the counter based on the command;
When the count value of the counter is compared with the count value of the counter and the count value is counted up, when the count value of the counter is larger than the limit count value, or when the count value is counted down, A pulse signal generating step for generating the pulse signal when the count value of the counter is smaller than the limit count value;
A clearing step of clearing or presetting the count value of the counter at a timing at which the pulse signal is generated.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2008192702A JP2010029306A (en) | 2008-07-25 | 2008-07-25 | Pulse generating apparatus and method, and program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2008192702A JP2010029306A (en) | 2008-07-25 | 2008-07-25 | Pulse generating apparatus and method, and program |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2013190647A Division JP6053648B2 (en) | 2013-09-13 | 2013-09-13 | Pulse generating apparatus and method, and program |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2010029306A true JP2010029306A (en) | 2010-02-12 |
Family
ID=41734519
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2008192702A Pending JP2010029306A (en) | 2008-07-25 | 2008-07-25 | Pulse generating apparatus and method, and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2010029306A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2014184184A (en) * | 2014-04-14 | 2014-10-02 | Sophia Co Ltd | Game machine |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS62285682A (en) * | 1986-05-30 | 1987-12-11 | Shinko Electric Ind Co Ltd | Pulse train control method for servomotor |
| JPH03118797A (en) * | 1989-09-29 | 1991-05-21 | Toshiba Corp | Image forming device |
| JPH11151349A (en) * | 1997-11-21 | 1999-06-08 | Sansei | Ball control device for pachinko machine |
| JP2002186290A (en) * | 2000-12-14 | 2002-06-28 | Funai Electric Co Ltd | Controller for stepping motor |
| JP2002223593A (en) * | 2001-01-25 | 2002-08-09 | Ricoh Co Ltd | Stepping motor control method and control circuit and electronic device having stepping motor |
| JP2003340034A (en) * | 2002-05-23 | 2003-12-02 | Sankyo Kk | Game machine |
| JP2007000247A (en) * | 2005-06-22 | 2007-01-11 | Heiwa Corp | Game machine |
-
2008
- 2008-07-25 JP JP2008192702A patent/JP2010029306A/en active Pending
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS62285682A (en) * | 1986-05-30 | 1987-12-11 | Shinko Electric Ind Co Ltd | Pulse train control method for servomotor |
| JPH03118797A (en) * | 1989-09-29 | 1991-05-21 | Toshiba Corp | Image forming device |
| JPH11151349A (en) * | 1997-11-21 | 1999-06-08 | Sansei | Ball control device for pachinko machine |
| JP2002186290A (en) * | 2000-12-14 | 2002-06-28 | Funai Electric Co Ltd | Controller for stepping motor |
| JP2002223593A (en) * | 2001-01-25 | 2002-08-09 | Ricoh Co Ltd | Stepping motor control method and control circuit and electronic device having stepping motor |
| JP2003340034A (en) * | 2002-05-23 | 2003-12-02 | Sankyo Kk | Game machine |
| JP2007000247A (en) * | 2005-06-22 | 2007-01-11 | Heiwa Corp | Game machine |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2014184184A (en) * | 2014-04-14 | 2014-10-02 | Sophia Co Ltd | Game machine |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6053648B2 (en) | Pulse generating apparatus and method, and program | |
| JP2010029306A (en) | Pulse generating apparatus and method, and program | |
| EP4255595A1 (en) | Systems and methods for controlling an operation of an attraction system | |
| JP5407074B2 (en) | Light emitting diode driving apparatus and method, and program | |
| JP5345248B2 (en) | Motor driver control device | |
| JP5532596B2 (en) | Stepping motor driving apparatus and method, and program | |
| JP4420079B2 (en) | Pulse motor control device, control method, control program, and imaging device | |
| CN116490723A (en) | Control method, device, equipment and storage medium for realizing animation effect of lamps and lanterns | |
| CN104113267B (en) | Drive circuit for vibration motor | |
| CN106163024A (en) | A kind of PWM light-dimming method and PWM light modulating device | |
| JP5713084B2 (en) | LED driving device | |
| KR100555556B1 (en) | Stepping Motor Control Method | |
| JP4340080B2 (en) | Camera moving device | |
| CN106301116B (en) | The control system of pulse step motor | |
| JP5505652B2 (en) | Robot control system and robot control method | |
| US11732663B2 (en) | Starter-generator speed control | |
| US10613518B2 (en) | Servo control device | |
| TW201440397A (en) | Drive circuit for vibration motor and drive method for vibration motor | |
| US7342377B2 (en) | Stepping-motor control apparatus and method of controlling the apparatus | |
| JP4987302B2 (en) | Driving method of stepping motor | |
| CN110689800A (en) | Method, device and system for controlling light swallowing demonstration cabinet and computer storage medium | |
| JP2019161287A (en) | Imaging apparatus and photographing method | |
| JP2009505615A (en) | Motor drive current shaping | |
| JP2005333792A (en) | Pulse generation method and pulse generation apparatus, and motor control system using the same | |
| JP2009254024A (en) | Pulse motor drive unit, drive method, and pulse motor |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Effective date: 20110510 Free format text: JAPANESE INTERMEDIATE CODE: A621 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20130131 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130205 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20130314 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130409 |
|
| A521 | Written amendment |
Effective date: 20130607 Free format text: JAPANESE INTERMEDIATE CODE: A523 |
|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20130709 |