JPH06187026A - Locus controller - Google Patents

Locus controller

Info

Publication number
JPH06187026A
JPH06187026A JP35585692A JP35585692A JPH06187026A JP H06187026 A JPH06187026 A JP H06187026A JP 35585692 A JP35585692 A JP 35585692A JP 35585692 A JP35585692 A JP 35585692A JP H06187026 A JPH06187026 A JP H06187026A
Authority
JP
Japan
Prior art keywords
point
section
teaching point
teaching
locus
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
JP35585692A
Other languages
Japanese (ja)
Inventor
Takao Yoneda
孝夫 米田
Katsuhiro Komuro
克弘 小室
Yoshiji Yamamoto
吉二 山本
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.)
Toyoda Koki KK
Original Assignee
Toyoda Koki KK
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 Toyoda Koki KK filed Critical Toyoda Koki KK
Priority to JP35585692A priority Critical patent/JPH06187026A/en
Publication of JPH06187026A publication Critical patent/JPH06187026A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide a locus controller in which a locus can be controlled so that the same locus as the locus of an inputted circular-arc can be drawn at the connecting part of the circular-arcs. CONSTITUTION:A CPU calculates the directional components of the end point of a preceding section formed by the first teaching point and the second teaching point following the first teaching point, and the directional components of the start point of a succeeding section formed by the second teaching point and the third teaching point following the second teaching point (S6). Then, the difference of the tangent directions of the preceding section and the succeeding section at the second teaching point being the connecting part of the preceding section and the succeeding section is calculated from the calculated directional components of the preceding section and succeeding section (S7). Next, the calculated difference of the tangent directions is compared with a preliminarily set value, and whether or not an object to be carried can be carried on the second teaching point without reducing a speed is judged. Then, when the difference of the tangent directions of the preceding section and the succeeding section is small, and the validity of the carriage of the object to be carried on the second teaching point without reducing the speed is judged, a moving locus is controlled so that the object to be carried can be carried on the second teaching point at the speed equal to that in the preceding section (S8).

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ロボットのハンド部等
の物体の移動軌跡を制御するための軌跡制御装置に関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a trajectory control device for controlling the trajectory of an object such as a hand of a robot.

【0002】[0002]

