JPS6346515A - Pulse distributing method - Google Patents

Pulse distributing method

Info

Publication number
JPS6346515A
JPS6346515A JP19109886A JP19109886A JPS6346515A JP S6346515 A JPS6346515 A JP S6346515A JP 19109886 A JP19109886 A JP 19109886A JP 19109886 A JP19109886 A JP 19109886A JP S6346515 A JPS6346515 A JP S6346515A
Authority
JP
Japan
Prior art keywords
value
pulse
point
storage unit
memory
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
JP19109886A
Other languages
Japanese (ja)
Inventor
Hideyuki Wakai
秀之 若井
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.)
Komatsu Ltd
Original Assignee
Komatsu 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 Komatsu Ltd filed Critical Komatsu Ltd
Priority to JP19109886A priority Critical patent/JPS6346515A/en
Publication of JPS6346515A publication Critical patent/JPS6346515A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To realize a pulse distributing method that can trace fitfully a target route by selecting a command pulse to perform a shift to the candidate point nearest to the target route among those candidate points set in each axial direction which is shifted by a single pulse. CONSTITUTION:In a linear interpolation mode an initialization part 1 writes the initial value related to each desired straight line to the memory parts 2-8 respectively after reception of an input. A code comparing part 9 discriminate the code of the value D stored in a D memory part 2 to start an X process/pulse generating part 10 with D<=0 and then a Y process/pulse generating part 11 with D>0 respectively. The part 10 adds '1' to the value X of an X memory part 5 and the value 2b to a 2b memory part 3 to produce a single command pulse of the plus (+) direction. While the part 11 adds 1 to the value Y of a Y memory part 6 and also subtracts the value 2a of a 2a memory part 4 from the value D to produce a single command pulse of the (+) direction. An end point comparing part 12 is started for each end of processing of both parts 10 and 11 to perform comparison between the value X and the value Xe of an X end point memory part 7 as well as between the value Y and the value Ye of a Y and point memory part 8. The processing is finished when coincidence is obtained in both comparisons.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はパルス分配方法に係シ、特にNC装置等におい
て工具が目標経過を辿るようにパルス分配を行々ってゆ
く方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a pulse distribution method, and more particularly to a method of distributing pulses so that a tool follows a target course in an NC device or the like.

〔従来の技術〕[Conventional technology]

従来のこの糧のパルス分配方法として、代数演算方法が
ある。この方法は、直線や円弧の代数方程式を逐次演算
してゆき、その線上にない各点が正であるか負であるか
を判別しながら工具が線上を辿るようにノ々ルス分配を
行なってゆく方法である。
As a conventional pulse distribution method for this purpose, there is an algebraic calculation method. This method sequentially calculates algebraic equations for straight lines and circular arcs, and then performs Nords distribution so that the tool follows the line while determining whether each point that is not on the line is positive or negative. This is the way to go.

まず、直線のパルス分配の原理を説明すると、第6図に
おいて、いま原点(0,0)から出発して点Q (x、
t )’1 )で終わる直線を考えた場合、その線の途
中の点P(x:、y)は、 二−ヨl工    yl ・’−X71 = X1y が成立する。ここで、Dなる関数(判別式)を考える。
First, to explain the principle of linear pulse distribution, in Fig. 6, starting from the origin (0,0), point Q (x,
When considering a straight line ending at t)'1), the following holds true for the point P(x:, y) in the middle of the line: Here, consider a function (discriminant) called D.

D諺X 17  K ’11 この式からD)0ならば、点Pは直線の上側になるので
、+X方向に1ノ臂ルス出す。その結果、D<0になれ
ば下側にきたことになるので次には十y方向に1パルス
出し、D)0になるまで次々と1パルスずつパルスを出
し続ける。
D Proverbs As a result, if D<0, it means that it has reached the lower side, so next, one pulse is output in the y direction, and pulses are continued to be output one pulse at a time until D) becomes 0.

つまり、現在点が直線の上(D>0)にあるか下(D<
0)にあるかを判別しつつ、D)OlD〈Oと交互にな
るようにパルスヲ出ス。
In other words, the current point is either above (D>0) or below (D<
0), and output pulses alternately with D)Old<O.

次に1円弧のパルス分配の原理について説明すると、例
えば第7図に示すように座標原点(0,0)に中心のあ
る円弧を考え、円弧の出発点を(x 。
Next, the principle of pulse distribution for one circular arc will be explained. For example, as shown in FIG. 7, consider a circular arc whose center is at the coordinate origin (0,0), and set the starting point of the circular arc to (x).

yo) 、終点を(Xl p 71 )−そして円弧上
の点をP、 (x 、 y )とすれば、 x2+ y2a* x62+y□ am x1+y、2
が成立する。そこで、Dなる関数を考えれば、p −x
2+ y2  、2  、2 なる判別式が成立する。
yo), the end point is (Xl p 71 )- and the point on the arc is P, (x, y), then x2+ y2a* x62+y□ am x1+y, 2
holds true. Therefore, if we consider a function D, p −x
The discriminant 2+ y2 , 2 , 2 holds true.

