JP2523053B2 - Rewriting method of EEPROM in industrial instrument - Google Patents

Rewriting method of EEPROM in industrial instrument

Info

Publication number
JP2523053B2
JP2523053B2 JP2277762A JP27776290A JP2523053B2 JP 2523053 B2 JP2523053 B2 JP 2523053B2 JP 2277762 A JP2277762 A JP 2277762A JP 27776290 A JP27776290 A JP 27776290A JP 2523053 B2 JP2523053 B2 JP 2523053B2
Authority
JP
Japan
Prior art keywords
eeprom
data
program
rewriting
ram
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.)
Expired - Fee Related
Application number
JP2277762A
Other languages
Japanese (ja)
Other versions
JPH04153756A (en
Inventor
敬治 宮沢
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.)
Azbil Corp
Original Assignee
Azbil Corp
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 Azbil Corp filed Critical Azbil Corp
Priority to JP2277762A priority Critical patent/JP2523053B2/en
Publication of JPH04153756A publication Critical patent/JPH04153756A/en
Application granted granted Critical
Publication of JP2523053B2 publication Critical patent/JP2523053B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、電気的に書き込み・消去可能なEEPROMを備
えた工業計器におけるEPROMの書き換え方式に関するも
のである。
The present invention relates to an EPROM rewriting method in an industrial instrument equipped with an electrically writable / erasable EEPROM.

[従来の技術] 従来、工場等に配管された管中のガスの圧力等を検出
してこのデータを受信装置へ送信する差圧・圧力発信器
内には、CPUの他にプログラムが格納されるROM,測定デ
ータや演算データ等が格納されるRAM,センサの特性デー
タ(キャラクタリゼーションデータ)等が格納されるPR
OM、補正データやモード,動作環境等を指定するデータ
等により構成されるコンフィギュレーションデータが格
納されるEEPROMが備えられている。
[Prior Art] Conventionally, a program is stored in addition to the CPU in the differential pressure / pressure transmitter that detects the pressure of gas in the pipes installed in factories and sends this data to the receiving device. ROM that stores measurement data, calculation data, etc., PR that stores sensor characteristic data (characterization data), etc.
It is equipped with an EEPROM that stores configuration data composed of OM, correction data, data that specifies the mode, operating environment, etc.

そして、CPUはセンサからの差圧等のデータ信号を入
力すると、このセンサの特性データやコンフィギュレー
ションデータに基づいてセンサからのデータを補正する
等のデータ変換処理を行い、この変換された出力データ
を受信装置へ送信するものとなっている。なお、EEPROM
の内容を書き換えるプログラムはROM内に格納されてお
り、この内容が不用意に書き換えられることを防止する
ために、以下に示す何れかの方法によりその内容を書き
換えている。すなわち、その第1方法は外部の機器から
送信される通信コマンドにより書き換えを行ってよいか
を確認後書き換える方法であり、また、第2の方法は外
部のスイッチ操作によりスイッチが書き換え許可の状態
にあるかを検出後書き換える方法である。さらに、第3
の方法としては上記の2つの方法の組み合わせにより書
き換える方法であり、このような3つの方法の何れかに
よりEEPROMの内容を書き換えている。
When the CPU inputs a data signal such as the differential pressure from the sensor, it performs data conversion processing such as correcting the data from the sensor based on the characteristic data and configuration data of this sensor, and the converted output data Is transmitted to the receiving device. EEPROM
A program for rewriting the contents of is stored in the ROM, and in order to prevent the contents from being rewritten carelessly, the contents are rewritten by any of the following methods. That is, the first method is a method of rewriting after confirming whether or not rewriting can be performed by a communication command transmitted from an external device, and the second method is to make the switch rewritable by an external switch operation. This is a method of rewriting after detecting whether there is any. Furthermore, the third
The above method is a method of rewriting by a combination of the above two methods, and the contents of the EEPROM are rewritten by any of these three methods.

[発明が解決しようとする課題] 上述した従来の差圧・圧力発信器は、ROM内にEEPROM
の内容を書き換えるプログラムが格納されているため
に、これを読み出して実行するCPUが外来のノイズ等に
よって暴走した場合には、EEPROM内に格納されているコ
ンフィギュレーションデータが破壊されることがあり、
CPUがリセット後正常に再スタートしても、この破壊さ
れたデータに基づいて出力データの変換処理を行うこと
になり、この結果、受信装置へ誤ったデータが送信され
るという問題があった。
[Problems to be Solved by the Invention] The conventional differential pressure / pressure transmitter described above has an EEPROM in the ROM.
Since the program that rewrites the contents of is stored, if the CPU that reads and executes this program runs away due to external noise, etc., the configuration data stored in the EEPROM may be destroyed.
Even if the CPU is normally restarted after resetting, output data conversion processing is performed based on the destroyed data, and as a result, incorrect data is transmitted to the receiving device.

