JPH0895618A - Motor drive control device and method therefor - Google Patents

Motor drive control device and method therefor

Info

Publication number
JPH0895618A
JPH0895618A JP6230032A JP23003294A JPH0895618A JP H0895618 A JPH0895618 A JP H0895618A JP 6230032 A JP6230032 A JP 6230032A JP 23003294 A JP23003294 A JP 23003294A JP H0895618 A JPH0895618 A JP H0895618A
Authority
JP
Japan
Prior art keywords
motor
task
control
parameter
control unit
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.)
Withdrawn
Application number
JP6230032A
Other languages
Japanese (ja)
Inventor
Eiman Kin
永萬 金
Shinji Kume
晋司 粂
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.)
Mitsubishi Materials Corp
Original Assignee
Mitsubishi Materials Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Materials Corp filed Critical Mitsubishi Materials Corp
Priority to JP6230032A priority Critical patent/JPH0895618A/en
Publication of JPH0895618A publication Critical patent/JPH0895618A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE: To provide a motor drive control device which is not required to always monitor the driving state of a motor under its drive control and therefore can use its surplus processing capability for other processing jobs, and a motor drive control method. CONSTITUTION: A parameter seting means of a management control part 1' sets the control parameter to a parameter storage means of a motor control part 2' for the drive control of motor based on the task to be processed. Then, a task management means sets the task on a table and puts the task into a pause state. When the task management means receives an interruption signal from an interruption signal generation means of the part 2' to show the end of the motor drive control, the management means retrieves the table and cancels the pause state of the corresponding task.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、複数のモータの回転を
制御するモータ駆動制御装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a motor drive controller for controlling rotation of a plurality of motors.

【0002】[0002]

【従来の技術】図3は、モータ駆動制御装置の構成を例
示した図である。この図において、1は複数のモータM
1,M2・・・Mjの回転を制御するCPUボードであ
り、CPUや各種メモリが搭載されている。2はモータ
コントローラボードであり、CPUボード1から出力さ
れるモータ制御命令に基づいて実際にモータM1〜Mjを
駆動する。また、これらのCPUボード1およびモータ
コントローラボード2はバス3によって制御データのや
り取りを行う。
2. Description of the Related Art FIG. 3 is a diagram illustrating a configuration of a motor drive control device. In this figure, 1 is a plurality of motors M
It is a CPU board that controls the rotation of 1, M2 ... Mj, and is equipped with a CPU and various memories. Reference numeral 2 denotes a motor controller board, which actually drives the motors M1 to Mj based on a motor control command output from the CPU board 1. The CPU board 1 and the motor controller board 2 exchange control data via the bus 3.

【0003】図4はCPUボード1およびモータコント
ローラボード2の動作手順の要部を示すフローチャート
であり、以下この図を用いて従来のモータ駆動制御装置
の動作を説明する。
FIG. 4 is a flow chart showing the main part of the operation procedure of the CPU board 1 and the motor controller board 2. The operation of the conventional motor drive control device will be described below with reference to this figure.

【0004】まず、CPUボード1からモータコントロ
ーラボード2へ、モータM1〜Mjのいずれかを回転させ
るための回転命令が出力される(ステップSa1)。こ
の命令を受けたモータコントローラボード2は、ステッ
プSb1において、その命令に基づいた移動信号を発生
し、対応するモータへ出力する。これによって、そのモ
ータが回転を開始する。
First, a rotation command for rotating any of the motors M1 to Mj is output from the CPU board 1 to the motor controller board 2 (step Sa1). The motor controller board 2 receiving this command generates a movement signal based on the command and outputs it to the corresponding motor in step Sb1. This causes the motor to start rotating.

