JPH0219901A - Analog output method and device - Google Patents

Analog output method and device

Info

Publication number
JPH0219901A
JPH0219901A JP17008488A JP17008488A JPH0219901A JP H0219901 A JPH0219901 A JP H0219901A JP 17008488 A JP17008488 A JP 17008488A JP 17008488 A JP17008488 A JP 17008488A JP H0219901 A JPH0219901 A JP H0219901A
Authority
JP
Japan
Prior art keywords
output
data
analog output
analog
cpu
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
JP17008488A
Other languages
Japanese (ja)
Inventor
Yasuyuki Sasaki
康之 佐々木
Toshitaka Miyasato
利隆 宮里
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.)
Yaskawa Electric Corp
Original Assignee
Yaskawa Electric Manufacturing Co 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 Yaskawa Electric Manufacturing Co Ltd filed Critical Yaskawa Electric Manufacturing Co Ltd
Priority to JP17008488A priority Critical patent/JPH0219901A/en
Publication of JPH0219901A publication Critical patent/JPH0219901A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control By Computers (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、例えばプロセス制御系に適用するシーケンス
・プログラムを自動的に設定するようにしたいわゆるプ
ログラマブル・コントローラなどのアナログ出力方法と
その装置に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to an analog output method and device for a so-called programmable controller that automatically sets a sequence program applied to a process control system, for example. .

〔従来の技術〕[Conventional technology]

従来、この種制御系におけるアナログ出力装置の′:A
整方法としては、第3図(第1の従来例)に概念的なブ
ロック図で示すように、ディジタル/アナログ変換回路
1の中の一部に、2個の可変抵抗のオフセット調整用n
J変抵抗2.ゲイン調整用6■変抵抗3をそれぞれ設け
て、人為的にそのアナログ出力Is’を監現しながら、
これらの抵抗の手動によりアナログ出力装置出力のオフ
セット及びゲインを調節していた。
Conventionally, in this type of control system, the analog output device':A
As a method for adjusting the offset, as shown in a conceptual block diagram in FIG. 3 (first conventional example), a part of the digital/analog conversion circuit 1 is provided with a
J variable resistance 2. By providing 6 variable resistors 3 for gain adjustment, and artificially monitoring the analog output Is',
These resistors were used to manually adjust the offset and gain of the analog output device output.

そして、第2の従来例としてプロセス制御系の構成要素
に用いられる電流出力回路のキャリブレーション方式と
して特開昭63−66606号がみられる。
As a second prior art example, Japanese Patent Application Laid-Open No. 63-66606 describes a calibration method for a current output circuit used as a component of a process control system.

この第2の従来例は、ディジタル入力値を所定範囲の電
流信号に変換して出力する電流出力回路において、出力
電流信号をディジタル変換する手段を備え、予め複数の
ディジタル変換値と上記ディジタル入力値との関係から
補正用データを算出して記憶しておき、電流出力時には
その出力値に対応した理想ディジタル人力値と上記補正
用データとから求めたディジタル値をデジタル人力値と
して与える電流出力回路のキャリブレーション方式であ
る。
In this second conventional example, in a current output circuit that converts a digital input value into a current signal within a predetermined range and outputs the signal, the current output circuit is provided with means for digitally converting the output current signal, and a plurality of digital conversion values and the above-mentioned digital input value are A current output circuit calculates and stores correction data based on the relationship between the two, and when outputting current, gives the digital value obtained from the ideal digital human power value corresponding to the output value and the correction data as the digital human power value. This is a calibration method.

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

ところが、第1の従来例における技術では、調整に時間
がかかり、また、調整後はオフセット調整用6I変抵抗
2.ゲイン調整用可変抵抗3をおのおの固定してしまう
場合が殆どで再調整が不可能になるという問題点があっ
た。
However, with the technique of the first conventional example, the adjustment takes time, and after the adjustment, the offset adjustment 6I variable resistor 2. There is a problem in that in most cases, the variable resistors 3 for gain adjustment are individually fixed, making it impossible to readjust them.

また、第2の従来例ではマシンインターフェイスより逐
次指令を与えるマニュアル方式で補正用データをもとめ
る手段であり、あるいはキャリブレーション用のプログ
ラム実行させて自動的に行なってもよい手段のように記
してあり、具体的には、その第3図の補正用データの算
出手順を示すフローチャートより明らかのとおり、0%
ディジタル値出力が所定時間経過後にアナログ−ディジ
タル変換値を読込みストアして、つぎに100%ディジ
タル値出力が所定時間経過後にアナログ−デジタル変換
値を読込みストアし、補正データA。
In addition, in the second conventional example, the correction data is obtained by a manual method in which commands are given sequentially from a machine interface, or it is described as a means that can be automatically performed by running a calibration program. , Specifically, as is clear from the flowchart showing the calculation procedure of the correction data in Figure 3, 0%
After the digital value output has elapsed for a predetermined time, the analog-to-digital conversion value is read and stored, and then after the 100% digital value output has elapsed for a predetermined time, the analog-to-digital conversion value is read and stored, and correction data A is obtained.

B[(4)式、 (5)式]をストアする方式であり、
演算方法が複雑でありかつ演算時間が比較的に長い。
This is a method of storing B [Equation (4), Equation (5)],
The calculation method is complicated and the calculation time is relatively long.

ここにおいて、本発明は、それら従来例の難点を克服し
た演算速度の速くしかも精度の良いアナログ出力調整方
法及びその装置を提供することを、その目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to provide an analog output adjustment method and apparatus thereof that overcomes the drawbacks of the conventional methods and has a high calculation speed and high accuracy.

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

上記課題を解決するために、可変抵抗を排し、出力用の
D/Aコンデータとは別にこれに並設した調整用のD/
Aコンデータと、この′J8整用のD/Aコンデータに
与えるデータを記憶させておくメモリをそれぞれ設け、
出力用のD/Aコンデータの誤差を調整用のD/Aコン
データにて打消そうとするもので、調整用のD/Aコン
データに与えるデータは、アナログ出力装置の出力を高
精度のアナログ人力装置にてディジタルデータに変換し
、アナログ出力装置にて、自身が出力したデータと、ア
ナログ入力装置より伝えられたデータを比較し、この差
が最小となるように調整用のD/Aコンデータに与えた
データであり、そのデータがそのデータがメモリに書き
込まれるようにソフトウェアにてプログラムされている
ものである。
In order to solve the above problem, we eliminated the variable resistor and installed a D/A converter for adjustment separately from the output D/A converter.
A memory is provided to store the data to be given to the A controller data and the D/A controller data for this 'J8 adjustment, respectively.
The purpose is to cancel the error in the output D/A converter data with the adjusting D/A converter data, and the data given to the adjusting D/A converter data converts the output of the analog output device into a highly accurate one. Convert it to digital data with an analog human power device, compare the data output by itself with the data transmitted from the analog input device with an analog output device, and adjust the D/A so that this difference is minimized. This is the data given to the controller, and is programmed in software so that the data is written into memory.

〔作 用〕[For production]

以上のような構成にしであるので、アナログ出力装置の
動作前の調整時に1台の高精度のアナログ入力装置を用
意して、アナログ出力装置のアナログ出力をそのアナロ
グ入力装置へ与え、アナログ入力装置を介してディジタ
ル値へ変換して負帰還し、アナログ出力装置のディジタ
ル入力値との変さが最小になるようにされてから、アナ
ログ出力装置からのアナログ値がプロセス制御系へ送出
されて、ゲイン及びオフセットの調整が精度よく自動化
される。
With the above configuration, when adjusting the analog output device before operation, one high-precision analog input device is prepared, the analog output of the analog output device is given to the analog input device, and the analog input device The analog value from the analog output device is sent to the process control system after being converted into a digital value through negative feedback and minimizing the difference from the digital input value of the analog output device. Gain and offset adjustments are automated with high accuracy.

〔実施例〕〔Example〕

本発明の一実施例における調整時のブロック図を第1図
に表し、そのアナログ出力がプロセス制御系へ送出され
る動作時のブロック図を第2図に示す。
FIG. 1 shows a block diagram during adjustment in an embodiment of the present invention, and FIG. 2 shows a block diagram during operation when the analog output is sent to the process control system.

モジュール化されたアナログ出力装置4は、入力段にC
PU (中央処理装置)を設け、このCPUはメモリ(
RAMなど)11への出力線及びそれからの入力線が接
続されており、かっCPUからの出力線はまた出力用D
/Aコンデ−タロと調整用D/Aコンデータ10へおの
おの接続されている。これら出力用D/Aコンデ−タロ
と調整用D/Aコンデータ10からのアナログ出力はそ
れぞれ出力装置7へ与えられ、ここで2つのアナログ出
力は加算されて、このアナログ出力装置4のアナログ出
力12となる。
The modularized analog output device 4 has a C
A PU (central processing unit) is installed, and this CPU has memory (
(RAM, etc.) 11 and the input line from it are connected, and the output line from the CPU is also connected to the output D.
/A converter data rotor and the adjusting D/A converter data 10 are respectively connected. The analog outputs from these output D/A converter data 10 and adjustment D/A converter data 10 are respectively given to the output device 7, where the two analog outputs are added and the analog output of this analog output device 4 is It becomes 12.

このアナログ出力装置4へのディジタル入力は別のCP
Uモジュール9から調整時CPUモジュール出力データ
9S’ として与えられる。
The digital input to this analog output device 4 is provided by another CP.
It is given from the U module 9 as CPU module output data 9S' during adjustment.

また、アナログ出力装置4のアナログ出力12はアナロ
グ入力装置8へ受入れられ、ここでアナログ・データは
ディジタル・データ8sとして別のCPUモジュール9
へ入力するように接続されている。
The analog output 12 of the analog output device 4 is also received by an analog input device 8, where the analog data is sent to another CPU module 9 as digital data 8s.
connected to the input.

そのように、調整時においては、アナログ出力装置4内
のCPU5より出力用D/Aコンデ−タロに与えられた
ディジタル・データ5Sはアナログ出力6Sとなり、出
力装置7を介してアナログ入力モジュール8に出力され
、再びディジタル・データ8Sとなり、別のCPUモジ
ュール9を介してアナログ出力装置4に戻り、CPU5
にてディジタルやデータ5Sと帰還してきたディジタル
・データ8Sが比較され、この差が小さくなるような調
整用データ5S’が調整用D/Aコンデータ10に与え
られ、その調整用D/Aコンデータ10にて調整用アナ
ログ出力105となり、出力装置7で出力用D/Aコン
デ−タロのアナログ出力6Sと加算される。
In this way, during adjustment, the digital data 5S given from the CPU 5 in the analog output device 4 to the output D/A converter becomes the analog output 6S, and is sent to the analog input module 8 via the output device 7. It is output as digital data 8S again, returns to the analog output device 4 via another CPU module 9, and is sent to the CPU 5.
, the digital data 5S and the returned digital data 8S are compared, and adjustment data 5S' that reduces the difference is given to the adjustment D/A converter 10, and the adjustment D/A controller The data 10 becomes an analog output 105 for adjustment, and is added to the analog output 6S of the output D/A converter data at the output device 7.

先のディジタル・データ5Sと帰還してきたディジタル
・データ8Sとの差が最小となるまで上記の作用が繰返
され、差を最小とする値の最小調整データ5S’が見つ
かった時点で、最小調整データ5S’は主電源がなくて
も記憶保持が可能なメモIJII(例えばE2ROM、
バッテリバックアツプRAM等)に書込まれ、この一連
の動作はCPU5が出力用D/Aコンデ−タロに対して
指令可能なすべてのデータについて行われる。
The above operation is repeated until the difference between the previous digital data 5S and the returned digital data 8S is minimized, and when the minimum adjustment data 5S' with the value that minimizes the difference is found, the minimum adjustment data 5S' is a memo IJII (e.g. E2ROM,
This series of operations is performed for all the data that the CPU 5 can command to the output D/A converter.

このようにしてアナログ出力装置4のアナログ出力12
が調整された後は、第2図の通常動作がなされ、別のC
PUモジュール9より受は取った動作時CPUモジュー
ル出力データ9Sに対応する調整用データである最小調
整データ11sをCPU5がメモリ11より読み出し、
CPU5は出力用D/Aコンデ−タロに出力用のディジ
タル・データ5Sを与え、調整用D/Aコンデータ10
に最小調整データ11Sを与える。
In this way, the analog output 12 of the analog output device 4
After the C is adjusted, the normal operation shown in Fig. 2 is performed, and another C
The CPU 5 reads the minimum adjustment data 11s from the memory 11, which is adjustment data corresponding to the operating CPU module output data 9S received from the PU module 9.
The CPU 5 gives the output digital data 5S to the output D/A converter 10, and outputs the adjusting D/A converter 10.
The minimum adjustment data 11S is given to .

以上2つの動作は図示しないスイッチにてプログラムを
切り換えることにより、予め設定できるようになってお
り、アナログ入力装置8を用意すればよく、例えば生産
現場からの出荷時のみならず、アナログ出力装置4の稼
働する先での再調整も可能となる。
The above two operations can be set in advance by switching the program with a switch (not shown), and it is only necessary to prepare the analog input device 8. For example, the analog output device 4 Readjustment is also possible at the location where the system is operating.

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

かくして本発明によれば、従来人手に頼らざるを得なか
ったあるいは煩瑣なしかも時間のががる手段によるアナ
ログ出力装置の調整が、自動的にかつ短時間で行なわれ
、また何時でも再調整ができ、その調整を全てのアナロ
グ出力の出力データについて行うため、精度も著しく向
上し、プロセス制御系の動作の信頼性が格段と高まると
言うような多くの効果を奏することができる。
Thus, according to the present invention, the adjustment of the analog output device, which conventionally had to be done manually or by means that are cumbersome but time-consuming, can be done automatically and in a short time, and readjustment can be done at any time. Since the adjustment is performed for all analog output data, the accuracy is significantly improved, and the reliability of the operation of the process control system is greatly increased.

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

第1図及び第2図は本発明の一実施例における:A整時
及び動作時の回路構成並びにデータの流れを示すブロッ
ク図、第3図は従来例の説明図である。 1・・・デジタル/アナログ変換回路、2・・・オフセ
ット調整用nJ変抵抗、3・・・ゲイン調整川口J変抵
抗、4・・・アナログ出力装置4.5・・・CPU、6
・・・出力用D/Aコンデータ、7・・・出力装置、8
・・・アナログ入力装置、9・・・別のCPUモジュー
ル、10・・・調整用D/Aコンデータ、11・・・メ
モリ、12・・・アナログ出力。 負−1δコ (実71智伊1.8周整B存)ら 出願人代理人  佐  藤  −雄 第2図 (実施例、動作時) 手続事由装置 事件の表示 昭和63年 特許願 第170084号発明の名称 アナログ出力方法とその装置 補正をする者 事件との関係  特許出願人 (662)株式会社 安用電機製作所 第3図 (従来例)
1 and 2 are block diagrams showing the circuit configuration and data flow during A timing and operation in one embodiment of the present invention, and FIG. 3 is an explanatory diagram of a conventional example. DESCRIPTION OF SYMBOLS 1... Digital/analog conversion circuit, 2... NJ variable resistor for offset adjustment, 3... Kawaguchi J variable resistor for gain adjustment, 4... Analog output device 4.5... CPU, 6
... Output D/A controller, 7... Output device, 8
...Analog input device, 9...Another CPU module, 10...D/A converter data for adjustment, 11...Memory, 12...Analog output. Negative -1 δ Co (Actual 71 Chii 1.8 Circulation B Exists) et al. Applicant's Representative Mr. Sato - Yu Figure 2 (Example, during operation) Display of Procedural Event Device Case 1988 Patent Application No. 170084 Name of the invention Relationship between analog output method and the device correction case Patent applicant (662) Anyo Electric Manufacturing Co., Ltd. Figure 3 (prior example)

Claims (1)

【特許請求の範囲】 1、プロセス制御系にアナログ出力を送出するアナログ
出力装置において、ディジタル値でアナログ出力をCP
Uに与え、このCPUからのディジタル出力データを出
力用D/Aコンデータを経てアナログ出力とし、出力装
置を介してこのアナログ出力装置からのアナログ出力を
発生し、このアナログ出力装置からのアナログ出力をア
ナログ入力装置を通してディジタル・データに変換して
から別のCPUを経て再び先のCPUへ戻し、このCP
Uでは先のディジタル出力データと比較し、その差を求
め、その差が小さくなるような調整用データを調整用D
/Aコンデータへ与えて調整用アナログ出力とし出力装
置にて先のアナログ出力に加算しアナログ出力装置の新
たなアナログ出力を発生し、この動作を繰返し、先の差
を最小にし、その最小の差である最小調整データを記憶
しておき、別のCPUからの出力データを先のCPUへ
与え、そのCPUからディジタル出力データと共に、記
憶されている最小調整データを読み出し調整用データと
して調整用D/Aコンデータを介して調整用アナログ出
力を出力装置に加え、その出力装置からアナログ出力を
プロセス制御系に送出する ことを特徴とするアナログ出力方法。 2、設定されたディジタル値を受入れる CPUと、 このCPUからのディジタル出力データをアナログ出力
に変換して出力装置へ与える出力用D/Aコンデータと
、 D/Aコンデータからのアナログ出力を加算してアナロ
グ出力装置のアナログ出力を送出する出力装置と、 設定されたディジタル値を導出する別のCPUと、 先の出力装置からのアナログ出力を導入してディジタル
・データとして別のCPUへ帰還させるアナログ入力装
置と、 帰還させたディジタル・データと先のディジタル出力デ
ータの差を求め、それの最小の差を最小調整データとし
て記憶しかつ読み出しできるメモリと、 先の差を調整用データとして受入れ調整用アナログ出力
を出力装置へ加える調整用D/Aコンデータと、 を具備したことを特徴とするアナログ出力装置。
[Claims] 1. In an analog output device that sends an analog output to a process control system, the analog output is converted into a CP as a digital value.
U, the digital output data from this CPU is output as an analog output via the output D/A converter data, an analog output is generated from this analog output device via an output device, and an analog output from this analog output device is generated. is converted into digital data through an analog input device, and then returned to the previous CPU via another CPU, and this CPU
U compares it with the previous digital output data, calculates the difference, and sets the adjustment data that reduces the difference to D.
/A control data is used as an analog output for adjustment, and the output device adds it to the previous analog output to generate a new analog output of the analog output device.This operation is repeated to minimize the previous difference, and the minimum value is The minimum adjustment data that is the difference is stored, the output data from another CPU is given to the previous CPU, and the stored minimum adjustment data is read out along with the digital output data from that CPU and used as adjustment data. An analog output method characterized by adding an analog output for adjustment to an output device via a /A controller and sending the analog output from the output device to a process control system. 2. Adds the CPU that accepts the set digital value, the output D/A converter data that converts the digital output data from this CPU to analog output and provides it to the output device, and the analog output from the D/A converter data. an output device that sends out the analog output of the analog output device; another CPU that derives the set digital value; and an output device that takes the analog output from the previous output device and returns it as digital data to the other CPU. An analog input device, a memory that can calculate the difference between the returned digital data and the previous digital output data, store and read the minimum difference as the minimum adjustment data, and accept and adjust the previous difference as adjustment data. An analog output device characterized by comprising: an adjusting D/A converter for applying an analog output to the output device.
JP17008488A 1988-07-08 1988-07-08 Analog output method and device Pending JPH0219901A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17008488A JPH0219901A (en) 1988-07-08 1988-07-08 Analog output method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17008488A JPH0219901A (en) 1988-07-08 1988-07-08 Analog output method and device

Publications (1)

Publication Number Publication Date
JPH0219901A true JPH0219901A (en) 1990-01-23

Family

ID=15898347

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17008488A Pending JPH0219901A (en) 1988-07-08 1988-07-08 Analog output method and device

Country Status (1)

Country Link
JP (1) JPH0219901A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06222810A (en) * 1992-09-28 1994-08-12 Siemens Ag Central processing unit for process control system
CN102835260A (en) * 2012-09-11 2012-12-26 南京德朔实业有限公司 Hand-held electric tool suitable for double-hand operation

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06222810A (en) * 1992-09-28 1994-08-12 Siemens Ag Central processing unit for process control system
CN102835260A (en) * 2012-09-11 2012-12-26 南京德朔实业有限公司 Hand-held electric tool suitable for double-hand operation

Similar Documents

Publication Publication Date Title
KR100591978B1 (en) Numerical Control Device
EP0952504A2 (en) Method of and apparatus for controlling a plurality of servomotors
US4885515A (en) Velocity control apparatus
JPH0219901A (en) Analog output method and device
JP2003330510A (en) Synchronous control method for numerical controller
CN119439735A (en) Automatic control method and system for servo drive with multiple adjustable specifications
JPS60241330A (en) Digital-analog converter with auto-range function
JP3260005B2 (en) A / D conversion processing method
JPH06204870A (en) Digital/analog converter with automatic correcting function
JPH10253795A (en) Output adjustment circuit of nuclear instrumentation
JP3311129B2 (en) Digital control method and apparatus for material testing machine
JPS5870309A (en) Adjusting system of control value
JPH0613899A (en) Analog / digital converter input calibration method
JP2769272B2 (en) Input processing card and output processing card
JP2000283903A (en) External output method of measurement load in material testing device and material testing device
JPH05243998A (en) Automatic adjusting device for analog/digital converter system
KR940005390B1 (en) Position controller and control method of surveillance camera
SU682906A1 (en) Multichannel apparatus for checking radioelectronic equipment
US5929797A (en) D/A converter control method for IC test apparatus
JPS62271103A (en) Controller
JP2001102924A (en) A / D converter gain matching system and matching method
JPH0580827A (en) Positioning control device
JPS6366606A (en) Calibration system for current output circuit
JPS58107239A (en) Manufacture of coil
JP2000322104A (en) Adaptive control device and adaptive control method