JP2002032127A - Circuit, system and method for controlling motor - Google Patents

Circuit, system and method for controlling motor

Info

Publication number
JP2002032127A
JP2002032127A JP2000198261A JP2000198261A JP2002032127A JP 2002032127 A JP2002032127 A JP 2002032127A JP 2000198261 A JP2000198261 A JP 2000198261A JP 2000198261 A JP2000198261 A JP 2000198261A JP 2002032127 A JP2002032127 A JP 2002032127A
Authority
JP
Japan
Prior art keywords
signal pattern
motor
position command
drive circuit
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2000198261A
Other languages
Japanese (ja)
Inventor
Kazuaki Kamei
一明 亀井
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.)
Molex LLC
Original Assignee
Molex LLC
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 Molex LLC filed Critical Molex LLC
Priority to JP2000198261A priority Critical patent/JP2002032127A/en
Publication of JP2002032127A publication Critical patent/JP2002032127A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide control technology capable of reducing load of an arithmetic unit in the control of position control motors and quickly controlling many position control motors without increasing the number of arithmetic units and required performance. SOLUTION: A motor control device (1) for sending a signal pattern to a motor driving circuit (2) and controlling the angle of a motor (3) is provided with a memory (13) for storing a signal pattern for specifying the displacement of the turned angle, a data sending parts (12, 15, 7a, 7b, 9a, 9b) for sending a prescribed signal pattern stored in the memory (3) to the motor driving circuit (2) and synchronizing timing signal generation parts (4, 4a, 4b) for regulating timing for sending the signal pattern from the data sending part.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、モータ制御装置、
特にデジタル式位置制御モータ、例えばサーボモータや
ステッピングモータの位置指令発生装置に関するもので
ある。
TECHNICAL FIELD The present invention relates to a motor control device,
In particular, the present invention relates to a position command generator for a digital position control motor, for example, a servo motor or a stepping motor.

【0002】[0002]

【従来の技術】サーボモータやステッピングモータとの
デジタル式位置制御モータは、そのモータ軸の回動角を
指定する位置指令を入力され、その位置指令に従い、モ
ータ軸を回動させる。
2. Description of the Related Art A digital position control motor such as a servo motor or a stepping motor receives a position command for designating a rotation angle of a motor shaft, and rotates the motor shaft according to the position command.

【0003】この位置指令を発生する位置指令発生装置
は、従来、位置制御モータに指令値を送出しながら、次
の指令値を演算していた。この位置指令発生装置は、こ
のような指令値の演算とその指令値の送出とを順次繰り
返して、位置制御モータを制御していた。
Conventionally, a position command generator that generates this position command calculates the next command value while sending the command value to a position control motor. The position command generator controls the position control motor by sequentially repeating such calculation of the command value and transmission of the command value.

【0004】この指令値の演算は、位置指令装置が有す
る演算装置(マイクロプロセッサ)にとって大きな負担
であった。特に、複数の位置制御モータを制御する場
合、その演算量がさらに増大する。このため、演算装置
には、高性能で高価なものが要求されていた。この結
果、位置制御モータを多数使用する機械では、位置指令
発生装置によりコストアップを招いていた。
[0004] The calculation of this command value places a heavy burden on the arithmetic unit (microprocessor) of the position command device. In particular, when controlling a plurality of position control motors, the amount of calculation further increases. Therefore, a high-performance and expensive computing device has been required. As a result, in a machine using a large number of position control motors, the cost is increased by the position command generator.

【0005】一方、1台の位置指令発生装置によって制
御可能なモータの軸数には、このような演算能力に依存
して制限がある。このため、制御対象の軸数が増えるに
従って、多くの制御装置を必要とする。この結果、位置
制御モータを多数使用する機械が高価になっていた。
[0005] On the other hand, the number of motor axes that can be controlled by one position command generator is limited depending on such computing power. Therefore, as the number of axes to be controlled increases, more control devices are required. As a result, machines using a large number of position control motors have become expensive.

【0006】[0006]

【発明が解決しようとする課題】本発明はこのような従
来の技術の問題点に鑑みてなされたものである。本発明
課題は、位置制御モータの制御における演算装置の負荷
を低減し、演算装置の数や要求性能を増大させることな
く、多数の位置制御モータを高速に制御可能な制御技術
を提供することである。
SUMMARY OF THE INVENTION The present invention has been made in view of such problems of the prior art. An object of the present invention is to provide a control technology capable of controlling a large number of position control motors at a high speed without reducing the load on the processing device in controlling the position control motors and increasing the number of processing devices and required performance. is there.

【0007】[0007]

【課題を解決するための手段】本発明は上記課題を解決
するために、以下の手段を採用した。
In order to solve the above-mentioned problems, the present invention employs the following means.

【0008】すなわち、本発明は、モータ駆動回路
(2)へ信号パターン送出し、モータ(3)の回動角を
制御するモータ制御装置(1)であり、回動角の変位を
指定する信号パターンを記憶するメモリ(13)と、こ
のメモリ(13)内の所定の信号パターンを前記モータ
駆動回路(2)へ送出するデータ送出部(12、15、
7a、7b、9a、9b)と、前記データ送出部が信号
パターンを送出するタイミングを規制する同期タイミン
グ信号発生部(4、4a、4b)とを備えたものであ
る。
That is, the present invention relates to a motor control device (1) for transmitting a signal pattern to a motor drive circuit (2) and controlling a rotation angle of a motor (3), wherein a signal for designating a displacement of the rotation angle is provided. A memory (13) for storing a pattern, and a data transmission unit (12, 15,...) For transmitting a predetermined signal pattern in the memory (13) to the motor drive circuit (2).
7a, 7b, 9a, 9b) and a synchronization timing signal generator (4, 4a, 4b) for regulating the timing at which the data transmitter transmits a signal pattern.

【0009】好ましくは、このメモリ13は、モータに
繰り返して同一動作をさせる信号パターンの繰り返し部
分を記憶し、データ送出部(12、15、7a、7b、
9a、9b)は、所定の周期で、この信号パターンを繰
り返してモータ駆動回路(2)へ送出してもよい。
Preferably, the memory 13 stores a repetition portion of a signal pattern for causing the motor to perform the same operation repeatedly, and stores the data transmission portion (12, 15, 7a, 7b,
9a, 9b) may repeat this signal pattern at a predetermined cycle and send it to the motor drive circuit (2).

【0010】好ましくは、この信号パターンをリングバ
ッファ(6)に保持してもよい。
[0010] Preferably, this signal pattern may be held in a ring buffer (6).

【0011】好ましくは、同期タイミング信号発生部
は、データ送出部に、メモリ(13)の読み出しアドレ
スの増加方向に信号パターンを読み出させて送出させる
正方向タイミング発生部と、メモリ(13)の読み出し
アドレスの減少方向に信号パターンを読み出させて送出
させる負方向タイミング発生部とからなるものでもよ
い。
Preferably, the synchronization timing signal generating section causes the data transmitting section to read a signal pattern in the direction of increasing the read address of the memory (13) and transmit the read signal pattern; A negative direction timing generator for reading a signal pattern in the decreasing direction of the read address and transmitting the signal pattern may be used.

【0012】本発明は、複数のモータ駆動回路(2)
と、このモータ駆動回路(2)に駆動されるモータ
(3)とを有するモータシステムに対して、各モータ
(3)の回動角を制御するモータ制御システムであり、
各モータ駆動回路(2)へ信号パターンを送出する複数
のモータ制御装置(1)と、モータ制御装置(1)が信
号パターンを送出するタイミングを規制する同期タイミ
ング信号発生装置(4)とを備え、前記モータ制御装置
(1)は、前記モータ(3)の回動角の変位を指定する
信号パターンを記憶するメモリ(13)と、このメモリ
(13)内の所定の信号パターンを前記モータ駆動回路
(2)へ送出するデータ送出部(12、15、7a、7
b、9a、9b)とを有し、前記同期タイミング信号発
生装置(4)は、複数のモータ制御装置(1)に対し、
同一の同期タイミング信号を与え、複数のモータ(3)
の回動角を制御するタイミングを規制するものである。
According to the present invention, a plurality of motor drive circuits (2) are provided.
And a motor control system for controlling a rotation angle of each motor (3) with respect to a motor system having a motor (3) driven by the motor drive circuit (2),
A plurality of motor control devices (1) for transmitting a signal pattern to each motor drive circuit (2), and a synchronization timing signal generating device (4) for regulating the timing at which the motor control device (1) transmits the signal pattern. The motor control device (1) includes a memory (13) for storing a signal pattern designating a displacement of a rotation angle of the motor (3), and a predetermined signal pattern in the memory (13) for driving the motor. A data transmitting unit (12, 15, 7a, 7) for transmitting to the circuit (2);
b, 9a, 9b), wherein the synchronous timing signal generator (4) is provided for a plurality of motor controllers (1).
The same synchronous timing signal is given, and a plurality of motors (3)
The timing for controlling the rotation angle of the motor is regulated.