【従来の技術】この種の軌跡制御技術として、第1回日
本ロボット学会技術講演会予稿集第165頁に記載のC
P( Continuous Pass )制御が知ら
れている。この技術では、図12(a)に例示するよう
に、まず、物体を移動させたい軌跡に沿った各点をP
i-1 、Pi 、Pi+1 ・・と定め、この各点との間の区間
のモードを指定する。図12(a)に示す例では、点P
i-1 と点Pi の区間及び点Pi と点Pi+1 との区間共に
直線モードが指定される。これを基に先ず、点Pi-1
ら点Pi に向かう方向(Pi-1 →Pi 方向と示す。他も
同様である)の図11(a)に示す速度パターンが決定
される。即ち、Pi-1 →Pi 方向に先ず加速度αO で増
速して、定速度VO に達したらその定速度VO で移動さ
せ、そして、−αO という加速度(減速度としてはαO
となる)で減速させて速度ゼロまで減速されたとき(こ
の速度ゼロの点をタイミングt’とする)にちょうど点
i に達するような点AO (タイミングt)を求め、こ
の点AO (タイミングt)から減速を開始させる速度パ
ターンを作成する。ここで、定速度VO はロボット等、
軌跡を制御したい物体の予め定められた最高速度であ
り、加速度αO は該被制御物体の最高加速度である。
2. Description of the Related Art As a trajectory control technique of this type, the C described in the first technical meeting of the Robotics Society of Japan, Proc.
P (Continuous Pass) control is known. In this technique, as illustrated in FIG. 12A, first, each point along the trajectory along which the object is to be moved is set to P
i-1 , P i , P i + 1 ... And the mode of the section between these points is designated. In the example shown in FIG. 12A, the point P
The straight line mode is designated for both the section between i-1 and the point P i and the section between the point P i and the point P i + 1 . Based on this, first, the velocity pattern shown in FIG. 11A in the direction from the point P i-1 to the point P i (indicated as P i-1 → P i direction; the same applies to others) is determined. . That is, the acceleration is first accelerated by the acceleration α O in the P i−1 → P i direction, and when the constant velocity V O is reached, the vehicle is moved at the constant velocity V O , and the acceleration of −α O (the deceleration is α O
When decelerating and is decelerated to zero speed at become) (determined this point a timing t 'of zero speed) just point P i reaches such a point A O (timing t), this point A O A speed pattern for starting deceleration from (timing t) is created. Here, the constant velocity V O is
It is a predetermined maximum velocity of the object whose trajectory is to be controlled, and the acceleration α O is the maximum acceleration of the controlled object.

【0003】このタイミングtが決定されると、今度は
i →Pi+1 方向の速度成分Vi+1に関し、図11
(b)に示すようなタイミングtから加速度αO で増速
し、速度VO に達した時以後定常速度とする速度パター
ンを算出する。これら2つの速度パターンが決定される
と、それぞれの速度成分をベクトル加算することによ
り、実際の移動方向と速度成分が算出される。なお、ベ
クトル加算された速度は最高速度VO 以上となることは
ない。図11(a)、(b)から明らかなように、P
i-1 →Pi 方向の速度成分Vi が減少すると同時に点P
i から点Pi+1 に向かう速度成分Vi+1 が増大し、タイ
ミングtとt’において、いずれか一方の速度成分は最
高速度VO となり、他方の速度成分はゼロとなる。
When the timing t is determined, the velocity component V i + 1 in the P i → P i + 1 direction will now be described with reference to FIG.
From the timing t as shown in (b), the speed is increased by the acceleration α O , and a speed pattern is calculated that is a steady speed after reaching the speed V O. When these two speed patterns are determined, vector addition of the respective speed components is performed to calculate the actual moving direction and the speed component. Note that the vector-added speed never exceeds the maximum speed V O. As is clear from FIGS. 11A and 11B, P
At the same time as the velocity component V i in the direction of i-1 → P i decreases, the point P
The velocity component V i + 1 from i to the point P i + 1 increases, and at timings t and t ′, one of the velocity components becomes the maximum velocity V O and the other velocity component becomes zero.

【0004】このため、ベクトル加算された方向と速度
とに従って物体を移動させると、タイミングt以前には
i-1 →Pi 方向に速度VO で定速度で移動する。タイ
ミングtからt’の間は、Pi-1 →Pi 方向の速度成分
i が小さくなりつつPi →Pi+1 方向の速度成分が大
きくなる。ここで、タイミングt’でPi-1 →Pi の速
度成分がゼロになるため、タイミングt’で物体は点P
i と点Pi+1 とを結ぶ直線上にいることになる。このよ
うにして、物体の移動方向と速度とが決定されると、物
体は図12(a)の軌跡に示すように、点Pi-1 →点P
i →点Pi+1 ・・を結ぶ直線に沿い、そして、点Pi-1
と点Pi との区間と点Pi と点Pi+1 との区間の連結部
となる点Pi に関してはこれを滑らかに内回りしながら
曲線MO 上を移動することになる。
Therefore, when the object is moved in accordance with the vector-added direction and speed, the object moves at a constant speed V o in the direction P i-1 → P i before the timing t. From timing t to t ′, the velocity component V i in the P i−1 → P i direction decreases and the velocity component in the P i → P i + 1 direction increases. Here, since the velocity component of P i-1 → P i becomes zero at the timing t ′, the object moves to the point P at the timing t ′.
That is, it is on a straight line connecting i and the point P i + 1 . When the moving direction and the velocity of the object are determined in this way, the object moves from the point P i-1 to the point P as shown in the locus of FIG.
i → along a straight line connecting points P i + 1 ··· and points P i-1
With respect to the point P i, which is a connecting portion between the section between the point P i and the point P i and the section between the point P i and the point P i + 1 , the point P i moves on the curve M O while smoothly inward.

【0005】[0005]

【発明が解決しようとする課題】上述したように直線の
区間と直線の区間とをつなぐ部分にCP制御を用いると
つなぎ部分に滑らかな軌跡を描き得る。しかしながら従
来、円弧と円弧、直線と円弧、或いは、円弧と直線とを
つなぐ場合には、上記CP制御を行うと所望の軌跡を描
き得ないという問題点があった。例えば、図12(b)
に示すように物体を移動させたい軌跡が点をPi-1 、P
i 、Pi+1 であり、この点Pi-1 と点Pi との区間、及
び、点Pi と点Pi+1 との区間が共に円弧であったとす
る。かかる軌跡を上記のCP制御を行うと、点AO
ら、点Pi-1 と点Pi 方向の円弧方向の速度成分が減少
されると共に、点Pi と点Pi+1 方向の円弧方向の速度
成分の加算が開始される。このため点Pi を通過する軌
跡を描かせたい場合であっても、軌跡は曲線MO を通過
して、点Piを通過できないばかりか円弧の軌跡が歪な
形状になっていた。
As described above, when CP control is used for the portion connecting the straight line section and the straight line section, a smooth locus can be drawn at the connecting section. However, conventionally, when connecting arcs to arcs, straight lines to arcs, or arcs to straight lines, there is a problem that a desired trajectory cannot be drawn if the CP control is performed. For example, FIG.
As shown in, the locus where the object is to be moved has points P i−1 , P
i and P i + 1 , and the section between the point P i-1 and the point P i and the section between the point P i and the point P i + 1 are both arcs. When the above CP control is performed on such a locus, the velocity component in the arc direction of the points P i-1 and P i is reduced from the point A O , and the arc in the directions of the points P i and P i + 1 is reduced. The addition of velocity components in the directions is started. Therefore, even when it is desired to draw a locus passing through the point P i , the locus passes through the curve M O and cannot pass through the point P i, and the locus of the arc is distorted.

【0006】本発明は、上記課題を解決するために成さ
れたもので、その目的とするところは、円弧とのつなぎ
部分において入力された円弧の軌跡と同じ軌跡を描くよ
う制御し得る軌跡制御装置を提供することにある。
The present invention has been made in order to solve the above-mentioned problems, and its object is to perform trajectory control capable of controlling so as to draw the same trajectory as the trajectory of an arc input at a connecting portion with the arc. To provide a device.

【0007】[0007]

【課題を解決するための手段】上記課題を解決するため
の発明の構成は、入力された複数の教示点に基づき被搬
送物体の移動軌跡を作成する軌跡制御装置であって、第
1の教示点と該第1教示点に続く第2の教示点とにより
形成される前区間の該第2教示点側の方向成分と、前記
第2教示点と該第2教示点に続く第3の教示点とにより
形成される後区間の該第2教示点側の方向成分とを算出
する方向成分算出手段と、該第2教示点における該前区
間と該後区間との接線方向の差を、前記方向成分算出手
段により算出された前区間の方向成分と後区間の方向成
分とから算出する接線方向差算出手段と、前記接線方向
差算出手段の算出した接線方向の差を予め設定された値
と比較する比較手段と、前記比較手段により比較された
該接線方向の差が予め設定された値以下の場合に、該第
2教示点上を該前区間と等しい速度で被搬送物体を送る
よう移動軌跡を制御する移動軌跡制御手段とを備えたこ
とを特徴とする。
The structure of the invention for solving the above-mentioned problems is a locus control device for creating a locus of movement of an object to be conveyed based on a plurality of input teaching points. Direction component on the side of the second teaching point in the previous section formed by a point and a second teaching point following the first teaching point, and a third teaching following the second teaching point and the second teaching point. A directional component calculating means for calculating a directional component on the second teaching point side of a rear section formed by a point and a difference in tangential direction between the front section and the rear section at the second teaching point, A tangential direction difference calculation means for calculating from the direction component of the front section and the direction component of the rear section calculated by the direction component calculation means, and a tangential direction difference calculated by the tangential direction difference calculation means with a preset value. Comparing means for comparing and the difference in the tangential direction compared by the comparing means When: Because the value set, characterized by comprising a movement locus control means for controlling the movement trajectory to send the transported object on the second teaching point equal to said front section speed.

【0008】[0008]

【作用】上記の手段によれば、方向成分算出手段が、第
1の教示点と第1教示点に続く第2の教示点とにより形
成される前区間の第2教示点側(前区間の終点側)の方
向成分と、第2教示点と第2教示点に続く第3の教示点
とにより形成される後区間の第2教示点側(後区間の始
点側)の方向成分とを算出する。この算出された前区間
の方向成分及び後区間の方向成分から、接線差算出手段
が、該前区間と後区間との連結部となる該第2教示点に
おける前区間と後区間との接線方向の差を算出する。次
に、比較手段により該算出された接線方向の差を予め設
定された値と比較し、第2教示点上を被搬送物体を減速
せずに送れるか否かを判断する。そして、該比較手段に
より前区間と後区間での接線方向の差が小さく減速せず
に第2教示点上を被搬送物体を送れると判断された場合
には、移動軌跡制御手段が第2教示点上を前区間と等し
い速度で被搬送物体を送るよう移動軌跡を制御する。
According to the above-mentioned means, the directional component calculating means has the second teaching point side of the previous section formed by the first teaching point and the second teaching point following the first teaching point (on the second teaching point side). The direction component of the end point side) and the direction component of the second teaching point side of the rear section (start point side of the rear section) formed by the second teaching point and the third teaching point following the second teaching point are calculated. To do. From the calculated direction component of the front section and the direction component of the rear section, the tangential difference calculation means causes the tangential direction of the front section and the rear section at the second teaching point, which is a connecting portion between the front section and the rear section. Calculate the difference between. Then, the comparison means compares the calculated difference in the tangential direction with a preset value to determine whether or not the conveyed object can be sent on the second teaching point without decelerating. When it is determined by the comparison means that the difference in the tangential direction between the front section and the rear section is small and the conveyed object can be sent on the second teaching point without deceleration, the movement locus control means performs the second teaching. The movement locus is controlled so as to send the transported object on the point at the same speed as the preceding section.

【0009】[0009]

【実施例】以下に、本発明の軌跡制御装置の一実施例に
ついて図を参照して説明する。先ず、本実施例の軌跡制
御装置により制御される6関節を有するロボット10に
ついて、図1を参照して説明する。ロボット10は、ベ
ース13に固定された脚柱12に旋回自在に取り付けら
れたコラム14と、第1アーム15と、第2アーム16
と、第3アーム17と、塗布剤をシーリングするシーラ
ーのノズル19とから構成されている。そして、第1関
節a、第2関節b、第3関節c、第4関節d、第5関節
e、第6関節fにより、6自由度で自在にノズル19を
送るようにされている。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the trajectory control device of the present invention will be described below with reference to the drawings. First, a robot 10 having six joints controlled by the trajectory control device of this embodiment will be described with reference to FIG. The robot 10 includes a column 14 rotatably attached to a pedestal 12 fixed to a base 13, a first arm 15, and a second arm 16.
And a third arm 17 and a sealer nozzle 19 for sealing the coating agent. The first joint a, the second joint b, the third joint c, the fourth joint d, the fifth joint e, and the sixth joint f are configured to freely send the nozzle 19 with 6 degrees of freedom.