直線の時と同様に考えると、1ノぐルスの誤差内で円弧
を追跡する系が組めることがわかる。
If we think in the same way as for straight lines, we can see that we can construct a system that tracks arcs within an error of 1 nogle.

なお、1ノぐルスは、例えば0.0111i11といっ
た微小移動量に相当するので、工具の動きは第6図、第
7図に示したような階段状とはならず、補間すべき直線
、円弧に沿った滑らかな動きとなる。
Note that 1 noguru corresponds to a minute movement amount, for example 0.0111i11, so the movement of the tool will not be step-like as shown in Figures 6 and 7, but rather a straight line or circular arc to be interpolated. The movement is smooth.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

しかし、上記方法の欠点は、工具などの軌跡が目的の直
線あるいは曲線から1/4′ルス以上離れることはない
が、必ずしも目的の直線などに一番近い点を補間してい
ることにはならないことである。
However, the drawback of the above method is that although the trajectory of the tool will never be more than 1/4' lus from the target straight line or curve, it does not necessarily mean that the point closest to the target straight line is interpolated. That's true.

たとえば第5図のような傾きの小さい直線に対しては第
5図(&)のような軌跡にな力、第5図(b)のような
望ましい軌跡を描くことはできなかった。
For example, for a straight line with a small slope as shown in FIG. 5, it was not possible to draw a trajectory as shown in FIG. 5(&) and a desired trajectory as shown in FIG. 5(b).

本発明は上記実情に鑑みてなされたもので、常に目的の
直線あるいは曲線に最も近い点をつないだ軌跡となるよ
うにパルス分配することができるパルス分配方法を提供
することを目的とする。
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a pulse distribution method that can always distribute pulses so as to form a locus connecting points closest to a target straight line or curve.

〔問題点を解決するための手段〕[Means for solving problems]

本発明によれば、目標経路を移動するように、複数軸の
各軸方向の移動を指示する指令・ぐルスを、各軸に分配
するパルス分配方法であって、次に分配すべき指令ノマ
ルスを決定するときに、現在の指令位置から1パルスで
移動する各軸方面別の複数の候補点のうち、前記目標経
路KAも近い候補点を求め、この候補点に進める移動方
向の指令ノ々ルスを選択するとともに、現在の指令位置
をその候補点の位置に更新するようにしている。
According to the present invention, there is provided a pulse distribution method for distributing to each axis a command/gurus instructing movement in each axis direction of a plurality of axes so as to move along a target path, the command/gurus to be distributed next. When determining the direction of movement, a candidate point that is also close to the target path KA is determined among a plurality of candidate points in each axis direction that are moved in one pulse from the current command position, and commands in the direction of movement to proceed to this candidate point are determined. At the same time, the current command position is updated to the position of the candidate point.

〔作用〕[Effect]

すなわち、従来は単に現在の点が目標経路の上側か下側
かのどちら側にあるかだけを判別してパルス分配してい
たのに対し、本発明ではこれを一歩進めて、1 /4ル
スで移動する各軸方面別の複数の候補点のうち、目標経
路に最も近い候補点に移行するための指令パルスを選択
するようにし、目標経路により近い点をとるに必要なパ
ルス分配を可能にしている。
In other words, in the past, pulses were distributed by simply determining whether the current point was on the upper or lower side of the target path, but the present invention takes this one step further and distributes pulses based on 1/4 pulse distribution. The command pulse for moving to the candidate point closest to the target path is selected among multiple candidate points for each axis direction to be moved, and the pulse distribution necessary to take the point closer to the target path is made possible. ing.

〔実施例〕〔Example〕

以下9本発明を添付図面を谷間して詳細に説明する。 The present invention will be described in detail below with reference to the accompanying drawings.

まず、本発明の原理を直線を補間する賜金を例にして説
明する。いま、次式に示す直線について考える。
First, the principle of the present invention will be explained using an example of interpolating straight lines. Now, consider the straight line shown in the following equation.

ニーL−0・・・(υ 息    b (a)O、b>o ) 之・ミで、第3図に示すようにも1番目の点を補間した
とする−この時の座標をpi(x、y)とする。
Knee L-0...(υ breath b (a)O, b>o) 之・mi, and suppose that the first point is also interpolated as shown in Figure 3 - the coordinates at this time are pi( x, y).

