JPH02214908A - Robot controller - Google Patents
Robot controllerInfo
- Publication number
- JPH02214908A JPH02214908A JP3690689A JP3690689A JPH02214908A JP H02214908 A JPH02214908 A JP H02214908A JP 3690689 A JP3690689 A JP 3690689A JP 3690689 A JP3690689 A JP 3690689A JP H02214908 A JPH02214908 A JP H02214908A
- Authority
- JP
- Japan
- Prior art keywords
- servo
- robot
- value
- speed command
- state
- 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
Landscapes
- Manipulator (AREA)
- Control Of Position Or Direction (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
この発明は、ロボットの制御装置に関し、より詳しくは
サーボ機構の再駆動時における初期位置の制御手段に関
するものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a control device for a robot, and more particularly to means for controlling an initial position when a servo mechanism is re-driven.
先ず、ロボットの制御装置の構成を第3図に基づいて説
明する。第3図はロボットの制御装置の概略を示す全体
構成図であり、同図において、(1)はロボット全体を
管理するcpu (以下r cpul」と記す)、(
2)はcpu (1)への制御プログラムが格納されて
いるROM 、 (3)はCPU 1 (1)が計算す
るデータを格納するために用いられるRAM 。First, the configuration of the robot control device will be explained based on FIG. 3. Figure 3 is an overall configuration diagram showing the outline of the robot control device.
2) is a ROM in which a control program for the CPU (1) is stored, and (3) is a RAM used to store data calculated by the CPU (1).
(4)はロボットのユーザがロボットに所望の作業をさ
せるためのプログラムと位置データが格納されているプ
ログラム・メそす、(5)はCPt11 (1)が計算
する速度指令(単位時間当りの移動指令)が書き込まれ
ている共有メモリである。(4) is a program meso that stores the program and position data for the robot user to make the robot do the desired work, and (5) is the speed command (speed command per unit time) calculated by CPt11 (1). This is a shared memory in which movement commands) are written.
また、(6)はサーボ系を駆動制御するcpu (以
下rcpH2Jと記す)、(7)及び(8)はCPU
2(6)に用いられそれぞれcpu 1(1)における
ROM(2) 、 RAM (3)に相当するROM及
びRAM 、 (9)はCPLI 2 (6) とロボ
ット本体(lO)内に装着された各軸のモータとを結合
するサーボインターフェイス(以下「サーボI/F J
と記す)である。In addition, (6) is a CPU (hereinafter referred to as rcpH2J) that drives and controls the servo system, and (7) and (8) are CPUs that drive and control the servo system.
2 (6) and corresponds to ROM (2) and RAM (3) in CPU 1 (1), respectively, and (9) are installed in CPLI 2 (6) and the robot body (IO). Servo interface (hereinafter referred to as “servo I/F J”) that connects the motor of each axis
).
上記構成からなるロボットの制御装置の基本動作は次の
様にして行われる。The basic operation of the robot control device having the above configuration is performed as follows.
先ず、CPU 1 (1)は、プログラム・メモリ(4
)から移動目的位置を読み出し、ROM (2)に書き
込まれた制御プログラムに従って単位時間毎にCPU2
(6)に対する速度指令を共有メモリ(5)に逐次書き
込む。次いで、CPU 2 (6)は、cpu 1(t
)からの上記速度指令を共有メモリ(5)から読み出す
と共にROM (7)に書き込まれている制御プログラ
ムトRAM (8)の制御データとに基づいてサーボ1
7F (9)を介して所定の信号をロボット本体(1o
)に出力し、ロボット本体(10)内のサーボモータを
駆動させてロボットに所定の動作をさせる。First, CPU 1 (1) has program memory (4
) and reads the movement target position from the CPU 2 every unit time according to the control program written in the ROM (2).
The speed command for (6) is sequentially written into the shared memory (5). Then, CPU 2 (6) executes cpu 1(t
) is read from the shared memory (5), and the servo 1 is executed based on the control program written in the ROM (7) and the control data in the RAM (8).
A predetermined signal is sent to the robot body (1o
) to drive the servo motor in the robot body (10) to cause the robot to perform a predetermined operation.
次いで、従来のロボットの制御装置の制御方式を第4図
に示す構成図に基づいて具体的に説明すると、同図にお
いて、(4)は第3図におけるプログラム・メモリ、(
11)は第3図におけるRAM (2)中に存在し、ロ
ボットの移動目的位置を格納する目的位置用バッファ、
(12)は目的位置用バッファ(11)に格納されてい
る目的位置から次の時点における各軸毎の速度指令を演
算し、速度指令バッファ(13)に格納する速度指令演
算装置、(13)は第3図における共有メモリ(5)中
に存在する速度指令バッファ、(14)は速度指令と後
述する微分器(20)が出力するフィードバック値との
差を累積する積分器、(15)は出力切離し器、(16
)はサーボアンプ、(17)はサーボモータ、(18)
はエンコーダ、(19)はエンコーダ(18)から出力
されるパルスをカウントするカウンタ、(20)は上述
した微分器で、カウンタ(19)の数値を単位時間当り
の移動量に変換するようになされている。Next, the control method of the conventional robot control device will be explained in detail based on the configuration diagram shown in FIG. 4. In the same figure, (4) is the program memory in FIG.
11) is a target position buffer that exists in RAM (2) in FIG. 3 and stores the target position of movement of the robot;
(12) is a speed command calculation device that calculates a speed command for each axis at the next point in time from the target position stored in the target position buffer (11), and stores it in the speed command buffer (13); is a speed command buffer existing in the shared memory (5) in FIG. 3, (14) is an integrator that accumulates the difference between the speed command and a feedback value output from a differentiator (20), which will be described later, and (15) is an integrator Output disconnector, (16
) is the servo amplifier, (17) is the servo motor, (18)
is an encoder, (19) is a counter that counts the pulses output from the encoder (18), and (20) is the above-mentioned differentiator, which converts the value of the counter (19) into the amount of movement per unit time. ing.
而して、従来のロボットの制御装置におけるサーボON
時の動作は、速度指令バッファ(13)に書ぎ込まれた
速度指令と、微分器(20)によって計算されたフィー
ドバック値との差を積分器(14)において単位時間当
りの速度指令に変換しサーボアンプ(16)に出力する
ことによってなされる。この際、出力切離し器(15)
は接続されており、所定の動作を実行する状態にある。Therefore, the servo ON in the conventional robot control device
The operation is performed by converting the difference between the speed command written in the speed command buffer (13) and the feedback value calculated by the differentiator (20) into a speed command per unit time in the integrator (14). This is done by outputting the signal to the servo amplifier (16). At this time, the output disconnector (15)
is connected and ready to perform a predetermined operation.
このような状態下でサーボアンプ(16)はサーボモー
タ(17)を駆動させ、ロボットを所定の位置へ移動さ
せる。そして現在位置はフィードバックされ、該フィー
ドバック信号は、エンコーダ(18)がサーボモータ(
17)の回転をパルス信号に変換し、そのパルス信号を
カウンタ(19)が回転角に変換した後微分器(20)
が速度に変換するようになされている。Under such conditions, the servo amplifier (16) drives the servo motor (17) to move the robot to a predetermined position. The current position is then fed back, and the feedback signal is transmitted by the encoder (18) to the servo motor (
The rotation of 17) is converted into a pulse signal, and after the pulse signal is converted into a rotation angle by a counter (19), a differentiator (20)
is converted into speed.
今、サーボONからサーボOFFに切り替えられた場合
、出力切離し器(15)に対して切離し指令(22)を
出力してサーボアンプ(16)に対する指令をOとし、
サーボモータ(17)が回転しないようにすると共に積
分器(14)に対してリセット信号(21)を入力し常
に出力が0となるようにしている。積分器(14)の出
力を0とすることによって、仮にサーボOFF中にロボ
ットが動かされると、フィードバック値が積分器に返り
、ロボット本体(10)の姿勢を元の位置に戻そうとす
る積分器(14)からの出力が発生してサーボON時に
出力切離し器(15)が接続された瞬間サーボOFF直
前の位置に戻ろうとする予期し得ない動作の発生を防止
するようにしている。Now, when the servo is switched from ON to OFF, a disconnection command (22) is output to the output disconnector (15) and the command to the servo amplifier (16) is set to O.
The servo motor (17) is prevented from rotating, and a reset signal (21) is input to the integrator (14) so that the output is always zero. By setting the output of the integrator (14) to 0, if the robot is moved while the servo is OFF, a feedback value is returned to the integrator, and an integral that attempts to return the posture of the robot body (10) to its original position. This is to prevent the occurrence of an unexpected operation in which the output disconnector (15) attempts to return to the position immediately before the servo is turned off the moment the output disconnector (15) is connected when the servo is turned on when the output from the device (14) is generated.
しかしながら、従来のロボットの制御装置は、上述の如
く、サーボOFF中は積分器(14)の出力を常に0と
しているため、サーボON時にサーボOFF直前の位置
に復旧することができず、サーボON後ロボット本体の
姿勢を元の位置に復旧するためには移動命令または手動
で戻す必要があった。However, as mentioned above, in the conventional robot control device, the output of the integrator (14) is always 0 while the servo is OFF, so when the servo is turned on, it is not possible to restore it to the position immediately before the servo was turned off. In order to restore the posture of the rear robot body to its original position, it was necessary to issue a movement command or manually return it.
この発明は上記課題を解決するためになされたもので、
サーボOFF中の一定範囲内でのロボットの移動を自動
的に元の位置に復旧させることができるロボットの制御
装置を得ることを目的とする。This invention was made to solve the above problems,
An object of the present invention is to obtain a robot control device that can automatically restore the robot's movement within a certain range while the servo is off to its original position.
〔課題を解決するための手段]
この発明のロボットの制御装置は、位置指令値と現在位
置のフィードバック値との誤差を常時監視する監視手段
と、該監視手段が出力する誤差信号に基づき該誤差値を
予め設定した基準と比較して該誤差値の大小を判別する
比較器とを備え、該比較器の出力信号が大のとき上記誤
差を補正し、小のとき上記誤差をリセットする選択手段
を備えたものである。[Means for Solving the Problems] A robot control device of the present invention includes a monitoring device that constantly monitors an error between a position command value and a feedback value of the current position, and a monitoring device that monitors the error based on an error signal output by the monitoring device. a comparator that compares the value with a preset reference to determine the magnitude of the error value; selection means that corrects the error when the output signal of the comparator is large; and resets the error when the output signal is small; It is equipped with the following.
この発明によれば、選択出力手段は、サーボONされた
時点で監視手段からの指令値が小さければそのままその
誤差信号を出力してロボットをサーボOFFされる直前
の位置に戻し大きければ誤差信号を出力せずにリセット
する。According to this invention, if the command value from the monitoring means is small when the servo is turned on, the selection output means directly outputs the error signal and returns the robot to the position immediately before the servo was turned off.If the command value is large, the selection output means outputs the error signal. Reset without output.
以下、第1図及び第2図に示す実施例に基づいて従来と
同−又は相当部分には同一符号を付してこの発明の特徴
を中心に説明する。第1図は、本実施例のロボットの制
御方式を示す第4図に相当する構成図である。同図中、
(23)はサーボアンプ(16)に対して積分器(14
)から誤差信号を出力するか、あるいは誤差信号を出力
せずにリセットしてアラームを発生させるかを判別する
ために予め設定された基準値、(24)はその基準値(
23)と積分器(14)からの出力値を比較する比較器
、(25)はアラームを発生させる信号である。Hereinafter, the features of the present invention will be mainly explained based on the embodiment shown in FIGS. 1 and 2, with the same or corresponding parts as those in the prior art being designated by the same reference numerals. FIG. 1 is a configuration diagram corresponding to FIG. 4 showing the control method of the robot of this embodiment. In the same figure,
(23) is the integrator (14) for the servo amplifier (16).
) is a reference value set in advance to determine whether to output an error signal or to reset without outputting an error signal and generate an alarm;
A comparator (25) is a signal for generating an alarm.
而して、本実施例においてはサーボOFFになってもリ
セット信号(21)を発生させず、常に積分器(14)
により単位時間当たりの速度指令が計算されていて、サ
ーボONになった時点で第2図に示すフローチャートの
処理が行なわれる。次に、サーボONされた直後の処理
を第1図及び第2図に基づいて説明する。先ず、積分器
(14)により計算されたサーボONされる直前の単位
時間当たりの誤差(速度指令)値と基準値(23)とを
比較器(24)において比較して速度指令値が基準値よ
り大か小かを判別しくステップ101)、速度指令値が
基準値(23)内において基準値より小さければ切離し
指令(22)をOFFにして切離し器(15)を接続す
ることによりロボットをサーボOFFする前の位置へ復
旧させる(ステップ102)。逆に、積分器(14)の
速度指令値が基準値(23)を超えておれば速度指令値
を出力せずにリセットしてアラームを発生させる(ステ
ップ103)。次いでアラームがリセットされているか
否かを判別しくステップ104)、リセットされておれ
ばリセット信号(21)を積分器(14)に対して出力
してリセットし積分器(14)の出力な0にする(ステ
ップ105)。その後切離し指令(22)をOFFにし
て切離し器(15)を接続させて(ステップ102)、
ロボット本体(10)の姿勢をサーボOFF直前の位置
に復旧しない。Therefore, in this embodiment, the reset signal (21) is not generated even when the servo is turned off, and the integrator (14) is always activated.
The speed command per unit time is calculated by , and when the servo is turned on, the process shown in the flowchart shown in FIG. 2 is performed. Next, the process immediately after the servo is turned on will be explained based on FIGS. 1 and 2. First, the comparator (24) compares the error (speed command) value per unit time immediately before the servo is turned on calculated by the integrator (14) with the reference value (23), and the speed command value is determined as the reference value. In step 101), if the speed command value is within the reference value (23) and smaller than the reference value, the disconnection command (22) is turned OFF and the disconnection device (15) is connected to servo the robot. It is restored to the position before it was turned off (step 102). Conversely, if the speed command value of the integrator (14) exceeds the reference value (23), the speed command value is reset without being output and an alarm is generated (step 103). Next, it is determined whether or not the alarm has been reset (step 104), and if it has been reset, a reset signal (21) is output to the integrator (14) to reset it, and the output of the integrator (14) becomes 0. (Step 105). Thereafter, the disconnection command (22) is turned OFF and the disconnector (15) is connected (step 102).
The posture of the robot body (10) is not restored to the position immediately before the servo was turned off.
以上この発明のロボットの制御装置によれば、サーボO
FF中のロボットの一定範囲内の比較的小さな移動は自
動的に復旧させるように構成したので、サーボOFF中
にロボットを制御範囲を超えて動かしても、サーボアン
プに移動命令または手動で元の位置へ戻す必要がない。As described above, according to the robot control device of the present invention, the servo O
The configuration is such that relatively small movements of the robot within a certain range during FF are automatically restored, so even if the robot moves beyond the control range while the servo is OFF, the servo amplifier cannot be commanded to move or the robot can be returned manually. No need to return to position.
第1図はこの発明の一実施例によるロボットの制御装置
の制御ブロック図、第2図はサーボON直後の処理を示
すフローチャート、第3図はロボットの制御装置の概略
を示す構成図、第4図は従来のロボットの制御装置の制
御ブロック図である。
(1)はcpu i、(2)はCPU i用ROM 、
(3)はcpu i用RAM 、 (4)はプログラ
ムメモリ、(5)はcp有ツメモリ(6)はCPII
2、(7)はCPU Z用ROM 、 (8) はC
PII Z用RAM 、 (9)はサーボI/F。
(10)はロボット本体、(11)は目的位置用バッフ
ァ、(12)は速度指令演算装置、(13)は速度指令
バッファ、(14)は積分器、(15)は出力切離し器
、(16)はサーボアンプ、(17)はサーボモータ、
(18)はエンコーダ、(19)はカウンタ、(20)
は微分器、(21)はリセット信号、(22)は切離し
指令、(23)は基準値、(24)は比較器、(25)
はアラーム出力信号である。
なお、各図中同一符号は同一または相当部分を示す。FIG. 1 is a control block diagram of a robot control device according to an embodiment of the present invention, FIG. 2 is a flowchart showing processing immediately after servo ON, FIG. 3 is a block diagram showing an outline of the robot control device, and FIG. The figure is a control block diagram of a conventional robot control device. (1) is CPU i, (2) is ROM for CPU i,
(3) is RAM for CPU i, (4) is program memory, (5) is CP memory (6) is CPII
2. (7) is ROM for CPU Z, (8) is C
RAM for PII Z, (9) is servo I/F. (10) is the robot body, (11) is the target position buffer, (12) is the speed command calculation device, (13) is the speed command buffer, (14) is the integrator, (15) is the output disconnector, (16) is the ) is the servo amplifier, (17) is the servo motor,
(18) is an encoder, (19) is a counter, (20)
is a differentiator, (21) is a reset signal, (22) is a disconnection command, (23) is a reference value, (24) is a comparator, (25)
is the alarm output signal. Note that the same reference numerals in each figure indicate the same or corresponding parts.
Claims (1)
制御装置において、位置指令値と現在位置のフィードバ
ック値との誤差を常時監視する監視手段と、該監視手段
が出力する誤差信号に基づき該誤差値を予め設定した基
準値と比較して該誤差値の大小を判別する比較器とを備
え、該比較器の出力信号が大のとき上記誤差を補正し、
小のとき上記誤差をリセットする選択手段とを備えたこ
とを特徴とするロボットの制御装置。In a robot control device equipped with means for detecting the current position of the robot, a monitoring means constantly monitors an error between a position command value and a feedback value of the current position, and the error value is determined based on an error signal output by the monitoring means. a comparator that compares the error value with a preset reference value to determine the magnitude of the error value, and corrects the error when the output signal of the comparator is large;
A control device for a robot, comprising: selection means for resetting the error when the error is small.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3690689A JPH02214908A (en) | 1989-02-16 | 1989-02-16 | Robot controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3690689A JPH02214908A (en) | 1989-02-16 | 1989-02-16 | Robot controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH02214908A true JPH02214908A (en) | 1990-08-27 |
Family
ID=12482818
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3690689A Pending JPH02214908A (en) | 1989-02-16 | 1989-02-16 | Robot controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH02214908A (en) |
-
1989
- 1989-02-16 JP JP3690689A patent/JPH02214908A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5119006A (en) | Method of detecting a collision of machine operating parts driven by servomotors | |
| JP3755054B2 (en) | Synchronous control device | |
| JP3537416B2 (en) | Servo control device | |
| WO1998042483A1 (en) | Robot controller | |
| US4580085A (en) | Feed control system with a safety device | |
| JPH0790461B2 (en) | Numerical controller for grinding machine | |
| JPH0991025A (en) | Method for controlling robot in shortest time considering operation duty | |
| JP3322826B2 (en) | Pressurization control method and apparatus by servo motor | |
| JP2673543B2 (en) | Excessive Error Detection Method in Servo Motor Control | |
| JPH02214908A (en) | Robot controller | |
| JPH08174458A (en) | Force control device for assembly robot | |
| US5910199A (en) | Method and apparatus for fast threading pullout in a numerically controlled threading application | |
| JP3244326B2 (en) | Numerical control unit | |
| JPH0739190A (en) | Brake abnormality detection method for automatic machinery | |
| JP3173031B2 (en) | Robot arm servo controller | |
| JP3298329B2 (en) | Servo control device and servo control method | |
| US10606238B2 (en) | Servo controller | |
| JPS59188704A (en) | Method for correcting operating data of nc apparatus | |
| JPH10105247A (en) | Overshoot preventing method for servomotor | |
| JPH0584681A (en) | Method for detecting collision of robot arm against foreign matter | |
| JP2656325B2 (en) | Input/Output Control Method | |
| JP3011026B2 (en) | Robot control device | |
| JP2838428B2 (en) | Robot control method | |
| JPS6380303A (en) | Speed control method for industrial robot | |
| JP2735597B2 (en) | Servo control device |