【0010】次に、本実施例の軌跡制御装置50の構成
を図2を参照して説明する。図1に示したロボット10
の位置制御のための演算を行うCPU11には、CP
( Continuous Pass )制御を行うた
めの制御情報と本実施例の等速通過制御を行うための制
御情報とを記憶したROM20及びRAM30と、制御
指令を入力するオペレーティングボックス27及び操作
盤26と、該CPU11の作成した制御情報等を保持す
る外部記憶装置29と、サーボ制御部40とが接続され
ている。このサーボ制御部40は、ロボット10の第1
関節aを駆動するサーボモータM1乃至第6関節fを駆
動するサーボモータM6までが接続され、そして、各々
のサーボモータM1乃至M6に取り付けられたエンコー
ダE1乃至E6からのフィードバック信号が帰還される
ように構成されている。この軌跡制御装置50は、入力
された教示点を基にCPU11が移動軌跡を演算してサ
ーボ制御部40に出力を送り、該サーボ制御部40はサ
ーボモータM1乃至M6を制御してロボット10を駆動
し、シーリングを行うノズル19に所望の移動軌跡を描
かせるよう構成されている。
Next, the configuration of the trajectory control device 50 of this embodiment will be described with reference to FIG. The robot 10 shown in FIG.
The CPU 11 that performs the calculation for the position control of the
(Continuous Pass) Control information for controlling and ROM 20 and RAM 30 storing control information for performing constant velocity passage control of the present embodiment, operating box 27 and operation panel 26 for inputting control commands, and An external storage device 29 that holds control information created by the CPU 11 and the servo control unit 40 are connected. The servo control unit 40 is the first of the robot 10.
The servo motor M1 for driving the joint a to the servo motor M6 for driving the sixth joint f are connected, and the feedback signals from the encoders E1 to E6 attached to the servo motors M1 to M6 are fed back. Is configured. In the locus control device 50, the CPU 11 calculates a locus of movement based on the input teaching point and sends an output to the servo control unit 40, and the servo control unit 40 controls the servo motors M1 to M6 to control the robot 10. The nozzle 19 that is driven and performs sealing is configured to draw a desired movement trajectory.

【0011】ここで先ず、本実施例の軌跡制御装置50
の等速通過制御の概要について説明する。本実施例の軌
跡制御装置50は、図3(a)に示すように教示点P
i-1 と教示点Pi との区間iが円弧で、次の教示点Pi
と教示点Pi+1 との区間i+1が円弧の場合に、区間i
と区間i+1の連結部となる教示点Pi において、この
連結部における区間iの円弧の終点と区間i+1の円弧
の始点との接線成分の角度が設定された角度よりも小さ
い場合には、前の区間iとこれに続く後の区間i+1と
の間で方向成分を合成するCP制御を行わない。CP制
御を行わない場合従来は、点Pi-1 から点Pi に向かう
際に、合成開始点AO から減速を行い点Pi で速度成分
をゼロにし、そして点Pi から再び点Pi+1 に向けて加
速を開始していた。これに対して本実施例の等速通過制
御では、点Pi-1 から点Pi に向かう際に、減速を行う
ことなく点Pi を等速で通過させて次の点Pi+1 に向か
う制御を行う。本実施例の軌跡制御装置50は、かかる
等速通過制御を、図3(a)の円弧と円弧の場合のみな
らず、更に、図3(b)に示すように区間iが円弧で次
の区間i+1が直線の場合、また、図3(c)に示すよ
うに区間iが直線で次の区間i+1が円弧の場合にも行
う。この等速通過制御については更に詳細に後述する。
First, the trajectory control device 50 of this embodiment.
The outline of the constant velocity passage control of will be described. As shown in FIG. 3A, the locus control device 50 of the present embodiment has a teaching point P.
The section i between i-1 and the teaching point P i is an arc, and the next teaching point P i
If the section i + 1 between the point and the teaching point P i + 1 is an arc, section i
And the teaching point P i to the connection portion of the interval i + 1, is smaller than the angle the angle of the tangential component is set between the arc of the arc of the start point of the end point and the section i + 1 interval i in the connection portion, front The CP control for synthesizing the directional component is not performed between the section i of and the subsequent section i + 1. Conventional case without CP control point P from i-1 when towards the point P i, the velocity components to zero at point P i performs deceleration from synthetic starting point A O, and again the point P from the point P i It was accelerating towards i + 1 . At a constant speed passage control of this embodiment, however, the points P i-1 when going to the point P i from is passed through the point P i at a constant speed without deceleration of the following: P i + 1 Control towards. The trajectory control device 50 of the present embodiment performs the constant velocity passage control not only in the case of the circular arcs of FIG. 3A, but also in the section i as shown in FIG. This is also performed when the section i + 1 is a straight line, or when the section i is a straight line and the next section i + 1 is a circular arc as shown in FIG. This constant velocity passage control will be described in more detail later.

【0012】次に、本発明の実施例に係る軌跡制御装置
50への教示点等の入力、及び、これに従う動作の概略
について、図5に示すフローチャートを参照して説明す
る。ここでは、オペレータが図4に示すシーリング箇所
(ここではシーリング箇所が、点Pi-1 と点Pi とを結
ぶ円弧と、点Pi から点Pi+1 への直線と、点Pi+1
ら点Pi+2 への直線を通るものとする)に沿ってシーラ
ーのノズル19を送らせるものとする。
Next, the outline of the input of teaching points and the like to the trajectory control device 50 according to the embodiment of the present invention and the operation according to the input will be described with reference to the flowchart shown in FIG. Here, the operator shows the sealing portion shown in FIG. 4 (here, the sealing portion is an arc connecting the points P i-1 and P i , a straight line from the point P i to the point P i + 1 , and the point P i. The nozzle 19 of the sealer shall be sent along a straight line from +1 to the point P i + 2 ).