【0005】そして、CPUボード1は、ステップSa
2において、モータコントローラボード2に対して、モ
ータ移動ステータスのリード要求を出力する。この要求
を受けたモータコントローラボード2は、ステップSb
2において、対応するモータの速度、回転数などの回転
情報を検出し、その検出結果をステータスデータとし
て、CPUボード1へ送信する。
Then, the CPU board 1 executes the step Sa.
At 2, the motor controller board 2 outputs a read request for the motor movement status. Upon receiving this request, the motor controller board 2 proceeds to step Sb.
At 2, the rotation information such as the speed and rotation speed of the corresponding motor is detected, and the detection result is transmitted to the CPU board 1 as status data.

【0006】CPUボード1は、ステップSa3におい
て、受信したステータスデータによりモータの駆動制御
が完了したか否かを検出し、完了していない場合にはス
テップSa2へ戻り、再びモータ移動ステータスのリー
ド要求を出力する。このようにして、CPUボード1の
ステップSa2およびSa3が繰り返し実行され、ステ
ップSa3においてモータ制御の終了が検出された場合
に、他の処理へ進む。
In step Sa3, the CPU board 1 detects whether or not the drive control of the motor is completed based on the received status data. If not completed, the CPU board 1 returns to step Sa2 and again requests to read the motor movement status. Is output. In this way, steps Sa2 and Sa3 of the CPU board 1 are repeatedly executed, and when the end of motor control is detected in step Sa3, the process proceeds to another process.

【0007】[0007]

【発明が解決しようとする課題】ところで、上述したモ
ータ駆動制御装置のCPUボード1においては、モータ
コントローラボード2へモータ移動ステータスの要求を
出力し、その結果得られたステータスデータからモータ
の制御終了を検出する処理(図4、ステップSa2,S
a3)が、その終了の検出がなされるまで繰り返し実行
される。このため、モータの駆動状態の監視のために、
CPUの処理能力が浪費されるという問題があった。
By the way, in the CPU board 1 of the above-described motor drive control device, a request for the motor movement status is output to the motor controller board 2, and the control of the motor is terminated based on the status data obtained as a result. For detecting (FIG. 4, steps Sa2, S
a3) is repeatedly executed until the end is detected. Therefore, to monitor the drive status of the motor,
There is a problem that the processing capacity of the CPU is wasted.

【0008】この発明は、CPUボード1がモータの駆
動制御中にその駆動状態を絶えず監視する必要がなく、
他の処理に余剰の処理能力を利用することができるモー
タ駆動制御装置およびその方法を提供することを目的と
している。
The present invention eliminates the need for the CPU board 1 to constantly monitor the drive state of the motor during drive control.
It is an object of the present invention to provide a motor drive control device and method that can utilize surplus processing capacity for other processing.

【0009】[0009]

【課題を解決するための手段】以上の課題を解決するた
めに、請求項1記載の発明は、制御パラメータを出力す
る管理制御部と、前記制御パラメータに基づいて実際に
複数のモータを駆動制御するモータ制御部とからなるモ
ータ駆動制御装置において、前記管理制御部は、予め設
定された複数のタスクに基づいて対応する前記モータの
制御パラメータを設定するパラメータ設定手段と、前記
タスクの状態を管理するタスク管理手段と、前記タスク
管理手段が各タスクの状態を記憶する少なくとも一つの
テーブルとを備え、前記モータ制御部は、前記制御パラ
メータを記憶するパラメータ記憶手段と、前記パラメー
タ記憶手段に記憶された制御パラメータに基づいて対応
する前記モータへ駆動信号を出力する駆動信号発生手段
と、割込み信号により前記駆動信号発生手段の出力が終
了したことを前記管理制御部に知らせる割込み信号発生
手段とを備え、前記タスク管理手段は、前記パラメータ
設定手段の制御パラメータの設定が終わった時点で、対
応するタスクを前記テーブルへ登録するとともにそのタ
スクを休止状態とし、前記割込み信号発生手段から割込
み信号を受けた場合に、対応するタスクの休止状態を解
除することを特徴とする。
In order to solve the above-mentioned problems, the invention according to claim 1 is to control the drive of a plurality of motors based on the management control section for outputting the control parameters and the control parameters. In the motor drive control device including a motor control unit, the management control unit manages a state of the task and a parameter setting unit that sets a control parameter of the corresponding motor based on a plurality of preset tasks. And a table storing at least one table in which the task managing unit stores the state of each task. The motor control unit stores the control parameters in the parameter storing unit and the parameter storing unit. Drive signal generating means for outputting a drive signal to the corresponding motor based on the control parameter, and an interrupt signal. Interrupt signal generating means for notifying the management control unit that the output of the drive signal generating means has ended, and the task management means responds when the setting of the control parameter of the parameter setting means is completed. It is characterized in that the task is registered in the table, the task is put in a dormant state, and when the interrupt signal is received from the interrupt signal generating means, the dormant state of the corresponding task is released.