【0013】また、本発明は、モータ駆動回路(2)へ
送出されモータ(3)の回動角を制御する信号パターン
の生成装置であり、モータ(3)の回動角の指定を含む
モータ(3)の動作仕様を入力する入力部(22、S
1)と、この動作仕様から前記モータ駆動回路(2)へ
の信号パターンを生成する信号パターン生成部(22、
S2)と、この信号パターンを記憶する記憶部(23)
とからなるものである。
Further, the present invention is a signal pattern generating device which is sent to a motor drive circuit (2) and controls a rotation angle of a motor (3), and includes a motor including a designation of a rotation angle of the motor (3). An input unit (22, S) for inputting the operation specifications of (3)
1) and a signal pattern generator (22, 22) for generating a signal pattern from the operation specification to the motor drive circuit (2).
S2) and a storage unit (23) for storing this signal pattern
It consists of:

【0014】[0014]

【発明の実施の形態】以下、本発明の好適な実施の形態
を図面を参照して説明する。 《第1実施形態》本発明の第1実施形態に係る制御シス
テムを図1から図10の図面に基づいて説明する。図1
は、位置指令発生装置1(モータ制御装置に相当)と、
制御対象のサーボモータ3を含む制御システムのシステ
ム構成図であり、図2は、この位置指令発生装置1の原
理図であり、図3は、図1に示した位置指令発生装置1
が有するリングバッファ6と同期タイミングクロック4
a、4bの動作を説明する図であり、図4は、位置指令
発生装置1と、この位置指令発生装置1に書き込む位置
指令データを作成する位置指令データ作成装置21のハ
ードウェア構成図であり、図5は、位置指令データ作成
装置21のCPU22で実行される位置指令データ作成
プログラムの処理を示すフローチャートであり、図6
は、位置指令発生装置1のCPU12で実行され、位置
指令データから位置指令を発生する電子カムプログラム
の処理を示すフローチャートであり、図7及び図8は、
電子カムプログラムの変形例を示すフローチャートであ
り、図9は、位置指令データの変形例を示す図であり、
図10は、位置指令発生装置1の変形例を示すブロック
図である。 <システム構成>図1に、制御対象のサーボモータ3を
含む制御システムのシステム構成図を示す。この制御シ
ステムは、制御対象のサーボモータ3と、サーボモータ
3の回動角を検出する位置検出器4(ロータリエンコー
ダ)と、このサーボモータ3を駆動するモータ駆動回路
2と、モータ駆動回路2に位置指令100を入力し、サ
ーボモータ3を制御する位置指令発生装置1とを備えて
いる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be described below with reference to the drawings. << First Embodiment >> A control system according to a first embodiment of the present invention will be described with reference to FIGS. Figure 1
Is a position command generator 1 (corresponding to a motor controller),
FIG. 2 is a system configuration diagram of a control system including a servomotor 3 to be controlled. FIG. 2 is a principle diagram of the position command generator 1, and FIG. 3 is a diagram illustrating the position command generator 1 shown in FIG.
Buffer 6 and synchronous timing clock 4
FIGS. 4A and 4B are diagrams for explaining the operations of FIGS. 4A and 4B. FIG. 4 is a hardware configuration diagram of the position command generating device 1 and a position command data generating device 21 that generates position command data to be written into the position command generating device 1. FIG. 5 is a flowchart showing the processing of the position command data creation program executed by the CPU 22 of the position command data creation device 21, and FIG.
FIG. 7 is a flowchart showing processing of an electronic cam program which is executed by the CPU 12 of the position command generating device 1 and generates a position command from the position command data.
FIG. 9 is a flowchart illustrating a modification of the electronic cam program, and FIG. 9 is a diagram illustrating a modification of the position command data;
FIG. 10 is a block diagram showing a modification of the position command generator 1. <System Configuration> FIG. 1 shows a system configuration diagram of a control system including a servomotor 3 to be controlled. The control system includes a servo motor 3 to be controlled, a position detector 4 (rotary encoder) for detecting a rotation angle of the servo motor 3, a motor drive circuit 2 for driving the servo motor 3, and a motor drive circuit 2 And a position command generator 1 for inputting a position command 100 to the servo motor 3 and controlling the servo motor 3.

【0015】位置指令発生装置1は、内部に保持した位
置指令データに従い、位置指令100を発生し、モータ
駆動回路2に入力する。
The position command generator 1 generates a position command 100 according to the position command data stored therein and inputs the position command 100 to the motor drive circuit 2.

【0016】モータ駆動回路2は、位置指令100に従
い、駆動電流101を発生し、サーボモータ3に給電す
る。
The motor drive circuit 2 generates a drive current 101 in accordance with the position command 100 and supplies power to the servo motor 3.

【0017】サーボモータ3は、モータ駆動回路2から
駆動電流101を給電され、駆動電流101に応じてモ
ータ軸を回動させる。
The servo motor 3 is supplied with a drive current 101 from the motor drive circuit 2, and rotates the motor shaft according to the drive current 101.

【0018】位置検出器4は、サーボモータ3の回動角
を電圧に変換し、位置検出信号102として出力する。 <位置指令発生装置1の原理>図2に、位置指令発生装
置1の原理図を示す。この位置指令発生装置1は、サー
ボモータ3に動作を指令する位置指令データを予め内部
に有するメモリ13に記憶している。この位置指令デー
タは、予めサーボモータ3の動作仕様に応じて作成され
たものである。そして、この位置指令発生装置1は、ク
ロック4aまたはクロック4bに同期して、この位置指
令データをサーボモータ3に入力する。
The position detector 4 converts the rotation angle of the servo motor 3 into a voltage and outputs it as a position detection signal 102. <Principle of Position Command Generating Apparatus 1> FIG. The position command generator 1 stores position command data for commanding the operation of the servomotor 3 in a memory 13 having therein the position command data in advance. This position command data is created in advance according to the operation specifications of the servo motor 3. Then, the position command generator 1 inputs the position command data to the servomotor 3 in synchronization with the clock 4a or the clock 4b.

【0019】この位置指令データは、1指令分が8ビッ
トで構成される。先頭2ビットは、サーボモータ3の回
動方向を指定する。すなわち、ビット番号0のビット
(第0ビットという。他のビットも同様)は逆転ビット
である。このビットが1のとき、サーボモータ3は、回
動方向を逆転させる。 一方、第1ビットは正転ビット
である。このビットが1のとき、サーボモータ3は、回
動方向を逆転させず、同一方向へ回動(正転)する。第
0、第1ビットがともに0のとき、サーボモータ3は、
回動しない。
In the position command data, one command is composed of 8 bits. The first two bits specify the rotation direction of the servo motor 3. That is, the bit of bit number 0 (referred to as the 0th bit; the same applies to other bits) is an inverted bit. When this bit is 1, the servo motor 3 reverses the rotation direction. On the other hand, the first bit is a normal bit. When this bit is 1, the servo motor 3 rotates (forward rotation) in the same direction without reverse rotation. When the 0th and 1st bits are both 0, the servo motor 3
Does not rotate.

【0020】第2ビットから第7ビットには、サーボモ
ータ3の動作パターン(各ビットの1が1ステップの回
動、0が停止)が格納される。
The second to seventh bits store the operation pattern of the servomotor 3 (1 in each bit is one step rotation, 0 is stop).