【0013】先ず、オペレータは、操作盤26から複数
の教示点(点Pi-1 、点Pi 、点Pi+1 、点Pi+2
・)を入力することによりシーリング箇所に沿った移動
軌跡を指示すると共に、それぞれの教示点間のモードを
指定する。ここでは、点Pi-1及び点Pi 間の区間iに
円弧モードが、点Pi 及び点Pi+1 間の区間i+1に直
線モードが、そして、点Pi+1 及び点Pi+2 間の区間i
+2に直線モードが指定される。更に、オペレータは各
々の区間における指定速度を設定する。ここでは、全て
の区間に等しい速度が指定されたこととする(ステップ
1)。これに応じて、軌跡制御装置50のCPU11
は、これら入力された情報についてのデコード処理を行
い(ステップ2)、これをRAM30に格納する。そし
て、動作指令の入力が無い限り(判断ステップ3がN
o)非動作命令処理を行い(ステップ4)、動作指令の
入力に待機する。
First, the operator operates a plurality of teaching points (point P i-1 , point P i , point P i + 1 , point P i + 2.
By inputting (), the movement locus along the sealing position is instructed and the mode between each teaching point is specified. Here, the arc mode is in the section i between the points P i-1 and P i , the linear mode is in the section i + 1 between the points P i and P i + 1 , and the points P i + 1 and P i are Section i between +2
The linear mode is specified to +2. Further, the operator sets a designated speed in each section. Here, it is assumed that the speeds equal to all the sections are designated (step 1). In response to this, the CPU 11 of the trajectory control device 50
Performs a decoding process on the input information (step 2) and stores it in the RAM 30. Unless an operation command is input (determination step 3 is N
o) Perform non-operation command processing (step 4), and wait for input of operation command.

【0014】軌跡制御装置50に動作開始が命じられる
と(判断ステップ3がYes)、まず、CPU11が、
RAM30中のデコード処理された入力情報を呼び出し
てこれを解釈し、そして、補間に必要なデータを作成す
る(ステップ5)。ここでは、教示点間の移動必要量
(移動距離)Li等を算出し、後述するバッフアを作成
する。
When the locus control device 50 is instructed to start the operation (Yes in judgment step 3), first, the CPU 11
The decoded input information in the RAM 30 is called and interpreted, and the data required for interpolation is created (step 5). Here, the required movement amount (moving distance) Li or the like between the teaching points is calculated, and a buffer to be described later is created.

【0015】次に、ステップ6及び7で、図3を参照し
て前述した本実施例の等速通過制御を行うか否かの判断
を行うためのデータが算出される。即ち、図3(a)、
(b)、(c)に示すように、区間と次の区間が、円弧
と円弧、円弧と直線、直線と円弧の場合で、前の区間と
それに続く後の区間とのつなぎ位置となる点(ここでは
点Pi 、点Pi+1 、点Pi+2 、・・)において、方向成
分が急激に変わることがない場合には等速通過制御を行
う。そして、前の区間と後の区間とで方向成分が大きく
変わるときは、前の区間の速度のまま後の区間へ送るこ
とができないため等速通過制御でなく従来のCP制御を
行う。即ち、等速通過制御を行うか、CP制御を行うか
を判断するためのデータを算出する。
Next, in steps 6 and 7, data for determining whether or not the constant velocity passing control of the present embodiment described above with reference to FIG. 3 is performed is calculated. That is, in FIG.
As shown in (b) and (c), when the section and the next section are circular arcs, circular arcs, circular arcs and straight lines, and straight lines and circular arcs, the point is a connecting position between the previous section and the subsequent section. At points (P i , P i + 1 , P i + 2 , ...) In this case, if the direction component does not change abruptly, constant velocity passage control is performed. Then, when the direction component greatly changes between the previous section and the subsequent section, the conventional CP control is performed instead of the constant velocity passage control because the speed of the previous section cannot be sent to the subsequent section. That is, data for determining whether to perform constant velocity passing control or CP control is calculated.

【0016】先ず、ステップ6で、各区間の始点及び終
点の接線方向成分を求める。これは、前述した図4の点
i-1 と点Pi の区間iの始点及び終点、次の点Pi
点Pi+1 の区間i+1の始点及び終点・・・と、いうよ
うに各区間毎に求めていく。そして、次のステップ7で
は、ステップ6で求められた接線方向成分を基に、各つ
なぎ点、即ち、各教示点(点Pi 、点Pi+1 、・・)に
おける前の区間の終点と、それに続く後の区間の始点と
の接線方向の差θを求める。そして、その接線方向の差
が等速通過を行い得るかの判断のために設定された角度
(例えば3°又は4°)と比較する。そして、ステップ
8で、上記ステップ1乃至7において算出されたデータ
を基に、軌跡制御タスクを起動してロボット10にシー
ラーを送らせる。これらステップ6、7、8の処理につ
いて以下更に詳細に説明する。
First, in step 6, the tangential components of the start point and end point of each section are obtained. This is referred to as the start point and end point of the section i between the point P i-1 and the point P i in FIG. 4 described above, the start point and end point of the section i + 1 between the next point P i and the point P i + 1 , and so on. To obtain each section. Then, in the next step 7, based on the tangential direction component obtained in step 6, each connecting point, that is, the end point of the previous section at each teaching point (point P i , point P i + 1 , ...). And the tangential difference θ from the start point of the subsequent section. Then, it is compared with an angle (for example, 3 ° or 4 °) set to determine whether or not the difference in the tangential direction allows constant velocity passage. Then, in step 8, based on the data calculated in steps 1 to 7, the trajectory control task is activated to cause the robot 10 to send the sealer. The processing of these steps 6, 7 and 8 will be described in more detail below.

【0017】図6は、ステップ6における処理を説明す
るフローチャートである。まず、判断ステップ61で、
区間毎に指定されたモードが直線か否かが判断される。
ここで図4に示す点Pi-1 と点Pi との区間iは、円弧
であるので判断ステップ61がNoとなり、次の判断ス
テップ62へ進み、モードが円弧であるか否かが判断さ
れる。この場合には判断ステップ62がYesとなり次
のステップ63で該区間(円弧)iの始点の方向成分が
次の数1により算出される。
FIG. 6 is a flow chart for explaining the processing in step 6. First, in decision step 61,
Whether or not the mode designated for each section is a straight line is determined.
Here, since the section i between the point P i-1 and the point P i shown in FIG. 4 is a circular arc, the judgment step 61 is No, and the routine proceeds to the next judgment step 62, and it is judged whether or not the mode is a circular arc. To be done. In this case, the judgment step 62 becomes Yes, and in the next step 63, the direction component of the starting point of the section (arc) i is calculated by the following equation 1.

【数1】 この数1で、始点Pi-1 と終点Pi との中心をOとし、
点Pi-1 と点Pi との角度をθcとし、中心Oから円弧
i-1 、Pi への変換行列をAとする。Aは3行3列の
マトリクスである。この算出された点Pi-1 と点Pi
の区間iの始点の方向成分の値ρが、図9(a)に示す
区間iについてのiバッフアの始点iρ92に収められ
る。そして次に、ステップ64で該区間iの終点の方向
成分が次の数2により算出される。
[Equation 1] In this equation 1, the center of the start point P i-1 and the end point P i is O,
The angle between the point P i-1 and the point P i is θc, and the transformation matrix from the center O to the arcs P i-1 and P i is A. A is a matrix with 3 rows and 3 columns. The calculated direction component value ρ of the starting point of the section i between the point P i-1 and the point P i is stored in the starting point iρ92 of the i buffer for the section i shown in FIG. 9A. Then, in step 64, the direction component of the end point of the section i is calculated by the following equation 2.

【数2】 [Equation 2]

【0018】この算出された点Pi-1 と点Pi との区間
iの終点の方向成分ρ’が、図9(a)に示す区間のi
バッフアの終点iρ’93に収められる。なおここで、
iバッフアの目標値91には、図5で前述したステップ
5において補間に必要なデータとして、動作モードが円
弧であること、動作指定速度等が収容されている。
The direction component ρ'of the end point of the section i between the calculated points P i-1 and P i is i in the section shown in FIG. 9A.
It is stored at the end point iρ'93 of Buffer. Here,
The target value 91 of the i buffer stores, as data necessary for interpolation in step 5 described above with reference to FIG. 5, that the operation mode is the arc, the specified operation speed, and the like.

【0019】そして、次に点Pi と点Pi+1 との区間i
+1 (直線)についての処理が行われる。まず判断ステ
ップ61が、ここでは区間のモードが直線であるために
Yesとなり、ステップ65で点Pi と点Pi+1 とを結
ぶ直線のX、Y、Z方向成分ρを次の数3により算出す
る。
Then, the section i between the points P i and P i + 1
The processing for +1 (straight line) is performed. First, the judgment step 61 becomes Yes because the mode of the section is a straight line here, and in step 65, the X, Y and Z direction components ρ of the straight line connecting the point P i and the point P i + 1 are given by the following formula 3 Calculate by

【数3】 ここで、点Pi の座標を(x1 ,y1 ,z1 )とし、点
i+1 の座標を(x2,y2 ,z2 )としてある。な
お、直線モードの場合には始点も終点の方向成分は同一
であるため、算出されたρの値が、図9(b)に示すこ
の区間のi+1バッフアの始点i+1ρ95及び終点の
i+1ρ’96に収容される。なお、区間に指定された
モードが直線、円弧以外の例えばパルスモード等の場合
には、その区間については判断ステップ61及び判断ス
テップ62がともにNoとなり、なんら方向成分を求め
ることなく次の処理へと進む。
[Equation 3] Here, the coordinates of the point P i are (x 1 , y 1 , z 1 ) and the coordinates of the point P i + 1 are (x 2 , y 2 , z 2 ). In the case of the straight line mode, since the direction components of the start point and the end point are the same, the calculated value of ρ is the start point i + 1ρ95 of the i + 1 buffer and the end point i + 1ρ′96 of this section shown in FIG. 9B. Be accommodated. If the mode specified for the section is other than the straight line or the arc, for example, the pulse mode, the decision step 61 and the decision step 62 are both No for that section, and the process proceeds to the next process without obtaining any direction component. And proceed.

【0020】次に、接線方向の差を求める前述したステ
ップ7における処理について、この処理を詳細に示す図
7のフローチャートを参照して説明する。ここでは、ス
テップ71において、前の区間の終点とそれに続く後の
区間の始点とのつなぎ部分(ここでは点Pi )における
接線方向の差が、図9(a)に示すiバッフアの終点i
ρ’93と図9(b)に示すi+1バッフアの始点i+
1ρ95とに基づき次の数4より求められる。
Next, the processing in step 7 described above for obtaining the difference in the tangential direction will be described with reference to the flowchart of FIG. 7 showing this processing in detail. Here, in step 71, the difference in the tangential direction at the connecting portion (here, point P i ) between the end point of the previous section and the start point of the subsequent section is the end point i of the i buffer shown in FIG. 9A.
ρ'93 and the starting point i + of the i + 1 buffer shown in FIG.
Based on 1ρ95, the following equation 4 is obtained.

【数4】 θ= cos-1 〔 (iρ’・i+1ρ)/{|iρ’|*|i+1ρ|}〕 ・・・数4 ここで(iρ’・i+1ρ)は、iρ’とi+1ρとの
内積を表す。
[Equation 4] θ = cos −1 [(iρ ′ · i + 1ρ) / {| iρ ′ | * | i + 1ρ |}] (4) where (iρ ′ · i + 1ρ) is the inner product of iρ ′ and i + 1ρ Represents

【0021】そして次に、判断ステップ72において、
ステップ71で算出された接線方向の差の角度θが予め
設定されたθs以下か否かが判断される。即ち、接線方
向の差の角度θが小さい場合には等速通過制御が可能で
あるとして(判断ステップ72がYes)、ステップ7
3の処理に進み、図9(c)に示すようにi+1バッフ
アに等速通過OKのフラグ97を立てる。反対に接線方
向の差の角度θが大きい場合には等速通過制御は不可能
であるとして(判断ステップ72がNo)、ステップ7
4の処理へ進み等速通過OKのフラグは立てない。以上
説明したステップ6及び7の処理に基づき軌跡制御装置
50は、各区間のつなぎ部分で、等速通過制御を行うか
否かを決定する。
Then, in decision step 72,
It is determined whether or not the tangential difference angle θ calculated in step 71 is equal to or smaller than a preset θs. That is, if the angle θ of the difference in the tangential direction is small, it is determined that the constant velocity passage control is possible (Yes in the determination step 72), and step 7
As shown in FIG. 9C, the process proceeds to the process of No. 3, and the flag 97 of the constant velocity passage OK is set in the i + 1 buffer. On the contrary, if the angle θ of the difference in the tangential direction is large, it is determined that the constant velocity passage control is impossible (No in the determination step 72), and the step 7
The process proceeds to the process of No. 4 and the flag for passing the uniform velocity is not set. Based on the processing of steps 6 and 7 described above, the trajectory control device 50 determines whether or not constant speed passage control is to be performed at the connecting portion of each section.

【0022】次に、前述したステップ8におけるロボッ
ト10を動作させる処理を図8のフローチャートを参照
して更に詳細に説明する。先ず、CPU11が、RAM
30に保持されたプログラムを基に軌跡制御タスクを起
動する(ステップ801)。次に、補間パターン変数を
計算する(ステップ802)。ここでは、移動量Lt、
残り移動量Lr、合成開始移動量LO 等が計算される。
この移動量Ltとは、例えば図4に示す点Pi-1 を出発
してノズル19が点A’上に位置しているとき、点P
i-1 が点A’までノズル19の移動した距離を意味し、
残り移動量Lrとは点A’から次の点Pi までノズル1
9を移動させなければならない距離を意味する(なお、
この残り移動量LrをCPU11は、教示点Pi-1 から
次の教示点Pi までの移動距離Li{図9(a)に示さ
れているiバッフアの目標値91中に格納されている}
から該移動量Ltを減算することにより求める)。そし
て、合成開始移動量LO とはCP制御を行う際の速度成
分の合成を開始する点AO から点Pi までの距離を指
す。なお、この合成開始点AO は、指定速度VO での送
りを、加速度−αO で減速して点Pi において点Pi-1
から点Pi に向かう速度成分をゼロにするために減速を
開始する点を意味している。
Next, the process of operating the robot 10 in step 8 described above will be described in more detail with reference to the flowchart of FIG. First, the CPU 11 is a RAM
A trajectory control task is started based on the program stored in 30 (step 801). Next, the interpolation pattern variable is calculated (step 802). Here, the movement amount Lt,
The remaining movement amount Lr, the synthesis start movement amount L O, etc. are calculated.
This movement amount Lt means, for example, when the nozzle 19 is located on the point A ′ starting from the point P i−1 shown in FIG.
i-1 means the distance traveled by the nozzle 19 to the point A ′,
The remaining movement amount Lr means the nozzle 1 from the point A ′ to the next point P i.
Means the distance 9 must be moved (note that
The CPU 11 stores this remaining movement amount Lr in the movement distance Li from the teaching point P i-1 to the next teaching point P i (i-buffer target value 91 shown in FIG. 9A). }
It is obtained by subtracting the moving amount Lt from). Then, the combined start movement amount L O refers to the distance from the point A O at which the composition of the speed component is started when CP control is performed to the point P i . Incidentally, the synthetic starting point A O is the feed at a designated speed V O, the point at point P i is decelerated by the acceleration-.alpha. O P i-1
It means the point where deceleration is started in order to zero the velocity component from the point P i to the point P i .

