JPH02249001A - Arithmetic unit for digital manipulated variable - Google Patents

Arithmetic unit for digital manipulated variable

Info

Publication number
JPH02249001A
JPH02249001A JP6982089A JP6982089A JPH02249001A JP H02249001 A JPH02249001 A JP H02249001A JP 6982089 A JP6982089 A JP 6982089A JP 6982089 A JP6982089 A JP 6982089A JP H02249001 A JPH02249001 A JP H02249001A
Authority
JP
Japan
Prior art keywords
digital
analog converter
value
digital code
code value
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
JP6982089A
Other languages
Japanese (ja)
Inventor
Yuzo Matsunaga
松永 有三
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.)
Mitsubishi Heavy Industries Ltd
Original Assignee
Mitsubishi Heavy Industries 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 Mitsubishi Heavy Industries Ltd filed Critical Mitsubishi Heavy Industries Ltd
Priority to JP6982089A priority Critical patent/JPH02249001A/en
Publication of JPH02249001A publication Critical patent/JPH02249001A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To obtain highly precise control performance even by means of the digital/analog converter of low cost by storing numbers which are to be raised or cut off as they are made into integers in a latch register and executing addition and correction at the time of calculating a digital code value next time. CONSTITUTION:An arithmetic processing part 10 and the latch register 11 calculate the digital code value 18 outputted to the digital/analog converter 12 by a real number, set the integer part of a numeric obtained by rounding a decimal part as an output value, store the numbers which are to be raised or cut off as they are made into the integers in the latch register 11, execute addition and correction at the time of calculating the digital code value next time. Thus, an intermediate value can virtually be outputted and highly precise control performance can be obtained even by the digital/analog converter of low cost.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はディジタル・アナログ変換器を内蔵した各種コ
ントローラのディジタル操作前の演舅−装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a device for performing before digital operation of various controllers incorporating a digital-to-analog converter.

〔従来の技術〕[Conventional technology]

近年マイクロプロセッサの普及に伴い、ディジタル・ア
ナログ変換器を介して各種機械を制御するコン)o−ラ
が急増している。要求する制御精糺によってディジタル
・アナログ変換器の分解能が決ってくるが、コスト面か
らいえば少し1rも低分S能の変換器を使いたいという
希望もする。最近、高速・高精度化が著しい工作機械、
ロボット等のサー?糸においても商価な16ビノト変換
器より低コストの12ビツト変換器で対処したいという
要求が強い。
In recent years, with the spread of microprocessors, the number of controllers that control various machines via digital-to-analog converters has rapidly increased. The resolution of the digital-to-analog converter is determined by the control precision required, but from a cost standpoint, it is desirable to use a converter with a resolution as low as 1r. Recently, machine tools have become significantly faster and more precise.
Sir of robots etc? There is also a strong demand for a lower-cost 12-bit converter than the commercially priced 16-bit converter for yarn.