【0010】また、請求項2記載の発明は、請求項1記
載の発明において、前記管理制御部は、マルチタスクの
OS上で動作し、前記パラメータ設定手段、前記タスク
管理手段、および前記テーブルのうちの前記モータ制御
部と直接係わる部分をデバイスドライバにより構成する
ことを特徴とする。
According to a second aspect of the present invention, in the first aspect of the invention, the management control unit operates on a multitasking OS, and the parameter setting means, the task management means, and the table are stored. It is characterized in that a portion directly related to the motor controller is constituted by a device driver.

【0011】また、請求項3記載の発明は、管理制御部
が、選択されたタスクに従ってモータ制御部へ制御対象
のモータの制御パラメータを出力する第1のステップ
と、前記選択されたタスクをテーブルに登録するととも
にそのタスクを休止状態にする第2のステップと、必要
に応じて前記第1および第2のステップを他のタスクに
対して順次行う第3のステップと、その第3のステップ
においてモータ制御部からモータの駆動終了を示す割込
み信号が出力された場合に、そのモータの制御を行った
タスクを前記テーブルにおいて検索する第4のステップ
と、その検索により判別されたタスクの休止状態を解除
し前記第1のステップへ戻る第5のステップとを具備す
ることを特徴とする。
According to a third aspect of the present invention, the management control unit outputs a control parameter of the motor to be controlled to the motor control unit according to the selected task, and a table of the selected task. A second step of registering the task with the task and putting the task in a dormant state, a third step of sequentially performing the first and second steps for other tasks, and a third step thereof. When an interrupt signal indicating the end of driving of the motor is output from the motor control unit, the fourth step of searching the table for the task that controlled the motor in the table and the sleep state of the task determined by the search A fifth step of releasing and returning to the first step.

【0012】[0012]

【作用】この発明によれば、処理対象のタスクに基づい
てパラメータ設定手段がパラメータ記憶手段に制御パラ
メータの設定を行った後、タスク管理手段は上記タスク
をテーブルに設定し、そのタスクを休止状態にする。そ
して、タスク管理手段は、割込み信号発生手段から割込
み信号を受けた場合に、上記テーブルを検索し対応する
タスクの休止状態を解除する。これにより、管理制御部
は制御対象のモータの駆動状態を絶えず監視する必要が
なくなる。
According to the present invention, after the parameter setting means sets the control parameter in the parameter storage means based on the task to be processed, the task management means sets the above task in the table and puts the task in the dormant state. To Then, when the task managing means receives the interrupt signal from the interrupt signal generating means, the task managing means searches the table and cancels the sleep state of the corresponding task. This eliminates the need for the management control unit to constantly monitor the driving state of the motor to be controlled.

【0013】[0013]

【実施例】以下、図面を参照して、この発明の一実施例
について説明する。図1はこの実施例によるモータ駆動
制御装置の機能構成を示すブロック図であり、図3に対
応する部分には同一の符号を付けその説明を省略する。
また、図1に示す破線(1)〜(15)は、処理の流れを示す
ものである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a functional configuration of a motor drive control device according to this embodiment, and parts corresponding to those in FIG.
In addition, broken lines (1) to (15) shown in FIG. 1 indicate the flow of processing.