【0023】そして次に、計算された残り移動量Lrと
合成開始移動量LO との比較を行うことにより等速での
送りを行う区間を越えたか否かを(図4の合成開始点A
O に達したか)判断する(判断ステップ803)。即
ち、この判断ステップ803は、例えば点Pi-1 から点
i までの送りの際に点Pi-1 から合成開始点AO
で、ステップ804以降の速度成分の単独処理を行わ
せ、そして、合成開始点AOからはステップ806以降
の速度成分の合成制御(CP制御)又は等速通過制御を
行わせる。運転開始時には合成開始点AO に達していな
いので、残り移動量Lrが合成開始移動量LO より大き
く、判断ステップ803がNoとなりステップ804以
降の単独処理に進む。
Then, by comparing the calculated remaining movement amount Lr with the synthesis start movement amount L O, it is determined whether or not the section for feeding at a constant speed is exceeded (the synthesis start point A in FIG. 4).
It is determined whether or not it has reached O (decision step 803). That is, in this determination step 803, for example, at the time of feeding from the point P i-1 to the point P i, from the point P i-1 to the synthesis start point A O , the speed component is independently processed after step 804, Then, from the synthesis start point A O, the velocity component synthesis control (CP control) or constant velocity passage control after step 806 is performed. Since the combination start point A O has not been reached at the start of operation, the remaining movement amount Lr is larger than the combination start movement amount L O , and the determination step 803 becomes No, and the processing proceeds to step 804 and subsequent independent processing.

【0024】このステップ804の単独処理について、
本実施例の点Pi-1 から点Pi の速度成分Vi の変化の
パターンを示す図10を参照して述べる。先ず、ステッ
プ804では、点Pi-1 から点Pi に向かう速度成分V
i についての単独処理を行うため、単独補間周期毎にノ
ズル19を送る目標値を計算し、そして、この目標値を
基にサーボ制御部40に出力を発しロボット10を制御
する(ステップ805)。これよりロボット10は、ノ
ズル19を点Pi-1 から点Pi へ向かう円弧上に加速度
αO で加速し、指定された定速度VO に達すると該定速
度VO での送りを続ける。
Regarding the independent processing of step 804,
This will be described with reference to FIG. 10 showing a pattern of changes in the velocity component V i from the point P i-1 to the point P i in this embodiment. First, in step 804, the velocity component V from the point P i -1 toward the point P i
In order to perform the independent processing for i , the target value to be sent to the nozzle 19 is calculated for each independent interpolation cycle, and an output is issued to the servo control unit 40 based on this target value to control the robot 10 (step 805). From this robot 10, accelerated by the acceleration alpha O on an arc toward the nozzle 19 from the point P i-1 to the point P i, continue to feed at the constant velocity V O the specified reach a constant speed V O .