しかし、ディジタル・アナログ変換器には当然のことな
がらあらかじめ保有している分解能に相当する離散値(
とびとびの値)でしか設定できず、隣り合うコード間の
中IB」に位ムJする値はどちらかに強制的に合わせる
他にすべはない。そのため、この真値からのズレが制御
精度の劣化、するいはオフセットの残留といったトラブ
ルを招くことになる。
However, digital-to-analog converters naturally have a discrete value corresponding to the resolution (
It can only be set at discrete values, and there is no other way than to force the value of the middle IB between adjacent codes to match one of them. Therefore, this deviation from the true value causes problems such as deterioration of control accuracy or residual offset.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従来法では、低い分解能のディジタル・アナログ変換器
を用いながら高精度の制御性能を実現させる好適な手段
を持たなかった。
Conventional methods do not have a suitable means for achieving high precision control performance while using a low resolution digital-to-analog converter.

そこで本発明は、低い分解能のディジタル・アナログ変
換器でめっでも仮想的に分解能以上の中間値を出力でき
るようにするディジタル操作量の演算器を提供すること
を目的とする。
SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide a digitally manipulated variable calculator that allows a low-resolution digital-to-analog converter to output an intermediate value virtually higher than the resolution.

〔課題を解決するための手段〕[Means to solve the problem]

本発明に係るディジタル操作量の演算装置はディジタル
・アナログ変換器を内戚したコントローラの操作量の演
算装置において、演算処理s10とラッチレジスタ11
とディジタル拳アナログ変侠機12とサー?・アンf1
3とモータ14とパルス・エンコーダ15と位置カウン
ター16を具備し、前記演算処理部10とラッチレジス
タ11は、ディジタル・アナログ変換器に出力するディ
ジタル・コード値を実数で計算し、小数部を4捨5入し
て得られる数値の整数部を出力値とするとともに、整数
化に伴なって切上げまたは切情てる端数は、ラッチレジ
スタ11に記憶させ、次回のディジタルコード値算出時
に加算して修正をかけることを特徴とする。
The digital manipulated variable arithmetic device according to the present invention is a manipulated variable arithmetic device for a controller that includes a digital-to-analog converter.
And Digital Fist Analog Hentai Machine 12 and Sir?・Ann f1
3, a motor 14, a pulse encoder 15, and a position counter 16, the arithmetic processing unit 10 and latch register 11 calculate the digital code value to be output to the digital-to-analog converter as a real number, and convert the decimal part to 4. The integer part of the number obtained by rounding down to the nearest 5 is used as the output value, and any fractions that are rounded up or rounded down due to integerization are stored in the latch register 11 and added and corrected the next time the digital code value is calculated. It is characterized by applying .

〔作用〕[Effect]

演算処理部と2ツチレジスタにより、ディジタル・アナ
ログ変換器に出力するディジタルコード値を実数値で計
算し、小数部を4捨5入して得られる数値の整数部を実
際の出力値とすると共に、整数化に伴って切上げまたは
切箔てδれてしまう端数は、次回のディジタルコード値
算出時に加算して修正をかけることによシ、仮想的に中
間値の出力を可HQにしようとするものでする。
The arithmetic processing unit and the two registers calculate the digital code value to be output to the digital-to-analog converter as a real value, round the decimal part to the nearest 4, and set the integer part of the obtained value as the actual output value. Fractions that are rounded up or truncated due to integer conversion are corrected by adding them when calculating the next digital code value, thereby virtually making the output of the intermediate value a reasonable HQ. do.

〔実施例〕〔Example〕

本発明の実施例を第1図〜第3図に示す。 Examples of the present invention are shown in FIGS. 1 to 3.

第1図は本発明の実施例のブロック図でする。第1図に
2いて10はマイクロゾロセッサで構成される演算処理
部、Iノはディジタルコードのラッチレジスタ、12は
ディジタル・アナログ変換器(以下D/A変換器という
)、13はサー?アンプ。
FIG. 1 is a block diagram of an embodiment of the present invention. In FIG. 1, numeral 2 and numeral 10 are an arithmetic processing section consisting of a microprocessor, I is a digital code latch register, numeral 12 is a digital-to-analog converter (hereinafter referred to as a D/A converter), and numeral 13 is a sensor? Amplifier.

14はモータ、15はパルス・エンコーダ、16は位置
カウンターであシ、17はディジタル操作蓋、18はレ
ジスタラッチ後の同信号、19はディジタル・アナログ
変換器の出力でするアナログ操作量、20はモータ駆動
信号、2ノはモータ軸とパルス・エンコーダ軸とを接続
する連結機構、22は回転角検出信号、23はモータ位
置信号でする。第1図はサーボ系の例で示しているが、
本発明はディジタル・アナログ変換器@夛のみに関わる
もので他の部分の構成は図と異なる任意のもので構わな
い。
14 is a motor, 15 is a pulse encoder, 16 is a position counter, 17 is a digital operation lid, 18 is the same signal after register latch, 19 is an analog operation amount which is the output of a digital-to-analog converter, and 20 is an analog operation amount. 2 is a motor drive signal, 2 is a coupling mechanism that connects the motor shaft and the pulse encoder shaft, 22 is a rotation angle detection signal, and 23 is a motor position signal. Figure 1 shows an example of a servo system,
The present invention relates only to the digital-to-analog converter, and the configuration of other parts may be any different from that shown in the drawings.

次に第1図のブロック図に基づき本発明の実施例の作動
について説明する。演算処理部IQは第2図に示す演算
を行ないディジタル操作量17を出力し、ラッチレジス
タ11にディジタルコードを記憶させる。ディジタル・
アナログ変換器IZはこのディジタル値をアナログ操作
t19に変換しサー?・アンプ13に伝える。サーボ・
アンプ13の出力信号20は、モータ14を回転し、モ
ータ14はパルス・エンコーダ15′f:回転する。
Next, the operation of the embodiment of the present invention will be explained based on the block diagram of FIG. The arithmetic processing unit IQ performs the arithmetic operations shown in FIG. 2, outputs a digital operation amount 17, and stores a digital code in the latch register 11. digital·
The analog converter IZ converts this digital value into an analog operation t19 and outputs the signal from the server? - Inform amplifier 13. The servo·
The output signal 20 of the amplifier 13 rotates the motor 14, which in turn rotates the pulse encoder 15'f.

ノクルス・エンコーダの回転id位置カウ7タ−16を
介してモータ位置信号23として演算処理部10ヘフイ
ードバツクされる。
The signal is fed back to the arithmetic processing unit 10 as a motor position signal 23 via the rotation ID position counter 16 of the Noculus encoder.

演算処理部10内の演算は目標値とこのフィードバック
値とからの偏差演算で操作量を求める。
The calculation in the calculation processing section 10 calculates the manipulated variable by calculating the deviation from the target value and this feedback value.

その具体的な内容を第2図に示す。その要点はD/A変
換器に与えるディジタルコード値を実数値で計算し、D
/A変換器にはその整数部を出力するが、4捨5人した
ために生じる誤差(小数点以下の端数)は記憶しておき
、次の制御周期で新しいディジタルコード値を求める時
に加算修正することにする。第2図において、 操作蓋OTの演算手段は、 第1図の位置決めの指令値をPi 、モータ位置信号2
3をPpとし、サーボ系のルージグインをK。
The specific contents are shown in Figure 2. The key point is to calculate the digital code value given to the D/A converter as a real value, and
The integer part is output to the /A converter, but the error (fraction after the decimal point) caused by rounding down to 5 must be memorized and corrected by addition when obtaining a new digital code value in the next control cycle. Make it. In FIG. 2, the calculation means of the operation lid OT converts the positioning command value shown in FIG. 1 into Pi and motor position signal 2.
3 as Pp, and K for the servo system loop.

とするとき、OT= Kp(Pl−Pj)となる。When, OT=Kp(Pl-Pj).

変換係数TKについては、 D/A変換器の出力が±10 Valtで、それが速度
の±10m/分に対応する場合、12ビツトのD/A変
換器であれは、ディジタルコードの±2048が、この
速度に対応するのでTKは、 TK×(±10m/分)=±2048 から算出できる。
Regarding the conversion coefficient TK, if the output of the D/A converter is ±10 Valt, which corresponds to a speed of ±10 m/min, then if it is a 12-bit D/A converter, the digital code is ±2048. , corresponding to this speed, TK can be calculated from TK x (±10 m/min) = ±2048.

第3図にディジタル・アナログ変換器の分解能から決ま
る離散値と演算部で求める中間値(連続値でΔ印で示し
たもの)との関係を示す。次回のディジタルコード値に
は今回余分に出していることになる誤差をキャンセルす
るためR,(負値)が加算される。従って制御周期が十
分速ければ上記の修正作業も間断なく行われることにな
シ、仮想的に連続値を出力できていることになる。
FIG. 3 shows the relationship between the discrete values determined by the resolution of the digital-to-analog converter and the intermediate values (continuous values indicated by Δ) determined by the arithmetic unit. R, (negative value) is added to the next digital code value in order to cancel the error that will be generated this time. Therefore, if the control cycle is fast enough, the above correction work will be performed without interruption, and virtually continuous values can be output.

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

本発明は、前述のように構成されているのでディジタル
・アナログ変換器の分解能以上に仮想的に連続値を出力
させることを可能にし、低コストのディジタル・アナロ
グ変換器でも^精度な制御性能を実現できることになり
、惨めで優れた効果を奏する。
Since the present invention is configured as described above, it is possible to virtually output a continuous value higher than the resolution of the digital-to-analog converter, and even a low-cost digital-to-analog converter can achieve accurate control performance. It becomes possible to realize it, and it has a miserable and excellent effect.

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

第1図は本発明の実施例のブロック図、第2図は本発明
装置の演算処理部の手順を示す図、 第3図はディジタルコード値を真値との関係を示す図、 でする。 10・・・演算処理部、1ノ・・・ランチレジスタ、1
2・・・ディジタル・アナログ変換器、13・・・サー
ぎ・アンf、14・・・モータ、15・・・ノ七ルス・
エンコーダ、16・・・位旗カウンタ 出顔人代理人 弁理士 鈴 江 武 彦第 図
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a diagram showing the procedure of the arithmetic processing section of the device of the present invention, and FIG. 3 is a diagram showing the relationship between digital code values and true values. 10... Arithmetic processing unit, 1... Launch register, 1
2...Digital-to-analog converter, 13...Surge/amplifier, 14...Motor, 15...N7 pulse/
Encoder, 16... Flag counter Appearance agent Patent attorney Takehiko Suzue Diagram

Claims (1)

【特許請求の範囲】[Claims] ディジタル・アナログ変換器を内蔵したコントローラの
操作量の演算装置において、演算処理部(10)とラッ
チレジスタ(11)とディジタルアナログ変換機(12
)とサーボ・アンプ(13)とモータ(14)とパルス
・エンコーダ(15)と位置カウンター(16)を具備
するとともに前記演算処理部(10)とラッチレジスタ
(11)は、デジタル・アナログ変換器に出力するディ
ジタル・コード値を実数で計算し、小数部を4捨5入し
て得られる数値の整数部を出力値とするとともに、整数
化に伴なって切上げまたは切捨てる端数は、ラッチレジ
スタ(11)に記憶させ、次回のディジタルコード値算
出時に加算して修正をかけることを特徴とするディジタ
ル操作量の演算装置。
In a controller operation amount arithmetic device with a built-in digital-to-analog converter, an arithmetic processing unit (10), a latch register (11), and a digital-to-analog converter (12) are used.
), a servo amplifier (13), a motor (14), a pulse encoder (15), and a position counter (16). The digital code value to be output is calculated as a real number, the decimal part is rounded down to the nearest 40, and the integer part of the obtained value is the output value. (11) A digital operation amount arithmetic device characterized in that the digital code value is stored and corrected by adding it when calculating the next digital code value.
JP6982089A 1989-03-22 1989-03-22 Arithmetic unit for digital manipulated variable Pending JPH02249001A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6982089A JPH02249001A (en) 1989-03-22 1989-03-22 Arithmetic unit for digital manipulated variable

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6982089A JPH02249001A (en) 1989-03-22 1989-03-22 Arithmetic unit for digital manipulated variable