【0014】図1において、CPUボード1’には、ア
プリケーションプログラムと、マルチタスクのOS(Op
erating System)と、それらOSとプログラムとモータ
コントローラボードとの間の仲介を行い制御データを作
成するデバイスドライバとが組み込まれている。このよ
うに構成することにより、平易なユーザプログラムでモ
ータM1〜Mjをリアルタイムに制御することができる。
In FIG. 1, a CPU board 1'is provided with an application program and a multitasking OS (Op
erating system), and a device driver that creates control data by mediating between the OS, programs, and the motor controller board. With this configuration, the motors M1 to Mj can be controlled in real time with a simple user program.

【0015】ここで、アプリケーションプログラムは、
任意の時間あるいは順序で実行される複数のタスクT1
〜Tkに分解され、そのうちのいくつかのタスクを同時
に処理するようなこともできる。
Here, the application program is
Multiple tasks T1 executed at any time or order
It can be decomposed into ~ Tk, and several tasks can be processed simultaneously.

【0016】OSは、各種設定の初期化を行うシステム
初期化ルーチンR1と割込み処理の開始アドレスをテー
ブルとして記憶する割込み処理ルーチンテーブルTB1
と割り込みの登録および受付を行う割込み登録・受け付
けルーチンR2とを有する。
The OS has a system initialization routine R1 for initializing various settings and an interrupt processing routine table TB1 for storing a start address of interrupt processing as a table.
And an interrupt registration / acceptance routine R2 for registering and accepting an interrupt.

【0017】また、デバイスドライバは、各種割り込み
に対応した処理を行う割込み処理ルーチンR3と、スリ
ープ状態のタスクを登録する終了待機場所TB2と、駆
動制御&終了待ちルーチンR4と、モータの制御パラメ
ータを設定するパラメータ設定ルーチンR5とを有す
る。このデバイスドライバには、後述するモータコント
ローラボード2’に依存する部分がまとめられており、
例えばモータコントローラボード2’が別の機種となっ
た場合にも、このデバイスドライバのみを変更すればよ
い。
Further, the device driver stores an interrupt processing routine R3 for performing processing corresponding to various interrupts, an end waiting place TB2 for registering a task in a sleep state, a drive control & end waiting routine R4, and a motor control parameter. And a parameter setting routine R5 for setting. In this device driver, parts that depend on the motor controller board 2'which will be described later are collected.
For example, even if the motor controller board 2'is a different model, only this device driver needs to be changed.

【0018】一方、モータコントローラボード2’に
は、各モータへ駆動信号を出力するモータ駆動パルス発
生機構2b1,2b2・・・2bjと、各モータの制御終
了を知らせる割込み信号発生機構2a1,2a2・・・2
ajとが、モータM1〜Mjの各々に対応して設けられて
いる。また、上記のモータ駆動パルス発生機構2b1〜
2bjの各々は、CPUボード1’が出力する制御パラ
メータを記憶するパラメータ保存場所を有する。
On the other hand, on the motor controller board 2 ', motor drive pulse generating mechanisms 2b1, 2b2 ... 2bj for outputting drive signals to the respective motors, and interrupt signal generating mechanisms 2a1, 2a2 for notifying the end of control of the respective motors.・ ・ 2
aj are provided corresponding to each of the motors M1 to Mj. In addition, the motor drive pulse generation mechanism 2b1 to
Each of 2bj has a parameter storage location for storing the control parameters output by the CPU board 1 '.

【0019】図2は、この実施例の装置が行う動作手順
の要部を示すフローチャートであり、以下、図1および
図2を用いて、タスクT3がモータM2(第2軸)を制御
する場合の動作説明を行う。
FIG. 2 is a flow chart showing the main part of the operation procedure performed by the apparatus of this embodiment. In the following, when task T3 controls the motor M2 (second axis) with reference to FIG. 1 and FIG. The operation will be described.