【0021】クロック4aは、正方向同期タイミングク
ロックであり、メモリ13における読み出しアドレスを
正方向にインクリメントする。すなわち、この位置指令
発生装置1は、クロック4aに同期して、例えば、アド
レス0、1、...9の順でメモリ13の位置指令デー
タを読み出し、サーボモータ3に入力する。
The clock 4a is a forward synchronization timing clock, and increments the read address in the memory 13 in the forward direction. That is, the position command generating device 1 synchronizes with the clock 4a and outputs, for example, addresses 0, 1,. . . The position command data in the memory 13 is read out in the order of 9 and input to the servo motor 3.

【0022】クロック4aは、逆方向同期タイミングク
ロックであり、メモリ13における読み出しアドレスを
逆方向にデクリメントする。すなわち、この位置指令発
生装置1は、クロック4bに同期して、例えば、アドレ
ス9、8、...0の順でメモリ13の位置指令データ
を読み出し、サーボモータ3に入力する。
The clock 4a is a backward synchronization timing clock, and decrements the read address in the memory 13 in the backward direction. That is, the position command generating device 1 synchronizes with the clock 4b and outputs, for example, addresses 9, 8,. . . The position command data is read from the memory 13 in the order of 0 and input to the servo motor 3.

【0023】以下図2の位置指令データに従い、位置指
令発生装置1の作用を例示する。 1)正方向同期タイミングクロック4aが入力される
と、アドレス0のデータがサーボモータ3に転送され
る。このデータは、逆転ビットが1なので、サーボモー
タ3は回動方向を逆転し、第2ビット以下に指定された
回動角だけモータ軸を回動させる。 2)次の正方向同期タイミングクロック4aが入力され
ると、アドレス1のデータがサーボモータ3に転送され
る。このデータは、逆転ビットが1なので、サーボモー
タ3は回動方向を逆転し、第2ビット以下に指定された
回動角だけモータ軸を回動させる。 3)次の正方向同期タイミングクロック4aが入力され
ると、アドレス2のデータがサーボモータ3に転送され
る。このデータは、逆転ビット、正転ビットがともに0
なので、サーボモータ3はモータ軸を回動しない。 4)次の正方向同期タイミングクロック4aが入力され
ると、アドレス3のデータがサーボモータ3に転送され
る。このデータは、逆転ビット、正転ビットがともに0
なので、サーボモータ3はモータ軸を回動しない。 5)次の正方向同期タイミングクロック4aが入力され
ると、アドレス4のデータがサーボモータ3に転送され
る。このデータは、正転ビットが1なので、サーボモー
タ3は回動方向を逆転せずに第2ビット以下に指定され
た回動角だけモータ軸を回動させる。 6)以下同様にして、位置指令発生装置1はアドレス9
までのデータをサーボモータ3に転送する。
Hereinafter, the operation of the position command generator 1 will be described according to the position command data shown in FIG. 1) When the positive-direction synchronization timing clock 4a is input, the data at address 0 is transferred to the servomotor 3. In this data, since the reverse rotation bit is 1, the servo motor 3 reverses the rotation direction and rotates the motor shaft by the rotation angle specified by the second bit or less. 2) When the next positive synchronization timing clock 4a is input, the data at address 1 is transferred to the servo motor 3. In this data, since the reverse rotation bit is 1, the servo motor 3 reverses the rotation direction and rotates the motor shaft by the rotation angle specified by the second bit or less. 3) When the next forward synchronization timing clock 4a is input, the data at address 2 is transferred to the servo motor 3. In this data, the reverse bit and the normal bit are both 0.
Therefore, the servo motor 3 does not rotate the motor shaft. 4) When the next forward synchronization timing clock 4a is input, the data at address 3 is transferred to the servo motor 3. In this data, the reverse bit and the normal bit are both 0.
Therefore, the servo motor 3 does not rotate the motor shaft. 5) When the next forward synchronization timing clock 4a is input, the data at address 4 is transferred to the servo motor 3. In this data, since the normal rotation bit is 1, the servo motor 3 rotates the motor shaft by the rotation angle specified by the second bit or less without reversing the rotation direction. 6) Similarly, the position command generator 1 sets the address 9
Is transferred to the servo motor 3.

【0024】このメモリ13の位置指令データを保持す
る部分は、リングバッファ6を形成する。図3に、リン
グバッファ6の動作を例示する。
The portion of the memory 13 holding the position command data forms the ring buffer 6. FIG. 3 illustrates the operation of the ring buffer 6.

【0025】リングバッファ6は、読み出しアドレスま
たは書き込みアドレスをリング状に巡回させる機能を有
する。図3に示したように、例えば、位置指令データの
読み出しにおいて、先頭(アドレス0)から最後尾(ア
ドレス9)まで読み出しが完了すると、次の正方向同期
タイミングクロック4aの入力により、再び、リングバ
ッファ6の先頭に読み出しアドレスが戻される。このよ
うにして、位置指令発生装置1は、正方向同期タイミン
グクロック4aに同期してアドレス0から9のデータの
サーボモータ3への転送を繰り返す。
The ring buffer 6 has a function of circulating a read address or a write address in a ring. As shown in FIG. 3, for example, in the reading of the position command data, when the reading from the head (address 0) to the tail (address 9) is completed, the ring is again returned by the input of the next forward synchronization timing clock 4a. The read address is returned to the head of the buffer 6. In this way, the position command generator 1 repeats the transfer of the data of the addresses 0 to 9 to the servomotor 3 in synchronization with the forward synchronization timing clock 4a.

【0026】一方、逆方向同期タイミングクロック4b
の入力に対して、位置指令発生装置1は、アドレスをデ
クリメントして、上記と同様の動作を繰り返す。 <ハードウェア構成>図4は、位置指令発生装置1と、
位置指令制御装置1に書き込まれる位置指令データを生
成する位置指令データ作成装置21のハードウェア構成
図である。
On the other hand, the reverse synchronization timing clock 4b
In response to the input, the position command generator 1 decrements the address and repeats the same operation as described above. <Hardware Configuration> FIG. 4 shows a position command generator 1 and
FIG. 2 is a hardware configuration diagram of a position command data creating device 21 that generates position command data to be written into the position command control device 1.

【0027】この位置指令データ作成装置21は、プロ
グラムを実行して位置指令データを作成するCPU22
と、CPU22で実行されるプログラムや、CPU22
で処理されるデータを記憶するメモリ23と、プログラ
ムやデータを記録するハードディスク24と、位置指令
発生装置1にデータを書き込むための通信インターフェ
ース25と、ユーザにCPU22の処理結果を表示する
CRT26と、ユーザがデータを入力するためのキーボ
ード27と、ユーザがCRT26上のメニューやアイコ
ンを操作するためのポインティングデバイス28とを備
えている。
The position command data generating device 21 executes a program to generate position command data.
And a program executed by the CPU 22 and the CPU 22
A hard disk 24 for storing programs and data, a communication interface 25 for writing data to the position command generator 1, a CRT 26 for displaying the processing results of the CPU 22 to the user, A keyboard 27 for the user to input data and a pointing device 28 for the user to operate menus and icons on the CRT 26 are provided.

【0028】CPU22は、メモリ23に記憶されたプ
ログラムを実行し、位置指令データ作成装置21として
の機能を提供する。
The CPU 22 executes a program stored in the memory 23 and provides a function as the position command data creating device 21.

【0029】メモリ23は、CPU22で実行されるプ
ログラムやCPU22で処理されるデータを記憶する。
このデータには、サーボモータ3の動作仕様データと、
それに対応して作成される位置指令データが含まれる。
The memory 23 stores programs executed by the CPU 22 and data processed by the CPU 22.
This data includes the operation specification data of the servo motor 3 and
It includes position command data created correspondingly.

【0030】ハードディスク24は、CPU22で実行
されるプログラムやCPU22で処理されるデータを記
録する。
The hard disk 24 records programs executed by the CPU 22 and data processed by the CPU 22.

【0031】通信インターフェース25は、CPU12
の指令により、位置指令発生装置1にアクセスし、作成
した位置指令データをメモリ13に書き込ませる。
The communication interface 25 includes the CPU 12
By accessing the position command generator 1, the generated position command data is written into the memory 13.