【0025】そして、ノズル19が合成開始点AO に到
達し、残り移動量Lrが合成開始移動量LO に等しくな
ると判断ステップ803がYesとなりステップ806
以降の合成制御(CP制御)又は等速通過制御が開始さ
れる。ここで先ず、判断ステップ806、807、80
8、809、810により、等速通過制御を行うか否か
が決定される。本実施例の軌跡制御装置50において
は、以下の5つの条件を全て満たす場合においてのみ等
速通過制御を遂行する。この5つの条件とは: 1.オペレータにより等速通過指令が入力されているこ
と。 2.等速通過を行う連結部が、図3(a)に示すように
円弧と円弧、図3(b)に示すように円弧と直線、或い
は、図3(c)に示すように直線と円弧とのつなぎ部分
であること。 3.前の区間とこれに続く後の区間との連結部の接線方
向の差が所定の角度以下であること。即ち、前区間と後
区間との連結部の接線方向の差が大きい場合には等速通
過を行うことができないからである。 4.等速通過を行う区間相互に速度差がないこと、即
ち、前の区間と後の区間とで指定された速度が等しくな
ければ等速での送りを行い得ないからである。 5.等速でつながれる後の区間が減速を行い得るだけの
距離を有すること。即ち、等速通過された後の区間の移
動距離が前述した合成開始移動量LO よりも小さい場合
には速度成分の減速が行えないため、該後区間とそれに
更に続く区間との間でCP制御ができないからである。
When the nozzle 19 reaches the synthesis start point A O and the remaining movement amount Lr becomes equal to the synthesis start movement amount L O , the determination step 803 becomes Yes and the step 806 is performed.
Subsequent synthesis control (CP control) or constant velocity passing control is started. Here, first, determination steps 806, 807, 80
8, 809 and 810 determine whether or not to perform constant velocity passage control. In the trajectory control device 50 of the present embodiment, constant velocity passage control is performed only when all of the following five conditions are satisfied. The five conditions are: The operator has input a constant velocity passage command. 2. The connecting portions that perform constant velocity passage are formed by arcs and arcs as shown in FIG. 3A, arcs and straight lines as shown in FIG. 3B, or straight lines and arcs as shown in FIG. 3C. It must be the connecting part of. 3. The difference in the tangential direction of the connecting portion between the previous section and the subsequent section that follows is not more than a predetermined angle. That is, if there is a large difference in the tangential direction of the connecting portion between the front section and the rear section, constant velocity passage cannot be performed. 4. This is because there is no difference in speed between sections where constant speed passage is performed, that is, constant speed feed cannot be performed unless the speeds specified in the previous section and the subsequent section are equal. 5. The section after being connected at a constant speed must have a distance that allows deceleration. That is, when the movement distance of the section after passing the constant velocity is smaller than the above-mentioned combined start movement amount L O , deceleration of the speed component cannot be performed, so that the CP between the subsequent section and the section subsequent thereto is not possible. This is because it cannot be controlled.

【0026】ここでは、上述した5つの条件が、判断ス
テップ806、807、808、809、810により
次々と判断されていく。先ず、判断ステップ806で上
記条件1のオペレータにより等速通過指令が入力されて
いるかが判断される。ここでは、等速通過指令が入力さ
れているため判断ステップ806がYesとなり、次の
判断ステップ807で、上記条件2の等速通過を行う連
結部が、円弧と円弧、円弧と直線、或いは、直線と円弧
とのつなぎ部分であるかが判断される。ここでは、円弧
の区間iと直線の区間i+1とのつなぎであるので判断
ステップ807がYesとなり次の判断ステップ808
へ進む。判断ステップ808では、バッフアに等速通過
OKのフラグが立てられているかどうかにより、上記条
件3の区間と区間とのつなぎ部分の接線方向の差が所定
の角度以下であるかが判断される。ここでは、図9
(c)に示すi+1バッフアに等速通過OKのフラグ9
7が立てられているため、判断がYesとなり、次の判
断ステップ809による判断がなされる。判断ステップ
809では、上記条件4の等速通過を行う区間の速度が
等しいか否かを、前区間のバッフアの目標値に格納され
た指定速度と、後区間のバッフアの目標値に格納された
指定速度とを比較して判断する。ここでは、図9(a)
に示すi区間のバッフアの目標値91に格納されている
指定速度と図9(c)に示すi+1区間のバッフアの目
標値94に格納されている指定速度とが等しいのでこの
ステップ809の判断がYesとなり、次の判断ステッ
プ810へ進む。判断ステップ810では、後区間のバ
ッフアの目標値に格納された移動必要量Li(教示点間
の移動距離)が、前述のステップ802で算出された合
成開始移動量LO よりも大きいかを判断することによ
り、上記条件5の等速でつながれる後の区間について、
この区間に減速を行い得るだけの距離があるか否かを判
断する。ここでは、i+1バッフアの目標値94に格納
されている移動必要量Liが合成開始移動量LO よりも
大きいためこの判断ステップ810もYesとなり、ス
テップ811へ進み等速通過制御が行われる。
Here, the above-mentioned five conditions are successively judged by judgment steps 806, 807, 808, 809 and 810. First, at decision step 806, it is determined whether the operator of Condition 1 has input a constant velocity passage command. Here, since the constant velocity passage command is input, the determination step 806 becomes Yes, and in the next determination step 807, the connecting portion that performs the constant velocity passage of the condition 2 is an arc and an arc, an arc and a straight line, or It is determined whether or not it is a connecting portion between a straight line and a circular arc. Here, since the section i of the arc is connected to the section i + 1 of the straight line, the judgment step 807 becomes Yes and the next judgment step 808 is performed.
Go to. In the judgment step 808, it is judged whether or not the difference in the tangential direction of the connecting portion between the section of Condition 3 and the section is equal to or less than a predetermined angle, depending on whether or not the flag of the constant velocity passage OK is set in the buffer. Here, FIG.
Flag 9 for passing the uniform velocity in the i + 1 buffer shown in (c)
Since No. 7 is set, the determination is Yes, and the determination is made in the next determination step 809. In the judgment step 809, it is determined whether or not the speeds in the section for performing the constant speed passage of the above condition 4 are equal to each other, by the specified speed stored in the target value of the buffer in the front section and the target value of the buffer in the rear section. Judge by comparing with the specified speed. Here, FIG. 9 (a)
Since the designated speed stored in the target value 91 of the buffer in the i section shown in FIG. 9 is equal to the designated speed stored in the target value 94 of the buffer in the i + 1 section shown in FIG. 9C, the determination in step 809 is made. Yes, and the process proceeds to the next judgment step 810. In the judgment step 810, it is judged whether or not the required movement amount Li (movement distance between teaching points) stored in the target value of the buffer in the rear section is larger than the combination start movement amount L O calculated in the above step 802. By doing so, for the section after the constant speed connection of Condition 5 above,
It is determined whether or not there is a sufficient distance for deceleration in this section. Here, since the required movement amount Li stored in the target value 94 of the i + 1 buffer is larger than the combined start movement amount L O , this judgment step 810 also becomes Yes, and the routine proceeds to step 811 and constant velocity passage control is performed.

【0027】ステップ811では、等速通過制御のため
の補間データが作成される。そして、この補間データを
基にステップ805でサーボへの制御指令を出力してロ
ボット10を制御する。これについて、再び図10の点
i-1 から点Pi の速度成分Vi 、点Pi から点Pi+1
の速度成分Vi+1 の変化のパターンを参照して説明す
る。従来のCP制御では、図4の合成開始点AO を越え
ると、図10中に点線で示すように、点Pi-1 から点P
i の速度成分Vi を減速すると共に、点Pi から点P
i+1 の速度成分Vi+1 を増大させこれらを合成してい
た。これに対して本実施例の等速通過制御では、このよ
うな速度成分の合成を行わず、速度成分について、点P
i-1 から点Pi の速度成分Vi のまま指定速度VO で送
り、そして点Pi に到達すると、こんどは、点Pi から
点Pi+1 の速度成分Vi+1 での送りに切り換える。
In step 811, interpolation data for constant velocity passage control is created. Then, based on this interpolation data, a control command to the servo is output in step 805 to control the robot 10. For this, again velocity component V i of the point P i from the point P i-1 of FIG. 10, the point from the point P i P i + 1
This will be described with reference to the pattern of changes in the velocity component V i + 1 of. In the conventional CP control, it exceeds a synthesis initiation point A O in FIG. 4, as indicated by a dotted line in FIG. 10, the point from the point P i-1 P
with decelerating the i velocity component V i of the point from the point P i P
increasing the velocity component V i + 1 of the i + 1 were synthesized them. On the other hand, in the constant velocity passage control of the present embodiment, such velocity component synthesis is not performed, and the point P is set for the velocity component.
while the i-1 velocity component V i of the point P i sends a specified speed V O, and reaches the point P i, turn, from the point P i at the point P i + 1 of the velocity component V i + 1 Switch to feed.