【0020】まず、OSのシステム初期化ルーチンR1
によって、テーブルTB1などの初期化が行われ、デバ
イスドライバの割込み処理ルーチンR3の登録の要求
が、割込み登録ルーチンR2に対してなされる(図1破
線(1)、図2ステップSc1)。
First, the OS system initialization routine R1
Thus, the table TB1 and the like are initialized, and a request for registration of the interrupt processing routine R3 of the device driver is made to the interrupt registration routine R2 (broken line (1) in FIG. 1, step Sc1 in FIG. 2).

【0021】これにより、割込み登録ルーチンR2は、
デバイスドライバの割込み処理ルーチンR3の開始アド
レスを割込み処理ルーチンテーブルTB1に書き込む。
(図1破線(2)、図2ステップSc2)。
As a result, the interrupt registration routine R2
The start address of the interrupt processing routine R3 of the device driver is written in the interrupt processing routine table TB1.
(FIG. 1 dashed line (2), FIG. 2 step Sc2).

【0022】そして、例えばタスクT3が、モータM2に
おける駆動スピード、駆動パルス数等のモータ制御パラ
メータを出力するように、デバイスドライバのパラメー
タ設定ルーチンR5へ命令を出力する(図1破線(3),
(4)、図2ステップSc3)。
Then, for example, the task T3 outputs a command to the device driver parameter setting routine R5 so as to output the motor control parameters such as the drive speed and the number of drive pulses in the motor M2 (broken line (3) in FIG. 1,
(4), step Sc3 in FIG. 2).

【0023】この命令を受けたパラメータ設定ルーチン
R5は、モータコントローラボード2’内のモータM2に
対応するパラメータ保存場所(モータ駆動パルス発生機
構2b2内)に、モータ制御パラメータを書き込む(図
1破線(5)、図2ステップSd1,Se1)。
Upon receiving this command, the parameter setting routine R5 writes the motor control parameter to the parameter storage location (in the motor drive pulse generation mechanism 2b2) corresponding to the motor M2 in the motor controller board 2 '(broken line in FIG. 5), Steps Sd1 and Se1) in FIG.

【0024】次に、モータ駆動開始命令がデバイスドラ
イバに出力され(図1破線(6),(7)、図2ステップSc
4)、この命令を受けたデバイスドライバは、モータコ
ントローラボード2’に対して駆動パルスの発生命令を
出力する(図1破線(8)、図2ステップSd2)。これ
により、モータ駆動パルス発生機構2b2は、対応する
パラメータ保存場所に記憶された制御パラメータに基づ
いて駆動パルスをモータM2に出力し(図2ステップS
e2)、モータM2が回転する。
Next, a motor drive start command is output to the device driver (broken lines (6) and (7) in FIG. 1 and step Sc in FIG. 2).
4) Upon receipt of this command, the device driver outputs a drive pulse generation command to the motor controller board 2 '(broken line (8) in FIG. 1, step Sd2 in FIG. 2). As a result, the motor drive pulse generation mechanism 2b2 outputs a drive pulse to the motor M2 based on the control parameter stored in the corresponding parameter storage location (step S2 in FIG. 2).
e2), the motor M2 rotates.

【0025】一方、駆動制御ルーチンR4は、終了待機
場所TB2のモータM2に対応する位置にタスクT3を登
録し、そのタスクT3をスリープ状態に設定する(図1
破線(9)、図2ステップSd3)。これにより、タスク
T3の処理は一時的に休止され、この間、CPUボード
1’は、他のスリープ状態でないタスクの処理を行うこ
とができる。
On the other hand, the drive control routine R4 registers the task T3 at the position corresponding to the motor M2 at the end waiting place TB2 and sets the task T3 in the sleep state (FIG. 1).
Dashed line (9), step Sd3 in FIG. 2). As a result, the processing of the task T3 is temporarily suspended, and during this time, the CPU board 1'can process other tasks that are not in the sleep state.