【0032】CRT26は、ユーザが入力したデータ
や、そのデータを処理した結果を表示する。
The CRT 26 displays data input by the user and the result of processing the data.

【0033】キーボード27は、ユーザが文字情報を入
力するために使用される。
The keyboard 27 is used by a user to input character information.

【0034】ポインティングデバイス28は、CRT2
6に表示されたメニュー、ボタン、またはアイコン等を
操作するために使用される。ポインティングデバイス2
8として、例えば、マウス、トラックボール、静電方式
の指示装置、レーザ方式の指示装置、ジョイステック、
または、タッチパネル等を利用できる。
The pointing device 28 is a CRT 2
6 is used to operate a menu, button, icon, or the like displayed on the screen. Pointing device 2
8, for example, a mouse, a trackball, an electrostatic pointing device, a laser pointing device, a joystick,
Alternatively, a touch panel or the like can be used.

【0035】位置指令発生装置1は、位置指令データ作
成装置21と同様に、CPU12、メモリ13、通信イ
ンターフェース15を備えている。これらの構成要素の
作用は、位置指令データ作成装置21と同様であるの
で、その説明を省略する。
The position command generating device 1 includes a CPU 12, a memory 13, and a communication interface 15, like the position command data creating device 21. The operation of these components is the same as that of the position command data creating device 21, and a description thereof will be omitted.

【0036】なお、通信インタフェース15は、位置指
令発生装置1の他、サーボモータ3とも接続されてい
る。メモリ13へのデータ書き込み時には、通信インタ
フェース15は、位置指令データ作成装置21からデー
タを受信する。
The communication interface 15 is connected to the servomotor 3 in addition to the position command generator 1. When writing data to the memory 13, the communication interface 15 receives data from the position command data creating device 21.

【0037】一方、サーボモータ3へのデータ転送時に
は、通信インタフェース15は、メモリ13のデータを
サーボモータ3に書き込む。<作用と効果>図5に、位
置指令データ作成装置21のCPU22で実行されるプ
ログラムの処理(位置指令の演算・書き込処理)を示
す。CPU22は、この処理を実行し、位置指令データ
を作成する。
On the other hand, when transferring data to the servo motor 3, the communication interface 15 writes data in the memory 13 to the servo motor 3. <Operation and Effect> FIG. 5 shows processing of a program executed by the CPU 22 of the position command data creating device 21 (calculation / writing of position command). The CPU 22 executes this processing and creates position command data.

【0038】この処理では、CPU22は、まず、テキ
スト形式で記述されたサーボモータ3の動作仕様と、転
送指定とをハードディスク24から読む(S1)。この
テキスト形式は、サーボモータ3の動作機能をコマンド
形式で記述したものであり、回動方向と、速度、回動角
が指定される。転送指定とは、作成した位置指令を位置
指令発生装置1に書き込むか否かの指定である。この動
作仕様と、または、転送指定は、キーボード27から入
力してもよい。
In this process, the CPU 22 first reads from the hard disk 24 the operation specifications of the servomotor 3 described in text format and the transfer designation (S1). This text format describes the operation function of the servomotor 3 in a command format, and specifies a rotation direction, a speed, and a rotation angle. The transfer designation is a designation as to whether the created position command is to be written to the position command generator 1 or not. The operation specification or the transfer designation may be input from the keyboard 27.

【0039】次に、CPU22は、上記動作仕様から動
作パターンを計算する(S2)。すなわち、CPU22
は、上記テキスト形式から所定のクロックに対応した動
作パターン(図2に例示したもの)を生成する。この動
作パターンを位置指令データともいう。
Next, the CPU 22 calculates an operation pattern from the above operation specifications (S2). That is, the CPU 22
Generates an operation pattern (as illustrated in FIG. 2) corresponding to a predetermined clock from the text format. This operation pattern is also called position command data.

【0040】動作仕様は、例えば、モータ軸の回動角、
角速度、角加速度を所望の時刻においてして指定する一
連のコマンド列からなるテキストデータである。この動
作仕様をサーボモータ3の回動方向と単位回動量とを指
示するビット列に展開したものが動作パターンである。
The operation specifications include, for example, the rotation angle of the motor shaft,
This is text data consisting of a series of command strings that specify an angular velocity and an angular acceleration at a desired time. An operation pattern is obtained by developing this operation specification into a bit string indicating a rotation direction and a unit rotation amount of the servo motor 3.

【0041】次に、CPU22は、生成した動作パター
ンをメモリ23に書き込む(S3)。
Next, the CPU 22 writes the generated operation pattern into the memory 23 (S3).

【0042】次に、CPU22は、残りの動作仕様があ
るか否かを判定する(S4)。残りの動作仕様がある場
合、CPU22は、S1の処理へ制御を戻す。
Next, the CPU 22 determines whether or not there is a remaining operation specification (S4). If there are remaining operation specifications, the CPU 22 returns the control to the processing of S1.

【0043】残りの動作仕様がない場合、次に、CPU
22は、転送指定されたか否かを判定する(S5)。転
送指定がされている場合、CPU22は、メモリ23に
記憶しておいた動作パターンを位置指令発生装置1に書
き込む(S6)。
If there are no remaining operation specifications, then the CPU
22 determines whether or not the transfer is designated (S5). When the transfer is designated, the CPU 22 writes the operation pattern stored in the memory 23 into the position command generator 1 (S6).

【0044】転送指定がされていない場合、CPU22
は、メモリ23に記憶しておいた動作パターンを自身の
ハードディスク24にセーブする(S7)。その後、C
PU22は、位置指令の演算・書き込処理を終了する。
If no transfer is designated, the CPU 22
Saves the operation pattern stored in the memory 23 to its own hard disk 24 (S7). Then, C
The PU 22 ends the operation / write processing of the position command.

【0045】図6は、位置指令発生装置1のCPU12
で実行される電子カムプログラムの処理を示すフローチ
ャートである。CPU12は、このプログラムを実行
し、位置指令発生装置1の機能を提供する。
FIG. 6 shows the CPU 12 of the position command generator 1.
5 is a flowchart showing a process of an electronic cam program executed by the electronic cam program. The CPU 12 executes this program and provides the function of the position command generator 1.

【0046】このプログラムを実行すると、CPU12
は、まず、電子カムプログラムを終了するか否かを判定
する(S20)。電子カムプログラムは、不図示の終了
スイッチが押された後、処理中の位置指令データ8ビッ
トの転送が完了したときに終了する。
When this program is executed, the CPU 12
First, it is determined whether to end the electronic cam program (S20). The electronic cam program ends when the transfer of 8-bit position command data being processed is completed after the end switch (not shown) is pressed.

【0047】終了スイッチが押されていない場合(S2
0)、CPU12は、外部指令(同期タイミングクロッ
ク)の入力を判定する。外部指令がない場合、CPU1
2は、制御をS20に戻す。
If the end switch is not pressed (S2
0), the CPU 12 determines the input of an external command (synchronous timing clock). If there is no external command, CPU1
2 returns control to S20.

【0048】外部指令が正方向同期タイミングクロック
4aであった場合、CPU12は、S22に制御を進め
る。一方、外部指令が逆方向同期タイミングクロック4
bであった場合、CPU12は、S25に制御を進め
る。
If the external command is the forward synchronization timing clock 4a, the CPU 12 advances the control to S22. On the other hand, when the external command is the reverse synchronization timing clock 4
If the answer is b, the CPU 12 advances the control to S25.

【0049】正方向読み出しの場合、次に、CPU12
は、アドレスがリングバッファ6の最終値か否かを判定
する(S22)。
In the case of forward reading, the CPU 12
Determines whether the address is the final value of the ring buffer 6 (S22).

【0050】S22の判定で、アドレスがリングバッフ
ァ6の最終値でない場合、CPU12はアドレスをイン
クリメントする(S23)。次に、CPU12は、1バ
イト(8ビット)の位置指令データを出力ポートに接続
された通信インターフェース15を介して、サーボモー
タ3に転送する(S28)。その後、CPU12は、S
20の処理に制御を戻す。
If it is determined in S22 that the address is not the final value of the ring buffer 6, the CPU 12 increments the address (S23). Next, the CPU 12 transfers the 1-byte (8-bit) position command data to the servo motor 3 via the communication interface 15 connected to the output port (S28). Thereafter, the CPU 12
The control is returned to the process of 20.