[課題を解決するための手段] このような課題を解決するために本発明の工業計器に
おけるEEPROMの書き換え方式は、EEPROMの内容の消去ま
たは書き換えに必要なプログラムを外部の機器から受信
して工業計器内のRAMへ転送する転送手段と、RAMに転送
され格納されたプログラムの実行によってEEPROMの内容
が消去または書き換えられた後に、RAMに格納されてい
るプログラムの消去を行う消去手段とを備えたものであ
る。
[Means for Solving the Problem] In order to solve such a problem, the rewriting method of the EEPROM in the industrial instrument of the present invention is an industrial method in which a program necessary for erasing or rewriting the contents of the EEPROM is received from an external device. Equipped with a transfer means for transferring to the RAM in the instrument and an erasing means for erasing the program stored in the RAM after the contents of the EEPROM are erased or rewritten by executing the program transferred to and stored in the RAM It is a thing.

[作用] EPROMの内容の消去または書き換えに必要なプログラ
ムは、工業計器内のRAMへ転送され、このプログラムの
実行によってEEPROMの内容が消去または書き換えられ、
この書き換えの終了後にこのプログラムは消去される。
[Operation] The program necessary for erasing or rewriting the EPROM contents is transferred to the RAM in the industrial instrument, and the EEPROM contents are erased or rewritten by executing this program.
This program is erased after this rewriting is completed.

[実施例] 次に、本発明について図面を参照して説明する。EXAMPLES Next, the present invention will be described with reference to the drawings.

第2図は、本発明の工業計器におけるEEPROMの書き換
え方式を適用したシステムの構成図である。
FIG. 2 is a block diagram of a system to which the EEPROM rewriting method in the industrial instrument of the present invention is applied.

同図において、1は差圧・圧力発信器(工業計器)、
2は携帯用通信器、3は受信計器、4はジャンクション
ボックス、5は発信器1と受信計器3との間でデータ伝
送を行うための4−20mA伝送線、Eは発信器1へ供給さ
れる電源である。
In the figure, 1 is a differential pressure / pressure transmitter (industrial instrument),
2 is a portable communication device, 3 is a receiving instrument, 4 is a junction box, 5 is a 4-20 mA transmission line for data transmission between the transmitter 1 and the receiving instrument 3, and E is supplied to the transmitter 1. Power source.

すなわち、発信器1は、電源Eが供給されると、工場
内に配管された管中のガス等の圧力をセンサにより検出
するとともに、この検出したデータの補正等を行い、こ
の補正されたデータを4−20mA伝送線5を介し受信計器
3へ送信している。
That is, when the power source E is supplied, the oscillator 1 detects the pressure of gas or the like in the pipes installed in the factory with a sensor, corrects the detected data, etc., and corrects the corrected data. Is transmitted to the receiving instrument 3 via the 4-20 mA transmission line 5.

次に、第2図は、発信器1の詳細なブロック図であ
る。同図において、10は差圧センサ、11は静圧センサ、
12は温度センサ、13はマルチプレクサ、14はA/D変換
器、15は後述のROMおよびRAM内に格納されたプログラム
を実行するCPU、16はディジタルI/O部、17はD/A変換
器、18は通常の処理を行うプログラムの他に後述のEEPR
OM内のデータを読み出すプログラム,EEPROMの内容を消
去・書き込みするためのプログラムを後述のRAMへ転送
するプログラム,およびRAMへ転送されたプログラムを
消去するプログラムが格納されたROM、19は差圧センサ1
0等のセンサの特性データが格納されたPROM、20は測定
データや演算結果のデータ等の他に後述のEEPROMに格納
されるデータの書き込みおよび消去を行うプログラムが
格納されるRAM、21はコンフィギュレーションデータと
呼ばれる補正データおよびモード,動作環境等を指定す
るデータ等が格納されるEEPROM、Qはトランジスタであ
る。
Next, FIG. 2 is a detailed block diagram of the oscillator 1. In the figure, 10 is a differential pressure sensor, 11 is a static pressure sensor,
12 is a temperature sensor, 13 is a multiplexer, 14 is an A / D converter, 15 is a CPU that executes programs stored in ROM and RAM described later, 16 is a digital I / O block, and 17 is a D / A converter. , 18 are EEPR, which will be described later, in addition to programs that perform normal processing.
ROM that stores the program that reads the data in the OM, the program that erases and writes the contents of the EEPROM to the RAM described later, and the program that erases the program transferred to the RAM, 19 is the differential pressure sensor 1
0 is a PROM that stores sensor characteristic data, 20 is a RAM that stores a program that writes and erases measurement data, calculation result data, and other data that is stored in an EEPROM described later. The correction data called correction data and the data for specifying the mode, operating environment, etc. are stored in the EEPROM, and Q is a transistor.