【0028】速度成分が切り換えられた点Pi からは、
判断ステップ803がNoとなり、ステップ804の単
独処理により指定速度VO で、点Pi+1 方向への軌跡が
描かれる。そして、ノズル19が次の合成開始点A’O
に到達し、残り移動量Lrが合成開始移動量LO に等し
くなると再び判断ステップ803がYesとなり判断ス
テップ806へ進む。判断ステップ806では、等速通
過指令が入力されているため判断がYesとなり、次の
判断ステップ807で、前区間と後区間との関係につい
ての判断がなされる。ここでは、点Pi と点Pi+1 の区
間i+1が直線で、次の点Pi+1 と点Pi+2 の区間i+
2も直線であるためステップ807の判断がNoとな
り、ステップ812以降のCP制御方式による合成処理
が開始される。まず、ステップ812で、CPU11が
合成パターン変数を作成する。即ち、図10に示すよう
に点Pi から点Pi+1 に向かう速度成分Vi+1 を設定さ
れている加速度−αO で減ずると共に、該速度成分V
i+1 に、点Pi+1 から点Pi+2に向かう速度成分Vi+2
について加速度αO でベクトル加算して移動方向と速度
成分とを算出する。そして、ステップ813では、算出
された合成パターン変数に従い合成補間周期毎の目標値
を計算し、この目標値を基にサーボ制御部40に出力を
発しロボット10を制御し(ステップ814)、ノズル
19を点A’O と点B’O とを結ぶ曲線M1 上を送る。
ノズル19が点B’O (点Pi から点Pi+1 に向かう速
度成分Vi+1 が加速度−αO により減速されゼロになっ
た点)に到達すると合成が終了し(判断ステップ815
がYes)、ステップ802の処理に戻る。以後、判断
ステップ803を経てステップ804以降の点Pi+1
ら点Pi+2 方向に向かう速度成分Vi+2 の単独処理を行
い、点Pi+1 から点Pi+2 に向かう直線上にノズル19
を送る。そして、以上の処理を点Pi+2 →点Pi+3 →P
i+4 →・・・と繰り返し、サーボへの出力が最終出力に
なる、即ち、入力された教示点が最終のものに到達する
と、判断ステップ816がYesとなり全ての処理が完
了する。
From the point P i at which the velocity component is switched,
The determination step 803 is No, and the trajectory in the direction of the point P i + 1 is drawn at the designated speed V O by the independent processing of step 804. Then, the nozzle 19 causes the next synthesis start point A'O.
When the remaining movement amount Lr becomes equal to the combination start movement amount L O , the determination step 803 becomes Yes again and the process proceeds to the determination step 806. In the judgment step 806, the judgment is Yes because the constant velocity passage command is inputted, and in the next judgment step 807, the judgment about the relationship between the front section and the rear section is made. Here, the section i + 1 between the points P i and P i + 1 is a straight line, and the section i + between the next point P i + 1 and the point P i + 2.
Since 2 is also a straight line, the determination in step 807 is No, and the combining processing by the CP control method in step 812 and thereafter is started. First, in step 812, the CPU 11 creates a composite pattern variable. That is, as shown in FIG. 10, the velocity component V i + 1 from the point P i to the point P i + 1 is reduced by the set acceleration −α O , and the velocity component V i
At i + 1 , the velocity component V i + 2 from the point P i + 1 to the point P i + 2
Is added to the vector with the acceleration α O to calculate the moving direction and the velocity component. Then, in step 813, a target value for each synthetic interpolation cycle is calculated in accordance with the calculated synthetic pattern variable, and an output is issued to the servo control unit 40 based on this target value to control the robot 10 (step 814). On the curve M 1 connecting the points A ′ O and B ′ O.
Synthesis and nozzle 19 has reached the point B 'O (point velocity component V i + 1 going from point P i to the point P i + 1 is zero is decelerated by the acceleration-.alpha. O) is completed (decision 815
Yes), the process returns to step 802. After that, through the judgment step 803, the velocity component V i + 2 traveling from the point P i + 1 to the point P i + 2 in the step 804 and thereafter is independently processed to move from the point P i + 1 to the point P i + 2 . Nozzle 19 on a straight line
To send. Then, the above processing is performed at the point P i + 2 → point P i + 3 → P
When i + 4 → ... is repeated and the output to the servo becomes the final output, that is, when the input teaching point reaches the final output, determination step 816 becomes Yes and all the processing is completed.

【0029】この本実施例によれば、ノズル19に所望
の軌跡を描かせつつ一定速度で送ることができる。単に
円弧と直線のつなぎ部分の教示点Pi 上にノズル19を
通過させることは、CP制御を行わずに従来の方式を用
い、点Pi-1 から点Pi に送り、点Pi で一旦停止させ
てから次の点Pi+1 に向かわせることによっても行うこ
とができた。しかしこの場合には、指定速度VO から速
度ゼロまで減速させるため不都合が生じる。例えば、ロ
ボットにシーリングを行わせる場合には、速度をVO
らゼロまで下げるため速度変化が大きくなり、塗布剤を
シーリング箇所に均一に塗布することが難しくなった。
これに対し本実施例の構成のものは、連結部を等速で送
り得るため速度変化を小さくでき、シーリング等を行う
ロボット等に好適に用いることができる。
According to this embodiment, the nozzle 19 can be fed at a constant speed while drawing a desired locus. To simply pass the nozzle 19 over the teaching point P i at the connecting portion of the arc and the straight line, the conventional method is used without CP control, and the point P i-1 is sent to the point P i and the point P i is set. It could be done by stopping once and then moving to the next point P i + 1 . However, in this case, there is an inconvenience because the speed is reduced from the designated speed V O to zero. For example, when the robot is made to perform the sealing, the speed is decreased from V O to zero, so that the speed change becomes large, and it becomes difficult to uniformly apply the coating agent to the sealing portion.
On the other hand, the structure of the present embodiment can feed the connecting portion at a constant speed so that the change in speed can be made small and can be suitably used for a robot or the like that performs sealing or the like.

【0030】なお、前述の実施例では、軌跡制御装置5
0をシーラー用のロボット10に適用した例について説
明したが、本発明は、ロボットのハンド等の物体の移動
軌跡を制御する一般の装置に適用できることは言うまで
もない。また、この実施例では、CP制御を行うか等速
通過制御を行うかを切り換えたが、CP制御を行わない
従来の軌跡制御方式において、該従来の軌跡制御と本実
施例の等速通過制御とを切り換えるようにも構成でき
る。更に、前述の実施例では、円弧と円弧、円弧と直
線、直線と円弧の連結部で等速通過制御を行ったが、本
発明の等速通過制御はこれに限定されることなく、円弧
のみならず他の曲線にも用いことができ、更には接線方
向の差が所定角度以下の場合には直線と直線との連結部
にも用いることが可能である。
In the above embodiment, the trajectory control device 5 is used.
The example in which 0 is applied to the robot 10 for the sealer has been described, but it goes without saying that the present invention can be applied to a general device that controls the movement trajectory of an object such as a robot hand. In this embodiment, the CP control or the constant velocity passage control is switched. However, in the conventional trajectory control method in which the CP control is not performed, the conventional trajectory control and the constant velocity passage control of the present embodiment are performed. It can also be configured to switch between and. Further, in the above-described embodiment, the constant velocity passage control is performed at the connecting portion of the circular arc and the circular arc, the circular arc and the straight line, and the straight line and the circular arc. However, it can also be used for other curves, and also for connecting portions between straight lines when the difference in the tangential direction is less than or equal to a predetermined angle.