【0051】S22の判定で、アドレスがリングバッフ
ァ6の最終値であった場合、CPU12はアドレスをス
タート値(リングバッファ6の先頭)にプリセットする
(S24)。次に、CPU12は、1バイト(8ビッ
ト)の位置指令データを出力ポートに接続された通信イ
ンターフェース15を介して、サーボモータ3に転送す
る(S28)。その後、CPU12は、S20の処理に
制御を戻す。
If it is determined in S22 that the address is the last value of the ring buffer 6, the CPU 12 presets the address to a start value (the head of the ring buffer 6) (S24). Next, the CPU 12 transfers the 1-byte (8-bit) position command data to the servo motor 3 via the communication interface 15 connected to the output port (S28). Thereafter, the CPU 12 returns the control to the processing of S20.

【0052】逆方向読み出しの場合、次に、CPU12
は、アドレスがスタート値(リングバッファ6の先頭)
か否かを判定する(S25)。
In the case of the backward reading, the CPU 12
Is the start value of the address (the top of the ring buffer 6)
It is determined whether or not (S25).

【0053】S25の判定で、アドレスがスタート値で
ない場合、CPU12はアドレスをデクリメントする
(S26)。次に、CPU12は、1バイト(8ビッ
ト)の位置指令データを出力ポートに接続された通信イ
ンターフェース15を介して、サーボモータ3に転送す
る(S28)。その後、CPU12は、S20の処理に
制御を戻す。
If it is determined in step S25 that the address is not the start value, the CPU 12 decrements the address (S26). Next, the CPU 12 transfers the 1-byte (8-bit) position command data to the servo motor 3 via the communication interface 15 connected to the output port (S28). Thereafter, the CPU 12 returns the control to the processing of S20.

【0054】S25の判定で、アドレスがスタート値で
あった場合、CPU12はアドレスをリングバッファ6
の最終値にプリセットする(S27)。次に、CPU1
2は、1バイト(8ビット)の位置指令データを出力ポ
ートに接続された通信インターフェース15を介して、
サーボモータ3に転送する(S28)。その後、CPU
12は、S20の処理に制御を戻す。
If it is determined in step S25 that the address is the start value, the CPU 12 stores the address in the ring buffer 6.
(S27). Next, CPU1
Reference numeral 2 denotes a position command data of 1 byte (8 bits) through a communication interface 15 connected to an output port.
The data is transferred to the servo motor 3 (S28). Then the CPU
12 returns control to the process of S20.

【0055】以上述べたように、この位置指令発生装置
1は、サーボモータ3に対する位置指令データを予めす
べて計算しておき、メモリ13に記憶しているため、実
際にサーボモータ3に位置指令を与える制御時におい
て、メモリ13のデータをサーボモータ3に順次転送す
るだけでよい。このため、CPU12として、高度の演
算性能を有するマイクロプロセッサは不要である。すな
わち、CPU12としては、正方向同期タイミングクロ
ック4aまたは逆方向同期タイミングクロック4bのク
ロックに追従してデータをメモリ13から読み出せる能
力さえあれば十分である。このため、CPU12として
安価なマイクロプロセッサを使用できる。
As described above, the position command generator 1 calculates all the position command data for the servomotor 3 in advance and stores it in the memory 13. At the time of the control, the data in the memory 13 only needs to be sequentially transferred to the servomotor 3. Therefore, a microprocessor having a high calculation performance is not required as the CPU 12. That is, the CPU 12 only needs to have the ability to read data from the memory 13 following the clock of the forward synchronization timing clock 4a or the backward synchronization timing clock 4b. Therefore, an inexpensive microprocessor can be used as the CPU 12.

【0056】また、この位置指令発生装置1によれば、
位置指令データで指示するサーボモータ3の最小分解能
の単位(位置指令データ1ビットに対応する1ステップ
の回動)でサーボモータ3に指令を与えることができ
る。
According to the position command generator 1,
A command can be given to the servomotor 3 in the unit of the minimum resolution of the servomotor 3 indicated by the position command data (rotation of one step corresponding to one bit of the position command data).

【0057】また、上記位置指令発生装置1は、リング
バッファ6に位置指令データを記憶し、これを繰り返し
読み出してサーボモータ3に転送する。従って、サーボ
モータ3の動作を繰り返し動作(サイクル動作という)
に分類し、その繰り返し動作(1サイクル)に対応する
位置指令データを記憶させることで、サーボモータ3の
制御に必要な記憶容量を削減することができる。 <電子カムプログラムの変形>上記実施形態において
は、図6のフローチャートに示したように、外部指令
(同期タイミングクロック4a、4b)の有無をCPU
12が判定する処理手順を示した。しかし、本発明の実
施は、このような電子カムプログラムの処理には限定さ
れない。
The position command generator 1 stores the position command data in the ring buffer 6, reads it out repeatedly, and transfers it to the servomotor 3. Therefore, the operation of the servo motor 3 is repeated (referred to as cycle operation).
By storing the position command data corresponding to the repetitive operation (one cycle), the storage capacity required for controlling the servomotor 3 can be reduced. <Modification of Electronic Cam Program> In the above embodiment, as shown in the flowchart of FIG. 6, the presence or absence of an external command (synchronous timing clock 4a, 4b) is determined by the CPU.
12 shows the procedure of the determination. However, the embodiment of the present invention is not limited to the processing of the electronic cam program.

【0058】図8及び図9に、外部指令に伴う割り込み
処理プロセスにおいて起動される電子カムプログラムの
例を示す。
FIGS. 8 and 9 show examples of the electronic cam program started in the interrupt processing process accompanying an external command.

【0059】図8に、正方向同期タイミングクロック4
aに対する割り込み処理プロセスにおいて起動されるプ
ログラム(以下正方向割り込みという)の処理を示す。
FIG. 8 shows a forward synchronization clock 4
14 shows the processing of a program (hereinafter, referred to as a forward interrupt) started in the interrupt processing process for a.

【0060】この処理が起動されると、CPU12は、
まず、アドレスがリングバッファ6の最終値か否かを判
定し(S32)、対応するデータ転送処理(S33から
S35)を実行する。この判定後の処理(S33からS
35)は、図6のS23、S24及びS28と同様であ
るので、その説明を省略する。その後、CPU12は、
正方向割り込み処理を終了する。
When this processing is started, the CPU 12
First, it is determined whether or not the address is the final value of the ring buffer 6 (S32), and a corresponding data transfer process (S33 to S35) is executed. Processing after this determination (from S33 to S
35) is the same as S23, S24, and S28 in FIG. 6, and a description thereof will be omitted. After that, the CPU 12
Ends the forward interrupt processing.

【0061】図9に、逆方向同期タイミングクロック4
bに対する割り込み処理プロセスにおいて起動されるプ
ログラム(以下逆方向割り込みという)の処理を示す。
FIG. 9 shows the reverse synchronization timing clock 4
4 shows the processing of a program (hereinafter, referred to as a backward interrupt) started in the interrupt processing process for b.

【0062】この処理が起動されると、CPU12は、
まず、アドレスがリングバッファ6のスタート値か否か
を判定し(S45)、対応するデータ転送処理(S46
からS48)を実行する。この判定後の処理(S46か
らS48)は、図6のS26からS28と同様であるの
で、その説明を省略する。その後、CPU12は、逆方
向割り込み処理を終了する。 <位置指令データ形式の変形>上記実施形態において
は、図2に示したように、先頭2ビットにサーボモータ
3の回動方向を有し、3ビット目以降にサーボモータ3
の1ステップの回動を指定するビットを有する位置指令
データの形式を示した。しかし、本発明の実施は、この
ようなデータ形式に限定されない。
When this process is started, the CPU 12
First, it is determined whether or not the address is the start value of the ring buffer 6 (S45), and the corresponding data transfer processing (S46)
To S48). The processing after this determination (S46 to S48) is the same as S26 to S28 in FIG. 6, and a description thereof will be omitted. After that, the CPU 12 ends the backward interruption processing. <Modification of Position Command Data Format> In the above embodiment, as shown in FIG. 2, the rotation direction of the servo motor 3 is provided at the first two bits, and the servo motor 3 is provided at the third and subsequent bits.
The format of the position command data having the bit designating the rotation of one step is shown. However, embodiments of the present invention are not limited to such a data format.

