JPH02292609A - Positioning controller - Google Patents
Positioning controllerInfo
- Publication number
- JPH02292609A JPH02292609A JP11212289A JP11212289A JPH02292609A JP H02292609 A JPH02292609 A JP H02292609A JP 11212289 A JP11212289 A JP 11212289A JP 11212289 A JP11212289 A JP 11212289A JP H02292609 A JPH02292609 A JP H02292609A
- Authority
- JP
- Japan
- Prior art keywords
- stop
- servo motor
- signal
- counter
- amount
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000005070 sampling Methods 0.000 claims description 7
- 238000000034 method Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
- 239000000725 suspension Substances 0.000 description 1
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
この発明は、機械に取り付けられたリミットスイ,チよ
り出力される停止命令信号を受けて、それから予め定め
られた目標位置でサーボモータを停Iトさせるための位
置決め制御装置に関する。[Detailed Description of the Invention] [Industrial Application Field] This invention receives a stop command signal output from a limit switch attached to a machine, and then stops a servo motor at a predetermined target position. The present invention relates to a positioning control device for positioning.
従来、このような位置決め制御装置にはマイクロコンピ
ュータ(マイコン)等のデータ処理手段を設け、これに
よりリミットスイッチからの停止命令信号を、例えば2
〔躯〕毎のサンプリング処理により受け付け、しかる後
に位置制御を開始してサーボモータを定位置に停止させ
るようにしており、このときノイズ除去等のため信号の
取り込みを2同行ない、2回とも信号が一致したら初め
て位置制御を開始するようにしている。Conventionally, such a positioning control device is equipped with a data processing means such as a microcomputer, which processes a stop command signal from a limit switch into two
The system accepts the data through sampling processing for each [body], and then starts position control to stop the servo motor at a fixed position.At this time, the signal is captured twice to remove noise, etc. Position control is started only when the two match.
しかしながら、実際に停止命令信号が発生してからこれ
をマイコンにて受け付ける迄に、サンプリングによる遅
れ時間が生じ、この間サーボモータの制御は何らなされ
ず、したがってその間に回転した社だけ、本来停市させ
たい定位置を行き過ぎて停【ヒすることになる。そして
、この行き過ぎ計はサーボモータの回転速度に比例して
大きくなる。このため、高精度の位置制御が要求される
場合は、サーボモータを一旦低速回転にした上で、停1
F命令信号を与えるなどの工夫が別途必要となる。However, there is a delay time due to sampling from when the stop command signal is actually generated until it is accepted by the microcomputer, and the servo motor is not controlled at all during this time. It ends up going too far past the desired position and stopping. This overshoot meter increases in proportion to the rotational speed of the servo motor. Therefore, if high-precision position control is required, first rotate the servo motor at a low speed and then stop it.
Additional measures such as providing an F command signal are required.
リミットスイッチからの停止信号をサンプリング処理し
て受け付けるデータ処理手段を備え、この停1F信号を
受けてから予め定められた目標位置でサーポモー夕を停
市させる位置決め制′41装置において、前記データ処
理手段に外部割込端子を設けてここにリミットスイッチ
からの停1F信号を導入する一方、サーボモータに取り
付けられたパルスジエネレー夕からのパルス数をカウン
トするカウンタにより、停止信号が入力されてからデー
タ処理手段がこれを受け付ける迄のサーボモータの回転
量を求め、このmを停止「1標位置?から差し引いてサ
ーボモータを停止させる。A positioning system '41 device comprising a data processing means for sampling and receiving a stop signal from a limit switch, and stopping the servo motor at a predetermined target position after receiving the stop signal 1F, wherein the data processing means An external interrupt terminal is provided to input the stop 1F signal from the limit switch, and a counter that counts the number of pulses from the pulse generator attached to the servo motor inputs the stop signal and then inputs the stop signal to the data processing means. Find the rotation amount of the servo motor until it accepts this, and subtract this m from the stop "1 mark position?" to stop the servo motor.
停市命令イ.j号が入力されてから、データ処理手段が
これを実際に受け取る迄、すなわち外部割込端子に{.
ls号が入力された時点からサンプリング処理にて受け
付ける迄のサーボモータ回転V(行き過ぎ星)を、パル
スジエネレー夕から出力されるパルス数を計測すること
により検出し、その分を予め差し引いたヒで定位置に停
止するよう制御することにより、行き過ぎを無くす。City suspension order a. From the time the number j is input until the data processing means actually receives it, that is, the signal {.
The servo motor rotation V (overshoot star) from the time when the ls is input until it is accepted in the sampling process is detected by measuring the number of pulses output from the pulse generator, and the number is determined by subtracting that amount in advance. By controlling the vehicle to stop at the correct position, overshooting can be avoided.
第l図はこの発明の実施例を示すブロンク図、第2図は
外部割込処理を示すフローチャート、第3図はこの発明
による停市処理を示すフローチャートである。FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a flowchart showing external interrupt processing, and FIG. 3 is a flowchart showing stop processing according to the invention.
第1図において、1はI/Oボートi +. .カウン
タ12,マイコン13および1〕/A変換器14等より
なる位置決め制御袋置、2はリミットスインチ、3はサ
ーボアンプ、4はサーボモータ、5はパルスジエネレー
夕である。In FIG. 1, 1 is the I/O boat i+. .. A positioning control bag holder consisting of a counter 12, a microcomputer 13, a 1]/A converter 14, etc., 2 a limit switch, 3 a servo amplifier, 4 a servo motor, and 5 a pulse generator.
すなわち、この実施例では、位置決め制御装置1のI/
Oポート11には端子T1を介して従来通り停市命令信
号STを入力するのに加え、マイコンl3の外部割込端
子T2にもこれを入力する.I/Oボート11はマイコ
ン13のサンプリング処理により定周jlJl i,毎
にしか入力を受け付けないが、外部割込端子1゛2から
は入力を即時受け付けることが=J能である。That is, in this embodiment, the I/O of the positioning control device 1 is
In addition to inputting the stop command signal ST to the O port 11 via the terminal T1 as before, it is also input to the external interrupt terminal T2 of the microcomputer 13. Although the I/O boat 11 only accepts inputs every fixed period jlJli, due to the sampling process of the microcomputer 13, it is capable of immediately accepting inputs from the external interrupt terminals 1 and 2.
したがって、停止命令信号STが発せられると、これが
マイコンl3の外部割込Q子T2に入力され、第2図に
示す如き処理が実行される。この処理では、マイコン1
3内のバソファ八にこの時点でのカウンタl2の値が格
納される。このカウンタl2は、サーボモータ4に取り
付けてあるパルスジェネレータ5から出力されるパルス
信号を常時カウントしており、サーボモータ4が回転し
ていれば、その回転方向によりカウント値はUP/DO
WNする。つまり、バッファ八に格納された値は、実際
に停止命令信号S′Fが入力された時点でのサーボモー
タ軸の位置を示している。Therefore, when the stop command signal ST is issued, it is input to the external interrupt Q terminal T2 of the microcomputer 13, and the processing shown in FIG. 2 is executed. In this process, microcomputer 1
The value of the counter 12 at this point in time is stored in the bus 8 in 3. This counter l2 constantly counts the pulse signal output from the pulse generator 5 attached to the servo motor 4, and if the servo motor 4 is rotating, the count value will be UP/DO depending on the direction of rotation.
WN. That is, the value stored in buffer 8 indicates the position of the servo motor shaft at the time when the stop command signal S'F was actually input.
さらに、位置決め制御装置1は、従来通り■/0ポート
11により1〜2サンプリング(t〜2む)遅れの後停
止命令信号STを受け付け、第3図に示す処理を実行す
る。この処理は、従来のものに以一ドのステンプを追加
したものである。Further, the positioning control device 1 receives the stop command signal ST after a delay of 1 to 2 samplings (t to 2 mm) through the /0 port 11 as before, and executes the process shown in FIG. 3. This process adds one step to the conventional process.
すなわち、ステップ■ではマイコン13内のバソファ1
3にこの時点でのカウンタl2の値を格納する。つまり
、このイ直は実際に信号が入力されてからL〜2],遅
れの後にマイコン13が信号を受け付けた時点でのサー
ボモータ軸の位置を示している。したがって、ステップ
■では(バッファ[3ハンファA)を計算し、実際に信
号が入力された時点からこれを実際に受け付ける迄に回
転したサーボモータのFJ Cを算出する。この量Cが
行き過ぎ計であり、ステップ■にて本来停止するし1標
位置データからこの星Cを差し引いて定位置停f1二の
制御を行なうごとにより行き過ぎは無くなり、本来の停
止位置に停止させることができる。なお、マイコン13
からの出力はD/A変換器14を介してサーボアンブ3
に与えられる。That is, in step ■, the bath sofa 1 in the microcomputer 13
3 stores the value of counter l2 at this point. In other words, this position indicates the position of the servo motor shaft at the time when the microcomputer 13 receives the signal after a delay of L~2] after the signal is actually input. Therefore, in step (2), (buffer [3 Hanwha A) is calculated, and FJ C of the servo motor rotated from the time when the signal is actually input until it is actually received is calculated. This amount C is the overshoot meter, and it would normally stop at step ■, but by subtracting this star C from the 1 mark position data and performing fixed position stop f1 2 control, overshoot will disappear and it will stop at the original stop position. be able to. In addition, microcomputer 13
The output from the servo amplifier 3 is sent via the D/A converter 14.
given to.
〔発明の効果]
行き過ぎjdKは回転数N(rρm〕に比例するが、こ
れをパルス数にて表すと、従来方式では次式のようにな
る。ただし、1回転当たりのパルス数を1000とし、
遅れ時間をt(:2+s)とする。[Effect of the invention] The overshoot jdK is proportional to the number of revolutions N (rρm), but when expressed in terms of the number of pulses, in the conventional method, it is as follows.However, assuming that the number of pulses per revolution is 1000,
Let the delay time be t(:2+s).
N L/6 0<K<N L/3 0
例えば、回転fiNを2000 (rpm)とすると、
67<K<133 (パルス〕
の行き過ぎが生しる。N L/6 0<K<N L/3 0 For example, if the rotation fiN is 2000 (rpm),
67<K<133 (Pulse) Overshoot occurs.
しかるに、この発明によれば、信号の受け付け遅れによ
る行き過ぎ賃は回転数に無関係となり、l 〔パルス〕
以下にすることができる。However, according to the present invention, the overshoot caused by the delay in receiving the signal becomes irrelevant to the rotation speed, and l [pulse]
It can be:
第1図はこの発明の実施例を示すブロック図、第2図は
外部割込処理を示すフローチャート、第3図はこの発明
による停市処理を示すフローチャートである。
符号説明
■・・・位置決め制御装置、2・・・リミットスイッチ
、3・・・サーボアンプ、4・・・サーポモー夕、5・
・・パルスジエネレー夕、1l・・・I/Oポート、l
2・・・カウンタ、l3・・・マイコン、14・・・D
/A変換器。
第 19FIG. 1 is a block diagram showing an embodiment of the invention, FIG. 2 is a flowchart showing external interrupt processing, and FIG. 3 is a flowchart showing city stop processing according to the invention. Symbol explanation ■...Positioning control device, 2...Limit switch, 3...Servo amplifier, 4...Servo motor, 5...
...Pulse generator, 1l...I/O port, l
2...Counter, l3...Microcomputer, 14...D
/A converter. 19th
Claims (1)
理して受け付けるデータ処理手段を備え、この停止信号
を受けてから予め定められた目標位置でサーボモータを
停止させる位置決め制御装置において、 前記データ処理手段に外部割込端子を設けてここにリミ
ットスイッチからの停止信号を導入する一方、サーボモ
ータに取り付けられたパルスジェネレータからのパルス
数をカウントするカウンタにより、停止信号が入力され
てからデータ処理手段がこれを受け付ける迄のサーボモ
ータの回転量を求め、この量を停止目標位置量から差し
引いてサーボモータを停止させることを特徴とする位置
決め制御装置。[Scope of Claims] 1) A positioning control device comprising data processing means for sampling and receiving a stop signal from a limit switch, and stopping a servo motor at a predetermined target position after receiving the stop signal, The data processing means is provided with an external interrupt terminal to which a stop signal from a limit switch is introduced, and a counter that counts the number of pulses from a pulse generator attached to the servo motor is used to input a stop signal. A positioning control device characterized in that the amount of rotation of the servo motor is determined until the data processing means accepts this information, and this amount is subtracted from the target stop position amount to stop the servo motor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP11212289A JPH02292609A (en) | 1989-05-02 | 1989-05-02 | Positioning controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP11212289A JPH02292609A (en) | 1989-05-02 | 1989-05-02 | Positioning controller |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH02292609A true JPH02292609A (en) | 1990-12-04 |
Family
ID=14578742
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP11212289A Pending JPH02292609A (en) | 1989-05-02 | 1989-05-02 | Positioning controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH02292609A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012252445A (en) * | 2011-06-01 | 2012-12-20 | Fuji Electric Co Ltd | Positioning device |
-
1989
- 1989-05-02 JP JP11212289A patent/JPH02292609A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012252445A (en) * | 2011-06-01 | 2012-12-20 | Fuji Electric Co Ltd | Positioning device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS61164481A (en) | Speed control system | |
JPH0655037B2 (en) | Servo motor speed control method | |
JPS63148314A (en) | Controller for semiclosed loop servo control system | |
JPH02292609A (en) | Positioning controller | |
EP0447561B1 (en) | Method of controlling rotations of main shafts | |
JPS58169212A (en) | Position controller of servomotor | |
US5319288A (en) | Main spindle rotation control method | |
JP2536291B2 (en) | Speed measuring device | |
JPH03117514A (en) | Control unit for simultaneous tapping | |
JP3123859B2 (en) | Robot position / posture recognition device | |
JPS6038658A (en) | Speed detecting apparatus | |
JPH0651037A (en) | Motor load inertia identifying method | |
JPH01177885A (en) | Positioning method for motor | |
JPH10161748A (en) | Motor positioning controller | |
JPH04355682A (en) | Positioning device | |
JPS5873872A (en) | Digital method for detecting velocity | |
JPS63198814A (en) | Detecting method for speed, position, and rotating direction | |
JP2665314B2 (en) | Motor control device for parts inspection device | |
JP3163832B2 (en) | Motor control device | |
WO1989006836A1 (en) | High precision pulse interpolation system | |
JPH0226391U (en) | ||
JPH0340595B2 (en) | ||
JPS63193213A (en) | Speed controller for digital servo system with pulse encoder | |
JPH04334992A (en) | Control method of servo device | |
JPH0641397U (en) | Motor speed controller |