そして、次に補間する点は、xiたはY方向に+1進め
た点のうち直線に近い点に進むものとする。
Then, the next point to be interpolated is a point that is closer to a straight line among the points advanced by +1 in the xi or Y direction.

すなわち、i+1番目の候補点は2つあシ、(X+1.
Y)と(X、Y+1)がそれである。
In other words, the i+1th candidate point is 2 legs, (X+1.
These are Y) and (X, Y+1).

前者をP1+x、後者をPi+)rで表わすことにする
The former will be represented by P1+x and the latter by Pi+)r.

Pi +x 、 Pi +yから直線までの距離をLl
+x。
The distance from Pi +x, Pi +y to the straight line is Ll
+x.

Li+yとすると、 となる、ここでLi+x  とLi+y  との差dL
を考えると、これはPl+xとpi+yのどちらが直線
に近いかを示すことになる。計算すると、dL = L
l +x2  Li +y2・・・(3) となシ、もしdLが正の場合はY方向に進み、負の場合
はX方向に進めば直線に近い点に進むことができる。第
(3)式において、a)0.b)Oとしたので、判別式
りを、 o−2bX−2aY+b−!L     −(4)とお
くことができる。
If Li+y, then the difference dL between Li+x and Li+y is
Considering this, this indicates which of Pl+x and pi+y is closer to the straight line. When calculated, dL = L
l +x2 Li +y2 (3) If dL is positive, proceed in the Y direction, and if dL is negative, proceed in the X direction to reach a point close to a straight line. In equation (3), a) 0. b) Since O, the discriminant formula is o-2bX-2aY+b-! It can be set as L-(4).

したがって、現在の点(x、y)を第(4)式に代入し
、判別式りの符号を調べることによシ、という規則にし
たがって指令ノ母ルスを出し、出すたびに現在の点の値
を更新し、更新した値に基づき判別式りの正負を判断し
、再び上記規則に従って指令ノタルスを出す・・・とい
う手順を繰シ返すと所望のパルス分配、すなわち直線補
間が可能となる。
Therefore, by substituting the current point (x, y) into equation (4) and checking the sign of the discriminant, the command base is issued according to the rule, and each time it is issued, the current point is By repeating the procedure of updating the value, determining whether the discriminant is positive or negative based on the updated value, and issuing a command notarus again according to the above rules, the desired pulse distribution, that is, linear interpolation, becomes possible.

ところで、上記第(4)式の判別式りの値の算1]4は
、下記の漸化式を利用すれば、かけ算は不要で加減算の
みでできる。すなわち、1番目の判別式をDlとすると
、X方向に進んだ場合の判別式Di+xは、 Di−1x −2b (X+1)−2aY−)b−a胃
nt+2b         ・・・(5)と表わされ
、同様にY方向に進んだ場合の判別式%式% また、初期状態において、x−o、y=oであるのでD
は第(4)式から、 D 麿b−a         ・・・(7)となる。
By the way, calculation 1]4 of the value of the discriminant in the above equation (4) can be done by only addition and subtraction without the need for multiplication, if the following recurrence formula is used. That is, if the first discriminant is Dl, the discriminant Di+x when proceeding in the X direction is expressed as Di-1x -2b (X+1)-2aY-)b-a stomach nt+2b (5) Similarly, when moving in the Y direction, the discriminant % formula% Also, in the initial state, x-o, y=o, so D
From Equation (4), D Maroba...(7) is obtained.

以上をまとめると、初期値を として、 D≦0ならば、+Xの指令パルスを出すとともに、下記
のようにXの値を+1増加させ、また、第(5)式よシ
、次の判別式を求める。
To summarize the above, if the initial value is D≦0, a command pulse of +X is issued, the value of X is increased by +1 as shown below, and according to equation (5), the following discriminant seek.

