JPH0965690A - Cpu with built-in software - Google Patents

Cpu with built-in software

Info

Publication number
JPH0965690A
JPH0965690A JP22041295A JP22041295A JPH0965690A JP H0965690 A JPH0965690 A JP H0965690A JP 22041295 A JP22041295 A JP 22041295A JP 22041295 A JP22041295 A JP 22041295A JP H0965690 A JPH0965690 A JP H0965690A
Authority
JP
Japan
Prior art keywords
stepping motor
unit
profile
encoder
calculation 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.)
Pending
Application number
JP22041295A
Other languages
Japanese (ja)
Inventor
Mitsuyoshi Tanimoto
光義 谷本
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.)
NEC Computertechno Ltd
Original Assignee
NEC Computertechno Ltd
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 NEC Computertechno Ltd filed Critical NEC Computertechno Ltd
Priority to JP22041295A priority Critical patent/JPH0965690A/en
Publication of JPH0965690A publication Critical patent/JPH0965690A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control Of Stepping Motors (AREA)

Abstract

PROBLEM TO BE SOLVED: To accelerate a stepping motor smoothly even if the load of the stepping motor is varied. SOLUTION: The whole of a CPU 7 is controlled by a whole control unit 1. The rotation state of a stepping motor 8 is decided by a load calculation unit 4 in accordance with the information of an encoder 9 attached to the stepping motor 8. If the stepping motor 8 is not accelerated smoothly, new acceleration data are calculated by a profile calculation unit 2 and the new acceleration data are transmitted to a memory unit 6 through the whole control unit 1 and, at the same time, transmitted to an output port part 3 as the phase signals of the stepping motor 8.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ステッピングモー
タを制御するソフト組み込みCPUに関し、特に、ステ
ッピングモータのプロフィール制御に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a software embedded CPU for controlling a stepping motor, and more particularly to profile control of a stepping motor.

【0002】[0002]

【従来の技術】従来のソフト組み込みCPUは、ステッ
ピングモータを制御する為のプロフィールデータはソフ
トウェア的に固定データとなっている。
2. Description of the Related Art In a conventional software-embedded CPU, profile data for controlling a stepping motor is fixed as software.

【0003】[0003]

【発明が解決しようとする課題】上述した従来のソフト
組み込みCPUでは、ステッピングモータに対する負荷
が増えた場合、その増加した負荷に対しての起動トルク
が必要があるが、そのままでは固定のフロフィールデー
タとなっているのでステッピングモータがスムーズに回
転しない為、プロフィールデータを変更したCPUと交
換しなければならず、保守に時間がかかるという問題点
があった。
In the above-mentioned conventional software embedded CPU, when the load on the stepping motor increases, the starting torque for the increased load is required, but as it is, it is a fixed flow feel data. Since the stepping motor does not rotate smoothly, it has to be replaced with a CPU whose profile data has been changed, and there is a problem in that maintenance takes time.

【0004】[0004]

【課題を解決するための手段】本発明のソフト組み込み
CPUは、ステッピングモータに付随したエンコーダに
よりステッピングモータの回転状況を監視する回転監視
部と、この監視したデータからプロフィールデータを計
算する計算部と、この計算結果によりステッピングモー
タを制御する制御部とを有している。
A software-embedded CPU according to the present invention includes a rotation monitoring section for monitoring the rotation status of a stepping motor by an encoder attached to the stepping motor, and a calculation section for calculating profile data from the monitored data. , And a control unit that controls the stepping motor according to the calculation result.

【0005】本発明のソフト組み込みCPUは、回転状
況を検知するエンコーダと、このエンコーダを搭載した
ステッピングモータと、このステッピングモータを制御
するためのプロフィールデータを記憶する記憶部と、こ
の記憶部から読み出されたプロフィールデータを計算し
モータの相信号出力するプロフィール計算部と、この出
力されたモータの相信号を受けとる出力ポート部と、エ
ンコーダからの信号を受けとる入力ポート部と、この出
力ポート部からの信号により一定周期でエンコーダ信号
の変化点をサンプルする変化時間がプロフィールデータ
と合致すれば次のデータ送出指示を出力する負荷計算部
と、ステッピングモータを回転させるためにまず記憶部
に入っているプロフィールデータを読み出しプロフィー
ル計算部を経由して出力ポート部へモータの相信号を送
出すると同時に加速開始を負荷計算部へ通知し負荷計算
部からの次のデータ送出指示により次のプロフィールデ
ータを記憶部より読み出しプロフィール計算部へ送る全
体制御部とを有している。
The software-embedded CPU of the present invention includes an encoder for detecting a rotation state, a stepping motor having the encoder, a storage section for storing profile data for controlling the stepping motor, and a reading section for reading from the storage section. From the profile calculator that calculates the output profile data and outputs the motor phase signal, the output port that receives this output motor phase signal, the input port that receives the signal from the encoder, and this output port When the change time for sampling the change point of the encoder signal at a constant cycle by the signal of No. 1 matches the profile data, the load calculation unit that outputs the next data transmission instruction and the storage unit for rotating the stepping motor are first stored. Read out the profile data via the profile calculator At the same time that the motor phase signal is sent to the output port section, the start of acceleration is notified to the load calculation section, and the next profile data is read from the storage section according to the next data transmission instruction from the load calculation section and sent to the profile calculation section. have.