【0063】図9は、4台のサーボモータ3を同時に制
御可能な位置指令データの形式を示す。このデータ形式
は、上記実施形態同様に、8ビット構成である。ただ
し、このデータは、2ビットずつに区切られ、各々4台
の異なるサーボモータ3に対する指令を構成する。
FIG. 9 shows the format of position command data that can control four servomotors 3 simultaneously. This data format has an 8-bit configuration, as in the above embodiment. However, this data is divided into two bits, and each data constitutes a command for four different servomotors 3.

【0064】すなわち、第0及び第1ビットが第1サー
ボモータ3に対するものである。第0ビットは、右単位
回動(1ステップの移動)を指示し、第1ビットは左単
位回動を指示する。第2ビット以下も同様である。
That is, the 0th and 1st bits are for the first servomotor 3. The 0th bit indicates a right unit rotation (movement of one step), and the first bit indicates a left unit rotation. The same applies to the second and subsequent bits.

【0065】このデータも上記実施形態と同様に、同期
タイミングクロックに同期してサーボモータ3に転送さ
れる。 <ハードウェア構成の変形例>上記実施形態において
は、CPU12、メモリ13、通信インターフェース1
5によって位置指令発生装置1を構成した。しかし、本
発明の実施は、このようなハードウェアの構成には限定
されない。
This data is also transferred to the servomotor 3 in synchronization with the synchronous timing clock, as in the above embodiment. <Modification of Hardware Configuration> In the above embodiment, the CPU 12, the memory 13, the communication interface 1
5 constituted the position command generator 1. However, the embodiment of the present invention is not limited to such a hardware configuration.

【0066】図10に、CPU12を使用せずに純粋な
ハードウェアのみで位置指令発生装置を構成する例を示
す。
FIG. 10 shows an example in which the position command generator is constituted only by pure hardware without using the CPU 12.

【0067】この位置指令発生装置は、位置指令データ
を格納するメモリ13と、メモリ13の読み出しアドレ
スを生成するカウンタ5と、カウンタ5の指示した読み
出しアドレスのデータをロードする2個のレジスタ7
a、7b、及びこれらのレジスタ7a、7bの入出力先
を切り替えるゲート9a、9bを有している。制御対象
のモータ駆動回路2等の構成は、上記実施形態と同様で
ある。
The position command generator includes a memory 13 for storing position command data, a counter 5 for generating a read address of the memory 13, and two registers 7 for loading data of the read address designated by the counter 5.
a, 7b and gates 9a, 9b for switching the input / output destinations of these registers 7a, 7b. The configuration of the motor drive circuit 2 and the like to be controlled is the same as in the above embodiment.

【0068】メモリ13には、上記実施形態と同様に位
置指令データが書き込まれている。
The position command data is written in the memory 13 as in the above embodiment.

【0069】カウンタ5は、メモリ13がリングバッフ
ァ6を構成するアドレスの範囲をクロック4aまたはク
ロック4bに同期して計数する。
The counter 5 counts the range of addresses constituting the ring buffer 6 by the memory 13 in synchronization with the clock 4a or 4b.

【0070】ここで、正方向同期タイミングクロック4
aに対しては、カウンタ5はアドレスを増加する方向に
計数する。そして、リングバッファ6の最終値に対応す
るカウンタ最大値に達すると、その値をリングバッファ
6のスタート値に対応するカウンタ最小値に初期化す
る。
Here, the forward synchronization timing clock 4
For a, the counter 5 counts in the direction of increasing the address. Then, when the counter reaches the maximum value corresponding to the final value of the ring buffer 6, the value is initialized to the counter minimum value corresponding to the start value of the ring buffer 6.

【0071】一方、逆方向同期タイミングクロック4b
に対しては、カウンタ5はアドレスを減少する方向に計
数する。そして、リングバッファ6のスタート値に対応
するカウンタ最小値に達すると、その値をリングバッフ
ァ6の最終値に対応するカウンタ最大値に初期化する。
このようにして、カウンタ5はメモリ13の読み出しワ
ード線103をオンにする。
On the other hand, the reverse synchronization timing clock 4b
, The counter 5 counts in the direction of decreasing the address. When the counter reaches the minimum value corresponding to the start value of the ring buffer 6, the value is initialized to the counter maximum value corresponding to the final value of the ring buffer 6.
Thus, the counter 5 turns on the read word line 103 of the memory 13.

【0072】その結果、そのワード線103がオンにな
ったワード(1バイト)がレジスタ7aまたは7bにロ
ードされる。
As a result, the word (1 byte) whose word line 103 has been turned on is loaded into the register 7a or 7b.

【0073】レジスタ7a、レジスタ7b、ゲート9
a、及び9bは、2面バッファを構成する。ゲート9a
は、リングバッファ6から読み出された位置指令1バイ
トをレジスタ7a(または7b)にロードさせる。一
方、ゲート9bは、ロード中でないレジスタ7b(また
は7a)の位置指令1バイトをサーボモータ駆動回路2
に転送させる。レジスタ7aと、レジスタ7bの切り替
えは、正方向同期タイミングクロック4aまたは負方向
同期タイミングクロック4bに同期して行われる。
Register 7a, register 7b, gate 9
a and 9b constitute a two-sided buffer. Gate 9a
Causes the register 7a (or 7b) to load one byte of the position command read from the ring buffer 6. On the other hand, the gate 9b outputs the position command 1 byte of the register 7b (or 7a) which is not being loaded to the servo motor driving circuit 2.
To transfer. Switching between the register 7a and the register 7b is performed in synchronization with the positive direction synchronous timing clock 4a or the negative direction synchronous timing clock 4b.

【0074】これにより、レジスタ7aにデータがロー
ドされる間に、レジスタ7bのデータがモータ駆動回路
2に転送される。次に、レジスタ7bにデータがロード
される間に、レジスタ7aのデータがモータ駆動回路2
に転送される。
Thus, while the data is loaded into the register 7a, the data in the register 7b is transferred to the motor drive circuit 2. Next, while the data is loaded into the register 7b, the data in the register 7a is
Is forwarded to

【0075】このように、ハードウェアのみで位置指令
発生装置を構成することで、CPU12の割り込み処理
等の無駄時間をなくし、メモリ13のアクセス時間によ
って決定される速度での制御が可能になる。
As described above, by configuring the position command generator only with hardware, it is possible to eliminate unnecessary time such as interrupt processing of the CPU 12 and control at a speed determined by the access time of the memory 13.

【0076】また、上記実施形態で述べた繰り返し動作
(サイクル動作)をこのようなハードウェアによる位置
指令発生装置で実現し、CPU12から複数の位置指令
発生装置を起動するようにしてもよい。これにより、様
々なサイクル動作をハードウェアで高速にサポートしつ
つ、様々なアプリケーションに対応する柔軟なサーボモ
ータ3の制御が実現される。 <その他の変形例>上記第1実施形態においては、制御
対象をサーボモータ3として、位置指令発生装置1によ
り、位置制御する例を示した。しかし、本発明の制御対
象は、サーボモータ3に限定されない。すなわち、ステ
ッピングモータ等、デジタル式の位置制御モータ一般に
対し、本発明を適用できる。
Further, the repetitive operation (cycle operation) described in the above-described embodiment may be realized by such a hardware position command generator, and the CPU 12 may activate a plurality of position command generators. Thereby, flexible control of the servo motor 3 corresponding to various applications is realized while various cycle operations are supported at high speed by hardware. <Other Modifications> In the above-described first embodiment, an example has been described in which the position to be controlled is controlled by the position command generator 1 using the servomotor 3 as the control target. However, the control object of the present invention is not limited to the servomotor 3. That is, the present invention can be applied to a general digital position control motor such as a stepping motor.