【0031】[0031]

【発明の効果】本発明は、以上説明したように構成され
ており、円弧とのつなぎ部分において入力された円弧の
軌跡と同じ軌跡を描くよう制御することができる。従っ
て、円弧のつなぎにおいて滑らかで、綺麗な軌跡を描く
ことができる。
The present invention is configured as described above and can be controlled so as to draw the same locus as the locus of the arc input at the connecting portion with the arc. Therefore, it is possible to draw a smooth and beautiful locus in the connection of arcs.

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

【図1】本発明の一実施例に係る軌跡制御装置により制
御されるロボットの機械的構成を示す構成図である。
FIG. 1 is a configuration diagram showing a mechanical configuration of a robot controlled by a trajectory control device according to an embodiment of the present invention.

【図2】本発明の一実施例に係る軌跡制御装置の構成を
示すブロック図である。
FIG. 2 is a block diagram showing a configuration of a trajectory control device according to an embodiment of the present invention.

【図3】本実施例において等速通過制御の対象となる軌
跡を示す図である。
FIG. 3 is a diagram showing a trajectory that is a target of constant velocity passage control in the present embodiment.

【図4】本実施例の軌跡制御方式における軌跡の一例を
示す図である。
FIG. 4 is a diagram showing an example of a locus in the locus control method of the present embodiment.

【図5】本実施例の軌跡制御装置の動作の概要を示すフ
ローチャートである。
FIG. 5 is a flowchart showing an outline of the operation of the trajectory control device of the present embodiment.

【図6】図5に示すフローチャートの方向成分算出のス
テップを更に詳細に説明するフローチャートである。
6 is a flowchart for explaining in more detail the steps of calculating a direction component in the flowchart shown in FIG.

【図7】図5に示すフローチャートの接線方向の差を算
出するステップを更に詳細に説明するフローチャートで
ある。
FIG. 7 is a flowchart for explaining the step of calculating the difference in the tangential direction of the flowchart shown in FIG. 5 in more detail.

【図8】図5に示すフローチャートの軌跡制御タスク起
動のステップを更に詳細に説明するフローチャートであ
る。
FIG. 8 is a flowchart for explaining in more detail the steps of starting the trajectory control task of the flowchart shown in FIG.

【図9】本実施例に係る軌跡制御装置により作成される
バッフアの構成図である。
FIG. 9 is a configuration diagram of a buffer created by the trajectory control device according to the present embodiment.

【図10】本実施例の軌跡制御装置における各速度成分
i 、Vi+1 及びVi+2 の大きさを示す図である。
FIG. 10 is a diagram showing the magnitude of each velocity component V i , V i + 1, and V i + 2 in the trajectory control device of the present embodiment.

【図11】従来技術の軌跡制御方式における各速度成分
i 及びVi+1 の大きさを示す図である。
FIG. 11 is a diagram showing the magnitude of each velocity component V i and V i + 1 in the conventional trajectory control system.

【図12】従来の軌跡制御方式における軌跡を示す図で
ある。
FIG. 12 is a diagram showing a trajectory in a conventional trajectory control method.

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

10 ロボット 11 CPU 19 ノズル 26 操作盤 30 RAM AO 合成開始点 θ 接線方向の差10 Robot 11 CPU 19 Nozzle 26 Operation Panel 30 RAM A O Composite Start Point θ Difference in tangential direction

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 入力された複数の教示点に基づき被搬送
物体の移動軌跡を作成する軌跡制御装置であって、 第1の教示点と該第1教示点に続く第2の教示点とによ
り形成される前区間の該第2教示点側の方向成分と、前
記第2教示点と該第2教示点に続く第3の教示点とによ
り形成される後区間の該第2教示点側の方向成分とを算
出する方向成分算出手段と、 該第2教示点における該前区間と該後区間との接線方向
の差を、前記方向成分算出手段により算出された前区間
の方向成分と後区間の方向成分とから算出する接線方向
差算出手段と、 前記接線方向差算出手段の算出した接線方向の差を予め
設定された値と比較する比較手段と、 前記比較手段により比較された該接線方向の差が予め設
定された値以下の場合に、該第2教示点上を該前区間と
等しい速度で被搬送物体を送るよう移動軌跡を制御する
移動軌跡制御手段とを備えたことを特徴とする軌跡制御
装置。
1. A locus control device for creating a movement locus of a transported object based on a plurality of input teaching points, the method comprising: a first teaching point and a second teaching point following the first teaching point. On the second teaching point side of the rear section formed by the direction component on the second teaching point side of the front section to be formed, and the second teaching point and the third teaching point following the second teaching point. Direction component calculating means for calculating a direction component, and a directional component and a rear area of the front section calculated by the direction component calculating means for calculating a tangential difference between the front section and the rear section at the second teaching point. Tangential direction difference calculating means for calculating the tangential direction difference calculated by the directional component, a comparing means for comparing the tangential direction difference calculated by the tangential direction difference calculating means with a preset value, and the tangential direction compared by the comparing means. If the difference between is less than or equal to a preset value, Locus control system being characterized in that a moving locus control means for controlling the movement trajectory to send the transported object between equal speed.
JP35585692A 1992-12-19 1992-12-19 Locus controller Pending JPH06187026A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP35585692A JPH06187026A (en) 1992-12-19 1992-12-19 Locus controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP35585692A JPH06187026A (en) 1992-12-19 1992-12-19 Locus controller

Publications (1)

Publication Number Publication Date
JPH06187026A true JPH06187026A (en) 1994-07-08

Family

ID=18446083

Family Applications (1)

Application Number Title Priority Date Filing Date
JP35585692A Pending JPH06187026A (en) 1992-12-19 1992-12-19 Locus controller

Country Status (1)

Country Link
JP (1) JPH06187026A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020019125A (en) * 2018-08-03 2020-02-06 パナソニックIpマネジメント株式会社 Robot control method
WO2022176249A1 (en) * 2021-02-19 2022-08-25 オムロン株式会社 Control system, control method, and control device
WO2022202656A1 (en) * 2021-03-24 2022-09-29 ファナック株式会社 Numerical control device and numerical control program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020019125A (en) * 2018-08-03 2020-02-06 パナソニックIpマネジメント株式会社 Robot control method
WO2022176249A1 (en) * 2021-02-19 2022-08-25 オムロン株式会社 Control system, control method, and control device
WO2022202656A1 (en) * 2021-03-24 2022-09-29 ファナック株式会社 Numerical control device and numerical control program

Similar Documents

Publication Publication Date Title
JP2524931B2 (en) Robot linear interpolation method
WO1997013184A1 (en) Numerical controller
US5740327A (en) Method of and apparatus for robot tip trajectory control
JPH05289722A (en) Automatic programming device for coating robot
JPH06187026A (en) Locus controller
JPS5936811A (en) Method for interporating route of robot hand
JP4407083B2 (en) Command value generation method and command value generation system
JPH06187027A (en) Locus controller
JPH08339222A (en) Robot track generation device
JPH08123531A (en) Control method for track
JPH06195114A (en) Locus controller
JPH06110534A (en) Position control method for machine tool
JP2737725B2 (en) Robot control device and method
JP3089813B2 (en) Trajectory control device
JPH06214631A (en) Locus controller
JPH06187028A (en) Locus controller
JPH07200034A (en) Device and method for controlling acceleration/ deceleration for working head
JP2020097083A (en) Robot controller and control method
JPH0830978B2 (en) Teaching / reproducing method for industrial robots
JPH10301616A (en) Teaching device for robot
US20230027260A1 (en) Robot controller and emergency stop method of robot
JPH06114764A (en) Controller for robot
KR100218379B1 (en) Method for control robot arm
JPH0689112A (en) Speed control method for outside shaft in industrial robot
JP3203288B2 (en) Numerical control unit