同様に、D)0ならば、+Yの指令/Jパルス出すとと
もに、下記のようにYの(を+1増加させ、また第(6
)式よシ、次の判別式を求める。
Similarly, if D) is 0, the +Y command/J pulse is issued, and the ( of Y is increased by +1 as shown below, and the (6th
), find the following discriminant.

以上の議論は、X、Yが任意の点Ps (Xs 、Ym
 )から同じ傾きで始まる直線に対しても容易に拡張が
可能であシ、このときはX、Yの初期値を各々Xs 、
 Ysにするだけでよい。また終点Pe(Xs、、Ye
)が与えられている場合は、上記の繰返の始めにP(x
、y)がPe(Xe、Ya)が一致したか否かを判断し
て一致した場合に補間を終了すればよい。
In the above discussion, X and Y are arbitrary points Ps (Xs, Ym
) can be easily extended to a straight line starting with the same slope; in this case, the initial values of X and Y are set to Xs,
Just set it to Ys. Also, the end point Pe(Xs,,Ye
) is given, then P(x
, y) and Pe(Xe, Ya), and if they match, the interpolation may be terminated.

次に、楕円を補間する場合について説明する。Next, the case of interpolating an ellipse will be explained.

(a)0 、 b>o ) の楕円の第1象限を第4図に示すように点(a。(a) 0, b>o) As shown in Fig. 4, the first quadrant of the ellipse is a point (a.

O)から補間する場合を考える。補間する点はX方向に
−1またはY方向に+1進めた点のうち楕円に近い点に
進むものとする。今仮に1番目の点を補間したとする。
Consider the case of interpolating from O). It is assumed that the interpolation point is advanced to a point that is closer to the ellipse among the points advanced by −1 in the X direction or +1 in the Y direction. Suppose now that the first point is interpolated.

この時の座標をpt(x、Y)とする。i+i番目の候
補点は2つあり、(X−1。
Let the coordinates at this time be pt(x, Y). There are two i+i-th candidate points, (X-1.

Y)と(X、Y+1)がそれである。前者をPi−X、
後者をpi+yで表わすことにする。
These are Y) and (X, Y+1). The former is Pi-X,
The latter will be expressed as pi+y.

Pi−X(X−1,Y)と原点を結ぶ直線の交点をPc
 −x (Xc −x 、 Ye−x )とすると、と
なり、 pi+y (x 、 Y+ 1 )と原点を結ぶ直線の
交点をPC+y (Xe+y 、 Yc+y )とする
と、JjK点から)’i−xまでの距離と原点からPc
−xtでの距離の二乗の比R1−xは 原点から円十yまでの距離と原点からPc+yオでの距
離の二乗の比R1+yは となる。
The intersection of the straight line connecting Pi-X (X-1, Y) and the origin is Pc
-x (Xc -x, Ye-x), and if the intersection of the straight line connecting pi+y (x, Y+ 1) and the origin is PC+y (Xe+y, Yc+y), then from point JjK to )'i-x Distance and Pc from origin
The ratio of the square of the distance at -xt is R1-x, and the ratio of the square of the distance from the origin to the circle 10y and the distance from the origin to Pc+yo is R1+y.

両者から1を引いたものの絶対値の大きさの小さいほう
が楕円に近いことになる。そこでDI −(R14−y
−1)   (R1−x  1 )  ≧0・・・αQ
を漕たすときKX方向に−1、そうでない場合にY方向
に+1進めればよい。ところが R1+y)R1−x が第1象限に関しては無条件に成り立ち、かつ第01式
は、 D 1=(R1+y−Ri−x) (R1+y+R1−
x−2)と因数分解することが可能であるので、D2=
 R1+y + R1−x −2≧0を判別の条件にす
ることができる。D2を展開すると、 となシ、更に分母は常に正の定数であるのでD=2b 
X −2b X+2a2Y2+2a2Y+a2+b2−
2a2b2・・・αη と半j刃)jノ弓(・↓う二しヤ’+”z”、;う。
The smaller the absolute value of both minus 1, the closer it is to an ellipse. Therefore, DI −(R14-y
-1) (R1-x 1) ≧0...αQ
When rowing, it is sufficient to advance by -1 in the KX direction, and otherwise by +1 in the Y direction. However, R1+y)R1-x is unconditionally true for the first quadrant, and Equation 01 is D 1=(R1+y-Ri-x) (R1+y+R1-
x-2), so D2=
R1+y+R1-x-2≧0 can be set as a condition for determination. Expanding D2, we get D=2b because the denominator is always a positive constant.
X -2b X+2a2Y2+2a2Y+a2+b2-
2a2b2...αη and half j blade) j bow (・↓unishiya'+"z", ;u.

したがって、現在の点(x、y)を第64式に代入し、
判別式〇の符号を調べることによシ、という規則にした
がって指令・やルスを出し、出すたびに現在の点の値を
更新し、更新した値に基づき判別式りの正負を判断し、
再び上記規則に従って指令パルスを出す・・・という手
順を繰シ返すと所望のパルス分配、すなわち格別補間が
可能となる。
Therefore, by substituting the current point (x, y) into Equation 64,
By checking the sign of discriminant 〇, we issue commands and ruses according to the rule, update the value of the current point each time we issue them, and judge whether the discriminant is positive or negative based on the updated value.
By repeating the procedure of issuing command pulses again according to the above rules, desired pulse distribution, that is, special interpolation, becomes possible.

ところで、上記第64式の判別式りの値の算出は、直線
補間のときと同様に下記の漸化式を利用すれば、かけ算
は不要で加減算のみでできる。す々わち、1番目の判別
式をDlとすると、−X方向に進んだ場合の判別式Di
−:cは、 DI −x = DI−4b2X+4b2・・−α枠+
Y方向に進んだ場合は、 Di+y = DI+ 4a Y+4a2−Qlと漸化
式で簡単に計算できる。またDoはXma、y−oであ
るので、 DO−−2ab2+ &2+ b2     ・−]で
ある。
By the way, the value of the discriminant of Equation 64 can be calculated using only addition and subtraction without the need for multiplication, if the following recurrence formula is used as in the case of linear interpolation. That is, if the first discriminant is Dl, then the discriminant Di when proceeding in the -X direction
-: c is DI -x = DI-4b2X+4b2...-α frame +
When proceeding in the Y direction, it can be easily calculated using the recurrence formula: Di+y = DI+ 4a Y+4a2-Ql. Also, since Do is Xma and yo, DO--2ab2+ &2+ b2 .-].