【0006】[0006]

【発明の実施の形態】次に、本発明の実施の形態につい
て図面を参照して説明する。
Next, embodiments of the present invention will be described with reference to the drawings.

【0007】図1は本発明のソフト組み込みCPUの一
実施の形態を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a software-embedded CPU of the present invention.

【0008】全体制御部1はCPU7全体を管理する部
分である。ステッピングモータ8を回転させるためにま
ず、全体制御部1は、記憶部6に入っているプロフィー
ルデータを読み出し、プロフィール計算部2を経由して
出力ポート部3へモータの相信号が送られる。同時に全
体制御部1は加速開始を負荷計算部4へ通知する。負荷
計算部4はエンコーダ9の信号を入力ポート部5経由で
受け取り一定周期でエンコーダ信号の変化点をサンプル
する。変化時間がプロフィールデータと合致すれば次の
データ送出指示を全体制御部1へ行なう。全体制御部1
は本通知を受けたら次のプロフィールデータを記憶部6
より読み出しプロフィール計算部2へ送る。
The overall control unit 1 is a unit that manages the entire CPU 7. In order to rotate the stepping motor 8, first, the overall control unit 1 reads the profile data stored in the storage unit 6, and the phase signal of the motor is sent to the output port unit 3 via the profile calculation unit 2. At the same time, the overall control unit 1 notifies the load calculation unit 4 of the start of acceleration. The load calculation unit 4 receives the signal of the encoder 9 via the input port unit 5 and samples the change point of the encoder signal at a constant cycle. If the change time matches the profile data, the next data transmission instruction is issued to the overall control unit 1. Overall control unit 1
Upon receiving this notification, the following profile data is stored in the storage unit 6
And sends it to the read profile calculation unit 2.

【0009】以上の動作を負荷増状態にならなければ繰
り返えす。
The above operation is repeated unless the load increases.

【0010】負荷計算部4にてエンコーダ9の信号の変
化時間とプロフィールデータが合致しなかった場合、ス
テッピングモータ8がスムーズに回転してないと判断し
プロフィール計算部2へ通知する。プロフィール計算部
2は負荷計算部4からの情報によりプロフィールデータ
の計算を行ない、出力ポート部3へ相データを送る。ま
た、同様のデータを全体制御部1へ送るとともに記憶部
6のプロフィールデータを書換える。プロフィールデー
タを変えることはステッピングモータ8の加速角度を変
更することによりステッピングモータ8の負荷が重くな
ってもスムーズな回転が得られる。以後、ステッピング
モータ8の加速処理が終了するまでくり返えされる。
When the load calculator 4 does not match the change time of the signal of the encoder 9 and the profile data, it is determined that the stepping motor 8 is not rotating smoothly, and the profile calculator 2 is notified. The profile calculation unit 2 calculates profile data based on the information from the load calculation unit 4, and sends the phase data to the output port unit 3. Also, the same data is sent to the overall control unit 1 and the profile data in the storage unit 6 is rewritten. Changing the profile data changes the acceleration angle of the stepping motor 8 so that smooth rotation can be obtained even if the load on the stepping motor 8 becomes heavy. After that, the process is repeated until the acceleration process of the stepping motor 8 is completed.

【0011】次に、負荷計算部4でのエンコーダ信号の
変化点が一定時間以上であった場合、または、エンコー
ダ信号が変化しなかった場合は、ステッピングモータ8
が回転してないか、何らかの原因により過負荷となった
ことが考えられるため、全体制御部1に対し回転異常の
通知を行なう。全体制御部1は本通知によりプロフィー
ル計算部2へのデータ送出を止め上位部10の異常通知
を行なう。
Next, when the change point of the encoder signal in the load calculation section 4 is a certain time or more, or when the encoder signal does not change, the stepping motor 8
It is considered that the motor is not rotating or that it is overloaded for some reason. Therefore, the general control unit 1 is notified of the rotation abnormality. By this notification, the overall control unit 1 stops the data transmission to the profile calculation unit 2 and notifies the upper level unit 10 of the abnormality.

【0012】[0012]

【発明の効果】以上説明したように、本発明のソフト組
み込みCPUは、ステッピングモータの回転状態をエン
コーダによりチェックし、回転がスムーズになる様プロ
フィールデータを計算するため、プロフィールデータを
変更したソフト組み込みCPUの交換が不要となり、保
守時間が低減されるという効果がある。
As described above, the software-embedded CPU of the present invention checks the rotation state of the stepping motor with the encoder and calculates profile data so that the rotation becomes smooth. There is an effect that the replacement of the CPU becomes unnecessary and the maintenance time is reduced.

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

【図1】本発明のソフト組み込みCPUの一実施の形態
を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a software-embedded CPU of the present invention.

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