そして、管中のガスの圧力,温度等を検出する差圧セ
ンサ10,静圧センサ11,温度センサ12等の検出出力は、マ
ルチプレクサ13を介してA/D変換器14へ送出され、ここ
でディジタルデータに変換される。CPU15はこのディジ
タルデータを入力してPROM19内の各種センサの特性デー
タおよびEEPROM内のコンフィギュレーションデータに基
づきこのディジタルデータに補正を加えてD/A変換器17
へ送出し、アナログ信号に変換させる。さらに、このD/
A変換器17から出力されるアナログ信号は、トランジス
タQにより4−20mAのアナログ電流信号に変換され、4
−20mA伝送線5を介して受信計器3へ送信される。
Then, the detection outputs of the differential pressure sensor 10, the static pressure sensor 11, the temperature sensor 12, etc. that detect the pressure, temperature, etc. of the gas in the pipes are sent to the A / D converter 14 via the multiplexer 13, where Converted to digital data. The CPU 15 inputs this digital data, corrects the digital data based on the characteristic data of various sensors in the PROM 19 and the configuration data in the EEPROM, and the D / A converter 17
To convert to an analog signal. Furthermore, this D /
The analog signal output from the A converter 17 is converted into an analog current signal of 4 to 20 mA by the transistor Q, and 4
It is transmitted to the receiving instrument 3 via the -20 mA transmission line 5.

なお、CPU15は上記した処理に先立ち、電源Eが供給
されリセットが解除されると、ROM18の先頭番地のプロ
グラムから実行を開始する。そして、このとき、例えば
携帯用通信器2からのEEPROMの内容の書き換えコマンド
を受信し、さらにこのコマンドに続くプログラムデータ
を受信すると、これをRAM20内の所定のエリアに格納す
る。
It should be noted that the CPU 15 starts execution from the program at the head address of the ROM 18 when the power E is supplied and the reset is released prior to the above processing. Then, at this time, for example, when a command for rewriting the contents of the EEPROM from the portable communication device 2 is received and further program data following this command is received, this is stored in a predetermined area in the RAM 20.

その後、CPU15はRAM20へ格納されたプログラムを読み
出してこれを実行し、この結果、EEPROM21へ所定のコン
フィギュレーションデータを格納する。こうして、コン
フィギュレーションデータが格納された後、CPU15は再
びROM18のプログラムを実行してRAM20の所定のエリアに
格納されたプログラムデータを消去するとともに、上記
の処理、即ち各種センサからのデータを入力してこの入
力データに、EEPROM21内から読み出したコンフィギュレ
ーションデータ等による補正を加えるデータ変換処理を
行い、この変換されたデータを4−20mA伝送線5を介し
て受信計器3へ送信する。
After that, the CPU 15 reads the program stored in the RAM 20 and executes it, and as a result, stores predetermined configuration data in the EEPROM 21. In this way, after the configuration data is stored, the CPU 15 executes the program of the ROM 18 again to erase the program data stored in the predetermined area of the RAM 20, and at the same time, performs the above-mentioned processing, that is, inputs data from various sensors. The input data is subjected to a data conversion process in which a correction based on the configuration data or the like read out from the EEPROM 21 is performed, and the converted data is transmitted to the receiving instrument 3 via the 4-20 mA transmission line 5.

次に、第3図は本発明の工業計器におけるEEPROM書き
換え方式の動作を説明するフローチャートである。
Next, FIG. 3 is a flow chart for explaining the operation of the EEPROM rewriting method in the industrial measuring instrument of the present invention.

上記したように、CPU15への電源が供給されたとき、
または、CPU15が暴走してリセットされその後リセット
が解除されると、CPU15はROM18内のプログラムの先頭番
地から処理を実行する。そして、ステップ50において携
帯用通信器2からのEEPROM書き換えコマンドを受信を判
断し、これが受信できずに「N」と判定される場合は、
他の処理、すなわち予め定められた処理プログラムに基
づいた処理を実行して終了する。
As mentioned above, when power is supplied to the CPU15,
Alternatively, when the CPU 15 goes out of control and is reset and then reset is released, the CPU 15 executes the process from the start address of the program in the ROM 18. Then, in step 50, it is determined that the EEPROM rewrite command from the portable communication device 2 is received, and if this is not received and it is determined as “N”,
Other processing, that is, processing based on a predetermined processing program is executed and the processing is ended.