【0026】次に、モータ駆動パルス発生機構2b2に
おける駆動パルスの出力が終了すると(図2ステップS
e10、Yes)、割込み信号発生機構2a2から、そ
の終了を知らせる割込み信号が、バス3を介してCPU
ボード1’へ出力される(図1破線(10),(11)、図2ス
テップSe11)。この割込み信号を受けた割込み受け
付けルーチンR2は、モータM2の割込み処理ルーチンR
3の開始アドレスを割込み処理ルーチンテーブルTB1に
おいて検索し、その結果が示す位置にジャンプする(図
1破線(12)、図2ステップSc10)。
Next, when the output of the drive pulse in the motor drive pulse generating mechanism 2b2 is completed (step S in FIG. 2).
e10, Yes), the interrupt signal from the interrupt signal generation mechanism 2a2 notifying the end is sent to the CPU via the bus 3.
It is output to the board 1 '(broken lines (10) and (11) in FIG. 1, step Se11 in FIG. 2). The interrupt acceptance routine R2 that receives this interrupt signal is an interrupt processing routine R for the motor M2.
The start address of 3 is searched in the interrupt processing routine table TB1, and the jump is made to the position indicated by the result (broken line (12) in FIG. 1, step Sc10 in FIG. 2).

【0027】そして、ジャンプ先の割込み処理ルーチン
R3により、終了待機場所TB2が検索され、その結果、
対象のタスクT3がウェイクアップ状態に再設定される
(図1破線(13),(14)、図2ステップSd10,Sd1
1)。これにより、タスクT3は、デバイスドライバ内
でアクティブとなり、ユーザアプリケーション層へ処理
が戻る(図1破線(15))。そして、タスクT3を含むス
リープ状態でないタスクの処理が行われていく。
Then, the end waiting place TB2 is searched by the interrupt processing routine R3 of the jump destination, and as a result,
The target task T3 is reset to the wakeup state (broken lines (13) and (14) in FIG. 1, steps Sd10 and Sd1 in FIG. 2).
1). As a result, the task T3 becomes active in the device driver, and the process returns to the user application layer (broken line (15) in FIG. 1). Then, the tasks including the task T3 that are not in the sleep state are processed.

【0028】このように、本実施例によれば、CPUボ
ード1’はタスクT3をスリープ状態としてから、対応
する割込み信号を受信するまで、そのタスクT3に関す
る処理を行う必要がなく、その間に別の処理を行うこと
ができる。
As described above, according to the present embodiment, the CPU board 1'does not have to perform the processing relating to the task T3 after the task T3 is put into the sleep state until the corresponding interrupt signal is received, and during that time, another processing is performed. Can be processed.

【0029】なお、以上の動作説明は、タスクT3がモ
ータM2を制御する場合に限って説明を行ったが、選択
されるタスクT1〜Tk、およびそれらのタスクT1〜Tk
が制御するモータM1〜Mjは、全ての組み合わせで選択
可能である。
Although the above description of the operation has been made only when the task T3 controls the motor M2, the selected tasks T1 to Tk and the tasks T1 to Tk thereof are selected.
The motors M1 to Mj controlled by can be selected in all combinations.

【0030】また、以上説明した本実施例においては、
OSとデバイスドライバとを分離してCPUボード1’
に組み込んだが、OS内にデバイスドライバの機能を組
み込むことも可能である。
Further, in this embodiment described above,
CPU board 1'by separating OS and device driver
However, it is also possible to incorporate the function of the device driver into the OS.

【0031】[0031]