Publications (1)

Publication Number Publication Date
JPH02249001A true JPH02249001A (en) 1990-10-04

Family

ID=13413780

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6982089A Pending JPH02249001A (en) 1989-03-22 1989-03-22 Arithmetic unit for digital manipulated variable

Country Status (1)

Country Link
JP (1) JPH02249001A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05250003A (en) * 1992-03-05 1993-09-28 Matsushita Electric Ind Co Ltd Digital controller
WO1999046647A1 (en) * 1998-03-09 1999-09-16 Adtex Inc. Control method and apparatus therefor
WO2000002104A1 (en) * 1998-07-01 2000-01-13 Adtex Inc. Predictive control using operating means with fewer set levels
JP2015115044A (en) * 2013-12-16 2015-06-22 株式会社デンソー Feedback control device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05250003A (en) * 1992-03-05 1993-09-28 Matsushita Electric Ind Co Ltd Digital controller
WO1999046647A1 (en) * 1998-03-09 1999-09-16 Adtex Inc. Control method and apparatus therefor
WO2000002104A1 (en) * 1998-07-01 2000-01-13 Adtex Inc. Predictive control using operating means with fewer set levels
JP2015115044A (en) * 2013-12-16 2015-06-22 株式会社デンソー Feedback control device

Similar Documents