また、ステップ50でEEPROM書き換えコマンドが受信で
きて「Y」と判定される場合はステップ52でこの書き換
えコマンドに続く書き換えプログラムデータを受信して
これをRAM20へロード(転送)する。そして、ステップ5
3でRAM20へロードされたプログラムを読みだしで実行
し、EEPROM21へのデータを書き換え、この書き換えが終
了する。ステップ54でROM18内のプログラムを実行してR
AM20へロードされたプログラムデータを消去して終了す
る。
If the EEPROM rewrite command can be received and it is determined to be "Y" in step 50, the rewrite program data following this rewrite command is received and loaded (transferred) to the RAM 20 in step 52. And step 5
The program loaded into RAM20 is read out and executed in step 3, the data in EEPROM21 is rewritten, and this rewriting ends. In step 54, execute the program in ROM18 to R
Erase the program data loaded in AM20 and exit.

このように、本発明は、RAM20上へロードされたプロ
グラムによりEEPROM21の内容を書き換え、この書き換え
が終了後、ロードされたプログラムを消去するようにし
たものである。この結果、CPU15が外来ノイズ等により
暴走しても、RAM20にはEEPROMの内容を書き換えるプロ
グラムは既に消去されて存在しないので、EEPROMの内容
が書き換えられることがなくその内容が保持され、CPU1
5の暴走後に再スタートしたときには、この保持されたE
EPROMのコンフィギュレーションデータに基づいて処理
を行うので、正確なデータが受信計器3へ送信できる。
As described above, the present invention rewrites the contents of the EEPROM 21 with the program loaded on the RAM 20 and erases the loaded program after the rewriting is completed. As a result, even if the CPU 15 runs out of control due to external noise or the like, the program that rewrites the contents of the EEPROM is already deleted and does not exist in the RAM 20, so the contents of the EEPROM are not rewritten and the contents are retained.
When restarting after a runaway of 5, this retained E
Since the processing is performed based on the EPROM configuration data, accurate data can be transmitted to the receiving instrument 3.

なお、本実施例においては、CPU15の暴走時にコンフ
ィギュレーションデータの内容が保持されるEEPROM21を
差圧・圧力発信器1に適用した例を説明したが、本発明
はこれに限定されず、現場で使用される各種の温度計お
よび電磁流量計等にも広く適用できるものである。
In the present embodiment, the example in which the EEPROM 21 in which the contents of the configuration data are held when the CPU 15 runs out of control is applied to the differential pressure / pressure transmitter 1 has been described, but the present invention is not limited to this and is used on site. It can be widely applied to various thermometers and electromagnetic flow meters used.

[発明の効果] 以上説明したように本発明の工業計器におけるEEPROM
の書き換え方式は、EPROMの内容の消去または書き換え
に必要なプログラムを、工業計器内のRAMへ転送し、こ
のプログラムの実行によってEEPROMの内容が消去または
書き換えられた後にこのプログラムを消去するように構
成したので、CPUが外来ノイズ等により暴走しても、RAM
にはEEPROMの内容を書き換えるプログラムが既に消去さ
れているために、誤ってEEPROMの内容が書き換えられる
恐れがなく、従ってその内容が保持され、この結果、CP
Uが再スタートしたときにはこの保持された内容に基づ
いて処理が行われ、受信装置へ正確なデータの送信が行
えるという効果がある。
[Effects of the Invention] As described above, the EEPROM in the industrial instrument of the present invention
The rewriting method is configured so that the program necessary for erasing or rewriting the EPROM content is transferred to the RAM in the industrial instrument, and the program is erased after the EEPROM content is erased or rewritten by the execution of this program. Therefore, even if the CPU runs away due to external noise, RAM
Since the program that rewrites the contents of the EEPROM has already been erased, there is no risk that the contents of the EEPROM will be accidentally rewritten, so the contents are retained, and as a result, the CP
When U restarts, processing is performed based on the held contents, and there is an effect that accurate data can be transmitted to the receiving device.

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