【発明の効果】以上説明したように、この発明によれ
ば、管理制御部が制御対象のモータの駆動状態を絶えず
監視する必要がなくなるため、その余剰の処理能力を別
の処理に向けることができるという効果が得られる。
As described above, according to the present invention, the supervisory control unit does not need to constantly monitor the drive state of the motor to be controlled, so that the surplus processing capacity can be directed to another process. The effect of being able to be obtained is obtained.

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

【図1】 この発明の一実施例によるモータ駆動制御装
置の機能構成を示すブロック図である。
FIG. 1 is a block diagram showing a functional configuration of a motor drive control device according to an embodiment of the present invention.

【図2】 図1の装置における動作手順の要部を示すフ
ローチャートである。
FIG. 2 is a flowchart showing a main part of an operation procedure in the apparatus of FIG.

【図3】 従来のモータ駆動制御装置の構成を例示した
図である。
FIG. 3 is a diagram illustrating a configuration of a conventional motor drive control device.

【図4】 図3の装置における動作手順の要部を示すフ
ローチャートである。
4 is a flowchart showing a main part of an operation procedure in the apparatus of FIG.

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

1’ CPUボード T1〜Tk タスク TB1 割込み処理ルーチンテーブル TB2 終了待機場所 3 バス 2’ モータコントローラボード 2a1〜2aj 割込信号発生機構 2b1〜2bj モータ駆動パルス発生機構 M1〜Mj モータ 1'CPU board T1 to Tk task TB1 interrupt processing routine table TB2 end standby place 3 bus 2'motor controller board 2a1 to 2aj interrupt signal generation mechanism 2b1 to 2bj motor drive pulse generation mechanism M1 to Mj motor

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G05B 19/02 W G06F 9/46 340 B 7737−5B H02P 5/00 T ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification number Office reference number FI technical display location G05B 19/02 W G06F 9/46 340 B 7737-5B H02P 5/00 T

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 制御パラメータを出力する管理制御部
と、前記制御パラメータに基づいて実際に複数のモータ
を駆動制御するモータ制御部とからなるモータ駆動制御
装置において、 前記管理制御部は、予め設定された複数のタスクに基づ
いて対応する前記モータの制御パラメータを設定するパ
ラメータ設定手段と、前記タスクの状態を管理するタス
ク管理手段と、前記タスク管理手段が各タスクの状態を
記憶する少なくとも一つのテーブルとを備え、 前記モータ制御部は、前記制御パラメータを記憶するパ
ラメータ記憶手段と、前記パラメータ記憶手段に記憶さ
れた制御パラメータに基づいて対応する前記モータへ駆
動信号を出力する駆動信号発生手段と、割込み信号によ
り前記駆動信号発生手段の出力が終了したことを前記管
理制御部に知らせる割込み信号発生手段とを備え、 前記タスク管理手段は、前記パラメータ設定手段の制御
パラメータの設定が終わった時点で、対応するタスクを
前記テーブルへ登録するとともにそのタスクを休止状態
とし、前記割込み信号発生手段から割込み信号を受けた
場合に、対応するタスクの休止状態を解除することを特
徴とするモータ駆動制御装置。
1. A motor drive control device comprising a management control unit for outputting control parameters and a motor control unit for actually controlling drive of a plurality of motors based on the control parameters, wherein the management control unit is preset. Parameter setting means for setting a corresponding control parameter of the motor based on a plurality of tasks, task management means for managing the status of the task, and at least one of the task management means for storing the status of each task. A table, wherein the motor control unit includes a parameter storage unit that stores the control parameter, and a drive signal generation unit that outputs a drive signal to the corresponding motor based on the control parameter stored in the parameter storage unit. The management control unit is informed that the output of the drive signal generation means has ended by the interrupt signal. The task management means, when the setting of the control parameter of the parameter setting means is finished, registers the corresponding task in the table and puts the task in a dormant state, and the interrupt signal is generated. A motor drive control device, which releases a suspended state of a corresponding task when an interrupt signal is received from the generating means.
【請求項2】 前記管理制御部は、マルチタスクのOS
上で動作し、前記パラメータ設定手段、前記タスク管理
手段、および前記テーブルのうちの前記モータ制御部と
直接係わる部分をデバイスドライバにより構成すること
を特徴とする請求項1記載のモータ駆動制御装置。
2. The management control unit is a multitasking OS.
2. The motor drive control device according to claim 1, wherein the motor driver control device operates on the above, and the portion of the table that directly relates to the motor control unit of the task management unit and the table is configured by a device driver.
【請求項3】 管理制御部が、選択されたタスクに従っ
てモータ制御部へ制御対象のモータの制御パラメータを
出力する第1のステップと、 前記選択されたタスクをテーブルに登録するとともにそ
のタスクを休止状態にする第2のステップと、 必要に応じて前記第1および第2のステップを他のタス
クに対して順次行う第3のステップと、 その第3のステップにおいてモータ制御部からモータの
駆動終了を示す割込み信号が出力された場合に、そのモ
ータの制御を行ったタスクを前記テーブルにおいて検索
する第4のステップと、 その検索により判別されたタスクの休止状態を解除し前
記第1のステップへ戻る第5のステップとを具備するこ
とを特徴とするモータ制御方法。
3. A first step in which the management control unit outputs the control parameter of the motor to be controlled to the motor control unit according to the selected task, and the selected task is registered in a table and the task is suspended. A second step of setting the state, a third step of sequentially performing the first and second steps for other tasks as necessary, and a motor control unit in the third step ending driving of the motor. When an interrupt signal indicating is output, a fourth step of searching the table for the task that controlled the motor, and canceling the dormant state of the task determined by the search, and going to the first step A fifth step of returning, and a motor control method.
JP6230032A 1994-09-26 1994-09-26 Motor drive control device and method therefor Withdrawn JPH0895618A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6230032A JPH0895618A (en) 1994-09-26 1994-09-26 Motor drive control device and method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6230032A JPH0895618A (en) 1994-09-26 1994-09-26 Motor drive control device and method therefor