1 全体制御部 2 プロフィール計算部 3 出力ポート部 4 負荷計算部 5 入力ポート部 6 記憶部 7 CPU 8 ステッピングモータ 9 エンコーダ 10 上位部 1 Overall Control Section 2 Profile Calculation Section 3 Output Port Section 4 Load Calculation Section 5 Input Port Section 6 Memory Section 7 CPU 8 Stepping Motor 9 Encoder 10 Upper Section

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 ステッピングモータに付随したエンコー
ダによりステッピングモータの回転状況を監視する回転
監視部と、この監視したデータからプロフィールデータ
を計算する計算部と、この計算結果により前記ステッピ
ングモータを制御する制御部とを有することを特徴とす
るソフト組込みCPU。
1. A rotation monitoring unit that monitors a rotation state of a stepping motor by an encoder attached to the stepping motor, a calculation unit that calculates profile data from the monitored data, and a control that controls the stepping motor based on the calculation result. A CPU with a built-in software, which has a section.
【請求項2】 回転状況を検知するエンコーダと、この
エンコーダを搭載したステッピングモータと、このステ
ッピングモータを制御するためのプロフィールデータを
記憶する記憶部と、この記憶部から読み出されたプロフ
ィールデータを計算しモータの相信号出力するプロフィ
ール計算部と、この出力されたモータの相信号を受けと
る出力ポート部と、前記エンコーダからの信号を受けと
る入力ポート部と、この出力ポート部からの信号により
一定周期でエンコーダ信号の変化点をサンプルする変化
時間がプロフィールデータと合致すれば次のデータ送出
指示を出力する負荷計算部と、前記ステッピングモータ
を回転させるためにまず前記記憶部に入っているプロフ
ィールデータを読み出し前記プロフィール計算部を経由
して前記出力ポート部へモータの相信号を送出すると同
時に加速開始を前記負荷計算部へ通知し前記負荷計算部
からの次のデータ送出指示により次のプロフィールデー
タを前記記憶部より読み出し前記プロフィール計算部へ
送る全体制御部とを有することを特徴とするソフト組込
みCPU。
2. An encoder for detecting a rotation state, a stepping motor equipped with the encoder, a storage unit for storing profile data for controlling the stepping motor, and profile data read from the storage unit. A profile calculation unit that calculates and outputs a motor phase signal, an output port unit that receives the output motor phase signal, an input port unit that receives the signal from the encoder, and a constant cycle based on the signal from the output port unit. When the change time for sampling the change point of the encoder signal agrees with the profile data, the load calculation unit that outputs the next data transmission instruction and the profile data stored in the storage unit to rotate the stepping motor are first stored. Read out the output port via the profile calculator When a phase signal of the motor is sent to the load calculation unit, the acceleration calculation is notified to the load calculation unit at the same time, and the next profile data is read from the storage unit according to the next data transmission instruction from the load calculation unit and is sent to the profile calculation unit. A CPU with a built-in software, which has a section.
JP22041295A 1995-08-29 1995-08-29 Cpu with built-in software Pending JPH0965690A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22041295A JPH0965690A (en) 1995-08-29 1995-08-29 Cpu with built-in software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22041295A JPH0965690A (en) 1995-08-29 1995-08-29 Cpu with built-in software

Publications (1)

Publication Number Publication Date
JPH0965690A true JPH0965690A (en) 1997-03-07

Family

ID=16750719

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22041295A Pending JPH0965690A (en) 1995-08-29 1995-08-29 Cpu with built-in software

Country Status (1)

Country Link
JP (1) JPH0965690A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55100098A (en) * 1979-01-25 1980-07-30 Nec Corp Speed control system for step motor
JPS59165993A (en) * 1983-03-11 1984-09-19 Nec Corp Positioning controller

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55100098A (en) * 1979-01-25 1980-07-30 Nec Corp Speed control system for step motor
JPS59165993A (en) * 1983-03-11 1984-09-19 Nec Corp Positioning controller

Similar Documents

Publication Publication Date Title
US6865425B2 (en) State machine for a pulse output function
JPH0965690A (en) Cpu with built-in software
JP2914100B2 (en) Analog signal processor for programmable controller
JPH05122801A (en) Controller for electric automobile
JPH04255043A (en) Improved external-memory access control system
CN114578682A (en) Coal mining machine towing cable control method and device and storage medium
WO1992009940A1 (en) Method for executing program for cnc equipment
JP3173031B2 (en) Robot arm servo controller
JP4054448B2 (en) Programmable controller
JP3596167B2 (en) Optical disk drive
JP3650482B2 (en) Waveform recorder
JP3208143B2 (en) Input / output controller of power controller
JPH0825261A (en) Control device for motor
JPH0511847A (en) Controller for servo motor
JPH04355682A (en) Positioning device
JPH07290298A (en) Device for controlling stop for press machine
JPS5833751A (en) Analog input reader for electronic computer
JPH02101979A (en) Positioning method for servo system
JPH11154009A (en) Feed rate control method for numerical controller
JPH02310729A (en) Processing mode change control system for information processor
JPH06153594A (en) Apparatus for driving stepping motor
JPH1165713A (en) Noise reduction system for cooling fan in computer device
JPH05324001A (en) Backup operation unit for instrumentation control
JPH08194515A (en) Numerical control system
JP2001054293A (en) Motor control unit

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19971202