【0077】また、上記実施形態においては、位置指令
発生装置1により1個のサーボモータ3を制御した。し
かし、本発明においては、位置指令発生装置1が制御す
るサーボモータ3の数は1台には限定されない。すなわ
ち、CPU12が正方向同期タイミングクロック4aま
たは逆方向同期タイミングクロック4bのクロックに追
従してデータを転送できる限度までの複数のサーボモー
タ3等に対して位置指令データを転送するようにしても
よい。 《第2実施形態》図11に本発明の第2実施形態に係る
モータ制御システムを示す。上記第1実施形態において
は、1個の位置指令発生装置1によりサーボモータ3を
制御する例を示した。
In the above embodiment, one servo motor 3 is controlled by the position command generator 1. However, in the present invention, the number of servomotors 3 controlled by the position command generator 1 is not limited to one. That is, the CPU 12 may transfer the position command data to a plurality of servomotors 3 and the like up to a limit where the data can be transferred following the forward synchronization clock 4a or the backward synchronization clock 4b. . << Second Embodiment >> FIG. 11 shows a motor control system according to a second embodiment of the present invention. In the first embodiment, an example in which the servo motor 3 is controlled by one position command generator 1 has been described.

【0078】本実施形態においては、複数の位置指令発
生装置1a、1b、...、1nにより、複数のサーボ
モータ3a、...、3nを制御する例を示す。
In this embodiment, a plurality of position command generators 1a, 1b,. . . , 1n, a plurality of servomotors 3a,. . . , 3n is controlled.

【0079】本実施形態において、位置指令発生装置1
a、1b、...、1n(以下単に位置指令発生装置1
a等という)、モータ駆動回路2a、...、2n(以
下単にモータ駆動回路2a等という)、及びサーボモー
タ3a、...、3n(以下単にサーボモータ3a等と
いう)の構成は、第1実施形態の位置指令発生装置1、
モータ駆動回路2、及びサーボモータ3と同様であるの
で、その説明を省略する。また、必要に応じて、図1か
ら図10の図面を参照する。
In this embodiment, the position command generator 1
a, 1b,. . . , 1n (hereinafter simply referred to as position command generator 1)
a), the motor drive circuits 2a,. . . , 2n (hereinafter simply referred to as motor drive circuit 2a, etc.) and servo motors 3a,. . . , 3n (hereinafter simply referred to as “servo motor 3a”) is configured by the position command generator 1 of the first embodiment,
Since the configuration is the same as that of the motor drive circuit 2 and the servo motor 3, the description is omitted. 1 to 10 are referred to as needed.

【0080】図11に示したように、このモータ制御シ
ステムは、タイミングクロック4と、CPU32と、複
数の位置指令発生装置1a等、モータ駆動回路2a等、
及びサーボモータ3a等とを有している。
As shown in FIG. 11, the motor control system includes a timing clock 4, a CPU 32, a plurality of position command generators 1a, a motor drive circuit 2a, and the like.
And a servo motor 3a.

【0081】CPU32は、同期タイミングクロック4
に同期して、各位置指令発生装置1a等に起動指示命令
104を送る。この起動指示命令は、各位置指令発生装
置1a等への起動指示ビットを保持している。従って、
CPU32は、この起動指示命令104により、各位置
指令発生装置1a等に対して、同期タイミングクロック
4に同期した位置指令データの転送を開始、終了させ
る。すなわち、複数のモータ軸を同期して回動させるこ
とができる。
The CPU 32 has a synchronous timing clock 4
The start instruction command 104 is sent to each of the position command generators 1a and the like in synchronization with. This start instruction command holds a start instruction bit for each position command generator 1a and the like. Therefore,
The CPU 32 starts and ends the transfer of the position command data synchronized with the synchronization timing clock 4 to each of the position command generators 1a and the like according to the start instruction command 104. That is, a plurality of motor shafts can be synchronously rotated.

【0082】[0082]

【発明の効果】以上説明したように、本発明によれば、
モータ制御装置における演算装置の負荷を低減し、演算
装置の数や要求性能を増大させることなく、モータ制御
装置が制御できるモータ軸の数を増大させることができ
る。
As described above, according to the present invention,
The load on the arithmetic unit in the motor control device can be reduced, and the number of motor shafts that can be controlled by the motor control device can be increased without increasing the number of arithmetic units and required performance.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の実施の形態に係る制御システムのシス
テム構成図
FIG. 1 is a system configuration diagram of a control system according to an embodiment of the present invention.

【図2】位置指令発生装置1の原理図FIG. 2 is a principle diagram of the position command generator 1.

【図3】リングバッファ6と同期タイミングクロック4
a、4bの動作を説明する図
FIG. 3 shows a ring buffer 6 and a synchronous timing clock 4
FIGS. 4A and 4B illustrate the operation of FIGS.

【図4】位置指令発生装置1と位置指令データ作成装置
21のハードウェア構成図
FIG. 4 is a hardware configuration diagram of a position command generator 1 and a position command data generator 21.

【図5】位置指令データ作成プログラムの処理を示すフ
ローチャート
FIG. 5 is a flowchart showing processing of a position command data creation program.

【図6】電子カムプログラムの処理を示すフローチャー
FIG. 6 is a flowchart showing processing of an electronic cam program.

【図7】電子カムプログラムの変形例を示すフローチャ
ート(1)
FIG. 7 is a flowchart (1) showing a modification of the electronic cam program.

【図8】電子カムプログラムの変形例を示すフローチャ
ート(2)
FIG. 8 is a flowchart (2) showing a modification of the electronic cam program.

【図9】位置指令データの変形例を示す図FIG. 9 is a diagram showing a modification of the position command data.

【図10】位置指令発生装置1の変形例を示すブロック
FIG. 10 is a block diagram showing a modification of the position command generator 1;