Publications (1)

Publication Number Publication Date
JPH0895618A true JPH0895618A (en) 1996-04-12

Family

ID=16901505

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6230032A Withdrawn JPH0895618A (en) 1994-09-26 1994-09-26 Motor drive control device and method therefor

Country Status (1)

Country Link
JP (1) JPH0895618A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1074978C (en) * 1996-09-09 2001-11-21 东丽株式会社 Double-shaft extension polyester film for container formation

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1074978C (en) * 1996-09-09 2001-11-21 东丽株式会社 Double-shaft extension polyester film for container formation

Similar Documents

Publication Publication Date Title
JPH02503485A (en) multipurpose memory
EP0349004A3 (en) Data processor capable of treating interrupt at a high speed
JPH0895618A (en) Motor drive control device and method therefor
WO1995029432A1 (en) Control system
JP7303014B2 (en) Control device
JPH08272755A (en) Process switching device
JPH0644084A (en) Information processor
JPH0898590A (en) Equipment and method for controlling the driving of motor
JPH0895619A (en) Motor drive control device and method therefor
KR100415029B1 (en) Digital signal processor
JPH08137513A (en) Memory management system
JPH0434179B2 (en)
JPH0883133A (en) Computer system and clock control method for the same
JP2561340B2 (en) Information processing device
JPH08171483A (en) Data processor
Neumann Disk-based program swapping in 8080-based microcomputers
JP3460426B2 (en) Robot controller
JPH10240569A (en) Tracing device for computer
JP2000010899A (en) Input/output processing system and its peripheral device control method, and recording medium where its control program is recorded
JPH1139266A (en) Multiprocessor device
JP2806201B2 (en) Peripheral equipment
JPH08123261A (en) Printer and self-diagnostic processing method
WO1988010454A1 (en) Operation time display system
JPH0534700B2 (en)
JPH06105439B2 (en) Program management method

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20020115