Publication Publication Date Title
JPS59132012A (en) Mobile element controller for machine
US4358723A (en) Method and apparatus for measuring the rotation of a work table
GB2185594A (en) Spindle positioning apparatus
WO1984004162A1 (en) Method of detecting absolute position of servo control system
JPH08179831A (en) Quadrant projection correcting method for full-closed loop system
JPH0655037B2 (en) Servo motor speed control method
JPH02249001A (en) Arithmetic unit for digital manipulated variable
JPH069014B2 (en) Type wheel positioning controller
JPS63148314A (en) Controller for semiclosed loop servo control system
JPS62299320A (en) Automatic origin control system of injection molding machine
WO1988003678A1 (en) Position control system
JPH0775982A (en) Automatic teaching device for laser robot
JPH032623B2 (en)
US5610489A (en) Method and apparatus for machine control
JPH09207088A (en) Interprobot coordinate transformation matrix setting system and correction system
JPH10154007A (en) Numerical controller
EP0454853A1 (en) Feedback position control method
US5231340A (en) Servomotor control method
JPS6032007Y2 (en) Stop position control device in conveyor system
JPS57127206A (en) System for correcting positioning error in numerical controlling device
KR100194144B1 (en) Position control method and controller of servomotor by feedforward
JPH0253110A (en) Function generating device for digital servo control
JPH04326104A (en) Controller for robot
JP2002176790A (en) Servomotor provided with reduction gear
SU601668A1 (en) Semiautomatic telescope position correting device