【図11】本発明の第2実施形態に係るモータ制御シス
テムのシステム構成図
FIG. 11 is a system configuration diagram of a motor control system according to a second embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 位置指令発生装置 2 モータ駆動回路 3 サーボモータ 4、4a、4b 同期タイミングクロック 6 リングバッファ 7a、7b レジスタ 8 位置検出器 32、12、22 CPU 13、23 メモリ DESCRIPTION OF SYMBOLS 1 Position command generator 2 Motor drive circuit 3 Servo motor 4, 4a, 4b Synchronous timing clock 6 Ring buffer 7a, 7b Register 8 Position detector 32, 12, 22 CPU 13, 23 Memory

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 モータ駆動回路へ信号パターン送出し、
モータの回動角を制御するモータ制御装置であり、 前記回動角の変位を指定する信号パターンを記憶するメ
モリと、 このメモリ内の所定の信号パターンを前記モータ駆動回
路へ送出するデータ送出部と、 前記データ送出部が信号パターンを送出するタイミング
を規制する同期タイミング信号発生部とを備えたモータ
制御装置。
A signal pattern is transmitted to a motor drive circuit,
A motor control device that controls a rotation angle of a motor, a memory that stores a signal pattern that specifies a displacement of the rotation angle, and a data transmission unit that transmits a predetermined signal pattern in the memory to the motor drive circuit. A motor control device comprising: a synchronization timing signal generation unit that regulates a timing at which the data transmission unit transmits a signal pattern.
【請求項2】 前記メモリは、前記モータに繰り返して
同一動作をさせる信号パターンの繰り返し部分を記憶
し、 前記データ送出部は、所定の周期で、この信号パターン
を繰り返して前記モータ制御回路へ送出する請求項1記
載のモータ制御装置。
2. The memory stores a repeated portion of a signal pattern that causes the motor to perform the same operation repeatedly, and the data transmission unit repeatedly transmits the signal pattern to the motor control circuit at a predetermined cycle. The motor control device according to claim 1.
【請求項3】 前記信号パターンをリングバッファに保
持する請求項2記載のモータ制御装置。
3. The motor control device according to claim 2, wherein the signal pattern is held in a ring buffer.
【請求項4】前記同期タイミング信号発生部は、前記デ
ータ送出部に、前記メモリの読み出しアドレスの増加方
向に信号パターンを読み出させて送出させる正方向タイ
ミング発生部と、前記メモリの読み出しアドレスの減少
方向に信号パターンを読み出させて送出させる負方向タ
イミング発生部とからなる請求項1記載のモータ制御装
置。
4. A forward direction timing generating section for causing the data transmitting section to read out and transmit a signal pattern in an increasing direction of the read address of the memory, and a synchronous direction signal generating section; 2. The motor control device according to claim 1, further comprising: a negative direction timing generator for reading out and transmitting the signal pattern in the decreasing direction.
【請求項5】 複数のモータ駆動回路と、このモータ駆
動回路に駆動される複数のモータとを有するモータシス
テムに対して、各モータの回動角を制御するモータ制御
システムであり、 各モータ駆動回路へ信号パターンを送出する複数のモー
タ制御装置と、 前記モータ制御装置が信号パターンを送出するタイミン
グを規制する同期タイミング信号発生装置とを備え、 前記モータ制御装置は、前記モータの回動角の変位を指
定する信号パターンを記憶するメモリと、 このメモリ内の所定の信号パターンを前記モータ駆動回
路へ送出するデータ送出部とを有し、 前記同期タイミング信号発生装置は、複数のモータ制御
装置に対し、同一の同期タイミング信号を与え、複数の
モータの回動角を制御するタイミングを規制するモータ
制御システム。
5. A motor control system for controlling a rotation angle of each motor with respect to a motor system having a plurality of motor drive circuits and a plurality of motors driven by the motor drive circuit. A plurality of motor control devices for transmitting a signal pattern to a circuit; and a synchronization timing signal generation device for regulating a timing at which the motor control device transmits the signal pattern, wherein the motor control device determines a rotation angle of the motor. A memory for storing a signal pattern designating the displacement; and a data transmission unit for transmitting a predetermined signal pattern in the memory to the motor drive circuit. The synchronization timing signal generation device includes a plurality of motor control devices. On the other hand, a motor control system that gives the same synchronization timing signal and regulates the timing for controlling the rotation angles of a plurality of motors.
【請求項6】 モータ駆動回路へ信号パターン送出し、
モータの回動角を制御するモータ制御方法であり、 前記回動角の変位を指定する信号パターンを記憶するス
テップと、 このメモリ内の所定の信号パターンを前記モータ駆動回
路へ送出するステップと、 前記信号パターンを送出するタイミングを規制するステ
ップとからなるモータ制御方法。
6. Sending a signal pattern to a motor drive circuit,
A motor control method for controlling a rotation angle of a motor, comprising: a step of storing a signal pattern designating a displacement of the rotation angle; and a step of transmitting a predetermined signal pattern in the memory to the motor drive circuit. Regulating the timing of transmitting the signal pattern.
【請求項7】 前記信号パターンは、前記モータに繰り
返して同一動作をさせる信号パターンの繰り返し部分で
あり、この信号パターンが繰り返して前記モータ制御回
路へ送出される請求項6記載のモータ制御方法。
7. The motor control method according to claim 6, wherein the signal pattern is a repeated portion of a signal pattern that causes the motor to repeatedly perform the same operation, and the signal pattern is repeatedly transmitted to the motor control circuit.
【請求項8】 複数のモータ駆動回路とこのモータ駆動
回路に駆動される複数のモータとを有するモータシステ
ムの制御方法であり、 前記モータの回動角の変位を指定する信号パターンを記
憶するステップと、 このメモリ内の所定の信号パターンを前記モータ駆動回
路へ送出するステップと、 前記信号パターンを送出するタイミングを規制するステ
ップとを有し、 複数のモータ制御装置に対し、同一の同期タイミング信
号を与えることにより、複数のモータの回動角を制御す
るタイミングを規制するモータシステムの制御方法。
8. A method for controlling a motor system having a plurality of motor drive circuits and a plurality of motors driven by the motor drive circuit, the method comprising: storing a signal pattern designating a displacement of a rotation angle of the motor. Transmitting a predetermined signal pattern in the memory to the motor drive circuit; and regulating the timing of transmitting the signal pattern. The same synchronous timing signal is transmitted to a plurality of motor control devices. To control the timing at which the rotation angles of a plurality of motors are controlled.
【請求項9】 モータ駆動回路へ送出されモータの回動
角を制御する信号パターンの生成装置であり、 前記回動角の指定を含むモータの動作仕様を入力する入
力部と、 この動作仕様から前記モータ駆動回路への信号パターン
を生成する信号パターン生成部と、 この信号パターンを記憶する記憶部とからなる信号パタ
ーンの生成装置。
9. An apparatus for generating a signal pattern transmitted to a motor drive circuit for controlling a rotation angle of a motor, comprising: an input unit for inputting an operation specification of the motor including designation of the rotation angle; A signal pattern generation device, comprising: a signal pattern generation unit that generates a signal pattern to the motor drive circuit; and a storage unit that stores the signal pattern.
【請求項10】 モータ駆動回路へ送出されモータの回
動角を制御する信号パターンの生成方法であり、 前記回動角の指定を含むモータの動作仕様を入力するス
テップと、 この動作仕様から前記モータ駆動回路への信号パターン
を生成するステップと、 この信号パターンを記憶するステップとからなる信号パ
ターンの生成方法。
10. A method for generating a signal pattern transmitted to a motor drive circuit for controlling a rotation angle of a motor, the method comprising: inputting an operation specification of a motor including designation of the rotation angle; A method for generating a signal pattern, comprising: generating a signal pattern for a motor drive circuit; and storing the signal pattern.
JP2000198261A 2000-06-30 2000-06-30 Circuit, system and method for controlling motor Pending JP2002032127A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000198261A JP2002032127A (en) 2000-06-30 2000-06-30 Circuit, system and method for controlling motor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000198261A JP2002032127A (en) 2000-06-30 2000-06-30 Circuit, system and method for controlling motor

Publications (1)

Publication Number Publication Date
JP2002032127A true JP2002032127A (en) 2002-01-31

Family

ID=18696445

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000198261A Pending JP2002032127A (en) 2000-06-30 2000-06-30 Circuit, system and method for controlling motor

Country Status (1)

Country Link
JP (1) JP2002032127A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1693727A1 (en) * 2005-02-21 2006-08-23 Hitachi Industrial Equipment Systems Co. Ltd. Motor controller
JP2014149568A (en) * 2013-01-31 2014-08-21 Kyocera Document Solutions Inc Storage control device, electronic equipment, storage control program and storage control method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1693727A1 (en) * 2005-02-21 2006-08-23 Hitachi Industrial Equipment Systems Co. Ltd. Motor controller
US7151352B2 (en) 2005-02-21 2006-12-19 Hitachi Industrial Equipment Systems Co., Ltd. Motor controller
JP2014149568A (en) * 2013-01-31 2014-08-21 Kyocera Document Solutions Inc Storage control device, electronic equipment, storage control program and storage control method
US9262121B2 (en) 2013-01-31 2016-02-16 Kyocera Document Solutions Inc. Storage control device, electronic apparatus, storage medium, and storage control method

Similar Documents

Publication Publication Date Title
KR100358038B1 (en) Robot control device
JPH05108258A (en) Coordinate data generator
US4706213A (en) Graphic memory system for interarea transfer of X-Y coordinate data
JP2002032127A (en) Circuit, system and method for controlling motor
JPS5911921B2 (en) numerical control device
JP4318120B2 (en) Pulse output IC for motor drive and electronic cam control system
JPH0816220A (en) Programmable sequence controller
JP2002014707A (en) I/o unit and programmable controller
JP2787207B2 (en) Multi-axis position servo device
JP2004180417A (en) Simultaneous control method for two or more motors, control system for two or more motors, pulse generating circuit for control of two or more motors, and pulse generating ic for control of two or more motors
JPS63138403A (en) Data transfer system
JPH04276805A (en) Motor control circuit
JP2005301839A (en) Pulse output ic for driving motor
JP2666312B2 (en) Programmable controller
JPH0548490B2 (en)
JPH05189344A (en) Microprocessor
JPH0623925B2 (en) Robot controller
JPH08315131A (en) Image data rotation processor
JPH06282316A (en) Cnc data transfer system
JPS59185387A (en) Cursor control system
JP2001286189A (en) Motor controller
JPS622896A (en) Stepping motor control system
JPH04343132A (en) Central processing unit
JPH0525334B2 (en)
JPH10143228A (en) Indirect register designation nc device

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050419

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050927