第1図は本発明の工業計器におけるEEPROMの書き換え方
式を適用した装置の一実施例を示すブロック図、第2図
はこの方式を適用したシステムの構成図、第3図はこの
装置の動作を説明するフローチャートである。 1……発信器、2……携帯用通信器、3……受信計器、
5……4−20mA伝送線、10……差圧センサ、11……静圧
センサ、12……温度センサ、13……マルチプレクサ、14
……A/D変換器、15……CPU、17……D/A変換器、18……R
OM、19……PROM、20……RAM、21……EEPROM、Q……ト
ランジスタ。
FIG. 1 is a block diagram showing an embodiment of an apparatus to which the EEPROM rewriting method in an industrial instrument of the present invention is applied, FIG. 2 is a block diagram of a system to which this method is applied, and FIG. 3 shows the operation of this apparatus. It is a flowchart explaining. 1 ... Transmitter, 2 ... Portable communication device, 3 ... Receiving instrument,
5 ... 4-20mA transmission line, 10 ... Differential pressure sensor, 11 ... Static pressure sensor, 12 ... Temperature sensor, 13 ... Multiplexer, 14
…… A / D converter, 15 …… CPU, 17 …… D / A converter, 18 …… R
OM, 19 ... PROM, 20 ... RAM, 21 ... EEPROM, Q ... transistor.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】補正データおよびモード,動作環境等を指
定するデータ等のコンフィギュレーションデータが格納
され電気的に書き込み・消去が可能なEEPROMを備え、こ
のコンフィギュレーションデータに基づいて検出データ
の補正を行う工業計器におけるEEPROMの書き換え方式に
おいて、 前記EEPROMの内容の消去または書き換えに必要なプログ
ラムを受信して前記工業計器内のRAMへ転送する転送手
段と、 前記工業計器内のRAMに格納された前記プログラムの実
行によって前記EEPROMの内容が消去または書き換えられ
た後に、前記工業計器内のRAMに格納されている前記プ
ログラムの消去を行う消去手段と を備えたことを特徴とする工業計器におけるEEPROMの書
き換え方式。
1. An electrically erasable and erasable EEPROM for storing correction data and configuration data such as data designating a mode and operating environment, and correction of detection data based on the configuration data. In the rewriting method of the EEPROM in the industrial instrument to perform, transfer means for receiving a program necessary for erasing or rewriting the contents of the EEPROM and transferring to the RAM in the industrial instrument, the stored in the RAM in the industrial instrument Rewriting of the EEPROM in the industrial measuring instrument, comprising: erasing means for erasing the program stored in the RAM in the industrial measuring instrument after the content of the EEPROM is erased or rewritten by executing the program. method.
JP2277762A 1990-10-18 1990-10-18 Rewriting method of EEPROM in industrial instrument Expired - Fee Related JP2523053B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2277762A JP2523053B2 (en) 1990-10-18 1990-10-18 Rewriting method of EEPROM in industrial instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2277762A JP2523053B2 (en) 1990-10-18 1990-10-18 Rewriting method of EEPROM in industrial instrument

Publications (2)

Publication Number Publication Date
JPH04153756A JPH04153756A (en) 1992-05-27
JP2523053B2 true JP2523053B2 (en) 1996-08-07

Family

ID=17587983

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2277762A Expired - Fee Related JP2523053B2 (en) 1990-10-18 1990-10-18 Rewriting method of EEPROM in industrial instrument

Country Status (1)

Country Link
JP (1) JP2523053B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5247558B2 (en) * 2009-03-26 2013-07-24 三菱電機株式会社 Control device for electronic equipment and air conditioner using the control device

Also Published As

Publication number Publication date
JPH04153756A (en) 1992-05-27

Similar Documents

Publication Publication Date Title
US5103409A (en) Field measuring instrument and its abnormality managing method
JP4986123B2 (en) Intelligent transmitter and its software update method
US9753891B2 (en) Field device
JP2523053B2 (en) Rewriting method of EEPROM in industrial instrument
JP2623392B2 (en) Sensing device and output correction method thereof
JP2598384Y2 (en) Data processing device
JP2006244491A (en) System for analyzing input signal and control device using thereof
JP5699651B2 (en) Information processing device
JPH11316685A (en) Device for performing remote control and/or operation of field device via field bus using controller and
JP2001202262A (en) Data storing method
JP4450161B2 (en) Unit and programmable controller
JP3404730B2 (en) Program update detection method for programming device
JPH0277947A (en) Measuring device
JPH034921B2 (en)
JP2005135223A (en) Method for updating memory of field device and its system
JPH1011317A (en) Digital controller
JPH0351923A (en) Trouble diagnostic device
JPH04342037A (en) Operand checking system for program
JPH04373036A (en) Software testing device for computer system
JPH0250226A (en) Microcomputer
JPH08179996A (en) Memory abnormality detector
JPH0450616B2 (en)
JPH03250347A (en) Memory device
JPH0555056U (en) Gas concentration measuring device
JPH06161737A (en) Program development supporting device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees