JPH03211663A - Digital controller - Google Patents
Digital controllerInfo
- Publication number
- JPH03211663A JPH03211663A JP780490A JP780490A JPH03211663A JP H03211663 A JPH03211663 A JP H03211663A JP 780490 A JP780490 A JP 780490A JP 780490 A JP780490 A JP 780490A JP H03211663 A JPH03211663 A JP H03211663A
- Authority
- JP
- Japan
- Prior art keywords
- value
- ratio
- alpha
- numerical
- digital controller
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F7/00—Methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F7/38—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
- G06F7/48—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
- G06F7/544—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices for evaluating functions by calculation
- G06F7/552—Powers or roots, e.g. Pythagorean sums
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2207/00—Indexing scheme relating to methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F2207/552—Indexing scheme relating to groups G06F7/552 - G06F7/5525
- G06F2207/5525—Pythagorean sum, i.e. the square root of a sum of squares
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Pure & Applied Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computing Systems (AREA)
- Mathematical Optimization (AREA)
- General Engineering & Computer Science (AREA)
- Complex Calculations (AREA)
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
本発明は、2つの数[a、bをそれぞれ平方して加算し
、その和の平方根1丁]]7を求めることのできるディ
ジタルコントローラに関する。DETAILED DESCRIPTION OF THE INVENTION (Industrial Application Field) The present invention relates to a digital controller that can calculate two numbers [a and b are each squared and added, and the square root of the sum is 7]. .
(従来の技術)
従来のディジタルコントローラにおいては、2つの数値
a、bをそれぞれ平方して加算し、その和の平方根c
(−1ri1王11)を求める場合に、ニュートン法を
用いて近位的に求めている。(Prior art) In a conventional digital controller, two numbers a and b are squared and added, and the square root of the sum is calculated as c.
(-1ri1King11) is determined proximally using Newton's method.
すなわち求める値Cは次式のように表される。That is, the value C to be found is expressed as in the following equation.
c −f丁ワ1F ・・・・・・・・・・・・・・
・・・・(1)ここでz=a”+b”とすると、ニュー
トン法により平方根を求める近似式は次式のように表さ
れる。c-f 1F ・・・・・・・・・・・・・・・
...(1) Here, if z=a"+b", then the approximate equation for finding the square root using Newton's method is expressed as the following equation.
2 xn
この(2)式において、X、の初期(1xoを1として
、順にX、を算出する。2 xn In this equation (2), the initial value of X (1xo is set as 1), and X is calculated in order.
得られたx3とX@*1とを順次比較して両者の関係が
次式
X、、、I−X、11<ε ・・・・・・・・・・・
・・・・(3)を満足したところで近位的にXM*lζ
I’Tとみなし、求める平方根c(=FT)が得られる
。By sequentially comparing the obtained x3 and X@*1, the relationship between them is expressed by the following formula
....XM*lζ proximally when (3) is satisfied
By regarding it as I'T, the desired square root c (=FT) can be obtained.
(発明が解決しようとする課題)
しかしながらこれらの従来の算出手法を用いた場合、よ
り精度の高い近領値を得ようとすると、(3)式のεの
値を小さくしなければならず、そのため演算回数が増し
て算出までの処理時間が長引く問題がある。(Problem to be Solved by the Invention) However, when using these conventional calculation methods, in order to obtain a more accurate near-field value, the value of ε in equation (3) must be reduced, Therefore, there is a problem that the number of calculations increases and the processing time until calculation becomes longer.
そこで本発明は上記問題点を解決するためになされたも
ので、その目的とするところは高精度でしかも短時間に
2つの数値a、bをそれぞれ平方して加算した和の平方
根1丁]]7の値を求めることのできるディジタルコン
トローラを提供することにある。Therefore, the present invention was made to solve the above problems, and its purpose is to provide one square root of the sum of two numbers a and b squared and added in a short time with high precision. The object of the present invention is to provide a digital controller capable of determining the value of 7.
(課題を解決するための手段)
上記目的を達成するために、本発明は、入力された2つ
の数値a、bをそれぞれ平方して加算した和の平方根f
丁ワ17を求めるディジタルコントローラにおいて、絶
対値の小なる数値aと絶対値の大なる数値すとの比α(
=a/b)を算出する除算手段と、前記比α(0≦α≦
1)と、この比αについての関数FTワゴとの対応関係
を予め数値として記憶しておいたテーブルと、このテー
ブルを参照し、算出した比αに対応する関数17iT下
]−の値を読み出す手段と、読み取った関数、r71丁
丁の値に前記数値すを乗算し、その積b √α2+T王
■を、求メル平方m −ri;=下11として出力す
る乗算手段とを有することを特徴とする。(Means for Solving the Problem) In order to achieve the above object, the present invention provides the square root f of the sum obtained by squaring and adding two input numerical values a and b, respectively.
In a digital controller that calculates 17, the ratio α(
=a/b), and the ratio α (0≦α≦
1) and a table in which the correspondence relationship between this ratio α and the function FT WAGO is stored in advance as numerical values, and by referring to this table, read out the value of the function 17iT bottom]- corresponding to the calculated ratio α. and a multiplication means that multiplies the value of the read function r71 ding by the numerical value s and outputs the product b √α2 + T king ■ as the desired mel square m −ri;=lower 11. do.
(作 用)
本発明においては、2つの数値a、bの比α(=a/b
)と、この比αの関数、77王ゴに対応する数値を、予
めテーブルとして保持しておき、入力された数値a、b
から比α(=a/b)を算出し、テーブルを参照して比
αに対応する575丁を読み取り、読み取った。ri1
下]−に絶対値の大きい数値すを乗算することにより、
求める平方根F丁ヨ薯2の値が得られる。(Function) In the present invention, the ratio α (=a/b
), the function of this ratio α, and the numerical values corresponding to 77 kings are stored in advance as a table, and the input numerical values a, b
The ratio α (=a/b) was calculated from the table, and 575 pieces corresponding to the ratio α were read by referring to the table. ri1
By multiplying − by a numerical value with a large absolute value,
The desired value of the square root F and 2 is obtained.
(実施例) 以下、図に沿って本発明の詳細な説明する。(Example) The present invention will be described in detail below with reference to the drawings.
第1図は本発明に係るディジタルコントローラlの内部
構成の一部を示す機能ブロック図である。FIG. 1 is a functional block diagram showing part of the internal configuration of a digital controller l according to the present invention.
図において、除算手段2は入力された数値abO比α(
=a/b)を算出して、読出し手段3へ送る。なお、除
算手段2に入力される数値aの絶対値は数値すの絶対値
より小さいものとする。In the figure, the dividing means 2 input the numerical value abO ratio α(
=a/b) and sends it to the reading means 3. It is assumed that the absolute value of the numerical value a input to the dividing means 2 is smaller than the absolute value of the numerical value s.
読出し手段3は、入力された比αについて、テーブル4
を参照して比αに対応する(11王ゴの値を続出して、
乗算手段5へ送る。The reading means 3 reads the table 4 for the input ratio α.
Corresponds to the ratio α by referring to
It is sent to the multiplication means 5.
テーブル4はRAM等により形成され、数値abO比α
(O≦α≦1)と、この比αについての関数FTワゴと
の対応関係を予め数値として記憶している。ここでテー
ブル4に記憶されている関数、r習1下]−は、入力さ
れた2つの数値a、 bをそれぞれ平方して加算した
和の平方根f7石11を変形して得られたものである。Table 4 is formed by RAM etc., and is a numerical value abO ratio α
The correspondence relationship between (O≦α≦1) and the function FT for this ratio α is stored in advance as a numerical value. Here, the function stored in Table 4, rX1 lower]-, is obtained by transforming the square root of the sum of the two input numbers a and b, squared and added, f7 stone11. be.
すなわち(1)式を次のように変形することにより、比
αに対応して記憶する数値が得られる。That is, by transforming equation (1) as follows, a numerical value to be stored corresponding to the ratio α can be obtained.
c −r丁q薯璽
に置換えると、
ここでa / bを比α(=a/b)
c−bl雇1Tゴ ・・・・・・(4)さらにここ
で、
d=√α2+ワ1− ・・・・・・・・・(5)と
すると、式(4)は次のように書き換えられる。If we replace a/b with c-r, then we have the ratio α (= a/b) c-bl 1T go... (4) Furthermore, here, d=√α2+wa 1- (5), then equation (4) can be rewritten as follows.
c−b−d ・・・・・・・・・・・・(4)
′つまりテーブル4には、第2図に示すように比αに対
応した開数dの具体的な数値が記憶されており、読出し
手段3から比α、が入力されると、対応するd+が続出
される。なお、2数の関係a≦bにより、関数dの最大
値はF丁に、最小値は1になる。またここで比αとして
テーブルに設定される値は0から1までを微小幅で区分
した値となり、比αの設定間隔を狭め、同時に比αに対
応して記憶される関数dの値の有効桁数を大きくしてお
けば、後述する演算結果の精度が向上する。c-b-d ・・・・・・・・・・・・(4)
'In other words, as shown in FIG. 2, the table 4 stores the specific numerical value of the numerical number d corresponding to the ratio α, and when the ratio α is input from the reading means 3, the corresponding d+ is It continues to be published. Note that due to the relationship a≦b between the two numbers, the maximum value of the function d is F, and the minimum value is 1. In addition, the values set in the table as the ratio α here are values divided by minute widths from 0 to 1, narrowing the setting interval of the ratio α, and at the same time validating the value of the function d stored corresponding to the ratio α. If the number of digits is increased, the accuracy of the calculation results described later will be improved.
乗算手段5は、入力された数値すと開数dの値を乗算す
ることで、(4)′式に示すようにC5すなわち求める
平方根F丁戸]己を出力する。The multiplication means 5 multiplies the input numerical value by the value of the open number d, thereby outputting C5, that is, the square root F to be sought, as shown in equation (4)'.
これらの一連の処理を実行することにより、入力された
数値a、bについて、それぞれを平方して加算した和の
平方根F丁q]己が、除算処理、テーブル4の読取り処
理および乗算処理による簡単な処理行程で短時間に求め
ることができる。By executing these series of processes, the square root of the sum of the input numbers a and b, which are squared and added, can be easily calculated by dividing, reading Table 4, and multiplying. It can be obtained in a short time with simple processing steps.
ここで比較のため(1)式において、a−1,b=2と
し、(3)式において、ε<0.000001を満足す
る精度でCを求めようとすると、従来の処理方法では乗
算5回、除算5回、加算5回の計15回の演算回数を必
要とする。これに対し、本発明では算出値の精度がテー
ブルにより決定されるため、演算回数についてはいかな
る場合も乗算1回、除X1回の計2回となる。この例の
場合、テーブルの読み取り時間を含めても従来法に比べ
約5分の1の処理時間となり、余裕時間をその他の処理
に向けることができる。For comparison, let a-1, b=2 in equation (1), and try to find C with an accuracy that satisfies ε<0.000001 in equation (3). In the conventional processing method, multiplication 5 This requires a total of 15 operations: 1, 5 divisions, and 5 additions. On the other hand, in the present invention, since the accuracy of the calculated value is determined by the table, the number of calculations is always two, one multiplication and one division. In this example, even if the table reading time is included, the processing time is about one-fifth of that of the conventional method, and the extra time can be used for other processing.
第3図および第4図は、本発明に係るディジタルコント
ローラを、誘導電動機における電流成分の算出に用いた
例を示す。3 and 4 show examples in which the digital controller according to the present invention is used to calculate current components in an induction motor.
誘導電動機では、第3図に示すように、励磁電流成分I
工およびトルク電流成分エアが判明している場合、その
ベクトル合成電流■1は、直交する電流成分IN、■7
を合成することで求められ、11 =fT71T171
として表せる。In an induction motor, as shown in Fig. 3, the exciting current component I
When the mechanical and torque current components AIR are known, the vector composite current ■1 is calculated by the orthogonal current components IN and ■7.
It is obtained by combining 11 = fT71T171
It can be expressed as
第4図は、各電流成分1.、■1からベクトル合成電流
■、を求める手順を示すフローチャートである。FIG. 4 shows each current component 1. , ■1 is a flowchart showing a procedure for obtaining vector composite current (2) from (1).
図において、先ず入力された電流成分■9、■7の絶対
値の大小を比較しくステップ41)、INが大の場合(
ステップ41YES)、パラメータRとしてItとI、
lの比を求める(ステップ42)。In the figure, first compare the absolute values of the input current components ■9 and ■7 (step 41). If IN is large (
Step 41 YES), It and I as parameters R,
The ratio of l is determined (step 42).
次いで、求めたパラメータRに対応する関数A(R)−
、/7’TTの値をテーブルから読出し、電流成分I工
に乗じてベクトル合成電流■1を得る(ステップ43)
。Next, the function A(R)- corresponding to the determined parameter R is
, /7'TT are read from the table and multiplied by the current component I to obtain the vector composite current ■1 (step 43).
.
ステップ41において、■、が大でない場合、すなわち
1.が大の場合(ステップ41NO)、パラメータRと
して1.とI?の比を求める(ステップ44)。In step 41, if ■ is not large, that is, 1. is large (step 41 NO), the parameter R is set to 1. and I? Find the ratio of (step 44).
次いで、求めたパラメータRに対応する関数A(R)−
#王ゴの値をテーブルから読出し、電流成分I7に乗じ
てベクトル合成電流I、を得る(ステップ45)。Next, the function A(R)- corresponding to the determined parameter R is
The value of #Ogo is read from the table and multiplied by the current component I7 to obtain the vector composite current I (step 45).
以上のようにこのディジタルコントローラは、入力され
た2個の数値からパラメータを算出し、さらにこのパラ
メータに対応するテーブルを参照することにより、直交
するベクトルを合成して得られるベクトルについてのス
カラー量の算出が極めで簡単におこなわれる。その結果
、本発明のディジタルコントローラを誘導電動機の制御
に用いた場合、応答性にすぐれた制御装置を実現するこ
とができる。As described above, this digital controller calculates a parameter from two input numerical values, and then refers to a table corresponding to this parameter to calculate a scalar quantity for a vector obtained by combining orthogonal vectors. Calculations are extremely easy to perform. As a result, when the digital controller of the present invention is used to control an induction motor, a control device with excellent responsiveness can be realized.
(発明の効果)
以上述べたように本発明によれば、入力された2つの数
値a、bをそれぞれ平方して加算した和の平方根√α2
+lTllを求めるのに、2つの数値a。(Effects of the Invention) As described above, according to the present invention, the square root √α2 of the sum obtained by squaring and adding the two input numerical values a and b, respectively.
To find +lTll, two numbers a.
bの比αを算出する除算が1回、テーブルから読み出し
たf7q]と数値すとの乗算回数が1回4゜
と、計2回の数値演算ですみ、処理時間を従来法に比べ
格段に短縮してディジタルコントローラの応答性を向上
することができる。Only two numerical operations are required, one division to calculate the ratio α of b, and one multiplication of f7q] read from the table and the numerical value 4 degrees, and the processing time is significantly reduced compared to the conventional method. By shortening the time, the responsiveness of the digital controller can be improved.
第1図は本発明に係るディジタルコントローラの内部構
成の一部を示す機能ブロック図、第2図はテーブルの記
憶内寥を模式的に示した説明図、第3図は本発明を誘導
電動機の制御用に適用した場合の各電流成分の説明図、
第4図は実施例の動作を示すフローチャートである。
工・・・ディジタルコントローラ 2・・・除算手段3
・・・読出し手段 4・・・テーブル5・
・・乗算手段 a・・・入力数値b・・
・入力数値 C・・・出力数値α・・・
入力数値の比FIG. 1 is a functional block diagram showing a part of the internal configuration of a digital controller according to the present invention, FIG. 2 is an explanatory diagram schematically showing the internal structure of a table, and FIG. An explanatory diagram of each current component when applied for control,
FIG. 4 is a flowchart showing the operation of the embodiment. Engineering: Digital controller 2: Division means 3
...Reading means 4...Table 5.
...Multiplication means a...Input numerical value b...
・Input numerical value C...Output numerical value α...
Ratio of input numbers
Claims (1)
た和の平方根√a^2+b^2を求めるディジタルコン
トローラにおいて、 絶対値の小なる数値aと絶対値の大なる数値bとの比α
(=a/b)を算出する除算手段と、前記比α(0≦α
≦1)と、この比αについての関数√α^2+1との対
応関係を予め数値として記憶しておいたテーブルと、 このテーブルを参照し、前記比αに対応する関数√α^
2+1の値を読み出す手段と、 読み取った関数√α^2+1の値に前記数値bを乗算し
、その積b√α^2+1を、求める平方根√a^2+b
^2として出力する乗算手段と、を有することを特徴と
するディジタルコントローラ。[Claims] In a digital controller that calculates the square root √a^2+b^2 of the sum of two input numerical values a and b squared and added, a numerical value a having a small absolute value and a numerical value having a large absolute value. Ratio α to numerical value b
(=a/b), and the ratio α (0≦α
≦1) and the function √α^2+1 for this ratio α is stored in advance as a numerical value, and this table is referenced to calculate the function √α^ corresponding to the ratio α.
means for reading out the value of 2+1, and multiplying the read value of the function √α^2+1 by the numerical value b, and calculating the square root √a^2+b to obtain the product b√α^2+1.
A digital controller characterized in that it has a multiplication means for outputting as ^2.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP780490A JPH03211663A (en) | 1990-01-17 | 1990-01-17 | Digital controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP780490A JPH03211663A (en) | 1990-01-17 | 1990-01-17 | Digital controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH03211663A true JPH03211663A (en) | 1991-09-17 |
Family
ID=11675812
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP780490A Pending JPH03211663A (en) | 1990-01-17 | 1990-01-17 | Digital controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH03211663A (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5894056A (en) * | 1981-11-30 | 1983-06-04 | Fuji Electric Co Ltd | Digital arithmetic circuit |
| JPS5894956A (en) * | 1981-11-28 | 1983-06-06 | Daiwa Juko Kk | Automatic pallet loading/unloading device |
-
1990
- 1990-01-17 JP JP780490A patent/JPH03211663A/en active Pending
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5894956A (en) * | 1981-11-28 | 1983-06-06 | Daiwa Juko Kk | Automatic pallet loading/unloading device |
| JPS5894056A (en) * | 1981-11-30 | 1983-06-04 | Fuji Electric Co Ltd | Digital arithmetic circuit |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Rogers | Evaluating first-passage probabilities for spectrally one-sided Lévy processes | |
| De Caigny et al. | Interpolation-based modeling of MIMO LPV systems | |
| US5434809A (en) | Method and apparatus for performing floating point arithmetic operation and rounding the result thereof | |
| US5206823A (en) | Apparatus to perform Newton iterations for reciprocal and reciprocal square root | |
| CN113050416B (en) | Flow industry general optimization method based on simultaneous equation method | |
| JPH03211663A (en) | Digital controller | |
| US5173567A (en) | Musical tone generating apparatus with parameter controller for changing characteristics of musical tone signal | |
| EP0606775A1 (en) | System and method for approximating nonlinear functions | |
| JPS63276604A (en) | Process controller | |
| JPH03175502A (en) | Thinning learning control system | |
| JPH0119164B2 (en) | ||
| JPH04264499A (en) | Method and device for spectrum analysis of voice signal | |
| JPH0335353A (en) | Discrete cosine converting device | |
| Hussaini et al. | Construction of Block Hybrid Backward Differentiation Formula for some Classes of Second Order Initial Value Problems | |
| Lessard | Characteristics and Types of Feedback Control Systems | |
| JPH0371331A (en) | Multiplier | |
| JPS60220466A (en) | High speed fourier transformation device | |
| JP2522073B2 (en) | Sine wave PWM signal generator | |
| JPH01237598A (en) | Voice synthesizer | |
| SU767703A1 (en) | Digital multirange controller | |
| JPH02114324A (en) | Multiplier | |
| JPH04109305A (en) | Servo motor control system | |
| JPH01126701A (en) | Pi control system for sample value | |
| RU2105341C1 (en) | Optimal regulator | |
| JPH0764769A (en) | Multiplier |