以上をまとめると、 初期値を として、 ということを繰り返すことKより、楕円補間が可能とな
る。
To summarize the above, elliptic interpolation is possible by repeating K with the initial value as K.

上式中更にDX、DYという値を導入j〜てDを高次の
漸化式にすると 初期値を X 4−a         1 として DX+DX+4b2J という?″″7とを繰シ返すことにより、楕円補間が可
能となる。なお、ambとすれば、円弧補間も可能とな
ることはいうまでもない。
If we further introduce the values DX and DY into the above equation and make D into a higher-order recurrence formula, the initial value is set to X 4-a 1 and DX+DX+4b2J? By repeating ``''7, elliptic interpolation becomes possible. It goes without saying that if amb is used, circular interpolation is also possible.

第1図は本発明方法を実施する装置の一例を示すブロッ
ク圀で、直線補間を行なう場合に関して示している。
FIG. 1 is a block diagram showing an example of an apparatus for carrying out the method of the present invention, and is shown for the case where linear interpolation is performed.

同図において、初期設定部1は、入力を受けると各記憶
部2〜8にそれぞれ所望の直線に関する初期値を書き込
む。すなわち、D記憶部2には初期値として(h・−&
)の値が書き込甘れ(第(8)式)、2b記憶部3およ
び2&記憶部4にはそれぞれ直線の傾きに関連した2b
、2mの値が書き込まれ、X記憶部5およびY記憶部6
はそれぞれ直線の始点となる位置Xs 、 Ysが書き
込まれ、X終点記憶部7およびY終点記憶部8にはそれ
ぞれ直線の終点となる位置X・、Y・が書き込まれる。
In the figure, upon receiving an input, the initial setting section 1 writes initial values regarding desired straight lines into each of the storage sections 2 to 8, respectively. That is, the D storage unit 2 has (h・−&
) is written (Equation (8)), and 2b storage unit 3 and 2 & storage unit 4 each have 2b values related to the slope of the straight line.
, 2m are written in the X storage section 5 and the Y storage section 6.
The positions Xs and Ys, which are the starting points of the straight lines, are respectively written, and the positions X. and Y., which are the end points of the straight lines, are written in the X end point storage section 7 and the Y end point storage section 8, respectively.

符号比較部9は、D記憶部2に記憶されている値りの符
号判別を行ない、D≦OのときにはX処理・パルス発生
部10を起動し、D>0のときにはX処理・パルス発生
部11を起動する。
The sign comparison section 9 discriminates the sign of the value stored in the D storage section 2, and when D≦O, starts the X processing/pulse generation section 10, and when D>0, starts the X processing/pulse generation section. 11.

X処理・/9ルス発生部10は、符号比較部9からの信
号によって起動すると、X記憶部5の値Xに1を加算す
るとともに、D記憶部2の値りに2b記憶部3の値2b
を加算しく第(9)式参照)、+X方向の指令パルスを
1パルス発生する。
When activated by the signal from the sign comparison unit 9, the X processing//9 pulse generation unit 10 adds 1 to the value X in the X storage unit 5, and adds the value in the 2b storage unit 3 to the value in the D storage unit 2. 2b
(see equation (9)), one command pulse in the +X direction is generated.

X処理・・!シス発生部1工は、符号比較部9からの信
号によって起動すると、Y記憶部6の値Yに1を加算す
るとともに、D記憶部2の値りから2a記憶部4の値2
aを減算しく第α0式か煎)、+Y力方向指令・ぐルス
を1パルス発生する。
X processing...! When activated by the signal from the code comparison unit 9, the system generation unit 1 adds 1 to the value Y in the Y storage unit 6, and extracts the value 2 in the 2a storage unit 4 from the value in the D storage unit 2.
Subtract a and generate one pulse of the +Y force direction command.

終点比較部12は、X処理・パルス発生部10筐たはX
処理・メPルス発生部11の処理が終了するごとに起動
され、X記憶部5の値XとX終点記憶部7の値X@、Y
記憶部6の値YとY終点記憶部8の値Yeをそれぞれ比
較し、両者共一致した場合にはそこで処理を終了し、そ
うでない場合は再び符号比較部9を起動する。
The end point comparison section 12 is connected to the X processing/pulse generation section 10 or the X
It is activated every time the process of the processing/merus generation unit 11 is completed, and the value X in the X storage unit 5 and the values X@, Y in the X end point storage unit 7 are
The value Y in the storage unit 6 and the value Ye in the Y end point storage unit 8 are compared, and if they match, the process is terminated, and if not, the code comparison unit 9 is activated again.

なお、上記実施例では、& + b ) 0 、Xs)
Xs、Ye ) Ysの場合に関して説明したが、a 
+ b (0のときには符号比較部9はD)OのときX
処理・パルス発生部10を起動し、D≦OのときX処理
・/4ルス発生部11を起動し%またX@(Xsのとき
にはX処理・パルス発生部10&i、X記憶部5の値X
から1を減算するとともに、D記憶部2の値りから値2
bを減算して−X方向の指令パルスを発生し、Ye <
YsのときにはX処理・パルス発生部はY記憶部6の値
Yから1を減算するとともに、D記憶部2の値りに値2
Aを加p、シて−・Y方向の指令)l)@・スを発生す
ればよい。
In addition, in the above example, & + b ) 0 , Xs)
Xs, Ye) Although we have explained the case of Ys, a
+ b (When 0, the sign comparison unit 9 is D) When O, X
The processing/pulse generation section 10 is activated, and when D≦O, the X processing//4 pulse generation section 11 is activated and % and X@ (when Xs, the X processing/pulse generation section 10&i, the value
At the same time, subtract 1 from
b is subtracted to generate a command pulse in the -X direction, and Ye <
When Ys, the X processing/pulse generation section subtracts 1 from the value Y in the Y storage section 6 and adds the value 2 to the value in the D storage section 2.
All you have to do is add A and generate commands in the -Y direction) l) @ and S.

第2図は本発明方法を実施する他の例を示すブロック図
で、楕円補間を行なう場合に関して示している。
FIG. 2 is a block diagram showing another example of implementing the method of the present invention, in which elliptic interpolation is performed.

同図において、初jtJ1設定部21は、入力を受ける
と各記憶部22〜30にそれぞれ所望の楕円に関する初
期値を書き込む。すなわち、D記憶部22、DX記憶部
23およびDY記憶部24にはそれぞれ初期値として(
−2ab +a +b  )、(−4b2m+ 4b2
)および(4a2)の値が書き込まれる(mH式)。ま
た、4b  記憶部25および41h2記憶部26には
それぞれ4b  および4& の値が書き込まれ、X記
憶部27およびY記憶部28はそれぞれ楕円の始点とな
る位置Xs、Y―が書き込まれ、X終点記憶部29およ
びX終点記憶部30にはそれぞれ楕円の終点となる位置
Xs 、 Y拳が書き込まれる。
In the figure, upon receiving an input, the initial jtJ1 setting unit 21 writes initial values regarding desired ellipses into each of the storage units 22 to 30, respectively. That is, the D storage unit 22, DX storage unit 23, and DY storage unit 24 each have (
-2ab +a +b ), (-4b2m+ 4b2
) and (4a2) are written (mH formula). Further, the values 4b and 4& are written in the 4b storage unit 25 and the 41h2 storage unit 26, respectively, and the positions Xs and Y-, which are the starting points of the ellipse, are written in the X storage unit 27 and the Y storage unit 28, respectively, and the X ending point The positions Xs and Y, which are the end points of the ellipse, are written in the storage unit 29 and the X end point storage unit 30, respectively.

符号比較部31は、D記憶部22に記憶されている値り
の符号判別を行ない、D≧0のときにはX処理・パルス
発生部32を起動し、D(OのときにはX処理・)4ル
ス発生部33を起動する。
The sign comparison unit 31 discriminates the sign of the value stored in the D storage unit 22, and when D≧0, activates the The generator 33 is activated.

X処理・パルス発生部32は、符号比較部32からの信
号によって起動すると、X記憶部27の値Xから1を減
算するとともに、D記憶部22の値りにDX記憶部23
の値DXを加算し、続いてDX記憶部23の値DXに4
b  記憶部25の値4b2を加算しく第(ハ)式か照
)、−X方向の指令・ぐk x f 1 ハ# x 発
生f ル。
When activated by the signal from the sign comparison unit 32, the X processing/pulse generation unit 32 subtracts 1 from the value
DX is added to the value DX, and then 4 is added to the value DX in the DX storage section 23.
b Add the value 4b2 in the storage unit 25 (see formula (c)), and -X direction command x k x f 1 x occurrence f le.

X処理・ノ9ルス発生部33は、符号比較部31からの
信号によって起動すると、Y記憶部28の値Yに1を加
算するとともに、D記憶部22の値DICDY記憶部2
4の値DYを加算し、続いてDY記憶部24の値DYに
4a  記憶部26の値4&2を加算しく第(ハ)式参
照)、十Y方向の指令・臂k スヲl zJ? k ス
発生f ル。
When activated by a signal from the code comparison unit 31, the X processing/norse generation unit 33 adds 1 to the value Y in the Y storage unit 28, and adds 1 to the value DICDY storage unit 2 in the D storage unit 22.
Then add the value DY of 4a to the value DY of the DY storage unit 24, and then add the value 4&2 of the storage unit 26 of 4a (see equation (c)). k Stain occurrence f le.

終点比較部34は、X処理・パルス発生部32またはX
処理・パルス発生部33の処理が終了するごとに起動さ
れ、X記憶部27の値XとX終点記憶部29の値Xe、
Y記憶部28の値YとX終点記憶部30の値Yeをそれ
ぞれ比較し、両者共一致した場合にはそこで処理を終了
し、そうでない場合は再び符号比較部31を起動する。
The end point comparison section 34 is configured to perform the X processing/pulse generation section 32 or the X
It is started every time the processing of the processing/pulse generation section 33 is completed, and the value X of the X storage section 27 and the value Xe of the X end point storage section 29 are stored.
The value Y in the Y storage unit 28 and the value Ye in the X end point storage unit 30 are compared, and if they match, the process is terminated, and if not, the code comparison unit 31 is activated again.

なお、上記構成は、例えば論理回路を使っても構成する
ことができ、また全体を電子計算機を使りて実際するこ
とも可能である。また判別式りの算出も、漸化式を用い
ずに現在の点から直接算出するようにしてもよい。
Note that the above configuration can be configured using, for example, a logic circuit, and it is also possible to actually implement the entire configuration using an electronic computer. Further, the discriminant may be calculated directly from the current point without using the recurrence formula.

また、本実施例では、直線、楕円(円弧も含む)の補間
の場合について説明したが、これに限らず目標経路が既
知であればいかなる曲線でもよい。
Further, in this embodiment, the case of interpolation of a straight line or an ellipse (including a circular arc) has been described, but the interpolation is not limited thereto, and any curve may be used as long as the target route is known.

更に、本実施例では目標経路が2次元の場合について説
明したが、3次元の場合でもよく、この場合には進むこ
とができる3方向を候補点とし、その3つの候補点のう
ち目標経路に最も近い点を選択すればよい。
Furthermore, in this embodiment, the case where the target route is two-dimensional has been explained, but it may also be three-dimensional. Just choose the closest point.

更にまた、本発明は表示装置において、所望の直線ある
いは曲線を描く場合にも応用することができる。
Furthermore, the present invention can be applied to drawing a desired straight line or curved line in a display device.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明によれば、次に分配すべき指
令パルスを決定する際に、現在の指令位置から1/#ル
スで移動する各軸方面別の複数の候補点のうち、目標経
路に最も近い候補点を選択するようにしたため、目標経
路をよυ忠実に辿ることができるパルス分配が可能にな
る。
As explained above, according to the present invention, when determining the next command pulse to be distributed, the target path is selected from among a plurality of candidate points in each axis direction that move at 1/# rus from the current command position. Since the candidate point closest to is selected, pulse distribution that allows the target path to be followed more faithfully becomes possible.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図および第2図はそれぞれ本発明方法を実施するた
めの装置の一例を示すブロック図、第3図および第4図
はそれぞれ本発明の詳細な説明するために用いた図、第
5図(、)は従来のパルス分配の様子を示す図、第5図
(b)は好ましいパルス分配を示す図、第6図および第
7図はそれぞれ従来のノ量ルス分配方法を説明するため
に用いた図である。 1.21・・・初期設定部、2.22・・・D記憶部、
3・・・2b記憶部、4・・・2畠記憶部、5.27・
・・X記憶部、6,28・・・Y記憶部、7,29・・
・X終点記憶部、8,30・・・Y終点記憶部、9,3
1・・・符号比較部、10.32・・・X処理・パルス
発生部、11.33・・・X処理・パルス発生部、23
・・・DX記憶部、24・・・DY記憶部、25・・・
4D 記憶部、26・・・4& 記憶部。 出願人代理人  木  村  高  久第3図
1 and 2 are block diagrams showing an example of an apparatus for carrying out the method of the present invention, FIGS. 3 and 4 are diagrams used to explain the present invention in detail, and FIG. 5 5(b) is a diagram showing a preferred pulse distribution, and FIGS. 6 and 7 are used to explain the conventional pulse distribution method. This is a diagram. 1.21... Initial setting section, 2.22... D storage section,
3...2b memory section, 4...2 Hatake memory section, 5.27.
...X storage section, 6,28...Y storage section, 7,29...
・X end point storage section, 8, 30...Y end point storage section, 9, 3
1... Sign comparison section, 10.32... X processing/pulse generation section, 11.33... X processing/pulse generation section, 23
...DX storage section, 24...DY storage section, 25...
4D storage section, 26...4 & storage section. Applicant's agent Takahisa Kimura Figure 3

Claims (1)

【特許請求の範囲】 目標経路上を移動するように、複数軸の各軸方向の移動
を指示する指令パルスを、各軸に分配するパルス分配方
法であって、 次に分配すべき指令パルスを決定するときに、現在の指
令位置からパルスで移動する各軸方向別の複数の候補点
のうち、前記目標経路に最も近い候補点を求め、この候
補点に進める移動方向の指令パルスを選択するとともに
、現在の指令位置をその候補点の位置に更新するように
したことを特徴とするパルス分配方法。
[Claims] A pulse distribution method that distributes command pulses to each axis to instruct movement in each axis direction of a plurality of axes so as to move on a target path, the method comprising: When determining, the candidate point closest to the target path is found among multiple candidate points for each axis direction that are moved in pulses from the current command position, and the command pulse in the moving direction to advance to this candidate point is selected. A pulse distribution method characterized in that the current command position is updated to the position of the candidate point.
JP19109886A 1986-08-14 1986-08-14 Pulse distributing method Pending JPS6346515A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19109886A JPS6346515A (en) 1986-08-14 1986-08-14 Pulse distributing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19109886A JPS6346515A (en) 1986-08-14 1986-08-14 Pulse distributing method

Publications (1)

Publication Number Publication Date
JPS6346515A true JPS6346515A (en) 1988-02-27

Family

ID=16268819

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19109886A Pending JPS6346515A (en) 1986-08-14 1986-08-14 Pulse distributing method

Country Status (1)

Country Link
JP (1) JPS6346515A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04297903A (en) * 1991-03-26 1992-10-21 Fujimori Seisakusho:Kk Three-dimensional circular arc movement controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04297903A (en) * 1991-03-26 1992-10-21 Fujimori Seisakusho:Kk Three-dimensional circular arc movement controller

Similar Documents

Publication Publication Date Title
CN111844128A (en) Track planning device and track planning method
CN107980109B (en) Robot motion trajectory planning method and related device
WO2018086226A1 (en) Control method and apparatus for robotic arm
US20070274528A1 (en) Acoustic Processing Device
CN111390902B (en) Trajectory planning method, trajectory planning device, apparatus, and storage medium
JPS63291104A (en) Control of terminal effector for industrial robot
JPS6346515A (en) Pulse distributing method
JPH0612493A (en) Gesture recognizing method and user interface method
JPH05119815A (en) Obstacle avoiding method using neural network
JP3134653B2 (en) Intermediate point teaching data creation method
JP3464874B2 (en) Method and apparatus for tracing point sequence by Bezier curve
JPH03245209A (en) Teaching method and control method for continuous route of robot
JPS6272078A (en) Paint-out drawing device in circle
JPS60214010A (en) Control system for interlocking between industrial robot and slider
JPH09171404A (en) Control method for industrial robot
JPH0368086A (en) Linear interpolating circuit
Li et al. Research on path planning of TangentBug algorithm with adaptive detection radius
JP2729437B2 (en) Ellipse drawing device
Ly Kalman filter application on a Bluetooth driven anthropomorphic system
JPS6120002B2 (en)
JPS61217804A (en) Display method for teaching locus of industrial robot
JPS6231481A (en) Vector clipping system
JPH01189779A (en) Vector generator
JPS6326705A (en) Device for producing nc command information
JPH06168132A (en) Extended three-dimensional hyperbolic membership junction generating device